@ranger-testing/ranger-cli 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/reportGenerator.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyInBrowser.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xdd82b0,_0x5d1fef){const _0x22b435=_0x54b8,_0x208686=_0xdd82b0();while(!![]){try{const _0x44deae=-parseInt(_0x22b435(0x6f))/0x1*(-parseInt(_0x22b435(0x96))/0x2)+parseInt(_0x22b435(0x8d))/0x3+-parseInt(_0x22b435(0x93))/0x4+parseInt(_0x22b435(0xa5))/0x5*(parseInt(_0x22b435(0x9e))/0x6)+-parseInt(_0x22b435(0xa4))/0x7+parseInt(_0x22b435(0x79))/0x8+parseInt(_0x22b435(0x8b))/0x9*(-parseInt(_0x22b435(0x89))/0xa);if(_0x44deae===_0x5d1fef)break;else _0x208686['push'](_0x208686['shift']());}catch(_0x4c0b2d){_0x208686['push'](_0x208686['shift']());}}}(_0x5293,0xd5b43));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x5f0d9a){const _0x389e50=_0x54b8,_0x11a3b5={'tfpnj':function(_0x52368d,_0x5c856d){return _0x52368d===_0x5c856d;}};return _0x11a3b5[_0x389e50(0x72)](typeof _0x5f0d9a,'object')&&_0x5f0d9a!==null;}function isImageBlock(_0x4c3624){const _0x52917b=_0x54b8,_0x178ef8={'PeQUi':function(_0x3bd49d,_0x127918){return _0x3bd49d===_0x127918;}};return isRecord(_0x4c3624)&&_0x178ef8[_0x52917b(0xa1)](_0x4c3624[_0x52917b(0x70)],'image');}function isDataUrl(_0x4e1bc6){const _0x30f243=_0x54b8,_0x2a59fb={'mJfiI':'data:'};return _0x4e1bc6[_0x30f243(0x99)](_0x2a59fb['mJfiI']);}function parseDataUrl(_0x4e4dc2){const _0x537e7d=/^data:([^;]+);base64,(.+)$/['exec'](_0x4e4dc2);if(!_0x537e7d)return null;const _0x42a7ae=_0x537e7d[0x1]['toLowerCase']();if(!isValidMediaType(_0x42a7ae))return null;return{'data':_0x537e7d[0x2],'mediaType':_0x42a7ae};}function isValidMediaType(_0xdbbe6d){const _0x292228=_0x54b8,_0x52e6dc={'LmEgQ':_0x292228(0x78),'MfLyc':'image/png','wfIXg':'image/webp'};return[_0x52e6dc[_0x292228(0x86)],_0x52e6dc[_0x292228(0x8c)],'image/gif',_0x52e6dc['wfIXg']]['includes'](_0xdbbe6d);}function inferMediaType(_0x21dc5b,_0x1527bd){const _0x96887a=_0x54b8,_0x207ac5={'udjPI':_0x96887a(0x7b),'NiFOb':_0x96887a(0x78),'fExom':'png','AYZNV':_0x96887a(0x84),'JDogI':_0x96887a(0x9a)};if(_0x21dc5b){const _0x34b9f8=_0x21dc5b['toLowerCase']()['split'](';')[0x0][_0x96887a(0x9b)]();if(isValidMediaType(_0x34b9f8))return _0x34b9f8;}const _0x44e133=extname(_0x1527bd)['toLowerCase']()['replace']('.','');switch(_0x44e133){case _0x96887a(0x85):case _0x207ac5[_0x96887a(0x9f)]:return _0x207ac5['NiFOb'];case _0x207ac5['fExom']:return _0x96887a(0x8e);case _0x96887a(0x80):return _0x207ac5['AYZNV'];case'webp':return _0x207ac5['JDogI'];default:return'image/png';}}async function readImageFromUrl(_0x4758f9){const _0x25fb6a=_0x54b8,_0x300171={'mhbyj':function(_0x3ff462,_0x240be7){return _0x3ff462(_0x240be7);},'ynyQq':'file://','imtPr':function(_0x5cf3e4,_0x225242){return _0x5cf3e4(_0x225242);},'cGkfX':function(_0x330906,_0x136050){return _0x330906>_0x136050;},'GUfkX':function(_0x3fcecc,_0x1c2180){return _0x3fcecc(_0x1c2180);},'BqlAb':'base64','HhTlu':function(_0x387286,_0x59a651,_0x51823f){return _0x387286(_0x59a651,_0x51823f);},'vTfWS':'http://','TuwQH':_0x25fb6a(0x7a),'OaKLk':function(_0x4c7f8f,_0x4d0600){return _0x4c7f8f>_0x4d0600;},'NVKnG':'content-type'};if(isDataUrl(_0x4758f9)){const _0x285c5a=_0x300171['mhbyj'](parseDataUrl,_0x4758f9);if(_0x285c5a)return _0x285c5a;throw new Error(_0x25fb6a(0x97));}if(_0x4758f9['startsWith'](_0x300171[_0x25fb6a(0xa0)])){const _0x2fb7e7=_0x300171[_0x25fb6a(0x7c)](fileURLToPath,_0x4758f9),_0x1e44a8=await _0x300171['imtPr'](stat,_0x2fb7e7);if(_0x300171[_0x25fb6a(0x76)](_0x1e44a8['size'],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x25fb6a(0x73)+MAX_IMAGE_SIZE_BYTES+_0x25fb6a(0x6c));const _0x1505d4=await _0x300171['GUfkX'](readFile,_0x2fb7e7);return{'data':_0x1505d4['toString'](_0x300171['BqlAb']),'mediaType':_0x300171[_0x25fb6a(0x82)](inferMediaType,null,_0x2fb7e7)};}if(_0x4758f9['startsWith'](_0x300171['vTfWS'])||_0x4758f9['startsWith']('https://')){const _0x26214a=await fetch(_0x4758f9,{'signal':AbortSignal[_0x25fb6a(0x6d)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x26214a['ok'])throw new Error(_0x25fb6a(0x94)+_0x26214a[_0x25fb6a(0x81)]);const _0x4c2051=_0x26214a['headers'][_0x25fb6a(0x71)](_0x300171[_0x25fb6a(0x8a)]);if(_0x4c2051){const _0x51f2f6=_0x300171['imtPr'](Number,_0x4c2051);if(!Number['isNaN'](_0x51f2f6)&&_0x300171['OaKLk'](_0x51f2f6,MAX_IMAGE_SIZE_BYTES))throw new Error(_0x25fb6a(0x73)+MAX_IMAGE_SIZE_BYTES+_0x25fb6a(0x6c));}const _0x301997=await _0x26214a['arrayBuffer']();if(_0x301997[_0x25fb6a(0x7f)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x25fb6a(0x73)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer['from'](_0x301997)['toString'](_0x25fb6a(0xa3)),'mediaType':_0x300171['HhTlu'](inferMediaType,_0x26214a[_0x25fb6a(0x95)]['get'](_0x300171[_0x25fb6a(0x98)]),_0x4758f9)};}const _0x44454b=await stat(_0x4758f9);if(_0x300171['OaKLk'](_0x44454b['size'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x5bd365=await _0x300171['imtPr'](readFile,_0x4758f9);return{'data':_0x5bd365['toString']('base64'),'mediaType':_0x300171[_0x25fb6a(0x82)](inferMediaType,null,_0x4758f9)};}async function convertImageBlockToBase64(_0x3015d4){const _0x28ac89=_0x54b8,_0xd2057f={'nkyZJ':function(_0x126e02,_0xe6f628){return _0x126e02===_0xe6f628;},'CzcHk':'base64'};if(_0xd2057f[_0x28ac89(0x88)](_0x3015d4['source']?.[_0x28ac89(0x70)],_0x28ac89(0xa3)))return{'updated':![],'block':_0x3015d4};if(_0x3015d4[_0x28ac89(0x8f)]&&_0x3015d4['mimeType'])return{'updated':![],'block':_0x3015d4};const _0x20fc5f=_0x3015d4[_0x28ac89(0x9c)]?.['url']??_0x3015d4['url'];if(!_0x20fc5f)return{'updated':![],'block':_0x3015d4};const _0x357398=await readImageFromUrl(_0x20fc5f);return{'updated':!![],'block':{..._0x3015d4,'source':{'type':_0xd2057f['CzcHk'],'media_type':_0x357398['mediaType'],'data':_0x357398['data']},'url':undefined}};}function _0x54b8(_0xf94212,_0x2f36da){_0xf94212=_0xf94212-0x6c;const _0x529368=_0x5293();let _0x54b892=_0x529368[_0xf94212];return _0x54b892;}async function convertToolOutputImagesToBase64(_0x1a1b1d){const _0x395138=_0x54b8,_0x39d39c={'mapVi':function(_0x282104,_0x2b125b){return _0x282104(_0x2b125b);}};if(!_0x39d39c[_0x395138(0x77)](isRecord,_0x1a1b1d))return{'updated':![],'output':_0x1a1b1d};const _0x366ec2=_0x1a1b1d['content'];if(!Array['isArray'](_0x366ec2))return{'updated':![],'output':_0x1a1b1d};let _0xad0e26=![];const _0x4ae343=await Promise['all'](_0x366ec2['map'](async _0x5f49f8=>{if(!isImageBlock(_0x5f49f8))return _0x5f49f8;try{const _0x58db0c=await convertImageBlockToBase64(_0x5f49f8);if(_0x58db0c['updated'])_0xad0e26=!![];return _0x58db0c['block'];}catch{return _0x5f49f8;}}));if(!_0xad0e26)return{'updated':![],'output':_0x1a1b1d};return{'updated':!![],'output':{..._0x1a1b1d,'content':_0x4ae343}};}function _0x5293(){const _0x54f5f3=['11790520yBsGmi','content-length','jpeg','mhbyj','map','hook_event_name','byteLength','gif','status','HhTlu','value','image/gif','jpg','LmEgQ','entries','nkyZJ','750BrPRit','TuwQH','32094oQSFAD','MfLyc','538704xguuzY','image/png','data','charCodeAt','string','length','1215592yPJIoS','Failed\x20to\x20fetch\x20image:\x20','headers','1448936IZxjEu','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','NVKnG','startsWith','image/webp','trim','source','PostToolUse','318MXeTbe','udjPI','ynyQq','PeQUi','tool_response','base64','10895262lvLGxA','58990NGgtis','\x20bytes)','timeout','updated','1SgBkEv','type','get','tfpnj','Image\x20exceeds\x20size\x20limit\x20(','XFPTu','isArray','cGkfX','mapVi','image/jpeg'];_0x5293=function(){return _0x54f5f3;};return _0x5293();}function sanitizeLoneSurrogates(_0x466574){const _0x1e41ef=_0x54b8,_0x48efa3={'jaXlZ':function(_0x52e413,_0x26480c){return _0x52e413<_0x26480c;},'UKXnJ':function(_0x5aaa45,_0x3bd5bf){return _0x5aaa45>=_0x3bd5bf;},'gOmjr':function(_0x4cd9e4,_0xd508d6){return _0x4cd9e4<=_0xd508d6;},'XFPTu':function(_0x4b7608,_0x308d65){return _0x4b7608>=_0x308d65;},'PXVKl':function(_0x4dd488,_0x4b150f){return _0x4dd488+_0x4b150f;},'lnvHN':function(_0xb120ab,_0x44e0db){return _0xb120ab+_0x44e0db;},'uXdlR':function(_0x379e71,_0x51785a){return _0x379e71>=_0x51785a;}};let _0x1c5cb7=![],_0x10cda5='';for(let _0x331c14=0x0;_0x48efa3['jaXlZ'](_0x331c14,_0x466574[_0x1e41ef(0x92)]);_0x331c14+=0x1){const _0x4ae763=_0x466574['charCodeAt'](_0x331c14);if(_0x48efa3['UKXnJ'](_0x4ae763,0xd800)&&_0x48efa3['gOmjr'](_0x4ae763,0xdbff)){const _0x6c648d=_0x466574[_0x1e41ef(0x90)](_0x331c14+0x1);if(_0x48efa3[_0x1e41ef(0x74)](_0x6c648d,0xdc00)&&_0x6c648d<=0xdfff){_0x10cda5+=_0x48efa3['PXVKl'](_0x466574[_0x331c14],_0x466574[_0x48efa3['lnvHN'](_0x331c14,0x1)]),_0x331c14+=0x1;continue;}_0x1c5cb7=!![],_0x10cda5+='�';continue;}if(_0x48efa3['uXdlR'](_0x4ae763,0xdc00)&&_0x4ae763<=0xdfff){_0x1c5cb7=!![],_0x10cda5+='�';continue;}_0x10cda5+=_0x466574[_0x331c14];}return _0x1c5cb7?{'updated':_0x1c5cb7,'value':_0x10cda5}:{'updated':_0x1c5cb7,'value':_0x466574};}function sanitizeLoneSurrogatesDeep(_0x5d7f73){const _0x54c503=_0x54b8,_0x20c33d={'PZgMP':function(_0x22a8b4,_0xda3671){return _0x22a8b4(_0xda3671);},'IwkBS':_0x54c503(0x91),'SsJyu':function(_0x40b8eb,_0x576cfd){return _0x40b8eb(_0x576cfd);}};if(typeof _0x5d7f73===_0x20c33d['IwkBS'])return _0x20c33d['SsJyu'](sanitizeLoneSurrogates,_0x5d7f73);if(Array[_0x54c503(0x75)](_0x5d7f73)){let _0x59ef59=![];const _0x4d0468=_0x5d7f73['map'](_0x566207=>{const _0x588939=_0x54c503,_0x50a9ff=sanitizeLoneSurrogatesDeep(_0x566207);return _0x50a9ff[_0x588939(0x6e)]&&(_0x59ef59=!![]),_0x50a9ff[_0x588939(0x83)];});return _0x59ef59?{'updated':!![],'value':_0x4d0468}:{'updated':![],'value':_0x5d7f73};}if(!_0x20c33d['SsJyu'](isRecord,_0x5d7f73))return{'updated':![],'value':_0x5d7f73};let _0x4a8a43=![];const _0x3a133b=Object[_0x54c503(0x87)](_0x5d7f73)[_0x54c503(0x7d)](([_0x540683,_0x88341c])=>{const _0x1c745d=_0x54c503,_0x58427=_0x20c33d['PZgMP'](sanitizeLoneSurrogatesDeep,_0x88341c);return _0x58427[_0x1c745d(0x6e)]&&(_0x4a8a43=!![]),[_0x540683,_0x58427[_0x1c745d(0x83)]];});return _0x4a8a43?{'updated':!![],'value':Object['fromEntries'](_0x3a133b)}:{'updated':![],'value':_0x5d7f73};}export function createMcpImageBase64Hook(){const _0x1a3a82=_0x54b8,_0x459301={'CtGJr':function(_0x17131b,_0x171fce){return _0x17131b(_0x171fce);},'HmPXG':_0x1a3a82(0x9d)};return async _0x51bea4=>{const _0x1f9c4c=_0x1a3a82;if(_0x51bea4[_0x1f9c4c(0x7e)]!=='PostToolUse')return{};const _0x165477=_0x51bea4,_0x45cf28=await _0x459301['CtGJr'](convertToolOutputImagesToBase64,_0x165477[_0x1f9c4c(0xa2)]),_0x47be90=sanitizeLoneSurrogatesDeep(_0x45cf28['output']),_0x59fd2=_0x45cf28[_0x1f9c4c(0x6e)]||_0x47be90['updated'];if(!_0x59fd2)return{};return{'hookSpecificOutput':{'hookEventName':_0x459301['HmPXG'],'updatedMCPToolOutput':_0x47be90['value']}};};}
|
|
1
|
+
(function(_0x144da8,_0x5e1fe1){const _0x147c05=_0x3251,_0x54056b=_0x144da8();while(!![]){try{const _0xadd46a=-parseInt(_0x147c05(0x175))/0x1+parseInt(_0x147c05(0x189))/0x2+parseInt(_0x147c05(0x180))/0x3*(-parseInt(_0x147c05(0x190))/0x4)+-parseInt(_0x147c05(0x173))/0x5*(-parseInt(_0x147c05(0x16f))/0x6)+-parseInt(_0x147c05(0x18e))/0x7+-parseInt(_0x147c05(0x19e))/0x8*(parseInt(_0x147c05(0x182))/0x9)+parseInt(_0x147c05(0x19c))/0xa;if(_0xadd46a===_0x5e1fe1)break;else _0x54056b['push'](_0x54056b['shift']());}catch(_0x1f3424){_0x54056b['push'](_0x54056b['shift']());}}}(_0x1687,0x1e14d));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x3f2aba){const _0x4af4ad=_0x3251,_0x1f3d82={'iyiOi':function(_0x3a5958,_0x75f2ea){return _0x3a5958===_0x75f2ea;},'gjDDd':'object','HFbdT':function(_0x54259a,_0x2eccae){return _0x54259a!==_0x2eccae;}};return _0x1f3d82['iyiOi'](typeof _0x3f2aba,_0x1f3d82[_0x4af4ad(0x19b)])&&_0x1f3d82[_0x4af4ad(0x184)](_0x3f2aba,null);}function isImageBlock(_0x3a2b28){const _0x44cab6=_0x3251,_0x3994a2={'wNRFq':_0x44cab6(0x17c)};return isRecord(_0x3a2b28)&&_0x3a2b28['type']===_0x3994a2['wNRFq'];}function isDataUrl(_0x47a099){const _0x2154b2=_0x3251;return _0x47a099[_0x2154b2(0x186)](_0x2154b2(0x16d));}function parseDataUrl(_0x3799cc){const _0x40ce45=_0x3251,_0x33982b={'ZPQmC':function(_0x9ff2c5,_0x2fb04a){return _0x9ff2c5(_0x2fb04a);}},_0x3bb3a8=/^data:([^;]+);base64,(.+)$/[_0x40ce45(0x169)](_0x3799cc);if(!_0x3bb3a8)return null;const _0x3658df=_0x3bb3a8[0x1]['toLowerCase']();if(!_0x33982b['ZPQmC'](isValidMediaType,_0x3658df))return null;return{'data':_0x3bb3a8[0x2],'mediaType':_0x3658df};}function isValidMediaType(_0x29a984){const _0x4fa682=_0x3251,_0x3bbfdc={'uxtgw':_0x4fa682(0x172),'KXrjL':'image/webp'};return[_0x4fa682(0x198),'image/png',_0x3bbfdc[_0x4fa682(0x170)],_0x3bbfdc[_0x4fa682(0x174)]][_0x4fa682(0x191)](_0x29a984);}function inferMediaType(_0x3c269f,_0x223ec6){const _0x483d02=_0x3251,_0x5344b2={'yiwXU':function(_0x3842c9,_0x540295){return _0x3842c9(_0x540295);},'JiXTO':function(_0x1116e9,_0x1ababa){return _0x1116e9(_0x1ababa);},'MTNDs':'image/jpeg','aleSO':'png','erYBe':'image/png','QNqOb':_0x483d02(0x172)};if(_0x3c269f){const _0x154a77=_0x3c269f['toLowerCase']()['split'](';')[0x0][_0x483d02(0x18d)]();if(_0x5344b2[_0x483d02(0x199)](isValidMediaType,_0x154a77))return _0x154a77;}const _0x725a16=_0x5344b2[_0x483d02(0x19a)](extname,_0x223ec6)['toLowerCase']()[_0x483d02(0x181)]('.','');switch(_0x725a16){case'jpg':case _0x483d02(0x17f):return _0x5344b2['MTNDs'];case _0x5344b2[_0x483d02(0x18b)]:return _0x5344b2[_0x483d02(0x179)];case _0x483d02(0x176):return _0x5344b2['QNqOb'];case'webp':return'image/webp';default:return _0x5344b2['erYBe'];}}async function readImageFromUrl(_0x4f1766){const _0x2b5d9c=_0x3251,_0x151b51={'MlyTt':function(_0x40553b,_0x7c93a7){return _0x40553b(_0x7c93a7);},'WEujV':_0x2b5d9c(0x17a),'fnVJZ':_0x2b5d9c(0x185),'pKdFG':function(_0x363b86,_0x1376e1){return _0x363b86(_0x1376e1);},'oAFQQ':_0x2b5d9c(0x194),'UyCRI':'http://','NgAQe':function(_0x3e0429,_0x553b26,_0xa29129){return _0x3e0429(_0x553b26,_0xa29129);},'SkxRK':function(_0x56a471,_0x3c57f7){return _0x56a471>_0x3c57f7;},'RIlIH':_0x2b5d9c(0x183),'flZUZ':function(_0x8385af,_0x49d3ae){return _0x8385af(_0x49d3ae);}};if(isDataUrl(_0x4f1766)){const _0x11c518=_0x151b51[_0x2b5d9c(0x17e)](parseDataUrl,_0x4f1766);if(_0x11c518)return _0x11c518;throw new Error(_0x151b51['WEujV']);}if(_0x4f1766['startsWith'](_0x151b51['fnVJZ'])){const _0x3a5011=_0x151b51[_0x2b5d9c(0x1a0)](fileURLToPath,_0x4f1766),_0x6db7d0=await _0x151b51[_0x2b5d9c(0x17e)](stat,_0x3a5011);if(_0x6db7d0['size']>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x2b5d9c(0x19d));const _0x2a23bb=await _0x151b51[_0x2b5d9c(0x17e)](readFile,_0x3a5011);return{'data':_0x2a23bb[_0x2b5d9c(0x193)](_0x151b51['oAFQQ']),'mediaType':inferMediaType(null,_0x3a5011)};}if(_0x4f1766['startsWith'](_0x151b51['UyCRI'])||_0x4f1766[_0x2b5d9c(0x186)]('https://')){const _0x1d8eb9=await _0x151b51['NgAQe'](fetch,_0x4f1766,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x1d8eb9['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x1d8eb9['status']);const _0x4ac178=_0x1d8eb9['headers'][_0x2b5d9c(0x18c)](_0x2b5d9c(0x18a));if(_0x4ac178){const _0x1f6bb5=Number(_0x4ac178);if(!Number[_0x2b5d9c(0x197)](_0x1f6bb5)&&_0x1f6bb5>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x2b5d9c(0x195)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x1e6b08=await _0x1d8eb9[_0x2b5d9c(0x192)]();if(_0x151b51['SkxRK'](_0x1e6b08[_0x2b5d9c(0x177)],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer['from'](_0x1e6b08)['toString'](_0x151b51['oAFQQ']),'mediaType':_0x151b51['NgAQe'](inferMediaType,_0x1d8eb9[_0x2b5d9c(0x1a1)][_0x2b5d9c(0x18c)](_0x151b51['RIlIH']),_0x4f1766)};}const _0x294c8e=await _0x151b51[_0x2b5d9c(0x1a0)](stat,_0x4f1766);if(_0x151b51[_0x2b5d9c(0x19f)](_0x294c8e['size'],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x2b5d9c(0x195)+MAX_IMAGE_SIZE_BYTES+_0x2b5d9c(0x19d));const _0x11d05f=await _0x151b51['flZUZ'](readFile,_0x4f1766);return{'data':_0x11d05f['toString'](_0x151b51['oAFQQ']),'mediaType':inferMediaType(null,_0x4f1766)};}async function convertImageBlockToBase64(_0x4793ce){const _0xbc73de=_0x3251,_0x3b343e={'TWFGl':'base64','ZBTJY':function(_0x548354,_0x900bf8){return _0x548354(_0x900bf8);}};if(_0x4793ce[_0xbc73de(0x17d)]?.['type']===_0x3b343e['TWFGl'])return{'updated':![],'block':_0x4793ce};if(_0x4793ce['data']&&_0x4793ce['mimeType'])return{'updated':![],'block':_0x4793ce};const _0x3185bf=_0x4793ce['source']?.['url']??_0x4793ce['url'];if(!_0x3185bf)return{'updated':![],'block':_0x4793ce};const _0x7f98bd=await _0x3b343e['ZBTJY'](readImageFromUrl,_0x3185bf);return{'updated':!![],'block':{..._0x4793ce,'source':{'type':_0x3b343e['TWFGl'],'media_type':_0x7f98bd['mediaType'],'data':_0x7f98bd['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x3a3bbb){const _0x90108f=_0x3251,_0x5a5eeb={'aHgWZ':function(_0x41bb45,_0x34faab){return _0x41bb45(_0x34faab);}};if(!_0x5a5eeb[_0x90108f(0x171)](isRecord,_0x3a3bbb))return{'updated':![],'output':_0x3a3bbb};const _0x54b9df=_0x3a3bbb[_0x90108f(0x188)];if(!Array['isArray'](_0x54b9df))return{'updated':![],'output':_0x3a3bbb};let _0x18ff6f=![];const _0x171335=await Promise['all'](_0x54b9df['map'](async _0x832f3=>{const _0x45779d=_0x90108f;if(!isImageBlock(_0x832f3))return _0x832f3;try{const _0x501a22=await _0x5a5eeb[_0x45779d(0x171)](convertImageBlockToBase64,_0x832f3);if(_0x501a22[_0x45779d(0x1a2)])_0x18ff6f=!![];return _0x501a22['block'];}catch{return _0x832f3;}}));if(!_0x18ff6f)return{'updated':![],'output':_0x3a3bbb};return{'updated':!![],'output':{..._0x3a3bbb,'content':_0x171335}};}function _0x1687(){const _0x373b10=['pKdFG','headers','updated','exec','waPmn','HJjEN','output','data:','value','70482YsydPJ','uxtgw','aHgWZ','image/gif','25zPCSsc','KXrjL','192308tsKPIh','gif','byteLength','PostToolUse','erYBe','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','charCodeAt','image','source','MlyTt','jpeg','222jkGrZw','replace','9qpfkCL','content-type','HFbdT','file://','startsWith','vZOII','content','6000qbtnhJ','content-length','aleSO','get','trim','765870TvMVmE','string','4468YAWiQU','includes','arrayBuffer','toString','base64','Image\x20exceeds\x20size\x20limit\x20(','VJiYH','isNaN','image/jpeg','yiwXU','JiXTO','gjDDd','6758410WZqbxH','\x20bytes)','1839896JdYyIQ','SkxRK'];_0x1687=function(){return _0x373b10;};return _0x1687();}function sanitizeLoneSurrogates(_0x5e1a3c){const _0x1e2d31=_0x3251,_0x472ebd={'UuOoK':function(_0x350d13,_0xd69524){return _0x350d13<=_0xd69524;},'waPmn':function(_0xa73224,_0x57e8ce){return _0xa73224>=_0x57e8ce;},'HJjEN':function(_0x28645c,_0x58d14a){return _0x28645c+_0x58d14a;}};let _0x465d87=![],_0x10f66a='';for(let _0x3580c3=0x0;_0x3580c3<_0x5e1a3c['length'];_0x3580c3+=0x1){const _0xf9d5c8=_0x5e1a3c[_0x1e2d31(0x17b)](_0x3580c3);if(_0xf9d5c8>=0xd800&&_0x472ebd['UuOoK'](_0xf9d5c8,0xdbff)){const _0x581360=_0x5e1a3c['charCodeAt'](_0x3580c3+0x1);if(_0x472ebd[_0x1e2d31(0x16a)](_0x581360,0xdc00)&&_0x581360<=0xdfff){_0x10f66a+=_0x472ebd[_0x1e2d31(0x16b)](_0x5e1a3c[_0x3580c3],_0x5e1a3c[_0x3580c3+0x1]),_0x3580c3+=0x1;continue;}_0x465d87=!![],_0x10f66a+='�';continue;}if(_0xf9d5c8>=0xdc00&&_0x472ebd['UuOoK'](_0xf9d5c8,0xdfff)){_0x465d87=!![],_0x10f66a+='�';continue;}_0x10f66a+=_0x5e1a3c[_0x3580c3];}return _0x465d87?{'updated':_0x465d87,'value':_0x10f66a}:{'updated':_0x465d87,'value':_0x5e1a3c};}function _0x3251(_0xf67896,_0x27076f){_0xf67896=_0xf67896-0x169;const _0x16874a=_0x1687();let _0x325158=_0x16874a[_0xf67896];return _0x325158;}function sanitizeLoneSurrogatesDeep(_0x51f9a3){const _0x2c2519=_0x3251,_0x28ea76={'fdMUD':function(_0x43119c,_0x34da58){return _0x43119c(_0x34da58);},'VJiYH':function(_0x1f6d27,_0x253db0){return _0x1f6d27===_0x253db0;},'vZOII':function(_0x2782e4,_0x551bba){return _0x2782e4(_0x551bba);}};if(_0x28ea76[_0x2c2519(0x196)](typeof _0x51f9a3,_0x2c2519(0x18f)))return _0x28ea76[_0x2c2519(0x187)](sanitizeLoneSurrogates,_0x51f9a3);if(Array['isArray'](_0x51f9a3)){let _0x3009e1=![];const _0xd496f6=_0x51f9a3['map'](_0x3bc8c6=>{const _0x6c3d4e=_0x2c2519,_0x434b4c=_0x28ea76['fdMUD'](sanitizeLoneSurrogatesDeep,_0x3bc8c6);return _0x434b4c['updated']&&(_0x3009e1=!![]),_0x434b4c[_0x6c3d4e(0x16e)];});return _0x3009e1?{'updated':!![],'value':_0xd496f6}:{'updated':![],'value':_0x51f9a3};}if(!isRecord(_0x51f9a3))return{'updated':![],'value':_0x51f9a3};let _0x39379d=![];const _0x33c683=Object['entries'](_0x51f9a3)['map'](([_0x38b772,_0x11028d])=>{const _0x5cc8ef=_0x2c2519,_0x2e7452=_0x28ea76['fdMUD'](sanitizeLoneSurrogatesDeep,_0x11028d);return _0x2e7452['updated']&&(_0x39379d=!![]),[_0x38b772,_0x2e7452[_0x5cc8ef(0x16e)]];});return _0x39379d?{'updated':!![],'value':Object['fromEntries'](_0x33c683)}:{'updated':![],'value':_0x51f9a3};}export function createMcpImageBase64Hook(){const _0x3f167d={'IldSf':function(_0x7c58e7,_0x13889e){return _0x7c58e7(_0x13889e);}};return async _0xddf625=>{const _0xd1cbde=_0x3251;if(_0xddf625['hook_event_name']!=='PostToolUse')return{};const _0x49180c=_0xddf625,_0x45f5b1=await convertToolOutputImagesToBase64(_0x49180c['tool_response']),_0x239723=_0x3f167d['IldSf'](sanitizeLoneSurrogatesDeep,_0x45f5b1[_0xd1cbde(0x16c)]),_0x263780=_0x45f5b1['updated']||_0x239723['updated'];if(!_0x263780)return{};return{'hookSpecificOutput':{'hookEventName':_0xd1cbde(0x178),'updatedMCPToolOutput':_0x239723['value']}};};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x2ba4(_0x286054,_0x3b0fc7){_0x286054=_0x286054-0x144;const _0x8d9b4e=_0x8d9b();let _0x2ba4c5=_0x8d9b4e[_0x286054];return _0x2ba4c5;}const _0x34ef09=_0x2ba4;(function(_0x22ef99,_0x2674a7){const _0x460efa=_0x2ba4,_0x1eedec=_0x22ef99();while(!![]){try{const _0x417365=parseInt(_0x460efa(0x148))/0x1+parseInt(_0x460efa(0x144))/0x2+-parseInt(_0x460efa(0x14b))/0x3+parseInt(_0x460efa(0x147))/0x4*(-parseInt(_0x460efa(0x149))/0x5)+-parseInt(_0x460efa(0x146))/0x6*(parseInt(_0x460efa(0x14d))/0x7)+parseInt(_0x460efa(0x14a))/0x8+-parseInt(_0x460efa(0x145))/0x9;if(_0x417365===_0x2674a7)break;else _0x1eedec['push'](_0x1eedec['shift']());}catch(_0x446671){_0x1eedec['push'](_0x1eedec['shift']());}}}(_0x8d9b,0x2dee2));const VERIFY_MODEL_ALIASES={'opus':'claude-opus-4-6','sonnet':_0x34ef09(0x14e)};export const DEFAULT_VERIFY_MODEL='claude-sonnet-4-6';export function resolveVerifyModel(_0x4f6f5a){const _0x56a2d1=_0x34ef09,_0x1d123a={'jnbXo':function(_0x3a4df6,_0x253981){return _0x3a4df6??_0x253981;}};if(!_0x4f6f5a)return undefined;const _0x51b090=_0x4f6f5a['trim']();if(!_0x51b090)return undefined;const _0x3dfbe8=VERIFY_MODEL_ALIASES[_0x51b090[_0x56a2d1(0x14c)]()];return _0x1d123a['jnbXo'](_0x3dfbe8,_0x51b090);}function _0x8d9b(){const _0x51be46=['588462VngRQJ','claude-sonnet-4-6','656112sCfRDe','2690586KUkmIo','6CnrkUX','14116EgszFv','68523zQGBPO','45baBunl','2523416IUTqMA','327285kjtOkE','toLowerCase'];_0x8d9b=function(){return _0x51be46;};return _0x8d9b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x427f81,_0x9b2edf){var _0x3fe4e3=_0x4cf7,_0x474c52=_0x427f81();while(!![]){try{var _0x4256f3=parseInt(_0x3fe4e3(0x119))/0x1+-parseInt(_0x3fe4e3(0x11b))/0x2*(-parseInt(_0x3fe4e3(0x113))/0x3)+-parseInt(_0x3fe4e3(0x10f))/0x4*(parseInt(_0x3fe4e3(0x120))/0x5)+-parseInt(_0x3fe4e3(0x114))/0x6+-parseInt(_0x3fe4e3(0x10e))/0x7*(-parseInt(_0x3fe4e3(0x121))/0x8)+-parseInt(_0x3fe4e3(0x112))/0x9*(-parseInt(_0x3fe4e3(0x11c))/0xa)+parseInt(_0x3fe4e3(0x115))/0xb*(parseInt(_0x3fe4e3(0x11d))/0xc);if(_0x4256f3===_0x9b2edf)break;else _0x474c52['push'](_0x474c52['shift']());}catch(_0x3a0e5){_0x474c52['push'](_0x474c52['shift']());}}}(_0x1ed5,0xbfa84));import{homedir}from'os';import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';function _0x1ed5(){var _0x304212=['OPENCODE_CONFIG_DIR','9iiIqbe','51KwMTnm','9371094vOmkZy','2519xolAvP','pEoBv','YulPh','XDG_CONFIG_HOME','662680nnXOtX','wySZf','113574IiqEzV','9300540kaWgPV','62628XNXZSR','.config','mBBFO','1995qosjUS','10576hWNDfq','854nYbkOJ','15716HkLyoo','env'];_0x1ed5=function(){return _0x304212;};return _0x1ed5();}export function getOpencodeConfigDir(_0x4151c5){var _0x50a75c=_0x4cf7,_0x1253e={'rbQJW':function(_0x315720,_0xc64022){return _0x315720===_0xc64022;},'pEoBv':function(_0x9cec80,_0x5a4c31,_0x5d34c6){return _0x9cec80(_0x5a4c31,_0x5d34c6);},'wySZf':'opencode','mBBFO':function(_0x444150){return _0x444150();},'zYasF':_0x50a75c(0x11e),'YulPh':function(_0x5b3484,_0x54e407,_0x25947f){return _0x5b3484(_0x54e407,_0x25947f);},'sUBnW':function(_0x4b5b78){return _0x4b5b78();},'czQIj':'.opencode'};if(process[_0x50a75c(0x110)][_0x50a75c(0x111)])return process['env'][_0x50a75c(0x111)];if(_0x1253e['rbQJW'](_0x4151c5,'user')){if(process['env'][_0x50a75c(0x118)])return _0x1253e[_0x50a75c(0x116)](join,process[_0x50a75c(0x110)]['XDG_CONFIG_HOME'],_0x1253e[_0x50a75c(0x11a)]);return join(_0x1253e[_0x50a75c(0x11f)](homedir),_0x1253e['zYasF'],_0x1253e[_0x50a75c(0x11a)]);}return _0x1253e[_0x50a75c(0x117)](join,_0x1253e['sUBnW'](getProjectRoot),_0x1253e['czQIj']);}function _0x4cf7(_0x181698,_0x423970){_0x181698=_0x181698-0x10e;var _0x1ed594=_0x1ed5();var _0x4cf708=_0x1ed594[_0x181698];return _0x4cf708;}export function getOpencodeSkillsDir(_0x47a7d7){return join(getOpencodeConfigDir(_0x47a7d7),'skills');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xa02688=_0x1d83;(function(_0x514380,_0xcb30f5){const _0x2dc569=_0x1d83,_0x1de4a3=_0x514380();while(!![]){try{const _0x3db824=parseInt(_0x2dc569(0x17d))/0x1+-parseInt(_0x2dc569(0x16c))/0x2+parseInt(_0x2dc569(0x164))/0x3+parseInt(_0x2dc569(0x171))/0x4*(parseInt(_0x2dc569(0x15d))/0x5)+parseInt(_0x2dc569(0x178))/0x6+-parseInt(_0x2dc569(0x153))/0x7+parseInt(_0x2dc569(0x160))/0x8;if(_0x3db824===_0xcb30f5)break;else _0x1de4a3['push'](_0x1de4a3['shift']());}catch(_0x4f4522){_0x1de4a3['push'](_0x1de4a3['shift']());}}}(_0x31b8,0x260ee));function _0x1d83(_0x2d3358,_0x3af105){_0x2d3358=_0x2d3358-0x14e;const _0x31b8c4=_0x31b8();let _0x1d83c6=_0x31b8c4[_0x2d3358];return _0x1d83c6;}import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0xa02688(0x172);function toPlaywrightCliSessionKey(_0x2a6be0){const _0x3d9aa9=_0xa02688,_0x4e7235={'yPubu':_0x3d9aa9(0x151),'VrFKG':'hex'},_0x236661=createHash(_0x4e7235['yPubu'])[_0x3d9aa9(0x15f)](_0x2a6be0)['digest'](_0x4e7235['VrFKG'])[_0x3d9aa9(0x17e)](0x0,0xc);return'rg-'+_0x236661;}function shellQuote(_0x5a4049){return'\x27'+_0x5a4049['replace'](/'/g,'\x27\x5c\x27\x27')+'\x27';}function _0x31b8(){const _0x49812a=['unknown','string','length','18444LoFPIS','CLCZS','script','data','join','map','sVuKW','sessionId','229370QIvgnA','dNKBd','hCWAv','pipe','timed\x20out\x20after\x20','844JIsBEG','@playwright/cli','null','stderr','toString','values','VaEmY','844848mxCFlX','uKwpb','INhnL','ignore','error','193347scqMAy','slice','trim','\x0astdout:\x20','ZrRxk','timeoutMs','nPTgN','sha256','find','1330049XlFmAp','command','commandArgs','configPath','kill','HmFfB','...','\x0astderr:\x20','--config','-s=','985QGOKnG','bash_command','update','629664EdsQth'];_0x31b8=function(){return _0x49812a;};return _0x31b8();}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x589dd9){return SAFE_SHELL_TOKEN['test'](_0x589dd9)?_0x589dd9:shellQuote(_0x589dd9);}export function buildPlaywrightCliInvocation(_0x124ed2,_0x37beda,_0x4496e1){const _0x13183d=_0xa02688,_0x522da5={'LOHxt':'npx','PIrIB':function(_0x31a5df,_0x2548bd){return _0x31a5df(_0x2548bd);},'HmFfB':function(_0x1a69ce,_0x271838){return _0x1a69ce(_0x271838);}},_0x1c48fb=toPlaywrightCliSessionKey(_0x124ed2),[_0x17d1e1=_0x13183d(0x161)]=_0x4496e1,_0x6d184f=[PLAYWRIGHT_CLI_BINARY,_0x13183d(0x15c)+_0x1c48fb,'--config',_0x37beda,..._0x4496e1];return{'command':'npx','args':_0x6d184f,'shellCommand':[_0x522da5['LOHxt'],PLAYWRIGHT_CLI_BINARY,_0x13183d(0x15c)+_0x522da5['PIrIB'](quoteShellArg,_0x1c48fb),'--config',_0x522da5[_0x13183d(0x158)](quoteShellArg,_0x37beda),..._0x4496e1[_0x13183d(0x169)](quoteShellArg)][_0x13183d(0x168)]('\x20'),'subcommand':_0x17d1e1};}export function buildPlaywrightCliCommandPrefix(_0xbb4bbf,_0x4e83fc){const _0x4e5cf9=_0xa02688,_0x1d9ad7={'sVuKW':function(_0x626917,_0x1178c0){return _0x626917(_0x1178c0);},'oZiuJ':'npx','xglYZ':_0x4e5cf9(0x15b)},_0x35d353=_0x1d9ad7[_0x4e5cf9(0x16a)](toPlaywrightCliSessionKey,_0xbb4bbf);return[_0x1d9ad7['oZiuJ'],PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x35d353),_0x1d9ad7['xglYZ'],quoteShellArg(_0x4e83fc)][_0x4e5cf9(0x168)]('\x20');}function truncateOutput(_0x28aa00,_0x353fc4=0x7d0){const _0x1e2bc9=_0xa02688,_0x18cbed={'dNKBd':function(_0x3d4053,_0x559568){return _0x3d4053>_0x559568;},'nPTgN':function(_0x28a35e,_0x3518cc){return _0x28a35e+_0x3518cc;}};return _0x18cbed[_0x1e2bc9(0x16d)](_0x28aa00['length'],_0x353fc4)?_0x18cbed[_0x1e2bc9(0x150)](_0x28aa00['slice'](0x0,_0x353fc4),_0x1e2bc9(0x159)):_0x28aa00;}export async function runPlaywrightCliCommand(_0x2aa5db){const _0x4fa281=_0xa02688,_0x41b876={'VaEmY':'SIGKILL','WGrPX':'SIGTERM','OAyjI':function(_0x28247b,_0x2e3433,_0x8ea836){return _0x28247b(_0x2e3433,_0x8ea836);},'ZrRxk':function(_0x8dc4e9,_0x725a22){return _0x8dc4e9(_0x725a22);},'uKwpb':function(_0x1517fb,_0x401252){return _0x1517fb(_0x401252);},'CLCZS':'null','eMMeU':_0x4fa281(0x17b),'hCWAv':_0x4fa281(0x16f)},_0x1281e5=buildPlaywrightCliInvocation(_0x2aa5db[_0x4fa281(0x16b)],_0x2aa5db[_0x4fa281(0x156)],_0x2aa5db[_0x4fa281(0x155)]);return new Promise((_0x351b68,_0x130ba6)=>{const _0x554d87=_0x4fa281,_0x29d616=spawn(_0x1281e5[_0x554d87(0x154)],_0x1281e5['args'],{'cwd':_0x2aa5db['cwd'],'env':_0x2aa5db['env'],'stdio':[_0x41b876['eMMeU'],_0x554d87(0x16f),_0x41b876[_0x554d87(0x16e)]]});let _0x23495c='',_0x48d039='',_0x3326ad=![];const _0x11ea56=_0x2aa5db['timeoutMs']&&_0x2aa5db[_0x554d87(0x14f)]>0x0?setTimeout(()=>{const _0x1f95c9=_0x554d87,_0x410f14={'IHqRR':_0x41b876[_0x1f95c9(0x177)]};_0x3326ad=!![],_0x29d616[_0x1f95c9(0x157)](_0x41b876['WGrPX']),_0x41b876['OAyjI'](setTimeout,()=>{try{_0x29d616['kill'](_0x410f14['IHqRR']);}catch{}},0x3e8);},_0x2aa5db[_0x554d87(0x14f)]):null;_0x29d616['stdout']?.['on']('data',_0x546777=>{_0x23495c+=_0x546777['toString']();}),_0x29d616[_0x554d87(0x174)]?.['on'](_0x554d87(0x167),_0x180f9d=>{const _0x39b2a7=_0x554d87;_0x48d039+=_0x180f9d[_0x39b2a7(0x175)]();}),_0x29d616['on'](_0x554d87(0x17c),_0x35e809=>{const _0x5c285f=_0x554d87;if(_0x11ea56)clearTimeout(_0x11ea56);_0x41b876[_0x5c285f(0x14e)](_0x130ba6,_0x35e809);}),_0x29d616['on']('close',(_0x361c7d,_0x584e0b)=>{const _0x35d298=_0x554d87;if(_0x11ea56)_0x41b876['uKwpb'](clearTimeout,_0x11ea56);if(_0x361c7d===0x0){_0x41b876[_0x35d298(0x179)](_0x351b68,{'stdout':_0x23495c,'stderr':_0x48d039,'invocation':_0x1281e5});return;}const _0x50f0c6=_0x3326ad?_0x35d298(0x170)+_0x2aa5db[_0x35d298(0x14f)]+'ms':'exited\x20with\x20code='+(_0x361c7d??_0x35d298(0x173))+'\x20signal='+(_0x584e0b??_0x41b876[_0x35d298(0x165)]);_0x130ba6(new Error('playwright-cli\x20'+_0x1281e5['subcommand']+'\x20'+_0x50f0c6+_0x35d298(0x180)+_0x41b876[_0x35d298(0x179)](truncateOutput,_0x23495c)+_0x35d298(0x15a)+truncateOutput(_0x48d039)));});});}export function extractBashCommand(_0x56ab21){const _0x3a53c6=_0xa02688,_0x567ab7={'INhnL':_0x3a53c6(0x166),'uKFBp':_0x3a53c6(0x15e),'PEHbF':function(_0xe593ae,_0x3c5604){return _0xe593ae===_0x3c5604;},'sTaYO':'string'},_0x36ed67=['command','cmd',_0x567ab7[_0x3a53c6(0x17a)],_0x567ab7['uKFBp']];for(const _0x425983 of _0x36ed67){const _0x3f6752=_0x56ab21[_0x425983];if(_0x567ab7['PEHbF'](typeof _0x3f6752,_0x567ab7['sTaYO'])&&_0x3f6752[_0x3a53c6(0x17f)]())return _0x3f6752;}const _0x184f6=Object[_0x3a53c6(0x176)](_0x56ab21)[_0x3a53c6(0x152)](_0xf948eb=>typeof _0xf948eb===_0x3a53c6(0x162)&&_0xf948eb[_0x3a53c6(0x17f)]()[_0x3a53c6(0x163)]>0x0);return _0x184f6??null;}export function parsePlaywrightCliCommand(_0x2c5197){const _0x129d0a=_0x2c5197['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x129d0a?.[0x1]??null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x24517e,_0x74bf37){const _0x186865=_0x4258,_0x5b76cb=_0x24517e();while(!![]){try{const _0x1c9fda=parseInt(_0x186865(0x183))/0x1+parseInt(_0x186865(0x189))/0x2*(-parseInt(_0x186865(0x18a))/0x3)+-parseInt(_0x186865(0x187))/0x4*(-parseInt(_0x186865(0x181))/0x5)+parseInt(_0x186865(0x180))/0x6+-parseInt(_0x186865(0x182))/0x7*(parseInt(_0x186865(0x188))/0x8)+-parseInt(_0x186865(0x186))/0x9*(parseInt(_0x186865(0x185))/0xa)+-parseInt(_0x186865(0x184))/0xb;if(_0x1c9fda===_0x74bf37)break;else _0x5b76cb['push'](_0x5b76cb['shift']());}catch(_0x1a0964){_0x5b76cb['push'](_0x5b76cb['shift']());}}}(_0x2a85,0xa90b0));function _0x4258(_0x2b3df3,_0x100aa8){_0x2b3df3=_0x2b3df3-0x180;const _0x2a8527=_0x2a85();let _0x425856=_0x2a8527[_0x2b3df3];return _0x425856;}const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';function _0x2a85(){const _0xebe415=['10vLbCum','1799406yglCga','4ZBVBaK','1897296fZbSpt','357142msBmPt','3VcOxVA','2854050lqDnbr','5862305ExjgSk','21NgXCZK','1298513gpmipj','12806838lhnSeX'];_0x2a85=function(){return _0xebe415;};return _0x2a85();}export function formatProfileRequiredMessage(_0x522c20){const _0x8d534e=_0x522c20?_0x522c20(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'+_0x8d534e+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4f31ca,_0x42c80f){const _0x595659=_0x5629,_0x427e64=_0x4f31ca();while(!![]){try{const _0x1af4bf=parseInt(_0x595659(0xa3))/0x1+-parseInt(_0x595659(0xa6))/0x2+-parseInt(_0x595659(0xa4))/0x3+parseInt(_0x595659(0xac))/0x4*(parseInt(_0x595659(0xb1))/0x5)+-parseInt(_0x595659(0xae))/0x6+-parseInt(_0x595659(0xb2))/0x7+-parseInt(_0x595659(0xb3))/0x8*(-parseInt(_0x595659(0xa9))/0x9);if(_0x1af4bf===_0x42c80f)break;else _0x427e64['push'](_0x427e64['shift']());}catch(_0x4c47a9){_0x427e64['push'](_0x427e64['shift']());}}}(_0x49d4,0x9ea20));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x297b99=_0x5629,_0x32ed1a={'xxuHk':function(_0x1c7801,_0x372348){return _0x1c7801+_0x372348;},'OpKvY':function(_0x54e2cc,_0x538eed){return _0x54e2cc+_0x538eed;},'VXSJM':_0x297b99(0xa2),'SjTUV':'<div\x20class=\x22ranger-banner__message\x22>','StAWa':'</div>'},_0x3025c4=_0x32ed1a['xxuHk'](_0x32ed1a['OpKvY'](_0x32ed1a['VXSJM']+_0x297b99(0xa5)+_0x32ed1a[_0x297b99(0xb0)],_0x297b99(0xaf)),'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>')+_0x32ed1a[_0x297b99(0xad)]+_0x32ed1a[_0x297b99(0xad)]+'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>',_0x17caf6=_0x297b99(0xa7);return _0x297b99(0xab)+JSON[_0x297b99(0xaa)](_0x3025c4)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON['stringify'](_0x17caf6)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());function _0x49d4(){const _0x49c245=['\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a','addInitScript','12276CyhHsa','stringify','\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20','154796FUnHfA','StAWa','966930QHdPJI','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','SjTUV','115WuaEde','8163939XvGzjj','13696tbeFMc','<div\x20class=\x22ranger-banner__content\x22>','452969QJMQXX','2332206YiSfmQ','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','1847240BiyiuO'];_0x49d4=function(){return _0x49c245;};return _0x49d4();}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x5629(_0x18ffe1,_0x2320d1){_0x18ffe1=_0x18ffe1-0xa2;const _0x49d408=_0x49d4();let _0x5629dd=_0x49d408[_0x18ffe1];return _0x5629dd;}export async function addProfileSetupBanner(_0x31b644){const _0xc3d363=_0x5629;await _0x31b644[_0xc3d363(0xa8)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x170e65,_0x43c8dc){const _0x9c8f70=_0x19c2,_0x2e2179=_0x170e65();while(!![]){try{const _0x4c9947=-parseInt(_0x9c8f70(0x1b8))/0x1+parseInt(_0x9c8f70(0x1ac))/0x2+-parseInt(_0x9c8f70(0x1bb))/0x3*(parseInt(_0x9c8f70(0x1b1))/0x4)+parseInt(_0x9c8f70(0x1b9))/0x5*(-parseInt(_0x9c8f70(0x1ae))/0x6)+parseInt(_0x9c8f70(0x1b4))/0x7*(-parseInt(_0x9c8f70(0x1c1))/0x8)+parseInt(_0x9c8f70(0x1b2))/0x9*(parseInt(_0x9c8f70(0x1b6))/0xa)+parseInt(_0x9c8f70(0x1af))/0xb*(parseInt(_0x9c8f70(0x1c0))/0xc);if(_0x4c9947===_0x43c8dc)break;else _0x2e2179['push'](_0x2e2179['shift']());}catch(_0x25165e){_0x2e2179['push'](_0x2e2179['shift']());}}}(_0x3970,0xe23f6));function _0x3970(){const _0x3795df=['utf-8','11506831FnPfJN','warn','1210910FlUmSi','model','1475498qquSzu','815DvFNBQ','object','4395wJuWrX','dQASL','dySTb','message','config.json','23942448UoLjpK','8uXpWZO','yrlZz','2380312YhckeQ','parse','29478vYOltV','22KIMQVN','isArray','4548LCctXb','99oslXZB'];_0x3970=function(){return _0x3795df;};return _0x3970();}import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x570d83=_0x19c2,_0x5890e6={'rIoQM':function(_0x5649b3){return _0x5649b3();}};return join(_0x5890e6['rIoQM'](getRangerDir),_0x570d83(0x1bf));}function _0x19c2(_0x2a430d,_0x284be6){_0x2a430d=_0x2a430d-0x1ac;const _0x397089=_0x3970();let _0x19c29e=_0x397089[_0x2a430d];return _0x19c29e;}export async function loadRangerConfig(){const _0x55da11=_0x19c2,_0x12844d={'kPdJX':function(_0x2707ee){return _0x2707ee();},'dQASL':function(_0x13590b,_0x3bf48c){return _0x13590b!==_0x3bf48c;},'yrlZz':_0x55da11(0x1ba),'dySTb':function(_0x1f5199,_0x52766a){return _0x1f5199===_0x52766a;}},_0x30a955=_0x12844d['kPdJX'](getRangerConfigPath);if(!existsSync(_0x30a955))return{};try{const _0x322ad7=await readFile(_0x30a955,_0x55da11(0x1b3)),_0xd49a3b=JSON[_0x55da11(0x1ad)](_0x322ad7);if(!_0xd49a3b||_0x12844d[_0x55da11(0x1bc)](typeof _0xd49a3b,_0x12844d[_0x55da11(0x1c2)])||Array[_0x55da11(0x1b0)](_0xd49a3b))return{};const _0x514309={},_0x4fa0fa=_0xd49a3b['model'];return _0x12844d[_0x55da11(0x1bd)](typeof _0x4fa0fa,'string')&&(_0x514309[_0x55da11(0x1b7)]=_0x4fa0fa),_0x514309;}catch(_0x10a583){const _0x3b70e5=_0x10a583 instanceof Error?_0x10a583[_0x55da11(0x1be)]:String(_0x10a583);return console[_0x55da11(0x1b5)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x30a955+':\x20'+_0x3b70e5),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x2fab(){const _0xf38434=['468vQicRK','39645OBXXcM','34328lOvJPF','523512akwDut','132FBFAWb','root','8MYZsuv','uFXcx','gmuEd','902684ZwekBp','.git','22nGFdSg','1525707rhOvQo','vdJnX','398790czTjYz','RjKbz','100odhYgj','rtFCH','IJBop','5153ULnPfm','XjUKS','.ranger'];_0x2fab=function(){return _0xf38434;};return _0x2fab();}(function(_0x494172,_0x4bd741){const _0x1daa4a=_0x5163,_0x12e189=_0x494172();while(!![]){try{const _0x46a208=-parseInt(_0x1daa4a(0x112))/0x1*(parseInt(_0x1daa4a(0x10a))/0x2)+-parseInt(_0x1daa4a(0x10b))/0x3+parseInt(_0x1daa4a(0x108))/0x4+parseInt(_0x1daa4a(0x100))/0x5*(parseInt(_0x1daa4a(0xff))/0x6)+parseInt(_0x1daa4a(0x101))/0x7*(-parseInt(_0x1daa4a(0x105))/0x8)+parseInt(_0x1daa4a(0x10d))/0x9*(-parseInt(_0x1daa4a(0x10f))/0xa)+parseInt(_0x1daa4a(0x102))/0xb*(parseInt(_0x1daa4a(0x103))/0xc);if(_0x46a208===_0x4bd741)break;else _0x12e189['push'](_0x12e189['shift']());}catch(_0x92d5dd){_0x12e189['push'](_0x12e189['shift']());}}}(_0x2fab,0x56855));import{dirname,join,parse}from'path';import{existsSync}from'fs';function _0x5163(_0x184225,_0x520277){_0x184225=_0x184225-0xff;const _0x2fab0c=_0x2fab();let _0x516365=_0x2fab0c[_0x184225];return _0x516365;}import{homedir}from'os';export function getRangerRoot(){const _0x866094=_0x5163,_0x3f9f20={'RjKbz':function(_0x45e108,_0x19c05e){return _0x45e108(_0x19c05e);},'zianc':function(_0x17215a,_0x38ac4b){return _0x17215a!==_0x38ac4b;},'QKriO':function(_0x8089bf,_0x49caea){return _0x8089bf(_0x49caea);},'fDUiz':function(_0x3fa7b1,_0x5b6c89,_0x12893d){return _0x3fa7b1(_0x5b6c89,_0x12893d);},'XjUKS':'.ranger','rtFCH':function(_0x29623f,_0x2a3d5b){return _0x29623f(_0x2a3d5b);}};let _0x25fadd=process['cwd']();const _0x25e8e4=_0x3f9f20[_0x866094(0x10e)](parse,_0x25fadd)[_0x866094(0x104)];while(_0x3f9f20['zianc'](_0x25fadd,_0x25e8e4)){if(_0x3f9f20['QKriO'](existsSync,_0x3f9f20['fDUiz'](join,_0x25fadd,_0x3f9f20[_0x866094(0x113)])))return _0x25fadd;_0x25fadd=dirname(_0x25fadd);}if(_0x3f9f20[_0x866094(0x110)](existsSync,join(_0x25e8e4,_0x3f9f20['XjUKS'])))return _0x25e8e4;const _0x885cbf=findGitRoot();if(_0x885cbf)return _0x885cbf;return process['cwd']();}export function getRangerDir(){const _0x21de5b=_0x5163,_0x44a674={'vdJnX':function(_0xa00ac5){return _0xa00ac5();}};return join(_0x44a674[_0x21de5b(0x10c)](getRangerRoot),_0x21de5b(0x114));}export function findGitRoot(){const _0x17ff3e=_0x5163,_0x2e1623={'UooUb':function(_0xe51672,_0x3ca893){return _0xe51672(_0x3ca893);},'CPSEj':function(_0x4af735,_0x435c90){return _0x4af735(_0x435c90);},'IJBop':function(_0x36d229,_0x5a58ea){return _0x36d229(_0x5a58ea);},'essQb':'.git'};let _0x37218a=process['cwd']();const _0x3987a4=_0x2e1623['UooUb'](parse,_0x37218a)['root'];while(_0x37218a!==_0x3987a4){if(_0x2e1623['CPSEj'](existsSync,join(_0x37218a,_0x17ff3e(0x109))))return _0x37218a;_0x37218a=dirname(_0x37218a);}if(_0x2e1623[_0x17ff3e(0x111)](existsSync,join(_0x3987a4,_0x2e1623['essQb'])))return _0x3987a4;return null;}export function getRangerHomeDir(){const _0x45baf0=_0x5163,_0x29c98f={'uFXcx':function(_0x47230f,_0x4fb981,_0x187578){return _0x47230f(_0x4fb981,_0x187578);},'gmuEd':function(_0x1ae4a5){return _0x1ae4a5();}};return _0x29c98f[_0x45baf0(0x106)](join,_0x29c98f[_0x45baf0(0x107)](homedir),_0x45baf0(0x114));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x54657e,_0x27838f){const _0x464cd4=_0x15fa,_0xaa614d=_0x54657e();while(!![]){try{const _0x43d653=-parseInt(_0x464cd4(0x132))/0x1*(parseInt(_0x464cd4(0x14d))/0x2)+-parseInt(_0x464cd4(0x139))/0x3+-parseInt(_0x464cd4(0x143))/0x4*(parseInt(_0x464cd4(0x144))/0x5)+parseInt(_0x464cd4(0x14f))/0x6*(parseInt(_0x464cd4(0x14c))/0x7)+parseInt(_0x464cd4(0x13a))/0x8*(-parseInt(_0x464cd4(0x146))/0x9)+-parseInt(_0x464cd4(0x131))/0xa+parseInt(_0x464cd4(0x145))/0xb*(parseInt(_0x464cd4(0x136))/0xc);if(_0x43d653===_0x27838f)break;else _0xaa614d['push'](_0xaa614d['shift']());}catch(_0x41728f){_0xaa614d['push'](_0xaa614d['shift']());}}}(_0x395d,0x8a906));import{readdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x395d(){const _0x567f6f=['10801380ejClRe','198178kjJEru','length','toFixed','join','26962296dZKXIo','sort','severity','2459184UuVZqv','1422760ytiQQf','map','**URL:**\x20','filename','ATTqE','description','replace',']\x20Issue','charAt','3908492dDSrdj','5gXxUfr','22gUhNhV','45rHdOMI','---','slice','toISOString','**Status:**\x20','push','19117LrXmSU','2NeMyXu','**Session:**\x20`','84ZoBEtT','ISSUES\x20FOUND','split','MAJOR','PASSED'];_0x395d=function(){return _0x567f6f;};return _0x395d();}function _0x15fa(_0xc8a86a,_0x147086){_0xc8a86a=_0xc8a86a-0x130;const _0x395d6e=_0x395d();let _0x15fa5d=_0x395d6e[_0xc8a86a];return _0x15fa5d;}export async function collectScreenshots(_0x5c1a9f){const _0x5c7c1a=_0x15fa,_0x26472d={'rMchd':function(_0x28ef4b,_0x25c290){return _0x28ef4b(_0x25c290);}},_0x500d5d=[],_0x55783a=[];if(!existsSync(_0x5c1a9f))return{'screenshots':_0x500d5d,'paths':_0x55783a};const _0x2f5171=await _0x26472d['rMchd'](readdir,_0x5c1a9f),_0x4bbcc6=_0x2f5171['filter'](_0x1c2dfd=>/\.(png|jpg|jpeg|gif|webp)$/i['test'](_0x1c2dfd))[_0x5c7c1a(0x137)]();for(const _0x23a440 of _0x4bbcc6){const _0x35deee=join(_0x5c1a9f,_0x23a440);_0x500d5d['push']({'filename':_0x23a440,'path':_0x35deee,'relativePath':'./'+_0x23a440}),_0x55783a['push'](_0x35deee);}return{'screenshots':_0x500d5d,'paths':_0x55783a};}function getSeverityEmoji(_0x12f966){const _0x95665c=_0x15fa;switch(_0x12f966){case'BLOCKER':return'🔴';case _0x95665c(0x152):return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x3292bd){const _0xfe01c4=_0x15fa,_0x4518de=_0x3292bd['replace'](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x2df0d3=_0x4518de[_0xfe01c4(0x140)](/^\d+-/,'');return _0x2df0d3[_0xfe01c4(0x151)]('-')[_0xfe01c4(0x13b)](_0x46cfd4=>_0x46cfd4[_0xfe01c4(0x142)](0x0)['toUpperCase']()+_0x46cfd4[_0xfe01c4(0x148)](0x1))[_0xfe01c4(0x135)]('\x20');}export function generateMarkdownReport(_0x3d359c){const _0x5b83e9=_0x15fa,_0x2d225b={'ATTqE':function(_0x20770f,_0x4b2602){return _0x20770f/_0x4b2602;},'EMIux':function(_0x3f139f,_0x36f331){return _0x3f139f>_0x36f331;},'VojsO':function(_0x4b5862,_0x258e44){return _0x4b5862(_0x258e44);}},{sessionId:_0x865971,task:_0x5a3999,url:_0xc02276,success:_0x381b74,summary:_0x368afa,issues:_0x4b62b0,screenshots:_0x4d1e3b,durationMs:_0x26cccd,traceViewerUrl:_0x9d977b}=_0x3d359c,_0x4c34d1=new Date()[_0x5b83e9(0x149)](),_0x1c9ce4=_0x2d225b[_0x5b83e9(0x13e)](_0x26cccd,0x3e8)[_0x5b83e9(0x134)](0x1),_0x1bd6f2=[];_0x1bd6f2[_0x5b83e9(0x14b)]('#\x20Verification\x20Report'),_0x1bd6f2['push'](''),_0x1bd6f2[_0x5b83e9(0x14b)](_0x5b83e9(0x14e)+_0x865971+'`'),_0x1bd6f2[_0x5b83e9(0x14b)]('**Generated:**\x20'+_0x4c34d1),_0x1bd6f2['push']('**Duration:**\x20'+_0x1c9ce4+'s'),_0x1bd6f2[_0x5b83e9(0x14b)](''),_0x1bd6f2['push']('##\x20Task'),_0x1bd6f2['push'](''),_0x1bd6f2['push'](_0x5b83e9(0x13c)+_0xc02276),_0x1bd6f2[_0x5b83e9(0x14b)](''),_0x1bd6f2['push']('>\x20'+_0x5a3999),_0x1bd6f2['push'](''),_0x1bd6f2[_0x5b83e9(0x14b)]('##\x20Result'),_0x1bd6f2['push']('');const _0x245a10=_0x381b74?'✅':'❌';_0x1bd6f2['push'](_0x5b83e9(0x14a)+_0x245a10+'\x20'+(_0x381b74?_0x5b83e9(0x130):_0x5b83e9(0x150))),_0x1bd6f2['push'](''),_0x1bd6f2[_0x5b83e9(0x14b)]('###\x20Summary'),_0x1bd6f2['push'](''),_0x1bd6f2[_0x5b83e9(0x14b)](_0x368afa),_0x1bd6f2['push']('');if(_0x4b62b0&&_0x2d225b['EMIux'](_0x4b62b0[_0x5b83e9(0x133)],0x0)){_0x1bd6f2['push']('###\x20Issues\x20Found\x20('+_0x4b62b0[_0x5b83e9(0x133)]+')'),_0x1bd6f2['push']('');for(const _0xedb560 of _0x4b62b0){const _0x393293=getSeverityEmoji(_0xedb560['severity']);_0x1bd6f2[_0x5b83e9(0x14b)]('####\x20'+_0x393293+'\x20['+_0xedb560[_0x5b83e9(0x138)]+_0x5b83e9(0x141)),_0x1bd6f2[_0x5b83e9(0x14b)](''),_0x1bd6f2['push'](_0xedb560[_0x5b83e9(0x13f)]),_0x1bd6f2[_0x5b83e9(0x14b)]('');if(_0xedb560['screenshot']){const _0x4fd941=_0xedb560['screenshot'],_0x34c066=_0x4d1e3b['find'](_0x51b2c4=>_0x51b2c4[_0x5b83e9(0x13d)]===_0x4fd941||_0x51b2c4['filename']['includes'](_0x4fd941));_0x34c066&&(_0x1bd6f2[_0x5b83e9(0x14b)]('**Screenshot:**'),_0x1bd6f2['push'](''),_0x1bd6f2['push'](''),_0x1bd6f2['push'](''));}}}if(_0x2d225b['EMIux'](_0x4d1e3b[_0x5b83e9(0x133)],0x0)){_0x1bd6f2[_0x5b83e9(0x14b)]('##\x20Screenshots\x20('+_0x4d1e3b['length']+')'),_0x1bd6f2['push']('');for(const _0x88c419 of _0x4d1e3b){const _0x48d74c=_0x2d225b['VojsO'](formatScreenshotCaption,_0x88c419[_0x5b83e9(0x13d)]);_0x1bd6f2[_0x5b83e9(0x14b)]('###\x20'+_0x48d74c),_0x1bd6f2['push'](''),_0x1bd6f2['push']('!['+_0x88c419['filename']+']('+_0x88c419['relativePath']+')'),_0x1bd6f2['push']('');}}return _0x9d977b&&(_0x1bd6f2[_0x5b83e9(0x14b)](_0x5b83e9(0x147)),_0x1bd6f2[_0x5b83e9(0x14b)](''),_0x1bd6f2[_0x5b83e9(0x14b)]('**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer]('+_0x9d977b+')'),_0x1bd6f2[_0x5b83e9(0x14b)]('')),_0x1bd6f2[_0x5b83e9(0x135)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x50704e,_0x4ef7d7){const _0x1c79ad=_0x29d8,_0x278126=_0x50704e();while(!![]){try{const _0x255fe4=parseInt(_0x1c79ad(0x104))/0x1+-parseInt(_0x1c79ad(0x10c))/0x2+-parseInt(_0x1c79ad(0x105))/0x3+-parseInt(_0x1c79ad(0x103))/0x4*(-parseInt(_0x1c79ad(0x10d))/0x5)+-parseInt(_0x1c79ad(0x10b))/0x6*(-parseInt(_0x1c79ad(0x109))/0x7)+-parseInt(_0x1c79ad(0x101))/0x8+parseInt(_0x1c79ad(0x107))/0x9;if(_0x255fe4===_0x4ef7d7)break;else _0x278126['push'](_0x278126['shift']());}catch(_0x1fe7f6){_0x278126['push'](_0x278126['shift']());}}}(_0x44fd,0x51cc3));function _0x29d8(_0x203d11,_0x2427de){_0x203d11=_0x203d11-0x100;const _0x44fd36=_0x44fd();let _0x29d864=_0x44fd36[_0x203d11];return _0x29d864;}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x44e984,_0x4b20fa){const _0x373866=_0x29d8,_0x1c02cd={'IdIgJ':function(_0x555ddf){return _0x555ddf();},'qPoHV':function(_0x429bd0,_0x3b62e8){return _0x429bd0(_0x3b62e8);},'HZKYe':function(_0x33ee76,_0x4fd467){return _0x33ee76*_0x4fd467;},'oRJCw':function(_0x3acf18,_0x591be5){return _0x3acf18+_0x591be5;}},_0xdf8d12=_0x4b20fa?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x3f7ca1=_0x4b20fa?.[_0x373866(0x108)]??DEFAULT_BASE_DELAY_MS;let _0x534517;for(let _0xbde9e5=0x0;_0xbde9e5<=_0xdf8d12;_0xbde9e5++){try{return await _0x1c02cd[_0x373866(0x100)](_0x44e984);}catch(_0x3d18c4){_0x534517=_0x3d18c4 instanceof Error?_0x3d18c4:new Error(_0x1c02cd[_0x373866(0x10e)](String,_0x3d18c4));if(_0xbde9e5<_0xdf8d12){const _0x49c908=_0x1c02cd[_0x373866(0x106)](_0x3f7ca1,Math[_0x373866(0x10a)](0x2,_0xbde9e5));_0x4b20fa?.['label']&&console['error'](_0x4b20fa['label']+'\x20failed\x20(attempt\x20'+_0x1c02cd['oRJCw'](_0xbde9e5,0x1)+'/'+(_0xdf8d12+0x1)+_0x373866(0x102)+_0x49c908+'ms...'),await new Promise(_0x1e981e=>setTimeout(_0x1e981e,_0x49c908));}}}throw _0x534517;}function _0x44fd(){const _0x4fdc3a=['baseDelayMs','686AgpJaO','pow','38604zcVWeF','1312844RdmvgF','26515koQNwK','qPoHV','IdIgJ','164296GkLoGH','),\x20retrying\x20in\x20','144FParWN','208475sYcXlK','1001691dEybkW','HZKYe','2843856zExWeN'];_0x44fd=function(){return _0x4fdc3a;};return _0x44fd();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4ce9be=_0x5a6c;(function(_0x194c09,_0x16c2ee){const _0x1dfb96=_0x5a6c,_0xfb0459=_0x194c09();while(!![]){try{const _0x50b4fd=-parseInt(_0x1dfb96(0x153))/0x1+parseInt(_0x1dfb96(0x144))/0x2+-parseInt(_0x1dfb96(0x154))/0x3*(-parseInt(_0x1dfb96(0x162))/0x4)+parseInt(_0x1dfb96(0x151))/0x5+-parseInt(_0x1dfb96(0x146))/0x6*(-parseInt(_0x1dfb96(0x143))/0x7)+parseInt(_0x1dfb96(0x155))/0x8+-parseInt(_0x1dfb96(0x14e))/0x9;if(_0x50b4fd===_0x16c2ee)break;else _0xfb0459['push'](_0xfb0459['shift']());}catch(_0x459aa8){_0xfb0459['push'](_0xfb0459['shift']());}}}(_0x7f60,0xc7161));import*as _0x29ec63 from'fs';import*as _0x52927b from'path';import*as _0x4af9c7 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x52927b['join'](_0x4af9c7['homedir'](),'.claude',_0x4ce9be(0x158));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x5d2897=_0x4ce9be,_0xf97ad2={'vvKQT':'utf-8'};try{if(_0x29ec63['existsSync'](CACHE_FILE)){const _0x50d661=JSON[_0x5d2897(0x148)](_0x29ec63[_0x5d2897(0x14a)](CACHE_FILE,_0xf97ad2['vvKQT']));return{'version':0x3,'sessions':_0x50d661[_0x5d2897(0x13f)]||{},'branches':_0x50d661[_0x5d2897(0x141)]||{},'lastEnabledSessionClearedAt':_0x50d661['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0xcb21b9){const _0x5baa13=_0x4ce9be;try{const _0x3d0b7a=_0x52927b[_0x5baa13(0x14b)](CACHE_FILE);!_0x29ec63[_0x5baa13(0x14d)](_0x3d0b7a)&&_0x29ec63[_0x5baa13(0x142)](_0x3d0b7a,{'recursive':!![]}),_0x29ec63['writeFileSync'](CACHE_FILE,JSON[_0x5baa13(0x15c)](_0xcb21b9,null,0x2));}catch{}}export function getCurrentBranch(){const _0x2ea05a=_0x4ce9be,_0x45dedc={'NfpMk':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','ghlDu':_0x2ea05a(0x160)};try{const _0xa5f4cb=execSync(_0x45dedc['NfpMk'],{'encoding':'utf-8','stdio':[_0x2ea05a(0x160),_0x45dedc['ghlDu'],'pipe']})[_0x2ea05a(0x149)]();if(!_0xa5f4cb||_0xa5f4cb==='HEAD')return null;return _0xa5f4cb;}catch{return null;}}function _0x7f60(){const _0xdb10da=['180664pibZqD','wpgNC','2595354fhSVyN','main','parse','trim','readFileSync','dirname','Qotwa','existsSync','10974105lILsJu','lastPlanReminderAt','lastEnabledSessionClearedAt','7444655apkSPR','LwkwN','1073397VHGBDd','3BrdaKu','960432gshxrw','XlOkf','fPBid','.ranger_cache.json','registeredAt','clear','pezOt','stringify','enabled','master','now','pipe','HKAYP','3905292zcEhZW','SdctY','sYXOz','currentBranch','GlLIM','lvjel','sessions','featureId','branches','mkdirSync','7iIjJdJ'];_0x7f60=function(){return _0xdb10da;};return _0x7f60();}export function enableBranch(_0x3a1f56){const _0x29b019=_0x4ce9be,_0xe9b4ba={'OjTII':function(_0x503d83){return _0x503d83();}},_0x510d28=_0xe9b4ba['OjTII'](loadCache);_0x510d28[_0x29b019(0x141)][_0x3a1f56]=!![],saveCache(_0x510d28);}export function disableBranch(_0x456456){const _0x29b889=_0x4ce9be,_0x9856f8={'XlOkf':function(_0xa57d1){return _0xa57d1();},'EqrcC':function(_0x1dd753,_0x50f486){return _0x1dd753(_0x50f486);}},_0x12a09b=_0x9856f8[_0x29b889(0x156)](loadCache);delete _0x12a09b['branches'][_0x456456],_0x9856f8['EqrcC'](saveCache,_0x12a09b);}export function isBranchEnabled(_0x1c5d06){const _0x536d44=_0x4ce9be,_0x4c1303={'HKAYP':function(_0xe34687){return _0xe34687();}},_0x8136e6=_0x4c1303[_0x536d44(0x161)](loadCache);return _0x8136e6['branches'][_0x1c5d06]===!![];}function getOrCreateSession(_0x38357e,_0x2f65f9){const _0x1c1c03=_0x4ce9be;return!_0x38357e['sessions'][_0x2f65f9]&&(_0x38357e[_0x1c1c03(0x13f)][_0x2f65f9]={}),_0x38357e['sessions'][_0x2f65f9];}export function enableSession(_0x387521){const _0x2a5f00=_0x4ce9be,_0x14ee3f={'vllbm':function(_0x12c2d2,_0x512113){return _0x12c2d2!==_0x512113;},'lwrgN':_0x2a5f00(0x147)},_0x1f0821=loadCache(),_0x415761=getOrCreateSession(_0x1f0821,_0x387521);_0x415761[_0x2a5f00(0x15d)]=!![];const _0x6f6019=getCurrentBranch();_0x6f6019&&_0x14ee3f['vllbm'](_0x6f6019,_0x14ee3f['lwrgN'])&&_0x6f6019!=='master'&&(_0x1f0821['branches'][_0x6f6019]=!![],_0x415761[_0x2a5f00(0x165)]=_0x6f6019),saveCache(_0x1f0821);}export function isSessionEnabled(_0x4fd747){const _0x4163f7=_0x4ce9be,_0xbced9a={'lvjel':function(_0x9de75b){return _0x9de75b();},'Qotwa':function(_0x32ccda,_0x123d17){return _0x32ccda===_0x123d17;},'Nqwej':_0x4163f7(0x15e),'NPYmO':function(_0x5953c2,_0x26271a){return _0x5953c2===_0x26271a;},'JRWVc':function(_0x143f0a,_0x446ac4){return _0x143f0a||_0x446ac4;}},_0x109762=loadCache(),_0x30f0af=_0xbced9a[_0x4163f7(0x167)](getCurrentBranch);if(!_0x30f0af||_0x30f0af==='main'||_0xbced9a['Qotwa'](_0x30f0af,_0xbced9a['Nqwej']))return _0x109762[_0x4163f7(0x13f)][_0x4fd747]?.[_0x4163f7(0x15d)]===!![];const _0x1526da=_0xbced9a[_0x4163f7(0x14c)](_0x109762['branches'][_0x30f0af],!![]),_0x3c1a67=_0xbced9a['NPYmO'](_0x109762[_0x4163f7(0x13f)][_0x4fd747]?.[_0x4163f7(0x15d)],!![]);return _0xbced9a['JRWVc'](_0x1526da,_0x3c1a67);}export function disableSession(_0x521032){const _0x409816=_0x4ce9be,_0x6ac25d={'uiKqA':function(_0x16cb72,_0x430c5a,_0x6be296){return _0x16cb72(_0x430c5a,_0x6be296);}},_0x4613f4=loadCache(),_0x347d4b=_0x6ac25d['uiKqA'](getOrCreateSession,_0x4613f4,_0x521032);_0x347d4b[_0x409816(0x15d)]=![],saveCache(_0x4613f4);}export function updateBranchTracking(_0xc2f214){const _0x29a98e=_0x4ce9be,_0x5a576e={'iNrrG':function(_0x2b6682){return _0x2b6682();},'wpgNC':_0x29a98e(0x147),'pfUFE':'master'},_0x373545=_0x5a576e['iNrrG'](loadCache),_0x47d6f9=_0x373545['sessions'][_0xc2f214];if(!_0x47d6f9?.['enabled'])return;const _0x448fa6=_0x5a576e['iNrrG'](getCurrentBranch);if(!_0x448fa6||_0x448fa6===_0x5a576e[_0x29a98e(0x145)]||_0x448fa6===_0x5a576e['pfUFE'])return;_0x47d6f9['currentBranch']!==_0x448fa6&&(_0x373545[_0x29a98e(0x141)][_0x448fa6]=!![],_0x47d6f9['currentBranch']=_0x448fa6,saveCache(_0x373545));}export function initBranchTracking(_0x5071bd){const _0x513f1b=_0x4ce9be,_0x3ea30d={'fPBid':_0x513f1b(0x147),'SdctY':function(_0x248acd,_0x20cbe7){return _0x248acd===_0x20cbe7;},'Bnixd':function(_0x46ee9b,_0xb3edd1,_0x4ee6c6){return _0x46ee9b(_0xb3edd1,_0x4ee6c6);}},_0x58234a=loadCache(),_0x159345=getCurrentBranch();if(!_0x159345||_0x159345===_0x3ea30d[_0x513f1b(0x157)]||_0x3ea30d[_0x513f1b(0x163)](_0x159345,'master'))return;if(_0x58234a[_0x513f1b(0x141)][_0x159345]===!![]){const _0xe26a3c=_0x3ea30d['Bnixd'](getOrCreateSession,_0x58234a,_0x5071bd);_0xe26a3c[_0x513f1b(0x15d)]=!![],_0xe26a3c[_0x513f1b(0x165)]=_0x159345,saveCache(_0x58234a);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x49ea32){const _0x15faf8=_0x4ce9be,_0x5374cc={'nffhz':function(_0x5ef4bb,_0xccbd30){return _0x5ef4bb(_0xccbd30);}},_0x2409f4=loadCache(),_0x349189=_0x2409f4[_0x15faf8(0x13f)][_0x49ea32];_0x349189?.[_0x15faf8(0x15d)]&&(_0x2409f4[_0x15faf8(0x150)]=Date[_0x15faf8(0x15f)](),_0x5374cc['nffhz'](saveCache,_0x2409f4));}export function shouldAutoEnableAfterClear(_0x3063d2){const _0x527956=_0x4ce9be,_0x42a9c6={'WLfMV':_0x527956(0x15a)};if(_0x3063d2!==_0x42a9c6['WLfMV'])return![];const _0x5f07c0=loadCache(),_0x63eb37=_0x5f07c0['lastEnabledSessionClearedAt'];if(!_0x63eb37)return![];const _0x19bf91=Date[_0x527956(0x15f)]()-_0x63eb37;return _0x19bf91<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x4dc80e){const _0x40e606=_0x4ce9be,_0x33c4ac={'IXghe':function(_0x1ccb20){return _0x1ccb20();},'qwEgc':function(_0x3c3c23,_0xdc470e,_0x2e0840){return _0x3c3c23(_0xdc470e,_0x2e0840);},'pezOt':function(_0x1351ed,_0x23b981){return _0x1351ed!==_0x23b981;},'sYXOz':function(_0x5dea62,_0x2a5309){return _0x5dea62(_0x2a5309);}},_0x3dbc7b=_0x33c4ac['IXghe'](loadCache),_0x194cef=_0x33c4ac['qwEgc'](getOrCreateSession,_0x3dbc7b,_0x4dc80e);_0x194cef['enabled']=!![];const _0x3c3986=getCurrentBranch();_0x3c3986&&_0x33c4ac[_0x40e606(0x15b)](_0x3c3986,'main')&&_0x3c3986!=='master'&&(_0x194cef[_0x40e606(0x165)]=_0x3c3986),delete _0x3dbc7b[_0x40e606(0x150)],_0x33c4ac[_0x40e606(0x164)](saveCache,_0x3dbc7b);}export function registerSession(_0x161295,_0x16d4d0){const _0x345041=_0x4ce9be,_0x58ebfa={'oOkrB':function(_0x49d68e){return _0x49d68e();}},_0x3144f8=_0x58ebfa['oOkrB'](loadCache),_0x319d27=getOrCreateSession(_0x3144f8,_0x161295);_0x319d27['featureId']=_0x16d4d0,_0x319d27[_0x345041(0x159)]=new Date()['toISOString'](),saveCache(_0x3144f8);}function _0x5a6c(_0x6195e9,_0x125cc1){_0x6195e9=_0x6195e9-0x13f;const _0x7f60d4=_0x7f60();let _0x5a6ce5=_0x7f60d4[_0x6195e9];return _0x5a6ce5;}export function getSessionEntry(_0x3379ca){const _0x28cb1a=_0x4ce9be,_0x3153ff=loadCache(),_0xacaf6=_0x3153ff[_0x28cb1a(0x13f)][_0x3379ca];if(_0xacaf6?.['featureId']&&_0xacaf6?.[_0x28cb1a(0x159)])return{'featureId':_0xacaf6['featureId'],'registeredAt':_0xacaf6[_0x28cb1a(0x159)]};return null;}export function unregisterSession(_0x2ae2f5){const _0x5337ff=_0x4ce9be,_0x3b754f=loadCache(),_0x12c4b5=_0x3b754f[_0x5337ff(0x13f)][_0x2ae2f5];_0x12c4b5&&(delete _0x12c4b5[_0x5337ff(0x140)],delete _0x12c4b5[_0x5337ff(0x159)],saveCache(_0x3b754f));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x5484cc){const _0x35ec6f=_0x4ce9be,_0x15cdc1={'kWyop':function(_0x5a4176,_0x58838d,_0x1e1a43){return _0x5a4176(_0x58838d,_0x1e1a43);},'IDnAd':function(_0x2f3600,_0x4ab640){return _0x2f3600-_0x4ab640;},'JsLAv':function(_0x3ff452,_0x181581){return _0x3ff452(_0x181581);}},_0x1ddb50=loadCache(),_0x3ecada=_0x15cdc1['kWyop'](getOrCreateSession,_0x1ddb50,_0x5484cc),_0x37cbd6=_0x3ecada['lastPlanReminderAt']||0x0,_0x2fe2d8=Date[_0x35ec6f(0x15f)]();if(_0x15cdc1['IDnAd'](_0x2fe2d8,_0x37cbd6)>=PLAN_REMINDER_INTERVAL_MS)return _0x3ecada[_0x35ec6f(0x14f)]=_0x2fe2d8,_0x15cdc1['JsLAv'](saveCache,_0x1ddb50),!![];return![];}export function shouldShowStopReminder(_0x574160){const _0x531e28={'zuEKc':function(_0x1401d9,_0x2007d2){return _0x1401d9-_0x2007d2;},'yNyvJ':function(_0x4e0299,_0x365c92){return _0x4e0299(_0x365c92);}},_0x392fb7=loadCache(),_0x56eebc=getOrCreateSession(_0x392fb7,_0x574160),_0xefaf08=_0x56eebc['lastStopReminderAt']||0x0,_0x36fbeb=Date['now']();if(_0x531e28['zuEKc'](_0x36fbeb,_0xefaf08)>=STOP_REMINDER_INTERVAL_MS)return _0x56eebc['lastStopReminderAt']=_0x36fbeb,_0x531e28['yNyvJ'](saveCache,_0x392fb7),!![];return![];}export function hasSessionBeenPrompted(_0x5296de){const _0xf4ad6e=_0x4ce9be,_0x5d6b76={'GlLIM':function(_0x712610,_0x1e2779){return _0x712610===_0x1e2779;}},_0x32ad54=loadCache();return _0x5d6b76[_0xf4ad6e(0x166)](_0x32ad54['sessions'][_0x5296de]?.['prompted'],!![]);}export function markSessionPrompted(_0x86537e){const _0x48b30d=_0x4ce9be,_0x45ae32={'SbFCN':function(_0x48af73){return _0x48af73();},'LwkwN':function(_0x12c701,_0x4dd465,_0x4764d1){return _0x12c701(_0x4dd465,_0x4764d1);}},_0x4e9c39=_0x45ae32['SbFCN'](loadCache),_0x141a5f=_0x45ae32[_0x48b30d(0x152)](getOrCreateSession,_0x4e9c39,_0x86537e);_0x141a5f['prompted']=!![],saveCache(_0x4e9c39);}export function getCacheFile(){return CACHE_FILE;}
|
|
1
|
+
const _0x5d4704=_0x3d47;(function(_0x1520b6,_0x1bfbd3){const _0x26a199=_0x3d47,_0x383c13=_0x1520b6();while(!![]){try{const _0x2580f3=parseInt(_0x26a199(0x13d))/0x1*(parseInt(_0x26a199(0x166))/0x2)+parseInt(_0x26a199(0x152))/0x3+parseInt(_0x26a199(0x15f))/0x4*(parseInt(_0x26a199(0x13b))/0x5)+parseInt(_0x26a199(0x147))/0x6+parseInt(_0x26a199(0x15d))/0x7*(-parseInt(_0x26a199(0x169))/0x8)+parseInt(_0x26a199(0x146))/0x9+parseInt(_0x26a199(0x165))/0xa*(-parseInt(_0x26a199(0x156))/0xb);if(_0x2580f3===_0x1bfbd3)break;else _0x383c13['push'](_0x383c13['shift']());}catch(_0x389da6){_0x383c13['push'](_0x383c13['shift']());}}}(_0xda68,0x3d316));import*as _0x49ec3a from'fs';import*as _0x3a596b from'path';import*as _0x14f13d from'os';import{execSync}from'child_process';const CACHE_FILE=_0x3a596b[_0x5d4704(0x15e)](_0x14f13d['homedir'](),_0x5d4704(0x13c),_0x5d4704(0x15c));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x38e44f=_0x5d4704,_0x48fa5c={'tULmI':'utf-8','QGdGL':function(_0x2e47a0){return _0x2e47a0();}};try{if(_0x49ec3a[_0x38e44f(0x153)](CACHE_FILE)){const _0x5bdbd2=JSON['parse'](_0x49ec3a['readFileSync'](CACHE_FILE,_0x48fa5c['tULmI']));return{'version':0x3,'sessions':_0x5bdbd2[_0x38e44f(0x14b)]||{},'branches':_0x5bdbd2['branches']||{},'lastEnabledSessionClearedAt':_0x5bdbd2['lastEnabledSessionClearedAt']};}}catch{}return _0x48fa5c[_0x38e44f(0x167)](createEmptyCache);}function _0xda68(){const _0x456500=['1815228NUTZzX','QUDRg','htamr','pipe','sessions','xZGDF','lastStopReminderAt','wFpEq','featureId','lastEnabledSessionClearedAt','trim','689541DlBkXd','existsSync','prompted','pMVqU','11asKrOe','tyFFX','now','gCHYb','branches','FILof','.ranger_cache.json','999411QeZXMn','join','1268vBBiLW','main','utf-8','enabled','ZMUIC','gUYXF','8174980ZlLgkn','474766JISDlb','QGdGL','cThJk','16vOTKUf','1030fcwfsb','.claude','2kILgxm','CJegF','IlRbB','aveQN','rLYje','TIMff','git\x20rev-parse\x20--abbrev-ref\x20HEAD','zAFfS','master','2531133IKwGLy'];_0xda68=function(){return _0x456500;};return _0xda68();}function _0x3d47(_0x3930ac,_0x36b001){_0x3930ac=_0x3930ac-0x13b;const _0xda68aa=_0xda68();let _0x3d476c=_0xda68aa[_0x3930ac];return _0x3d476c;}function saveCache(_0xd7f610){try{const _0x2ae428=_0x3a596b['dirname'](CACHE_FILE);!_0x49ec3a['existsSync'](_0x2ae428)&&_0x49ec3a['mkdirSync'](_0x2ae428,{'recursive':!![]}),_0x49ec3a['writeFileSync'](CACHE_FILE,JSON['stringify'](_0xd7f610,null,0x2));}catch{}}export function getCurrentBranch(){const _0x5c5a8c=_0x5d4704,_0xdc092b={'tIOYa':_0x5c5a8c(0x161),'TIMff':_0x5c5a8c(0x14a),'elrXQ':'HEAD'};try{const _0x34b71e=execSync(_0x5c5a8c(0x143),{'encoding':_0xdc092b['tIOYa'],'stdio':[_0xdc092b[_0x5c5a8c(0x142)],_0xdc092b[_0x5c5a8c(0x142)],_0xdc092b['TIMff']]})[_0x5c5a8c(0x151)]();if(!_0x34b71e||_0x34b71e===_0xdc092b['elrXQ'])return null;return _0x34b71e;}catch{return null;}}export function enableBranch(_0x4f5be1){const _0x2276f8=_0x5d4704,_0x4b1947={'ZvvkH':function(_0x5e2b50,_0x223078){return _0x5e2b50(_0x223078);}},_0x52b94c=loadCache();_0x52b94c[_0x2276f8(0x15a)][_0x4f5be1]=!![],_0x4b1947['ZvvkH'](saveCache,_0x52b94c);}export function disableBranch(_0x103fda){const _0x29e715={'dtCWu':function(_0x57566d){return _0x57566d();},'DnGID':function(_0x425545,_0x2701bc){return _0x425545(_0x2701bc);}},_0x1597d6=_0x29e715['dtCWu'](loadCache);delete _0x1597d6['branches'][_0x103fda],_0x29e715['DnGID'](saveCache,_0x1597d6);}export function isBranchEnabled(_0x12775e){const _0x3db233=_0x5d4704,_0x3faa51={'jqAxL':function(_0x4dadac,_0x1625d1){return _0x4dadac===_0x1625d1;}},_0xbd9bbd=loadCache();return _0x3faa51['jqAxL'](_0xbd9bbd[_0x3db233(0x15a)][_0x12775e],!![]);}function getOrCreateSession(_0x34491a,_0x159739){const _0x151e69=_0x5d4704;return!_0x34491a['sessions'][_0x159739]&&(_0x34491a[_0x151e69(0x14b)][_0x159739]={}),_0x34491a['sessions'][_0x159739];}export function enableSession(_0xbd4c3c){const _0xb3ceb5=_0x5d4704,_0x51a3b5={'FILof':function(_0x33b3c4){return _0x33b3c4();},'aveQN':function(_0x4c2d83,_0x44cd87){return _0x4c2d83!==_0x44cd87;},'pMVqU':function(_0x13119b,_0x4fa549){return _0x13119b(_0x4fa549);}},_0x44a176=_0x51a3b5[_0xb3ceb5(0x15b)](loadCache),_0x2599f7=getOrCreateSession(_0x44a176,_0xbd4c3c);_0x2599f7[_0xb3ceb5(0x162)]=!![];const _0x16b107=_0x51a3b5['FILof'](getCurrentBranch);_0x16b107&&_0x51a3b5[_0xb3ceb5(0x140)](_0x16b107,'main')&&_0x51a3b5['aveQN'](_0x16b107,_0xb3ceb5(0x145))&&(_0x44a176[_0xb3ceb5(0x15a)][_0x16b107]=!![],_0x2599f7['currentBranch']=_0x16b107),_0x51a3b5[_0xb3ceb5(0x155)](saveCache,_0x44a176);}export function isSessionEnabled(_0x9ceef0){const _0x51e19f=_0x5d4704,_0x471518={'UjDUp':function(_0x4af69e,_0xbbfae9){return _0x4af69e===_0xbbfae9;},'QUDRg':'master','FIHuH':function(_0x24a151,_0x21e20c){return _0x24a151===_0x21e20c;},'xZGDF':function(_0x59a04b,_0x2da13e){return _0x59a04b||_0x2da13e;}},_0x2e0e42=loadCache(),_0x336cb7=getCurrentBranch();if(!_0x336cb7||_0x336cb7===_0x51e19f(0x160)||_0x471518['UjDUp'](_0x336cb7,_0x471518[_0x51e19f(0x148)]))return _0x2e0e42['sessions'][_0x9ceef0]?.['enabled']===!![];const _0x4c7af7=_0x2e0e42[_0x51e19f(0x15a)][_0x336cb7]===!![],_0x233f40=_0x471518['FIHuH'](_0x2e0e42['sessions'][_0x9ceef0]?.['enabled'],!![]);return _0x471518[_0x51e19f(0x14c)](_0x4c7af7,_0x233f40);}export function disableSession(_0x1e7002){const _0x147ddc=_0x5d4704,_0x1e3727=loadCache(),_0x2e4586=getOrCreateSession(_0x1e3727,_0x1e7002);_0x2e4586[_0x147ddc(0x162)]=![],saveCache(_0x1e3727);}export function updateBranchTracking(_0x39d199){const _0x1ac070=_0x5d4704,_0x10356d={'IlRbB':function(_0x118fbc){return _0x118fbc();},'tyFFX':function(_0x2ef187,_0x1bcebc){return _0x2ef187===_0x1bcebc;},'gCHYb':'main','rLYje':function(_0x485872,_0xaca9cb){return _0x485872(_0xaca9cb);}},_0x1da79e=_0x10356d[_0x1ac070(0x13f)](loadCache),_0xcee4c4=_0x1da79e['sessions'][_0x39d199];if(!_0xcee4c4?.[_0x1ac070(0x162)])return;const _0x350792=getCurrentBranch();if(!_0x350792||_0x10356d['tyFFX'](_0x350792,_0x10356d[_0x1ac070(0x159)])||_0x10356d[_0x1ac070(0x157)](_0x350792,'master'))return;_0xcee4c4['currentBranch']!==_0x350792&&(_0x1da79e[_0x1ac070(0x15a)][_0x350792]=!![],_0xcee4c4['currentBranch']=_0x350792,_0x10356d[_0x1ac070(0x141)](saveCache,_0x1da79e));}export function initBranchTracking(_0x125636){const _0x4b5a3d=_0x5d4704,_0x3318f0={'ctKJB':'main','vLmfs':'master','cThJk':function(_0x1e0d76,_0x2d40f2){return _0x1e0d76===_0x2d40f2;}},_0xa2f7a9=loadCache(),_0xeb5f8c=getCurrentBranch();if(!_0xeb5f8c||_0xeb5f8c===_0x3318f0['ctKJB']||_0xeb5f8c===_0x3318f0['vLmfs'])return;if(_0x3318f0[_0x4b5a3d(0x168)](_0xa2f7a9['branches'][_0xeb5f8c],!![])){const _0x44b5da=getOrCreateSession(_0xa2f7a9,_0x125636);_0x44b5da[_0x4b5a3d(0x162)]=!![],_0x44b5da['currentBranch']=_0xeb5f8c,saveCache(_0xa2f7a9);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x136593){const _0x1d6f5c=_0x5d4704,_0x322fdd={'ZMUIC':function(_0x45ee34){return _0x45ee34();}},_0x1bfbff=_0x322fdd[_0x1d6f5c(0x163)](loadCache),_0x302a2c=_0x1bfbff['sessions'][_0x136593];_0x302a2c?.[_0x1d6f5c(0x162)]&&(_0x1bfbff[_0x1d6f5c(0x150)]=Date['now'](),saveCache(_0x1bfbff));}export function shouldAutoEnableAfterClear(_0x251877){const _0x462033=_0x5d4704,_0x389946={'htamr':function(_0x3745de,_0x32769c){return _0x3745de-_0x32769c;},'RanES':function(_0x4b27c9,_0x4a93c2){return _0x4b27c9<=_0x4a93c2;}};if(_0x251877!=='clear')return![];const _0x1a6a7a=loadCache(),_0x3079eb=_0x1a6a7a[_0x462033(0x150)];if(!_0x3079eb)return![];const _0x5b21b8=_0x389946[_0x462033(0x149)](Date['now'](),_0x3079eb);return _0x389946['RanES'](_0x5b21b8,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0xc83e03){const _0x33a38c=_0x5d4704,_0x24c057={'TOYTo':function(_0x4e9e9a,_0x4b30e7){return _0x4e9e9a!==_0x4b30e7;},'pCZhx':function(_0x4eecdd,_0xc96173){return _0x4eecdd(_0xc96173);}},_0x31e9b7=loadCache(),_0x17526b=getOrCreateSession(_0x31e9b7,_0xc83e03);_0x17526b['enabled']=!![];const _0x140c5f=getCurrentBranch();_0x140c5f&&_0x24c057['TOYTo'](_0x140c5f,_0x33a38c(0x160))&&_0x140c5f!==_0x33a38c(0x145)&&(_0x17526b['currentBranch']=_0x140c5f),delete _0x31e9b7['lastEnabledSessionClearedAt'],_0x24c057['pCZhx'](saveCache,_0x31e9b7);}export function registerSession(_0x5ce388,_0xdf9758){const _0x5e7a8e={'HCHOe':function(_0x5c49cc){return _0x5c49cc();},'KnMQV':function(_0x39c056,_0x365afe){return _0x39c056(_0x365afe);}},_0x1d9839=_0x5e7a8e['HCHOe'](loadCache),_0x558ab1=getOrCreateSession(_0x1d9839,_0x5ce388);_0x558ab1['featureId']=_0xdf9758,_0x558ab1['registeredAt']=new Date()['toISOString'](),_0x5e7a8e['KnMQV'](saveCache,_0x1d9839);}export function getSessionEntry(_0x208acf){const _0x302f2f=_0x5d4704,_0x265056=loadCache(),_0x33f6b8=_0x265056['sessions'][_0x208acf];if(_0x33f6b8?.['featureId']&&_0x33f6b8?.['registeredAt'])return{'featureId':_0x33f6b8[_0x302f2f(0x14f)],'registeredAt':_0x33f6b8['registeredAt']};return null;}export function unregisterSession(_0x3b69e0){const _0x6b9cb0=_0x5d4704,_0x37326e={'FaaBJ':function(_0x56dda2){return _0x56dda2();},'CJegF':function(_0x5a0415,_0x5072ee){return _0x5a0415(_0x5072ee);}},_0x237509=_0x37326e['FaaBJ'](loadCache),_0x4a96e4=_0x237509[_0x6b9cb0(0x14b)][_0x3b69e0];_0x4a96e4&&(delete _0x4a96e4['featureId'],delete _0x4a96e4['registeredAt'],_0x37326e[_0x6b9cb0(0x13e)](saveCache,_0x237509));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x183452){const _0x45ebf4=_0x5d4704,_0x2de09e={'gUYXF':function(_0x19c527){return _0x19c527();},'TOKoc':function(_0x4cb454,_0x22bf4e){return _0x4cb454>=_0x22bf4e;},'bloEg':function(_0x52834e,_0x243286){return _0x52834e(_0x243286);}},_0x56ffdb=_0x2de09e[_0x45ebf4(0x164)](loadCache),_0xe9df8f=getOrCreateSession(_0x56ffdb,_0x183452),_0x5983ae=_0xe9df8f['lastPlanReminderAt']||0x0,_0xbabb96=Date['now']();if(_0x2de09e['TOKoc'](_0xbabb96-_0x5983ae,PLAN_REMINDER_INTERVAL_MS))return _0xe9df8f['lastPlanReminderAt']=_0xbabb96,_0x2de09e['bloEg'](saveCache,_0x56ffdb),!![];return![];}export function shouldShowStopReminder(_0x2c6c0a){const _0x5eae3b=_0x5d4704,_0x58d0a9={'NwVBi':function(_0xf42f45,_0x531016){return _0xf42f45-_0x531016;},'zAFfS':function(_0x1405a5,_0x6088d5){return _0x1405a5(_0x6088d5);}},_0x1a4539=loadCache(),_0x29f7e1=getOrCreateSession(_0x1a4539,_0x2c6c0a),_0x1d6ebc=_0x29f7e1[_0x5eae3b(0x14d)]||0x0,_0x31f907=Date[_0x5eae3b(0x158)]();if(_0x58d0a9['NwVBi'](_0x31f907,_0x1d6ebc)>=STOP_REMINDER_INTERVAL_MS)return _0x29f7e1['lastStopReminderAt']=_0x31f907,_0x58d0a9[_0x5eae3b(0x144)](saveCache,_0x1a4539),!![];return![];}export function hasSessionBeenPrompted(_0x1ee6f1){const _0x1593cf=_0x5d4704,_0x17eb57={'wFpEq':function(_0x57253b){return _0x57253b();}},_0x25786d=_0x17eb57[_0x1593cf(0x14e)](loadCache);return _0x25786d['sessions'][_0x1ee6f1]?.[_0x1593cf(0x154)]===!![];}export function markSessionPrompted(_0xc1102){const _0x1dad25=loadCache(),_0x526e2c=getOrCreateSession(_0x1dad25,_0xc1102);_0x526e2c['prompted']=!![],saveCache(_0x1dad25);}export function getCacheFile(){return CACHE_FILE;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x45f284=_0x1300;(function(_0x4e15c2,_0x477b15){const _0x48a990=_0x1300,_0xbf092a=_0x4e15c2();while(!![]){try{const _0x58a1ad=parseInt(_0x48a990(0xa1))/0x1+parseInt(_0x48a990(0xb4))/0x2*(parseInt(_0x48a990(0xcb))/0x3)+-parseInt(_0x48a990(0xc8))/0x4*(parseInt(_0x48a990(0x7d))/0x5)+parseInt(_0x48a990(0xb0))/0x6+parseInt(_0x48a990(0x7a))/0x7+parseInt(_0x48a990(0xd6))/0x8+-parseInt(_0x48a990(0x94))/0x9*(parseInt(_0x48a990(0xbb))/0xa);if(_0x58a1ad===_0x477b15)break;else _0xbf092a['push'](_0xbf092a['shift']());}catch(_0x1286f8){_0xbf092a['push'](_0xbf092a['shift']());}}}(_0x4547,0x5d761));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir}from'./rangerRoot.js';export function getEnvDir(_0x2092c4){const _0x1e90bf=_0x1300,_0x5ff177={'dEBUM':function(_0x3b27e4){return _0x3b27e4();},'UpInl':function(_0x24de7e,_0x2b4654,_0x15c2a7){return _0x24de7e(_0x2b4654,_0x15c2a7);},'ehkib':'local','gLrNk':function(_0xc46dc3,_0x1db223){return _0xc46dc3(_0x1db223);},'Pxlec':function(_0x25faf9,_0x3846f6){return _0x25faf9!==_0x3846f6;}},_0x2de13e=_0x5ff177['dEBUM'](getRangerDir),_0x3928dc=join(_0x2de13e,'ci',_0x2092c4),_0x15deac=join(_0x2de13e,'local',_0x2092c4),_0x5b33f9=_0x5ff177['UpInl'](join,_0x2de13e,_0x2092c4),_0x51d64b=join(_0x2de13e,_0x5ff177['ehkib']),_0x4d5679=_0x5ff177['UpInl'](join,_0x2de13e,'ci');if(_0x5ff177[_0x1e90bf(0xcf)](existsSync,_0x3928dc))return _0x3928dc;if(existsSync(_0x15deac))return _0x15deac;if(_0x5ff177[_0x1e90bf(0xcf)](existsSync,_0x5b33f9)&&(_0x5b33f9!==_0x51d64b&&_0x5ff177[_0x1e90bf(0xce)](_0x5b33f9,_0x4d5679)?!![]:hasLegacyProfileFiles(_0x5b33f9)))return _0x5b33f9;return _0x15deac;}export function findExistingEnv(_0x485d21,_0x5f0df6){const _0x1d7ac7=_0x1300,_0x41b1e4={'FVmgy':_0x1d7ac7(0x7b),'eaQhi':_0x1d7ac7(0x84),'jFffR':function(_0x5f1d10,_0x17f069,_0x44753c){return _0x5f1d10(_0x17f069,_0x44753c);},'UGjoD':function(_0x12dea7,_0x446caa,_0x5c4aaa,_0x3d1896){return _0x12dea7(_0x446caa,_0x5c4aaa,_0x3d1896);},'xGYOT':function(_0x3232aa,_0x5b34ea){return _0x3232aa===_0x5b34ea;}},_0x27632b=_0x5f0df6?.['rangerDir']??getRangerDir(),_0x15f5f5=_0x5f0df6?.['locations']??['ci',_0x41b1e4[_0x1d7ac7(0x99)],_0x41b1e4['eaQhi']],_0x206bbc=join(_0x27632b,'local'),_0x3e8012=_0x41b1e4[_0x1d7ac7(0xc2)](join,_0x27632b,'ci'),_0x54eb4d=[{'location':'ci','path':join(_0x27632b,'ci',_0x485d21)},{'location':'local','path':_0x41b1e4['UGjoD'](join,_0x27632b,_0x41b1e4[_0x1d7ac7(0x99)],_0x485d21)},{'location':'legacy','path':join(_0x27632b,_0x485d21)}];for(const _0x456eaf of _0x54eb4d){if(_0x15f5f5[_0x1d7ac7(0x91)](_0x456eaf['location'])&&existsSync(_0x456eaf[_0x1d7ac7(0x8a)])){if(_0x456eaf[_0x1d7ac7(0xad)]==='legacy'&&(_0x41b1e4[_0x1d7ac7(0xdc)](_0x456eaf['path'],_0x206bbc)||_0x456eaf[_0x1d7ac7(0x8a)]===_0x3e8012)&&!hasLegacyProfileFiles(_0x456eaf[_0x1d7ac7(0x8a)]))continue;return{'path':_0x456eaf['path'],'location':_0x456eaf['location']};}}return null;}function hasLegacyProfileFiles(_0x47c8d6){const _0x4d5ca0=_0x1300,_0x112515={'MclDI':function(_0x5b458f,_0x2bf8f2,_0x13bc48){return _0x5b458f(_0x2bf8f2,_0x13bc48);},'wpEhN':_0x4d5ca0(0xb7),'jwLrv':function(_0x33a867,_0x26698d){return _0x33a867(_0x26698d);},'HZnGa':_0x4d5ca0(0xa6)};return existsSync(_0x112515['MclDI'](join,_0x47c8d6,'settings.json'))||existsSync(join(_0x47c8d6,_0x112515['wpEhN']))||_0x112515[_0x4d5ca0(0xa3)](existsSync,_0x112515[_0x4d5ca0(0xe4)](join,_0x47c8d6,_0x112515[_0x4d5ca0(0xae)]));}export function isEnvCi(_0x2a6bcd){const _0x166168={'gHXUO':function(_0x1b6fcd){return _0x1b6fcd();}};return existsSync(join(_0x166168['gHXUO'](getRangerDir),'ci',_0x2a6bcd));}export async function cleanupTempFiles(_0x33353b){const _0x15b817=_0x1300,_0x5269bf={'HXVmy':_0x15b817(0xb9)},_0x1d94cf=[_0x33353b[_0x15b817(0xe2)],_0x33353b['configPath']][_0x15b817(0xb2)](Boolean);await Promise[_0x15b817(0xdd)](_0x1d94cf[_0x15b817(0xc1)](_0x359d9a=>unlink(_0x359d9a)[_0x15b817(0x87)](_0x225982=>{const _0x5f0df5=_0x15b817;_0x225982[_0x5f0df5(0x8c)]!==_0x5269bf[_0x5f0df5(0xa9)]&&console[_0x5f0df5(0x83)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x359d9a+':',_0x225982[_0x5f0df5(0x80)]);})));}export function getSettingsPath(_0x3f5363){const _0x5e0139=_0x1300,_0x26b676={'mAYQG':function(_0x1f33bc,_0x481d69,_0x368bed){return _0x1f33bc(_0x481d69,_0x368bed);},'OZREY':'settings.json'};return _0x26b676['mAYQG'](join,getEnvDir(_0x3f5363),_0x26b676[_0x5e0139(0x7f)]);}export async function loadSettings(_0x3ed589){const _0x2b9271=_0x1300,_0x3b008e={'lvshD':function(_0x31b738,_0x41156e){return _0x31b738(_0x41156e);},'TFngI':'utf-8'},_0x35be75=_0x3b008e['lvshD'](getSettingsPath,_0x3ed589);if(!_0x3b008e['lvshD'](existsSync,_0x35be75))return{};try{const _0x36a6b3=await readFile(_0x35be75,_0x3b008e[_0x2b9271(0x81)]);return JSON['parse'](_0x36a6b3);}catch{return{};}}export async function saveSettings(_0x20e9a1,_0x5588f8){const _0x2caa44=getSettingsPath(_0x20e9a1),_0x2f4c45=dirname(_0x2caa44);!existsSync(_0x2f4c45)&&await mkdir(_0x2f4c45,{'recursive':!![]}),await writeFile(_0x2caa44,JSON['stringify'](_0x5588f8,null,0x2));}function _0x1300(_0xd9a7d4,_0x11ec90){_0xd9a7d4=_0xd9a7d4-0x77;const _0x454733=_0x4547();let _0x1300df=_0x454733[_0xd9a7d4];return _0x1300df;}export function resolveEnvVars(_0x3abfde){const _0xeda0fc=_0x1300,_0x36633f={'UwPEx':function(_0x44e871,_0x41cc7e){return _0x44e871===_0x41cc7e;},'aiQDq':_0xeda0fc(0x88)};if(_0x36633f[_0xeda0fc(0xe6)](typeof _0x3abfde,_0xeda0fc(0xd4)))return _0x3abfde[_0xeda0fc(0x82)](/\$\{(\w+)\}/g,(_0x16790a,_0x2e5246)=>{const _0x2aea5d=_0xeda0fc,_0x4fdcc3=process[_0x2aea5d(0xd5)][_0x2e5246];if(_0x36633f['UwPEx'](_0x4fdcc3,undefined))throw new Error('Environment\x20variable\x20'+_0x2e5246+'\x20is\x20not\x20set');return _0x4fdcc3;});if(Array[_0xeda0fc(0x98)](_0x3abfde))return _0x3abfde['map'](resolveEnvVars);if(_0x3abfde&&typeof _0x3abfde===_0x36633f[_0xeda0fc(0xa4)])return Object[_0xeda0fc(0x9e)](Object['entries'](_0x3abfde)[_0xeda0fc(0xc1)](([_0x2439af,_0x1e56e5])=>[_0x2439af,resolveEnvVars(_0x1e56e5)]));return _0x3abfde;}const isRecord=_0x55c763=>typeof _0x55c763===_0x45f284(0x88)&&_0x55c763!==null&&!Array[_0x45f284(0x98)](_0x55c763),asRecord=_0x2631a7=>isRecord(_0x2631a7)?_0x2631a7:undefined,mergeHeaders=(_0x8830ca,_0x2fad6d)=>{const _0x3cf9fc=_0x45f284,_0xe05d84={'dvtNH':function(_0x2f1dbb,_0x56768){return _0x2f1dbb??_0x56768;}},_0x43c126={..._0xe05d84['dvtNH'](_0x8830ca,{}),..._0xe05d84[_0x3cf9fc(0x95)](_0x2fad6d,{})};return Object[_0x3cf9fc(0x7c)](_0x43c126)[_0x3cf9fc(0x85)]?_0x43c126:undefined;},SAFE_MODE_ARGS=[_0x45f284(0xb5)],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost','--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x2472a5,_0x3659d0={}){const _0x1b2764=_0x45f284,_0x756624={'qfiYt':function(_0x55612a,_0x395e34){return _0x55612a(_0x395e34);},'BharN':function(_0x3dd88c,_0x1aaa97){return _0x3dd88c(_0x1aaa97);},'HthHb':function(_0x4d51fc,_0x1f1022){return _0x4d51fc===_0x1f1022;},'CxqrX':'string'},_0x586c27=_0x756624['qfiYt'](asRecord,_0x2472a5[_0x1b2764(0xc7)]),_0x13f2c3={..._0x756624[_0x1b2764(0xd3)](asRecord,_0x586c27?.['launchOptions'])??{}};typeof _0x3659d0['headless']===_0x1b2764(0xd0)&&(_0x13f2c3['headless']=_0x3659d0['headless']);if(_0x2472a5['safeMode']){const _0xafc8d0=_0x13f2c3[_0x1b2764(0x77)]??[],_0x45beb3=SAFE_MODE_ARGS['filter'](_0x4b769d=>!_0xafc8d0['includes'](_0x4b769d));_0x13f2c3[_0x1b2764(0x77)]=[..._0xafc8d0,..._0x45beb3];}if(_0x2472a5[_0x1b2764(0x8d)]){const _0x1dc953=_0x13f2c3[_0x1b2764(0x77)]??[],_0x1e2945=ALLOW_LOCALHOST_ARGS['filter'](_0x380b4b=>!_0x1dc953[_0x1b2764(0x91)](_0x380b4b));_0x13f2c3['args']=[..._0x1dc953,..._0x1e2945];}const _0x2ee9bc={..._0x756624['BharN'](asRecord,_0x586c27?.['contextOptions'])??{}};_0x2ee9bc['ignoreHTTPSErrors']=!![];_0x756624[_0x1b2764(0xb8)](typeof _0x2472a5['userAgent'],_0x756624[_0x1b2764(0x78)])&&(_0x2ee9bc['userAgent']=_0x2472a5['userAgent']);const _0x297843=mergeHeaders(asRecord(_0x2ee9bc['extraHTTPHeaders']),asRecord(_0x2472a5[_0x1b2764(0x9f)]));return _0x297843?_0x2ee9bc['extraHTTPHeaders']=_0x297843:delete _0x2ee9bc['extraHTTPHeaders'],_0x3659d0['storageStatePath']&&(_0x2ee9bc[_0x1b2764(0xde)]=_0x3659d0['storageStatePath']),{'launchOptions':_0x13f2c3,'contextOptions':_0x2ee9bc};}export async function buildPlaywrightConfig(_0x5e8d55,_0x55d02d,_0xa9f9f6,_0x2d02d2){const _0xe60a3f=_0x45f284,_0x1ef36a={'AtwIB':function(_0x167fd2,_0x3f643d){return _0x167fd2===_0x3f643d;},'yYFMy':_0xe60a3f(0x92),'fLqgZ':'--disable-setuid-sandbox','hJOjV':_0xe60a3f(0xe0),'lHqtb':_0xe60a3f(0x97),'LrfGN':function(_0x26de14,_0x26b95f,_0x4824bb){return _0x26de14(_0x26b95f,_0x4824bb);},'wKgzP':function(_0x5f2990,_0x1ddbc8){return _0x5f2990(_0x1ddbc8);},'FmtEu':function(_0x2725c0,_0x33e3f9,_0x472d0f){return _0x2725c0(_0x33e3f9,_0x472d0f);},'GeKXt':function(_0x586b9b){return _0x586b9b();},'oqDhD':function(_0x4419b7,_0x47b0a6){return _0x4419b7 instanceof _0x47b0a6;},'HJRhc':function(_0x49e576,_0x50cc5d){return _0x49e576(_0x50cc5d);},'ExLdf':function(_0x42a2e5,_0x5f3b10,_0x1e863c,_0x3b1155){return _0x42a2e5(_0x5f3b10,_0x1e863c,_0x3b1155);},'nHdhe':_0xe60a3f(0xa0),'mIXrC':'tabs','AuySf':_0xe60a3f(0xac),'oiVNu':_0xe60a3f(0xbf),'VqsAm':function(_0x5f4830,_0x460e86){return _0x5f4830===_0x460e86;},'atGCL':function(_0x1d0580){return _0x1d0580();},'ztDrg':'ranger-config','pQCON':function(_0x27e6cc,_0x362939){return _0x27e6cc(_0x362939);}},_0x329a2b=getEnvDir(_0x55d02d),_0x542e36=join(_0x329a2b,'auth.json.enc'),_0x47a775=_0x1ef36a[_0xe60a3f(0xab)](join,_0x329a2b,'auth.json');let _0x56ab45,_0x3cd17a;if(existsSync(_0x542e36))try{const _0x1207b3=await getToken();if(!_0x1207b3)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x2609b2=await _0x1ef36a['wKgzP'](readFile,_0x542e36),_0x26360a=decrypt(_0x2609b2,_0x1207b3);_0x3cd17a=_0x1ef36a[_0xe60a3f(0xb1)](join,_0x1ef36a['GeKXt'](tmpdir),_0xe60a3f(0xa7)+Date[_0xe60a3f(0x96)]()+_0xe60a3f(0xaf)),await _0x1ef36a[_0xe60a3f(0xab)](writeFile,_0x3cd17a,_0x26360a),_0x56ab45=_0x3cd17a;}catch(_0x1f285a){const _0x50eb4d=_0x1ef36a['oqDhD'](_0x1f285a,Error)?_0x1f285a['message']:_0x1ef36a[_0xe60a3f(0xba)](String,_0x1f285a);throw new Error(_0xe60a3f(0x8e)+_0x50eb4d);}else existsSync(_0x47a775)&&(_0x56ab45=_0x47a775);const _0x4db8bd=_0xa9f9f6||_0x1ef36a['GeKXt'](randomUUID),_0x2ad652=_0x1ef36a[_0xe60a3f(0x9b)](join,getRangerDir(),'sessions',_0x4db8bd),_0x54926c=Boolean(_0x5e8d55[_0xe60a3f(0xd7)]),_0x417812=_0x54926c?{'browserName':'chromium','cdpEndpoint':_0x5e8d55['cdpEndpoint']}:((()=>{const _0x1f07b1=_0xe60a3f,{launchOptions:_0x4f2747,contextOptions:_0x3d2b6d}=buildBrowserOptionsFromSettings(_0x5e8d55,{'headless':_0x2d02d2?![]:_0x5e8d55['headless']??!![],'storageStatePath':_0x56ab45});if(_0x1ef36a[_0x1f07b1(0xa2)](process['getuid']?.(),0x0)){const _0x2d5373=[_0x1ef36a['yYFMy'],_0x1ef36a['fLqgZ']],_0x54dc17=_0x4f2747[_0x1f07b1(0x77)]??[],_0x2e7520=_0x2d5373['filter'](_0x226d56=>!_0x54dc17['includes'](_0x226d56));_0x4f2747[_0x1f07b1(0x77)]=[..._0x54dc17,..._0x2e7520];}return{'isolated':!![],'browserName':_0x1ef36a[_0x1f07b1(0xc3)],'launchOptions':_0x4f2747,'contextOptions':{..._0x3d2b6d,'permissions':[_0x1f07b1(0x9c),_0x1ef36a['lHqtb']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x1e5e93={'name':_0x55d02d,'browser':_0x417812,'capabilities':[_0x1ef36a['nHdhe'],_0x1ef36a[_0xe60a3f(0x9a)],_0x1ef36a[_0xe60a3f(0xbd)],'pdf','vision'],'imageResponses':_0x1ef36a['oiVNu'],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x2ad652};if(!_0x54926c){const _0x49c990=_0x1e5e93['browser'],_0x9af66d=_0x49c990['contextOptions'];if(_0x9af66d['userAgent']===undefined)delete _0x9af66d[_0xe60a3f(0x89)];if(_0x1ef36a[_0xe60a3f(0xc0)](_0x9af66d[_0xe60a3f(0xde)],undefined))delete _0x9af66d[_0xe60a3f(0xde)];}const _0x2681fb=join(_0x1ef36a['atGCL'](tmpdir),_0x1ef36a['ztDrg']);!_0x1ef36a['pQCON'](existsSync,_0x2681fb)&&await mkdir(_0x2681fb,{'recursive':!![]});const _0x3cdabc=join(_0x2681fb,_0x55d02d+'-'+Date['now']()+'.json');return await _0x1ef36a['FmtEu'](writeFile,_0x3cdabc,JSON[_0xe60a3f(0xe1)](_0x1e5e93,null,0x2)),{'configPath':_0x3cdabc,'tempAuthPath':_0x3cd17a};}export async function buildPlaywrightCliConfig(_0x366da0,_0x29b072,_0x1e9188,_0x183bd9){const _0x3ef979=_0x45f284,_0x3c2090={'ohqPU':function(_0x2bec00,_0x37adfc,_0x19853b){return _0x2bec00(_0x37adfc,_0x19853b);},'ZGjMM':_0x3ef979(0xb3),'dPOqF':_0x3ef979(0x97),'uAKXb':'auth.json','XWCnA':function(_0x3c701e,_0x3debc9){return _0x3c701e(_0x3debc9);},'AgzYf':function(_0xc18db9){return _0xc18db9();},'YwVpX':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','FusFQ':function(_0xd4fd02,_0x1d3ade){return _0xd4fd02 instanceof _0x1d3ade;},'wYkLz':function(_0x128a12,_0x3cfacb){return _0x128a12(_0x3cfacb);},'SXDxz':function(_0x50e578,_0x268cc0){return _0x50e578(_0x268cc0);},'SrJBw':function(_0xcd0ecc,_0x25b5c0){return _0xcd0ecc===_0x25b5c0;},'kKRYw':_0x3ef979(0x7e),'nHTEJ':function(_0x3a0ad3){return _0x3a0ad3();},'DxnHM':function(_0x13f88e,_0x260e57,_0x164df8){return _0x13f88e(_0x260e57,_0x164df8);},'ljDJB':function(_0x3e5730,_0x3594b7,_0x43a338){return _0x3e5730(_0x3594b7,_0x43a338);}},_0x435631=getEnvDir(_0x29b072),_0x3efdee=join(_0x435631,_0x3ef979(0xa6)),_0x517e9f=join(_0x435631,_0x3c2090[_0x3ef979(0xd2)]);let _0x21a212,_0x2e5a57;if(_0x3c2090[_0x3ef979(0xe5)](existsSync,_0x3efdee))try{const _0x374688=await _0x3c2090[_0x3ef979(0xa5)](getToken);if(!_0x374688)throw new Error(_0x3c2090['YwVpX']);const _0x3fc9c4=await _0x3c2090[_0x3ef979(0xe5)](readFile,_0x3efdee),_0x1c3c37=_0x3c2090[_0x3ef979(0xc4)](decrypt,_0x3fc9c4,_0x374688);_0x2e5a57=join(tmpdir(),'ranger-auth-'+Date[_0x3ef979(0x96)]()+_0x3ef979(0xaf)),await _0x3c2090[_0x3ef979(0xc4)](writeFile,_0x2e5a57,_0x1c3c37),_0x21a212=_0x2e5a57;}catch(_0x18de5d){const _0x29b3ec=_0x3c2090['FusFQ'](_0x18de5d,Error)?_0x18de5d[_0x3ef979(0x80)]:String(_0x18de5d);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x29b3ec);}else _0x3c2090[_0x3ef979(0x90)](existsSync,_0x517e9f)&&(_0x21a212=_0x517e9f);const _0x479116=_0x1e9188||randomUUID(),_0x1d069a=join(_0x3c2090[_0x3ef979(0xa5)](getRangerDir),_0x3ef979(0xcc),_0x479116),_0x18b7a9=_0x3c2090[_0x3ef979(0x93)](Boolean,_0x366da0['cdpEndpoint']),_0x16024f=_0x18b7a9?{'browserName':_0x3ef979(0xe0),'cdpEndpoint':_0x366da0[_0x3ef979(0xd7)]}:((()=>{const _0x299ede=_0x3ef979,{launchOptions:_0x3e7c77,contextOptions:_0x5d439d}=_0x3c2090['ohqPU'](buildBrowserOptionsFromSettings,_0x366da0,{'headless':_0x183bd9?![]:_0x366da0[_0x299ede(0xcd)]??!![],'storageStatePath':_0x21a212});if(process[_0x299ede(0xd8)]?.()===0x0){const _0x1a6cb2=[_0x299ede(0x92),_0x3c2090[_0x299ede(0xd9)]],_0x16fe5a=_0x3e7c77[_0x299ede(0x77)]??[],_0x360e1d=_0x1a6cb2['filter'](_0x53fdc8=>!_0x16fe5a[_0x299ede(0x91)](_0x53fdc8));_0x3e7c77['args']=[..._0x16fe5a,..._0x360e1d];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x3e7c77,'contextOptions':{..._0x5d439d,'permissions':['clipboard-read',_0x3c2090['dPOqF']],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x18b7a9){const _0x154e23=_0x16024f['contextOptions'];if(_0x3c2090['SrJBw'](_0x154e23[_0x3ef979(0x89)],undefined))delete _0x154e23[_0x3ef979(0x89)];if(_0x3c2090[_0x3ef979(0xc5)](_0x154e23[_0x3ef979(0xde)],undefined))delete _0x154e23[_0x3ef979(0xde)];}const _0x1e7e7f={'browser':_0x16024f,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x1d069a,'outputMode':'file','codegen':_0x3c2090['kKRYw']},_0x50fe56=join(_0x3c2090[_0x3ef979(0xaa)](tmpdir),_0x3ef979(0xd1));!_0x3c2090['wYkLz'](existsSync,_0x50fe56)&&await _0x3c2090[_0x3ef979(0xb6)](mkdir,_0x50fe56,{'recursive':!![]});const _0x29926e=join(_0x50fe56,_0x29b072+'-'+Date[_0x3ef979(0x96)]()+'-cli.json');return await _0x3c2090[_0x3ef979(0xbe)](writeFile,_0x29926e,JSON[_0x3ef979(0xe1)](_0x1e7e7f,null,0x2)),{'configPath':_0x29926e,'tempAuthPath':_0x2e5a57};}export function getNestedValue(_0x1facee,_0x21f6dd){const _0x996445=_0x45f284,_0x4caaa0={'ENNrd':function(_0x89c5fc,_0x152d6d){return _0x89c5fc===_0x152d6d;},'uEPiZ':function(_0x55bc4c,_0x3b3d86){return _0x55bc4c===_0x3b3d86;},'RQihM':_0x996445(0x88)},_0xdfec5d=parseKeyPath(_0x21f6dd);let _0x5337a3=_0x1facee;for(const _0x33ab4a of _0xdfec5d){if(_0x4caaa0[_0x996445(0xe3)](_0x5337a3,null)||_0x4caaa0[_0x996445(0x86)](_0x5337a3,undefined)||typeof _0x5337a3!==_0x4caaa0[_0x996445(0x9d)])return undefined;_0x5337a3=_0x5337a3[_0x33ab4a];}return _0x5337a3;}export function setNestedValue(_0x222594,_0xe3cb2e,_0x5a165f){const _0x6fc1f7=_0x45f284,_0x542d15={'hhXMu':function(_0x4dafe3,_0x59f778){return _0x4dafe3(_0x59f778);},'kZVaF':function(_0x38279c,_0x49e2f1){return _0x38279c-_0x49e2f1;},'rdjWD':function(_0xea517,_0x54041d){return _0xea517!==_0x54041d;},'Ntlog':'object'},_0x30e7b9=_0x542d15[_0x6fc1f7(0xdb)](parseKeyPath,_0xe3cb2e);let _0x1c9d48=_0x222594;for(let _0x5b38db=0x0;_0x5b38db<_0x542d15['kZVaF'](_0x30e7b9[_0x6fc1f7(0x85)],0x1);_0x5b38db++){const _0x50371a=_0x30e7b9[_0x5b38db];(!(_0x50371a in _0x1c9d48)||_0x542d15['rdjWD'](typeof _0x1c9d48[_0x50371a],_0x542d15['Ntlog']))&&(_0x1c9d48[_0x50371a]={}),_0x1c9d48=_0x1c9d48[_0x50371a];}_0x1c9d48[_0x30e7b9[_0x542d15[_0x6fc1f7(0xe7)](_0x30e7b9['length'],0x1)]]=_0x5a165f;}export function deleteNestedValue(_0x59043b,_0x140862){const _0x3db34f=_0x45f284,_0x579063={'XoQNE':function(_0x54e8a9,_0x18f06){return _0x54e8a9(_0x18f06);},'IziqB':_0x3db34f(0x88),'ukyrb':function(_0x3612b4,_0x298a58){return _0x3612b4===_0x298a58;},'xbHIS':function(_0x24ef9c,_0x5e2b7f){return _0x24ef9c!==_0x5e2b7f;}},_0x3a59db=_0x579063[_0x3db34f(0xc9)](parseKeyPath,_0x140862);let _0x1f3389=_0x59043b;for(let _0x1a4a2b=0x0;_0x1a4a2b<_0x3a59db[_0x3db34f(0x85)]-0x1;_0x1a4a2b++){if(_0x1f3389===null||_0x1f3389===undefined||typeof _0x1f3389!==_0x579063['IziqB'])return![];_0x1f3389=_0x1f3389[_0x3a59db[_0x1a4a2b]];}if(_0x579063['ukyrb'](_0x1f3389,null)||_0x1f3389===undefined||_0x579063[_0x3db34f(0xca)](typeof _0x1f3389,_0x579063['IziqB']))return![];const _0x425a6d=_0x3a59db[_0x3a59db['length']-0x1];if(_0x425a6d in _0x1f3389)return delete _0x1f3389[_0x425a6d],!![];return![];}function parseKeyPath(_0x30c3d7){const _0x2f5f6b=_0x45f284,_0x53520f={'rFggg':_0x2f5f6b(0x79),'eEFoM':'setupHeaders'},_0x2ad307=_0x30c3d7[_0x2f5f6b(0xbc)]('.');return _0x2ad307[0x0]==='header'&&(_0x2ad307[0x0]=_0x2f5f6b(0x9f)),_0x2ad307[0x0]===_0x53520f['rFggg']&&(_0x2ad307[0x0]=_0x53520f[_0x2f5f6b(0x8f)]),_0x2ad307;}export function formatSettings(_0x3a3908,_0x29e644=0x0){const _0x506d7e=_0x45f284,_0x520964={'WghHJ':_0x506d7e(0x88)},_0x8a910f=[],_0x21490a='\x20\x20'[_0x506d7e(0xa8)](_0x29e644);for(const [_0x2eeec1,_0x349c66]of Object[_0x506d7e(0x8b)](_0x3a3908)){if(_0x349c66===undefined)continue;if(typeof _0x349c66===_0x520964[_0x506d7e(0xda)]&&_0x349c66!==null){_0x8a910f[_0x506d7e(0xdf)](''+_0x21490a+_0x2eeec1+':');for(const [_0xf8b307,_0x20d704]of Object[_0x506d7e(0x8b)](_0x349c66)){_0x8a910f['push'](_0x21490a+'\x20\x20'+_0xf8b307+':\x20'+_0x20d704);}}else _0x8a910f['push'](''+_0x21490a+_0x2eeec1+':\x20'+_0x349c66);}return _0x8a910f[_0x506d7e(0xc6)]('\x0a');}function _0x4547(){const _0x4c5bd6=['jwLrv','aiQDq','AgzYf','auth.json.enc','ranger-auth-','repeat','HXVmy','nHTEJ','LrfGN','install','location','HZnGa','.json','2626086DezUXL','FmtEu','filter','--disable-setuid-sandbox','232HiqSOQ','--disable-features=WebBluetooth','DxnHM','auth.json','HthHb','ENOENT','HJRhc','50TIMQMz','split','AuySf','ljDJB','allow','VqsAm','map','jFffR','hJOjV','ohqPU','SrJBw','join','browser','1202232agVFVF','XoQNE','xbHIS','15738Kjrkfs','sessions','headless','Pxlec','gLrNk','boolean','ranger-config','uAKXb','qfiYt','string','env','912584tEkFsB','cdpEndpoint','getuid','ZGjMM','WghHJ','hhXMu','xGYOT','all','storageState','push','chromium','stringify','tempAuthPath','ENNrd','MclDI','XWCnA','UwPEx','kZVaF','args','CxqrX','setupHeader','5108005AeGMYW','local','keys','10TvUVTj','none','OZREY','message','TFngI','replace','warn','legacy','length','uEPiZ','catch','object','userAgent','path','entries','code','allowInsecureLocalhost','Failed\x20to\x20decrypt\x20auth\x20state:\x20','eEFoM','wYkLz','includes','--no-sandbox','SXDxz','2968272RYUJwb','dvtNH','now','clipboard-write','isArray','FVmgy','mIXrC','ExLdf','clipboard-read','RQihM','fromEntries','headers','core','742968wENuNc','AtwIB'];_0x4547=function(){return _0x4c5bd6;};return _0x4547();}
|
|
1
|
+
const _0x44d6f0=_0x33f6;function _0x5c68(){const _0x3d814d=['--disable-setuid-sandbox','utf-8','PCYAr','11awHDjO','UUbLw','XsIFD','sessions','file','3KJFLOF','pweVV','CjVGm','warn','178341BzeLWs','allowInsecureLocalhost','XGdLu','258993ltoJTp','UaWJT','.json','ZHyfn','TzABd','oFxxi','-cli.json','storageStatePath','yLqGS','stringify','BONWq','--disable-web-security','40zIeHnw','auth.json','entries','345214VKyReX','configPath','mCcfK','fHIwN','EXNsz','CmuyB','replace','object','mLOtu','YxpMI','repeat','yxUjQ','length','auth.json.enc','headless','welvA','parse','zWCRr','vision','launchOptions','userAgent','rangerDir','--disable-features=WebBluetooth','headers','path','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','14945pJHjcR','cdpEndpoint','isArray','push','catch','oHNip','WhkSp','now','xOyvQ','args','storageState','LvWZk','rAAHt','YopFL','KkKuA','contextOptions','cYiUk','message','432lHqzQw','vosyc','--unsafely-treat-insecure-origin-as-secure=http://localhost','yYFke','UJnIx','328068SzFDQH','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','browser','FBQZI','GXvGa','extraHTTPHeaders','legacy','nZFSn','QNDjR','map','QiTfv','getuid','env','othMU','boolean','YPtUe','ranger-config','8286700ooxoji','dpxwP','Tthwy','string','zVXTH','eSafq','tabs','kGnqe','--no-sandbox','IPFgX','chromium','header','allow','includes','184878JPOscJ','QPTLY','NiDgO','location','filter','SDNUG','--allow-insecure-localhost'];_0x5c68=function(){return _0x3d814d;};return _0x5c68();}function _0x33f6(_0x514e1e,_0x2f80e2){_0x514e1e=_0x514e1e-0x180;const _0x5c68cc=_0x5c68();let _0x33f6ab=_0x5c68cc[_0x514e1e];return _0x33f6ab;}(function(_0x1f8250,_0x505c4c){const _0x1505b1=_0x33f6,_0x5c7149=_0x1f8250();while(!![]){try{const _0x2c2546=-parseInt(_0x1505b1(0x1ae))/0x1+-parseInt(_0x1505b1(0x1c0))/0x2*(parseInt(_0x1505b1(0x1aa))/0x3)+parseInt(_0x1505b1(0x1f1))/0x4+-parseInt(_0x1505b1(0x1da))/0x5*(parseInt(_0x1505b1(0x1ec))/0x6)+parseInt(_0x1505b1(0x1b1))/0x7*(-parseInt(_0x1505b1(0x1bd))/0x8)+-parseInt(_0x1505b1(0x19b))/0x9+parseInt(_0x1505b1(0x18d))/0xa*(parseInt(_0x1505b1(0x1a5))/0xb);if(_0x2c2546===_0x505c4c)break;else _0x5c7149['push'](_0x5c7149['shift']());}catch(_0xc35fb1){_0x5c7149['push'](_0x5c7149['shift']());}}}(_0x5c68,0x21ef2));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir}from'./rangerRoot.js';export function getEnvDir(_0x3be4c8){const _0x45aeee=_0x33f6,_0x42e81a={'xOyvQ':function(_0x122bf5){return _0x122bf5();},'welvA':function(_0x3578dc,_0x57c9bf,_0x91882,_0x5b978d){return _0x3578dc(_0x57c9bf,_0x91882,_0x5b978d);},'XGdLu':'local','pMDyV':function(_0x568665,_0x568de8,_0x1fcf47){return _0x568665(_0x568de8,_0x1fcf47);},'eSafq':function(_0x4c0033,_0x435b9a){return _0x4c0033(_0x435b9a);},'WXUKo':function(_0x54e295,_0x5c9a95){return _0x54e295!==_0x5c9a95;},'LvWZk':function(_0x19430f,_0xbff6ef){return _0x19430f(_0xbff6ef);}},_0x10044c=_0x42e81a[_0x45aeee(0x1e2)](getRangerDir),_0x17b73b=_0x42e81a[_0x45aeee(0x1cf)](join,_0x10044c,'ci',_0x3be4c8),_0x322070=join(_0x10044c,_0x42e81a[_0x45aeee(0x1b0)],_0x3be4c8),_0x5c2b95=join(_0x10044c,_0x3be4c8),_0x35f4c4=_0x42e81a['pMDyV'](join,_0x10044c,_0x42e81a['XGdLu']),_0x2552bf=join(_0x10044c,'ci');if(existsSync(_0x17b73b))return _0x17b73b;if(_0x42e81a[_0x45aeee(0x192)](existsSync,_0x322070))return _0x322070;if(_0x42e81a['eSafq'](existsSync,_0x5c2b95)&&(_0x42e81a['WXUKo'](_0x5c2b95,_0x35f4c4)&&_0x5c2b95!==_0x2552bf?!![]:_0x42e81a[_0x45aeee(0x1e5)](hasLegacyProfileFiles,_0x5c2b95)))return _0x5c2b95;return _0x322070;}export function findExistingEnv(_0x3e2c3f,_0x3c6d1b){const _0x5043dc=_0x33f6,_0x561d9f={'mZHXF':function(_0x52eb5d){return _0x52eb5d();},'GXvGa':'local','EXNsz':function(_0x3ab589,_0x421081,_0x3ffb75){return _0x3ab589(_0x421081,_0x3ffb75);},'XPLGW':function(_0x178abe,_0x506030,_0x29bae5,_0x636171){return _0x178abe(_0x506030,_0x29bae5,_0x636171);},'ngpeM':'legacy','fHIwN':function(_0x5a288f,_0x446e6e){return _0x5a288f===_0x446e6e;}},_0x2c5acc=_0x3c6d1b?.[_0x5043dc(0x1d5)]??_0x561d9f['mZHXF'](getRangerDir),_0x315dec=_0x3c6d1b?.['locations']??['ci',_0x561d9f[_0x5043dc(0x180)],_0x5043dc(0x182)],_0x49df10=join(_0x2c5acc,_0x561d9f['GXvGa']),_0x47c32a=_0x561d9f['EXNsz'](join,_0x2c5acc,'ci'),_0x15bfa7=[{'location':'ci','path':join(_0x2c5acc,'ci',_0x3e2c3f)},{'location':_0x561d9f['GXvGa'],'path':_0x561d9f['XPLGW'](join,_0x2c5acc,'local',_0x3e2c3f)},{'location':_0x561d9f['ngpeM'],'path':_0x561d9f[_0x5043dc(0x1c4)](join,_0x2c5acc,_0x3e2c3f)}];for(const _0x34095b of _0x15bfa7){if(_0x315dec['includes'](_0x34095b[_0x5043dc(0x19e)])&&existsSync(_0x34095b['path'])){if(_0x561d9f[_0x5043dc(0x1c3)](_0x34095b[_0x5043dc(0x19e)],_0x5043dc(0x182))&&(_0x34095b[_0x5043dc(0x1d8)]===_0x49df10||_0x561d9f[_0x5043dc(0x1c3)](_0x34095b['path'],_0x47c32a))&&!hasLegacyProfileFiles(_0x34095b[_0x5043dc(0x1d8)]))continue;return{'path':_0x34095b['path'],'location':_0x34095b['location']};}}return null;}function hasLegacyProfileFiles(_0x16a036){const _0x2cea82=_0x33f6,_0x3e61aa={'CmuyB':function(_0x508765,_0x40d0ec){return _0x508765(_0x40d0ec);},'cYiUk':function(_0x4c717c,_0x655b74,_0x5a19bc){return _0x4c717c(_0x655b74,_0x5a19bc);},'TzABd':_0x2cea82(0x1be),'ZHyfn':function(_0x1e3034,_0x3889dc){return _0x1e3034(_0x3889dc);},'nZFSn':function(_0x1e694b,_0x3b0e74,_0x4a630b){return _0x1e694b(_0x3b0e74,_0x4a630b);},'gFLFg':_0x2cea82(0x1cd)};return _0x3e61aa[_0x2cea82(0x1c5)](existsSync,_0x3e61aa[_0x2cea82(0x1ea)](join,_0x16a036,'settings.json'))||existsSync(join(_0x16a036,_0x3e61aa[_0x2cea82(0x1b5)]))||_0x3e61aa[_0x2cea82(0x1b4)](existsSync,_0x3e61aa[_0x2cea82(0x183)](join,_0x16a036,_0x3e61aa['gFLFg']));}export function isEnvCi(_0x4433d1){const _0x2c155c={'BhCHl':function(_0xbd5b59,_0x1ac1ca,_0x46a844,_0x21b086){return _0xbd5b59(_0x1ac1ca,_0x46a844,_0x21b086);},'zahvE':function(_0x54654f){return _0x54654f();}};return existsSync(_0x2c155c['BhCHl'](join,_0x2c155c['zahvE'](getRangerDir),'ci',_0x4433d1));}export async function cleanupTempFiles(_0x3a8650){const _0x2ae37d=_0x33f6,_0x14077d={'JcgdA':function(_0x20f58f,_0x574eb5){return _0x20f58f!==_0x574eb5;},'mRKGZ':'ENOENT'},_0x13d613=[_0x3a8650['tempAuthPath'],_0x3a8650[_0x2ae37d(0x1c1)]][_0x2ae37d(0x19f)](Boolean);await Promise['all'](_0x13d613[_0x2ae37d(0x185)](_0x39c6cd=>unlink(_0x39c6cd)[_0x2ae37d(0x1de)](_0x58a6f0=>{const _0x8fd210=_0x2ae37d;_0x14077d['JcgdA'](_0x58a6f0['code'],_0x14077d['mRKGZ'])&&console[_0x8fd210(0x1ad)](_0x8fd210(0x1d9)+_0x39c6cd+':',_0x58a6f0[_0x8fd210(0x1eb)]);})));}export function getSettingsPath(_0xb980b0){const _0x49e45f={'Wycpo':function(_0x147c04,_0x231dfb){return _0x147c04(_0x231dfb);},'jyAUv':'settings.json'};return join(_0x49e45f['Wycpo'](getEnvDir,_0xb980b0),_0x49e45f['jyAUv']);}export async function loadSettings(_0x223564){const _0x3511ea=_0x33f6,_0x5a4617={'Tthwy':function(_0x84d45f,_0x40ed12){return _0x84d45f(_0x40ed12);},'oHNip':function(_0x99bedc,_0x17d51d){return _0x99bedc(_0x17d51d);},'FBQZI':function(_0xbd5aba,_0x17d30e,_0x4b6fbe){return _0xbd5aba(_0x17d30e,_0x4b6fbe);},'wRrqa':_0x3511ea(0x1a3)},_0x7de015=_0x5a4617[_0x3511ea(0x18f)](getSettingsPath,_0x223564);if(!_0x5a4617[_0x3511ea(0x1df)](existsSync,_0x7de015))return{};try{const _0x289f7f=await _0x5a4617[_0x3511ea(0x1f4)](readFile,_0x7de015,_0x5a4617['wRrqa']);return JSON[_0x3511ea(0x1d0)](_0x289f7f);}catch{return{};}}export async function saveSettings(_0x32e7f0,_0x413e1e){const _0x5dc487=_0x33f6,_0x34e735={'nnbbX':function(_0x38915d,_0x1336d1){return _0x38915d(_0x1336d1);},'hRxVD':function(_0x42bf39,_0x5f02a0){return _0x42bf39(_0x5f02a0);},'kGnqe':function(_0x517f67,_0x3f7752,_0x18d2fc){return _0x517f67(_0x3f7752,_0x18d2fc);}},_0x40e95b=_0x34e735['nnbbX'](getSettingsPath,_0x32e7f0),_0x4edf79=_0x34e735['hRxVD'](dirname,_0x40e95b);!_0x34e735['hRxVD'](existsSync,_0x4edf79)&&await mkdir(_0x4edf79,{'recursive':!![]}),await _0x34e735[_0x5dc487(0x194)](writeFile,_0x40e95b,JSON[_0x5dc487(0x1ba)](_0x413e1e,null,0x2));}export function resolveEnvVars(_0x468dbd){const _0x2a81f3=_0x33f6,_0x225eae={'YxpMI':_0x2a81f3(0x1c7)};if(typeof _0x468dbd==='string')return _0x468dbd[_0x2a81f3(0x1c6)](/\$\{(\w+)\}/g,(_0x22c27e,_0x129f0e)=>{const _0x4fa738=_0x2a81f3,_0x4f4603=process[_0x4fa738(0x188)][_0x129f0e];if(_0x4f4603===undefined)throw new Error('Environment\x20variable\x20'+_0x129f0e+'\x20is\x20not\x20set');return _0x4f4603;});if(Array[_0x2a81f3(0x1dc)](_0x468dbd))return _0x468dbd[_0x2a81f3(0x185)](resolveEnvVars);if(_0x468dbd&&typeof _0x468dbd===_0x225eae[_0x2a81f3(0x1c9)])return Object['fromEntries'](Object[_0x2a81f3(0x1bf)](_0x468dbd)['map'](([_0xe5bb8b,_0x3b846e])=>[_0xe5bb8b,resolveEnvVars(_0x3b846e)]));return _0x468dbd;}const isRecord=_0x5859fd=>typeof _0x5859fd===_0x44d6f0(0x1c7)&&_0x5859fd!==null&&!Array['isArray'](_0x5859fd),asRecord=_0x34237a=>isRecord(_0x34237a)?_0x34237a:undefined,mergeHeaders=(_0x2cef56,_0x210eb9)=>{const _0x9bf8e9=_0x44d6f0,_0x188674={..._0x2cef56??{},..._0x210eb9??{}};return Object['keys'](_0x188674)[_0x9bf8e9(0x1cc)]?_0x188674:undefined;},SAFE_MODE_ARGS=[_0x44d6f0(0x1d6)],ALLOW_LOCALHOST_ARGS=[_0x44d6f0(0x1bc),'--allow-running-insecure-content',_0x44d6f0(0x1ee),_0x44d6f0(0x1a1)];export function buildBrowserOptionsFromSettings(_0x10bded,_0x534dad={}){const _0x50b89f=_0x44d6f0,_0x46ce87={'oFxxi':function(_0x506e5e,_0xc1220d){return _0x506e5e(_0xc1220d);},'BONWq':function(_0x50cc1e,_0x5789c7){return _0x50cc1e(_0x5789c7);},'YPtUe':function(_0x191566,_0x26fb2c){return _0x191566===_0x26fb2c;},'VekvZ':function(_0x3e9d6f,_0x2b0d19){return _0x3e9d6f===_0x2b0d19;},'mLOtu':function(_0x50faea,_0x52757e){return _0x50faea(_0x52757e);}},_0x21085b=_0x46ce87[_0x50b89f(0x1b6)](asRecord,_0x10bded[_0x50b89f(0x1f3)]),_0x117142={..._0x46ce87[_0x50b89f(0x1bb)](asRecord,_0x21085b?.[_0x50b89f(0x1d3)])??{}};_0x46ce87[_0x50b89f(0x18b)](typeof _0x534dad[_0x50b89f(0x1ce)],_0x50b89f(0x18a))&&(_0x117142['headless']=_0x534dad[_0x50b89f(0x1ce)]);if(_0x10bded['safeMode']){const _0x14b234=_0x117142['args']??[],_0x4c7ee6=SAFE_MODE_ARGS['filter'](_0x20d96e=>!_0x14b234['includes'](_0x20d96e));_0x117142['args']=[..._0x14b234,..._0x4c7ee6];}if(_0x10bded[_0x50b89f(0x1af)]){const _0x5e9e98=_0x117142['args']??[],_0xd5a560=ALLOW_LOCALHOST_ARGS[_0x50b89f(0x19f)](_0x2a0589=>!_0x5e9e98['includes'](_0x2a0589));_0x117142['args']=[..._0x5e9e98,..._0xd5a560];}const _0x5212ec={..._0x46ce87[_0x50b89f(0x1bb)](asRecord,_0x21085b?.[_0x50b89f(0x1e9)])??{}};_0x5212ec['ignoreHTTPSErrors']=!![];_0x46ce87['VekvZ'](typeof _0x10bded['userAgent'],_0x50b89f(0x190))&&(_0x5212ec['userAgent']=_0x10bded['userAgent']);const _0x3a564e=mergeHeaders(asRecord(_0x5212ec['extraHTTPHeaders']),_0x46ce87[_0x50b89f(0x1c8)](asRecord,_0x10bded['headers']));return _0x3a564e?_0x5212ec[_0x50b89f(0x181)]=_0x3a564e:delete _0x5212ec[_0x50b89f(0x181)],_0x534dad[_0x50b89f(0x1b8)]&&(_0x5212ec['storageState']=_0x534dad[_0x50b89f(0x1b8)]),{'launchOptions':_0x117142,'contextOptions':_0x5212ec};}export async function buildPlaywrightConfig(_0x10c783,_0x39c1b1,_0x1cf782,_0x4e9a23){const _0x260293=_0x44d6f0,_0xbe7634={'rXjHQ':function(_0x30656b,_0x75e6d3,_0x6be976){return _0x30656b(_0x75e6d3,_0x6be976);},'PYFFn':'--no-sandbox','yLqGS':_0x260293(0x1a2),'UaWJT':_0x260293(0x197),'zWCRr':'clipboard-read','PCYAr':function(_0x12c361,_0xe5348a){return _0x12c361(_0xe5348a);},'eFTcu':_0x260293(0x1cd),'UIdxE':function(_0x483a60,_0x3ce816,_0x21090b){return _0x483a60(_0x3ce816,_0x21090b);},'IPFgX':function(_0x19726d){return _0x19726d();},'zEMJW':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','XsIFD':function(_0x548424,_0x8de873,_0x1d6f54){return _0x548424(_0x8de873,_0x1d6f54);},'RyLwE':function(_0x54e1cc,_0x3ed7d3){return _0x54e1cc(_0x3ed7d3);},'eslpQ':function(_0x4cbfb6,_0x53f8d7,_0x5c57c4,_0x17c9ac){return _0x4cbfb6(_0x53f8d7,_0x5c57c4,_0x17c9ac);},'ZVtCc':_0x260293(0x1a8),'nDXny':_0x260293(0x1d2),'KkKuA':function(_0x3d1200,_0x2b32e6,_0xf708d1){return _0x3d1200(_0x2b32e6,_0xf708d1);}},_0x5d59fc=_0xbe7634[_0x260293(0x1a4)](getEnvDir,_0x39c1b1),_0x3d5d1d=_0xbe7634['rXjHQ'](join,_0x5d59fc,_0xbe7634['eFTcu']),_0xc60803=_0xbe7634['UIdxE'](join,_0x5d59fc,'auth.json');let _0x3af44f,_0x486a02;if(_0xbe7634['PCYAr'](existsSync,_0x3d5d1d))try{const _0x302ca3=await _0xbe7634[_0x260293(0x196)](getToken);if(!_0x302ca3)throw new Error(_0xbe7634['zEMJW']);const _0x4bf6e1=await _0xbe7634['PCYAr'](readFile,_0x3d5d1d),_0xde9d32=decrypt(_0x4bf6e1,_0x302ca3);_0x486a02=_0xbe7634[_0x260293(0x1a7)](join,_0xbe7634['IPFgX'](tmpdir),'ranger-auth-'+Date[_0x260293(0x1e1)]()+'.json'),await _0xbe7634[_0x260293(0x1a7)](writeFile,_0x486a02,_0xde9d32),_0x3af44f=_0x486a02;}catch(_0x7c5967){const _0x22a849=_0x7c5967 instanceof Error?_0x7c5967[_0x260293(0x1eb)]:_0xbe7634['RyLwE'](String,_0x7c5967);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x22a849);}else _0xbe7634['PCYAr'](existsSync,_0xc60803)&&(_0x3af44f=_0xc60803);const _0x33b84f=_0x1cf782||randomUUID(),_0x5357fa=_0xbe7634['eslpQ'](join,_0xbe7634[_0x260293(0x196)](getRangerDir),_0xbe7634['ZVtCc'],_0x33b84f),_0x367d10=_0xbe7634['RyLwE'](Boolean,_0x10c783['cdpEndpoint']),_0x302ca2=_0x367d10?{'browserName':_0x260293(0x197),'cdpEndpoint':_0x10c783['cdpEndpoint']}:((()=>{const _0x2b4f49=_0x260293,{launchOptions:_0xaea335,contextOptions:_0x1ef0b3}=_0xbe7634['rXjHQ'](buildBrowserOptionsFromSettings,_0x10c783,{'headless':_0x4e9a23?![]:_0x10c783[_0x2b4f49(0x1ce)]??!![],'storageStatePath':_0x3af44f});if(process['getuid']?.()===0x0){const _0x6fd625=[_0xbe7634['PYFFn'],_0xbe7634[_0x2b4f49(0x1b9)]],_0x5736cb=_0xaea335[_0x2b4f49(0x1e3)]??[],_0x1cc644=_0x6fd625['filter'](_0x251eab=>!_0x5736cb[_0x2b4f49(0x19a)](_0x251eab));_0xaea335['args']=[..._0x5736cb,..._0x1cc644];}return{'isolated':!![],'browserName':_0xbe7634[_0x2b4f49(0x1b2)],'launchOptions':_0xaea335,'contextOptions':{..._0x1ef0b3,'permissions':[_0xbe7634[_0x2b4f49(0x1d1)],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3539aa={'name':_0x39c1b1,'browser':_0x302ca2,'capabilities':['core',_0x260293(0x193),'install','pdf',_0xbe7634['nDXny']],'imageResponses':_0x260293(0x199),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5357fa};if(!_0x367d10){const _0x27b2db=_0x3539aa[_0x260293(0x1f3)],_0x4d10fb=_0x27b2db['contextOptions'];if(_0x4d10fb[_0x260293(0x1d4)]===undefined)delete _0x4d10fb['userAgent'];if(_0x4d10fb[_0x260293(0x1e4)]===undefined)delete _0x4d10fb['storageState'];}const _0x133315=_0xbe7634[_0x260293(0x1e8)](join,tmpdir(),'ranger-config');!existsSync(_0x133315)&&await mkdir(_0x133315,{'recursive':!![]});const _0x291a25=_0xbe7634[_0x260293(0x1a7)](join,_0x133315,_0x39c1b1+'-'+Date['now']()+_0x260293(0x1b3));return await writeFile(_0x291a25,JSON['stringify'](_0x3539aa,null,0x2)),{'configPath':_0x291a25,'tempAuthPath':_0x486a02};}export async function buildPlaywrightCliConfig(_0x87612e,_0x58db56,_0x33cb5b,_0x4bfbbf){const _0x4554e0=_0x44d6f0,_0x195077={'yxUjQ':function(_0x24856b,_0x53427b){return _0x24856b===_0x53427b;},'GKVmf':'clipboard-read','hjupk':'clipboard-write','othMU':'auth.json.enc','pweVV':function(_0xc068b7,_0xe89ecb){return _0xc068b7(_0xe89ecb);},'WaenQ':function(_0x2a8dd0){return _0x2a8dd0();},'SDNUG':_0x4554e0(0x1f2),'gSFmZ':function(_0x2bef11,_0x45ee48,_0x5ec660){return _0x2bef11(_0x45ee48,_0x5ec660);},'CjVGm':function(_0x1ae477,_0x3a4f8a,_0x273dd4){return _0x1ae477(_0x3a4f8a,_0x273dd4);},'RFwEK':function(_0x3ba6d8,_0x14d9ed,_0x485bcb){return _0x3ba6d8(_0x14d9ed,_0x485bcb);},'QPTLY':function(_0x230db5,_0x33e772){return _0x230db5(_0x33e772);},'yDgWH':function(_0xc03b57,_0x3cfaae){return _0xc03b57(_0x3cfaae);},'NiDfO':function(_0x1f97ff,_0x325d76,_0x43d657,_0x578134){return _0x1f97ff(_0x325d76,_0x43d657,_0x578134);},'NiDgO':function(_0x466fd9){return _0x466fd9();},'vosyc':function(_0x48e236,_0x399470,_0x1b52a8){return _0x48e236(_0x399470,_0x1b52a8);}},_0xdc2a7e=getEnvDir(_0x58db56),_0x4832db=join(_0xdc2a7e,_0x195077[_0x4554e0(0x189)]),_0x4915aa=join(_0xdc2a7e,_0x4554e0(0x1be));let _0x55a54d,_0x4adfd7;if(_0x195077[_0x4554e0(0x1ab)](existsSync,_0x4832db))try{const _0x294996=await _0x195077['WaenQ'](getToken);if(!_0x294996)throw new Error(_0x195077[_0x4554e0(0x1a0)]);const _0x37d919=await readFile(_0x4832db),_0x2fb612=_0x195077['gSFmZ'](decrypt,_0x37d919,_0x294996);_0x4adfd7=_0x195077[_0x4554e0(0x1ac)](join,tmpdir(),'ranger-auth-'+Date['now']()+_0x4554e0(0x1b3)),await _0x195077['RFwEK'](writeFile,_0x4adfd7,_0x2fb612),_0x55a54d=_0x4adfd7;}catch(_0x1707c7){const _0x4d6f39=_0x1707c7 instanceof Error?_0x1707c7['message']:_0x195077[_0x4554e0(0x19c)](String,_0x1707c7);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x4d6f39);}else _0x195077['yDgWH'](existsSync,_0x4915aa)&&(_0x55a54d=_0x4915aa);const _0x5a4f19=_0x33cb5b||randomUUID(),_0x4d8ed8=_0x195077['NiDfO'](join,_0x195077[_0x4554e0(0x19d)](getRangerDir),_0x4554e0(0x1a8),_0x5a4f19),_0x4f6d03=Boolean(_0x87612e['cdpEndpoint']),_0x98fbed=_0x4f6d03?{'browserName':_0x4554e0(0x197),'cdpEndpoint':_0x87612e[_0x4554e0(0x1db)]}:((()=>{const _0xcf664a=_0x4554e0,{launchOptions:_0x6f6c59,contextOptions:_0x127f23}=buildBrowserOptionsFromSettings(_0x87612e,{'headless':_0x4bfbbf?![]:_0x87612e[_0xcf664a(0x1ce)]??!![],'storageStatePath':_0x55a54d});if(_0x195077[_0xcf664a(0x1cb)](process[_0xcf664a(0x187)]?.(),0x0)){const _0x2150c5=[_0xcf664a(0x195),'--disable-setuid-sandbox'],_0x21864a=_0x6f6c59['args']??[],_0x329c23=_0x2150c5[_0xcf664a(0x19f)](_0x203869=>!_0x21864a[_0xcf664a(0x19a)](_0x203869));_0x6f6c59['args']=[..._0x21864a,..._0x329c23];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x6f6c59,'contextOptions':{..._0x127f23,'permissions':[_0x195077['GKVmf'],_0x195077['hjupk']],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x4f6d03){const _0x593c03=_0x98fbed['contextOptions'];if(_0x593c03[_0x4554e0(0x1d4)]===undefined)delete _0x593c03['userAgent'];if(_0x593c03['storageState']===undefined)delete _0x593c03[_0x4554e0(0x1e4)];}const _0x6fab1f={'browser':_0x98fbed,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4d8ed8,'outputMode':_0x4554e0(0x1a9),'codegen':'none'},_0x277b27=join(tmpdir(),_0x4554e0(0x18c));!existsSync(_0x277b27)&&await mkdir(_0x277b27,{'recursive':!![]});const _0x2a22ed=join(_0x277b27,_0x58db56+'-'+Date['now']()+_0x4554e0(0x1b7));return await _0x195077[_0x4554e0(0x1ed)](writeFile,_0x2a22ed,JSON['stringify'](_0x6fab1f,null,0x2)),{'configPath':_0x2a22ed,'tempAuthPath':_0x4adfd7};}export function getNestedValue(_0x293c05,_0x506367){const _0x161bdd=_0x44d6f0,_0xb220f9={'mCcfK':function(_0x18a37b,_0x3dcbd1){return _0x18a37b(_0x3dcbd1);},'waRUJ':function(_0x1d58ff,_0x5dc236){return _0x1d58ff===_0x5dc236;},'bEOFH':function(_0x4fed20,_0x360be2){return _0x4fed20===_0x360be2;},'UUbLw':'object'},_0x39b3bd=_0xb220f9[_0x161bdd(0x1c2)](parseKeyPath,_0x506367);let _0x221035=_0x293c05;for(const _0x3eb957 of _0x39b3bd){if(_0xb220f9['waRUJ'](_0x221035,null)||_0xb220f9['bEOFH'](_0x221035,undefined)||typeof _0x221035!==_0xb220f9[_0x161bdd(0x1a6)])return undefined;_0x221035=_0x221035[_0x3eb957];}return _0x221035;}export function setNestedValue(_0x547932,_0x41c5e6,_0x5c3e5e){const _0x35ee60=_0x44d6f0,_0x5b4450={'dpxwP':function(_0xdb2ae,_0x13839e){return _0xdb2ae(_0x13839e);},'zVXTH':function(_0x227975,_0x13373d){return _0x227975-_0x13373d;},'nJnlr':function(_0x5e644b,_0xc488c1){return _0x5e644b-_0xc488c1;}},_0x366e47=_0x5b4450[_0x35ee60(0x18e)](parseKeyPath,_0x41c5e6);let _0x11a639=_0x547932;for(let _0x397bbb=0x0;_0x397bbb<_0x5b4450[_0x35ee60(0x191)](_0x366e47[_0x35ee60(0x1cc)],0x1);_0x397bbb++){const _0x53a625=_0x366e47[_0x397bbb];(!(_0x53a625 in _0x11a639)||typeof _0x11a639[_0x53a625]!==_0x35ee60(0x1c7))&&(_0x11a639[_0x53a625]={}),_0x11a639=_0x11a639[_0x53a625];}_0x11a639[_0x366e47[_0x5b4450['nJnlr'](_0x366e47[_0x35ee60(0x1cc)],0x1)]]=_0x5c3e5e;}export function deleteNestedValue(_0x1b51aa,_0xf23b3e){const _0x47d85e=_0x44d6f0,_0x360156={'rAAHt':function(_0x31845b,_0x4089cc){return _0x31845b(_0x4089cc);},'yYFke':function(_0x40c777,_0x418f33){return _0x40c777<_0x418f33;},'VDTjF':function(_0x6180b9,_0x2fbe77){return _0x6180b9-_0x2fbe77;},'QiTfv':'object','uXeDn':function(_0x312a64,_0x4951f5){return _0x312a64===_0x4951f5;},'IHHWQ':function(_0x4a3268,_0x14e47c){return _0x4a3268===_0x14e47c;},'UJnIx':function(_0x39f6f7,_0x44f965){return _0x39f6f7!==_0x44f965;},'YopFL':function(_0x1d0804,_0x249c28){return _0x1d0804-_0x249c28;}},_0x5bceab=_0x360156[_0x47d85e(0x1e6)](parseKeyPath,_0xf23b3e);let _0x5483d7=_0x1b51aa;for(let _0x168dae=0x0;_0x360156[_0x47d85e(0x1ef)](_0x168dae,_0x360156['VDTjF'](_0x5bceab['length'],0x1));_0x168dae++){if(_0x5483d7===null||_0x5483d7===undefined||typeof _0x5483d7!==_0x360156[_0x47d85e(0x186)])return![];_0x5483d7=_0x5483d7[_0x5bceab[_0x168dae]];}if(_0x360156['uXeDn'](_0x5483d7,null)||_0x360156['IHHWQ'](_0x5483d7,undefined)||_0x360156[_0x47d85e(0x1f0)](typeof _0x5483d7,_0x47d85e(0x1c7)))return![];const _0x1a734c=_0x5bceab[_0x360156[_0x47d85e(0x1e7)](_0x5bceab[_0x47d85e(0x1cc)],0x1)];if(_0x1a734c in _0x5483d7)return delete _0x5483d7[_0x1a734c],!![];return![];}function parseKeyPath(_0x19ab5c){const _0xb00dc3=_0x44d6f0,_0x38a3c0={'WhkSp':function(_0x3b2369,_0x18cb59){return _0x3b2369===_0x18cb59;},'eLemo':_0xb00dc3(0x198),'QNDjR':_0xb00dc3(0x1d7)},_0x445fe9=_0x19ab5c['split']('.');return _0x38a3c0['WhkSp'](_0x445fe9[0x0],_0x38a3c0['eLemo'])&&(_0x445fe9[0x0]=_0x38a3c0[_0xb00dc3(0x184)]),_0x38a3c0[_0xb00dc3(0x1e0)](_0x445fe9[0x0],'setupHeader')&&(_0x445fe9[0x0]='setupHeaders'),_0x445fe9;}export function formatSettings(_0x2afc58,_0xb37184=0x0){const _0x1b94b5=_0x44d6f0,_0x5d9c0c={'PlyAI':function(_0x110ae1,_0x1e304a){return _0x110ae1===_0x1e304a;},'XuxyZ':function(_0x485038,_0x4e7c5d){return _0x485038===_0x4e7c5d;},'OxxGv':function(_0x267146,_0x53cc16){return _0x267146!==_0x53cc16;}},_0x112bd9=[],_0xdc766f='\x20\x20'[_0x1b94b5(0x1ca)](_0xb37184);for(const [_0x348102,_0x5f59b4]of Object[_0x1b94b5(0x1bf)](_0x2afc58)){if(_0x5d9c0c['PlyAI'](_0x5f59b4,undefined))continue;if(_0x5d9c0c['XuxyZ'](typeof _0x5f59b4,'object')&&_0x5d9c0c['OxxGv'](_0x5f59b4,null)){_0x112bd9['push'](''+_0xdc766f+_0x348102+':');for(const [_0x1f03fd,_0x560b8a]of Object['entries'](_0x5f59b4)){_0x112bd9[_0x1b94b5(0x1dd)](_0xdc766f+'\x20\x20'+_0x1f03fd+':\x20'+_0x560b8a);}}else _0x112bd9['push'](''+_0xdc766f+_0x348102+':\x20'+_0x5f59b4);}return _0x112bd9['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x2306(_0x27cf02,_0x134d45){_0x27cf02=_0x27cf02-0x1f2;const _0x369933=_0x3699();let _0x230608=_0x369933[_0x27cf02];return _0x230608;}(function(_0x1cf22a,_0x61481f){const _0x180eaf=_0x2306,_0x1f9c1c=_0x1cf22a();while(!![]){try{const _0x3957c3=parseInt(_0x180eaf(0x1f8))/0x1*(-parseInt(_0x180eaf(0x1f7))/0x2)+-parseInt(_0x180eaf(0x1f6))/0x3*(parseInt(_0x180eaf(0x1f3))/0x4)+-parseInt(_0x180eaf(0x1fa))/0x5+-parseInt(_0x180eaf(0x1fb))/0x6*(parseInt(_0x180eaf(0x1f5))/0x7)+-parseInt(_0x180eaf(0x1f9))/0x8+-parseInt(_0x180eaf(0x1fc))/0x9+parseInt(_0x180eaf(0x1f2))/0xa*(parseInt(_0x180eaf(0x1f4))/0xb);if(_0x3957c3===_0x61481f)break;else _0x1f9c1c['push'](_0x1f9c1c['shift']());}catch(_0xf612c){_0x1f9c1c['push'](_0x1f9c1c['shift']());}}}(_0x3699,0xb6440));import{readFileSync}from'fs';function _0x3699(){const _0x38bb72=['208234DJcBFm','2thpSod','2546600HAkRXQ','5033305GhUbFP','18DGuHzy','12236382XGRmFA','utf-8','30QKEgQa','209724lxPJEK','19082679VFYLiL','3406963NjFRoV','6nGIocq'];_0x3699=function(){return _0x38bb72;};return _0x3699();}import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x5702ec){const _0x21278e=_0x2306,_0x37f6a9={'jatLi':'skills','EuOTz':_0x21278e(0x1fd)},_0x5e3b31=join(__dirname,'..','..',_0x37f6a9['jatLi']),_0x569648=join(_0x5e3b31,_0x5702ec);try{return readFileSync(_0x569648,_0x37f6a9['EuOTz']);}catch{return'';}}export function getRangerSkillContent(){return readSkillContent('ranger/SKILL.md');}
|