@ranger-testing/ranger-cli 3.1.6-alpha.aca5f9c-53 → 3.1.6

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 (86) 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/scenarioOriginCheck.js +1 -1
  71. package/build/commands/utils/sessionCache.js +1 -1
  72. package/build/commands/utils/settings.js +1 -1
  73. package/build/commands/utils/skillContent.js +1 -1
  74. package/build/commands/utils/skills.js +1 -1
  75. package/build/commands/utils/stitchWebmFiles.js +1 -1
  76. package/build/commands/utils/telemetry.js +1 -1
  77. package/build/commands/utils/tokenRefresh.js +1 -1
  78. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  79. package/build/commands/utils/tunnelClient.js +1 -1
  80. package/build/commands/utils/userApi.js +1 -1
  81. package/build/commands/utils/version.js +1 -1
  82. package/build/commands/verifyFeature.js +1 -1
  83. package/build/commands/verifyFeatureCli.js +1 -1
  84. package/build/commands/verifyFeatureNovaCli.js +1 -1
  85. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  86. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x170d92,_0x4b4d87){const _0x516c04=_0x1d53,_0x21b009=_0x170d92();while(!![]){try{const _0x43624b=parseInt(_0x516c04(0x21d))/0x1+parseInt(_0x516c04(0x1a4))/0x2+-parseInt(_0x516c04(0x1a8))/0x3+-parseInt(_0x516c04(0x1fc))/0x4*(-parseInt(_0x516c04(0x215))/0x5)+-parseInt(_0x516c04(0x1ee))/0x6+-parseInt(_0x516c04(0x199))/0x7+-parseInt(_0x516c04(0x22b))/0x8*(-parseInt(_0x516c04(0x1e5))/0x9);if(_0x43624b===_0x4b4d87)break;else _0x21b009['push'](_0x21b009['shift']());}catch(_0x1e0f7f){_0x21b009['push'](_0x21b009['shift']());}}}(_0x4784,0xc7bff));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='act';export const NOVA_ACT_CLI_UV_PACKAGE='nova-act[cli]';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(_0xd68477){const _0x7d75da=_0x1d53,_0x4b1e03={'qXGJl':function(_0x1f8071,_0x494f42){return _0x1f8071(_0x494f42);},'YIUjs':'sha256'},_0x444d72=_0x4b1e03['qXGJl'](createHash,_0x4b1e03[_0x7d75da(0x23e)])[_0x7d75da(0x1cf)](_0xd68477)[_0x7d75da(0x21a)]('hex')[_0x7d75da(0x193)](0x0,0xc);return _0x7d75da(0x1c2)+_0x444d72;}export async function inspectNovaStorageStateFile(_0x2a08f8){const _0x5bc273=_0x1d53,_0x42a779={'qcPAN':function(_0x357fdc,_0x4987db){return _0x357fdc(_0x4987db);},'YjHNP':function(_0x15d858,_0x183434,_0x329083){return _0x15d858(_0x183434,_0x329083);},'sgPrt':_0x5bc273(0x1b9),'xuhjM':function(_0x4dc440,_0x46846f){return _0x4dc440(_0x46846f);},'ApJvL':_0x5bc273(0x1e9),'ZTMhR':function(_0x1decbd,_0x1b52c1){return _0x1decbd/_0x1b52c1;},'Tgjlg':function(_0x184fe8,_0x224af9){return _0x184fe8 instanceof _0x224af9;},'XBtzN':function(_0x2689cf,_0x1f90d5){return _0x2689cf(_0x1f90d5);},'djDZp':function(_0x36094a,_0x16e206){return _0x36094a instanceof _0x16e206;}};try{const [_0x210806,_0x212737]=await Promise['all']([_0x42a779['qcPAN'](stat,_0x2a08f8),_0x42a779[_0x5bc273(0x22e)](readFile,_0x2a08f8,_0x42a779[_0x5bc273(0x1b1)])]),_0x5c44f6={'path':_0x2a08f8,'exists':!![],'byteLength':Buffer[_0x5bc273(0x210)](_0x212737),'sha256':_0x42a779['xuhjM'](createHash,_0x42a779[_0x5bc273(0x1d3)])['update'](_0x212737)[_0x5bc273(0x21a)]('hex')};try{const _0x4972e8=JSON['parse'](_0x212737),_0x3b2df7=_0x4972e8[_0x5bc273(0x1e2)]??[],_0x124162=Math[_0x5bc273(0x20d)](_0x42a779['ZTMhR'](Date[_0x5bc273(0x1a3)](),0x3e8)),_0x9f8c9d=new Map();for(const _0x517fa9 of _0x3b2df7){const _0x57cada=_0x9f8c9d[_0x5bc273(0x1cb)](_0x517fa9[_0x5bc273(0x19c)])??[];_0x57cada[_0x5bc273(0x22d)](_0x517fa9[_0x5bc273(0x1fb)]),_0x9f8c9d['set'](_0x517fa9[_0x5bc273(0x19c)],_0x57cada);}return{..._0x5c44f6,'byteLength':_0x210806[_0x5bc273(0x1d1)],'cookieCount':_0x3b2df7['length'],'cookieDomains':[..._0x9f8c9d['entries']()][_0x5bc273(0x1d0)](([_0x1362f5],[_0x32247a])=>_0x1362f5[_0x5bc273(0x196)](_0x32247a))[_0x5bc273(0x232)](([_0x57998f,_0x58ac2b])=>({'domain':_0x57998f,'count':_0x58ac2b['length'],'names':_0x58ac2b[_0x5bc273(0x1d0)]()['slice'](0x0,0x19)})),'httpOnlyCookieCount':_0x3b2df7['filter'](_0x31863e=>_0x31863e['httpOnly'])[_0x5bc273(0x250)],'secureCookieCount':_0x3b2df7['filter'](_0x240361=>_0x240361[_0x5bc273(0x1c8)])[_0x5bc273(0x250)],'sessionCookieCount':_0x3b2df7['filter'](_0x83d5fe=>_0x83d5fe[_0x5bc273(0x1f9)]===-0x1)['length'],'expiredCookieCount':_0x3b2df7['filter'](_0x4f7247=>typeof _0x4f7247['expires']==='number'&&_0x4f7247['expires']>0x0&&_0x4f7247['expires']<_0x124162)[_0x5bc273(0x250)],'originCount':_0x4972e8['origins']?.[_0x5bc273(0x250)]??0x0,'origins':(_0x4972e8[_0x5bc273(0x1c7)]??[])[_0x5bc273(0x232)](_0x5a5ade=>({'origin':_0x5a5ade['origin'],'localStorageCount':_0x5a5ade[_0x5bc273(0x1f4)]?.[_0x5bc273(0x250)]??0x0,'localStorageKeys':_0x5a5ade['localStorage']?.['map'](_0x435d3d=>_0x435d3d[_0x5bc273(0x1fb)])[_0x5bc273(0x1d0)]()['slice'](0x0,0x19)??[]}))};}catch(_0x2967e3){return{..._0x5c44f6,'byteLength':_0x210806['size'],'parseError':_0x42a779['Tgjlg'](_0x2967e3,Error)?_0x2967e3[_0x5bc273(0x204)]:_0x42a779['XBtzN'](String,_0x2967e3)};}}catch(_0x5dd7be){return{'path':_0x2a08f8,'exists':![],'readError':_0x42a779['djDZp'](_0x5dd7be,Error)?_0x5dd7be['message']:String(_0x5dd7be)};}}function _0x4784(){const _0x4e62bf=['1760796QpUxqP','close','gBGNG','JyuCT','object','stdout','address','vljYk','port','sgPrt','setItem','KbpmD','YXhpG','Nova\x20Act\x20CLI\x20preflight\x20failed,\x20so\x20Ranger\x20did\x20not\x20start\x20a\x20browser\x20session.','PChHw','act\x20browser\x20doctor\x20--json\x20timed\x20out','--version','utf-8','FfVSG','dVsmo','icRgH','ZaeZS','--user-data-dir=','/opt/homebrew/bin','executablePath','domcontentloaded','rg-','--launch-arg=','stdout:\x20','CNYvR','args','origins','secure','null','oQdST','get','timed\x20out\x20after\x20','stderr:\x20','isFile','update','sort','size','FQPjp','ApJvL','pipe','dSHpP','dhGSQ','\x0afi\x0a\x0aexec\x20','\x20browser\x20\x22$@\x22\x20','GIDmF','export','browserCommandPath','DTpHE','xPSdW','http://127.0.0.1:','error','tool','nova-act-cli\x20','cookies','BoqmV','Nova\x20profile\x20hydration\x20browser\x20did\x20not\x20expose\x20a\x20context','1323hBItqB','contexts','/usr/local/bin','--remote-debugging-port=','sha256','once','SWipR','session','stderr','2309808NZNYhx','--remote-allow-origins=http://localhost','cwd','subcommand','launchArgs','join','localStorage','Timed\x20out\x20waiting\x20for\x20hydration\x20browser\x20CDP','--no-first-run','LXtet','add','expires','xTHkP','name','252qokNhC','gbaWu','mtimeMs','TTtva','\x20is\x20on\x20PATH.\x0astdout:\x20','data','unknown','--quiet','message','gYEaJ','origin','THNWB','nVZJF','VcYSS','IVKtY','jpBOB','Network','floor','TBpwm','nova-act-browser','byteLength','...','DVFXP','fail','Kbpmt','121265aIMYxR','DeLdd','status','timeoutMs','Hshmx','digest','checks','string','787276dqvjWK','logs_directory','JVeEe','hiKrJ','exited\x20with\x20code=','kXZdi','sessionId','hCPrV','XfgLb','yOtwo','ZGmtz','off','kill','KbbYx','13832eIWIuu','--window-size=1280,720','push','YjHNP','logDir','Local\x20Storage','browserProfilePath','map','zpxIz','--browser-profile-path','trim','fqQDw','split','aaPah','match','YJrKi','AWS_PROFILE','For\x20AWS\x20SSO,\x20run:\x20aws\x20sso\x20login\x20--profile\x20','log_dir','YIUjs','exitCode','storageStatePath','qhLOK','ilpyn','bRXRC','ignore','qpgQF','userDataDir','uUmdA','PATH','VkGeM','\x0astdout:\x20','parse','--profile-directory=Default','env','browser','execute','length','newPage','AeWjH','hqizS','code','cLoJw','fix','Cookies','toString','iqJmj','SIGKILL','slice','JkHpp','zPgyN','localeCompare','lJNvv','ViggM','10583062iwUSns','webSocketDebuggerUrl','\x20browser\x20--help`\x20is\x20still\x20unavailable.\x20Ensure\x20','domain','eakuK','bgFPw','\x0astderr:\x20','baseUrl','Failed\x20to\x20allocate\x20hydration\x20browser\x20port','filter','now','1465126DTwBeE','oUTYr','Installed\x20','XjkQU'];_0x4784=function(){return _0x4e62bf;};return _0x4784();}export async function inspectNovaProfileFiles(_0x1c8382){const _0x3db9cb=_0x1d53,_0x58d5b5={'znfkd':function(_0x28a84e,_0x7d95c0,_0x3bd1fb){return _0x28a84e(_0x7d95c0,_0x3bd1fb);},'qhLOK':'Preferences','qpgQF':_0x3db9cb(0x257),'XHRLd':_0x3db9cb(0x20c),'djucL':'leveldb','gYEaJ':function(_0x397b60,_0x484c06){return _0x397b60(_0x484c06);},'gBGNG':function(_0x1743c0,_0x8c525b){return _0x1743c0(_0x8c525b);},'CNYvR':function(_0x2e428e,_0x3c4109){return _0x2e428e(_0x3c4109);},'ViggM':function(_0x5c0e17,_0x5ea013){return _0x5c0e17(_0x5ea013);}},_0x593a6f=_0x58d5b5['znfkd'](join,_0x1c8382[_0x3db9cb(0x246)],'Local\x20State'),_0x32bc39=_0x58d5b5['znfkd'](join,_0x1c8382[_0x3db9cb(0x231)],_0x58d5b5[_0x3db9cb(0x241)]),_0x1dc35a=join(_0x1c8382[_0x3db9cb(0x231)],_0x58d5b5[_0x3db9cb(0x245)]),_0x50277c=join(_0x1c8382['browserProfilePath'],_0x58d5b5['XHRLd'],_0x58d5b5['qpgQF']),_0x4b0b18=join(_0x1c8382[_0x3db9cb(0x231)],_0x3db9cb(0x230)),_0x504122=_0x58d5b5['znfkd'](join,_0x4b0b18,_0x58d5b5['djucL']),[_0x95b769,_0x3a1b97,_0x57caa3,_0x13098c,_0x356167,_0x43b398,_0x2008ef,_0x5de498,_0x152fc5,_0x115392,_0x28e449]=await Promise['all']([inspectPath(_0x1c8382['userDataDir']),_0x58d5b5[_0x3db9cb(0x205)](inspectPath,_0x1c8382['browserProfilePath']),_0x58d5b5['gYEaJ'](inspectPath,_0x593a6f),_0x58d5b5['gYEaJ'](inspectPath,_0x32bc39),_0x58d5b5[_0x3db9cb(0x205)](inspectPath,_0x1dc35a),inspectPath(_0x50277c),_0x58d5b5[_0x3db9cb(0x1aa)](inspectPath,_0x4b0b18),_0x58d5b5[_0x3db9cb(0x1aa)](inspectPath,_0x504122),_0x58d5b5[_0x3db9cb(0x1c5)](listDir,_0x1c8382[_0x3db9cb(0x246)]),_0x58d5b5[_0x3db9cb(0x198)](listDir,_0x1c8382[_0x3db9cb(0x231)]),_0x58d5b5['ViggM'](listDir,_0x504122)]);return{'userDataDir':_0x1c8382['userDataDir'],'browserProfilePath':_0x1c8382['browserProfilePath'],'rootEntries':_0x152fc5,'defaultEntries':_0x115392,'localStorageEntries':_0x28e449,'paths':{'userDataDir':_0x95b769,'browserProfilePath':_0x3a1b97,'localState':_0x57caa3,'preferences':_0x13098c,'cookies':_0x356167,'networkCookies':_0x43b398,'localStorage':_0x2008ef,'levelDb':_0x5de498}};}async function inspectPath(_0x5e8b39){const _0x416333=_0x1d53,_0x327e13={'DeLdd':function(_0x2d6a8d,_0x578747){return _0x2d6a8d(_0x578747);}};try{const _0x153b43=await _0x327e13[_0x416333(0x216)](stat,_0x5e8b39);return{'path':_0x5e8b39,'exists':!![],'isDirectory':_0x153b43['isDirectory'](),'byteLength':_0x153b43[_0x416333(0x1ce)]()?_0x153b43['size']:undefined,'mtimeMs':_0x153b43[_0x416333(0x1fe)]};}catch(_0x1a027c){return{'path':_0x5e8b39,'exists':![],'error':_0x1a027c instanceof Error?_0x1a027c[_0x416333(0x204)]:String(_0x1a027c)};}}function _0x1d53(_0x35e3a9,_0x1c6564){_0x35e3a9=_0x35e3a9-0x190;const _0x47843e=_0x4784();let _0x1d5366=_0x47843e[_0x35e3a9];return _0x1d5366;}async function listDir(_0x590270){const _0x5eaafd=_0x1d53,_0x1e480e={'dVsmo':function(_0x4fa6ee,_0x5bc34b){return _0x4fa6ee(_0x5bc34b);}};try{return(await _0x1e480e[_0x5eaafd(0x1bb)](readdir,_0x590270))[_0x5eaafd(0x1d0)]()['slice'](0x0,0x32);}catch{return undefined;}}function truncatePreview(_0x3d5635,_0x43a02a=NOVA_ACT_CLI_PREVIEW_LIMIT){const _0x1b25bf=_0x1d53,_0x554574={'icRgH':function(_0x60eafa,_0x36dd55){return _0x60eafa>_0x36dd55;},'DTpHE':function(_0x2b11ff,_0x123c92){return _0x2b11ff+_0x123c92;}};return _0x554574[_0x1b25bf(0x1bc)](_0x3d5635['length'],_0x43a02a)?_0x554574[_0x1b25bf(0x1dc)](_0x3d5635['slice'](0x0,_0x43a02a),'...'):_0x3d5635;}function truncateOutput(_0x21095b,_0x24d429=0x7d0){const _0x283a74=_0x1d53,_0xd566={'JyuCT':_0x283a74(0x211)};return _0x21095b[_0x283a74(0x250)]>_0x24d429?_0x21095b['slice'](0x0,_0x24d429)+_0xd566[_0x283a74(0x1ab)]:_0x21095b;}function getNovaActCliBinDirs(_0x5717e7){const _0x505167=_0x1d53,_0x353321={'yxLzq':_0x505167(0x1e7)};return[_0x5717e7['UV_TOOL_BIN_DIR'],homedir()+'/.local/bin',_0x505167(0x1bf),_0x353321['yxLzq']]['filter'](_0x2ab209=>Boolean(_0x2ab209));}function buildPathWithNovaActCliBins(_0x1efd90){const _0x3e06d5=_0x1d53,_0x4d66d5={'exFbb':function(_0x11ec0b,_0x3c8a40){return _0x11ec0b(_0x3c8a40);}},_0x4a2c17=new Set(),_0x16ac4f=[..._0x4d66d5['exFbb'](getNovaActCliBinDirs,_0x1efd90),...(_0x1efd90[_0x3e06d5(0x248)]??'')[_0x3e06d5(0x237)](delimiter)][_0x3e06d5(0x1a2)](_0x2bc663=>{const _0x4fe500=_0x3e06d5;if(!_0x2bc663||_0x4a2c17['has'](_0x2bc663))return![];return _0x4a2c17[_0x4fe500(0x1f8)](_0x2bc663),!![];});return _0x16ac4f['join'](delimiter);}export function applyNovaActCliPath(_0x112594){_0x112594['PATH']=buildPathWithNovaActCliBins(_0x112594);}function withNovaActCliPath(_0x24bcf7){return{..._0x24bcf7,'PATH':buildPathWithNovaActCliBins(_0x24bcf7)};}function runBootstrapCommand(_0x1c8b50){const _0x5ca541=_0x1d53,_0x541b6e={'CAHxs':_0x5ca541(0x1c9),'YJrKi':function(_0x164ded,_0x101a99){return _0x164ded??_0x101a99;},'oUTYr':function(_0x5d215d,_0x54240f,_0x72354b,_0x50aa0c){return _0x5d215d(_0x54240f,_0x72354b,_0x50aa0c);},'rfOEX':'ignore','pnLEc':_0x5ca541(0x1d4),'THNWB':function(_0x109190,_0x300129,_0x16d6cf){return _0x109190(_0x300129,_0x16d6cf);},'EBzzs':_0x5ca541(0x201),'Kbpmt':_0x5ca541(0x1df),'wAcsz':'close'},{command:_0xba9028,args:_0x2444e2,env:_0x431d0c,timeoutMs:timeoutMs=NOVA_ACT_BOOTSTRAP_TIMEOUT_MS}=_0x1c8b50;return new Promise((_0x248496,_0x317c3f)=>{const _0x4bff85=_0x5ca541,_0x2a70f8={'BoqmV':function(_0x5bf915,_0x5ccac6){return _0x5bf915(_0x5ccac6);},'LXtet':function(_0x6251c2,_0x11b018){return _0x6251c2===_0x11b018;},'TpbSw':_0x541b6e['CAHxs'],'UAqsw':function(_0x5ea272,_0x8c22a5){const _0x1c17c6=_0x1d53;return _0x541b6e[_0x1c17c6(0x23a)](_0x5ea272,_0x8c22a5);}},_0x5b8177=_0x541b6e[_0x4bff85(0x1a5)](spawn,_0xba9028,_0x2444e2,{'env':_0x431d0c,'stdio':[_0x541b6e['rfOEX'],_0x4bff85(0x1d4),_0x541b6e['pnLEc']]});let _0x25effe='',_0x5de6ac='',_0x469c1f=![];const _0x3c7504=_0x541b6e[_0x4bff85(0x207)](setTimeout,()=>{_0x469c1f=!![],_0x5b8177['kill']('SIGTERM'),setTimeout(()=>{const _0x462bc2=_0x1d53;try{_0x5b8177[_0x462bc2(0x229)]('SIGKILL');}catch{}},0x3e8);},timeoutMs);_0x5b8177[_0x4bff85(0x1ad)]?.['on'](_0x541b6e['EBzzs'],_0x19cce5=>{_0x25effe+=_0x19cce5['toString']();}),_0x5b8177[_0x4bff85(0x1ed)]?.['on'](_0x4bff85(0x201),_0x4dceff=>{_0x5de6ac+=_0x4dceff['toString']();}),_0x5b8177['on'](_0x541b6e[_0x4bff85(0x214)],_0x5c84db=>{const _0x350056=_0x4bff85;clearTimeout(_0x3c7504),_0x2a70f8[_0x350056(0x1e3)](_0x317c3f,_0x5c84db);}),_0x5b8177['on'](_0x541b6e['wAcsz'],(_0x5671ff,_0x1dfbc7)=>{const _0x37c09d=_0x4bff85;clearTimeout(_0x3c7504);if(_0x2a70f8[_0x37c09d(0x1f7)](_0x5671ff,0x0)){_0x248496({'stdout':_0x25effe,'stderr':_0x5de6ac});return;}const _0x22eede=_0x469c1f?'timed\x20out\x20after\x20'+timeoutMs+'ms':_0x37c09d(0x221)+(_0x5671ff??_0x2a70f8['TpbSw'])+'\x20signal='+_0x2a70f8['UAqsw'](_0x1dfbc7,'null');_0x317c3f(new Error(_0xba9028+'\x20'+_0x2444e2[_0x37c09d(0x1f3)]('\x20')+'\x20'+_0x22eede+_0x37c09d(0x24a)+truncateOutput(_0x25effe)+_0x37c09d(0x19f)+_0x2a70f8[_0x37c09d(0x1e3)](truncateOutput,_0x5de6ac)));});});}function runCommandAllowFailure(_0x1a911e){const _0x2142e0=_0x1d53,_0xad14c0={'bRXRC':function(_0x5e3512,_0xd9a6aa){return _0x5e3512(_0xd9a6aa);},'XfgLb':function(_0x4f1994,_0x2de7fc,_0x1a3e1d,_0x428c54){return _0x4f1994(_0x2de7fc,_0x1a3e1d,_0x428c54);},'vvvot':'pipe','lsSCE':function(_0x210d87,_0x2229fd,_0x56e5fc){return _0x210d87(_0x2229fd,_0x56e5fc);},'vGPZi':_0x2142e0(0x201),'zaEyK':'close'},{command:_0x7d11e4,args:_0x37473f,env:_0x2d83f8,timeoutMs:_0x3b742e}=_0x1a911e;return new Promise((_0x6059f4,_0x10c595)=>{const _0x264b75=_0x2142e0,_0x13c48b={'SWipR':function(_0x362ced,_0xc8e86f,_0x22e656){return _0x362ced(_0xc8e86f,_0x22e656);}},_0xbde844=_0xad14c0[_0x264b75(0x225)](spawn,_0x7d11e4,_0x37473f,{'env':_0x2d83f8,'stdio':['ignore','pipe',_0xad14c0['vvvot']]});let _0x39c6cd='',_0x12d09c='',_0x4cf6ca=![];const _0xc2df6b=_0xad14c0['lsSCE'](setTimeout,()=>{const _0x2f6fc9=_0x264b75;_0x4cf6ca=!![],_0xbde844[_0x2f6fc9(0x229)]('SIGTERM'),_0x13c48b[_0x2f6fc9(0x1eb)](setTimeout,()=>{const _0x23b9bf=_0x2f6fc9;try{_0xbde844['kill'](_0x23b9bf(0x192));}catch{}},0x3e8);},_0x3b742e);_0xbde844['stdout']?.['on'](_0xad14c0['vGPZi'],_0x2bcd99=>{_0x39c6cd+=_0x2bcd99['toString']();}),_0xbde844['stderr']?.['on'](_0xad14c0['vGPZi'],_0x181505=>{_0x12d09c+=_0x181505['toString']();}),_0xbde844['on'](_0x264b75(0x1df),_0x4261a7=>{clearTimeout(_0xc2df6b),_0x10c595(_0x4261a7);}),_0xbde844['on'](_0xad14c0['zaEyK'],(_0x2517a9,_0x852a5e)=>{const _0x5cd8e1=_0x264b75;_0xad14c0[_0x5cd8e1(0x243)](clearTimeout,_0xc2df6b),_0xad14c0[_0x5cd8e1(0x243)](_0x6059f4,{'code':_0x2517a9,'signal':_0x852a5e,'stdout':_0x39c6cd,'stderr':_0x12d09c,'timedOut':_0x4cf6ca});});});}async function resolveActPath(_0x23bf48){const _0x54e2b1=_0x1d53,_0x417602={'bOykP':function(_0x246d17,_0x24fc77){return _0x246d17(_0x24fc77);}},_0x506348=_0x417602['bOykP'](isAbsolute,NOVA_ACT_CLI_BINARY)?[NOVA_ACT_CLI_BINARY]:(_0x23bf48['PATH']??'')[_0x54e2b1(0x237)](delimiter)[_0x54e2b1(0x1a2)](Boolean)['map'](_0x3f8efc=>join(_0x3f8efc,NOVA_ACT_CLI_BINARY));for(const _0x4f0aaa of _0x506348){try{return await access(_0x4f0aaa),_0x4f0aaa;}catch{}}return null;}async function checkNovaActCli(_0x17a5ea){const _0x2cd40f={'Kjlwm':'browser','vJKZf':'--help'};try{return await runBootstrapCommand({'command':NOVA_ACT_CLI_BINARY,'args':[_0x2cd40f['Kjlwm'],_0x2cd40f['vJKZf']],'env':_0x17a5ea,'timeoutMs':0x7530}),await resolveActPath(_0x17a5ea)??NOVA_ACT_CLI_BINARY;}catch{return null;}}export async function ensureNovaActCliInstalled(_0x3a1e01={}){const _0x18262b=_0x1d53,_0x7808f1={'aaPah':function(_0xd678dc,_0x43d8a2){return _0xd678dc(_0x43d8a2);},'mALsA':_0x18262b(0x1e0)},_0x5146f5=withNovaActCliPath(_0x3a1e01['env']??process['env']),_0x2a3cc8=await checkNovaActCli(_0x5146f5);if(_0x2a3cc8)return{'installed':![],'actPath':_0x2a3cc8,'uvPackage':NOVA_ACT_CLI_UV_PACKAGE,'stdout':'','stderr':''};try{await _0x7808f1['aaPah'](runBootstrapCommand,{'command':'uv','args':[_0x18262b(0x1b8)],'env':_0x5146f5,'timeoutMs':0x7530});}catch(_0x57bf3f){throw new Error('nova-act-cli\x20transport\x20requires\x20the\x20Nova\x20Act\x20CLI.\x20Ranger\x20could\x20not\x20find\x20`'+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'+(_0x57bf3f instanceof Error?_0x57bf3f[_0x18262b(0x204)]:_0x7808f1['aaPah'](String,_0x57bf3f)));}const _0x49d442=await runBootstrapCommand({'command':'uv','args':[_0x7808f1['mALsA'],'install',NOVA_ACT_CLI_UV_PACKAGE],'env':_0x5146f5,'timeoutMs':_0x3a1e01['timeoutMs']??NOVA_ACT_BOOTSTRAP_TIMEOUT_MS}),_0x2689ae=await _0x7808f1[_0x18262b(0x238)](checkNovaActCli,_0x5146f5);if(!_0x2689ae)throw new Error(_0x18262b(0x1a6)+NOVA_ACT_CLI_UV_PACKAGE+',\x20but\x20`'+NOVA_ACT_CLI_BINARY+_0x18262b(0x19b)+_0x7808f1['aaPah'](getNovaActCliBinDirs,_0x5146f5)[_0x18262b(0x1f3)](',\x20')+_0x18262b(0x200)+_0x7808f1['aaPah'](truncateOutput,_0x49d442['stdout'])+_0x18262b(0x19f)+truncateOutput(_0x49d442['stderr']));return{'installed':!![],'actPath':_0x2689ae,'uvPackage':NOVA_ACT_CLI_UV_PACKAGE,'stdout':_0x49d442['stdout'],'stderr':_0x49d442[_0x18262b(0x1ed)]};}function parseNovaActDoctorOutput(_0x35f5cc){const _0x4d271c=_0x1d53;try{return JSON[_0x4d271c(0x24b)](_0x35f5cc);}catch{return null;}}function buildNovaActCliPreflightError(_0x5ebc08){const _0x52f962=_0x1d53,_0x1e3a06={'PNexf':_0x52f962(0x1b7),'dSHpP':'null','TBpwm':function(_0x57b4f2,_0x3c7caa){return _0x57b4f2??_0x3c7caa;},'JVeEe':function(_0x42c6dd,_0xe9924c){return _0x42c6dd(_0xe9924c);},'ilpyn':function(_0x19c0d7,_0x9bea75){return _0x19c0d7(_0x9bea75);},'FUDDf':'For\x20AWS\x20SSO,\x20set\x20AWS_PROFILE\x20and\x20run:\x20aws\x20sso\x20login\x20--profile\x20<profile>','AGCFS':_0x52f962(0x1b5)},{checks:_0x5257ca,stdout:_0x54f028,stderr:_0x3ee9ec,env:_0x3b02e8,code:_0x2c959d,signal:_0x1efd20,timedOut:_0x4fa17c}=_0x5ebc08,_0x4e4961=_0x5257ca[_0x52f962(0x1a2)](_0x35728d=>_0x35728d[_0x52f962(0x217)]===_0x52f962(0x213)),_0x130772=_0x4e4961[_0x52f962(0x250)]>0x0?_0x4e4961[_0x52f962(0x232)](_0x2480cf=>{const _0x5dcf56=_0x52f962,_0x47ce36=_0x2480cf[_0x5dcf56(0x256)]?'\x20Fix:\x20'+_0x2480cf['fix']:'';return'-\x20'+_0x2480cf[_0x5dcf56(0x1fb)]+':\x20'+_0x2480cf['message']+'.'+_0x47ce36;})['join']('\x0a'):[_0x4fa17c?_0x1e3a06['PNexf']:'act\x20browser\x20doctor\x20--json\x20exited\x20with\x20code='+(_0x2c959d??_0x1e3a06[_0x52f962(0x1d5)])+'\x20signal='+_0x1e3a06[_0x52f962(0x20e)](_0x1efd20,_0x1e3a06['dSHpP']),_0x54f028?_0x52f962(0x1c4)+_0x1e3a06[_0x52f962(0x21f)](truncateOutput,_0x54f028):'',_0x3ee9ec?_0x52f962(0x1cd)+_0x1e3a06[_0x52f962(0x242)](truncateOutput,_0x3ee9ec):''][_0x52f962(0x1a2)](Boolean)[_0x52f962(0x1f3)]('\x0a'),_0xf4de9=_0x3b02e8[_0x52f962(0x23b)]?.[_0x52f962(0x235)](),_0x430310=_0xf4de9?_0x52f962(0x23c)+_0xf4de9:_0x1e3a06['FUDDf'];return new Error([_0x1e3a06['AGCFS'],_0x130772,'Configure\x20Nova\x20Act\x20with\x20NOVA_ACT_API_KEY,\x20run\x20act\x20browser\x20setup\x20--api-key\x20<key>,\x20or\x20configure\x20AWS\x20credentials.',_0x430310]['join']('\x0a'));}export async function preflightNovaActCli(_0xdef138={}){const _0x20ff88=_0x1d53,_0x779947={'gbaWu':function(_0xb77c53,_0x5a2a3a){return _0xb77c53(_0x5a2a3a);},'GIDmF':function(_0x51f51f,_0x110ede){return _0x51f51f!==_0x110ede;}},_0xad3e75=withNovaActCliPath(_0xdef138[_0x20ff88(0x24d)]??process['env']),_0x15c20e=await _0x779947[_0x20ff88(0x1fd)](runCommandAllowFailure,{'command':NOVA_ACT_CLI_BINARY,'args':[_0x20ff88(0x24e),'doctor','--json'],'env':_0xad3e75,'timeoutMs':_0xdef138[_0x20ff88(0x218)]??0x7530}),_0x13100e=_0x779947['gbaWu'](parseNovaActDoctorOutput,_0x15c20e[_0x20ff88(0x1ad)]),_0x467c93=_0x13100e?.[_0x20ff88(0x201)]?.[_0x20ff88(0x21b)]??[],_0x51e0da=_0x467c93['some'](_0x431aa5=>_0x431aa5['status']==='fail');if(_0x779947[_0x20ff88(0x1d9)](_0x15c20e['code'],0x0)||_0x15c20e['timedOut']||_0x51e0da)throw _0x779947['gbaWu'](buildNovaActCliPreflightError,{'checks':_0x467c93,'stdout':_0x15c20e[_0x20ff88(0x1ad)],'stderr':_0x15c20e['stderr'],'env':_0xad3e75,'code':_0x15c20e[_0x20ff88(0x254)],'signal':_0x15c20e['signal'],'timedOut':_0x15c20e['timedOut']});return{'checks':_0x467c93,'logDir':_0x13100e?.['log_dir']??_0x13100e?.[_0x20ff88(0x22f)]};}function getNovaActCliSubcommand(_0x292327){const _0x34e8b6=_0x1d53,_0x1593a1={'ujQRG':function(_0x3ff416,_0x384fdf){return _0x3ff416===_0x384fdf;}},[_0x5a883e=_0x34e8b6(0x202),_0x255776]=_0x292327;return _0x1593a1['ujQRG'](_0x5a883e,_0x34e8b6(0x1ec))&&_0x255776?_0x5a883e+'\x20'+_0x255776:_0x5a883e;}function supportsBrowserSessionOptions(_0x5f5105){const _0x223eb8=_0x1d53,_0x375558={'IVKtY':function(_0x35a494,_0x263f72){return _0x35a494===_0x263f72;}};return!(_0x5f5105[0x0]==='session'&&(_0x375558[_0x223eb8(0x20a)](_0x5f5105[0x1],_0x223eb8(0x1da))||_0x5f5105[0x1]==='close'));}function buildSharedArgs(_0x1650d2,_0x377075){const _0x1b8986=_0x1d53,_0x3037eb={'lJNvv':'--session-id','oQdST':function(_0x5b8053,_0x1aec13){return _0x5b8053(_0x1aec13);},'zpxIz':'--headless','jAsPN':'--executable-path'},_0x1f0bbf=[_0x3037eb[_0x1b8986(0x197)],_0x1650d2[_0x1b8986(0x223)],'--json'];if(_0x3037eb[_0x1b8986(0x1ca)](supportsBrowserSessionOptions,_0x377075)){_0x1f0bbf[_0x1b8986(0x22d)](_0x1b8986(0x203)),_0x1f0bbf[_0x1b8986(0x22d)](_0x1650d2['headless']?_0x3037eb[_0x1b8986(0x233)]:'--headed');_0x1650d2[_0x1b8986(0x231)]&&_0x1f0bbf['push'](_0x1b8986(0x234),_0x1650d2[_0x1b8986(0x231)]);_0x1650d2[_0x1b8986(0x1c0)]&&_0x1f0bbf['push'](_0x3037eb['jAsPN'],_0x1650d2[_0x1b8986(0x1c0)]);_0x1650d2['cdpEndpoint']&&_0x1f0bbf[_0x1b8986(0x22d)]('--cdp',_0x1650d2['cdpEndpoint']);for(const _0x51dc3b of _0x1650d2[_0x1b8986(0x1f2)]??[]){_0x1f0bbf['push'](_0x1b8986(0x1c3)+_0x51dc3b);}}return _0x1f0bbf;}export function buildNovaActCliInvocation(_0x13aceb,_0x53f8d5){const _0x506589=_0x1d53,_0x43fce9={'Vzops':function(_0xdb09b9,_0x1bec70,_0x56e5f4){return _0xdb09b9(_0x1bec70,_0x56e5f4);},'duhMt':'browser'},_0x53a0e8=_0x43fce9['Vzops'](buildSharedArgs,_0x13aceb,_0x53f8d5),_0x1f0103=[_0x43fce9['duhMt'],..._0x53f8d5,..._0x53a0e8];return{'command':NOVA_ACT_CLI_BINARY,'args':_0x1f0103,'shellCommand':[NOVA_ACT_CLI_BINARY,_0x506589(0x24e),..._0x53f8d5['map'](quoteShellArg),..._0x53a0e8[_0x506589(0x232)](quoteShellArg)][_0x506589(0x1f3)]('\x20'),'subcommand':getNovaActCliSubcommand(_0x53f8d5)};}export function buildNovaActCliCommandPrefix(){return NOVA_ACT_CLI_BINARY+'\x20browser';}export function buildNovaActCliBrowserWrapperPath(_0x1d9a3b){const _0x59ed2a=_0x1d53,_0x809aa2={'VcYSS':function(_0x58475c,_0x8d8359,_0x2e5f78){return _0x58475c(_0x8d8359,_0x2e5f78);},'nVZJF':function(_0xf3aa02,_0x4b2490){return _0xf3aa02(_0x4b2490);}};return _0x809aa2[_0x59ed2a(0x209)](join,_0x809aa2[_0x59ed2a(0x208)](dirname,_0x1d9a3b[_0x59ed2a(0x246)]),_0x59ed2a(0x20f));}export async function writeNovaActCliBrowserWrapper(_0x532a6c){const _0x1b7383=_0x1d53,_0x3827dd={'hCPrV':_0x1b7383(0x24f),'ZaeZS':function(_0x262c49,_0x3af217,_0x4fc2af){return _0x262c49(_0x3af217,_0x4fc2af);},'RKrjy':function(_0x564a1d,_0x11a413,_0x3ffa73){return _0x564a1d(_0x11a413,_0x3ffa73);},'yXIWg':function(_0x38d1cc,_0x3d3f1e,_0x1bfd08){return _0x38d1cc(_0x3d3f1e,_0x1bfd08);},'JSIMs':function(_0x3e4acf,_0x219592,_0x3800c7,_0x92f5c9){return _0x3e4acf(_0x219592,_0x3800c7,_0x92f5c9);},'dhGSQ':function(_0x4bd9a1,_0x3b73b6){return _0x4bd9a1(_0x3b73b6);}},_0x1dcb9d=_0x532a6c[_0x1b7383(0x1db)]??buildNovaActCliBrowserWrapperPath(_0x532a6c),_0x353a6c=buildSharedArgs(_0x532a6c,[_0x3827dd[_0x1b7383(0x224)]])[_0x1b7383(0x232)](quoteShellArg)['join']('\x20'),_0x4d610e=_0x3827dd[_0x1b7383(0x1bd)](buildSharedArgs,_0x532a6c,['session',_0x1b7383(0x1da)])['map'](quoteShellArg)[_0x1b7383(0x1f3)]('\x20');return await _0x3827dd['RKrjy'](mkdir,dirname(_0x1dcb9d),{'recursive':!![]}),await _0x3827dd['yXIWg'](mkdir,_0x532a6c['userDataDir'],{'recursive':!![]}),await _0x3827dd['JSIMs'](writeFile,_0x1dcb9d,'#!/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)+'\x20browser\x20\x22$@\x22\x20'+_0x4d610e+_0x1b7383(0x1d7)+_0x3827dd[_0x1b7383(0x1d6)](quoteShellArg,NOVA_ACT_CLI_BINARY)+_0x1b7383(0x1d8)+_0x353a6c+'\x0a',_0x1b7383(0x1b9)),await chmod(_0x1dcb9d,0x1ed),_0x1dcb9d;}export function buildNovaActCliSharedOptionsSuffix(_0x5c2c72,_0x223f03=['execute']){const _0x4a5f73=_0x1d53;return buildSharedArgs(_0x5c2c72,_0x223f03)[_0x4a5f73(0x232)](quoteShellArg)['join']('\x20');}export async function runNovaActCliCommand(_0x305590){const _0x545b82=_0x1d53,_0x16e092={'ZBaUd':function(_0x5e2893,_0x1fca50,_0x96c227){return _0x5e2893(_0x1fca50,_0x96c227);},'iKMFS':function(_0x2d19a1,_0xbdfb00){return _0x2d19a1===_0xbdfb00;},'yOtwo':_0x545b82(0x1d4),'xrYtp':_0x545b82(0x1df),'jpBOB':_0x545b82(0x1a9)};await mkdir(_0x305590['userDataDir'],{'recursive':!![]});const _0x50b443=buildNovaActCliInvocation(_0x305590,_0x305590['commandArgs']);return new Promise((_0x3685fa,_0x2a762b)=>{const _0x1fd97c=_0x545b82,_0x509ebd={'JkHpp':'SIGKILL','TTtva':function(_0x1c0508,_0x21cc6b){return _0x1c0508(_0x21cc6b);},'uUmdA':function(_0x3873e7,_0xb61ce5){return _0x16e092['iKMFS'](_0x3873e7,_0xb61ce5);},'KbpmD':function(_0x128395,_0x520ea3){return _0x128395??_0x520ea3;},'WhHMQ':_0x1fd97c(0x1c9)},_0x1a067d=spawn(_0x50b443['command'],_0x50b443[_0x1fd97c(0x1c6)],{'cwd':_0x305590[_0x1fd97c(0x1f0)],'env':_0x305590['env'],'stdio':[_0x1fd97c(0x244),_0x16e092[_0x1fd97c(0x226)],_0x1fd97c(0x1d4)]});let _0x50e6cd='',_0x648a21='',_0x303c1d=![];const _0x1acf7c=_0x305590[_0x1fd97c(0x218)]&&_0x305590[_0x1fd97c(0x218)]>0x0?setTimeout(()=>{const _0x1923f5=_0x1fd97c;_0x303c1d=!![],_0x1a067d[_0x1923f5(0x229)]('SIGTERM'),_0x16e092['ZBaUd'](setTimeout,()=>{const _0x271fa5=_0x1923f5;try{_0x1a067d[_0x271fa5(0x229)](_0x509ebd[_0x271fa5(0x194)]);}catch{}},0x3e8);},_0x305590[_0x1fd97c(0x218)]):null;_0x1a067d[_0x1fd97c(0x1ad)]?.['on']('data',_0x1b0b89=>{const _0x28fcfd=_0x1fd97c;_0x50e6cd+=_0x1b0b89[_0x28fcfd(0x190)]();}),_0x1a067d['stderr']?.['on']('data',_0xa220fe=>{_0x648a21+=_0xa220fe['toString']();}),_0x1a067d['on'](_0x16e092['xrYtp'],_0x148d8a=>{const _0x3025f3=_0x1fd97c;if(_0x1acf7c)_0x509ebd[_0x3025f3(0x1ff)](clearTimeout,_0x1acf7c);_0x2a762b(_0x148d8a);}),_0x1a067d['on'](_0x16e092[_0x1fd97c(0x20b)],(_0x243806,_0x8a668)=>{const _0x11a58c=_0x1fd97c;if(_0x1acf7c)clearTimeout(_0x1acf7c);if(_0x509ebd[_0x11a58c(0x247)](_0x243806,0x0)){_0x509ebd['TTtva'](_0x3685fa,{'stdout':_0x50e6cd,'stderr':_0x648a21,'invocation':_0x50b443});return;}const _0x518298=_0x303c1d?_0x11a58c(0x1cc)+_0x305590['timeoutMs']+'ms':'exited\x20with\x20code='+_0x509ebd['KbpmD'](_0x243806,_0x509ebd['WhHMQ'])+'\x20signal='+_0x509ebd[_0x11a58c(0x1b3)](_0x8a668,_0x11a58c(0x1c9));_0x2a762b(new Error(_0x11a58c(0x1e1)+_0x50b443[_0x11a58c(0x1f1)]+'\x20'+_0x518298+'\x0astdout:\x20'+truncateOutput(_0x50e6cd)+'\x0astderr:\x20'+_0x509ebd[_0x11a58c(0x1ff)](truncateOutput,_0x648a21)));});});}export function parseNovaActCliCommand(_0x54779f){const _0x17eee4=_0x54779f['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 _0x17eee4?.[0x1]??null;}export function extractNovaActLogDir(_0x1d2782){const _0x4fc87d=_0x1d53;try{const _0x2017bf=JSON['parse'](_0x1d2782),_0x58d28c=[_0x2017bf[_0x4fc87d(0x21e)],_0x2017bf['logsDirectory'],_0x2017bf['logs_dir'],_0x2017bf[_0x4fc87d(0x22f)],_0x2017bf[_0x4fc87d(0x23d)]],_0x5bd15f=_0x58d28c['find'](_0x3c6276=>typeof _0x3c6276==='string'&&_0x3c6276[_0x4fc87d(0x235)]()['length']>0x0);if(_0x5bd15f)return _0x5bd15f;}catch{}const _0x184a80=_0x1d2782[_0x4fc87d(0x239)](/(?:logs_directory|logsDirectory|log_dir|logDir|logs dir|logs directory)[:=]\s*["']?([^\s"',}]+)/i);return _0x184a80?.[0x1]??null;}export async function loadNovaActSessionExport(_0x339123){const _0x3df677=_0x1d53,_0x66dc18={'YXhpG':_0x3df677(0x1b9)};try{return JSON['parse'](await readFile(_0x339123,_0x66dc18[_0x3df677(0x1b4)]));}catch{return null;}}export async function hydrateNovaProfileFromStorageState(_0x4d293f){const _0x221a05=_0x1d53,_0x10f403={'kumkG':function(_0x170838,_0x1bc7d7){return _0x170838+_0x1bc7d7;},'VlSfd':function(_0x3bda9d,_0x4f9bd3){return _0x3bda9d/_0x4f9bd3;},'AeWjH':function(_0x14d7f5,_0x21aff0,_0x2dd3ae){return _0x14d7f5(_0x21aff0,_0x2dd3ae);},'fqQDw':'domcontentloaded'},_0x5d28f6=JSON['parse'](await readFile(_0x4d293f[_0x221a05(0x240)],'utf-8')),_0x38c757=await inspectNovaStorageStateFile(_0x4d293f[_0x221a05(0x240)]);await _0x10f403[_0x221a05(0x252)](mkdir,_0x4d293f[_0x221a05(0x246)],{'recursive':!![]});const _0x2a0a99=_0x10f403['AeWjH'](join,_0x4d293f[_0x221a05(0x246)],'Default'),_0xff2181=await inspectNovaProfileFiles({'userDataDir':_0x4d293f[_0x221a05(0x246)],'browserProfilePath':_0x2a0a99}),{browser:_0x2f6329,process:_0x14a0d1}=await launchNovaHydrationBrowser({'userDataDir':_0x4d293f['userDataDir'],'browserProfilePath':_0x2a0a99,'executablePath':_0x4d293f[_0x221a05(0x1c0)],'headless':_0x4d293f['headless'],'launchArgs':_0x4d293f['launchArgs']}),_0x5afb8f=_0x2f6329[_0x221a05(0x1e6)]()[0x0];if(!_0x5afb8f){await closeNovaHydrationBrowser(_0x2f6329,_0x14a0d1);throw new Error(_0x221a05(0x1e4));}let _0x446330=0x0,_0x204c90=0x0;try{const _0x28d2d0=_0x5d28f6[_0x221a05(0x1e2)]??[];if(_0x28d2d0[_0x221a05(0x250)]>0x0){const _0xc02501=_0x28d2d0['map'](_0x147fa0=>{const _0x323d75=_0x221a05;if(_0x147fa0[_0x323d75(0x1f9)]!==-0x1)return _0x147fa0;return _0x204c90+=0x1,{..._0x147fa0,'expires':_0x10f403['kumkG'](Math['floor'](_0x10f403['VlSfd'](Date[_0x323d75(0x1a3)](),0x3e8)),NOVA_PROMOTED_SESSION_COOKIE_TTL_SECONDS)};});await _0x5afb8f['addCookies'](_0xc02501);}for(const _0x33c908 of _0x5d28f6[_0x221a05(0x1c7)]??[]){if(!_0x33c908['localStorage']?.[_0x221a05(0x250)])continue;const _0x2883ab=await _0x5afb8f['newPage']();await _0x2883ab['goto'](_0x33c908[_0x221a05(0x206)],{'waitUntil':_0x221a05(0x1c1),'timeout':0x7530}),await _0x2883ab['evaluate'](_0x4b331a=>{const _0x41d71f=_0x221a05;for(const _0x1d034e of _0x4b331a){window['localStorage'][_0x41d71f(0x1b2)](_0x1d034e[_0x41d71f(0x1fb)],_0x1d034e['value']);}},_0x33c908[_0x221a05(0x1f4)]),_0x446330+=_0x33c908[_0x221a05(0x1f4)][_0x221a05(0x250)],await _0x2883ab['close']();}if(_0x4d293f[_0x221a05(0x1a0)]){const _0x4a9f45=await _0x5afb8f[_0x221a05(0x251)]();await _0x4a9f45['goto'](_0x4d293f['baseUrl'],{'waitUntil':_0x10f403[_0x221a05(0x236)],'timeout':0x7530}),await _0x4a9f45[_0x221a05(0x1a9)]();}await ensureChromeProfileShape(_0x4d293f[_0x221a05(0x246)],_0x2a0a99);}finally{await _0x10f403['AeWjH'](closeNovaHydrationBrowser,_0x2f6329,_0x14a0d1);}const _0xfe01de=await inspectNovaProfileFiles({'userDataDir':_0x4d293f['userDataDir'],'browserProfilePath':_0x2a0a99});return{'browserProfilePath':_0x2a0a99,'cookieCount':_0x5d28f6['cookies']?.[_0x221a05(0x250)]??0x0,'promotedSessionCookieCount':_0x204c90,'originCount':_0x5d28f6[_0x221a05(0x1c7)]?.[_0x221a05(0x250)]??0x0,'localStorageEntryCount':_0x446330,'storageStateDiagnostics':_0x38c757,'profileBefore':_0xff2181,'profileAfter':_0xfe01de};}async function launchNovaHydrationBrowser(_0x42887c){const _0x39dba3=_0x1d53,_0x5e7069={'VkGeM':function(_0x5a1844,_0x34fed3,_0x5ca1fd){return _0x5a1844(_0x34fed3,_0x5ca1fd);},'FfVSG':function(_0x2ae2bd){return _0x2ae2bd();},'hNAgI':_0x39dba3(0x24c),'xffCn':_0x39dba3(0x22c),'cLoJw':_0x39dba3(0x1f6),'FQPjp':_0x39dba3(0x1ef),'uiMyl':'pipe'};await _0x5e7069[_0x39dba3(0x249)](ensureChromeProfileShape,_0x42887c['userDataDir'],_0x42887c[_0x39dba3(0x231)]);const _0x25d26c=_0x42887c['executablePath']??chromium[_0x39dba3(0x1c0)](),_0x520e31=await _0x5e7069[_0x39dba3(0x1ba)](getAvailablePort),_0x59f9c5=[_0x39dba3(0x1e8)+_0x520e31,_0x39dba3(0x1be)+_0x42887c[_0x39dba3(0x246)],_0x5e7069['hNAgI'],_0x5e7069['xffCn'],_0x5e7069[_0x39dba3(0x255)],_0x5e7069[_0x39dba3(0x1d2)]];_0x42887c['headless']&&_0x59f9c5[_0x39dba3(0x22d)]('--headless=new');_0x59f9c5['push'](..._0x42887c[_0x39dba3(0x1f2)]??[]);const _0x4aa1f3=spawn(_0x25d26c,_0x59f9c5,{'stdio':[_0x39dba3(0x244),_0x5e7069['uiMyl'],_0x39dba3(0x1d4)]});try{const _0x2bba3c=await waitForCdpEndpoint(_0x4aa1f3,_0x520e31),_0x40c506=await chromium['connectOverCDP'](_0x2bba3c);return{'browser':_0x40c506,'process':_0x4aa1f3};}catch(_0x3fea4d){await terminateNovaHydrationBrowser(_0x4aa1f3);throw _0x3fea4d;}}async function closeNovaHydrationBrowser(_0x3060f5,_0x41b319){const _0x3f838c=_0x1d53,_0x26ff68={'xPSdW':function(_0x2bdb61,_0x326b11){return _0x2bdb61(_0x326b11);},'KbbYx':function(_0x4dd910,_0x1a9e06,_0x417cfb){return _0x4dd910(_0x1a9e06,_0x417cfb);}};try{await _0x3060f5[_0x3f838c(0x1a9)]();}catch{await _0x26ff68[_0x3f838c(0x1dd)](terminateNovaHydrationBrowser,_0x41b319);return;}const _0x3cad3d=await _0x26ff68[_0x3f838c(0x22a)](waitForProcessExit,_0x41b319,0x1388);!_0x3cad3d&&await _0x26ff68['xPSdW'](terminateNovaHydrationBrowser,_0x41b319);}async function terminateNovaHydrationBrowser(_0x52ef99){const _0x1e86f8=_0x1d53,_0x6c131e={'NAguw':function(_0xdf8da8,_0x558566){return _0xdf8da8!==_0x558566;},'zPgyN':function(_0x57a3cb,_0x4627c5,_0x49080d){return _0x57a3cb(_0x4627c5,_0x49080d);},'xTHkP':function(_0x305275,_0x402d8a){return _0x305275===_0x402d8a;},'hqizS':_0x1e86f8(0x192)};if(_0x6c131e['NAguw'](_0x52ef99[_0x1e86f8(0x23f)],null))return;try{_0x52ef99['kill']('SIGTERM');}catch{}await _0x6c131e['zPgyN'](waitForProcessExit,_0x52ef99,0x7d0);if(_0x6c131e[_0x1e86f8(0x1fa)](_0x52ef99['exitCode'],null)){try{_0x52ef99[_0x1e86f8(0x229)](_0x6c131e[_0x1e86f8(0x253)]);}catch{}await _0x6c131e[_0x1e86f8(0x195)](waitForProcessExit,_0x52ef99,0x7d0);}}async function waitForCdpEndpoint(_0x4c5b22,_0x5b3266){const _0x5ce5c7=_0x1d53,_0x6269f0={'jxjsH':function(_0x24308a,_0x5a5082){return _0x24308a<_0x5a5082;},'PChHw':function(_0x1a683f,_0x236681){return _0x1a683f(_0x236681);},'ttBnG':function(_0x3cd538,_0x10cdde){return _0x3cd538===_0x10cdde;},'DVFXP':_0x5ce5c7(0x21c)},_0x42274e=Date['now']();let _0x512648;while(_0x6269f0['jxjsH'](Date['now']()-_0x42274e,NOVA_PROFILE_HYDRATION_CDP_TIMEOUT_MS)){if(_0x4c5b22[_0x5ce5c7(0x23f)]!==null)throw new Error('Hydration\x20browser\x20exited\x20before\x20CDP\x20became\x20available\x20with\x20code\x20'+_0x4c5b22['exitCode']);try{const _0x2d3ec8=await _0x6269f0['PChHw'](fetch,_0x5ce5c7(0x1de)+_0x5b3266+'/json/version');if(_0x2d3ec8['ok']){const _0x18f93f=await _0x2d3ec8['json']();if(_0x6269f0['ttBnG'](typeof _0x18f93f[_0x5ce5c7(0x19a)],_0x6269f0[_0x5ce5c7(0x212)]))return _0x18f93f[_0x5ce5c7(0x19a)];}}catch(_0x293302){_0x512648=_0x293302;}await _0x6269f0[_0x5ce5c7(0x1b6)](delay,0x64);}const _0x57404f=_0x512648 instanceof Error?':\x20'+_0x512648['message']:'';throw new Error(_0x5ce5c7(0x1f5)+_0x57404f);}async function getAvailablePort(){const _0x206680=_0x1d53,_0x140848={'eakuK':_0x206680(0x1ac),'vljYk':function(_0x427591){return _0x427591();}};return new Promise((_0xbd47b6,_0x5475f3)=>{const _0x1589a5=_0x206680,_0x730df4=_0x140848[_0x1589a5(0x1af)](createServer);_0x730df4[_0x1589a5(0x1ea)](_0x1589a5(0x1df),_0x5475f3),_0x730df4['listen'](0x0,'127.0.0.1',()=>{const _0x54df27=_0x1589a5,_0x5cd4eb={'mRELC':function(_0x3e8ac6,_0x2192e8){return _0x3e8ac6===_0x2192e8;},'kXZdi':_0x140848[_0x54df27(0x19d)],'hiKrJ':function(_0x1ba944,_0x5a2f9a){return _0x1ba944(_0x5a2f9a);},'DiDmG':_0x54df27(0x1a1)},_0x538d55=_0x730df4[_0x54df27(0x1ae)]();_0x730df4[_0x54df27(0x1a9)](_0x24c949=>{const _0x455335=_0x54df27;if(_0x24c949){_0x5475f3(_0x24c949);return;}if(_0x5cd4eb['mRELC'](typeof _0x538d55,_0x5cd4eb[_0x455335(0x222)])&&_0x538d55?.['port']){_0xbd47b6(_0x538d55[_0x455335(0x1b0)]);return;}_0x5cd4eb[_0x455335(0x220)](_0x5475f3,new Error(_0x5cd4eb['DiDmG']));});});});}async function waitForProcessExit(_0xc2b3c2,_0x3ed3bf){const _0x26dfd9={'Ptatg':function(_0x2e1943){return _0x2e1943();},'ZGmtz':function(_0x19781e,_0x3bdc69){return _0x19781e(_0x3bdc69);},'Hshmx':'exit','iqJmj':function(_0x290e80,_0x2e36ff,_0x120fb3){return _0x290e80(_0x2e36ff,_0x120fb3);},'oIyze':function(_0x10a4eb,_0x1de953){return _0x10a4eb!==_0x1de953;}};if(_0x26dfd9['oIyze'](_0xc2b3c2['exitCode'],null))return!![];return new Promise(_0x334cff=>{const _0x498730=_0x1d53,_0x24cf1d={'FHoyY':function(_0x3ac2ad){return _0x3ac2ad();},'wiBhX':function(_0x7c97ed,_0x396cfd){const _0x4a5c65=_0x1d53;return _0x26dfd9[_0x4a5c65(0x227)](_0x7c97ed,_0x396cfd);}},_0x2bbe13=_0x26dfd9[_0x498730(0x191)](setTimeout,()=>{const _0x1e4ed6=_0x498730;_0x26dfd9['Ptatg'](_0x3b2392),_0x26dfd9[_0x1e4ed6(0x227)](_0x334cff,![]);},_0x3ed3bf),_0x3a99f0=()=>{_0x24cf1d['FHoyY'](_0x3b2392),_0x24cf1d['wiBhX'](_0x334cff,!![]);},_0x3b2392=()=>{const _0x4606b2=_0x498730;_0x26dfd9[_0x4606b2(0x227)](clearTimeout,_0x2bbe13),_0xc2b3c2[_0x4606b2(0x228)](_0x26dfd9['Hshmx'],_0x3a99f0);};_0xc2b3c2[_0x498730(0x1ea)](_0x26dfd9[_0x498730(0x219)],_0x3a99f0);});}async function delay(_0xf4192c){await new Promise(_0x24d830=>setTimeout(_0x24d830,_0xf4192c));}async function ensureChromeProfileShape(_0x3c12c6,_0x5ecf5d){const _0x581dce=_0x1d53,_0xfb66e9={'bgFPw':function(_0x518539,_0x1c7477,_0x494f7a){return _0x518539(_0x1c7477,_0x494f7a);},'dFcyc':'Local\x20State','XjkQU':function(_0x8b079c,_0x55bfdc){return _0x8b079c(_0x55bfdc);}};await _0xfb66e9['bgFPw'](mkdir,_0x5ecf5d,{'recursive':!![]}),await ensureJsonFile(_0xfb66e9[_0x581dce(0x19e)](join,_0x3c12c6,_0xfb66e9['dFcyc'])),await _0xfb66e9[_0x581dce(0x1a7)](ensureJsonFile,join(_0x5ecf5d,'Preferences'));}async function ensureJsonFile(_0x1d91f3){const _0x8ea3b7=_0x1d53,_0x47fe85={'UYoAc':function(_0x1a409c,_0x5bef2b){return _0x1a409c(_0x5bef2b);}};try{await _0x47fe85['UYoAc'](access,_0x1d91f3);}catch{await writeFile(_0x1d91f3,'{}',_0x8ea3b7(0x1b9));}}export function previewNovaActCliCommand(_0x405b02){const _0x2ddd1d={'PhHrw':function(_0x3e0908,_0xc37b12){return _0x3e0908(_0xc37b12);}};return _0x2ddd1d['PhHrw'](truncatePreview,_0x405b02);}
1
+ const _0x3a39a7=_0x5929;(function(_0x3e3bd2,_0x34d0ac){const _0xc7187=_0x5929,_0x3e1b81=_0x3e3bd2();while(!![]){try{const _0x5ac919=-parseInt(_0xc7187(0x1bc))/0x1+-parseInt(_0xc7187(0x123))/0x2*(-parseInt(_0xc7187(0x1cf))/0x3)+-parseInt(_0xc7187(0x15e))/0x4+-parseInt(_0xc7187(0x169))/0x5+parseInt(_0xc7187(0x14a))/0x6*(parseInt(_0xc7187(0x199))/0x7)+parseInt(_0xc7187(0x136))/0x8*(-parseInt(_0xc7187(0x178))/0x9)+parseInt(_0xc7187(0x16d))/0xa*(parseInt(_0xc7187(0x157))/0xb);if(_0x5ac919===_0x34d0ac)break;else _0x3e1b81['push'](_0x3e1b81['shift']());}catch(_0x42bbc4){_0x3e1b81['push'](_0x3e1b81['shift']());}}}(_0x33f8,0xcbc6a));import{spawn}from'child_process';import{createHash}from'crypto';import{access,chmod,mkdir,readFile,readdir,stat,writeFile}from'fs/promises';import{createServer}from'net';function _0x33f8(){const _0x4165f5=['NBEWt','\x0astderr:\x20','1448671XMogaI','CttIy','nova-act-browser','cdpEndpoint','value','--headless','vtHmN','stderr:\x20','utf-8','act\x20browser\x20doctor\x20--json\x20exited\x20with\x20code=','IszOE','update','logsDirectory','sessionId','jYkuv','pfBVK','RZoVH','hkXqC','cookies','Failed\x20to\x20allocate\x20hydration\x20browser\x20port','LHWjF','iiZGE','MNQds','userDataDir','subcommand','exitCode','FHHFd','close','hex','storageStatePath','Cookies','ktXnC','SIGTERM','http://127.0.0.1:','VVmPu','137365tGlngm','OXPai','addCookies','tool','localStorage','pipe','status','nova-act[cli]','SIGKILL','\x20signal=','Vizss','BaKuv','YkCOx','ZamHR','name','ignore','message','FKCDH','KAQoH','78900WoTIEm','\x20browser\x20\x22$@\x22\x20','ArBhP','VzMVC','\x20browser','lfhwO','browserProfilePath','parse','entries','Nova\x20Act\x20CLI\x20preflight\x20failed,\x20so\x20Ranger\x20did\x20not\x20start\x20a\x20browser\x20session.','38WZVkNm','push','LtLMq','acjVS','Local\x20State','TOGyW','browser','error','Hydration\x20browser\x20exited\x20before\x20CDP\x20became\x20available\x20with\x20code\x20','export','For\x20AWS\x20SSO,\x20set\x20AWS_PROFILE\x20and\x20run:\x20aws\x20sso\x20login\x20--profile\x20<profile>','IFqqK','ZsORy','logs_directory','EltBG','yhybp','length','Nova\x20profile\x20hydration\x20browser\x20did\x20not\x20expose\x20a\x20context','Fmbmj','45040xNQpLc','BvVEx','split','slice','unknown','mtimeMs','join','isDirectory','sort','\x0afi\x0a\x0aexec\x20','Ijxjs','executablePath','/.local/bin','PATH','headless','floor','OPcIb','digest','stderr','fail','6bBpkCX','dWStg','nova-act-cli\x20transport\x20requires\x20the\x20Nova\x20Act\x20CLI.\x20Ranger\x20could\x20not\x20find\x20`','ngvZr','checks','WILPb','now','raipo','NzVKd','sha256','VpFAR','string','timeoutMs','24242075DTKUJq','yxXfW','filter','--version','expires','null','CPNtj','4444148HcddQv','session','gbuTr','origin','vqtxI','ybYtr','Default','qQPLb','quaJA','\x0astdout:\x20','BUZzd','8146825NvdTgg','RNUfG','origins','map','20xFvWBN','stdout','kill','rg-','match','size','toString','data','--help','args','env','2241MenKgF','vdmLK','KMaIu','domcontentloaded','leveldb','naSYl','browserCommandPath','EgLRo','bucJz','byteLength','NwMuo','trim','--headed','Preferences','timed\x20out\x20after\x20','hIRJJ','--browser-profile-path','port','WSTff','`,\x20and\x20`uv`\x20is\x20not\x20available\x20to\x20install\x20it.\x0aInstall\x20uv,\x20or\x20run:\x20uv\x20tool\x20install\x20\x22','--json','find','address','aRBXP','--remote-debugging-port=','stdout:\x20','launchArgs','once','baseUrl','/opt/homebrew/bin','exit'];_0x33f8=function(){return _0x4165f5;};return _0x33f8();}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='act';export const NOVA_ACT_CLI_UV_PACKAGE=_0x3a39a7(0x1c3);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(_0x526123){const _0x5785f1=_0x3a39a7,_0x24030e=createHash(_0x5785f1(0x153))['update'](_0x526123)[_0x5785f1(0x147)]('hex')['slice'](0x0,0xc);return _0x5785f1(0x170)+_0x24030e;}export async function inspectNovaStorageStateFile(_0x17978c){const _0x14f08e=_0x3a39a7,_0x4301fe={'JnUZy':function(_0x553530,_0x405302){return _0x553530(_0x405302);},'ypwZw':function(_0x5c648a,_0x2986c4,_0xc83206){return _0x5c648a(_0x2986c4,_0xc83206);},'GUxOZ':function(_0x4a3818,_0x4ea3e1){return _0x4a3818(_0x4ea3e1);},'yZLDA':'sha256','EltBG':function(_0x11fcc0,_0x4493a7){return _0x11fcc0/_0x4493a7;},'hIRJJ':function(_0x38b5d5,_0x4c2c64){return _0x38b5d5 instanceof _0x4c2c64;},'XezdL':function(_0x32f0fb,_0x3ce54d){return _0x32f0fb instanceof _0x3ce54d;}};try{const [_0x4e6a93,_0x4fd9f4]=await Promise['all']([_0x4301fe['JnUZy'](stat,_0x17978c),_0x4301fe['ypwZw'](readFile,_0x17978c,'utf-8')]),_0x1ecb82={'path':_0x17978c,'exists':!![],'byteLength':Buffer[_0x14f08e(0x181)](_0x4fd9f4),'sha256':_0x4301fe['GUxOZ'](createHash,_0x4301fe['yZLDA'])[_0x14f08e(0x1a4)](_0x4fd9f4)['digest'](_0x14f08e(0x1b5))};try{const _0x2c4440=JSON['parse'](_0x4fd9f4),_0x284b08=_0x2c4440[_0x14f08e(0x1ab)]??[],_0x4b4ada=Math[_0x14f08e(0x145)](_0x4301fe[_0x14f08e(0x131)](Date['now'](),0x3e8)),_0x432cd2=new Map();for(const _0x4ccea6 of _0x284b08){const _0x11bc36=_0x432cd2['get'](_0x4ccea6['domain'])??[];_0x11bc36['push'](_0x4ccea6[_0x14f08e(0x1ca)]),_0x432cd2['set'](_0x4ccea6['domain'],_0x11bc36);}return{..._0x1ecb82,'byteLength':_0x4e6a93[_0x14f08e(0x172)],'cookieCount':_0x284b08[_0x14f08e(0x133)],'cookieDomains':[..._0x432cd2[_0x14f08e(0x121)]()]['sort'](([_0x3eac01],[_0xc165cd])=>_0x3eac01['localeCompare'](_0xc165cd))['map'](([_0x2dc487,_0x3a5e4e])=>({'domain':_0x2dc487,'count':_0x3a5e4e[_0x14f08e(0x133)],'names':_0x3a5e4e[_0x14f08e(0x13e)]()['slice'](0x0,0x19)})),'httpOnlyCookieCount':_0x284b08[_0x14f08e(0x159)](_0x443624=>_0x443624['httpOnly'])[_0x14f08e(0x133)],'secureCookieCount':_0x284b08['filter'](_0x300c93=>_0x300c93['secure'])['length'],'sessionCookieCount':_0x284b08['filter'](_0x5e5150=>_0x5e5150[_0x14f08e(0x15b)]===-0x1)['length'],'expiredCookieCount':_0x284b08['filter'](_0x2547d1=>typeof _0x2547d1['expires']==='number'&&_0x2547d1[_0x14f08e(0x15b)]>0x0&&_0x2547d1[_0x14f08e(0x15b)]<_0x4b4ada)[_0x14f08e(0x133)],'originCount':_0x2c4440[_0x14f08e(0x16b)]?.[_0x14f08e(0x133)]??0x0,'origins':(_0x2c4440['origins']??[])[_0x14f08e(0x16c)](_0x2ca46f=>({'origin':_0x2ca46f['origin'],'localStorageCount':_0x2ca46f['localStorage']?.[_0x14f08e(0x133)]??0x0,'localStorageKeys':_0x2ca46f['localStorage']?.[_0x14f08e(0x16c)](_0x3dc1b7=>_0x3dc1b7[_0x14f08e(0x1ca)])['sort']()[_0x14f08e(0x139)](0x0,0x19)??[]}))};}catch(_0x449edd){return{..._0x1ecb82,'byteLength':_0x4e6a93['size'],'parseError':_0x4301fe[_0x14f08e(0x187)](_0x449edd,Error)?_0x449edd[_0x14f08e(0x1cc)]:String(_0x449edd)};}}catch(_0xc9581b){return{'path':_0x17978c,'exists':![],'readError':_0x4301fe['XezdL'](_0xc9581b,Error)?_0xc9581b[_0x14f08e(0x1cc)]:_0x4301fe['JnUZy'](String,_0xc9581b)};}}function _0x5929(_0x3808e8,_0x59613b){_0x3808e8=_0x3808e8-0x120;const _0x33f84f=_0x33f8();let _0x5929f5=_0x33f84f[_0x3808e8];return _0x5929f5;}export async function inspectNovaProfileFiles(_0x349c99){const _0x3bdb6b=_0x3a39a7,_0x4a0234={'aRBXP':function(_0x42b033,_0x2c843d,_0x41affd){return _0x42b033(_0x2c843d,_0x41affd);},'NzVKd':'Preferences','LHWjF':function(_0x10e3bf,_0x10fb0b,_0x366272){return _0x10e3bf(_0x10fb0b,_0x366272);},'cVyQg':_0x3bdb6b(0x1b7),'dWStg':function(_0x5987b6,_0x3d4b8e){return _0x5987b6(_0x3d4b8e);},'RNUfG':function(_0x155339,_0x21efa3){return _0x155339(_0x21efa3);}},_0x5a9d52=_0x4a0234['aRBXP'](join,_0x349c99[_0x3bdb6b(0x1b0)],'Local\x20State'),_0x38d25d=_0x4a0234[_0x3bdb6b(0x18f)](join,_0x349c99[_0x3bdb6b(0x1d5)],_0x4a0234[_0x3bdb6b(0x152)]),_0x4134b4=_0x4a0234[_0x3bdb6b(0x1ad)](join,_0x349c99['browserProfilePath'],_0x4a0234['cVyQg']),_0x49fbde=join(_0x349c99[_0x3bdb6b(0x1d5)],'Network',_0x4a0234['cVyQg']),_0x4fff7e=join(_0x349c99['browserProfilePath'],'Local\x20Storage'),_0x2dc3c7=join(_0x4fff7e,_0x3bdb6b(0x17c)),[_0x20a949,_0x4dbd7e,_0x533ae8,_0x26495b,_0x6b2ab9,_0x211ede,_0x5bc1c4,_0x31c4a7,_0x10e21c,_0x567b86,_0x58f6c5]=await Promise['all']([_0x4a0234['dWStg'](inspectPath,_0x349c99[_0x3bdb6b(0x1b0)]),_0x4a0234[_0x3bdb6b(0x14b)](inspectPath,_0x349c99[_0x3bdb6b(0x1d5)]),inspectPath(_0x5a9d52),_0x4a0234[_0x3bdb6b(0x14b)](inspectPath,_0x38d25d),inspectPath(_0x4134b4),inspectPath(_0x49fbde),_0x4a0234['dWStg'](inspectPath,_0x4fff7e),_0x4a0234['dWStg'](inspectPath,_0x2dc3c7),listDir(_0x349c99[_0x3bdb6b(0x1b0)]),_0x4a0234[_0x3bdb6b(0x16a)](listDir,_0x349c99['browserProfilePath']),listDir(_0x2dc3c7)]);return{'userDataDir':_0x349c99[_0x3bdb6b(0x1b0)],'browserProfilePath':_0x349c99[_0x3bdb6b(0x1d5)],'rootEntries':_0x10e21c,'defaultEntries':_0x567b86,'localStorageEntries':_0x58f6c5,'paths':{'userDataDir':_0x20a949,'browserProfilePath':_0x4dbd7e,'localState':_0x533ae8,'preferences':_0x26495b,'cookies':_0x6b2ab9,'networkCookies':_0x211ede,'localStorage':_0x5bc1c4,'levelDb':_0x31c4a7}};}async function inspectPath(_0x27b922){const _0x40ebd0=_0x3a39a7;try{const _0x26b346=await stat(_0x27b922);return{'path':_0x27b922,'exists':!![],'isDirectory':_0x26b346[_0x40ebd0(0x13d)](),'byteLength':_0x26b346['isFile']()?_0x26b346[_0x40ebd0(0x172)]:undefined,'mtimeMs':_0x26b346[_0x40ebd0(0x13b)]};}catch(_0xa6cd93){return{'path':_0x27b922,'exists':![],'error':_0xa6cd93 instanceof Error?_0xa6cd93['message']:String(_0xa6cd93)};}}async function listDir(_0x1390d2){const _0x32ad14=_0x3a39a7,_0x20c041={'gbuTr':function(_0x434d69,_0x2d3e47){return _0x434d69(_0x2d3e47);}};try{return(await _0x20c041[_0x32ad14(0x160)](readdir,_0x1390d2))['sort']()['slice'](0x0,0x32);}catch{return undefined;}}function truncatePreview(_0x452185,_0x2c9c5d=NOVA_ACT_CLI_PREVIEW_LIMIT){const _0x263acb=_0x3a39a7,_0x53e3fd={'eLSHT':function(_0x47d8eb,_0x5481a6){return _0x47d8eb>_0x5481a6;}};return _0x53e3fd['eLSHT'](_0x452185[_0x263acb(0x133)],_0x2c9c5d)?_0x452185[_0x263acb(0x139)](0x0,_0x2c9c5d)+'...':_0x452185;}function truncateOutput(_0xbef7c7,_0x27a7ef=0x7d0){const _0x1e739f=_0x3a39a7,_0x1093ef={'WSTff':function(_0x34c283,_0x226ef9){return _0x34c283>_0x226ef9;},'PyZpf':function(_0xaca677,_0x25ace2){return _0xaca677+_0x25ace2;}};return _0x1093ef[_0x1e739f(0x18a)](_0xbef7c7[_0x1e739f(0x133)],_0x27a7ef)?_0x1093ef['PyZpf'](_0xbef7c7[_0x1e739f(0x139)](0x0,_0x27a7ef),'...'):_0xbef7c7;}function getNovaActCliBinDirs(_0x273feb){const _0x1b5ad7=_0x3a39a7,_0x2f1283={'KMaIu':_0x1b5ad7(0x195)};return[_0x273feb['UV_TOOL_BIN_DIR'],homedir()+_0x1b5ad7(0x142),_0x2f1283[_0x1b5ad7(0x17a)],'/usr/local/bin']['filter'](_0x1e6cfd=>Boolean(_0x1e6cfd));}function buildPathWithNovaActCliBins(_0x497408){const _0x13bf26=_0x3a39a7,_0x111442=new Set(),_0x2b1c3b=[...getNovaActCliBinDirs(_0x497408),...(_0x497408[_0x13bf26(0x143)]??'')[_0x13bf26(0x138)](delimiter)]['filter'](_0x38f9a6=>{if(!_0x38f9a6||_0x111442['has'](_0x38f9a6))return![];return _0x111442['add'](_0x38f9a6),!![];});return _0x2b1c3b[_0x13bf26(0x13c)](delimiter);}export function applyNovaActCliPath(_0x5a76b8){const _0x575365=_0x3a39a7;_0x5a76b8[_0x575365(0x143)]=buildPathWithNovaActCliBins(_0x5a76b8);}function withNovaActCliPath(_0x49c198){return{..._0x49c198,'PATH':buildPathWithNovaActCliBins(_0x49c198)};}function runBootstrapCommand(_0x1f4c10){const _0x5800e2=_0x3a39a7,_0x1c9538={'TOGyW':_0x5800e2(0x1c4),'LtLMq':'SIGTERM','mQNwn':_0x5800e2(0x15c),'PGopq':function(_0x502b1d,_0x151317,_0x2a8664,_0x35ef73){return _0x502b1d(_0x151317,_0x2a8664,_0x35ef73);},'EgLRo':function(_0x3e7dd9,_0x3fd0e8,_0x225162){return _0x3e7dd9(_0x3fd0e8,_0x225162);},'IszOE':_0x5800e2(0x174),'Fmbmj':_0x5800e2(0x12a)},{command:_0x509e94,args:_0x331e34,env:_0x7b65cd,timeoutMs:timeoutMs=NOVA_ACT_BOOTSTRAP_TIMEOUT_MS}=_0x1f4c10;return new Promise((_0x3468bd,_0x161c91)=>{const _0x157e40=_0x5800e2,_0x4b7d0d={'uzPBM':_0x1c9538[_0x157e40(0x128)],'NPrIy':_0x1c9538[_0x157e40(0x125)],'BRcKp':function(_0x3d1554,_0x4589d3,_0x3598bc){return _0x3d1554(_0x4589d3,_0x3598bc);},'acjVS':function(_0x284bd5,_0xb03852){return _0x284bd5(_0xb03852);},'oouKE':_0x1c9538['mQNwn']},_0x333b0f=_0x1c9538['PGopq'](spawn,_0x509e94,_0x331e34,{'env':_0x7b65cd,'stdio':['ignore','pipe','pipe']});let _0x354460='',_0x192fc7='',_0x315fa6=![];const _0x3d4fc9=_0x1c9538[_0x157e40(0x17f)](setTimeout,()=>{_0x315fa6=!![],_0x333b0f['kill'](_0x4b7d0d['NPrIy']),_0x4b7d0d['BRcKp'](setTimeout,()=>{const _0x16b55b=_0x5929;try{_0x333b0f[_0x16b55b(0x16f)](_0x4b7d0d['uzPBM']);}catch{}},0x3e8);},timeoutMs);_0x333b0f[_0x157e40(0x16e)]?.['on'](_0x1c9538[_0x157e40(0x1a3)],_0x323e40=>{_0x354460+=_0x323e40['toString']();}),_0x333b0f['stderr']?.['on'](_0x157e40(0x174),_0x598bce=>{const _0x29ced8=_0x157e40;_0x192fc7+=_0x598bce[_0x29ced8(0x173)]();}),_0x333b0f['on'](_0x1c9538[_0x157e40(0x135)],_0x1eeaec=>{const _0x47463f=_0x157e40;_0x4b7d0d[_0x47463f(0x126)](clearTimeout,_0x3d4fc9),_0x161c91(_0x1eeaec);}),_0x333b0f['on']('close',(_0x4c9aea,_0x2fe8a1)=>{const _0x21ec73=_0x157e40;clearTimeout(_0x3d4fc9);if(_0x4c9aea===0x0){_0x3468bd({'stdout':_0x354460,'stderr':_0x192fc7});return;}const _0x104e6c=_0x315fa6?_0x21ec73(0x186)+timeoutMs+'ms':'exited\x20with\x20code='+(_0x4c9aea??_0x21ec73(0x15c))+'\x20signal='+(_0x2fe8a1??_0x4b7d0d['oouKE']);_0x161c91(new Error(_0x509e94+'\x20'+_0x331e34[_0x21ec73(0x13c)]('\x20')+'\x20'+_0x104e6c+_0x21ec73(0x167)+truncateOutput(_0x354460)+_0x21ec73(0x198)+_0x4b7d0d[_0x21ec73(0x126)](truncateOutput,_0x192fc7)));});});}function runCommandAllowFailure(_0x22f44a){const _0x18b7a7=_0x3a39a7,_0x59b0e3={'bucJz':_0x18b7a7(0x1b9),'CPNtj':function(_0x4185b1,_0x3dbe7f,_0x4cb290){return _0x4185b1(_0x3dbe7f,_0x4cb290);},'WSxjw':function(_0x5db193,_0x3d745c){return _0x5db193(_0x3d745c);},'FKCDH':function(_0x49c2b2,_0x24571f,_0x5bb514,_0x589de6){return _0x49c2b2(_0x24571f,_0x5bb514,_0x589de6);},'BaKuv':'pipe','naSYl':'data','ybYtr':_0x18b7a7(0x1b4)},{command:_0x44ff4e,args:_0x37e2d5,env:_0x691423,timeoutMs:_0x1d84d3}=_0x22f44a;return new Promise((_0x45d230,_0xd70ca6)=>{const _0x3f8d9d=_0x18b7a7,_0xc0f8c3=_0x59b0e3[_0x3f8d9d(0x1cd)](spawn,_0x44ff4e,_0x37e2d5,{'env':_0x691423,'stdio':[_0x3f8d9d(0x1cb),_0x3f8d9d(0x1c1),_0x59b0e3[_0x3f8d9d(0x1c7)]]});let _0x263dec='',_0x3b0119='',_0x1fd783=![];const _0x57a6ea=setTimeout(()=>{const _0x278b1a=_0x3f8d9d;_0x1fd783=!![],_0xc0f8c3['kill'](_0x59b0e3[_0x278b1a(0x180)]),_0x59b0e3[_0x278b1a(0x15d)](setTimeout,()=>{const _0x5bc4e4=_0x278b1a;try{_0xc0f8c3[_0x5bc4e4(0x16f)](_0x5bc4e4(0x1c4));}catch{}},0x3e8);},_0x1d84d3);_0xc0f8c3[_0x3f8d9d(0x16e)]?.['on']('data',_0x1bc772=>{const _0x35416a=_0x3f8d9d;_0x263dec+=_0x1bc772[_0x35416a(0x173)]();}),_0xc0f8c3['stderr']?.['on'](_0x59b0e3[_0x3f8d9d(0x17d)],_0x3bfac6=>{_0x3b0119+=_0x3bfac6['toString']();}),_0xc0f8c3['on']('error',_0x2aa528=>{_0x59b0e3['WSxjw'](clearTimeout,_0x57a6ea),_0xd70ca6(_0x2aa528);}),_0xc0f8c3['on'](_0x59b0e3[_0x3f8d9d(0x163)],(_0x515994,_0x89caa)=>{_0x59b0e3['WSxjw'](clearTimeout,_0x57a6ea),_0x45d230({'code':_0x515994,'signal':_0x89caa,'stdout':_0x263dec,'stderr':_0x3b0119,'timedOut':_0x1fd783});});});}async function resolveActPath(_0x2a16c0){const _0x2a6be9=_0x3a39a7,_0x335a1d={'esMzu':function(_0x17ac07,_0x45491e){return _0x17ac07(_0x45491e);}},_0x2e9ff4=isAbsolute(NOVA_ACT_CLI_BINARY)?[NOVA_ACT_CLI_BINARY]:(_0x2a16c0[_0x2a6be9(0x143)]??'')[_0x2a6be9(0x138)](delimiter)[_0x2a6be9(0x159)](Boolean)['map'](_0x30997b=>join(_0x30997b,NOVA_ACT_CLI_BINARY));for(const _0x41d869 of _0x2e9ff4){try{return await _0x335a1d['esMzu'](access,_0x41d869),_0x41d869;}catch{}}return null;}async function checkNovaActCli(_0x4539e8){const _0x515c4d=_0x3a39a7,_0x53a606={'ncxJh':function(_0x4ecfa8,_0x3b50ec){return _0x4ecfa8(_0x3b50ec);},'iZgFW':_0x515c4d(0x129),'CttIy':_0x515c4d(0x175)};try{return await _0x53a606['ncxJh'](runBootstrapCommand,{'command':NOVA_ACT_CLI_BINARY,'args':[_0x53a606['iZgFW'],_0x53a606[_0x515c4d(0x19a)]],'env':_0x4539e8,'timeoutMs':0x7530}),await _0x53a606['ncxJh'](resolveActPath,_0x4539e8)??NOVA_ACT_CLI_BINARY;}catch{return null;}}export async function ensureNovaActCliInstalled(_0x41cab8={}){const _0x424dff=_0x3a39a7,_0x1690b6={'QyTlf':function(_0x40f5bb,_0x27141b){return _0x40f5bb(_0x27141b);},'wYysP':_0x424dff(0x15a),'ktXnC':function(_0x23cb15,_0x5e1d44){return _0x23cb15 instanceof _0x5e1d44;},'FGOPW':function(_0x175d62,_0x13477c){return _0x175d62(_0x13477c);},'OPcIb':function(_0x3e442a,_0x490adc){return _0x3e442a(_0x490adc);},'hkXqC':function(_0x1c310b,_0x2c44e1){return _0x1c310b(_0x2c44e1);},'TqaUz':function(_0x3a1977,_0x40cfbb){return _0x3a1977(_0x40cfbb);}},_0x2394db=withNovaActCliPath(_0x41cab8['env']??process['env']),_0x4c594e=await _0x1690b6['QyTlf'](checkNovaActCli,_0x2394db);if(_0x4c594e)return{'installed':![],'actPath':_0x4c594e,'uvPackage':NOVA_ACT_CLI_UV_PACKAGE,'stdout':'','stderr':''};try{await runBootstrapCommand({'command':'uv','args':[_0x1690b6['wYysP']],'env':_0x2394db,'timeoutMs':0x7530});}catch(_0x18483e){throw new Error(_0x424dff(0x14c)+NOVA_ACT_CLI_BINARY+_0x424dff(0x18b)+NOVA_ACT_CLI_UV_PACKAGE+'\x22\x0a'+(_0x1690b6[_0x424dff(0x1b8)](_0x18483e,Error)?_0x18483e[_0x424dff(0x1cc)]:_0x1690b6['FGOPW'](String,_0x18483e)));}const _0x25d831=await _0x1690b6[_0x424dff(0x146)](runBootstrapCommand,{'command':'uv','args':[_0x424dff(0x1bf),'install',NOVA_ACT_CLI_UV_PACKAGE],'env':_0x2394db,'timeoutMs':_0x41cab8['timeoutMs']??NOVA_ACT_BOOTSTRAP_TIMEOUT_MS}),_0x3fec34=await _0x1690b6[_0x424dff(0x1aa)](checkNovaActCli,_0x2394db);if(!_0x3fec34)throw new Error('Installed\x20'+NOVA_ACT_CLI_UV_PACKAGE+',\x20but\x20`'+NOVA_ACT_CLI_BINARY+'\x20browser\x20--help`\x20is\x20still\x20unavailable.\x20Ensure\x20'+getNovaActCliBinDirs(_0x2394db)[_0x424dff(0x13c)](',\x20')+'\x20is\x20on\x20PATH.\x0astdout:\x20'+_0x1690b6['QyTlf'](truncateOutput,_0x25d831[_0x424dff(0x16e)])+_0x424dff(0x198)+_0x1690b6['TqaUz'](truncateOutput,_0x25d831['stderr']));return{'installed':!![],'actPath':_0x3fec34,'uvPackage':NOVA_ACT_CLI_UV_PACKAGE,'stdout':_0x25d831[_0x424dff(0x16e)],'stderr':_0x25d831['stderr']};}function parseNovaActDoctorOutput(_0x2f7299){const _0x288b85=_0x3a39a7;try{return JSON[_0x288b85(0x120)](_0x2f7299);}catch{return null;}}function buildNovaActCliPreflightError(_0x287870){const _0x29acae=_0x3a39a7,_0x426a7d={'iiZGE':function(_0x1d41d1,_0x4432f6){return _0x1d41d1>_0x4432f6;},'QBhhV':function(_0x5907c7,_0x326560){return _0x5907c7??_0x326560;},'bYCee':_0x29acae(0x15c),'yxXfW':function(_0x5436cb,_0x1956a2){return _0x5436cb(_0x1956a2);},'ngvZr':function(_0x4d2429,_0x25ab42){return _0x4d2429(_0x25ab42);},'QhmDG':'Configure\x20Nova\x20Act\x20with\x20NOVA_ACT_API_KEY,\x20run\x20act\x20browser\x20setup\x20--api-key\x20<key>,\x20or\x20configure\x20AWS\x20credentials.'},{checks:_0x16ba16,stdout:_0x3745ba,stderr:_0x3562f5,env:_0x5b52b0,code:_0x514a33,signal:_0x12a68c,timedOut:_0x2afb52}=_0x287870,_0x4f67a1=_0x16ba16['filter'](_0xb0fc2b=>_0xb0fc2b[_0x29acae(0x1c2)]===_0x29acae(0x149)),_0x267fe7=_0x426a7d[_0x29acae(0x1ae)](_0x4f67a1['length'],0x0)?_0x4f67a1['map'](_0x596f17=>{const _0x59356c=_0x29acae,_0x57b12c=_0x596f17['fix']?'\x20Fix:\x20'+_0x596f17['fix']:'';return'-\x20'+_0x596f17[_0x59356c(0x1ca)]+':\x20'+_0x596f17[_0x59356c(0x1cc)]+'.'+_0x57b12c;})['join']('\x0a'):[_0x2afb52?'act\x20browser\x20doctor\x20--json\x20timed\x20out':_0x29acae(0x1a2)+_0x426a7d['QBhhV'](_0x514a33,_0x426a7d['bYCee'])+_0x29acae(0x1c5)+(_0x12a68c??'null'),_0x3745ba?_0x29acae(0x191)+_0x426a7d[_0x29acae(0x158)](truncateOutput,_0x3745ba):'',_0x3562f5?_0x29acae(0x1a0)+_0x426a7d[_0x29acae(0x14d)](truncateOutput,_0x3562f5):'']['filter'](Boolean)[_0x29acae(0x13c)]('\x0a'),_0x5ebd81=_0x5b52b0['AWS_PROFILE']?.['trim'](),_0x3f350d=_0x5ebd81?'For\x20AWS\x20SSO,\x20run:\x20aws\x20sso\x20login\x20--profile\x20'+_0x5ebd81:_0x29acae(0x12d);return new Error([_0x29acae(0x122),_0x267fe7,_0x426a7d['QhmDG'],_0x3f350d][_0x29acae(0x13c)]('\x0a'));}export async function preflightNovaActCli(_0x348c0c={}){const _0x1c9ae1=_0x3a39a7,_0x107b09={'EIHVD':function(_0x38ee2a,_0x5897c2){return _0x38ee2a(_0x5897c2);},'vqtxI':function(_0x3be570,_0x19e2bf){return _0x3be570!==_0x19e2bf;},'lfhwO':function(_0x150b22,_0x2cd0b6){return _0x150b22(_0x2cd0b6);}},_0x4f085a=_0x107b09['EIHVD'](withNovaActCliPath,_0x348c0c['env']??process['env']),_0x13801a=await runCommandAllowFailure({'command':NOVA_ACT_CLI_BINARY,'args':[_0x1c9ae1(0x129),'doctor',_0x1c9ae1(0x18c)],'env':_0x4f085a,'timeoutMs':_0x348c0c['timeoutMs']??0x7530}),_0x498089=parseNovaActDoctorOutput(_0x13801a['stdout']),_0x319d1e=_0x498089?.['data']?.[_0x1c9ae1(0x14e)]??[],_0xd71b43=_0x319d1e['some'](_0x48c2f6=>_0x48c2f6[_0x1c9ae1(0x1c2)]==='fail');if(_0x107b09[_0x1c9ae1(0x162)](_0x13801a['code'],0x0)||_0x13801a['timedOut']||_0xd71b43)throw _0x107b09[_0x1c9ae1(0x1d4)](buildNovaActCliPreflightError,{'checks':_0x319d1e,'stdout':_0x13801a[_0x1c9ae1(0x16e)],'stderr':_0x13801a[_0x1c9ae1(0x148)],'env':_0x4f085a,'code':_0x13801a['code'],'signal':_0x13801a['signal'],'timedOut':_0x13801a['timedOut']});return{'checks':_0x319d1e,'logDir':_0x498089?.['log_dir']??_0x498089?.['logDir']};}function getNovaActCliSubcommand(_0x1a97c6){const _0x4ab31a=_0x3a39a7,[_0x42b0e7=_0x4ab31a(0x13a),_0x1329bc]=_0x1a97c6;return _0x42b0e7==='session'&&_0x1329bc?_0x42b0e7+'\x20'+_0x1329bc:_0x42b0e7;}function supportsBrowserSessionOptions(_0x2f3223){const _0x2c9be1=_0x3a39a7,_0x5e747c={'dDlhV':function(_0x220513,_0x2f5fca){return _0x220513===_0x2f5fca;},'xXxwI':function(_0x6f2175,_0xb2d5e0){return _0x6f2175===_0xb2d5e0;},'oYyTO':'export','ZsORy':function(_0x3141c2,_0x4afd0e){return _0x3141c2===_0x4afd0e;},'CclGd':_0x2c9be1(0x1b4)};return!(_0x5e747c['dDlhV'](_0x2f3223[0x0],_0x2c9be1(0x15f))&&(_0x5e747c['xXxwI'](_0x2f3223[0x1],_0x5e747c['oYyTO'])||_0x5e747c[_0x2c9be1(0x12f)](_0x2f3223[0x1],_0x5e747c['CclGd'])));}function buildSharedArgs(_0xa02170,_0x4e9ce5){const _0x196d80=_0x3a39a7,_0x1b2148={'gOtlP':_0x196d80(0x18c),'Lajbo':'--quiet','jYkuv':_0x196d80(0x19e),'ReQHG':_0x196d80(0x184),'WILPb':_0x196d80(0x188),'quaJA':'--executable-path','jBGTV':'--cdp'},_0x37b47a=['--session-id',_0xa02170[_0x196d80(0x1a6)],_0x1b2148['gOtlP']];if(supportsBrowserSessionOptions(_0x4e9ce5)){_0x37b47a[_0x196d80(0x124)](_0x1b2148['Lajbo']),_0x37b47a['push'](_0xa02170[_0x196d80(0x144)]?_0x1b2148[_0x196d80(0x1a7)]:_0x1b2148['ReQHG']);_0xa02170[_0x196d80(0x1d5)]&&_0x37b47a[_0x196d80(0x124)](_0x1b2148[_0x196d80(0x14f)],_0xa02170['browserProfilePath']);_0xa02170['executablePath']&&_0x37b47a[_0x196d80(0x124)](_0x1b2148[_0x196d80(0x166)],_0xa02170[_0x196d80(0x141)]);_0xa02170[_0x196d80(0x19c)]&&_0x37b47a[_0x196d80(0x124)](_0x1b2148['jBGTV'],_0xa02170['cdpEndpoint']);for(const _0x459431 of _0xa02170[_0x196d80(0x192)]??[]){_0x37b47a['push']('--launch-arg='+_0x459431);}}return _0x37b47a;}export function buildNovaActCliInvocation(_0x463b03,_0x3677f5){const _0x406678=_0x3a39a7,_0x229e55={'VzMVC':_0x406678(0x129),'KAQoH':function(_0x232e39,_0xdad71b){return _0x232e39(_0xdad71b);}},_0x441be6=buildSharedArgs(_0x463b03,_0x3677f5),_0x5dd2cb=[_0x406678(0x129),..._0x3677f5,..._0x441be6];return{'command':NOVA_ACT_CLI_BINARY,'args':_0x5dd2cb,'shellCommand':[NOVA_ACT_CLI_BINARY,_0x229e55[_0x406678(0x1d2)],..._0x3677f5[_0x406678(0x16c)](quoteShellArg),..._0x441be6['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x229e55[_0x406678(0x1ce)](getNovaActCliSubcommand,_0x3677f5)};}export function buildNovaActCliCommandPrefix(){const _0xfa5968=_0x3a39a7;return NOVA_ACT_CLI_BINARY+_0xfa5968(0x1d3);}export function buildNovaActCliBrowserWrapperPath(_0x9b3af3){const _0x4550bb=_0x3a39a7,_0x2f5028={'IxFII':_0x4550bb(0x19b)};return join(dirname(_0x9b3af3['userDataDir']),_0x2f5028['IxFII']);}export async function writeNovaActCliBrowserWrapper(_0x2b7a48){const _0x3e62c0=_0x3a39a7,_0x2bdfe7={'XRHWQ':function(_0x43cba2,_0x1c2042){return _0x43cba2(_0x1c2042);},'ArBhP':_0x3e62c0(0x12c),'raipo':function(_0xb2e190,_0x173de8,_0x5c1816){return _0xb2e190(_0x173de8,_0x5c1816);},'lkWmE':_0x3e62c0(0x1a1)},_0x3e540b=_0x2b7a48[_0x3e62c0(0x17e)]??_0x2bdfe7['XRHWQ'](buildNovaActCliBrowserWrapperPath,_0x2b7a48),_0x1e4a9f=buildSharedArgs(_0x2b7a48,['execute'])['map'](quoteShellArg)['join']('\x20'),_0x2979e5=buildSharedArgs(_0x2b7a48,['session',_0x2bdfe7[_0x3e62c0(0x1d1)]])['map'](quoteShellArg)['join']('\x20');return await _0x2bdfe7[_0x3e62c0(0x151)](mkdir,_0x2bdfe7['XRHWQ'](dirname,_0x3e540b),{'recursive':!![]}),await _0x2bdfe7[_0x3e62c0(0x151)](mkdir,_0x2b7a48[_0x3e62c0(0x1b0)],{'recursive':!![]}),await writeFile(_0x3e540b,'#!/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)+_0x3e62c0(0x1d0)+_0x2979e5+_0x3e62c0(0x13f)+quoteShellArg(NOVA_ACT_CLI_BINARY)+_0x3e62c0(0x1d0)+_0x1e4a9f+'\x0a',_0x2bdfe7['lkWmE']),await _0x2bdfe7['raipo'](chmod,_0x3e540b,0x1ed),_0x3e540b;}export function buildNovaActCliSharedOptionsSuffix(_0x205ac0,_0xdee2b=['execute']){const _0x36f0db=_0x3a39a7;return buildSharedArgs(_0x205ac0,_0xdee2b)[_0x36f0db(0x16c)](quoteShellArg)[_0x36f0db(0x13c)]('\x20');}export async function runNovaActCliCommand(_0x302e2e){const _0x45a5bc=_0x3a39a7,_0x3d06b6={'kNgUD':_0x45a5bc(0x1b9),'Hdldk':function(_0x2f6d17,_0x152623){return _0x2f6d17(_0x152623);},'NwMuo':_0x45a5bc(0x1c1),'cAuiQ':function(_0x1e9c60,_0x11365e){return _0x1e9c60>_0x11365e;},'nbHIa':_0x45a5bc(0x174),'IFqqK':'error','MYcnB':'close','XUgOR':function(_0x5d84fe,_0x26a1d5,_0x5d2681){return _0x5d84fe(_0x26a1d5,_0x5d2681);}};await _0x3d06b6['XUgOR'](mkdir,_0x302e2e['userDataDir'],{'recursive':!![]});const _0x3d31bd=buildNovaActCliInvocation(_0x302e2e,_0x302e2e['commandArgs']);return new Promise((_0x3b4376,_0x13e168)=>{const _0x338b60=_0x45a5bc,_0x1b3f7c={'Ijxjs':function(_0x569137,_0x200d62){return _0x569137===_0x200d62;},'VpFAR':_0x338b60(0x15c),'BUZzd':function(_0x22fa62,_0x30c3ce){return _0x22fa62(_0x30c3ce);}},_0x1a8d08=spawn(_0x3d31bd['command'],_0x3d31bd[_0x338b60(0x176)],{'cwd':_0x302e2e['cwd'],'env':_0x302e2e[_0x338b60(0x177)],'stdio':[_0x338b60(0x1cb),_0x3d06b6[_0x338b60(0x182)],'pipe']});let _0x483dd3='',_0x189a14='',_0x3447eb=![];const _0x51d4f0=_0x302e2e['timeoutMs']&&_0x3d06b6['cAuiQ'](_0x302e2e[_0x338b60(0x156)],0x0)?setTimeout(()=>{_0x3447eb=!![],_0x1a8d08['kill'](_0x3d06b6['kNgUD']),setTimeout(()=>{const _0x55c4f1=_0x5929;try{_0x1a8d08[_0x55c4f1(0x16f)]('SIGKILL');}catch{}},0x3e8);},_0x302e2e[_0x338b60(0x156)]):null;_0x1a8d08['stdout']?.['on']('data',_0x59c3bb=>{_0x483dd3+=_0x59c3bb['toString']();}),_0x1a8d08[_0x338b60(0x148)]?.['on'](_0x3d06b6['nbHIa'],_0x412a48=>{_0x189a14+=_0x412a48['toString']();}),_0x1a8d08['on'](_0x3d06b6[_0x338b60(0x12e)],_0x382f27=>{if(_0x51d4f0)_0x3d06b6['Hdldk'](clearTimeout,_0x51d4f0);_0x3d06b6['Hdldk'](_0x13e168,_0x382f27);}),_0x1a8d08['on'](_0x3d06b6['MYcnB'],(_0x2db132,_0x4503a8)=>{const _0x371215=_0x338b60;if(_0x51d4f0)clearTimeout(_0x51d4f0);if(_0x1b3f7c[_0x371215(0x140)](_0x2db132,0x0)){_0x3b4376({'stdout':_0x483dd3,'stderr':_0x189a14,'invocation':_0x3d31bd});return;}const _0x23e26b=_0x3447eb?_0x371215(0x186)+_0x302e2e[_0x371215(0x156)]+'ms':'exited\x20with\x20code='+(_0x2db132??_0x371215(0x15c))+_0x371215(0x1c5)+(_0x4503a8??_0x1b3f7c[_0x371215(0x154)]);_0x13e168(new Error('nova-act-cli\x20'+_0x3d31bd[_0x371215(0x1b1)]+'\x20'+_0x23e26b+'\x0astdout:\x20'+_0x1b3f7c[_0x371215(0x168)](truncateOutput,_0x483dd3)+_0x371215(0x198)+_0x1b3f7c[_0x371215(0x168)](truncateOutput,_0x189a14)));});});}export function parseNovaActCliCommand(_0x292a5e){const _0x197a5f=_0x3a39a7,_0x1a971d=_0x292a5e[_0x197a5f(0x171)](/(?:^|\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 _0x1a971d?.[0x1]??null;}export function extractNovaActLogDir(_0x40bd8a){const _0x2e5239=_0x3a39a7;try{const _0x22f82f=JSON[_0x2e5239(0x120)](_0x40bd8a),_0x399fad=[_0x22f82f[_0x2e5239(0x130)],_0x22f82f[_0x2e5239(0x1a5)],_0x22f82f['logs_dir'],_0x22f82f['logDir'],_0x22f82f['log_dir']],_0x17e652=_0x399fad[_0x2e5239(0x18d)](_0x1d5288=>typeof _0x1d5288==='string'&&_0x1d5288[_0x2e5239(0x183)]()['length']>0x0);if(_0x17e652)return _0x17e652;}catch{}const _0x124ce1=_0x40bd8a[_0x2e5239(0x171)](/(?:logs_directory|logsDirectory|log_dir|logDir|logs dir|logs directory)[:=]\s*["']?([^\s"',}]+)/i);return _0x124ce1?.[0x1]??null;}export async function loadNovaActSessionExport(_0xd105c5){const _0x3f101=_0x3a39a7;try{return JSON[_0x3f101(0x120)](await readFile(_0xd105c5,'utf-8'));}catch{return null;}}export async function hydrateNovaProfileFromStorageState(_0x27b8f8){const _0x425d52=_0x3a39a7,_0x4efe0b={'vdmLK':function(_0xccf95b,_0x309c91,_0x53e4f2){return _0xccf95b(_0x309c91,_0x53e4f2);},'wEkqI':function(_0x31004b,_0x1d7e01){return _0x31004b(_0x1d7e01);},'YkCOx':function(_0x4c9c0d,_0x2ab1c0,_0x2b23ec){return _0x4c9c0d(_0x2ab1c0,_0x2b23ec);},'NVsju':_0x425d52(0x164),'vtHmN':_0x425d52(0x134),'VyXoi':function(_0x2c7c02,_0x482d4b){return _0x2c7c02>_0x482d4b;},'TEbfG':_0x425d52(0x17b),'VVmPu':function(_0x51d047,_0x353f07,_0x40bb80){return _0x51d047(_0x353f07,_0x40bb80);},'heKLW':function(_0x2e1c20,_0x1f9945){return _0x2e1c20(_0x1f9945);}},_0x3a8a70=JSON[_0x425d52(0x120)](await _0x4efe0b[_0x425d52(0x179)](readFile,_0x27b8f8[_0x425d52(0x1b6)],_0x425d52(0x1a1))),_0x3d48dc=await _0x4efe0b['wEkqI'](inspectNovaStorageStateFile,_0x27b8f8[_0x425d52(0x1b6)]);await _0x4efe0b[_0x425d52(0x179)](mkdir,_0x27b8f8[_0x425d52(0x1b0)],{'recursive':!![]});const _0x4f6e19=_0x4efe0b[_0x425d52(0x1c8)](join,_0x27b8f8['userDataDir'],_0x4efe0b['NVsju']),_0x4f25ea=await inspectNovaProfileFiles({'userDataDir':_0x27b8f8['userDataDir'],'browserProfilePath':_0x4f6e19}),{browser:_0x1fa1ea,process:_0x5d52e5}=await _0x4efe0b['wEkqI'](launchNovaHydrationBrowser,{'userDataDir':_0x27b8f8['userDataDir'],'browserProfilePath':_0x4f6e19,'executablePath':_0x27b8f8['executablePath'],'headless':_0x27b8f8['headless'],'launchArgs':_0x27b8f8[_0x425d52(0x192)]}),_0x29867d=_0x1fa1ea['contexts']()[0x0];if(!_0x29867d){await closeNovaHydrationBrowser(_0x1fa1ea,_0x5d52e5);throw new Error(_0x4efe0b[_0x425d52(0x19f)]);}let _0xaf1a08=0x0,_0x658ae5=0x0;try{const _0x3eab87=_0x3a8a70['cookies']??[];if(_0x4efe0b['VyXoi'](_0x3eab87['length'],0x0)){const _0x5a26e5=_0x3eab87['map'](_0x47c0b5=>{const _0x10faef=_0x425d52;if(_0x47c0b5['expires']!==-0x1)return _0x47c0b5;return _0x658ae5+=0x1,{..._0x47c0b5,'expires':Math[_0x10faef(0x145)](Date['now']()/0x3e8)+NOVA_PROMOTED_SESSION_COOKIE_TTL_SECONDS};});await _0x29867d[_0x425d52(0x1be)](_0x5a26e5);}for(const _0x43c9ee of _0x3a8a70[_0x425d52(0x16b)]??[]){if(!_0x43c9ee['localStorage']?.[_0x425d52(0x133)])continue;const _0x24dbb0=await _0x29867d['newPage']();await _0x24dbb0['goto'](_0x43c9ee[_0x425d52(0x161)],{'waitUntil':_0x4efe0b['TEbfG'],'timeout':0x7530}),await _0x24dbb0['evaluate'](_0x2c5f30=>{const _0x4954fb=_0x425d52;for(const _0x429f2a of _0x2c5f30){window[_0x4954fb(0x1c0)]['setItem'](_0x429f2a['name'],_0x429f2a[_0x4954fb(0x19d)]);}},_0x43c9ee['localStorage']),_0xaf1a08+=_0x43c9ee[_0x425d52(0x1c0)][_0x425d52(0x133)],await _0x24dbb0['close']();}if(_0x27b8f8[_0x425d52(0x194)]){const _0x50729f=await _0x29867d['newPage']();await _0x50729f['goto'](_0x27b8f8[_0x425d52(0x194)],{'waitUntil':_0x425d52(0x17b),'timeout':0x7530}),await _0x50729f[_0x425d52(0x1b4)]();}await _0x4efe0b[_0x425d52(0x1bb)](ensureChromeProfileShape,_0x27b8f8['userDataDir'],_0x4f6e19);}finally{await closeNovaHydrationBrowser(_0x1fa1ea,_0x5d52e5);}const _0x11a2a0=await _0x4efe0b['heKLW'](inspectNovaProfileFiles,{'userDataDir':_0x27b8f8['userDataDir'],'browserProfilePath':_0x4f6e19});return{'browserProfilePath':_0x4f6e19,'cookieCount':_0x3a8a70[_0x425d52(0x1ab)]?.[_0x425d52(0x133)]??0x0,'promotedSessionCookieCount':_0x658ae5,'originCount':_0x3a8a70[_0x425d52(0x16b)]?.[_0x425d52(0x133)]??0x0,'localStorageEntryCount':_0xaf1a08,'storageStateDiagnostics':_0x3d48dc,'profileBefore':_0x4f25ea,'profileAfter':_0x11a2a0};}async function launchNovaHydrationBrowser(_0xa8bc75){const _0x2ac905=_0x3a39a7,_0x5a16a1={'wkcqx':'--profile-directory=Default','JAxuv':'--headless=new','zqFDN':_0x2ac905(0x1cb),'RZoVH':'pipe'};await ensureChromeProfileShape(_0xa8bc75[_0x2ac905(0x1b0)],_0xa8bc75['browserProfilePath']);const _0x3d320b=_0xa8bc75[_0x2ac905(0x141)]??chromium[_0x2ac905(0x141)](),_0x61bd81=await getAvailablePort(),_0x582b30=[_0x2ac905(0x190)+_0x61bd81,'--user-data-dir='+_0xa8bc75['userDataDir'],_0x5a16a1['wkcqx'],'--window-size=1280,720','--no-first-run','--remote-allow-origins=http://localhost'];_0xa8bc75[_0x2ac905(0x144)]&&_0x582b30['push'](_0x5a16a1['JAxuv']);_0x582b30['push'](..._0xa8bc75[_0x2ac905(0x192)]??[]);const _0x432be5=spawn(_0x3d320b,_0x582b30,{'stdio':[_0x5a16a1['zqFDN'],_0x5a16a1[_0x2ac905(0x1a9)],_0x5a16a1['RZoVH']]});try{const _0x47bce0=await waitForCdpEndpoint(_0x432be5,_0x61bd81),_0xf0f913=await chromium['connectOverCDP'](_0x47bce0);return{'browser':_0xf0f913,'process':_0x432be5};}catch(_0x3c2a10){await terminateNovaHydrationBrowser(_0x432be5);throw _0x3c2a10;}}async function closeNovaHydrationBrowser(_0x17a1c9,_0x233c6c){const _0x2befd2=_0x3a39a7,_0x4d7e2a={'vdhpv':function(_0x4eace4,_0xc3e159){return _0x4eace4(_0xc3e159);}};try{await _0x17a1c9[_0x2befd2(0x1b4)]();}catch{await _0x4d7e2a['vdhpv'](terminateNovaHydrationBrowser,_0x233c6c);return;}const _0x552e4e=await waitForProcessExit(_0x233c6c,0x1388);!_0x552e4e&&await _0x4d7e2a['vdhpv'](terminateNovaHydrationBrowser,_0x233c6c);}async function terminateNovaHydrationBrowser(_0x14a3b7){const _0x292224=_0x3a39a7,_0x5f430d={'qQPLb':_0x292224(0x1b9),'pfBVK':function(_0x3ba4dd,_0x5a6543,_0x5f0d0e){return _0x3ba4dd(_0x5a6543,_0x5f0d0e);}};if(_0x14a3b7['exitCode']!==null)return;try{_0x14a3b7['kill'](_0x5f430d[_0x292224(0x165)]);}catch{}await waitForProcessExit(_0x14a3b7,0x7d0);if(_0x14a3b7[_0x292224(0x1b2)]===null){try{_0x14a3b7[_0x292224(0x16f)]('SIGKILL');}catch{}await _0x5f430d[_0x292224(0x1a8)](waitForProcessExit,_0x14a3b7,0x7d0);}}async function waitForCdpEndpoint(_0x412fc4,_0x544af1){const _0xbfd960=_0x3a39a7,_0x297579={'FHHFd':function(_0x9301df,_0x4af198){return _0x9301df<_0x4af198;},'dGeud':function(_0x55da77,_0x472052){return _0x55da77-_0x472052;},'Vizss':function(_0x359f0b,_0x288e14){return _0x359f0b!==_0x288e14;},'AClEX':function(_0x40c472,_0x4492d8){return _0x40c472===_0x4492d8;},'BhMvX':_0xbfd960(0x155),'wmjgB':function(_0x2371f3,_0xc21fe6){return _0x2371f3(_0xc21fe6);},'gcPiY':function(_0x227ecc,_0x2f9cc3){return _0x227ecc instanceof _0x2f9cc3;}},_0x387381=Date['now']();let _0x155ff6;while(_0x297579[_0xbfd960(0x1b3)](_0x297579['dGeud'](Date[_0xbfd960(0x150)](),_0x387381),NOVA_PROFILE_HYDRATION_CDP_TIMEOUT_MS)){if(_0x297579[_0xbfd960(0x1c6)](_0x412fc4[_0xbfd960(0x1b2)],null))throw new Error(_0xbfd960(0x12b)+_0x412fc4['exitCode']);try{const _0x4ae760=await fetch(_0xbfd960(0x1ba)+_0x544af1+'/json/version');if(_0x4ae760['ok']){const _0xb7cea7=await _0x4ae760['json']();if(_0x297579['AClEX'](typeof _0xb7cea7['webSocketDebuggerUrl'],_0x297579['BhMvX']))return _0xb7cea7['webSocketDebuggerUrl'];}}catch(_0x4038d0){_0x155ff6=_0x4038d0;}await _0x297579['wmjgB'](delay,0x64);}const _0x133c6f=_0x297579['gcPiY'](_0x155ff6,Error)?':\x20'+_0x155ff6['message']:'';throw new Error('Timed\x20out\x20waiting\x20for\x20hydration\x20browser\x20CDP'+_0x133c6f);}async function getAvailablePort(){const _0xdbacc4=_0x3a39a7,_0x1fdc83={'MtdXI':function(_0x4a6711,_0x365d19){return _0x4a6711(_0x365d19);},'DxnyB':'object','nQBWz':_0xdbacc4(0x1ac)};return new Promise((_0x574687,_0x36506f)=>{const _0x2c6854=_0xdbacc4,_0xc3e340={'UCPVR':function(_0x5a82b5,_0x3af015){return _0x1fdc83['MtdXI'](_0x5a82b5,_0x3af015);},'ZamHR':_0x1fdc83['DxnyB'],'yhybp':_0x1fdc83['nQBWz']},_0x2d5edd=createServer();_0x2d5edd[_0x2c6854(0x193)]('error',_0x36506f),_0x2d5edd['listen'](0x0,'127.0.0.1',()=>{const _0x1e7d43=_0x2c6854,_0x5a8872=_0x2d5edd[_0x1e7d43(0x18e)]();_0x2d5edd[_0x1e7d43(0x1b4)](_0x7b7283=>{const _0x5b5a0f=_0x1e7d43;if(_0x7b7283){_0xc3e340['UCPVR'](_0x36506f,_0x7b7283);return;}if(typeof _0x5a8872===_0xc3e340[_0x5b5a0f(0x1c9)]&&_0x5a8872?.['port']){_0x574687(_0x5a8872[_0x5b5a0f(0x189)]);return;}_0x36506f(new Error(_0xc3e340[_0x5b5a0f(0x132)]));});});});}async function waitForProcessExit(_0x212af1,_0x25ad60){const _0x4e64e4=_0x3a39a7,_0x31c6b5={'MNQds':function(_0x124b61,_0x4162ee,_0x3f7d20){return _0x124b61(_0x4162ee,_0x3f7d20);},'yDJhx':_0x4e64e4(0x196)};if(_0x212af1['exitCode']!==null)return!![];return new Promise(_0x5b9fdd=>{const _0x5cc50f=_0x4e64e4,_0xe6a232={'BvVEx':function(_0x5a9d16){return _0x5a9d16();},'NfpSQ':function(_0x3df2b8,_0x2cd980){return _0x3df2b8(_0x2cd980);},'pFOPf':'exit'},_0x222380=_0x31c6b5[_0x5cc50f(0x1af)](setTimeout,()=>{_0x13467c(),_0x5b9fdd(![]);},_0x25ad60),_0x4b3d68=()=>{const _0x18a450=_0x5cc50f;_0xe6a232[_0x18a450(0x137)](_0x13467c),_0x5b9fdd(!![]);},_0x13467c=()=>{_0xe6a232['NfpSQ'](clearTimeout,_0x222380),_0x212af1['off'](_0xe6a232['pFOPf'],_0x4b3d68);};_0x212af1[_0x5cc50f(0x193)](_0x31c6b5['yDJhx'],_0x4b3d68);});}async function delay(_0xc90806){await new Promise(_0x332815=>setTimeout(_0x332815,_0xc90806));}async function ensureChromeProfileShape(_0x38ef49,_0x4a567b){const _0x2fc0c5=_0x3a39a7,_0x5bca01={'NBEWt':function(_0x1e449e,_0x5b6273,_0x4e8947){return _0x1e449e(_0x5b6273,_0x4e8947);},'BcixB':function(_0x4bf267,_0x282bc4){return _0x4bf267(_0x282bc4);},'XzgaN':function(_0x192c4a,_0x340e0f){return _0x192c4a(_0x340e0f);}};await _0x5bca01[_0x2fc0c5(0x197)](mkdir,_0x4a567b,{'recursive':!![]}),await _0x5bca01['BcixB'](ensureJsonFile,join(_0x38ef49,_0x2fc0c5(0x127))),await _0x5bca01['XzgaN'](ensureJsonFile,_0x5bca01['NBEWt'](join,_0x4a567b,_0x2fc0c5(0x185)));}async function ensureJsonFile(_0x365a3b){const _0xcb5dd3=_0x3a39a7,_0x4e4df7={'OXPai':function(_0xf9c512,_0x256847){return _0xf9c512(_0x256847);},'RiHwT':_0xcb5dd3(0x1a1)};try{await _0x4e4df7[_0xcb5dd3(0x1bd)](access,_0x365a3b);}catch{await writeFile(_0x365a3b,'{}',_0x4e4df7['RiHwT']);}}export function previewNovaActCliCommand(_0x36957a){return truncatePreview(_0x36957a);}
@@ -1 +1 @@
1
- function _0x25ce(){var _0x41072f=['5260297ztxXRO','env','75770pZyksc','63YUNbdc','2387sEGAXf','366hyFKET','.config','1277328QTczth','4716bqzJVm','2358BlsScz','opencode','XDG_CONFIG_HOME','898513stdcjN','QEuyy','.opencode','32705dEiIlq','OPENCODE_CONFIG_DIR','Tezmd','Tgbfv','825304eXpJes'];_0x25ce=function(){return _0x41072f;};return _0x25ce();}(function(_0x312261,_0x339a3b){var _0x130994=_0x3009,_0x5c9843=_0x312261();while(!![]){try{var _0x4a3bbc=parseInt(_0x130994(0x92))/0x1+-parseInt(_0x130994(0x8d))/0x2+parseInt(_0x130994(0x8f))/0x3*(-parseInt(_0x130994(0x8e))/0x4)+-parseInt(_0x130994(0x95))/0x5*(parseInt(_0x130994(0x8b))/0x6)+-parseInt(_0x130994(0x9a))/0x7+parseInt(_0x130994(0x99))/0x8*(parseInt(_0x130994(0x9d))/0x9)+-parseInt(_0x130994(0x9c))/0xa*(-parseInt(_0x130994(0x8a))/0xb);if(_0x4a3bbc===_0x339a3b)break;else _0x5c9843['push'](_0x5c9843['shift']());}catch(_0x316664){_0x5c9843['push'](_0x5c9843['shift']());}}}(_0x25ce,0x860a9));import{homedir}from'os';function _0x3009(_0x3bcf04,_0x17ea00){_0x3bcf04=_0x3bcf04-0x8a;var _0x25ce4f=_0x25ce();var _0x30090c=_0x25ce4f[_0x3bcf04];return _0x30090c;}import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x95d2ea){var _0x4ebdb5=_0x3009,_0x52b44d={'Tgbfv':function(_0x58c751,_0x601670){return _0x58c751===_0x601670;},'QEuyy':'user','Tezmd':_0x4ebdb5(0x94)};if(process['env'][_0x4ebdb5(0x96)])return process[_0x4ebdb5(0x9b)][_0x4ebdb5(0x96)];if(_0x52b44d[_0x4ebdb5(0x98)](_0x95d2ea,_0x52b44d[_0x4ebdb5(0x93)])){if(process[_0x4ebdb5(0x9b)]['XDG_CONFIG_HOME'])return join(process['env'][_0x4ebdb5(0x91)],_0x4ebdb5(0x90));return join(homedir(),_0x4ebdb5(0x8c),_0x4ebdb5(0x90));}return join(getProjectRoot(),_0x52b44d[_0x4ebdb5(0x97)]);}export function getOpencodeSkillsDir(_0x22329f){var _0x66f606={'OpFSw':function(_0x764424,_0x5327ac){return _0x764424(_0x5327ac);}};return join(_0x66f606['OpFSw'](getOpencodeConfigDir,_0x22329f),'skills');}
1
+ (function(_0x317889,_0x2afc35){var _0x3c1954=_0x1fb7,_0x4da11c=_0x317889();while(!![]){try{var _0xdd81bf=-parseInt(_0x3c1954(0xe6))/0x1+parseInt(_0x3c1954(0xe4))/0x2*(parseInt(_0x3c1954(0xe2))/0x3)+-parseInt(_0x3c1954(0xdb))/0x4*(-parseInt(_0x3c1954(0xdf))/0x5)+-parseInt(_0x3c1954(0xe9))/0x6+parseInt(_0x3c1954(0xde))/0x7*(parseInt(_0x3c1954(0xdc))/0x8)+parseInt(_0x3c1954(0xeb))/0x9+-parseInt(_0x3c1954(0xdd))/0xa*(-parseInt(_0x3c1954(0xe7))/0xb);if(_0xdd81bf===_0x2afc35)break;else _0x4da11c['push'](_0x4da11c['shift']());}catch(_0x8c0f42){_0x4da11c['push'](_0x4da11c['shift']());}}}(_0x1fe0,0x88251));import{homedir}from'os';import{join}from'path';function _0x1fe0(){var _0x457f8c=['.opencode','962877GFqvLR','1140590HUQmWC','AFiUn','3116472VJwptE','PSQph','743517VOfePk','env','vAymp','gcNed','skills','QhDtT','user','OPENCODE_CONFIG_DIR','16gNrOpR','479848NPTrsS','20QGtvOE','21DyKVHP','1061345gPAijN','.config','opencode','6kfbNcp','eRrHA','720926EErgCk'];_0x1fe0=function(){return _0x457f8c;};return _0x1fe0();}import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x518e1c){var _0x3ea501=_0x1fb7,_0x3f5547={'eRrHA':function(_0x5415dd,_0x4f540f){return _0x5415dd===_0x4f540f;},'gcNed':function(_0x360e6c,_0x3ec597,_0x1f92d4){return _0x360e6c(_0x3ec597,_0x1f92d4);},'lCoeE':_0x3ea501(0xe1),'QhDtT':function(_0x40cf76,_0x5348e2,_0x1969d2,_0x3dc6c4){return _0x40cf76(_0x5348e2,_0x1969d2,_0x3dc6c4);},'PSQph':function(_0x1e15f3){return _0x1e15f3();},'vAymp':_0x3ea501(0xe0)};if(process['env']['OPENCODE_CONFIG_DIR'])return process[_0x3ea501(0xec)][_0x3ea501(0xda)];if(_0x3f5547[_0x3ea501(0xe3)](_0x518e1c,_0x3ea501(0xd9))){if(process[_0x3ea501(0xec)]['XDG_CONFIG_HOME'])return _0x3f5547[_0x3ea501(0xd6)](join,process[_0x3ea501(0xec)]['XDG_CONFIG_HOME'],_0x3f5547['lCoeE']);return _0x3f5547[_0x3ea501(0xd8)](join,_0x3f5547['PSQph'](homedir),_0x3f5547[_0x3ea501(0xed)],'opencode');}return join(_0x3f5547[_0x3ea501(0xea)](getProjectRoot),_0x3ea501(0xe5));}function _0x1fb7(_0x308031,_0x2d61f0){_0x308031=_0x308031-0xd6;var _0x1fe09d=_0x1fe0();var _0x1fb73c=_0x1fe09d[_0x308031];return _0x1fb73c;}export function getOpencodeSkillsDir(_0x4d0a1c){var _0xff1b28=_0x1fb7,_0xf1f1a8={'AFiUn':function(_0x39549c,_0xd25174,_0x4026cb){return _0x39549c(_0xd25174,_0x4026cb);}};return _0xf1f1a8[_0xff1b28(0xe8)](join,getOpencodeConfigDir(_0x4d0a1c),_0xff1b28(0xd7));}
@@ -1 +1 @@
1
- (function(_0x8cacf1,_0x399754){const _0x317bb0=_0x112d,_0x359742=_0x8cacf1();while(!![]){try{const _0x5afb72=parseInt(_0x317bb0(0x198))/0x1*(parseInt(_0x317bb0(0x19e))/0x2)+-parseInt(_0x317bb0(0x1a4))/0x3*(parseInt(_0x317bb0(0x1a1))/0x4)+parseInt(_0x317bb0(0x19b))/0x5*(-parseInt(_0x317bb0(0x197))/0x6)+parseInt(_0x317bb0(0x19f))/0x7*(-parseInt(_0x317bb0(0x1a3))/0x8)+parseInt(_0x317bb0(0x1a5))/0x9+-parseInt(_0x317bb0(0x1a2))/0xa+-parseInt(_0x317bb0(0x192))/0xb*(-parseInt(_0x317bb0(0x196))/0xc);if(_0x5afb72===_0x399754)break;else _0x359742['push'](_0x359742['shift']());}catch(_0x25f9b2){_0x359742['push'](_0x359742['shift']());}}}(_0x1c1e,0x4bade));import{getApiBaseUrl}from'./environment.js';function _0x1c1e(){const _0x5b78bd=['ZIHxJ','830910xnYyYB','variableName','\x20must\x20be\x20a\x20string\x20or\x20number','2tgzBNp','2443RhWwQN','QulXu','4KvggMk','95210PrfbOY','9368sOGhiw','204987TvMOnV','1934307gEZZBU','/organization/environment-variables','set','No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','7491vYzcex','Failed\x20to\x20fetch\x20organization\x20environment\x20variable\x20','number','all','11196mlnFOQ','6nOoTqZ','112397DCXUOq','status'];_0x1c1e=function(){return _0x5b78bd;};return _0x1c1e();}function _0x112d(_0x30d32f,_0x40db12){_0x30d32f=_0x30d32f-0x18f;const _0x1c1e85=_0x1c1e();let _0x112d26=_0x1c1e85[_0x30d32f];return _0x112d26;}import{getToken}from'./keychain.js';async function getOrganizationEnvironmentVariable(_0x10fc44){const _0x196021=_0x112d,_0x5b04ef={'CzwNe':function(_0x2396a2){return _0x2396a2();},'MDvuT':_0x196021(0x19c),'cPFzk':function(_0x5d879d,_0x2595f1,_0x45793c){return _0x5d879d(_0x2595f1,_0x45793c);},'LXwqY':function(_0x2ddefd,_0x376ad6){return _0x2ddefd===_0x376ad6;},'QulXu':function(_0x564221,_0xc2669b){return _0x564221===_0xc2669b;},'UVgWk':function(_0x343364,_0x74f4e){return _0x343364===_0x74f4e;},'cRfTe':function(_0x5c405f,_0x1feeca){return _0x5c405f===_0x1feeca;},'ZOGcr':'string','UVPjN':function(_0x25aab9,_0x40ccda){return _0x25aab9===_0x40ccda;},'ZIHxJ':_0x196021(0x194)},_0x8f5bab=await getToken();if(!_0x8f5bab)throw new Error(_0x196021(0x191));const _0x46cce3=new URL(_0x5b04ef['CzwNe'](getApiBaseUrl)+_0x196021(0x18f));_0x46cce3['searchParams'][_0x196021(0x190)](_0x5b04ef['MDvuT'],_0x10fc44);const _0x4d1af0=await _0x5b04ef['cPFzk'](fetch,_0x46cce3,{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x8f5bab}});if(_0x5b04ef['LXwqY'](_0x4d1af0['status'],0x194))return null;if(!_0x4d1af0['ok']){const _0x5c2a43=await _0x4d1af0['text']();throw new Error(_0x196021(0x193)+_0x10fc44+':\x20'+_0x4d1af0[_0x196021(0x199)]+'\x20'+_0x5c2a43);}const _0xc168d6=await _0x4d1af0['json'](),_0x394b69=_0xc168d6[_0x10fc44];if(_0x5b04ef[_0x196021(0x1a0)](_0x394b69,undefined)||_0x5b04ef['UVgWk'](_0x394b69,null))return null;if(_0x5b04ef['cRfTe'](typeof _0x394b69,_0x5b04ef['ZOGcr'])||_0x5b04ef['UVPjN'](typeof _0x394b69,_0x5b04ef[_0x196021(0x19a)]))return String(_0x394b69);throw new Error('Organization\x20environment\x20variable\x20'+_0x10fc44+_0x196021(0x19d));}export async function getOrganizationEnvironmentVariables(_0x2175b2){const _0x3fa4b6=_0x112d,_0x18a457=Array['from'](new Set(_0x2175b2)),_0x5fbbed=await Promise[_0x3fa4b6(0x195)](_0x18a457['map'](async _0x9e69a8=>{const _0x307f19=await getOrganizationEnvironmentVariable(_0x9e69a8);return _0x307f19===null?null:[_0x9e69a8,_0x307f19];}));return Object['fromEntries'](_0x5fbbed['filter'](_0x59a41a=>Boolean(_0x59a41a)));}
1
+ (function(_0x3d8f35,_0x2390c2){const _0x514d82=_0x49ad,_0x5c7360=_0x3d8f35();while(!![]){try{const _0x165920=parseInt(_0x514d82(0x77))/0x1*(parseInt(_0x514d82(0x71))/0x2)+parseInt(_0x514d82(0x84))/0x3*(-parseInt(_0x514d82(0x72))/0x4)+parseInt(_0x514d82(0x86))/0x5*(-parseInt(_0x514d82(0x79))/0x6)+-parseInt(_0x514d82(0x80))/0x7*(-parseInt(_0x514d82(0x73))/0x8)+parseInt(_0x514d82(0x7f))/0x9+parseInt(_0x514d82(0x75))/0xa+-parseInt(_0x514d82(0x78))/0xb*(parseInt(_0x514d82(0x89))/0xc);if(_0x165920===_0x2390c2)break;else _0x5c7360['push'](_0x5c7360['shift']());}catch(_0x393fd3){_0x5c7360['push'](_0x5c7360['shift']());}}}(_0x4488,0x2f481));function _0x4488(){const _0x5a787b=['variableName','912840aNFzrU','ctsnR','1118kLXecH','16jdOlcB','264EgaxoL','/organization/environment-variables','3721160alxtKT','QpUSr','642XEbZnJ','110aQpckt','106572cSALqE','BHTkr','Failed\x20to\x20fetch\x20organization\x20environment\x20variable\x20','from','JYUMV','oIfYV','3425472yeALxb','41279NUnydI','string','searchParams','fromEntries','250557VKaUsj','GET','5FyiccN','\x20must\x20be\x20a\x20string\x20or\x20number'];_0x4488=function(){return _0x5a787b;};return _0x4488();}function _0x49ad(_0x4e6dfa,_0x24fd5b){_0x4e6dfa=_0x4e6dfa-0x70;const _0x4488e0=_0x4488();let _0x49ad9e=_0x4488e0[_0x4e6dfa];return _0x49ad9e;}import{getApiBaseUrl}from'./environment.js';import{getToken}from'./keychain.js';async function getOrganizationEnvironmentVariable(_0x4ffe1f){const _0xe81199=_0x49ad,_0x12175f={'QpUSr':function(_0x50a3bd){return _0x50a3bd();},'oIfYV':_0xe81199(0x88),'BHTkr':function(_0x1b426a,_0x51202b,_0x9be7dc){return _0x1b426a(_0x51202b,_0x9be7dc);},'ctsnR':function(_0x344f9a,_0x28518e){return _0x344f9a===_0x28518e;},'JYUMV':function(_0x1972dc,_0x149358){return _0x1972dc===_0x149358;},'Qphck':'number'},_0x11734c=await _0x12175f['QpUSr'](getToken);if(!_0x11734c)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x2ceb5c=new URL(_0x12175f[_0xe81199(0x76)](getApiBaseUrl)+_0xe81199(0x74));_0x2ceb5c[_0xe81199(0x82)]['set'](_0x12175f[_0xe81199(0x7e)],_0x4ffe1f);const _0x3015eb=await _0x12175f[_0xe81199(0x7a)](fetch,_0x2ceb5c,{'method':_0xe81199(0x85),'headers':{'Authorization':'Bearer\x20'+_0x11734c}});if(_0x12175f[_0xe81199(0x70)](_0x3015eb['status'],0x194))return null;if(!_0x3015eb['ok']){const _0x4e4adc=await _0x3015eb['text']();throw new Error(_0xe81199(0x7b)+_0x4ffe1f+':\x20'+_0x3015eb['status']+'\x20'+_0x4e4adc);}const _0x39bbac=await _0x3015eb['json'](),_0x50b592=_0x39bbac[_0x4ffe1f];if(_0x12175f[_0xe81199(0x70)](_0x50b592,undefined)||_0x12175f[_0xe81199(0x7d)](_0x50b592,null))return null;if(typeof _0x50b592===_0xe81199(0x81)||typeof _0x50b592===_0x12175f['Qphck'])return String(_0x50b592);throw new Error('Organization\x20environment\x20variable\x20'+_0x4ffe1f+_0xe81199(0x87));}export async function getOrganizationEnvironmentVariables(_0x477881){const _0x5f1fc0=_0x49ad,_0x384467=Array[_0x5f1fc0(0x7c)](new Set(_0x477881)),_0xcfcc42=await Promise['all'](_0x384467['map'](async _0x469e36=>{const _0x39f347=await getOrganizationEnvironmentVariable(_0x469e36);return _0x39f347===null?null:[_0x469e36,_0x39f347];}));return Object[_0x5f1fc0(0x83)](_0xcfcc42['filter'](_0x489f8b=>Boolean(_0x489f8b)));}
@@ -1 +1 @@
1
- const _0x426462=_0x496b;function _0x496b(_0x243a26,_0x275c91){_0x243a26=_0x243a26-0x1d7;const _0x551222=_0x5512();let _0x496b5b=_0x551222[_0x243a26];return _0x496b5b;}function _0x5512(){const _0x235fd9=['toString','pTLsR','match','string','cwd','3XUdGlz','@playwright/cli','27324xoevSe','null','\x0astderr:\x20','join','jQfFl','\x27\x5c\x27\x27','640528XLVQxs','8TOkoaB','cmd','DscCB','UiOHM','timed\x20out\x20after\x20','unknown','TpjWZ','1075755CxalCa','length','update','ALtcC','close','6lylrDR','timeoutMs','YZchK','test','stdout','SIGTERM','uPMJm','configPath','exited\x20with\x20code=','hex','AfOcd','3190WCCEgg','-s=','790ILAFlb','command','...','playwright-cli\x20','iZOaW','228118xKbjwa','env','rg-','map','slice','wtYfP','642772NAMGSV','digest','--config','stderr','pipe','ZsciZ','uhBxG','400049WzsPzp'];_0x5512=function(){return _0x235fd9;};return _0x5512();}(function(_0x5941aa,_0x4fa32a){const _0x2142b7=_0x496b,_0x5400a5=_0x5941aa();while(!![]){try{const _0x407212=parseInt(_0x2142b7(0x1da))/0x1+parseInt(_0x2142b7(0x207))/0x2+-parseInt(_0x2142b7(0x1e0))/0x3*(parseInt(_0x2142b7(0x20d))/0x4)+-parseInt(_0x2142b7(0x1f0))/0x5*(parseInt(_0x2142b7(0x1f5))/0x6)+parseInt(_0x2142b7(0x1e8))/0x7+parseInt(_0x2142b7(0x1e9))/0x8*(-parseInt(_0x2142b7(0x1e2))/0x9)+-parseInt(_0x2142b7(0x202))/0xa*(parseInt(_0x2142b7(0x200))/0xb);if(_0x407212===_0x4fa32a)break;else _0x5400a5['push'](_0x5400a5['shift']());}catch(_0x3b6df5){_0x5400a5['push'](_0x5400a5['shift']());}}}(_0x5512,0x31c2e));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x426462(0x1e1);function toPlaywrightCliSessionKey(_0x3c2cbb){const _0x2ac83a=_0x426462,_0x1b2f4b={'WfMSL':function(_0x242f45,_0x1b316d){return _0x242f45(_0x1b316d);},'pXXHg':_0x2ac83a(0x1fe)},_0x1bbdfc=_0x1b2f4b['WfMSL'](createHash,'sha256')[_0x2ac83a(0x1f2)](_0x3c2cbb)[_0x2ac83a(0x20e)](_0x1b2f4b['pXXHg'])[_0x2ac83a(0x20b)](0x0,0xc);return _0x2ac83a(0x209)+_0x1bbdfc;}function shellQuote(_0x15c045){const _0x499e5f=_0x426462;return'\x27'+_0x15c045['replace'](/'/g,_0x499e5f(0x1e7))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x2daa41){const _0x27b4cd=_0x426462;return SAFE_SHELL_TOKEN[_0x27b4cd(0x1f8)](_0x2daa41)?_0x2daa41:shellQuote(_0x2daa41);}export function buildPlaywrightCliInvocation(_0x227c93,_0xac9876,_0x2e4d73){const _0x1c42fc=_0x426462,_0x18c72e={'uhBxG':function(_0x30e182,_0x2bbb4c){return _0x30e182(_0x2bbb4c);},'pTLsR':_0x1c42fc(0x1ee),'UiOHM':'npx','iZOaW':'--config'},_0x42b642=_0x18c72e[_0x1c42fc(0x1d9)](toPlaywrightCliSessionKey,_0x227c93),[_0x59d541=_0x18c72e[_0x1c42fc(0x1dc)]]=_0x2e4d73,_0x136cd0=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x42b642,'--config',_0xac9876,..._0x2e4d73];return{'command':_0x18c72e[_0x1c42fc(0x1ec)],'args':_0x136cd0,'shellCommand':['npx',PLAYWRIGHT_CLI_BINARY,_0x1c42fc(0x201)+quoteShellArg(_0x42b642),_0x18c72e[_0x1c42fc(0x206)],quoteShellArg(_0xac9876),..._0x2e4d73[_0x1c42fc(0x20a)](quoteShellArg)][_0x1c42fc(0x1e5)]('\x20'),'subcommand':_0x59d541};}export function buildPlaywrightCliCommandPrefix(_0x2860a8,_0x36c020){const _0x4112be=_0x426462,_0x3dc569={'yybmA':function(_0x41108b,_0xd50776){return _0x41108b(_0xd50776);},'ALtcC':'npx','AfOcd':_0x4112be(0x20f)},_0x59a2b0=_0x3dc569['yybmA'](toPlaywrightCliSessionKey,_0x2860a8);return[_0x3dc569[_0x4112be(0x1f3)],PLAYWRIGHT_CLI_BINARY,_0x4112be(0x201)+quoteShellArg(_0x59a2b0),_0x3dc569[_0x4112be(0x1ff)],quoteShellArg(_0x36c020)][_0x4112be(0x1e5)]('\x20');}function truncateOutput(_0x2ccd5a,_0xa5064c=0x7d0){const _0x46db42=_0x426462,_0x165140={'DscCB':function(_0x3dd6e1,_0x27e93b){return _0x3dd6e1>_0x27e93b;},'YZchK':function(_0x47de15,_0x132f54){return _0x47de15+_0x132f54;}};return _0x165140[_0x46db42(0x1eb)](_0x2ccd5a[_0x46db42(0x1f1)],_0xa5064c)?_0x165140[_0x46db42(0x1f7)](_0x2ccd5a[_0x46db42(0x20b)](0x0,_0xa5064c),_0x46db42(0x204)):_0x2ccd5a;}export async function runPlaywrightCliCommand(_0x3dac09){const _0x490f42=_0x426462,_0x3eb479={'ZDEzd':function(_0x3dd7d5,_0x557b3d){return _0x3dd7d5(_0x557b3d);},'ZsciZ':function(_0x396b0e,_0x57f8fb){return _0x396b0e===_0x57f8fb;},'TpjWZ':_0x490f42(0x1e3),'iWpRQ':function(_0x190dfa,_0x191d35){return _0x190dfa(_0x191d35);},'RJyqN':function(_0x5505a8,_0x2e1f55,_0xb2678c,_0x29c3d8){return _0x5505a8(_0x2e1f55,_0xb2678c,_0x29c3d8);},'zfjnc':'pipe','uPMJm':'data'},_0x15eda0=buildPlaywrightCliInvocation(_0x3dac09['sessionId'],_0x3dac09[_0x490f42(0x1fc)],_0x3dac09['commandArgs']);return new Promise((_0x4c93f1,_0x4a5d2b)=>{const _0xa1d0e2=_0x490f42,_0x4b2212=_0x3eb479['RJyqN'](spawn,_0x15eda0['command'],_0x15eda0['args'],{'cwd':_0x3dac09[_0xa1d0e2(0x1df)],'env':_0x3dac09[_0xa1d0e2(0x208)],'stdio':['ignore',_0xa1d0e2(0x1d7),_0x3eb479['zfjnc']]});let _0x7b651a='',_0x5d62f2='',_0x397606=![];const _0x51c0df=_0x3dac09[_0xa1d0e2(0x1f6)]&&_0x3dac09['timeoutMs']>0x0?setTimeout(()=>{const _0x5b6155=_0xa1d0e2;_0x397606=!![],_0x4b2212['kill'](_0x5b6155(0x1fa)),setTimeout(()=>{try{_0x4b2212['kill']('SIGKILL');}catch{}},0x3e8);},_0x3dac09['timeoutMs']):null;_0x4b2212[_0xa1d0e2(0x1f9)]?.['on'](_0x3eb479[_0xa1d0e2(0x1fb)],_0x3831a7=>{const _0x330af8=_0xa1d0e2;_0x7b651a+=_0x3831a7[_0x330af8(0x1db)]();}),_0x4b2212[_0xa1d0e2(0x210)]?.['on'](_0x3eb479[_0xa1d0e2(0x1fb)],_0x5bc7e9=>{_0x5d62f2+=_0x5bc7e9['toString']();}),_0x4b2212['on']('error',_0x27875d=>{if(_0x51c0df)clearTimeout(_0x51c0df);_0x3eb479['ZDEzd'](_0x4a5d2b,_0x27875d);}),_0x4b2212['on'](_0xa1d0e2(0x1f4),(_0x75530e,_0x593107)=>{const _0x223838=_0xa1d0e2;if(_0x51c0df)_0x3eb479['ZDEzd'](clearTimeout,_0x51c0df);if(_0x3eb479[_0x223838(0x1d8)](_0x75530e,0x0)){_0x4c93f1({'stdout':_0x7b651a,'stderr':_0x5d62f2,'invocation':_0x15eda0});return;}const _0x535776=_0x397606?_0x223838(0x1ed)+_0x3dac09['timeoutMs']+'ms':_0x223838(0x1fd)+(_0x75530e??_0x3eb479[_0x223838(0x1ef)])+'\x20signal='+(_0x593107??_0x3eb479[_0x223838(0x1ef)]);_0x4a5d2b(new Error(_0x223838(0x205)+_0x15eda0['subcommand']+'\x20'+_0x535776+'\x0astdout:\x20'+_0x3eb479['iWpRQ'](truncateOutput,_0x7b651a)+_0x223838(0x1e4)+truncateOutput(_0x5d62f2)));});});}export function extractBashCommand(_0x3769ea){const _0x590928=_0x426462,_0x61f2a2={'wtYfP':_0x590928(0x203),'jQfFl':'script','qveIn':'bash_command'},_0x3b3b7e=[_0x61f2a2[_0x590928(0x20c)],_0x590928(0x1ea),_0x61f2a2[_0x590928(0x1e6)],_0x61f2a2['qveIn']];for(const _0x2d0bb9 of _0x3b3b7e){const _0x5e3c94=_0x3769ea[_0x2d0bb9];if(typeof _0x5e3c94===_0x590928(0x1de)&&_0x5e3c94['trim']())return _0x5e3c94;}const _0x5c0277=Object['values'](_0x3769ea)['find'](_0x5e7eeb=>typeof _0x5e7eeb==='string'&&_0x5e7eeb['trim']()['length']>0x0);return _0x5c0277??null;}export function parsePlaywrightCliCommand(_0x1b7029){const _0x4babe5=_0x426462,_0x582da0=_0x1b7029[_0x4babe5(0x1dd)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x582da0?.[0x1]??null;}
1
+ const _0x24cccf=_0x563a;(function(_0x52d7b3,_0x3e1c1c){const _0x4b013b=_0x563a,_0x2f0757=_0x52d7b3();while(!![]){try{const _0x4f99a5=parseInt(_0x4b013b(0x15b))/0x1+parseInt(_0x4b013b(0x153))/0x2+parseInt(_0x4b013b(0x141))/0x3+-parseInt(_0x4b013b(0x15d))/0x4+-parseInt(_0x4b013b(0x163))/0x5+parseInt(_0x4b013b(0x155))/0x6+-parseInt(_0x4b013b(0x140))/0x7;if(_0x4f99a5===_0x3e1c1c)break;else _0x2f0757['push'](_0x2f0757['shift']());}catch(_0x1a164b){_0x2f0757['push'](_0x2f0757['shift']());}}}(_0x3124,0x322ac));import{spawn}from'child_process';function _0x563a(_0x9bd708,_0x3e4603){_0x9bd708=_0x9bd708-0x13f;const _0x3124d4=_0x3124();let _0x563a44=_0x3124d4[_0x9bd708];return _0x563a44;}import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x24cccf(0x14e);function toPlaywrightCliSessionKey(_0x26d39d){const _0x53723b=_0x24cccf,_0xdae7fa={'QkqZO':function(_0x437569,_0x1ab8a7){return _0x437569(_0x1ab8a7);},'TbdmD':'sha256'},_0x3aad54=_0xdae7fa['QkqZO'](createHash,_0xdae7fa[_0x53723b(0x145)])[_0x53723b(0x14a)](_0x26d39d)[_0x53723b(0x158)](_0x53723b(0x162))['slice'](0x0,0xc);return'rg-'+_0x3aad54;}function shellQuote(_0x5a4d2c){const _0x4ca79c=_0x24cccf;return'\x27'+_0x5a4d2c[_0x4ca79c(0x157)](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x44871d){return SAFE_SHELL_TOKEN['test'](_0x44871d)?_0x44871d:shellQuote(_0x44871d);}export function buildPlaywrightCliInvocation(_0x42d77e,_0x5890b2,_0x26cbde){const _0x5b56a4=_0x24cccf,_0x3f3745={'abNLu':function(_0x2586e6,_0x365279){return _0x2586e6(_0x365279);},'byUfR':_0x5b56a4(0x144),'Fdrvn':_0x5b56a4(0x14b),'ltNNk':function(_0x520ee5,_0x590ce1){return _0x520ee5(_0x590ce1);}},_0x4fa414=_0x3f3745[_0x5b56a4(0x156)](toPlaywrightCliSessionKey,_0x42d77e),[_0x6994ae=_0x3f3745[_0x5b56a4(0x149)]]=_0x26cbde,_0x2253a0=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x4fa414,_0x3f3745['Fdrvn'],_0x5890b2,..._0x26cbde];return{'command':'npx','args':_0x2253a0,'shellCommand':[_0x5b56a4(0x143),PLAYWRIGHT_CLI_BINARY,'-s='+_0x3f3745[_0x5b56a4(0x164)](quoteShellArg,_0x4fa414),_0x5b56a4(0x14b),quoteShellArg(_0x5890b2),..._0x26cbde[_0x5b56a4(0x16b)](quoteShellArg)]['join']('\x20'),'subcommand':_0x6994ae};}export function buildPlaywrightCliCommandPrefix(_0x5c6f4a,_0x14be89){const _0x50a765=_0x24cccf,_0xebd9c5={'lJrrL':function(_0x53007a,_0x4cdfd0){return _0x53007a(_0x4cdfd0);},'wUFBx':'npx','mnbdD':function(_0x52ce43,_0x523c22){return _0x52ce43(_0x523c22);}},_0x3ac319=_0xebd9c5[_0x50a765(0x159)](toPlaywrightCliSessionKey,_0x5c6f4a);return[_0xebd9c5[_0x50a765(0x167)],PLAYWRIGHT_CLI_BINARY,_0x50a765(0x142)+_0xebd9c5[_0x50a765(0x14d)](quoteShellArg,_0x3ac319),_0x50a765(0x14b),_0xebd9c5[_0x50a765(0x14d)](quoteShellArg,_0x14be89)][_0x50a765(0x161)]('\x20');}function truncateOutput(_0x18bba1,_0x3d5253=0x7d0){const _0x4c2ba1=_0x24cccf,_0x1e6ec2={'bSYSU':'...'};return _0x18bba1['length']>_0x3d5253?_0x18bba1[_0x4c2ba1(0x15c)](0x0,_0x3d5253)+_0x1e6ec2[_0x4c2ba1(0x170)]:_0x18bba1;}export async function runPlaywrightCliCommand(_0x4ae3e5){const _0x5ea7a8=_0x24cccf,_0x7f529b={'EGzdr':_0x5ea7a8(0x154),'AEujq':function(_0x2bc9ec,_0x1d50c7){return _0x2bc9ec(_0x1d50c7);},'JeQtf':'ignore','DdNiB':_0x5ea7a8(0x147),'VgJAx':function(_0x16517b,_0x29cc8a,_0x4f6b66){return _0x16517b(_0x29cc8a,_0x4f6b66);},'PubJE':function(_0x53d628,_0x1b5276,_0x4da5f4,_0x231793){return _0x53d628(_0x1b5276,_0x4da5f4,_0x231793);}},_0x18607d=_0x7f529b['PubJE'](buildPlaywrightCliInvocation,_0x4ae3e5[_0x5ea7a8(0x151)],_0x4ae3e5['configPath'],_0x4ae3e5['commandArgs']);return new Promise((_0x5d31fd,_0x34ce08)=>{const _0x367c14=_0x5ea7a8,_0x35136b={'vaEJg':_0x367c14(0x150),'Ysjqm':function(_0x2079cb,_0x51e381){return _0x2079cb(_0x51e381);},'uAhuR':function(_0x3f3186,_0x11a385){return _0x3f3186??_0x11a385;},'Fliix':_0x7f529b['EGzdr'],'pdQVQ':function(_0x391eca,_0x7b3126){return _0x7f529b['AEujq'](_0x391eca,_0x7b3126);}},_0x5d8bb5=spawn(_0x18607d[_0x367c14(0x16e)],_0x18607d['args'],{'cwd':_0x4ae3e5[_0x367c14(0x171)],'env':_0x4ae3e5[_0x367c14(0x14c)],'stdio':[_0x7f529b[_0x367c14(0x152)],_0x367c14(0x147),_0x7f529b[_0x367c14(0x146)]]});let _0x32d5a6='',_0xf9bb18='',_0x44022c=![];const _0x1dcd9e=_0x4ae3e5['timeoutMs']&&_0x4ae3e5[_0x367c14(0x172)]>0x0?_0x7f529b['VgJAx'](setTimeout,()=>{_0x44022c=!![],_0x5d8bb5['kill']('SIGTERM'),setTimeout(()=>{const _0xb254ef=_0x563a;try{_0x5d8bb5[_0xb254ef(0x14f)](_0x35136b[_0xb254ef(0x166)]);}catch{}},0x3e8);},_0x4ae3e5['timeoutMs']):null;_0x5d8bb5['stdout']?.['on'](_0x367c14(0x173),_0x797f9e=>{const _0x504b2b=_0x367c14;_0x32d5a6+=_0x797f9e[_0x504b2b(0x16d)]();}),_0x5d8bb5[_0x367c14(0x168)]?.['on'](_0x367c14(0x173),_0x26682a=>{const _0xb9d4b6=_0x367c14;_0xf9bb18+=_0x26682a[_0xb9d4b6(0x16d)]();}),_0x5d8bb5['on']('error',_0x3572a6=>{if(_0x1dcd9e)_0x35136b['Ysjqm'](clearTimeout,_0x1dcd9e);_0x34ce08(_0x3572a6);}),_0x5d8bb5['on'](_0x367c14(0x169),(_0x4527f3,_0x2a6e94)=>{const _0x251d1b=_0x367c14;if(_0x1dcd9e)_0x35136b['Ysjqm'](clearTimeout,_0x1dcd9e);if(_0x4527f3===0x0){_0x5d31fd({'stdout':_0x32d5a6,'stderr':_0xf9bb18,'invocation':_0x18607d});return;}const _0x301290=_0x44022c?'timed\x20out\x20after\x20'+_0x4ae3e5['timeoutMs']+'ms':_0x251d1b(0x148)+_0x35136b['uAhuR'](_0x4527f3,_0x35136b['Fliix'])+_0x251d1b(0x16f)+_0x35136b[_0x251d1b(0x16c)](_0x2a6e94,'null');_0x35136b[_0x251d1b(0x15f)](_0x34ce08,new Error(_0x251d1b(0x13f)+_0x18607d['subcommand']+'\x20'+_0x301290+'\x0astdout:\x20'+truncateOutput(_0x32d5a6)+'\x0astderr:\x20'+truncateOutput(_0xf9bb18)));});});}function _0x3124(){const _0x1e1cf9=['playwright-cli\x20','5187105KVCjHh','1115868BrbfoR','-s=','npx','unknown','TbdmD','DdNiB','pipe','exited\x20with\x20code=','byUfR','update','--config','env','mnbdD','@playwright/cli','kill','SIGKILL','sessionId','JeQtf','802710TibPlA','null','1611234BypCDN','abNLu','replace','digest','lJrrL','string','57253QoOzZK','slice','253120wFvSPK','script','pdQVQ','values','join','hex','446620dggemd','ltNNk','trim','vaEJg','wUFBx','stderr','close','MwFhv','map','uAhuR','toString','command','\x20signal=','bSYSU','cwd','timeoutMs','data'];_0x3124=function(){return _0x1e1cf9;};return _0x3124();}export function extractBashCommand(_0x5ca1ee){const _0x5662c3=_0x24cccf,_0x5538d1={'TTChF':function(_0x43fd37,_0x55902e){return _0x43fd37===_0x55902e;},'MwFhv':function(_0x175c2b,_0x1b6086){return _0x175c2b??_0x1b6086;}},_0x583ac2=['command','cmd',_0x5662c3(0x15e),'bash_command'];for(const _0x556903 of _0x583ac2){const _0x53c13c=_0x5ca1ee[_0x556903];if(_0x5538d1['TTChF'](typeof _0x53c13c,_0x5662c3(0x15a))&&_0x53c13c[_0x5662c3(0x165)]())return _0x53c13c;}const _0x56c4c1=Object[_0x5662c3(0x160)](_0x5ca1ee)['find'](_0x197d80=>typeof _0x197d80==='string'&&_0x197d80[_0x5662c3(0x165)]()['length']>0x0);return _0x5538d1[_0x5662c3(0x16a)](_0x56c4c1,null);}export function parsePlaywrightCliCommand(_0x2e588c){const _0x2ca5d8=_0x2e588c['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x2ca5d8?.[0x1]??null;}
@@ -1 +1 @@
1
- function _0xe951(_0x1d6021,_0xc62730){_0x1d6021=_0x1d6021-0xde;const _0x144d11=_0x144d();let _0xe951bf=_0x144d11[_0x1d6021];return _0xe951bf;}const _0xde7a4=_0xe951;(function(_0x2be7c,_0x4561d3){const _0x59cdfd=_0xe951,_0x201811=_0x2be7c();while(!![]){try{const _0x47997a=parseInt(_0x59cdfd(0xe5))/0x1*(parseInt(_0x59cdfd(0xe8))/0x2)+-parseInt(_0x59cdfd(0xe3))/0x3+parseInt(_0x59cdfd(0xe6))/0x4+-parseInt(_0x59cdfd(0xe7))/0x5+-parseInt(_0x59cdfd(0xe0))/0x6+-parseInt(_0x59cdfd(0xe1))/0x7*(parseInt(_0x59cdfd(0xe4))/0x8)+parseInt(_0x59cdfd(0xe2))/0x9;if(_0x47997a===_0x4561d3)break;else _0x201811['push'](_0x201811['shift']());}catch(_0x2e5bb9){_0x201811['push'](_0x201811['shift']());}}}(_0x144d,0x82ecb));const DEFAULT_PROFILE_COMMAND=_0xde7a4(0xdf);function _0x144d(){const _0x12962e=['4046658MtHJKr','60487RaAQTl','16683102TYhLwt','3210897JQPBpd','736DbxAzW','1rJHHHN','2378044PwSPPr','1215805XorBoU','1741906GpwDLb','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','ranger\x20profile\x20add\x20local'];_0x144d=function(){return _0x12962e;};return _0x144d();}export function formatProfileRequiredMessage(_0x3b1b28){const _0x31cc67=_0xde7a4,_0x2263c7=_0x3b1b28?_0x3b1b28(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x31cc67(0xde)+_0x2263c7+'.';}
1
+ const _0x3da447=_0x21e1;(function(_0x68ca15,_0x741689){const _0x3fcf61=_0x21e1,_0x463cb9=_0x68ca15();while(!![]){try{const _0x2c37c1=parseInt(_0x3fcf61(0xc2))/0x1+-parseInt(_0x3fcf61(0xbf))/0x2+parseInt(_0x3fcf61(0xc1))/0x3+-parseInt(_0x3fcf61(0xcb))/0x4*(parseInt(_0x3fcf61(0xc7))/0x5)+-parseInt(_0x3fcf61(0xc8))/0x6*(parseInt(_0x3fcf61(0xc9))/0x7)+parseInt(_0x3fcf61(0xbe))/0x8*(parseInt(_0x3fcf61(0xc6))/0x9)+parseInt(_0x3fcf61(0xc4))/0xa*(parseInt(_0x3fcf61(0xca))/0xb);if(_0x2c37c1===_0x741689)break;else _0x463cb9['push'](_0x463cb9['shift']());}catch(_0x45df16){_0x463cb9['push'](_0x463cb9['shift']());}}}(_0x4c97,0xe108d));function _0x21e1(_0x3cc561,_0x25b995){_0x3cc561=_0x3cc561-0xbe;const _0x4c975c=_0x4c97();let _0x21e181=_0x4c975c[_0x3cc561];return _0x21e181;}const DEFAULT_PROFILE_COMMAND=_0x3da447(0xc3);export function formatProfileRequiredMessage(_0x68ebd8){const _0x24531f=_0x3da447,_0x1f0382={'lIZWE':function(_0x26d12c,_0x1a8b4a){return _0x26d12c(_0x1a8b4a);}},_0x2217d7=_0x68ebd8?_0x1f0382[_0x24531f(0xc5)](_0x68ebd8,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x24531f(0xc0)+_0x2217d7+'.';}function _0x4c97(){const _0x418a66=['760346JcGASh','ranger\x20profile\x20add\x20local','1160OqlYEb','lIZWE','3789CyXDra','5fhclRU','381882mukQvD','161NUJNns','226732YsNmWa','6310396uJGacJ','7240svTBEG','558132sCAXXn','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','2129832LBzADu'];_0x4c97=function(){return _0x418a66;};return _0x4c97();}
@@ -1 +1 @@
1
- (function(_0x4ce52e,_0x13b3d2){const _0xad0fcd=_0x2110,_0x113aed=_0x4ce52e();while(!![]){try{const _0x474244=parseInt(_0xad0fcd(0x18e))/0x1+parseInt(_0xad0fcd(0x198))/0x2+-parseInt(_0xad0fcd(0x19c))/0x3+parseInt(_0xad0fcd(0x19d))/0x4*(-parseInt(_0xad0fcd(0x19f))/0x5)+-parseInt(_0xad0fcd(0x193))/0x6*(-parseInt(_0xad0fcd(0x191))/0x7)+parseInt(_0xad0fcd(0x1a0))/0x8*(-parseInt(_0xad0fcd(0x194))/0x9)+parseInt(_0xad0fcd(0x192))/0xa;if(_0x474244===_0x13b3d2)break;else _0x113aed['push'](_0x113aed['shift']());}catch(_0x4c4594){_0x113aed['push'](_0x113aed['shift']());}}}(_0x5988,0x4eb22));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x4f1db2=_0x2110,_0x1f0c81={'udfwu':function(_0x224670,_0x18472c){return _0x224670+_0x18472c;},'VHsyC':'</div>'},_0x5d8ef6=_0x1f0c81['udfwu'](_0x1f0c81['udfwu'](_0x1f0c81[_0x4f1db2(0x19b)](_0x4f1db2(0x195)+_0x4f1db2(0x18f),_0x4f1db2(0x19e))+'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>'+'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>',_0x1f0c81[_0x4f1db2(0x19a)])+'</div>','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'),_0x754676='\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 _0x4f1db2(0x197)+JSON['stringify'](_0x5d8ef6)+_0x4f1db2(0x196)+JSON[_0x4f1db2(0x199)](_0x754676)+_0x4f1db2(0x190);})());function _0x2110(_0x472867,_0x27fdf5){_0x472867=_0x472867-0x18e;const _0x598804=_0x5988();let _0x211013=_0x598804[_0x472867];return _0x211013;}function _0x5988(){const _0x507297=['4aVZwuM','<div\x20class=\x22ranger-banner__message\x22>','2104615HytTcY','14392GjpIHg','85742wKjjWU','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>',';\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','56nYoumJ','6627220qJBElr','114834oDDOOm','801wvQtFd','<div\x20class=\x22ranger-banner__content\x22>',';\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','\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','193196FUvEPv','stringify','VHsyC','udfwu','284406abrSqE'];_0x5988=function(){return _0x507297;};return _0x5988();}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x715c68){await _0x715c68['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ function _0x6d7e(){const _0x5030c8=['</div>','82623oKfVBI','27oGhRNd','CDtVj','<div\x20class=\x22ranger-banner__message\x22>','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','2harASG','TRBeP','27425IFqpHx','1073941YHhfUq','<div\x20class=\x22ranger-banner__content\x22>','30JeSIyC','4638165fTEwmy',';\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','373471JQdWNi','1540464ymGqPQ','QKYCX','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','7231032ZcVjaP','144DsrdLQ','\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','\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','dQAbv','26qXTXQp','90nrqmKm'];_0x6d7e=function(){return _0x5030c8;};return _0x6d7e();}function _0x4482(_0x2f9a30,_0x200c48){_0x2f9a30=_0x2f9a30-0x73;const _0x6d7e9d=_0x6d7e();let _0x4482b2=_0x6d7e9d[_0x2f9a30];return _0x4482b2;}(function(_0x1d4eef,_0x5ee883){const _0x5e1e0b=_0x4482,_0x3d9116=_0x1d4eef();while(!![]){try{const _0x18deef=-parseInt(_0x5e1e0b(0x86))/0x1*(-parseInt(_0x5e1e0b(0x84))/0x2)+-parseInt(_0x5e1e0b(0x7f))/0x3*(-parseInt(_0x5e1e0b(0x78))/0x4)+-parseInt(_0x5e1e0b(0x8a))/0x5+parseInt(_0x5e1e0b(0x89))/0x6*(parseInt(_0x5e1e0b(0x73))/0x7)+-parseInt(_0x5e1e0b(0x74))/0x8*(-parseInt(_0x5e1e0b(0x80))/0x9)+parseInt(_0x5e1e0b(0x7d))/0xa*(parseInt(_0x5e1e0b(0x87))/0xb)+-parseInt(_0x5e1e0b(0x77))/0xc*(parseInt(_0x5e1e0b(0x7c))/0xd);if(_0x18deef===_0x5ee883)break;else _0x3d9116['push'](_0x3d9116['shift']());}catch(_0x29aeff){_0x3d9116['push'](_0x3d9116['shift']());}}}(_0x6d7e,0x94bbe));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0xedbf26=_0x4482,_0x44ded9={'EorFM':function(_0x576373,_0xf01791){return _0x576373+_0xf01791;},'TRBeP':function(_0x30a7a3,_0x66fd54){return _0x30a7a3+_0x66fd54;},'QKYCX':function(_0x163f27,_0x363701){return _0x163f27+_0x363701;},'dQAbv':function(_0x4b4cf4,_0x7484f1){return _0x4b4cf4+_0x7484f1;},'joCWO':_0xedbf26(0x88),'LEEvW':_0xedbf26(0x82),'CDtVj':'</div>'},_0x1d22a6=_0x44ded9['EorFM'](_0x44ded9[_0xedbf26(0x85)](_0x44ded9[_0xedbf26(0x75)](_0x44ded9[_0xedbf26(0x7b)](_0x44ded9['TRBeP'](_0x44ded9['joCWO']+'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>',_0x44ded9['LEEvW']),_0xedbf26(0x83))+_0xedbf26(0x76),_0x44ded9[_0xedbf26(0x81)]),_0xedbf26(0x7e)),'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'),_0x355d36=_0xedbf26(0x7a);return _0xedbf26(0x79)+JSON['stringify'](_0x1d22a6)+_0xedbf26(0x8b)+JSON['stringify'](_0x355d36)+';\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';})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x28234f){await _0x28234f['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
@@ -1 +1 @@
1
- function _0x5c9a(_0x49b791,_0x1a7445){_0x49b791=_0x49b791-0x1d3;const _0x52baa9=_0x52ba();let _0x5c9a33=_0x52baa9[_0x49b791];return _0x5c9a33;}(function(_0xca1256,_0xd6d870){const _0x20c17e=_0x5c9a,_0x321d17=_0xca1256();while(!![]){try{const _0x808d6f=parseInt(_0x20c17e(0x1ef))/0x1+-parseInt(_0x20c17e(0x1de))/0x2*(parseInt(_0x20c17e(0x1fc))/0x3)+-parseInt(_0x20c17e(0x1f1))/0x4+parseInt(_0x20c17e(0x1ee))/0x5*(-parseInt(_0x20c17e(0x1d9))/0x6)+parseInt(_0x20c17e(0x1fe))/0x7+-parseInt(_0x20c17e(0x1e8))/0x8*(-parseInt(_0x20c17e(0x1da))/0x9)+-parseInt(_0x20c17e(0x1e0))/0xa;if(_0x808d6f===_0xd6d870)break;else _0x321d17['push'](_0x321d17['shift']());}catch(_0x22a291){_0x321d17['push'](_0x321d17['shift']());}}}(_0x52ba,0x1f0c1));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 _0x398012={'YXZSI':function(_0xcf16ba){return _0xcf16ba();},'aHcoy':'projects.json'};return join(_0x398012['YXZSI'](getRangerHomeDir),_0x398012['aHcoy']);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0xa446c8=_0x5c9a,_0x41c3c2={'FswDb':function(_0x359e81){return _0x359e81();},'KmJRr':function(_0x9bf0f8,_0x5b8a81,_0xf9613){return _0x9bf0f8(_0x5b8a81,_0xf9613);},'GwPLY':'utf-8','HmWuu':function(_0x34ecbf,_0x47c825){return _0x34ecbf instanceof _0x47c825;},'XxEWz':function(_0x11c293,_0xf4520d){return _0x11c293(_0xf4520d);},'UorRW':function(_0xccf671,_0xdce96b){return _0xccf671!==_0xdce96b;},'toYQi':function(_0x4ed5f5,_0x131fe6){return _0x4ed5f5!==_0x131fe6;},'Zdpnl':function(_0x5a4f51){return _0x5a4f51();}},_0x9b530d=getProjectsConfigPath();if(!existsSync(_0x9b530d))return _0x41c3c2['FswDb'](emptyConfig);let _0x8b4b8f;try{_0x8b4b8f=_0x41c3c2[_0xa446c8(0x1e4)](readFileSync,_0x9b530d,_0x41c3c2[_0xa446c8(0x1f8)]);}catch(_0x189600){const _0x18a97f=_0x41c3c2['HmWuu'](_0x189600,Error)?_0x189600['message']:_0x41c3c2[_0xa446c8(0x1d5)](String,_0x189600);return console[_0xa446c8(0x1eb)](_0xa446c8(0x1dd)+_0x9b530d+':\x20'+_0x18a97f+_0xa446c8(0x1d6)),_0x41c3c2['FswDb'](emptyConfig);}let _0x2ddbc0;try{_0x2ddbc0=JSON[_0xa446c8(0x1f3)](_0x8b4b8f);}catch(_0x5d3500){const _0x39e56d=_0x5d3500 instanceof Error?_0x5d3500['message']:String(_0x5d3500);return console['warn'](_0xa446c8(0x1e3)+_0x9b530d+'\x20is\x20not\x20valid\x20JSON\x20('+_0x39e56d+').\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}if(!_0x2ddbc0||typeof _0x2ddbc0!==_0xa446c8(0x1fb)||Array['isArray'](_0x2ddbc0)||_0x41c3c2['UorRW'](_0x2ddbc0['version'],CURRENT_VERSION)||_0x41c3c2[_0xa446c8(0x1d8)](typeof _0x2ddbc0[_0xa446c8(0x1e7)],'object')||_0x2ddbc0[_0xa446c8(0x1e7)]===null||Array[_0xa446c8(0x1dc)](_0x2ddbc0['projects']))return console['warn']('[ranger]\x20Warning:\x20'+_0x9b530d+_0xa446c8(0x1f0)),_0x41c3c2['Zdpnl'](emptyConfig);return _0x2ddbc0;}function _0x52ba(){const _0x5a0cdf=['TKfkT','utf-8','XxEWz','.\x20Ignoring\x20local\x20profile\x20overrides.','rRjuP','toYQi','282LJqTgJ','4167bJzKcc','length','isArray','[ranger]\x20Warning:\x20failed\x20to\x20read\x20','68gpIaYp','lfUFV','172100KKMFYL','lastProfile','now','[ranger]\x20Warning:\x20','KmJRr','nVNCA','.tmp','projects','3304hNwsUO','pZckI','split','warn','settings','bSWNW','17715xHQvQD','178913rIkxde','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','474164aQmQzG','cpsoj','parse','YNUcs','keys','entries','profiles','GwPLY','JlgDF','XVCpA','object','16707lJlqDf','setupHeaders','1740585dQrpGm','scrRq','keyPath\x20is\x20required'];_0x52ba=function(){return _0x5a0cdf;};return _0x52ba();}export function writeProjectsConfig(_0x583f17){const _0xe4ee15=_0x5c9a,_0x2d6b19={'bSWNW':function(_0x5853f5,_0x51d960,_0x4e7476){return _0x5853f5(_0x51d960,_0x4e7476);},'cpsoj':function(_0x321679,_0x2252c6){return _0x321679+_0x2252c6;},'vhUiw':function(_0x9037e1,_0x30c6da,_0xe50d8f,_0x468ee5){return _0x9037e1(_0x30c6da,_0xe50d8f,_0x468ee5);},'pZckI':function(_0x4011be,_0x13b694){return _0x4011be(_0x13b694);}},_0x449b04=getProjectsConfigPath(),_0x153996=dirname(_0x449b04);!existsSync(_0x153996)&&_0x2d6b19[_0xe4ee15(0x1ed)](mkdirSync,_0x153996,{'recursive':!![]});const _0x1046a5=_0x449b04+'.'+process['pid']+'.'+Date[_0xe4ee15(0x1e2)]()+_0xe4ee15(0x1e6),_0x375640=_0x2d6b19[_0xe4ee15(0x1f2)](JSON['stringify'](_0x583f17,null,0x2),'\x0a');try{_0x2d6b19['vhUiw'](writeFileSync,_0x1046a5,_0x375640,{'encoding':_0xe4ee15(0x1d4),'mode':0x180}),_0x2d6b19['bSWNW'](renameSync,_0x1046a5,_0x449b04);}catch(_0x3cd96b){try{_0x2d6b19['pZckI'](existsSync,_0x1046a5)&&_0x2d6b19[_0xe4ee15(0x1e9)](unlinkSync,_0x1046a5);}catch{}throw _0x3cd96b;}}export function readProfileOverrides(_0x2c2ea4,_0x9b6f0){const _0x5e5ae8=_0x5c9a,_0x2854e4={'lyrkA':function(_0x46c08a){return _0x46c08a();}},_0x2f059e=_0x2854e4['lyrkA'](readProjectsConfig),_0x3da52b=_0x2f059e[_0x5e5ae8(0x1e7)][_0x2c2ea4];if(!_0x3da52b||!_0x3da52b['profiles'])return null;const _0x42838c=_0x3da52b[_0x5e5ae8(0x1f7)][_0x9b6f0];if(!_0x42838c||!_0x42838c['settings'])return null;return _0x42838c['settings']??null;}export function setProfileOverride(_0x34f4f8,_0x21eaec,_0x3a4471,_0xf3bec0){const _0x269ae6=_0x5c9a,_0x43f5e3={'hWzZS':function(_0x15fc31){return _0x15fc31();}};if(!_0x3a4471)throw new Error('keyPath\x20is\x20required');const _0x3fe8cc=_0x43f5e3['hWzZS'](readProjectsConfig),_0x533c7e=_0x3fe8cc[_0x269ae6(0x1e7)][_0x34f4f8]??={},_0x2f2b06=_0x533c7e['profiles']??={},_0x55a541=_0x2f2b06[_0x21eaec]??={},_0x47c7dd=_0x55a541[_0x269ae6(0x1ec)]??={};setByKeyPath(_0x47c7dd,_0x3a4471,_0xf3bec0),writeProjectsConfig(_0x3fe8cc);}export function unsetProfileOverride(_0x53df2a,_0x3a4f8d,_0x1058b6){const _0x1133d8=_0x5c9a,_0x5d580b={'pNZlC':_0x1133d8(0x200),'JlgDF':function(_0x2034e6){return _0x2034e6();},'ssKqb':function(_0x5e8503,_0x47e60b,_0x5f1763){return _0x5e8503(_0x47e60b,_0x5f1763);}};if(!_0x1058b6)throw new Error(_0x5d580b['pNZlC']);const _0x230535=_0x5d580b[_0x1133d8(0x1f9)](readProjectsConfig),_0x1e0fe9=_0x230535['projects'][_0x53df2a];if(!_0x1e0fe9?.[_0x1133d8(0x1f7)])return![];const _0x19ce38=_0x1e0fe9['profiles'][_0x3a4f8d];if(!_0x19ce38?.[_0x1133d8(0x1ec)])return![];const _0x2e3465=_0x5d580b['ssKqb'](deleteByKeyPath,_0x19ce38['settings'],_0x1058b6);if(!_0x2e3465)return![];return writeProjectsConfig(_0x230535),!![];}export function resetProfileOverrides(_0x367c1f,_0x63d92f){const _0x7b06e1=_0x5c9a,_0x2577a6={'nVNCA':function(_0x5022bf,_0x250b7e){return _0x5022bf===_0x250b7e;}},_0x2269e5=readProjectsConfig(),_0x291863=_0x2269e5[_0x7b06e1(0x1e7)][_0x367c1f];if(!_0x291863?.['profiles'])return;if(!(_0x63d92f in _0x291863['profiles']))return;delete _0x291863['profiles'][_0x63d92f],_0x2577a6[_0x7b06e1(0x1e5)](Object[_0x7b06e1(0x1f5)](_0x291863['profiles'])[_0x7b06e1(0x1db)],0x0)&&(!_0x291863['lastProfile']?delete _0x2269e5[_0x7b06e1(0x1e7)][_0x367c1f]:_0x291863['profiles']={}),writeProjectsConfig(_0x2269e5);}export function readLastProfile(_0x162e4e){const _0x21b5dc=_0x5c9a,_0x2467fb={'hgJyy':function(_0x1bfac4){return _0x1bfac4();}},_0x5a4ac1=_0x2467fb['hgJyy'](readProjectsConfig),_0x29c501=_0x5a4ac1[_0x21b5dc(0x1e7)][_0x162e4e];return _0x29c501?.['lastProfile']??null;}export function writeLastProfile(_0x26adf8,_0x4d820b){const _0x2ab50e={'gHeCP':function(_0x506658){return _0x506658();}},_0x36c72f=_0x2ab50e['gHeCP'](readProjectsConfig),_0x40f932=_0x36c72f['projects'][_0x26adf8]??={};_0x40f932['lastProfile']=_0x4d820b,writeProjectsConfig(_0x36c72f);}export function clearLastProfile(_0x519371,_0x314d95){const _0x154462=_0x5c9a,_0x1cb885={'scrRq':function(_0x2f84bf){return _0x2f84bf();},'UuxdK':function(_0x1f219d,_0xb71e4a){return _0x1f219d===_0xb71e4a;}},_0xd6628f=_0x1cb885[_0x154462(0x1ff)](readProjectsConfig),_0xb16e29=_0xd6628f[_0x154462(0x1e7)][_0x519371];if(!_0xb16e29||_0xb16e29[_0x154462(0x1e1)]!==_0x314d95)return![];return delete _0xb16e29['lastProfile'],(!_0xb16e29['profiles']||_0x1cb885['UuxdK'](Object['keys'](_0xb16e29[_0x154462(0x1f7)])['length'],0x0))&&delete _0xd6628f['projects'][_0x519371],writeProjectsConfig(_0xd6628f),!![];}export function mergeCloudProfileSettings(_0x5c8b3b,_0x56e2b9){const _0x1ec02b=_0x5c9a,_0x385e47={'WxQpS':function(_0x55c5bd,_0xf75043){return _0x55c5bd??_0xf75043;},'rRjuP':function(_0x12d2a8,_0x144713){return _0x12d2a8(_0x144713);}},_0x5ac98d={..._0x385e47['WxQpS'](_0x5c8b3b,{})};if(!_0x56e2b9)return _0x5ac98d;for(const [_0x5d1db2,_0x579f3f]of Object[_0x1ec02b(0x1f6)](_0x56e2b9)){if(_0x579f3f===undefined)continue;if(_0x579f3f===null){delete _0x5ac98d[_0x5d1db2];continue;}if(_0x5d1db2==='headers'||_0x5d1db2===_0x1ec02b(0x1fd)){const _0x1db1eb=_0x385e47[_0x1ec02b(0x1d7)](asRecord,_0x5ac98d[_0x5d1db2])??{},_0x62f50d=_0x385e47['rRjuP'](asRecord,_0x579f3f);if(!_0x62f50d){_0x5ac98d[_0x5d1db2]=_0x579f3f;continue;}const _0x350fcc={..._0x1db1eb};for(const [_0x563259,_0x4de3b3]of Object[_0x1ec02b(0x1f6)](_0x62f50d)){if(_0x4de3b3===null)delete _0x350fcc[_0x563259];else _0x4de3b3!==undefined&&(_0x350fcc[_0x563259]=_0x4de3b3);}_0x5ac98d[_0x5d1db2]=_0x350fcc;continue;}_0x5ac98d[_0x5d1db2]=_0x579f3f;}return _0x5ac98d;}function asRecord(_0xfc5f80){const _0x263188=_0x5c9a,_0x10370e={'YNUcs':_0x263188(0x1fb)};return _0xfc5f80&&typeof _0xfc5f80===_0x10370e[_0x263188(0x1f4)]&&!Array['isArray'](_0xfc5f80)?_0xfc5f80:undefined;}function setByKeyPath(_0x399357,_0x142e9b,_0x24ed2e){const _0x4b2183=_0x5c9a,_0x800856={'XVCpA':function(_0x5ee93b,_0x5f2e13){return _0x5ee93b-_0x5f2e13;},'nlYJT':function(_0x1ac800,_0x51edc3){return _0x1ac800-_0x51edc3;}},_0x25b8e8=_0x142e9b[_0x4b2183(0x1ea)]('.');let _0x237283=_0x399357;for(let _0x294da4=0x0;_0x294da4<_0x800856[_0x4b2183(0x1fa)](_0x25b8e8[_0x4b2183(0x1db)],0x1);_0x294da4++){const _0x1f0ebe=_0x25b8e8[_0x294da4],_0x6f0c0=_0x237283[_0x1f0ebe];(!_0x6f0c0||typeof _0x6f0c0!==_0x4b2183(0x1fb)||Array[_0x4b2183(0x1dc)](_0x6f0c0))&&(_0x237283[_0x1f0ebe]={}),_0x237283=_0x237283[_0x1f0ebe];}_0x237283[_0x25b8e8[_0x800856['nlYJT'](_0x25b8e8['length'],0x1)]]=_0x24ed2e;}function deleteByKeyPath(_0xd7d4bb,_0x1638a9){const _0x26313a=_0x5c9a,_0x5e22e1={'lfUFV':function(_0x5187fd,_0x5a85a7){return _0x5187fd!==_0x5a85a7;},'TKfkT':'object','kZIUi':function(_0x56d0af,_0x5184e1){return _0x56d0af-_0x5184e1;}},_0x2ef9fc=_0x1638a9[_0x26313a(0x1ea)]('.');let _0x4f0559=_0xd7d4bb;for(let _0x4520a3=0x0;_0x4520a3<_0x2ef9fc[_0x26313a(0x1db)]-0x1;_0x4520a3++){const _0x1a790f=_0x2ef9fc[_0x4520a3],_0x15fc86=_0x4f0559[_0x1a790f];if(!_0x15fc86||_0x5e22e1[_0x26313a(0x1df)](typeof _0x15fc86,_0x5e22e1[_0x26313a(0x1d3)])||Array[_0x26313a(0x1dc)](_0x15fc86))return![];_0x4f0559=_0x15fc86;}const _0x846c76=_0x2ef9fc[_0x5e22e1['kZIUi'](_0x2ef9fc[_0x26313a(0x1db)],0x1)];if(!(_0x846c76 in _0x4f0559))return![];return delete _0x4f0559[_0x846c76],!![];}
1
+ (function(_0x560b86,_0x219fa5){const _0x47ca29=_0x2bac,_0x7effaa=_0x560b86();while(!![]){try{const _0xf9261f=-parseInt(_0x47ca29(0x1af))/0x1+parseInt(_0x47ca29(0x19d))/0x2*(parseInt(_0x47ca29(0x1a2))/0x3)+parseInt(_0x47ca29(0x1b9))/0x4*(-parseInt(_0x47ca29(0x1b7))/0x5)+parseInt(_0x47ca29(0x1a9))/0x6*(-parseInt(_0x47ca29(0x1b4))/0x7)+-parseInt(_0x47ca29(0x1ac))/0x8+parseInt(_0x47ca29(0x19a))/0x9+parseInt(_0x47ca29(0x1b1))/0xa;if(_0xf9261f===_0x219fa5)break;else _0x7effaa['push'](_0x7effaa['shift']());}catch(_0x3e9953){_0x7effaa['push'](_0x7effaa['shift']());}}}(_0x3799,0xb54f0));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 _0x5eea0f=_0x2bac,_0x3521f2={'JjkjV':function(_0x31ef6f){return _0x31ef6f();},'fFgQd':'projects.json'};return join(_0x3521f2[_0x5eea0f(0x198)](getRangerHomeDir),_0x3521f2[_0x5eea0f(0x1b3)]);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x4d25bd=_0x2bac,_0x3cba84={'cvpYC':function(_0xd902ac,_0x4e7d93){return _0xd902ac(_0x4e7d93);},'BZUxa':_0x4d25bd(0x1bc),'hNjEI':function(_0x4fd6ec,_0x417fa4){return _0x4fd6ec instanceof _0x417fa4;},'nsPfs':function(_0x341f39){return _0x341f39();},'hNhBi':_0x4d25bd(0x1ad),'MDuCV':function(_0x597fe2,_0x230747){return _0x597fe2!==_0x230747;}},_0xad2d90=getProjectsConfigPath();if(!_0x3cba84[_0x4d25bd(0x1a1)](existsSync,_0xad2d90))return emptyConfig();let _0x3f3228;try{_0x3f3228=readFileSync(_0xad2d90,_0x3cba84['BZUxa']);}catch(_0x3726e3){const _0x34c6c5=_0x3cba84['hNjEI'](_0x3726e3,Error)?_0x3726e3[_0x4d25bd(0x19f)]:String(_0x3726e3);return console['warn'](_0x4d25bd(0x1aa)+_0xad2d90+':\x20'+_0x34c6c5+_0x4d25bd(0x196)),_0x3cba84['nsPfs'](emptyConfig);}let _0x4473fe;try{_0x4473fe=JSON[_0x4d25bd(0x1b8)](_0x3f3228);}catch(_0xf42ca1){const _0xb82cd6=_0xf42ca1 instanceof Error?_0xf42ca1[_0x4d25bd(0x19f)]:_0x3cba84[_0x4d25bd(0x1a1)](String,_0xf42ca1);return console['warn']('[ranger]\x20Warning:\x20'+_0xad2d90+'\x20is\x20not\x20valid\x20JSON\x20('+_0xb82cd6+_0x4d25bd(0x1ab)),emptyConfig();}if(!_0x4473fe||typeof _0x4473fe!==_0x3cba84['hNhBi']||Array['isArray'](_0x4473fe)||_0x3cba84[_0x4d25bd(0x194)](_0x4473fe[_0x4d25bd(0x1a5)],CURRENT_VERSION)||_0x3cba84['MDuCV'](typeof _0x4473fe[_0x4d25bd(0x195)],_0x3cba84[_0x4d25bd(0x1a4)])||_0x4473fe['projects']===null||Array['isArray'](_0x4473fe[_0x4d25bd(0x195)]))return console['warn'](_0x4d25bd(0x1b5)+_0xad2d90+_0x4d25bd(0x1a8)),emptyConfig();return _0x4473fe;}export function writeProjectsConfig(_0x12258c){const _0x3611c1=_0x2bac,_0x32db64={'sllTE':function(_0x47e836){return _0x47e836();},'OHeTa':function(_0x459c8e,_0x54877a,_0x6e9973){return _0x459c8e(_0x54877a,_0x6e9973);},'XznkP':'utf-8','gPqBm':function(_0x1583dd,_0x1db241,_0x471b93){return _0x1583dd(_0x1db241,_0x471b93);},'JXJBJ':function(_0x339235,_0x402f9d){return _0x339235(_0x402f9d);},'jqDhy':function(_0x4fcfcd,_0x2f0c9){return _0x4fcfcd(_0x2f0c9);}},_0x194fe0=_0x32db64['sllTE'](getProjectsConfigPath),_0x2a5574=dirname(_0x194fe0);!existsSync(_0x2a5574)&&_0x32db64['OHeTa'](mkdirSync,_0x2a5574,{'recursive':!![]});const _0x2c97c6=_0x194fe0+'.'+process['pid']+'.'+Date[_0x3611c1(0x1bd)]()+_0x3611c1(0x1b0),_0x34fa39=JSON['stringify'](_0x12258c,null,0x2)+'\x0a';try{writeFileSync(_0x2c97c6,_0x34fa39,{'encoding':_0x32db64['XznkP'],'mode':0x180}),_0x32db64[_0x3611c1(0x1a0)](renameSync,_0x2c97c6,_0x194fe0);}catch(_0x5dbf92){try{_0x32db64['JXJBJ'](existsSync,_0x2c97c6)&&_0x32db64[_0x3611c1(0x1a6)](unlinkSync,_0x2c97c6);}catch{}throw _0x5dbf92;}}export function readProfileOverrides(_0x3ed10e,_0x1019ae){const _0x418bfa=_0x2bac,_0xc33aae={'KAgut':function(_0x2f9699){return _0x2f9699();}},_0x285934=_0xc33aae['KAgut'](readProjectsConfig),_0x1e730c=_0x285934[_0x418bfa(0x195)][_0x3ed10e];if(!_0x1e730c||!_0x1e730c[_0x418bfa(0x1c1)])return null;const _0x5952e3=_0x1e730c[_0x418bfa(0x1c1)][_0x1019ae];if(!_0x5952e3||!_0x5952e3[_0x418bfa(0x1ae)])return null;return _0x5952e3['settings']??null;}export function setProfileOverride(_0x5e42de,_0x1d0703,_0x53bcce,_0x185028){const _0x172c6b=_0x2bac,_0x4e79ad={'jVwFe':_0x172c6b(0x19e)};if(!_0x53bcce)throw new Error(_0x4e79ad[_0x172c6b(0x19b)]);const _0x5de4d0=readProjectsConfig(),_0x1f929c=_0x5de4d0['projects'][_0x5e42de]??={},_0x54145b=_0x1f929c[_0x172c6b(0x1c1)]??={},_0x4960d0=_0x54145b[_0x1d0703]??={},_0x4693ad=_0x4960d0[_0x172c6b(0x1ae)]??={};setByKeyPath(_0x4693ad,_0x53bcce,_0x185028),writeProjectsConfig(_0x5de4d0);}function _0x2bac(_0xf2271e,_0x4d4958){_0xf2271e=_0xf2271e-0x193;const _0x379911=_0x3799();let _0x2bac70=_0x379911[_0xf2271e];return _0x2bac70;}export function unsetProfileOverride(_0x430c1a,_0x5ef686,_0x35b052){const _0x42ab1d=_0x2bac,_0x55a6b0={'JbMCw':function(_0x51bbae){return _0x51bbae();}};if(!_0x35b052)throw new Error('keyPath\x20is\x20required');const _0x3654f8=_0x55a6b0['JbMCw'](readProjectsConfig),_0x42a203=_0x3654f8[_0x42ab1d(0x195)][_0x430c1a];if(!_0x42a203?.[_0x42ab1d(0x1c1)])return![];const _0x17421c=_0x42a203[_0x42ab1d(0x1c1)][_0x5ef686];if(!_0x17421c?.[_0x42ab1d(0x1ae)])return![];const _0x590d1c=deleteByKeyPath(_0x17421c['settings'],_0x35b052);if(!_0x590d1c)return![];return writeProjectsConfig(_0x3654f8),!![];}export function resetProfileOverrides(_0x1411b4,_0x449fb0){const _0x49a7d6=_0x2bac,_0x3dc8cd={'ubyWO':function(_0x2012fd){return _0x2012fd();}},_0x25f495=_0x3dc8cd['ubyWO'](readProjectsConfig),_0x6b670=_0x25f495[_0x49a7d6(0x195)][_0x1411b4];if(!_0x6b670?.['profiles'])return;if(!(_0x449fb0 in _0x6b670['profiles']))return;delete _0x6b670['profiles'][_0x449fb0],Object['keys'](_0x6b670[_0x49a7d6(0x1c1)])['length']===0x0&&(!_0x6b670[_0x49a7d6(0x1be)]?delete _0x25f495['projects'][_0x1411b4]:_0x6b670[_0x49a7d6(0x1c1)]={}),writeProjectsConfig(_0x25f495);}export function readLastProfile(_0xde9438){const _0x81d29a=_0x2bac,_0x1d3ecd={'koVcN':function(_0x2139c2){return _0x2139c2();}},_0x545c7f=_0x1d3ecd[_0x81d29a(0x193)](readProjectsConfig),_0x2e346f=_0x545c7f['projects'][_0xde9438];return _0x2e346f?.['lastProfile']??null;}export function writeLastProfile(_0x564fc2,_0x275680){const _0x1184ff=_0x2bac,_0x373f6a={'GPmVz':function(_0x41a447,_0x3f1bdc){return _0x41a447(_0x3f1bdc);}},_0x300cae=readProjectsConfig(),_0x3fcb04=_0x300cae[_0x1184ff(0x195)][_0x564fc2]??={};_0x3fcb04[_0x1184ff(0x1be)]=_0x275680,_0x373f6a['GPmVz'](writeProjectsConfig,_0x300cae);}function _0x3799(){const _0x2360c9=['rOaEM','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','1002AZvWUd','[ranger]\x20Warning:\x20failed\x20to\x20read\x20',').\x20Ignoring\x20local\x20profile\x20overrides.','8062480qPUOug','object','settings','906579pbeSrJ','.tmp','16945560OQBsob','VYhJD','fFgQd','57022NiQhTi','[ranger]\x20Warning:\x20','setupHeaders','3615nEMzLY','parse','300XGrmro','jvToc','headers','utf-8','now','lastProfile','keys','length','profiles','koVcN','MDuCV','projects','.\x20Ignoring\x20local\x20profile\x20overrides.','isArray','JjkjV','gkPBw','11061720vRuRrh','jVwFe','rZkTP','10250PSIYlT','keyPath\x20is\x20required','message','gPqBm','cvpYC','672BtRvxF','MiOQl','hNhBi','version','jqDhy'];_0x3799=function(){return _0x2360c9;};return _0x3799();}export function clearLastProfile(_0x2bd9ae,_0x523d2c){const _0x4354e0=_0x2bac,_0x1760e7={'VYhJD':function(_0xe55185,_0x43de20){return _0xe55185===_0x43de20;}},_0x3df1f3=readProjectsConfig(),_0x1d9f9e=_0x3df1f3['projects'][_0x2bd9ae];if(!_0x1d9f9e||_0x1d9f9e['lastProfile']!==_0x523d2c)return![];return delete _0x1d9f9e[_0x4354e0(0x1be)],(!_0x1d9f9e[_0x4354e0(0x1c1)]||_0x1760e7[_0x4354e0(0x1b2)](Object[_0x4354e0(0x1bf)](_0x1d9f9e[_0x4354e0(0x1c1)])[_0x4354e0(0x1c0)],0x0))&&delete _0x3df1f3['projects'][_0x2bd9ae],writeProjectsConfig(_0x3df1f3),!![];}export function mergeCloudProfileSettings(_0x41f0c0,_0x4e615e){const _0x424905=_0x2bac,_0x3706c3={'aceHw':function(_0x138991,_0x2059a1){return _0x138991===_0x2059a1;},'voaqS':_0x424905(0x1bb),'ljAJe':_0x424905(0x1b6),'rZkTP':function(_0x536299,_0x4b2ea7){return _0x536299(_0x4b2ea7);}},_0x5dd016={..._0x41f0c0??{}};if(!_0x4e615e)return _0x5dd016;for(const [_0x463e70,_0x377dc4]of Object['entries'](_0x4e615e)){if(_0x3706c3['aceHw'](_0x377dc4,undefined))continue;if(_0x377dc4===null){delete _0x5dd016[_0x463e70];continue;}if(_0x463e70===_0x3706c3['voaqS']||_0x3706c3['aceHw'](_0x463e70,_0x3706c3['ljAJe'])){const _0x3f8b9e=_0x3706c3[_0x424905(0x19c)](asRecord,_0x5dd016[_0x463e70])??{},_0x44f6e9=asRecord(_0x377dc4);if(!_0x44f6e9){_0x5dd016[_0x463e70]=_0x377dc4;continue;}const _0x429388={..._0x3f8b9e};for(const [_0x221529,_0x1edf0b]of Object['entries'](_0x44f6e9)){if(_0x1edf0b===null)delete _0x429388[_0x221529];else _0x1edf0b!==undefined&&(_0x429388[_0x221529]=_0x1edf0b);}_0x5dd016[_0x463e70]=_0x429388;continue;}_0x5dd016[_0x463e70]=_0x377dc4;}return _0x5dd016;}function asRecord(_0x5d206d){const _0x77884c=_0x2bac,_0x296811={'MiOQl':function(_0x47a7dc,_0x215a4e){return _0x47a7dc===_0x215a4e;}};return _0x5d206d&&_0x296811[_0x77884c(0x1a3)](typeof _0x5d206d,_0x77884c(0x1ad))&&!Array['isArray'](_0x5d206d)?_0x5d206d:undefined;}function setByKeyPath(_0x1899d2,_0x4043fb,_0x2ba8f5){const _0x2a60cf=_0x2bac,_0x2babaf={'JaWmf':function(_0x281bf3,_0x2692fd){return _0x281bf3<_0x2692fd;},'PMuiN':function(_0x2585a3,_0x8b07f2){return _0x2585a3-_0x8b07f2;},'jvToc':_0x2a60cf(0x1ad),'IHhfQ':function(_0x20b1ec,_0x58575f){return _0x20b1ec-_0x58575f;}},_0x30cdf4=_0x4043fb['split']('.');let _0x1ba141=_0x1899d2;for(let _0x1571b7=0x0;_0x2babaf['JaWmf'](_0x1571b7,_0x2babaf['PMuiN'](_0x30cdf4[_0x2a60cf(0x1c0)],0x1));_0x1571b7++){const _0x17e2d1=_0x30cdf4[_0x1571b7],_0x3c75a5=_0x1ba141[_0x17e2d1];(!_0x3c75a5||typeof _0x3c75a5!==_0x2babaf[_0x2a60cf(0x1ba)]||Array['isArray'](_0x3c75a5))&&(_0x1ba141[_0x17e2d1]={}),_0x1ba141=_0x1ba141[_0x17e2d1];}_0x1ba141[_0x30cdf4[_0x2babaf['IHhfQ'](_0x30cdf4['length'],0x1)]]=_0x2ba8f5;}function deleteByKeyPath(_0x2ab487,_0x4273c9){const _0x4c1c8e=_0x2bac,_0x22f917={'aucwB':function(_0x292d43,_0x13df93){return _0x292d43<_0x13df93;},'rOaEM':function(_0x3836da,_0x56bdb5){return _0x3836da-_0x56bdb5;},'gkPBw':function(_0x453ae2,_0x5180bf){return _0x453ae2!==_0x5180bf;}},_0x2220b8=_0x4273c9['split']('.');let _0x237b31=_0x2ab487;for(let _0x4aef5a=0x0;_0x22f917['aucwB'](_0x4aef5a,_0x22f917[_0x4c1c8e(0x1a7)](_0x2220b8[_0x4c1c8e(0x1c0)],0x1));_0x4aef5a++){const _0x2b0cf3=_0x2220b8[_0x4aef5a],_0x51d6c9=_0x237b31[_0x2b0cf3];if(!_0x51d6c9||_0x22f917[_0x4c1c8e(0x199)](typeof _0x51d6c9,_0x4c1c8e(0x1ad))||Array[_0x4c1c8e(0x197)](_0x51d6c9))return![];_0x237b31=_0x51d6c9;}const _0x59b81c=_0x2220b8[_0x22f917['rOaEM'](_0x2220b8[_0x4c1c8e(0x1c0)],0x1)];if(!(_0x59b81c in _0x237b31))return![];return delete _0x237b31[_0x59b81c],!![];}
@@ -1 +1 @@
1
- (function(_0x469fd6,_0x1c173e){const _0x3a4ef5=_0x10a0,_0x21ff93=_0x469fd6();while(!![]){try{const _0x322e58=parseInt(_0x3a4ef5(0x14a))/0x1*(-parseInt(_0x3a4ef5(0x143))/0x2)+parseInt(_0x3a4ef5(0x14e))/0x3+-parseInt(_0x3a4ef5(0x144))/0x4+parseInt(_0x3a4ef5(0x152))/0x5*(parseInt(_0x3a4ef5(0x149))/0x6)+parseInt(_0x3a4ef5(0x14d))/0x7+parseInt(_0x3a4ef5(0x140))/0x8*(-parseInt(_0x3a4ef5(0x14f))/0x9)+parseInt(_0x3a4ef5(0x146))/0xa;if(_0x322e58===_0x1c173e)break;else _0x21ff93['push'](_0x21ff93['shift']());}catch(_0x5d41e1){_0x21ff93['push'](_0x21ff93['shift']());}}}(_0xf496,0xc643f));function _0x10a0(_0x5155cd,_0x2f5479){_0x5155cd=_0x5155cd-0x140;const _0xf496d7=_0xf496();let _0x10a0cb=_0xf496d7[_0x5155cd];return _0x10a0cb;}import{readFile}from'fs/promises';import{existsSync}from'fs';function _0xf496(){const _0x4670eb=['8LofktO','message','object','1466JUAvvS','6307144soNuqR','OxzNE','24943820eJVywr','PPROM','string','6YJivAt','1933minljE','config.json','gxeuH','11026743OmWqhO','1665171vDjDOS','12614409FlwYwX','model','isArray','2913415uTtJUx','thUxV'];_0xf496=function(){return _0x4670eb;};return _0xf496();}import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x549ca0=_0x10a0,_0xd558c3={'gxeuH':function(_0x1db577,_0x1bb195,_0x136466){return _0x1db577(_0x1bb195,_0x136466);},'HAdmb':_0x549ca0(0x14b)};return _0xd558c3[_0x549ca0(0x14c)](join,getRangerDir(),_0xd558c3['HAdmb']);}export async function loadRangerConfig(){const _0x5baff8=_0x10a0,_0x62a873={'soGAy':function(_0x52ce77){return _0x52ce77();},'PPROM':function(_0x3aaf42,_0xf90125){return _0x3aaf42!==_0xf90125;},'peoDM':_0x5baff8(0x142),'OxzNE':_0x5baff8(0x148),'thUxV':function(_0x11b45e,_0x1bd119){return _0x11b45e(_0x1bd119);}},_0x1843b9=_0x62a873['soGAy'](getRangerConfigPath);if(!existsSync(_0x1843b9))return{};try{const _0x6a3903=await readFile(_0x1843b9,'utf-8'),_0x266b1e=JSON['parse'](_0x6a3903);if(!_0x266b1e||_0x62a873[_0x5baff8(0x147)](typeof _0x266b1e,_0x62a873['peoDM'])||Array[_0x5baff8(0x151)](_0x266b1e))return{};const _0x26d54f={},_0x553c9b=_0x266b1e['model'];return typeof _0x553c9b===_0x62a873[_0x5baff8(0x145)]&&(_0x26d54f[_0x5baff8(0x150)]=_0x553c9b),_0x26d54f;}catch(_0x2f2962){const _0x5c9b05=_0x2f2962 instanceof Error?_0x2f2962[_0x5baff8(0x141)]:_0x62a873[_0x5baff8(0x153)](String,_0x2f2962);return console['warn']('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x1843b9+':\x20'+_0x5c9b05),{};}}
1
+ (function(_0x19a012,_0x565fdf){const _0x4ef22b=_0x3dab,_0x1a77cd=_0x19a012();while(!![]){try{const _0xa23ae7=parseInt(_0x4ef22b(0x191))/0x1+parseInt(_0x4ef22b(0x187))/0x2*(-parseInt(_0x4ef22b(0x189))/0x3)+parseInt(_0x4ef22b(0x185))/0x4*(parseInt(_0x4ef22b(0x18c))/0x5)+parseInt(_0x4ef22b(0x18e))/0x6*(-parseInt(_0x4ef22b(0x192))/0x7)+parseInt(_0x4ef22b(0x194))/0x8*(parseInt(_0x4ef22b(0x18f))/0x9)+-parseInt(_0x4ef22b(0x186))/0xa+-parseInt(_0x4ef22b(0x181))/0xb*(parseInt(_0x4ef22b(0x184))/0xc);if(_0xa23ae7===_0x565fdf)break;else _0x1a77cd['push'](_0x1a77cd['shift']());}catch(_0x581781){_0x1a77cd['push'](_0x1a77cd['shift']());}}}(_0x5192,0x193df));function _0x3dab(_0x138513,_0x3aab2f){_0x138513=_0x138513-0x181;const _0x519223=_0x5192();let _0x3dabcb=_0x519223[_0x138513];return _0x3dabcb;}import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x5f08bd=_0x3dab,_0xc6f894={'IBoUE':function(_0x1fde53,_0x2bc983,_0x1d9f39){return _0x1fde53(_0x2bc983,_0x1d9f39);}};return _0xc6f894[_0x5f08bd(0x190)](join,getRangerDir(),_0x5f08bd(0x18b));}export async function loadRangerConfig(){const _0x50edee=_0x3dab,_0x42da8e={'zzLpi':function(_0x359910){return _0x359910();},'JUrDT':function(_0x1a10fd,_0x219e28){return _0x1a10fd(_0x219e28);},'ERbKd':function(_0x4b408f,_0x4aaa37,_0x3e894b){return _0x4b408f(_0x4aaa37,_0x3e894b);},'SoQej':'utf-8','sELHj':function(_0x5db2a3,_0x583fb0){return _0x5db2a3!==_0x583fb0;},'hpPeC':_0x50edee(0x188),'rjIvP':function(_0xad2c3,_0x2c0b2e){return _0xad2c3===_0x2c0b2e;},'qsSjO':'string','SSYdU':function(_0x486f87,_0xf6c115){return _0x486f87(_0xf6c115);}},_0x25f5ff=_0x42da8e['zzLpi'](getRangerConfigPath);if(!_0x42da8e[_0x50edee(0x182)](existsSync,_0x25f5ff))return{};try{const _0x2c6840=await _0x42da8e[_0x50edee(0x18d)](readFile,_0x25f5ff,_0x42da8e[_0x50edee(0x183)]),_0x4ec34d=JSON['parse'](_0x2c6840);if(!_0x4ec34d||_0x42da8e['sELHj'](typeof _0x4ec34d,_0x42da8e['hpPeC'])||Array['isArray'](_0x4ec34d))return{};const _0xbbc1db={},_0xedd104=_0x4ec34d['model'];return _0x42da8e['rjIvP'](typeof _0xedd104,_0x42da8e[_0x50edee(0x18a)])&&(_0xbbc1db[_0x50edee(0x193)]=_0xedd104),_0xbbc1db;}catch(_0x26df55){const _0x4d5d89=_0x26df55 instanceof Error?_0x26df55['message']:_0x42da8e['SSYdU'](String,_0x26df55);return console['warn']('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x25f5ff+':\x20'+_0x4d5d89),{};}}function _0x5192(){const _0x592e67=['JUrDT','SoQej','3528yixdvJ','82312xeuJfW','660860Rwdvid','114frrrzX','object','1641PDzwnL','qsSjO','config.json','35zkMTjw','ERbKd','6NwEYZA','1440117ujuKGj','IBoUE','23785MkrVla','682458gEwwcV','model','8gMyDSG','1111URTGfp'];_0x5192=function(){return _0x592e67;};return _0x5192();}
@@ -1 +1 @@
1
- (function(_0x3fb11c,_0x897129){const _0x31e46a=_0x20e5,_0x2a707c=_0x3fb11c();while(!![]){try{const _0x17ab45=-parseInt(_0x31e46a(0x122))/0x1+parseInt(_0x31e46a(0x130))/0x2*(-parseInt(_0x31e46a(0x132))/0x3)+parseInt(_0x31e46a(0x126))/0x4*(-parseInt(_0x31e46a(0x135))/0x5)+parseInt(_0x31e46a(0x129))/0x6+parseInt(_0x31e46a(0x127))/0x7*(parseInt(_0x31e46a(0x134))/0x8)+-parseInt(_0x31e46a(0x12a))/0x9*(parseInt(_0x31e46a(0x133))/0xa)+-parseInt(_0x31e46a(0x12f))/0xb*(-parseInt(_0x31e46a(0x12e))/0xc);if(_0x17ab45===_0x897129)break;else _0x2a707c['push'](_0x2a707c['shift']());}catch(_0x48caff){_0x2a707c['push'](_0x2a707c['shift']());}}}(_0x30c6,0xe5618));import{dirname,join,parse}from'path';import{existsSync}from'fs';function _0x20e5(_0x181539,_0x4439c2){_0x181539=_0x181539-0x121;const _0x30c6a2=_0x30c6();let _0x20e53a=_0x30c6a2[_0x181539];return _0x20e53a;}import{homedir}from'os';export function getRangerRoot(){const _0x3db28b=_0x20e5,_0x28cfbf={'OuUnO':function(_0x2e760e,_0x54f7fa){return _0x2e760e!==_0x54f7fa;},'UXxBK':function(_0x7e8753,_0x3afe66){return _0x7e8753(_0x3afe66);},'ewhTh':function(_0x49618b,_0x7705c2,_0xda1f9e){return _0x49618b(_0x7705c2,_0xda1f9e);},'KFrYo':_0x3db28b(0x124),'ytkxl':function(_0x28aca3,_0x42b605){return _0x28aca3(_0x42b605);},'NPAJC':function(_0x592efe,_0x538b3c,_0x57a3c2){return _0x592efe(_0x538b3c,_0x57a3c2);}};let _0x3d0161=process[_0x3db28b(0x123)]();const _0xd9a0f4=parse(_0x3d0161)['root'];while(_0x28cfbf[_0x3db28b(0x12c)](_0x3d0161,_0xd9a0f4)){if(_0x28cfbf[_0x3db28b(0x12b)](existsSync,_0x28cfbf[_0x3db28b(0x12d)](join,_0x3d0161,_0x28cfbf[_0x3db28b(0x121)])))return _0x3d0161;_0x3d0161=_0x28cfbf['ytkxl'](dirname,_0x3d0161);}if(_0x28cfbf['UXxBK'](existsSync,_0x28cfbf['NPAJC'](join,_0xd9a0f4,_0x28cfbf['KFrYo'])))return _0xd9a0f4;const _0x5e5a96=findGitRoot();if(_0x5e5a96)return _0x5e5a96;return process['cwd']();}function _0x30c6(){const _0x2ed277=['UKtmu','10494870ZvGkNw','3896073ELXyNs','UXxBK','OuUnO','ewhTh','107772rlAPyf','3641oVMToZ','10cvWrXJ','wrCff','164310ESMtuc','30gItqas','232lOLeTD','5BuUzCD','oLMup','KFrYo','1404304Ygjxhp','cwd','.ranger','.git','5917012cuMlfr','162638ZRsnqn'];_0x30c6=function(){return _0x2ed277;};return _0x30c6();}export function getRangerDir(){const _0x5a92f4=_0x20e5,_0xb5c077={'smjuy':function(_0x200ceb){return _0x200ceb();}};return join(_0xb5c077['smjuy'](getRangerRoot),_0x5a92f4(0x124));}export function findGitRoot(){const _0x28b68e=_0x20e5,_0x31bf66={'MhEdo':function(_0x2e8fe3,_0x3fc8cc){return _0x2e8fe3(_0x3fc8cc);},'wrCff':function(_0x48c80b,_0x5ce508){return _0x48c80b!==_0x5ce508;},'FDJHt':function(_0x401f3d,_0x1ca5fb){return _0x401f3d(_0x1ca5fb);},'oLMup':_0x28b68e(0x125)};let _0x25fd16=process['cwd']();const _0x4f6826=_0x31bf66['MhEdo'](parse,_0x25fd16)['root'];while(_0x31bf66[_0x28b68e(0x131)](_0x25fd16,_0x4f6826)){if(existsSync(join(_0x25fd16,_0x28b68e(0x125))))return _0x25fd16;_0x25fd16=dirname(_0x25fd16);}if(_0x31bf66['FDJHt'](existsSync,join(_0x4f6826,_0x31bf66[_0x28b68e(0x136)])))return _0x4f6826;return null;}export function getRangerHomeDir(){const _0x237097=_0x20e5,_0x2d863a={'GVWnF':function(_0x5446ce,_0x43efa0,_0x17531d){return _0x5446ce(_0x43efa0,_0x17531d);},'UKtmu':'.ranger'};return _0x2d863a['GVWnF'](join,homedir(),_0x2d863a[_0x237097(0x128)]);}
1
+ (function(_0x4dd7e3,_0x1fe1dc){const _0x26c905=_0x392c,_0x5479f3=_0x4dd7e3();while(!![]){try{const _0x135a52=-parseInt(_0x26c905(0x68))/0x1*(parseInt(_0x26c905(0x6d))/0x2)+-parseInt(_0x26c905(0x6f))/0x3*(-parseInt(_0x26c905(0x67))/0x4)+parseInt(_0x26c905(0x7a))/0x5+-parseInt(_0x26c905(0x79))/0x6+-parseInt(_0x26c905(0x71))/0x7+-parseInt(_0x26c905(0x6b))/0x8+parseInt(_0x26c905(0x75))/0x9*(parseInt(_0x26c905(0x77))/0xa);if(_0x135a52===_0x1fe1dc)break;else _0x5479f3['push'](_0x5479f3['shift']());}catch(_0x4395d0){_0x5479f3['push'](_0x5479f3['shift']());}}}(_0x1abc,0x49c74));import{dirname,join,parse}from'path';function _0x392c(_0x3c2046,_0x5559c1){_0x3c2046=_0x3c2046-0x65;const _0x1abc78=_0x1abc();let _0x392ca9=_0x1abc78[_0x3c2046];return _0x392ca9;}import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x343159=_0x392c,_0x35d17e={'IrWgb':function(_0x32f075,_0x325749){return _0x32f075!==_0x325749;},'QKdnu':function(_0x3ba009,_0xbc4ff0){return _0x3ba009(_0xbc4ff0);},'zUfMM':function(_0x9f8c50,_0x4d1c60,_0x58617a){return _0x9f8c50(_0x4d1c60,_0x58617a);},'lccTh':'.ranger','PnpQs':function(_0x5736e2){return _0x5736e2();}};let _0x5b3e5a=process['cwd']();const _0x5f03ba=parse(_0x5b3e5a)[_0x343159(0x66)];while(_0x35d17e[_0x343159(0x6a)](_0x5b3e5a,_0x5f03ba)){if(existsSync(join(_0x5b3e5a,_0x343159(0x76))))return _0x5b3e5a;_0x5b3e5a=_0x35d17e['QKdnu'](dirname,_0x5b3e5a);}if(_0x35d17e[_0x343159(0x6c)](existsSync,_0x35d17e[_0x343159(0x72)](join,_0x5f03ba,_0x35d17e[_0x343159(0x74)])))return _0x5f03ba;const _0x43dbcb=_0x35d17e[_0x343159(0x70)](findGitRoot);if(_0x43dbcb)return _0x43dbcb;return process['cwd']();}export function getRangerDir(){const _0x370191=_0x392c,_0x137570={'INvXi':function(_0x206b06,_0x5018a5,_0x5aa3d0){return _0x206b06(_0x5018a5,_0x5aa3d0);},'vVWdi':_0x370191(0x76)};return _0x137570['INvXi'](join,getRangerRoot(),_0x137570['vVWdi']);}export function findGitRoot(){const _0x33db9e=_0x392c,_0x49b01b={'LAaez':function(_0x4b820f,_0x2fdd50){return _0x4b820f(_0x2fdd50);},'VwoeG':function(_0x5d2f00,_0x11ab43){return _0x5d2f00!==_0x11ab43;},'xwgar':function(_0x4093a1,_0x576794,_0x151d9e){return _0x4093a1(_0x576794,_0x151d9e);},'toLNe':'.git','MmnaP':function(_0x815b78,_0x1ce031){return _0x815b78(_0x1ce031);}};let _0x1310f7=process[_0x33db9e(0x6e)]();const _0x539277=_0x49b01b['LAaez'](parse,_0x1310f7)[_0x33db9e(0x66)];while(_0x49b01b['VwoeG'](_0x1310f7,_0x539277)){if(_0x49b01b['LAaez'](existsSync,_0x49b01b[_0x33db9e(0x73)](join,_0x1310f7,_0x49b01b[_0x33db9e(0x78)])))return _0x1310f7;_0x1310f7=_0x49b01b[_0x33db9e(0x65)](dirname,_0x1310f7);}if(existsSync(_0x49b01b['xwgar'](join,_0x539277,_0x49b01b['toLNe'])))return _0x539277;return null;}function _0x1abc(){const _0x580871=['1491845vuggYE','MmnaP','root','780NDXxCo','1TyonnM','NuSPW','IrWgb','1878400TSCDlP','QKdnu','1016782uUBADE','cwd','228EeMRsG','PnpQs','1986250fulgKp','zUfMM','xwgar','lccTh','9EvinaK','.ranger','11458550tDNtDy','toLNe','779442rFHVxk'];_0x1abc=function(){return _0x580871;};return _0x1abc();}export function getRangerHomeDir(){const _0x1e561a=_0x392c,_0x2fa6d8={'NuSPW':function(_0x545bef){return _0x545bef();}};return join(_0x2fa6d8[_0x1e561a(0x69)](homedir),'.ranger');}
@@ -1 +1 @@
1
- (function(_0x54bc49,_0x40325a){const _0x1407db=_0x29aa,_0x346254=_0x54bc49();while(!![]){try{const _0x76571a=-parseInt(_0x1407db(0x16a))/0x1+-parseInt(_0x1407db(0x150))/0x2+-parseInt(_0x1407db(0x15b))/0x3+parseInt(_0x1407db(0x169))/0x4+-parseInt(_0x1407db(0x159))/0x5+-parseInt(_0x1407db(0x165))/0x6*(-parseInt(_0x1407db(0x161))/0x7)+parseInt(_0x1407db(0x158))/0x8*(parseInt(_0x1407db(0x168))/0x9);if(_0x76571a===_0x40325a)break;else _0x346254['push'](_0x346254['shift']());}catch(_0xe79b00){_0x346254['push'](_0x346254['shift']());}}}(_0x1239,0xdb38b));import{spawn}from'child_process';import{createRequire}from'module';import{dirname,join}from'path';import{readFileSync}from'fs';import{quoteShellArg}from'./playwrightCli.js';export const RANGERWRIGHT_CLI_PACKAGE='@ranger-testing/rangerwright';export const RANGERWRIGHT_CLI_BINARY='rangerwright';function readPackageJson(_0x2c84e3){const _0x404c8a=_0x29aa,_0x1654c2={'qsBcO':_0x404c8a(0x170),'KQkXB':'object'},_0x34cbf7=readFileSync(_0x2c84e3,_0x1654c2['qsBcO']),_0x353eb5=JSON[_0x404c8a(0x15a)](_0x34cbf7);if(!_0x353eb5||typeof _0x353eb5!==_0x1654c2[_0x404c8a(0x17d)])return{};return _0x353eb5;}export function resolveRangerwrightCliBinary(){const _0x5c91a9=_0x29aa,_0x4d4715={'lHuFS':function(_0x2fb843,_0x5e61ed){return _0x2fb843(_0x5e61ed);},'RoBGz':_0x5c91a9(0x176),'cBjXK':function(_0x344dcc,_0x21d59a){return _0x344dcc===_0x21d59a;},'EXmCM':_0x5c91a9(0x167),'XxaFk':function(_0x347c34,_0x44b03c,_0x2c20df){return _0x347c34(_0x44b03c,_0x2c20df);}},_0x25143f=_0x4d4715[_0x5c91a9(0x14f)](createRequire,process['argv'][0x1]||join(process['cwd'](),_0x4d4715[_0x5c91a9(0x152)])),_0x5f4359=_0x25143f['resolve'](RANGERWRIGHT_CLI_PACKAGE+'/package.json'),_0x2b8491=dirname(_0x5f4359),_0x42d981=readPackageJson(_0x5f4359),_0x3d92b3=_0x4d4715['cBjXK'](typeof _0x42d981['bin'],_0x4d4715['EXmCM'])?_0x42d981[_0x5c91a9(0x178)]:_0x42d981['bin']?.[RANGERWRIGHT_CLI_BINARY];if(!_0x3d92b3)throw new Error(RANGERWRIGHT_CLI_PACKAGE+_0x5c91a9(0x154)+RANGERWRIGHT_CLI_BINARY+'\x20binary');return _0x4d4715['XxaFk'](join,_0x2b8491,_0x3d92b3);}export function buildRangerwrightCliEnv(_0xab7aed){const _0x2a856e=_0x29aa;return{'RANGERWRIGHT_SESSION':_0xab7aed[_0x2a856e(0x15c)],'RANGERWRIGHT_CONFIG':_0xab7aed[_0x2a856e(0x174)],'RANGERWRIGHT_ARTIFACT_DIR':_0xab7aed[_0x2a856e(0x17e)],..._0xab7aed['socketPath']?{'RANGERWRIGHT_SOCKET_PATH':_0xab7aed['socketPath']}:{}};}export function applyRangerwrightCliEnv(_0x4d4b2a,_0x28ffbf){const _0x224bed=_0x29aa;Object[_0x224bed(0x153)](_0x4d4b2a,buildRangerwrightCliEnv(_0x28ffbf));}function _0x1239(){const _0x46b142=['TIVRz','UIqIP','command','utf-8','pipe','XwPqh','error','configPath','kill','package.json','rangerwright-cli\x20','bin','sxBck','cwd','args','eCCQd','KQkXB','artifactDir','lHuFS','117568AggYfC','null','RoBGz','assign','\x20does\x20not\x20expose\x20a\x20','close','SIGTERM','vCeAI','1963864lpDJkd','721200EVHXqE','parse','2623638yjPSuy','sessionId','env','\x20--json','--json','jQuKi','60361UsFCUc','binaryPath','toString','JEpum','1176oWfZTD','match','string','18xpJVbt','4594404Kkvxzm','1354174wozMMq','rHeRq','UllNA'];_0x1239=function(){return _0x46b142;};return _0x1239();}export function buildRangerwrightCliCommandPrefix(_0x1fd2dd=resolveRangerwrightCliBinary()){const _0x4494a2=_0x29aa,_0x449ce5={'jQuKi':function(_0x421f80,_0x29d10e){return _0x421f80(_0x29d10e);}};return _0x449ce5[_0x4494a2(0x160)](quoteShellArg,_0x1fd2dd)+_0x4494a2(0x15e);}function getRangerwrightSubcommand(_0x23134e){return _0x23134e[0x0]??'unknown';}export function buildRangerwrightCliInvocation(_0x187ab2,_0x25e50c){const _0x22c779=_0x29aa,_0x457ea1={'jPlGH':function(_0x2ccbbf){return _0x2ccbbf();},'vCeAI':_0x22c779(0x15f),'cDVxk':function(_0x2cf6f5,_0xa97302){return _0x2cf6f5(_0xa97302);}},_0x330a8a=_0x187ab2[_0x22c779(0x162)]??_0x457ea1['jPlGH'](resolveRangerwrightCliBinary),_0x2208fa=[_0x457ea1[_0x22c779(0x157)],..._0x25e50c];return{'command':_0x330a8a,'args':_0x2208fa,'shellCommand':[quoteShellArg(_0x330a8a),_0x457ea1['vCeAI'],..._0x25e50c['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x457ea1['cDVxk'](getRangerwrightSubcommand,_0x25e50c)};}function truncateOutput(_0x62b812,_0x3bf3ae=0x7d0){const _0x1da0c8=_0x29aa,_0x3c4109={'rHeRq':function(_0x5ae141,_0x594942){return _0x5ae141>_0x594942;},'XwPqh':function(_0x4af2fa,_0x24763c){return _0x4af2fa+_0x24763c;},'UxnZs':'...'};return _0x3c4109[_0x1da0c8(0x16b)](_0x62b812['length'],_0x3bf3ae)?_0x3c4109[_0x1da0c8(0x172)](_0x62b812['slice'](0x0,_0x3bf3ae),_0x3c4109['UxnZs']):_0x62b812;}function _0x29aa(_0x4f800a,_0x3dc91e){_0x4f800a=_0x4f800a-0x14f;const _0x12398b=_0x1239();let _0x29aad9=_0x12398b[_0x4f800a];return _0x29aad9;}export async function runRangerwrightCliCommand(_0x1baaa6){const _0x2325b3=_0x29aa,_0x9c841e={'UIqIP':function(_0x595fc7,_0x374a1d){return _0x595fc7(_0x374a1d);},'xgLsH':'null','qFrsE':function(_0x1ebcfe,_0x418e54){return _0x1ebcfe(_0x418e54);},'TIVRz':function(_0xb360ef,_0xf429a3){return _0xb360ef(_0xf429a3);},'eCCQd':function(_0x440edc,_0x4b22f7){return _0x440edc(_0x4b22f7);},'UllNA':function(_0x2c69cf,_0x542459,_0x34e651){return _0x2c69cf(_0x542459,_0x34e651);},'sxBck':function(_0x7b9552,_0x245b7e){return _0x7b9552>_0x245b7e;},'ziJCs':'data','JEpum':function(_0x4597c8,_0x21e633){return _0x4597c8(_0x21e633);}},_0x1dc306=buildRangerwrightCliInvocation(_0x1baaa6,_0x1baaa6['commandArgs']),_0x213132={..._0x1baaa6[_0x2325b3(0x15d)]??process['env'],..._0x9c841e[_0x2325b3(0x164)](buildRangerwrightCliEnv,_0x1baaa6)};return new Promise((_0x25e9bf,_0x23f932)=>{const _0x28af7d=_0x2325b3,_0x3b2d04={'IKmek':function(_0x59f008,_0x1d89c0,_0x48cf27){const _0x5b4c76=_0x29aa;return _0x9c841e[_0x5b4c76(0x16c)](_0x59f008,_0x1d89c0,_0x48cf27);}},_0x591886=spawn(_0x1dc306[_0x28af7d(0x16f)],_0x1dc306[_0x28af7d(0x17b)],{'cwd':_0x1baaa6[_0x28af7d(0x17a)],'env':_0x213132,'stdio':['ignore','pipe',_0x28af7d(0x171)]});let _0x198f16='',_0x346574='',_0x29254c=![];const _0x5730b5=_0x1baaa6['timeoutMs']&&_0x9c841e[_0x28af7d(0x179)](_0x1baaa6['timeoutMs'],0x0)?setTimeout(()=>{const _0x400964=_0x28af7d;_0x29254c=!![],_0x591886[_0x400964(0x175)](_0x400964(0x156)),_0x3b2d04['IKmek'](setTimeout,()=>{try{_0x591886['kill']('SIGKILL');}catch{}},0x3e8);},_0x1baaa6['timeoutMs']):null;_0x591886['stdout']?.['on'](_0x9c841e['ziJCs'],_0x14c73b=>{const _0x10e783=_0x28af7d;_0x198f16+=_0x14c73b[_0x10e783(0x163)]();}),_0x591886['stderr']?.['on']('data',_0x46a147=>{_0x346574+=_0x46a147['toString']();}),_0x591886['on'](_0x28af7d(0x173),_0x2ae901=>{const _0x38b0d6=_0x28af7d;if(_0x5730b5)_0x9c841e[_0x38b0d6(0x16e)](clearTimeout,_0x5730b5);_0x9c841e['UIqIP'](_0x23f932,_0x2ae901);}),_0x591886['on'](_0x28af7d(0x155),(_0xc3e4b2,_0xfb71e8)=>{const _0x404a88=_0x28af7d;if(_0x5730b5)_0x9c841e[_0x404a88(0x16e)](clearTimeout,_0x5730b5);if(_0xc3e4b2===0x0){_0x25e9bf({'stdout':_0x198f16,'stderr':_0x346574,'invocation':_0x1dc306});return;}const _0x7cad17=_0x29254c?'timed\x20out\x20after\x20'+_0x1baaa6['timeoutMs']+'ms':'exited\x20with\x20code='+(_0xc3e4b2??_0x404a88(0x151))+'\x20signal='+(_0xfb71e8??_0x9c841e['xgLsH']);_0x9c841e['qFrsE'](_0x23f932,new Error(_0x404a88(0x177)+_0x1dc306['subcommand']+'\x20'+_0x7cad17+'\x0astdout:\x20'+_0x9c841e[_0x404a88(0x16d)](truncateOutput,_0x198f16)+'\x0astderr:\x20'+_0x9c841e[_0x404a88(0x17c)](truncateOutput,_0x346574)));});});}export function parseRangerwrightCliCommand(_0x3b4f44){const _0x1aa052=_0x29aa,_0x1d789b=_0x3b4f44[_0x1aa052(0x166)](/(?:^|\s)(?:"[^"]*rangerwright(?:\/build\/cli\.js)?"|'[^']*rangerwright(?:\/build\/cli\.js)?'|\S*rangerwright(?:\/build\/cli\.js)?)(?:\s+--json)?\s+([a-z-]+)/);return _0x1d789b?.[0x1]??null;}
1
+ const _0x5e6663=_0x41ca;(function(_0x3fa311,_0xb0ea8c){const _0x3ba640=_0x41ca,_0x204dc6=_0x3fa311();while(!![]){try{const _0x30002c=parseInt(_0x3ba640(0x19c))/0x1+parseInt(_0x3ba640(0x18f))/0x2+parseInt(_0x3ba640(0x17b))/0x3+parseInt(_0x3ba640(0x189))/0x4*(-parseInt(_0x3ba640(0x17c))/0x5)+parseInt(_0x3ba640(0x17e))/0x6*(parseInt(_0x3ba640(0x198))/0x7)+parseInt(_0x3ba640(0x181))/0x8+-parseInt(_0x3ba640(0x190))/0x9*(parseInt(_0x3ba640(0x180))/0xa);if(_0x30002c===_0xb0ea8c)break;else _0x204dc6['push'](_0x204dc6['shift']());}catch(_0x5be1ad){_0x204dc6['push'](_0x204dc6['shift']());}}}(_0x56e0,0x73fa6));import{spawn}from'child_process';import{createRequire}from'module';import{dirname,join}from'path';import{readFileSync}from'fs';import{quoteShellArg}from'./playwrightCli.js';export const RANGERWRIGHT_CLI_PACKAGE='@ranger-testing/rangerwright';export const RANGERWRIGHT_CLI_BINARY=_0x5e6663(0x16c);function readPackageJson(_0x151870){const _0x3a6233=_0x5e6663,_0x277a6e={'ypSfg':function(_0x3e72b8,_0xf09196,_0x4148df){return _0x3e72b8(_0xf09196,_0x4148df);},'UPjFY':'utf-8','NCuHK':function(_0x48bff7,_0x243097){return _0x48bff7!==_0x243097;}},_0xcda793=_0x277a6e['ypSfg'](readFileSync,_0x151870,_0x277a6e[_0x3a6233(0x177)]),_0x3f243b=JSON[_0x3a6233(0x17d)](_0xcda793);if(!_0x3f243b||_0x277a6e[_0x3a6233(0x194)](typeof _0x3f243b,'object'))return{};return _0x3f243b;}export function resolveRangerwrightCliBinary(){const _0x33b7a5=_0x5e6663,_0x58c7f3={'YWevw':function(_0x31e9a4,_0x28f603){return _0x31e9a4(_0x28f603);},'RJzyd':function(_0x5c0479,_0x68ad58,_0x47b915){return _0x5c0479(_0x68ad58,_0x47b915);},'xSNjZ':function(_0x2fae2c,_0x164caf){return _0x2fae2c(_0x164caf);},'kvRlX':function(_0x39dad5,_0x16f66d,_0x15828c){return _0x39dad5(_0x16f66d,_0x15828c);}},_0x3ae026=_0x58c7f3['YWevw'](createRequire,process['argv'][0x1]||_0x58c7f3[_0x33b7a5(0x167)](join,process['cwd'](),_0x33b7a5(0x16d))),_0x5efc02=_0x3ae026[_0x33b7a5(0x191)](RANGERWRIGHT_CLI_PACKAGE+_0x33b7a5(0x16a)),_0x58fa31=dirname(_0x5efc02),_0x561714=_0x58c7f3[_0x33b7a5(0x171)](readPackageJson,_0x5efc02),_0x15a208=typeof _0x561714[_0x33b7a5(0x182)]===_0x33b7a5(0x17f)?_0x561714[_0x33b7a5(0x182)]:_0x561714['bin']?.[RANGERWRIGHT_CLI_BINARY];if(!_0x15a208)throw new Error(RANGERWRIGHT_CLI_PACKAGE+'\x20does\x20not\x20expose\x20a\x20'+RANGERWRIGHT_CLI_BINARY+'\x20binary');return _0x58c7f3[_0x33b7a5(0x193)](join,_0x58fa31,_0x15a208);}export function buildRangerwrightCliEnv(_0x52ed97){const _0x38bb93=_0x5e6663;return{'RANGERWRIGHT_SESSION':_0x52ed97[_0x38bb93(0x19e)],'RANGERWRIGHT_CONFIG':_0x52ed97['configPath'],'RANGERWRIGHT_ARTIFACT_DIR':_0x52ed97['artifactDir'],..._0x52ed97[_0x38bb93(0x18b)]?{'RANGERWRIGHT_SOCKET_PATH':_0x52ed97['socketPath']}:{}};}export function applyRangerwrightCliEnv(_0x418c24,_0x315e07){const _0x38eb07=_0x5e6663;Object[_0x38eb07(0x185)](_0x418c24,buildRangerwrightCliEnv(_0x315e07));}function _0x41ca(_0x58e866,_0x4ec6c4){_0x58e866=_0x58e866-0x166;const _0x56e033=_0x56e0();let _0x41cab9=_0x56e033[_0x58e866];return _0x41cab9;}function _0x56e0(){const _0x68befc=['6wdybKZ','string','136790ianjmj','590168cLxfhA','bin','SIGKILL','pipe','assign','wXhat','\x20signal=','DQsnb','591472wUyXlY','command','socketPath','OqGbW','data','timed\x20out\x20after\x20','1687540WqXyVI','738Wovybf','resolve','SIGTERM','kvRlX','NCuHK','unknown','JZDJN','stdout','1474207KswSjZ','match','binaryPath','gUrXi','845389fGEnej','null','sessionId','commandArgs','RJzyd','close','toString','/package.json','KfyIw','rangerwright','package.json','JAuru','timeoutMs','join','xSNjZ','length','Vhwga','ignore','\x0astderr:\x20','zOpts','UPjFY','subcommand','jwXll','MteSN','1087599frfTiR','25qQzbmQ','parse'];_0x56e0=function(){return _0x68befc;};return _0x56e0();}export function buildRangerwrightCliCommandPrefix(_0x4885b7=resolveRangerwrightCliBinary()){return quoteShellArg(_0x4885b7)+'\x20--json';}function getRangerwrightSubcommand(_0x1b5670){const _0x653f60=_0x5e6663,_0x34efea={'WiJMT':_0x653f60(0x195)};return _0x1b5670[0x0]??_0x34efea['WiJMT'];}export function buildRangerwrightCliInvocation(_0x24196e,_0x4f902b){const _0x377a2e=_0x5e6663,_0x9c7fe8={'QAeow':'--json','jwXll':function(_0x126693,_0x10c344){return _0x126693(_0x10c344);}},_0x4685ef=_0x24196e[_0x377a2e(0x19a)]??resolveRangerwrightCliBinary(),_0x5858ae=[_0x9c7fe8['QAeow'],..._0x4f902b];return{'command':_0x4685ef,'args':_0x5858ae,'shellCommand':[quoteShellArg(_0x4685ef),'--json',..._0x4f902b['map'](quoteShellArg)][_0x377a2e(0x170)]('\x20'),'subcommand':_0x9c7fe8[_0x377a2e(0x179)](getRangerwrightSubcommand,_0x4f902b)};}function truncateOutput(_0x39887f,_0x12c58d=0x7d0){const _0xd74a61=_0x5e6663,_0x35b507={'JZDJN':function(_0x470ef9,_0x3f4e74){return _0x470ef9+_0x3f4e74;}};return _0x39887f[_0xd74a61(0x172)]>_0x12c58d?_0x35b507[_0xd74a61(0x196)](_0x39887f['slice'](0x0,_0x12c58d),'...'):_0x39887f;}export async function runRangerwrightCliCommand(_0x19a54c){const _0x1a1be0=_0x5e6663,_0x3f6ee2={'DQsnb':_0x1a1be0(0x19d),'gUrXi':function(_0x401457,_0x4e9204){return _0x401457??_0x4e9204;},'MteSN':function(_0x1f562a,_0x2db917){return _0x1f562a(_0x2db917);},'OqGbW':_0x1a1be0(0x174),'KfyIw':function(_0x1cb770,_0x86ef75){return _0x1cb770>_0x86ef75;},'JAuru':_0x1a1be0(0x18d),'Vhwga':'error','wXhat':_0x1a1be0(0x168),'zOpts':function(_0x4b125f,_0x27a156,_0x24b951){return _0x4b125f(_0x27a156,_0x24b951);},'lHjsk':function(_0x5643e3,_0x5545c2){return _0x5643e3(_0x5545c2);}},_0x4b5583=_0x3f6ee2[_0x1a1be0(0x176)](buildRangerwrightCliInvocation,_0x19a54c,_0x19a54c[_0x1a1be0(0x166)]),_0x5158fd={..._0x19a54c['env']??process['env'],..._0x3f6ee2['lHjsk'](buildRangerwrightCliEnv,_0x19a54c)};return new Promise((_0xa14c40,_0x23a714)=>{const _0x2c166a=_0x1a1be0,_0x2094e8={'CMMAD':_0x2c166a(0x192)},_0x5d46dd=spawn(_0x4b5583[_0x2c166a(0x18a)],_0x4b5583['args'],{'cwd':_0x19a54c['cwd'],'env':_0x5158fd,'stdio':[_0x3f6ee2[_0x2c166a(0x18c)],'pipe',_0x2c166a(0x184)]});let _0x4ecbfc='',_0x4879ac='',_0x278b77=![];const _0x5eaed8=_0x19a54c[_0x2c166a(0x16f)]&&_0x3f6ee2[_0x2c166a(0x16b)](_0x19a54c[_0x2c166a(0x16f)],0x0)?setTimeout(()=>{const _0x15dbf7=_0x2c166a,_0x2358a2={'Aqvhf':_0x15dbf7(0x183)};_0x278b77=!![],_0x5d46dd['kill'](_0x2094e8['CMMAD']),setTimeout(()=>{try{_0x5d46dd['kill'](_0x2358a2['Aqvhf']);}catch{}},0x3e8);},_0x19a54c['timeoutMs']):null;_0x5d46dd[_0x2c166a(0x197)]?.['on'](_0x3f6ee2[_0x2c166a(0x16e)],_0x489090=>{const _0x1097e4=_0x2c166a;_0x4ecbfc+=_0x489090[_0x1097e4(0x169)]();}),_0x5d46dd['stderr']?.['on'](_0x2c166a(0x18d),_0x2768a5=>{const _0x424045=_0x2c166a;_0x4879ac+=_0x2768a5[_0x424045(0x169)]();}),_0x5d46dd['on'](_0x3f6ee2[_0x2c166a(0x173)],_0x225b8a=>{if(_0x5eaed8)clearTimeout(_0x5eaed8);_0x23a714(_0x225b8a);}),_0x5d46dd['on'](_0x3f6ee2[_0x2c166a(0x186)],(_0x45d335,_0x3556c1)=>{const _0x12967f=_0x2c166a;if(_0x5eaed8)clearTimeout(_0x5eaed8);if(_0x45d335===0x0){_0xa14c40({'stdout':_0x4ecbfc,'stderr':_0x4879ac,'invocation':_0x4b5583});return;}const _0x596e07=_0x278b77?_0x12967f(0x18e)+_0x19a54c['timeoutMs']+'ms':'exited\x20with\x20code='+(_0x45d335??_0x3f6ee2[_0x12967f(0x188)])+_0x12967f(0x187)+_0x3f6ee2[_0x12967f(0x19b)](_0x3556c1,_0x3f6ee2['DQsnb']);_0x3f6ee2[_0x12967f(0x17a)](_0x23a714,new Error('rangerwright-cli\x20'+_0x4b5583[_0x12967f(0x178)]+'\x20'+_0x596e07+'\x0astdout:\x20'+truncateOutput(_0x4ecbfc)+_0x12967f(0x175)+truncateOutput(_0x4879ac)));});});}export function parseRangerwrightCliCommand(_0x4c5803){const _0x3fcaaf=_0x5e6663,_0x4cc9ef=_0x4c5803[_0x3fcaaf(0x199)](/(?:^|\s)(?:"[^"]*rangerwright(?:\/build\/cli\.js)?"|'[^']*rangerwright(?:\/build\/cli\.js)?'|\S*rangerwright(?:\/build\/cli\.js)?)(?:\s+--json)?\s+([a-z-]+)/);return _0x4cc9ef?.[0x1]??null;}