bilibili-app-recommend

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

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

// ==UserScript==
// @name         bilibili-app-recommend
// @namespace    https://magicdawn.fun
// @version      0.1.1
// @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}._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_12oi8_1{position:fixed;left:0;top:0;right:0;bottom:0;background-color:#00000080;z-index:11000;display:flex;align-items:center;justify-content:center}._modal_12oi8_1{width:calc(100vw - 50px);height:calc(100vh - 50px);border:1px solid #fa6a9d;border-radius:10px;overflow:hidden;background-color:#fff;padding:0 15px 15px;display:flex;flex-direction:column}._modal_12oi8_1 ._modal-header_12oi8_24{padding-top:10px;padding-bottom:10px;border-bottom:none;display:flex;align-items:center}._modal_12oi8_1 ._modal-header_12oi8_24 ._modal-title_12oi8_31{font-size:1.5rem;margin-bottom:0;line-height:1.5}body.dark ._modal_12oi8_1 ._modal-header_12oi8_24 ._btn-refresh_12oi8_36,body.dark ._modal_12oi8_1 ._modal-header_12oi8_24 ._btn-close_12oi8_37{color:#eee!important;background-color:#333!important;border-color:transparent!important;height:auto;padding:8px 12px;line-height:16px;font-size:13px}._modal_12oi8_1 ._modal-header_12oi8_24 ._btn-close_12oi8_37{margin-left:10px}._modal_12oi8_1 ._modal-header_12oi8_24 ._btn-close_12oi8_37 svg{width:10px;height:10px}._modal_12oi8_1 ._modal-body_12oi8_53{padding-top:0;flex-grow:1;overflow-y:scroll}._list_12oi8_58,._card_12oi8_61{color:inherit}._video-card-list_12oi8_64.is-full .video-card-body.more-class1.more-class2>*{display:block!important}._loader_12oi8_67{text-align:center;line-height:60px;font-size:120%}._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 Lm=Object.defineProperty,Tm=Object.defineProperties;var Rm=Object.getOwnPropertyDescriptors;var Jr=Object.getOwnPropertySymbols;var jl=Object.prototype.hasOwnProperty,ef=Object.prototype.propertyIsEnumerable;var Xs=(Ee,be,P)=>be in Ee?Lm(Ee,be,{enumerable:!0,configurable:!0,writable:!0,value:P}):Ee[be]=P,Rn=(Ee,be)=>{for(var P in be||(be={}))jl.call(be,P)&&Xs(Ee,P,be[P]);if(Jr)for(var P of Jr(be))ef.call(be,P)&&Xs(Ee,P,be[P]);return Ee},jn=(Ee,be)=>Tm(Ee,Rm(be));var tf=(Ee,be)=>{var P={};for(var _t in Ee)jl.call(Ee,_t)&&be.indexOf(_t)<0&&(P[_t]=Ee[_t]);if(Ee!=null&&Jr)for(var _t of Jr(Ee))be.indexOf(_t)<0&&ef.call(Ee,_t)&&(P[_t]=Ee[_t]);return P};var Zs=(Ee,be,P)=>(Xs(Ee,typeof be!="symbol"?be+"":be,P),P);(function(Ee,be,P,_t,nf){"use strict";function Cn(u){return u&&typeof u=="object"&&"default"in u?u:{default:u}}var On=Cn(Ee),rf=Cn(be),Vr=Cn(P),Qr=Cn(_t),sf=Cn(nf),fn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},qr={exports:{}};const of=(u,o)=>Math.floor(Math.random()*(o-u+1)+u),Js=()=>{const u=new Error("Delay aborted");return u.name="AbortError",u},Vs=({clearTimeout:u,setTimeout:o,willResolve:i})=>(f,{value:h,signal:p}={})=>{if(p&&p.aborted)return Promise.reject(Js());let v,y,E;const C=u||clearTimeout,T=()=>{C(v),E(Js())},L=()=>{p&&p.removeEventListener("abort",T)},N=new Promise((R,F)=>{y=()=>{L(),i?R(h):F(h)},E=F,v=(o||setTimeout)(y,f)});return p&&p.addEventListener("abort",T,{once:!0}),N.clear=()=>{C(v),v=null,y()},N},Qs=u=>{const o=Vs(jn(Rn({},u),{willResolve:!0}));return o.reject=Vs(jn(Rn({},u),{willResolve:!1})),o.range=(i,f,h)=>o(of(i,f),h),o},jr=Qs();jr.createWithTimers=Qs,qr.exports=jr,qr.exports.default=jr;var qs=qr.exports,ei,uf=rf.default;ei=uf.createRoot;var js={exports:{}};/*!
  Copyright (c) 2018 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/(function(u){(function(){var o={}.hasOwnProperty;function i(){for(var f=[],h=0;h<arguments.length;h++){var p=arguments[h];if(!!p){var v=typeof p;if(v==="string"||v==="number")f.push(p);else if(Array.isArray(p)){if(p.length){var y=i.apply(null,p);y&&f.push(y)}}else if(v==="object")if(p.toString===Object.prototype.toString)for(var E in p)o.call(p,E)&&p[E]&&f.push(E);else f.push(p.toString())}}return f.join(" ")}u.exports?(i.default=i,u.exports=i):window.classNames=i})()})(js);var Ot=js.exports;function rt(u){var o=P.useRef(u);o.current=P.useMemo(function(){return u},[u]);var i=P.useRef();return i.current||(i.current=function(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];return o.current.apply(this,f)}),i.current}function eo(u,o){if(u===o)return!0;for(var i=0;i<u.length;i++)if(!Object.is(u[i],o[i]))return!1;return!0}function to(u){var o=P.useRef(u);return o.current=u,o}var af=function(o){var i=to(o);P.useEffect(function(){return function(){i.current()}},[])},no=af,lf=function(o){P.useEffect(function(){o==null||o()},[])},ff=lf,cf=globalThis&&globalThis.__read||function(u,o){var i=typeof Symbol=="function"&&u[Symbol.iterator];if(!i)return u;var f=i.call(u),h,p=[],v;try{for(;(o===void 0||o-- >0)&&!(h=f.next()).done;)p.push(h.value)}catch(y){v={error:y}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(v)throw v.error}}return p};function ro(u,o){u===void 0&&(u=!1);var i=cf(P.useState(u),2),f=i[0],h=i[1],p=P.useMemo(function(){var v=o===void 0?!u:o,y=function(){return h(function(N){return N===u?v:u})},E=function(N){return h(N)},C=function(){return h(u)},T=function(){return h(v)};return{toggle:y,set:E,setLeft:C,setRight:T}},[]);return[f,p]}var hf=globalThis&&globalThis.__read||function(u,o){var i=typeof Symbol=="function"&&u[Symbol.iterator];if(!i)return u;var f=i.call(u),h,p=[],v;try{for(;(o===void 0||o-- >0)&&!(h=f.next()).done;)p.push(h.value)}catch(y){v={error:y}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(v)throw v.error}}return p};function df(u){u===void 0&&(u=!1);var o=hf(ro(u),2),i=o[0],f=o[1],h=f.toggle,p=f.set,v=P.useMemo(function(){var y=function(){return p(!0)},E=function(){return p(!1)};return{toggle:h,set:function(T){return p(!!T)},setTrue:y,setFalse:E}},[]);return[i,v]}var pf=!!(typeof window!="undefined"&&window.document&&window.document.createElement),gf=pf;function ti(u,o){if(!!gf){if(!u)return o;var i;return typeof u=="function"?i=u():"current"in u?i=u.current:i=u,i}}var _f=function(o){var i=function(h,p,v){var y=P.useRef(!1),E=P.useRef([]),C=P.useRef([]),T=P.useRef();o(function(){var L,N=Array.isArray(v)?v:[v],R=N.map(function(F){return ti(F)});if(!y.current){y.current=!0,E.current=R,C.current=p,T.current=h();return}(R.length!==E.current.length||!eo(R,E.current)||!eo(p,C.current))&&((L=T.current)===null||L===void 0||L.call(T),E.current=R,C.current=p,T.current=h())}),no(function(){var L;(L=T.current)===null||L===void 0||L.call(T),y.current=!1})};return i},vf=_f,mf=vf(P.useEffect),wf=mf,io={exports:{}};(function(u,o){(function(i,f){u.exports=f()})(fn,function(){var i=1e3,f=6e4,h=36e5,p="millisecond",v="second",y="minute",E="hour",C="day",T="week",L="month",N="quarter",R="year",F="date",j="Invalid Date",Y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ne=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Le={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},ve=function(X,I,M){var K=String(X);return!K||K.length>=I?X:""+Array(I+1-K.length).join(M)+X},he={s:ve,z:function(X){var I=-X.utcOffset(),M=Math.abs(I),K=Math.floor(M/60),O=M%60;return(I<=0?"+":"-")+ve(K,2,"0")+":"+ve(O,2,"0")},m:function X(I,M){if(I.date()<M.date())return-X(M,I);var K=12*(M.year()-I.year())+(M.month()-I.month()),O=I.clone().add(K,L),k=M-O<0,G=I.clone().add(K+(k?-1:1),L);return+(-(K+(M-O)/(k?O-G:G-O))||0)},a:function(X){return X<0?Math.ceil(X)||0:Math.floor(X)},p:function(X){return{M:L,y:R,w:T,d:C,D:F,h:E,m:y,s:v,ms:p,Q:N}[X]||String(X||"").toLowerCase().replace(/s$/,"")},u:function(X){return X===void 0}},fe="en",Me={};Me[fe]=Le;var Be=function(X){return X instanceof Ie},Ge=function X(I,M,K){var O;if(!I)return fe;if(typeof I=="string"){var k=I.toLowerCase();Me[k]&&(O=k),M&&(Me[k]=M,O=k);var G=I.split("-");if(!O&&G.length>1)return X(G[0])}else{var oe=I.name;Me[oe]=I,O=oe}return!K&&O&&(fe=O),O||!K&&fe},de=function(X,I){if(Be(X))return X.clone();var M=typeof I=="object"?I:{};return M.date=X,M.args=arguments,new Ie(M)},ie=he;ie.l=Ge,ie.i=Be,ie.w=function(X,I){return de(X,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var Ie=function(){function X(M){this.$L=Ge(M.locale,null,!0),this.parse(M)}var I=X.prototype;return I.parse=function(M){this.$d=function(K){var O=K.date,k=K.utc;if(O===null)return new Date(NaN);if(ie.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var G=O.match(Y);if(G){var oe=G[2]-1||0,Q=(G[7]||"0").substring(0,3);return k?new Date(Date.UTC(G[1],oe,G[3]||1,G[4]||0,G[5]||0,G[6]||0,Q)):new Date(G[1],oe,G[3]||1,G[4]||0,G[5]||0,G[6]||0,Q)}}return new Date(O)}(M),this.$x=M.x||{},this.init()},I.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},I.$utils=function(){return ie},I.isValid=function(){return this.$d.toString()!==j},I.isSame=function(M,K){var O=de(M);return this.startOf(K)<=O&&O<=this.endOf(K)},I.isAfter=function(M,K){return de(M)<this.startOf(K)},I.isBefore=function(M,K){return this.endOf(K)<de(M)},I.$g=function(M,K,O){return ie.u(M)?this[K]:this.set(O,M)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(M,K){var O=this,k=!!ie.u(K)||K,G=ie.p(M),oe=function(Ke,xe){var ot=ie.w(O.$u?Date.UTC(O.$y,xe,Ke):new Date(O.$y,xe,Ke),O);return k?ot:ot.endOf(C)},Q=function(Ke,xe){return ie.w(O.toDate()[Ke].apply(O.toDate("s"),(k?[0,0,0,0]:[23,59,59,999]).slice(xe)),O)},pe=this.$W,Te=this.$M,it=this.$D,Ne="set"+(this.$u?"UTC":"");switch(G){case R:return k?oe(1,0):oe(31,11);case L:return k?oe(1,Te):oe(0,Te+1);case T:var st=this.$locale().weekStart||0,vt=(pe<st?pe+7:pe)-st;return oe(k?it-vt:it+(6-vt),Te);case C:case F:return Q(Ne+"Hours",0);case E:return Q(Ne+"Minutes",1);case y:return Q(Ne+"Seconds",2);case v:return Q(Ne+"Milliseconds",3);default:return this.clone()}},I.endOf=function(M){return this.startOf(M,!1)},I.$set=function(M,K){var O,k=ie.p(M),G="set"+(this.$u?"UTC":""),oe=(O={},O[C]=G+"Date",O[F]=G+"Date",O[L]=G+"Month",O[R]=G+"FullYear",O[E]=G+"Hours",O[y]=G+"Minutes",O[v]=G+"Seconds",O[p]=G+"Milliseconds",O)[k],Q=k===C?this.$D+(K-this.$W):K;if(k===L||k===R){var pe=this.clone().set(F,1);pe.$d[oe](Q),pe.init(),this.$d=pe.set(F,Math.min(this.$D,pe.daysInMonth())).$d}else oe&&this.$d[oe](Q);return this.init(),this},I.set=function(M,K){return this.clone().$set(M,K)},I.get=function(M){return this[ie.p(M)]()},I.add=function(M,K){var O,k=this;M=Number(M);var G=ie.p(K),oe=function(Te){var it=de(k);return ie.w(it.date(it.date()+Math.round(Te*M)),k)};if(G===L)return this.set(L,this.$M+M);if(G===R)return this.set(R,this.$y+M);if(G===C)return oe(1);if(G===T)return oe(7);var Q=(O={},O[y]=f,O[E]=h,O[v]=i,O)[G]||1,pe=this.$d.getTime()+M*Q;return ie.w(pe,this)},I.subtract=function(M,K){return this.add(-1*M,K)},I.format=function(M){var K=this,O=this.$locale();if(!this.isValid())return O.invalidDate||j;var k=M||"YYYY-MM-DDTHH:mm:ssZ",G=ie.z(this),oe=this.$H,Q=this.$m,pe=this.$M,Te=O.weekdays,it=O.months,Ne=function(xe,ot,Lt,mt){return xe&&(xe[ot]||xe(K,k))||Lt[ot].slice(0,mt)},st=function(xe){return ie.s(oe%12||12,xe,"0")},vt=O.meridiem||function(xe,ot,Lt){var mt=xe<12?"AM":"PM";return Lt?mt.toLowerCase():mt},Ke={YY:String(this.$y).slice(-2),YYYY:this.$y,M:pe+1,MM:ie.s(pe+1,2,"0"),MMM:Ne(O.monthsShort,pe,it,3),MMMM:Ne(it,pe),D:this.$D,DD:ie.s(this.$D,2,"0"),d:String(this.$W),dd:Ne(O.weekdaysMin,this.$W,Te,2),ddd:Ne(O.weekdaysShort,this.$W,Te,3),dddd:Te[this.$W],H:String(oe),HH:ie.s(oe,2,"0"),h:st(1),hh:st(2),a:vt(oe,Q,!0),A:vt(oe,Q,!1),m:String(Q),mm:ie.s(Q,2,"0"),s:String(this.$s),ss:ie.s(this.$s,2,"0"),SSS:ie.s(this.$ms,3,"0"),Z:G};return k.replace(ne,function(xe,ot){return ot||Ke[xe]||G.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(M,K,O){var k,G=ie.p(K),oe=de(M),Q=(oe.utcOffset()-this.utcOffset())*f,pe=this-oe,Te=ie.m(this,oe);return Te=(k={},k[R]=Te/12,k[L]=Te,k[N]=Te/3,k[T]=(pe-Q)/6048e5,k[C]=(pe-Q)/864e5,k[E]=pe/h,k[y]=pe/f,k[v]=pe/i,k)[G]||pe,O?Te:ie.a(Te)},I.daysInMonth=function(){return this.endOf(L).$D},I.$locale=function(){return Me[this.$L]},I.locale=function(M,K){if(!M)return this.$L;var O=this.clone(),k=Ge(M,K,!0);return k&&(O.$L=k),O},I.clone=function(){return ie.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},X}(),jt=Ie.prototype;return de.prototype=jt,[["$ms",p],["$s",v],["$m",y],["$H",E],["$W",C],["$M",L],["$y",R],["$D",F]].forEach(function(X){jt[X[1]]=function(I){return this.$g(I,X[0],X[1])}}),de.extend=function(X,I){return X.$i||(X(I,Ie,de),X.$i=!0),de},de.locale=Ge,de.isDayjs=Be,de.unix=function(X){return de(1e3*X)},de.en=Me[fe],de.Ls=Me,de.p={},de})})(io);var so=io.exports;function ni(u,o,i){i===void 0&&(i={});var f=to(o);wf(function(){var h=ti(i.target,window);if(!!(h!=null&&h.addEventListener)){var p=function(y){return f.current(y)};return h.addEventListener(u,p,{capture:i.capture,once:i.once,passive:i.passive}),function(){h.removeEventListener(u,p,{capture:i.capture})}}},[u,i.capture,i.once,i.passive],i.target)}var yf=globalThis&&globalThis.__read||function(u,o){var i=typeof Symbol=="function"&&u[Symbol.iterator];if(!i)return u;var f=i.call(u),h,p=[],v;try{for(;(o===void 0||o-- >0)&&!(h=f.next()).done;)p.push(h.value)}catch(y){v={error:y}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(v)throw v.error}}return p},ri=function(u,o){var i=o||{},f=i.onEnter,h=i.onLeave,p=yf(df(!1),2),v=p[0],y=p[1],E=y.setTrue,C=y.setFalse;return ni("mouseenter",function(){f==null||f(),E()},{target:u}),ni("mouseleave",function(){h==null||h(),C()},{target:u}),v},bf=globalThis&&globalThis.__read||function(u,o){var i=typeof Symbol=="function"&&u[Symbol.iterator];if(!i)return u;var f=i.call(u),h,p=[],v;try{for(;(o===void 0||o-- >0)&&!(h=f.next()).done;)p.push(h.value)}catch(y){v={error:y}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(v)throw v.error}}return p};function xf(u){var o=P.useRef(0),i=bf(P.useState(u),2),f=i[0],h=i[1],p=P.useCallback(function(v){cancelAnimationFrame(o.current),o.current=requestAnimationFrame(function(){h(v)})},[]);return no(function(){cancelAnimationFrame(o.current)}),[f,p]}var Sf=globalThis&&globalThis.__read||function(u,o){var i=typeof Symbol=="function"&&u[Symbol.iterator];if(!i)return u;var f=i.call(u),h,p=[],v;try{for(;(o===void 0||o-- >0)&&!(h=f.next()).done;)p.push(h.value)}catch(y){v={error:y}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(v)throw v.error}}return p},Af={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},Ef=function(u){var o=Sf(xf(Af),2),i=o[0],f=o[1];return ni("mousemove",function(h){var p=h.screenX,v=h.screenY,y=h.clientX,E=h.clientY,C=h.pageX,T=h.pageY,L={screenX:p,screenY:v,clientX:y,clientY:E,pageX:C,pageY:T,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},N=ti(u);if(N){var R=N.getBoundingClientRect(),F=R.left,j=R.top,Y=R.width,ne=R.height;L.elementPosX=F+window.pageXOffset,L.elementPosY=j+window.pageYOffset,L.elementX=C-L.elementPosX,L.elementY=T-L.elementPosY,L.elementW=Y,L.elementH=ne}f(L)},{target:document}),i},Lf=function(){var o=P.useRef(!1);return P.useEffect(function(){return o.current=!1,function(){o.current=!0}},[]),o},Tf=Lf,Rf=globalThis&&globalThis.__read||function(u,o){var i=typeof Symbol=="function"&&u[Symbol.iterator];if(!i)return u;var f=i.call(u),h,p=[],v;try{for(;(o===void 0||o-- >0)&&!(h=f.next()).done;)p.push(h.value)}catch(y){v={error:y}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(v)throw v.error}}return p};function Dt(u){var o=Tf(),i=Rf(P.useState(u),2),f=i[0],h=i[1],p=P.useCallback(function(v){o.current||h(v)},[]);return[f,p]}const ii=Symbol(),Cf=Symbol(),si=Symbol(),oi=Object.getPrototypeOf,ui=new WeakMap,oo=u=>u&&(ui.has(u)?ui.get(u):oi(u)===Object.prototype||oi(u)===Array.prototype),ai=u=>typeof u=="object"&&u!==null,Of=(u,o)=>{let i=!1;const f=(p,v,y)=>{if(!i){let E=p.a.get(u);E||(E=new Set,p.a.set(u,E)),y&&E.has(ii)||E.add(v)}},h={f:o,get(p,v){return v===si?u:(f(this,v),uo(p[v],this.a,this.c))},has(p,v){return v===Cf?(i=!0,this.a.delete(u),!0):(f(this,v),v in p)},getOwnPropertyDescriptor(p,v){return f(this,v,!0),Object.getOwnPropertyDescriptor(p,v)},ownKeys(p){return f(this,ii),Reflect.ownKeys(p)}};return o&&(h.set=h.deleteProperty=()=>!1),h},uo=(u,o,i)=>{if(!oo(u))return u;const f=u[si]||u,h=(v=>Object.isFrozen(v)||Object.values(Object.getOwnPropertyDescriptors(v)).some(y=>!y.writable))(f);let p=i&&i.get(f);return p&&p.f===h||(p=Of(f,h),p.p=new Proxy(h?(v=>{if(Array.isArray(v))return Array.from(v);const y=Object.getOwnPropertyDescriptors(v);return Object.values(y).forEach(E=>{E.configurable=!0}),Object.create(oi(v),y)})(f):f,p),i&&i.set(f,p)),p.a=o,p.c=i,p.p},Df=(u,o)=>{const i=Reflect.ownKeys(u),f=Reflect.ownKeys(o);return i.length!==f.length||i.some((h,p)=>h!==f[p])},ao=(u,o,i,f)=>{if(Object.is(u,o))return!1;if(!ai(u)||!ai(o))return!0;const h=i.get(u);if(!h)return!0;if(f){const v=f.get(u);if(v&&v.n===o)return v.g;f.set(u,{n:o,g:!1})}let p=null;for(const v of h){const y=v===ii?Df(u,o):ao(u[v],o[v],i,f);if(y!==!0&&y!==!1||(p=y),p)break}return p===null&&(p=!0),f&&f.set(u,{n:o,g:p}),p},Mf=u=>oo(u)&&u[si]||null,lo=(u,o)=>{ui.set(u,o)},If=(u,o)=>{const i=[],f=new WeakSet,h=(p,v)=>{if(f.has(p))return;ai(p)&&f.add(p);const y=o.get(p);y?y.forEach(E=>{h(p[E],v?[...v,E]:[E])}):v&&i.push(v)};return h(u),i};var fo={exports:{}},co={};/**
 * @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 cn=Vr.default;function Nf(u,o){return u===o&&(u!==0||1/u===1/o)||u!==u&&o!==o}var Pf=typeof Object.is=="function"?Object.is:Nf,Ff=cn.useState,Wf=cn.useEffect,Bf=cn.useLayoutEffect,kf=cn.useDebugValue;function Uf(u,o){var i=o(),f=Ff({inst:{value:i,getSnapshot:o}}),h=f[0].inst,p=f[1];return Bf(function(){h.value=i,h.getSnapshot=o,li(h)&&p({inst:h})},[u,i,o]),Wf(function(){return li(h)&&p({inst:h}),u(function(){li(h)&&p({inst:h})})},[u]),kf(i),i}function li(u){var o=u.getSnapshot;u=u.value;try{var i=o();return!Pf(u,i)}catch{return!0}}function zf(u,o){return o()}var Hf=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?zf:Uf;co.useSyncExternalStore=cn.useSyncExternalStore!==void 0?cn.useSyncExternalStore:Hf,fo.exports=co;var Yf=fo.exports;const Gf=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("VERSION"):Symbol(),Et=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("LISTENERS"):Symbol(),er=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("SNAPSHOT"):Symbol(),Kf=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("HANDLER"):Symbol(),Dn=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("PROMISE_RESULT"):Symbol(),ho=({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?Symbol("PROMISE_ERROR"):Symbol(),po=new WeakSet,fi=u=>typeof u=="object"&&u!==null,$f=u=>fi(u)&&!po.has(u)&&(Array.isArray(u)||!(Symbol.iterator in u))&&!(u instanceof WeakMap)&&!(u instanceof WeakSet)&&!(u instanceof Error)&&!(u instanceof Number)&&!(u instanceof Date)&&!(u instanceof String)&&!(u instanceof RegExp)&&!(u instanceof ArrayBuffer),go=new WeakMap;let _o=1;const vo=new WeakMap;function ci(u={}){if(!fi(u))throw new Error("object required");const o=go.get(u);if(o)return o;let i=_o;const f=new Set,h=(N,R=++_o)=>{i!==R&&(i=R,f.forEach(F=>F(N,R)))},p=new Map,v=N=>{let R=p.get(N);return R||(R=(F,j)=>{const Y=[...F];Y[1]=[N,...Y[1]],h(Y,j)},p.set(N,R)),R},y=N=>{const R=p.get(N);return p.delete(N),R},E=(N,R)=>{const F=vo.get(R);if((F==null?void 0:F[0])===i)return F[1];const j=Array.isArray(N)?[]:Object.create(Object.getPrototypeOf(N));return lo(j,!0),vo.set(R,[i,j]),Reflect.ownKeys(N).forEach(Y=>{const ne=Reflect.get(N,Y,R);if(po.has(ne))lo(ne,!1),j[Y]=ne;else if(ne instanceof Promise)if(Dn in ne)j[Y]=ne[Dn];else{const Le=ne[ho]||ne;Object.defineProperty(j,Y,{get(){if(Dn in ne)return ne[Dn];throw Le}})}else ne!=null&&ne[Et]?j[Y]=ne[er]:j[Y]=ne}),Object.freeze(j),j},C=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u)),T={get(N,R,F){return R===Gf?i:R===Et?f:R===er?E(N,F):R===Kf?T:Reflect.get(N,R,F)},deleteProperty(N,R){const F=Reflect.get(N,R),j=F==null?void 0:F[Et];j&&j.delete(y(R));const Y=Reflect.deleteProperty(N,R);return Y&&h(["delete",[R],F]),Y},is:Object.is,canProxy:$f,set(N,R,F,j){var Y;const ne=Reflect.has(N,R),Le=Reflect.get(N,R,j);if(ne&&this.is(Le,F))return!0;const ve=Le==null?void 0:Le[Et];ve&&ve.delete(y(R)),fi(F)&&(F=Mf(F)||F);let he;return(Y=Object.getOwnPropertyDescriptor(N,R))!=null&&Y.set?he=F:F instanceof Promise?he=F.then(fe=>(he[Dn]=fe,h(["resolve",[R],fe]),fe)).catch(fe=>{he[ho]=fe,h(["reject",[R],fe])}):F!=null&&F[Et]?(he=F,he[Et].add(v(R))):this.canProxy(F)?(he=ci(F),he[Et].add(v(R))):he=F,Reflect.set(N,R,he,j),h(["set",[R],F,Le]),!0}},L=new Proxy(C,T);return go.set(u,L),Reflect.ownKeys(u).forEach(N=>{const R=Object.getOwnPropertyDescriptor(u,N);R.get||R.set?Object.defineProperty(C,N,R):L[N]=u[N]}),L}function Xf(u,o,i){({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&!(u!=null&&u[Et])&&console.warn("Please use proxy object");let f;const h=[],p=v=>{if(h.push(v),i){o(h.splice(0));return}f||(f=Promise.resolve().then(()=>{f=void 0,o(h.splice(0))}))};return u[Et].add(p),()=>{u[Et].delete(p)}}function mo(u){return({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&!(u!=null&&u[er])&&console.warn("Please use proxy object"),u[er]}const{useSyncExternalStore:Zf}=Yf,Jf=(u,o)=>{const i=P.useRef();P.useEffect(()=>{i.current=If(u,o)}),P.useDebugValue(i.current)};function wo(u,o){const i=o==null?void 0:o.sync,f=P.useRef(),h=P.useRef();let p=!0;const v=Zf(P.useCallback(C=>{const T=Xf(u,C,i);return C(),T},[u,i]),()=>{const C=mo(u);try{if(!p&&f.current&&h.current&&!ao(f.current,C,h.current,new WeakMap))return f.current}catch{}return C},()=>mo(u));p=!1;const y=new WeakMap;P.useEffect(()=>{f.current=v,h.current=y}),({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&Jf(v,y);const E=P.useMemo(()=>new WeakMap,[]);return uo(v,y,E)}const Mn=ci({accessKey:""}),yo=function(){return wo(Mn)},bo="bilibili-app-recommend.config";function Vf(){const u=GM_getValue(bo);u&&typeof u=="object"&&Object.assign(Mn,u)}function Qf(){GM_setValue(bo,Mn)}function xo(u){Object.assign(Mn,u),Qf()}Vf();const So="_toast-container_9119l_1";var Om={toastContainer:So};function zt(u,o=2e3){const i=On.default(`<div class='${So}'>${u}</div>`);i.appendTo(document.body),setTimeout(()=>i.remove(),o)}async function qf(){var E,C;const o=(await Qr.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(!((E=o==null?void 0:o.data)!=null&&E.has_login))return{errmsg:"\u4F60\u5FC5\u987B\u767B\u5F55B\u7AD9\u4E4B\u540E\u624D\u80FD\u4F7F\u7528\u6388\u6743",json:o};if(!((C=o==null?void 0:o.data)!=null&&C.confirm_uri))return{errmsg:"\u65E0\u6CD5\u83B7\u5F97\u6388\u6743\u7F51\u5740",json:o};const i=o.data.confirm_uri;let f;const h=new Promise(T=>{window.addEventListener("message",L=>{if(L.origin!="https://www.mcbbs.net"||!L.data)return;const N=L.data.match(/access_key=([0-9a-z]{32})/);if(!N||!N[1])return T({errmsg:"\u6CA1\u6709\u83B7\u5F97\u5339\u914D\u7684\u5BC6\u94A5"});T(N[1])}),f=setTimeout(()=>{T({errmsg:"\u83B7\u53D6\u6388\u6743\u8D85\u65F6"})},5e3)}),p=On.default(`<iframe src='${i}' style="display: none;" />`);p.appendTo(document.body);function v(){p.remove(),f&&(clearTimeout(f),f=null)}const y=await h;return v(),y}async function jf(){const u=await qf();if(typeof u=="object"&&"errmsg"in u){zt(u.errmsg);return}const o=u;return xo({accessKey:o}),zt("\u83B7\u53D6\u6210\u529F"),o}function ec(){xo({accessKey:""}),zt("\u5DF2\u5220\u9664 access_key")}const tc="https://api.bilibili.com",Ao="https://app.bilibili.com",hi=Qr.default.create({baseURL:tc});hi.interceptors.request.use(function(u){var o;return(o=u.params)!=null&&o._||(u.params=jn(Rn({},u.params),{_:Date.now()})),u},function(u){return Promise.reject(u)});const di=Qr.default.create({adapter:sf.default});di.interceptors.request.use(function(u){return u.params=Rn({access_key:Mn.accessKey||""},u.params),u},function(u){return Promise.reject(u)});async function nc(){return(await di.get(Ao+"/x/feed/index",{params:{build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data.data}async function rc(){return pi(2)}async function pi(u){const o=new Array(u).fill(0).map(p=>nc());let f=(await Promise.all(o)).reduce((p,v)=>p.concat(v),[]);const h=new Set;return f=f.filter(p=>{const{param:v}=p;return h.has(v)?(console.log("[getRecommendTimes]: duplicate",p),!1):(h.add(v),!0)}),f}var Eo={exports:{}},ic="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",sc=ic,oc=sc;function Lo(){}function To(){}To.resetWarningCache=Lo;var uc=function(){function u(f,h,p,v,y,E){if(E!==oc){var C=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 C.name="Invariant Violation",C}}u.isRequired=u;function o(){return u}var i={array:u,bigint:u,bool:u,func:u,number:u,object:u,string:u,symbol:u,any:u,arrayOf:o,element:u,elementType:u,instanceOf:o,node:u,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:To,resetWarningCache:Lo};return i.PropTypes=i,i};Eo.exports=uc();var Ve=Eo.exports;class gi extends P.Component{constructor(o){super(o),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 o=this.getParentElement(this.scrollComponent);o.scrollTop=o.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let o=!1;const i={get passive(){o=!0}};try{document.addEventListener("test",null,i),document.removeEventListener("test",null,i)}catch{}return o}eventListenerOptions(){let o=this.props.useCapture;return this.isPassiveSupported()?o={useCapture:this.props.useCapture,passive:!0}:o={passive:!1},o}setDefaultLoader(o){this.defaultLoader=o}detachMousewheelListener(){let o=window;this.props.useWindow===!1&&(o=this.scrollComponent.parentNode),o.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let o=window;this.props.useWindow===!1&&(o=this.getParentElement(this.scrollComponent)),o.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),o.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(o){const i=this.props.getScrollParent&&this.props.getScrollParent();return i!=null?i:o&&o.parentNode}filterProps(o){return o}attachScrollListener(){const o=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!o)return;let i=window;this.props.useWindow===!1&&(i=o),i.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),i.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),i.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(o){o.deltaY===1&&!this.isPassiveSupported()&&o.preventDefault()}scrollListener(){const o=this.scrollComponent,i=window,f=this.getParentElement(o);let h;if(this.props.useWindow){const p=document.documentElement||document.body.parentNode||document.body,v=i.pageYOffset!==void 0?i.pageYOffset:p.scrollTop;this.props.isReverse?h=v:h=this.calculateOffset(o,v)}else this.props.isReverse?h=f.scrollTop:h=o.scrollHeight-f.scrollTop-f.clientHeight;h<Number(this.props.threshold)&&o&&o.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=f.scrollHeight,this.beforeScrollTop=f.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}calculateOffset(o,i){return o?this.calculateTopPosition(o)+(o.offsetHeight-i-window.innerHeight):0}calculateTopPosition(o){return o?o.offsetTop+this.calculateTopPosition(o.offsetParent):0}render(){const ne=this.filterProps(this.props),{children:i,element:f,hasMore:h,initialLoad:p,isReverse:v,loader:y,loadMore:E,pageStart:C,ref:T,threshold:L,useCapture:N,useWindow:R,getScrollParent:F}=ne,j=tf(ne,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);j.ref=Le=>{this.scrollComponent=Le,T&&T(Le)};const Y=[i];return h&&(y?v?Y.unshift(y):Y.push(y):this.defaultLoader&&(v?Y.unshift(this.defaultLoader):Y.push(this.defaultLoader))),Vr.default.createElement(f,j,Y)}}Zs(gi,"propTypes",{children:Ve.node.isRequired,element:Ve.node,hasMore:Ve.bool,initialLoad:Ve.bool,isReverse:Ve.bool,loader:Ve.node,loadMore:Ve.func.isRequired,pageStart:Ve.number,ref:Ve.func,getScrollParent:Ve.func,threshold:Ve.number,useCapture:Ve.bool,useWindow:Ve.bool}),Zs(gi,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var tr={exports:{}},nr={};/**
 * @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 ac=Vr.default,lc=Symbol.for("react.element"),fc=Symbol.for("react.fragment"),cc=Object.prototype.hasOwnProperty,hc=ac.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,dc={key:!0,ref:!0,__self:!0,__source:!0};function Ro(u,o,i){var f,h={},p=null,v=null;i!==void 0&&(p=""+i),o.key!==void 0&&(p=""+o.key),o.ref!==void 0&&(v=o.ref);for(f in o)cc.call(o,f)&&!dc.hasOwnProperty(f)&&(h[f]=o[f]);if(u&&u.defaultProps)for(f in o=u.defaultProps,o)h[f]===void 0&&(h[f]=o[f]);return{$$typeof:lc,type:u,key:p,ref:v,props:h,_owner:hc.current}}nr.Fragment=fc,nr.jsx=Ro,nr.jsxs=Ro,tr.exports=nr;const A=tr.exports.jsx,te=tr.exports.jsxs,In=tr.exports.Fragment;function Co({show:u,onHide:o,children:i,clsModalMask:f,clsModal:h,hideWhenMaskOnClick:p=!1}){P.useLayoutEffect(()=>{u?document.body.style.overflow="hidden":document.body.style.overflow="overlay"},[u]);const v=P.useRef(null);P.useEffect(()=>{const T=v.current;if(!T)return;if(document.body.classList.contains("dark")){const N=window.getComputedStyle(document.body)["background-color"],R=window.getComputedStyle(document.body).color;T.style.setProperty("--bg",N),T.style.setProperty("--c",R),T.style.setProperty("background-color","var(--bg)"),T.style.setProperty("color","var(--c)")}},[u]);const y=P.useId(),E=P.useMemo(()=>{const T=document.createElement("div");return T.setAttribute("data-id","base-modal-"+y),document.body.appendChild(T),T},[]),C=rt(T=>{var L;(L=v.current)!=null&&L.contains(T.target)||p&&o()});return u?be.createPortal(A("div",{className:Ot(f),onClick:C,children:A("div",{className:Ot(h),ref:v,children:i})}),E):null}var _i={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(u,o){(function(){var i,f="4.17.21",h=200,p="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",y="Invalid `variable` option passed into `_.template`",E="__lodash_hash_undefined__",C=500,T="__lodash_placeholder__",L=1,N=2,R=4,F=1,j=2,Y=1,ne=2,Le=4,ve=8,he=16,fe=32,Me=64,Be=128,Ge=256,de=512,ie=30,Ie="...",jt=800,X=16,I=1,M=2,K=3,O=1/0,k=9007199254740991,G=17976931348623157e292,oe=0/0,Q=4294967295,pe=Q-1,Te=Q>>>1,it=[["ary",Be],["bind",Y],["bindKey",ne],["curry",ve],["curryRight",he],["flip",de],["partial",fe],["partialRight",Me],["rearg",Ge]],Ne="[object Arguments]",st="[object Array]",vt="[object AsyncFunction]",Ke="[object Boolean]",xe="[object Date]",ot="[object DOMException]",Lt="[object Error]",mt="[object Function]",sr="[object GeneratorFunction]",Se="[object Map]",ut="[object Number]",hn="[object Null]",wt="[object Object]",Su="[object Promise]",Gc="[object Proxy]",Nn="[object RegExp]",yt="[object Set]",Pn="[object String]",or="[object Symbol]",Kc="[object Undefined]",Fn="[object WeakMap]",$c="[object WeakSet]",Wn="[object ArrayBuffer]",dn="[object DataView]",Li="[object Float32Array]",Ti="[object Float64Array]",Ri="[object Int8Array]",Ci="[object Int16Array]",Oi="[object Int32Array]",Di="[object Uint8Array]",Mi="[object Uint8ClampedArray]",Ii="[object Uint16Array]",Ni="[object Uint32Array]",Xc=/\b__p \+= '';/g,Zc=/\b(__p \+=) '' \+/g,Jc=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Au=/&(?:amp|lt|gt|quot|#39);/g,Eu=/[&<>"']/g,Vc=RegExp(Au.source),Qc=RegExp(Eu.source),qc=/<%-([\s\S]+?)%>/g,jc=/<%([\s\S]+?)%>/g,Lu=/<%=([\s\S]+?)%>/g,eh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,th=/^\w*$/,nh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pi=/[\\^$.*+?()[\]{}|]/g,rh=RegExp(Pi.source),Fi=/^\s+/,ih=/\s/,sh=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oh=/\{\n\/\* \[wrapped with (.+)\] \*/,uh=/,? & /,ah=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lh=/[()=,{}\[\]\/\s]/,fh=/\\(\\)?/g,ch=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Tu=/\w*$/,hh=/^[-+]0x[0-9a-f]+$/i,dh=/^0b[01]+$/i,ph=/^\[object .+?Constructor\]$/,gh=/^0o[0-7]+$/i,_h=/^(?:0|[1-9]\d*)$/,vh=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ur=/($^)/,mh=/['\n\r\u2028\u2029\\]/g,ar="\\ud800-\\udfff",wh="\\u0300-\\u036f",yh="\\ufe20-\\ufe2f",bh="\\u20d0-\\u20ff",Ru=wh+yh+bh,Cu="\\u2700-\\u27bf",Ou="a-z\\xdf-\\xf6\\xf8-\\xff",xh="\\xac\\xb1\\xd7\\xf7",Sh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ah="\\u2000-\\u206f",Eh=" \\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",Du="A-Z\\xc0-\\xd6\\xd8-\\xde",Mu="\\ufe0e\\ufe0f",Iu=xh+Sh+Ah+Eh,Wi="['\u2019]",Lh="["+ar+"]",Nu="["+Iu+"]",lr="["+Ru+"]",Pu="\\d+",Th="["+Cu+"]",Fu="["+Ou+"]",Wu="[^"+ar+Iu+Pu+Cu+Ou+Du+"]",Bi="\\ud83c[\\udffb-\\udfff]",Rh="(?:"+lr+"|"+Bi+")",Bu="[^"+ar+"]",ki="(?:\\ud83c[\\udde6-\\uddff]){2}",Ui="[\\ud800-\\udbff][\\udc00-\\udfff]",pn="["+Du+"]",ku="\\u200d",Uu="(?:"+Fu+"|"+Wu+")",Ch="(?:"+pn+"|"+Wu+")",zu="(?:"+Wi+"(?:d|ll|m|re|s|t|ve))?",Hu="(?:"+Wi+"(?:D|LL|M|RE|S|T|VE))?",Yu=Rh+"?",Gu="["+Mu+"]?",Oh="(?:"+ku+"(?:"+[Bu,ki,Ui].join("|")+")"+Gu+Yu+")*",Dh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Mh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ku=Gu+Yu+Oh,Ih="(?:"+[Th,ki,Ui].join("|")+")"+Ku,Nh="(?:"+[Bu+lr+"?",lr,ki,Ui,Lh].join("|")+")",Ph=RegExp(Wi,"g"),Fh=RegExp(lr,"g"),zi=RegExp(Bi+"(?="+Bi+")|"+Nh+Ku,"g"),Wh=RegExp([pn+"?"+Fu+"+"+zu+"(?="+[Nu,pn,"$"].join("|")+")",Ch+"+"+Hu+"(?="+[Nu,pn+Uu,"$"].join("|")+")",pn+"?"+Uu+"+"+zu,pn+"+"+Hu,Mh,Dh,Pu,Ih].join("|"),"g"),Bh=RegExp("["+ku+ar+Ru+Mu+"]"),kh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Uh=["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"],zh=-1,me={};me[Li]=me[Ti]=me[Ri]=me[Ci]=me[Oi]=me[Di]=me[Mi]=me[Ii]=me[Ni]=!0,me[Ne]=me[st]=me[Wn]=me[Ke]=me[dn]=me[xe]=me[Lt]=me[mt]=me[Se]=me[ut]=me[wt]=me[Nn]=me[yt]=me[Pn]=me[Fn]=!1;var _e={};_e[Ne]=_e[st]=_e[Wn]=_e[dn]=_e[Ke]=_e[xe]=_e[Li]=_e[Ti]=_e[Ri]=_e[Ci]=_e[Oi]=_e[Se]=_e[ut]=_e[wt]=_e[Nn]=_e[yt]=_e[Pn]=_e[or]=_e[Di]=_e[Mi]=_e[Ii]=_e[Ni]=!0,_e[Lt]=_e[mt]=_e[Fn]=!1;var Hh={\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"},Yh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Gh={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Kh={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$h=parseFloat,Xh=parseInt,$u=typeof fn=="object"&&fn&&fn.Object===Object&&fn,Zh=typeof self=="object"&&self&&self.Object===Object&&self,Fe=$u||Zh||Function("return this")(),Hi=o&&!o.nodeType&&o,en=Hi&&!0&&u&&!u.nodeType&&u,Xu=en&&en.exports===Hi,Yi=Xu&&$u.process,at=function(){try{var g=en&&en.require&&en.require("util").types;return g||Yi&&Yi.binding&&Yi.binding("util")}catch{}}(),Zu=at&&at.isArrayBuffer,Ju=at&&at.isDate,Vu=at&&at.isMap,Qu=at&&at.isRegExp,qu=at&&at.isSet,ju=at&&at.isTypedArray;function Qe(g,w,m){switch(m.length){case 0:return g.call(w);case 1:return g.call(w,m[0]);case 2:return g.call(w,m[0],m[1]);case 3:return g.call(w,m[0],m[1],m[2])}return g.apply(w,m)}function Jh(g,w,m,W){for(var Z=-1,ae=g==null?0:g.length;++Z<ae;){var Oe=g[Z];w(W,Oe,m(Oe),g)}return W}function lt(g,w){for(var m=-1,W=g==null?0:g.length;++m<W&&w(g[m],m,g)!==!1;);return g}function Vh(g,w){for(var m=g==null?0:g.length;m--&&w(g[m],m,g)!==!1;);return g}function ea(g,w){for(var m=-1,W=g==null?0:g.length;++m<W;)if(!w(g[m],m,g))return!1;return!0}function Yt(g,w){for(var m=-1,W=g==null?0:g.length,Z=0,ae=[];++m<W;){var Oe=g[m];w(Oe,m,g)&&(ae[Z++]=Oe)}return ae}function fr(g,w){var m=g==null?0:g.length;return!!m&&gn(g,w,0)>-1}function Gi(g,w,m){for(var W=-1,Z=g==null?0:g.length;++W<Z;)if(m(w,g[W]))return!0;return!1}function we(g,w){for(var m=-1,W=g==null?0:g.length,Z=Array(W);++m<W;)Z[m]=w(g[m],m,g);return Z}function Gt(g,w){for(var m=-1,W=w.length,Z=g.length;++m<W;)g[Z+m]=w[m];return g}function Ki(g,w,m,W){var Z=-1,ae=g==null?0:g.length;for(W&&ae&&(m=g[++Z]);++Z<ae;)m=w(m,g[Z],Z,g);return m}function Qh(g,w,m,W){var Z=g==null?0:g.length;for(W&&Z&&(m=g[--Z]);Z--;)m=w(m,g[Z],Z,g);return m}function $i(g,w){for(var m=-1,W=g==null?0:g.length;++m<W;)if(w(g[m],m,g))return!0;return!1}var qh=Xi("length");function jh(g){return g.split("")}function ed(g){return g.match(ah)||[]}function ta(g,w,m){var W;return m(g,function(Z,ae,Oe){if(w(Z,ae,Oe))return W=ae,!1}),W}function cr(g,w,m,W){for(var Z=g.length,ae=m+(W?1:-1);W?ae--:++ae<Z;)if(w(g[ae],ae,g))return ae;return-1}function gn(g,w,m){return w===w?hd(g,w,m):cr(g,na,m)}function td(g,w,m,W){for(var Z=m-1,ae=g.length;++Z<ae;)if(W(g[Z],w))return Z;return-1}function na(g){return g!==g}function ra(g,w){var m=g==null?0:g.length;return m?Ji(g,w)/m:oe}function Xi(g){return function(w){return w==null?i:w[g]}}function Zi(g){return function(w){return g==null?i:g[w]}}function ia(g,w,m,W,Z){return Z(g,function(ae,Oe,ge){m=W?(W=!1,ae):w(m,ae,Oe,ge)}),m}function nd(g,w){var m=g.length;for(g.sort(w);m--;)g[m]=g[m].value;return g}function Ji(g,w){for(var m,W=-1,Z=g.length;++W<Z;){var ae=w(g[W]);ae!==i&&(m=m===i?ae:m+ae)}return m}function Vi(g,w){for(var m=-1,W=Array(g);++m<g;)W[m]=w(m);return W}function rd(g,w){return we(w,function(m){return[m,g[m]]})}function sa(g){return g&&g.slice(0,la(g)+1).replace(Fi,"")}function qe(g){return function(w){return g(w)}}function Qi(g,w){return we(w,function(m){return g[m]})}function Bn(g,w){return g.has(w)}function oa(g,w){for(var m=-1,W=g.length;++m<W&&gn(w,g[m],0)>-1;);return m}function ua(g,w){for(var m=g.length;m--&&gn(w,g[m],0)>-1;);return m}function id(g,w){for(var m=g.length,W=0;m--;)g[m]===w&&++W;return W}var sd=Zi(Hh),od=Zi(Yh);function ud(g){return"\\"+Kh[g]}function ad(g,w){return g==null?i:g[w]}function _n(g){return Bh.test(g)}function ld(g){return kh.test(g)}function fd(g){for(var w,m=[];!(w=g.next()).done;)m.push(w.value);return m}function qi(g){var w=-1,m=Array(g.size);return g.forEach(function(W,Z){m[++w]=[Z,W]}),m}function aa(g,w){return function(m){return g(w(m))}}function Kt(g,w){for(var m=-1,W=g.length,Z=0,ae=[];++m<W;){var Oe=g[m];(Oe===w||Oe===T)&&(g[m]=T,ae[Z++]=m)}return ae}function hr(g){var w=-1,m=Array(g.size);return g.forEach(function(W){m[++w]=W}),m}function cd(g){var w=-1,m=Array(g.size);return g.forEach(function(W){m[++w]=[W,W]}),m}function hd(g,w,m){for(var W=m-1,Z=g.length;++W<Z;)if(g[W]===w)return W;return-1}function dd(g,w,m){for(var W=m+1;W--;)if(g[W]===w)return W;return W}function vn(g){return _n(g)?gd(g):qh(g)}function bt(g){return _n(g)?_d(g):jh(g)}function la(g){for(var w=g.length;w--&&ih.test(g.charAt(w)););return w}var pd=Zi(Gh);function gd(g){for(var w=zi.lastIndex=0;zi.test(g);)++w;return w}function _d(g){return g.match(zi)||[]}function vd(g){return g.match(Wh)||[]}var md=function g(w){w=w==null?Fe:mn.defaults(Fe.Object(),w,mn.pick(Fe,Uh));var m=w.Array,W=w.Date,Z=w.Error,ae=w.Function,Oe=w.Math,ge=w.Object,ji=w.RegExp,wd=w.String,ft=w.TypeError,dr=m.prototype,yd=ae.prototype,wn=ge.prototype,pr=w["__core-js_shared__"],gr=yd.toString,ce=wn.hasOwnProperty,bd=0,fa=function(){var e=/[^.]+$/.exec(pr&&pr.keys&&pr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),_r=wn.toString,xd=gr.call(ge),Sd=Fe._,Ad=ji("^"+gr.call(ce).replace(Pi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vr=Xu?w.Buffer:i,$t=w.Symbol,mr=w.Uint8Array,ca=vr?vr.allocUnsafe:i,wr=aa(ge.getPrototypeOf,ge),ha=ge.create,da=wn.propertyIsEnumerable,yr=dr.splice,pa=$t?$t.isConcatSpreadable:i,kn=$t?$t.iterator:i,tn=$t?$t.toStringTag:i,br=function(){try{var e=un(ge,"defineProperty");return e({},"",{}),e}catch{}}(),Ed=w.clearTimeout!==Fe.clearTimeout&&w.clearTimeout,Ld=W&&W.now!==Fe.Date.now&&W.now,Td=w.setTimeout!==Fe.setTimeout&&w.setTimeout,xr=Oe.ceil,Sr=Oe.floor,es=ge.getOwnPropertySymbols,Rd=vr?vr.isBuffer:i,ga=w.isFinite,Cd=dr.join,Od=aa(ge.keys,ge),De=Oe.max,ke=Oe.min,Dd=W.now,Md=w.parseInt,_a=Oe.random,Id=dr.reverse,ts=un(w,"DataView"),Un=un(w,"Map"),ns=un(w,"Promise"),yn=un(w,"Set"),zn=un(w,"WeakMap"),Hn=un(ge,"create"),Ar=zn&&new zn,bn={},Nd=an(ts),Pd=an(Un),Fd=an(ns),Wd=an(yn),Bd=an(zn),Er=$t?$t.prototype:i,Yn=Er?Er.valueOf:i,va=Er?Er.toString:i;function a(e){if(Ae(e)&&!J(e)&&!(e instanceof se)){if(e instanceof ct)return e;if(ce.call(e,"__wrapped__"))return ml(e)}return new ct(e)}var xn=function(){function e(){}return function(t){if(!ye(t))return{};if(ha)return ha(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Lr(){}function ct(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}a.templateSettings={escape:qc,evaluate:jc,interpolate:Lu,variable:"",imports:{_:a}},a.prototype=Lr.prototype,a.prototype.constructor=a,ct.prototype=xn(Lr.prototype),ct.prototype.constructor=ct;function se(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function kd(){var e=new se(this.__wrapped__);return e.__actions__=$e(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=$e(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=$e(this.__views__),e}function Ud(){if(this.__filtered__){var e=new se(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function zd(){var e=this.__wrapped__.value(),t=this.__dir__,n=J(e),r=t<0,s=n?e.length:0,l=jp(0,s,this.__views__),c=l.start,d=l.end,_=d-c,b=r?d:c-1,x=this.__iteratees__,S=x.length,D=0,B=ke(_,this.__takeCount__);if(!n||!r&&s==_&&B==_)return za(e,this.__actions__);var z=[];e:for(;_--&&D<B;){b+=t;for(var q=-1,H=e[b];++q<S;){var re=x[q],ue=re.iteratee,tt=re.type,Ye=ue(H);if(tt==M)H=Ye;else if(!Ye){if(tt==I)continue e;break e}}z[D++]=H}return z}se.prototype=xn(Lr.prototype),se.prototype.constructor=se;function nn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hd(){this.__data__=Hn?Hn(null):{},this.size=0}function Yd(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Gd(e){var t=this.__data__;if(Hn){var n=t[e];return n===E?i:n}return ce.call(t,e)?t[e]:i}function Kd(e){var t=this.__data__;return Hn?t[e]!==i:ce.call(t,e)}function $d(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Hn&&t===i?E:t,this}nn.prototype.clear=Hd,nn.prototype.delete=Yd,nn.prototype.get=Gd,nn.prototype.has=Kd,nn.prototype.set=$d;function Mt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Xd(){this.__data__=[],this.size=0}function Zd(e){var t=this.__data__,n=Tr(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():yr.call(t,n,1),--this.size,!0}function Jd(e){var t=this.__data__,n=Tr(t,e);return n<0?i:t[n][1]}function Vd(e){return Tr(this.__data__,e)>-1}function Qd(e,t){var n=this.__data__,r=Tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}Mt.prototype.clear=Xd,Mt.prototype.delete=Zd,Mt.prototype.get=Jd,Mt.prototype.has=Vd,Mt.prototype.set=Qd;function It(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qd(){this.size=0,this.__data__={hash:new nn,map:new(Un||Mt),string:new nn}}function jd(e){var t=kr(this,e).delete(e);return this.size-=t?1:0,t}function ep(e){return kr(this,e).get(e)}function tp(e){return kr(this,e).has(e)}function np(e,t){var n=kr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}It.prototype.clear=qd,It.prototype.delete=jd,It.prototype.get=ep,It.prototype.has=tp,It.prototype.set=np;function rn(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new It;++t<n;)this.add(e[t])}function rp(e){return this.__data__.set(e,E),this}function ip(e){return this.__data__.has(e)}rn.prototype.add=rn.prototype.push=rp,rn.prototype.has=ip;function xt(e){var t=this.__data__=new Mt(e);this.size=t.size}function sp(){this.__data__=new Mt,this.size=0}function op(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function up(e){return this.__data__.get(e)}function ap(e){return this.__data__.has(e)}function lp(e,t){var n=this.__data__;if(n instanceof Mt){var r=n.__data__;if(!Un||r.length<h-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new It(r)}return n.set(e,t),this.size=n.size,this}xt.prototype.clear=sp,xt.prototype.delete=op,xt.prototype.get=up,xt.prototype.has=ap,xt.prototype.set=lp;function ma(e,t){var n=J(e),r=!n&&ln(e),s=!n&&!r&&Qt(e),l=!n&&!r&&!s&&Ln(e),c=n||r||s||l,d=c?Vi(e.length,wd):[],_=d.length;for(var b in e)(t||ce.call(e,b))&&!(c&&(b=="length"||s&&(b=="offset"||b=="parent")||l&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||Wt(b,_)))&&d.push(b);return d}function wa(e){var t=e.length;return t?e[ds(0,t-1)]:i}function fp(e,t){return Ur($e(e),sn(t,0,e.length))}function cp(e){return Ur($e(e))}function rs(e,t,n){(n!==i&&!St(e[t],n)||n===i&&!(t in e))&&Nt(e,t,n)}function Gn(e,t,n){var r=e[t];(!(ce.call(e,t)&&St(r,n))||n===i&&!(t in e))&&Nt(e,t,n)}function Tr(e,t){for(var n=e.length;n--;)if(St(e[n][0],t))return n;return-1}function hp(e,t,n,r){return Xt(e,function(s,l,c){t(r,s,n(s),c)}),r}function ya(e,t){return e&&Rt(t,Pe(t),e)}function dp(e,t){return e&&Rt(t,Ze(t),e)}function Nt(e,t,n){t=="__proto__"&&br?br(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function is(e,t){for(var n=-1,r=t.length,s=m(r),l=e==null;++n<r;)s[n]=l?i:Bs(e,t[n]);return s}function sn(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function ht(e,t,n,r,s,l){var c,d=t&L,_=t&N,b=t&R;if(n&&(c=s?n(e,r,s,l):n(e)),c!==i)return c;if(!ye(e))return e;var x=J(e);if(x){if(c=tg(e),!d)return $e(e,c)}else{var S=Ue(e),D=S==mt||S==sr;if(Qt(e))return Ga(e,d);if(S==wt||S==Ne||D&&!s){if(c=_||D?{}:ll(e),!d)return _?Gp(e,dp(c,e)):Yp(e,ya(c,e))}else{if(!_e[S])return s?e:{};c=ng(e,S,d)}}l||(l=new xt);var B=l.get(e);if(B)return B;l.set(e,c),Bl(e)?e.forEach(function(H){c.add(ht(H,t,n,H,e,l))}):Fl(e)&&e.forEach(function(H,re){c.set(re,ht(H,t,n,re,e,l))});var z=b?_?As:Ss:_?Ze:Pe,q=x?i:z(e);return lt(q||e,function(H,re){q&&(re=H,H=e[re]),Gn(c,re,ht(H,t,n,re,e,l))}),c}function pp(e){var t=Pe(e);return function(n){return ba(n,e,t)}}function ba(e,t,n){var r=n.length;if(e==null)return!r;for(e=ge(e);r--;){var s=n[r],l=t[s],c=e[s];if(c===i&&!(s in e)||!l(c))return!1}return!0}function xa(e,t,n){if(typeof e!="function")throw new ft(v);return Qn(function(){e.apply(i,n)},t)}function Kn(e,t,n,r){var s=-1,l=fr,c=!0,d=e.length,_=[],b=t.length;if(!d)return _;n&&(t=we(t,qe(n))),r?(l=Gi,c=!1):t.length>=h&&(l=Bn,c=!1,t=new rn(t));e:for(;++s<d;){var x=e[s],S=n==null?x:n(x);if(x=r||x!==0?x:0,c&&S===S){for(var D=b;D--;)if(t[D]===S)continue e;_.push(x)}else l(t,S,r)||_.push(x)}return _}var Xt=Ja(Tt),Sa=Ja(os,!0);function gp(e,t){var n=!0;return Xt(e,function(r,s,l){return n=!!t(r,s,l),n}),n}function Rr(e,t,n){for(var r=-1,s=e.length;++r<s;){var l=e[r],c=t(l);if(c!=null&&(d===i?c===c&&!et(c):n(c,d)))var d=c,_=l}return _}function _p(e,t,n,r){var s=e.length;for(n=V(n),n<0&&(n=-n>s?0:s+n),r=r===i||r>s?s:V(r),r<0&&(r+=s),r=n>r?0:Ul(r);n<r;)e[n++]=t;return e}function Aa(e,t){var n=[];return Xt(e,function(r,s,l){t(r,s,l)&&n.push(r)}),n}function We(e,t,n,r,s){var l=-1,c=e.length;for(n||(n=ig),s||(s=[]);++l<c;){var d=e[l];t>0&&n(d)?t>1?We(d,t-1,n,r,s):Gt(s,d):r||(s[s.length]=d)}return s}var ss=Va(),Ea=Va(!0);function Tt(e,t){return e&&ss(e,t,Pe)}function os(e,t){return e&&Ea(e,t,Pe)}function Cr(e,t){return Yt(t,function(n){return Bt(e[n])})}function on(e,t){t=Jt(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ct(t[n++])];return n&&n==r?e:i}function La(e,t,n){var r=t(e);return J(e)?r:Gt(r,n(e))}function ze(e){return e==null?e===i?Kc:hn:tn&&tn in ge(e)?qp(e):cg(e)}function us(e,t){return e>t}function vp(e,t){return e!=null&&ce.call(e,t)}function mp(e,t){return e!=null&&t in ge(e)}function wp(e,t,n){return e>=ke(t,n)&&e<De(t,n)}function as(e,t,n){for(var r=n?Gi:fr,s=e[0].length,l=e.length,c=l,d=m(l),_=1/0,b=[];c--;){var x=e[c];c&&t&&(x=we(x,qe(t))),_=ke(x.length,_),d[c]=!n&&(t||s>=120&&x.length>=120)?new rn(c&&x):i}x=e[0];var S=-1,D=d[0];e:for(;++S<s&&b.length<_;){var B=x[S],z=t?t(B):B;if(B=n||B!==0?B:0,!(D?Bn(D,z):r(b,z,n))){for(c=l;--c;){var q=d[c];if(!(q?Bn(q,z):r(e[c],z,n)))continue e}D&&D.push(z),b.push(B)}}return b}function yp(e,t,n,r){return Tt(e,function(s,l,c){t(r,n(s),l,c)}),r}function $n(e,t,n){t=Jt(t,e),e=dl(e,t);var r=e==null?e:e[Ct(pt(t))];return r==null?i:Qe(r,e,n)}function Ta(e){return Ae(e)&&ze(e)==Ne}function bp(e){return Ae(e)&&ze(e)==Wn}function xp(e){return Ae(e)&&ze(e)==xe}function Xn(e,t,n,r,s){return e===t?!0:e==null||t==null||!Ae(e)&&!Ae(t)?e!==e&&t!==t:Sp(e,t,n,r,Xn,s)}function Sp(e,t,n,r,s,l){var c=J(e),d=J(t),_=c?st:Ue(e),b=d?st:Ue(t);_=_==Ne?wt:_,b=b==Ne?wt:b;var x=_==wt,S=b==wt,D=_==b;if(D&&Qt(e)){if(!Qt(t))return!1;c=!0,x=!1}if(D&&!x)return l||(l=new xt),c||Ln(e)?ol(e,t,n,r,s,l):Vp(e,t,_,n,r,s,l);if(!(n&F)){var B=x&&ce.call(e,"__wrapped__"),z=S&&ce.call(t,"__wrapped__");if(B||z){var q=B?e.value():e,H=z?t.value():t;return l||(l=new xt),s(q,H,n,r,l)}}return D?(l||(l=new xt),Qp(e,t,n,r,s,l)):!1}function Ap(e){return Ae(e)&&Ue(e)==Se}function ls(e,t,n,r){var s=n.length,l=s,c=!r;if(e==null)return!l;for(e=ge(e);s--;){var d=n[s];if(c&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++s<l;){d=n[s];var _=d[0],b=e[_],x=d[1];if(c&&d[2]){if(b===i&&!(_ in e))return!1}else{var S=new xt;if(r)var D=r(b,x,_,e,t,S);if(!(D===i?Xn(x,b,F|j,r,S):D))return!1}}return!0}function Ra(e){if(!ye(e)||og(e))return!1;var t=Bt(e)?Ad:ph;return t.test(an(e))}function Ep(e){return Ae(e)&&ze(e)==Nn}function Lp(e){return Ae(e)&&Ue(e)==yt}function Tp(e){return Ae(e)&&$r(e.length)&&!!me[ze(e)]}function Ca(e){return typeof e=="function"?e:e==null?Je:typeof e=="object"?J(e)?Ma(e[0],e[1]):Da(e):Ql(e)}function fs(e){if(!Vn(e))return Od(e);var t=[];for(var n in ge(e))ce.call(e,n)&&n!="constructor"&&t.push(n);return t}function Rp(e){if(!ye(e))return fg(e);var t=Vn(e),n=[];for(var r in e)r=="constructor"&&(t||!ce.call(e,r))||n.push(r);return n}function cs(e,t){return e<t}function Oa(e,t){var n=-1,r=Xe(e)?m(e.length):[];return Xt(e,function(s,l,c){r[++n]=t(s,l,c)}),r}function Da(e){var t=Ls(e);return t.length==1&&t[0][2]?cl(t[0][0],t[0][1]):function(n){return n===e||ls(n,e,t)}}function Ma(e,t){return Rs(e)&&fl(t)?cl(Ct(e),t):function(n){var r=Bs(n,e);return r===i&&r===t?ks(n,e):Xn(t,r,F|j)}}function Or(e,t,n,r,s){e!==t&&ss(t,function(l,c){if(s||(s=new xt),ye(l))Cp(e,t,c,n,Or,r,s);else{var d=r?r(Os(e,c),l,c+"",e,t,s):i;d===i&&(d=l),rs(e,c,d)}},Ze)}function Cp(e,t,n,r,s,l,c){var d=Os(e,n),_=Os(t,n),b=c.get(_);if(b){rs(e,n,b);return}var x=l?l(d,_,n+"",e,t,c):i,S=x===i;if(S){var D=J(_),B=!D&&Qt(_),z=!D&&!B&&Ln(_);x=_,D||B||z?J(d)?x=d:Re(d)?x=$e(d):B?(S=!1,x=Ga(_,!0)):z?(S=!1,x=Ka(_,!0)):x=[]:qn(_)||ln(_)?(x=d,ln(d)?x=zl(d):(!ye(d)||Bt(d))&&(x=ll(_))):S=!1}S&&(c.set(_,x),s(x,_,r,l,c),c.delete(_)),rs(e,n,x)}function Ia(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,Wt(t,n)?e[t]:i}function Na(e,t,n){t.length?t=we(t,function(l){return J(l)?function(c){return on(c,l.length===1?l[0]:l)}:l}):t=[Je];var r=-1;t=we(t,qe(U()));var s=Oa(e,function(l,c,d){var _=we(t,function(b){return b(l)});return{criteria:_,index:++r,value:l}});return nd(s,function(l,c){return Hp(l,c,n)})}function Op(e,t){return Pa(e,t,function(n,r){return ks(e,r)})}function Pa(e,t,n){for(var r=-1,s=t.length,l={};++r<s;){var c=t[r],d=on(e,c);n(d,c)&&Zn(l,Jt(c,e),d)}return l}function Dp(e){return function(t){return on(t,e)}}function hs(e,t,n,r){var s=r?td:gn,l=-1,c=t.length,d=e;for(e===t&&(t=$e(t)),n&&(d=we(e,qe(n)));++l<c;)for(var _=0,b=t[l],x=n?n(b):b;(_=s(d,x,_,r))>-1;)d!==e&&yr.call(d,_,1),yr.call(e,_,1);return e}function Fa(e,t){for(var n=e?t.length:0,r=n-1;n--;){var s=t[n];if(n==r||s!==l){var l=s;Wt(s)?yr.call(e,s,1):_s(e,s)}}return e}function ds(e,t){return e+Sr(_a()*(t-e+1))}function Mp(e,t,n,r){for(var s=-1,l=De(xr((t-e)/(n||1)),0),c=m(l);l--;)c[r?l:++s]=e,e+=n;return c}function ps(e,t){var n="";if(!e||t<1||t>k)return n;do t%2&&(n+=e),t=Sr(t/2),t&&(e+=e);while(t);return n}function ee(e,t){return Ds(hl(e,t,Je),e+"")}function Ip(e){return wa(Tn(e))}function Np(e,t){var n=Tn(e);return Ur(n,sn(t,0,n.length))}function Zn(e,t,n,r){if(!ye(e))return e;t=Jt(t,e);for(var s=-1,l=t.length,c=l-1,d=e;d!=null&&++s<l;){var _=Ct(t[s]),b=n;if(_==="__proto__"||_==="constructor"||_==="prototype")return e;if(s!=c){var x=d[_];b=r?r(x,_,d):i,b===i&&(b=ye(x)?x:Wt(t[s+1])?[]:{})}Gn(d,_,b),d=d[_]}return e}var Wa=Ar?function(e,t){return Ar.set(e,t),e}:Je,Pp=br?function(e,t){return br(e,"toString",{configurable:!0,enumerable:!1,value:zs(t),writable:!0})}:Je;function Fp(e){return Ur(Tn(e))}function dt(e,t,n){var r=-1,s=e.length;t<0&&(t=-t>s?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var l=m(s);++r<s;)l[r]=e[r+t];return l}function Wp(e,t){var n;return Xt(e,function(r,s,l){return n=t(r,s,l),!n}),!!n}function Dr(e,t,n){var r=0,s=e==null?r:e.length;if(typeof t=="number"&&t===t&&s<=Te){for(;r<s;){var l=r+s>>>1,c=e[l];c!==null&&!et(c)&&(n?c<=t:c<t)?r=l+1:s=l}return s}return gs(e,t,Je,n)}function gs(e,t,n,r){var s=0,l=e==null?0:e.length;if(l===0)return 0;t=n(t);for(var c=t!==t,d=t===null,_=et(t),b=t===i;s<l;){var x=Sr((s+l)/2),S=n(e[x]),D=S!==i,B=S===null,z=S===S,q=et(S);if(c)var H=r||z;else b?H=z&&(r||D):d?H=z&&D&&(r||!B):_?H=z&&D&&!B&&(r||!q):B||q?H=!1:H=r?S<=t:S<t;H?s=x+1:l=x}return ke(l,pe)}function Ba(e,t){for(var n=-1,r=e.length,s=0,l=[];++n<r;){var c=e[n],d=t?t(c):c;if(!n||!St(d,_)){var _=d;l[s++]=c===0?0:c}}return l}function ka(e){return typeof e=="number"?e:et(e)?oe:+e}function je(e){if(typeof e=="string")return e;if(J(e))return we(e,je)+"";if(et(e))return va?va.call(e):"";var t=e+"";return t=="0"&&1/e==-O?"-0":t}function Zt(e,t,n){var r=-1,s=fr,l=e.length,c=!0,d=[],_=d;if(n)c=!1,s=Gi;else if(l>=h){var b=t?null:Zp(e);if(b)return hr(b);c=!1,s=Bn,_=new rn}else _=t?[]:d;e:for(;++r<l;){var x=e[r],S=t?t(x):x;if(x=n||x!==0?x:0,c&&S===S){for(var D=_.length;D--;)if(_[D]===S)continue e;t&&_.push(S),d.push(x)}else s(_,S,n)||(_!==d&&_.push(S),d.push(x))}return d}function _s(e,t){return t=Jt(t,e),e=dl(e,t),e==null||delete e[Ct(pt(t))]}function Ua(e,t,n,r){return Zn(e,t,n(on(e,t)),r)}function Mr(e,t,n,r){for(var s=e.length,l=r?s:-1;(r?l--:++l<s)&&t(e[l],l,e););return n?dt(e,r?0:l,r?l+1:s):dt(e,r?l+1:0,r?s:l)}function za(e,t){var n=e;return n instanceof se&&(n=n.value()),Ki(t,function(r,s){return s.func.apply(s.thisArg,Gt([r],s.args))},n)}function vs(e,t,n){var r=e.length;if(r<2)return r?Zt(e[0]):[];for(var s=-1,l=m(r);++s<r;)for(var c=e[s],d=-1;++d<r;)d!=s&&(l[s]=Kn(l[s]||c,e[d],t,n));return Zt(We(l,1),t,n)}function Ha(e,t,n){for(var r=-1,s=e.length,l=t.length,c={};++r<s;){var d=r<l?t[r]:i;n(c,e[r],d)}return c}function ms(e){return Re(e)?e:[]}function ws(e){return typeof e=="function"?e:Je}function Jt(e,t){return J(e)?e:Rs(e,t)?[e]:vl(le(e))}var Bp=ee;function Vt(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:dt(e,t,n)}var Ya=Ed||function(e){return Fe.clearTimeout(e)};function Ga(e,t){if(t)return e.slice();var n=e.length,r=ca?ca(n):new e.constructor(n);return e.copy(r),r}function ys(e){var t=new e.constructor(e.byteLength);return new mr(t).set(new mr(e)),t}function kp(e,t){var n=t?ys(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Up(e){var t=new e.constructor(e.source,Tu.exec(e));return t.lastIndex=e.lastIndex,t}function zp(e){return Yn?ge(Yn.call(e)):{}}function Ka(e,t){var n=t?ys(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function $a(e,t){if(e!==t){var n=e!==i,r=e===null,s=e===e,l=et(e),c=t!==i,d=t===null,_=t===t,b=et(t);if(!d&&!b&&!l&&e>t||l&&c&&_&&!d&&!b||r&&c&&_||!n&&_||!s)return 1;if(!r&&!l&&!b&&e<t||b&&n&&s&&!r&&!l||d&&n&&s||!c&&s||!_)return-1}return 0}function Hp(e,t,n){for(var r=-1,s=e.criteria,l=t.criteria,c=s.length,d=n.length;++r<c;){var _=$a(s[r],l[r]);if(_){if(r>=d)return _;var b=n[r];return _*(b=="desc"?-1:1)}}return e.index-t.index}function Xa(e,t,n,r){for(var s=-1,l=e.length,c=n.length,d=-1,_=t.length,b=De(l-c,0),x=m(_+b),S=!r;++d<_;)x[d]=t[d];for(;++s<c;)(S||s<l)&&(x[n[s]]=e[s]);for(;b--;)x[d++]=e[s++];return x}function Za(e,t,n,r){for(var s=-1,l=e.length,c=-1,d=n.length,_=-1,b=t.length,x=De(l-d,0),S=m(x+b),D=!r;++s<x;)S[s]=e[s];for(var B=s;++_<b;)S[B+_]=t[_];for(;++c<d;)(D||s<l)&&(S[B+n[c]]=e[s++]);return S}function $e(e,t){var n=-1,r=e.length;for(t||(t=m(r));++n<r;)t[n]=e[n];return t}function Rt(e,t,n,r){var s=!n;n||(n={});for(var l=-1,c=t.length;++l<c;){var d=t[l],_=r?r(n[d],e[d],d,n,e):i;_===i&&(_=e[d]),s?Nt(n,d,_):Gn(n,d,_)}return n}function Yp(e,t){return Rt(e,Ts(e),t)}function Gp(e,t){return Rt(e,ul(e),t)}function Ir(e,t){return function(n,r){var s=J(n)?Jh:hp,l=t?t():{};return s(n,e,U(r,2),l)}}function Sn(e){return ee(function(t,n){var r=-1,s=n.length,l=s>1?n[s-1]:i,c=s>2?n[2]:i;for(l=e.length>3&&typeof l=="function"?(s--,l):i,c&&He(n[0],n[1],c)&&(l=s<3?i:l,s=1),t=ge(t);++r<s;){var d=n[r];d&&e(t,d,r,l)}return t})}function Ja(e,t){return function(n,r){if(n==null)return n;if(!Xe(n))return e(n,r);for(var s=n.length,l=t?s:-1,c=ge(n);(t?l--:++l<s)&&r(c[l],l,c)!==!1;);return n}}function Va(e){return function(t,n,r){for(var s=-1,l=ge(t),c=r(t),d=c.length;d--;){var _=c[e?d:++s];if(n(l[_],_,l)===!1)break}return t}}function Kp(e,t,n){var r=t&Y,s=Jn(e);function l(){var c=this&&this!==Fe&&this instanceof l?s:e;return c.apply(r?n:this,arguments)}return l}function Qa(e){return function(t){t=le(t);var n=_n(t)?bt(t):i,r=n?n[0]:t.charAt(0),s=n?Vt(n,1).join(""):t.slice(1);return r[e]()+s}}function An(e){return function(t){return Ki(Jl(Zl(t).replace(Ph,"")),e,"")}}function Jn(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=xn(e.prototype),r=e.apply(n,t);return ye(r)?r:n}}function $p(e,t,n){var r=Jn(e);function s(){for(var l=arguments.length,c=m(l),d=l,_=En(s);d--;)c[d]=arguments[d];var b=l<3&&c[0]!==_&&c[l-1]!==_?[]:Kt(c,_);if(l-=b.length,l<n)return nl(e,t,Nr,s.placeholder,i,c,b,i,i,n-l);var x=this&&this!==Fe&&this instanceof s?r:e;return Qe(x,this,c)}return s}function qa(e){return function(t,n,r){var s=ge(t);if(!Xe(t)){var l=U(n,3);t=Pe(t),n=function(d){return l(s[d],d,s)}}var c=e(t,n,r);return c>-1?s[l?t[c]:c]:i}}function ja(e){return Ft(function(t){var n=t.length,r=n,s=ct.prototype.thru;for(e&&t.reverse();r--;){var l=t[r];if(typeof l!="function")throw new ft(v);if(s&&!c&&Br(l)=="wrapper")var c=new ct([],!0)}for(r=c?r:n;++r<n;){l=t[r];var d=Br(l),_=d=="wrapper"?Es(l):i;_&&Cs(_[0])&&_[1]==(Be|ve|fe|Ge)&&!_[4].length&&_[9]==1?c=c[Br(_[0])].apply(c,_[3]):c=l.length==1&&Cs(l)?c[d]():c.thru(l)}return function(){var b=arguments,x=b[0];if(c&&b.length==1&&J(x))return c.plant(x).value();for(var S=0,D=n?t[S].apply(this,b):x;++S<n;)D=t[S].call(this,D);return D}})}function Nr(e,t,n,r,s,l,c,d,_,b){var x=t&Be,S=t&Y,D=t&ne,B=t&(ve|he),z=t&de,q=D?i:Jn(e);function H(){for(var re=arguments.length,ue=m(re),tt=re;tt--;)ue[tt]=arguments[tt];if(B)var Ye=En(H),nt=id(ue,Ye);if(r&&(ue=Xa(ue,r,s,B)),l&&(ue=Za(ue,l,c,B)),re-=nt,B&&re<b){var Ce=Kt(ue,Ye);return nl(e,t,Nr,H.placeholder,n,ue,Ce,d,_,b-re)}var At=S?n:this,Ut=D?At[e]:e;return re=ue.length,d?ue=hg(ue,d):z&&re>1&&ue.reverse(),x&&_<re&&(ue.length=_),this&&this!==Fe&&this instanceof H&&(Ut=q||Jn(Ut)),Ut.apply(At,ue)}return H}function el(e,t){return function(n,r){return yp(n,e,t(r),{})}}function Pr(e,t){return function(n,r){var s;if(n===i&&r===i)return t;if(n!==i&&(s=n),r!==i){if(s===i)return r;typeof n=="string"||typeof r=="string"?(n=je(n),r=je(r)):(n=ka(n),r=ka(r)),s=e(n,r)}return s}}function bs(e){return Ft(function(t){return t=we(t,qe(U())),ee(function(n){var r=this;return e(t,function(s){return Qe(s,r,n)})})})}function Fr(e,t){t=t===i?" ":je(t);var n=t.length;if(n<2)return n?ps(t,e):t;var r=ps(t,xr(e/vn(t)));return _n(t)?Vt(bt(r),0,e).join(""):r.slice(0,e)}function Xp(e,t,n,r){var s=t&Y,l=Jn(e);function c(){for(var d=-1,_=arguments.length,b=-1,x=r.length,S=m(x+_),D=this&&this!==Fe&&this instanceof c?l:e;++b<x;)S[b]=r[b];for(;_--;)S[b++]=arguments[++d];return Qe(D,s?n:this,S)}return c}function tl(e){return function(t,n,r){return r&&typeof r!="number"&&He(t,n,r)&&(n=r=i),t=kt(t),n===i?(n=t,t=0):n=kt(n),r=r===i?t<n?1:-1:kt(r),Mp(t,n,r,e)}}function Wr(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=gt(t),n=gt(n)),e(t,n)}}function nl(e,t,n,r,s,l,c,d,_,b){var x=t&ve,S=x?c:i,D=x?i:c,B=x?l:i,z=x?i:l;t|=x?fe:Me,t&=~(x?Me:fe),t&Le||(t&=~(Y|ne));var q=[e,t,s,B,S,z,D,d,_,b],H=n.apply(i,q);return Cs(e)&&pl(H,q),H.placeholder=r,gl(H,e,t)}function xs(e){var t=Oe[e];return function(n,r){if(n=gt(n),r=r==null?0:ke(V(r),292),r&&ga(n)){var s=(le(n)+"e").split("e"),l=t(s[0]+"e"+(+s[1]+r));return s=(le(l)+"e").split("e"),+(s[0]+"e"+(+s[1]-r))}return t(n)}}var Zp=yn&&1/hr(new yn([,-0]))[1]==O?function(e){return new yn(e)}:Gs;function rl(e){return function(t){var n=Ue(t);return n==Se?qi(t):n==yt?cd(t):rd(t,e(t))}}function Pt(e,t,n,r,s,l,c,d){var _=t&ne;if(!_&&typeof e!="function")throw new ft(v);var b=r?r.length:0;if(b||(t&=~(fe|Me),r=s=i),c=c===i?c:De(V(c),0),d=d===i?d:V(d),b-=s?s.length:0,t&Me){var x=r,S=s;r=s=i}var D=_?i:Es(e),B=[e,t,n,r,s,x,S,l,c,d];if(D&&lg(B,D),e=B[0],t=B[1],n=B[2],r=B[3],s=B[4],d=B[9]=B[9]===i?_?0:e.length:De(B[9]-b,0),!d&&t&(ve|he)&&(t&=~(ve|he)),!t||t==Y)var z=Kp(e,t,n);else t==ve||t==he?z=$p(e,t,d):(t==fe||t==(Y|fe))&&!s.length?z=Xp(e,t,n,r):z=Nr.apply(i,B);var q=D?Wa:pl;return gl(q(z,B),e,t)}function il(e,t,n,r){return e===i||St(e,wn[n])&&!ce.call(r,n)?t:e}function sl(e,t,n,r,s,l){return ye(e)&&ye(t)&&(l.set(t,e),Or(e,t,i,sl,l),l.delete(t)),e}function Jp(e){return qn(e)?i:e}function ol(e,t,n,r,s,l){var c=n&F,d=e.length,_=t.length;if(d!=_&&!(c&&_>d))return!1;var b=l.get(e),x=l.get(t);if(b&&x)return b==t&&x==e;var S=-1,D=!0,B=n&j?new rn:i;for(l.set(e,t),l.set(t,e);++S<d;){var z=e[S],q=t[S];if(r)var H=c?r(q,z,S,t,e,l):r(z,q,S,e,t,l);if(H!==i){if(H)continue;D=!1;break}if(B){if(!$i(t,function(re,ue){if(!Bn(B,ue)&&(z===re||s(z,re,n,r,l)))return B.push(ue)})){D=!1;break}}else if(!(z===q||s(z,q,n,r,l))){D=!1;break}}return l.delete(e),l.delete(t),D}function Vp(e,t,n,r,s,l,c){switch(n){case dn:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Wn:return!(e.byteLength!=t.byteLength||!l(new mr(e),new mr(t)));case Ke:case xe:case ut:return St(+e,+t);case Lt:return e.name==t.name&&e.message==t.message;case Nn:case Pn:return e==t+"";case Se:var d=qi;case yt:var _=r&F;if(d||(d=hr),e.size!=t.size&&!_)return!1;var b=c.get(e);if(b)return b==t;r|=j,c.set(e,t);var x=ol(d(e),d(t),r,s,l,c);return c.delete(e),x;case or:if(Yn)return Yn.call(e)==Yn.call(t)}return!1}function Qp(e,t,n,r,s,l){var c=n&F,d=Ss(e),_=d.length,b=Ss(t),x=b.length;if(_!=x&&!c)return!1;for(var S=_;S--;){var D=d[S];if(!(c?D in t:ce.call(t,D)))return!1}var B=l.get(e),z=l.get(t);if(B&&z)return B==t&&z==e;var q=!0;l.set(e,t),l.set(t,e);for(var H=c;++S<_;){D=d[S];var re=e[D],ue=t[D];if(r)var tt=c?r(ue,re,D,t,e,l):r(re,ue,D,e,t,l);if(!(tt===i?re===ue||s(re,ue,n,r,l):tt)){q=!1;break}H||(H=D=="constructor")}if(q&&!H){var Ye=e.constructor,nt=t.constructor;Ye!=nt&&"constructor"in e&&"constructor"in t&&!(typeof Ye=="function"&&Ye instanceof Ye&&typeof nt=="function"&&nt instanceof nt)&&(q=!1)}return l.delete(e),l.delete(t),q}function Ft(e){return Ds(hl(e,i,bl),e+"")}function Ss(e){return La(e,Pe,Ts)}function As(e){return La(e,Ze,ul)}var Es=Ar?function(e){return Ar.get(e)}:Gs;function Br(e){for(var t=e.name+"",n=bn[t],r=ce.call(bn,t)?n.length:0;r--;){var s=n[r],l=s.func;if(l==null||l==e)return s.name}return t}function En(e){var t=ce.call(a,"placeholder")?a:e;return t.placeholder}function U(){var e=a.iteratee||Hs;return e=e===Hs?Ca:e,arguments.length?e(arguments[0],arguments[1]):e}function kr(e,t){var n=e.__data__;return sg(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Ls(e){for(var t=Pe(e),n=t.length;n--;){var r=t[n],s=e[r];t[n]=[r,s,fl(s)]}return t}function un(e,t){var n=ad(e,t);return Ra(n)?n:i}function qp(e){var t=ce.call(e,tn),n=e[tn];try{e[tn]=i;var r=!0}catch{}var s=_r.call(e);return r&&(t?e[tn]=n:delete e[tn]),s}var Ts=es?function(e){return e==null?[]:(e=ge(e),Yt(es(e),function(t){return da.call(e,t)}))}:Ks,ul=es?function(e){for(var t=[];e;)Gt(t,Ts(e)),e=wr(e);return t}:Ks,Ue=ze;(ts&&Ue(new ts(new ArrayBuffer(1)))!=dn||Un&&Ue(new Un)!=Se||ns&&Ue(ns.resolve())!=Su||yn&&Ue(new yn)!=yt||zn&&Ue(new zn)!=Fn)&&(Ue=function(e){var t=ze(e),n=t==wt?e.constructor:i,r=n?an(n):"";if(r)switch(r){case Nd:return dn;case Pd:return Se;case Fd:return Su;case Wd:return yt;case Bd:return Fn}return t});function jp(e,t,n){for(var r=-1,s=n.length;++r<s;){var l=n[r],c=l.size;switch(l.type){case"drop":e+=c;break;case"dropRight":t-=c;break;case"take":t=ke(t,e+c);break;case"takeRight":e=De(e,t-c);break}}return{start:e,end:t}}function eg(e){var t=e.match(oh);return t?t[1].split(uh):[]}function al(e,t,n){t=Jt(t,e);for(var r=-1,s=t.length,l=!1;++r<s;){var c=Ct(t[r]);if(!(l=e!=null&&n(e,c)))break;e=e[c]}return l||++r!=s?l:(s=e==null?0:e.length,!!s&&$r(s)&&Wt(c,s)&&(J(e)||ln(e)))}function tg(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&ce.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ll(e){return typeof e.constructor=="function"&&!Vn(e)?xn(wr(e)):{}}function ng(e,t,n){var r=e.constructor;switch(t){case Wn:return ys(e);case Ke:case xe:return new r(+e);case dn:return kp(e,n);case Li:case Ti:case Ri:case Ci:case Oi:case Di:case Mi:case Ii:case Ni:return Ka(e,n);case Se:return new r;case ut:case Pn:return new r(e);case Nn:return Up(e);case yt:return new r;case or:return zp(e)}}function rg(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(sh,`{
/* [wrapped with `+t+`] */
`)}function ig(e){return J(e)||ln(e)||!!(pa&&e&&e[pa])}function Wt(e,t){var n=typeof e;return t=t==null?k:t,!!t&&(n=="number"||n!="symbol"&&_h.test(e))&&e>-1&&e%1==0&&e<t}function He(e,t,n){if(!ye(n))return!1;var r=typeof t;return(r=="number"?Xe(n)&&Wt(t,n.length):r=="string"&&t in n)?St(n[t],e):!1}function Rs(e,t){if(J(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||et(e)?!0:th.test(e)||!eh.test(e)||t!=null&&e in ge(t)}function sg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Cs(e){var t=Br(e),n=a[t];if(typeof n!="function"||!(t in se.prototype))return!1;if(e===n)return!0;var r=Es(n);return!!r&&e===r[0]}function og(e){return!!fa&&fa in e}var ug=pr?Bt:$s;function Vn(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||wn;return e===n}function fl(e){return e===e&&!ye(e)}function cl(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==i||e in ge(n))}}function ag(e){var t=Gr(e,function(r){return n.size===C&&n.clear(),r}),n=t.cache;return t}function lg(e,t){var n=e[1],r=t[1],s=n|r,l=s<(Y|ne|Be),c=r==Be&&n==ve||r==Be&&n==Ge&&e[7].length<=t[8]||r==(Be|Ge)&&t[7].length<=t[8]&&n==ve;if(!(l||c))return e;r&Y&&(e[2]=t[2],s|=n&Y?0:Le);var d=t[3];if(d){var _=e[3];e[3]=_?Xa(_,d,t[4]):d,e[4]=_?Kt(e[3],T):t[4]}return d=t[5],d&&(_=e[5],e[5]=_?Za(_,d,t[6]):d,e[6]=_?Kt(e[5],T):t[6]),d=t[7],d&&(e[7]=d),r&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]=s,e}function fg(e){var t=[];if(e!=null)for(var n in ge(e))t.push(n);return t}function cg(e){return _r.call(e)}function hl(e,t,n){return t=De(t===i?e.length-1:t,0),function(){for(var r=arguments,s=-1,l=De(r.length-t,0),c=m(l);++s<l;)c[s]=r[t+s];s=-1;for(var d=m(t+1);++s<t;)d[s]=r[s];return d[t]=n(c),Qe(e,this,d)}}function dl(e,t){return t.length<2?e:on(e,dt(t,0,-1))}function hg(e,t){for(var n=e.length,r=ke(t.length,n),s=$e(e);r--;){var l=t[r];e[r]=Wt(l,n)?s[l]:i}return e}function Os(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var pl=_l(Wa),Qn=Td||function(e,t){return Fe.setTimeout(e,t)},Ds=_l(Pp);function gl(e,t,n){var r=t+"";return Ds(e,rg(r,dg(eg(r),n)))}function _l(e){var t=0,n=0;return function(){var r=Dd(),s=X-(r-n);if(n=r,s>0){if(++t>=jt)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Ur(e,t){var n=-1,r=e.length,s=r-1;for(t=t===i?r:t;++n<t;){var l=ds(n,s),c=e[l];e[l]=e[n],e[n]=c}return e.length=t,e}var vl=ag(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(nh,function(n,r,s,l){t.push(s?l.replace(fh,"$1"):r||n)}),t});function Ct(e){if(typeof e=="string"||et(e))return e;var t=e+"";return t=="0"&&1/e==-O?"-0":t}function an(e){if(e!=null){try{return gr.call(e)}catch{}try{return e+""}catch{}}return""}function dg(e,t){return lt(it,function(n){var r="_."+n[0];t&n[1]&&!fr(e,r)&&e.push(r)}),e.sort()}function ml(e){if(e instanceof se)return e.clone();var t=new ct(e.__wrapped__,e.__chain__);return t.__actions__=$e(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function pg(e,t,n){(n?He(e,t,n):t===i)?t=1:t=De(V(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var s=0,l=0,c=m(xr(r/t));s<r;)c[l++]=dt(e,s,s+=t);return c}function gg(e){for(var t=-1,n=e==null?0:e.length,r=0,s=[];++t<n;){var l=e[t];l&&(s[r++]=l)}return s}function _g(){var e=arguments.length;if(!e)return[];for(var t=m(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Gt(J(n)?$e(n):[n],We(t,1))}var vg=ee(function(e,t){return Re(e)?Kn(e,We(t,1,Re,!0)):[]}),mg=ee(function(e,t){var n=pt(t);return Re(n)&&(n=i),Re(e)?Kn(e,We(t,1,Re,!0),U(n,2)):[]}),wg=ee(function(e,t){var n=pt(t);return Re(n)&&(n=i),Re(e)?Kn(e,We(t,1,Re,!0),i,n):[]});function yg(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===i?1:V(t),dt(e,t<0?0:t,r)):[]}function bg(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===i?1:V(t),t=r-t,dt(e,0,t<0?0:t)):[]}function xg(e,t){return e&&e.length?Mr(e,U(t,3),!0,!0):[]}function Sg(e,t){return e&&e.length?Mr(e,U(t,3),!0):[]}function Ag(e,t,n,r){var s=e==null?0:e.length;return s?(n&&typeof n!="number"&&He(e,t,n)&&(n=0,r=s),_p(e,t,n,r)):[]}function wl(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var s=n==null?0:V(n);return s<0&&(s=De(r+s,0)),cr(e,U(t,3),s)}function yl(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var s=r-1;return n!==i&&(s=V(n),s=n<0?De(r+s,0):ke(s,r-1)),cr(e,U(t,3),s,!0)}function bl(e){var t=e==null?0:e.length;return t?We(e,1):[]}function Eg(e){var t=e==null?0:e.length;return t?We(e,O):[]}function Lg(e,t){var n=e==null?0:e.length;return n?(t=t===i?1:V(t),We(e,t)):[]}function Tg(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var s=e[t];r[s[0]]=s[1]}return r}function xl(e){return e&&e.length?e[0]:i}function Rg(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var s=n==null?0:V(n);return s<0&&(s=De(r+s,0)),gn(e,t,s)}function Cg(e){var t=e==null?0:e.length;return t?dt(e,0,-1):[]}var Og=ee(function(e){var t=we(e,ms);return t.length&&t[0]===e[0]?as(t):[]}),Dg=ee(function(e){var t=pt(e),n=we(e,ms);return t===pt(n)?t=i:n.pop(),n.length&&n[0]===e[0]?as(n,U(t,2)):[]}),Mg=ee(function(e){var t=pt(e),n=we(e,ms);return t=typeof t=="function"?t:i,t&&n.pop(),n.length&&n[0]===e[0]?as(n,i,t):[]});function Ig(e,t){return e==null?"":Cd.call(e,t)}function pt(e){var t=e==null?0:e.length;return t?e[t-1]:i}function Ng(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var s=r;return n!==i&&(s=V(n),s=s<0?De(r+s,0):ke(s,r-1)),t===t?dd(e,t,s):cr(e,na,s,!0)}function Pg(e,t){return e&&e.length?Ia(e,V(t)):i}var Fg=ee(Sl);function Sl(e,t){return e&&e.length&&t&&t.length?hs(e,t):e}function Wg(e,t,n){return e&&e.length&&t&&t.length?hs(e,t,U(n,2)):e}function Bg(e,t,n){return e&&e.length&&t&&t.length?hs(e,t,i,n):e}var kg=Ft(function(e,t){var n=e==null?0:e.length,r=is(e,t);return Fa(e,we(t,function(s){return Wt(s,n)?+s:s}).sort($a)),r});function Ug(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,s=[],l=e.length;for(t=U(t,3);++r<l;){var c=e[r];t(c,r,e)&&(n.push(c),s.push(r))}return Fa(e,s),n}function Ms(e){return e==null?e:Id.call(e)}function zg(e,t,n){var r=e==null?0:e.length;return r?(n&&typeof n!="number"&&He(e,t,n)?(t=0,n=r):(t=t==null?0:V(t),n=n===i?r:V(n)),dt(e,t,n)):[]}function Hg(e,t){return Dr(e,t)}function Yg(e,t,n){return gs(e,t,U(n,2))}function Gg(e,t){var n=e==null?0:e.length;if(n){var r=Dr(e,t);if(r<n&&St(e[r],t))return r}return-1}function Kg(e,t){return Dr(e,t,!0)}function $g(e,t,n){return gs(e,t,U(n,2),!0)}function Xg(e,t){var n=e==null?0:e.length;if(n){var r=Dr(e,t,!0)-1;if(St(e[r],t))return r}return-1}function Zg(e){return e&&e.length?Ba(e):[]}function Jg(e,t){return e&&e.length?Ba(e,U(t,2)):[]}function Vg(e){var t=e==null?0:e.length;return t?dt(e,1,t):[]}function Qg(e,t,n){return e&&e.length?(t=n||t===i?1:V(t),dt(e,0,t<0?0:t)):[]}function qg(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===i?1:V(t),t=r-t,dt(e,t<0?0:t,r)):[]}function jg(e,t){return e&&e.length?Mr(e,U(t,3),!1,!0):[]}function e_(e,t){return e&&e.length?Mr(e,U(t,3)):[]}var t_=ee(function(e){return Zt(We(e,1,Re,!0))}),n_=ee(function(e){var t=pt(e);return Re(t)&&(t=i),Zt(We(e,1,Re,!0),U(t,2))}),r_=ee(function(e){var t=pt(e);return t=typeof t=="function"?t:i,Zt(We(e,1,Re,!0),i,t)});function i_(e){return e&&e.length?Zt(e):[]}function s_(e,t){return e&&e.length?Zt(e,U(t,2)):[]}function o_(e,t){return t=typeof t=="function"?t:i,e&&e.length?Zt(e,i,t):[]}function Is(e){if(!(e&&e.length))return[];var t=0;return e=Yt(e,function(n){if(Re(n))return t=De(n.length,t),!0}),Vi(t,function(n){return we(e,Xi(n))})}function Al(e,t){if(!(e&&e.length))return[];var n=Is(e);return t==null?n:we(n,function(r){return Qe(t,i,r)})}var u_=ee(function(e,t){return Re(e)?Kn(e,t):[]}),a_=ee(function(e){return vs(Yt(e,Re))}),l_=ee(function(e){var t=pt(e);return Re(t)&&(t=i),vs(Yt(e,Re),U(t,2))}),f_=ee(function(e){var t=pt(e);return t=typeof t=="function"?t:i,vs(Yt(e,Re),i,t)}),c_=ee(Is);function h_(e,t){return Ha(e||[],t||[],Gn)}function d_(e,t){return Ha(e||[],t||[],Zn)}var p_=ee(function(e){var t=e.length,n=t>1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Al(e,n)});function El(e){var t=a(e);return t.__chain__=!0,t}function g_(e,t){return t(e),e}function zr(e,t){return t(e)}var __=Ft(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,s=function(l){return is(l,e)};return t>1||this.__actions__.length||!(r instanceof se)||!Wt(n)?this.thru(s):(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:zr,args:[s],thisArg:i}),new ct(r,this.__chain__).thru(function(l){return t&&!l.length&&l.push(i),l}))});function v_(){return El(this)}function m_(){return new ct(this.value(),this.__chain__)}function w_(){this.__values__===i&&(this.__values__=kl(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function y_(){return this}function b_(e){for(var t,n=this;n instanceof Lr;){var r=ml(n);r.__index__=0,r.__values__=i,t?s.__wrapped__=r:t=r;var s=r;n=n.__wrapped__}return s.__wrapped__=e,t}function x_(){var e=this.__wrapped__;if(e instanceof se){var t=e;return this.__actions__.length&&(t=new se(this)),t=t.reverse(),t.__actions__.push({func:zr,args:[Ms],thisArg:i}),new ct(t,this.__chain__)}return this.thru(Ms)}function S_(){return za(this.__wrapped__,this.__actions__)}var A_=Ir(function(e,t,n){ce.call(e,n)?++e[n]:Nt(e,n,1)});function E_(e,t,n){var r=J(e)?ea:gp;return n&&He(e,t,n)&&(t=i),r(e,U(t,3))}function L_(e,t){var n=J(e)?Yt:Aa;return n(e,U(t,3))}var T_=qa(wl),R_=qa(yl);function C_(e,t){return We(Hr(e,t),1)}function O_(e,t){return We(Hr(e,t),O)}function D_(e,t,n){return n=n===i?1:V(n),We(Hr(e,t),n)}function Ll(e,t){var n=J(e)?lt:Xt;return n(e,U(t,3))}function Tl(e,t){var n=J(e)?Vh:Sa;return n(e,U(t,3))}var M_=Ir(function(e,t,n){ce.call(e,n)?e[n].push(t):Nt(e,n,[t])});function I_(e,t,n,r){e=Xe(e)?e:Tn(e),n=n&&!r?V(n):0;var s=e.length;return n<0&&(n=De(s+n,0)),Xr(e)?n<=s&&e.indexOf(t,n)>-1:!!s&&gn(e,t,n)>-1}var N_=ee(function(e,t,n){var r=-1,s=typeof t=="function",l=Xe(e)?m(e.length):[];return Xt(e,function(c){l[++r]=s?Qe(t,c,n):$n(c,t,n)}),l}),P_=Ir(function(e,t,n){Nt(e,n,t)});function Hr(e,t){var n=J(e)?we:Oa;return n(e,U(t,3))}function F_(e,t,n,r){return e==null?[]:(J(t)||(t=t==null?[]:[t]),n=r?i:n,J(n)||(n=n==null?[]:[n]),Na(e,t,n))}var W_=Ir(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function B_(e,t,n){var r=J(e)?Ki:ia,s=arguments.length<3;return r(e,U(t,4),n,s,Xt)}function k_(e,t,n){var r=J(e)?Qh:ia,s=arguments.length<3;return r(e,U(t,4),n,s,Sa)}function U_(e,t){var n=J(e)?Yt:Aa;return n(e,Kr(U(t,3)))}function z_(e){var t=J(e)?wa:Ip;return t(e)}function H_(e,t,n){(n?He(e,t,n):t===i)?t=1:t=V(t);var r=J(e)?fp:Np;return r(e,t)}function Y_(e){var t=J(e)?cp:Fp;return t(e)}function G_(e){if(e==null)return 0;if(Xe(e))return Xr(e)?vn(e):e.length;var t=Ue(e);return t==Se||t==yt?e.size:fs(e).length}function K_(e,t,n){var r=J(e)?$i:Wp;return n&&He(e,t,n)&&(t=i),r(e,U(t,3))}var $_=ee(function(e,t){if(e==null)return[];var n=t.length;return n>1&&He(e,t[0],t[1])?t=[]:n>2&&He(t[0],t[1],t[2])&&(t=[t[0]]),Na(e,We(t,1),[])}),Yr=Ld||function(){return Fe.Date.now()};function X_(e,t){if(typeof t!="function")throw new ft(v);return e=V(e),function(){if(--e<1)return t.apply(this,arguments)}}function Rl(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,Pt(e,Be,i,i,i,i,t)}function Cl(e,t){var n;if(typeof t!="function")throw new ft(v);return e=V(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Ns=ee(function(e,t,n){var r=Y;if(n.length){var s=Kt(n,En(Ns));r|=fe}return Pt(e,r,t,n,s)}),Ol=ee(function(e,t,n){var r=Y|ne;if(n.length){var s=Kt(n,En(Ol));r|=fe}return Pt(t,r,e,n,s)});function Dl(e,t,n){t=n?i:t;var r=Pt(e,ve,i,i,i,i,i,t);return r.placeholder=Dl.placeholder,r}function Ml(e,t,n){t=n?i:t;var r=Pt(e,he,i,i,i,i,i,t);return r.placeholder=Ml.placeholder,r}function Il(e,t,n){var r,s,l,c,d,_,b=0,x=!1,S=!1,D=!0;if(typeof e!="function")throw new ft(v);t=gt(t)||0,ye(n)&&(x=!!n.leading,S="maxWait"in n,l=S?De(gt(n.maxWait)||0,t):l,D="trailing"in n?!!n.trailing:D);function B(Ce){var At=r,Ut=s;return r=s=i,b=Ce,c=e.apply(Ut,At),c}function z(Ce){return b=Ce,d=Qn(re,t),x?B(Ce):c}function q(Ce){var At=Ce-_,Ut=Ce-b,ql=t-At;return S?ke(ql,l-Ut):ql}function H(Ce){var At=Ce-_,Ut=Ce-b;return _===i||At>=t||At<0||S&&Ut>=l}function re(){var Ce=Yr();if(H(Ce))return ue(Ce);d=Qn(re,q(Ce))}function ue(Ce){return d=i,D&&r?B(Ce):(r=s=i,c)}function tt(){d!==i&&Ya(d),b=0,r=_=s=d=i}function Ye(){return d===i?c:ue(Yr())}function nt(){var Ce=Yr(),At=H(Ce);if(r=arguments,s=this,_=Ce,At){if(d===i)return z(_);if(S)return Ya(d),d=Qn(re,t),B(_)}return d===i&&(d=Qn(re,t)),c}return nt.cancel=tt,nt.flush=Ye,nt}var Z_=ee(function(e,t){return xa(e,1,t)}),J_=ee(function(e,t,n){return xa(e,gt(t)||0,n)});function V_(e){return Pt(e,de)}function Gr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new ft(v);var n=function(){var r=arguments,s=t?t.apply(this,r):r[0],l=n.cache;if(l.has(s))return l.get(s);var c=e.apply(this,r);return n.cache=l.set(s,c)||l,c};return n.cache=new(Gr.Cache||It),n}Gr.Cache=It;function Kr(e){if(typeof e!="function")throw new ft(v);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 Q_(e){return Cl(2,e)}var q_=Bp(function(e,t){t=t.length==1&&J(t[0])?we(t[0],qe(U())):we(We(t,1),qe(U()));var n=t.length;return ee(function(r){for(var s=-1,l=ke(r.length,n);++s<l;)r[s]=t[s].call(this,r[s]);return Qe(e,this,r)})}),Ps=ee(function(e,t){var n=Kt(t,En(Ps));return Pt(e,fe,i,t,n)}),Nl=ee(function(e,t){var n=Kt(t,En(Nl));return Pt(e,Me,i,t,n)}),j_=Ft(function(e,t){return Pt(e,Ge,i,i,i,t)});function ev(e,t){if(typeof e!="function")throw new ft(v);return t=t===i?t:V(t),ee(e,t)}function tv(e,t){if(typeof e!="function")throw new ft(v);return t=t==null?0:De(V(t),0),ee(function(n){var r=n[t],s=Vt(n,0,t);return r&&Gt(s,r),Qe(e,this,s)})}function nv(e,t,n){var r=!0,s=!0;if(typeof e!="function")throw new ft(v);return ye(n)&&(r="leading"in n?!!n.leading:r,s="trailing"in n?!!n.trailing:s),Il(e,t,{leading:r,maxWait:t,trailing:s})}function rv(e){return Rl(e,1)}function iv(e,t){return Ps(ws(t),e)}function sv(){if(!arguments.length)return[];var e=arguments[0];return J(e)?e:[e]}function ov(e){return ht(e,R)}function uv(e,t){return t=typeof t=="function"?t:i,ht(e,R,t)}function av(e){return ht(e,L|R)}function lv(e,t){return t=typeof t=="function"?t:i,ht(e,L|R,t)}function fv(e,t){return t==null||ba(e,t,Pe(t))}function St(e,t){return e===t||e!==e&&t!==t}var cv=Wr(us),hv=Wr(function(e,t){return e>=t}),ln=Ta(function(){return arguments}())?Ta:function(e){return Ae(e)&&ce.call(e,"callee")&&!da.call(e,"callee")},J=m.isArray,dv=Zu?qe(Zu):bp;function Xe(e){return e!=null&&$r(e.length)&&!Bt(e)}function Re(e){return Ae(e)&&Xe(e)}function pv(e){return e===!0||e===!1||Ae(e)&&ze(e)==Ke}var Qt=Rd||$s,gv=Ju?qe(Ju):xp;function _v(e){return Ae(e)&&e.nodeType===1&&!qn(e)}function vv(e){if(e==null)return!0;if(Xe(e)&&(J(e)||typeof e=="string"||typeof e.splice=="function"||Qt(e)||Ln(e)||ln(e)))return!e.length;var t=Ue(e);if(t==Se||t==yt)return!e.size;if(Vn(e))return!fs(e).length;for(var n in e)if(ce.call(e,n))return!1;return!0}function mv(e,t){return Xn(e,t)}function wv(e,t,n){n=typeof n=="function"?n:i;var r=n?n(e,t):i;return r===i?Xn(e,t,i,n):!!r}function Fs(e){if(!Ae(e))return!1;var t=ze(e);return t==Lt||t==ot||typeof e.message=="string"&&typeof e.name=="string"&&!qn(e)}function yv(e){return typeof e=="number"&&ga(e)}function Bt(e){if(!ye(e))return!1;var t=ze(e);return t==mt||t==sr||t==vt||t==Gc}function Pl(e){return typeof e=="number"&&e==V(e)}function $r(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=k}function ye(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ae(e){return e!=null&&typeof e=="object"}var Fl=Vu?qe(Vu):Ap;function bv(e,t){return e===t||ls(e,t,Ls(t))}function xv(e,t,n){return n=typeof n=="function"?n:i,ls(e,t,Ls(t),n)}function Sv(e){return Wl(e)&&e!=+e}function Av(e){if(ug(e))throw new Z(p);return Ra(e)}function Ev(e){return e===null}function Lv(e){return e==null}function Wl(e){return typeof e=="number"||Ae(e)&&ze(e)==ut}function qn(e){if(!Ae(e)||ze(e)!=wt)return!1;var t=wr(e);if(t===null)return!0;var n=ce.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&gr.call(n)==xd}var Ws=Qu?qe(Qu):Ep;function Tv(e){return Pl(e)&&e>=-k&&e<=k}var Bl=qu?qe(qu):Lp;function Xr(e){return typeof e=="string"||!J(e)&&Ae(e)&&ze(e)==Pn}function et(e){return typeof e=="symbol"||Ae(e)&&ze(e)==or}var Ln=ju?qe(ju):Tp;function Rv(e){return e===i}function Cv(e){return Ae(e)&&Ue(e)==Fn}function Ov(e){return Ae(e)&&ze(e)==$c}var Dv=Wr(cs),Mv=Wr(function(e,t){return e<=t});function kl(e){if(!e)return[];if(Xe(e))return Xr(e)?bt(e):$e(e);if(kn&&e[kn])return fd(e[kn]());var t=Ue(e),n=t==Se?qi:t==yt?hr:Tn;return n(e)}function kt(e){if(!e)return e===0?e:0;if(e=gt(e),e===O||e===-O){var t=e<0?-1:1;return t*G}return e===e?e:0}function V(e){var t=kt(e),n=t%1;return t===t?n?t-n:t:0}function Ul(e){return e?sn(V(e),0,Q):0}function gt(e){if(typeof e=="number")return e;if(et(e))return oe;if(ye(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ye(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=sa(e);var n=dh.test(e);return n||gh.test(e)?Xh(e.slice(2),n?2:8):hh.test(e)?oe:+e}function zl(e){return Rt(e,Ze(e))}function Iv(e){return e?sn(V(e),-k,k):e===0?e:0}function le(e){return e==null?"":je(e)}var Nv=Sn(function(e,t){if(Vn(t)||Xe(t)){Rt(t,Pe(t),e);return}for(var n in t)ce.call(t,n)&&Gn(e,n,t[n])}),Hl=Sn(function(e,t){Rt(t,Ze(t),e)}),Zr=Sn(function(e,t,n,r){Rt(t,Ze(t),e,r)}),Pv=Sn(function(e,t,n,r){Rt(t,Pe(t),e,r)}),Fv=Ft(is);function Wv(e,t){var n=xn(e);return t==null?n:ya(n,t)}var Bv=ee(function(e,t){e=ge(e);var n=-1,r=t.length,s=r>2?t[2]:i;for(s&&He(t[0],t[1],s)&&(r=1);++n<r;)for(var l=t[n],c=Ze(l),d=-1,_=c.length;++d<_;){var b=c[d],x=e[b];(x===i||St(x,wn[b])&&!ce.call(e,b))&&(e[b]=l[b])}return e}),kv=ee(function(e){return e.push(i,sl),Qe(Yl,i,e)});function Uv(e,t){return ta(e,U(t,3),Tt)}function zv(e,t){return ta(e,U(t,3),os)}function Hv(e,t){return e==null?e:ss(e,U(t,3),Ze)}function Yv(e,t){return e==null?e:Ea(e,U(t,3),Ze)}function Gv(e,t){return e&&Tt(e,U(t,3))}function Kv(e,t){return e&&os(e,U(t,3))}function $v(e){return e==null?[]:Cr(e,Pe(e))}function Xv(e){return e==null?[]:Cr(e,Ze(e))}function Bs(e,t,n){var r=e==null?i:on(e,t);return r===i?n:r}function Zv(e,t){return e!=null&&al(e,t,vp)}function ks(e,t){return e!=null&&al(e,t,mp)}var Jv=el(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=_r.call(t)),e[t]=n},zs(Je)),Vv=el(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=_r.call(t)),ce.call(e,t)?e[t].push(n):e[t]=[n]},U),Qv=ee($n);function Pe(e){return Xe(e)?ma(e):fs(e)}function Ze(e){return Xe(e)?ma(e,!0):Rp(e)}function qv(e,t){var n={};return t=U(t,3),Tt(e,function(r,s,l){Nt(n,t(r,s,l),r)}),n}function jv(e,t){var n={};return t=U(t,3),Tt(e,function(r,s,l){Nt(n,s,t(r,s,l))}),n}var e0=Sn(function(e,t,n){Or(e,t,n)}),Yl=Sn(function(e,t,n,r){Or(e,t,n,r)}),t0=Ft(function(e,t){var n={};if(e==null)return n;var r=!1;t=we(t,function(l){return l=Jt(l,e),r||(r=l.length>1),l}),Rt(e,As(e),n),r&&(n=ht(n,L|N|R,Jp));for(var s=t.length;s--;)_s(n,t[s]);return n});function n0(e,t){return Gl(e,Kr(U(t)))}var r0=Ft(function(e,t){return e==null?{}:Op(e,t)});function Gl(e,t){if(e==null)return{};var n=we(As(e),function(r){return[r]});return t=U(t),Pa(e,n,function(r,s){return t(r,s[0])})}function i0(e,t,n){t=Jt(t,e);var r=-1,s=t.length;for(s||(s=1,e=i);++r<s;){var l=e==null?i:e[Ct(t[r])];l===i&&(r=s,l=n),e=Bt(l)?l.call(e):l}return e}function s0(e,t,n){return e==null?e:Zn(e,t,n)}function o0(e,t,n,r){return r=typeof r=="function"?r:i,e==null?e:Zn(e,t,n,r)}var Kl=rl(Pe),$l=rl(Ze);function u0(e,t,n){var r=J(e),s=r||Qt(e)||Ln(e);if(t=U(t,4),n==null){var l=e&&e.constructor;s?n=r?new l:[]:ye(e)?n=Bt(l)?xn(wr(e)):{}:n={}}return(s?lt:Tt)(e,function(c,d,_){return t(n,c,d,_)}),n}function a0(e,t){return e==null?!0:_s(e,t)}function l0(e,t,n){return e==null?e:Ua(e,t,ws(n))}function f0(e,t,n,r){return r=typeof r=="function"?r:i,e==null?e:Ua(e,t,ws(n),r)}function Tn(e){return e==null?[]:Qi(e,Pe(e))}function c0(e){return e==null?[]:Qi(e,Ze(e))}function h0(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=gt(n),n=n===n?n:0),t!==i&&(t=gt(t),t=t===t?t:0),sn(gt(e),t,n)}function d0(e,t,n){return t=kt(t),n===i?(n=t,t=0):n=kt(n),e=gt(e),wp(e,t,n)}function p0(e,t,n){if(n&&typeof n!="boolean"&&He(e,t,n)&&(t=n=i),n===i&&(typeof t=="boolean"?(n=t,t=i):typeof e=="boolean"&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=kt(e),t===i?(t=e,e=0):t=kt(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var s=_a();return ke(e+s*(t-e+$h("1e-"+((s+"").length-1))),t)}return ds(e,t)}var g0=An(function(e,t,n){return t=t.toLowerCase(),e+(n?Xl(t):t)});function Xl(e){return Us(le(e).toLowerCase())}function Zl(e){return e=le(e),e&&e.replace(vh,sd).replace(Fh,"")}function _0(e,t,n){e=le(e),t=je(t);var r=e.length;n=n===i?r:sn(V(n),0,r);var s=n;return n-=t.length,n>=0&&e.slice(n,s)==t}function v0(e){return e=le(e),e&&Qc.test(e)?e.replace(Eu,od):e}function m0(e){return e=le(e),e&&rh.test(e)?e.replace(Pi,"\\$&"):e}var w0=An(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),y0=An(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),b0=Qa("toLowerCase");function x0(e,t,n){e=le(e),t=V(t);var r=t?vn(e):0;if(!t||r>=t)return e;var s=(t-r)/2;return Fr(Sr(s),n)+e+Fr(xr(s),n)}function S0(e,t,n){e=le(e),t=V(t);var r=t?vn(e):0;return t&&r<t?e+Fr(t-r,n):e}function A0(e,t,n){e=le(e),t=V(t);var r=t?vn(e):0;return t&&r<t?Fr(t-r,n)+e:e}function E0(e,t,n){return n||t==null?t=0:t&&(t=+t),Md(le(e).replace(Fi,""),t||0)}function L0(e,t,n){return(n?He(e,t,n):t===i)?t=1:t=V(t),ps(le(e),t)}function T0(){var e=arguments,t=le(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var R0=An(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function C0(e,t,n){return n&&typeof n!="number"&&He(e,t,n)&&(t=n=i),n=n===i?Q:n>>>0,n?(e=le(e),e&&(typeof t=="string"||t!=null&&!Ws(t))&&(t=je(t),!t&&_n(e))?Vt(bt(e),0,n):e.split(t,n)):[]}var O0=An(function(e,t,n){return e+(n?" ":"")+Us(t)});function D0(e,t,n){return e=le(e),n=n==null?0:sn(V(n),0,e.length),t=je(t),e.slice(n,n+t.length)==t}function M0(e,t,n){var r=a.templateSettings;n&&He(e,t,n)&&(t=i),e=le(e),t=Zr({},t,r,il);var s=Zr({},t.imports,r.imports,il),l=Pe(s),c=Qi(s,l),d,_,b=0,x=t.interpolate||ur,S="__p += '",D=ji((t.escape||ur).source+"|"+x.source+"|"+(x===Lu?ch:ur).source+"|"+(t.evaluate||ur).source+"|$","g"),B="//# sourceURL="+(ce.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zh+"]")+`
`;e.replace(D,function(H,re,ue,tt,Ye,nt){return ue||(ue=tt),S+=e.slice(b,nt).replace(mh,ud),re&&(d=!0,S+=`' +
__e(`+re+`) +
'`),Ye&&(_=!0,S+=`';
`+Ye+`;
__p += '`),ue&&(S+=`' +
((__t = (`+ue+`)) == null ? '' : __t) +
'`),b=nt+H.length,H}),S+=`';
`;var z=ce.call(t,"variable")&&t.variable;if(!z)S=`with (obj) {
`+S+`
}
`;else if(lh.test(z))throw new Z(y);S=(_?S.replace(Xc,""):S).replace(Zc,"$1").replace(Jc,"$1;"),S="function("+(z||"obj")+`) {
`+(z?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(d?", __e = _.escape":"")+(_?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+S+`return __p
}`;var q=Vl(function(){return ae(l,B+"return "+S).apply(i,c)});if(q.source=S,Fs(q))throw q;return q}function I0(e){return le(e).toLowerCase()}function N0(e){return le(e).toUpperCase()}function P0(e,t,n){if(e=le(e),e&&(n||t===i))return sa(e);if(!e||!(t=je(t)))return e;var r=bt(e),s=bt(t),l=oa(r,s),c=ua(r,s)+1;return Vt(r,l,c).join("")}function F0(e,t,n){if(e=le(e),e&&(n||t===i))return e.slice(0,la(e)+1);if(!e||!(t=je(t)))return e;var r=bt(e),s=ua(r,bt(t))+1;return Vt(r,0,s).join("")}function W0(e,t,n){if(e=le(e),e&&(n||t===i))return e.replace(Fi,"");if(!e||!(t=je(t)))return e;var r=bt(e),s=oa(r,bt(t));return Vt(r,s).join("")}function B0(e,t){var n=ie,r=Ie;if(ye(t)){var s="separator"in t?t.separator:s;n="length"in t?V(t.length):n,r="omission"in t?je(t.omission):r}e=le(e);var l=e.length;if(_n(e)){var c=bt(e);l=c.length}if(n>=l)return e;var d=n-vn(r);if(d<1)return r;var _=c?Vt(c,0,d).join(""):e.slice(0,d);if(s===i)return _+r;if(c&&(d+=_.length-d),Ws(s)){if(e.slice(d).search(s)){var b,x=_;for(s.global||(s=ji(s.source,le(Tu.exec(s))+"g")),s.lastIndex=0;b=s.exec(x);)var S=b.index;_=_.slice(0,S===i?d:S)}}else if(e.indexOf(je(s),d)!=d){var D=_.lastIndexOf(s);D>-1&&(_=_.slice(0,D))}return _+r}function k0(e){return e=le(e),e&&Vc.test(e)?e.replace(Au,pd):e}var U0=An(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Us=Qa("toUpperCase");function Jl(e,t,n){return e=le(e),t=n?i:t,t===i?ld(e)?vd(e):ed(e):e.match(t)||[]}var Vl=ee(function(e,t){try{return Qe(e,i,t)}catch(n){return Fs(n)?n:new Z(n)}}),z0=Ft(function(e,t){return lt(t,function(n){n=Ct(n),Nt(e,n,Ns(e[n],e))}),e});function H0(e){var t=e==null?0:e.length,n=U();return e=t?we(e,function(r){if(typeof r[1]!="function")throw new ft(v);return[n(r[0]),r[1]]}):[],ee(function(r){for(var s=-1;++s<t;){var l=e[s];if(Qe(l[0],this,r))return Qe(l[1],this,r)}})}function Y0(e){return pp(ht(e,L))}function zs(e){return function(){return e}}function G0(e,t){return e==null||e!==e?t:e}var K0=ja(),$0=ja(!0);function Je(e){return e}function Hs(e){return Ca(typeof e=="function"?e:ht(e,L))}function X0(e){return Da(ht(e,L))}function Z0(e,t){return Ma(e,ht(t,L))}var J0=ee(function(e,t){return function(n){return $n(n,e,t)}}),V0=ee(function(e,t){return function(n){return $n(e,n,t)}});function Ys(e,t,n){var r=Pe(t),s=Cr(t,r);n==null&&!(ye(t)&&(s.length||!r.length))&&(n=t,t=e,e=this,s=Cr(t,Pe(t)));var l=!(ye(n)&&"chain"in n)||!!n.chain,c=Bt(e);return lt(s,function(d){var _=t[d];e[d]=_,c&&(e.prototype[d]=function(){var b=this.__chain__;if(l||b){var x=e(this.__wrapped__),S=x.__actions__=$e(this.__actions__);return S.push({func:_,args:arguments,thisArg:e}),x.__chain__=b,x}return _.apply(e,Gt([this.value()],arguments))})}),e}function Q0(){return Fe._===this&&(Fe._=Sd),this}function Gs(){}function q0(e){return e=V(e),ee(function(t){return Ia(t,e)})}var j0=bs(we),em=bs(ea),tm=bs($i);function Ql(e){return Rs(e)?Xi(Ct(e)):Dp(e)}function nm(e){return function(t){return e==null?i:on(e,t)}}var rm=tl(),im=tl(!0);function Ks(){return[]}function $s(){return!1}function sm(){return{}}function om(){return""}function um(){return!0}function am(e,t){if(e=V(e),e<1||e>k)return[];var n=Q,r=ke(e,Q);t=U(t),e-=Q;for(var s=Vi(r,t);++n<e;)t(n);return s}function lm(e){return J(e)?we(e,Ct):et(e)?[e]:$e(vl(le(e)))}function fm(e){var t=++bd;return le(e)+t}var cm=Pr(function(e,t){return e+t},0),hm=xs("ceil"),dm=Pr(function(e,t){return e/t},1),pm=xs("floor");function gm(e){return e&&e.length?Rr(e,Je,us):i}function _m(e,t){return e&&e.length?Rr(e,U(t,2),us):i}function vm(e){return ra(e,Je)}function mm(e,t){return ra(e,U(t,2))}function wm(e){return e&&e.length?Rr(e,Je,cs):i}function ym(e,t){return e&&e.length?Rr(e,U(t,2),cs):i}var bm=Pr(function(e,t){return e*t},1),xm=xs("round"),Sm=Pr(function(e,t){return e-t},0);function Am(e){return e&&e.length?Ji(e,Je):0}function Em(e,t){return e&&e.length?Ji(e,U(t,2)):0}return a.after=X_,a.ary=Rl,a.assign=Nv,a.assignIn=Hl,a.assignInWith=Zr,a.assignWith=Pv,a.at=Fv,a.before=Cl,a.bind=Ns,a.bindAll=z0,a.bindKey=Ol,a.castArray=sv,a.chain=El,a.chunk=pg,a.compact=gg,a.concat=_g,a.cond=H0,a.conforms=Y0,a.constant=zs,a.countBy=A_,a.create=Wv,a.curry=Dl,a.curryRight=Ml,a.debounce=Il,a.defaults=Bv,a.defaultsDeep=kv,a.defer=Z_,a.delay=J_,a.difference=vg,a.differenceBy=mg,a.differenceWith=wg,a.drop=yg,a.dropRight=bg,a.dropRightWhile=xg,a.dropWhile=Sg,a.fill=Ag,a.filter=L_,a.flatMap=C_,a.flatMapDeep=O_,a.flatMapDepth=D_,a.flatten=bl,a.flattenDeep=Eg,a.flattenDepth=Lg,a.flip=V_,a.flow=K0,a.flowRight=$0,a.fromPairs=Tg,a.functions=$v,a.functionsIn=Xv,a.groupBy=M_,a.initial=Cg,a.intersection=Og,a.intersectionBy=Dg,a.intersectionWith=Mg,a.invert=Jv,a.invertBy=Vv,a.invokeMap=N_,a.iteratee=Hs,a.keyBy=P_,a.keys=Pe,a.keysIn=Ze,a.map=Hr,a.mapKeys=qv,a.mapValues=jv,a.matches=X0,a.matchesProperty=Z0,a.memoize=Gr,a.merge=e0,a.mergeWith=Yl,a.method=J0,a.methodOf=V0,a.mixin=Ys,a.negate=Kr,a.nthArg=q0,a.omit=t0,a.omitBy=n0,a.once=Q_,a.orderBy=F_,a.over=j0,a.overArgs=q_,a.overEvery=em,a.overSome=tm,a.partial=Ps,a.partialRight=Nl,a.partition=W_,a.pick=r0,a.pickBy=Gl,a.property=Ql,a.propertyOf=nm,a.pull=Fg,a.pullAll=Sl,a.pullAllBy=Wg,a.pullAllWith=Bg,a.pullAt=kg,a.range=rm,a.rangeRight=im,a.rearg=j_,a.reject=U_,a.remove=Ug,a.rest=ev,a.reverse=Ms,a.sampleSize=H_,a.set=s0,a.setWith=o0,a.shuffle=Y_,a.slice=zg,a.sortBy=$_,a.sortedUniq=Zg,a.sortedUniqBy=Jg,a.split=C0,a.spread=tv,a.tail=Vg,a.take=Qg,a.takeRight=qg,a.takeRightWhile=jg,a.takeWhile=e_,a.tap=g_,a.throttle=nv,a.thru=zr,a.toArray=kl,a.toPairs=Kl,a.toPairsIn=$l,a.toPath=lm,a.toPlainObject=zl,a.transform=u0,a.unary=rv,a.union=t_,a.unionBy=n_,a.unionWith=r_,a.uniq=i_,a.uniqBy=s_,a.uniqWith=o_,a.unset=a0,a.unzip=Is,a.unzipWith=Al,a.update=l0,a.updateWith=f0,a.values=Tn,a.valuesIn=c0,a.without=u_,a.words=Jl,a.wrap=iv,a.xor=a_,a.xorBy=l_,a.xorWith=f_,a.zip=c_,a.zipObject=h_,a.zipObjectDeep=d_,a.zipWith=p_,a.entries=Kl,a.entriesIn=$l,a.extend=Hl,a.extendWith=Zr,Ys(a,a),a.add=cm,a.attempt=Vl,a.camelCase=g0,a.capitalize=Xl,a.ceil=hm,a.clamp=h0,a.clone=ov,a.cloneDeep=av,a.cloneDeepWith=lv,a.cloneWith=uv,a.conformsTo=fv,a.deburr=Zl,a.defaultTo=G0,a.divide=dm,a.endsWith=_0,a.eq=St,a.escape=v0,a.escapeRegExp=m0,a.every=E_,a.find=T_,a.findIndex=wl,a.findKey=Uv,a.findLast=R_,a.findLastIndex=yl,a.findLastKey=zv,a.floor=pm,a.forEach=Ll,a.forEachRight=Tl,a.forIn=Hv,a.forInRight=Yv,a.forOwn=Gv,a.forOwnRight=Kv,a.get=Bs,a.gt=cv,a.gte=hv,a.has=Zv,a.hasIn=ks,a.head=xl,a.identity=Je,a.includes=I_,a.indexOf=Rg,a.inRange=d0,a.invoke=Qv,a.isArguments=ln,a.isArray=J,a.isArrayBuffer=dv,a.isArrayLike=Xe,a.isArrayLikeObject=Re,a.isBoolean=pv,a.isBuffer=Qt,a.isDate=gv,a.isElement=_v,a.isEmpty=vv,a.isEqual=mv,a.isEqualWith=wv,a.isError=Fs,a.isFinite=yv,a.isFunction=Bt,a.isInteger=Pl,a.isLength=$r,a.isMap=Fl,a.isMatch=bv,a.isMatchWith=xv,a.isNaN=Sv,a.isNative=Av,a.isNil=Lv,a.isNull=Ev,a.isNumber=Wl,a.isObject=ye,a.isObjectLike=Ae,a.isPlainObject=qn,a.isRegExp=Ws,a.isSafeInteger=Tv,a.isSet=Bl,a.isString=Xr,a.isSymbol=et,a.isTypedArray=Ln,a.isUndefined=Rv,a.isWeakMap=Cv,a.isWeakSet=Ov,a.join=Ig,a.kebabCase=w0,a.last=pt,a.lastIndexOf=Ng,a.lowerCase=y0,a.lowerFirst=b0,a.lt=Dv,a.lte=Mv,a.max=gm,a.maxBy=_m,a.mean=vm,a.meanBy=mm,a.min=wm,a.minBy=ym,a.stubArray=Ks,a.stubFalse=$s,a.stubObject=sm,a.stubString=om,a.stubTrue=um,a.multiply=bm,a.nth=Pg,a.noConflict=Q0,a.noop=Gs,a.now=Yr,a.pad=x0,a.padEnd=S0,a.padStart=A0,a.parseInt=E0,a.random=p0,a.reduce=B_,a.reduceRight=k_,a.repeat=L0,a.replace=T0,a.result=i0,a.round=xm,a.runInContext=g,a.sample=z_,a.size=G_,a.snakeCase=R0,a.some=K_,a.sortedIndex=Hg,a.sortedIndexBy=Yg,a.sortedIndexOf=Gg,a.sortedLastIndex=Kg,a.sortedLastIndexBy=$g,a.sortedLastIndexOf=Xg,a.startCase=O0,a.startsWith=D0,a.subtract=Sm,a.sum=Am,a.sumBy=Em,a.template=M0,a.times=am,a.toFinite=kt,a.toInteger=V,a.toLength=Ul,a.toLower=I0,a.toNumber=gt,a.toSafeInteger=Iv,a.toString=le,a.toUpper=N0,a.trim=P0,a.trimEnd=F0,a.trimStart=W0,a.truncate=B0,a.unescape=k0,a.uniqueId=fm,a.upperCase=U0,a.upperFirst=Us,a.each=Ll,a.eachRight=Tl,a.first=xl,Ys(a,function(){var e={};return Tt(a,function(t,n){ce.call(a.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),a.VERSION=f,lt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){a[e].placeholder=a}),lt(["drop","take"],function(e,t){se.prototype[e]=function(n){n=n===i?1:De(V(n),0);var r=this.__filtered__&&!t?new se(this):this.clone();return r.__filtered__?r.__takeCount__=ke(n,r.__takeCount__):r.__views__.push({size:ke(n,Q),type:e+(r.__dir__<0?"Right":"")}),r},se.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),lt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==I||n==K;se.prototype[e]=function(s){var l=this.clone();return l.__iteratees__.push({iteratee:U(s,3),type:n}),l.__filtered__=l.__filtered__||r,l}}),lt(["head","last"],function(e,t){var n="take"+(t?"Right":"");se.prototype[e]=function(){return this[n](1).value()[0]}}),lt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");se.prototype[e]=function(){return this.__filtered__?new se(this):this[n](1)}}),se.prototype.compact=function(){return this.filter(Je)},se.prototype.find=function(e){return this.filter(e).head()},se.prototype.findLast=function(e){return this.reverse().find(e)},se.prototype.invokeMap=ee(function(e,t){return typeof e=="function"?new se(this):this.map(function(n){return $n(n,e,t)})}),se.prototype.reject=function(e){return this.filter(Kr(U(e)))},se.prototype.slice=function(e,t){e=V(e);var n=this;return n.__filtered__&&(e>0||t<0)?new se(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=V(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},se.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},se.prototype.toArray=function(){return this.take(Q)},Tt(se.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),s=a[r?"take"+(t=="last"?"Right":""):t],l=r||/^find/.test(t);!s||(a.prototype[t]=function(){var c=this.__wrapped__,d=r?[1]:arguments,_=c instanceof se,b=d[0],x=_||J(c),S=function(re){var ue=s.apply(a,Gt([re],d));return r&&D?ue[0]:ue};x&&n&&typeof b=="function"&&b.length!=1&&(_=x=!1);var D=this.__chain__,B=!!this.__actions__.length,z=l&&!D,q=_&&!B;if(!l&&x){c=q?c:new se(this);var H=e.apply(c,d);return H.__actions__.push({func:zr,args:[S],thisArg:i}),new ct(H,D)}return z&&q?e.apply(this,d):(H=this.thru(S),z?r?H.value()[0]:H.value():H)})}),lt(["pop","push","shift","sort","splice","unshift"],function(e){var t=dr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);a.prototype[e]=function(){var s=arguments;if(r&&!this.__chain__){var l=this.value();return t.apply(J(l)?l:[],s)}return this[n](function(c){return t.apply(J(c)?c:[],s)})}}),Tt(se.prototype,function(e,t){var n=a[t];if(n){var r=n.name+"";ce.call(bn,r)||(bn[r]=[]),bn[r].push({name:t,func:n})}}),bn[Nr(i,ne).name]=[{name:"wrapper",func:i}],se.prototype.clone=kd,se.prototype.reverse=Ud,se.prototype.value=zd,a.prototype.at=__,a.prototype.chain=v_,a.prototype.commit=m_,a.prototype.next=w_,a.prototype.plant=b_,a.prototype.reverse=x_,a.prototype.toJSON=a.prototype.valueOf=a.prototype.value=S_,a.prototype.first=a.prototype.head,kn&&(a.prototype[kn]=y_),a},mn=md();en?((en.exports=mn)._=mn,Hi._=mn):Fe._=mn}).call(fn)})(_i,_i.exports);function pc(u){if(!u)return"00:00";const o=Math.trunc(u/3600);u-=o*3600;const i=Math.trunc(u/60);u-=i*60;const h=[o,i,u];return h[0]===0&&h.shift(),h.map(v=>_i.exports.padStart(v.toString(),2,"0")).join(":")}function vi(u){if(!u)return"";if(u<=9999)return u.toString();let o=(u/1e4).toFixed(1);return o=o.replace(/\.0$/,""),`${o}\u4E07`}function gc({className:u,item:o,pvideo:i}){var de;const f=P.useRef(null),h=Ef(f.current),{elementW:p,elementH:v,elementX:y}=h;let E=0,C=0;p&&y&&!isNaN(y)&&!isNaN(p)&&(E=y/p,E<0&&(E=0),E>1&&(E=1),C=Math.floor((o.duration||0)*E));let T=P.useMemo(()=>{const ie=(i==null?void 0:i.index)||[];let Ie=vc(ie,C);return Ie!==-1?Ie:C>ie[ie.length-1]?(Ie=Math.floor(ie.length*E)-1,Ie<0&&(Ie=0),Ie):0},[i,C]);const{img_x_len:L,img_y_len:N,img_x_size:R,img_y_size:F}=i,j=N*L;T=T+1;const Y=Math.floor(T/j),ne=T-Y*j,Le=((de=i.image)==null?void 0:de[Y])||"",ve=Math.floor(ne/L)+1,he=ne-(ve-1)*L,fe=p*L,Me=v*N;let Be=(ve-1)*v,Ge=(he-1)*p;return A("div",{ref:f,className:u,style:{backgroundColor:"black",backgroundImage:`url(${Le})`,backgroundPosition:`-${Ge}px -${Be}px`,backgroundSize:`${fe}px ${Me}px`},children:A(_c,{progress:E})})}function _c({progress:u}){return A("div",{className:"track",style:{position:"absolute",bottom:0,left:0,backgroundColor:"#eee",width:"100%",height:2},children:A("div",{className:"bar",style:{backgroundColor:"#fa6a9d",height:"100%",width:`${u*100}%`}})})}function vc(u,o){var y;let i=0,f=u.length-1,h=-1;for(;i<=f;){const E=Math.floor((i+f)/2),C=u[E];if(o===C)return E;C<o?(i=E+1,h=E):f=E-1}if(h===-1)return-1;const p=u[h],v=(y=u[h+1])!=null?y:0;return p<o&&o<v?h:-1}function mc(){var o;const u=(o=document.cookie.match(/bili_jct=([0-9a-fA-F]{32})/))==null?void 0:o[1];if(!u)throw zt("\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 u}const mi=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Oo=typeof AbortController!="undefined"?AbortController:Object.assign(class{constructor(){this.signal=new Oo.AbortSignal}abort(){this.signal.aborted=!0}},{AbortSignal:class{constructor(){this.aborted=!1}}}),wi=new Set,yi=(u,o)=>{const i=`LRU_CACHE_OPTION_${u}`;rr(i)&&xi(i,`${u} option`,`options.${o}`,Ht)},bi=(u,o)=>{const i=`LRU_CACHE_METHOD_${u}`;if(rr(i)){const{prototype:f}=Ht,{get:h}=Object.getOwnPropertyDescriptor(f,u);xi(i,`${u} method`,`cache.${o}()`,h)}},wc=(u,o)=>{const i=`LRU_CACHE_PROPERTY_${u}`;if(rr(i)){const{prototype:f}=Ht,{get:h}=Object.getOwnPropertyDescriptor(f,u);xi(i,`${u} property`,`cache.${o}`,h)}},Do=(...u)=>{typeof process=="object"&&process&&typeof process.emitWarning=="function"?process.emitWarning(...u):console.error(...u)},rr=u=>!wi.has(u),xi=(u,o,i,f)=>{wi.add(u);const h=`The ${o} is deprecated. Please use ${i} instead.`;Do(h,"DeprecationWarning",u,f)},qt=u=>u&&u===Math.floor(u)&&u>0&&isFinite(u),Mo=u=>qt(u)?u<=Math.pow(2,8)?Uint8Array:u<=Math.pow(2,16)?Uint16Array:u<=Math.pow(2,32)?Uint32Array:u<=Number.MAX_SAFE_INTEGER?ir:null:null;class ir extends Array{constructor(o){super(o),this.fill(0)}}class yc{constructor(o){if(o===0)return[];const i=Mo(o);this.heap=new i(o),this.length=0}push(o){this.heap[this.length++]=o}pop(){return this.heap[--this.length]}}class Ht{constructor(o={}){const{max:i=0,ttl:f,ttlResolution:h=1,ttlAutopurge:p,updateAgeOnGet:v,updateAgeOnHas:y,allowStale:E,dispose:C,disposeAfter:T,noDisposeOnSet:L,noUpdateTTL:N,maxSize:R=0,sizeCalculation:F,fetchMethod:j}=o,{length:Y,maxAge:ne,stale:Le}=o instanceof Ht?{}:o;if(i!==0&&!qt(i))throw new TypeError("max option must be a nonnegative integer");const ve=i?Mo(i):Array;if(!ve)throw new Error("invalid max value: "+i);if(this.max=i,this.maxSize=R,this.sizeCalculation=F||Y,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=j||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(i).fill(null),this.valList=new Array(i).fill(null),this.next=new ve(i),this.prev=new ve(i),this.head=0,this.tail=0,this.free=new yc(i),this.initialFill=1,this.size=0,typeof C=="function"&&(this.dispose=C),typeof T=="function"?(this.disposeAfter=T,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!L,this.noUpdateTTL=!!N,this.maxSize!==0){if(!qt(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!E||!!Le,this.updateAgeOnGet=!!v,this.updateAgeOnHas=!!y,this.ttlResolution=qt(h)||h===0?h:1,this.ttlAutopurge=!!p,this.ttl=f||ne||0,this.ttl){if(!qt(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 he="LRU_CACHE_UNBOUNDED";rr(he)&&(wi.add(he),Do("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",he,Ht))}Le&&yi("stale","allowStale"),ne&&yi("maxAge","ttl"),Y&&yi("length","sizeCalculation")}getRemainingTTL(o){return this.has(o,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new ir(this.max),this.starts=new ir(this.max),this.setItemTTL=(f,h)=>{if(this.starts[f]=h!==0?mi.now():0,this.ttls[f]=h,h!==0&&this.ttlAutopurge){const p=setTimeout(()=>{this.isStale(f)&&this.delete(this.keyList[f])},h+1);p.unref&&p.unref()}},this.updateItemAge=f=>{this.starts[f]=this.ttls[f]!==0?mi.now():0};let o=0;const i=()=>{const f=mi.now();if(this.ttlResolution>0){o=f;const h=setTimeout(()=>o=0,this.ttlResolution);h.unref&&h.unref()}return f};this.getRemainingTTL=f=>{const h=this.keyMap.get(f);return h===void 0?0:this.ttls[h]===0||this.starts[h]===0?1/0:this.starts[h]+this.ttls[h]-(o||i())},this.isStale=f=>this.ttls[f]!==0&&this.starts[f]!==0&&(o||i())-this.starts[f]>this.ttls[f]}updateItemAge(o){}setItemTTL(o,i){}isStale(o){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new ir(this.max),this.removeItemSize=o=>this.calculatedSize-=this.sizes[o],this.requireSize=(o,i,f,h)=>{if(!qt(f))if(h){if(typeof h!="function")throw new TypeError("sizeCalculation must be a function");if(f=h(i,o),!qt(f))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer)");return f},this.addItemSize=(o,i,f,h)=>{this.sizes[o]=h;const p=this.maxSize-this.sizes[o];for(;this.calculatedSize>p;)this.evict(!0);this.calculatedSize+=this.sizes[o]},this.delete=o=>{if(this.size!==0){const i=this.keyMap.get(o);i!==void 0&&(this.calculatedSize-=this.sizes[i])}return Ht.prototype.delete.call(this,o)}}removeItemSize(o){}addItemSize(o,i,f,h){}requireSize(o,i,f,h){if(f||h)throw new TypeError("cannot set size without setting maxSize on cache")}*indexes({allowStale:o=this.allowStale}={}){if(this.size)for(let i=this.tail;!(!this.isValidIndex(i)||((o||!this.isStale(i))&&(yield i),i===this.head));)i=this.prev[i]}*rindexes({allowStale:o=this.allowStale}={}){if(this.size)for(let i=this.head;!(!this.isValidIndex(i)||((o||!this.isStale(i))&&(yield i),i===this.tail));)i=this.next[i]}isValidIndex(o){return this.keyMap.get(this.keyList[o])===o}*entries(){for(const o of this.indexes())yield[this.keyList[o],this.valList[o]]}*rentries(){for(const o of this.rindexes())yield[this.keyList[o],this.valList[o]]}*keys(){for(const o of this.indexes())yield this.keyList[o]}*rkeys(){for(const o of this.rindexes())yield this.keyList[o]}*values(){for(const o of this.indexes())yield this.valList[o]}*rvalues(){for(const o of this.rindexes())yield this.valList[o]}[Symbol.iterator](){return this.entries()}find(o,i={}){for(const f of this.indexes())if(o(this.valList[f],this.keyList[f],this))return this.get(this.keyList[f],i)}forEach(o,i=this){for(const f of this.indexes())o.call(i,this.valList[f],this.keyList[f],this)}rforEach(o,i=this){for(const f of this.rindexes())o.call(i,this.valList[f],this.keyList[f],this)}get prune(){return bi("prune","purgeStale"),this.purgeStale}purgeStale(){let o=!1;for(const i of this.rindexes({allowStale:!0}))this.isStale(i)&&(this.delete(this.keyList[i]),o=!0);return o}dump(){const o=[];for(const i of this.indexes()){const f=this.keyList[i],p={value:this.valList[i]};this.ttls&&(p.ttl=this.ttls[i]),this.sizes&&(p.size=this.sizes[i]),o.unshift([f,p])}return o}load(o){this.clear();for(const[i,f]of o)this.set(i,f.value,f)}dispose(o,i,f){}set(o,i,{ttl:f=this.ttl,noDisposeOnSet:h=this.noDisposeOnSet,size:p=0,sizeCalculation:v=this.sizeCalculation,noUpdateTTL:y=this.noUpdateTTL}={}){p=this.requireSize(o,i,p,v);let E=this.size===0?void 0:this.keyMap.get(o);if(E===void 0)E=this.newIndex(),this.keyList[E]=o,this.valList[E]=i,this.keyMap.set(o,E),this.next[this.tail]=E,this.prev[E]=this.tail,this.tail=E,this.size++,this.addItemSize(E,i,o,p),y=!1;else{const C=this.valList[E];i!==C&&(this.isBackgroundFetch(C)?C.__abortController.abort():h||(this.dispose(C,o,"set"),this.disposeAfter&&this.disposed.push([C,o,"set"])),this.removeItemSize(E),this.valList[E]=i,this.addItemSize(E,i,o,p)),this.moveToTail(E)}if(f!==0&&this.ttl===0&&!this.ttls&&this.initializeTTLTracking(),y||this.setItemTTL(E,f),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 o=this.valList[this.head];return this.evict(!0),o}}evict(o){const i=this.head,f=this.keyList[i],h=this.valList[i];return this.isBackgroundFetch(h)?h.__abortController.abort():(this.dispose(h,f,"evict"),this.disposeAfter&&this.disposed.push([h,f,"evict"])),this.removeItemSize(i),o&&(this.keyList[i]=null,this.valList[i]=null,this.free.push(i)),this.head=this.next[i],this.keyMap.delete(f),this.size--,i}has(o,{updateAgeOnHas:i=this.updateAgeOnHas}={}){const f=this.keyMap.get(o);return f!==void 0&&!this.isStale(f)?(i&&this.updateItemAge(f),!0):!1}peek(o,{allowStale:i=this.allowStale}={}){const f=this.keyMap.get(o);if(f!==void 0&&(i||!this.isStale(f)))return this.valList[f]}backgroundFetch(o,i,f){const h=i===void 0?void 0:this.valList[i];if(this.isBackgroundFetch(h))return h;const p=new Oo,v={signal:p.signal,options:f},y=Promise.resolve(this.fetchMethod(o,h,v)).then(E=>(p.signal.aborted||this.set(o,E,v.options),E));return y.__abortController=p,y.__staleWhileFetching=h,i===void 0?(this.set(o,y,v.options),i=this.keyMap.get(o)):this.valList[i]=y,y}isBackgroundFetch(o){return o&&typeof o=="object"&&typeof o.then=="function"&&Object.prototype.hasOwnProperty.call(o,"__staleWhileFetching")}async fetch(o,{allowStale:i=this.allowStale,updateAgeOnGet:f=this.updateAgeOnGet,ttl:h=this.ttl,noDisposeOnSet:p=this.noDisposeOnSet,size:v=0,sizeCalculation:y=this.sizeCalculation,noUpdateTTL:E=this.noUpdateTTL}={}){if(!this.fetchMethod)return this.get(o,{allowStale:i,updateAgeOnGet:f});const C={allowStale:i,updateAgeOnGet:f,ttl:h,noDisposeOnSet:p,size:v,sizeCalculation:y,noUpdateTTL:E};let T=this.keyMap.get(o);if(T===void 0)return this.backgroundFetch(o,T,C);{const L=this.valList[T];if(this.isBackgroundFetch(L))return i&&L.__staleWhileFetching!==void 0?L.__staleWhileFetching:L;if(!this.isStale(T))return this.moveToTail(T),f&&this.updateItemAge(T),L;const N=this.backgroundFetch(o,T,C);return i&&N.__staleWhileFetching!==void 0?N.__staleWhileFetching:N}}get(o,{allowStale:i=this.allowStale,updateAgeOnGet:f=this.updateAgeOnGet}={}){const h=this.keyMap.get(o);if(h!==void 0){const p=this.valList[h],v=this.isBackgroundFetch(p);return this.isStale(h)?v?i?p.__staleWhileFetching:void 0:(this.delete(o),i?p:void 0):v?void 0:(this.moveToTail(h),f&&this.updateItemAge(h),p)}}connect(o,i){this.prev[i]=o,this.next[o]=i}moveToTail(o){o!==this.tail&&(o===this.head?this.head=this.next[o]:this.connect(this.prev[o],this.next[o]),this.connect(this.tail,o),this.tail=o)}get del(){return bi("del","delete"),this.delete}delete(o){let i=!1;if(this.size!==0){const f=this.keyMap.get(o);if(f!==void 0)if(i=!0,this.size===1)this.clear();else{this.removeItemSize(f);const h=this.valList[f];this.isBackgroundFetch(h)?h.__abortController.abort():(this.dispose(h,o,"delete"),this.disposeAfter&&this.disposed.push([h,o,"delete"])),this.keyMap.delete(o),this.keyList[f]=null,this.valList[f]=null,f===this.tail?this.tail=this.prev[f]:f===this.head?this.head=this.next[f]:(this.next[this.prev[f]]=this.next[f],this.prev[this.next[f]]=this.prev[f]),this.size--,this.free.push(f)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return i}clear(){for(const o of this.rindexes({allowStale:!0})){const i=this.valList[o];if(this.isBackgroundFetch(i))i.__abortController.abort();else{const f=this.keyList[o];this.dispose(i,f,"delete"),this.disposeAfter&&this.disposed.push([i,f,"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 bi("reset","clear"),this.clear}get length(){return wc("length","size"),this.size}}var bc=Ht;async function xc(u){return(await hi.get("/pvideo",{params:{aid:u}})).data.data}async function Sc(u){return[]}const Si=new bc({max:200});async function Ac(u){if(Si.has(u))return Si.get(u);const[o,i]=await Promise.all([xc(u),Sc()]);return Si.set(u,{pvideoData:o,dmData:i}),{pvideoData:o,dmData:i}}function Io(u){return async function(i){const f=new FormData;f.append("aid",i),f.append("csrf",mc());const p=(await hi.post("/x/v2/history/toview/"+u,f,{withCredentials:!0})).data;return(p==null?void 0:p.code)===0&&(p==null?void 0:p.message)==="0"}}const Ec=Io("add"),Lc=Io("del"),No=u=>{const o={dislike:"/x/feed/dislike",cancel:"/x/feed/dislike/cancel"}[u];return async function(i,f){var y;const p=(await di.get(Ao+o,{params:{goto:i.goto,id:i.param,mid:i.mid,rid:i.tid,tag_id:(y=i.tag)==null?void 0:y.tag_id,reason_id:f,build:"1",mobi_app:"android",idx:(Date.now()/1e3).toFixed(0)}})).data;return(p==null?void 0:p.code)===0&&(p==null?void 0:p.message)==="0"}},Tc=No("dislike"),Rc=No("cancel"),Po="_bili-video-card_3h2r6_1",Fo="_image-wrapper_3h2r6_4",Wo="_preview-card-wrapper_3h2r6_8",Bo="_watch-later_3h2r6_21",ko="_badge_3h2r6_24",Uo="_recommend-reason_3h2r6_32",zo="_bangumi-desc_3h2r6_47",Ho="_btn-dislike_3h2r6_50",Yo="_btn-dislike-icon_3h2r6_65",Go="_btn-dislike-tip_3h2r6_72",Ko="_disliked-wrapper_3h2r6_87",$o="_dislike-content-cover_3h2r6_101",Xo="_dislike-content-cover-inner_3h2r6_107",Cc="_dislike-icon_3h2r6_118",Zo="_dislike-reason_3h2r6_121",Jo="_dislike-desc_3h2r6_125",Vo="_dislike-content-action_3h2r6_129";var Mm={biliVideoCard:Po,imageWrapper:Fo,previewCardWrapper:Wo,watchLater:Bo,badge:ko,recommendReason:Uo,bangumiDesc:zo,btnDislike:Ho,btnDislikeIcon:Yo,btnDislikeTip:Go,dislikedWrapper:Ko,dislikeContentCover:$o,dislikeContentCoverInner:Xo,dislikeIcon:Cc,dislikeReason:Zo,dislikeDesc:Jo,dislikeContentAction:Vo};function Oc(u){const o=ci({data:Array.from(u||[]),has(i){return this.data.some(f=>f[0]===i)},set(i,f){const h=this.data.find(p=>p[0]===i);return h?h[1]=f:this.data.push([i,f]),this},get(i){var f;return(f=this.data.find(h=>h[0]===i))==null?void 0:f[1]},delete(i){const f=this.data.findIndex(h=>h[0]===i);return f===-1?!1:(this.data.splice(f,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON(){return{}},forEach(i){this.data.forEach(f=>{i(f[1],f[0],this)})},keys(){return this.data.map(i=>i[0]).values()},values(){return this.data.map(i=>i[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return"Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(o,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(o),o}const Qo="_modal-mask_vh629_1",qo="_modal_vh629_1",jo="_modal-header_vh629_23",eu="_modal-title_vh629_30",tu="_title-desc_vh629_35",nu="_btn-close_vh629_39",ru="_modal-body_vh629_57",iu="_reason-list_vh629_62",su="_reason_vh629_62";var Im={modalMask:Qo,modal:qo,modalHeader:jo,modalTitle:eu,titleDesc:tu,btnClose:nu,modalBody:ru,reasonList:iu,reason:su};const Ai=Oc();function Dc(){return wo(Ai)}function Mc(u){return Dc().get(u)}function Ic({show:u,onHide:o,item:i}){const[f,h]=Dt(!1),p=rt(async(y,E)=>{if(!i)return;let C=!1,T=null;try{h(!0),C=await Tc(i,y)}catch(L){T=L}finally{h(!1)}if(T){zt("\u6807\u8BB0\u4E0D\u559C\u6B22: \u8BF7\u6C42\u5931\u8D25, \u8BF7\u91CD\u8BD5!"),console.error(T.stack||T);return}zt("\u6807\u8BB0\u4E0D\u559C\u6B22: "+(C?"\u6210\u529F":"\u5931\u8D25")),C&&(Ai.set(i.param,{id:y,name:E}),o())}),v=P.useMemo(()=>{var y;return[...(y=i==null?void 0:i.dislike_reasons)!=null?y:[],{reason_id:12,reason_name:"\u6B64\u7C7B\u5185\u5BB9\u8FC7\u591A"},{reason_id:13,reason_name:"\u63A8\u8350\u8FC7"}]},[i]);return te(Co,{show:u,onHide:o,clsModalMask:Qo,clsModal:qo,hideWhenMaskOnClick:!0,children:[te("div",{className:jo,children:[te("div",{className:eu,children:["\u6211\u4E0D\u60F3\u770B",A("span",{className:tu,children:"(\u9009\u62E9\u540E\u5C06\u51CF\u5C11\u76F8\u4F3C\u5185\u5BB9\u63A8\u8350)"})]}),A("div",{className:"space",style:{flex:1}}),te("button",{className:`primary-btn roll-btn ${nu}`,onClick:o,children:[A("svg",{style:{transform:"rotate(0deg)"},children:A("use",{xlinkHref:"#widget-close"})}),A("span",{children:"\u5173\u95ED"})]})]}),A("div",{className:ru,children:A("div",{className:iu,children:v.map(y=>A("button",{className:su,"data-id":y.reason_id,onClick:()=>p(y.reason_id,y.reason_name),disabled:f,children:y.reason_name},y.reason_id))})})]})}let ou={show:!1,onHide:uu,item:null};function uu(){au({show:!1,item:null})}function au(u){Object.assign(ou,u),Nc().render(A(Ic,jn(Rn({},ou),{onHide:uu})))}let Ei;function Nc(){if(!Ei){const u=document.createElement("div");u.classList.add("show-dislike-container"),document.body.appendChild(u),Ei=ei(u)}return Ei}function Pc(u){au({show:!0,item:u})}const Fc=so().format("YYYY"),Wc=u=>{if(!u)return"";const o=so.unix(u);return o.format("YYYY")===Fc?o.format("M-D"):o.format("YY-M-D")},Bc=u=>u.replace(/^http:\/\//,"https://");function lu({item:u,className:o,loading:i}){const f=P.useRef(null),h=ri(f),p=P.useRef(null),v=ri(p),[y,E]=Dt(!1),{accessKey:C}=yo(),T=Boolean(C),{param:L,title:N,cover:R,goto:F,play:j,like:Y,coin:ne,desc:Le,danmaku:ve,ctime:he,duration:fe,name:Me,face:Be,mid:Ge,favorite:de,badge:ie,rcmd_reason:Ie}=u,jt=P.useMemo(()=>Wc(he),[he]),X=P.useMemo(()=>Bc(R),[R]),[I,M]=Dt(null),[K,O]=Dt(!1),k=rt(async()=>{if(!I&&!K)try{O(!0);const Se=await Ac(L);M(Se)}finally{O(!1)}});P.useEffect(()=>{h&&k()},[h]);let G=!1;const oe=rt(async Se=>{if(Se.preventDefault(),G)return;G=!0;const ut=y?Lc:Ec;let hn=!1;try{hn=await ut(L)}finally{G=!1}hn&&E(wt=>!wt)}),Q=Mc(L),pe=Boolean(Q),Te=P.useRef(null),it=ri(Te),Ne=rt(Se=>{Se.stopPropagation(),Se.preventDefault(),Pc(u)}),st=rt(async()=>{if(!(Q!=null&&Q.id))return;let Se=!1,ut=null;try{Se=await Rc(u,Q.id)}catch(hn){ut=hn}if(ut)return console.error(ut.stack||ut),zt("\u8BF7\u6C42\u5931\u8D25!");zt(`\u64A4\u9500\u4E0D\u559C\u6B22: \u64CD\u4F5C${Se?"\u6210\u529F":"\u5931\u8D25"}!`),Se&&Ai.delete(L)}),vt=u.goto==="av"?`/video/av${L}`:u.uri,Ke=P.useMemo(()=>pc(fe),[fe]),xe=P.useMemo(()=>vi(j),[j]),ot=P.useMemo(()=>vi(Y),[Y]),Lt=P.useMemo(()=>vi(de),[de]),mt=te("div",{className:Ot("bili-video-card__skeleton",{hide:!i}),children:[A("div",{className:"bili-video-card__skeleton--cover"}),A("div",{className:"bili-video-card__skeleton--info",children:te("div",{className:"bili-video-card__skeleton--right",children:[A("p",{className:"bili-video-card__skeleton--text"}),A("p",{className:"bili-video-card__skeleton--text short"}),A("p",{className:"bili-video-card__skeleton--light"})]})})]}),sr=te("div",{className:Ot(Ko),children:[A("div",{className:$o,children:te("div",{className:Xo,children:[A("div",{className:"icon"}),A("div",{className:Zo,children:Q==null?void 0:Q.name}),A("div",{className:Jo,children:"\u5C06\u51CF\u5C11\u6B64\u7C7B\u5185\u5BB9\u63A8\u8350"})]})}),A("div",{className:Vo,children:A("button",{onClick:st,children:"\u64A4\u9500"})})]});return te("div",{className:Ot("bili-video-card",Po,o),"data-report":"partition_recommend.content",children:[mt,!i&&pe&&sr,!i&&!pe&&te("div",{className:"bili-video-card__wrap __scale-wrap",style:{backgroundColor:pe?"red":"unset"},children:[A("a",{href:vt,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:te("div",{className:"bili-video-card__image __scale-player-wrap",ref:f,children:[te("div",{className:Ot("bili-video-card__image--wrap",Fo),children:[te("picture",{className:"v-img bili-video-card__cover",children:[A("source",{srcSet:`${X}@672w_378h_1c.webp`,type:"image/webp"}),A("img",{src:`${X}@672w_378h_1c.webp`,alt:N,loading:"lazy"})]}),h&&(I==null?void 0:I.pvideoData)?A(gc,{className:Wo,item:u,pvideo:I==null?void 0:I.pvideoData}):null,te("div",{className:`bili-watch-later ${Bo}`,style:{display:h?"flex":"none"},ref:p,onClick:oe,children:[A("svg",{className:"bili-watch-later__icon",children:A("use",{xlinkHref:y?"#widget-watch-save":"#widget-watch-later"})}),A("span",{className:"bili-watch-later__tip",style:{display:v?"block":"none"},children:y?"\u79FB\u9664":"\u7A0D\u540E\u518D\u770B"})]}),T&&te("div",{ref:Te,className:Ho,onClick:Ne,style:{display:h?"flex":"none"},children:[A("svg",{className:Yo,children:A("use",{xlinkHref:"#widget-close"})}),A("span",{className:Go,style:{display:it?"block":"none"},children:"\u4E0D\u559C\u6B22"})]})]}),A("div",{className:"bili-video-card__mask",children:te("div",{className:"bili-video-card__stats",children:[te("div",{className:"bili-video-card__stats--left",children:[te("span",{className:"bili-video-card__stats--item",children:[A("svg",{className:"bili-video-card__stats--icon",children:A("use",{xlinkHref:"#widget-play-count"})}),A("span",{className:"bili-video-card__stats--text",children:xe})]}),A("span",{className:"bili-video-card__stats--item",children:F==="av"?te(In,{children:[A("svg",{className:"bili-video-card__stats--icon",children:A("use",{xlinkHref:"#widget-agree"})}),A("span",{className:"bili-video-card__stats--text",children:ot})]}):te(In,{children:[A("svg",{className:"bili-video-card__stats--icon",children:A("use",{xlinkHref:"#widget-agree"})}),A("span",{className:"bili-video-card__stats--text",children:Lt})]})})]}),A("span",{className:"bili-video-card__stats__duration",children:Ke})]})})]})}),A("div",{className:"bili-video-card__info __scale-disable",children:te("div",{className:"bili-video-card__info--right",children:[A("a",{href:vt,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:A("h3",{className:"bili-video-card__info--tit",title:N,children:N})}),te("p",{className:"bili-video-card__info--bottom",children:[F==="av"?te("a",{className:"bili-video-card__info--owner",href:`//space.bilibili.com/${Ge}`,target:"_blank","data-mod":"partition_recommend","data-idx":"content","data-ext":"click",children:[Ie!=null&&Ie.content?A("span",{className:Uo,children:Ie.content}):A("svg",{className:"bili-video-card__info--owner__up",children:A("use",{xlinkHref:"#widget-up"})}),A("span",{className:"bili-video-card__info--author",children:Me}),jt?te("span",{className:"bili-video-card__info--date",children:["\xB7 ",jt]}):null]}):null,F==="bangumi"?te("a",{className:"bili-video-card__info--owner",href:vt,target:"_blank",children:[A("span",{className:ko,children:ie}),A("span",{className:zo,children:Le})]}):null]})]})})]})]})}const fu="_modal-mask_12oi8_1",cu="_modal_12oi8_1",hu="_modal-header_12oi8_24",du="_modal-title_12oi8_31",pu="_btn-refresh_12oi8_36",gu="_btn-close_12oi8_37",_u="_modal-body_12oi8_53",kc="_list_12oi8_58",Uc="_card_12oi8_61",vu="_video-card-list_12oi8_64",mu="_loader_12oi8_67";var Nm={modalMask:fu,modal:cu,modalHeader:hu,modalTitle:du,btnRefresh:pu,btnClose:gu,modalBody:_u,list:kc,card:Uc,videoCardList:vu,loader:mu};function zc({show:u,onHide:o}){const[i,f]=Dt([]),[h,p]=Dt(!1),v=P.useRef(null),y=rt(async()=>{v.current&&(v.current.scrollTop=0),await qs(50);try{p(!0),f(await pi(2))}finally{p(!1)}}),E=rt(async C=>{const T=await pi(2);f(L=>[...L,...T])});return te(Co,{show:u,onHide:o,clsModalMask:fu,clsModal:cu,children:[te("div",{className:hu,children:[A("div",{className:du,children:"\u63A8\u8350"}),A("div",{className:"space",style:{flex:1}}),te("button",{className:`primary-btn roll-btn ${pu}`,onClick:y,children:[A("svg",{children:A("use",{xlinkHref:"#widget-roll"})}),A("span",{children:"\u6362\u4E00\u6362"})]}),te("button",{className:`primary-btn roll-btn ${gu}`,onClick:o,children:[A("svg",{children:A("use",{xlinkHref:"#widget-close"})}),A("span",{children:"\u5173\u95ED"})]})]}),A("div",{className:_u,ref:v,children:A(gi,{pageStart:0,loadMore:E,hasMore:!0,useWindow:!1,threshold:320,loader:A("div",{className:mu,children:"\u52A0\u8F7D\u4E2D..."},0),children:A("div",{className:`video-card-list is-full ${vu}`,children:A("div",{className:"video-card-body more-class1 more-class2",children:i.map(C=>A(lu,{item:C,loading:h},C.param))})})})})]})}const wu="_grid_p5dvw_1",yu="_video-card-list_p5dvw_5",bu="_expand-btn_p5dvw_19",xu="_expanded_p5dvw_30";var Pm={grid:wu,videoCardList:yu,expandBtn:bu,expanded:xu};function Hc(){const[u,o]=ro(!1),{accessKey:i}=yo(),f=rt(async(F=!1)=>{await jf()&&o.set(!1)}),h=ec,p=rt(()=>{const F="https://github.com/indefined/UserScripts/tree/master/bilibiliHome#%E6%8E%88%E6%9D%83%E8%AF%B4%E6%98%8E";window.open(F,"_blank")}),[v,y]=Dt([]),[E,C]=Dt(!1),T=rt(async()=>{C(!0);try{const F=await rc();y(F)}finally{C(!1)}});ff(async()=>{T()});const[L,N]=Dt(!1),R=rt(()=>{N(!0)});return A("section",{className:Ot("bili-grid no-margin",wu),"data-area":"\u63A8\u8350",children:te("div",{className:`video-card-list is-full ${yu}`,children:[te("div",{className:"area-header",children:[te("div",{className:"left",children:[A("a",{id:"\u5F71\u89C6",className:"the-world area-anchor","data-id":"25"}),A("svg",{className:"icon",children:A("use",{xlinkHref:"#channel-cinephile"})}),A("a",{className:"title",href:"#",children:A("span",{children:"\u63A8\u8350"})})]}),te("div",{className:"right",children:[i?te(In,{children:[A("button",{className:Ot("primary-btn",bu),onClick:o.toggle,children:A("svg",{className:Ot({[xu]:u}),children:A("use",{xlinkHref:"#widget-arrow"})})}),u&&te(In,{children:[A("button",{className:"primary-btn roll-btn",onClick:p,children:A("span",{children:"access_key \u8BF4\u660E"})}),A("button",{className:"primary-btn roll-btn",onClick:()=>f(!0),children:A("span",{children:"\u91CD\u65B0\u83B7\u53D6 access_key"})}),A("button",{className:"primary-btn roll-btn",onClick:h,children:A("span",{children:"\u5220\u9664 access_key"})})]})]}):te(In,{children:[A("button",{className:"primary-btn roll-btn",onClick:p,children:A("span",{children:"access_key \u8BF4\u660E"})}),A("button",{className:"primary-btn roll-btn",onClick:f,children:A("span",{children:"\u83B7\u53D6 access_key"})})]}),te("button",{className:"primary-btn roll-btn",onClick:T,children:[A("svg",{style:{transform:"rotate(0deg)"},children:A("use",{xlinkHref:"#widget-roll"})}),A("span",{children:"\u6362\u4E00\u6362"})]}),te("button",{className:"primary-btn see-more",onClick:R,children:[A("span",{children:"\u67E5\u770B\u66F4\u591A"}),A("svg",{children:A("use",{xlinkHref:"#widget-arrow"})})]})]})]}),A(zc,{show:L,onHide:()=>N(!1)}),A("div",{className:"video-card-body more-class1 more-class2",children:v.map(F=>A(lu,{item:F,loading:E},F.param))})]})})}(function(){var o;if(location.href.startsWith("https://www.mcbbs.net/template/mcbbs/image/special_photo_bg.png?"))return window.stop(),(o=window.top)==null?void 0:o.postMessage(location.href,"https://www.bilibili.com");if(location.pathname==="/")return Yc()})();async function Yc(){const u=Date.now(),o=10*1e3,i=()=>On.default(".bili-layout > section.bili-grid").length>0;for(;!i()&&Date.now()-u<o;)await qs(100);if(!i()){console.error("[bilibili-app-recommend]: init fail");return}const f=On.default(".bili-layout > section.bili-grid").eq(0),h=On.default("<section></section>");h.insertAfter(f);const p=h[0];ei(p).render(A(Hc,{}))}})($,ReactDOM,React,axios,axiosGmxhrAdapter);
 

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址