bilibili-app-recommend

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

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

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