2 lines
28 KiB
JavaScript
Executable File
2 lines
28 KiB
JavaScript
Executable File
const _0x242fc1=_0x35c1;(function(_0x3e594b,_0x19aec9){const _0x2b9eba={_0x4ee093:0x117,_0x57b392:0x10b,_0x2e0f2c:0x114},_0x33e261=_0x35c1,_0x165159=_0x3e594b();while(!![]){try{const _0x333e0c=parseInt(_0x33e261(_0x2b9eba._0x4ee093))/0x1+-parseInt(_0x33e261(0xf3))/0x2+-parseInt(_0x33e261(0xc3))/0x3*(parseInt(_0x33e261(0xea))/0x4)+parseInt(_0x33e261(0x122))/0x5*(parseInt(_0x33e261(_0x2b9eba._0x57b392))/0x6)+-parseInt(_0x33e261(_0x2b9eba._0x2e0f2c))/0x7+parseInt(_0x33e261(0xc5))/0x8*(parseInt(_0x33e261(0xc9))/0x9)+parseInt(_0x33e261(0xdd))/0xa;if(_0x333e0c===_0x19aec9)break;else _0x165159['push'](_0x165159['shift']());}catch(_0x4f1033){_0x165159['push'](_0x165159['shift']());}}}(_0x4846,0x1bbe8));var __create=Object[_0x242fc1(0x123)],__defProp=Object[_0x242fc1(0xf1)],__defProps=Object[_0x242fc1(0x107)],__getOwnPropDesc=Object['getOwnPropertyDescriptor'],__getOwnPropDescs=Object[_0x242fc1(0xd1)],__getOwnPropNames=Object['getOwnPropertyNames'],__getOwnPropSymbols=Object['getOwnPropertySymbols'],__getProtoOf=Object['getPrototypeOf'],__hasOwnProp=Object['prototype']['hasOwnProperty'],__propIsEnum=Object['prototype']['propertyIsEnumerable'],__defNormalProp=(_0x4e72ae,_0x3282fc,_0x221b73)=>_0x3282fc in _0x4e72ae?__defProp(_0x4e72ae,_0x3282fc,{'enumerable':!![],'configurable':!![],'writable':!![],'value':_0x221b73}):_0x4e72ae[_0x3282fc]=_0x221b73,__spreadValues=(_0x4d6a07,_0x5914a3)=>{const _0x22aeaf=_0x242fc1;for(var _0x32fca5 in _0x5914a3||(_0x5914a3={}))if(__hasOwnProp['call'](_0x5914a3,_0x32fca5))__defNormalProp(_0x4d6a07,_0x32fca5,_0x5914a3[_0x32fca5]);if(__getOwnPropSymbols)for(var _0x32fca5 of __getOwnPropSymbols(_0x5914a3)){if(__propIsEnum[_0x22aeaf(0xf8)](_0x5914a3,_0x32fca5))__defNormalProp(_0x4d6a07,_0x32fca5,_0x5914a3[_0x32fca5]);}return _0x4d6a07;},__spreadProps=(_0x52825b,_0xd74939)=>__defProps(_0x52825b,__getOwnPropDescs(_0xd74939)),__copyProps=(_0x4cbd15,_0x15a416,_0x5eab40,_0x1f3bf3)=>{const _0x3b3296={_0x4e968b:0xf2,_0x370629:0xf8},_0x4410db=_0x242fc1;if(_0x15a416&&typeof _0x15a416===_0x4410db(_0x3b3296._0x4e968b)||typeof _0x15a416==='function'){for(let _0x1989d1 of __getOwnPropNames(_0x15a416))if(!__hasOwnProp[_0x4410db(_0x3b3296._0x370629)](_0x4cbd15,_0x1989d1)&&_0x1989d1!==_0x5eab40)__defProp(_0x4cbd15,_0x1989d1,{'get':()=>_0x15a416[_0x1989d1],'enumerable':!(_0x1f3bf3=__getOwnPropDesc(_0x15a416,_0x1989d1))||_0x1f3bf3['enumerable']});}return _0x4cbd15;},__toESM=(_0x39ed5c,_0x3259c6,_0x27c5fe)=>(_0x27c5fe=_0x39ed5c!=null?__create(__getProtoOf(_0x39ed5c)):{},__copyProps(_0x3259c6||!_0x39ed5c||!_0x39ed5c['__esModule']?__defProp(_0x27c5fe,'default',{'value':_0x39ed5c,'enumerable':!![]}):_0x27c5fe,_0x39ed5c)),__async=(_0x4c12ba,_0x33dc1c,_0x14776b)=>{const _0x5f32e6={_0x30a4f4:0x129};return new Promise((_0x1a2e5a,_0x54d7fb)=>{const _0x2d4df6=_0x35c1;var _0x269212=_0x4db031=>{try{_0x4492b0(_0x14776b['next'](_0x4db031));}catch(_0x343140){_0x54d7fb(_0x343140);}},_0x46683d=_0xbc53a0=>{try{_0x4492b0(_0x14776b['throw'](_0xbc53a0));}catch(_0x328dfc){_0x54d7fb(_0x328dfc);}},_0x4492b0=_0x1c8fe3=>_0x1c8fe3[_0x2d4df6(0xc4)]?_0x1a2e5a(_0x1c8fe3[_0x2d4df6(0x100)]):Promise[_0x2d4df6(0xcf)](_0x1c8fe3[_0x2d4df6(0x100)])[_0x2d4df6(0xe5)](_0x269212,_0x46683d);_0x4492b0((_0x14776b=_0x14776b[_0x2d4df6(0x104)](_0x4c12ba,_0x33dc1c))[_0x2d4df6(_0x5f32e6._0x30a4f4)]());});},import_cheerio_without_node_native=__toESM(require(_0x242fc1(0x102))),PROVIDER_NAME=_0x242fc1(0xce),BASE_URL='https://4khdhub.one',TMDB_URL=_0x242fc1(0x111),TMDB_KEY='439c478a771f35c05022f9feabcca01c',USER_AGENT=_0x242fc1(0x12f),HEADERS={'User-Agent':USER_AGENT,'Referer':BASE_URL+'/'};function getInvertedSortTag(_0x368260,_0x392912=0xf423f){const _0x3fca6c={_0x4f6a2d:0xf5},_0xe3375f=_0x242fc1,_0x2c6b4d=Math[_0xe3375f(0xf6)](0x0,parseInt(_0x368260,0xa)||0x0),_0x1aaba3=Math[_0xe3375f(0xf6)](0x0,_0x392912-_0x2c6b4d),_0x5cc5d7=_0x1aaba3[_0xe3375f(0xc6)](0x2)[_0xe3375f(_0x3fca6c._0x4f6a2d)](0x14,'0');return _0x5cc5d7[_0xe3375f(0xf9)]('')['map'](_0x3fbe34=>_0x3fbe34==='1'?'\ufeff':'')['join']('');}function resolveSettings(_0x1910f8){const _0x1c8f73={_0x4dea26:0xda,_0xd7994c:0xbf,_0x58a36a:0xd0,_0x13172f:0xde,_0x42cca7:0x108,_0x10b3c2:0xf2,_0xe839ba:0xe0,_0x4a0d2e:0x108},_0x552eb6=_0x242fc1;let _0x34e00e={'sortBy':_0x552eb6(_0x1c8f73._0x4dea26)};try{let _0x1ec629=_0x1910f8;!_0x1ec629&&typeof globalThis!==_0x552eb6(_0x1c8f73._0xd7994c)&&(_0x1ec629=globalThis['SCRAPER_SETTINGS']||globalThis[_0x552eb6(_0x1c8f73._0x58a36a)]||globalThis['settings']);!_0x1ec629&&typeof global!=='undefined'&&(_0x1ec629=global['SCRAPER_SETTINGS']||global['SETTINGS']||global['settings']);!_0x1ec629&&typeof window!=='undefined'&&(_0x1ec629=window[_0x552eb6(_0x1c8f73._0x13172f)]||window[_0x552eb6(_0x1c8f73._0x58a36a)]||window['settings']);if(_0x1ec629){var _0x269144=_0x1ec629[_0x552eb6(_0x1c8f73._0x42cca7)]||_0x1ec629['sort_by']||_0x1ec629[_0x552eb6(0xf4)]||'';typeof _0x269144===_0x552eb6(_0x1c8f73._0x10b3c2)&&_0x269144!==null&&(_0x269144=_0x269144[_0x552eb6(0x100)]||_0x269144[_0x552eb6(0x128)]||'');var _0x10e861=String(_0x269144)[_0x552eb6(_0x1c8f73._0xe839ba)]();_0x10e861[_0x552eb6(0x10e)](_0x552eb6(0xec))||_0x10e861[_0x552eb6(0x10e)]('largest')?_0x34e00e[_0x552eb6(0x108)]=_0x552eb6(0xec):_0x34e00e[_0x552eb6(_0x1c8f73._0x4a0d2e)]=_0x552eb6(_0x1c8f73._0x4dea26);}}catch(_0xc1b87b){console['error']('['+PROVIDER_NAME+_0x552eb6(0xd2),_0xc1b87b);}return _0x34e00e;}function onSettings(){const _0x251324={_0x10cc85:0x118,_0x186b2a:0x11d},_0x185300=_0x242fc1;return[{'type':_0x185300(_0x251324._0x10cc85),'key':'sortBy','name':'sort_by','label':'Sort\x20By','options':[{'label':_0x185300(0x113),'value':_0x185300(0xda)},{'label':_0x185300(_0x251324._0x186b2a),'value':'size'}],'default':_0x185300(0xda)}];}function fetchText(_0x59dd92){const _0x4b874d={_0x5c77bd:0xcb};return __async(this,arguments,function*(_0x53162a,_0xc5ec8c=BASE_URL){const _0x168501=_0x35c1,_0x1de8f1=yield fetch(_0x53162a,{'headers':__spreadProps(__spreadValues({},HEADERS),{'Referer':_0xc5ec8c+'/'})});if(!_0x1de8f1['ok'])throw new Error(_0x168501(_0x4b874d._0x5c77bd)+_0x1de8f1['status']+':\x20'+_0x53162a);return _0x1de8f1[_0x168501(0x10a)]();});}function absoluteUrl(_0xd4ed16,_0x5995bd=BASE_URL){if(!_0xd4ed16)return'';if(/^https?:\/\//i['test'](_0xd4ed16))return _0xd4ed16;try{return new URL(_0xd4ed16,_0x5995bd)['toString']();}catch(_0x46dae5){return'';}}function decodeBase64(_0x490bc1){const _0x45487b=_0x242fc1,_0x4340f8=_0x45487b(0x11a),_0x10c34c=String(_0x490bc1||'')['replace'](/=+$/,'');let _0x512aa0='',_0x2b565d=0x0,_0x1958f1,_0xfebcb9,_0x15a46f=0x0;while(_0xfebcb9=_0x10c34c['charAt'](_0x15a46f++)){_0xfebcb9=_0x4340f8['indexOf'](_0xfebcb9);if(_0xfebcb9<0x0)continue;_0x1958f1=_0x2b565d%0x4?_0x1958f1*0x40+_0xfebcb9:_0xfebcb9,_0x2b565d++%0x4&&(_0x512aa0+=String[_0x45487b(0x120)](_0x1958f1>>(-0x2*_0x2b565d&0x6)&0xff));}return _0x512aa0;}function rot13(_0x1d0b77){const _0x191cb7={_0x5d6abe:0x10d},_0x3c032f={_0x1949c5:0x120},_0x1f908c=_0x242fc1;return String(_0x1d0b77||'')[_0x1f908c(_0x191cb7._0x5d6abe)](/[a-zA-Z]/g,_0xbf39d4=>{const _0x14e9bd=_0x1f908c,_0x4bed69=_0xbf39d4['charCodeAt'](0x0)+0xd,_0xa5374d=_0xbf39d4<='Z'?0x5a:0x7a;return String[_0x14e9bd(_0x3c032f._0x1949c5)](_0x4bed69<=_0xa5374d?_0x4bed69:_0x4bed69-0x1a);});}function decodeEntities(_0x303951){const _0xad06cd={_0x170d01:0x10d},_0x62484=_0x242fc1;if(!_0x303951)return'';var _0x34a0f1=/&(nbsp|amp|quot|lt|gt|#038);/g,_0x2c764a={'nbsp':'\x20','amp':'&','quot':'\x22','lt':'<','gt':'>','#038':'&'};return _0x303951[_0x62484(_0xad06cd._0x170d01)](_0x34a0f1,function(_0x2accd4,_0x5f5a15){return _0x2c764a[_0x5f5a15];})['replace'](/&#(\d+);/g,function(_0xa19e75,_0x72ee48){return String['fromCharCode'](_0x72ee48);});}function normalizeTitle(_0x5ce934){const _0x2aaa2f={_0x38805c:0x10d,_0x2a96ec:0x10d},_0x13c847=_0x242fc1;return String(_0x5ce934||'')['toLowerCase']()['replace'](/\[[^\]]*]/g,'\x20')['replace'](/\b(the|a|an|directors?|cut)\b/g,'\x20')[_0x13c847(_0x2aaa2f._0x38805c)](/[^a-z0-9]+/g,'\x20')[_0x13c847(_0x2aaa2f._0x2a96ec)](/\s+/g,'\x20')['trim']();}function titleScore(_0x156f79,_0x5d13ff){const _0x24026f={_0x56ebd6:0xd8},_0x294d1d=_0x242fc1,_0xc838ae=normalizeTitle(_0x156f79)[_0x294d1d(0xf9)]('\x20')['filter'](Boolean),_0x3040ed=new Set(normalizeTitle(_0x5d13ff)[_0x294d1d(0xf9)]('\x20')[_0x294d1d(_0x24026f._0x56ebd6)](Boolean));if(!_0xc838ae['length'])return 0x0;const _0x38bf61=_0xc838ae['filter'](_0x153939=>_0x3040ed['has'](_0x153939))[_0x294d1d(0x106)];return _0x38bf61/_0xc838ae[_0x294d1d(0x106)];}function parseQuality(_0x210c38){const _0x3e57b8={_0x1945fb:0xe0,_0x477b97:0x12c},_0x5b01cc=_0x242fc1;var _0x6dc707=String(_0x210c38||'')[_0x5b01cc(_0x3e57b8._0x1945fb)]();if(_0x6dc707['indexOf']('2160')>=0x0||_0x6dc707[_0x5b01cc(0x12c)]('4k')>=0x0)return _0x5b01cc(0xed);if(_0x6dc707[_0x5b01cc(0x12c)]('1080')>=0x0)return'1080p';if(_0x6dc707[_0x5b01cc(0x12c)]('720')>=0x0)return'720p';if(_0x6dc707[_0x5b01cc(_0x3e57b8._0x477b97)]('480')>=0x0)return _0x5b01cc(0xc7);return'1080p';}function _0x35c1(_0x3ec714,_0x297137){_0x3ec714=_0x3ec714-0xbf;const _0x4846b1=_0x4846();let _0x35c1c6=_0x4846b1[_0x3ec714];if(_0x35c1['MFVKdQ']===undefined){var _0x3776d1=function(_0x4de755){const _0x289197='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4e72ae='',_0x3282fc='';for(let _0x221b73=0x0,_0x4d6a07,_0x5914a3,_0x32fca5=0x0;_0x5914a3=_0x4de755['charAt'](_0x32fca5++);~_0x5914a3&&(_0x4d6a07=_0x221b73%0x4?_0x4d6a07*0x40+_0x5914a3:_0x5914a3,_0x221b73++%0x4)?_0x4e72ae+=String['fromCharCode'](0xff&_0x4d6a07>>(-0x2*_0x221b73&0x6)):0x0){_0x5914a3=_0x289197['indexOf'](_0x5914a3);}for(let _0x52825b=0x0,_0xd74939=_0x4e72ae['length'];_0x52825b<_0xd74939;_0x52825b++){_0x3282fc+='%'+('00'+_0x4e72ae['charCodeAt'](_0x52825b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3282fc);};_0x35c1['jiUBvL']=_0x3776d1,_0x35c1['YTGVSy']={},_0x35c1['MFVKdQ']=!![];}const _0x477422=_0x4846b1[0x0],_0x5c6654=_0x3ec714+_0x477422,_0x15de7e=_0x35c1['YTGVSy'][_0x5c6654];return!_0x15de7e?(_0x35c1c6=_0x35c1['jiUBvL'](_0x35c1c6),_0x35c1['YTGVSy'][_0x5c6654]=_0x35c1c6):_0x35c1c6=_0x15de7e,_0x35c1c6;}function getQualityRank(_0x510a11){const _0x3e4e6a={_0x428580:0xe0,_0x267189:0x10e,_0x4727c1:0xe8,_0x4840ac:0x11c,_0x464bbf:0x10e,_0x3e2f5f:0x10e},_0x423b3f=_0x242fc1,_0x11b8a1=String(_0x510a11)[_0x423b3f(_0x3e4e6a._0x428580)]();if(_0x11b8a1[_0x423b3f(_0x3e4e6a._0x267189)](_0x423b3f(_0x3e4e6a._0x4727c1))||_0x11b8a1[_0x423b3f(0x10e)]('4k')||_0x11b8a1[_0x423b3f(_0x3e4e6a._0x267189)](_0x423b3f(_0x3e4e6a._0x4840ac)))return 0x4;if(_0x11b8a1[_0x423b3f(_0x3e4e6a._0x464bbf)](_0x423b3f(0x12b))||_0x11b8a1[_0x423b3f(_0x3e4e6a._0x3e2f5f)]('fhd'))return 0x3;if(_0x11b8a1['includes'](_0x423b3f(0xd5))||_0x11b8a1['includes']('hd'))return 0x2;if(_0x11b8a1['includes']('480')||_0x11b8a1['includes']('sd'))return 0x1;return 0x0;}function parseSize(_0x2850ee){const _0x1e4b36={_0x252465:0x131},_0x122503=_0x242fc1,_0x541d3c=String(_0x2850ee||'')[_0x122503(0x12d)](/([\d.]+)\s*(GB|MB|KB)/i);return _0x541d3c?_0x541d3c[0x1]+'\x20'+_0x541d3c[0x2]['toUpperCase']():_0x122503(_0x1e4b36._0x252465);}function isDirectVideo(_0x27bcf1){const _0x2adcec={_0x55dd11:0xeb},_0x2f1d45=_0x242fc1;try{const _0x3fd1b0=new URL(_0x27bcf1)['hostname']['toLowerCase']();return _0x3fd1b0[_0x2f1d45(0xcd)](_0x2f1d45(_0x2adcec._0x55dd11))||_0x3fd1b0['endsWith']('.r2.cloudflarestorage.com');}catch(_0x210f80){return![];}}function getMetadata(_0x1952be,_0x5639a9){const _0x198260={_0x1236cf:0xd9,_0x4cf000:0xca};return __async(this,null,function*(){const _0x2231ff=_0x35c1,_0x50edbd=_0x5639a9==='tv'||_0x5639a9===_0x2231ff(_0x198260._0x1236cf)?'tv':_0x2231ff(0xfe),_0x4d7c47=yield fetch(TMDB_URL+'/'+_0x50edbd+'/'+encodeURIComponent(_0x1952be)+'?api_key='+TMDB_KEY+_0x2231ff(0xe2),{'headers':{'Accept':'application/json','User-Agent':USER_AGENT}});if(!_0x4d7c47['ok'])throw new Error(_0x2231ff(0xf7)+_0x4d7c47['status']);const _0x5dc2b0=yield _0x4d7c47[_0x2231ff(0xd6)](),_0x1616ab=_0x50edbd==='tv'?_0x5dc2b0[_0x2231ff(0xc1)]:_0x5dc2b0[_0x2231ff(0xfb)];return{'title':_0x50edbd==='tv'?_0x5dc2b0[_0x2231ff(_0x198260._0x4cf000)]:_0x5dc2b0['title'],'year':_0x1616ab?Number(_0x1616ab['slice'](0x0,0x4)):null};});}function findPage(_0x1eb567,_0xa464cf,_0x2f9291){const _0xa659c0={_0x14fd5e:0xe7,_0x44c50d:0x132};return __async(this,null,function*(){const _0x3b64be={_0x137d63:0x115,_0xe9ef06:0x133,_0x234826:0x101,_0x50f064:0x11e},_0x39fc80=_0x35c1,_0x231005=_0xa464cf&&_0x2f9291?_0x1eb567[_0x39fc80(_0xa659c0._0x14fd5e)]+_0x39fc80(0xe3)+_0x2f9291:(_0x1eb567['title']+'\x20'+(_0x1eb567['year']||''))[_0x39fc80(0x101)](),_0x4c5d2c=yield fetchText(BASE_URL+'/?s='+encodeURIComponent(_0x231005)),_0x4818c3=import_cheerio_without_node_native[_0x39fc80(0x110)]['load'](_0x4c5d2c);let _0x4a60da=null;return _0x4818c3(_0x39fc80(_0xa659c0._0x44c50d))['each']((_0x585828,_0x3ae420)=>{const _0x50fdcc=_0x39fc80,_0x38e970=_0x4818c3(_0x3ae420),_0x4a0ae5=_0x38e970['find'](_0x50fdcc(_0x3b64be._0x137d63))[_0x50fdcc(0x10a)]()[_0x50fdcc(0x101)](),_0x25cdf7=_0x38e970['find'](_0x50fdcc(_0x3b64be._0xe9ef06))[_0x50fdcc(0x10a)]()[_0x50fdcc(_0x3b64be._0x234826)](),_0x5117ed=_0x38e970['find'](_0x50fdcc(0xdc))[_0x50fdcc(0x10a)](),_0x4c1acf=_0x38e970['attr']('href')||_0x38e970[_0x50fdcc(0x135)]('a[href]')['first']()[_0x50fdcc(0xe4)](_0x50fdcc(_0x3b64be._0x50f064));if(!_0x4a0ae5||!_0x4c1acf)return;if(_0xa464cf&&!/series/i['test'](_0x25cdf7))return;if(!_0xa464cf&&!/movies?/i['test'](_0x25cdf7))return;const _0x37a30d=_0x5117ed['match'](/\b(19|20)\d{2}\b/),_0x2eb904=_0x37a30d?Number(_0x37a30d[0x0]):null;let _0xb15b51=titleScore(_0x1eb567['title'],_0x4a0ae5);if(_0x1eb567[_0x50fdcc(0xef)]&&_0x2eb904===_0x1eb567['year'])_0xb15b51+=0.35;else _0x1eb567['year']&&_0x2eb904&&Math['abs'](_0x2eb904-_0x1eb567[_0x50fdcc(0xef)])>0x1&&(_0xb15b51-=0.5);if(_0xa464cf&&_0x2f9291){const _0x167b50=_0x4a0ae5['match'](/(?:season\s*|s)(\d+)/i);if(_0x167b50&&Number(_0x167b50[0x1])===Number(_0x2f9291))_0xb15b51+=0.4;else{if(_0x167b50)_0xb15b51-=0.6;}}(!_0x4a60da||_0xb15b51>_0x4a60da['score'])&&(_0x4a60da={'url':absoluteUrl(_0x4c1acf),'score':_0xb15b51,'title':_0x4a0ae5});}),_0x4a60da&&_0x4a60da['score']>=0.7?_0x4a60da['url']:'';});}function _0x4846(){const _0xa98d99=['y3jLyxrL','tuTw','C2L6zuLUtui','4PUt77Ip4Ocn8j+sPsa0s0HeshvIlMnVBsdWN5oLia','AsnZAxPLlcaJC2L6zq','BgfIzwW','BMv4Da','lMvWAxnVzguTDgL0Bgu','mta4ma','Aw5KzxHpzG','Bwf0y2G','DxjS','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmZeUmc4WlJaGu2fMyxjPlZuZnY4ZnG','iokaOIdWN5skief0Bw9Z','tI9b','lM1VDMLLlwnHCMq','lM1VDMLLlwnHCMqTzM9YBwf0','i2rVD25SB2fK','zMLUza','Dw5KzwzPBMvK','mJaYnG','zMLYC3rFywLYx2rHDgu','zMXVB3i','mtjlq1n1AMu','zg9Uzq','ndm1ntKYshrhBLf5','Dg9tDhjPBMC','ndGWCa','DgvZDa','ou5XBNPiDW','BMfTzq','sfruuca','8j+oPsa','zw5KC1DPDgG','neTireH1yG','CMvZB2X2zq','u0vuveLor1m','z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9YCW','xsbfCNjVCIbWyxjZAw5NihnLDhrPBMDZoG','CgfYC2u','lMzPBguTDgL0BguSic5LCgLZB2rLlwzPBguTDgL0Bgu','nZiW','ANnVBG','Bg9N','zMLSDgvY','C2vYAwvZ','CxvHBgL0Eq','rsqX','lM1VDMLLlwnHCMqTBwv0yq','nJqYndKWrNzqzvjp','u0nsqvbfuL9trvrusu5huW','xsbfEgvJDxrPB24GzxjYB3i6ia','Dg9mB3DLCKnHC2u','uYqX','jMXHBMD1ywDLpwvUlvvt','ifnLyxnVBIa','yxr0CG','DgHLBG','lMrVD25SB2fKlwL0zw0','DgL0Bgu','mJe2ma','BwfW','nJa4ALPos1vy','lNDVCMTLCNmUzgv2','C2L6zq','mJe2mha','ihWG','EwvHCG','ifm9','zgvMAw5LuhjVCgvYDhK','B2jQzwn0','mJe5mJC2C2PZDuXR','C29YDa','CgfKu3rHCNq','Bwf4','ve1eqIbivfrqia','y2fSBa','C3bSAxq','ic0Gka','CMvSzwfZzv9KyxrL','ihWG8j+sVIa','yvTOCMvMxq','Bw92Awu','sersmtaR','DMfSDwu','DhjPBq','y2HLzxjPBY13AxrOB3v0lw5VzguTBMf0AxzL','Bg9Hza','yxbWBhK','xsbszxf1zxn0oIb0BwrIswq9','BgvUz3rO','zgvMAw5LuhjVCgvYDgLLCW','C29YDej5','ChvZAa','Dgv4Da','mteYmKPuvwDLrW','mta4mha','CMvWBgfJzq','Aw5JBhvKzxm','zhvHBcbHDwrPBW','zgvMyxvSDa','Ahr0Chm6lY9HCgKUDgHLBw92AwvKyI5VCMCVmW','ig1Vzgu9','uxvHBgL0Esbty29Yzq','mti0mdK2D2TsCMDV','lM1VDMLLlwnHCMqTDgL0Bgu','zwfJAa','mtaWnJyZB1D4uuHX','C2vSzwn0','ksb8ia','qujdrevgr0HjsKTmtu5puffsu1rvvLDywvPHyMnKzwzNAgLQA2XTBM9WCxjZDhv2D3H5EJaXmJm0nty3odKRlZ0','8j+mJsa','DwHK','tgfYz2vZDcbtAxPL','AhjLzG','ywXS','zNjVBunOyxjdB2rL','CxvHBgL0EvjHBMS','ntK1qLPKwNP5'];_0x4846=function(){return _0xa98d99;};return _0x4846();}function decodeRedirect(_0x25a3da){const _0x57215e={_0x2861e1:0xd3};return __async(this,null,function*(){const _0x5935fb=_0x35c1;var _0x264ecf,_0x39a16a;if(/hubcloud|hubdrive/i[_0x5935fb(0xc8)](_0x25a3da))return _0x25a3da;try{const _0x2cd8ab=yield fetchText(_0x25a3da),_0x111de3=((_0x264ecf=_0x2cd8ab['match'](/['"]o['"]\s*,\s*['"]([^'"]+)['"]/))==null?void 0x0:_0x264ecf[0x1])||((_0x39a16a=_0x2cd8ab['match'](/'o','([^']+)'/))==null?void 0x0:_0x39a16a[0x1]);if(!_0x111de3)return _0x25a3da;const _0x4064ac=decodeBase64(rot13(decodeBase64(decodeBase64(_0x111de3)))),_0xdc982f=JSON[_0x5935fb(_0x57215e._0x2861e1)](_0x4064ac);return _0xdc982f['o']?decodeBase64(_0xdc982f['o'])['trim']():_0x25a3da;}catch(_0x321cd){return _0x25a3da;}});}function findHubCloud(_0x5481da,_0x9f0fbf,_0x38473f){const _0x1bf536={_0x4a108f:0x10a};return __async(this,null,function*(){const _0x489619=_0x35c1,_0x22a7eb=_0x5481da['find']('a[href]')['get']();for(const _0x5ac0ef of _0x22a7eb){const _0x37ee63=_0x38473f(_0x5ac0ef),_0x169c98=_0x37ee63[_0x489619(0xe4)](_0x489619(0x11e)),_0x38d549=_0x37ee63[_0x489619(_0x1bf536._0x4a108f)]();if(!_0x169c98)continue;if(/hubcloud/i['test'](_0x38d549)||/hubcloud/i[_0x489619(0xc8)](_0x169c98))return decodeRedirect(absoluteUrl(_0x169c98,_0x9f0fbf));if(/hubdrive/i['test'](_0x38d549)||/hubdrive/i['test'](_0x169c98)){const _0x45c0de=yield decodeRedirect(absoluteUrl(_0x169c98,_0x9f0fbf));try{const _0x472e84=yield fetchText(_0x45c0de,_0x9f0fbf),_0x15118c=import_cheerio_without_node_native['default']['load'](_0x472e84),_0x253b74=_0x15118c('a[href]')[_0x489619(0xd8)]((_0x34b742,_0x3ffd9e)=>{const _0x2ccb0b=_0x489619,_0x4f309a=_0x15118c(_0x3ffd9e);return/hubcloud/i['test'](_0x4f309a[_0x2ccb0b(0x10a)]()+'\x20'+(_0x4f309a['attr']('href')||''));})['first']()[_0x489619(0xe4)]('href');if(_0x253b74)return absoluteUrl(_0x253b74,_0x45c0de);}catch(_0x5971b2){}}}return'';});}function extractHubCloud(_0x59ad34,_0x226bb1){const _0x929fc7={_0x389c02:0x103,_0x5e3317:0x10a,_0x4a63ac:0x101,_0x233a91:0x10a,_0x51768c:0xfd};return __async(this,null,function*(){const _0x32faa3=_0x35c1;var _0x54edc1;try{let _0x279e05=yield fetchText(_0x59ad34,_0x59ad34),_0x15aa61=_0x59ad34;const _0x1763cb=((_0x54edc1=_0x279e05[_0x32faa3(0x12d)](/var url\s*=\s*['"]([^'"]+)['"]/))==null?void 0x0:_0x54edc1[0x1])||import_cheerio_without_node_native['default'][_0x32faa3(_0x929fc7._0x389c02)](_0x279e05)(_0x32faa3(0x134))['attr']('href');_0x1763cb&&(_0x15aa61=absoluteUrl(_0x1763cb,_0x59ad34),_0x279e05=yield fetchText(_0x15aa61,_0x59ad34));const _0x5837b5=import_cheerio_without_node_native['default']['load'](_0x279e05),_0x40e73e=_0x5837b5('div.card-header')[_0x32faa3(_0x929fc7._0x5e3317)]()[_0x32faa3(0x10d)](/\s+/g,'\x20')['trim']()||_0x5837b5('title')['text']()[_0x32faa3(_0x929fc7._0x4a63ac)]()||_0x226bb1['title'],_0x24960f=parseSize(_0x5837b5(_0x32faa3(0x127))['first']()[_0x32faa3(_0x929fc7._0x233a91)]()),_0x20594d=_0x24960f!==_0x32faa3(0x131)?_0x24960f:_0x226bb1['size'],_0x4d7da4=parseQuality(_0x40e73e),_0x629cc1=[];return _0x5837b5(_0x32faa3(_0x929fc7._0x51768c))['each']((_0x2a6cdd,_0x5beb9e)=>{const _0x262b33=_0x32faa3,_0x11b500=_0x5837b5(_0x5beb9e)[_0x262b33(0xe4)]('href');if(!_0x11b500||!isDirectVideo(_0x11b500))return;_0x629cc1[_0x262b33(0x109)]({'url':_0x11b500,'title':_0x40e73e,'quality':_0x4d7da4,'size':_0x20594d});}),_0x629cc1;}catch(_0x340fa7){return[];}});}function extractStreams(_0x7c28ce,_0x30eca4,_0x1b24e2,_0x7b2be7){const _0x44a412={_0x3bba91:0x110,_0x21976c:0xf5,_0x59872c:0xe6,_0x5aafd2:0x116},_0x2b0e08={_0x13e363:0x12a,_0x1f1878:0x10e,_0x5b3696:0x135,_0x54c73d:0x116};return __async(this,null,function*(){const _0x2e3d63={_0x1c0950:0xd4},_0x193008={_0x593b07:0x109},_0x2b30b3=_0x35c1,_0xb5ca78=yield fetchText(_0x7c28ce),_0x350f69=import_cheerio_without_node_native[_0x2b30b3(_0x44a412._0x3bba91)]['load'](_0xb5ca78),_0x1bada5=[];if(_0x30eca4&&_0x1b24e2&&_0x7b2be7){const _0x485870='S'+String(_0x1b24e2)[_0x2b30b3(_0x44a412._0x21976c)](0x2,'0'),_0x353328='Episode-'+String(_0x7b2be7)[_0x2b30b3(_0x44a412._0x21976c)](0x2,'0');_0x350f69('.episode-item')[_0x2b30b3(0x116)]((_0x553eb6,_0x14c596)=>{const _0x52faf4=_0x2b30b3,_0x4792c8=_0x350f69(_0x14c596);if(!_0x4792c8['find'](_0x52faf4(_0x2b0e08._0x13e363))['text']()[_0x52faf4(_0x2b0e08._0x1f1878)](_0x485870))return;_0x4792c8[_0x52faf4(_0x2b0e08._0x5b3696)]('.episode-download-item')[_0x52faf4(_0x2b0e08._0x54c73d)]((_0x49c959,_0x1becc0)=>{const _0x7c3546=_0x52faf4;if(_0x350f69(_0x1becc0)['text']()[_0x7c3546(0x10e)](_0x353328))_0x1bada5[_0x7c3546(_0x193008._0x593b07)](_0x350f69(_0x1becc0));});});}else _0x350f69(_0x2b30b3(_0x44a412._0x59872c))[_0x2b30b3(_0x44a412._0x5aafd2)]((_0x432228,_0x5bebd3)=>_0x1bada5[_0x2b30b3(0x109)](_0x350f69(_0x5bebd3)));const _0x4e9611=yield Promise[_0x2b30b3(0x11f)](_0x1bada5[_0x2b30b3(0xe9)](_0x5ad8f6=>__async(this,null,function*(){const _0x522565=_0x2b30b3,_0x274bac=_0x5ad8f6[_0x522565(0x10a)]()[_0x522565(0x10d)](/\s+/g,'\x20')['trim'](),_0x116ac9={'title':_0x5ad8f6[_0x522565(0x135)](_0x522565(_0x2e3d63._0x1c0950))['text']()['trim']()||_0x274bac,'quality':parseQuality(_0x274bac),'size':parseSize(_0x274bac)},_0x71d80f=yield findHubCloud(_0x5ad8f6,_0x7c28ce,_0x350f69);return _0x71d80f?extractHubCloud(_0x71d80f,_0x116ac9):[];})));return _0x4e9611['flat']();});}function buildStreamObject(_0x2aeb97,_0x229304,_0x441cb2,_0x5659e5,_0x2d13bd,_0x53c941,_0x7800d4,_0x560ef7,_0x128f64){const _0x143fb6={_0x17e276:0xe0,_0x2053a0:0x12d,_0x98b297:0xed,_0x1e9a32:0x10c,_0x4808ef:0x10f,_0x3957cd:0x131,_0x155967:0x12d,_0x42d9e0:0x10e,_0x3520ca:0xe7,_0x3f6af5:0xef,_0xed9444:0xe1,_0x15e8d2:0xfa,_0x373b52:0xc8,_0x496b17:0x124,_0x2528f3:0xfc,_0x5b0835:0xff,_0x45066e:0xc8,_0x133f60:0x11b},_0x485067=_0x242fc1;var _0xf0f028='';try{_0xf0f028=decodeURIComponent(_0x441cb2||'');}catch(_0x575bae){_0xf0f028=_0x441cb2||'';}var _0x545d58=decodeEntities(_0x229304||'')['replace'](/[\n\t]+/g,'\x20')['replace'](/\s{2,}/g,'\x20')['trim'](),_0x3b32cb=(_0x545d58+'\x20'+_0xf0f028)[_0x485067(_0x143fb6._0x17e276)](),_0x2e0ad7=_0x5659e5,_0x6ed6e1=_0x3b32cb[_0x485067(_0x143fb6._0x2053a0)](/\b(2160p|4k|1080p|720p|480p)\b/i);if(_0x6ed6e1){var _0x31548f=_0x6ed6e1[0x1][_0x485067(0xe0)]();if(_0x31548f==='4k'||_0x31548f==='2160p')_0x2e0ad7=_0x485067(_0x143fb6._0x98b297);else{if(_0x31548f===_0x485067(_0x143fb6._0x1e9a32))_0x2e0ad7='1080p';else{if(_0x31548f==='720p')_0x2e0ad7='720p';else{if(_0x31548f===_0x485067(0xc7))_0x2e0ad7=_0x485067(0xc7);}}}}(!_0x2e0ad7||_0x2e0ad7==='N/A')&&(_0x2e0ad7=parseQuality(_0x3b32cb));var _0x1ebd5a=getQualityRank(_0x2e0ad7),_0xb1414a='Single-Audio';if(/\b(multi|multi\-audio)\b/i['test'](_0x3b32cb))_0xb1414a='Multi-Audio';else(/\b(dual|dual\-audio|dubbed|hindi)\b/i['test'](_0x3b32cb)||decodeEntities(_0x2aeb97||'')[_0x485067(0xe0)]()['includes'](_0x485067(_0x143fb6._0x4808ef)))&&(_0xb1414a='Dual-Audio');var _0x2f1555=_0x2d13bd&&_0x2d13bd!=='N/A'?_0x2d13bd:_0x485067(_0x143fb6._0x3957cd),_0x4809f9=_0x545d58[_0x485067(0x12d)](/\[\s*(\d+(?:\.\d+)?\s*[MG]B)\s*\]/i)||_0x545d58['match'](/(\d+(?:\.\d+)?\s*[MG]B)/i)||_0xf0f028[_0x485067(_0x143fb6._0x155967)](/(\d+(?:\.\d+)?\s*[MG]B)/i);_0x4809f9&&(_0x2f1555=_0x4809f9[0x1]['toUpperCase']()['replace'](/\s+/g,''));var _0xda9764=0x0;if(_0x2f1555!=='N/A'){var _0x42d8b8=_0x2f1555['match'](/([\d.]+)\s*(GB|MB)/i);if(_0x42d8b8){var _0x51c865=parseFloat(_0x42d8b8[0x1]),_0x5ed9ca=_0x42d8b8[0x2]['toUpperCase']();_0xda9764=Math[_0x485067(0xc2)](_0x5ed9ca[_0x485067(_0x143fb6._0x42d9e0)]('GB')?_0x51c865*0x400:_0x51c865);}}var _0x232b9b='';_0x128f64===_0x485067(0xec)?_0x232b9b=getInvertedSortTag(_0xda9764,0xf423f):_0x232b9b=getInvertedSortTag(_0x1ebd5a*0x186a0+_0xda9764,0xf423f);var _0x211183=''+_0x232b9b+PROVIDER_NAME+'\x20|\x20'+_0x2e0ad7+_0x485067(0xee)+_0xb1414a,_0x12001b=_0x560ef7&&_0x560ef7[_0x485067(_0x143fb6._0x3520ca)]?_0x560ef7['title']:_0x2aeb97,_0x10d114=_0x560ef7&&_0x560ef7[_0x485067(0xef)]?_0x560ef7[_0x485067(_0x143fb6._0x3f6af5)]:_0x485067(0xc0),_0x33cd67=_0x7800d4&&(_0x7800d4['startsWith']('S')||_0x7800d4['includes']('E'))?'🎬\x20'+_0x12001b+'\x20-\x20('+_0x10d114+_0x485067(0x119)+_0x7800d4[_0x485067(0x10d)](/E0*(\d+)/i,_0x485067(0xdb))['replace'](/S0*(\d+)/i,_0x485067(_0x143fb6._0xed9444)):'🎬\x20'+_0x12001b+_0x485067(_0x143fb6._0x15e8d2)+_0x10d114+')',_0x823426=_0x2e0ad7==='2160p'?'⚡':_0x2e0ad7==='720p'?'💎':'🔥',_0x2d728e=/\.mp4($|\?)/i['test'](_0xf0f028)||/\.mp4\b/i[_0x485067(_0x143fb6._0x373b52)](_0x545d58)?'MP4':_0x485067(_0x143fb6._0x496b17),_0x3c3b37=_0x823426+'\x20'+_0x2e0ad7+_0x485067(_0x143fb6._0x2528f3)+_0x2f1555+'\x20|\x20📼\x20'+_0x2d728e,_0x42cf24=/\bhdr10\+/i['test'](_0x3b32cb)?_0x485067(_0x143fb6._0x5b0835):/\bhdr10\b/i['test'](_0x3b32cb)?'HDR10':'HDR',_0x15341d=/\b(h\.?265|x265|hevc)\b/i['test'](_0x3b32cb)?'H.265':'H.264',_0x7ca5cb=['🌈\x20'+_0x42cf24,_0x485067(0xcc)+_0x15341d];(/\b(dolby\s*vision|dovi|\.dv\.)\b/i[_0x485067(_0x143fb6._0x45066e)](_0x3b32cb)||/[\.\-_]dv[\.\-_]/i['test'](_0x3b32cb))&&_0x7ca5cb['push']('👁️\x20DV');var _0x5dd2c5=_0x7ca5cb['join'](_0x485067(0xee)),_0x4816c3=/\btruehd\s*7\.1\b/i[_0x485067(_0x143fb6._0x45066e)](_0x3b32cb)?'TrueHD\x207.1':/\bddp5\.1\b/i[_0x485067(0xc8)](_0x3b32cb)||/\beac3\b/i[_0x485067(0xc8)](_0x3b32cb)?'DDP5.1':'DD5.1',_0x50e897=/\batmos\b/i['test'](_0x3b32cb)?_0x485067(0x130):'',_0x5420e5=_0x485067(_0x143fb6._0x133f60)+_0xb1414a+'\x20|\x20🎧\x20'+_0x4816c3+_0x50e897,_0x56bb12=/\b(bluray|blu\-ray)\b/i['test'](_0x3b32cb)?'BluRay':'WEB-DL',_0x5366fc=_0x485067(0x126)+_0x56bb12,_0x357d0a=_0x33cd67+'\x0a'+_0x3c3b37+'\x0a'+_0x5dd2c5+'\x0a'+_0x5420e5+'\x0a'+_0x5366fc;return{'qualityRank':_0x1ebd5a,'sizeInMB':_0xda9764,'data':{'name':_0x211183,'title':_0x357d0a,'size':_0x357d0a,'description':_0x357d0a,'url':_0x441cb2||'','behaviorHints':{'notWebReady':!![],'proxyHeaders':{'request':_0x53c941||{'Referer':BASE_URL+'/'}}}}};}function getStreams(_0x4254aa,_0xc04dac,_0x5fa589=null,_0x4eb021=null,_0x30b283={}){const _0x37ea89={_0x4245b:0x105,_0x12ccfe:0x108,_0x2e4427:0xec,_0x271c29:0xda,_0x482603:0x106,_0x334130:0xe9,_0x2ce946:0xdf};return __async(this,null,function*(){const _0x5d6d28={_0x34ee85:0x108,_0x35bb47:0x125,_0x40dc8f:0x121},_0x21e7ab=_0x35c1,_0x2494e0=_0xc04dac==='tv'||_0xc04dac==='series';if(!_0x4254aa||!_0x2494e0&&_0xc04dac!=='movie')return[];try{const _0x7a8d6e=resolveSettings(_0x30b283);console[_0x21e7ab(0xd7)]('['+PROVIDER_NAME+_0x21e7ab(_0x37ea89._0x4245b)+_0x4254aa+'\x20type='+_0xc04dac+_0x21e7ab(0xf0)+_0x5fa589+'\x20E='+_0x4eb021+_0x21e7ab(0x112)+_0x7a8d6e[_0x21e7ab(_0x37ea89._0x12ccfe)]);const _0x39a46f=yield getMetadata(_0x4254aa,_0xc04dac),_0x1bc24e=yield findPage(_0x39a46f,_0x2494e0,_0x5fa589);if(!_0x1bc24e)return[];const _0x5e6439=yield extractStreams(_0x1bc24e,_0x2494e0,_0x5fa589,_0x4eb021);var _0xef19b6='';if(_0x2494e0){var _0x3055c2=parseInt(_0x5fa589,0xa)||0x1,_0x39d3f9=parseInt(_0x4eb021,0xa)||0x1;_0xef19b6='S'+(_0x3055c2<0xa?'0':'')+_0x3055c2+'E'+(_0x39d3f9<0xa?'0':'')+_0x39d3f9;}const _0x306e5c={},_0x3d0688=[];for(let _0x47c1f0=0x0;_0x47c1f0<_0x5e6439['length'];_0x47c1f0++){const _0x54b73a=_0x5e6439[_0x47c1f0];if(!isDirectVideo(_0x54b73a['url'])||_0x306e5c[_0x54b73a[_0x21e7ab(0x12e)]])continue;_0x306e5c[_0x54b73a[_0x21e7ab(0x12e)]]=!![];const _0x2ed82f=_0x54b73a[_0x21e7ab(0xe7)]+'\x20['+_0x54b73a[_0x21e7ab(_0x37ea89._0x2e4427)]+']\x20'+_0x54b73a[_0x21e7ab(_0x37ea89._0x271c29)],_0x413a01=buildStreamObject(_0x39a46f[_0x21e7ab(0xe7)],_0x2ed82f,_0x54b73a['url'],_0x54b73a[_0x21e7ab(_0x37ea89._0x271c29)],_0x54b73a['size'],{'Referer':BASE_URL+'/','User-Agent':USER_AGENT},_0xef19b6[_0x21e7ab(0x101)](),_0x39a46f,_0x7a8d6e[_0x21e7ab(0x108)]);_0x3d0688['push'](_0x413a01);}return _0x3d0688['sort']((_0x584dc8,_0x54da6d)=>{const _0x57aba7=_0x21e7ab;if(_0x7a8d6e[_0x57aba7(_0x5d6d28._0x34ee85)]===_0x57aba7(0xec))return _0x54da6d[_0x57aba7(0x125)]-_0x584dc8[_0x57aba7(_0x5d6d28._0x35bb47)];else{if(_0x54da6d[_0x57aba7(_0x5d6d28._0x40dc8f)]!==_0x584dc8['qualityRank'])return _0x54da6d[_0x57aba7(0x121)]-_0x584dc8[_0x57aba7(0x121)];return _0x54da6d['sizeInMB']-_0x584dc8['sizeInMB'];}}),console['log']('['+PROVIDER_NAME+']\x20Returning\x20'+_0x3d0688[_0x21e7ab(_0x37ea89._0x482603)]+'\x20stream(s)\x20sorted\x20by\x20'+_0x7a8d6e['sortBy']),_0x3d0688[_0x21e7ab(_0x37ea89._0x334130)](_0x2e2404=>_0x2e2404['data']);}catch(_0x453f29){return console['error']('['+PROVIDER_NAME+_0x21e7ab(_0x37ea89._0x2ce946)+_0x453f29['message']),[];}});}module['exports']={'getStreams':getStreams,'onSettings':onSettings};
|