bilibili-app-recommend

为B站首页添加像App一样的推荐

当前为 2022-06-08 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         bilibili-app-recommend
// @namespace    https://magicdawn.fun
// @version      0.3.2
// @author       magicdawn
// @description  为B站首页添加像App一样的推荐
// @license      MIT
// @homepageURL  https://github.com/magicdawn/bilibili-app-recommend
// @supportURL   https://github.com/magicdawn/bilibili-app-recommend/issues
// @include      https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?*
// @match        *://www.bilibili.com/*
// @require      https://unpkg.com/[email protected]/dist/jquery.min.js
// @require      https://unpkg.com/[email protected]/dist/axios.min.js
// @require      https://unpkg.com/[email protected]/dist/axiosGmxhrAdapter.min.js
// @require      https://unpkg.com/[email protected]/umd/react.production.min.js
// @require      https://unpkg.com/[email protected]/umd/react-dom.production.min.js
// @connect      app.bilibili.com
// @connect      passport.bilibili.com
// @connect      link.acg.tv
// @connect      www.mcbbs.net
// @grant        GM.xmlHttpRequest
// @grant        GM_xmlhttpRequest
// @grant        GM_getValue
// @grant        GM_setValue
// @grant        GM_deleteValue
// @grant        unsafeWindow
// ==/UserScript==

;(({ cssTextList = [] }) => {
  cssTextList.forEach((s) => {
    const style = document.createElement("style");
    style.innerText = s;
    style.dataset.source = "vite-plugin-monkey";
    document.head.appendChild(style);
  });
})({
  "cssTextList": [
    "._toast-container_9119l_1{position:fixed;top:50%;left:50%;z-index:999999;padding:12px 24px;font-size:14px;width:240px;margin-left:-120px;background:#ffb243;color:#fff;border-radius:6px}._expand-btn_wdzp9_1{padding:0;width:31px;height:31px;border-radius:50%}._expand-btn_wdzp9_1 svg{width:13px;height:13px;transform:rotate(180deg)}._expand-btn_wdzp9_1 svg._expanded_wdzp9_12{transform:rotate(0)}body.dark ._expand-btn_wdzp9_1{color:#eee!important;border-color:transparent!important;background-color:#333!important}body.dark ._expand-btn_wdzp9_1:hover{background-color:#555!important}._bili-video-card_3h2r6_1{position:relative}._image-wrapper_3h2r6_4{border-radius:\"6px\";overflow:\"hidden\"}._preview-card-wrapper_3h2r6_8{position:absolute;top:0;left:0;right:0;bottom:0;z-index:2;overflow:hidden;border-top-left-radius:inherit;border-top-right-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0}._watch-later_3h2r6_21{z-index:3}._badge_3h2r6_24{color:#fa6a9d;border-radius:2px;border:1px #fa6a9d solid;line-height:20px;padding:0 10px;transform:scale(.8)}._recommend-reason_3h2r6_32{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;color:var(--Or5);background-color:var(--Or1);border-radius:4px;margin-right:4px;font-size:var(--follow-icon-font-size);line-height:var(--follow-icon-line-height);height:var(--follow-icon-line-height);padding:0 4px;cursor:default}._bangumi-desc_3h2r6_47{color:default}._btn-dislike_3h2r6_50{display:flex;align-items:center;justify-content:center;position:absolute;top:8px;left:8px;width:28px;height:28px;border-radius:6px;cursor:pointer;background-color:#212121cc;z-index:9;transform:translateZ(0)}._btn-dislike_3h2r6_50 ._btn-dislike-icon_3h2r6_65{pointer-events:none;user-select:none;width:12px;height:12px;color:#fff}._btn-dislike_3h2r6_50 ._btn-dislike-tip_3h2r6_72{pointer-events:none;user-select:none;position:absolute;bottom:-6px;left:-5px;transform:translateY(100%);font-size:12px;color:#fff;border-radius:4px;line-height:18px;padding:4px 8px;background-color:#000c;white-space:nowrap}._disliked-wrapper_3h2r6_87{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;border-radius:6px;border:1px solid #eee}body.dark ._disliked-wrapper_3h2r6_87{border:1px solid #333}._disliked-wrapper_3h2r6_87 ._dislike-content-cover_3h2r6_101{border-top-left-radius:6px;border-top-right-radius:6px;padding-top:56.25%;position:relative}._disliked-wrapper_3h2r6_87 ._dislike-content-cover_3h2r6_101 ._dislike-content-cover-inner_3h2r6_107{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}._disliked-wrapper_3h2r6_87 ._dislike-content-cover_3h2r6_101 ._dislike-content-cover-inner_3h2r6_107 ._dislike-icon_3h2r6_118{color:inherit}._disliked-wrapper_3h2r6_87 ._dislike-content-cover_3h2r6_101 ._dislike-content-cover-inner_3h2r6_107 ._dislike-reason_3h2r6_121{font-size:20px;text-align:center}._disliked-wrapper_3h2r6_87 ._dislike-content-cover_3h2r6_101 ._dislike-content-cover-inner_3h2r6_107 ._dislike-desc_3h2r6_125{font-size:16px;text-align:center}._disliked-wrapper_3h2r6_87 ._dislike-content-action_3h2r6_129{flex:1;width:100%;border-top:1px solid #eee;display:flex;align-items:center;justify-content:center}body.dark ._disliked-wrapper_3h2r6_87 ._dislike-content-action_3h2r6_129{border-top:1px solid #333}._disliked-wrapper_3h2r6_87 ._dislike-content-action_3h2r6_129 button{font-size:18px;color:inherit}._modal-mask_vh629_1{position:fixed;left:0;top:0;right:0;bottom:0;background-color:#00000080;z-index:11003;display:flex;align-items:center;justify-content:center}._modal_vh629_1{width:500px;max-height:calc(80vh - 50px);border-radius:10px;overflow:hidden;background-color:#fff;padding:0 15px 15px;display:flex;flex-direction:column}._modal_vh629_1 ._modal-header_vh629_23{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal_vh629_1 ._modal-header_vh629_23 ._modal-title_vh629_30{font-size:1.5rem;margin-bottom:0;line-height:1.5}._modal_vh629_1 ._modal-header_vh629_23 ._title-desc_vh629_35{margin-left:5px;font-size:40%}._modal_vh629_1 ._modal-header_vh629_23 ._btn-close_vh629_39{margin-left:10px}._modal_vh629_1 ._modal-header_vh629_23 ._btn-close_vh629_39 svg{width:10px;height:10px;margin-right:3px;margin-top:-1px}body.dark ._modal_vh629_1 ._modal-header_vh629_23 ._btn-close_vh629_39{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._modal_vh629_1 ._modal-body_vh629_57{padding-top:0;flex-grow:1;overflow-y:scroll}._reason-list_vh629_62{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between}._reason_vh629_62{color:inherit;width:45%;text-align:center;line-height:20px;border:1px solid #eee;margin-top:8px;margin-bottom:8px;padding-top:5px;padding-bottom:5px}body.dark ._reason_vh629_62{border:1px solid #333}._modal-mask_5dl20_1{position:fixed;left:0;top:0;right:0;bottom:0;z-index:11000;background-color:#00000080;display:flex;align-items:center;justify-content:center}._modal-mask_5dl20_1._narrow-mode_5dl20_13{background-color:#000000e6}._modal_5dl20_1{width:calc(100vw - 50px);height:calc(100vh - 50px);border:1px solid #fa6a9d;border-radius:10px;overflow:hidden;background-color:#fff;padding:0 0 15px 15px;display:flex;flex-direction:column}._modal_5dl20_1._narrow-mode_5dl20_13{width:606px;height:calc(100vh - 10px)}._modal_5dl20_1 ._modal-header_5dl20_32{padding-top:10px;padding-bottom:10px;border-bottom:none;padding-right:15px;display:flex;align-items:center}._modal_5dl20_1 ._modal-header_5dl20_32 ._modal-title_5dl20_40{font-size:1.5rem;margin-bottom:0;line-height:1.5}body.dark ._modal_5dl20_1 ._modal-header_5dl20_32 ._btn-refresh_5dl20_45,body.dark ._modal_5dl20_1 ._modal-header_5dl20_32 ._btn-close_5dl20_46{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._modal_5dl20_1 ._modal-header_5dl20_32 ._btn-close_5dl20_46{margin-left:10px}._modal_5dl20_1 ._modal-header_5dl20_32 ._btn-close_5dl20_46 svg{width:10px;height:10px}._modal_5dl20_1 ._modal-body_5dl20_62{padding-top:0;flex-grow:1;overflow-y:scroll;padding-right:15px}._list_5dl20_68{color:inherit}._card_5dl20_71{border:2px solid transparent}._card_5dl20_71._active_5dl20_74{border-color:#fa6a9d;border-radius:6px}._video-card-list_5dl20_78{display:block!important}#_video-card-body_5dl20_1>*{display:block!important}#_video-card-body_5dl20_1._narrow-mode_5dl20_13{grid-template-columns:repeat(2,1fr)}._loader_5dl20_87{text-align:center;line-height:60px;font-size:120%}#_use-narrow-mode_5dl20_1{margin-left:5px;margin-top:1px;cursor:pointer;outline:none}#_use-narrow-mode_5dl20_1+label{margin-left:2px;user-select:none;cursor:pointer}._grid_p5dvw_1{color:default}@media (min-width: 2200px){._video-card-list_p5dvw_5.is-full{grid-column:span 7!important}._video-card-list_p5dvw_5.is-full .video-card-body.more-class1.more-class2{grid-column:span 7!important;grid-template-columns:repeat(7,1fr)!important}._video-card-list_p5dvw_5.is-full .video-card-body.more-class1.more-class2>*{display:block!important}._video-card-list_p5dvw_5.is-full .video-card-body.more-class1.more-class2>*:nth-of-type(1n + 15){display:none!important}}._expand-btn_p5dvw_19{padding:0;width:31px;height:31px;border-radius:50%}._expand-btn_p5dvw_19 svg{width:13px;height:13px;transform:rotate(180deg)}._expand-btn_p5dvw_19 svg._expanded_p5dvw_30{transform:rotate(0)}\n"
  ]
});

