/*
全民抢京豆@凉人 🤣
cron 1 0-23/1 * 6 * jd_qjd.js
asd920
更新: 2021-07-03 11:00
抄自 @yangtingxiao 抽奖机脚本
活动时间：2021-07-02---2021-07-15
活动入口： 首页--领京豆--抢京豆  每天执行一次，暂时没解决自动开团生成互助码的问题，需要手动开团，或者等待大佬修复
已支持IOS双京东账号, Node.js支持N个京东账号
脚本兼容: QuantumultX, Surge, Loon, 小火箭，JSBox, Node.js
============Quantumultx===============
[task_local]
#
1 0-23/1 * 6 * https://raw.githubusercontent.com/Wenmoux/scripts/master/jd/xx.js, tag=新潮品牌狂欢, img-url=https://raw.githubusercontent.com/Orz-3/mini/master/Color/jd.png, enabled=true

================Loon==============
[Script]
cron "1 0-23/1 * 6 *" script-path=https://raw.githubusercontent.com/Wenmoux/scripts/master/jd/xx.js tag=

===============Surge=================
全民抢京豆 = type=cron,cronexp="1 0-23/1 * 6 *",wake-system=1,timeout=3600,script-path=https://raw.githubusercontent.com/Wenmoux/scripts/master/jd/jd_618redpacket.js

============小火箭=========
全民抢京豆 = type=cron,script-path=https://raw.githubusercontent.com/Wenmoux/scripts/master/jd/xx.js, cronexpr="1 0-23/1 * 6 *", timeout=3600, enable=true

 */
const $ = new Env('全民抢京豆');
//Node.js用户请在jdCookie.js处填写京东ck;
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
const randomCount = $.isNode() ? 20 : 5;
const notify = $.isNode() ? require('./sendNotify') : '';
let actId = '';
//IOS等用户直接用NobyDa的jd cookie
let cookiesArr = [],
  cookie = '';
