@ranger-testing/ranger-cli 2.2.1 → 2.2.2
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/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.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/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/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/verifyInBrowser.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2e8fe9,_0x3349dc){const _0x49dc72=_0x2218,_0x241999=_0x2e8fe9();while(!![]){try{const _0x48529e=-parseInt(_0x49dc72(0x1ac))/0x1+-parseInt(_0x49dc72(0x1c0))/0x2+-parseInt(_0x49dc72(0x1a8))/0x3*(-parseInt(_0x49dc72(0x1ae))/0x4)+-parseInt(_0x49dc72(0x1d0))/0x5*(-parseInt(_0x49dc72(0x1d1))/0x6)+-parseInt(_0x49dc72(0x1db))/0x7*(-parseInt(_0x49dc72(0x1d3))/0x8)+-parseInt(_0x49dc72(0x1da))/0x9+parseInt(_0x49dc72(0x1b3))/0xa*(parseInt(_0x49dc72(0x1df))/0xb);if(_0x48529e===_0x3349dc)break;else _0x241999['push'](_0x241999['shift']());}catch(_0x1e85c0){_0x241999['push'](_0x241999['shift']());}}}(_0x404d,0xb373f));export function buildTraceViewerUrl(_0x1af83c){const _0x30b92c=_0x2218,_0x574a35=encodeURIComponent(_0x1af83c);return _0x30b92c(0x1cf)+_0x574a35;}function getStatusEmoji(_0x5a419b){const _0x1e19d7=_0x2218,_0x637ee8={'arBxg':_0x1e19d7(0x1b9),'tnLxm':_0x1e19d7(0x1a1)};switch(_0x5a419b){case'verified':case'completed':return'✅';case _0x1e19d7(0x1b4):case _0x637ee8[_0x1e19d7(0x1bd)]:return'🔄';case _0x1e19d7(0x1d4):return'🟠';case _0x637ee8['tnLxm']:return'🛑';case'closed':return'⛔';default:return'❓';}}function formatDuration(_0x23e9ea){const _0x3a89e1=_0x2218,_0x5377b2={'IJKUW':function(_0x45cdcb,_0x5cda1c){return _0x45cdcb<_0x5cda1c;},'cLcMB':function(_0x175d8b,_0x811eae){return _0x175d8b/_0x811eae;},'qyncF':function(_0x4207d3,_0x1db307){return _0x4207d3<_0x1db307;},'MIkqE':function(_0xf9f4d1,_0x24396b){return _0xf9f4d1%_0x24396b;}};if(_0x23e9ea===null||_0x23e9ea===undefined)return'N/A';if(_0x5377b2[_0x3a89e1(0x1b7)](_0x23e9ea,0x3e8))return _0x23e9ea+'ms';const _0x253c6f=Math['floor'](_0x5377b2[_0x3a89e1(0x1c3)](_0x23e9ea,0x3e8));if(_0x5377b2['qyncF'](_0x253c6f,0x3c))return _0x253c6f+'s';const _0x5e56ca=Math[_0x3a89e1(0x1e6)](_0x253c6f/0x3c),_0x41417a=_0x5377b2['MIkqE'](_0x253c6f,0x3c);return _0x5e56ca+'m\x20'+_0x41417a+'s';}function _0x2218(_0x29f4a2,_0x2e6f23){_0x29f4a2=_0x29f4a2-0x1a1;const _0x404d2e=_0x404d();let _0x2218ef=_0x404d2e[_0x29f4a2];return _0x2218ef;}function formatDate(_0x28c20a){const _0x5a4098=_0x2218,_0x3e9182={'WkgmK':_0x5a4098(0x1e0),'yCrDL':'numeric'};if(!_0x28c20a)return'N/A';return new Date(_0x28c20a)[_0x5a4098(0x1ce)](_0x3e9182['WkgmK'],{'year':'numeric','month':_0x5a4098(0x1be),'day':_0x3e9182[_0x5a4098(0x1cc)]});}export function generateFeatureReport(_0x2f4461){const _0x18c813=_0x2218,_0x27a52d={'sEDuU':'in_progress','IHgaB':_0x18c813(0x1b1),'TsNwH':function(_0x37922d,_0x40ea39){return _0x37922d(_0x40ea39);},'xUdIf':function(_0xfa7ec4,_0x4812a2){return _0xfa7ec4===_0x4812a2;},'YMwuZ':'closed','CyBIU':'verified','aVLmQ':function(_0x143328,_0x100454){return _0x143328(_0x100454);},'VZWKt':_0x18c813(0x1dd),'qTmZF':'##\x20All\x20Verification\x20Sessions','bQCpD':_0x18c813(0x1a2),'tCqCx':_0x18c813(0x1e1),'vrUwj':function(_0x504847,_0x1c05b3){return _0x504847+_0x1c05b3;},'YRrRc':'...','VHBqM':function(_0x310515,_0x4f7189){return _0x310515===_0x4f7189;},'ZnsyR':'failed','MXstU':function(_0x2d87c4,_0x19879c){return _0x2d87c4(_0x19879c);}},{feature:_0x57e9c4,stats:_0x53fe47,checklistItems:_0x550e71,sessions:_0x33689a}=_0x2f4461,_0x32c1a9=[];_0x32c1a9[_0x18c813(0x1a6)](_0x18c813(0x1de)+_0x57e9c4['name']),_0x32c1a9[_0x18c813(0x1a6)]('');let _0x465a2b,_0x4646d8;if(_0x57e9c4['completedAt'])_0x465a2b='Completed',_0x4646d8='✅';else{if(_0x57e9c4[_0x18c813(0x1b8)]){const _0x1f6898=_0x57e9c4['currentSession'][_0x18c813(0x1aa)];switch(_0x1f6898){case'ready':_0x465a2b='Session\x20'+_0x57e9c4['currentSession'][_0x18c813(0x1b5)]+':\x20Ready',_0x4646d8='▶️';break;case _0x27a52d[_0x18c813(0x1d5)]:_0x465a2b='Session\x20'+_0x57e9c4['currentSession']['iteration']+_0x18c813(0x1e2),_0x4646d8='🔄';break;case'completed':_0x465a2b='Session\x20'+_0x57e9c4[_0x18c813(0x1b8)]['iteration']+':\x20Awaiting\x20Review',_0x4646d8='📊';break;default:_0x465a2b='Unknown',_0x4646d8='❓';}}else _0x465a2b=_0x27a52d[_0x18c813(0x1c9)],_0x4646d8='⬜';}_0x32c1a9['push']('**Status:**\x20'+_0x4646d8+'\x20'+_0x465a2b),_0x32c1a9[_0x18c813(0x1a6)]('**Created:**\x20'+_0x27a52d['TsNwH'](formatDate,_0x57e9c4[_0x18c813(0x1e7)]));_0x57e9c4['completedAt']&&_0x32c1a9[_0x18c813(0x1a6)]('**Completed:**\x20'+formatDate(_0x57e9c4[_0x18c813(0x1ad)]));_0x57e9c4[_0x18c813(0x1bb)]&&_0x32c1a9['push']('**Repository:**\x20'+_0x57e9c4['gitRepoUrl']);_0x57e9c4['gitBranch']&&_0x32c1a9['push']('**Branch:**\x20'+_0x57e9c4['gitBranch']);_0x32c1a9[_0x18c813(0x1a6)]('');_0x57e9c4['description']&&(_0x32c1a9[_0x18c813(0x1a6)]('##\x20Description'),_0x32c1a9['push'](''),_0x32c1a9['push'](_0x57e9c4['description']),_0x32c1a9[_0x18c813(0x1a6)](''));const _0x32061b=_0x550e71['filter'](_0x4cbfa1=>_0x4cbfa1[_0x18c813(0x1aa)]!==_0x18c813(0x1ab)),_0x31baa0=_0x550e71[_0x18c813(0x1c1)](_0x3f02b4=>_0x3f02b4['status']===_0x18c813(0x1c2))['length'];_0x32c1a9[_0x18c813(0x1a6)](_0x18c813(0x1e4)+_0x31baa0+'/'+_0x32061b[_0x18c813(0x1af)]+_0x18c813(0x1ba)),_0x32c1a9[_0x18c813(0x1a6)]('');for(const _0x1db8d5 of _0x550e71){const _0x50e9fe=getStatusEmoji(_0x1db8d5['status']),_0x126528=_0x27a52d[_0x18c813(0x1c8)](_0x1db8d5[_0x18c813(0x1aa)],_0x27a52d[_0x18c813(0x1a9)]),_0x1af286=_0x126528?'~~':'',_0x581789=_0x126528?'~~':'';_0x32c1a9['push'](_0x18c813(0x1b0)+_0x50e9fe+'\x20'+_0x1af286+_0x1db8d5['description']+_0x581789),_0x32c1a9['push']('');_0x1db8d5[_0x18c813(0x1aa)]===_0x27a52d[_0x18c813(0x1a5)]&&_0x1db8d5['verifiedAt']&&_0x32c1a9['push']('-\x20**Verified:**\x20'+_0x27a52d[_0x18c813(0x1b2)](formatDate,_0x1db8d5['verifiedAt']));_0x27a52d['xUdIf'](_0x1db8d5[_0x18c813(0x1aa)],'blocked')&&_0x1db8d5[_0x18c813(0x1bc)]&&(_0x32c1a9['push'](_0x18c813(0x1c5)+formatDate(_0x1db8d5[_0x18c813(0x1bc)])),_0x1db8d5[_0x18c813(0x1c7)]&&_0x32c1a9['push'](_0x18c813(0x1dc)+_0x1db8d5['blockedReason']));_0x1db8d5[_0x18c813(0x1aa)]===_0x27a52d['YMwuZ']&&_0x1db8d5[_0x18c813(0x1b6)]&&(_0x32c1a9[_0x18c813(0x1a6)](_0x18c813(0x1d7)+formatDate(_0x1db8d5[_0x18c813(0x1b6)])),_0x1db8d5['canceledReason']&&_0x32c1a9['push'](_0x18c813(0x1dc)+_0x1db8d5[_0x18c813(0x1a3)]));_0x1db8d5['status']==='incomplete'&&_0x32c1a9['push'](_0x18c813(0x1e5));if(_0x1db8d5['browserSessionId']){_0x32c1a9[_0x18c813(0x1a6)]('-\x20**Session:**\x20'+_0x1db8d5[_0x18c813(0x1a4)]);const _0x509bd9=_0x33689a[_0x18c813(0x1ca)](_0x30d4cd=>_0x30d4cd['id']===_0x1db8d5['browserSessionId']);_0x509bd9&&(_0x509bd9['agentResponse']&&_0x32c1a9[_0x18c813(0x1a6)]('-\x20**Summary:**\x20'+_0x509bd9[_0x18c813(0x1e3)]),_0x509bd9[_0x18c813(0x1cb)]&&_0x32c1a9[_0x18c813(0x1a6)]('-\x20**Trace:**\x20[View\x20in\x20Playwright]('+_0x27a52d['TsNwH'](buildTraceViewerUrl,_0x509bd9[_0x18c813(0x1cb)])+')'));}_0x32c1a9['push']('');}const _0x559c70=_0x550e71['filter'](_0x38c0c6=>_0x38c0c6[_0x18c813(0x1aa)]===_0x18c813(0x1a1));if(_0x559c70[_0x18c813(0x1af)]>0x0){_0x32c1a9['push'](_0x18c813(0x1dd)),_0x32c1a9[_0x18c813(0x1a6)]('');for(const _0xe72bc of _0x559c70){_0x32c1a9['push']('-\x20**'+_0xe72bc[_0x18c813(0x1cd)]+_0x18c813(0x1c4)+(_0xe72bc[_0x18c813(0x1c7)]||'No\x20reason\x20provided'));}_0x32c1a9[_0x18c813(0x1a6)]('');}else _0x32c1a9[_0x18c813(0x1a6)](_0x27a52d[_0x18c813(0x1a7)]),_0x32c1a9[_0x18c813(0x1a6)](''),_0x32c1a9[_0x18c813(0x1a6)]('None'),_0x32c1a9['push']('');if(_0x33689a['length']>0x0){_0x32c1a9['push'](_0x27a52d[_0x18c813(0x1d8)]),_0x32c1a9[_0x18c813(0x1a6)](''),_0x32c1a9['push'](_0x27a52d['bQCpD']),_0x32c1a9['push'](_0x27a52d['tCqCx']);for(const _0x4c2ada of _0x33689a){const _0x51f9c8=_0x4c2ada['checklistItemId']?_0x550e71['find'](_0x453b5e=>_0x453b5e['id']===_0x4c2ada['checklistItemId']):null,_0xadd02e=_0x51f9c8?_0x27a52d['vrUwj'](_0x51f9c8['description']['substring'](0x0,0x1e),_0x51f9c8[_0x18c813(0x1cd)]['length']>0x1e?_0x27a52d['YRrRc']:''):_0x18c813(0x1d2),_0x1eecb3=_0x4c2ada['status']===_0x18c813(0x1bf)?'✅':_0x27a52d['VHBqM'](_0x4c2ada['status'],_0x27a52d[_0x18c813(0x1c6)])?'❌':'🔄';_0x32c1a9[_0x18c813(0x1a6)]('|\x20'+_0x4c2ada['id']+_0x18c813(0x1d6)+_0xadd02e+_0x18c813(0x1d6)+_0x1eecb3+'\x20'+_0x4c2ada[_0x18c813(0x1aa)]+'\x20|\x20'+formatDuration(_0x4c2ada['durationMs'])+'\x20|\x20'+_0x27a52d[_0x18c813(0x1d9)](formatDate,_0x4c2ada[_0x18c813(0x1e7)])+'\x20|');}_0x32c1a9[_0x18c813(0x1a6)]('');}return _0x32c1a9['join']('\x0a');}function _0x404d(){const _0x37196c=['iteration','closedAt','IJKUW','currentSession','in_progress','\x20verified)','gitRepoUrl','blockedAt','arBxg','short','completed','2174676FUkKcJ','filter','verified','cLcMB','**:\x20','-\x20**Blocked:**\x20','ZnsyR','blockedReason','xUdIf','IHgaB','find','traceUrl','yCrDL','description','toLocaleDateString','https://trace.playwright.dev/?trace=','5DjsPbi','3297180ZRDgCG','N/A','8quGBDn','incomplete','sEDuU','\x20|\x20','-\x20**Closed:**\x20','qTmZF','MXstU','11346237JKIujk','4049801aNaDCV','-\x20**Reason:**\x20','##\x20Blocking\x20Issues','#\x20Feature\x20Review\x20Report:\x20','22mBkOcr','en-US','|---------|----------|--------|----------|------|',':\x20In\x20Progress','agentResponse','##\x20Scenario\x20Progress\x20(','-\x20**Status:**\x20Incomplete\x20-\x20requires\x20further\x20work','floor','createdAt','blocked','|\x20Session\x20|\x20Scenario\x20|\x20Status\x20|\x20Duration\x20|\x20Date\x20|','canceledReason','browserSessionId','CyBIU','push','VZWKt','15WWOCmN','YMwuZ','status','closed','927536PHmZkI','completedAt','849972cshITd','length','###\x20','No\x20Session','aVLmQ','9100340XZDsSb','pending'];_0x404d=function(){return _0x37196c;};return _0x404d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5e7fa1=_0x44af;(function(_0x15ffbd,_0x7a954){const _0x11c454=_0x44af,_0x29fb13=_0x15ffbd();while(!![]){try{const _0x4cacfa=-parseInt(_0x11c454(0x198))/0x1*(-parseInt(_0x11c454(0x19b))/0x2)+parseInt(_0x11c454(0x1a7))/0x3+-parseInt(_0x11c454(0x188))/0x4+parseInt(_0x11c454(0x19f))/0x5*(-parseInt(_0x11c454(0x1b6))/0x6)+-parseInt(_0x11c454(0x1af))/0x7*(-parseInt(_0x11c454(0x182))/0x8)+-parseInt(_0x11c454(0x196))/0x9*(parseInt(_0x11c454(0x170))/0xa)+parseInt(_0x11c454(0x184))/0xb*(-parseInt(_0x11c454(0x1a0))/0xc);if(_0x4cacfa===_0x7a954)break;else _0x29fb13['push'](_0x29fb13['shift']());}catch(_0x52fb93){_0x29fb13['push'](_0x29fb13['shift']());}}}(_0x5a9e,0xa444a));import{readFileSync,writeFileSync}from'fs';function _0x5a9e(){const _0x305c0f=['writeDoubleBE','qXnaC','sXHQF','43140ZyqsBk','ElcCZ','xCJeW','Kzztd','gTgrM','qhFRk','wQtdu','GHqRk','offset','1624970yQBBfX','veLRQ','fXwER','dataOffset','MjZHB','gfjja','kuddU','VZBTV','Could\x20not\x20find\x20Info\x20element','exit','dpXbZ','Could\x20not\x20compute\x20duration','KexcR','KHNdb','wuIaU','ROThu','DsWEt','mtucJ','48632dwSpeY','uEUiX','3608022UCkbpl','pJrLQ','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','wdAzE','158888AXjoNB','error','fixWebmDuration.ts','laBCI','HQepN','LpNeN','zpVzs','IUvSX','oRtEU','xUNVl','pdjdo','WSNWU','concat','dataSize','27KhRGla','whbPQ','29PssOhc','UXSKL','argv','43222DswDnb','tuhcc','alloc','from','10sjIpqB','60lclOaa','lmXPh','STYcA','length','bdYHF','kpjNg','sizeLen','3819969eAZMje','idLen','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','JtKvZ','endsWith','iAyic','meDiM','yTdTV','1099qRPiRF','bHPkm','JbjsV','slice'];_0x5a9e=function(){return _0x305c0f;};return _0x5a9e();}const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_DURATION=0x4489,ID_VOID=0xec,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x10e4c8,_0x5e41b1){const _0x58813e=_0x44af,_0x21a480={'pdjdo':function(_0x210a27,_0x2b648){return _0x210a27>=_0x2b648;},'bHPkm':function(_0x50a6ef,_0x10fdae){return _0x50a6ef>_0x10fdae;},'zUwaY':function(_0x22a390,_0x2d42e0){return _0x22a390&_0x2d42e0;},'EhsMA':function(_0x2e4060,_0xe251f1){return _0x2e4060-_0xe251f1;}};if(_0x21a480[_0x58813e(0x192)](_0x5e41b1,_0x10e4c8[_0x58813e(0x1a3)]))return[0x0,0x0];const _0x39b40c=_0x10e4c8[_0x5e41b1];let _0xad7085=0x1,_0x20ef3a=0x80;while(_0xad7085<=0x8&&!(_0x39b40c&_0x20ef3a)){_0xad7085++,_0x20ef3a>>=0x1;}if(_0x21a480[_0x58813e(0x1b0)](_0x5e41b1+_0xad7085,_0x10e4c8['length']))return[0x0,0x0];let _0x21bb38=_0x21a480['zUwaY'](_0x39b40c,_0x21a480['EhsMA'](_0x20ef3a,0x1));for(let _0x128558=0x1;_0x128558<_0xad7085;_0x128558++){_0x21bb38=_0x21bb38*0x100+_0x10e4c8[_0x5e41b1+_0x128558];}return[_0x21bb38,_0xad7085];}function readId(_0x19270a,_0x338234){const _0x18f31b=_0x44af,_0x4d6bff={'xCJeW':function(_0x18fee0,_0x38610b){return _0x18fee0>=_0x38610b;},'dYrrO':function(_0x2e9084,_0x2059d6){return _0x2e9084>_0x2059d6;},'ZgYBj':function(_0x375cd8,_0x3b3ef2){return _0x375cd8+_0x3b3ef2;},'IUvSX':function(_0x175d07,_0x3c051e){return _0x175d07*_0x3c051e;}};if(_0x338234>=_0x19270a[_0x18f31b(0x1a3)])return[0x0,0x0];const _0x113ec7=_0x19270a[_0x338234];let _0x5436bc;if(_0x4d6bff[_0x18f31b(0x169)](_0x113ec7,0x80))_0x5436bc=0x1;else{if(_0x113ec7>=0x40)_0x5436bc=0x2;else{if(_0x4d6bff[_0x18f31b(0x169)](_0x113ec7,0x20))_0x5436bc=0x3;else{if(_0x113ec7>=0x10)_0x5436bc=0x4;else return[_0x113ec7,0x1];}}}if(_0x4d6bff['dYrrO'](_0x4d6bff['ZgYBj'](_0x338234,_0x5436bc),_0x19270a['length']))return[0x0,0x0];let _0x5de8ef=0x0;for(let _0x1d1be4=0x0;_0x1d1be4<_0x5436bc;_0x1d1be4++){_0x5de8ef=_0x4d6bff['ZgYBj'](_0x4d6bff[_0x18f31b(0x18f)](_0x5de8ef,0x100),_0x19270a[_0x338234+_0x1d1be4]);}return[_0x5de8ef,_0x5436bc];}function readUint(_0x12cd74,_0x34c089,_0x48ee9a){const _0x4f1583=_0x44af,_0xa4ddeb={'whbPQ':function(_0x2ee50e,_0x1a4beb){return _0x2ee50e<_0x1a4beb;},'zpVzs':function(_0x1fe013,_0x176ab0){return _0x1fe013+_0x176ab0;}};let _0x51024d=0x0;for(let _0x277f71=0x0;_0xa4ddeb[_0x4f1583(0x197)](_0x277f71,_0x48ee9a);_0x277f71++){_0x51024d=_0x51024d*0x100+_0x12cd74[_0xa4ddeb[_0x4f1583(0x18e)](_0x34c089,_0x277f71)];}return _0x51024d;}function isUnknownSize(_0x5b2e5d,_0x412cfd){const _0x60f171=_0x44af,_0x101f4a={'VZBTV':function(_0x2c9efa,_0x304a0d){return _0x2c9efa===_0x304a0d;},'xXNxv':function(_0x4484f9,_0x413fbc){return _0x4484f9-_0x413fbc;},'meDiM':function(_0x271e5f,_0x3a372a){return _0x271e5f*_0x3a372a;}};return _0x101f4a[_0x60f171(0x177)](_0x5b2e5d,_0x101f4a['xXNxv'](Math['pow'](0x2,_0x101f4a[_0x60f171(0x1ad)](0x7,_0x412cfd)),0x1));}function writeId(_0x50885a){const _0x262508=_0x44af,_0x5b316b={'bdYHF':function(_0x1a0e9d,_0x30711c){return _0x1a0e9d<=_0x30711c;},'iAyic':function(_0x5ea1f8,_0xabd0da){return _0x5ea1f8&_0xabd0da;},'qXnaC':function(_0x3f0da1,_0x4ce10d){return _0x3f0da1>>_0x4ce10d;},'dpXbZ':function(_0x365cda,_0x3ece28){return _0x365cda&_0x3ece28;},'GfqWW':function(_0x252c80,_0xc2d351){return _0x252c80>>_0xc2d351;},'JtKvZ':function(_0xa53990,_0x49272e){return _0xa53990&_0x49272e;},'laBCI':function(_0x4d97c6,_0x49d8cd){return _0x4d97c6&_0x49d8cd;}};if(_0x5b316b[_0x262508(0x1a4)](_0x50885a,0xff))return Buffer[_0x262508(0x19e)]([_0x50885a]);if(_0x50885a<=0xffff)return Buffer['from']([_0x50885a>>0x8&0xff,_0x5b316b['iAyic'](_0x50885a,0xff)]);if(_0x50885a<=0xffffff)return Buffer[_0x262508(0x19e)]([_0x50885a>>0x10&0xff,_0x5b316b['iAyic'](_0x5b316b[_0x262508(0x1b4)](_0x50885a,0x8),0xff),_0x5b316b[_0x262508(0x1ac)](_0x50885a,0xff)]);return Buffer['from']([_0x5b316b[_0x262508(0x1b4)](_0x50885a,0x18)&0xff,_0x5b316b[_0x262508(0x17a)](_0x5b316b['GfqWW'](_0x50885a,0x10),0xff),_0x5b316b[_0x262508(0x1aa)](_0x50885a>>0x8,0xff),_0x5b316b[_0x262508(0x18b)](_0x50885a,0xff)]);}function writeVint(_0x16719b,_0xb29dba){const _0x4534f3=_0x44af,_0x11e327={'oRtEU':function(_0x11ee0e,_0x5311cd){return _0x11ee0e||_0x5311cd;},'fXwER':function(_0x5c84ae,_0x919974){return _0x5c84ae<_0x919974;},'zsdvg':function(_0x598d1f,_0x5b23fe){return _0x598d1f-_0x5b23fe;},'djjbc':function(_0x64a808,_0x12ac5c){return _0x64a808>=_0x12ac5c;},'KexcR':function(_0x173bd4,_0x40dda0){return _0x173bd4&_0x40dda0;}};let _0x3889d0=_0x11e327[_0x4534f3(0x190)](_0xb29dba,0x1);while(_0x11e327[_0x4534f3(0x172)](_0x11e327['zsdvg'](Math['pow'](0x2,0x7*_0x3889d0),0x2),_0x16719b))_0x3889d0++;const _0x20b226=Buffer[_0x4534f3(0x19d)](_0x3889d0);for(let _0x128460=_0x11e327['zsdvg'](_0x3889d0,0x1);_0x11e327['djjbc'](_0x128460,0x0);_0x128460--){_0x20b226[_0x128460]=_0x11e327[_0x4534f3(0x17c)](_0x16719b,0xff),_0x16719b=Math['floor'](_0x16719b/0x100);}return _0x20b226[0x0]|=0x1<<0x8-_0x3889d0,_0x20b226;}function writeFloat64(_0x5ed92c){const _0x1c4dc1=_0x44af,_0x3285f9=Buffer[_0x1c4dc1(0x19d)](0x8);return _0x3285f9[_0x1c4dc1(0x1b3)](_0x5ed92c,0x0),_0x3285f9;}function writeVoid(_0x242178){const _0x4ff364=_0x44af,_0x47a717={'VYgDN':function(_0x10ed34,_0x2b4da6){return _0x10ed34<=_0x2b4da6;},'KUogE':function(_0xd976a,_0x3922c6){return _0xd976a-_0x3922c6;},'ipFyk':function(_0x47325b,_0x4d5f30){return _0x47325b<=_0x4d5f30;},'YGcvA':function(_0x23e876,_0x49cfc7,_0x303c34){return _0x23e876(_0x49cfc7,_0x303c34);}};for(let _0x2408fa=0x1;_0x47a717['VYgDN'](_0x2408fa,0x8);_0x2408fa++){const _0x20a788=_0x47a717['KUogE'](_0x242178-0x1,_0x2408fa);if(_0x20a788>=0x0&&_0x47a717['ipFyk'](_0x20a788,Math['pow'](0x2,0x7*_0x2408fa)-0x2))return Buffer[_0x4ff364(0x194)]([Buffer[_0x4ff364(0x19e)]([ID_VOID]),_0x47a717['YGcvA'](writeVint,_0x20a788,_0x2408fa),Buffer['alloc'](_0x20a788)]);}return Buffer['alloc'](0x0);}function _0x44af(_0x674ffc,_0x5d59b9){_0x674ffc=_0x674ffc-0x168;const _0x5a9eba=_0x5a9e();let _0x44af47=_0x5a9eba[_0x674ffc];return _0x44af47;}function findElement(_0xe44671,_0x88be77,_0x553240,_0x18277f){const _0x278931=_0x44af,_0xeb7614={'CYqxJ':function(_0x4d9a97,_0x54f4ee,_0x295d67){return _0x4d9a97(_0x54f4ee,_0x295d67);},'gfjja':function(_0x348e98,_0x540329,_0x40ebe0){return _0x348e98(_0x540329,_0x40ebe0);},'mtucJ':function(_0x1e204a,_0xa46135){return _0x1e204a+_0xa46135;},'JbjsV':function(_0x362eee,_0x384f70,_0x29d1bb){return _0x362eee(_0x384f70,_0x29d1bb);}};let _0x393dec=_0x88be77;while(_0x393dec<_0x553240){const [_0x1db37d,_0x52d353]=_0xeb7614['CYqxJ'](readId,_0xe44671,_0x393dec),[_0x40853f,_0x2adccf]=_0xeb7614[_0x278931(0x175)](readVint,_0xe44671,_0xeb7614[_0x278931(0x181)](_0x393dec,_0x52d353));if(_0x1db37d===_0x18277f)return{'offset':_0x393dec,'idLen':_0x52d353,'sizeLen':_0x2adccf,'dataSize':_0x40853f,'dataOffset':_0xeb7614[_0x278931(0x181)](_0x393dec,_0x52d353)+_0x2adccf};if(_0xeb7614[_0x278931(0x1b1)](isUnknownSize,_0x40853f,_0x2adccf))break;_0x393dec+=_0xeb7614['mtucJ'](_0x52d353+_0x2adccf,_0x40853f);}return null;}function computeDurationMs(_0x2bbf56,_0x3eb805){const _0x5191bb=_0x44af,_0x11c9c4={'yTdTV':function(_0x50061a,_0x44f3df,_0xb8dcae){return _0x50061a(_0x44f3df,_0xb8dcae);},'uAnda':function(_0x147d55,_0x44f26e){return _0x147d55!==_0x44f26e;},'qhFRk':function(_0x361c5e,_0x189227,_0x555da7){return _0x361c5e(_0x189227,_0x555da7);},'jlzhw':function(_0x5e8030,_0x2de437){return _0x5e8030+_0x2de437;},'gTgrM':function(_0x3a0fce,_0x2d7f80){return _0x3a0fce-_0x2d7f80;},'kpjNg':function(_0x12f692,_0x1d9e02){return _0x12f692===_0x1d9e02;},'wdAzE':function(_0x3abd70,_0x13313a,_0x1f853c){return _0x3abd70(_0x13313a,_0x1f853c);},'MjZHB':function(_0x59d5c9,_0x18a91c,_0x32e325){return _0x59d5c9(_0x18a91c,_0x32e325);},'LpNeN':function(_0x3f52c7,_0x3c180f){return _0x3f52c7<_0x3c180f;},'qXxul':function(_0x2e991d,_0x3f85e1,_0x1ebd7c,_0x219d58){return _0x2e991d(_0x3f85e1,_0x1ebd7c,_0x219d58);},'gFfpW':function(_0x3e2a25,_0xa235d){return _0x3e2a25===_0xa235d;},'RDwmD':function(_0x20f2bb,_0x532e67){return _0x20f2bb+_0x532e67;},'YRBCC':function(_0x1fde8d,_0x32aa48,_0x14643d){return _0x1fde8d(_0x32aa48,_0x14643d);},'STYcA':function(_0x2988cf,_0x55ca9a){return _0x2988cf===_0x55ca9a;},'QjHkY':function(_0x2e0050,_0x9ee5e9,_0x1da5f4){return _0x2e0050(_0x9ee5e9,_0x1da5f4);},'GHqRk':function(_0x35446b,_0x482bc0){return _0x35446b+_0x482bc0;},'liXRE':function(_0x41ad05,_0xcbb476){return _0x41ad05+_0xcbb476;}};let _0x122b58=0x0;const _0x335ea0=Buffer[_0x5191bb(0x19e)]([0x1f,0x43,0xb6,0x75]);let _0xb1d8de=_0x2bbf56['indexOf'](_0x335ea0);if(_0xb1d8de===-0x1)return 0x0;while(_0xb1d8de<_0x2bbf56[_0x5191bb(0x1a3)]){const [_0x568c34,_0x58c457]=_0x11c9c4[_0x5191bb(0x1ae)](readId,_0x2bbf56,_0xb1d8de);if(_0x11c9c4['uAnda'](_0x568c34,ID_CLUSTER))break;const [_0x11bb82,_0x105155]=_0x11c9c4[_0x5191bb(0x16c)](readVint,_0x2bbf56,_0xb1d8de+_0x58c457),_0x2e144b=_0x11c9c4['jlzhw'](_0xb1d8de,_0x58c457)+_0x105155,_0x21b30b=_0x11c9c4[_0x5191bb(0x1ae)](isUnknownSize,_0x11bb82,_0x105155);let _0x1126f6;if(_0x21b30b){let _0x5a96fc=_0x2e144b;while(_0x5a96fc<_0x11c9c4[_0x5191bb(0x16b)](_0x2bbf56['length'],0x4)){const [_0x2deea8,_0x37d34d]=readId(_0x2bbf56,_0x5a96fc);if(_0x11c9c4[_0x5191bb(0x1a5)](_0x2deea8,ID_CLUSTER)){_0x1126f6=_0x5a96fc;break;}const [_0x2658c9,_0x57b5c5]=_0x11c9c4[_0x5191bb(0x187)](readVint,_0x2bbf56,_0x5a96fc+_0x37d34d);if(_0x11c9c4[_0x5191bb(0x174)](isUnknownSize,_0x2658c9,_0x57b5c5)){_0x1126f6=_0x2bbf56[_0x5191bb(0x1a3)];break;}_0x5a96fc+=_0x37d34d+_0x57b5c5+_0x2658c9;}_0x1126f6??=_0x2bbf56['length'];}else _0x1126f6=_0x11c9c4['jlzhw'](_0x2e144b,_0x11bb82);let _0x5ae8ee=0x0,_0x134a66=_0x2e144b;while(_0x11c9c4[_0x5191bb(0x18d)](_0x134a66,_0x1126f6)){const [_0x1223b6,_0xe295e7]=_0x11c9c4['wdAzE'](readId,_0x2bbf56,_0x134a66),[_0x230e9b,_0x905d16]=_0x11c9c4['qhFRk'](readVint,_0x2bbf56,_0x134a66+_0xe295e7);if(_0x11c9c4[_0x5191bb(0x1a5)](_0x1223b6,ID_TIMESTAMP))_0x5ae8ee=_0x11c9c4['qXxul'](readUint,_0x2bbf56,_0x134a66+_0xe295e7+_0x905d16,_0x230e9b);else{if(_0x11c9c4['gFfpW'](_0x1223b6,ID_SIMPLE_BLOCK)&&_0x230e9b>=0x4){const _0x190246=_0x11c9c4['RDwmD'](_0x134a66,_0xe295e7)+_0x905d16,[,_0x4d0a87]=_0x11c9c4['YRBCC'](readVint,_0x2bbf56,_0x190246),_0x22b4e6=_0x2bbf56['readInt16BE'](_0x190246+_0x4d0a87),_0x579a65=(_0x5ae8ee+_0x22b4e6)*_0x3eb805/0xf4240;_0x579a65>_0x122b58&&(_0x122b58=_0x579a65);}else{if(_0x11c9c4[_0x5191bb(0x1a2)](_0x1223b6,ID_CLUSTER))break;}}if(_0x11c9c4['QjHkY'](isUnknownSize,_0x230e9b,_0x905d16))break;_0x134a66+=_0x11c9c4[_0x5191bb(0x16e)](_0x11c9c4['liXRE'](_0xe295e7,_0x905d16),_0x230e9b);}_0xb1d8de=_0x1126f6;}return _0x122b58;}export function fixWebmDuration(_0x49271d,_0x2a2382){const _0x57e3b7=_0x44af,_0x5c9492={'WSNWU':function(_0x1916d2,_0x5b26e9){return _0x1916d2(_0x5b26e9);},'HQepN':function(_0x3dbcdf,_0x517a43){return _0x3dbcdf+_0x517a43;},'veLRQ':function(_0x3fbdd5,_0x175fd4){return _0x3fbdd5+_0x175fd4;},'ROThu':function(_0x1142ac,_0x92a7fb,_0x23cd29){return _0x1142ac(_0x92a7fb,_0x23cd29);},'UXSKL':function(_0x4cbe2b,_0x26bcbc){return _0x4cbe2b!==_0x26bcbc;},'pJrLQ':function(_0x5e27ff,_0x341ff0,_0x5e102e){return _0x5e27ff(_0x341ff0,_0x5e102e);},'KHNdb':function(_0x53473c,_0x4455a2){return _0x53473c+_0x4455a2;},'lmXPh':function(_0x2c1adc,_0x531e01){return _0x2c1adc+_0x531e01;},'DsWEt':function(_0x2cce07,_0x51007f){return _0x2cce07<_0x51007f;},'wQtdu':function(_0x5a6b17,_0x48966e){return _0x5a6b17===_0x48966e;},'xUNVl':_0x57e3b7(0x178),'VMaKu':function(_0x389afe,_0x13a6c9,_0x52da9c,_0x2f7cf4,_0x53b04f){return _0x389afe(_0x13a6c9,_0x52da9c,_0x2f7cf4,_0x53b04f);},'HPKeE':function(_0x213176,_0x415ed7,_0x174b60,_0x5f48be){return _0x213176(_0x415ed7,_0x174b60,_0x5f48be);},'douLA':function(_0xe768cb,_0x32f020){return _0xe768cb<=_0x32f020;},'wuIaU':function(_0x2d9e99,_0x2b1753){return _0x2d9e99/_0x2b1753;},'ElcCZ':function(_0x438769,_0x1e0278){return _0x438769*_0x1e0278;},'Kzztd':function(_0x47213d,_0x41442d){return _0x47213d<_0x41442d;},'kuddU':function(_0x50e1d7,_0x3f5b7a){return _0x50e1d7-_0x3f5b7a;},'xtRDM':function(_0x455992,_0x50c8fe){return _0x455992<_0x50c8fe;},'ijdRn':function(_0x2a9b2c,_0x4b5b4f,_0x40bd85,_0x24d35b,_0x1be49a,_0x444140,_0x3f3fd2){return _0x2a9b2c(_0x4b5b4f,_0x40bd85,_0x24d35b,_0x1be49a,_0x444140,_0x3f3fd2);},'uEUiX':function(_0x8782d7,_0x7bd1e8,_0x22bfe7){return _0x8782d7(_0x7bd1e8,_0x22bfe7);},'bgxAC':function(_0xe563d6,_0x2fc638){return _0xe563d6+_0x2fc638;},'tuhcc':function(_0x511992,_0x533e38){return _0x511992+_0x533e38;}},_0x1dc104=_0x5c9492['WSNWU'](readFileSync,_0x49271d);let _0x7b44ba=0x0;const [_0x4325c1,_0x32ec61]=readId(_0x1dc104,_0x7b44ba),[_0x40a79d,_0x7bfa84]=readVint(_0x1dc104,_0x5c9492[_0x57e3b7(0x18c)](_0x7b44ba,_0x32ec61));_0x7b44ba+=_0x5c9492[_0x57e3b7(0x171)](_0x32ec61,_0x7bfa84)+_0x40a79d;const [_0x56a345,_0x5c03ec]=_0x5c9492[_0x57e3b7(0x17f)](readId,_0x1dc104,_0x7b44ba);if(_0x5c9492[_0x57e3b7(0x199)](_0x56a345,ID_SEGMENT))return console[_0x57e3b7(0x189)](_0x57e3b7(0x186)),![];const [,_0x4617e5]=_0x5c9492[_0x57e3b7(0x185)](readVint,_0x1dc104,_0x5c9492[_0x57e3b7(0x17d)](_0x7b44ba,_0x5c03ec)),_0x7d89db=_0x5c9492[_0x57e3b7(0x1a1)](_0x7b44ba+_0x5c03ec,_0x4617e5);let _0x43c364=_0x7d89db;const _0x599b9d=Math['min'](_0x1dc104[_0x57e3b7(0x1a3)],_0x5c9492['KHNdb'](_0x7d89db,0x2710));let _0x5573bd=null,_0x528cdd=null;while(_0x5c9492[_0x57e3b7(0x180)](_0x43c364,_0x599b9d)){const [_0x337400,_0x26a10e]=readId(_0x1dc104,_0x43c364),[_0x3362b7,_0x39f2c3]=readVint(_0x1dc104,_0x5c9492['lmXPh'](_0x43c364,_0x26a10e));_0x337400===ID_VOID&&!_0x5573bd&&(_0x5573bd={'offset':_0x43c364,'idLen':_0x26a10e,'sizeLen':_0x39f2c3,'dataSize':_0x3362b7,'dataOffset':_0x5c9492[_0x57e3b7(0x171)](_0x43c364+_0x26a10e,_0x39f2c3)});if(_0x337400===ID_INFO){_0x528cdd={'offset':_0x43c364,'idLen':_0x26a10e,'sizeLen':_0x39f2c3,'dataSize':_0x3362b7,'dataOffset':_0x5c9492['lmXPh'](_0x5c9492['HQepN'](_0x43c364,_0x26a10e),_0x39f2c3)};break;}if(_0x5c9492[_0x57e3b7(0x16d)](_0x337400,ID_CLUSTER))break;if(isUnknownSize(_0x3362b7,_0x39f2c3))break;_0x43c364+=_0x5c9492[_0x57e3b7(0x18c)](_0x26a10e+_0x39f2c3,_0x3362b7);}if(!_0x528cdd)return console['error'](_0x5c9492[_0x57e3b7(0x191)]),![];const _0x1d2840=findElement(_0x1dc104,_0x528cdd[_0x57e3b7(0x173)],_0x528cdd[_0x57e3b7(0x173)]+_0x528cdd['dataSize'],ID_DURATION);if(_0x1d2840)return![];const _0x1f27c7=_0x5c9492['VMaKu'](findElement,_0x1dc104,_0x528cdd['dataOffset'],_0x528cdd['dataOffset']+_0x528cdd[_0x57e3b7(0x195)],ID_TIMESTAMP_SCALE);let _0x30d515=0xf4240;_0x1f27c7&&(_0x30d515=_0x5c9492['HPKeE'](readUint,_0x1dc104,_0x1f27c7[_0x57e3b7(0x173)],_0x1f27c7[_0x57e3b7(0x195)]));const _0x104734=_0x5c9492[_0x57e3b7(0x17f)](computeDurationMs,_0x1dc104,_0x30d515);if(_0x5c9492['douLA'](_0x104734,0x0))return console[_0x57e3b7(0x189)](_0x57e3b7(0x17b)),![];const _0x23de6a=_0x5c9492[_0x57e3b7(0x17e)](_0x5c9492[_0x57e3b7(0x168)](_0x104734,0xf4240),_0x30d515),_0x426684=Buffer[_0x57e3b7(0x194)]([writeId(ID_DURATION),_0x5c9492['WSNWU'](writeVint,0x8),writeFloat64(_0x23de6a)]),_0x59bb12=_0x426684[_0x57e3b7(0x1a3)];if(!_0x5573bd||_0x5c9492[_0x57e3b7(0x16a)](_0x5573bd[_0x57e3b7(0x16f)],_0x528cdd['offset'])){if(_0x5573bd){const _0x415026=_0x5c9492['veLRQ'](_0x5573bd['idLen'],_0x5573bd['sizeLen'])+_0x5573bd['dataSize'],_0xe70bc9=_0x5c9492[_0x57e3b7(0x176)](_0x415026,_0x59bb12);if(_0x5c9492['xtRDM'](_0xe70bc9,0x2))return _0x5c9492['ijdRn'](rewriteFile,_0x1dc104,_0x528cdd,_0x426684,_0x30d515,_0x104734,_0x2a2382);const _0x4d96d8=_0x528cdd[_0x57e3b7(0x195)]+_0x59bb12,_0x411a55=Buffer['concat']([_0x5c9492[_0x57e3b7(0x193)](writeId,ID_INFO),_0x5c9492[_0x57e3b7(0x183)](writeVint,_0x4d96d8,_0x528cdd[_0x57e3b7(0x1a6)])]),_0x1d6ee5=_0x1dc104['slice'](_0x528cdd['dataOffset'],_0x5c9492['bgxAC'](_0x528cdd['dataOffset'],_0x528cdd['dataSize'])),_0x5c3a83=_0x5c9492['WSNWU'](writeVoid,_0xe70bc9),_0x3eb418=_0x1dc104['slice'](0x0,_0x5573bd[_0x57e3b7(0x16f)]),_0x5aa5c0=_0x1dc104[_0x57e3b7(0x1b2)](_0x5c9492[_0x57e3b7(0x19c)](_0x528cdd[_0x57e3b7(0x173)],_0x528cdd['dataSize']));return _0x5c9492['uEUiX'](writeFileSync,_0x2a2382,Buffer[_0x57e3b7(0x194)]([_0x3eb418,_0x5c3a83,_0x411a55,_0x1d6ee5,_0x426684,_0x5aa5c0])),!![];}}return rewriteFile(_0x1dc104,_0x528cdd,_0x426684,_0x30d515,_0x104734,_0x2a2382);}function rewriteFile(_0x24ead7,_0x11561a,_0x57abcf,_0x59d2e6,_0x1f55b8,_0x3b8bf9){const _0x46dca3=_0x44af,_0x4526ba={'sXHQF':function(_0x11a3be,_0x439481){return _0x11a3be+_0x439481;},'sHcUp':function(_0x4523b8,_0x4da91e){return _0x4523b8+_0x4da91e;}},_0x22586c=_0x11561a['dataSize']+_0x57abcf[_0x46dca3(0x1a3)],_0x2146d4=Buffer[_0x46dca3(0x194)]([writeId(ID_INFO),writeVint(_0x22586c)]),_0x118486=_0x4526ba['sXHQF'](_0x11561a[_0x46dca3(0x1a8)],_0x11561a['sizeLen']),_0x347f79=_0x24ead7['slice'](0x0,_0x11561a['offset']),_0x1dbcb0=_0x24ead7['slice'](_0x11561a[_0x46dca3(0x173)],_0x11561a[_0x46dca3(0x173)]+_0x11561a[_0x46dca3(0x195)]),_0x4cb342=_0x24ead7['slice'](_0x4526ba[_0x46dca3(0x1b5)](_0x4526ba['sHcUp'](_0x11561a[_0x46dca3(0x16f)],_0x118486),_0x11561a['dataSize']));return writeFileSync(_0x3b8bf9,Buffer['concat']([_0x347f79,_0x2146d4,_0x1dbcb0,_0x57abcf,_0x4cb342])),!![];}if(process[_0x5e7fa1(0x19a)][0x1]?.[_0x5e7fa1(0x1ab)](_0x5e7fa1(0x18a))||process[_0x5e7fa1(0x19a)][0x1]?.['endsWith']('fixWebmDuration.js')){const input=process[_0x5e7fa1(0x19a)][0x2],output=process[_0x5e7fa1(0x19a)][0x3];(!input||!output)&&(console[_0x5e7fa1(0x189)](_0x5e7fa1(0x1a9)),process[_0x5e7fa1(0x179)](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log']('Fixed:\x20'+output):console['log']('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
|
|
1
|
+
const _0x51d321=_0x3a36;(function(_0x5416,_0x10ed52){const _0x3aada4=_0x3a36,_0x155f3b=_0x5416();while(!![]){try{const _0x130587=-parseInt(_0x3aada4(0x167))/0x1+parseInt(_0x3aada4(0x161))/0x2*(-parseInt(_0x3aada4(0x15a))/0x3)+parseInt(_0x3aada4(0x156))/0x4+-parseInt(_0x3aada4(0x13f))/0x5*(parseInt(_0x3aada4(0x174))/0x6)+parseInt(_0x3aada4(0x136))/0x7*(-parseInt(_0x3aada4(0x13c))/0x8)+-parseInt(_0x3aada4(0x127))/0x9*(parseInt(_0x3aada4(0x179))/0xa)+parseInt(_0x3aada4(0x134))/0xb;if(_0x130587===_0x10ed52)break;else _0x155f3b['push'](_0x155f3b['shift']());}catch(_0x503977){_0x155f3b['push'](_0x155f3b['shift']());}}}(_0x343e,0x952ba));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_DURATION=0x4489,ID_VOID=0xec,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x498d2f,_0x557b61){const _0x2a42d4=_0x3a36,_0x3118d9={'aTEEL':function(_0x422e32,_0x4743f1){return _0x422e32>=_0x4743f1;},'WjPYP':function(_0x314219,_0x2e14c0){return _0x314219<=_0x2e14c0;},'NXGjB':function(_0xbecc0b,_0x383de8){return _0xbecc0b&_0x383de8;},'ojovA':function(_0x2e5c17,_0x29a5d5){return _0x2e5c17>_0x29a5d5;},'NfQMJ':function(_0xe393f5,_0xe48d16){return _0xe393f5&_0xe48d16;},'zFmWH':function(_0x24aea7,_0x4bb695){return _0x24aea7+_0x4bb695;}};if(_0x3118d9[_0x2a42d4(0x175)](_0x557b61,_0x498d2f['length']))return[0x0,0x0];const _0x2a9fc2=_0x498d2f[_0x557b61];let _0x9c0cd8=0x1,_0x1f1678=0x80;while(_0x3118d9[_0x2a42d4(0x149)](_0x9c0cd8,0x8)&&!_0x3118d9['NXGjB'](_0x2a9fc2,_0x1f1678)){_0x9c0cd8++,_0x1f1678>>=0x1;}if(_0x3118d9[_0x2a42d4(0x139)](_0x557b61+_0x9c0cd8,_0x498d2f[_0x2a42d4(0x14b)]))return[0x0,0x0];let _0x321a09=_0x3118d9[_0x2a42d4(0x131)](_0x2a9fc2,_0x1f1678-0x1);for(let _0x4d16fc=0x1;_0x4d16fc<_0x9c0cd8;_0x4d16fc++){_0x321a09=_0x3118d9['zFmWH'](_0x321a09*0x100,_0x498d2f[_0x3118d9[_0x2a42d4(0x154)](_0x557b61,_0x4d16fc)]);}return[_0x321a09,_0x9c0cd8];}function readId(_0x38ada6,_0x2132e6){const _0x159a0e=_0x3a36,_0x4c4bc0={'pKHQg':function(_0x53a9c2,_0x24eb0c){return _0x53a9c2>=_0x24eb0c;},'xQJCR':function(_0x41675a,_0x53674e){return _0x41675a>_0x53674e;},'TDovV':function(_0x5f2aa3,_0x579161){return _0x5f2aa3+_0x579161;}};if(_0x2132e6>=_0x38ada6['length'])return[0x0,0x0];const _0x1b4f52=_0x38ada6[_0x2132e6];let _0x1b83c0;if(_0x4c4bc0[_0x159a0e(0x142)](_0x1b4f52,0x80))_0x1b83c0=0x1;else{if(_0x1b4f52>=0x40)_0x1b83c0=0x2;else{if(_0x1b4f52>=0x20)_0x1b83c0=0x3;else{if(_0x4c4bc0['pKHQg'](_0x1b4f52,0x10))_0x1b83c0=0x4;else return[_0x1b4f52,0x1];}}}if(_0x4c4bc0['xQJCR'](_0x2132e6+_0x1b83c0,_0x38ada6[_0x159a0e(0x14b)]))return[0x0,0x0];let _0x5883e6=0x0;for(let _0x3021c5=0x0;_0x3021c5<_0x1b83c0;_0x3021c5++){_0x5883e6=_0x5883e6*0x100+_0x38ada6[_0x4c4bc0['TDovV'](_0x2132e6,_0x3021c5)];}return[_0x5883e6,_0x1b83c0];}function readUint(_0x119175,_0x193f00,_0x28e952){const _0x2be5f5=_0x3a36,_0x2b65de={'yUkfD':function(_0xa24dd,_0x2979d4){return _0xa24dd<_0x2979d4;},'jdYEI':function(_0xba782d,_0x1eb89b){return _0xba782d+_0x1eb89b;},'ArBvW':function(_0x569c3a,_0x1d21b7){return _0x569c3a*_0x1d21b7;}};let _0x4bfc19=0x0;for(let _0x5df818=0x0;_0x2b65de['yUkfD'](_0x5df818,_0x28e952);_0x5df818++){_0x4bfc19=_0x2b65de['jdYEI'](_0x2b65de[_0x2be5f5(0x15b)](_0x4bfc19,0x100),_0x119175[_0x2b65de[_0x2be5f5(0x168)](_0x193f00,_0x5df818)]);}return _0x4bfc19;}function isUnknownSize(_0x1cc6b9,_0x42adeb){const _0x1560ce=_0x3a36,_0x60f08e={'NgkZh':function(_0x57272b,_0x384928){return _0x57272b===_0x384928;},'ZAtfo':function(_0x2159f9,_0x24b8f4){return _0x2159f9-_0x24b8f4;}};return _0x60f08e[_0x1560ce(0x148)](_0x1cc6b9,_0x60f08e[_0x1560ce(0x152)](Math['pow'](0x2,0x7*_0x42adeb),0x1));}function _0x3a36(_0x4a7037,_0x773234){_0x4a7037=_0x4a7037-0x124;const _0x343ea4=_0x343e();let _0x3a3601=_0x343ea4[_0x4a7037];return _0x3a3601;}function writeId(_0x2509fc){const _0x2f6697=_0x3a36,_0x2127c9={'HtfOk':function(_0x482bc3,_0x10fa60){return _0x482bc3<=_0x10fa60;},'eGXnn':function(_0x1c76e5,_0x5686b7){return _0x1c76e5&_0x5686b7;},'OxwaT':function(_0x48f57c,_0x40ed19){return _0x48f57c>>_0x40ed19;},'efCgk':function(_0x477bb0,_0x276a47){return _0x477bb0&_0x276a47;},'kPoVe':function(_0x14e702,_0x2eef93){return _0x14e702>>_0x2eef93;},'Fnahy':function(_0x5c1b00,_0xf14083){return _0x5c1b00&_0xf14083;},'xnByT':function(_0x1b79ed,_0x3b7d5c){return _0x1b79ed&_0x3b7d5c;},'QcLOE':function(_0x3f3f04,_0x395adb){return _0x3f3f04&_0x395adb;},'gMHoO':function(_0x1ea304,_0x50493b){return _0x1ea304&_0x50493b;}};if(_0x2509fc<=0xff)return Buffer[_0x2f6697(0x13e)]([_0x2509fc]);if(_0x2127c9[_0x2f6697(0x147)](_0x2509fc,0xffff))return Buffer[_0x2f6697(0x13e)]([_0x2127c9[_0x2f6697(0x133)](_0x2127c9[_0x2f6697(0x145)](_0x2509fc,0x8),0xff),_0x2127c9[_0x2f6697(0x133)](_0x2509fc,0xff)]);if(_0x2509fc<=0xffffff)return Buffer['from']([_0x2127c9[_0x2f6697(0x17a)](_0x2127c9[_0x2f6697(0x176)](_0x2509fc,0x10),0xff),_0x2127c9['Fnahy'](_0x2127c9['OxwaT'](_0x2509fc,0x8),0xff),_0x2127c9[_0x2f6697(0x15c)](_0x2509fc,0xff)]);return Buffer['from']([_0x2127c9[_0x2f6697(0x14a)](_0x2509fc>>0x18,0xff),_0x2509fc>>0x10&0xff,_0x2127c9[_0x2f6697(0x172)](_0x2127c9[_0x2f6697(0x145)](_0x2509fc,0x8),0xff),_0x2127c9[_0x2f6697(0x125)](_0x2509fc,0xff)]);}function writeVint(_0x4829f3,_0x527af1){const _0x3298cf=_0x3a36,_0x2bca41={'ztWIH':function(_0x788570,_0x544b24){return _0x788570-_0x544b24;},'qLATL':function(_0x44569b,_0x5e0774){return _0x44569b*_0x5e0774;},'jAtWh':function(_0x282d7f,_0x258701){return _0x282d7f>=_0x258701;},'jScha':function(_0x7c5ffd,_0xc65ff2){return _0x7c5ffd&_0xc65ff2;},'cCUCp':function(_0x8d26bd,_0xc1da5a){return _0x8d26bd-_0xc1da5a;}};let _0x20799a=_0x527af1||0x1;while(_0x2bca41['ztWIH'](Math[_0x3298cf(0x137)](0x2,_0x2bca41[_0x3298cf(0x126)](0x7,_0x20799a)),0x2)<_0x4829f3)_0x20799a++;const _0x16a791=Buffer['alloc'](_0x20799a);for(let _0x492aa7=_0x2bca41['ztWIH'](_0x20799a,0x1);_0x2bca41['jAtWh'](_0x492aa7,0x0);_0x492aa7--){_0x16a791[_0x492aa7]=_0x2bca41['jScha'](_0x4829f3,0xff),_0x4829f3=Math['floor'](_0x4829f3/0x100);}return _0x16a791[0x0]|=0x1<<_0x2bca41[_0x3298cf(0x140)](0x8,_0x20799a),_0x16a791;}function writeFloat64(_0x5c00ee){const _0x2fd6d4=_0x3a36,_0x570b00=Buffer[_0x2fd6d4(0x16d)](0x8);return _0x570b00[_0x2fd6d4(0x16f)](_0x5c00ee,0x0),_0x570b00;}function writeVoid(_0x3360dc){const _0x2134d5=_0x3a36,_0x2ebacc={'bZfti':function(_0x357908,_0x1e4834){return _0x357908-_0x1e4834;},'EVpXt':function(_0x410523,_0x4647cd){return _0x410523-_0x4647cd;},'hcEel':function(_0x13cdea,_0x15e6c2,_0x31a377){return _0x13cdea(_0x15e6c2,_0x31a377);}};for(let _0xd83655=0x1;_0xd83655<=0x8;_0xd83655++){const _0x2ae400=_0x2ebacc['bZfti'](_0x3360dc,0x1)-_0xd83655;if(_0x2ae400>=0x0&&_0x2ae400<=_0x2ebacc[_0x2134d5(0x13b)](Math['pow'](0x2,0x7*_0xd83655),0x2))return Buffer[_0x2134d5(0x138)]([Buffer['from']([ID_VOID]),_0x2ebacc['hcEel'](writeVint,_0x2ae400,_0xd83655),Buffer[_0x2134d5(0x16d)](_0x2ae400)]);}return Buffer[_0x2134d5(0x16d)](0x0);}function _0x343e(){const _0x7797f=['10QIxFAr','efCgk','dataSize','gMHoO','qLATL','7423218inFzfM','gnDQx','indexOf','sQqWe','Could\x20not\x20compute\x20duration','BDXWQ','XIKEe','SxNpB','ArbMv','HXawN','NfQMJ','HFHJz','eGXnn','22859650sOFoXE','Wkclb','676977KmPVrZ','pow','concat','ojovA','JHquz','EVpXt','48fDDqux','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','from','10pFnchE','cCUCp','offset','pKHQg','dataOffset','log','OxwaT','Fixed:\x20','HtfOk','NgkZh','WjPYP','xnByT','length','fixWebmDuration.ts','UQOGZ','QRISf','endsWith','IsOSQ','dDOvA','ZAtfo','argv','zFmWH','idLen','2128616VcTEBD','zyykT','ygDdW','yyPgH','33126nZtcRp','ArBvW','Fnahy','COrVT','adzqs','ERrGv','SBLTn','2lBTKvL','min','slice','BuLSK','NVXYn','BimMo','232404KXcCGb','jdYEI','fixWebmDuration.js','readInt16BE','Could\x20not\x20find\x20Info\x20element','error','alloc','aLryT','writeDoubleBE','sizeLen','uFEtK','QcLOE','amclg','1052364GLTEtU','aTEEL','kPoVe','LoNjr','FZMxK'];_0x343e=function(){return _0x7797f;};return _0x343e();}function findElement(_0xe24c93,_0x462376,_0x750721,_0x26b50c){const _0x29bd76=_0x3a36,_0x410309={'HFHJz':function(_0x5ae09a,_0x174a25){return _0x5ae09a<_0x174a25;},'dDOvA':function(_0x421cd1,_0x527985,_0x1fa868){return _0x421cd1(_0x527985,_0x1fa868);},'scNOF':function(_0x200190,_0x23764b){return _0x200190+_0x23764b;},'txtIU':function(_0x4cc3d2,_0x3bd5b8){return _0x4cc3d2===_0x3bd5b8;},'ygDdW':function(_0x502683,_0x116b28){return _0x502683+_0x116b28;},'SBLTn':function(_0x50d073,_0x169aca){return _0x50d073+_0x169aca;}};let _0x4cf3dc=_0x462376;while(_0x410309[_0x29bd76(0x132)](_0x4cf3dc,_0x750721)){const [_0x5cd169,_0x45039e]=readId(_0xe24c93,_0x4cf3dc),[_0x1d0bbc,_0x4a3880]=_0x410309[_0x29bd76(0x151)](readVint,_0xe24c93,_0x410309['scNOF'](_0x4cf3dc,_0x45039e));if(_0x410309['txtIU'](_0x5cd169,_0x26b50c))return{'offset':_0x4cf3dc,'idLen':_0x45039e,'sizeLen':_0x4a3880,'dataSize':_0x1d0bbc,'dataOffset':_0x410309[_0x29bd76(0x158)](_0x4cf3dc,_0x45039e)+_0x4a3880};if(_0x410309[_0x29bd76(0x151)](isUnknownSize,_0x1d0bbc,_0x4a3880))break;_0x4cf3dc+=_0x410309['scNOF'](_0x410309[_0x29bd76(0x160)](_0x45039e,_0x4a3880),_0x1d0bbc);}return null;}function computeDurationMs(_0x3225b7,_0x29b5c8){const _0x37078c=_0x3a36,_0x10dce4={'ybluY':function(_0x1eabaf,_0x57b993){return _0x1eabaf<_0x57b993;},'ERrGv':function(_0x5c3480,_0x5840c5){return _0x5c3480!==_0x5840c5;},'BuLSK':function(_0x1cefee,_0x3c026a){return _0x1cefee+_0x3c026a;},'amclg':function(_0x426780,_0x6ccc02){return _0x426780-_0x6ccc02;},'zyykT':function(_0x389b44,_0x4cf0b6){return _0x389b44===_0x4cf0b6;},'gnDQx':function(_0x371dde,_0x3d6515,_0x164fb6){return _0x371dde(_0x3d6515,_0x164fb6);},'bCgOU':function(_0xb182b2,_0xe17229){return _0xb182b2+_0xe17229;},'pGntj':function(_0x24e9c0,_0x4015a4,_0x3cf2a7){return _0x24e9c0(_0x4015a4,_0x3cf2a7);},'kXjWA':function(_0x344975,_0x1e8aa2){return _0x344975+_0x1e8aa2;},'yyPgH':function(_0xf921eb,_0x59efdb){return _0xf921eb+_0x59efdb;},'QRISf':function(_0x4bb576,_0x349946,_0x383da4){return _0x4bb576(_0x349946,_0x383da4);},'BDXWQ':function(_0x3e345d,_0x4cc4bc,_0xe9cf59,_0x418533){return _0x3e345d(_0x4cc4bc,_0xe9cf59,_0x418533);},'BimMo':function(_0x65d414,_0x4c44f9){return _0x65d414+_0x4c44f9;},'ArbMv':function(_0x4e661d,_0x2b0034){return _0x4e661d>=_0x2b0034;},'adzqs':function(_0x56551e,_0x277876,_0x33463d){return _0x56551e(_0x277876,_0x33463d);},'BHGaD':function(_0x351c8f,_0x3b7b1f){return _0x351c8f*_0x3b7b1f;},'HXawN':function(_0x1b2e95,_0x1e5322){return _0x1b2e95>_0x1e5322;}};let _0x3ad4ce=0x0;const _0x325171=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x3f3eab=_0x3225b7[_0x37078c(0x129)](_0x325171);if(_0x3f3eab===-0x1)return 0x0;while(_0x10dce4['ybluY'](_0x3f3eab,_0x3225b7[_0x37078c(0x14b)])){const [_0x120bb3,_0x1ae5e6]=readId(_0x3225b7,_0x3f3eab);if(_0x10dce4[_0x37078c(0x15f)](_0x120bb3,ID_CLUSTER))break;const [_0x1433c0,_0x3943cf]=readVint(_0x3225b7,_0x10dce4['BuLSK'](_0x3f3eab,_0x1ae5e6)),_0x543492=_0x10dce4[_0x37078c(0x164)](_0x3f3eab+_0x1ae5e6,_0x3943cf),_0x5bbc2f=isUnknownSize(_0x1433c0,_0x3943cf);let _0x54a2fb;if(_0x5bbc2f){let _0x37b824=_0x543492;while(_0x37b824<_0x10dce4[_0x37078c(0x173)](_0x3225b7['length'],0x4)){const [_0x9a0521,_0xa14af]=readId(_0x3225b7,_0x37b824);if(_0x10dce4[_0x37078c(0x157)](_0x9a0521,ID_CLUSTER)){_0x54a2fb=_0x37b824;break;}const [_0x236804,_0xfae8ad]=_0x10dce4[_0x37078c(0x128)](readVint,_0x3225b7,_0x10dce4['bCgOU'](_0x37b824,_0xa14af));if(_0x10dce4['pGntj'](isUnknownSize,_0x236804,_0xfae8ad)){_0x54a2fb=_0x3225b7[_0x37078c(0x14b)];break;}_0x37b824+=_0x10dce4['kXjWA'](_0xa14af+_0xfae8ad,_0x236804);}_0x54a2fb??=_0x3225b7[_0x37078c(0x14b)];}else _0x54a2fb=_0x10dce4[_0x37078c(0x159)](_0x543492,_0x1433c0);let _0x40f555=0x0,_0x1b19d1=_0x543492;while(_0x1b19d1<_0x54a2fb){const [_0x20eed5,_0x718378]=_0x10dce4[_0x37078c(0x14e)](readId,_0x3225b7,_0x1b19d1),[_0x4a87bd,_0x1afa89]=readVint(_0x3225b7,_0x1b19d1+_0x718378);if(_0x20eed5===ID_TIMESTAMP)_0x40f555=_0x10dce4[_0x37078c(0x12c)](readUint,_0x3225b7,_0x10dce4[_0x37078c(0x166)](_0x1b19d1,_0x718378)+_0x1afa89,_0x4a87bd);else{if(_0x10dce4[_0x37078c(0x157)](_0x20eed5,ID_SIMPLE_BLOCK)&&_0x10dce4[_0x37078c(0x12f)](_0x4a87bd,0x4)){const _0x182b5c=_0x10dce4['bCgOU'](_0x1b19d1+_0x718378,_0x1afa89),[,_0x2fef90]=_0x10dce4[_0x37078c(0x15e)](readVint,_0x3225b7,_0x182b5c),_0x541ab5=_0x3225b7[_0x37078c(0x16a)](_0x10dce4[_0x37078c(0x166)](_0x182b5c,_0x2fef90)),_0x5745ce=_0x10dce4['BHGaD'](_0x40f555+_0x541ab5,_0x29b5c8)/0xf4240;_0x10dce4[_0x37078c(0x130)](_0x5745ce,_0x3ad4ce)&&(_0x3ad4ce=_0x5745ce);}else{if(_0x20eed5===ID_CLUSTER)break;}}if(isUnknownSize(_0x4a87bd,_0x1afa89))break;_0x1b19d1+=_0x10dce4['kXjWA'](_0x718378,_0x1afa89)+_0x4a87bd;}_0x3f3eab=_0x54a2fb;}return _0x3ad4ce;}export function fixWebmDuration(_0x59d9bd,_0x2f6209){const _0x256bb0=_0x3a36,_0x1380ea={'ZtLcO':function(_0x232846,_0x22ea7a){return _0x232846(_0x22ea7a);},'FZMxK':function(_0x2e8a82,_0x22e413,_0x3be7e2){return _0x2e8a82(_0x22e413,_0x3be7e2);},'COrVT':function(_0x2d1b70,_0x5cbec2){return _0x2d1b70+_0x5cbec2;},'aLryT':function(_0x417e80,_0x101ac0){return _0x417e80+_0x101ac0;},'JHquz':function(_0x2c3a39,_0x2c9f7f){return _0x2c3a39!==_0x2c9f7f;},'FKDKo':'Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','uFEtK':function(_0x41f7f0,_0x1553d4){return _0x41f7f0<_0x1553d4;},'Lxcav':function(_0x5ce8ca,_0x1d9d85,_0x2c4140){return _0x5ce8ca(_0x1d9d85,_0x2c4140);},'SxNpB':function(_0x81ab13,_0x1bfe0a){return _0x81ab13===_0x1bfe0a;},'Wkclb':function(_0x4710b9,_0x12cf50){return _0x4710b9+_0x12cf50;},'OpAYW':function(_0x177626,_0x4938b3){return _0x177626===_0x4938b3;},'LoNjr':function(_0xa5d0fc,_0x3242fd){return _0xa5d0fc+_0x3242fd;},'sQqWe':function(_0x418c1a,_0x395c04,_0x8ac36d,_0x319411,_0x11f271){return _0x418c1a(_0x395c04,_0x8ac36d,_0x319411,_0x11f271);},'xlCCq':function(_0x4d8da1,_0x3801c6,_0x594ccc){return _0x4d8da1(_0x3801c6,_0x594ccc);},'vFgAL':function(_0x111931,_0x2e21ad){return _0x111931<=_0x2e21ad;},'XIKEe':_0x256bb0(0x12b),'NVXYn':function(_0x518647,_0x301b65){return _0x518647/_0x301b65;},'IsOSQ':function(_0x49da33,_0x525194){return _0x49da33*_0x525194;},'UQOGZ':function(_0x545bfe,_0x2187a2,_0x9db69,_0x514dde,_0x13f52c,_0x34562b,_0x294d63){return _0x545bfe(_0x2187a2,_0x9db69,_0x514dde,_0x13f52c,_0x34562b,_0x294d63);}},_0x1109bf=_0x1380ea['ZtLcO'](readFileSync,_0x59d9bd);let _0x1e2abb=0x0;const [_0x4a5e7b,_0x54b402]=_0x1380ea[_0x256bb0(0x178)](readId,_0x1109bf,_0x1e2abb),[_0x5e4ae0,_0x1916a6]=_0x1380ea['FZMxK'](readVint,_0x1109bf,_0x1380ea['COrVT'](_0x1e2abb,_0x54b402));_0x1e2abb+=_0x1380ea[_0x256bb0(0x16e)](_0x1380ea[_0x256bb0(0x16e)](_0x54b402,_0x1916a6),_0x5e4ae0);const [_0xd80576,_0x5a64a0]=_0x1380ea['FZMxK'](readId,_0x1109bf,_0x1e2abb);if(_0x1380ea[_0x256bb0(0x13a)](_0xd80576,ID_SEGMENT))return console[_0x256bb0(0x16c)](_0x1380ea['FKDKo']),![];const [,_0x559feb]=readVint(_0x1109bf,_0x1e2abb+_0x5a64a0),_0x3e75c6=_0x1e2abb+_0x5a64a0+_0x559feb;let _0x52fe30=_0x3e75c6;const _0x49a859=Math[_0x256bb0(0x162)](_0x1109bf[_0x256bb0(0x14b)],_0x3e75c6+0x2710);let _0x2a5057=null,_0x321144=null;while(_0x1380ea[_0x256bb0(0x171)](_0x52fe30,_0x49a859)){const [_0x6ec50a,_0x47e6a3]=_0x1380ea['Lxcav'](readId,_0x1109bf,_0x52fe30),[_0x4d03ec,_0x3f64be]=readVint(_0x1109bf,_0x1380ea[_0x256bb0(0x15d)](_0x52fe30,_0x47e6a3));_0x6ec50a===ID_VOID&&!_0x2a5057&&(_0x2a5057={'offset':_0x52fe30,'idLen':_0x47e6a3,'sizeLen':_0x3f64be,'dataSize':_0x4d03ec,'dataOffset':_0x52fe30+_0x47e6a3+_0x3f64be});if(_0x1380ea[_0x256bb0(0x12e)](_0x6ec50a,ID_INFO)){_0x321144={'offset':_0x52fe30,'idLen':_0x47e6a3,'sizeLen':_0x3f64be,'dataSize':_0x4d03ec,'dataOffset':_0x1380ea[_0x256bb0(0x135)](_0x52fe30+_0x47e6a3,_0x3f64be)};break;}if(_0x1380ea['OpAYW'](_0x6ec50a,ID_CLUSTER))break;if(isUnknownSize(_0x4d03ec,_0x3f64be))break;_0x52fe30+=_0x1380ea['COrVT'](_0x1380ea[_0x256bb0(0x177)](_0x47e6a3,_0x3f64be),_0x4d03ec);}if(!_0x321144)return console['error'](_0x256bb0(0x16b)),![];const _0x486b00=findElement(_0x1109bf,_0x321144[_0x256bb0(0x143)],_0x321144['dataOffset']+_0x321144[_0x256bb0(0x124)],ID_DURATION);if(_0x486b00)return![];const _0x131146=_0x1380ea[_0x256bb0(0x12a)](findElement,_0x1109bf,_0x321144[_0x256bb0(0x143)],_0x321144['dataOffset']+_0x321144['dataSize'],ID_TIMESTAMP_SCALE);let _0xb89625=0xf4240;_0x131146&&(_0xb89625=readUint(_0x1109bf,_0x131146[_0x256bb0(0x143)],_0x131146[_0x256bb0(0x124)]));const _0x1a701e=_0x1380ea['xlCCq'](computeDurationMs,_0x1109bf,_0xb89625);if(_0x1380ea['vFgAL'](_0x1a701e,0x0))return console['error'](_0x1380ea[_0x256bb0(0x12d)]),![];const _0x516b57=_0x1380ea[_0x256bb0(0x165)](_0x1380ea[_0x256bb0(0x150)](_0x1a701e,0xf4240),_0xb89625),_0x219efc=Buffer[_0x256bb0(0x138)]([writeId(ID_DURATION),writeVint(0x8),_0x1380ea['ZtLcO'](writeFloat64,_0x516b57)]),_0x2f2135=_0x219efc['length'];if(!_0x2a5057||_0x1380ea[_0x256bb0(0x171)](_0x2a5057['offset'],_0x321144['offset'])){if(_0x2a5057){const _0x550b7a=_0x1380ea[_0x256bb0(0x135)](_0x2a5057[_0x256bb0(0x155)],_0x2a5057['sizeLen'])+_0x2a5057[_0x256bb0(0x124)],_0x1cde35=_0x550b7a-_0x2f2135;if(_0x1380ea[_0x256bb0(0x171)](_0x1cde35,0x2))return _0x1380ea[_0x256bb0(0x14d)](rewriteFile,_0x1109bf,_0x321144,_0x219efc,_0xb89625,_0x1a701e,_0x2f6209);const _0x15f9e=_0x1380ea['LoNjr'](_0x321144['dataSize'],_0x2f2135),_0x4b1fd7=Buffer[_0x256bb0(0x138)]([writeId(ID_INFO),writeVint(_0x15f9e,_0x321144[_0x256bb0(0x170)])]),_0x1ec4b9=_0x1109bf[_0x256bb0(0x163)](_0x321144['dataOffset'],_0x321144['dataOffset']+_0x321144['dataSize']),_0x49ec26=writeVoid(_0x1cde35),_0x195aaf=_0x1109bf[_0x256bb0(0x163)](0x0,_0x2a5057[_0x256bb0(0x141)]),_0x246edf=_0x1109bf['slice'](_0x321144[_0x256bb0(0x143)]+_0x321144['dataSize']);return writeFileSync(_0x2f6209,Buffer[_0x256bb0(0x138)]([_0x195aaf,_0x49ec26,_0x4b1fd7,_0x1ec4b9,_0x219efc,_0x246edf])),!![];}}return rewriteFile(_0x1109bf,_0x321144,_0x219efc,_0xb89625,_0x1a701e,_0x2f6209);}function rewriteFile(_0x3ca578,_0x204bea,_0x2160ed,_0x176e29,_0x4e1de0,_0x18d4ad){const _0x2f5a56=_0x3a36,_0x2fe36b={'XaJrD':function(_0x14a97b,_0x43ed05){return _0x14a97b(_0x43ed05);},'DPSEp':function(_0x16b795,_0x18993c){return _0x16b795+_0x18993c;},'aGieZ':function(_0x4ba6be,_0x935830){return _0x4ba6be+_0x935830;}},_0x4677e1=_0x204bea[_0x2f5a56(0x124)]+_0x2160ed['length'],_0x231009=Buffer[_0x2f5a56(0x138)]([_0x2fe36b['XaJrD'](writeId,ID_INFO),writeVint(_0x4677e1)]),_0x1f5ac6=_0x204bea['idLen']+_0x204bea[_0x2f5a56(0x170)],_0x4b3b6b=_0x3ca578[_0x2f5a56(0x163)](0x0,_0x204bea['offset']),_0x388bf5=_0x3ca578[_0x2f5a56(0x163)](_0x204bea[_0x2f5a56(0x143)],_0x2fe36b['DPSEp'](_0x204bea[_0x2f5a56(0x143)],_0x204bea['dataSize'])),_0x426d40=_0x3ca578['slice'](_0x2fe36b['aGieZ'](_0x204bea[_0x2f5a56(0x141)],_0x1f5ac6)+_0x204bea['dataSize']);return writeFileSync(_0x18d4ad,Buffer[_0x2f5a56(0x138)]([_0x4b3b6b,_0x231009,_0x388bf5,_0x2160ed,_0x426d40])),!![];}if(process['argv'][0x1]?.[_0x51d321(0x14f)](_0x51d321(0x14c))||process[_0x51d321(0x153)][0x1]?.[_0x51d321(0x14f)](_0x51d321(0x169))){const input=process['argv'][0x2],output=process[_0x51d321(0x153)][0x3];(!input||!output)&&(console['error'](_0x51d321(0x13d)),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x51d321(0x144)](_0x51d321(0x146)+output):console[_0x51d321(0x144)]('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3a9995,_0x3fca65){const _0x216eeb=_0x42d3,_0x30971d=_0x3a9995();while(!![]){try{const _0x107826=parseInt(_0x216eeb(0x157))/0x1+-parseInt(_0x216eeb(0x152))/0x2*(parseInt(_0x216eeb(0x150))/0x3)+-parseInt(_0x216eeb(0x158))/0x4+parseInt(_0x216eeb(0x14f))/0x5+-parseInt(_0x216eeb(0x15c))/0x6*(-parseInt(_0x216eeb(0x15a))/0x7)+-parseInt(_0x216eeb(0x14c))/0x8*(parseInt(_0x216eeb(0x14e))/0x9)+parseInt(_0x216eeb(0x14d))/0xa;if(_0x107826===_0x3fca65)break;else _0x30971d['push'](_0x30971d['shift']());}catch(_0x5b80ae){_0x30971d['push'](_0x30971d['shift']());}}}(_0x2234,0x80d0a));import{execSync}from'child_process';export function getGitBranch(){const _0x33b5ee=_0x42d3,_0x3ceea5={'UXLEx':function(_0x308065,_0x3c613c,_0x5a77f8){return _0x308065(_0x3c613c,_0x5a77f8);},'sbJol':_0x33b5ee(0x153),'wHzKl':'pipe'};try{return _0x3ceea5[_0x33b5ee(0x155)](execSync,'git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x3ceea5['sbJol'],'stdio':[_0x33b5ee(0x156),_0x3ceea5['wHzKl'],_0x33b5ee(0x156)]})['trim']();}catch{return undefined;}}function _0x42d3(_0x5adc31,_0x4118f2){_0x5adc31=_0x5adc31-0x14b;const _0x223474=_0x2234();let _0x42d36f=_0x223474[_0x5adc31];return _0x42d36f;}export function getGitRepoUrl(){const _0x2a2093=_0x42d3,_0x519600={'SwOLs':function(_0x2e97bb,_0x4be209,_0x328d18){return _0x2e97bb(_0x4be209,_0x328d18);},'myoUv':_0x2a2093(0x151),'PanYe':'pipe','glGiD':'github.com/'};try{const _0x54fb9b=_0x519600[_0x2a2093(0x15d)](execSync,_0x519600[_0x2a2093(0x159)],{'encoding':'utf-8','stdio':[_0x2a2093(0x156),_0x519600[_0x2a2093(0x154)],_0x519600['PanYe']]})['trim']();return _0x54fb9b[_0x2a2093(0x15b)](/\.git$/,'')['replace'](/^git@github\.com:/,_0x519600['glGiD'])[_0x2a2093(0x15b)](/^https?:\/\//,'');}catch{return undefined;}}export function getGitInfo(){const _0x1245b6=_0x42d3,_0x5989dc={'UIXoF':function(_0x1cc1a6){return _0x1cc1a6();}};return{'branch':_0x5989dc[_0x1245b6(0x14b)](getGitBranch),'repoUrl':_0x5989dc[_0x1245b6(0x14b)](getGitRepoUrl)};}function _0x2234(){const _0x58ea87=['498zdizqA','utf-8','PanYe','UXLEx','pipe','44119aUKadX','336540CmcWSt','myoUv','7DMbdwP','replace','3968142Tzofiq','SwOLs','UIXoF','1984lOZbrG','5940250mxVizG','14211pjcaeg','7035iZXrOj','3585ghsMvB','git\x20remote\x20get-url\x20origin'];_0x2234=function(){return _0x58ea87;};return _0x2234();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x226ea8=_0x14ae;(function(_0x586597,_0x4e81bf){const _0x18bfb1=_0x14ae,_0x54f0b1=_0x586597();while(!![]){try{const _0x1dc636=-parseInt(_0x18bfb1(0x119))/0x1+parseInt(_0x18bfb1(0x132))/0x2+parseInt(_0x18bfb1(0x115))/0x3*(-parseInt(_0x18bfb1(0x11e))/0x4)+parseInt(_0x18bfb1(0x125))/0x5*(parseInt(_0x18bfb1(0x11b))/0x6)+parseInt(_0x18bfb1(0x129))/0x7*(-parseInt(_0x18bfb1(0x127))/0x8)+-parseInt(_0x18bfb1(0x130))/0x9*(-parseInt(_0x18bfb1(0x122))/0xa)+parseInt(_0x18bfb1(0x106))/0xb*(-parseInt(_0x18bfb1(0x123))/0xc);if(_0x1dc636===_0x4e81bf)break;else _0x54f0b1['push'](_0x54f0b1['shift']());}catch(_0x2acda2){_0x54f0b1['push'](_0x54f0b1['shift']());}}}(_0x27a1,0x3fabd));const _0x55b8ac=(function(){const _0x3134e7=_0x14ae,_0x23ae1e={'gIYzs':_0x3134e7(0x10b)};let _0x39a7e8=!![];return function(_0x3d54c5,_0x1ac74a){const _0x125243=_0x3134e7,_0x40ec47={'LDGwg':_0x23ae1e[_0x125243(0x110)]},_0x19e786=_0x39a7e8?function(){const _0x186236=_0x125243;if(_0x1ac74a){if(_0x40ec47[_0x186236(0x116)]===_0x186236(0x10b)){const _0x4aec05=_0x1ac74a['apply'](_0x3d54c5,arguments);return _0x1ac74a=null,_0x4aec05;}else{if(_0x4835b7){const _0x5e2c6c=_0x430664[_0x186236(0x10c)](_0x126cfe,arguments);return _0x5a2df3=null,_0x5e2c6c;}}}}:function(){};return _0x39a7e8=![],_0x19e786;};}()),_0x59e488=_0x55b8ac(this,function(){const _0x51ca3a=_0x14ae,_0x2b2725={'rvXaL':_0x51ca3a(0x131)};return _0x59e488[_0x51ca3a(0x11c)]()[_0x51ca3a(0x13a)](_0x2b2725[_0x51ca3a(0x114)])['toString']()[_0x51ca3a(0x111)](_0x59e488)[_0x51ca3a(0x13a)]('(((.+)+)+)+$');});_0x59e488();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x226ea8(0x10d),ENV_TOKEN_LEGACY=_0x226ea8(0x10f),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,'cli.txt'),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x226ea8(0x133));function isGitHubCI(){const _0x1d42ef=_0x226ea8;return!!process['env'][_0x1d42ef(0x121)];}async function writeToGitHubEnv(_0x3670ad,_0x4f1881){const _0x153c18=_0x226ea8,_0x2c5a37={'rFcOK':function(_0x447193,_0x13556,_0x4b8633){return _0x447193(_0x13556,_0x4b8633);}},_0x272c06=process[_0x153c18(0x12b)]['GITHUB_ENV'];_0x272c06&&await _0x2c5a37[_0x153c18(0x117)](appendFile,_0x272c06,_0x3670ad+'='+_0x4f1881+'\x0a');}export async function storeToken(_0x5cdf19){const _0x3319cc=_0x226ea8,_0x272806={'Rsktl':function(_0x44e0ec){return _0x44e0ec();},'dMUWn':function(_0x2ce1cd,_0x302857,_0x4d1296){return _0x2ce1cd(_0x302857,_0x4d1296);},'PURsi':function(_0x58d387,_0x5521cf,_0x2100c1){return _0x58d387(_0x5521cf,_0x2100c1);}};_0x272806['Rsktl'](isGitHubCI)?await _0x272806['dMUWn'](writeToGitHubEnv,ENV_TOKEN,_0x5cdf19):(await _0x272806[_0x3319cc(0x12a)](mkdir,TOKEN_DIR,{'recursive':!![]}),await writeFile(TOKEN_PATH,_0x5cdf19,{'mode':0x180}));}function _0x27a1(){const _0x4fb00e=['y2DWALi','ndu1mJG0zejjuLzg','wwjOweK','mtq0oty2zLPbyu1O','Dg9tDhjPBMC','D0PMr1y','mJy2ntG4rMrit2jg','DhjPBq','zgX6whi','r0Lusfvcx0vovG','mtuWmejHDezAqq','mtjqAeTvDKu','zgDWwKu','nJbMBM1VEwG','A1rAqxm','mtu4odG4CffeDePQ','DgjLANy','otHYuu1VzKW','ufvsC2K','zw52','wfjdyMC','r2DJuKq','CufIENa','DxrMltG','mJCYnJfRExbxzM4','kcGOlISPkYKRksSK','oda3mZe0BNL4yK1l','CMvMCMvZAc50Ehq','q2XSz0y','sLLku3q','y2v4r3a','yKfKwLm','v2L6zK0','BeTLrMi','C2vHCMnO','v2DdEKm','otu4nZi3v2fqsvD1','AMXNyK0','BNv6y1e','Aw1vvuG','DvjRC3q','yxHTyMC','yxbWBhK','uKfor0vsx0nmsv9ut0TftG','Awnuz3i','uKfor0vsx01duf9ut0TftG','z0LzENm','y29UC3rYDwn0B3i','BeLVque','zKLvzKK','CNzyyuW','m01Ht2P0BW','terhD2C','CKzJt0S'];_0x27a1=function(){return _0x4fb00e;};return _0x27a1();}function _0x14ae(_0x47ffa9,_0x2f9cec){_0x47ffa9=_0x47ffa9-0x106;const _0x32b0c9=_0x27a1();let _0x59e488=_0x32b0c9[_0x47ffa9];if(_0x14ae['FVTKqq']===undefined){var _0x55b8ac=function(_0x343400){const _0x3fa65a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x137331='',_0x6ba8f='',_0x4eb889=_0x137331+_0x55b8ac;for(let _0x4f6c11=0x0,_0x4282d2,_0x14d756,_0x4acaed=0x0;_0x14d756=_0x343400['charAt'](_0x4acaed++);~_0x14d756&&(_0x4282d2=_0x4f6c11%0x4?_0x4282d2*0x40+_0x14d756:_0x14d756,_0x4f6c11++%0x4)?_0x137331+=_0x4eb889['charCodeAt'](_0x4acaed+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x4282d2>>(-0x2*_0x4f6c11&0x6)):_0x4f6c11:0x0){_0x14d756=_0x3fa65a['indexOf'](_0x14d756);}for(let _0x13d7c8=0x0,_0x26021a=_0x137331['length'];_0x13d7c8<_0x26021a;_0x13d7c8++){_0x6ba8f+='%'+('00'+_0x137331['charCodeAt'](_0x13d7c8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x6ba8f);};_0x14ae['ipObhr']=_0x55b8ac,_0x14ae['fkBQzI']={},_0x14ae['FVTKqq']=!![];}const _0x27a11c=_0x32b0c9[0x0],_0x14aeaa=_0x47ffa9+_0x27a11c,_0x5e2039=_0x14ae['fkBQzI'][_0x14aeaa];if(!_0x5e2039){const _0x57f546=function(_0x244d67){this['iPxdFl']=_0x244d67,this['XeZpJe']=[0x1,0x0,0x0],this['HQfzMz']=function(){return'newState';},this['UmqpWP']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['rMdlBF']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x57f546['prototype']['OvUWbc']=function(){const _0x3f32b8=new RegExp(this['UmqpWP']+this['rMdlBF']),_0x5897fb=_0x3f32b8['test'](this['HQfzMz']['toString']())?--this['XeZpJe'][0x1]:--this['XeZpJe'][0x0];return this['ktEuOm'](_0x5897fb);},_0x57f546['prototype']['ktEuOm']=function(_0x3d86d5){if(!Boolean(~_0x3d86d5))return _0x3d86d5;return this['PLMusT'](this['iPxdFl']);},_0x57f546['prototype']['PLMusT']=function(_0x4b34db){for(let _0x4f8231=0x0,_0x2c1d67=this['XeZpJe']['length'];_0x4f8231<_0x2c1d67;_0x4f8231++){this['XeZpJe']['push'](Math['round'](Math['random']())),_0x2c1d67=this['XeZpJe']['length'];}return _0x4b34db(this['XeZpJe'][0x0]);},new _0x57f546(_0x14ae)['OvUWbc'](),_0x59e488=_0x14ae['ipObhr'](_0x59e488),_0x14ae['fkBQzI'][_0x14aeaa]=_0x59e488;}else _0x59e488=_0x5e2039;return _0x59e488;}export async function getToken(){const _0x4a8450=_0x226ea8,_0x2995f5={'JYJSt':'(((.+)+)+)+$','WgCzC':function(_0x4f9263,_0x3cf7f2){return _0x4f9263!==_0x3cf7f2;},'qAbzp':_0x4a8450(0x12c),'tbejv':_0x4a8450(0x118),'zdtqH':function(_0x14fc26,_0x2d4fc9){return _0x14fc26===_0x2d4fc9;},'nuzcQ':_0x4a8450(0x124),'YbhXI':function(_0x43c8ac,_0xd162c0,_0x563bda){return _0x43c8ac(_0xd162c0,_0x563bda);},'GgcRD':'utf-8'};if(process[_0x4a8450(0x12b)][ENV_TOKEN])return _0x2995f5[_0x4a8450(0x13b)](_0x2995f5[_0x4a8450(0x12e)],_0x2995f5[_0x4a8450(0x128)])?process[_0x4a8450(0x12b)][ENV_TOKEN]:_0x3e7b38[_0x4a8450(0x11c)]()[_0x4a8450(0x13a)](pKkuqe[_0x4a8450(0x135)])[_0x4a8450(0x11c)]()[_0x4a8450(0x111)](_0xb053c7)[_0x4a8450(0x13a)](pKkuqe[_0x4a8450(0x135)]);if(process[_0x4a8450(0x12b)][ENV_TOKEN_LEGACY])return process[_0x4a8450(0x12b)][ENV_TOKEN_LEGACY];try{if(_0x2995f5['zdtqH'](_0x2995f5[_0x4a8450(0x108)],_0x4a8450(0x138)))return null;else{const _0x3c7ced=await _0x2995f5[_0x4a8450(0x11a)](readFile,TOKEN_PATH,_0x2995f5[_0x4a8450(0x12d)]);return _0x3c7ced[_0x4a8450(0x11f)]()||null;}}catch{return null;}}export async function deleteToken(){const _0xba8ab7=_0x226ea8,_0x36741f={'CllgF':function(_0x3f1742,_0x1b10fa){return _0x3f1742(_0x1b10fa);},'uRkst':_0xba8ab7(0x109)};try{return await _0x36741f[_0xba8ab7(0x134)](unlink,TOKEN_PATH),!![];}catch{if(_0x36741f['uRkst']!==_0x36741f[_0xba8ab7(0x10a)]){const _0x2cc9e1=_0x1fe89e[_0xba8ab7(0x10c)](_0x37118c,arguments);return _0x125c23=null,_0x2cc9e1;}else return![];}}export async function storeRefreshToken(_0x488e5b){const _0x1cc2ce={'mAlSC':function(_0x17e742,_0x3c8ad5,_0x4f4945,_0x249c27){return _0x17e742(_0x3c8ad5,_0x4f4945,_0x249c27);}};await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x1cc2ce['mAlSC'](writeFile,REFRESH_TOKEN_PATH,_0x488e5b,{'mode':0x180});}export async function getRefreshToken(){const _0x3164a8=_0x226ea8,_0x20a185={'vubSW':_0x3164a8(0x139),'kTZAs':function(_0x1c8d90,_0x5ada2a,_0x5eb294){return _0x1c8d90(_0x5ada2a,_0x5eb294);},'wJfGV':function(_0x35ec40,_0x25bcc2){return _0x35ec40===_0x25bcc2;},'jlgbM':'zEAeu'};try{if(_0x3164a8(0x139)!==_0x20a185['vubSW'])return!!_0x511845[_0x3164a8(0x12b)][_0x3164a8(0x121)];else{const _0x5e991c=await _0x20a185[_0x3164a8(0x126)](readFile,REFRESH_TOKEN_PATH,_0x3164a8(0x12f));return _0x5e991c[_0x3164a8(0x11f)]()||null;}}catch{return _0x20a185[_0x3164a8(0x11d)](_0x20a185[_0x3164a8(0x107)],'zEAeu')?null:_0x48a6c5[_0x3164a8(0x12b)][_0x4871c6];}}export async function deleteRefreshToken(){const _0x1542af=_0x226ea8,_0x3cee79={'dlzXr':function(_0x41f9ae,_0x12230f){return _0x41f9ae===_0x12230f;},'bAdZS':_0x1542af(0x10e),'cexGp':_0x1542af(0x113)};try{return await unlink(REFRESH_TOKEN_PATH),!![];}catch{if(_0x3cee79[_0x1542af(0x120)](_0x3cee79[_0x1542af(0x137)],_0x3cee79[_0x1542af(0x136)])){const _0x512f33=_0x57f546?function(){const _0x5bfe3c=_0x1542af;if(_0x4f8231){const _0x4b0760=_0x5e9a5f[_0x5bfe3c(0x10c)](_0x4c3b90,arguments);return _0x5a28f4=null,_0x4b0760;}}:function(){};return _0x4b34db=![],_0x512f33;}else return![];}}export async function deleteAllCredentials(){const _0xb1d4e0=_0x226ea8,_0x5802db={'lIoAA':function(_0x58c95d){return _0x58c95d();}};await _0x5802db[_0xb1d4e0(0x112)](deleteToken),await deleteRefreshToken();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1ebe0b,_0xd89774){const _0x36386b=_0x2f9a,_0x41ada6=_0x1ebe0b();while(!![]){try{const _0x40079f=-parseInt(_0x36386b(0x1b9))/0x1*(-parseInt(_0x36386b(0x1c6))/0x2)+-parseInt(_0x36386b(0x1b6))/0x3*(-parseInt(_0x36386b(0x1c3))/0x4)+-parseInt(_0x36386b(0x1bc))/0x5+-parseInt(_0x36386b(0x1cb))/0x6*(parseInt(_0x36386b(0x1b5))/0x7)+-parseInt(_0x36386b(0x1c7))/0x8*(parseInt(_0x36386b(0x1bf))/0x9)+parseInt(_0x36386b(0x1c2))/0xa+parseInt(_0x36386b(0x1b8))/0xb;if(_0x40079f===_0xd89774)break;else _0x41ada6['push'](_0x41ada6['shift']());}catch(_0x281aa3){_0x41ada6['push'](_0x41ada6['shift']());}}}(_0xdd36,0x67147));const _0x2175b8=(function(){const _0x3e294c={'OnDuS':'(((.+)+)+)+$'};let _0xa1f09a=!![];return function(_0x158305,_0x3a1e8a){const _0x35370c=_0x2f9a,_0x428f52={'nOBiw':_0x3e294c[_0x35370c(0x1c9)],'zmaKR':function(_0xba6c6e,_0x2d408a){return _0xba6c6e!==_0x2d408a;},'RZzLM':_0x35370c(0x1b2),'gPcGD':'VIDWa'},_0x400c99=_0xa1f09a?function(){const _0x1500af=_0x35370c;if(_0x428f52[_0x1500af(0x1b1)](_0x428f52[_0x1500af(0x1cf)],_0x428f52[_0x1500af(0x1cf)]))return _0x1904b6['toString']()[_0x1500af(0x1c5)](_0x428f52['nOBiw'])[_0x1500af(0x1bd)]()[_0x1500af(0x1ca)](_0xeec51e)[_0x1500af(0x1c5)](_0x428f52['nOBiw']);else{if(_0x3a1e8a){if(_0x428f52[_0x1500af(0x1ce)]===_0x1500af(0x1c0)){const _0x18dcc0=_0x3a1e8a[_0x1500af(0x1c4)](_0x158305,arguments);return _0x3a1e8a=null,_0x18dcc0;}else return;}}}:function(){};return _0xa1f09a=![],_0x400c99;};}()),_0x4338c5=_0x2175b8(this,function(){const _0x530b69=_0x2f9a,_0x4be55c={'KebFn':'(((.+)+)+)+$'};return _0x4338c5[_0x530b69(0x1bd)]()[_0x530b69(0x1c5)](_0x4be55c['KebFn'])['toString']()[_0x530b69(0x1ca)](_0x4338c5)[_0x530b69(0x1c5)](_0x4be55c[_0x530b69(0x1d0)]);});_0x4338c5();import{getToken}from'./keychain.js';function _0xdd36(){const _0x30c679=['Dg9tDhjPBMC','qMvHCMvYia','mJu4m3z2y25iua','vKLev2e','sMPhz0e','nZu3nteXmerqzgHzsa','mtz2tuPSExK','yxbWBhK','C2vHCMnO','mta5ntC4ENfQqwvs','mJa5mdrvENfMqK4','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','t25eDvm','y29UC3rYDwn0B3i','mtyWotyWmKz4zhDpAa','BfL2zwu','wMLNuwq','z1bJr0q','uLP6te0','s2vIrM4','vKnJwu4','uKHOzvq','Dgv4Da','EM1Hs1i','BMTMrxe','Bg5Usfa','yxbWBgLJyxrPB24VANnVBG','n3Dcywj2yW','otKXmJLZDfDwrKi','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','mtaXnZy5ntHJtMvZB1i','nuvUyuPqza','ue9tva','zxjYB3i','mZi0mtK2nxf3tezLDq'];_0xdd36=function(){return _0x30c679;};return _0xdd36();}import{getApiBaseUrl}from'./environment.js';function _0x2f9a(_0x1c1c2b,_0x174d96){_0x1c1c2b=_0x1c1c2b-0x1b0;const _0x4847ce=_0xdd36();let _0x4338c5=_0x4847ce[_0x1c1c2b];if(_0x2f9a['EVLGkm']===undefined){var _0x2175b8=function(_0x57d901){const _0x4362d8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x24b708='',_0x4a67e9='',_0x6b91ff=_0x24b708+_0x2175b8;for(let _0x1726fc=0x0,_0x1d9676,_0x4d7896,_0xa1d51=0x0;_0x4d7896=_0x57d901['charAt'](_0xa1d51++);~_0x4d7896&&(_0x1d9676=_0x1726fc%0x4?_0x1d9676*0x40+_0x4d7896:_0x4d7896,_0x1726fc++%0x4)?_0x24b708+=_0x6b91ff['charCodeAt'](_0xa1d51+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1d9676>>(-0x2*_0x1726fc&0x6)):_0x1726fc:0x0){_0x4d7896=_0x4362d8['indexOf'](_0x4d7896);}for(let _0x37c184=0x0,_0x4f3469=_0x24b708['length'];_0x37c184<_0x4f3469;_0x37c184++){_0x4a67e9+='%'+('00'+_0x24b708['charCodeAt'](_0x37c184)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4a67e9);};_0x2f9a['SpLikZ']=_0x2175b8,_0x2f9a['pMMvse']={},_0x2f9a['EVLGkm']=!![];}const _0xdd366f=_0x4847ce[0x0],_0x2f9a1d=_0x1c1c2b+_0xdd366f,_0xf4afe2=_0x2f9a['pMMvse'][_0x2f9a1d];if(!_0xf4afe2){const _0x3f4995=function(_0x5da9e5){this['rWxvGC']=_0x5da9e5,this['ohCRWu']=[0x1,0x0,0x0],this['mLFCOJ']=function(){return'newState';},this['evEXTU']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['lwGzYw']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3f4995['prototype']['RupZzh']=function(){const _0x4504e1=new RegExp(this['evEXTU']+this['lwGzYw']),_0x2b2a0f=_0x4504e1['test'](this['mLFCOJ']['toString']())?--this['ohCRWu'][0x1]:--this['ohCRWu'][0x0];return this['biNnOY'](_0x2b2a0f);},_0x3f4995['prototype']['biNnOY']=function(_0x5b021d){if(!Boolean(~_0x5b021d))return _0x5b021d;return this['MzplFG'](this['rWxvGC']);},_0x3f4995['prototype']['MzplFG']=function(_0xe79e8){for(let _0x3bb677=0x0,_0x70969c=this['ohCRWu']['length'];_0x3bb677<_0x70969c;_0x3bb677++){this['ohCRWu']['push'](Math['round'](Math['random']())),_0x70969c=this['ohCRWu']['length'];}return _0xe79e8(this['ohCRWu'][0x0]);},new _0x3f4995(_0x2f9a)['RupZzh'](),_0x4338c5=_0x2f9a['SpLikZ'](_0x4338c5),_0x2f9a['pMMvse'][_0x2f9a1d]=_0x4338c5;}else _0x4338c5=_0xf4afe2;return _0x4338c5;}export async function logLocalAgentInstallation(_0xdcab91,_0x3a714c,_0x4d20b6){const _0x5efc2c=_0x2f9a,_0x272483={'cuJYL':function(_0x3d53e0){return _0x3d53e0();},'lYvee':function(_0x1e1b93,_0x3dce50){return _0x1e1b93!==_0x3dce50;},'RHheT':_0x5efc2c(0x1c1),'ZigQd':function(_0x5c2162,_0x4e19c8,_0x1eac98){return _0x5c2162(_0x4e19c8,_0x1eac98);},'ZJlbz':_0x5efc2c(0x1ba),'lnnHP':_0x5efc2c(0x1b4)},_0x5528a=await _0x272483['cuJYL'](getToken);if(!_0x5528a){if(_0x272483[_0x5efc2c(0x1cc)](_0x5efc2c(0x1d1),_0x272483[_0x5efc2c(0x1d2)]))return;else{const _0x8637e8=_0x3f4995?function(){const _0x5817d3=_0x5efc2c;if(_0x3bb677){const _0x354aac=_0x31eed1[_0x5817d3(0x1c4)](_0x484637,arguments);return _0x107842=null,_0x354aac;}}:function(){};return _0xe79e8=![],_0x8637e8;}}const _0x1a8c3b=getApiBaseUrl(),_0x57b4f3=await _0x272483[_0x5efc2c(0x1cd)](fetch,_0x1a8c3b+_0x5efc2c(0x1b7),{'method':_0x272483['ZJlbz'],'headers':{'Authorization':_0x5efc2c(0x1be)+_0x5528a,'Content-Type':_0x272483[_0x5efc2c(0x1b3)]},'body':JSON['stringify']({'skillName':_0xdcab91,'cliVersion':_0x4d20b6,'metadata':_0x3a714c})});if(!_0x57b4f3['ok']){const _0x124c77=await _0x57b4f3[_0x5efc2c(0x1b0)]();console[_0x5efc2c(0x1bb)](_0x5efc2c(0x1c8)+_0x124c77);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x302b9d,_0x201411){const _0x2c5ff4=_0x33aa,_0x46b906=_0x302b9d();while(!![]){try{const _0x355685=-parseInt(_0x2c5ff4(0xa4))/0x1*(-parseInt(_0x2c5ff4(0xb8))/0x2)+-parseInt(_0x2c5ff4(0xb0))/0x3+parseInt(_0x2c5ff4(0xc4))/0x4*(parseInt(_0x2c5ff4(0x92))/0x5)+parseInt(_0x2c5ff4(0x9f))/0x6+parseInt(_0x2c5ff4(0x9b))/0x7*(parseInt(_0x2c5ff4(0x9a))/0x8)+-parseInt(_0x2c5ff4(0xb7))/0x9*(-parseInt(_0x2c5ff4(0xad))/0xa)+-parseInt(_0x2c5ff4(0xc5))/0xb;if(_0x355685===_0x201411)break;else _0x46b906['push'](_0x46b906['shift']());}catch(_0x324157){_0x46b906['push'](_0x46b906['shift']());}}}(_0x362f,0xa105f));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';function _0x362f(){const _0x522656=['xtuyt','Failed\x20to\x20fetch\x20image:\x20','FhLwE','from','isArray','hook_event_name','toLowerCase','32576QDzgaa','1813vRGFQo','base64','trim','get','3258324EFGyMS','startsWith','VpwkZ','block','all','471KmrIzk','xkTsl','niPyl','headers','vQzTm','timeout','replace','MWoOQ','object','10vSgUSM','\x20bytes)','data','1001628oaRGSZ','KVmxQ','exec','DevEH','ZqmID','image/gif','TFVuj','8994555KQCeqn','1794MYLpgf','data:','size','WVJze','mimeType','image/png','map','VLTkm','source','Image\x20exceeds\x20size\x20limit\x20(','OVnRP','GGZsx','87412glPSdJ','35508792eRwjsI','https://','url','byteLength','toString','Iuihr','png','275pdLsAI'];_0x362f=function(){return _0x522656;};return _0x362f();}const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x563c38){const _0x2c1844=_0x33aa,_0x51972b={'KVmxQ':function(_0x4b4d51,_0x362231){return _0x4b4d51===_0x362231;},'UCrsh':_0x2c1844(0xac),'TFVuj':function(_0x202c14,_0x24007e){return _0x202c14!==_0x24007e;}};return _0x51972b[_0x2c1844(0xb1)](typeof _0x563c38,_0x51972b['UCrsh'])&&_0x51972b[_0x2c1844(0xb6)](_0x563c38,null);}function isImageBlock(_0x561c31){const _0x2bd0a8={'jnwjB':function(_0x5df6c3,_0x9713c6){return _0x5df6c3(_0x9713c6);}};return _0x2bd0a8['jnwjB'](isRecord,_0x561c31)&&_0x561c31['type']==='image';}function isDataUrl(_0x4e78ce){const _0x1e5f07=_0x33aa,_0x1a2650={'ZWBET':_0x1e5f07(0xb9)};return _0x4e78ce[_0x1e5f07(0xa0)](_0x1a2650['ZWBET']);}function parseDataUrl(_0xbd6c09){const _0x1414d1=_0x33aa,_0x43b50d=/^data:([^;]+);base64,(.+)$/[_0x1414d1(0xb2)](_0xbd6c09);if(!_0x43b50d)return null;const _0x54dde2=_0x43b50d[0x1][_0x1414d1(0x99)]();if(!isValidMediaType(_0x54dde2))return null;return{'data':_0x43b50d[0x2],'mediaType':_0x54dde2};}function isValidMediaType(_0x518ffc){const _0x3014d3=_0x33aa,_0x4dd508={'GGZsx':'image/jpeg','YlKoE':'image/png','oqgvh':'image/webp'};return[_0x4dd508[_0x3014d3(0xc3)],_0x4dd508['YlKoE'],'image/gif',_0x4dd508['oqgvh']]['includes'](_0x518ffc);}function inferMediaType(_0x11d6b4,_0x3f4f6b){const _0x549377=_0x33aa,_0x3ff12c={'lfcQk':'jpg','OVnRP':_0x549377(0xbd),'bdrFf':'gif','kCZyP':'image/webp'};if(_0x11d6b4){const _0x3d9644=_0x11d6b4[_0x549377(0x99)]()['split'](';')[0x0][_0x549377(0x9d)]();if(isValidMediaType(_0x3d9644))return _0x3d9644;}const _0x37774e=extname(_0x3f4f6b)['toLowerCase']()[_0x549377(0xaa)]('.','');switch(_0x37774e){case _0x3ff12c['lfcQk']:case'jpeg':return'image/jpeg';case _0x549377(0x91):return _0x3ff12c[_0x549377(0xc2)];case _0x3ff12c['bdrFf']:return _0x549377(0xb5);case'webp':return _0x3ff12c['kCZyP'];default:return'image/png';}}async function readImageFromUrl(_0xc04e64){const _0x9b1c70=_0x33aa,_0x54f711={'vQzTm':'file://','VLTkm':function(_0xbf474c,_0x53ecdf){return _0xbf474c(_0x53ecdf);},'BImCJ':function(_0x5d171a,_0x5c497e){return _0x5d171a>_0x5c497e;},'TgMTm':'http://','WVJze':_0x9b1c70(0xc6),'DcPuL':function(_0x812a1e,_0x15e276,_0x282e84){return _0x812a1e(_0x15e276,_0x282e84);},'qzZZk':function(_0x8a1202,_0x4a3f75){return _0x8a1202>_0x4a3f75;},'ZqmID':'base64','VpwkZ':'content-type','DevEH':function(_0x56bb5c,_0x1b2a22){return _0x56bb5c>_0x1b2a22;},'xkTsl':function(_0x3fa445,_0x500509,_0x361a43){return _0x3fa445(_0x500509,_0x361a43);}};if(isDataUrl(_0xc04e64)){const _0x157007=parseDataUrl(_0xc04e64);if(_0x157007)return _0x157007;throw new Error('Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content');}if(_0xc04e64[_0x9b1c70(0xa0)](_0x54f711[_0x9b1c70(0xa8)])){const _0x6e1dc1=fileURLToPath(_0xc04e64),_0x4f1d24=await _0x54f711[_0x9b1c70(0xbf)](stat,_0x6e1dc1);if(_0x54f711['BImCJ'](_0x4f1d24[_0x9b1c70(0xba)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x9b1c70(0xc1)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x3f76a8=await readFile(_0x6e1dc1);return{'data':_0x3f76a8[_0x9b1c70(0xc9)]('base64'),'mediaType':inferMediaType(null,_0x6e1dc1)};}if(_0xc04e64['startsWith'](_0x54f711['TgMTm'])||_0xc04e64['startsWith'](_0x54f711[_0x9b1c70(0xbb)])){const _0x39edf9=await _0x54f711['DcPuL'](fetch,_0xc04e64,{'signal':AbortSignal[_0x9b1c70(0xa9)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x39edf9['ok'])throw new Error(_0x9b1c70(0x94)+_0x39edf9['status']);const _0x4034fb=_0x39edf9[_0x9b1c70(0xa7)][_0x9b1c70(0x9e)]('content-length');if(_0x4034fb){const _0x138ae0=Number(_0x4034fb);if(!Number['isNaN'](_0x138ae0)&&_0x54f711['qzZZk'](_0x138ae0,MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x5c5160=await _0x39edf9['arrayBuffer']();if(_0x5c5160[_0x9b1c70(0xc8)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x9b1c70(0xc1)+MAX_IMAGE_SIZE_BYTES+_0x9b1c70(0xae));return{'data':Buffer[_0x9b1c70(0x96)](_0x5c5160)[_0x9b1c70(0xc9)](_0x54f711[_0x9b1c70(0xb4)]),'mediaType':inferMediaType(_0x39edf9['headers']['get'](_0x54f711[_0x9b1c70(0xa1)]),_0xc04e64)};}const _0x223e1a=await stat(_0xc04e64);if(_0x54f711[_0x9b1c70(0xb3)](_0x223e1a[_0x9b1c70(0xba)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x9b1c70(0xc1)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x4d950e=await _0x54f711['VLTkm'](readFile,_0xc04e64);return{'data':_0x4d950e[_0x9b1c70(0xc9)](_0x54f711['ZqmID']),'mediaType':_0x54f711[_0x9b1c70(0xa5)](inferMediaType,null,_0xc04e64)};}async function convertImageBlockToBase64(_0x5edc70){const _0x4c77a0=_0x33aa,_0x2bf075={'NjXJK':function(_0x91a6e,_0x18d02e){return _0x91a6e===_0x18d02e;},'MWoOQ':_0x4c77a0(0x9c),'niPyl':function(_0x4a3af4,_0x1e1cf3){return _0x4a3af4(_0x1e1cf3);}};if(_0x2bf075['NjXJK'](_0x5edc70[_0x4c77a0(0xc0)]?.['type'],_0x2bf075[_0x4c77a0(0xab)]))return{'updated':![],'block':_0x5edc70};if(_0x5edc70[_0x4c77a0(0xaf)]&&_0x5edc70[_0x4c77a0(0xbc)])return{'updated':![],'block':_0x5edc70};const _0x332046=_0x5edc70[_0x4c77a0(0xc0)]?.[_0x4c77a0(0xc7)]??_0x5edc70[_0x4c77a0(0xc7)];if(!_0x332046)return{'updated':![],'block':_0x5edc70};const _0x1f4643=await _0x2bf075[_0x4c77a0(0xa6)](readImageFromUrl,_0x332046);return{'updated':!![],'block':{..._0x5edc70,'source':{'type':'base64','media_type':_0x1f4643['mediaType'],'data':_0x1f4643['data']},'url':undefined}};}function _0x33aa(_0x21bfbb,_0x2d6935){_0x21bfbb=_0x21bfbb-0x90;const _0x362f8f=_0x362f();let _0x33aab8=_0x362f8f[_0x21bfbb];return _0x33aab8;}async function convertToolOutputImagesToBase64(_0x49ef7d){const _0x4d6a22=_0x33aa,_0x445c52={'Iuihr':function(_0x390d14,_0x37d816){return _0x390d14(_0x37d816);},'xtuyt':function(_0x1c93f5,_0x482b69){return _0x1c93f5(_0x482b69);}};if(!_0x445c52[_0x4d6a22(0x90)](isRecord,_0x49ef7d))return{'updated':![],'output':_0x49ef7d};const _0x566669=_0x49ef7d['content'];if(!Array[_0x4d6a22(0x97)](_0x566669))return{'updated':![],'output':_0x49ef7d};let _0x3b0dfa=![];const _0x50e5ee=await Promise[_0x4d6a22(0xa3)](_0x566669[_0x4d6a22(0xbe)](async _0x3db3b4=>{const _0x1dfe7d=_0x4d6a22;if(!_0x445c52[_0x1dfe7d(0x90)](isImageBlock,_0x3db3b4))return _0x3db3b4;try{const _0x176eda=await _0x445c52[_0x1dfe7d(0x93)](convertImageBlockToBase64,_0x3db3b4);if(_0x176eda['updated'])_0x3b0dfa=!![];return _0x176eda[_0x1dfe7d(0xa2)];}catch{return _0x3db3b4;}}));if(!_0x3b0dfa)return{'updated':![],'output':_0x49ef7d};return{'updated':!![],'output':{..._0x49ef7d,'content':_0x50e5ee}};}export function createMcpImageBase64Hook(){const _0x1e746b={'NMUib':function(_0x5a3587,_0x56f4d6){return _0x5a3587(_0x56f4d6);},'FhLwE':'PostToolUse'};return async _0x4bbd59=>{const _0x6ffeca=_0x33aa;if(_0x4bbd59[_0x6ffeca(0x98)]!=='PostToolUse')return{};const _0xc38903=_0x4bbd59,{updated:_0x2f3592,output:_0x338ec9}=await _0x1e746b['NMUib'](convertToolOutputImagesToBase64,_0xc38903['tool_response']);if(!_0x2f3592)return{};return{'hookSpecificOutput':{'hookEventName':_0x1e746b[_0x6ffeca(0x95)],'updatedMCPToolOutput':_0x338ec9}};};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2236d5=_0x2f64;function _0x2f64(_0x213617,_0xcaa6f2){_0x213617=_0x213617-0x186;const _0x15f7f7=_0x15f7();let _0x2f6414=_0x15f7f7[_0x213617];return _0x2f6414;}(function(_0x27ae6b,_0x2d37e2){const _0x3e4f13=_0x2f64,_0x527164=_0x27ae6b();while(!![]){try{const _0x3d8314=parseInt(_0x3e4f13(0x187))/0x1+-parseInt(_0x3e4f13(0x18b))/0x2+-parseInt(_0x3e4f13(0x189))/0x3+-parseInt(_0x3e4f13(0x18a))/0x4*(parseInt(_0x3e4f13(0x190))/0x5)+parseInt(_0x3e4f13(0x18c))/0x6*(parseInt(_0x3e4f13(0x191))/0x7)+parseInt(_0x3e4f13(0x18d))/0x8+parseInt(_0x3e4f13(0x18f))/0x9;if(_0x3d8314===_0x2d37e2)break;else _0x527164['push'](_0x527164['shift']());}catch(_0x11592d){_0x527164['push'](_0x527164['shift']());}}}(_0x15f7,0xce097));const VERIFY_MODEL_ALIASES={'opus':_0x2236d5(0x188),'sonnet':_0x2236d5(0x186)};export const DEFAULT_VERIFY_MODEL=_0x2236d5(0x186);export function resolveVerifyModel(_0x2cfa07){const _0x231753=_0x2236d5,_0x28f9f7={'jiyTM':function(_0x13bfbb,_0x432d7d){return _0x13bfbb??_0x432d7d;}};if(!_0x2cfa07)return undefined;const _0x1c454b=_0x2cfa07['trim']();if(!_0x1c454b)return undefined;const _0xa85b86=VERIFY_MODEL_ALIASES[_0x1c454b[_0x231753(0x18e)]()];return _0x28f9f7['jiyTM'](_0xa85b86,_0x1c454b);}function _0x15f7(){const _0x13962a=['4633916hJdUcW','1232904jUDoZG','16806pBQNVl','1267816qnToei','toLowerCase','6271488hPKAXJ','5dzkJGw','2583pqEMKR','claude-sonnet-4-6','896426eYRnuj','claude-opus-4-6','499338lQRCVA'];_0x15f7=function(){return _0x13962a;};return _0x15f7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x41b928,_0x386d35){var _0x3da92d=_0x200b,_0x150dc8=_0x41b928();while(!![]){try{var _0x536824=parseInt(_0x3da92d(0xe6))/0x1*(parseInt(_0x3da92d(0xf1))/0x2)+parseInt(_0x3da92d(0xea))/0x3+parseInt(_0x3da92d(0xec))/0x4+-parseInt(_0x3da92d(0xe4))/0x5*(-parseInt(_0x3da92d(0xed))/0x6)+-parseInt(_0x3da92d(0xf3))/0x7+parseInt(_0x3da92d(0xe7))/0x8*(parseInt(_0x3da92d(0xf6))/0x9)+-parseInt(_0x3da92d(0xe3))/0xa;if(_0x536824===_0x386d35)break;else _0x150dc8['push'](_0x150dc8['shift']());}catch(_0x228f83){_0x150dc8['push'](_0x150dc8['shift']());}}}(_0x3f36,0xa7471));import{homedir}from'os';function _0x3f36(){var _0x131294=['3002765OVVBwI','env','1yGuSkB','16MyKAEl','skills','FTcSQ','3079347uLLXHq','TkvMb','3183020ULhblM','12OIJCza','OPENCODE_CONFIG_DIR','user','ghoPl','826490eHYMgs','XDG_CONFIG_HOME','257208hjoOhM','cAxjE','opencode','4725801oABbEW','.opencode','37648200aJRuWt'];_0x3f36=function(){return _0x131294;};return _0x3f36();}import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x554574){var _0x499dc2=_0x200b,_0x39f617={'ocZMu':_0x499dc2(0xef),'ghoPl':function(_0x534720,_0x3b7566,_0x343321,_0x52991a){return _0x534720(_0x3b7566,_0x343321,_0x52991a);},'sHJgU':function(_0xd3446){return _0xd3446();},'cAxjE':'.config','Kgjdt':_0x499dc2(0xe2)};if(process['env'][_0x499dc2(0xee)])return process[_0x499dc2(0xe5)]['OPENCODE_CONFIG_DIR'];if(_0x554574===_0x39f617['ocZMu']){if(process[_0x499dc2(0xe5)]['XDG_CONFIG_HOME'])return join(process['env'][_0x499dc2(0xf2)],_0x499dc2(0xf5));return _0x39f617[_0x499dc2(0xf0)](join,_0x39f617['sHJgU'](homedir),_0x39f617[_0x499dc2(0xf4)],_0x499dc2(0xf5));}return join(getProjectRoot(),_0x39f617['Kgjdt']);}function _0x200b(_0xddfd24,_0x53295c){_0xddfd24=_0xddfd24-0xe2;var _0x3f3632=_0x3f36();var _0x200b1e=_0x3f3632[_0xddfd24];return _0x200b1e;}export function getOpencodeSkillsDir(_0x292d48){var _0x272efb=_0x200b,_0x19d019={'FTcSQ':function(_0x2551b0,_0x1b955a,_0x23897a){return _0x2551b0(_0x1b955a,_0x23897a);},'TkvMb':function(_0x4c62be,_0x378c4a){return _0x4c62be(_0x378c4a);}};return _0x19d019[_0x272efb(0xe9)](join,_0x19d019[_0x272efb(0xeb)](getOpencodeConfigDir,_0x292d48),_0x272efb(0xe8));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x2050(_0x59aa27,_0xaa3c5){_0x59aa27=_0x59aa27-0x1ee;const _0x42c0da=_0x42c0();let _0x20507b=_0x42c0da[_0x59aa27];return _0x20507b;}const _0xa24eb=_0x2050;function _0x42c0(){const _0x4cfaea=['7uCddbi','6209920cwGvvE','495080zKqQlH','779382JzqvGe','9hdoscN','19127wETeJL','4996945tBXYTv','74FeUbZB','1285419ubmpBL','13829310vCkWJL','ranger\x20profile\x20add\x20local'];_0x42c0=function(){return _0x4cfaea;};return _0x42c0();}(function(_0x3637d0,_0x4e2b37){const _0x4c3a16=_0x2050,_0x4875c4=_0x3637d0();while(!![]){try{const _0x325522=-parseInt(_0x4c3a16(0x1f5))/0x1*(parseInt(_0x4c3a16(0x1f7))/0x2)+parseInt(_0x4c3a16(0x1f8))/0x3+-parseInt(_0x4c3a16(0x1f2))/0x4+-parseInt(_0x4c3a16(0x1f6))/0x5+parseInt(_0x4c3a16(0x1f3))/0x6*(-parseInt(_0x4c3a16(0x1f0))/0x7)+-parseInt(_0x4c3a16(0x1f1))/0x8*(-parseInt(_0x4c3a16(0x1f4))/0x9)+parseInt(_0x4c3a16(0x1ee))/0xa;if(_0x325522===_0x4e2b37)break;else _0x4875c4['push'](_0x4875c4['shift']());}catch(_0x1578e4){_0x4875c4['push'](_0x4875c4['shift']());}}}(_0x42c0,0x990c9));const DEFAULT_PROFILE_COMMAND=_0xa24eb(0x1ef);export function formatProfileRequiredMessage(_0x54b2f4){const _0xa022c5={'ivaZB':function(_0x34ca34,_0x11b0a7){return _0x34ca34(_0x11b0a7);}},_0x3cbf30=_0x54b2f4?_0xa022c5['ivaZB'](_0x54b2f4,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'+_0x3cbf30+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x39c6(_0x135e45,_0x41f56f){_0x135e45=_0x135e45-0x131;const _0x349c67=_0x349c();let _0x39c613=_0x349c67[_0x135e45];return _0x39c613;}(function(_0xe0c23,_0x449bb9){const _0x167aff=_0x39c6,_0x52adb5=_0xe0c23();while(!![]){try{const _0x34019c=parseInt(_0x167aff(0x131))/0x1+-parseInt(_0x167aff(0x133))/0x2+parseInt(_0x167aff(0x134))/0x3+parseInt(_0x167aff(0x13a))/0x4+parseInt(_0x167aff(0x139))/0x5*(-parseInt(_0x167aff(0x141))/0x6)+parseInt(_0x167aff(0x13d))/0x7*(parseInt(_0x167aff(0x13c))/0x8)+parseInt(_0x167aff(0x138))/0x9*(-parseInt(_0x167aff(0x135))/0xa);if(_0x34019c===_0x449bb9)break;else _0x52adb5['push'](_0x52adb5['shift']());}catch(_0x42cf01){_0x52adb5['push'](_0x52adb5['shift']());}}}(_0x349c,0xdba4e));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x120540=_0x39c6,_0xc5f227={'hfwur':function(_0x1a1d61,_0x5b3c17){return _0x1a1d61+_0x5b3c17;},'XiKZd':function(_0x1878ab,_0x4c6c0e){return _0x1878ab+_0x4c6c0e;},'OgtNq':function(_0x29fa26,_0xd84bba){return _0x29fa26+_0xd84bba;},'bimnL':'<div\x20class=\x22ranger-banner__message\x22>','TfZMg':_0x120540(0x13f)},_0x4673d1=_0xc5f227['hfwur'](_0xc5f227['XiKZd'](_0xc5f227['OgtNq'](_0x120540(0x137),'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>')+_0xc5f227['bimnL']+_0x120540(0x144)+_0x120540(0x13b),_0xc5f227[_0x120540(0x132)])+_0xc5f227['TfZMg'],_0x120540(0x13e)),_0x594f95=_0x120540(0x140);return _0x120540(0x136)+JSON[_0x120540(0x143)](_0x4673d1)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON[_0x120540(0x143)](_0x594f95)+_0x120540(0x142);})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x349c(){const _0x36f61b=['8847zVcbRU','547975XuLQRO','2927912DEGhLu','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','8596456QqmODG','7kybYpM','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','</div>','\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','54FYsUbC',';\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','stringify','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','924700GXtmxd','TfZMg','18304btfkKS','1009959ROmOYe','11930lmoUBk','\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','<div\x20class=\x22ranger-banner__content\x22>'];_0x349c=function(){return _0x36f61b;};return _0x349c();}export async function addProfileSetupBanner(_0x9cf848){await _0x9cf848['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4f87c9,_0x4c824a){const _0x1be645=_0x154a,_0x3c7e92=_0x4f87c9();while(!![]){try{const _0x1fa9b0=parseInt(_0x1be645(0x14b))/0x1*(-parseInt(_0x1be645(0x150))/0x2)+parseInt(_0x1be645(0x14f))/0x3+-parseInt(_0x1be645(0x148))/0x4+-parseInt(_0x1be645(0x13f))/0x5*(-parseInt(_0x1be645(0x14c))/0x6)+parseInt(_0x1be645(0x142))/0x7+-parseInt(_0x1be645(0x145))/0x8+parseInt(_0x1be645(0x144))/0x9*(parseInt(_0x1be645(0x149))/0xa);if(_0x1fa9b0===_0x4c824a)break;else _0x3c7e92['push'](_0x3c7e92['shift']());}catch(_0x5e40c4){_0x3c7e92['push'](_0x3c7e92['shift']());}}}(_0x1967,0xdae48));function _0x154a(_0x17b5e9,_0x13ac7c){_0x17b5e9=_0x17b5e9-0x13d;const _0x196799=_0x1967();let _0x154a9c=_0x196799[_0x17b5e9];return _0x154a9c;}import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';function _0x1967(){const _0x5f2e3f=['object','uMtJk','6967388OyjEwG','2540eBMahd','string','3LNEhIr','492Athrwm','model','parse','1984695qJnUab','175634pJNFnl','mjXkF','utf-8','46295rnHCar','message','warn','1291255tjhkKB','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','61281EaumfM','3462976MrFMgW'];_0x1967=function(){return _0x5f2e3f;};return _0x1967();}export function getRangerConfigPath(){const _0x387878=_0x154a,_0x2c179f={'mjXkF':function(_0x5a2575,_0x46aff1,_0x4f6894){return _0x5a2575(_0x46aff1,_0x4f6894);},'nMFWb':function(_0xe7f309){return _0xe7f309();}};return _0x2c179f[_0x387878(0x13d)](join,_0x2c179f['nMFWb'](getRangerDir),'config.json');}export async function loadRangerConfig(){const _0x12585f=_0x154a,_0x42fcbe={'MCmIf':function(_0x54717f){return _0x54717f();},'uMtJk':function(_0x12da66,_0x3a484d,_0x5cceea){return _0x12da66(_0x3a484d,_0x5cceea);},'SZWST':_0x12585f(0x14a)},_0x1922dd=_0x42fcbe['MCmIf'](getRangerConfigPath);if(!existsSync(_0x1922dd))return{};try{const _0x523b79=await _0x42fcbe[_0x12585f(0x147)](readFile,_0x1922dd,_0x12585f(0x13e)),_0x879ac3=JSON[_0x12585f(0x14e)](_0x523b79);if(!_0x879ac3||typeof _0x879ac3!==_0x12585f(0x146)||Array['isArray'](_0x879ac3))return{};const _0x59c53f={},_0x225208=_0x879ac3[_0x12585f(0x14d)];return typeof _0x225208===_0x42fcbe['SZWST']&&(_0x59c53f['model']=_0x225208),_0x59c53f;}catch(_0x50ceb2){const _0x16fd33=_0x50ceb2 instanceof Error?_0x50ceb2[_0x12585f(0x140)]:String(_0x50ceb2);return console[_0x12585f(0x141)](_0x12585f(0x143)+_0x1922dd+':\x20'+_0x16fd33),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5e73c3,_0x437602){const _0x531897=_0x2d55,_0x104fcc=_0x5e73c3();while(!![]){try{const _0x4a3abb=parseInt(_0x531897(0x97))/0x1*(parseInt(_0x531897(0x95))/0x2)+-parseInt(_0x531897(0x8a))/0x3+parseInt(_0x531897(0x8e))/0x4*(-parseInt(_0x531897(0x8b))/0x5)+-parseInt(_0x531897(0x94))/0x6*(-parseInt(_0x531897(0x98))/0x7)+-parseInt(_0x531897(0x99))/0x8*(-parseInt(_0x531897(0x92))/0x9)+-parseInt(_0x531897(0x91))/0xa*(parseInt(_0x531897(0x9b))/0xb)+parseInt(_0x531897(0x96))/0xc;if(_0x4a3abb===_0x437602)break;else _0x104fcc['push'](_0x104fcc['shift']());}catch(_0x4acc02){_0x104fcc['push'](_0x104fcc['shift']());}}}(_0x5807,0xc31f9));import{dirname,join,parse}from'path';import{existsSync}from'fs';function _0x5807(){const _0x14662f=['.ranger','pHgRz','1893490ahnurP','128349iqwbAC','HwAuK','6LVfvda','10bwUhYL','9851748NpZuRF','236563IPYHVo','10727738ZjqyzM','280fLECgN','OTrkg','77FZAqxC','.git','gnYlC','cwd','2898858MQqsJD','95GaFnSE','vCMdt','dlafX','198844AnSpbi'];_0x5807=function(){return _0x14662f;};return _0x5807();}import{homedir}from'os';export function getRangerRoot(){const _0x2ad9a3=_0x2d55,_0x4ece79={'Dctqo':function(_0x4e5f0c,_0x47ad50){return _0x4e5f0c(_0x47ad50);},'CUOCk':function(_0x47b4f7,_0x4cd74e){return _0x47b4f7(_0x4cd74e);},'WKJWI':function(_0x5c8049,_0x1bf03f){return _0x5c8049(_0x1bf03f);},'wZJrO':function(_0x34e3ae,_0x377d0c,_0xf1fcb2){return _0x34e3ae(_0x377d0c,_0xf1fcb2);},'OTrkg':_0x2ad9a3(0x8f),'HwAuK':function(_0x1eba70){return _0x1eba70();}};let _0x4abaf3=process[_0x2ad9a3(0x9e)]();const _0x40bde8=_0x4ece79['Dctqo'](parse,_0x4abaf3)['root'];while(_0x4abaf3!==_0x40bde8){if(_0x4ece79['CUOCk'](existsSync,join(_0x4abaf3,_0x2ad9a3(0x8f))))return _0x4abaf3;_0x4abaf3=_0x4ece79['WKJWI'](dirname,_0x4abaf3);}if(_0x4ece79['Dctqo'](existsSync,_0x4ece79['wZJrO'](join,_0x40bde8,_0x4ece79[_0x2ad9a3(0x9a)])))return _0x40bde8;const _0xdff1b4=_0x4ece79[_0x2ad9a3(0x93)](findGitRoot);if(_0xdff1b4)return _0xdff1b4;return process['cwd']();}export function getRangerDir(){const _0x536823=_0x2d55,_0x253b82={'dlafX':_0x536823(0x8f)};return join(getRangerRoot(),_0x253b82[_0x536823(0x8d)]);}function _0x2d55(_0x111d18,_0x54e45f){_0x111d18=_0x111d18-0x8a;const _0x58079b=_0x5807();let _0x2d5543=_0x58079b[_0x111d18];return _0x2d5543;}export function findGitRoot(){const _0x2279dc=_0x2d55,_0x366e4e={'vCMdt':function(_0xd3e025,_0x2e2157){return _0xd3e025(_0x2e2157);},'bVDgf':function(_0x17efae,_0x21b260,_0x4c69e4){return _0x17efae(_0x21b260,_0x4c69e4);},'gnYlC':'.git'};let _0x58ad91=process[_0x2279dc(0x9e)]();const _0x58a667=_0x366e4e['vCMdt'](parse,_0x58ad91)['root'];while(_0x58ad91!==_0x58a667){if(existsSync(_0x366e4e['bVDgf'](join,_0x58ad91,_0x2279dc(0x9c))))return _0x58ad91;_0x58ad91=_0x366e4e['vCMdt'](dirname,_0x58ad91);}if(_0x366e4e[_0x2279dc(0x8c)](existsSync,join(_0x58a667,_0x366e4e[_0x2279dc(0x9d)])))return _0x58a667;return null;}export function getRangerHomeDir(){const _0x209d3b=_0x2d55,_0x1517d={'pHgRz':function(_0x10477e){return _0x10477e();}};return join(_0x1517d[_0x209d3b(0x90)](homedir),'.ranger');}
|