File: //opt/lck-backend/gemini-client.js
const _0x5ed186=_0x1ea8;(function(_0x1ae202,_0x5b0adb){const _0x2d4261=_0x1ea8,_0x2467fe=_0x1ae202();while(!![]){try{const _0x1b3b61=parseInt(_0x2d4261(0x1dc))/(0xbb*0xb+0x1be*0x10+-0xc*0x2fe)*(-parseInt(_0x2d4261(0x240))/(0x20de+-0x4d*-0x14+-0x8*0x4dc))+-parseInt(_0x2d4261(0x1d6))/(0xc7c+-0x1333*-0x1+-0x1fac)+-parseInt(_0x2d4261(0x184))/(-0xfab+-0x20c7+0x183b*0x2)+-parseInt(_0x2d4261(0x181))/(-0x1b0d+-0x25a5+0x1*0x40b7)*(parseInt(_0x2d4261(0x20d))/(-0x1b08+-0x174c+0x2*0x192d))+parseInt(_0x2d4261(0x244))/(0x1*-0x1f3d+0x18fe+0x92*0xb)*(parseInt(_0x2d4261(0x212))/(-0x2f*0x4b+-0x118*0x6+-0x191*-0xd))+parseInt(_0x2d4261(0x245))/(-0x13*-0x133+0x5*-0x52a+0x3*0x106)*(parseInt(_0x2d4261(0x1c5))/(0xbee+-0x66*-0x14+-0x13dc))+parseInt(_0x2d4261(0x1da))/(-0x92d+0x922*0x3+-0x122e)*(parseInt(_0x2d4261(0x1d0))/(0x2393+-0x5a6+-0x1de1*0x1));if(_0x1b3b61===_0x5b0adb)break;else _0x2467fe['push'](_0x2467fe['shift']());}catch(_0x22065c){_0x2467fe['push'](_0x2467fe['shift']());}}}(_0x5802,0x1*0x1154b+-0xcc232+0x18f000));function _0x1ea8(_0xfeebe0,_0x3ae6f5){_0xfeebe0=_0xfeebe0-(-0x15*0x164+0x975*0x1+0x1529);const _0x55c7f3=_0x5802();let _0x14c384=_0x55c7f3[_0xfeebe0];return _0x14c384;}function _0x5802(){const _0x598246=['extract\x20SN','ata/batche','userAgent','unspecifie','fari/537.3','upscaleIma','zlEmi','https://ge','listChats','EFjiW','ute','ded;charse','ll,null,[4','getFullSiz','esponse\x20da','ENDPOINTS','ypCaf','WrpsV','DurbU','_parseUpsc','AUDIO','listGems','30hOxZUL','log','ent/0','mage_gener','generateCo','URL:\x20','AXMhW','lxLuo','eGeneratio','_buildHead','iTGaf','15444rHnyZu','batchExec','parse','length','YlsUC','rm-urlenco','1764060jlQqCR','dio','\x20Chrome/13','mini.googl','16819IplIPz','init','149UHFhdQ','.googleapi','get','content','entries','string','_uploadFil','inlineData','speechConf','csgeP','lM0e\x20token','multiSpeak','PjtKS','video/mp4','vsFdK','rcid','svqPY','oZQEX','axios','deleteGem','fOZAE','identifier','nResponse','ream','erVoiceCon','Ryszh','generateIm','push','STRING','generic','Response','nxNgY','hNvQHb','headers','proxyUrl','oMH3Zd','kCZUJ','struction:','ers','deleteChat','[Gemini]\x20R','image/jpeg','GTMwU','feeds/mcud','wsmUn','Kit/537.36',')]}\x27','1.0.0.0\x20Sa','payload','19914RIAExv','isArray','&at=','text','e.com/app','240GaXWVN','TTUHb','fig','klwSh','parts','FonEp','hrdfV','age','ntent','UPhQB','Cnski',')\x20AppleWeb','Batch\x20exec','ad\x20mode:\x20','rdChatUi/d','TEXT','existsSync','ruction','post','ent]\x20Addin','response','forEach','tent.com/i','split','[GeminiCli','UEpjr','LTbnn','CNgdBe','DhBuj','image','_parseGems','UXcSJb','applicatio','abtwu','ution\x20fail','ation_cont','path','bNsXL','ARRAY','json','stringify','candidates','pHjNP','DYXaz','createGem','n/octet-st','740tCGOfZ','error','Win64;\x20x64','oResponse','85981RGgjxM','4886793IXaZFK','prompt','xecute','4Encoded','OBJECT','_parseAudi','XbhbL','hpVAh','Audio\x20pars','trim','_parseImag','ed\x20with\x20st','MaZiqc','s.com/uplo','test','mmbNI','object','_parseChat','status','q4uTj','ng\x20Gemini\x20','prediction','n/x-www-fo','aleRespons','qFWNl','GRPC','esponse\x20st','af.httprm','textBasedV','accessToke','c8o8Fe','ZQZGs','\x20NT\x2010.0;\x20','0\x20(Windows','[1,null,nu','e\x20error:','tdICe','rpcid','dTYsj','custom','WAsLT','bCjQw','cIWAj','updateGem','yrk2a4khkz','_extractDa','Kore','speakerVoi','\x20parts\x20cou','1935UBfUQy','ceConfigs','ideos','4673984SPVgcd','WlLYX','ent]\x20Paylo','qWymEb','http://goo','YhnLV','customjson','ent]\x20Final','bpfVl','basename','generation','XSdWQ','VbmGf','uZXBJ','includes','data','ntent-push','substring','f.req=','Mozilla/5.','Config','AxUJx','hsmxY','Initializi','JMOTo','bytesBase6','Client\x20(No','vyTer','yZHVv','ll,null,nu','te\x20error:','system','atus:','ta:','jOxTa','MTDjS','_batchExec','systemInst','g\x20systemIn','MoQIh','[0]','ECPIm','startsWith'];_0x5802=function(){return _0x598246;};return _0x5802();}const axios=require(_0x5ed186(0x1ee)),crypto=require('crypto'),path=require(_0x5ed186(0x236)),fs=require('fs');class GeminiClient{static [_0x5ed186(0x25e)]={'listChats':_0x5ed186(0x251),'readChat':_0x5ed186(0x1fc),'listGems':_0x5ed186(0x22d),'createGem':_0x5ed186(0x1ff),'updateGem':'kHv0Vd','deleteGem':_0x5ed186(0x231),'generateImage':_0x5ed186(0x258),'upscaleImage':_0x5ed186(0x16e),'deleteChat':'GzXR5e','deleteChatAlt':_0x5ed186(0x187),'upload':'https://co'+_0x5ed186(0x194)+_0x5ed186(0x1dd)+_0x5ed186(0x252)+'ad'};static [_0x5ed186(0x1be)]={'init':_0x5ed186(0x1b6)+_0x5ed186(0x1d9)+_0x5ed186(0x211),'batchExec':'https://ge'+_0x5ed186(0x1d9)+'e.com/_/Ba'+_0x5ed186(0x220)+_0x5ed186(0x1b0)+_0x5ed186(0x247)};constructor(_0x276f4b={}){const _0x555747=_0x5ed186,_0x273848={'EFjiW':_0x555747(0x197)+_0x555747(0x171)+_0x555747(0x170)+_0x555747(0x242)+_0x555747(0x21d)+_0x555747(0x209)+'\x20(KHTML,\x20l'+'ike\x20Gecko)'+_0x555747(0x1d8)+_0x555747(0x20b)+_0x555747(0x1b3)+'6'};this[_0x555747(0x16d)+'n']=_0x276f4b[_0x555747(0x16d)+'n']||null,this[_0x555747(0x1fe)]=_0x276f4b[_0x555747(0x1fe)]||null,this[_0x555747(0x1b1)]=_0x273848[_0x555747(0x1b8)],this[_0x555747(0x1fd)]=_0x276f4b[_0x555747(0x1fd)]||{};}[_0x5ed186(0x1ce)+_0x5ed186(0x202)](_0x422e7b={}){const _0x1374b6=_0x5ed186,_0x406eb5={'GLBst':_0x1374b6(0x232)+_0x1374b6(0x25b)+_0x1374b6(0x1d5)+_0x1374b6(0x1ba)+'t=utf-8'};return{'User-Agent':this[_0x1374b6(0x1b1)],'Content-Type':_0x406eb5['GLBst'],'X-Same-Domain':'1',...this[_0x1374b6(0x1fd)],..._0x422e7b};}async[_0x5ed186(0x1a8)+_0x5ed186(0x1b9)](_0x3ca5e6,_0x14ef54={}){const _0x33d042=_0x5ed186,_0x446616={'mmbNI':function(_0x16df47,_0x373a26){return _0x16df47(_0x373a26);},'lTvRM':function(_0x1a4800,_0x132cf6){return _0x1a4800!==_0x132cf6;},'Ryszh':'[Gemini]\x20_'+'batchExecu'+_0x33d042(0x1a2),'kCZUJ':_0x33d042(0x204)+_0x33d042(0x16a)+_0x33d042(0x1a4),'nxNgY':_0x33d042(0x204)+_0x33d042(0x1bd)+_0x33d042(0x1a5)},_0x274ae8=_0x3ca5e6['map'](_0x14ab0d=>[_0x14ab0d[_0x33d042(0x175)],_0x14ab0d[_0x33d042(0x20c)],null,_0x14ab0d[_0x33d042(0x1f1)]||_0x33d042(0x1f9)]),_0x4b4428=JSON[_0x33d042(0x23a)]([_0x274ae8]),_0x2b15f2=_0x33d042(0x196)+_0x446616[_0x33d042(0x254)](encodeURIComponent,_0x4b4428)+_0x33d042(0x20f)+_0x446616[_0x33d042(0x254)](encodeURIComponent,this[_0x33d042(0x16d)+'n']||''),_0x2c427f=this['proxyUrl']||GeminiClient[_0x33d042(0x1be)][_0x33d042(0x1d1)];try{const _0x15fc05=await axios[_0x33d042(0x224)](_0x2c427f,_0x2b15f2,{'headers':this[_0x33d042(0x1ce)+_0x33d042(0x202)](_0x14ef54)});if(_0x446616['lTvRM'](_0x15fc05[_0x33d042(0x257)],0x1b0e+-0x7f3+0x1253*-0x1))throw new Error(_0x33d042(0x21e)+_0x33d042(0x234)+_0x33d042(0x250)+'atus\x20'+_0x15fc05['status']);return _0x15fc05['data'];}catch(_0x23d962){console[_0x33d042(0x241)](_0x446616[_0x33d042(0x1f5)],_0x23d962['message']);_0x23d962[_0x33d042(0x226)]&&(console[_0x33d042(0x241)](_0x446616[_0x33d042(0x200)],_0x23d962['response']['status']),console[_0x33d042(0x241)](_0x446616[_0x33d042(0x1fb)],_0x23d962[_0x33d042(0x226)][_0x33d042(0x193)]['substring'](-0x1820*0x1+0x434+0x1e*0xaa,-0x7*-0x34f+-0x59*0x42+0x59*0x5)));throw _0x23d962;}}async[_0x5ed186(0x1db)]({timeout:timeout=-0x7bb03+-0x1*-0x37bb5+0x8d32e,autoClose:autoClose=![],closeDelay:closeDelay=0x6f9de+0x1*-0x74719+0x4e11b,autoRefresh:autoRefresh=!![],refreshInterval:refreshInterval=-0x1c21+0xd8d+0x10b0,verbose:verbose=!![]}={}){const _0x4477f4=_0x5ed186,_0xbe8a31={'UPhQB':_0x4477f4(0x19b)+_0x4477f4(0x259)+_0x4477f4(0x19e)+'de.js)...','UEpjr':'Failed\x20to\x20'+_0x4477f4(0x1af)+_0x4477f4(0x1e6)+'.'};if(verbose)console['log'](_0xbe8a31[_0x4477f4(0x21b)]);if(!this[_0x4477f4(0x16d)+'n']){const _0x2ba9e7=await axios[_0x4477f4(0x1de)](GeminiClient['ENDPOINTS'][_0x4477f4(0x1db)],{'headers':this['_buildHead'+_0x4477f4(0x202)]()}),_0x51b386=_0x2ba9e7[_0x4477f4(0x193)]['match'](/"SNlM0e":"([^"]+)"/);if(_0x51b386&&_0x51b386[-0x4*-0x647+0x1*-0x1c59+0x33e])this[_0x4477f4(0x16d)+'n']=_0x51b386[0x754+-0xa*-0xd5+-0xfa5];else throw new Error(_0xbe8a31[_0x4477f4(0x22b)]);}return!![];}async['fetchGems']({includeHidden:includeHidden=![],customHeaders:customHeaders={}}={}){const _0x25bf28=_0x5ed186,_0x332d7f={'HxOLc':_0x25bf28(0x177)},_0x5d5e62=[{'rpcid':GeminiClient['GRPC'][_0x25bf28(0x1c4)],'payload':JSON[_0x25bf28(0x23a)]([includeHidden?0xac4+-0x241*0x2+-0x63e:0x9b4+-0x50*-0x10+-0xeb1*0x1]),'identifier':'system'},{'rpcid':GeminiClient[_0x25bf28(0x25e)]['listGems'],'payload':JSON[_0x25bf28(0x23a)]([0x3*-0x565+0x696+0x99b]),'identifier':_0x332d7f['HxOLc']}],_0x7aade=await this[_0x25bf28(0x1a8)+'ute'](_0x5d5e62,customHeaders);return this['_parseGems'+'Response'](_0x7aade);}async[_0x5ed186(0x23e)]({name:_0x51c2de,prompt:_0xbc3cd,description:description='',customHeaders:customHeaders={}}){const _0x6a2b2c=_0x5ed186,_0x52cfdc=JSON[_0x6a2b2c(0x23a)]([null,_0x51c2de,description,_0xbc3cd,null,null,null,null,null,null,null,null,null,null,[]]);return await this['_batchExec'+_0x6a2b2c(0x1b9)]([{'rpcid':GeminiClient[_0x6a2b2c(0x25e)][_0x6a2b2c(0x23e)],'payload':_0x52cfdc}],customHeaders);}async[_0x5ed186(0x17b)]({id:_0x3ec95a,name:_0xff258e,prompt:_0x909d55,description:description='',customHeaders:customHeaders={}}){const _0x340994=_0x5ed186,_0x1e0e59=JSON['stringify']([_0x3ec95a,_0xff258e,description,_0x909d55,null,null,null,null,null,null,null,null,null,null,[]]);return await this[_0x340994(0x1a8)+_0x340994(0x1b9)]([{'rpcid':GeminiClient[_0x340994(0x25e)][_0x340994(0x17b)],'payload':_0x1e0e59}],customHeaders);}async[_0x5ed186(0x1ef)](_0x54fb64,{customHeaders:customHeaders={}}={}){const _0xd0c05c=_0x5ed186,_0x2eb059=JSON[_0xd0c05c(0x23a)]([_0x54fb64]);return await this[_0xd0c05c(0x1a8)+_0xd0c05c(0x1b9)]([{'rpcid':GeminiClient[_0xd0c05c(0x25e)]['deleteGem'],'payload':_0x2eb059}],customHeaders);}async[_0x5ed186(0x1b7)]({count:count=0x2612+0xf*-0x92+-0x1d52,customHeaders:customHeaders={}}={}){const _0x534a15=_0x5ed186,_0x4252d2=JSON['stringify']([null,count]),_0x3fbeea=await this[_0x534a15(0x1a8)+_0x534a15(0x1b9)]([{'rpcid':GeminiClient[_0x534a15(0x25e)][_0x534a15(0x1b7)],'payload':_0x4252d2}],customHeaders);return this[_0x534a15(0x17d)+'ta'](_0x3fbeea);}async['deleteChat'](_0x1c2956,{customHeaders:customHeaders={}}={}){const _0x41589e=_0x5ed186,_0x226d52=JSON[_0x41589e(0x23a)]([_0x1c2956,0xaec+-0x1*-0x36f+-0xe5a]);return await this[_0x41589e(0x1a8)+_0x41589e(0x1b9)]([{'rpcid':GeminiClient[_0x41589e(0x25e)][_0x41589e(0x203)],'payload':_0x226d52}],customHeaders);}async[_0x5ed186(0x1c9)+_0x5ed186(0x21a)](_0x1d3aa7,{files:files=[],model:model=_0x5ed186(0x1b2)+'d',gem:gem=null,chat:chat=null,temporary:temporary=![],customHeaders:customHeaders={}}={}){const _0x321556=_0x5ed186,_0x43de11={'contents':[{'parts':[{'text':_0x1d3aa7}]}],'generationConfig':{'responseModalities':['TEXT']}},_0xb6107f=JSON[_0x321556(0x23a)]([null,JSON['stringify'](_0x43de11)]),_0x4304a6=await this[_0x321556(0x1a8)+_0x321556(0x1b9)]([{'rpcid':GeminiClient[_0x321556(0x25e)][_0x321556(0x1f6)+'age'],'payload':_0xb6107f}],customHeaders);return this[_0x321556(0x256)+_0x321556(0x1fa)](_0x4304a6);}async[_0x5ed186(0x1f6)+_0x5ed186(0x219)]({images:images=[],systemPrompt:systemPrompt='',prompt:prompt='',aspectRatio:aspectRatio='',outputFormat:outputFormat=_0x5ed186(0x22f),customHeaders:customHeaders={}}={}){const _0x38bb25=_0x5ed186,_0x36adc6={'DhBuj':_0x38bb25(0x205),'VbmGf':function(_0x2344ec,_0x17eb4f){return _0x2344ec>_0x17eb4f;},'MsyJh':function(_0x3a875d,_0x54468b){return _0x3a875d===_0x54468b;},'wsmUn':function(_0x492026,_0x4276b0){return _0x492026===_0x4276b0;},'lxLuo':_0x38bb25(0x239),'qFWNl':_0x38bb25(0x238),'WrpsV':_0x38bb25(0x1f8),'abtwu':'title','jOxTa':function(_0x4b7df9,_0x4fbe70){return _0x4b7df9===_0x4fbe70;},'CWiEs':_0x38bb25(0x18a),'XbhbL':'TEXT','XlkMH':'IMAGE','dTYsj':_0x38bb25(0x1ac),'hrdfV':'[1,null,nu'+'ll,null,nu'+'ll,null,nu'+_0x38bb25(0x1bb)+']]','cIWAj':function(_0xe0f82b,_0x4de805){return _0xe0f82b===_0x4de805;},'FonEp':_0x38bb25(0x210)},_0x549e5a=[{'text':prompt[_0x38bb25(0x24e)]()}];images&&Array[_0x38bb25(0x20e)](images)&&_0x36adc6[_0x38bb25(0x190)](images['length'],-0x39*-0xa+-0x2f1+0xb7*0x1)&&images[_0x38bb25(0x227)](_0x75af5f=>{const _0x1b4576=_0x38bb25;_0x549e5a[_0x1b4576(0x1f7)]({'inlineData':{'mimeType':_0x36adc6[_0x1b4576(0x22e)],'data':_0x75af5f}});});const _0x523fc7={'contents':[{'parts':_0x549e5a}]};systemPrompt&&systemPrompt[_0x38bb25(0x24e)]()&&(console['log'](_0x38bb25(0x22a)+_0x38bb25(0x225)+_0x38bb25(0x1aa)+_0x38bb25(0x201)+'\x20'+systemPrompt['substring'](0x1*0x4e7+-0xb0b*0x1+-0x1*-0x624,-0x168d+0x1db6+0x1*-0x6f7)+'...'),_0x523fc7[_0x38bb25(0x1a9)+_0x38bb25(0x223)]={'parts':[{'text':systemPrompt}]});console[_0x38bb25(0x1c6)](_0x38bb25(0x22a)+_0x38bb25(0x18b)+_0x38bb25(0x180)+'nt:\x20'+_0x549e5a[_0x38bb25(0x1d3)]),console[_0x38bb25(0x1c6)](_0x38bb25(0x22a)+_0x38bb25(0x186)+_0x38bb25(0x21f)+(_0x36adc6['MsyJh'](outputFormat,_0x38bb25(0x22f))?-0x439*0x5+0x1823+-0xa*0x4d:-0x173*0xb+0x42b*-0x4+0x209e));if(_0x36adc6[_0x38bb25(0x208)](outputFormat,_0x36adc6[_0x38bb25(0x1cc)]))_0x523fc7[_0x38bb25(0x18e)+_0x38bb25(0x198)]={'responseModalities':[_0x38bb25(0x221)],'responseSchema':{'type':_0x36adc6[_0x38bb25(0x25d)],'items':{'type':_0x38bb25(0x249),'properties':{'title':{'type':_0x38bb25(0x1f8)},'prompt':{'type':_0x36adc6[_0x38bb25(0x1c0)]}},'required':[_0x36adc6[_0x38bb25(0x233)],_0x38bb25(0x246)]}}};else _0x36adc6[_0x38bb25(0x1a6)](outputFormat,_0x36adc6['CWiEs'])?_0x523fc7[_0x38bb25(0x18e)+_0x38bb25(0x198)]={'responseModalities':[_0x36adc6[_0x38bb25(0x24b)]]}:(_0x523fc7['generation'+_0x38bb25(0x198)]={'responseModalities':[_0x36adc6[_0x38bb25(0x24b)],_0x36adc6['XlkMH']]},aspectRatio&&aspectRatio[_0x38bb25(0x24e)]()&&(_0x523fc7[_0x38bb25(0x18e)+_0x38bb25(0x198)]['imageConfi'+'g']={'aspectRatio':aspectRatio}));const _0x1d06d6=_0x36adc6[_0x38bb25(0x208)](outputFormat,_0x38bb25(0x22f))?0x1388+0x1a7c+0x5c*-0x80:0x11ce+0x6d*-0x49+0xd48,_0x232e35=JSON['stringify']([null,JSON[_0x38bb25(0x23a)](_0x523fc7),_0x1d06d6]),_0x3436f4={'x-goog-ext-73010989-jspb':_0x36adc6[_0x38bb25(0x176)],'x-goog-ext-525001261-jspb':_0x36adc6[_0x38bb25(0x218)],...customHeaders},_0xc02ac8=await this[_0x38bb25(0x1a8)+_0x38bb25(0x1b9)]([{'rpcid':GeminiClient[_0x38bb25(0x25e)][_0x38bb25(0x1f6)+_0x38bb25(0x219)],'payload':_0x232e35}],_0x3436f4);if(_0x36adc6[_0x38bb25(0x17a)](outputFormat,_0x36adc6[_0x38bb25(0x1cc)])||outputFormat===_0x38bb25(0x18a)||_0x36adc6['jOxTa'](outputFormat,_0x36adc6[_0x38bb25(0x217)]))return this['_parseChat'+_0x38bb25(0x1fa)](_0xc02ac8);return this['_parseImag'+_0x38bb25(0x1cd)+_0x38bb25(0x1f2)](_0xc02ac8);}async['generateAu'+_0x5ed186(0x1d7)]({text:_0x423a92,speechStyle:speechStyle=null,hasMultiSpeaker:hasMultiSpeaker=![],voiceName:voiceName=_0x5ed186(0x17e),speakerNames:speakerNames=null,voiceNamesMap:voiceNamesMap=null,customHeaders:customHeaders={}}={}){const _0x1af4a5=_0x5ed186,_0x489d25={'YlsUC':_0x1af4a5(0x1c3),'iTGaf':function(_0x4cfd19,_0x2c2ce9){return _0x4cfd19&&_0x2c2ce9;},'VBxKf':_0x1af4a5(0x17e)},_0x14bf53=[{'text':speechStyle?'\x22'+speechStyle+':\x20'+_0x423a92[_0x1af4a5(0x24e)]()+'\x22':'\x22'+_0x423a92['trim']()+'\x22'}],_0x248f2e={'contents':[{'parts':_0x14bf53}],'generationConfig':{'responseModalities':[_0x489d25[_0x1af4a5(0x1d4)]],'speechConfig':{'voiceConfig':{'prebuiltVoiceConfig':{'voiceName':voiceName||_0x1af4a5(0x17e)}}}}};if(hasMultiSpeaker){_0x248f2e[_0x1af4a5(0x18e)+_0x1af4a5(0x198)][_0x1af4a5(0x1e4)+'ig'][_0x1af4a5(0x1e7)+_0x1af4a5(0x1f4)+_0x1af4a5(0x214)]={'speakerVoiceConfigs':[]};if(_0x489d25[_0x1af4a5(0x1cf)](speakerNames,voiceNamesMap))for(const [_0x541b84,_0x1d6ced]of Object[_0x1af4a5(0x1e0)](speakerNames)){_0x248f2e[_0x1af4a5(0x18e)+'Config']['speechConf'+'ig'][_0x1af4a5(0x1e7)+'erVoiceCon'+_0x1af4a5(0x214)][_0x1af4a5(0x17f)+_0x1af4a5(0x182)][_0x1af4a5(0x1f7)]({'speakerName':_0x1d6ced,'voiceConfig':{'prebuiltVoiceConfig':{'voiceName':voiceNamesMap[_0x541b84]||_0x489d25['VBxKf']}}});}}const _0x45200f=JSON['stringify']([null,JSON[_0x1af4a5(0x23a)](_0x248f2e),0x18*0x58+-0x4be*0x2+0x141]),_0x2baecf={'x-goog-ext-73010989-jspb':_0x1af4a5(0x1ac),'x-goog-ext-525001261-jspb':_0x1af4a5(0x172)+_0x1af4a5(0x1a1)+_0x1af4a5(0x1a1)+_0x1af4a5(0x1bb)+']]',...customHeaders},_0xf966a6=await this[_0x1af4a5(0x1a8)+_0x1af4a5(0x1b9)]([{'rpcid':GeminiClient[_0x1af4a5(0x25e)]['generateIm'+_0x1af4a5(0x219)],'payload':_0x45200f}],_0x2baecf);return this[_0x1af4a5(0x24a)+_0x1af4a5(0x243)](_0xf966a6);}async[_0x5ed186(0x16c)+_0x5ed186(0x183)](_0x583a85,_0x5aa18e,{videoPath:videoPath=null,ytUrl:ytUrl=null,outputFormat:outputFormat=_0x5ed186(0x210),customHeaders:customHeaders={}}={}){const _0x2ba34a=_0x5ed186,_0x333ea4={'GaJQn':_0x2ba34a(0x1e9),'tdICe':_0x2ba34a(0x210)},_0x3cf82a=[{'text':_0x583a85[_0x2ba34a(0x24e)]()}];ytUrl&&_0x3cf82a[_0x2ba34a(0x1f7)]({'text':_0x2ba34a(0x1ca)+ytUrl});if(videoPath&&fs[_0x2ba34a(0x222)](videoPath)){const _0x171722=await this['_uploadFil'+'e'](videoPath);_0x3cf82a[_0x2ba34a(0x1f7)]({'fileData':{'fileUri':_0x171722,'mimeType':_0x333ea4['GaJQn']}});}const _0x17d684={'contents':[{'parts':_0x3cf82a}]};_0x5aa18e&&(_0x17d684[_0x2ba34a(0x1a9)+_0x2ba34a(0x223)]={'parts':[{'text':_0x5aa18e}]});const _0x23c5dc=JSON[_0x2ba34a(0x23a)]([null,JSON['stringify'](_0x17d684)]),_0x3dbbea=await this[_0x2ba34a(0x1a8)+_0x2ba34a(0x1b9)]([{'rpcid':GeminiClient[_0x2ba34a(0x25e)][_0x2ba34a(0x1f6)+_0x2ba34a(0x219)],'payload':_0x23c5dc}],customHeaders),_0x1cf9cd=this[_0x2ba34a(0x256)+_0x2ba34a(0x1fa)](_0x3dbbea);return outputFormat===_0x333ea4[_0x2ba34a(0x174)]?_0x1cf9cd[_0x2ba34a(0x210)]:_0x1cf9cd;}async[_0x5ed186(0x1e2)+'e'](_0x5facb3){const _0xe1a8ec=_0x5ed186,_0x193c3e={'LVTYQ':_0xe1a8ec(0x207)+_0xe1a8ec(0x17c),'bNsXL':_0xe1a8ec(0x232)+_0xe1a8ec(0x23f)+_0xe1a8ec(0x1f3),'LTbnn':'multipart'},_0x397f31=fs['readFileSy'+'nc'](_0x5facb3),_0x516a0f=path[_0xe1a8ec(0x18d)](_0x5facb3),_0x35d238=await axios[_0xe1a8ec(0x224)]('https://co'+_0xe1a8ec(0x194)+_0xe1a8ec(0x1dd)+'s.com/uplo'+'ad',_0x397f31,{'headers':{...this['_buildHead'+_0xe1a8ec(0x202)](),'Push-ID':_0x193c3e['LVTYQ'],'Content-Type':_0x193c3e[_0xe1a8ec(0x237)],'X-Goog-Upload-File-Name':_0x516a0f,'X-Goog-Upload-Protocol':_0x193c3e[_0xe1a8ec(0x22c)]}});return _0x35d238['data']['trim']();}async['upscaleTo2'+'K'](_0x4a9cc3,{aspectRatio:aspectRatio=null}={}){return _0x4a9cc3;}async[_0x5ed186(0x1bc)+'ev2']({imageData:_0x24ee2f,rid:_0x216686,rcid:_0x474e8e,cid:_0x39224f,customHeaders:customHeaders={},maxRetries:maxRetries=0x8*0x4d5+-0xe65+-0x1840}){const _0x3463cf=_0x5ed186,_0x5fb689=JSON[_0x3463cf(0x23a)]([[[null,null,null,[null,null,null,null,null,_0x24ee2f]],[_0x3463cf(0x188)+'gleusercon'+_0x3463cf(0x228)+_0x3463cf(0x1c8)+_0x3463cf(0x235)+_0x3463cf(0x1c7),-0x2710*-0x1+-0x10c8+-0xf8*0x17],null,[-0x1d2e+0x2*-0x575+-0x7*-0x5bd,''],null,null,null,null,null,null],[_0x216686,_0x474e8e,_0x39224f,null,null],-0xed*0x14+-0x22*0x125+0x396f,-0x22d+0x1*0x648+-0x41b*0x1,0x86c+-0x1*-0x15af+-0x1e1a*0x1]),_0x1dd6cd=await this[_0x3463cf(0x1a8)+_0x3463cf(0x1b9)]([{'rpcid':GeminiClient[_0x3463cf(0x25e)][_0x3463cf(0x1b4)+'ge'],'payload':_0x5fb689}],customHeaders);return this[_0x3463cf(0x1c2)+_0x3463cf(0x25c)+'e'](_0x1dd6cd);}['_parseChat'+_0x5ed186(0x1fa)](_0x18284d){const _0x413d57=_0x5ed186,_0x5eb0b1={'XSdWQ':function(_0x5c8586,_0x3c463b){return _0x5c8586===_0x3c463b;},'DurbU':_0x413d57(0x1e1),'LMGFa':'candidates','hsmxY':function(_0x110159,_0x1eb4e5){return _0x110159>_0x1eb4e5;},'ECPIm':function(_0x37ee3d,_0x275388){return _0x37ee3d>_0x275388;}};try{const _0x2fc551=this[_0x413d57(0x17d)+'ta'](_0x18284d);if(!_0x2fc551||!_0x2fc551[0x24e0+0x16*0x16d+-0xda6*0x5]||!_0x2fc551[-0x2eb*0xb+-0x1630+0x3649][-0x17*-0x21+0x531+-0x12a*0x7])return{'candidates':[],'text':'','metadata':[]};const _0x4b6d30=_0x2fc551[-0x1a21+-0xa39*-0x3+-0x48a][0x14c7+-0xe2c+0x233*-0x3];let _0x43825b;try{_0x43825b=JSON[_0x413d57(0x1d2)](_0x4b6d30);}catch(_0x5d515){return{'candidates':[],'text':'','metadata':[]};}if(Array['isArray'](_0x43825b)&&_0x5eb0b1[_0x413d57(0x18f)](typeof _0x43825b[0x1*0x76e+0x8a*-0x35+0x1524],_0x5eb0b1[_0x413d57(0x1c1)])&&_0x43825b[-0x1c33+-0x1f29+-0x83*-0x74][_0x413d57(0x192)](_0x5eb0b1['LMGFa']))try{const _0x3f48e6=JSON['parse'](_0x43825b[-0x1564+0x11f*0xf+0x493]),_0x22eefb=_0x3f48e6[_0x413d57(0x23b)]||[];if(_0x5eb0b1[_0x413d57(0x19a)](_0x22eefb[_0x413d57(0x1d3)],-0x47*-0x14+0x5b3*0x5+-0x220b)){const _0x5106ec=_0x22eefb[0x17*-0x1aa+0x2*-0x11d9+0x49f8],_0x4c0ddd=_0x5106ec[_0x413d57(0x1df)]?.[_0x413d57(0x216)]?.[0x110f+0x1*-0x2ee+-0xe21]?.[_0x413d57(0x210)]||'';return{'candidates':[{'text':_0x4c0ddd,'rcid':_0x5106ec[_0x413d57(0x1eb)]}],'text':_0x4c0ddd,'metadata':[]};}}catch(_0x22a0fe){}const _0x3d285e=_0x43825b[0x16c5+0x1726+0x12*-0x28d]||[];if(_0x5eb0b1[_0x413d57(0x1ad)](_0x3d285e[_0x413d57(0x1d3)],-0x5*0x4ab+-0x1*-0x1583+-0x9*-0x34))return{'candidates':[{'text':_0x3d285e[-0x150c+-0x1039+-0x7*-0x553][-0x11e3+-0x1c0e+0x2df1*0x1][-0x1595+0x68*0x8+0x1255],'rcid':_0x3d285e[0x2a3+-0x15bd+0x146*0xf][0x103e+-0x2b1*0x3+-0x82a]}],'text':_0x3d285e[0x2c2*-0xe+-0x7bf+0x2e5b][-0x4b+-0x3b*0x7a+0x1c69*0x1][0x1*0x2308+0x71c+-0x2a24],'metadata':[_0x43825b[0x1*-0xcb3+-0x7e3+0x1*0x1496][-0x2bc+-0x11d4+-0x7*-0x2f0],_0x43825b[0xb*0x24d+-0x2*-0x221+0x9db*-0x3][-0xeb0+0x5d*0x23+0x1fa],_0x3d285e[0x1b45+0x2*0xda+-0x1cf9][-0x227d+0x16d6+-0x2*-0x5d4]]};}catch(_0x4a763f){}return{'candidates':[],'text':'','metadata':[]};}async[_0x5ed186(0x24f)+_0x5ed186(0x1cd)+_0x5ed186(0x1f2)](_0x532d3a){const _0x50b47e=_0x5ed186,_0x433fee={'ypCaf':function(_0x124093,_0x30d320){return _0x124093===_0x30d320;},'yZHVv':_0x50b47e(0x20a),'RkiPU':function(_0x1e817f,_0x2ca3d7){return _0x1e817f<_0x2ca3d7;},'MoQIh':_0x50b47e(0x1e1),'OSbOI':function(_0x62837d,_0x56aa3f){return _0x62837d>_0x56aa3f;},'klwSh':_0x50b47e(0x255),'uZXBJ':function(_0xff9d62,_0x394507){return _0xff9d62>_0x394507;},'RriEQ':function(_0x182ea4,_0x3185cf){return _0x182ea4===_0x3185cf;},'GTMwU':function(_0xa76809,_0x496af4){return _0xa76809===_0x496af4;},'bpfVl':function(_0x2bf81e,_0x4af70d){return _0x2bf81e===_0x4af70d;},'oapSE':function(_0xad3529,_0x80511e){return _0xad3529>_0x80511e;},'JMOTo':function(_0x4ea76d,_0x3b1738){return _0x4ea76d===_0x3b1738;},'vsFdK':function(_0x29bad7,_0x49066b){return _0x29bad7===_0x49066b;},'hpVAh':function(_0x39751c,_0x4d4aa0){return _0x39751c===_0x4d4aa0;},'svqPY':function(_0x556166,_0x42d7fc){return _0x556166===_0x42d7fc;},'YhnLV':function(_0x52d586,_0x2cebd8){return _0x52d586===_0x2cebd8;},'ZQZGs':function(_0x4afe4,_0x18853f){return _0x4afe4===_0x18853f;}};try{const _0x3bc000=_0x532d3a[_0x50b47e(0x229)]('\x0a');for(const _0x9a85a2 of _0x3bc000){const _0x5e22ba=_0x9a85a2[_0x50b47e(0x24e)]();if(!_0x5e22ba||_0x433fee[_0x50b47e(0x1bf)](_0x5e22ba,_0x433fee[_0x50b47e(0x1a0)]))continue;try{const _0x5c0559=JSON['parse'](_0x5e22ba);if(!Array[_0x50b47e(0x20e)](_0x5c0559))continue;for(const _0x288687 of _0x5c0559){if(!Array[_0x50b47e(0x20e)](_0x288687)||_0x433fee['RkiPU'](_0x288687[_0x50b47e(0x1d3)],0x1*-0x16bb+0x228f+-0xbd1))continue;const _0x3da08f=_0x288687[-0x7*-0x117+-0x1*-0x163d+-0x1a*0x126];if(typeof _0x3da08f!==_0x433fee[_0x50b47e(0x1ab)])continue;try{const _0x4659de=JSON[_0x50b47e(0x1d2)](_0x3da08f);if(Array[_0x50b47e(0x20e)](_0x4659de)&&_0x433fee['OSbOI'](_0x4659de['length'],-0x19fb+-0x4*0x2b6+-0xb*-0x359)&&typeof _0x4659de[-0x1*-0x26b+0x138d+0x15f8*-0x1]===_0x433fee[_0x50b47e(0x1ab)])try{const _0x3f5493=JSON['parse'](_0x4659de[0x113*-0x5+0x1*-0x1cce+0x2a1*0xd]);if(_0x3f5493&&_0x433fee[_0x50b47e(0x1bf)](typeof _0x3f5493,_0x433fee[_0x50b47e(0x215)])&&_0x3f5493['prediction'+'s']){const _0x5a1252=_0x3f5493[_0x50b47e(0x25a)+'s'];if(Array[_0x50b47e(0x20e)](_0x5a1252)&&_0x433fee[_0x50b47e(0x191)](_0x5a1252[_0x50b47e(0x1d3)],-0x1ae+0x134d+-0x119f*0x1)){const _0x3e48fc=_0x5a1252[0x252c+0x181+-0x26ad];if(_0x3e48fc&&_0x433fee['RriEQ'](typeof _0x3e48fc,_0x433fee['klwSh'])&&_0x3e48fc[_0x50b47e(0x19d)+_0x50b47e(0x248)]){const _0xad325d=_0x3e48fc['bytesBase6'+'4Encoded'];if(typeof _0xad325d===_0x433fee['MoQIh'])return _0xad325d;}}}}catch(_0x2df55d){}if(_0x4659de&&_0x433fee[_0x50b47e(0x1bf)](typeof _0x4659de,_0x433fee[_0x50b47e(0x215)])&&!Array[_0x50b47e(0x20e)](_0x4659de)){const _0x2e2729=_0x4659de['candidates'];if(Array['isArray'](_0x2e2729))for(const _0x2d5bef of _0x2e2729){if(_0x2d5bef&&_0x433fee[_0x50b47e(0x206)](typeof _0x2d5bef,'object')){const _0x53eb63=_0x2d5bef[_0x50b47e(0x1df)];if(_0x53eb63&&typeof _0x53eb63===_0x433fee['klwSh']){const _0xbeac7b=_0x53eb63[_0x50b47e(0x216)];if(Array[_0x50b47e(0x20e)](_0xbeac7b))for(const _0x325bfc of _0xbeac7b){if(_0x325bfc&&_0x433fee[_0x50b47e(0x206)](typeof _0x325bfc,_0x433fee[_0x50b47e(0x215)])&&_0x325bfc[_0x50b47e(0x1e3)]){const _0x412acc=_0x325bfc[_0x50b47e(0x1e3)];if(_0x412acc&&_0x433fee[_0x50b47e(0x1bf)](typeof _0x412acc,_0x433fee[_0x50b47e(0x215)])&&_0x412acc[_0x50b47e(0x193)]){const _0x15a892=_0x412acc[_0x50b47e(0x193)];if(_0x433fee[_0x50b47e(0x18c)](typeof _0x15a892,_0x50b47e(0x1e1)))return _0x15a892;}}}}}}}if(Array[_0x50b47e(0x20e)](_0x4659de)&&_0x433fee['oapSE'](_0x4659de['length'],0x83*-0x43+0xfcf+-0x1ae*-0xb)){const _0x29c282=_0x4659de[0x4*-0x2f7+0xdcd+0x1*-0x1f1];if(_0x433fee['JMOTo'](typeof _0x29c282,'string'))try{const _0x16945e=JSON[_0x50b47e(0x1d2)](_0x29c282);if(_0x16945e&&_0x433fee[_0x50b47e(0x1ea)](typeof _0x16945e,_0x433fee[_0x50b47e(0x215)])&&_0x16945e[_0x50b47e(0x23b)]){const _0x4f5631=_0x16945e['candidates'];if(Array[_0x50b47e(0x20e)](_0x4f5631))for(const _0x425a25 of _0x4f5631){if(_0x425a25&&_0x433fee[_0x50b47e(0x19c)](typeof _0x425a25,_0x433fee[_0x50b47e(0x215)])){const _0x1ac4b5=_0x425a25[_0x50b47e(0x1df)];if(_0x1ac4b5&&_0x433fee[_0x50b47e(0x24c)](typeof _0x1ac4b5,_0x433fee[_0x50b47e(0x215)])){const _0x8225=_0x1ac4b5[_0x50b47e(0x216)];if(Array[_0x50b47e(0x20e)](_0x8225))for(const _0x2a0832 of _0x8225){if(_0x2a0832&&_0x433fee[_0x50b47e(0x1ec)](typeof _0x2a0832,_0x433fee[_0x50b47e(0x215)])&&_0x2a0832[_0x50b47e(0x1e3)]){const _0x53098d=_0x2a0832[_0x50b47e(0x1e3)];if(_0x53098d&&_0x433fee[_0x50b47e(0x189)](typeof _0x53098d,_0x433fee['klwSh'])&&_0x53098d['data']){const _0x5ec713=_0x53098d[_0x50b47e(0x193)];if(_0x433fee[_0x50b47e(0x16f)](typeof _0x5ec713,_0x433fee[_0x50b47e(0x1ab)]))return _0x5ec713;}}}}}}}}catch(_0x5beb0a){}}}catch(_0x4f5cdc){}}}catch(_0x52687c){}}}catch(_0x59c148){}return'';}[_0x5ed186(0x24a)+_0x5ed186(0x243)](_0x2c9413){const _0x1d5b1e=_0x5ed186,_0x3ecf9a={'IrGom':function(_0x8bf421,_0x32df87){return _0x8bf421===_0x32df87;},'oZQEX':_0x1d5b1e(0x20a),'AxUJx':function(_0x33aa7d,_0x2f1e7f){return _0x33aa7d>=_0x2f1e7f;},'LHmLx':function(_0x2fc0da,_0x118fa1){return _0x2fc0da===_0x118fa1;},'PjtKS':_0x1d5b1e(0x16b),'zlEmi':function(_0x67416f,_0x29a7bd){return _0x67416f===_0x29a7bd;},'csgeP':'string','VddpU':function(_0x46cd83,_0x3663bc){return _0x46cd83===_0x3663bc;},'pHjNP':function(_0xb19c1f,_0x5aaacd){return _0xb19c1f>_0x5aaacd;},'AXMhW':function(_0x576ec1,_0x3d86f4){return _0x576ec1>_0x3d86f4;},'vyTer':function(_0xe21c48,_0x16583b){return _0xe21c48>_0x16583b;},'bCjQw':function(_0x487776,_0x153bee){return _0x487776===_0x153bee;},'TTUHb':_0x1d5b1e(0x255),'DYXaz':_0x1d5b1e(0x24d)+_0x1d5b1e(0x173)};try{const _0x37409e=_0x2c9413[_0x1d5b1e(0x229)]('\x0a');for(const _0x3490c1 of _0x37409e){const _0x30d59e=_0x3490c1['trim']();if(!_0x30d59e||_0x3ecf9a['IrGom'](_0x30d59e,_0x3ecf9a[_0x1d5b1e(0x1ed)]))continue;try{const _0x2fdbf8=JSON['parse'](_0x30d59e);if(!Array[_0x1d5b1e(0x20e)](_0x2fdbf8))continue;for(const _0x44872e of _0x2fdbf8){if(!Array['isArray'](_0x44872e))continue;if(_0x3ecf9a[_0x1d5b1e(0x199)](_0x44872e[_0x1d5b1e(0x1d3)],-0x26e3+-0x2558+-0x4c3e*-0x1)&&_0x3ecf9a['LHmLx'](_0x44872e[-0x72*-0x37+0xf79*-0x1+-0x905],_0x3ecf9a[_0x1d5b1e(0x1e8)])&&_0x3ecf9a['zlEmi'](typeof _0x44872e[0x18*0x33+-0x136b*0x1+0xea5*0x1],_0x3ecf9a[_0x1d5b1e(0x1e5)]))return _0x44872e[-0x10b1+0x1d3*0x5+-0x1e5*-0x4];if(_0x44872e['length']<-0xb9d+-0x22db*0x1+0x2e7b)continue;const _0xa173c9=_0x44872e[0x9d0+-0x22b6+0x18e8*0x1];if(_0x3ecf9a['VddpU'](typeof _0xa173c9,_0x3ecf9a[_0x1d5b1e(0x1e5)])){if(_0x3ecf9a[_0x1d5b1e(0x23c)](_0xa173c9[_0x1d5b1e(0x1d3)],-0xdf4+-0x9b+0xef3)&&!_0xa173c9[_0x1d5b1e(0x1ae)]('{')&&!_0xa173c9['startsWith']('['))return _0xa173c9;try{const _0x594385=JSON[_0x1d5b1e(0x1d2)](_0xa173c9);if(_0x3ecf9a[_0x1d5b1e(0x1b5)](typeof _0x594385,_0x3ecf9a['csgeP'])&&_0x3ecf9a[_0x1d5b1e(0x1cb)](_0x594385[_0x1d5b1e(0x1d3)],-0x23a3*0x1+-0x121e+0x3625))return _0x594385;if(_0x594385&&_0x3ecf9a[_0x1d5b1e(0x1b5)](typeof _0x594385,'object')&&!Array[_0x1d5b1e(0x20e)](_0x594385)){const _0x165531=_0x594385[_0x1d5b1e(0x23b)];if(Array[_0x1d5b1e(0x20e)](_0x165531)&&_0x3ecf9a['AXMhW'](_0x165531['length'],0xab*0xd+0x1125+-0x26*0xae)){const _0x5819bb=_0x165531[-0x328*-0xb+0x1*0x17ac+0x1*-0x3a64],_0x5e11ab=_0x5819bb[_0x1d5b1e(0x1df)];if(_0x5e11ab&&_0x5e11ab[_0x1d5b1e(0x216)]&&Array['isArray'](_0x5e11ab[_0x1d5b1e(0x216)])&&_0x5e11ab[_0x1d5b1e(0x216)][_0x1d5b1e(0x1d3)]>0x16*-0x52+0x10c0+-0x9b4){const _0x3a456a=_0x5e11ab[_0x1d5b1e(0x216)][0x6d6*-0x1+-0x177e*-0x1+-0x4*0x42a];if(_0x3a456a[_0x1d5b1e(0x1e3)]&&_0x3a456a[_0x1d5b1e(0x1e3)][_0x1d5b1e(0x193)])return _0x3a456a[_0x1d5b1e(0x1e3)][_0x1d5b1e(0x193)];}}}else{if(Array['isArray'](_0x594385)&&_0x3ecf9a[_0x1d5b1e(0x19f)](_0x594385['length'],-0xd*-0x1bf+0x1*-0x128f+0x109*-0x4)){const _0x34fd30=_0x594385[0xc*0xa2+-0x1f29*0x1+0x1791*0x1];if(typeof _0x34fd30===_0x3ecf9a[_0x1d5b1e(0x1e5)])try{const _0x1a0c20=JSON[_0x1d5b1e(0x1d2)](_0x34fd30);if(_0x1a0c20&&_0x1a0c20[_0x1d5b1e(0x23b)]&&Array[_0x1d5b1e(0x20e)](_0x1a0c20[_0x1d5b1e(0x23b)])&&_0x1a0c20['candidates'][_0x1d5b1e(0x1d3)]>-0x14e1*0x1+-0x3f6*0x6+0x2ca5){const _0x14ddb1=_0x1a0c20[_0x1d5b1e(0x23b)][0x26c9*-0x1+-0x19d3+-0x204e*-0x2],_0xf0c645=_0x14ddb1['content'];if(_0xf0c645&&_0xf0c645[_0x1d5b1e(0x216)]&&Array['isArray'](_0xf0c645[_0x1d5b1e(0x216)])&&_0x3ecf9a['vyTer'](_0xf0c645[_0x1d5b1e(0x216)][_0x1d5b1e(0x1d3)],0x6b7*-0x3+-0x1347+-0x13b6*-0x2)){const _0x4b1d31=_0xf0c645['parts'][0x11e2+-0x26d1+-0xe9*-0x17];if(_0x4b1d31[_0x1d5b1e(0x1e3)]&&_0x4b1d31[_0x1d5b1e(0x1e3)]['data'])return _0x4b1d31[_0x1d5b1e(0x1e3)][_0x1d5b1e(0x193)];}}}catch(_0x1c1793){}else{if(_0x34fd30&&_0x3ecf9a[_0x1d5b1e(0x179)](typeof _0x34fd30,_0x3ecf9a[_0x1d5b1e(0x213)])&&_0x34fd30[_0x1d5b1e(0x23b)]){const _0x4a455b=_0x34fd30['candidates'];if(Array[_0x1d5b1e(0x20e)](_0x4a455b)&&_0x3ecf9a[_0x1d5b1e(0x1cb)](_0x4a455b[_0x1d5b1e(0x1d3)],0x20f+-0x3*0xb75+0x2050)){const _0xb5a236=_0x4a455b[0x23d1+0xf3b+-0x330c],_0x1daa64=_0xb5a236[_0x1d5b1e(0x1df)];if(_0x1daa64&&_0x1daa64['parts']&&Array[_0x1d5b1e(0x20e)](_0x1daa64[_0x1d5b1e(0x216)])&&_0x3ecf9a['vyTer'](_0x1daa64[_0x1d5b1e(0x216)][_0x1d5b1e(0x1d3)],0xa5*0x1+-0x1a7b*-0x1+-0x1b20)){const _0x53fa1e=_0x1daa64[_0x1d5b1e(0x216)][0x122a+0x5bb*0x2+0x2*-0xed0];if(_0x53fa1e[_0x1d5b1e(0x1e3)]&&_0x53fa1e[_0x1d5b1e(0x1e3)][_0x1d5b1e(0x193)])return _0x53fa1e[_0x1d5b1e(0x1e3)]['data'];}}}}}}}catch(_0x3c130f){}}}}catch(_0x595c8d){}}return'';}catch(_0x1fb786){return console[_0x1d5b1e(0x241)](_0x3ecf9a[_0x1d5b1e(0x23d)],_0x1fb786),'';}}[_0x5ed186(0x1c2)+_0x5ed186(0x25c)+'e'](_0x9614d5){const _0x12a9b9=_0x5ed186;try{const _0x2a63c0=this[_0x12a9b9(0x17d)+'ta'](_0x9614d5),_0x10876c=JSON['parse'](_0x2a63c0[-0x1*0x210a+0x25*-0x7d+-0x7*-0x74d][-0x3c*0x87+0x1c05+-0x1*-0x3a1]);if(_0x10876c[0x17da+-0x6a*0x34+-0x252]&&_0x10876c[-0x13ed*0x1+-0x16*-0x23+0x47*0x3d][-0x1*-0xa61+-0xec9*0x1+0x46a]){const _0xe7ba07=JSON[_0x12a9b9(0x1d2)](_0x10876c[-0x12ed*-0x1+0x259b*0x1+-0x3888][-0xb4e*0x2+0x1edb+-0x83d]);return _0xe7ba07[0x20f1+0x367+-0x2458];}}catch(_0x31346d){}return null;}[_0x5ed186(0x230)+_0x5ed186(0x1fa)](_0x66458f){const _0x560623=_0x5ed186,_0x349546={'MTDjS':function(_0x2e24b7,_0x486f4f){return _0x2e24b7===_0x486f4f;}},_0x1264db=this[_0x560623(0x17d)+'ta'](_0x66458f),_0xf88ea6=[];return _0x1264db[_0x560623(0x227)](_0x172fe4=>{const _0x52beb8=_0x560623;try{const _0x57c1e2=JSON[_0x52beb8(0x1d2)](_0x172fe4[-0x93e*-0x1+-0x3b9+0x1*-0x583]),_0x2dcc3e=_0x57c1e2[-0x1376+-0x1cb3+0x302b]||[];_0x2dcc3e[_0x52beb8(0x227)](_0x2ef943=>{const _0x271f02=_0x52beb8;_0xf88ea6[_0x271f02(0x1f7)]({'id':_0x2ef943[-0x7*-0x3af+0x4*0x87a+0x25*-0x19d],'name':_0x2ef943[0x203*-0x10+-0x235a+-0x438b*-0x1][-0x1*-0xd00+-0x1858+-0xf2*-0xc],'description':_0x2ef943[-0x20ec+0x137*-0x2+0x1*0x235b][-0xad*0x11+0x11db*0x1+-0x65d],'prompt':_0x2ef943[-0x156d+0x167*-0x19+0x7*0x812]?_0x2ef943[0x65b*0x6+-0x159e+-0x1082][0x2*0x4c6+0x1f42*0x1+-0xd9a*0x3]:null,'predefined':_0x349546[_0x271f02(0x1a7)](_0x172fe4[-0x1a17*-0x1+0x1*0x103c+0x43b*-0xa],_0x271f02(0x1a3))});});}catch(_0x282c45){}}),_0xf88ea6;}[_0x5ed186(0x17d)+'ta'](_0x34e098){const _0x53a19f=_0x5ed186,_0x48c419={'WlLYX':function(_0x4cb5ef,_0x5aa852){return _0x4cb5ef(_0x5aa852);},'Waopo':function(_0x557e9f,_0x513e56){return _0x557e9f!==_0x513e56;},'fOZAE':_0x53a19f(0x1e1),'NTzcW':function(_0x481c8d,_0x20dfa3){return _0x481c8d<_0x20dfa3;},'Cnski':function(_0x3cb98c,_0xdf3e0f){return _0x3cb98c<_0xdf3e0f;},'WAsLT':function(_0x4143b7,_0x36e330){return _0x4143b7+_0x36e330;}};if(!_0x34e098||_0x48c419['Waopo'](typeof _0x34e098,_0x48c419[_0x53a19f(0x1f0)]))return[];let _0x4429fc=_0x34e098[_0x53a19f(0x24e)]();_0x4429fc[_0x53a19f(0x1ae)](_0x53a19f(0x20a))&&(_0x4429fc=_0x4429fc[_0x53a19f(0x195)](-0x1000+-0x1d0b+0xf*0x301)['trim']());const _0x1fd000=_0x4429fc[_0x53a19f(0x229)](/\r?\n/);for(let _0x2afdaa=0x2465+0x1801*-0x1+-0x3d*0x34;_0x48c419['NTzcW'](_0x2afdaa,_0x1fd000[_0x53a19f(0x1d3)]);_0x2afdaa++){let _0x2e71d6=_0x1fd000[_0x2afdaa][_0x53a19f(0x24e)]();if(!_0x2e71d6)continue;/^\d+$/[_0x53a19f(0x253)](_0x2e71d6)&&_0x48c419[_0x53a19f(0x21c)](_0x48c419[_0x53a19f(0x178)](_0x2afdaa,0x7f3+-0x1*0x2359+-0x3d*-0x73),_0x1fd000[_0x53a19f(0x1d3)])&&(_0x2e71d6=_0x1fd000[_0x2afdaa+(0xd0+0x1*0x1645+-0x1714)][_0x53a19f(0x24e)]());/^\d+\s*\[/[_0x53a19f(0x253)](_0x2e71d6)&&(_0x2e71d6=_0x2e71d6['replace'](/^\d+\s*/,''));if(!_0x2e71d6[_0x53a19f(0x1ae)]('['))continue;try{const _0x29a68f=JSON[_0x53a19f(0x1d2)](_0x2e71d6);if(Array[_0x53a19f(0x20e)](_0x29a68f)){const _0x13f3e2=_0x4b8be4=>{const _0x48c79d=_0x53a19f;if(_0x4b8be4[-0x1563+-0xc1*-0x4+0x125f]==='wrb.fr')return _0x4b8be4;for(const _0x5bcb84 of _0x4b8be4){if(Array['isArray'](_0x5bcb84)){const _0x2a14f4=_0x48c419[_0x48c79d(0x185)](_0x13f3e2,_0x5bcb84);if(_0x2a14f4)return _0x2a14f4;}}return null;};if(_0x48c419[_0x53a19f(0x185)](_0x13f3e2,_0x29a68f))return _0x29a68f;}}catch(_0x35180a){}}return[];}}module['exports']=GeminiClient;