open_card/activity/gua_opencard145.js

56 lines
313 KiB
JavaScript
Raw Permalink Normal View History

2022-05-12 09:08:50 +08:00
/*
2022-05-12 09:10:32 +08:00
new Env('5.6~5.21 情暖五月 “惠”聚甜蜜')
2022-05-12 09:08:50 +08:00
5.12~5.20 臻爱陪伴 助力成长 [gua_opencard145.js]
新增开卡脚本 加密
一次性脚本
1.邀请一人10豆
2.开3组卡(12) 成功开1组 有机会获得20豆
3.关注10京豆
4.加购10京豆
(默认不加购 如需加购请设置环境变量[guaopencard_addSku145]"true"
5.抽奖 (默认不抽奖 如需抽奖请设置环境变量[guaopencard_draw145]"3"
填写要抽奖的次数 不足已自身次数为准
guaopencard_draw145="3"
填非数字会全都抽奖
第一个账号助力作者 其他依次助力CK1
第一个CK失效会退出脚本
默认脚本不执行
如需执行脚本请设置环境变量
guaopencard145="true"
每个账号之间延迟 100=延迟100秒 0=延迟0秒会使用每3个账号延迟60秒
guaopenwait_All 所有
guaopenwait145="0"
All变量适用
入口[ 臻爱陪伴 助力成长 (https://lzdz1-isv.isvjcloud.com/dingzhi/bookBaby/union/activity?activityId=dz6140806143bd8878376d7e98a1e7)]
请求太频繁会被黑ip
过10分钟再执行
2022-05-12 09:10:32 +08:00
cron:0
2022-05-12 09:08:50 +08:00
============Quantumultx===============
[task_local]
#臻爱陪伴 助力成长
30 3 12-20 5 * https://raw.githubusercontent.com/smiek2121/scripts/master/gua_opencard145.js, tag=臻爱陪伴 助力成长, enabled=true
*/
let guaopencard_addSku = 'false'
let guaopencard = 'true'
let guaopenwait = '1'
let guaopencard_draw = '0'
var _0xodS='jsjiami.com.v6',_0xodS_=['_0xodS'],_0x4dca=[_0xodS,'\x77\x34\x33\x43\x6a\x38\x4f\x6a\x64\x69\x59\x64\x77\x71\x7a\x44\x68\x57\x58\x44\x6b\x67\x3d\x3d','\x43\x38\x4b\x58\x52\x46\x4c\x43\x68\x54\x58\x44\x73\x4d\x4f\x34\x77\x34\x42\x49','\x62\x55\x46\x64\x44\x6a\x76\x44\x75\x4d\x4f\x58\x77\x36\x55\x3d','\x65\x45\x74\x46\x46\x6a\x33\x44\x6f\x63\x4f\x6a\x77\x37\x37\x44\x70\x45\x78\x33\x77\x6f\x6e\x44\x67\x4d\x4f\x43\x58\x67\x3d\x3d','\x55\x4d\x4f\x66\x46\x73\x4f\x4a\x43\x73\x4b\x37\x77\x35\x35\x33\x4f\x63\x4f\x56','\x77\x37\x55\x2b\x77\x6f\x6f\x72\x59\x73\x4f\x78\x77\x37\x37\x43\x69\x77\x3d\x3d','\x77\x36\x76\x44\x6d\x73\x4f\x4d\x77\x35\x76\x43\x6d\x51\x3d\x3d','\x47\x33\x34\x77\x49\x77\x3d\x3d','\x77\x70\x6e\x43\x73\x6d\x48\x44\x69\x77\x4d\x3d','\x56\x4d\x4b\x68\x77\x71\x2f\x44\x6c\x30\x34\x3d','\x45\x38\x4b\x4b\x77\x34\x64\x4f\x50\x41\x3d\x3d','\x63\x48\x44\x44\x6a\x73\x4f\x71\x77\x35\x56\x7a\x52\x43\x4e\x54','\x5a\x79\x37\x44\x75\x63\x4b\x48\x62\x51\x3d\x3d','\x35\x71\x36\x69\x77\x71\x41\x4b\x35\x62\x53\x75\x36\x4b\x47\x45\x36\x5a\x6d\x6e\x35\x59\x6d\x48\x37\x37\x2b\x6d\x36\x4b\x36\x61\x36\x4c\x36\x31\x64\x63\x4f\x4d\x35\x59\x6d\x55\x36\x5a\x4f\x62\x35\x5a\x4b\x32\x35\x59\x61\x2f\x35\x6f\x75\x6f\x36\x4b\x47\x6b\x36\x49\x57\x62\x35\x70\x32\x33\x77\x34\x59\x3d','\x56\x73\x4b\x46\x77\x71\x33\x44\x69\x63\x4f\x4b','\x35\x72\x65\x76\x35\x59\x6d\x5a\x35\x62\x57\x44\x35\x37\x71\x56\x35\x70\x79\x4b','\x59\x52\x44\x44\x68\x4d\x4b\x78\x53\x67\x44\x44\x67\x38\x4b\x79\x77\x34\x6e\x43\x75\x67\x63\x6f\x50\x53\x4c\x44\x70\x38\x4b\x55\x77\x6f\x58\x44\x6b\x63\x4f\x78\x4d\x63\x4b\x57\x77\x37\x55\x3d','\x35\x62\x65\x74\x35\x61\x32\x76\x35\x6f\x69\x69\x35\x59\x6d\x49\x36\x4c\x61\x37','\x4d\x73\x4f\x56\x77\x34\x4d\x38\x77\x37\x51\x3d','\x4d\x63\x4b\x78\x77\x36\x68\x41\x43\x77\x3d\x3d','\x52\x73\x4b\x73\x52\x4d\x4b\x47\x77\x37\x38\x3d','\x54\x63\x4f\x4d\x59\x4d\x4b\x68\x54\x67\x3d\x3d','\x59\x4d\x4f\x32\x4e\x38\x4b\x6c\x77\x34\x77\x3d','\x50\x33\x7a\x44\x71\x52\x33\x44\x6d\x41\x3d\x3d','\x66\x73\x4b\x70\x41\x44\x51\x68','\x77\x70\x55\x4b\x77\x37\x33\x43\x6d\x73\x4b\x66','\x5a\x4d\x4f\x42\x51\x6b\x4c\x43\x73\x41\x3d\x3d','\x62\x63\x4b\x42\x46\x73\x4f\x4b\x4a\x41\x3d\x3d','\x54\x63\x4f\x65\x46\x46\x5a\x73\x55\x63\x4f\x41\x77\x36\x62\x43\x67\x73\x4f\x63\x77\x71\x5a\x72\x61\x31\x48\x44\x6b\x6b\x72\x44\x67\x63\x4b\x4c\x77\x6f\x68\x75\x77\x35\x35\x63\x77\x6f\x50\x43\x6f\x73\x4b\x4c\x77\x35\x42\x50\x58\x63\x4b\x70\x4c\x56\x2f\x43\x6b\x58\x54\x43\x72\x63\x4b\x52\x77\x6f\x70\x2f\x44\x52\x72\x44\x76\x4d\x4b\x31\x57\x31\x68\x58\x54\x4d\x4f\x45\x77\x36\x30\x30\x77\x36\x66\x43\x6a\x56\x76\x43\x6a\x6c\x4c\x43\x6f\x41\x72\x44\x67\x38\x4b\x56\x4e\x63\x4b\x6b\x77\x35\x52\x61\x4f\x41\x74\x39\x77\x6f\x30\x71\x63\x73\x4f\x58\x77\x70\x67\x61\x66\x63\x4b\x36\x77\x34\x37\x43\x74\x6e\x34\x3d','\x61\x73\x4b\x36\x41\x4d\x4f\x4c\x49\x57\x58\x44\x69\x4d\x4b\x68\x45\x6b\x55\x3d','\x77\x36\x51\x66\x77\x35\x73\x64\x77\x70\x66\x44\x71\x56\x2f\x43\x74\x41\x51\x3d','\x77\x37\x30\x30\x77\x35\x67\x3d','\x57\x73\x4f\x42\x4b\x63\x4f\x56\x49\x77\x3d\x3d','\x64\x63\x4b\x6c\x77\x6f\x72\x44\x70\x63\x4f\x79','\x62\x73\x4f\x73\x4e\x38\x4b\x57\x77\x37\x30\x3d','\x52\x73\x4f\x44\x41\x38\x4f\x55\x4b\x77\x3d\x3d','\x77\x6f\x58\x43\x67\x54\x66\x43\x69\x63\x4b\x46','\x77\x35\x37\x44\x73\x38\x4f\x74\x77\x37\x76\x43\x6c\x67\x3d\x3d','\x43\x69\x72\x43\x75\x38\x4f\x75\x4e\x67\x3d\x3d','\x77\x72\x37\x43\x6c\x45\x50\x44\x6c\x58\x41\x3d','\x77\x36\x6b\x6c\x77\x34\x31\x39\x77\x35\x4c\x44\x6b\x55\x46\x57\x77\x70\x52\x66','\x54\x30\x7a\x44\x6c\x4d\x4b\x58\x5a\x51\x3d\x3d','\x77\x37\x68\x4a\x77\x37\x77\x75\x77\x72\x4d\x3d','\x4a\x79\x33\x43\x68\x73\x4f\x71\x41\x51\x3d\x3d','\x77\x36\x48\x43\x73\x38\x4f\x68\x54\x79\x41\x3d','\x53\x63\x4b\x55\x77\x6f\x4c\x44\x6c\x73\x4f\x56','\x66\x38\x4b\x32\x4a\x38\x4f\x57\x4a\x51\x3d\x3d','\x54\x63\x4f\x70\x59\x46\x41\x3d','\x66\x77\x6c\x51\x53\x42\x77\x62\x49\x4d\x4b\x63\x49\x31\x76\x44\x71\x75\x69\x75\x6f\x4f\x61\x77\x6e\x2b\x57\x6e\x74\x2b\x69\x31\x69\x75\x2b\x2f\x6e\x75\x69\x75\x67\x2b\x61\x6a\x6e\x4f\x61\x65\x70\x65\x65\x38\x71\x2b\x69\x31\x76\x65\x6d
(function(_0xc3eea,_0x4921ba){const a0_0x599c09={_0x3f407c:0x142,_0x3af906:0x1b1,_0x1e1a90:'uG%m',_0x243924:0x171,_0xa938ce:0x21e,_0x11b316:0x341,_0x19ad59:0x389,_0x3739a8:0x3d5,_0x5481a3:0x21b,_0x439362:0x1bf,_0x1dca81:0x1ed,_0xe8a99d:0x232,_0x119837:0x1de,_0x15b5b8:')TH@',_0x4b9f7e:0x197,_0x3868d8:0x210,_0x18213c:0xc2,_0x57ada8:0x95,_0x588037:0x3da,_0x429a94:0x37b,_0x13b5bb:0xe1,_0x3e100c:0x130,_0x5c81be:0x15e,_0x3b1da8:0x135,_0x9fc23:0x35b,_0x31b331:0x37b,_0x23f042:'*@mg'},a0_0x20e753={_0x735a3a:0x127},a0_0x204770={_0x2f9b52:0x1ad},a0_0x1b87d4={_0x2f0689:0x8};function _0x28e55d(_0x4c8719,_0x3e1b13,_0x58fedb,_0x4513c0){return a0_0x4963(_0x4c8719-a0_0x1b87d4._0x2f0689,_0x3e1b13)}function _0x20655f(_0xfdf8dc,_0x33abb3,_0x46166c,_0x5db135){return a0_0xa7c0(_0x46166c- -0x6a,_0xfdf8dc)}function _0x33c8b7(_0x1ffc83,_0x44ac3c,_0x54a650,_0x4fa7f5){return a0_0x4963(_0x44ac3c-a0_0x204770._0x2f9b52,_0x4fa7f5)}function _0x11dea6(_0x906420,_0x155752,_0x166472,_0x5c6368){return a0_0xa7c0(_0x5c6368- -a0_0x20e753._0x735a3a,_0x906420)}const _0x19c240=_0xc3eea();while([]){try{const _0x52bc73=parseInt(_0x20655f(0x1b7,a0_0x599c09._0x3f407c,0x185,0x1d6))/(-0x1a9*0x11+-0xcaf*0x3+0x4247)+-parseInt(_0x28e55d(a0_0x599c09._0x3af906,a0_0x599c09._0x1e1a90,a0_0x599c09._0x243924,a0_0x599c09._0xa938ce))/(-0x1*-0x71f+-0x3*0x3ab+0x3e4)*(parseInt(_0x33c8b7(a0_0x599c09._0x11b316,a0_0x599c09._0x19ad59,a0_0x599c09._0x3739a8,'o]%^'))/(-0x8c4+0x2*-0xeac+0x261f))+-parseInt(_0x28e55d(a0_0x599c09._0x5481a3,'Z6fg',0x1b3,a0_0x599c09._0x439362))/(-0x15b*-0x11+-0x1a8d+0x16*0x29)+-parseInt(_0x20655f(0x1cf,0x241,a0_0x599c09._0x1dca81,a0_0x599c09._0xe8a99d))/(-0x1253+0x23*-0xf1+0x334b)*(-parseInt(_0x28e55d(a0_0x599c09._0x119837,a0_0x599c09._0x15b5b8,a0_0x599c09._0x4b9f7e,a0_0x599c09._0x3868d8))/(-0x4b0+0x14f9+-0x1043))+parseInt(_0x11dea6(a0_0x599c09._0x18213c,a0_0x599c09._0x57ada8,0x97,0x94))/(0x2293+0x1*0x1c99+0x131*-0x35)+-parseInt(_0x33c8b7(0x40c,a0_0x599c09._0x588037,a0_0x599c09._0x429a94,'5xH@'))/(0x25f0+-0x3c3*0x8+-0x7d0)*(-parseInt(_0x11dea6(a0_0x599c09._0x13b5bb,a0_0x599c09._0x3e100c,a0_0x599c09._0x5c81be,a0_0x599c09._0x3b1da8))/(0x1190+0x1*0x1de+-0x1*0x1365))+parseInt(_0x33c8b7(0x35f,a0_0x599c09._0x9fc23,a0_0x599c09._0x31b331,a0_0x599c09._0x23f042))/(0x2*-0xc6d+0x57a+0x2*0x9b5);if(_0x52bc73===_0x4921ba)break;else _0x19c240['push'](_0x19c240['shift']())}catch(_0x3082cf){_0x19c240['push'](_0x19c240['shift']())}}}(a0_0x43c3,0x29*0xdab+0x1*-0xfa452+0x155910));function a0_0x4963(_0x4b84d4,_0x24bad4){const _0xb850c7=a0_0x43c3();return a0_0x4963=function(_0x150851,_0x27bd91){_0x150851=_0x150851-(0x2505+-0x1*0x15c2+-0x13f*0xb);let _0x446ce=_0xb850c7[_0x150851];if(a0_0x4963['FYnefw']===undefined){var _0x3d9b1c=function(_0x2434fa){const _0x178f2c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x260b62='',_0x4c9a6c='',_0xb0bb4e=_0x260b62+_0x3d9b1c;for(let _0x13449c=0x1*0x14d7+0x19e7*-0x1+0x8*0xa2,_0x409e76,_0x3e62c0,_0x13a8e4=0x1*0x1f3d+-0x739+0x1804*-0x1;_0x3e62c0=_0x2434fa['charAt'](_0x13a8e4++);~_0x3e62c0&&(_0x409e76=_0x13449c%(0x14ab+0x23e2+-0x1*0x3889)?_0x409e76*(-0xfe+0x11*0xd6+-0xcf8)+_0x3e62c0:_0x3e62c0,_0x13449c++%(-0x6b*-0x1e+-0x141f+0x799))?_0x260b62+=_0xb0bb4e['charCodeAt'](_0x13a8e4+(-0x531+-0x133*-0x10+0xdf5*-0x1))-(0x1f6e+0x369*0x6+-0x19ed*0x2)!==0x3e1*0x1+-0x13*-0x123+-0xcbd*0x2?String['fromCharCode'](0x16b7+-0x1f85*-0x1+-0x289*0x15&_0x409e76>>(-(0xc31+0xab8+-0x16e7)*_0x13449c&0x9a0+0x1*-0x269+-0x7*0x107)):_0x13449c:-0xc0b+0x20b*-0x9+0x1e6e){_0x3e62c0=_0x178f2c['indexOf'](_0x3e62c0)}for(let _0x23ddc7=-0x2660+-0xabf+0x311f,_0xe044f0=_0x260b62['length'];_0x23ddc7<_0xe044f0;_0x23ddc7++){_0x4c9a6c+='%'+('00'+_0x260b62['charCodeAt'](_0x23ddc7)['toString'](-0x4*0x757+-0xf5e+-0x4e*-0x93))['slice'](-(0xdf*0x8+0x2e+0x1*-0x724))}return decodeURIComponent(_0x4c9a6c)};const _0x102506=function(_0x389ff4,_0x4ccb1b){let _0x5c2fb1=[],_0x56c9e9=-0x25*0xf4+-0x1567+-0x59*-0xa3,_0x1e03b9,_0x1dae46='';_0x389ff4=_0x3d9b1c(_0x389ff4);let _0x27cc3a;for(_0x27cc3a=0x41b+0xb9f+-0xfba;_0x27cc3a<-0x6bd*-0x3+-0x1379+0x1*0x42;_0x27cc3a++){_0x5c2fb1[_0x27cc3
function CryptoScripts() {
// prettier-ignore
!function(t,e){'object'==typeof exports?module.exports=exports=e():'function'==typeof define&&define.amd?define([],e):t.CryptoJS=e()}(this,function(){var t,e,r,i,n,o,s,c,a,h,l,f,d,u,p,_,v,y,g,B,w,k,S,m,x,b,H,z,A,C,D,E,R,M,F,P,W,O,I,U,K,X,L,j,N,T,q,Z,V,G,J,$,Q,Y,tt,et,rt,it,nt,ot,st,ct,at,ht,lt,ft,dt,ut,pt,_t,vt,yt,gt,Bt,wt,kt,St,mt=mt||function(t){var e;if('undefined'!=typeof window&&window.crypto&&(e=window.crypto),!e&&'undefined'!=typeof window&&window.msCrypto&&(e=window.msCrypto),!e&&'undefined'!=typeof global&&global.crypto&&(e=global.crypto),!e&&'function'==typeof require)try{e=require('crypto')}catch(e){}function r(){if(e){if('function'==typeof e.getRandomValues)try{return e.getRandomValues(new Uint32Array(1))[0]}catch(t){}if('function'==typeof e.randomBytes)try{return e.randomBytes(4).readInt32LE()}catch(t){}}throw new Error('Native crypto module could not be used to get secure random number.')}var i=Object.create||function(t){var e;return n.prototype=t,e=new n,n.prototype=null,e};function n(){}var o={},s=o.lib={},c=s.Base={extend:function(t){var e=i(this);return t&&e.mixIn(t),e.hasOwnProperty('init')&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),(e.init.prototype=e).$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty('toString')&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},a=s.WordArray=c.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var e=this.words,r=t.words,i=this.sigBytes,n=t.sigBytes;if(this.clamp(),i%4)for(var o=0;o<n;o++){var s=r[o>>>2]>>>24-o%4*8&255;e[i+o>>>2]|=s<<24-(i+o)%4*8}else for(o=0;o<n;o+=4)e[i+o>>>2]=r[o>>>2];return this.sigBytes+=n,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],i=0;i<t;i+=4)e.push(r());return new a.init(e,t)}}),h=o.enc={},l=h.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=[],n=0;n<r;n++){var o=e[n>>>2]>>>24-n%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join('')},parse:function(t){for(var e=t.length,r=[],i=0;i<e;i+=2)r[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new a.init(r,e/2)}},f=h.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=[],n=0;n<r;n++){var o=e[n>>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(o))}return i.join('')},parse:function(t){for(var e=t.length,r=[],i=0;i<e;i++)r[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new a.init(r,e)}},d=h.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(t){throw new Error('Malformed UTF-8 data')}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},u=s.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(t){'string'==typeof t&&(t=d.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r,i=this._data,n=i.words,o=i.sigBytes,s=this.blockSize,c=o/(4*s),h=(c=e?t.ceil(c):t.max((0|c)-this._minBufferSize,0))*s,l=t.min(4*h,o);if(h){for(var f=0;f<h;f+=s)this._doProcessBlock(n,f);r=n.splice(0,h),i.sigBytes-=l}return new a.init(r,l)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),p=(s.Hasher=u.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){u.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new p.HMAC.init(t,r).finalize(e)}}}),o.algo={});return o}(Math);function xt(t,e,r){return t^e^r}
}
// 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'])