41 lines
52 KiB
JavaScript
41 lines
52 KiB
JavaScript
/*
|
||
|
||
16 16,17,18 * * * jd_mpdz_help.js
|
||
*/
|
||
const $ = new Env("头文字j助力");
|
||
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
|
||
const notify = $.isNode() ? require('./sendNotify') : '';
|
||
let cookiesArr = [], cookie = '', message = '';
|
||
const CryptoJS = require("crypto-js")
|
||
let ownCode = null;
|
||
let mpdzHelp = process.env.mpdzHelpCode ?? '';
|
||
if ($.isNode()) {
|
||
Object.keys(jdCookieNode).forEach((item) => {
|
||
cookiesArr.push(jdCookieNode[item])
|
||
})
|
||
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { };
|
||
} else {
|
||
let cookiesData = $.getdata('CookiesJD') || "[]";
|
||
cookiesData = JSON.parse(cookiesData);
|
||
cookiesArr = cookiesData.map(item => item.cookie);
|
||
cookiesArr.reverse();
|
||
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
|
||
cookiesArr.reverse();
|
||
cookiesArr = cookiesArr.filter(item => !!item);
|
||
}
|
||
|
||
if (process.env.mpdzHelpCode) {
|
||
if (process.env.mpdzHelpCode.indexOf('&') > -1) {
|
||
mpdzHelp = process.env.mpdzHelpCode.split('&');
|
||
} else if (process.env.mpdzHelpCode.indexOf('\n') > -1) {
|
||
mpdzHelp = process.env.mpdzHelpCode.split('\n');
|
||
} else {
|
||
mpdzHelp = [process.env.mpdzHelpCode];
|
||
}
|
||
}
|
||
|
||
var _0xod6='jsjiami.com.v6',_0xod6_=['_0xod6'],_0x3b2a=[_0xod6,'c2hvcElk','SUphckY=','Z2V0Q3VzU2hvcFByb2R1Y3RudW1JZA==','Y3VzU2hvcFByb2R1Y3Q=','bnVtSWQ=','YnNwc1U=','Z2FtZUxvZ0lk','SUhSaWY=','bWdub2E=','dXB5eFQ=','WEl3RHo=','eUZUSmE=','SlVtRFU=','cVZhTEw=','dXNlckluZm8=','YmFzZUluZm8=','bmlja25hbWU=','RkxmZUI=','bXBkei1jYXItZHouaXN2amNsb3VkLmNvbQ==','YXBwbGljYXRpb24vanNvbg==','WE1MSHR0cFJlcXVlc3Q=','emgtQ04semgtSGFucztxPTAuOQ==','Z3ppcCwgZGVmbGF0ZSwgYnI=','YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==','aHR0cHM6Ly9tcGR6LWNhci1kei5pc3ZqY2xvdWQuY29t','a2VlcC1hbGl2ZQ==','aHR0cHM6Ly9tcGR6LWNhci1kei5pc3ZqY2xvdWQuY29tL2pkYmV2ZXJhZ2UvcGFnZXMvcGFva3UvcGFva3U/Yml6RXh0U3RyaW5nPSZmcm9tPWtvdWxpbmcmc2lkPSZ1bl9hcmVhPQ==','aHR0cHM6Ly9tcGR6LWNhci1kei5pc3ZqY2xvdWQuY29tL2RtL2Zyb250L2pkQ2FyZFJ1bm5pbmcv','P29wZW5faWQ9Jm1peF9uaWNrPQ==','JnVzZXJfaWQ9','JnB1c2hfd2F5PTEmdXNlcl9pZD0=','cFJoVFA=','UmhZVXU=','b1FBU0U=','bmRab3Q=','TG1BUGQ=','RWREeVQ=','TEttUVI=','amRhcHA7aVBob25lOzkuNS40OzEzLjY7','O25ldHdvcmsvd2lmaTtBRElELw==','O21vZGVsL2lQaG9uZTEwLDM7YWRkcmVzc2lkLzA7YXBwQnVpbGQvMTY3NjY4O2pkU3VwcG9ydERhcmtNb2RlLzA7TW96aWxsYS81LjAgKGlQaG9uZTsgQ1BVIGlQaG9uZSBPUyAxM182IGxpa2UgTWFjIE9TIFgpIEFwcGxlV2ViS2l0LzYwNS4xLjE1IChLSFRNTCwgbGlrZSBHZWNrbykgTW9iaWxlLzE1RTE0ODtzdXBwb3J0SkRTSFdLLzE=','UU1ZTXo=','amVQUm8=','c3RyaW5naWZ5','YWN0aXZpdGllc19wbGF0Zm9ybQ==','NEFWUWFvK2VIOFE4a3ZtWG5XbWtHOGVmL2ZOcjVmZGVqbkQ5KzlVZ2JlYz0=','aHR0cHM6Ly9hcGkubS5qZC5jb20v','cGFydGljaXBhdGVJbnZpdGVUYXNr','YXBpLm0uamQuY29t','YXBwbGljYXRpb24vanNvbiwgdGV4dC9wbGFpbiwgKi8q','YXBwbGljYXRpb24veC13d3ctZm9ybS11cmxlbmNvZGVk','aHR0cHM6Ly9hc3NpZ25tZW50LmpkLmNvbQ==','Li9KU19VU0VSX0FHRU5UUw==','SlNVQQ==','J2pkbHRhcHA7aVBhZDszLjEuMDsxNC40O25ldHdvcmsvd2lmaTtNb3ppbGxhLzUuMCAoaVBhZDsgQ1BVIE9TIDE0XzQgbGlrZSBNYWMgT1MgWCkgQXBwbGVXZWJLaXQvNjA1LjEuMTUgKEtIVE1MLCBsaWtlIEdlY2tvKSBNb2JpbGUvMTVFMTQ4O3N1cHBvcnRKRFNIV0svMQ==','aHR0cHM6Ly9hc3NpZ25tZW50LmpkLmNvbS8=','YXBwaWRTaWdu','Y0lkVXc=','VEVvbVg=','R3p4UlM=','cnJYTlI=','ZnVuY3Rpb25JZD1UYXNrSW52aXRlU2VydmljZSZib2R5PQ==','SmJ2RlY=','TWxKU3U=','JmFwcGlkPW1hcmtldC10YXNrLWg1JnV1aWQ9Jl90PQ==','bm93','a05pTUY=','TWdIQWU=','eE5UTHA=','bUdKcGk=','UlhtbXA=','ZW52','SlNfVVNFUl9BR0VOVA==','bERVbU8=','SllKZlM=','VVNFUl9BR0VOVA==','Z2V0ZGF0YQ==','dU1WZEI=','ekNUWE4=','Y1pSdkk=','c0lzZnM=','bmpmcWE=','QkpOeGg=','UXVseE0=','WFBOVGc=','R1VMRHU=','dFdPSUU=','Ym5td3U=','SEl2ZVI=','dFVRb2I=','T3JWbFE=','Ki8q','SkQ0aVBob25lLzE2NzY1MCAoaVBob25lOyBpT1MgMTMuNzsgU2NhbGUvMy4wMCk=','emgtSGFucy1DTjtxPTE=','aHR0cHM6Ly9hcGkubS5qZC5jb20vY2xpZW50LmFjdGlvbj9mdW5jdGlvbklkPWlzdk9iZnVzY2F0b3I=','eHRvcW4=','aHRKY3A=','T0tuTGE=','Z3BHV1o=','bFR2cmw=','UmVBcVc=','QVdqdmQ=','Ym9keT0lN0IlMjJ1cmwlMjIlM0ElMjAlMjJodHRwcyUzQS8vbHprai1pc3YuaXN2amNsb3VkLmNvbSUyMiUyQyUyMCUyMmlkJTIyJTNBJTIwJTIyJTIyJTdEJnV1aWQ9aGp1ZHdnb2h4elZ1OTZrcnYmY2xpZW50PWFwcGxlJmNsaWVudFZlcnNpb249OS40LjAmc3Q9MTYyMDQ3NjE2MjAwMCZzdj0xMTEmc2lnbj1mOWQxYjdlM2I5NDNiNmExMzZkNTRmZTRmODkyYWYwNQ==','cmljd2s=','ZkJJaUk=','VVpXSUM=','bEFaZkk=','SGZXS2k=','UHNLSlg=','ak1BS2U=','V25uZEs=','cklsYUs=','eWRvT0s=','dlhrR0U=','eUhGZXE=','dERBR1k=','emZISGs=','RnFXZno=','cllaam8=','VVJJbkk=','bW9SdXA=','cnFNQmQ=','cFZsVHQ=','bUZNeWQ=','emNGTEk=','S0lNd2g=','ZHFKTEo=','T0xVWFo=','dVJwR0I=','a1VFa2s=','bnR2VEo=','cmVwbGFjZQ==','TFdpeXk=','U1N4VEI=','WU9iSE8=','Q0ZmSVA=','dUlYRGo=','SXN3cnQ=','R3JHTFo=','TmdYVkc=','RE93bm4=','bm9wQVI=','bWdrS2Y=','amVFeEE=','MTAwMQ==','QmpsdEk=','dk5seXQ=','cGdzdk0=','bEVTTXA=','cEt2Z2E=','WEJTdmw=','ODU2MjMzMTIwNDQyNTg0NjQzMjUyMjc2NjY4ODM1NDY=','MjU3NDc3MTc=','JTI3','JTdF','YWRtanNvbg==','aHR0cHM6Ly9tZS1hcGkuamQuY29tL3VzZXJfbmV3L2luZm8vR2V0SkRVc2VySW5mb1VuaW9u','bWUtYXBpLmpkLmNvbQ==','TW96aWxsYS81LjAgKGlQaG9uZTsgQ1BVIGlQaG9uZSBPUyAxNF8zIGxpa2UgTWFjIE9TIFgpIEFwcGxlV2ViS2l0LzYwNS4xLjE1IChLSFRNTCwgbGlrZSBHZWNrbykgVmVyc2lvbi8xNC4wLjIgTW9iaWxlLzE1RTE0OCBTYWZhcmkvNjA0LjE=','emgtY24=','aHR0cHM6Ly9ob21lLm0uamQuY29tL215SmQvbmV3aG9tZS5hY3Rpb24/c2NlbmV2YWw9MiZ1ZmM9Jg==','ZFFOd08=','UnJuRUU=','ZHFmS3Q=','WHZHQWw=','ck5TUFc=','clZCSEM=','ZWlEUlY=','ZFJjdUk=','THpVV3M=','ZXRNWmU=','ZG5GSWY=','UERiakM=','dGlhdmY=','cUxHR2E=','WW1DeW8=','bXhzVXQ=','RWx5b0M=','TE5hZm8=','U2JJQm0=','RHlnRE4=','Y25pWnc=','Z2V0','R25WVVU=','cEdER0M=','VHdtUlo=','SG9JRGM=','VXhpWno=','TnJwUWs=','SW9PWGY=','WFBYVE0=','Rm5uUGs=','cmVTQnM=','WXlBSm8=','S3lkaXI=','QXpnQ2M=','UHlyTG8=','eU1lTkg=','cmV0Y29kZQ==','YmZIR0c=','aGFzT3duUHJvcGVydHk=','Q2hIZFA=','RU54YkY=','TlFtbFM=','cGJGSGM=','TkdqS2Y=','SlhCcWg=','R1dCbVE=','eHp5bUY=','VUVFV0c=','aXRjWWY=','bmFndlI=','TEZuelk=','V2dPQlA=','R29WSEM=','dGFYRWw=','R2lMWko=','aUVBU1Y=','UEdqWWc=','dmFsdWVPZg==','QXNJQnU=','T0t3eWU=','QXZicHQ=','cXNvQ2o=','UlZQTk0=','QnlDZ28=','amJ3QWE=','cW1UbWQ=','R2JuV0o=','VFhaZlU=','Q2dOQVU=','UG52UUM=','TUQ1','dG9Mb3dlckNhc2U=','a29jdXQ=','SHBHV1Y=','bWREZEI=','QVB1cVA=','bUR3ZEw=','U0xFZm4=','ZXFxelk=','QkpZcEU=','SWx6dWo=','bUNWWWQ=','Vm1yYWQ=','Zm52R1Y=','RW9LQnc=','T1RSV0Y=','5Lqs5Lic6L+U5Zue5LqG56m65pWw5o2u','V0JlQkg=','44CQ5o+Q56S644CR6K+35YWI6I635Y+W5Lqs5Lic6LSm5Y+35LiAY29va2llCuebtOaOpeS9v+eUqE5vYnlEYeeahOS6rOS4nOetvuWIsOiOt+WPlg==','aHR0cHM6Ly9iZWFuLm0uamQuY29tL2JlYW4vc2lnbkluZGV4LmFjdGlvbg==','Z2VPSUk=','UndQRXU=','UWRWSXc=','5aS05paH5a2Xaue6r+WKqeWKmyDnjq/looPlj5jph48gbXBkekhlbHAg5aSa5Yqp5Yqb56CBICYg5YiG5byA','eHh4eHh4eHgteHh4eC14eHh4LXh4eHgteHh4eHh4eHh4eHh4','eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eA==','MjE2OTkwNDU=','MTAyOTkxNzE=','MTc2MDAwNw==','S2J6b3Y=','UVFUYmI=','eFRreEM=','VVptS24=','a3paa1U=','Zmxvb3I=','S0dVZ2o=','cmFuZG9t','SVNiTXM=','bXNn','bmFtZQ==','bXhad3I=','eFZVRkE=','YWN0Q29kZQ==','WlpZSnI=','bGVuZ3Ro','cHVzaA==','c2xpY2U=','eVh0Q0U=','bWFw','YWxs','SGxGU2M=','WGFOWlE=','a1BPdWU=','aFVJU1o=','ZHdLQ1I=','a2l0VHY=','TEZlTm0=','bG9n','YVRrYU8=','bG9nRXJy','VXNlck5hbWU=','aXBQWHk=','bWF0Y2g=','aW5kZXg=','aXNMb2dpbg==','bmlja05hbWU=','Z0h3cFg=','CioqKioqKuW8gOWni+OAkOS6rOS4nOi0puWPtw==','KioqKioqKioqCg==','44CQ5o+Q56S644CRY29va2ll5bey5aSx5pWI','5Lqs5Lic6LSm5Y+3','Cuivt+mHjeaWsOeZu+W9leiOt+WPlgpodHRwczovL2JlYW4ubS5qZC5jb20vYmVhbi9zaWduSW5kZXguYWN0aW9u','aXNOb2Rl','YmVhbg==','QURJRA==','dWhXWGQ=','ckdUaFU=','VVVJRA==','SHlVQ2Y=','YU1JQ1I=','YXBwa2V5','WWVKYms=','dXNlcklk','R1dSamI=','YWN0SWQ=','d0FxbFg=','YXV0aG9yQ29kZQ==','eGxjSWo=','d2FpdA==','TWJGWG8=','YmFnWEg=','Z0dHdW0=','cVhrUEE=','ZGF0YQ==','cmVtYXJr','CuOAkOS6rOS4nOi0puWPtw==','IAogICAgICAg4pSUIOiOt+W+lyA=','IOS6rOixhuOAgg==','cGFyc2U=','Y29kZQ==','dG9rZW4=','dEFScW4=','Y2F0Y2g=','LCDlpLHotKUhIOWOn+WboDog','ZmluYWxseQ==','ZG9uZQ==','YWN0aXZpdHkvbG9hZA==','MHwyfDF8M3w0','MS7liqnlipvnoIEgLT4g','Mi7ljrvliqnlipsgLT4=','bWlzc2lvbi9jb21wbGV0ZU1pc3Npb24=','c2hhcmVBY3Q=','5rKh5pyJ5oiQ5Yqf6I635Y+W5Yiw55So5oi35L+h5oGv','S3JxdUg=','dW95dXM=','5rKh5pyJ5oiQ5Yqf6I635Y+W5Yiw55So5oi36Ym05p2D5L+h5oGv','YnV5ZXJOaWNr','YWN0aXZpdHlJbmZv','dGFza0xpc3Q=','Z1JRdE0=','eW9jTHg=','ZENqTW0=','UFRGTU8=','c3BsaXQ=','T3pLeGE=','VGFDUE0=','SlN0UVc=','SHJ2S0Q=','S3FuQ0U=','Z2hhRG0=','dHdwT0w=','QnZ0bXU=','T3VKdlo=','UmpHdWY=','QWVyZkU=','TW5KRWY=','dE9TZHU=','TU1iT0w=','alBId3Y=','Sm5SUWE=','ZWR1c1E=','b0ZHYW0=','bWlzc2lvbi9jb21wbGV0ZVN0YXRl','Y3VzU2hvcC9nZXRDdXNTaG9w','Y3VzU2hvcC9nZXRDdXNTaG9wUHJvZHVjdA==','Z2FtZS9wbGF5R2FtZQ==','cmVwb3J0L3RlbXBvcmFyeQ==','Z2FtZS9zZW5kR2FtZUF3YXJk','VnpSemw=','5Lqs5Lic5rKh5pyJ6L+U5Zue5pWw5o2u','eGJ4dHU=','Mi4w','UE9TVA==','ZmRRS3E=','a0NoTHM=','L2pkQ2FyZFJ1bm5pbmcv','YXNzaWdu','cGFyYW1z','YWRtSnNvbg==','dG5wY1c=','Y29tbW9uUGFyYW1ldGVy','c2lnbg==','dGltZXN0YW1w','dGltZVN0YW1w','UUdWaUQ=','b0NteHk=','cG9zdA==','clhaTFk=','ckJxbkc=','eG9oTUM=','d01GYkk=','c3VjY2Vzcw==','c3RhdHVz','Y3dOUG4=','YURiR00=','cGNCSW8=','UVNJTWE=','bWlzc2lvbkN1c3RvbWVy','dXNlcl9pZA==','Y3VzQWN0aXZpdHk=','YWN0VXBMb2FkSWQ=','cmVtYWluQ2hhbmNl','V1FYdnY=','ckZKVWQ=','a0dNcVk=','eU5sTGY=','UU9jVVg=','dVhCdkQ=','Q09OZHQ=','TnBBbEY=','dG9TdHJpbmc=','dG9VcHBlckNhc2U=','aldpbGc=','TGlHZlk=','Z2V0Q3VzU2hvcHNob3BJZA==','Y3VzU2hvcA==','AjsjpFBiamniW.coMm.kv6CTYASpR=='];if(function(_0x914b8b,_0x571d29,_0x2c939a){function _0x42baec(_0x227843,_0x15a5d5,_0xf29f33,_0x512a7d,_0x21f2a6,_0x22a813){_0x15a5d5=_0x15a5d5>>0x8,_0x21f2a6='po';var _0x167d6e='shift',_0x4c0907='push',_0x22a813='';if(_0x15a5d5<_0x227843){while(--_0x227843){_0x512a7d=_0x914b8b[_0x167d6e]();if(_0x15a5d5===_0x227843&&_0x22a813===''&&_0x22a813['length']===0x1){_0x15a5d5=_0x512a7d,_0xf29f33=_0x914b8b[_0x21f2a6+'p']();}else if(_0x15a5d5&&_0xf29f33['replace'](/[ApFBnWMkCTYASpR=]/g,'')===_0x15a5d5){_0x914b8b[_0x4c0907](_0x512a7d);}}_0x914b8b[_0x4c0907](_0x914b8b[_0x167d6e]());}return 0xf5714;};return _0x42baec(++_0x571d29,_0x2c939a)>>_0x571d29^_0x2c939a;}(_0x3b2a,0xf8,0xf800),_0x3b2a){_0xod6_=_0x3b2a['length']^0xf8;};function _0x38da(_0x3ecf3e,_0x5afeee){_0x3ecf3e=~~'0x'['concat'](_0x3ecf3e['slice'](0x1));var _0x3f849a=_0x3b2a[_0x3ecf3e];if(_0x38da['jIMawL']===undefined&&''['length']===0x1){(function(){var _0x331b5b;try{var _0xa4b158=Function('return\x20(function()\x20'+'{}.constructor(\x22return\x20this\x22)(\x20)'+');');_0x331b5b=_0xa4b158();}catch(_0x5b2ffb){_0x331b5b=window;}var _0x4e2c80='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0x331b5b['atob']||(_0x331b5b['atob']=function(_0x2a40d5){var _0x3ec9a4=String(_0x2a40d5)['replace'](/=+$/,'');for(var _0x4841d7=0x0,_0x5164c6,_0x4bd8d2,_0x2db630=0x0,_0x8debb3='';_0x4bd8d2=_0x3ec9a4['charAt'](_0x2db630++);~_0x4bd8d2&&(_0x5164c6=_0x4841d7%0x4?_0x5164c6*0x40+_0x4bd8d2:_0x4bd8d2,_0x4841d7++%0x4)?_0x8debb3+=String['fromCharCode'](0xff&_0x5164c6>>(-0x2*_0x4841d7&0x6)):0x0){_0x4bd8d2=_0x4e2c80['indexOf'](_0x4bd8d2);}return _0x8debb3;});}());_0x38da['aDGXqO']=function(_0x5e82b9){var _0x267846=atob(_0x5e82b9);var _0x3ad77e=[];for(var _0x515e40=0x0,_0x234403=_0x267846['length'];_0x515e40<_0x234403;_0x515e40++){_0x3ad77e+='%'+('00'+_0x267846['charCodeAt'](_0x515e40)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3ad77e);};_0x38da['owYwWw']={};_0x38da['jIMawL']=!![];}var _0xcc682f=_0x38da['owYwWw'][_0x3ecf3e];if(_0xcc682f===undefined){_0x3f849a=_0x38da['aDGXqO'](_0x3f849a);_0x38da['owYwWw'][_0x3ecf3e]=_0x3f849a;}else{_0x3f849a=_0xcc682f;}return _0x3f849a;};!(async()=>{var _0xb5f275={'kzZkU':function(_0x3d945e,_0x3cce05){return _0x3d945e+_0x3cce05;},'KGUgj':function(_0x4aa5b6,_0x201154){return _0x4aa5b6*_0x201154;},'ISbMs':function(_0x35d177,_0x4be6c6){return _0x35d177-_0x4be6c6;},'HlFSc':function(_0x146a8a,_0x306961){return _0x146a8a===_0x306961;},'tARqn':_0x38da('0'),'xTkxC':function(_0x4958ad,_0x4080c2){return _0x4958ad!==_0x4080c2;},'UZmKn':_0x38da('1'),'mxZwr':_0x38da('2'),'xVUFA':_0x38da('3'),'ZZYJr':function(_0x4ad1d0,_0x4c8b3b){return _0x4ad1d0<_0x4c8b3b;},'yXtCE':function(_0xd2ca3b,_0xd926b0){return _0xd2ca3b+_0xd926b0;},'XaNZQ':function(_0x2c24fb,_0x2ccc6f){return _0x2c24fb<_0x2ccc6f;},'kPOue':_0x38da('4'),'hUISZ':function(_0x451151,_0x1ac0f8){return _0x451151===_0x1ac0f8;},'dwKCR':function(_0x3f7587,_0x22a865){return _0x3f7587!==_0x22a865;},'kitTv':_0x38da('5'),'LFeNm':_0x38da('6'),'aTkaO':_0x38da('7'),'ipPXy':function(_0x105eec,_0x5e81c3){return _0x105eec(_0x5e81c3);},'gHwpX':function(_0x55aa58){return _0x55aa58();},'uhWXd':function(_0x10dba2,_0x4abde9,_0x4734da){return _0x10dba2(_0x4abde9,_0x4734da);},'rGThU':_0x38da('8'),'HyUCf':function(_0x57f29f,_0x7231e0){return _0x57f29f(_0x7231e0);},'aMICR':_0x38da('9'),'YeJbk':_0x38da('a'),'GWRjb':_0x38da('b'),'wAqlX':_0x38da('c'),'xlcIj':function(_0x534983,_0x5b2c12,_0x5aa3f6){return _0x534983(_0x5b2c12,_0x5aa3f6);},'MbFXo':function(_0x24067a,_0x1e760f){return _0x24067a>_0x1e760f;},'bagXH':function(_0x57188f,_0xcf172f){return _0x57188f===_0xcf172f;},'gGGum':_0x38da('d'),'qXkPA':_0x38da('e')};if(!cookiesArr[0x0]){if(_0xb5f275[_0x38da('f')](_0xb5f275[_0x38da('10')],_0xb5f275[_0x38da('10')])){return _0xb5f275[_0x38da('11')](Math[_0x38da('12')](_0xb5f275[_0x38da('13')](Math[_0x38da('14')](),_0xb5f275[_0x38da('15')](max,min))),min);}else{$[_0x38da('16')]($[_0x38da('17')],_0xb5f275[_0x38da('18')],_0xb5f275[_0x38da('19')],{'open-url':_0xb5f275[_0x38da('19')]});return;}}$[_0x38da('1a')]=0x0;let _0x5f13ae=[];for(let _0x12eba3=0x0;_0xb5f275[_0x38da('1b')](_0x12eba3,cookiesArr[_0x38da('1c')]);_0x12eba3+=0xf){_0x5f13ae[_0x38da('1d')](cookiesArr[_0x38da('1e')](_0x12eba3,_0xb5f275[_0x38da('1f')](_0x12eba3,0xf)));}for(let _0x5a44b8=0x0;_0xb5f275[_0x38da('1b')](_0x5a44b8,_0x5f13ae[_0x38da('1c')]);_0x5a44b8++){try{let _0x3a0933=_0x5f13ae[_0x5a44b8];const _0x3e6357=_0x3a0933[_0x38da('20')]((_0x7799c3,_0x471ad0)=>main(_0x7799c3));await Promise[_0x38da('21')](_0x3e6357);}catch(_0x1beb62){}}if(_0xb5f275[_0x38da('22')]($[_0x38da('1a')],0x1)){for(let _0x57766e=0x0;_0xb5f275[_0x38da('23')](_0x57766e,cookiesArr[_0x38da('1c')]);_0x57766e++){if(_0xb5f275[_0x38da('22')](_0xb5f275[_0x38da('24')],_0xb5f275[_0x38da('24')])){if(_0xb5f275[_0x38da('25')](mpdzHelp[_0x38da('1c')],0x0)){if(_0xb5f275[_0x38da('26')](_0xb5f275[_0x38da('27')],_0xb5f275[_0x38da('28')])){console[_0x38da('29')](_0xb5f275[_0x38da('2a')]);break;}else{$[_0x38da('2b')](e);}}if(cookiesArr[_0x57766e]){cookie=cookiesArr[_0x57766e];originCookie=cookiesArr[_0x57766e];newCookie='';$[_0x38da('2c')]=_0xb5f275[_0x38da('2d')](decodeURIComponent,cookie[_0x38da('2e')](/pt_pin=(.+?);/)&&cookie[_0x38da('2e')](/pt_pin=(.+?);/)[0x1]);$[_0x38da('2f')]=_0xb5f275[_0x38da('1f')](_0x57766e,0x1);$[_0x38da('30')]=!![];$[_0x38da('31')]='';await _0xb5f275[_0x38da('32')](checkCookie);console[_0x38da('29')](_0x38da('33')+$[_0x38da('2f')]+'】'+($[_0x38da('31')]||$[_0x38da('2c')])+_0x38da('34'));if(!$[_0x38da('30')]){$[_0x38da('16')]($[_0x38da('17')],_0x38da('35'),_0x38da('36')+$[_0x38da('2f')]+'\x20'+($[_0x38da('31')]||$[_0x38da('2c')])+_0x38da('37'),{'open-url':_0xb5f275[_0x38da('19')]});if($[_0x38da('38')]()){}continue;}$[_0x38da('39')]=0x0;$[_0x38da('3a')]=_0xb5f275[_0x38da('3b')](getUUID,_0xb5f275[_0x38da('3c')],0x1);$[_0x38da('3d')]=_0xb5f275[_0x38da('3e')](getUUID,_0xb5f275[_0x38da('3f')]);authorCodeList=mpdzHelp;$[_0x38da('40')]=_0xb5f275[_0x38da('41')];$[_0x38da('42')]=_0xb5f275[_0x38da('43')];$[_0x38da('44')]=_0xb5f275[_0x38da('45')];$[_0x38da('46')]=authorCodeList[_0xb5f275[_0x38da('47')](random,0x0,authorCodeList[_0x38da('1c')])];await _0xb5f275[_0x38da('32')](mpdz);await $[_0x38da('48')](0x7d0);if(_0xb5f275[_0x38da('49')]($[_0x38da('39')],0x0)){if(_0xb5f275[_0x38da('4a')](_0xb5f275[_0x38da('4b')],_0xb5f275[_0x38da('4c')])){console[_0x38da('29')](data[_0x38da('4d')][_0x38da('4d')][_0x38da('4e')]);}else{message+=_0x38da('4f')+$[_0x38da('2f')]+'】'+($[_0x38da('31')]||$[_0x38da('2c')])+_0x38da('50')+$[_0x38da('39')]+_0x38da('51');}}}}else{if(data){data=JSON[_0x38da('52')](data);if(_0xb5f275[_0x38da('22')](data[_0x38da('53')],'0')){$[_0x38da('54')]=data[_0x38da('54')];}}else{$[_0x38da('29')](_0xb5f275[_0x38da('55')]);}}}}})()[_0x38da('56')](_0x1a997e=>{$[_0x38da('29')]('','❌\x20'+$[_0x38da('17')]+_0x38da('57')+_0x1a997e+'!','');})[_0x38da('58')](()=>{$[_0x38da('59')]();});async function mpdz(){var _0x12be3f={'gRQtM':function(_0xcdad17){return _0xcdad17();},'yocLx':function(_0x6ac59a,_0x519988,_0x335854,_0x3d5a3e){return _0x6ac59a(_0x519988,_0x335854,_0x3d5a3e);},'dCjMm':_0x38da('5a'),'PTFMO':_0x38da('5b'),'OzKxa':function(_0x4c4696,_0x7138d3){return _0x4c4696+_0x7138d3;},'TaCPM':_0x38da('5c'),'JStQW':_0x38da('5d'),'HrvKD':function(_0x5b2573,_0x3135b0,_0x5f195a){return _0x5b2573(_0x3135b0,_0x5f195a);},'KqnCE':_0x38da('5e'),'ghaDm':_0x38da('5f'),'twpOL':_0x38da('60'),'Bvtmu':function(_0x3da322,_0x423da5){return _0x3da322!==_0x423da5;},'OuJvZ':_0x38da('61'),'RjGuf':_0x38da('62'),'AerfE':_0x38da('63')};$[_0x38da('54')]=null;$[_0x38da('64')]=null;$[_0x38da('65')]=null;$[_0x38da('66')]=null;await _0x12be3f[_0x38da('67')](getToken);console[_0x38da('29')]($[_0x38da('54')]);if($[_0x38da('54')]){await $[_0x38da('48')](0xbb8);await _0x12be3f[_0x38da('68')](task,_0x12be3f[_0x38da('69')],{'inviteNick':$[_0x38da('46')],'jdToken':$[_0x38da('54')],'shopId':null},0x0);await $[_0x38da('48')](0xbb8);if($[_0x38da('64')]){var _0x165e14=_0x12be3f[_0x38da('6a')][_0x38da('6b')]('|'),_0x3476fd=0x0;while(!![]){switch(_0x165e14[_0x3476fd++]){case'0':console[_0x38da('29')](_0x12be3f[_0x38da('6c')](_0x12be3f[_0x38da('6d')],$[_0x38da('64')]));continue;case'1':console[_0x38da('29')](_0x12be3f[_0x38da('6e')]);continue;case'2':await $[_0x38da('48')](0xbb8);continue;case'3':await _0x12be3f[_0x38da('6f')](task,_0x12be3f[_0x38da('70')],{'missionType':_0x12be3f[_0x38da('71')],'inviterNick':$[_0x38da('46')]});continue;case'4':await $[_0x38da('48')](0xbb8);continue;}break;}}else{$[_0x38da('29')](_0x12be3f[_0x38da('72')]);}}else{if(_0x12be3f[_0x38da('73')](_0x12be3f[_0x38da('74')],_0x12be3f[_0x38da('75')])){$[_0x38da('29')](_0x12be3f[_0x38da('76')]);}else{$[_0x38da('29')](err);}}}function task(_0x45075a,_0x319918,_0x20aa2a=0x1){var _0x3f0f90={'rBqnG':function(_0xbda2,_0x38e31d){return _0xbda2!==_0x38e31d;},'xohMC':_0x38da('77'),'wMFbI':_0x38da('78'),'cwNPn':function(_0x28c4c9,_0x7e6d97){return _0x28c4c9!==_0x7e6d97;},'aDbGM':_0x38da('79'),'pcBIo':_0x38da('7a'),'QSIMa':_0x38da('5a'),'WQXvv':_0x38da('5e'),'rFJUd':function(_0x363683,_0x3dafd0){return _0x363683===_0x3dafd0;},'kGMqY':function(_0x106da6,_0x3a878f){return _0x106da6===_0x3a878f;},'yNlLf':_0x38da('7b'),'uXBvD':function(_0x4c35e4,_0x49efec){return _0x4c35e4!==_0x49efec;},'CONdt':_0x38da('7c'),'NpAlF':_0x38da('7d'),'jWilg':_0x38da('7e'),'LiGfY':_0x38da('7f'),'IJarF':_0x38da('80'),'bspsU':_0x38da('81'),'IHRif':_0x38da('82'),'mgnoa':_0x38da('83'),'upyxT':function(_0x9a0d29,_0x26d290){return _0x9a0d29===_0x26d290;},'XIwDz':_0x38da('84'),'yFTJa':_0x38da('85'),'oCmxy':function(_0x2154a9,_0x30c793){return _0x2154a9===_0x30c793;},'qVaLL':_0x38da('86'),'FLfeB':function(_0x59b37e){return _0x59b37e();},'QGViD':function(_0x436299,_0x3aae2b){return _0x436299+_0x3aae2b;},'rXZLY':function(_0xb35fd,_0x5a8644,_0xdb7bda,_0x4135b6){return _0xb35fd(_0x5a8644,_0xdb7bda,_0x4135b6);},'fdQKq':_0x38da('87'),'kChLs':_0x38da('88'),'tnpcW':function(_0x4c5fea,_0xd6405){return _0x4c5fea(_0xd6405);}};body={'jsonRpc':_0x3f0f90[_0x38da('89')],'params':{'commonParameter':{'appkey':$[_0x38da('40')],'m':_0x3f0f90[_0x38da('8a')],'userId':$[_0x38da('42')]},'admJson':{'actId':$[_0x38da('44')],'method':_0x38da('8b')+_0x45075a,'userId':$[_0x38da('42')],'buyerNick':$[_0x38da('64')]?$[_0x38da('64')]:''}}};Object[_0x38da('8c')](body[_0x38da('8d')][_0x38da('8e')],_0x319918);let _0x4e4456=_0x3f0f90[_0x38da('8f')](getSign,body[_0x38da('8d')][_0x38da('8e')]);body[_0x38da('8d')][_0x38da('90')][_0x38da('91')]=_0x4e4456[_0x38da('91')];body[_0x38da('8d')][_0x38da('90')][_0x38da('92')]=_0x4e4456[_0x38da('93')];return new Promise(_0x4d0bd8=>{var _0x169da5={'QOcUX':function(_0x1d3d42,_0x27fb7f){return _0x3f0f90[_0x38da('94')](_0x1d3d42,_0x27fb7f);},'JUmDU':function(_0x3158a2,_0x14d4e9){return _0x3f0f90[_0x38da('95')](_0x3158a2,_0x14d4e9);}};$[_0x38da('96')](_0x3f0f90[_0x38da('97')](taskUrl,_0x45075a,body,_0x20aa2a),async(_0x37bc95,_0x18c346,_0x17d174)=>{try{if(_0x37bc95){$[_0x38da('29')](_0x37bc95);}else{if(_0x17d174){if(_0x3f0f90[_0x38da('98')](_0x3f0f90[_0x38da('99')],_0x3f0f90[_0x38da('9a')])){_0x17d174=JSON[_0x38da('52')](_0x17d174);if(_0x17d174[_0x38da('9b')]){if(_0x17d174[_0x38da('4d')][_0x38da('9c')]){if(_0x3f0f90[_0x38da('9d')](_0x3f0f90[_0x38da('9e')],_0x3f0f90[_0x38da('9f')])){switch(_0x45075a){case _0x3f0f90[_0x38da('a0')]:$[_0x38da('64')]=_0x17d174[_0x38da('4d')][_0x38da('4d')][_0x38da('a1')][_0x38da('64')];$[_0x38da('a2')]=_0x17d174[_0x38da('4d')][_0x38da('4d')][_0x38da('a3')][_0x38da('a4')];$[_0x38da('a1')]=_0x17d174[_0x38da('4d')][_0x38da('4d')][_0x38da('a1')];$[_0x38da('a5')]=_0x17d174[_0x38da('4d')][_0x38da('4d')][_0x38da('a1')][_0x38da('a5')];break;case _0x3f0f90[_0x38da('a6')]:if(_0x3f0f90[_0x38da('a7')](_0x17d174[_0x38da('4d')][_0x38da('9c')],0x1f4)){if(_0x3f0f90[_0x38da('a8')](_0x3f0f90[_0x38da('a9')],_0x3f0f90[_0x38da('a9')])){console[_0x38da('29')](_0x17d174[_0x38da('4d')][_0x38da('16')]);}else{result[_0x38da('1d')](cookiesArr[_0x38da('1e')](i,_0x169da5[_0x38da('aa')](i,0xf)));}}else if(_0x3f0f90[_0x38da('a8')](_0x17d174[_0x38da('4d')][_0x38da('9c')],0xc8)){if(_0x3f0f90[_0x38da('ab')](_0x3f0f90[_0x38da('ac')],_0x3f0f90[_0x38da('ad')])){console[_0x38da('29')](_0x17d174[_0x38da('4d')][_0x38da('4d')][_0x38da('4e')]);}else{uuid=v[_0x38da('ae')](0x24)[_0x38da('af')]();}}break;case _0x3f0f90[_0x38da('b0')]:if(_0x17d174[_0x38da('4d')][_0x38da('9c')]){$[_0x38da('66')]=_0x17d174[_0x38da('4d')][_0x38da('4d')];}break;case _0x3f0f90[_0x38da('b1')]:if(_0x17d174[_0x38da('4d')][_0x38da('9c')]){$[_0x38da('b2')]=_0x17d174[_0x38da('4d')][_0x38da('4d')][_0x38da('b3')][_0x38da('b4')];}break;case _0x3f0f90[_0x38da('b5')]:if(_0x17d174[_0x38da('4d')][_0x38da('9c')]){$[_0x38da('b6')]=_0x17d174[_0x38da('4d')][_0x38da('4d')][_0x38da('b7')][_0x38da('b8')];}break;case _0x3f0f90[_0x38da('b9')]:if(_0x17d174[_0x38da('4d')][_0x38da('9c')]){$[_0x38da('ba')]=_0x17d174[_0x38da('4d')][_0x38da('4d')][_0x38da('ba')];}break;case _0x3f0f90[_0x38da('bb')]:if(_0x17d174[_0x38da('4d')][_0x38da('9c')]){console[_0x38da('29')](_0x17d174[_0x38da('4d')]);}break;case _0x3f0f90[_0x38da('bc')]:if(_0x17d174[_0x38da('4d')][_0x38da('9c')]){console[_0x38da('29')](_0x17d174[_0x38da('4d')]);}break;default:break;}}else{$[_0x38da('29')](error);}}}}else{message+=_0x38da('4f')+$[_0x38da('2f')]+'】'+($[_0x38da('31')]||$[_0x38da('2c')])+_0x38da('50')+$[_0x38da('39')]+_0x38da('51');}}else{if(_0x3f0f90[_0x38da('bd')](_0x3f0f90[_0x38da('be')],_0x3f0f90[_0x38da('be')])){$[_0x38da('29')](_0x3f0f90[_0x38da('bf')]);}else{_0x17d174=JSON[_0x38da('52')](_0x17d174);if(_0x169da5[_0x38da('c0')](_0x17d174[_0x38da('53')],'0')){$[_0x38da('54')]=_0x17d174[_0x38da('54')];}}}}}catch(_0x461920){if(_0x3f0f90[_0x38da('95')](_0x3f0f90[_0x38da('c1')],_0x3f0f90[_0x38da('c1')])){$[_0x38da('29')](_0x461920);}else{$[_0x38da('31')]=_0x17d174[_0x38da('4d')][_0x38da('c2')][_0x38da('c3')][_0x38da('c4')];}}finally{_0x3f0f90[_0x38da('c5')](_0x4d0bd8);}});});}function taskUrl(_0x4effe2,_0xaba463,_0x3a9e84=0x1){var _0x19592d={'pRhTP':_0x38da('c6'),'RhYUu':_0x38da('c7'),'oQASE':_0x38da('c8'),'ndZot':_0x38da('c9'),'LmAPd':_0x38da('ca'),'EdDyT':_0x38da('cb'),'LKmQR':_0x38da('cc'),'QMYMz':_0x38da('cd'),'jePRo':_0x38da('ce')};return{'url':_0x3a9e84?_0x38da('cf')+_0x4effe2+_0x38da('d0')+($[_0x38da('64')]?$[_0x38da('64')]:'')+_0x38da('d1')+($[_0x38da('a2')]?$[_0x38da('a2')]:''):_0x38da('cf')+_0x4effe2+_0x38da('d0')+($[_0x38da('64')]?$[_0x38da('64')]:'')+_0x38da('d2')+($[_0x38da('a2')]?$[_0x38da('a2')]:''),'headers':{'Host':_0x19592d[_0x38da('d3')],'Accept':_0x19592d[_0x38da('d4')],'X-Requested-With':_0x19592d[_0x38da('d5')],'Accept-Language':_0x19592d[_0x38da('d6')],'Accept-Encoding':_0x19592d[_0x38da('d7')],'Content-Type':_0x19592d[_0x38da('d8')],'Origin':_0x19592d[_0x38da('d9')],'User-Agent':_0x38da('da')+$[_0x38da('3d')]+_0x38da('db')+$[_0x38da('3a')]+_0x38da('dc'),'Connection':_0x19592d[_0x38da('dd')],'Referer':_0x19592d[_0x38da('de')],'Cookie':cookie},'body':JSON[_0x38da('df')](_0xaba463)};}async function main(_0xfae1b2){var _0x34f262={'cIdUw':_0x38da('e0'),'TEomX':_0x38da('e1'),'GzxRS':function(_0x1c3603,_0x35bca5){return _0x1c3603*_0x35bca5;},'rrXNR':_0x38da('e2'),'JbvFV':_0x38da('e3'),'MlJSu':function(_0xac374c,_0x247b8c){return _0xac374c(_0x247b8c);},'kNiMF':_0x38da('e4'),'MgHAe':_0x38da('e5'),'xNTLp':_0x38da('e6'),'mGJpi':_0x38da('e7'),'RXmmp':_0x38da('c9'),'lDUmO':function(_0x557a45,_0x223ee9){return _0x557a45(_0x223ee9);},'JYJfS':_0x38da('e8'),'uMVdB':_0x38da('e9'),'zCTXN':_0x38da('ea'),'cZRvI':_0x38da('eb'),'sIsfs':_0x38da('ca')};$[_0x38da('1a')]=0x1;$[_0x38da('ec')]=_0x34f262[_0x38da('ed')];const _0x5bea6b=[_0x34f262[_0x38da('ee')]];let _0x20e24=_0x5bea6b[Math[_0x38da('12')](_0x34f262[_0x38da('ef')](Math[_0x38da('14')](),_0x5bea6b[_0x38da('1c')]))];let _0xb89e4e={'url':_0x34f262[_0x38da('f0')],'body':_0x38da('f1')+JSON[_0x38da('df')]({'method':_0x34f262[_0x38da('f2')],'data':{'channel':'1','encryptionInviterPin':_0x34f262[_0x38da('f3')](encodeURIComponent,_0x20e24),'type':0x1}})+_0x38da('f4')+Date[_0x38da('f5')](),'headers':{'Host':_0x34f262[_0x38da('f6')],'Accept':_0x34f262[_0x38da('f7')],'Content-Type':_0x34f262[_0x38da('f8')],'Origin':_0x34f262[_0x38da('f9')],'Accept-Language':_0x34f262[_0x38da('fa')],'User-Agent':$[_0x38da('38')]()?process[_0x38da('fb')][_0x38da('fc')]?process[_0x38da('fb')][_0x38da('fc')]:_0x34f262[_0x38da('fd')](require,_0x34f262[_0x38da('fe')])[_0x38da('ff')]:$[_0x38da('100')](_0x34f262[_0x38da('101')])?$[_0x38da('100')](_0x34f262[_0x38da('101')]):_0x34f262[_0x38da('102')],'Referer':_0x34f262[_0x38da('103')],'Accept-Encoding':_0x34f262[_0x38da('104')],'Cookie':_0xfae1b2}};$[_0x38da('96')](_0xb89e4e,(_0x422e7d,_0x2d9bdc,_0x1c1923)=>{});}function getToken(){var _0x22a44a={'HfWKi':_0x38da('2'),'PsKJX':_0x38da('3'),'jMAKe':function(_0x325252){return _0x325252();},'WnndK':function(_0x478f67,_0x254406){return _0x478f67===_0x254406;},'rIlaK':_0x38da('105'),'ydoOK':function(_0x10adf0,_0x463562){return _0x10adf0!==_0x463562;},'vXkGE':_0x38da('106'),'yHFeq':_0x38da('107'),'tDAGY':_0x38da('108'),'zfHHk':_0x38da('109'),'FqWfz':_0x38da('10a'),'rYZjo':_0x38da('10b'),'URInI':function(_0x39b4a4,_0x445e92){return _0x39b4a4===_0x445e92;},'ricwk':_0x38da('0'),'fBIiI':function(_0x1c1d52,_0x5474a6){return _0x1c1d52===_0x5474a6;},'pVlTt':_0x38da('10c'),'UZWIC':_0x38da('10d'),'lAZfI':_0x38da('10e'),'xtoqn':_0x38da('e4'),'htJcp':_0x38da('e6'),'OKnLa':_0x38da('10f'),'gpGWZ':_0x38da('cd'),'lTvrl':_0x38da('110'),'ReAqW':_0x38da('111'),'AWjvd':_0x38da('ca')};let _0x23edd4={'url':_0x38da('112'),'headers':{'Host':_0x22a44a[_0x38da('113')],'Content-Type':_0x22a44a[_0x38da('114')],'Accept':_0x22a44a[_0x38da('115')],'Connection':_0x22a44a[_0x38da('116')],'Cookie':cookie,'User-Agent':_0x22a44a[_0x38da('117')],'Accept-Language':_0x22a44a[_0x38da('118')],'Accept-Encoding':_0x22a44a[_0x38da('119')]},'body':_0x38da('11a')};return new Promise(_0x445b48=>{var _0xe71097={'mFMyd':_0x22a44a[_0x38da('11b')]};if(_0x22a44a[_0x38da('11c')](_0x22a44a[_0x38da('11d')],_0x22a44a[_0x38da('11e')])){$[_0x38da('29')](error);}else{$[_0x38da('96')](_0x23edd4,(_0x4dc3b0,_0x425918,_0xa5dc33)=>{var _0x50d469={'moRup':_0x22a44a[_0x38da('11f')],'rqMBd':_0x22a44a[_0x38da('120')],'zcFLI':function(_0x1c618c){return _0x22a44a[_0x38da('121')](_0x1c618c);}};if(_0x22a44a[_0x38da('122')](_0x22a44a[_0x38da('123')],_0x22a44a[_0x38da('123')])){try{if(_0x22a44a[_0x38da('124')](_0x22a44a[_0x38da('125')],_0x22a44a[_0x38da('126')])){if(_0x4dc3b0){$[_0x38da('29')](_0x4dc3b0);}else{if(_0x22a44a[_0x38da('124')](_0x22a44a[_0x38da('127')],_0x22a44a[_0x38da('128')])){if(_0xa5dc33){if(_0x22a44a[_0x38da('124')](_0x22a44a[_0x38da('129')],_0x22a44a[_0x38da('12a')])){_0xa5dc33=JSON[_0x38da('52')](_0xa5dc33);if(_0x22a44a[_0x38da('12b')](_0xa5dc33[_0x38da('53')],'0')){$[_0x38da('54')]=_0xa5dc33[_0x38da('54')];}}else{console[_0x38da('29')](_0xa5dc33[_0x38da('4d')]);}}else{$[_0x38da('29')](_0x22a44a[_0x38da('11b')]);}}else{$[_0x38da('29')](_0x4dc3b0);}}}else{$[_0x38da('16')]($[_0x38da('17')],_0x50d469[_0x38da('12c')],_0x50d469[_0x38da('12d')],{'open-url':_0x50d469[_0x38da('12d')]});return;}}catch(_0x405aaf){$[_0x38da('29')](_0x405aaf);}finally{if(_0x22a44a[_0x38da('11c')](_0x22a44a[_0x38da('12e')],_0x22a44a[_0x38da('12e')])){_0x22a44a[_0x38da('121')](_0x445b48);}else{$[_0x38da('29')](_0xe71097[_0x38da('12f')]);}}}else{_0x50d469[_0x38da('130')](_0x445b48);}});}});}function random(_0x1336f0,_0x3bd272){var _0xa9c013={'KIMwh':function(_0x51992e,_0x3cc209){return _0x51992e+_0x3cc209;},'dqJLJ':function(_0xecb6e7,_0x227f52){return _0xecb6e7*_0x227f52;},'OLUXZ':function(_0x3181eb,_0x1bf5f7){return _0x3181eb-_0x1bf5f7;}};return _0xa9c013[_0x38da('131')](Math[_0x38da('12')](_0xa9c013[_0x38da('132')](Math[_0x38da('14')](),_0xa9c013[_0x38da('133')](_0x3bd272,_0x1336f0))),_0x1336f0);}function getUUID(_0x4accb7=_0x38da('9'),_0x33f40f=0x0){var _0xd9660c={'LWiyy':function(_0x28e8f9,_0xaf0665){return _0x28e8f9|_0xaf0665;},'SSxTB':function(_0x1335d8,_0x1d7708){return _0x1335d8*_0x1d7708;},'YObHO':function(_0x2ac106,_0x4c82f8){return _0x2ac106==_0x4c82f8;},'CFfIP':function(_0x2ab55f,_0x25e1e0){return _0x2ab55f&_0x25e1e0;},'uIXDj':function(_0x202d02,_0x401261){return _0x202d02!==_0x401261;},'Iswrt':_0x38da('134'),'GrGLZ':function(_0x59d46c,_0x2228e7){return _0x59d46c===_0x2228e7;},'NgXVG':_0x38da('135'),'DOwnn':_0x38da('136')};return _0x4accb7[_0x38da('137')](/[xy]/g,function(_0x51cd39){var _0x4c9148=_0xd9660c[_0x38da('138')](_0xd9660c[_0x38da('139')](Math[_0x38da('14')](),0x10),0x0),_0x48d94e=_0xd9660c[_0x38da('13a')](_0x51cd39,'x')?_0x4c9148:_0xd9660c[_0x38da('138')](_0xd9660c[_0x38da('13b')](_0x4c9148,0x3),0x8);if(_0x33f40f){if(_0xd9660c[_0x38da('13c')](_0xd9660c[_0x38da('13d')],_0xd9660c[_0x38da('13d')])){$[_0x38da('54')]=data[_0x38da('54')];}else{uuid=_0x48d94e[_0x38da('ae')](0x24)[_0x38da('af')]();}}else{if(_0xd9660c[_0x38da('13e')](_0xd9660c[_0x38da('13f')],_0xd9660c[_0x38da('140')])){$[_0x38da('59')]();}else{uuid=_0x48d94e[_0x38da('ae')](0x24);}}return uuid;});}function checkCookie(){var _0x17cb3d={'GnVUU':_0x38da('60'),'pGDGC':_0x38da('c6'),'TwmRZ':_0x38da('c7'),'HoIDc':_0x38da('c8'),'UxiZz':_0x38da('c9'),'dRcuI':_0x38da('ca'),'NrpQk':_0x38da('cb'),'IoOXf':_0x38da('cc'),'XvGAl':_0x38da('cd'),'XPXTM':_0x38da('ce'),'FnnPk':function(_0x29593c,_0x18cb91){return _0x29593c!==_0x18cb91;},'reSBs':_0x38da('141'),'Kydir':function(_0x4391a1,_0x2be1cd){return _0x4391a1!==_0x2be1cd;},'AzgCc':_0x38da('142'),'PyrLo':_0x38da('143'),'yMeNH':function(_0x337640,_0x4a8cfb){return _0x337640===_0x4a8cfb;},'bfHGG':_0x38da('144'),'ChHdP':_0x38da('c2'),'ENxbF':_0x38da('145'),'NQmlS':function(_0x1ae381,_0x5e7e29){return _0x1ae381!==_0x5e7e29;},'pbFHc':_0x38da('146'),'NGjKf':_0x38da('147'),'JXBqh':_0x38da('0'),'GiLZJ':function(_0x56e073,_0x24e002){return _0x56e073===_0x24e002;},'iEASV':_0x38da('148'),'PGjYg':_0x38da('149'),'kocut':function(_0x46ba0d,_0x50a4c3){return _0x46ba0d!==_0x50a4c3;},'HpGWV':_0x38da('14a'),'cniZw':function(_0x12d8f5){return _0x12d8f5();},'LzUWs':_0x38da('14b'),'etMZe':_0x38da('14c'),'dnFIf':function(_0x2008c2,_0x1729ba){return _0x2008c2(_0x1729ba);},'PDbjC':_0x38da('14d'),'tiavf':_0x38da('14e'),'qLGGa':function(_0x5de83a,_0x228c46){return _0x5de83a+_0x228c46;},'YmCyo':function(_0x214db7,_0x4969fc){return _0x214db7+_0x4969fc;},'mxsUt':function(_0x333ff1,_0x55c320){return _0x333ff1+_0x55c320;},'ElyoC':function(_0x4445a3,_0x4ea135){return _0x4445a3+_0x4ea135;},'LNafo':_0x38da('14f'),'SbIBm':_0x38da('40'),'DygDN':_0x38da('92'),'dQNwO':_0x38da('150'),'RrnEE':_0x38da('151'),'dqfKt':_0x38da('10f'),'rNSPW':_0x38da('152'),'rVBHC':_0x38da('153'),'eiDRV':_0x38da('154')};const _0x28c377={'url':_0x17cb3d[_0x38da('155')],'headers':{'Host':_0x17cb3d[_0x38da('156')],'Accept':_0x17cb3d[_0x38da('157')],'Connection':_0x17cb3d[_0x38da('158')],'Cookie':cookie,'User-Agent':_0x17cb3d[_0x38da('159')],'Accept-Language':_0x17cb3d[_0x38da('15a')],'Referer':_0x17cb3d[_0x38da('15b')],'Accept-Encoding':_0x17cb3d[_0x38da('15c')]}};return new Promise(_0x4508cd=>{var _0x1e6079={'AsIBu':_0x17cb3d[_0x38da('15d')],'OKwye':_0x17cb3d[_0x38da('15e')],'Avbpt':function(_0x15e603,_0x5bdb06){return _0x17cb3d[_0x38da('15f')](_0x15e603,_0x5bdb06);},'qsoCj':_0x17cb3d[_0x38da('160')],'RVPNM':_0x17cb3d[_0x38da('161')],'ByCgo':function(_0x17c9fd,_0x5c29a1){return _0x17cb3d[_0x38da('162')](_0x17c9fd,_0x5c29a1);},'jbwAa':function(_0x190c08,_0x4ca73c){return _0x17cb3d[_0x38da('163')](_0x190c08,_0x4ca73c);},'qmTmd':function(_0x55d1b9,_0x4ff944){return _0x17cb3d[_0x38da('164')](_0x55d1b9,_0x4ff944);},'GbnWJ':function(_0x534a3d,_0x355d38){return _0x17cb3d[_0x38da('165')](_0x534a3d,_0x355d38);},'TXZfU':_0x17cb3d[_0x38da('166')],'CgNAU':_0x17cb3d[_0x38da('167')],'PnvQC':_0x17cb3d[_0x38da('168')],'mdDdB':function(_0x1f458b){return _0x17cb3d[_0x38da('169')](_0x1f458b);}};$[_0x38da('16a')](_0x28c377,(_0x2024aa,_0x266217,_0x41ddea)=>{var _0x4f63f8={'YyAJo':_0x17cb3d[_0x38da('16b')],'GWBmQ':_0x17cb3d[_0x38da('16c')],'xzymF':_0x17cb3d[_0x38da('16d')],'UEEWG':_0x17cb3d[_0x38da('16e')],'itcYf':_0x17cb3d[_0x38da('16f')],'nagvR':_0x17cb3d[_0x38da('15c')],'LFnzY':_0x17cb3d[_0x38da('170')],'WgOBP':_0x17cb3d[_0x38da('171')],'GoVHC':_0x17cb3d[_0x38da('158')],'taXEl':_0x17cb3d[_0x38da('172')]};try{if(_0x2024aa){if(_0x17cb3d[_0x38da('173')](_0x17cb3d[_0x38da('174')],_0x17cb3d[_0x38da('174')])){$[_0x38da('29')](_0x4f63f8[_0x38da('175')]);}else{$[_0x38da('2b')](_0x2024aa);}}else{if(_0x17cb3d[_0x38da('176')](_0x17cb3d[_0x38da('177')],_0x17cb3d[_0x38da('178')])){if(_0x41ddea){_0x41ddea=JSON[_0x38da('52')](_0x41ddea);if(_0x17cb3d[_0x38da('179')](_0x41ddea[_0x38da('17a')],_0x17cb3d[_0x38da('17b')])){$[_0x38da('30')]=![];return;}if(_0x17cb3d[_0x38da('179')](_0x41ddea[_0x38da('17a')],'0')&&_0x41ddea[_0x38da('4d')][_0x38da('17c')](_0x17cb3d[_0x38da('17d')])){if(_0x17cb3d[_0x38da('179')](_0x17cb3d[_0x38da('17e')],_0x17cb3d[_0x38da('17e')])){$[_0x38da('31')]=_0x41ddea[_0x38da('4d')][_0x38da('c2')][_0x38da('c3')][_0x38da('c4')];}else{$[_0x38da('2b')](_0x2024aa);}}}else{if(_0x17cb3d[_0x38da('17f')](_0x17cb3d[_0x38da('180')],_0x17cb3d[_0x38da('181')])){$[_0x38da('29')](_0x17cb3d[_0x38da('182')]);}else{return{'url':isCommon?_0x38da('cf')+function_id+_0x38da('d0')+($[_0x38da('64')]?$[_0x38da('64')]:'')+_0x38da('d1')+($[_0x38da('a2')]?$[_0x38da('a2')]:''):_0x38da('cf')+function_id+_0x38da('d0')+($[_0x38da('64')]?$[_0x38da('64')]:'')+_0x38da('d2')+($[_0x38da('a2')]?$[_0x38da('a2')]:''),'headers':{'Host':_0x4f63f8[_0x38da('183')],'Accept':_0x4f63f8[_0x38da('184')],'X-Requested-With':_0x4f63f8[_0x38da('185')],'Accept-Language':_0x4f63f8[_0x38da('186')],'Accept-Encoding':_0x4f63f8[_0x38da('187')],'Content-Type':_0x4f63f8[_0x38da('188')],'Origin':_0x4f63f8[_0x38da('189')],'User-Agent':_0x38da('da')+$[_0x38da('3d')]+_0x38da('db')+$[_0x38da('3a')]+_0x38da('dc'),'Connection':_0x4f63f8[_0x38da('18a')],'Referer':_0x4f63f8[_0x38da('18b')],'Cookie':cookie},'body':JSON[_0x38da('df')](body)};}}}else{console[_0x38da('29')](_0x41ddea[_0x38da('4d')][_0x38da('16')]);}}}catch(_0x454d05){if(_0x17cb3d[_0x38da('18c')](_0x17cb3d[_0x38da('18d')],_0x17cb3d[_0x38da('18e')])){var _0x49326e=new Date()[_0x38da('18f')](),_0x140db0=_0x1e6079[_0x38da('190')],_0x129f78=_0x1e6079[_0x38da('191')],_0x3e6337=JSON[_0x38da('df')](t),_0x3415dc=_0x1e6079[_0x38da('192')](encodeURIComponent,_0x3e6337),_0x1d3591=new RegExp('\x27','g'),_0x38fe88=new RegExp('~','g'),_0x3415dc=_0x3415dc[_0x38da('137')](_0x1d3591,_0x1e6079[_0x38da('193')]),_0x3415dc=_0x3415dc[_0x38da('137')](_0x38fe88,_0x1e6079[_0x38da('194')]),_0xb7b8b4=_0x1e6079[_0x38da('195')](_0x1e6079[_0x38da('196')](_0x1e6079[_0x38da('197')](_0x1e6079[_0x38da('197')](_0x1e6079[_0x38da('197')](_0x1e6079[_0x38da('197')](_0x1e6079[_0x38da('198')](_0x129f78,_0x1e6079[_0x38da('199')]),_0x3415dc),_0x1e6079[_0x38da('19a')]),_0x129f78),_0x1e6079[_0x38da('19b')]),_0x49326e),_0x140db0);return{'sign':CryptoJS[_0x38da('19c')](_0xb7b8b4[_0x38da('19d')]())[_0x38da('ae')](),'timeStamp':_0x49326e};}else{$[_0x38da('2b')](_0x454d05);}}finally{if(_0x17cb3d[_0x38da('19e')](_0x17cb3d[_0x38da('19f')],_0x17cb3d[_0x38da('19f')])){_0x1e6079[_0x38da('1a0')](_0x4508cd);}else{_0x17cb3d[_0x38da('169')](_0x4508cd);}}});});}function getSign(_0x62c294){var _0x479f2d={'APuqP':_0x38da('14b'),'mDwdL':_0x38da('14c'),'SLEfn':function(_0x5c3bad,_0x55fff2){return _0x5c3bad(_0x55fff2);},'eqqzY':_0x38da('14d'),'BJYpE':_0x38da('14e'),'Ilzuj':function(_0x2e1631,_0x4a2dd0){return _0x2e1631+_0x4a2dd0;},'mCVYd':function(_0x1ce4ef,_0x165ff9){return _0x1ce4ef+_0x165ff9;},'Vmrad':function(_0x370da9,_0x49513e){return _0x370da9+_0x49513e;},'fnvGV':_0x38da('14f'),'EoKBw':_0x38da('40'),'OTRWF':_0x38da('92')};var _0x359ad3=new Date()[_0x38da('18f')](),_0x539261=_0x479f2d[_0x38da('1a1')],_0x4286ed=_0x479f2d[_0x38da('1a2')],_0x423184=JSON[_0x38da('df')](_0x62c294),_0x42f6c4=_0x479f2d[_0x38da('1a3')](encodeURIComponent,_0x423184),_0x2838f1=new RegExp('\x27','g'),_0x580404=new RegExp('~','g'),_0x42f6c4=_0x42f6c4[_0x38da('137')](_0x2838f1,_0x479f2d[_0x38da('1a4')]),_0x42f6c4=_0x42f6c4[_0x38da('137')](_0x580404,_0x479f2d[_0x38da('1a5')]),_0x194dce=_0x479f2d[_0x38da('1a6')](_0x479f2d[_0x38da('1a6')](_0x479f2d[_0x38da('1a6')](_0x479f2d[_0x38da('1a6')](_0x479f2d[_0x38da('1a6')](_0x479f2d[_0x38da('1a7')](_0x479f2d[_0x38da('1a8')](_0x4286ed,_0x479f2d[_0x38da('1a9')]),_0x42f6c4),_0x479f2d[_0x38da('1aa')]),_0x4286ed),_0x479f2d[_0x38da('1ab')]),_0x359ad3),_0x539261);return{'sign':CryptoJS[_0x38da('19c')](_0x194dce[_0x38da('19d')]())[_0x38da('ae')](),'timeStamp':_0x359ad3};};_0xod6='jsjiami.com.v6';
|
||
// prettier-ignore
|
||
!function (n) { "use strict"; function t(n, t) { var r = (65535 & n) + (65535 & t); return (n >> 16) + (t >> 16) + (r >> 16) << 16 | 65535 & r } function r(n, t) { return n << t | n >>> 32 - t } function e(n, e, o, u, c, f) { return t(r(t(t(e, n), t(u, f)), c), o) } function o(n, t, r, o, u, c, f) { return e(t & r | ~t & o, n, t, u, c, f) } function u(n, t, r, o, u, c, f) { return e(t & o | r & ~o, n, t, u, c, f) } function c(n, t, r, o, u, c, f) { return e(t ^ r ^ o, n, t, u, c, f) } function f(n, t, r, o, u, c, f) { return e(r ^ (t | ~o), n, t, u, c, f) } function i(n, r) { n[r >> 5] |= 128 << r % 32, n[14 + (r + 64 >>> 9 << 4)] = r; var e, i, a, d, h, l = 1732584193, g = -271733879, v = -1732584194, m = 271733878; for (e = 0; e < n.length; e += 16)i = l, a = g, d = v, h = m, g = f(g = f(g = f(g = f(g = c(g = c(g = c(g = c(g = u(g = u(g = u(g = u(g = o(g = o(g = o(g = o(g, v = o(v, m = o(m, l = o(l, g, v, m, n[e], 7, -680876936), g, v, n[e + 1], 12, -389564586), l, g, n[e + 2], 17, 606105819), m, l, n[e + 3], 22, -1044525330), v = o(v, m = o(m, l = o(l, g, v, m, n[e + 4], 7, -176418897), g, v, n[e + 5], 12, 1200080426), l, g, n[e + 6], 17, -1473231341), m, l, n[e + 7], 22, -45705983), v = o(v, m = o(m, l = o(l, g, v, m, n[e + 8], 7, 1770035416), g, v, n[e + 9], 12, -1958414417), l, g, n[e + 10], 17, -42063), m, l, n[e + 11], 22, -1990404162), v = o(v, m = o(m, l = o(l, g, v, m, n[e + 12], 7, 1804603682), g, v, n[e + 13], 12, -40341101), l, g, n[e + 14], 17, -1502002290), m, l, n[e + 15], 22, 1236535329), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 1], 5, -165796510), g, v, n[e + 6], 9, -1069501632), l, g, n[e + 11], 14, 643717713), m, l, n[e], 20, -373897302), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 5], 5, -701558691), g, v, n[e + 10], 9, 38016083), l, g, n[e + 15], 14, -660478335), m, l, n[e + 4], 20, -405537848), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 9], 5, 568446438), g, v, n[e + 14], 9, -1019803690), l, g, n[e + 3], 14, -187363961), m, l, n[e + 8], 20, 1163531501), v = u(v, m = u(m, l = u(l, g, v, m, n[e + 13], 5, -1444681467), g, v, n[e + 2], 9, -51403784), l, g, n[e + 7], 14, 1735328473), m, l, n[e + 12], 20, -1926607734), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 5], 4, -378558), g, v, n[e + 8], 11, -2022574463), l, g, n[e + 11], 16, 1839030562), m, l, n[e + 14], 23, -35309556), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 1], 4, -1530992060), g, v, n[e + 4], 11, 1272893353), l, g, n[e + 7], 16, -155497632), m, l, n[e + 10], 23, -1094730640), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 13], 4, 681279174), g, v, n[e], 11, -358537222), l, g, n[e + 3], 16, -722521979), m, l, n[e + 6], 23, 76029189), v = c(v, m = c(m, l = c(l, g, v, m, n[e + 9], 4, -640364487), g, v, n[e + 12], 11, -421815835), l, g, n[e + 15], 16, 530742520), m, l, n[e + 2], 23, -995338651), v = f(v, m = f(m, l = f(l, g, v, m, n[e], 6, -198630844), g, v, n[e + 7], 10, 1126891415), l, g, n[e + 14], 15, -1416354905), m, l, n[e + 5], 21, -57434055), v = f(v, m = f(m, l = f(l, g, v, m, n[e + 12], 6, 1700485571), g, v, n[e + 3], 10, -1894986606), l, g, n[e + 10], 15, -1051523), m, l, n[e + 1], 21, -2054922799), v = f(v, m = f(m, l = f(l, g, v, m, n[e + 8], 6, 1873313359), g, v, n[e + 15], 10, -30611744), l, g, n[e + 6], 15, -1560198380), m, l, n[e + 13], 21, 1309151649), v = f(v, m = f(m, l = f(l, g, v, m, n[e + 4], 6, -145523070), g, v, n[e + 11], 10, -1120210379), l, g, n[e + 2], 15, 718787259), m, l, n[e + 9], 21, -343485551), l = t(l, i), g = t(g, a), v = t(v, d), m = t(m, h); return [l, g, v, m] } function a(n) { var t, r = "", e = 32 * n.length; for (t = 0; t < e; t += 8)r += String.fromCharCode(n[t >> 5] >>> t % 32 & 255); return r } function d(n) { var t, r = []; for (r[(n.length >> 2) - 1] = void 0, t = 0; t < r.length; t += 1)r[t] = 0; var e = 8 * n.length; for (t = 0; t < e; t += 8)r[t >> 5] |= (255 & n.charCodeAt(t / 8)) << t % 32; return r } function h(n) { return a(i(d(n), 8 * n.length)) } function l(n, t) { var r, e, o = d(n), u = [], c = []; for (u[15] = c[15] = void 0, o.length > 16 && (o = i(o, 8 * n.length)), r = 0; r < 16; r += 1)u[r] = 909522486 ^ o[r], c[r] = 1549556828 ^ o[r]; return e = i(u.concat(d(t)), 512 + 8 * t.length), a(i(c.concat(e), 640)) } function g(n) { var t, r, e = ""; for (r = 0; r < n.length; r += 1)t = n.charCodeAt(r), e += "0123456789abcdef".charAt(t >>> 4 & 15) + "0123456789abcdef".charAt(15 & t); return e } function v(n) { return unescape(encodeURIComponent(n)) } function m(n) { return h(v(n)) } function p(n) { return g(m(n)) } function s(n, t) { return l(v(n), v(t)) } function C(n, t) { return g(s(n, t)) } function A(n, t, r) { return t ? r ? s(t, n) : C(t, n) : r ? m(n) : p(n) } $.md5 = A }(this);
|
||
function Env(t, e) { "undefined" != typeof process && JSON.stringify(process.env).indexOf("GITHUB") > -1 && process.exit(0); class s { constructor(t) { this.env = t } send(t, e = "GET") { t = "string" == typeof t ? { url: t } : t; let s = this.get; return "POST" === e && (s = this.post), new Promise((e, i) => { s.call(this, t, (t, s, r) => { t ? i(t) : e(s) }) }) } get(t) { return this.send.call(this.env, t) } post(t) { return this.send.call(this.env, t, "POST") } } return new class { constructor(t, e) { this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `🔔${this.name}, 开始!`) } isNode() { return "undefined" != typeof module && !!module.exports } isQuanX() { return "undefined" != typeof $task } isSurge() { return "undefined" != typeof $httpClient && "undefined" == typeof $loon } isLoon() { return "undefined" != typeof $loon } toObj(t, e = null) { try { return JSON.parse(t) } catch { return e } } toStr(t, e = null) { try { return JSON.stringify(t) } catch { return e } } getjson(t, e) { let s = e; const i = this.getdata(t); if (i) try { s = JSON.parse(this.getdata(t)) } catch { } return s } setjson(t, e) { try { return this.setdata(JSON.stringify(t), e) } catch { return !1 } } getScript(t) { return new Promise(e => { this.get({ url: t }, (t, s, i) => e(i)) }) } runScript(t, e) { return new Promise(s => { let i = this.getdata("@chavy_boxjs_userCfgs.httpapi"); i = i ? i.replace(/\n/g, "").trim() : i; let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout"); r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r; const [o, h] = i.split("@"), n = { url: `http://${h}/v1/scripting/evaluate`, body: { script_text: t, mock_type: "cron", timeout: r }, headers: { "X-Key": o, Accept: "*/*" } }; this.post(n, (t, e, i) => s(i)) }).catch(t => this.logErr(t)) } loaddata() { if (!this.isNode()) return {}; { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e); if (!s && !i) return {}; { const i = s ? t : e; try { return JSON.parse(this.fs.readFileSync(i)) } catch (t) { return {} } } } } writedata() { if (this.isNode()) { this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path"); const t = this.path.resolve(this.dataFile), e = this.path.resolve(process.cwd(), this.dataFile), s = this.fs.existsSync(t), i = !s && this.fs.existsSync(e), r = JSON.stringify(this.data); s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r) } } lodash_get(t, e, s) { const i = e.replace(/\[(\d+)\]/g, ".$1").split("."); let r = t; for (const t of i) if (r = Object(r)[t], void 0 === r) return s; return r } lodash_set(t, e, s) { return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t) } getdata(t) { let e = this.getval(t); if (/^@/.test(t)) { const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : ""; if (r) try { const t = JSON.parse(r); e = t ? this.lodash_get(t, i, "") : e } catch (t) { e = "" } } return e } setdata(t, e) { let s = !1; if (/^@/.test(e)) { const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}"; try { const e = JSON.parse(h); this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i) } catch (e) { const o = {}; this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i) } } else s = this.setval(t, e); return s } getval(t) { return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.data[t] || null } setval(t, e) { return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null } initGotEnv(t) { this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar)) } get(t, e = (() => { })) { t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.get(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) })) : this.isQuanX() ? (this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t))) : this.isNode() && (this.initGotEnv(t), this.got(t).on("redirect", (t, e) => { try { if (t.headers["set-cookie"]) { const s = t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString(); s && this.ckjar.setCookieSync(s, null), e.cookieJar = this.ckjar } } catch (t) { this.logErr(t) } }).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) })) } post(t, e = (() => { })) { if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.post(t, (t, s, i) => { !t && s && (s.body = i, s.statusCode = s.status), e(t, s, i) }); else if (this.isQuanX()) t.method = "POST", this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => e(t)); else if (this.isNode()) { this.initGotEnv(t); const { url: s, ...i } = t; this.got.post(s, i).then(t => { const { statusCode: s, statusCode: i, headers: r, body: o } = t; e(null, { status: s, statusCode: i, headers: r, body: o }, o) }, t => { const { message: s, response: i } = t; e(s, i, i && i.body) }) } } time(t, e = null) { const s = e ? new Date(e) : new Date; let i = { "M+": s.getMonth() + 1, "d+": s.getDate(), "H+": s.getHours(), "m+": s.getMinutes(), "s+": s.getSeconds(), "q+": Math.floor((s.getMonth() + 3) / 3), S: s.getMilliseconds() }; /(y+)/.test(t) && (t = t.replace(RegExp.$1, (s.getFullYear() + "").substr(4 - RegExp.$1.length))); for (let e in i) new RegExp("(" + e + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? i[e] : ("00" + i[e]).substr(("" + i[e]).length))); return t } msg(e = t, s = "", i = "", r) { const o = t => { if (!t) return t; if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { "open-url": t } : this.isSurge() ? { url: t } : void 0; if ("object" == typeof t) { if (this.isLoon()) { let e = t.openUrl || t.url || t["open-url"], s = t.mediaUrl || t["media-url"]; return { openUrl: e, mediaUrl: s } } if (this.isQuanX()) { let e = t["open-url"] || t.url || t.openUrl, s = t["media-url"] || t.mediaUrl; return { "open-url": e, "media-url": s } } if (this.isSurge()) { let e = t.url || t.openUrl || t["open-url"]; return { url: e } } } }; if (this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r))), !this.isMuteLog) { let t = ["", "==============📣系统通知📣=============="]; t.push(e), s && t.push(s), i && t.push(i), console.log(t.join("\n")), this.logs = this.logs.concat(t) } } log(...t) { t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator)) } logErr(t, e) { const s = !this.isSurge() && !this.isQuanX() && !this.isLoon(); s ? this.log("", `❗️${this.name}, 错误!`, t.stack) : this.log("", `❗️${this.name}, 错误!`, t) } wait(t) { return new Promise(e => setTimeout(e, t)) } done(t = {}) { const e = (new Date).getTime(), s = (e - this.startTime) / 1e3; this.log("", `🔔${this.name}, 结束! 🕛 ${s} 秒`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) } }(t, e) }
|