if ($.isNode()) {
  Object.keys(jdCookieNode).forEach((item) => {
    cookiesArr.push(jdCookieNode[item])
  })
  if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { };
} else {
  cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
}
var _0xodY='jsjiami.com.v6',_0x4b85=[_0xodY,'w5HCgFxewqk=','wr9TNsKyYg==','woQ1RCbCuw==','w7zCux8iwqU=','YmXDiXQG','EMK9w7tNw7k=','DBbDn8ORAw==','w43DrcOsw43CiQ==','w7vCkUzCoTk=','MwvCncOcFg==','wpIHw6gmFw==','b8OPfBjCplbCmsK/AnZdwqgIXsOpXcKAasKDwpJBNwUJw43DhMOHHMO5Q8OxP30jNVRNwr8gw4cOwr7DoyLCsQ/DlAPCvsKNWQk+V8OfBmN3wo5jwrFATsOdDsKSwrY+w4fDvcKic1FIw45LwrJOw6dNaG3CpmwzK8KEwpjDvMK4w6/DtlU5wr3CnMOQwr/DrsOQI8K5wqRRw7HClkgKdhEfbMKxwr7CgsOkwoXDrkF3JMK7McK1wqADLMKJwoDCh8K4wqxyDlpSG23CqWxMw6YoIcK4aWlGw7lSw4DCoMKmEcOzX8Oww6DCh8KKw4rDrw==','OcKTwpA=','wrckFg==','Zkp4QQ==','NyzCssOGNQ==','w7LChHDCijw=','CzjDm8OLGw==','FnBODQ==','DsKfw5/DpT/CkHHCjFAbwoXDucK6','w5zCtsKawqca','NnnCjg==','w73CjEXCmlg=','NcKsw7tBw7puw453','5LqQ6Iyy5Y2Q5Yub5Yup5Ym456G/772f6ZS26KyD5L6x5oCf','wqDDj3odecO9w4HCqGo=','w6DCvsOcwp5q','w7xOw7DCpg==','w4B+C8K5Q8Ofw6Y=','fcO3AHrDjA==','w4rDkzR8w5s=','w4jDusOxw4TCgA==','fE3ClA0=','wpo7CcKwYA==','wpjDlkAteg==','w7JEw6jCjnEUOg==','QHjDmmEI','cMOQwoofw5k=','w57DkzJu','w77CiU3Ctk7Cg8KR','w7dwKU3DuQ==','MsKZwoM=','IA7DosO/','wrTCo3HCtuivl+ayp+Wnj+i3iu+8h+ivhuagouactee/t+i1oemEsuithQ==','OynCp8OL','VsORwpAD','w7h0JGU=','wqnDmsKBwpw4OUXDtMKK','Enw+wq0=','wo0vSRHDv8Kwwo3DpsKL','w6tHw6XCtXoxOl5577+u','GnfDt3w=','w5l9BsKCSMO6w6ZiFA==','GsKEw5fDvgjCoXHCnUXvvYw=','w6UhPMKdwrLCvX7CnsOf','776USMO2wqhqAhZVeMKRw4s=','csOzDVI=','w6XChmbCkE8=','Lng9JhI=','GUEZwq8=','5YiB5YmL5pS45oyV77+w','C0MVw5s0wqfDnMOXw7Q=','w7MYMQ==','5YmD5YuG5pWW5oyK776V','wpk7w4vDjw==','FcKTw5TDuyzCjX/CilQ=','5Ym35YuI5pWX5oyP77+5','JsOSwpjCmAfCpcK9wqvDkA==','6I6o5Y+05Lmi5YuB56Ky57mK5p6R776Z','w4k0wpXDmsKCFcKZwoTCqg==','BzjChcOcGw==','w5EOwp7Dp8Kb','5aeO6LaAw4Q=','aXEMw7tLwp4sdsKI','6I2d5Y6L5Lq05YuN56KO57ig5p2+776Y','KWQdOB7DtMOqwqVf','wrckFsKaXsKr','JgfDq8OfPw==','SMOiwqItw64=','wrvDvmofQQ==','DA/DosKfUg==','wqgFw7o/EA==','w7IYGMK5wqQ=','fWAK','PmHCpcKHSg==','wrZpasKBw6bClCgFw57DksK3w64=','Q8OOwqglw64=','w45kIMKzRw==','GcKHw7/DiBI=','5YmU5YuB5peP5o+A776K','wqnDhsKSwoczHUPDtsKW','w7cSOhnCt8KGD1/Ciw==','w7o6KQ==','5Yms5Yqb5pW95o6B7767','w7ISwqwzPMOQK8KSw5k=','wrfDmnwV','w5IlwovDg8K4HcKRwpHCpw==','wqxUasK1w6A=','w6tHw6XCtXoxOl55','OcKEwosMw5wCwqzCicKG','KMKtw7lYw5FMw4x2Lu++uA==','bEphRQ==','UFLCoMOjG8O5w4nDnjM=','5oKf55qk5Lmd5Yi/56Gq5LqA7768w4k+OBhZUMKoAMO0w68=','GcKXw4zDqg==','772yccOxcsKkwr3CnMOhdFrChw==','XcOBw5B8w5xpNyLCqQ==','w7fClMOBwpw=','w7TCh8Oawoh2w5Rnw5/DsQ==','eMOzFFY=','FcKqLi7or6nmsLjlpobotpTvvbforrnmoaLmno3nvqTotqHphYPoroU=','P3zCosK9cQ==','w6DCgcOHwpRow7Bhw53DrQ==','YsKtKRFn','wr8qBcK+','wrwJw6zDj8Od','PnEbMA==','w6U8KcKawpvCqHjCjcOWK8OZecOC','wpooVQw=','N15cPA4=','wr/DlG8=','buaLjeS4o+iznOmDkOisqueiiu++vA==','w6DClXPCrQ4=','w5rCksKRwrMk','wpTDh8KRwpkb','5Lml6I+/5YyF5Yqa5YuL5Yqu56OD776o6Zai6K6L5L2S5oCZ','DsKCw4rDohbChXfCn1k=','W0/CqMOTGcOI','5b265ZuM5aWM6Lev77y66Zac6K++5L+X5oKJ','w6LChMORw55oSx7CocOcTzpCwpxFw5zCjMKLNw==','w6rDj8OLw7/CtQlzw40Awr7CvHTCl2Q5w5U1wqjDt8Klwo8=','44CP5o+y56eK44G56K2E5YeR6I665Y2VMsKVw5bChsKoSMKR55ut5oy95L2I55aFwrvDqMOAH8O/Xeeag+S6gOS7meetsuWKrOiPoOWPig==','fsO0wrIqw5A=','WXFYR3c=','wqsGCcKvaA==','w7V8w5XCg1U=','w7XDk8OcwpXDhA==','wonDgMKYwoQv','HmoKwqNQ','wow7w6UVKsKuaMOuwrDDkV5Lw6nCkMKww5XDuyfDuXXDpcKbBcOVScKLR8KUbMKrVHzCv8OFw6/DrsKoTkArw7hDw5s=','5b2+5aed5Yiq5YqG56+9','5Lqy5YqG5Yif56OG77yF','ZVhy','wpM7w5LDiw==','w7w4A8K7wpk=','w4xcI8KIYA==','G8K/w7zDszU=','w4TCvy8=','EC9UwrgPw5NvOsObecO6YcKaw6nCp8OpeVM0Y8K4TXt2QcKhJyYpwqoNIcO7GmPCoMKmTsOiwoZlwqRsBsKQwrHjg4rlvZflpIjojqXlj47ku5Hli6/noJHjga/DiMKuwqwFPzMlYMOZwrzCvMKQw63Du8KnbWgFw5vDpmzCmxrDtnlgwqDCpAcmFAdXw79KwqFaXsKAwp3DusO0aw==','w5YlwonDlMKYGg==','w4TCl8O0wptL','wrwfw4AkPg==','Qm3Diw==','5b2+5Zu05aay6LS477+d6ZeU6Kyw5L2v5oG/','w6fCk8KSwq0MXm9tfg==','w6bDmsOLw64=','woYbw7U1IA==','LMKsw7XDqCE=','w7jCjUY=','5aao6LeTCg==','LUQCw4AUwqHDmMOU','b3Qkw51W','Iw7Du8O5OA==','NibCt8OPGg==','wpVBIMKVdw==','w7YEGgbChMKAAA==','wr0ySSnChsOqOA==','44OD5LiX5LiU6LWS5Y+g','wrc9QwTCmw==','w5fDiMOaw73CiFIxwoc=','w5DCmMOKw4R3UADlvpDlpKTjga3kuqTkuavoto7ljoA=','M34LNAg=','YlPCqsOkJcObw4vDnw==','DMKOw4lBwp3DqcOOw4LCqMK7','NjvCn8OFBVzCrA==','w6/DiMOY','44Kq5o6Q56ed44Kiwo8dwp/CicK6C+W3vuWnlOaXhg==','5LqC5Lie6LaK5Y+T','M3jCjcKWUA==','wrUiEsK0YsK4eVI=','w6TDscOzwrDDhMKrw47DqQ==','AuivnOmHmOaWlOeZleW9juiNo+WOg251Fyhmw4/DkDLClALDngnDlwhdw5DDnsKVw7fDny/CjcOjw6ZpEcO2OhQ1UcKrwpM9wp8uGzk0RMO+woLDqwo=','w7vCgcOBwo11wq0nwpTDtsKKwrhKb8KxesKHw5/DnMOfLsOKW8KkKcKvw77DkGzDgMOpw4AOGCEAGW5kOUzDq8ObSQ==','w7rChsO7wpJiw7I=','w5lwCcKUY8OWw71vF1g=','woliNcKe','G1gIw5kzwqXltYflpoDml4U9wr7Dkg==','wrJwPcKJbmDCuFE=','H3MuwqkJ','wqrDlsKNw5Qvw50bw5k=','wrDorYXphovmlr/nm4XlvZ3ojqLljZAMw57Cjl0Aw5I=','w7YXwpgqIg==','w7Vcw6M=','FE8Qwq8=','cMObPUvDpQ==','IGIHND8=','w5/CsSEP','w5fCucODwq5e','w5nCl8OXwpVK','Z8KZfB/CnlTCgcKqEg==','W0/CqA==','MSnCvsOP','wqEnwo4T6K6l5rO15aWz6LeR776s6K2S5qKh5pyk57+i6Lea6YaY6K2U','fcKfQgzChA==','NWDDtUXCuw==','w7RAw6M=','Hn5d','5LuR5Luq5p615Yiq5ZiQ6K2d6Zew5paJ5o2O5Lms56qe776c6Kyj5qGO5py16Iab6Lm06K6o5aeh572n57mQ5oOZ5YSj','HFrCrMKKfA==','w4LCon7ClAQ=','wopiLMKYSA==','w7U0IMK8wrnCtmc=','44KG5Lu55LmS6LeS5Yyr','w787KsKRwqQ=','w5QVwrsoHMOWL8KR','EnnDpA==','w5R5DUvDicKsYuW+gOWlsOOBgeS6luS7o+i0g+WMgw==','w7EeNQLCrcKIA0k=','CjvCtsOYLFTCr8OB','w5jDscOawq3DrcKjw40=','JTvCtcObFQ==','w4HDrcOow6PCow==','ecOlM3jDsA==','w7B6Nw==','w7TChUE=','5Liu5Lqn6LaZ5Y24','wolqO8KQbmDCuFE=','w7XorZLphKXmlJbnmJrlv6noj4HljaoTw5ovwpTCvE7DvsKoF8OcSMOyw7HCnsO4wrfCkMKiFnfCgMKAwp8gEsKwasKAasKhcsO4wpZwwpRQw4vCocKXwpzCncOrw7VH','w5jCtlTCvxE=','w6gVwpA1NsOS','MsKaw4DDmA4=','w6XDqcO+wrg2','DXPDrXnCn8KiwqvDp3ZG','LcOYwpvCgzrCr+W0ruWnqeaXrFHDnMKz','KMKFw53DuTbCg3PCnA==','5LuW5Liy6LWb5Yy9','w57CvUDCvg8=','DsK2w71Yw7puw453','w63or7TphpXmlYvnmZvlvZTojaLlj6JbwprCsjAjwrY=','w5bDnSE=','wrDCmGwlwpQiP8KsRcKbw4scQ8KdOsK2wqMiwoLCrMKdIyfDonbCvcOhUxXDvzzCh8OZZiQbZcKxOx7CsAYCw6HDslnjgqnkupnkuqDotq3lj4k=','w6gIwro/Kg==','5b6q5aWO5Yiv5Ymw44GRw4lUeQXDhnpaRELDiW/DrB3DnsK0wqDDm8OPw4F2SsOZw7DDvcKAwrtHEMKIw7t8worCv8K2w7hvwpoFw6/DhkAwKA==','QsOQw4xyw4Zm','JcOHwprChSM=','w7owIMKTwqjCsg==','dmoZ','XcOBLWfDvg==','fHPCm8OCPQ==','w43Dt8Opwp4wwqARN0rCpRQ=','5rOb6I6Z5Y6r5Yu65Yqf5Yie56CQGuWCuuatu+i8ruihhg==','eWQKw7FN','Nn8IFALDoQ==','woImw78ENcO4Pg==','w7DCjU/Cmg==','w7hlEcKeTA==','fMKjNzR4','CFLCpMKdSg==','w4PDsRFOw5Q=','P8Kkw6xL','wq1lYcKfw7XCiSYDw5o=','ZEnCq8OMJw==','AnBIHwA=','FUwXwq9Vw7E=','EcKZw58=','w5YvwoA=','5LqK5Lq45p+u5YuK5Zuf6K286ZSK5paY5o+s5LqL56qo77+m6K2d5qKl5p286IeR6Lqu6K2r5aei57y957u75oC/5YWA','AXUJwoYh','w4nCsg0fwr0=','InchHxc=','B13DslHCtw==','5LmX5Yqp56CM57i85py977+8','5b635Zix5oi05YmE','IHQiw4cv','wozDjMKPw4gmw44Zw4lpw7o+wozCvA==','w5jDj8OVwpbDsw==','wo/Do8K/w5YW','SMO0woAmw7Q=','OgPDgMOpJw==','H1IT','bXHCniLDmw==','UHXCmRvDhA==','wojCqcKkwpgowoIMNmzCgzQVTFLDgQ==','BMKIw4EKw5TCt8KNwp7Dp8O4wrbDiMKQRw==','F8OHXBRxD8OFw5IebMKYSsKSO8OrIxrDgMKT','cF1vTFw=','AEEdw5oo','w4Z6AA==','5aaA6Lanwro=','PcODwobCgT3CrcK1wr7DnQ==','w7/CmsOS','woouw7wA','wpHDnsKuwr8v','b0nCucO8Lg==','DcKXw4rDuB0=','w7I0OsKV','wrvDnmQEQ8O1w4nCvWc=','w4l6A8KV','5YuU5Ymt5peI5o+l772i','OsKXwpAY','5YiD5YqO5pSX5o6e77y3','w5vCpDoSwoQZccOlGw==','fsO3FUPDvMKgwoJkwo4=','w7jCiMKH','VcOQwpECw5nCpMKNwo7Duw==','HngmwrwlX8OZYsKV','5aeb6LW4Cg==','FFgA','w4PCh0PCvEo=','GMOiwq3CoBU=','wozDp8K5wqYb','5aSr6LSgUg==','bFbCggHDncO+ZMOlKA==','bsK8eC7CuA==','w4XDp8Oswo4jwpc=','Fl5rHx0=','E8Kzw5pAw4M=','wrbDncKHwqsvCA==','c03Clw==','wqlvag==','wqDkurnkubvot5blj5o=','J8OZwpDCjSs=','w6zDksOcw6TCiFIxwoc=','D2MKIz7DssOuwqY=','w4bDqsOh','w4bCsSUe','XlfDk1TorKbmso/lp67otqvvvJzor4jmobrmnarnvrnot7fphLzorq4=','5b2a5Zu05ou55Yms','A0kMwr05','V0TCswzDtg==','w67CgTkawog=','5LiL5Ymf56Cn57uD5p2j772y','w7HDksOYw6HChFY9wowmwrzCui/Cihknw5B8wq7DkcKmw4TCniU=','w4nCvcO8woRF','jIAPOOsDjiramilg.czoGHmI.v6Sx=='];(function(_0x5b40be,_0x1929e6,_0x14a3a6){var _0x175cbb=function(_0x34095d,_0x536d4f,_0xaba734,_0x2552f5,_0x2919fc){_0x536d4f=_0x536d4f>>0x8,_0x2919fc='po';var _0x32c8c1='shift',_0x26d1b8='push';if(_0x536d4f<_0x34095d){while(--_0x34095d){_0x2552f5=_0x5b40be[_0x32c8c1]();if(_0x536d4f===_0x34095d){_0x536d4f=_0x2552f5;_0xaba734=_0x5b40be[_0x2919fc+'p']();}else if(_0x536d4f&&_0xaba734['replace'](/[IAPOODrlgzGHISx=]/g,'')===_0x536d4f){_0x5b40be[_0x26d1b8](_0x2552f5);}}_0x5b40be[_0x26d1b8](_0x5b40be[_0x32c8c1]());}return 0x95675;};return _0x175cbb(++_0x1929e6,_0x14a3a6)>>_0x1929e6^_0x14a3a6;}(_0x4b85,0x81,0x8100));var _0x795b=function(_0xe79d38,_0x34e5a2){_0xe79d38=~~'0x'['concat'](_0xe79d38);var _0x3e3f5d=_0x4b85[_0xe79d38];if(_0x795b['RzdeBW']===undefined){(function(){var _0x505050=typeof window!=='undefined'?window:typeof process==='object'&&typeof require==='function'&&typeof global==='object'?global:this;var _0x88103e='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';_0x505050['atob']||(_0x505050['atob']=function(_0x5f4bd2){var _0x458d43=String(_0x5f4bd2)['replace'](/=+$/,'');for(var _0x4bac95=0x0,_0x323296,_0x52f348,_0x5519ae=0x0,_0x115904='';_0x52f348=_0x458d43['charAt'](_0x5519ae++);~_0x52f348&&(_0x323296=_0x4bac95%0x4?_0x323296*0x40+_0x52f348:_0x52f348,_0x4bac95++%0x4)?_0x115904+=String['fromCharCode'](0xff&_0x323296>>(-0x2*_0x4bac95&0x6)):0x0){_0x52f348=_0x88103e['indexOf'](_0x52f348);}return _0x115904;});}());var _0xf5fcf6=function(_0xe86f25,_0x34e5a2){var _0x554d40=[],_0x2f6bfc=0x0,_0x1c59e8,_0x1e1f1e='',_0xfe06ac='';_0xe86f25=atob(_0xe86f25);for(var _0x3e9f3f=0x0,_0x1bfe8a=_0xe86f25['length'];_0x3e9f3f<_0x1bfe8a;_0x3e9f3f++){_0xfe06ac+='%'+('00'+_0xe86f25['charCodeAt'](_0x3e9f3f)['toString'](0x10))['slice'](-0x2);}_0xe86f25=decodeURIComponent(_0xfe06ac);for(var _0x23b071=0x0;_0x23b071<0x100;_0x23b071++){_0x554d40[_0x23b071]=_0x23b071;}for(_0x23b071=0x0;_0x23b071<0x100;_0x23b071++){_0x2f6bfc=(_0x2f6bfc+_0x554d40[_0x23b071]+_0x34e5a2['charCodeAt'](_0x23b071%_0x34e5a2['length']))%0x100;_0x1c59e8=_0x554d40[_0x23b071];_0x554d40[_0x23b071]=_0x554d40[_0x2f6bfc];_0x554d40[_0x2f6bfc]=_0x1c59e8;}_0x23b071=0x0;_0x2f6bfc=0x0;for(var _0x314448=0x0;_0x314448<_0xe86f25['length'];_0x314448++){_0x23b071=(_0x23b071+0x1)%0x100;_0x2f6bfc=(_0x2f6bfc+_0x554d40[_0x23b071])%0x100;_0x1c59e8=_0x554d40[_0x23b071];_0x554d40[_0x23b071]=_0x554d40[_0x2f6bfc];_0x554d40[_0x2f6bfc]=_0x1c59e8;_0x1e1f1e+=String['fromCharCode'](_0xe86f25['charCodeAt'](_0x314448)^_0x554d40[(_0x554d40[_0x23b071]+_0x554d40[_0x2f6bfc])%0x100]);}return _0x1e1f1e;};_0x795b['ujSOvh']=_0xf5fcf6;_0x795b['neLikU']={};_0x795b['RzdeBW']=!![];}var _0x4c3084=_0x795b['neLikU'][_0xe79d38];if(_0x4c3084===undefined){if(_0x795b['NBYPtJ']===undefined){_0x795b['NBYPtJ']=!![];}_0x3e3f5d=_0x795b['ujSOvh'](_0x3e3f5d,_0x34e5a2);_0x795b['neLikU'][_0xe79d38]=_0x3e3f5d;}else{_0x3e3f5d=_0x4c3084;}return _0x3e3f5d;};let helpArr=[{'groupCodeID':_0x795b('0','yHA$'),'shareCode':'643D0BFC40F7B8710B354BD0D24F13D0AD1DAAB9A3E3F6CBAFDE81EEB7393333'}];const JD_API_HOST=_0x795b('1','6tNX');!(async()=>{var _0x536a0b={'jmMOE':_0x795b('2','LgTH'),'fIDxM':'https://bean.m.jd.com/','CwMlI':function(_0x210940){return _0x210940();},'fNxOS':function(_0x8d5e5){return _0x8d5e5();},'WbAfM':_0x795b('3','mIct'),'FLEyT':function(_0x3ab85b,_0x54f375){return _0x3ab85b!==_0x54f375;},'bTdPy':_0x795b('4','#r&O'),'uqZOs':function(_0x2edc65,_0x11f310){return _0x2edc65(_0x11f310);},'rBxnW':function(_0x49a466,_0x340adb){return _0x49a466+_0x340adb;},'wqFpp':'cvtSl','zrheO':function(_0xb80a1){return _0xb80a1();},'DLvSX':function(_0x14b00e,_0x5a3003){return _0x14b00e===_0x5a3003;},'JbbhL':_0x795b('5','6tDA'),'ubVpT':_0x795b('6','gp6V'),'irLzt':_0x795b('7','8O4D'),'BYpUP':_0x795b('8','yHA$'),'zsfqw':function(_0x56c05d,_0x349739){return _0x56c05d===_0x349739;},'CVWle':'bngnh','owJKX':_0x795b('9','gLH['),'oepdf':_0x795b('a','Y2Up'),'IyZFY':function(_0x5d0c9e,_0x3239b7){return _0x5d0c9e>_0x3239b7;},'kpnmp':'内部助力ing...','KSTTV':function(_0x281186,_0x177eb6){return _0x281186+_0x177eb6;},'srBwR':_0x795b('b','%^5P'),'FlVPg':_0x795b('c','gp6V'),'lYAuA':function(_0x7a4612,_0x26ec8b,_0x524133){return _0x7a4612(_0x26ec8b,_0x524133);}};if(!cookiesArr[0x0]){$[_0x795b('d','#r&O')]($[_0x795b('e','ou6U')],_0x536a0b[_0x795b('f','!I)F')],_0x536a0b[_0x795b('10','i&S#')],{'open-url':_0x536a0b[_0x795b('11','ouCF')]});return;}message='';console[_0x795b('12','brIs')](_0x795b('13','$2qP'));for(let _0x12ff2d=0x0;_0x12ff2d<cookiesArr[_0x795b('14','PjhL')];_0x12ff2d++){if(_0x536a0b[_0x795b('15',']baF')]!==_0x795b('16','Y2Up')){console[_0x795b('17','RHp3')](_0x795b('18','%^5P')+JSON[_0x795b('19','H&5z')](data[_0x795b('1a','6tNX')]));}else{cookie=cookiesArr[_0x12ff2d];if(cookie){if(_0x536a0b['FLEyT'](_0x536a0b[_0x795b('1b','Y2Up')],_0x795b('1c','ouCF'))){console[_0x795b('1d','pE(b')](_0x795b('1e','bgl7')+JSON['stringify'](data));}else{$[_0x795b('1f','!qKN')]=_0x536a0b[_0x795b('20','$2qP')](decodeURIComponent,cookie[_0x795b('21','86$4')](/pt_pin=([^; ]+)(?=;?)/)&&cookie['match'](/pt_pin=([^; ]+)(?=;?)/)[0x1]);$[_0x795b('22','sPCc')]=_0x536a0b[_0x795b('23','%F^&')](_0x12ff2d,0x1);$[_0x795b('24','*t[@')]=!![];$[_0x795b('25','9MG0')]=!![];$['message']=_0x795b('26','QA[h')+$[_0x795b('27','9MG0')]+'】'+$[_0x795b('28','6tNX')]+'\x0a';console['log'](_0x795b('29','yHA$')+$[_0x795b('2a','V9Pq')]+'】'+($['nickName']||$[_0x795b('2b','c[1Y')])+_0x795b('2c','mIct'));if(!$[_0x795b('2d','sPCc')]){$[_0x795b('2e','6tNX')]($['name'],_0x795b('2f','PjhL'),_0x795b('30','RHp3')+$[_0x795b('31','K8E@')]+'\x20'+($[_0x795b('32','6tDA')]||$[_0x795b('33','8O4D')])+_0x795b('34','#r&O'),{'open-url':_0x795b('35',']baF')});if($[_0x795b('36',']baF')]()){await notify[_0x795b('37','i&S#')]($[_0x795b('38','%F^&')]+_0x795b('39','!qKN')+$[_0x795b('3a','%F^&')],'京东账号'+$[_0x795b('3b','fxxM')]+'\x20'+$[_0x795b('3c','!b^M')]+_0x795b('3d','qVJY'));}continue;}if(_0x12ff2d<0xa){if(_0x536a0b['wqFpp']!==_0x536a0b[_0x795b('3e',')diT')]){$[_0x795b('3f','gp6V')]($[_0x795b('40','gLH[')],_0x536a0b['jmMOE'],_0x536a0b[_0x795b('10','i&S#')],{'open-url':_0x536a0b[_0x795b('41','gJKP')]});return;}else{await _0x536a0b[_0x795b('42','V9Pq')](getcode);await $[_0x795b('43','brIs')](0x3e8);}}else{if(_0x536a0b[_0x795b('44',']baF')](_0x536a0b[_0x795b('45',']baF')],_0x536a0b['ubVpT'])){console['log'](''+JSON[_0x795b('46','t&[w')](err));console[_0x795b('47','c[1Y')]($[_0x795b('48','sPCc')]+_0x795b('49',')diT'));}else{break;}}}}}}for(let _0x717123=0x0;_0x717123<cookiesArr['length'];_0x717123++){if(_0x536a0b[_0x795b('4a','t&[w')]===_0x795b('4b','%^5P')){console[_0x795b('4c','gp6V')](e);console[_0x795b('4d','aMES')](_0x795b('4e','ouCF'));return![];}else{cookie=cookiesArr[_0x717123];if(cookie){if(_0x536a0b[_0x795b('4f','K8E@')](_0x536a0b['BYpUP'],'Srxjr')){$['logErr'](e,resp);}else{$['UserName']=_0x536a0b[_0x795b('50','@AVc')](decodeURIComponent,cookie[_0x795b('51','%F^&')](/pt_pin=([^; ]+)(?=;?)/)&&cookie['match'](/pt_pin=([^; ]+)(?=;?)/)[0x1]);$['index']=_0x717123+0x1;$['isLogin']=!![];$[_0x795b('52','!I)F')]=!![];$['message']=_0x795b('53','!I)F')+$[_0x795b('54','!I)F')]+'】'+$[_0x795b('55',')diT')]+'\x0a';console[_0x795b('56','%^5P')](_0x795b('57','9MG0')+$['index']+'】'+($[_0x795b('58','*t[@')]||$[_0x795b('59','sPCc')])+'*********\x0a');if(!$[_0x795b('5a','8O4D')]){if(_0x536a0b[_0x795b('5b','sPCc')](_0x536a0b[_0x795b('5c','6tNX')],_0x536a0b[_0x795b('5d','gJKP')])){console[_0x795b('5e','4Mbg')]('未获取到互助码，进行自动开团\x0a\x0a');_0x536a0b['CwMlI'](hitGroup);}else{$[_0x795b('5f','bgl7')]($['name'],'【提示】cookie已失效',_0x795b('60','6tNX')+$[_0x795b('22','sPCc')]+'\x20'+($[_0x795b('61','%F^&')]||$['UserName'])+_0x795b('62','!b^M'),{'open-url':_0x536a0b[_0x795b('63','@AVc')]});if($[_0x795b('64',')diT')]()){if(_0x795b('65','ouCF')===_0x795b('66','74&I')){await notify[_0x795b('67','%^5P')]($['name']+_0x795b('68','n2S5')+$[_0x795b('69','ouCF')],_0x795b('6a','gLH[')+$[_0x795b('6b','@AVc')]+'\x20'+$[_0x795b('6c','azDN')]+_0x795b('6d','%F^&'));}else{_0x536a0b['fNxOS'](resolve);}}continue;}}console[_0x795b('6e','qVJY')](_0x795b('6f','qVJY')+$[_0x795b('70',')diT')]+_0x795b('71','74&I'));if(helpArr&&_0x536a0b['IyZFY'](helpArr[_0x795b('72','nOrD')],0x0)){console['log'](_0x536a0b[_0x795b('73','n2S5')]);for(let _0x2815e6=0x0;_0x2815e6<helpArr[_0x795b('74','!I)F')];_0x2815e6++){console[_0x795b('75','$2qP')](_0x536a0b[_0x795b('76','gJKP')](_0x536a0b[_0x795b('77','c[1Y')](_0x536a0b['srBwR'],_0x536a0b['KSTTV'](_0x2815e6,0x1)),_0x536a0b['FlVPg']),JSON['stringify'](helpArr[_0x2815e6]));await _0x536a0b['lYAuA'](help,helpArr[_0x2815e6][_0x795b('78','74&I')],helpArr[_0x2815e6]['shareCode']);await $['wait'](0x3e8);}}else{console['log'](_0x795b('79','gLH['));return;}}}}}})()[_0x795b('7a','$2qP')](_0x1abf3e=>$[_0x795b('7b','V9Pq')](_0x1abf3e))[_0x795b('7c','Y2Up')](()=>$[_0x795b('7d','pE(b')]());function safeGet(_0x187137){var _0x44ca37={'IHISf':function(_0x19cf2c,_0x5dac5e){return _0x19cf2c===_0x5dac5e;},'RDMnb':'PXJsz','yCWAj':_0x795b('7e','i&S#'),'SidZL':function(_0x11107a,_0x431e59){return _0x11107a==_0x431e59;}};try{if(_0x44ca37[_0x795b('7f','MJ2q')](_0x44ca37[_0x795b('80','K8E@')],_0x44ca37[_0x795b('81','qVJY')])){console['log']('助力数据：'+JSON[_0x795b('46','t&[w')](_0x187137[_0x795b('82','azDN')][_0x795b('83','79OH')])+'\x0a\x0a');}else{if(_0x44ca37[_0x795b('84','c[1Y')](typeof JSON[_0x795b('85','aMES')](_0x187137),_0x795b('86','gLH['))){return!![];}}}catch(_0x707174){console[_0x795b('87','ouCF')](_0x707174);console[_0x795b('88','PjhL')](_0x795b('89','mIct'));return![];}}function help(_0x3c2f2a,_0x521602){var _0x3827c1={'gArfT':function(_0x847ea3,_0x43d2a5){return _0x847ea3==_0x43d2a5;},'xvzhr':_0x795b('8a','fxxM'),'viXJr':function(_0x2ca183,_0x47a357){return _0x2ca183(_0x47a357);},'KlNQr':function(_0xe8cd4,_0x4c3bbe){return _0xe8cd4===_0x4c3bbe;},'XivjE':_0x795b('8b','brIs'),'VUYHF':_0x795b('8c','V9Pq'),'dOQsx':function(_0x30ba4e,_0x4fe924){return _0x30ba4e===_0x4fe924;},'HvBjw':_0x795b('8d','%^5P'),'pOlzF':function(_0x2e921a){return _0x2e921a();},'iMCTy':_0x795b('8e','79OH'),'SeWpu':_0x795b('8f','@AVc'),'pFWpw':function(_0x27165c,_0x38caae){return _0x27165c!==_0x38caae;},'nPcMC':_0x795b('90','!qKN'),'tlOsw':'qToeF','rSnJh':function(_0x50a75a,_0x19b1c8,_0x57f3c5,_0x218ec2,_0x3023c4){return _0x50a75a(_0x19b1c8,_0x57f3c5,_0x218ec2,_0x3023c4);},'OWisw':_0x795b('91','!b^M')};return new Promise(_0x4280a0=>{var _0x4e067c={'WebCj':_0x3827c1[_0x795b('92','8O4D')],'HFmXs':_0x3827c1['SeWpu']};if(_0x3827c1[_0x795b('93','!b^M')](_0x3827c1[_0x795b('94','mIct')],_0x3827c1[_0x795b('95','86$4')])){$[_0x795b('96','!qKN')](_0x3827c1[_0x795b('97','LgTH')](taskUrl,_0x3827c1[_0x795b('98','LgTH')],'{\x22activeType\x22:2,\x22groupCode\x22:\x22'+_0x3c2f2a+_0x795b('99','74&I')+_0x521602+_0x795b('9a','mIct')+actId+_0x795b('9b','MJ2q'),_0x3c2f2a,_0x521602),async(_0x49d65d,_0x41ad46,_0x11db6f)=>{var _0xede089={'zQvXH':function(_0x3dcf52,_0x359478){return _0x3827c1['gArfT'](_0x3dcf52,_0x359478);}};if(_0x3827c1[_0x795b('9c','#r&O')]!==_0x3827c1[_0x795b('9d','!qKN')]){console[_0x795b('9e','i&S#')](_0x795b('9f','8O4D')+JSON[_0x795b('a0','n2S5')](_0x11db6f));}else{try{if(_0x49d65d){console[_0x795b('a1',']baF')](''+JSON['stringify'](_0x49d65d));console[_0x795b('88','PjhL')]($[_0x795b('a2','Y2Up')]+'\x20API请求失败，请检查网路重试');}else{if(_0x11db6f){if(_0x11db6f&&_0x3827c1['viXJr'](safeGet,_0x11db6f)){if(_0x3827c1[_0x795b('a3','yHA$')](_0x3827c1[_0x795b('a4','c[1Y')],'abEdW')){_0x11db6f=JSON[_0x795b('a5','ouCF')](_0x11db6f);if(_0x11db6f['data']&&_0x11db6f[_0x795b('a6','!I)F')][_0x795b('a7','QA[h')]){if(_0x11db6f[_0x795b('a8','i&S#')]==0x0){message+=_0x795b('a9','ouCF')+JSON['stringify'](_0x11db6f[_0x795b('aa','r0Mo')]['helpToast'])+'\x0a}';console[_0x795b('1d','pE(b')](_0x795b('ab','i&S#')+JSON[_0x795b('ac','brIs')](_0x11db6f['data'][_0x795b('ad','gJKP')])+'\x0a\x0a');}else{console[_0x795b('ae','H&5z')]('助力数据：'+JSON[_0x795b('af','mIct')](_0x11db6f[_0x795b('aa','r0Mo')][_0x795b('b0','fxxM')])+'\x0a\x0a');}}else{console['log'](_0x795b('b1','R^oV')+JSON['stringify'](_0x11db6f));}}else{console[_0x795b('b2','!qKN')](_0x4e067c[_0x795b('b3','pE(b')],_0x11db6f);}}else{if(_0x3827c1['KlNQr'](_0x3827c1[_0x795b('b4','n2S5')],_0x3827c1[_0x795b('b5','yHA$')])){console['log'](_0x795b('b6','$2qP')+JSON[_0x795b('b7','LgTH')](_0x11db6f));}else{if(_0xede089[_0x795b('b8','t&[w')](typeof JSON['parse'](_0x11db6f),_0x795b('b9','74&I'))){return!![];}}}}}}catch(_0x5cf85f){if(_0x3827c1[_0x795b('ba','aMES')](_0x3827c1[_0x795b('bb','azDN')],_0x3827c1['HvBjw'])){$[_0x795b('bc','yHA$')](_0x5cf85f,_0x41ad46);}else{helpArr['push']({'shareCode':_0x521602,'groupCodeID':_0x3c2f2a});console[_0x795b('bd','LgTH')](_0x4e067c['HFmXs']);console[_0x795b('be','79OH')](_0x795b('bf','i&S#')+$[_0x795b('c0','n2S5')]+'\x20'+($[_0x795b('c1','6tNX')]||$[_0x795b('c2','V9Pq')])+'\x20抢京豆邀请码：'+_0x521602+'\x0a');}}finally{_0x3827c1['pOlzF'](_0x4280a0);}}});}else{console[_0x795b('c3','74&I')](''+JSON['stringify'](err));console[_0x795b('c3','74&I')]($[_0x795b('c4','brIs')]+_0x795b('c5','%^5P'));}});}function getcode(){var _0x23d168={'xnSoo':_0x795b('c6','K8E@'),'ZHIyC':'qMdmQ','quSLP':function(_0x15932f,_0x4ccb79){return _0x15932f===_0x4ccb79;},'ZfcGX':_0x795b('c7','fxxM'),'TkWYO':function(_0x39b0f4,_0x4dab93){return _0x39b0f4!==_0x4dab93;},'LgePa':_0x795b('c8','LgTH'),'KxcgM':_0x795b('c9','brIs'),'OVSBO':'kNyTw','LBhzN':_0x795b('ca','bgl7'),'lCNvt':function(_0xf72f3f){return _0xf72f3f();},'vHyCN':function(_0x22db14,_0x1ac40d,_0x561714){return _0x22db14(_0x1ac40d,_0x561714);},'AdfqR':_0x795b('cb','6tNX')};return new Promise(async _0x47bf77=>{var _0x53df8a={'HQzcx':_0x23d168['xnSoo'],'hdalW':function(_0x4271ac,_0x2c5554){return _0x4271ac!==_0x2c5554;},'EWTQK':_0x23d168[_0x795b('cc',']baF')],'buUOO':function(_0x460bd2,_0x5c6843){return _0x23d168['quSLP'](_0x460bd2,_0x5c6843);},'sKicl':_0x795b('cd','bgl7'),'NUOpR':_0x795b('ce','%F^&'),'JANKF':function(_0x308205,_0x6b6b19){return _0x308205==_0x6b6b19;},'KmHYm':_0x23d168[_0x795b('cf','9MG0')],'CyPcX':function(_0x16f0a9,_0x3f9c91){return _0x23d168[_0x795b('d0','brIs')](_0x16f0a9,_0x3f9c91);},'nzvEo':_0x23d168[_0x795b('d1','RHp3')],'Vtitn':_0x23d168[_0x795b('d2','azDN')],'qdGoo':_0x795b('d3','86$4'),'thRwb':function(_0x478180){return _0x478180();},'XpVvy':_0x23d168[_0x795b('d4','6tNX')],'mPnCA':_0x23d168[_0x795b('d5','@AVc')],'SXXeA':function(_0x5ca659){return _0x23d168[_0x795b('d6','sPCc')](_0x5ca659);}};let _0x5d4d04=_0x23d168[_0x795b('d7','Y2Up')](taskGetUrl,_0x23d168['AdfqR'],_0x795b('d8','t&[w'));$[_0x795b('d9','r0Mo')](_0x5d4d04,async(_0x376511,_0x4db305,_0x4cfe9f)=>{try{if(_0x376511){console['log'](''+JSON['stringify'](_0x376511));console[_0x795b('da','6tDA')]($[_0x795b('db','#r&O')]+_0x795b('c5','%^5P'));}else{if(_0x53df8a[_0x795b('dc','sPCc')](_0x53df8a[_0x795b('dd','@AVc')],_0x53df8a[_0x795b('de','86$4')])){let {shareCode,groupCode}=_0x4cfe9f[_0x795b('df','aMES')][_0x795b('e0','ouCF')];if(shareCode){helpArr['push']({'shareCode':shareCode,'groupCodeID':groupCode});console['log'](_0x53df8a[_0x795b('e1','H&5z')]);console[_0x795b('e2','K8E@')](_0x795b('bf','i&S#')+$[_0x795b('e3','pE(b')]+'\x20'+($[_0x795b('e4','azDN')]||$['UserName'])+'\x20抢京豆邀请码：'+shareCode+'\x0a');}else{console[_0x795b('12','brIs')](_0x795b('e5','74&I')+JSON[_0x795b('e6','QA[h')](_0x4cfe9f['data']));}}else{if(_0x4cfe9f){if(_0x4cfe9f&&safeGet(_0x4cfe9f)){if(_0x53df8a['buUOO'](_0x53df8a[_0x795b('e7',']baF')],_0x53df8a['NUOpR'])){actId=_0x4cfe9f[_0x795b('e8','gp6V')][_0x795b('e9','i&S#')][_0x795b('ea','gJKP')];}else{_0x4cfe9f=JSON[_0x795b('eb','qVJY')](_0x4cfe9f);if(_0x53df8a[_0x795b('ec','6tNX')](_0x4cfe9f[_0x795b('ed','LgTH')],0x0)){if(_0x795b('ee','6tDA')!==_0x53df8a[_0x795b('ef','QA[h')]){if(_0x4cfe9f['data'][_0x795b('f0','gp6V')]){if(_0x53df8a['CyPcX'](_0x53df8a[_0x795b('f1','RHp3')],_0x53df8a[_0x795b('f2','mIct')])){actId=_0x4cfe9f[_0x795b('f3','qVJY')][_0x795b('f4','pE(b')][_0x795b('f5','4Mbg')];}else{console[_0x795b('f6','r0Mo')](''+JSON['stringify'](_0x376511));console['log']($[_0x795b('f7','86$4')]+_0x795b('f8','pE(b'));}}if(_0x4cfe9f[_0x795b('f9','sPCc')]['shareCode']&&_0x4cfe9f['data']['groupCode']){helpArr[_0x795b('fa','mIct')]({'shareCode':_0x4cfe9f[_0x795b('fb','4Mbg')][_0x795b('fc','yHA$')],'groupCodeID':_0x4cfe9f[_0x795b('fd','fxxM')][_0x795b('fe','R^oV')]});message+=_0x795b('ff','gp6V')+JSON['stringify'](_0x4cfe9f[_0x795b('100','%^5P')][_0x795b('101','i&S#')])+'\x0a}';message+=_0x795b('102','ouCF')+JSON[_0x795b('103','!I)F')](_0x4cfe9f['data']['groupCode'])+'\x0a}';console['log']('您的互助码为：shareCode='+JSON[_0x795b('e6','QA[h')](_0x4cfe9f['data'][_0x795b('fc','yHA$')])+_0x795b('104','gp6V')+JSON[_0x795b('b7','LgTH')](_0x4cfe9f[_0x795b('105','gJKP')]['groupCode'])+'\x0a\x0a');}else{if(_0x53df8a['CyPcX'](_0x53df8a['qdGoo'],_0x53df8a[_0x795b('106','pE(b')])){$['logErr'](e,_0x4db305);}else{console[_0x795b('87','ouCF')]('未获取到互助码，进行自动开团\x0a\x0a');_0x53df8a[_0x795b('107','V9Pq')](hitGroup);}}}else{if(_0x4cfe9f[_0x795b('108','gLH[')]==0x0){message+=_0x795b('109','brIs')+JSON[_0x795b('10a','!qKN')](_0x4cfe9f['data']['helpToast'])+'\x0a}';console[_0x795b('10b','*t[@')](_0x795b('10c','R^oV')+JSON['stringify'](_0x4cfe9f[_0x795b('10d','ou6U')][_0x795b('10e','ouCF')])+'\x0a\x0a');}else{console[_0x795b('da','6tDA')](_0x795b('10f','9MG0')+JSON['stringify'](_0x4cfe9f['data'][_0x795b('110','n2S5')])+'\x0a\x0a');}}}else{console['log'](_0x795b('111','LgTH')+JSON[_0x795b('112','PjhL')](_0x4cfe9f)+'\x0a\x0a');}}}else{if(_0x53df8a[_0x795b('113','sPCc')]===_0x795b('114','PjhL')){console['log'](_0x795b('115','!b^M')+JSON[_0x795b('116','$2qP')](_0x4cfe9f));}else{console[_0x795b('4c','gp6V')](_0x795b('117','R^oV')+JSON[_0x795b('118','V9Pq')](_0x4cfe9f)+'\x0a\x0a');}}}else{console['log'](_0x53df8a['mPnCA'],_0x4cfe9f);}}}}catch(_0x5ed981){$[_0x795b('119','6tDA')](_0x5ed981,_0x4db305);}finally{_0x53df8a['SXXeA'](_0x47bf77);}});});}function hitGroup(){var _0x2bc5ae={'LkNtj':function(_0x590acd){return _0x590acd();},'ejKNY':function(_0x3200d8,_0x428e63){return _0x3200d8!==_0x428e63;},'dqGCj':_0x795b('11a','86$4'),'WFWvy':function(_0x53feeb,_0x4de81a){return _0x53feeb===_0x4de81a;},'iTgZA':_0x795b('11b','mIct'),'FhGPn':_0x795b('11c','QA[h'),'QcBcU':function(_0x22e5a2,_0x9d4371){return _0x22e5a2(_0x9d4371);},'ASSaM':_0x795b('11d','sPCc'),'EOfPk':'开团成功','qctiX':function(_0x6b1fc0){return _0x6b1fc0();},'dMVMx':_0x795b('11e','Y2Up'),'dwLtb':function(_0x21038d,_0x451369,_0x1a2bdd){return _0x21038d(_0x451369,_0x1a2bdd);}};return new Promise(_0x292cdf=>{if('NHpgp'!==_0x2bc5ae[_0x795b('11f','!I)F')]){const _0x5a16af={'activeType':0x2};$[_0x795b('120','$2qP')](_0x2bc5ae[_0x795b('121','K8E@')](taskGetUrl,_0x795b('122','79OH'),_0x5a16af),async(_0x1626a5,_0x555979,_0x1d5694)=>{var _0x6cd202={'dTtkm':function(_0x4fc7b2){return _0x2bc5ae['LkNtj'](_0x4fc7b2);}};if(_0x2bc5ae[_0x795b('123','mIct')](_0x2bc5ae[_0x795b('124','i&S#')],_0x2bc5ae[_0x795b('125','ouCF')])){message+=_0x795b('126','ou6U')+JSON[_0x795b('127','yHA$')](_0x1d5694[_0x795b('fb','4Mbg')][_0x795b('128','*t[@')])+'\x0a}';console[_0x795b('129','!I)F')](_0x795b('12a','79OH')+JSON[_0x795b('12b',')diT')](_0x1d5694[_0x795b('12c','QA[h')][_0x795b('12d','PjhL')])+'\x0a\x0a');}else{try{if(_0x1626a5){if(_0x2bc5ae['WFWvy'](_0x2bc5ae[_0x795b('12e','79OH')],'GvWJo')){helpArr['push']({'shareCode':_0x1d5694[_0x795b('100','%^5P')][_0x795b('12f','gp6V')],'groupCodeID':_0x1d5694['data'][_0x795b('130','r0Mo')]});message+=_0x795b('131','azDN')+JSON[_0x795b('19','H&5z')](_0x1d5694['data']['shareCode'])+'\x0a}';message+='groupCode：'+JSON['stringify'](_0x1d5694[_0x795b('132','#r&O')][_0x795b('133','c[1Y')])+'\x0a}';console[_0x795b('4c','gp6V')](_0x795b('134','c[1Y')+JSON[_0x795b('46','t&[w')](_0x1d5694[_0x795b('135','ouCF')]['shareCode'])+_0x795b('136','%^5P')+JSON[_0x795b('137','nOrD')](_0x1d5694[_0x795b('138',']baF')][_0x795b('139',']baF')])+'\x0a\x0a');}else{console[_0x795b('56','%^5P')](''+JSON[_0x795b('116','$2qP')](_0x1626a5));console['log']($[_0x795b('13a','gJKP')]+_0x795b('13b','MJ2q'));}}else{if(_0x2bc5ae[_0x795b('13c','K8E@')](_0x2bc5ae['FhGPn'],'hEbkV')){_0x6cd202['dTtkm'](_0x292cdf);}else{console[_0x795b('129','!I)F')](''+JSON[_0x795b('13d',']baF')](_0x1d5694));if(_0x2bc5ae['QcBcU'](safeGet,_0x1d5694)){_0x1d5694=JSON['parse'](_0x1d5694);if(_0x2bc5ae[_0x795b('13e','MJ2q')](_0x1d5694[_0x795b('13f','6tDA')]['respCode'],_0x2bc5ae[_0x795b('140','ou6U')])){let {shareCode,groupCode}=_0x1d5694[_0x795b('141','V9Pq')][_0x795b('142','!I)F')];if(shareCode){helpArr[_0x795b('143','R^oV')]({'shareCode':shareCode,'groupCodeID':groupCode});console[_0x795b('ae','H&5z')](_0x2bc5ae[_0x795b('144','aMES')]);console[_0x795b('145','QA[h')]('\x0a京东账号'+$[_0x795b('70',')diT')]+'\x20'+($['nickName']||$['UserName'])+_0x795b('146','86$4')+shareCode+'\x0a');}else{if(_0x2bc5ae[_0x795b('147','@AVc')](_0x795b('148','H&5z'),_0x795b('149','yHA$'))){console[_0x795b('bd','LgTH')](_0x795b('14a','sPCc')+JSON[_0x795b('14b','ouCF')](_0x1d5694['data']));}else{$[_0x795b('14c','c[1Y')](e,_0x555979);}}}else{console[_0x795b('75','$2qP')](_0x795b('14d','gLH[')+JSON['stringify'](_0x1d5694['data']));}}}}}catch(_0x49a41f){$['logErr'](_0x49a41f,_0x555979);}finally{_0x2bc5ae['qctiX'](_0x292cdf);}}});}else{_0x292cdf();}});};_0xodY='jsjiami.com.v6';

