-
Notifications
You must be signed in to change notification settings - Fork 5.7k
/
_worker.js
1 lines (1 loc) · 34.8 KB
/
_worker.js
1
const _0x183a75=_0x3863;(function(_0x3ac6fe,_0x83b68a){const _0x3222b2=_0x3863,_0x76b8b5=_0x3ac6fe();while(!![]){try{const _0x43f9bd=parseInt(_0x3222b2(0xfa))/0x1+parseInt(_0x3222b2(0x16d))/0x2*(-parseInt(_0x3222b2(0x169))/0x3)+parseInt(_0x3222b2(0x17e))/0x4*(parseInt(_0x3222b2(0x138))/0x5)+parseInt(_0x3222b2(0x104))/0x6+parseInt(_0x3222b2(0xd9))/0x7*(parseInt(_0x3222b2(0x14b))/0x8)+-parseInt(_0x3222b2(0x124))/0x9+-parseInt(_0x3222b2(0x171))/0xa;if(_0x43f9bd===_0x83b68a)break;else _0x76b8b5['push'](_0x76b8b5['shift']());}catch(_0x1f9070){_0x76b8b5['push'](_0x76b8b5['shift']());}}}(_0x155f,0xb4e4b));let 快速订阅访问入口=[_0x183a75(0x173)],addresses=[atob(_0x183a75(0x112))],addressesapi=[],addressesnotls=[],addressesnotlsapi=[],DLS=0x7,addressescsv=[],subconverter=_0x183a75(0x174),subconfig=atob('aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL2NtbGl1L0FDTDRTU1IvbWFpbi9DbGFzaC9jb25maWcvQUNMNFNTUl9PbmxpbmVfRnVsbF9NdWx0aU1vZGUuaW5p'),noTLS=_0x183a75(0xf3),link,隧道版本作者=atob(_0x183a75(0x11b)),获取代理IP=_0x183a75(0xf3),proxyIPs=[atob('cHJveHlpcC5meHhrLmRlZHluLmlv')],匹配PROXYIP=[],socks5DataURL='',BotToken='',ChatID='',临时中转域名=[],临时中转域名接口='',EndPS='',协议类型=atob(_0x183a75(0x121)),FileName='优选订阅生成器',SUBUpdateTime=0x6,total=0x63,timestamp=0x3bb25e60800;const regex=/^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|\[.*\]):?(\d+)?#?(.*)?$/;let fakeUserID,fakeHostName,httpsPorts=['2053','2083',_0x183a75(0x196),_0x183a75(0x165),_0x183a75(0x129)],effectiveTime=0x7,updateTime=0x3,MamaJustKilledAMan=[_0x183a75(0xf4),'twitter','miaoko'],proxyIPPool=[],socks5Data;async function 整理优选列表(_0x5b4ac7){const _0x517538=_0x183a75;if(!_0x5b4ac7||_0x5b4ac7[_0x517538(0xec)]===0x0)return[];let _0x3896fb='';const _0x55e2c0=new AbortController(),_0x4fb819=setTimeout(()=>{const _0x34f238=_0x517538;_0x55e2c0[_0x34f238(0x101)]();},0x7d0);try{const _0x24fa6c=await Promise['allSettled'](_0x5b4ac7[_0x517538(0xce)](_0x4712a6=>fetch(_0x4712a6,{'method':_0x517538(0x17f),'headers':{'Accept':_0x517538(0xcb),'User-Agent':FileName+atob(_0x517538(0x148))},'signal':_0x55e2c0['signal']})[_0x517538(0x10d)](_0x474b9c=>_0x474b9c['ok']?_0x474b9c['text']():Promise['reject']())));for(const [_0x5d1ae6,_0x549f25]of _0x24fa6c[_0x517538(0x13f)]()){if(_0x549f25['status']==='fulfilled'){const _0x53f5ce=await _0x549f25[_0x517538(0x157)];_0x5b4ac7[_0x5d1ae6]['includes'](_0x517538(0xcd))&&(proxyIPPool=proxyIPPool[_0x517538(0x192)]((await 整理(_0x53f5ce))[_0x517538(0xce)](_0x5950d1=>{const _0x1d6869=_0x517538,_0x10e7c3=_0x5950d1[_0x1d6869(0x147)]('#')[0x0]||_0x5950d1;if(_0x10e7c3['includes'](':')){const _0x2114fa=_0x10e7c3[_0x1d6869(0x147)](':')[0x1];if(!httpsPorts[_0x1d6869(0xe7)](_0x2114fa))return _0x10e7c3;}else return _0x10e7c3+_0x1d6869(0x13e);return null;})[_0x517538(0x150)](Boolean))),_0x3896fb+=_0x53f5ce+'\x0a';}}}catch(_0x1dda86){console[_0x517538(0xed)](_0x1dda86);}finally{clearTimeout(_0x4fb819);}const _0x16a5f8=await 整理(_0x3896fb);return _0x16a5f8;}async function 整理测速结果(_0x5f17c3){const _0x5bce80=_0x183a75;if(!_0x5f17c3)return console[_0x5bce80(0xed)](_0x5bce80(0x119)),[];if(!Array[_0x5bce80(0x14e)](addressescsv)||addressescsv[_0x5bce80(0xec)]===0x0)return console[_0x5bce80(0xf7)](_0x5bce80(0xe2)),[];function _0x2ba150(_0x5866f9){const _0x321fdc=_0x5bce80;return _0x5866f9[_0x321fdc(0x115)](/\r\n/g,'\x0a')[_0x321fdc(0x115)](/\r/g,'\x0a')[_0x321fdc(0x147)]('\x0a')[_0x321fdc(0x150)](_0x2906ab=>_0x2906ab[_0x321fdc(0x10a)]()!=='')[_0x321fdc(0xce)](_0x433e3f=>_0x433e3f[_0x321fdc(0x147)](',')['map'](_0x3470b9=>_0x3470b9['trim']()));}const _0x9fc86e=addressescsv[_0x5bce80(0xce)](async _0x97cba0=>{const _0x1df1f7=_0x5bce80;try{const _0x354033=await fetch(_0x97cba0);if(!_0x354033['ok'])throw new Error(_0x1df1f7(0xcf)+_0x354033[_0x1df1f7(0x153)]+':\x20'+_0x354033['statusText']);const _0x1d5458=await _0x354033['text'](),_0x413132=_0x2ba150(_0x1d5458),[_0x365591,..._0x2b7f67]=_0x413132,_0x44df34=_0x365591[_0x1df1f7(0x130)](_0x578c2c=>_0x578c2c['toUpperCase']()==='TLS');if(_0x44df34===-0x1)throw new Error(_0x1df1f7(0xcc));return _0x2b7f67[_0x1df1f7(0x150)](_0x5b17a2=>{const _0x440e8a=_0x1df1f7,_0x39eff7=_0x5b17a2[_0x44df34][_0x440e8a(0x15d)](),_0x4458ee=parseFloat(_0x5b17a2[_0x5b17a2[_0x440e8a(0xec)]-0x1]);return _0x39eff7===_0x5f17c3['toUpperCase']()&&_0x4458ee>DLS;})[_0x1df1f7(0xce)](_0x43e0d8=>{const _0x1f8e1b=_0x1df1f7,_0x35d0ad=_0x43e0d8[0x0],_0x292bfd=_0x43e0d8[0x1],_0x39fb75=_0x43e0d8[_0x44df34+0x1],_0x3b869b=_0x35d0ad+':'+_0x292bfd+'#'+_0x39fb75;return _0x97cba0['includes'](_0x1f8e1b(0xcd))&&_0x43e0d8[_0x44df34]['toUpperCase']()===_0x1f8e1b(0x11c)&&!httpsPorts['includes'](_0x292bfd)&&proxyIPPool['push'](_0x35d0ad+':'+_0x292bfd),_0x3b869b;});}catch(_0x196ab3){return console[_0x1df1f7(0xed)](_0x1df1f7(0x107)+_0x97cba0+_0x1df1f7(0x175),_0x196ab3),[];}}),_0x54a1be=await Promise[_0x5bce80(0x145)](_0x9fc86e);return _0x54a1be['flat']();}async function 整理(_0x200251){const _0x111145=_0x183a75;var _0x64b7a0=_0x200251['replace'](/[ |"'\r\n]+/g,',')[_0x111145(0x115)](/,+/g,',');if(_0x64b7a0[_0x111145(0xf8)](0x0)==',')_0x64b7a0=_0x64b7a0[_0x111145(0x179)](0x1);if(_0x64b7a0[_0x111145(0xf8)](_0x64b7a0[_0x111145(0xec)]-0x1)==',')_0x64b7a0=_0x64b7a0['slice'](0x0,_0x64b7a0['length']-0x1);const _0x8666a=_0x64b7a0[_0x111145(0x147)](',');return _0x8666a;}async function sendMessage(_0x36fbe0,_0x57c1ba,_0x3092b8=''){const _0x39cba6=_0x183a75;if(!BotToken||!ChatID)return;try{let _0x417f4c='';const _0x2f7c57=await fetch(_0x39cba6(0x146)+_0x57c1ba+_0x39cba6(0x180));if(_0x2f7c57['ok']){const _0x5cb0d5=await _0x2f7c57[_0x39cba6(0x140)]();_0x417f4c=_0x36fbe0+_0x39cba6(0x13b)+_0x57c1ba+_0x39cba6(0x136)+_0x5cb0d5['country']+_0x39cba6(0x184)+_0x5cb0d5[_0x39cba6(0x14d)]+'\x0a组织:\x20'+_0x5cb0d5[_0x39cba6(0xf1)]+_0x39cba6(0x122)+_0x5cb0d5['as']+'\x0a'+_0x3092b8;}else _0x417f4c=_0x36fbe0+_0x39cba6(0x13b)+_0x57c1ba+'\x0a<tg-spoiler>'+_0x3092b8;const _0x2ac3a5='https://api.telegram.org/bot'+BotToken+_0x39cba6(0x12a)+ChatID+'&parse_mode=HTML&text='+encodeURIComponent(_0x417f4c);return fetch(_0x2ac3a5,{'method':_0x39cba6(0x114),'headers':{'Accept':_0x39cba6(0xcb),'Accept-Encoding':'gzip,\x20deflate,\x20br','User-Agent':'Mozilla/5.0\x20Chrome/90.0.4430.72'}});}catch(_0x3c87e5){console[_0x39cba6(0xed)](_0x39cba6(0x190),_0x3c87e5);}}async function nginx(){const _0x45a4da=_0x183a75,_0xcd0764=_0x45a4da(0x17b);return _0xcd0764;}function _0x3863(_0x47a384,_0x5bf3ac){const _0x155fc6=_0x155f();return _0x3863=function(_0x386301,_0x480fde){_0x386301=_0x386301-0xca;let _0x218191=_0x155fc6[_0x386301];return _0x218191;},_0x3863(_0x47a384,_0x5bf3ac);}function _0x155f(){const _0x38ab0e=['CFPORTS','2087','SHA-256','P2VuY3J5cHRpb249bm9uZSZzZWN1cml0eT0mdHlwZT0=','RPROXYIP','from','push','floor',';\x20total=','SUBNAME','text/html,application/xhtml+xml,application/xml;','CSV文件缺少必需的字段','proxyip=true','map','HTTP错误\x20','2082','searchParams','TGID','toISOString','substr','dHJvamFuOi8v','toString','cf-workers-sub','JmFscG49aHR0cCUyRjEuMSZmcD1yYW5kb21pemVkJnR5cGU9','7NjyPQC','UPTIME','upload=','random','KEY','Lz9lZD0yNTYwJnByb3h5aXA9','Trojan','subconverter','ADDCSV','没有可用的CSV地址列表','http','\x0a\x09\x09\x09缺少必填参数:host\x20和\x20uuid\x0a\x09\x09\x09Missing\x20required\x20parameters:\x20host\x20and\x20uuid\x0a\x09\x09\x09پارامترهای\x20ضروری\x20وارد\x20نشده:\x20هاست\x20و\x20یوآیدی\x0a\x09\x09\x09\x0a\x09\x09\x09','find','notlsresponseBody:\x20','includes','log','JmFscG49aHR0cCUyRjEuMSZmcD1yYW5kb20mdHlwZT0=','FALSE','ADDAPI','length','error','sing-box','headers','/sub?target=clash&url=','org','\x20订阅器内置节点\x20','false','telegram','TYPE','DLS','warn','charAt','message','916347MvnrKy','CMPROXYIPS','href','/sub?target=singbox&url=','surge','#!MANAGED-CONFIG\x20','path','abort','SOCKS5DATA','到期时间(UTC):\x20','2865264vEIamc','/sub?target=surge&ver=4&url=','skip-cert-verify=true,\x20tfo=false,\x20udp-relay=false','处理CSV\x20','null','ADD','trim','/?ed=2560','ADDNOTLS','then','sni=','UUID','.xyz','ADDNOTLSAPI','aWNvb2sudHc6MjA1MyPlrpjmlrnkvJjpgInln5/lkI0=','signal','GET','replace','SUBAPI','sni',';\x20expire=','TLS参数不能为空','trycloudflare','ZWQ=','TRUE','dmxlc3M6Ly8=','P2VuY3J5cHRpb249bm9uZSZzZWN1cml0eT10bHMmc25pPQ==','format','has','VkxFU1M=','\x0aASN:\x20','match','10550817CUilgO','setMilliseconds','=\x20trojan,','&insert=false&config=','PASSWORD','8443','/sendMessage?chat_id=','charCodeAt','UA:\x20','PATH','allSettled','proxyip','findIndex','skip-cert-verify=true,\x20ws=true,\x20ws-path=/?ed=2560,\x20ws-headers=Host:\x22','P3NlY3VyaXR5PXRscyZzbmk9','ceil','statusText','&path=','\x0a国家:\x20','8080','34235uaFhoh','join','clash','\x0aIP:\x20','CF-Connecting-IP','text/plain;\x20charset=utf-8',':443','entries','json','toLowerCase','.workers.dev','&emoji=true&list=false&xudp=false&udp=false&tfo=false&expand=true&scv=true&fdn=false','password','all','http://ip-api.com/json/','split','IGNtbGl1L1dvcmtlclZsZXNzMnN1Yg==','</tg-spoiler>\x0a域名:\x20','digest','8611224IVDeul','text/html;\x20charset=UTF-8','city','isArray','getMilliseconds','filter','HOST','some','status','decode','notls','443','value','\x0a<tg-spoiler>入口:\x20','TIME','/sub','endsWith','PROXYIP','toUpperCase','search','URL302','link:\x20','singbox','User-Agent','2052','worker','2096','\x22,\x20tfo=false,\x20udp-relay=false','padStart','://','1408029gphVqF','getTime','MD5','true','2UnPFUu','Error\x20fetching\x20subconverterUrl:\x20','pathname','subtle','945460aXCXYm','now','auto','SUBAPI.fxxk.dedyn.io','\x20时出错:','URL',';\x20download=','indexOf','slice','attachment;\x20filename*=utf-8\x27\x27','\x0a\x09<!DOCTYPE\x20html>\x0a\x09<html>\x0a\x09<head>\x0a\x09<title>Welcome\x20to\x20nginx!</title>\x0a\x09<style>\x0a\x09\x09body\x20{\x0a\x09\x09\x09width:\x2035em;\x0a\x09\x09\x09margin:\x200\x20auto;\x0a\x09\x09\x09font-family:\x20Tahoma,\x20Verdana,\x20Arial,\x20sans-serif;\x0a\x09\x09}\x0a\x09</style>\x0a\x09</head>\x0a\x09<body>\x0a\x09<h1>Welcome\x20to\x20nginx!</h1>\x0a\x09<p>If\x20you\x20see\x20this\x20page,\x20the\x20nginx\x20web\x20server\x20is\x20successfully\x20installed\x20and\x0a\x09working.\x20Further\x20configuration\x20is\x20required.</p>\x0a\x09\x0a\x09<p>For\x20online\x20documentation\x20and\x20support\x20please\x20refer\x20to\x0a\x09<a\x20href=\x22http://nginx.org/\x22>nginx.org</a>.<br/>\x0a\x09Commercial\x20support\x20is\x20available\x20at\x0a\x09<a\x20href=\x22http://nginx.com/\x22>nginx.com</a>.</p>\x0a\x09\x0a\x09<p><em>Thank\x20you\x20for\x20using\x20nginx.</em></p>\x0a\x09</body>\x0a\x09</html>\x0a\x09','v2rayN/','&host=','4pDUJgR','get','?lang=zh-CN','redirect','startsWith','type','\x0a<tg-spoiler>城市:\x20','epeius','url','https://','/sub?host=[your\x20host]&uuid=[your\x20uuid]&path=[your\x20path]\x0a\x09\x09\x09\x0a\x09\x09\x09\x0a\x09\x09\x09\x0a\x09\x09\x09\x0a\x09\x09\x09\x0a\x09\x09\x09\x0a\x09\x09\x09\x09\x0a\x09\x09\x09\x09','</tg-spoiler>','&emoji=true&list=false&tfo=false&scv=true&fdn=false&sort=false&new_name=true','2095','#us','2086','uuid','text','Error\x20sending\x20message:','encode','concat','ZWRnZXR1bm5lbA==','获取地址时出错:'];_0x155f=function(){return _0x38ab0e;};return _0x155f();}function surge(_0x2c86f7,_0x35db7d){const _0x4fc972=_0x183a75;let _0x2b2738;_0x2c86f7['includes']('\x0d\x0a')?_0x2b2738=_0x2c86f7[_0x4fc972(0x147)]('\x0d\x0a'):_0x2b2738=_0x2c86f7[_0x4fc972(0x147)]('\x0a');let _0x5576e4='';for(let _0x7164f of _0x2b2738){if(_0x7164f[_0x4fc972(0xe7)](_0x4fc972(0x126))){const _0x532ae0=_0x7164f['split'](_0x4fc972(0x10e))[0x1]['split'](',')[0x0],_0x1e8960=_0x4fc972(0x106),_0x27b758=_0x4fc972(0x131)+_0x532ae0+_0x4fc972(0x166);_0x5576e4+=_0x7164f[_0x4fc972(0x115)](new RegExp(_0x1e8960,'g'),_0x27b758)[_0x4fc972(0x115)]('[','')['replace'](']','')+'\x0a';}else _0x5576e4+=_0x7164f+'\x0a';}return _0x5576e4=_0x4fc972(0xff)+_0x35db7d[_0x4fc972(0xfc)]+'\x20interval=86400\x20strict=false'+_0x5576e4['substring'](_0x5576e4[_0x4fc972(0x178)]('\x0a')),_0x5576e4;}function getRandomProxyByMatch(_0x1c70f6,_0x5a8549){const _0x422beb=_0x183a75,_0x481470=_0x1c70f6[_0x422beb(0x141)]();let _0x2c8226=_0x5a8549[_0x422beb(0x150)](_0x4fd8fe=>_0x4fd8fe[_0x422beb(0x141)]()['endsWith']('#'+_0x481470));_0x2c8226['length']===0x0&&(_0x2c8226=_0x5a8549[_0x422beb(0x150)](_0x5cdb79=>_0x5cdb79[_0x422beb(0x141)]()[_0x422beb(0x15b)](_0x422beb(0x18c))));if(_0x2c8226[_0x422beb(0xec)]===0x0)return _0x5a8549[Math[_0x422beb(0x19c)](Math[_0x422beb(0xdc)]()*_0x5a8549[_0x422beb(0xec)])];const _0xbc96d2=_0x2c8226[Math[_0x422beb(0x19c)](Math['random']()*_0x2c8226[_0x422beb(0xec)])];return _0xbc96d2;}async function MD5MD5(_0x56c46e){const _0x4cb9ad=_0x183a75,_0xe88ad3=new TextEncoder(),_0x42038e=await crypto[_0x4cb9ad(0x170)][_0x4cb9ad(0x14a)]('MD5',_0xe88ad3[_0x4cb9ad(0x191)](_0x56c46e)),_0x361608=Array['from'](new Uint8Array(_0x42038e)),_0x157040=_0x361608[_0x4cb9ad(0xce)](_0x4b4cc4=>_0x4b4cc4[_0x4cb9ad(0xd6)](0x10)[_0x4cb9ad(0x167)](0x2,'0'))[_0x4cb9ad(0x139)](''),_0x1f1060=await crypto['subtle'][_0x4cb9ad(0x14a)](_0x4cb9ad(0x16b),_0xe88ad3['encode'](_0x157040[_0x4cb9ad(0x179)](0x7,0x1b))),_0x5b6ba6=Array[_0x4cb9ad(0x19a)](new Uint8Array(_0x1f1060)),_0x352e1b=_0x5b6ba6[_0x4cb9ad(0xce)](_0x37fdef=>_0x37fdef[_0x4cb9ad(0xd6)](0x10)[_0x4cb9ad(0x167)](0x2,'0'))[_0x4cb9ad(0x139)]('');return _0x352e1b[_0x4cb9ad(0x141)]();}function revertFakeInfo(_0x4a7cdc,_0x99bc94,_0x5ca0b2){const _0x14f1ce=_0x183a75;return _0x4a7cdc=_0x4a7cdc['replace'](new RegExp(fakeUserID,'g'),_0x99bc94)[_0x14f1ce(0x115)](new RegExp(fakeHostName,'g'),_0x5ca0b2),_0x4a7cdc;}function generateFakeInfo(_0x351949,_0x1f9190,_0x1e94f6){const _0x268517=_0x183a75;return _0x351949=_0x351949['replace'](new RegExp(_0x1f9190,'g'),fakeUserID)[_0x268517(0x115)](new RegExp(_0x1e94f6,'g'),fakeHostName),_0x351949;}function isValidIPv4(_0x129627){const _0x47a2f8=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;return _0x47a2f8['test'](_0x129627);}function generateDynamicUUID(_0x2c915e){const _0x545592=_0x183a75;function _0xf54a40(){const _0x13012b=_0x3863,_0x420f06=new Date(),_0x268caf=0x8,_0x47819e=new Date(_0x420f06[_0x13012b(0x16a)]()+_0x268caf*0x3c*0x3c*0x3e8),_0x41fc63=new Date(0x7d7,0x6,0x7,updateTime,0x0,0x0),_0x5d4db3=_0x47819e-_0x41fc63,_0x2cb64d=0x3e8*0x3c*0x3c*0x18*effectiveTime;return Math[_0x13012b(0x133)](_0x5d4db3/_0x2cb64d);}const _0x170709=_0xf54a40(),_0x526f76=new Date(0x7d7,0x6,0x7,updateTime,0x0,0x0);_0x526f76[_0x545592(0x125)](_0x526f76[_0x545592(0x14f)]()+_0x170709*0x3e8*0x3c*0x3c*0x18*effectiveTime);function _0x4958d7(_0x1fb220){const _0x4639e1=_0x545592,_0x4371ec=new TextEncoder()[_0x4639e1(0x191)](_0x1fb220);return crypto[_0x4639e1(0x170)][_0x4639e1(0x14a)](_0x4639e1(0x197),_0x4371ec)[_0x4639e1(0x10d)](_0x3f35ae=>{const _0x7db8d2=_0x4639e1,_0x44533b=Array[_0x7db8d2(0x19a)](new Uint8Array(_0x3f35ae)),_0x4d5bab=_0x44533b[_0x7db8d2(0xce)](_0x545d2e=>_0x545d2e[_0x7db8d2(0xd6)](0x10)[_0x7db8d2(0x167)](0x2,'0'))[_0x7db8d2(0x139)]('');let _0x5bc5a5=_0x4d5bab[_0x7db8d2(0xd4)](0x0,0x8)+'-'+_0x4d5bab[_0x7db8d2(0xd4)](0x8,0x4)+'-4'+_0x4d5bab[_0x7db8d2(0xd4)](0xd,0x3)+'-'+(parseInt(_0x4d5bab[_0x7db8d2(0xd4)](0x10,0x2),0x10)&0x3f|0x80)[_0x7db8d2(0xd6)](0x10)+_0x4d5bab[_0x7db8d2(0xd4)](0x12,0x2)+'-'+_0x4d5bab[_0x7db8d2(0xd4)](0x14,0xc);return _0x5bc5a5;});}const _0x4d22db=_0x4958d7(_0x2c915e+_0x170709),_0x1b7a8f=_0x4958d7(_0x2c915e+(_0x170709-0x1)),_0x8114e3=new Date(_0x526f76['getTime']()-0x8*0x3c*0x3c*0x3e8),_0x2b0af5=_0x545592(0x103)+_0x8114e3[_0x545592(0xd3)]()[_0x545592(0x179)](0x0,0x13)[_0x545592(0x115)]('T','\x20')+'\x20(UTC+8):\x20'+_0x526f76[_0x545592(0xd3)]()[_0x545592(0x179)](0x0,0x13)[_0x545592(0x115)]('T','\x20')+'\x0a';return Promise[_0x545592(0x145)]([_0x4d22db,_0x1b7a8f,_0x2b0af5]);}async function getLink(_0x18789c){const _0x4400e3=_0x183a75;let _0x1f7be9=[],_0x1b737a=[];for(let _0x49b85d of _0x18789c){_0x49b85d[_0x4400e3(0x141)]()[_0x4400e3(0x182)](_0x4400e3(0xe3))?_0x1b737a[_0x4400e3(0x19b)](_0x49b85d):_0x1f7be9[_0x4400e3(0x19b)](_0x49b85d);}if(_0x1b737a&&_0x1b737a['length']!==0x0){function _0x188852(_0x266561){const _0x14603c=_0x4400e3,_0x28066d=new Uint8Array(atob(_0x266561)[_0x14603c(0x147)]('')[_0x14603c(0xce)](_0x5dad66=>_0x5dad66[_0x14603c(0x12b)](0x0))),_0x2e83cc=new TextDecoder('utf-8');return _0x2e83cc[_0x14603c(0x154)](_0x28066d);}const _0x2c3446=new AbortController(),_0x56729d=setTimeout(()=>{const _0x3373a6=_0x4400e3;_0x2c3446[_0x3373a6(0x101)]();},0x7d0);try{const _0x5aca57=await Promise[_0x4400e3(0x12e)](_0x1b737a[_0x4400e3(0xce)](_0x2f2be0=>fetch(_0x2f2be0,{'method':_0x4400e3(0x17f),'headers':{'Accept':_0x4400e3(0xcb),'User-Agent':_0x4400e3(0x17c)+(FileName+atob('IGNtbGl1L1dvcmtlclZsZXNzMnN1Yg=='))},'signal':_0x2c3446[_0x4400e3(0x113)]})['then'](_0x171e67=>_0x171e67['ok']?_0x171e67[_0x4400e3(0x18f)]():Promise['reject']()))),_0x11c839=_0x5aca57[_0x4400e3(0xce)]((_0x32e6a5,_0x228d3d)=>{const _0x2222a0=_0x4400e3;return{'status':_0x32e6a5[_0x2222a0(0x153)],'value':_0x32e6a5[_0x2222a0(0x157)],'apiUrl':_0x1b737a[_0x228d3d]};});console[_0x4400e3(0xe8)](_0x11c839);for(const _0x150e76 of _0x11c839){if(_0x150e76[_0x4400e3(0x153)]==='fulfilled'){const _0x320186=await _0x150e76[_0x4400e3(0x157)]||_0x4400e3(0x108);if(_0x320186['includes'](_0x4400e3(0x168))){const _0x4c4ac1=_0x320186[_0x4400e3(0xe7)]('\x0d\x0a')?_0x320186[_0x4400e3(0x147)]('\x0d\x0a'):_0x320186[_0x4400e3(0x147)]('\x0a');_0x1f7be9=_0x1f7be9[_0x4400e3(0x192)](_0x4c4ac1);}else{const _0x3e454e=_0x188852(_0x320186);if(_0x3e454e[_0x4400e3(0xe7)](_0x4400e3(0x168))){const _0x44c7b1=_0x3e454e[_0x4400e3(0xe7)]('\x0d\x0a')?_0x3e454e[_0x4400e3(0x147)]('\x0d\x0a'):_0x3e454e['split']('\x0a');_0x1f7be9=_0x1f7be9[_0x4400e3(0x192)](_0x44c7b1);}}}}}catch(_0x4b5d91){console[_0x4400e3(0xed)](_0x4b5d91);}finally{clearTimeout(_0x56729d);}}return _0x1f7be9;}export default{async 'fetch'(_0xa24e02,_0x599cce){const _0x2dfd5f=_0x183a75;if(_0x599cce['TOKEN'])快速订阅访问入口=await 整理(_0x599cce['TOKEN']);BotToken=_0x599cce['TGTOKEN']||BotToken,ChatID=_0x599cce[_0x2dfd5f(0xd2)]||ChatID,subconverter=_0x599cce[_0x2dfd5f(0x116)]||subconverter,subconfig=_0x599cce['SUBCONFIG']||subconfig,FileName=_0x599cce[_0x2dfd5f(0xca)]||FileName,socks5DataURL=_0x599cce[_0x2dfd5f(0x102)]||socks5DataURL;if(_0x599cce[_0x2dfd5f(0xfb)])匹配PROXYIP=await 整理(_0x599cce['CMPROXYIPS']);;if(_0x599cce[_0x2dfd5f(0x195)])httpsPorts=await 整理(_0x599cce[_0x2dfd5f(0x195)]);EndPS=_0x599cce['PS']||EndPS;const _0x3e0b33=_0xa24e02[_0x2dfd5f(0xef)][_0x2dfd5f(0x17f)](_0x2dfd5f(0x162)),_0x3eb12d=_0x3e0b33?_0x3e0b33[_0x2dfd5f(0x141)]():'null',_0x353ac0=new URL(_0xa24e02[_0x2dfd5f(0x186)]),_0x555e6e=_0x353ac0['searchParams'][_0x2dfd5f(0x17f)](_0x2dfd5f(0x11f))?_0x353ac0[_0x2dfd5f(0xd1)]['get'](_0x2dfd5f(0x11f))[_0x2dfd5f(0x141)]():_0x2dfd5f(0x108);let _0x24ca07='',_0x26585d='',_0x38a64a='',_0x118e59='',_0x18192a='ws',_0x2280e1=Math['floor']((timestamp-Date[_0x2dfd5f(0x172)]())/timestamp*0x63*0x10000000000*0x400/0x2);if(_0x599cce['UA'])MamaJustKilledAMan=MamaJustKilledAMan[_0x2dfd5f(0x192)](await 整理(_0x599cce['UA']));const _0x3fe1ff=new Date(),_0x41f678=await MD5MD5(Math['ceil'](_0x3fe1ff[_0x2dfd5f(0x16a)]()));fakeUserID=_0x41f678[_0x2dfd5f(0x179)](0x0,0x8)+'-'+_0x41f678['slice'](0x8,0xc)+'-'+_0x41f678['slice'](0xc,0x10)+'-'+_0x41f678[_0x2dfd5f(0x179)](0x10,0x14)+'-'+_0x41f678[_0x2dfd5f(0x179)](0x14),fakeHostName=_0x41f678[_0x2dfd5f(0x179)](0x6,0x9)+'.'+_0x41f678[_0x2dfd5f(0x179)](0xd,0x13)+_0x2dfd5f(0x110),total=total*0x10000000000*0x400;let _0x315323=Math['floor'](timestamp/0x3e8);link=_0x599cce['LINK']||link;if(_0x599cce[_0x2dfd5f(0x109)])addresses=await 整理(_0x599cce[_0x2dfd5f(0x109)]);if(_0x599cce[_0x2dfd5f(0xeb)])addressesapi=await 整理(_0x599cce[_0x2dfd5f(0xeb)]);if(_0x599cce[_0x2dfd5f(0x10c)])addressesnotls=await 整理(_0x599cce[_0x2dfd5f(0x10c)]);if(_0x599cce[_0x2dfd5f(0x111)])addressesnotlsapi=await 整理(_0x599cce[_0x2dfd5f(0x111)]);if(_0x599cce['ADDCSV'])addressescsv=await 整理(_0x599cce[_0x2dfd5f(0xe1)]);DLS=_0x599cce[_0x2dfd5f(0xf6)]||DLS;if(socks5DataURL)try{const _0x1a971c=await fetch(socks5DataURL),_0x53c6a0=await _0x1a971c[_0x2dfd5f(0x18f)]();_0x53c6a0[_0x2dfd5f(0xe7)]('\x0d\x0a')?socks5Data=_0x53c6a0[_0x2dfd5f(0x147)]('\x0d\x0a')['filter'](_0xf5c175=>_0xf5c175['trim']()!==''):socks5Data=_0x53c6a0['split']('\x0a')[_0x2dfd5f(0x150)](_0x393e7a=>_0x393e7a[_0x2dfd5f(0x10a)]()!=='');}catch{socks5Data=null;}if(_0x599cce['PROXYIP'])proxyIPs=await 整理(_0x599cce[_0x2dfd5f(0x15c)]);if(快速订阅访问入口[_0x2dfd5f(0xec)]>0x0&&快速订阅访问入口[_0x2dfd5f(0x152)](_0x24b7ba=>_0x353ac0['pathname'][_0x2dfd5f(0xe7)](_0x24b7ba))){_0x24ca07=_0x2dfd5f(0x108);if(_0x599cce[_0x2dfd5f(0x151)]){const _0x4ac132=await 整理(_0x599cce[_0x2dfd5f(0x151)]);_0x24ca07=_0x4ac132[Math[_0x2dfd5f(0x19c)](Math[_0x2dfd5f(0xdc)]()*_0x4ac132[_0x2dfd5f(0xec)])];}if(_0x599cce[_0x2dfd5f(0x128)])协议类型=_0x2dfd5f(0xdf),_0x26585d=_0x599cce['PASSWORD'];else{协议类型=atob(_0x2dfd5f(0x121));if(_0x599cce[_0x2dfd5f(0xdd)]){effectiveTime=_0x599cce[_0x2dfd5f(0x159)]||effectiveTime,updateTime=_0x599cce[_0x2dfd5f(0xda)]||updateTime;const _0x3eb6ea=await generateDynamicUUID(_0x599cce[_0x2dfd5f(0xdd)]);_0x26585d=_0x3eb6ea[0x0];}else _0x26585d=_0x599cce[_0x2dfd5f(0x10f)]||_0x2dfd5f(0x108);}_0x38a64a=_0x599cce[_0x2dfd5f(0x12d)]||_0x2dfd5f(0x10b),_0x118e59=_0x599cce['SNI']||_0x24ca07,_0x18192a=_0x599cce[_0x2dfd5f(0xf5)]||_0x18192a,隧道版本作者=_0x599cce['ED']||隧道版本作者,获取代理IP=_0x599cce[_0x2dfd5f(0x199)]||获取代理IP;if(_0x24ca07==_0x2dfd5f(0x108)||_0x26585d==_0x2dfd5f(0x108)){let _0x3557d6;if(_0x24ca07==_0x2dfd5f(0x108)&&_0x26585d==_0x2dfd5f(0x108))_0x3557d6='HOST/UUID';else{if(_0x24ca07=='null')_0x3557d6=_0x2dfd5f(0x151);else{if(_0x26585d==_0x2dfd5f(0x108))_0x3557d6=_0x2dfd5f(0x10f);}}EndPS+=_0x2dfd5f(0xf2)+_0x3557d6+'\x20未设置!!!';}await sendMessage('#'+FileName+'订阅',_0xa24e02[_0x2dfd5f(0xef)]['get'](_0x2dfd5f(0x13c)),_0x2dfd5f(0x12c)+_0x3e0b33+_0x2dfd5f(0x149)+_0x353ac0['hostname']+_0x2dfd5f(0x158)+(_0x353ac0[_0x2dfd5f(0x16f)]+_0x353ac0[_0x2dfd5f(0x15e)])+_0x2dfd5f(0x189));}else{_0x24ca07=_0x353ac0[_0x2dfd5f(0xd1)][_0x2dfd5f(0x17f)]('host'),_0x26585d=_0x353ac0[_0x2dfd5f(0xd1)]['get'](_0x2dfd5f(0x18e))||_0x353ac0[_0x2dfd5f(0xd1)]['get'](_0x2dfd5f(0x144))||_0x353ac0['searchParams']['get']('pw'),_0x38a64a=_0x353ac0[_0x2dfd5f(0xd1)][_0x2dfd5f(0x17f)](_0x2dfd5f(0x100)),_0x118e59=_0x353ac0[_0x2dfd5f(0xd1)][_0x2dfd5f(0x17f)](_0x2dfd5f(0x117))||_0x24ca07,_0x18192a=_0x353ac0[_0x2dfd5f(0xd1)][_0x2dfd5f(0x17f)](_0x2dfd5f(0x183))||_0x18192a,隧道版本作者=_0x353ac0[_0x2dfd5f(0xd1)]['get'](atob(_0x2dfd5f(0x193)))||_0x353ac0[_0x2dfd5f(0xd1)]['get']('epeius')||隧道版本作者,获取代理IP=_0x353ac0[_0x2dfd5f(0xd1)][_0x2dfd5f(0x17f)](_0x2dfd5f(0x12f))||获取代理IP;if(_0x353ac0[_0x2dfd5f(0xd1)]['has'](atob('ZWRnZXR1bm5lbA=='))||_0x353ac0[_0x2dfd5f(0xd1)][_0x2dfd5f(0x120)](_0x2dfd5f(0x18e)))协议类型=atob(_0x2dfd5f(0x121));else(_0x353ac0['searchParams'][_0x2dfd5f(0x120)](_0x2dfd5f(0x185))||_0x353ac0[_0x2dfd5f(0xd1)]['has'](_0x2dfd5f(0x144))||_0x353ac0['searchParams']['has']('pw'))&&(协议类型=_0x2dfd5f(0xdf));if(!_0x353ac0['pathname'][_0x2dfd5f(0xe7)](_0x2dfd5f(0x15a))){const _0x466247=_0x599cce['URL302']?_0x2dfd5f(0x15f):_0x599cce[_0x2dfd5f(0x176)]?_0x2dfd5f(0x176):null;if(_0x466247){const _0xa95731=await 整理(_0x599cce[_0x466247]),_0x4d1cf4=_0xa95731[Math[_0x2dfd5f(0x19c)](Math[_0x2dfd5f(0xdc)]()*_0xa95731[_0x2dfd5f(0xec)])];return _0x466247==='URL302'?Response[_0x2dfd5f(0x181)](_0x4d1cf4,0x12e):fetch(new Request(_0x4d1cf4,_0xa24e02));}return new Response(await nginx(),{'headers':{'Content-Type':_0x2dfd5f(0x14c)}});}if(!_0x24ca07||!_0x26585d){const _0x2d71d9=_0x2dfd5f(0xe4)+_0x353ac0['origin']+_0x2dfd5f(0x188)+atob('aHR0cHM6Ly9naXRodWIuY29tL2NtbGl1L3dvcmtlclZsZXNzMnN1Yg==')+'\x0a\x09\x09\x09\x09';return new Response(_0x2d71d9,{'status':0xca,'headers':{'content-type':'text/plain;\x20charset=utf-8'}});}!_0x38a64a||_0x38a64a['trim']()===''?_0x38a64a='/?ed=2560':_0x38a64a=_0x38a64a[0x0]==='/'?_0x38a64a:'/'+_0x38a64a;}if(_0x24ca07[_0x2dfd5f(0x141)]()[_0x2dfd5f(0xe7)](_0x2dfd5f(0x155))||_0x24ca07[_0x2dfd5f(0x141)]()['includes'](_0x2dfd5f(0x164))||_0x24ca07[_0x2dfd5f(0x141)]()[_0x2dfd5f(0xe7)](_0x2dfd5f(0x11a)))noTLS=_0x2dfd5f(0x16c);noTLS=_0x599cce['NOTLS']||noTLS;let _0x5b0db9=generateFakeInfo(_0x353ac0[_0x2dfd5f(0xfc)],_0x26585d,_0x24ca07);if(!_0x3eb12d[_0x2dfd5f(0xe7)](_0x2dfd5f(0xe0))&&MamaJustKilledAMan['some'](_0x53fcc5=>_0x3eb12d[_0x2dfd5f(0xe7)](_0x53fcc5))&&MamaJustKilledAMan[_0x2dfd5f(0xec)]>0x0){const _0x3cdb05=_0x599cce[_0x2dfd5f(0x15f)]?_0x2dfd5f(0x15f):_0x599cce[_0x2dfd5f(0x176)]?_0x2dfd5f(0x176):null;if(_0x3cdb05){const _0x282778=await 整理(_0x599cce[_0x3cdb05]),_0x291163=_0x282778[Math[_0x2dfd5f(0x19c)](Math[_0x2dfd5f(0xdc)]()*_0x282778[_0x2dfd5f(0xec)])];return _0x3cdb05===_0x2dfd5f(0x15f)?Response['redirect'](_0x291163,0x12e):fetch(new Request(_0x291163,_0xa24e02));}return new Response(await nginx(),{'headers':{'Content-Type':'text/html;\x20charset=UTF-8'}});}else{if((_0x3eb12d['includes'](_0x2dfd5f(0x13a))||_0x555e6e===_0x2dfd5f(0x13a)&&!_0x3eb12d[_0x2dfd5f(0xe7)](_0x2dfd5f(0xe0)))&&!_0x3eb12d[_0x2dfd5f(0xe7)]('nekobox')&&!_0x3eb12d[_0x2dfd5f(0xe7)](_0x2dfd5f(0xd7)))_0x5b0db9='https://'+subconverter+_0x2dfd5f(0xf0)+encodeURIComponent(_0x5b0db9)+_0x2dfd5f(0x127)+encodeURIComponent(subconfig)+_0x2dfd5f(0x18a);else{if((_0x3eb12d[_0x2dfd5f(0xe7)](_0x2dfd5f(0xee))||_0x3eb12d[_0x2dfd5f(0xe7)](_0x2dfd5f(0x161))||_0x555e6e===_0x2dfd5f(0x161)&&!_0x3eb12d['includes'](_0x2dfd5f(0xe0)))&&!_0x3eb12d[_0x2dfd5f(0xe7)](_0x2dfd5f(0xd7)))_0x5b0db9=_0x2dfd5f(0x187)+subconverter+_0x2dfd5f(0xfd)+encodeURIComponent(_0x5b0db9)+'&insert=false&config='+encodeURIComponent(subconfig)+_0x2dfd5f(0x18a);else{if(_0x24ca07['includes']('workers.dev')){if(临时中转域名接口)try{const _0x16b220=await fetch(临时中转域名接口);if(!_0x16b220['ok']){console[_0x2dfd5f(0xed)](_0x2dfd5f(0x194),_0x16b220[_0x2dfd5f(0x153)],_0x16b220[_0x2dfd5f(0x134)]);return;}const _0x33a7d6=await _0x16b220['text'](),_0x4e32b7=_0x33a7d6[_0x2dfd5f(0x147)]('\x0a'),_0x101c62=_0x4e32b7[_0x2dfd5f(0x150)](_0x1f40b5=>_0x1f40b5['trim']()!=='');临时中转域名=临时中转域名[_0x2dfd5f(0x192)](_0x101c62);}catch(_0x31d27e){console[_0x2dfd5f(0xed)](_0x2dfd5f(0x194),_0x31d27e);}临时中转域名=[...new Set(临时中转域名)];}const _0x45645f=await 整理优选列表(addressesapi),_0x5a98f1=await 整理测速结果(_0x2dfd5f(0x11c));addresses=addresses[_0x2dfd5f(0x192)](_0x45645f),addresses=addresses[_0x2dfd5f(0x192)](_0x5a98f1);const _0x3fdc98=[...new Set(addresses)];let _0xa41522;if(noTLS==_0x2dfd5f(0x16c)&&协议类型==atob(_0x2dfd5f(0x121))){const _0x2991ce=await 整理优选列表(addressesnotlsapi),_0x692d52=await 整理测速结果(_0x2dfd5f(0xea));addressesnotls=addressesnotls[_0x2dfd5f(0x192)](_0x2991ce),addressesnotls=addressesnotls['concat'](_0x692d52);const _0x4c82fc=[...new Set(addressesnotls)];_0xa41522=_0x4c82fc[_0x2dfd5f(0xce)](_0xc56aaf=>{const _0x37432a=_0x2dfd5f;let _0x5d1381='-1',_0x2c4956=_0xc56aaf;const _0x19c751=_0x2c4956[_0x37432a(0x123)](regex);if(!_0x19c751){if(_0xc56aaf[_0x37432a(0xe7)](':')&&_0xc56aaf[_0x37432a(0xe7)]('#')){const _0x6576e4=_0xc56aaf['split'](':');_0xc56aaf=_0x6576e4[0x0];const _0xee748a=_0x6576e4[0x1][_0x37432a(0x147)]('#');_0x5d1381=_0xee748a[0x0],_0x2c4956=_0xee748a[0x1];}else{if(_0xc56aaf[_0x37432a(0xe7)](':')){const _0x4b0640=_0xc56aaf[_0x37432a(0x147)](':');_0xc56aaf=_0x4b0640[0x0],_0x5d1381=_0x4b0640[0x1];}else{if(_0xc56aaf[_0x37432a(0xe7)]('#')){const _0x1e98f9=_0xc56aaf[_0x37432a(0x147)]('#');_0xc56aaf=_0x1e98f9[0x0],_0x2c4956=_0x1e98f9[0x1];}}}_0x2c4956[_0x37432a(0xe7)](':')&&(_0x2c4956=_0x2c4956[_0x37432a(0x147)](':')[0x0]);}else _0xc56aaf=_0x19c751[0x1],_0x5d1381=_0x19c751[0x2]||_0x5d1381,_0x2c4956=_0x19c751[0x3]||_0xc56aaf;const _0xd3c018=[_0x37432a(0x137),'8880',_0x37432a(0x163),_0x37432a(0xd0),_0x37432a(0x18d),_0x37432a(0x18b)];if(!isValidIPv4(_0xc56aaf)&&_0x5d1381=='-1')for(let _0x3cf923 of _0xd3c018){if(_0xc56aaf['includes'](_0x3cf923)){_0x5d1381=_0x3cf923;break;}}if(_0x5d1381=='-1')_0x5d1381='80';if(隧道版本作者[_0x37432a(0x10a)]()===atob('Y21saXU=')&&获取代理IP['trim']()===_0x37432a(0x16c)){let _0x24d4a6=_0x2c4956[_0x37432a(0x141)](),_0x47b7ff=null;if(socks5Data){const _0x4fe1a2=getRandomProxyByMatch(_0x24d4a6,socks5Data);_0x38a64a='/'+_0x4fe1a2;}else{for(let _0x43ceb4 of 匹配PROXYIP){if(_0x43ceb4[_0x37432a(0xe7)]('#')&&_0x43ceb4[_0x37432a(0x147)]('#')[0x1]&&_0x24d4a6['includes'](_0x43ceb4[_0x37432a(0x147)]('#')[0x1]['toLowerCase']())){_0x47b7ff=_0x43ceb4[_0x37432a(0x147)]('#')[0x0];break;}else{if(_0x43ceb4[_0x37432a(0xe7)](':')&&_0x43ceb4[_0x37432a(0x147)](':')[0x1]&&_0x24d4a6[_0x37432a(0xe7)](_0x43ceb4[_0x37432a(0x147)](':')[0x1][_0x37432a(0x141)]())){_0x47b7ff=_0x43ceb4['split'](':')[0x0];break;}}}if(_0x47b7ff)_0x38a64a=atob('Lz9lZD0yNTYwJnByb3h5aXA9')+_0x47b7ff;else{const _0x255924=proxyIPs[Math[_0x37432a(0x19c)](Math[_0x37432a(0xdc)]()*proxyIPs[_0x37432a(0xec)])];_0x38a64a=atob(_0x37432a(0xde))+_0x255924;}}}const _0x482b0f=atob(_0x37432a(0x11d))+_0x26585d+'@'+_0xc56aaf+':'+(_0x5d1381+atob(_0x37432a(0x198))+_0x18192a)+'&host='+_0x24ca07+_0x37432a(0x135)+encodeURIComponent(_0x38a64a)+'#'+encodeURIComponent(_0x2c4956+EndPS);return _0x482b0f;})['join']('\x0a');}const _0x59eae5=_0x3fdc98[_0x2dfd5f(0xce)](_0x44cd48=>{const _0x50b517=_0x2dfd5f;let _0x134b8d='-1',_0xd48070=_0x44cd48;const _0x32d604=_0xd48070[_0x50b517(0x123)](regex);if(!_0x32d604){if(_0x44cd48['includes'](':')&&_0x44cd48[_0x50b517(0xe7)]('#')){const _0x2c012b=_0x44cd48[_0x50b517(0x147)](':');_0x44cd48=_0x2c012b[0x0];const _0x53842f=_0x2c012b[0x1][_0x50b517(0x147)]('#');_0x134b8d=_0x53842f[0x0],_0xd48070=_0x53842f[0x1];}else{if(_0x44cd48[_0x50b517(0xe7)](':')){const _0x1f4c58=_0x44cd48[_0x50b517(0x147)](':');_0x44cd48=_0x1f4c58[0x0],_0x134b8d=_0x1f4c58[0x1];}else{if(_0x44cd48['includes']('#')){const _0x1ec992=_0x44cd48['split']('#');_0x44cd48=_0x1ec992[0x0],_0xd48070=_0x1ec992[0x1];}}}_0xd48070['includes'](':')&&(_0xd48070=_0xd48070[_0x50b517(0x147)](':')[0x0]);}else _0x44cd48=_0x32d604[0x1],_0x134b8d=_0x32d604[0x2]||_0x134b8d,_0xd48070=_0x32d604[0x3]||_0x44cd48;if(!isValidIPv4(_0x44cd48)&&_0x134b8d=='-1')for(let _0x54d463 of httpsPorts){if(_0x44cd48[_0x50b517(0xe7)](_0x54d463)){_0x134b8d=_0x54d463;break;}}if(_0x134b8d=='-1')_0x134b8d=_0x50b517(0x156);if(隧道版本作者[_0x50b517(0x10a)]()===atob('Y21saXU=')&&获取代理IP[_0x50b517(0x10a)]()===_0x50b517(0x16c)){let _0x560014=_0xd48070[_0x50b517(0x141)](),_0x445fb9=null;if(socks5Data){const _0x1669ba=getRandomProxyByMatch(_0x560014,socks5Data);_0x38a64a='/'+_0x1669ba;}else{for(let _0xe63170 of 匹配PROXYIP){if(_0xe63170[_0x50b517(0xe7)]('#')&&_0xe63170[_0x50b517(0x147)]('#')[0x1]&&_0x560014[_0x50b517(0xe7)](_0xe63170[_0x50b517(0x147)]('#')[0x1][_0x50b517(0x141)]())){_0x445fb9=_0xe63170[_0x50b517(0x147)]('#')[0x0];break;}else{if(_0xe63170['includes'](':')&&_0xe63170['split'](':')[0x1]&&_0x560014[_0x50b517(0xe7)](_0xe63170[_0x50b517(0x147)](':')[0x1][_0x50b517(0x141)]())){_0x445fb9=_0xe63170[_0x50b517(0x147)](':')[0x0];break;}}}const _0x446fab=proxyIPPool[_0x50b517(0xe5)](_0x47d35b=>_0x47d35b[_0x50b517(0xe7)](_0x44cd48));if(_0x446fab)_0x38a64a=atob(_0x50b517(0xde))+_0x446fab;else{if(_0x445fb9)_0x38a64a=atob(_0x50b517(0xde))+_0x445fb9;else{const _0x449ded=proxyIPs[Math['floor'](Math[_0x50b517(0xdc)]()*proxyIPs['length'])];_0x38a64a=atob('Lz9lZD0yNTYwJnByb3h5aXA9')+_0x449ded;}}}}let _0x34c8ef=_0x24ca07,_0x4e69a5=_0x38a64a,_0x3c589c=EndPS;临时中转域名[_0x50b517(0xec)]>0x0&&_0x24ca07[_0x50b517(0xe7)](_0x50b517(0x142))&&(_0x4e69a5='/'+_0x24ca07+_0x38a64a,_0x34c8ef=临时中转域名[Math[_0x50b517(0x19c)](Math['random']()*临时中转域名[_0x50b517(0xec)])],_0x3c589c=EndPS+atob('IOW3suWQr+eUqOS4tOaXtuWfn+WQjeS4rei9rOacjeWKoe+8jOivt+WwveW/q+e7keWumuiHquWumuS5ieWfn++8gQ=='),_0x118e59=_0x34c8ef);if(协议类型==_0x50b517(0xdf)){const _0x2d37b0=atob(_0x50b517(0xd5))+_0x26585d+'@'+_0x44cd48+':'+(_0x134b8d+atob(_0x50b517(0x132))+_0x118e59+atob(_0x50b517(0xd8))+_0x18192a)+_0x50b517(0x17d)+_0x34c8ef+_0x50b517(0x135)+encodeURIComponent(_0x4e69a5)+'#'+encodeURIComponent(_0xd48070+_0x3c589c);return _0x2d37b0;}else{const _0x59ebaf=atob(_0x50b517(0x11d))+_0x26585d+'@'+_0x44cd48+':'+(_0x134b8d+atob(_0x50b517(0x11e))+_0x118e59+atob(_0x50b517(0xe9))+_0x18192a)+'&host='+_0x34c8ef+'&path='+encodeURIComponent(_0x4e69a5)+'#'+encodeURIComponent(_0xd48070+_0x3c589c);return _0x59ebaf;}})[_0x2dfd5f(0x139)]('\x0a');let _0x3dd738=_0x59eae5;if(link){const _0x1ba64b=await 整理(link),_0x1de4b1=(await getLink(_0x1ba64b))['join']('\x0a');_0x3dd738+='\x0a'+_0x1de4b1,console[_0x2dfd5f(0xe8)](_0x2dfd5f(0x160)+_0x1de4b1);}_0xa41522&&noTLS==_0x2dfd5f(0x16c)&&(_0x3dd738+='\x0a'+_0xa41522,console[_0x2dfd5f(0xe8)](_0x2dfd5f(0xe6)+_0xa41522));if(协议类型==_0x2dfd5f(0xdf)&&(_0x3eb12d[_0x2dfd5f(0xe7)](_0x2dfd5f(0xfe))||_0x555e6e==='surge'&&!_0x3eb12d[_0x2dfd5f(0xe7)](_0x2dfd5f(0xe0)))&&!_0x3eb12d['includes'](_0x2dfd5f(0xd7))){const _0x3ec22f=_0x3dd738['split']('\x0a'),_0x252024=generateFakeInfo(_0x3ec22f[_0x2dfd5f(0x139)]('|'),_0x26585d,_0x24ca07);_0x5b0db9=_0x2dfd5f(0x187)+subconverter+_0x2dfd5f(0x105)+encodeURIComponent(_0x252024)+_0x2dfd5f(0x127)+encodeURIComponent(subconfig)+_0x2dfd5f(0x143);}else{let _0x2b7794;try{_0x2b7794=btoa(_0x3dd738);}catch(_0x60c966){function _0x7ba05f(_0x9ed308){const _0xb7705a=_0x2dfd5f,_0x555ff5=new TextEncoder()[_0xb7705a(0x191)](_0x9ed308);let _0x5c8ffb='';const _0x1eddb9='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';for(let _0x17bf10=0x0;_0x17bf10<_0x555ff5['length'];_0x17bf10+=0x3){const _0x5291e2=_0x555ff5[_0x17bf10],_0x5368b1=_0x555ff5[_0x17bf10+0x1]||0x0,_0x433861=_0x555ff5[_0x17bf10+0x2]||0x0;_0x5c8ffb+=_0x1eddb9[_0x5291e2>>0x2],_0x5c8ffb+=_0x1eddb9[(_0x5291e2&0x3)<<0x4|_0x5368b1>>0x4],_0x5c8ffb+=_0x1eddb9[(_0x5368b1&0xf)<<0x2|_0x433861>>0x6],_0x5c8ffb+=_0x1eddb9[_0x433861&0x3f];}const _0x54a6a4=0x3-(_0x555ff5[_0xb7705a(0xec)]%0x3||0x3);return _0x5c8ffb['slice'](0x0,_0x5c8ffb[_0xb7705a(0xec)]-_0x54a6a4)+'=='[_0xb7705a(0x179)](0x0,_0x54a6a4);}_0x2b7794=_0x7ba05f(_0x3dd738);}const _0x10080b=new Response(_0x2b7794,{'headers':{'content-type':_0x2dfd5f(0x13d),'Profile-Update-Interval':''+SUBUpdateTime,'Subscription-Userinfo':'upload='+_0x2280e1+_0x2dfd5f(0x177)+_0x2280e1+';\x20total='+total+';\x20expire='+_0x315323}});return _0x10080b;}}}}try{const _0x413e13=await fetch(_0x5b0db9);if(!_0x413e13['ok'])throw new Error(_0x2dfd5f(0x16e)+_0x413e13[_0x2dfd5f(0x153)]+'\x20'+_0x413e13[_0x2dfd5f(0x134)]);let _0x14d490=await _0x413e13[_0x2dfd5f(0x18f)]();return 协议类型==_0x2dfd5f(0xdf)&&(_0x3eb12d['includes'](_0x2dfd5f(0xfe))||_0x555e6e===_0x2dfd5f(0xfe)&&!_0x3eb12d['includes']('subconverter'))&&!_0x3eb12d[_0x2dfd5f(0xe7)](_0x2dfd5f(0xd7))&&(_0x14d490=surge(_0x14d490,_0x24ca07)),_0x14d490=revertFakeInfo(_0x14d490,_0x26585d,_0x24ca07),new Response(_0x14d490,{'headers':{'Content-Disposition':_0x2dfd5f(0x17a)+encodeURIComponent(FileName)+';\x20filename='+FileName,'content-type':_0x2dfd5f(0x13d),'Profile-Update-Interval':''+SUBUpdateTime,'Subscription-Userinfo':_0x2dfd5f(0xdb)+_0x2280e1+_0x2dfd5f(0x177)+_0x2280e1+_0x2dfd5f(0x19d)+total+_0x2dfd5f(0x118)+_0x315323}});}catch(_0x4e1fde){return new Response('Error:\x20'+_0x4e1fde[_0x2dfd5f(0xf9)],{'status':0x1f4,'headers':{'content-type':_0x2dfd5f(0x13d)}});}}};