@ranger-testing/ranger-cli 3.1.2-alpha.b450a14-41 → 3.1.3-alpha.2c5eb8e-44

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.
Files changed (85) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/sessionCache.js +1 -1
  71. package/build/commands/utils/settings.js +1 -1
  72. package/build/commands/utils/skillContent.js +1 -1
  73. package/build/commands/utils/skills.js +1 -1
  74. package/build/commands/utils/stitchWebmFiles.js +1 -1
  75. package/build/commands/utils/telemetry.js +1 -1
  76. package/build/commands/utils/tokenRefresh.js +1 -1
  77. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  78. package/build/commands/utils/tunnelClient.js +1 -1
  79. package/build/commands/utils/userApi.js +1 -1
  80. package/build/commands/utils/version.js +1 -1
  81. package/build/commands/verifyFeature.js +1 -1
  82. package/build/commands/verifyFeatureCli.js +1 -1
  83. package/build/commands/verifyFeatureNovaCli.js +1 -1
  84. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  85. package/package.json +2 -2
@@ -1 +1 @@
1
- const _0x2c26de=_0x5373;(function(_0x3e5be0,_0x35ff64){const _0x225457=_0x5373,_0x36db85=_0x3e5be0();while(!![]){try{const _0x54a50f=parseInt(_0x225457(0x133))/0x1+parseInt(_0x225457(0x16f))/0x2*(-parseInt(_0x225457(0x185))/0x3)+parseInt(_0x225457(0x10e))/0x4*(-parseInt(_0x225457(0x17a))/0x5)+parseInt(_0x225457(0x105))/0x6+-parseInt(_0x225457(0x119))/0x7+parseInt(_0x225457(0x13e))/0x8+-parseInt(_0x225457(0x128))/0x9*(-parseInt(_0x225457(0x169))/0xa);if(_0x54a50f===_0x35ff64)break;else _0x36db85['push'](_0x36db85['shift']());}catch(_0x5eabd3){_0x36db85['push'](_0x36db85['shift']());}}}(_0x47f2,0xb3adc));import{spawn}from'child_process';import{createHash}from'crypto';import{access,chmod,mkdir,readFile,readdir,stat,writeFile}from'fs/promises';import{createServer}from'net';import{delimiter,dirname,isAbsolute,join}from'path';import{homedir}from'os';import{chromium}from'playwright';import{quoteShellArg}from'./playwrightCli.js';function _0x5373(_0x51e8ce,_0x3d8aea){_0x51e8ce=_0x51e8ce-0xd9;const _0x47f280=_0x47f2();let _0x5373b1=_0x47f280[_0x51e8ce];return _0x5373b1;}export const NOVA_ACT_CLI_BINARY=_0x2c26de(0x170);function _0x47f2(){const _0x6660df=['map','session','code','ZNLVu','match','4073916YCrZPg','yTdtL','once','utf-8','bnHsT','pjQxt','sort','WpWPc','RPUex','XHYKC','json','BJKDp','BFtih','127.0.0.1','wqDPR','432891kpDEQg','zBYLY','dNNdG','install','userDataDir','sWKvl','contexts','toString','oFFls','size','cookies','509929IJVBUs','\x0astderr:\x20','mqhtk','GRPnl','uzfoR','origins','tdLUJ','timedOut','Muqzf','set','OQhaz','8762392BKERdL','RbfTj','parse','filter','kill','LSLOM','fix','data','entries','oQrEy','For\x20AWS\x20SSO,\x20run:\x20aws\x20sso\x20login\x20--profile\x20','push','ZowuP','slice','rqwpl','\x20browser\x20--help`\x20is\x20still\x20unavailable.\x20Ensure\x20','stdout','iTUGy','message','nova-act-cli\x20transport\x20requires\x20the\x20Nova\x20Act\x20CLI.\x20Ranger\x20could\x20not\x20find\x20`','stderr:\x20','FapuO','fxaMD','domain','nova-act-cli\x20','sha256','gGALj','commandArgs','--headless','Installed\x20','find','cdpEndpoint','timeoutMs','rg-','SWujV','SFUSv','bQDyf','ZxxLm','now','webSocketDebuggerUrl','digest','YHzzJ','--help','250BAJKyt','YUHuG','ICdwK','stdout:\x20','VjidG','baseUrl','978BGMdNv','act','error','uUMcr','BKJZp','oQeoh','addCookies','wOvwC','--version','add','storageStatePath','4933840igbdWi','ZmmQi','kzzlB','SIGTERM','Rkzsp','logs_directory','args','unknown','act\x20browser\x20doctor\x20--json\x20exited\x20with\x20code=','MHtji','dKpYg','5835RvkPvk','qLCCM','connectOverCDP','domcontentloaded','isDirectory','AtoVw','XITwy','length','--json','wLLVq','origin','exitCode','--profile-directory=Default','vPeTC','qJhFi','name','IqntE','stderr','--user-data-dir=','dLWBX','setItem','ignore','exited\x20with\x20code=','export','...','\x20browser\x20\x22$@\x22\x20','Local\x20State','--launch-arg=','yPqtx','DWCnb','localeCompare','executablePath','update','mtimeMs','SkEkF','browserCommandPath','browserProfilePath','ZQrKJ','AWsAG','SIGKILL','hex','split','timed\x20out\x20after\x20','launchArgs','env','localStorage','JeWPC','null','IKkfp','string','fail','Hydration\x20browser\x20exited\x20before\x20CDP\x20became\x20available\x20with\x20code\x20','expires','status','logDir','GSunN','Preferences','--no-first-run','has','bypqP','PZFtW','bdARd','PATH','2688732uzCVZI','tWlIa','pipe','nova-act[cli]','join','RKPKm','Timed\x20out\x20waiting\x20for\x20hydration\x20browser\x20CDP','close','KtNUk','4iVUoYl','exit','checks','log_dir','--browser-profile-path','newPage'];_0x47f2=function(){return _0x6660df;};return _0x47f2();}export const NOVA_ACT_CLI_UV_PACKAGE=_0x2c26de(0x108);const NOVA_ACT_CLI_PREVIEW_LIMIT=0xf0,NOVA_ACT_BOOTSTRAP_TIMEOUT_MS=0x2bf20,NOVA_PROFILE_HYDRATION_CDP_TIMEOUT_MS=0x3a98,NOVA_PROMOTED_SESSION_COOKIE_TTL_SECONDS=0x7*0x18*0x3c*0x3c;export function toNovaActCliSessionId(_0xf385e){const _0x35361b=_0x2c26de,_0x4d2f2e={'HXTts':_0x35361b(0xee)},_0x4aba9b=createHash(_0x35361b(0x157))[_0x35361b(0xe6)](_0xf385e)[_0x35361b(0x166)](_0x4d2f2e['HXTts'])[_0x35361b(0x14b)](0x0,0xc);return _0x35361b(0x15f)+_0x4aba9b;}export async function inspectNovaStorageStateFile(_0x3769bb){const _0x39fd6e=_0x2c26de,_0xf0f35d={'KfWUk':function(_0x2d21cc,_0x5b63b6){return _0x2d21cc(_0x5b63b6);},'KrIAq':_0x39fd6e(0x11c),'MHtji':_0x39fd6e(0x157),'PZFtW':function(_0x56cba8,_0x3681b3){return _0x56cba8 instanceof _0x3681b3;}};try{const [_0x3499b6,_0x4e450e]=await Promise['all']([_0xf0f35d['KfWUk'](stat,_0x3769bb),readFile(_0x3769bb,_0xf0f35d['KrIAq'])]),_0x40eeb8={'path':_0x3769bb,'exists':!![],'byteLength':Buffer['byteLength'](_0x4e450e),'sha256':createHash(_0xf0f35d[_0x39fd6e(0x183)])['update'](_0x4e450e)['digest'](_0x39fd6e(0xee))};try{const _0x51b08e=JSON['parse'](_0x4e450e),_0x34bf45=_0x51b08e[_0x39fd6e(0x132)]??[],_0x138baf=Math['floor'](Date[_0x39fd6e(0x164)]()/0x3e8),_0x4e5323=new Map();for(const _0x1a8c25 of _0x34bf45){const _0x199e78=_0x4e5323['get'](_0x1a8c25[_0x39fd6e(0x155)])??[];_0x199e78[_0x39fd6e(0x149)](_0x1a8c25['name']),_0x4e5323[_0x39fd6e(0x13c)](_0x1a8c25['domain'],_0x199e78);}return{..._0x40eeb8,'byteLength':_0x3499b6[_0x39fd6e(0x131)],'cookieCount':_0x34bf45['length'],'cookieDomains':[..._0x4e5323[_0x39fd6e(0x146)]()]['sort'](([_0xb20b69],[_0x3cae4e])=>_0xb20b69[_0x39fd6e(0xe4)](_0x3cae4e))['map'](([_0x2878bd,_0x1078be])=>({'domain':_0x2878bd,'count':_0x1078be[_0x39fd6e(0x18c)],'names':_0x1078be[_0x39fd6e(0x11f)]()[_0x39fd6e(0x14b)](0x0,0x19)})),'httpOnlyCookieCount':_0x34bf45['filter'](_0x41a8e8=>_0x41a8e8['httpOnly'])['length'],'secureCookieCount':_0x34bf45[_0x39fd6e(0x141)](_0x1fc8b3=>_0x1fc8b3['secure'])['length'],'sessionCookieCount':_0x34bf45['filter'](_0x3d9235=>_0x3d9235[_0x39fd6e(0xfa)]===-0x1)[_0x39fd6e(0x18c)],'expiredCookieCount':_0x34bf45['filter'](_0x2c7a35=>typeof _0x2c7a35['expires']==='number'&&_0x2c7a35['expires']>0x0&&_0x2c7a35['expires']<_0x138baf)[_0x39fd6e(0x18c)],'originCount':_0x51b08e[_0x39fd6e(0x138)]?.['length']??0x0,'origins':(_0x51b08e['origins']??[])['map'](_0x44e5ad=>({'origin':_0x44e5ad[_0x39fd6e(0x18f)],'localStorageCount':_0x44e5ad['localStorage']?.['length']??0x0,'localStorageKeys':_0x44e5ad['localStorage']?.[_0x39fd6e(0x114)](_0x2964d9=>_0x2964d9[_0x39fd6e(0x194)])[_0x39fd6e(0x11f)]()['slice'](0x0,0x19)??[]}))};}catch(_0x477a8f){return{..._0x40eeb8,'byteLength':_0x3499b6[_0x39fd6e(0x131)],'parseError':_0xf0f35d['PZFtW'](_0x477a8f,Error)?_0x477a8f[_0x39fd6e(0x150)]:String(_0x477a8f)};}}catch(_0x287a56){return{'path':_0x3769bb,'exists':![],'readError':_0xf0f35d[_0x39fd6e(0x102)](_0x287a56,Error)?_0x287a56[_0x39fd6e(0x150)]:_0xf0f35d['KfWUk'](String,_0x287a56)};}}export async function inspectNovaProfileFiles(_0x3fedc0){const _0x5d7862=_0x2c26de,_0xc12dc={'qFksg':function(_0x32a94c,_0x30332e,_0x430cc9){return _0x32a94c(_0x30332e,_0x430cc9);},'bJFOP':_0x5d7862(0xfe),'ZxxLm':'Cookies','uUMcr':function(_0x3b1605,_0x3134e6,_0x22e583,_0x4e2729){return _0x3b1605(_0x3134e6,_0x22e583,_0x4e2729);},'BKJZp':'Network','Muqzf':'Local\x20Storage','AuTka':function(_0x2931c1,_0x10afc6,_0x5a5fb3){return _0x2931c1(_0x10afc6,_0x5a5fb3);},'oFFls':'leveldb','cundn':function(_0x1d0822,_0xb75c63){return _0x1d0822(_0xb75c63);},'sBriJ':function(_0x13d977,_0x3d3329){return _0x13d977(_0x3d3329);},'iTUGy':function(_0x32b352,_0x564e16){return _0x32b352(_0x564e16);},'Rkzsp':function(_0x1a8b0c,_0x1e7b1c){return _0x1a8b0c(_0x1e7b1c);},'tWbvx':function(_0x5318f5,_0x1e4064){return _0x5318f5(_0x1e4064);}},_0x348316=_0xc12dc['qFksg'](join,_0x3fedc0[_0x5d7862(0x12c)],'Local\x20State'),_0x378d42=join(_0x3fedc0[_0x5d7862(0xea)],_0xc12dc['bJFOP']),_0x2f895b=join(_0x3fedc0[_0x5d7862(0xea)],_0xc12dc[_0x5d7862(0x163)]),_0x407f12=_0xc12dc[_0x5d7862(0x172)](join,_0x3fedc0[_0x5d7862(0xea)],_0xc12dc[_0x5d7862(0x173)],'Cookies'),_0x316ee2=join(_0x3fedc0[_0x5d7862(0xea)],_0xc12dc[_0x5d7862(0x13b)]),_0x24424e=_0xc12dc['AuTka'](join,_0x316ee2,_0xc12dc[_0x5d7862(0x130)]),[_0x43d82c,_0x10e00a,_0x36f47e,_0x173c47,_0x1044a4,_0x3cf66d,_0x1bfbd3,_0x3abe72,_0x472589,_0x31ebc2,_0x2cf784]=await Promise['all']([inspectPath(_0x3fedc0[_0x5d7862(0x12c)]),inspectPath(_0x3fedc0['browserProfilePath']),inspectPath(_0x348316),inspectPath(_0x378d42),_0xc12dc['cundn'](inspectPath,_0x2f895b),inspectPath(_0x407f12),_0xc12dc['sBriJ'](inspectPath,_0x316ee2),_0xc12dc[_0x5d7862(0x14f)](inspectPath,_0x24424e),_0xc12dc[_0x5d7862(0x17e)](listDir,_0x3fedc0['userDataDir']),listDir(_0x3fedc0['browserProfilePath']),_0xc12dc['tWbvx'](listDir,_0x24424e)]);return{'userDataDir':_0x3fedc0['userDataDir'],'browserProfilePath':_0x3fedc0[_0x5d7862(0xea)],'rootEntries':_0x472589,'defaultEntries':_0x31ebc2,'localStorageEntries':_0x2cf784,'paths':{'userDataDir':_0x43d82c,'browserProfilePath':_0x10e00a,'localState':_0x36f47e,'preferences':_0x173c47,'cookies':_0x1044a4,'networkCookies':_0x3cf66d,'localStorage':_0x1bfbd3,'levelDb':_0x3abe72}};}async function inspectPath(_0x7e310c){const _0x366287=_0x2c26de,_0x4a0f6b={'kZMfI':function(_0x1d14ff,_0x58871c){return _0x1d14ff(_0x58871c);}};try{const _0x5d45f4=await _0x4a0f6b['kZMfI'](stat,_0x7e310c);return{'path':_0x7e310c,'exists':!![],'isDirectory':_0x5d45f4[_0x366287(0x189)](),'byteLength':_0x5d45f4['isFile']()?_0x5d45f4['size']:undefined,'mtimeMs':_0x5d45f4[_0x366287(0xe7)]};}catch(_0x5aa0ed){return{'path':_0x7e310c,'exists':![],'error':_0x5aa0ed instanceof Error?_0x5aa0ed[_0x366287(0x150)]:String(_0x5aa0ed)};}}async function listDir(_0x17f06d){const _0x79e424=_0x2c26de,_0x5e5946={'YKRKQ':function(_0x519ee3,_0x3ec6f3){return _0x519ee3(_0x3ec6f3);}};try{return(await _0x5e5946['YKRKQ'](readdir,_0x17f06d))[_0x79e424(0x11f)]()[_0x79e424(0x14b)](0x0,0x32);}catch{return undefined;}}function truncatePreview(_0x49a714,_0x133657=NOVA_ACT_CLI_PREVIEW_LIMIT){const _0x1cb13c=_0x2c26de;return _0x49a714[_0x1cb13c(0x18c)]>_0x133657?_0x49a714[_0x1cb13c(0x14b)](0x0,_0x133657)+'...':_0x49a714;}function truncateOutput(_0x48886d,_0x55f961=0x7d0){const _0x1169f6=_0x2c26de,_0x110cb2={'ZowuP':function(_0x1b0857,_0x334929){return _0x1b0857>_0x334929;},'HZdUT':_0x1169f6(0xde)};return _0x110cb2[_0x1169f6(0x14a)](_0x48886d['length'],_0x55f961)?_0x48886d[_0x1169f6(0x14b)](0x0,_0x55f961)+_0x110cb2['HZdUT']:_0x48886d;}function getNovaActCliBinDirs(_0x93f026){const _0x3eb040=_0x2c26de,_0x4c8963={'wLLVq':'/opt/homebrew/bin'};return[_0x93f026['UV_TOOL_BIN_DIR'],homedir()+'/.local/bin',_0x4c8963[_0x3eb040(0x18e)],'/usr/local/bin'][_0x3eb040(0x141)](_0x4b91ef=>Boolean(_0x4b91ef));}function buildPathWithNovaActCliBins(_0x4495e9){const _0x77ab1c=_0x2c26de,_0x5602bc={'AEbnn':function(_0x2f11ff,_0x14861b){return _0x2f11ff(_0x14861b);}},_0x5ddcbc=new Set(),_0x63fcc2=[..._0x5602bc['AEbnn'](getNovaActCliBinDirs,_0x4495e9),...(_0x4495e9[_0x77ab1c(0x104)]??'')[_0x77ab1c(0xef)](delimiter)]['filter'](_0x4b92d3=>{const _0x38a4cf=_0x77ab1c;if(!_0x4b92d3||_0x5ddcbc[_0x38a4cf(0x100)](_0x4b92d3))return![];return _0x5ddcbc[_0x38a4cf(0x178)](_0x4b92d3),!![];});return _0x63fcc2['join'](delimiter);}export function applyNovaActCliPath(_0x2e3540){_0x2e3540['PATH']=buildPathWithNovaActCliBins(_0x2e3540);}function withNovaActCliPath(_0x549a15){return{..._0x549a15,'PATH':buildPathWithNovaActCliBins(_0x549a15)};}function runBootstrapCommand(_0x508802){const _0x325385={'dLWBX':function(_0x4eae61,_0x1e9487){return _0x4eae61===_0x1e9487;},'LSLOM':function(_0x1c6387,_0x39b60e){return _0x1c6387??_0x39b60e;},'RbfTj':function(_0x45a432,_0x2a80a6){return _0x45a432(_0x2a80a6);},'qlwHt':function(_0x165eda,_0x2f1d8e,_0x578da6){return _0x165eda(_0x2f1d8e,_0x578da6);},'bpDoJ':'data','hFCJb':'close'},{command:_0x2888b8,args:_0x51727e,env:_0x5705f2,timeoutMs:timeoutMs=NOVA_ACT_BOOTSTRAP_TIMEOUT_MS}=_0x508802;return new Promise((_0x18ef9b,_0x5b0164)=>{const _0x13f232=_0x5373,_0x28f83e={'sEUAI':'SIGKILL','UajJy':function(_0x4e503a,_0x4b8d85,_0x85bd9){return _0x4e503a(_0x4b8d85,_0x85bd9);}},_0x17895a=spawn(_0x2888b8,_0x51727e,{'env':_0x5705f2,'stdio':['ignore',_0x13f232(0x107),_0x13f232(0x107)]});let _0x60aaf4='',_0x15bf4d='',_0xc6815c=![];const _0x2e393b=_0x325385['qlwHt'](setTimeout,()=>{const _0x228f2b=_0x13f232;_0xc6815c=!![],_0x17895a['kill'](_0x228f2b(0x17d)),_0x28f83e['UajJy'](setTimeout,()=>{try{_0x17895a['kill'](_0x28f83e['sEUAI']);}catch{}},0x3e8);},timeoutMs);_0x17895a['stdout']?.['on'](_0x325385['bpDoJ'],_0x211c51=>{const _0x1391cb=_0x13f232;_0x60aaf4+=_0x211c51[_0x1391cb(0x12f)]();}),_0x17895a['stderr']?.['on'](_0x13f232(0x145),_0x5704d7=>{const _0x4b2c8a=_0x13f232;_0x15bf4d+=_0x5704d7[_0x4b2c8a(0x12f)]();}),_0x17895a['on'](_0x13f232(0x171),_0x3fbc21=>{clearTimeout(_0x2e393b),_0x5b0164(_0x3fbc21);}),_0x17895a['on'](_0x325385['hFCJb'],(_0x12639f,_0x3c8a1d)=>{const _0x548f8a=_0x13f232;clearTimeout(_0x2e393b);if(_0x325385[_0x548f8a(0xd9)](_0x12639f,0x0)){_0x18ef9b({'stdout':_0x60aaf4,'stderr':_0x15bf4d});return;}const _0x3534cf=_0xc6815c?_0x548f8a(0xf0)+timeoutMs+'ms':'exited\x20with\x20code='+_0x325385[_0x548f8a(0x143)](_0x12639f,'null')+'\x20signal='+(_0x3c8a1d??_0x548f8a(0xf5));_0x325385[_0x548f8a(0x13f)](_0x5b0164,new Error(_0x2888b8+'\x20'+_0x51727e[_0x548f8a(0x109)]('\x20')+'\x20'+_0x3534cf+'\x0astdout:\x20'+_0x325385[_0x548f8a(0x13f)](truncateOutput,_0x60aaf4)+_0x548f8a(0x134)+_0x325385['RbfTj'](truncateOutput,_0x15bf4d)));});});}function runCommandAllowFailure(_0x5a64b3){const _0x21a751=_0x2c26de,_0x1e379a={'FapuO':function(_0x1eb045,_0x3a7d39){return _0x1eb045(_0x3a7d39);},'rqwpl':_0x21a751(0xdb),'kzzlB':'pipe','AsGob':'error','JlHgA':'close'},{command:_0x1c040a,args:_0x478e7e,env:_0x54e3b4,timeoutMs:_0x2cabd3}=_0x5a64b3;return new Promise((_0x128fb8,_0x387e5e)=>{const _0x22e11c=_0x21a751,_0x2c420a={'uwTuD':function(_0x13acd9,_0x598c44){return _0x13acd9(_0x598c44);}},_0x1a12e0=spawn(_0x1c040a,_0x478e7e,{'env':_0x54e3b4,'stdio':[_0x1e379a[_0x22e11c(0x14c)],_0x1e379a[_0x22e11c(0x17c)],_0x1e379a[_0x22e11c(0x17c)]]});let _0x247c19='',_0x16117a='',_0x557bb1=![];const _0x2986db=setTimeout(()=>{const _0x1c4271=_0x22e11c;_0x557bb1=!![],_0x1a12e0['kill'](_0x1c4271(0x17d)),setTimeout(()=>{try{_0x1a12e0['kill']('SIGKILL');}catch{}},0x3e8);},_0x2cabd3);_0x1a12e0['stdout']?.['on'](_0x22e11c(0x145),_0x133779=>{_0x247c19+=_0x133779['toString']();}),_0x1a12e0['stderr']?.['on'](_0x22e11c(0x145),_0x1c482b=>{const _0x16bf4a=_0x22e11c;_0x16117a+=_0x1c482b[_0x16bf4a(0x12f)]();}),_0x1a12e0['on'](_0x1e379a['AsGob'],_0x1cc6de=>{const _0x542f56=_0x22e11c;_0x1e379a['FapuO'](clearTimeout,_0x2986db),_0x1e379a[_0x542f56(0x153)](_0x387e5e,_0x1cc6de);}),_0x1a12e0['on'](_0x1e379a['JlHgA'],(_0x295003,_0x5ad38f)=>{_0x2c420a['uwTuD'](clearTimeout,_0x2986db),_0x128fb8({'code':_0x295003,'signal':_0x5ad38f,'stdout':_0x247c19,'stderr':_0x16117a,'timedOut':_0x557bb1});});});}async function resolveActPath(_0x40695e){const _0x209f50=_0x2c26de,_0x29cae3={'bCFpl':function(_0x54997e,_0x5dc61e){return _0x54997e(_0x5dc61e);}},_0x4f6c99=isAbsolute(NOVA_ACT_CLI_BINARY)?[NOVA_ACT_CLI_BINARY]:(_0x40695e['PATH']??'')[_0x209f50(0xef)](delimiter)['filter'](Boolean)['map'](_0x11ec4c=>join(_0x11ec4c,NOVA_ACT_CLI_BINARY));for(const _0x537716 of _0x4f6c99){try{return await _0x29cae3['bCFpl'](access,_0x537716),_0x537716;}catch{}}return null;}async function checkNovaActCli(_0x4ce894){const _0x351bc4=_0x2c26de,_0xf356bf={'vPeTC':function(_0xa7c9c0,_0x2735f7){return _0xa7c9c0(_0x2735f7);},'kRgTp':_0x351bc4(0x168)};try{return await _0xf356bf[_0x351bc4(0x192)](runBootstrapCommand,{'command':NOVA_ACT_CLI_BINARY,'args':['browser',_0xf356bf['kRgTp']],'env':_0x4ce894,'timeoutMs':0x7530}),await resolveActPath(_0x4ce894)??NOVA_ACT_CLI_BINARY;}catch{return null;}}export async function ensureNovaActCliInstalled(_0x30150f={}){const _0x47f5db=_0x2c26de,_0x21c710={'tWlIa':function(_0x53f1cb,_0x156b47){return _0x53f1cb(_0x156b47);},'RKPKm':_0x47f5db(0x177),'ySGtl':function(_0x42c160,_0x3a7185){return _0x42c160 instanceof _0x3a7185;},'mqhtk':function(_0x19272d,_0x47fc87){return _0x19272d(_0x47fc87);},'AtoVw':function(_0x43c410,_0x5b0882){return _0x43c410(_0x5b0882);}},_0x1b14ad=_0x21c710['tWlIa'](withNovaActCliPath,_0x30150f['env']??process['env']),_0x42d3d5=await checkNovaActCli(_0x1b14ad);if(_0x42d3d5)return{'installed':![],'actPath':_0x42d3d5,'uvPackage':NOVA_ACT_CLI_UV_PACKAGE,'stdout':'','stderr':''};try{await _0x21c710[_0x47f5db(0x106)](runBootstrapCommand,{'command':'uv','args':[_0x21c710[_0x47f5db(0x10a)]],'env':_0x1b14ad,'timeoutMs':0x7530});}catch(_0x1a3628){throw new Error(_0x47f5db(0x151)+NOVA_ACT_CLI_BINARY+'`,\x20and\x20`uv`\x20is\x20not\x20available\x20to\x20install\x20it.\x0aInstall\x20uv,\x20or\x20run:\x20uv\x20tool\x20install\x20\x22'+NOVA_ACT_CLI_UV_PACKAGE+'\x22\x0a'+(_0x21c710['ySGtl'](_0x1a3628,Error)?_0x1a3628['message']:_0x21c710[_0x47f5db(0x106)](String,_0x1a3628)));}const _0x1564cf=await _0x21c710[_0x47f5db(0x135)](runBootstrapCommand,{'command':'uv','args':['tool',_0x47f5db(0x12b),NOVA_ACT_CLI_UV_PACKAGE],'env':_0x1b14ad,'timeoutMs':_0x30150f['timeoutMs']??NOVA_ACT_BOOTSTRAP_TIMEOUT_MS}),_0x212857=await _0x21c710['tWlIa'](checkNovaActCli,_0x1b14ad);if(!_0x212857)throw new Error(_0x47f5db(0x15b)+NOVA_ACT_CLI_UV_PACKAGE+',\x20but\x20`'+NOVA_ACT_CLI_BINARY+_0x47f5db(0x14d)+_0x21c710['AtoVw'](getNovaActCliBinDirs,_0x1b14ad)[_0x47f5db(0x109)](',\x20')+'\x20is\x20on\x20PATH.\x0astdout:\x20'+_0x21c710[_0x47f5db(0x18a)](truncateOutput,_0x1564cf['stdout'])+_0x47f5db(0x134)+_0x21c710['tWlIa'](truncateOutput,_0x1564cf[_0x47f5db(0x196)]));return{'installed':!![],'actPath':_0x212857,'uvPackage':NOVA_ACT_CLI_UV_PACKAGE,'stdout':_0x1564cf[_0x47f5db(0x14e)],'stderr':_0x1564cf[_0x47f5db(0x196)]};}function parseNovaActDoctorOutput(_0x367b4a){try{return JSON['parse'](_0x367b4a);}catch{return null;}}function buildNovaActCliPreflightError(_0x5e4761){const _0x665ac=_0x2c26de,_0x21b963={'YUHuG':function(_0x338a7f,_0x58345f){return _0x338a7f??_0x58345f;},'sWKvl':'null','lJFfh':function(_0x7e998c,_0x346eae){return _0x7e998c(_0x346eae);},'oQeoh':function(_0x27ab55,_0x942eeb){return _0x27ab55(_0x942eeb);},'ZNLVu':'Nova\x20Act\x20CLI\x20preflight\x20failed,\x20so\x20Ranger\x20did\x20not\x20start\x20a\x20browser\x20session.','APPNy':'Configure\x20Nova\x20Act\x20with\x20NOVA_ACT_API_KEY,\x20run\x20act\x20browser\x20setup\x20--api-key\x20<key>,\x20or\x20configure\x20AWS\x20credentials.'},{checks:_0x30a630,stdout:_0x3f0966,stderr:_0x23150f,env:_0x4f4d01,code:_0x1897dd,signal:_0x3f2614,timedOut:_0x48d624}=_0x5e4761,_0x4c2c0d=_0x30a630['filter'](_0x5f37e6=>_0x5f37e6[_0x665ac(0xfb)]===_0x665ac(0xf8)),_0x2dab2f=_0x4c2c0d['length']>0x0?_0x4c2c0d[_0x665ac(0x114)](_0x30d695=>{const _0x145dc6=_0x665ac,_0x3e6747=_0x30d695[_0x145dc6(0x144)]?'\x20Fix:\x20'+_0x30d695[_0x145dc6(0x144)]:'';return'-\x20'+_0x30d695[_0x145dc6(0x194)]+':\x20'+_0x30d695['message']+'.'+_0x3e6747;})[_0x665ac(0x109)]('\x0a'):[_0x48d624?'act\x20browser\x20doctor\x20--json\x20timed\x20out':_0x665ac(0x182)+_0x21b963[_0x665ac(0x16a)](_0x1897dd,_0x21b963[_0x665ac(0x12d)])+'\x20signal='+(_0x3f2614??_0x21b963[_0x665ac(0x12d)]),_0x3f0966?_0x665ac(0x16c)+_0x21b963['lJFfh'](truncateOutput,_0x3f0966):'',_0x23150f?_0x665ac(0x152)+_0x21b963[_0x665ac(0x174)](truncateOutput,_0x23150f):''][_0x665ac(0x141)](Boolean)['join']('\x0a'),_0x56473b=_0x4f4d01['AWS_PROFILE']?.['trim'](),_0x1e644a=_0x56473b?_0x665ac(0x148)+_0x56473b:'For\x20AWS\x20SSO,\x20set\x20AWS_PROFILE\x20and\x20run:\x20aws\x20sso\x20login\x20--profile\x20<profile>';return new Error([_0x21b963[_0x665ac(0x117)],_0x2dab2f,_0x21b963['APPNy'],_0x1e644a][_0x665ac(0x109)]('\x0a'));}export async function preflightNovaActCli(_0x116ea9={}){const _0x411499=_0x2c26de,_0x4c8123={'eiGtU':'doctor','jjRnP':'--json','SFUSv':function(_0x34591f,_0x10c5a9){return _0x34591f!==_0x10c5a9;},'cKCLL':function(_0x56a8bc,_0x2c39e5){return _0x56a8bc(_0x2c39e5);}},_0x2480af=withNovaActCliPath(_0x116ea9[_0x411499(0xf2)]??process['env']),_0x5630f2=await runCommandAllowFailure({'command':NOVA_ACT_CLI_BINARY,'args':['browser',_0x4c8123['eiGtU'],_0x4c8123['jjRnP']],'env':_0x2480af,'timeoutMs':_0x116ea9['timeoutMs']??0x7530}),_0x520542=parseNovaActDoctorOutput(_0x5630f2['stdout']),_0x4270b3=_0x520542?.['data']?.[_0x411499(0x110)]??[],_0x7fc39=_0x4270b3['some'](_0x207408=>_0x207408['status']==='fail');if(_0x4c8123[_0x411499(0x161)](_0x5630f2[_0x411499(0x116)],0x0)||_0x5630f2['timedOut']||_0x7fc39)throw _0x4c8123['cKCLL'](buildNovaActCliPreflightError,{'checks':_0x4270b3,'stdout':_0x5630f2['stdout'],'stderr':_0x5630f2[_0x411499(0x196)],'env':_0x2480af,'code':_0x5630f2['code'],'signal':_0x5630f2['signal'],'timedOut':_0x5630f2[_0x411499(0x13a)]});return{'checks':_0x4270b3,'logDir':_0x520542?.[_0x411499(0x111)]??_0x520542?.[_0x411499(0xfc)]};}function getNovaActCliSubcommand(_0x6c8747){const _0x53f29c=_0x2c26de,[_0x27391f=_0x53f29c(0x181),_0xb5cc82]=_0x6c8747;return _0x27391f===_0x53f29c(0x115)&&_0xb5cc82?_0x27391f+'\x20'+_0xb5cc82:_0x27391f;}function supportsBrowserSessionOptions(_0x5d9cff){const _0xee627a=_0x2c26de,_0x1ebe9a={'wqDPR':function(_0x2922cc,_0x1d068a){return _0x2922cc===_0x1d068a;},'ZykTh':function(_0xfca887,_0x4f4a39){return _0xfca887===_0x4f4a39;},'wwfek':'export','JeWPC':_0xee627a(0x10c)};return!(_0x1ebe9a[_0xee627a(0x127)](_0x5d9cff[0x0],'session')&&(_0x1ebe9a['ZykTh'](_0x5d9cff[0x1],_0x1ebe9a['wwfek'])||_0x5d9cff[0x1]===_0x1ebe9a[_0xee627a(0xf4)]));}function buildSharedArgs(_0x450e9c,_0xfd6aa0){const _0x5677ec=_0x2c26de,_0x2a8cd6={'mtoVE':'--session-id','bQDyf':_0x5677ec(0x18d),'OQhaz':function(_0x54493c,_0xefa942){return _0x54493c(_0xefa942);},'fxaMD':'--quiet','rqeMQ':'--headed','ONupY':'--cdp'},_0x595f=[_0x2a8cd6['mtoVE'],_0x450e9c['sessionId'],_0x2a8cd6[_0x5677ec(0x162)]];if(_0x2a8cd6[_0x5677ec(0x13d)](supportsBrowserSessionOptions,_0xfd6aa0)){_0x595f[_0x5677ec(0x149)](_0x2a8cd6[_0x5677ec(0x154)]),_0x595f['push'](_0x450e9c['headless']?_0x5677ec(0x15a):_0x2a8cd6['rqeMQ']);_0x450e9c[_0x5677ec(0xea)]&&_0x595f['push'](_0x5677ec(0x112),_0x450e9c[_0x5677ec(0xea)]);_0x450e9c[_0x5677ec(0xe5)]&&_0x595f[_0x5677ec(0x149)]('--executable-path',_0x450e9c[_0x5677ec(0xe5)]);_0x450e9c['cdpEndpoint']&&_0x595f['push'](_0x2a8cd6['ONupY'],_0x450e9c[_0x5677ec(0x15d)]);for(const _0x23640c of _0x450e9c[_0x5677ec(0xf1)]??[]){_0x595f['push'](_0x5677ec(0xe1)+_0x23640c);}}return _0x595f;}export function buildNovaActCliInvocation(_0x22b9b0,_0x5e89d4){const _0x55e04d=_0x2c26de,_0xdf0b49={'SWujV':function(_0x464b4b,_0x292b86,_0x22adfd){return _0x464b4b(_0x292b86,_0x22adfd);},'SkEkF':'browser'},_0x4fa471=_0xdf0b49[_0x55e04d(0x160)](buildSharedArgs,_0x22b9b0,_0x5e89d4),_0xf6edb9=[_0xdf0b49[_0x55e04d(0xe8)],..._0x5e89d4,..._0x4fa471];return{'command':NOVA_ACT_CLI_BINARY,'args':_0xf6edb9,'shellCommand':[NOVA_ACT_CLI_BINARY,_0xdf0b49[_0x55e04d(0xe8)],..._0x5e89d4['map'](quoteShellArg),..._0x4fa471[_0x55e04d(0x114)](quoteShellArg)]['join']('\x20'),'subcommand':getNovaActCliSubcommand(_0x5e89d4)};}export function buildNovaActCliCommandPrefix(){return NOVA_ACT_CLI_BINARY+'\x20browser';}export function buildNovaActCliBrowserWrapperPath(_0x75ac47){const _0x495d11=_0x2c26de,_0xd56914={'bnHsT':function(_0x4e7ce1,_0xe33c00,_0x531e37){return _0x4e7ce1(_0xe33c00,_0x531e37);},'WpWPc':'nova-act-browser'};return _0xd56914[_0x495d11(0x11d)](join,dirname(_0x75ac47[_0x495d11(0x12c)]),_0xd56914[_0x495d11(0x120)]);}export async function writeNovaActCliBrowserWrapper(_0x3b1a4f){const _0x2f3002=_0x2c26de,_0x472c23={'KtNUk':function(_0x28cafb,_0x5411c3,_0x3af4b1){return _0x28cafb(_0x5411c3,_0x3af4b1);},'qLCCM':_0x2f3002(0xdd),'zBYLY':function(_0x33547e,_0xffae27){return _0x33547e(_0xffae27);},'XITwy':function(_0x7fca43,_0x5ce338,_0x2527e9,_0x4124fb){return _0x7fca43(_0x5ce338,_0x2527e9,_0x4124fb);},'lnrqJ':function(_0x37c9e3,_0x1e0865){return _0x37c9e3(_0x1e0865);}},_0xbeb8a2=_0x3b1a4f[_0x2f3002(0xe9)]??buildNovaActCliBrowserWrapperPath(_0x3b1a4f),_0x3c7689=_0x472c23[_0x2f3002(0x10d)](buildSharedArgs,_0x3b1a4f,['execute'])['map'](quoteShellArg)['join']('\x20'),_0xb7375e=buildSharedArgs(_0x3b1a4f,[_0x2f3002(0x115),_0x472c23[_0x2f3002(0x186)]])[_0x2f3002(0x114)](quoteShellArg)['join']('\x20');return await mkdir(_0x472c23[_0x2f3002(0x129)](dirname,_0xbeb8a2),{'recursive':!![]}),await _0x472c23[_0x2f3002(0x10d)](mkdir,_0x3b1a4f['userDataDir'],{'recursive':!![]}),await _0x472c23[_0x2f3002(0x18b)](writeFile,_0xbeb8a2,'#!/usr/bin/env\x20bash\x0aset\x20-euo\x20pipefail\x0aif\x20[[\x20\x22${1:-}\x22\x20==\x20\x22session\x22\x20&&\x20(\x20\x22${2:-}\x22\x20==\x20\x22export\x22\x20||\x20\x22${2:-}\x22\x20==\x20\x22close\x22\x20)\x20]];\x20then\x0a\x20\x20exec\x20'+quoteShellArg(NOVA_ACT_CLI_BINARY)+_0x2f3002(0xdf)+_0xb7375e+'\x0afi\x0a\x0aexec\x20'+_0x472c23['lnrqJ'](quoteShellArg,NOVA_ACT_CLI_BINARY)+_0x2f3002(0xdf)+_0x3c7689+'\x0a','utf-8'),await chmod(_0xbeb8a2,0x1ed),_0xbeb8a2;}export function buildNovaActCliSharedOptionsSuffix(_0x11f2d2,_0x42d508=['execute']){const _0x370692=_0x2c26de,_0x1737b3={'ceXxf':function(_0x2f6279,_0x27337,_0x4997be){return _0x2f6279(_0x27337,_0x4997be);}};return _0x1737b3['ceXxf'](buildSharedArgs,_0x11f2d2,_0x42d508)[_0x370692(0x114)](quoteShellArg)['join']('\x20');}export async function runNovaActCliCommand(_0x5907a2){const _0x32f74b=_0x2c26de,_0x29aea2={'qbWae':function(_0x30e6ec,_0x2fa18b){return _0x30e6ec===_0x2fa18b;},'GSunN':function(_0x500b30,_0xd1f229){return _0x500b30??_0xd1f229;},'dLRit':'null','RHLrn':function(_0x17bd21,_0x696fb8){return _0x17bd21(_0x696fb8);},'zqvli':function(_0x3f9919,_0x1eb261,_0x4acd7f,_0xaa610b){return _0x3f9919(_0x1eb261,_0x4acd7f,_0xaa610b);},'yTdtL':_0x32f74b(0x107),'wOvwC':_0x32f74b(0x145),'mlnwm':_0x32f74b(0x10c),'EpJTM':function(_0x1efe61,_0x167a3e,_0x26b873){return _0x1efe61(_0x167a3e,_0x26b873);}};await _0x29aea2['EpJTM'](mkdir,_0x5907a2['userDataDir'],{'recursive':!![]});const _0x2c686f=buildNovaActCliInvocation(_0x5907a2,_0x5907a2[_0x32f74b(0x159)]);return new Promise((_0x1b6087,_0x5e43bc)=>{const _0x4ecf46=_0x32f74b,_0x8ea239={'bdARd':function(_0x4bbb30,_0x4fd16d){return _0x4bbb30(_0x4fd16d);}},_0x232cce=_0x29aea2['zqvli'](spawn,_0x2c686f['command'],_0x2c686f[_0x4ecf46(0x180)],{'cwd':_0x5907a2['cwd'],'env':_0x5907a2['env'],'stdio':[_0x4ecf46(0xdb),_0x29aea2[_0x4ecf46(0x11a)],_0x29aea2['yTdtL']]});let _0x3b0c38='',_0x20a17a='',_0x2a22af=![];const _0x492955=_0x5907a2[_0x4ecf46(0x15e)]&&_0x5907a2[_0x4ecf46(0x15e)]>0x0?setTimeout(()=>{const _0x37c624=_0x4ecf46,_0x59b75d={'uzfoR':'SIGKILL'};_0x2a22af=!![],_0x232cce[_0x37c624(0x142)](_0x37c624(0x17d)),setTimeout(()=>{const _0xd19489=_0x37c624;try{_0x232cce['kill'](_0x59b75d[_0xd19489(0x137)]);}catch{}},0x3e8);},_0x5907a2['timeoutMs']):null;_0x232cce[_0x4ecf46(0x14e)]?.['on'](_0x29aea2[_0x4ecf46(0x176)],_0x3e82d4=>{_0x3b0c38+=_0x3e82d4['toString']();}),_0x232cce[_0x4ecf46(0x196)]?.['on'](_0x29aea2['wOvwC'],_0x2c76b0=>{_0x20a17a+=_0x2c76b0['toString']();}),_0x232cce['on']('error',_0x358587=>{const _0x4d34cf=_0x4ecf46;if(_0x492955)_0x8ea239[_0x4d34cf(0x103)](clearTimeout,_0x492955);_0x8ea239['bdARd'](_0x5e43bc,_0x358587);}),_0x232cce['on'](_0x29aea2['mlnwm'],(_0x39e9c6,_0x297691)=>{const _0x11a370=_0x4ecf46;if(_0x492955)clearTimeout(_0x492955);if(_0x29aea2['qbWae'](_0x39e9c6,0x0)){_0x1b6087({'stdout':_0x3b0c38,'stderr':_0x20a17a,'invocation':_0x2c686f});return;}const _0x2b6a5f=_0x2a22af?'timed\x20out\x20after\x20'+_0x5907a2[_0x11a370(0x15e)]+'ms':_0x11a370(0xdc)+_0x29aea2[_0x11a370(0xfd)](_0x39e9c6,_0x29aea2['dLRit'])+'\x20signal='+_0x29aea2['GSunN'](_0x297691,_0x11a370(0xf5));_0x5e43bc(new Error(_0x11a370(0x156)+_0x2c686f['subcommand']+'\x20'+_0x2b6a5f+'\x0astdout:\x20'+truncateOutput(_0x3b0c38)+'\x0astderr:\x20'+_0x29aea2['RHLrn'](truncateOutput,_0x20a17a)));});});}export function parseNovaActCliCommand(_0x279230){const _0x25ebd2=_0x279230['match'](/(?:^|\s)(?:(?:"[^"]*\/act"|'[^']*\/act'|\S*\/act|act)\s+browser|(?:"[^"]*\/nova-act-browser"|'[^']*\/nova-act-browser'|\S*\/nova-act-browser|nova-act-browser))\s+(session\s+[a-z-]+|[a-z][a-z-]*)\b/);return _0x25ebd2?.[0x1]??null;}export function extractNovaActLogDir(_0x429e30){const _0x3c8251=_0x2c26de;try{const _0xfe6bc2=JSON[_0x3c8251(0x140)](_0x429e30),_0x2a4a36=[_0xfe6bc2[_0x3c8251(0x17f)],_0xfe6bc2['logsDirectory'],_0xfe6bc2['logs_dir'],_0xfe6bc2[_0x3c8251(0xfc)],_0xfe6bc2[_0x3c8251(0x111)]],_0x2d6443=_0x2a4a36[_0x3c8251(0x15c)](_0x523dfe=>typeof _0x523dfe===_0x3c8251(0xf7)&&_0x523dfe['trim']()['length']>0x0);if(_0x2d6443)return _0x2d6443;}catch{}const _0x13d137=_0x429e30[_0x3c8251(0x118)](/(?:logs_directory|logsDirectory|log_dir|logDir|logs dir|logs directory)[:=]\s*["']?([^\s"',}]+)/i);return _0x13d137?.[0x1]??null;}export async function loadNovaActSessionExport(_0x5da660){const _0x47f596=_0x2c26de,_0xac508d={'AWsAG':function(_0x9393d3,_0x1196be,_0x1c1995){return _0x9393d3(_0x1196be,_0x1c1995);}};try{return JSON['parse'](await _0xac508d[_0x47f596(0xec)](readFile,_0x5da660,'utf-8'));}catch{return null;}}export async function hydrateNovaProfileFromStorageState(_0xb8aecd){const _0x10ff60=_0x2c26de,_0x56f054={'yPqtx':function(_0x586f6e,_0x4ee4f1){return _0x586f6e+_0x4ee4f1;},'LiMiJ':function(_0x35735e,_0x1e6623){return _0x35735e/_0x1e6623;},'BFtih':function(_0x6f5fcc,_0x3f40e4){return _0x6f5fcc(_0x3f40e4);},'dKpYg':function(_0x5b5c15,_0x48f5dd,_0x166527){return _0x5b5c15(_0x48f5dd,_0x166527);},'nRGOQ':function(_0xccdff7,_0x214433){return _0xccdff7(_0x214433);},'YHzzJ':'Nova\x20profile\x20hydration\x20browser\x20did\x20not\x20expose\x20a\x20context','IKkfp':function(_0x1573ac,_0x330da6){return _0x1573ac>_0x330da6;},'lKVBp':function(_0x4351ff,_0xd26fec,_0x1c3115){return _0x4351ff(_0xd26fec,_0x1c3115);}},_0x42f8ef=JSON[_0x10ff60(0x140)](await readFile(_0xb8aecd['storageStatePath'],'utf-8')),_0x464bad=await _0x56f054[_0x10ff60(0x125)](inspectNovaStorageStateFile,_0xb8aecd[_0x10ff60(0x179)]);await _0x56f054[_0x10ff60(0x184)](mkdir,_0xb8aecd['userDataDir'],{'recursive':!![]});const _0x27db6b=join(_0xb8aecd['userDataDir'],'Default'),_0x2ce4f1=await inspectNovaProfileFiles({'userDataDir':_0xb8aecd['userDataDir'],'browserProfilePath':_0x27db6b}),{browser:_0x3e6904,process:_0x2753eb}=await _0x56f054['nRGOQ'](launchNovaHydrationBrowser,{'userDataDir':_0xb8aecd[_0x10ff60(0x12c)],'browserProfilePath':_0x27db6b,'executablePath':_0xb8aecd[_0x10ff60(0xe5)],'headless':_0xb8aecd['headless'],'launchArgs':_0xb8aecd[_0x10ff60(0xf1)]}),_0x21fbc6=_0x3e6904[_0x10ff60(0x12e)]()[0x0];if(!_0x21fbc6){await closeNovaHydrationBrowser(_0x3e6904,_0x2753eb);throw new Error(_0x56f054[_0x10ff60(0x167)]);}let _0x220932=0x0,_0x146dd6=0x0;try{const _0x432e43=_0x42f8ef['cookies']??[];if(_0x56f054[_0x10ff60(0xf6)](_0x432e43[_0x10ff60(0x18c)],0x0)){const _0x30de41=_0x432e43[_0x10ff60(0x114)](_0x2ceb5a=>{const _0x33abec=_0x10ff60;if(_0x2ceb5a['expires']!==-0x1)return _0x2ceb5a;return _0x146dd6+=0x1,{..._0x2ceb5a,'expires':_0x56f054[_0x33abec(0xe2)](Math['floor'](_0x56f054['LiMiJ'](Date[_0x33abec(0x164)](),0x3e8)),NOVA_PROMOTED_SESSION_COOKIE_TTL_SECONDS)};});await _0x21fbc6[_0x10ff60(0x175)](_0x30de41);}for(const _0x9620c2 of _0x42f8ef['origins']??[]){if(!_0x9620c2[_0x10ff60(0xf3)]?.[_0x10ff60(0x18c)])continue;const _0x723eb3=await _0x21fbc6[_0x10ff60(0x113)]();await _0x723eb3['goto'](_0x9620c2['origin'],{'waitUntil':_0x10ff60(0x188),'timeout':0x7530}),await _0x723eb3['evaluate'](_0x2de07e=>{const _0x284ec7=_0x10ff60;for(const _0x5add2a of _0x2de07e){window[_0x284ec7(0xf3)][_0x284ec7(0xda)](_0x5add2a['name'],_0x5add2a['value']);}},_0x9620c2[_0x10ff60(0xf3)]),_0x220932+=_0x9620c2[_0x10ff60(0xf3)][_0x10ff60(0x18c)],await _0x723eb3[_0x10ff60(0x10c)]();}if(_0xb8aecd[_0x10ff60(0x16e)]){const _0x88c238=await _0x21fbc6['newPage']();await _0x88c238['goto'](_0xb8aecd[_0x10ff60(0x16e)],{'waitUntil':_0x10ff60(0x188),'timeout':0x7530}),await _0x88c238['close']();}await ensureChromeProfileShape(_0xb8aecd[_0x10ff60(0x12c)],_0x27db6b);}finally{await _0x56f054['lKVBp'](closeNovaHydrationBrowser,_0x3e6904,_0x2753eb);}const _0x320d92=await _0x56f054[_0x10ff60(0x125)](inspectNovaProfileFiles,{'userDataDir':_0xb8aecd[_0x10ff60(0x12c)],'browserProfilePath':_0x27db6b});return{'browserProfilePath':_0x27db6b,'cookieCount':_0x42f8ef[_0x10ff60(0x132)]?.[_0x10ff60(0x18c)]??0x0,'promotedSessionCookieCount':_0x146dd6,'originCount':_0x42f8ef['origins']?.[_0x10ff60(0x18c)]??0x0,'localStorageEntryCount':_0x220932,'storageStateDiagnostics':_0x464bad,'profileBefore':_0x2ce4f1,'profileAfter':_0x320d92};}async function launchNovaHydrationBrowser(_0x19c2f){const _0x2e5b60=_0x2c26de,_0x51570d={'UZhZH':function(_0x2c84a5){return _0x2c84a5();},'BryFt':_0x2e5b60(0x191),'uTaIl':_0x2e5b60(0xff),'qJhFi':'--headless=new','kRcLK':'ignore','bsiaN':_0x2e5b60(0x107),'VjidG':function(_0x550b13,_0x45913f){return _0x550b13(_0x45913f);}};await ensureChromeProfileShape(_0x19c2f[_0x2e5b60(0x12c)],_0x19c2f[_0x2e5b60(0xea)]);const _0x1148c9=_0x19c2f['executablePath']??chromium[_0x2e5b60(0xe5)](),_0x34a0e7=await _0x51570d['UZhZH'](getAvailablePort),_0x2c45b5=['--remote-debugging-port='+_0x34a0e7,_0x2e5b60(0x197)+_0x19c2f[_0x2e5b60(0x12c)],_0x51570d['BryFt'],'--window-size=1280,720',_0x51570d['uTaIl'],'--remote-allow-origins=http://localhost'];_0x19c2f['headless']&&_0x2c45b5['push'](_0x51570d[_0x2e5b60(0x193)]);_0x2c45b5[_0x2e5b60(0x149)](..._0x19c2f[_0x2e5b60(0xf1)]??[]);const _0x1f135a=spawn(_0x1148c9,_0x2c45b5,{'stdio':[_0x51570d['kRcLK'],'pipe',_0x51570d['bsiaN']]});try{const _0x2362cc=await waitForCdpEndpoint(_0x1f135a,_0x34a0e7),_0x68433a=await chromium[_0x2e5b60(0x187)](_0x2362cc);return{'browser':_0x68433a,'process':_0x1f135a};}catch(_0x5ac5c5){await _0x51570d[_0x2e5b60(0x16d)](terminateNovaHydrationBrowser,_0x1f135a);throw _0x5ac5c5;}}async function closeNovaHydrationBrowser(_0x3ca0a5,_0x1fdc53){const _0xebaa37=_0x2c26de;try{await _0x3ca0a5[_0xebaa37(0x10c)]();}catch{await terminateNovaHydrationBrowser(_0x1fdc53);return;}const _0x2ae14f=await waitForProcessExit(_0x1fdc53,0x1388);!_0x2ae14f&&await terminateNovaHydrationBrowser(_0x1fdc53);}async function terminateNovaHydrationBrowser(_0x3fcc98){const _0x3f0875=_0x2c26de,_0xd28679={'RPUex':function(_0x5026c0,_0x38adb6){return _0x5026c0===_0x38adb6;}};if(_0x3fcc98['exitCode']!==null)return;try{_0x3fcc98[_0x3f0875(0x142)]('SIGTERM');}catch{}await waitForProcessExit(_0x3fcc98,0x7d0);if(_0xd28679[_0x3f0875(0x121)](_0x3fcc98['exitCode'],null)){try{_0x3fcc98['kill'](_0x3f0875(0xed));}catch{}await waitForProcessExit(_0x3fcc98,0x7d0);}}async function waitForCdpEndpoint(_0x2ec666,_0x14d956){const _0x18f467=_0x2c26de,_0x57c933={'VJrYa':function(_0x3325fc,_0x267319){return _0x3325fc<_0x267319;},'lDVCj':function(_0x2de315,_0x129584){return _0x2de315-_0x129584;},'GRPnl':function(_0x25b970,_0x4f0258){return _0x25b970(_0x4f0258);},'VgPCU':function(_0x4e47a7,_0x3ee4d6){return _0x4e47a7 instanceof _0x3ee4d6;}},_0x528917=Date[_0x18f467(0x164)]();let _0x2789f1;while(_0x57c933['VJrYa'](_0x57c933['lDVCj'](Date[_0x18f467(0x164)](),_0x528917),NOVA_PROFILE_HYDRATION_CDP_TIMEOUT_MS)){if(_0x2ec666[_0x18f467(0x190)]!==null)throw new Error(_0x18f467(0xf9)+_0x2ec666['exitCode']);try{const _0x1f9916=await _0x57c933[_0x18f467(0x136)](fetch,'http://127.0.0.1:'+_0x14d956+'/json/version');if(_0x1f9916['ok']){const _0x30fe3f=await _0x1f9916[_0x18f467(0x123)]();if(typeof _0x30fe3f[_0x18f467(0x165)]===_0x18f467(0xf7))return _0x30fe3f[_0x18f467(0x165)];}}catch(_0x95e972){_0x2789f1=_0x95e972;}await delay(0x64);}const _0x4436de=_0x57c933['VgPCU'](_0x2789f1,Error)?':\x20'+_0x2789f1[_0x18f467(0x150)]:'';throw new Error(_0x18f467(0x10b)+_0x4436de);}async function getAvailablePort(){const _0x46266e=_0x2c26de,_0x518dbb={'WjPtB':function(_0x2b156f,_0xa0ffb3){return _0x2b156f(_0xa0ffb3);},'dZPch':'object','IqntE':'error','ZmmQi':_0x46266e(0x126)};return new Promise((_0xec68a,_0xabfc4c)=>{const _0x819c1f=_0x46266e,_0x375f99={'jpJaH':function(_0x570cab,_0x4c365e){return _0x518dbb['WjPtB'](_0x570cab,_0x4c365e);},'dNNdG':function(_0x59bfba,_0x5674a6){return _0x59bfba===_0x5674a6;},'bypqP':_0x518dbb['dZPch']},_0x52aa8b=createServer();_0x52aa8b[_0x819c1f(0x11b)](_0x518dbb[_0x819c1f(0x195)],_0xabfc4c),_0x52aa8b['listen'](0x0,_0x518dbb[_0x819c1f(0x17b)],()=>{const _0x1d9f14=_0x819c1f,_0x13eeb3=_0x52aa8b['address']();_0x52aa8b[_0x1d9f14(0x10c)](_0x672db=>{const _0x1d0516=_0x1d9f14;if(_0x672db){_0x375f99['jpJaH'](_0xabfc4c,_0x672db);return;}if(_0x375f99[_0x1d0516(0x12a)](typeof _0x13eeb3,_0x375f99[_0x1d0516(0x101)])&&_0x13eeb3?.['port']){_0x375f99['jpJaH'](_0xec68a,_0x13eeb3['port']);return;}_0x375f99['jpJaH'](_0xabfc4c,new Error('Failed\x20to\x20allocate\x20hydration\x20browser\x20port'));});});});}async function waitForProcessExit(_0x3f4046,_0x45d1d9){const _0x4f7970=_0x2c26de,_0x33e360={'tdLUJ':function(_0x145dff){return _0x145dff();},'ZQrKJ':function(_0x41d6c0,_0x233975){return _0x41d6c0(_0x233975);},'XHYKC':_0x4f7970(0x10f),'CmvXV':function(_0x111be3,_0x36a45f){return _0x111be3(_0x36a45f);},'ICdwK':function(_0x440c84,_0x107698,_0x5c5b76){return _0x440c84(_0x107698,_0x5c5b76);},'oQrEy':function(_0x34a87f,_0x4182ab){return _0x34a87f!==_0x4182ab;}};if(_0x33e360[_0x4f7970(0x147)](_0x3f4046[_0x4f7970(0x190)],null))return!![];return new Promise(_0xdb7834=>{const _0x582854=_0x4f7970,_0x5c3d89={'BJKDp':function(_0x4bee27){const _0x5a208e=_0x5373;return _0x33e360[_0x5a208e(0x139)](_0x4bee27);},'DWCnb':function(_0x21916d,_0x5b8404){return _0x33e360['CmvXV'](_0x21916d,_0x5b8404);}},_0x58cf4c=_0x33e360[_0x582854(0x16b)](setTimeout,()=>{const _0x239586=_0x582854;_0x5c3d89[_0x239586(0x124)](_0xf27809),_0x5c3d89[_0x239586(0xe3)](_0xdb7834,![]);},_0x45d1d9),_0x5c16aa=()=>{_0x33e360['tdLUJ'](_0xf27809),_0xdb7834(!![]);},_0xf27809=()=>{const _0x2a77bf=_0x582854;_0x33e360[_0x2a77bf(0xeb)](clearTimeout,_0x58cf4c),_0x3f4046['off'](_0x33e360[_0x2a77bf(0x122)],_0x5c16aa);};_0x3f4046[_0x582854(0x11b)](_0x582854(0x10f),_0x5c16aa);});}async function delay(_0x342cb6){await new Promise(_0x59e76c=>setTimeout(_0x59e76c,_0x342cb6));}async function ensureChromeProfileShape(_0x2454ec,_0x3a94df){const _0x5ecb4b=_0x2c26de,_0x18b294={'gGALj':function(_0x17bf44,_0x983c0a,_0x4c66e0){return _0x17bf44(_0x983c0a,_0x4c66e0);},'pjQxt':function(_0x203e8a,_0xffc7af,_0x22b4ef){return _0x203e8a(_0xffc7af,_0x22b4ef);}};await _0x18b294['gGALj'](mkdir,_0x3a94df,{'recursive':!![]}),await ensureJsonFile(_0x18b294[_0x5ecb4b(0x11e)](join,_0x2454ec,_0x5ecb4b(0xe0))),await ensureJsonFile(_0x18b294[_0x5ecb4b(0x158)](join,_0x3a94df,'Preferences'));}async function ensureJsonFile(_0x2ddd1e){const _0x35db54=_0x2c26de,_0x49ad28={'Dobui':function(_0x1b962a,_0x59d056){return _0x1b962a(_0x59d056);},'HKvTz':function(_0x2f26c4,_0x599c4b,_0x1b8012,_0x401a7b){return _0x2f26c4(_0x599c4b,_0x1b8012,_0x401a7b);},'IysFd':_0x35db54(0x11c)};try{await _0x49ad28['Dobui'](access,_0x2ddd1e);}catch{await _0x49ad28['HKvTz'](writeFile,_0x2ddd1e,'{}',_0x49ad28['IysFd']);}}export function previewNovaActCliCommand(_0x1c59c2){const _0x42b8b6={'Fwnvm':function(_0x303990,_0x46a3fb){return _0x303990(_0x46a3fb);}};return _0x42b8b6['Fwnvm'](truncatePreview,_0x1c59c2);}
1
+ const _0x5ee2d2=_0x2891;(function(_0x1b8d19,_0x595eee){const _0x53bd9c=_0x2891,_0x144312=_0x1b8d19();while(!![]){try{const _0x16812d=-parseInt(_0x53bd9c(0x164))/0x1+parseInt(_0x53bd9c(0x112))/0x2*(parseInt(_0x53bd9c(0x195))/0x3)+-parseInt(_0x53bd9c(0x133))/0x4+parseInt(_0x53bd9c(0x12a))/0x5*(-parseInt(_0x53bd9c(0x15b))/0x6)+-parseInt(_0x53bd9c(0x179))/0x7*(-parseInt(_0x53bd9c(0x131))/0x8)+parseInt(_0x53bd9c(0x134))/0x9+parseInt(_0x53bd9c(0x19a))/0xa*(parseInt(_0x53bd9c(0xe8))/0xb);if(_0x16812d===_0x595eee)break;else _0x144312['push'](_0x144312['shift']());}catch(_0x31f419){_0x144312['push'](_0x144312['shift']());}}}(_0x4756,0xe9c4d));import{spawn}from'child_process';import{createHash}from'crypto';import{access,chmod,mkdir,readFile,readdir,stat,writeFile}from'fs/promises';import{createServer}from'net';import{delimiter,dirname,isAbsolute,join}from'path';import{homedir}from'os';import{chromium}from'playwright';import{quoteShellArg}from'./playwrightCli.js';export const NOVA_ACT_CLI_BINARY=_0x5ee2d2(0x128);export const NOVA_ACT_CLI_UV_PACKAGE=_0x5ee2d2(0xff);const NOVA_ACT_CLI_PREVIEW_LIMIT=0xf0,NOVA_ACT_BOOTSTRAP_TIMEOUT_MS=0x2bf20,NOVA_PROFILE_HYDRATION_CDP_TIMEOUT_MS=0x3a98,NOVA_PROMOTED_SESSION_COOKIE_TTL_SECONDS=0x7*0x18*0x3c*0x3c;export function toNovaActCliSessionId(_0x1d7452){const _0x5d523c=_0x5ee2d2,_0x4c06b2={'rFExe':function(_0xe19bc5,_0x2cac91){return _0xe19bc5(_0x2cac91);}},_0x250980=_0x4c06b2[_0x5d523c(0x18c)](createHash,'sha256')[_0x5d523c(0x107)](_0x1d7452)[_0x5d523c(0xeb)](_0x5d523c(0x117))[_0x5d523c(0x152)](0x0,0xc);return'rg-'+_0x250980;}export async function inspectNovaStorageStateFile(_0x5abff8){const _0x4de553=_0x5ee2d2,_0x4f9feb={'DGBNn':function(_0x2cf095,_0x49dad2){return _0x2cf095(_0x49dad2);},'jezay':'utf-8','tcDku':_0x4de553(0x15c),'YLSdG':_0x4de553(0x117),'IaQjt':function(_0x58f780,_0x816e4e){return _0x58f780/_0x816e4e;}};try{const [_0x208942,_0x11a267]=await Promise['all']([_0x4f9feb['DGBNn'](stat,_0x5abff8),readFile(_0x5abff8,_0x4f9feb['jezay'])]),_0x44b2b3={'path':_0x5abff8,'exists':!![],'byteLength':Buffer[_0x4de553(0x1a6)](_0x11a267),'sha256':createHash(_0x4f9feb[_0x4de553(0x101)])['update'](_0x11a267)[_0x4de553(0xeb)](_0x4f9feb['YLSdG'])};try{const _0x16ed18=JSON[_0x4de553(0x10e)](_0x11a267),_0x22dc53=_0x16ed18[_0x4de553(0x13d)]??[],_0x1d5576=Math[_0x4de553(0x1a3)](_0x4f9feb[_0x4de553(0x13a)](Date[_0x4de553(0x182)](),0x3e8)),_0x477f2b=new Map();for(const _0x160715 of _0x22dc53){const _0x16e613=_0x477f2b['get'](_0x160715['domain'])??[];_0x16e613[_0x4de553(0x170)](_0x160715[_0x4de553(0x197)]),_0x477f2b[_0x4de553(0x102)](_0x160715['domain'],_0x16e613);}return{..._0x44b2b3,'byteLength':_0x208942[_0x4de553(0x14f)],'cookieCount':_0x22dc53[_0x4de553(0x116)],'cookieDomains':[..._0x477f2b['entries']()][_0x4de553(0x16a)](([_0x4a95e6],[_0x115e96])=>_0x4a95e6[_0x4de553(0x118)](_0x115e96))[_0x4de553(0x1a5)](([_0x26db80,_0xf6f3d8])=>({'domain':_0x26db80,'count':_0xf6f3d8['length'],'names':_0xf6f3d8['sort']()[_0x4de553(0x152)](0x0,0x19)})),'httpOnlyCookieCount':_0x22dc53[_0x4de553(0x124)](_0x4863aa=>_0x4863aa[_0x4de553(0x114)])['length'],'secureCookieCount':_0x22dc53['filter'](_0x2ea9b7=>_0x2ea9b7[_0x4de553(0x185)])[_0x4de553(0x116)],'sessionCookieCount':_0x22dc53['filter'](_0x138eab=>_0x138eab['expires']===-0x1)[_0x4de553(0x116)],'expiredCookieCount':_0x22dc53['filter'](_0x3a890f=>typeof _0x3a890f['expires']===_0x4de553(0x14d)&&_0x3a890f[_0x4de553(0x190)]>0x0&&_0x3a890f['expires']<_0x1d5576)[_0x4de553(0x116)],'originCount':_0x16ed18[_0x4de553(0xfa)]?.['length']??0x0,'origins':(_0x16ed18[_0x4de553(0xfa)]??[])[_0x4de553(0x1a5)](_0xdfd129=>({'origin':_0xdfd129[_0x4de553(0x147)],'localStorageCount':_0xdfd129['localStorage']?.['length']??0x0,'localStorageKeys':_0xdfd129[_0x4de553(0xf6)]?.[_0x4de553(0x1a5)](_0x4de698=>_0x4de698[_0x4de553(0x197)])['sort']()['slice'](0x0,0x19)??[]}))};}catch(_0x1cd297){return{..._0x44b2b3,'byteLength':_0x208942['size'],'parseError':_0x1cd297 instanceof Error?_0x1cd297[_0x4de553(0xee)]:_0x4f9feb[_0x4de553(0x105)](String,_0x1cd297)};}}catch(_0xe3e968){return{'path':_0x5abff8,'exists':![],'readError':_0xe3e968 instanceof Error?_0xe3e968[_0x4de553(0xee)]:String(_0xe3e968)};}}export async function inspectNovaProfileFiles(_0x38f2e2){const _0x58bd1f=_0x5ee2d2,_0x13820b={'zToaY':function(_0x43f81f,_0x165548,_0x40fe74){return _0x43f81f(_0x165548,_0x40fe74);},'unzeI':_0x58bd1f(0xfe),'ISjgi':'Preferences','OIcQp':_0x58bd1f(0x13f),'eqgsD':'Network','lMgRx':function(_0x195053,_0x26760f,_0x572bb3){return _0x195053(_0x26760f,_0x572bb3);},'aMMnp':_0x58bd1f(0x15d),'yFzGm':function(_0x2388bb,_0x48d268){return _0x2388bb(_0x48d268);},'tAdYl':function(_0x4f2c5d,_0x28d6f8){return _0x4f2c5d(_0x28d6f8);},'PLysR':function(_0x4384b0,_0x2d1654){return _0x4384b0(_0x2d1654);},'gcqqJ':function(_0x2f3984,_0xe537a3){return _0x2f3984(_0xe537a3);}},_0x3cc1f4=_0x13820b[_0x58bd1f(0xe6)](join,_0x38f2e2[_0x58bd1f(0x169)],_0x13820b[_0x58bd1f(0x14b)]),_0x370cac=join(_0x38f2e2['browserProfilePath'],_0x13820b['ISjgi']),_0x400fb0=_0x13820b['zToaY'](join,_0x38f2e2[_0x58bd1f(0x199)],_0x13820b['OIcQp']),_0x57e9e2=join(_0x38f2e2['browserProfilePath'],_0x13820b['eqgsD'],_0x13820b['OIcQp']),_0x557f4b=_0x13820b['lMgRx'](join,_0x38f2e2['browserProfilePath'],_0x13820b[_0x58bd1f(0x10c)]),_0x190462=join(_0x557f4b,'leveldb'),[_0x4a5f33,_0x550f71,_0xf85144,_0x1cfbb8,_0x369c36,_0x5d2630,_0x54cd3b,_0x4ea559,_0x369009,_0x3711c2,_0xb33904]=await Promise[_0x58bd1f(0x13c)]([inspectPath(_0x38f2e2[_0x58bd1f(0x169)]),inspectPath(_0x38f2e2['browserProfilePath']),_0x13820b[_0x58bd1f(0x143)](inspectPath,_0x3cc1f4),_0x13820b[_0x58bd1f(0x143)](inspectPath,_0x370cac),_0x13820b[_0x58bd1f(0x171)](inspectPath,_0x400fb0),inspectPath(_0x57e9e2),_0x13820b[_0x58bd1f(0x143)](inspectPath,_0x557f4b),_0x13820b[_0x58bd1f(0x14c)](inspectPath,_0x190462),listDir(_0x38f2e2['userDataDir']),listDir(_0x38f2e2[_0x58bd1f(0x199)]),_0x13820b[_0x58bd1f(0xf5)](listDir,_0x190462)]);return{'userDataDir':_0x38f2e2[_0x58bd1f(0x169)],'browserProfilePath':_0x38f2e2[_0x58bd1f(0x199)],'rootEntries':_0x369009,'defaultEntries':_0x3711c2,'localStorageEntries':_0xb33904,'paths':{'userDataDir':_0x4a5f33,'browserProfilePath':_0x550f71,'localState':_0xf85144,'preferences':_0x1cfbb8,'cookies':_0x369c36,'networkCookies':_0x5d2630,'localStorage':_0x54cd3b,'levelDb':_0x4ea559}};}async function inspectPath(_0x448de6){const _0x55be80=_0x5ee2d2,_0x34162d={'GzYdU':function(_0x436498,_0x1d6209){return _0x436498(_0x1d6209);},'nJWKH':function(_0x486b2f,_0x5a6042){return _0x486b2f instanceof _0x5a6042;}};try{const _0x4405f2=await _0x34162d[_0x55be80(0x19c)](stat,_0x448de6);return{'path':_0x448de6,'exists':!![],'isDirectory':_0x4405f2[_0x55be80(0x126)](),'byteLength':_0x4405f2[_0x55be80(0x106)]()?_0x4405f2[_0x55be80(0x14f)]:undefined,'mtimeMs':_0x4405f2['mtimeMs']};}catch(_0x5dd453){return{'path':_0x448de6,'exists':![],'error':_0x34162d[_0x55be80(0x188)](_0x5dd453,Error)?_0x5dd453[_0x55be80(0xee)]:_0x34162d[_0x55be80(0x19c)](String,_0x5dd453)};}}async function listDir(_0x4dffe1){const _0x48afee=_0x5ee2d2,_0x14b896={'prLwR':function(_0x27d6cb,_0x39aed8){return _0x27d6cb(_0x39aed8);}};try{return(await _0x14b896['prLwR'](readdir,_0x4dffe1))[_0x48afee(0x16a)]()[_0x48afee(0x152)](0x0,0x32);}catch{return undefined;}}function truncatePreview(_0x11035f,_0x53b351=NOVA_ACT_CLI_PREVIEW_LIMIT){const _0x47ae25=_0x5ee2d2,_0x19ac51={'GYkMi':'...'};return _0x11035f[_0x47ae25(0x116)]>_0x53b351?_0x11035f[_0x47ae25(0x152)](0x0,_0x53b351)+_0x19ac51[_0x47ae25(0x17a)]:_0x11035f;}function truncateOutput(_0x51db55,_0x1f2784=0x7d0){const _0x37e052=_0x5ee2d2,_0x306014={'qkUXJ':function(_0x41cb0a,_0xef76bf){return _0x41cb0a>_0xef76bf;},'pDMTk':_0x37e052(0x17d)};return _0x306014[_0x37e052(0x127)](_0x51db55['length'],_0x1f2784)?_0x51db55['slice'](0x0,_0x1f2784)+_0x306014['pDMTk']:_0x51db55;}function getNovaActCliBinDirs(_0x35853a){const _0x53641c=_0x5ee2d2,_0x22106d={'jJiWR':function(_0x1e58ff){return _0x1e58ff();},'ArDpp':_0x53641c(0x144)};return[_0x35853a[_0x53641c(0x109)],_0x22106d[_0x53641c(0xf3)](homedir)+_0x53641c(0x194),_0x22106d['ArDpp'],'/usr/local/bin']['filter'](_0x2e63ba=>Boolean(_0x2e63ba));}function buildPathWithNovaActCliBins(_0xe83c49){const _0x1d4eb9=_0x5ee2d2,_0xed3ee4={'Mbykb':function(_0x3350e0,_0x329c9d){return _0x3350e0(_0x329c9d);}},_0x3419da=new Set(),_0x21f607=[..._0xed3ee4[_0x1d4eb9(0x110)](getNovaActCliBinDirs,_0xe83c49),...(_0xe83c49[_0x1d4eb9(0x173)]??'')['split'](delimiter)][_0x1d4eb9(0x124)](_0x34d6bd=>{if(!_0x34d6bd||_0x3419da['has'](_0x34d6bd))return![];return _0x3419da['add'](_0x34d6bd),!![];});return _0x21f607[_0x1d4eb9(0x10b)](delimiter);}export function applyNovaActCliPath(_0x6afe72){_0x6afe72['PATH']=buildPathWithNovaActCliBins(_0x6afe72);}function withNovaActCliPath(_0x5409aa){return{..._0x5409aa,'PATH':buildPathWithNovaActCliBins(_0x5409aa)};}function runBootstrapCommand(_0x1dc141){const _0x1c8654=_0x5ee2d2,_0xf01a86={'vxwfw':function(_0x1f9b1f,_0x1103ce){return _0x1f9b1f===_0x1103ce;},'hLpGX':function(_0x67a207,_0x352189){return _0x67a207(_0x352189);},'BvfNd':function(_0x35e9b3,_0x33dfb8){return _0x35e9b3??_0x33dfb8;},'vuFix':'ignore','DElNS':_0x1c8654(0xe9),'eriLG':'data','ytsZu':_0x1c8654(0x154),'HVNCH':'close'},{command:_0xfd0c05,args:_0x2dea73,env:_0x5c59a8,timeoutMs:timeoutMs=NOVA_ACT_BOOTSTRAP_TIMEOUT_MS}=_0x1dc141;return new Promise((_0x5c87a3,_0x2cecdf)=>{const _0x35c112=_0x1c8654,_0x791668={'IvnHz':'SIGTERM','BMLMC':function(_0x510032,_0x1d8aef){return _0x510032(_0x1d8aef);}},_0xf85aa0=spawn(_0xfd0c05,_0x2dea73,{'env':_0x5c59a8,'stdio':[_0xf01a86[_0x35c112(0x172)],'pipe',_0xf01a86[_0x35c112(0x193)]]});let _0x338520='',_0x3e4410='',_0xbe74be=![];const _0x18742c=setTimeout(()=>{const _0x499659=_0x35c112;_0xbe74be=!![],_0xf85aa0[_0x499659(0x18d)](_0x791668[_0x499659(0x12f)]),setTimeout(()=>{const _0x42f5ec=_0x499659;try{_0xf85aa0[_0x42f5ec(0x18d)](_0x42f5ec(0x177));}catch{}},0x3e8);},timeoutMs);_0xf85aa0['stdout']?.['on'](_0x35c112(0x167),_0x114d09=>{const _0x43e7f9=_0x35c112;_0x338520+=_0x114d09[_0x43e7f9(0x140)]();}),_0xf85aa0[_0x35c112(0x150)]?.['on'](_0xf01a86['eriLG'],_0x1611d6=>{_0x3e4410+=_0x1611d6['toString']();}),_0xf85aa0['on'](_0xf01a86['ytsZu'],_0x410cbf=>{const _0xc8c93b=_0x35c112;_0x791668[_0xc8c93b(0x125)](clearTimeout,_0x18742c),_0x791668[_0xc8c93b(0x125)](_0x2cecdf,_0x410cbf);}),_0xf85aa0['on'](_0xf01a86['HVNCH'],(_0x24df83,_0x3060f6)=>{const _0x13837a=_0x35c112;clearTimeout(_0x18742c);if(_0xf01a86['vxwfw'](_0x24df83,0x0)){_0xf01a86[_0x13837a(0x120)](_0x5c87a3,{'stdout':_0x338520,'stderr':_0x3e4410});return;}const _0xc60b83=_0xbe74be?'timed\x20out\x20after\x20'+timeoutMs+'ms':'exited\x20with\x20code='+_0xf01a86['BvfNd'](_0x24df83,'null')+'\x20signal='+(_0x3060f6??'null');_0xf01a86[_0x13837a(0x120)](_0x2cecdf,new Error(_0xfd0c05+'\x20'+_0x2dea73[_0x13837a(0x10b)]('\x20')+'\x20'+_0xc60b83+_0x13837a(0x19b)+truncateOutput(_0x338520)+_0x13837a(0x19d)+truncateOutput(_0x3e4410)));});});}function runCommandAllowFailure(_0x8786fe){const _0x26a209=_0x5ee2d2,_0x4083b5={'XXNpY':_0x26a209(0x11a),'Yslzr':_0x26a209(0x177),'hvyDS':_0x26a209(0x13b),'VfEhT':_0x26a209(0xe9),'IcVBu':_0x26a209(0x167)},{command:_0x154cf0,args:_0x332956,env:_0x44a8a6,timeoutMs:_0x3646eb}=_0x8786fe;return new Promise((_0x572360,_0xe93565)=>{const _0x16832a=_0x26a209,_0x2dbed8={'DNPxJ':_0x4083b5[_0x16832a(0x15a)]},_0x316f04=spawn(_0x154cf0,_0x332956,{'env':_0x44a8a6,'stdio':[_0x4083b5[_0x16832a(0x132)],_0x4083b5['VfEhT'],_0x16832a(0xe9)]});let _0x1c5de3='',_0x30dc8f='',_0x5f38e2=![];const _0xe6bc99=setTimeout(()=>{const _0x290f79=_0x16832a;_0x5f38e2=!![],_0x316f04[_0x290f79(0x18d)](_0x4083b5['XXNpY']),setTimeout(()=>{const _0x27bfff=_0x290f79;try{_0x316f04[_0x27bfff(0x18d)](_0x2dbed8[_0x27bfff(0x111)]);}catch{}},0x3e8);},_0x3646eb);_0x316f04[_0x16832a(0xfc)]?.['on'](_0x4083b5['IcVBu'],_0xcc011d=>{const _0x53f1de=_0x16832a;_0x1c5de3+=_0xcc011d[_0x53f1de(0x140)]();}),_0x316f04['stderr']?.['on'](_0x4083b5['IcVBu'],_0x287bc6=>{const _0x578a9f=_0x16832a;_0x30dc8f+=_0x287bc6[_0x578a9f(0x140)]();}),_0x316f04['on']('error',_0x5417a8=>{clearTimeout(_0xe6bc99),_0xe93565(_0x5417a8);}),_0x316f04['on']('close',(_0x2af034,_0x3ff7b8)=>{clearTimeout(_0xe6bc99),_0x572360({'code':_0x2af034,'signal':_0x3ff7b8,'stdout':_0x1c5de3,'stderr':_0x30dc8f,'timedOut':_0x5f38e2});});});}async function resolveActPath(_0x259a15){const _0x23b215=_0x5ee2d2,_0x37fb10={'oDdqt':function(_0x373cbc,_0x1098eb){return _0x373cbc(_0x1098eb);},'KUQOq':function(_0x263a14,_0x4bf150){return _0x263a14(_0x4bf150);}},_0x4d82b3=_0x37fb10['oDdqt'](isAbsolute,NOVA_ACT_CLI_BINARY)?[NOVA_ACT_CLI_BINARY]:(_0x259a15[_0x23b215(0x173)]??'')['split'](delimiter)[_0x23b215(0x124)](Boolean)['map'](_0x1f6c54=>join(_0x1f6c54,NOVA_ACT_CLI_BINARY));for(const _0x309020 of _0x4d82b3){try{return await _0x37fb10[_0x23b215(0x184)](access,_0x309020),_0x309020;}catch{}}return null;}async function checkNovaActCli(_0x5e1a1f){const _0x398bb9=_0x5ee2d2,_0x5d691b={'rQmLY':function(_0x16dab2,_0x2d7ed1){return _0x16dab2(_0x2d7ed1);},'CCFem':'browser','QnKEw':'--help','AwWKc':function(_0x5370b4,_0x554d96){return _0x5370b4(_0x554d96);}};try{return await _0x5d691b[_0x398bb9(0x138)](runBootstrapCommand,{'command':NOVA_ACT_CLI_BINARY,'args':[_0x5d691b['CCFem'],_0x5d691b['QnKEw']],'env':_0x5e1a1f,'timeoutMs':0x7530}),await _0x5d691b[_0x398bb9(0xe1)](resolveActPath,_0x5e1a1f)??NOVA_ACT_CLI_BINARY;}catch{return null;}}export async function ensureNovaActCliInstalled(_0x26bb2e={}){const _0x41515d=_0x5ee2d2,_0x3322af={'aXEsv':function(_0x26bc7c,_0x1e3b2c){return _0x26bc7c(_0x1e3b2c);},'wuSBT':function(_0x49e55d,_0x19691d){return _0x49e55d(_0x19691d);},'LMFST':_0x41515d(0x1a0),'IgOkw':function(_0x12bd9a,_0x17290d){return _0x12bd9a(_0x17290d);}},_0x2740d3=withNovaActCliPath(_0x26bb2e['env']??process['env']),_0x58f8bd=await checkNovaActCli(_0x2740d3);if(_0x58f8bd)return{'installed':![],'actPath':_0x58f8bd,'uvPackage':NOVA_ACT_CLI_UV_PACKAGE,'stdout':'','stderr':''};try{await _0x3322af[_0x41515d(0x18f)](runBootstrapCommand,{'command':'uv','args':[_0x41515d(0x103)],'env':_0x2740d3,'timeoutMs':0x7530});}catch(_0xc1fe93){throw new Error(_0x41515d(0x160)+NOVA_ACT_CLI_BINARY+'`,\x20and\x20`uv`\x20is\x20not\x20available\x20to\x20install\x20it.\x0aInstall\x20uv,\x20or\x20run:\x20uv\x20tool\x20install\x20\x22'+NOVA_ACT_CLI_UV_PACKAGE+'\x22\x0a'+(_0xc1fe93 instanceof Error?_0xc1fe93[_0x41515d(0xee)]:_0x3322af['wuSBT'](String,_0xc1fe93)));}const _0x1040c6=await runBootstrapCommand({'command':'uv','args':[_0x41515d(0x17b),_0x3322af['LMFST'],NOVA_ACT_CLI_UV_PACKAGE],'env':_0x2740d3,'timeoutMs':_0x26bb2e['timeoutMs']??NOVA_ACT_BOOTSTRAP_TIMEOUT_MS}),_0x545cee=await _0x3322af[_0x41515d(0xf2)](checkNovaActCli,_0x2740d3);if(!_0x545cee)throw new Error('Installed\x20'+NOVA_ACT_CLI_UV_PACKAGE+',\x20but\x20`'+NOVA_ACT_CLI_BINARY+_0x41515d(0xf9)+_0x3322af['aXEsv'](getNovaActCliBinDirs,_0x2740d3)[_0x41515d(0x10b)](',\x20')+'\x20is\x20on\x20PATH.\x0astdout:\x20'+_0x3322af[_0x41515d(0xf2)](truncateOutput,_0x1040c6['stdout'])+_0x41515d(0x19d)+_0x3322af['aXEsv'](truncateOutput,_0x1040c6['stderr']));return{'installed':!![],'actPath':_0x545cee,'uvPackage':NOVA_ACT_CLI_UV_PACKAGE,'stdout':_0x1040c6['stdout'],'stderr':_0x1040c6[_0x41515d(0x150)]};}function _0x2891(_0x43427b,_0x3120ed){_0x43427b=_0x43427b-0xe1;const _0x4756e0=_0x4756();let _0x2891fc=_0x4756e0[_0x43427b];return _0x2891fc;}function parseNovaActDoctorOutput(_0x4dc5a2){try{return JSON['parse'](_0x4dc5a2);}catch{return null;}}function buildNovaActCliPreflightError(_0x38ffbe){const _0x1c8159=_0x5ee2d2,_0x5a5bd8={'IogYP':function(_0xfe983e,_0x4b4993){return _0xfe983e>_0x4b4993;},'jrDBu':'act\x20browser\x20doctor\x20--json\x20timed\x20out','WcAgW':'null','ehtre':function(_0x91d558,_0x5dee2b){return _0x91d558(_0x5dee2b);},'osONJ':'For\x20AWS\x20SSO,\x20set\x20AWS_PROFILE\x20and\x20run:\x20aws\x20sso\x20login\x20--profile\x20<profile>','hwlWr':'Configure\x20Nova\x20Act\x20with\x20NOVA_ACT_API_KEY,\x20run\x20act\x20browser\x20setup\x20--api-key\x20<key>,\x20or\x20configure\x20AWS\x20credentials.'},{checks:_0x350c2a,stdout:_0x23fadb,stderr:_0x1b5b01,env:_0x5eb4d9,code:_0x1cfc7a,signal:_0x3c2f8b,timedOut:_0x8e28db}=_0x38ffbe,_0x4c756f=_0x350c2a['filter'](_0xc82187=>_0xc82187['status']==='fail'),_0x3c275e=_0x5a5bd8['IogYP'](_0x4c756f[_0x1c8159(0x116)],0x0)?_0x4c756f[_0x1c8159(0x1a5)](_0x3a92e5=>{const _0x3ec8e4=_0x1c8159,_0x188dc6=_0x3a92e5[_0x3ec8e4(0x139)]?_0x3ec8e4(0x13e)+_0x3a92e5['fix']:'';return'-\x20'+_0x3a92e5['name']+':\x20'+_0x3a92e5['message']+'.'+_0x188dc6;})['join']('\x0a'):[_0x8e28db?_0x5a5bd8[_0x1c8159(0x108)]:_0x1c8159(0x166)+(_0x1cfc7a??_0x5a5bd8[_0x1c8159(0x187)])+'\x20signal='+(_0x3c2f8b??_0x1c8159(0x135)),_0x23fadb?_0x1c8159(0x149)+_0x5a5bd8[_0x1c8159(0x18e)](truncateOutput,_0x23fadb):'',_0x1b5b01?'stderr:\x20'+_0x5a5bd8['ehtre'](truncateOutput,_0x1b5b01):'']['filter'](Boolean)['join']('\x0a'),_0x104d9d=_0x5eb4d9['AWS_PROFILE']?.['trim'](),_0x505c4b=_0x104d9d?'For\x20AWS\x20SSO,\x20run:\x20aws\x20sso\x20login\x20--profile\x20'+_0x104d9d:_0x5a5bd8['osONJ'];return new Error([_0x1c8159(0x12d),_0x3c275e,_0x5a5bd8[_0x1c8159(0x145)],_0x505c4b][_0x1c8159(0x10b)]('\x0a'));}function _0x4756(){const _0x25fe91=['isDirectory','qkUXJ','act','baseUrl','204860nKsJDz','ZFkqt','Ghevn','Nova\x20Act\x20CLI\x20preflight\x20failed,\x20so\x20Ranger\x20did\x20not\x20start\x20a\x20browser\x20session.','twYwr','IvnHz','commandArgs','16nHZQDu','hvyDS','6464076GhexCZ','9623754jHoenS','null','nVJWy','code','rQmLY','fix','IaQjt','ignore','all','cookies','\x20Fix:\x20','Cookies','toString','goto','wBhmA','yFzGm','/opt/homebrew/bin','hwlWr','utf-8','origin','ejlHD','stdout:\x20','--json','unzeI','PLysR','number','--remote-debugging-port=','size','stderr','logs_directory','slice','YeIbx','error','XYZAO','127.0.0.1','\x20browser\x20\x22$@\x22\x20','once','logDir','Yslzr','72goDaSP','sha256','Local\x20Storage','timed\x20out\x20after\x20','bgygt','nova-act-cli\x20transport\x20requires\x20the\x20Nova\x20Act\x20CLI.\x20Ranger\x20could\x20not\x20find\x20`','webSocketDebuggerUrl','session','headless','1402749XKPSUN','CjHvG','act\x20browser\x20doctor\x20--json\x20exited\x20with\x20code=','data','WnWXq','userDataDir','sort','some','GDuxH','export','Failed\x20to\x20allocate\x20hydration\x20browser\x20port','VwNlb','push','tAdYl','vuFix','PATH','domcontentloaded','qAaeo','Ghcqw','SIGKILL','scSGi','4253613eUrrUy','GYkMi','tool','ViVHH','...','evaluate','off','llUfR','/json/version','now','phTpf','KUQOq','secure','\x20signal=','WcAgW','nJWKH','sLhHO','msLBo','xUNlY','rFExe','kill','ehtre','aXEsv','expires','exitCode','fail','DElNS','/.local/bin','64215bMDovk','wmOIk','name','REfBT','browserProfilePath','23070wTJcPY','\x0astdout:\x20','GzYdU','\x0astderr:\x20','env','storageStatePath','install','tXknH','string','floor','--headed','map','byteLength','JtinI','AwWKc','setItem','object','HyBgR','BldbO','zToaY','WClMs','9900pfbJxh','pipe','gARTU','digest','contexts','UENCK','message','close','executablePath','logsDirectory','IgOkw','jJiWR','eeTbN','gcqqJ','localStorage','RcyLF','zdIkD','\x20browser\x20--help`\x20is\x20still\x20unavailable.\x20Ensure\x20','origins','logs_dir','stdout','IvtBZ','Local\x20State','nova-act[cli]','command','tcDku','set','--version','value','DGBNn','isFile','update','jrDBu','UV_TOOL_BIN_DIR','connectOverCDP','join','aMMnp','Default','parse','--window-size=1280,720','Mbykb','DNPxJ','10QJRswm','--browser-profile-path','httpOnly','jCPOV','length','hex','localeCompare','HQOor','SIGTERM','Timed\x20out\x20waiting\x20for\x20hydration\x20browser\x20CDP','ARodu','EbzPx','Hkmbw','urhwu','hLpGX','wXSAP','--cdp','cdpEndpoint','filter','BMLMC'];_0x4756=function(){return _0x25fe91;};return _0x4756();}export async function preflightNovaActCli(_0xca837d={}){const _0x3edd5b=_0x5ee2d2,_0x56b1cd={'ViVHH':function(_0x152040,_0x47b458){return _0x152040(_0x47b458);},'tXknH':'browser','gARTU':function(_0x3a24d2,_0x269c05){return _0x3a24d2(_0x269c05);}},_0x5bf4d9=withNovaActCliPath(_0xca837d[_0x3edd5b(0x19e)]??process[_0x3edd5b(0x19e)]),_0x443b11=await _0x56b1cd[_0x3edd5b(0x17c)](runCommandAllowFailure,{'command':NOVA_ACT_CLI_BINARY,'args':[_0x56b1cd[_0x3edd5b(0x1a1)],'doctor','--json'],'env':_0x5bf4d9,'timeoutMs':_0xca837d['timeoutMs']??0x7530}),_0x3dba33=_0x56b1cd[_0x3edd5b(0xea)](parseNovaActDoctorOutput,_0x443b11[_0x3edd5b(0xfc)]),_0x4d74dd=_0x3dba33?.[_0x3edd5b(0x167)]?.['checks']??[],_0x1ffba7=_0x4d74dd[_0x3edd5b(0x16b)](_0xac207e=>_0xac207e['status']===_0x3edd5b(0x192));if(_0x443b11[_0x3edd5b(0x137)]!==0x0||_0x443b11['timedOut']||_0x1ffba7)throw _0x56b1cd[_0x3edd5b(0x17c)](buildNovaActCliPreflightError,{'checks':_0x4d74dd,'stdout':_0x443b11['stdout'],'stderr':_0x443b11[_0x3edd5b(0x150)],'env':_0x5bf4d9,'code':_0x443b11['code'],'signal':_0x443b11['signal'],'timedOut':_0x443b11['timedOut']});return{'checks':_0x4d74dd,'logDir':_0x3dba33?.['log_dir']??_0x3dba33?.[_0x3edd5b(0x159)]};}function getNovaActCliSubcommand(_0x1f108e){const _0x473d8c=_0x5ee2d2,_0x4dce2d={'llUfR':'unknown','WClMs':function(_0x2f8aba,_0x2044f0){return _0x2f8aba===_0x2044f0;}},[_0x572334=_0x4dce2d[_0x473d8c(0x180)],_0x144a60]=_0x1f108e;return _0x4dce2d[_0x473d8c(0xe7)](_0x572334,_0x473d8c(0x162))&&_0x144a60?_0x572334+'\x20'+_0x144a60:_0x572334;}function supportsBrowserSessionOptions(_0x1816e4){const _0x54ad0c=_0x5ee2d2,_0x4f3399={'HbnhC':'session','YeIbx':function(_0x40f175,_0x3caf66){return _0x40f175===_0x3caf66;}};return!(_0x1816e4[0x0]===_0x4f3399['HbnhC']&&(_0x4f3399[_0x54ad0c(0x153)](_0x1816e4[0x1],'export')||_0x4f3399['YeIbx'](_0x1816e4[0x1],_0x54ad0c(0xef))));}function buildSharedArgs(_0x2cd94d,_0x521de6){const _0x365f0c=_0x5ee2d2,_0x4bf473={'ejlHD':'--quiet','TOXFY':_0x365f0c(0x1a4),'kSSFP':_0x365f0c(0x113),'Hkmbw':'--executable-path','Gwyul':_0x365f0c(0x122)},_0x42737e=['--session-id',_0x2cd94d['sessionId'],_0x365f0c(0x14a)];if(supportsBrowserSessionOptions(_0x521de6)){_0x42737e[_0x365f0c(0x170)](_0x4bf473[_0x365f0c(0x148)]),_0x42737e['push'](_0x2cd94d[_0x365f0c(0x163)]?'--headless':_0x4bf473['TOXFY']);_0x2cd94d[_0x365f0c(0x199)]&&_0x42737e['push'](_0x4bf473['kSSFP'],_0x2cd94d['browserProfilePath']);_0x2cd94d['executablePath']&&_0x42737e[_0x365f0c(0x170)](_0x4bf473[_0x365f0c(0x11e)],_0x2cd94d[_0x365f0c(0xf0)]);_0x2cd94d[_0x365f0c(0x123)]&&_0x42737e['push'](_0x4bf473['Gwyul'],_0x2cd94d[_0x365f0c(0x123)]);for(const _0x3d9f48 of _0x2cd94d['launchArgs']??[]){_0x42737e[_0x365f0c(0x170)]('--launch-arg='+_0x3d9f48);}}return _0x42737e;}export function buildNovaActCliInvocation(_0x561243,_0x559ace){const _0x486695=_0x5ee2d2,_0x13f20f={'Ghcqw':'browser','twYwr':function(_0x118443,_0x1439f6){return _0x118443(_0x1439f6);}},_0xba59c2=buildSharedArgs(_0x561243,_0x559ace),_0x137a96=[_0x13f20f[_0x486695(0x176)],..._0x559ace,..._0xba59c2];return{'command':NOVA_ACT_CLI_BINARY,'args':_0x137a96,'shellCommand':[NOVA_ACT_CLI_BINARY,'browser',..._0x559ace['map'](quoteShellArg),..._0xba59c2['map'](quoteShellArg)][_0x486695(0x10b)]('\x20'),'subcommand':_0x13f20f[_0x486695(0x12e)](getNovaActCliSubcommand,_0x559ace)};}export function buildNovaActCliCommandPrefix(){return NOVA_ACT_CLI_BINARY+'\x20browser';}export function buildNovaActCliBrowserWrapperPath(_0x278290){return join(dirname(_0x278290['userDataDir']),'nova-act-browser');}export async function writeNovaActCliBrowserWrapper(_0x34d15e){const _0x4317ff=_0x5ee2d2,_0x57da62={'XYZAO':function(_0x10eda7,_0x2f0051){return _0x10eda7(_0x2f0051);},'MbRAA':'execute','mGUYi':function(_0x30ba05,_0x4ef39e,_0x1790cd){return _0x30ba05(_0x4ef39e,_0x1790cd);},'qVBVZ':'session','mdgfP':_0x4317ff(0x16d),'urhwu':function(_0x2fe4bc,_0x147889,_0x2f0e67){return _0x2fe4bc(_0x147889,_0x2f0e67);},'VwNlb':function(_0x4297c9,_0x3be2aa){return _0x4297c9(_0x3be2aa);},'jCPOV':'utf-8'},_0x27b28d=_0x34d15e['browserCommandPath']??_0x57da62[_0x4317ff(0x155)](buildNovaActCliBrowserWrapperPath,_0x34d15e),_0x30beda=buildSharedArgs(_0x34d15e,[_0x57da62['MbRAA']])[_0x4317ff(0x1a5)](quoteShellArg)[_0x4317ff(0x10b)]('\x20'),_0x132b4e=_0x57da62['mGUYi'](buildSharedArgs,_0x34d15e,[_0x57da62['qVBVZ'],_0x57da62['mdgfP']])['map'](quoteShellArg)[_0x4317ff(0x10b)]('\x20');return await _0x57da62[_0x4317ff(0x11f)](mkdir,_0x57da62[_0x4317ff(0x16f)](dirname,_0x27b28d),{'recursive':!![]}),await mkdir(_0x34d15e['userDataDir'],{'recursive':!![]}),await writeFile(_0x27b28d,'#!/usr/bin/env\x20bash\x0aset\x20-euo\x20pipefail\x0aif\x20[[\x20\x22${1:-}\x22\x20==\x20\x22session\x22\x20&&\x20(\x20\x22${2:-}\x22\x20==\x20\x22export\x22\x20||\x20\x22${2:-}\x22\x20==\x20\x22close\x22\x20)\x20]];\x20then\x0a\x20\x20exec\x20'+quoteShellArg(NOVA_ACT_CLI_BINARY)+_0x4317ff(0x157)+_0x132b4e+'\x0afi\x0a\x0aexec\x20'+_0x57da62[_0x4317ff(0x155)](quoteShellArg,NOVA_ACT_CLI_BINARY)+'\x20browser\x20\x22$@\x22\x20'+_0x30beda+'\x0a',_0x57da62[_0x4317ff(0x115)]),await chmod(_0x27b28d,0x1ed),_0x27b28d;}export function buildNovaActCliSharedOptionsSuffix(_0x4f9f4c,_0x3db5eb=['execute']){const _0x579cb6=_0x5ee2d2;return buildSharedArgs(_0x4f9f4c,_0x3db5eb)[_0x579cb6(0x1a5)](quoteShellArg)[_0x579cb6(0x10b)]('\x20');}export async function runNovaActCliCommand(_0x44e63c){const _0x3f187d=_0x5ee2d2,_0x13d831={'IvtBZ':function(_0x28e401,_0x438c99){return _0x28e401===_0x438c99;},'ZCuHv':function(_0x9a1bc,_0x334b1e){return _0x9a1bc(_0x334b1e);},'QDTEk':'null','HyBgR':function(_0x1c4950,_0x251c7f){return _0x1c4950(_0x251c7f);},'EbzPx':function(_0x25c3b0,_0x1d5430){return _0x25c3b0(_0x1d5430);},'JqoNn':'SIGTERM','PWggi':function(_0x1db834,_0x2315d4,_0x3bfc46,_0x18073a){return _0x1db834(_0x2315d4,_0x3bfc46,_0x18073a);},'zdIkD':'ignore','Ghevn':function(_0xf8ed4f,_0x536e48,_0x4163f3){return _0xf8ed4f(_0x536e48,_0x4163f3);},'ZFkqt':_0x3f187d(0x167),'xxjMi':_0x3f187d(0x154)};await _0x13d831['Ghevn'](mkdir,_0x44e63c['userDataDir'],{'recursive':!![]});const _0x1b343c=buildNovaActCliInvocation(_0x44e63c,_0x44e63c[_0x3f187d(0x130)]);return new Promise((_0x5570e9,_0x44c01e)=>{const _0x34eb05=_0x3f187d,_0x536736={'rZImH':_0x13d831['JqoNn'],'REfBT':function(_0x29e21f,_0x36366c,_0x369668){return _0x29e21f(_0x36366c,_0x369668);}},_0x13ce6e=_0x13d831['PWggi'](spawn,_0x1b343c[_0x34eb05(0x100)],_0x1b343c['args'],{'cwd':_0x44e63c['cwd'],'env':_0x44e63c['env'],'stdio':[_0x13d831[_0x34eb05(0xf8)],'pipe',_0x34eb05(0xe9)]});let _0x23c023='',_0xaf9518='',_0x29dbbd=![];const _0x2a62dc=_0x44e63c['timeoutMs']&&_0x44e63c['timeoutMs']>0x0?_0x13d831[_0x34eb05(0x12c)](setTimeout,()=>{const _0x162efe=_0x34eb05;_0x29dbbd=!![],_0x13ce6e['kill'](_0x536736['rZImH']),_0x536736[_0x162efe(0x198)](setTimeout,()=>{const _0x7d00e2=_0x162efe;try{_0x13ce6e[_0x7d00e2(0x18d)](_0x7d00e2(0x177));}catch{}},0x3e8);},_0x44e63c['timeoutMs']):null;_0x13ce6e['stdout']?.['on'](_0x13d831[_0x34eb05(0x12b)],_0x17780e=>{const _0x213c09=_0x34eb05;_0x23c023+=_0x17780e[_0x213c09(0x140)]();}),_0x13ce6e['stderr']?.['on'](_0x13d831[_0x34eb05(0x12b)],_0x442006=>{const _0x3ad443=_0x34eb05;_0xaf9518+=_0x442006[_0x3ad443(0x140)]();}),_0x13ce6e['on'](_0x13d831['xxjMi'],_0x34877c=>{if(_0x2a62dc)clearTimeout(_0x2a62dc);_0x44c01e(_0x34877c);}),_0x13ce6e['on'](_0x34eb05(0xef),(_0xcba31,_0x144273)=>{const _0x3f00c1=_0x34eb05;if(_0x2a62dc)clearTimeout(_0x2a62dc);if(_0x13d831[_0x3f00c1(0xfd)](_0xcba31,0x0)){_0x13d831['ZCuHv'](_0x5570e9,{'stdout':_0x23c023,'stderr':_0xaf9518,'invocation':_0x1b343c});return;}const _0x481124=_0x29dbbd?_0x3f00c1(0x15e)+_0x44e63c['timeoutMs']+'ms':'exited\x20with\x20code='+(_0xcba31??_0x13d831['QDTEk'])+_0x3f00c1(0x186)+(_0x144273??_0x3f00c1(0x135));_0x13d831[_0x3f00c1(0xe4)](_0x44c01e,new Error('nova-act-cli\x20'+_0x1b343c['subcommand']+'\x20'+_0x481124+_0x3f00c1(0x19b)+_0x13d831[_0x3f00c1(0x11d)](truncateOutput,_0x23c023)+_0x3f00c1(0x19d)+truncateOutput(_0xaf9518)));});});}export function parseNovaActCliCommand(_0x24a30c){const _0x55eeb0=_0x24a30c['match'](/(?:^|\s)(?:(?:"[^"]*\/act"|'[^']*\/act'|\S*\/act|act)\s+browser|(?:"[^"]*\/nova-act-browser"|'[^']*\/nova-act-browser'|\S*\/nova-act-browser|nova-act-browser))\s+(session\s+[a-z-]+|[a-z][a-z-]*)\b/);return _0x55eeb0?.[0x1]??null;}export function extractNovaActLogDir(_0x2fd13a){const _0x46303e=_0x5ee2d2;try{const _0x1e352e=JSON[_0x46303e(0x10e)](_0x2fd13a),_0x4ecec5=[_0x1e352e[_0x46303e(0x151)],_0x1e352e[_0x46303e(0xf1)],_0x1e352e[_0x46303e(0xfb)],_0x1e352e['logDir'],_0x1e352e['log_dir']],_0x30b5d9=_0x4ecec5['find'](_0x62917c=>typeof _0x62917c===_0x46303e(0x1a2)&&_0x62917c['trim']()['length']>0x0);if(_0x30b5d9)return _0x30b5d9;}catch{}const _0x46f6e0=_0x2fd13a['match'](/(?:logs_directory|logsDirectory|log_dir|logDir|logs dir|logs directory)[:=]\s*["']?([^\s"',}]+)/i);return _0x46f6e0?.[0x1]??null;}export async function loadNovaActSessionExport(_0x2c13da){const _0x54a01d=_0x5ee2d2,_0x4a2958={'uMnYS':'utf-8'};try{return JSON[_0x54a01d(0x10e)](await readFile(_0x2c13da,_0x4a2958['uMnYS']));}catch{return null;}}export async function hydrateNovaProfileFromStorageState(_0x55d76c){const _0x44cd38=_0x5ee2d2,_0x504747={'ZnLlB':function(_0x316727,_0x3ebd75){return _0x316727+_0x3ebd75;},'wXSAP':function(_0x54fe82,_0xa63ed3){return _0x54fe82/_0xa63ed3;},'GDuxH':_0x44cd38(0x146),'ARodu':function(_0x5b8105,_0x36e817){return _0x5b8105(_0x36e817);},'dKOSy':_0x44cd38(0x10d),'UENCK':function(_0x5b3041,_0x3c2693){return _0x5b3041(_0x3c2693);},'JtinI':'Nova\x20profile\x20hydration\x20browser\x20did\x20not\x20expose\x20a\x20context','eeTbN':_0x44cd38(0x174),'wBhmA':function(_0x29ba38,_0x3c38e7,_0x45f3ab){return _0x29ba38(_0x3c38e7,_0x45f3ab);}},_0x4ecd5c=JSON['parse'](await readFile(_0x55d76c[_0x44cd38(0x19f)],_0x504747[_0x44cd38(0x16c)])),_0x3c2913=await _0x504747['ARodu'](inspectNovaStorageStateFile,_0x55d76c['storageStatePath']);await mkdir(_0x55d76c['userDataDir'],{'recursive':!![]});const _0x3b75c3=join(_0x55d76c['userDataDir'],_0x504747['dKOSy']),_0x320154=await _0x504747[_0x44cd38(0xed)](inspectNovaProfileFiles,{'userDataDir':_0x55d76c['userDataDir'],'browserProfilePath':_0x3b75c3}),{browser:_0x607454,process:_0x5120e1}=await _0x504747[_0x44cd38(0x11c)](launchNovaHydrationBrowser,{'userDataDir':_0x55d76c[_0x44cd38(0x169)],'browserProfilePath':_0x3b75c3,'executablePath':_0x55d76c[_0x44cd38(0xf0)],'headless':_0x55d76c['headless'],'launchArgs':_0x55d76c['launchArgs']}),_0x31843c=_0x607454[_0x44cd38(0xec)]()[0x0];if(!_0x31843c){await closeNovaHydrationBrowser(_0x607454,_0x5120e1);throw new Error(_0x504747[_0x44cd38(0x1a7)]);}let _0x21cc25=0x0,_0x3bc973=0x0;try{const _0x359d97=_0x4ecd5c[_0x44cd38(0x13d)]??[];if(_0x359d97[_0x44cd38(0x116)]>0x0){const _0x3a87b6=_0x359d97[_0x44cd38(0x1a5)](_0x26b4d0=>{const _0x551587=_0x44cd38;if(_0x26b4d0[_0x551587(0x190)]!==-0x1)return _0x26b4d0;return _0x3bc973+=0x1,{..._0x26b4d0,'expires':_0x504747['ZnLlB'](Math[_0x551587(0x1a3)](_0x504747[_0x551587(0x121)](Date[_0x551587(0x182)](),0x3e8)),NOVA_PROMOTED_SESSION_COOKIE_TTL_SECONDS)};});await _0x31843c['addCookies'](_0x3a87b6);}for(const _0x448b7a of _0x4ecd5c[_0x44cd38(0xfa)]??[]){if(!_0x448b7a['localStorage']?.[_0x44cd38(0x116)])continue;const _0x485339=await _0x31843c['newPage']();await _0x485339['goto'](_0x448b7a['origin'],{'waitUntil':_0x504747[_0x44cd38(0xf4)],'timeout':0x7530}),await _0x485339[_0x44cd38(0x17e)](_0x2f4cd3=>{const _0x5b0d27=_0x44cd38;for(const _0x4e8f6c of _0x2f4cd3){window['localStorage'][_0x5b0d27(0xe2)](_0x4e8f6c['name'],_0x4e8f6c[_0x5b0d27(0x104)]);}},_0x448b7a['localStorage']),_0x21cc25+=_0x448b7a['localStorage'][_0x44cd38(0x116)],await _0x485339['close']();}if(_0x55d76c[_0x44cd38(0x129)]){const _0x3848e1=await _0x31843c['newPage']();await _0x3848e1[_0x44cd38(0x141)](_0x55d76c['baseUrl'],{'waitUntil':'domcontentloaded','timeout':0x7530}),await _0x3848e1['close']();}await _0x504747['wBhmA'](ensureChromeProfileShape,_0x55d76c[_0x44cd38(0x169)],_0x3b75c3);}finally{await _0x504747[_0x44cd38(0x142)](closeNovaHydrationBrowser,_0x607454,_0x5120e1);}const _0x7ab104=await inspectNovaProfileFiles({'userDataDir':_0x55d76c['userDataDir'],'browserProfilePath':_0x3b75c3});return{'browserProfilePath':_0x3b75c3,'cookieCount':_0x4ecd5c['cookies']?.[_0x44cd38(0x116)]??0x0,'promotedSessionCookieCount':_0x3bc973,'originCount':_0x4ecd5c[_0x44cd38(0xfa)]?.[_0x44cd38(0x116)]??0x0,'localStorageEntryCount':_0x21cc25,'storageStateDiagnostics':_0x3c2913,'profileBefore':_0x320154,'profileAfter':_0x7ab104};}async function launchNovaHydrationBrowser(_0x5418fa){const _0x18808d=_0x5ee2d2,_0x15eb17={'qCDHg':function(_0x5d672f,_0xac38c4,_0x4d1605){return _0x5d672f(_0xac38c4,_0x4d1605);},'lrDND':function(_0x12c917){return _0x12c917();},'qAaeo':'--profile-directory=Default','nVJWy':_0x18808d(0x10f),'xUNlY':'--headless=new','nZbNJ':function(_0x334fa4,_0x1ecc09,_0x1a92cb,_0x245fd2){return _0x334fa4(_0x1ecc09,_0x1a92cb,_0x245fd2);},'ehgqP':_0x18808d(0x13b),'WnWXq':_0x18808d(0xe9),'uwarZ':function(_0x52c32b,_0x3d874c,_0x1c4ae9){return _0x52c32b(_0x3d874c,_0x1c4ae9);}};await _0x15eb17['qCDHg'](ensureChromeProfileShape,_0x5418fa['userDataDir'],_0x5418fa[_0x18808d(0x199)]);const _0x483314=_0x5418fa[_0x18808d(0xf0)]??chromium['executablePath'](),_0x33d5f7=await _0x15eb17['lrDND'](getAvailablePort),_0xdfe254=[_0x18808d(0x14e)+_0x33d5f7,'--user-data-dir='+_0x5418fa['userDataDir'],_0x15eb17[_0x18808d(0x175)],_0x15eb17[_0x18808d(0x136)],'--no-first-run','--remote-allow-origins=http://localhost'];_0x5418fa[_0x18808d(0x163)]&&_0xdfe254[_0x18808d(0x170)](_0x15eb17[_0x18808d(0x18b)]);_0xdfe254['push'](..._0x5418fa['launchArgs']??[]);const _0x259f26=_0x15eb17['nZbNJ'](spawn,_0x483314,_0xdfe254,{'stdio':[_0x15eb17['ehgqP'],_0x15eb17['WnWXq'],_0x15eb17[_0x18808d(0x168)]]});try{const _0x2535a0=await _0x15eb17['uwarZ'](waitForCdpEndpoint,_0x259f26,_0x33d5f7),_0x481421=await chromium[_0x18808d(0x10a)](_0x2535a0);return{'browser':_0x481421,'process':_0x259f26};}catch(_0x584ad8){await terminateNovaHydrationBrowser(_0x259f26);throw _0x584ad8;}}async function closeNovaHydrationBrowser(_0x13b11b,_0x5d9190){try{await _0x13b11b['close']();}catch{await terminateNovaHydrationBrowser(_0x5d9190);return;}const _0xad6348=await waitForProcessExit(_0x5d9190,0x1388);!_0xad6348&&await terminateNovaHydrationBrowser(_0x5d9190);}async function terminateNovaHydrationBrowser(_0x5e3f2d){const _0x5cd0b4=_0x5ee2d2,_0x4f81b6={'HQOor':function(_0x23a99d,_0x3945bd,_0x417376){return _0x23a99d(_0x3945bd,_0x417376);},'ptowq':function(_0x3fa36f,_0x413f34){return _0x3fa36f===_0x413f34;}};if(_0x5e3f2d[_0x5cd0b4(0x191)]!==null)return;try{_0x5e3f2d[_0x5cd0b4(0x18d)]('SIGTERM');}catch{}await _0x4f81b6[_0x5cd0b4(0x119)](waitForProcessExit,_0x5e3f2d,0x7d0);if(_0x4f81b6['ptowq'](_0x5e3f2d['exitCode'],null)){try{_0x5e3f2d[_0x5cd0b4(0x18d)](_0x5cd0b4(0x177));}catch{}await waitForProcessExit(_0x5e3f2d,0x7d0);}}async function waitForCdpEndpoint(_0xb725d3,_0x3b1067){const _0x3c7765=_0x5ee2d2,_0x488314={'phTpf':function(_0x102bec,_0x400b64){return _0x102bec-_0x400b64;},'BldbO':function(_0x200753,_0x49ef8f){return _0x200753(_0x49ef8f);},'RcyLF':function(_0x5054fb,_0x2a01f1){return _0x5054fb(_0x2a01f1);}},_0x2fab13=Date['now']();let _0x36730f;while(_0x488314[_0x3c7765(0x183)](Date['now'](),_0x2fab13)<NOVA_PROFILE_HYDRATION_CDP_TIMEOUT_MS){if(_0xb725d3[_0x3c7765(0x191)]!==null)throw new Error('Hydration\x20browser\x20exited\x20before\x20CDP\x20became\x20available\x20with\x20code\x20'+_0xb725d3['exitCode']);try{const _0x4d6afb=await _0x488314[_0x3c7765(0xe5)](fetch,'http://127.0.0.1:'+_0x3b1067+_0x3c7765(0x181));if(_0x4d6afb['ok']){const _0x1cd663=await _0x4d6afb['json']();if(typeof _0x1cd663[_0x3c7765(0x161)]===_0x3c7765(0x1a2))return _0x1cd663[_0x3c7765(0x161)];}}catch(_0x1b44b3){_0x36730f=_0x1b44b3;}await _0x488314[_0x3c7765(0xf7)](delay,0x64);}const _0x4cfabf=_0x36730f instanceof Error?':\x20'+_0x36730f['message']:'';throw new Error(_0x3c7765(0x11b)+_0x4cfabf);}async function getAvailablePort(){const _0x21cbdb=_0x5ee2d2,_0x396103={'BTXdm':_0x21cbdb(0x16e),'YJvnu':function(_0x40ee43){return _0x40ee43();},'tTqPS':_0x21cbdb(0x154),'YDUBK':_0x21cbdb(0x156)};return new Promise((_0x1e17eb,_0x5bfda5)=>{const _0x198e4d=_0x21cbdb,_0x12df0a={'sWkXG':_0x396103['BTXdm']},_0x5ac2d0=_0x396103['YJvnu'](createServer);_0x5ac2d0[_0x198e4d(0x158)](_0x396103['tTqPS'],_0x5bfda5),_0x5ac2d0['listen'](0x0,_0x396103['YDUBK'],()=>{const _0x44fe5c=_0x198e4d,_0x10d2c6={'scSGi':_0x44fe5c(0xe3),'RJiFN':function(_0x4641ad,_0x38953c){return _0x4641ad(_0x38953c);},'FelCz':_0x12df0a['sWkXG']},_0x584033=_0x5ac2d0['address']();_0x5ac2d0[_0x44fe5c(0xef)](_0x5bed57=>{const _0x5cb8a3=_0x44fe5c;if(_0x5bed57){_0x5bfda5(_0x5bed57);return;}if(typeof _0x584033===_0x10d2c6[_0x5cb8a3(0x178)]&&_0x584033?.['port']){_0x1e17eb(_0x584033['port']);return;}_0x10d2c6['RJiFN'](_0x5bfda5,new Error(_0x10d2c6['FelCz']));});});});}async function waitForProcessExit(_0x243b06,_0x33a06a){const _0x2ff7ea={'msLBo':'exit','BRxlX':function(_0x1ff44b){return _0x1ff44b();},'LOcuw':function(_0x172dc7,_0x2289bb,_0x462dae){return _0x172dc7(_0x2289bb,_0x462dae);}};if(_0x243b06['exitCode']!==null)return!![];return new Promise(_0x58ea5d=>{const _0x4170c1={'wgLCX':function(_0x1ba545){return _0x2ff7ea['BRxlX'](_0x1ba545);}},_0x411ca1=_0x2ff7ea['LOcuw'](setTimeout,()=>{_0x343b84(),_0x58ea5d(![]);},_0x33a06a),_0x1e6153=()=>{_0x4170c1['wgLCX'](_0x343b84),_0x58ea5d(!![]);},_0x343b84=()=>{const _0x3e13c4=_0x2891;clearTimeout(_0x411ca1),_0x243b06[_0x3e13c4(0x17f)](_0x2ff7ea[_0x3e13c4(0x18a)],_0x1e6153);};_0x243b06['once']('exit',_0x1e6153);});}async function delay(_0x2e5b75){await new Promise(_0x3084db=>setTimeout(_0x3084db,_0x2e5b75));}async function ensureChromeProfileShape(_0x318aab,_0x1c9ca4){const _0x29dc16=_0x5ee2d2,_0x44feaa={'CjHvG':function(_0x250684,_0x1e4dc3){return _0x250684(_0x1e4dc3);},'sLhHO':function(_0x1d764a,_0x2d56ac,_0x3eafb8){return _0x1d764a(_0x2d56ac,_0x3eafb8);},'wZbDA':'Local\x20State','wmOIk':function(_0x4ec5a5,_0x3fe890){return _0x4ec5a5(_0x3fe890);},'bgygt':'Preferences'};await mkdir(_0x1c9ca4,{'recursive':!![]}),await _0x44feaa[_0x29dc16(0x165)](ensureJsonFile,_0x44feaa['sLhHO'](join,_0x318aab,_0x44feaa['wZbDA'])),await _0x44feaa[_0x29dc16(0x196)](ensureJsonFile,_0x44feaa[_0x29dc16(0x189)](join,_0x1c9ca4,_0x44feaa[_0x29dc16(0x15f)]));}async function ensureJsonFile(_0x4c9aa4){const _0x33a1d0={'CJqle':'utf-8'};try{await access(_0x4c9aa4);}catch{await writeFile(_0x4c9aa4,'{}',_0x33a1d0['CJqle']);}}export function previewNovaActCliCommand(_0x34450d){const _0x28aaf5={'DvOxl':function(_0x529b3c,_0x16c2e9){return _0x529b3c(_0x16c2e9);}};return _0x28aaf5['DvOxl'](truncatePreview,_0x34450d);}
@@ -1 +1 @@
1
- (function(_0x4a23dd,_0x455a63){var _0x40854e=_0x2dcb,_0x57358e=_0x4a23dd();while(!![]){try{var _0x5cb65e=-parseInt(_0x40854e(0x15e))/0x1*(-parseInt(_0x40854e(0x155))/0x2)+parseInt(_0x40854e(0x14e))/0x3*(parseInt(_0x40854e(0x159))/0x4)+parseInt(_0x40854e(0x157))/0x5*(-parseInt(_0x40854e(0x152))/0x6)+parseInt(_0x40854e(0x15a))/0x7*(-parseInt(_0x40854e(0x158))/0x8)+parseInt(_0x40854e(0x151))/0x9+parseInt(_0x40854e(0x150))/0xa+-parseInt(_0x40854e(0x156))/0xb*(parseInt(_0x40854e(0x15b))/0xc);if(_0x5cb65e===_0x455a63)break;else _0x57358e['push'](_0x57358e['shift']());}catch(_0x333c95){_0x57358e['push'](_0x57358e['shift']());}}}(_0x3cbe,0x594d0));function _0x2dcb(_0x432549,_0x109a9b){_0x432549=_0x432549-0x14d;var _0x3cbec6=_0x3cbe();var _0x2dcb08=_0x3cbec6[_0x432549];return _0x2dcb08;}import{homedir}from'os';import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x55808b){var _0x203022=_0x2dcb,_0x53cfab={'Nfywl':'user','zywjj':function(_0x4c460b){return _0x4c460b();},'vmKBw':_0x203022(0x15c)};if(process[_0x203022(0x14d)]['OPENCODE_CONFIG_DIR'])return process['env'][_0x203022(0x15d)];if(_0x55808b===_0x53cfab['Nfywl']){if(process['env'][_0x203022(0x160)])return join(process[_0x203022(0x14d)][_0x203022(0x160)],'opencode');return join(_0x53cfab['zywjj'](homedir),_0x203022(0x15f),_0x203022(0x154));}return join(getProjectRoot(),_0x53cfab[_0x203022(0x14f)]);}export function getOpencodeSkillsDir(_0x3660f3){var _0x47c60b=_0x2dcb,_0x3aecf0={'RBBTQ':function(_0x40ce50,_0x577a9c){return _0x40ce50(_0x577a9c);},'WCcLx':_0x47c60b(0x153)};return join(_0x3aecf0['RBBTQ'](getOpencodeConfigDir,_0x3660f3),_0x3aecf0['WCcLx']);}function _0x3cbe(){var _0x55edc0=['5358990uPVfRx','218538rdcazq','3354eODieX','skills','opencode','16oPtKoe','36509TYOvMN','2435XBPaYN','209320FMRTls','1656tujSpb','77uMmUNr','2316bZjEts','.opencode','OPENCODE_CONFIG_DIR','70973MoCMlM','.config','XDG_CONFIG_HOME','env','3177GbItxI','vmKBw'];_0x3cbe=function(){return _0x55edc0;};return _0x3cbe();}
1
+ (function(_0x14a3b3,_0x249377){var _0x25660f=_0x219d,_0x5c2046=_0x14a3b3();while(!![]){try{var _0x100319=parseInt(_0x25660f(0x1ca))/0x1*(-parseInt(_0x25660f(0x1bb))/0x2)+-parseInt(_0x25660f(0x1cd))/0x3*(parseInt(_0x25660f(0x1c3))/0x4)+parseInt(_0x25660f(0x1bc))/0x5*(-parseInt(_0x25660f(0x1bf))/0x6)+-parseInt(_0x25660f(0x1c4))/0x7+-parseInt(_0x25660f(0x1c0))/0x8*(parseInt(_0x25660f(0x1bd))/0x9)+-parseInt(_0x25660f(0x1ba))/0xa*(parseInt(_0x25660f(0x1b9))/0xb)+parseInt(_0x25660f(0x1cb))/0xc;if(_0x100319===_0x249377)break;else _0x5c2046['push'](_0x5c2046['shift']());}catch(_0x748074){_0x5c2046['push'](_0x5c2046['shift']());}}}(_0x5152,0x23751));function _0x5152(){var _0x5259f9=['XDG_CONFIG_HOME','user','woOZM','env','KMJcY','3xwexwe','9225132PhoVQv','.config','2025mlrzXx','891kUelhJ','32320TDVFyY','15374ypOLmI','545CwDHVf','629208EzVcZm','kSzij','60uCNBIJ','8psNLEB','skills','.opencode','544XPfhGv','1231111kwRmyw'];_0x5152=function(){return _0x5259f9;};return _0x5152();}import{homedir}from'os';import{join}from'path';function _0x219d(_0x10a5cc,_0x53d2a1){_0x10a5cc=_0x10a5cc-0x1b9;var _0x51524b=_0x5152();var _0x219db3=_0x51524b[_0x10a5cc];return _0x219db3;}import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x5a1b6c){var _0x1502dc=_0x219d,_0x298793={'SiaiL':function(_0x558243,_0x56f3a6){return _0x558243===_0x56f3a6;},'woOZM':function(_0x504f97,_0x56e9fd,_0x263a45){return _0x504f97(_0x56e9fd,_0x263a45);},'KMJcY':'opencode','hctgK':function(_0x3ed173){return _0x3ed173();}};if(process[_0x1502dc(0x1c8)]['OPENCODE_CONFIG_DIR'])return process['env']['OPENCODE_CONFIG_DIR'];if(_0x298793['SiaiL'](_0x5a1b6c,_0x1502dc(0x1c6))){if(process[_0x1502dc(0x1c8)][_0x1502dc(0x1c5)])return _0x298793['woOZM'](join,process['env'][_0x1502dc(0x1c5)],'opencode');return join(homedir(),_0x1502dc(0x1cc),_0x298793[_0x1502dc(0x1c9)]);}return _0x298793[_0x1502dc(0x1c7)](join,_0x298793['hctgK'](getProjectRoot),_0x1502dc(0x1c2));}export function getOpencodeSkillsDir(_0x390ab2){var _0xd0cfb0=_0x219d,_0xca7ba={'kSzij':function(_0x1e0556,_0x324be9,_0x966825){return _0x1e0556(_0x324be9,_0x966825);}};return _0xca7ba[_0xd0cfb0(0x1be)](join,getOpencodeConfigDir(_0x390ab2),_0xd0cfb0(0x1c1));}
@@ -1 +1 @@
1
- (function(_0x5b8190,_0x364a24){const _0x29d1c8=_0x3acf,_0x8ebaac=_0x5b8190();while(!![]){try{const _0x445bac=-parseInt(_0x29d1c8(0x1b2))/0x1+-parseInt(_0x29d1c8(0x1b4))/0x2+parseInt(_0x29d1c8(0x1c0))/0x3*(-parseInt(_0x29d1c8(0x1aa))/0x4)+-parseInt(_0x29d1c8(0x1bb))/0x5*(parseInt(_0x29d1c8(0x1ba))/0x6)+-parseInt(_0x29d1c8(0x1b1))/0x7*(-parseInt(_0x29d1c8(0x1b8))/0x8)+-parseInt(_0x29d1c8(0x1b7))/0x9*(-parseInt(_0x29d1c8(0x1ad))/0xa)+-parseInt(_0x29d1c8(0x1bf))/0xb;if(_0x445bac===_0x364a24)break;else _0x8ebaac['push'](_0x8ebaac['shift']());}catch(_0x3bd0a1){_0x8ebaac['push'](_0x8ebaac['shift']());}}}(_0x4a21,0xf2660));import{getApiBaseUrl}from'./environment.js';import{getToken}from'./keychain.js';function _0x4a21(){const _0x5cc82e=['set','wiDCt','1442727iFrfNF','2532MzvfIh','map','pFzud','GET','\x20must\x20be\x20a\x20string\x20or\x20number','No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','1728OkZziu','json','variableName','290jRxNlf','searchParams','text','gHsul','14WSDHzA','104498jYwVgD','Failed\x20to\x20fetch\x20organization\x20environment\x20variable\x20','1471794sXiXEW','status','number','569133XdTlOA','3425816KnQVNo','JTOqW','2167818fLdNuN','5MjNUWO','KGIct'];_0x4a21=function(){return _0x5cc82e;};return _0x4a21();}async function getOrganizationEnvironmentVariable(_0x3b6cb4){const _0x5bb796=_0x3acf,_0x1fc83b={'Nnrrs':_0x5bb796(0x1a9),'NUunI':_0x5bb796(0x1ac),'htXRZ':function(_0x11f1e2,_0x261149,_0x9cf48d){return _0x11f1e2(_0x261149,_0x9cf48d);},'pFzud':_0x5bb796(0x1c3),'JTOqW':function(_0x172827,_0x580a27){return _0x172827===_0x580a27;},'VPGzh':'string','gHsul':_0x5bb796(0x1b6),'RIVhb':function(_0x2aa565,_0x471704){return _0x2aa565(_0x471704);}},_0x273796=await getToken();if(!_0x273796)throw new Error(_0x1fc83b['Nnrrs']);const _0x256888=new URL(getApiBaseUrl()+'/organization/environment-variables');_0x256888[_0x5bb796(0x1ae)][_0x5bb796(0x1bd)](_0x1fc83b['NUunI'],_0x3b6cb4);const _0x1d0031=await _0x1fc83b['htXRZ'](fetch,_0x256888,{'method':_0x1fc83b[_0x5bb796(0x1c2)],'headers':{'Authorization':'Bearer\x20'+_0x273796}});if(_0x1fc83b[_0x5bb796(0x1b9)](_0x1d0031['status'],0x194))return null;if(!_0x1d0031['ok']){const _0x15fb07=await _0x1d0031[_0x5bb796(0x1af)]();throw new Error(_0x5bb796(0x1b3)+_0x3b6cb4+':\x20'+_0x1d0031[_0x5bb796(0x1b5)]+'\x20'+_0x15fb07);}const _0x2326fb=await _0x1d0031[_0x5bb796(0x1ab)](),_0x4e0bbe=_0x2326fb[_0x3b6cb4];if(_0x4e0bbe===undefined||_0x4e0bbe===null)return null;if(typeof _0x4e0bbe===_0x1fc83b['VPGzh']||_0x1fc83b['JTOqW'](typeof _0x4e0bbe,_0x1fc83b[_0x5bb796(0x1b0)]))return _0x1fc83b['RIVhb'](String,_0x4e0bbe);throw new Error('Organization\x20environment\x20variable\x20'+_0x3b6cb4+_0x5bb796(0x1c4));}function _0x3acf(_0x52094d,_0x420fd3){_0x52094d=_0x52094d-0x1a9;const _0x4a2189=_0x4a21();let _0x3acfed=_0x4a2189[_0x52094d];return _0x3acfed;}export async function getOrganizationEnvironmentVariables(_0xe4872d){const _0x4ab93d=_0x3acf,_0x26be98={'KGIct':function(_0x42f514,_0x2c70d1){return _0x42f514(_0x2c70d1);},'wiDCt':function(_0x5a1b23,_0x189e6a){return _0x5a1b23===_0x189e6a;}},_0x56200b=Array['from'](new Set(_0xe4872d)),_0x503b18=await Promise['all'](_0x56200b[_0x4ab93d(0x1c1)](async _0x5e0acd=>{const _0xc03e06=_0x4ab93d,_0x2ba5dd=await _0x26be98[_0xc03e06(0x1bc)](getOrganizationEnvironmentVariable,_0x5e0acd);return _0x26be98[_0xc03e06(0x1be)](_0x2ba5dd,null)?null:[_0x5e0acd,_0x2ba5dd];}));return Object['fromEntries'](_0x503b18['filter'](_0x44bd05=>Boolean(_0x44bd05)));}
1
+ function _0x37dd(){const _0x2c0b04=['27iAsJgH','CyKeN','from','string','Failed\x20to\x20fetch\x20organization\x20environment\x20variable\x20','svrSv','map','1236080UwaXtA','cQrOv','506977gqVdek','searchParams','2tKUFni','variableName','status','467208UxopxX','341784akSGCe','number','1732TAbaOF','/organization/environment-variables','8075qAIUwF','GET','Esngt','4079196adQROf','209FcXpBt','498840uXRcoW','text','Organization\x20environment\x20variable\x20','all'];_0x37dd=function(){return _0x2c0b04;};return _0x37dd();}function _0x4cdd(_0x2973fe,_0x55dfde){_0x2973fe=_0x2973fe-0x1a0;const _0x37dde9=_0x37dd();let _0x4cdd02=_0x37dde9[_0x2973fe];return _0x4cdd02;}(function(_0x2b6d07,_0x2d0919){const _0x1761e6=_0x4cdd,_0x3ed752=_0x2b6d07();while(!![]){try{const _0xa8ee8a=-parseInt(_0x1761e6(0x1aa))/0x1*(parseInt(_0x1761e6(0x1ac))/0x2)+parseInt(_0x1761e6(0x1b0))/0x3+parseInt(_0x1761e6(0x1b2))/0x4*(-parseInt(_0x1761e6(0x1b4))/0x5)+-parseInt(_0x1761e6(0x1b7))/0x6+parseInt(_0x1761e6(0x1af))/0x7+parseInt(_0x1761e6(0x1b9))/0x8*(-parseInt(_0x1761e6(0x1a1))/0x9)+parseInt(_0x1761e6(0x1a8))/0xa*(parseInt(_0x1761e6(0x1b8))/0xb);if(_0xa8ee8a===_0x2d0919)break;else _0x3ed752['push'](_0x3ed752['shift']());}catch(_0x105226){_0x3ed752['push'](_0x3ed752['shift']());}}}(_0x37dd,0x6f555));import{getApiBaseUrl}from'./environment.js';import{getToken}from'./keychain.js';async function getOrganizationEnvironmentVariable(_0x235dec){const _0x6d50b9=_0x4cdd,_0x43d999={'cQrOv':function(_0x58ebd3){return _0x58ebd3();},'Esngt':function(_0x1ce20e,_0x426672){return _0x1ce20e===_0x426672;},'svrSv':_0x6d50b9(0x1b1),'cQmYZ':function(_0x450df0,_0x300b8e){return _0x450df0(_0x300b8e);}},_0x2c8709=await _0x43d999[_0x6d50b9(0x1a9)](getToken);if(!_0x2c8709)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x17d71a=new URL(getApiBaseUrl()+_0x6d50b9(0x1b3));_0x17d71a[_0x6d50b9(0x1ab)]['set'](_0x6d50b9(0x1ad),_0x235dec);const _0x11ac7e=await fetch(_0x17d71a,{'method':_0x6d50b9(0x1b5),'headers':{'Authorization':'Bearer\x20'+_0x2c8709}});if(_0x43d999[_0x6d50b9(0x1b6)](_0x11ac7e['status'],0x194))return null;if(!_0x11ac7e['ok']){const _0x56bd56=await _0x11ac7e[_0x6d50b9(0x1ba)]();throw new Error(_0x6d50b9(0x1a5)+_0x235dec+':\x20'+_0x11ac7e[_0x6d50b9(0x1ae)]+'\x20'+_0x56bd56);}const _0x4886f=await _0x11ac7e['json'](),_0x455e85=_0x4886f[_0x235dec];if(_0x43d999['Esngt'](_0x455e85,undefined)||_0x455e85===null)return null;if(typeof _0x455e85===_0x6d50b9(0x1a4)||typeof _0x455e85===_0x43d999[_0x6d50b9(0x1a6)])return _0x43d999['cQmYZ'](String,_0x455e85);throw new Error(_0x6d50b9(0x1bb)+_0x235dec+'\x20must\x20be\x20a\x20string\x20or\x20number');}export async function getOrganizationEnvironmentVariables(_0x1a39f4){const _0x12d065=_0x4cdd,_0x47455a={'iSpLQ':function(_0x35cf74,_0x3e8f69){return _0x35cf74(_0x3e8f69);},'CyKeN':function(_0x5b4986,_0x1b7cc4){return _0x5b4986===_0x1b7cc4;}},_0x2645dd=Array[_0x12d065(0x1a3)](new Set(_0x1a39f4)),_0x4d8531=await Promise[_0x12d065(0x1a0)](_0x2645dd[_0x12d065(0x1a7)](async _0x1b8af0=>{const _0x1423ee=_0x12d065,_0x3c2b29=await _0x47455a['iSpLQ'](getOrganizationEnvironmentVariable,_0x1b8af0);return _0x47455a[_0x1423ee(0x1a2)](_0x3c2b29,null)?null:[_0x1b8af0,_0x3c2b29];}));return Object['fromEntries'](_0x4d8531['filter'](_0x38ee1a=>Boolean(_0x38ee1a)));}
@@ -1 +1 @@
1
- (function(_0x3a5cd6,_0x5a61f2){const _0x35454e=_0x5c0c,_0x301cc7=_0x3a5cd6();while(!![]){try{const _0x41ef9f=-parseInt(_0x35454e(0x1f7))/0x1*(-parseInt(_0x35454e(0x210))/0x2)+parseInt(_0x35454e(0x20b))/0x3*(parseInt(_0x35454e(0x1e5))/0x4)+-parseInt(_0x35454e(0x1e0))/0x5+-parseInt(_0x35454e(0x202))/0x6+-parseInt(_0x35454e(0x1f8))/0x7+parseInt(_0x35454e(0x206))/0x8*(parseInt(_0x35454e(0x1fa))/0x9)+parseInt(_0x35454e(0x20f))/0xa;if(_0x41ef9f===_0x5a61f2)break;else _0x301cc7['push'](_0x301cc7['shift']());}catch(_0x2624c0){_0x301cc7['push'](_0x301cc7['shift']());}}}(_0x4a33,0x8b291));import{spawn}from'child_process';import{createHash}from'crypto';function _0x5c0c(_0x11c3d3,_0x3c4c2c){_0x11c3d3=_0x11c3d3-0x1e0;const _0x4a3368=_0x4a33();let _0x5c0c10=_0x4a3368[_0x11c3d3];return _0x5c0c10;}function _0x4a33(){const _0x2c58e4=['slice','npx','KvclQ','...','sessionId','\x0astderr:\x20','485570pJLVjm','3334982QbIkvE','ignore','980937ndUyXz','find','SIGTERM','pipe','join','replace','toString','stdout','2523378YhImsq','bash_command','timeoutMs','iSYMC','56CUpgTb','fppqA','kill','MjeXD','\x20signal=','1246701dQVWhV','-s=','exited\x20with\x20code=','args','7584400eNwYPj','2tcThdf','length','--config','zrlCu','4777690CqHyQK','nVVIY','error','null','\x0astdout:\x20','4cIoZKz','zUTbx','trim','data','sha256','test','env','hEBaL','map','PFZjP','BykcH','\x27\x5c\x27\x27'];_0x4a33=function(){return _0x2c58e4;};return _0x4a33();}export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x4e4c5a){const _0x2b2861=_0x5c0c,_0x50def2={'fppqA':function(_0xe0d462,_0x955d14){return _0xe0d462(_0x955d14);},'PSJSN':_0x2b2861(0x1e9)},_0x35cf74=_0x50def2[_0x2b2861(0x207)](createHash,_0x50def2['PSJSN'])['update'](_0x4e4c5a)['digest']('hex')[_0x2b2861(0x1f1)](0x0,0xc);return'rg-'+_0x35cf74;}function shellQuote(_0x13a315){const _0x11415d=_0x5c0c;return'\x27'+_0x13a315[_0x11415d(0x1ff)](/'/g,_0x11415d(0x1f0))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x3bc458){const _0x19150b=_0x5c0c,_0x1a0c58={'NRsyn':function(_0x1f6d2b,_0x4fa17a){return _0x1f6d2b(_0x4fa17a);}};return SAFE_SHELL_TOKEN[_0x19150b(0x1ea)](_0x3bc458)?_0x3bc458:_0x1a0c58['NRsyn'](shellQuote,_0x3bc458);}export function buildPlaywrightCliInvocation(_0x31830d,_0x27e5fd,_0x568918){const _0x41324e=_0x5c0c,_0x42adac={'MjeXD':function(_0x327ace,_0x266367){return _0x327ace(_0x266367);},'VhiaL':_0x41324e(0x1f2),'OdtkO':'--config'},_0x362444=_0x42adac[_0x41324e(0x209)](toPlaywrightCliSessionKey,_0x31830d),[_0xb5dbb9='unknown']=_0x568918,_0x327a8d=[PLAYWRIGHT_CLI_BINARY,_0x41324e(0x20c)+_0x362444,'--config',_0x27e5fd,..._0x568918];return{'command':_0x42adac['VhiaL'],'args':_0x327a8d,'shellCommand':[_0x42adac['VhiaL'],PLAYWRIGHT_CLI_BINARY,_0x41324e(0x20c)+quoteShellArg(_0x362444),_0x42adac['OdtkO'],_0x42adac['MjeXD'](quoteShellArg,_0x27e5fd),..._0x568918[_0x41324e(0x1ed)](quoteShellArg)][_0x41324e(0x1fe)]('\x20'),'subcommand':_0xb5dbb9};}export function buildPlaywrightCliCommandPrefix(_0x3b0ac4,_0x29bcf0){const _0x253e71=_0x5c0c,_0x3c5253={'zUTbx':_0x253e71(0x212),'zRpki':function(_0x1b30c4,_0x1105a7){return _0x1b30c4(_0x1105a7);}},_0x1a22ef=toPlaywrightCliSessionKey(_0x3b0ac4);return[_0x253e71(0x1f2),PLAYWRIGHT_CLI_BINARY,_0x253e71(0x20c)+quoteShellArg(_0x1a22ef),_0x3c5253[_0x253e71(0x1e6)],_0x3c5253['zRpki'](quoteShellArg,_0x29bcf0)]['join']('\x20');}function truncateOutput(_0x4b8250,_0x2ad954=0x7d0){const _0x567a97=_0x5c0c;return _0x4b8250['length']>_0x2ad954?_0x4b8250['slice'](0x0,_0x2ad954)+_0x567a97(0x1f4):_0x4b8250;}export async function runPlaywrightCliCommand(_0x3c1324){const _0x4a1617=_0x5c0c,_0x3e335c={'AwSOo':function(_0x339abd,_0x39da26){return _0x339abd===_0x39da26;},'Wjziy':function(_0x3ff715,_0x52ddef){return _0x3ff715??_0x52ddef;},'KvclQ':function(_0x380274,_0x25033b,_0x2b3cbe,_0x4f5b6d){return _0x380274(_0x25033b,_0x2b3cbe,_0x4f5b6d);},'DhcMA':_0x4a1617(0x1f9),'PFZjP':'pipe','Yvnur':function(_0x4b2bbb,_0x2866ee){return _0x4b2bbb>_0x2866ee;},'zrlCu':_0x4a1617(0x1e8),'fYLSF':_0x4a1617(0x1e2),'ktVpP':'close'},_0x1b7197=_0x3e335c[_0x4a1617(0x1f3)](buildPlaywrightCliInvocation,_0x3c1324[_0x4a1617(0x1f5)],_0x3c1324['configPath'],_0x3c1324['commandArgs']);return new Promise((_0x2a9029,_0x4b5fb1)=>{const _0x4a6dcd=_0x4a1617,_0xbf9d55={'BykcH':function(_0x46307,_0x24f4f9){return _0x46307(_0x24f4f9);},'iSYMC':function(_0x1c582e,_0x58280c){return _0x3e335c['AwSOo'](_0x1c582e,_0x58280c);},'hEBaL':function(_0x3046ff,_0xed9891){return _0x3046ff(_0xed9891);},'SEqLJ':function(_0x5c93f7,_0x350f0f){return _0x3e335c['Wjziy'](_0x5c93f7,_0x350f0f);},'KdPqr':function(_0x58db7a,_0x13fa88){return _0x58db7a(_0x13fa88);}},_0x33cb2b=_0x3e335c['KvclQ'](spawn,_0x1b7197['command'],_0x1b7197[_0x4a6dcd(0x20e)],{'cwd':_0x3c1324['cwd'],'env':_0x3c1324[_0x4a6dcd(0x1eb)],'stdio':[_0x3e335c['DhcMA'],_0x3e335c[_0x4a6dcd(0x1ee)],_0x4a6dcd(0x1fd)]});let _0xd88c78='',_0x2b737a='',_0x15eeda=![];const _0xf5a4c3=_0x3c1324[_0x4a6dcd(0x204)]&&_0x3e335c['Yvnur'](_0x3c1324['timeoutMs'],0x0)?setTimeout(()=>{const _0x1e3a64=_0x4a6dcd;_0x15eeda=!![],_0x33cb2b[_0x1e3a64(0x208)](_0x1e3a64(0x1fc)),setTimeout(()=>{const _0x5927e8=_0x1e3a64;try{_0x33cb2b[_0x5927e8(0x208)]('SIGKILL');}catch{}},0x3e8);},_0x3c1324['timeoutMs']):null;_0x33cb2b[_0x4a6dcd(0x201)]?.['on'](_0x4a6dcd(0x1e8),_0x3ddbe3=>{const _0x4e2e9e=_0x4a6dcd;_0xd88c78+=_0x3ddbe3[_0x4e2e9e(0x200)]();}),_0x33cb2b['stderr']?.['on'](_0x3e335c[_0x4a6dcd(0x213)],_0x1fe06b=>{_0x2b737a+=_0x1fe06b['toString']();}),_0x33cb2b['on'](_0x3e335c['fYLSF'],_0x1160f5=>{const _0x4808d5=_0x4a6dcd;if(_0xf5a4c3)_0xbf9d55[_0x4808d5(0x1ef)](clearTimeout,_0xf5a4c3);_0x4b5fb1(_0x1160f5);}),_0x33cb2b['on'](_0x3e335c['ktVpP'],(_0x3c5684,_0x45b9b1)=>{const _0x3fe309=_0x4a6dcd;if(_0xf5a4c3)_0xbf9d55[_0x3fe309(0x1ef)](clearTimeout,_0xf5a4c3);if(_0xbf9d55[_0x3fe309(0x205)](_0x3c5684,0x0)){_0xbf9d55[_0x3fe309(0x1ec)](_0x2a9029,{'stdout':_0xd88c78,'stderr':_0x2b737a,'invocation':_0x1b7197});return;}const _0x45ef2f=_0x15eeda?'timed\x20out\x20after\x20'+_0x3c1324[_0x3fe309(0x204)]+'ms':_0x3fe309(0x20d)+_0xbf9d55['SEqLJ'](_0x3c5684,_0x3fe309(0x1e3))+_0x3fe309(0x20a)+(_0x45b9b1??'null');_0xbf9d55[_0x3fe309(0x1ef)](_0x4b5fb1,new Error('playwright-cli\x20'+_0x1b7197['subcommand']+'\x20'+_0x45ef2f+_0x3fe309(0x1e4)+truncateOutput(_0xd88c78)+_0x3fe309(0x1f6)+_0xbf9d55['KdPqr'](truncateOutput,_0x2b737a)));});});}export function extractBashCommand(_0x2db90c){const _0x3eb013=_0x5c0c,_0x20ee2d={'nVVIY':_0x3eb013(0x203)},_0x51148c=['command','cmd','script',_0x20ee2d[_0x3eb013(0x1e1)]];for(const _0x456031 of _0x51148c){const _0x4908be=_0x2db90c[_0x456031];if(typeof _0x4908be==='string'&&_0x4908be['trim']())return _0x4908be;}const _0x1caf56=Object['values'](_0x2db90c)[_0x3eb013(0x1fb)](_0x4943da=>typeof _0x4943da==='string'&&_0x4943da[_0x3eb013(0x1e7)]()[_0x3eb013(0x211)]>0x0);return _0x1caf56??null;}export function parsePlaywrightCliCommand(_0x1a394a){const _0x42a15b=_0x1a394a['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x42a15b?.[0x1]??null;}
1
+ (function(_0x51b661,_0x134b71){const _0xe878d0=_0x336a,_0x26403a=_0x51b661();while(!![]){try{const _0x3d0680=-parseInt(_0xe878d0(0x13a))/0x1*(-parseInt(_0xe878d0(0x12b))/0x2)+parseInt(_0xe878d0(0x12f))/0x3*(parseInt(_0xe878d0(0x135))/0x4)+-parseInt(_0xe878d0(0x129))/0x5+parseInt(_0xe878d0(0x153))/0x6+-parseInt(_0xe878d0(0x131))/0x7+parseInt(_0xe878d0(0x150))/0x8+parseInt(_0xe878d0(0x149))/0x9;if(_0x3d0680===_0x134b71)break;else _0x26403a['push'](_0x26403a['shift']());}catch(_0x29d7fa){_0x26403a['push'](_0x26403a['shift']());}}}(_0x5c6a,0xefdd2));import{spawn}from'child_process';function _0x5c6a(){const _0x57710f=['null','28206LGCXBQ','digest','-s=','stdout','672gePrrK','chGAA','13114983lvXxco','pNleK','update','cwd','22244YSjpUk','\x0astdout:\x20','data','TFXTR','length','117DHkdmB','env','Muwvu','rDhud','find','VuFta','iynnr','timeoutMs','trOeJ','CTUhN','error','toString','JkEIJ','eqOiR','SIGKILL','675063AMqdpV','trim','\x27\x5c\x27\x27','ignore','replace','bash_command','slice','1841144qgTtRx','--config','stderr','7073214iXtzMw','SNrwG','command','test','...','xvjPT','string','7618415XAtLsp'];_0x5c6a=function(){return _0x57710f;};return _0x5c6a();}import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x1290f4){const _0x3b2a89=_0x336a,_0x37b1d7={'rDhud':'sha256','JkEIJ':'hex'},_0xa7f435=createHash(_0x37b1d7[_0x3b2a89(0x13d)])[_0x3b2a89(0x133)](_0x1290f4)[_0x3b2a89(0x12c)](_0x37b1d7[_0x3b2a89(0x146)])[_0x3b2a89(0x14f)](0x0,0xc);return'rg-'+_0xa7f435;}function shellQuote(_0x3c60e1){const _0x1c5dc2=_0x336a;return'\x27'+_0x3c60e1[_0x1c5dc2(0x14d)](/'/g,_0x1c5dc2(0x14b))+'\x27';}function _0x336a(_0x3df10e,_0x260afa){_0x3df10e=_0x3df10e-0x129;const _0x5c6a68=_0x5c6a();let _0x336a9d=_0x5c6a68[_0x3df10e];return _0x336a9d;}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x4cd26e){const _0x4a0480=_0x336a;return SAFE_SHELL_TOKEN[_0x4a0480(0x156)](_0x4cd26e)?_0x4cd26e:shellQuote(_0x4cd26e);}export function buildPlaywrightCliInvocation(_0x3f50f3,_0x3a0d60,_0x898723){const _0x550e37=_0x336a,_0x25e12b={'Xyeua':'npx','trOeJ':function(_0x383b83,_0x18a46e){return _0x383b83(_0x18a46e);},'WeQRx':_0x550e37(0x151)},_0x4d27e5=toPlaywrightCliSessionKey(_0x3f50f3),[_0x5caad3='unknown']=_0x898723,_0x41b100=[PLAYWRIGHT_CLI_BINARY,_0x550e37(0x12d)+_0x4d27e5,_0x550e37(0x151),_0x3a0d60,..._0x898723];return{'command':'npx','args':_0x41b100,'shellCommand':[_0x25e12b['Xyeua'],PLAYWRIGHT_CLI_BINARY,_0x550e37(0x12d)+_0x25e12b[_0x550e37(0x142)](quoteShellArg,_0x4d27e5),_0x25e12b['WeQRx'],quoteShellArg(_0x3a0d60),..._0x898723['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x5caad3};}export function buildPlaywrightCliCommandPrefix(_0x446929,_0x4f8f9d){const _0x2d6fd9=_0x336a,_0x5dc174={'eqOiR':function(_0x54f5c3,_0x17f817){return _0x54f5c3(_0x17f817);},'xvjPT':'npx','psPIs':function(_0x1c96dc,_0x400f96){return _0x1c96dc(_0x400f96);}},_0x1da05d=_0x5dc174[_0x2d6fd9(0x147)](toPlaywrightCliSessionKey,_0x446929);return[_0x5dc174[_0x2d6fd9(0x158)],PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x1da05d),'--config',_0x5dc174['psPIs'](quoteShellArg,_0x4f8f9d)]['join']('\x20');}function truncateOutput(_0x3b4c68,_0x791a82=0x7d0){const _0x42083f=_0x336a,_0x2bcf6d={'UcDjO':_0x42083f(0x157)};return _0x3b4c68[_0x42083f(0x139)]>_0x791a82?_0x3b4c68['slice'](0x0,_0x791a82)+_0x2bcf6d['UcDjO']:_0x3b4c68;}export async function runPlaywrightCliCommand(_0x7b3ad){const _0x31b463={'OTbIJ':'SIGTERM','CTUhN':function(_0x43409a,_0xced20c){return _0x43409a(_0xced20c);},'mjSba':function(_0x35ddba,_0x21c194){return _0x35ddba(_0x21c194);},'evmRw':function(_0xcc6cba,_0x306591,_0x476a6a,_0x4e8aaf){return _0xcc6cba(_0x306591,_0x476a6a,_0x4e8aaf);},'iynnr':'pipe','Muwvu':function(_0x32a200,_0x3502aa,_0x251e19){return _0x32a200(_0x3502aa,_0x251e19);}},_0x217a5c=buildPlaywrightCliInvocation(_0x7b3ad['sessionId'],_0x7b3ad['configPath'],_0x7b3ad['commandArgs']);return new Promise((_0x1e75ba,_0x114887)=>{const _0x309ff2=_0x336a,_0x552963={'WIBXt':_0x309ff2(0x148),'SNrwG':function(_0x3bf448,_0x184b2c){const _0xa4b091=_0x309ff2;return _0x31b463[_0xa4b091(0x143)](_0x3bf448,_0x184b2c);},'chGAA':function(_0xc6c888,_0xdf9f7c){return _0xc6c888===_0xdf9f7c;},'LpAJn':_0x309ff2(0x12a),'VuFta':function(_0x443d9f,_0xfc6248){return _0x443d9f??_0xfc6248;},'EXEtd':function(_0x4b0877,_0x176d5d){return _0x31b463['mjSba'](_0x4b0877,_0x176d5d);}},_0x518895=_0x31b463['evmRw'](spawn,_0x217a5c['command'],_0x217a5c['args'],{'cwd':_0x7b3ad[_0x309ff2(0x134)],'env':_0x7b3ad[_0x309ff2(0x13b)],'stdio':[_0x309ff2(0x14c),_0x31b463[_0x309ff2(0x140)],'pipe']});let _0x5a8dbc='',_0x12c2d2='',_0x583a7f=![];const _0x1beed6=_0x7b3ad[_0x309ff2(0x141)]&&_0x7b3ad[_0x309ff2(0x141)]>0x0?_0x31b463[_0x309ff2(0x13c)](setTimeout,()=>{_0x583a7f=!![],_0x518895['kill'](_0x31b463['OTbIJ']),setTimeout(()=>{try{_0x518895['kill'](_0x552963['WIBXt']);}catch{}},0x3e8);},_0x7b3ad[_0x309ff2(0x141)]):null;_0x518895[_0x309ff2(0x12e)]?.['on']('data',_0x1318c9=>{const _0x3d4d9b=_0x309ff2;_0x5a8dbc+=_0x1318c9[_0x3d4d9b(0x145)]();}),_0x518895[_0x309ff2(0x152)]?.['on'](_0x309ff2(0x137),_0x3725e7=>{_0x12c2d2+=_0x3725e7['toString']();}),_0x518895['on'](_0x309ff2(0x144),_0x4f6735=>{if(_0x1beed6)_0x552963['SNrwG'](clearTimeout,_0x1beed6);_0x114887(_0x4f6735);}),_0x518895['on']('close',(_0x1e1783,_0x2ae094)=>{const _0x44b56f=_0x309ff2;if(_0x1beed6)clearTimeout(_0x1beed6);if(_0x552963[_0x44b56f(0x130)](_0x1e1783,0x0)){_0x552963[_0x44b56f(0x154)](_0x1e75ba,{'stdout':_0x5a8dbc,'stderr':_0x12c2d2,'invocation':_0x217a5c});return;}const _0x45f8e6=_0x583a7f?'timed\x20out\x20after\x20'+_0x7b3ad[_0x44b56f(0x141)]+'ms':'exited\x20with\x20code='+(_0x1e1783??_0x552963['LpAJn'])+'\x20signal='+_0x552963[_0x44b56f(0x13f)](_0x2ae094,'null');_0x114887(new Error('playwright-cli\x20'+_0x217a5c['subcommand']+'\x20'+_0x45f8e6+_0x44b56f(0x136)+truncateOutput(_0x5a8dbc)+'\x0astderr:\x20'+_0x552963['EXEtd'](truncateOutput,_0x12c2d2)));});});}export function extractBashCommand(_0x1c334e){const _0x243474=_0x336a,_0x2cec6f={'pNleK':'script','jvWiW':_0x243474(0x14e),'TFXTR':function(_0x49fca1,_0x3ab076){return _0x49fca1??_0x3ab076;}},_0xc50eac=[_0x243474(0x155),'cmd',_0x2cec6f[_0x243474(0x132)],_0x2cec6f['jvWiW']];for(const _0x782cd8 of _0xc50eac){const _0x35a282=_0x1c334e[_0x782cd8];if(typeof _0x35a282==='string'&&_0x35a282[_0x243474(0x14a)]())return _0x35a282;}const _0x61d729=Object['values'](_0x1c334e)[_0x243474(0x13e)](_0x44e623=>typeof _0x44e623===_0x243474(0x159)&&_0x44e623[_0x243474(0x14a)]()['length']>0x0);return _0x2cec6f[_0x243474(0x138)](_0x61d729,null);}export function parsePlaywrightCliCommand(_0xc5d17f){const _0x4398a2=_0xc5d17f['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x4398a2?.[0x1]??null;}
@@ -1 +1 @@
1
- const _0x7d5475=_0x10ba;(function(_0x568817,_0x3f5153){const _0x38b39b=_0x10ba,_0x1a4556=_0x568817();while(!![]){try{const _0x17584e=parseInt(_0x38b39b(0x11b))/0x1*(parseInt(_0x38b39b(0x120))/0x2)+-parseInt(_0x38b39b(0x11c))/0x3*(parseInt(_0x38b39b(0x123))/0x4)+parseInt(_0x38b39b(0x122))/0x5*(parseInt(_0x38b39b(0x11d))/0x6)+parseInt(_0x38b39b(0x11a))/0x7*(-parseInt(_0x38b39b(0x117))/0x8)+parseInt(_0x38b39b(0x119))/0x9*(parseInt(_0x38b39b(0x118))/0xa)+parseInt(_0x38b39b(0x11e))/0xb*(parseInt(_0x38b39b(0x121))/0xc)+-parseInt(_0x38b39b(0x11f))/0xd;if(_0x17584e===_0x3f5153)break;else _0x1a4556['push'](_0x1a4556['shift']());}catch(_0x5270db){_0x1a4556['push'](_0x1a4556['shift']());}}}(_0x2348,0x90c11));const DEFAULT_PROFILE_COMMAND=_0x7d5475(0x116);export function formatProfileRequiredMessage(_0x1c3e0c){const _0x342cf9={'SZNWb':function(_0x313edc,_0x2803d5){return _0x313edc(_0x2803d5);}},_0x3d38ad=_0x1c3e0c?_0x342cf9['SZNWb'](_0x1c3e0c,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'+_0x3d38ad+'.';}function _0x10ba(_0x2e7afc,_0xf3d26b){_0x2e7afc=_0x2e7afc-0x116;const _0x2348ac=_0x2348();let _0x10ba15=_0x2348ac[_0x2e7afc];return _0x10ba15;}function _0x2348(){const _0x24e12d=['7NUdScg','2699871QVzyDo','6PSHVgH','418ZQumHK','6324240ztUPmx','184638rmwDfk','56424YIHsPw','2899850NvcVgI','4PEdphE','ranger\x20profile\x20add\x20local','680zNKdXc','20dzbUBB','4304457UmCTfg','31465nuaivS'];_0x2348=function(){return _0x24e12d;};return _0x2348();}
1
+ const _0x51a4e0=_0x49e9;function _0x2d53(){const _0x4a6324=['411280xgtjks','4suPrtF','1179uMFqEz','744OgdfzG','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','4816427EiGtie','637056dfZnph','127736nKztUj','5210ofGSka','5UVkQiY','99422qJnHrq','36uXqLJK','ranger\x20profile\x20add\x20local'];_0x2d53=function(){return _0x4a6324;};return _0x2d53();}(function(_0x345239,_0x2c445c){const _0x292578=_0x49e9,_0xa65351=_0x345239();while(!![]){try{const _0x5efdf8=parseInt(_0x292578(0x178))/0x1*(-parseInt(_0x292578(0x179))/0x2)+-parseInt(_0x292578(0x175))/0x3+-parseInt(_0x292578(0x170))/0x4*(-parseInt(_0x292578(0x177))/0x5)+-parseInt(_0x292578(0x17a))/0x6*(-parseInt(_0x292578(0x176))/0x7)+-parseInt(_0x292578(0x172))/0x8*(-parseInt(_0x292578(0x171))/0x9)+parseInt(_0x292578(0x16f))/0xa+parseInt(_0x292578(0x174))/0xb;if(_0x5efdf8===_0x2c445c)break;else _0xa65351['push'](_0xa65351['shift']());}catch(_0x54429a){_0xa65351['push'](_0xa65351['shift']());}}}(_0x2d53,0x225f7));function _0x49e9(_0x39e31f,_0x52a3a0){_0x39e31f=_0x39e31f-0x16e;const _0x2d5301=_0x2d53();let _0x49e9c2=_0x2d5301[_0x39e31f];return _0x49e9c2;}const DEFAULT_PROFILE_COMMAND=_0x51a4e0(0x16e);export function formatProfileRequiredMessage(_0x4d123d){const _0x2168e5=_0x51a4e0,_0x455583=_0x4d123d?_0x4d123d(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x2168e5(0x173)+_0x455583+'.';}
@@ -1 +1 @@
1
- (function(_0x35802f,_0x28670e){const _0xd1bfd8=_0x1429,_0x303e8a=_0x35802f();while(!![]){try{const _0xc70444=-parseInt(_0xd1bfd8(0x143))/0x1+-parseInt(_0xd1bfd8(0x13e))/0x2+-parseInt(_0xd1bfd8(0x14a))/0x3*(-parseInt(_0xd1bfd8(0x144))/0x4)+-parseInt(_0xd1bfd8(0x13f))/0x5+-parseInt(_0xd1bfd8(0x13d))/0x6+-parseInt(_0xd1bfd8(0x146))/0x7+-parseInt(_0xd1bfd8(0x148))/0x8*(-parseInt(_0xd1bfd8(0x147))/0x9);if(_0xc70444===_0x28670e)break;else _0x303e8a['push'](_0x303e8a['shift']());}catch(_0x4021d0){_0x303e8a['push'](_0x303e8a['shift']());}}}(_0x1233,0x3d39d));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x3ece64=_0x1429,_0x35406d={'FlNkS':function(_0x1ff3bc,_0x1895a5){return _0x1ff3bc+_0x1895a5;},'wphqn':function(_0x47acbe,_0x2ef5de){return _0x47acbe+_0x2ef5de;},'aXyOY':function(_0x46a1c4,_0x29f306){return _0x46a1c4+_0x29f306;},'TwdGg':'<div\x20class=\x22ranger-banner__content\x22>','CllEx':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','nEvNl':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','ojmpz':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x3f3266=_0x35406d['FlNkS'](_0x35406d['wphqn'](_0x35406d['aXyOY'](_0x35406d[_0x3ece64(0x14b)](_0x35406d['TwdGg']+_0x35406d['CllEx'],_0x3ece64(0x140)),'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>')+_0x35406d['nEvNl'],_0x3ece64(0x145)),_0x3ece64(0x145))+_0x35406d['ojmpz'],_0x3969de='\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';return'\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'+JSON['stringify'](_0x3f3266)+_0x3ece64(0x142)+JSON['stringify'](_0x3969de)+_0x3ece64(0x141);})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x1429(_0x1920cc,_0x7a8b1e){_0x1920cc=_0x1920cc-0x13d;const _0x123371=_0x1233();let _0x14299b=_0x123371[_0x1920cc];return _0x14299b;}function _0x1233(){const _0x388f1e=['addInitScript','3JpPTku','aXyOY','734382AtMixG','291270VQZRRB','545395HpxUOj','<div\x20class=\x22ranger-banner__message\x22>',';\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',';\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','122675CgKYQq','883132TJkymG','</div>','1405131MpDIFO','2979dbmzYe','17656TMrqVq'];_0x1233=function(){return _0x388f1e;};return _0x1233();}export async function addProfileSetupBanner(_0x15340d){const _0x2016b5=_0x1429;await _0x15340d[_0x2016b5(0x149)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ (function(_0x402b47,_0x451481){const _0x5315b0=_0x5bee,_0x5c79b1=_0x402b47();while(!![]){try{const _0x46298e=parseInt(_0x5315b0(0x1a6))/0x1+-parseInt(_0x5315b0(0x1a2))/0x2+parseInt(_0x5315b0(0x1a0))/0x3+parseInt(_0x5315b0(0x1a3))/0x4*(parseInt(_0x5315b0(0x19e))/0x5)+-parseInt(_0x5315b0(0x1ab))/0x6*(-parseInt(_0x5315b0(0x1a5))/0x7)+-parseInt(_0x5315b0(0x1aa))/0x8+-parseInt(_0x5315b0(0x1ac))/0x9*(-parseInt(_0x5315b0(0x19c))/0xa);if(_0x46298e===_0x451481)break;else _0x5c79b1['push'](_0x5c79b1['shift']());}catch(_0xdf4842){_0x5c79b1['push'](_0x5c79b1['shift']());}}}(_0x22e7,0x5f440));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x2f79e5=_0x5bee,_0x3835db={'jerUD':function(_0x25e038,_0x4b78a5){return _0x25e038+_0x4b78a5;},'vpAew':_0x2f79e5(0x1ad),'sNsYk':_0x2f79e5(0x1a7),'KZYHC':'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','cMERe':'</div>','aNzXU':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x55ab07=_0x3835db[_0x2f79e5(0x19d)](_0x3835db[_0x2f79e5(0x19d)](_0x3835db[_0x2f79e5(0x19d)]('<div\x20class=\x22ranger-banner__content\x22>',_0x3835db['vpAew'])+_0x3835db['sNsYk']+_0x3835db['KZYHC'],_0x2f79e5(0x1a1))+_0x2f79e5(0x1a4)+_0x3835db['cMERe'],_0x3835db[_0x2f79e5(0x19f)]),_0x5bdc09='\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';return _0x2f79e5(0x1a9)+JSON[_0x2f79e5(0x1a8)](_0x55ab07)+_0x2f79e5(0x1b0)+JSON[_0x2f79e5(0x1a8)](_0x5bdc09)+_0x2f79e5(0x1af);})());function _0x22e7(){const _0x555e10=[';\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',';\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','4658210MdBzfj','jerUD','163145NYtdgx','aNzXU','225177KAeLLt','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','28500pyAXql','4eWrZuG','</div>','7hWfXoa','276308SYZvdR','<div\x20class=\x22ranger-banner__message\x22>','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','5254856ydYWym','1268988lYLuRN','9glPUoL','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','addInitScript'];_0x22e7=function(){return _0x555e10;};return _0x22e7();}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x5bee(_0x5368e4,_0x502e2d){_0x5368e4=_0x5368e4-0x19c;const _0x22e71e=_0x22e7();let _0x5bee51=_0x22e71e[_0x5368e4];return _0x5bee51;}export async function addProfileSetupBanner(_0x5b8dcd){const _0x310c5a=_0x5bee;await _0x5b8dcd[_0x310c5a(0x1ae)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
@@ -1 +1 @@
1
- (function(_0x88be40,_0x1db442){const _0xfafd2b=_0x22bb,_0x2648d0=_0x88be40();while(!![]){try{const _0x56726a=parseInt(_0xfafd2b(0x17c))/0x1+parseInt(_0xfafd2b(0x177))/0x2*(parseInt(_0xfafd2b(0x18b))/0x3)+-parseInt(_0xfafd2b(0x174))/0x4*(parseInt(_0xfafd2b(0x169))/0x5)+-parseInt(_0xfafd2b(0x188))/0x6+-parseInt(_0xfafd2b(0x17a))/0x7+parseInt(_0xfafd2b(0x199))/0x8*(parseInt(_0xfafd2b(0x196))/0x9)+parseInt(_0xfafd2b(0x170))/0xa*(parseInt(_0xfafd2b(0x19a))/0xb);if(_0x56726a===_0x1db442)break;else _0x2648d0['push'](_0x2648d0['shift']());}catch(_0x3571fa){_0x2648d0['push'](_0x2648d0['shift']());}}}(_0xc1c5,0x81c9a));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';function _0x22bb(_0x514366,_0x1ad0f5){_0x514366=_0x514366-0x169;const _0xc1c5db=_0xc1c5();let _0x22bb16=_0xc1c5db[_0x514366];return _0x22bb16;}function _0xc1c5(){const _0x2eb532=['AJHwf','3OxUXMV','keys','split','CAqDm','lastProfile','now','object','entries','version','length','wfLDU','5121iAKPPF','message','projects','4744yMwyeX','2654839vLPftL','15nvfiZf','DgKWe','vpGzV','DfIJJ','UKDyH','[ranger]\x20Warning:\x20','wHvAL','50IRzqaS','isArray','rhlJU','ewiQz','1212212TuhrAK','keyPath\x20is\x20required','gUaRq','610556bakhzc','parse','warn','2871834hfVtYV','profiles','78905LhfAiV','pLqbv','OXmMJ','setupHeaders','stringify','AnIKJ','settings','.\x20Ignoring\x20local\x20profile\x20overrides.','SkDLu','projects.json','hauNb','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','463884EoYLAp','OSNnV'];_0xc1c5=function(){return _0x2eb532;};return _0xc1c5();}import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x5275ca=_0x22bb,_0x3e4c01={'ewiQz':function(_0x2e9a49){return _0x2e9a49();}};return join(_0x3e4c01[_0x5275ca(0x173)](getRangerHomeDir),_0x5275ca(0x185));}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x5494f5=_0x22bb,_0x2102b0={'CAqDm':function(_0x1c1320){return _0x1c1320();},'PxEXE':function(_0x3ccadd){return _0x3ccadd();},'tHbOK':function(_0x1d2814,_0x49c9d5,_0x2a5f34){return _0x1d2814(_0x49c9d5,_0x2a5f34);},'EqzRF':function(_0x4ca3b9,_0x86c1be){return _0x4ca3b9 instanceof _0x86c1be;},'aVxxA':function(_0x2334ba,_0x31a70c){return _0x2334ba(_0x31a70c);},'IfGVv':function(_0x502502,_0x3973a9){return _0x502502!==_0x3973a9;},'Noswq':_0x5494f5(0x191),'UKDyH':function(_0x7dc7f9,_0x23ed89){return _0x7dc7f9!==_0x23ed89;},'CUGrD':function(_0x3373c3,_0x2b825f){return _0x3373c3===_0x2b825f;}},_0x2cbcb1=_0x2102b0[_0x5494f5(0x18e)](getProjectsConfigPath);if(!existsSync(_0x2cbcb1))return _0x2102b0['PxEXE'](emptyConfig);let _0x20777f;try{_0x20777f=_0x2102b0['tHbOK'](readFileSync,_0x2cbcb1,'utf-8');}catch(_0x1a9bb1){const _0x4a1e33=_0x2102b0['EqzRF'](_0x1a9bb1,Error)?_0x1a9bb1['message']:_0x2102b0['aVxxA'](String,_0x1a9bb1);return console['warn']('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x2cbcb1+':\x20'+_0x4a1e33+_0x5494f5(0x183)),emptyConfig();}let _0x11e663;try{_0x11e663=JSON[_0x5494f5(0x178)](_0x20777f);}catch(_0x31a452){const _0x27e328=_0x31a452 instanceof Error?_0x31a452[_0x5494f5(0x197)]:String(_0x31a452);return console['warn'](_0x5494f5(0x16e)+_0x2cbcb1+'\x20is\x20not\x20valid\x20JSON\x20('+_0x27e328+').\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}if(!_0x11e663||_0x2102b0['IfGVv'](typeof _0x11e663,_0x2102b0['Noswq'])||Array['isArray'](_0x11e663)||_0x2102b0[_0x5494f5(0x16d)](_0x11e663[_0x5494f5(0x193)],CURRENT_VERSION)||typeof _0x11e663[_0x5494f5(0x198)]!==_0x2102b0['Noswq']||_0x2102b0['CUGrD'](_0x11e663[_0x5494f5(0x198)],null)||Array[_0x5494f5(0x171)](_0x11e663[_0x5494f5(0x198)]))return console[_0x5494f5(0x179)](_0x5494f5(0x16e)+_0x2cbcb1+_0x5494f5(0x187)),emptyConfig();return _0x11e663;}export function writeProjectsConfig(_0x91771){const _0x1102e3=_0x22bb,_0x30b366={'OPDnJ':function(_0x4553da,_0x3ed315){return _0x4553da(_0x3ed315);},'MCMMH':function(_0xc8d55,_0x47a613,_0x2c34a3){return _0xc8d55(_0x47a613,_0x2c34a3);},'RhUyh':function(_0x3d10fa,_0x365cc2){return _0x3d10fa+_0x365cc2;},'AtQTn':'utf-8','pLqbv':function(_0x455625,_0x4a0ab8){return _0x455625(_0x4a0ab8);}},_0x2c6169=getProjectsConfigPath(),_0x57cedd=_0x30b366['OPDnJ'](dirname,_0x2c6169);!existsSync(_0x57cedd)&&_0x30b366['MCMMH'](mkdirSync,_0x57cedd,{'recursive':!![]});const _0x3bbe55=_0x2c6169+'.'+process['pid']+'.'+Date[_0x1102e3(0x190)]()+'.tmp',_0x2a2d19=_0x30b366['RhUyh'](JSON[_0x1102e3(0x180)](_0x91771,null,0x2),'\x0a');try{writeFileSync(_0x3bbe55,_0x2a2d19,{'encoding':_0x30b366['AtQTn'],'mode':0x180}),renameSync(_0x3bbe55,_0x2c6169);}catch(_0x3afbb8){try{_0x30b366[_0x1102e3(0x17d)](existsSync,_0x3bbe55)&&_0x30b366['pLqbv'](unlinkSync,_0x3bbe55);}catch{}throw _0x3afbb8;}}export function readProfileOverrides(_0x21ee8a,_0x2c8ca1){const _0x498d16=_0x22bb,_0x1cdd50={'vpGzV':function(_0x1ac466){return _0x1ac466();}},_0x1b7bf6=_0x1cdd50[_0x498d16(0x16b)](readProjectsConfig),_0x49c75e=_0x1b7bf6['projects'][_0x21ee8a];if(!_0x49c75e||!_0x49c75e['profiles'])return null;const _0x59378f=_0x49c75e['profiles'][_0x2c8ca1];if(!_0x59378f||!_0x59378f['settings'])return null;return _0x59378f['settings']??null;}export function setProfileOverride(_0x104706,_0x4eee26,_0x2dfef3,_0x28747c){const _0x3fd496=_0x22bb,_0x2f5f2f={'OSNnV':function(_0x52514c){return _0x52514c();},'VyRYW':function(_0x221b69,_0x40b294){return _0x221b69(_0x40b294);}};if(!_0x2dfef3)throw new Error('keyPath\x20is\x20required');const _0x5544c5=_0x2f5f2f[_0x3fd496(0x189)](readProjectsConfig),_0x47e2c3=_0x5544c5[_0x3fd496(0x198)][_0x104706]??={},_0x1a8bd4=_0x47e2c3[_0x3fd496(0x17b)]??={},_0x4544dd=_0x1a8bd4[_0x4eee26]??={},_0x22422f=_0x4544dd[_0x3fd496(0x182)]??={};setByKeyPath(_0x22422f,_0x2dfef3,_0x28747c),_0x2f5f2f['VyRYW'](writeProjectsConfig,_0x5544c5);}export function unsetProfileOverride(_0x1eb9a5,_0x5c7888,_0x47c6cd){const _0x54fdd9=_0x22bb,_0x4cb5cc={'DzZLb':function(_0x2970cd){return _0x2970cd();},'rhlJU':function(_0x352b28,_0x5a6a71,_0x5eda4a){return _0x352b28(_0x5a6a71,_0x5eda4a);},'OXmMJ':function(_0x354f00,_0x380c30){return _0x354f00(_0x380c30);}};if(!_0x47c6cd)throw new Error(_0x54fdd9(0x175));const _0x326044=_0x4cb5cc['DzZLb'](readProjectsConfig),_0x113482=_0x326044[_0x54fdd9(0x198)][_0x1eb9a5];if(!_0x113482?.[_0x54fdd9(0x17b)])return![];const _0x4bfb80=_0x113482[_0x54fdd9(0x17b)][_0x5c7888];if(!_0x4bfb80?.['settings'])return![];const _0x47d549=_0x4cb5cc[_0x54fdd9(0x172)](deleteByKeyPath,_0x4bfb80['settings'],_0x47c6cd);if(!_0x47d549)return![];return _0x4cb5cc[_0x54fdd9(0x17e)](writeProjectsConfig,_0x326044),!![];}export function resetProfileOverrides(_0xb3bee9,_0x393d20){const _0xc46d52=_0x22bb,_0xa89b13={'bFAey':function(_0x46fa0f){return _0x46fa0f();},'AnIKJ':function(_0x261181,_0x5aa381){return _0x261181 in _0x5aa381;},'KgBmj':function(_0x331cc5,_0x3fab20){return _0x331cc5===_0x3fab20;},'MxIdf':function(_0x3ad610,_0x424315){return _0x3ad610(_0x424315);}},_0x340896=_0xa89b13['bFAey'](readProjectsConfig),_0x48d22e=_0x340896[_0xc46d52(0x198)][_0xb3bee9];if(!_0x48d22e?.['profiles'])return;if(!_0xa89b13[_0xc46d52(0x181)](_0x393d20,_0x48d22e['profiles']))return;delete _0x48d22e['profiles'][_0x393d20],_0xa89b13['KgBmj'](Object[_0xc46d52(0x18c)](_0x48d22e[_0xc46d52(0x17b)])['length'],0x0)&&(!_0x48d22e[_0xc46d52(0x18f)]?delete _0x340896[_0xc46d52(0x198)][_0xb3bee9]:_0x48d22e[_0xc46d52(0x17b)]={}),_0xa89b13['MxIdf'](writeProjectsConfig,_0x340896);}export function readLastProfile(_0x30da25){const _0x45bf64={'YzSks':function(_0x514590){return _0x514590();}},_0xde063d=_0x45bf64['YzSks'](readProjectsConfig),_0x35ab9b=_0xde063d['projects'][_0x30da25];return _0x35ab9b?.['lastProfile']??null;}export function writeLastProfile(_0x1a7ec2,_0x5ea43f){const _0x1c7d58=_0x22bb,_0x460d60=readProjectsConfig(),_0x4d2265=_0x460d60[_0x1c7d58(0x198)][_0x1a7ec2]??={};_0x4d2265[_0x1c7d58(0x18f)]=_0x5ea43f,writeProjectsConfig(_0x460d60);}export function clearLastProfile(_0x483759,_0x4aa365){const _0x1dd86a=_0x22bb,_0x3e512c={'WmgOi':function(_0x232346,_0x50b29f){return _0x232346(_0x50b29f);}},_0x5a7f85=readProjectsConfig(),_0xe2dff1=_0x5a7f85['projects'][_0x483759];if(!_0xe2dff1||_0xe2dff1[_0x1dd86a(0x18f)]!==_0x4aa365)return![];return delete _0xe2dff1['lastProfile'],(!_0xe2dff1[_0x1dd86a(0x17b)]||Object[_0x1dd86a(0x18c)](_0xe2dff1[_0x1dd86a(0x17b)])[_0x1dd86a(0x194)]===0x0)&&delete _0x5a7f85[_0x1dd86a(0x198)][_0x483759],_0x3e512c['WmgOi'](writeProjectsConfig,_0x5a7f85),!![];}export function mergeCloudProfileSettings(_0x5d6fc3,_0x1eaf5f){const _0x2e39ab=_0x22bb,_0x1d0d56={'Kezvw':function(_0x454361,_0x2ce40e){return _0x454361??_0x2ce40e;},'AJHwf':function(_0xaf2445,_0x39d4ea){return _0xaf2445===_0x39d4ea;},'wfLDU':function(_0x5d7972,_0x18e9cf){return _0x5d7972(_0x18e9cf);},'DfIJJ':function(_0x3f8b0d,_0x20e6b6){return _0x3f8b0d!==_0x20e6b6;}},_0x43fef4={..._0x1d0d56['Kezvw'](_0x5d6fc3,{})};if(!_0x1eaf5f)return _0x43fef4;for(const [_0x5cf2c9,_0x24c1bb]of Object[_0x2e39ab(0x192)](_0x1eaf5f)){if(_0x1d0d56[_0x2e39ab(0x18a)](_0x24c1bb,undefined))continue;if(_0x24c1bb===null){delete _0x43fef4[_0x5cf2c9];continue;}if(_0x1d0d56[_0x2e39ab(0x18a)](_0x5cf2c9,'headers')||_0x5cf2c9===_0x2e39ab(0x17f)){const _0xc28135=_0x1d0d56[_0x2e39ab(0x195)](asRecord,_0x43fef4[_0x5cf2c9])??{},_0x5a3224=_0x1d0d56[_0x2e39ab(0x195)](asRecord,_0x24c1bb);if(!_0x5a3224){_0x43fef4[_0x5cf2c9]=_0x24c1bb;continue;}const _0x42404e={..._0xc28135};for(const [_0x422953,_0xfa3933]of Object[_0x2e39ab(0x192)](_0x5a3224)){if(_0x1d0d56[_0x2e39ab(0x18a)](_0xfa3933,null))delete _0x42404e[_0x422953];else _0x1d0d56[_0x2e39ab(0x16c)](_0xfa3933,undefined)&&(_0x42404e[_0x422953]=_0xfa3933);}_0x43fef4[_0x5cf2c9]=_0x42404e;continue;}_0x43fef4[_0x5cf2c9]=_0x24c1bb;}return _0x43fef4;}function asRecord(_0x27c55f){const _0x3952e8=_0x22bb,_0x5e3ae0={'SkDLu':function(_0x4acdd1,_0x277717){return _0x4acdd1===_0x277717;}};return _0x27c55f&&_0x5e3ae0[_0x3952e8(0x184)](typeof _0x27c55f,'object')&&!Array[_0x3952e8(0x171)](_0x27c55f)?_0x27c55f:undefined;}function setByKeyPath(_0x13d541,_0x5078a7,_0x20871f){const _0x345ff=_0x22bb,_0x35253e={'DgKWe':function(_0x4659d3,_0x192ccc){return _0x4659d3<_0x192ccc;}},_0x9028cf=_0x5078a7[_0x345ff(0x18d)]('.');let _0x9f3ba=_0x13d541;for(let _0x5ab90e=0x0;_0x35253e[_0x345ff(0x16a)](_0x5ab90e,_0x9028cf['length']-0x1);_0x5ab90e++){const _0x3740aa=_0x9028cf[_0x5ab90e],_0x502597=_0x9f3ba[_0x3740aa];(!_0x502597||typeof _0x502597!=='object'||Array[_0x345ff(0x171)](_0x502597))&&(_0x9f3ba[_0x3740aa]={}),_0x9f3ba=_0x9f3ba[_0x3740aa];}_0x9f3ba[_0x9028cf[_0x9028cf[_0x345ff(0x194)]-0x1]]=_0x20871f;}function deleteByKeyPath(_0x405551,_0x3fecfe){const _0x55fd76=_0x22bb,_0x417f55={'wHvAL':function(_0x4c76f5,_0xac566e){return _0x4c76f5-_0xac566e;},'gUaRq':function(_0x25fc6a,_0x44400e){return _0x25fc6a-_0x44400e;},'hauNb':function(_0x487776,_0x95ec3c){return _0x487776 in _0x95ec3c;}},_0x42e575=_0x3fecfe[_0x55fd76(0x18d)]('.');let _0x11f686=_0x405551;for(let _0x49edb3=0x0;_0x49edb3<_0x417f55[_0x55fd76(0x16f)](_0x42e575[_0x55fd76(0x194)],0x1);_0x49edb3++){const _0x345d20=_0x42e575[_0x49edb3],_0x3a100a=_0x11f686[_0x345d20];if(!_0x3a100a||typeof _0x3a100a!==_0x55fd76(0x191)||Array['isArray'](_0x3a100a))return![];_0x11f686=_0x3a100a;}const _0x31fb55=_0x42e575[_0x417f55[_0x55fd76(0x176)](_0x42e575[_0x55fd76(0x194)],0x1)];if(!_0x417f55[_0x55fd76(0x186)](_0x31fb55,_0x11f686))return![];return delete _0x11f686[_0x31fb55],!![];}
1
+ (function(_0x1f8410,_0x2f6f3a){const _0x26f969=_0x56e2,_0x19f02e=_0x1f8410();while(!![]){try{const _0x305d37=-parseInt(_0x26f969(0x122))/0x1+-parseInt(_0x26f969(0x10e))/0x2*(parseInt(_0x26f969(0x11b))/0x3)+parseInt(_0x26f969(0x10d))/0x4+-parseInt(_0x26f969(0x117))/0x5+parseInt(_0x26f969(0x118))/0x6*(-parseInt(_0x26f969(0x121))/0x7)+-parseInt(_0x26f969(0x11a))/0x8*(-parseInt(_0x26f969(0x10c))/0x9)+parseInt(_0x26f969(0x11f))/0xa;if(_0x305d37===_0x2f6f3a)break;else _0x19f02e['push'](_0x19f02e['shift']());}catch(_0x585336){_0x19f02e['push'](_0x19f02e['shift']());}}}(_0x21f2,0x5e5b5));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x4b1980=_0x56e2,_0x192d9e={'DyPei':function(_0x46c79a,_0x55752e,_0x47c202){return _0x46c79a(_0x55752e,_0x47c202);}};return _0x192d9e[_0x4b1980(0x119)](join,getRangerHomeDir(),'projects.json');}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x4f39cd=_0x56e2,_0x51eac7={'nczbz':'utf-8','yuWRW':function(_0x4169f5){return _0x4169f5();},'CjfaY':function(_0xbfb4db,_0xd6f672){return _0xbfb4db!==_0xd6f672;},'yfROm':_0x4f39cd(0x12b),'YjhJa':function(_0x383109,_0x5e6cbf){return _0x383109!==_0x5e6cbf;},'HAtEN':function(_0x4d6534,_0x11571f){return _0x4d6534!==_0x11571f;},'dmTJO':function(_0x54f907){return _0x54f907();}},_0x455512=getProjectsConfigPath();if(!existsSync(_0x455512))return emptyConfig();let _0x322ffb;try{_0x322ffb=readFileSync(_0x455512,_0x51eac7['nczbz']);}catch(_0x246fbf){const _0x153cc4=_0x246fbf instanceof Error?_0x246fbf[_0x4f39cd(0x126)]:String(_0x246fbf);return console[_0x4f39cd(0x127)]('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x455512+':\x20'+_0x153cc4+_0x4f39cd(0x115)),emptyConfig();}let _0x384567;try{_0x384567=JSON[_0x4f39cd(0x136)](_0x322ffb);}catch(_0x70d3b4){const _0x25a71e=_0x70d3b4 instanceof Error?_0x70d3b4[_0x4f39cd(0x126)]:String(_0x70d3b4);return console['warn'](_0x4f39cd(0x125)+_0x455512+'\x20is\x20not\x20valid\x20JSON\x20('+_0x25a71e+_0x4f39cd(0x114)),_0x51eac7[_0x4f39cd(0x132)](emptyConfig);}if(!_0x384567||_0x51eac7['CjfaY'](typeof _0x384567,_0x51eac7['yfROm'])||Array['isArray'](_0x384567)||_0x51eac7[_0x4f39cd(0x111)](_0x384567['version'],CURRENT_VERSION)||_0x51eac7['HAtEN'](typeof _0x384567[_0x4f39cd(0x133)],'object')||_0x384567['projects']===null||Array[_0x4f39cd(0x134)](_0x384567['projects']))return console[_0x4f39cd(0x127)](_0x4f39cd(0x125)+_0x455512+_0x4f39cd(0x131)),_0x51eac7[_0x4f39cd(0x135)](emptyConfig);return _0x384567;}export function writeProjectsConfig(_0x49f123){const _0x4325cd=_0x56e2,_0x2b3705={'KprNJ':function(_0x50373d){return _0x50373d();},'YEDBw':function(_0x142eec,_0x4b9b4e){return _0x142eec(_0x4b9b4e);},'BkEmJ':function(_0x47cd43,_0x402a10,_0x1dee22){return _0x47cd43(_0x402a10,_0x1dee22);}},_0x30a04f=_0x2b3705['KprNJ'](getProjectsConfigPath),_0x281c92=_0x2b3705[_0x4325cd(0x12a)](dirname,_0x30a04f);!existsSync(_0x281c92)&&_0x2b3705['BkEmJ'](mkdirSync,_0x281c92,{'recursive':!![]});const _0x10af03=_0x30a04f+'.'+process['pid']+'.'+Date[_0x4325cd(0x120)]()+'.tmp',_0x5a59ee=JSON[_0x4325cd(0x112)](_0x49f123,null,0x2)+'\x0a';try{writeFileSync(_0x10af03,_0x5a59ee,{'encoding':_0x4325cd(0x128),'mode':0x180}),renameSync(_0x10af03,_0x30a04f);}catch(_0x391219){try{existsSync(_0x10af03)&&unlinkSync(_0x10af03);}catch{}throw _0x391219;}}export function readProfileOverrides(_0xa7b27a,_0x47dae7){const _0x3bbe84=_0x56e2,_0x59db6d=readProjectsConfig(),_0x5e3103=_0x59db6d['projects'][_0xa7b27a];if(!_0x5e3103||!_0x5e3103[_0x3bbe84(0x11c)])return null;const _0x570590=_0x5e3103[_0x3bbe84(0x11c)][_0x47dae7];if(!_0x570590||!_0x570590['settings'])return null;return _0x570590[_0x3bbe84(0x12e)]??null;}export function setProfileOverride(_0x363bbd,_0x53ca3c,_0x4dbfcf,_0x4f4c25){const _0xc66198=_0x56e2,_0x4b58e2={'BioMs':function(_0x249fb8){return _0x249fb8();},'YKSUh':function(_0x57a909,_0x43d698){return _0x57a909(_0x43d698);}};if(!_0x4dbfcf)throw new Error('keyPath\x20is\x20required');const _0x1965b7=_0x4b58e2[_0xc66198(0x11e)](readProjectsConfig),_0xf92453=_0x1965b7[_0xc66198(0x133)][_0x363bbd]??={},_0x5098bc=_0xf92453[_0xc66198(0x11c)]??={},_0xe9a5e4=_0x5098bc[_0x53ca3c]??={},_0x54cc7e=_0xe9a5e4[_0xc66198(0x12e)]??={};setByKeyPath(_0x54cc7e,_0x4dbfcf,_0x4f4c25),_0x4b58e2[_0xc66198(0x137)](writeProjectsConfig,_0x1965b7);}export function unsetProfileOverride(_0x821b63,_0x4572b6,_0x1ade27){const _0x34e955=_0x56e2,_0x120577={'JrBPc':_0x34e955(0x116),'hAddZ':function(_0x23bfc9){return _0x23bfc9();}};if(!_0x1ade27)throw new Error(_0x120577['JrBPc']);const _0x90a87b=_0x120577['hAddZ'](readProjectsConfig),_0x4660a0=_0x90a87b[_0x34e955(0x133)][_0x821b63];if(!_0x4660a0?.[_0x34e955(0x11c)])return![];const _0x3e1276=_0x4660a0[_0x34e955(0x11c)][_0x4572b6];if(!_0x3e1276?.[_0x34e955(0x12e)])return![];const _0x4848ab=deleteByKeyPath(_0x3e1276['settings'],_0x1ade27);if(!_0x4848ab)return![];return writeProjectsConfig(_0x90a87b),!![];}function _0x21f2(){const _0x5926d9=['108NEkxKV','1746252itMsYl','622FTIQGY','split','headers','YjhJa','stringify','length',').\x20Ignoring\x20local\x20profile\x20overrides.','.\x20Ignoring\x20local\x20profile\x20overrides.','keyPath\x20is\x20required','2146605LuyBIG','2966838VNXjCP','DyPei','386768hLELEz','3951MCJeEP','profiles','entries','BioMs','8019860vGrYEO','now','7NXEYHL','98835njRmPX','OLLKW','QoBYI','[ranger]\x20Warning:\x20','message','warn','utf-8','cjkSZ','YEDBw','object','lastProfile','YCRZF','settings','rOOLj','dOyLy','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','yuWRW','projects','isArray','dmTJO','parse','YKSUh'];_0x21f2=function(){return _0x5926d9;};return _0x21f2();}export function resetProfileOverrides(_0x3d9655,_0x3cf724){const _0x42afb9=_0x56e2,_0x11bca1={'ayoQu':function(_0x59e459,_0x3d2fe4){return _0x59e459 in _0x3d2fe4;},'OGVol':function(_0x272de4,_0x200def){return _0x272de4(_0x200def);}},_0x104b58=readProjectsConfig(),_0x244100=_0x104b58[_0x42afb9(0x133)][_0x3d9655];if(!_0x244100?.[_0x42afb9(0x11c)])return;if(!_0x11bca1['ayoQu'](_0x3cf724,_0x244100['profiles']))return;delete _0x244100['profiles'][_0x3cf724],Object['keys'](_0x244100[_0x42afb9(0x11c)])[_0x42afb9(0x113)]===0x0&&(!_0x244100[_0x42afb9(0x12c)]?delete _0x104b58[_0x42afb9(0x133)][_0x3d9655]:_0x244100['profiles']={}),_0x11bca1['OGVol'](writeProjectsConfig,_0x104b58);}export function readLastProfile(_0x35664d){const _0x300081={'kVBDp':function(_0x15f2e3){return _0x15f2e3();}},_0x3ef6ed=_0x300081['kVBDp'](readProjectsConfig),_0x151ec3=_0x3ef6ed['projects'][_0x35664d];return _0x151ec3?.['lastProfile']??null;}export function writeLastProfile(_0x397f7d,_0xe81a9a){const _0x45522d=_0x56e2,_0x5316be={'YCRZF':function(_0x41fbfc,_0x524b23){return _0x41fbfc(_0x524b23);}},_0x58f539=readProjectsConfig(),_0x1f3cc4=_0x58f539['projects'][_0x397f7d]??={};_0x1f3cc4['lastProfile']=_0xe81a9a,_0x5316be[_0x45522d(0x12d)](writeProjectsConfig,_0x58f539);}export function clearLastProfile(_0x598cf8,_0x17522d){const _0x2e9ccf=_0x56e2,_0x1af67e={'cjkSZ':function(_0x25d4fb){return _0x25d4fb();},'pazFb':function(_0x50d600,_0x4b3167){return _0x50d600!==_0x4b3167;},'cattl':function(_0x1472c0,_0x1ad8f0){return _0x1472c0===_0x1ad8f0;}},_0x58e7e3=_0x1af67e[_0x2e9ccf(0x129)](readProjectsConfig),_0x1d1040=_0x58e7e3['projects'][_0x598cf8];if(!_0x1d1040||_0x1af67e['pazFb'](_0x1d1040['lastProfile'],_0x17522d))return![];return delete _0x1d1040['lastProfile'],(!_0x1d1040['profiles']||_0x1af67e['cattl'](Object['keys'](_0x1d1040['profiles'])[_0x2e9ccf(0x113)],0x0))&&delete _0x58e7e3[_0x2e9ccf(0x133)][_0x598cf8],writeProjectsConfig(_0x58e7e3),!![];}export function mergeCloudProfileSettings(_0x5dc912,_0x6e2a9e){const _0x3aba7c=_0x56e2,_0x139ae7={'QoBYI':function(_0x24092f,_0x4c88a3){return _0x24092f??_0x4c88a3;},'lESfg':function(_0x2fc6e5,_0x2e9d17){return _0x2fc6e5===_0x2e9d17;},'rOOLj':function(_0x76415f,_0x2c50b8){return _0x76415f===_0x2c50b8;},'YggDZ':'setupHeaders','UrDHe':function(_0x166aed,_0x630654){return _0x166aed(_0x630654);}},_0x187398={..._0x139ae7[_0x3aba7c(0x124)](_0x5dc912,{})};if(!_0x6e2a9e)return _0x187398;for(const [_0x4f74d3,_0x328a4f]of Object[_0x3aba7c(0x11d)](_0x6e2a9e)){if(_0x328a4f===undefined)continue;if(_0x328a4f===null){delete _0x187398[_0x4f74d3];continue;}if(_0x139ae7['lESfg'](_0x4f74d3,_0x3aba7c(0x110))||_0x139ae7[_0x3aba7c(0x12f)](_0x4f74d3,_0x139ae7['YggDZ'])){const _0x3dc5a6=_0x139ae7['UrDHe'](asRecord,_0x187398[_0x4f74d3])??{},_0x7634c7=asRecord(_0x328a4f);if(!_0x7634c7){_0x187398[_0x4f74d3]=_0x328a4f;continue;}const _0x4a2498={..._0x3dc5a6};for(const [_0x4f191f,_0x476c20]of Object[_0x3aba7c(0x11d)](_0x7634c7)){if(_0x476c20===null)delete _0x4a2498[_0x4f191f];else _0x476c20!==undefined&&(_0x4a2498[_0x4f191f]=_0x476c20);}_0x187398[_0x4f74d3]=_0x4a2498;continue;}_0x187398[_0x4f74d3]=_0x328a4f;}return _0x187398;}function asRecord(_0x47ab23){const _0x2263b0=_0x56e2;return _0x47ab23&&typeof _0x47ab23===_0x2263b0(0x12b)&&!Array[_0x2263b0(0x134)](_0x47ab23)?_0x47ab23:undefined;}function _0x56e2(_0x5c130a,_0x3693c8){_0x5c130a=_0x5c130a-0x10c;const _0x21f272=_0x21f2();let _0x56e287=_0x21f272[_0x5c130a];return _0x56e287;}function setByKeyPath(_0x28be58,_0x5859e5,_0x16e304){const _0x9bf7a0=_0x56e2,_0x103259={'mnRHb':_0x9bf7a0(0x12b),'cQrsw':function(_0x656ad8,_0x1d5ff6){return _0x656ad8-_0x1d5ff6;}},_0x34322b=_0x5859e5['split']('.');let _0xf82427=_0x28be58;for(let _0x571616=0x0;_0x571616<_0x34322b['length']-0x1;_0x571616++){const _0x45dc91=_0x34322b[_0x571616],_0x52b027=_0xf82427[_0x45dc91];(!_0x52b027||typeof _0x52b027!==_0x103259['mnRHb']||Array[_0x9bf7a0(0x134)](_0x52b027))&&(_0xf82427[_0x45dc91]={}),_0xf82427=_0xf82427[_0x45dc91];}_0xf82427[_0x34322b[_0x103259['cQrsw'](_0x34322b['length'],0x1)]]=_0x16e304;}function deleteByKeyPath(_0xb062fa,_0x7f01de){const _0x6bd1f=_0x56e2,_0x1877c0={'OLLKW':function(_0x5ceeb2,_0x6b58f7){return _0x5ceeb2-_0x6b58f7;},'MIsyk':function(_0x5d0fb6,_0x2bf2c5){return _0x5d0fb6!==_0x2bf2c5;},'dOyLy':function(_0x555568,_0xd9db45){return _0x555568 in _0xd9db45;}},_0x11844e=_0x7f01de[_0x6bd1f(0x10f)]('.');let _0x2ef93c=_0xb062fa;for(let _0x3c8843=0x0;_0x3c8843<_0x1877c0[_0x6bd1f(0x123)](_0x11844e[_0x6bd1f(0x113)],0x1);_0x3c8843++){const _0x1d38f6=_0x11844e[_0x3c8843],_0x3a5a18=_0x2ef93c[_0x1d38f6];if(!_0x3a5a18||_0x1877c0['MIsyk'](typeof _0x3a5a18,_0x6bd1f(0x12b))||Array[_0x6bd1f(0x134)](_0x3a5a18))return![];_0x2ef93c=_0x3a5a18;}const _0x1c3f36=_0x11844e[_0x1877c0['OLLKW'](_0x11844e[_0x6bd1f(0x113)],0x1)];if(!_0x1877c0[_0x6bd1f(0x130)](_0x1c3f36,_0x2ef93c))return![];return delete _0x2ef93c[_0x1c3f36],!![];}
@@ -1 +1 @@
1
- (function(_0x598c63,_0x2e07fd){const _0x3652c7=_0xc26e,_0xb223bb=_0x598c63();while(!![]){try{const _0x386fae=parseInt(_0x3652c7(0xfd))/0x1*(-parseInt(_0x3652c7(0xff))/0x2)+-parseInt(_0x3652c7(0x100))/0x3*(-parseInt(_0x3652c7(0x103))/0x4)+-parseInt(_0x3652c7(0xfc))/0x5+parseInt(_0x3652c7(0x104))/0x6*(-parseInt(_0x3652c7(0xfa))/0x7)+parseInt(_0x3652c7(0x107))/0x8*(-parseInt(_0x3652c7(0xfe))/0x9)+-parseInt(_0x3652c7(0xf8))/0xa+parseInt(_0x3652c7(0x10a))/0xb*(parseInt(_0x3652c7(0xf9))/0xc);if(_0x386fae===_0x2e07fd)break;else _0xb223bb['push'](_0xb223bb['shift']());}catch(_0x397af3){_0xb223bb['push'](_0xb223bb['shift']());}}}(_0x309b,0x4c264));import{readFile}from'fs/promises';function _0x309b(){const _0x550e51=['string','1382530IYkxMc','1VNJBpk','36klLroX','450382JkLoTW','156YQvUQe','config.json','TnVyS','28784YqYcms','372SHdznx','parse','JLRwy','574104DPwztR','mfuPB','message','449614KTnFyi','isArray','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','model','3276930HTgDwN','444UDBNCI','51730hoEcuM'];_0x309b=function(){return _0x550e51;};return _0x309b();}import{existsSync}from'fs';function _0xc26e(_0x210755,_0x429831){_0x210755=_0x210755-0xf6;const _0x309b00=_0x309b();let _0xc26e0f=_0x309b00[_0x210755];return _0xc26e0f;}import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x28a29f=_0xc26e;return join(getRangerDir(),_0x28a29f(0x101));}export async function loadRangerConfig(){const _0x2c7ebd=_0xc26e,_0x5993cd={'TeLpP':function(_0x3578fe){return _0x3578fe();},'mfuPB':function(_0x3218be,_0x40b21e,_0x1895d5){return _0x3218be(_0x40b21e,_0x1895d5);},'HsRzE':'utf-8','JLRwy':function(_0x5947f7,_0x461c36){return _0x5947f7!==_0x461c36;},'imfxW':'object','TnVyS':function(_0x1b330c,_0xcef08e){return _0x1b330c instanceof _0xcef08e;},'eEgDs':function(_0x47d092,_0x58deba){return _0x47d092(_0x58deba);}},_0x2edb47=_0x5993cd['TeLpP'](getRangerConfigPath);if(!existsSync(_0x2edb47))return{};try{const _0x10dbc2=await _0x5993cd[_0x2c7ebd(0x108)](readFile,_0x2edb47,_0x5993cd['HsRzE']),_0x17971b=JSON[_0x2c7ebd(0x105)](_0x10dbc2);if(!_0x17971b||_0x5993cd[_0x2c7ebd(0x106)](typeof _0x17971b,_0x5993cd['imfxW'])||Array[_0x2c7ebd(0x10b)](_0x17971b))return{};const _0x37180d={},_0x286cef=_0x17971b[_0x2c7ebd(0xf7)];return typeof _0x286cef===_0x2c7ebd(0xfb)&&(_0x37180d['model']=_0x286cef),_0x37180d;}catch(_0x9ffe2e){const _0x48cd45=_0x5993cd[_0x2c7ebd(0x102)](_0x9ffe2e,Error)?_0x9ffe2e[_0x2c7ebd(0x109)]:_0x5993cd['eEgDs'](String,_0x9ffe2e);return console['warn'](_0x2c7ebd(0xf6)+_0x2edb47+':\x20'+_0x48cd45),{};}}
1
+ (function(_0x2aaf67,_0x5dc101){const _0x577213=_0x5020,_0x4c042a=_0x2aaf67();while(!![]){try{const _0x11ac44=parseInt(_0x577213(0x134))/0x1+-parseInt(_0x577213(0x12f))/0x2*(-parseInt(_0x577213(0x12d))/0x3)+-parseInt(_0x577213(0x127))/0x4*(parseInt(_0x577213(0x135))/0x5)+parseInt(_0x577213(0x129))/0x6*(parseInt(_0x577213(0x128))/0x7)+-parseInt(_0x577213(0x12b))/0x8*(parseInt(_0x577213(0x130))/0x9)+-parseInt(_0x577213(0x12a))/0xa+-parseInt(_0x577213(0x126))/0xb*(-parseInt(_0x577213(0x133))/0xc);if(_0x11ac44===_0x5dc101)break;else _0x4c042a['push'](_0x4c042a['shift']());}catch(_0x450b07){_0x4c042a['push'](_0x4c042a['shift']());}}}(_0x44ee,0x909e2));import{readFile}from'fs/promises';import{existsSync}from'fs';function _0x44ee(){const _0x533314=['parse','AoEEI','11KUyQBL','8dYyrKa','7RZifWm','2690598dglccA','9249020lMYbrg','5047352snHBsd','warn','335619NtgIKI','EdvbH','10EDbpPu','9YCALRJ','message','model','7129548aDsBYm','646236hnQOmc','249970jsdmMf','wSRGs'];_0x44ee=function(){return _0x533314;};return _0x44ee();}import{join}from'path';function _0x5020(_0xae2f9e,_0x10c157){_0xae2f9e=_0xae2f9e-0x126;const _0x44eedf=_0x44ee();let _0x5020e9=_0x44eedf[_0xae2f9e];return _0x5020e9;}import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x59eb86={'xXEmR':function(_0x232a18){return _0x232a18();}};return join(_0x59eb86['xXEmR'](getRangerDir),'config.json');}export async function loadRangerConfig(){const _0x4a5ffb=_0x5020,_0x208fa0={'wSRGs':function(_0x2e5fca,_0x1a5e5a){return _0x2e5fca(_0x1a5e5a);},'EdvbH':function(_0x3e8b77,_0x446085){return _0x3e8b77!==_0x446085;},'AoEEI':'object'},_0x43ab53=getRangerConfigPath();if(!_0x208fa0['wSRGs'](existsSync,_0x43ab53))return{};try{const _0x232352=await readFile(_0x43ab53,'utf-8'),_0xdf78e2=JSON[_0x4a5ffb(0x137)](_0x232352);if(!_0xdf78e2||_0x208fa0[_0x4a5ffb(0x12e)](typeof _0xdf78e2,_0x208fa0[_0x4a5ffb(0x138)])||Array['isArray'](_0xdf78e2))return{};const _0x1186aa={},_0x386c80=_0xdf78e2['model'];return typeof _0x386c80==='string'&&(_0x1186aa[_0x4a5ffb(0x132)]=_0x386c80),_0x1186aa;}catch(_0x45af69){const _0x43985f=_0x45af69 instanceof Error?_0x45af69[_0x4a5ffb(0x131)]:_0x208fa0[_0x4a5ffb(0x136)](String,_0x45af69);return console[_0x4a5ffb(0x12c)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x43ab53+':\x20'+_0x43985f),{};}}
@@ -1 +1 @@
1
- (function(_0x12a918,_0x3063ac){const _0x4e28bf=_0x5bd4,_0x2ff309=_0x12a918();while(!![]){try{const _0x2af640=parseInt(_0x4e28bf(0x1aa))/0x1*(-parseInt(_0x4e28bf(0x1a2))/0x2)+parseInt(_0x4e28bf(0x19e))/0x3*(-parseInt(_0x4e28bf(0x194))/0x4)+-parseInt(_0x4e28bf(0x19c))/0x5*(parseInt(_0x4e28bf(0x19f))/0x6)+-parseInt(_0x4e28bf(0x192))/0x7*(parseInt(_0x4e28bf(0x193))/0x8)+parseInt(_0x4e28bf(0x19b))/0x9*(-parseInt(_0x4e28bf(0x1a7))/0xa)+parseInt(_0x4e28bf(0x1a6))/0xb*(-parseInt(_0x4e28bf(0x19a))/0xc)+-parseInt(_0x4e28bf(0x1a5))/0xd*(-parseInt(_0x4e28bf(0x1ab))/0xe);if(_0x2af640===_0x3063ac)break;else _0x2ff309['push'](_0x2ff309['shift']());}catch(_0x11492f){_0x2ff309['push'](_0x2ff309['shift']());}}}(_0x113e,0x74647));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x5b8edd=_0x5bd4,_0x6c1ca={'HVpzV':function(_0x3e20ff,_0x1345d7){return _0x3e20ff!==_0x1345d7;},'rLjLR':function(_0x24f089,_0x378944){return _0x24f089(_0x378944);},'dtUZj':'.ranger','fAeKa':function(_0x26f487,_0x45a44d){return _0x26f487(_0x45a44d);},'ACcKD':function(_0x5639bd,_0x56ab58,_0x5d5f5a){return _0x5639bd(_0x56ab58,_0x5d5f5a);}};let _0x5dc460=process['cwd']();const _0x4a30b4=parse(_0x5dc460)['root'];while(_0x6c1ca[_0x5b8edd(0x198)](_0x5dc460,_0x4a30b4)){if(_0x6c1ca['rLjLR'](existsSync,join(_0x5dc460,_0x6c1ca['dtUZj'])))return _0x5dc460;_0x5dc460=dirname(_0x5dc460);}if(_0x6c1ca['fAeKa'](existsSync,_0x6c1ca['ACcKD'](join,_0x4a30b4,_0x6c1ca[_0x5b8edd(0x195)])))return _0x4a30b4;const _0x94997e=findGitRoot();if(_0x94997e)return _0x94997e;return process['cwd']();}export function getRangerDir(){const _0x3cf0c9=_0x5bd4,_0x2ce966={'UXMhX':function(_0x5531df,_0x9dbea7,_0xf5e93c){return _0x5531df(_0x9dbea7,_0xf5e93c);},'DlVKr':function(_0x358118){return _0x358118();},'jVHAh':_0x3cf0c9(0x1a4)};return _0x2ce966[_0x3cf0c9(0x197)](join,_0x2ce966[_0x3cf0c9(0x1a9)](getRangerRoot),_0x2ce966[_0x3cf0c9(0x19d)]);}function _0x5bd4(_0x153447,_0x57cdd3){_0x153447=_0x153447-0x191;const _0x113e2b=_0x113e();let _0x5bd484=_0x113e2b[_0x153447];return _0x5bd484;}function _0x113e(){const _0x15722f=['jVHAh','3GeOaSg','7620zGswTi','.git','nfUwr','8570aKXtAk','vAwIg','.ranger','26OdmPih','384494FbTUuS','10fkiWAN','bAqBP','DlVKr','157LgvZkJ','18528594XYMCMJ','JhwhT','198135vwvybJ','8kmyXdt','1674168qcFhQI','dtUZj','SsFHW','UXMhX','HVpzV','WRPsT','12LbbBjo','8306487wTSSnt','365XAsTEw'];_0x113e=function(){return _0x15722f;};return _0x113e();}export function findGitRoot(){const _0xa3d103=_0x5bd4,_0x20d7c4={'SsFHW':function(_0x6192bb,_0x3af197){return _0x6192bb(_0x3af197);},'JhwhT':function(_0x3b9319,_0x4b84b9){return _0x3b9319!==_0x4b84b9;},'dFzSW':function(_0x5f2252,_0x5485c9,_0x82f6f9){return _0x5f2252(_0x5485c9,_0x82f6f9);},'vAwIg':_0xa3d103(0x1a0)};let _0x3dd44c=process['cwd']();const _0x2b9923=_0x20d7c4[_0xa3d103(0x196)](parse,_0x3dd44c)['root'];while(_0x20d7c4[_0xa3d103(0x191)](_0x3dd44c,_0x2b9923)){if(existsSync(_0x20d7c4['dFzSW'](join,_0x3dd44c,_0x20d7c4[_0xa3d103(0x1a3)])))return _0x3dd44c;_0x3dd44c=dirname(_0x3dd44c);}if(existsSync(join(_0x2b9923,_0x20d7c4['vAwIg'])))return _0x2b9923;return null;}export function getRangerHomeDir(){const _0xa7bff7=_0x5bd4,_0x20e788={'WRPsT':function(_0x3e5474,_0x5a398b,_0x4e4725){return _0x3e5474(_0x5a398b,_0x4e4725);},'bAqBP':function(_0x197002){return _0x197002();},'nfUwr':_0xa7bff7(0x1a4)};return _0x20e788[_0xa7bff7(0x199)](join,_0x20e788[_0xa7bff7(0x1a8)](homedir),_0x20e788[_0xa7bff7(0x1a1)]);}
1
+ (function(_0x2a0a08,_0x3a3043){const _0x27ea02=_0x3d9e,_0x1612d2=_0x2a0a08();while(!![]){try{const _0x491117=-parseInt(_0x27ea02(0xa0))/0x1+-parseInt(_0x27ea02(0xa4))/0x2*(parseInt(_0x27ea02(0x9e))/0x3)+parseInt(_0x27ea02(0xa7))/0x4*(-parseInt(_0x27ea02(0x9f))/0x5)+parseInt(_0x27ea02(0xa6))/0x6+parseInt(_0x27ea02(0x9b))/0x7+-parseInt(_0x27ea02(0xa1))/0x8*(-parseInt(_0x27ea02(0xa8))/0x9)+parseInt(_0x27ea02(0x9a))/0xa*(parseInt(_0x27ea02(0x9c))/0xb);if(_0x491117===_0x3a3043)break;else _0x1612d2['push'](_0x1612d2['shift']());}catch(_0x224b16){_0x1612d2['push'](_0x1612d2['shift']());}}}(_0x47f8,0x7aaf1));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x424b20=_0x3d9e,_0x2c6702={'nUAPe':'.ranger','vtkuN':function(_0x3e589e,_0x2ced8e){return _0x3e589e(_0x2ced8e);},'nwlqo':function(_0x1453dc,_0x16cf97){return _0x1453dc(_0x16cf97);},'FLRQz':function(_0x5d7076,_0x749248,_0x572d26){return _0x5d7076(_0x749248,_0x572d26);},'DHRCV':function(_0x44cd00){return _0x44cd00();}};let _0x46b6d2=process['cwd']();const _0x358302=parse(_0x46b6d2)[_0x424b20(0xa9)];while(_0x46b6d2!==_0x358302){if(existsSync(join(_0x46b6d2,_0x2c6702['nUAPe'])))return _0x46b6d2;_0x46b6d2=_0x2c6702[_0x424b20(0xa3)](dirname,_0x46b6d2);}if(_0x2c6702[_0x424b20(0xa5)](existsSync,_0x2c6702[_0x424b20(0xa2)](join,_0x358302,_0x424b20(0xaa))))return _0x358302;const _0x18a192=_0x2c6702['DHRCV'](findGitRoot);if(_0x18a192)return _0x18a192;return process['cwd']();}function _0x47f8(){const _0x4a59f5=['70oYXoRe','6961717jTZbwT','75713dUgyWq','cwd','3ZzHhdq','9805tjELFp','838638XRFspS','790968tgFCUh','FLRQz','vtkuN','419262NPuFSo','nwlqo','3383610BHggtF','1324hDtQFD','54XVDvEm','root','.ranger'];_0x47f8=function(){return _0x4a59f5;};return _0x47f8();}function _0x3d9e(_0x50050b,_0x12d953){_0x50050b=_0x50050b-0x9a;const _0x47f868=_0x47f8();let _0x3d9e57=_0x47f868[_0x50050b];return _0x3d9e57;}export function getRangerDir(){const _0x14c414={'cdroR':function(_0x5b32e1,_0x49c822,_0x1a4444){return _0x5b32e1(_0x49c822,_0x1a4444);}};return _0x14c414['cdroR'](join,getRangerRoot(),'.ranger');}export function findGitRoot(){const _0x350d78=_0x3d9e,_0x4a7847={'HEsbX':'.git'};let _0x3815c2=process[_0x350d78(0x9d)]();const _0x2ad56b=parse(_0x3815c2)[_0x350d78(0xa9)];while(_0x3815c2!==_0x2ad56b){if(existsSync(join(_0x3815c2,_0x4a7847['HEsbX'])))return _0x3815c2;_0x3815c2=dirname(_0x3815c2);}if(existsSync(join(_0x2ad56b,_0x4a7847['HEsbX'])))return _0x2ad56b;return null;}export function getRangerHomeDir(){const _0x50ce2f=_0x3d9e,_0x515283={'VGDeH':function(_0x3dd8a3){return _0x3dd8a3();},'FCvyC':_0x50ce2f(0xaa)};return join(_0x515283['VGDeH'](homedir),_0x515283['FCvyC']);}
@@ -1 +1 @@
1
- const _0x1f3704=_0xf903;(function(_0x53420e,_0x37014a){const _0x3f3bde=_0xf903,_0x26fe7e=_0x53420e();while(!![]){try{const _0x3c8d3c=parseInt(_0x3f3bde(0x1c8))/0x1*(parseInt(_0x3f3bde(0x1d2))/0x2)+parseInt(_0x3f3bde(0x1d4))/0x3+parseInt(_0x3f3bde(0x1c7))/0x4+-parseInt(_0x3f3bde(0x1e3))/0x5*(-parseInt(_0x3f3bde(0x1db))/0x6)+parseInt(_0x3f3bde(0x1c6))/0x7*(-parseInt(_0x3f3bde(0x1de))/0x8)+parseInt(_0x3f3bde(0x1d9))/0x9*(-parseInt(_0x3f3bde(0x1e1))/0xa)+-parseInt(_0x3f3bde(0x1c2))/0xb;if(_0x3c8d3c===_0x37014a)break;else _0x26fe7e['push'](_0x26fe7e['shift']());}catch(_0x25866){_0x26fe7e['push'](_0x26fe7e['shift']());}}}(_0x387e,0x45a39));import{spawn}from'child_process';function _0x387e(){const _0x180577=['469uQdXUE','591084bHUzSr','391532mwlgoS','close','artifactDir','SIGTERM','commandArgs','string','\x20does\x20not\x20expose\x20a\x20','\x0astderr:\x20','data','object','2WtKEoD','kill','1133919fyZgbV','argv','stdout','assign','null','14481AXDuON','command','1517952qJUHPX','bin','rangerwright','3856ODDalK','\x20binary','package.json','1930HdfrMN','XToAI','5RPgAeh','resolve','\x20--json','rangerwright-cli\x20','5964156aHYdeB','PfqDo','lOEPP','timeoutMs'];_0x387e=function(){return _0x180577;};return _0x387e();}import{createRequire}from'module';import{dirname,join}from'path';function _0xf903(_0x4a4c50,_0x22cdae){_0x4a4c50=_0x4a4c50-0x1bf;const _0x387e85=_0x387e();let _0xf90333=_0x387e85[_0x4a4c50];return _0xf90333;}import{readFileSync}from'fs';import{quoteShellArg}from'./playwrightCli.js';export const RANGERWRIGHT_CLI_PACKAGE='@ranger-testing/rangerwright';export const RANGERWRIGHT_CLI_BINARY=_0x1f3704(0x1dd);function readPackageJson(_0x1f9272){const _0x20abc8=_0x1f3704,_0x4aaac4=readFileSync(_0x1f9272,'utf-8'),_0x4bf764=JSON['parse'](_0x4aaac4);if(!_0x4bf764||typeof _0x4bf764!==_0x20abc8(0x1d1))return{};return _0x4bf764;}export function resolveRangerwrightCliBinary(){const _0x3514bb=_0x1f3704,_0x5c7f34={'JUNvZ':function(_0x59558d,_0x33a77f){return _0x59558d(_0x33a77f);},'WnalH':function(_0xdc1c55,_0x186add,_0x2b297d){return _0xdc1c55(_0x186add,_0x2b297d);}},_0x596e06=createRequire(process[_0x3514bb(0x1d5)][0x1]||join(process['cwd'](),_0x3514bb(0x1e0))),_0x2baf27=_0x596e06[_0x3514bb(0x1bf)](RANGERWRIGHT_CLI_PACKAGE+'/package.json'),_0x1e55df=dirname(_0x2baf27),_0x25eb68=_0x5c7f34['JUNvZ'](readPackageJson,_0x2baf27),_0x1f2685=typeof _0x25eb68['bin']===_0x3514bb(0x1cd)?_0x25eb68['bin']:_0x25eb68[_0x3514bb(0x1dc)]?.[RANGERWRIGHT_CLI_BINARY];if(!_0x1f2685)throw new Error(RANGERWRIGHT_CLI_PACKAGE+_0x3514bb(0x1ce)+RANGERWRIGHT_CLI_BINARY+_0x3514bb(0x1df));return _0x5c7f34['WnalH'](join,_0x1e55df,_0x1f2685);}export function buildRangerwrightCliEnv(_0x485026){const _0x886d8a=_0x1f3704;return{'RANGERWRIGHT_SESSION':_0x485026['sessionId'],'RANGERWRIGHT_CONFIG':_0x485026['configPath'],'RANGERWRIGHT_ARTIFACT_DIR':_0x485026[_0x886d8a(0x1ca)],..._0x485026['socketPath']?{'RANGERWRIGHT_SOCKET_PATH':_0x485026['socketPath']}:{}};}export function applyRangerwrightCliEnv(_0x37d6f6,_0x193acb){const _0x17201b=_0x1f3704,_0x1ca2c6={'lbfrh':function(_0x5d4e70,_0x22f2ff){return _0x5d4e70(_0x22f2ff);}};Object[_0x17201b(0x1d7)](_0x37d6f6,_0x1ca2c6['lbfrh'](buildRangerwrightCliEnv,_0x193acb));}export function buildRangerwrightCliCommandPrefix(_0x35576a=resolveRangerwrightCliBinary()){const _0x4314f3=_0x1f3704;return quoteShellArg(_0x35576a)+_0x4314f3(0x1c0);}function getRangerwrightSubcommand(_0x17ff7a){return _0x17ff7a[0x0]??'unknown';}export function buildRangerwrightCliInvocation(_0x5e3529,_0x404d95){const _0x4b38f7={'wkZNU':function(_0x49f78d,_0x3122c3){return _0x49f78d(_0x3122c3);}},_0x173798=_0x5e3529['binaryPath']??resolveRangerwrightCliBinary(),_0x3d6e72=['--json',..._0x404d95];return{'command':_0x173798,'args':_0x3d6e72,'shellCommand':[quoteShellArg(_0x173798),'--json',..._0x404d95['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x4b38f7['wkZNU'](getRangerwrightSubcommand,_0x404d95)};}function truncateOutput(_0x34ecee,_0x14b189=0x7d0){return _0x34ecee['length']>_0x14b189?_0x34ecee['slice'](0x0,_0x14b189)+'...':_0x34ecee;}export async function runRangerwrightCliCommand(_0x22ee55){const _0xe17656=_0x1f3704,_0x4ecb65={'NqIpB':function(_0x2ff87a,_0x35052f,_0x404625,_0x211564){return _0x2ff87a(_0x35052f,_0x404625,_0x211564);},'kKsoD':'pipe','lOEPP':function(_0x73918c,_0x363b43){return _0x73918c>_0x363b43;},'PfqDo':function(_0xb73670,_0x389f72,_0x115bb6){return _0xb73670(_0x389f72,_0x115bb6);},'VshXf':_0xe17656(0x1c9),'pqwTc':function(_0x3cd351,_0x9d8b62){return _0x3cd351(_0x9d8b62);}},_0x2ec937=_0x4ecb65['PfqDo'](buildRangerwrightCliInvocation,_0x22ee55,_0x22ee55[_0xe17656(0x1cc)]),_0xe5a121={..._0x22ee55['env']??process['env'],..._0x4ecb65['pqwTc'](buildRangerwrightCliEnv,_0x22ee55)};return new Promise((_0x637f74,_0x14a721)=>{const _0x40f2b5=_0xe17656,_0x130d8e={'XToAI':function(_0x33db06,_0x1eb0de,_0x278e77){return _0x33db06(_0x1eb0de,_0x278e77);},'fMQic':function(_0x377e97,_0x596db5){return _0x377e97(_0x596db5);},'TfAAS':function(_0x352255,_0x28b2dc){return _0x352255===_0x28b2dc;},'abdAP':_0x40f2b5(0x1d8)},_0x191b1b=_0x4ecb65['NqIpB'](spawn,_0x2ec937[_0x40f2b5(0x1da)],_0x2ec937['args'],{'cwd':_0x22ee55['cwd'],'env':_0xe5a121,'stdio':['ignore','pipe',_0x4ecb65['kKsoD']]});let _0x3a3bc1='',_0x3e2dcf='',_0x17c3f8=![];const _0x49dc24=_0x22ee55['timeoutMs']&&_0x4ecb65[_0x40f2b5(0x1c4)](_0x22ee55['timeoutMs'],0x0)?_0x4ecb65[_0x40f2b5(0x1c3)](setTimeout,()=>{const _0x84a5fe=_0x40f2b5;_0x17c3f8=!![],_0x191b1b[_0x84a5fe(0x1d3)](_0x84a5fe(0x1cb)),_0x130d8e[_0x84a5fe(0x1e2)](setTimeout,()=>{const _0x3a1e7a=_0x84a5fe;try{_0x191b1b[_0x3a1e7a(0x1d3)]('SIGKILL');}catch{}},0x3e8);},_0x22ee55['timeoutMs']):null;_0x191b1b[_0x40f2b5(0x1d6)]?.['on'](_0x40f2b5(0x1d0),_0x122baa=>{_0x3a3bc1+=_0x122baa['toString']();}),_0x191b1b['stderr']?.['on'](_0x40f2b5(0x1d0),_0x35a10a=>{_0x3e2dcf+=_0x35a10a['toString']();}),_0x191b1b['on']('error',_0x21a14a=>{if(_0x49dc24)_0x130d8e['fMQic'](clearTimeout,_0x49dc24);_0x14a721(_0x21a14a);}),_0x191b1b['on'](_0x4ecb65['VshXf'],(_0x4c674d,_0x35c9f9)=>{const _0x17638b=_0x40f2b5;if(_0x49dc24)clearTimeout(_0x49dc24);if(_0x130d8e['TfAAS'](_0x4c674d,0x0)){_0x130d8e['fMQic'](_0x637f74,{'stdout':_0x3a3bc1,'stderr':_0x3e2dcf,'invocation':_0x2ec937});return;}const _0x12ffd3=_0x17c3f8?'timed\x20out\x20after\x20'+_0x22ee55[_0x17638b(0x1c5)]+'ms':'exited\x20with\x20code='+(_0x4c674d??_0x130d8e['abdAP'])+'\x20signal='+(_0x35c9f9??_0x130d8e['abdAP']);_0x14a721(new Error(_0x17638b(0x1c1)+_0x2ec937['subcommand']+'\x20'+_0x12ffd3+'\x0astdout:\x20'+_0x130d8e['fMQic'](truncateOutput,_0x3a3bc1)+_0x17638b(0x1cf)+truncateOutput(_0x3e2dcf)));});});}export function parseRangerwrightCliCommand(_0x1d59ae){const _0x3ab9fa=_0x1d59ae['match'](/(?:^|\s)(?:"[^"]*rangerwright"|'[^']*rangerwright'|\S*rangerwright)(?:\s+--json)?\s+([a-z-]+)/);return _0x3ab9fa?.[0x1]??null;}
1
+ (function(_0x25f02c,_0x233a5a){const _0x5aecdf=_0x3969,_0x4d5e07=_0x25f02c();while(!![]){try{const _0x170d1e=-parseInt(_0x5aecdf(0x110))/0x1*(-parseInt(_0x5aecdf(0xf6))/0x2)+parseInt(_0x5aecdf(0x108))/0x3*(parseInt(_0x5aecdf(0x105))/0x4)+-parseInt(_0x5aecdf(0xf0))/0x5*(parseInt(_0x5aecdf(0x112))/0x6)+parseInt(_0x5aecdf(0x117))/0x7*(parseInt(_0x5aecdf(0xf3))/0x8)+-parseInt(_0x5aecdf(0xee))/0x9*(-parseInt(_0x5aecdf(0x100))/0xa)+parseInt(_0x5aecdf(0x101))/0xb*(parseInt(_0x5aecdf(0xf5))/0xc)+-parseInt(_0x5aecdf(0xfb))/0xd;if(_0x170d1e===_0x233a5a)break;else _0x4d5e07['push'](_0x4d5e07['shift']());}catch(_0x1a21a1){_0x4d5e07['push'](_0x4d5e07['shift']());}}}(_0xd9a7,0x63e69));import{spawn}from'child_process';import{createRequire}from'module';import{dirname,join}from'path';import{readFileSync}from'fs';function _0x3969(_0x350945,_0x175a94){_0x350945=_0x350945-0xeb;const _0xd9a752=_0xd9a7();let _0x39696f=_0xd9a752[_0x350945];return _0x39696f;}function _0xd9a7(){const _0x5eaf19=['\x0astderr:\x20','qRyGL','map','socketPath','parse','assign','slice','args','string','35541KZucug','bvmtc','3260JbNUbh','WlpQC','SIGTERM','17416YHXtTq','close','36HcKuYp','122YPHDcA','pipe','env','\x0astdout:\x20','--json','16227471DFefjO','subcommand','wbIxT','XVczV','timed\x20out\x20after\x20','1110GraVwC','2181311PFDrRr','command','UgNcI','SEIvf','20DCaTij','rangerwright-cli\x20','eJCJE','187287TMvwqZ','bin','MqVti','commandArgs','\x20does\x20not\x20expose\x20a\x20','error','data','timeoutMs','2591RmNWYv','/package.json','4152ZtvmCl','TKRKz','artifactDir','RLoCE','cwd','1946ayLBPB'];_0xd9a7=function(){return _0x5eaf19;};return _0xd9a7();}import{quoteShellArg}from'./playwrightCli.js';export const RANGERWRIGHT_CLI_PACKAGE='@ranger-testing/rangerwright';export const RANGERWRIGHT_CLI_BINARY='rangerwright';function readPackageJson(_0x4ff2bf){const _0x3e6db8=_0x3969,_0x475161={'WlpQC':'utf-8'},_0x8cb138=readFileSync(_0x4ff2bf,_0x475161[_0x3e6db8(0xf1)]),_0x481a10=JSON[_0x3e6db8(0x11c)](_0x8cb138);if(!_0x481a10||typeof _0x481a10!=='object')return{};return _0x481a10;}export function resolveRangerwrightCliBinary(){const _0x39de49=_0x3969,_0x3fd906={'FAzOf':function(_0x8c1bb6,_0x15bb56){return _0x8c1bb6(_0x15bb56);},'bvmtc':function(_0x5ac716,_0x4afe17){return _0x5ac716===_0x4afe17;},'GcCkU':function(_0x565276,_0x400a65,_0x9a4a5f){return _0x565276(_0x400a65,_0x9a4a5f);}},_0x4f0550=createRequire(process['argv'][0x1]||join(process[_0x39de49(0x116)](),'package.json')),_0xf4deb0=_0x4f0550['resolve'](RANGERWRIGHT_CLI_PACKAGE+_0x39de49(0x111)),_0xba849=_0x3fd906['FAzOf'](dirname,_0xf4deb0),_0x4a7220=readPackageJson(_0xf4deb0),_0x4cd737=_0x3fd906[_0x39de49(0xef)](typeof _0x4a7220[_0x39de49(0x109)],_0x39de49(0xed))?_0x4a7220['bin']:_0x4a7220[_0x39de49(0x109)]?.[RANGERWRIGHT_CLI_BINARY];if(!_0x4cd737)throw new Error(RANGERWRIGHT_CLI_PACKAGE+_0x39de49(0x10c)+RANGERWRIGHT_CLI_BINARY+'\x20binary');return _0x3fd906['GcCkU'](join,_0xba849,_0x4cd737);}export function buildRangerwrightCliEnv(_0xc8c975){const _0x5c86da=_0x3969;return{'RANGERWRIGHT_SESSION':_0xc8c975['sessionId'],'RANGERWRIGHT_CONFIG':_0xc8c975['configPath'],'RANGERWRIGHT_ARTIFACT_DIR':_0xc8c975[_0x5c86da(0x114)],..._0xc8c975['socketPath']?{'RANGERWRIGHT_SOCKET_PATH':_0xc8c975[_0x5c86da(0x11b)]}:{}};}export function applyRangerwrightCliEnv(_0x5ddad3,_0x346aa0){const _0x49cfe7=_0x3969;Object[_0x49cfe7(0x11d)](_0x5ddad3,buildRangerwrightCliEnv(_0x346aa0));}export function buildRangerwrightCliCommandPrefix(_0x366392=resolveRangerwrightCliBinary()){const _0xf518f6=_0x3969,_0x341750={'TKRKz':function(_0x3557b7,_0x59a482){return _0x3557b7(_0x59a482);}};return _0x341750[_0xf518f6(0x113)](quoteShellArg,_0x366392)+'\x20--json';}function getRangerwrightSubcommand(_0x46b1ed){const _0xf5da2b={'ZpKhK':'unknown'};return _0x46b1ed[0x0]??_0xf5da2b['ZpKhK'];}export function buildRangerwrightCliInvocation(_0x413dc9,_0x43ef2){const _0x3287c3=_0x3969,_0x44d75a={'NuKgE':function(_0x4b5e1d){return _0x4b5e1d();},'aGiVc':'--json'},_0x1225e2=_0x413dc9['binaryPath']??_0x44d75a['NuKgE'](resolveRangerwrightCliBinary),_0x1c708f=[_0x3287c3(0xfa),..._0x43ef2];return{'command':_0x1225e2,'args':_0x1c708f,'shellCommand':[quoteShellArg(_0x1225e2),_0x44d75a['aGiVc'],..._0x43ef2[_0x3287c3(0x11a)](quoteShellArg)]['join']('\x20'),'subcommand':getRangerwrightSubcommand(_0x43ef2)};}function truncateOutput(_0x5f3ead,_0x587849=0x7d0){const _0xb0441=_0x3969,_0x3776c4={'YQmOs':function(_0x4b3ba3,_0x268519){return _0x4b3ba3+_0x268519;}};return _0x5f3ead['length']>_0x587849?_0x3776c4['YQmOs'](_0x5f3ead[_0xb0441(0xeb)](0x0,_0x587849),'...'):_0x5f3ead;}export async function runRangerwrightCliCommand(_0x24abe2){const _0xa5541=_0x3969,_0x2fd021={'wbIxT':_0xa5541(0xf2),'qRyGL':function(_0x425e38,_0x59a3f1){return _0x425e38(_0x59a3f1);},'CbgJU':function(_0xa54027,_0x15c5e9){return _0xa54027(_0x15c5e9);},'rBYeG':_0xa5541(0xf7),'SEIvf':_0xa5541(0x10e),'nVUIj':_0xa5541(0x10d),'RLoCE':_0xa5541(0xf4)},_0x2a133e=buildRangerwrightCliInvocation(_0x24abe2,_0x24abe2[_0xa5541(0x10b)]),_0x36a33e={..._0x24abe2[_0xa5541(0xf8)]??process[_0xa5541(0xf8)],...buildRangerwrightCliEnv(_0x24abe2)};return new Promise((_0xac2076,_0x4732f4)=>{const _0xf649dd=_0xa5541,_0x4862c6={'UgNcI':function(_0x118f6e,_0x11ad33){return _0x118f6e(_0x11ad33);},'eJCJE':function(_0x5bffaf,_0x488360){return _0x5bffaf(_0x488360);},'jESrx':function(_0x5e85b8,_0x2c8d45){const _0x4dbc45=_0x3969;return _0x2fd021[_0x4dbc45(0x119)](_0x5e85b8,_0x2c8d45);},'MqVti':'null','XVczV':function(_0x2ccd5c,_0x4f79f5){return _0x2fd021['CbgJU'](_0x2ccd5c,_0x4f79f5);}},_0x143d2f=spawn(_0x2a133e[_0xf649dd(0x102)],_0x2a133e[_0xf649dd(0xec)],{'cwd':_0x24abe2[_0xf649dd(0x116)],'env':_0x36a33e,'stdio':['ignore','pipe',_0x2fd021['rBYeG']]});let _0x3fe61a='',_0x3bf9b1='',_0x12b236=![];const _0x2f6b06=_0x24abe2[_0xf649dd(0x10f)]&&_0x24abe2[_0xf649dd(0x10f)]>0x0?setTimeout(()=>{const _0x4ef583=_0xf649dd;_0x12b236=!![],_0x143d2f['kill'](_0x2fd021[_0x4ef583(0xfd)]),setTimeout(()=>{try{_0x143d2f['kill']('SIGKILL');}catch{}},0x3e8);},_0x24abe2[_0xf649dd(0x10f)]):null;_0x143d2f['stdout']?.['on']('data',_0x4354c5=>{_0x3fe61a+=_0x4354c5['toString']();}),_0x143d2f['stderr']?.['on'](_0x2fd021[_0xf649dd(0x104)],_0x1db828=>{_0x3bf9b1+=_0x1db828['toString']();}),_0x143d2f['on'](_0x2fd021['nVUIj'],_0x56cd97=>{const _0x25e1a9=_0xf649dd;if(_0x2f6b06)_0x4862c6[_0x25e1a9(0x103)](clearTimeout,_0x2f6b06);_0x4862c6[_0x25e1a9(0x107)](_0x4732f4,_0x56cd97);}),_0x143d2f['on'](_0x2fd021[_0xf649dd(0x115)],(_0x433585,_0x43cbc5)=>{const _0x502e87=_0xf649dd;if(_0x2f6b06)_0x4862c6['jESrx'](clearTimeout,_0x2f6b06);if(_0x433585===0x0){_0x4862c6[_0x502e87(0x107)](_0xac2076,{'stdout':_0x3fe61a,'stderr':_0x3bf9b1,'invocation':_0x2a133e});return;}const _0x203580=_0x12b236?_0x502e87(0xff)+_0x24abe2['timeoutMs']+'ms':'exited\x20with\x20code='+(_0x433585??_0x4862c6[_0x502e87(0x10a)])+'\x20signal='+(_0x43cbc5??_0x4862c6[_0x502e87(0x10a)]);_0x4862c6['jESrx'](_0x4732f4,new Error(_0x502e87(0x106)+_0x2a133e[_0x502e87(0xfc)]+'\x20'+_0x203580+_0x502e87(0xf9)+_0x4862c6['eJCJE'](truncateOutput,_0x3fe61a)+_0x502e87(0x118)+_0x4862c6[_0x502e87(0xfe)](truncateOutput,_0x3bf9b1)));});});}export function parseRangerwrightCliCommand(_0x275172){const _0x3e6a58=_0x275172['match'](/(?:^|\s)(?:"[^"]*rangerwright(?:\/build\/cli\.js)?"|'[^']*rangerwright(?:\/build\/cli\.js)?'|\S*rangerwright(?:\/build\/cli\.js)?)(?:\s+--json)?\s+([a-z-]+)/);return _0x3e6a58?.[0x1]??null;}