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

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 +14 -5
@@ -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 _0x3b36f0=_0x2275;(function(_0x126270,_0x31e921){const _0x70155b=_0x2275,_0x5e6f95=_0x126270();while(!![]){try{const _0x312268=parseInt(_0x70155b(0xa7))/0x1+parseInt(_0x70155b(0xb5))/0x2*(parseInt(_0x70155b(0xb2))/0x3)+parseInt(_0x70155b(0xfb))/0x4*(parseInt(_0x70155b(0xe0))/0x5)+parseInt(_0x70155b(0x105))/0x6*(parseInt(_0x70155b(0xa8))/0x7)+parseInt(_0x70155b(0x80))/0x8*(-parseInt(_0x70155b(0x107))/0x9)+-parseInt(_0x70155b(0x85))/0xa+parseInt(_0x70155b(0xac))/0xb*(parseInt(_0x70155b(0x7f))/0xc);if(_0x312268===_0x31e921)break;else _0x5e6f95['push'](_0x5e6f95['shift']());}catch(_0x4768d9){_0x5e6f95['push'](_0x5e6f95['shift']());}}}(_0x2307,0x38ade));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';function _0x2307(){const _0x6ff3d6=['217rbyRmN','rYSTE','--session-id','act\x20browser\x20doctor\x20--json\x20exited\x20with\x20code=','6358qCoJbp','domain','httpOnly','browserProfilePath','command','HBDms','34716HHcNuh','GINKM','cNKGi','26zployy','length','UZDfw','port','CYAUQ','http://127.0.0.1:','PATH','stdout','find','ignore','kCQDt','TJada','once','sha256','baseUrl','AgoXM','/usr/local/bin','nova-act-cli\x20','webSocketDebuggerUrl','session','expires','xoMST','hRJzk','mVtwD','logsDirectory','domcontentloaded','trim','GkNsB','storageStatePath','\x0astderr:\x20','UsSPL','close','newPage','get','YbLqY','yCRPX','AKKzY','\x20browser\x20\x22$@\x22\x20','byteLength','kGOyu','cbvPU','isFile','--headless','5lHveia','nRYFD','iKAuj','--launch-arg=','YNCiA','dqoxC','pQjMo','ftgSx','qABFG','timeoutMs','filter','XRznz','NiMAu','sessionId','jaamr','DaCwo','Timed\x20out\x20waiting\x20for\x20hydration\x20browser\x20CDP','PnKDI','Default','VCiim','\x20Fix:\x20','message','YyvQE','--no-first-run','iwjHj','vySCc','zqqLE','1170924JArFSK','hYAiW','exited\x20with\x20code=','WKiVE','isDirectory','--browser-profile-path','XEXpC','digest','mtimeMs','now','23772ysySmM','XJMNv','684891Xgilko','gqlhX','error','rg-','ocaFz','act\x20browser\x20doctor\x20--json\x20timed\x20out','setItem','SIGKILL','utf-8','logDir','browser','KIJUq','commandArgs','XdxDK','env','null','userDataDir','BuUSM','AWS_PROFILE','doctor','nova-act-browser','status','lfdkg','IcPeI','kuiPP','join','origins','KXZGg','eSDTX','uLZmL','--window-size=1280,720','XNNNQ','name','yAcfS','bAhmW','pnIjj','map','log_dir','kill','string','stderr','cEzlK','floor','push','exitCode','size','execute','data','4632dGFVuF','16gKTsrn','pipe','parse','\x0astdout:\x20','Xidig','4213010NeTNBc','export','localStorage','GuxoB','nova-act-cli\x20transport\x20requires\x20the\x20Nova\x20Act\x20CLI.\x20Ranger\x20could\x20not\x20find\x20`','tool','cookies','hex','toString','smoTl','match','launchArgs','Foyhi','Local\x20State','\x20signal=','Rslfn','AFulT','stderr:\x20','goto','#!/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','ZVIox','slice','SIGTERM','value','browserCommandPath','ahiLc','zhBjm','...','sort','pRpyT','Preferences','origin','act','executablePath','16560XXYXhg'];_0x2307=function(){return _0x6ff3d6;};return _0x2307();}import{homedir}from'os';import{chromium}from'playwright';import{quoteShellArg}from'./playwrightCli.js';export const NOVA_ACT_CLI_BINARY=_0x3b36f0(0xa5);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(_0x446461){const _0x2f5126=_0x3b36f0,_0x334f4f={'HBDms':_0x2f5126(0xc2)},_0x3009a5=createHash(_0x334f4f[_0x2f5126(0xb1)])['update'](_0x446461)[_0x2f5126(0x102)](_0x2f5126(0x8c))[_0x2f5126(0x9a)](0x0,0xc);return _0x2f5126(0x10a)+_0x3009a5;}export async function inspectNovaStorageStateFile(_0x1fd5eb){const _0x39417a=_0x3b36f0,_0x26ffa1={'AgoXM':'sha256','Rslfn':_0x39417a(0x8c),'PSexL':function(_0x91c872,_0x1a782f){return _0x91c872/_0x1a782f;},'Twlhx':function(_0xe4a774,_0x520afb){return _0xe4a774(_0x520afb);}};try{const [_0x3d60b4,_0x143ac8]=await Promise['all']([stat(_0x1fd5eb),readFile(_0x1fd5eb,_0x39417a(0x10f))]),_0x3de52e={'path':_0x1fd5eb,'exists':!![],'byteLength':Buffer[_0x39417a(0xdb)](_0x143ac8),'sha256':createHash(_0x26ffa1[_0x39417a(0xc4)])['update'](_0x143ac8)[_0x39417a(0x102)](_0x26ffa1[_0x39417a(0x94)])};try{const _0xbdf838=JSON['parse'](_0x143ac8),_0x49d1b7=_0xbdf838['cookies']??[],_0x23d600=Math[_0x39417a(0x131)](_0x26ffa1['PSexL'](Date[_0x39417a(0x104)](),0x3e8)),_0x97a094=new Map();for(const _0xbeb865 of _0x49d1b7){const _0x16fb7e=_0x97a094[_0x39417a(0xd6)](_0xbeb865[_0x39417a(0xad)])??[];_0x16fb7e[_0x39417a(0x7a)](_0xbeb865['name']),_0x97a094['set'](_0xbeb865[_0x39417a(0xad)],_0x16fb7e);}return{..._0x3de52e,'byteLength':_0x3d60b4[_0x39417a(0x7c)],'cookieCount':_0x49d1b7[_0x39417a(0xb6)],'cookieDomains':[..._0x97a094['entries']()][_0x39417a(0xa1)](([_0x11a047],[_0x692f02])=>_0x11a047['localeCompare'](_0x692f02))['map'](([_0x7c2578,_0x60a117])=>({'domain':_0x7c2578,'count':_0x60a117['length'],'names':_0x60a117['sort']()[_0x39417a(0x9a)](0x0,0x19)})),'httpOnlyCookieCount':_0x49d1b7[_0x39417a(0xea)](_0x11edbf=>_0x11edbf[_0x39417a(0xae)])[_0x39417a(0xb6)],'secureCookieCount':_0x49d1b7['filter'](_0x27b8ba=>_0x27b8ba['secure'])[_0x39417a(0xb6)],'sessionCookieCount':_0x49d1b7[_0x39417a(0xea)](_0x4456f3=>_0x4456f3['expires']===-0x1)[_0x39417a(0xb6)],'expiredCookieCount':_0x49d1b7[_0x39417a(0xea)](_0x233b0b=>typeof _0x233b0b['expires']==='number'&&_0x233b0b[_0x39417a(0xc9)]>0x0&&_0x233b0b[_0x39417a(0xc9)]<_0x23d600)[_0x39417a(0xb6)],'originCount':_0xbdf838[_0x39417a(0x121)]?.[_0x39417a(0xb6)]??0x0,'origins':(_0xbdf838[_0x39417a(0x121)]??[])['map'](_0x487110=>({'origin':_0x487110[_0x39417a(0xa4)],'localStorageCount':_0x487110[_0x39417a(0x87)]?.['length']??0x0,'localStorageKeys':_0x487110[_0x39417a(0x87)]?.['map'](_0x511a07=>_0x511a07[_0x39417a(0x127)])[_0x39417a(0xa1)]()['slice'](0x0,0x19)??[]}))};}catch(_0x49a89c){return{..._0x3de52e,'byteLength':_0x3d60b4[_0x39417a(0x7c)],'parseError':_0x49a89c instanceof Error?_0x49a89c['message']:String(_0x49a89c)};}}catch(_0x5f3b13){return{'path':_0x1fd5eb,'exists':![],'readError':_0x5f3b13 instanceof Error?_0x5f3b13['message']:_0x26ffa1['Twlhx'](String,_0x5f3b13)};}}export async function inspectNovaProfileFiles(_0x36dc16){const _0x5f0a89=_0x3b36f0,_0x270b4d={'BuUSM':_0x5f0a89(0xa3),'pQjMo':function(_0x23fb0a,_0x5bbbec,_0xbb9b05,_0x48ca23){return _0x23fb0a(_0x5bbbec,_0xbb9b05,_0x48ca23);},'vlDDQ':'Local\x20Storage','iKAuj':'leveldb','YNCiA':function(_0x295955,_0x536dd2){return _0x295955(_0x536dd2);},'bAhmW':function(_0x1b1d88,_0x44ec71){return _0x1b1d88(_0x44ec71);},'xoMST':function(_0x2e8411,_0x500305){return _0x2e8411(_0x500305);},'DUkPY':function(_0x73b9a3,_0x534f1a){return _0x73b9a3(_0x534f1a);},'JNhJY':function(_0x5af9e7,_0x270810){return _0x5af9e7(_0x270810);}},_0x326cca=join(_0x36dc16[_0x5f0a89(0x117)],'Local\x20State'),_0x5f32ca=join(_0x36dc16[_0x5f0a89(0xaf)],_0x270b4d[_0x5f0a89(0x118)]),_0x3dd766=join(_0x36dc16[_0x5f0a89(0xaf)],'Cookies'),_0x2d114a=_0x270b4d[_0x5f0a89(0xe6)](join,_0x36dc16['browserProfilePath'],'Network','Cookies'),_0xf906a3=join(_0x36dc16['browserProfilePath'],_0x270b4d['vlDDQ']),_0x58af5a=join(_0xf906a3,_0x270b4d[_0x5f0a89(0xe2)]),[_0xfa8320,_0x2eb69e,_0x26b13d,_0x2863fb,_0x206733,_0x2de2e7,_0x4ac778,_0x1e7cd1,_0x3b3043,_0x3c624d,_0x314c7b]=await Promise['all']([_0x270b4d[_0x5f0a89(0xe4)](inspectPath,_0x36dc16['userDataDir']),_0x270b4d[_0x5f0a89(0x129)](inspectPath,_0x36dc16[_0x5f0a89(0xaf)]),inspectPath(_0x326cca),inspectPath(_0x5f32ca),_0x270b4d[_0x5f0a89(0xca)](inspectPath,_0x3dd766),_0x270b4d['DUkPY'](inspectPath,_0x2d114a),_0x270b4d['JNhJY'](inspectPath,_0xf906a3),_0x270b4d[_0x5f0a89(0x129)](inspectPath,_0x58af5a),_0x270b4d['JNhJY'](listDir,_0x36dc16['userDataDir']),listDir(_0x36dc16['browserProfilePath']),listDir(_0x58af5a)]);return{'userDataDir':_0x36dc16[_0x5f0a89(0x117)],'browserProfilePath':_0x36dc16['browserProfilePath'],'rootEntries':_0x3b3043,'defaultEntries':_0x3c624d,'localStorageEntries':_0x314c7b,'paths':{'userDataDir':_0xfa8320,'browserProfilePath':_0x2eb69e,'localState':_0x26b13d,'preferences':_0x2863fb,'cookies':_0x206733,'networkCookies':_0x2de2e7,'localStorage':_0x4ac778,'levelDb':_0x1e7cd1}};}async function inspectPath(_0x29d59a){const _0x3bcf4f=_0x3b36f0,_0x6350c9={'ftgSx':function(_0x17e677,_0x3e89f0){return _0x17e677(_0x3e89f0);}};try{const _0x2522f5=await _0x6350c9[_0x3bcf4f(0xe7)](stat,_0x29d59a);return{'path':_0x29d59a,'exists':!![],'isDirectory':_0x2522f5[_0x3bcf4f(0xff)](),'byteLength':_0x2522f5[_0x3bcf4f(0xde)]()?_0x2522f5['size']:undefined,'mtimeMs':_0x2522f5[_0x3bcf4f(0x103)]};}catch(_0x14bd3c){return{'path':_0x29d59a,'exists':![],'error':_0x14bd3c instanceof Error?_0x14bd3c[_0x3bcf4f(0xf5)]:_0x6350c9[_0x3bcf4f(0xe7)](String,_0x14bd3c)};}}async function listDir(_0x4c4615){const _0x4e23d8=_0x3b36f0,_0x232d84={'XJMNv':function(_0x33b40a,_0x176a40){return _0x33b40a(_0x176a40);}};try{return(await _0x232d84[_0x4e23d8(0x106)](readdir,_0x4c4615))[_0x4e23d8(0xa1)]()[_0x4e23d8(0x9a)](0x0,0x32);}catch{return undefined;}}function truncatePreview(_0x556bc3,_0xa5d86f=NOVA_ACT_CLI_PREVIEW_LIMIT){const _0x5db1e5=_0x3b36f0,_0x517beb={'ulDRG':function(_0x1c1fff,_0x17637a){return _0x1c1fff>_0x17637a;},'GkNsB':_0x5db1e5(0xa0)};return _0x517beb['ulDRG'](_0x556bc3[_0x5db1e5(0xb6)],_0xa5d86f)?_0x556bc3['slice'](0x0,_0xa5d86f)+_0x517beb[_0x5db1e5(0xd0)]:_0x556bc3;}function truncateOutput(_0x283d51,_0x43c54c=0x7d0){const _0x5afc76={'FVmtU':function(_0x4cb90d,_0x444222){return _0x4cb90d>_0x444222;}};return _0x5afc76['FVmtU'](_0x283d51['length'],_0x43c54c)?_0x283d51['slice'](0x0,_0x43c54c)+'...':_0x283d51;}function getNovaActCliBinDirs(_0x470e0b){const _0x588097=_0x3b36f0,_0x267ee9={'faJpX':function(_0xd187cb){return _0xd187cb();},'mVtwD':'/opt/homebrew/bin','cEzlK':_0x588097(0xc5)};return[_0x470e0b['UV_TOOL_BIN_DIR'],_0x267ee9['faJpX'](homedir)+'/.local/bin',_0x267ee9[_0x588097(0xcc)],_0x267ee9[_0x588097(0x130)]][_0x588097(0xea)](_0x500214=>Boolean(_0x500214));}function buildPathWithNovaActCliBins(_0x395384){const _0x17d017=_0x3b36f0,_0x44a768={'WKiVE':function(_0x224b48,_0x116a6b){return _0x224b48(_0x116a6b);}},_0x487939=new Set(),_0x1d8172=[..._0x44a768[_0x17d017(0xfe)](getNovaActCliBinDirs,_0x395384),...(_0x395384[_0x17d017(0xbb)]??'')['split'](delimiter)][_0x17d017(0xea)](_0xdf3f39=>{if(!_0xdf3f39||_0x487939['has'](_0xdf3f39))return![];return _0x487939['add'](_0xdf3f39),!![];});return _0x1d8172['join'](delimiter);}export function applyNovaActCliPath(_0x8297c4){_0x8297c4['PATH']=buildPathWithNovaActCliBins(_0x8297c4);}function withNovaActCliPath(_0x601584){const _0x191674={'uJsjz':function(_0x809fcf,_0x40f7a0){return _0x809fcf(_0x40f7a0);}};return{..._0x601584,'PATH':_0x191674['uJsjz'](buildPathWithNovaActCliBins,_0x601584)};}function runBootstrapCommand(_0x3b1415){const _0x573ece=_0x3b36f0,_0x1f3419={'CYAUQ':function(_0x5d725c,_0x396f0c){return _0x5d725c(_0x396f0c);},'yikrE':function(_0x17c1a6,_0x381c64){return _0x17c1a6(_0x381c64);},'iWFim':_0x573ece(0x116),'WQhZT':function(_0x2c5e55,_0x552c17){return _0x2c5e55(_0x552c17);},'AFulT':function(_0x20c398,_0x1801aa,_0x43b615,_0x46f9f4){return _0x20c398(_0x1801aa,_0x43b615,_0x46f9f4);},'WxkIk':_0x573ece(0x7e),'LbDKo':'error','eoOWf':_0x573ece(0xd4)},{command:_0x3b6ab3,args:_0x21b20f,env:_0x1d8456,timeoutMs:timeoutMs=NOVA_ACT_BOOTSTRAP_TIMEOUT_MS}=_0x3b1415;return new Promise((_0x156ebf,_0x2cbb24)=>{const _0x55fb27=_0x573ece,_0x37c0d={'cXOIt':function(_0x17888a,_0x4c16d8){return _0x1f3419['CYAUQ'](_0x17888a,_0x4c16d8);},'DjaGk':function(_0x5a4425,_0x41e57b){return _0x5a4425??_0x41e57b;},'BuPwd':_0x1f3419['iWFim'],'uLXBk':function(_0x8fc6bf,_0x35b57a){return _0x1f3419['WQhZT'](_0x8fc6bf,_0x35b57a);},'vCVct':function(_0x55efea,_0x302c80){return _0x55efea(_0x302c80);}},_0x404b57=_0x1f3419[_0x55fb27(0x95)](spawn,_0x3b6ab3,_0x21b20f,{'env':_0x1d8456,'stdio':[_0x55fb27(0xbe),'pipe','pipe']});let _0x1408c8='',_0xcf64ce='',_0xa89373=![];const _0x4df4e7=setTimeout(()=>{const _0x44eb9b=_0x55fb27;_0xa89373=!![],_0x404b57[_0x44eb9b(0x12d)]('SIGTERM'),setTimeout(()=>{const _0x154e40=_0x44eb9b;try{_0x404b57[_0x154e40(0x12d)](_0x154e40(0x10e));}catch{}},0x3e8);},timeoutMs);_0x404b57[_0x55fb27(0xbc)]?.['on'](_0x1f3419['WxkIk'],_0x2cd570=>{const _0x312d82=_0x55fb27;_0x1408c8+=_0x2cd570[_0x312d82(0x8d)]();}),_0x404b57[_0x55fb27(0x12f)]?.['on'](_0x55fb27(0x7e),_0x2ba650=>{_0xcf64ce+=_0x2ba650['toString']();}),_0x404b57['on'](_0x1f3419['LbDKo'],_0x174579=>{const _0x374d41=_0x55fb27;_0x1f3419[_0x374d41(0xb9)](clearTimeout,_0x4df4e7),_0x1f3419['yikrE'](_0x2cbb24,_0x174579);}),_0x404b57['on'](_0x1f3419['eoOWf'],(_0x11ba36,_0x5c7ec9)=>{const _0x321477=_0x55fb27;clearTimeout(_0x4df4e7);if(_0x11ba36===0x0){_0x37c0d['cXOIt'](_0x156ebf,{'stdout':_0x1408c8,'stderr':_0xcf64ce});return;}const _0x50d904=_0xa89373?'timed\x20out\x20after\x20'+timeoutMs+'ms':'exited\x20with\x20code='+_0x37c0d['DjaGk'](_0x11ba36,'null')+'\x20signal='+_0x37c0d['DjaGk'](_0x5c7ec9,_0x37c0d['BuPwd']);_0x37c0d['uLXBk'](_0x2cbb24,new Error(_0x3b6ab3+'\x20'+_0x21b20f[_0x321477(0x120)]('\x20')+'\x20'+_0x50d904+'\x0astdout:\x20'+truncateOutput(_0x1408c8)+_0x321477(0xd2)+_0x37c0d['vCVct'](truncateOutput,_0xcf64ce)));});});}function runCommandAllowFailure(_0x5719a7){const _0x4c786b=_0x3b36f0,_0x184c26={'uLZmL':'SIGKILL','Foyhi':_0x4c786b(0x9b),'cNKGi':function(_0xb88485,_0x2dc897){return _0xb88485(_0x2dc897);},'cbvPU':function(_0x59445b,_0x255e5d){return _0x59445b(_0x255e5d);},'VCiim':function(_0x7da5fb,_0x1164e1,_0x5c369a,_0x40e83b){return _0x7da5fb(_0x1164e1,_0x5c369a,_0x40e83b);},'Mkqgq':'ignore','Paeps':function(_0x23f008,_0x4d19d4,_0x580172){return _0x23f008(_0x4d19d4,_0x580172);},'qABFG':'data','UZDfw':'error','iwjHj':'close'},{command:_0x2a1b8c,args:_0x427ef3,env:_0x5d00d1,timeoutMs:_0x58a80b}=_0x5719a7;return new Promise((_0x54679d,_0x18cda5)=>{const _0x53b4bc=_0x4c786b,_0x374040=_0x184c26[_0x53b4bc(0xf3)](spawn,_0x2a1b8c,_0x427ef3,{'env':_0x5d00d1,'stdio':[_0x184c26['Mkqgq'],_0x53b4bc(0x81),_0x53b4bc(0x81)]});let _0x44dbb3='',_0x369505='',_0x1087a9=![];const _0x321e5f=_0x184c26['Paeps'](setTimeout,()=>{const _0x4a154d=_0x53b4bc,_0xfbfb4={'ErVFw':_0x184c26[_0x4a154d(0x124)]};_0x1087a9=!![],_0x374040[_0x4a154d(0x12d)](_0x184c26[_0x4a154d(0x91)]),setTimeout(()=>{try{_0x374040['kill'](_0xfbfb4['ErVFw']);}catch{}},0x3e8);},_0x58a80b);_0x374040['stdout']?.['on'](_0x184c26[_0x53b4bc(0xe8)],_0x54736f=>{const _0x1294fc=_0x53b4bc;_0x44dbb3+=_0x54736f[_0x1294fc(0x8d)]();}),_0x374040['stderr']?.['on'](_0x184c26[_0x53b4bc(0xe8)],_0x3b0995=>{_0x369505+=_0x3b0995['toString']();}),_0x374040['on'](_0x184c26[_0x53b4bc(0xb7)],_0x3de6e0=>{const _0x185197=_0x53b4bc;_0x184c26[_0x185197(0xb4)](clearTimeout,_0x321e5f),_0x18cda5(_0x3de6e0);}),_0x374040['on'](_0x184c26[_0x53b4bc(0xf8)],(_0x2e35dc,_0x6b4262)=>{const _0x54a488=_0x53b4bc;clearTimeout(_0x321e5f),_0x184c26[_0x54a488(0xdd)](_0x54679d,{'code':_0x2e35dc,'signal':_0x6b4262,'stdout':_0x44dbb3,'stderr':_0x369505,'timedOut':_0x1087a9});});});}async function resolveActPath(_0x4725f7){const _0x9e754c=isAbsolute(NOVA_ACT_CLI_BINARY)?[NOVA_ACT_CLI_BINARY]:(_0x4725f7['PATH']??'')['split'](delimiter)['filter'](Boolean)['map'](_0x347422=>join(_0x347422,NOVA_ACT_CLI_BINARY));for(const _0x120342 of _0x9e754c){try{return await access(_0x120342),_0x120342;}catch{}}return null;}async function checkNovaActCli(_0x207fcf){const _0x3b0f8f=_0x3b36f0,_0x544a5d={'ZVIox':_0x3b0f8f(0x111),'iJueT':'--help'};try{return await runBootstrapCommand({'command':NOVA_ACT_CLI_BINARY,'args':[_0x544a5d[_0x3b0f8f(0x99)],_0x544a5d['iJueT']],'env':_0x207fcf,'timeoutMs':0x7530}),await resolveActPath(_0x207fcf)??NOVA_ACT_CLI_BINARY;}catch{return null;}}export async function ensureNovaActCliInstalled(_0x59c184={}){const _0x5d9b67=_0x3b36f0,_0x1908ab={'XdxDK':function(_0x2dcb0d,_0x5dbf6a){return _0x2dcb0d(_0x5dbf6a);},'VSGJg':'--version','NiMAu':function(_0x2d0fac,_0x2acf0){return _0x2d0fac instanceof _0x2acf0;},'Yqowv':function(_0x38e5d0,_0x1613b1){return _0x38e5d0(_0x1613b1);},'fiwTQ':_0x5d9b67(0x8a),'nRYFD':'install','pBeZQ':function(_0x27f4af,_0x18381a){return _0x27f4af(_0x18381a);}},_0x2b2df6=withNovaActCliPath(_0x59c184[_0x5d9b67(0x115)]??process[_0x5d9b67(0x115)]),_0x1c03d4=await checkNovaActCli(_0x2b2df6);if(_0x1c03d4)return{'installed':![],'actPath':_0x1c03d4,'uvPackage':NOVA_ACT_CLI_UV_PACKAGE,'stdout':'','stderr':''};try{await _0x1908ab['XdxDK'](runBootstrapCommand,{'command':'uv','args':[_0x1908ab['VSGJg']],'env':_0x2b2df6,'timeoutMs':0x7530});}catch(_0x24e16b){throw new Error(_0x5d9b67(0x89)+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'+(_0x1908ab[_0x5d9b67(0xec)](_0x24e16b,Error)?_0x24e16b[_0x5d9b67(0xf5)]:_0x1908ab['XdxDK'](String,_0x24e16b)));}const _0x2976b2=await _0x1908ab['Yqowv'](runBootstrapCommand,{'command':'uv','args':[_0x1908ab['fiwTQ'],_0x1908ab[_0x5d9b67(0xe1)],NOVA_ACT_CLI_UV_PACKAGE],'env':_0x2b2df6,'timeoutMs':_0x59c184[_0x5d9b67(0xe9)]??NOVA_ACT_BOOTSTRAP_TIMEOUT_MS}),_0x5927eb=await checkNovaActCli(_0x2b2df6);if(!_0x5927eb)throw new Error('Installed\x20'+NOVA_ACT_CLI_UV_PACKAGE+',\x20but\x20`'+NOVA_ACT_CLI_BINARY+'\x20browser\x20--help`\x20is\x20still\x20unavailable.\x20Ensure\x20'+_0x1908ab[_0x5d9b67(0x114)](getNovaActCliBinDirs,_0x2b2df6)['join'](',\x20')+'\x20is\x20on\x20PATH.\x0astdout:\x20'+_0x1908ab['pBeZQ'](truncateOutput,_0x2976b2[_0x5d9b67(0xbc)])+_0x5d9b67(0xd2)+_0x1908ab[_0x5d9b67(0x114)](truncateOutput,_0x2976b2[_0x5d9b67(0x12f)]));return{'installed':!![],'actPath':_0x5927eb,'uvPackage':NOVA_ACT_CLI_UV_PACKAGE,'stdout':_0x2976b2[_0x5d9b67(0xbc)],'stderr':_0x2976b2[_0x5d9b67(0x12f)]};}function parseNovaActDoctorOutput(_0x459d04){try{return JSON['parse'](_0x459d04);}catch{return null;}}function buildNovaActCliPreflightError(_0x4cbbf3){const _0x365db7=_0x3b36f0,_0x239ac1={'gvxva':function(_0x5c29ac,_0x235faa){return _0x5c29ac>_0x235faa;},'NZqRU':function(_0x5d972a,_0x265d7d){return _0x5d972a??_0x265d7d;},'zHlgp':'null','PnKDI':function(_0x3ebdef,_0x2d4336){return _0x3ebdef(_0x2d4336);},'QvkoZ':'Configure\x20Nova\x20Act\x20with\x20NOVA_ACT_API_KEY,\x20run\x20act\x20browser\x20setup\x20--api-key\x20<key>,\x20or\x20configure\x20AWS\x20credentials.'},{checks:_0x4746b5,stdout:_0x18c055,stderr:_0x5d32fc,env:_0x4c5616,code:_0x2d3ace,signal:_0x194303,timedOut:_0x589461}=_0x4cbbf3,_0x390715=_0x4746b5['filter'](_0x453f8e=>_0x453f8e[_0x365db7(0x11c)]==='fail'),_0x4c7d54=_0x239ac1['gvxva'](_0x390715['length'],0x0)?_0x390715['map'](_0x186834=>{const _0x4d75f2=_0x365db7,_0x4641e7=_0x186834['fix']?_0x4d75f2(0xf4)+_0x186834['fix']:'';return'-\x20'+_0x186834[_0x4d75f2(0x127)]+':\x20'+_0x186834['message']+'.'+_0x4641e7;})['join']('\x0a'):[_0x589461?_0x365db7(0x10c):_0x365db7(0xab)+_0x239ac1['NZqRU'](_0x2d3ace,_0x239ac1['zHlgp'])+_0x365db7(0x93)+(_0x194303??_0x365db7(0x116)),_0x18c055?'stdout:\x20'+truncateOutput(_0x18c055):'',_0x5d32fc?_0x365db7(0x96)+_0x239ac1[_0x365db7(0xf1)](truncateOutput,_0x5d32fc):'']['filter'](Boolean)[_0x365db7(0x120)]('\x0a'),_0x2d4c90=_0x4c5616[_0x365db7(0x119)]?.[_0x365db7(0xcf)](),_0x2386ab=_0x2d4c90?'For\x20AWS\x20SSO,\x20run:\x20aws\x20sso\x20login\x20--profile\x20'+_0x2d4c90:'For\x20AWS\x20SSO,\x20set\x20AWS_PROFILE\x20and\x20run:\x20aws\x20sso\x20login\x20--profile\x20<profile>';return new Error(['Nova\x20Act\x20CLI\x20preflight\x20failed,\x20so\x20Ranger\x20did\x20not\x20start\x20a\x20browser\x20session.',_0x4c7d54,_0x239ac1['QvkoZ'],_0x2386ab][_0x365db7(0x120)]('\x0a'));}export async function preflightNovaActCli(_0x47aa61={}){const _0x33410f=_0x3b36f0,_0x365a97={'RcjCI':function(_0x55c44f,_0xca53a){return _0x55c44f(_0xca53a);},'dqoxC':function(_0x34899a,_0x3feaa3){return _0x34899a(_0x3feaa3);},'aPGKY':_0x33410f(0x111),'zqqLE':function(_0x34a7ed,_0x3df921){return _0x34a7ed(_0x3df921);}},_0x11626=_0x365a97['RcjCI'](withNovaActCliPath,_0x47aa61[_0x33410f(0x115)]??process[_0x33410f(0x115)]),_0x5a1810=await _0x365a97[_0x33410f(0xe5)](runCommandAllowFailure,{'command':NOVA_ACT_CLI_BINARY,'args':[_0x365a97['aPGKY'],_0x33410f(0x11a),'--json'],'env':_0x11626,'timeoutMs':_0x47aa61[_0x33410f(0xe9)]??0x7530}),_0x1c30f0=parseNovaActDoctorOutput(_0x5a1810['stdout']),_0x238813=_0x1c30f0?.['data']?.['checks']??[],_0x47d4c4=_0x238813['some'](_0x27b5d2=>_0x27b5d2['status']==='fail');if(_0x5a1810['code']!==0x0||_0x5a1810['timedOut']||_0x47d4c4)throw _0x365a97[_0x33410f(0xfa)](buildNovaActCliPreflightError,{'checks':_0x238813,'stdout':_0x5a1810['stdout'],'stderr':_0x5a1810[_0x33410f(0x12f)],'env':_0x11626,'code':_0x5a1810['code'],'signal':_0x5a1810['signal'],'timedOut':_0x5a1810['timedOut']});return{'checks':_0x238813,'logDir':_0x1c30f0?.[_0x33410f(0x12c)]??_0x1c30f0?.[_0x33410f(0x110)]};}function getNovaActCliSubcommand(_0x1e7100){const _0x11c69c=_0x3b36f0,[_0x4a503a='unknown',_0x5e0e26]=_0x1e7100;return _0x4a503a===_0x11c69c(0xc8)&&_0x5e0e26?_0x4a503a+'\x20'+_0x5e0e26:_0x4a503a;}function supportsBrowserSessionOptions(_0x51bf89){const _0x3ca49e=_0x3b36f0,_0x9624e5={'wHjVg':function(_0x1c9de2,_0x2c339e){return _0x1c9de2===_0x2c339e;},'mmlTh':_0x3ca49e(0x86),'ocaFz':'close'};return!(_0x9624e5['wHjVg'](_0x51bf89[0x0],_0x3ca49e(0xc8))&&(_0x9624e5['wHjVg'](_0x51bf89[0x1],_0x9624e5['mmlTh'])||_0x51bf89[0x1]===_0x9624e5[_0x3ca49e(0x10b)]));}function buildSharedArgs(_0x2783ca,_0x15b97f){const _0x4ad37c=_0x3b36f0,_0xb9a72f={'vqMgH':function(_0x4c85c6,_0x38a43a){return _0x4c85c6(_0x38a43a);},'Qridr':'--quiet'},_0x1a923c=[_0x4ad37c(0xaa),_0x2783ca[_0x4ad37c(0xed)],'--json'];if(_0xb9a72f['vqMgH'](supportsBrowserSessionOptions,_0x15b97f)){_0x1a923c['push'](_0xb9a72f['Qridr']),_0x1a923c['push'](_0x2783ca['headless']?_0x4ad37c(0xdf):'--headed');_0x2783ca[_0x4ad37c(0xaf)]&&_0x1a923c[_0x4ad37c(0x7a)](_0x4ad37c(0x100),_0x2783ca['browserProfilePath']);_0x2783ca['executablePath']&&_0x1a923c[_0x4ad37c(0x7a)]('--executable-path',_0x2783ca['executablePath']);_0x2783ca['cdpEndpoint']&&_0x1a923c['push']('--cdp',_0x2783ca['cdpEndpoint']);for(const _0x2fbbc3 of _0x2783ca[_0x4ad37c(0x90)]??[]){_0x1a923c[_0x4ad37c(0x7a)](_0x4ad37c(0xe3)+_0x2fbbc3);}}return _0x1a923c;}export function buildNovaActCliInvocation(_0x387eaa,_0x44660e){const _0x3a7c19=_0x3b36f0,_0x24cc80={'XEXpC':function(_0x13bb31,_0x3e9b32,_0x54566a){return _0x13bb31(_0x3e9b32,_0x54566a);},'YbLqY':'browser'},_0x3d055e=_0x24cc80[_0x3a7c19(0x101)](buildSharedArgs,_0x387eaa,_0x44660e),_0x38dac2=[_0x24cc80['YbLqY'],..._0x44660e,..._0x3d055e];return{'command':NOVA_ACT_CLI_BINARY,'args':_0x38dac2,'shellCommand':[NOVA_ACT_CLI_BINARY,_0x24cc80[_0x3a7c19(0xd7)],..._0x44660e[_0x3a7c19(0x12b)](quoteShellArg),..._0x3d055e['map'](quoteShellArg)]['join']('\x20'),'subcommand':getNovaActCliSubcommand(_0x44660e)};}export function buildNovaActCliCommandPrefix(){return NOVA_ACT_CLI_BINARY+'\x20browser';}export function buildNovaActCliBrowserWrapperPath(_0x40e288){const _0x4783d0=_0x3b36f0,_0x425b89={'yCRPX':function(_0x3dd7f0,_0x1d3a06,_0x552918){return _0x3dd7f0(_0x1d3a06,_0x552918);},'XRznz':_0x4783d0(0x11b)};return _0x425b89[_0x4783d0(0xd8)](join,dirname(_0x40e288[_0x4783d0(0x117)]),_0x425b89[_0x4783d0(0xeb)]);}export async function writeNovaActCliBrowserWrapper(_0x823b30){const _0x1db186=_0x3b36f0,_0x341d5b={'fJehj':function(_0x346d64,_0x3c82d8,_0x186f7c){return _0x346d64(_0x3c82d8,_0x186f7c);},'MjgAD':function(_0x2e08a2,_0x4e9a07){return _0x2e08a2(_0x4e9a07);}},_0x48d150=_0x823b30[_0x1db186(0x9d)]??buildNovaActCliBrowserWrapperPath(_0x823b30),_0x5b089d=buildSharedArgs(_0x823b30,['execute'])[_0x1db186(0x12b)](quoteShellArg)[_0x1db186(0x120)]('\x20'),_0x5aa785=buildSharedArgs(_0x823b30,['session','export'])[_0x1db186(0x12b)](quoteShellArg)['join']('\x20');return await _0x341d5b['fJehj'](mkdir,dirname(_0x48d150),{'recursive':!![]}),await mkdir(_0x823b30[_0x1db186(0x117)],{'recursive':!![]}),await writeFile(_0x48d150,_0x1db186(0x98)+_0x341d5b['MjgAD'](quoteShellArg,NOVA_ACT_CLI_BINARY)+_0x1db186(0xda)+_0x5aa785+'\x0afi\x0a\x0aexec\x20'+quoteShellArg(NOVA_ACT_CLI_BINARY)+_0x1db186(0xda)+_0x5b089d+'\x0a','utf-8'),await _0x341d5b['fJehj'](chmod,_0x48d150,0x1ed),_0x48d150;}function _0x2275(_0x4824e2,_0x31b3a3){_0x4824e2=_0x4824e2-0x7a;const _0x2307ce=_0x2307();let _0x227519=_0x2307ce[_0x4824e2];return _0x227519;}export function buildNovaActCliSharedOptionsSuffix(_0x5dfc97,_0x2e1b0f=[_0x3b36f0(0x7d)]){const _0xc4a6fd=_0x3b36f0,_0x55dc59={'fMHRm':function(_0x34ea94,_0x4b8769,_0x19d0ea){return _0x34ea94(_0x4b8769,_0x19d0ea);}};return _0x55dc59['fMHRm'](buildSharedArgs,_0x5dfc97,_0x2e1b0f)['map'](quoteShellArg)[_0xc4a6fd(0x120)]('\x20');}export async function runNovaActCliCommand(_0x310831){const _0x22da58=_0x3b36f0,_0x46ff91={'SiWOq':'SIGKILL','NSxTI':function(_0xcb704f,_0x2c0ba8){return _0xcb704f(_0x2c0ba8);},'GzBzO':_0x22da58(0x81),'HhtCF':function(_0x288822,_0x162346){return _0x288822>_0x162346;},'vySCc':function(_0x5c0389,_0x2da89f,_0x374ae9){return _0x5c0389(_0x2da89f,_0x374ae9);},'KHpCT':'data'};await mkdir(_0x310831['userDataDir'],{'recursive':!![]});const _0x23ca01=_0x46ff91[_0x22da58(0xf9)](buildNovaActCliInvocation,_0x310831,_0x310831[_0x22da58(0x113)]);return new Promise((_0x22c34c,_0x4fdd1d)=>{const _0x48a81b=_0x22da58,_0x2e1be9={'EQObK':_0x46ff91['SiWOq'],'zVujG':function(_0x2991,_0x15891c){return _0x2991(_0x15891c);},'NZXfX':function(_0x4916e4,_0x3a8bc6){return _0x4916e4??_0x3a8bc6;},'jaamr':'null','FtEQr':function(_0x54f25e,_0x2cf954){return _0x46ff91['NSxTI'](_0x54f25e,_0x2cf954);}},_0x3a44a7=spawn(_0x23ca01[_0x48a81b(0xb0)],_0x23ca01['args'],{'cwd':_0x310831['cwd'],'env':_0x310831['env'],'stdio':['ignore','pipe',_0x46ff91['GzBzO']]});let _0x462d8c='',_0x2eb6bd='',_0x3e958a=![];const _0x388450=_0x310831[_0x48a81b(0xe9)]&&_0x46ff91['HhtCF'](_0x310831['timeoutMs'],0x0)?_0x46ff91[_0x48a81b(0xf9)](setTimeout,()=>{const _0x23415e=_0x48a81b;_0x3e958a=!![],_0x3a44a7['kill'](_0x23415e(0x9b)),setTimeout(()=>{const _0x5de397=_0x23415e;try{_0x3a44a7[_0x5de397(0x12d)](_0x2e1be9['EQObK']);}catch{}},0x3e8);},_0x310831['timeoutMs']):null;_0x3a44a7['stdout']?.['on'](_0x46ff91['KHpCT'],_0xa7f203=>{_0x462d8c+=_0xa7f203['toString']();}),_0x3a44a7[_0x48a81b(0x12f)]?.['on'](_0x46ff91['KHpCT'],_0x15518c=>{_0x2eb6bd+=_0x15518c['toString']();}),_0x3a44a7['on'](_0x48a81b(0x109),_0x4c8692=>{if(_0x388450)clearTimeout(_0x388450);_0x4fdd1d(_0x4c8692);}),_0x3a44a7['on'](_0x48a81b(0xd4),(_0x2d2459,_0x31ca25)=>{const _0x59fbf7=_0x48a81b;if(_0x388450)clearTimeout(_0x388450);if(_0x2d2459===0x0){_0x2e1be9['zVujG'](_0x22c34c,{'stdout':_0x462d8c,'stderr':_0x2eb6bd,'invocation':_0x23ca01});return;}const _0x3b14b6=_0x3e958a?'timed\x20out\x20after\x20'+_0x310831['timeoutMs']+'ms':_0x59fbf7(0xfd)+_0x2e1be9['NZXfX'](_0x2d2459,_0x2e1be9[_0x59fbf7(0xee)])+_0x59fbf7(0x93)+(_0x31ca25??_0x2e1be9['jaamr']);_0x4fdd1d(new Error(_0x59fbf7(0xc6)+_0x23ca01['subcommand']+'\x20'+_0x3b14b6+_0x59fbf7(0x83)+truncateOutput(_0x462d8c)+_0x59fbf7(0xd2)+_0x2e1be9['FtEQr'](truncateOutput,_0x2eb6bd)));});});}export function parseNovaActCliCommand(_0x523e0e){const _0x27b567=_0x523e0e['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 _0x27b567?.[0x1]??null;}export function extractNovaActLogDir(_0x283542){const _0x4ac6fa=_0x3b36f0;try{const _0xf7abe2=JSON[_0x4ac6fa(0x82)](_0x283542),_0x1023f6=[_0xf7abe2['logs_directory'],_0xf7abe2[_0x4ac6fa(0xcd)],_0xf7abe2['logs_dir'],_0xf7abe2[_0x4ac6fa(0x110)],_0xf7abe2[_0x4ac6fa(0x12c)]],_0x5775fd=_0x1023f6[_0x4ac6fa(0xbd)](_0x5abd6f=>typeof _0x5abd6f===_0x4ac6fa(0x12e)&&_0x5abd6f[_0x4ac6fa(0xcf)]()['length']>0x0);if(_0x5775fd)return _0x5775fd;}catch{}const _0x3319cf=_0x283542[_0x4ac6fa(0x8f)](/(?:logs_directory|logsDirectory|log_dir|logDir|logs dir|logs directory)[:=]\s*["']?([^\s"',}]+)/i);return _0x3319cf?.[0x1]??null;}export async function loadNovaActSessionExport(_0x10726a){try{return JSON['parse'](await readFile(_0x10726a,'utf-8'));}catch{return null;}}export async function hydrateNovaProfileFromStorageState(_0x52b0cd){const _0x2f0829=_0x3b36f0,_0x54f48a={'ZzTOh':function(_0xc12879,_0x222a47){return _0xc12879!==_0x222a47;},'yAcfS':function(_0x321385,_0x2c8cd6){return _0x321385+_0x2c8cd6;},'hYAiW':function(_0x20b91b,_0x5562c8,_0x283479){return _0x20b91b(_0x5562c8,_0x283479);},'lfdkg':function(_0xcb0d3c,_0x43067b){return _0xcb0d3c(_0x43067b);},'gqlhX':_0x2f0829(0xf2),'UePGw':function(_0xbf3428,_0x288957,_0x1b02aa){return _0xbf3428(_0x288957,_0x1b02aa);},'Xidig':'Nova\x20profile\x20hydration\x20browser\x20did\x20not\x20expose\x20a\x20context','AKKzY':function(_0x1926c8,_0x3b4764){return _0x1926c8>_0x3b4764;},'ahiLc':_0x2f0829(0xce)},_0x1e7ccd=JSON[_0x2f0829(0x82)](await _0x54f48a['hYAiW'](readFile,_0x52b0cd[_0x2f0829(0xd1)],_0x2f0829(0x10f))),_0x59e3fa=await _0x54f48a[_0x2f0829(0x11d)](inspectNovaStorageStateFile,_0x52b0cd['storageStatePath']);await _0x54f48a[_0x2f0829(0xfc)](mkdir,_0x52b0cd[_0x2f0829(0x117)],{'recursive':!![]});const _0x4a50f5=_0x54f48a['hYAiW'](join,_0x52b0cd[_0x2f0829(0x117)],_0x54f48a[_0x2f0829(0x108)]),_0x3773b8=await inspectNovaProfileFiles({'userDataDir':_0x52b0cd['userDataDir'],'browserProfilePath':_0x4a50f5}),{browser:_0x22b9a0,process:_0x163c35}=await launchNovaHydrationBrowser({'userDataDir':_0x52b0cd['userDataDir'],'browserProfilePath':_0x4a50f5,'executablePath':_0x52b0cd[_0x2f0829(0xa6)],'headless':_0x52b0cd['headless'],'launchArgs':_0x52b0cd['launchArgs']}),_0x482b41=_0x22b9a0['contexts']()[0x0];if(!_0x482b41){await _0x54f48a['UePGw'](closeNovaHydrationBrowser,_0x22b9a0,_0x163c35);throw new Error(_0x54f48a[_0x2f0829(0x84)]);}let _0x3ea1d2=0x0,_0x5cf81d=0x0;try{const _0x2c3ec8=_0x1e7ccd[_0x2f0829(0x8b)]??[];if(_0x54f48a[_0x2f0829(0xd9)](_0x2c3ec8['length'],0x0)){const _0x2b3b54=_0x2c3ec8[_0x2f0829(0x12b)](_0x1df9bc=>{const _0x1a9af3=_0x2f0829;if(_0x54f48a['ZzTOh'](_0x1df9bc[_0x1a9af3(0xc9)],-0x1))return _0x1df9bc;return _0x5cf81d+=0x1,{..._0x1df9bc,'expires':_0x54f48a[_0x1a9af3(0x128)](Math['floor'](Date['now']()/0x3e8),NOVA_PROMOTED_SESSION_COOKIE_TTL_SECONDS)};});await _0x482b41['addCookies'](_0x2b3b54);}for(const _0x29d012 of _0x1e7ccd['origins']??[]){if(!_0x29d012['localStorage']?.['length'])continue;const _0x1aa2c2=await _0x482b41['newPage']();await _0x1aa2c2[_0x2f0829(0x97)](_0x29d012[_0x2f0829(0xa4)],{'waitUntil':_0x54f48a[_0x2f0829(0x9e)],'timeout':0x7530}),await _0x1aa2c2['evaluate'](_0x117327=>{const _0x124e92=_0x2f0829;for(const _0x25516e of _0x117327){window[_0x124e92(0x87)][_0x124e92(0x10d)](_0x25516e['name'],_0x25516e[_0x124e92(0x9c)]);}},_0x29d012[_0x2f0829(0x87)]),_0x3ea1d2+=_0x29d012[_0x2f0829(0x87)][_0x2f0829(0xb6)],await _0x1aa2c2[_0x2f0829(0xd4)]();}if(_0x52b0cd[_0x2f0829(0xc3)]){const _0x43db40=await _0x482b41[_0x2f0829(0xd5)]();await _0x43db40[_0x2f0829(0x97)](_0x52b0cd['baseUrl'],{'waitUntil':_0x54f48a['ahiLc'],'timeout':0x7530}),await _0x43db40['close']();}await ensureChromeProfileShape(_0x52b0cd['userDataDir'],_0x4a50f5);}finally{await closeNovaHydrationBrowser(_0x22b9a0,_0x163c35);}const _0x231219=await inspectNovaProfileFiles({'userDataDir':_0x52b0cd[_0x2f0829(0x117)],'browserProfilePath':_0x4a50f5});return{'browserProfilePath':_0x4a50f5,'cookieCount':_0x1e7ccd['cookies']?.['length']??0x0,'promotedSessionCookieCount':_0x5cf81d,'originCount':_0x1e7ccd[_0x2f0829(0x121)]?.[_0x2f0829(0xb6)]??0x0,'localStorageEntryCount':_0x3ea1d2,'storageStateDiagnostics':_0x59e3fa,'profileBefore':_0x3773b8,'profileAfter':_0x231219};}async function launchNovaHydrationBrowser(_0x360751){const _0x236a2e=_0x3b36f0,_0x5688cd={'yQhBL':function(_0x32c5a9){return _0x32c5a9();},'SadUg':_0x236a2e(0x125),'mxAdL':'--headless=new','sowuT':'ignore','yPEjV':'pipe','TJada':function(_0x5090b7,_0x31bc7c,_0x5a4c5f){return _0x5090b7(_0x31bc7c,_0x5a4c5f);},'IcPeI':function(_0x1a943b,_0x403e9e){return _0x1a943b(_0x403e9e);}};await ensureChromeProfileShape(_0x360751[_0x236a2e(0x117)],_0x360751[_0x236a2e(0xaf)]);const _0x22c5ca=_0x360751['executablePath']??chromium['executablePath'](),_0x145fe6=await _0x5688cd['yQhBL'](getAvailablePort),_0x46840e=['--remote-debugging-port='+_0x145fe6,'--user-data-dir='+_0x360751[_0x236a2e(0x117)],'--profile-directory=Default',_0x5688cd['SadUg'],_0x236a2e(0xf7),'--remote-allow-origins=http://localhost'];_0x360751['headless']&&_0x46840e['push'](_0x5688cd['mxAdL']);_0x46840e[_0x236a2e(0x7a)](..._0x360751[_0x236a2e(0x90)]??[]);const _0x3b7fff=spawn(_0x22c5ca,_0x46840e,{'stdio':[_0x5688cd['sowuT'],_0x5688cd['yPEjV'],_0x5688cd['yPEjV']]});try{const _0x537bae=await _0x5688cd[_0x236a2e(0xc0)](waitForCdpEndpoint,_0x3b7fff,_0x145fe6),_0x57fb8b=await chromium['connectOverCDP'](_0x537bae);return{'browser':_0x57fb8b,'process':_0x3b7fff};}catch(_0x2a6dd4){await _0x5688cd[_0x236a2e(0x11e)](terminateNovaHydrationBrowser,_0x3b7fff);throw _0x2a6dd4;}}async function closeNovaHydrationBrowser(_0x1ebf0b,_0x16789b){const _0x4ee9a2=_0x3b36f0,_0x888be6={'YyvQE':function(_0xd253ba,_0x462cf9){return _0xd253ba(_0x462cf9);}};try{await _0x1ebf0b[_0x4ee9a2(0xd4)]();}catch{await _0x888be6[_0x4ee9a2(0xf6)](terminateNovaHydrationBrowser,_0x16789b);return;}const _0x3a6497=await waitForProcessExit(_0x16789b,0x1388);!_0x3a6497&&await _0x888be6[_0x4ee9a2(0xf6)](terminateNovaHydrationBrowser,_0x16789b);}async function terminateNovaHydrationBrowser(_0x4e426d){const _0x4b8b4e=_0x3b36f0,_0x2820ae={'kGOyu':function(_0x21a5a5,_0x309516,_0xd04a5f){return _0x21a5a5(_0x309516,_0xd04a5f);},'Ueuqj':function(_0x264151,_0x3ae1d3){return _0x264151===_0x3ae1d3;},'kuiPP':_0x4b8b4e(0x10e)};if(_0x4e426d[_0x4b8b4e(0x7b)]!==null)return;try{_0x4e426d[_0x4b8b4e(0x12d)]('SIGTERM');}catch{}await _0x2820ae['kGOyu'](waitForProcessExit,_0x4e426d,0x7d0);if(_0x2820ae['Ueuqj'](_0x4e426d['exitCode'],null)){try{_0x4e426d[_0x4b8b4e(0x12d)](_0x2820ae[_0x4b8b4e(0x11f)]);}catch{}await _0x2820ae[_0x4b8b4e(0xdc)](waitForProcessExit,_0x4e426d,0x7d0);}}async function waitForCdpEndpoint(_0xbc1916,_0x54b305){const _0x28767e=_0x3b36f0,_0x3fea28={'HmOJC':function(_0x2ddf9b,_0x2722c3){return _0x2ddf9b<_0x2722c3;},'hRJzk':function(_0x266916,_0x7d1d51){return _0x266916-_0x7d1d51;},'zhBjm':function(_0x412319,_0x465b90){return _0x412319(_0x465b90);},'pnIjj':function(_0x5d4692,_0x216c59){return _0x5d4692===_0x216c59;},'PICrG':function(_0x310089,_0x4e902b){return _0x310089 instanceof _0x4e902b;}},_0x37fc78=Date['now']();let _0x466c21;while(_0x3fea28['HmOJC'](_0x3fea28[_0x28767e(0xcb)](Date[_0x28767e(0x104)](),_0x37fc78),NOVA_PROFILE_HYDRATION_CDP_TIMEOUT_MS)){if(_0xbc1916[_0x28767e(0x7b)]!==null)throw new Error('Hydration\x20browser\x20exited\x20before\x20CDP\x20became\x20available\x20with\x20code\x20'+_0xbc1916['exitCode']);try{const _0x3d30e8=await _0x3fea28[_0x28767e(0x9f)](fetch,_0x28767e(0xba)+_0x54b305+'/json/version');if(_0x3d30e8['ok']){const _0xb228e4=await _0x3d30e8['json']();if(_0x3fea28[_0x28767e(0x12a)](typeof _0xb228e4[_0x28767e(0xc7)],'string'))return _0xb228e4['webSocketDebuggerUrl'];}}catch(_0x3a6627){_0x466c21=_0x3a6627;}await _0x3fea28[_0x28767e(0x9f)](delay,0x64);}const _0x3318c0=_0x3fea28['PICrG'](_0x466c21,Error)?':\x20'+_0x466c21['message']:'';throw new Error(_0x28767e(0xf0)+_0x3318c0);}async function getAvailablePort(){const _0x5e7858={'qVcRH':'object','smoTl':function(_0x490b8f){return _0x490b8f();},'XNNNQ':'127.0.0.1'};return new Promise((_0x212f65,_0x3788f0)=>{const _0x59cb89=_0x2275,_0x116412={'GINKM':function(_0x4a2ee7,_0x39b6e1){return _0x4a2ee7(_0x39b6e1);},'UsSPL':_0x5e7858['qVcRH'],'fmksg':'Failed\x20to\x20allocate\x20hydration\x20browser\x20port'},_0xcbeedf=_0x5e7858[_0x59cb89(0x8e)](createServer);_0xcbeedf[_0x59cb89(0xc1)](_0x59cb89(0x109),_0x3788f0),_0xcbeedf['listen'](0x0,_0x5e7858[_0x59cb89(0x126)],()=>{const _0x34b3b5=_0xcbeedf['address']();_0xcbeedf['close'](_0x41b442=>{const _0x2fb6a1=_0x2275;if(_0x41b442){_0x116412['GINKM'](_0x3788f0,_0x41b442);return;}if(typeof _0x34b3b5===_0x116412[_0x2fb6a1(0xd3)]&&_0x34b3b5?.[_0x2fb6a1(0xb8)]){_0x116412[_0x2fb6a1(0xb3)](_0x212f65,_0x34b3b5['port']);return;}_0x116412[_0x2fb6a1(0xb3)](_0x3788f0,new Error(_0x116412['fmksg']));});});});}async function waitForProcessExit(_0x401f81,_0x5ea1f7){const _0x1e6071=_0x3b36f0,_0x164b76={'GDjFV':function(_0x315f80){return _0x315f80();},'DaCwo':function(_0x3882ec){return _0x3882ec();},'eSDTX':function(_0x168fb8,_0x4482f4){return _0x168fb8(_0x4482f4);},'KXZGg':function(_0x148a69,_0x4b04f9){return _0x148a69(_0x4b04f9);},'sBjel':function(_0x429651,_0x3c480a,_0x1447bf){return _0x429651(_0x3c480a,_0x1447bf);},'pRpyT':'exit','QARHN':function(_0x1dad2f,_0x273b7b){return _0x1dad2f!==_0x273b7b;}};if(_0x164b76['QARHN'](_0x401f81[_0x1e6071(0x7b)],null))return!![];return new Promise(_0x2848ce=>{const _0xaa9a13=_0x1e6071,_0x9d7424=_0x164b76['sBjel'](setTimeout,()=>{_0x164b76['GDjFV'](_0x1df894),_0x2848ce(![]);},_0x5ea1f7),_0x20422b=()=>{const _0xf6dc8c=_0x2275;_0x164b76[_0xf6dc8c(0xef)](_0x1df894),_0x164b76[_0xf6dc8c(0x123)](_0x2848ce,!![]);},_0x1df894=()=>{const _0xd7c23c=_0x2275;_0x164b76[_0xd7c23c(0x122)](clearTimeout,_0x9d7424),_0x401f81['off']('exit',_0x20422b);};_0x401f81[_0xaa9a13(0xc1)](_0x164b76[_0xaa9a13(0xa2)],_0x20422b);});}async function delay(_0x4b5db7){await new Promise(_0x1ece4a=>setTimeout(_0x1ece4a,_0x4b5db7));}async function ensureChromeProfileShape(_0x200512,_0x296ed2){const _0x10cd9e=_0x3b36f0,_0x20e4f1={'fNWyb':function(_0x38af1e,_0x1acd20,_0x54004f){return _0x38af1e(_0x1acd20,_0x54004f);},'rYSTE':function(_0x16f599,_0x8beb4){return _0x16f599(_0x8beb4);},'kCQDt':_0x10cd9e(0x92)};await _0x20e4f1['fNWyb'](mkdir,_0x296ed2,{'recursive':!![]}),await _0x20e4f1['rYSTE'](ensureJsonFile,join(_0x200512,_0x20e4f1[_0x10cd9e(0xbf)])),await _0x20e4f1[_0x10cd9e(0xa9)](ensureJsonFile,join(_0x296ed2,'Preferences'));}async function ensureJsonFile(_0x3a7adb){const _0x5d3ec6=_0x3b36f0,_0x351811={'KIJUq':function(_0x199975,_0x242c24,_0x418629,_0xdcca43){return _0x199975(_0x242c24,_0x418629,_0xdcca43);}};try{await access(_0x3a7adb);}catch{await _0x351811[_0x5d3ec6(0x112)](writeFile,_0x3a7adb,'{}',_0x5d3ec6(0x10f));}}export function previewNovaActCliCommand(_0x40267f){const _0x9fcd5f=_0x3b36f0,_0x37afbb={'GuxoB':function(_0x14607e,_0x56b79f){return _0x14607e(_0x56b79f);}};return _0x37afbb[_0x9fcd5f(0x88)](truncatePreview,_0x40267f);}
@@ -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(_0x3795ec,_0x37be99){var _0x69572c=_0x4427,_0x30a97c=_0x3795ec();while(!![]){try{var _0x58b785=-parseInt(_0x69572c(0x118))/0x1*(-parseInt(_0x69572c(0x10d))/0x2)+-parseInt(_0x69572c(0x112))/0x3+-parseInt(_0x69572c(0x110))/0x4*(-parseInt(_0x69572c(0x119))/0x5)+parseInt(_0x69572c(0x111))/0x6+parseInt(_0x69572c(0x10b))/0x7+-parseInt(_0x69572c(0x115))/0x8+parseInt(_0x69572c(0x116))/0x9;if(_0x58b785===_0x37be99)break;else _0x30a97c['push'](_0x30a97c['shift']());}catch(_0x5127b7){_0x30a97c['push'](_0x30a97c['shift']());}}}(_0x35d7,0xdd5ac));import{homedir}from'os';import{join}from'path';function _0x4427(_0x57befb,_0x35dab6){_0x57befb=_0x57befb-0x10b;var _0x35d783=_0x35d7();var _0x44272b=_0x35d783[_0x57befb];return _0x44272b;}import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x2692c5){var _0x4c6847=_0x4427,_0x4e2528={'irFqI':function(_0xb5048,_0x321d90){return _0xb5048===_0x321d90;},'MZRpZ':function(_0x10c79f,_0x35c9e0,_0x56adb0){return _0x10c79f(_0x35c9e0,_0x56adb0);},'zDSHb':_0x4c6847(0x10c)};if(process[_0x4c6847(0x114)]['OPENCODE_CONFIG_DIR'])return process[_0x4c6847(0x114)]['OPENCODE_CONFIG_DIR'];if(_0x4e2528['irFqI'](_0x2692c5,_0x4c6847(0x10f))){if(process['env'][_0x4c6847(0x113)])return _0x4e2528[_0x4c6847(0x10e)](join,process[_0x4c6847(0x114)][_0x4c6847(0x113)],_0x4e2528['zDSHb']);return join(homedir(),'.config',_0x4e2528['zDSHb']);}return join(getProjectRoot(),_0x4c6847(0x117));}function _0x35d7(){var _0x509b93=['opencode','38330mOUkYG','MZRpZ','user','1772xKhKuE','1977252gtXpxl','3555057BrbQZO','XDG_CONFIG_HOME','env','12917960AfGKKV','25174377DeOxah','.opencode','5epORro','1255ADeEmJ','2609033HSrQyP'];_0x35d7=function(){return _0x509b93;};return _0x35d7();}export function getOpencodeSkillsDir(_0x3dc36c){var _0x1d540e={'eOkhu':function(_0x42320b,_0x2199c5){return _0x42320b(_0x2199c5);}};return join(_0x1d540e['eOkhu'](getOpencodeConfigDir,_0x3dc36c),'skills');}
@@ -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(_0x22b81d,_0x2dcfaa){const _0x44623d=_0x253f,_0xb49347=_0x22b81d();while(!![]){try{const _0x386b6a=parseInt(_0x44623d(0x1b9))/0x1+parseInt(_0x44623d(0x1c3))/0x2+-parseInt(_0x44623d(0x1c4))/0x3+parseInt(_0x44623d(0x1c6))/0x4+parseInt(_0x44623d(0x1c9))/0x5*(parseInt(_0x44623d(0x1bb))/0x6)+parseInt(_0x44623d(0x1bc))/0x7+-parseInt(_0x44623d(0x1c2))/0x8*(parseInt(_0x44623d(0x1c1))/0x9);if(_0x386b6a===_0x2dcfaa)break;else _0xb49347['push'](_0xb49347['shift']());}catch(_0x49a38f){_0xb49347['push'](_0xb49347['shift']());}}}(_0x4998,0x4c413));import{getApiBaseUrl}from'./environment.js';import{getToken}from'./keychain.js';function _0x4998(){const _0x48bf65=['No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','set','json','text','2008251KUHpbf','16pRxVMU','613466NupMnU','1851990COUlKG','number','1313836bDvPXL','dwzBQ','aOKUx','66455zmhavD','searchParams','Bearer\x20','VrBjF','LlrmU','310321rKHxNc','oFmSs','138aHuIPA','873187BgCPVD'];_0x4998=function(){return _0x48bf65;};return _0x4998();}function _0x253f(_0x43605b,_0x2411aa){_0x43605b=_0x43605b-0x1b9;const _0x499861=_0x4998();let _0x253f71=_0x499861[_0x43605b];return _0x253f71;}async function getOrganizationEnvironmentVariable(_0x4e1492){const _0x116731=_0x253f,_0x100840={'oFmSs':function(_0x4cb82c){return _0x4cb82c();},'dCOwX':_0x116731(0x1bd),'GVQoO':'GET','LlrmU':function(_0x4f83f4,_0x527f22){return _0x4f83f4===_0x527f22;},'HpYqs':function(_0x44829b,_0x2c9bf9){return _0x44829b===_0x2c9bf9;},'VrBjF':'string','aOKUx':function(_0x58f14c,_0x20be36){return _0x58f14c===_0x20be36;},'QHrlD':_0x116731(0x1c5),'dwzBQ':function(_0x359302,_0x506349){return _0x359302(_0x506349);}},_0x218200=await _0x100840['oFmSs'](getToken);if(!_0x218200)throw new Error(_0x100840['dCOwX']);const _0x2816c9=new URL(_0x100840[_0x116731(0x1ba)](getApiBaseUrl)+'/organization/environment-variables');_0x2816c9[_0x116731(0x1ca)][_0x116731(0x1be)]('variableName',_0x4e1492);const _0x39a89d=await fetch(_0x2816c9,{'method':_0x100840['GVQoO'],'headers':{'Authorization':_0x116731(0x1cb)+_0x218200}});if(_0x100840['LlrmU'](_0x39a89d['status'],0x194))return null;if(!_0x39a89d['ok']){const _0x24be37=await _0x39a89d[_0x116731(0x1c0)]();throw new Error('Failed\x20to\x20fetch\x20organization\x20environment\x20variable\x20'+_0x4e1492+':\x20'+_0x39a89d['status']+'\x20'+_0x24be37);}const _0x5b0eab=await _0x39a89d[_0x116731(0x1bf)](),_0x5ef0e7=_0x5b0eab[_0x4e1492];if(_0x100840[_0x116731(0x1cd)](_0x5ef0e7,undefined)||_0x100840['HpYqs'](_0x5ef0e7,null))return null;if(typeof _0x5ef0e7===_0x100840[_0x116731(0x1cc)]||_0x100840[_0x116731(0x1c8)](typeof _0x5ef0e7,_0x100840['QHrlD']))return _0x100840[_0x116731(0x1c7)](String,_0x5ef0e7);throw new Error('Organization\x20environment\x20variable\x20'+_0x4e1492+'\x20must\x20be\x20a\x20string\x20or\x20number');}export async function getOrganizationEnvironmentVariables(_0x3407ed){const _0x2f2509=Array['from'](new Set(_0x3407ed)),_0x179835=await Promise['all'](_0x2f2509['map'](async _0x30cd06=>{const _0x49b50a=await getOrganizationEnvironmentVariable(_0x30cd06);return _0x49b50a===null?null:[_0x30cd06,_0x49b50a];}));return Object['fromEntries'](_0x179835['filter'](_0x3d1990=>Boolean(_0x3d1990)));}
@@ -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
+ (function(_0x5aa1f2,_0x35ea1b){const _0x3910fb=_0x138c,_0x1e23d5=_0x5aa1f2();while(!![]){try{const _0x3f3062=parseInt(_0x3910fb(0x1bc))/0x1*(-parseInt(_0x3910fb(0x1dc))/0x2)+parseInt(_0x3910fb(0x1cd))/0x3+parseInt(_0x3910fb(0x1c2))/0x4*(parseInt(_0x3910fb(0x1d6))/0x5)+parseInt(_0x3910fb(0x1d5))/0x6+-parseInt(_0x3910fb(0x1c6))/0x7+parseInt(_0x3910fb(0x1cb))/0x8*(-parseInt(_0x3910fb(0x1eb))/0x9)+parseInt(_0x3910fb(0x1e1))/0xa;if(_0x3f3062===_0x35ea1b)break;else _0x1e23d5['push'](_0x1e23d5['shift']());}catch(_0x5989b9){_0x1e23d5['push'](_0x1e23d5['shift']());}}}(_0x1870,0xbf6fc));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function _0x1870(){const _0xfed36c=['replace','hotVX','values','164WJObaC','mMgPA','-s=','null','npx','16223020ZyPstv','...','rKvST','unknown','command','timed\x20out\x20after\x20','cwd','error','Shqwx','trim','63qxysPf','fwjeR','XzTIR','kill','args','\x0astderr:\x20','pipe','configPath','bash_command','subcommand','Cuttq','SIGTERM','15898IeSVWn','urKWX','\x27\x5c\x27\x27','rg-','slice','length','55716taYnsZ','lsmLu','veBep','ekmwU','7878444btNZVn','--config','timeoutMs','RttBJ','gwVTp','989912KZLbNH','zJhIU','3096537qZEMlH','string','OdOSz','commandArgs','join','close','VHAzC','match','1111578HJVNYe','445bIsgWS','jTamt','find'];_0x1870=function(){return _0xfed36c;};return _0x1870();}function toPlaywrightCliSessionKey(_0x20d545){const _0x1d53c6=_0x138c,_0x6e051b={'JDeVK':function(_0x103816,_0x2b91c8){return _0x103816(_0x2b91c8);},'iqKZT':'sha256'},_0x2a6613=_0x6e051b['JDeVK'](createHash,_0x6e051b['iqKZT'])['update'](_0x20d545)['digest']('hex')[_0x1d53c6(0x1c0)](0x0,0xc);return _0x1d53c6(0x1bf)+_0x2a6613;}function shellQuote(_0x3f8311){const _0x230bb6=_0x138c;return'\x27'+_0x3f8311[_0x230bb6(0x1d9)](/'/g,_0x230bb6(0x1be))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x4e588c){const _0x5b48aa=_0x138c,_0x2f65f9={'mMgPA':function(_0x2b5000,_0x6c3065){return _0x2b5000(_0x6c3065);}};return SAFE_SHELL_TOKEN['test'](_0x4e588c)?_0x4e588c:_0x2f65f9[_0x5b48aa(0x1dd)](shellQuote,_0x4e588c);}export function buildPlaywrightCliInvocation(_0xdc7425,_0x1011d4,_0x343d49){const _0x1a5d46=_0x138c,_0x34b52c={'VHAzC':'--config','beCuO':_0x1a5d46(0x1e0),'veBep':function(_0x22dc0f,_0x550588){return _0x22dc0f(_0x550588);}},_0x18017e=toPlaywrightCliSessionKey(_0xdc7425),[_0x97e91e=_0x1a5d46(0x1e4)]=_0x343d49,_0x22edc6=[PLAYWRIGHT_CLI_BINARY,_0x1a5d46(0x1de)+_0x18017e,_0x34b52c[_0x1a5d46(0x1d3)],_0x1011d4,..._0x343d49];return{'command':_0x1a5d46(0x1e0),'args':_0x22edc6,'shellCommand':[_0x34b52c['beCuO'],PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x18017e),_0x34b52c['VHAzC'],_0x34b52c[_0x1a5d46(0x1c4)](quoteShellArg,_0x1011d4),..._0x343d49['map'](quoteShellArg)][_0x1a5d46(0x1d1)]('\x20'),'subcommand':_0x97e91e};}export function buildPlaywrightCliCommandPrefix(_0x5c2602,_0x4bfcb2){const _0x465b8b=_0x138c,_0x4524dd={'gwVTp':function(_0x4a04f0,_0x5d379d){return _0x4a04f0(_0x5d379d);},'urKWX':'npx','PXqDf':function(_0x402d0f,_0x343bb7){return _0x402d0f(_0x343bb7);},'joirW':function(_0x27896b,_0x32f156){return _0x27896b(_0x32f156);}},_0x3b66f3=_0x4524dd[_0x465b8b(0x1ca)](toPlaywrightCliSessionKey,_0x5c2602);return[_0x4524dd[_0x465b8b(0x1bd)],PLAYWRIGHT_CLI_BINARY,_0x465b8b(0x1de)+_0x4524dd['PXqDf'](quoteShellArg,_0x3b66f3),_0x465b8b(0x1c7),_0x4524dd['joirW'](quoteShellArg,_0x4bfcb2)]['join']('\x20');}function truncateOutput(_0x185440,_0xad1ba4=0x7d0){const _0x45a85f=_0x138c;return _0x185440['length']>_0xad1ba4?_0x185440['slice'](0x0,_0xad1ba4)+_0x45a85f(0x1e2):_0x185440;}export async function runPlaywrightCliCommand(_0x219b7f){const _0x5b5fda=_0x138c,_0x98cdbc={'xJxBa':_0x5b5fda(0x1bb),'fwjeR':function(_0x5b7f9e,_0x2f8e0f,_0x5dcb0b){return _0x5b7f9e(_0x2f8e0f,_0x5dcb0b);},'XzTIR':function(_0x202289,_0x5a0eca){return _0x202289(_0x5a0eca);},'uBkuA':function(_0x471978,_0x52687b){return _0x471978(_0x52687b);},'aamWl':function(_0x11f942,_0x258dfb){return _0x11f942===_0x258dfb;},'RttBJ':function(_0x541693,_0x54495f){return _0x541693(_0x54495f);},'OdOSz':function(_0x1c06d9,_0x4fd76f){return _0x1c06d9??_0x4fd76f;},'Shqwx':_0x5b5fda(0x1df),'xXKFG':function(_0x22141c,_0x370676){return _0x22141c(_0x370676);},'kTwPJ':function(_0x3aec2c,_0x55b515){return _0x3aec2c(_0x55b515);},'eqSXM':function(_0x14e9f8,_0x2e2aee,_0x215c93,_0x204456){return _0x14e9f8(_0x2e2aee,_0x215c93,_0x204456);},'lsmLu':'ignore','rKvST':'pipe','jTamt':function(_0x1cea51,_0x2f3518){return _0x1cea51>_0x2f3518;},'ekmwU':'data','Cuttq':function(_0x27dfe1,_0x3d13f1,_0x47a289,_0x21c717){return _0x27dfe1(_0x3d13f1,_0x47a289,_0x21c717);}},_0x121fb9=_0x98cdbc[_0x5b5fda(0x1f5)](buildPlaywrightCliInvocation,_0x219b7f['sessionId'],_0x219b7f[_0x5b5fda(0x1f2)],_0x219b7f[_0x5b5fda(0x1d0)]);return new Promise((_0x4c0e79,_0x43a739)=>{const _0x258e4d=_0x5b5fda,_0x15c9b6=_0x98cdbc['eqSXM'](spawn,_0x121fb9['command'],_0x121fb9[_0x258e4d(0x1ef)],{'cwd':_0x219b7f[_0x258e4d(0x1e7)],'env':_0x219b7f['env'],'stdio':[_0x98cdbc[_0x258e4d(0x1c3)],_0x258e4d(0x1f1),_0x98cdbc[_0x258e4d(0x1e3)]]});let _0x5cc4f0='',_0x1da145='',_0x5bcdf3=![];const _0x37b446=_0x219b7f[_0x258e4d(0x1c8)]&&_0x98cdbc[_0x258e4d(0x1d7)](_0x219b7f['timeoutMs'],0x0)?setTimeout(()=>{const _0x1af905=_0x258e4d,_0xe3f6a={'TjTHS':'SIGKILL'};_0x5bcdf3=!![],_0x15c9b6['kill'](_0x98cdbc['xJxBa']),_0x98cdbc[_0x1af905(0x1ec)](setTimeout,()=>{const _0x316187=_0x1af905;try{_0x15c9b6[_0x316187(0x1ee)](_0xe3f6a['TjTHS']);}catch{}},0x3e8);},_0x219b7f['timeoutMs']):null;_0x15c9b6['stdout']?.['on'](_0x98cdbc[_0x258e4d(0x1c5)],_0x1b88e6=>{_0x5cc4f0+=_0x1b88e6['toString']();}),_0x15c9b6['stderr']?.['on'](_0x98cdbc[_0x258e4d(0x1c5)],_0x16dbeb=>{_0x1da145+=_0x16dbeb['toString']();}),_0x15c9b6['on'](_0x258e4d(0x1e8),_0x5606d3=>{const _0x45e540=_0x258e4d;if(_0x37b446)clearTimeout(_0x37b446);_0x98cdbc[_0x45e540(0x1ed)](_0x43a739,_0x5606d3);}),_0x15c9b6['on'](_0x258e4d(0x1d2),(_0x387c6f,_0x2b0197)=>{const _0x22ac67=_0x258e4d;if(_0x37b446)_0x98cdbc['uBkuA'](clearTimeout,_0x37b446);if(_0x98cdbc['aamWl'](_0x387c6f,0x0)){_0x98cdbc[_0x22ac67(0x1c9)](_0x4c0e79,{'stdout':_0x5cc4f0,'stderr':_0x1da145,'invocation':_0x121fb9});return;}const _0x1d19be=_0x5bcdf3?_0x22ac67(0x1e6)+_0x219b7f[_0x22ac67(0x1c8)]+'ms':'exited\x20with\x20code='+_0x98cdbc[_0x22ac67(0x1cf)](_0x387c6f,_0x98cdbc[_0x22ac67(0x1e9)])+'\x20signal='+_0x98cdbc['OdOSz'](_0x2b0197,_0x98cdbc[_0x22ac67(0x1e9)]);_0x98cdbc['xXKFG'](_0x43a739,new Error('playwright-cli\x20'+_0x121fb9[_0x22ac67(0x1f4)]+'\x20'+_0x1d19be+'\x0astdout:\x20'+truncateOutput(_0x5cc4f0)+_0x22ac67(0x1f0)+_0x98cdbc['kTwPJ'](truncateOutput,_0x1da145)));});});}export function extractBashCommand(_0x5802b3){const _0xbf6df0=_0x138c,_0x47d161={'hotVX':'cmd','zJhIU':_0xbf6df0(0x1ce)},_0x293639=[_0xbf6df0(0x1e5),_0x47d161[_0xbf6df0(0x1da)],'script',_0xbf6df0(0x1f3)];for(const _0x45c08e of _0x293639){const _0x2c250f=_0x5802b3[_0x45c08e];if(typeof _0x2c250f===_0x47d161[_0xbf6df0(0x1cc)]&&_0x2c250f['trim']())return _0x2c250f;}const _0x2abe68=Object[_0xbf6df0(0x1db)](_0x5802b3)[_0xbf6df0(0x1d8)](_0x9d125f=>typeof _0x9d125f===_0xbf6df0(0x1ce)&&_0x9d125f[_0xbf6df0(0x1ea)]()[_0xbf6df0(0x1c1)]>0x0);return _0x2abe68??null;}function _0x138c(_0x2b2696,_0x431038){_0x2b2696=_0x2b2696-0x1bb;const _0x18709a=_0x1870();let _0x138c04=_0x18709a[_0x2b2696];return _0x138c04;}export function parsePlaywrightCliCommand(_0x328476){const _0x423d50=_0x138c,_0x4d48db=_0x328476[_0x423d50(0x1d4)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x4d48db?.[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
+ function _0x417d(){const _0x1831fd=['3JFyCEM','1782612gZQxxQ','1556562dwzPmD','50GlIsIy','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','18265452KmpTcj','5DQGkmF','2781202CVHdwx','951316tTZLzn','1980441NGtzea','12VpZdBl','543528okZTzp','11fIIDCY'];_0x417d=function(){return _0x1831fd;};return _0x417d();}(function(_0x38e975,_0x26d4b0){const _0x3e9831=_0x5f2a,_0x592d4c=_0x38e975();while(!![]){try{const _0x264ae7=-parseInt(_0x3e9831(0xaa))/0x1+-parseInt(_0x3e9831(0xa9))/0x2*(-parseInt(_0x3e9831(0xaf))/0x3)+-parseInt(_0x3e9831(0xb0))/0x4*(-parseInt(_0x3e9831(0xa8))/0x5)+-parseInt(_0x3e9831(0xac))/0x6*(parseInt(_0x3e9831(0xb1))/0x7)+-parseInt(_0x3e9831(0xad))/0x8+parseInt(_0x3e9831(0xab))/0x9*(-parseInt(_0x3e9831(0xb2))/0xa)+parseInt(_0x3e9831(0xae))/0xb*(parseInt(_0x3e9831(0xa7))/0xc);if(_0x264ae7===_0x26d4b0)break;else _0x592d4c['push'](_0x592d4c['shift']());}catch(_0xc9c70c){_0x592d4c['push'](_0x592d4c['shift']());}}}(_0x417d,0xc1e1d));function _0x5f2a(_0x30e345,_0x30e17e){_0x30e345=_0x30e345-0xa7;const _0x417dc4=_0x417d();let _0x5f2a5f=_0x417dc4[_0x30e345];return _0x5f2a5f;}const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x1a7450){const _0x4fb3fb=_0x5f2a,_0x51bacc=_0x1a7450?_0x1a7450(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x4fb3fb(0xb3)+_0x51bacc+'.';}
@@ -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(_0x595e14,_0x3183ff){const _0x59e6fe=_0x5ec7,_0x1fa9ec=_0x595e14();while(!![]){try{const _0x1f166c=-parseInt(_0x59e6fe(0x151))/0x1+parseInt(_0x59e6fe(0x148))/0x2+parseInt(_0x59e6fe(0x149))/0x3*(-parseInt(_0x59e6fe(0x145))/0x4)+parseInt(_0x59e6fe(0x141))/0x5+parseInt(_0x59e6fe(0x153))/0x6+parseInt(_0x59e6fe(0x14a))/0x7+-parseInt(_0x59e6fe(0x14e))/0x8;if(_0x1f166c===_0x3183ff)break;else _0x1fa9ec['push'](_0x1fa9ec['shift']());}catch(_0x54b237){_0x1fa9ec['push'](_0x1fa9ec['shift']());}}}(_0x2dbe,0xb45af));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x14030d=_0x5ec7,_0xcb8cf0={'efBfr':function(_0x31f004,_0x10bb7d){return _0x31f004+_0x10bb7d;},'oFNcK':function(_0x10d3ac,_0xd95126){return _0x10d3ac+_0xd95126;},'QuGeV':function(_0x524efc,_0x1ec7a1){return _0x524efc+_0x1ec7a1;},'oLPhL':function(_0x3c9907,_0x22b519){return _0x3c9907+_0x22b519;},'cjrPV':_0x14030d(0x147),'jMhEz':_0x14030d(0x140),'uVjcv':_0x14030d(0x142),'VcnZb':_0x14030d(0x14c)},_0x5e084f=_0xcb8cf0['efBfr'](_0xcb8cf0[_0x14030d(0x14b)](_0xcb8cf0['efBfr'](_0xcb8cf0[_0x14030d(0x14b)](_0xcb8cf0[_0x14030d(0x14f)](_0xcb8cf0['oLPhL'](_0xcb8cf0[_0x14030d(0x14d)],_0x14030d(0x143)),_0xcb8cf0['jMhEz'])+_0x14030d(0x146),_0xcb8cf0[_0x14030d(0x150)]),_0xcb8cf0[_0x14030d(0x144)]),_0xcb8cf0['VcnZb']),_0x14030d(0x155)),_0x37fb7f='\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 _0x14030d(0x154)+JSON['stringify'](_0x5e084f)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON['stringify'](_0x37fb7f)+_0x14030d(0x152);})());function _0x2dbe(){const _0x46ea55=['QuGeV','uVjcv','918876haotaV',';\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','5229024DbFaUU','\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','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','<div\x20class=\x22ranger-banner__message\x22>','3086875pUhNWR','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','VcnZb','1862740OGkJgL','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','<div\x20class=\x22ranger-banner__content\x22>','1849204tnXBgn','3SaUEev','3484096Fmyjiu','oFNcK','</div>','cjrPV','6303304zLazCM'];_0x2dbe=function(){return _0x46ea55;};return _0x2dbe();}function _0x5ec7(_0x2b7f26,_0xb5c5ef){_0x2b7f26=_0x2b7f26-0x140;const _0x2dbe2f=_0x2dbe();let _0x5ec71c=_0x2dbe2f[_0x2b7f26];return _0x5ec71c;}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x43bf97){await _0x43bf97['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(_0x5ebdfd,_0x3e4be0){const _0x3eed33=_0x134e,_0x436e71=_0x5ebdfd();while(!![]){try{const _0x1b5c93=-parseInt(_0x3eed33(0xb5))/0x1*(-parseInt(_0x3eed33(0xb4))/0x2)+parseInt(_0x3eed33(0xbe))/0x3+parseInt(_0x3eed33(0xa2))/0x4+-parseInt(_0x3eed33(0xa3))/0x5+-parseInt(_0x3eed33(0xaf))/0x6+parseInt(_0x3eed33(0x97))/0x7+parseInt(_0x3eed33(0x96))/0x8*(parseInt(_0x3eed33(0xb3))/0x9);if(_0x1b5c93===_0x3e4be0)break;else _0x436e71['push'](_0x436e71['shift']());}catch(_0x38e0bd){_0x436e71['push'](_0x436e71['shift']());}}}(_0x4b08,0xafbd2));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';function _0x134e(_0x576b24,_0x14e8ec){_0x576b24=_0x576b24-0x96;const _0x4b0855=_0x4b08();let _0x134ed1=_0x4b0855[_0x576b24];return _0x134ed1;}import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x319b99=_0x134e,_0x561690={'ChlFr':'projects.json'};return join(getRangerHomeDir(),_0x561690[_0x319b99(0xa1)]);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x5ae352=_0x134e,_0x52a75f={'ilTsc':function(_0x5827ec,_0x5f5dc2){return _0x5827ec instanceof _0x5f5dc2;},'hyuDb':function(_0x5f4b1c,_0x1b649b){return _0x5f4b1c(_0x1b649b);},'gNMrG':function(_0xfffb55){return _0xfffb55();},'xpsbf':function(_0x5df5d4,_0x1b3d46){return _0x5df5d4!==_0x1b3d46;}},_0xa6aad2=getProjectsConfigPath();if(!existsSync(_0xa6aad2))return emptyConfig();let _0x240bc9;try{_0x240bc9=readFileSync(_0xa6aad2,'utf-8');}catch(_0x52c3d1){const _0x35ef60=_0x52c3d1 instanceof Error?_0x52c3d1[_0x5ae352(0x9d)]:String(_0x52c3d1);return console[_0x5ae352(0xa9)](_0x5ae352(0xb8)+_0xa6aad2+':\x20'+_0x35ef60+_0x5ae352(0x98)),emptyConfig();}let _0x417a41;try{_0x417a41=JSON[_0x5ae352(0xac)](_0x240bc9);}catch(_0x25eaf0){const _0x5e31a0=_0x52a75f['ilTsc'](_0x25eaf0,Error)?_0x25eaf0[_0x5ae352(0x9d)]:_0x52a75f['hyuDb'](String,_0x25eaf0);return console[_0x5ae352(0xa9)]('[ranger]\x20Warning:\x20'+_0xa6aad2+'\x20is\x20not\x20valid\x20JSON\x20('+_0x5e31a0+_0x5ae352(0xaa)),_0x52a75f[_0x5ae352(0xb2)](emptyConfig);}if(!_0x417a41||typeof _0x417a41!==_0x5ae352(0xbc)||Array[_0x5ae352(0xb6)](_0x417a41)||_0x52a75f['xpsbf'](_0x417a41['version'],CURRENT_VERSION)||_0x52a75f[_0x5ae352(0xc0)](typeof _0x417a41[_0x5ae352(0x9b)],'object')||_0x417a41[_0x5ae352(0x9b)]===null||Array['isArray'](_0x417a41['projects']))return console['warn'](_0x5ae352(0xa6)+_0xa6aad2+_0x5ae352(0x9e)),emptyConfig();return _0x417a41;}export function writeProjectsConfig(_0x4f805a){const _0x3b37fd=_0x134e,_0x20e95a={'EvByu':function(_0x44df12,_0x51ed2b){return _0x44df12(_0x51ed2b);},'Dnity':function(_0x246bec,_0x3adfd6,_0x40f221){return _0x246bec(_0x3adfd6,_0x40f221);},'uUOwK':'utf-8','OVbzI':function(_0xe65bc3,_0x219e9f,_0x142527){return _0xe65bc3(_0x219e9f,_0x142527);},'HMvgV':function(_0x3ed964,_0x4cbe68){return _0x3ed964(_0x4cbe68);}},_0x302244=getProjectsConfigPath(),_0x24e149=_0x20e95a[_0x3b37fd(0xbd)](dirname,_0x302244);!_0x20e95a[_0x3b37fd(0xbd)](existsSync,_0x24e149)&&_0x20e95a[_0x3b37fd(0xb9)](mkdirSync,_0x24e149,{'recursive':!![]});const _0x4ee7cc=_0x302244+'.'+process[_0x3b37fd(0x9f)]+'.'+Date[_0x3b37fd(0xa8)]()+'.tmp',_0x282271=JSON['stringify'](_0x4f805a,null,0x2)+'\x0a';try{writeFileSync(_0x4ee7cc,_0x282271,{'encoding':_0x20e95a['uUOwK'],'mode':0x180}),_0x20e95a[_0x3b37fd(0xba)](renameSync,_0x4ee7cc,_0x302244);}catch(_0x2e2a5b){try{existsSync(_0x4ee7cc)&&_0x20e95a['HMvgV'](unlinkSync,_0x4ee7cc);}catch{}throw _0x2e2a5b;}}export function readProfileOverrides(_0x44949e,_0x69680){const _0xc3c5ce=_0x134e,_0x1df9cc=readProjectsConfig(),_0x29cd39=_0x1df9cc['projects'][_0x44949e];if(!_0x29cd39||!_0x29cd39['profiles'])return null;const _0x220974=_0x29cd39['profiles'][_0x69680];if(!_0x220974||!_0x220974['settings'])return null;return _0x220974[_0xc3c5ce(0xb7)]??null;}export function setProfileOverride(_0xe9414d,_0x44c1a0,_0x531379,_0x12138a){const _0x24d822=_0x134e,_0x3ee8b1={'wLYIP':'keyPath\x20is\x20required'};if(!_0x531379)throw new Error(_0x3ee8b1[_0x24d822(0x9c)]);const _0xc8bd03=readProjectsConfig(),_0x321dff=_0xc8bd03[_0x24d822(0x9b)][_0xe9414d]??={},_0x2997b1=_0x321dff[_0x24d822(0x9a)]??={},_0x1029ed=_0x2997b1[_0x44c1a0]??={},_0x44ae73=_0x1029ed[_0x24d822(0xb7)]??={};setByKeyPath(_0x44ae73,_0x531379,_0x12138a),writeProjectsConfig(_0xc8bd03);}export function unsetProfileOverride(_0x58604f,_0x30dad4,_0xea07c1){const _0x379cd2=_0x134e,_0x2ae2d7={'KbnAQ':'keyPath\x20is\x20required','vMzAE':function(_0x5e1d3e){return _0x5e1d3e();}};if(!_0xea07c1)throw new Error(_0x2ae2d7['KbnAQ']);const _0x2b4c89=_0x2ae2d7['vMzAE'](readProjectsConfig),_0x5696de=_0x2b4c89['projects'][_0x58604f];if(!_0x5696de?.[_0x379cd2(0x9a)])return![];const _0x5a88dd=_0x5696de['profiles'][_0x30dad4];if(!_0x5a88dd?.['settings'])return![];const _0x21bcb2=deleteByKeyPath(_0x5a88dd['settings'],_0xea07c1);if(!_0x21bcb2)return![];return writeProjectsConfig(_0x2b4c89),!![];}export function resetProfileOverrides(_0x36f848,_0x55d6b6){const _0x3d2756=_0x134e,_0x252c3f={'QQqoI':function(_0xde6062){return _0xde6062();},'jSaIF':function(_0x205199,_0xdba79a){return _0x205199===_0xdba79a;},'ltDvl':function(_0x23d4ed,_0x281dd5){return _0x23d4ed(_0x281dd5);}},_0x461521=_0x252c3f[_0x3d2756(0xbf)](readProjectsConfig),_0x1644d4=_0x461521['projects'][_0x36f848];if(!_0x1644d4?.['profiles'])return;if(!(_0x55d6b6 in _0x1644d4['profiles']))return;delete _0x1644d4[_0x3d2756(0x9a)][_0x55d6b6],_0x252c3f[_0x3d2756(0xa5)](Object['keys'](_0x1644d4[_0x3d2756(0x9a)])['length'],0x0)&&(!_0x1644d4['lastProfile']?delete _0x461521['projects'][_0x36f848]:_0x1644d4['profiles']={}),_0x252c3f['ltDvl'](writeProjectsConfig,_0x461521);}export function readLastProfile(_0x2a087d){const _0x5f2431=_0x134e,_0x41148f=readProjectsConfig(),_0x100c82=_0x41148f['projects'][_0x2a087d];return _0x100c82?.[_0x5f2431(0x99)]??null;}export function writeLastProfile(_0x1ce679,_0x509b89){const _0x29fbba=_0x134e,_0x18ab62={'gUgbi':function(_0x475dd6,_0x215c95){return _0x475dd6(_0x215c95);}},_0x41c068=readProjectsConfig(),_0x1a04b8=_0x41c068['projects'][_0x1ce679]??={};_0x1a04b8[_0x29fbba(0x99)]=_0x509b89,_0x18ab62[_0x29fbba(0xa7)](writeProjectsConfig,_0x41c068);}export function clearLastProfile(_0xdff735,_0x441845){const _0x55e9f0=_0x134e,_0x51e839={'mwJyd':function(_0x415c3e){return _0x415c3e();},'exFlm':function(_0x233d54,_0x115e72){return _0x233d54!==_0x115e72;}},_0x491d59=_0x51e839['mwJyd'](readProjectsConfig),_0x4f7ee1=_0x491d59[_0x55e9f0(0x9b)][_0xdff735];if(!_0x4f7ee1||_0x51e839[_0x55e9f0(0xad)](_0x4f7ee1[_0x55e9f0(0x99)],_0x441845))return![];return delete _0x4f7ee1['lastProfile'],(!_0x4f7ee1[_0x55e9f0(0x9a)]||Object['keys'](_0x4f7ee1[_0x55e9f0(0x9a)])['length']===0x0)&&delete _0x491d59[_0x55e9f0(0x9b)][_0xdff735],writeProjectsConfig(_0x491d59),!![];}export function mergeCloudProfileSettings(_0x57da6d,_0x5a9832){const _0x34701d=_0x134e,_0x2de8dc={'yRrgw':function(_0x1bd502,_0x1661b9){return _0x1bd502===_0x1661b9;},'gKhas':'setupHeaders','nscRC':function(_0x199c9a,_0x2b9d2c){return _0x199c9a!==_0x2b9d2c;}},_0x2a538e={..._0x57da6d??{}};if(!_0x5a9832)return _0x2a538e;for(const [_0x3caa5c,_0x2f6b22]of Object['entries'](_0x5a9832)){if(_0x2f6b22===undefined)continue;if(_0x2f6b22===null){delete _0x2a538e[_0x3caa5c];continue;}if(_0x2de8dc[_0x34701d(0xab)](_0x3caa5c,_0x34701d(0xae))||_0x3caa5c===_0x2de8dc['gKhas']){const _0x1f1589=asRecord(_0x2a538e[_0x3caa5c])??{},_0x305551=asRecord(_0x2f6b22);if(!_0x305551){_0x2a538e[_0x3caa5c]=_0x2f6b22;continue;}const _0x3e095e={..._0x1f1589};for(const [_0xbc502e,_0x159fde]of Object[_0x34701d(0xa4)](_0x305551)){if(_0x159fde===null)delete _0x3e095e[_0xbc502e];else _0x2de8dc['nscRC'](_0x159fde,undefined)&&(_0x3e095e[_0xbc502e]=_0x159fde);}_0x2a538e[_0x3caa5c]=_0x3e095e;continue;}_0x2a538e[_0x3caa5c]=_0x2f6b22;}return _0x2a538e;}function asRecord(_0x442545){const _0x25720b=_0x134e;return _0x442545&&typeof _0x442545==='object'&&!Array[_0x25720b(0xb6)](_0x442545)?_0x442545:undefined;}function setByKeyPath(_0x1e47d5,_0x29d08a,_0x4df241){const _0x4fbf2c=_0x134e,_0x3b8c74={'OVsVE':function(_0x149fe3,_0x204ae0){return _0x149fe3<_0x204ae0;},'XPCok':function(_0x15c5c6,_0x546b6c){return _0x15c5c6!==_0x546b6c;}},_0x29d4af=_0x29d08a[_0x4fbf2c(0xb1)]('.');let _0x5ca50f=_0x1e47d5;for(let _0x2698c3=0x0;_0x3b8c74['OVsVE'](_0x2698c3,_0x29d4af['length']-0x1);_0x2698c3++){const _0x2262fa=_0x29d4af[_0x2698c3],_0x1d7a86=_0x5ca50f[_0x2262fa];(!_0x1d7a86||_0x3b8c74[_0x4fbf2c(0xa0)](typeof _0x1d7a86,_0x4fbf2c(0xbc))||Array[_0x4fbf2c(0xb6)](_0x1d7a86))&&(_0x5ca50f[_0x2262fa]={}),_0x5ca50f=_0x5ca50f[_0x2262fa];}_0x5ca50f[_0x29d4af[_0x29d4af['length']-0x1]]=_0x4df241;}function _0x4b08(){const _0x2c228f=['2302136CFwnuX','6502540rFrCHq','entries','jSaIF','[ranger]\x20Warning:\x20','gUgbi','now','warn',').\x20Ignoring\x20local\x20profile\x20overrides.','yRrgw','parse','exFlm','headers','7370130SfgPjc','wIxTb','split','gNMrG','3298527cRubjL','141866YViLnn','17NhgCEx','isArray','settings','[ranger]\x20Warning:\x20failed\x20to\x20read\x20','Dnity','OVbzI','lIMWE','object','EvByu','1588347Qnyzyz','QQqoI','xpsbf','8kgUeoQ','3999394luhEdK','.\x20Ignoring\x20local\x20profile\x20overrides.','lastProfile','profiles','projects','wLYIP','message','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','pid','XPCok','ChlFr'];_0x4b08=function(){return _0x2c228f;};return _0x4b08();}function deleteByKeyPath(_0x47bf8f,_0x5816c8){const _0x456792=_0x134e,_0x4322c9={'wIxTb':function(_0x51b792,_0x5529c6){return _0x51b792<_0x5529c6;},'lIMWE':function(_0x1eb649,_0x56b49b){return _0x1eb649-_0x56b49b;}},_0x4779de=_0x5816c8['split']('.');let _0x2b913a=_0x47bf8f;for(let _0x1c4900=0x0;_0x4322c9[_0x456792(0xb0)](_0x1c4900,_0x4779de['length']-0x1);_0x1c4900++){const _0x543b0e=_0x4779de[_0x1c4900],_0x179ddf=_0x2b913a[_0x543b0e];if(!_0x179ddf||typeof _0x179ddf!=='object'||Array[_0x456792(0xb6)](_0x179ddf))return![];_0x2b913a=_0x179ddf;}const _0x47c269=_0x4779de[_0x4322c9[_0x456792(0xbb)](_0x4779de['length'],0x1)];if(!(_0x47c269 in _0x2b913a))return![];return delete _0x2b913a[_0x47c269],!![];}
@@ -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(_0x2ebb5d,_0x22427e){const _0x32fb41=_0x37dc,_0x3f3283=_0x2ebb5d();while(!![]){try{const _0x11ad11=-parseInt(_0x32fb41(0x1cf))/0x1+-parseInt(_0x32fb41(0x1cd))/0x2+parseInt(_0x32fb41(0x1d7))/0x3*(parseInt(_0x32fb41(0x1d1))/0x4)+-parseInt(_0x32fb41(0x1c5))/0x5+parseInt(_0x32fb41(0x1c9))/0x6+-parseInt(_0x32fb41(0x1d5))/0x7+parseInt(_0x32fb41(0x1d0))/0x8;if(_0x11ad11===_0x22427e)break;else _0x3f3283['push'](_0x3f3283['shift']());}catch(_0x4335ca){_0x3f3283['push'](_0x3f3283['shift']());}}}(_0x3e23,0x7326e));function _0x37dc(_0x5809f7,_0x415f8f){_0x5809f7=_0x5809f7-0x1c5;const _0x3e2379=_0x3e23();let _0x37dce9=_0x3e2379[_0x5809f7];return _0x37dce9;}import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x335597=_0x37dc,_0xb38c45={'YKAii':function(_0x59a9cf){return _0x59a9cf();},'fEnvh':'config.json'};return join(_0xb38c45[_0x335597(0x1cc)](getRangerDir),_0xb38c45[_0x335597(0x1d4)]);}export async function loadRangerConfig(){const _0x5c8eab=_0x37dc,_0x59eb41={'dfWSz':function(_0x3c54c2,_0x143077){return _0x3c54c2(_0x143077);},'DSyGo':function(_0x481c7c,_0x52c357,_0x4a2a63){return _0x481c7c(_0x52c357,_0x4a2a63);},'oNyah':'utf-8','AGblb':function(_0x1c4a9b,_0x2b8b7a){return _0x1c4a9b!==_0x2b8b7a;}},_0x416e02=getRangerConfigPath();if(!_0x59eb41[_0x5c8eab(0x1d6)](existsSync,_0x416e02))return{};try{const _0x3ae5c0=await _0x59eb41['DSyGo'](readFile,_0x416e02,_0x59eb41[_0x5c8eab(0x1d2)]),_0x10ff70=JSON['parse'](_0x3ae5c0);if(!_0x10ff70||_0x59eb41[_0x5c8eab(0x1c6)](typeof _0x10ff70,_0x5c8eab(0x1cb))||Array['isArray'](_0x10ff70))return{};const _0x2e005f={},_0x3789d3=_0x10ff70[_0x5c8eab(0x1ca)];return typeof _0x3789d3===_0x5c8eab(0x1c7)&&(_0x2e005f[_0x5c8eab(0x1ca)]=_0x3789d3),_0x2e005f;}catch(_0x372c90){const _0xdfa4cf=_0x372c90 instanceof Error?_0x372c90[_0x5c8eab(0x1d3)]:String(_0x372c90);return console[_0x5c8eab(0x1ce)](_0x5c8eab(0x1c8)+_0x416e02+':\x20'+_0xdfa4cf),{};}}function _0x3e23(){const _0x56585f=['291670hXTKHw','14498664MEycpW','1859860iVXmPc','oNyah','message','fEnvh','6396530UcWnlQ','dfWSz','6GuJxnQ','1759580shzKqL','AGblb','string','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','944694qooxMA','model','object','YKAii','1741348UemTYh','warn'];_0x3e23=function(){return _0x56585f;};return _0x3e23();}
@@ -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(_0x4d8fea,_0x53c459){const _0x493566=_0x3725,_0x51908e=_0x4d8fea();while(!![]){try{const _0x167ee0=-parseInt(_0x493566(0x197))/0x1*(-parseInt(_0x493566(0x19f))/0x2)+-parseInt(_0x493566(0x194))/0x3+parseInt(_0x493566(0x199))/0x4+-parseInt(_0x493566(0x190))/0x5*(parseInt(_0x493566(0x19d))/0x6)+parseInt(_0x493566(0x19a))/0x7+-parseInt(_0x493566(0x195))/0x8*(-parseInt(_0x493566(0x191))/0x9)+-parseInt(_0x493566(0x18d))/0xa;if(_0x167ee0===_0x53c459)break;else _0x51908e['push'](_0x51908e['shift']());}catch(_0x551c26){_0x51908e['push'](_0x51908e['shift']());}}}(_0x17ee,0x3fadb));function _0x3725(_0x2b6b8d,_0x4c8703){_0x2b6b8d=_0x2b6b8d-0x18c;const _0x17eeab=_0x17ee();let _0x37251e=_0x17eeab[_0x2b6b8d];return _0x37251e;}import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';function _0x17ee(){const _0x30fc78=['GbFUM','2405590PYaTTs','cwd','NuwRh','2795Korzfd','225cicJCr','utnEf','kPTLL','1409811qJXkZQ','123128DiLuiG','eEvHK','33oVcZoy','root','1786384IRJwrM','1510747gKnFsN','TddlZ','IxBLv','3954hZNZjL','BmLhU','17728DIwDGH'];_0x17ee=function(){return _0x30fc78;};return _0x17ee();}export function getRangerRoot(){const _0x587f0a=_0x3725,_0x16a4de={'uhqkC':function(_0x5020ba,_0x538481){return _0x5020ba!==_0x538481;},'UpdWg':function(_0x343b2d,_0x3a4ed3){return _0x343b2d(_0x3a4ed3);},'eEvHK':'.ranger'};let _0x230016=process['cwd']();const _0x474aa4=parse(_0x230016)[_0x587f0a(0x198)];while(_0x16a4de['uhqkC'](_0x230016,_0x474aa4)){if(existsSync(join(_0x230016,'.ranger')))return _0x230016;_0x230016=dirname(_0x230016);}if(_0x16a4de['UpdWg'](existsSync,join(_0x474aa4,_0x16a4de[_0x587f0a(0x196)])))return _0x474aa4;const _0x433afe=findGitRoot();if(_0x433afe)return _0x433afe;return process['cwd']();}export function getRangerDir(){const _0x267497=_0x3725,_0x53444b={'LHLSp':function(_0x34b0d5,_0x3e7d69,_0x350b86){return _0x34b0d5(_0x3e7d69,_0x350b86);},'NuwRh':function(_0x35ff15){return _0x35ff15();}};return _0x53444b['LHLSp'](join,_0x53444b[_0x267497(0x18f)](getRangerRoot),'.ranger');}export function findGitRoot(){const _0x27befd=_0x3725,_0x43845c={'BmLhU':function(_0x4dedba,_0x52124b){return _0x4dedba!==_0x52124b;},'qcIvU':function(_0x382bc4,_0x3a3735){return _0x382bc4(_0x3a3735);},'TddlZ':function(_0x1c6330,_0x5316e5,_0x7d38c9){return _0x1c6330(_0x5316e5,_0x7d38c9);},'IxBLv':'.git','umoSY':function(_0x52d84c,_0x5a7cf5){return _0x52d84c(_0x5a7cf5);},'kPTLL':function(_0x3100d5,_0x458681,_0x4076e8){return _0x3100d5(_0x458681,_0x4076e8);}};let _0x5db82b=process[_0x27befd(0x18e)]();const _0x4561ed=parse(_0x5db82b)[_0x27befd(0x198)];while(_0x43845c[_0x27befd(0x19e)](_0x5db82b,_0x4561ed)){if(_0x43845c['qcIvU'](existsSync,_0x43845c[_0x27befd(0x19b)](join,_0x5db82b,_0x43845c['IxBLv'])))return _0x5db82b;_0x5db82b=dirname(_0x5db82b);}if(_0x43845c['umoSY'](existsSync,_0x43845c[_0x27befd(0x193)](join,_0x4561ed,_0x43845c[_0x27befd(0x19c)])))return _0x4561ed;return null;}export function getRangerHomeDir(){const _0x591b55=_0x3725,_0x387c33={'utnEf':function(_0x5e68b8){return _0x5e68b8();},'GbFUM':'.ranger'};return join(_0x387c33[_0x591b55(0x192)](homedir),_0x387c33[_0x591b55(0x18c)]);}
@@ -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 _0x5cbc96=_0x3dda;function _0x5016(){const _0x36a911=['TXIdZ','73010mNBGzV','2344IZgiRG','\x20--json','toString','292dSVJzZ','binaryPath','argv','\x0astdout:\x20','IsKNW','kill','close','@ranger-testing/rangerwright','\x20signal=','WAIyU','2391612hfMLdj','utf-8','timeoutMs','env','4023uEJGbW','parse','qQmBi','370407dZaVxU','SIGKILL','cwd','error','configPath','rdVfU','timed\x20out\x20after\x20','SYKze','2248502auppLo','sessionId','subcommand','\x20does\x20not\x20expose\x20a\x20','EuYiF','pipe','2330TFVBvN','bin','stderr','7ahEvxj','SBcEK','socketPath','aWAvR','1273566ebAOsL','command','data','LLjrh','30591adVTyo','args','unknown','mrWKK'];_0x5016=function(){return _0x36a911;};return _0x5016();}(function(_0x550566,_0x1baa23){const _0x5a9685=_0x3dda,_0x3655d1=_0x550566();while(!![]){try{const _0x41747e=parseInt(_0x5a9685(0x1e8))/0x1+-parseInt(_0x5a9685(0x1f0))/0x2+parseInt(_0x5a9685(0x1ca))/0x3+parseInt(_0x5a9685(0x1d7))/0x4*(parseInt(_0x5a9685(0x1d3))/0x5)+-parseInt(_0x5a9685(0x1e1))/0x6*(-parseInt(_0x5a9685(0x1c6))/0x7)+parseInt(_0x5a9685(0x1d4))/0x8*(parseInt(_0x5a9685(0x1e5))/0x9)+parseInt(_0x5a9685(0x1c3))/0xa*(-parseInt(_0x5a9685(0x1ce))/0xb);if(_0x41747e===_0x1baa23)break;else _0x3655d1['push'](_0x3655d1['shift']());}catch(_0x32d4f7){_0x3655d1['push'](_0x3655d1['shift']());}}}(_0x5016,0x96ef0));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=_0x5cbc96(0x1de);export const RANGERWRIGHT_CLI_BINARY='rangerwright';function readPackageJson(_0x24bf2b){const _0x12e52b=_0x5cbc96,_0x55018d={'ZcLsK':'object'},_0xea8e8=readFileSync(_0x24bf2b,_0x12e52b(0x1e2)),_0x1b51c1=JSON[_0x12e52b(0x1e6)](_0xea8e8);if(!_0x1b51c1||typeof _0x1b51c1!==_0x55018d['ZcLsK'])return{};return _0x1b51c1;}export function resolveRangerwrightCliBinary(){const _0x1f8671=_0x5cbc96,_0x3f9a79={'GjbMs':function(_0x38187e,_0x55d4f5,_0x4723b5){return _0x38187e(_0x55d4f5,_0x4723b5);},'TXIdZ':'string','SWoGm':function(_0x5d9605,_0x1c516c,_0x61064a){return _0x5d9605(_0x1c516c,_0x61064a);}},_0x4b5e18=createRequire(process[_0x1f8671(0x1d9)][0x1]||_0x3f9a79['GjbMs'](join,process[_0x1f8671(0x1ea)](),'package.json')),_0x435062=_0x4b5e18['resolve'](RANGERWRIGHT_CLI_PACKAGE+'/package.json'),_0x326ea1=dirname(_0x435062),_0x1e7aad=readPackageJson(_0x435062),_0x2f293a=typeof _0x1e7aad[_0x1f8671(0x1c4)]===_0x3f9a79[_0x1f8671(0x1d2)]?_0x1e7aad[_0x1f8671(0x1c4)]:_0x1e7aad['bin']?.[RANGERWRIGHT_CLI_BINARY];if(!_0x2f293a)throw new Error(RANGERWRIGHT_CLI_PACKAGE+_0x1f8671(0x1c0)+RANGERWRIGHT_CLI_BINARY+'\x20binary');return _0x3f9a79['SWoGm'](join,_0x326ea1,_0x2f293a);}export function buildRangerwrightCliEnv(_0x9251d9){const _0x130797=_0x5cbc96;return{'RANGERWRIGHT_SESSION':_0x9251d9[_0x130797(0x1f1)],'RANGERWRIGHT_CONFIG':_0x9251d9[_0x130797(0x1ec)],'RANGERWRIGHT_ARTIFACT_DIR':_0x9251d9['artifactDir'],..._0x9251d9[_0x130797(0x1c8)]?{'RANGERWRIGHT_SOCKET_PATH':_0x9251d9['socketPath']}:{}};}export function applyRangerwrightCliEnv(_0x2ac5b5,_0x2ef46d){const _0x5e07bc=_0x5cbc96,_0x4d3808={'rdVfU':function(_0x2864ca,_0x2a7b91){return _0x2864ca(_0x2a7b91);}};Object['assign'](_0x2ac5b5,_0x4d3808[_0x5e07bc(0x1ed)](buildRangerwrightCliEnv,_0x2ef46d));}export function buildRangerwrightCliCommandPrefix(_0x981307=resolveRangerwrightCliBinary()){const _0x46600e=_0x5cbc96;return quoteShellArg(_0x981307)+_0x46600e(0x1d5);}function _0x3dda(_0x1c0ab7,_0x1f081f){_0x1c0ab7=_0x1c0ab7-0x1c0;const _0x501678=_0x5016();let _0x3ddaef=_0x501678[_0x1c0ab7];return _0x3ddaef;}function getRangerwrightSubcommand(_0x180a7b){const _0x16b74a=_0x5cbc96;return _0x180a7b[0x0]??_0x16b74a(0x1d0);}export function buildRangerwrightCliInvocation(_0x2db574,_0x57be4e){const _0x113093=_0x5cbc96,_0x155c82={'VsWyu':function(_0x3d425d){return _0x3d425d();},'LLjrh':'--json'},_0x439691=_0x2db574[_0x113093(0x1d8)]??_0x155c82['VsWyu'](resolveRangerwrightCliBinary),_0x376228=[_0x155c82[_0x113093(0x1cd)],..._0x57be4e];return{'command':_0x439691,'args':_0x376228,'shellCommand':[quoteShellArg(_0x439691),'--json',..._0x57be4e['map'](quoteShellArg)]['join']('\x20'),'subcommand':getRangerwrightSubcommand(_0x57be4e)};}function truncateOutput(_0x19cda1,_0xea5f22=0x7d0){const _0x5c3fb7=_0x5cbc96,_0x3e6e29={'IsKNW':function(_0x18ef1a,_0x42437b){return _0x18ef1a+_0x42437b;},'GobDW':'...'};return _0x19cda1['length']>_0xea5f22?_0x3e6e29[_0x5c3fb7(0x1db)](_0x19cda1['slice'](0x0,_0xea5f22),_0x3e6e29['GobDW']):_0x19cda1;}export async function runRangerwrightCliCommand(_0x2dc607){const _0x1f73cd=_0x5cbc96,_0xddff1d={'dEpfE':'SIGTERM','APCVf':function(_0x396703,_0x3f592e){return _0x396703(_0x3f592e);},'SYKze':'null','mrWKK':function(_0x48ca9d,_0x17df63){return _0x48ca9d(_0x17df63);},'qQmBi':function(_0x587506,_0x3ec468,_0xa14fbc){return _0x587506(_0x3ec468,_0xa14fbc);},'EuYiF':function(_0x223e66,_0x4fd2be){return _0x223e66(_0x4fd2be);}},_0x1bbd4a=buildRangerwrightCliInvocation(_0x2dc607,_0x2dc607['commandArgs']),_0x5d04ae={..._0x2dc607[_0x1f73cd(0x1e4)]??process[_0x1f73cd(0x1e4)],..._0xddff1d[_0x1f73cd(0x1c1)](buildRangerwrightCliEnv,_0x2dc607)};return new Promise((_0x2d41e9,_0xbb227a)=>{const _0xd56a53=_0x1f73cd,_0x25fc3a={'gEktx':function(_0x23e54e,_0x3cc35c){return _0x23e54e===_0x3cc35c;},'WAIyU':function(_0x54b591,_0x63aca8){return _0xddff1d['APCVf'](_0x54b591,_0x63aca8);},'lfQqq':_0xddff1d[_0xd56a53(0x1ef)],'BWLqx':function(_0x27b4c4,_0x1adfe9){return _0x27b4c4??_0x1adfe9;},'SBcEK':function(_0x1425d6,_0x335264){return _0x1425d6(_0x335264);},'aWAvR':function(_0x24c161,_0x410051){const _0x17b950=_0xd56a53;return _0xddff1d[_0x17b950(0x1d1)](_0x24c161,_0x410051);}},_0x5e99da=spawn(_0x1bbd4a[_0xd56a53(0x1cb)],_0x1bbd4a[_0xd56a53(0x1cf)],{'cwd':_0x2dc607['cwd'],'env':_0x5d04ae,'stdio':['ignore',_0xd56a53(0x1c2),'pipe']});let _0x2bfd93='',_0x37c6c2='',_0x318c37=![];const _0x405721=_0x2dc607['timeoutMs']&&_0x2dc607[_0xd56a53(0x1e3)]>0x0?_0xddff1d[_0xd56a53(0x1e7)](setTimeout,()=>{_0x318c37=!![],_0x5e99da['kill'](_0xddff1d['dEpfE']),setTimeout(()=>{const _0x5cfce7=_0x3dda;try{_0x5e99da[_0x5cfce7(0x1dc)](_0x5cfce7(0x1e9));}catch{}},0x3e8);},_0x2dc607[_0xd56a53(0x1e3)]):null;_0x5e99da['stdout']?.['on'](_0xd56a53(0x1cc),_0x2ce504=>{const _0x411c19=_0xd56a53;_0x2bfd93+=_0x2ce504[_0x411c19(0x1d6)]();}),_0x5e99da[_0xd56a53(0x1c5)]?.['on']('data',_0xf5b5bd=>{_0x37c6c2+=_0xf5b5bd['toString']();}),_0x5e99da['on'](_0xd56a53(0x1eb),_0x19b0b5=>{if(_0x405721)clearTimeout(_0x405721);_0xbb227a(_0x19b0b5);}),_0x5e99da['on'](_0xd56a53(0x1dd),(_0x293343,_0x375cb0)=>{const _0x522b7d=_0xd56a53;if(_0x405721)clearTimeout(_0x405721);if(_0x25fc3a['gEktx'](_0x293343,0x0)){_0x25fc3a[_0x522b7d(0x1e0)](_0x2d41e9,{'stdout':_0x2bfd93,'stderr':_0x37c6c2,'invocation':_0x1bbd4a});return;}const _0x3b1cb6=_0x318c37?_0x522b7d(0x1ee)+_0x2dc607['timeoutMs']+'ms':'exited\x20with\x20code='+(_0x293343??_0x25fc3a['lfQqq'])+_0x522b7d(0x1df)+_0x25fc3a['BWLqx'](_0x375cb0,'null');_0x25fc3a[_0x522b7d(0x1c7)](_0xbb227a,new Error('rangerwright-cli\x20'+_0x1bbd4a[_0x522b7d(0x1f2)]+'\x20'+_0x3b1cb6+_0x522b7d(0x1da)+truncateOutput(_0x2bfd93)+'\x0astderr:\x20'+_0x25fc3a[_0x522b7d(0x1c9)](truncateOutput,_0x37c6c2)));});});}export function parseRangerwrightCliCommand(_0x33ff02){const _0x2d111d=_0x33ff02['match'](/(?:^|\s)(?:"[^"]*rangerwright(?:\/build\/cli\.js)?"|'[^']*rangerwright(?:\/build\/cli\.js)?'|\S*rangerwright(?:\/build\/cli\.js)?)(?:\s+--json)?\s+([a-z-]+)/);return _0x2d111d?.[0x1]??null;}