@ranger-testing/ranger-cli 2.5.4 → 3.0.1-alpha.55b593b-29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/README.md +36 -14
  2. package/build/cli.js +1 -1
  3. package/build/commands/addEnv.js +1 -1
  4. package/build/commands/authEncrypt.js +1 -1
  5. package/build/commands/clean.js +1 -1
  6. package/build/commands/config.js +1 -1
  7. package/build/commands/deleteProfile.js +1 -0
  8. package/build/commands/env.js +1 -1
  9. package/build/commands/feature.js +1 -1
  10. package/build/commands/hook.js +1 -1
  11. package/build/commands/hooks/autoPrompt.js +1 -1
  12. package/build/commands/hooks/disable.js +1 -1
  13. package/build/commands/hooks/enable.js +1 -1
  14. package/build/commands/hooks/exitPlanMode.js +1 -1
  15. package/build/commands/hooks/index.js +1 -1
  16. package/build/commands/hooks/output.js +1 -1
  17. package/build/commands/hooks/planReminder.js +1 -1
  18. package/build/commands/hooks/planStart.js +1 -1
  19. package/build/commands/hooks/postEdit.js +1 -1
  20. package/build/commands/hooks/preCompact.js +1 -1
  21. package/build/commands/hooks/sessionEnd.js +1 -1
  22. package/build/commands/hooks/sessionStart.js +1 -1
  23. package/build/commands/hooks/stopHook.js +1 -1
  24. package/build/commands/index.js +1 -1
  25. package/build/commands/login.js +1 -1
  26. package/build/commands/mcpBootstrap.js +1 -1
  27. package/build/commands/migrateProfile.js +1 -0
  28. package/build/commands/setup/claude.js +1 -1
  29. package/build/commands/setup/opencode.js +1 -1
  30. package/build/commands/setupCi.js +1 -1
  31. package/build/commands/skillup.js +1 -1
  32. package/build/commands/start.js +1 -1
  33. package/build/commands/status.js +1 -1
  34. package/build/commands/update.js +1 -1
  35. package/build/commands/updateEnv.js +1 -1
  36. package/build/commands/useEnv.js +1 -1
  37. package/build/commands/utils/activeProfile.js +1 -1
  38. package/build/commands/utils/agentEnv.js +1 -1
  39. package/build/commands/utils/browserSessionsApi.js +1 -1
  40. package/build/commands/utils/claudeConfig.js +1 -1
  41. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  42. package/build/commands/utils/claudePlugin.js +1 -1
  43. package/build/commands/utils/cloudProfile.js +1 -0
  44. package/build/commands/utils/cloudProfileSession.js +1 -0
  45. package/build/commands/utils/crypto.js +1 -1
  46. package/build/commands/utils/desirePathLog.js +1 -1
  47. package/build/commands/utils/deviceAuth.js +1 -1
  48. package/build/commands/utils/environment.js +1 -1
  49. package/build/commands/utils/featureApi.js +1 -1
  50. package/build/commands/utils/fixWebmDuration.js +1 -1
  51. package/build/commands/utils/gitTracked.js +1 -0
  52. package/build/commands/utils/keychain.js +1 -1
  53. package/build/commands/utils/legacyWarning.js +1 -0
  54. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  55. package/build/commands/utils/matchAuthEnvironment.js +1 -0
  56. package/build/commands/utils/mcpImageBase64.js +1 -1
  57. package/build/commands/utils/model.js +1 -1
  58. package/build/commands/utils/novaActCli.js +1 -0
  59. package/build/commands/utils/opencodeConfig.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 -0
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/resolveProfileContext.js +1 -0
  67. package/build/commands/utils/resolveProfileUrl.js +1 -0
  68. package/build/commands/utils/retry.js +1 -1
  69. package/build/commands/utils/sessionCache.js +1 -1
  70. package/build/commands/utils/settings.js +1 -1
  71. package/build/commands/utils/skillContent.js +1 -1
  72. package/build/commands/utils/skills.js +1 -1
  73. package/build/commands/utils/stitchWebmFiles.js +1 -1
  74. package/build/commands/utils/telemetry.js +1 -1
  75. package/build/commands/utils/tokenRefresh.js +1 -1
  76. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  77. package/build/commands/utils/userApi.js +1 -1
  78. package/build/commands/utils/version.js +1 -1
  79. package/build/commands/verifyFeature.js +1 -1
  80. package/build/commands/verifyFeatureCli.js +1 -1
  81. package/build/commands/verifyFeatureNovaCli.js +1 -0
  82. package/build/skills/ranger/SKILL.md +36 -6
  83. package/build/skills/ranger/create.md +19 -0
  84. package/build/skills/ranger/verify.md +46 -7
  85. package/package.json +8 -3