var QT=Object.defineProperty,eC=Object.defineProperties;var tC=Object.getOwnPropertyDescriptors;var _i=Object.getOwnPropertySymbols;var $f=Object.prototype.hasOwnProperty,kf=Object.prototype.propertyIsEnumerable;var Fa=(Oe,Te,D)=>Te in Oe?QT(Oe,Te,{enumerable:!0,configurable:!0,writable:!0,value:D}):Oe[Te]=D,dn=(Oe,Te)=>{for(var D in Te||(Te={}))$f.call(Te,D)&&Fa(Oe,D,Te[D]);if(_i)for(var D of _i(Te))kf.call(Te,D)&&Fa(Oe,D,Te[D]);return Oe},Bn=(Oe,Te)=>eC(Oe,tC(Te));var Uf=(Oe,Te)=>{var D={};for(var vt in Oe)$f.call(Oe,vt)&&Te.indexOf(vt)<0&&(D[vt]=Oe[vt]);if(Oe!=null&&_i)for(var vt of _i(Oe))Te.indexOf(vt)<0&&kf.call(Oe,vt)&&(D[vt]=Oe[vt]);return D};var Ba=(Oe,Te,D)=>(Fa(Oe,typeof Te!="symbol"?Te+"":Te,D),D);(function(Oe,Te,D,vt,Hf){"use strict";function Wn(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var $n=Wn(Oe),zf=Wn(Te),mi=Wn(D),yi=Wn(vt),Gf=Wn(Hf),xt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},wi={exports:{}};const Kf=(i,s)=>Math.floor(Math.random()*(s-i+1)+i),Wa=()=>{const i=new Error("Delay aborted");return i.name="AbortError",i},$a=({clearTimeout:i,setTimeout:s,willResolve:r})=>(u,{value:f,signal:h}={})=>{if(h&&h.aborted)return Promise.reject(Wa());let g,m,w;const A=i||clearTimeout,R=()=>{A(g),w(Wa())},T=()=>{h&&h.removeEventListener("abort",R)},E=new Promise((L,M)=>{m=()=>{T(),r?L(f):M(f)},w=M,g=(s||setTimeout)(m,u)});return h&&h.addEventListener("abort",R,{once:!0}),E.clear=()=>{A(g),g=null,m()},E},ka=i=>{const s=$a(Bn(dn({},i),{willResolve:!0}));return s.reject=$a(Bn(dn({},i),{willResolve:!1})),s.range=(r,u,f)=>s(Kf(r,u),f),s},bi=ka();bi.createWithTimers=ka,wi.exports=bi,wi.exports.default=bi;var Ua=wi.exports,Si,Yf=zf.default;Si=Yf.createRoot;var Ha={exports:{}};/*!
  Copyright (c) 2018 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/(function(i){(function(){var s={}.hasOwnProperty;function r(){for(var u=[],f=0;f<arguments.length;f++){var h=arguments[f];if(!!h){var g=typeof h;if(g==="string"||g==="number")u.push(h);else if(Array.isArray(h)){if(h.length){var m=r.apply(null,h);m&&u.push(m)}}else if(g==="object")if(h.toString===Object.prototype.toString)for(var w in h)s.call(h,w)&&h[w]&&u.push(w);else u.push(h.toString())}}return u.join(" ")}i.exports?(r.default=r,i.exports=r):window.classNames=r})()})(Ha);var qe=Ha.exports,za=function(s){return typeof s=="function"},Xf=function(s){return typeof s=="string"},Ga=function(s){return typeof s=="number"};function ke(i){var s=D.useRef(i);s.current=D.useMemo(function(){return i},[i]);var r=D.useRef();return r.current||(r.current=function(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return s.current.apply(this,u)}),r.current}function Ka(i,s){if(i===s)return!0;for(var r=0;r<i.length;r++)if(!Object.is(i[r],s[r]))return!1;return!0}function lr(i){var s=D.useRef(i);return s.current=i,s}var Zf=function(s){var r=lr(s);D.useEffect(function(){return function(){r.current()}},[])},Ya=Zf;function jf(i){var s=typeof i;return i!=null&&(s=="object"||s=="function")}var Xa=jf,Jf=typeof xt=="object"&&xt&&xt.Object===Object&&xt,Za=Jf,qf=Za,Vf=typeof self=="object"&&self&&self.Object===Object&&self,Qf=qf||Vf||Function("return this")(),Ot=Qf,eh=Ot,th=eh.Symbol,xi=th,ja=xi,Ja=Object.prototype,nh=Ja.hasOwnProperty,rh=Ja.toString,kn=ja?ja.toStringTag:void 0;function ih(i){var s=nh.call(i,kn),r=i[kn];try{i[kn]=void 0;var u=!0}catch{}var f=rh.call(i);return u&&(s?i[kn]=r:delete i[kn]),f}var sh=ih,ah=Object.prototype,oh=ah.toString;function uh(i){return oh.call(i)}var lh=uh,qa=xi,ch=sh,fh=lh,hh="[object Null]",dh="[object Undefined]",Va=qa?qa.toStringTag:void 0;function ph(i){return i==null?i===void 0?dh:hh:Va&&Va in Object(i)?ch(i):fh(i)}var cr=ph;function gh(i){return i!=null&&typeof i=="object"}var fr=gh,vh=function(s){D.useEffect(function(){s==null||s()},[])},_h=vh,mh=globalThis&&globalThis.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var u=r.call(i),f,h=[],g;try{for(;(s===void 0||s-- >0)&&!(f=u.next()).done;)h.push(f.value)}catch(m){g={error:m}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(g)throw g.error}}return h};function Qa(i,s){i===void 0&&(i=!1);var r=mh(D.useState(i),2),u=r[0],f=r[1],h=D.useMemo(function(){var g=s===void 0?!i:s,m=function(){return f(function(E){return E===i?g:i})},w=function(E){return f(E)},A=function(){return f(i)},R=function(){return f(g)};return{toggle:m,set:w,setLeft:A,setRight:R}},[]);return[u,h]}var yh=globalThis&&globalThis.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var u=r.call(i),f,h=[],g;try{for(;(s===void 0||s-- >0)&&!(f=u.next()).done;)h.push(f.value)}catch(m){g={error:m}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(g)throw g.error}}return h};function wh(i){i===void 0&&(i=!1);var s=yh(Qa(i),2),r=s[0],u=s[1],f=u.toggle,h=u.set,g=D.useMemo(function(){var m=function(){return h(!0)},w=function(){return h(!1)};return{toggle:f,set:function(R){return h(!!R)},setTrue:m,setFalse:w}},[]);return[r,g]}var bh=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Sh=bh;function hr(i,s){if(!!Sh){if(!i)return s;var r;return za(i)?r=i():"current"in i?r=i.current:r=i,r}}var xh=function(s){var r=function(f,h,g){var m=D.useRef(!1),w=D.useRef([]),A=D.useRef([]),R=D.useRef();s(function(){var T,E=Array.isArray(g)?g:[g],L=E.map(function(M){return hr(M)});if(!m.current){m.current=!0,w.current=L,A.current=h,R.current=f();return}(L.length!==w.current.length||!Ka(L,w.current)||!Ka(h,A.current))&&((T=R.current)===null||T===void 0||T.call(R),w.current=L,A.current=h,R.current=f())}),Ya(function(){var T;(T=R.current)===null||T===void 0||T.call(R),m.current=!1})};return r},Ah=xh,Th=Ah(D.useEffect),eo=Th,to={exports:{}};(function(i,s){(function(r,u){i.exports=u()})(xt,function(){var r=1e3,u=6e4,f=36e5,h="millisecond",g="second",m="minute",w="hour",A="day",R="week",T="month",E="quarter",L="year",M="date",I="Invalid Date",F=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,W=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,le={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},ae=function(X,U,B){var Z=String(X);return!Z||Z.length>=U?X:""+Array(U+1-Z.length).join(B)+X},ne={s:ae,z:function(X){var U=-X.utcOffset(),B=Math.abs(U),Z=Math.floor(B/60),P=B%60;return(U<=0?"+":"-")+ae(Z,2,"0")+":"+ae(P,2,"0")},m:function X(U,B){if(U.date()<B.date())return-X(B,U);var Z=12*(B.year()-U.year())+(B.month()-U.month()),P=U.clone().add(Z,T),z=B-P<0,j=U.clone().add(Z+(z?-1:1),T);return+(-(Z+(B-P)/(z?P-j:j-P))||0)},a:function(X){return X<0?Math.ceil(X)||0:Math.floor(X)},p:function(X){return{M:T,y:L,w:R,d:A,D:M,h:w,m,s:g,ms:h,Q:E}[X]||String(X||"").toLowerCase().replace(/s$/,"")},u:function(X){return X===void 0}},J="en",we={};we[J]=le;var xe=function(X){return X instanceof Ue},Be=function X(U,B,Z){var P;if(!U)return J;if(typeof U=="string"){var z=U.toLowerCase();we[z]&&(P=z),B&&(we[z]=B,P=z);var j=U.split("-");if(!P&&j.length>1)return X(j[0])}else{var oe=U.name;we[oe]=U,P=oe}return!Z&&P&&(J=P),P||!Z&&J},pe=function(X,U){if(xe(X))return X.clone();var B=typeof U=="object"?U:{};return B.date=X,B.args=arguments,new Ue(B)},re=ne;re.l=Be,re.i=xe,re.w=function(X,U){return pe(X,{locale:U.$L,utc:U.$u,x:U.$x,$offset:U.$offset})};var Ue=function(){function X(B){this.$L=Be(B.locale,null,!0),this.parse(B)}var U=X.prototype;return U.parse=function(B){this.$d=function(Z){var P=Z.date,z=Z.utc;if(P===null)return new Date(NaN);if(re.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var j=P.match(F);if(j){var oe=j[2]-1||0,fe=(j[7]||"0").substring(0,3);return z?new Date(Date.UTC(j[1],oe,j[3]||1,j[4]||0,j[5]||0,j[6]||0,fe)):new Date(j[1],oe,j[3]||1,j[4]||0,j[5]||0,j[6]||0,fe)}}return new Date(P)}(B),this.$x=B.x||{},this.init()},U.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},U.$utils=function(){return re},U.isValid=function(){return this.$d.toString()!==I},U.isSame=function(B,Z){var P=pe(B);return this.startOf(Z)<=P&&P<=this.endOf(Z)},U.isAfter=function(B,Z){return pe(B)<this.startOf(Z)},U.isBefore=function(B,Z){return this.endOf(Z)<pe(B)},U.$g=function(B,Z,P){return re.u(B)?this[Z]:this.set(P,B)},U.unix=function(){return Math.floor(this.valueOf()/1e3)},U.valueOf=function(){return this.$d.getTime()},U.startOf=function(B,Z){var P=this,z=!!re.u(Z)||Z,j=re.p(B),oe=function(De,Ee){var Qe=re.w(P.$u?Date.UTC(P.$y,Ee,De):new Date(P.$y,Ee,De),P);return z?Qe:Qe.endOf(A)},fe=function(De,Ee){return re.w(P.toDate()[De].apply(P.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(Ee)),P)},_e=this.$W,Ce=this.$M,at=this.$D,Ne="set"+(this.$u?"UTC":"");switch(j){case L:return z?oe(1,0):oe(31,11);case T:return z?oe(1,Ce):oe(0,Ce+1);case R:var ot=this.$locale().weekStart||0,Rt=(_e<ot?_e+7:_e)-ot;return oe(z?at-Rt:at+(6-Rt),Ce);case A:case M:return fe(Ne+"Hours",0);case w:return fe(Ne+"Minutes",1);case m:return fe(Ne+"Seconds",2);case g:return fe(Ne+"Milliseconds",3);default:return this.clone()}},U.endOf=function(B){return this.startOf(B,!1)},U.$set=function(B,Z){var P,z=re.p(B),j="set"+(this.$u?"UTC":""),oe=(P={},P[A]=j+"Date",P[M]=j+"Date",P[T]=j+"Month",P[L]=j+"FullYear",P[w]=j+"Hours",P[m]=j+"Minutes",P[g]=j+"Seconds",P[h]=j+"Milliseconds",P)[z],fe=z===A?this.$D+(Z-this.$W):Z;if(z===T||z===L){var _e=this.clone().set(M,1);_e.$d[oe](fe),_e.init(),this.$d=_e.set(M,Math.min(this.$D,_e.daysInMonth())).$d}else oe&&this.$d[oe](fe);return this.init(),this},U.set=function(B,Z){return this.clone().$set(B,Z)},U.get=function(B){return this[re.p(B)]()},U.add=function(B,Z){var P,z=this;B=Number(B);var j=re.p(Z),oe=function(Ce){var at=pe(z);return re.w(at.date(at.date()+Math.round(Ce*B)),z)};if(j===T)return this.set(T,this.$M+B);if(j===L)return this.set(L,this.$y+B);if(j===A)return oe(1);if(j===R)return oe(7);var fe=(P={},P[m]=u,P[w]=f,P[g]=r,P)[j]||1,_e=this.$d.getTime()+B*fe;return re.w(_e,this)},U.subtract=function(B,Z){return this.add(-1*B,Z)},U.format=function(B){var Z=this,P=this.$locale();if(!this.isValid())return P.invalidDate||I;var z=B||"YYYY-MM-DDTHH:mm:ssZ",j=re.z(this),oe=this.$H,fe=this.$m,_e=this.$M,Ce=P.weekdays,at=P.months,Ne=function(Ee,Qe,Tt,Mt){return Ee&&(Ee[Qe]||Ee(Z,z))||Tt[Qe].slice(0,Mt)},ot=function(Ee){return re.s(oe%12||12,Ee,"0")},Rt=P.meridiem||function(Ee,Qe,Tt){var Mt=Ee<12?"AM":"PM";return Tt?Mt.toLowerCase():Mt},De={YY:String(this.$y).slice(-2),YYYY:this.$y,M:_e+1,MM:re.s(_e+1,2,"0"),MMM:Ne(P.monthsShort,_e,at,3),MMMM:Ne(at,_e),D:this.$D,DD:re.s(this.$D,2,"0"),d:String(this.$W),dd:Ne(P.weekdaysMin,this.$W,Ce,2),ddd:Ne(P.weekdaysShort,this.$W,Ce,3),dddd:Ce[this.$W],H:String(oe),HH:re.s(oe,2,"0"),h:ot(1),hh:ot(2),a:Rt(oe,fe,!0),A:Rt(oe,fe,!1),m:String(fe),mm:re.s(fe,2,"0"),s:String(this.$s),ss:re.s(this.$s,2,"0"),SSS:re.s(this.$ms,3,"0"),Z:j};return z.replace(W,function(Ee,Qe){return Qe||De[Ee]||j.replace(":","")})},U.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},U.diff=function(B,Z,P){var z,j=re.p(Z),oe=pe(B),fe=(oe.utcOffset()-this.utcOffset())*u,_e=this-oe,Ce=re.m(this,oe);return Ce=(z={},z[L]=Ce/12,z[T]=Ce,z[E]=Ce/3,z[R]=(_e-fe)/6048e5,z[A]=(_e-fe)/864e5,z[w]=_e/f,z[m]=_e/u,z[g]=_e/r,z)[j]||_e,P?Ce:re.a(Ce)},U.daysInMonth=function(){return this.endOf(T).$D},U.$locale=function(){return we[this.$L]},U.locale=function(B,Z){if(!B)return this.$L;var P=this.clone(),z=Be(B,Z,!0);return z&&(P.$L=z),P},U.clone=function(){return re.w(this.$d,this)},U.toDate=function(){return new Date(this.valueOf())},U.toJSON=function(){return this.isValid()?this.toISOString():null},U.toISOString=function(){return this.$d.toISOString()},U.toString=function(){return this.$d.toUTCString()},X}(),nn=Ue.prototype;return pe.prototype=nn,[["$ms",h],["$s",g],["$m",m],["$H",w],["$W",A],["$M",T],["$y",L],["$D",M]].forEach(function(X){nn[X[1]]=function(U){return this.$g(U,X[0],X[1])}}),pe.extend=function(X,U){return X.$i||(X(U,Ue,pe),X.$i=!0),pe},pe.locale=Be,pe.isDayjs=xe,pe.unix=function(X){return pe(1e3*X)},pe.en=we[J],pe.Ls=we,pe.p={},pe})})(to);var no=to.exports;function Ch(){this.__data__=[],this.size=0}var Eh=Ch;function Lh(i,s){return i===s||i!==i&&s!==s}var ro=Lh,Oh=ro;function Rh(i,s){for(var r=i.length;r--;)if(Oh(i[r][0],s))return r;return-1}var dr=Rh,Mh=dr,Dh=Array.prototype,Ih=Dh.splice;function Ph(i){var s=this.__data__,r=Mh(s,i);if(r<0)return!1;var u=s.length-1;return r==u?s.pop():Ih.call(s,r,1),--this.size,!0}var Nh=Ph,Fh=dr;function Bh(i){var s=this.__data__,r=Fh(s,i);return r<0?void 0:s[r][1]}var Wh=Bh,$h=dr;function kh(i){return $h(this.__data__,i)>-1}var Uh=kh,Hh=dr;function zh(i,s){var r=this.__data__,u=Hh(r,i);return u<0?(++this.size,r.push([i,s])):r[u][1]=s,this}var Gh=zh,Kh=Eh,Yh=Nh,Xh=Wh,Zh=Uh,jh=Gh;function pn(i){var s=-1,r=i==null?0:i.length;for(this.clear();++s<r;){var u=i[s];this.set(u[0],u[1])}}pn.prototype.clear=Kh,pn.prototype.delete=Yh,pn.prototype.get=Xh,pn.prototype.has=Zh,pn.prototype.set=jh;var pr=pn,Jh=pr;function qh(){this.__data__=new Jh,this.size=0}var Vh=qh;function Qh(i){var s=this.__data__,r=s.delete(i);return this.size=s.size,r}var ed=Qh;function td(i){return this.__data__.get(i)}var nd=td;function rd(i){return this.__data__.has(i)}var id=rd,sd=cr,ad=Xa,od="[object AsyncFunction]",ud="[object Function]",ld="[object GeneratorFunction]",cd="[object Proxy]";function fd(i){if(!ad(i))return!1;var s=sd(i);return s==ud||s==ld||s==od||s==cd}var io=fd,hd=Ot,dd=hd["__core-js_shared__"],pd=dd,Ai=pd,so=function(){var i=/[^.]+$/.exec(Ai&&Ai.keys&&Ai.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function gd(i){return!!so&&so in i}var vd=gd,_d=Function.prototype,md=_d.toString;function yd(i){if(i!=null){try{return md.call(i)}catch{}try{return i+""}catch{}}return""}var ao=yd,wd=io,bd=vd,Sd=Xa,xd=ao,Ad=/[\\^$.*+?()[\]{}|]/g,Td=/^\[object .+?Constructor\]$/,Cd=Function.prototype,Ed=Object.prototype,Ld=Cd.toString,Od=Ed.hasOwnProperty,Rd=RegExp("^"+Ld.call(Od).replace(Ad,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Md(i){if(!Sd(i)||bd(i))return!1;var s=wd(i)?Rd:Td;return s.test(xd(i))}var Dd=Md;function Id(i,s){return i==null?void 0:i[s]}var Pd=Id,Nd=Dd,Fd=Pd;function Bd(i,s){var r=Fd(i,s);return Nd(r)?r:void 0}var gn=Bd,Wd=gn,$d=Ot,kd=Wd($d,"Map"),Ti=kd,Ud=gn,Hd=Ud(Object,"create"),gr=Hd,oo=gr;function zd(){this.__data__=oo?oo(null):{},this.size=0}var Gd=zd;function Kd(i){var s=this.has(i)&&delete this.__data__[i];return this.size-=s?1:0,s}var Yd=Kd,Xd=gr,Zd="__lodash_hash_undefined__",jd=Object.prototype,Jd=jd.hasOwnProperty;function qd(i){var s=this.__data__;if(Xd){var r=s[i];return r===Zd?void 0:r}return Jd.call(s,i)?s[i]:void 0}var Vd=qd,Qd=gr,ep=Object.prototype,tp=ep.hasOwnProperty;function np(i){var s=this.__data__;return Qd?s[i]!==void 0:tp.call(s,i)}var rp=np,ip=gr,sp="__lodash_hash_undefined__";function ap(i,s){var r=this.__data__;return this.size+=this.has(i)?0:1,r[i]=ip&&s===void 0?sp:s,this}var op=ap,up=Gd,lp=Yd,cp=Vd,fp=rp,hp=op;function vn(i){var s=-1,r=i==null?0:i.length;for(this.clear();++s<r;){var u=i[s];this.set(u[0],u[1])}}vn.prototype.clear=up,vn.prototype.delete=lp,vn.prototype.get=cp,vn.prototype.has=fp,vn.prototype.set=hp;var dp=vn,uo=dp,pp=pr,gp=Ti;function vp(){this.size=0,this.__data__={hash:new uo,map:new(gp||pp),string:new uo}}var _p=vp;function mp(i){var s=typeof i;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?i!=="__proto__":i===null}var yp=mp,wp=yp;function bp(i,s){var r=i.__data__;return wp(s)?r[typeof s=="string"?"string":"hash"]:r.map}var vr=bp,Sp=vr;function xp(i){var s=Sp(this,i).delete(i);return this.size-=s?1:0,s}var Ap=xp,Tp=vr;function Cp(i){return Tp(this,i).get(i)}var Ep=Cp,Lp=vr;function Op(i){return Lp(this,i).has(i)}var Rp=Op,Mp=vr;function Dp(i,s){var r=Mp(this,i),u=r.size;return r.set(i,s),this.size+=r.size==u?0:1,this}var Ip=Dp,Pp=_p,Np=Ap,Fp=Ep,Bp=Rp,Wp=Ip;function _n(i){var s=-1,r=i==null?0:i.length;for(this.clear();++s<r;){var u=i[s];this.set(u[0],u[1])}}_n.prototype.clear=Pp,_n.prototype.delete=Np,_n.prototype.get=Fp,_n.prototype.has=Bp,_n.prototype.set=Wp;var lo=_n,$p=pr,kp=Ti,Up=lo,Hp=200;function zp(i,s){var r=this.__data__;if(r instanceof $p){var u=r.__data__;if(!kp||u.length<Hp-1)return u.push([i,s]),this.size=++r.size,this;r=this.__data__=new Up(u)}return r.set(i,s),this.size=r.size,this}var Gp=zp,Kp=pr,Yp=Vh,Xp=ed,Zp=nd,jp=id,Jp=Gp;function mn(i){var s=this.__data__=new Kp(i);this.size=s.size}mn.prototype.clear=Yp,mn.prototype.delete=Xp,mn.prototype.get=Zp,mn.prototype.has=jp,mn.prototype.set=Jp;var qp=mn,Vp="__lodash_hash_undefined__";function Qp(i){return this.__data__.set(i,Vp),this}var eg=Qp;function tg(i){return this.__data__.has(i)}var ng=tg,rg=lo,ig=eg,sg=ng;function _r(i){var s=-1,r=i==null?0:i.length;for(this.__data__=new rg;++s<r;)this.add(i[s])}_r.prototype.add=_r.prototype.push=ig,_r.prototype.has=sg;var ag=_r;function og(i,s){for(var r=-1,u=i==null?0:i.length;++r<u;)if(s(i[r],r,i))return!0;return!1}var ug=og;function lg(i,s){return i.has(s)}var cg=lg,fg=ag,hg=ug,dg=cg,pg=1,gg=2;function vg(i,s,r,u,f,h){var g=r&pg,m=i.length,w=s.length;if(m!=w&&!(g&&w>m))return!1;var A=h.get(i),R=h.get(s);if(A&&R)return A==s&&R==i;var T=-1,E=!0,L=r&gg?new fg:void 0;for(h.set(i,s),h.set(s,i);++T<m;){var M=i[T],I=s[T];if(u)var F=g?u(I,M,T,s,i,h):u(M,I,T,i,s,h);if(F!==void 0){if(F)continue;E=!1;break}if(L){if(!hg(s,function(W,le){if(!dg(L,le)&&(M===W||f(M,W,r,u,h)))return L.push(le)})){E=!1;break}}else if(!(M===I||f(M,I,r,u,h))){E=!1;break}}return h.delete(i),h.delete(s),E}var co=vg,_g=Ot,mg=_g.Uint8Array,yg=mg;function wg(i){var s=-1,r=Array(i.size);return i.forEach(function(u,f){r[++s]=[f,u]}),r}var bg=wg;function Sg(i){var s=-1,r=Array(i.size);return i.forEach(function(u){r[++s]=u}),r}var xg=Sg,fo=xi,ho=yg,Ag=ro,Tg=co,Cg=bg,Eg=xg,Lg=1,Og=2,Rg="[object Boolean]",Mg="[object Date]",Dg="[object Error]",Ig="[object Map]",Pg="[object Number]",Ng="[object RegExp]",Fg="[object Set]",Bg="[object String]",Wg="[object Symbol]",$g="[object ArrayBuffer]",kg="[object DataView]",po=fo?fo.prototype:void 0,Ci=po?po.valueOf:void 0;function Ug(i,s,r,u,f,h,g){switch(r){case kg:if(i.byteLength!=s.byteLength||i.byteOffset!=s.byteOffset)return!1;i=i.buffer,s=s.buffer;case $g:return!(i.byteLength!=s.byteLength||!h(new ho(i),new ho(s)));case Rg:case Mg:case Pg:return Ag(+i,+s);case Dg:return i.name==s.name&&i.message==s.message;case Ng:case Bg:return i==s+"";case Ig:var m=Cg;case Fg:var w=u&Lg;if(m||(m=Eg),i.size!=s.size&&!w)return!1;var A=g.get(i);if(A)return A==s;u|=Og,g.set(i,s);var R=Tg(m(i),m(s),u,f,h,g);return g.delete(i),R;case Wg:if(Ci)return Ci.call(i)==Ci.call(s)}return!1}var Hg=Ug;function zg(i,s){for(var r=-1,u=s.length,f=i.length;++r<u;)i[f+r]=s[r];return i}var Gg=zg,Kg=Array.isArray,Ei=Kg,Yg=Gg,Xg=Ei;function Zg(i,s,r){var u=s(i);return Xg(i)?u:Yg(u,r(i))}var jg=Zg;function Jg(i,s){for(var r=-1,u=i==null?0:i.length,f=0,h=[];++r<u;){var g=i[r];s(g,r,i)&&(h[f++]=g)}return h}var qg=Jg;function Vg(){return[]}var Qg=Vg,ev=qg,tv=Qg,nv=Object.prototype,rv=nv.propertyIsEnumerable,go=Object.getOwnPropertySymbols,iv=go?function(i){return i==null?[]:(i=Object(i),ev(go(i),function(s){return rv.call(i,s)}))}:tv,sv=iv;function av(i,s){for(var r=-1,u=Array(i);++r<i;)u[r]=s(r);return u}var ov=av,uv=cr,lv=fr,cv="[object Arguments]";function fv(i){return lv(i)&&uv(i)==cv}var hv=fv,vo=hv,dv=fr,_o=Object.prototype,pv=_o.hasOwnProperty,gv=_o.propertyIsEnumerable,vv=vo(function(){return arguments}())?vo:function(i){return dv(i)&&pv.call(i,"callee")&&!gv.call(i,"callee")},_v=vv,mr={exports:{}};function mv(){return!1}var yv=mv;(function(i,s){var r=Ot,u=yv,f=s&&!s.nodeType&&s,h=f&&!0&&i&&!i.nodeType&&i,g=h&&h.exports===f,m=g?r.Buffer:void 0,w=m?m.isBuffer:void 0,A=w||u;i.exports=A})(mr,mr.exports);var wv=9007199254740991,bv=/^(?:0|[1-9]\d*)$/;function Sv(i,s){var r=typeof i;return s=s==null?wv:s,!!s&&(r=="number"||r!="symbol"&&bv.test(i))&&i>-1&&i%1==0&&i<s}var xv=Sv,Av=9007199254740991;function Tv(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=Av}var mo=Tv,Cv=cr,Ev=mo,Lv=fr,Ov="[object Arguments]",Rv="[object Array]",Mv="[object Boolean]",Dv="[object Date]",Iv="[object Error]",Pv="[object Function]",Nv="[object Map]",Fv="[object Number]",Bv="[object Object]",Wv="[object RegExp]",$v="[object Set]",kv="[object String]",Uv="[object WeakMap]",Hv="[object ArrayBuffer]",zv="[object DataView]",Gv="[object Float32Array]",Kv="[object Float64Array]",Yv="[object Int8Array]",Xv="[object Int16Array]",Zv="[object Int32Array]",jv="[object Uint8Array]",Jv="[object Uint8ClampedArray]",qv="[object Uint16Array]",Vv="[object Uint32Array]",ye={};ye[Gv]=ye[Kv]=ye[Yv]=ye[Xv]=ye[Zv]=ye[jv]=ye[Jv]=ye[qv]=ye[Vv]=!0,ye[Ov]=ye[Rv]=ye[Hv]=ye[Mv]=ye[zv]=ye[Dv]=ye[Iv]=ye[Pv]=ye[Nv]=ye[Fv]=ye[Bv]=ye[Wv]=ye[$v]=ye[kv]=ye[Uv]=!1;function Qv(i){return Lv(i)&&Ev(i.length)&&!!ye[Cv(i)]}var e_=Qv;function t_(i){return function(s){return i(s)}}var n_=t_,Li={exports:{}};(function(i,s){var r=Za,u=s&&!s.nodeType&&s,f=u&&!0&&i&&!i.nodeType&&i,h=f&&f.exports===u,g=h&&r.process,m=function(){try{var w=f&&f.require&&f.require("util").types;return w||g&&g.binding&&g.binding("util")}catch{}}();i.exports=m})(Li,Li.exports);var r_=e_,i_=n_,yo=Li.exports,wo=yo&&yo.isTypedArray,s_=wo?i_(wo):r_,bo=s_,a_=ov,o_=_v,u_=Ei,l_=mr.exports,c_=xv,f_=bo,h_=Object.prototype,d_=h_.hasOwnProperty;function p_(i,s){var r=u_(i),u=!r&&o_(i),f=!r&&!u&&l_(i),h=!r&&!u&&!f&&f_(i),g=r||u||f||h,m=g?a_(i.length,String):[],w=m.length;for(var A in i)(s||d_.call(i,A))&&!(g&&(A=="length"||f&&(A=="offset"||A=="parent")||h&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||c_(A,w)))&&m.push(A);return m}var g_=p_,v_=Object.prototype;function __(i){var s=i&&i.constructor,r=typeof s=="function"&&s.prototype||v_;return i===r}var m_=__;function y_(i,s){return function(r){return i(s(r))}}var w_=y_,b_=w_,S_=b_(Object.keys,Object),x_=S_,A_=m_,T_=x_,C_=Object.prototype,E_=C_.hasOwnProperty;function L_(i){if(!A_(i))return T_(i);var s=[];for(var r in Object(i))E_.call(i,r)&&r!="constructor"&&s.push(r);return s}var O_=L_,R_=io,M_=mo;function D_(i){return i!=null&&M_(i.length)&&!R_(i)}var I_=D_,P_=g_,N_=O_,F_=I_;function B_(i){return F_(i)?P_(i):N_(i)}var W_=B_,$_=jg,k_=sv,U_=W_;function H_(i){return $_(i,U_,k_)}var z_=H_,So=z_,G_=1,K_=Object.prototype,Y_=K_.hasOwnProperty;function X_(i,s,r,u,f,h){var g=r&G_,m=So(i),w=m.length,A=So(s),R=A.length;if(w!=R&&!g)return!1;for(var T=w;T--;){var E=m[T];if(!(g?E in s:Y_.call(s,E)))return!1}var L=h.get(i),M=h.get(s);if(L&&M)return L==s&&M==i;var I=!0;h.set(i,s),h.set(s,i);for(var F=g;++T<w;){E=m[T];var W=i[E],le=s[E];if(u)var ae=g?u(le,W,E,s,i,h):u(W,le,E,i,s,h);if(!(ae===void 0?W===le||f(W,le,r,u,h):ae)){I=!1;break}F||(F=E=="constructor")}if(I&&!F){var ne=i.constructor,J=s.constructor;ne!=J&&"constructor"in i&&"constructor"in s&&!(typeof ne=="function"&&ne instanceof ne&&typeof J=="function"&&J instanceof J)&&(I=!1)}return h.delete(i),h.delete(s),I}var Z_=X_,j_=gn,J_=Ot,q_=j_(J_,"DataView"),V_=q_,Q_=gn,em=Ot,tm=Q_(em,"Promise"),nm=tm,rm=gn,im=Ot,sm=rm(im,"Set"),am=sm,om=gn,um=Ot,lm=om(um,"WeakMap"),cm=lm,Oi=V_,Ri=Ti,Mi=nm,Di=am,Ii=cm,xo=cr,yn=ao,Ao="[object Map]",fm="[object Object]",To="[object Promise]",Co="[object Set]",Eo="[object WeakMap]",Lo="[object DataView]",hm=yn(Oi),dm=yn(Ri),pm=yn(Mi),gm=yn(Di),vm=yn(Ii),Vt=xo;(Oi&&Vt(new Oi(new ArrayBuffer(1)))!=Lo||Ri&&Vt(new Ri)!=Ao||Mi&&Vt(Mi.resolve())!=To||Di&&Vt(new Di)!=Co||Ii&&Vt(new Ii)!=Eo)&&(Vt=function(i){var s=xo(i),r=s==fm?i.constructor:void 0,u=r?yn(r):"";if(u)switch(u){case hm:return Lo;case dm:return Ao;case pm:return To;case gm:return Co;case vm:return Eo}return s});var _m=Vt,Pi=qp,mm=co,ym=Hg,wm=Z_,Oo=_m,Ro=Ei,Mo=mr.exports,bm=bo,Sm=1,Do="[object Arguments]",Io="[object Array]",yr="[object Object]",xm=Object.prototype,Po=xm.hasOwnProperty;function Am(i,s,r,u,f,h){var g=Ro(i),m=Ro(s),w=g?Io:Oo(i),A=m?Io:Oo(s);w=w==Do?yr:w,A=A==Do?yr:A;var R=w==yr,T=A==yr,E=w==A;if(E&&Mo(i)){if(!Mo(s))return!1;g=!0,R=!1}if(E&&!R)return h||(h=new Pi),g||bm(i)?mm(i,s,r,u,f,h):ym(i,s,w,r,u,f,h);if(!(r&Sm)){var L=R&&Po.call(i,"__wrapped__"),M=T&&Po.call(s,"__wrapped__");if(L||M){var I=L?i.value():i,F=M?s.value():s;return h||(h=new Pi),f(I,F,r,u,h)}}return E?(h||(h=new Pi),wm(i,s,r,u,f,h)):!1}var Tm=Am,Cm=Tm,No=fr;function Fo(i,s,r,u,f){return i===s?!0:i==null||s==null||!No(i)&&!No(s)?i!==i&&s!==s:Cm(i,s,r,u,Fo,f)}var Em=Fo,Lm=Em;function Om(i,s){return Lm(i,s)}var Rm=Om;function Ni(i,s,r){r===void 0&&(r={});var u=lr(s);eo(function(){var f=hr(r.target,window);if(!!(f!=null&&f.addEventListener)){var h=function(m){return u.current(m)};return f.addEventListener(i,h,{capture:r.capture,once:r.once,passive:r.passive}),function(){f.removeEventListener(i,h,{capture:r.capture})}}},[i,r.capture,r.once,r.passive],r.target)}var Mm=globalThis&&globalThis.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var u=r.call(i),f,h=[],g;try{for(;(s===void 0||s-- >0)&&!(f=u.next()).done;)h.push(f.value)}catch(m){g={error:m}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(g)throw g.error}}return h},Fi=function(i,s){var r=s||{},u=r.onEnter,f=r.onLeave,h=Mm(wh(!1),2),g=h[0],m=h[1],w=m.setTrue,A=m.setFalse;return Ni("mouseenter",function(){u==null||u(),w()},{target:i}),Ni("mouseleave",function(){f==null||f(),A()},{target:i}),g},Dm=function(s,r){return r===void 0&&(r=[]),Rm(s,r)},Im=function(s,r,u){var f=D.useRef(),h=D.useRef(0);Dm(r,f.current)||(f.current=r,h.current+=1),eo(s,[h.current],u)},Pm=Im,Bi=globalThis&&globalThis.__values||function(i){var s=typeof Symbol=="function"&&Symbol.iterator,r=s&&i[s],u=0;if(r)return r.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&u>=i.length&&(i=void 0),{value:i&&i[u++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")},Nm={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},Wi={ctrl:function(s){return s.ctrlKey},shift:function(s){return s.shiftKey},alt:function(s){return s.altKey},meta:function(s){return s.metaKey}};function Fm(i){var s=Object.keys(Wi).reduce(function(r,u){return Wi[u](i)?r+1:r},0);return[16,17,18,91,92].includes(i.keyCode)?s:s+1}function Bo(i,s,r){var u,f;if(!i.key)return!1;if(Ga(s))return i.keyCode===s;var h=s.split("."),g=0;try{for(var m=Bi(h),w=m.next();!w.done;w=m.next()){var A=w.value,R=Wi[A],T=Nm[A.toLowerCase()];(R&&R(i)||T&&T===i.keyCode)&&g++}}catch(E){u={error:E}}finally{try{w&&!w.done&&(f=m.return)&&f.call(m)}finally{if(u)throw u.error}}return r?g===h.length&&Fm(i)===h.length:g===h.length}function Bm(i,s){return za(i)?i:Xf(i)||Ga(i)?function(r){return Bo(r,i,s)}:Array.isArray(i)?function(r){return i.some(function(u){return Bo(r,u,s)})}:i?function(){return!0}:function(){return!1}}var Wm=["keydown"];function Qt(i,s,r){var u=r||{},f=u.events,h=f===void 0?Wm:f,g=u.target,m=u.exactMatch,w=m===void 0?!1:m,A=lr(s),R=lr(i);Pm(function(){var T,E,L,M=hr(g,window);if(!!M){var I=function(ne){var J,we=Bm(R.current,w);if(we(ne))return(J=A.current)===null||J===void 0?void 0:J.call(A,ne)};try{for(var F=Bi(h),W=F.next();!W.done;W=F.next()){var le=W.value;(L=M==null?void 0:M.addEventListener)===null||L===void 0||L.call(M,le,I)}}catch(ae){T={error:ae}}finally{try{W&&!W.done&&(E=F.return)&&E.call(F)}finally{if(T)throw T.error}}return function(){var ae,ne,J;try{for(var we=Bi(h),xe=we.next();!xe.done;xe=we.next()){var Be=xe.value;(J=M==null?void 0:M.removeEventListener)===null||J===void 0||J.call(M,Be,I)}}catch(pe){ae={error:pe}}finally{try{xe&&!xe.done&&(ne=we.return)&&ne.call(we)}finally{if(ae)throw ae.error}}}}},[h],g)}var $m=globalThis&&globalThis.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var u=r.call(i),f,h=[],g;try{for(;(s===void 0||s-- >0)&&!(f=u.next()).done;)h.push(f.value)}catch(m){g={error:m}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(g)throw g.error}}return h};function km(i){var s=D.useRef(0),r=$m(D.useState(i),2),u=r[0],f=r[1],h=D.useCallback(function(g){cancelAnimationFrame(s.current),s.current=requestAnimationFrame(function(){f(g)})},[]);return Ya(function(){cancelAnimationFrame(s.current)}),[u,h]}var Um=globalThis&&globalThis.__read||function(i,s){var r=typeof Symbol=="function"&&i[Symbol.iterator];if(!r)return i;var u=r.call(i),f,h=[],g;try{for(;(s===void 0||s-- >0)&&!(f=u.next()).done;)h.push(f.value)}catch(m){g={error:m}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(g)throw g.error}}return h},Hm={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},zm=function(i){var s=Um(km(Hm),2),r=s[0],u=s[1];return Ni("mousemove",function(f){var h=f.screenX,g=f.screenY,m=f.clientX,w=f.clientY,A=f.pageX,R=f.pageY,T={screenX:h,screenY:g,clientX:m,clientY:w,pageX:A,pageY:R,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},E=hr(i);if(E){var L=E.getBoundingClientRect(),M=L.left,I=L.top,F=L.width,W=L.height;T.elementPosX=M+window.pageXOffset,T.elementPosY=I+window.pageYOffset,T.elementX=A-T.elementPosX,T.elementY=R-T.elementPosY,T.elementW=F,T.elementH=W}u(T)},{target:function(){return document}}),r};const $i=Symbol(),Gm=Symbol(),ki=Symbol(),Ui=Object.getPrototypeOf,Hi=new WeakMap,Wo=i=>i&&(Hi.has(i)?Hi.get(i):Ui(i)===Object.prototype||Ui(i)===Array.prototype),zi=i=>typeof i=="object"&&i!==null,Km=(i,s)=>{let r=!1;const u=(h,g,m)=>{if(!r){let w=h.a.get(i);w||(w=new Set,h.a.set(i,w)),m&&w.has($i)||w.add(g)}},f={f:s,get(h,g){return g===ki?i:(u(this,g),$o(h[g],this.a,this.c))},has(h,g){return g===Gm?(r=!0,this.a.delete(i),!0):(u(this,g),g in h)},getOwnPropertyDescriptor(h,g){return u(this,g,!0),Object.getOwnPropertyDescriptor(h,g)},ownKeys(h){return u(this,$i),Reflect.ownKeys(h)}};return s&&(f.set=f.deleteProperty=()=>!1),f},$o=(i,s,r)=>{if(!Wo(i))return i;const u=i[ki]||i,f=(g=>Object.isFrozen(g)||Object.values(Object.getOwnPropertyDescriptors(g)).some(m=>!m.writable))(u);let h=r&&r.get(u);return h&&h.f===f||(h=Km(u,f),h.p=new Proxy(f?(g=>{if(Array.isArray(g))return Array.from(g);const m=Object.getOwnPropertyDescriptors(g);return Object.values(m).forEach(w=>{w.configurable=!0}),Object.create(Ui(g),m)})(u):u,h),r&&r.set(u,h)),h.a=s,h.c=r,h.p},Ym=(i,s)=>{const r=Reflect.ownKeys(i),u=Reflect.ownKeys(s);return r.length!==u.length||r.some((f,h)=>f!==u[h])},ko=(i,s,r,u)=>{if(Object.is(i,s))return!1;if(!zi(i)||!zi(s))return!0;const f=r.get(i);if(!f)return!0;if(u){const g=u.get(i);if(g&&g.n===s)return g.g;u.set(i,{n:s,g:!1})}let h=null;for(const g of f){const m=g===$i?Ym(i,s):ko(i[g],s[g],r,u);if(m!==!0&&m!==!1||(h=m),h)break}return h===null&&(h=!0),u&&u.set(i,{n:s,g:h}),h},Xm=i=>Wo(i)&&i[ki]||null,Uo=(i,s)=>{Hi.set(i,s)},Zm=(i,s)=>{const r=[],u=new WeakSet,f=(h,g)=>{if(u.has(h))return;zi(h)&&u.add(h);const m=s.get(h);m?m.forEach(w=>{f(h[w],g?[...g,w]:[w])}):g&&r.push(g)};return f(i),r};var Ho={exports:{}},zo={};/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var wn=mi.default;function jm(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var Jm=typeof Object.is=="function"?Object.is:jm,qm=wn.useState,Vm=wn.useEffect,Qm=wn.useLayoutEffect,e0=wn.useDebugValue;function t0(i,s){var r=s(),u=qm({inst:{value:r,getSnapshot:s}}),f=u[0].inst,h=u[1];return Qm(function(){f.value=r,f.getSnapshot=s,Gi(f)&&h({inst:f})},[i,r,s]),Vm(function(){return Gi(f)&&h({inst:f}),i(function(){Gi(f)&&h({inst:f})})},[i]),e0(r),r}function Gi(i){var s=i.getSnapshot;i=i.value;try{var r=s();return!Jm(i,r)}catch{return!0}}function n0(i,s){return s()}var r0=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?n0:t0;zo.useSyncExternalStore=wn.useSyncExternalStore!==void 0?wn.useSyncExternalStore:r0,Ho.exports=zo;var i0=Ho.exports;const s0=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("VERSION"):Symbol(),At=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("LISTENERS"):Symbol(),wr=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("SNAPSHOT"):Symbol(),a0=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("HANDLER"):Symbol(),Un=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("PROMISE_RESULT"):Symbol(),Go=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("PROMISE_ERROR"):Symbol(),Ko=new WeakSet,Ki=i=>typeof i=="object"&&i!==null,o0=i=>Ki(i)&&!Ko.has(i)&&(Array.isArray(i)||!(Symbol.iterator in i))&&!(i instanceof WeakMap)&&!(i instanceof WeakSet)&&!(i instanceof Error)&&!(i instanceof Number)&&!(i instanceof Date)&&!(i instanceof String)&&!(i instanceof RegExp)&&!(i instanceof ArrayBuffer),Yo=new WeakMap;let Xo=1;const Zo=new WeakMap;function br(i={}){if(!Ki(i))throw new Error("object required");const s=Yo.get(i);if(s)return s;let r=Xo;const u=new Set,f=(E,L=++Xo)=>{r!==L&&(r=L,u.forEach(M=>M(E,L)))},h=new Map,g=E=>{let L=h.get(E);return L||(L=(M,I)=>{const F=[...M];F[1]=[E,...F[1]],f(F,I)},h.set(E,L)),L},m=E=>{const L=h.get(E);return h.delete(E),L},w=(E,L)=>{const M=Zo.get(L);if((M==null?void 0:M[0])===r)return M[1];const I=Array.isArray(E)?[]:Object.create(Object.getPrototypeOf(E));return Uo(I,!0),Zo.set(L,[r,I]),Reflect.ownKeys(E).forEach(F=>{const W=Reflect.get(E,F,L);if(Ko.has(W))Uo(W,!1),I[F]=W;else if(W instanceof Promise)if(Un in W)I[F]=W[Un];else{const le=W[Go]||W;Object.defineProperty(I,F,{get(){if(Un in W)return W[Un];throw le}})}else W!=null&&W[At]?I[F]=W[wr]:I[F]=W}),Object.freeze(I),I},A=Array.isArray(i)?[]:Object.create(Object.getPrototypeOf(i)),R={get(E,L,M){return L===s0?r:L===At?u:L===wr?w(E,M):L===a0?R:Reflect.get(E,L,M)},deleteProperty(E,L){const M=Reflect.get(E,L),I=M==null?void 0:M[At];I&&I.delete(m(L));const F=Reflect.deleteProperty(E,L);return F&&f(["delete",[L],M]),F},is:Object.is,canProxy:o0,set(E,L,M,I){var F;const W=Reflect.has(E,L),le=Reflect.get(E,L,I);if(W&&this.is(le,M))return!0;const ae=le==null?void 0:le[At];ae&&ae.delete(m(L)),Ki(M)&&(M=Xm(M)||M);let ne;return(F=Object.getOwnPropertyDescriptor(E,L))!=null&&F.set?ne=M:M instanceof Promise?ne=M.then(J=>(ne[Un]=J,f(["resolve",[L],J]),J)).catch(J=>{ne[Go]=J,f(["reject",[L],J])}):M!=null&&M[At]?(ne=M,ne[At].add(g(L))):this.canProxy(M)?(ne=br(M),ne[At].add(g(L))):ne=M,Reflect.set(E,L,ne,I),f(["set",[L],M,le]),!0}},T=new Proxy(A,R);return Yo.set(i,T),Reflect.ownKeys(i).forEach(E=>{const L=Object.getOwnPropertyDescriptor(i,E);L.get||L.set?Object.defineProperty(A,E,L):T[E]=i[E]}),T}function u0(i,s,r){({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&!(i!=null&&i[At])&&console.warn("Please use proxy object");let u;const f=[],h=g=>{if(f.push(g),r){s(f.splice(0));return}u||(u=Promise.resolve().then(()=>{u=void 0,s(f.splice(0))}))};return i[At].add(h),()=>{i[At].delete(h)}}function jo(i){return({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&!(i!=null&&i[wr])&&console.warn("Please use proxy object"),i[wr]}const{useSyncExternalStore:l0}=i0,c0=(i,s)=>{const r=D.useRef();D.useEffect(()=>{r.current=Zm(i,s)}),D.useDebugValue(r.current)};function Yi(i,s){const r=s==null?void 0:s.sync,u=D.useRef(),f=D.useRef();let h=!0;const g=l0(D.useCallback(A=>{const R=u0(i,A,r);return A(),R},[i,r]),()=>{const A=jo(i);try{if(!h&&u.current&&f.current&&!ko(u.current,A,f.current,new WeakMap))return u.current}catch{}return A},()=>jo(i));h=!1;const m=new WeakMap;D.useEffect(()=>{u.current=g,f.current=m}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&c0(g,m);const w=D.useMemo(()=>new WeakMap,[]);return $o(g,m,w)}const bn=br({accessKey:"",useNarrowMode:!1}),Xi=function(){return Yi(bn)},Jo="bilibili-app-recommend.config";function f0(){const i=GM_getValue(Jo);i&&typeof i=="object"&&Object.assign(bn,i)}function h0(){GM_setValue(Jo,bn)}function Zi(i){Object.assign(bn,i),h0()}f0();const qo="_toast-container_9119l_1";var rC={toastContainer:qo};function Ht(i,s=2e3){const r=$n.default(`<div class='${qo}'>${i}</div>`);r.appendTo(document.body),setTimeout(()=>r.remove(),s)}const d0="\u8BF7\u6C42\u5931\u8D25, \u8BF7\u91CD\u8BD5 !!!",p0="\u64CD\u4F5C\u5931\u8D25, \u8BF7\u91CD\u8BD5 !!!";function Vo(){return Ht(d0)}function Qo(){return Ht(p0)}async function g0(){var w,A;const s=(await yi.default.get("https://passport.bilibili.com/login/app/third",{params:{appkey:"27eb53fc9058f8c3",api:"https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png",sign:"04224646d1fea004e79606d3b038c84a"},withCredentials:!0})).data;if(!((w=s==null?void 0:s.data)!=null&&w.has_login))return{errmsg:"\u4F60\u5FC5\u987B\u767B\u5F55B\u7AD9\u4E4B\u540E\u624D\u80FD\u4F7F\u7528\u6388\u6743",json:s};if(!((A=s==null?void 0:s.data)!=null&&A.confirm_uri))return{errmsg:"\u65E0\u6CD5\u83B7\u5F97\u6388\u6743\u7F51\u5740",json:s};const r=s.data.confirm_uri;let u;const f=new Promise(R=>{window.addEventListener("message",T=>{if(T.origin!="https://www.mcbbs.net"||!T.data)return;const E=T.data.match(/access_key=([0-9a-z]{32})/);if(!E||!E[1])return R({errmsg:"\u6CA1\u6709\u83B7\u5F97\u5339\u914D\u7684\u5BC6\u94A5"});R(E[1])}),u=setTimeout(()=>{R({errmsg:"\u83B7\u53D6\u6388\u6743\u8D85\u65F6"})},5e3)}),h=$n.default(`<iframe src='${r}' style="display: none;" />`);h.appendTo(document.body);function g(){h.remove(),u&&(clearTimeout(u),u=null)}const m=await f;return g(),m}async function v0(){const i=await g0();if(typeof i=="object"&&"errmsg"in i){Ht(i.errmsg);return}const s=i;return Zi({accessKey:s}),Ht("\u83B7\u53D6\u6210\u529F"),s}function _0(){Zi({accessKey:""}),Ht("\u5DF2\u5220\u9664 access_key")}const m0="https://api.bilibili.com",eu="https://app.bilibili.com",ji=yi.default.create({baseURL:m0});ji.interceptors.request.use(function(i){var s;return(s=i.params)!=null&&s._||(i.params=Bn(dn({},i.params),{_:Date.now()})),i},function(i){return Promise.reject(i)});const Ji=yi.default.create({adapter:Gf.default});Ji.interceptors.request.use(function(i){return i.params=dn({access_key:bn.accessKey||""},i.params),i},function(i){return Promise.reject(i)});async function y0(){return(await Ji.get(eu+"/x/feed/index",{params:{build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data.data}async function w0(){return qi(2)}async function qi(i){const s=new Array(i).fill(0).map(f=>y0());let u=(await Promise.all(s)).reduce((f,h)=>f.concat(h),[]);return u=b0(u),u.map(f=>Bn(dn({},f),{uniqId:f.param+"-"+crypto.randomUUID()}))}function b0(i){const s=new Set;return i=i.filter(r=>{const{param:u}=r;return s.has(u)?(console.log("[bilibili-app-recommend]: [uniqRecList]: duplicate",r),!1):(s.add(u),!0)}),i}const tu="_expand-btn_wdzp9_1",nu="_expanded_wdzp9_12";var iC={expandBtn:tu,expanded:nu},Sr={exports:{}},xr={};/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var S0=mi.default,x0=Symbol.for("react.element"),A0=Symbol.for("react.fragment"),T0=Object.prototype.hasOwnProperty,C0=S0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,E0={key:!0,ref:!0,__self:!0,__source:!0};function ru(i,s,r){var u,f={},h=null,g=null;r!==void 0&&(h=""+r),s.key!==void 0&&(h=""+s.key),s.ref!==void 0&&(g=s.ref);for(u in s)T0.call(s,u)&&!E0.hasOwnProperty(u)&&(f[u]=s[u]);if(i&&i.defaultProps)for(u in s=i.defaultProps,s)f[u]===void 0&&(f[u]=s[u]);return{$$typeof:x0,type:i,key:h,ref:g,props:f,_owner:C0.current}}xr.Fragment=A0,xr.jsx=ru,xr.jsxs=ru,Sr.exports=xr;const C=Sr.exports.jsx,te=Sr.exports.jsxs,Ar=Sr.exports.Fragment,iu=D.forwardRef(function({children:s},r){const[u,f]=Qa(!1);D.useImperativeHandle(r,()=>f,[f]);const h=C("button",{className:qe("primary-btn",tu),onClick:f.toggle,children:C("svg",{className:qe({[nu]:u}),children:C("use",{xlinkHref:"#widget-arrow"})})});return te(Ar,{children:[h,u&&s]})});var su={exports:{}},L0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",O0=L0,R0=O0;function au(){}function ou(){}ou.resetWarningCache=au;var M0=function(){function i(u,f,h,g,m,w){if(w!==R0){var A=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw A.name="Invariant Violation",A}}i.isRequired=i;function s(){return i}var r={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:s,element:i,elementType:i,instanceOf:s,node:i,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:ou,resetWarningCache:au};return r.PropTypes=r,r};su.exports=M0();var Ve=su.exports;class Vi extends D.Component{constructor(s){super(s),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const s=this.getParentElement(this.scrollComponent);s.scrollTop=s.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let s=!1;const r={get passive(){s=!0}};try{document.addEventListener("test",null,r),document.removeEventListener("test",null,r)}catch{}return s}eventListenerOptions(){let s=this.props.useCapture;return this.isPassiveSupported()?s={useCapture:this.props.useCapture,passive:!0}:s={passive:!1},s}setDefaultLoader(s){this.defaultLoader=s}detachMousewheelListener(){let s=window;this.props.useWindow===!1&&(s=this.scrollComponent.parentNode),s.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let s=window;this.props.useWindow===!1&&(s=this.getParentElement(this.scrollComponent)),s.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),s.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(s){const r=this.props.getScrollParent&&this.props.getScrollParent();return r!=null?r:s&&s.parentNode}filterProps(s){return s}attachScrollListener(){const s=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!s)return;let r=window;this.props.useWindow===!1&&(r=s),r.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),r.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),r.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(s){s.deltaY===1&&!this.isPassiveSupported()&&s.preventDefault()}scrollListener(){const s=this.scrollComponent,r=window,u=this.getParentElement(s);let f;if(this.props.useWindow){const h=document.documentElement||document.body.parentNode||document.body,g=r.pageYOffset!==void 0?r.pageYOffset:h.scrollTop;this.props.isReverse?f=g:f=this.calculateOffset(s,g)}else this.props.isReverse?f=u.scrollTop:f=s.scrollHeight-u.scrollTop-u.clientHeight;f<Number(this.props.threshold)&&s&&s.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=u.scrollHeight,this.beforeScrollTop=u.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}calculateOffset(s,r){return s?this.calculateTopPosition(s)+(s.offsetHeight-r-window.innerHeight):0}calculateTopPosition(s){return s?s.offsetTop+this.calculateTopPosition(s.offsetParent):0}render(){const W=this.filterProps(this.props),{children:r,element:u,hasMore:f,initialLoad:h,isReverse:g,loader:m,loadMore:w,pageStart:A,ref:R,threshold:T,useCapture:E,useWindow:L,getScrollParent:M}=W,I=Uf(W,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);I.ref=le=>{this.scrollComponent=le,R&&R(le)};const F=[r];return f&&(m?g?F.unshift(m):F.push(m):this.defaultLoader&&(g?F.unshift(this.defaultLoader):F.push(this.defaultLoader))),mi.default.createElement(u,I,F)}}Ba(Vi,"propTypes",{children:Ve.node.isRequired,element:Ve.node,hasMore:Ve.bool,initialLoad:Ve.bool,isReverse:Ve.bool,loader:Ve.node,loadMore:Ve.func.isRequired,pageStart:Ve.number,ref:Ve.func,getScrollParent:Ve.func,threshold:Ve.number,useCapture:Ve.bool,useWindow:Ve.bool}),Ba(Vi,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});let Hn=0;const D0=()=>{Hn++,document.body.style.overflow="hidden"},I0=()=>{Hn--,Hn<0&&(Hn=0),Hn===0&&(document.body.style.overflow="overlay")},uu=()=>document.body.classList.contains("dark"),lu=br({value:uu()}),P0=function(){return Yi(lu)};new MutationObserver(function(){lu.value=uu()}).observe(document.body,{attributes:!0,attributeFilter:["class"]});function cu({show:i,onHide:s,children:r,clsModalMask:u,clsModal:f,hideWhenMaskOnClick:h=!1}){D.useLayoutEffect(()=>{i?D0():I0()},[i]);const g=D.useRef(null),{value:m}=P0(),{bg:w,c:A}=D.useMemo(()=>{const M=window.getComputedStyle(document.body)["background-color"],I=window.getComputedStyle(document.body).color;return{bg:M,c:I}},[m]),R=D.useMemo(()=>m?{"--bg":w,"--c":A,backgroundColor:w,color:A}:{},[w,A,m]),T=D.useId(),E=D.useMemo(()=>{const M=document.createElement("div");return M.setAttribute("data-id","base-modal-"+T),document.body.appendChild(M),M},[]),L=ke(M=>{var I;(I=g.current)!=null&&I.contains(M.target)||h&&s()});return i?Te.createPortal(C("div",{className:qe(u),onClick:L,children:C("div",{className:qe(f),style:R,ref:g,children:r})}),E):null}var Qi={exports:{}};/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */(function(i,s){(function(){var r,u="4.17.21",f=200,h="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",m="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",A=500,R="__lodash_placeholder__",T=1,E=2,L=4,M=1,I=2,F=1,W=2,le=4,ae=8,ne=16,J=32,we=64,xe=128,Be=256,pe=512,re=30,Ue="...",nn=800,X=16,U=1,B=2,Z=3,P=1/0,z=9007199254740991,j=17976931348623157e292,oe=0/0,fe=4294967295,_e=fe-1,Ce=fe>>>1,at=[["ary",xe],["bind",F],["bindKey",W],["curry",ae],["curryRight",ne],["flip",pe],["partial",J],["partialRight",we],["rearg",Be]],Ne="[object Arguments]",ot="[object Array]",Rt="[object AsyncFunction]",De="[object Boolean]",Ee="[object Date]",Qe="[object DOMException]",Tt="[object Error]",Mt="[object Function]",ol="[object GeneratorFunction]",_t="[object Map]",zn="[object Number]",v1="[object Null]",Dt="[object Object]",ul="[object Promise]",_1="[object Proxy]",Gn="[object RegExp]",mt="[object Set]",Kn="[object String]",Lr="[object Symbol]",m1="[object Undefined]",Yn="[object WeakMap]",y1="[object WeakSet]",Xn="[object ArrayBuffer]",Sn="[object DataView]",gs="[object Float32Array]",vs="[object Float64Array]",_s="[object Int8Array]",ms="[object Int16Array]",ys="[object Int32Array]",ws="[object Uint8Array]",bs="[object Uint8ClampedArray]",Ss="[object Uint16Array]",xs="[object Uint32Array]",w1=/\b__p \+= '';/g,b1=/\b(__p \+=) '' \+/g,S1=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ll=/&(?:amp|lt|gt|quot|#39);/g,cl=/[&<>"']/g,x1=RegExp(ll.source),A1=RegExp(cl.source),T1=/<%-([\s\S]+?)%>/g,C1=/<%([\s\S]+?)%>/g,fl=/<%=([\s\S]+?)%>/g,E1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,L1=/^\w*$/,O1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,As=/[\\^$.*+?()[\]{}|]/g,R1=RegExp(As.source),Ts=/^\s+/,M1=/\s/,D1=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,I1=/\{\n\/\* \[wrapped with (.+)\] \*/,P1=/,? & /,N1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,F1=/[()=,{}\[\]\/\s]/,B1=/\\(\\)?/g,W1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,hl=/\w*$/,$1=/^[-+]0x[0-9a-f]+$/i,k1=/^0b[01]+$/i,U1=/^\[object .+?Constructor\]$/,H1=/^0o[0-7]+$/i,z1=/^(?:0|[1-9]\d*)$/,G1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Or=/($^)/,K1=/['\n\r\u2028\u2029\\]/g,Rr="\\ud800-\\udfff",Y1="\\u0300-\\u036f",X1="\\ufe20-\\ufe2f",Z1="\\u20d0-\\u20ff",dl=Y1+X1+Z1,pl="\\u2700-\\u27bf",gl="a-z\\xdf-\\xf6\\xf8-\\xff",j1="\\xac\\xb1\\xd7\\xf7",J1="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",q1="\\u2000-\\u206f",V1=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",vl="A-Z\\xc0-\\xd6\\xd8-\\xde",_l="\\ufe0e\\ufe0f",ml=j1+J1+q1+V1,Cs="['\u2019]",Q1="["+Rr+"]",yl="["+ml+"]",Mr="["+dl+"]",wl="\\d+",ey="["+pl+"]",bl="["+gl+"]",Sl="[^"+Rr+ml+wl+pl+gl+vl+"]",Es="\\ud83c[\\udffb-\\udfff]",ty="(?:"+Mr+"|"+Es+")",xl="[^"+Rr+"]",Ls="(?:\\ud83c[\\udde6-\\uddff]){2}",Os="[\\ud800-\\udbff][\\udc00-\\udfff]",xn="["+vl+"]",Al="\\u200d",Tl="(?:"+bl+"|"+Sl+")",ny="(?:"+xn+"|"+Sl+")",Cl="(?:"+Cs+"(?:d|ll|m|re|s|t|ve))?",El="(?:"+Cs+"(?:D|LL|M|RE|S|T|VE))?",Ll=ty+"?",Ol="["+_l+"]?",ry="(?:"+Al+"(?:"+[xl,Ls,Os].join("|")+")"+Ol+Ll+")*",iy="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",sy="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Rl=Ol+Ll+ry,ay="(?:"+[ey,Ls,Os].join("|")+")"+Rl,oy="(?:"+[xl+Mr+"?",Mr,Ls,Os,Q1].join("|")+")",uy=RegExp(Cs,"g"),ly=RegExp(Mr,"g"),Rs=RegExp(Es+"(?="+Es+")|"+oy+Rl,"g"),cy=RegExp([xn+"?"+bl+"+"+Cl+"(?="+[yl,xn,"$"].join("|")+")",ny+"+"+El+"(?="+[yl,xn+Tl,"$"].join("|")+")",xn+"?"+Tl+"+"+Cl,xn+"+"+El,sy,iy,wl,ay].join("|"),"g"),fy=RegExp("["+Al+Rr+dl+_l+"]"),hy=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dy=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],py=-1,be={};be[gs]=be[vs]=be[_s]=be[ms]=be[ys]=be[ws]=be[bs]=be[Ss]=be[xs]=!0,be[Ne]=be[ot]=be[Xn]=be[De]=be[Sn]=be[Ee]=be[Tt]=be[Mt]=be[_t]=be[zn]=be[Dt]=be[Gn]=be[mt]=be[Kn]=be[Yn]=!1;var me={};me[Ne]=me[ot]=me[Xn]=me[Sn]=me[De]=me[Ee]=me[gs]=me[vs]=me[_s]=me[ms]=me[ys]=me[_t]=me[zn]=me[Dt]=me[Gn]=me[mt]=me[Kn]=me[Lr]=me[ws]=me[bs]=me[Ss]=me[xs]=!0,me[Tt]=me[Mt]=me[Yn]=!1;var gy={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},vy={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_y={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},my={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},yy=parseFloat,wy=parseInt,Ml=typeof xt=="object"&&xt&&xt.Object===Object&&xt,by=typeof self=="object"&&self&&self.Object===Object&&self,We=Ml||by||Function("return this")(),Ms=s&&!s.nodeType&&s,rn=Ms&&!0&&i&&!i.nodeType&&i,Dl=rn&&rn.exports===Ms,Ds=Dl&&Ml.process,ut=function(){try{var v=rn&&rn.require&&rn.require("util").types;return v||Ds&&Ds.binding&&Ds.binding("util")}catch{}}(),Il=ut&&ut.isArrayBuffer,Pl=ut&&ut.isDate,Nl=ut&&ut.isMap,Fl=ut&&ut.isRegExp,Bl=ut&&ut.isSet,Wl=ut&&ut.isTypedArray;function et(v,b,y){switch(y.length){case 0:return v.call(b);case 1:return v.call(b,y[0]);case 2:return v.call(b,y[0],y[1]);case 3:return v.call(b,y[0],y[1],y[2])}return v.apply(b,y)}function Sy(v,b,y,k){for(var q=-1,he=v==null?0:v.length;++q<he;){var Ie=v[q];b(k,Ie,y(Ie),v)}return k}function lt(v,b){for(var y=-1,k=v==null?0:v.length;++y<k&&b(v[y],y,v)!==!1;);return v}function xy(v,b){for(var y=v==null?0:v.length;y--&&b(v[y],y,v)!==!1;);return v}function $l(v,b){for(var y=-1,k=v==null?0:v.length;++y<k;)if(!b(v[y],y,v))return!1;return!0}function zt(v,b){for(var y=-1,k=v==null?0:v.length,q=0,he=[];++y<k;){var Ie=v[y];b(Ie,y,v)&&(he[q++]=Ie)}return he}function Dr(v,b){var y=v==null?0:v.length;return!!y&&An(v,b,0)>-1}function Is(v,b,y){for(var k=-1,q=v==null?0:v.length;++k<q;)if(y(b,v[k]))return!0;return!1}function Se(v,b){for(var y=-1,k=v==null?0:v.length,q=Array(k);++y<k;)q[y]=b(v[y],y,v);return q}function Gt(v,b){for(var y=-1,k=b.length,q=v.length;++y<k;)v[q+y]=b[y];return v}function Ps(v,b,y,k){var q=-1,he=v==null?0:v.length;for(k&&he&&(y=v[++q]);++q<he;)y=b(y,v[q],q,v);return y}function Ay(v,b,y,k){var q=v==null?0:v.length;for(k&&q&&(y=v[--q]);q--;)y=b(y,v[q],q,v);return y}function Ns(v,b){for(var y=-1,k=v==null?0:v.length;++y<k;)if(b(v[y],y,v))return!0;return!1}var Ty=Fs("length");function Cy(v){return v.split("")}function Ey(v){return v.match(N1)||[]}function kl(v,b,y){var k;return y(v,function(q,he,Ie){if(b(q,he,Ie))return k=he,!1}),k}function Ir(v,b,y,k){for(var q=v.length,he=y+(k?1:-1);k?he--:++he<q;)if(b(v[he],he,v))return he;return-1}function An(v,b,y){return b===b?$y(v,b,y):Ir(v,Ul,y)}function Ly(v,b,y,k){for(var q=y-1,he=v.length;++q<he;)if(k(v[q],b))return q;return-1}function Ul(v){return v!==v}function Hl(v,b){var y=v==null?0:v.length;return y?Ws(v,b)/y:oe}function Fs(v){return function(b){return b==null?r:b[v]}}function Bs(v){return function(b){return v==null?r:v[b]}}function zl(v,b,y,k,q){return q(v,function(he,Ie,ve){y=k?(k=!1,he):b(y,he,Ie,ve)}),y}function Oy(v,b){var y=v.length;for(v.sort(b);y--;)v[y]=v[y].value;return v}function Ws(v,b){for(var y,k=-1,q=v.length;++k<q;){var he=b(v[k]);he!==r&&(y=y===r?he:y+he)}return y}function $s(v,b){for(var y=-1,k=Array(v);++y<v;)k[y]=b(y);return k}function Ry(v,b){return Se(b,function(y){return[y,v[y]]})}function Gl(v){return v&&v.slice(0,Zl(v)+1).replace(Ts,"")}function tt(v){return function(b){return v(b)}}function ks(v,b){return Se(b,function(y){return v[y]})}function Zn(v,b){return v.has(b)}function Kl(v,b){for(var y=-1,k=v.length;++y<k&&An(b,v[y],0)>-1;);return y}function Yl(v,b){for(var y=v.length;y--&&An(b,v[y],0)>-1;);return y}function My(v,b){for(var y=v.length,k=0;y--;)v[y]===b&&++k;return k}var Dy=Bs(gy),Iy=Bs(vy);function Py(v){return"\\"+my[v]}function Ny(v,b){return v==null?r:v[b]}function Tn(v){return fy.test(v)}function Fy(v){return hy.test(v)}function By(v){for(var b,y=[];!(b=v.next()).done;)y.push(b.value);return y}function Us(v){var b=-1,y=Array(v.size);return v.forEach(function(k,q){y[++b]=[q,k]}),y}function Xl(v,b){return function(y){return v(b(y))}}function Kt(v,b){for(var y=-1,k=v.length,q=0,he=[];++y<k;){var Ie=v[y];(Ie===b||Ie===R)&&(v[y]=R,he[q++]=y)}return he}function Pr(v){var b=-1,y=Array(v.size);return v.forEach(function(k){y[++b]=k}),y}function Wy(v){var b=-1,y=Array(v.size);return v.forEach(function(k){y[++b]=[k,k]}),y}function $y(v,b,y){for(var k=y-1,q=v.length;++k<q;)if(v[k]===b)return k;return-1}function ky(v,b,y){for(var k=y+1;k--;)if(v[k]===b)return k;return k}function Cn(v){return Tn(v)?Hy(v):Ty(v)}function yt(v){return Tn(v)?zy(v):Cy(v)}function Zl(v){for(var b=v.length;b--&&M1.test(v.charAt(b)););return b}var Uy=Bs(_y);function Hy(v){for(var b=Rs.lastIndex=0;Rs.test(v);)++b;return b}function zy(v){return v.match(Rs)||[]}function Gy(v){return v.match(cy)||[]}var Ky=function v(b){b=b==null?We:En.defaults(We.Object(),b,En.pick(We,dy));var y=b.Array,k=b.Date,q=b.Error,he=b.Function,Ie=b.Math,ve=b.Object,Hs=b.RegExp,Yy=b.String,ct=b.TypeError,Nr=y.prototype,Xy=he.prototype,Ln=ve.prototype,Fr=b["__core-js_shared__"],Br=Xy.toString,ge=Ln.hasOwnProperty,Zy=0,jl=function(){var e=/[^.]+$/.exec(Fr&&Fr.keys&&Fr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Wr=Ln.toString,jy=Br.call(ve),Jy=We._,qy=Hs("^"+Br.call(ge).replace(As,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$r=Dl?b.Buffer:r,Yt=b.Symbol,kr=b.Uint8Array,Jl=$r?$r.allocUnsafe:r,Ur=Xl(ve.getPrototypeOf,ve),ql=ve.create,Vl=Ln.propertyIsEnumerable,Hr=Nr.splice,Ql=Yt?Yt.isConcatSpreadable:r,jn=Yt?Yt.iterator:r,sn=Yt?Yt.toStringTag:r,zr=function(){try{var e=cn(ve,"defineProperty");return e({},"",{}),e}catch{}}(),Vy=b.clearTimeout!==We.clearTimeout&&b.clearTimeout,Qy=k&&k.now!==We.Date.now&&k.now,ew=b.setTimeout!==We.setTimeout&&b.setTimeout,Gr=Ie.ceil,Kr=Ie.floor,zs=ve.getOwnPropertySymbols,tw=$r?$r.isBuffer:r,ec=b.isFinite,nw=Nr.join,rw=Xl(ve.keys,ve),Pe=Ie.max,He=Ie.min,iw=k.now,sw=b.parseInt,tc=Ie.random,aw=Nr.reverse,Gs=cn(b,"DataView"),Jn=cn(b,"Map"),Ks=cn(b,"Promise"),On=cn(b,"Set"),qn=cn(b,"WeakMap"),Vn=cn(ve,"create"),Yr=qn&&new qn,Rn={},ow=fn(Gs),uw=fn(Jn),lw=fn(Ks),cw=fn(On),fw=fn(qn),Xr=Yt?Yt.prototype:r,Qn=Xr?Xr.valueOf:r,nc=Xr?Xr.toString:r;function l(e){if(Le(e)&&!V(e)&&!(e instanceof ue)){if(e instanceof ft)return e;if(ge.call(e,"__wrapped__"))return rf(e)}return new ft(e)}var Mn=function(){function e(){}return function(t){if(!Ae(t))return{};if(ql)return ql(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Zr(){}function ft(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}l.templateSettings={escape:T1,evaluate:C1,interpolate:fl,variable:"",imports:{_:l}},l.prototype=Zr.prototype,l.prototype.constructor=l,ft.prototype=Mn(Zr.prototype),ft.prototype.constructor=ft;function ue(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=fe,this.__views__=[]}function hw(){var e=new ue(this.__wrapped__);return e.__actions__=Xe(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Xe(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Xe(this.__views__),e}function dw(){if(this.__filtered__){var e=new ue(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function pw(){var e=this.__wrapped__.value(),t=this.__dir__,n=V(e),a=t<0,o=n?e.length:0,c=Cb(0,o,this.__views__),d=c.start,p=c.end,_=p-d,S=a?p:d-1,x=this.__iteratees__,O=x.length,N=0,H=He(_,this.__takeCount__);if(!n||!a&&o==_&&H==_)return Cc(e,this.__actions__);var K=[];e:for(;_--&&N<H;){S+=t;for(var ee=-1,Y=e[S];++ee<O;){var se=x[ee],ce=se.iteratee,it=se.type,Ye=ce(Y);if(it==B)Y=Ye;else if(!Ye){if(it==U)continue e;break e}}K[N++]=Y}return K}ue.prototype=Mn(Zr.prototype),ue.prototype.constructor=ue;function an(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function gw(){this.__data__=Vn?Vn(null):{},this.size=0}function vw(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function _w(e){var t=this.__data__;if(Vn){var n=t[e];return n===w?r:n}return ge.call(t,e)?t[e]:r}function mw(e){var t=this.__data__;return Vn?t[e]!==r:ge.call(t,e)}function yw(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Vn&&t===r?w:t,this}an.prototype.clear=gw,an.prototype.delete=vw,an.prototype.get=_w,an.prototype.has=mw,an.prototype.set=yw;function It(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function ww(){this.__data__=[],this.size=0}function bw(e){var t=this.__data__,n=jr(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():Hr.call(t,n,1),--this.size,!0}function Sw(e){var t=this.__data__,n=jr(t,e);return n<0?r:t[n][1]}function xw(e){return jr(this.__data__,e)>-1}function Aw(e,t){var n=this.__data__,a=jr(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}It.prototype.clear=ww,It.prototype.delete=bw,It.prototype.get=Sw,It.prototype.has=xw,It.prototype.set=Aw;function Pt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function Tw(){this.size=0,this.__data__={hash:new an,map:new(Jn||It),string:new an}}function Cw(e){var t=oi(this,e).delete(e);return this.size-=t?1:0,t}function Ew(e){return oi(this,e).get(e)}function Lw(e){return oi(this,e).has(e)}function Ow(e,t){var n=oi(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}Pt.prototype.clear=Tw,Pt.prototype.delete=Cw,Pt.prototype.get=Ew,Pt.prototype.has=Lw,Pt.prototype.set=Ow;function on(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Pt;++t<n;)this.add(e[t])}function Rw(e){return this.__data__.set(e,w),this}function Mw(e){return this.__data__.has(e)}on.prototype.add=on.prototype.push=Rw,on.prototype.has=Mw;function wt(e){var t=this.__data__=new It(e);this.size=t.size}function Dw(){this.__data__=new It,this.size=0}function Iw(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Pw(e){return this.__data__.get(e)}function Nw(e){return this.__data__.has(e)}function Fw(e,t){var n=this.__data__;if(n instanceof It){var a=n.__data__;if(!Jn||a.length<f-1)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new Pt(a)}return n.set(e,t),this.size=n.size,this}wt.prototype.clear=Dw,wt.prototype.delete=Iw,wt.prototype.get=Pw,wt.prototype.has=Nw,wt.prototype.set=Fw;function rc(e,t){var n=V(e),a=!n&&hn(e),o=!n&&!a&&qt(e),c=!n&&!a&&!o&&Nn(e),d=n||a||o||c,p=d?$s(e.length,Yy):[],_=p.length;for(var S in e)(t||ge.call(e,S))&&!(d&&(S=="length"||o&&(S=="offset"||S=="parent")||c&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||Wt(S,_)))&&p.push(S);return p}function ic(e){var t=e.length;return t?e[na(0,t-1)]:r}function Bw(e,t){return ui(Xe(e),un(t,0,e.length))}function Ww(e){return ui(Xe(e))}function Ys(e,t,n){(n!==r&&!bt(e[t],n)||n===r&&!(t in e))&&Nt(e,t,n)}function er(e,t,n){var a=e[t];(!(ge.call(e,t)&&bt(a,n))||n===r&&!(t in e))&&Nt(e,t,n)}function jr(e,t){for(var n=e.length;n--;)if(bt(e[n][0],t))return n;return-1}function $w(e,t,n,a){return Xt(e,function(o,c,d){t(a,o,n(o),d)}),a}function sc(e,t){return e&&Et(t,Fe(t),e)}function kw(e,t){return e&&Et(t,je(t),e)}function Nt(e,t,n){t=="__proto__"&&zr?zr(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Xs(e,t){for(var n=-1,a=t.length,o=y(a),c=e==null;++n<a;)o[n]=c?r:Ea(e,t[n]);return o}function un(e,t,n){return e===e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function ht(e,t,n,a,o,c){var d,p=t&T,_=t&E,S=t&L;if(n&&(d=o?n(e,a,o,c):n(e)),d!==r)return d;if(!Ae(e))return e;var x=V(e);if(x){if(d=Lb(e),!p)return Xe(e,d)}else{var O=ze(e),N=O==Mt||O==ol;if(qt(e))return Oc(e,p);if(O==Dt||O==Ne||N&&!o){if(d=_||N?{}:Zc(e),!p)return _?_b(e,kw(d,e)):vb(e,sc(d,e))}else{if(!me[O])return o?e:{};d=Ob(e,O,p)}}c||(c=new wt);var H=c.get(e);if(H)return H;c.set(e,d),Af(e)?e.forEach(function(Y){d.add(ht(Y,t,n,Y,e,c))}):Sf(e)&&e.forEach(function(Y,se){d.set(se,ht(Y,t,n,se,e,c))});var K=S?_?da:ha:_?je:Fe,ee=x?r:K(e);return lt(ee||e,function(Y,se){ee&&(se=Y,Y=e[se]),er(d,se,ht(Y,t,n,se,e,c))}),d}function Uw(e){var t=Fe(e);return function(n){return ac(n,e,t)}}function ac(e,t,n){var a=n.length;if(e==null)return!a;for(e=ve(e);a--;){var o=n[a],c=t[o],d=e[o];if(d===r&&!(o in e)||!c(d))return!1}return!0}function oc(e,t,n){if(typeof e!="function")throw new ct(g);return or(function(){e.apply(r,n)},t)}function tr(e,t,n,a){var o=-1,c=Dr,d=!0,p=e.length,_=[],S=t.length;if(!p)return _;n&&(t=Se(t,tt(n))),a?(c=Is,d=!1):t.length>=f&&(c=Zn,d=!1,t=new on(t));e:for(;++o<p;){var x=e[o],O=n==null?x:n(x);if(x=a||x!==0?x:0,d&&O===O){for(var N=S;N--;)if(t[N]===O)continue e;_.push(x)}else c(t,O,a)||_.push(x)}return _}var Xt=Pc(Ct),uc=Pc(js,!0);function Hw(e,t){var n=!0;return Xt(e,function(a,o,c){return n=!!t(a,o,c),n}),n}function Jr(e,t,n){for(var a=-1,o=e.length;++a<o;){var c=e[a],d=t(c);if(d!=null&&(p===r?d===d&&!rt(d):n(d,p)))var p=d,_=c}return _}function zw(e,t,n,a){var o=e.length;for(n=Q(n),n<0&&(n=-n>o?0:o+n),a=a===r||a>o?o:Q(a),a<0&&(a+=o),a=n>a?0:Cf(a);n<a;)e[n++]=t;return e}function lc(e,t){var n=[];return Xt(e,function(a,o,c){t(a,o,c)&&n.push(a)}),n}function $e(e,t,n,a,o){var c=-1,d=e.length;for(n||(n=Mb),o||(o=[]);++c<d;){var p=e[c];t>0&&n(p)?t>1?$e(p,t-1,n,a,o):Gt(o,p):a||(o[o.length]=p)}return o}var Zs=Nc(),cc=Nc(!0);function Ct(e,t){return e&&Zs(e,t,Fe)}function js(e,t){return e&&cc(e,t,Fe)}function qr(e,t){return zt(t,function(n){return $t(e[n])})}function ln(e,t){t=jt(t,e);for(var n=0,a=t.length;e!=null&&n<a;)e=e[Lt(t[n++])];return n&&n==a?e:r}function fc(e,t,n){var a=t(e);return V(e)?a:Gt(a,n(e))}function Ge(e){return e==null?e===r?m1:v1:sn&&sn in ve(e)?Tb(e):Wb(e)}function Js(e,t){return e>t}function Gw(e,t){return e!=null&&ge.call(e,t)}function Kw(e,t){return e!=null&&t in ve(e)}function Yw(e,t,n){return e>=He(t,n)&&e<Pe(t,n)}function qs(e,t,n){for(var a=n?Is:Dr,o=e[0].length,c=e.length,d=c,p=y(c),_=1/0,S=[];d--;){var x=e[d];d&&t&&(x=Se(x,tt(t))),_=He(x.length,_),p[d]=!n&&(t||o>=120&&x.length>=120)?new on(d&&x):r}x=e[0];var O=-1,N=p[0];e:for(;++O<o&&S.length<_;){var H=x[O],K=t?t(H):H;if(H=n||H!==0?H:0,!(N?Zn(N,K):a(S,K,n))){for(d=c;--d;){var ee=p[d];if(!(ee?Zn(ee,K):a(e[d],K,n)))continue e}N&&N.push(K),S.push(H)}}return S}function Xw(e,t,n,a){return Ct(e,function(o,c,d){t(a,n(o),c,d)}),a}function nr(e,t,n){t=jt(t,e),e=Vc(e,t);var a=e==null?e:e[Lt(pt(t))];return a==null?r:et(a,e,n)}function hc(e){return Le(e)&&Ge(e)==Ne}function Zw(e){return Le(e)&&Ge(e)==Xn}function jw(e){return Le(e)&&Ge(e)==Ee}function rr(e,t,n,a,o){return e===t?!0:e==null||t==null||!Le(e)&&!Le(t)?e!==e&&t!==t:Jw(e,t,n,a,rr,o)}function Jw(e,t,n,a,o,c){var d=V(e),p=V(t),_=d?ot:ze(e),S=p?ot:ze(t);_=_==Ne?Dt:_,S=S==Ne?Dt:S;var x=_==Dt,O=S==Dt,N=_==S;if(N&&qt(e)){if(!qt(t))return!1;d=!0,x=!1}if(N&&!x)return c||(c=new wt),d||Nn(e)?Kc(e,t,n,a,o,c):xb(e,t,_,n,a,o,c);if(!(n&M)){var H=x&&ge.call(e,"__wrapped__"),K=O&&ge.call(t,"__wrapped__");if(H||K){var ee=H?e.value():e,Y=K?t.value():t;return c||(c=new wt),o(ee,Y,n,a,c)}}return N?(c||(c=new wt),Ab(e,t,n,a,o,c)):!1}function qw(e){return Le(e)&&ze(e)==_t}function Vs(e,t,n,a){var o=n.length,c=o,d=!a;if(e==null)return!c;for(e=ve(e);o--;){var p=n[o];if(d&&p[2]?p[1]!==e[p[0]]:!(p[0]in e))return!1}for(;++o<c;){p=n[o];var _=p[0],S=e[_],x=p[1];if(d&&p[2]){if(S===r&&!(_ in e))return!1}else{var O=new wt;if(a)var N=a(S,x,_,e,t,O);if(!(N===r?rr(x,S,M|I,a,O):N))return!1}}return!0}function dc(e){if(!Ae(e)||Ib(e))return!1;var t=$t(e)?qy:U1;return t.test(fn(e))}function Vw(e){return Le(e)&&Ge(e)==Gn}function Qw(e){return Le(e)&&ze(e)==mt}function eb(e){return Le(e)&&pi(e.length)&&!!be[Ge(e)]}function pc(e){return typeof e=="function"?e:e==null?Je:typeof e=="object"?V(e)?_c(e[0],e[1]):vc(e):Bf(e)}function Qs(e){if(!ar(e))return rw(e);var t=[];for(var n in ve(e))ge.call(e,n)&&n!="constructor"&&t.push(n);return t}function tb(e){if(!Ae(e))return Bb(e);var t=ar(e),n=[];for(var a in e)a=="constructor"&&(t||!ge.call(e,a))||n.push(a);return n}function ea(e,t){return e<t}function gc(e,t){var n=-1,a=Ze(e)?y(e.length):[];return Xt(e,function(o,c,d){a[++n]=t(o,c,d)}),a}function vc(e){var t=ga(e);return t.length==1&&t[0][2]?Jc(t[0][0],t[0][1]):function(n){return n===e||Vs(n,e,t)}}function _c(e,t){return _a(e)&&jc(t)?Jc(Lt(e),t):function(n){var a=Ea(n,e);return a===r&&a===t?La(n,e):rr(t,a,M|I)}}function Vr(e,t,n,a,o){e!==t&&Zs(t,function(c,d){if(o||(o=new wt),Ae(c))nb(e,t,d,n,Vr,a,o);else{var p=a?a(ya(e,d),c,d+"",e,t,o):r;p===r&&(p=c),Ys(e,d,p)}},je)}function nb(e,t,n,a,o,c,d){var p=ya(e,n),_=ya(t,n),S=d.get(_);if(S){Ys(e,n,S);return}var x=c?c(p,_,n+"",e,t,d):r,O=x===r;if(O){var N=V(_),H=!N&&qt(_),K=!N&&!H&&Nn(_);x=_,N||H||K?V(p)?x=p:Re(p)?x=Xe(p):H?(O=!1,x=Oc(_,!0)):K?(O=!1,x=Rc(_,!0)):x=[]:ur(_)||hn(_)?(x=p,hn(p)?x=Ef(p):(!Ae(p)||$t(p))&&(x=Zc(_))):O=!1}O&&(d.set(_,x),o(x,_,a,c,d),d.delete(_)),Ys(e,n,x)}function mc(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,Wt(t,n)?e[t]:r}function yc(e,t,n){t.length?t=Se(t,function(c){return V(c)?function(d){return ln(d,c.length===1?c[0]:c)}:c}):t=[Je];var a=-1;t=Se(t,tt(G()));var o=gc(e,function(c,d,p){var _=Se(t,function(S){return S(c)});return{criteria:_,index:++a,value:c}});return Oy(o,function(c,d){return gb(c,d,n)})}function rb(e,t){return wc(e,t,function(n,a){return La(e,a)})}function wc(e,t,n){for(var a=-1,o=t.length,c={};++a<o;){var d=t[a],p=ln(e,d);n(p,d)&&ir(c,jt(d,e),p)}return c}function ib(e){return function(t){return ln(t,e)}}function ta(e,t,n,a){var o=a?Ly:An,c=-1,d=t.length,p=e;for(e===t&&(t=Xe(t)),n&&(p=Se(e,tt(n)));++c<d;)for(var _=0,S=t[c],x=n?n(S):S;(_=o(p,x,_,a))>-1;)p!==e&&Hr.call(p,_,1),Hr.call(e,_,1);return e}function bc(e,t){for(var n=e?t.length:0,a=n-1;n--;){var o=t[n];if(n==a||o!==c){var c=o;Wt(o)?Hr.call(e,o,1):sa(e,o)}}return e}function na(e,t){return e+Kr(tc()*(t-e+1))}function sb(e,t,n,a){for(var o=-1,c=Pe(Gr((t-e)/(n||1)),0),d=y(c);c--;)d[a?c:++o]=e,e+=n;return d}function ra(e,t){var n="";if(!e||t<1||t>z)return n;do t%2&&(n+=e),t=Kr(t/2),t&&(e+=e);while(t);return n}function ie(e,t){return wa(qc(e,t,Je),e+"")}function ab(e){return ic(Fn(e))}function ob(e,t){var n=Fn(e);return ui(n,un(t,0,n.length))}function ir(e,t,n,a){if(!Ae(e))return e;t=jt(t,e);for(var o=-1,c=t.length,d=c-1,p=e;p!=null&&++o<c;){var _=Lt(t[o]),S=n;if(_==="__proto__"||_==="constructor"||_==="prototype")return e;if(o!=d){var x=p[_];S=a?a(x,_,p):r,S===r&&(S=Ae(x)?x:Wt(t[o+1])?[]:{})}er(p,_,S),p=p[_]}return e}var Sc=Yr?function(e,t){return Yr.set(e,t),e}:Je,ub=zr?function(e,t){return zr(e,"toString",{configurable:!0,enumerable:!1,value:Ra(t),writable:!0})}:Je;function lb(e){return ui(Fn(e))}function dt(e,t,n){var a=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var c=y(o);++a<o;)c[a]=e[a+t];return c}function cb(e,t){var n;return Xt(e,function(a,o,c){return n=t(a,o,c),!n}),!!n}function Qr(e,t,n){var a=0,o=e==null?a:e.length;if(typeof t=="number"&&t===t&&o<=Ce){for(;a<o;){var c=a+o>>>1,d=e[c];d!==null&&!rt(d)&&(n?d<=t:d<t)?a=c+1:o=c}return o}return ia(e,t,Je,n)}function ia(e,t,n,a){var o=0,c=e==null?0:e.length;if(c===0)return 0;t=n(t);for(var d=t!==t,p=t===null,_=rt(t),S=t===r;o<c;){var x=Kr((o+c)/2),O=n(e[x]),N=O!==r,H=O===null,K=O===O,ee=rt(O);if(d)var Y=a||K;else S?Y=K&&(a||N):p?Y=K&&N&&(a||!H):_?Y=K&&N&&!H&&(a||!ee):H||ee?Y=!1:Y=a?O<=t:O<t;Y?o=x+1:c=x}return He(c,_e)}function xc(e,t){for(var n=-1,a=e.length,o=0,c=[];++n<a;){var d=e[n],p=t?t(d):d;if(!n||!bt(p,_)){var _=p;c[o++]=d===0?0:d}}return c}function Ac(e){return typeof e=="number"?e:rt(e)?oe:+e}function nt(e){if(typeof e=="string")return e;if(V(e))return Se(e,nt)+"";if(rt(e))return nc?nc.call(e):"";var t=e+"";return t=="0"&&1/e==-P?"-0":t}function Zt(e,t,n){var a=-1,o=Dr,c=e.length,d=!0,p=[],_=p;if(n)d=!1,o=Is;else if(c>=f){var S=t?null:bb(e);if(S)return Pr(S);d=!1,o=Zn,_=new on}else _=t?[]:p;e:for(;++a<c;){var x=e[a],O=t?t(x):x;if(x=n||x!==0?x:0,d&&O===O){for(var N=_.length;N--;)if(_[N]===O)continue e;t&&_.push(O),p.push(x)}else o(_,O,n)||(_!==p&&_.push(O),p.push(x))}return p}function sa(e,t){return t=jt(t,e),e=Vc(e,t),e==null||delete e[Lt(pt(t))]}function Tc(e,t,n,a){return ir(e,t,n(ln(e,t)),a)}function ei(e,t,n,a){for(var o=e.length,c=a?o:-1;(a?c--:++c<o)&&t(e[c],c,e););return n?dt(e,a?0:c,a?c+1:o):dt(e,a?c+1:0,a?o:c)}function Cc(e,t){var n=e;return n instanceof ue&&(n=n.value()),Ps(t,function(a,o){return o.func.apply(o.thisArg,Gt([a],o.args))},n)}function aa(e,t,n){var a=e.length;if(a<2)return a?Zt(e[0]):[];for(var o=-1,c=y(a);++o<a;)for(var d=e[o],p=-1;++p<a;)p!=o&&(c[o]=tr(c[o]||d,e[p],t,n));return Zt($e(c,1),t,n)}function Ec(e,t,n){for(var a=-1,o=e.length,c=t.length,d={};++a<o;){var p=a<c?t[a]:r;n(d,e[a],p)}return d}function oa(e){return Re(e)?e:[]}function ua(e){return typeof e=="function"?e:Je}function jt(e,t){return V(e)?e:_a(e,t)?[e]:nf(de(e))}var fb=ie;function Jt(e,t,n){var a=e.length;return n=n===r?a:n,!t&&n>=a?e:dt(e,t,n)}var Lc=Vy||function(e){return We.clearTimeout(e)};function Oc(e,t){if(t)return e.slice();var n=e.length,a=Jl?Jl(n):new e.constructor(n);return e.copy(a),a}function la(e){var t=new e.constructor(e.byteLength);return new kr(t).set(new kr(e)),t}function hb(e,t){var n=t?la(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function db(e){var t=new e.constructor(e.source,hl.exec(e));return t.lastIndex=e.lastIndex,t}function pb(e){return Qn?ve(Qn.call(e)):{}}function Rc(e,t){var n=t?la(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Mc(e,t){if(e!==t){var n=e!==r,a=e===null,o=e===e,c=rt(e),d=t!==r,p=t===null,_=t===t,S=rt(t);if(!p&&!S&&!c&&e>t||c&&d&&_&&!p&&!S||a&&d&&_||!n&&_||!o)return 1;if(!a&&!c&&!S&&e<t||S&&n&&o&&!a&&!c||p&&n&&o||!d&&o||!_)return-1}return 0}function gb(e,t,n){for(var a=-1,o=e.criteria,c=t.criteria,d=o.length,p=n.length;++a<d;){var _=Mc(o[a],c[a]);if(_){if(a>=p)return _;var S=n[a];return _*(S=="desc"?-1:1)}}return e.index-t.index}function Dc(e,t,n,a){for(var o=-1,c=e.length,d=n.length,p=-1,_=t.length,S=Pe(c-d,0),x=y(_+S),O=!a;++p<_;)x[p]=t[p];for(;++o<d;)(O||o<c)&&(x[n[o]]=e[o]);for(;S--;)x[p++]=e[o++];return x}function Ic(e,t,n,a){for(var o=-1,c=e.length,d=-1,p=n.length,_=-1,S=t.length,x=Pe(c-p,0),O=y(x+S),N=!a;++o<x;)O[o]=e[o];for(var H=o;++_<S;)O[H+_]=t[_];for(;++d<p;)(N||o<c)&&(O[H+n[d]]=e[o++]);return O}function Xe(e,t){var n=-1,a=e.length;for(t||(t=y(a));++n<a;)t[n]=e[n];return t}function Et(e,t,n,a){var o=!n;n||(n={});for(var c=-1,d=t.length;++c<d;){var p=t[c],_=a?a(n[p],e[p],p,n,e):r;_===r&&(_=e[p]),o?Nt(n,p,_):er(n,p,_)}return n}function vb(e,t){return Et(e,va(e),t)}function _b(e,t){return Et(e,Yc(e),t)}function ti(e,t){return function(n,a){var o=V(n)?Sy:$w,c=t?t():{};return o(n,e,G(a,2),c)}}function Dn(e){return ie(function(t,n){var a=-1,o=n.length,c=o>1?n[o-1]:r,d=o>2?n[2]:r;for(c=e.length>3&&typeof c=="function"?(o--,c):r,d&&Ke(n[0],n[1],d)&&(c=o<3?r:c,o=1),t=ve(t);++a<o;){var p=n[a];p&&e(t,p,a,c)}return t})}function Pc(e,t){return function(n,a){if(n==null)return n;if(!Ze(n))return e(n,a);for(var o=n.length,c=t?o:-1,d=ve(n);(t?c--:++c<o)&&a(d[c],c,d)!==!1;);return n}}function Nc(e){return function(t,n,a){for(var o=-1,c=ve(t),d=a(t),p=d.length;p--;){var _=d[e?p:++o];if(n(c[_],_,c)===!1)break}return t}}function mb(e,t,n){var a=t&F,o=sr(e);function c(){var d=this&&this!==We&&this instanceof c?o:e;return d.apply(a?n:this,arguments)}return c}function Fc(e){return function(t){t=de(t);var n=Tn(t)?yt(t):r,a=n?n[0]:t.charAt(0),o=n?Jt(n,1).join(""):t.slice(1);return a[e]()+o}}function In(e){return function(t){return Ps(Nf(Pf(t).replace(uy,"")),e,"")}}function sr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Mn(e.prototype),a=e.apply(n,t);return Ae(a)?a:n}}function yb(e,t,n){var a=sr(e);function o(){for(var c=arguments.length,d=y(c),p=c,_=Pn(o);p--;)d[p]=arguments[p];var S=c<3&&d[0]!==_&&d[c-1]!==_?[]:Kt(d,_);if(c-=S.length,c<n)return Uc(e,t,ni,o.placeholder,r,d,S,r,r,n-c);var x=this&&this!==We&&this instanceof o?a:e;return et(x,this,d)}return o}function Bc(e){return function(t,n,a){var o=ve(t);if(!Ze(t)){var c=G(n,3);t=Fe(t),n=function(p){return c(o[p],p,o)}}var d=e(t,n,a);return d>-1?o[c?t[d]:d]:r}}function Wc(e){return Bt(function(t){var n=t.length,a=n,o=ft.prototype.thru;for(e&&t.reverse();a--;){var c=t[a];if(typeof c!="function")throw new ct(g);if(o&&!d&&ai(c)=="wrapper")var d=new ft([],!0)}for(a=d?a:n;++a<n;){c=t[a];var p=ai(c),_=p=="wrapper"?pa(c):r;_&&ma(_[0])&&_[1]==(xe|ae|J|Be)&&!_[4].length&&_[9]==1?d=d[ai(_[0])].apply(d,_[3]):d=c.length==1&&ma(c)?d[p]():d.thru(c)}return function(){var S=arguments,x=S[0];if(d&&S.length==1&&V(x))return d.plant(x).value();for(var O=0,N=n?t[O].apply(this,S):x;++O<n;)N=t[O].call(this,N);return N}})}function ni(e,t,n,a,o,c,d,p,_,S){var x=t&xe,O=t&F,N=t&W,H=t&(ae|ne),K=t&pe,ee=N?r:sr(e);function Y(){for(var se=arguments.length,ce=y(se),it=se;it--;)ce[it]=arguments[it];if(H)var Ye=Pn(Y),st=My(ce,Ye);if(a&&(ce=Dc(ce,a,o,H)),c&&(ce=Ic(ce,c,d,H)),se-=st,H&&se<S){var Me=Kt(ce,Ye);return Uc(e,t,ni,Y.placeholder,n,ce,Me,p,_,S-se)}var St=O?n:this,Ut=N?St[e]:e;return se=ce.length,p?ce=$b(ce,p):K&&se>1&&ce.reverse(),x&&_<se&&(ce.length=_),this&&this!==We&&this instanceof Y&&(Ut=ee||sr(Ut)),Ut.apply(St,ce)}return Y}function $c(e,t){return function(n,a){return Xw(n,e,t(a),{})}}function ri(e,t){return function(n,a){var o;if(n===r&&a===r)return t;if(n!==r&&(o=n),a!==r){if(o===r)return a;typeof n=="string"||typeof a=="string"?(n=nt(n),a=nt(a)):(n=Ac(n),a=Ac(a)),o=e(n,a)}return o}}function ca(e){return Bt(function(t){return t=Se(t,tt(G())),ie(function(n){var a=this;return e(t,function(o){return et(o,a,n)})})})}function ii(e,t){t=t===r?" ":nt(t);var n=t.length;if(n<2)return n?ra(t,e):t;var a=ra(t,Gr(e/Cn(t)));return Tn(t)?Jt(yt(a),0,e).join(""):a.slice(0,e)}function wb(e,t,n,a){var o=t&F,c=sr(e);function d(){for(var p=-1,_=arguments.length,S=-1,x=a.length,O=y(x+_),N=this&&this!==We&&this instanceof d?c:e;++S<x;)O[S]=a[S];for(;_--;)O[S++]=arguments[++p];return et(N,o?n:this,O)}return d}function kc(e){return function(t,n,a){return a&&typeof a!="number"&&Ke(t,n,a)&&(n=a=r),t=kt(t),n===r?(n=t,t=0):n=kt(n),a=a===r?t<n?1:-1:kt(a),sb(t,n,a,e)}}function si(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=gt(t),n=gt(n)),e(t,n)}}function Uc(e,t,n,a,o,c,d,p,_,S){var x=t&ae,O=x?d:r,N=x?r:d,H=x?c:r,K=x?r:c;t|=x?J:we,t&=~(x?we:J),t&le||(t&=~(F|W));var ee=[e,t,o,H,O,K,N,p,_,S],Y=n.apply(r,ee);return ma(e)&&Qc(Y,ee),Y.placeholder=a,ef(Y,e,t)}function fa(e){var t=Ie[e];return function(n,a){if(n=gt(n),a=a==null?0:He(Q(a),292),a&&ec(n)){var o=(de(n)+"e").split("e"),c=t(o[0]+"e"+(+o[1]+a));return o=(de(c)+"e").split("e"),+(o[0]+"e"+(+o[1]-a))}return t(n)}}var bb=On&&1/Pr(new On([,-0]))[1]==P?function(e){return new On(e)}:Ia;function Hc(e){return function(t){var n=ze(t);return n==_t?Us(t):n==mt?Wy(t):Ry(t,e(t))}}function Ft(e,t,n,a,o,c,d,p){var _=t&W;if(!_&&typeof e!="function")throw new ct(g);var S=a?a.length:0;if(S||(t&=~(J|we),a=o=r),d=d===r?d:Pe(Q(d),0),p=p===r?p:Q(p),S-=o?o.length:0,t&we){var x=a,O=o;a=o=r}var N=_?r:pa(e),H=[e,t,n,a,o,x,O,c,d,p];if(N&&Fb(H,N),e=H[0],t=H[1],n=H[2],a=H[3],o=H[4],p=H[9]=H[9]===r?_?0:e.length:Pe(H[9]-S,0),!p&&t&(ae|ne)&&(t&=~(ae|ne)),!t||t==F)var K=mb(e,t,n);else t==ae||t==ne?K=yb(e,t,p):(t==J||t==(F|J))&&!o.length?K=wb(e,t,n,a):K=ni.apply(r,H);var ee=N?Sc:Qc;return ef(ee(K,H),e,t)}function zc(e,t,n,a){return e===r||bt(e,Ln[n])&&!ge.call(a,n)?t:e}function Gc(e,t,n,a,o,c){return Ae(e)&&Ae(t)&&(c.set(t,e),Vr(e,t,r,Gc,c),c.delete(t)),e}function Sb(e){return ur(e)?r:e}function Kc(e,t,n,a,o,c){var d=n&M,p=e.length,_=t.length;if(p!=_&&!(d&&_>p))return!1;var S=c.get(e),x=c.get(t);if(S&&x)return S==t&&x==e;var O=-1,N=!0,H=n&I?new on:r;for(c.set(e,t),c.set(t,e);++O<p;){var K=e[O],ee=t[O];if(a)var Y=d?a(ee,K,O,t,e,c):a(K,ee,O,e,t,c);if(Y!==r){if(Y)continue;N=!1;break}if(H){if(!Ns(t,function(se,ce){if(!Zn(H,ce)&&(K===se||o(K,se,n,a,c)))return H.push(ce)})){N=!1;break}}else if(!(K===ee||o(K,ee,n,a,c))){N=!1;break}}return c.delete(e),c.delete(t),N}function xb(e,t,n,a,o,c,d){switch(n){case Sn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Xn:return!(e.byteLength!=t.byteLength||!c(new kr(e),new kr(t)));case De:case Ee:case zn:return bt(+e,+t);case Tt:return e.name==t.name&&e.message==t.message;case Gn:case Kn:return e==t+"";case _t:var p=Us;case mt:var _=a&M;if(p||(p=Pr),e.size!=t.size&&!_)return!1;var S=d.get(e);if(S)return S==t;a|=I,d.set(e,t);var x=Kc(p(e),p(t),a,o,c,d);return d.delete(e),x;case Lr:if(Qn)return Qn.call(e)==Qn.call(t)}return!1}function Ab(e,t,n,a,o,c){var d=n&M,p=ha(e),_=p.length,S=ha(t),x=S.length;if(_!=x&&!d)return!1;for(var O=_;O--;){var N=p[O];if(!(d?N in t:ge.call(t,N)))return!1}var H=c.get(e),K=c.get(t);if(H&&K)return H==t&&K==e;var ee=!0;c.set(e,t),c.set(t,e);for(var Y=d;++O<_;){N=p[O];var se=e[N],ce=t[N];if(a)var it=d?a(ce,se,N,t,e,c):a(se,ce,N,e,t,c);if(!(it===r?se===ce||o(se,ce,n,a,c):it)){ee=!1;break}Y||(Y=N=="constructor")}if(ee&&!Y){var Ye=e.constructor,st=t.constructor;Ye!=st&&"constructor"in e&&"constructor"in t&&!(typeof Ye=="function"&&Ye instanceof Ye&&typeof st=="function"&&st instanceof st)&&(ee=!1)}return c.delete(e),c.delete(t),ee}function Bt(e){return wa(qc(e,r,of),e+"")}function ha(e){return fc(e,Fe,va)}function da(e){return fc(e,je,Yc)}var pa=Yr?function(e){return Yr.get(e)}:Ia;function ai(e){for(var t=e.name+"",n=Rn[t],a=ge.call(Rn,t)?n.length:0;a--;){var o=n[a],c=o.func;if(c==null||c==e)return o.name}return t}function Pn(e){var t=ge.call(l,"placeholder")?l:e;return t.placeholder}function G(){var e=l.iteratee||Ma;return e=e===Ma?pc:e,arguments.length?e(arguments[0],arguments[1]):e}function oi(e,t){var n=e.__data__;return Db(t)?n[typeof t=="string"?"string":"hash"]:n.map}function ga(e){for(var t=Fe(e),n=t.length;n--;){var a=t[n],o=e[a];t[n]=[a,o,jc(o)]}return t}function cn(e,t){var n=Ny(e,t);return dc(n)?n:r}function Tb(e){var t=ge.call(e,sn),n=e[sn];try{e[sn]=r;var a=!0}catch{}var o=Wr.call(e);return a&&(t?e[sn]=n:delete e[sn]),o}var va=zs?function(e){return e==null?[]:(e=ve(e),zt(zs(e),function(t){return Vl.call(e,t)}))}:Pa,Yc=zs?function(e){for(var t=[];e;)Gt(t,va(e)),e=Ur(e);return t}:Pa,ze=Ge;(Gs&&ze(new Gs(new ArrayBuffer(1)))!=Sn||Jn&&ze(new Jn)!=_t||Ks&&ze(Ks.resolve())!=ul||On&&ze(new On)!=mt||qn&&ze(new qn)!=Yn)&&(ze=function(e){var t=Ge(e),n=t==Dt?e.constructor:r,a=n?fn(n):"";if(a)switch(a){case ow:return Sn;case uw:return _t;case lw:return ul;case cw:return mt;case fw:return Yn}return t});function Cb(e,t,n){for(var a=-1,o=n.length;++a<o;){var c=n[a],d=c.size;switch(c.type){case"drop":e+=d;break;case"dropRight":t-=d;break;case"take":t=He(t,e+d);break;case"takeRight":e=Pe(e,t-d);break}}return{start:e,end:t}}function Eb(e){var t=e.match(I1);return t?t[1].split(P1):[]}function Xc(e,t,n){t=jt(t,e);for(var a=-1,o=t.length,c=!1;++a<o;){var d=Lt(t[a]);if(!(c=e!=null&&n(e,d)))break;e=e[d]}return c||++a!=o?c:(o=e==null?0:e.length,!!o&&pi(o)&&Wt(d,o)&&(V(e)||hn(e)))}function Lb(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&ge.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Zc(e){return typeof e.constructor=="function"&&!ar(e)?Mn(Ur(e)):{}}function Ob(e,t,n){var a=e.constructor;switch(t){case Xn:return la(e);case De:case Ee:return new a(+e);case Sn:return hb(e,n);case gs:case vs:case _s:case ms:case ys:case ws:case bs:case Ss:case xs:return Rc(e,n);case _t:return new a;case zn:case Kn:return new a(e);case Gn:return db(e);case mt:return new a;case Lr:return pb(e)}}function Rb(e,t){var n=t.length;if(!n)return e;var a=n-1;return t[a]=(n>1?"& ":"")+t[a],t=t.join(n>2?", ":" "),e.replace(D1,`{
/* [wrapped with `+t+`] */
`)}function Mb(e){return V(e)||hn(e)||!!(Ql&&e&&e[Ql])}function Wt(e,t){var n=typeof e;return t=t==null?z:t,!!t&&(n=="number"||n!="symbol"&&z1.test(e))&&e>-1&&e%1==0&&e<t}function Ke(e,t,n){if(!Ae(n))return!1;var a=typeof t;return(a=="number"?Ze(n)&&Wt(t,n.length):a=="string"&&t in n)?bt(n[t],e):!1}function _a(e,t){if(V(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||rt(e)?!0:L1.test(e)||!E1.test(e)||t!=null&&e in ve(t)}function Db(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ma(e){var t=ai(e),n=l[t];if(typeof n!="function"||!(t in ue.prototype))return!1;if(e===n)return!0;var a=pa(n);return!!a&&e===a[0]}function Ib(e){return!!jl&&jl in e}var Pb=Fr?$t:Na;function ar(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Ln;return e===n}function jc(e){return e===e&&!Ae(e)}function Jc(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==r||e in ve(n))}}function Nb(e){var t=hi(e,function(a){return n.size===A&&n.clear(),a}),n=t.cache;return t}function Fb(e,t){var n=e[1],a=t[1],o=n|a,c=o<(F|W|xe),d=a==xe&&n==ae||a==xe&&n==Be&&e[7].length<=t[8]||a==(xe|Be)&&t[7].length<=t[8]&&n==ae;if(!(c||d))return e;a&F&&(e[2]=t[2],o|=n&F?0:le);var p=t[3];if(p){var _=e[3];e[3]=_?Dc(_,p,t[4]):p,e[4]=_?Kt(e[3],R):t[4]}return p=t[5],p&&(_=e[5],e[5]=_?Ic(_,p,t[6]):p,e[6]=_?Kt(e[5],R):t[6]),p=t[7],p&&(e[7]=p),a&xe&&(e[8]=e[8]==null?t[8]:He(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}function Bb(e){var t=[];if(e!=null)for(var n in ve(e))t.push(n);return t}function Wb(e){return Wr.call(e)}function qc(e,t,n){return t=Pe(t===r?e.length-1:t,0),function(){for(var a=arguments,o=-1,c=Pe(a.length-t,0),d=y(c);++o<c;)d[o]=a[t+o];o=-1;for(var p=y(t+1);++o<t;)p[o]=a[o];return p[t]=n(d),et(e,this,p)}}function Vc(e,t){return t.length<2?e:ln(e,dt(t,0,-1))}function $b(e,t){for(var n=e.length,a=He(t.length,n),o=Xe(e);a--;){var c=t[a];e[a]=Wt(c,n)?o[c]:r}return e}function ya(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Qc=tf(Sc),or=ew||function(e,t){return We.setTimeout(e,t)},wa=tf(ub);function ef(e,t,n){var a=t+"";return wa(e,Rb(a,kb(Eb(a),n)))}function tf(e){var t=0,n=0;return function(){var a=iw(),o=X-(a-n);if(n=a,o>0){if(++t>=nn)return arguments[0]}else t=0;return e.apply(r,arguments)}}function ui(e,t){var n=-1,a=e.length,o=a-1;for(t=t===r?a:t;++n<t;){var c=na(n,o),d=e[c];e[c]=e[n],e[n]=d}return e.length=t,e}var nf=Nb(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(O1,function(n,a,o,c){t.push(o?c.replace(B1,"$1"):a||n)}),t});function Lt(e){if(typeof e=="string"||rt(e))return e;var t=e+"";return t=="0"&&1/e==-P?"-0":t}function fn(e){if(e!=null){try{return Br.call(e)}catch{}try{return e+""}catch{}}return""}function kb(e,t){return lt(at,function(n){var a="_."+n[0];t&n[1]&&!Dr(e,a)&&e.push(a)}),e.sort()}function rf(e){if(e instanceof ue)return e.clone();var t=new ft(e.__wrapped__,e.__chain__);return t.__actions__=Xe(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Ub(e,t,n){(n?Ke(e,t,n):t===r)?t=1:t=Pe(Q(t),0);var a=e==null?0:e.length;if(!a||t<1)return[];for(var o=0,c=0,d=y(Gr(a/t));o<a;)d[c++]=dt(e,o,o+=t);return d}function Hb(e){for(var t=-1,n=e==null?0:e.length,a=0,o=[];++t<n;){var c=e[t];c&&(o[a++]=c)}return o}function zb(){var e=arguments.length;if(!e)return[];for(var t=y(e-1),n=arguments[0],a=e;a--;)t[a-1]=arguments[a];return Gt(V(n)?Xe(n):[n],$e(t,1))}var Gb=ie(function(e,t){return Re(e)?tr(e,$e(t,1,Re,!0)):[]}),Kb=ie(function(e,t){var n=pt(t);return Re(n)&&(n=r),Re(e)?tr(e,$e(t,1,Re,!0),G(n,2)):[]}),Yb=ie(function(e,t){var n=pt(t);return Re(n)&&(n=r),Re(e)?tr(e,$e(t,1,Re,!0),r,n):[]});function Xb(e,t,n){var a=e==null?0:e.length;return a?(t=n||t===r?1:Q(t),dt(e,t<0?0:t,a)):[]}function Zb(e,t,n){var a=e==null?0:e.length;return a?(t=n||t===r?1:Q(t),t=a-t,dt(e,0,t<0?0:t)):[]}function jb(e,t){return e&&e.length?ei(e,G(t,3),!0,!0):[]}function Jb(e,t){return e&&e.length?ei(e,G(t,3),!0):[]}function qb(e,t,n,a){var o=e==null?0:e.length;return o?(n&&typeof n!="number"&&Ke(e,t,n)&&(n=0,a=o),zw(e,t,n,a)):[]}function sf(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var o=n==null?0:Q(n);return o<0&&(o=Pe(a+o,0)),Ir(e,G(t,3),o)}function af(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var o=a-1;return n!==r&&(o=Q(n),o=n<0?Pe(a+o,0):He(o,a-1)),Ir(e,G(t,3),o,!0)}function of(e){var t=e==null?0:e.length;return t?$e(e,1):[]}function Vb(e){var t=e==null?0:e.length;return t?$e(e,P):[]}function Qb(e,t){var n=e==null?0:e.length;return n?(t=t===r?1:Q(t),$e(e,t)):[]}function eS(e){for(var t=-1,n=e==null?0:e.length,a={};++t<n;){var o=e[t];a[o[0]]=o[1]}return a}function uf(e){return e&&e.length?e[0]:r}function tS(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var o=n==null?0:Q(n);return o<0&&(o=Pe(a+o,0)),An(e,t,o)}function nS(e){var t=e==null?0:e.length;return t?dt(e,0,-1):[]}var rS=ie(function(e){var t=Se(e,oa);return t.length&&t[0]===e[0]?qs(t):[]}),iS=ie(function(e){var t=pt(e),n=Se(e,oa);return t===pt(n)?t=r:n.pop(),n.length&&n[0]===e[0]?qs(n,G(t,2)):[]}),sS=ie(function(e){var t=pt(e),n=Se(e,oa);return t=typeof t=="function"?t:r,t&&n.pop(),n.length&&n[0]===e[0]?qs(n,r,t):[]});function aS(e,t){return e==null?"":nw.call(e,t)}function pt(e){var t=e==null?0:e.length;return t?e[t-1]:r}function oS(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var o=a;return n!==r&&(o=Q(n),o=o<0?Pe(a+o,0):He(o,a-1)),t===t?ky(e,t,o):Ir(e,Ul,o,!0)}function uS(e,t){return e&&e.length?mc(e,Q(t)):r}var lS=ie(lf);function lf(e,t){return e&&e.length&&t&&t.length?ta(e,t):e}function cS(e,t,n){return e&&e.length&&t&&t.length?ta(e,t,G(n,2)):e}function fS(e,t,n){return e&&e.length&&t&&t.length?ta(e,t,r,n):e}var hS=Bt(function(e,t){var n=e==null?0:e.length,a=Xs(e,t);return bc(e,Se(t,function(o){return Wt(o,n)?+o:o}).sort(Mc)),a});function dS(e,t){var n=[];if(!(e&&e.length))return n;var a=-1,o=[],c=e.length;for(t=G(t,3);++a<c;){var d=e[a];t(d,a,e)&&(n.push(d),o.push(a))}return bc(e,o),n}function ba(e){return e==null?e:aw.call(e)}function pS(e,t,n){var a=e==null?0:e.length;return a?(n&&typeof n!="number"&&Ke(e,t,n)?(t=0,n=a):(t=t==null?0:Q(t),n=n===r?a:Q(n)),dt(e,t,n)):[]}function gS(e,t){return Qr(e,t)}function vS(e,t,n){return ia(e,t,G(n,2))}function _S(e,t){var n=e==null?0:e.length;if(n){var a=Qr(e,t);if(a<n&&bt(e[a],t))return a}return-1}function mS(e,t){return Qr(e,t,!0)}function yS(e,t,n){return ia(e,t,G(n,2),!0)}function wS(e,t){var n=e==null?0:e.length;if(n){var a=Qr(e,t,!0)-1;if(bt(e[a],t))return a}return-1}function bS(e){return e&&e.length?xc(e):[]}function SS(e,t){return e&&e.length?xc(e,G(t,2)):[]}function xS(e){var t=e==null?0:e.length;return t?dt(e,1,t):[]}function AS(e,t,n){return e&&e.length?(t=n||t===r?1:Q(t),dt(e,0,t<0?0:t)):[]}function TS(e,t,n){var a=e==null?0:e.length;return a?(t=n||t===r?1:Q(t),t=a-t,dt(e,t<0?0:t,a)):[]}function CS(e,t){return e&&e.length?ei(e,G(t,3),!1,!0):[]}function ES(e,t){return e&&e.length?ei(e,G(t,3)):[]}var LS=ie(function(e){return Zt($e(e,1,Re,!0))}),OS=ie(function(e){var t=pt(e);return Re(t)&&(t=r),Zt($e(e,1,Re,!0),G(t,2))}),RS=ie(function(e){var t=pt(e);return t=typeof t=="function"?t:r,Zt($e(e,1,Re,!0),r,t)});function MS(e){return e&&e.length?Zt(e):[]}function DS(e,t){return e&&e.length?Zt(e,G(t,2)):[]}function IS(e,t){return t=typeof t=="function"?t:r,e&&e.length?Zt(e,r,t):[]}function Sa(e){if(!(e&&e.length))return[];var t=0;return e=zt(e,function(n){if(Re(n))return t=Pe(n.length,t),!0}),$s(t,function(n){return Se(e,Fs(n))})}function cf(e,t){if(!(e&&e.length))return[];var n=Sa(e);return t==null?n:Se(n,function(a){return et(t,r,a)})}var PS=ie(function(e,t){return Re(e)?tr(e,t):[]}),NS=ie(function(e){return aa(zt(e,Re))}),FS=ie(function(e){var t=pt(e);return Re(t)&&(t=r),aa(zt(e,Re),G(t,2))}),BS=ie(function(e){var t=pt(e);return t=typeof t=="function"?t:r,aa(zt(e,Re),r,t)}),WS=ie(Sa);function $S(e,t){return Ec(e||[],t||[],er)}function kS(e,t){return Ec(e||[],t||[],ir)}var US=ie(function(e){var t=e.length,n=t>1?e[t-1]:r;return n=typeof n=="function"?(e.pop(),n):r,cf(e,n)});function ff(e){var t=l(e);return t.__chain__=!0,t}function HS(e,t){return t(e),e}function li(e,t){return t(e)}var zS=Bt(function(e){var t=e.length,n=t?e[0]:0,a=this.__wrapped__,o=function(c){return Xs(c,e)};return t>1||this.__actions__.length||!(a instanceof ue)||!Wt(n)?this.thru(o):(a=a.slice(n,+n+(t?1:0)),a.__actions__.push({func:li,args:[o],thisArg:r}),new ft(a,this.__chain__).thru(function(c){return t&&!c.length&&c.push(r),c}))});function GS(){return ff(this)}function KS(){return new ft(this.value(),this.__chain__)}function YS(){this.__values__===r&&(this.__values__=Tf(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function XS(){return this}function ZS(e){for(var t,n=this;n instanceof Zr;){var a=rf(n);a.__index__=0,a.__values__=r,t?o.__wrapped__=a:t=a;var o=a;n=n.__wrapped__}return o.__wrapped__=e,t}function jS(){var e=this.__wrapped__;if(e instanceof ue){var t=e;return this.__actions__.length&&(t=new ue(this)),t=t.reverse(),t.__actions__.push({func:li,args:[ba],thisArg:r}),new ft(t,this.__chain__)}return this.thru(ba)}function JS(){return Cc(this.__wrapped__,this.__actions__)}var qS=ti(function(e,t,n){ge.call(e,n)?++e[n]:Nt(e,n,1)});function VS(e,t,n){var a=V(e)?$l:Hw;return n&&Ke(e,t,n)&&(t=r),a(e,G(t,3))}function QS(e,t){var n=V(e)?zt:lc;return n(e,G(t,3))}var ex=Bc(sf),tx=Bc(af);function nx(e,t){return $e(ci(e,t),1)}function rx(e,t){return $e(ci(e,t),P)}function ix(e,t,n){return n=n===r?1:Q(n),$e(ci(e,t),n)}function hf(e,t){var n=V(e)?lt:Xt;return n(e,G(t,3))}function df(e,t){var n=V(e)?xy:uc;return n(e,G(t,3))}var sx=ti(function(e,t,n){ge.call(e,n)?e[n].push(t):Nt(e,n,[t])});function ax(e,t,n,a){e=Ze(e)?e:Fn(e),n=n&&!a?Q(n):0;var o=e.length;return n<0&&(n=Pe(o+n,0)),gi(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&An(e,t,n)>-1}var ox=ie(function(e,t,n){var a=-1,o=typeof t=="function",c=Ze(e)?y(e.length):[];return Xt(e,function(d){c[++a]=o?et(t,d,n):nr(d,t,n)}),c}),ux=ti(function(e,t,n){Nt(e,n,t)});function ci(e,t){var n=V(e)?Se:gc;return n(e,G(t,3))}function lx(e,t,n,a){return e==null?[]:(V(t)||(t=t==null?[]:[t]),n=a?r:n,V(n)||(n=n==null?[]:[n]),yc(e,t,n))}var cx=ti(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function fx(e,t,n){var a=V(e)?Ps:zl,o=arguments.length<3;return a(e,G(t,4),n,o,Xt)}function hx(e,t,n){var a=V(e)?Ay:zl,o=arguments.length<3;return a(e,G(t,4),n,o,uc)}function dx(e,t){var n=V(e)?zt:lc;return n(e,di(G(t,3)))}function px(e){var t=V(e)?ic:ab;return t(e)}function gx(e,t,n){(n?Ke(e,t,n):t===r)?t=1:t=Q(t);var a=V(e)?Bw:ob;return a(e,t)}function vx(e){var t=V(e)?Ww:lb;return t(e)}function _x(e){if(e==null)return 0;if(Ze(e))return gi(e)?Cn(e):e.length;var t=ze(e);return t==_t||t==mt?e.size:Qs(e).length}function mx(e,t,n){var a=V(e)?Ns:cb;return n&&Ke(e,t,n)&&(t=r),a(e,G(t,3))}var yx=ie(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ke(e,t[0],t[1])?t=[]:n>2&&Ke(t[0],t[1],t[2])&&(t=[t[0]]),yc(e,$e(t,1),[])}),fi=Qy||function(){return We.Date.now()};function wx(e,t){if(typeof t!="function")throw new ct(g);return e=Q(e),function(){if(--e<1)return t.apply(this,arguments)}}function pf(e,t,n){return t=n?r:t,t=e&&t==null?e.length:t,Ft(e,xe,r,r,r,r,t)}function gf(e,t){var n;if(typeof t!="function")throw new ct(g);return e=Q(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var xa=ie(function(e,t,n){var a=F;if(n.length){var o=Kt(n,Pn(xa));a|=J}return Ft(e,a,t,n,o)}),vf=ie(function(e,t,n){var a=F|W;if(n.length){var o=Kt(n,Pn(vf));a|=J}return Ft(t,a,e,n,o)});function _f(e,t,n){t=n?r:t;var a=Ft(e,ae,r,r,r,r,r,t);return a.placeholder=_f.placeholder,a}function mf(e,t,n){t=n?r:t;var a=Ft(e,ne,r,r,r,r,r,t);return a.placeholder=mf.placeholder,a}function yf(e,t,n){var a,o,c,d,p,_,S=0,x=!1,O=!1,N=!0;if(typeof e!="function")throw new ct(g);t=gt(t)||0,Ae(n)&&(x=!!n.leading,O="maxWait"in n,c=O?Pe(gt(n.maxWait)||0,t):c,N="trailing"in n?!!n.trailing:N);function H(Me){var St=a,Ut=o;return a=o=r,S=Me,d=e.apply(Ut,St),d}function K(Me){return S=Me,p=or(se,t),x?H(Me):d}function ee(Me){var St=Me-_,Ut=Me-S,Wf=t-St;return O?He(Wf,c-Ut):Wf}function Y(Me){var St=Me-_,Ut=Me-S;return _===r||St>=t||St<0||O&&Ut>=c}function se(){var Me=fi();if(Y(Me))return ce(Me);p=or(se,ee(Me))}function ce(Me){return p=r,N&&a?H(Me):(a=o=r,d)}function it(){p!==r&&Lc(p),S=0,a=_=o=p=r}function Ye(){return p===r?d:ce(fi())}function st(){var Me=fi(),St=Y(Me);if(a=arguments,o=this,_=Me,St){if(p===r)return K(_);if(O)return Lc(p),p=or(se,t),H(_)}return p===r&&(p=or(se,t)),d}return st.cancel=it,st.flush=Ye,st}var bx=ie(function(e,t){return oc(e,1,t)}),Sx=ie(function(e,t,n){return oc(e,gt(t)||0,n)});function xx(e){return Ft(e,pe)}function hi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new ct(g);var n=function(){var a=arguments,o=t?t.apply(this,a):a[0],c=n.cache;if(c.has(o))return c.get(o);var d=e.apply(this,a);return n.cache=c.set(o,d)||c,d};return n.cache=new(hi.Cache||Pt),n}hi.Cache=Pt;function di(e){if(typeof e!="function")throw new ct(g);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ax(e){return gf(2,e)}var Tx=fb(function(e,t){t=t.length==1&&V(t[0])?Se(t[0],tt(G())):Se($e(t,1),tt(G()));var n=t.length;return ie(function(a){for(var o=-1,c=He(a.length,n);++o<c;)a[o]=t[o].call(this,a[o]);return et(e,this,a)})}),Aa=ie(function(e,t){var n=Kt(t,Pn(Aa));return Ft(e,J,r,t,n)}),wf=ie(function(e,t){var n=Kt(t,Pn(wf));return Ft(e,we,r,t,n)}),Cx=Bt(function(e,t){return Ft(e,Be,r,r,r,t)});function Ex(e,t){if(typeof e!="function")throw new ct(g);return t=t===r?t:Q(t),ie(e,t)}function Lx(e,t){if(typeof e!="function")throw new ct(g);return t=t==null?0:Pe(Q(t),0),ie(function(n){var a=n[t],o=Jt(n,0,t);return a&&Gt(o,a),et(e,this,o)})}function Ox(e,t,n){var a=!0,o=!0;if(typeof e!="function")throw new ct(g);return Ae(n)&&(a="leading"in n?!!n.leading:a,o="trailing"in n?!!n.trailing:o),yf(e,t,{leading:a,maxWait:t,trailing:o})}function Rx(e){return pf(e,1)}function Mx(e,t){return Aa(ua(t),e)}function Dx(){if(!arguments.length)return[];var e=arguments[0];return V(e)?e:[e]}function Ix(e){return ht(e,L)}function Px(e,t){return t=typeof t=="function"?t:r,ht(e,L,t)}function Nx(e){return ht(e,T|L)}function Fx(e,t){return t=typeof t=="function"?t:r,ht(e,T|L,t)}function Bx(e,t){return t==null||ac(e,t,Fe(t))}function bt(e,t){return e===t||e!==e&&t!==t}var Wx=si(Js),$x=si(function(e,t){return e>=t}),hn=hc(function(){return arguments}())?hc:function(e){return Le(e)&&ge.call(e,"callee")&&!Vl.call(e,"callee")},V=y.isArray,kx=Il?tt(Il):Zw;function Ze(e){return e!=null&&pi(e.length)&&!$t(e)}function Re(e){return Le(e)&&Ze(e)}function Ux(e){return e===!0||e===!1||Le(e)&&Ge(e)==De}var qt=tw||Na,Hx=Pl?tt(Pl):jw;function zx(e){return Le(e)&&e.nodeType===1&&!ur(e)}function Gx(e){if(e==null)return!0;if(Ze(e)&&(V(e)||typeof e=="string"||typeof e.splice=="function"||qt(e)||Nn(e)||hn(e)))return!e.length;var t=ze(e);if(t==_t||t==mt)return!e.size;if(ar(e))return!Qs(e).length;for(var n in e)if(ge.call(e,n))return!1;return!0}function Kx(e,t){return rr(e,t)}function Yx(e,t,n){n=typeof n=="function"?n:r;var a=n?n(e,t):r;return a===r?rr(e,t,r,n):!!a}function Ta(e){if(!Le(e))return!1;var t=Ge(e);return t==Tt||t==Qe||typeof e.message=="string"&&typeof e.name=="string"&&!ur(e)}function Xx(e){return typeof e=="number"&&ec(e)}function $t(e){if(!Ae(e))return!1;var t=Ge(e);return t==Mt||t==ol||t==Rt||t==_1}function bf(e){return typeof e=="number"&&e==Q(e)}function pi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=z}function Ae(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Le(e){return e!=null&&typeof e=="object"}var Sf=Nl?tt(Nl):qw;function Zx(e,t){return e===t||Vs(e,t,ga(t))}function jx(e,t,n){return n=typeof n=="function"?n:r,Vs(e,t,ga(t),n)}function Jx(e){return xf(e)&&e!=+e}function qx(e){if(Pb(e))throw new q(h);return dc(e)}function Vx(e){return e===null}function Qx(e){return e==null}function xf(e){return typeof e=="number"||Le(e)&&Ge(e)==zn}function ur(e){if(!Le(e)||Ge(e)!=Dt)return!1;var t=Ur(e);if(t===null)return!0;var n=ge.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Br.call(n)==jy}var Ca=Fl?tt(Fl):Vw;function eA(e){return bf(e)&&e>=-z&&e<=z}var Af=Bl?tt(Bl):Qw;function gi(e){return typeof e=="string"||!V(e)&&Le(e)&&Ge(e)==Kn}function rt(e){return typeof e=="symbol"||Le(e)&&Ge(e)==Lr}var Nn=Wl?tt(Wl):eb;function tA(e){return e===r}function nA(e){return Le(e)&&ze(e)==Yn}function rA(e){return Le(e)&&Ge(e)==y1}var iA=si(ea),sA=si(function(e,t){return e<=t});function Tf(e){if(!e)return[];if(Ze(e))return gi(e)?yt(e):Xe(e);if(jn&&e[jn])return By(e[jn]());var t=ze(e),n=t==_t?Us:t==mt?Pr:Fn;return n(e)}function kt(e){if(!e)return e===0?e:0;if(e=gt(e),e===P||e===-P){var t=e<0?-1:1;return t*j}return e===e?e:0}function Q(e){var t=kt(e),n=t%1;return t===t?n?t-n:t:0}function Cf(e){return e?un(Q(e),0,fe):0}function gt(e){if(typeof e=="number")return e;if(rt(e))return oe;if(Ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Gl(e);var n=k1.test(e);return n||H1.test(e)?wy(e.slice(2),n?2:8):$1.test(e)?oe:+e}function Ef(e){return Et(e,je(e))}function aA(e){return e?un(Q(e),-z,z):e===0?e:0}function de(e){return e==null?"":nt(e)}var oA=Dn(function(e,t){if(ar(t)||Ze(t)){Et(t,Fe(t),e);return}for(var n in t)ge.call(t,n)&&er(e,n,t[n])}),Lf=Dn(function(e,t){Et(t,je(t),e)}),vi=Dn(function(e,t,n,a){Et(t,je(t),e,a)}),uA=Dn(function(e,t,n,a){Et(t,Fe(t),e,a)}),lA=Bt(Xs);function cA(e,t){var n=Mn(e);return t==null?n:sc(n,t)}var fA=ie(function(e,t){e=ve(e);var n=-1,a=t.length,o=a>2?t[2]:r;for(o&&Ke(t[0],t[1],o)&&(a=1);++n<a;)for(var c=t[n],d=je(c),p=-1,_=d.length;++p<_;){var S=d[p],x=e[S];(x===r||bt(x,Ln[S])&&!ge.call(e,S))&&(e[S]=c[S])}return e}),hA=ie(function(e){return e.push(r,Gc),et(Of,r,e)});function dA(e,t){return kl(e,G(t,3),Ct)}function pA(e,t){return kl(e,G(t,3),js)}function gA(e,t){return e==null?e:Zs(e,G(t,3),je)}function vA(e,t){return e==null?e:cc(e,G(t,3),je)}function _A(e,t){return e&&Ct(e,G(t,3))}function mA(e,t){return e&&js(e,G(t,3))}function yA(e){return e==null?[]:qr(e,Fe(e))}function wA(e){return e==null?[]:qr(e,je(e))}function Ea(e,t,n){var a=e==null?r:ln(e,t);return a===r?n:a}function bA(e,t){return e!=null&&Xc(e,t,Gw)}function La(e,t){return e!=null&&Xc(e,t,Kw)}var SA=$c(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Wr.call(t)),e[t]=n},Ra(Je)),xA=$c(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Wr.call(t)),ge.call(e,t)?e[t].push(n):e[t]=[n]},G),AA=ie(nr);function Fe(e){return Ze(e)?rc(e):Qs(e)}function je(e){return Ze(e)?rc(e,!0):tb(e)}function TA(e,t){var n={};return t=G(t,3),Ct(e,function(a,o,c){Nt(n,t(a,o,c),a)}),n}function CA(e,t){var n={};return t=G(t,3),Ct(e,function(a,o,c){Nt(n,o,t(a,o,c))}),n}var EA=Dn(function(e,t,n){Vr(e,t,n)}),Of=Dn(function(e,t,n,a){Vr(e,t,n,a)}),LA=Bt(function(e,t){var n={};if(e==null)return n;var a=!1;t=Se(t,function(c){return c=jt(c,e),a||(a=c.length>1),c}),Et(e,da(e),n),a&&(n=ht(n,T|E|L,Sb));for(var o=t.length;o--;)sa(n,t[o]);return n});function OA(e,t){return Rf(e,di(G(t)))}var RA=Bt(function(e,t){return e==null?{}:rb(e,t)});function Rf(e,t){if(e==null)return{};var n=Se(da(e),function(a){return[a]});return t=G(t),wc(e,n,function(a,o){return t(a,o[0])})}function MA(e,t,n){t=jt(t,e);var a=-1,o=t.length;for(o||(o=1,e=r);++a<o;){var c=e==null?r:e[Lt(t[a])];c===r&&(a=o,c=n),e=$t(c)?c.call(e):c}return e}function DA(e,t,n){return e==null?e:ir(e,t,n)}function IA(e,t,n,a){return a=typeof a=="function"?a:r,e==null?e:ir(e,t,n,a)}var Mf=Hc(Fe),Df=Hc(je);function PA(e,t,n){var a=V(e),o=a||qt(e)||Nn(e);if(t=G(t,4),n==null){var c=e&&e.constructor;o?n=a?new c:[]:Ae(e)?n=$t(c)?Mn(Ur(e)):{}:n={}}return(o?lt:Ct)(e,function(d,p,_){return t(n,d,p,_)}),n}function NA(e,t){return e==null?!0:sa(e,t)}function FA(e,t,n){return e==null?e:Tc(e,t,ua(n))}function BA(e,t,n,a){return a=typeof a=="function"?a:r,e==null?e:Tc(e,t,ua(n),a)}function Fn(e){return e==null?[]:ks(e,Fe(e))}function WA(e){return e==null?[]:ks(e,je(e))}function $A(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=gt(n),n=n===n?n:0),t!==r&&(t=gt(t),t=t===t?t:0),un(gt(e),t,n)}function kA(e,t,n){return t=kt(t),n===r?(n=t,t=0):n=kt(n),e=gt(e),Yw(e,t,n)}function UA(e,t,n){if(n&&typeof n!="boolean"&&Ke(e,t,n)&&(t=n=r),n===r&&(typeof t=="boolean"?(n=t,t=r):typeof e=="boolean"&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=kt(e),t===r?(t=e,e=0):t=kt(t)),e>t){var a=e;e=t,t=a}if(n||e%1||t%1){var o=tc();return He(e+o*(t-e+yy("1e-"+((o+"").length-1))),t)}return na(e,t)}var HA=In(function(e,t,n){return t=t.toLowerCase(),e+(n?If(t):t)});function If(e){return Oa(de(e).toLowerCase())}function Pf(e){return e=de(e),e&&e.replace(G1,Dy).replace(ly,"")}function zA(e,t,n){e=de(e),t=nt(t);var a=e.length;n=n===r?a:un(Q(n),0,a);var o=n;return n-=t.length,n>=0&&e.slice(n,o)==t}function GA(e){return e=de(e),e&&A1.test(e)?e.replace(cl,Iy):e}function KA(e){return e=de(e),e&&R1.test(e)?e.replace(As,"\\$&"):e}var YA=In(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),XA=In(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),ZA=Fc("toLowerCase");function jA(e,t,n){e=de(e),t=Q(t);var a=t?Cn(e):0;if(!t||a>=t)return e;var o=(t-a)/2;return ii(Kr(o),n)+e+ii(Gr(o),n)}function JA(e,t,n){e=de(e),t=Q(t);var a=t?Cn(e):0;return t&&a<t?e+ii(t-a,n):e}function qA(e,t,n){e=de(e),t=Q(t);var a=t?Cn(e):0;return t&&a<t?ii(t-a,n)+e:e}function VA(e,t,n){return n||t==null?t=0:t&&(t=+t),sw(de(e).replace(Ts,""),t||0)}function QA(e,t,n){return(n?Ke(e,t,n):t===r)?t=1:t=Q(t),ra(de(e),t)}function eT(){var e=arguments,t=de(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var tT=In(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function nT(e,t,n){return n&&typeof n!="number"&&Ke(e,t,n)&&(t=n=r),n=n===r?fe:n>>>0,n?(e=de(e),e&&(typeof t=="string"||t!=null&&!Ca(t))&&(t=nt(t),!t&&Tn(e))?Jt(yt(e),0,n):e.split(t,n)):[]}var rT=In(function(e,t,n){return e+(n?" ":"")+Oa(t)});function iT(e,t,n){return e=de(e),n=n==null?0:un(Q(n),0,e.length),t=nt(t),e.slice(n,n+t.length)==t}function sT(e,t,n){var a=l.templateSettings;n&&Ke(e,t,n)&&(t=r),e=de(e),t=vi({},t,a,zc);var o=vi({},t.imports,a.imports,zc),c=Fe(o),d=ks(o,c),p,_,S=0,x=t.interpolate||Or,O="__p += '",N=Hs((t.escape||Or).source+"|"+x.source+"|"+(x===fl?W1:Or).source+"|"+(t.evaluate||Or).source+"|$","g"),H="//# sourceURL="+(ge.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++py+"]")+`
`;e.replace(N,function(Y,se,ce,it,Ye,st){return ce||(ce=it),O+=e.slice(S,st).replace(K1,Py),se&&(p=!0,O+=`' +
__e(`+se+`) +
'`),Ye&&(_=!0,O+=`';
`+Ye+`;
__p += '`),ce&&(O+=`' +
((__t = (`+ce+`)) == null ? '' : __t) +
'`),S=st+Y.length,Y}),O+=`';
`;var K=ge.call(t,"variable")&&t.variable;if(!K)O=`with (obj) {
`+O+`
}
`;else if(F1.test(K))throw new q(m);O=(_?O.replace(w1,""):O).replace(b1,"$1").replace(S1,"$1;"),O="function("+(K||"obj")+`) {
`+(K?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(p?", __e = _.escape":"")+(_?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+O+`return __p
}`;var ee=Ff(function(){return he(c,H+"return "+O).apply(r,d)});if(ee.source=O,Ta(ee))throw ee;return ee}function aT(e){return de(e).toLowerCase()}function oT(e){return de(e).toUpperCase()}function uT(e,t,n){if(e=de(e),e&&(n||t===r))return Gl(e);if(!e||!(t=nt(t)))return e;var a=yt(e),o=yt(t),c=Kl(a,o),d=Yl(a,o)+1;return Jt(a,c,d).join("")}function lT(e,t,n){if(e=de(e),e&&(n||t===r))return e.slice(0,Zl(e)+1);if(!e||!(t=nt(t)))return e;var a=yt(e),o=Yl(a,yt(t))+1;return Jt(a,0,o).join("")}function cT(e,t,n){if(e=de(e),e&&(n||t===r))return e.replace(Ts,"");if(!e||!(t=nt(t)))return e;var a=yt(e),o=Kl(a,yt(t));return Jt(a,o).join("")}function fT(e,t){var n=re,a=Ue;if(Ae(t)){var o="separator"in t?t.separator:o;n="length"in t?Q(t.length):n,a="omission"in t?nt(t.omission):a}e=de(e);var c=e.length;if(Tn(e)){var d=yt(e);c=d.length}if(n>=c)return e;var p=n-Cn(a);if(p<1)return a;var _=d?Jt(d,0,p).join(""):e.slice(0,p);if(o===r)return _+a;if(d&&(p+=_.length-p),Ca(o)){if(e.slice(p).search(o)){var S,x=_;for(o.global||(o=Hs(o.source,de(hl.exec(o))+"g")),o.lastIndex=0;S=o.exec(x);)var O=S.index;_=_.slice(0,O===r?p:O)}}else if(e.indexOf(nt(o),p)!=p){var N=_.lastIndexOf(o);N>-1&&(_=_.slice(0,N))}return _+a}function hT(e){return e=de(e),e&&x1.test(e)?e.replace(ll,Uy):e}var dT=In(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Oa=Fc("toUpperCase");function Nf(e,t,n){return e=de(e),t=n?r:t,t===r?Fy(e)?Gy(e):Ey(e):e.match(t)||[]}var Ff=ie(function(e,t){try{return et(e,r,t)}catch(n){return Ta(n)?n:new q(n)}}),pT=Bt(function(e,t){return lt(t,function(n){n=Lt(n),Nt(e,n,xa(e[n],e))}),e});function gT(e){var t=e==null?0:e.length,n=G();return e=t?Se(e,function(a){if(typeof a[1]!="function")throw new ct(g);return[n(a[0]),a[1]]}):[],ie(function(a){for(var o=-1;++o<t;){var c=e[o];if(et(c[0],this,a))return et(c[1],this,a)}})}function vT(e){return Uw(ht(e,T))}function Ra(e){return function(){return e}}function _T(e,t){return e==null||e!==e?t:e}var mT=Wc(),yT=Wc(!0);function Je(e){return e}function Ma(e){return pc(typeof e=="function"?e:ht(e,T))}function wT(e){return vc(ht(e,T))}function bT(e,t){return _c(e,ht(t,T))}var ST=ie(function(e,t){return function(n){return nr(n,e,t)}}),xT=ie(function(e,t){return function(n){return nr(e,n,t)}});function Da(e,t,n){var a=Fe(t),o=qr(t,a);n==null&&!(Ae(t)&&(o.length||!a.length))&&(n=t,t=e,e=this,o=qr(t,Fe(t)));var c=!(Ae(n)&&"chain"in n)||!!n.chain,d=$t(e);return lt(o,function(p){var _=t[p];e[p]=_,d&&(e.prototype[p]=function(){var S=this.__chain__;if(c||S){var x=e(this.__wrapped__),O=x.__actions__=Xe(this.__actions__);return O.push({func:_,args:arguments,thisArg:e}),x.__chain__=S,x}return _.apply(e,Gt([this.value()],arguments))})}),e}function AT(){return We._===this&&(We._=Jy),this}function Ia(){}function TT(e){return e=Q(e),ie(function(t){return mc(t,e)})}var CT=ca(Se),ET=ca($l),LT=ca(Ns);function Bf(e){return _a(e)?Fs(Lt(e)):ib(e)}function OT(e){return function(t){return e==null?r:ln(e,t)}}var RT=kc(),MT=kc(!0);function Pa(){return[]}function Na(){return!1}function DT(){return{}}function IT(){return""}function PT(){return!0}function NT(e,t){if(e=Q(e),e<1||e>z)return[];var n=fe,a=He(e,fe);t=G(t),e-=fe;for(var o=$s(a,t);++n<e;)t(n);return o}function FT(e){return V(e)?Se(e,Lt):rt(e)?[e]:Xe(nf(de(e)))}function BT(e){var t=++Zy;return de(e)+t}var WT=ri(function(e,t){return e+t},0),$T=fa("ceil"),kT=ri(function(e,t){return e/t},1),UT=fa("floor");function HT(e){return e&&e.length?Jr(e,Je,Js):r}function zT(e,t){return e&&e.length?Jr(e,G(t,2),Js):r}function GT(e){return Hl(e,Je)}function KT(e,t){return Hl(e,G(t,2))}function YT(e){return e&&e.length?Jr(e,Je,ea):r}function XT(e,t){return e&&e.length?Jr(e,G(t,2),ea):r}var ZT=ri(function(e,t){return e*t},1),jT=fa("round"),JT=ri(function(e,t){return e-t},0);function qT(e){return e&&e.length?Ws(e,Je):0}function VT(e,t){return e&&e.length?Ws(e,G(t,2)):0}return l.after=wx,l.ary=pf,l.assign=oA,l.assignIn=Lf,l.assignInWith=vi,l.assignWith=uA,l.at=lA,l.before=gf,l.bind=xa,l.bindAll=pT,l.bindKey=vf,l.castArray=Dx,l.chain=ff,l.chunk=Ub,l.compact=Hb,l.concat=zb,l.cond=gT,l.conforms=vT,l.constant=Ra,l.countBy=qS,l.create=cA,l.curry=_f,l.curryRight=mf,l.debounce=yf,l.defaults=fA,l.defaultsDeep=hA,l.defer=bx,l.delay=Sx,l.difference=Gb,l.differenceBy=Kb,l.differenceWith=Yb,l.drop=Xb,l.dropRight=Zb,l.dropRightWhile=jb,l.dropWhile=Jb,l.fill=qb,l.filter=QS,l.flatMap=nx,l.flatMapDeep=rx,l.flatMapDepth=ix,l.flatten=of,l.flattenDeep=Vb,l.flattenDepth=Qb,l.flip=xx,l.flow=mT,l.flowRight=yT,l.fromPairs=eS,l.functions=yA,l.functionsIn=wA,l.groupBy=sx,l.initial=nS,l.intersection=rS,l.intersectionBy=iS,l.intersectionWith=sS,l.invert=SA,l.invertBy=xA,l.invokeMap=ox,l.iteratee=Ma,l.keyBy=ux,l.keys=Fe,l.keysIn=je,l.map=ci,l.mapKeys=TA,l.mapValues=CA,l.matches=wT,l.matchesProperty=bT,l.memoize=hi,l.merge=EA,l.mergeWith=Of,l.method=ST,l.methodOf=xT,l.mixin=Da,l.negate=di,l.nthArg=TT,l.omit=LA,l.omitBy=OA,l.once=Ax,l.orderBy=lx,l.over=CT,l.overArgs=Tx,l.overEvery=ET,l.overSome=LT,l.partial=Aa,l.partialRight=wf,l.partition=cx,l.pick=RA,l.pickBy=Rf,l.property=Bf,l.propertyOf=OT,l.pull=lS,l.pullAll=lf,l.pullAllBy=cS,l.pullAllWith=fS,l.pullAt=hS,l.range=RT,l.rangeRight=MT,l.rearg=Cx,l.reject=dx,l.remove=dS,l.rest=Ex,l.reverse=ba,l.sampleSize=gx,l.set=DA,l.setWith=IA,l.shuffle=vx,l.slice=pS,l.sortBy=yx,l.sortedUniq=bS,l.sortedUniqBy=SS,l.split=nT,l.spread=Lx,l.tail=xS,l.take=AS,l.takeRight=TS,l.takeRightWhile=CS,l.takeWhile=ES,l.tap=HS,l.throttle=Ox,l.thru=li,l.toArray=Tf,l.toPairs=Mf,l.toPairsIn=Df,l.toPath=FT,l.toPlainObject=Ef,l.transform=PA,l.unary=Rx,l.union=LS,l.unionBy=OS,l.unionWith=RS,l.uniq=MS,l.uniqBy=DS,l.uniqWith=IS,l.unset=NA,l.unzip=Sa,l.unzipWith=cf,l.update=FA,l.updateWith=BA,l.values=Fn,l.valuesIn=WA,l.without=PS,l.words=Nf,l.wrap=Mx,l.xor=NS,l.xorBy=FS,l.xorWith=BS,l.zip=WS,l.zipObject=$S,l.zipObjectDeep=kS,l.zipWith=US,l.entries=Mf,l.entriesIn=Df,l.extend=Lf,l.extendWith=vi,Da(l,l),l.add=WT,l.attempt=Ff,l.camelCase=HA,l.capitalize=If,l.ceil=$T,l.clamp=$A,l.clone=Ix,l.cloneDeep=Nx,l.cloneDeepWith=Fx,l.cloneWith=Px,l.conformsTo=Bx,l.deburr=Pf,l.defaultTo=_T,l.divide=kT,l.endsWith=zA,l.eq=bt,l.escape=GA,l.escapeRegExp=KA,l.every=VS,l.find=ex,l.findIndex=sf,l.findKey=dA,l.findLast=tx,l.findLastIndex=af,l.findLastKey=pA,l.floor=UT,l.forEach=hf,l.forEachRight=df,l.forIn=gA,l.forInRight=vA,l.forOwn=_A,l.forOwnRight=mA,l.get=Ea,l.gt=Wx,l.gte=$x,l.has=bA,l.hasIn=La,l.head=uf,l.identity=Je,l.includes=ax,l.indexOf=tS,l.inRange=kA,l.invoke=AA,l.isArguments=hn,l.isArray=V,l.isArrayBuffer=kx,l.isArrayLike=Ze,l.isArrayLikeObject=Re,l.isBoolean=Ux,l.isBuffer=qt,l.isDate=Hx,l.isElement=zx,l.isEmpty=Gx,l.isEqual=Kx,l.isEqualWith=Yx,l.isError=Ta,l.isFinite=Xx,l.isFunction=$t,l.isInteger=bf,l.isLength=pi,l.isMap=Sf,l.isMatch=Zx,l.isMatchWith=jx,l.isNaN=Jx,l.isNative=qx,l.isNil=Qx,l.isNull=Vx,l.isNumber=xf,l.isObject=Ae,l.isObjectLike=Le,l.isPlainObject=ur,l.isRegExp=Ca,l.isSafeInteger=eA,l.isSet=Af,l.isString=gi,l.isSymbol=rt,l.isTypedArray=Nn,l.isUndefined=tA,l.isWeakMap=nA,l.isWeakSet=rA,l.join=aS,l.kebabCase=YA,l.last=pt,l.lastIndexOf=oS,l.lowerCase=XA,l.lowerFirst=ZA,l.lt=iA,l.lte=sA,l.max=HT,l.maxBy=zT,l.mean=GT,l.meanBy=KT,l.min=YT,l.minBy=XT,l.stubArray=Pa,l.stubFalse=Na,l.stubObject=DT,l.stubString=IT,l.stubTrue=PT,l.multiply=ZT,l.nth=uS,l.noConflict=AT,l.noop=Ia,l.now=fi,l.pad=jA,l.padEnd=JA,l.padStart=qA,l.parseInt=VA,l.random=UA,l.reduce=fx,l.reduceRight=hx,l.repeat=QA,l.replace=eT,l.result=MA,l.round=jT,l.runInContext=v,l.sample=px,l.size=_x,l.snakeCase=tT,l.some=mx,l.sortedIndex=gS,l.sortedIndexBy=vS,l.sortedIndexOf=_S,l.sortedLastIndex=mS,l.sortedLastIndexBy=yS,l.sortedLastIndexOf=wS,l.startCase=rT,l.startsWith=iT,l.subtract=JT,l.sum=qT,l.sumBy=VT,l.template=sT,l.times=NT,l.toFinite=kt,l.toInteger=Q,l.toLength=Cf,l.toLower=aT,l.toNumber=gt,l.toSafeInteger=aA,l.toString=de,l.toUpper=oT,l.trim=uT,l.trimEnd=lT,l.trimStart=cT,l.truncate=fT,l.unescape=hT,l.uniqueId=BT,l.upperCase=dT,l.upperFirst=Oa,l.each=hf,l.eachRight=df,l.first=uf,Da(l,function(){var e={};return Ct(l,function(t,n){ge.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=u,lt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),lt(["drop","take"],function(e,t){ue.prototype[e]=function(n){n=n===r?1:Pe(Q(n),0);var a=this.__filtered__&&!t?new ue(this):this.clone();return a.__filtered__?a.__takeCount__=He(n,a.__takeCount__):a.__views__.push({size:He(n,fe),type:e+(a.__dir__<0?"Right":"")}),a},ue.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),lt(["filter","map","takeWhile"],function(e,t){var n=t+1,a=n==U||n==Z;ue.prototype[e]=function(o){var c=this.clone();return c.__iteratees__.push({iteratee:G(o,3),type:n}),c.__filtered__=c.__filtered__||a,c}}),lt(["head","last"],function(e,t){var n="take"+(t?"Right":"");ue.prototype[e]=function(){return this[n](1).value()[0]}}),lt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");ue.prototype[e]=function(){return this.__filtered__?new ue(this):this[n](1)}}),ue.prototype.compact=function(){return this.filter(Je)},ue.prototype.find=function(e){return this.filter(e).head()},ue.prototype.findLast=function(e){return this.reverse().find(e)},ue.prototype.invokeMap=ie(function(e,t){return typeof e=="function"?new ue(this):this.map(function(n){return nr(n,e,t)})}),ue.prototype.reject=function(e){return this.filter(di(G(e)))},ue.prototype.slice=function(e,t){e=Q(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ue(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(t=Q(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},ue.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ue.prototype.toArray=function(){return this.take(fe)},Ct(ue.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),a=/^(?:head|last)$/.test(t),o=l[a?"take"+(t=="last"?"Right":""):t],c=a||/^find/.test(t);!o||(l.prototype[t]=function(){var d=this.__wrapped__,p=a?[1]:arguments,_=d instanceof ue,S=p[0],x=_||V(d),O=function(se){var ce=o.apply(l,Gt([se],p));return a&&N?ce[0]:ce};x&&n&&typeof S=="function"&&S.length!=1&&(_=x=!1);var N=this.__chain__,H=!!this.__actions__.length,K=c&&!N,ee=_&&!H;if(!c&&x){d=ee?d:new ue(this);var Y=e.apply(d,p);return Y.__actions__.push({func:li,args:[O],thisArg:r}),new ft(Y,N)}return K&&ee?e.apply(this,p):(Y=this.thru(O),K?a?Y.value()[0]:Y.value():Y)})}),lt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Nr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",a=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var o=arguments;if(a&&!this.__chain__){var c=this.value();return t.apply(V(c)?c:[],o)}return this[n](function(d){return t.apply(V(d)?d:[],o)})}}),Ct(ue.prototype,function(e,t){var n=l[t];if(n){var a=n.name+"";ge.call(Rn,a)||(Rn[a]=[]),Rn[a].push({name:t,func:n})}}),Rn[ni(r,W).name]=[{name:"wrapper",func:r}],ue.prototype.clone=hw,ue.prototype.reverse=dw,ue.prototype.value=pw,l.prototype.at=zS,l.prototype.chain=GS,l.prototype.commit=KS,l.prototype.next=YS,l.prototype.plant=ZS,l.prototype.reverse=jS,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=JS,l.prototype.first=l.prototype.head,jn&&(l.prototype[jn]=XS),l},En=Ky();rn?((rn.exports=En)._=En,Ms._=En):We._=En}).call(xt)})(Qi,Qi.exports);function N0(i){if(!i)return"00:00";const s=Math.trunc(i/3600);i-=s*3600;const r=Math.trunc(i/60);i-=r*60;const f=[s,r,i];return f[0]===0&&f.shift(),f.map(g=>Qi.exports.padStart(g.toString(),2,"0")).join(":")}function es(i){if(!i)return"";if(i<=9999)return i.toString();let s=(i/1e4).toFixed(1);return s=s.replace(/\.0$/,""),`${s}\u4E07`}function F0({className:i,item:s,pvideo:r}){var pe;const u=D.useRef(null),f=zm(u.current),{elementW:h,elementH:g,elementX:m}=f;let w=0,A=0;h&&m&&!isNaN(m)&&!isNaN(h)&&(w=m/h,w<0&&(w=0),w>1&&(w=1),A=Math.floor((s.duration||0)*w));let R=D.useMemo(()=>{const re=(r==null?void 0:r.index)||[];let Ue=W0(re,A);return Ue!==-1?Ue:A>re[re.length-1]?(Ue=Math.floor(re.length*w)-1,Ue<0&&(Ue=0),Ue):0},[r,A]);const{img_x_len:T,img_y_len:E,img_x_size:L,img_y_size:M}=r,I=E*T;R=R+1;const F=Math.floor(R/I),W=R-F*I,le=((pe=r.image)==null?void 0:pe[F])||"",ae=Math.floor(W/T)+1,ne=W-(ae-1)*T,J=h*T,we=g*E;let xe=(ae-1)*g,Be=(ne-1)*h;return C("div",{ref:u,className:i,style:{backgroundColor:"black",backgroundImage:`url(${le})`,backgroundPosition:`-${Be}px -${xe}px`,backgroundSize:`${J}px ${we}px`},children:C(B0,{progress:w})})}function B0({progress:i}){return C("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:C("div",{className:"bar",style:{backgroundColor:"#fa6a9d",height:"100%",width:`${i*100}%`}})})}function W0(i,s){var m;let r=0,u=i.length-1,f=-1;for(;r<=u;){const w=Math.floor((r+u)/2),A=i[w];if(s===A)return w;A<s?(r=w+1,f=w):u=w-1}if(f===-1)return-1;const h=i[f],g=(m=i[f+1])!=null?m:0;return h<s&&s<g?f:-1}function $0(){var s;const i=(s=document.cookie.match(/bili_jct=([0-9a-fA-F]{32})/))==null?void 0:s[1];if(!i)throw Ht("\u627E\u4E0D\u5230 csrf token, \u8BF7\u68C0\u67E5\u662F\u5426\u767B\u5F55"),new Error("\u627E\u4E0D\u5230 csrf token, \u8BF7\u68C0\u67E5\u662F\u5426\u767B\u5F55");return i}const ts=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,fu=typeof AbortController=="function",hu=fu?AbortController:class{constructor(){this.signal=new du}abort(){this.signal.dispatchEvent("abort")}},du=fu?AbortSignal:class{constructor(){this.aborted=!1,this._listeners=[]}dispatchEvent(s){if(s==="abort"){this.aborted=!0;const r={type:s,target:this};this.onabort(r),this._listeners.forEach(u=>u(r),this)}}onabort(){}addEventListener(s,r){s==="abort"&&this._listeners.push(r)}removeEventListener(s,r){s==="abort"&&(this._listeners=this._listeners.filter(u=>u!==r))}},ns=new Set,rs=(i,s)=>{const r=`LRU_CACHE_OPTION_${i}`;Tr(r)&&ss(r,`${i} option`,`options.${s}`,tn)},is=(i,s)=>{const r=`LRU_CACHE_METHOD_${i}`;if(Tr(r)){const{prototype:u}=tn,{get:f}=Object.getOwnPropertyDescriptor(u,i);ss(r,`${i} method`,`cache.${s}()`,f)}},k0=(i,s)=>{const r=`LRU_CACHE_PROPERTY_${i}`;if(Tr(r)){const{prototype:u}=tn,{get:f}=Object.getOwnPropertyDescriptor(u,i);ss(r,`${i} property`,`cache.${s}`,f)}},pu=(...i)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(...i):console.error(...i)},Tr=i=>!ns.has(i),ss=(i,s,r,u)=>{ns.add(i);const f=`The ${s} is deprecated. Please use ${r} instead.`;pu(f,"DeprecationWarning",i,u)},en=i=>i&&i===Math.floor(i)&&i>0&&isFinite(i),gu=i=>en(i)?i<=Math.pow(2,8)?Uint8Array:i<=Math.pow(2,16)?Uint16Array:i<=Math.pow(2,32)?Uint32Array:i<=Number.MAX_SAFE_INTEGER?Cr:null:null;class Cr extends Array{constructor(s){super(s),this.fill(0)}}class U0{constructor(s){if(s===0)return[];const r=gu(s);this.heap=new r(s),this.length=0}push(s){this.heap[this.length++]=s}pop(){return this.heap[--this.length]}}class tn{constructor(s={}){const{max:r=0,ttl:u,ttlResolution:f=1,ttlAutopurge:h,updateAgeOnGet:g,updateAgeOnHas:m,allowStale:w,dispose:A,disposeAfter:R,noDisposeOnSet:T,noUpdateTTL:E,maxSize:L=0,sizeCalculation:M,fetchMethod:I,noDeleteOnFetchRejection:F}=s,{length:W,maxAge:le,stale:ae}=s instanceof tn?{}:s;if(r!==0&&!en(r))throw new TypeError("max option must be a nonnegative integer");const ne=r?gu(r):Array;if(!ne)throw new Error("invalid max value: "+r);if(this.max=r,this.maxSize=L,this.sizeCalculation=M||W,this.sizeCalculation){if(!this.maxSize)throw new TypeError("cannot set sizeCalculation without setting maxSize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=I||null,this.fetchMethod&&typeof this.fetchMethod!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.keyMap=new Map,this.keyList=new Array(r).fill(null),this.valList=new Array(r).fill(null),this.next=new ne(r),this.prev=new ne(r),this.head=0,this.tail=0,this.free=new U0(r),this.initialFill=1,this.size=0,typeof A=="function"&&(this.dispose=A),typeof R=="function"?(this.disposeAfter=R,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!T,this.noUpdateTTL=!!E,this.noDeleteOnFetchRejection=!!F,this.maxSize!==0){if(!en(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!w||!!ae,this.updateAgeOnGet=!!g,this.updateAgeOnHas=!!m,this.ttlResolution=en(f)||f===0?f:1,this.ttlAutopurge=!!h,this.ttl=u||le||0,this.ttl){if(!en(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(this.max===0&&this.ttl===0&&this.maxSize===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const J="LRU_CACHE_UNBOUNDED";Tr(J)&&(ns.add(J),pu("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",J,tn))}ae&&rs("stale","allowStale"),le&&rs("maxAge","ttl"),W&&rs("length","sizeCalculation")}getRemainingTTL(s){return this.has(s,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new Cr(this.max),this.starts=new Cr(this.max),this.setItemTTL=(u,f)=>{if(this.starts[u]=f!==0?ts.now():0,this.ttls[u]=f,f!==0&&this.ttlAutopurge){const h=setTimeout(()=>{this.isStale(u)&&this.delete(this.keyList[u])},f+1);h.unref&&h.unref()}},this.updateItemAge=u=>{this.starts[u]=this.ttls[u]!==0?ts.now():0};let s=0;const r=()=>{const u=ts.now();if(this.ttlResolution>0){s=u;const f=setTimeout(()=>s=0,this.ttlResolution);f.unref&&f.unref()}return u};this.getRemainingTTL=u=>{const f=this.keyMap.get(u);return f===void 0?0:this.ttls[f]===0||this.starts[f]===0?1/0:this.starts[f]+this.ttls[f]-(s||r())},this.isStale=u=>this.ttls[u]!==0&&this.starts[u]!==0&&(s||r())-this.starts[u]>this.ttls[u]}updateItemAge(s){}setItemTTL(s,r){}isStale(s){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new Cr(this.max),this.removeItemSize=s=>this.calculatedSize-=this.sizes[s],this.requireSize=(s,r,u,f)=>{if(!en(u))if(f){if(typeof f!="function")throw new TypeError("sizeCalculation must be a function");if(u=f(r,s),!en(u))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer)");return u},this.addItemSize=(s,r,u,f)=>{this.sizes[s]=f;const h=this.maxSize-this.sizes[s];for(;this.calculatedSize>h;)this.evict(!0);this.calculatedSize+=this.sizes[s]}}removeItemSize(s){}addItemSize(s,r,u,f){}requireSize(s,r,u,f){if(u||f)throw new TypeError("cannot set size without setting maxSize on cache")}*indexes({allowStale:s=this.allowStale}={}){if(this.size)for(let r=this.tail;!(!this.isValidIndex(r)||((s||!this.isStale(r))&&(yield r),r===this.head));)r=this.prev[r]}*rindexes({allowStale:s=this.allowStale}={}){if(this.size)for(let r=this.head;!(!this.isValidIndex(r)||((s||!this.isStale(r))&&(yield r),r===this.tail));)r=this.next[r]}isValidIndex(s){return this.keyMap.get(this.keyList[s])===s}*entries(){for(const s of this.indexes())yield[this.keyList[s],this.valList[s]]}*rentries(){for(const s of this.rindexes())yield[this.keyList[s],this.valList[s]]}*keys(){for(const s of this.indexes())yield this.keyList[s]}*rkeys(){for(const s of this.rindexes())yield this.keyList[s]}*values(){for(const s of this.indexes())yield this.valList[s]}*rvalues(){for(const s of this.rindexes())yield this.valList[s]}[Symbol.iterator](){return this.entries()}find(s,r={}){for(const u of this.indexes())if(s(this.valList[u],this.keyList[u],this))return this.get(this.keyList[u],r)}forEach(s,r=this){for(const u of this.indexes())s.call(r,this.valList[u],this.keyList[u],this)}rforEach(s,r=this){for(const u of this.rindexes())s.call(r,this.valList[u],this.keyList[u],this)}get prune(){return is("prune","purgeStale"),this.purgeStale}purgeStale(){let s=!1;for(const r of this.rindexes({allowStale:!0}))this.isStale(r)&&(this.delete(this.keyList[r]),s=!0);return s}dump(){const s=[];for(const r of this.indexes()){const u=this.keyList[r],h={value:this.valList[r]};this.ttls&&(h.ttl=this.ttls[r]),this.sizes&&(h.size=this.sizes[r]),s.unshift([u,h])}return s}load(s){this.clear();for(const[r,u]of s)this.set(r,u.value,u)}dispose(s,r,u){}set(s,r,{ttl:u=this.ttl,noDisposeOnSet:f=this.noDisposeOnSet,size:h=0,sizeCalculation:g=this.sizeCalculation,noUpdateTTL:m=this.noUpdateTTL}={}){h=this.requireSize(s,r,h,g);let w=this.size===0?void 0:this.keyMap.get(s);if(w===void 0)w=this.newIndex(),this.keyList[w]=s,this.valList[w]=r,this.keyMap.set(s,w),this.next[this.tail]=w,this.prev[w]=this.tail,this.tail=w,this.size++,this.addItemSize(w,r,s,h),m=!1;else{const A=this.valList[w];r!==A&&(this.isBackgroundFetch(A)?A.__abortController.abort():f||(this.dispose(A,s,"set"),this.disposeAfter&&this.disposed.push([A,s,"set"])),this.removeItemSize(w),this.valList[w]=r,this.addItemSize(w,r,s,h)),this.moveToTail(w)}if(u!==0&&this.ttl===0&&!this.ttls&&this.initializeTTLTracking(),m||this.setItemTTL(w,u),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return this.size===0?this.tail:this.size===this.max&&this.max!==0?this.evict(!1):this.free.length!==0?this.free.pop():this.initialFill++}pop(){if(this.size){const s=this.valList[this.head];return this.evict(!0),s}}evict(s){const r=this.head,u=this.keyList[r],f=this.valList[r];return this.isBackgroundFetch(f)?f.__abortController.abort():(this.dispose(f,u,"evict"),this.disposeAfter&&this.disposed.push([f,u,"evict"])),this.removeItemSize(r),s&&(this.keyList[r]=null,this.valList[r]=null,this.free.push(r)),this.head=this.next[r],this.keyMap.delete(u),this.size--,r}has(s,{updateAgeOnHas:r=this.updateAgeOnHas}={}){const u=this.keyMap.get(s);return u!==void 0&&!this.isStale(u)?(r&&this.updateItemAge(u),!0):!1}peek(s,{allowStale:r=this.allowStale}={}){const u=this.keyMap.get(s);if(u!==void 0&&(r||!this.isStale(u)))return this.valList[u]}backgroundFetch(s,r,u){const f=r===void 0?void 0:this.valList[r];if(this.isBackgroundFetch(f))return f;const h=new hu,g={signal:h.signal,options:u},m=T=>(h.signal.aborted||this.set(s,T,g.options),T),w=T=>{if(this.valList[r]===R&&(!u.noDeleteOnFetchRejection||R.__staleWhileFetching===void 0?this.delete(s):this.valList[r]=R.__staleWhileFetching),R.__returned===R)throw T},A=T=>T(this.fetchMethod(s,f,g)),R=new Promise(A).then(m,w);return R.__abortController=h,R.__staleWhileFetching=f,R.__returned=null,r===void 0?(this.set(s,R,g.options),r=this.keyMap.get(s)):this.valList[r]=R,R}isBackgroundFetch(s){return s&&typeof s=="object"&&typeof s.then=="function"&&Object.prototype.hasOwnProperty.call(s,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(s,"__returned")&&(s.__returned===s||s.__returned===null)}async fetch(s,{allowStale:r=this.allowStale,updateAgeOnGet:u=this.updateAgeOnGet,ttl:f=this.ttl,noDisposeOnSet:h=this.noDisposeOnSet,size:g=0,sizeCalculation:m=this.sizeCalculation,noUpdateTTL:w=this.noUpdateTTL,noDeleteOnFetchRejection:A=this.noDeleteOnFetchRejection}={}){if(!this.fetchMethod)return this.get(s,{allowStale:r,updateAgeOnGet:u});const R={allowStale:r,updateAgeOnGet:u,ttl:f,noDisposeOnSet:h,size:g,sizeCalculation:m,noUpdateTTL:w,noDeleteOnFetchRejection:A};let T=this.keyMap.get(s);if(T===void 0){const E=this.backgroundFetch(s,T,R);return E.__returned=E}else{const E=this.valList[T];if(this.isBackgroundFetch(E))return r&&E.__staleWhileFetching!==void 0?E.__staleWhileFetching:E.__returned=E;if(!this.isStale(T))return this.moveToTail(T),u&&this.updateItemAge(T),E;const L=this.backgroundFetch(s,T,R);return r&&L.__staleWhileFetching!==void 0?L.__staleWhileFetching:L.__returned=L}}get(s,{allowStale:r=this.allowStale,updateAgeOnGet:u=this.updateAgeOnGet}={}){const f=this.keyMap.get(s);if(f!==void 0){const h=this.valList[f],g=this.isBackgroundFetch(h);return this.isStale(f)?g?r?h.__staleWhileFetching:void 0:(this.delete(s),r?h:void 0):g?void 0:(this.moveToTail(f),u&&this.updateItemAge(f),h)}}connect(s,r){this.prev[r]=s,this.next[s]=r}moveToTail(s){s!==this.tail&&(s===this.head?this.head=this.next[s]:this.connect(this.prev[s],this.next[s]),this.connect(this.tail,s),this.tail=s)}get del(){return is("del","delete"),this.delete}delete(s){let r=!1;if(this.size!==0){const u=this.keyMap.get(s);if(u!==void 0)if(r=!0,this.size===1)this.clear();else{this.removeItemSize(u);const f=this.valList[u];this.isBackgroundFetch(f)?f.__abortController.abort():(this.dispose(f,s,"delete"),this.disposeAfter&&this.disposed.push([f,s,"delete"])),this.keyMap.delete(s),this.keyList[u]=null,this.valList[u]=null,u===this.tail?this.tail=this.prev[u]:u===this.head?this.head=this.next[u]:(this.next[this.prev[u]]=this.next[u],this.prev[this.next[u]]=this.prev[u]),this.size--,this.free.push(u)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return r}clear(){for(const s of this.rindexes({allowStale:!0})){const r=this.valList[s];if(this.isBackgroundFetch(r))r.__abortController.abort();else{const u=this.keyList[s];this.dispose(r,u,"delete"),this.disposeAfter&&this.disposed.push([r,u,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return is("reset","clear"),this.clear}get length(){return k0("length","size"),this.size}static get AbortController(){return hu}static get AbortSignal(){return du}}var H0=tn;async function z0(i){return(await ji.get("/pvideo",{params:{aid:i}})).data.data}async function G0(i){return[]}const as=new H0({max:200});async function K0(i){if(as.has(i))return as.get(i);const[s,r]=await Promise.all([z0(i),G0()]);return as.set(i,{pvideoData:s,dmData:r}),{pvideoData:s,dmData:r}}function vu(i){return async function(r){const u=new FormData;u.append("aid",r),u.append("csrf",$0());const h=(await ji.post("/x/v2/history/toview/"+i,u,{withCredentials:!0})).data;return(h==null?void 0:h.code)===0&&(h==null?void 0:h.message)==="0"}}const Y0=vu("add"),X0=vu("del"),_u=i=>{const s={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[i];return async function(r,u){var m;const h=(await Ji.get(eu+s,{params:{goto:r.goto,id:r.param,mid:r.mid,rid:r.tid,tag_id:(m=r.tag)==null?void 0:m.tag_id,reason_id:u,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return(h==null?void 0:h.code)===0&&(h==null?void 0:h.message)==="0"}},Z0=_u("dislike"),j0=_u("cancel"),mu="_bili-video-card_3h2r6_1",yu="_image-wrapper_3h2r6_4",wu="_preview-card-wrapper_3h2r6_8",bu="_watch-later_3h2r6_21",Su="_badge_3h2r6_24",xu="_recommend-reason_3h2r6_32",Au="_bangumi-desc_3h2r6_47",Tu="_btn-dislike_3h2r6_50",Cu="_btn-dislike-icon_3h2r6_65",Eu="_btn-dislike-tip_3h2r6_72",Lu="_disliked-wrapper_3h2r6_87",Ou="_dislike-content-cover_3h2r6_101",Ru="_dislike-content-cover-inner_3h2r6_107",J0="_dislike-icon_3h2r6_118",Mu="_dislike-reason_3h2r6_121",Du="_dislike-desc_3h2r6_125",Iu="_dislike-content-action_3h2r6_129";var aC={biliVideoCard:mu,imageWrapper:yu,previewCardWrapper:wu,watchLater:bu,badge:Su,recommendReason:xu,bangumiDesc:Au,btnDislike:Tu,btnDislikeIcon:Cu,btnDislikeTip:Eu,dislikedWrapper:Lu,dislikeContentCover:Ou,dislikeContentCoverInner:Ru,dislikeIcon:J0,dislikeReason:Mu,dislikeDesc:Du,dislikeContentAction:Iu};function q0(i){const s=br({data:Array.from(i||[]),has(r){return this.data.some(u=>u[0]===r)},set(r,u){const f=this.data.find(h=>h[0]===r);return f?f[1]=u:this.data.push([r,u]),this},get(r){var u;return(u=this.data.find(f=>f[0]===r))==null?void 0:u[1]},delete(r){const u=this.data.findIndex(f=>f[0]===r);return u===-1?!1:(this.data.splice(u,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON(){return{}},forEach(r){this.data.forEach(u=>{r(u[1],u[0],this)})},keys(){return this.data.map(r=>r[0]).values()},values(){return this.data.map(r=>r[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return"Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(s,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(s),s}const Pu="_modal-mask_vh629_1",Nu="_modal_vh629_1",Fu="_modal-header_vh629_23",Bu="_modal-title_vh629_30",Wu="_title-desc_vh629_35",$u="_btn-close_vh629_39",ku="_modal-body_vh629_57",Uu="_reason-list_vh629_62",Hu="_reason_vh629_62";var oC={modalMask:Pu,modal:Nu,modalHeader:Fu,modalTitle:Bu,titleDesc:Wu,btnClose:$u,modalBody:ku,reasonList:Uu,reason:Hu};const os=q0();function V0(){return Yi(os)}function Q0(i){const s=V0();if(!!i)return s.get(i)}function e1({show:i,onHide:s,item:r}){const[u,f]=D.useState(!1),h=ke(async(m,w)=>{if(!r)return;let A=!1,R=null;try{f(!0),A=await Z0(r,m)}catch(T){R=T}finally{f(!1)}if(R)return console.error(R.stack||R),Vo();A?Ht("\u5DF2\u6807\u8BB0\u4E0D\u60F3\u770B"):Qo(),A&&(os.set(r.param,{id:m,name:w}),s())}),g=D.useMemo(()=>{var m;return[...(m=r==null?void 0:r.dislike_reasons)!=null?m:[],{reason_id:12,reason_name:"\u6B64\u7C7B\u5185\u5BB9\u8FC7\u591A"},{reason_id:13,reason_name:"\u63A8\u8350\u8FC7"}]},[r]);return te(cu,{show:i,onHide:s,clsModalMask:Pu,clsModal:Nu,hideWhenMaskOnClick:!0,children:[te("div",{className:Fu,children:[te("div",{className:Bu,children:["\u6211\u4E0D\u60F3\u770B",C("span",{className:Wu,children:"(\u9009\u62E9\u540E\u5C06\u51CF\u5C11\u76F8\u4F3C\u5185\u5BB9\u63A8\u8350)"})]}),C("div",{className:"space",style:{flex:1}}),te("button",{className:`primary-btn roll-btn ${$u}`,onClick:s,children:[C("svg",{style:{transform:"rotate(0deg)"},children:C("use",{xlinkHref:"#widget-close"})}),C("span",{children:"\u5173\u95ED"})]})]}),C("div",{className:ku,children:C("div",{className:Uu,children:g.map(m=>C("button",{className:Hu,"data-id":m.reason_id,onClick:()=>h(m.reason_id,m.reason_name),disabled:u,children:m.reason_name},m.reason_id))})})]})}let zu={show:!1,onHide:Gu,item:null};function Gu(){Ku({show:!1,item:null})}function Ku(i){Object.assign(zu,i),t1().render(C(e1,Bn(dn({},zu),{onHide:Gu})))}let us;function t1(){if(!us){const i=document.createElement("div");i.classList.add("show-dislike-container"),document.body.appendChild(i),us=Si(i)}return us}function n1(i){Ku({show:!0,item:i})}const r1=no().format("YYYY"),i1=i=>{if(!i)return"";const s=no.unix(i);return s.format("YYYY")===r1?s.format("M-D"):s.format("YY-M-D")},s1=i=>i.replace(/^http:\/\//,"https://"),ls=D.memo(function({style:s,className:r,item:u,loading:f}){f=f!=null?f:!Boolean(u);const h=te("div",{className:qe("bili-video-card__skeleton",{hide:!f}),children:[C("div",{className:"bili-video-card__skeleton--cover"}),C("div",{className:"bili-video-card__skeleton--info",children:te("div",{className:"bili-video-card__skeleton--right",children:[C("p",{className:"bili-video-card__skeleton--text"}),C("p",{className:"bili-video-card__skeleton--text short"}),C("p",{className:"bili-video-card__skeleton--light"})]})})]}),g=Q0(u==null?void 0:u.param);return te("div",{style:s,className:qe("bili-video-card",mu,r),"data-report":"partition_recommend.content",children:[h,!f&&u&&(g?C(a1,{item:u,dislikedReason:g}):C(o1,{item:u}))]})}),a1=D.memo(function({dislikedReason:s,item:r}){const u=ke(async()=>{if(!(s!=null&&s.id))return;let f=!1,h=null;try{f=await j0(r,s.id)}catch(g){h=g}if(h)return console.error(h.stack||h),Vo();f?Ht("\u5DF2\u64A4\u9500"):Qo(),f&&os.delete(r.param)});return te("div",{className:qe(Lu),children:[C("div",{className:Ou,children:te("div",{className:Ru,children:[C("div",{className:"icon"}),C("div",{className:Mu,children:s==null?void 0:s.name}),C("div",{className:Du,children:"\u5C06\u51CF\u5C11\u6B64\u7C7B\u5185\u5BB9\u63A8\u8350"})]})}),C("div",{className:Iu,children:C("button",{onClick:u,children:"\u64A4\u9500"})})]})}),o1=D.memo(function({item:s}){const r=D.useRef(null),u=Fi(r),f=D.useRef(null),h=Fi(f),[g,m]=D.useState(!1),{accessKey:w}=Xi(),A=Boolean(w),{param:R,title:T,cover:E,goto:L,play:M,like:I,coin:F,desc:W,danmaku:le,ctime:ae,duration:ne,name:J,face:we,mid:xe,favorite:Be,badge:pe,rcmd_reason:re}=s,Ue=D.useMemo(()=>i1(ae),[ae]),nn=D.useMemo(()=>s1(E),[E]),[X,U]=D.useState(null),[B,Z]=D.useState(!1),P=ke(async()=>{if(!X&&!B)try{Z(!0);const De=await K0(R);U(De)}finally{Z(!1)}});D.useEffect(()=>{u&&P()},[u]);let z=!1;const j=ke(async De=>{if(De.preventDefault(),z)return;z=!0;const Ee=g?X0:Y0;let Qe=!1;try{Qe=await Ee(R)}finally{z=!1}Qe&&m(Tt=>!Tt)}),oe=D.useRef(null),fe=Fi(oe),_e=ke(De=>{De.stopPropagation(),De.preventDefault(),n1(s)}),Ce=s.goto==="av"?`/video/av${R}`:s.uri,at=D.useMemo(()=>N0(ne),[ne]),Ne=D.useMemo(()=>es(M),[M]),ot=D.useMemo(()=>es(I),[I]),Rt=D.useMemo(()=>es(Be),[Be]);return te("div",{className:"bili-video-card__wrap __scale-wrap",children:[C("a",{href:Ce,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:te("div",{className:"bili-video-card__image __scale-player-wrap",ref:r,children:[te("div",{className:qe("bili-video-card__image--wrap",yu),children:[te("picture",{className:"v-img bili-video-card__cover",children:[C("source",{srcSet:`${nn}@672w_378h_1c.webp`,type:"image/webp"}),C("img",{src:`${nn}@672w_378h_1c.webp`,alt:T,loading:"lazy"})]}),u&&(X==null?void 0:X.pvideoData)&&C(F0,{className:wu,item:s,pvideo:X==null?void 0:X.pvideoData}),te("div",{className:`bili-watch-later ${bu}`,style:{display:u?"flex":"none"},ref:f,onClick:j,children:[C("svg",{className:"bili-watch-later__icon",children:C("use",{xlinkHref:g?"#widget-watch-save":"#widget-watch-later"})}),C("span",{className:"bili-watch-later__tip",style:{display:h?"block":"none"},children:g?"\u79FB\u9664":"\u7A0D\u540E\u518D\u770B"})]}),A&&te("div",{ref:oe,className:Tu,onClick:_e,style:{display:u?"flex":"none"},children:[C("svg",{className:Cu,children:C("use",{xlinkHref:"#widget-close"})}),C("span",{className:Eu,style:{display:fe?"block":"none"},children:"\u6211\u4E0D\u60F3\u770B"})]})]}),C("div",{className:"bili-video-card__mask",children:te("div",{className:"bili-video-card__stats",children:[te("div",{className:"bili-video-card__stats--left",children:[te("span",{className:"bili-video-card__stats--item",children:[C("svg",{className:"bili-video-card__stats--icon",children:C("use",{xlinkHref:"#widget-play-count"})}),C("span",{className:"bili-video-card__stats--text",children:Ne})]}),C("span",{className:"bili-video-card__stats--item",children:L==="av"?te(Ar,{children:[C("svg",{className:"bili-video-card__stats--icon",children:C("use",{xlinkHref:"#widget-agree"})}),C("span",{className:"bili-video-card__stats--text",children:ot})]}):te(Ar,{children:[C("svg",{className:"bili-video-card__stats--icon",children:C("use",{xlinkHref:"#widget-agree"})}),C("span",{className:"bili-video-card__stats--text",children:Rt})]})})]}),C("span",{className:"bili-video-card__stats__duration",children:at})]})})]})}),C("div",{className:"bili-video-card__info __scale-disable",children:te("div",{className:"bili-video-card__info--right",children:[C("a",{href:Ce,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:C("h3",{className:"bili-video-card__info--tit",title:T,children:T})}),te("p",{className:"bili-video-card__info--bottom",children:[L==="av"&&te("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${xe}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:[re!=null&&re.content?C("span",{className:xu,children:re.content}):C("svg",{className:"bili-video-card__info--owner__up",children:C("use",{xlinkHref:"#widget-up"})}),C("span",{className:"bili-video-card__info--author",children:J}),Ue&&te("span",{className:"bili-video-card__info--date",children:["\xB7 ",Ue]})]}),L==="bangumi"&&te("a",{className:"bili-video-card__info--owner",href:Ce,target:"_blank",children:[C("span",{className:Su,children:pe}),C("span",{className:Au,children:W})]})]})]})})]})}),Yu="_modal-mask_5dl20_1",Xu="_narrow-mode_5dl20_13",Zu="_modal_5dl20_1",ju="_modal-header_5dl20_32",Ju="_modal-title_5dl20_40",qu="_btn-refresh_5dl20_45",Vu="_btn-close_5dl20_46",Er="_modal-body_5dl20_62",u1="_list_5dl20_68",cs="_card_5dl20_71",fs="_active_5dl20_74",Qu="_video-card-list_5dl20_78",hs="_video-card-body_5dl20_1",el="_loader_5dl20_87",ds="_use-narrow-mode_5dl20_1";var uC={modalMask:Yu,narrowMode:Xu,modal:Zu,modalHeader:ju,modalTitle:Ju,btnRefresh:qu,btnClose:Vu,modalBody:Er,list:u1,card:cs,active:fs,videoCardList:Qu,videoCardBody:hs,loader:el,useNarrowMode:ds};function l1({show:i,refresh:s,minIndex:r=0,maxIndex:u}){const[f,h]=D.useState(null),g=ke(()=>{if(f===null)return!1;const I=document.querySelector(`${ps}.${fs}`),F=document.querySelector(`.${Er}`);if(!I||!F)return!1;const W=F.getBoundingClientRect(),le=I.getBoundingClientRect();return!(le.top-W.top<-(W.height+le.height)||le.top-W.top>W.height*2+le.height)}),m=ke((I,F)=>{if(!i)return;F==null||F.preventDefault();let W=g()?f+I:c1();W<r||W>u||(h(W),f1(W))}),w=D.useCallback(I=>{m(-1,I)},[]),A=D.useCallback(I=>{m(1,I)},[]);Qt("leftarrow",w),Qt("rightarrow",A);const R=D.useCallback(I=>{m(-il(),I)},[]),T=D.useCallback(I=>{m(il(),I)},[]);Qt("uparrow",R),Qt("downarrow",T);const E=ke(()=>{!f||!i||h1(f)}),L=ke(()=>{!i||h(null)});Qt("enter",E),Qt("esc",L);const M=ke(()=>{!i||s()});return Qt("r",M,{exactMatch:!0}),{activeIndex:f,clearActiveIndex:L}}function c1(){const i=document.querySelector(`.${Er}`);if(!i)return 0;const s=i.getBoundingClientRect(),r=tl();for(let u=0;u<r.length;u++)if(r[u].getBoundingClientRect().top>=s.top)return u;return 0}const ps=`#${hs} .${cs}`;function tl(){return[...document.querySelectorAll(ps)]}function nl(i){return tl()[i]}function f1(i){var r;const s=nl(i);(r=s==null?void 0:s.scrollIntoViewIfNeeded)==null||r.call(s,!1)}function h1(i){const s=nl(i);if(!s)return;const r=s.querySelector(".bili-video-card__wrap > a");r==null||r.click()}const rl=new Map;function il(){if(bn.useNarrowMode)return 2;let i=rl.get(window.innerWidth);if(i)return i;const s=document.querySelector(ps);if(!s)throw new Error("expect found first card");i=1;let r=s.getBoundingClientRect().top,u=s.nextElementSibling;for(;u&&u.getBoundingClientRect().top===r;)i++,u=u.nextElementSibling;return rl.set(window.innerWidth,i),i}const d1=D.memo(function({show:s,onHide:r}){const[u,f]=D.useState([]),[h,g]=D.useState(!1),m=D.useRef(null),w=ke(async()=>{m.current&&(m.current.scrollTop=0),await Ua(50);try{g(!0),M(),f(await qi(2)),M()}finally{g(!1)}}),A=ke(async I=>{const F=await qi(2);f(W=>[...W,...F])}),{useNarrowMode:R}=Xi(),T=D.useCallback(I=>{const F=I.target.checked;Zi({useNarrowMode:F})},[]),E=D.useMemo(()=>({[Xu]:R}),[R]),{activeIndex:L,clearActiveIndex:M}=l1({show:s,refresh:w,maxIndex:u.length-1});return te(cu,{show:s,onHide:r,clsModalMask:qe(Yu,E),clsModal:qe(Zu,E),children:[te("div",{className:ju,children:[C("div",{className:Ju,children:"\u63A8\u8350"}),C("div",{className:"space",style:{flex:1}}),te(iu,{children:[C("input",{type:"checkbox",id:ds,checked:R,onChange:T}),C("label",{htmlFor:ds,children:"\u542F\u7528\u7A84\u5C4F\u6A21\u5F0F"})]}),te("button",{className:`primary-btn roll-btn ${qu}`,onClick:w,children:[C("svg",{children:C("use",{xlinkHref:"#widget-roll"})}),C("span",{children:"\u6362\u4E00\u6362"})]}),te("button",{className:`primary-btn roll-btn ${Vu}`,onClick:r,children:[C("svg",{children:C("use",{xlinkHref:"#widget-close"})}),C("span",{children:"\u5173\u95ED"})]})]}),C("div",{className:Er,ref:m,children:C(Vi,{pageStart:0,loadMore:A,hasMore:!0,useWindow:!1,threshold:360,style:{minHeight:"100%"},loader:C("div",{className:el,children:"\u52A0\u8F7D\u4E2D..."},0),children:C("div",{className:`video-card-list is-full ${Qu}`,children:C("div",{id:hs,className:qe("video-card-body",E),children:u.map((I,F)=>C(ls,{loading:h,item:I,className:qe(cs,{[fs]:F===L})},I.uniqId))})})})})]})}),sl="_grid_p5dvw_1",al="_video-card-list_p5dvw_5";var fC={grid:sl,videoCardList:al,expandBtn:"_expand-btn_p5dvw_19",expanded:"_expanded_p5dvw_30"};function p1(){const i=D.useRef(null),{accessKey:s}=Xi(),r=ke(async(I=!1)=>{var W;await v0()&&((W=i.current)==null||W.set(!1))}),u=_0,f=ke(()=>{const I="https://github.com/indefined/UserScripts/tree/master/bilibiliHome#%E6%8E%88%E6%9D%83%E8%AF%B4%E6%98%8E";window.open(I,"_blank")}),[h,g]=D.useState([]),[m,w]=D.useState(!1),A=D.useMemo(()=>new Array(20).fill(0).map(()=>crypto.randomUUID()),[]),R=ke(async()=>{w(!0);try{const I=await w0();g(I)}finally{w(!1)}});_h(async()=>{R()});const[T,E]=D.useState(!1),L=D.useCallback(()=>{E(!0)},[]),M=D.useCallback(()=>{E(!1)},[]);return C("section",{className:qe("bili-grid no-margin",sl),"data-area":"\u63A8\u8350",children:te("div",{className:`video-card-list is-full ${al}`,children:[te("div",{className:"area-header",children:[te("div",{className:"left",children:[C("a",{id:"\u5F71\u89C6",className:"the-world area-anchor","data-id":"25"}),C("svg",{className:"icon",children:C("use",{xlinkHref:"#channel-cinephile"})}),C("a",{className:"title",href:"#",children:C("span",{children:"\u63A8\u8350"})})]}),te("div",{className:"right",children:[s?te(iu,{ref:i,children:[C("button",{className:"primary-btn roll-btn",onClick:f,children:C("span",{children:"access_key \u8BF4\u660E"})}),C("button",{className:"primary-btn roll-btn",onClick:()=>r(!0),children:C("span",{children:"\u91CD\u65B0\u83B7\u53D6 access_key"})}),C("button",{className:"primary-btn roll-btn",onClick:u,children:C("span",{children:"\u5220\u9664 access_key"})})]}):te(Ar,{children:[C("button",{className:"primary-btn roll-btn",onClick:f,children:C("span",{children:"access_key \u8BF4\u660E"})}),C("button",{className:"primary-btn roll-btn",onClick:r,children:C("span",{children:"\u83B7\u53D6 access_key"})})]}),te("button",{className:"primary-btn roll-btn",onClick:R,children:[C("svg",{style:{transform:"rotate(0deg)"},children:C("use",{xlinkHref:"#widget-roll"})}),C("span",{children:"\u6362\u4E00\u6362"})]}),te("button",{className:"primary-btn see-more",onClick:L,children:[C("span",{children:"\u67E5\u770B\u66F4\u591A"}),C("svg",{children:C("use",{xlinkHref:"#widget-arrow"})})]})]})]}),C(d1,{show:T,onHide:M}),C("div",{className:"video-card-body more-class1 more-class2",children:m?A.map(I=>C(ls,{},I)):h.map(I=>C(ls,{item:I},I.uniqId))})]})})}(function(){var s;if(location.href.startsWith("https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?"))return window.stop(),(s=window.top)==null?void 0:s.postMessage(location.href,"https://www.bilibili.com");if(location.pathname==="/")return g1()})();async function g1(){const i=Date.now(),s=10*1e3,r=()=>$n.default(".bili-layout > section.bili-grid").length>0;for(;!r()&&Date.now()-i<s;)await Ua(100);if(!r()){console.error("[bilibili-app-recommend]: init fail");return}const u=$n.default(".bili-layout > section.bili-grid").eq(0),f=$n.default("<section></section>");f.insertAfter(u);const h=f[0];Si(h).render(C(p1,{}))}})($,ReactDOM,React,axios,axiosGmxhrAdapter);