@ranger-testing/ranger-cli 2.4.7 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/reportGenerator.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyInBrowser.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x47c243,_0x10b5a5){const _0x37da4e=_0x3ef6,_0x595a94=_0x47c243();while(!![]){try{const _0x2d304d=parseInt(_0x37da4e(0x140))/0x1+parseInt(_0x37da4e(0x13c))/0x2+-parseInt(_0x37da4e(0x146))/0x3*(parseInt(_0x37da4e(0x141))/0x4)+-parseInt(_0x37da4e(0x13e))/0x5*(parseInt(_0x37da4e(0x145))/0x6)+parseInt(_0x37da4e(0x143))/0x7*(parseInt(_0x37da4e(0x13f))/0x8)+parseInt(_0x37da4e(0x144))/0x9*(-parseInt(_0x37da4e(0x13d))/0xa)+parseInt(_0x37da4e(0x142))/0xb;if(_0x2d304d===_0x10b5a5)break;else _0x595a94['push'](_0x595a94['shift']());}catch(_0xa877b7){_0x595a94['push'](_0x595a94['shift']());}}}(_0x2a17,0xef41e));function _0x3ef6(_0x528783,_0x38fe3a){_0x528783=_0x528783-0x13c;const _0x2a178c=_0x2a17();let _0x3ef6dc=_0x2a178c[_0x528783];return _0x3ef6dc;}const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x53496f){const _0x33fa62={'ogAVv':function(_0x37a74d,_0x398ba4){return _0x37a74d(_0x398ba4);}},_0x548cc9=_0x53496f?_0x33fa62['ogAVv'](_0x53496f,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'+_0x548cc9+'.';}function _0x2a17(){const _0x4cae16=['8993314YZxVpO','4662TQcEQD','1575657cCFboA','109770ONOvAL','3677487GoFVAO','374054xdWzCg','10XUcqQM','130dyzfDA','8032zzwBJc','1183305RtsrZU','4DhYyIJ'];_0x2a17=function(){return _0x4cae16;};return _0x2a17();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5efe33,_0x3cdb6e){const _0x4d4fd2=_0x55fa,_0xb9062f=_0x5efe33();while(!![]){try{const _0x2d76de=-parseInt(_0x4d4fd2(0xd3))/0x1*(-parseInt(_0x4d4fd2(0xd1))/0x2)+-parseInt(_0x4d4fd2(0xd0))/0x3+-parseInt(_0x4d4fd2(0xce))/0x4*(parseInt(_0x4d4fd2(0xdc))/0x5)+parseInt(_0x4d4fd2(0xdb))/0x6*(parseInt(_0x4d4fd2(0xdd))/0x7)+parseInt(_0x4d4fd2(0xda))/0x8+parseInt(_0x4d4fd2(0xcd))/0x9*(parseInt(_0x4d4fd2(0xd8))/0xa)+parseInt(_0x4d4fd2(0xd5))/0xb;if(_0x2d76de===_0x3cdb6e)break;else _0xb9062f['push'](_0xb9062f['shift']());}catch(_0x4c7082){_0xb9062f['push'](_0xb9062f['shift']());}}}(_0x5d70,0x8b6bf));function _0x55fa(_0x323eb1,_0x14d342){_0x323eb1=_0x323eb1-0xca;const _0x5d7072=_0x5d70();let _0x55faf9=_0x5d7072[_0x323eb1];return _0x55faf9;}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x34b5e7=_0x55fa,_0x2f97fe={'jJfYZ':function(_0xba7d5e,_0x3b2eb3){return _0xba7d5e+_0x3b2eb3;},'WQQPK':function(_0x4c1473,_0x1ae2fd){return _0x4c1473+_0x1ae2fd;},'ogjLZ':_0x34b5e7(0xd6),'emwZH':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','FPjIb':'</div>'},_0x11f804=_0x2f97fe[_0x34b5e7(0xde)](_0x2f97fe[_0x34b5e7(0xcc)](_0x2f97fe[_0x34b5e7(0xcc)](_0x2f97fe[_0x34b5e7(0xcc)]('<div\x20class=\x22ranger-banner__content\x22>'+_0x34b5e7(0xd4),_0x2f97fe[_0x34b5e7(0xcf)]),'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>')+_0x2f97fe['emwZH']+_0x2f97fe[_0x34b5e7(0xd7)],'</div>'),_0x34b5e7(0xd9)),_0x6680f2='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return'\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20'+JSON[_0x34b5e7(0xcb)](_0x11f804)+_0x34b5e7(0xd2)+JSON['stringify'](_0x6680f2)+';\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;}function _0x5d70(){const _0x29c723=['5yUtMDJ','413OfPvET','jJfYZ','addInitScript','stringify','WQQPK','98469UPpfBE','3787340NzbTBr','ogjLZ','3003063MSxzXn','332642vkVzak',';\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','6uQwsBw','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','2919598Zvukxm','<div\x20class=\x22ranger-banner__message\x22>','FPjIb','150VdHndI','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','3762056OWTLFj','63174XJTibj'];_0x5d70=function(){return _0x29c723;};return _0x5d70();}export async function addProfileSetupBanner(_0x15a7fe){const _0x1b1032=_0x55fa;await _0x15a7fe[_0x1b1032(0xca)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc25096,_0x443ee4){const _0x4a64f6=_0x11ac,_0x16c47c=_0xc25096();while(!![]){try{const _0x3876b3=-parseInt(_0x4a64f6(0x140))/0x1*(-parseInt(_0x4a64f6(0x13a))/0x2)+parseInt(_0x4a64f6(0x143))/0x3*(-parseInt(_0x4a64f6(0x13d))/0x4)+-parseInt(_0x4a64f6(0x138))/0x5+parseInt(_0x4a64f6(0x13f))/0x6*(-parseInt(_0x4a64f6(0x132))/0x7)+parseInt(_0x4a64f6(0x134))/0x8+-parseInt(_0x4a64f6(0x139))/0x9*(-parseInt(_0x4a64f6(0x13b))/0xa)+parseInt(_0x4a64f6(0x136))/0xb*(parseInt(_0x4a64f6(0x142))/0xc);if(_0x3876b3===_0x443ee4)break;else _0x16c47c['push'](_0x16c47c['shift']());}catch(_0x23cfed){_0x16c47c['push'](_0x16c47c['shift']());}}}(_0x473e,0x89180));import{readFile}from'fs/promises';function _0x11ac(_0x1dca81,_0x5d362d){_0x1dca81=_0x1dca81-0x131;const _0x473e70=_0x473e();let _0x11ac2e=_0x473e70[_0x1dca81];return _0x11ac2e;}import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x3206a0=_0x11ac,_0x20cc2d={'uIpQk':function(_0x4b526e,_0x6efc10,_0x5a2384){return _0x4b526e(_0x6efc10,_0x5a2384);},'HFTwq':'config.json'};return _0x20cc2d[_0x3206a0(0x133)](join,getRangerDir(),_0x20cc2d['HFTwq']);}export async function loadRangerConfig(){const _0x28a8b7=_0x11ac,_0x356c01={'FwcQV':function(_0x45611c,_0x4d1953,_0x2dc230){return _0x45611c(_0x4d1953,_0x2dc230);},'eNBIl':'utf-8','rdOOP':function(_0x33e2f4,_0x684dd5){return _0x33e2f4!==_0x684dd5;},'wRMBf':function(_0x38be8d,_0xfabfe4){return _0x38be8d instanceof _0xfabfe4;}},_0x1a9742=getRangerConfigPath();if(!existsSync(_0x1a9742))return{};try{const _0x4aa7f2=await _0x356c01['FwcQV'](readFile,_0x1a9742,_0x356c01['eNBIl']),_0x20202b=JSON['parse'](_0x4aa7f2);if(!_0x20202b||_0x356c01[_0x28a8b7(0x131)](typeof _0x20202b,_0x28a8b7(0x135))||Array[_0x28a8b7(0x141)](_0x20202b))return{};const _0xd5b73a={},_0x23857c=_0x20202b['model'];return typeof _0x23857c==='string'&&(_0xd5b73a[_0x28a8b7(0x13c)]=_0x23857c),_0xd5b73a;}catch(_0x2ee486){const _0x3bdbd8=_0x356c01[_0x28a8b7(0x137)](_0x2ee486,Error)?_0x2ee486['message']:String(_0x2ee486);return console[_0x28a8b7(0x13e)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x1a9742+':\x20'+_0x3bdbd8),{};}}function _0x473e(){const _0xe15ae3=['model','4wJeDCT','warn','21444XmTxWC','2LSSlOE','isArray','174228shYVpV','2418873LNvkVZ','rdOOP','273SShmrf','uIpQk','6247960MBaMvo','object','572gpAxPV','wRMBf','2825460SBEPiW','18lUvBxs','125816ExSFOa','2052530bffshk'];_0x473e=function(){return _0xe15ae3;};return _0x473e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x363712,_0x4a58a3){const _0x13ac61=_0x11fc,_0x43e8bd=_0x363712();while(!![]){try{const _0x8e89a3=parseInt(_0x13ac61(0x9f))/0x1*(parseInt(_0x13ac61(0x93))/0x2)+parseInt(_0x13ac61(0x99))/0x3*(-parseInt(_0x13ac61(0x91))/0x4)+-parseInt(_0x13ac61(0x9c))/0x5*(-parseInt(_0x13ac61(0xa1))/0x6)+-parseInt(_0x13ac61(0xa0))/0x7*(parseInt(_0x13ac61(0x96))/0x8)+-parseInt(_0x13ac61(0x9d))/0x9+parseInt(_0x13ac61(0x95))/0xa*(-parseInt(_0x13ac61(0x9e))/0xb)+parseInt(_0x13ac61(0xa2))/0xc;if(_0x8e89a3===_0x4a58a3)break;else _0x43e8bd['push'](_0x43e8bd['shift']());}catch(_0x4632bb){_0x43e8bd['push'](_0x43e8bd['shift']());}}}(_0x1424,0x43c89));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';function _0x1424(){const _0x3f8bdc=['.ranger','525070roJfUx','85784TRfLSa','NSPtO','.git','3WTmRiG','root','KxusV','75YzfANU','4490856srBIbC','110xVuWcB','3JMhBCK','7BszNet','161166CuaFtj','10756704mGQTFB','1360904jdyAFc','sPOAu','235558bNYJQi'];_0x1424=function(){return _0x3f8bdc;};return _0x1424();}export function getRangerRoot(){const _0x4399e0=_0x11fc,_0x1be66b={'KxusV':function(_0x21a4ff,_0x2496f7){return _0x21a4ff(_0x2496f7);},'SMGxX':function(_0x5c9f0a,_0x4f0a3d){return _0x5c9f0a!==_0x4f0a3d;},'uePik':function(_0x3fb2d4,_0xb88164,_0x536b83){return _0x3fb2d4(_0xb88164,_0x536b83);},'LJjZY':'.ranger'};let _0x5c7226=process['cwd']();const _0x50a35f=_0x1be66b['KxusV'](parse,_0x5c7226)[_0x4399e0(0x9a)];while(_0x1be66b['SMGxX'](_0x5c7226,_0x50a35f)){if(existsSync(_0x1be66b['uePik'](join,_0x5c7226,_0x1be66b['LJjZY'])))return _0x5c7226;_0x5c7226=dirname(_0x5c7226);}if(_0x1be66b[_0x4399e0(0x9b)](existsSync,_0x1be66b['uePik'](join,_0x50a35f,_0x1be66b['LJjZY'])))return _0x50a35f;const _0x58b967=findGitRoot();if(_0x58b967)return _0x58b967;return process['cwd']();}function _0x11fc(_0x30784b,_0x4f830f){_0x30784b=_0x30784b-0x91;const _0x1424cd=_0x1424();let _0x11fc6f=_0x1424cd[_0x30784b];return _0x11fc6f;}export function getRangerDir(){const _0x38ed44=_0x11fc,_0x7d5993={'NkfRe':function(_0x7f7b,_0x3cbd6e,_0x5f5c1a){return _0x7f7b(_0x3cbd6e,_0x5f5c1a);}};return _0x7d5993['NkfRe'](join,getRangerRoot(),_0x38ed44(0x94));}export function findGitRoot(){const _0x28c0ec=_0x11fc,_0x3023f4={'sPOAu':function(_0x47a07f,_0x3376a8){return _0x47a07f(_0x3376a8);}};let _0x31ffdc=process['cwd']();const _0x49b69b=parse(_0x31ffdc)['root'];while(_0x31ffdc!==_0x49b69b){if(existsSync(join(_0x31ffdc,_0x28c0ec(0x98))))return _0x31ffdc;_0x31ffdc=_0x3023f4[_0x28c0ec(0x92)](dirname,_0x31ffdc);}if(existsSync(join(_0x49b69b,_0x28c0ec(0x98))))return _0x49b69b;return null;}export function getRangerHomeDir(){const _0x1c0dca=_0x11fc,_0x566826={'tEywT':function(_0x57387a,_0x4410c9,_0x356a52){return _0x57387a(_0x4410c9,_0x356a52);},'NSPtO':function(_0x331c24){return _0x331c24();}};return _0x566826['tEywT'](join,_0x566826[_0x1c0dca(0x97)](homedir),_0x1c0dca(0x94));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1fb924,_0x342e77){const _0x49aac3=_0x2d96,_0x14a128=_0x1fb924();while(!![]){try{const _0x129e12=-parseInt(_0x49aac3(0x13f))/0x1+parseInt(_0x49aac3(0x148))/0x2+parseInt(_0x49aac3(0x14f))/0x3+parseInt(_0x49aac3(0x145))/0x4*(parseInt(_0x49aac3(0x13c))/0x5)+-parseInt(_0x49aac3(0x12e))/0x6+parseInt(_0x49aac3(0x146))/0x7+-parseInt(_0x49aac3(0x136))/0x8;if(_0x129e12===_0x342e77)break;else _0x14a128['push'](_0x14a128['shift']());}catch(_0x24b378){_0x14a128['push'](_0x14a128['shift']());}}}(_0x3faa,0x808f7));import{readdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';export async function collectScreenshots(_0x190755){const _0x5d4d95=_0x2d96,_0x168f0f={'FmOQB':function(_0x550a98,_0x557662){return _0x550a98(_0x557662);},'KEnuO':function(_0x186bc5,_0x18634e,_0x4dbdc0){return _0x186bc5(_0x18634e,_0x4dbdc0);}},_0x2fb6dd=[],_0x932d7b=[];if(!_0x168f0f['FmOQB'](existsSync,_0x190755))return{'screenshots':_0x2fb6dd,'paths':_0x932d7b};const _0x22a1c0=await readdir(_0x190755),_0x524d5f=_0x22a1c0['filter'](_0x1beca3=>/\.(png|jpg|jpeg|gif|webp)$/i[_0x5d4d95(0x142)](_0x1beca3))['sort']();for(const _0x48656a of _0x524d5f){const _0x16d533=_0x168f0f['KEnuO'](join,_0x190755,_0x48656a);_0x2fb6dd[_0x5d4d95(0x133)]({'filename':_0x48656a,'path':_0x16d533,'relativePath':'./'+_0x48656a}),_0x932d7b['push'](_0x16d533);}return{'screenshots':_0x2fb6dd,'paths':_0x932d7b};}function _0x2d96(_0xc94eb9,_0x24fa4e){_0xc94eb9=_0xc94eb9-0x12d;const _0x3faac1=_0x3faa();let _0x2d967e=_0x3faac1[_0xc94eb9];return _0x2d967e;}function getSeverityEmoji(_0x2a408e){const _0x4f69d8=_0x2d96,_0x5de649={'iLqkD':_0x4f69d8(0x12f)};switch(_0x2a408e){case _0x5de649[_0x4f69d8(0x147)]:return'🔴';case _0x4f69d8(0x14e):return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x64c2dc){const _0x48c0e5=_0x2d96,_0x40e9ed=_0x64c2dc['replace'](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x41aa9c=_0x40e9ed[_0x48c0e5(0x14d)](/^\d+-/,'');return _0x41aa9c['split']('-')[_0x48c0e5(0x14a)](_0x22501e=>_0x22501e[_0x48c0e5(0x14b)](0x0)['toUpperCase']()+_0x22501e[_0x48c0e5(0x130)](0x1))['join']('\x20');}function _0x3faa(){const _0x26b9b4=['map','charAt','###\x20Summary','replace','MAJOR','914358xqMTef','qXCym','filename','4276884YyDwdg','BLOCKER','slice','##\x20Task','relativePath','push',']\x20Issue','**Status:**\x20','1494320JQoXVE','##\x20Screenshots\x20(','**Generated:**\x20','###\x20Issues\x20Found\x20(','find','PASSED','1440220txaerX','#\x20Verification\x20Report','ISSUES\x20FOUND','665251eqLdcj','**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer](','**URL:**\x20','test','length','severity','8QYYQsW','4958527pFzMBJ','iLqkD','1004406QxVdUf','screenshot'];_0x3faa=function(){return _0x26b9b4;};return _0x3faa();}export function generateMarkdownReport(_0x4dcbaf){const _0x253fde=_0x2d96,_0x5d0dab={'qXCym':function(_0x31b862,_0x3c2f7c){return _0x31b862/_0x3c2f7c;},'dMjNe':_0x253fde(0x13b),'mdJyM':_0x253fde(0x13e),'mmbFC':function(_0x45979c,_0x95ef0){return _0x45979c(_0x95ef0);}},{sessionId:_0x4ace87,task:_0x35a641,url:_0x2392c7,success:_0x2258d3,summary:_0x58886c,issues:_0x7b17,screenshots:_0x53ec65,durationMs:_0x379889,traceViewerUrl:_0x3ab67e}=_0x4dcbaf,_0x5866d5=new Date()['toISOString'](),_0x112150=_0x5d0dab[_0x253fde(0x150)](_0x379889,0x3e8)['toFixed'](0x1),_0x43c95f=[];_0x43c95f[_0x253fde(0x133)](_0x253fde(0x13d)),_0x43c95f[_0x253fde(0x133)](''),_0x43c95f[_0x253fde(0x133)]('**Session:**\x20`'+_0x4ace87+'`'),_0x43c95f[_0x253fde(0x133)](_0x253fde(0x138)+_0x5866d5),_0x43c95f['push']('**Duration:**\x20'+_0x112150+'s'),_0x43c95f[_0x253fde(0x133)](''),_0x43c95f[_0x253fde(0x133)](_0x253fde(0x131)),_0x43c95f[_0x253fde(0x133)](''),_0x43c95f['push'](_0x253fde(0x141)+_0x2392c7),_0x43c95f['push'](''),_0x43c95f[_0x253fde(0x133)]('>\x20'+_0x35a641),_0x43c95f['push'](''),_0x43c95f[_0x253fde(0x133)]('##\x20Result'),_0x43c95f['push']('');const _0x599eed=_0x2258d3?'✅':'❌';_0x43c95f['push'](_0x253fde(0x135)+_0x599eed+'\x20'+(_0x2258d3?_0x5d0dab['dMjNe']:_0x5d0dab['mdJyM'])),_0x43c95f[_0x253fde(0x133)](''),_0x43c95f[_0x253fde(0x133)](_0x253fde(0x14c)),_0x43c95f['push'](''),_0x43c95f['push'](_0x58886c),_0x43c95f['push']('');if(_0x7b17&&_0x7b17['length']>0x0){_0x43c95f['push'](_0x253fde(0x139)+_0x7b17[_0x253fde(0x143)]+')'),_0x43c95f['push']('');for(const _0x3d2ebc of _0x7b17){const _0x37a71d=getSeverityEmoji(_0x3d2ebc[_0x253fde(0x144)]);_0x43c95f['push']('####\x20'+_0x37a71d+'\x20['+_0x3d2ebc[_0x253fde(0x144)]+_0x253fde(0x134)),_0x43c95f['push'](''),_0x43c95f[_0x253fde(0x133)](_0x3d2ebc['description']),_0x43c95f['push']('');if(_0x3d2ebc[_0x253fde(0x149)]){const _0x536052=_0x3d2ebc['screenshot'],_0x3243a3=_0x53ec65[_0x253fde(0x13a)](_0x2eb84d=>_0x2eb84d['filename']===_0x536052||_0x2eb84d['filename']['includes'](_0x536052));_0x3243a3&&(_0x43c95f[_0x253fde(0x133)]('**Screenshot:**'),_0x43c95f[_0x253fde(0x133)](''),_0x43c95f['push'](''),_0x43c95f['push'](''));}}}if(_0x53ec65[_0x253fde(0x143)]>0x0){_0x43c95f[_0x253fde(0x133)](_0x253fde(0x137)+_0x53ec65['length']+')'),_0x43c95f[_0x253fde(0x133)]('');for(const _0x5ab0e4 of _0x53ec65){const _0x3d21ba=_0x5d0dab['mmbFC'](formatScreenshotCaption,_0x5ab0e4[_0x253fde(0x12d)]);_0x43c95f[_0x253fde(0x133)]('###\x20'+_0x3d21ba),_0x43c95f[_0x253fde(0x133)](''),_0x43c95f['push']('!['+_0x5ab0e4['filename']+']('+_0x5ab0e4[_0x253fde(0x132)]+')'),_0x43c95f['push']('');}}return _0x3ab67e&&(_0x43c95f[_0x253fde(0x133)]('---'),_0x43c95f[_0x253fde(0x133)](''),_0x43c95f[_0x253fde(0x133)](_0x253fde(0x140)+_0x3ab67e+')'),_0x43c95f[_0x253fde(0x133)]('')),_0x43c95f['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x39f5(_0x162a31,_0x208210){_0x162a31=_0x162a31-0xd9;const _0x460e74=_0x460e();let _0x39f5ca=_0x460e74[_0x162a31];return _0x39f5ca;}(function(_0x4a35f3,_0x1f2d74){const _0x2a2e6b=_0x39f5,_0x51bc81=_0x4a35f3();while(!![]){try{const _0x2b97e6=-parseInt(_0x2a2e6b(0xea))/0x1+-parseInt(_0x2a2e6b(0xe7))/0x2+-parseInt(_0x2a2e6b(0xda))/0x3*(parseInt(_0x2a2e6b(0xe6))/0x4)+parseInt(_0x2a2e6b(0xe8))/0x5+-parseInt(_0x2a2e6b(0xdf))/0x6*(-parseInt(_0x2a2e6b(0xe0))/0x7)+parseInt(_0x2a2e6b(0xe4))/0x8*(-parseInt(_0x2a2e6b(0xdc))/0x9)+parseInt(_0x2a2e6b(0xe2))/0xa;if(_0x2b97e6===_0x1f2d74)break;else _0x51bc81['push'](_0x51bc81['shift']());}catch(_0x4053c0){_0x51bc81['push'](_0x51bc81['shift']());}}}(_0x460e,0x2e3f1));function _0x460e(){const _0x2ce9a0=['ms...','lGHob','48lfnQky','312095OIZbti','yWkOd','3210870jogDkL','error','776ayICul','maxRetries','132gNKzgE','653056WnAJqG','1334545pdgQwz','wHtIk','170806DhwAHb','pow','2301hrdMAP','NFHbW','21582hwyzxg'];_0x460e=function(){return _0x2ce9a0;};return _0x460e();}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x1b4f8a,_0xe9081c){const _0x4a0218=_0x39f5,_0x43c3a8={'wHtIk':function(_0x1f00bb,_0x4f67b1){return _0x1f00bb instanceof _0x4f67b1;},'lGHob':function(_0xfc0921,_0x4487c3){return _0xfc0921(_0x4487c3);},'NFHbW':function(_0x5ce07b,_0x3c9522){return _0x5ce07b*_0x3c9522;},'yWkOd':function(_0x1a2787,_0x500b85){return _0x1a2787+_0x500b85;}},_0x2aef7d=_0xe9081c?.[_0x4a0218(0xe5)]??DEFAULT_MAX_RETRIES,_0x5e2bf4=_0xe9081c?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0xd97446;for(let _0x4326e3=0x0;_0x4326e3<=_0x2aef7d;_0x4326e3++){try{return await _0x1b4f8a();}catch(_0x29dd8e){_0xd97446=_0x43c3a8[_0x4a0218(0xe9)](_0x29dd8e,Error)?_0x29dd8e:new Error(_0x43c3a8[_0x4a0218(0xde)](String,_0x29dd8e));if(_0x4326e3<_0x2aef7d){const _0x437927=_0x43c3a8[_0x4a0218(0xdb)](_0x5e2bf4,Math[_0x4a0218(0xd9)](0x2,_0x4326e3));_0xe9081c?.['label']&&console[_0x4a0218(0xe3)](_0xe9081c['label']+'\x20failed\x20(attempt\x20'+_0x43c3a8[_0x4a0218(0xe1)](_0x4326e3,0x1)+'/'+_0x43c3a8[_0x4a0218(0xe1)](_0x2aef7d,0x1)+'),\x20retrying\x20in\x20'+_0x437927+_0x4a0218(0xdd)),await new Promise(_0x54a8cf=>setTimeout(_0x54a8cf,_0x437927));}}}throw _0xd97446;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x13f291=_0x537d;(function(_0x155f18,_0xf1ad3d){const _0x566774=_0x537d,_0x51f18b=_0x155f18();while(!![]){try{const _0x414637=-parseInt(_0x566774(0x1cd))/0x1*(parseInt(_0x566774(0x1a3))/0x2)+-parseInt(_0x566774(0x1b1))/0x3+-parseInt(_0x566774(0x1aa))/0x4*(-parseInt(_0x566774(0x1c9))/0x5)+-parseInt(_0x566774(0x1a5))/0x6*(parseInt(_0x566774(0x1bf))/0x7)+parseInt(_0x566774(0x1b3))/0x8+parseInt(_0x566774(0x1c0))/0x9*(parseInt(_0x566774(0x1ca))/0xa)+parseInt(_0x566774(0x19f))/0xb;if(_0x414637===_0xf1ad3d)break;else _0x51f18b['push'](_0x51f18b['shift']());}catch(_0xc0d416){_0x51f18b['push'](_0x51f18b['shift']());}}}(_0x1189,0xed8c1));import*as _0x21dab3 from'fs';import*as _0x32b412 from'path';import*as _0x376289 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x32b412['join'](_0x376289['homedir'](),_0x13f291(0x1ad),_0x13f291(0x1a9));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x57d189=_0x13f291,_0x13b5d5={'dvYvJ':function(_0x19d1c0){return _0x19d1c0();}};try{if(_0x21dab3[_0x57d189(0x1c8)](CACHE_FILE)){const _0x32c29c=JSON['parse'](_0x21dab3[_0x57d189(0x1b5)](CACHE_FILE,_0x57d189(0x1d4)));return{'version':0x3,'sessions':_0x32c29c['sessions']||{},'branches':_0x32c29c['branches']||{},'lastEnabledSessionClearedAt':_0x32c29c[_0x57d189(0x1a8)]};}}catch{}return _0x13b5d5[_0x57d189(0x1ba)](createEmptyCache);}function saveCache(_0x24a321){const _0x4782b9=_0x13f291;try{const _0xaaf1f=_0x32b412[_0x4782b9(0x1b4)](CACHE_FILE);!_0x21dab3[_0x4782b9(0x1c8)](_0xaaf1f)&&_0x21dab3[_0x4782b9(0x1c7)](_0xaaf1f,{'recursive':!![]}),_0x21dab3[_0x4782b9(0x1d6)](CACHE_FILE,JSON[_0x4782b9(0x1b0)](_0x24a321,null,0x2));}catch{}}export function getCurrentBranch(){const _0x28d48d=_0x13f291,_0xcf7678={'GiFYl':function(_0x55bb65,_0x4f8826,_0x2e24fc){return _0x55bb65(_0x4f8826,_0x2e24fc);},'vwloa':_0x28d48d(0x1c2),'Vofnl':_0x28d48d(0x19e)};try{const _0x5c28a7=_0xcf7678['GiFYl'](execSync,'git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x28d48d(0x1d4),'stdio':[_0xcf7678['vwloa'],'pipe',_0xcf7678['vwloa']]})['trim']();if(!_0x5c28a7||_0x5c28a7===_0xcf7678[_0x28d48d(0x1be)])return null;return _0x5c28a7;}catch{return null;}}export function enableBranch(_0x11c7e3){const _0x276309={'zLRCq':function(_0x97ad28){return _0x97ad28();}},_0xfb0db0=_0x276309['zLRCq'](loadCache);_0xfb0db0['branches'][_0x11c7e3]=!![],saveCache(_0xfb0db0);}export function disableBranch(_0x81f6){const _0x15cb16=_0x13f291,_0x2d8c5={'pKUyn':function(_0x1979b3){return _0x1979b3();}},_0x1db695=_0x2d8c5[_0x15cb16(0x1b7)](loadCache);delete _0x1db695['branches'][_0x81f6],saveCache(_0x1db695);}export function isBranchEnabled(_0x16770b){const _0x164a31=_0x13f291,_0x888d85={'jiFvW':function(_0x316cd1,_0x2e447e){return _0x316cd1===_0x2e447e;}},_0x2cade4=loadCache();return _0x888d85['jiFvW'](_0x2cade4[_0x164a31(0x1ab)][_0x16770b],!![]);}function getOrCreateSession(_0x44260e,_0x2b7a47){const _0x1d088a=_0x13f291;return!_0x44260e['sessions'][_0x2b7a47]&&(_0x44260e[_0x1d088a(0x1d7)][_0x2b7a47]={}),_0x44260e[_0x1d088a(0x1d7)][_0x2b7a47];}export function enableSession(_0x930e08){const _0x486966=_0x13f291,_0x200ca9={'vcUuC':function(_0x140ae9){return _0x140ae9();},'ebtnI':function(_0x135402){return _0x135402();},'GQRCU':function(_0x4084d0,_0x68ffd0){return _0x4084d0!==_0x68ffd0;}},_0x521f4a=_0x200ca9[_0x486966(0x1a4)](loadCache),_0x400401=getOrCreateSession(_0x521f4a,_0x930e08);_0x400401[_0x486966(0x1ac)]=!![];const _0x1d76d4=_0x200ca9[_0x486966(0x1d3)](getCurrentBranch);_0x1d76d4&&_0x200ca9[_0x486966(0x1d5)](_0x1d76d4,'main')&&_0x1d76d4!==_0x486966(0x1bd)&&(_0x521f4a[_0x486966(0x1ab)][_0x1d76d4]=!![],_0x400401[_0x486966(0x1a7)]=_0x1d76d4),saveCache(_0x521f4a);}export function isSessionEnabled(_0x411eb0){const _0x2da45f=_0x13f291,_0x58f94c={'JGiaL':function(_0x589256){return _0x589256();},'FVmDH':function(_0x2abc60,_0x1b24bd){return _0x2abc60===_0x1b24bd;},'uEkzB':function(_0x5c84a4,_0x4cf6ed){return _0x5c84a4===_0x4cf6ed;},'GaVky':function(_0x6db4dc,_0xd7b831){return _0x6db4dc===_0xd7b831;},'DkHGn':function(_0x257a34,_0x3f1577){return _0x257a34===_0x3f1577;}},_0x54eb9f=loadCache(),_0x4529a6=_0x58f94c['JGiaL'](getCurrentBranch);if(!_0x4529a6||_0x4529a6===_0x2da45f(0x1b6)||_0x58f94c['FVmDH'](_0x4529a6,'master'))return _0x58f94c['uEkzB'](_0x54eb9f[_0x2da45f(0x1d7)][_0x411eb0]?.[_0x2da45f(0x1ac)],!![]);const _0x50f082=_0x58f94c[_0x2da45f(0x1a1)](_0x54eb9f[_0x2da45f(0x1ab)][_0x4529a6],!![]),_0x1c0fa6=_0x58f94c[_0x2da45f(0x1c4)](_0x54eb9f[_0x2da45f(0x1d7)][_0x411eb0]?.['enabled'],!![]);return _0x50f082||_0x1c0fa6;}export function disableSession(_0x381953){const _0xe70f2a=_0x13f291,_0x20623c={'tLvOP':function(_0x437111,_0x2e635a,_0x4bea54){return _0x437111(_0x2e635a,_0x4bea54);},'KVqtL':function(_0xdff9b5,_0x3e10fd){return _0xdff9b5(_0x3e10fd);}},_0x64e756=loadCache(),_0x1a586d=_0x20623c['tLvOP'](getOrCreateSession,_0x64e756,_0x381953);_0x1a586d[_0xe70f2a(0x1ac)]=![],_0x20623c['KVqtL'](saveCache,_0x64e756);}export function updateBranchTracking(_0x2b30ff){const _0x1a3136=_0x13f291,_0x37a7f5={'HvEgM':function(_0x3aa393){return _0x3aa393();},'GKVRE':function(_0x30cb88,_0x12b2b3){return _0x30cb88===_0x12b2b3;},'wXFPI':_0x1a3136(0x1bd)},_0xde89ad=_0x37a7f5[_0x1a3136(0x1af)](loadCache),_0x25d976=_0xde89ad['sessions'][_0x2b30ff];if(!_0x25d976?.[_0x1a3136(0x1ac)])return;const _0x10e1d3=_0x37a7f5[_0x1a3136(0x1af)](getCurrentBranch);if(!_0x10e1d3||_0x10e1d3==='main'||_0x37a7f5['GKVRE'](_0x10e1d3,_0x37a7f5['wXFPI']))return;_0x25d976[_0x1a3136(0x1a7)]!==_0x10e1d3&&(_0xde89ad['branches'][_0x10e1d3]=!![],_0x25d976['currentBranch']=_0x10e1d3,saveCache(_0xde89ad));}export function initBranchTracking(_0xf24bcd){const _0x54a650=_0x13f291,_0xe72b21={'uilsN':_0x54a650(0x1b6),'TTSSC':function(_0x40bee5,_0x4c9c51){return _0x40bee5===_0x4c9c51;},'NneXp':'master','rbKME':function(_0x4491d5,_0x5bd3b6){return _0x4491d5===_0x5bd3b6;},'Kfpug':function(_0x32ea2f,_0x1995a8){return _0x32ea2f(_0x1995a8);}},_0x2a7ef5=loadCache(),_0x50bab5=getCurrentBranch();if(!_0x50bab5||_0x50bab5===_0xe72b21[_0x54a650(0x1cf)]||_0xe72b21['TTSSC'](_0x50bab5,_0xe72b21['NneXp']))return;if(_0xe72b21['rbKME'](_0x2a7ef5['branches'][_0x50bab5],!![])){const _0x20c2ea=getOrCreateSession(_0x2a7ef5,_0xf24bcd);_0x20c2ea['enabled']=!![],_0x20c2ea['currentBranch']=_0x50bab5,_0xe72b21['Kfpug'](saveCache,_0x2a7ef5);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;function _0x1189(){const _0x5036bc=['pKUyn','HeWAZ','hvFxG','dvYvJ','lastPlanReminderAt','Kxzrc','master','Vofnl','28wwPFYP','63xfZbOn','now','pipe','PFLLz','DkHGn','weRXD','MzJkY','mkdirSync','existsSync','672155wUkCuJ','1479070UjyVgs','zJLYn','bvEJg','6eOBmEO','jweFy','uilsN','FWBQJ','prompted','FPXzn','ebtnI','utf-8','GQRCU','writeFileSync','sessions','registeredAt','HEAD','3160641momEGr','BQwRD','GaVky','LbLCG','93824FeNtWd','vcUuC','84654mGKQOg','featureId','currentBranch','lastEnabledSessionClearedAt','.ranger_cache.json','28cNQHIO','branches','enabled','.claude','AgbRA','HvEgM','stringify','4977714dDAVkA','clear','5651536WKNoWh','dirname','readFileSync','main'];_0x1189=function(){return _0x5036bc;};return _0x1189();}export function recordEnabledSessionCleared(_0x3ef578){const _0x524ed2=_0x13f291,_0xb0e9ac={'TWMJu':function(_0x54348d){return _0x54348d();}},_0x5aa8e4=_0xb0e9ac['TWMJu'](loadCache),_0x3a2391=_0x5aa8e4[_0x524ed2(0x1d7)][_0x3ef578];_0x3a2391?.['enabled']&&(_0x5aa8e4['lastEnabledSessionClearedAt']=Date[_0x524ed2(0x1c1)](),saveCache(_0x5aa8e4));}export function shouldAutoEnableAfterClear(_0x466d63){const _0x45e9ac=_0x13f291,_0x2e2450={'MzJkY':function(_0x408280,_0x5b1918){return _0x408280!==_0x5b1918;},'LbLCG':_0x45e9ac(0x1b2),'zAyNN':function(_0x341a8a,_0x4dd57d){return _0x341a8a<=_0x4dd57d;}};if(_0x2e2450[_0x45e9ac(0x1c6)](_0x466d63,_0x2e2450[_0x45e9ac(0x1a2)]))return![];const _0x5d278c=loadCache(),_0x351c94=_0x5d278c[_0x45e9ac(0x1a8)];if(!_0x351c94)return![];const _0x2568ec=Date['now']()-_0x351c94;return _0x2e2450['zAyNN'](_0x2568ec,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x54cc74){const _0x30ef6e=_0x13f291,_0x1063e3={'hvFxG':function(_0x182a76,_0x198e70){return _0x182a76!==_0x198e70;},'BQwRD':_0x30ef6e(0x1b6),'Kxzrc':_0x30ef6e(0x1bd),'IjNMe':function(_0x4f4b19,_0x3fe420){return _0x4f4b19(_0x3fe420);}},_0x1463f8=loadCache(),_0x2d5ae1=getOrCreateSession(_0x1463f8,_0x54cc74);_0x2d5ae1['enabled']=!![];const _0x4f2740=getCurrentBranch();_0x4f2740&&_0x1063e3[_0x30ef6e(0x1b9)](_0x4f2740,_0x1063e3[_0x30ef6e(0x1a0)])&&_0x4f2740!==_0x1063e3[_0x30ef6e(0x1bc)]&&(_0x2d5ae1['currentBranch']=_0x4f2740),delete _0x1463f8['lastEnabledSessionClearedAt'],_0x1063e3['IjNMe'](saveCache,_0x1463f8);}export function registerSession(_0x24d94e,_0x1eddfd){const _0x30b2db=_0x13f291,_0x2458a7={'YZcRI':function(_0x72945d,_0x546f6e,_0x5bb4dc){return _0x72945d(_0x546f6e,_0x5bb4dc);}},_0x15ba8d=loadCache(),_0x3d2ce2=_0x2458a7['YZcRI'](getOrCreateSession,_0x15ba8d,_0x24d94e);_0x3d2ce2['featureId']=_0x1eddfd,_0x3d2ce2[_0x30b2db(0x1d8)]=new Date()['toISOString'](),saveCache(_0x15ba8d);}function _0x537d(_0x21299f,_0x9cfb1c){_0x21299f=_0x21299f-0x19e;const _0x118967=_0x1189();let _0x537d33=_0x118967[_0x21299f];return _0x537d33;}export function getSessionEntry(_0x5926a7){const _0x1d1115=_0x13f291,_0x25e92f={'weRXD':function(_0x33dc1c){return _0x33dc1c();}},_0x41925c=_0x25e92f[_0x1d1115(0x1c5)](loadCache),_0x76a864=_0x41925c[_0x1d1115(0x1d7)][_0x5926a7];if(_0x76a864?.['featureId']&&_0x76a864?.[_0x1d1115(0x1d8)])return{'featureId':_0x76a864['featureId'],'registeredAt':_0x76a864['registeredAt']};return null;}export function unregisterSession(_0x2882f5){const _0x33e726=_0x13f291,_0x345a09={'PFLLz':function(_0x43c68,_0x295d0d){return _0x43c68(_0x295d0d);}},_0x363495=loadCache(),_0x3f0e1c=_0x363495[_0x33e726(0x1d7)][_0x2882f5];_0x3f0e1c&&(delete _0x3f0e1c[_0x33e726(0x1a6)],delete _0x3f0e1c[_0x33e726(0x1d8)],_0x345a09[_0x33e726(0x1c3)](saveCache,_0x363495));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x435736){const _0x3f45f3=_0x13f291,_0x46f19a={'XhTbA':function(_0xc7e2ba){return _0xc7e2ba();},'yTJNT':function(_0x2fcf23,_0x48b5d2,_0x5b2f99){return _0x2fcf23(_0x48b5d2,_0x5b2f99);},'nRsaj':function(_0xd388ca,_0x187a10){return _0xd388ca>=_0x187a10;}},_0x1d01e9=_0x46f19a['XhTbA'](loadCache),_0x4cb10a=_0x46f19a['yTJNT'](getOrCreateSession,_0x1d01e9,_0x435736),_0x487acb=_0x4cb10a[_0x3f45f3(0x1bb)]||0x0,_0x2769fd=Date['now']();if(_0x46f19a['nRsaj'](_0x2769fd-_0x487acb,PLAN_REMINDER_INTERVAL_MS))return _0x4cb10a['lastPlanReminderAt']=_0x2769fd,saveCache(_0x1d01e9),!![];return![];}export function shouldShowStopReminder(_0x2bb00c){const _0x324a71=_0x13f291,_0x2a0435={'AgbRA':function(_0x32e4b9){return _0x32e4b9();},'HeWAZ':function(_0x1280e7,_0x362fd4){return _0x1280e7>=_0x362fd4;},'FWBQJ':function(_0x13801c,_0x1ce762){return _0x13801c(_0x1ce762);}},_0x23301b=_0x2a0435[_0x324a71(0x1ae)](loadCache),_0x516659=getOrCreateSession(_0x23301b,_0x2bb00c),_0x171f54=_0x516659['lastStopReminderAt']||0x0,_0x3c4a43=Date[_0x324a71(0x1c1)]();if(_0x2a0435[_0x324a71(0x1b8)](_0x3c4a43-_0x171f54,STOP_REMINDER_INTERVAL_MS))return _0x516659['lastStopReminderAt']=_0x3c4a43,_0x2a0435[_0x324a71(0x1d0)](saveCache,_0x23301b),!![];return![];}export function hasSessionBeenPrompted(_0x3748c7){const _0x16101c=_0x13f291,_0x2fb9fd={'zJLYn':function(_0x45eed9){return _0x45eed9();},'FPXzn':function(_0x4d7b69,_0xe5b40d){return _0x4d7b69===_0xe5b40d;}},_0x149d1d=_0x2fb9fd[_0x16101c(0x1cb)](loadCache);return _0x2fb9fd[_0x16101c(0x1d2)](_0x149d1d[_0x16101c(0x1d7)][_0x3748c7]?.['prompted'],!![]);}export function markSessionPrompted(_0x96943){const _0x3b2c38=_0x13f291,_0x3df18a={'jweFy':function(_0x283d3f){return _0x283d3f();},'bvEJg':function(_0xefad7,_0x386918){return _0xefad7(_0x386918);}},_0x573095=_0x3df18a[_0x3b2c38(0x1ce)](loadCache),_0x5257d6=getOrCreateSession(_0x573095,_0x96943);_0x5257d6[_0x3b2c38(0x1d1)]=!![],_0x3df18a[_0x3b2c38(0x1cc)](saveCache,_0x573095);}export function getCacheFile(){return CACHE_FILE;}
|
|
1
|
+
const _0x4ce9be=_0x5a6c;(function(_0x194c09,_0x16c2ee){const _0x1dfb96=_0x5a6c,_0xfb0459=_0x194c09();while(!![]){try{const _0x50b4fd=-parseInt(_0x1dfb96(0x153))/0x1+parseInt(_0x1dfb96(0x144))/0x2+-parseInt(_0x1dfb96(0x154))/0x3*(-parseInt(_0x1dfb96(0x162))/0x4)+parseInt(_0x1dfb96(0x151))/0x5+-parseInt(_0x1dfb96(0x146))/0x6*(-parseInt(_0x1dfb96(0x143))/0x7)+parseInt(_0x1dfb96(0x155))/0x8+-parseInt(_0x1dfb96(0x14e))/0x9;if(_0x50b4fd===_0x16c2ee)break;else _0xfb0459['push'](_0xfb0459['shift']());}catch(_0x459aa8){_0xfb0459['push'](_0xfb0459['shift']());}}}(_0x7f60,0xc7161));import*as _0x29ec63 from'fs';import*as _0x52927b from'path';import*as _0x4af9c7 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x52927b['join'](_0x4af9c7['homedir'](),'.claude',_0x4ce9be(0x158));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x5d2897=_0x4ce9be,_0xf97ad2={'vvKQT':'utf-8'};try{if(_0x29ec63['existsSync'](CACHE_FILE)){const _0x50d661=JSON[_0x5d2897(0x148)](_0x29ec63[_0x5d2897(0x14a)](CACHE_FILE,_0xf97ad2['vvKQT']));return{'version':0x3,'sessions':_0x50d661[_0x5d2897(0x13f)]||{},'branches':_0x50d661[_0x5d2897(0x141)]||{},'lastEnabledSessionClearedAt':_0x50d661['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0xcb21b9){const _0x5baa13=_0x4ce9be;try{const _0x3d0b7a=_0x52927b[_0x5baa13(0x14b)](CACHE_FILE);!_0x29ec63[_0x5baa13(0x14d)](_0x3d0b7a)&&_0x29ec63[_0x5baa13(0x142)](_0x3d0b7a,{'recursive':!![]}),_0x29ec63['writeFileSync'](CACHE_FILE,JSON[_0x5baa13(0x15c)](_0xcb21b9,null,0x2));}catch{}}export function getCurrentBranch(){const _0x2ea05a=_0x4ce9be,_0x45dedc={'NfpMk':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','ghlDu':_0x2ea05a(0x160)};try{const _0xa5f4cb=execSync(_0x45dedc['NfpMk'],{'encoding':'utf-8','stdio':[_0x2ea05a(0x160),_0x45dedc['ghlDu'],'pipe']})[_0x2ea05a(0x149)]();if(!_0xa5f4cb||_0xa5f4cb==='HEAD')return null;return _0xa5f4cb;}catch{return null;}}function _0x7f60(){const _0xdb10da=['180664pibZqD','wpgNC','2595354fhSVyN','main','parse','trim','readFileSync','dirname','Qotwa','existsSync','10974105lILsJu','lastPlanReminderAt','lastEnabledSessionClearedAt','7444655apkSPR','LwkwN','1073397VHGBDd','3BrdaKu','960432gshxrw','XlOkf','fPBid','.ranger_cache.json','registeredAt','clear','pezOt','stringify','enabled','master','now','pipe','HKAYP','3905292zcEhZW','SdctY','sYXOz','currentBranch','GlLIM','lvjel','sessions','featureId','branches','mkdirSync','7iIjJdJ'];_0x7f60=function(){return _0xdb10da;};return _0x7f60();}export function enableBranch(_0x3a1f56){const _0x29b019=_0x4ce9be,_0xe9b4ba={'OjTII':function(_0x503d83){return _0x503d83();}},_0x510d28=_0xe9b4ba['OjTII'](loadCache);_0x510d28[_0x29b019(0x141)][_0x3a1f56]=!![],saveCache(_0x510d28);}export function disableBranch(_0x456456){const _0x29b889=_0x4ce9be,_0x9856f8={'XlOkf':function(_0xa57d1){return _0xa57d1();},'EqrcC':function(_0x1dd753,_0x50f486){return _0x1dd753(_0x50f486);}},_0x12a09b=_0x9856f8[_0x29b889(0x156)](loadCache);delete _0x12a09b['branches'][_0x456456],_0x9856f8['EqrcC'](saveCache,_0x12a09b);}export function isBranchEnabled(_0x1c5d06){const _0x536d44=_0x4ce9be,_0x4c1303={'HKAYP':function(_0xe34687){return _0xe34687();}},_0x8136e6=_0x4c1303[_0x536d44(0x161)](loadCache);return _0x8136e6['branches'][_0x1c5d06]===!![];}function getOrCreateSession(_0x38357e,_0x2f65f9){const _0x1c1c03=_0x4ce9be;return!_0x38357e['sessions'][_0x2f65f9]&&(_0x38357e[_0x1c1c03(0x13f)][_0x2f65f9]={}),_0x38357e['sessions'][_0x2f65f9];}export function enableSession(_0x387521){const _0x2a5f00=_0x4ce9be,_0x14ee3f={'vllbm':function(_0x12c2d2,_0x512113){return _0x12c2d2!==_0x512113;},'lwrgN':_0x2a5f00(0x147)},_0x1f0821=loadCache(),_0x415761=getOrCreateSession(_0x1f0821,_0x387521);_0x415761[_0x2a5f00(0x15d)]=!![];const _0x6f6019=getCurrentBranch();_0x6f6019&&_0x14ee3f['vllbm'](_0x6f6019,_0x14ee3f['lwrgN'])&&_0x6f6019!=='master'&&(_0x1f0821['branches'][_0x6f6019]=!![],_0x415761[_0x2a5f00(0x165)]=_0x6f6019),saveCache(_0x1f0821);}export function isSessionEnabled(_0x4fd747){const _0x4163f7=_0x4ce9be,_0xbced9a={'lvjel':function(_0x9de75b){return _0x9de75b();},'Qotwa':function(_0x32ccda,_0x123d17){return _0x32ccda===_0x123d17;},'Nqwej':_0x4163f7(0x15e),'NPYmO':function(_0x5953c2,_0x26271a){return _0x5953c2===_0x26271a;},'JRWVc':function(_0x143f0a,_0x446ac4){return _0x143f0a||_0x446ac4;}},_0x109762=loadCache(),_0x30f0af=_0xbced9a[_0x4163f7(0x167)](getCurrentBranch);if(!_0x30f0af||_0x30f0af==='main'||_0xbced9a['Qotwa'](_0x30f0af,_0xbced9a['Nqwej']))return _0x109762[_0x4163f7(0x13f)][_0x4fd747]?.[_0x4163f7(0x15d)]===!![];const _0x1526da=_0xbced9a[_0x4163f7(0x14c)](_0x109762['branches'][_0x30f0af],!![]),_0x3c1a67=_0xbced9a['NPYmO'](_0x109762[_0x4163f7(0x13f)][_0x4fd747]?.[_0x4163f7(0x15d)],!![]);return _0xbced9a['JRWVc'](_0x1526da,_0x3c1a67);}export function disableSession(_0x521032){const _0x409816=_0x4ce9be,_0x6ac25d={'uiKqA':function(_0x16cb72,_0x430c5a,_0x6be296){return _0x16cb72(_0x430c5a,_0x6be296);}},_0x4613f4=loadCache(),_0x347d4b=_0x6ac25d['uiKqA'](getOrCreateSession,_0x4613f4,_0x521032);_0x347d4b[_0x409816(0x15d)]=![],saveCache(_0x4613f4);}export function updateBranchTracking(_0xc2f214){const _0x29a98e=_0x4ce9be,_0x5a576e={'iNrrG':function(_0x2b6682){return _0x2b6682();},'wpgNC':_0x29a98e(0x147),'pfUFE':'master'},_0x373545=_0x5a576e['iNrrG'](loadCache),_0x47d6f9=_0x373545['sessions'][_0xc2f214];if(!_0x47d6f9?.['enabled'])return;const _0x448fa6=_0x5a576e['iNrrG'](getCurrentBranch);if(!_0x448fa6||_0x448fa6===_0x5a576e[_0x29a98e(0x145)]||_0x448fa6===_0x5a576e['pfUFE'])return;_0x47d6f9['currentBranch']!==_0x448fa6&&(_0x373545[_0x29a98e(0x141)][_0x448fa6]=!![],_0x47d6f9['currentBranch']=_0x448fa6,saveCache(_0x373545));}export function initBranchTracking(_0x5071bd){const _0x513f1b=_0x4ce9be,_0x3ea30d={'fPBid':_0x513f1b(0x147),'SdctY':function(_0x248acd,_0x20cbe7){return _0x248acd===_0x20cbe7;},'Bnixd':function(_0x46ee9b,_0xb3edd1,_0x4ee6c6){return _0x46ee9b(_0xb3edd1,_0x4ee6c6);}},_0x58234a=loadCache(),_0x159345=getCurrentBranch();if(!_0x159345||_0x159345===_0x3ea30d[_0x513f1b(0x157)]||_0x3ea30d[_0x513f1b(0x163)](_0x159345,'master'))return;if(_0x58234a[_0x513f1b(0x141)][_0x159345]===!![]){const _0xe26a3c=_0x3ea30d['Bnixd'](getOrCreateSession,_0x58234a,_0x5071bd);_0xe26a3c[_0x513f1b(0x15d)]=!![],_0xe26a3c[_0x513f1b(0x165)]=_0x159345,saveCache(_0x58234a);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x49ea32){const _0x15faf8=_0x4ce9be,_0x5374cc={'nffhz':function(_0x5ef4bb,_0xccbd30){return _0x5ef4bb(_0xccbd30);}},_0x2409f4=loadCache(),_0x349189=_0x2409f4[_0x15faf8(0x13f)][_0x49ea32];_0x349189?.[_0x15faf8(0x15d)]&&(_0x2409f4[_0x15faf8(0x150)]=Date[_0x15faf8(0x15f)](),_0x5374cc['nffhz'](saveCache,_0x2409f4));}export function shouldAutoEnableAfterClear(_0x3063d2){const _0x527956=_0x4ce9be,_0x42a9c6={'WLfMV':_0x527956(0x15a)};if(_0x3063d2!==_0x42a9c6['WLfMV'])return![];const _0x5f07c0=loadCache(),_0x63eb37=_0x5f07c0['lastEnabledSessionClearedAt'];if(!_0x63eb37)return![];const _0x19bf91=Date[_0x527956(0x15f)]()-_0x63eb37;return _0x19bf91<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x4dc80e){const _0x40e606=_0x4ce9be,_0x33c4ac={'IXghe':function(_0x1ccb20){return _0x1ccb20();},'qwEgc':function(_0x3c3c23,_0xdc470e,_0x2e0840){return _0x3c3c23(_0xdc470e,_0x2e0840);},'pezOt':function(_0x1351ed,_0x23b981){return _0x1351ed!==_0x23b981;},'sYXOz':function(_0x5dea62,_0x2a5309){return _0x5dea62(_0x2a5309);}},_0x3dbc7b=_0x33c4ac['IXghe'](loadCache),_0x194cef=_0x33c4ac['qwEgc'](getOrCreateSession,_0x3dbc7b,_0x4dc80e);_0x194cef['enabled']=!![];const _0x3c3986=getCurrentBranch();_0x3c3986&&_0x33c4ac[_0x40e606(0x15b)](_0x3c3986,'main')&&_0x3c3986!=='master'&&(_0x194cef[_0x40e606(0x165)]=_0x3c3986),delete _0x3dbc7b[_0x40e606(0x150)],_0x33c4ac[_0x40e606(0x164)](saveCache,_0x3dbc7b);}export function registerSession(_0x161295,_0x16d4d0){const _0x345041=_0x4ce9be,_0x58ebfa={'oOkrB':function(_0x49d68e){return _0x49d68e();}},_0x3144f8=_0x58ebfa['oOkrB'](loadCache),_0x319d27=getOrCreateSession(_0x3144f8,_0x161295);_0x319d27['featureId']=_0x16d4d0,_0x319d27[_0x345041(0x159)]=new Date()['toISOString'](),saveCache(_0x3144f8);}function _0x5a6c(_0x6195e9,_0x125cc1){_0x6195e9=_0x6195e9-0x13f;const _0x7f60d4=_0x7f60();let _0x5a6ce5=_0x7f60d4[_0x6195e9];return _0x5a6ce5;}export function getSessionEntry(_0x3379ca){const _0x28cb1a=_0x4ce9be,_0x3153ff=loadCache(),_0xacaf6=_0x3153ff[_0x28cb1a(0x13f)][_0x3379ca];if(_0xacaf6?.['featureId']&&_0xacaf6?.[_0x28cb1a(0x159)])return{'featureId':_0xacaf6['featureId'],'registeredAt':_0xacaf6[_0x28cb1a(0x159)]};return null;}export function unregisterSession(_0x2ae2f5){const _0x5337ff=_0x4ce9be,_0x3b754f=loadCache(),_0x12c4b5=_0x3b754f[_0x5337ff(0x13f)][_0x2ae2f5];_0x12c4b5&&(delete _0x12c4b5[_0x5337ff(0x140)],delete _0x12c4b5[_0x5337ff(0x159)],saveCache(_0x3b754f));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x5484cc){const _0x35ec6f=_0x4ce9be,_0x15cdc1={'kWyop':function(_0x5a4176,_0x58838d,_0x1e1a43){return _0x5a4176(_0x58838d,_0x1e1a43);},'IDnAd':function(_0x2f3600,_0x4ab640){return _0x2f3600-_0x4ab640;},'JsLAv':function(_0x3ff452,_0x181581){return _0x3ff452(_0x181581);}},_0x1ddb50=loadCache(),_0x3ecada=_0x15cdc1['kWyop'](getOrCreateSession,_0x1ddb50,_0x5484cc),_0x37cbd6=_0x3ecada['lastPlanReminderAt']||0x0,_0x2fe2d8=Date[_0x35ec6f(0x15f)]();if(_0x15cdc1['IDnAd'](_0x2fe2d8,_0x37cbd6)>=PLAN_REMINDER_INTERVAL_MS)return _0x3ecada[_0x35ec6f(0x14f)]=_0x2fe2d8,_0x15cdc1['JsLAv'](saveCache,_0x1ddb50),!![];return![];}export function shouldShowStopReminder(_0x574160){const _0x531e28={'zuEKc':function(_0x1401d9,_0x2007d2){return _0x1401d9-_0x2007d2;},'yNyvJ':function(_0x4e0299,_0x365c92){return _0x4e0299(_0x365c92);}},_0x392fb7=loadCache(),_0x56eebc=getOrCreateSession(_0x392fb7,_0x574160),_0xefaf08=_0x56eebc['lastStopReminderAt']||0x0,_0x36fbeb=Date['now']();if(_0x531e28['zuEKc'](_0x36fbeb,_0xefaf08)>=STOP_REMINDER_INTERVAL_MS)return _0x56eebc['lastStopReminderAt']=_0x36fbeb,_0x531e28['yNyvJ'](saveCache,_0x392fb7),!![];return![];}export function hasSessionBeenPrompted(_0x5296de){const _0xf4ad6e=_0x4ce9be,_0x5d6b76={'GlLIM':function(_0x712610,_0x1e2779){return _0x712610===_0x1e2779;}},_0x32ad54=loadCache();return _0x5d6b76[_0xf4ad6e(0x166)](_0x32ad54['sessions'][_0x5296de]?.['prompted'],!![]);}export function markSessionPrompted(_0x86537e){const _0x48b30d=_0x4ce9be,_0x45ae32={'SbFCN':function(_0x48af73){return _0x48af73();},'LwkwN':function(_0x12c701,_0x4dd465,_0x4764d1){return _0x12c701(_0x4dd465,_0x4764d1);}},_0x4e9c39=_0x45ae32['SbFCN'](loadCache),_0x141a5f=_0x45ae32[_0x48b30d(0x152)](getOrCreateSession,_0x4e9c39,_0x86537e);_0x141a5f['prompted']=!![],saveCache(_0x4e9c39);}export function getCacheFile(){return CACHE_FILE;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x189951=_0x3cba;(function(_0x44af4f,_0x4d5f59){const _0x3f120a=_0x3cba,_0x51ae08=_0x44af4f();while(!![]){try{const _0x4567b5=parseInt(_0x3f120a(0x16d))/0x1+parseInt(_0x3f120a(0x123))/0x2+-parseInt(_0x3f120a(0x158))/0x3+parseInt(_0x3f120a(0x15b))/0x4+-parseInt(_0x3f120a(0x133))/0x5+parseInt(_0x3f120a(0x15d))/0x6*(parseInt(_0x3f120a(0x178))/0x7)+-parseInt(_0x3f120a(0x16b))/0x8;if(_0x4567b5===_0x4d5f59)break;else _0x51ae08['push'](_0x51ae08['shift']());}catch(_0x336153){_0x51ae08['push'](_0x51ae08['shift']());}}}(_0x16d8,0x99787));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';function _0x3cba(_0x1115e6,_0x138ae3){_0x1115e6=_0x1115e6-0x120;const _0x16d873=_0x16d8();let _0x3cbaf3=_0x16d873[_0x1115e6];return _0x3cbaf3;}import{getToken}from'./keychain.js';import{getRangerDir}from'./rangerRoot.js';export function getEnvDir(_0x31ea4b){const _0x243d7e=_0x3cba,_0x55ae2a={'OOARp':function(_0x46589e){return _0x46589e();},'yJOMO':function(_0x28f496,_0x378b55,_0x2650ff,_0x531e57){return _0x28f496(_0x378b55,_0x2650ff,_0x531e57);},'jFuvy':'local','zyPxR':function(_0x16cac8,_0x32327d,_0x1c918e){return _0x16cac8(_0x32327d,_0x1c918e);},'nZjLO':function(_0x3d7b80,_0x36a3e3){return _0x3d7b80(_0x36a3e3);},'CfNqu':function(_0x88e735,_0x1e8721){return _0x88e735(_0x1e8721);},'AfMUy':function(_0x383f2f,_0x15e403){return _0x383f2f!==_0x15e403;},'cwwFa':function(_0x2b2628,_0x5e351c){return _0x2b2628!==_0x5e351c;},'nNKbm':function(_0x565bc5,_0x586b7a){return _0x565bc5(_0x586b7a);}},_0xa314c3=_0x55ae2a['OOARp'](getRangerDir),_0x203c8f=join(_0xa314c3,'ci',_0x31ea4b),_0xf1fead=_0x55ae2a['yJOMO'](join,_0xa314c3,_0x55ae2a[_0x243d7e(0x169)],_0x31ea4b),_0x2ceb55=join(_0xa314c3,_0x31ea4b),_0x2d713c=_0x55ae2a['zyPxR'](join,_0xa314c3,_0x243d7e(0x162)),_0x54c6f2=_0x55ae2a['zyPxR'](join,_0xa314c3,'ci');if(existsSync(_0x203c8f))return _0x203c8f;if(_0x55ae2a['nZjLO'](existsSync,_0xf1fead))return _0xf1fead;if(_0x55ae2a[_0x243d7e(0x13a)](existsSync,_0x2ceb55)&&(_0x55ae2a['AfMUy'](_0x2ceb55,_0x2d713c)&&_0x55ae2a[_0x243d7e(0x12d)](_0x2ceb55,_0x54c6f2)?!![]:_0x55ae2a['nNKbm'](hasLegacyProfileFiles,_0x2ceb55)))return _0x2ceb55;return _0xf1fead;}function _0x16d8(){const _0x28ce52=['7jkTtos','pySUT','--allow-running-insecure-content','\x20is\x20not\x20set','rTWGZ','--disable-setuid-sandbox','keys','allowInsecureLocalhost','install','settings.json','rQXdi','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','headless','ekjVH','header','wLyra','storageState','HYBnZ','catch','now','stringify','vision','launchOptions','args','286130zhRurc','rhDkP','.json','ranger-auth-','sdNNw','WzrMC','safeMode','ranger-config','JDJQV','length','cwwFa','xfoqB','clipboard-read','message','code','chromium','1845930MNOhVS','join','cdpEndpoint','location','none','auth.json','clipboard-write','CfNqu','browser','XbBNq','eiinA','ytVuH','path','wfmBy','--no-sandbox','Failed\x20to\x20decrypt\x20auth\x20state:\x20','LYeEx','UkJJB','hJHOh','gkUCA','uxtwB','QdjGa','XXvrr','entries','hAVfl','slwaK','storageStatePath','all','yIxMp','FkELL','mwbWs','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','tempAuthPath','extraHTTPHeaders','hkSaK','object','string','3557313FbXGKb','sessions','includes','3360244xziqAM','AQnUV','1439322iTkyIQ','setupHeader','Bkyff','contextOptions','boolean','local','cExnn','XYCUD','map','irksN','spqnP','userAgent','jFuvy','jygKq','2254072BEJkfQ','dmAKG','1242318woeBae','fromEntries','XYEzQ','vehKG','IdcTW','parse','filter','env','Navov','ENOENT','IWWsf'];_0x16d8=function(){return _0x28ce52;};return _0x16d8();}export function findExistingEnv(_0x396b89,_0x4206cf){const _0x599a00=_0x3cba,_0x182672={'fFlJV':'local','IdcTW':'legacy','WzrMC':function(_0x33ccff,_0x3c4ed5,_0x3d1354){return _0x33ccff(_0x3c4ed5,_0x3d1354);},'xfoqB':function(_0x15092f,_0xd3ceea,_0xcb5857,_0x11677c){return _0x15092f(_0xd3ceea,_0xcb5857,_0x11677c);},'rhDkP':function(_0xf91df4,_0x365548,_0xc32d90){return _0xf91df4(_0x365548,_0xc32d90);},'Navov':function(_0x17d5f8,_0x126ff3){return _0x17d5f8(_0x126ff3);},'spqnP':function(_0x12a38a,_0x217803){return _0x12a38a(_0x217803);}},_0x2652f5=getRangerDir(),_0x144023=_0x4206cf?.['locations']??['ci',_0x182672['fFlJV'],_0x182672[_0x599a00(0x171)]],_0x4e1e9c=_0x182672[_0x599a00(0x128)](join,_0x2652f5,_0x599a00(0x162)),_0x1f71bd=join(_0x2652f5,'ci'),_0x22a28b=[{'location':'ci','path':_0x182672[_0x599a00(0x12e)](join,_0x2652f5,'ci',_0x396b89)},{'location':_0x599a00(0x162),'path':join(_0x2652f5,_0x182672['fFlJV'],_0x396b89)},{'location':_0x182672[_0x599a00(0x171)],'path':_0x182672[_0x599a00(0x124)](join,_0x2652f5,_0x396b89)}];for(const _0x14f81b of _0x22a28b){if(_0x144023[_0x599a00(0x15a)](_0x14f81b[_0x599a00(0x136)])&&_0x182672[_0x599a00(0x175)](existsSync,_0x14f81b[_0x599a00(0x13f)])){if(_0x14f81b['location']===_0x182672[_0x599a00(0x171)]&&(_0x14f81b['path']===_0x4e1e9c||_0x14f81b[_0x599a00(0x13f)]===_0x1f71bd)&&!_0x182672[_0x599a00(0x167)](hasLegacyProfileFiles,_0x14f81b[_0x599a00(0x13f)]))continue;return{'path':_0x14f81b['path'],'location':_0x14f81b[_0x599a00(0x136)]};}}return null;}function hasLegacyProfileFiles(_0x46749a){const _0xf148ff=_0x3cba,_0x4fb54a={'sdNNw':function(_0x3fa8c0,_0x26dc1d){return _0x3fa8c0(_0x26dc1d);},'vehKG':function(_0x1da7ee,_0x29b922,_0x5702bb){return _0x1da7ee(_0x29b922,_0x5702bb);}};return existsSync(join(_0x46749a,'settings.json'))||existsSync(join(_0x46749a,_0xf148ff(0x138)))||_0x4fb54a[_0xf148ff(0x127)](existsSync,_0x4fb54a[_0xf148ff(0x170)](join,_0x46749a,'auth.json.enc'));}export function isEnvCi(_0x1d8291){const _0x59380d=_0x3cba,_0x3d94dc={'hkSaK':function(_0x5b07c6,_0x11a3f9,_0x2af6f2,_0x91a5d2){return _0x5b07c6(_0x11a3f9,_0x2af6f2,_0x91a5d2);},'XYCUD':function(_0x2b02b7){return _0x2b02b7();}};return existsSync(_0x3d94dc[_0x59380d(0x155)](join,_0x3d94dc[_0x59380d(0x164)](getRangerDir),'ci',_0x1d8291));}export async function cleanupTempFiles(_0x5ef9f6){const _0x115b3c=_0x3cba,_0x338ded={'GSyvH':function(_0x196b38,_0x4f596a){return _0x196b38!==_0x4f596a;}},_0x37fb58=[_0x5ef9f6[_0x115b3c(0x153)],_0x5ef9f6['configPath']]['filter'](Boolean);await Promise[_0x115b3c(0x14e)](_0x37fb58['map'](_0x11c24e=>unlink(_0x11c24e)[_0x115b3c(0x18a)](_0x12cc78=>{const _0x137f2d=_0x115b3c;_0x338ded['GSyvH'](_0x12cc78[_0x137f2d(0x131)],_0x137f2d(0x176))&&console['warn'](_0x137f2d(0x183)+_0x11c24e+':',_0x12cc78[_0x137f2d(0x130)]);})));}export function getSettingsPath(_0x3a9d54){const _0x5da744=_0x3cba,_0x57d57e={'gkUCA':_0x5da744(0x181)};return join(getEnvDir(_0x3a9d54),_0x57d57e[_0x5da744(0x146)]);}export async function loadSettings(_0x2e8319){const _0x414ba9=_0x3cba,_0x2aac76={'rQXdi':function(_0x40756e,_0xbe1d4){return _0x40756e(_0xbe1d4);},'ePdvP':function(_0x457c37,_0x23e994,_0x5ba473){return _0x457c37(_0x23e994,_0x5ba473);}},_0xeb52e6=_0x2aac76[_0x414ba9(0x182)](getSettingsPath,_0x2e8319);if(!_0x2aac76['rQXdi'](existsSync,_0xeb52e6))return{};try{const _0x317200=await _0x2aac76['ePdvP'](readFile,_0xeb52e6,'utf-8');return JSON[_0x414ba9(0x172)](_0x317200);}catch{return{};}}export async function saveSettings(_0x3f25f8,_0x9106c3){const _0x41f18f=_0x3cba,_0x29e709={'nACDg':function(_0x1ef463,_0x59b1b6){return _0x1ef463(_0x59b1b6);},'HVhAM':function(_0x2e4dc1,_0x574b69,_0x552bf9){return _0x2e4dc1(_0x574b69,_0x552bf9);}},_0x4aa25c=_0x29e709['nACDg'](getSettingsPath,_0x3f25f8),_0x551ce1=dirname(_0x4aa25c);!existsSync(_0x551ce1)&&await _0x29e709['HVhAM'](mkdir,_0x551ce1,{'recursive':!![]}),await writeFile(_0x4aa25c,JSON[_0x41f18f(0x18c)](_0x9106c3,null,0x2));}export function resolveEnvVars(_0xb4e84c){const _0x489703=_0x3cba,_0x34f06b={'exirg':_0x489703(0x157),'UEdQU':function(_0x266f65,_0x926594){return _0x266f65===_0x926594;},'XYEzQ':_0x489703(0x156)};if(typeof _0xb4e84c===_0x34f06b['exirg'])return _0xb4e84c['replace'](/\$\{(\w+)\}/g,(_0x32a7f2,_0x142607)=>{const _0xa1b213=_0x489703,_0x502585=process[_0xa1b213(0x174)][_0x142607];if(_0x502585===undefined)throw new Error('Environment\x20variable\x20'+_0x142607+_0xa1b213(0x17b));return _0x502585;});if(Array['isArray'](_0xb4e84c))return _0xb4e84c[_0x489703(0x165)](resolveEnvVars);if(_0xb4e84c&&_0x34f06b['UEdQU'](typeof _0xb4e84c,_0x34f06b[_0x489703(0x16f)]))return Object[_0x489703(0x16e)](Object['entries'](_0xb4e84c)[_0x489703(0x165)](([_0x3fdc50,_0x47cc43])=>[_0x3fdc50,resolveEnvVars(_0x47cc43)]));return _0xb4e84c;}const isRecord=_0x5d1b5e=>typeof _0x5d1b5e==='object'&&_0x5d1b5e!==null&&!Array['isArray'](_0x5d1b5e),asRecord=_0x2ac167=>isRecord(_0x2ac167)?_0x2ac167:undefined,mergeHeaders=(_0x3b2c9b,_0xfd50b5)=>{const _0x2bae79=_0x3cba,_0x57c02f={..._0x3b2c9b??{},..._0xfd50b5??{}};return Object[_0x2bae79(0x17e)](_0x57c02f)['length']?_0x57c02f:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x189951(0x17a),'--unsafely-treat-insecure-origin-as-secure=http://localhost','--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x532e9e,_0x580b4a={}){const _0xc81cef=_0x189951,_0x3e2dd5={'QdjGa':_0xc81cef(0x161),'wfmBy':function(_0x169778,_0xa3d76){return _0x169778===_0xa3d76;},'mwbWs':_0xc81cef(0x157),'kclkZ':function(_0x1c5d6a,_0x3fbfb0){return _0x1c5d6a(_0x3fbfb0);}},_0x284a68=asRecord(_0x532e9e[_0xc81cef(0x13b)]),_0x19700a={...asRecord(_0x284a68?.[_0xc81cef(0x121)])??{}};typeof _0x580b4a['headless']===_0x3e2dd5[_0xc81cef(0x148)]&&(_0x19700a[_0xc81cef(0x184)]=_0x580b4a['headless']);if(_0x532e9e[_0xc81cef(0x129)]){const _0x4df390=_0x19700a[_0xc81cef(0x122)]??[],_0x3ca0b9=SAFE_MODE_ARGS[_0xc81cef(0x173)](_0x479cb9=>!_0x4df390['includes'](_0x479cb9));_0x19700a[_0xc81cef(0x122)]=[..._0x4df390,..._0x3ca0b9];}if(_0x532e9e[_0xc81cef(0x17f)]){const _0x5d6517=_0x19700a[_0xc81cef(0x122)]??[],_0x1a02e2=ALLOW_LOCALHOST_ARGS[_0xc81cef(0x173)](_0x29c33a=>!_0x5d6517['includes'](_0x29c33a));_0x19700a[_0xc81cef(0x122)]=[..._0x5d6517,..._0x1a02e2];}const _0xb0bf27={...asRecord(_0x284a68?.['contextOptions'])??{}};_0xb0bf27['ignoreHTTPSErrors']=!![];_0x3e2dd5[_0xc81cef(0x140)](typeof _0x532e9e[_0xc81cef(0x168)],_0x3e2dd5[_0xc81cef(0x151)])&&(_0xb0bf27[_0xc81cef(0x168)]=_0x532e9e['userAgent']);const _0x2652f9=mergeHeaders(_0x3e2dd5['kclkZ'](asRecord,_0xb0bf27['extraHTTPHeaders']),asRecord(_0x532e9e['headers']));return _0x2652f9?_0xb0bf27[_0xc81cef(0x154)]=_0x2652f9:delete _0xb0bf27['extraHTTPHeaders'],_0x580b4a[_0xc81cef(0x14d)]&&(_0xb0bf27['storageState']=_0x580b4a['storageStatePath']),{'launchOptions':_0x19700a,'contextOptions':_0xb0bf27};}export async function buildPlaywrightConfig(_0x60dbce,_0x64e606,_0x44aad3,_0x24a3de){const _0x109bb5=_0x189951,_0x3a4e48={'FkELL':function(_0x5f5b7d,_0x395255,_0x1eb573){return _0x5f5b7d(_0x395255,_0x1eb573);},'SxYAc':_0x109bb5(0x132),'YHMHa':'auth.json.enc','irksN':_0x109bb5(0x138),'skJmH':_0x109bb5(0x152),'Bkyff':function(_0x3ff94f){return _0x3ff94f();},'eiinA':function(_0x523127,_0x583fc0,_0x2160af){return _0x523127(_0x583fc0,_0x2160af);},'pySUT':function(_0x610e06,_0x5647d2){return _0x610e06(_0x5647d2);},'nCuKq':function(_0x292e69,_0x23ff40,_0x1f3e70,_0x46b244){return _0x292e69(_0x23ff40,_0x1f3e70,_0x46b244);},'XbBNq':_0x109bb5(0x159),'wLyra':'core','jygKq':'tabs','hPWZV':'pdf','rTWGZ':_0x109bb5(0x120),'XXvrr':function(_0x552792,_0x37965c){return _0x552792===_0x37965c;},'UkJJB':function(_0x324e36,_0x88a6d6,_0x242e73){return _0x324e36(_0x88a6d6,_0x242e73);}},_0x351254=getEnvDir(_0x64e606),_0x3d728b=join(_0x351254,_0x3a4e48['YHMHa']),_0x48380f=join(_0x351254,_0x3a4e48[_0x109bb5(0x166)]);let _0x706e62,_0x3630a0;if(existsSync(_0x3d728b))try{const _0x455206=await getToken();if(!_0x455206)throw new Error(_0x3a4e48['skJmH']);const _0x167361=await readFile(_0x3d728b),_0x1350ba=decrypt(_0x167361,_0x455206);_0x3630a0=_0x3a4e48['FkELL'](join,_0x3a4e48[_0x109bb5(0x15f)](tmpdir),'ranger-auth-'+Date['now']()+_0x109bb5(0x125)),await _0x3a4e48[_0x109bb5(0x13d)](writeFile,_0x3630a0,_0x1350ba),_0x706e62=_0x3630a0;}catch(_0x318fcd){const _0x2b60d6=_0x318fcd instanceof Error?_0x318fcd[_0x109bb5(0x130)]:_0x3a4e48[_0x109bb5(0x179)](String,_0x318fcd);throw new Error(_0x109bb5(0x142)+_0x2b60d6);}else existsSync(_0x48380f)&&(_0x706e62=_0x48380f);const _0x2be22b=_0x44aad3||randomUUID(),_0x157796=_0x3a4e48['nCuKq'](join,getRangerDir(),_0x3a4e48[_0x109bb5(0x13c)],_0x2be22b),_0x2350b4=_0x3a4e48['pySUT'](Boolean,_0x60dbce['cdpEndpoint']),_0x352dc9=_0x2350b4?{'browserName':_0x3a4e48['SxYAc'],'cdpEndpoint':_0x60dbce['cdpEndpoint']}:((()=>{const _0x3d5ce7=_0x109bb5,{launchOptions:_0x1103d7,contextOptions:_0x1c3008}=_0x3a4e48['FkELL'](buildBrowserOptionsFromSettings,_0x60dbce,{'headless':_0x24a3de?![]:_0x60dbce['headless']??!![],'storageStatePath':_0x706e62});if(process['getuid']?.()===0x0){const _0x6c0564=['--no-sandbox',_0x3d5ce7(0x17d)],_0x38a644=_0x1103d7[_0x3d5ce7(0x122)]??[],_0x40f576=_0x6c0564[_0x3d5ce7(0x173)](_0x33a4ca=>!_0x38a644['includes'](_0x33a4ca));_0x1103d7[_0x3d5ce7(0x122)]=[..._0x38a644,..._0x40f576];}return{'isolated':!![],'browserName':_0x3a4e48['SxYAc'],'launchOptions':_0x1103d7,'contextOptions':{..._0x1c3008,'permissions':['clipboard-read','clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x62bf6d={'name':_0x64e606,'browser':_0x352dc9,'capabilities':[_0x3a4e48[_0x109bb5(0x187)],_0x3a4e48[_0x109bb5(0x16a)],_0x109bb5(0x180),_0x3a4e48['hPWZV'],_0x3a4e48[_0x109bb5(0x17c)]],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x157796};if(!_0x2350b4){const _0x283550=_0x62bf6d['browser'],_0x3e17e4=_0x283550[_0x109bb5(0x160)];if(_0x3a4e48[_0x109bb5(0x149)](_0x3e17e4['userAgent'],undefined))delete _0x3e17e4['userAgent'];if(_0x3e17e4['storageState']===undefined)delete _0x3e17e4[_0x109bb5(0x188)];}const _0x2190fa=join(_0x3a4e48[_0x109bb5(0x15f)](tmpdir),'ranger-config');!existsSync(_0x2190fa)&&await mkdir(_0x2190fa,{'recursive':!![]});const _0x3c9d79=_0x3a4e48[_0x109bb5(0x144)](join,_0x2190fa,_0x64e606+'-'+Date[_0x109bb5(0x18b)]()+_0x109bb5(0x125));return await _0x3a4e48[_0x109bb5(0x150)](writeFile,_0x3c9d79,JSON[_0x109bb5(0x18c)](_0x62bf6d,null,0x2)),{'configPath':_0x3c9d79,'tempAuthPath':_0x3630a0};}export async function buildPlaywrightCliConfig(_0x5c35a,_0x94b603,_0x23b3fb,_0x2f6b77){const _0xc1082c=_0x189951,_0x4fac85={'yIxMp':function(_0x489533,_0x3bdeae,_0x9c559b){return _0x489533(_0x3bdeae,_0x9c559b);},'ytVuH':_0xc1082c(0x141),'ekjVH':_0xc1082c(0x132),'CGkDR':_0xc1082c(0x139),'OwSLt':'auth.json.enc','NjeYT':function(_0x4f09f7){return _0x4f09f7();},'ZeLoJ':function(_0x1359ec,_0x490125){return _0x1359ec(_0x490125);},'hAVfl':function(_0x4f5b93,_0x3da302,_0x842e1d){return _0x4f5b93(_0x3da302,_0x842e1d);},'eKcHc':function(_0x116438,_0x165d29){return _0x116438 instanceof _0x165d29;},'TjnYC':function(_0x455e28,_0x484a7c,_0x4e3a96,_0x10eb57){return _0x455e28(_0x484a7c,_0x4e3a96,_0x10eb57);},'HYBnZ':'file','SVkhZ':_0xc1082c(0x137),'uxtwB':function(_0x346431){return _0x346431();},'PBVGh':function(_0x2f4f5d,_0x1e2374){return _0x2f4f5d(_0x1e2374);},'JDJQV':function(_0x4a88f1,_0x1f9761,_0xdacaa7){return _0x4a88f1(_0x1f9761,_0xdacaa7);}},_0x47520f=getEnvDir(_0x94b603),_0x59b2be=_0x4fac85[_0xc1082c(0x14f)](join,_0x47520f,_0x4fac85['OwSLt']),_0x677364=_0x4fac85[_0xc1082c(0x14f)](join,_0x47520f,'auth.json');let _0x14af55,_0x184c79;if(existsSync(_0x59b2be))try{const _0x59f671=await _0x4fac85['NjeYT'](getToken);if(!_0x59f671)throw new Error(_0xc1082c(0x152));const _0x71e790=await _0x4fac85['ZeLoJ'](readFile,_0x59b2be),_0x24fac3=_0x4fac85['yIxMp'](decrypt,_0x71e790,_0x59f671);_0x184c79=_0x4fac85[_0xc1082c(0x14b)](join,tmpdir(),_0xc1082c(0x126)+Date[_0xc1082c(0x18b)]()+'.json'),await writeFile(_0x184c79,_0x24fac3),_0x14af55=_0x184c79;}catch(_0x160105){const _0x428ef1=_0x4fac85['eKcHc'](_0x160105,Error)?_0x160105['message']:String(_0x160105);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x428ef1);}else _0x4fac85['ZeLoJ'](existsSync,_0x677364)&&(_0x14af55=_0x677364);const _0x5995ea=_0x23b3fb||randomUUID(),_0x4d39cd=_0x4fac85['TjnYC'](join,getRangerDir(),'sessions',_0x5995ea),_0x1b4de2=Boolean(_0x5c35a[_0xc1082c(0x135)]),_0x4037e2=_0x1b4de2?{'browserName':'chromium','cdpEndpoint':_0x5c35a['cdpEndpoint']}:((()=>{const _0x3ce826=_0xc1082c,{launchOptions:_0x1f2112,contextOptions:_0x5aec1f}=_0x4fac85[_0x3ce826(0x14f)](buildBrowserOptionsFromSettings,_0x5c35a,{'headless':_0x2f6b77?![]:_0x5c35a['headless']??!![],'storageStatePath':_0x14af55});if(process['getuid']?.()===0x0){const _0x4cf98d=[_0x4fac85[_0x3ce826(0x13e)],'--disable-setuid-sandbox'],_0x21cb69=_0x1f2112[_0x3ce826(0x122)]??[],_0x2e1268=_0x4cf98d[_0x3ce826(0x173)](_0x25e1c2=>!_0x21cb69[_0x3ce826(0x15a)](_0x25e1c2));_0x1f2112[_0x3ce826(0x122)]=[..._0x21cb69,..._0x2e1268];}return{'isolated':!![],'browserName':_0x4fac85[_0x3ce826(0x185)],'launchOptions':_0x1f2112,'contextOptions':{..._0x5aec1f,'permissions':[_0x3ce826(0x12f),_0x4fac85['CGkDR']],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x1b4de2){const _0xabc8e8=_0x4037e2['contextOptions'];if(_0xabc8e8['userAgent']===undefined)delete _0xabc8e8[_0xc1082c(0x168)];if(_0xabc8e8['storageState']===undefined)delete _0xabc8e8['storageState'];}const _0x475756={'browser':_0x4037e2,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4d39cd,'outputMode':_0x4fac85[_0xc1082c(0x189)],'codegen':_0x4fac85['SVkhZ']},_0x59850d=join(_0x4fac85[_0xc1082c(0x147)](tmpdir),_0xc1082c(0x12a));!_0x4fac85['PBVGh'](existsSync,_0x59850d)&&await mkdir(_0x59850d,{'recursive':!![]});const _0xcbb983=_0x4fac85[_0xc1082c(0x12b)](join,_0x59850d,_0x94b603+'-'+Date['now']()+'-cli.json');return await writeFile(_0xcbb983,JSON[_0xc1082c(0x18c)](_0x475756,null,0x2)),{'configPath':_0xcbb983,'tempAuthPath':_0x184c79};}export function getNestedValue(_0x517633,_0x1c7267){const _0x59dd30=_0x189951,_0x106ea3={'waqcW':function(_0x41b29a,_0x38e8f2){return _0x41b29a(_0x38e8f2);},'slwaK':function(_0x5b9894,_0x5a290b){return _0x5b9894===_0x5a290b;}},_0x31d144=_0x106ea3['waqcW'](parseKeyPath,_0x1c7267);let _0x7beed=_0x517633;for(const _0x43a04e of _0x31d144){if(_0x106ea3[_0x59dd30(0x14c)](_0x7beed,null)||_0x7beed===undefined||typeof _0x7beed!==_0x59dd30(0x156))return undefined;_0x7beed=_0x7beed[_0x43a04e];}return _0x7beed;}export function setNestedValue(_0x27919a,_0x597aa6,_0x482718){const _0x11b876=_0x189951,_0x15d8d9={'cExuO':function(_0x364412,_0x301ccd){return _0x364412(_0x301ccd);},'hJHOh':function(_0x2b863f,_0x51f753){return _0x2b863f<_0x51f753;},'dItrk':function(_0x110608,_0xa785f2){return _0x110608-_0xa785f2;},'AQnUV':function(_0x4a5a2c,_0x256b78){return _0x4a5a2c in _0x256b78;},'rVsOF':function(_0x3518fc,_0x33dd13){return _0x3518fc!==_0x33dd13;},'nLeWI':'object','KIWdc':function(_0x3396aa,_0xa37fa){return _0x3396aa-_0xa37fa;}},_0x14d87c=_0x15d8d9['cExuO'](parseKeyPath,_0x597aa6);let _0x26276b=_0x27919a;for(let _0x3e6130=0x0;_0x15d8d9[_0x11b876(0x145)](_0x3e6130,_0x15d8d9['dItrk'](_0x14d87c['length'],0x1));_0x3e6130++){const _0x25ecc4=_0x14d87c[_0x3e6130];(!_0x15d8d9[_0x11b876(0x15c)](_0x25ecc4,_0x26276b)||_0x15d8d9['rVsOF'](typeof _0x26276b[_0x25ecc4],_0x15d8d9['nLeWI']))&&(_0x26276b[_0x25ecc4]={}),_0x26276b=_0x26276b[_0x25ecc4];}_0x26276b[_0x14d87c[_0x15d8d9['KIWdc'](_0x14d87c['length'],0x1)]]=_0x482718;}export function deleteNestedValue(_0x4e3d59,_0x4483e0){const _0x31df1f=_0x189951,_0x5ed8da={'aZpju':function(_0x540198,_0x1b3e12){return _0x540198(_0x1b3e12);},'RGFao':function(_0x2bbdb9,_0x53ab48){return _0x2bbdb9<_0x53ab48;},'siWag':function(_0x5c02b9,_0x1fc6f9){return _0x5c02b9-_0x1fc6f9;},'cExnn':function(_0xfc88ad,_0x1a48c4){return _0xfc88ad===_0x1a48c4;},'OMZND':function(_0x260c54,_0x1372e){return _0x260c54!==_0x1372e;},'LYeEx':function(_0x37cfc2,_0x441fd4){return _0x37cfc2 in _0x441fd4;}},_0x16aecb=_0x5ed8da['aZpju'](parseKeyPath,_0x4483e0);let _0x2a1330=_0x4e3d59;for(let _0x351d8c=0x0;_0x5ed8da['RGFao'](_0x351d8c,_0x5ed8da['siWag'](_0x16aecb[_0x31df1f(0x12c)],0x1));_0x351d8c++){if(_0x5ed8da[_0x31df1f(0x163)](_0x2a1330,null)||_0x2a1330===undefined||_0x5ed8da['OMZND'](typeof _0x2a1330,_0x31df1f(0x156)))return![];_0x2a1330=_0x2a1330[_0x16aecb[_0x351d8c]];}if(_0x2a1330===null||_0x2a1330===undefined||typeof _0x2a1330!=='object')return![];const _0x598be7=_0x16aecb[_0x16aecb[_0x31df1f(0x12c)]-0x1];if(_0x5ed8da[_0x31df1f(0x143)](_0x598be7,_0x2a1330))return delete _0x2a1330[_0x598be7],!![];return![];}function parseKeyPath(_0x30a8bd){const _0x1b8fdd=_0x189951,_0x2f7ffa={'XIrUa':function(_0x1b11d7,_0x314ac8){return _0x1b11d7===_0x314ac8;},'BJHZO':_0x1b8fdd(0x186),'XkZeb':'setupHeaders'},_0x37b8c7=_0x30a8bd['split']('.');return _0x2f7ffa['XIrUa'](_0x37b8c7[0x0],_0x2f7ffa['BJHZO'])&&(_0x37b8c7[0x0]='headers'),_0x37b8c7[0x0]===_0x1b8fdd(0x15e)&&(_0x37b8c7[0x0]=_0x2f7ffa['XkZeb']),_0x37b8c7;}export function formatSettings(_0xfd019c,_0x221594=0x0){const _0x31bae9=_0x189951,_0x37bfeb={'IWWsf':function(_0x128211,_0x3c0062){return _0x128211===_0x3c0062;},'dmAKG':'object'},_0x4cd766=[],_0x477c32='\x20\x20'['repeat'](_0x221594);for(const [_0x6b6f50,_0x5ab870]of Object[_0x31bae9(0x14a)](_0xfd019c)){if(_0x37bfeb[_0x31bae9(0x177)](_0x5ab870,undefined))continue;if(typeof _0x5ab870===_0x37bfeb[_0x31bae9(0x16c)]&&_0x5ab870!==null){_0x4cd766['push'](''+_0x477c32+_0x6b6f50+':');for(const [_0xf0dfb0,_0x42aaa3]of Object[_0x31bae9(0x14a)](_0x5ab870)){_0x4cd766['push'](_0x477c32+'\x20\x20'+_0xf0dfb0+':\x20'+_0x42aaa3);}}else _0x4cd766['push'](''+_0x477c32+_0x6b6f50+':\x20'+_0x5ab870);}return _0x4cd766[_0x31bae9(0x134)]('\x0a');}
|
|
1
|
+
const _0x45f284=_0x1300;(function(_0x4e15c2,_0x477b15){const _0x48a990=_0x1300,_0xbf092a=_0x4e15c2();while(!![]){try{const _0x58a1ad=parseInt(_0x48a990(0xa1))/0x1+parseInt(_0x48a990(0xb4))/0x2*(parseInt(_0x48a990(0xcb))/0x3)+-parseInt(_0x48a990(0xc8))/0x4*(parseInt(_0x48a990(0x7d))/0x5)+parseInt(_0x48a990(0xb0))/0x6+parseInt(_0x48a990(0x7a))/0x7+parseInt(_0x48a990(0xd6))/0x8+-parseInt(_0x48a990(0x94))/0x9*(parseInt(_0x48a990(0xbb))/0xa);if(_0x58a1ad===_0x477b15)break;else _0xbf092a['push'](_0xbf092a['shift']());}catch(_0x1286f8){_0xbf092a['push'](_0xbf092a['shift']());}}}(_0x4547,0x5d761));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir}from'./rangerRoot.js';export function getEnvDir(_0x2092c4){const _0x1e90bf=_0x1300,_0x5ff177={'dEBUM':function(_0x3b27e4){return _0x3b27e4();},'UpInl':function(_0x24de7e,_0x2b4654,_0x15c2a7){return _0x24de7e(_0x2b4654,_0x15c2a7);},'ehkib':'local','gLrNk':function(_0xc46dc3,_0x1db223){return _0xc46dc3(_0x1db223);},'Pxlec':function(_0x25faf9,_0x3846f6){return _0x25faf9!==_0x3846f6;}},_0x2de13e=_0x5ff177['dEBUM'](getRangerDir),_0x3928dc=join(_0x2de13e,'ci',_0x2092c4),_0x15deac=join(_0x2de13e,'local',_0x2092c4),_0x5b33f9=_0x5ff177['UpInl'](join,_0x2de13e,_0x2092c4),_0x51d64b=join(_0x2de13e,_0x5ff177['ehkib']),_0x4d5679=_0x5ff177['UpInl'](join,_0x2de13e,'ci');if(_0x5ff177[_0x1e90bf(0xcf)](existsSync,_0x3928dc))return _0x3928dc;if(existsSync(_0x15deac))return _0x15deac;if(_0x5ff177[_0x1e90bf(0xcf)](existsSync,_0x5b33f9)&&(_0x5b33f9!==_0x51d64b&&_0x5ff177[_0x1e90bf(0xce)](_0x5b33f9,_0x4d5679)?!![]:hasLegacyProfileFiles(_0x5b33f9)))return _0x5b33f9;return _0x15deac;}export function findExistingEnv(_0x485d21,_0x5f0df6){const _0x1d7ac7=_0x1300,_0x41b1e4={'FVmgy':_0x1d7ac7(0x7b),'eaQhi':_0x1d7ac7(0x84),'jFffR':function(_0x5f1d10,_0x17f069,_0x44753c){return _0x5f1d10(_0x17f069,_0x44753c);},'UGjoD':function(_0x12dea7,_0x446caa,_0x5c4aaa,_0x3d1896){return _0x12dea7(_0x446caa,_0x5c4aaa,_0x3d1896);},'xGYOT':function(_0x3232aa,_0x5b34ea){return _0x3232aa===_0x5b34ea;}},_0x27632b=_0x5f0df6?.['rangerDir']??getRangerDir(),_0x15f5f5=_0x5f0df6?.['locations']??['ci',_0x41b1e4[_0x1d7ac7(0x99)],_0x41b1e4['eaQhi']],_0x206bbc=join(_0x27632b,'local'),_0x3e8012=_0x41b1e4[_0x1d7ac7(0xc2)](join,_0x27632b,'ci'),_0x54eb4d=[{'location':'ci','path':join(_0x27632b,'ci',_0x485d21)},{'location':'local','path':_0x41b1e4['UGjoD'](join,_0x27632b,_0x41b1e4[_0x1d7ac7(0x99)],_0x485d21)},{'location':'legacy','path':join(_0x27632b,_0x485d21)}];for(const _0x456eaf of _0x54eb4d){if(_0x15f5f5[_0x1d7ac7(0x91)](_0x456eaf['location'])&&existsSync(_0x456eaf[_0x1d7ac7(0x8a)])){if(_0x456eaf[_0x1d7ac7(0xad)]==='legacy'&&(_0x41b1e4[_0x1d7ac7(0xdc)](_0x456eaf['path'],_0x206bbc)||_0x456eaf[_0x1d7ac7(0x8a)]===_0x3e8012)&&!hasLegacyProfileFiles(_0x456eaf[_0x1d7ac7(0x8a)]))continue;return{'path':_0x456eaf['path'],'location':_0x456eaf['location']};}}return null;}function hasLegacyProfileFiles(_0x47c8d6){const _0x4d5ca0=_0x1300,_0x112515={'MclDI':function(_0x5b458f,_0x2bf8f2,_0x13bc48){return _0x5b458f(_0x2bf8f2,_0x13bc48);},'wpEhN':_0x4d5ca0(0xb7),'jwLrv':function(_0x33a867,_0x26698d){return _0x33a867(_0x26698d);},'HZnGa':_0x4d5ca0(0xa6)};return existsSync(_0x112515['MclDI'](join,_0x47c8d6,'settings.json'))||existsSync(join(_0x47c8d6,_0x112515['wpEhN']))||_0x112515[_0x4d5ca0(0xa3)](existsSync,_0x112515[_0x4d5ca0(0xe4)](join,_0x47c8d6,_0x112515[_0x4d5ca0(0xae)]));}export function isEnvCi(_0x2a6bcd){const _0x166168={'gHXUO':function(_0x1b6fcd){return _0x1b6fcd();}};return existsSync(join(_0x166168['gHXUO'](getRangerDir),'ci',_0x2a6bcd));}export async function cleanupTempFiles(_0x33353b){const _0x15b817=_0x1300,_0x5269bf={'HXVmy':_0x15b817(0xb9)},_0x1d94cf=[_0x33353b[_0x15b817(0xe2)],_0x33353b['configPath']][_0x15b817(0xb2)](Boolean);await Promise[_0x15b817(0xdd)](_0x1d94cf[_0x15b817(0xc1)](_0x359d9a=>unlink(_0x359d9a)[_0x15b817(0x87)](_0x225982=>{const _0x5f0df5=_0x15b817;_0x225982[_0x5f0df5(0x8c)]!==_0x5269bf[_0x5f0df5(0xa9)]&&console[_0x5f0df5(0x83)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x359d9a+':',_0x225982[_0x5f0df5(0x80)]);})));}export function getSettingsPath(_0x3f5363){const _0x5e0139=_0x1300,_0x26b676={'mAYQG':function(_0x1f33bc,_0x481d69,_0x368bed){return _0x1f33bc(_0x481d69,_0x368bed);},'OZREY':'settings.json'};return _0x26b676['mAYQG'](join,getEnvDir(_0x3f5363),_0x26b676[_0x5e0139(0x7f)]);}export async function loadSettings(_0x3ed589){const _0x2b9271=_0x1300,_0x3b008e={'lvshD':function(_0x31b738,_0x41156e){return _0x31b738(_0x41156e);},'TFngI':'utf-8'},_0x35be75=_0x3b008e['lvshD'](getSettingsPath,_0x3ed589);if(!_0x3b008e['lvshD'](existsSync,_0x35be75))return{};try{const _0x36a6b3=await readFile(_0x35be75,_0x3b008e[_0x2b9271(0x81)]);return JSON['parse'](_0x36a6b3);}catch{return{};}}export async function saveSettings(_0x20e9a1,_0x5588f8){const _0x2caa44=getSettingsPath(_0x20e9a1),_0x2f4c45=dirname(_0x2caa44);!existsSync(_0x2f4c45)&&await mkdir(_0x2f4c45,{'recursive':!![]}),await writeFile(_0x2caa44,JSON['stringify'](_0x5588f8,null,0x2));}function _0x1300(_0xd9a7d4,_0x11ec90){_0xd9a7d4=_0xd9a7d4-0x77;const _0x454733=_0x4547();let _0x1300df=_0x454733[_0xd9a7d4];return _0x1300df;}export function resolveEnvVars(_0x3abfde){const _0xeda0fc=_0x1300,_0x36633f={'UwPEx':function(_0x44e871,_0x41cc7e){return _0x44e871===_0x41cc7e;},'aiQDq':_0xeda0fc(0x88)};if(_0x36633f[_0xeda0fc(0xe6)](typeof _0x3abfde,_0xeda0fc(0xd4)))return _0x3abfde[_0xeda0fc(0x82)](/\$\{(\w+)\}/g,(_0x16790a,_0x2e5246)=>{const _0x2aea5d=_0xeda0fc,_0x4fdcc3=process[_0x2aea5d(0xd5)][_0x2e5246];if(_0x36633f['UwPEx'](_0x4fdcc3,undefined))throw new Error('Environment\x20variable\x20'+_0x2e5246+'\x20is\x20not\x20set');return _0x4fdcc3;});if(Array[_0xeda0fc(0x98)](_0x3abfde))return _0x3abfde['map'](resolveEnvVars);if(_0x3abfde&&typeof _0x3abfde===_0x36633f[_0xeda0fc(0xa4)])return Object[_0xeda0fc(0x9e)](Object['entries'](_0x3abfde)[_0xeda0fc(0xc1)](([_0x2439af,_0x1e56e5])=>[_0x2439af,resolveEnvVars(_0x1e56e5)]));return _0x3abfde;}const isRecord=_0x55c763=>typeof _0x55c763===_0x45f284(0x88)&&_0x55c763!==null&&!Array[_0x45f284(0x98)](_0x55c763),asRecord=_0x2631a7=>isRecord(_0x2631a7)?_0x2631a7:undefined,mergeHeaders=(_0x8830ca,_0x2fad6d)=>{const _0x3cf9fc=_0x45f284,_0xe05d84={'dvtNH':function(_0x2f1dbb,_0x56768){return _0x2f1dbb??_0x56768;}},_0x43c126={..._0xe05d84['dvtNH'](_0x8830ca,{}),..._0xe05d84[_0x3cf9fc(0x95)](_0x2fad6d,{})};return Object[_0x3cf9fc(0x7c)](_0x43c126)[_0x3cf9fc(0x85)]?_0x43c126:undefined;},SAFE_MODE_ARGS=[_0x45f284(0xb5)],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost','--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x2472a5,_0x3659d0={}){const _0x1b2764=_0x45f284,_0x756624={'qfiYt':function(_0x55612a,_0x395e34){return _0x55612a(_0x395e34);},'BharN':function(_0x3dd88c,_0x1aaa97){return _0x3dd88c(_0x1aaa97);},'HthHb':function(_0x4d51fc,_0x1f1022){return _0x4d51fc===_0x1f1022;},'CxqrX':'string'},_0x586c27=_0x756624['qfiYt'](asRecord,_0x2472a5[_0x1b2764(0xc7)]),_0x13f2c3={..._0x756624[_0x1b2764(0xd3)](asRecord,_0x586c27?.['launchOptions'])??{}};typeof _0x3659d0['headless']===_0x1b2764(0xd0)&&(_0x13f2c3['headless']=_0x3659d0['headless']);if(_0x2472a5['safeMode']){const _0xafc8d0=_0x13f2c3[_0x1b2764(0x77)]??[],_0x45beb3=SAFE_MODE_ARGS['filter'](_0x4b769d=>!_0xafc8d0['includes'](_0x4b769d));_0x13f2c3[_0x1b2764(0x77)]=[..._0xafc8d0,..._0x45beb3];}if(_0x2472a5[_0x1b2764(0x8d)]){const _0x1dc953=_0x13f2c3[_0x1b2764(0x77)]??[],_0x1e2945=ALLOW_LOCALHOST_ARGS['filter'](_0x380b4b=>!_0x1dc953[_0x1b2764(0x91)](_0x380b4b));_0x13f2c3['args']=[..._0x1dc953,..._0x1e2945];}const _0x2ee9bc={..._0x756624['BharN'](asRecord,_0x586c27?.['contextOptions'])??{}};_0x2ee9bc['ignoreHTTPSErrors']=!![];_0x756624[_0x1b2764(0xb8)](typeof _0x2472a5['userAgent'],_0x756624[_0x1b2764(0x78)])&&(_0x2ee9bc['userAgent']=_0x2472a5['userAgent']);const _0x297843=mergeHeaders(asRecord(_0x2ee9bc['extraHTTPHeaders']),asRecord(_0x2472a5[_0x1b2764(0x9f)]));return _0x297843?_0x2ee9bc['extraHTTPHeaders']=_0x297843:delete _0x2ee9bc['extraHTTPHeaders'],_0x3659d0['storageStatePath']&&(_0x2ee9bc[_0x1b2764(0xde)]=_0x3659d0['storageStatePath']),{'launchOptions':_0x13f2c3,'contextOptions':_0x2ee9bc};}export async function buildPlaywrightConfig(_0x5e8d55,_0x55d02d,_0xa9f9f6,_0x2d02d2){const _0xe60a3f=_0x45f284,_0x1ef36a={'AtwIB':function(_0x167fd2,_0x3f643d){return _0x167fd2===_0x3f643d;},'yYFMy':_0xe60a3f(0x92),'fLqgZ':'--disable-setuid-sandbox','hJOjV':_0xe60a3f(0xe0),'lHqtb':_0xe60a3f(0x97),'LrfGN':function(_0x26de14,_0x26b95f,_0x4824bb){return _0x26de14(_0x26b95f,_0x4824bb);},'wKgzP':function(_0x5f2990,_0x1ddbc8){return _0x5f2990(_0x1ddbc8);},'FmtEu':function(_0x2725c0,_0x33e3f9,_0x472d0f){return _0x2725c0(_0x33e3f9,_0x472d0f);},'GeKXt':function(_0x586b9b){return _0x586b9b();},'oqDhD':function(_0x4419b7,_0x47b0a6){return _0x4419b7 instanceof _0x47b0a6;},'HJRhc':function(_0x49e576,_0x50cc5d){return _0x49e576(_0x50cc5d);},'ExLdf':function(_0x42a2e5,_0x5f3b10,_0x1e863c,_0x3b1155){return _0x42a2e5(_0x5f3b10,_0x1e863c,_0x3b1155);},'nHdhe':_0xe60a3f(0xa0),'mIXrC':'tabs','AuySf':_0xe60a3f(0xac),'oiVNu':_0xe60a3f(0xbf),'VqsAm':function(_0x5f4830,_0x460e86){return _0x5f4830===_0x460e86;},'atGCL':function(_0x1d0580){return _0x1d0580();},'ztDrg':'ranger-config','pQCON':function(_0x27e6cc,_0x362939){return _0x27e6cc(_0x362939);}},_0x329a2b=getEnvDir(_0x55d02d),_0x542e36=join(_0x329a2b,'auth.json.enc'),_0x47a775=_0x1ef36a[_0xe60a3f(0xab)](join,_0x329a2b,'auth.json');let _0x56ab45,_0x3cd17a;if(existsSync(_0x542e36))try{const _0x1207b3=await getToken();if(!_0x1207b3)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x2609b2=await _0x1ef36a['wKgzP'](readFile,_0x542e36),_0x26360a=decrypt(_0x2609b2,_0x1207b3);_0x3cd17a=_0x1ef36a[_0xe60a3f(0xb1)](join,_0x1ef36a['GeKXt'](tmpdir),_0xe60a3f(0xa7)+Date[_0xe60a3f(0x96)]()+_0xe60a3f(0xaf)),await _0x1ef36a[_0xe60a3f(0xab)](writeFile,_0x3cd17a,_0x26360a),_0x56ab45=_0x3cd17a;}catch(_0x1f285a){const _0x50eb4d=_0x1ef36a['oqDhD'](_0x1f285a,Error)?_0x1f285a['message']:_0x1ef36a[_0xe60a3f(0xba)](String,_0x1f285a);throw new Error(_0xe60a3f(0x8e)+_0x50eb4d);}else existsSync(_0x47a775)&&(_0x56ab45=_0x47a775);const _0x4db8bd=_0xa9f9f6||_0x1ef36a['GeKXt'](randomUUID),_0x2ad652=_0x1ef36a[_0xe60a3f(0x9b)](join,getRangerDir(),'sessions',_0x4db8bd),_0x54926c=Boolean(_0x5e8d55[_0xe60a3f(0xd7)]),_0x417812=_0x54926c?{'browserName':'chromium','cdpEndpoint':_0x5e8d55['cdpEndpoint']}:((()=>{const _0x1f07b1=_0xe60a3f,{launchOptions:_0x4f2747,contextOptions:_0x3d2b6d}=buildBrowserOptionsFromSettings(_0x5e8d55,{'headless':_0x2d02d2?![]:_0x5e8d55['headless']??!![],'storageStatePath':_0x56ab45});if(_0x1ef36a[_0x1f07b1(0xa2)](process['getuid']?.(),0x0)){const _0x2d5373=[_0x1ef36a['yYFMy'],_0x1ef36a['fLqgZ']],_0x54dc17=_0x4f2747[_0x1f07b1(0x77)]??[],_0x2e7520=_0x2d5373['filter'](_0x226d56=>!_0x54dc17['includes'](_0x226d56));_0x4f2747[_0x1f07b1(0x77)]=[..._0x54dc17,..._0x2e7520];}return{'isolated':!![],'browserName':_0x1ef36a[_0x1f07b1(0xc3)],'launchOptions':_0x4f2747,'contextOptions':{..._0x3d2b6d,'permissions':[_0x1f07b1(0x9c),_0x1ef36a['lHqtb']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x1e5e93={'name':_0x55d02d,'browser':_0x417812,'capabilities':[_0x1ef36a['nHdhe'],_0x1ef36a[_0xe60a3f(0x9a)],_0x1ef36a[_0xe60a3f(0xbd)],'pdf','vision'],'imageResponses':_0x1ef36a['oiVNu'],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x2ad652};if(!_0x54926c){const _0x49c990=_0x1e5e93['browser'],_0x9af66d=_0x49c990['contextOptions'];if(_0x9af66d['userAgent']===undefined)delete _0x9af66d[_0xe60a3f(0x89)];if(_0x1ef36a[_0xe60a3f(0xc0)](_0x9af66d[_0xe60a3f(0xde)],undefined))delete _0x9af66d[_0xe60a3f(0xde)];}const _0x2681fb=join(_0x1ef36a['atGCL'](tmpdir),_0x1ef36a['ztDrg']);!_0x1ef36a['pQCON'](existsSync,_0x2681fb)&&await mkdir(_0x2681fb,{'recursive':!![]});const _0x3cdabc=join(_0x2681fb,_0x55d02d+'-'+Date['now']()+'.json');return await _0x1ef36a['FmtEu'](writeFile,_0x3cdabc,JSON[_0xe60a3f(0xe1)](_0x1e5e93,null,0x2)),{'configPath':_0x3cdabc,'tempAuthPath':_0x3cd17a};}export async function buildPlaywrightCliConfig(_0x366da0,_0x29b072,_0x1e9188,_0x183bd9){const _0x3ef979=_0x45f284,_0x3c2090={'ohqPU':function(_0x2bec00,_0x37adfc,_0x19853b){return _0x2bec00(_0x37adfc,_0x19853b);},'ZGjMM':_0x3ef979(0xb3),'dPOqF':_0x3ef979(0x97),'uAKXb':'auth.json','XWCnA':function(_0x3c701e,_0x3debc9){return _0x3c701e(_0x3debc9);},'AgzYf':function(_0xc18db9){return _0xc18db9();},'YwVpX':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','FusFQ':function(_0xd4fd02,_0x1d3ade){return _0xd4fd02 instanceof _0x1d3ade;},'wYkLz':function(_0x128a12,_0x3cfacb){return _0x128a12(_0x3cfacb);},'SXDxz':function(_0x50e578,_0x268cc0){return _0x50e578(_0x268cc0);},'SrJBw':function(_0xcd0ecc,_0x25b5c0){return _0xcd0ecc===_0x25b5c0;},'kKRYw':_0x3ef979(0x7e),'nHTEJ':function(_0x3a0ad3){return _0x3a0ad3();},'DxnHM':function(_0x13f88e,_0x260e57,_0x164df8){return _0x13f88e(_0x260e57,_0x164df8);},'ljDJB':function(_0x3e5730,_0x3594b7,_0x43a338){return _0x3e5730(_0x3594b7,_0x43a338);}},_0x435631=getEnvDir(_0x29b072),_0x3efdee=join(_0x435631,_0x3ef979(0xa6)),_0x517e9f=join(_0x435631,_0x3c2090[_0x3ef979(0xd2)]);let _0x21a212,_0x2e5a57;if(_0x3c2090[_0x3ef979(0xe5)](existsSync,_0x3efdee))try{const _0x374688=await _0x3c2090[_0x3ef979(0xa5)](getToken);if(!_0x374688)throw new Error(_0x3c2090['YwVpX']);const _0x3fc9c4=await _0x3c2090[_0x3ef979(0xe5)](readFile,_0x3efdee),_0x1c3c37=_0x3c2090[_0x3ef979(0xc4)](decrypt,_0x3fc9c4,_0x374688);_0x2e5a57=join(tmpdir(),'ranger-auth-'+Date[_0x3ef979(0x96)]()+_0x3ef979(0xaf)),await _0x3c2090[_0x3ef979(0xc4)](writeFile,_0x2e5a57,_0x1c3c37),_0x21a212=_0x2e5a57;}catch(_0x18de5d){const _0x29b3ec=_0x3c2090['FusFQ'](_0x18de5d,Error)?_0x18de5d[_0x3ef979(0x80)]:String(_0x18de5d);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x29b3ec);}else _0x3c2090[_0x3ef979(0x90)](existsSync,_0x517e9f)&&(_0x21a212=_0x517e9f);const _0x479116=_0x1e9188||randomUUID(),_0x1d069a=join(_0x3c2090[_0x3ef979(0xa5)](getRangerDir),_0x3ef979(0xcc),_0x479116),_0x18b7a9=_0x3c2090[_0x3ef979(0x93)](Boolean,_0x366da0['cdpEndpoint']),_0x16024f=_0x18b7a9?{'browserName':_0x3ef979(0xe0),'cdpEndpoint':_0x366da0[_0x3ef979(0xd7)]}:((()=>{const _0x299ede=_0x3ef979,{launchOptions:_0x3e7c77,contextOptions:_0x5d439d}=_0x3c2090['ohqPU'](buildBrowserOptionsFromSettings,_0x366da0,{'headless':_0x183bd9?![]:_0x366da0[_0x299ede(0xcd)]??!![],'storageStatePath':_0x21a212});if(process[_0x299ede(0xd8)]?.()===0x0){const _0x1a6cb2=[_0x299ede(0x92),_0x3c2090[_0x299ede(0xd9)]],_0x16fe5a=_0x3e7c77[_0x299ede(0x77)]??[],_0x360e1d=_0x1a6cb2['filter'](_0x53fdc8=>!_0x16fe5a[_0x299ede(0x91)](_0x53fdc8));_0x3e7c77['args']=[..._0x16fe5a,..._0x360e1d];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x3e7c77,'contextOptions':{..._0x5d439d,'permissions':['clipboard-read',_0x3c2090['dPOqF']],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x18b7a9){const _0x154e23=_0x16024f['contextOptions'];if(_0x3c2090['SrJBw'](_0x154e23[_0x3ef979(0x89)],undefined))delete _0x154e23[_0x3ef979(0x89)];if(_0x3c2090[_0x3ef979(0xc5)](_0x154e23[_0x3ef979(0xde)],undefined))delete _0x154e23[_0x3ef979(0xde)];}const _0x1e7e7f={'browser':_0x16024f,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x1d069a,'outputMode':'file','codegen':_0x3c2090['kKRYw']},_0x50fe56=join(_0x3c2090[_0x3ef979(0xaa)](tmpdir),_0x3ef979(0xd1));!_0x3c2090['wYkLz'](existsSync,_0x50fe56)&&await _0x3c2090[_0x3ef979(0xb6)](mkdir,_0x50fe56,{'recursive':!![]});const _0x29926e=join(_0x50fe56,_0x29b072+'-'+Date[_0x3ef979(0x96)]()+'-cli.json');return await _0x3c2090[_0x3ef979(0xbe)](writeFile,_0x29926e,JSON[_0x3ef979(0xe1)](_0x1e7e7f,null,0x2)),{'configPath':_0x29926e,'tempAuthPath':_0x2e5a57};}export function getNestedValue(_0x1facee,_0x21f6dd){const _0x996445=_0x45f284,_0x4caaa0={'ENNrd':function(_0x89c5fc,_0x152d6d){return _0x89c5fc===_0x152d6d;},'uEPiZ':function(_0x55bc4c,_0x3b3d86){return _0x55bc4c===_0x3b3d86;},'RQihM':_0x996445(0x88)},_0xdfec5d=parseKeyPath(_0x21f6dd);let _0x5337a3=_0x1facee;for(const _0x33ab4a of _0xdfec5d){if(_0x4caaa0[_0x996445(0xe3)](_0x5337a3,null)||_0x4caaa0[_0x996445(0x86)](_0x5337a3,undefined)||typeof _0x5337a3!==_0x4caaa0[_0x996445(0x9d)])return undefined;_0x5337a3=_0x5337a3[_0x33ab4a];}return _0x5337a3;}export function setNestedValue(_0x222594,_0xe3cb2e,_0x5a165f){const _0x6fc1f7=_0x45f284,_0x542d15={'hhXMu':function(_0x4dafe3,_0x59f778){return _0x4dafe3(_0x59f778);},'kZVaF':function(_0x38279c,_0x49e2f1){return _0x38279c-_0x49e2f1;},'rdjWD':function(_0xea517,_0x54041d){return _0xea517!==_0x54041d;},'Ntlog':'object'},_0x30e7b9=_0x542d15[_0x6fc1f7(0xdb)](parseKeyPath,_0xe3cb2e);let _0x1c9d48=_0x222594;for(let _0x5b38db=0x0;_0x5b38db<_0x542d15['kZVaF'](_0x30e7b9[_0x6fc1f7(0x85)],0x1);_0x5b38db++){const _0x50371a=_0x30e7b9[_0x5b38db];(!(_0x50371a in _0x1c9d48)||_0x542d15['rdjWD'](typeof _0x1c9d48[_0x50371a],_0x542d15['Ntlog']))&&(_0x1c9d48[_0x50371a]={}),_0x1c9d48=_0x1c9d48[_0x50371a];}_0x1c9d48[_0x30e7b9[_0x542d15[_0x6fc1f7(0xe7)](_0x30e7b9['length'],0x1)]]=_0x5a165f;}export function deleteNestedValue(_0x59043b,_0x140862){const _0x3db34f=_0x45f284,_0x579063={'XoQNE':function(_0x54e8a9,_0x18f06){return _0x54e8a9(_0x18f06);},'IziqB':_0x3db34f(0x88),'ukyrb':function(_0x3612b4,_0x298a58){return _0x3612b4===_0x298a58;},'xbHIS':function(_0x24ef9c,_0x5e2b7f){return _0x24ef9c!==_0x5e2b7f;}},_0x3a59db=_0x579063[_0x3db34f(0xc9)](parseKeyPath,_0x140862);let _0x1f3389=_0x59043b;for(let _0x1a4a2b=0x0;_0x1a4a2b<_0x3a59db[_0x3db34f(0x85)]-0x1;_0x1a4a2b++){if(_0x1f3389===null||_0x1f3389===undefined||typeof _0x1f3389!==_0x579063['IziqB'])return![];_0x1f3389=_0x1f3389[_0x3a59db[_0x1a4a2b]];}if(_0x579063['ukyrb'](_0x1f3389,null)||_0x1f3389===undefined||_0x579063[_0x3db34f(0xca)](typeof _0x1f3389,_0x579063['IziqB']))return![];const _0x425a6d=_0x3a59db[_0x3a59db['length']-0x1];if(_0x425a6d in _0x1f3389)return delete _0x1f3389[_0x425a6d],!![];return![];}function parseKeyPath(_0x30c3d7){const _0x2f5f6b=_0x45f284,_0x53520f={'rFggg':_0x2f5f6b(0x79),'eEFoM':'setupHeaders'},_0x2ad307=_0x30c3d7[_0x2f5f6b(0xbc)]('.');return _0x2ad307[0x0]==='header'&&(_0x2ad307[0x0]=_0x2f5f6b(0x9f)),_0x2ad307[0x0]===_0x53520f['rFggg']&&(_0x2ad307[0x0]=_0x53520f[_0x2f5f6b(0x8f)]),_0x2ad307;}export function formatSettings(_0x3a3908,_0x29e644=0x0){const _0x506d7e=_0x45f284,_0x520964={'WghHJ':_0x506d7e(0x88)},_0x8a910f=[],_0x21490a='\x20\x20'[_0x506d7e(0xa8)](_0x29e644);for(const [_0x2eeec1,_0x349c66]of Object[_0x506d7e(0x8b)](_0x3a3908)){if(_0x349c66===undefined)continue;if(typeof _0x349c66===_0x520964[_0x506d7e(0xda)]&&_0x349c66!==null){_0x8a910f[_0x506d7e(0xdf)](''+_0x21490a+_0x2eeec1+':');for(const [_0xf8b307,_0x20d704]of Object[_0x506d7e(0x8b)](_0x349c66)){_0x8a910f['push'](_0x21490a+'\x20\x20'+_0xf8b307+':\x20'+_0x20d704);}}else _0x8a910f['push'](''+_0x21490a+_0x2eeec1+':\x20'+_0x349c66);}return _0x8a910f[_0x506d7e(0xc6)]('\x0a');}function _0x4547(){const _0x4c5bd6=['jwLrv','aiQDq','AgzYf','auth.json.enc','ranger-auth-','repeat','HXVmy','nHTEJ','LrfGN','install','location','HZnGa','.json','2626086DezUXL','FmtEu','filter','--disable-setuid-sandbox','232HiqSOQ','--disable-features=WebBluetooth','DxnHM','auth.json','HthHb','ENOENT','HJRhc','50TIMQMz','split','AuySf','ljDJB','allow','VqsAm','map','jFffR','hJOjV','ohqPU','SrJBw','join','browser','1202232agVFVF','XoQNE','xbHIS','15738Kjrkfs','sessions','headless','Pxlec','gLrNk','boolean','ranger-config','uAKXb','qfiYt','string','env','912584tEkFsB','cdpEndpoint','getuid','ZGjMM','WghHJ','hhXMu','xGYOT','all','storageState','push','chromium','stringify','tempAuthPath','ENNrd','MclDI','XWCnA','UwPEx','kZVaF','args','CxqrX','setupHeader','5108005AeGMYW','local','keys','10TvUVTj','none','OZREY','message','TFngI','replace','warn','legacy','length','uEPiZ','catch','object','userAgent','path','entries','code','allowInsecureLocalhost','Failed\x20to\x20decrypt\x20auth\x20state:\x20','eEFoM','wYkLz','includes','--no-sandbox','SXDxz','2968272RYUJwb','dvtNH','now','clipboard-write','isArray','FVmgy','mIXrC','ExLdf','clipboard-read','RQihM','fromEntries','headers','core','742968wENuNc','AtwIB'];_0x4547=function(){return _0x4c5bd6;};return _0x4547();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x8fef22,_0x3da91b){const _0x5d938e=_0x5703,_0x413817=_0x8fef22();while(!![]){try{const _0x2f122e=-parseInt(_0x5d938e(0x164))/0x1+-parseInt(_0x5d938e(0x163))/0x2+parseInt(_0x5d938e(0x15c))/0x3+-parseInt(_0x5d938e(0x15f))/0x4*(parseInt(_0x5d938e(0x15b))/0x5)+-parseInt(_0x5d938e(0x162))/0x6+-parseInt(_0x5d938e(0x15a))/0x7+parseInt(_0x5d938e(0x15e))/0x8;if(_0x2f122e===_0x3da91b)break;else _0x413817['push'](_0x413817['shift']());}catch(_0x4bec30){_0x413817['push'](_0x413817['shift']());}}}(_0x3e9b,0x23a7e));import{readFileSync}from'fs';function _0x5703(_0x664401,_0x4e571e){_0x664401=_0x664401-0x15a;const _0x3e9b56=_0x3e9b();let _0x57036d=_0x3e9b56[_0x664401];return _0x57036d;}import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x3e9b(){const _0xfd7f34=['55982PNwQZG','61561OjAbAF','839020XwQzDz','278755WUhccj','58536ZmXuGe','ranger/SKILL.md','4821200YwNlVI','12zUrtsk','EkplG','utf-8','596706vCjLHI'];_0x3e9b=function(){return _0xfd7f34;};return _0x3e9b();}export function readSkillContent(_0x64d597){const _0x2a08cc=_0x5703,_0x42a275={'RXqfb':function(_0x1d1398,_0x44d84a,_0x5111c4,_0x25a3d3,_0x410a70){return _0x1d1398(_0x44d84a,_0x5111c4,_0x25a3d3,_0x410a70);},'DNWIZ':'skills','EkplG':function(_0x141f87,_0x14145c,_0x24056d){return _0x141f87(_0x14145c,_0x24056d);},'mKRPA':_0x2a08cc(0x161)},_0x379701=_0x42a275['RXqfb'](join,__dirname,'..','..',_0x42a275['DNWIZ']),_0x43c5fb=_0x42a275['EkplG'](join,_0x379701,_0x64d597);try{return _0x42a275[_0x2a08cc(0x160)](readFileSync,_0x43c5fb,_0x42a275['mKRPA']);}catch{return'';}}export function getRangerSkillContent(){const _0xde3cf0=_0x5703,_0x4520f7={'UDGuc':_0xde3cf0(0x15d)};return readSkillContent(_0x4520f7['UDGuc']);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3467(){const _0x4d70a7=['2UdReBk','warn','WVPCk','155901JekYSq','push','XIFNv','claude','636OVfMBJ','ZORhD','uPNix','94977JsUKso','\x20\x20Files:\x20','9LKHTYj','feature-tracker','orUrT','trim','project','50OnyIGn','549618KSqILV','filter','\x20\x20Location:\x20','isDirectory','\x20\x20Removed\x20deprecated\x20skill:\x20','SKILL.md','skills','EHrrX','1231270FXgXaN','catch','match','log','5376998eOtvVH','3949992aXvWaz','\x20\x20Skill\x20not\x20found:\x20','opencode','tBbax','Invalid\x20skill\x20frontmatter','7xhnRxB','nTNIL','endsWith'];_0x3467=function(){return _0x4d70a7;};return _0x3467();}const _0x5f3913=_0x3b36;(function(_0xcb25ab,_0x41f728){const _0x373f04=_0x3b36,_0x4e95d9=_0xcb25ab();while(!![]){try{const _0x4aab37=parseInt(_0x373f04(0xa7))/0x1*(parseInt(_0x373f04(0xc4))/0x2)+-parseInt(_0x373f04(0xc7))/0x3+parseInt(_0x373f04(0xcb))/0x4*(parseInt(_0x373f04(0xae))/0x5)+parseInt(_0x373f04(0xaf))/0x6*(parseInt(_0x373f04(0xc1))/0x7)+parseInt(_0x373f04(0xbc))/0x8+-parseInt(_0x373f04(0xa9))/0x9*(-parseInt(_0x373f04(0xb7))/0xa)+-parseInt(_0x373f04(0xbb))/0xb;if(_0x4aab37===_0x41f728)break;else _0x4e95d9['push'](_0x4e95d9['shift']());}catch(_0x502c9e){_0x4e95d9['push'](_0x4e95d9['shift']());}}}(_0x3467,0x40845));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',_0x5f3913(0xaa)];export async function installSkill(_0x457cac,_0x28b8a1={}){const _0xb356d9=_0x5f3913,_0x3a9de3={'QVLiN':function(_0x315a6e){return _0x315a6e();},'qoNxd':function(_0x5221bc,_0x29b894,_0x53d69f){return _0x5221bc(_0x29b894,_0x53d69f);},'JVysu':function(_0x49e4e9,_0x7b2f55,_0x1fbfc6){return _0x49e4e9(_0x7b2f55,_0x1fbfc6);},'XIFNv':function(_0x2cfd7b,_0x1bd5d3){return _0x2cfd7b(_0x1bd5d3);},'ZORhD':_0xb356d9(0xb4),'mqZoJ':function(_0x3ec340,_0x519e4b){return _0x3ec340&&_0x519e4b;},'llCmy':function(_0x199269,_0x462f7a){return _0x199269===_0x462f7a;},'PPUJM':_0xb356d9(0xbe),'VUOMO':function(_0x2ad57e,_0x56eb6a){return _0x2ad57e(_0x56eb6a);},'EHrrX':function(_0x2da6dd,_0x26e3ad,_0xa2c805){return _0x2da6dd(_0x26e3ad,_0xa2c805);},'UGMGR':function(_0x79fc14,_0x56cf4d,_0x3f868a,_0x56ed10){return _0x79fc14(_0x56cf4d,_0x3f868a,_0x56ed10);},'orUrT':function(_0x5488bf,_0xb1ed8){return _0x5488bf(_0xb1ed8);},'tBbax':function(_0x418bde,_0xc5fb80){return _0x418bde>_0xc5fb80;}},{level:level=_0xb356d9(0xad),cliVersion:_0x43abce,platform:platform=_0xb356d9(0xca)}=_0x28b8a1,_0x18f4b6=_0x3a9de3['QVLiN'](getSourceSkillsDir),_0x247551=_0x3a9de3['qoNxd'](join,_0x18f4b6,_0x457cac),_0x1bd6a0=_0x3a9de3['JVysu'](join,_0x18f4b6,_0x457cac+'.md'),_0x40c6bc=_0x3a9de3[_0xb356d9(0xc9)](existsSync,_0x247551)&&statSync(_0x247551)[_0xb356d9(0xb2)]()&&existsSync(_0x3a9de3['qoNxd'](join,_0x247551,_0x3a9de3[_0xb356d9(0xa5)])),_0x2f0a42=existsSync(_0x1bd6a0);if(_0x3a9de3['mqZoJ'](!_0x40c6bc,!_0x2f0a42))return console[_0xb356d9(0xc5)](_0xb356d9(0xbd)+_0x457cac),![];const _0x3d9cc3=_0x3a9de3['llCmy'](platform,_0x3a9de3['PPUJM'])?getOpencodeSkillsDir(level):_0x3a9de3['VUOMO'](getSkillsDir,level),_0x4d9e95=_0x3a9de3[_0xb356d9(0xb6)](join,_0x3d9cc3,_0x457cac);await mkdir(_0x4d9e95,{'recursive':!![]});let _0x4822d2,_0x2fdb00=[];if(_0x40c6bc){const _0x1f93e6=await readdir(_0x247551),_0x5d40e4=_0x1f93e6[_0xb356d9(0xb0)](_0xb45432=>_0xb45432[_0xb356d9(0xc3)]('.md'));for(const _0x1b609c of _0x5d40e4){const _0x1a86a4=join(_0x247551,_0x1b609c),_0x237c49=join(_0x4d9e95,_0x1b609c);await _0x3a9de3[_0xb356d9(0xb6)](copyFile,_0x1a86a4,_0x237c49),_0x2fdb00['push'](_0x1b609c);}_0x4822d2=await _0x3a9de3['qoNxd'](readFile,join(_0x247551,'SKILL.md'),'utf-8');}else{_0x4822d2=await _0x3a9de3[_0xb356d9(0xb6)](readFile,_0x1bd6a0,'utf-8');const _0x389f85=join(_0x4d9e95,_0x3a9de3['ZORhD']);await _0x3a9de3['UGMGR'](writeFile,_0x389f85,_0x4822d2,'utf-8'),_0x2fdb00[_0xb356d9(0xc8)](_0x3a9de3[_0xb356d9(0xa5)]);}const {name:_0x537217}=_0x3a9de3[_0xb356d9(0xab)](parseFrontmatter,_0x4822d2);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x537217),console[_0xb356d9(0xba)](_0xb356d9(0xb1)+_0x4d9e95),_0x3a9de3[_0xb356d9(0xbf)](_0x2fdb00['length'],0x1)&&console[_0xb356d9(0xba)](_0xb356d9(0xa8)+_0x2fdb00['join'](',\x20')),_0x3a9de3['UGMGR'](logLocalAgentInstallation,_0x457cac,{'skillDisplayName':_0x537217,'installLevel':level},_0x43abce)[_0xb356d9(0xb8)](()=>{}),!![];}function getSourceSkillsDir(){const _0x23f643=_0x5f3913,_0x306359={'loHcW':_0x23f643(0xb5),'nTNIL':function(_0x59d2c3,_0x7052a6){return _0x59d2c3(_0x7052a6);}},_0x1b06a4=[join(__dirname,'..','..',_0x306359['loHcW']),join(__dirname,'..','..','..',_0x306359['loHcW'])];for(const _0x5c5bfc of _0x1b06a4){if(_0x306359[_0x23f643(0xc2)](existsSync,_0x5c5bfc))return _0x5c5bfc;}return _0x1b06a4[0x0];}function parseFrontmatter(_0x1d9e3a){const _0xe4edc3=_0x5f3913,_0x184d06={'caDMp':_0xe4edc3(0xc0)},_0x1fe98e=_0x1d9e3a[_0xe4edc3(0xb9)](/^---\n([\s\S]+?)\n---/);if(!_0x1fe98e)throw new Error(_0x184d06['caDMp']);const _0x2a6cbb=_0x1fe98e[0x1],_0xd33312=_0x2a6cbb['match'](/name:\s*(.+)/),_0x456995=_0x2a6cbb[_0xe4edc3(0xb9)](/description:\s*"?(.+?)"?\n/);return{'name':_0xd33312?.[0x1][_0xe4edc3(0xac)]()||'','description':_0x456995?.[0x1]['trim']()||''};}function _0x3b36(_0x16272a,_0x5a487b){_0x16272a=_0x16272a-0xa5;const _0x3467c1=_0x3467();let _0x3b3664=_0x3467c1[_0x16272a];return _0x3b3664;}export async function removeSkill(_0x5e52f6,_0x3cb58e){const _0x211b3e=_0x5f3913,_0x101c15={'uPNix':function(_0x189af0,_0x477b3c,_0x4ecb16){return _0x189af0(_0x477b3c,_0x4ecb16);},'WVPCk':function(_0xe67470,_0x2e327c){return _0xe67470(_0x2e327c);}},_0x1d40c0=getSkillsDir(_0x3cb58e),_0x358456=_0x101c15[_0x211b3e(0xa6)](join,_0x1d40c0,_0x5e52f6);if(!_0x101c15[_0x211b3e(0xc6)](existsSync,_0x358456))return![];try{return await _0x101c15['uPNix'](rm,_0x358456,{'recursive':!![]}),console['log'](_0x211b3e(0xb3)+_0x5e52f6),!![];}catch{return console[_0x211b3e(0xc5)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x5e52f6),![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x504252=_0x1444;(function(_0x3f3446,_0x454502){const _0x32105e=_0x1444,_0x8d446c=_0x3f3446();while(!![]){try{const _0x469d64=parseInt(_0x32105e(0x236))/0x1*(parseInt(_0x32105e(0x21e))/0x2)+parseInt(_0x32105e(0x1f7))/0x3+-parseInt(_0x32105e(0x1fc))/0x4+parseInt(_0x32105e(0x235))/0x5+-parseInt(_0x32105e(0x23f))/0x6*(parseInt(_0x32105e(0x22e))/0x7)+parseInt(_0x32105e(0x23b))/0x8+parseInt(_0x32105e(0x200))/0x9*(-parseInt(_0x32105e(0x233))/0xa);if(_0x469d64===_0x454502)break;else _0x8d446c['push'](_0x8d446c['shift']());}catch(_0x16b098){_0x8d446c['push'](_0x8d446c['shift']());}}}(_0x5098,0xdc60c));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 _0x5098(){const _0x309b4e=['pow','min','clusters','TuWDQ','14SOVBCP','endsWith','SktcR','vtrSo','LmRYl','6718520NSfoTm','deRjV','296100zedUzT','1hMbGxO','wOkzb','stitchWebmFiles.ts','QSPUg','yWIAh','10376960VKFwqZ','PrZMm','PRhGT','bodyBeforeTimestamp','547056VzxNuK','DSudu','QEOlh','log','maxTimestampTicks','tSrab','slice','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','2369118ZzoLBz','KEggb','error','AtzUx','PIfdU','4295948WQvenC','alloc','UPtWL','from','18Tcnmld','UNleD','tEOVN','CWFGA','header','FMDZJ','length','UfONY','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','argv','stitchWebmFiles.js','FvJkn','UtEmn','bodyAfterTimestamp','VnEqj','fArqT','push','JUYhE','VDyeS','XnaLZ','LSbok','fbdkO','DTlHl','iVGIh','cpKQI','Pfbnb','bpVJm','qteZT','xQqkg','bjHpr','2713330wRDnsx','wxBOz','nhPiH','GPIKq','ZyLOV','eUGda','dnUrl','floor','hgdOg','TLvyx','JHhIb','concat'];_0x5098=function(){return _0x309b4e;};return _0x5098();}function readVint(_0x3fc156,_0x5a527c){const _0x4e3a64=_0x1444,_0x5e2aa7={'alklq':function(_0xd1aa0c,_0x31d54d){return _0xd1aa0c>=_0x31d54d;},'eAcQc':function(_0x3ccb6c,_0x5683a5){return _0x3ccb6c&_0x5683a5;},'XUkuZ':function(_0x5058e8,_0x2aceec){return _0x5058e8<_0x2aceec;},'iVGIh':function(_0x49cf73,_0x30480c){return _0x49cf73+_0x30480c;}};if(_0x5e2aa7['alklq'](_0x5a527c,_0x3fc156['length']))return[0x0,0x0];const _0x38339b=_0x3fc156[_0x5a527c];let _0x5eea98=0x1,_0x27c27a=0x80;while(_0x5eea98<=0x8&&!_0x5e2aa7['eAcQc'](_0x38339b,_0x27c27a)){_0x5eea98++,_0x27c27a>>=0x1;}if(_0x5a527c+_0x5eea98>_0x3fc156['length'])return[0x0,0x0];let _0x2d9092=_0x5e2aa7['eAcQc'](_0x38339b,_0x27c27a-0x1);for(let _0x5f4e2f=0x1;_0x5e2aa7['XUkuZ'](_0x5f4e2f,_0x5eea98);_0x5f4e2f++){_0x2d9092=_0x5e2aa7[_0x4e3a64(0x217)](_0x2d9092*0x100,_0x3fc156[_0x5e2aa7[_0x4e3a64(0x217)](_0x5a527c,_0x5f4e2f)]);}return[_0x2d9092,_0x5eea98];}function _0x1444(_0x5ec0b8,_0x130722){_0x5ec0b8=_0x5ec0b8-0x1f4;const _0x509843=_0x5098();let _0x144472=_0x509843[_0x5ec0b8];return _0x144472;}function readId(_0x437de8,_0x5f3bf3){const _0x786976=_0x1444,_0x1387b0={'TuWDQ':function(_0x2bb062,_0x2e69e7){return _0x2bb062>=_0x2e69e7;},'IxAxL':function(_0x1727b5,_0x561339){return _0x1727b5>=_0x561339;},'JUYhE':function(_0x31496c,_0x4c0ca2){return _0x31496c+_0x4c0ca2;}};if(_0x5f3bf3>=_0x437de8['length'])return[0x0,0x0];const _0x5c8faa=_0x437de8[_0x5f3bf3];let _0x11875e;if(_0x1387b0[_0x786976(0x22d)](_0x5c8faa,0x80))_0x11875e=0x1;else{if(_0x1387b0['IxAxL'](_0x5c8faa,0x40))_0x11875e=0x2;else{if(_0x1387b0['IxAxL'](_0x5c8faa,0x20))_0x11875e=0x3;else{if(_0x1387b0[_0x786976(0x22d)](_0x5c8faa,0x10))_0x11875e=0x4;else return[_0x5c8faa,0x1];}}}if(_0x5f3bf3+_0x11875e>_0x437de8['length'])return[0x0,0x0];let _0x539fc7=0x0;for(let _0x1215e7=0x0;_0x1215e7<_0x11875e;_0x1215e7++){_0x539fc7=_0x1387b0[_0x786976(0x211)](_0x539fc7*0x100,_0x437de8[_0x5f3bf3+_0x1215e7]);}return[_0x539fc7,_0x11875e];}function readUint(_0x1cf122,_0x1983ff,_0x43d7b9){const _0x572047=_0x1444,_0x2c717d={'aNnbZ':function(_0x5c6d52,_0x59dac9){return _0x5c6d52<_0x59dac9;},'wOkzb':function(_0x409c9e,_0x1a8ef2){return _0x409c9e+_0x1a8ef2;}};let _0x559ef4=0x0;for(let _0x24e436=0x0;_0x2c717d['aNnbZ'](_0x24e436,_0x43d7b9);_0x24e436++){_0x559ef4=_0x2c717d[_0x572047(0x237)](_0x559ef4*0x100,_0x1cf122[_0x1983ff+_0x24e436]);}return _0x559ef4;}function isUnknownSize(_0x108d02,_0x423382){const _0x3fc734=_0x1444,_0x3b23ad={'cpKQI':function(_0x564158,_0x26ae85){return _0x564158===_0x26ae85;},'PRhGT':function(_0xb061bd,_0x14e6ef){return _0xb061bd-_0x14e6ef;},'voJSW':function(_0xa9213e,_0x397c73){return _0xa9213e*_0x397c73;}};return _0x3b23ad[_0x3fc734(0x218)](_0x108d02,_0x3b23ad[_0x3fc734(0x23d)](Math['pow'](0x2,_0x3b23ad['voJSW'](0x7,_0x423382)),0x1));}function writeVint(_0x2da48b,_0x34f48b){const _0x4c05cd=_0x1444,_0x15548e={'VnEqj':function(_0x303343,_0x5dc135){return _0x303343||_0x5dc135;},'bjHpr':function(_0x252114,_0x1ff995){return _0x252114*_0x1ff995;},'GPIKq':function(_0x38d003,_0x179caf){return _0x38d003-_0x179caf;},'QKLlO':function(_0x5755cb,_0x25828d){return _0x5755cb>=_0x25828d;},'DTlHl':function(_0x55dfb5,_0x52942f){return _0x55dfb5/_0x52942f;}};let _0x4cdd42=_0x15548e[_0x4c05cd(0x20e)](_0x34f48b,0x1);while(Math[_0x4c05cd(0x22a)](0x2,_0x15548e[_0x4c05cd(0x21d)](0x7,_0x4cdd42))-0x2<_0x2da48b)_0x4cdd42++;const _0x4c8ed1=Buffer[_0x4c05cd(0x1fd)](_0x4cdd42);for(let _0x483455=_0x15548e[_0x4c05cd(0x221)](_0x4cdd42,0x1);_0x15548e['QKLlO'](_0x483455,0x0);_0x483455--){_0x4c8ed1[_0x483455]=_0x2da48b&0xff,_0x2da48b=Math[_0x4c05cd(0x225)](_0x15548e[_0x4c05cd(0x216)](_0x2da48b,0x100));}return _0x4c8ed1[0x0]|=0x1<<_0x15548e[_0x4c05cd(0x221)](0x8,_0x4cdd42),_0x4c8ed1;}function writeUint(_0xec6376,_0x5e8f87){const _0x2334fe=_0x1444,_0x271c95=Buffer[_0x2334fe(0x1fd)](_0x5e8f87);for(let _0x2a1858=_0x5e8f87-0x1;_0x2a1858>=0x0;_0x2a1858--){_0x271c95[_0x2a1858]=_0xec6376&0xff,_0xec6376=Math['floor'](_0xec6376/0x100);}return _0x271c95;}function writeUnknownSizeVint(_0x415d02){const _0x4032a2={'QUwIo':function(_0x4affe4,_0x3f9d57){return _0x4affe4>>_0x3f9d57;}},_0x41273d=Buffer['alloc'](_0x415d02,0xff);return _0x41273d[0x0]=_0x4032a2['QUwIo'](0xff,_0x415d02-0x1),_0x41273d;}function uintSize(_0x22022d){const _0x13239b=_0x1444,_0x43a24d={'eUGda':function(_0x2d2b49,_0x548ed5){return _0x2d2b49/_0x548ed5;}};if(_0x22022d===0x0)return 0x1;let _0x26f4cd=0x0,_0x3af74a=_0x22022d;while(_0x3af74a>0x0){_0x26f4cd++,_0x3af74a=Math['floor'](_0x43a24d[_0x13239b(0x223)](_0x3af74a,0x100));}return _0x26f4cd;}function findTimestampScale(_0x89f25d,_0x53fd60){const _0x49f94b=_0x1444,_0x43edc5={'wxBOz':function(_0x3257fb,_0x20c1f8){return _0x3257fb+_0x20c1f8;},'GDKwL':function(_0x1c2ed9,_0xe30b26){return _0x1c2ed9<_0xe30b26;},'DSudu':function(_0x2050e8,_0x266da7,_0x1e36c4){return _0x2050e8(_0x266da7,_0x1e36c4);},'OXLIr':function(_0x581ad2,_0x48ee95){return _0x581ad2+_0x48ee95;},'XIeFU':function(_0x116009,_0x6dd73a,_0x28e11f){return _0x116009(_0x6dd73a,_0x28e11f);},'qteZT':function(_0x1ea861,_0x161762,_0x11f6bb){return _0x1ea861(_0x161762,_0x11f6bb);},'nhPiH':function(_0x548949,_0x2c999b){return _0x548949+_0x2c999b;},'TLvyx':function(_0x4cc402,_0x2b7d23){return _0x4cc402===_0x2b7d23;},'tSrab':function(_0x41b1a4,_0x57b833,_0x3eb6be,_0x368670){return _0x41b1a4(_0x57b833,_0x3eb6be,_0x368670);},'EEiQB':function(_0x297788,_0x2b393e){return _0x297788===_0x2b393e;}};let _0x3319a8=_0x53fd60;const _0x45e264=Math['min'](_0x89f25d[_0x49f94b(0x206)],_0x43edc5[_0x49f94b(0x21f)](_0x53fd60,0x2710));while(_0x43edc5['GDKwL'](_0x3319a8,_0x45e264)){const [_0x575307,_0x31346d]=_0x43edc5[_0x49f94b(0x240)](readId,_0x89f25d,_0x3319a8),[_0x1f2729,_0x25ba60]=readVint(_0x89f25d,_0x43edc5['wxBOz'](_0x3319a8,_0x31346d));if(_0x575307===ID_INFO){let _0x23e491=_0x3319a8+_0x31346d+_0x25ba60;const _0x49aaf1=_0x43edc5['OXLIr'](_0x23e491,_0x1f2729);while(_0x23e491<_0x49aaf1){const [_0x3eb946,_0x2ad298]=_0x43edc5['XIeFU'](readId,_0x89f25d,_0x23e491),[_0x277dd6,_0x135653]=_0x43edc5[_0x49f94b(0x21b)](readVint,_0x89f25d,_0x43edc5['nhPiH'](_0x23e491,_0x2ad298));if(_0x43edc5[_0x49f94b(0x227)](_0x3eb946,ID_TIMESTAMP_SCALE))return _0x43edc5[_0x49f94b(0x1f4)](readUint,_0x89f25d,_0x43edc5[_0x49f94b(0x220)](_0x23e491+_0x2ad298,_0x135653),_0x277dd6);_0x23e491+=_0x43edc5['wxBOz'](_0x2ad298,_0x135653)+_0x277dd6;}break;}if(_0x43edc5['EEiQB'](_0x575307,ID_CLUSTER))break;if(_0x43edc5[_0x49f94b(0x21b)](isUnknownSize,_0x1f2729,_0x25ba60))break;_0x3319a8+=_0x43edc5['OXLIr'](_0x31346d,_0x25ba60)+_0x1f2729;}return 0xf4240;}function findFirstClusterOffset(_0x165608,_0x599889){const _0x29fc85=_0x1444,_0x27046a={'QEOlh':function(_0x2443ce,_0x1f6e07){return _0x2443ce===_0x1f6e07;},'SktcR':function(_0x235513,_0x47d60a,_0x57c0dc){return _0x235513(_0x47d60a,_0x57c0dc);},'Ncryu':function(_0x3e1333,_0x21a42a){return _0x3e1333+_0x21a42a;},'bcHJa':function(_0x2e6758,_0x3522e6){return _0x2e6758+_0x3522e6;}};let _0x417e3b=_0x599889;while(_0x417e3b<_0x165608['length']){const [_0x4b62d5,_0x2e5d1d]=readId(_0x165608,_0x417e3b);if(_0x27046a[_0x29fc85(0x241)](_0x4b62d5,ID_CLUSTER))return _0x417e3b;const [_0x389bd5,_0x277093]=_0x27046a[_0x29fc85(0x230)](readVint,_0x165608,_0x27046a['Ncryu'](_0x417e3b,_0x2e5d1d));if(_0x27046a[_0x29fc85(0x230)](isUnknownSize,_0x389bd5,_0x277093))return _0x417e3b;_0x417e3b+=_0x27046a['bcHJa'](_0x2e5d1d,_0x277093)+_0x389bd5;}return _0x165608[_0x29fc85(0x206)];}function findClusterEnd(_0x1ff479,_0x3d25ed,_0x3531be,_0x58de0c){const _0xbc481a=_0x1444,_0x304bb2={'VDyeS':function(_0x4bdd2d,_0x32f73e,_0x198716){return _0x4bdd2d(_0x32f73e,_0x198716);},'FvJkn':function(_0x3cf0ee,_0x5e0741){return _0x3cf0ee+_0x5e0741;}};if(!_0x304bb2[_0xbc481a(0x212)](isUnknownSize,_0x3531be,_0x58de0c))return _0x3d25ed+_0x3531be;const _0x3b73d3=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x52903f=_0x3d25ed;while(_0x52903f<_0x1ff479[_0xbc481a(0x206)]-0x4){const [_0x4d8933,_0x12f641]=_0x304bb2['VDyeS'](readId,_0x1ff479,_0x52903f);if(_0x3b73d3['has'](_0x4d8933))return _0x52903f;const [_0x269c7f,_0x222035]=_0x304bb2['VDyeS'](readVint,_0x1ff479,_0x52903f+_0x12f641);if(isUnknownSize(_0x269c7f,_0x222035))return _0x1ff479[_0xbc481a(0x206)];_0x52903f+=_0x304bb2[_0xbc481a(0x20b)](_0x12f641+_0x222035,_0x269c7f);}return _0x1ff479['length'];}function extractClusters(_0x2bf94f,_0x14408e){const _0x53ead3=_0x1444,_0x555461={'jawQd':function(_0x138c16,_0x5dc026){return _0x138c16===_0x5dc026;},'UPtWL':function(_0x3a9ec2,_0x39af77,_0x1fd785){return _0x3a9ec2(_0x39af77,_0x1fd785);},'PIfdU':function(_0x4bf5ee,_0x55cbc4){return _0x4bf5ee+_0x55cbc4;},'tEOVN':function(_0x56e94b,_0x291918){return _0x56e94b+_0x291918;},'LmRYl':function(_0x106434,_0x3f7bf3,_0x597c5e,_0x3f49b3,_0x5f3481){return _0x106434(_0x3f7bf3,_0x597c5e,_0x3f49b3,_0x5f3481);},'yWIAh':function(_0x4b919d,_0x38a84f,_0x21ce59){return _0x4b919d(_0x38a84f,_0x21ce59);},'yHgwF':function(_0x243b16,_0x1349a0){return _0x243b16+_0x1349a0;},'xQqkg':function(_0x4fd5cf,_0x53bc0f){return _0x4fd5cf+_0x53bc0f;},'CeIgV':function(_0x4c1052,_0x46e139){return _0x4c1052===_0x46e139;},'deRjV':function(_0x26095d,_0x5ce27c){return _0x26095d<_0x5ce27c;},'wfcpn':function(_0x5c3a6d,_0x25a407){return _0x5c3a6d+_0x25a407;},'mRKcN':function(_0x58992a,_0x262c14){return _0x58992a>=_0x262c14;},'CWFGA':function(_0x587892,_0x494f08){return _0x587892+_0x494f08;},'LSbok':function(_0x3f4f61,_0x3c0ca0){return _0x3f4f61===_0x3c0ca0;}},_0x2f0879=[],_0xa3f635=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x302691=0x0;while(_0x302691<_0x2bf94f[_0x53ead3(0x206)]){const _0x1a4677=_0x2bf94f['indexOf'](_0xa3f635,_0x302691);if(_0x555461['jawQd'](_0x1a4677,-0x1))break;const [_0x580283,_0x3421a6]=_0x555461[_0x53ead3(0x1fe)](readId,_0x2bf94f,_0x1a4677);if(_0x580283!==ID_CLUSTER){_0x302691=_0x1a4677+0x1;continue;}const [_0x4bece7,_0x3a6e2b]=_0x555461['UPtWL'](readVint,_0x2bf94f,_0x555461['PIfdU'](_0x1a4677,_0x3421a6)),_0xcc98b2=_0x555461[_0x53ead3(0x202)](_0x1a4677+_0x3421a6,_0x3a6e2b),_0x54f55a=_0x555461[_0x53ead3(0x232)](findClusterEnd,_0x2bf94f,_0xcc98b2,_0x4bece7,_0x3a6e2b);let _0x21e16d=_0xcc98b2,_0x3c7677=0x0,_0x4829c7=0x2,_0x3eed36=![],_0x5b144a=Buffer[_0x53ead3(0x1fd)](0x0),_0x345d5b=Buffer[_0x53ead3(0x1fd)](0x0);while(_0x21e16d<_0x54f55a){const [_0x20b834,_0x5b4608]=_0x555461[_0x53ead3(0x1fe)](readId,_0x2bf94f,_0x21e16d),[_0x69e23,_0x2199c3]=_0x555461[_0x53ead3(0x23a)](readVint,_0x2bf94f,_0x21e16d+_0x5b4608);if(_0x20b834===ID_TIMESTAMP){_0x3c7677=readUint(_0x2bf94f,_0x555461[_0x53ead3(0x1fb)](_0x21e16d+_0x5b4608,_0x2199c3),_0x69e23),_0x4829c7=_0x69e23,_0x3eed36=!![],_0x5b144a=_0x2bf94f['slice'](_0xcc98b2,_0x21e16d);const _0x37a83b=_0x555461['yHgwF'](_0x555461[_0x53ead3(0x21c)](_0x21e16d+_0x5b4608,_0x2199c3),_0x69e23);_0x345d5b=_0x2bf94f['slice'](_0x37a83b,_0x54f55a);break;}if(_0x555461['CeIgV'](_0x20b834,ID_CLUSTER))break;if(isUnknownSize(_0x69e23,_0x2199c3))break;_0x21e16d+=_0x5b4608+_0x2199c3+_0x69e23;}!_0x3eed36&&(_0x345d5b=_0x2bf94f['slice'](_0xcc98b2,_0x54f55a));let _0x3d6fa9=_0x3c7677;_0x21e16d=_0xcc98b2;while(_0x555461[_0x53ead3(0x234)](_0x21e16d,_0x54f55a)){const [_0x5152c8,_0xcc7109]=readId(_0x2bf94f,_0x21e16d),[_0x388522,_0x59f0b0]=readVint(_0x2bf94f,_0x555461['wfcpn'](_0x21e16d,_0xcc7109));if(_0x5152c8===ID_SIMPLE_BLOCK&&_0x555461['mRKcN'](_0x388522,0x4)){const _0x14c3fd=_0x555461[_0x53ead3(0x203)](_0x21e16d,_0xcc7109)+_0x59f0b0,[,_0x246014]=readVint(_0x2bf94f,_0x14c3fd),_0x262eaf=_0x2bf94f['readInt16BE'](_0x14c3fd+_0x246014),_0xc65345=_0x3c7677+_0x262eaf;if(_0xc65345>_0x3d6fa9)_0x3d6fa9=_0xc65345;}if(_0x555461[_0x53ead3(0x214)](_0x5152c8,ID_CLUSTER))break;if(isUnknownSize(_0x388522,_0x59f0b0))break;_0x21e16d+=_0xcc7109+_0x59f0b0+_0x388522;}_0x2f0879['push']({'timestamp':_0x3c7677,'maxTicks':_0x3d6fa9,'bodyBeforeTimestamp':_0x5b144a,'bodyAfterTimestamp':_0x345d5b,'timestampElementSize':_0x4829c7}),_0x302691=_0x54f55a;}return _0x2f0879;}function parseWebm(_0x36f02d){const _0x3a2432=_0x1444,_0x2cd9d9={'bpVJm':function(_0x575f13,_0x5538ef,_0x2b4039){return _0x575f13(_0x5538ef,_0x2b4039);},'XnaLZ':function(_0x47f163,_0x34186b){return _0x47f163!==_0x34186b;},'AtzUx':function(_0x49473c,_0x22824f){return _0x49473c+_0x22824f;},'drePg':function(_0x60bdc0,_0x17b4bc,_0x1029ce){return _0x60bdc0(_0x17b4bc,_0x1029ce);},'Pfbnb':function(_0xed7583,_0x3686e9){return _0xed7583>_0x3686e9;}};let _0x2fccbc=0x0;const [,_0x262d8f]=readId(_0x36f02d,_0x2fccbc),[_0x21f2eb,_0x2c41e3]=_0x2cd9d9['bpVJm'](readVint,_0x36f02d,_0x2fccbc+_0x262d8f);_0x2fccbc+=_0x262d8f+_0x2c41e3+_0x21f2eb;const [_0x584edd,_0x11a634]=readId(_0x36f02d,_0x2fccbc);if(_0x2cd9d9[_0x3a2432(0x213)](_0x584edd,ID_SEGMENT))return null;const [,_0x3c1cc2]=_0x2cd9d9[_0x3a2432(0x21a)](readVint,_0x36f02d,_0x2cd9d9[_0x3a2432(0x1fa)](_0x2fccbc,_0x11a634)),_0x270705=_0x2cd9d9[_0x3a2432(0x1fa)](_0x2fccbc+_0x11a634,_0x3c1cc2),_0x550027=findTimestampScale(_0x36f02d,_0x270705),_0x4931a3=_0x2cd9d9['drePg'](findFirstClusterOffset,_0x36f02d,_0x270705),_0x5caf93=_0x36f02d['slice'](0x0,_0x4931a3),_0x307fe1=extractClusters(_0x36f02d,_0x550027);let _0x315dce=0x0;for(const _0x3e1951 of _0x307fe1){if(_0x2cd9d9[_0x3a2432(0x219)](_0x3e1951['maxTicks'],_0x315dce))_0x315dce=_0x3e1951['maxTicks'];}return{'header':_0x5caf93,'clusters':_0x307fe1,'timestampScale':_0x550027,'maxTimestampTicks':_0x315dce};}function buildCluster(_0x3f23f7,_0x4ea04c,_0x30e9dd){const _0x21d72c=_0x1444,_0x4d41b2={'fbdkO':function(_0x2fdab5,_0x34f62a,_0x4a21e2){return _0x2fdab5(_0x34f62a,_0x4a21e2);},'FMDZJ':function(_0x22533d,_0x10cd2f){return _0x22533d(_0x10cd2f);}},_0x83bd75=Buffer[_0x21d72c(0x1ff)]([0x1f,0x43,0xb6,0x75]),_0x50b908=Math['max'](0x4,uintSize(_0x3f23f7)),_0x88c00d=Buffer[_0x21d72c(0x229)]([Buffer['from']([ID_TIMESTAMP]),writeVint(_0x50b908),_0x4d41b2[_0x21d72c(0x215)](writeUint,_0x3f23f7,_0x50b908)]),_0x7a5b30=Buffer['concat']([_0x4ea04c,_0x88c00d,_0x30e9dd]),_0x17669a=_0x4d41b2[_0x21d72c(0x205)](writeVint,_0x7a5b30['length']);return Buffer['concat']([_0x83bd75,_0x17669a,_0x7a5b30]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x2ab91a){const _0x3876a5=_0x1444,_0x363c8b={'fArqT':function(_0x50b921,_0x73550e){return _0x50b921+_0x73550e;},'PdWLA':function(_0x328822,_0x2bdd1f){return _0x328822+_0x2bdd1f;},'hbDnV':function(_0x1830d7,_0x38d135){return _0x1830d7+_0x38d135;},'UfONY':function(_0x8dc18b,_0x5cb6d9,_0x460249){return _0x8dc18b(_0x5cb6d9,_0x460249);},'KEggb':function(_0x5b40b2,_0x3393ee){return _0x5b40b2(_0x3393ee);},'UtEmn':function(_0x13db08,_0x222400){return _0x13db08+_0x222400;},'UNleD':function(_0x133f75,_0x1191c2){return _0x133f75===_0x1191c2;},'vtrSo':function(_0x3b11f9,_0x1c9aae){return _0x3b11f9+_0x1c9aae;},'hgdOg':function(_0x346007,_0x1d6dcd){return _0x346007+_0x1d6dcd;},'AkvEO':function(_0x33a1cf,_0x5c2449){return _0x33a1cf<_0x5c2449;},'ZyLOV':function(_0x4ce141,_0x47c71e,_0xe5a5a2){return _0x4ce141(_0x47c71e,_0xe5a5a2);},'PrZMm':function(_0x29d130,_0x30b0b5){return _0x29d130!==_0x30b0b5;},'fwzKz':function(_0xa03005,_0x2293a6){return _0xa03005+_0x2293a6;}},_0x153218=Buffer[_0x3876a5(0x1ff)](_0x2ab91a);let _0x504550=0x0;const [,_0x5b9749]=readId(_0x153218,_0x504550),[_0x54b7ce,_0x29f7bf]=readVint(_0x153218,_0x363c8b[_0x3876a5(0x20f)](_0x504550,_0x5b9749)),_0x5d4b06=_0x363c8b['PdWLA'](_0x363c8b['hbDnV'](_0x504550+_0x5b9749,_0x29f7bf),_0x54b7ce),[,_0x371597]=_0x363c8b['UfONY'](readId,_0x153218,_0x5d4b06),[,_0x2d1180]=readVint(_0x153218,_0x363c8b['fArqT'](_0x5d4b06,_0x371597)),_0x404093=_0x5d4b06+_0x371597+_0x2d1180,_0x513241=_0x363c8b[_0x3876a5(0x1f8)](writeUnknownSizeVint,_0x2d1180);_0x513241['copy'](_0x153218,_0x363c8b['PdWLA'](_0x5d4b06,_0x371597));let _0x228a35=_0x404093;const _0x1d8968=Math[_0x3876a5(0x22b)](_0x153218[_0x3876a5(0x206)],_0x404093+0x2710);while(_0x228a35<_0x1d8968){const [_0x14ca2c,_0x23d4be]=readId(_0x153218,_0x228a35),[_0x578661,_0x4c53f3]=readVint(_0x153218,_0x363c8b[_0x3876a5(0x20c)](_0x228a35,_0x23d4be));if(_0x14ca2c===ID_CLUSTER)break;if(_0x363c8b[_0x3876a5(0x207)](isUnknownSize,_0x578661,_0x4c53f3))break;if(_0x363c8b[_0x3876a5(0x201)](_0x14ca2c,ID_INFO)){const _0x18f4d1=_0x363c8b[_0x3876a5(0x231)](_0x363c8b[_0x3876a5(0x226)](_0x228a35,_0x23d4be),_0x4c53f3),_0x4e1522=_0x18f4d1+_0x578661,_0x2737d5=[];let _0x438fec=_0x18f4d1;while(_0x363c8b['AkvEO'](_0x438fec,_0x4e1522)){const [_0x2d5e0f,_0x51a256]=readId(_0x153218,_0x438fec),[_0x32a07f,_0x2e8e22]=_0x363c8b['ZyLOV'](readVint,_0x153218,_0x363c8b['PdWLA'](_0x438fec,_0x51a256)),_0x261e1f=_0x51a256+_0x2e8e22+_0x32a07f;_0x363c8b[_0x3876a5(0x23c)](_0x2d5e0f,ID_DURATION)&&_0x2737d5[_0x3876a5(0x210)](_0x153218[_0x3876a5(0x1f5)](_0x438fec,_0x363c8b['fArqT'](_0x438fec,_0x261e1f))),_0x438fec+=_0x261e1f;}const _0xadcc0c=Buffer[_0x3876a5(0x229)](_0x2737d5),_0x366f5d=Buffer[_0x3876a5(0x229)]([_0x153218['slice'](_0x228a35,_0x228a35+_0x23d4be),_0x363c8b[_0x3876a5(0x222)](writeVint,_0xadcc0c['length'],_0x4c53f3)]);return Buffer[_0x3876a5(0x229)]([_0x153218[_0x3876a5(0x1f5)](0x0,_0x228a35),_0x366f5d,_0xadcc0c,_0x153218[_0x3876a5(0x1f5)](_0x4e1522)]);}_0x228a35+=_0x363c8b['fwzKz'](_0x23d4be+_0x4c53f3,_0x578661);}return _0x153218;}export function stitchWebmFiles(_0x3326f7,_0x254291){const _0x5bf46f=_0x1444,_0x145ce3={'QSPUg':function(_0xf8bb71,_0x329533){return _0xf8bb71(_0x329533);},'dnUrl':function(_0x1c689b,_0x441fa4){return _0x1c689b===_0x441fa4;},'wHkgQ':function(_0x4e8bbf,_0x4bca89){return _0x4e8bbf+_0x4bca89;},'JHhIb':function(_0x2f6102,_0xfb186e,_0x27f3b3){return _0x2f6102(_0xfb186e,_0x27f3b3);}};if(_0x3326f7[_0x5bf46f(0x206)]<=0x1)return![];const _0x228b24=[];for(const _0x32728e of _0x3326f7){const _0x5de80a=_0x145ce3['QSPUg'](readFileSync,_0x32728e),_0x1d61f4=_0x145ce3['QSPUg'](parseWebm,_0x5de80a);if(!_0x1d61f4||_0x145ce3[_0x5bf46f(0x224)](_0x1d61f4[_0x5bf46f(0x22c)][_0x5bf46f(0x206)],0x0))return![];_0x228b24[_0x5bf46f(0x210)](_0x1d61f4);}const _0x1f2b50=_0x228b24[0x0],_0x34ea63=_0x145ce3[_0x5bf46f(0x239)](rebuildHeaderWithoutDuration,_0x1f2b50[_0x5bf46f(0x204)]),_0x3017ec=[_0x34ea63];let _0x3a8d17=0x0;for(let _0xead7f8=0x0;_0xead7f8<_0x228b24['length'];_0xead7f8++){const _0x2361b8=_0x228b24[_0xead7f8];for(const _0x4df80f of _0x2361b8[_0x5bf46f(0x22c)]){const _0xbac1ff=_0x145ce3['wHkgQ'](_0x4df80f['timestamp'],_0x3a8d17);_0x3017ec['push'](buildCluster(_0xbac1ff,_0x4df80f[_0x5bf46f(0x23e)],_0x4df80f[_0x5bf46f(0x20d)]));}const _0x29ab9f=0x1e;_0x3a8d17+=_0x2361b8[_0x5bf46f(0x243)]+_0x29ab9f;}return _0x145ce3[_0x5bf46f(0x228)](writeFileSync,_0x254291,Buffer['concat'](_0x3017ec)),!![];}if(process[_0x504252(0x209)][0x1]?.['endsWith'](_0x504252(0x238))||process[_0x504252(0x209)][0x1]?.[_0x504252(0x22f)](_0x504252(0x20a))){const args=process[_0x504252(0x209)][_0x504252(0x1f5)](0x2);args[_0x504252(0x206)]<0x3&&(console[_0x504252(0x1f9)](_0x504252(0x1f6)),process['exit'](0x1));const output=args[args[_0x504252(0x206)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log']('Stitched\x20'+inputs['length']+'\x20files\x20->\x20'+output):console[_0x504252(0x242)](_0x504252(0x208));}
|
|
1
|
+
const _0x3f05c2=_0x3c03;(function(_0x506313,_0x26c202){const _0x703c71=_0x3c03,_0x4225e6=_0x506313();while(!![]){try{const _0x26a6b3=parseInt(_0x703c71(0x18f))/0x1+parseInt(_0x703c71(0x178))/0x2*(-parseInt(_0x703c71(0x164))/0x3)+parseInt(_0x703c71(0x167))/0x4+-parseInt(_0x703c71(0x196))/0x5*(parseInt(_0x703c71(0x17c))/0x6)+-parseInt(_0x703c71(0x15a))/0x7*(-parseInt(_0x703c71(0x159))/0x8)+-parseInt(_0x703c71(0x161))/0x9+parseInt(_0x703c71(0x163))/0xa;if(_0x26a6b3===_0x26c202)break;else _0x4225e6['push'](_0x4225e6['shift']());}catch(_0x37b6f1){_0x4225e6['push'](_0x4225e6['shift']());}}}(_0x2a67,0x8c04e));import{readFileSync,writeFileSync}from'fs';function _0x3c03(_0x5b7485,_0x154161){_0x5b7485=_0x5b7485-0x150;const _0x2a6723=_0x2a67();let _0x3c0333=_0x2a6723[_0x5b7485];return _0x3c0333;}const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x2c3974,_0x309526){const _0x5609d4=_0x3c03,_0x8a75da={'PqAEY':function(_0x3785a9,_0x1434d4){return _0x3785a9>=_0x1434d4;},'ZxmYO':function(_0x41a113,_0x233a09){return _0x41a113&_0x233a09;},'NxbcM':function(_0x486ca2,_0x587ab7){return _0x486ca2>_0x587ab7;},'UVpoa':function(_0x3365aa,_0x173c3b){return _0x3365aa-_0x173c3b;},'TXvBe':function(_0x354ea1,_0x2409d4){return _0x354ea1<_0x2409d4;}};if(_0x8a75da[_0x5609d4(0x162)](_0x309526,_0x2c3974['length']))return[0x0,0x0];const _0x186b29=_0x2c3974[_0x309526];let _0x2eaf01=0x1,_0x4bd527=0x80;while(_0x2eaf01<=0x8&&!_0x8a75da['ZxmYO'](_0x186b29,_0x4bd527)){_0x2eaf01++,_0x4bd527>>=0x1;}if(_0x8a75da['NxbcM'](_0x309526+_0x2eaf01,_0x2c3974['length']))return[0x0,0x0];let _0x1aa959=_0x8a75da['ZxmYO'](_0x186b29,_0x8a75da[_0x5609d4(0x17d)](_0x4bd527,0x1));for(let _0x33e5be=0x1;_0x8a75da[_0x5609d4(0x18e)](_0x33e5be,_0x2eaf01);_0x33e5be++){_0x1aa959=_0x1aa959*0x100+_0x2c3974[_0x309526+_0x33e5be];}return[_0x1aa959,_0x2eaf01];}function readId(_0xd18124,_0x53d24f){const _0x4a2898=_0x3c03,_0x5a8a09={'esgzK':function(_0x3e9183,_0x49c59a){return _0x3e9183>=_0x49c59a;},'oAisO':function(_0x229664,_0x40e6e0){return _0x229664>=_0x40e6e0;},'JiLha':function(_0x4f4821,_0x2b197e){return _0x4f4821>=_0x2b197e;},'aPWgR':function(_0x63e9eb,_0x4a978f){return _0x63e9eb+_0x4a978f;},'lFbsO':function(_0x5e337e,_0x4ba3c6){return _0x5e337e*_0x4ba3c6;}};if(_0x5a8a09[_0x4a2898(0x190)](_0x53d24f,_0xd18124[_0x4a2898(0x16c)]))return[0x0,0x0];const _0xaa0132=_0xd18124[_0x53d24f];let _0x3b8d01;if(_0x5a8a09['oAisO'](_0xaa0132,0x80))_0x3b8d01=0x1;else{if(_0xaa0132>=0x40)_0x3b8d01=0x2;else{if(_0xaa0132>=0x20)_0x3b8d01=0x3;else{if(_0x5a8a09[_0x4a2898(0x187)](_0xaa0132,0x10))_0x3b8d01=0x4;else return[_0xaa0132,0x1];}}}if(_0x53d24f+_0x3b8d01>_0xd18124['length'])return[0x0,0x0];let _0x1ab728=0x0;for(let _0x5309eb=0x0;_0x5309eb<_0x3b8d01;_0x5309eb++){_0x1ab728=_0x5a8a09['aPWgR'](_0x5a8a09['lFbsO'](_0x1ab728,0x100),_0xd18124[_0x53d24f+_0x5309eb]);}return[_0x1ab728,_0x3b8d01];}function readUint(_0x58f09d,_0x2b9099,_0x226a74){const _0x300904=_0x3c03,_0x15f6df={'Plvlw':function(_0x12aa62,_0x26ca07){return _0x12aa62<_0x26ca07;},'hUzpb':function(_0x53334d,_0x2bf53c){return _0x53334d*_0x2bf53c;},'xfsnC':function(_0x1bdfb1,_0x5169cc){return _0x1bdfb1+_0x5169cc;}};let _0x4b1ffa=0x0;for(let _0x3cd8d7=0x0;_0x15f6df['Plvlw'](_0x3cd8d7,_0x226a74);_0x3cd8d7++){_0x4b1ffa=_0x15f6df[_0x300904(0x154)](_0x4b1ffa,0x100)+_0x58f09d[_0x15f6df['xfsnC'](_0x2b9099,_0x3cd8d7)];}return _0x4b1ffa;}function isUnknownSize(_0x4d4451,_0x45836e){const _0x3aca52={'mGiRB':function(_0x39aa75,_0x2c2fa3){return _0x39aa75-_0x2c2fa3;}};return _0x4d4451===_0x3aca52['mGiRB'](Math['pow'](0x2,0x7*_0x45836e),0x1);}function writeVint(_0x23e7d6,_0xd28abd){const _0x34d7d8=_0x3c03,_0x2a0d2c={'DbTBX':function(_0x102081,_0x329209){return _0x102081<_0x329209;},'QBLKe':function(_0x41e9e5,_0x44d708){return _0x41e9e5-_0x44d708;},'ibtCp':function(_0x73a69d,_0x44a296){return _0x73a69d*_0x44a296;},'scNtB':function(_0x6e2365,_0x34d17d){return _0x6e2365>=_0x34d17d;},'saSkn':function(_0x35d423,_0x248c45){return _0x35d423/_0x248c45;},'imZwF':function(_0x148090,_0x1e1c0f){return _0x148090<<_0x1e1c0f;}};let _0x2af155=_0xd28abd||0x1;while(_0x2a0d2c[_0x34d7d8(0x169)](_0x2a0d2c['QBLKe'](Math[_0x34d7d8(0x18d)](0x2,_0x2a0d2c[_0x34d7d8(0x192)](0x7,_0x2af155)),0x2),_0x23e7d6))_0x2af155++;const _0x1731af=Buffer[_0x34d7d8(0x180)](_0x2af155);for(let _0x2b292c=_0x2af155-0x1;_0x2a0d2c['scNtB'](_0x2b292c,0x0);_0x2b292c--){_0x1731af[_0x2b292c]=_0x23e7d6&0xff,_0x23e7d6=Math[_0x34d7d8(0x150)](_0x2a0d2c[_0x34d7d8(0x166)](_0x23e7d6,0x100));}return _0x1731af[0x0]|=_0x2a0d2c['imZwF'](0x1,0x8-_0x2af155),_0x1731af;}function writeUint(_0x201a4c,_0x398f13){const _0xe81076=_0x3c03,_0x6e5b3d={'NpRth':function(_0x175319,_0x343004){return _0x175319>=_0x343004;},'dEdIf':function(_0x140695,_0x5b5b64){return _0x140695/_0x5b5b64;}},_0x40bb27=Buffer['alloc'](_0x398f13);for(let _0x3e34cf=_0x398f13-0x1;_0x6e5b3d[_0xe81076(0x184)](_0x3e34cf,0x0);_0x3e34cf--){_0x40bb27[_0x3e34cf]=_0x201a4c&0xff,_0x201a4c=Math[_0xe81076(0x150)](_0x6e5b3d['dEdIf'](_0x201a4c,0x100));}return _0x40bb27;}function writeUnknownSizeVint(_0x3b5778){const _0x4d29f5=_0x3c03,_0x219897={'ZHfNl':function(_0x19ff86,_0x73d558){return _0x19ff86>>_0x73d558;}},_0x5db6b5=Buffer[_0x4d29f5(0x180)](_0x3b5778,0xff);return _0x5db6b5[0x0]=_0x219897['ZHfNl'](0xff,_0x3b5778-0x1),_0x5db6b5;}function uintSize(_0x19ae85){const _0xe0b5a1=_0x3c03,_0x3156f0={'cKkLz':function(_0x498b29,_0x1139d3){return _0x498b29/_0x1139d3;}};if(_0x19ae85===0x0)return 0x1;let _0x39316c=0x0,_0x32910e=_0x19ae85;while(_0x32910e>0x0){_0x39316c++,_0x32910e=Math[_0xe0b5a1(0x150)](_0x3156f0['cKkLz'](_0x32910e,0x100));}return _0x39316c;}function findTimestampScale(_0x4c4369,_0x3ead09){const _0x3d1dbc=_0x3c03,_0x279e60={'hnzJR':function(_0x21918b,_0x564c29){return _0x21918b+_0x564c29;},'vdILK':function(_0x30b17e,_0x275426){return _0x30b17e===_0x275426;},'plasP':function(_0x2db20c,_0x59f4de){return _0x2db20c+_0x59f4de;},'wIudx':function(_0x5ae17b,_0x815d68,_0x3c2662){return _0x5ae17b(_0x815d68,_0x3c2662);},'Ltxrj':function(_0x453409,_0x3b7936){return _0x453409+_0x3b7936;},'nDtjE':function(_0x5aaed4,_0x57c5d4){return _0x5aaed4===_0x57c5d4;},'xiMZx':function(_0x401fee,_0x3e2a4e){return _0x401fee+_0x3e2a4e;},'SEmQa':function(_0xf4c731,_0x30435e){return _0xf4c731+_0x30435e;},'RYDYY':function(_0x1ebee9,_0x1ae2ec){return _0x1ebee9+_0x1ae2ec;}};let _0x85188e=_0x3ead09;const _0x1092ac=Math[_0x3d1dbc(0x15c)](_0x4c4369['length'],_0x3ead09+0x2710);while(_0x85188e<_0x1092ac){const [_0x4e79a9,_0x254dd0]=readId(_0x4c4369,_0x85188e),[_0x207e25,_0x2e358d]=readVint(_0x4c4369,_0x279e60['hnzJR'](_0x85188e,_0x254dd0));if(_0x279e60['vdILK'](_0x4e79a9,ID_INFO)){let _0x575d1b=_0x85188e+_0x254dd0+_0x2e358d;const _0x22b143=_0x279e60[_0x3d1dbc(0x15e)](_0x575d1b,_0x207e25);while(_0x575d1b<_0x22b143){const [_0x3e7746,_0x3539c3]=readId(_0x4c4369,_0x575d1b),[_0x355a0f,_0x3aa988]=_0x279e60[_0x3d1dbc(0x191)](readVint,_0x4c4369,_0x279e60[_0x3d1dbc(0x189)](_0x575d1b,_0x3539c3));if(_0x279e60[_0x3d1dbc(0x171)](_0x3e7746,ID_TIMESTAMP_SCALE))return readUint(_0x4c4369,_0x279e60['xiMZx'](_0x575d1b,_0x3539c3)+_0x3aa988,_0x355a0f);_0x575d1b+=_0x279e60['SEmQa'](_0x279e60['RYDYY'](_0x3539c3,_0x3aa988),_0x355a0f);}break;}if(_0x4e79a9===ID_CLUSTER)break;if(isUnknownSize(_0x207e25,_0x2e358d))break;_0x85188e+=_0x279e60['plasP'](_0x254dd0,_0x2e358d)+_0x207e25;}return 0xf4240;}function findFirstClusterOffset(_0x46f347,_0x536618){const _0xea5eac=_0x3c03,_0x55fbcb={'pYxJr':function(_0x1767f6,_0x561c93){return _0x1767f6<_0x561c93;},'KCKFg':function(_0x545054,_0xb05bdf,_0x2361b4){return _0x545054(_0xb05bdf,_0x2361b4);},'CCbQi':function(_0x57c031,_0x1aaa41){return _0x57c031===_0x1aaa41;},'tsoDS':function(_0x22a780,_0x1630e3){return _0x22a780+_0x1630e3;},'HRvmH':function(_0x295b72,_0x30bdd2){return _0x295b72+_0x30bdd2;},'qziap':function(_0x36c129,_0x23727d){return _0x36c129+_0x23727d;}};let _0x276190=_0x536618;while(_0x55fbcb[_0xea5eac(0x186)](_0x276190,_0x46f347['length'])){const [_0x3f265a,_0xe2bd95]=_0x55fbcb[_0xea5eac(0x198)](readId,_0x46f347,_0x276190);if(_0x55fbcb[_0xea5eac(0x151)](_0x3f265a,ID_CLUSTER))return _0x276190;const [_0x459e3f,_0x3e3994]=readVint(_0x46f347,_0x55fbcb['tsoDS'](_0x276190,_0xe2bd95));if(isUnknownSize(_0x459e3f,_0x3e3994))return _0x276190;_0x276190+=_0x55fbcb[_0xea5eac(0x177)](_0x55fbcb[_0xea5eac(0x176)](_0xe2bd95,_0x3e3994),_0x459e3f);}return _0x46f347['length'];}function findClusterEnd(_0x5153aa,_0x3fe888,_0x50346e,_0x1fdfda){const _0x4222e8=_0x3c03,_0x114d35={'ygGDW':function(_0x81730e,_0x9df6ad,_0x569fa9){return _0x81730e(_0x9df6ad,_0x569fa9);},'TUhDD':function(_0x109c62,_0x281006){return _0x109c62<_0x281006;},'ejUzM':function(_0x431ef5,_0x5d87de){return _0x431ef5-_0x5d87de;},'LtabT':function(_0x52c515,_0x46f6cb,_0x4ce183){return _0x52c515(_0x46f6cb,_0x4ce183);},'kbUYJ':function(_0x23e73d,_0x285388,_0x5936e0){return _0x23e73d(_0x285388,_0x5936e0);},'GehTQ':function(_0x42a1f3,_0x422685,_0x77403a){return _0x42a1f3(_0x422685,_0x77403a);},'wKoXN':function(_0x13c190,_0x49b578){return _0x13c190+_0x49b578;}};if(!_0x114d35['ygGDW'](isUnknownSize,_0x50346e,_0x1fdfda))return _0x3fe888+_0x50346e;const _0x247b16=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x3855c2=_0x3fe888;while(_0x114d35[_0x4222e8(0x158)](_0x3855c2,_0x114d35[_0x4222e8(0x157)](_0x5153aa['length'],0x4))){const [_0x2843a1,_0x361992]=_0x114d35[_0x4222e8(0x17b)](readId,_0x5153aa,_0x3855c2);if(_0x247b16['has'](_0x2843a1))return _0x3855c2;const [_0xfffb9b,_0x59c412]=_0x114d35[_0x4222e8(0x153)](readVint,_0x5153aa,_0x3855c2+_0x361992);if(_0x114d35['GehTQ'](isUnknownSize,_0xfffb9b,_0x59c412))return _0x5153aa['length'];_0x3855c2+=_0x114d35[_0x4222e8(0x16e)](_0x361992+_0x59c412,_0xfffb9b);}return _0x5153aa['length'];}function extractClusters(_0x29c90b,_0x1b0411){const _0x4777b5=_0x3c03,_0x48b03d={'YrtAd':function(_0x206ea2,_0xf4c15a){return _0x206ea2+_0xf4c15a;},'fbYSx':function(_0x5bc25a,_0x4bfa44,_0x905523){return _0x5bc25a(_0x4bfa44,_0x905523);},'pftwR':function(_0x523c21,_0x5a7efc){return _0x523c21+_0x5a7efc;},'cDKrA':function(_0x2591fc,_0x2c1875,_0x299f81,_0x5b2637,_0x3e64f9){return _0x2591fc(_0x2c1875,_0x299f81,_0x5b2637,_0x3e64f9);},'qiTzc':function(_0x257a0a,_0x1f0389){return _0x257a0a<_0x1f0389;},'EBLkq':function(_0xb9bc3d,_0x36aea0,_0x44a16a){return _0xb9bc3d(_0x36aea0,_0x44a16a);},'vprYa':function(_0x3c410a,_0x40a8e5){return _0x3c410a+_0x40a8e5;},'IEIJE':function(_0x272631,_0x3b3e93,_0xde88cf,_0xce9ca5){return _0x272631(_0x3b3e93,_0xde88cf,_0xce9ca5);},'MDnrY':function(_0x15d473,_0x5f0d6b){return _0x15d473+_0x5f0d6b;},'xRyCS':function(_0xad76bf,_0x475c14){return _0xad76bf===_0x475c14;},'nHVaY':function(_0x37ae82,_0x46420f,_0x5df8fb){return _0x37ae82(_0x46420f,_0x5df8fb);},'qxGQW':function(_0x4932ba,_0x1ba5bc,_0x22813b){return _0x4932ba(_0x1ba5bc,_0x22813b);},'kZlHV':function(_0x3d570d,_0x25e4d5){return _0x3d570d+_0x25e4d5;}},_0x18036b=[],_0x1f4042=Buffer[_0x4777b5(0x165)]([0x1f,0x43,0xb6,0x75]);let _0x373580=0x0;while(_0x373580<_0x29c90b['length']){const _0x4a7fdd=_0x29c90b['indexOf'](_0x1f4042,_0x373580);if(_0x4a7fdd===-0x1)break;const [_0x5d369b,_0xdae35a]=readId(_0x29c90b,_0x4a7fdd);if(_0x5d369b!==ID_CLUSTER){_0x373580=_0x48b03d[_0x4777b5(0x197)](_0x4a7fdd,0x1);continue;}const [_0x47e726,_0x316797]=_0x48b03d['fbYSx'](readVint,_0x29c90b,_0x48b03d[_0x4777b5(0x197)](_0x4a7fdd,_0xdae35a)),_0x5f145f=_0x48b03d[_0x4777b5(0x15d)](_0x48b03d[_0x4777b5(0x15d)](_0x4a7fdd,_0xdae35a),_0x316797),_0x407c0f=_0x48b03d['cDKrA'](findClusterEnd,_0x29c90b,_0x5f145f,_0x47e726,_0x316797);let _0x2c06e4=_0x5f145f,_0x103a86=0x0,_0x3e179d=0x2,_0x123476=![],_0x30e42f=Buffer[_0x4777b5(0x180)](0x0),_0x5ba3f2=Buffer[_0x4777b5(0x180)](0x0);while(_0x48b03d[_0x4777b5(0x18b)](_0x2c06e4,_0x407c0f)){const [_0x505364,_0x4fe937]=readId(_0x29c90b,_0x2c06e4),[_0x38d323,_0x113571]=_0x48b03d['EBLkq'](readVint,_0x29c90b,_0x48b03d['vprYa'](_0x2c06e4,_0x4fe937));if(_0x505364===ID_TIMESTAMP){_0x103a86=_0x48b03d[_0x4777b5(0x16b)](readUint,_0x29c90b,_0x48b03d['vprYa'](_0x2c06e4+_0x4fe937,_0x113571),_0x38d323),_0x3e179d=_0x38d323,_0x123476=!![],_0x30e42f=_0x29c90b['slice'](_0x5f145f,_0x2c06e4);const _0x3a6d9f=_0x48b03d['pftwR'](_0x48b03d[_0x4777b5(0x17f)](_0x2c06e4,_0x4fe937),_0x113571)+_0x38d323;_0x5ba3f2=_0x29c90b['slice'](_0x3a6d9f,_0x407c0f);break;}if(_0x48b03d[_0x4777b5(0x152)](_0x505364,ID_CLUSTER))break;if(_0x48b03d['nHVaY'](isUnknownSize,_0x38d323,_0x113571))break;_0x2c06e4+=_0x48b03d['pftwR'](_0x4fe937+_0x113571,_0x38d323);}!_0x123476&&(_0x5ba3f2=_0x29c90b[_0x4777b5(0x170)](_0x5f145f,_0x407c0f));let _0x34d304=_0x103a86;_0x2c06e4=_0x5f145f;while(_0x2c06e4<_0x407c0f){const [_0x495607,_0x2065ed]=readId(_0x29c90b,_0x2c06e4),[_0x43da1d,_0x22594f]=readVint(_0x29c90b,_0x2c06e4+_0x2065ed);if(_0x495607===ID_SIMPLE_BLOCK&&_0x43da1d>=0x4){const _0x511dc8=_0x48b03d[_0x4777b5(0x197)](_0x2c06e4+_0x2065ed,_0x22594f),[,_0x71257]=_0x48b03d[_0x4777b5(0x18c)](readVint,_0x29c90b,_0x511dc8),_0x4ab92c=_0x29c90b['readInt16BE'](_0x48b03d['kZlHV'](_0x511dc8,_0x71257)),_0x41c5ac=_0x103a86+_0x4ab92c;if(_0x41c5ac>_0x34d304)_0x34d304=_0x41c5ac;}if(_0x495607===ID_CLUSTER)break;if(_0x48b03d['EBLkq'](isUnknownSize,_0x43da1d,_0x22594f))break;_0x2c06e4+=_0x48b03d[_0x4777b5(0x15d)](_0x48b03d['vprYa'](_0x2065ed,_0x22594f),_0x43da1d);}_0x18036b['push']({'timestamp':_0x103a86,'maxTicks':_0x34d304,'bodyBeforeTimestamp':_0x30e42f,'bodyAfterTimestamp':_0x5ba3f2,'timestampElementSize':_0x3e179d}),_0x373580=_0x407c0f;}return _0x18036b;}function parseWebm(_0x27be81){const _0x1a7b98=_0x3c03,_0x65c7c4={'bYFMH':function(_0x2b5f47,_0x16277b){return _0x2b5f47+_0x16277b;},'BcqxP':function(_0x1d9001,_0x28ee48,_0x14bff3){return _0x1d9001(_0x28ee48,_0x14bff3);},'pSLfb':function(_0x137493,_0x3741d9){return _0x137493!==_0x3741d9;},'sVcZa':function(_0x213a36,_0x2f06ba,_0x1cb638){return _0x213a36(_0x2f06ba,_0x1cb638);}};let _0x5a90bc=0x0;const [,_0x354b86]=readId(_0x27be81,_0x5a90bc),[_0x29933e,_0x1ac749]=readVint(_0x27be81,_0x5a90bc+_0x354b86);_0x5a90bc+=_0x65c7c4[_0x1a7b98(0x174)](_0x65c7c4['bYFMH'](_0x354b86,_0x1ac749),_0x29933e);const [_0x866da9,_0x566439]=_0x65c7c4['BcqxP'](readId,_0x27be81,_0x5a90bc);if(_0x65c7c4['pSLfb'](_0x866da9,ID_SEGMENT))return null;const [,_0x56bf7e]=_0x65c7c4[_0x1a7b98(0x193)](readVint,_0x27be81,_0x65c7c4['bYFMH'](_0x5a90bc,_0x566439)),_0x59cc65=_0x5a90bc+_0x566439+_0x56bf7e,_0x2e09ee=_0x65c7c4[_0x1a7b98(0x193)](findTimestampScale,_0x27be81,_0x59cc65),_0x33fe3c=findFirstClusterOffset(_0x27be81,_0x59cc65),_0x993dea=_0x27be81['slice'](0x0,_0x33fe3c),_0x5c812a=_0x65c7c4[_0x1a7b98(0x182)](extractClusters,_0x27be81,_0x2e09ee);let _0x212ad5=0x0;for(const _0x437de8 of _0x5c812a){if(_0x437de8[_0x1a7b98(0x15b)]>_0x212ad5)_0x212ad5=_0x437de8[_0x1a7b98(0x15b)];}return{'header':_0x993dea,'clusters':_0x5c812a,'timestampScale':_0x2e09ee,'maxTimestampTicks':_0x212ad5};}function buildCluster(_0x199dfa,_0x389860,_0x592ab9){const _0x37cd51=_0x3c03,_0x9e9313={'hCMFy':function(_0x189525,_0x411823){return _0x189525(_0x411823);},'iiRNG':function(_0xe2fb59,_0x431de6,_0xddb3af){return _0xe2fb59(_0x431de6,_0xddb3af);},'EqyuV':function(_0x472d16,_0x238d7c){return _0x472d16(_0x238d7c);}},_0x3808c6=Buffer[_0x37cd51(0x165)]([0x1f,0x43,0xb6,0x75]),_0x22e733=Math[_0x37cd51(0x18a)](0x4,_0x9e9313['hCMFy'](uintSize,_0x199dfa)),_0x490358=Buffer[_0x37cd51(0x181)]([Buffer[_0x37cd51(0x165)]([ID_TIMESTAMP]),_0x9e9313['hCMFy'](writeVint,_0x22e733),_0x9e9313['iiRNG'](writeUint,_0x199dfa,_0x22e733)]),_0x2edde=Buffer['concat']([_0x389860,_0x490358,_0x592ab9]),_0x28338d=_0x9e9313['EqyuV'](writeVint,_0x2edde['length']);return Buffer[_0x37cd51(0x181)]([_0x3808c6,_0x28338d,_0x2edde]);}function _0x2a67(){const _0x4ce25c=['TUhDD','296qNEiFm','189770UrosyE','maxTicks','min','pftwR','plasP','ltTht','GnBZk','5824719SGZEhw','PqAEY','6830850OsJXSs','3FiJPLR','from','saSkn','255652sXLdcU','xGkXO','DbTBX','czWjj','IEIJE','length','XcnUP','wKoXN','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','slice','nDtjE','bodyAfterTimestamp','argv','bYFMH','eOBLk','qziap','HRvmH','2240336Honluh','clusters','Joqvy','LtabT','30rCweHP','UVpoa','fxzFx','MDnrY','alloc','concat','sVcZa','log','NpRth','DRMJI','pYxJr','JiLha','UEdGI','Ltxrj','max','qiTzc','qxGQW','pow','TXvBe','1069494yqbDMX','esgzK','wIudx','ibtCp','BcqxP','stitchWebmFiles.ts','JfiLN','478685mkxINO','YrtAd','KCKFg','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','floor','CCbQi','xRyCS','kbUYJ','hUzpb','endsWith','header','ejUzM'];_0x2a67=function(){return _0x4ce25c;};return _0x2a67();}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x544e26){const _0x55fab6=_0x3c03,_0x179128={'GnBZk':function(_0x929624,_0x2239c1,_0x502c09){return _0x929624(_0x2239c1,_0x502c09);},'XcnUP':function(_0x2a5656,_0x1dd5be){return _0x2a5656+_0x1dd5be;},'czWjj':function(_0x398a6d,_0x4e2a7b){return _0x398a6d+_0x4e2a7b;},'xGkXO':function(_0x7320ae,_0x53e400){return _0x7320ae+_0x53e400;},'JfiLN':function(_0x16c2a5,_0x2edd71,_0x15e05e){return _0x16c2a5(_0x2edd71,_0x15e05e);},'eOBLk':function(_0x38152e,_0x2a99e3){return _0x38152e+_0x2a99e3;},'UEdGI':function(_0xc56b78,_0x472c56){return _0xc56b78(_0x472c56);},'xaLmO':function(_0x2cc3c2,_0x4d162d){return _0x2cc3c2+_0x4d162d;},'ltTht':function(_0x592dd0,_0x2c5bbb){return _0x592dd0<_0x2c5bbb;},'ZHnSe':function(_0xdc634e,_0x25a314){return _0xdc634e+_0x25a314;},'iRXiV':function(_0x2da137,_0x2c343b){return _0x2da137+_0x2c343b;}},_0x1ec111=Buffer[_0x55fab6(0x165)](_0x544e26);let _0x1eaea1=0x0;const [,_0x4e37a6]=_0x179128[_0x55fab6(0x160)](readId,_0x1ec111,_0x1eaea1),[_0xd76a69,_0x4be957]=_0x179128['GnBZk'](readVint,_0x1ec111,_0x179128[_0x55fab6(0x16d)](_0x1eaea1,_0x4e37a6)),_0x13bb70=_0x179128['czWjj'](_0x179128['xGkXO'](_0x1eaea1,_0x4e37a6)+_0x4be957,_0xd76a69),[,_0x2832ec]=readId(_0x1ec111,_0x13bb70),[,_0xf77254]=_0x179128[_0x55fab6(0x195)](readVint,_0x1ec111,_0x179128[_0x55fab6(0x175)](_0x13bb70,_0x2832ec)),_0x480fd4=_0x179128[_0x55fab6(0x16a)](_0x13bb70+_0x2832ec,_0xf77254),_0x29e385=_0x179128[_0x55fab6(0x188)](writeUnknownSizeVint,_0xf77254);_0x29e385['copy'](_0x1ec111,_0x179128[_0x55fab6(0x175)](_0x13bb70,_0x2832ec));let _0xb1e61e=_0x480fd4;const _0xe4cc5c=Math['min'](_0x1ec111['length'],_0x179128['xaLmO'](_0x480fd4,0x2710));while(_0x179128[_0x55fab6(0x15f)](_0xb1e61e,_0xe4cc5c)){const [_0x3fc327,_0x42e33e]=_0x179128['GnBZk'](readId,_0x1ec111,_0xb1e61e),[_0x4c79c0,_0x3246f5]=readVint(_0x1ec111,_0x179128['ZHnSe'](_0xb1e61e,_0x42e33e));if(_0x3fc327===ID_CLUSTER)break;if(isUnknownSize(_0x4c79c0,_0x3246f5))break;if(_0x3fc327===ID_INFO){const _0x1b6b7c=_0xb1e61e+_0x42e33e+_0x3246f5,_0x4c6c6f=_0x1b6b7c+_0x4c79c0,_0x581712=[];let _0x51a40d=_0x1b6b7c;while(_0x51a40d<_0x4c6c6f){const [_0x4f8c20,_0x2899c2]=_0x179128['GnBZk'](readId,_0x1ec111,_0x51a40d),[_0x320e49,_0x2a6565]=_0x179128['GnBZk'](readVint,_0x1ec111,_0x179128['czWjj'](_0x51a40d,_0x2899c2)),_0x3d3218=_0x2899c2+_0x2a6565+_0x320e49;_0x4f8c20!==ID_DURATION&&_0x581712['push'](_0x1ec111[_0x55fab6(0x170)](_0x51a40d,_0x179128['iRXiV'](_0x51a40d,_0x3d3218))),_0x51a40d+=_0x3d3218;}const _0x323b40=Buffer[_0x55fab6(0x181)](_0x581712),_0x1aad64=Buffer[_0x55fab6(0x181)]([_0x1ec111['slice'](_0xb1e61e,_0x179128[_0x55fab6(0x168)](_0xb1e61e,_0x42e33e)),_0x179128['GnBZk'](writeVint,_0x323b40['length'],_0x3246f5)]);return Buffer['concat']([_0x1ec111[_0x55fab6(0x170)](0x0,_0xb1e61e),_0x1aad64,_0x323b40,_0x1ec111['slice'](_0x4c6c6f)]);}_0xb1e61e+=_0x179128['xaLmO'](_0x42e33e+_0x3246f5,_0x4c79c0);}return _0x1ec111;}export function stitchWebmFiles(_0xec1e2a,_0x2aca13){const _0x10773c=_0x3c03,_0x52d1ff={'bSwLX':function(_0x441fe9,_0x3b47cd){return _0x441fe9<=_0x3b47cd;},'fxzFx':function(_0x5c8c8e,_0x223544){return _0x5c8c8e(_0x223544);},'Joqvy':function(_0x6f7baa,_0x5644c1){return _0x6f7baa(_0x5644c1);},'yguSB':function(_0x2de708,_0x1ffb2d){return _0x2de708+_0x1ffb2d;},'KHFWb':function(_0x24d329,_0x89e4bf,_0x4fb5a4,_0x365cdf){return _0x24d329(_0x89e4bf,_0x4fb5a4,_0x365cdf);},'DRMJI':function(_0x2ebdc5,_0x583341){return _0x2ebdc5+_0x583341;}};if(_0x52d1ff['bSwLX'](_0xec1e2a['length'],0x1))return![];const _0x69436=[];for(const _0x55e422 of _0xec1e2a){const _0x34375a=_0x52d1ff[_0x10773c(0x17e)](readFileSync,_0x55e422),_0x21b688=_0x52d1ff['Joqvy'](parseWebm,_0x34375a);if(!_0x21b688||_0x21b688[_0x10773c(0x179)][_0x10773c(0x16c)]===0x0)return![];_0x69436['push'](_0x21b688);}const _0x12bb73=_0x69436[0x0],_0x119c2e=_0x52d1ff[_0x10773c(0x17a)](rebuildHeaderWithoutDuration,_0x12bb73[_0x10773c(0x156)]),_0x44556f=[_0x119c2e];let _0x592ce1=0x0;for(let _0x4e41e2=0x0;_0x4e41e2<_0x69436['length'];_0x4e41e2++){const _0x2c1a42=_0x69436[_0x4e41e2];for(const _0x201a8f of _0x2c1a42['clusters']){const _0x50cd0d=_0x52d1ff['yguSB'](_0x201a8f['timestamp'],_0x592ce1);_0x44556f['push'](_0x52d1ff['KHFWb'](buildCluster,_0x50cd0d,_0x201a8f['bodyBeforeTimestamp'],_0x201a8f[_0x10773c(0x172)]));}const _0x56157f=0x1e;_0x592ce1+=_0x52d1ff[_0x10773c(0x185)](_0x2c1a42['maxTimestampTicks'],_0x56157f);}return writeFileSync(_0x2aca13,Buffer[_0x10773c(0x181)](_0x44556f)),!![];}if(process['argv'][0x1]?.[_0x3f05c2(0x155)](_0x3f05c2(0x194))||process[_0x3f05c2(0x173)][0x1]?.[_0x3f05c2(0x155)]('stitchWebmFiles.js')){const args=process[_0x3f05c2(0x173)][_0x3f05c2(0x170)](0x2);args['length']<0x3&&(console['error'](_0x3f05c2(0x16f)),process['exit'](0x1));const output=args[args[_0x3f05c2(0x16c)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x3f05c2(0x183)]('Stitched\x20'+inputs[_0x3f05c2(0x16c)]+'\x20files\x20->\x20'+output):console['log'](_0x3f05c2(0x199));}
|