forked from the1812/Bilibili-Evolved
-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom-navbar.js
30 lines (30 loc) · 154 KB
/
custom-navbar.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["style/custom-navbar"]=e():t["style/custom-navbar"]=e()}(globalThis,(()=>(()=>{var t,e,n={5090:(t,e,n)=>{"use strict";function i(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function a(t){return t instanceof i(t).Element||t instanceof Element}function r(t){return t instanceof i(t).HTMLElement||t instanceof HTMLElement}function o(t){return"undefined"!=typeof ShadowRoot&&(t instanceof i(t).ShadowRoot||t instanceof ShadowRoot)}n.d(e,{kO:()=>bt,rm:()=>vt,Je:()=>ft});var s=Math.max,l=Math.min,c=Math.round;function p(t,e){void 0===e&&(e=!1);var n=t.getBoundingClientRect(),i=1,a=1;if(r(t)&&e){var o=t.offsetHeight,s=t.offsetWidth;s>0&&(i=c(n.width)/s||1),o>0&&(a=c(n.height)/o||1)}return{width:n.width/i,height:n.height/a,top:n.top/a,right:n.right/i,bottom:n.bottom/a,left:n.left/i,x:n.left/i,y:n.top/a}}function d(t){var e=i(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function u(t){return t?(t.nodeName||"").toLowerCase():null}function m(t){return((a(t)?t.ownerDocument:t.document)||window.document).documentElement}function h(t){return p(m(t)).left+d(t).scrollLeft}function v(t){return i(t).getComputedStyle(t)}function f(t){var e=v(t),n=e.overflow,i=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+i)}function b(t,e,n){void 0===n&&(n=!1);var a,o,s=r(e),l=r(e)&&function(t){var e=t.getBoundingClientRect(),n=c(e.width)/t.offsetWidth||1,i=c(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),v=m(e),b=p(t,l),g={scrollLeft:0,scrollTop:0},x={x:0,y:0};return(s||!s&&!n)&&(("body"!==u(e)||f(v))&&(g=(a=e)!==i(a)&&r(a)?{scrollLeft:(o=a).scrollLeft,scrollTop:o.scrollTop}:d(a)),r(e)?((x=p(e,!0)).x+=e.clientLeft,x.y+=e.clientTop):v&&(x.x=h(v))),{x:b.left+g.scrollLeft-x.x,y:b.top+g.scrollTop-x.y,width:b.width,height:b.height}}function g(t){var e=p(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function x(t){return"html"===u(t)?t:t.assignedSlot||t.parentNode||(o(t)?t.host:null)||m(t)}function y(t){return["html","body","#document"].indexOf(u(t))>=0?t.ownerDocument.body:r(t)&&f(t)?t:y(x(t))}function w(t,e){var n;void 0===e&&(e=[]);var a=y(t),r=a===(null==(n=t.ownerDocument)?void 0:n.body),o=i(a),s=r?[o].concat(o.visualViewport||[],f(a)?a:[]):a,l=e.concat(s);return r?l:l.concat(w(x(s)))}function _(t){return["table","td","th"].indexOf(u(t))>=0}function C(t){return r(t)&&"fixed"!==v(t).position?t.offsetParent:null}function k(t){for(var e=i(t),n=C(t);n&&_(n)&&"static"===v(n).position;)n=C(n);return n&&("html"===u(n)||"body"===u(n)&&"static"===v(n).position)?e:n||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&r(t)&&"fixed"===v(t).position)return null;var n=x(t);for(o(n)&&(n=n.host);r(n)&&["html","body"].indexOf(u(n))<0;){var i=v(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}var S="top",V="bottom",N="right",I="left",P="auto",L=[S,V,N,I],O="start",z="end",T="viewport",E="popper",$=L.reduce((function(t,e){return t.concat([e+"-"+O,e+"-"+z])}),[]),j=[].concat(L,[P]).reduce((function(t,e){return t.concat([e,e+"-"+O,e+"-"+z])}),[]),D=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function A(t){var e=new Map,n=new Set,i=[];function a(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var i=e.get(t);i&&a(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||a(t)})),i}var M={placement:"bottom",modifiers:[],strategy:"absolute"};function B(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function U(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,r=e.defaultOptions,o=void 0===r?M:r;return function(t,e,n){void 0===n&&(n=o);var r,s,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},M,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],p=!1,d={state:l,setOptions:function(n){var r="function"==typeof n?n(l.options):n;u(),l.options=Object.assign({},o,l.options,r),l.scrollParents={reference:a(t)?w(t):t.contextElement?w(t.contextElement):[],popper:w(e)};var s=function(t){var e=A(t);return D.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}(function(t){var e=t.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}([].concat(i,l.options.modifiers)));return l.orderedModifiers=s.filter((function(t){return t.enabled})),l.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,a=t.effect;if("function"==typeof a){var r=a({state:l,name:e,instance:d,options:i}),o=function(){};c.push(r||o)}})),d.update()},forceUpdate:function(){if(!p){var t=l.elements,e=t.reference,n=t.popper;if(B(e,n)){l.rects={reference:b(e,k(n),"fixed"===l.options.strategy),popper:g(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(t){return l.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<l.orderedModifiers.length;i++)if(!0!==l.reset){var a=l.orderedModifiers[i],r=a.fn,o=a.options,s=void 0===o?{}:o,c=a.name;"function"==typeof r&&(l=r({state:l,options:s,name:c,instance:d})||l)}else l.reset=!1,i=-1}}},update:(r=function(){return new Promise((function(t){d.forceUpdate(),t(l)}))},function(){return s||(s=new Promise((function(t){Promise.resolve().then((function(){s=void 0,t(r())}))}))),s}),destroy:function(){u(),p=!0}};if(!B(t,e))return d;function u(){c.forEach((function(t){return t()})),c=[]}return d.setOptions(n).then((function(t){!p&&n.onFirstUpdate&&n.onFirstUpdate(t)})),d}}var F={passive:!0};// eslint-disable-next-line import/no-unused-modules
function W(t){return t.split("-")[0]}function R(t){return t.split("-")[1]}function q(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function H(t){var e,n=t.reference,i=t.element,a=t.placement,r=a?W(a):null,o=a?R(a):null,s=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(r){case S:e={x:s,y:n.y-i.height};break;case V:e={x:s,y:n.y+n.height};break;case N:e={x:n.x+n.width,y:l};break;case I:e={x:n.x-i.width,y:l};break;default:e={x:n.x,y:n.y}}var c=r?q(r):null;if(null!=c){var p="y"===c?"height":"width";switch(o){case O:e[c]=e[c]-(n[p]/2-i[p]/2);break;case z:e[c]=e[c]+(n[p]/2-i[p]/2)}}return e}
// eslint-disable-next-line import/no-unused-modules
var Z={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J(t){var e,n=t.popper,a=t.popperRect,r=t.placement,o=t.variation,s=t.offsets,l=t.position,p=t.gpuAcceleration,d=t.adaptive,u=t.roundOffsets,h=t.isFixed,f=s.x,b=void 0===f?0:f,g=s.y,x=void 0===g?0:g,y="function"==typeof u?u({x:b,y:x}):{x:b,y:x};b=y.x,x=y.y;var w=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),C=I,P=S,L=window;if(d){var O=k(n),T="clientHeight",E="clientWidth";if(O===i(n)&&"static"!==v(O=m(n)).position&&"absolute"===l&&(T="scrollHeight",E="scrollWidth"),r===S||(r===I||r===N)&&o===z)P=V,x-=(h&&O===L&&L.visualViewport?L.visualViewport.height:O[T])-a.height,x*=p?1:-1;if(r===I||(r===S||r===V)&&o===z)C=N,b-=(h&&O===L&&L.visualViewport?L.visualViewport.width:O[E])-a.width,b*=p?1:-1}var $,j=Object.assign({position:l},d&&Z),D=!0===u?function(t){var e=t.x,n=t.y,i=window.devicePixelRatio||1;return{x:c(e*i)/i||0,y:c(n*i)/i||0}}({x:b,y:x}):{x:b,y:x};return b=D.x,x=D.y,p?Object.assign({},j,(($={})[P]=_?"0":"",$[C]=w?"0":"",$.transform=(L.devicePixelRatio||1)<=1?"translate("+b+"px, "+x+"px)":"translate3d("+b+"px, "+x+"px, 0)",$)):Object.assign({},j,((e={})[P]=_?x+"px":"",e[C]=w?b+"px":"",e.transform="",e))}// eslint-disable-next-line import/no-unused-modules
const Y={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,a=n.offset,r=void 0===a?[0,0]:a,o=j.reduce((function(t,n){return t[n]=
// eslint-disable-next-line import/no-unused-modules
function(t,e,n){var i=W(t),a=[I,S].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},e,{placement:t})):n,o=r[0],s=r[1];return o=o||0,s=(s||0)*a,[I,N].indexOf(i)>=0?{x:s,y:o}:{x:o,y:s}}(n,e.rects,r),t}),{}),s=o[e.placement],l=s.x,c=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=o}};var X={left:"right",right:"left",bottom:"top",top:"bottom"};function G(t){return t.replace(/left|right|bottom|top/g,(function(t){return X[t]}))}var Q={start:"end",end:"start"};function K(t){return t.replace(/start|end/g,(function(t){return Q[t]}))}function tt(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&o(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function et(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function nt(t,e){return e===T?et(function(t){var e=i(t),n=m(t),a=e.visualViewport,r=n.clientWidth,o=n.clientHeight,s=0,l=0;return a&&(r=a.width,o=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=a.offsetLeft,l=a.offsetTop)),{width:r,height:o,x:s+h(t),y:l}}(t)):a(e)?function(t){var e=p(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):et(function(t){var e,n=m(t),i=d(t),a=null==(e=t.ownerDocument)?void 0:e.body,r=s(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=s(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-i.scrollLeft+h(t),c=-i.scrollTop;return"rtl"===v(a||n).direction&&(l+=s(n.clientWidth,a?a.clientWidth:0)-r),{width:r,height:o,x:l,y:c}}(m(t)))}function it(t,e,n){var i="clippingParents"===e?function(t){var e=w(x(t)),n=["absolute","fixed"].indexOf(v(t).position)>=0&&r(t)?k(t):t;return a(n)?e.filter((function(t){return a(t)&&tt(t,n)&&"body"!==u(t)})):[]}(t):[].concat(e),o=[].concat(i,[n]),c=o[0],p=o.reduce((function(e,n){var i=nt(t,n);return e.top=s(i.top,e.top),e.right=l(i.right,e.right),e.bottom=l(i.bottom,e.bottom),e.left=s(i.left,e.left),e}),nt(t,c));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}function at(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function rt(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}
// eslint-disable-next-line import/no-unused-modules
function ot(t,e){void 0===e&&(e={});var n=e,i=n.placement,r=void 0===i?t.placement:i,o=n.boundary,s=void 0===o?"clippingParents":o,l=n.rootBoundary,c=void 0===l?T:l,d=n.elementContext,u=void 0===d?E:d,h=n.altBoundary,v=void 0!==h&&h,f=n.padding,b=void 0===f?0:f,g=at("number"!=typeof b?b:rt(b,L)),x=u===E?"reference":E,y=t.rects.popper,w=t.elements[v?x:u],_=it(a(w)?w:w.contextElement||m(t.elements.popper),s,c),C=p(t.elements.reference),k=H({reference:C,element:y,strategy:"absolute",placement:r}),I=et(Object.assign({},y,k)),P=u===E?I:C,O={top:_.top-P.top+g.top,bottom:P.bottom-_.bottom+g.bottom,left:_.left-P.left+g.left,right:P.right-_.right+g.right},z=t.modifiersData.offset;if(u===E&&z){var $=z[r];Object.keys(O).forEach((function(t){var e=[N,V].indexOf(t)>=0?1:-1,n=[S,V].indexOf(t)>=0?"y":"x";O[t]+=$[n]*e}))}return O}function st(t,e,n){return s(t,l(e,n))}// eslint-disable-next-line import/no-unused-modules
const lt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,a=n.mainAxis,r=void 0===a||a,o=n.altAxis,c=void 0!==o&&o,p=n.boundary,d=n.rootBoundary,u=n.altBoundary,m=n.padding,h=n.tether,v=void 0===h||h,f=n.tetherOffset,b=void 0===f?0:f,x=ot(e,{boundary:p,rootBoundary:d,padding:m,altBoundary:u}),y=W(e.placement),w=R(e.placement),_=!w,C=q(y),P="x"===C?"y":"x",L=e.modifiersData.popperOffsets,z=e.rects.reference,T=e.rects.popper,E="function"==typeof b?b(Object.assign({},e.rects,{placement:e.placement})):b,$="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),j=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,D={x:0,y:0};if(L){if(r){var A,M="y"===C?S:I,B="y"===C?V:N,U="y"===C?"height":"width",F=L[C],H=F+x[M],Z=F-x[B],J=v?-T[U]/2:0,Y=w===O?z[U]:T[U],X=w===O?-T[U]:-z[U],G=e.elements.arrow,Q=v&&G?g(G):{width:0,height:0},K=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},tt=K[M],et=K[B],nt=st(0,z[U],Q[U]),it=_?z[U]/2-J-nt-tt-$.mainAxis:Y-nt-tt-$.mainAxis,at=_?-z[U]/2+J+nt+et+$.mainAxis:X+nt+et+$.mainAxis,rt=e.elements.arrow&&k(e.elements.arrow),lt=rt?"y"===C?rt.clientTop||0:rt.clientLeft||0:0,ct=null!=(A=null==j?void 0:j[C])?A:0,pt=F+at-ct,dt=st(v?l(H,F+it-ct-lt):H,F,v?s(Z,pt):Z);L[C]=dt,D[C]=dt-F}if(c){var ut,mt="x"===C?S:I,ht="x"===C?V:N,vt=L[P],ft="y"===P?"height":"width",bt=vt+x[mt],gt=vt-x[ht],xt=-1!==[S,I].indexOf(y),yt=null!=(ut=null==j?void 0:j[P])?ut:0,wt=xt?bt:vt-z[ft]-T[ft]-yt+$.altAxis,_t=xt?vt+z[ft]+T[ft]-yt-$.altAxis:gt,Ct=v&&xt?function(t,e,n){var i=st(t,e,n);return i>n?n:i}(wt,vt,_t):st(v?wt:bt,vt,v?_t:gt);L[P]=Ct,D[P]=Ct-vt}e.modifiersData[i]=D}},requiresIfExists:["offset"]};// eslint-disable-next-line import/no-unused-modules
const ct={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,a=t.options,r=n.elements.arrow,o=n.modifiersData.popperOffsets,s=W(n.placement),l=q(s),c=[I,N].indexOf(s)>=0?"height":"width";if(r&&o){var p=function(t,e){return at("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:rt(t,L))}(a.padding,n),d=g(r),u="y"===l?S:I,m="y"===l?V:N,h=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],v=o[l]-n.rects.reference[l],f=k(r),b=f?"y"===l?f.clientHeight||0:f.clientWidth||0:0,x=h/2-v/2,y=p[u],w=b-d[c]-p[m],_=b/2-d[c]/2+x,C=st(y,_,w),P=l;n.modifiersData[i]=((e={})[P]=C,e.centerOffset=C-_,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&tt(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pt(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function dt(t){return[S,N,V,I].some((function(e){return t[e]>=0}))}var ut=U({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,a=t.options,r=a.scroll,o=void 0===r||r,s=a.resize,l=void 0===s||s,c=i(e.elements.popper),p=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&p.forEach((function(t){t.addEventListener("scroll",n.update,F)})),l&&c.addEventListener("resize",n.update,F),function(){o&&p.forEach((function(t){t.removeEventListener("scroll",n.update,F)})),l&&c.removeEventListener("resize",n.update,F)}}// eslint-disable-next-line import/no-unused-modules
,data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=H({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}// eslint-disable-next-line import/no-unused-modules
,data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,a=void 0===i||i,r=n.adaptive,o=void 0===r||r,s=n.roundOffsets,l=void 0===s||s,c={placement:W(e.placement),variation:R(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,J(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,J(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}// eslint-disable-next-line import/no-unused-modules
,data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},a=e.elements[t];r(a)&&u(a)&&(Object.assign(a.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?a.removeAttribute(t):a.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],a=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});r(i)&&u(i)&&(Object.assign(i.style,o),Object.keys(a).forEach((function(t){i.removeAttribute(t)})))}))}}// eslint-disable-next-line import/no-unused-modules
,requires:["computeStyles"]},Y,{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var a=n.mainAxis,r=void 0===a||a,o=n.altAxis,s=void 0===o||o,l=n.fallbackPlacements,c=n.padding,p=n.boundary,d=n.rootBoundary,u=n.altBoundary,m=n.flipVariations,h=void 0===m||m,v=n.allowedAutoPlacements,f=e.options.placement,b=W(f),g=l||(b===f||!h?[G(f)]:
// eslint-disable-next-line import/no-unused-modules
function(t){if(W(t)===P)return[];var e=G(t);return[K(t),e,K(e)]}(f)),x=[f].concat(g).reduce((function(t,n){return t.concat(W(n)===P?function(t,e){void 0===e&&(e={});var n=e,i=n.placement,a=n.boundary,r=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?j:l,p=R(i),d=p?s?$:$.filter((function(t){return R(t)===p})):L,u=d.filter((function(t){return c.indexOf(t)>=0}));0===u.length&&(u=d);var m=u.reduce((function(e,n){return e[n]=ot(t,{placement:n,boundary:a,rootBoundary:r,padding:o})[W(n)],e}),{});return Object.keys(m).sort((function(t,e){return m[t]-m[e]}))}(e,{placement:n,boundary:p,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:v}):n)}),[]),y=e.rects.reference,w=e.rects.popper,_=new Map,C=!0,k=x[0],z=0;z<x.length;z++){var T=x[z],E=W(T),D=R(T)===O,A=[S,V].indexOf(E)>=0,M=A?"width":"height",B=ot(e,{placement:T,boundary:p,rootBoundary:d,altBoundary:u,padding:c}),U=A?D?N:I:D?V:S;y[M]>w[M]&&(U=G(U));var F=G(U),q=[];if(r&&q.push(B[E]<=0),s&&q.push(B[U]<=0,B[F]<=0),q.every((function(t){return t}))){k=T,C=!1;break}_.set(T,q)}if(C)for(var H=function(t){var e=x.find((function(e){var n=_.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return k=e,"break"},Z=h?3:1;Z>0;Z--){if("break"===H(Z))break}e.placement!==k&&(e.modifiersData[i]._skip=!0,e.placement=k,e.reset=!0)}}// eslint-disable-next-line import/no-unused-modules
,requiresIfExists:["offset"],data:{_skip:!1}},lt,ct,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,a=e.rects.popper,r=e.modifiersData.preventOverflow,o=ot(e,{elementContext:"reference"}),s=ot(e,{altBoundary:!0}),l=pt(o,i),c=pt(s,a,r),p=dt(l),d=dt(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":d})}// eslint-disable-next-line import/no-unused-modules
}]}),mt=n(9986);function ht(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const vt="customNavbar.items",ft="customNavbar.renderedItems";class bt{constructor(t){if(ht(this,"name",void 0),ht(this,"displayName",void 0),ht(this,"content",void 0),ht(this,"flexStyle","0 0 auto"),ht(this,"disabled",!1),ht(this,"href",null),ht(this,"active",!1),ht(this,"clickAction",none),ht(this,"contentMounted",none),ht(this,"notifyCount",0),ht(this,"touch",!1),ht(this,"loginRequired",!1),ht(this,"popupContent",null),ht(this,"popper",null),ht(this,"boundingWidth",0),ht(this,"noPopupPadding",!1),ht(this,"transparentPopup",!1),ht(this,"lazy",!0),ht(this,"hidden",!1),ht(this,"order",0),ht(this,"requestedPopup",void 0),Object.assign(this,t),!this.name)throw new Error("Missing CustomNavbarItem name");if(void 0===this.content)throw new Error("Missing CustomNavbarItem content");(0,mt.addComponentListener)("customNavbar.touch",(e=>{this.touch=!!e&&t.touch}),!0),this.hidden=bt.navbarOptions.hidden.includes(this.name);const e=bt.navbarOptions.order;this.order=e[this.name]||0,this.requestedPopup=!this.lazy}get element(){return dq(`.custom-navbar-item[data-name='${this.name}']`)}toString(){return this.name}usePopper(t,e){this.popper=ut(t,e,{placement:"bottom"})}}ht(bt,"navbarOptions",(0,mt.getComponentSettings)("customNavbar").options)},4646:(t,e,n)=>{"use strict";n.d(e,{I:()=>l});var i=n(9799),a=n(4577),r=n(3414),o=n(5441),s=n(9648);const l=(t,e)=>Vue.extend({components:{VLoading:s.VLoading,VEmpty:s.VEmpty,ScrollTrigger:s.ScrollTrigger},data:()=>({loading:!0,cards:[],hasMorePage:!0}),computed:{sortedCards(){return[...this.cards].sort((0,a.descendingStringSort)((t=>t.id)))}},async created(){await this.nextPage();const t=this.sortedCards;t.length>0&&(0,o.setLatestID)(t[0].id)},methods:{async nextPage(){try{const n=this.sortedCards,r=n[n.length-1]?.id??0,o=await(0,i.getFeeds)(t,r);if(console.log(o),0!==o.code)throw this.hasMorePage=!1,new Error(o.message);const s=lodash.get(o,"data.cards",[]).map(e);let l=(0,i.applyContentFilter)(n.concat(s).sort((0,a.descendingStringSort)((t=>t.id))).filter((t=>!(0,i.isPreOrderedVideo)(t))));if(l.length>0&&this.onCardsUpdate&&(l=this.onCardsUpdate(l)),console.log("nextPage get",l),this.cards=l,0===this.cards.length)return void(this.hasMorePage=!1);this.hasMorePage=0===r||Boolean(lodash.get(o,"data.has_more",!0))}catch(t){(0,r.logError)(t)}finally{this.loading=!1}}}})},8795:(t,e,n)=>{"use strict";n.d(e,{u:()=>a});var i=n(5090);const a=Vue.extend({props:{item:{type:i.kO,required:!0},container:{type:HTMLElement,required:!0}},mounted(){const t=this.item,e=this.container;e&&t?.usePopper(e,this.$el.parentElement)},methods:{popupShow(){this.item?.popper?.update()}}})},9754:(t,e,n)=>{"use strict";n.r(e),n.d(e,{loadNavbarSettings:()=>o,setTriggerElement:()=>r,toggleNavbarSettings:()=>s});var i=n(605);let a;const r=t=>{a&&(a.triggerElement=t)},o=async()=>{if(a)return!1;const t=await Promise.resolve().then(n.bind(n,3300)).then((t=>t.default));return a=(0,i.mountVueComponent)(t),document.body.insertAdjacentElement("beforeend",a.$el),!0},s=async()=>{a||await o(),a?.toggle()}},1524:(t,e,n)=>{"use strict";n.d(e,{N:()=>a,V:()=>o});var i=n(605);let a;!function(t){t.Bangumi="bangumi",t.Cinema="cinema"}(a||(a={}));const r=(0,i.getUID)(),o={name:"subscriptions",displayName:"订阅",content:"订阅",href:`https://space.bilibili.com/${r}/bangumi`,touch:!0,active:[`https://space.bilibili.com/${r}/bangumi`,`https://space.bilibili.com/${r}/cinema`,`https://space.bilibili.com/${r}/subs`].includes(document.URL.replace(/\?.*$/,"")),loginRequired:!0,boundingWidth:380,noPopupPadding:!0,popupContent:()=>Promise.resolve().then(n.bind(n,1976)).then((t=>t.default))}},9708:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,'.van-message-box {\n z-index: 10002 !important;\n}\nhtml {\n --navbar-height: 50px;\n --navbar-foreground: #555;\n --navbar-background: white;\n --navbar-bounds-padding: 10%;\n --navbar-icon-size: 24px;\n}\nbody.custom-navbar-loading::after {\n content: "";\n height: var(--navbar-height);\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n background-color: white;\n z-index: 10001;\n}\nbody.dark.custom-navbar-loading::after {\n background-color: #333;\n}\nbody.fixed-navbar .left-panel .adaptive-scroll .scroll-content {\n top: var(--navbar-height) !important;\n}\nbody.fixed-navbar.enable-feeds-filter .left-panel .adaptive-scroll .scroll-content,\nbody.fixed-navbar .right-panel .adaptive-scroll .scroll-content {\n top: calc(var(--navbar-height) + 8px) !important;\n}\nbody.fixed-navbar .bili-feed4 .header-channel {\n display: none !important;\n}\n.custom-navbar *,\n.custom-navbar {\n transition: all 0.2s ease-out;\n -webkit-tap-highlight-color: transparent;\n outline: none !important;\n}\n.custom-navbar {\n position: absolute;\n top: 0;\n left: 0;\n height: var(--navbar-height);\n width: 100%;\n background-color: var(--navbar-background);\n color: var(--navbar-foreground);\n z-index: 10001;\n display: flex;\n justify-content: center;\n line-height: normal;\n}\nbody.fixed-navbar .custom-navbar {\n position: fixed;\n}\nbody.player-mode-blackmask .custom-navbar {\n visibility: hidden;\n}\nbody.player-mode-webfullscreen .custom-navbar, body.player-fullscreen-fix .custom-navbar, body.player-full-win .custom-navbar {\n z-index: 1;\n}\n.custom-navbar svg.inherit-color path {\n fill: var(--navbar-foreground);\n}\n.custom-navbar svg.inherit-color.stroke,\n.custom-navbar svg.inherit-color.stroke path {\n fill: transparent;\n stroke: var(--navbar-foreground);\n}\n.custom-navbar.fill:not(.transparent) svg.inherit-color path {\n fill: var(--foreground-color-d);\n}\n.custom-navbar.fill:not(.transparent) svg.inherit-color.stroke,\n.custom-navbar.fill:not(.transparent) svg.inherit-color.stroke path {\n fill: transparent;\n stroke: var(--navbar-foreground-d);\n}\n.custom-navbar.shadow:not(.transparent) {\n box-shadow: rgba(0, 0, 0, 0.1333333333) 0 1px 10px 1px;\n}\nbody.dark .custom-navbar.shadow:not(.transparent) {\n box-shadow: rgba(0, 0, 0, 0.2666666667) 0px 2px 10px 1px;\n}\n.custom-navbar.blur:not(.transparent) {\n -webkit-backdrop-filter: blur(24px);\n backdrop-filter: blur(24px);\n --navbar-background: #fffc;\n}\nbody.dark .custom-navbar:not(.fill):not(.transparent) {\n --navbar-background: #222;\n --navbar-foreground: #eee;\n}\nbody.dark .custom-navbar:not(.fill):not(.transparent).blur {\n --navbar-background: #2228;\n}\n.custom-navbar.transparent {\n --navbar-background: transparent;\n --navbar-foreground: #eee;\n}\n.custom-navbar.transparent::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: calc(2 * var(--navbar-height));\n background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6666666667) 0, rgba(0, 0, 0, 0.2666666667) 65%, transparent 100%);\n pointer-events: none;\n}\n.custom-navbar.fill:not(.transparent) {\n --navbar-background: var(--theme-color);\n --navbar-foreground: var(--foreground-color-d);\n height: var(--navbar-height);\n width: 100%;\n}\n.custom-navbar.fill:not(.transparent).blur {\n --navbar-background: var(--theme-color-60);\n}\n.custom-navbar.fill.shadow:not(.transparent) {\n box-shadow: var(--theme-color-30) 0px 2px 10px 1px;\n}\n.custom-navbar .custom-navbar-items {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 100%;\n flex: 1 0 auto;\n color: inherit;\n}\n.custom-navbar .padding {\n max-width: var(--navbar-bounds-padding);\n flex: 1 1 0;\n transition: none;\n position: relative;\n}\n.custom-navbar .padding.peek::after,\n.custom-navbar .custom-navbar-items > *.peek::after {\n content: "";\n position: absolute;\n top: 0;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n border: 2px dashed;\n}\n.custom-navbar .padding.left-pad::after,\n.custom-navbar .custom-navbar-items > *.left-pad::after {\n left: 0;\n}\n.custom-navbar .padding.right-pad::after,\n.custom-navbar .custom-navbar-items > *.right-pad::after {\n right: 0;\n}\n.custom-navbar ~ .bili-gallery {\n z-index: 10002;\n}',""]),t.exports=i},9599:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,'.custom-navbar-item {\n color: inherit;\n position: relative;\n height: 100%;\n display: flex;\n align-items: center;\n}\n.custom-navbar-item .active-bar {\n position: absolute;\n left: 0;\n bottom: 0;\n background-color: var(--theme-color);\n width: 100%;\n height: 3px;\n border-radius: 1.5px;\n display: none;\n}\n.custom-navbar.transparent .custom-navbar-item .active-bar, .custom-navbar.fill .custom-navbar-item .active-bar {\n background-color: rgba(0, 0, 0, 0.3);\n}\n.custom-navbar-item.active .active-bar {\n display: flex;\n}\n.custom-navbar-item.view-border::before {\n content: "";\n width: 94%;\n height: 94%;\n border: 2px dashed var(--navbar-foreground);\n position: absolute;\n top: 3%;\n left: 3%;\n box-sizing: border-box;\n}\n.custom-navbar-item:not(.disabled) {\n cursor: pointer;\n}\n.custom-navbar-item:not(.disabled):hover {\n background-color: rgba(136, 136, 136, 0.1333333333);\n}\n.custom-navbar-item.disabled a {\n cursor: default;\n}\n.custom-navbar-item .main-content {\n transition: none;\n font-size: 10pt;\n height: 100%;\n display: flex;\n align-items: center;\n padding: 0 10px;\n color: var(--navbar-foreground);\n -webkit-user-select: none;\n user-select: none;\n}\n.custom-navbar-item .main-content:hover {\n color: var(--navbar-foreground) !important;\n}\n.custom-navbar-item.active .main-content {\n font-weight: 600;\n font-size: 11pt;\n}\n.custom-navbar-item .popup {\n color: black;\n background: white;\n box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05);\n border: 1px solid rgba(136, 136, 136, 0.1333333333);\n border-radius: 8px;\n transition: all 0.2s ease-out 0.2s;\n position: absolute;\n top: 100%;\n left: 50%;\n padding: 8px;\n pointer-events: none;\n opacity: 0;\n transform: translateX(-50%);\n cursor: default;\n}\nbody.dark .custom-navbar-item .popup {\n color: #eee;\n background: #222;\n}\n.custom-navbar-item .popup.iframe-container {\n border: none;\n box-shadow: none;\n}\n.custom-navbar-item .popup.iframe-container:not(.transparent) iframe {\n box-shadow: rgba(0, 0, 0, 0.2) 0 4px 8px 0px;\n}\n.custom-navbar-item .popup.no-padding {\n padding: 0;\n}\n.custom-navbar-item .popup.transparent {\n background-color: transparent !important;\n box-shadow: none;\n}\n.custom-navbar-item:not(.disabled) .popup-container {\n position: absolute;\n top: calc(100% - 8px);\n left: 50%;\n transition: all 0.2s ease-out 0.2s;\n pointer-events: none;\n}\n.custom-navbar-item:not(.disabled):hover .popup-container, .custom-navbar-item:not(.disabled).input-within .popup-container {\n top: 100%;\n}\n.custom-navbar-item:not(.disabled):hover .popup-container > .popup, .custom-navbar-item:not(.disabled).input-within .popup-container > .popup {\n pointer-events: initial;\n opacity: 1;\n}\n.custom-navbar-item a,\n.custom-navbar-item a:hover {\n color: inherit !important;\n text-decoration: none;\n}\n.custom-navbar-item .notify-count {\n position: absolute;\n left: 50%;\n top: 0;\n background-color: var(--theme-color);\n padding: 0 8px;\n display: flex;\n justify-content: center;\n font-size: 11px;\n transform: translateX(-50%);\n opacity: 0;\n line-height: 14px;\n white-space: nowrap;\n color: var(--foreground-color);\n border-radius: 0 0 8px 8px;\n}\n.custom-navbar-item .notify-count:not(:empty):not(.hidden) {\n opacity: 1;\n}\n.custom-navbar-item .notify-count.dot {\n color: transparent;\n border-radius: 50%;\n width: 8px;\n height: 8px;\n padding: 0;\n top: 2px;\n}\n.custom-navbar.fill .custom-navbar-item .notify-count {\n background-color: rgba(0, 0, 0, 0.3);\n}',""]),t.exports=i},8335:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,'.custom-navbar .favorites-list {\n width: 380px;\n height: 600px;\n min-height: 200px;\n max-height: calc(100vh - var(--navbar-height) - 12px);\n font-size: 12px;\n display: flex;\n align-items: stretch;\n flex-direction: column;\n gap: 0;\n justify-content: center;\n}\n.custom-navbar .favorites-list .be-empty,\n.custom-navbar .favorites-list .be-loading {\n align-self: center;\n flex: 1;\n}\n.custom-navbar .favorites-list .be-scroll-trigger {\n text-align: center;\n}\n.custom-navbar .favorites-list .header {\n display: flex;\n align-items: stretch;\n gap: 0;\n justify-content: space-between;\n margin: 16px 12px;\n}\n.custom-navbar .favorites-list .header .search {\n flex: 1;\n margin-left: 8px;\n}\n.custom-navbar .favorites-list .header .search .be-textbox {\n height: 100%;\n}\n.custom-navbar .favorites-list .header .list-select {\n flex-shrink: 0;\n height: 26px;\n}\n.custom-navbar .favorites-list .header .dropdown-popup {\n max-height: 300px;\n overflow: auto;\n scrollbar-width: none !important;\n overscroll-behavior: contain;\n}\n.custom-navbar .favorites-list .header .dropdown-popup::-webkit-scrollbar {\n height: 0 !important;\n width: 0 !important;\n}\n.custom-navbar .favorites-list .header .operation {\n margin-left: 8px;\n}\n.custom-navbar .favorites-list .header .more-info {\n display: flex;\n align-items: center;\n gap: 0;\n box-sizing: border-box;\n height: 26px;\n border-radius: 13px;\n padding: 4px;\n}\n.custom-navbar .favorites-list .header .play-all {\n display: flex;\n align-items: center;\n gap: 0;\n box-sizing: border-box;\n height: 26px;\n border-radius: 13px;\n padding: 4px;\n}\n.custom-navbar .favorites-list .content {\n display: flex;\n align-items: stretch;\n flex-direction: column;\n gap: 0;\n overflow: auto;\n scrollbar-width: none !important;\n overscroll-behavior: contain;\n justify-content: space-between;\n flex-grow: 1;\n}\n.custom-navbar .favorites-list .content::-webkit-scrollbar {\n height: 0 !important;\n width: 0 !important;\n}\n.custom-navbar .favorites-list .content .floating {\n box-sizing: border-box;\n height: 20px;\n border-radius: 10px;\n display: flex;\n align-items: center;\n gap: 0;\n background-color: rgba(0, 0, 0, 0.8);\n color: white;\n justify-content: center;\n cursor: pointer;\n}\n.custom-navbar .favorites-list .content .cards {\n flex: 1;\n scroll-behavior: smooth;\n position: relative;\n overflow: auto;\n scrollbar-width: none !important;\n overscroll-behavior: contain;\n padding: 0 12px;\n padding-bottom: 12px;\n}\n.custom-navbar .favorites-list .content .cards::-webkit-scrollbar {\n height: 0 !important;\n width: 0 !important;\n}\n.custom-navbar .favorites-list .content .cards-enter, .custom-navbar .favorites-list .content .cards-leave-to {\n opacity: 0;\n transform: translateY(-16px) scale(0.9);\n}\n.custom-navbar .favorites-list .content .cards-leave-active {\n transition: 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);\n position: absolute;\n}\n.custom-navbar .favorites-list .content .cards-leave-active.be-scroll-trigger {\n width: 100%;\n padding-bottom: 12px;\n}\n.custom-navbar .favorites-list .content .cards .favorite-card {\n cursor: pointer;\n flex-shrink: 0;\n border-radius: 8px;\n box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05);\n border: 1px solid rgba(136, 136, 136, 0.1333333333);\n color: black;\n background-color: #fff;\n display: grid;\n grid-template: "cover title" 2fr "cover info" 1fr/130px 1fr;\n height: 85px;\n}\nbody.dark .custom-navbar .favorites-list .content .cards .favorite-card {\n background-color: #282828;\n color: #eee;\n}\n.custom-navbar .favorites-list .content .cards .favorite-card:not(:last-child) {\n margin-bottom: 12px;\n}\n.custom-navbar .favorites-list .content .cards .favorite-card:hover .cover {\n transform: scale(1.05);\n}\n.custom-navbar .favorites-list .content .cards .favorite-card .cover-container {\n grid-area: cover;\n overflow: hidden;\n border-radius: 8px 0 0 8px;\n position: relative;\n}\n.custom-navbar .favorites-list .content .cards .favorite-card .cover-container .favorite-time {\n top: 6px;\n left: 6px;\n padding: 0 6px;\n}\n.custom-navbar .favorites-list .content .cards .favorite-card .cover-container .duration {\n left: 6px;\n bottom: 6px;\n padding: 0 6px;\n}\n.custom-navbar .favorites-list .content .cards .favorite-card .cover-container .floating {\n position: absolute;\n opacity: 0;\n font-size: 11px;\n}\n.custom-navbar .favorites-list .content .cards .favorite-card .cover-container .cover {\n object-fit: cover;\n}\n.custom-navbar .favorites-list .content .cards .favorite-card:hover .floating {\n opacity: 1;\n}\n.custom-navbar .favorites-list .content .cards .favorite-card .title {\n grid-area: title;\n font-size: 13px;\n font-weight: 600;\n display: -webkit-box;\n white-space: normal;\n overflow: hidden;\n text-overflow: ellipsis;\n word-break: break-all;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n line-height: 1.5;\n max-height: 3em;\n -webkit-box-align: start;\n margin: 0;\n margin-top: 8px;\n padding: 0 10px;\n}\n.custom-navbar .favorites-list .content .cards .favorite-card .title:hover {\n color: var(--theme-color) !important;\n}\n.custom-navbar .favorites-list .content .cards .favorite-card .up {\n flex: 0 1 auto;\n padding: 2px 10px 2px 2px;\n margin: 0 8px 6px;\n justify-self: start;\n align-self: center;\n max-width: calc(100% - 16px);\n display: flex;\n align-items: center;\n gap: 0;\n box-sizing: border-box;\n height: 24px;\n border-radius: 12px;\n border: 1px solid rgba(136, 136, 136, 0.1333333333);\n}\n.custom-navbar .favorites-list .content .cards .favorite-card .up:hover {\n background-color: rgba(136, 136, 136, 0.1333333333);\n}\n.custom-navbar .favorites-list .content .cards .favorite-card .up .face {\n border-radius: 50%;\n margin-right: 6px;\n height: 20px;\n width: 20px;\n object-fit: cover;\n}\nbody.dark .custom-navbar .favorites-list .content .cards .favorite-card .up .face.placeholder {\n filter: invert(0.9);\n}\n.custom-navbar .favorites-list .content .cards .favorite-card .up .name {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n font-size: 11px;\n}\n.custom-navbar .favorites-list .content .cards .favorite-card .up:hover .name {\n color: var(--theme-color);\n}\n.custom-navbar .favorites-list .content .cards .favorite-card .description {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 4px 10px;\n}',""]),t.exports=i},946:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,".navbar-feeds {\n width: 380px;\n height: 600px;\n min-height: 200px;\n max-height: calc(100vh - var(--navbar-height) - 12px);\n line-height: normal;\n white-space: nowrap;\n box-sizing: border-box;\n padding: 4px 4px 0 4px;\n font-size: 12px;\n}\n.navbar-feeds .be-tab-control {\n height: 100%;\n padding-top: 8px;\n box-sizing: border-box;\n}\n.navbar-feeds .be-tab-control .default-header .default-tabs .default-tab:not(:last-child) {\n margin-right: 16px;\n}",""]),t.exports=i},8167:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,".bangumi-feeds {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.bangumi-feeds .bangumi-feeds-content {\n align-self: stretch;\n}\n.bangumi-feeds .be-scroll-trigger {\n padding-bottom: 12px;\n}",""]),t.exports=i},910:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,".column-feeds {\n display: flex;\n flex-direction: column;\n align-items: center;\n}",""]),t.exports=i},2526:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,".live-feeds {\n width: 100%;\n display: flex;\n align-items: center;\n flex-direction: column;\n gap: 0;\n}\n.live-feeds .live-feeds-content {\n align-self: stretch;\n}\n.live-feeds .live-feeds-content-enter, .live-feeds .live-feeds-content-leave-to {\n opacity: 0;\n transform: translateY(-16px) scale(0.9);\n}\n.live-feeds .live-feeds-content-leave-active {\n transition: 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);\n position: absolute;\n}\n.live-feeds .live-feeds-content .live-card {\n margin: 0 8px 12px 8px;\n background-color: #fff;\n box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05);\n border: 1px solid rgba(136, 136, 136, 0.1333333333);\n display: flex;\n align-items: stretch;\n gap: 0;\n height: 54px;\n border-radius: 26px;\n box-sizing: border-box;\n padding: 2px;\n width: auto;\n flex-shrink: 0;\n}\nbody.dark .live-feeds .live-feeds-content .live-card {\n background-color: #282828;\n color: #eee;\n}\n.live-feeds .live-feeds-content .live-card .face-container {\n flex-shrink: 0;\n border-radius: 50%;\n height: 48px;\n overflow: hidden;\n}\n.live-feeds .live-feeds-content .live-card .face-container .face {\n height: 100%;\n width: 100%;\n}\n.live-feeds .live-feeds-content .live-card:hover .face {\n transform: scale(1.05);\n}\n.live-feeds .live-feeds-content .live-card .live-info {\n display: flex;\n align-items: stretch;\n flex-direction: column;\n gap: 0;\n flex: 1 0 0;\n width: 0;\n justify-content: center;\n}\n.live-feeds .live-feeds-content .live-card .live-title {\n font-size: 14px;\n font-weight: 600;\n padding: 0 12px;\n padding-bottom: 6px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: inherit;\n line-height: normal;\n}\n.live-feeds .live-feeds-content .live-card:hover .live-title {\n color: var(--theme-color);\n}\n.live-feeds .live-feeds-content .live-card .live-name {\n opacity: 0.75;\n padding: 0 12px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n line-height: normal;\n}",""]),t.exports=i},3031:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,".video-feeds[data-v-6e663916] {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-direction: column;\n flex: 1;\n padding: 0 8px;\n}\n.video-feeds .be-scroll-trigger[data-v-6e663916] {\n padding-bottom: 12px;\n}\n.video-feeds-content[data-v-6e663916] {\n flex: 1;\n align-self: stretch;\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n width: 356px;\n}\n.video-feeds-content .cards-enter[data-v-6e663916], .video-feeds-content .cards-leave-to[data-v-6e663916] {\n opacity: 0;\n transform: translateY(-16px) scale(0.9);\n}\n.video-feeds-content .cards-leave-active[data-v-6e663916] {\n transition: 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);\n position: absolute;\n}\n.video-feeds-content .left-column[data-v-6e663916],\n.video-feeds-content .right-column[data-v-6e663916] {\n display: flex;\n flex-direction: column;\n padding-bottom: 12px;\n}\n.video-feeds-content .left-column .video-card[data-v-6e663916],\n.video-feeds-content .right-column .video-card[data-v-6e663916] {\n --card-width: 174px;\n}\n.video-feeds-content .left-column .video-card[data-v-6e663916]:not(:last-child),\n.video-feeds-content .right-column .video-card[data-v-6e663916]:not(:last-child) {\n margin-bottom: 8px;\n}",""]),t.exports=i},3901:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,'.custom-navbar-history-list {\n width: 400px;\n height: 600px;\n min-height: 200px;\n max-height: calc(100vh - var(--navbar-height) - 12px);\n font-size: 12px;\n padding: 0;\n margin: 0;\n display: flex;\n align-items: stretch;\n flex-direction: column;\n gap: 0;\n justify-content: center;\n}\n.custom-navbar-history-list .header {\n display: flex;\n align-items: stretch;\n flex-direction: column;\n gap: 6px;\n margin: 16px 12px 4px 12px;\n}\n.custom-navbar-history-list .header .header-row {\n display: flex;\n align-items: stretch;\n gap: 8px;\n}\n.custom-navbar-history-list .header .header-row .row-title {\n display: flex;\n align-items: center;\n gap: 0;\n}\n.custom-navbar-history-list .header .type-filters {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n.custom-navbar-history-list .header .type-filters .type-filter .be-button {\n padding: 4px 8px 4px 6px;\n}\n.custom-navbar-history-list .header .search {\n flex: 1;\n}\n.custom-navbar-history-list .header .search .be-textbox {\n height: 100%;\n}\n.custom-navbar-history-list .header .operations {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n.custom-navbar-history-list .header .operations .operation .be-button {\n width: 26px;\n height: 26px;\n box-sizing: border-box;\n}\n.custom-navbar-history-list .content {\n display: flex;\n align-items: stretch;\n flex-direction: column;\n gap: 0;\n overflow: auto;\n scrollbar-width: none !important;\n overscroll-behavior: contain;\n justify-content: space-between;\n flex-grow: 1;\n}\n.custom-navbar-history-list .content::-webkit-scrollbar {\n height: 0 !important;\n width: 0 !important;\n}\n.custom-navbar-history-list .content .be-scroll-trigger,\n.custom-navbar-history-list .content .be-empty,\n.custom-navbar-history-list .content .be-loading {\n align-self: center;\n text-align: center;\n margin: 12px 0;\n}\n.custom-navbar-history-list .content .cards {\n flex: 1;\n scroll-behavior: smooth;\n position: relative;\n overflow: auto;\n scrollbar-width: none !important;\n overscroll-behavior: contain;\n padding-bottom: 12px;\n}\n.custom-navbar-history-list .content .cards-enter, .custom-navbar-history-list .content .cards-leave-to {\n opacity: 0;\n transform: translateY(-16px) scale(0.9);\n}\n.custom-navbar-history-list .content .cards-leave-active {\n transition: 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);\n position: absolute;\n}\n.custom-navbar-history-list .content .cards::-webkit-scrollbar {\n height: 0 !important;\n width: 0 !important;\n}\n.custom-navbar-history-list .content .cards .empty-tip {\n text-align: center;\n}\n.custom-navbar-history-list .content .cards .time-group-enter, .custom-navbar-history-list .content .cards .time-group-leave-to {\n opacity: 0;\n transform: translateY(-16px) scale(0.9);\n}\n.custom-navbar-history-list .content .cards .time-group-leave-active {\n transition: 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);\n position: absolute;\n}\n.custom-navbar-history-list .content .cards .time-group-name {\n padding: 8px 12px;\n font-size: 12px;\n position: sticky;\n top: 0;\n z-index: 1;\n background-color: #fff;\n}\nbody.dark .custom-navbar-history-list .content .cards .time-group-name {\n background-color: #222;\n}\n.custom-navbar-history-list .content .cards .time-group-items {\n padding: 0 12px;\n}\n.custom-navbar-history-list .content .cards .time-group-items .floating {\n box-sizing: border-box;\n height: 20px;\n border-radius: 10px;\n display: flex;\n align-items: center;\n gap: 0;\n background-color: rgba(0, 0, 0, 0.8);\n color: white;\n justify-content: center;\n position: absolute;\n opacity: 0;\n font-size: 11px;\n}\n.custom-navbar-history-list .content .cards .time-group-items .time-group-item {\n display: grid;\n grid-template: "cover title title" 5fr "cover up time" 6fr/80px 1fr auto;\n border-radius: 8px;\n color: black;\n background-color: #fff;\n box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05);\n border: 1px solid rgba(136, 136, 136, 0.1333333333);\n box-sizing: border-box;\n}\nbody.dark .custom-navbar-history-list .content .cards .time-group-items .time-group-item {\n background-color: #282828;\n color: #eee;\n}\n.custom-navbar-history-list .content .cards .time-group-items .time-group-item:not(:last-child) {\n margin-bottom: 8px;\n}\n.custom-navbar-history-list .content .cards .time-group-items .time-group-item:hover .cover {\n transform: scale(1.05);\n}\n.custom-navbar-history-list .content .cards .time-group-items .time-group-item:hover .floating {\n opacity: 1;\n}\n.custom-navbar-history-list .content .cards .time-group-items .time-group-item .cover-container {\n grid-area: cover;\n position: relative;\n height: 55px;\n overflow: hidden;\n border-radius: 7px 0 0 7px;\n}\n.custom-navbar-history-list .content .cards .time-group-items .time-group-item .cover-container .cover {\n object-fit: cover;\n width: 80px;\n height: 55px;\n}\nbody.dark .custom-navbar-history-list .content .cards .time-group-items .time-group-item .cover-container .cover.placeholder {\n filter: invert(0.9);\n}\n.custom-navbar-history-list .content .cards .time-group-items .time-group-item .cover-container .duration {\n left: 2px;\n bottom: 2px;\n padding: 0 6px;\n}\n.custom-navbar-history-list .content .cards .time-group-items .time-group-item .cover-container .live-status.on {\n background-color: var(--theme-color);\n color: var(--foreground-color);\n}\n.custom-navbar-history-list .content .cards .time-group-items .time-group-item .cover-container .progress-number {\n left: 2px;\n top: 2px;\n padding: 0 6px;\n}\n.custom-navbar-history-list .content .cards .time-group-items .time-group-item .cover-container .progress {\n position: absolute;\n bottom: 0;\n left: 0;\n height: 2px;\n border-radius: 1px;\n background-color: var(--theme-color);\n}\n.custom-navbar-history-list .content .cards .time-group-items .time-group-item .title {\n font-weight: 600;\n grid-area: title;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n align-self: end;\n margin: 0;\n line-height: normal;\n display: block;\n padding-left: 8px;\n padding-right: 6px;\n font-size: 13px;\n}\n.custom-navbar-history-list .content .cards .time-group-items .time-group-item .title:hover {\n color: var(--theme-color) !important;\n}\n.custom-navbar-history-list .content .cards .time-group-items .time-group-item .up,\n.custom-navbar-history-list .content .cards .time-group-items .time-group-item .time {\n font-size: 11px;\n opacity: 0.75;\n align-self: center;\n}\n.custom-navbar-history-list .content .cards .time-group-items .time-group-item .up {\n grid-area: up;\n display: flex;\n align-items: center;\n gap: 0;\n padding-left: 8px;\n opacity: 1;\n}\n.custom-navbar-history-list .content .cards .time-group-items .time-group-item .up .be-icon {\n margin-right: 4px;\n font-size: 14px;\n}\n.custom-navbar-history-list .content .cards .time-group-items .time-group-item .up-face {\n border-radius: 50%;\n width: 18px;\n height: 18px;\n margin-right: 4px;\n}\n.custom-navbar-history-list .content .cards .time-group-items .time-group-item .up-name {\n white-space: nowrap;\n max-width: 160px;\n overflow: hidden;\n text-overflow: ellipsis;\n opacity: 0.75;\n}\n.custom-navbar-history-list .content .cards .time-group-items .time-group-item .up-name:hover {\n opacity: 1;\n}\n.custom-navbar-history-list .content .cards .time-group-items .time-group-item .time {\n font-size: 11px;\n grid-area: time;\n padding-right: 6px;\n}',""]),t.exports=i},3753:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,'.custom-navbar .home-popup {\n max-height: 75vh;\n display: flex;\n flex-wrap: wrap;\n flex-direction: row;\n writing-mode: vertical-lr;\n}\n.custom-navbar .home-popup > * {\n writing-mode: horizontal-tb;\n}\n.custom-navbar .home-popup .category-item {\n border-radius: 8px;\n font-size: 12pt;\n cursor: pointer;\n position: relative;\n box-sizing: border-box;\n}\n.custom-navbar .home-popup .category-item.loading {\n font-size: 10pt;\n cursor: initial;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.custom-navbar .home-popup .category-item:not(.loading):hover {\n background-color: rgba(136, 136, 136, 0.1333333333);\n}\n.custom-navbar .home-popup .category-item a {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px;\n}\n.custom-navbar .home-popup .category-item a.sub-region {\n position: relative;\n padding: 8px;\n display: flex;\n justify-content: flex-start;\n border-bottom: 2px solid transparent;\n font-size: 15px;\n line-height: normal;\n}\n.custom-navbar .home-popup .category-item a.sub-region::before {\n content: "";\n position: absolute;\n top: calc(100% - 4px);\n left: 8px;\n width: calc(100% - 16px);\n height: 2px;\n border-radius: 2px;\n background-color: var(--theme-color);\n transition: 0.16s 0.1s ease-out;\n transform: scaleX(0);\n}\n.custom-navbar .home-popup .category-item a.sub-region:hover::before {\n transform: scaleX(1);\n}\n.custom-navbar .home-popup .category-item svg {\n width: 25px;\n height: 25px;\n fill: currentColor;\n margin-right: 10px;\n}\n.custom-navbar .home-popup .category-item .name {\n flex: 1 0 auto;\n}\n.custom-navbar .home-popup .category-item.main {\n min-width: 150px;\n}\n.custom-navbar .home-popup .category-item .sub-regions-popup {\n z-index: 10002;\n width: max-content;\n transform: scaleX(0);\n transform-origin: left;\n padding: 6px;\n left: 100%;\n top: 0;\n transition-delay: 0.3s;\n pointer-events: initial;\n}\n.custom-navbar .home-popup .category-item:hover .sub-regions-popup {\n transform: scaleX(1);\n opacity: 1;\n}\n.custom-navbar .home-popup .category-item .count {\n opacity: 0.5;\n font-size: 14px;\n}',""]),t.exports=i},2883:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,".custom-navbar-logo-container {\n display: flex;\n align-items: stretch;\n flex-direction: column;\n gap: 0;\n justify-content: center;\n height: 100%;\n padding: 8px 0;\n box-sizing: border-box;\n max-height: 54px;\n width: calc(var(--navbar-height) * 1.3);\n}\n.custom-navbar:not(.fill) .custom-navbar-logo:not(.season) {\n color: var(--theme-color);\n}\n.custom-navbar-logo.be-icon {\n --size: calc(var(--navbar-height) / 2) !important;\n width: 100%;\n max-height: 32px;\n}\n.custom-navbar-logo.season {\n height: 0;\n flex: 1 0 0;\n background-size: contain;\n background-position: center;\n background-repeat: no-repeat;\n filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.1333333333));\n}\nbody.season-logo-enabled .bili-header .inner-logo {\n display: none !important;\n}",""]),t.exports=i},9090:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,'.messages-popup[data-v-589ce0fa] {\n width: max-content;\n}\n.messages-popup .message-entry a[data-v-589ce0fa] {\n position: relative;\n padding: 8px;\n display: flex;\n justify-content: flex-start;\n border-bottom: 2px solid transparent;\n font-size: 15px;\n line-height: normal;\n}\n.messages-popup .message-entry a[data-v-589ce0fa]::before {\n content: "";\n position: absolute;\n top: calc(100% - 4px);\n left: 8px;\n width: calc(100% - 16px);\n height: 2px;\n border-radius: 2px;\n background-color: var(--theme-color);\n transition: 0.16s 0.1s ease-out;\n transform: scaleX(0);\n}\n.messages-popup .message-entry a[data-v-589ce0fa]:hover::before {\n transform: scaleX(1);\n}\n.messages-popup .message-entry a[data-count][data-v-589ce0fa]::after {\n content: attr(data-count);\n position: absolute;\n left: 100%;\n top: 50%;\n transform: translateY(-50%);\n background-color: var(--theme-color);\n color: var(--foreground-color);\n padding: 0 6px;\n display: flex;\n justify-content: center;\n font-size: 9pt;\n border-radius: 6px;\n white-space: nowrap;\n}',""]),t.exports=i},6217:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,'.ranking-popup[data-v-6678d691] {\n width: max-content;\n}\n.ranking-popup .ranking-entry a[data-v-6678d691] {\n position: relative;\n padding: 8px;\n display: flex;\n justify-content: flex-start;\n border-bottom: 2px solid transparent;\n font-size: 15px;\n line-height: normal;\n}\n.ranking-popup .ranking-entry a[data-v-6678d691]::before {\n content: "";\n position: absolute;\n top: calc(100% - 4px);\n left: 8px;\n width: calc(100% - 16px);\n height: 2px;\n border-radius: 2px;\n background-color: var(--theme-color);\n transition: 0.16s 0.1s ease-out;\n transform: scaleX(0);\n}\n.ranking-popup .ranking-entry a[data-v-6678d691]:hover::before {\n transform: scaleX(1);\n}',""]),t.exports=i},6508:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,".custom-navbar .launch-bar {\n --color: var(--custom-navbar-foreground);\n background-color: rgba(0, 0, 0, 0.6666666667);\n opacity: 0.5;\n transition: opacity 0.2s ease-out;\n padding: 2px 6px;\n border-radius: 8px;\n}\n.custom-navbar .launch-bar:hover, .custom-navbar .launch-bar:focus-within {\n opacity: 1;\n}\n.custom-navbar .launch-bar .input-area .launch-bar-form .input {\n padding: 8px 6px;\n}\n.custom-navbar:not(.transparent) .launch-bar {\n background-color: rgba(136, 136, 136, 0.2);\n}\n.custom-navbar.fill:not(.transparent) .launch-bar {\n background-color: rgba(0, 0, 0, 0.1333333333);\n}\n.custom-navbar-search {\n align-self: center;\n display: flex;\n}",""]),t.exports=i},7340:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,".custom-navbar-extra-options {\n display: flex;\n align-items: center;\n justify-content: center;\n}",""]),t.exports=i},5596:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,".custom-navbar-settings {\n background-color: #fff;\n color: black;\n border-radius: 8px;\n border: 1px solid rgba(136, 136, 136, 0.1333333333);\n box-sizing: border-box;\n box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05);\n width: 400px;\n font-size: 14px;\n padding: 12px 12px 12px 18px;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%) scale(0.95);\n transition: 0.2s ease-out;\n z-index: 100002;\n}\nbody.dark .custom-navbar-settings {\n box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.2);\n}\nbody.dark .custom-navbar-settings {\n background-color: #282828;\n color: #eee;\n}\nbody.dark .custom-navbar-settings {\n background-color: #222;\n}\n.custom-navbar-settings.open {\n transform: translateX(-50%) translateY(-50%) scale(1);\n}\n.custom-navbar-settings .navbar-settings-header {\n display: flex;\n align-items: center;\n gap: 0;\n justify-content: space-between;\n}\n.custom-navbar-settings .navbar-settings-header .title {\n margin-left: 6px;\n font-size: 18px;\n font-weight: 600;\n}\n.custom-navbar-settings .navbar-settings-header .grow {\n flex: 1;\n}\n.custom-navbar-settings .navbar-settings-header .close {\n padding: 6px;\n cursor: pointer;\n transition: 0.2s ease-out;\n}\n.custom-navbar-settings .navbar-settings-header .close:hover {\n color: var(--theme-color);\n}\n.custom-navbar-settings .navbar-settings-content .navbar-settings-section {\n margin-top: 12px;\n}\n.custom-navbar-settings .navbar-settings-content .navbar-settings-section > :not(:last-child) {\n margin-bottom: 6px;\n}\n.custom-navbar-settings .navbar-settings-content .navbar-settings-section-title {\n font-size: 14px;\n}\n.custom-navbar-settings .navbar-settings-content .navbar-settings-section-description {\n font-size: 12px;\n opacity: 0.6;\n line-height: 1.5;\n}\n.custom-navbar-settings .navbar-settings-content .navbar-settings-section-content {\n display: flex;\n align-items: center;\n gap: 0;\n flex-wrap: wrap;\n}\n.custom-navbar-settings .navbar-settings-content .navbar-settings-section-content .be-slider {\n margin: 0 4px;\n flex: 1;\n}\n.custom-navbar-settings .navbar-settings-content .navbar-settings-section-content .padding-value {\n margin-left: 12px;\n width: 50px;\n text-align: end;\n}\n.custom-navbar-settings .navbar-settings-content .navbar-settings-section-content .navbar-sort-item {\n background-color: #fff;\n color: black;\n border-radius: 8px;\n border: 1px solid rgba(136, 136, 136, 0.1333333333);\n box-sizing: border-box;\n box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05);\n display: flex;\n align-items: center;\n gap: 0;\n transition: none;\n white-space: nowrap;\n padding: 6px;\n padding-left: 8px;\n margin: 0 4px 4px 0;\n cursor: move;\n}\nbody.dark .custom-navbar-settings .navbar-settings-content .navbar-settings-section-content .navbar-sort-item {\n box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.2);\n}\nbody.dark .custom-navbar-settings .navbar-settings-content .navbar-settings-section-content .navbar-sort-item {\n background-color: #282828;\n color: #eee;\n}\n.custom-navbar-settings .navbar-settings-content .navbar-settings-section-content .navbar-sort-item:hover {\n border-color: var(--theme-color);\n}\n.custom-navbar-settings .navbar-settings-content .navbar-settings-section-content .navbar-sort-item.navbar-hidden {\n opacity: 0.5;\n}\n.custom-navbar-settings .navbar-settings-content .navbar-settings-section-content .navbar-sort-item.sortable-ghost {\n opacity: 0;\n}\n.custom-navbar-settings .navbar-settings-content .navbar-settings-section-content .navbar-sort-item.sortable-chosen {\n box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.16);\n transform: scale(1.05);\n}\n.custom-navbar-settings .navbar-settings-content .navbar-settings-section-content .navbar-sort-item.sortable-drag {\n opacity: 1;\n}\n.custom-navbar-settings .navbar-settings-content .navbar-settings-section-content .navbar-sort-item.sortable-drag.navbar-hidden {\n opacity: 0.5;\n}\n.custom-navbar-settings .navbar-settings-content .navbar-settings-section-content .navbar-sort-item .toggle-visible {\n margin-left: 6px;\n cursor: pointer;\n}",""]),t.exports=i},831:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,".navbar-subscriptions {\n width: 380px;\n height: 600px;\n min-height: 200px;\n max-height: calc(100vh - var(--navbar-height) - 12px);\n padding: 0 4px 0 4px;\n box-sizing: border-box;\n font-size: 12px;\n}\n.navbar-subscriptions .be-tab-control {\n padding-top: 12px;\n height: 100%;\n box-sizing: border-box;\n}\n.navbar-subscriptions .be-tab-control .default-content {\n padding-bottom: 0;\n}",""]),t.exports=i},6205:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,".subscription-list {\n width: 100%;\n box-sizing: border-box;\n padding: 0 8px;\n display: flex;\n align-items: center;\n flex-direction: column;\n}\n.subscription-list .be-scroll-trigger {\n padding-bottom: 12px;\n}\n.subscription-list .subscription-content {\n align-self: stretch;\n display: flex;\n flex-direction: column;\n}\n.subscription-list .subscription-content .subscription-card {\n position: relative;\n display: flex;\n margin-bottom: 12px;\n flex-shrink: 0;\n background-color: #fff;\n box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05);\n border: 1px solid rgba(136, 136, 136, 0.1333333333);\n border-radius: 8px;\n}\nbody.dark .subscription-list .subscription-content .subscription-card {\n background-color: #2d2d2d;\n color: #eee;\n}\n.subscription-list .subscription-content .subscription-card .cover-container {\n height: 64px;\n width: 64px;\n border-radius: 8px 0 0 8px;\n overflow: hidden;\n}\n.subscription-list .subscription-content .subscription-card .cover-container .cover {\n height: 100%;\n width: 100%;\n}\n.subscription-list .subscription-content .subscription-card:hover .cover {\n transform: scale(1.05);\n}\n.subscription-list .subscription-content .subscription-card .card-info {\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n padding: 0 12px;\n max-width: calc(100% - 24px - 64px);\n box-sizing: content-box;\n}\n.subscription-list .subscription-content .subscription-card .info {\n padding: 2px;\n border-radius: 14px;\n line-height: 1;\n}\n.subscription-list .subscription-content .subscription-card .info:hover {\n color: var(--theme-color) !important;\n}\n.subscription-list .subscription-content .subscription-card .progress-row {\n display: flex;\n padding-bottom: 8px;\n justify-content: space-between;\n align-self: stretch;\n align-items: center;\n}\n.subscription-list .subscription-content .subscription-card .status {\n padding: 0 4px;\n background-color: rgba(136, 136, 136, 0.1333333333);\n border: 1px solid rgba(136, 136, 136, 0.2666666667);\n border-radius: 4px;\n opacity: 0.75;\n}\n.subscription-list .subscription-content .subscription-card .status.status-2 {\n background-color: var(--theme-color-10);\n border-color: var(--theme-color-30);\n opacity: 1;\n}\n.subscription-list .subscription-content .subscription-card .progress {\n white-space: nowrap;\n width: 0;\n flex-grow: 1;\n margin: 0 8px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.subscription-list .subscription-content .subscription-card .title {\n font-size: 14px;\n font-weight: 600;\n padding-top: 4px;\n color: inherit;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n width: 100%;\n margin: 0;\n flex: 1;\n display: flex;\n align-items: center;\n gap: 0;\n}\n.subscription-list .subscription-content .subscription-card:hover .title {\n color: var(--theme-color);\n}",""]),t.exports=i},9871:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,".navbar-upload[data-v-1a272463] {\n display: flex;\n align-items: center;\n}\n.navbar-upload-name[data-v-1a272463] {\n padding-left: 4px;\n font-size: 12pt;\n font-weight: bold;\n}",""]),t.exports=i},3094:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,'.upload-popup[data-v-a07cc62e] {\n width: max-content;\n}\n.upload-popup a[data-v-a07cc62e] {\n position: relative;\n padding: 8px;\n display: flex;\n justify-content: flex-start;\n border-bottom: 2px solid transparent;\n font-size: 15px;\n line-height: normal;\n}\n.upload-popup a[data-v-a07cc62e]::before {\n content: "";\n position: absolute;\n top: calc(100% - 4px);\n left: 8px;\n width: calc(100% - 16px);\n height: 2px;\n border-radius: 2px;\n background-color: var(--theme-color);\n transition: 0.16s 0.1s ease-out;\n transform: scaleX(0);\n}\n.upload-popup a[data-v-a07cc62e]:hover::before {\n transform: scaleX(1);\n}',""]),t.exports=i},2603:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,".user-face-container {\n position: relative;\n height: calc(var(--navbar-height) - 16px);\n width: calc(var(--navbar-height) - 16px);\n max-width: 36px;\n max-height: 36px;\n}\n.user-face-container .user-face,\n.user-face-container .user-pendant {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n.custom-navbar-item:hover .user-face-container .user-face,\n.custom-navbar-item:hover .user-face-container .user-pendant {\n transform: scale(2) translateY(10px);\n z-index: 100;\n opacity: 1;\n}\n.user-face-container .user-face {\n background-color: transparent;\n background-size: contain;\n border-radius: 50%;\n}\n.user-face-container .user-pendant {\n background-color: transparent;\n background-size: cover;\n width: 170%;\n height: 170%;\n top: -12px;\n left: -12px;\n opacity: 0;\n pointer-events: none;\n}",""]),t.exports=i},6600:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,".user-info-panel {\n border-radius: 8px;\n overflow: hidden;\n width: 240px;\n font-size: 12px;\n}\n.user-info-panel .circle {\n position: relative;\n width: var(--navbar-icon-size);\n height: var(--navbar-icon-size);\n opacity: 0.7;\n}\n.user-info-panel .circle .mdi {\n position: absolute;\n top: 0;\n left: 0;\n}\n.user-info-panel .mdi-circle ~ .mdi {\n filter: invert(1);\n font-size: calc(var(--navbar-icon-size) - 10px);\n line-height: calc(var(--navbar-icon-size) - 10px);\n transform: translate(5px, 5px);\n}\n.user-info-panel .be-icon {\n font-style: normal;\n}\n.user-info-panel .logged-in {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: space-between;\n}\n.user-info-panel .row,\n.user-info-panel .items {\n align-self: stretch;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.user-info-panel .items {\n padding-top: 4px;\n}\n.user-info-panel .row {\n margin: 0 10px;\n width: auto !important;\n}\n.user-info-panel .row::after {\n content: none !important;\n}\n.user-info-panel .row.level-info {\n margin-bottom: -5px;\n}\n.user-info-panel .privileges {\n justify-content: center;\n}\n.user-info-panel .privileges > * {\n font-size: 11px;\n background-color: rgba(136, 136, 136, 0.1333333333);\n padding: 2px 4px;\n margin: 0 2px;\n border-radius: 4px;\n line-height: normal;\n cursor: pointer;\n}\n.user-info-panel .privileges > *.received {\n cursor: default;\n opacity: 0.5;\n}\n.user-info-panel .privileges > *:not(.received):hover {\n background-color: rgba(136, 136, 136, 0.2666666667);\n}\n.user-info-panel .bv-custom-navbar-operation {\n height: 36px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n align-self: stretch;\n}\n.user-info-panel .bv-custom-navbar-operation:hover {\n background-color: rgba(136, 136, 136, 0.1333333333);\n}\n.user-info-panel .bv-custom-navbar-operation .be-icon {\n position: absolute;\n left: 10px;\n top: 50%;\n transform: translateY(-50%);\n background: none;\n}\n.user-info-panel .item {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n height: 48px;\n flex: 1;\n}\n.user-info-panel .item > .be-icon {\n opacity: 0.7;\n}\n.user-info-panel .item > .be-icon:nth-child(2) {\n font-size: 18px;\n line-height: 18px;\n}\n.user-info-panel .item span {\n font-size: 14px;\n font-weight: bold;\n opacity: 0.7;\n}\n.user-info-panel .welcome,\n.user-info-panel .name {\n font-size: 16px;\n font-weight: 600;\n margin: 46px 0 16px 0;\n text-align: center;\n color: inherit;\n}\n.user-info-panel .name {\n margin: 62px 0 0 0;\n}\n.user-info-panel .name:hover {\n color: var(--theme-color) !important;\n}\n.user-info-panel .type {\n font-size: 11px;\n opacity: 0.5;\n margin: 6px 0;\n}\n.user-info-panel .separator {\n height: 1px;\n align-self: stretch;\n margin: 5px 10px;\n background: rgba(0, 0, 0, 0.1);\n}\nbody.dark .user-info-panel .separator {\n background: rgba(255, 255, 255, 0.1);\n}\n.user-info-panel .level-icon.plus {\n max-height: 24px;\n}\n.user-info-panel .level-progress-thumb {\n width: 100%;\n height: 100%;\n background: var(--theme-color);\n transform-origin: left;\n}\n.user-info-panel .level-progress-label {\n font-size: 11px;\n}\n.user-info-panel .stats {\n display: flex;\n align-items: center;\n align-self: stretch;\n margin: 0 10px;\n line-height: normal;\n}\n.user-info-panel .stats-item {\n padding: 6px 0;\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n transition: none;\n}\n.user-info-panel .stats-item:hover {\n color: var(--theme-color) !important;\n}\n.user-info-panel .stats-item .stats-number {\n font-weight: 600;\n margin-bottom: 4px;\n font-size: 14px;\n transition: none;\n}\n.user-info-panel .grey-button,\n.user-info-panel .theme-button {\n align-self: stretch;\n height: 36px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 6px;\n border-radius: 4px;\n font-size: 14px;\n}\n.user-info-panel .grey-button {\n background: #f8f8f8;\n color: inherit !important;\n}\n.user-info-panel .grey-button:hover {\n background: #f0f0f0;\n}\n.user-info-panel .grey-button.logout {\n font-size: 12px;\n height: 32px;\n cursor: pointer;\n}\n.user-info-panel .grey-button.logout:hover {\n color: inherit !important;\n}\nbody.dark .user-info-panel .grey-button {\n background: #282828;\n}\nbody.dark .user-info-panel .grey-button:hover {\n background: #333;\n}\n.user-info-panel .theme-button {\n background: var(--theme-color);\n color: var(--foreground-color) !important;\n}\n.user-info-panel .theme-button:hover {\n background: var(--theme-color-90);\n color: var(--foreground-color) !important;\n}",""]),t.exports=i},1767:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,'.custom-navbar .watchlater-list {\n height: 600px;\n min-height: 200px;\n max-height: calc(100vh - var(--navbar-height) - 12px);\n width: 380px;\n font-size: 12px;\n display: flex;\n flex-flow: column nowrap;\n justify-content: space-between;\n align-items: center;\n}\n.custom-navbar .watchlater-list .round-button {\n box-sizing: border-box;\n height: 26px;\n border-radius: 13px;\n display: flex;\n align-items: center;\n gap: 0;\n justify-content: center;\n cursor: pointer;\n width: 26px;\n}\n.custom-navbar .watchlater-list .floating {\n box-sizing: border-box;\n height: 20px;\n border-radius: 10px;\n display: flex;\n align-items: center;\n gap: 0;\n background-color: rgba(0, 0, 0, 0.8);\n color: white;\n justify-content: center;\n cursor: pointer;\n}\n.custom-navbar .watchlater-list .header {\n display: flex;\n align-items: stretch;\n gap: 0;\n justify-content: space-between;\n align-self: stretch;\n margin: 16px 12px;\n}\n.custom-navbar .watchlater-list .header .search {\n position: relative;\n flex-grow: 1;\n margin-right: 8px;\n}\n.custom-navbar .watchlater-list .header .search .be-textbox {\n height: 100%;\n}\n.custom-navbar .watchlater-list .header .operations {\n display: flex;\n align-items: center;\n gap: 0;\n}\n.custom-navbar .watchlater-list .header .operations .round-button:not(:last-child) {\n margin-right: 4px;\n}\n.custom-navbar .watchlater-list .header .operation:not(:last-child) {\n margin-right: 8px;\n}\n.custom-navbar .watchlater-list .header .more-info {\n display: flex;\n align-items: center;\n gap: 0;\n box-sizing: border-box;\n height: 28px;\n border-radius: 14px;\n padding: 4px 6px 4px 10px;\n}\n.custom-navbar .watchlater-list .be-empty,\n.custom-navbar .watchlater-list .be-loading {\n flex: 1;\n}\n.custom-navbar .watchlater-list-content {\n flex: 1;\n align-self: stretch;\n scroll-behavior: smooth;\n position: relative;\n overflow: auto;\n scrollbar-width: none !important;\n overscroll-behavior: contain;\n padding: 0 12px;\n padding-bottom: 12px;\n}\n.custom-navbar .watchlater-list-content::-webkit-scrollbar {\n height: 0 !important;\n width: 0 !important;\n}\n.custom-navbar .watchlater-list-content .watchlater-card {\n cursor: pointer;\n flex-shrink: 0;\n border-radius: 8px;\n color: black;\n background-color: #fff;\n box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.05);\n border: 1px solid rgba(136, 136, 136, 0.1333333333);\n display: grid;\n grid-template: "cover title" 2fr "cover info" 1fr/130px 1fr;\n height: 85px;\n}\n.custom-navbar .watchlater-list-content .watchlater-card.cards-enter, .custom-navbar .watchlater-list-content .watchlater-card.cards-leave-to {\n opacity: 0;\n transform: translateY(-16px) scale(0.9);\n}\n.custom-navbar .watchlater-list-content .watchlater-card.cards-leave-active {\n transition: 0.24s cubic-bezier(0.22, 0.61, 0.36, 1);\n position: absolute;\n}\nbody.dark .custom-navbar .watchlater-list-content .watchlater-card {\n background-color: #282828;\n color: #eee;\n}\n.custom-navbar .watchlater-list-content .watchlater-card:not(:last-child) {\n margin-bottom: 12px;\n}\n.custom-navbar .watchlater-list-content .watchlater-card:hover .cover {\n transform: scale(1.05);\n}\n.custom-navbar .watchlater-list-content .watchlater-card .cover-container {\n grid-area: cover;\n overflow: hidden;\n border-radius: 8px 0 0 8px;\n position: relative;\n}\n.custom-navbar .watchlater-list-content .watchlater-card .cover-container .remove {\n top: 6px;\n left: 6px;\n width: 20px;\n}\n.custom-navbar .watchlater-list-content .watchlater-card .cover-container .duration {\n left: 6px;\n bottom: 6px;\n padding: 0 6px;\n}\n.custom-navbar .watchlater-list-content .watchlater-card .cover-container .viewed {\n white-space: nowrap;\n right: 6px;\n top: 6px;\n padding: 0 6px;\n}\n.custom-navbar .watchlater-list-content .watchlater-card .cover-container .floating {\n position: absolute;\n opacity: 0;\n font-size: 11px;\n}\n.custom-navbar .watchlater-list-content .watchlater-card .cover-container .cover {\n object-fit: cover;\n}\n.custom-navbar .watchlater-list-content .watchlater-card:hover .floating {\n opacity: 1;\n}\n.custom-navbar .watchlater-list-content .watchlater-card .title {\n grid-area: title;\n font-size: 13px;\n font-weight: 600;\n margin: 0;\n margin-top: 8px;\n padding: 0 10px;\n display: -webkit-box;\n white-space: normal;\n overflow: hidden;\n text-overflow: ellipsis;\n word-break: break-all;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n line-height: 1.5;\n max-height: 3em;\n}\n.custom-navbar .watchlater-list-content .watchlater-card .title:hover {\n color: var(--theme-color) !important;\n}\n.custom-navbar .watchlater-list-content .watchlater-card .up {\n flex: 0 1 auto;\n padding: 2px 10px 2px 2px;\n margin: 0 8px 6px;\n justify-self: start;\n align-self: center;\n max-width: calc(100% - 16px);\n display: flex;\n align-items: center;\n gap: 0;\n box-sizing: border-box;\n height: 24px;\n border-radius: 12px;\n border: 1px solid rgba(136, 136, 136, 0.1333333333);\n}\n.custom-navbar .watchlater-list-content .watchlater-card .up:hover {\n background-color: rgba(136, 136, 136, 0.1333333333);\n}\n.custom-navbar .watchlater-list-content .watchlater-card .up .face {\n border-radius: 50%;\n margin-right: 6px;\n height: 20px;\n width: 20px;\n}\n.custom-navbar .watchlater-list-content .watchlater-card .up .name {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n font-size: 11px;\n}\n.custom-navbar .watchlater-list-content .watchlater-card .up:hover .name {\n color: var(--theme-color);\n}',""]),t.exports=i},26:(t,e,n)=>{var i=n(1355)((function(t){return t[1]}));i.push([t.id,"body.no-banner #banner_link,\nbody.no-banner .z-top-container.has-banner > .header,\n.bili-header-m > #banner_link .search,\nli.nav-item[report-id=playpage_dynamic] iframe,\nli.nav-item[report-id=playpage_dynamic] .i-frame,\n.z-top-container > .header .search,\n.i_menu_login,\n.international-header .b-logo,\n.bili-banner .taper-line,\n.international-header .mini-header,\n.bili-header-m .head-banner .head-content .head-logo,\n#biliMainHeader .mini-header,\n#biliMainHeader .base-mini-header,\n.bili-header__bar {\n display: none !important;\n}\n\n.van-popover {\n z-index: 10002 !important;\n}\n\n.bili-header,\n.international-header {\n min-height: var(--navbar-height) !important;\n}\n\n.bili-header-m .head-banner {\n margin-top: calc(-1 * var(--navbar-height)) !important;\n}\n\n.bili-header-m > .nav-menu,\n.z_top,\n.z-top-container#bili-header-container {\n visibility: hidden !important;\n height: var(--navbar-height) !important;\n}\n\n#message-navbar,\n#biliMainHeader,\n.z-top-container:not(#biliMainHeader) {\n max-height: var(--navbar-height) !important;\n}\n\n.link-top-container#tab-container {\n top: var(--navbar-height) !important;\n}\n\n.bili-feed4 .header-channel {\n top: 0 !important;\n}",""]),t.exports=i},1355:t=>{"use strict";
// eslint-disable-next-line func-names
t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},
// eslint-disable-next-line func-names
e.i=function(t,n,i){"string"==typeof t&&(
// eslint-disable-next-line no-param-reassign
t=[[null,t,""]]);var a={};if(i)for(var r=0;r<this.length;r++){
// eslint-disable-next-line prefer-destructuring
var o=this[r][0];null!=o&&(a[o]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);i&&a[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},4648:(t,e,n)=>{"use strict";var i,a=function(){return void 0===i&&(
// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
// @see https://github.com/webpack-contrib/style-loader/issues/177
i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),o=[];function s(t){for(var e=-1,n=0;n<o.length;n++)if(o[n].identifier===t){e=n;break}return e}function l(t,e){for(var n={},i=[],a=0;a<t.length;a++){var r=t[a],l=e.base?r[0]+e.base:r[0],c=n[l]||0,p="".concat(l," ").concat(c);n[l]=c+1;var d=s(p),u={css:r[1],media:r[2],sourceMap:r[3]};-1!==d?(o[d].references++,o[d].updater(u)):o.push({identifier:p,updater:f(u,e),references:1}),i.push(p)}return i}function c(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var a=n.nc;a&&(i.nonce=a)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var o=r(t.insert||"head");if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(e)}return e}var p,d=(p=[],function(t,e){return p[t]=e,p.filter(Boolean).join("\n")});function u(t,e,n,i){var a=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=d(e,a);else{var r=document.createTextNode(a),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(r,o[e]):t.appendChild(r)}}function m(t,e,n){var i=n.css,a=n.media,r=n.sourceMap;if(a?t.setAttribute("media",a):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var h=null,v=0;function f(t,e){var n,i,a;if(e.singleton){var r=v++;n=h||(h=c(e)),i=u.bind(null,n,r,!1),a=u.bind(null,n,r,!0)}else n=c(e),i=m.bind(null,n,e),a=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else a()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=a());var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var a=s(n[i]);o[a].references--}for(var r=l(t,e),c=0;c<n.length;c++){var p=s(n[c]);0===o[p].references&&(o[p].updater(),o.splice(p,1))}n=r}}}},9819:(t,e,n)=>{var i=n(26);i&&i.__esModule&&(i=i.default),t.exports="string"==typeof i?i:i.toString()},8252:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>dt});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"custom-navbar",class:t.styles,attrs:{role:"navigation"}},[n("div",{staticClass:"left-pad padding"}),t._v(" "),n("div",{staticClass:"custom-navbar-items",attrs:{role:"list"}},t._l(t.items,(function(t){return n("NavbarItem",{key:t.name,attrs:{item:t}})})),1),t._v(" "),n("div",{staticClass:"right-pad padding"})])};i._withStripped=!0;var a=n(9986),r=n(605),o=n(4577),s=n(9153);const l="https://message.bilibili.com/",c={name:"messages",displayName:"消息",content:"消息",href:l,active:document.URL.startsWith(l),loginRequired:!0,touch:!0,popupContent:()=>Promise.resolve().then(n.bind(n,3014)).then((t=>t.default)),lazy:!1},p="https://www.bilibili.com/v/popular/rank/",d={name:"ranking",displayName:"排行",content:"排行",href:`${p}all`,active:document.URL.startsWith(p),touch:!0,popupContent:()=>Promise.resolve().then(n.bind(n,6601)).then((t=>t.default))},u={name:"userInfo",displayName:"个人信息",content:()=>Promise.resolve().then(n.bind(n,4666)).then((t=>t.default)),href:(0,r.getUID)()?"https://space.bilibili.com":null,touch:!0,popupContent:()=>Promise.resolve().then(n.bind(n,2599)).then((t=>t.default)),lazy:!1,noPopupPadding:!0,boundingWidth:240},m={name:"logo",displayName:"Logo",content:()=>Promise.resolve().then(n.bind(n,6409)).then((t=>t.default)),href:"https://www.bilibili.com/"},h={name:"home",displayName:"主站",content:"主站",href:"https://www.bilibili.com/",touch:!0,boundingWidth:366,popupContent:()=>Promise.resolve().then(n.bind(n,962)).then((t=>t.default))},v=t=>({...t,name:`${t.iframeName}Iframe`,content:t.displayName,touch:!0,popupContent:()=>Promise.resolve().then(n.bind(n,5172)).then((t=>t.default)),boundingWidth:t.width,noPopupPadding:!0,transparentPopup:!0}),f=v({src:"https://www.bilibili.com/page-proxy/game-nav.html",href:"https://game.bilibili.com/",width:680,height:260,lazy:!0,displayName:"游戏中心",iframeName:"games"}),b=v({src:"https://live.bilibili.com/blackboard/dropdown-menu.html",href:"https://live.bilibili.com",width:528,height:266,lazy:!0,displayName:"直播",iframeName:"lives"}),g=v({src:"https://manga.bilibili.com/eden/bilibili-nav-panel.html",href:"https://manga.bilibili.com",width:720,height:266,lazy:!0,displayName:"漫画",iframeName:"manga"}),x=new Array(4).fill(0).map(((t,e)=>({name:`blank${e+1}`,displayName:`弹性空白${e+1}`,content:"",disabled:!0,flexStyle:"1 0 auto"}))),y=t=>({...t,content:t.displayName,active:document.URL.startsWith(t.href)}),w=(y({name:"ranking",displayName:"排行",href:"https://www.bilibili.com/v/popular/rank/all"}),y({name:"bangumi",displayName:"番剧",href:"https://www.bilibili.com/anime/"})),_=y({name:"drawing",displayName:"相簿",href:"https://h.bilibili.com"}),C=y({name:"music",displayName:"音频",href:"https://www.bilibili.com/audio/home/"}),k=y({name:"shop",displayName:"会员购",href:"https://show.bilibili.com"}),S=y({name:"match",displayName:"赛事",href:"https://www.bilibili.com/v/game/match/"}),V={name:"upload",displayName:"投稿",content:()=>Promise.resolve().then(n.bind(n,5655)).then((t=>t.default)),touch:!0,href:"https://member.bilibili.com/platform/upload/video/frame",popupContent:()=>Promise.resolve().then(n.bind(n,6039)).then((t=>t.default))},N={name:"search",displayName:"搜索",content:()=>Promise.resolve().then(n.bind(n,802)).then((t=>t.default)),disabled:!0},I={name:"feeds",displayName:"动态",content:"动态",href:"https://t.bilibili.com/",touch:!0,active:"https://t.bilibili.com/"===document.URL.replace(window.location.search,""),contentMounted:async t=>{const{getNotifyCount:e}=await Promise.resolve().then(n.t.bind(n,5441,23));await(async()=>{const n=await e();t.notifyCount=n})()},loginRequired:!0,popupContent:()=>Promise.resolve().then(n.bind(n,6892)).then((t=>t.default)),boundingWidth:300,noPopupPadding:!0};var P=n(1524);const L={name:"watchlater",displayName:"稍后再看",content:"稍后再看",href:"https://www.bilibili.com/watchlater/#/list",touch:!0,active:document.URL.startsWith("https://www.bilibili.com/watchlater/"),loginRequired:!0,boundingWidth:380,noPopupPadding:!0,popupContent:()=>Promise.resolve().then(n.bind(n,4808)).then((t=>t.default))},O=`https://space.bilibili.com/${(0,r.getUID)()}/favlist`,z={name:"favorites",displayName:"收藏",content:"收藏",href:O,touch:!0,active:document.URL.replace(/\?.*$/,"")===O,loginRequired:!0,boundingWidth:380,noPopupPadding:!0,popupContent:()=>Promise.resolve().then(n.bind(n,1622)).then((t=>t.default))},T="https://www.bilibili.com/account/history",E={name:"history",displayName:"历史",content:"历史",href:T,touch:!0,active:document.URL.replace(/\?.*$/,"")===T,loginRequired:!0,boundingWidth:400,noPopupPadding:!0,popupContent:()=>Promise.resolve().then(n.bind(n,2173)).then((t=>t.default))},[$,j,D,A]=x;var M=n(5090),B=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:!t.item.hidden,expression:"!item.hidden"}],staticClass:"custom-navbar-item",class:{disabled:t.item.disabled,active:t.item.active,"input-within":t.inputWithin},style:{flex:t.item.flexStyle,order:t.item.order},attrs:{role:"listitem","data-name":t.item.name}},[t.item.href?n("CustomNavbarLink",{staticClass:"main-content",attrs:{"new-tab":t.newTab,href:!t.item.active&&!t.item.touch&&t.item.href},on:{mouseover:function(e){return e.target!==e.currentTarget?null:t.requestPopup()}}},["string"==typeof t.item.content?[t._v("\n "+t._s(t.item.content)+"\n ")]:n(t.item.content,{tag:"component",attrs:{item:t.item}})],2):n("div",{staticClass:"main-content",on:{click:function(e){!t.item.active&&!t.item.touch&&t.item.clickAction&&t.item.clickAction(e)}}},["string"==typeof t.item.content?[t._v("\n "+t._s(t.item.content)+"\n ")]:n(t.item.content,{tag:"component",attrs:{item:t.item}})],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.item.active,expression:"!item.active"}],staticClass:"notify-count"},[t.item.notifyCount>0?[t._v("\n "+t._s(t.item.notifyCount)+"\n ")]:t._e()],2),t._v(" "),n("div",{ref:"popupContainer",staticClass:"popup-container",on:{focusin:function(e){return t.toggleInputWithin(e,!0)},focusout:function(e){return t.toggleInputWithin(e,!1)}}},[t.item.popupContent?n("div",{staticClass:"popup",class:t.popupClasses(t.item)},[t.item.requestedPopup?n(t.item.popupContent,{ref:"popup",tag:"component",attrs:{container:t.$refs.popupContainer,item:t.item}}):t._e()],1):t._e()]),t._v(" "),n("div",{staticClass:"active-bar"})],1)};B._withStripped=!0;var U=function(){var t=this,e=t.$createElement;return(t._self._c||e)("a",t._g(t._b({attrs:{target:t.newTab?"_blank":null}},"a",t.$attrs,!1),t.$listeners),[t._t("default")],2)};U._withStripped=!0;const F=Vue.extend({props:{newTab:{type:Boolean,default:!0}}});var W=n(133),R=(0,W.Z)(F,U,[],!1,null,null,null);R.options.__file="registry/lib/components/style/custom-navbar/CustomNavbarLink.vue";const q=R.exports,H=t=>{const{name:e}=t,n=M.kO.navbarOptions;return e in n.openInNewTabOverrides?n.openInNewTabOverrides[e]:n.openInNewTab},Z=Vue.extend({components:{CustomNavbarLink:q},props:{item:{type:M.kO,required:!0}},data(){return{newTab:H(this.item),cancelListeners:none,inputWithin:!1}},mounted(){const t=this.item;t.contentMounted?.(t);const e=()=>{this.updateLinkOption()};(0,a.addComponentListener)("customNavbar.openInNewTabOverrides",e),(0,a.addComponentListener)("customNavbar.openInNewTab",e),this.cancelListeners=()=>{(0,a.removeComponentListener)("customNavbar.openInNewTabOverrides",e),(0,a.removeComponentListener)("customNavbar.openInNewTab",e)}},beforeDestroy(){this.cancelListeners?.()},methods:{toggleInputWithin(t,e){t.target instanceof HTMLInputElement?this.inputWithin=e:this.inputWithin=!1},updateLinkOption(){this.newTab=H(this.item)},popupClasses:t=>({transparent:t.transparentPopup,"no-padding":t.noPopupPadding,"iframe-container":t.iframeName}),triggerPopupShow:lodash.debounce((function(t){const{popup:e}=this.$refs;if(!e)return;const n=M.kO.navbarOptions.refreshOnPopup&&e.popupRefresh&&"function"==typeof e.popupRefresh;!t&&n&&e.popupRefresh(),e.popupShow&&"function"==typeof e.popupShow&&e.popupShow()}),300),async requestPopup(){const{item:t}=this;if(!t.disabled)return t.requestedPopup?void this.triggerPopupShow(!1):(t.requestedPopup=!0,void this.triggerPopupShow(!0))}}});var J=n(4648),Y=n.n(J),X=n(9599),G=n.n(X),Q={insert:"head",singleton:!1};Y()(G(),Q);G().locals;var K=(0,W.Z)(Z,B,[],!1,null,null,null);K.options.__file="registry/lib/components/style/custom-navbar/CustomNavbarItem.vue";const tt=K.exports,et=coreApis.spinQuery,nt=coreApis.utils.urls,[it]=(0,s.registerAndGetData)(M.rm,[$,m,h,w,d,_,C,f,b,k,S,g,j,N,D,u,c,I,P.V,L,z,E,V,A]),[at]=(0,s.registerAndGetData)(M.Je,{items:[]}),rt=()=>{const t=Boolean((0,r.getUID)()),e=it.filter((e=>!(e.loginRequired&&!t))).map((t=>new M.kO(t))).sort((0,o.ascendingSort)((t=>t.order)));return at.items=e,e},ot=Vue.extend({components:{NavbarItem:tt},data:()=>({initItems:it,items:rt(),styles:[],height:M.kO.navbarOptions.height}),watch:{initItems(){this.items=rt()}},async mounted(){(0,a.addComponentListener)("customNavbar.height",(t=>{document.documentElement.style.setProperty("--navbar-height",`${t}px`)}),!0),await(async t=>{(0,nt.matchCurrentPage)(nt.mainSiteUrls)&&(0,et.sq)((()=>dqa(".animated-banner video, .banner-img img, #banner_link, .international-header .bili-banner, .bili-header__banner")),(t=>0!==t.length&&!!t.some((t=>!!t.style.backgroundImage||!!t.src)))).then((e=>{0!==e.length&&((0,a.addComponentListener)("customNavbar.transparent",(e=>{(0,a.getComponentSettings)("hideBanner").enabled||t.toggleStyle(e,"transparent")}),!0),(0,a.addComponentListener)("hideBanner",(e=>{(0,a.getComponentSettings)("customNavbar").options.transparent&&t.toggleStyle(!e,"transparent")})))}))})(this)},methods:{toggleStyle(t,e){t&&!this.styles.includes(e)?this.styles.push(e):!t&&this.styles.includes(e)&&this.styles.splice(this.styles.indexOf(e),1)}}});var st=n(9708),lt=n.n(st),ct={insert:"head",singleton:!1};Y()(lt(),ct);lt().locals;var pt=(0,W.Z)(ot,i,[],!1,null,null,null);pt.options.__file="registry/lib/components/style/custom-navbar/CustomNavbar.vue";const dt=pt.exports},1622:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>I});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"favorites-list"},[n("div",{staticClass:"header"},[n("FavoritesFolderSelect",{model:{value:t.folder,callback:function(e){t.folder=e},expression:"folder"}}),t._v(" "),n("div",{staticClass:"search"},[n("TextBox",{attrs:{linear:"",placeholder:"搜索"},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1),t._v(" "),n("a",{staticClass:"operation",attrs:{href:t.playLink,title:"播放全部",target:"_blank"}},[n("VButton",{staticClass:"play-all",attrs:{round:""}},[n("VIcon",{attrs:{icon:"mdi-play",size:18}})],1)],1),t._v(" "),n("a",{staticClass:"operation",attrs:{href:t.moreLink,title:"查看更多",target:"_blank"}},[n("VButton",{staticClass:"more-info",attrs:{round:""}},[n("VIcon",{attrs:{icon:"mdi-dots-horizontal",size:18}})],1)],1)],1),t._v(" "),n("div",{staticClass:"content"},[t.loading&&!t.searching?n("VLoading"):t.loading||t.canLoadMore||0!==t.filteredCards.length?n("transition-group",{staticClass:"cards",attrs:{name:"cards",tag:"div"}},[t._l(t.filteredCards,(function(e){return n("div",{key:e.id,staticClass:"favorite-card"},[n("a",{staticClass:"cover-container",attrs:{target:"_blank",href:"https://www.bilibili.com/video/"+e.bvid}},[n("DpiImage",{staticClass:"cover",attrs:{src:e.coverUrl,size:{width:130,height:85}}}),t._v(" "),n("div",{staticClass:"floating duration"},[t._v(t._s(e.durationText))]),t._v(" "),n("div",{staticClass:"floating favorite-time"},[t._v(t._s(e.favoriteTime))])],1),t._v(" "),n("a",{staticClass:"title",attrs:{target:"_blank",href:"https://www.bilibili.com/video/"+e.bvid,title:e.title}},[t._v(t._s(e.title))]),t._v(" "),e.upID?n("a",{staticClass:"up",attrs:{target:"_blank",href:"https://space.bilibili.com/"+e.upID,title:e.upName}},[n("DpiImage",{staticClass:"face",attrs:{"placeholder-image":"",src:e.upFaceUrl,size:20}}),t._v(" "),n("div",{staticClass:"name"},[t._v(t._s(e.upName))])],1):n("div",{staticClass:"description"},[t._v("\n "+t._s(e.description)+"\n ")])])})),t._v(" "),t.canLoadMore?n("ScrollTrigger",{key:"scroll-trigger",on:{trigger:function(e){return t.scrollTrigger()}}}):t._e()],2):n("VEmpty")],1)])};i._withStripped=!0;var a=n(9648),r=n(4289),o=n(605),s=n(2375),l=n(3414),c=n(9986);const p={id:0,name:"加载中...",count:0};var d=function(){var t=this,e=t.$createElement;return(t._self._c||e)("VDropdown",{staticClass:"favorites-folder-select",attrs:{round:"",items:t.folders,"key-mapper":function(t){return t.id},value:t.folder},on:{change:function(e){return t.change(e)}},scopedSlots:t._u([{key:"item",fn:function(e){var n=e.item;return[t._v("\n "+t._s(n.name)+"\n ")]}}])})};d._withStripped=!0;const u=(0,c.getComponentSettings)("customNavbar").options,m=Vue.extend({components:{VDropdown:a.VDropdown},model:{prop:"folder",event:"change"},props:{folder:{type:Object,required:!0}},data:()=>({folders:[]}),async created(){const t=(0,o.getUID)();if(!t)return;const e=`https://api.bilibili.com/medialist/gateway/base/created?pn=1&ps=100&up_mid=${t}&is_space=0`,n=await(0,s.getJsonWithCredentials)(e);if(0!==n.code)throw new Error(`获取收藏夹列表失败: ${n.message}`);if(this.folders=lodash.get(n,"data.list",[]).map((t=>({id:t.id,name:t.title,count:t.media_count}))),this.folders.length>0&&this.folder.id===p.id){const{lastFavoriteFolder:t}=u,e=this.folders.find((e=>e.id===t));e?this.$emit("change",e):this.$emit("change",this.folders[0])}},methods:{change(t){u.lastFavoriteFolder=t.id,this.$emit("change",t)}}});var h=n(133),v=(0,h.Z)(m,d,[],!1,null,null,null);v.options.__file="registry/lib/components/style/custom-navbar/favorites/FavoritesFolderSelect.vue";const f=v.exports;var b=n(8795);const g=(0,c.getComponentSettings)("customNavbar").options,x=t=>!!g.showDeadVideos||9!==t.attr&&1!==t.attr,y=t=>({id:t.id,aid:t.id,bvid:t.bvid,coverUrl:t.cover.replace("http:","https:"),favoriteTimestamp:1e3*t.fav_time,favoriteTime:(0,r.formatDate)(new Date(1e3*t.fav_time)),title:t.title,description:t.intro,duration:t.duration,durationText:(0,r.formatDuration)(t.duration),playCount:t.cnt_info.play,danmakuCount:t.cnt_info.danmaku,upName:t.upper.name,upFaceUrl:t.upper.face.replace("http:","https:"),upID:t.upper.mid});const w=Vue.extend({components:{FavoritesFolderSelect:f,VLoading:a.VLoading,VEmpty:a.VEmpty,VIcon:a.VIcon,VButton:a.VButton,TextBox:a.TextBox,DpiImage:a.DpiImage,ScrollTrigger:a.ScrollTrigger},mixins:[b.u],data:()=>({loading:!0,cards:[],filteredCards:[],page:1,hasMorePage:!0,searchPage:1,hasMoreSearchPage:!0,search:"",folder:p}),computed:{searching(){return""!==this.search},moreLink(){const{id:t}=this.folder;return 0===t?`https://space.bilibili.com/${(0,o.getUID)()}/favlist`:`https://space.bilibili.com/${(0,o.getUID)()}/favlist?fid=${t}`},playLink(){const{id:t}=this.folder;if(0!==t)return`https://www.bilibili.com/medialist/play/ml${t}`},canLoadMore(){return this.searching?this.hasMoreSearchPage:this.hasMorePage}},watch:{folder(){this.changeList()},search(t){""!==t?(t=t.toLowerCase(),this.hasMoreSearchPage=!0,this.searchPage=1,this.filteredCards=this.cards.filter((e=>e.title.toLowerCase().includes(t)||e.upName.toLowerCase().includes(t)))):this.filteredCards=this.cards}},methods:{async getCards(){const t=`https://api.bilibili.com/x/v3/fav/resource/list?media_id=${this.folder.id}&pn=${this.page}&ps=20&keyword=&order=mtime&type=0&tid=0&platform=web`,e=await(0,s.getJsonWithCredentials)(t);if(0!==e.code)throw new Error(`加载收藏夹内容失败: ${e.message}`);return e.data.medias?e.data.medias.filter(x).map(y):[]},async changeList(){if(0!==this.folder.id)try{this.search="",this.cards=[],this.loading=!0,this.searchPage=1,this.hasMoreSearchPage=!0,this.page=1,this.hasMorePage=!0,this.cards=await this.getCards(),this.filteredCards=this.cards}catch(t){(0,l.logError)(t)}finally{this.loading=!1}},async loadNextPage(){try{this.page++;const t=await this.getCards();this.cards.push(...t),this.hasMorePage=0!==t.length||this.cards.length<this.folder.count}catch(t){(0,l.logError)(t)}},debounceSearchAllList:lodash.debounce((async function(){if(this.searching)try{this.loading=!0;const t=await(0,s.getJsonWithCredentials)(`https://api.bilibili.com/x/v3/fav/resource/list?media_id=${this.folder.id}&pn=${this.searchPage}&ps=20&keyword=${this.search}&order=mtime&type=0&tid=0&platform=web`),e=await(0,s.getJsonWithCredentials)(`https://api.bilibili.com/x/v3/fav/resource/list?media_id=${this.folder.id}&pn=${this.searchPage}&ps=20&keyword=${this.search}&order=mtime&type=1&tid=0&platform=web`);if(0!==t.code&&0!==e.code)return;const n=lodash.get(t,"data.medias",[])||[],i=lodash.get(e,"data.medias",[])||[];this.searchPage++;const a=lodash.uniqBy(this.filteredCards.concat(n.filter(x).map(y),i.filter(x).map(y)),(t=>t.id));this.filteredCards=a;const r=n.length+i.length===0,o=i.length<20;if(r||o)return void(this.hasMoreSearchPage=!1)}catch(t){console.error(t)}finally{this.loading=!1}}),200),scrollTrigger(){this.searching?this.debounceSearchAllList():this.loadNextPage()}}});var _=n(4648),C=n.n(_),k=n(8335),S=n.n(k),V={insert:"head",singleton:!1};C()(S(),V);S().locals;var N=(0,h.Z)(w,i,[],!1,null,null,null);N.options.__file="registry/lib/components/style/custom-navbar/favorites/NavbarFavorites.vue";const I=N.exports},6892:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"navbar-feeds"},[n("TabControl",{ref:"tabControl",attrs:{tabs:t.tabs,"more-link":"https://t.bilibili.com/"},scopedSlots:t._u([{key:"more-link",fn:function(){return[t._v("\n 所有动态\n "),n("VIcon",{attrs:{icon:"feeds",size:18}})]},proxy:!0}])})],1)};i._withStripped=!0;var a=n(9648),r=n(9799),o=n(5441),s=n(8795);const l=[{name:"video",displayName:"视频",component:()=>Promise.resolve().then(n.bind(n,8038)).then((t=>t.default)),activeLink:"https://t.bilibili.com/?tab=video",count:0},{name:"bangumi",displayName:"番剧",component:()=>Promise.resolve().then(n.bind(n,1527)).then((t=>t.default)),activeLink:"https://t.bilibili.com/?tab=pgc",count:0},{name:"column",displayName:"专栏",component:()=>Promise.resolve().then(n.bind(n,9439)).then((t=>t.default)),activeLink:"https://t.bilibili.com/?tab=article",count:0},{name:"live",displayName:"直播",component:()=>Promise.resolve().then(n.bind(n,3908)).then((t=>t.default)),activeLink:"https://link.bilibili.com/p/center/index#/user-center/follow/1",count:0}],c=Vue.extend({components:{TabControl:a.TabControl,VIcon:a.VIcon},mixins:[s.u],data:()=>({tabs:l}),mounted(){this.refreshNotifyCount()},methods:{popupShow(){this.item.notifyCount=0},async refreshNotifyCount(){const{tabControl:t}=this.$refs;l.forEach((async e=>{if(t.selectedTab===e)return;if("live"===e.name)return;const n=await(0,o.getNotifyCount)(r.feedsCardTypes[e.name].id.toString());e.count=n,console.log(e)}))}}});var p=n(4648),d=n.n(p),u=n(946),m=n.n(u),h={insert:"head",singleton:!1};d()(m(),h);m().locals;var v=(0,n(133).Z)(c,i,[],!1,null,null,null);v.options.__file="registry/lib/components/style/custom-navbar/feeds/NavbarFeeds.vue";const f=v.exports},1527:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"bangumi-feeds"},[t.loading?n("VLoading"):t.loading||0!==t.cards.length?[n("div",{staticClass:"bangumi-feeds-content"},t._l(t.cards,(function(t){return n("BangumiCard",{key:t.id,attrs:{"is-new":t.new,data:t}})})),1),t._v(" "),t.hasMorePage?n("ScrollTrigger",{on:{trigger:function(e){return t.nextPage()}}}):t._e()]:n("VEmpty")],2)};i._withStripped=!0;var a=n(9799),r=n(5441);const o=coreApis.componentApis.feeds.BangumiCard;var s=n.n(o),l=n(4646);const c=Vue.extend({components:{BangumiCard:s()},mixins:[(0,l.I)(a.feedsCardTypes.bangumi,(t=>{const e=JSON.parse(t.card);return{id:t.desc.dynamic_id_str,title:e.apiSeasonInfo.title,coverUrl:e.apiSeasonInfo.cover,epCoverUrl:e.cover,epTitle:e.new_desc,url:e.url,get new(){return(0,r.isNewID)(this.id)}}}))]});var p=n(4648),d=n.n(p),u=n(8167),m=n.n(u),h={insert:"head",singleton:!1};d()(m(),h);m().locals;var v=(0,n(133).Z)(c,i,[],!1,null,null,null);v.options.__file="registry/lib/components/style/custom-navbar/feeds/tabs/BangumiFeeds.vue";const f=v.exports},9439:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"column-feeds"},[t.loading?n("VLoading"):t.loading||0!==t.cards.length?[n("div",{staticClass:"columns-feeds-content"},t._l(t.cards,(function(t){return n("ColumnCard",{key:t.id,attrs:{"is-new":t.new,data:t}})})),1),t._v(" "),t.hasMorePage?n("ScrollTrigger",{on:{trigger:function(e){return t.nextPage()}}}):t._e()]:n("VEmpty")],2)};i._withStripped=!0;var a=n(9799),r=n(5441);const o=coreApis.componentApis.feeds.ColumnCard;var s=n.n(o),l=n(4646);const c=Vue.extend({components:{ColumnCard:s()},mixins:[(0,l.I)(a.feedsCardTypes.column,(t=>{const e=JSON.parse(t.card);return{id:t.desc.dynamic_id_str,cvID:e.id,title:e.title,upName:e.author.name,upFaceUrl:e.author.face,upID:e.author.mid,description:e.summary,covers:e.image_urls,originalCovers:e.origin_image_urls,get new(){return(0,r.isNewID)(this.id)}}}))]});var p=n(4648),d=n.n(p),u=n(910),m=n.n(u),h={insert:"head",singleton:!1};d()(m(),h);m().locals;var v=(0,n(133).Z)(c,i,[],!1,null,null,null);v.options.__file="registry/lib/components/style/custom-navbar/feeds/tabs/ColumnFeeds.vue";const f=v.exports},3908:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"live-feeds"},[t.loading?n("VLoading"):t.loading||0!==t.cards.length?t._e():n("VEmpty"),t._v(" "),n("transition-group",{staticClass:"live-feeds-content",attrs:{name:"cards",tag:"div"}},t._l(t.cards,(function(e){return n("a",{key:e.id,staticClass:"live-card",attrs:{target:"_blank",href:e.url}},[n("div",{staticClass:"face-container"},[n("DpiImage",{staticClass:"face",attrs:{size:48,src:e.upFaceUrl}})],1),t._v(" "),n("div",{staticClass:"live-info"},[n("div",{staticClass:"live-title",attrs:{title:e.title}},[t._v(t._s(e.title))]),t._v(" "),n("div",{staticClass:"live-name",attrs:{title:e.upName}},[t._v(t._s(e.upName))])])])})),0)],1)};i._withStripped=!0;var a=n(9648),r=n(2375);const o=Vue.extend({components:{VLoading:a.VLoading,VEmpty:a.VEmpty,DpiImage:a.DpiImage},data:()=>({loading:!0,rawItems:[],hasMorePage:!0}),computed:{cards(){return this.rawItems.map((t=>({id:t.roomid,title:t.title,upFaceUrl:t.face,upName:t.uname,url:t.link})))}},async created(){const[t]=(0,r.responsiveGetPages)({api:t=>(0,r.getJsonWithCredentials)(`https://api.live.bilibili.com/relation/v1/feed/feed_list?page=${t}&pagesize=24`),getList:t=>lodash.get(t,"data.list",[]),getTotal:t=>lodash.get(t,"data.results",0)});this.rawItems=await t,this.loading=!1}});var s=n(4648),l=n.n(s),c=n(2526),p=n.n(c),d={insert:"head",singleton:!1};l()(p(),d);p().locals;var u=(0,n(133).Z)(o,i,[],!1,null,null,null);u.options.__file="registry/lib/components/style/custom-navbar/feeds/tabs/LiveFeeds.vue";const m=u.exports},8038:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>x});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"video-feeds"},[t.loading?n("VLoading"):t.loading||0!==t.cards.length?[n("div",{staticClass:"video-feeds-content"},[n("transition-group",{staticClass:"left-column",attrs:{name:"cards",tag:"div"}},t._l(t.columnedCards.left,(function(t){return n("VideoCard",{key:t.id,attrs:{orientation:"vertical","is-new":t.new,"show-stats":!1,data:t}})})),1),t._v(" "),n("transition-group",{staticClass:"right-column",attrs:{name:"cards",tag:"div"}},t._l(t.columnedCards.right,(function(t){return n("VideoCard",{key:t.id,attrs:{orientation:"vertical","is-new":t.new,"show-stats":!1,data:t}})})),1)],1),t._v(" "),t.hasMorePage?n("ScrollTrigger",{on:{trigger:function(e){return t.nextPage()}}}):t._e()]:n("VEmpty")],2)};i._withStripped=!0;var a=n(4289),r=n(5441),o=n(9799);const s=coreApis.componentApis.feeds.VideoCard;var l=n.n(s),c=n(4646);const p=t=>{const e=Number(new Date),n=new Date(t),i=[n.getHours(),n.getMinutes(),n.getSeconds()].map((t=>t.toString().padStart(2,"0"))).join(":");let a;return a=new Date(e).getFullYear()!==n.getFullYear()?[n.getFullYear(),n.getMonth()+1,n.getDate()]:[n.getMonth()+1,n.getDate()],`${a.map((t=>t.toString().padStart(2,"0"))).join("-")} ${i}`},d=t=>{const e=Number(new Date);if(e-864e5<t){const n=Math.round((e-t)/1e3/3600);if(0===n){const n=Math.round((e-t)/1e3/60);return 0===n?"刚刚":`${n}分钟前`}return`${n}小时前`}const n=new Date(t);let i;return i=new Date(e).getFullYear()!==n.getFullYear()?[n.getFullYear(),n.getMonth()+1,n.getDate()]:[n.getMonth()+1,n.getDate()],`${i.map((t=>t.toString().padStart(2,"0"))).join("-")}`},u=Vue.extend({components:{VideoCard:l()},mixins:[(0,c.I)(o.feedsCardTypes.video,(t=>{const e=JSON.parse(t.card);return{id:t.desc.dynamic_id_str,aid:e.aid,bvid:t.desc.bvid,videoUrl:`https://www.bilibili.com/${t.desc.bvid}`,coverUrl:e.pic,title:e.title,duration:e.duration,durationText:(0,a.formatDuration)(e.duration),description:e.desc,pubTime:p(1e3*e.pubdate),pubTimeText:d(1e3*e.pubdate),upFaceUrl:t.desc.user_profile.info.face,upName:t.desc.user_profile.info.uname,upID:t.desc.user_profile.info.uid,watchlater:!0,playCount:(0,a.formatCount)(e.stat.view),get new(){return(0,r.isNewID)(this.id)}}}))],computed:{columnedCards(){const{cards:t}=this;return{left:t.filter(((t,e)=>e%2==0)),right:t.filter(((t,e)=>e%2!=0))}}},methods:{onCardsUpdate:t=>(0,o.groupVideoFeeds)(t)}});var m=n(4648),h=n.n(m),v=n(3031),f=n.n(v),b={insert:"head",singleton:!1};h()(f(),b);f().locals;var g=(0,n(133).Z)(u,i,[],!1,null,"6e663916",null);g.options.__file="registry/lib/components/style/custom-navbar/feeds/tabs/VideoFeeds.vue";const x=g.exports},2173:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>_});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"custom-navbar-history-list"},[n("div",{staticClass:"header"},[n("div",{staticClass:"header-row"},[n("div",{staticClass:"search"},[n("TextBox",{attrs:{placeholder:"搜索",linear:""},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1),t._v(" "),n("div",{staticClass:"operations"},[n("div",{staticClass:"operation",on:{click:t.toggleHistoryPause}},[t.paused?n("VButton",{attrs:{title:"继续记录历史",round:""}},[n("VIcon",{attrs:{icon:"mdi-play",size:14}})],1):n("VButton",{attrs:{title:"暂停记录历史",round:""}},[n("VIcon",{attrs:{icon:"mdi-pause",size:14}})],1)],1),t._v(" "),n("a",{staticClass:"operation",attrs:{target:"_blank",href:"https://www.bilibili.com/account/history"}},[n("VButton",{attrs:{title:"查看更多",round:""}},[n("VIcon",{attrs:{icon:"mdi-dots-horizontal",size:18}})],1)],1)])]),t._v(" "),n("div",{staticClass:"header-row"},[n("div",{staticClass:"row-title"},[t._v("过滤:")]),t._v(" "),n("div",{staticClass:"type-filters"},t._l(t.types,(function(e){return n("div",{key:e.name,staticClass:"type-filter"},[n("RadioButton",{class:{checked:e.checked},attrs:{title:(e.checked?"不显示":"显示")+e.displayName,checked:e.checked,disabled:t.loading},on:{change:function(n){return t.toggleTypeFilter(e)}}},[t._v("\n "+t._s(e.displayName)+"\n ")])],1)})),0)])]),t._v(" "),n("div",{staticClass:"content"},[t.loading?n("VLoading"):t.loading||0!==t.groups.length?n("transition-group",{staticClass:"cards",attrs:{name:"cards",tag:"div"}},[t._l(t.groups,(function(e){return n("div",{key:e.name,staticClass:"time-group"},[n("div",{staticClass:"time-group-name"},[t._v("\n "+t._s(e.name)+"\n ")]),t._v(" "),n("transition-group",{staticClass:"time-group-items",attrs:{name:"time-group",tag:"div"}},t._l(e.items,(function(e){return n("div",{key:e.id,staticClass:"time-group-item"},[n("a",{staticClass:"cover-container",attrs:{target:"_blank",href:e.url}},[n("DpiImage",{staticClass:"cover",attrs:{src:e.cover,size:{width:160,height:110},"placeholder-image":""}}),t._v(" "),e.progress?n("div",{staticClass:"progress",style:{width:100*e.progress+"%"}}):t._e(),t._v(" "),e.progressText?n("div",{staticClass:"floating progress-number"},[t._v("\n "+t._s(e.progress>=1?"已看完":e.progressText)+"\n ")]):t._e(),t._v(" "),void 0!==e.liveStatus?n("div",{staticClass:"floating duration live-status",class:{on:1===e.liveStatus}},[t._v("\n "+t._s(1===e.liveStatus?"直播中":"未开播")+"\n ")]):t._e(),t._v(" "),e.durationText?n("div",{staticClass:"floating duration"},[t._v(t._s(e.durationText))]):t._e()],1),t._v(" "),n("a",{staticClass:"title",attrs:{target:"_blank",href:e.url,title:e.title}},[t._v(t._s(e.title||e.upName+"的直播间"))]),t._v(" "),n("a",{staticClass:"up",attrs:{target:"_blank",href:"pgc"===e.type?e.url:"https://space.bilibili.com/"+e.upID,title:e.upName}},[e.upFaceUrl?n("DpiImage",{staticClass:"up-face",attrs:{size:18,src:e.upFaceUrl}}):t._e(),t._v(" "),n("div",{staticClass:"up-name"},[t._v(t._s(e.upName))])],1),t._v(" "),e.timeText?n("div",{staticClass:"time",attrs:{title:new Date(e.viewAt).toLocaleString()}},[t._v("\n "+t._s(e.timeText)+"\n ")]):t._e()])})),0)],1)})),t._v(" "),t.canNextPage?n("ScrollTrigger",{key:"scroll-trigger",on:{trigger:function(e){return t.nextPage()}}}):t._e()],2):n("VEmpty")],1)])};i._withStripped=!0;var a=n(2375),r=n(605),o=n(4577),s=n(9648),l=n(8795),c=n(4289);let p;!function(t){t.All="all",t.Video="archive",t.Live="live",t.Article="article",t.Bangumi="pgc"}(p||(p={}));const d=[{name:p.All,displayName:"全部",icon:"",checked:!0,apiType:""},{name:p.Video,displayName:"视频",icon:"mdi-play-circle-outline",checked:!1,apiType:"archive"},{name:p.Bangumi,displayName:"番剧",icon:"mdi-television-classic",checked:!1,apiType:"archive"},{name:p.Live,displayName:"直播",icon:"mdi-video-wireless-outline",checked:!1,apiType:"live"},{name:p.Article,displayName:"专栏",icon:"mdi-newspaper-variant-outline",checked:!1,apiType:"article"}],u=()=>{const t=new Date,e=Number(new Date(t.getFullYear(),t.getMonth(),t.getDate())),n=864e5;return{now:t,today:e,oneDay:n,yesterday:e-n,lastWeek:e-7*n}},m=t=>{const{yesterday:e}=u();return Number(t)>=e?`${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}`:`${(t.getMonth()+1).toString().padStart(2,"0")}-${t.getDate().toString().padStart(2,"0")} ${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}`},h=t=>{"article"===t.history.business&&(t.history.cid=t.history.oid);const{epid:e,bvid:n,cid:i,oid:a}=t.history,o=t.progress>0?`t=${t.progress}`:"t=0",s=-1===t.progress?1:t.progress/t.duration,l=t=>t.replace("http:","https:"),d=new Date(1e3*t.view_at),u=t.cover?l(t.cover):t.covers?l(t.covers[0]):"",h={title:t.title,viewAt:1e3*t.view_at,time:d,timeText:m(d),cover:u,covers:t.covers?.map(l)??[],progress:s,progressText:Number.isNaN(s)?null:`${(0,r.fixed)(100*s,1)}%`,duration:t.duration,durationText:t.duration?(0,c.formatDuration)(t.duration):null,upName:t.author_name,upFaceUrl:l(t.author_face),upID:t.author_mid};if(e)return{...h,id:e,url:`https://www.bilibili.com/bangumi/play/ep${e}?${o}`,title:t.show_title||t.title,upName:t.title,type:p.Bangumi};if(n)return{...h,id:n,url:`https://www.bilibili.com/video/${n}?p=${t.history.page}&${o}`,type:p.Video};if(i)return{...h,id:i,url:`https://www.bilibili.com/read/cv${i}`,type:p.Article};if(a)return{...h,id:a,url:`https://live.bilibili.com/${a}`,liveStatus:t.live_status,type:p.Live};throw console.error("unknown history item type",t),new Error("未知的历史项目类型")},v=Vue.extend({components:{VButton:s.VButton,VIcon:s.VIcon,RadioButton:s.RadioButton,TextBox:s.TextBox,VLoading:s.VLoading,VEmpty:s.VEmpty,ScrollTrigger:s.ScrollTrigger,DpiImage:s.DpiImage},mixins:[l.u],data:()=>({types:d,search:"",viewTime:0,cards:[],groups:[],loading:!0,hasMorePage:!0,paused:!1}),computed:{canNextPage(){return""===this.search&&!this.loading&&this.hasMorePage}},watch:{search:lodash.debounce((function(){this.reloadHistoryItems()}),200)},async created(){try{await Promise.all([this.nextPage(),this.updateHistoryPauseState()])}finally{this.loading=!1}},methods:{toggleTypeFilter(t){d.forEach((e=>e.checked=e.name===t.name)),this.reloadHistoryItems()},async reloadHistoryItems(){this.viewTime=0,this.hasMorePage=!0,this.loading=!0;try{await this.nextPage()}finally{this.loading=!1}},filterFunc(t){return!(!d.find((t=>t.name===p.All)).checked&&d.some((e=>e.name===t.type&&!e.checked)))&&!(!t.title.toLowerCase().includes(this.search.toLowerCase())&&!t.upName.toLowerCase().includes(this.search.toLowerCase()))},updateGroups(){this.groups=(t=>{if(0===t.length)return[];const{today:e,yesterday:n,lastWeek:i}=u(),a=lodash.groupBy(t,(t=>t.viewAt>=e?"今天":t.viewAt>=n?"昨天":t.viewAt>=i?"本周":"更早"));return Object.entries(a).map((t=>{let[e,n]=t;return{name:e,items:n}}))})(this.cards.filter(this.filterFunc))},async nextPage(){const t=await(async(t,e)=>{const n=new URLSearchParams;t&&n.set("view_at",Math.round(t/1e3).toString()),n.set("type",e?.apiType??"");const{list:i}=await(0,a.bilibiliApi)((0,a.getJsonWithCredentials)(`https://api.bilibili.com/x/web-interface/history/cursor?${n.toString()}`),"获取历史记录失败");return Array.isArray(i)?i.map(h):[]})(this.viewTime,d.find((t=>t.checked))),e=lodash.uniqBy(this.cards.concat(t).sort((0,o.descendingSort)((t=>t.viewAt))),(t=>t.id));this.cards=e,this.updateGroups(),e.length>0&&(this.viewTime=lodash.last(e).viewAt),this.hasMorePage=0!==t.length,this.hasMorePage&&0===this.groups.length&&await this.nextPage()},async updateHistoryPauseState(){const t=await(0,a.bilibiliApi)((0,a.getJsonWithCredentials)("https://api.bilibili.com/x/v2/history/shadow"));this.paused=!0===t},async toggleHistoryPause(){const t=!this.paused;try{this.paused=t,await(0,a.postTextWithCredentials)("https://api.bilibili.com/x/v2/history/shadow/set",(0,r.formData)({csrf:(0,r.getCsrf)(),switch:t}))}catch(e){this.paused=!t}}}});var f=n(4648),b=n.n(f),g=n(3901),x=n.n(g),y={insert:"head",singleton:!1};b()(x(),y);x().locals;var w=(0,n(133).Z)(v,i,[],!1,null,null,null);w.options.__file="registry/lib/components/style/custom-navbar/history/NavbarHistory.vue";const _=w.exports},962:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>v});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"home-popup",attrs:{role:"list"}},t._l(Object.entries(t.categories),(function(e){var i=e[0],a=e[1];return n("div",{key:i,staticClass:"category-item",class:{main:null!==a.code},attrs:{role:"listitem"}},[n("a",{attrs:{href:a.link,target:"_blank"}},[n("svg",{attrs:{"aria-hidden":"true"}},[n("use",{attrs:{href:"#header-icon-"+a.icon,"xlink:href":"#header-icon-"+a.icon}})]),t._v(" "),n("div",{staticClass:"name"},[t._v(t._s(i))]),t._v(" "),n("span",{staticClass:"count"},[null!==a.count?[t._v(t._s(a.count))]:t._e()],2)]),t._v(" "),a.subCategories?n("div",{staticClass:"sub-regions-popup popup"},t._l(Object.entries(a.subCategories),(function(e){var i=e[0],a=e[1];return n("a",{key:i,staticClass:"sub-region",attrs:{href:a,target:"_blank"}},[t._v(t._s(i))])})),0):t._e()])})),0)};i._withStripped=!0;var a=n(3861),r=n(8795);const o=lodash.cloneDeep(a.categories);Object.values(o).forEach((t=>{t.count=null}));let s=!1;const l=Vue.extend({mixins:[r.u],data:()=>({categories:o}),async created(){if(s)return;s=!0;const{bilibiliApi:t,getJson:e}=await Promise.resolve().then(n.t.bind(n,2375,23)),{addCategoryIcons:i}=await Promise.resolve().then(n.t.bind(n,3861,23));i();const{region_count:a={}}=await t(e("https://api.bilibili.com/x/web-interface/online"),"[自定义顶栏] 分区投稿信息获取失败");Object.values(this.categories).forEach((t=>{t.code&&(Array.isArray(t.code)?t.count=lodash.sum(t.code.map((t=>a[t]))):t.count=a[t.code])}))},mounted(){this.$el.style.maxHeight="inherit",this.$nextTick((()=>{this.$el.style.maxHeight=""}))}});var c=n(4648),p=n.n(c),d=n(3753),u=n.n(d),m={insert:"head",singleton:!1};p()(u(),m);u().locals;var h=(0,n(133).Z)(l,i,[],!1,null,null,null);h.options.__file="registry/lib/components/style/custom-navbar/home/NavbarHome.vue";const v=h.exports},5172:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var i=function(){var t=this,e=t.$createElement;return(t._self._c||e)("iframe",{attrs:{src:t.item.src,frameborder:"0",width:t.item.width,height:t.item.height}})};i._withStripped=!0;var a=n(8795),r=n(5090);const o=Vue.extend({name:"IframePopup",mixins:[a.u],props:{item:{type:r.kO,required:!0}}});var s=(0,n(133).Z)(o,i,[],!1,null,null,null);s.options.__file="registry/lib/components/style/custom-navbar/iframe/IframePopup.vue";const l=s.exports},6409:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"custom-navbar-logo-container"},[t.seasonLogoUrl?n("div",{staticClass:"custom-navbar-logo season",style:{backgroundImage:"url("+t.seasonLogoUrl+")"}}):n("VIcon",{staticClass:"custom-navbar-logo",attrs:{icon:"logo"}})],1)};i._withStripped=!0;var a=n(9986),r=n(2375),o=n(9648);const s=Vue.extend({name:"NavbarLogo",components:{VIcon:o.VIcon},data:()=>({seasonLogoUrl:""}),watch:{seasonLogoUrl(){document.body.classList.toggle("season-logo-enabled",Boolean(this.seasonLogoUrl))}},async created(){(0,a.addComponentListener)("customNavbar.seasonLogo",(async t=>{if(!t)return void(this.seasonLogoUrl="");const e=await(0,r.getJson)("https://api.bilibili.com/x/web-show/page/header?resource_id=1");0===e.code?this.seasonLogoUrl=lodash.get(e,"data.litpic","").replace("http:","https:"):this.seasonLogoUrl=""}),!0)}});var l=n(4648),c=n.n(l),p=n(2883),d=n.n(p),u={insert:"head",singleton:!1};c()(d(),u);d().locals;var m=(0,n(133).Z)(s,i,[],!1,null,null,null);m.options.__file="registry/lib/components/style/custom-navbar/logo/NavbarLogo.vue";const h=m.exports},3014:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"messages-popup",attrs:{role:"list"}},t._l(t.entries,(function(e){return n("div",{key:e.name,staticClass:"message-entry",attrs:{role:"listitem"}},[n("a",{attrs:{"data-prop":e.prop,target:"_blank",href:e.href,"data-count":e.count||null},on:{click:function(n){return t.clearCount(e)}}},[t._v(t._s(e.name))])])})),0)};i._withStripped=!0;var a=n(2375),r=n(8795);const o=[{prop:"reply",href:"https://message.bilibili.com/#/reply",name:"回复我的"},{prop:"at",href:"https://message.bilibili.com/#/at",name:"@我的"},{prop:"like",href:"https://message.bilibili.com/#/love",name:"收到的赞"},{prop:"sys_msg",href:"https://message.bilibili.com/#/system",name:"系统通知"},{prop:"user_msg",href:"https://message.bilibili.com/#/whisper",name:"我的消息"},{href:"https://message.bilibili.com/#/archive",name:"私信存档"},{href:"https://message.bilibili.com/#/config",name:"消息设置"}],s=Vue.extend({name:"MessagesPopup",mixins:[r.u],data:()=>({entries:o.map((t=>(t.count=0,t))),settings:{notify:!0,hideNotFollowedCount:!1,json:{}}}),async created(){await this.fetchSettings(),this.notify()},methods:{popupRefresh(){this.notify()},async fetchSettings(){const t=await(0,a.getJsonWithCredentials)("https://api.vc.bilibili.com/link_setting/v1/link_setting/get?msg_notify=1&show_unfollowed_msg=1");0===t.code&&(this.settings={notify:3!==t.data.msg_notify,hideNotFollowedCount:1===t.data.show_unfollowed_msg,json:t.data})},async notify(){if(!this.settings.notify)return;const[t,e]=await Promise.all([(0,a.getJsonWithCredentials)("https://api.bilibili.com/x/msgfeed/unread"),(0,a.getJsonWithCredentials)("https://api.vc.bilibili.com/session_svr/v1/session_svr/single_unread")]);t.data.user_msg=e.data.follow_unread||0,this.settings.hideNotFollowedCount||(t.data.user_msg+=e.data.unfollow_unread||0),this.item.notifyCount=o.reduce(((e,n)=>e+(n.prop?t.data[n.prop]:0)),0),this.item.notifyCount&&(console.log(o),o.forEach((e=>{if(!e.prop)return;const n=t.data[e.prop];console.log(e.prop,e.count,n),n>0&&(e.count=n)})))},clearCount(t){this.item.notifyCount-=t.count,t.count=0}}});var l=n(4648),c=n.n(l),p=n(9090),d=n.n(p),u={insert:"head",singleton:!1};c()(d(),u);d().locals;var m=(0,n(133).Z)(s,i,[],!1,null,"589ce0fa",null);m.options.__file="registry/lib/components/style/custom-navbar/messages/NavbarMessages.vue";const h=m.exports},6601:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ranking-popup",attrs:{role:"list"}},t._l(t.entries,(function(e){return n("div",{key:e.name,staticClass:"ranking-entry",attrs:{role:"listitem"}},[n("a",{attrs:{target:"_blank",href:e.href}},[t._v(t._s(e.name))])])})),0)};i._withStripped=!0;var a=n(8795);const r=[{href:"https://www.bilibili.com/v/popular/all",name:"综合热门"},{href:"https://www.bilibili.com/v/popular/weekly",name:"每周必看"},{href:"https://www.bilibili.com/v/popular/history",name:"入站必刷"},{href:"https://www.bilibili.com/v/popular/rank/all",name:"排行榜"}],o=Vue.extend({name:"RankingPopup",mixins:[a.u],data:()=>({entries:r})});var s=n(4648),l=n.n(s),c=n(6217),p=n.n(c),d={insert:"head",singleton:!1};l()(p(),d);p().locals;var u=(0,n(133).Z)(o,i,[],!1,null,"6678d691",null);u.options.__file="registry/lib/components/style/custom-navbar/ranking/NavbarRanking.vue";const m=u.exports},802:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>m});var i=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"custom-navbar-search"},[e("LaunchBar")],1)};i._withStripped=!0;const a=coreApis.componentApis.launchBar.LaunchBar;var r=n.n(a);const o=Vue.extend({components:{LaunchBar:r()}});var s=n(4648),l=n.n(s),c=n(6508),p=n.n(c),d={insert:"head",singleton:!1};l()(p(),d);p().locals;var u=(0,n(133).Z)(o,i,[],!1,null,null,null);u.options.__file="registry/lib/components/style/custom-navbar/search/NavbarSearch.vue";const m=u.exports},5086:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"custom-navbar-extra-options"},[t.login?n("VButton",{ref:"button",on:{mouseover:function(e){return t.loadNavbarSettings()},click:function(e){return t.toggleNavbarSettings()}}},[t._v("\n 布局设置"),n("VIcon",{attrs:{icon:"right-arrow",size:16}})],1):t._e()],1)};i._withStripped=!0;var a=n(605),r=n(9648),o=n(9754);const s=Vue.extend({components:{VIcon:r.VIcon,VButton:r.VButton},data:()=>({login:Boolean((0,a.getUID)())}),methods:{async loadNavbarSettings(){if(await(0,o.loadNavbarSettings)()){const t=this.$refs.button.$el;(0,o.setTriggerElement)(t)}},toggleNavbarSettings:o.toggleNavbarSettings}});var l=n(4648),c=n.n(l),p=n(7340),d=n.n(p),u={insert:"head",singleton:!1};c()(d(),u);d().locals;var m=(0,n(133).Z)(s,i,[],!1,null,null,null);m.options.__file="registry/lib/components/style/custom-navbar/settings/ExtraOptions.vue";const h=m.exports},3300:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("VPopup",{ref:"popup",staticClass:"custom-navbar-settings",attrs:{fixed:"",lazy:!1,"trigger-element":t.triggerElement},model:{value:t.open,callback:function(e){t.open=e},expression:"open"}},[n("div",{staticClass:"navbar-settings-header"},[n("VIcon",{staticClass:"title-icon",attrs:{icon:"mdi-sort",size:24}}),t._v(" "),n("div",{staticClass:"title"},[t._v("顶栏布局设置")]),t._v(" "),n("div",{staticClass:"grow"}),t._v(" "),n("div",{staticClass:"close",on:{click:function(e){t.open=!1}}},[n("VIcon",{attrs:{icon:"close",size:18}})],1)],1),t._v(" "),n("div",{staticClass:"navbar-settings-content"},[n("div",{staticClass:"navbar-settings-section"},[n("div",{staticClass:"navbar-settings-section-title"},[t._v("边缘间距")]),t._v(" "),n("div",{staticClass:"navbar-settings-section-description"},[t._v("\n 设定两侧边缘处的间距, 单位为百分比, 100%为整个顶栏的宽度.\n "),n("br"),t._v("空间不足时, 实际呈现的间距会自动缩小.\n ")]),t._v(" "),n("div",{staticClass:"navbar-settings-section-content",on:{mouseover:function(e){return t.peekPadding(!0)},mouseout:function(e){return t.peekPadding(!1)}}},[n("VSlider",{attrs:{min:0,max:40,step:.5},model:{value:t.padding,callback:function(e){t.padding=e},expression:"padding"}}),t._v(" "),n("div",{staticClass:"padding-value"},[t._v(t._s(t.padding.toFixed(1))+"%")])],1)]),t._v(" "),n("div",{staticClass:"navbar-settings-section"},[n("div",{staticClass:"navbar-settings-section-title"},[t._v("元素呈现")]),t._v(" "),n("div",{staticClass:"navbar-settings-section-description"},[t._v("\n 按住并拖动可以调整顺序, 点击眼睛图标可以切换隐藏/显示.\n ")]),t._v(" "),t.loaded?t._e():n("VLoading"),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}],ref:"navbarSortList",staticClass:"navbar-settings-section-content navbar-sort-list"},t._l(t.rendered.items,(function(e){return n("div",{key:e.name,staticClass:"navbar-sort-item",class:{"navbar-hidden":e.hidden},attrs:{"data-name":e.name},on:{mouseover:function(n){return t.peekItem(e,!0)},mouseout:function(n){return t.peekItem(e,!1)}}},[n("div",{staticClass:"item-name"},[t._v("\n "+t._s(e.displayName)+"\n ")]),t._v(" "),n("div",{staticClass:"toggle-visible"},[n("VIcon",{attrs:{size:18,icon:e.hidden?"mdi-eye-off-outline":"mdi-eye-outline"},on:{click:function(n){return t.toggleVisible(e)}}})],1)])})),0)],1)])])};i._withStripped=!0;var a=n(9648),r=n(9986),o=n(605);const s=coreApis.runtimeLibrary;var l=n(9153),c=n(5090);const p=t=>{t.forEach(((t,e)=>{t.order!==e&&(t.order=e)}));const e=Object.fromEntries(t.map((t=>[t.name,t.order])));c.kO.navbarOptions.order=e},{navbarOptions:d}=c.kO,[u]=(0,l.getData)(c.Je),m=Vue.extend({components:{VPopup:a.VPopup,VIcon:a.VIcon,VSlider:a.VSlider,VLoading:a.VLoading},props:{triggerElement:{type:HTMLElement,default:null}},data:()=>({open:!1,padding:d.padding,rendered:u,hidden:d.hidden,loaded:!1}),watch:{padding:lodash.debounce((t=>{d.padding=t}),200)},async mounted(){(0,r.addComponentListener)("customNavbar.padding",(t=>{this.padding!==t&&(this.padding=t)}));const t=this.$refs.navbarSortList;var e;(await s.SortableJSLibrary).create(t,{delay:100,forceFallback:!0,onEnd:t=>{this.onSort(t)}}),(e=u.items).every(((t,e)=>t.order===e))||p(e),this.loaded=!0},methods:{toggle(){this.$refs.popup.toggle()},peekPadding(t){(0,o.dqa)(".custom-navbar .padding").forEach((e=>e.classList.toggle("peek",t)))},peekItem(t,e){t.element?.classList.toggle("peek",e)},onSort(t){const e=this.$refs.navbarSortList,n=t.item;console.log(`${n.getAttribute("data-name")} ${t.oldIndex}->${t.newIndex}`);const i=Object.fromEntries([...e.children].map(((t,e)=>[t.getAttribute("data-name"),e])));this.rendered.items=((t,e)=>{const n=lodash.sortBy(t,(t=>e[t.name]));return p(n),n})(u.items,i)},toggleVisible(t){d.hidden.includes(t.name)?(lodash.pull(d.hidden,t.name),t.hidden=!1,console.log("delete",t.name)):(d.hidden.push(t.name),t.hidden=!0,console.log("add",t.name))}}});var h=n(4648),v=n.n(h),f=n(5596),b=n.n(f),g={insert:"head",singleton:!1};v()(b(),g);b().locals;var x=(0,n(133).Z)(m,i,[],!1,null,null,null);x.options.__file="registry/lib/components/style/custom-navbar/settings/NavbarSettings.vue";const y=x.exports},7444:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var i=function(){var t=this.$createElement;return(this._self._c||t)("SubscriptionsList",{attrs:{type:"bangumi"}})};i._withStripped=!0;var a=n(2940);const r=Vue.extend({components:{SubscriptionsList:a.Z}});var o=(0,n(133).Z)(r,i,[],!1,null,null,null);o.options.__file="registry/lib/components/style/custom-navbar/subscriptions/BangumiSubscriptions.vue";const s=o.exports},2252:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>s});var i=function(){var t=this.$createElement;return(this._self._c||t)("SubscriptionsList",{attrs:{type:"cinema"}})};i._withStripped=!0;var a=n(2940);const r=Vue.extend({components:{SubscriptionsList:a.Z}});var o=(0,n(133).Z)(r,i,[],!1,null,null,null);o.options.__file="registry/lib/components/style/custom-navbar/subscriptions/CinemaSubscriptions.vue";const s=o.exports},1976:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>v});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"navbar-subscriptions"},[n("TabControl",{ref:"tabControl",attrs:{tabs:t.tabs,"more-link":t.moreLink}})],1)};i._withStripped=!0;var a=n(9648),r=n(605),o=n(8795),s=n(1524);const l=Vue.extend({components:{TabControl:a.TabControl},mixins:[o.u],data(){const t=(0,r.getUID)();return{moreLink:e=>`https://space.bilibili.com/${t}/${e.name}`,tabs:[{name:s.N.Bangumi,displayName:"追番",activeLink:`https://space.bilibili.com/${t}/bangumi`,component:()=>Promise.resolve().then(n.bind(n,7444)).then((t=>t.default))},{name:s.N.Cinema,displayName:"追剧",activeLink:`https://space.bilibili.com/${t}/cinema`,component:()=>Promise.resolve().then(n.bind(n,2252)).then((t=>t.default))}]}}});var c=n(4648),p=n.n(c),d=n(831),u=n.n(d),m={insert:"head",singleton:!1};p()(u(),m);u().locals;var h=(0,n(133).Z)(l,i,[],!1,null,null,null);h.options.__file="registry/lib/components/style/custom-navbar/subscriptions/NavbarSubscriptions.vue";const v=h.exports},2940:(t,e,n)=>{"use strict";n.d(e,{Z:()=>x});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"subscription-list"},[t.loading?n("VLoading"):t.loading||0!==t.cards.length?[n("div",{staticClass:"subscription-content"},t._l(t.cards,(function(e){return n("a",{key:e.id,staticClass:"subscription-card",attrs:{href:e.playUrl,target:"_blank"}},[n("div",{staticClass:"cover-container"},[n("DpiImage",{staticClass:"cover",attrs:{src:e.coverUrl,size:64}})],1),t._v(" "),n("div",{staticClass:"card-info"},[n("h1",{staticClass:"title",attrs:{title:e.title}},[t._v(t._s(e.title))]),t._v(" "),n("div",{staticClass:"progress-row"},[e.status?n("div",{staticClass:"status",class:"status-"+e.status},[t._v("\n "+t._s(e.statusText)+"\n ")]):t._e(),t._v(" "),e.progress?n("div",{staticClass:"progress",attrs:{title:e.progress+" | "+e.latest}},[t._v("\n "+t._s(e.progress)+" | "+t._s(e.latest)+"\n ")]):n("div",{staticClass:"progress",attrs:{title:e.latest}},[t._v(t._s(e.latest))]),t._v(" "),n("a",{staticClass:"info",attrs:{href:e.mediaUrl,target:"_blank",title:"详细信息"}},[n("VIcon",{attrs:{icon:"mdi-information-outline",size:16}})],1)])])])})),0),t._v(" "),t.hasMorePage?n("ScrollTrigger",{on:{trigger:function(e){return t.nextPage()}}}):t._e()]:n("VEmpty")],2)};i._withStripped=!0;var a,r=n(605),o=n(3414),s=n(9648),l=n(2375),c=n(1524);!function(t){t[t.ToView=1]="ToView",t[t.Viewing=2]="Viewing",t[t.Viewed=3]="Viewed"}(a||(a={}));const p=t=>{switch(t){case a.ToView:return"想看";case a.Viewing:default:return"在看";case a.Viewed:return"看过"}},d=(t,e)=>{let n=t.status;n!==a.Viewed&&(n=a.Viewed-n);let i=e.status;return i!==a.Viewed&&(i=a.Viewed-i),n-i},u=Vue.extend({components:{DpiImage:s.DpiImage,VLoading:s.VLoading,VEmpty:s.VEmpty,VIcon:s.VIcon,ScrollTrigger:s.ScrollTrigger},props:{type:{type:String,default:c.N.Bangumi}},data:()=>({loading:!0,hasMorePage:!0,cards:[],page:1}),async created(){this.nextPage()},methods:{async nextPage(){try{const t=await(0,l.getJsonWithCredentials)(`https://api.bilibili.com/x/space/bangumi/follow/list?type=${this.type!==c.N.Bangumi?"2":"1"}&pn=${this.page}&ps=16&vmid=${(0,r.getUID)()}`);if(0!==t.code)return void(0,o.logError)(`加载订阅信息失败: ${t.message}`);const e=lodash.uniqBy(this.cards.concat(lodash.get(t,"data.list").map((t=>({title:t.title,coverUrl:t.square_cover.replace("http:","https:"),latest:t.new_ep.index_show,progress:t.progress,id:t.season_id,status:t.follow_status,statusText:p(t.follow_status),playUrl:`https://www.bilibili.com/bangumi/play/ss${t.season_id}`,mediaUrl:`https://www.bilibili.com/bangumi/media/md${t.media_id}`})))),(t=>t.id)).sort(d);this.page++,this.cards=e,this.hasMorePage=lodash.get(t,"data.total",0)>this.cards.length}finally{this.loading=!1}}}});var m=n(4648),h=n.n(m),v=n(6205),f=n.n(v),b={insert:"head",singleton:!1};h()(f(),b);f().locals;var g=(0,n(133).Z)(u,i,[],!1,null,null,null);g.options.__file="registry/lib/components/style/custom-navbar/subscriptions/SubscriptionsList.vue";const x=g.exports},5655:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"navbar-upload"},[n("VIcon",{attrs:{icon:"upload",size:18}}),t._v(" "),n("div",{staticClass:"navbar-upload-name"},[t._v("投稿")])],1)};i._withStripped=!0;var a=n(9648);const r=Vue.extend({components:{VIcon:a.VIcon}});var o=n(4648),s=n.n(o),l=n(9871),c=n.n(l),p={insert:"head",singleton:!1};s()(c(),p);c().locals;var d=(0,n(133).Z)(r,i,[],!1,null,"1a272463",null);d.options.__file="registry/lib/components/style/custom-navbar/upload/NavbarUpload.vue";const u=d.exports},6039:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var i=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)};i._withStripped=!0;var a=n(8795);const r=Vue.extend({mixins:[a.u]});var o=n(4648),s=n.n(o),l=n(3094),c=n.n(l),p={insert:"head",singleton:!1};s()(c(),p);c().locals;var d=(0,n(133).Z)(r,i,[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"upload-popup",attrs:{role:"list"}},[n("div",{attrs:{role:"listitem"}},[n("a",{attrs:{target:"_blank",href:"https://member.bilibili.com/platform/upload/text/apply"}},[t._v("专栏投稿")])]),t._v(" "),n("div",{attrs:{role:"listitem"}},[n("a",{attrs:{target:"_blank",href:"https://member.bilibili.com/platform/upload/audio/frame"}},[t._v("音频投稿")])]),t._v(" "),n("div",{attrs:{role:"listitem"}},[n("a",{attrs:{target:"_blank",href:"https://member.bilibili.com/platform/upload/sticker"}},[t._v("贴纸投稿")])]),t._v(" "),n("div",{attrs:{role:"listitem"}},[n("a",{attrs:{target:"_blank",href:"https://member.bilibili.com/platform/upload/video/frame"}},[t._v("视频投稿")])]),t._v(" "),n("div",{attrs:{role:"listitem"}},[n("a",{attrs:{target:"_blank",href:"https://member.bilibili.com/platform/upload-manager/article"}},[t._v("投稿管理")])]),t._v(" "),n("div",{attrs:{role:"listitem"}},[n("a",{attrs:{target:"_blank",href:"https://member.bilibili.com/platform/home"}},[t._v("创作中心")])])])}],!1,null,"a07cc62e",null);d.options.__file="registry/lib/components/style/custom-navbar/upload/UploadPopup.vue";const u=d.exports},4666:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>v});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"user-face-container"},[n("img",{staticClass:"user-face",attrs:{src:t.faceSrc,srcset:t.faceSrcset}}),t._v(" "),n("img",{staticClass:"user-pendant",attrs:{src:t.pendantSrc,srcset:t.pendantSrcset}})])};i._withStripped=!0;var a=n(3517),r=n(605);const o=coreApis.utils.constants,s="//static.hdslb.com/images/member/noface.gif",l=Vue.extend({name:"UserFace",data:()=>({faceSrc:o.EmptyImageUrl,pendantSrc:o.EmptyImageUrl,faceSrcset:null,pendantSrcset:null}),async created(){const t=await(0,a.getUserInfo)();if(t.isLogin){if(t.face){const e=t.face.replace("http:","https:");if(e.includes(s))this.faceSrc=s;else{const t=68;this.faceSrc=e,this.faceSrcset=(0,r.getDpiSourceSet)(e,t)}}if(t.pendant?.image){const e=t.pendant.image.replace("http:","https:"),n=116;this.pendantSrcset=(0,r.getDpiSourceSet)(e,n,"png")}}else this.faceSrc="https://static.hdslb.com/images/akari.jpg"}});var c=n(4648),p=n.n(c),d=n(2603),u=n.n(d),m={insert:"head",singleton:!1};p()(u(),m);u().locals;var h=(0,n(133).Z)(l,i,[],!1,null,null,null);h.options.__file="registry/lib/components/style/custom-navbar/user-info/UserFace.vue";const v=h.exports},2599:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>b});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"user-info-panel"},[t.isLogin&&!0===t.userInfo.isLogin?n("div",{staticClass:"logged-in"},[n("a",{staticClass:"name",attrs:{target:"_blank",href:"https://space.bilibili.com/"}},[t._v(t._s(t.userInfo.uname))]),t._v(" "),n("a",{staticClass:"type",attrs:{target:"_blank",href:"https://account.bilibili.com/account/big"}},[t._v(t._s(t.userType))]),t._v(" "),1===t.userInfo.vipStatus&&2===t.userInfo.vipType?n("div",{staticClass:"privileges row"},[n("div",{staticClass:"b-coin",class:{received:t.privileges.bCoin.received},attrs:{title:"有效期限: "+t.privileges.bCoin.expire},on:{click:function(e){return t.privilegeReceive(1)}}},[t._v("\n "+t._s(t.privileges.bCoin.received?"已领取B币":"领取B币")+"\n ")]),t._v(" "),n("div",{staticClass:"coupons",class:{received:t.privileges.coupons.received},attrs:{title:"有效期限: "+t.privileges.coupons.expire},on:{click:function(e){return t.privilegeReceive(2)}}},[t._v("\n "+t._s(t.privileges.coupons.received?"已领取优惠券":"领取优惠券")+"\n ")])]):t._e(),t._v(" "),n("div",{staticClass:"level-info row"},[n("a",{staticClass:"level",attrs:{target:"_blank",title:"等级",href:"https://account.bilibili.com/account/record"}},[t.userInfo.is_senior_member?n("VIcon",{staticClass:"level-icon plus",attrs:{icon:"lv"+t.userInfo.level_info.current_level+"-plus",colored:"",size:30}}):n("VIcon",{staticClass:"level-icon",attrs:{icon:"lv"+t.userInfo.level_info.current_level}})],1),t._v(" "),n("span",{staticClass:"level-progress-label"},[t._v(t._s(t.userInfo.level_info.current_exp)+" / "+t._s(t.userInfo.level_info.next_exp))])]),t._v(" "),n("div",{staticClass:"level-progress separator"},[n("div",{staticClass:"level-progress-thumb",style:t.levelProgressStyle})]),t._v(" "),n("div",{staticClass:"items"},[n("a",{staticClass:"item",attrs:{target:"_blank",title:"手机验证",href:"https://passport.bilibili.com/account/security#/bindphone"}},[n("VIcon",{attrs:{icon:"bind-phone",size:20}}),t._v(" "),t.userInfo.mobile_verified?n("VIcon",{attrs:{icon:"ok",size:18}}):n("VIcon",{attrs:{icon:"cancel",size:18}})],1),t._v(" "),n("a",{staticClass:"item",attrs:{target:"_blank",title:"邮箱验证",href:"https://passport.bilibili.com/account/security#/bindmail"}},[n("VIcon",{attrs:{icon:"bind-email",size:20}}),t._v(" "),t.userInfo.email_verified?n("VIcon",{attrs:{icon:"ok",size:18}}):n("VIcon",{attrs:{icon:"cancel",size:18}})],1),t._v(" "),n("a",{staticClass:"item",attrs:{target:"_blank",href:"https://account.bilibili.com/site/coin",title:"硬币"}},[n("VIcon",{attrs:{icon:"coin-outline",size:20}}),t._v(" "),n("span",[t._v(t._s(t.userInfo.money))])],1),t._v(" "),n("a",{staticClass:"item",attrs:{target:"_blank",href:"https://pay.bilibili.com/bb_balance.html",title:"B币"}},[n("VIcon",{attrs:{icon:"b-coin-outline",size:20}}),t._v(" "),n("span",[t._v(t._s(t.userInfo.wallet.bcoin_balance))])],1)]),t._v(" "),n("div",{staticClass:"separator"}),t._v(" "),n("div",{staticClass:"stats"},[n("a",{staticClass:"stats-item",attrs:{href:"https://space.bilibili.com/"+t.userInfo.mid+"/fans/follow",target:"_blank"}},[n("div",{staticClass:"stats-number"},[t._v(t._s(t._f("count")(t.stat.following)))]),t._v("\n 关注\n ")]),t._v(" "),n("a",{staticClass:"stats-item",attrs:{href:"https://space.bilibili.com/"+t.userInfo.mid+"/fans/fans",target:"_blank"}},[n("div",{staticClass:"stats-number"},[t._v(t._s(t._f("count")(t.stat.follower)))]),t._v("\n 粉丝\n ")]),t._v(" "),n("a",{staticClass:"stats-item",attrs:{href:"https://space.bilibili.com/"+t.userInfo.mid+"/dynamic",target:"_blank"}},[n("div",{staticClass:"stats-number"},[t._v(t._s(t._f("count")(t.stat.dynamic_count)))]),t._v("\n 动态\n ")])]),t._v(" "),n("div",{staticClass:"separator"}),t._v(" "),n("a",{staticClass:"bv-custom-navbar-operation",attrs:{target:"_blank",href:"https://account.bilibili.com/account/home"}},[n("VIcon",{attrs:{icon:"profile"}}),t._v("个人中心\n ")],1),t._v(" "),n("a",{staticClass:"bv-custom-navbar-operation",attrs:{target:"_blank",href:"https://member.bilibili.com/platform/upload-manager/article"}},[n("VIcon",{attrs:{icon:"posts"}}),t._v("投稿管理\n ")],1),t._v(" "),n("a",{staticClass:"bv-custom-navbar-operation",attrs:{target:"_blank",href:"https://pay.bilibili.com/"}},[n("VIcon",{attrs:{icon:"wallet"}}),t._v("B币钱包\n ")],1),t._v(" "),n("a",{staticClass:"bv-custom-navbar-operation",attrs:{target:"_blank",href:"https://link.bilibili.com/p/center/index"}},[n("VIcon",{attrs:{icon:"live-center"}}),t._v("直播中心\n ")],1),t._v(" "),n("a",{staticClass:"bv-custom-navbar-operation",attrs:{target:"_blank",href:"https://show.bilibili.com/orderlist"}},[n("VIcon",{attrs:{icon:"order-center"}}),t._v("订单中心\n ")],1),t._v(" "),n("a",{staticClass:"bv-custom-navbar-operation",attrs:{target:"_blank",href:"https://www.bilibili.com/v/cheese/mine"}},[n("VIcon",{attrs:{icon:"course"}}),t._v("我的课程\n ")],1),t._v(" "),n("div",{staticClass:"logout grey-button",on:{click:function(e){return t.logout()}}},[t._v("退出登录")])]):t._e(),t._v(" "),t.isLogin?t._e():n("div",{staticClass:"not-logged-in"},[n("h1",{staticClass:"welcome"},[t._v("欢迎来到 bilibili")]),t._v(" "),n("a",{staticClass:"signup grey-button",attrs:{href:"https://passport.bilibili.com/register/phone.html"}},[t._v("注册")]),t._v(" "),n("a",{staticClass:"login theme-button",attrs:{href:"https://passport.bilibili.com/login"}},[t._v("登录")])])])};i._withStripped=!0;var a=n(605),r=n(4289),o=n(3414),s=n(2375),l=n(3517),c=n(8795);const p=Vue.extend({components:{VIcon:coreApis.ui.VIcon},filters:{count:r.formatCount},mixins:[c.u],data:()=>({userInfo:{},stat:{},isLogin:Boolean((0,a.getUID)()),privileges:{bCoin:{received:!1,expire:""},coupons:{received:!1,expire:""}}}),computed:{level(){const t=`lv${this.userInfo.level_info.current_level}`;return this.userInfo.is_senior_member?{icon:`${t}-plus`,colored:!0}:{icon:t}},userType(){if(!this.userInfo.isLogin)return"未登录";if(0===this.userInfo.level_info.current_level)return"注册会员";if(1===this.userInfo.vipStatus){if(1===this.userInfo.vipType)return this.userInfo.vip_theme_type?"小会员":"大会员";if(2===this.userInfo.vipType)return this.userInfo.vip_theme_type?"年度小会员":"年度大会员"}return"正式会员"},levelProgressStyle(){if(!this.userInfo.isLogin)return{};const{current_exp:t,current_min:e,next_exp:n}=this.userInfo.level_info;return{transform:`scaleX(${(t-e)/(n-e)})`}}},async created(){const t=await(0,l.getUserInfo)();this.userInfo=t;const e=await(0,s.getJsonWithCredentials)("https://api.bilibili.com/x/web-interface/nav/stat");if(this.stat=e.data||{},this.isLogin&&2===this.userInfo.vipType){const t=await(0,s.getJsonWithCredentials)("https://api.bilibili.com/x/vip/privilege/my");if(0===t.code){const e=t.data.list.find((t=>1===t.type));this.privileges.bCoin.received=1===e.state,this.privileges.bCoin.expire=new Date(1e3*e.expire_time).toLocaleDateString();const n=t.data.list.find((t=>2===t.type));this.privileges.coupons.received=1===n.state,this.privileges.coupons.expire=new Date(1e3*n.expire_time).toLocaleDateString()}}},methods:{async privilegeReceive(t){const e={1:"bCoin",2:"coupons"};if(this.privileges[e[t]].received)return;this.privileges[e[t]].received=!0;const n=(0,a.getCsrf)(),i=await(await fetch("https://api.bilibili.com/x/vip/privilege/receive",{credentials:"include",headers:{"content-type":"application/x-www-form-urlencoded"},body:`type=${t}&csrf=${n}`,method:"POST"})).json();console.log(i),0===i.code?"bCoin"===e[t]&&(this.userInfo.wallet.bcoin_balance+=5):69801===i.code||(this.privileges[e[t]].received=!1,(0,o.logError)(i.message))},async logout(){const t=await(0,s.postTextWithCredentials)("https://passport.bilibili.com/login/exit/v2",(0,a.formData)({biliCSRF:(0,a.getCsrf)()})),e=lodash.get(JSON.parse(t),"data.redirectUrl","");e&&window.location.assign(e)}}});var d=n(4648),u=n.n(d),m=n(6600),h=n.n(m),v={insert:"head",singleton:!1};u()(h(),v);h().locals;var f=(0,n(133).Z)(p,i,[],!1,null,null,null);f.options.__file="registry/lib/components/style/custom-navbar/user-info/UserInfoPopup.vue";const b=f.exports},4808:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"watchlater-list"},[n("div",{staticClass:"header"},[n("div",{staticClass:"search"},[n("TextBox",{attrs:{linear:"",placeholder:"搜索"},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}})],1),t._v(" "),n("a",{staticClass:"operation",attrs:{target:"_blank",href:"https://www.bilibili.com/medialist/play/watchlater"}},[n("VButton",{staticClass:"round-button",attrs:{title:"播放全部",round:""}},[n("VIcon",{attrs:{icon:"mdi-play",size:18}})],1)],1),t._v(" "),n("a",{staticClass:"operation",attrs:{target:"_blank",href:"https://www.bilibili.com/watchlater/#/list"}},[n("VButton",{staticClass:"round-button",attrs:{title:"查看更多",round:""}},[n("VIcon",{attrs:{icon:"mdi-dots-horizontal",size:18}})],1)],1)]),t._v(" "),t.loading?n("VLoading"):t.loading||0!==t.cards.length?n("transition-group",{staticClass:"watchlater-list-content",attrs:{name:"cards",tag:"div"}},t._l(t.filteredCards,(function(e,i){return n("div",{key:e.aid,staticClass:"watchlater-card"},[n("a",{staticClass:"cover-container",attrs:{target:"_blank",href:e.href}},[n("DpiImage",{staticClass:"cover",attrs:{src:e.coverUrl,size:{width:130,height:85}}}),t._v(" "),n("div",{staticClass:"floating remove",attrs:{title:"移除"},on:{click:function(n){return n.preventDefault(),t.remove(e.aid,i)}}},[n("VIcon",{attrs:{icon:"mdi-close",size:16}})],1),t._v(" "),n("div",{staticClass:"floating duration"},[t._v(t._s(e.durationText))]),t._v(" "),e.complete?n("div",{staticClass:"floating viewed"},[t._v("已观看")]):t._e()],1),t._v(" "),n("a",{staticClass:"title",attrs:{target:"_blank",href:e.href,title:e.title}},[t._v(t._s(e.title))]),t._v(" "),n("a",{staticClass:"up",attrs:{target:"_blank",href:"https://space.bilibili.com/"+e.upID,title:e.upName}},[n("DpiImage",{staticClass:"face",attrs:{src:e.upFaceUrl,size:20}}),t._v(" "),n("div",{staticClass:"name"},[t._v(t._s(e.upName))])],1)])})),0):n("VEmpty")],1)};i._withStripped=!0;var a=n(9986),r=n(4289);const o=coreApis.componentApis.video.watchlater;var s=n(9648),l=n(8795);const c=Vue.extend({components:{VLoading:s.VLoading,VEmpty:s.VEmpty,TextBox:s.TextBox,VButton:s.VButton,VIcon:s.VIcon,DpiImage:s.DpiImage},mixins:[l.u],data(){const t=(0,a.getComponentSettings)("watchlaterRedirect");return{watchlaterList:o.watchlaterList,loading:!0,cards:[],filteredCards:[],search:"",redirect:t.enabled&&t.options.navbar}},watch:{search(){this.updateFilteredCards()}},async created(){try{await this.updateList()}finally{this.loading=!1}},methods:{toggleWatchlater:o.toggleWatchlater,popupRefresh(){this.updateList()},async updateList(){const t=await(0,o.getWatchlaterList)(!0);if(!t)return void(this.cards=[]);const e=t=>this.redirect?`https://www.bilibili.com/video/${t.bvid}`:`https://www.bilibili.com/medialist/play/watchlater/${t.bvid}`,n=t.map((t=>{const n=(()=>{if(void 0===t.pages||!this.redirect)return e(t);const n=t.pages.map((t=>t.cid)),i=0===t.cid?1:n.indexOf(t.cid)+1;return i<=1?e(t):`${e(t)}?p=${i}`})(),i=Math.round(1e3*t.progress/t.duration)/1e3;return{aid:t.aid,href:n,coverUrl:t.pic.replace("http:","https:"),durationText:(0,r.formatDuration)(t.duration),duration:t.duration,complete:t.progress<0||i>.95,title:t.title,upName:t.owner.name,upFaceUrl:t.owner.face.replace("http:","https:"),upID:t.owner.mid}}));this.cards=n,this.search?this.updateFilteredCards():this.filteredCards=n},async remove(t,e){this.cards.splice(e,1),await this.toggleWatchlater(t)},updateFilteredCards:lodash.debounce((function(){const t=this.search.toLowerCase();this.$el.querySelector(".watchlater-list-content").scrollTo(0,0),this.filteredCards=this.cards.filter((e=>e.title.toLowerCase().includes(t)||e.upName.toLowerCase().includes(t)))}),100)}});var p=n(4648),d=n.n(p),u=n(1767),m=n.n(u),h={insert:"head",singleton:!1};d()(m(),h);m().locals;var v=(0,n(133).Z)(c,i,[],!1,null,null,null);v.options.__file="registry/lib/components/style/custom-navbar/watchlater/NavbarWatchlater.vue";const f=v.exports},133:(t,e,n)=>{"use strict";function i(t,e,n,i,a,r,o,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=l):a&&(l=s?function(){a.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:a),l)if(c.functional){c._injectStyles=l;var p=c.render;c.render=function(t,e){return l.call(e),p(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}n.d(e,{Z:()=>i})},6690:t=>{function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=6690,t.exports=e},2948:t=>{"use strict";t.exports="使用脚本提供的顶栏替换原版的主站顶栏 (非主站不替换), 启用后还可以在反广告插件 (例如 ABP) 中配置禁止原版顶栏的消息 iframe 以提升性能:\n- *://message.bilibili.com/pages/nav/index_new_pc_sync\n- *://message.bilibili.com/pages/nav/index_new_sync\n"},2375:t=>{"use strict";t.exports=coreApis.ajax},9799:t=>{"use strict";t.exports=coreApis.componentApis.feeds.api},5441:t=>{"use strict";t.exports=coreApis.componentApis.feeds.notify},3861:t=>{"use strict";t.exports=coreApis.componentApis.utils.categories.data},9153:t=>{"use strict";t.exports=coreApis.pluginApis.data},9986:t=>{"use strict";t.exports=coreApis.settings},9648:t=>{"use strict";t.exports=coreApis.ui},3517:t=>{"use strict";t.exports=coreApis.userInfo},4289:t=>{"use strict";t.exports=coreApis.utils.formatters},3414:t=>{"use strict";t.exports=coreApis.utils.log},4577:t=>{"use strict";t.exports=coreApis.utils.sort},605:t=>{"use strict";t.exports=coreApis.utils}},i={};function a(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={id:t,exports:{}};return n[t](r,r.exports,a),r.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,a.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var r=Object.create(null);a.r(r);var o={};t=t||[null,e({}),e([]),e(e)];for(var s=2&i&&n;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((t=>o[t]=()=>n[t]));return o.default=()=>n,a.d(r,o),r},a.d=(t,e)=>{for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";a.d(r,{component:()=>o});const t=coreApis.componentApis.define;var e=a(9986),n=a(605);const i=(0,t.defineOptionsMetadata)({hidden:{hidden:!0,defaultValue:["blank1","blank4","drawing","music","gamesIframe","bangumi","match"],displayName:"隐藏的元素"},order:{hidden:!0,defaultValue:{},displayName:"元素顺序"},padding:{hidden:!0,defaultValue:10,displayName:"边缘间距(%)"},globalFixed:{defaultValue:!1,displayName:"全局固定"},fill:{defaultValue:!1,displayName:"主题色填充"},transparent:{defaultValue:!0,displayName:"透明填充"},blur:{defaultValue:!1,displayName:"背景模糊"},shadow:{defaultValue:!0,displayName:"投影"},seasonLogo:{defaultValue:!1,displayName:"使用季节Logo"},touch:{defaultValue:!1,displayName:"触摸模式"},openInNewTab:{defaultValue:!0,displayName:"新标签页打开"},refreshOnPopup:{defaultValue:!0,displayName:"自动刷新数据"},height:{defaultValue:50,validator:(0,n.getNumberValidator)(50,64),displayName:"顶栏高度 (px)"},openInNewTabOverrides:{defaultValue:{logo:!1},displayName:"新标签页打开设置覆盖",hidden:!0},showDeadVideos:{defaultValue:!1,displayName:"显示已失效视频",hidden:!0}}),o=(0,t.defineComponentMetadata)({name:"customNavbar",displayName:"自定义顶栏",entry:async t=>{let{metadata:{name:i}}=t;if((0,n.isIframe)()||(0,n.isNotHtml)())return;(0,e.addComponentListener)(`${i}.padding`,(t=>{document.documentElement.style.setProperty("--navbar-bounds-padding",`${t}%`)}),!0);["https://space.bilibili.com","https://www.bilibili.com/read","https://www.bilibili.com/account/history"].some((t=>(0,n.matchUrlPattern)(t)))||(0,e.addComponentListener)(`${i}.globalFixed`,(t=>{document.body.classList.toggle("fixed-navbar",t)}),!0);const r=await Promise.resolve().then(a.bind(a,8252)),o=(0,n.mountVueComponent)(r);document.body.insertAdjacentElement("beforeend",o.$el),["fill","shadow","blur"].forEach((t=>{(0,e.addComponentListener)(`${i}.${t}`,(e=>o.toggleStyle(e,t)),!0)}))},tags:[componentsTags.style,componentsTags.general],options:i,urlInclude:["//www.bilibili.com","//t.bilibili.com","//search.bilibili.com","//space.bilibili.com","//account.bilibili.com","//pay.bilibili.com","//member.bilibili.com","//big.bilibili.com","//message.bilibili.com","//app.bilibili.com","//passport.bilibili.com","//live.bilibili.com/blackboard/"],urlExclude:["//t.bilibili.com/vote/h5/index/#/result","//t.bilibili.com/lottery/h5/index/#/result","//member.bilibili.com/video/upload","//member.bilibili.com/platform","//space.bilibili.com/ajax/","//www.bilibili.com/h5/comment/","//member.bilibili.com/v2","//game.bilibili.com/"],instantStyles:[{name:"custom-navbar-style",style:()=>Promise.resolve().then(a.t.bind(a,9819,23)),important:!0}],unload:async()=>{document.querySelectorAll(".custom-navbar,.custom-navbar-settings").forEach((t=>t.style.display="none"))},reload:async()=>{document.querySelectorAll(".custom-navbar,.custom-navbar-settings").forEach((t=>t.style.display="flex"))},extraOptions:()=>Promise.resolve().then(a.bind(a,5086)).then((t=>t.default)),plugin:{displayName:"自定义顶栏 - 功能扩展",setup:t=>{let{addData:e}=t;e("launchBar.actions",(t=>{t.push({name:"navbarSettings",getActions:async()=>[{name:"自定义顶栏设置",description:"Custom Navbar Settings",icon:"mdi-sort",action:async()=>{const{toggleNavbarSettings:t}=await Promise.resolve().then(a.bind(a,9754));t()}}]})}))}},commitHash:"dd29a98069987f6859615844b6a97f609c5ddfd2",coreVersion:"2.7.1",description:(()=>{const t=a(6690);return{...Object.fromEntries(t.keys().map((e=>[e.match(/index\.(.+)\.md$/)[1],t(e)]))),"zh-CN":()=>Promise.resolve().then(a.t.bind(a,2948,17)).then((t=>t.default))}})()})})(),r=r.component})()));