function taskUrl(function_id, body) {
  return {
    url: `${JD_API_HOST}client.action?functionId=${function_id}&body=${encodeURIComponent(body)}&appid=ld&client=android&clientVersion=10.0.4`,
    headers: {
      "Accept": "*/*",
      "Accept-Encoding": "gzip, deflate, br",
      "Accept-Language": "zh-cn",
      "Connection": "keep-alive",
      "Content-Type": "application/x-www-form-urlencoded",
      "Host": "api.m.jd.com",
      "Cookie": cookie,
      "User-Agent": $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1"),
    }
  }
}


function taskGetUrl(function_id, body) {
  return {
    url: `${JD_API_HOST}client.action?functionId=${function_id}&body=${escape(JSON.stringify(body))}&appid=ld&clientVersion=9.2.0`,
    headers: {
      'Cookie': cookie,
      'Host': 'api.m.jd.com',
      'Accept': '*/*',
      'Connection': 'keep-alive',
      'User-Agent': $.isNode() ? (process.env.JD_USER_AGENT ? process.env.JD_USER_AGENT : (require('./USER_AGENTS').USER_AGENT)) : ($.getdata('JDUA') ? $.getdata('JDUA') : "jdapp;iPhone;9.4.4;14.3;network/4g;Mozilla/5.0 (iPhone; CPU iPhone OS 14_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1"),
      'Accept-Language': 'zh-Hans-CN;q=1,en-CN;q=0.9',
      'Accept-Encoding': 'gzip, deflate, br',
      'Content-Type': "application/x-www-form-urlencoded"
    }
  }
}



function jsonParse(str) {
  if (typeof str == "string") {
    try {
      return JSON.parse(str);
    } catch (e) {
      console.log(e);
      $.msg($.name, '', '请勿随意在BoxJs输入框修改内容\n建议通过脚本去获取cookie')
      return [];
    }
  }
}

// prettier-ignore
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) }