YiAi/YiAiQuickDeploy/dist/common/utils/compileNetwork.js
2024-02-06 13:43:30 +08:00

1 line
2.4 KiB
JavaScript

'use strict';const _0x3e1d9a=_0x1a34;(function(_0x593eb8,_0x2828ed){const _0x145131=_0x1a34,_0x54d8c8=_0x593eb8();while(!![]){try{const _0x1c1007=parseInt(_0x145131(0x17b))/0x1+-parseInt(_0x145131(0x186))/0x2+-parseInt(_0x145131(0x17f))/0x3*(-parseInt(_0x145131(0x187))/0x4)+parseInt(_0x145131(0x181))/0x5+-parseInt(_0x145131(0x182))/0x6+-parseInt(_0x145131(0x185))/0x7+parseInt(_0x145131(0x177))/0x8*(parseInt(_0x145131(0x18a))/0x9);if(_0x1c1007===_0x2828ed)break;else _0x54d8c8['push'](_0x54d8c8['shift']());}catch(_0x1af291){_0x54d8c8['push'](_0x54d8c8['shift']());}}}(_0x3ae9,0x6eac9));Object[_0x3e1d9a(0x184)](exports,_0x3e1d9a(0x188),{'value':!![]}),exports[_0x3e1d9a(0x176)]=void 0x0;const axios_1=require(_0x3e1d9a(0x17d));function _0x1a34(_0x6bce28,_0x1a5c8a){const _0x3ae93a=_0x3ae9();return _0x1a34=function(_0x1a343d,_0x53d8f1){_0x1a343d=_0x1a343d-0x176;let _0x2d7cc=_0x3ae93a[_0x1a343d];return _0x2d7cc;},_0x1a34(_0x6bce28,_0x1a5c8a);}function _0x3ae9(){const _0x21b92e=['813180PeVuou','data','axios','join','24NiBvMB','\x27\x20:\x20','104210JlJBvi','878712jMavBR','default','defineProperty','4767910yREetQ','577136NxjHoC','239168TDWFxL','__esModule','log','9JKYbrz','error:\x20','compileNetwork','2056904GpIXTB','&max_results=','length','Instructions:\x20Reply\x20to\x20me\x20in\x20the\x20language\x20of\x20my\x20request\x20or\x20question\x20above.\x20Give\x20a\x20comprehensive\x20answer\x20to\x20the\x20question\x20or\x20request\x20I\x20have\x20made\x20above.\x20Below\x20are\x20some\x20results\x20from\x20a\x20web\x20search.\x20Use\x20the\x20following\x20results\x20to\x20summarize\x20the\x20answers\x20\x0a\x0a'];_0x3ae9=function(){return _0x21b92e;};return _0x3ae9();}function formatSearchData(_0x560d0d,_0x320e21){const _0x3296cb=_0x3e1d9a,_0x485160=_0x560d0d['map'](({title:_0x41c42f,body:_0x1f71ba,href:_0x40cd6b})=>'\x27'+_0x41c42f+_0x3296cb(0x180)+_0x1f71ba+'\x20;')[_0x3296cb(0x17e)]('\x0a\x0a'),_0x5a00db=_0x3296cb(0x17a);return _0x320e21+'\x0a\x0a'+_0x5a00db+'\x0a'+_0x485160;}async function compileNetwork(_0x1a9cd5,_0x1f070=0x7){const _0x3e0bb6=_0x3e1d9a;let _0x3e1894=[];try{const _0x4ccdb5=await axios_1[_0x3e0bb6(0x183)]['get']('https://s0.awsl.app/search?q='+_0x1a9cd5+_0x3e0bb6(0x178)+_0x1f070);_0x3e1894=_0x4ccdb5[_0x3e0bb6(0x17c)];}catch(_0x5cff8b){console[_0x3e0bb6(0x189)](_0x3e0bb6(0x18b),_0x5cff8b),_0x3e1894=[];}return _0x3e1894[_0x3e0bb6(0x179)]===0x0?_0x1a9cd5:formatSearchData(_0x3e1894,_0x1a9cd5);}exports[_0x3e1d9a(0x176)]=compileNetwork;