@@ -1 +1 @@
1
- (function(_0xe33a70,_0x58f016){const _0x1275ba=_0x21fc,_0x433cca=_0xe33a70();while(!![]){try{const _0x5a38c7=parseInt(_0x1275ba(0x165))/0x1*(parseInt(_0x1275ba(0x168))/0x2)+-parseInt(_0x1275ba(0x161))/0x3+-parseInt(_0x1275ba(0x162))/0x4+-parseInt(_0x1275ba(0x16f))/0x5*(parseInt(_0x1275ba(0x173))/0x6)+-parseInt(_0x1275ba(0x163))/0x7+parseInt(_0x1275ba(0x16d))/0x8+-parseInt(_0x1275ba(0x16a))/0x9*(-parseInt(_0x1275ba(0x164))/0xa);if(_0x5a38c7===_0x58f016)break;else _0x433cca['push'](_0x433cca['shift']());}catch(_0x441099){_0x433cca['push'](_0x433cca['shift']());}}}(_0x2c8f,0xd8f05));function _0x21fc(_0x2fbd85,_0x384d9a){_0x2fbd85=_0x2fbd85-0x161;const _0x2c8f61=_0x2c8f();let _0x21fc5a=_0x2c8f61[_0x2fbd85];return _0x21fc5a;}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x426656=_0x21fc,_0x4a3ed7={'mEqPo':function(_0x10d7e8,_0x5765d7){return _0x10d7e8+_0x5765d7;},'refBJ':_0x426656(0x170),'OBquM':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','XuvhW':_0x426656(0x177)},_0x5aaebc=_0x4a3ed7[_0x426656(0x176)](_0x426656(0x174)+_0x426656(0x167)+_0x4a3ed7[_0x426656(0x171)]+_0x426656(0x178)+_0x4a3ed7[_0x426656(0x166)]+_0x4a3ed7[_0x426656(0x172)]+_0x4a3ed7[_0x426656(0x172)],'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'),_0x4c63ed=_0x426656(0x16c);return _0x426656(0x169)+JSON['stringify'](_0x5aaebc)+_0x426656(0x16e)+JSON[_0x426656(0x16b)](_0x4c63ed)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x283789){const _0x3a18c4=_0x21fc;await _0x283789[_0x3a18c4(0x175)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}function _0x2c8f(){const _0x28f9df=['addInitScript','mEqPo','</div>','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','186102CjDnEU','2688076NqlvbN','2986473MrWpKY','1508470slPcAc','3469jFqODw','OBquM','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','526mkGnPf','\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','27YUTmsl','stringify','\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','13212040PJDicM',';\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','241780yeOvQp','<div\x20class=\x22ranger-banner__message\x22>','refBJ','XuvhW','120bfTXtK','<div\x20class=\x22ranger-banner__content\x22>'];_0x2c8f=function(){return _0x28f9df;};return _0x2c8f();}
1
+ function _0x4a8c(_0x5276e7,_0x30ee96){_0x5276e7=_0x5276e7-0x19b;const _0x4b26be=_0x4b26();let _0x4a8c2a=_0x4b26be[_0x5276e7];return _0x4a8c2a;}function _0x4b26(){const _0x24c713=['tYcyL','7949352XGdhKC','<div\x20class=\x22ranger-banner__content\x22>','\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','484671GDQcNo','</div>','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','3658627zmFkHw','fbyhw','19391706WThzcY','addInitScript','YGwgU','6AHwxpJ','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','4471432YmjioY','3whZTqX',';\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','1199925eqmtfU','1331914BPPyTA','stringify','JTZsA','<div\x20class=\x22ranger-banner__message\x22>'];_0x4b26=function(){return _0x24c713;};return _0x4b26();}(function(_0x1dbdcd,_0xb03f6e){const _0x5b0304=_0x4a8c,_0x35feb6=_0x1dbdcd();while(!![]){try{const _0x25960c=-parseInt(_0x5b0304(0x1a6))/0x1+-parseInt(_0x5b0304(0x19e))/0x2*(parseInt(_0x5b0304(0x19b))/0x3)+-parseInt(_0x5b0304(0x1b0))/0x4+parseInt(_0x5b0304(0x19d))/0x5+parseInt(_0x5b0304(0x1ae))/0x6*(-parseInt(_0x5b0304(0x1a9))/0x7)+parseInt(_0x5b0304(0x1a3))/0x8+parseInt(_0x5b0304(0x1ab))/0x9;if(_0x25960c===_0xb03f6e)break;else _0x35feb6['push'](_0x35feb6['shift']());}catch(_0x5a29ac){_0x35feb6['push'](_0x35feb6['shift']());}}}(_0x4b26,0x91c95));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x34ac53=_0x4a8c,_0x36b5fe={'tYcyL':function(_0x24750b,_0x2dc614){return _0x24750b+_0x2dc614;},'JTZsA':function(_0x4233a3,_0x245085){return _0x4233a3+_0x245085;},'YGwgU':function(_0x239440,_0x5c4399){return _0x239440+_0x5c4399;},'UuoOL':_0x34ac53(0x1a4),'JxYkO':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','YuTBZ':_0x34ac53(0x1a1),'GTHmq':_0x34ac53(0x1a7),'fbyhw':_0x34ac53(0x1a8)},_0x326da0=_0x36b5fe[_0x34ac53(0x1a2)](_0x36b5fe[_0x34ac53(0x1a2)](_0x36b5fe[_0x34ac53(0x1a0)](_0x36b5fe[_0x34ac53(0x1ad)](_0x36b5fe['UuoOL'],_0x36b5fe['JxYkO']),_0x36b5fe['YuTBZ']),'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>')+_0x34ac53(0x1af),_0x36b5fe['GTHmq'])+_0x34ac53(0x1a7)+_0x36b5fe[_0x34ac53(0x1aa)],_0x4a2b56=_0x34ac53(0x1a5);return'\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20'+JSON[_0x34ac53(0x19f)](_0x326da0)+_0x34ac53(0x19c)+JSON['stringify'](_0x4a2b56)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x55caac){const _0x2ea706=_0x4a8c;await _0x55caac[_0x2ea706(0x1ac)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
@@ -0,0 +1 @@
1
+ function _0x9522(_0x18589b,_0x295f89){_0x18589b=_0x18589b-0xe7;const _0x3c3db2=_0x3c3d();let _0x9522a0=_0x3c3db2[_0x18589b];return _0x9522a0;}(function(_0x3e294d,_0x5b6d61){const _0x561bb6=_0x9522,_0x1b3a28=_0x3e294d();while(!![]){try{const _0x1effa7=-parseInt(_0x561bb6(0x104))/0x1+parseInt(_0x561bb6(0x102))/0x2*(parseInt(_0x561bb6(0x101))/0x3)+parseInt(_0x561bb6(0xec))/0x4+-parseInt(_0x561bb6(0xfd))/0x5+parseInt(_0x561bb6(0xeb))/0x6+-parseInt(_0x561bb6(0xed))/0x7*(parseInt(_0x561bb6(0xe9))/0x8)+parseInt(_0x561bb6(0x10b))/0x9*(-parseInt(_0x561bb6(0xef))/0xa);if(_0x1effa7===_0x5b6d61)break;else _0x1b3a28['push'](_0x1b3a28['shift']());}catch(_0xfa7c0a){_0x1b3a28['push'](_0x1b3a28['shift']());}}}(_0x3c3d,0x3e858));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 _0x2a50f8=_0x9522,_0x553cb5={'xeSJW':function(_0xb12088,_0x490277,_0x34ee64){return _0xb12088(_0x490277,_0x34ee64);},'DAbzY':_0x2a50f8(0xf7)};return _0x553cb5['xeSJW'](join,getRangerHomeDir(),_0x553cb5[_0x2a50f8(0xea)]);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x4bf238=_0x9522,_0x20875c={'YIiNs':function(_0x2f3a6e){return _0x2f3a6e();},'GMLDT':'utf-8','KdGGo':function(_0x26b98c,_0x20c921){return _0x26b98c!==_0x20c921;},'cvTHI':function(_0x1df589,_0x204b70){return _0x1df589===_0x204b70;},'JjxWN':function(_0x1c3e21){return _0x1c3e21();}},_0x4c4bf9=getProjectsConfigPath();if(!existsSync(_0x4c4bf9))return _0x20875c['YIiNs'](emptyConfig);let _0x256db8;try{_0x256db8=readFileSync(_0x4c4bf9,_0x20875c['GMLDT']);}catch(_0x540ada){const _0x2563c7=_0x540ada instanceof Error?_0x540ada['message']:String(_0x540ada);return console['warn']('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x4c4bf9+':\x20'+_0x2563c7+'.\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}let _0x37c6a1;try{_0x37c6a1=JSON['parse'](_0x256db8);}catch(_0x25e01b){const _0x39d785=_0x25e01b instanceof Error?_0x25e01b[_0x4bf238(0xe7)]:String(_0x25e01b);return console['warn'](_0x4bf238(0xf5)+_0x4c4bf9+_0x4bf238(0xf8)+_0x39d785+').\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}if(!_0x37c6a1||_0x20875c['KdGGo'](typeof _0x37c6a1,'object')||Array['isArray'](_0x37c6a1)||_0x37c6a1[_0x4bf238(0xf3)]!==CURRENT_VERSION||_0x20875c['KdGGo'](typeof _0x37c6a1[_0x4bf238(0x10c)],'object')||_0x20875c['cvTHI'](_0x37c6a1['projects'],null)||Array['isArray'](_0x37c6a1[_0x4bf238(0x10c)]))return console[_0x4bf238(0xfa)](_0x4bf238(0xf5)+_0x4c4bf9+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x20875c['JjxWN'](emptyConfig);return _0x37c6a1;}export function writeProjectsConfig(_0xa45fa2){const _0x18bf84=_0x9522,_0x3e4815={'TrPWr':function(_0x4a2db3){return _0x4a2db3();},'ASbzk':function(_0x172a93,_0x17f80f){return _0x172a93(_0x17f80f);},'omLwQ':function(_0x5a6984,_0x31126e){return _0x5a6984+_0x31126e;},'HSeTN':function(_0x272880,_0x1239ba,_0x472302){return _0x272880(_0x1239ba,_0x472302);}},_0x4c50e2=_0x3e4815['TrPWr'](getProjectsConfigPath),_0x5cafe7=dirname(_0x4c50e2);!_0x3e4815['ASbzk'](existsSync,_0x5cafe7)&&mkdirSync(_0x5cafe7,{'recursive':!![]});const _0x3f419a=_0x4c50e2+'.'+process['pid']+'.'+Date['now']()+'.tmp',_0x32362e=_0x3e4815[_0x18bf84(0x109)](JSON['stringify'](_0xa45fa2,null,0x2),'\x0a');try{writeFileSync(_0x3f419a,_0x32362e,{'encoding':_0x18bf84(0xe8),'mode':0x180}),_0x3e4815[_0x18bf84(0xf6)](renameSync,_0x3f419a,_0x4c50e2);}catch(_0x294d03){try{existsSync(_0x3f419a)&&unlinkSync(_0x3f419a);}catch{}throw _0x294d03;}}export function readProfileOverrides(_0x18d518,_0x5e24a1){const _0xf10b55=_0x9522,_0x2a2ca3=readProjectsConfig(),_0x182eff=_0x2a2ca3['projects'][_0x18d518];if(!_0x182eff||!_0x182eff[_0xf10b55(0xfe)])return null;const _0x105969=_0x182eff['profiles'][_0x5e24a1];if(!_0x105969||!_0x105969['settings'])return null;return _0x105969['settings']??null;}function _0x3c3d(){const _0x52ea05=['DAbzY','2301816VoPnlU','1328180KlFmWJ','21yQTAOW','length','14530gpmOIq','NhHhr','split','dvbik','version','MieQH','[ranger]\x20Warning:\x20','HSeTN','projects.json','\x20is\x20not\x20valid\x20JSON\x20(','ZHNIu','warn','settings','keys','117040YCtyqG','profiles','gqjyw','isArray','3rwVcpG','130142BAhcPR','hUqmn','282777eOfRFB','SqXvz','lkTJR','lastProfile','headers','omLwQ','xzXoK','765tzxfLs','projects','message','utf-8','253264OHNIFm'];_0x3c3d=function(){return _0x52ea05;};return _0x3c3d();}export function setProfileOverride(_0xe3e8d3,_0x3d1e9e,_0x5163c3,_0x182c4e){const _0x3e5aee=_0x9522,_0x1571da={'JIDJi':function(_0x4dc83b){return _0x4dc83b();}};if(!_0x5163c3)throw new Error('keyPath\x20is\x20required');const _0x4dddd4=_0x1571da['JIDJi'](readProjectsConfig),_0x52242b=_0x4dddd4[_0x3e5aee(0x10c)][_0xe3e8d3]??={},_0x28b2bb=_0x52242b['profiles']??={},_0x40e034=_0x28b2bb[_0x3d1e9e]??={},_0x45b73e=_0x40e034['settings']??={};setByKeyPath(_0x45b73e,_0x5163c3,_0x182c4e),writeProjectsConfig(_0x4dddd4);}export function unsetProfileOverride(_0x494431,_0x3a5853,_0x2b3a7b){const _0xd633d1=_0x9522,_0xc15997={'aaqkK':'keyPath\x20is\x20required','xzXoK':function(_0x9c8354,_0x20e384,_0x464152){return _0x9c8354(_0x20e384,_0x464152);}};if(!_0x2b3a7b)throw new Error(_0xc15997['aaqkK']);const _0x33e393=readProjectsConfig(),_0xe7638=_0x33e393['projects'][_0x494431];if(!_0xe7638?.[_0xd633d1(0xfe)])return![];const _0x5d97ff=_0xe7638[_0xd633d1(0xfe)][_0x3a5853];if(!_0x5d97ff?.[_0xd633d1(0xfb)])return![];const _0x3b99a0=_0xc15997[_0xd633d1(0x10a)](deleteByKeyPath,_0x5d97ff['settings'],_0x2b3a7b);if(!_0x3b99a0)return![];return writeProjectsConfig(_0x33e393),!![];}export function resetProfileOverrides(_0x3b3d19,_0x5e0df9){const _0x396587=_0x9522,_0x48ee78={'lZwTA':function(_0xee35f3){return _0xee35f3();},'SqXvz':function(_0x48edb1,_0x2eec7d){return _0x48edb1 in _0x2eec7d;},'HJqCg':function(_0x299983,_0x59a198){return _0x299983===_0x59a198;}},_0x43b8ed=_0x48ee78['lZwTA'](readProjectsConfig),_0x1d5971=_0x43b8ed['projects'][_0x3b3d19];if(!_0x1d5971?.[_0x396587(0xfe)])return;if(!_0x48ee78[_0x396587(0x105)](_0x5e0df9,_0x1d5971[_0x396587(0xfe)]))return;delete _0x1d5971['profiles'][_0x5e0df9],_0x48ee78['HJqCg'](Object['keys'](_0x1d5971[_0x396587(0xfe)])['length'],0x0)&&(!_0x1d5971['lastProfile']?delete _0x43b8ed['projects'][_0x3b3d19]:_0x1d5971['profiles']={}),writeProjectsConfig(_0x43b8ed);}export function readLastProfile(_0x1633f1){const _0x3ed691=_0x9522,_0x3e866f={'fZnaY':function(_0x42a21f){return _0x42a21f();}},_0x3412c0=_0x3e866f['fZnaY'](readProjectsConfig),_0x11259e=_0x3412c0[_0x3ed691(0x10c)][_0x1633f1];return _0x11259e?.['lastProfile']??null;}export function writeLastProfile(_0x3eff8f,_0x4da9c6){const _0x561319=_0x9522,_0x5c8ff4={'NhHhr':function(_0x2f5125,_0x3e3a68){return _0x2f5125(_0x3e3a68);}},_0x795ff=readProjectsConfig(),_0x1081fd=_0x795ff['projects'][_0x3eff8f]??={};_0x1081fd[_0x561319(0x107)]=_0x4da9c6,_0x5c8ff4[_0x561319(0xf0)](writeProjectsConfig,_0x795ff);}export function clearLastProfile(_0xc6c21c,_0x4a60ce){const _0x465a04=_0x9522,_0x27db48={'MieQH':function(_0x1aad61,_0x92466b){return _0x1aad61===_0x92466b;}},_0x51a63a=readProjectsConfig(),_0xe718dc=_0x51a63a[_0x465a04(0x10c)][_0xc6c21c];if(!_0xe718dc||_0xe718dc['lastProfile']!==_0x4a60ce)return![];return delete _0xe718dc[_0x465a04(0x107)],(!_0xe718dc['profiles']||_0x27db48[_0x465a04(0xf4)](Object[_0x465a04(0xfc)](_0xe718dc['profiles'])['length'],0x0))&&delete _0x51a63a[_0x465a04(0x10c)][_0xc6c21c],writeProjectsConfig(_0x51a63a),!![];}export function mergeCloudProfileSettings(_0x113b9d,_0x599a6c){const _0x2b97f5=_0x9522,_0x545cb5={'GPlLq':function(_0x6c3178,_0x45bbb6){return _0x6c3178??_0x45bbb6;},'EeJDH':function(_0x4b7c17,_0x29a3ba){return _0x4b7c17===_0x29a3ba;},'ttzbh':function(_0x4c5ed3,_0x179c11){return _0x4c5ed3===_0x179c11;},'vgIjW':'setupHeaders','hUqmn':function(_0xd94e40,_0x387ce2){return _0xd94e40(_0x387ce2);},'Qhoyl':function(_0xa3a7dc,_0x2db145){return _0xa3a7dc===_0x2db145;},'dekQz':function(_0x5373be,_0x1a4bd0){return _0x5373be!==_0x1a4bd0;}},_0x6f638e={..._0x545cb5['GPlLq'](_0x113b9d,{})};if(!_0x599a6c)return _0x6f638e;for(const [_0x1e1ba4,_0xf77379]of Object['entries'](_0x599a6c)){if(_0x545cb5['EeJDH'](_0xf77379,undefined))continue;if(_0x545cb5['ttzbh'](_0xf77379,null)){delete _0x6f638e[_0x1e1ba4];continue;}if(_0x1e1ba4===_0x2b97f5(0x108)||_0x1e1ba4===_0x545cb5['vgIjW']){const _0xf100d3=_0x545cb5[_0x2b97f5(0x103)](asRecord,_0x6f638e[_0x1e1ba4])??{},_0x39c21f=asRecord(_0xf77379);if(!_0x39c21f){_0x6f638e[_0x1e1ba4]=_0xf77379;continue;}const _0x3a833b={..._0xf100d3};for(const [_0x52b979,_0x497cb3]of Object['entries'](_0x39c21f)){if(_0x545cb5['Qhoyl'](_0x497cb3,null))delete _0x3a833b[_0x52b979];else _0x545cb5['dekQz'](_0x497cb3,undefined)&&(_0x3a833b[_0x52b979]=_0x497cb3);}_0x6f638e[_0x1e1ba4]=_0x3a833b;continue;}_0x6f638e[_0x1e1ba4]=_0xf77379;}return _0x6f638e;}function asRecord(_0x34230a){const _0x397950=_0x9522,_0x2c7978={'ZHNIu':function(_0x51a24f,_0x2fbb56){return _0x51a24f===_0x2fbb56;}};return _0x34230a&&_0x2c7978[_0x397950(0xf9)](typeof _0x34230a,'object')&&!Array['isArray'](_0x34230a)?_0x34230a:undefined;}function setByKeyPath(_0xf82199,_0x5a84a8,_0x530df4){const _0x4eacf6=_0x9522,_0x1722df={'oBnEY':function(_0x3cd742,_0x2ea096){return _0x3cd742<_0x2ea096;},'lkTJR':function(_0x56a883,_0x472dcd){return _0x56a883-_0x472dcd;},'YpOYD':'object','dvbik':function(_0x2e9044,_0x45da9b){return _0x2e9044-_0x45da9b;}},_0x44fdf0=_0x5a84a8['split']('.');let _0x1a8e97=_0xf82199;for(let _0x167f1f=0x0;_0x1722df['oBnEY'](_0x167f1f,_0x1722df[_0x4eacf6(0x106)](_0x44fdf0['length'],0x1));_0x167f1f++){const _0x4922c5=_0x44fdf0[_0x167f1f],_0x56cede=_0x1a8e97[_0x4922c5];(!_0x56cede||typeof _0x56cede!==_0x1722df['YpOYD']||Array['isArray'](_0x56cede))&&(_0x1a8e97[_0x4922c5]={}),_0x1a8e97=_0x1a8e97[_0x4922c5];}_0x1a8e97[_0x44fdf0[_0x1722df[_0x4eacf6(0xf2)](_0x44fdf0['length'],0x1)]]=_0x530df4;}function deleteByKeyPath(_0x22b11e,_0x385cb1){const _0x75d70d=_0x9522,_0x155aaf={'naBCE':function(_0x2fa5b8,_0x541d38){return _0x2fa5b8<_0x541d38;},'gqjyw':function(_0x5aa56e,_0x3218d2){return _0x5aa56e-_0x3218d2;}},_0x739a89=_0x385cb1[_0x75d70d(0xf1)]('.');let _0x34acb8=_0x22b11e;for(let _0xceb513=0x0;_0x155aaf['naBCE'](_0xceb513,_0x739a89['length']-0x1);_0xceb513++){const _0x535206=_0x739a89[_0xceb513],_0x124f5f=_0x34acb8[_0x535206];if(!_0x124f5f||typeof _0x124f5f!=='object'||Array[_0x75d70d(0x100)](_0x124f5f))return![];_0x34acb8=_0x124f5f;}const _0x437d68=_0x739a89[_0x155aaf[_0x75d70d(0xff)](_0x739a89[_0x75d70d(0xee)],0x1)];if(!(_0x437d68 in _0x34acb8))return![];return delete _0x34acb8[_0x437d68],!![];}
@@ -1 +1 @@
1
- (function(_0x4e0088,_0xa4d42b){const _0x5f0a83=_0x3004,_0x58fd53=_0x4e0088();while(!![]){try{const _0x1975d0=parseInt(_0x5f0a83(0xaa))/0x1*(-parseInt(_0x5f0a83(0x9f))/0x2)+-parseInt(_0x5f0a83(0xa1))/0x3+parseInt(_0x5f0a83(0xa7))/0x4+parseInt(_0x5f0a83(0xa6))/0x5+-parseInt(_0x5f0a83(0xa8))/0x6+-parseInt(_0x5f0a83(0xa0))/0x7*(-parseInt(_0x5f0a83(0x9e))/0x8)+parseInt(_0x5f0a83(0xa2))/0x9;if(_0x1975d0===_0xa4d42b)break;else _0x58fd53['push'](_0x58fd53['shift']());}catch(_0x28ad73){_0x58fd53['push'](_0x58fd53['shift']());}}}(_0x4711,0x4af12));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x520868=_0x3004,_0x384b54={'Ovzlf':function(_0x20d34c,_0x355a33,_0x416bdc){return _0x20d34c(_0x355a33,_0x416bdc);},'vWzGO':function(_0x2bbcf3){return _0x2bbcf3();},'yTcPc':_0x520868(0xad)};return _0x384b54[_0x520868(0xaf)](join,_0x384b54['vWzGO'](getRangerDir),_0x384b54[_0x520868(0xa5)]);}function _0x4711(){const _0xea8b63=['723uRDzvs','zLNQg','message','config.json','parse','Ovzlf','19840DDbNdO','1466PARHaM','1414SVKAac','828444ovEIiK','6401574VyuLhW','isArray','string','yTcPc','1094485sJpqLm','200200ptLgoj','2208744IBmNVY','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'];_0x4711=function(){return _0xea8b63;};return _0x4711();}function _0x3004(_0x6cae,_0x165585){_0x6cae=_0x6cae-0x9e;const _0x471191=_0x4711();let _0x30044d=_0x471191[_0x6cae];return _0x30044d;}export async function loadRangerConfig(){const _0x395bda=_0x3004,_0x368173={'zLNQg':'utf-8','KmzpZ':'object'},_0x24cf68=getRangerConfigPath();if(!existsSync(_0x24cf68))return{};try{const _0x1230d0=await readFile(_0x24cf68,_0x368173[_0x395bda(0xab)]),_0x4eac2a=JSON[_0x395bda(0xae)](_0x1230d0);if(!_0x4eac2a||typeof _0x4eac2a!==_0x368173['KmzpZ']||Array[_0x395bda(0xa3)](_0x4eac2a))return{};const _0x9fa577={},_0x4354c7=_0x4eac2a['model'];return typeof _0x4354c7===_0x395bda(0xa4)&&(_0x9fa577['model']=_0x4354c7),_0x9fa577;}catch(_0x3cf2bc){const _0x18f10b=_0x3cf2bc instanceof Error?_0x3cf2bc[_0x395bda(0xac)]:String(_0x3cf2bc);return console['warn'](_0x395bda(0xa9)+_0x24cf68+':\x20'+_0x18f10b),{};}}
1
+ (function(_0x3930db,_0x4d67e3){const _0x4314d0=_0x56a9,_0x36ef40=_0x3930db();while(!![]){try{const _0x20060a=parseInt(_0x4314d0(0xe7))/0x1*(parseInt(_0x4314d0(0xea))/0x2)+parseInt(_0x4314d0(0xe6))/0x3+parseInt(_0x4314d0(0xde))/0x4+-parseInt(_0x4314d0(0xe2))/0x5+-parseInt(_0x4314d0(0xeb))/0x6*(-parseInt(_0x4314d0(0xe4))/0x7)+parseInt(_0x4314d0(0xed))/0x8+-parseInt(_0x4314d0(0xef))/0x9;if(_0x20060a===_0x4d67e3)break;else _0x36ef40['push'](_0x36ef40['shift']());}catch(_0x473c99){_0x36ef40['push'](_0x36ef40['shift']());}}}(_0x487d,0x951da));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0x487d(){const _0x246e7e=['HHKRT','2513552qIJbwP','arVFE','16450740DpoKUU','parse','2359720HGtbbH','isArray','model','string','2027285pbNcwc','Skytb','7NHLYbn','message','2850117QnWISU','80591ZflaPo','object','tTUbk','2fYlsoQ','5456046XnZaEZ'];_0x487d=function(){return _0x246e7e;};return _0x487d();}import{getRangerDir}from'./rangerRoot.js';function _0x56a9(_0x17f590,_0x4d46b0){_0x17f590=_0x17f590-0xde;const _0x487d1b=_0x487d();let _0x56a9ce=_0x487d1b[_0x17f590];return _0x56a9ce;}export function getRangerConfigPath(){const _0x5abd92=_0x56a9,_0xed5a7c={'arVFE':function(_0x59e744,_0x1c6e76,_0x27a758){return _0x59e744(_0x1c6e76,_0x27a758);}};return _0xed5a7c[_0x5abd92(0xee)](join,getRangerDir(),'config.json');}export async function loadRangerConfig(){const _0x37a9c7=_0x56a9,_0x2fbddd={'Skytb':function(_0x315798){return _0x315798();},'TKxLs':function(_0x55d189,_0x467592){return _0x55d189(_0x467592);},'uXCJn':function(_0x680d9c,_0x185208,_0x136078){return _0x680d9c(_0x185208,_0x136078);},'tTUbk':_0x37a9c7(0xe8),'HHKRT':function(_0x572693,_0x2b9012){return _0x572693 instanceof _0x2b9012;},'wzeKW':function(_0x1c2e5a,_0x4bbf2f){return _0x1c2e5a(_0x4bbf2f);}},_0x5eb5b5=_0x2fbddd[_0x37a9c7(0xe3)](getRangerConfigPath);if(!_0x2fbddd['TKxLs'](existsSync,_0x5eb5b5))return{};try{const _0x1ece7b=await _0x2fbddd['uXCJn'](readFile,_0x5eb5b5,'utf-8'),_0x119577=JSON[_0x37a9c7(0xf0)](_0x1ece7b);if(!_0x119577||typeof _0x119577!==_0x2fbddd[_0x37a9c7(0xe9)]||Array[_0x37a9c7(0xdf)](_0x119577))return{};const _0x559b33={},_0x390745=_0x119577[_0x37a9c7(0xe0)];return typeof _0x390745===_0x37a9c7(0xe1)&&(_0x559b33['model']=_0x390745),_0x559b33;}catch(_0xeafe16){const _0x372ad2=_0x2fbddd[_0x37a9c7(0xec)](_0xeafe16,Error)?_0xeafe16[_0x37a9c7(0xe5)]:_0x2fbddd['wzeKW'](String,_0xeafe16);return console['warn']('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x5eb5b5+':\x20'+_0x372ad2),{};}}
@@ -1 +1 @@
1
- (function(_0x5469df,_0x1e34b9){const _0xd191b9=_0x2a87,_0x5ea5b3=_0x5469df();while(!![]){try{const _0x3a2091=-parseInt(_0xd191b9(0xa1))/0x1*(parseInt(_0xd191b9(0xa5))/0x2)+parseInt(_0xd191b9(0xab))/0x3+parseInt(_0xd191b9(0x9d))/0x4+parseInt(_0xd191b9(0xa4))/0x5+parseInt(_0xd191b9(0xa2))/0x6+-parseInt(_0xd191b9(0x9f))/0x7+-parseInt(_0xd191b9(0xa8))/0x8;if(_0x3a2091===_0x1e34b9)break;else _0x5ea5b3['push'](_0x5ea5b3['shift']());}catch(_0x3b8a0b){_0x5ea5b3['push'](_0x5ea5b3['shift']());}}}(_0x4535,0xc09d8));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x3ba3d4=_0x2a87,_0x5c62f6={'Tfgls':function(_0x55baba,_0x1e57f4){return _0x55baba(_0x1e57f4);}};let _0x22dfda=process['cwd']();const _0xde42ce=_0x5c62f6['Tfgls'](parse,_0x22dfda)['root'];while(_0x22dfda!==_0xde42ce){if(existsSync(join(_0x22dfda,'.ranger')))return _0x22dfda;_0x22dfda=dirname(_0x22dfda);}if(existsSync(join(_0xde42ce,_0x3ba3d4(0xa3))))return _0xde42ce;const _0xe11ea2=findGitRoot();if(_0xe11ea2)return _0xe11ea2;return process[_0x3ba3d4(0xa7)]();}function _0x4535(){const _0x2c19a9=['23874240zwvrjH','RBTWK','fyXIW','3731361rOkYlE','.git','5468576aLQxQs','xlnxu','742063vwTSJp','KAhur','25219KMlVVV','7111026MXKXJf','.ranger','3946355bwiUTL','56oTxmHY','root','cwd'];_0x4535=function(){return _0x2c19a9;};return _0x4535();}export function getRangerDir(){const _0x43791a={'ZIqos':function(_0x422036,_0x28e0b1,_0x293ef9){return _0x422036(_0x28e0b1,_0x293ef9);}};return _0x43791a['ZIqos'](join,getRangerRoot(),'.ranger');}function _0x2a87(_0x1cc7e3,_0x5a5a5e){_0x1cc7e3=_0x1cc7e3-0x9d;const _0x453553=_0x4535();let _0x2a8713=_0x453553[_0x1cc7e3];return _0x2a8713;}export function findGitRoot(){const _0x10bf1c=_0x2a87,_0x78c5cd={'gJSWe':function(_0x5a4027,_0x166428){return _0x5a4027(_0x166428);},'KAhur':function(_0x2eea52,_0x198813){return _0x2eea52!==_0x198813;},'fyXIW':function(_0xaee76c,_0x35820a){return _0xaee76c(_0x35820a);},'DSwgk':function(_0x52d4ad,_0x352ac6,_0x57ccb0){return _0x52d4ad(_0x352ac6,_0x57ccb0);},'RBTWK':function(_0x2e8c20,_0x3df15c){return _0x2e8c20(_0x3df15c);},'xlnxu':function(_0x45d08c,_0x10524d,_0x44deed){return _0x45d08c(_0x10524d,_0x44deed);},'kPHAI':_0x10bf1c(0xac)};let _0x51554f=process['cwd']();const _0xdb3719=_0x78c5cd['gJSWe'](parse,_0x51554f)[_0x10bf1c(0xa6)];while(_0x78c5cd[_0x10bf1c(0xa0)](_0x51554f,_0xdb3719)){if(_0x78c5cd[_0x10bf1c(0xaa)](existsSync,_0x78c5cd['DSwgk'](join,_0x51554f,'.git')))return _0x51554f;_0x51554f=_0x78c5cd['fyXIW'](dirname,_0x51554f);}if(_0x78c5cd[_0x10bf1c(0xa9)](existsSync,_0x78c5cd[_0x10bf1c(0x9e)](join,_0xdb3719,_0x78c5cd['kPHAI'])))return _0xdb3719;return null;}export function getRangerHomeDir(){const _0x5b210e=_0x2a87;return join(homedir(),_0x5b210e(0xa3));}
1
+ function _0x1740(_0x376093,_0xdb9270){_0x376093=_0x376093-0x101;const _0x3b1470=_0x3b14();let _0x1740ba=_0x3b1470[_0x376093];return _0x1740ba;}function _0x3b14(){const _0x2ef2aa=['854319BlAEoj','3469529nAJqBP','10741620GCheZq','tazog','QvGYI','932RxoEIG','9438BpFAil','15435824JLyElG','kYKXh','root','5902780hXtddp','.git','WYGOv','eJTjS','rKxOD','3831570tMJWSk','cwd','fvmMP','Ghxjs','.ranger'];_0x3b14=function(){return _0x2ef2aa;};return _0x3b14();}(function(_0xef8112,_0x100674){const _0x5f5736=_0x1740,_0x2c441e=_0xef8112();while(!![]){try{const _0x5c1fa2=parseInt(_0x5f5736(0x10b))/0x1+-parseInt(_0x5f5736(0x110))/0x2*(-parseInt(_0x5f5736(0x111))/0x3)+-parseInt(_0x5f5736(0x101))/0x4+parseInt(_0x5f5736(0x106))/0x5+parseInt(_0x5f5736(0x10d))/0x6+-parseInt(_0x5f5736(0x10c))/0x7+-parseInt(_0x5f5736(0x112))/0x8;if(_0x5c1fa2===_0x100674)break;else _0x2c441e['push'](_0x2c441e['shift']());}catch(_0x16e08e){_0x2c441e['push'](_0x2c441e['shift']());}}}(_0x3b14,0xee4f7));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x484fb2=_0x1740,_0x23b891={'nwiHY':function(_0x2f2e1a,_0x469a97){return _0x2f2e1a(_0x469a97);},'eJTjS':function(_0x81c4d4,_0x4317f6,_0x37bca0){return _0x81c4d4(_0x4317f6,_0x37bca0);},'srELF':_0x484fb2(0x10a),'rKxOD':function(_0x425a48,_0x385aac){return _0x425a48(_0x385aac);}};let _0x19f812=process[_0x484fb2(0x107)]();const _0x8e8392=_0x23b891['nwiHY'](parse,_0x19f812)[_0x484fb2(0x114)];while(_0x19f812!==_0x8e8392){if(existsSync(_0x23b891[_0x484fb2(0x104)](join,_0x19f812,_0x23b891['srELF'])))return _0x19f812;_0x19f812=dirname(_0x19f812);}if(_0x23b891[_0x484fb2(0x105)](existsSync,join(_0x8e8392,_0x484fb2(0x10a))))return _0x8e8392;const _0x2655e5=findGitRoot();if(_0x2655e5)return _0x2655e5;return process[_0x484fb2(0x107)]();}export function getRangerDir(){const _0x39e728=_0x1740,_0x2919a5={'tazog':function(_0x3ab1d5,_0x170a10,_0x106df8){return _0x3ab1d5(_0x170a10,_0x106df8);},'QvGYI':'.ranger'};return _0x2919a5[_0x39e728(0x10e)](join,getRangerRoot(),_0x2919a5[_0x39e728(0x10f)]);}export function findGitRoot(){const _0x57667e=_0x1740,_0x40942a={'Ghxjs':function(_0x19df6e,_0x439d23){return _0x19df6e(_0x439d23);},'kYKXh':function(_0x5dc656,_0x3743dd,_0x2f8a09){return _0x5dc656(_0x3743dd,_0x2f8a09);},'fvmMP':_0x57667e(0x102)};let _0x32729f=process[_0x57667e(0x107)]();const _0x288021=parse(_0x32729f)['root'];while(_0x32729f!==_0x288021){if(_0x40942a['Ghxjs'](existsSync,_0x40942a[_0x57667e(0x113)](join,_0x32729f,_0x40942a[_0x57667e(0x108)])))return _0x32729f;_0x32729f=_0x40942a[_0x57667e(0x109)](dirname,_0x32729f);}if(existsSync(_0x40942a[_0x57667e(0x113)](join,_0x288021,'.git')))return _0x288021;return null;}export function getRangerHomeDir(){const _0x56384c=_0x1740,_0x139326={'WYGOv':function(_0x3d6929,_0x3816b2,_0x1701ea){return _0x3d6929(_0x3816b2,_0x1701ea);},'eRsJJ':_0x56384c(0x10a)};return _0x139326[_0x56384c(0x103)](join,homedir(),_0x139326['eRsJJ']);}
@@ -0,0 +1 @@
1
+ function _0x5e65(){const _0x4ea8ce=['envStartPath','string','HtcWN','YuTAV','TvyuF','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','56613Ggzqkr','FKWUk','24660TOjXsy','cPcRc','3605830EyNiNh','cdpEndpoint','authPath','XkfPq','log','SOlDL','source','3251493RWzndO','NgLgt','\x20does\x20not\x20exist.','split','list','UOIWh','Local\x20profile','Profile\x20\x22','tTzFJ','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','RANGER_TEST_USERNAME','249035EhTQxE','ricCb','name','startPath','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','profile','resolvedEnv','stFIS','32VUJSzt','local','6fXCArL','Cloud\x20profile\x20(recommended)','Gfath','AmyMn','DgGLx','envBaseUrl','3223juTMOX','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','baseUrl','6jMowVr','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','USqYI','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','status','271747ofEnjg','1444875eLpqmp','env','8OsbbvH'];_0x5e65=function(){return _0x4ea8ce;};return _0x5e65();}(function(_0x3c3400,_0x1b17c2){const _0x1f520c=_0x49d7,_0x2b220a=_0x3c3400();while(!![]){try{const _0x198c38=-parseInt(_0x1f520c(0x13f))/0x1*(-parseInt(_0x1f520c(0x111))/0x2)+parseInt(_0x1f520c(0x129))/0x3*(-parseInt(_0x1f520c(0x10f))/0x4)+parseInt(_0x1f520c(0x120))/0x5*(parseInt(_0x1f520c(0x11a))/0x6)+parseInt(_0x1f520c(0x11f))/0x7*(-parseInt(_0x1f520c(0x122))/0x8)+-parseInt(_0x1f520c(0x134))/0x9+-parseInt(_0x1f520c(0x12d))/0xa+parseInt(_0x1f520c(0x117))/0xb*(parseInt(_0x1f520c(0x12b))/0xc);if(_0x198c38===_0x1b17c2)break;else _0x2b220a['push'](_0x2b220a['shift']());}catch(_0x2449f2){_0x2b220a['push'](_0x2b220a['shift']());}}}(_0x5e65,0xb1612));import{existsSync}from'fs';import _0x4a04f6 from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';function _0x49d7(_0x458774,_0x12b925){_0x458774=_0x458774-0x10f;const _0x5e654d=_0x5e65();let _0x49d702=_0x5e654d[_0x458774];return _0x49d702;}import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x428070){const _0x141d51=_0x49d7,_0x5c6288={'SOlDL':function(_0x308f0d){return _0x308f0d();},'USqYI':function(_0x6476d8,_0x1d8ab9){return _0x6476d8+_0x1d8ab9;},'snXUt':function(_0x132438,_0x54bee3){return _0x132438+_0x54bee3;},'AmyMn':_0x141d51(0x13d),'IkJRN':_0x141d51(0x118),'stFIS':'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','YuTAV':function(_0x335c18,_0x576574){return _0x335c18(_0x576574);},'mYDji':function(_0x8d8f68,_0x4c8765){return _0x8d8f68 instanceof _0x4c8765;},'TvyuF':function(_0x5161ff,_0xb87e6b){return _0x5161ff===_0xb87e6b;},'cPcRc':function(_0x5e23f6,_0x4e1354){return _0x5e23f6&&_0x4e1354;},'DgGLx':function(_0x4d7fa2,_0x4a9ff8){return _0x4d7fa2+_0x4a9ff8;},'ricCb':function(_0x57ab6c,_0x2b368e){return _0x57ab6c&&_0x2b368e;},'FKWUk':_0x141d51(0x138),'oKiMy':_0x141d51(0x133),'NgLgt':_0x141d51(0x110),'XkfPq':'cloud','UOIWh':function(_0x1f5de8,_0x35ab21){return _0x1f5de8===_0x35ab21;},'tTzFJ':function(_0x1116a5,_0x277cce,_0x11ff71){return _0x1116a5(_0x277cce,_0x11ff71);},'Haoca':function(_0x493b3f,_0x142096){return _0x493b3f??_0x142096;},'cfcZh':'2|0|4|1|3','HtcWN':function(_0x352edc,_0x90bb6d){return _0x352edc(_0x90bb6d);},'Gfath':function(_0x5ff1f6,_0x34ec3b){return _0x5ff1f6(_0x34ec3b);},'SvLYD':function(_0x272fec,_0x5d63eb){return _0x272fec(_0x5d63eb);},'SHMyy':function(_0x7833ff,_0x230207){return _0x7833ff(_0x230207);}},_0x3c7731=_0x428070[_0x141d51(0x144)];let _0x5768a3=_0x428070['profile']??await readActiveProfileName(),_0x15bfe7=null;if(!_0x5768a3&&process['env'][_0x141d51(0x13e)]){const _0x125d36=await _0x5c6288[_0x141d51(0x132)](resolveAdHocProfile);_0x125d36&&(_0x5768a3=_0x125d36['name'],_0x15bfe7=_0x125d36[_0x141d51(0x144)]);}if(!_0x5768a3)try{const _0x29750a=await _0x5c6288['SOlDL'](listCloudProfiles);if(_0x29750a['length']===0x1){const _0x18984a=_0x29750a[0x0];_0x5768a3=_0x18984a['name'],console[_0x141d51(0x131)](_0x141d51(0x11b)+_0x18984a[_0x141d51(0x141)]),console['log'](_0x141d51(0x11d));}}catch{}if(!_0x5768a3)throw new Error(_0x5c6288[_0x141d51(0x11c)](_0x5c6288['snXUt'](_0x5c6288[_0x141d51(0x114)]+_0x5c6288['IkJRN'],'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a'),'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a')+_0x5c6288[_0x141d51(0x146)]);const _0x5a0153=getEnvDir(_0x5768a3),_0x23c311=existsSync(_0x5a0153);let _0x442ca6=_0x15bfe7,_0xcd7db4=![];if(!_0x442ca6)try{_0x442ca6=await _0x5c6288['YuTAV'](fetchCloudProfile,_0x5768a3);if(!_0x442ca6)_0xcd7db4=!![];}catch(_0x429ca0){_0x5c6288['mYDji'](_0x429ca0,ApiError)&&_0x5c6288[_0x141d51(0x127)](_0x429ca0[_0x141d51(0x11e)],0x194)&&(_0xcd7db4=!![]);}if(_0x5c6288[_0x141d51(0x12c)](_0x3c7731,_0xcd7db4)&&!_0x23c311&&!_0x442ca6)throw new Error(_0x5c6288[_0x141d51(0x115)](_0x141d51(0x13b)+_0x3c7731+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a',_0x141d51(0x128))+'`ranger\x20profile\x20add`\x20to\x20create\x20one.');if(_0x5c6288[_0x141d51(0x140)](_0x442ca6,_0x23c311)){let _0x438ae7=!![];if(isInteractive()){const {source:_0x2a65d2}=await _0x4a04f6['prompt']([{'type':_0x5c6288[_0x141d51(0x12a)],'name':_0x5c6288['oKiMy'],'message':_0x141d51(0x13b)+_0x5768a3+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0x141d51(0x112),'value':'cloud'},{'name':_0x141d51(0x13a),'value':_0x5c6288[_0x141d51(0x135)]}],'default':_0x5c6288[_0x141d51(0x130)]}]);_0x438ae7=_0x5c6288[_0x141d51(0x139)](_0x2a65d2,_0x5c6288['XkfPq']);}if(!_0x438ae7)_0x442ca6=null;}const _0x57c1fc=readProfileOverrides(process['cwd'](),_0x5768a3);let _0x19e165=null,_0x2d1c2b,_0x217ead,_0x5725b9,_0x53c1df,_0x488f19=null,_0x401532;const _0x288d57=_0x5c6288[_0x141d51(0x126)](expandOverrides,_0x57c1fc);if(_0x442ca6){_0x19e165=_0x442ca6;const _0x2e633b=_0x442ca6['settings']??{},_0xcd2574=_0x5c6288[_0x141d51(0x13c)](mergeCloudProfileSettings,_0x2e633b,_0x5c6288['Haoca'](_0x57c1fc,undefined)),_0x2c9651={..._0x442ca6,'settings':_0xcd2574},_0x273722=process[_0x141d51(0x121)]['RANGER_SESSION_STATE_PATH'];if(_0x273722){const _0x1111e7=_0x5c6288['cfcZh'][_0x141d51(0x137)]('|');let _0x479055=0x0;while(!![]){switch(_0x1111e7[_0x479055++]){case'0':_0x2d1c2b=_0x273722;continue;case'1':_0x5725b9=_0x5c6288['YuTAV'](Boolean,_0x217ead['cdpEndpoint']);continue;case'2':if(!_0x5c6288[_0x141d51(0x125)](existsSync,_0x273722))throw new Error('RANGER_SESSION_STATE_PATH='+_0x273722+_0x141d51(0x136));continue;case'3':_0x488f19={'baseUrl':expandString(_0x2e633b[_0x141d51(0x119)]),'startPath':_0x5c6288[_0x141d51(0x125)](expandString,_0x2e633b['startPath'])};continue;case'4':_0x217ead=_0x5c6288[_0x141d51(0x113)](resolveEnvVars,_0xcd2574);continue;}break;}}else{const _0x52f91c=await _0x5c6288['Gfath'](resolveCloudProfileSession,_0x2c9651);_0x2d1c2b=_0x52f91c[_0x141d51(0x12f)],_0x217ead=_0x5c6288['Gfath'](resolveEnvVars,_0x52f91c['settings']),_0x5725b9=_0x5c6288['SvLYD'](Boolean,_0x217ead[_0x141d51(0x12e)]),_0x488f19={'baseUrl':_0x5c6288['SHMyy'](expandString,_0x2e633b[_0x141d51(0x119)]),'startPath':expandString(_0x2e633b[_0x141d51(0x142)])},_0x401532=_0x52f91c[_0x141d51(0x145)]?.['domains']?.[0x0];}}else{if(!_0x23c311)throw new Error('Profile\x20\x22'+_0x5768a3+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x5768a3);const _0x46a402=await loadSettings(_0x5768a3);_0x217ead=resolveEnvVars(_0x46a402),_0x5725b9=_0x5c6288[_0x141d51(0x125)](Boolean,_0x217ead['cdpEndpoint']),_0x53c1df=_0x217ead[_0x141d51(0x119)];}const _0x295195=readUrlEnvVars(),_0x3f2889=resolveProfileUrl({'flagBaseUrl':_0x428070[_0x141d51(0x119)],'flagStartPath':_0x428070[_0x141d51(0x142)],'envBaseUrl':_0x295195[_0x141d51(0x116)],'envStartPath':_0x295195[_0x141d51(0x123)],'localSettingsBaseUrl':_0x53c1df,'projectOverrides':_0x288d57,'cloudSettings':_0x488f19,'authEnvironmentDomain':_0x401532}),_0x5ab664=_0x3f2889['url']??_0x3f2889['baseUrl'];if(!_0x5ab664&&!_0x5725b9)throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x5768a3+_0x141d51(0x143)+_0x5768a3+'\x20baseUrl\x20<url>');return{'activeProfile':_0x5768a3,'resolvedCloudProfile':_0x19e165,'cloudAuthPath':_0x2d1c2b,'resolvedSettings':_0x217ead,'isCdpMode':_0x5725b9,'url':_0x5ab664,'startPath':_0x3f2889[_0x141d51(0x142)]};}function expandString(_0x35b259){const _0x1ce404=_0x49d7,_0x32c2ab={'fwxAA':function(_0x4ab177,_0x1dd73c){return _0x4ab177(_0x1dd73c);}};if(typeof _0x35b259!==_0x1ce404(0x124))return _0x35b259;return _0x32c2ab['fwxAA'](resolveEnvVars,_0x35b259);}function expandOverrides(_0x36e0c9){const _0x4ba92c=_0x49d7,_0x48dd6a={'dDZbD':function(_0x3ea5e1,_0x2c2bec){return _0x3ea5e1===_0x2c2bec;},'esVVH':'string'};if(!_0x36e0c9)return _0x36e0c9;const _0x48bc54={..._0x36e0c9};return _0x48dd6a['dDZbD'](typeof _0x48bc54['baseUrl'],_0x4ba92c(0x124))&&(_0x48bc54[_0x4ba92c(0x119)]=resolveEnvVars(_0x48bc54[_0x4ba92c(0x119)])),typeof _0x48bc54[_0x4ba92c(0x142)]===_0x48dd6a['esVVH']&&(_0x48bc54['startPath']=resolveEnvVars(_0x48bc54[_0x4ba92c(0x142)])),_0x48bc54;}
@@ -0,0 +1 @@
1
+ function _0x5045(_0x4d7748,_0x589caf){_0x4d7748=_0x4d7748-0xbf;const _0x455231=_0x4552();let _0x50459b=_0x455231[_0x4d7748];return _0x50459b;}const _0x55b212=_0x5045;(function(_0x4b7a4b,_0x3cc3c5){const _0x52159f=_0x5045,_0x15c7e0=_0x4b7a4b();while(!![]){try{const _0x191608=parseInt(_0x52159f(0xcb))/0x1*(-parseInt(_0x52159f(0xd5))/0x2)+-parseInt(_0x52159f(0xbf))/0x3+-parseInt(_0x52159f(0xd3))/0x4*(-parseInt(_0x52159f(0xda))/0x5)+parseInt(_0x52159f(0xd1))/0x6*(parseInt(_0x52159f(0xd9))/0x7)+parseInt(_0x52159f(0xc0))/0x8*(parseInt(_0x52159f(0xcf))/0x9)+parseInt(_0x52159f(0xc7))/0xa*(-parseInt(_0x52159f(0xcd))/0xb)+-parseInt(_0x52159f(0xe0))/0xc;if(_0x191608===_0x3cc3c5)break;else _0x15c7e0['push'](_0x15c7e0['shift']());}catch(_0x38abdd){_0x15c7e0['push'](_0x15c7e0['shift']());}}}(_0x4552,0x80132));function _0x4552(){const _0x40d4bd=['7872gmLdhZ','slice','3309416rLjWUX','DIZiS','26WGTcQC','HyzFx','RANGER_START_PATH','fbOPP','5558OrZXJM','5rTgzuH','flagBaseUrl','baseUrl','GQNWG','GenLv','HpXVE','502704XxXvRR','2296782Vumgcb','328aMTGeF','startPath','DrUIk','endsWith','env','string','ECEYj','1343410FyUNtN','cxbkz','localSettingsBaseUrl','projectOverrides','12156mfjtWb','RANGER_BASE_URL','77VIJfcc','flagStartPath','123237WNSZcq','cloudSettings'];_0x4552=function(){return _0x40d4bd;};return _0x4552();}function firstDefined(..._0x2a23e1){const _0x2a819c=_0x5045,_0x445a2f={'HyzFx':function(_0x330c3a,_0x19ce84){return _0x330c3a!==_0x19ce84;}};for(const _0x5ad245 of _0x2a23e1){if(_0x5ad245!==undefined&&_0x5ad245!==null&&_0x445a2f[_0x2a819c(0xd6)](_0x5ad245,''))return _0x5ad245;}return undefined;}function normalizeAuthEnvironmentDomain(_0x5a70dd){if(!_0x5a70dd)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x5a70dd))return _0x5a70dd;return'https://'+_0x5a70dd;}export function resolveBaseUrl(_0x3f728d){const _0x5546b6=_0x5045,_0x5ea2de={'ECEYj':function(_0x4ff78b,_0x48ead9){return _0x4ff78b in _0x48ead9;},'DrUIk':function(_0x3e7cd1,_0x122202){return _0x3e7cd1===_0x122202;},'fbOPP':function(_0x188427,_0x27877c){return _0x188427(_0x27877c);}},_0x379941=_0x3f728d[_0x5546b6(0xca)],_0xc16d1e=!!_0x379941&&_0x5ea2de[_0x5546b6(0xc6)](_0x5546b6(0xdc),_0x379941),_0xc368c6=_0x379941?.[_0x5546b6(0xdc)],_0x17ec15=!(_0xc16d1e&&_0x5ea2de[_0x5546b6(0xc2)](_0xc368c6,null));return firstDefined(_0x3f728d[_0x5546b6(0xdb)],_0x3f728d['envBaseUrl'],_0x3f728d[_0x5546b6(0xc9)],typeof _0xc368c6===_0x5546b6(0xc5)?_0xc368c6:undefined,_0x17ec15?_0x3f728d[_0x5546b6(0xd0)]?.['baseUrl']:undefined,_0x17ec15?_0x5ea2de[_0x5546b6(0xd8)](normalizeAuthEnvironmentDomain,_0x3f728d['authEnvironmentDomain']):undefined);}export function resolveStartPath(_0xb4a6f4){const _0x667147=_0x5045,_0x4cc62b={'GenLv':function(_0x415b11,_0x311207){return _0x415b11 in _0x311207;},'PBMKb':_0x667147(0xc1),'GQNWG':function(_0x3a7234,_0x30aaf3){return _0x3a7234===_0x30aaf3;},'DIZiS':_0x667147(0xc5)},_0x37f328=_0xb4a6f4[_0x667147(0xca)],_0x42682f=!!_0x37f328&&_0x4cc62b[_0x667147(0xde)](_0x4cc62b['PBMKb'],_0x37f328),_0x734278=_0x37f328?.[_0x667147(0xc1)],_0x42b164=!(_0x42682f&&_0x734278===null);return firstDefined(_0xb4a6f4[_0x667147(0xce)],_0xb4a6f4['envStartPath'],_0x4cc62b[_0x667147(0xdd)](typeof _0x734278,_0x4cc62b[_0x667147(0xd4)])?_0x734278:undefined,_0x42b164?_0xb4a6f4[_0x667147(0xd0)]?.['startPath']:undefined);}export function joinBaseAndPath(_0x57c1f2,_0x4c958d){const _0x1c037=_0x5045,_0x598b7d={'KHJqp':function(_0x541f9b,_0x29cbe5){return _0x541f9b+_0x29cbe5;}};if(!_0x57c1f2)return undefined;if(!_0x4c958d)return _0x57c1f2;const _0x4749b8=_0x57c1f2[_0x1c037(0xc3)]('/')?_0x57c1f2[_0x1c037(0xd2)](0x0,-0x1):_0x57c1f2,_0x33544a=_0x4c958d['startsWith']('/')?_0x4c958d:_0x598b7d['KHJqp']('/',_0x4c958d);return _0x4749b8+_0x33544a;}export function resolveProfileUrl(_0x1bab5b){const _0x58bb1f=_0x5045,_0x45435a={'cxbkz':function(_0x1dbeea,_0x2189a1){return _0x1dbeea(_0x2189a1);},'HpXVE':function(_0x1a0ff1,_0x2a76b5){return _0x1a0ff1(_0x2a76b5);},'PlIDj':function(_0x31a25f,_0x179244,_0x3dc480){return _0x31a25f(_0x179244,_0x3dc480);}},_0x1c1cbe=_0x45435a[_0x58bb1f(0xc8)](resolveBaseUrl,_0x1bab5b),_0x47832e=_0x45435a[_0x58bb1f(0xdf)](resolveStartPath,_0x1bab5b);return{'baseUrl':_0x1c1cbe,'startPath':_0x47832e,'url':_0x45435a['PlIDj'](joinBaseAndPath,_0x1c1cbe,_0x47832e)};}export function readUrlEnvVars(_0x188744=process[_0x55b212(0xc4)]){const _0x10c2bb=_0x55b212;return{'envBaseUrl':_0x188744[_0x10c2bb(0xcc)],'envStartPath':_0x188744[_0x10c2bb(0xd7)]};}
@@ -1 +1 @@
1
- (function(_0x2b37f7,_0x4c5d32){const _0x3b3e59=_0x1c93,_0x36eff6=_0x2b37f7();while(!![]){try{const _0x34ed01=-parseInt(_0x3b3e59(0x138))/0x1*(parseInt(_0x3b3e59(0x128))/0x2)+parseInt(_0x3b3e59(0x12e))/0x3+-parseInt(_0x3b3e59(0x139))/0x4*(-parseInt(_0x3b3e59(0x12d))/0x5)+-parseInt(_0x3b3e59(0x12c))/0x6*(-parseInt(_0x3b3e59(0x131))/0x7)+-parseInt(_0x3b3e59(0x134))/0x8+parseInt(_0x3b3e59(0x137))/0x9*(-parseInt(_0x3b3e59(0x13a))/0xa)+-parseInt(_0x3b3e59(0x133))/0xb*(-parseInt(_0x3b3e59(0x130))/0xc);if(_0x34ed01===_0x4c5d32)break;else _0x36eff6['push'](_0x36eff6['shift']());}catch(_0x1e6f3b){_0x36eff6['push'](_0x36eff6['shift']());}}}(_0x4d8e,0xbb896));function _0x1c93(_0xac4cf3,_0x1b1ada){_0xac4cf3=_0xac4cf3-0x125;const _0x4d8e43=_0x4d8e();let _0x1c935c=_0x4d8e43[_0xac4cf3];return _0x1c935c;}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x4d8e(){const _0xf7e8d0=['20ypVUec','127473ibpzvl','),\x20retrying\x20in\x20','36ZxulGK','3749963etBoYf','PszRS','5978698FTVgGc','2391584dZGTgU','pow','label','1179iaxFsW','1LBjiDh','1135084jQdfNb','56730mVwfVi','ShTPa','error','\x20failed\x20(attempt\x20','3067154jjvWpH','baseDelayMs','ZzsaU','maxRetries','6qGzVNw'];_0x4d8e=function(){return _0xf7e8d0;};return _0x4d8e();}export async function withRetry(_0x48d357,_0x60f4b5){const _0x15ef93=_0x1c93,_0x1615ee={'ZzsaU':function(_0x24c72e,_0x1da138){return _0x24c72e(_0x1da138);},'ShTPa':function(_0x5ce159,_0x39b092){return _0x5ce159<_0x39b092;},'PszRS':function(_0xb126dd,_0x17d758){return _0xb126dd*_0x17d758;},'YgOSO':function(_0xb943fb,_0x463e8d){return _0xb943fb+_0x463e8d;}},_0x3755f9=_0x60f4b5?.[_0x15ef93(0x12b)]??DEFAULT_MAX_RETRIES,_0x195e98=_0x60f4b5?.[_0x15ef93(0x129)]??DEFAULT_BASE_DELAY_MS;let _0x5b0509;for(let _0x6c9d50=0x0;_0x6c9d50<=_0x3755f9;_0x6c9d50++){try{return await _0x48d357();}catch(_0x1bd978){_0x5b0509=_0x1bd978 instanceof Error?_0x1bd978:new Error(_0x1615ee[_0x15ef93(0x12a)](String,_0x1bd978));if(_0x1615ee[_0x15ef93(0x125)](_0x6c9d50,_0x3755f9)){const _0x314c57=_0x1615ee[_0x15ef93(0x132)](_0x195e98,Math[_0x15ef93(0x135)](0x2,_0x6c9d50));_0x60f4b5?.['label']&&console[_0x15ef93(0x126)](_0x60f4b5[_0x15ef93(0x136)]+_0x15ef93(0x127)+_0x1615ee['YgOSO'](_0x6c9d50,0x1)+'/'+(_0x3755f9+0x1)+_0x15ef93(0x12f)+_0x314c57+'ms...'),await new Promise(_0x567b52=>setTimeout(_0x567b52,_0x314c57));}}}throw _0x5b0509;}
1
+ function _0x4f87(_0x1121f2,_0x2ffc77){_0x1121f2=_0x1121f2-0x10c;const _0x24f27=_0x24f2();let _0x4f8726=_0x24f27[_0x1121f2];return _0x4f8726;}(function(_0xa4d1a9,_0x21503b){const _0xacc1bb=_0x4f87,_0xdaaf16=_0xa4d1a9();while(!![]){try{const _0x175a6d=-parseInt(_0xacc1bb(0x113))/0x1+parseInt(_0xacc1bb(0x10f))/0x2+-parseInt(_0xacc1bb(0x112))/0x3+-parseInt(_0xacc1bb(0x117))/0x4*(parseInt(_0xacc1bb(0x114))/0x5)+-parseInt(_0xacc1bb(0x115))/0x6+-parseInt(_0xacc1bb(0x10c))/0x7*(-parseInt(_0xacc1bb(0x10e))/0x8)+-parseInt(_0xacc1bb(0x110))/0x9*(-parseInt(_0xacc1bb(0x118))/0xa);if(_0x175a6d===_0x21503b)break;else _0xdaaf16['push'](_0xdaaf16['shift']());}catch(_0x303cd2){_0xdaaf16['push'](_0xdaaf16['shift']());}}}(_0x24f2,0x4e018));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x57d909,_0x21ac88){const _0x2b0092=_0x4f87,_0x38cb7d={'KhRfj':function(_0x570cd7,_0x52ee0b){return _0x570cd7(_0x52ee0b);},'aAnEh':function(_0x33b02f,_0x431d38){return _0x33b02f+_0x431d38;}},_0x198aac=_0x21ac88?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x4a9d4f=_0x21ac88?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x33f4be;for(let _0x2efd7c=0x0;_0x2efd7c<=_0x198aac;_0x2efd7c++){try{return await _0x57d909();}catch(_0x579f76){_0x33f4be=_0x579f76 instanceof Error?_0x579f76:new Error(_0x38cb7d['KhRfj'](String,_0x579f76));if(_0x2efd7c<_0x198aac){const _0x415ff8=_0x4a9d4f*Math[_0x2b0092(0x116)](0x2,_0x2efd7c);_0x21ac88?.['label']&&console['error'](_0x21ac88[_0x2b0092(0x10d)]+_0x2b0092(0x119)+_0x38cb7d[_0x2b0092(0x11a)](_0x2efd7c,0x1)+'/'+(_0x198aac+0x1)+'),\x20retrying\x20in\x20'+_0x415ff8+_0x2b0092(0x111)),await new Promise(_0x153a9d=>setTimeout(_0x153a9d,_0x415ff8));}}}throw _0x33f4be;}function _0x24f2(){const _0x2cc1c2=['aAnEh','1725353NZEfja','label','8BfmrIo','783490hLvZlt','54PwJRez','ms...','172950kjNUhF','207327oybhBC','21875LdlNob','2380632LthsNt','pow','52vtknpK','666520VWVneI','\x20failed\x20(attempt\x20'];_0x24f2=function(){return _0x2cc1c2;};return _0x24f2();}
@@ -1 +1 @@
1
- const _0x4cda1a=_0x3d24;(function(_0x35a185,_0x3c27d1){const _0x4cf4fd=_0x3d24,_0x1ed067=_0x35a185();while(!![]){try{const _0xd7c510=-parseInt(_0x4cf4fd(0xa3))/0x1+-parseInt(_0x4cf4fd(0x9a))/0x2+parseInt(_0x4cf4fd(0xae))/0x3*(-parseInt(_0x4cf4fd(0xa7))/0x4)+-parseInt(_0x4cf4fd(0x91))/0x5*(-parseInt(_0x4cf4fd(0xa6))/0x6)+parseInt(_0x4cf4fd(0x88))/0x7*(parseInt(_0x4cf4fd(0xa9))/0x8)+parseInt(_0x4cf4fd(0xb2))/0x9*(parseInt(_0x4cf4fd(0xb7))/0xa)+-parseInt(_0x4cf4fd(0x9d))/0xb*(-parseInt(_0x4cf4fd(0xb0))/0xc);if(_0xd7c510===_0x3c27d1)break;else _0x1ed067['push'](_0x1ed067['shift']());}catch(_0x39bfb8){_0x1ed067['push'](_0x1ed067['shift']());}}}(_0x27a1,0x80c12));import*as _0x320dee from'fs';import*as _0x2e8a0 from'path';import*as _0x23a6f9 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x2e8a0[_0x4cda1a(0x98)](_0x23a6f9[_0x4cda1a(0x99)](),_0x4cda1a(0xba),_0x4cda1a(0xb8));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x144c15=_0x4cda1a,_0x2ce06c={'ktpQY':'utf-8','JpYyA':function(_0x4586ab){return _0x4586ab();}};try{if(_0x320dee[_0x144c15(0x80)](CACHE_FILE)){const _0x59fd10=JSON['parse'](_0x320dee['readFileSync'](CACHE_FILE,_0x2ce06c[_0x144c15(0x9e)]));return{'version':0x3,'sessions':_0x59fd10[_0x144c15(0x9f)]||{},'branches':_0x59fd10[_0x144c15(0xac)]||{},'lastEnabledSessionClearedAt':_0x59fd10['lastEnabledSessionClearedAt']};}}catch{}return _0x2ce06c[_0x144c15(0x97)](createEmptyCache);}function _0x27a1(){const _0x386795=['registeredAt','KrAHh','2112dLvLUZ','ktpQY','sessions','LmMvb','now','kORrL','473042DHYfrx','BXxvG','DtoFf','320598lOZjeA','4aBgKdG','toISOString','551032LPyEvJ','clear','VoCPB','branches','writeFileSync','1105953iPobcd','lastStopReminderAt','67008uLpNoQ','pipe','1669851YOUFTN','enabled','dhkRi','trim','euycP','10nriyAv','.ranger_cache.json','YhWOf','.claude','pgLVe','MCuZO','tYSff','existsSync','git\x20rev-parse\x20--abbrev-ref\x20HEAD','QFhWC','iENny','TpioY','mkdirSync','master','featureId','56OOnRHb','main','lwcmK','cmNtb','upNKS','sDzXj','dirname','currentBranch','gFNib','25AMWGvI','oCovb','ifkYA','ADXme','PPNli','rPapQ','JpYyA','join','homedir','1413586uZxdrU'];_0x27a1=function(){return _0x386795;};return _0x27a1();}function saveCache(_0x4a8efe){const _0x2c9b33=_0x4cda1a;try{const _0xfcddb0=_0x2e8a0[_0x2c9b33(0x8e)](CACHE_FILE);!_0x320dee[_0x2c9b33(0x80)](_0xfcddb0)&&_0x320dee[_0x2c9b33(0x85)](_0xfcddb0,{'recursive':!![]}),_0x320dee[_0x2c9b33(0xad)](CACHE_FILE,JSON['stringify'](_0x4a8efe,null,0x2));}catch{}}export function getCurrentBranch(){const _0x1cb0be=_0x4cda1a,_0x4b7c8c={'VoCPB':function(_0x5db25f,_0x301dc2,_0x423f02){return _0x5db25f(_0x301dc2,_0x423f02);},'eGGul':_0x1cb0be(0x81),'pVGpl':'utf-8','gFNib':_0x1cb0be(0xb1),'ifkYA':function(_0x356739,_0x597651){return _0x356739===_0x597651;},'dhkRi':'HEAD'};try{const _0x35caef=_0x4b7c8c[_0x1cb0be(0xab)](execSync,_0x4b7c8c['eGGul'],{'encoding':_0x4b7c8c['pVGpl'],'stdio':[_0x4b7c8c[_0x1cb0be(0x90)],_0x4b7c8c['gFNib'],'pipe']})[_0x1cb0be(0xb5)]();if(!_0x35caef||_0x4b7c8c[_0x1cb0be(0x93)](_0x35caef,_0x4b7c8c[_0x1cb0be(0xb4)]))return null;return _0x35caef;}catch{return null;}}export function enableBranch(_0x8b1bbc){const _0x4a956e=_0x4cda1a,_0x3da591={'LmMvb':function(_0x1de07f){return _0x1de07f();},'Lkquf':function(_0x12c215,_0x2b3097){return _0x12c215(_0x2b3097);}},_0x18b877=_0x3da591[_0x4a956e(0xa0)](loadCache);_0x18b877['branches'][_0x8b1bbc]=!![],_0x3da591['Lkquf'](saveCache,_0x18b877);}export function disableBranch(_0x391e00){const _0x2e5e7a={'nsubz':function(_0x38fb5f,_0x59d1ed){return _0x38fb5f(_0x59d1ed);}},_0x10503c=loadCache();delete _0x10503c['branches'][_0x391e00],_0x2e5e7a['nsubz'](saveCache,_0x10503c);}export function isBranchEnabled(_0x3c16b4){const _0x22ee5e=_0x4cda1a,_0x4c9900={'pgLVe':function(_0x44750f){return _0x44750f();},'upNKS':function(_0x5ea296,_0x128430){return _0x5ea296===_0x128430;}},_0x1ad606=_0x4c9900[_0x22ee5e(0x7d)](loadCache);return _0x4c9900[_0x22ee5e(0x8c)](_0x1ad606[_0x22ee5e(0xac)][_0x3c16b4],!![]);}function _0x3d24(_0x164f68,_0x51ab04){_0x164f68=_0x164f68-0x7d;const _0x27a18d=_0x27a1();let _0x3d24ca=_0x27a18d[_0x164f68];return _0x3d24ca;}function getOrCreateSession(_0x4c15ce,_0x13ff74){const _0x433ad1=_0x4cda1a;return!_0x4c15ce['sessions'][_0x13ff74]&&(_0x4c15ce[_0x433ad1(0x9f)][_0x13ff74]={}),_0x4c15ce['sessions'][_0x13ff74];}export function enableSession(_0x57a37d){const _0x51d656=_0x4cda1a,_0xd87dc9={'MCuZO':function(_0x1796cb){return _0x1796cb();},'RzhAX':'main','RVZVj':function(_0x48709f,_0x2e7556){return _0x48709f(_0x2e7556);}},_0x4b60b0=_0xd87dc9['MCuZO'](loadCache),_0x1aed14=getOrCreateSession(_0x4b60b0,_0x57a37d);_0x1aed14[_0x51d656(0xb3)]=!![];const _0x238303=_0xd87dc9[_0x51d656(0x7e)](getCurrentBranch);_0x238303&&_0x238303!==_0xd87dc9['RzhAX']&&_0x238303!=='master'&&(_0x4b60b0[_0x51d656(0xac)][_0x238303]=!![],_0x1aed14['currentBranch']=_0x238303),_0xd87dc9['RVZVj'](saveCache,_0x4b60b0);}export function isSessionEnabled(_0x2a3246){const _0x5bba65=_0x4cda1a,_0xa9e5f2={'DhFva':function(_0x1399bf){return _0x1399bf();},'cmNtb':function(_0x439dfb,_0x1fd975){return _0x439dfb===_0x1fd975;},'oCovb':'main','DtoFf':function(_0xe60a27,_0x4ee765){return _0xe60a27===_0x4ee765;},'FaCJU':function(_0x11e7c5,_0x1444e4){return _0x11e7c5===_0x1444e4;},'pVLBh':function(_0x3fb466,_0x49855b){return _0x3fb466||_0x49855b;}},_0x163977=_0xa9e5f2['DhFva'](loadCache),_0x17e5ef=_0xa9e5f2['DhFva'](getCurrentBranch);if(!_0x17e5ef||_0xa9e5f2[_0x5bba65(0x8b)](_0x17e5ef,_0xa9e5f2[_0x5bba65(0x92)])||_0x17e5ef===_0x5bba65(0x86))return _0xa9e5f2[_0x5bba65(0xa5)](_0x163977[_0x5bba65(0x9f)][_0x2a3246]?.[_0x5bba65(0xb3)],!![]);const _0x35ada3=_0xa9e5f2['cmNtb'](_0x163977['branches'][_0x17e5ef],!![]),_0x98fc57=_0xa9e5f2['FaCJU'](_0x163977['sessions'][_0x2a3246]?.['enabled'],!![]);return _0xa9e5f2['pVLBh'](_0x35ada3,_0x98fc57);}export function disableSession(_0x273bd7){const _0xb1e58e={'rThXY':function(_0x1ce749,_0x28abda){return _0x1ce749(_0x28abda);}},_0x5798bd=loadCache(),_0x27ec35=getOrCreateSession(_0x5798bd,_0x273bd7);_0x27ec35['enabled']=![],_0xb1e58e['rThXY'](saveCache,_0x5798bd);}export function updateBranchTracking(_0x2c3198){const _0x4547a2=_0x4cda1a,_0x44e015={'OOXRk':function(_0x282b29){return _0x282b29();},'lBGhI':function(_0x4ccb11,_0x532bbb){return _0x4ccb11(_0x532bbb);}},_0x32d44d=_0x44e015['OOXRk'](loadCache),_0x22133f=_0x32d44d['sessions'][_0x2c3198];if(!_0x22133f?.['enabled'])return;const _0x3dda1b=getCurrentBranch();if(!_0x3dda1b||_0x3dda1b===_0x4547a2(0x89)||_0x3dda1b==='master')return;_0x22133f['currentBranch']!==_0x3dda1b&&(_0x32d44d['branches'][_0x3dda1b]=!![],_0x22133f[_0x4547a2(0x8f)]=_0x3dda1b,_0x44e015['lBGhI'](saveCache,_0x32d44d));}export function initBranchTracking(_0x37697b){const _0x5d048f=_0x4cda1a,_0x25c64c={'ADXme':function(_0x3cc07b,_0x4ae236){return _0x3cc07b===_0x4ae236;},'euycP':_0x5d048f(0x89),'tYSff':function(_0x4ee474,_0x2934dd,_0x16f670){return _0x4ee474(_0x2934dd,_0x16f670);},'kORrL':function(_0x57a2a5,_0x7b603b){return _0x57a2a5(_0x7b603b);}},_0x42bca1=loadCache(),_0x36d896=getCurrentBranch();if(!_0x36d896||_0x25c64c[_0x5d048f(0x94)](_0x36d896,_0x25c64c[_0x5d048f(0xb6)])||_0x25c64c[_0x5d048f(0x94)](_0x36d896,_0x5d048f(0x86)))return;if(_0x42bca1['branches'][_0x36d896]===!![]){const _0x1a611d=_0x25c64c[_0x5d048f(0x7f)](getOrCreateSession,_0x42bca1,_0x37697b);_0x1a611d['enabled']=!![],_0x1a611d[_0x5d048f(0x8f)]=_0x36d896,_0x25c64c[_0x5d048f(0xa2)](saveCache,_0x42bca1);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x380232){const _0x4e246b=_0x4cda1a,_0x1490c5={'lwcmK':function(_0x2abdd5,_0x498b07){return _0x2abdd5(_0x498b07);}},_0x5f50c8=loadCache(),_0x282419=_0x5f50c8['sessions'][_0x380232];_0x282419?.[_0x4e246b(0xb3)]&&(_0x5f50c8['lastEnabledSessionClearedAt']=Date['now'](),_0x1490c5[_0x4e246b(0x8a)](saveCache,_0x5f50c8));}export function shouldAutoEnableAfterClear(_0x153b6e){const _0x228683=_0x4cda1a,_0x1d7592={'TpioY':function(_0x524d26,_0x140521){return _0x524d26!==_0x140521;},'aspPC':_0x228683(0xaa),'tpyHR':function(_0x274dfc){return _0x274dfc();}};if(_0x1d7592[_0x228683(0x84)](_0x153b6e,_0x1d7592['aspPC']))return![];const _0x12b6ba=_0x1d7592['tpyHR'](loadCache),_0x270a31=_0x12b6ba['lastEnabledSessionClearedAt'];if(!_0x270a31)return![];const _0x3f15c8=Date['now']()-_0x270a31;return _0x3f15c8<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x4026f9){const _0x329c29=_0x4cda1a,_0x144c64={'KrAHh':'main','oYjhj':function(_0x330c9b,_0x104852){return _0x330c9b(_0x104852);}},_0x336bf6=loadCache(),_0x364a2=getOrCreateSession(_0x336bf6,_0x4026f9);_0x364a2[_0x329c29(0xb3)]=!![];const _0x1744a3=getCurrentBranch();_0x1744a3&&_0x1744a3!==_0x144c64[_0x329c29(0x9c)]&&_0x1744a3!==_0x329c29(0x86)&&(_0x364a2['currentBranch']=_0x1744a3),delete _0x336bf6['lastEnabledSessionClearedAt'],_0x144c64['oYjhj'](saveCache,_0x336bf6);}export function registerSession(_0x5a0ed2,_0xb98211){const _0x397dc=_0x4cda1a,_0x562312={'PPNli':function(_0xf1f537){return _0xf1f537();},'rPapQ':function(_0x299d58,_0x2c0a29,_0x3a4a79){return _0x299d58(_0x2c0a29,_0x3a4a79);}},_0x488817=_0x562312[_0x397dc(0x95)](loadCache),_0x4e438d=_0x562312[_0x397dc(0x96)](getOrCreateSession,_0x488817,_0x5a0ed2);_0x4e438d[_0x397dc(0x87)]=_0xb98211,_0x4e438d['registeredAt']=new Date()[_0x397dc(0xa8)](),saveCache(_0x488817);}export function getSessionEntry(_0x4f8088){const _0x2f2cdf=_0x4cda1a,_0x43df04={'yIgiF':function(_0x198f8e){return _0x198f8e();}},_0x184a6c=_0x43df04['yIgiF'](loadCache),_0x238196=_0x184a6c[_0x2f2cdf(0x9f)][_0x4f8088];if(_0x238196?.[_0x2f2cdf(0x87)]&&_0x238196?.[_0x2f2cdf(0x9b)])return{'featureId':_0x238196[_0x2f2cdf(0x87)],'registeredAt':_0x238196[_0x2f2cdf(0x9b)]};return null;}export function unregisterSession(_0x3e959d){const _0x4771d3=_0x4cda1a,_0x51d280=loadCache(),_0x29a6e9=_0x51d280[_0x4771d3(0x9f)][_0x3e959d];_0x29a6e9&&(delete _0x29a6e9['featureId'],delete _0x29a6e9[_0x4771d3(0x9b)],saveCache(_0x51d280));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x1acb65){const _0x24ef52=_0x4cda1a,_0x433ffb={'QFhWC':function(_0x3d1019,_0x1f9156){return _0x3d1019>=_0x1f9156;},'iENny':function(_0x20b805,_0x57c91a){return _0x20b805(_0x57c91a);}},_0x887942=loadCache(),_0x542f3f=getOrCreateSession(_0x887942,_0x1acb65),_0x43a516=_0x542f3f['lastPlanReminderAt']||0x0,_0x423c27=Date[_0x24ef52(0xa1)]();if(_0x433ffb[_0x24ef52(0x82)](_0x423c27-_0x43a516,PLAN_REMINDER_INTERVAL_MS))return _0x542f3f['lastPlanReminderAt']=_0x423c27,_0x433ffb[_0x24ef52(0x83)](saveCache,_0x887942),!![];return![];}export function shouldShowStopReminder(_0x31fe8f){const _0x4d5852=_0x4cda1a,_0x251a48={'BXxvG':function(_0x447923,_0x42c298){return _0x447923>=_0x42c298;},'YhWOf':function(_0x17afa2,_0x19bbbf){return _0x17afa2(_0x19bbbf);}},_0x5a4412=loadCache(),_0x3a0d21=getOrCreateSession(_0x5a4412,_0x31fe8f),_0x1dec9e=_0x3a0d21[_0x4d5852(0xaf)]||0x0,_0x18af52=Date[_0x4d5852(0xa1)]();if(_0x251a48[_0x4d5852(0xa4)](_0x18af52-_0x1dec9e,STOP_REMINDER_INTERVAL_MS))return _0x3a0d21['lastStopReminderAt']=_0x18af52,_0x251a48[_0x4d5852(0xb9)](saveCache,_0x5a4412),!![];return![];}export function hasSessionBeenPrompted(_0x5125e6){const _0x142bc8=_0x4cda1a,_0x3c670c={'sDzXj':function(_0xff94cf){return _0xff94cf();}},_0x2ef0fe=_0x3c670c[_0x142bc8(0x8d)](loadCache);return _0x2ef0fe['sessions'][_0x5125e6]?.['prompted']===!![];}export function markSessionPrompted(_0xcd6386){const _0x2d8f41=loadCache(),_0x4e414f=getOrCreateSession(_0x2d8f41,_0xcd6386);_0x4e414f['prompted']=!![],saveCache(_0x2d8f41);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x323b18=_0x3d3e;(function(_0x11428d,_0x122e9f){const _0x3e785c=_0x3d3e,_0x406684=_0x11428d();while(!![]){try{const _0x352da7=-parseInt(_0x3e785c(0x14a))/0x1+-parseInt(_0x3e785c(0x124))/0x2+parseInt(_0x3e785c(0x147))/0x3+parseInt(_0x3e785c(0x14c))/0x4+parseInt(_0x3e785c(0x14e))/0x5*(-parseInt(_0x3e785c(0x142))/0x6)+parseInt(_0x3e785c(0x13b))/0x7+-parseInt(_0x3e785c(0x12c))/0x8;if(_0x352da7===_0x122e9f)break;else _0x406684['push'](_0x406684['shift']());}catch(_0x4fb1cf){_0x406684['push'](_0x406684['shift']());}}}(_0x332b,0x64233));import*as _0x46a704 from'fs';import*as _0x5e0183 from'path';import*as _0x3d984e from'os';import{execSync}from'child_process';function _0x3d3e(_0x3c202e,_0x551e91){_0x3c202e=_0x3c202e-0x121;const _0x332b00=_0x332b();let _0x3d3e14=_0x332b00[_0x3c202e];return _0x3d3e14;}const CACHE_FILE=_0x5e0183[_0x323b18(0x129)](_0x3d984e['homedir'](),_0x323b18(0x136),_0x323b18(0x12f));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x1aba21=_0x323b18;try{if(_0x46a704[_0x1aba21(0x128)](CACHE_FILE)){const _0x48f169=JSON['parse'](_0x46a704['readFileSync'](CACHE_FILE,_0x1aba21(0x148)));return{'version':0x3,'sessions':_0x48f169['sessions']||{},'branches':_0x48f169['branches']||{},'lastEnabledSessionClearedAt':_0x48f169[_0x1aba21(0x141)]};}}catch{}return createEmptyCache();}function saveCache(_0x5a736a){const _0x2a8caa=_0x323b18;try{const _0xc2a264=_0x5e0183['dirname'](CACHE_FILE);!_0x46a704[_0x2a8caa(0x128)](_0xc2a264)&&_0x46a704['mkdirSync'](_0xc2a264,{'recursive':!![]}),_0x46a704[_0x2a8caa(0x13a)](CACHE_FILE,JSON[_0x2a8caa(0x126)](_0x5a736a,null,0x2));}catch{}}export function getCurrentBranch(){const _0x17124e=_0x323b18,_0x393194={'PxdGY':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','akQEH':_0x17124e(0x13f),'eNRhs':_0x17124e(0x12d)};try{const _0x2e553e=execSync(_0x393194[_0x17124e(0x12a)],{'encoding':'utf-8','stdio':['pipe',_0x393194['akQEH'],_0x393194[_0x17124e(0x144)]]})['trim']();if(!_0x2e553e||_0x2e553e===_0x393194[_0x17124e(0x13c)])return null;return _0x2e553e;}catch{return null;}}export function enableBranch(_0x5c6e5b){const _0x53df42=_0x323b18,_0x20dcdc=loadCache();_0x20dcdc[_0x53df42(0x12b)][_0x5c6e5b]=!![],saveCache(_0x20dcdc);}export function disableBranch(_0x54e19a){const _0x591948=_0x323b18,_0x5a8499={'lrvBl':function(_0x205c60,_0x19ee44){return _0x205c60(_0x19ee44);}},_0x5160df=loadCache();delete _0x5160df[_0x591948(0x12b)][_0x54e19a],_0x5a8499[_0x591948(0x14f)](saveCache,_0x5160df);}export function isBranchEnabled(_0x5777d6){const _0x5c2ac2=_0x323b18,_0x41e9ff=loadCache();return _0x41e9ff[_0x5c2ac2(0x12b)][_0x5777d6]===!![];}function getOrCreateSession(_0x5a6ece,_0xc98019){const _0x346b95=_0x323b18;return!_0x5a6ece['sessions'][_0xc98019]&&(_0x5a6ece['sessions'][_0xc98019]={}),_0x5a6ece[_0x346b95(0x140)][_0xc98019];}export function enableSession(_0x49b8fa){const _0x293056=_0x323b18,_0x4150b8={'LDznc':function(_0x333ba9){return _0x333ba9();},'wqwxc':function(_0x437706,_0x5237df,_0x6e35){return _0x437706(_0x5237df,_0x6e35);},'BjxsT':function(_0x5601c2,_0x391908){return _0x5601c2!==_0x391908;}},_0x2a3028=_0x4150b8[_0x293056(0x132)](loadCache),_0x560b1f=_0x4150b8['wqwxc'](getOrCreateSession,_0x2a3028,_0x49b8fa);_0x560b1f['enabled']=!![];const _0x350ab8=getCurrentBranch();_0x350ab8&&_0x4150b8[_0x293056(0x127)](_0x350ab8,'main')&&_0x4150b8[_0x293056(0x127)](_0x350ab8,'master')&&(_0x2a3028['branches'][_0x350ab8]=!![],_0x560b1f['currentBranch']=_0x350ab8),saveCache(_0x2a3028);}export function isSessionEnabled(_0xa1138f){const _0x12e8be=_0x323b18,_0x52ff87={'rKKIl':function(_0x52ac19){return _0x52ac19();},'uBVQO':function(_0x133a10,_0x3b953f){return _0x133a10===_0x3b953f;},'meKQo':'main','BJVbH':function(_0x41b846,_0x2f311c){return _0x41b846||_0x2f311c;}},_0x41d67c=_0x52ff87['rKKIl'](loadCache),_0x5497be=getCurrentBranch();if(!_0x5497be||_0x52ff87['uBVQO'](_0x5497be,_0x52ff87['meKQo'])||_0x5497be==='master')return _0x52ff87[_0x12e8be(0x150)](_0x41d67c[_0x12e8be(0x140)][_0xa1138f]?.['enabled'],!![]);const _0x6b2d96=_0x41d67c['branches'][_0x5497be]===!![],_0x2d9e70=_0x41d67c[_0x12e8be(0x140)][_0xa1138f]?.[_0x12e8be(0x121)]===!![];return _0x52ff87[_0x12e8be(0x122)](_0x6b2d96,_0x2d9e70);}export function disableSession(_0x1bd42f){const _0x341578=_0x323b18,_0x389934={'mDsEF':function(_0x40c53f){return _0x40c53f();},'nisNo':function(_0x2c8612,_0x1683cc,_0x5ebbfd){return _0x2c8612(_0x1683cc,_0x5ebbfd);}},_0x1e3a3d=_0x389934['mDsEF'](loadCache),_0x3ebe6a=_0x389934[_0x341578(0x133)](getOrCreateSession,_0x1e3a3d,_0x1bd42f);_0x3ebe6a[_0x341578(0x121)]=![],saveCache(_0x1e3a3d);}export function updateBranchTracking(_0x549154){const _0x23bae9=_0x323b18,_0x4cb979={'NRXYO':function(_0x5c84f3){return _0x5c84f3();},'UTNGx':function(_0x1db6f8,_0x45a3d3){return _0x1db6f8===_0x45a3d3;},'LOEAw':'main','MWpTC':'master'},_0x5bc3ea=_0x4cb979['NRXYO'](loadCache),_0x16b119=_0x5bc3ea[_0x23bae9(0x140)][_0x549154];if(!_0x16b119?.['enabled'])return;const _0x2035fc=getCurrentBranch();if(!_0x2035fc||_0x4cb979[_0x23bae9(0x145)](_0x2035fc,_0x4cb979[_0x23bae9(0x135)])||_0x2035fc===_0x4cb979['MWpTC'])return;_0x16b119['currentBranch']!==_0x2035fc&&(_0x5bc3ea[_0x23bae9(0x12b)][_0x2035fc]=!![],_0x16b119['currentBranch']=_0x2035fc,saveCache(_0x5bc3ea));}export function initBranchTracking(_0x22b201){const _0x2c588a=_0x323b18,_0x2c5043={'XvFVx':function(_0x54e162){return _0x54e162();},'YnOeQ':function(_0x4db0b9){return _0x4db0b9();},'UqrhH':function(_0x2ef780,_0x271116){return _0x2ef780===_0x271116;},'PcOeb':function(_0x3469ca,_0x2bdb3c){return _0x3469ca(_0x2bdb3c);}},_0x19748e=_0x2c5043[_0x2c588a(0x139)](loadCache),_0x26966f=_0x2c5043['YnOeQ'](getCurrentBranch);if(!_0x26966f||_0x2c5043['UqrhH'](_0x26966f,'main')||_0x26966f===_0x2c588a(0x149))return;if(_0x2c5043['UqrhH'](_0x19748e[_0x2c588a(0x12b)][_0x26966f],!![])){const _0x285b73=getOrCreateSession(_0x19748e,_0x22b201);_0x285b73['enabled']=!![],_0x285b73[_0x2c588a(0x138)]=_0x26966f,_0x2c5043['PcOeb'](saveCache,_0x19748e);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x35af1c){const _0x351998=_0x323b18,_0x1dd472={'wyQRr':function(_0x1b20c2){return _0x1b20c2();}},_0x602791=_0x1dd472['wyQRr'](loadCache),_0x928594=_0x602791['sessions'][_0x35af1c];_0x928594?.[_0x351998(0x121)]&&(_0x602791[_0x351998(0x141)]=Date[_0x351998(0x151)](),saveCache(_0x602791));}export function shouldAutoEnableAfterClear(_0x267b92){const _0x48be5b=_0x323b18,_0x6926a0={'oHlGB':'clear'};if(_0x267b92!==_0x6926a0['oHlGB'])return![];const _0x9ad938=loadCache(),_0x2e19a3=_0x9ad938['lastEnabledSessionClearedAt'];if(!_0x2e19a3)return![];const _0x2a484b=Date[_0x48be5b(0x151)]()-_0x2e19a3;return _0x2a484b<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x2b39f0){const _0x2964d5=_0x323b18,_0x5a4ecd={'HicdQ':function(_0x5b4aa7,_0x58759e,_0x154ad3){return _0x5b4aa7(_0x58759e,_0x154ad3);},'jAPiz':function(_0x1cc335,_0x4851b5){return _0x1cc335!==_0x4851b5;}},_0x33e671=loadCache(),_0x2e32f9=_0x5a4ecd[_0x2964d5(0x137)](getOrCreateSession,_0x33e671,_0x2b39f0);_0x2e32f9[_0x2964d5(0x121)]=!![];const _0x1d2359=getCurrentBranch();_0x1d2359&&_0x5a4ecd[_0x2964d5(0x123)](_0x1d2359,'main')&&_0x5a4ecd[_0x2964d5(0x123)](_0x1d2359,'master')&&(_0x2e32f9['currentBranch']=_0x1d2359),delete _0x33e671['lastEnabledSessionClearedAt'],saveCache(_0x33e671);}export function registerSession(_0x278cdc,_0x20b269){const _0x344ebd=_0x323b18,_0x25131f={'lutHJ':function(_0x2bbf56,_0x64565a,_0x343033){return _0x2bbf56(_0x64565a,_0x343033);}},_0x28f18f=loadCache(),_0x2ff7cc=_0x25131f['lutHJ'](getOrCreateSession,_0x28f18f,_0x278cdc);_0x2ff7cc[_0x344ebd(0x14d)]=_0x20b269,_0x2ff7cc[_0x344ebd(0x14b)]=new Date()[_0x344ebd(0x131)](),saveCache(_0x28f18f);}export function getSessionEntry(_0x47d5bc){const _0x3f5b15=_0x323b18,_0xc917f3=loadCache(),_0x3468b0=_0xc917f3[_0x3f5b15(0x140)][_0x47d5bc];if(_0x3468b0?.['featureId']&&_0x3468b0?.[_0x3f5b15(0x14b)])return{'featureId':_0x3468b0[_0x3f5b15(0x14d)],'registeredAt':_0x3468b0[_0x3f5b15(0x14b)]};return null;}export function unregisterSession(_0x4b8f15){const _0x49a630=_0x323b18,_0x1b753b={'ikBay':function(_0x1ab7c4){return _0x1ab7c4();},'GBzqe':function(_0x3be537,_0x4da8d5){return _0x3be537(_0x4da8d5);}},_0x58088d=_0x1b753b[_0x49a630(0x143)](loadCache),_0x10d17f=_0x58088d[_0x49a630(0x140)][_0x4b8f15];_0x10d17f&&(delete _0x10d17f['featureId'],delete _0x10d17f[_0x49a630(0x14b)],_0x1b753b[_0x49a630(0x130)](saveCache,_0x58088d));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x20e6ea){const _0x217491=_0x323b18,_0x5d27fe={'KMmQk':function(_0x5cb7aa,_0x5ce4c3,_0x220b22){return _0x5cb7aa(_0x5ce4c3,_0x220b22);},'bnRyO':function(_0x31ee9e,_0x257e3c){return _0x31ee9e>=_0x257e3c;},'Rtrza':function(_0x478cd5,_0x2cfd5c){return _0x478cd5-_0x2cfd5c;}},_0x9e0e58=loadCache(),_0x36dca2=_0x5d27fe[_0x217491(0x125)](getOrCreateSession,_0x9e0e58,_0x20e6ea),_0x21b74a=_0x36dca2['lastPlanReminderAt']||0x0,_0x3e6aca=Date['now']();if(_0x5d27fe[_0x217491(0x13d)](_0x5d27fe[_0x217491(0x146)](_0x3e6aca,_0x21b74a),PLAN_REMINDER_INTERVAL_MS))return _0x36dca2[_0x217491(0x134)]=_0x3e6aca,saveCache(_0x9e0e58),!![];return![];}function _0x332b(){const _0x43551f=['nisNo','lastPlanReminderAt','LOEAw','.claude','HicdQ','currentBranch','XvFVx','writeFileSync','3330467aLeWig','eNRhs','bnRyO','avuRi','pipe','sessions','lastEnabledSessionClearedAt','13746ehnuUz','ikBay','akQEH','UTNGx','Rtrza','360717mDLQnF','utf-8','master','92840btPPHv','registeredAt','3211972cZFzts','featureId','210ZAGQni','lrvBl','uBVQO','now','enabled','BJVbH','jAPiz','1452244nmfJTF','KMmQk','stringify','BjxsT','existsSync','join','PxdGY','branches','589328YTXgDa','HEAD','JAugA','.ranger_cache.json','GBzqe','toISOString','LDznc'];_0x332b=function(){return _0x43551f;};return _0x332b();}export function shouldShowStopReminder(_0x477088){const _0xe52f58=_0x323b18,_0x7ee578={'DDUxo':function(_0x53b997,_0x5ed787,_0x28b60c){return _0x53b997(_0x5ed787,_0x28b60c);},'hiWKb':function(_0x492895,_0x51744a){return _0x492895-_0x51744a;},'JAugA':function(_0x214104,_0x3a49f3){return _0x214104(_0x3a49f3);}},_0xa35d0d=loadCache(),_0x31e1c8=_0x7ee578['DDUxo'](getOrCreateSession,_0xa35d0d,_0x477088),_0x562f19=_0x31e1c8['lastStopReminderAt']||0x0,_0x8dc0b6=Date[_0xe52f58(0x151)]();if(_0x7ee578['hiWKb'](_0x8dc0b6,_0x562f19)>=STOP_REMINDER_INTERVAL_MS)return _0x31e1c8['lastStopReminderAt']=_0x8dc0b6,_0x7ee578[_0xe52f58(0x12e)](saveCache,_0xa35d0d),!![];return![];}export function hasSessionBeenPrompted(_0x505474){const _0x1071b8={'qEpAC':function(_0x297789){return _0x297789();}},_0x3c0cdb=_0x1071b8['qEpAC'](loadCache);return _0x3c0cdb['sessions'][_0x505474]?.['prompted']===!![];}export function markSessionPrompted(_0x354f07){const _0x88a167=_0x323b18,_0xfaa6a9={'jOXuv':function(_0x47f6fe){return _0x47f6fe();},'avuRi':function(_0x11896f,_0x1e8f55,_0x31748d){return _0x11896f(_0x1e8f55,_0x31748d);}},_0x96a4c4=_0xfaa6a9['jOXuv'](loadCache),_0xeb3cde=_0xfaa6a9[_0x88a167(0x13e)](getOrCreateSession,_0x96a4c4,_0x354f07);_0xeb3cde['prompted']=!![],saveCache(_0x96a4c4);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x334ded=_0x4a91;(function(_0x1d3eb8,_0x3ad684){const _0x7f8b5a=_0x4a91,_0xa6f6cf=_0x1d3eb8();while(!![]){try{const _0x1eefe8=parseInt(_0x7f8b5a(0xea))/0x1*(parseInt(_0x7f8b5a(0x12c))/0x2)+parseInt(_0x7f8b5a(0x133))/0x3*(parseInt(_0x7f8b5a(0x145))/0x4)+parseInt(_0x7f8b5a(0x102))/0x5+parseInt(_0x7f8b5a(0xe8))/0x6+-parseInt(_0x7f8b5a(0x12f))/0x7+parseInt(_0x7f8b5a(0xed))/0x8*(-parseInt(_0x7f8b5a(0xd6))/0x9)+-parseInt(_0x7f8b5a(0xe1))/0xa*(parseInt(_0x7f8b5a(0x103))/0xb);if(_0x1eefe8===_0x3ad684)break;else _0xa6f6cf['push'](_0xa6f6cf['shift']());}catch(_0x2c5e8c){_0xa6f6cf['push'](_0xa6f6cf['shift']());}}}(_0x2356,0xab2be));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir}from'./rangerRoot.js';export function getEnvDir(_0x4bfc7c){const _0x46ce2d=_0x4a91,_0x740aa9={'EAPJS':function(_0xf9289b,_0x4bfc34,_0x272d7e){return _0xf9289b(_0x4bfc34,_0x272d7e);},'xRNOx':'local','umtIn':function(_0x256213,_0x2cfb76){return _0x256213(_0x2cfb76);},'aCMDS':function(_0x3cffa3,_0x508b1c){return _0x3cffa3!==_0x508b1c;}},_0x53ffce=getRangerDir(),_0x56b430=join(_0x53ffce,'ci',_0x4bfc7c),_0x1bfd6e=join(_0x53ffce,'local',_0x4bfc7c),_0x99c354=_0x740aa9[_0x46ce2d(0x12b)](join,_0x53ffce,_0x4bfc7c),_0x3166a4=_0x740aa9[_0x46ce2d(0x12b)](join,_0x53ffce,_0x740aa9[_0x46ce2d(0x134)]),_0x5a9936=_0x740aa9['EAPJS'](join,_0x53ffce,'ci');if(existsSync(_0x56b430))return _0x56b430;if(_0x740aa9[_0x46ce2d(0xe7)](existsSync,_0x1bfd6e))return _0x1bfd6e;if(existsSync(_0x99c354)&&(_0x740aa9['aCMDS'](_0x99c354,_0x3166a4)&&_0x740aa9['aCMDS'](_0x99c354,_0x5a9936)?!![]:_0x740aa9[_0x46ce2d(0xe7)](hasLegacyProfileFiles,_0x99c354)))return _0x99c354;return _0x1bfd6e;}export function findExistingEnv(_0x3e0f8e,_0x2b4cc3){const _0x3400e3=_0x4a91,_0x35afc2={'AJfKu':function(_0x192e42){return _0x192e42();},'UBnMr':function(_0x39387c,_0x1accc6,_0x24a844){return _0x39387c(_0x1accc6,_0x24a844);},'pcsHF':'local','iEMzj':function(_0x2eab08,_0xd26a53,_0x3fd386,_0x404734){return _0x2eab08(_0xd26a53,_0x3fd386,_0x404734);},'azSsp':function(_0x10f9dd,_0x4635c9,_0x3ac77c,_0x1b78fd){return _0x10f9dd(_0x4635c9,_0x3ac77c,_0x1b78fd);},'DaiWk':'legacy','wmfbm':function(_0xe3251d,_0x464c2a,_0xa1222){return _0xe3251d(_0x464c2a,_0xa1222);},'hfeuo':function(_0x4453f7,_0x3356cc){return _0x4453f7(_0x3356cc);},'YuPrl':function(_0x116f58,_0x3e75b5){return _0x116f58(_0x3e75b5);}},_0x2ea84a=_0x2b4cc3?.['rangerDir']??_0x35afc2[_0x3400e3(0x147)](getRangerDir),_0x5b5e61=_0x2b4cc3?.[_0x3400e3(0x10f)]??['ci',_0x3400e3(0x144),_0x3400e3(0x10b)],_0x2fe323=_0x35afc2['UBnMr'](join,_0x2ea84a,_0x35afc2[_0x3400e3(0x135)]),_0x5f4b64=join(_0x2ea84a,'ci'),_0x1f10da=[{'location':'ci','path':_0x35afc2['iEMzj'](join,_0x2ea84a,'ci',_0x3e0f8e)},{'location':'local','path':_0x35afc2[_0x3400e3(0x14a)](join,_0x2ea84a,_0x3400e3(0x144),_0x3e0f8e)},{'location':_0x35afc2['DaiWk'],'path':_0x35afc2[_0x3400e3(0xd4)](join,_0x2ea84a,_0x3e0f8e)}];for(const _0x148446 of _0x1f10da){if(_0x5b5e61[_0x3400e3(0x13a)](_0x148446[_0x3400e3(0xff)])&&_0x35afc2['hfeuo'](existsSync,_0x148446['path'])){if(_0x148446[_0x3400e3(0xff)]===_0x35afc2['DaiWk']&&(_0x148446[_0x3400e3(0x10e)]===_0x2fe323||_0x148446[_0x3400e3(0x10e)]===_0x5f4b64)&&!_0x35afc2[_0x3400e3(0x149)](hasLegacyProfileFiles,_0x148446['path']))continue;return{'path':_0x148446['path'],'location':_0x148446['location']};}}return null;}function _0x4a91(_0x439770,_0x26bd73){_0x439770=_0x439770-0xd3;const _0x2356bc=_0x2356();let _0x4a9108=_0x2356bc[_0x439770];return _0x4a9108;}function hasLegacyProfileFiles(_0x49efc0){const _0x45ce70=_0x4a91,_0x21dcdf={'bsLio':function(_0x149ada,_0x4c4d24){return _0x149ada(_0x4c4d24);},'yaKZu':function(_0x3218e3,_0x4368e6,_0x5049b7){return _0x3218e3(_0x4368e6,_0x5049b7);},'UWokF':_0x45ce70(0x12d)};return _0x21dcdf[_0x45ce70(0x11d)](existsSync,join(_0x49efc0,_0x45ce70(0xf7)))||_0x21dcdf[_0x45ce70(0x11d)](existsSync,_0x21dcdf[_0x45ce70(0xf8)](join,_0x49efc0,_0x45ce70(0x129)))||existsSync(join(_0x49efc0,_0x21dcdf[_0x45ce70(0x139)]));}export function isEnvCi(_0x209181){const _0x3fc7e2=_0x4a91,_0x3b4225={'onMQd':function(_0x21e9b2,_0x56e9ab,_0x34e847,_0xa3db89){return _0x21e9b2(_0x56e9ab,_0x34e847,_0xa3db89);}};return existsSync(_0x3b4225[_0x3fc7e2(0xda)](join,getRangerDir(),'ci',_0x209181));}export async function cleanupTempFiles(_0x1a7f63){const _0x29fe5b=_0x4a91,_0x50c62e={'npVFt':function(_0x3ebb92,_0x52a2ff){return _0x3ebb92!==_0x52a2ff;}},_0x39e480=[_0x1a7f63[_0x29fe5b(0x107)],_0x1a7f63['configPath']][_0x29fe5b(0x12a)](Boolean);await Promise[_0x29fe5b(0xde)](_0x39e480['map'](_0x27790e=>unlink(_0x27790e)[_0x29fe5b(0xdd)](_0x340da2=>{const _0x47a7c5=_0x29fe5b;_0x50c62e['npVFt'](_0x340da2[_0x47a7c5(0xdb)],'ENOENT')&&console['warn'](_0x47a7c5(0x11f)+_0x27790e+':',_0x340da2[_0x47a7c5(0x10d)]);})));}export function getSettingsPath(_0x57279a){const _0x362f86=_0x4a91,_0x1a4162={'cvhgm':function(_0x287b9e,_0x2dc40b,_0x539bca){return _0x287b9e(_0x2dc40b,_0x539bca);}};return _0x1a4162[_0x362f86(0xdf)](join,getEnvDir(_0x57279a),_0x362f86(0xf7));}function _0x2356(){const _0x3b5a12=['tabs','message','path','locations','mEvAz','args','clipboard-read','ranger-config','pFezw','WITJr','KqImX','setupHeaders','yXFkJ','Failed\x20to\x20decrypt\x20auth\x20state:\x20','isArray','allowInsecureLocalhost','eRDLj','bsLio','getuid','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','iklqh','contextOptions','storageState','HWsHs','map','entries','IhIhM','fromEntries','DlOzk','auth.json','filter','EAPJS','2jMnYMY','auth.json.enc','browser','3446947NXODYp','.json','ENstt','storageStatePath','21RAWIMe','xRNOx','pcsHF','--disable-setuid-sandbox','laxqi','chromium','UWokF','includes','push','--allow-running-insecure-content','IAbTe','oiOjr','file','avzpn','extraHTTPHeaders','vFvnz','RRSTy','local','625632teBjgI','NDmcV','AJfKu','lzwAW','YuPrl','azSsp','stringify','object','wmfbm','userAgent','5266935tfPgPg','now','replace','FucbT','onMQd','code','cLqql','catch','all','cvhgm','Environment\x20variable\x20','10EEXSrq','nDrdU','DodyG','hMGzl','clipboard-write','vVxUz','umtIn','4545210ueaiMP','string','938389PBBdAH','ranger-auth-','safeMode','16cMLHcA','yyAUB','qTDJb','-cli.json','IcStC','rHndg','none','XkIZJ','sessions','TCbpS','settings.json','yaKZu','uAqYW','length','utf-8','cdpEndpoint','PpZIb','MivbR','location','MBXNC','dONjB','5854610xCTJbg','17575063GxDISz','PIZBq','pbWdY','boolean','tempAuthPath','headless','allow','pdf','legacy'];_0x2356=function(){return _0x3b5a12;};return _0x2356();}export async function loadSettings(_0x52d16f){const _0x3bcc01=_0x4a91,_0x17a3ec={'JNQOV':function(_0x191d00,_0x3df0d0){return _0x191d00(_0x3df0d0);},'gVLAb':_0x3bcc01(0xfb)},_0x14b63e=getSettingsPath(_0x52d16f);if(!_0x17a3ec['JNQOV'](existsSync,_0x14b63e))return{};try{const _0x48c166=await readFile(_0x14b63e,_0x17a3ec['gVLAb']);return JSON['parse'](_0x48c166);}catch{return{};}}export async function saveSettings(_0x4c9901,_0x10ec55){const _0x228689=_0x4a91,_0x4f6aaa={'OcQlJ':function(_0x55bfae,_0x4b065c){return _0x55bfae(_0x4b065c);},'voOSF':function(_0x1b1a48,_0x5c0d7d,_0xa822a5){return _0x1b1a48(_0x5c0d7d,_0xa822a5);}},_0x135679=_0x4f6aaa['OcQlJ'](getSettingsPath,_0x4c9901),_0x4d662f=_0x4f6aaa['OcQlJ'](dirname,_0x135679);!existsSync(_0x4d662f)&&await mkdir(_0x4d662f,{'recursive':!![]}),await _0x4f6aaa['voOSF'](writeFile,_0x135679,JSON[_0x228689(0x14b)](_0x10ec55,null,0x2));}export function resolveEnvVars(_0x761712){const _0x5622df=_0x4a91,_0x50afa3={'OhJts':function(_0x43ba1c,_0x4bc35f){return _0x43ba1c===_0x4bc35f;},'FucbT':function(_0x2d1072,_0x105561){return _0x2d1072===_0x105561;}};if(_0x50afa3['OhJts'](typeof _0x761712,_0x5622df(0xe9)))return _0x761712[_0x5622df(0xd8)](/\$\{(\w+)\}/g,(_0x364923,_0x15e4d2)=>{const _0x487f18=_0x5622df,_0x51634d=process['env'][_0x15e4d2];if(_0x50afa3['OhJts'](_0x51634d,undefined))throw new Error(_0x487f18(0xe0)+_0x15e4d2+'\x20is\x20not\x20set');return _0x51634d;});if(Array[_0x5622df(0x11a)](_0x761712))return _0x761712[_0x5622df(0x124)](resolveEnvVars);if(_0x761712&&_0x50afa3[_0x5622df(0xd9)](typeof _0x761712,'object'))return Object[_0x5622df(0x127)](Object[_0x5622df(0x125)](_0x761712)['map'](([_0x2727b8,_0x5bb3a5])=>[_0x2727b8,resolveEnvVars(_0x5bb3a5)]));return _0x761712;}const isRecord=_0x513555=>typeof _0x513555==='object'&&_0x513555!==null&&!Array[_0x334ded(0x11a)](_0x513555),asRecord=_0x4b403f=>isRecord(_0x4b403f)?_0x4b403f:undefined,mergeHeaders=(_0x380638,_0x4a43f9)=>{const _0x2b5644=_0x334ded,_0xde5c3b={'IAbTe':function(_0x1d141a,_0xa35b66){return _0x1d141a??_0xa35b66;}},_0x30be8c={..._0x380638??{},..._0xde5c3b[_0x2b5644(0x13d)](_0x4a43f9,{})};return Object['keys'](_0x30be8c)[_0x2b5644(0xfa)]?_0x30be8c:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x334ded(0x13c),'--unsafely-treat-insecure-origin-as-secure=http://localhost','--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x18f0a6,_0x4cb241={}){const _0x3f71ee=_0x334ded,_0x3fa2ed={'ENstt':function(_0x3a3f4a,_0x29e031){return _0x3a3f4a(_0x29e031);},'yXFkJ':function(_0x400884,_0x3453b6){return _0x400884(_0x3453b6);},'XVucl':function(_0x262470,_0x434bd4){return _0x262470===_0x434bd4;},'nouwc':_0x3f71ee(0xe9),'hutuz':function(_0x333cc9,_0x4679c4){return _0x333cc9(_0x4679c4);}},_0x1db078=_0x3fa2ed[_0x3f71ee(0x131)](asRecord,_0x18f0a6[_0x3f71ee(0x12e)]),_0x16de9c={..._0x3fa2ed[_0x3f71ee(0x118)](asRecord,_0x1db078?.['launchOptions'])??{}};typeof _0x4cb241['headless']===_0x3f71ee(0x106)&&(_0x16de9c[_0x3f71ee(0x108)]=_0x4cb241[_0x3f71ee(0x108)]);if(_0x18f0a6[_0x3f71ee(0xec)]){const _0x467d0d=_0x16de9c[_0x3f71ee(0x111)]??[],_0x14da75=SAFE_MODE_ARGS['filter'](_0x54b5fd=>!_0x467d0d['includes'](_0x54b5fd));_0x16de9c[_0x3f71ee(0x111)]=[..._0x467d0d,..._0x14da75];}if(_0x18f0a6[_0x3f71ee(0x11b)]){const _0x5f3331=_0x16de9c[_0x3f71ee(0x111)]??[],_0x840f51=ALLOW_LOCALHOST_ARGS['filter'](_0x59b6d6=>!_0x5f3331['includes'](_0x59b6d6));_0x16de9c[_0x3f71ee(0x111)]=[..._0x5f3331,..._0x840f51];}const _0x1cb4af={...asRecord(_0x1db078?.[_0x3f71ee(0x121)])??{}};_0x1cb4af['ignoreHTTPSErrors']=!![];_0x3fa2ed['XVucl'](typeof _0x18f0a6[_0x3f71ee(0xd5)],_0x3fa2ed['nouwc'])&&(_0x1cb4af[_0x3f71ee(0xd5)]=_0x18f0a6['userAgent']);const _0x381d2e=mergeHeaders(asRecord(_0x1cb4af[_0x3f71ee(0x141)]),_0x3fa2ed['hutuz'](asRecord,_0x18f0a6['headers']));return _0x381d2e?_0x1cb4af['extraHTTPHeaders']=_0x381d2e:delete _0x1cb4af[_0x3f71ee(0x141)],_0x4cb241[_0x3f71ee(0x132)]&&(_0x1cb4af['storageState']=_0x4cb241['storageStatePath']),{'launchOptions':_0x16de9c,'contextOptions':_0x1cb4af};}export async function buildPlaywrightConfig(_0x492dca,_0x400323,_0xe2a64e,_0x434f58){const _0x420882=_0x334ded,_0x3dd6ef={'LYCjq':'--no-sandbox','jKHFv':'chromium','avzpn':'clipboard-read','eRDLj':_0x420882(0xe5),'sGdqj':function(_0x2351b3,_0x3e0061,_0x357816){return _0x2351b3(_0x3e0061,_0x357816);},'PpZIb':'auth.json','nDrdU':function(_0xb0fed3,_0x275b8d){return _0xb0fed3(_0x275b8d);},'cLqql':function(_0x432238){return _0x432238();},'laxqi':function(_0x4a46c0){return _0x4a46c0();},'HzHZK':function(_0x43873d,_0x2831bf,_0x1a0c90,_0x2bbf35){return _0x43873d(_0x2831bf,_0x1a0c90,_0x2bbf35);},'qTDJb':'core','vFvnz':_0x420882(0x10c),'IcStC':'vision','jfjCO':_0x420882(0x109),'lzwAW':function(_0x220ac7,_0x35ac5a,_0x44fd86){return _0x220ac7(_0x35ac5a,_0x44fd86);},'rYkPY':_0x420882(0x113)},_0x3521f4=getEnvDir(_0x400323),_0xbfb0b3=join(_0x3521f4,_0x420882(0x12d)),_0xed0ae9=_0x3dd6ef['sGdqj'](join,_0x3521f4,_0x3dd6ef[_0x420882(0xfd)]);let _0x11cc64,_0x2a2ba0;if(_0x3dd6ef[_0x420882(0xe2)](existsSync,_0xbfb0b3))try{const _0x3502d5=await getToken();if(!_0x3502d5)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x9d9a8c=await _0x3dd6ef[_0x420882(0xe2)](readFile,_0xbfb0b3),_0x236a02=decrypt(_0x9d9a8c,_0x3502d5);_0x2a2ba0=_0x3dd6ef['sGdqj'](join,_0x3dd6ef['cLqql'](tmpdir),_0x420882(0xeb)+Date['now']()+'.json'),await writeFile(_0x2a2ba0,_0x236a02),_0x11cc64=_0x2a2ba0;}catch(_0x128fe7){const _0x896eff=_0x128fe7 instanceof Error?_0x128fe7['message']:String(_0x128fe7);throw new Error(_0x420882(0x119)+_0x896eff);}else existsSync(_0xed0ae9)&&(_0x11cc64=_0xed0ae9);const _0x1014d5=_0xe2a64e||_0x3dd6ef[_0x420882(0x137)](randomUUID),_0x54f3be=_0x3dd6ef['HzHZK'](join,_0x3dd6ef[_0x420882(0xdc)](getRangerDir),_0x420882(0xf5),_0x1014d5),_0x4086de=_0x3dd6ef['nDrdU'](Boolean,_0x492dca[_0x420882(0xfc)]),_0x18abfe=_0x4086de?{'browserName':_0x3dd6ef['jKHFv'],'cdpEndpoint':_0x492dca[_0x420882(0xfc)]}:((()=>{const _0x4ec23d=_0x420882,{launchOptions:_0x21a363,contextOptions:_0x177f75}=buildBrowserOptionsFromSettings(_0x492dca,{'headless':_0x434f58?![]:_0x492dca['headless']??!![],'storageStatePath':_0x11cc64});if(process['getuid']?.()===0x0){const _0x132cb6=[_0x3dd6ef['LYCjq'],'--disable-setuid-sandbox'],_0x37576a=_0x21a363[_0x4ec23d(0x111)]??[],_0x3d0854=_0x132cb6['filter'](_0x13634e=>!_0x37576a['includes'](_0x13634e));_0x21a363[_0x4ec23d(0x111)]=[..._0x37576a,..._0x3d0854];}return{'isolated':!![],'browserName':_0x3dd6ef['jKHFv'],'launchOptions':_0x21a363,'contextOptions':{..._0x177f75,'permissions':[_0x3dd6ef[_0x4ec23d(0x140)],_0x3dd6ef[_0x4ec23d(0x11c)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0xedcf1c={'name':_0x400323,'browser':_0x18abfe,'capabilities':[_0x3dd6ef[_0x420882(0xef)],_0x3dd6ef[_0x420882(0x142)],'install',_0x420882(0x10a),_0x3dd6ef[_0x420882(0xf1)]],'imageResponses':_0x3dd6ef['jfjCO'],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x54f3be};if(!_0x4086de){const _0x37f56f=_0xedcf1c['browser'],_0x32b533=_0x37f56f['contextOptions'];if(_0x32b533[_0x420882(0xd5)]===undefined)delete _0x32b533['userAgent'];if(_0x32b533[_0x420882(0x122)]===undefined)delete _0x32b533[_0x420882(0x122)];}const _0x5cd22=_0x3dd6ef[_0x420882(0x148)](join,_0x3dd6ef['laxqi'](tmpdir),_0x3dd6ef['rYkPY']);!existsSync(_0x5cd22)&&await mkdir(_0x5cd22,{'recursive':!![]});const _0x45a95f=_0x3dd6ef['sGdqj'](join,_0x5cd22,_0x400323+'-'+Date['now']()+_0x420882(0x130));return await writeFile(_0x45a95f,JSON['stringify'](_0xedcf1c,null,0x2)),{'configPath':_0x45a95f,'tempAuthPath':_0x2a2ba0};}export async function buildPlaywrightCliConfig(_0x519ddf,_0x574549,_0x251046,_0x3010eb){const _0x17fb2d=_0x334ded,_0x27ff5a={'yyAUB':function(_0x2de110,_0x143772){return _0x2de110===_0x143772;},'MBXNC':'--no-sandbox','DodyG':function(_0x546768,_0x52c0fe){return _0x546768(_0x52c0fe);},'RIwzu':function(_0x2f5383,_0x619773,_0xb5e7bf){return _0x2f5383(_0x619773,_0xb5e7bf);},'uAqYW':function(_0x59e65e,_0x3f5831,_0x974df){return _0x59e65e(_0x3f5831,_0x974df);},'pFezw':function(_0x11df2e){return _0x11df2e();},'XkIZJ':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','vVxUz':function(_0x7a79cb,_0x3e9c70,_0x812661){return _0x7a79cb(_0x3e9c70,_0x812661);},'zYloi':function(_0x44fef2,_0x21cb4e,_0x1d2578){return _0x44fef2(_0x21cb4e,_0x1d2578);},'oiOjr':function(_0x18ff63,_0x512fc0){return _0x18ff63 instanceof _0x512fc0;},'HWsHs':function(_0x39eefb,_0x1619fc){return _0x39eefb(_0x1619fc);},'KGtCU':function(_0x4c23a1){return _0x4c23a1();},'tkqFn':function(_0x874cbb,_0x182022,_0x1df0b5,_0x3c6fa4){return _0x874cbb(_0x182022,_0x1df0b5,_0x3c6fa4);},'rHndg':_0x17fb2d(0xf5),'RRSTy':function(_0x3f4cd7,_0x4225bd){return _0x3f4cd7===_0x4225bd;},'zzZFJ':_0x17fb2d(0x13f),'PIZBq':_0x17fb2d(0xf3),'NDmcV':function(_0x56c99a){return _0x56c99a();},'TCbpS':'ranger-config'},_0x20d38e=_0x27ff5a['DodyG'](getEnvDir,_0x574549),_0x4b09ca=_0x27ff5a['RIwzu'](join,_0x20d38e,_0x17fb2d(0x12d)),_0x8f60ab=_0x27ff5a[_0x17fb2d(0xf9)](join,_0x20d38e,'auth.json');let _0x19cd84,_0x3905aa;if(existsSync(_0x4b09ca))try{const _0x2f6d49=await _0x27ff5a[_0x17fb2d(0x114)](getToken);if(!_0x2f6d49)throw new Error(_0x27ff5a[_0x17fb2d(0xf4)]);const _0x145aee=await readFile(_0x4b09ca),_0x398ab3=_0x27ff5a[_0x17fb2d(0xe6)](decrypt,_0x145aee,_0x2f6d49);_0x3905aa=_0x27ff5a[_0x17fb2d(0xe6)](join,_0x27ff5a['pFezw'](tmpdir),_0x17fb2d(0xeb)+Date[_0x17fb2d(0xd7)]()+_0x17fb2d(0x130)),await _0x27ff5a['zYloi'](writeFile,_0x3905aa,_0x398ab3),_0x19cd84=_0x3905aa;}catch(_0x38cda){const _0x1fa2ed=_0x27ff5a[_0x17fb2d(0x13e)](_0x38cda,Error)?_0x38cda[_0x17fb2d(0x10d)]:_0x27ff5a[_0x17fb2d(0xe3)](String,_0x38cda);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x1fa2ed);}else _0x27ff5a[_0x17fb2d(0x123)](existsSync,_0x8f60ab)&&(_0x19cd84=_0x8f60ab);const _0x12408d=_0x251046||_0x27ff5a['KGtCU'](randomUUID),_0x335b84=_0x27ff5a['tkqFn'](join,getRangerDir(),_0x27ff5a[_0x17fb2d(0xf2)],_0x12408d),_0x347341=Boolean(_0x519ddf[_0x17fb2d(0xfc)]),_0x1c0541=_0x347341?{'browserName':_0x17fb2d(0x138),'cdpEndpoint':_0x519ddf['cdpEndpoint']}:((()=>{const _0x47ad7a=_0x17fb2d,{launchOptions:_0xd46611,contextOptions:_0x34c23d}=buildBrowserOptionsFromSettings(_0x519ddf,{'headless':_0x3010eb?![]:_0x519ddf[_0x47ad7a(0x108)]??!![],'storageStatePath':_0x19cd84});if(_0x27ff5a[_0x47ad7a(0xee)](process[_0x47ad7a(0x11e)]?.(),0x0)){const _0x5b1980=[_0x27ff5a[_0x47ad7a(0x100)],_0x47ad7a(0x136)],_0x5b4462=_0xd46611['args']??[],_0x334924=_0x5b1980[_0x47ad7a(0x12a)](_0x5b317b=>!_0x5b4462['includes'](_0x5b317b));_0xd46611[_0x47ad7a(0x111)]=[..._0x5b4462,..._0x334924];}return{'isolated':!![],'browserName':_0x47ad7a(0x138),'launchOptions':_0xd46611,'contextOptions':{..._0x34c23d,'permissions':[_0x47ad7a(0x112),_0x47ad7a(0xe5)],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x347341){const _0x532795=_0x1c0541[_0x17fb2d(0x121)];if(_0x27ff5a[_0x17fb2d(0x143)](_0x532795['userAgent'],undefined))delete _0x532795[_0x17fb2d(0xd5)];if(_0x532795[_0x17fb2d(0x122)]===undefined)delete _0x532795['storageState'];}const _0x3fc757={'browser':_0x1c0541,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x335b84,'outputMode':_0x27ff5a['zzZFJ'],'codegen':_0x27ff5a[_0x17fb2d(0x104)]},_0x3cf43c=join(_0x27ff5a[_0x17fb2d(0x146)](tmpdir),_0x27ff5a[_0x17fb2d(0xf6)]);!existsSync(_0x3cf43c)&&await mkdir(_0x3cf43c,{'recursive':!![]});const _0x19e3b5=join(_0x3cf43c,_0x574549+'-'+Date['now']()+_0x17fb2d(0xf0));return await writeFile(_0x19e3b5,JSON['stringify'](_0x3fc757,null,0x2)),{'configPath':_0x19e3b5,'tempAuthPath':_0x3905aa};}export function getNestedValue(_0x3e7177,_0x199401){const _0x1c7239=_0x334ded,_0x203c9b={'WITJr':function(_0x5d883a,_0x294dfd){return _0x5d883a(_0x294dfd);},'hMGzl':function(_0x100a2f,_0x4e186e){return _0x100a2f===_0x4e186e;},'nKnPJ':'object'},_0x440c81=_0x203c9b[_0x1c7239(0x115)](parseKeyPath,_0x199401);let _0x4ea54c=_0x3e7177;for(const _0xc15113 of _0x440c81){if(_0x4ea54c===null||_0x203c9b[_0x1c7239(0xe4)](_0x4ea54c,undefined)||typeof _0x4ea54c!==_0x203c9b['nKnPJ'])return undefined;_0x4ea54c=_0x4ea54c[_0xc15113];}return _0x4ea54c;}export function setNestedValue(_0x17f8bd,_0x194acc,_0x10e445){const _0xf817b9=_0x334ded,_0x571b20={'DlOzk':function(_0x285eaa,_0x5da29a){return _0x285eaa(_0x5da29a);},'vIwAA':function(_0x18c29a,_0x26a42f){return _0x18c29a-_0x26a42f;}},_0x2d1e3a=_0x571b20[_0xf817b9(0x128)](parseKeyPath,_0x194acc);let _0x32eaa8=_0x17f8bd;for(let _0x1d37fb=0x0;_0x1d37fb<_0x571b20['vIwAA'](_0x2d1e3a[_0xf817b9(0xfa)],0x1);_0x1d37fb++){const _0x51a463=_0x2d1e3a[_0x1d37fb];(!(_0x51a463 in _0x32eaa8)||typeof _0x32eaa8[_0x51a463]!==_0xf817b9(0xd3))&&(_0x32eaa8[_0x51a463]={}),_0x32eaa8=_0x32eaa8[_0x51a463];}_0x32eaa8[_0x2d1e3a[_0x2d1e3a['length']-0x1]]=_0x10e445;}export function deleteNestedValue(_0x3ab5fd,_0x5de17d){const _0x587661=_0x334ded,_0x3210c0={'iklqh':function(_0x1a485b,_0x188006){return _0x1a485b(_0x188006);},'IhIhM':function(_0x552028,_0x2f055a){return _0x552028-_0x2f055a;},'jHbSJ':function(_0x4029ea,_0x359f6b){return _0x4029ea===_0x359f6b;},'KqImX':function(_0x8fd443,_0x56b933){return _0x8fd443===_0x56b933;},'dONjB':function(_0x2c777e,_0xe32775){return _0x2c777e!==_0xe32775;},'mEvAz':_0x587661(0xd3),'pbWdY':function(_0x4f754d,_0x311d5f){return _0x4f754d in _0x311d5f;}},_0x1b37cf=_0x3210c0[_0x587661(0x120)](parseKeyPath,_0x5de17d);let _0x573303=_0x3ab5fd;for(let _0xde761b=0x0;_0xde761b<_0x3210c0['IhIhM'](_0x1b37cf['length'],0x1);_0xde761b++){if(_0x3210c0['jHbSJ'](_0x573303,null)||_0x3210c0[_0x587661(0x116)](_0x573303,undefined)||_0x3210c0[_0x587661(0x101)](typeof _0x573303,_0x587661(0xd3)))return![];_0x573303=_0x573303[_0x1b37cf[_0xde761b]];}if(_0x3210c0['jHbSJ'](_0x573303,null)||_0x3210c0['jHbSJ'](_0x573303,undefined)||typeof _0x573303!==_0x3210c0[_0x587661(0x110)])return![];const _0x545911=_0x1b37cf[_0x3210c0[_0x587661(0x126)](_0x1b37cf[_0x587661(0xfa)],0x1)];if(_0x3210c0[_0x587661(0x105)](_0x545911,_0x573303))return delete _0x573303[_0x545911],!![];return![];}function parseKeyPath(_0xeaeb28){const _0x19cffb=_0x334ded,_0x4a9814={'ZHhjL':function(_0xb26dd1,_0x5f3bf4){return _0xb26dd1===_0x5f3bf4;},'vvgzN':_0x19cffb(0x117)},_0x238468=_0xeaeb28['split']('.');return _0x4a9814['ZHhjL'](_0x238468[0x0],'header')&&(_0x238468[0x0]='headers'),_0x238468[0x0]==='setupHeader'&&(_0x238468[0x0]=_0x4a9814['vvgzN']),_0x238468;}export function formatSettings(_0x92b5c4,_0x263e6c=0x0){const _0x554551=_0x334ded,_0x20dba0={'MivbR':function(_0x5e5a5b,_0x5f5ab7){return _0x5e5a5b===_0x5f5ab7;},'FRCuu':_0x554551(0xd3),'kGbuO':function(_0x3534b6,_0x2d38f3){return _0x3534b6!==_0x2d38f3;}},_0xcbd8fb=[],_0x1599fc='\x20\x20'['repeat'](_0x263e6c);for(const [_0x29267f,_0x3475a0]of Object[_0x554551(0x125)](_0x92b5c4)){if(_0x20dba0[_0x554551(0xfe)](_0x3475a0,undefined))continue;if(_0x20dba0['MivbR'](typeof _0x3475a0,_0x20dba0['FRCuu'])&&_0x20dba0['kGbuO'](_0x3475a0,null)){_0xcbd8fb[_0x554551(0x13b)](''+_0x1599fc+_0x29267f+':');for(const [_0x24412f,_0x256292]of Object[_0x554551(0x125)](_0x3475a0)){_0xcbd8fb['push'](_0x1599fc+'\x20\x20'+_0x24412f+':\x20'+_0x256292);}}else _0xcbd8fb['push'](''+_0x1599fc+_0x29267f+':\x20'+_0x3475a0);}return _0xcbd8fb['join']('\x0a');}
1
+ const _0x107345=_0xfe5e;(function(_0x4f2b9a,_0x482f51){const _0x30b252=_0xfe5e,_0x35e611=_0x4f2b9a();while(!![]){try{const _0x3185a3=-parseInt(_0x30b252(0xa8))/0x1+-parseInt(_0x30b252(0xf0))/0x2+parseInt(_0x30b252(0xfb))/0x3*(parseInt(_0x30b252(0xe5))/0x4)+parseInt(_0x30b252(0xed))/0x5+-parseInt(_0x30b252(0xa1))/0x6+parseInt(_0x30b252(0xde))/0x7+parseInt(_0x30b252(0xe2))/0x8;if(_0x3185a3===_0x482f51)break;else _0x35e611['push'](_0x35e611['shift']());}catch(_0x3ea431){_0x35e611['push'](_0x35e611['shift']());}}}(_0x5a8d,0x8a4dd));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';function _0x5a8d(){const _0x5c313b=['--disable-setuid-sandbox','TaagK','eUlQC','GPdkz','message','fNGJt','mMhpv','tabs','LthUU','location','none','file','sicVb','entries','VqfjJ','xPpvG','aXyCK','map','headless','lWBfM','browser','OKoMA','string','ranger-config','IDCjW','stagehand','EDzUw','nova-user-data','baseUrl','push','tRhAD','YBSMm','clipboard-read','2598648gobjBK','includes','NaLrS','--allow-insecure-localhost','YFskt','cIWWh','chromium','153414XMKzkp','headers','pvuri','--unsafely-treat-insecure-origin-as-secure=http://localhost','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','startsWith','GCFPU','RROzg','object','XyKwN','.json','--allow-running-insecure-content','replace','storageState','mpjCB','split','-cli','MNsTc','setupHeader','filter','nRueT','settings.json','zIIcs','eQfHK','keys','legacy','auth.json','configPath','repeat','gCbDk','tejpE','FNPiS','ZSKsw','IdsPo','TskKq','join','WjLfA','parse','eNGoO','userAgent','setupHeaders','forWrite','local','vQriU','FRgYY','rangerDir','safeMode','extraHTTPHeaders','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','Refusing\x20to\x20write\x20profile\x20\x22','contextOptions','getuid','stringify','executablePath','5872867GiRTqj','auth.json.enc','env','MEnPK','219920PIjOEd','ngICg','xXnJf','6396aNJkZJ','header','allowInsecureLocalhost','lhMNK','DMUHj','xOliD','--disable-web-security','oTPYx','2705580QWoAxx','playwright-cli','GbQLl','691430BHSFWn','args','catch','fxPwH','lROYX','path','KogZR','JafMr','riuxn','locations','storageStatePath','171vRNuyo','Failed\x20to\x20decrypt\x20auth\x20state:\x20','Environment\x20variable\x20','FZqQY','LlkIe','--no-sandbox','--disable-features=WebBluetooth'];_0x5a8d=function(){return _0x5c313b;};return _0x5a8d();}import{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x5c7901,_0x250782){const _0x1f5d57=_0xfe5e,_0x3c7476={'MNsTc':function(_0x1e33fc,_0x3836fb,_0x38c690,_0x20980b){return _0x1e33fc(_0x3836fb,_0x38c690,_0x20980b);},'sAGrq':function(_0x589a2f,_0x124993,_0x5190c7,_0x2b97f8){return _0x589a2f(_0x124993,_0x5190c7,_0x2b97f8);},'CrebY':function(_0x4b18b4,_0x5269de,_0x2b9040){return _0x4b18b4(_0x5269de,_0x2b9040);},'riuxn':function(_0x2eb7bc,_0x1cb3c7,_0x30a112){return _0x2eb7bc(_0x1cb3c7,_0x30a112);},'lROYX':function(_0x442242,_0x1bc113){return _0x442242(_0x1bc113);},'cIWWh':function(_0x5b10c7,_0x211c9b){return _0x5b10c7(_0x211c9b);},'fNGJt':function(_0x1fe812,_0x2e31df){return _0x1fe812!==_0x2e31df;},'xPpvG':function(_0x2a48d1,_0x3c39c3){return _0x2a48d1(_0x3c39c3);}},_0x1f3ecc=_0x3c7476[_0x1f5d57(0xb9)](join,_0x250782,'ci',_0x5c7901),_0xcbe86d=_0x3c7476['sAGrq'](join,_0x250782,_0x1f5d57(0xd2),_0x5c7901),_0x32a4a4=_0x3c7476['CrebY'](join,_0x250782,_0x5c7901),_0x58962f=_0x3c7476[_0x1f5d57(0xf8)](join,_0x250782,_0x1f5d57(0xd2)),_0x3c88e4=join(_0x250782,'ci');if(_0x3c7476[_0x1f5d57(0xf4)](existsSync,_0x1f3ecc))return _0x1f3ecc;if(existsSync(_0xcbe86d))return _0xcbe86d;if(_0x3c7476[_0x1f5d57(0xa6)](existsSync,_0x32a4a4)&&(_0x3c7476[_0x1f5d57(0x107)](_0x32a4a4,_0x58962f)&&_0x32a4a4!==_0x3c88e4?!![]:_0x3c7476[_0x1f5d57(0x111)](hasLegacyProfileFiles,_0x32a4a4)))return _0x32a4a4;return null;}export function getEnvDir(_0x28b8e6,_0x4771e5={}){const _0x29ac2d=_0xfe5e,_0x2cf45b={'eUlQC':function(_0x133ce5,_0x567084){return _0x133ce5(_0x567084);},'dEvaF':function(_0xea51bc,_0x5b9b5b){return _0xea51bc!==_0x5b9b5b;},'LHujF':function(_0x4e8baf,_0x1b9fa7,_0x402e8e){return _0x4e8baf(_0x1b9fa7,_0x402e8e);},'OKoMA':function(_0x1a2afb,_0x2fc9f5,_0xe7702a,_0x53da66){return _0x1a2afb(_0x2fc9f5,_0xe7702a,_0x53da66);},'xVDKN':function(_0xd108ee,_0x8f63f2,_0x4e7584){return _0xd108ee(_0x8f63f2,_0x4e7584);}},_0x19d604=getRangerDir(),_0x525a02=findEnvInRoot(_0x28b8e6,_0x19d604);if(_0x525a02){if(_0x4771e5[_0x29ac2d(0xd1)]&&_0x2cf45b[_0x29ac2d(0x104)](isLegacyEnvPath,_0x525a02))throw legacyWriteError(_0x28b8e6,_0x525a02);return _0x525a02;}const _0x32b615=getRangerHomeDir();if(_0x2cf45b['dEvaF'](_0x32b615,_0x19d604)){const _0x3dd6c9=findEnvInRoot(_0x28b8e6,_0x32b615);if(_0x3dd6c9){if(_0x4771e5[_0x29ac2d(0xd1)]&&_0x2cf45b['eUlQC'](isLegacyEnvPath,_0x3dd6c9))throw _0x2cf45b['LHujF'](legacyWriteError,_0x28b8e6,_0x3dd6c9);return _0x3dd6c9;}}const _0x3f4a66=_0x2cf45b[_0x29ac2d(0x95)](join,_0x32b615,'local',_0x28b8e6);if(_0x4771e5['forWrite'])throw _0x2cf45b['xVDKN'](legacyWriteError,_0x28b8e6,_0x3f4a66);return _0x3f4a66;}function isLegacyEnvPath(_0x456b7d){const _0x229a00=_0xfe5e,_0x5dacb3={'BtnqP':function(_0x59743e){return _0x59743e();},'XyKwN':function(_0x43f534,_0x27664b){return _0x43f534+_0x27664b;},'aXyCK':function(_0x45c44f,_0x34b5b3){return _0x45c44f===_0x34b5b3;}},_0x4e5b58=getRangerDir(),_0x22d039=_0x5dacb3['BtnqP'](getRangerHomeDir);for(const _0x418b24 of new Set([_0x4e5b58,_0x22d039])){const _0x507d72=_0x418b24['endsWith']('/')?_0x418b24:_0x5dacb3[_0x229a00(0xb1)](_0x418b24,'/');if(_0x5dacb3[_0x229a00(0x112)](_0x456b7d,_0x418b24)||_0x456b7d[_0x229a00(0xad)](_0x507d72))return!![];}return![];}function _0xfe5e(_0x21453d,_0x24b39f){_0x21453d=_0x21453d-0x91;const _0x5a8d58=_0x5a8d();let _0xfe5eda=_0x5a8d58[_0x21453d];return _0xfe5eda;}function legacyWriteError(_0x468465,_0x382fd3){const _0x527623=_0xfe5e,_0x7c2970={'cUEIz':function(_0x596d49,_0x41c1db){return _0x596d49+_0x41c1db;},'RURnV':function(_0x9db391,_0x3efbbc){return _0x9db391+_0x3efbbc;}};return new Error(_0x7c2970['cUEIz'](_0x7c2970['cUEIz'](_0x7c2970['RURnV'](_0x527623(0xd9)+_0x468465+'\x22\x20to\x20legacy\x20path\x20'+_0x382fd3+'.\x0a',_0x527623(0xac)),'\x20\x20ranger\x20profile\x20add\x20<name>\x0a'),_0x527623(0xd8)));}export function findExistingEnv(_0x29bd2b,_0x20492e){const _0x359bdc=_0xfe5e,_0xc124a1={'lbuUU':function(_0x5583f4){return _0x5583f4();},'LthUU':'local','IdsPo':function(_0x35faad,_0x46e1f5,_0x56a8ed){return _0x35faad(_0x46e1f5,_0x56a8ed);},'Fbjts':function(_0x1c0a3a,_0x5f3e9a){return _0x1c0a3a(_0x5f3e9a);},'LlkIe':function(_0xf142bd,_0x20dc9c){return _0xf142bd===_0x20dc9c;},'pbpik':function(_0x251044,_0x17fc5d){return _0x251044===_0x17fc5d;}},_0x39d294=_0x20492e?.[_0x359bdc(0xd5)],_0x215e24=_0x39d294?[_0x39d294]:[_0xc124a1['lbuUU'](getRangerDir),_0xc124a1['lbuUU'](getRangerHomeDir)]['filter']((_0x3b9e5,_0x1e12f1,_0x2fb0c5)=>_0x2fb0c5['indexOf'](_0x3b9e5)===_0x1e12f1),_0x57aaee=_0x20492e?.[_0x359bdc(0xf9)]??['ci','local',_0x359bdc(0xc1)];for(const _0x2d5bbf of _0x215e24){const _0x2e2c8a=join(_0x2d5bbf,_0xc124a1['LthUU']),_0x87355e=join(_0x2d5bbf,'ci'),_0x5b20f3=[{'location':'ci','path':join(_0x2d5bbf,'ci',_0x29bd2b)},{'location':'local','path':join(_0x2d5bbf,_0xc124a1[_0x359bdc(0x10a)],_0x29bd2b)},{'location':_0x359bdc(0xc1),'path':_0xc124a1[_0x359bdc(0xc9)](join,_0x2d5bbf,_0x29bd2b)}];for(const _0x4b4313 of _0x5b20f3){if(_0x57aaee[_0x359bdc(0xa2)](_0x4b4313[_0x359bdc(0x10b)])&&_0xc124a1['Fbjts'](existsSync,_0x4b4313[_0x359bdc(0xf5)])){if(_0xc124a1[_0x359bdc(0xff)](_0x4b4313['location'],'legacy')&&(_0xc124a1['pbpik'](_0x4b4313[_0x359bdc(0xf5)],_0x2e2c8a)||_0x4b4313['path']===_0x87355e)&&!hasLegacyProfileFiles(_0x4b4313[_0x359bdc(0xf5)]))continue;return{'path':_0x4b4313[_0x359bdc(0xf5)],'location':_0x4b4313[_0x359bdc(0x10b)]};}}}return null;}function hasLegacyProfileFiles(_0x219c32){const _0x5b1c33=_0xfe5e,_0x5d1464={'lRNoU':function(_0x22395d,_0x4e7d2a){return _0x22395d(_0x4e7d2a);},'pvuri':function(_0x484c2d,_0x4bae3b,_0x4824ee){return _0x484c2d(_0x4bae3b,_0x4824ee);},'zIIcs':'auth.json.enc'};return _0x5d1464['lRNoU'](existsSync,_0x5d1464[_0x5b1c33(0xaa)](join,_0x219c32,'settings.json'))||existsSync(_0x5d1464['pvuri'](join,_0x219c32,_0x5b1c33(0xc2)))||_0x5d1464['lRNoU'](existsSync,join(_0x219c32,_0x5d1464[_0x5b1c33(0xbe)]));}export function isEnvCi(_0x4194eb){const _0x5847e1=_0xfe5e,_0x3e6311={'GPdkz':function(_0x43bd3e,_0x181427){return _0x43bd3e(_0x181427);},'eNGoO':function(_0x1cc899){return _0x1cc899();},'EDzUw':function(_0x5c3ad1,_0x50c7ca){return _0x5c3ad1!==_0x50c7ca;},'YXPXY':function(_0x4567b2,_0x5dba91,_0x129938,_0x42ef69){return _0x4567b2(_0x5dba91,_0x129938,_0x42ef69);}};if(_0x3e6311[_0x5847e1(0x105)](existsSync,join(getRangerDir(),'ci',_0x4194eb)))return!![];const _0x4c5d48=_0x3e6311[_0x5847e1(0xce)](getRangerHomeDir);if(_0x3e6311[_0x5847e1(0x9a)](_0x4c5d48,_0x3e6311[_0x5847e1(0xce)](getRangerDir))&&_0x3e6311[_0x5847e1(0x105)](existsSync,_0x3e6311['YXPXY'](join,_0x4c5d48,'ci',_0x4194eb)))return!![];return![];}export async function cleanupTempFiles(_0x5139ab){const _0x53db94=_0xfe5e,_0x3a5d60={'IlzIT':function(_0x3fcfdb,_0x253ba8){return _0x3fcfdb!==_0x253ba8;},'TskKq':'ENOENT'},_0x3f5c2b=[_0x5139ab['tempAuthPath'],_0x5139ab[_0x53db94(0xc3)]][_0x53db94(0xbb)](Boolean);await Promise['all'](_0x3f5c2b[_0x53db94(0x91)](_0x1571f0=>unlink(_0x1571f0)[_0x53db94(0xf2)](_0x242b63=>{const _0x20e81e=_0x53db94;_0x3a5d60['IlzIT'](_0x242b63['code'],_0x3a5d60[_0x20e81e(0xca)])&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x1571f0+':',_0x242b63['message']);})));}export function getSettingsPath(_0x169edf){const _0x4d46f0=_0xfe5e;return join(getEnvDir(_0x169edf),_0x4d46f0(0xbd));}export async function loadSettings(_0x2e151c){const _0x5efc99=_0xfe5e,_0x323ee4={'vQriU':function(_0x1d345f,_0xa4fa54,_0x1b8bf9){return _0x1d345f(_0xa4fa54,_0x1b8bf9);},'GCFPU':'utf-8'},_0x493c35=getSettingsPath(_0x2e151c);if(!existsSync(_0x493c35))return{};try{const _0x55fa44=await _0x323ee4[_0x5efc99(0xd3)](readFile,_0x493c35,_0x323ee4[_0x5efc99(0xae)]);return JSON[_0x5efc99(0xcd)](_0x55fa44);}catch{return{};}}export async function saveSettings(_0x2fb2c0,_0x563a1e){const _0x4e6b41=_0xfe5e,_0x1089ee={'xOliD':function(_0x42845e,_0x399e6f){return _0x42845e(_0x399e6f);},'FxtDJ':function(_0x1505e0,_0x5868a7){return _0x1505e0(_0x5868a7);}},_0x2123b1=_0x1089ee[_0x4e6b41(0xea)](getSettingsPath,_0x2fb2c0),_0x26d05a=dirname(_0x2123b1);!_0x1089ee['FxtDJ'](existsSync,_0x26d05a)&&await mkdir(_0x26d05a,{'recursive':!![]}),await writeFile(_0x2123b1,JSON[_0x4e6b41(0xdc)](_0x563a1e,null,0x2));}export function resolveEnvVars(_0x127ea9){const _0x372eb6=_0xfe5e,_0x59e9c7={'lWBfM':function(_0x572e38,_0x1f5d27){return _0x572e38===_0x1f5d27;},'Sngul':_0x372eb6(0xb0)};if(typeof _0x127ea9===_0x372eb6(0x96))return _0x127ea9[_0x372eb6(0xb4)](/\$\{(\w+)\}/g,(_0x462bc8,_0x4195af)=>{const _0x4962bb=_0x372eb6,_0x49ea0a=process[_0x4962bb(0xe0)][_0x4195af];if(_0x59e9c7[_0x4962bb(0x93)](_0x49ea0a,undefined))throw new Error(_0x4962bb(0xfd)+_0x4195af+'\x20is\x20not\x20set');return _0x49ea0a;});if(Array['isArray'](_0x127ea9))return _0x127ea9[_0x372eb6(0x91)](resolveEnvVars);if(_0x127ea9&&typeof _0x127ea9===_0x59e9c7['Sngul'])return Object['fromEntries'](Object[_0x372eb6(0x10f)](_0x127ea9)['map'](([_0x1cfc88,_0x4c6a4c])=>[_0x1cfc88,resolveEnvVars(_0x4c6a4c)]));return _0x127ea9;}const isRecord=_0x5813bb=>typeof _0x5813bb==='object'&&_0x5813bb!==null&&!Array['isArray'](_0x5813bb),asRecord=_0x43f466=>isRecord(_0x43f466)?_0x43f466:undefined,mergeHeaders=(_0x310cdc,_0x16e65d)=>{const _0x220f2b=_0xfe5e,_0x11c331={'FNPiS':function(_0x4d3de6,_0x364400){return _0x4d3de6??_0x364400;}},_0x4f4833={..._0x11c331[_0x220f2b(0xc7)](_0x310cdc,{}),..._0x16e65d??{}};return Object[_0x220f2b(0xc0)](_0x4f4833)['length']?_0x4f4833:undefined;},SAFE_MODE_ARGS=[_0x107345(0x101)],ALLOW_LOCALHOST_ARGS=[_0x107345(0xeb),_0x107345(0xb3),_0x107345(0xab),_0x107345(0xa4)];export function buildBrowserOptionsFromSettings(_0x53bac3,_0x44fd46={}){const _0x10b2b5=_0x107345,_0x11d3ce={'NaLrS':function(_0x1db897,_0x3d5565){return _0x1db897(_0x3d5565);},'qOGZX':function(_0x51560b,_0xf0c771){return _0x51560b===_0xf0c771;},'NcBjK':_0x10b2b5(0x96),'dVnsQ':function(_0x257db2,_0x339fd4){return _0x257db2(_0x339fd4);}},_0x1f71cc=_0x11d3ce[_0x10b2b5(0xa3)](asRecord,_0x53bac3[_0x10b2b5(0x94)]),_0xfac1ea={..._0x11d3ce[_0x10b2b5(0xa3)](asRecord,_0x1f71cc?.['launchOptions'])??{}};typeof _0x44fd46[_0x10b2b5(0x92)]==='boolean'&&(_0xfac1ea[_0x10b2b5(0x92)]=_0x44fd46[_0x10b2b5(0x92)]);if(_0x53bac3['safeMode']){const _0x73e5e2=_0xfac1ea[_0x10b2b5(0xf1)]??[],_0x304aae=SAFE_MODE_ARGS['filter'](_0x3a10b8=>!_0x73e5e2['includes'](_0x3a10b8));_0xfac1ea['args']=[..._0x73e5e2,..._0x304aae];}if(_0x53bac3[_0x10b2b5(0xe7)]){const _0x4b8527=_0xfac1ea[_0x10b2b5(0xf1)]??[],_0x3ba0a8=ALLOW_LOCALHOST_ARGS[_0x10b2b5(0xbb)](_0x4998db=>!_0x4b8527['includes'](_0x4998db));_0xfac1ea[_0x10b2b5(0xf1)]=[..._0x4b8527,..._0x3ba0a8];}const _0x111d32={...asRecord(_0x1f71cc?.[_0x10b2b5(0xda)])??{}};_0x111d32['ignoreHTTPSErrors']=!![];_0x11d3ce['qOGZX'](typeof _0x53bac3['userAgent'],_0x11d3ce['NcBjK'])&&(_0x111d32[_0x10b2b5(0xcf)]=_0x53bac3['userAgent']);const _0x30a543=mergeHeaders(asRecord(_0x111d32[_0x10b2b5(0xd7)]),_0x11d3ce['dVnsQ'](asRecord,_0x53bac3['headers']));return _0x30a543?_0x111d32[_0x10b2b5(0xd7)]=_0x30a543:delete _0x111d32[_0x10b2b5(0xd7)],_0x44fd46[_0x10b2b5(0xfa)]&&(_0x111d32[_0x10b2b5(0xb5)]=_0x44fd46[_0x10b2b5(0xfa)]),{'launchOptions':_0xfac1ea,'contextOptions':_0x111d32};}export async function resolveProfileStorageState(_0x2e6c57){const _0x8d8396=_0x107345,_0x58c9bb={'MEnPK':function(_0x3af40e,_0x549f19){return _0x3af40e(_0x549f19);}};return _0x58c9bb[_0x8d8396(0xe1)](resolveLocalAuthPath,_0x58c9bb[_0x8d8396(0xe1)](getEnvDir,_0x2e6c57));}async function resolveLocalAuthPath(_0x415c57){const _0x43886c=_0x107345,_0x284231={'NeaBM':function(_0x30205a,_0x836aac,_0x3b0624){return _0x30205a(_0x836aac,_0x3b0624);},'WgzYz':_0x43886c(0xdf),'NAYjo':function(_0x385b05,_0x3e517c,_0x9ef9ef){return _0x385b05(_0x3e517c,_0x9ef9ef);},'zGusE':_0x43886c(0xc2),'ZSKsw':function(_0x5c66a1,_0x22f670){return _0x5c66a1(_0x22f670);},'KogZR':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','DMUHj':function(_0x19f773,_0x1a1fb1,_0x4f9f87){return _0x19f773(_0x1a1fb1,_0x4f9f87);},'hRhmc':function(_0x183877,_0x5b4a8b){return _0x183877 instanceof _0x5b4a8b;}},_0x429fa9=_0x284231['NeaBM'](join,_0x415c57,_0x284231['WgzYz']),_0x5a46f2=_0x284231['NAYjo'](join,_0x415c57,_0x284231['zGusE']);if(_0x284231[_0x43886c(0xc8)](existsSync,_0x429fa9))try{const _0x2c7f8a=await getToken();if(!_0x2c7f8a)throw new Error(_0x284231[_0x43886c(0xf6)]);const _0x4445c9=await readFile(_0x429fa9),_0x8992aa=_0x284231[_0x43886c(0xe9)](decrypt,_0x4445c9,_0x2c7f8a),_0x1279af=join(tmpdir(),'ranger-auth-'+Date['now']()+'.json');return await writeFile(_0x1279af,_0x8992aa),{'storageStatePath':_0x1279af,'tempAuthPath':_0x1279af};}catch(_0x57864b){const _0x7371e=_0x284231['hRhmc'](_0x57864b,Error)?_0x57864b[_0x43886c(0x106)]:String(_0x57864b);throw new Error(_0x43886c(0xfc)+_0x7371e);}if(_0x284231[_0x43886c(0xc8)](existsSync,_0x5a46f2))return{'storageStatePath':_0x5a46f2};return{};}export async function buildPlaywrightConfig(_0x41d4dc,_0xb2c11,_0x56f17e,_0x276e7a,_0x46faa8){const _0x186914=_0x107345,_0x4c619a={'sicVb':_0x186914(0x99),'wuSZf':function(_0xdf6fea,_0x324cb3){return _0xdf6fea(_0x324cb3);},'uFVlE':function(_0x169796,_0x549f8f,_0x2a46d2,_0x2f8b7f,_0x442fcd,_0x1f658d,_0x5bab8c){return _0x169796(_0x549f8f,_0x2a46d2,_0x2f8b7f,_0x442fcd,_0x1f658d,_0x5bab8c);}};if(_0x46faa8)return buildPlaywrightConfigCore(_0x41d4dc,_0x46faa8,_0xb2c11,_0x56f17e,_0x276e7a,_0x4c619a[_0x186914(0x10e)]);const {storageStatePath:_0x58057f,tempAuthPath:_0x233f87}=await resolveLocalAuthPath(_0x4c619a['wuSZf'](getEnvDir,_0xb2c11));try{const _0x485bb6=await _0x4c619a['uFVlE'](buildPlaywrightConfigCore,_0x41d4dc,_0x58057f,_0xb2c11,_0x56f17e,_0x276e7a,_0x4c619a[_0x186914(0x10e)]);return{..._0x485bb6,'tempAuthPath':_0x233f87};}catch(_0xd9b652){_0x233f87&&await unlink(_0x233f87)['catch'](()=>{});throw _0xd9b652;}}export async function buildPlaywrightConfigCore(_0x3204af,_0x1182f9,_0x3782f0,_0x37dc4a,_0x19f32e,_0x3bea2e='stagehand'){const _0x443701=_0x107345,_0x3b1bb8={'mMhpv':function(_0x59980f,_0x289def){return _0x59980f===_0x289def;},'OpkEo':_0x443701(0x100),'IDCjW':_0x443701(0xa0),'lhMNK':function(_0x4bedf3,_0x227cc0,_0x4d24ed,_0x20cce7){return _0x4bedf3(_0x227cc0,_0x4d24ed,_0x20cce7);},'evjTF':_0x443701(0xa7),'vAmzk':'install','bQSSu':'pdf','TaagK':'vision','oTPYx':'allow','pjqvg':function(_0xabb1d6,_0x472dd0,_0x2796dd){return _0xabb1d6(_0x472dd0,_0x2796dd);},'ngICg':_0x443701(0x97),'MFWyQ':function(_0x42a871,_0x49e438){return _0x42a871(_0x49e438);},'tRhAD':function(_0x230e7d,_0xce9e9d,_0x3d0c0e){return _0x230e7d(_0xce9e9d,_0x3d0c0e);}},_0x1d8ce5=_0x37dc4a||randomUUID(),_0x55070f=_0x3b1bb8[_0x443701(0xe8)](join,getRangerDir(),'sessions',_0x1d8ce5),_0x409867=Boolean(_0x3204af['cdpEndpoint']),_0x59aa1b=_0x409867?{'browserName':_0x3b1bb8['evjTF'],'cdpEndpoint':_0x3204af['cdpEndpoint']}:((()=>{const _0x714d68=_0x443701,{launchOptions:_0x195cb4,contextOptions:_0x406c8f}=buildBrowserOptionsFromSettings(_0x3204af,{'headless':_0x19f32e?![]:_0x3204af[_0x714d68(0x92)]??!![],'storageStatePath':_0x1182f9});if(_0x3b1bb8[_0x714d68(0x108)](process[_0x714d68(0xdb)]?.(),0x0)){const _0x1f409b=[_0x3b1bb8['OpkEo'],_0x714d68(0x102)],_0x55467c=_0x195cb4['args']??[],_0x4ca53a=_0x1f409b['filter'](_0x139ea1=>!_0x55467c[_0x714d68(0xa2)](_0x139ea1));_0x195cb4['args']=[..._0x55467c,..._0x4ca53a];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x195cb4,'contextOptions':{..._0x406c8f,'permissions':[_0x3b1bb8[_0x714d68(0x98)],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3df940=_0x3b1bb8[_0x443701(0x108)](_0x3bea2e,'playwright-cli')?{'browser':_0x59aa1b,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x55070f,'outputMode':_0x443701(0x10d),'codegen':_0x443701(0x10c)}:{'name':_0x3782f0,'browser':_0x59aa1b,'capabilities':['core',_0x443701(0x109),_0x3b1bb8['vAmzk'],_0x3b1bb8['bQSSu'],_0x3b1bb8[_0x443701(0x103)]],'imageResponses':_0x3b1bb8[_0x443701(0xec)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x55070f};if(!_0x409867){const _0x2bf814=_0x3df940[_0x443701(0x94)],_0x184eec=_0x2bf814[_0x443701(0xda)];if(_0x184eec['userAgent']===undefined)delete _0x184eec['userAgent'];if(_0x184eec['storageState']===undefined)delete _0x184eec['storageState'];}const _0x8c399d=_0x3b1bb8['pjqvg'](join,tmpdir(),_0x3b1bb8[_0x443701(0xe3)]);!_0x3b1bb8['MFWyQ'](existsSync,_0x8c399d)&&await mkdir(_0x8c399d,{'recursive':!![]});const _0x2f6bba=_0x3bea2e===_0x443701(0xee)?_0x443701(0xb8):'',_0x39074f=_0x3b1bb8['pjqvg'](join,_0x8c399d,_0x3782f0+'-'+Date['now']()+_0x2f6bba+_0x443701(0xb2));return await _0x3b1bb8[_0x443701(0x9e)](writeFile,_0x39074f,JSON['stringify'](_0x3df940,null,0x2)),{'configPath':_0x39074f,'storageStatePath':_0x1182f9};}export async function buildPlaywrightCliConfig(_0x534c3a,_0x213583,_0x5e4da6,_0x285b9f,_0x38503a){const _0x3b7f4d=_0x107345,_0x34a20e={'fxPwH':'playwright-cli','YFskt':function(_0x15b405,_0x10f3f9){return _0x15b405(_0x10f3f9);},'mpjCB':function(_0x480011,_0x299218){return _0x480011(_0x299218);}};if(_0x38503a)return buildPlaywrightConfigCore(_0x534c3a,_0x38503a,_0x213583,_0x5e4da6,_0x285b9f,_0x34a20e['fxPwH']);const {storageStatePath:_0x323d4c,tempAuthPath:_0x2a5a90}=await _0x34a20e[_0x3b7f4d(0xa5)](resolveLocalAuthPath,getEnvDir(_0x213583));try{const _0x438192=await buildPlaywrightConfigCore(_0x534c3a,_0x323d4c,_0x213583,_0x5e4da6,_0x285b9f,_0x34a20e[_0x3b7f4d(0xf3)]);return{..._0x438192,'tempAuthPath':_0x2a5a90};}catch(_0xfd70ab){_0x2a5a90&&await _0x34a20e[_0x3b7f4d(0xb6)](unlink,_0x2a5a90)[_0x3b7f4d(0xf2)](()=>{});throw _0xfd70ab;}}export async function buildNovaActCliConfig(_0x279c77,_0x2e0b31,_0x58a504,_0x1c013b,_0x5099c4){const _0x33b016=_0x107345,_0x3d7857={'SMgfW':function(_0x39b92a,_0xabb1a0){return _0x39b92a(_0xabb1a0);},'wyIGO':function(_0x30ab77){return _0x30ab77();},'sOyYY':'sessions','PaMUW':function(_0x58e2cd,_0x3ed25d,_0x2116b1){return _0x58e2cd(_0x3ed25d,_0x2116b1);},'nRueT':'Default','eQfHK':function(_0x1b167a,_0x29f4be,_0x1bf840){return _0x1b167a(_0x29f4be,_0x1bf840);},'RROzg':'--disable-setuid-sandbox','tejpE':function(_0x593071,_0x495925){return _0x593071===_0x495925;},'JafMr':_0x33b016(0x96),'FRgYY':function(_0x3198a1,_0x301f2f){return _0x3198a1(_0x301f2f);},'VqfjJ':function(_0x7ec40e,_0x5568d6){return _0x7ec40e(_0x5568d6);}},{storageStatePath:_0xd74b8,tempAuthPath:_0x2066f1}=_0x5099c4?{'storageStatePath':_0x5099c4,'tempAuthPath':undefined}:await _0x3d7857['SMgfW'](resolveLocalAuthPath,getEnvDir(_0x2e0b31)),_0x2c19f6=_0x58a504||randomUUID(),_0x5601ef=join(_0x3d7857['wyIGO'](getRangerDir),_0x3d7857['sOyYY'],_0x2c19f6),_0x289631=join(_0x5601ef,_0x33b016(0x9b)),_0x5f10ca=_0xd74b8?_0x3d7857['PaMUW'](join,_0x289631,_0x3d7857[_0x33b016(0xbc)]):undefined,{launchOptions:_0x31ef91,contextOptions:_0x18debc}=_0x3d7857[_0x33b016(0xbf)](buildBrowserOptionsFromSettings,_0x279c77,{'headless':_0x1c013b?![]:_0x279c77['headless']??!![],'storageStatePath':_0xd74b8});if(process[_0x33b016(0xdb)]?.()===0x0){const _0x17857a=['--no-sandbox',_0x3d7857[_0x33b016(0xaf)]],_0x22220f=_0x31ef91['args']??[],_0x957840=_0x17857a[_0x33b016(0xbb)](_0x34697f=>!_0x22220f['includes'](_0x34697f));_0x31ef91['args']=[..._0x22220f,..._0x957840];}const _0x52457a=_0x3d7857[_0x33b016(0xc6)](typeof _0x31ef91['executablePath'],_0x3d7857['JafMr'])?_0x31ef91[_0x33b016(0xdd)]:_0xd74b8?chromium[_0x33b016(0xdd)]():undefined;return{'storageStatePath':_0xd74b8,'tempAuthPath':_0x2066f1,'baseUrl':_0x279c77[_0x33b016(0x9c)],'headless':_0x3d7857[_0x33b016(0xd4)](Boolean,_0x31ef91['headless']),'userDataDir':_0x289631,'browserProfilePath':_0x5f10ca,'executablePath':_0x52457a,'launchArgs':Array['isArray'](_0x31ef91[_0x33b016(0xf1)])?_0x31ef91[_0x33b016(0xf1)][_0x33b016(0xbb)](_0x1087a4=>typeof _0x1087a4==='string'):[],'userAgent':typeof _0x18debc[_0x33b016(0xcf)]===_0x3d7857[_0x33b016(0xf7)]?_0x18debc['userAgent']:undefined,'extraHTTPHeaders':_0x18debc['extraHTTPHeaders'],'allowInsecureLocalhost':_0x3d7857[_0x33b016(0x110)](Boolean,_0x279c77['allowInsecureLocalhost']),'safeMode':_0x3d7857[_0x33b016(0x110)](Boolean,_0x279c77[_0x33b016(0xd6)]),'cdpEndpoint':_0x279c77['cdpEndpoint'],'isCdpMode':Boolean(_0x279c77['cdpEndpoint'])};}export function getNestedValue(_0x5e10de,_0x3855bb){const _0x5f188b=_0x107345,_0x302f70={'FZqQY':function(_0x216cd8,_0x3d99dd){return _0x216cd8===_0x3d99dd;}},_0x462d75=parseKeyPath(_0x3855bb);let _0x3179c0=_0x5e10de;for(const _0x29647d of _0x462d75){if(_0x302f70['FZqQY'](_0x3179c0,null)||_0x302f70[_0x5f188b(0xfe)](_0x3179c0,undefined)||typeof _0x3179c0!==_0x5f188b(0xb0))return undefined;_0x3179c0=_0x3179c0[_0x29647d];}return _0x3179c0;}export function setNestedValue(_0x49e881,_0x22df62,_0x44e6f8){const _0x29f946=_0x107345,_0x85d1f=parseKeyPath(_0x22df62);let _0x53d018=_0x49e881;for(let _0x4e7a6c=0x0;_0x4e7a6c<_0x85d1f['length']-0x1;_0x4e7a6c++){const _0x528df0=_0x85d1f[_0x4e7a6c];(!(_0x528df0 in _0x53d018)||typeof _0x53d018[_0x528df0]!==_0x29f946(0xb0))&&(_0x53d018[_0x528df0]={}),_0x53d018=_0x53d018[_0x528df0];}_0x53d018[_0x85d1f[_0x85d1f['length']-0x1]]=_0x44e6f8;}export function deleteNestedValue(_0x1f0332,_0x920251){const _0x3ff4db=_0x107345,_0x466852={'WjLfA':function(_0x487088,_0x1adcfd){return _0x487088(_0x1adcfd);},'xrKtp':function(_0x47f90e,_0x511602){return _0x47f90e<_0x511602;},'RwZJK':function(_0xc873b2,_0x56cc88){return _0xc873b2-_0x56cc88;},'xXnJf':'object','gCbDk':function(_0x5e7ff2,_0x239b66){return _0x5e7ff2!==_0x239b66;},'GbQLl':function(_0x5863ef,_0x4e511b){return _0x5863ef-_0x4e511b;}},_0x4742e5=_0x466852[_0x3ff4db(0xcc)](parseKeyPath,_0x920251);let _0x1c2b9b=_0x1f0332;for(let _0x4cb043=0x0;_0x466852['xrKtp'](_0x4cb043,_0x466852['RwZJK'](_0x4742e5['length'],0x1));_0x4cb043++){if(_0x1c2b9b===null||_0x1c2b9b===undefined||typeof _0x1c2b9b!==_0x466852[_0x3ff4db(0xe4)])return![];_0x1c2b9b=_0x1c2b9b[_0x4742e5[_0x4cb043]];}if(_0x1c2b9b===null||_0x1c2b9b===undefined||_0x466852[_0x3ff4db(0xc5)](typeof _0x1c2b9b,_0x466852[_0x3ff4db(0xe4)]))return![];const _0x257f1c=_0x4742e5[_0x466852[_0x3ff4db(0xef)](_0x4742e5['length'],0x1)];if(_0x257f1c in _0x1c2b9b)return delete _0x1c2b9b[_0x257f1c],!![];return![];}function parseKeyPath(_0x30b243){const _0xb4cf2f=_0x107345,_0x147675={'kgwsS':function(_0x12c51e,_0x2895a2){return _0x12c51e===_0x2895a2;},'YBSMm':_0xb4cf2f(0xe6)},_0xc789f4=_0x30b243[_0xb4cf2f(0xb7)]('.');return _0x147675['kgwsS'](_0xc789f4[0x0],_0x147675[_0xb4cf2f(0x9f)])&&(_0xc789f4[0x0]=_0xb4cf2f(0xa9)),_0xc789f4[0x0]===_0xb4cf2f(0xba)&&(_0xc789f4[0x0]=_0xb4cf2f(0xd0)),_0xc789f4;}export function formatSettings(_0x561914,_0x40def6=0x0){const _0x41bb26=_0x107345,_0x28714a={'TOkMe':function(_0x8f74f4,_0x2d8c25){return _0x8f74f4===_0x2d8c25;}},_0x395498=[],_0x2dd5dd='\x20\x20'[_0x41bb26(0xc4)](_0x40def6);for(const [_0x2910df,_0x4b616f]of Object[_0x41bb26(0x10f)](_0x561914)){if(_0x4b616f===undefined)continue;if(_0x28714a['TOkMe'](typeof _0x4b616f,'object')&&_0x4b616f!==null){_0x395498['push'](''+_0x2dd5dd+_0x2910df+':');for(const [_0x16e5a5,_0x319bc8]of Object['entries'](_0x4b616f)){_0x395498[_0x41bb26(0x9d)](_0x2dd5dd+'\x20\x20'+_0x16e5a5+':\x20'+_0x319bc8);}}else _0x395498['push'](''+_0x2dd5dd+_0x2910df+':\x20'+_0x4b616f);}return _0x395498[_0x41bb26(0xcb)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x5b11bf,_0x56331a){const _0x1f26df=_0x5cd3,_0x3e7b8c=_0x5b11bf();while(!![]){try{const _0x15031a=-parseInt(_0x1f26df(0x12e))/0x1*(parseInt(_0x1f26df(0x126))/0x2)+-parseInt(_0x1f26df(0x127))/0x3*(parseInt(_0x1f26df(0x12b))/0x4)+parseInt(_0x1f26df(0x123))/0x5*(parseInt(_0x1f26df(0x11d))/0x6)+parseInt(_0x1f26df(0x12f))/0x7+parseInt(_0x1f26df(0x129))/0x8*(parseInt(_0x1f26df(0x124))/0x9)+parseInt(_0x1f26df(0x11e))/0xa+parseInt(_0x1f26df(0x120))/0xb*(-parseInt(_0x1f26df(0x12c))/0xc);if(_0x15031a===_0x56331a)break;else _0x3e7b8c['push'](_0x3e7b8c['shift']());}catch(_0x3e6576){_0x3e7b8c['push'](_0x3e7b8c['shift']());}}}(_0x5aad,0xeeaba));import{readFileSync}from'fs';function _0x5aad(){const _0x226081=['ranger/SKILL.md','2guinvM','3561oeJtJv','zzokO','15154584GHCWYD','UdVss','1848PQjCQc','55260FkbIED','skills','375677XqJLtJ','686658ihJHhw','339162bFXucc','6043590GayChD','ogceU','4631nHQdOs','utf-8','ZReLU','110TufWGm','9VShHvV'];_0x5aad=function(){return _0x226081;};return _0x5aad();}import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x5cd3(_0xd6b074,_0x21aa4e){_0xd6b074=_0xd6b074-0x11d;const _0x5aada3=_0x5aad();let _0x5cd351=_0x5aada3[_0xd6b074];return _0x5cd351;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x314dd4){const _0x281d5a=_0x5cd3,_0x3f15a2={'UdVss':function(_0x2cf1f9,_0x371068,_0x405275,_0x43fd4a,_0xd3ed7a){return _0x2cf1f9(_0x371068,_0x405275,_0x43fd4a,_0xd3ed7a);},'zzokO':function(_0x55cd84,_0x537965,_0x1574b2){return _0x55cd84(_0x537965,_0x1574b2);},'ogceU':_0x281d5a(0x121)},_0x15c3cf=_0x3f15a2[_0x281d5a(0x12a)](join,__dirname,'..','..',_0x281d5a(0x12d)),_0xf01889=_0x3f15a2['zzokO'](join,_0x15c3cf,_0x314dd4);try{return _0x3f15a2[_0x281d5a(0x128)](readFileSync,_0xf01889,_0x3f15a2[_0x281d5a(0x11f)]);}catch{return'';}}export function getRangerSkillContent(){const _0x1ce264=_0x5cd3,_0x309cb2={'ZReLU':function(_0x54d4a3,_0x1c958a){return _0x54d4a3(_0x1c958a);}};return _0x309cb2[_0x1ce264(0x122)](readSkillContent,_0x1ce264(0x125));}
1
+ (function(_0x219910,_0x2c79b8){const _0x1af0e6=_0x7d73,_0x390a76=_0x219910();while(!![]){try{const _0x3bc13b=parseInt(_0x1af0e6(0x86))/0x1*(-parseInt(_0x1af0e6(0x84))/0x2)+parseInt(_0x1af0e6(0x7b))/0x3*(-parseInt(_0x1af0e6(0x81))/0x4)+parseInt(_0x1af0e6(0x7f))/0x5*(parseInt(_0x1af0e6(0x7d))/0x6)+-parseInt(_0x1af0e6(0x85))/0x7+-parseInt(_0x1af0e6(0x78))/0x8+parseInt(_0x1af0e6(0x79))/0x9+-parseInt(_0x1af0e6(0x77))/0xa*(-parseInt(_0x1af0e6(0x7a))/0xb);if(_0x3bc13b===_0x2c79b8)break;else _0x390a76['push'](_0x390a76['shift']());}catch(_0x59c6a2){_0x390a76['push'](_0x390a76['shift']());}}}(_0x5476,0x9ffbc));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x7d73(_0x400a85,_0x18733){_0x400a85=_0x400a85-0x77;const _0x5476ce=_0x5476();let _0x7d7322=_0x5476ce[_0x400a85];return _0x7d7322;}export function readSkillContent(_0x538fe2){const _0x3952c7=_0x7d73,_0x28d561={'naAqw':function(_0xb1c99a,_0x47ce83,_0x11f931,_0x4f0342,_0x2f7195){return _0xb1c99a(_0x47ce83,_0x11f931,_0x4f0342,_0x2f7195);},'itpJa':function(_0x3f0049,_0x1020ef,_0x55442b){return _0x3f0049(_0x1020ef,_0x55442b);},'EhmlD':'utf-8'},_0x13ad91=_0x28d561[_0x3952c7(0x83)](join,__dirname,'..','..',_0x3952c7(0x7c)),_0x55215f=_0x28d561[_0x3952c7(0x82)](join,_0x13ad91,_0x538fe2);try{return _0x28d561['itpJa'](readFileSync,_0x55215f,_0x28d561[_0x3952c7(0x80)]);}catch{return'';}}function _0x5476(){const _0x4a1d91=['147024ajAvqu','skills','258HxvxKQ','ranger/SKILL.md','53545jDRUEh','EhmlD','4wqOtjJ','itpJa','naAqw','444190tlouUr','3814545PerUqd','4taYMyx','10psaara','8340272xAhIvr','1846953NXzUCf','27658895qmbGNe'];_0x5476=function(){return _0x4a1d91;};return _0x5476();}export function getRangerSkillContent(){const _0x47c075=_0x7d73,_0x704b23={'oYCQM':function(_0x4864eb,_0x22500f){return _0x4864eb(_0x22500f);}};return _0x704b23['oYCQM'](readSkillContent,_0x47c075(0x7e));}
@@ -1 +1 @@
1
- const _0x3f901b=_0x49da;(function(_0x183b20,_0x235365){const _0x3aa02c=_0x49da,_0x23a02f=_0x183b20();while(!![]){try{const _0x54d483=parseInt(_0x3aa02c(0x19b))/0x1*(-parseInt(_0x3aa02c(0x19d))/0x2)+-parseInt(_0x3aa02c(0x19a))/0x3*(-parseInt(_0x3aa02c(0x1b6))/0x4)+parseInt(_0x3aa02c(0x1b2))/0x5+parseInt(_0x3aa02c(0x19e))/0x6+-parseInt(_0x3aa02c(0x1bd))/0x7*(-parseInt(_0x3aa02c(0x1ba))/0x8)+parseInt(_0x3aa02c(0x1b1))/0x9*(parseInt(_0x3aa02c(0x1b9))/0xa)+-parseInt(_0x3aa02c(0x1a8))/0xb;if(_0x54d483===_0x235365)break;else _0x23a02f['push'](_0x23a02f['shift']());}catch(_0x4e6023){_0x23a02f['push'](_0x23a02f['shift']());}}}(_0x4495,0xd0e4c));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x3f901b(0x199),'feature-tracker'];function _0x49da(_0x4e4ca8,_0x303a76){_0x4e4ca8=_0x4e4ca8-0x199;const _0x4495c5=_0x4495();let _0x49da5d=_0x4495c5[_0x4e4ca8];return _0x49da5d;}function _0x4495(){const _0x7c5a8a=['match','isDirectory','HUrUn','warn','\x20\x20Installed\x20skill:\x20','Invalid\x20skill\x20frontmatter','KkpEv','oKrZz','37121568vuAHla','JDwWA','Wgyug','SKILL.md','mjlKA','join','trim','utf-8','\x20\x20Files:\x20','9WHQqSX','5169935EVrdMQ','iCzfm','push','opencode','21356OYwUeq','\x20\x20Location:\x20','endsWith','15051970zDXXpc','95048wIsTGy','log','KEIhe','469WCpDtl','bug-bash','150KPlUPD','627173JVzDrC','\x20\x20Removed\x20deprecated\x20skill:\x20','2pYphiD','7531968qvUTpG','MeDoy'];_0x4495=function(){return _0x7c5a8a;};return _0x4495();}export async function installSkill(_0x2c2712,_0x2cabcd={}){const _0x4d778c=_0x3f901b,_0x26f9b6={'TrQSf':'claude','KEIhe':function(_0x1dac60){return _0x1dac60();},'MeDoy':function(_0x6593d1,_0x43fb5d,_0x132e49){return _0x6593d1(_0x43fb5d,_0x132e49);},'XrmKa':function(_0x1835e2,_0x482e35){return _0x1835e2(_0x482e35);},'yqdWh':_0x4d778c(0x1b5),'JDwWA':function(_0x203087,_0x26ebd4){return _0x203087(_0x26ebd4);},'oKrZz':function(_0x3e9c21,_0x43ed73,_0x481a7f){return _0x3e9c21(_0x43ed73,_0x481a7f);},'Wgyug':function(_0x46f0b5,_0x14465c,_0x23832c){return _0x46f0b5(_0x14465c,_0x23832c);},'TCUMq':function(_0x398805,_0x528d3d,_0x3090b3){return _0x398805(_0x528d3d,_0x3090b3);},'qpOoM':_0x4d778c(0x1af),'JuVMa':'SKILL.md'},{level:level='project',cliVersion:_0x34db81,platform:platform=_0x26f9b6['TrQSf']}=_0x2cabcd,_0x30c4cc=_0x26f9b6[_0x4d778c(0x1bc)](getSourceSkillsDir),_0x4fa5cd=_0x26f9b6['MeDoy'](join,_0x30c4cc,_0x2c2712),_0xf9159a=_0x26f9b6[_0x4d778c(0x19f)](join,_0x30c4cc,_0x2c2712+'.md'),_0x6f6c1d=existsSync(_0x4fa5cd)&&statSync(_0x4fa5cd)[_0x4d778c(0x1a1)]()&&existsSync(_0x26f9b6['MeDoy'](join,_0x4fa5cd,_0x4d778c(0x1ab))),_0x40f539=_0x26f9b6['XrmKa'](existsSync,_0xf9159a);if(!_0x6f6c1d&&!_0x40f539)return console['warn']('\x20\x20Skill\x20not\x20found:\x20'+_0x2c2712),![];const _0x183fda=platform===_0x26f9b6['yqdWh']?_0x26f9b6['JDwWA'](getOpencodeSkillsDir,level):getSkillsDir(level),_0x12dc33=join(_0x183fda,_0x2c2712);await mkdir(_0x12dc33,{'recursive':!![]});let _0x4990ee,_0x1007af=[];if(_0x6f6c1d){const _0x157717=await readdir(_0x4fa5cd),_0x1ba53b=_0x157717['filter'](_0x160780=>_0x160780[_0x4d778c(0x1b8)]('.md'));for(const _0x187875 of _0x1ba53b){const _0x3d784f=join(_0x4fa5cd,_0x187875),_0x41a66b=_0x26f9b6['oKrZz'](join,_0x12dc33,_0x187875);await _0x26f9b6[_0x4d778c(0x1aa)](copyFile,_0x3d784f,_0x41a66b),_0x1007af[_0x4d778c(0x1b4)](_0x187875);}_0x4990ee=await _0x26f9b6[_0x4d778c(0x1a7)](readFile,_0x26f9b6[_0x4d778c(0x1a7)](join,_0x4fa5cd,'SKILL.md'),'utf-8');}else{_0x4990ee=await _0x26f9b6['TCUMq'](readFile,_0xf9159a,_0x26f9b6['qpOoM']);const _0x5cda24=_0x26f9b6[_0x4d778c(0x19f)](join,_0x12dc33,_0x26f9b6['JuVMa']);await writeFile(_0x5cda24,_0x4990ee,_0x4d778c(0x1af)),_0x1007af['push'](_0x26f9b6['JuVMa']);}const {name:_0x3d7b66}=_0x26f9b6[_0x4d778c(0x1a9)](parseFrontmatter,_0x4990ee);return console['log'](_0x4d778c(0x1a4)+_0x3d7b66),console['log'](_0x4d778c(0x1b7)+_0x12dc33),_0x1007af['length']>0x1&&console[_0x4d778c(0x1bb)](_0x4d778c(0x1b0)+_0x1007af[_0x4d778c(0x1ad)](',\x20')),logLocalAgentInstallation(_0x2c2712,{'skillDisplayName':_0x3d7b66,'installLevel':level},_0x34db81)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x527f20=_0x3f901b,_0x2426f5={'HUrUn':'skills','iCzfm':function(_0x56d9e7,_0x12ebb2,_0x48e4ef,_0x3a375c,_0x23c45b,_0x19b956){return _0x56d9e7(_0x12ebb2,_0x48e4ef,_0x3a375c,_0x23c45b,_0x19b956);},'QKlMw':function(_0x1fabdf,_0x109631){return _0x1fabdf(_0x109631);}},_0x18f318=[join(__dirname,'..','..',_0x2426f5['HUrUn']),_0x2426f5[_0x527f20(0x1b3)](join,__dirname,'..','..','..',_0x2426f5[_0x527f20(0x1a2)])];for(const _0x4fbe67 of _0x18f318){if(_0x2426f5['QKlMw'](existsSync,_0x4fbe67))return _0x4fbe67;}return _0x18f318[0x0];}function parseFrontmatter(_0x4df249){const _0x495ace=_0x3f901b,_0x9f8a63=_0x4df249['match'](/^---\n([\s\S]+?)\n---/);if(!_0x9f8a63)throw new Error(_0x495ace(0x1a5));const _0x3b8672=_0x9f8a63[0x1],_0x19792e=_0x3b8672[_0x495ace(0x1a0)](/name:\s*(.+)/),_0xcb661d=_0x3b8672['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x19792e?.[0x1]['trim']()||'','description':_0xcb661d?.[0x1][_0x495ace(0x1ae)]()||''};}export async function removeSkill(_0x3c49f6,_0x4fea99){const _0x3404a3=_0x3f901b,_0xbdc07e={'KkpEv':function(_0x10eb70,_0x1d886f){return _0x10eb70(_0x1d886f);},'mjlKA':function(_0xdae60a,_0x13794e,_0xa26add){return _0xdae60a(_0x13794e,_0xa26add);}},_0x5d3ae4=_0xbdc07e[_0x3404a3(0x1a6)](getSkillsDir,_0x4fea99),_0x5d0d65=_0xbdc07e[_0x3404a3(0x1ac)](join,_0x5d3ae4,_0x3c49f6);if(!existsSync(_0x5d0d65))return![];try{return await rm(_0x5d0d65,{'recursive':!![]}),console['log'](_0x3404a3(0x19c)+_0x3c49f6),!![];}catch{return console[_0x3404a3(0x1a3)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x3c49f6),![];}}
1
+ const _0x69aba6=_0x44a0;function _0x44a0(_0x47def1,_0x1009af){_0x47def1=_0x47def1-0xaf;const _0x388f9e=_0x388f();let _0x44a02e=_0x388f9e[_0x47def1];return _0x44a02e;}(function(_0x2dc50f,_0x151d8d){const _0x4a397d=_0x44a0,_0xf78db3=_0x2dc50f();while(!![]){try{const _0x5d3e5e=-parseInt(_0x4a397d(0xc1))/0x1+-parseInt(_0x4a397d(0xc3))/0x2+parseInt(_0x4a397d(0xc4))/0x3+-parseInt(_0x4a397d(0xd1))/0x4*(-parseInt(_0x4a397d(0xc8))/0x5)+parseInt(_0x4a397d(0xbc))/0x6*(-parseInt(_0x4a397d(0xbe))/0x7)+parseInt(_0x4a397d(0xd5))/0x8+parseInt(_0x4a397d(0xcc))/0x9;if(_0x5d3e5e===_0x151d8d)break;else _0xf78db3['push'](_0xf78db3['shift']());}catch(_0x1d96f5){_0xf78db3['push'](_0xf78db3['shift']());}}}(_0x388f,0x52a25));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=['e2e-test-recommender','bug-bash',_0x69aba6(0xbd)];export async function installSkill(_0x4a2c43,_0x5ccfab={}){const _0x2bc1c4=_0x69aba6,_0x212680={'aZzFT':'claude','AkAIe':function(_0x4bf3bf,_0x46a642,_0x451f23){return _0x4bf3bf(_0x46a642,_0x451f23);},'EbnQO':function(_0x1738bd,_0x11a8aa){return _0x1738bd(_0x11a8aa);},'iFUqb':_0x2bc1c4(0xcb),'BOfvY':function(_0x1dc171,_0x2fc534){return _0x1dc171===_0x2fc534;},'kGSUk':_0x2bc1c4(0xc6),'wHerR':function(_0x2187cf,_0x364218,_0x21c1b4){return _0x2187cf(_0x364218,_0x21c1b4);},'bDaWA':function(_0x2c14aa,_0x1ff256,_0xb0e6bf){return _0x2c14aa(_0x1ff256,_0xb0e6bf);},'EuoSM':function(_0x192840,_0x2ac373,_0x88019f){return _0x192840(_0x2ac373,_0x88019f);},'kUQGL':'utf-8','DKIRL':function(_0xdd183b,_0x3c002c){return _0xdd183b>_0x3c002c;},'PxyPx':function(_0x12650f,_0x100357,_0x479a4c,_0x2b9af3){return _0x12650f(_0x100357,_0x479a4c,_0x2b9af3);}},{level:level='project',cliVersion:_0x337d1f,platform:platform=_0x212680['aZzFT']}=_0x5ccfab,_0x55f95d=getSourceSkillsDir(),_0x103a85=_0x212680['AkAIe'](join,_0x55f95d,_0x4a2c43),_0xb8c6fe=join(_0x55f95d,_0x4a2c43+_0x2bc1c4(0xd8)),_0x5e7e15=existsSync(_0x103a85)&&_0x212680[_0x2bc1c4(0xba)](statSync,_0x103a85)[_0x2bc1c4(0xb1)]()&&_0x212680[_0x2bc1c4(0xba)](existsSync,join(_0x103a85,_0x212680[_0x2bc1c4(0xd9)])),_0x499d7f=existsSync(_0xb8c6fe);if(!_0x5e7e15&&!_0x499d7f)return console[_0x2bc1c4(0xca)](_0x2bc1c4(0xb3)+_0x4a2c43),![];const _0x32afc5=_0x212680[_0x2bc1c4(0xb5)](platform,_0x212680[_0x2bc1c4(0xd4)])?_0x212680[_0x2bc1c4(0xba)](getOpencodeSkillsDir,level):getSkillsDir(level),_0x38058c=_0x212680[_0x2bc1c4(0xd0)](join,_0x32afc5,_0x4a2c43);await _0x212680[_0x2bc1c4(0xb4)](mkdir,_0x38058c,{'recursive':!![]});let _0x581501,_0x584bd0=[];if(_0x5e7e15){const _0x1a3930=await readdir(_0x103a85),_0x8735dd=_0x1a3930['filter'](_0x19e579=>_0x19e579['endsWith'](_0x2bc1c4(0xd8)));for(const _0x176448 of _0x8735dd){const _0x404291=_0x212680[_0x2bc1c4(0xce)](join,_0x103a85,_0x176448),_0x5f0347=join(_0x38058c,_0x176448);await copyFile(_0x404291,_0x5f0347),_0x584bd0[_0x2bc1c4(0xbf)](_0x176448);}_0x581501=await _0x212680[_0x2bc1c4(0xcf)](readFile,join(_0x103a85,_0x2bc1c4(0xcb)),_0x212680['kUQGL']);}else{_0x581501=await readFile(_0xb8c6fe,_0x212680[_0x2bc1c4(0xcd)]);const _0x5cca68=join(_0x38058c,_0x2bc1c4(0xcb));await writeFile(_0x5cca68,_0x581501,'utf-8'),_0x584bd0[_0x2bc1c4(0xbf)](_0x212680[_0x2bc1c4(0xd9)]);}const {name:_0x1fb8af}=parseFrontmatter(_0x581501);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x1fb8af),console['log'](_0x2bc1c4(0xb6)+_0x38058c),_0x212680[_0x2bc1c4(0xc0)](_0x584bd0[_0x2bc1c4(0xbb)],0x1)&&console[_0x2bc1c4(0xc9)]('\x20\x20Files:\x20'+_0x584bd0[_0x2bc1c4(0xd2)](',\x20')),_0x212680[_0x2bc1c4(0xb9)](logLocalAgentInstallation,_0x4a2c43,{'skillDisplayName':_0x1fb8af,'installLevel':level},_0x337d1f)[_0x2bc1c4(0xb7)](()=>{}),!![];}function _0x388f(){const _0x3bdda0=['EbnQO','length','409398jQwrkJ','feature-tracker','28SFtewG','push','DKIRL','495162xMKEWx','trim','560690XoCrSp','731352caBuGk','\x20\x20Removed\x20deprecated\x20skill:\x20','opencode','skills','2210915UaURrM','log','warn','SKILL.md','5689872gycOdB','kUQGL','bDaWA','EuoSM','AkAIe','4fcvJIz','join','jXjAJ','kGSUk','549864DnjaEI','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','Invalid\x20skill\x20frontmatter','.md','iFUqb','XbMEz','VOPnc','isDirectory','match','\x20\x20Skill\x20not\x20found:\x20','wHerR','BOfvY','\x20\x20Location:\x20','catch','MIJTo','PxyPx'];_0x388f=function(){return _0x3bdda0;};return _0x388f();}function getSourceSkillsDir(){const _0x2ca7e2=_0x69aba6,_0x22769b={'jXjAJ':function(_0x1920b2,_0x65adf7,_0x5d92a5,_0x25cc28,_0x229738){return _0x1920b2(_0x65adf7,_0x5d92a5,_0x25cc28,_0x229738);},'VOPnc':'skills','FnzwO':function(_0x101717,_0xd466cc,_0x30607c,_0x2abc9d,_0x99a984,_0xe30f4a){return _0x101717(_0xd466cc,_0x30607c,_0x2abc9d,_0x99a984,_0xe30f4a);},'mUIso':function(_0x41feb6,_0x516bd2){return _0x41feb6(_0x516bd2);}},_0x359fc8=[_0x22769b[_0x2ca7e2(0xd3)](join,__dirname,'..','..',_0x22769b[_0x2ca7e2(0xb0)]),_0x22769b['FnzwO'](join,__dirname,'..','..','..',_0x2ca7e2(0xc7))];for(const _0x541353 of _0x359fc8){if(_0x22769b['mUIso'](existsSync,_0x541353))return _0x541353;}return _0x359fc8[0x0];}function parseFrontmatter(_0x2d41f6){const _0x3fac50=_0x69aba6,_0x2c1a5f={'MIJTo':_0x3fac50(0xd7)},_0xd7bace=_0x2d41f6['match'](/^---\n([\s\S]+?)\n---/);if(!_0xd7bace)throw new Error(_0x2c1a5f[_0x3fac50(0xb8)]);const _0x36a0a4=_0xd7bace[0x1],_0x37a2c3=_0x36a0a4['match'](/name:\s*(.+)/),_0x267357=_0x36a0a4[_0x3fac50(0xb2)](/description:\s*"?(.+?)"?\n/);return{'name':_0x37a2c3?.[0x1]['trim']()||'','description':_0x267357?.[0x1][_0x3fac50(0xc2)]()||''};}export async function removeSkill(_0x11da1b,_0x1dbc37){const _0x1c86c3=_0x69aba6,_0x52d6df={'RwQpj':function(_0x24d4d2,_0x202a8b){return _0x24d4d2(_0x202a8b);},'XbMEz':function(_0x55c3a1,_0x77ec84,_0x495c18){return _0x55c3a1(_0x77ec84,_0x495c18);}},_0x1b4d9e=_0x52d6df['RwQpj'](getSkillsDir,_0x1dbc37),_0xe04efe=_0x52d6df[_0x1c86c3(0xaf)](join,_0x1b4d9e,_0x11da1b);if(!existsSync(_0xe04efe))return![];try{return await _0x52d6df[_0x1c86c3(0xaf)](rm,_0xe04efe,{'recursive':!![]}),console['log'](_0x1c86c3(0xc5)+_0x11da1b),!![];}catch{return console['warn'](_0x1c86c3(0xd6)+_0x11da1b),![];}}
@@ -1 +1 @@
1
- const _0x6a6f67=_0x2297;(function(_0x79dee3,_0x3d5a4c){const _0xb1d2a=_0x2297,_0x3cec49=_0x79dee3();while(!![]){try{const _0x4f9f1c=-parseInt(_0xb1d2a(0x118))/0x1+-parseInt(_0xb1d2a(0xdf))/0x2+parseInt(_0xb1d2a(0xfd))/0x3*(-parseInt(_0xb1d2a(0x102))/0x4)+parseInt(_0xb1d2a(0x123))/0x5+-parseInt(_0xb1d2a(0x107))/0x6*(parseInt(_0xb1d2a(0xe5))/0x7)+parseInt(_0xb1d2a(0x10b))/0x8*(-parseInt(_0xb1d2a(0xe2))/0x9)+parseInt(_0xb1d2a(0xee))/0xa*(parseInt(_0xb1d2a(0xf0))/0xb);if(_0x4f9f1c===_0x3d5a4c)break;else _0x3cec49['push'](_0x3cec49['shift']());}catch(_0x381762){_0x3cec49['push'](_0x3cec49['shift']());}}}(_0xc232,0xa28e2));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x490235,_0x8e24b1){const _0x32deb8=_0x2297,_0x23d203={'OJpVq':function(_0x11bd9c,_0x197f6c){return _0x11bd9c<=_0x197f6c;},'aGirZ':function(_0x1a9b91,_0x1980aa){return _0x1a9b91&_0x1980aa;},'GUOdZ':function(_0x4b0580,_0x1391b0){return _0x4b0580>_0x1391b0;},'NBsom':function(_0x29a63e,_0x59afee){return _0x29a63e&_0x59afee;},'mqnYg':function(_0x331472,_0x350a79){return _0x331472*_0x350a79;}};if(_0x8e24b1>=_0x490235[_0x32deb8(0x10a)])return[0x0,0x0];const _0x1a0cf0=_0x490235[_0x8e24b1];let _0x394ccd=0x1,_0x135037=0x80;while(_0x23d203[_0x32deb8(0xe8)](_0x394ccd,0x8)&&!_0x23d203[_0x32deb8(0xe7)](_0x1a0cf0,_0x135037)){_0x394ccd++,_0x135037>>=0x1;}if(_0x23d203['GUOdZ'](_0x8e24b1+_0x394ccd,_0x490235['length']))return[0x0,0x0];let _0x33ef19=_0x23d203[_0x32deb8(0x119)](_0x1a0cf0,_0x135037-0x1);for(let _0x3b72b6=0x1;_0x3b72b6<_0x394ccd;_0x3b72b6++){_0x33ef19=_0x23d203['mqnYg'](_0x33ef19,0x100)+_0x490235[_0x8e24b1+_0x3b72b6];}return[_0x33ef19,_0x394ccd];}function readId(_0x56932b,_0x355e4c){const _0x38048c=_0x2297,_0x5eff11={'IRnhM':function(_0x39eb6d,_0x3b338d){return _0x39eb6d>=_0x3b338d;},'VmACB':function(_0x4b3c2a,_0x4741d0){return _0x4b3c2a+_0x4741d0;}};if(_0x5eff11['IRnhM'](_0x355e4c,_0x56932b['length']))return[0x0,0x0];const _0x36ae36=_0x56932b[_0x355e4c];let _0x54448e;if(_0x5eff11['IRnhM'](_0x36ae36,0x80))_0x54448e=0x1;else{if(_0x36ae36>=0x40)_0x54448e=0x2;else{if(_0x36ae36>=0x20)_0x54448e=0x3;else{if(_0x5eff11['IRnhM'](_0x36ae36,0x10))_0x54448e=0x4;else return[_0x36ae36,0x1];}}}if(_0x355e4c+_0x54448e>_0x56932b[_0x38048c(0x10a)])return[0x0,0x0];let _0x184106=0x0;for(let _0x1eb1e3=0x0;_0x1eb1e3<_0x54448e;_0x1eb1e3++){_0x184106=_0x5eff11['VmACB'](_0x184106*0x100,_0x56932b[_0x355e4c+_0x1eb1e3]);}return[_0x184106,_0x54448e];}function readUint(_0x18ae54,_0x23bb15,_0x491980){const _0x3e9262=_0x2297,_0x5b7acd={'ednjE':function(_0x198ad6,_0x29ed6e){return _0x198ad6<_0x29ed6e;},'AWPcF':function(_0x1c1c2b,_0x3d8659){return _0x1c1c2b+_0x3d8659;},'tNetH':function(_0x53da5f,_0x3a6f1e){return _0x53da5f*_0x3a6f1e;},'HjHXp':function(_0x5e876e,_0x251568){return _0x5e876e+_0x251568;}};let _0x473adf=0x0;for(let _0x1a3378=0x0;_0x5b7acd[_0x3e9262(0x108)](_0x1a3378,_0x491980);_0x1a3378++){_0x473adf=_0x5b7acd['AWPcF'](_0x5b7acd[_0x3e9262(0xf1)](_0x473adf,0x100),_0x18ae54[_0x5b7acd[_0x3e9262(0xfb)](_0x23bb15,_0x1a3378)]);}return _0x473adf;}function isUnknownSize(_0x35ea88,_0x3fe292){const _0x17c013={'FVdmh':function(_0x356117,_0x357568){return _0x356117-_0x357568;},'swuiX':function(_0x5c3929,_0x1366a8){return _0x5c3929*_0x1366a8;}};return _0x35ea88===_0x17c013['FVdmh'](Math['pow'](0x2,_0x17c013['swuiX'](0x7,_0x3fe292)),0x1);}function writeVint(_0x13811c,_0xb27778){const _0x142e7d=_0x2297,_0x2fdc4c={'qUgFG':function(_0x3b1c87,_0xd7152f){return _0x3b1c87||_0xd7152f;},'IyCeJ':function(_0x1f3cfc,_0x44c498){return _0x1f3cfc<_0x44c498;},'UctfD':function(_0x182a1d,_0x18b936){return _0x182a1d-_0x18b936;},'XlRHv':function(_0x2d088b,_0x578e73){return _0x2d088b&_0x578e73;},'ERGcv':function(_0x1d2d0c,_0x20c10f){return _0x1d2d0c-_0x20c10f;}};let _0xe7f7f9=_0x2fdc4c['qUgFG'](_0xb27778,0x1);while(_0x2fdc4c['IyCeJ'](_0x2fdc4c['UctfD'](Math[_0x142e7d(0x114)](0x2,0x7*_0xe7f7f9),0x2),_0x13811c))_0xe7f7f9++;const _0x397ca8=Buffer['alloc'](_0xe7f7f9);for(let _0xed91f8=_0xe7f7f9-0x1;_0xed91f8>=0x0;_0xed91f8--){_0x397ca8[_0xed91f8]=_0x2fdc4c[_0x142e7d(0xf9)](_0x13811c,0xff),_0x13811c=Math['floor'](_0x13811c/0x100);}return _0x397ca8[0x0]|=0x1<<_0x2fdc4c[_0x142e7d(0xf5)](0x8,_0xe7f7f9),_0x397ca8;}function _0x2297(_0x31b7ba,_0x1a07aa){_0x31b7ba=_0x31b7ba-0xdc;const _0xc23224=_0xc232();let _0x22974b=_0xc23224[_0x31b7ba];return _0x22974b;}function writeUint(_0x274a93,_0xb425a1){const _0xef8257=_0x2297,_0x151721=Buffer[_0xef8257(0x121)](_0xb425a1);for(let _0x33b441=_0xb425a1-0x1;_0x33b441>=0x0;_0x33b441--){_0x151721[_0x33b441]=_0x274a93&0xff,_0x274a93=Math[_0xef8257(0x101)](_0x274a93/0x100);}return _0x151721;}function writeUnknownSizeVint(_0x592e9d){const _0x4f607a=_0x2297,_0x175a2e={'OaoqZ':function(_0x32c8d2,_0x300222){return _0x32c8d2>>_0x300222;}},_0x27da8d=Buffer[_0x4f607a(0x121)](_0x592e9d,0xff);return _0x27da8d[0x0]=_0x175a2e['OaoqZ'](0xff,_0x592e9d-0x1),_0x27da8d;}function _0xc232(){const _0xffa795=['3252HjmVMt','MGfeT','SojYP','readInt16BE','slice','312588rLfCer','ednjE','from','length','128UNpXNA','endsWith','JbSQL','iQqYe','xtreR','KTWQZ','MsDnj','bodyAfterTimestamp','UBhhY','pow','header','DBvwT','depOq','1146657lNHmdJ','NBsom','ANKzN','UlFMR','mrmmZ','COuCO','gtdeF','uxtip','nuRoP','alloc','PdmLV','5188670btIghH','PNfsb','WgsHb','exit','QOztF','timestamp','883326vEvovA','argv','Ybnbr','358731unuPZs','OValY','AKMDT','28fTDJjH','hSwND','aGirZ','OJpVq','luuoc','tTihA','min','wvgVm','maxTicks','30xmBUwo','OLXWQ','8513615fnqqWM','tNetH','copy','Stitched\x20','TslNU','ERGcv','SOTdh','oMToY','maxTimestampTicks','XlRHv','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','HjHXp','WgQgu','957LAQKMC','SIHHV','concat','jfehs','floor'];_0xc232=function(){return _0xffa795;};return _0xc232();}function uintSize(_0x5166c5){const _0x444ab7=_0x2297,_0xbf46f9={'DBvwT':function(_0x3f1005,_0x217dce){return _0x3f1005===_0x217dce;},'qTHDb':function(_0x4b3ab5,_0x3cb691){return _0x4b3ab5>_0x3cb691;},'scpGJ':function(_0x178cd7,_0x1eaf23){return _0x178cd7/_0x1eaf23;}};if(_0xbf46f9[_0x444ab7(0x116)](_0x5166c5,0x0))return 0x1;let _0x2b8217=0x0,_0x427992=_0x5166c5;while(_0xbf46f9['qTHDb'](_0x427992,0x0)){_0x2b8217++,_0x427992=Math[_0x444ab7(0x101)](_0xbf46f9['scpGJ'](_0x427992,0x100));}return _0x2b8217;}function findTimestampScale(_0x353e59,_0x3b4831){const _0x3d50ce=_0x2297,_0x49a9e9={'mxLlZ':function(_0x255a67,_0x2f56da){return _0x255a67+_0x2f56da;},'hSwND':function(_0x173e7f,_0x5b16e9){return _0x173e7f<_0x5b16e9;},'CNRVE':function(_0x122d69,_0x4d9bce,_0x19842a){return _0x122d69(_0x4d9bce,_0x19842a);},'WgQgu':function(_0x53ce2d,_0x4256a7){return _0x53ce2d===_0x4256a7;},'PdmLV':function(_0x17b7b7,_0x1e53fb){return _0x17b7b7+_0x1e53fb;},'luuoc':function(_0x177b6a,_0x52be30){return _0x177b6a<_0x52be30;},'OValY':function(_0x52f29e,_0x364441){return _0x52f29e===_0x364441;},'KTWQZ':function(_0x147fcc,_0x184f5a){return _0x147fcc+_0x184f5a;},'JbSQL':function(_0x3829e4,_0x492745){return _0x3829e4===_0x492745;},'PNfsb':function(_0x2c8264,_0x3e8e35,_0x251144){return _0x2c8264(_0x3e8e35,_0x251144);}};let _0x20d2f5=_0x3b4831;const _0x1f5665=Math[_0x3d50ce(0xeb)](_0x353e59[_0x3d50ce(0x10a)],_0x49a9e9['mxLlZ'](_0x3b4831,0x2710));while(_0x49a9e9[_0x3d50ce(0xe6)](_0x20d2f5,_0x1f5665)){const [_0x1ee3a6,_0x256113]=readId(_0x353e59,_0x20d2f5),[_0x484386,_0xdf007a]=_0x49a9e9['CNRVE'](readVint,_0x353e59,_0x20d2f5+_0x256113);if(_0x49a9e9[_0x3d50ce(0xfc)](_0x1ee3a6,ID_INFO)){let _0x68c92f=_0x49a9e9[_0x3d50ce(0x122)](_0x20d2f5,_0x256113)+_0xdf007a;const _0x2ab3bc=_0x68c92f+_0x484386;while(_0x49a9e9[_0x3d50ce(0xe9)](_0x68c92f,_0x2ab3bc)){const [_0x5a0cd9,_0x1325bc]=readId(_0x353e59,_0x68c92f),[_0x3e0eae,_0x256595]=_0x49a9e9['CNRVE'](readVint,_0x353e59,_0x68c92f+_0x1325bc);if(_0x49a9e9[_0x3d50ce(0xe3)](_0x5a0cd9,ID_TIMESTAMP_SCALE))return readUint(_0x353e59,_0x49a9e9[_0x3d50ce(0x110)](_0x68c92f+_0x1325bc,_0x256595),_0x3e0eae);_0x68c92f+=_0x1325bc+_0x256595+_0x3e0eae;}break;}if(_0x49a9e9[_0x3d50ce(0x10d)](_0x1ee3a6,ID_CLUSTER))break;if(_0x49a9e9[_0x3d50ce(0x124)](isUnknownSize,_0x484386,_0xdf007a))break;_0x20d2f5+=_0x49a9e9[_0x3d50ce(0x110)](_0x49a9e9[_0x3d50ce(0x110)](_0x256113,_0xdf007a),_0x484386);}return 0xf4240;}function findFirstClusterOffset(_0x5ec1df,_0x54d67e){const _0x191e9f=_0x2297,_0x570dcd={'NympT':function(_0x5be1e6,_0x4a7b83){return _0x5be1e6+_0x4a7b83;}};let _0x123bb5=_0x54d67e;while(_0x123bb5<_0x5ec1df[_0x191e9f(0x10a)]){const [_0x2e57aa,_0x113cc0]=readId(_0x5ec1df,_0x123bb5);if(_0x2e57aa===ID_CLUSTER)return _0x123bb5;const [_0x6f2a73,_0x2ef0ad]=readVint(_0x5ec1df,_0x570dcd['NympT'](_0x123bb5,_0x113cc0));if(isUnknownSize(_0x6f2a73,_0x2ef0ad))return _0x123bb5;_0x123bb5+=_0x113cc0+_0x2ef0ad+_0x6f2a73;}return _0x5ec1df[_0x191e9f(0x10a)];}function findClusterEnd(_0x1ea224,_0x45ceaf,_0x450576,_0x31bc83){const _0x3411b2=_0x2297,_0x4494d1={'ANKzN':function(_0x39c4f0,_0x350bc1,_0x533268){return _0x39c4f0(_0x350bc1,_0x533268);},'sqOfk':function(_0xf9370a,_0x53d797){return _0xf9370a+_0x53d797;}};if(!isUnknownSize(_0x450576,_0x31bc83))return _0x45ceaf+_0x450576;const _0x4c5b8d=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x78cc5b=_0x45ceaf;while(_0x78cc5b<_0x1ea224['length']-0x4){const [_0x5d694b,_0x20655b]=_0x4494d1['ANKzN'](readId,_0x1ea224,_0x78cc5b);if(_0x4c5b8d['has'](_0x5d694b))return _0x78cc5b;const [_0x201267,_0x4770c2]=readVint(_0x1ea224,_0x78cc5b+_0x20655b);if(_0x4494d1[_0x3411b2(0x11a)](isUnknownSize,_0x201267,_0x4770c2))return _0x1ea224[_0x3411b2(0x10a)];_0x78cc5b+=_0x4494d1['sqOfk'](_0x20655b+_0x4770c2,_0x201267);}return _0x1ea224['length'];}function extractClusters(_0x2c1097,_0x3d5fa3){const _0x4356ee=_0x2297,_0x5d886a={'COuCO':function(_0x588830,_0x26848b,_0x47cdfc){return _0x588830(_0x26848b,_0x47cdfc);},'jfehs':function(_0x2ad968,_0x24b373){return _0x2ad968+_0x24b373;},'HmSmI':function(_0x15939c,_0x174a98){return _0x15939c+_0x174a98;},'depOq':function(_0x314985,_0x22bbc8){return _0x314985+_0x22bbc8;},'uQrGs':function(_0x243fe1,_0x831afd,_0x2f42e9,_0x3ef525,_0x2e5335){return _0x243fe1(_0x831afd,_0x2f42e9,_0x3ef525,_0x2e5335);},'mrmmZ':function(_0x367c47,_0x4282b7){return _0x367c47===_0x4282b7;},'MsDnj':function(_0x3fe9e5,_0x129f54){return _0x3fe9e5<_0x129f54;},'nuRoP':function(_0x544d30,_0x4f2ce2){return _0x544d30+_0x4f2ce2;},'AKMDT':function(_0x54c5ef,_0x356a3f){return _0x54c5ef>=_0x356a3f;},'Ybnbr':function(_0x52c698,_0x49563e){return _0x52c698+_0x49563e;},'iqcUY':function(_0x17d2ba,_0x1e779c,_0x1715c4){return _0x17d2ba(_0x1e779c,_0x1715c4);},'gtdeF':function(_0x4922d3,_0x3e835c){return _0x4922d3+_0x3e835c;},'QOztF':function(_0x199c1d,_0x2674c5){return _0x199c1d+_0x2674c5;}},_0x321a0b=[],_0x50e2f9=Buffer[_0x4356ee(0x109)]([0x1f,0x43,0xb6,0x75]);let _0x3546d4=0x0;while(_0x3546d4<_0x2c1097[_0x4356ee(0x10a)]){const _0x1a5122=_0x2c1097['indexOf'](_0x50e2f9,_0x3546d4);if(_0x1a5122===-0x1)break;const [_0x2067f8,_0x5d3221]=readId(_0x2c1097,_0x1a5122);if(_0x2067f8!==ID_CLUSTER){_0x3546d4=_0x1a5122+0x1;continue;}const [_0x45af21,_0x411eea]=_0x5d886a[_0x4356ee(0x11d)](readVint,_0x2c1097,_0x5d886a[_0x4356ee(0x100)](_0x1a5122,_0x5d3221)),_0x6e4b7f=_0x5d886a['HmSmI'](_0x5d886a[_0x4356ee(0x117)](_0x1a5122,_0x5d3221),_0x411eea),_0xd9f537=_0x5d886a['uQrGs'](findClusterEnd,_0x2c1097,_0x6e4b7f,_0x45af21,_0x411eea);let _0x4ef4f4=_0x6e4b7f,_0x3084c0=0x0,_0x465794=0x2,_0x37ef55=![],_0xa3276c=Buffer[_0x4356ee(0x121)](0x0),_0x29aa34=Buffer['alloc'](0x0);while(_0x4ef4f4<_0xd9f537){const [_0x192822,_0xc42db1]=_0x5d886a[_0x4356ee(0x11d)](readId,_0x2c1097,_0x4ef4f4),[_0xff1902,_0x1bcd34]=readVint(_0x2c1097,_0x4ef4f4+_0xc42db1);if(_0x5d886a[_0x4356ee(0x11c)](_0x192822,ID_TIMESTAMP)){_0x3084c0=readUint(_0x2c1097,_0x5d886a['HmSmI'](_0x4ef4f4,_0xc42db1)+_0x1bcd34,_0xff1902),_0x465794=_0xff1902,_0x37ef55=!![],_0xa3276c=_0x2c1097[_0x4356ee(0x106)](_0x6e4b7f,_0x4ef4f4);const _0x481a08=_0x5d886a['HmSmI'](_0x4ef4f4,_0xc42db1)+_0x1bcd34+_0xff1902;_0x29aa34=_0x2c1097['slice'](_0x481a08,_0xd9f537);break;}if(_0x192822===ID_CLUSTER)break;if(_0x5d886a['COuCO'](isUnknownSize,_0xff1902,_0x1bcd34))break;_0x4ef4f4+=_0xc42db1+_0x1bcd34+_0xff1902;}!_0x37ef55&&(_0x29aa34=_0x2c1097['slice'](_0x6e4b7f,_0xd9f537));let _0x34f1ad=_0x3084c0;_0x4ef4f4=_0x6e4b7f;while(_0x5d886a[_0x4356ee(0x111)](_0x4ef4f4,_0xd9f537)){const [_0x306508,_0x19db6c]=_0x5d886a[_0x4356ee(0x11d)](readId,_0x2c1097,_0x4ef4f4),[_0x24d1fb,_0x3bb57a]=readVint(_0x2c1097,_0x5d886a[_0x4356ee(0x120)](_0x4ef4f4,_0x19db6c));if(_0x5d886a[_0x4356ee(0x11c)](_0x306508,ID_SIMPLE_BLOCK)&&_0x5d886a[_0x4356ee(0xe4)](_0x24d1fb,0x4)){const _0x38f0e8=_0x5d886a[_0x4356ee(0xe1)](_0x4ef4f4,_0x19db6c)+_0x3bb57a,[,_0x45ae4e]=_0x5d886a['iqcUY'](readVint,_0x2c1097,_0x38f0e8),_0xc8fb34=_0x2c1097[_0x4356ee(0x105)](_0x5d886a['depOq'](_0x38f0e8,_0x45ae4e)),_0x368d74=_0x5d886a[_0x4356ee(0x11e)](_0x3084c0,_0xc8fb34);if(_0x368d74>_0x34f1ad)_0x34f1ad=_0x368d74;}if(_0x306508===ID_CLUSTER)break;if(isUnknownSize(_0x24d1fb,_0x3bb57a))break;_0x4ef4f4+=_0x5d886a[_0x4356ee(0xdd)](_0x19db6c+_0x3bb57a,_0x24d1fb);}_0x321a0b['push']({'timestamp':_0x3084c0,'maxTicks':_0x34f1ad,'bodyBeforeTimestamp':_0xa3276c,'bodyAfterTimestamp':_0x29aa34,'timestampElementSize':_0x465794}),_0x3546d4=_0xd9f537;}return _0x321a0b;}function parseWebm(_0x310062){const _0x16ba6f=_0x2297,_0x220427={'SojYP':function(_0x335713,_0x34642e){return _0x335713+_0x34642e;},'lJCTg':function(_0x2ccd23,_0x2c7eec,_0x2caebf){return _0x2ccd23(_0x2c7eec,_0x2caebf);},'MGfeT':function(_0x285c2b,_0x522bda){return _0x285c2b!==_0x522bda;},'iQqYe':function(_0x11fc26,_0x2bb4c1){return _0x11fc26>_0x2bb4c1;}};let _0x2a9bb4=0x0;const [,_0x3b4b67]=readId(_0x310062,_0x2a9bb4),[_0x4d9875,_0x3781d3]=readVint(_0x310062,_0x220427[_0x16ba6f(0x104)](_0x2a9bb4,_0x3b4b67));_0x2a9bb4+=_0x220427['SojYP'](_0x3b4b67+_0x3781d3,_0x4d9875);const [_0x3e0aca,_0x3457d6]=_0x220427['lJCTg'](readId,_0x310062,_0x2a9bb4);if(_0x220427[_0x16ba6f(0x103)](_0x3e0aca,ID_SEGMENT))return null;const [,_0x2b0e42]=readVint(_0x310062,_0x2a9bb4+_0x3457d6),_0x4c7ff2=_0x2a9bb4+_0x3457d6+_0x2b0e42,_0x444f8a=_0x220427['lJCTg'](findTimestampScale,_0x310062,_0x4c7ff2),_0x568f26=findFirstClusterOffset(_0x310062,_0x4c7ff2),_0x1d3235=_0x310062['slice'](0x0,_0x568f26),_0x4a36b2=extractClusters(_0x310062,_0x444f8a);let _0xde80ce=0x0;for(const _0x3f9438 of _0x4a36b2){if(_0x220427[_0x16ba6f(0x10e)](_0x3f9438[_0x16ba6f(0xed)],_0xde80ce))_0xde80ce=_0x3f9438['maxTicks'];}return{'header':_0x1d3235,'clusters':_0x4a36b2,'timestampScale':_0x444f8a,'maxTimestampTicks':_0xde80ce};}function buildCluster(_0x1b4dcc,_0x342867,_0x1cb052){const _0x639419=_0x2297,_0x277f1d={'uxtip':function(_0x33701b,_0x1218cc){return _0x33701b(_0x1218cc);}},_0x3d6814=Buffer[_0x639419(0x109)]([0x1f,0x43,0xb6,0x75]),_0x1ca7be=Math['max'](0x4,_0x277f1d['uxtip'](uintSize,_0x1b4dcc)),_0x2541d8=Buffer['concat']([Buffer[_0x639419(0x109)]([ID_TIMESTAMP]),_0x277f1d[_0x639419(0x11f)](writeVint,_0x1ca7be),writeUint(_0x1b4dcc,_0x1ca7be)]),_0x39805d=Buffer['concat']([_0x342867,_0x2541d8,_0x1cb052]),_0x459ffe=writeVint(_0x39805d[_0x639419(0x10a)]);return Buffer[_0x639419(0xff)]([_0x3d6814,_0x459ffe,_0x39805d]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x487604){const _0x140973=_0x2297,_0x20c992={'SIHHV':function(_0x517758,_0x2006fe,_0x4bd23e){return _0x517758(_0x2006fe,_0x4bd23e);},'SOTdh':function(_0x3fc102,_0x3dad6b){return _0x3fc102+_0x3dad6b;},'LdrUr':function(_0x2c20d9,_0x40e560){return _0x2c20d9+_0x40e560;},'TslNU':function(_0x32c63e,_0x14b395){return _0x32c63e+_0x14b395;},'QNtbu':function(_0x1e1156,_0x32a1fe){return _0x1e1156+_0x32a1fe;},'UlFMR':function(_0x2184c3,_0x2cf813){return _0x2184c3(_0x2cf813);},'ErQrk':function(_0x296dd1,_0x267a41){return _0x296dd1+_0x267a41;},'oMToY':function(_0x28e622,_0x552157){return _0x28e622<_0x552157;},'tTihA':function(_0x264328,_0x1ea6ab){return _0x264328===_0x1ea6ab;},'uHdOs':function(_0xafff6,_0x28cf08){return _0xafff6+_0x28cf08;},'wvgVm':function(_0x62eb4,_0xc041c){return _0x62eb4+_0xc041c;},'wVzgF':function(_0x4d2bfe,_0x4b32a4){return _0x4d2bfe+_0x4b32a4;},'OLXWQ':function(_0x1e1b27,_0x48fe20){return _0x1e1b27+_0x48fe20;},'LzNqF':function(_0x6932d7,_0x2fd8f9){return _0x6932d7+_0x2fd8f9;}},_0x801020=Buffer[_0x140973(0x109)](_0x487604);let _0x4ff720=0x0;const [,_0x8f226]=_0x20c992[_0x140973(0xfe)](readId,_0x801020,_0x4ff720),[_0x12cf20,_0x9ccaa5]=_0x20c992[_0x140973(0xfe)](readVint,_0x801020,_0x20c992[_0x140973(0xf6)](_0x4ff720,_0x8f226)),_0x3b680a=_0x20c992['LdrUr'](_0x20c992[_0x140973(0xf4)](_0x4ff720,_0x8f226)+_0x9ccaa5,_0x12cf20),[,_0x4d4f54]=readId(_0x801020,_0x3b680a),[,_0x3dad03]=readVint(_0x801020,_0x20c992['QNtbu'](_0x3b680a,_0x4d4f54)),_0x36b35f=_0x3b680a+_0x4d4f54+_0x3dad03,_0x230c96=_0x20c992[_0x140973(0x11b)](writeUnknownSizeVint,_0x3dad03);_0x230c96[_0x140973(0xf2)](_0x801020,_0x20c992['SOTdh'](_0x3b680a,_0x4d4f54));let _0x2d320c=_0x36b35f;const _0x16341d=Math[_0x140973(0xeb)](_0x801020[_0x140973(0x10a)],_0x20c992['ErQrk'](_0x36b35f,0x2710));while(_0x20c992[_0x140973(0xf7)](_0x2d320c,_0x16341d)){const [_0x48c4cc,_0xd0c0f6]=_0x20c992[_0x140973(0xfe)](readId,_0x801020,_0x2d320c),[_0x42aac3,_0x210a9a]=_0x20c992[_0x140973(0xfe)](readVint,_0x801020,_0x2d320c+_0xd0c0f6);if(_0x20c992[_0x140973(0xea)](_0x48c4cc,ID_CLUSTER))break;if(isUnknownSize(_0x42aac3,_0x210a9a))break;if(_0x48c4cc===ID_INFO){const _0x2cda74=_0x20c992['uHdOs'](_0x20c992[_0x140973(0xec)](_0x2d320c,_0xd0c0f6),_0x210a9a),_0x3e07e5=_0x2cda74+_0x42aac3,_0xb29bb=[];let _0x2d366e=_0x2cda74;while(_0x20c992['oMToY'](_0x2d366e,_0x3e07e5)){const [_0x5b0160,_0x129a3f]=readId(_0x801020,_0x2d366e),[_0x57e5aa,_0x111273]=readVint(_0x801020,_0x20c992['wVzgF'](_0x2d366e,_0x129a3f)),_0x5ed024=_0x129a3f+_0x111273+_0x57e5aa;_0x5b0160!==ID_DURATION&&_0xb29bb['push'](_0x801020['slice'](_0x2d366e,_0x20c992[_0x140973(0xef)](_0x2d366e,_0x5ed024))),_0x2d366e+=_0x5ed024;}const _0x87aa9d=Buffer[_0x140973(0xff)](_0xb29bb),_0x1c478e=Buffer[_0x140973(0xff)]([_0x801020['slice'](_0x2d320c,_0x20c992['LzNqF'](_0x2d320c,_0xd0c0f6)),_0x20c992['SIHHV'](writeVint,_0x87aa9d['length'],_0x210a9a)]);return Buffer[_0x140973(0xff)]([_0x801020['slice'](0x0,_0x2d320c),_0x1c478e,_0x87aa9d,_0x801020['slice'](_0x3e07e5)]);}_0x2d320c+=_0xd0c0f6+_0x210a9a+_0x42aac3;}return _0x801020;}export function stitchWebmFiles(_0x2cb8c4,_0x5a5229){const _0x114f1c=_0x2297,_0x39d99e={'UBhhY':function(_0x4e0aa2,_0x43ecc5){return _0x4e0aa2<=_0x43ecc5;},'xtreR':function(_0xf9ac7c,_0x490115){return _0xf9ac7c(_0x490115);},'tbfmO':function(_0x3f4741,_0x4e9c2a){return _0x3f4741(_0x4e9c2a);},'WgsHb':function(_0x57c53d,_0xc69381){return _0x57c53d+_0xc69381;},'YtQLu':function(_0x1cac66,_0x5e701d,_0xdace4d,_0x1dc3b7){return _0x1cac66(_0x5e701d,_0xdace4d,_0x1dc3b7);},'lDKOX':function(_0x4330bd,_0x149d32,_0x14b508){return _0x4330bd(_0x149d32,_0x14b508);}};if(_0x39d99e[_0x114f1c(0x113)](_0x2cb8c4[_0x114f1c(0x10a)],0x1))return![];const _0x146678=[];for(const _0x1ca485 of _0x2cb8c4){const _0x3629e6=readFileSync(_0x1ca485),_0x19314c=_0x39d99e[_0x114f1c(0x10f)](parseWebm,_0x3629e6);if(!_0x19314c||_0x19314c['clusters']['length']===0x0)return![];_0x146678['push'](_0x19314c);}const _0xbf2fd6=_0x146678[0x0],_0x4bde30=_0x39d99e['tbfmO'](rebuildHeaderWithoutDuration,_0xbf2fd6[_0x114f1c(0x115)]),_0x314a94=[_0x4bde30];let _0x12bd8b=0x0;for(let _0x590b18=0x0;_0x590b18<_0x146678['length'];_0x590b18++){const _0x5d447d=_0x146678[_0x590b18];for(const _0x4c8686 of _0x5d447d['clusters']){const _0x279801=_0x39d99e[_0x114f1c(0x125)](_0x4c8686[_0x114f1c(0xde)],_0x12bd8b);_0x314a94['push'](_0x39d99e['YtQLu'](buildCluster,_0x279801,_0x4c8686['bodyBeforeTimestamp'],_0x4c8686[_0x114f1c(0x112)]));}const _0xedd379=0x1e;_0x12bd8b+=_0x5d447d[_0x114f1c(0xf8)]+_0xedd379;}return _0x39d99e['lDKOX'](writeFileSync,_0x5a5229,Buffer[_0x114f1c(0xff)](_0x314a94)),!![];}if(process['argv'][0x1]?.[_0x6a6f67(0x10c)]('stitchWebmFiles.ts')||process[_0x6a6f67(0xe0)][0x1]?.['endsWith']('stitchWebmFiles.js')){const args=process['argv']['slice'](0x2);args['length']<0x3&&(console['error']('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process[_0x6a6f67(0xdc)](0x1));const output=args[args[_0x6a6f67(0x10a)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log'](_0x6a6f67(0xf3)+inputs['length']+'\x20files\x20->\x20'+output):console['log'](_0x6a6f67(0xfa));}
1
+ const _0x55242f=_0x5c71;(function(_0x49a793,_0x4ca0bd){const _0x154ba9=_0x5c71,_0x5a299a=_0x49a793();while(!![]){try{const _0x201b20=parseInt(_0x154ba9(0xcf))/0x1+parseInt(_0x154ba9(0xe0))/0x2+-parseInt(_0x154ba9(0xf0))/0x3*(-parseInt(_0x154ba9(0xdc))/0x4)+-parseInt(_0x154ba9(0xf3))/0x5*(-parseInt(_0x154ba9(0xf1))/0x6)+-parseInt(_0x154ba9(0xe2))/0x7+parseInt(_0x154ba9(0xda))/0x8*(-parseInt(_0x154ba9(0xbb))/0x9)+parseInt(_0x154ba9(0xf6))/0xa*(-parseInt(_0x154ba9(0xc2))/0xb);if(_0x201b20===_0x4ca0bd)break;else _0x5a299a['push'](_0x5a299a['shift']());}catch(_0x3be1c5){_0x5a299a['push'](_0x5a299a['shift']());}}}(_0x39c8,0x50346));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x2f325f,_0x5aba8d){const _0x157037=_0x5c71,_0x414919={'SFiIF':function(_0x22e83a,_0x1911c8){return _0x22e83a>=_0x1911c8;},'XiohZ':function(_0x1e2c17,_0x2d0f64){return _0x1e2c17<=_0x2d0f64;},'jDeyD':function(_0x99f23a,_0x812023){return _0x99f23a>_0x812023;},'fbuba':function(_0x1a5f09,_0x2d2539){return _0x1a5f09&_0x2d2539;},'yjmmV':function(_0x3ca8c6,_0x7c61b1){return _0x3ca8c6-_0x7c61b1;},'HLzJi':function(_0x49c6f0,_0x16a057){return _0x49c6f0+_0x16a057;}};if(_0x414919[_0x157037(0xe9)](_0x5aba8d,_0x2f325f[_0x157037(0xf7)]))return[0x0,0x0];const _0x34b14f=_0x2f325f[_0x5aba8d];let _0x54642f=0x1,_0x27ed1a=0x80;while(_0x414919['XiohZ'](_0x54642f,0x8)&&!(_0x34b14f&_0x27ed1a)){_0x54642f++,_0x27ed1a>>=0x1;}if(_0x414919[_0x157037(0xee)](_0x5aba8d+_0x54642f,_0x2f325f['length']))return[0x0,0x0];let _0x18618c=_0x414919[_0x157037(0xbd)](_0x34b14f,_0x414919['yjmmV'](_0x27ed1a,0x1));for(let _0x461f4c=0x1;_0x461f4c<_0x54642f;_0x461f4c++){_0x18618c=_0x414919['HLzJi'](_0x18618c*0x100,_0x2f325f[_0x5aba8d+_0x461f4c]);}return[_0x18618c,_0x54642f];}function readId(_0x1ea7ed,_0x57ec3b){const _0x4dde15=_0x5c71,_0x2f6086={'ZzeXs':function(_0x31fde6,_0x1b9ccd){return _0x31fde6>=_0x1b9ccd;},'jLvyr':function(_0x49446f,_0x359ac6){return _0x49446f>=_0x359ac6;},'HCBmY':function(_0x43bdde,_0x21a20e){return _0x43bdde>_0x21a20e;},'wqzDq':function(_0x1cea24,_0x2730c9){return _0x1cea24+_0x2730c9;},'XaYWH':function(_0x3efb13,_0x46c707){return _0x3efb13<_0x46c707;},'LNmUt':function(_0x42e294,_0xccbfcd){return _0x42e294+_0xccbfcd;}};if(_0x2f6086[_0x4dde15(0xf2)](_0x57ec3b,_0x1ea7ed['length']))return[0x0,0x0];const _0x51c4ef=_0x1ea7ed[_0x57ec3b];let _0x88b7f1;if(_0x51c4ef>=0x80)_0x88b7f1=0x1;else{if(_0x2f6086[_0x4dde15(0xf2)](_0x51c4ef,0x40))_0x88b7f1=0x2;else{if(_0x2f6086[_0x4dde15(0xdf)](_0x51c4ef,0x20))_0x88b7f1=0x3;else{if(_0x51c4ef>=0x10)_0x88b7f1=0x4;else return[_0x51c4ef,0x1];}}}if(_0x2f6086['HCBmY'](_0x2f6086['wqzDq'](_0x57ec3b,_0x88b7f1),_0x1ea7ed['length']))return[0x0,0x0];let _0x1f7d40=0x0;for(let _0x47d33e=0x0;_0x2f6086['XaYWH'](_0x47d33e,_0x88b7f1);_0x47d33e++){_0x1f7d40=_0x2f6086['LNmUt'](_0x1f7d40*0x100,_0x1ea7ed[_0x57ec3b+_0x47d33e]);}return[_0x1f7d40,_0x88b7f1];}function readUint(_0x2546f7,_0x312385,_0x3adae4){const _0x21d852=_0x5c71,_0x4a2f83={'rWJOZ':function(_0x3e9a44,_0x16c2d8){return _0x3e9a44+_0x16c2d8;}};let _0xca03bf=0x0;for(let _0x576b7a=0x0;_0x576b7a<_0x3adae4;_0x576b7a++){_0xca03bf=_0xca03bf*0x100+_0x2546f7[_0x4a2f83[_0x21d852(0xbe)](_0x312385,_0x576b7a)];}return _0xca03bf;}function isUnknownSize(_0x2d71f1,_0x5cf8f7){const _0x309d27=_0x5c71,_0x32f771={'OJVig':function(_0xfdbfd1,_0x301cf9){return _0xfdbfd1===_0x301cf9;},'aPesA':function(_0x4f2886,_0x53964f){return _0x4f2886*_0x53964f;}};return _0x32f771[_0x309d27(0xf5)](_0x2d71f1,Math['pow'](0x2,_0x32f771[_0x309d27(0xba)](0x7,_0x5cf8f7))-0x1);}function writeVint(_0x331f72,_0x275755){const _0x46fd4d=_0x5c71,_0x23ad2f={'XDGKQ':function(_0x4f69e3,_0x4c65a2){return _0x4f69e3-_0x4c65a2;},'tPMgV':function(_0x5b8085,_0x4157ee){return _0x5b8085>=_0x4157ee;},'OfGjU':function(_0x433e68,_0x139e94){return _0x433e68/_0x139e94;}};let _0x35b948=_0x275755||0x1;while(_0x23ad2f['XDGKQ'](Math[_0x46fd4d(0xb8)](0x2,0x7*_0x35b948),0x2)<_0x331f72)_0x35b948++;const _0xa5b9ab=Buffer['alloc'](_0x35b948);for(let _0x3044a1=_0x35b948-0x1;_0x23ad2f['tPMgV'](_0x3044a1,0x0);_0x3044a1--){_0xa5b9ab[_0x3044a1]=_0x331f72&0xff,_0x331f72=Math['floor'](_0x23ad2f['OfGjU'](_0x331f72,0x100));}return _0xa5b9ab[0x0]|=0x1<<_0x23ad2f[_0x46fd4d(0xbc)](0x8,_0x35b948),_0xa5b9ab;}function writeUint(_0x5c5e11,_0x4f725b){const _0x2a17f6=_0x5c71,_0x2231ac={'EEJWF':function(_0x556e35,_0x3ee238){return _0x556e35-_0x3ee238;},'oUYsK':function(_0x1f9276,_0x513009){return _0x1f9276>=_0x513009;},'IqRRJ':function(_0xc148fc,_0x50f902){return _0xc148fc&_0x50f902;},'fayGu':function(_0x576d1d,_0x3d5db1){return _0x576d1d/_0x3d5db1;}},_0x3e8334=Buffer[_0x2a17f6(0xd7)](_0x4f725b);for(let _0x41a4a7=_0x2231ac[_0x2a17f6(0xc4)](_0x4f725b,0x1);_0x2231ac[_0x2a17f6(0xe7)](_0x41a4a7,0x0);_0x41a4a7--){_0x3e8334[_0x41a4a7]=_0x2231ac[_0x2a17f6(0xce)](_0x5c5e11,0xff),_0x5c5e11=Math['floor'](_0x2231ac['fayGu'](_0x5c5e11,0x100));}return _0x3e8334;}function writeUnknownSizeVint(_0x79c1eb){const _0x1d1126=_0x5c71,_0xa023c6={'VfecH':function(_0x100140,_0x4d5d1b){return _0x100140-_0x4d5d1b;}},_0x1774cb=Buffer[_0x1d1126(0xd7)](_0x79c1eb,0xff);return _0x1774cb[0x0]=0xff>>_0xa023c6['VfecH'](_0x79c1eb,0x1),_0x1774cb;}function uintSize(_0xeabcd3){const _0x95ef8a=_0x5c71,_0x49a841={'SiTEV':function(_0x57059f,_0x20e2b9){return _0x57059f>_0x20e2b9;}};if(_0xeabcd3===0x0)return 0x1;let _0x1da33b=0x0,_0x56d87b=_0xeabcd3;while(_0x49a841[_0x95ef8a(0xec)](_0x56d87b,0x0)){_0x1da33b++,_0x56d87b=Math['floor'](_0x56d87b/0x100);}return _0x1da33b;}function findTimestampScale(_0x1af396,_0x2e76ac){const _0x3e4e6f=_0x5c71,_0xb8ac35={'uqFnn':function(_0x18acdf,_0x54a5b5){return _0x18acdf+_0x54a5b5;},'ulztw':function(_0x375817,_0x374127){return _0x375817===_0x374127;},'exLnf':function(_0x1a1b42,_0x9a4475){return _0x1a1b42+_0x9a4475;},'CDpBb':function(_0x148ce5,_0x134551){return _0x148ce5+_0x134551;},'vpzZk':function(_0x570198,_0x5eea9d){return _0x570198===_0x5eea9d;},'qHaSm':function(_0x2708d4,_0x4425a9,_0x2e5579,_0x2e520a){return _0x2708d4(_0x4425a9,_0x2e5579,_0x2e520a);},'Pejxc':function(_0x29561f,_0x2f5356){return _0x29561f+_0x2f5356;},'WyqDj':function(_0x42eec9,_0x214c15){return _0x42eec9===_0x214c15;},'myDiC':function(_0x211368,_0x3db9c6){return _0x211368+_0x3db9c6;}};let _0x3dfdec=_0x2e76ac;const _0x1d071b=Math[_0x3e4e6f(0xb9)](_0x1af396['length'],_0xb8ac35['uqFnn'](_0x2e76ac,0x2710));while(_0x3dfdec<_0x1d071b){const [_0xc775b0,_0x126181]=readId(_0x1af396,_0x3dfdec),[_0xbc01dd,_0xd970b4]=readVint(_0x1af396,_0xb8ac35[_0x3e4e6f(0xc9)](_0x3dfdec,_0x126181));if(_0xb8ac35['ulztw'](_0xc775b0,ID_INFO)){let _0x5d01c6=_0xb8ac35[_0x3e4e6f(0xc9)](_0x3dfdec+_0x126181,_0xd970b4);const _0x4d064b=_0xb8ac35[_0x3e4e6f(0xfa)](_0x5d01c6,_0xbc01dd);while(_0x5d01c6<_0x4d064b){const [_0x27c509,_0x21d556]=readId(_0x1af396,_0x5d01c6),[_0x44c5a6,_0x5d35ee]=readVint(_0x1af396,_0xb8ac35[_0x3e4e6f(0xd1)](_0x5d01c6,_0x21d556));if(_0xb8ac35['vpzZk'](_0x27c509,ID_TIMESTAMP_SCALE))return _0xb8ac35['qHaSm'](readUint,_0x1af396,_0xb8ac35[_0x3e4e6f(0xfa)](_0x5d01c6,_0x21d556)+_0x5d35ee,_0x44c5a6);_0x5d01c6+=_0xb8ac35['Pejxc'](_0xb8ac35['CDpBb'](_0x21d556,_0x5d35ee),_0x44c5a6);}break;}if(_0xb8ac35[_0x3e4e6f(0xf8)](_0xc775b0,ID_CLUSTER))break;if(isUnknownSize(_0xbc01dd,_0xd970b4))break;_0x3dfdec+=_0xb8ac35['myDiC'](_0x126181+_0xd970b4,_0xbc01dd);}return 0xf4240;}function findFirstClusterOffset(_0x1b0572,_0x28a3eb){const _0x2dad19=_0x5c71,_0x342e2={'lqIgU':function(_0x3af687,_0x52fbbc,_0x1e7102){return _0x3af687(_0x52fbbc,_0x1e7102);},'MCjTZ':function(_0x4d46c3,_0x34d999,_0x436270){return _0x4d46c3(_0x34d999,_0x436270);},'wpAmW':function(_0xe209b2,_0xbbf5d8){return _0xe209b2+_0xbbf5d8;}};let _0x15ff39=_0x28a3eb;while(_0x15ff39<_0x1b0572[_0x2dad19(0xf7)]){const [_0x1f1959,_0x2d8d40]=_0x342e2['lqIgU'](readId,_0x1b0572,_0x15ff39);if(_0x1f1959===ID_CLUSTER)return _0x15ff39;const [_0x3c9630,_0x11967a]=_0x342e2['MCjTZ'](readVint,_0x1b0572,_0x342e2['wpAmW'](_0x15ff39,_0x2d8d40));if(isUnknownSize(_0x3c9630,_0x11967a))return _0x15ff39;_0x15ff39+=_0x2d8d40+_0x11967a+_0x3c9630;}return _0x1b0572[_0x2dad19(0xf7)];}function findClusterEnd(_0x3d3dd2,_0x259cd7,_0x2be4e8,_0x5587af){const _0x5a4b43=_0x5c71,_0x50ae12={'PxGSv':function(_0x442d9c,_0x4e57e7,_0x21857c){return _0x442d9c(_0x4e57e7,_0x21857c);},'SWPGX':function(_0x31b752,_0x104c6b){return _0x31b752+_0x104c6b;},'LawJQ':function(_0x3c86dc,_0x59918f){return _0x3c86dc<_0x59918f;},'UhAqR':function(_0x42d4ce,_0x9efb6a,_0xff9e6d){return _0x42d4ce(_0x9efb6a,_0xff9e6d);}};if(!_0x50ae12[_0x5a4b43(0xca)](isUnknownSize,_0x2be4e8,_0x5587af))return _0x50ae12[_0x5a4b43(0xdb)](_0x259cd7,_0x2be4e8);const _0xa13857=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x1c5636=_0x259cd7;while(_0x50ae12[_0x5a4b43(0xf4)](_0x1c5636,_0x3d3dd2[_0x5a4b43(0xf7)]-0x4)){const [_0x49c8f3,_0x7ebe51]=readId(_0x3d3dd2,_0x1c5636);if(_0xa13857[_0x5a4b43(0xdd)](_0x49c8f3))return _0x1c5636;const [_0x159ee0,_0x1242a6]=readVint(_0x3d3dd2,_0x1c5636+_0x7ebe51);if(_0x50ae12['UhAqR'](isUnknownSize,_0x159ee0,_0x1242a6))return _0x3d3dd2['length'];_0x1c5636+=_0x50ae12['SWPGX'](_0x50ae12['SWPGX'](_0x7ebe51,_0x1242a6),_0x159ee0);}return _0x3d3dd2['length'];}function extractClusters(_0xc91e35,_0x42cc13){const _0x5b3080=_0x5c71,_0x481d4a={'JzUUu':function(_0x5857e3,_0x3d3220){return _0x5857e3===_0x3d3220;},'oJmpi':function(_0x3d37e2,_0x16f852){return _0x3d37e2+_0x16f852;},'bgHwV':function(_0x4d9c89,_0x78c44c){return _0x4d9c89<_0x78c44c;},'FKned':function(_0x59cde2,_0x1ca3d2,_0x1c0fbc){return _0x59cde2(_0x1ca3d2,_0x1c0fbc);},'vcaGD':function(_0x1df0f8,_0xe6ce49){return _0x1df0f8+_0xe6ce49;},'EADvI':function(_0x4a5874,_0x3e29a9){return _0x4a5874+_0x3e29a9;},'CGFUP':function(_0x13a563,_0x22a848,_0x584f70){return _0x13a563(_0x22a848,_0x584f70);},'DeYlZ':function(_0x382b60,_0x5c1821){return _0x382b60+_0x5c1821;},'kcVCG':function(_0x3fbaf4,_0x1a6813){return _0x3fbaf4+_0x1a6813;},'cmAJN':function(_0x2e7a45,_0x112b97){return _0x2e7a45>_0x112b97;},'bKyit':function(_0x2176f6,_0x49f09a,_0x1d1510){return _0x2176f6(_0x49f09a,_0x1d1510);}},_0x3b1363=[],_0x41dd82=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x284ab2=0x0;while(_0x284ab2<_0xc91e35[_0x5b3080(0xf7)]){const _0x50ca69=_0xc91e35[_0x5b3080(0xc0)](_0x41dd82,_0x284ab2);if(_0x481d4a['JzUUu'](_0x50ca69,-0x1))break;const [_0x619a19,_0x377c54]=readId(_0xc91e35,_0x50ca69);if(_0x619a19!==ID_CLUSTER){_0x284ab2=_0x50ca69+0x1;continue;}const [_0xe2eeb9,_0xf2f0b5]=readVint(_0xc91e35,_0x50ca69+_0x377c54),_0x8c682d=_0x481d4a['oJmpi'](_0x50ca69,_0x377c54)+_0xf2f0b5,_0xce0112=findClusterEnd(_0xc91e35,_0x8c682d,_0xe2eeb9,_0xf2f0b5);let _0x5d034d=_0x8c682d,_0x534ae4=0x0,_0x2c7388=0x2,_0x50aa63=![],_0x57c425=Buffer['alloc'](0x0),_0x20ba4d=Buffer['alloc'](0x0);while(_0x481d4a[_0x5b3080(0xc8)](_0x5d034d,_0xce0112)){const [_0x141fca,_0x2e908c]=readId(_0xc91e35,_0x5d034d),[_0xea751d,_0x4ede2d]=_0x481d4a[_0x5b3080(0xbf)](readVint,_0xc91e35,_0x5d034d+_0x2e908c);if(_0x141fca===ID_TIMESTAMP){_0x534ae4=readUint(_0xc91e35,_0x5d034d+_0x2e908c+_0x4ede2d,_0xea751d),_0x2c7388=_0xea751d,_0x50aa63=!![],_0x57c425=_0xc91e35['slice'](_0x8c682d,_0x5d034d);const _0x228e04=_0x481d4a['oJmpi'](_0x481d4a[_0x5b3080(0xde)](_0x481d4a['EADvI'](_0x5d034d,_0x2e908c),_0x4ede2d),_0xea751d);_0x20ba4d=_0xc91e35[_0x5b3080(0xcb)](_0x228e04,_0xce0112);break;}if(_0x141fca===ID_CLUSTER)break;if(_0x481d4a[_0x5b3080(0xd6)](isUnknownSize,_0xea751d,_0x4ede2d))break;_0x5d034d+=_0x481d4a[_0x5b3080(0xd2)](_0x2e908c+_0x4ede2d,_0xea751d);}!_0x50aa63&&(_0x20ba4d=_0xc91e35[_0x5b3080(0xcb)](_0x8c682d,_0xce0112));let _0x5ab9f6=_0x534ae4;_0x5d034d=_0x8c682d;while(_0x481d4a[_0x5b3080(0xc8)](_0x5d034d,_0xce0112)){const [_0x468213,_0x21f615]=_0x481d4a[_0x5b3080(0xbf)](readId,_0xc91e35,_0x5d034d),[_0x1b32c9,_0x28e1d8]=_0x481d4a[_0x5b3080(0xd6)](readVint,_0xc91e35,_0x481d4a['oJmpi'](_0x5d034d,_0x21f615));if(_0x481d4a['JzUUu'](_0x468213,ID_SIMPLE_BLOCK)&&_0x1b32c9>=0x4){const _0x3b4b58=_0x481d4a['oJmpi'](_0x481d4a['kcVCG'](_0x5d034d,_0x21f615),_0x28e1d8),[,_0x59402d]=readVint(_0xc91e35,_0x3b4b58),_0x18cfc2=_0xc91e35['readInt16BE'](_0x481d4a[_0x5b3080(0xde)](_0x3b4b58,_0x59402d)),_0x2945fa=_0x481d4a[_0x5b3080(0xfb)](_0x534ae4,_0x18cfc2);if(_0x481d4a['cmAJN'](_0x2945fa,_0x5ab9f6))_0x5ab9f6=_0x2945fa;}if(_0x468213===ID_CLUSTER)break;if(_0x481d4a['bKyit'](isUnknownSize,_0x1b32c9,_0x28e1d8))break;_0x5d034d+=_0x21f615+_0x28e1d8+_0x1b32c9;}_0x3b1363['push']({'timestamp':_0x534ae4,'maxTicks':_0x5ab9f6,'bodyBeforeTimestamp':_0x57c425,'bodyAfterTimestamp':_0x20ba4d,'timestampElementSize':_0x2c7388}),_0x284ab2=_0xce0112;}return _0x3b1363;}function _0x5c71(_0x430338,_0xd7bd5c){_0x430338=_0x430338-0xb8;const _0x39c851=_0x39c8();let _0x5c711d=_0x39c851[_0x430338];return _0x5c711d;}function parseWebm(_0x591051){const _0x24abbb=_0x5c71,_0x277eea={'lomOY':function(_0x43a881,_0x460881,_0x383c3a){return _0x43a881(_0x460881,_0x383c3a);},'FxRTr':function(_0x3c021f,_0x377402){return _0x3c021f+_0x377402;},'lNyOu':function(_0x9874be,_0x14969d,_0x342fa1){return _0x9874be(_0x14969d,_0x342fa1);},'dosHg':function(_0x1a466f,_0x4ccca9){return _0x1a466f+_0x4ccca9;},'FuKcF':function(_0x4f9d91,_0x51d2d9){return _0x4f9d91>_0x51d2d9;}};let _0x49aeaf=0x0;const [,_0x4f5e62]=readId(_0x591051,_0x49aeaf),[_0x5bc68a,_0x32d6c0]=_0x277eea[_0x24abbb(0xd0)](readVint,_0x591051,_0x277eea[_0x24abbb(0xd8)](_0x49aeaf,_0x4f5e62));_0x49aeaf+=_0x4f5e62+_0x32d6c0+_0x5bc68a;const [_0x4824eb,_0x587d4b]=readId(_0x591051,_0x49aeaf);if(_0x4824eb!==ID_SEGMENT)return null;const [,_0x5cbd5f]=_0x277eea['lNyOu'](readVint,_0x591051,_0x277eea[_0x24abbb(0xd8)](_0x49aeaf,_0x587d4b)),_0xa5f3a9=_0x277eea[_0x24abbb(0xea)](_0x49aeaf,_0x587d4b)+_0x5cbd5f,_0x451461=findTimestampScale(_0x591051,_0xa5f3a9),_0x388c5d=findFirstClusterOffset(_0x591051,_0xa5f3a9),_0x5a0cec=_0x591051['slice'](0x0,_0x388c5d),_0x4f13c8=_0x277eea['lomOY'](extractClusters,_0x591051,_0x451461);let _0x4129cf=0x0;for(const _0x12c74e of _0x4f13c8){if(_0x277eea[_0x24abbb(0xeb)](_0x12c74e['maxTicks'],_0x4129cf))_0x4129cf=_0x12c74e['maxTicks'];}return{'header':_0x5a0cec,'clusters':_0x4f13c8,'timestampScale':_0x451461,'maxTimestampTicks':_0x4129cf};}function buildCluster(_0x35101c,_0x17faf7,_0x402707){const _0x1b633d=_0x5c71,_0x1dac86=Buffer[_0x1b633d(0xc6)]([0x1f,0x43,0xb6,0x75]),_0x5a522a=Math[_0x1b633d(0xc3)](0x4,uintSize(_0x35101c)),_0x3236e8=Buffer['concat']([Buffer['from']([ID_TIMESTAMP]),writeVint(_0x5a522a),writeUint(_0x35101c,_0x5a522a)]),_0x1027fd=Buffer[_0x1b633d(0xe1)]([_0x17faf7,_0x3236e8,_0x402707]),_0x2a63cc=writeVint(_0x1027fd['length']);return Buffer['concat']([_0x1dac86,_0x2a63cc,_0x1027fd]);}function _0x39c8(){const _0x2d2930=['has','vcaGD','jLvyr','567858WRAXLe','concat','3341170uhXJky','ByJPG','error','XrYlB','wApFu','oUYsK','KeGgU','SFiIF','dosHg','FuKcF','SiTEV','HDQBJ','jDeyD','push','1509NjtZqP','67398nIpKkA','ZzeXs','195fCHWDm','LawJQ','OJVig','2070hhxGUG','length','WyqDj','argv','exLnf','oJmpi','pow','min','aPesA','9woAech','XDGKQ','fbuba','rWJOZ','FKned','indexOf','stitchWebmFiles.ts','16368pepwvB','max','EEJWF','exit','from','WAjdf','bgHwV','uqFnn','PxGSv','slice','wRQly','log','IqRRJ','432744lgugmz','lomOY','CDpBb','DeYlZ','header','XZUQj','Xyfxu','CGFUP','alloc','FxRTr','Stitched\x20','3083768wXqUEf','SWPGX','2740kjHLMG'];_0x39c8=function(){return _0x2d2930;};return _0x39c8();}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x53528f){const _0x4dbf0b=_0x5c71,_0x23867c={'qOBuf':function(_0x35d419,_0x47c8a8,_0x53bcfc){return _0x35d419(_0x47c8a8,_0x53bcfc);},'WAjdf':function(_0x25ac09,_0x29b925){return _0x25ac09+_0x29b925;},'wApFu':function(_0x2a2c57,_0x294a04){return _0x2a2c57+_0x294a04;},'KAtDg':function(_0x3d9bef,_0x3e4f10,_0x4d170f){return _0x3d9bef(_0x3e4f10,_0x4d170f);},'Xyfxu':function(_0x20f3a4,_0x58500c){return _0x20f3a4+_0x58500c;},'HDQBJ':function(_0x444af3,_0x243141){return _0x444af3(_0x243141);},'wRQly':function(_0x2d939b,_0x28d216){return _0x2d939b===_0x28d216;},'ByJPG':function(_0x57a28a,_0x1ffcd0){return _0x57a28a<_0x1ffcd0;},'XZUQj':function(_0x3a0624,_0x2a8668,_0xf459e1){return _0x3a0624(_0x2a8668,_0xf459e1);},'QlDGj':function(_0x349b27,_0x302045){return _0x349b27!==_0x302045;},'odiKc':function(_0x20758c,_0x35d820){return _0x20758c+_0x35d820;},'ykltx':function(_0x1c1686,_0x35e770,_0x2fc672){return _0x1c1686(_0x35e770,_0x2fc672);}},_0x37dea0=Buffer['from'](_0x53528f);let _0x4c4e98=0x0;const [,_0xf08b25]=_0x23867c['qOBuf'](readId,_0x37dea0,_0x4c4e98),[_0x5600e4,_0x48a1a3]=readVint(_0x37dea0,_0x23867c['WAjdf'](_0x4c4e98,_0xf08b25)),_0x140f68=_0x23867c['wApFu'](_0x4c4e98+_0xf08b25+_0x48a1a3,_0x5600e4),[,_0x37b839]=_0x23867c['qOBuf'](readId,_0x37dea0,_0x140f68),[,_0x33030d]=_0x23867c['KAtDg'](readVint,_0x37dea0,_0x23867c[_0x4dbf0b(0xe6)](_0x140f68,_0x37b839)),_0x10f2c8=_0x23867c[_0x4dbf0b(0xd5)](_0x140f68+_0x37b839,_0x33030d),_0x51948c=_0x23867c[_0x4dbf0b(0xed)](writeUnknownSizeVint,_0x33030d);_0x51948c['copy'](_0x37dea0,_0x140f68+_0x37b839);let _0x301a81=_0x10f2c8;const _0x22c118=Math[_0x4dbf0b(0xb9)](_0x37dea0[_0x4dbf0b(0xf7)],_0x10f2c8+0x2710);while(_0x301a81<_0x22c118){const [_0x186131,_0x6280c0]=_0x23867c['KAtDg'](readId,_0x37dea0,_0x301a81),[_0x11c533,_0x9ba42f]=readVint(_0x37dea0,_0x301a81+_0x6280c0);if(_0x23867c[_0x4dbf0b(0xcc)](_0x186131,ID_CLUSTER))break;if(isUnknownSize(_0x11c533,_0x9ba42f))break;if(_0x186131===ID_INFO){const _0x5ae850=_0x301a81+_0x6280c0+_0x9ba42f,_0x5c51a4=_0x23867c[_0x4dbf0b(0xc7)](_0x5ae850,_0x11c533),_0x81a0d7=[];let _0x4b3e08=_0x5ae850;while(_0x23867c[_0x4dbf0b(0xe3)](_0x4b3e08,_0x5c51a4)){const [_0x1f6488,_0x14fcc6]=readId(_0x37dea0,_0x4b3e08),[_0x312eeb,_0x4e2ea3]=_0x23867c[_0x4dbf0b(0xd4)](readVint,_0x37dea0,_0x23867c[_0x4dbf0b(0xd5)](_0x4b3e08,_0x14fcc6)),_0x42bd19=_0x23867c['wApFu'](_0x14fcc6,_0x4e2ea3)+_0x312eeb;_0x23867c['QlDGj'](_0x1f6488,ID_DURATION)&&_0x81a0d7['push'](_0x37dea0[_0x4dbf0b(0xcb)](_0x4b3e08,_0x4b3e08+_0x42bd19)),_0x4b3e08+=_0x42bd19;}const _0x5246b2=Buffer['concat'](_0x81a0d7),_0x6e5660=Buffer['concat']([_0x37dea0['slice'](_0x301a81,_0x23867c['odiKc'](_0x301a81,_0x6280c0)),_0x23867c['ykltx'](writeVint,_0x5246b2[_0x4dbf0b(0xf7)],_0x9ba42f)]);return Buffer[_0x4dbf0b(0xe1)]([_0x37dea0['slice'](0x0,_0x301a81),_0x6e5660,_0x5246b2,_0x37dea0['slice'](_0x5c51a4)]);}_0x301a81+=_0x23867c[_0x4dbf0b(0xd5)](_0x6280c0,_0x9ba42f)+_0x11c533;}return _0x37dea0;}export function stitchWebmFiles(_0x2a0dfc,_0x29c018){const _0x293ee2=_0x5c71,_0x26418a={'KeGgU':function(_0x4102c6,_0x4b7aa4){return _0x4102c6(_0x4b7aa4);},'XrYlB':function(_0x4aa1fa,_0x5c9439){return _0x4aa1fa(_0x5c9439);},'SzuGd':function(_0x497013,_0x445487){return _0x497013+_0x445487;},'xkEhp':function(_0x452d10,_0x493a85,_0xd44f51,_0x2e1dee){return _0x452d10(_0x493a85,_0xd44f51,_0x2e1dee);}};if(_0x2a0dfc['length']<=0x1)return![];const _0x2b4e74=[];for(const _0x372063 of _0x2a0dfc){const _0x4a1fb1=readFileSync(_0x372063),_0x59a739=_0x26418a[_0x293ee2(0xe8)](parseWebm,_0x4a1fb1);if(!_0x59a739||_0x59a739['clusters']['length']===0x0)return![];_0x2b4e74[_0x293ee2(0xef)](_0x59a739);}const _0x14184e=_0x2b4e74[0x0],_0xaa13e9=_0x26418a[_0x293ee2(0xe5)](rebuildHeaderWithoutDuration,_0x14184e[_0x293ee2(0xd3)]),_0x7d6c60=[_0xaa13e9];let _0x21db15=0x0;for(let _0x357cf4=0x0;_0x357cf4<_0x2b4e74[_0x293ee2(0xf7)];_0x357cf4++){const _0x2d623e=_0x2b4e74[_0x357cf4];for(const _0x2b7a7f of _0x2d623e['clusters']){const _0x93488=_0x26418a['SzuGd'](_0x2b7a7f['timestamp'],_0x21db15);_0x7d6c60[_0x293ee2(0xef)](_0x26418a['xkEhp'](buildCluster,_0x93488,_0x2b7a7f['bodyBeforeTimestamp'],_0x2b7a7f['bodyAfterTimestamp']));}const _0x28cd8e=0x1e;_0x21db15+=_0x2d623e['maxTimestampTicks']+_0x28cd8e;}return writeFileSync(_0x29c018,Buffer[_0x293ee2(0xe1)](_0x7d6c60)),!![];}if(process[_0x55242f(0xf9)][0x1]?.['endsWith'](_0x55242f(0xc1))||process[_0x55242f(0xf9)][0x1]?.['endsWith']('stitchWebmFiles.js')){const args=process[_0x55242f(0xf9)]['slice'](0x2);args['length']<0x3&&(console[_0x55242f(0xe4)]('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process[_0x55242f(0xc5)](0x1));const output=args[args[_0x55242f(0xf7)]-0x1],inputs=args[_0x55242f(0xcb)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x55242f(0xcd)](_0x55242f(0xd9)+inputs['length']+'\x20files\x20->\x20'+output):console[_0x55242f(0xcd)]('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}