// ==UserScript== // @name 星速VIP视频解析播放引擎 // @namespace https://scriptcat.org/zh-CN/script-show-page/4339 // @version 6.6.5 // @description ✅ 支持爱奇艺、腾讯、优酷等主流平台 ✅ 无需会员,VIP内容免费看 ✅ 多线路备选,永不剧荒 ✅ 简洁界面,老人小孩都会用 ✅ 持续更新,资源库不断扩充 // @icon data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48Y2lyY2xlIGN4PSI1MCIgY3k9IjUwIiByPSI1MCIgZmlsbD0idXJsKCNncmFkKSIvPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0iZ3JhZCIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMzM5OSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzAwNjZjYyIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjx0ZXh0IHg9IjUwIiB5PSI3MCIgZm9udC1zaXplPSI1MCIgdGV4dC1hbmNob3I9Im1pZGRsZSIgZmlsbD0id2hpdGUiIGZvbnQtZmFtaWx5PSJzYW5zLXNlcmlmIiBmb250LXdlaWdodD0ibjkwMCI+VklQPC90ZXh0Pjwvc3ZnPg== // @author lsym // @license MIT // @noframes // @match *://*/* // @grant GM_addStyle // @grant GM_xmlhttpRequest // @grant GM_setValue // @grant GM_getValue // @grant GM_registerMenuCommand // @run-at document-end // @connect * // @antifeature piracy // ==/UserScript== function _0x585e(_0x419d6e,_0x2b26ab){const _0x57dbac=_0x57db();return _0x585e=function(_0x585e2d,_0xbc6961){_0x585e2d=_0x585e2d-0xcd;let _0x4e4bbc=_0x57dbac[_0x585e2d];return _0x4e4bbc;},_0x585e(_0x419d6e,_0x2b26ab);}(function(_0x20618e,_0x67f20b){const _0x2dd326=_0x585e,_0x36f35f=_0x20618e();while(!![]){try{const _0x48836f=parseInt(_0x2dd326(0x182))/0x1+parseInt(_0x2dd326(0x1b8))/0x2*(-parseInt(_0x2dd326(0x1ea))/0x3)+parseInt(_0x2dd326(0x15d))/0x4+-parseInt(_0x2dd326(0x236))/0x5*(-parseInt(_0x2dd326(0x1f7))/0x6)+parseInt(_0x2dd326(0x1f2))/0x7+-parseInt(_0x2dd326(0x1ac))/0x8*(parseInt(_0x2dd326(0x225))/0x9)+-parseInt(_0x2dd326(0x11d))/0xa*(-parseInt(_0x2dd326(0x1af))/0xb);if(_0x48836f===_0x67f20b)break;else _0x36f35f['push'](_0x36f35f['shift']());}catch(_0x2eadd7){_0x36f35f['push'](_0x36f35f['shift']());}}}(_0x57db,0x20f8f),(function(){const _0x4f222e=_0x585e;if(window[_0x4f222e(0x15e)])return;window['hasInitVipScript']=!![],_0x4f222e(0xe9);const _0x441cfe={'API_TIMEOUT':0x7d0,'STUCK_CHECK_TIMEOUT':0x1388,'SEARCH_CONCURRENCY':0x6,'AUTO_EXPAND_BEST_SOURCE':!![],'CACHE_ENABLED':!![],'CACHE_EXPIRY':0x1b7740,'CACHE_VERSION':'v2','SMART_SORTING':!![],'AUTOPLAY_NEXT_DELAY':0x64,'PANEL_LEAVE_CLOSE_DELAY':0x3e8,'STORAGE_KEY_ICON_POSITION':_0x4f222e(0x1c5),'VIDEO_URL_PATTERNS':[/iqiyi\.com\/[vwa]_/,/iq\.com\/play\//,/youku\.com\/v_show\/id_/,/v\.youku\.com\/v_show\/id_/,/v\.qq\.com\/(x\/cover|x\/page|tv)\//,/mgtv\.com\/b\//,/mgtv\.com\/s\//,/bilibili\.com\/(video|bangumi\/play)\//,/b23\.tv\//,/le\.com\/ptv\/vplay\//,/tv\.sohu\.com\/v\//,/film\.sohu\.com\/album\//,/pptv\.com\/show\//,/acfun\.cn\/v\/ac/,/1905\.com\/play\//,/ixigua\.com\/video\//,/ixigua\.com\/play\//,/tudou\.com\/(listplay|albumplay|programs\/view)\//,/fun\.tv\/vod-play\//,/baofeng\.com\/play\//,/migumovie\.hcs\.cmvideo\.cn\/movie/,/miguvideo\.com\/detail/,/douyin\.com\/video\//,/kuaishou\.com\/short-video\//,/hanju\.koudaibaobao\.com\//,/maiduidui\.com\/play\//,/rrsp\.tv\/play\//,/vas\.hiaiabc\.com\/play/],'MESSAGES':{'VIDEO_ENDED':_0x4f222e(0x200),'PLAY_SUCCESS':_0x4f222e(0x14a),'CHECK_STUCK_REQ':_0x4f222e(0xec),'CHECK_STUCK_RES':_0x4f222e(0x196)},'SELECTORS':{'PLAYER_ELEMENTS':[_0x4f222e(0xef),_0x4f222e(0x174),_0x4f222e(0x1b5),_0x4f222e(0xe8),_0x4f222e(0xf1),'#sohuplayer',_0x4f222e(0x18e),_0x4f222e(0x110),_0x4f222e(0x11c),'.bpx-player-container',_0x4f222e(0x1bf),_0x4f222e(0x17e),_0x4f222e(0x1f5),'#pp-player',_0x4f222e(0x1a7),_0x4f222e(0x234),_0x4f222e(0x212),'.video-area',_0x4f222e(0x118)],'QUICK_TITLE':[_0x4f222e(0x214),'h1',_0x4f222e(0x22a),_0x4f222e(0xce),_0x4f222e(0x156)],'PRECISE_TITLE':{'iqiyi.com':_0x4f222e(0xfa),'youku.com':'.anthology-wrap\x20li.active\x20span','v.qq.com':_0x4f222e(0x129),'bilibili.com':_0x4f222e(0xe0),'mgtv.com':_0x4f222e(0x1c3),'sohu.com':'.player-album-list\x20.on\x20a','le.com':_0x4f222e(0x1a2),'pptv.com':'.episode-list\x20.current','acfun.cn':_0x4f222e(0x149)}}},_0x70e24f={'get':_0x28f62a=>{const _0x50184a=_0x4f222e;if(!_0x441cfe['CACHE_ENABLED'])return null;try{const _0x4254e0=JSON[_0x50184a(0xd1)](GM_getValue(_0x50184a(0x215)+_0x441cfe['CACHE_VERSION']+'_'+_0x28f62a));if(_0x4254e0&&Date[_0x50184a(0xd6)]()-_0x4254e0[_0x50184a(0x1e9)]<_0x441cfe[_0x50184a(0x20e)])return _0x4254e0[_0x50184a(0x1eb)];}catch(_0x1a975e){}return null;},'set':(_0x2269c2,_0x19b1dc)=>{const _0x5c3cd0=_0x4f222e;if(!_0x441cfe[_0x5c3cd0(0x176)])return;try{GM_setValue(_0x5c3cd0(0x215)+_0x441cfe[_0x5c3cd0(0x19d)]+'_'+_0x2269c2,JSON[_0x5c3cd0(0x10d)]({'data':_0x19b1dc,'timestamp':Date[_0x5c3cd0(0xd6)]()}));}catch(_0xf3d452){}}},_0x570be8={'get':_0xbfa235=>GM_getValue('api_stats_'+_0xbfa235)||{'successCount':0x0,'failCount':0x0,'totalLatency':0x0,'requestCount':0x0},'recordSuccess':(_0x3eee1f,_0x5ec0c4)=>{const _0x45ac07=_0x4f222e,_0x4b91cc=_0x570be8[_0x45ac07(0x18c)](_0x3eee1f);_0x4b91cc[_0x45ac07(0x1ca)]++,_0x4b91cc[_0x45ac07(0x21f)]+=_0x5ec0c4,_0x4b91cc[_0x45ac07(0x143)]++,GM_setValue(_0x45ac07(0x22f)+_0x3eee1f,_0x4b91cc);},'recordFailure':_0x4d8f35=>{const _0x5d4293=_0x4f222e,_0x39b51=_0x570be8[_0x5d4293(0x18c)](_0x4d8f35);_0x39b51['failCount']++,_0x39b51[_0x5d4293(0x143)]++,GM_setValue(_0x5d4293(0x22f)+_0x4d8f35,_0x39b51);},'getScore':_0x2e8c0c=>{const _0x5b6482=_0x4f222e;if(_0x2e8c0c[_0x5b6482(0x143)]<0x3)return 0x3e8;const _0x3d5dad=_0x2e8c0c[_0x5b6482(0x1ca)]/_0x2e8c0c[_0x5b6482(0x143)];if(_0x3d5dad<0.5)return-0x3e8;return _0x3d5dad*0x2710-(_0x2e8c0c[_0x5b6482(0x1ca)]>0x0?_0x2e8c0c[_0x5b6482(0x21f)]/_0x2e8c0c[_0x5b6482(0x1ca)]:_0x441cfe[_0x5b6482(0x19f)]);}},_0x51154f=[{'name':'极速','url':_0x4f222e(0x1b6)},{'name':_0x4f222e(0x166),'url':_0x4f222e(0x1de)},{'name':_0x4f222e(0x195),'url':_0x4f222e(0x184)},{'name':'卧龙','url':'https://collect.wolongzyw.com/api.php/provide/vod/'},{'name':'非凡','url':_0x4f222e(0x164)},{'name':'优质','url':_0x4f222e(0x1a5)},{'name':'猫眼','url':_0x4f222e(0x17d)},{'name':'360','url':_0x4f222e(0x134)},{'name':_0x4f222e(0x177),'url':_0x4f222e(0x1ee)},{'name':'艾旦','url':'https://www.lovedan.net/api.php/provide/vod/'},{'name':'映迷','url':'https://www.inmi.app/api.php/provide/vod/'},{'name':'无忧','url':'https://www.wyvod.com/api.php/provide/vod/'},{'name':'蛋蛋','url':_0x4f222e(0x1ef)},{'name':'新浪','url':_0x4f222e(0x1c7)},{'name':'暴风','url':'https://app.bfzyapi.com/api.php/provide/vod/'},{'name':'飘零2','url':_0x4f222e(0x120)},{'name':'豆瓣','url':_0x4f222e(0x109)},{'name':'量子','url':_0x4f222e(0x188)},{'name':'最大','url':_0x4f222e(0x157)},{'name':'快车','url':_0x4f222e(0x1bc)},{'name':'CK','url':'https://ckzy.me/api.php/provide/vod/'},{'name':_0x4f222e(0x1ec),'url':'https://ikunzyapi.com/api.php/provide/vod/'},{'name':'百度','url':_0x4f222e(0x127)},{'name':'如意','url':_0x4f222e(0x1e4)},{'name':'魔爪','url':_0x4f222e(0x1c9)},{'name':'虎牙','url':_0x4f222e(0x186)},{'name':'U酷','url':_0x4f222e(0x141)},{'name':'花旗','url':_0x4f222e(0x124)},{'name':'闪电','url':_0x4f222e(0x1cd)},{'name':'无尽','url':_0x4f222e(0x226)},{'name':'豪华','url':_0x4f222e(0x1e1)},{'name':'牛牛','url':'https://api.niuniuzy.me/api.php/provide/vod/'},{'name':'天涯','url':_0x4f222e(0xf3)},{'name':'光速','url':_0x4f222e(0x1bd)},{'name':'速播','url':'https://subocaiji.com/api.php/provide/vod/'},{'name':'魔都','url':'https://www.mdzyapi.com/api.php/provide/vod/'},{'name':'快龙','url':_0x4f222e(0x19a)},{'name':'刺桐','url':_0x4f222e(0x106)},{'name':'金鹰','url':'https://jyzyapi.com/api.php/provide/vod/'}],_0x3955f0=_0x58f610=>{const _0x5b3775=_0x4f222e,_0x140196=new Map();_0x58f610[_0x5b3775(0x19b)](_0x5a28a6=>{const _0x2f4c5a=_0x5b3775;if(!_0x140196[_0x2f4c5a(0x15f)](_0x5a28a6[_0x2f4c5a(0x18b)]))_0x140196[_0x2f4c5a(0x10b)](_0x5a28a6[_0x2f4c5a(0x18b)],{..._0x5a28a6,'shortName':_0x5a28a6[_0x2f4c5a(0x1da)][_0x2f4c5a(0x219)](0x0,0x4)});});let _0x2c5463=Array['from'](_0x140196[_0x5b3775(0x203)]());if(_0x441cfe[_0x5b3775(0xe4)])_0x2c5463=_0x2c5463[_0x5b3775(0xdf)](_0x178245=>({..._0x178245,'score':_0x570be8[_0x5b3775(0x1a3)](_0x570be8['get'](_0x178245[_0x5b3775(0x136)]))}))['sort']((_0x39dfaa,_0x59987b)=>_0x59987b[_0x5b3775(0x20b)]-_0x39dfaa['score']);return _0x2c5463;},_0x561d09=_0x3955f0(_0x51154f),_0x50309d={'currentEpisodeList':[],'currentPlayingUrl':'','hiddenPlayerElement':null,'isPanelOpen':![],'currentURL':location[_0x4f222e(0x12a)],'dom':{},'timers':{},'sessionCache':{'key':null,'results':[]},'activeSourceName':null,'isFirstAutoplayAttempted':![],'currentPageEpisodeNumber':null,'failedUrls':new Set(),'isUserClosed':![],'currentSearchId':0x0,'isPlayerActive':![]},_0x1d1887=()=>_0x441cfe[_0x4f222e(0x1bb)][_0x4f222e(0x224)](_0x18dba2=>_0x18dba2[_0x4f222e(0x216)](location[_0x4f222e(0x12a)])),_0x96cac={'init'(){const _0x32f1a6=_0x4f222e;this['injectStyle'](),_0x50309d[_0x32f1a6(0x133)]['container']=this[_0x32f1a6(0x14c)](_0x32f1a6(0x1ab),{'id':_0x32f1a6(0x22e)}),_0x50309d[_0x32f1a6(0x133)][_0x32f1a6(0x1ce)]=this['createElement'](_0x32f1a6(0x1d4),{'id':_0x32f1a6(0x135)}),_0x50309d[_0x32f1a6(0x133)][_0x32f1a6(0x1d3)]=this[_0x32f1a6(0x14c)](_0x32f1a6(0x1ab),{'id':_0x32f1a6(0x213)}),_0x50309d[_0x32f1a6(0x133)][_0x32f1a6(0xe6)]=this[_0x32f1a6(0x14c)](_0x32f1a6(0x1ab),{'id':_0x32f1a6(0x1b7)}),_0x50309d[_0x32f1a6(0x133)][_0x32f1a6(0x1b9)]=this['createElement']('div',{'id':_0x32f1a6(0x1e8),'innerHTML':_0x32f1a6(0xfd)}),_0x50309d['dom'][_0x32f1a6(0xe6)][_0x32f1a6(0x198)]=_0x32f1a6(0x1c6),document[_0x32f1a6(0x180)][_0x32f1a6(0x140)](_0x50309d['dom'][_0x32f1a6(0x1f1)],_0x50309d[_0x32f1a6(0x133)][_0x32f1a6(0xe6)],_0x50309d[_0x32f1a6(0x133)]['globalStatus']),_0x50309d[_0x32f1a6(0x133)]['container'][_0x32f1a6(0x140)](_0x50309d[_0x32f1a6(0x133)][_0x32f1a6(0x1ce)],_0x50309d[_0x32f1a6(0x133)]['panel']),_0x50309d[_0x32f1a6(0x133)][_0x32f1a6(0xd8)]=document[_0x32f1a6(0xe2)](_0x32f1a6(0x14e)),_0x50309d['dom'][_0x32f1a6(0xf2)]=document['getElementById']('tm-close-btn-fusion'),_0x50309d[_0x32f1a6(0x133)][_0x32f1a6(0xd7)]=document[_0x32f1a6(0xe2)]('tm-global-status-text'),this[_0x32f1a6(0x132)](),this['attachEventListeners']();},'createElement':(_0x35fa1b,_0x1fdecc)=>Object[_0x4f222e(0x1e3)](document[_0x4f222e(0x14c)](_0x35fa1b),_0x1fdecc),'injectStyle'(){const _0x32f115=_0x4f222e;GM_addStyle(_0x32f115(0x14d));},'initDraggableIcon'(){const _0x51cf0e=_0x4f222e;let _0x1a19e1=![],_0x5b2079=![],_0x45e5a6,_0x43db0b;const _0x319c3b=_0x50309d[_0x51cf0e(0x133)]['container'],_0x4dc0cf=GM_getValue(_0x441cfe[_0x51cf0e(0xdb)],{'left':_0x51cf0e(0x12c),'top':_0x51cf0e(0x201)});Object[_0x51cf0e(0x1e3)](_0x319c3b['style'],_0x4dc0cf);const _0x203919=_0x2a714d=>{const _0x1e6737=_0x51cf0e;if(!_0x1a19e1)return;_0x5b2079=!![];let _0x321166=Math['max'](0x0,Math[_0x1e6737(0x21b)](_0x2a714d[_0x1e6737(0x1d5)]-_0x45e5a6,window[_0x1e6737(0x18d)]-_0x319c3b[_0x1e6737(0xed)])),_0x5eb652=Math[_0x1e6737(0x187)](0x0,Math[_0x1e6737(0x21b)](_0x2a714d[_0x1e6737(0x1d2)]-_0x43db0b,window[_0x1e6737(0xf8)]-_0x319c3b[_0x1e6737(0xfb)]));Object['assign'](_0x319c3b[_0x1e6737(0x16a)],{'left':_0x321166+'px','top':_0x5eb652+'px'});},_0x5d9402=()=>{const _0x2395d3=_0x51cf0e;if(!_0x1a19e1)return;_0x1a19e1=![],document[_0x2395d3(0x180)][_0x2395d3(0x16a)]['userSelect']='',_0x319c3b[_0x2395d3(0x16a)][_0x2395d3(0x11b)]=_0x2395d3(0x22b),_0x319c3b['style'][_0x2395d3(0x199)]='';if(_0x5b2079)GM_setValue(_0x441cfe[_0x2395d3(0xdb)],{'left':_0x319c3b['style'][_0x2395d3(0x193)],'top':_0x319c3b[_0x2395d3(0x16a)][_0x2395d3(0x165)]});window[_0x2395d3(0x13a)]('mousemove',_0x203919,!![]),window[_0x2395d3(0x13a)](_0x2395d3(0xff),_0x5d9402,!![]),window[_0x2395d3(0x13a)]('blur',_0x5d9402,!![]);},_0x2d5e89=_0x5dcfc=>{const _0x23599e=_0x51cf0e;_0x5dcfc[_0x23599e(0x1cc)]();if(_0x5dcfc['button']!==0x0)return;_0x5b2079=![],_0x1a19e1=!![],document[_0x23599e(0x180)][_0x23599e(0x16a)][_0x23599e(0x1a1)]='none',_0x319c3b[_0x23599e(0x16a)]['cursor']=_0x23599e(0x154),_0x319c3b[_0x23599e(0x16a)][_0x23599e(0x199)]=_0x23599e(0x17c),_0x45e5a6=_0x5dcfc[_0x23599e(0x1d5)]-_0x319c3b[_0x23599e(0xfc)]()['left'],_0x43db0b=_0x5dcfc[_0x23599e(0x1d2)]-_0x319c3b[_0x23599e(0xfc)]()[_0x23599e(0x165)],window[_0x23599e(0x1e6)](_0x23599e(0x1fb),_0x203919,!![]),window[_0x23599e(0x1e6)](_0x23599e(0xff),_0x5d9402,!![]),window[_0x23599e(0x1e6)](_0x23599e(0x178),_0x5d9402,!![]);};_0x319c3b[_0x51cf0e(0x1e6)](_0x51cf0e(0x1ed),_0x2d5e89),_0x50309d['dom'][_0x51cf0e(0x1ce)][_0x51cf0e(0x121)]=_0x47f76f=>{const _0x3d4511=_0x51cf0e;_0x47f76f[_0x3d4511(0x1cc)](),setTimeout(()=>{const _0x51b8f8=_0x3d4511;if(_0x50309d[_0x51b8f8(0x131)])this['hidePanel']();else{const _0x1df3ac=location[_0x51b8f8(0x12a)];_0x50309d[_0x51b8f8(0x170)][_0x51b8f8(0x179)]===_0x1df3ac&&_0x50309d[_0x51b8f8(0x170)][_0x51b8f8(0x125)][_0x51b8f8(0x1a9)]>0x0?(this['showPanel'](),this[_0x51b8f8(0xf0)]()):(this['showPanel'](),_0xddf1d0[_0x51b8f8(0x1b4)]());}},0x32);};},'attachEventListeners'(){const _0x5a09a9=_0x4f222e;_0x50309d[_0x5a09a9(0x133)][_0x5a09a9(0xf2)]['onclick']=()=>_0x30f933['close'](),_0x50309d[_0x5a09a9(0x133)][_0x5a09a9(0x1d3)][_0x5a09a9(0x16b)]=()=>this[_0x5a09a9(0x144)](_0x5a09a9(0x1c2)),_0x50309d[_0x5a09a9(0x133)][_0x5a09a9(0x1d3)]['onmouseleave']=()=>{const _0x3e44eb=_0x5a09a9;_0x50309d[_0x3e44eb(0x112)][_0x3e44eb(0x1c2)]=setTimeout(()=>this['hidePanel'](),_0x441cfe[_0x3e44eb(0x161)]);},window[_0x5a09a9(0x1e6)](_0x5a09a9(0x209),()=>{const _0x32b5c3=_0x5a09a9;this[_0x32b5c3(0x144)](_0x32b5c3(0x209)),_0x50309d['timers'][_0x32b5c3(0x209)]=setTimeout(()=>_0x30f933[_0x32b5c3(0x202)](),0x64);}),window[_0x5a09a9(0x1e6)](_0x5a09a9(0x119),_0x346892=>_0x30f933[_0x5a09a9(0x142)](_0x346892));},'renderInitialPanel'(){const _0x22fdb5=_0x4f222e;_0x50309d[_0x22fdb5(0x133)][_0x22fdb5(0x1d3)]['style'][_0x22fdb5(0x101)]='',_0x50309d[_0x22fdb5(0x133)]['panel']['innerHTML']=_0x22fdb5(0x207);},'addSourceResult'(_0x4f0676){const _0x38b0fa=_0x4f222e,_0x49e3dc=_0x50309d[_0x38b0fa(0x133)]['panel'][_0x38b0fa(0x175)](_0x38b0fa(0x233));if(!_0x49e3dc||!_0x50309d[_0x38b0fa(0x131)]||_0x49e3dc['classList']['contains']('episode-list'))return;Object[_0x38b0fa(0x1e3)](_0x50309d[_0x38b0fa(0x133)][_0x38b0fa(0x1d3)]['style'],{'flexDirection':'','alignItems':'','justifyContent':'','padding':'','width':'','whiteSpace':'','top':'','transform':''}),_0x49e3dc[_0x38b0fa(0x16a)]['display']='';const _0x1ce905=Array['from'](_0x49e3dc['children'])[_0x38b0fa(0x191)](_0x4bec44=>_0x4bec44[_0x38b0fa(0x218)][_0x38b0fa(0x1da)]===_0x4f0676[_0x38b0fa(0x1da)]);if(_0x1ce905)_0x1ce905[_0x38b0fa(0x1fa)]();const _0x1bd3ca=_0x4f0676[_0x38b0fa(0x1eb)][_0x38b0fa(0x189)]||'',_0x1c9984=_0x1bd3ca['includes']('$$$')?_0x1bd3ca[_0x38b0fa(0x171)](_0x38b0fa(0x126))[_0x38b0fa(0x1dd)]()['split']('#')['length']:_0x1bd3ca[_0x38b0fa(0x123)]('#')?_0x1bd3ca[_0x38b0fa(0x171)]('#')[_0x38b0fa(0x1a9)]:_0x1bd3ca['includes']('$')?_0x1bd3ca[_0x38b0fa(0x171)]('$')['length']:0x1,_0x4063e1=_0x96cac[_0x38b0fa(0x14c)](_0x38b0fa(0x1d4),{'textContent':_0x4f0676[_0x38b0fa(0x1da)]+'\x20('+_0x1c9984+_0x38b0fa(0x1ff)+_0x4f0676[_0x38b0fa(0x20b)][_0x38b0fa(0x107)](0x0)+')','className':'tm-collection-btn','onclick':()=>{const _0x467b26=_0x38b0fa;_0x50309d[_0x467b26(0x102)]=_0x4f0676['name'],this[_0x467b26(0xe1)](_0x4f0676,![],_0x50309d[_0x467b26(0x16c)]);}});_0x4063e1['dataset'][_0x38b0fa(0x1da)]=_0x4f0676[_0x38b0fa(0x1da)];if(_0x4f0676['name']===_0x50309d[_0x38b0fa(0x102)])_0x4063e1[_0x38b0fa(0x217)]['add'](_0x38b0fa(0xcf));_0x49e3dc[_0x38b0fa(0x114)](_0x4063e1);},'renderSourceListFromCache'(){const _0x1df600=_0x4f222e;this['renderInitialPanel'](),_0x50309d[_0x1df600(0x133)][_0x1df600(0x1d3)]['style'][_0x1df600(0x101)]='',this[_0x1df600(0xfe)]('共\x20'+_0x50309d[_0x1df600(0x170)]['results'][_0x1df600(0x1a9)]+_0x1df600(0x13d),![]);const _0x1477b2=_0x50309d[_0x1df600(0x133)][_0x1df600(0x1d3)]['querySelector'](_0x1df600(0x233));_0x1477b2[_0x1df600(0x198)]='',_0x50309d[_0x1df600(0x170)][_0x1df600(0x125)][_0x1df600(0x19b)](_0x2039e1=>this[_0x1df600(0x221)](_0x2039e1));if(_0x1477b2)this['autoResizePanel'](_0x1477b2,!![]);},'renderEpisodeList'(_0x349358,_0xe4f976=![],_0x45c24a=null){const _0x352d6d=_0x4f222e;if(_0x50309d['isUserClosed'])return;_0x96cac[_0x352d6d(0x1b3)]();const _0x544358=_0x50309d[_0x352d6d(0x133)][_0x352d6d(0x1d3)][_0x352d6d(0x175)](_0x352d6d(0x233));if(!_0x544358)return;_0x544358[_0x352d6d(0x198)]='',_0x50309d[_0x352d6d(0x133)][_0x352d6d(0x1d3)][_0x352d6d(0x16a)][_0x352d6d(0x101)]='',_0x544358['className']=_0x352d6d(0x14b),this[_0x352d6d(0xfe)](_0x352d6d(0x1cf),![]);const _0x2d9022=_0x50309d[_0x352d6d(0x133)][_0x352d6d(0x1d3)][_0x352d6d(0x175)](_0x352d6d(0x13f));_0x2d9022[_0x352d6d(0x16a)][_0x352d6d(0x11b)]='pointer',_0x2d9022[_0x352d6d(0x121)]=()=>this[_0x352d6d(0xf0)](),_0x50309d[_0x352d6d(0xd2)]=[];let _0x8f9f39=_0x349358['data']['vod_play_url']||'';if(!_0x8f9f39)return;let _0x334605=_0x8f9f39['includes'](_0x352d6d(0x126))?_0x8f9f39[_0x352d6d(0x171)]('$$$')[_0x352d6d(0x1dd)]()[_0x352d6d(0x171)]('#'):_0x8f9f39[_0x352d6d(0x123)]('#')?_0x8f9f39['split']('#'):_0x8f9f39[_0x352d6d(0x123)]('$')?[_0x8f9f39]:[],_0x38d6f5=0x0;_0x334605[_0x352d6d(0x19b)](_0x5c74c5=>{const _0x1fe05a=_0x352d6d,_0x5bb7e2=_0x5c74c5[_0x1fe05a(0x171)]('$'),_0x553825=_0x5bb7e2[0x0]?.[_0x1fe05a(0x19c)](),_0x1ff9a7=_0x5bb7e2[0x1]?.['trim']()||_0x5bb7e2[0x0]?.[_0x1fe05a(0x19c)]();if(!_0x553825&&!_0x1ff9a7)return;_0x38d6f5++,_0x50309d[_0x1fe05a(0xd2)]['push']({'name':_0x553825||'集'+_0x38d6f5,'url':_0x1ff9a7});const _0x208fb8=_0x96cac['createElement'](_0x1fe05a(0x1d4),{'textContent':_0x553825||'集'+_0x38d6f5,'className':'tm-collection-btn','onclick':()=>{const _0x4c420d=_0x1fe05a,_0x3625cb=_0x1d8c57[_0x4c420d(0x220)](_0x553825);if(_0x3625cb)_0x50309d[_0x4c420d(0x16c)]=_0x3625cb;_0x30f933['start'](_0x1ff9a7);}});_0x208fb8['dataset'][_0x1fe05a(0x18b)]=_0x1ff9a7,_0x544358[_0x1fe05a(0x114)](_0x208fb8);}),this['autoResizePanel'](_0x544358,![]);if(!_0x45c24a)return;const _0xcca370=String(parseInt(_0x45c24a,0xa));let _0x494797=null;const _0x4b7978=_0x544358['querySelectorAll'](_0x352d6d(0x1a4));for(const _0x1db596 of _0x4b7978){const _0x24fb03=_0x1d8c57[_0x352d6d(0x220)](_0x1db596[_0x352d6d(0x1b0)]);if(_0x24fb03&&String(parseInt(_0x24fb03,0xa))===_0xcca370){_0x494797=_0x1db596;break;}}if(!_0x494797)for(const _0xab2fcf of _0x4b7978){if(_0xab2fcf['textContent'][_0x352d6d(0x123)](_0xcca370)){_0x494797=_0xab2fcf;break;}}_0x494797&&(_0x494797['classList'][_0x352d6d(0x10a)](_0x352d6d(0xd4)),setTimeout(()=>_0x494797[_0x352d6d(0xe7)]({'behavior':_0x352d6d(0x18a),'block':_0x352d6d(0x139)}),0x64),_0xe4f976?(this[_0x352d6d(0xfe)](_0x352d6d(0x1d1)+_0x494797['textContent']),_0x30f933[_0x352d6d(0x17a)](_0x494797[_0x352d6d(0x218)][_0x352d6d(0x18b)])):this[_0x352d6d(0xfe)](_0x352d6d(0x1c8)+_0x494797[_0x352d6d(0x1b0)]));},'updateStatus'(_0x557c44,_0xc2035=![]){const _0x1e9929=_0x4f222e,_0x161d26=_0x50309d[_0x1e9929(0x133)][_0x1e9929(0x1d3)]['querySelector'](_0x1e9929(0x13f));_0x161d26&&(_0x161d26[_0x1e9929(0x1b0)]=_0x557c44,_0xc2035?(_0x161d26['style'][_0x1e9929(0xcd)]=_0x1e9929(0xf5),_0x161d26[_0x1e9929(0x16a)][_0x1e9929(0x104)]=_0x1e9929(0x1be),_0x161d26[_0x1e9929(0x16a)][_0x1e9929(0x1e5)]=_0x1e9929(0xf4)):(_0x161d26[_0x1e9929(0x16a)][_0x1e9929(0xcd)]='',_0x161d26[_0x1e9929(0x16a)][_0x1e9929(0x104)]='',_0x161d26[_0x1e9929(0x16a)][_0x1e9929(0x1e5)]=''),_0x161d26[_0x1e9929(0x16a)][_0x1e9929(0x11b)]=_0x1e9929(0x231));},'updatePlayerStatus'(_0x2c1341,_0x48e1fa=!![]){const _0x1c5c65=_0x4f222e;_0x48e1fa&&_0x2c1341?(_0x50309d[_0x1c5c65(0x133)][_0x1c5c65(0xd7)][_0x1c5c65(0x1b0)]=_0x2c1341,_0x50309d['dom'][_0x1c5c65(0x1b9)][_0x1c5c65(0x16a)][_0x1c5c65(0xf7)]=_0x1c5c65(0x1d8),setTimeout(()=>_0x50309d[_0x1c5c65(0x133)][_0x1c5c65(0x1b9)]['style']['opacity']='1',0xa)):(_0x50309d['dom']['globalStatus'][_0x1c5c65(0x16a)][_0x1c5c65(0xea)]='0',setTimeout(()=>{const _0x5d3ead=_0x1c5c65;if(_0x50309d[_0x5d3ead(0x133)]['globalStatus'][_0x5d3ead(0x16a)]['opacity']==='0')_0x50309d[_0x5d3ead(0x133)][_0x5d3ead(0x1b9)]['style']['display']=_0x5d3ead(0x17c);},0x12c));},'highlightPlayingEpisode'(_0x22445f){const _0xfbc3ec=_0x4f222e,_0x44bc2e=_0x50309d['dom'][_0xfbc3ec(0x1d3)][_0xfbc3ec(0x175)](_0xfbc3ec(0x233));if(!_0x44bc2e)return;_0x44bc2e[_0xfbc3ec(0x1a8)]('.tm-episode-matched')[_0xfbc3ec(0x19b)](_0x154be3=>_0x154be3[_0xfbc3ec(0x217)]['remove']('tm-episode-matched'));const _0x53016b=_0x44bc2e[_0xfbc3ec(0x175)]('.tm-collection-btn[data-url=\x22'+_0x22445f+'\x22]');_0x53016b&&(_0x53016b[_0xfbc3ec(0x217)][_0xfbc3ec(0x10a)]('tm-episode-matched'),_0x53016b['scrollIntoView']({'behavior':_0xfbc3ec(0x18a),'block':_0xfbc3ec(0x139)}));},'autoResizePanel'(_0x2ff578,_0x38c1c3){const _0x5c0539=_0x4f222e;if(_0x38c1c3){_0x50309d['dom'][_0x5c0539(0x1d3)][_0x5c0539(0x16a)]['width']='';return;}setTimeout(()=>{const _0x3fc007=_0x5c0539;if(!_0x50309d[_0x3fc007(0x131)])return;const _0x36b5c7=_0x2ff578[_0x3fc007(0x1a8)](_0x3fc007(0x1a4));if(!_0x36b5c7[_0x3fc007(0x1a9)])return;let _0x17da8e=0x0;for(const _0x1f2bd3 of _0x36b5c7){const _0xd8fb94=_0x1f2bd3[_0x3fc007(0xd3)]+0x8;if(_0xd8fb94>_0x17da8e)_0x17da8e=_0xd8fb94;}_0x50309d[_0x3fc007(0x133)][_0x3fc007(0x1d3)][_0x3fc007(0x16a)][_0x3fc007(0x101)]=Math[_0x3fc007(0x187)](_0x17da8e*0x2+0x18,0xb4)+'px';},0xa);},'toggleLoading':_0xa7f72c=>_0x50309d[_0x4f222e(0x133)][_0x4f222e(0x1ce)]['classList'][_0x4f222e(0x10f)](_0x4f222e(0x1fc),_0xa7f72c),'showPanel'(){const _0x222cf3=_0x4f222e;_0x50309d[_0x222cf3(0x133)][_0x222cf3(0x1d3)][_0x222cf3(0x16a)][_0x222cf3(0xf7)]=_0x222cf3(0x159),_0x50309d[_0x222cf3(0x131)]=!![];if(_0x50309d[_0x222cf3(0x15a)]){this[_0x222cf3(0x16f)](_0x50309d[_0x222cf3(0x15a)]);const _0x2d30ea=_0x50309d[_0x222cf3(0xd2)]['find'](_0x2b3b4b=>_0x2b3b4b[_0x222cf3(0x18b)]===_0x50309d[_0x222cf3(0x15a)]);if(_0x2d30ea)this['updateStatus'](_0x222cf3(0x1c8)+_0x2d30ea[_0x222cf3(0x1da)]);}},'hidePanel'(){const _0x267b8c=_0x4f222e;_0x50309d[_0x267b8c(0x133)][_0x267b8c(0x1d3)][_0x267b8c(0x16a)][_0x267b8c(0xf7)]=_0x267b8c(0x17c),_0x50309d[_0x267b8c(0x131)]=![],this[_0x267b8c(0x1b3)]();},'clearTimer':_0x36878f=>{const _0x53108e=_0x4f222e;clearInterval(_0x50309d[_0x53108e(0x112)][_0x36878f]),clearTimeout(_0x50309d[_0x53108e(0x112)][_0x36878f]),_0x50309d[_0x53108e(0x112)][_0x36878f]=null;},'clearAllTimers':()=>Object[_0x4f222e(0x162)](_0x50309d['timers'])[_0x4f222e(0x19b)](_0x2c5165=>_0x96cac[_0x4f222e(0x144)](_0x2c5165))},_0xddf1d0={async 'masterSearch'(){const _0x102431=_0x4f222e;_0x96cac[_0x102431(0x1b3)](),_0x96cac[_0x102431(0x116)](),_0x96cac[_0x102431(0xd9)](!![]),Object[_0x102431(0x1e3)](_0x50309d[_0x102431(0x133)]['panel'][_0x102431(0x16a)],{'flexDirection':_0x102431(0x208),'alignItems':'center','justifyContent':'center','padding':_0x102431(0x10e),'width':_0x102431(0x1ae),'whiteSpace':'nowrap','top':_0x102431(0x117),'transform':_0x102431(0x173)}),_0x50309d[_0x102431(0x133)][_0x102431(0x1d3)][_0x102431(0x175)](_0x102431(0x233))[_0x102431(0x16a)][_0x102431(0xf7)]=_0x102431(0x17c);const _0x1a36ca=_0x1d8c57['getQuickMainTitle']();if(!_0x1a36ca){_0x96cac[_0x102431(0xfe)]('无法获取视频标题',!![]),_0x96cac[_0x102431(0xd9)](![]);return;}const _0x3062d1=await _0x1d8c57[_0x102431(0xf6)]();_0x96cac['updateStatus'](_0x102431(0x150)+(_0x3062d1?'\x20第'+_0x3062d1+'集':'')+_0x102431(0x151)+_0x561d09[_0x102431(0x1a9)]+')'),_0x50309d[_0x102431(0x170)]={'key':location[_0x102431(0x12a)],'results':[]},_0x50309d[_0x102431(0x102)]=null,_0x50309d[_0x102431(0x1a6)]=![],_0x50309d[_0x102431(0x206)][_0x102431(0x1c0)](),_0x50309d['isUserClosed']=![];const _0x5819ef=Date[_0x102431(0xd6)]();_0x50309d[_0x102431(0x18f)]=_0x5819ef,_0x50309d[_0x102431(0x16c)]=_0x3062d1,setTimeout(()=>{const _0x207091=_0x102431;if(_0x50309d[_0x207091(0x18f)]!==_0x5819ef)return;this[_0x207091(0x1e2)](_0x1a36ca,_0x3062d1,_0x5819ef);},0x64);},async 'performApiSearch'(_0x50948b,_0x426551,_0x72919a){const _0x5a6202=_0x4f222e;let _0x2b0cb0=0x0;const _0x2db330=async _0x3fc05b=>{const _0x4fecf5=_0x585e;if(_0x50309d['isUserClosed']||_0x50309d[_0x4fecf5(0x18f)]!==_0x72919a)return;const _0x5bc9a5=await this[_0x4fecf5(0x21d)](_0x3fc05b,_0x50948b);_0x2b0cb0++;if(_0x50309d[_0x4fecf5(0x131)])_0x96cac[_0x4fecf5(0xfe)](_0x4fecf5(0x150)+(_0x426551?'\x20第'+_0x426551+'集':'')+'\x20('+_0x2b0cb0+'/'+_0x561d09[_0x4fecf5(0x1a9)]+')');if(!_0x5bc9a5){_0x570be8['recordFailure'](_0x3fc05b[_0x4fecf5(0x1da)]);return;}_0x570be8[_0x4fecf5(0x20c)](_0x3fc05b[_0x4fecf5(0x1da)],_0x5bc9a5[_0x4fecf5(0x1ad)]);if(_0x50309d[_0x4fecf5(0x137)]||_0x50309d[_0x4fecf5(0x18f)]!==_0x72919a)return;const _0x5a4ad8=_0x5bc9a5[_0x4fecf5(0x1eb)][_0x4fecf5(0x189)][_0x4fecf5(0x171)](_0x4fecf5(0x126))[_0x4fecf5(0x1dd)]()[_0x4fecf5(0x171)]('#');let _0x393303=null,_0x8b8913=![];const _0x1afe7c=_0x426551?String(parseInt(_0x426551,0xa)):null;let _0x220ea9=_0x5a4ad8[_0x4fecf5(0x191)](_0x47a870=>{const _0x3a8e88=_0x4fecf5,[_0x524d4a]=_0x47a870['split']('$'),_0xc188f5=_0x1d8c57[_0x3a8e88(0x220)](_0x524d4a);return _0xc188f5&&_0x1afe7c&&String(parseInt(_0xc188f5,0xa))===_0x1afe7c;});if(!_0x220ea9&&_0x1afe7c)_0x220ea9=_0x5a4ad8[_0x4fecf5(0x191)](_0x154873=>{const _0xa16040=_0x4fecf5,[_0x4f7c05]=_0x154873[_0xa16040(0x171)]('$');return _0x4f7c05&&_0x4f7c05['includes'](_0x1afe7c);});if(_0x220ea9)_0x393303=_0x220ea9['split']('$')[0x1],_0x8b8913=!![];else{if(_0x5a4ad8[_0x4fecf5(0x1a9)]>0x0&&_0x5a4ad8[0x0][_0x4fecf5(0x123)]('$'))_0x393303=_0x5a4ad8[0x0][_0x4fecf5(0x171)]('$')[0x1];}if(!_0x393303||!_0x393303[_0x4fecf5(0x123)]('.m3u8'))return;const _0x3385b3=await _0x1d8c57[_0x4fecf5(0x168)](_0x393303);if(!_0x3385b3){_0x31bf6b({..._0x5bc9a5,'score':0x32,'resolution':0x0,'latency':0x0});return;}const _0x4f86a9={..._0x5bc9a5,'score':Math[_0x4fecf5(0x187)](0x0,Math[_0x4fecf5(0x21b)](0x64,_0x3385b3[_0x4fecf5(0x20b)])),'resolution':_0x3385b3[_0x4fecf5(0x167)],'latency':_0x3385b3[_0x4fecf5(0x1ad)],'evaluatedUrl':_0x3385b3[_0x4fecf5(0x18b)]};!_0x50309d['isFirstAutoplayAttempted']&&_0x8b8913&&(_0x50309d[_0x4fecf5(0x1a6)]=!![],_0x50309d[_0x4fecf5(0x102)]=_0x4f86a9[_0x4fecf5(0x1da)],_0x96cac[_0x4fecf5(0xe1)](_0x4f86a9,!![],_0x50309d[_0x4fecf5(0x16c)]),_0x96cac[_0x4fecf5(0x22c)]());_0x31bf6b(_0x4f86a9);function _0x31bf6b(_0x54e485){const _0x5e211a=_0x4fecf5,_0xa7193=_0x50309d[_0x5e211a(0x170)][_0x5e211a(0x125)][_0x5e211a(0x1db)](_0x39091c=>_0x39091c[_0x5e211a(0x1da)]===_0x54e485[_0x5e211a(0x1da)]);if(_0xa7193>-0x1)_0x50309d['sessionCache'][_0x5e211a(0x125)][_0xa7193]=_0x54e485;else _0x50309d[_0x5e211a(0x170)][_0x5e211a(0x125)][_0x5e211a(0x1c1)](_0x54e485);_0x50309d[_0x5e211a(0x170)][_0x5e211a(0x125)]['sort']((_0x65a1b3,_0x1b49e4)=>_0x1b49e4[_0x5e211a(0x20b)]-_0x65a1b3[_0x5e211a(0x20b)]),_0x96cac['addSourceResult'](_0x54e485);}};await _0x1d8c57[_0x5a6202(0x22d)](_0x441cfe[_0x5a6202(0x1f0)],_0x561d09,_0x2db330)[_0x5a6202(0x122)](()=>{const _0x4577df=_0x5a6202;if(_0x50309d['currentSearchId']!==_0x72919a||_0x50309d[_0x4577df(0x137)])return;const _0x2e66da=_0x50309d[_0x4577df(0x170)][_0x4577df(0x125)]['filter'](_0x37e4a8=>_0x37e4a8[_0x4577df(0x20b)]>=0xa);_0x2e66da[_0x4577df(0x1a9)]===0x0?(_0x96cac[_0x4577df(0xd9)](![]),_0x96cac['updateStatus']('未找到可用源,请刷新重试',!![])):_0x96cac[_0x4577df(0xd9)](![]);});},'searchSingleApi':(_0x5dacc9,_0x5729de)=>new Promise(async _0x1674ce=>{const _0x347e3a=_0x4f222e;try{const _0x33b9ef=await _0x1d8c57[_0x347e3a(0x1ba)](_0x347e3a(0x148)+encodeURIComponent(_0x5729de),_0x5dacc9);if(_0x33b9ef[_0x347e3a(0x1eb)]?.['list']?.[0x0]?.[_0x347e3a(0x189)]){_0x1674ce({'name':_0x5dacc9[_0x347e3a(0x1da)],'data':_0x33b9ef[_0x347e3a(0x1eb)][_0x347e3a(0x229)][0x0],'latency':_0x33b9ef[_0x347e3a(0x1ad)]});return;}const _0x56d589=await _0x1d8c57[_0x347e3a(0x1ba)](_0x347e3a(0xf9)+encodeURIComponent(_0x5729de),_0x5dacc9),_0x58f30b=_0x56d589[_0x347e3a(0x1eb)]?.[_0x347e3a(0x229)]?.[0x0]?.['vod_id'];if(!_0x58f30b)return _0x1674ce(null);const _0x8aa275=await _0x1d8c57[_0x347e3a(0x1ba)](_0x347e3a(0xdc)+_0x58f30b,_0x5dacc9),_0x22df86=_0x8aa275[_0x347e3a(0x1eb)]?.[_0x347e3a(0x229)]?.[0x0];if(!_0x22df86?.[_0x347e3a(0x189)])return _0x1674ce(null);_0x1674ce({'name':_0x5dacc9[_0x347e3a(0x1da)],'data':_0x22df86,'latency':_0x56d589[_0x347e3a(0x1ad)]+_0x8aa275[_0x347e3a(0x1ad)]});}catch(_0x514b17){_0x1674ce(null);}})},_0x30f933={'initPlacement'(){const _0x356eef=_0x4f222e;if(_0x50309d[_0x356eef(0x137)])return;_0x50309d[_0x356eef(0x133)]['iframePlayer']['srcdoc']='