@ranger-testing/ranger-cli 2.4.7 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/reportGenerator.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyInBrowser.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3f3212,_0x1e6c3c){const _0x3c1c68=_0x7754,_0x2eb488=_0x3f3212();while(!![]){try{const _0x2e29d9=parseInt(_0x3c1c68(0x178))/0x1*(-parseInt(_0x3c1c68(0x194))/0x2)+-parseInt(_0x3c1c68(0x182))/0x3+-parseInt(_0x3c1c68(0x192))/0x4*(-parseInt(_0x3c1c68(0x176))/0x5)+-parseInt(_0x3c1c68(0x171))/0x6*(parseInt(_0x3c1c68(0x186))/0x7)+parseInt(_0x3c1c68(0x175))/0x8*(-parseInt(_0x3c1c68(0x17a))/0x9)+parseInt(_0x3c1c68(0x15c))/0xa+parseInt(_0x3c1c68(0x162))/0xb;if(_0x2e29d9===_0x1e6c3c)break;else _0x2eb488['push'](_0x2eb488['shift']());}catch(_0x78787c){_0x2eb488['push'](_0x2eb488['shift']());}}}(_0x57bc,0x9dcd6));import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{withRetry}from'./retry.js';export async function createFeature(_0x554ad4){const _0x185069=_0x7754,_0x5ec59b={'ljJrt':_0x185069(0x151),'wlUIl':function(_0x2e9c62,_0x449feb,_0x1b8709){return _0x2e9c62(_0x449feb,_0x1b8709);},'FXwIa':_0x185069(0x17d)},_0x157942=await getToken();if(!_0x157942)throw new Error(_0x5ec59b['ljJrt']);const _0x3b90ee=getApiBaseUrl(),_0x22cc35=await _0x5ec59b['wlUIl'](fetch,_0x3b90ee+'/api/v1/mcp/features',{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0x157942,'Content-Type':'application/json'},'body':JSON['stringify'](_0x554ad4)});if(!_0x22cc35['ok']){if(_0x22cc35[_0x185069(0x180)]===0x192){const _0x2d704f=await _0x22cc35['json'](),_0x472aa2=_0x2d704f[_0x185069(0x172)]||_0x5ec59b['FXwIa'];throw new Error((_0x2d704f['message']||'Feature\x20limit\x20exceeded')+'\x0a\x0aUpgrade\x20your\x20plan:\x20'+_0x472aa2);}const _0x391c63=await _0x22cc35[_0x185069(0x166)]();throw new Error(_0x185069(0x167)+_0x391c63);}return _0x22cc35[_0x185069(0x185)]();}export async function listFeatures(_0x452a82){const _0x1c50c5=_0x7754,_0x55b559={'epzyO':function(_0x34195a){return _0x34195a();},'jQfXW':'limit','YtfaR':'GET'},_0x244a60=await getToken();if(!_0x244a60)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x3d4997=_0x55b559[_0x1c50c5(0x152)](getApiBaseUrl),_0x29f37c=new URLSearchParams();if(_0x452a82?.['gitRepoUrl'])_0x29f37c['set'](_0x1c50c5(0x155),_0x452a82[_0x1c50c5(0x155)]);if(_0x452a82?.[_0x1c50c5(0x150)])_0x29f37c['set']('gitBranch',_0x452a82[_0x1c50c5(0x150)]);if(_0x452a82?.['limit'])_0x29f37c['set'](_0x55b559['jQfXW'],_0x452a82['limit'][_0x1c50c5(0x183)]());if(_0x452a82?.[_0x1c50c5(0x18d)])_0x29f37c[_0x1c50c5(0x165)]('offset',_0x452a82[_0x1c50c5(0x18d)]['toString']());if(_0x452a82?.['includeDeleted'])_0x29f37c['set'](_0x1c50c5(0x193),_0x1c50c5(0x190));const _0x16eafc=_0x3d4997+'/api/v1/mcp/features'+(_0x29f37c[_0x1c50c5(0x183)]()?'?'+_0x29f37c[_0x1c50c5(0x183)]():''),_0x3addd4=await fetch(_0x16eafc,{'method':_0x55b559['YtfaR'],'headers':{'Authorization':_0x1c50c5(0x16d)+_0x244a60}});if(!_0x3addd4['ok']){const _0x31f6e5=await _0x3addd4[_0x1c50c5(0x166)]();throw new Error(_0x1c50c5(0x179)+_0x31f6e5);}return _0x3addd4[_0x1c50c5(0x185)]();}export async function getFeature(_0xf52706){const _0x3d389f=_0x7754,_0x285b52={'HCcTh':_0x3d389f(0x151)},_0x301e7e=await getToken();if(!_0x301e7e)throw new Error(_0x285b52['HCcTh']);const _0x12784b=getApiBaseUrl(),_0x46da88=await fetch(_0x12784b+'/api/v1/mcp/features/'+_0xf52706,{'method':'GET','headers':{'Authorization':_0x3d389f(0x16d)+_0x301e7e}});if(!_0x46da88['ok']){const _0x467f4b=await _0x46da88['text']();throw new Error(_0x3d389f(0x159)+_0x467f4b);}return _0x46da88['json']();}export async function updateFeature(_0x1d50be,_0x255628){const _0x2d2781=_0x7754,_0x44fccb={'sRAtR':function(_0x3991c6){return _0x3991c6();},'dAEgF':_0x2d2781(0x184),'HkBAR':_0x2d2781(0x174)},_0x42ee67=await _0x44fccb[_0x2d2781(0x15e)](getToken);if(!_0x42ee67)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x25534f=_0x44fccb['sRAtR'](getApiBaseUrl),_0x19a272=await fetch(_0x25534f+'/api/v1/mcp/features/'+_0x1d50be,{'method':_0x44fccb[_0x2d2781(0x187)],'headers':{'Authorization':_0x2d2781(0x16d)+_0x42ee67,'Content-Type':_0x44fccb[_0x2d2781(0x156)]},'body':JSON['stringify'](_0x255628)});if(!_0x19a272['ok']){const _0x267572=await _0x19a272[_0x2d2781(0x166)]();throw new Error(_0x2d2781(0x18e)+_0x267572);}return _0x19a272['json']();}export async function createChecklistItem(_0x46617f,_0x36fc5f,_0x2e3906){const _0x2232d3=_0x7754,_0x2f6b53={'JciWu':function(_0xe8234){return _0xe8234();}},_0x22194c=await _0x2f6b53['JciWu'](getToken);if(!_0x22194c)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x4887ac=_0x2f6b53['JciWu'](getApiBaseUrl),_0x15d3fc=await fetch(_0x4887ac+'/api/v1/mcp/features/'+_0x46617f+'/checklist',{'method':_0x2232d3(0x177),'headers':{'Authorization':_0x2232d3(0x16d)+_0x22194c,'Content-Type':'application/json'},'body':JSON['stringify']({'description':_0x36fc5f,'position':_0x2e3906})});if(!_0x15d3fc['ok']){const _0xdd8f44=await _0x15d3fc['text']();throw new Error(_0x2232d3(0x181)+_0xdd8f44);}return _0x15d3fc['json']();}export async function updateChecklistItem(_0x3c8d3f,_0x2a6f7f,_0x4e1cda){const _0x45dfc9=_0x7754,_0x1da6a9={'DCwtO':function(_0xad09f){return _0xad09f();},'TbbAp':function(_0x30bc8f,_0x36607a,_0x2ba6a6){return _0x30bc8f(_0x36607a,_0x2ba6a6);},'VTGpV':_0x45dfc9(0x184)};return withRetry(async()=>{const _0x27d521=_0x45dfc9,_0x1d9930=await _0x1da6a9['DCwtO'](getToken);if(!_0x1d9930)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x32be52=_0x1da6a9[_0x27d521(0x16f)](getApiBaseUrl),_0x281cc6=await _0x1da6a9[_0x27d521(0x169)](fetch,_0x32be52+'/api/v1/mcp/features/'+_0x3c8d3f+'/checklist/'+_0x2a6f7f,{'method':_0x1da6a9['VTGpV'],'headers':{'Authorization':_0x27d521(0x16d)+_0x1d9930,'Content-Type':_0x27d521(0x174)},'body':JSON['stringify'](_0x4e1cda)});if(!_0x281cc6['ok']){const _0x35f535=await _0x281cc6['text']();throw new Error(_0x27d521(0x157)+_0x35f535);}return _0x281cc6[_0x27d521(0x185)]();},{'label':_0x45dfc9(0x163)});}export async function getFeatureReport(_0x7dffd4){const _0x12456e=_0x7754,_0x576269={'GSeJp':function(_0x1e1878){return _0x1e1878();}},_0x2eb806=await _0x576269['GSeJp'](getToken);if(!_0x2eb806)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x16cd38=getApiBaseUrl(),_0x4555a1=await fetch(_0x16cd38+'/api/v1/mcp/features/'+_0x7dffd4+'/report',{'method':'GET','headers':{'Authorization':_0x12456e(0x16d)+_0x2eb806}});if(!_0x4555a1['ok']){const _0x48d2c4=await _0x4555a1[_0x12456e(0x166)]();throw new Error(_0x12456e(0x15f)+_0x48d2c4);}return _0x4555a1['json']();}export async function getFeatureReportMarkdown(_0xbfd585,_0x4daa44){const _0x2630af=_0x7754,_0x59c6d8={'MqfSz':function(_0x149910){return _0x149910();},'WodPm':_0x2630af(0x191),'CzgiO':function(_0x4a42d0,_0x39ba31,_0x2c845c){return _0x4a42d0(_0x39ba31,_0x2c845c);}},_0x28f1dc=await _0x59c6d8[_0x2630af(0x161)](getToken);if(!_0x28f1dc)throw new Error(_0x2630af(0x151));const _0x5df438=getApiBaseUrl(),_0x257591=new URLSearchParams(),_0x404610=(_0x4daa44?.[_0x2630af(0x154)]?.[_0x2630af(0x189)]??0x0)>0x0,_0x29028e=Boolean(_0x4daa44?.['sessionId']);_0x404610&&_0x4daa44?.[_0x2630af(0x154)]&&_0x257591['set']('itemIds',_0x4daa44['itemIds'][_0x2630af(0x188)](','));_0x29028e&&_0x4daa44?.[_0x2630af(0x191)]&&_0x257591[_0x2630af(0x165)](_0x59c6d8[_0x2630af(0x160)],_0x4daa44['sessionId']);!_0x404610&&!_0x29028e&&_0x4daa44?.['style']&&_0x257591['set'](_0x2630af(0x164),_0x4daa44[_0x2630af(0x164)]);const _0x3f27df=_0x5df438+_0x2630af(0x14f)+_0xbfd585+'/report/markdown',_0x44c683=''+_0x3f27df+(_0x257591[_0x2630af(0x183)]()?'?'+_0x257591[_0x2630af(0x183)]():''),_0x31e7f1=await _0x59c6d8[_0x2630af(0x158)](fetch,_0x44c683,{'method':'GET','headers':{'Authorization':_0x2630af(0x16d)+_0x28f1dc}});if(!_0x31e7f1['ok']){const _0x5a6008=await _0x31e7f1['text']();throw new Error(_0x2630af(0x18a)+_0x5a6008);}return _0x31e7f1['text']();}export async function listFeatureSessions(_0x43e1e6){const _0x19da25=_0x7754,_0x279247={'MSDAY':_0x19da25(0x151),'rMIWf':function(_0x47ed39){return _0x47ed39();},'TYtRh':function(_0x14607e,_0x4e2043,_0x45d8f1){return _0x14607e(_0x4e2043,_0x45d8f1);},'PCJJC':'GET'},_0x1f26d9=await getToken();if(!_0x1f26d9)throw new Error(_0x279247[_0x19da25(0x17c)]);const _0xb1e2f1=_0x279247[_0x19da25(0x17f)](getApiBaseUrl),_0x27eab7=await _0x279247['TYtRh'](fetch,_0xb1e2f1+'/api/v1/mcp/features/'+_0x43e1e6+_0x19da25(0x15b),{'method':_0x279247[_0x19da25(0x15a)],'headers':{'Authorization':'Bearer\x20'+_0x1f26d9}});if(!_0x27eab7['ok']){const _0x37b552=await _0x27eab7[_0x19da25(0x166)]();throw new Error(_0x19da25(0x16a)+_0x37b552);}return _0x27eab7[_0x19da25(0x185)]();}export async function startSession(_0x1299b2,_0x2de31f){const _0x3b0e2e=_0x7754,_0x40d01f={'vyiGV':function(_0x3b0a4a){return _0x3b0a4a();},'MJnNs':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','ryUqv':function(_0x4cc74c,_0x447bd1,_0x51a42b){return _0x4cc74c(_0x447bd1,_0x51a42b);}},_0x5db41f=await _0x40d01f['vyiGV'](getToken);if(!_0x5db41f)throw new Error(_0x40d01f[_0x3b0e2e(0x16e)]);const _0x253557=_0x40d01f[_0x3b0e2e(0x153)](getApiBaseUrl),_0x2a8762=await _0x40d01f[_0x3b0e2e(0x16b)](fetch,_0x253557+_0x3b0e2e(0x14f)+_0x1299b2+_0x3b0e2e(0x17e)+_0x2de31f+'/start',{'method':_0x3b0e2e(0x177),'headers':{'Authorization':_0x3b0e2e(0x16d)+_0x5db41f}});if(!_0x2a8762['ok']){const _0x472bab=await _0x2a8762[_0x3b0e2e(0x166)]();throw new Error('Failed\x20to\x20start\x20session:\x20'+_0x472bab);}return _0x2a8762[_0x3b0e2e(0x185)]();}export async function concludeSession(_0x2daf85,_0x256ee0){const _0x53231f=_0x7754,_0x3006bf={'tsMFo':function(_0x44e1b6){return _0x44e1b6();},'TItGF':function(_0x16e8e5,_0x2b07c5,_0x20008f){return _0x16e8e5(_0x2b07c5,_0x20008f);}},_0x35fe32=await _0x3006bf['tsMFo'](getToken);if(!_0x35fe32)throw new Error(_0x53231f(0x151));const _0x40effc=getApiBaseUrl(),_0x17982e=await _0x3006bf['TItGF'](fetch,_0x40effc+'/api/v1/mcp/features/'+_0x2daf85+_0x53231f(0x17e)+_0x256ee0+'/conclude',{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0x35fe32}});if(!_0x17982e['ok']){const _0x222671=await _0x17982e['text']();throw new Error('Failed\x20to\x20conclude\x20session:\x20'+_0x222671);}return _0x17982e[_0x53231f(0x185)]();}export async function getActionItems(_0x3298dd){const _0x4f93ef=_0x7754,_0x1c38ff={'dAeSA':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','IQhMH':function(_0x2386c7){return _0x2386c7();}},_0x13a992=await getToken();if(!_0x13a992)throw new Error(_0x1c38ff['dAeSA']);const _0x5d42f3=_0x1c38ff[_0x4f93ef(0x18b)](getApiBaseUrl),_0x3f9be6=await fetch(_0x5d42f3+'/api/v1/mcp/features/'+_0x3298dd+'/action-items',{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x13a992}});if(!_0x3f9be6['ok']){const _0x4265d9=await _0x3f9be6[_0x4f93ef(0x166)]();throw new Error('Failed\x20to\x20get\x20action\x20items:\x20'+_0x4265d9);}return _0x3f9be6['json']();}function _0x7754(_0x4a16f0,_0x47c383){_0x4a16f0=_0x4a16f0-0x14f;const _0x57bcfa=_0x57bc();let _0x7754cf=_0x57bcfa[_0x4a16f0];return _0x7754cf;}export async function getItemFeedback(_0x3f4438,_0x282a04){const _0x4d85e4=_0x7754,_0x33d3de={'MYZgk':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','BWjrz':function(_0x1b63e4){return _0x1b63e4();},'SgNSq':function(_0x1f5b31,_0x364d23,_0x116030){return _0x1f5b31(_0x364d23,_0x116030);},'Wcqcc':'GET'},_0x48cdb9=await getToken();if(!_0x48cdb9)throw new Error(_0x33d3de[_0x4d85e4(0x16c)]);const _0x12195a=_0x33d3de['BWjrz'](getApiBaseUrl),_0x6d84c2=await _0x33d3de[_0x4d85e4(0x17b)](fetch,_0x12195a+'/api/v1/mcp/features/'+_0x3f4438+_0x4d85e4(0x168)+_0x282a04+'/feedback',{'method':_0x33d3de['Wcqcc'],'headers':{'Authorization':_0x4d85e4(0x16d)+_0x48cdb9}});if(!_0x6d84c2['ok']){const _0x21ca94=await _0x6d84c2[_0x4d85e4(0x166)]();throw new Error('Failed\x20to\x20get\x20item\x20feedback:\x20'+_0x21ca94);}return _0x6d84c2['json']();}export async function markCommentsAddressed(_0x3ee94a,_0x4bfdbd,_0x4e295e){const _0x2eeb3f=_0x7754,_0x46dd06={'UPfHo':_0x2eeb3f(0x151),'ADrop':function(_0x3e0b98,_0x4960a8,_0x22818a){return _0x3e0b98(_0x4960a8,_0x22818a);}},_0x308429=await getToken();if(!_0x308429)throw new Error(_0x46dd06['UPfHo']);const _0x2598b4=getApiBaseUrl(),_0x1f7dd3=await _0x46dd06[_0x2eeb3f(0x18c)](fetch,_0x2598b4+_0x2eeb3f(0x14f)+_0x3ee94a+'/comments/address',{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0x308429,'Content-Type':'application/json'},'body':JSON['stringify']({'checklistItemId':_0x4bfdbd,'commentIds':_0x4e295e})});if(!_0x1f7dd3['ok']){const _0x304a33=await _0x1f7dd3[_0x2eeb3f(0x166)]();throw new Error(_0x2eeb3f(0x173)+_0x304a33);}}export async function softDeleteFeature(_0x2cde49){const _0x2c8a90=_0x7754,_0x52d3f6={'cNgZr':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','NTGsf':function(_0x2ea9c1){return _0x2ea9c1();},'mKOPC':function(_0x5ad1d6,_0x5727be,_0x28f387){return _0x5ad1d6(_0x5727be,_0x28f387);}},_0x46a8c0=await getToken();if(!_0x46a8c0)throw new Error(_0x52d3f6[_0x2c8a90(0x15d)]);const _0x4bfccd=_0x52d3f6[_0x2c8a90(0x18f)](getApiBaseUrl),_0x3e5cdf=await _0x52d3f6['mKOPC'](fetch,_0x4bfccd+'/api/v1/mcp/features/'+_0x2cde49,{'method':_0x2c8a90(0x170),'headers':{'Authorization':'Bearer\x20'+_0x46a8c0}});if(!_0x3e5cdf['ok']){const _0x4298d2=await _0x3e5cdf[_0x2c8a90(0x166)]();throw new Error('Failed\x20to\x20delete\x20feature\x20review:\x20'+_0x4298d2);}}function _0x57bc(){const _0x2249f8=['WodPm','MqfSz','17215649xsWKgf','updateChecklistItem','style','set','text','Failed\x20to\x20create\x20feature\x20review:\x20','/checklist-items/','TbbAp','Failed\x20to\x20list\x20sessions:\x20','ryUqv','MYZgk','Bearer\x20','MJnNs','DCwtO','DELETE','2020974VILKAx','billingUrl','Failed\x20to\x20mark\x20comments\x20as\x20addressed:\x20','application/json','16yxeQhq','365BzYUqs','POST','4871VYrqSG','Failed\x20to\x20list\x20feature\x20reviews:\x20','4370553hApbza','SgNSq','MSDAY','https://dashboard.ranger.net/billing','/sessions/','rMIWf','status','Failed\x20to\x20create\x20scenario:\x20','2676822WFxpla','toString','PATCH','json','7eauKfw','dAEgF','join','length','Failed\x20to\x20get\x20feature\x20review\x20report\x20markdown:\x20','IQhMH','ADrop','offset','Failed\x20to\x20update\x20feature\x20review:\x20','NTGsf','true','sessionId','63684nhrFFV','includeDeleted','22HfXCvX','/api/v1/mcp/features/','gitBranch','No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','epzyO','vyiGV','itemIds','gitRepoUrl','HkBAR','Failed\x20to\x20update\x20scenario:\x20','CzgiO','Failed\x20to\x20get\x20feature\x20review:\x20','PCJJC','/sessions','1729840CwBXOV','cNgZr','sRAtR','Failed\x20to\x20get\x20feature\x20review\x20report:\x20'];_0x57bc=function(){return _0x2249f8;};return _0x57bc();}export async function restoreFeature(_0x351a06){const _0x1bfdeb=_0x7754,_0x3598af={'rFSSR':_0x1bfdeb(0x151),'AVdVY':function(_0x64f58a){return _0x64f58a();},'nGqYy':function(_0x22f331,_0x2f4e90,_0x14be58){return _0x22f331(_0x2f4e90,_0x14be58);}},_0x476ea2=await getToken();if(!_0x476ea2)throw new Error(_0x3598af['rFSSR']);const _0x3bab41=_0x3598af['AVdVY'](getApiBaseUrl),_0x328ea5=await _0x3598af['nGqYy'](fetch,_0x3bab41+'/api/v1/mcp/features/'+_0x351a06+'/restore',{'method':'POST','headers':{'Authorization':_0x1bfdeb(0x16d)+_0x476ea2}});if(!_0x328ea5['ok']){const _0x2bccc0=await _0x328ea5[_0x1bfdeb(0x166)]();throw new Error('Failed\x20to\x20restore\x20feature\x20review:\x20'+_0x2bccc0);}}
|
|
1
|
+
(function(_0x50e251,_0x436dfa){const _0x17a7b7=_0x40e3,_0x228a18=_0x50e251();while(!![]){try{const _0x507035=-parseInt(_0x17a7b7(0xdd))/0x1*(parseInt(_0x17a7b7(0xda))/0x2)+-parseInt(_0x17a7b7(0xbb))/0x3+-parseInt(_0x17a7b7(0xa9))/0x4+parseInt(_0x17a7b7(0xc8))/0x5*(parseInt(_0x17a7b7(0xbf))/0x6)+-parseInt(_0x17a7b7(0xa6))/0x7+-parseInt(_0x17a7b7(0xbe))/0x8*(-parseInt(_0x17a7b7(0xb8))/0x9)+parseInt(_0x17a7b7(0xc1))/0xa*(parseInt(_0x17a7b7(0xe1))/0xb);if(_0x507035===_0x436dfa)break;else _0x228a18['push'](_0x228a18['shift']());}catch(_0xaf0e4a){_0x228a18['push'](_0x228a18['shift']());}}}(_0x1894,0xaf1e9));import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{withRetry}from'./retry.js';export async function createFeature(_0x2fe560){const _0x323fd0=_0x40e3,_0xf3a908={'UERAJ':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','Xdkla':'application/json','JgGMv':'Feature\x20limit\x20exceeded'},_0xf1ba26=await getToken();if(!_0xf1ba26)throw new Error(_0xf3a908['UERAJ']);const _0x438407=getApiBaseUrl(),_0xdb5ca9=await fetch(_0x438407+'/api/v1/mcp/features',{'method':_0x323fd0(0xd5),'headers':{'Authorization':_0x323fd0(0xa7)+_0xf1ba26,'Content-Type':_0xf3a908['Xdkla']},'body':JSON['stringify'](_0x2fe560)});if(!_0xdb5ca9['ok']){if(_0xdb5ca9[_0x323fd0(0xe2)]===0x192){const _0x2378c3=await _0xdb5ca9['json'](),_0x378a93=_0x2378c3[_0x323fd0(0xb9)]||'https://dashboard.ranger.net/billing';throw new Error((_0x2378c3['message']||_0xf3a908['JgGMv'])+'\x0a\x0aUpgrade\x20your\x20plan:\x20'+_0x378a93);}const _0x4967cf=await _0xdb5ca9[_0x323fd0(0xa5)]();throw new Error('Failed\x20to\x20create\x20feature\x20review:\x20'+_0x4967cf);}return _0xdb5ca9[_0x323fd0(0x9f)]();}export async function listFeatures(_0x3f7523){const _0x342ca9=_0x40e3,_0x4c15d2={'cBMxh':function(_0x41e6a9){return _0x41e6a9();},'wQkyy':_0x342ca9(0xe6),'RYnoW':function(_0x3a404e){return _0x3a404e();},'ufuom':_0x342ca9(0xdb),'TMnoH':'offset','iKWWv':_0x342ca9(0xac)},_0x2389fb=await _0x4c15d2[_0x342ca9(0xd0)](getToken);if(!_0x2389fb)throw new Error(_0x4c15d2[_0x342ca9(0xb3)]);const _0xf38380=_0x4c15d2['RYnoW'](getApiBaseUrl),_0x576772=new URLSearchParams();if(_0x3f7523?.[_0x342ca9(0xdb)])_0x576772['set'](_0x4c15d2['ufuom'],_0x3f7523[_0x342ca9(0xdb)]);if(_0x3f7523?.['gitBranch'])_0x576772['set']('gitBranch',_0x3f7523['gitBranch']);if(_0x3f7523?.['limit'])_0x576772['set'](_0x342ca9(0xcd),_0x3f7523[_0x342ca9(0xcd)]['toString']());if(_0x3f7523?.['offset'])_0x576772[_0x342ca9(0xc5)](_0x4c15d2['TMnoH'],_0x3f7523['offset'][_0x342ca9(0xd9)]());if(_0x3f7523?.[_0x342ca9(0xcc)])_0x576772[_0x342ca9(0xc5)](_0x342ca9(0xcc),_0x4c15d2[_0x342ca9(0xdf)]);const _0x1c711c=_0xf38380+'/api/v1/mcp/features'+(_0x576772['toString']()?'?'+_0x576772['toString']():''),_0x5619eb=await fetch(_0x1c711c,{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x2389fb}});if(!_0x5619eb['ok']){const _0x414a53=await _0x5619eb[_0x342ca9(0xa5)]();throw new Error(_0x342ca9(0xd2)+_0x414a53);}return _0x5619eb[_0x342ca9(0x9f)]();}function _0x1894(){const _0x12d867=['Failed\x20to\x20update\x20feature\x20review:\x20','nIdBI','SlElw','includeDeleted','limit','gRVQg','fTgZk','cBMxh','mJBji','Failed\x20to\x20list\x20feature\x20reviews:\x20','SmEMB','/action-items','POST','zXTmF','Failed\x20to\x20get\x20feature\x20review\x20report\x20markdown:\x20','BxGBo','toString','2okNJQU','gitRepoUrl','TGfaJ','537342UxaXYU','style','iKWWv','Vyzvb','8767dQWokh','status','/comments/address','doKzd','sessionId','No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','itemIds','Failed\x20to\x20conclude\x20session:\x20','json','/sessions','application/json','/restore','Failed\x20to\x20update\x20scenario:\x20','PATCH','text','3580038nbNetE','Bearer\x20','RUubL','4162388RBQhVX','Failed\x20to\x20get\x20action\x20items:\x20','BGkpX','true','Failed\x20to\x20get\x20item\x20feedback:\x20','/start','/feedback','nvhwQ','/checklist-items/','HEFmZ','wQkyy','/sessions/','FcGNG','join','Failed\x20to\x20list\x20sessions:\x20','5124042dRsHum','billingUrl','OJQoA','1165182SwAuzj','TLEpl','/api/v1/mcp/features/','8cGAVXU','45618asmPOK','stringify','29320FYRbSI','Ywcgo','Failed\x20to\x20delete\x20feature\x20review:\x20','updateChecklistItem','set','Zmbsq','pWGmc','190TTHMnl'];_0x1894=function(){return _0x12d867;};return _0x1894();}export async function getFeature(_0x450c06){const _0x485bf1=_0x40e3,_0x4a2cb6={'bPtwZ':function(_0x3489dc){return _0x3489dc();},'Zmbsq':_0x485bf1(0xe6),'qTeim':function(_0x2f2e37,_0x385555,_0x465dbb){return _0x2f2e37(_0x385555,_0x465dbb);}},_0x47332f=await _0x4a2cb6['bPtwZ'](getToken);if(!_0x47332f)throw new Error(_0x4a2cb6[_0x485bf1(0xc6)]);const _0x331bb8=getApiBaseUrl(),_0x3f704e=await _0x4a2cb6['qTeim'](fetch,_0x331bb8+'/api/v1/mcp/features/'+_0x450c06,{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x47332f}});if(!_0x3f704e['ok']){const _0x2b5c64=await _0x3f704e['text']();throw new Error('Failed\x20to\x20get\x20feature\x20review:\x20'+_0x2b5c64);}return _0x3f704e['json']();}export async function updateFeature(_0x1c4b78,_0x526f42){const _0x2e0d70=_0x40e3,_0x13d532={'mJBji':_0x2e0d70(0xe6),'nvhwQ':function(_0x124151){return _0x124151();},'ropbd':_0x2e0d70(0xa4),'EtoqV':_0x2e0d70(0xa1)},_0x5e8296=await getToken();if(!_0x5e8296)throw new Error(_0x13d532[_0x2e0d70(0xd1)]);const _0x1c4552=_0x13d532[_0x2e0d70(0xb0)](getApiBaseUrl),_0x335a9c=await fetch(_0x1c4552+_0x2e0d70(0xbd)+_0x1c4b78,{'method':_0x13d532['ropbd'],'headers':{'Authorization':'Bearer\x20'+_0x5e8296,'Content-Type':_0x13d532['EtoqV']},'body':JSON[_0x2e0d70(0xc0)](_0x526f42)});if(!_0x335a9c['ok']){const _0x583332=await _0x335a9c[_0x2e0d70(0xa5)]();throw new Error(_0x2e0d70(0xc9)+_0x583332);}return _0x335a9c[_0x2e0d70(0x9f)]();}function _0x40e3(_0x15a029,_0x5ef2ec){_0x15a029=_0x15a029-0x9e;const _0x18941d=_0x1894();let _0x40e359=_0x18941d[_0x15a029];return _0x40e359;}export async function createChecklistItem(_0x33a310,_0x3055c7,_0xad5ec2){const _0x20ff79=_0x40e3,_0x5b25ae={'zzBRX':function(_0x5da76c,_0x19c8ed,_0x11f90b){return _0x5da76c(_0x19c8ed,_0x11f90b);},'HoUge':'POST'},_0x25f4ac=await getToken();if(!_0x25f4ac)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x41ccb6=getApiBaseUrl(),_0x551cd1=await _0x5b25ae['zzBRX'](fetch,_0x41ccb6+_0x20ff79(0xbd)+_0x33a310+'/checklist',{'method':_0x5b25ae['HoUge'],'headers':{'Authorization':'Bearer\x20'+_0x25f4ac,'Content-Type':'application/json'},'body':JSON[_0x20ff79(0xc0)]({'description':_0x3055c7,'position':_0xad5ec2})});if(!_0x551cd1['ok']){const _0x40640d=await _0x551cd1['text']();throw new Error('Failed\x20to\x20create\x20scenario:\x20'+_0x40640d);}return _0x551cd1['json']();}export async function updateChecklistItem(_0x58c12c,_0x1dcc88,_0x4a5f4c){const _0xb64486=_0x40e3,_0x28c118={'mXLTV':function(_0xe0f949){return _0xe0f949();},'lwfTH':function(_0x1475ba,_0x12afb9,_0x53960f){return _0x1475ba(_0x12afb9,_0x53960f);},'KRUwp':'PATCH','aQWJr':function(_0x1a643f,_0x2c1e11,_0xdba24){return _0x1a643f(_0x2c1e11,_0xdba24);},'Vyzvb':_0xb64486(0xc4)};return _0x28c118['aQWJr'](withRetry,async()=>{const _0x6dc36b=_0xb64486,_0x4f91b0=await _0x28c118['mXLTV'](getToken);if(!_0x4f91b0)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x59123c=getApiBaseUrl(),_0x24b79d=await _0x28c118['lwfTH'](fetch,_0x59123c+_0x6dc36b(0xbd)+_0x58c12c+'/checklist/'+_0x1dcc88,{'method':_0x28c118['KRUwp'],'headers':{'Authorization':_0x6dc36b(0xa7)+_0x4f91b0,'Content-Type':_0x6dc36b(0xa1)},'body':JSON[_0x6dc36b(0xc0)](_0x4a5f4c)});if(!_0x24b79d['ok']){const _0x1dbb39=await _0x24b79d['text']();throw new Error(_0x6dc36b(0xa3)+_0x1dbb39);}return _0x24b79d['json']();},{'label':_0x28c118[_0xb64486(0xe0)]});}export async function getFeatureReport(_0x2cdddc){const _0x3b96fe=_0x40e3,_0x1be3ef={'shWib':function(_0x1b8abc){return _0x1b8abc();},'gRVQg':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','LVwyT':function(_0x3dabf0){return _0x3dabf0();},'FQwdt':function(_0x432c1,_0x12dcf7,_0x42e888){return _0x432c1(_0x12dcf7,_0x42e888);}},_0x59dcb3=await _0x1be3ef['shWib'](getToken);if(!_0x59dcb3)throw new Error(_0x1be3ef[_0x3b96fe(0xce)]);const _0x1f6171=_0x1be3ef['LVwyT'](getApiBaseUrl),_0x577f78=await _0x1be3ef['FQwdt'](fetch,_0x1f6171+'/api/v1/mcp/features/'+_0x2cdddc+'/report',{'method':'GET','headers':{'Authorization':_0x3b96fe(0xa7)+_0x59dcb3}});if(!_0x577f78['ok']){const _0x550a51=await _0x577f78[_0x3b96fe(0xa5)]();throw new Error('Failed\x20to\x20get\x20feature\x20review\x20report:\x20'+_0x550a51);}return _0x577f78[_0x3b96fe(0x9f)]();}export async function getFeatureReportMarkdown(_0x2d6b74,_0x39abb1){const _0xfe1ad8=_0x40e3,_0x562487={'pWGmc':function(_0x166621){return _0x166621();},'FYjQj':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','SmEMB':function(_0x38d6a3,_0xffd5dd){return _0x38d6a3>_0xffd5dd;},'RMGFE':function(_0x3bc32d,_0x325a53){return _0x3bc32d(_0x325a53);},'TGfaJ':_0xfe1ad8(0xe5),'OJQoA':function(_0x2ef060,_0x3a1bf2){return _0x2ef060&&_0x3a1bf2;},'BGkpX':function(_0x24df4d,_0x284a9c,_0x54ac87){return _0x24df4d(_0x284a9c,_0x54ac87);}},_0x34bda9=await _0x562487[_0xfe1ad8(0xc7)](getToken);if(!_0x34bda9)throw new Error(_0x562487['FYjQj']);const _0x22ce97=getApiBaseUrl(),_0x11e681=new URLSearchParams(),_0x1592d2=_0x562487[_0xfe1ad8(0xd3)](_0x39abb1?.[_0xfe1ad8(0xe7)]?.['length']??0x0,0x0),_0x2ab187=_0x562487['RMGFE'](Boolean,_0x39abb1?.[_0xfe1ad8(0xe5)]);_0x1592d2&&_0x39abb1?.[_0xfe1ad8(0xe7)]&&_0x11e681['set']('itemIds',_0x39abb1[_0xfe1ad8(0xe7)][_0xfe1ad8(0xb6)](','));_0x2ab187&&_0x39abb1?.['sessionId']&&_0x11e681['set'](_0x562487[_0xfe1ad8(0xdc)],_0x39abb1['sessionId']);_0x562487[_0xfe1ad8(0xba)](!_0x1592d2,!_0x2ab187)&&_0x39abb1?.[_0xfe1ad8(0xde)]&&_0x11e681[_0xfe1ad8(0xc5)]('style',_0x39abb1['style']);const _0x1ed554=_0x22ce97+'/api/v1/mcp/features/'+_0x2d6b74+'/report/markdown',_0x176a51=''+_0x1ed554+(_0x11e681['toString']()?'?'+_0x11e681[_0xfe1ad8(0xd9)]():''),_0x2b01e4=await _0x562487[_0xfe1ad8(0xab)](fetch,_0x176a51,{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x34bda9}});if(!_0x2b01e4['ok']){const _0x5262e7=await _0x2b01e4['text']();throw new Error(_0xfe1ad8(0xd7)+_0x5262e7);}return _0x2b01e4[_0xfe1ad8(0xa5)]();}export async function listFeatureSessions(_0xc863b3){const _0x226175=_0x40e3,_0x331540={'SlElw':_0x226175(0xe6),'RUubL':function(_0x263e55,_0x1bbbff,_0x5f36c9){return _0x263e55(_0x1bbbff,_0x5f36c9);},'AALDp':'GET'},_0x4e65e1=await getToken();if(!_0x4e65e1)throw new Error(_0x331540[_0x226175(0xcb)]);const _0x2fc603=getApiBaseUrl(),_0x1ecdd0=await _0x331540[_0x226175(0xa8)](fetch,_0x2fc603+_0x226175(0xbd)+_0xc863b3+_0x226175(0xa0),{'method':_0x331540['AALDp'],'headers':{'Authorization':_0x226175(0xa7)+_0x4e65e1}});if(!_0x1ecdd0['ok']){const _0x2b08e8=await _0x1ecdd0['text']();throw new Error(_0x226175(0xb7)+_0x2b08e8);}return _0x1ecdd0[_0x226175(0x9f)]();}export async function startSession(_0x4fdaa2,_0x170e2a){const _0x20f953=_0x40e3,_0x3899e9={'TLEpl':_0x20f953(0xd5)},_0x26f7a8=await getToken();if(!_0x26f7a8)throw new Error(_0x20f953(0xe6));const _0x3e9bd0=getApiBaseUrl(),_0xf9a948=await fetch(_0x3e9bd0+'/api/v1/mcp/features/'+_0x4fdaa2+'/sessions/'+_0x170e2a+_0x20f953(0xae),{'method':_0x3899e9[_0x20f953(0xbc)],'headers':{'Authorization':'Bearer\x20'+_0x26f7a8}});if(!_0xf9a948['ok']){const _0x336c02=await _0xf9a948['text']();throw new Error('Failed\x20to\x20start\x20session:\x20'+_0x336c02);}return _0xf9a948[_0x20f953(0x9f)]();}export async function concludeSession(_0x1e8a9a,_0x34b23e){const _0x3e8e42=_0x40e3,_0xa025be={'BxGBo':function(_0x52c55c){return _0x52c55c();},'Ywcgo':function(_0x182be5,_0x319992,_0x4df809){return _0x182be5(_0x319992,_0x4df809);},'FcGNG':_0x3e8e42(0xd5)},_0x146e03=await _0xa025be[_0x3e8e42(0xd8)](getToken);if(!_0x146e03)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x4c82ef=_0xa025be['BxGBo'](getApiBaseUrl),_0x3ead77=await _0xa025be[_0x3e8e42(0xc2)](fetch,_0x4c82ef+_0x3e8e42(0xbd)+_0x1e8a9a+_0x3e8e42(0xb4)+_0x34b23e+'/conclude',{'method':_0xa025be[_0x3e8e42(0xb5)],'headers':{'Authorization':'Bearer\x20'+_0x146e03}});if(!_0x3ead77['ok']){const _0x1a1bf6=await _0x3ead77['text']();throw new Error(_0x3e8e42(0x9e)+_0x1a1bf6);}return _0x3ead77['json']();}export async function getActionItems(_0x1e5e46){const _0x38458a=_0x40e3,_0x3da850=await getToken();if(!_0x3da850)throw new Error(_0x38458a(0xe6));const _0x56d3e9=getApiBaseUrl(),_0x2d6343=await fetch(_0x56d3e9+'/api/v1/mcp/features/'+_0x1e5e46+_0x38458a(0xd4),{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x3da850}});if(!_0x2d6343['ok']){const _0x390d3d=await _0x2d6343['text']();throw new Error(_0x38458a(0xaa)+_0x390d3d);}return _0x2d6343[_0x38458a(0x9f)]();}export async function getItemFeedback(_0x5199de,_0x3fe409){const _0x39c4a0=_0x40e3,_0x28cfd7={'fTgZk':function(_0x1f890a){return _0x1f890a();},'RkaYa':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]'},_0x13cba8=await _0x28cfd7[_0x39c4a0(0xcf)](getToken);if(!_0x13cba8)throw new Error(_0x28cfd7['RkaYa']);const _0xa8158a=_0x28cfd7['fTgZk'](getApiBaseUrl),_0x4c9adc=await fetch(_0xa8158a+'/api/v1/mcp/features/'+_0x5199de+_0x39c4a0(0xb1)+_0x3fe409+_0x39c4a0(0xaf),{'method':'GET','headers':{'Authorization':_0x39c4a0(0xa7)+_0x13cba8}});if(!_0x4c9adc['ok']){const _0x169a62=await _0x4c9adc[_0x39c4a0(0xa5)]();throw new Error(_0x39c4a0(0xad)+_0x169a62);}return _0x4c9adc['json']();}export async function markCommentsAddressed(_0x52d871,_0x298377,_0x54ddd3){const _0x15c572=_0x40e3,_0x5ee6f8={'HEFmZ':function(_0x4cc7e5){return _0x4cc7e5();},'OaGeC':function(_0x33e723,_0x5ad4ab,_0x11c0b2){return _0x33e723(_0x5ad4ab,_0x11c0b2);},'zXTmF':'POST'},_0x3b1c04=await getToken();if(!_0x3b1c04)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x1a2bc1=_0x5ee6f8[_0x15c572(0xb2)](getApiBaseUrl),_0x2a34d3=await _0x5ee6f8['OaGeC'](fetch,_0x1a2bc1+'/api/v1/mcp/features/'+_0x52d871+_0x15c572(0xe3),{'method':_0x5ee6f8[_0x15c572(0xd6)],'headers':{'Authorization':'Bearer\x20'+_0x3b1c04,'Content-Type':'application/json'},'body':JSON[_0x15c572(0xc0)]({'checklistItemId':_0x298377,'commentIds':_0x54ddd3})});if(!_0x2a34d3['ok']){const _0x2da2da=await _0x2a34d3['text']();throw new Error('Failed\x20to\x20mark\x20comments\x20as\x20addressed:\x20'+_0x2da2da);}}export async function softDeleteFeature(_0x498698){const _0x552b76=_0x40e3,_0xc6dfd4={'nIdBI':function(_0x1ec000){return _0x1ec000();},'doKzd':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','yLvdW':function(_0x548cde,_0x36ce44,_0x5f21e4){return _0x548cde(_0x36ce44,_0x5f21e4);}},_0x2b3375=await _0xc6dfd4[_0x552b76(0xca)](getToken);if(!_0x2b3375)throw new Error(_0xc6dfd4[_0x552b76(0xe4)]);const _0x1be122=getApiBaseUrl(),_0x8460c7=await _0xc6dfd4['yLvdW'](fetch,_0x1be122+'/api/v1/mcp/features/'+_0x498698,{'method':'DELETE','headers':{'Authorization':_0x552b76(0xa7)+_0x2b3375}});if(!_0x8460c7['ok']){const _0x300f1d=await _0x8460c7['text']();throw new Error(_0x552b76(0xc3)+_0x300f1d);}}export async function restoreFeature(_0x434abc){const _0x3bbbbe=_0x40e3,_0x1be46e={'DdGXF':function(_0x3727fc){return _0x3727fc();},'ALupP':function(_0x461562,_0x5c02ea,_0x4692a8){return _0x461562(_0x5c02ea,_0x4692a8);}},_0x5f4a4c=await getToken();if(!_0x5f4a4c)throw new Error(_0x3bbbbe(0xe6));const _0x5ca2c1=_0x1be46e['DdGXF'](getApiBaseUrl),_0x27cee9=await _0x1be46e['ALupP'](fetch,_0x5ca2c1+'/api/v1/mcp/features/'+_0x434abc+_0x3bbbbe(0xa2),{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0x5f4a4c}});if(!_0x27cee9['ok']){const _0x485126=await _0x27cee9['text']();throw new Error('Failed\x20to\x20restore\x20feature\x20review:\x20'+_0x485126);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x23f79d,_0x36b7d0){const _0x1fb9a3=_0x14a6,_0x44474d=_0x23f79d();while(!![]){try{const _0x9a664d=parseInt(_0x1fb9a3(0x1a8))/0x1+parseInt(_0x1fb9a3(0x190))/0x2+-parseInt(_0x1fb9a3(0x185))/0x3*(parseInt(_0x1fb9a3(0x1ca))/0x4)+-parseInt(_0x1fb9a3(0x19c))/0x5+parseInt(_0x1fb9a3(0x18d))/0x6*(parseInt(_0x1fb9a3(0x1b2))/0x7)+-parseInt(_0x1fb9a3(0x194))/0x8+parseInt(_0x1fb9a3(0x197))/0x9*(parseInt(_0x1fb9a3(0x199))/0xa);if(_0x9a664d===_0x36b7d0)break;else _0x44474d['push'](_0x44474d['shift']());}catch(_0x5186bf){_0x44474d['push'](_0x44474d['shift']());}}}(_0x5e07,0xeb09f));export function buildTraceViewerUrl(_0x5333f5){const _0x5d9aa8=encodeURIComponent(_0x5333f5);return'https://trace.playwright.dev/?trace='+_0x5d9aa8;}function getStatusEmoji(_0x174eab){const _0x17bf4f=_0x14a6,_0x3f256f={'GuKUN':'verified','bYhsE':'completed','cyDOo':_0x17bf4f(0x1b8)};switch(_0x174eab){case _0x3f256f[_0x17bf4f(0x1c5)]:case _0x3f256f[_0x17bf4f(0x184)]:return'✅';case'pending':case _0x17bf4f(0x1a7):return'🔄';case _0x3f256f[_0x17bf4f(0x1a1)]:return'🟠';case _0x17bf4f(0x1ad):return'🛑';case _0x17bf4f(0x18e):return'⛔';default:return'❓';}}function _0x5e07(){const _0x4befce=['###\x20','traceUrl','1860640hIuvTH','-\x20**Blocked:**\x20','KceCi','15459624uQdKSJ','ready','10jCCMAz','CEkGq','Wkliy','7949570RcVWNY','**Status:**\x20','status','-\x20**Trace:**\x20[View\x20in\x20Playwright](','**Repository:**\x20','cyDOo','|\x20Session\x20|\x20Scenario\x20|\x20Status\x20|\x20Duration\x20|\x20Date\x20|','blockedReason','floor','completedAt','qSOvz','in_progress','596854DDAXjF','browserSessionId','find','LTNbG','roWnA','blocked','**:\x20','yoJRF','verified','failed','469goMAun','-\x20**Closed:**\x20','|---------|----------|--------|----------|------|','No\x20Session','-\x20**Verified:**\x20','-\x20**Status:**\x20Incomplete\x20-\x20requires\x20further\x20work','incomplete','substring','short','-\x20**Reason:**\x20','gitBranch','createdAt','vYfoV','jEewj','en-US','canceledReason','**Branch:**\x20','Completed','iteration','GuKUN','BcRWf','checklistItemId','push','RWtvT','4zGfHkA','length','filter','ESkmZ','closedAt',':\x20Awaiting\x20Review',':\x20In\x20Progress','completed','rJglP','bYhsE','1507851rdVWBj','None','##\x20Description','currentSession','durationMs','numeric','Session\x20','GAnNx','8124QFPSSI','closed','##\x20Scenario\x20Progress\x20(','1765044hXSTAn','blockedAt'];_0x5e07=function(){return _0x4befce;};return _0x5e07();}function _0x14a6(_0x43d380,_0x43d739){_0x43d380=_0x43d380-0x181;const _0x5e0744=_0x5e07();let _0x14a66e=_0x5e0744[_0x43d380];return _0x14a66e;}function formatDuration(_0x2cf9cf){const _0x1ec6a9=_0x14a6,_0x2237f2={'KsWVY':function(_0x1f8365,_0x5e0630){return _0x1f8365===_0x5e0630;},'roWnA':function(_0x1e8272,_0x12ecda){return _0x1e8272<_0x12ecda;},'KceCi':function(_0x1ab886,_0x1575b1){return _0x1ab886/_0x1575b1;}};if(_0x2237f2['KsWVY'](_0x2cf9cf,null)||_0x2cf9cf===undefined)return'N/A';if(_0x2237f2[_0x1ec6a9(0x1ac)](_0x2cf9cf,0x3e8))return _0x2cf9cf+'ms';const _0x4ad9f3=Math[_0x1ec6a9(0x1a4)](_0x2cf9cf/0x3e8);if(_0x4ad9f3<0x3c)return _0x4ad9f3+'s';const _0x1ccd97=Math['floor'](_0x2237f2[_0x1ec6a9(0x196)](_0x4ad9f3,0x3c)),_0x7c0ac5=_0x4ad9f3%0x3c;return _0x1ccd97+'m\x20'+_0x7c0ac5+'s';}function formatDate(_0x4a1007){const _0x5d3fb4=_0x14a6,_0xaef22b={'lfwgx':'N/A','CEkGq':_0x5d3fb4(0x18a),'oewoX':_0x5d3fb4(0x1ba)};if(!_0x4a1007)return _0xaef22b['lfwgx'];return new Date(_0x4a1007)['toLocaleDateString'](_0x5d3fb4(0x1c0),{'year':_0xaef22b[_0x5d3fb4(0x19a)],'month':_0xaef22b['oewoX'],'day':'numeric'});}export function generateFeatureReport(_0x4c91dc){const _0x4f9683=_0x14a6,_0x43338c={'qeNbf':_0x4f9683(0x1c3),'BcRWf':'in_progress','eqFRc':_0x4f9683(0x182),'UZPYa':'Unknown','ZAgcI':function(_0x221679,_0x5dfd92){return _0x221679(_0x5dfd92);},'adafO':function(_0x12af5b,_0x59bed8){return _0x12af5b===_0x59bed8;},'Wkliy':function(_0x3db76d,_0x562ffb){return _0x3db76d===_0x562ffb;},'bEwlF':_0x4f9683(0x1b0),'ESkmZ':function(_0x13f457,_0x15557f){return _0x13f457(_0x15557f);},'JyYQs':'blocked','nDuSH':function(_0x33eee2,_0x30e0ef){return _0x33eee2(_0x30e0ef);},'vYfoV':function(_0x4fbc2c,_0x4bc4b6){return _0x4fbc2c===_0x4bc4b6;},'YvOgq':'closed','LTNbG':function(_0x65a196,_0xcfccac){return _0x65a196(_0xcfccac);},'yoJRF':function(_0x208725,_0x4fb486){return _0x208725>_0x4fb486;},'gepuq':'##\x20Blocking\x20Issues','RWtvT':'No\x20reason\x20provided','GAnNx':_0x4f9683(0x186),'jEewj':'##\x20All\x20Verification\x20Sessions','qSOvz':_0x4f9683(0x1b4),'ZBqOk':function(_0x59d7cd,_0x2ac50f){return _0x59d7cd+_0x2ac50f;},'sBQGm':function(_0x3840f1,_0xe40586){return _0x3840f1===_0xe40586;},'zVTPZ':_0x4f9683(0x1b1),'rJglP':function(_0x2057ff,_0xee5c51){return _0x2057ff(_0xee5c51);}},{feature:_0x59ec96,stats:_0x24b708,checklistItems:_0x12a2c2,sessions:_0x2caaae}=_0x4c91dc,_0x129f51=[];_0x129f51['push']('#\x20Feature\x20Review\x20Report:\x20'+_0x59ec96['name']),_0x129f51['push']('');let _0x356425,_0x30075f;if(_0x59ec96[_0x4f9683(0x1a5)])_0x356425=_0x43338c['qeNbf'],_0x30075f='✅';else{if(_0x59ec96['currentSession']){const _0x1652e1=_0x59ec96['currentSession']['status'];switch(_0x1652e1){case _0x4f9683(0x198):_0x356425=_0x4f9683(0x18b)+_0x59ec96['currentSession'][_0x4f9683(0x1c4)]+':\x20Ready',_0x30075f='▶️';break;case _0x43338c[_0x4f9683(0x1c6)]:_0x356425='Session\x20'+_0x59ec96[_0x4f9683(0x188)][_0x4f9683(0x1c4)]+_0x4f9683(0x181),_0x30075f='🔄';break;case _0x43338c['eqFRc']:_0x356425='Session\x20'+_0x59ec96[_0x4f9683(0x188)][_0x4f9683(0x1c4)]+_0x4f9683(0x1cf),_0x30075f='📊';break;default:_0x356425=_0x43338c['UZPYa'],_0x30075f='❓';}}else _0x356425=_0x4f9683(0x1b5),_0x30075f='⬜';}_0x129f51['push'](_0x4f9683(0x19d)+_0x30075f+'\x20'+_0x356425),_0x129f51['push']('**Created:**\x20'+formatDate(_0x59ec96[_0x4f9683(0x1bd)]));_0x59ec96[_0x4f9683(0x1a5)]&&_0x129f51[_0x4f9683(0x1c8)]('**Completed:**\x20'+formatDate(_0x59ec96['completedAt']));_0x59ec96['gitRepoUrl']&&_0x129f51[_0x4f9683(0x1c8)](_0x4f9683(0x1a0)+_0x59ec96['gitRepoUrl']);_0x59ec96[_0x4f9683(0x1bc)]&&_0x129f51[_0x4f9683(0x1c8)](_0x4f9683(0x1c2)+_0x59ec96[_0x4f9683(0x1bc)]);_0x129f51['push']('');_0x59ec96['description']&&(_0x129f51[_0x4f9683(0x1c8)](_0x4f9683(0x187)),_0x129f51['push'](''),_0x129f51[_0x4f9683(0x1c8)](_0x59ec96['description']),_0x129f51['push'](''));const _0x124084=_0x12a2c2['filter'](_0x795272=>_0x795272[_0x4f9683(0x19e)]!=='closed'),_0x523c5e=_0x12a2c2['filter'](_0xdc52a2=>_0xdc52a2[_0x4f9683(0x19e)]===_0x4f9683(0x1b0))[_0x4f9683(0x1cb)];_0x129f51[_0x4f9683(0x1c8)](_0x4f9683(0x18f)+_0x523c5e+'/'+_0x124084[_0x4f9683(0x1cb)]+'\x20verified)'),_0x129f51['push']('');for(const _0x66be70 of _0x12a2c2){const _0x4db378=_0x43338c['ZAgcI'](getStatusEmoji,_0x66be70['status']),_0x1fdaaa=_0x43338c['adafO'](_0x66be70['status'],_0x4f9683(0x18e)),_0x46a814=_0x1fdaaa?'~~':'',_0xef4291=_0x1fdaaa?'~~':'';_0x129f51['push'](_0x4f9683(0x192)+_0x4db378+'\x20'+_0x46a814+_0x66be70['description']+_0xef4291),_0x129f51['push']('');_0x43338c[_0x4f9683(0x19b)](_0x66be70['status'],_0x43338c['bEwlF'])&&_0x66be70['verifiedAt']&&_0x129f51[_0x4f9683(0x1c8)](_0x4f9683(0x1b6)+_0x43338c['ESkmZ'](formatDate,_0x66be70['verifiedAt']));_0x66be70[_0x4f9683(0x19e)]===_0x43338c['JyYQs']&&_0x66be70[_0x4f9683(0x191)]&&(_0x129f51[_0x4f9683(0x1c8)](_0x4f9683(0x195)+_0x43338c['nDuSH'](formatDate,_0x66be70[_0x4f9683(0x191)])),_0x66be70[_0x4f9683(0x1a3)]&&_0x129f51['push'](_0x4f9683(0x1bb)+_0x66be70['blockedReason']));_0x43338c[_0x4f9683(0x1be)](_0x66be70['status'],_0x43338c['YvOgq'])&&_0x66be70[_0x4f9683(0x1ce)]&&(_0x129f51['push'](_0x4f9683(0x1b3)+_0x43338c[_0x4f9683(0x1ab)](formatDate,_0x66be70[_0x4f9683(0x1ce)])),_0x66be70['canceledReason']&&_0x129f51[_0x4f9683(0x1c8)]('-\x20**Reason:**\x20'+_0x66be70[_0x4f9683(0x1c1)]));_0x66be70['status']===_0x4f9683(0x1b8)&&_0x129f51[_0x4f9683(0x1c8)](_0x4f9683(0x1b7));if(_0x66be70[_0x4f9683(0x1a9)]){_0x129f51['push']('-\x20**Session:**\x20'+_0x66be70['browserSessionId']);const _0x2749b1=_0x2caaae['find'](_0x1dc88c=>_0x1dc88c['id']===_0x66be70['browserSessionId']);_0x2749b1&&(_0x2749b1['agentResponse']&&_0x129f51['push']('-\x20**Summary:**\x20'+_0x2749b1['agentResponse']),_0x2749b1['traceUrl']&&_0x129f51[_0x4f9683(0x1c8)](_0x4f9683(0x19f)+buildTraceViewerUrl(_0x2749b1[_0x4f9683(0x193)])+')'));}_0x129f51[_0x4f9683(0x1c8)]('');}const _0x1d159d=_0x12a2c2[_0x4f9683(0x1cc)](_0x524ead=>_0x524ead[_0x4f9683(0x19e)]==='blocked');if(_0x43338c['yoJRF'](_0x1d159d[_0x4f9683(0x1cb)],0x0)){_0x129f51['push'](_0x43338c['gepuq']),_0x129f51[_0x4f9683(0x1c8)]('');for(const _0x3a502b of _0x1d159d){_0x129f51['push']('-\x20**'+_0x3a502b['description']+_0x4f9683(0x1ae)+(_0x3a502b[_0x4f9683(0x1a3)]||_0x43338c[_0x4f9683(0x1c9)]));}_0x129f51['push']('');}else _0x129f51['push'](_0x43338c['gepuq']),_0x129f51[_0x4f9683(0x1c8)](''),_0x129f51['push'](_0x43338c[_0x4f9683(0x18c)]),_0x129f51['push']('');if(_0x2caaae['length']>0x0){_0x129f51[_0x4f9683(0x1c8)](_0x43338c[_0x4f9683(0x1bf)]),_0x129f51[_0x4f9683(0x1c8)](''),_0x129f51[_0x4f9683(0x1c8)](_0x4f9683(0x1a2)),_0x129f51['push'](_0x43338c[_0x4f9683(0x1a6)]);for(const _0x3ec129 of _0x2caaae){const _0x413101=_0x3ec129[_0x4f9683(0x1c7)]?_0x12a2c2[_0x4f9683(0x1aa)](_0x31b5db=>_0x31b5db['id']===_0x3ec129[_0x4f9683(0x1c7)]):null,_0x31f63b=_0x413101?_0x43338c['ZBqOk'](_0x413101['description'][_0x4f9683(0x1b9)](0x0,0x1e),_0x43338c[_0x4f9683(0x1af)](_0x413101['description']['length'],0x1e)?'...':''):'N/A',_0x3d859e=_0x43338c['sBQGm'](_0x3ec129[_0x4f9683(0x19e)],_0x43338c['eqFRc'])?'✅':_0x3ec129[_0x4f9683(0x19e)]===_0x43338c['zVTPZ']?'❌':'🔄';_0x129f51['push']('|\x20'+_0x3ec129['id']+'\x20|\x20'+_0x31f63b+'\x20|\x20'+_0x3d859e+'\x20'+_0x3ec129[_0x4f9683(0x19e)]+'\x20|\x20'+_0x43338c[_0x4f9683(0x1cd)](formatDuration,_0x3ec129[_0x4f9683(0x189)])+'\x20|\x20'+_0x43338c[_0x4f9683(0x183)](formatDate,_0x3ec129[_0x4f9683(0x1bd)])+'\x20|');}_0x129f51['push']('');}return _0x129f51['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2f6dcc=_0x3130;(function(_0x1c185b,_0x23b4d5){const _0x424450=_0x3130,_0x312a83=_0x1c185b();while(!![]){try{const _0x44feff=-parseInt(_0x424450(0xca))/0x1*(-parseInt(_0x424450(0xb4))/0x2)+parseInt(_0x424450(0xab))/0x3*(-parseInt(_0x424450(0x9d))/0x4)+-parseInt(_0x424450(0xb6))/0x5*(parseInt(_0x424450(0xa0))/0x6)+-parseInt(_0x424450(0xbe))/0x7*(parseInt(_0x424450(0xc8))/0x8)+-parseInt(_0x424450(0x8e))/0x9*(parseInt(_0x424450(0xa5))/0xa)+parseInt(_0x424450(0xcc))/0xb*(-parseInt(_0x424450(0xce))/0xc)+parseInt(_0x424450(0xa6))/0xd;if(_0x44feff===_0x23b4d5)break;else _0x312a83['push'](_0x312a83['shift']());}catch(_0x4b0f8d){_0x312a83['push'](_0x312a83['shift']());}}}(_0x7eb6,0x2c2d1));import{readFileSync,writeFileSync}from'fs';function _0x3130(_0x126d3d,_0x134a0f){_0x126d3d=_0x126d3d-0x8e;const _0x7eb6bd=_0x7eb6();let _0x31302d=_0x7eb6bd[_0x126d3d];return _0x31302d;}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(_0x27bfb4,_0x96e038){const _0x11b1cf=_0x3130,_0x568bb6={'xuRJV':function(_0x39d0d6,_0xc11989){return _0x39d0d6>=_0xc11989;},'PEHGf':function(_0x108aaa,_0x340847){return _0x108aaa<=_0x340847;},'AMoPG':function(_0x48993d,_0x3029ff){return _0x48993d&_0x3029ff;},'zOGGd':function(_0x5e3c86,_0x54f093){return _0x5e3c86+_0x54f093;}};if(_0x568bb6['xuRJV'](_0x96e038,_0x27bfb4['length']))return[0x0,0x0];const _0x16df42=_0x27bfb4[_0x96e038];let _0x1e5956=0x1,_0x17423a=0x80;while(_0x568bb6[_0x11b1cf(0x94)](_0x1e5956,0x8)&&!_0x568bb6['AMoPG'](_0x16df42,_0x17423a)){_0x1e5956++,_0x17423a>>=0x1;}if(_0x96e038+_0x1e5956>_0x27bfb4[_0x11b1cf(0xbf)])return[0x0,0x0];let _0xc56108=_0x16df42&_0x17423a-0x1;for(let _0x4d35f9=0x1;_0x4d35f9<_0x1e5956;_0x4d35f9++){_0xc56108=_0x568bb6['zOGGd'](_0xc56108*0x100,_0x27bfb4[_0x96e038+_0x4d35f9]);}return[_0xc56108,_0x1e5956];}function readId(_0x474559,_0x5548db){const _0x2dbed7=_0x3130,_0x2d3e1f={'BcXlu':function(_0x2a8246,_0x2efaca){return _0x2a8246>=_0x2efaca;},'HKZqR':function(_0x2e79a2,_0x1446d0){return _0x2e79a2>=_0x1446d0;},'YuwSL':function(_0x6dd886,_0x5ce879){return _0x6dd886>=_0x5ce879;},'SeMrP':function(_0x3bf3ae,_0x4a1071){return _0x3bf3ae>_0x4a1071;},'hrDqR':function(_0x50c713,_0x12c01c){return _0x50c713<_0x12c01c;},'AjftJ':function(_0x198de5,_0x572c2f){return _0x198de5+_0x572c2f;},'bjrXu':function(_0x28f972,_0x588ee9){return _0x28f972*_0x588ee9;}};if(_0x2d3e1f['BcXlu'](_0x5548db,_0x474559['length']))return[0x0,0x0];const _0x403e49=_0x474559[_0x5548db];let _0x52b92a;if(_0x403e49>=0x80)_0x52b92a=0x1;else{if(_0x403e49>=0x40)_0x52b92a=0x2;else{if(_0x2d3e1f[_0x2dbed7(0xc7)](_0x403e49,0x20))_0x52b92a=0x3;else{if(_0x2d3e1f[_0x2dbed7(0x96)](_0x403e49,0x10))_0x52b92a=0x4;else return[_0x403e49,0x1];}}}if(_0x2d3e1f[_0x2dbed7(0xa8)](_0x5548db+_0x52b92a,_0x474559[_0x2dbed7(0xbf)]))return[0x0,0x0];let _0x5b5aab=0x0;for(let _0x599dec=0x0;_0x2d3e1f['hrDqR'](_0x599dec,_0x52b92a);_0x599dec++){_0x5b5aab=_0x2d3e1f['AjftJ'](_0x2d3e1f[_0x2dbed7(0xbb)](_0x5b5aab,0x100),_0x474559[_0x5548db+_0x599dec]);}return[_0x5b5aab,_0x52b92a];}function readUint(_0x4020c4,_0x4732ca,_0x308104){const _0x5df80e=_0x3130,_0x3545d4={'IJlSQ':function(_0x4adf12,_0x58241d){return _0x4adf12<_0x58241d;},'MEzEG':function(_0x57238f,_0x1b6600){return _0x57238f*_0x1b6600;}};let _0x3748c4=0x0;for(let _0x563587=0x0;_0x3545d4['IJlSQ'](_0x563587,_0x308104);_0x563587++){_0x3748c4=_0x3545d4[_0x5df80e(0xad)](_0x3748c4,0x100)+_0x4020c4[_0x4732ca+_0x563587];}return _0x3748c4;}function isUnknownSize(_0x30e228,_0x2db1f4){const _0x2f1c99={'pvyIP':function(_0x34d284,_0x1d53ce){return _0x34d284===_0x1d53ce;},'QMarL':function(_0x3bdb7c,_0x54b3f2){return _0x3bdb7c*_0x54b3f2;}};return _0x2f1c99['pvyIP'](_0x30e228,Math['pow'](0x2,_0x2f1c99['QMarL'](0x7,_0x2db1f4))-0x1);}function writeId(_0x420823){const _0x25868c=_0x3130,_0x11c554={'CdYwW':function(_0x5709c9,_0x487262){return _0x5709c9<=_0x487262;},'rjvOZ':function(_0x58cd74,_0x5b61a1){return _0x58cd74>>_0x5b61a1;},'pUqEs':function(_0x4db534,_0x161330){return _0x4db534&_0x161330;},'NUGzm':function(_0x410d80,_0xdf7f3a){return _0x410d80>>_0xdf7f3a;},'uYOaF':function(_0x4c06a6,_0x44d377){return _0x4c06a6&_0x44d377;}};if(_0x11c554['CdYwW'](_0x420823,0xff))return Buffer[_0x25868c(0xa7)]([_0x420823]);if(_0x420823<=0xffff)return Buffer['from']([_0x11c554[_0x25868c(0xb0)](_0x420823,0x8)&0xff,_0x11c554['pUqEs'](_0x420823,0xff)]);if(_0x420823<=0xffffff)return Buffer['from']([_0x11c554[_0x25868c(0x99)](_0x420823>>0x10,0xff),_0x11c554[_0x25868c(0x99)](_0x11c554['NUGzm'](_0x420823,0x8),0xff),_0x11c554[_0x25868c(0x99)](_0x420823,0xff)]);return Buffer[_0x25868c(0xa7)]([_0x11c554['pUqEs'](_0x11c554['NUGzm'](_0x420823,0x18),0xff),_0x420823>>0x10&0xff,_0x11c554['uYOaF'](_0x420823>>0x8,0xff),_0x11c554['uYOaF'](_0x420823,0xff)]);}function writeVint(_0x21ff54,_0xae12dd){const _0x2cc2c7=_0x3130,_0x44bfe8={'eTXyq':function(_0x4cc853,_0x16b2d2){return _0x4cc853<_0x16b2d2;},'lsoQx':function(_0x342ee0,_0x1fb251){return _0x342ee0-_0x1fb251;},'lRsFr':function(_0x40819c,_0x2db77b){return _0x40819c-_0x2db77b;},'xxXlX':function(_0x843d63,_0x4443ba){return _0x843d63<<_0x4443ba;}};let _0x286051=_0xae12dd||0x1;while(_0x44bfe8[_0x2cc2c7(0xc6)](_0x44bfe8['lsoQx'](Math['pow'](0x2,0x7*_0x286051),0x2),_0x21ff54))_0x286051++;const _0x36ca5b=Buffer['alloc'](_0x286051);for(let _0x61ce21=_0x44bfe8['lRsFr'](_0x286051,0x1);_0x61ce21>=0x0;_0x61ce21--){_0x36ca5b[_0x61ce21]=_0x21ff54&0xff,_0x21ff54=Math[_0x2cc2c7(0xbd)](_0x21ff54/0x100);}return _0x36ca5b[0x0]|=_0x44bfe8[_0x2cc2c7(0x8f)](0x1,_0x44bfe8['lsoQx'](0x8,_0x286051)),_0x36ca5b;}function writeFloat64(_0x4a5122){const _0x5b26df=_0x3130,_0x5305c7=Buffer['alloc'](0x8);return _0x5305c7[_0x5b26df(0x9b)](_0x4a5122,0x0),_0x5305c7;}function writeVoid(_0x39bf64){const _0x36d3d7=_0x3130,_0x1e705d={'npRNF':function(_0x3a8252,_0x7587b7){return _0x3a8252-_0x7587b7;},'uTHPE':function(_0x1a8e3f,_0x1cff76){return _0x1a8e3f>=_0x1cff76;},'rMuHF':function(_0x142a5e,_0xb190cd,_0x46d00c){return _0x142a5e(_0xb190cd,_0x46d00c);}};for(let _0x2dff78=0x1;_0x2dff78<=0x8;_0x2dff78++){const _0x525596=_0x1e705d['npRNF'](_0x1e705d['npRNF'](_0x39bf64,0x1),_0x2dff78);if(_0x1e705d['uTHPE'](_0x525596,0x0)&&_0x525596<=Math['pow'](0x2,0x7*_0x2dff78)-0x2)return Buffer['concat']([Buffer[_0x36d3d7(0xa7)]([ID_VOID]),_0x1e705d[_0x36d3d7(0xaf)](writeVint,_0x525596,_0x2dff78),Buffer['alloc'](_0x525596)]);}return Buffer[_0x36d3d7(0xcb)](0x0);}function findElement(_0x4e4181,_0x2c50d9,_0x1f719d,_0x391865){const _0x34f133=_0x3130,_0x543977={'HovlR':function(_0x735d60,_0x51a993){return _0x735d60+_0x51a993;},'OFpAK':function(_0x1b529f,_0x336fa6,_0x3e7925){return _0x1b529f(_0x336fa6,_0x3e7925);}};let _0x178660=_0x2c50d9;while(_0x178660<_0x1f719d){const [_0x1e5f63,_0x1f7792]=readId(_0x4e4181,_0x178660),[_0x32a1bc,_0x524747]=readVint(_0x4e4181,_0x543977['HovlR'](_0x178660,_0x1f7792));if(_0x1e5f63===_0x391865)return{'offset':_0x178660,'idLen':_0x1f7792,'sizeLen':_0x524747,'dataSize':_0x32a1bc,'dataOffset':_0x178660+_0x1f7792+_0x524747};if(_0x543977[_0x34f133(0xb5)](isUnknownSize,_0x32a1bc,_0x524747))break;_0x178660+=_0x1f7792+_0x524747+_0x32a1bc;}return null;}function computeDurationMs(_0x59b964,_0x5f26a9){const _0x2fa77a=_0x3130,_0x666e84={'qIHno':function(_0x2c21db,_0x4c5e4b){return _0x2c21db===_0x4c5e4b;},'yOCkZ':function(_0x4b47a6,_0x32f820){return _0x4b47a6<_0x32f820;},'LjkmM':function(_0x21a252,_0x3e8c6d,_0x1bd90d){return _0x21a252(_0x3e8c6d,_0x1bd90d);},'Zhewn':function(_0x352a47,_0x573bc8){return _0x352a47!==_0x573bc8;},'plOwO':function(_0x5a1759,_0x1f839c){return _0x5a1759+_0x1f839c;},'YEWoW':function(_0x36ffeb,_0x5c6646){return _0x36ffeb+_0x5c6646;},'ETJWa':function(_0x501e4e,_0x47bf8f,_0x2f5028){return _0x501e4e(_0x47bf8f,_0x2f5028);},'QmVMz':function(_0x384272,_0x53d5e3){return _0x384272<_0x53d5e3;},'UwNdq':function(_0x5df036,_0x4da1a3){return _0x5df036-_0x4da1a3;},'sQskH':function(_0x2bdd76,_0x31c7fd){return _0x2bdd76+_0x31c7fd;},'nhEko':function(_0x19ffbc,_0x58b15b){return _0x19ffbc===_0x58b15b;},'wvawx':function(_0x393a53,_0x35704d,_0x3e9900,_0x48c16c){return _0x393a53(_0x35704d,_0x3e9900,_0x48c16c);},'NapzH':function(_0xc42267,_0x339eb2){return _0xc42267+_0x339eb2;},'giIBF':function(_0x3a4c2c,_0x278612,_0x3babb2){return _0x3a4c2c(_0x278612,_0x3babb2);}};let _0x1ecd8d=0x0;const _0xf19dc6=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x19cb8f=_0x59b964['indexOf'](_0xf19dc6);if(_0x666e84[_0x2fa77a(0xa9)](_0x19cb8f,-0x1))return 0x0;while(_0x666e84[_0x2fa77a(0xb7)](_0x19cb8f,_0x59b964['length'])){const [_0x4eee20,_0x3268f6]=_0x666e84['LjkmM'](readId,_0x59b964,_0x19cb8f);if(_0x666e84['Zhewn'](_0x4eee20,ID_CLUSTER))break;const [_0x457ba5,_0x549d9b]=readVint(_0x59b964,_0x19cb8f+_0x3268f6),_0x177b2f=_0x666e84[_0x2fa77a(0xb3)](_0x666e84['YEWoW'](_0x19cb8f,_0x3268f6),_0x549d9b),_0x2b5ca0=_0x666e84[_0x2fa77a(0x9c)](isUnknownSize,_0x457ba5,_0x549d9b);let _0x41a644;if(_0x2b5ca0){let _0x4ed0d7=_0x177b2f;while(_0x666e84['QmVMz'](_0x4ed0d7,_0x666e84[_0x2fa77a(0xb2)](_0x59b964['length'],0x4))){const [_0x38453a,_0x297b4a]=readId(_0x59b964,_0x4ed0d7);if(_0x38453a===ID_CLUSTER){_0x41a644=_0x4ed0d7;break;}const [_0x4a866d,_0x4565ab]=readVint(_0x59b964,_0x666e84[_0x2fa77a(0x97)](_0x4ed0d7,_0x297b4a));if(isUnknownSize(_0x4a866d,_0x4565ab)){_0x41a644=_0x59b964[_0x2fa77a(0xbf)];break;}_0x4ed0d7+=_0x666e84['plOwO'](_0x297b4a+_0x4565ab,_0x4a866d);}_0x41a644??=_0x59b964['length'];}else _0x41a644=_0x666e84['YEWoW'](_0x177b2f,_0x457ba5);let _0x405ee8=0x0,_0x37f5fd=_0x177b2f;while(_0x666e84['QmVMz'](_0x37f5fd,_0x41a644)){const [_0x375d5a,_0x767bdd]=readId(_0x59b964,_0x37f5fd),[_0x1b6248,_0x20e91c]=readVint(_0x59b964,_0x37f5fd+_0x767bdd);if(_0x666e84['nhEko'](_0x375d5a,ID_TIMESTAMP))_0x405ee8=_0x666e84['wvawx'](readUint,_0x59b964,_0x37f5fd+_0x767bdd+_0x20e91c,_0x1b6248);else{if(_0x375d5a===ID_SIMPLE_BLOCK&&_0x1b6248>=0x4){const _0x345324=_0x37f5fd+_0x767bdd+_0x20e91c,[,_0x2ed46a]=_0x666e84[_0x2fa77a(0x9c)](readVint,_0x59b964,_0x345324),_0x3e4004=_0x59b964[_0x2fa77a(0xc2)](_0x666e84['NapzH'](_0x345324,_0x2ed46a)),_0x23a6b1=(_0x405ee8+_0x3e4004)*_0x5f26a9/0xf4240;_0x23a6b1>_0x1ecd8d&&(_0x1ecd8d=_0x23a6b1);}else{if(_0x375d5a===ID_CLUSTER)break;}}if(_0x666e84[_0x2fa77a(0xaa)](isUnknownSize,_0x1b6248,_0x20e91c))break;_0x37f5fd+=_0x666e84['sQskH'](_0x767bdd,_0x20e91c)+_0x1b6248;}_0x19cb8f=_0x41a644;}return _0x1ecd8d;}export function fixWebmDuration(_0x23d520,_0x3598bc){const _0x10acac=_0x3130,_0x5ea6b9={'zrxAC':function(_0x28cec9,_0x26c601,_0x546f72){return _0x28cec9(_0x26c601,_0x546f72);},'iwACn':function(_0x4b3372,_0x4e583c,_0xa698f9){return _0x4b3372(_0x4e583c,_0xa698f9);},'fIOfS':function(_0x51f908,_0x2290ca){return _0x51f908+_0x2290ca;},'OGrfC':function(_0x51851f,_0x26cdcb){return _0x51851f+_0x26cdcb;},'MyjGi':function(_0x33a1b0,_0x440fd7){return _0x33a1b0+_0x440fd7;},'rvxTg':function(_0x369ed1,_0x664fbc,_0x36f2a1){return _0x369ed1(_0x664fbc,_0x36f2a1);},'lrEIM':function(_0x13d877,_0x1af3e3){return _0x13d877!==_0x1af3e3;},'lqgKp':function(_0xb3b8ae,_0x2f2684){return _0xb3b8ae+_0x2f2684;},'tqShG':function(_0x25d950,_0x34d3f9){return _0x25d950===_0x34d3f9;},'QSHrX':function(_0x95b82b,_0x210752){return _0x95b82b+_0x210752;},'NKPAe':function(_0x3636c3,_0x1443df){return _0x3636c3+_0x1443df;},'jLMAl':'Could\x20not\x20find\x20Info\x20element','EfkJi':function(_0x45353f,_0x2db235,_0x21b26a,_0x477d8c,_0x3b4ddd){return _0x45353f(_0x2db235,_0x21b26a,_0x477d8c,_0x3b4ddd);},'IfEkc':function(_0x3d14e9,_0x562783){return _0x3d14e9/_0x562783;},'cFbAs':function(_0x1e9b51,_0x44653b){return _0x1e9b51<_0x44653b;},'MjnqP':function(_0xaeebdd,_0x3fbfd0){return _0xaeebdd-_0x3fbfd0;},'gPLEl':function(_0x2218b4,_0x4facef,_0x7d64b8,_0x3f00ab,_0x5c2b7f,_0x2203df,_0x16ae0d){return _0x2218b4(_0x4facef,_0x7d64b8,_0x3f00ab,_0x5c2b7f,_0x2203df,_0x16ae0d);},'ilsjz':function(_0x345870,_0xdd8874){return _0x345870+_0xdd8874;},'ZuYEx':function(_0x317f46,_0x409ed0){return _0x317f46(_0x409ed0);},'xHyiW':function(_0x396d09,_0x157e44,_0x2396f2){return _0x396d09(_0x157e44,_0x2396f2);}},_0x1805a4=readFileSync(_0x23d520);let _0x4d508e=0x0;const [_0x237d35,_0x6269c7]=_0x5ea6b9[_0x10acac(0x9f)](readId,_0x1805a4,_0x4d508e),[_0x1289b7,_0x5bd4f7]=_0x5ea6b9['iwACn'](readVint,_0x1805a4,_0x5ea6b9['fIOfS'](_0x4d508e,_0x6269c7));_0x4d508e+=_0x5ea6b9[_0x10acac(0xb8)](_0x5ea6b9[_0x10acac(0xc0)](_0x6269c7,_0x5bd4f7),_0x1289b7);const [_0x27079c,_0x507f64]=_0x5ea6b9['rvxTg'](readId,_0x1805a4,_0x4d508e);if(_0x5ea6b9[_0x10acac(0xc3)](_0x27079c,ID_SEGMENT))return console[_0x10acac(0x95)]('Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment'),![];const [,_0x29993c]=readVint(_0x1805a4,_0x5ea6b9['OGrfC'](_0x4d508e,_0x507f64)),_0x30f29a=_0x5ea6b9[_0x10acac(0xb8)](_0x4d508e+_0x507f64,_0x29993c);let _0x4eb3cb=_0x30f29a;const _0x104bf2=Math[_0x10acac(0xa1)](_0x1805a4[_0x10acac(0xbf)],_0x5ea6b9[_0x10acac(0xa4)](_0x30f29a,0x2710));let _0x432fe4=null,_0x392e4c=null;while(_0x4eb3cb<_0x104bf2){const [_0x40a6f9,_0x18aa9d]=_0x5ea6b9[_0x10acac(0x9f)](readId,_0x1805a4,_0x4eb3cb),[_0x45db65,_0x2c033d]=readVint(_0x1805a4,_0x4eb3cb+_0x18aa9d);_0x5ea6b9['tqShG'](_0x40a6f9,ID_VOID)&&!_0x432fe4&&(_0x432fe4={'offset':_0x4eb3cb,'idLen':_0x18aa9d,'sizeLen':_0x2c033d,'dataSize':_0x45db65,'dataOffset':_0x5ea6b9['QSHrX'](_0x4eb3cb+_0x18aa9d,_0x2c033d)});if(_0x40a6f9===ID_INFO){_0x392e4c={'offset':_0x4eb3cb,'idLen':_0x18aa9d,'sizeLen':_0x2c033d,'dataSize':_0x45db65,'dataOffset':_0x5ea6b9[_0x10acac(0xae)](_0x4eb3cb+_0x18aa9d,_0x2c033d)};break;}if(_0x5ea6b9[_0x10acac(0xba)](_0x40a6f9,ID_CLUSTER))break;if(isUnknownSize(_0x45db65,_0x2c033d))break;_0x4eb3cb+=_0x18aa9d+_0x2c033d+_0x45db65;}if(!_0x392e4c)return console['error'](_0x5ea6b9[_0x10acac(0xa2)]),![];const _0x2ffa95=_0x5ea6b9[_0x10acac(0x92)](findElement,_0x1805a4,_0x392e4c['dataOffset'],_0x392e4c['dataOffset']+_0x392e4c[_0x10acac(0xc4)],ID_DURATION);if(_0x2ffa95)return![];const _0x4719aa=findElement(_0x1805a4,_0x392e4c[_0x10acac(0x98)],_0x5ea6b9['MyjGi'](_0x392e4c[_0x10acac(0x98)],_0x392e4c['dataSize']),ID_TIMESTAMP_SCALE);let _0x44b04c=0xf4240;_0x4719aa&&(_0x44b04c=readUint(_0x1805a4,_0x4719aa[_0x10acac(0x98)],_0x4719aa['dataSize']));const _0x4fc991=computeDurationMs(_0x1805a4,_0x44b04c);if(_0x4fc991<=0x0)return console['error'](_0x10acac(0xbc)),![];const _0x21f99d=_0x5ea6b9['IfEkc'](_0x4fc991*0xf4240,_0x44b04c),_0x39fecf=Buffer['concat']([writeId(ID_DURATION),writeVint(0x8),writeFloat64(_0x21f99d)]),_0x4ae8e3=_0x39fecf[_0x10acac(0xbf)];if(!_0x432fe4||_0x5ea6b9[_0x10acac(0xac)](_0x432fe4['offset'],_0x392e4c[_0x10acac(0x9a)])){if(_0x432fe4){const _0x289b0f=_0x432fe4['idLen']+_0x432fe4[_0x10acac(0x9e)]+_0x432fe4[_0x10acac(0xc4)],_0x3e433b=_0x5ea6b9['MjnqP'](_0x289b0f,_0x4ae8e3);if(_0x3e433b<0x2)return _0x5ea6b9['gPLEl'](rewriteFile,_0x1805a4,_0x392e4c,_0x39fecf,_0x44b04c,_0x4fc991,_0x3598bc);const _0x5463da=_0x392e4c['dataSize']+_0x4ae8e3,_0xa8d907=Buffer['concat']([writeId(ID_INFO),writeVint(_0x5463da,_0x392e4c[_0x10acac(0x9e)])]),_0x23e630=_0x1805a4['slice'](_0x392e4c[_0x10acac(0x98)],_0x5ea6b9['ilsjz'](_0x392e4c[_0x10acac(0x98)],_0x392e4c['dataSize'])),_0x38c06f=_0x5ea6b9[_0x10acac(0x93)](writeVoid,_0x3e433b),_0x1aeeeb=_0x1805a4['slice'](0x0,_0x432fe4['offset']),_0x11c2bb=_0x1805a4[_0x10acac(0x90)](_0x392e4c[_0x10acac(0x98)]+_0x392e4c['dataSize']);return _0x5ea6b9['xHyiW'](writeFileSync,_0x3598bc,Buffer['concat']([_0x1aeeeb,_0x38c06f,_0xa8d907,_0x23e630,_0x39fecf,_0x11c2bb])),!![];}}return rewriteFile(_0x1805a4,_0x392e4c,_0x39fecf,_0x44b04c,_0x4fc991,_0x3598bc);}function _0x7eb6(){const _0x5f4b07=['HKZqR','16bhCdYM','endsWith','17698doEuQe','alloc','8558fDUcpa','log','3816EasuGK','42399GzhCjm','xxXlX','slice','concat','EfkJi','ZuYEx','PEHGf','error','YuwSL','sQskH','dataOffset','pUqEs','offset','writeDoubleBE','ETJWa','12PzXnlW','sizeLen','zrxAC','30CYLvkQ','min','jLMAl','argv','lqgKp','730TnZgwt','7822061ebkkGI','from','SeMrP','qIHno','giIBF','21081VaiIcL','cFbAs','MEzEG','NKPAe','rMuHF','rjvOZ','oeaWb','UwNdq','plOwO','28KGYWJv','OFpAK','47660JxMVGg','yOCkZ','OGrfC','ltDLD','tqShG','bjrXu','Could\x20not\x20compute\x20duration','floor','29666IinNtR','length','MyjGi','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','readInt16BE','lrEIM','dataSize','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','eTXyq'];_0x7eb6=function(){return _0x5f4b07;};return _0x7eb6();}function rewriteFile(_0x559062,_0x5efff9,_0x479352,_0x2c7027,_0x124acb,_0x594b1c){const _0x467c09=_0x3130,_0x49b741={'oeaWb':function(_0x14c810,_0x3c0de0){return _0x14c810(_0x3c0de0);},'ltDLD':function(_0xa66716,_0x1d97d0){return _0xa66716(_0x1d97d0);},'KGNFe':function(_0x1117b1,_0x20d866){return _0x1117b1+_0x20d866;}},_0x20487a=_0x5efff9[_0x467c09(0xc4)]+_0x479352['length'],_0x464cdf=Buffer['concat']([_0x49b741[_0x467c09(0xb1)](writeId,ID_INFO),_0x49b741[_0x467c09(0xb9)](writeVint,_0x20487a)]),_0x21d975=_0x49b741['KGNFe'](_0x5efff9['idLen'],_0x5efff9[_0x467c09(0x9e)]),_0x5e9d8a=_0x559062['slice'](0x0,_0x5efff9[_0x467c09(0x9a)]),_0x51416e=_0x559062['slice'](_0x5efff9[_0x467c09(0x98)],_0x5efff9['dataOffset']+_0x5efff9[_0x467c09(0xc4)]),_0x37ee1f=_0x559062[_0x467c09(0x90)](_0x5efff9[_0x467c09(0x9a)]+_0x21d975+_0x5efff9[_0x467c09(0xc4)]);return writeFileSync(_0x594b1c,Buffer[_0x467c09(0x91)]([_0x5e9d8a,_0x464cdf,_0x51416e,_0x479352,_0x37ee1f])),!![];}if(process['argv'][0x1]?.[_0x2f6dcc(0xc9)]('fixWebmDuration.ts')||process['argv'][0x1]?.['endsWith']('fixWebmDuration.js')){const input=process['argv'][0x2],output=process[_0x2f6dcc(0xa3)][0x3];(!input||!output)&&(console['error'](_0x2f6dcc(0xc1)),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x2f6dcc(0xcd)]('Fixed:\x20'+output):console[_0x2f6dcc(0xcd)](_0x2f6dcc(0xc5));}
|
|
1
|
+
const _0xf79410=_0x23e1;function _0x23e1(_0x46a31d,_0x1c4ff4){_0x46a31d=_0x46a31d-0x1da;const _0x170eab=_0x170e();let _0x23e168=_0x170eab[_0x46a31d];return _0x23e168;}(function(_0x498190,_0x45dd7d){const _0x5631c3=_0x23e1,_0x2f60ba=_0x498190();while(!![]){try{const _0x316a27=parseInt(_0x5631c3(0x212))/0x1+parseInt(_0x5631c3(0x1dd))/0x2*(parseInt(_0x5631c3(0x1e1))/0x3)+-parseInt(_0x5631c3(0x1f0))/0x4+-parseInt(_0x5631c3(0x204))/0x5*(-parseInt(_0x5631c3(0x208))/0x6)+parseInt(_0x5631c3(0x210))/0x7+-parseInt(_0x5631c3(0x202))/0x8+-parseInt(_0x5631c3(0x21a))/0x9*(parseInt(_0x5631c3(0x1f9))/0xa);if(_0x316a27===_0x45dd7d)break;else _0x2f60ba['push'](_0x2f60ba['shift']());}catch(_0x31cea5){_0x2f60ba['push'](_0x2f60ba['shift']());}}}(_0x170e,0xe4e0b));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(_0x1d5b87,_0x1231aa){const _0x151503=_0x23e1,_0x1cc64e={'JpEbG':function(_0x12cfa3,_0x2be114){return _0x12cfa3-_0x2be114;},'BhybF':function(_0x8ed945,_0x307b43){return _0x8ed945<_0x307b43;},'hxPYq':function(_0x3e43b8,_0x3cb67e){return _0x3e43b8*_0x3cb67e;},'KHfXD':function(_0x230696,_0x3499fb){return _0x230696+_0x3499fb;}};if(_0x1231aa>=_0x1d5b87['length'])return[0x0,0x0];const _0x33aeb3=_0x1d5b87[_0x1231aa];let _0x2ad674=0x1,_0x5a22cc=0x80;while(_0x2ad674<=0x8&&!(_0x33aeb3&_0x5a22cc)){_0x2ad674++,_0x5a22cc>>=0x1;}if(_0x1231aa+_0x2ad674>_0x1d5b87['length'])return[0x0,0x0];let _0x10e9f2=_0x33aeb3&_0x1cc64e['JpEbG'](_0x5a22cc,0x1);for(let _0x393ca8=0x1;_0x1cc64e[_0x151503(0x1df)](_0x393ca8,_0x2ad674);_0x393ca8++){_0x10e9f2=_0x1cc64e['hxPYq'](_0x10e9f2,0x100)+_0x1d5b87[_0x1cc64e[_0x151503(0x21b)](_0x1231aa,_0x393ca8)];}return[_0x10e9f2,_0x2ad674];}function readId(_0x4ce48f,_0x296ac4){const _0x2b8c83=_0x23e1,_0x4fe0be={'kNXpV':function(_0x1b851f,_0x31ca53){return _0x1b851f>=_0x31ca53;},'wiSbr':function(_0x22b6b3,_0x578915){return _0x22b6b3+_0x578915;},'QIWKC':function(_0x2d239e,_0x5b51ac){return _0x2d239e*_0x5b51ac;},'PigGP':function(_0x7e641d,_0x103ed3){return _0x7e641d+_0x103ed3;}};if(_0x296ac4>=_0x4ce48f['length'])return[0x0,0x0];const _0x1aa95e=_0x4ce48f[_0x296ac4];let _0x12400;if(_0x4fe0be['kNXpV'](_0x1aa95e,0x80))_0x12400=0x1;else{if(_0x1aa95e>=0x40)_0x12400=0x2;else{if(_0x1aa95e>=0x20)_0x12400=0x3;else{if(_0x4fe0be[_0x2b8c83(0x1f8)](_0x1aa95e,0x10))_0x12400=0x4;else return[_0x1aa95e,0x1];}}}if(_0x296ac4+_0x12400>_0x4ce48f['length'])return[0x0,0x0];let _0x4bb324=0x0;for(let _0xf99255=0x0;_0xf99255<_0x12400;_0xf99255++){_0x4bb324=_0x4fe0be['wiSbr'](_0x4fe0be[_0x2b8c83(0x1fa)](_0x4bb324,0x100),_0x4ce48f[_0x4fe0be['PigGP'](_0x296ac4,_0xf99255)]);}return[_0x4bb324,_0x12400];}function readUint(_0x1ea5a9,_0x354e4a,_0x11d0c2){const _0x3c2207=_0x23e1,_0x4c1247={'pKugp':function(_0x35269f,_0x1b6316){return _0x35269f+_0x1b6316;},'QqWVS':function(_0x5f378b,_0x35563a){return _0x5f378b*_0x35563a;}};let _0x5ab5a3=0x0;for(let _0x19ea62=0x0;_0x19ea62<_0x11d0c2;_0x19ea62++){_0x5ab5a3=_0x4c1247['pKugp'](_0x4c1247[_0x3c2207(0x1e4)](_0x5ab5a3,0x100),_0x1ea5a9[_0x354e4a+_0x19ea62]);}return _0x5ab5a3;}function isUnknownSize(_0x20564f,_0x5a93c9){const _0x33b09b=_0x23e1,_0x4b83b7={'ulQJO':function(_0x36cec3,_0x4fc69c){return _0x36cec3===_0x4fc69c;},'nvfAs':function(_0x12084a,_0xe24e04){return _0x12084a-_0xe24e04;}};return _0x4b83b7[_0x33b09b(0x1fd)](_0x20564f,_0x4b83b7[_0x33b09b(0x20c)](Math['pow'](0x2,0x7*_0x5a93c9),0x1));}function writeId(_0x280b98){const _0x5977ee=_0x23e1,_0x29be15={'tjWRL':function(_0x405e41,_0x1d13d6){return _0x405e41<=_0x1d13d6;},'NRYOw':function(_0x249a55,_0x2e3290){return _0x249a55&_0x2e3290;},'EOPRd':function(_0x3470fa,_0xa86a2d){return _0x3470fa&_0xa86a2d;},'GnpGv':function(_0x4e370a,_0x18a0df){return _0x4e370a>>_0x18a0df;},'bPpOC':function(_0x291230,_0x379556){return _0x291230&_0x379556;},'ljyYS':function(_0x171282,_0xd26fcf){return _0x171282>>_0xd26fcf;}};if(_0x280b98<=0xff)return Buffer['from']([_0x280b98]);if(_0x29be15['tjWRL'](_0x280b98,0xffff))return Buffer['from']([_0x280b98>>0x8&0xff,_0x29be15[_0x5977ee(0x216)](_0x280b98,0xff)]);if(_0x280b98<=0xffffff)return Buffer['from']([_0x29be15[_0x5977ee(0x1e0)](_0x29be15['GnpGv'](_0x280b98,0x10),0xff),_0x29be15[_0x5977ee(0x1ef)](_0x280b98>>0x8,0xff),_0x280b98&0xff]);return Buffer['from']([_0x29be15['NRYOw'](_0x280b98>>0x18,0xff),_0x29be15[_0x5977ee(0x1ef)](_0x29be15[_0x5977ee(0x1ea)](_0x280b98,0x10),0xff),_0x29be15['ljyYS'](_0x280b98,0x8)&0xff,_0x280b98&0xff]);}function writeVint(_0x40fb3f,_0xa2482c){const _0x302578=_0x23e1,_0x449c12={'raGNk':function(_0x4851d2,_0x40f7f7){return _0x4851d2||_0x40f7f7;},'GnbCI':function(_0x446287,_0x431a58){return _0x446287<_0x431a58;},'DYDPY':function(_0x4d75ae,_0x30efdb){return _0x4d75ae-_0x30efdb;},'QavVg':function(_0x51eda1,_0x4ddcd4){return _0x51eda1*_0x4ddcd4;},'tzFYG':function(_0x22c976,_0x3c47eb){return _0x22c976&_0x3c47eb;},'rloZz':function(_0x4642b3,_0xb665ac){return _0x4642b3/_0xb665ac;},'weunl':function(_0x148f68,_0x50ba06){return _0x148f68<<_0x50ba06;},'WEJkH':function(_0x19568a,_0x46a6e5){return _0x19568a-_0x46a6e5;}};let _0x36101b=_0x449c12[_0x302578(0x1fe)](_0xa2482c,0x1);while(_0x449c12[_0x302578(0x1f1)](_0x449c12[_0x302578(0x1ed)](Math['pow'](0x2,_0x449c12['QavVg'](0x7,_0x36101b)),0x2),_0x40fb3f))_0x36101b++;const _0x4b23b8=Buffer['alloc'](_0x36101b);for(let _0x4d7ef8=_0x449c12['DYDPY'](_0x36101b,0x1);_0x4d7ef8>=0x0;_0x4d7ef8--){_0x4b23b8[_0x4d7ef8]=_0x449c12[_0x302578(0x214)](_0x40fb3f,0xff),_0x40fb3f=Math[_0x302578(0x1e3)](_0x449c12[_0x302578(0x21c)](_0x40fb3f,0x100));}return _0x4b23b8[0x0]|=_0x449c12['weunl'](0x1,_0x449c12[_0x302578(0x217)](0x8,_0x36101b)),_0x4b23b8;}function writeFloat64(_0x164baf){const _0x63db62=_0x23e1,_0xb58e5c=Buffer['alloc'](0x8);return _0xb58e5c[_0x63db62(0x1e6)](_0x164baf,0x0),_0xb58e5c;}function writeVoid(_0x4e1b81){const _0x5a4312=_0x23e1,_0x1420c2={'RpfUq':function(_0x202cbb,_0x5213d5){return _0x202cbb<=_0x5213d5;},'LYFLA':function(_0x1518e1,_0x5b39d0){return _0x1518e1>=_0x5b39d0;},'eyaWc':function(_0xfeb730,_0x52acf3){return _0xfeb730*_0x52acf3;},'KwEOF':function(_0x383d7f,_0x106dc5,_0x58603d){return _0x383d7f(_0x106dc5,_0x58603d);}};for(let _0x506155=0x1;_0x1420c2['RpfUq'](_0x506155,0x8);_0x506155++){const _0x52cce0=_0x4e1b81-0x1-_0x506155;if(_0x1420c2[_0x5a4312(0x1da)](_0x52cce0,0x0)&&_0x52cce0<=Math[_0x5a4312(0x1f4)](0x2,_0x1420c2['eyaWc'](0x7,_0x506155))-0x2)return Buffer['concat']([Buffer['from']([ID_VOID]),_0x1420c2[_0x5a4312(0x1f7)](writeVint,_0x52cce0,_0x506155),Buffer['alloc'](_0x52cce0)]);}return Buffer['alloc'](0x0);}function findElement(_0x2d218e,_0x5ea370,_0x1fd280,_0x5ae750){const _0x212418={'jYOyQ':function(_0x4ef72a,_0x5c178b){return _0x4ef72a<_0x5c178b;},'SeZjh':function(_0x66f428,_0x22887d){return _0x66f428===_0x22887d;},'EKZRK':function(_0x59b839,_0x411dfe){return _0x59b839+_0x411dfe;},'UgUnE':function(_0x4fc908,_0x2e4ff5,_0x5c0554){return _0x4fc908(_0x2e4ff5,_0x5c0554);}};let _0x5568a8=_0x5ea370;while(_0x212418['jYOyQ'](_0x5568a8,_0x1fd280)){const [_0x9a33ce,_0x1f8ce]=readId(_0x2d218e,_0x5568a8),[_0x5e4272,_0x67f14]=readVint(_0x2d218e,_0x5568a8+_0x1f8ce);if(_0x212418['SeZjh'](_0x9a33ce,_0x5ae750))return{'offset':_0x5568a8,'idLen':_0x1f8ce,'sizeLen':_0x67f14,'dataSize':_0x5e4272,'dataOffset':_0x212418['EKZRK'](_0x5568a8,_0x1f8ce)+_0x67f14};if(_0x212418['UgUnE'](isUnknownSize,_0x5e4272,_0x67f14))break;_0x5568a8+=_0x1f8ce+_0x67f14+_0x5e4272;}return null;}function _0x170e(){const _0x421c46=['idZIh','pow','Could\x20not\x20compute\x20duration','osnuX','KwEOF','kNXpV','2983010BsSlaT','QIWKC','BcBbk','concat','ulQJO','raGNk','dataOffset','indexOf','fixWebmDuration.js','6443968DTTNsd','argv','3034285KyKJyl','readInt16BE','GApDw','HgTiG','18kGSPWL','ZwjXm','error','idLen','nvfAs','BDtEv','sizeLen','JZpBs','8482922MlwXxF','UgUBx','1167596EKYnum','offset','tzFYG','dataSize','NRYOw','WEJkH','ATQHC','NIOqG','81NsPbRk','KHfXD','rloZz','LYFLA','NCTtJ','HAhDO','202Ylqkrk','length','BhybF','EOPRd','14343DitvbO','fixWebmDuration.ts','floor','QqWVS','xoiDG','writeDoubleBE','JKiXU','ilKsG','lxrvd','ljyYS','eaDWz','slice','DYDPY','wecrV','bPpOC','1020824Wkewyj','GnbCI','EEWLp'];_0x170e=function(){return _0x421c46;};return _0x170e();}function computeDurationMs(_0x546e5e,_0x676be3){const _0x234dab=_0x23e1,_0x4dedac={'osnuX':function(_0xb759b9,_0x5b600a){return _0xb759b9<_0x5b600a;},'lxrvd':function(_0x3d1a01,_0x6c44,_0x50098b){return _0x3d1a01(_0x6c44,_0x50098b);},'sRIRa':function(_0x2fe62b,_0x1cf488){return _0x2fe62b!==_0x1cf488;},'JZpBs':function(_0x1987c2,_0x19ab4a){return _0x1987c2+_0x19ab4a;},'xoiDG':function(_0x3489d1,_0x4e3a00){return _0x3489d1+_0x4e3a00;},'kLqor':function(_0x170993,_0x4c7195){return _0x170993-_0x4c7195;},'wecrV':function(_0xe8a51b,_0xa83775,_0x1e5dae){return _0xe8a51b(_0xa83775,_0x1e5dae);},'HAhDO':function(_0x1d89ce,_0x270881){return _0x1d89ce===_0x270881;},'sMGFJ':function(_0x395696,_0xdaed78){return _0x395696/_0xdaed78;},'BcBbk':function(_0x4e8227,_0x52e644){return _0x4e8227*_0x52e644;},'wyruy':function(_0x5dd78a,_0x5284f7){return _0x5dd78a===_0x5284f7;}};let _0x36d640=0x0;const _0x337e00=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0xef9f6=_0x546e5e[_0x234dab(0x200)](_0x337e00);if(_0xef9f6===-0x1)return 0x0;while(_0x4dedac[_0x234dab(0x1f6)](_0xef9f6,_0x546e5e[_0x234dab(0x1de)])){const [_0x16bc01,_0x3a8f4b]=_0x4dedac[_0x234dab(0x1e9)](readId,_0x546e5e,_0xef9f6);if(_0x4dedac['sRIRa'](_0x16bc01,ID_CLUSTER))break;const [_0x3334de,_0x570a01]=readVint(_0x546e5e,_0x4dedac[_0x234dab(0x20f)](_0xef9f6,_0x3a8f4b)),_0x3c6edf=_0x4dedac[_0x234dab(0x1e5)](_0xef9f6,_0x3a8f4b)+_0x570a01,_0x17ee78=_0x4dedac[_0x234dab(0x1e9)](isUnknownSize,_0x3334de,_0x570a01);let _0xec85ec;if(_0x17ee78){let _0xe878ce=_0x3c6edf;while(_0xe878ce<_0x4dedac['kLqor'](_0x546e5e[_0x234dab(0x1de)],0x4)){const [_0x232e14,_0x3ec32b]=readId(_0x546e5e,_0xe878ce);if(_0x232e14===ID_CLUSTER){_0xec85ec=_0xe878ce;break;}const [_0x554c7d,_0x2b421c]=_0x4dedac[_0x234dab(0x1e9)](readVint,_0x546e5e,_0xe878ce+_0x3ec32b);if(_0x4dedac[_0x234dab(0x1e9)](isUnknownSize,_0x554c7d,_0x2b421c)){_0xec85ec=_0x546e5e['length'];break;}_0xe878ce+=_0x3ec32b+_0x2b421c+_0x554c7d;}_0xec85ec??=_0x546e5e['length'];}else _0xec85ec=_0x3c6edf+_0x3334de;let _0x3764a4=0x0,_0xa1acf7=_0x3c6edf;while(_0xa1acf7<_0xec85ec){const [_0x1918e5,_0x5f2599]=readId(_0x546e5e,_0xa1acf7),[_0x3919b5,_0x2435b]=_0x4dedac[_0x234dab(0x1ee)](readVint,_0x546e5e,_0x4dedac['xoiDG'](_0xa1acf7,_0x5f2599));if(_0x4dedac[_0x234dab(0x1dc)](_0x1918e5,ID_TIMESTAMP))_0x3764a4=readUint(_0x546e5e,_0x4dedac['xoiDG'](_0xa1acf7,_0x5f2599)+_0x2435b,_0x3919b5);else{if(_0x4dedac[_0x234dab(0x1dc)](_0x1918e5,ID_SIMPLE_BLOCK)&&_0x3919b5>=0x4){const _0xa4bf2a=_0x4dedac[_0x234dab(0x1e5)](_0xa1acf7+_0x5f2599,_0x2435b),[,_0x34899f]=readVint(_0x546e5e,_0xa4bf2a),_0x287e81=_0x546e5e[_0x234dab(0x205)](_0xa4bf2a+_0x34899f),_0x3db4d1=_0x4dedac['sMGFJ'](_0x4dedac[_0x234dab(0x1fb)](_0x4dedac['xoiDG'](_0x3764a4,_0x287e81),_0x676be3),0xf4240);_0x3db4d1>_0x36d640&&(_0x36d640=_0x3db4d1);}else{if(_0x4dedac['wyruy'](_0x1918e5,ID_CLUSTER))break;}}if(_0x4dedac[_0x234dab(0x1ee)](isUnknownSize,_0x3919b5,_0x2435b))break;_0xa1acf7+=_0x5f2599+_0x2435b+_0x3919b5;}_0xef9f6=_0xec85ec;}return _0x36d640;}export function fixWebmDuration(_0xcb8e59,_0xb78ac){const _0x30a951=_0x23e1,_0x39c5c2={'NCTtJ':function(_0x1030ac,_0x3e6794,_0x46a919){return _0x1030ac(_0x3e6794,_0x46a919);},'EEWLp':function(_0x1a9073,_0x204166){return _0x1a9073+_0x204166;},'ATQHC':function(_0xfdd398,_0x2b1bac){return _0xfdd398!==_0x2b1bac;},'HgTiG':function(_0x1b102c,_0x5a2234){return _0x1b102c+_0x5a2234;},'JKiXU':function(_0x54b9ea,_0x5c729d){return _0x54b9ea<_0x5c729d;},'vmIrQ':function(_0x37fa98,_0x9a7d87){return _0x37fa98+_0x9a7d87;},'BDtEv':function(_0x3c7f56,_0x55278b){return _0x3c7f56+_0x55278b;},'rnfOr':function(_0x278809,_0x4fb3f2){return _0x278809+_0x4fb3f2;},'GApDw':function(_0x4469ae,_0xc32545,_0x41eae6,_0x408092,_0x248f44){return _0x4469ae(_0xc32545,_0x41eae6,_0x408092,_0x248f44);},'kImgc':function(_0x5c40dd,_0x11d80a,_0x18305d,_0x4e1d8a){return _0x5c40dd(_0x11d80a,_0x18305d,_0x4e1d8a);},'NIOqG':function(_0x4c73eb,_0x2ba385){return _0x4c73eb<=_0x2ba385;},'ilKsG':function(_0x597248,_0x5df49e){return _0x597248*_0x5df49e;},'HddoS':function(_0x1c195c,_0x3e067e){return _0x1c195c(_0x3e067e);},'mfmoB':function(_0x403050,_0x2e4312){return _0x403050+_0x2e4312;},'ZwjXm':function(_0x331c56,_0x336a1b){return _0x331c56-_0x336a1b;},'idZIh':function(_0x4f2994,_0x8b2175){return _0x4f2994+_0x8b2175;}},_0x2d8691=readFileSync(_0xcb8e59);let _0x4eed0c=0x0;const [_0x1f81ad,_0x2e52ac]=readId(_0x2d8691,_0x4eed0c),[_0x290289,_0x22b2b4]=_0x39c5c2['NCTtJ'](readVint,_0x2d8691,_0x39c5c2[_0x30a951(0x1f2)](_0x4eed0c,_0x2e52ac));_0x4eed0c+=_0x39c5c2[_0x30a951(0x1f2)](_0x39c5c2['EEWLp'](_0x2e52ac,_0x22b2b4),_0x290289);const [_0x151319,_0x5027ad]=readId(_0x2d8691,_0x4eed0c);if(_0x39c5c2[_0x30a951(0x218)](_0x151319,ID_SEGMENT))return console[_0x30a951(0x20a)]('Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment'),![];const [,_0x106bf4]=_0x39c5c2[_0x30a951(0x1db)](readVint,_0x2d8691,_0x4eed0c+_0x5027ad),_0x5d2b53=_0x39c5c2[_0x30a951(0x207)](_0x4eed0c+_0x5027ad,_0x106bf4);let _0x2496fc=_0x5d2b53;const _0xc7b58c=Math['min'](_0x2d8691['length'],_0x5d2b53+0x2710);let _0x24ddb7=null,_0x56240c=null;while(_0x39c5c2[_0x30a951(0x1e7)](_0x2496fc,_0xc7b58c)){const [_0x42e9e1,_0x36337d]=_0x39c5c2['NCTtJ'](readId,_0x2d8691,_0x2496fc),[_0x163316,_0x28f7c5]=readVint(_0x2d8691,_0x39c5c2['vmIrQ'](_0x2496fc,_0x36337d));_0x42e9e1===ID_VOID&&!_0x24ddb7&&(_0x24ddb7={'offset':_0x2496fc,'idLen':_0x36337d,'sizeLen':_0x28f7c5,'dataSize':_0x163316,'dataOffset':_0x39c5c2['BDtEv'](_0x2496fc+_0x36337d,_0x28f7c5)});if(_0x42e9e1===ID_INFO){_0x56240c={'offset':_0x2496fc,'idLen':_0x36337d,'sizeLen':_0x28f7c5,'dataSize':_0x163316,'dataOffset':_0x2496fc+_0x36337d+_0x28f7c5};break;}if(_0x42e9e1===ID_CLUSTER)break;if(isUnknownSize(_0x163316,_0x28f7c5))break;_0x2496fc+=_0x39c5c2['rnfOr'](_0x39c5c2['vmIrQ'](_0x36337d,_0x28f7c5),_0x163316);}if(!_0x56240c)return console['error']('Could\x20not\x20find\x20Info\x20element'),![];const _0x322c7b=_0x39c5c2[_0x30a951(0x206)](findElement,_0x2d8691,_0x56240c[_0x30a951(0x1ff)],_0x39c5c2['HgTiG'](_0x56240c[_0x30a951(0x1ff)],_0x56240c['dataSize']),ID_DURATION);if(_0x322c7b)return![];const _0x20a19a=_0x39c5c2[_0x30a951(0x206)](findElement,_0x2d8691,_0x56240c[_0x30a951(0x1ff)],_0x39c5c2[_0x30a951(0x20d)](_0x56240c['dataOffset'],_0x56240c['dataSize']),ID_TIMESTAMP_SCALE);let _0xddd878=0xf4240;_0x20a19a&&(_0xddd878=_0x39c5c2['kImgc'](readUint,_0x2d8691,_0x20a19a[_0x30a951(0x1ff)],_0x20a19a[_0x30a951(0x215)]));const _0x53e268=computeDurationMs(_0x2d8691,_0xddd878);if(_0x39c5c2[_0x30a951(0x219)](_0x53e268,0x0))return console[_0x30a951(0x20a)](_0x30a951(0x1f5)),![];const _0x1ec7c6=_0x39c5c2[_0x30a951(0x1e8)](_0x53e268,0xf4240)/_0xddd878,_0x34acbc=Buffer[_0x30a951(0x1fc)]([_0x39c5c2['HddoS'](writeId,ID_DURATION),writeVint(0x8),_0x39c5c2['HddoS'](writeFloat64,_0x1ec7c6)]),_0x5d6141=_0x34acbc['length'];if(!_0x24ddb7||_0x24ddb7['offset']<_0x56240c['offset']){if(_0x24ddb7){const _0x2810d4=_0x39c5c2['mfmoB'](_0x39c5c2['HgTiG'](_0x24ddb7[_0x30a951(0x20b)],_0x24ddb7[_0x30a951(0x20e)]),_0x24ddb7[_0x30a951(0x215)]),_0x26aa50=_0x39c5c2[_0x30a951(0x209)](_0x2810d4,_0x5d6141);if(_0x26aa50<0x2)return rewriteFile(_0x2d8691,_0x56240c,_0x34acbc,_0xddd878,_0x53e268,_0xb78ac);const _0x101346=_0x39c5c2['BDtEv'](_0x56240c[_0x30a951(0x215)],_0x5d6141),_0x283c58=Buffer['concat']([writeId(ID_INFO),writeVint(_0x101346,_0x56240c['sizeLen'])]),_0x52419e=_0x2d8691['slice'](_0x56240c[_0x30a951(0x1ff)],_0x39c5c2[_0x30a951(0x1f3)](_0x56240c[_0x30a951(0x1ff)],_0x56240c[_0x30a951(0x215)])),_0x505822=writeVoid(_0x26aa50),_0x59877c=_0x2d8691['slice'](0x0,_0x24ddb7[_0x30a951(0x213)]),_0xe0fe1b=_0x2d8691['slice'](_0x56240c[_0x30a951(0x1ff)]+_0x56240c[_0x30a951(0x215)]);return writeFileSync(_0xb78ac,Buffer['concat']([_0x59877c,_0x505822,_0x283c58,_0x52419e,_0x34acbc,_0xe0fe1b])),!![];}}return rewriteFile(_0x2d8691,_0x56240c,_0x34acbc,_0xddd878,_0x53e268,_0xb78ac);}function rewriteFile(_0x3ebfea,_0x40f952,_0x492a3e,_0x457061,_0x5e31d4,_0x21cc0f){const _0xabc1=_0x23e1,_0xc0cbb6={'eaDWz':function(_0x43e530,_0x128247){return _0x43e530+_0x128247;},'hcRIb':function(_0x58f9db,_0x30b44e){return _0x58f9db(_0x30b44e);},'UgUBx':function(_0x34737e,_0x238a44){return _0x34737e+_0x238a44;}},_0x2bd5c6=_0xc0cbb6['eaDWz'](_0x40f952[_0xabc1(0x215)],_0x492a3e['length']),_0x437cb8=Buffer['concat']([_0xc0cbb6['hcRIb'](writeId,ID_INFO),writeVint(_0x2bd5c6)]),_0x62eee3=_0xc0cbb6[_0xabc1(0x1eb)](_0x40f952['idLen'],_0x40f952['sizeLen']),_0x4a010f=_0x3ebfea[_0xabc1(0x1ec)](0x0,_0x40f952['offset']),_0x5c2c91=_0x3ebfea['slice'](_0x40f952[_0xabc1(0x1ff)],_0xc0cbb6['eaDWz'](_0x40f952['dataOffset'],_0x40f952[_0xabc1(0x215)])),_0x5c033a=_0x3ebfea[_0xabc1(0x1ec)](_0xc0cbb6[_0xabc1(0x211)](_0x40f952['offset']+_0x62eee3,_0x40f952[_0xabc1(0x215)]));return writeFileSync(_0x21cc0f,Buffer['concat']([_0x4a010f,_0x437cb8,_0x5c2c91,_0x492a3e,_0x5c033a])),!![];}if(process['argv'][0x1]?.['endsWith'](_0xf79410(0x1e2))||process[_0xf79410(0x203)][0x1]?.['endsWith'](_0xf79410(0x201))){const input=process['argv'][0x2],output=process['argv'][0x3];(!input||!output)&&(console['error']('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log']('Fixed:\x20'+output):console['log']('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x3f7b(){const _0x5e2386=['55381Irqtih','728ZEUHGm','10011TYTCXi','147140HqAOTo','6IjbjPw','7601hFtAgM','pipe','3898881UJjhwF','git\x20remote\x20get-url\x20origin','2610vtNaze','utf-8','pkTWK','VzbPA','1948304BaBgCY','24awscvL','3935511VjCYmC','github.com/','git\x20rev-parse\x20--abbrev-ref\x20HEAD','trim','replace'];_0x3f7b=function(){return _0x5e2386;};return _0x3f7b();}(function(_0x38485e,_0x459947){const _0x51f442=_0x3313,_0x24e1a3=_0x38485e();while(!![]){try{const _0x428738=parseInt(_0x51f442(0xc4))/0x1*(parseInt(_0x51f442(0xb4))/0x2)+-parseInt(_0x51f442(0xb2))/0x3*(parseInt(_0x51f442(0xc5))/0x4)+parseInt(_0x51f442(0xb3))/0x5*(-parseInt(_0x51f442(0xbe))/0x6)+parseInt(_0x51f442(0xb7))/0x7+-parseInt(_0x51f442(0xbd))/0x8+parseInt(_0x51f442(0xbf))/0x9+-parseInt(_0x51f442(0xb9))/0xa*(-parseInt(_0x51f442(0xb5))/0xb);if(_0x428738===_0x459947)break;else _0x24e1a3['push'](_0x24e1a3['shift']());}catch(_0x57962a){_0x24e1a3['push'](_0x24e1a3['shift']());}}}(_0x3f7b,0x5adcc));function _0x3313(_0x4c05f2,_0x14a4b7){_0x4c05f2=_0x4c05f2-0xb2;const _0x3f7b02=_0x3f7b();let _0x331336=_0x3f7b02[_0x4c05f2];return _0x331336;}import{execSync}from'child_process';export function getGitBranch(){const _0x51b843=_0x3313,_0xe7b2de={'lcJvo':function(_0xd8aa81,_0x161670,_0x7528e7){return _0xd8aa81(_0x161670,_0x7528e7);},'sfWFN':_0x51b843(0xb6)};try{return _0xe7b2de['lcJvo'](execSync,_0x51b843(0xc1),{'encoding':_0x51b843(0xba),'stdio':[_0x51b843(0xb6),'pipe',_0xe7b2de['sfWFN']]})[_0x51b843(0xc2)]();}catch{return undefined;}}export function getGitRepoUrl(){const _0x2afe7e=_0x3313,_0x528c46={'sFQcw':_0x2afe7e(0xb8),'RflSo':_0x2afe7e(0xb6),'pkTWK':_0x2afe7e(0xc0)};try{const _0x4f674f=execSync(_0x528c46['sFQcw'],{'encoding':_0x2afe7e(0xba),'stdio':[_0x528c46['RflSo'],_0x2afe7e(0xb6),'pipe']})[_0x2afe7e(0xc2)]();return _0x4f674f[_0x2afe7e(0xc3)](/\.git$/,'')[_0x2afe7e(0xc3)](/^git@github\.com:/,_0x528c46[_0x2afe7e(0xbb)])['replace'](/^https?:\/\//,'');}catch{return undefined;}}export function getGitInfo(){const _0x13a6d5=_0x3313,_0x87552f={'VzbPA':function(_0x3699c9){return _0x3699c9();}};return{'branch':_0x87552f[_0x13a6d5(0xbc)](getGitBranch),'repoUrl':_0x87552f[_0x13a6d5(0xbc)](getGitRepoUrl)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xd981c3=_0x5655;(function(_0x14f23e,_0x14af0e){const _0x33d1b5=_0x5655,_0x448596=_0x14f23e();while(!![]){try{const _0x5da9d2=parseInt(_0x33d1b5(0x136))/0x1+parseInt(_0x33d1b5(0x158))/0x2*(-parseInt(_0x33d1b5(0x154))/0x3)+parseInt(_0x33d1b5(0x16b))/0x4*(-parseInt(_0x33d1b5(0x150))/0x5)+-parseInt(_0x33d1b5(0x134))/0x6+-parseInt(_0x33d1b5(0x13c))/0x7*(parseInt(_0x33d1b5(0x167))/0x8)+parseInt(_0x33d1b5(0x148))/0x9*(-parseInt(_0x33d1b5(0x15f))/0xa)+parseInt(_0x33d1b5(0x160))/0xb;if(_0x5da9d2===_0x14af0e)break;else _0x448596['push'](_0x448596['shift']());}catch(_0x43bd88){_0x448596['push'](_0x448596['shift']());}}}(_0x4e44,0x4f6d8));const _0x39114a=(function(){const _0x179d1a=_0x5655,_0x5916eb={'TzdNJ':function(_0x1a024c,_0x147460){return _0x1a024c(_0x147460);},'qfxrg':function(_0x1ee60c,_0x2b7752){return _0x1ee60c!==_0x2b7752;},'zGDHH':_0x179d1a(0x155),'DrUEL':function(_0x5ee7f9,_0x11be39){return _0x5ee7f9===_0x11be39;},'TRsyS':_0x179d1a(0x14b)};let _0x46deed=!![];return function(_0xa67d74,_0x31f28e){const _0x12f2e5=_0x179d1a,_0x4a8b40={'DqLeX':function(_0x35d9a5,_0x329dc5){const _0xe8bea9=_0x5655;return _0x5916eb[_0xe8bea9(0x13f)](_0x35d9a5,_0x329dc5);},'Cucys':function(_0x4148b2,_0xbe39ca){const _0xe9379b=_0x5655;return _0x5916eb[_0xe9379b(0x149)](_0x4148b2,_0xbe39ca);},'IPzIO':_0x5916eb['zGDHH'],'mGmtf':function(_0x4a2532,_0x287ebe){const _0x24270a=_0x5655;return _0x5916eb[_0x24270a(0x130)](_0x4a2532,_0x287ebe);},'vjOJx':_0x12f2e5(0x12b),'TdKdf':_0x5916eb[_0x12f2e5(0x15b)]},_0x577312=_0x46deed?function(){const _0x179e2c=_0x12f2e5,_0x18b915={'OOvis':function(_0x36ba21,_0x18a181){const _0x52493e=_0x5655;return _0x4a8b40[_0x52493e(0x16c)](_0x36ba21,_0x18a181);}};if(_0x4a8b40[_0x179e2c(0x14d)](_0x4a8b40[_0x179e2c(0x163)],_0x4a8b40[_0x179e2c(0x163)]))_0x18b915[_0x179e2c(0x162)](_0x301947,_0x4d08de);else{if(_0x31f28e){if(_0x4a8b40[_0x179e2c(0x153)](_0x4a8b40[_0x179e2c(0x133)],_0x4a8b40[_0x179e2c(0x137)])){const _0x5869ee=_0x2ed231['apply'](_0x19ca33,arguments);return _0x4d91bf=null,_0x5869ee;}else{const _0x280e5b=_0x31f28e[_0x179e2c(0x144)](_0xa67d74,arguments);return _0x31f28e=null,_0x280e5b;}}}}:function(){};return _0x46deed=![],_0x577312;};}()),_0x2e0163=_0x39114a(this,function(){const _0x2674e=_0x5655,_0x341cb6={'DiUku':_0x2674e(0x170)};return _0x2e0163[_0x2674e(0x159)]()[_0x2674e(0x16d)](_0x341cb6['DiUku'])[_0x2674e(0x159)]()['constructor'](_0x2e0163)[_0x2674e(0x16d)](_0x341cb6['DiUku']);});_0x2e0163();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN='RANGER_CLI_TOKEN',ENV_TOKEN_LEGACY=_0xd981c3(0x166),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0xd981c3(0x168)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0xd981c3(0x152));function isGitHubCI(){const _0x2d0871=_0xd981c3;return!!process[_0x2d0871(0x13b)][_0x2d0871(0x151)];}async function writeToGitHubEnv(_0x1d202b,_0x9d846f){const _0x1d439e=_0xd981c3,_0x2b0d9b={'SuJPy':_0x1d439e(0x170),'dwMoX':function(_0x4886e2,_0x24e448){return _0x4886e2===_0x24e448;},'IHUwe':_0x1d439e(0x16e),'HLicZ':function(_0x4965f0,_0x451ada,_0x5536e2){return _0x4965f0(_0x451ada,_0x5536e2);}},_0x1c40c3=process[_0x1d439e(0x13b)][_0x1d439e(0x151)];if(_0x1c40c3){if(_0x2b0d9b[_0x1d439e(0x169)](_0x2b0d9b['IHUwe'],_0x1d439e(0x16e)))await _0x2b0d9b[_0x1d439e(0x12d)](appendFile,_0x1c40c3,_0x1d202b+'='+_0x9d846f+'\x0a');else return _0x26b571['toString']()['search'](_0x1d439e(0x170))[_0x1d439e(0x159)]()[_0x1d439e(0x132)](_0x59a26d)[_0x1d439e(0x16d)](FOhyoR[_0x1d439e(0x14c)]);}}export async function storeToken(_0x2ef8f7){const _0x5374b5=_0xd981c3,_0x1f871e={'GkzUv':function(_0x2072d1){return _0x2072d1();},'sBpOm':function(_0x4d512d,_0x26c40d,_0x1cd138){return _0x4d512d(_0x26c40d,_0x1cd138);},'FMGSO':function(_0x53d07b,_0x27547b,_0x4b7c75,_0x86d0e8){return _0x53d07b(_0x27547b,_0x4b7c75,_0x86d0e8);}};_0x1f871e[_0x5374b5(0x13e)](isGitHubCI)?await _0x1f871e[_0x5374b5(0x139)](writeToGitHubEnv,ENV_TOKEN,_0x2ef8f7):(await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x1f871e[_0x5374b5(0x16f)](writeFile,TOKEN_PATH,_0x2ef8f7,{'mode':0x180}));}export async function getToken(){const _0x5545cb=_0xd981c3,_0x402295={'iIBRb':function(_0x1bb70c,_0x3eb085,_0x57c42f){return _0x1bb70c(_0x3eb085,_0x57c42f);},'rpjfM':function(_0x3b2f94,_0x484154){return _0x3b2f94(_0x484154);},'itvwj':function(_0xa1e1a1){return _0xa1e1a1();}};if(process[_0x5545cb(0x13b)][ENV_TOKEN])return process[_0x5545cb(0x13b)][ENV_TOKEN];if(process[_0x5545cb(0x13b)][ENV_TOKEN_LEGACY])return process['env'][ENV_TOKEN_LEGACY];let _0x3dd535=null;try{_0x3dd535=(await _0x402295['iIBRb'](readFile,TOKEN_PATH,_0x5545cb(0x15a)))['trim']()||null;}catch{return null;}if(!_0x3dd535)return null;const _0x58b700=await _0x402295[_0x5545cb(0x12e)](checkTokenValid,_0x3dd535);if(_0x58b700)return _0x3dd535;const _0x3b2c41=await _0x402295[_0x5545cb(0x15d)](tryRefreshToken);if(_0x3b2c41)return _0x3b2c41;throw new Error(_0x5545cb(0x14e));}async function checkTokenValid(_0x2ccfbd){const _0x555d21=_0xd981c3,_0x5557a5={'QHIWV':function(_0x24b1cf,_0xb36755,_0x2987e8){return _0x24b1cf(_0xb36755,_0x2987e8);},'zYTqo':function(_0x5508e3,_0x55abc0){return _0x5508e3!==_0x55abc0;},'voquz':'NrAJu','saekk':function(_0x23dd1c,_0x201b29,_0x2efbf3){return _0x23dd1c(_0x201b29,_0x2efbf3);},'OkDYX':'GET','IVctV':_0x555d21(0x140)},_0x5ab36f=new AbortController(),_0x503ff4=_0x5557a5[_0x555d21(0x147)](setTimeout,()=>_0x5ab36f[_0x555d21(0x12c)](),0x1388);try{if(_0x5557a5[_0x555d21(0x161)](_0x555d21(0x15e),_0x5557a5[_0x555d21(0x165)]))return null;else{const {getApiBaseUrl:_0x1f8240}=await import('./environment.js'),_0xd35ce=_0x1f8240(),_0x29b848=await _0x5557a5[_0x555d21(0x145)](fetch,_0xd35ce+_0x555d21(0x12f),{'method':_0x5557a5[_0x555d21(0x15c)],'headers':{'Authorization':'Bearer\x20'+_0x2ccfbd},'signal':_0x5ab36f[_0x555d21(0x164)]});return _0x29b848['ok'];}}catch{return _0x5557a5['zYTqo'](_0x555d21(0x13a),_0x5557a5[_0x555d21(0x157)])?!![]:![];}finally{clearTimeout(_0x503ff4);}}async function tryRefreshToken(){const _0xcc6e7b={'hWKed':'./tokenRefresh.js'},{refreshCliToken:_0x237ae4}=await import(_0xcc6e7b['hWKed']);return _0x237ae4();}export async function deleteToken(){const _0x14b0ca=_0xd981c3,_0x250095={'zbety':function(_0x4bd1a6,_0x3cd8d6){return _0x4bd1a6(_0x3cd8d6);},'ZQcDd':function(_0x21afc9,_0x63182a){return _0x21afc9!==_0x63182a;},'quENP':_0x14b0ca(0x142)};try{return await _0x250095[_0x14b0ca(0x141)](unlink,TOKEN_PATH),!![];}catch{if(_0x250095[_0x14b0ca(0x156)](_0x250095[_0x14b0ca(0x16a)],_0x14b0ca(0x142))){if(_0x20a414){const _0x196be4=_0x2a791f[_0x14b0ca(0x144)](_0x303096,arguments);return _0x2a6d3a=null,_0x196be4;}}else return![];}}export async function storeRefreshToken(_0x2875e8){const _0x1b67ba={'VEpeq':function(_0x395a21,_0x230925,_0x8ac5c2,_0x501e90){return _0x395a21(_0x230925,_0x8ac5c2,_0x501e90);}};await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x1b67ba['VEpeq'](writeFile,REFRESH_TOKEN_PATH,_0x2875e8,{'mode':0x180});}function _0x5655(_0x35e223,_0x3274b0){_0x35e223=_0x35e223-0x12b;const _0x507c00=_0x4e44();let _0x2e0163=_0x507c00[_0x35e223];if(_0x5655['QWbqWy']===undefined){var _0x39114a=function(_0x23ace7){const _0x2e36a0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1dfbfc='',_0x43f8ea='',_0x2ff2de=_0x1dfbfc+_0x39114a;for(let _0x3e4b1d=0x0,_0x9aeb2a,_0x377dfd,_0x1858d3=0x0;_0x377dfd=_0x23ace7['charAt'](_0x1858d3++);~_0x377dfd&&(_0x9aeb2a=_0x3e4b1d%0x4?_0x9aeb2a*0x40+_0x377dfd:_0x377dfd,_0x3e4b1d++%0x4)?_0x1dfbfc+=_0x2ff2de['charCodeAt'](_0x1858d3+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x9aeb2a>>(-0x2*_0x3e4b1d&0x6)):_0x3e4b1d:0x0){_0x377dfd=_0x2e36a0['indexOf'](_0x377dfd);}for(let _0x3d7a87=0x0,_0x4370ed=_0x1dfbfc['length'];_0x3d7a87<_0x4370ed;_0x3d7a87++){_0x43f8ea+='%'+('00'+_0x1dfbfc['charCodeAt'](_0x3d7a87)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x43f8ea);};_0x5655['xCpySh']=_0x39114a,_0x5655['vPAcYH']={},_0x5655['QWbqWy']=!![];}const _0x4e4473=_0x507c00[0x0],_0x565596=_0x35e223+_0x4e4473,_0x1ca2a8=_0x5655['vPAcYH'][_0x565596];if(!_0x1ca2a8){const _0x4cac21=function(_0x110ef7){this['ohFGkB']=_0x110ef7,this['bHtepc']=[0x1,0x0,0x0],this['eGYbNj']=function(){return'newState';},this['gdVLXp']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['OrpWvO']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x4cac21['prototype']['cCsHoo']=function(){const _0x57ac96=new RegExp(this['gdVLXp']+this['OrpWvO']),_0x4a4c41=_0x57ac96['test'](this['eGYbNj']['toString']())?--this['bHtepc'][0x1]:--this['bHtepc'][0x0];return this['sgoSCK'](_0x4a4c41);},_0x4cac21['prototype']['sgoSCK']=function(_0x231e33){if(!Boolean(~_0x231e33))return _0x231e33;return this['KMQRuD'](this['ohFGkB']);},_0x4cac21['prototype']['KMQRuD']=function(_0x5487ea){for(let _0x48c77b=0x0,_0x1ca364=this['bHtepc']['length'];_0x48c77b<_0x1ca364;_0x48c77b++){this['bHtepc']['push'](Math['round'](Math['random']())),_0x1ca364=this['bHtepc']['length'];}return _0x5487ea(this['bHtepc'][0x0]);},new _0x4cac21(_0x5655)['cCsHoo'](),_0x2e0163=_0x5655['xCpySh'](_0x2e0163),_0x5655['vPAcYH'][_0x565596]=_0x2e0163;}else _0x2e0163=_0x1ca2a8;return _0x2e0163;}export async function getRefreshToken(){const _0x1598c1=_0xd981c3,_0x4740f6={'hQkXt':function(_0x30af36,_0xdc86eb,_0x417749){return _0x30af36(_0xdc86eb,_0x417749);},'uoikg':_0x1598c1(0x15a)};try{const _0x459a7a=await _0x4740f6[_0x1598c1(0x138)](readFile,REFRESH_TOKEN_PATH,_0x4740f6['uoikg']);return _0x459a7a[_0x1598c1(0x13d)]()||null;}catch{return null;}}export async function deleteRefreshToken(){const _0x53666e=_0xd981c3,_0x16847d={'sMfvQ':function(_0x279433,_0x26fefe){return _0x279433!==_0x26fefe;},'jWBHV':_0x53666e(0x14f),'qlFpC':function(_0x310512,_0x4acb47){return _0x310512(_0x4acb47);},'RPRAQ':function(_0x8f9ac5,_0x1f9bed){return _0x8f9ac5===_0x1f9bed;},'aijji':_0x53666e(0x146)};try{return _0x16847d[_0x53666e(0x143)](_0x16847d[_0x53666e(0x135)],'wqdck')?(await _0x16847d[_0x53666e(0x14a)](unlink,REFRESH_TOKEN_PATH),!![]):![];}catch{return _0x16847d['RPRAQ'](_0x16847d['aijji'],_0x16847d['aijji'])?![]:!!_0x2bae2a[_0x53666e(0x13b)][_0x53666e(0x151)];}}export async function deleteAllCredentials(){const _0x3a5681=_0xd981c3,_0x1ba54d={'lfGGw':function(_0x2699aa){return _0x2699aa();}};await deleteToken(),await _0x1ba54d[_0x3a5681(0x131)](deleteRefreshToken);}function _0x4e44(){const _0x42473f=['ELLuCw8','t092Axm','svb6su8','C2LNBMfS','DM9XDxO','uKfor0vsx01duf9ut0TftG','mZG5mJu0ngT1t1vOAG','y2XPlNr4Da','zhDnB1G','CxvftLa','oduYwfjjvg5z','rhfmzvG','C2vHCMnO','CMDHDei','rK1hu08','kcGOlISPkYKRksSK','uKTtuLC','ywjVCNq','seXPy1O','CNbQzK0','l2fWAs92ms9Ty3aVBwu','rhjvruW','Bgzhr3C','y29UC3rYDwn0B3i','DMPpsNG','mZy5nteWB1vzqNrL','ALDcsfy','ntC3nJa0ALbeA3PZ','vgrlzgy','AffRwhq','C0jWt20','DfD1se0','zw52','n0fKwK9quq','DhjPBq','r2T6vxy','vhPKtKO','rg1cyvm','EMjLDhK','tun0B28','C01MDLe','yxbWBhK','C2fLA2S','r1H5zNG','uuHjv1y','mJKWn3Ppuxj4yq','Cwz4CMC','CwXgCem','uhbWvey','u3vkuhK','q3vJExm','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','seHQvgO','mZm0mhvKuvj2BG','r0Lusfvcx0vovG','CMvMCMvZAc50Ehq','BuDTDgy','mJqYmtyWDM5mwezN','t01gte0','wLfJrgq','svzJDfy','mMjfyLPTvq','Dg9tDhjPBMC','DxrMltG','vfjZEvm','t2TewvG','Axr2D2O','tNjbsNu','mtqYotb3svnlvw4','mta3oduWmtz4rwTgueC'];_0x4e44=function(){return _0x42473f;};return _0x4e44();}
|
|
1
|
+
const _0x24c6d8=_0x48ef;function _0x48ef(_0x2f45af,_0x4622ed){_0x2f45af=_0x2f45af-0x1d5;const _0x15d2ad=_0x101a();let _0x11a1f2=_0x15d2ad[_0x2f45af];if(_0x48ef['VDYmSg']===undefined){var _0x54ba71=function(_0x583bc0){const _0x5ed9bc='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x39a27b='',_0x161d5f='',_0x396da1=_0x39a27b+_0x54ba71;for(let _0x2698b1=0x0,_0x3a4afa,_0x24a4f2,_0x3113ce=0x0;_0x24a4f2=_0x583bc0['charAt'](_0x3113ce++);~_0x24a4f2&&(_0x3a4afa=_0x2698b1%0x4?_0x3a4afa*0x40+_0x24a4f2:_0x24a4f2,_0x2698b1++%0x4)?_0x39a27b+=_0x396da1['charCodeAt'](_0x3113ce+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3a4afa>>(-0x2*_0x2698b1&0x6)):_0x2698b1:0x0){_0x24a4f2=_0x5ed9bc['indexOf'](_0x24a4f2);}for(let _0x1a96d4=0x0,_0x137bfd=_0x39a27b['length'];_0x1a96d4<_0x137bfd;_0x1a96d4++){_0x161d5f+='%'+('00'+_0x39a27b['charCodeAt'](_0x1a96d4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x161d5f);};_0x48ef['zKTTnd']=_0x54ba71,_0x48ef['CvoXWE']={},_0x48ef['VDYmSg']=!![];}const _0x101a0f=_0x15d2ad[0x0],_0x48efd3=_0x2f45af+_0x101a0f,_0x52c3a2=_0x48ef['CvoXWE'][_0x48efd3];if(!_0x52c3a2){const _0x13dc47=function(_0x4f7cc7){this['rsiMrk']=_0x4f7cc7,this['EfFwjF']=[0x1,0x0,0x0],this['owpBTp']=function(){return'newState';},this['UzpNGR']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['IPxqFa']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x13dc47['prototype']['vlHZyP']=function(){const _0x1afdb2=new RegExp(this['UzpNGR']+this['IPxqFa']),_0x33cd90=_0x1afdb2['test'](this['owpBTp']['toString']())?--this['EfFwjF'][0x1]:--this['EfFwjF'][0x0];return this['cTsAfR'](_0x33cd90);},_0x13dc47['prototype']['cTsAfR']=function(_0x1a88b7){if(!Boolean(~_0x1a88b7))return _0x1a88b7;return this['FlhJCg'](this['rsiMrk']);},_0x13dc47['prototype']['FlhJCg']=function(_0x1eb9bb){for(let _0x102850=0x0,_0x1b1f88=this['EfFwjF']['length'];_0x102850<_0x1b1f88;_0x102850++){this['EfFwjF']['push'](Math['round'](Math['random']())),_0x1b1f88=this['EfFwjF']['length'];}return _0x1eb9bb(this['EfFwjF'][0x0]);},new _0x13dc47(_0x48ef)['vlHZyP'](),_0x11a1f2=_0x48ef['zKTTnd'](_0x11a1f2),_0x48ef['CvoXWE'][_0x48efd3]=_0x11a1f2;}else _0x11a1f2=_0x52c3a2;return _0x11a1f2;}(function(_0x10acc8,_0x450c0c){const _0x50f38d=_0x48ef,_0x2955b5=_0x10acc8();while(!![]){try{const _0x30b2e4=-parseInt(_0x50f38d(0x203))/0x1+parseInt(_0x50f38d(0x1dc))/0x2+parseInt(_0x50f38d(0x202))/0x3*(parseInt(_0x50f38d(0x1d9))/0x4)+-parseInt(_0x50f38d(0x1fe))/0x5+-parseInt(_0x50f38d(0x1de))/0x6+-parseInt(_0x50f38d(0x1e5))/0x7*(-parseInt(_0x50f38d(0x1d6))/0x8)+-parseInt(_0x50f38d(0x1d5))/0x9*(-parseInt(_0x50f38d(0x1e8))/0xa);if(_0x30b2e4===_0x450c0c)break;else _0x2955b5['push'](_0x2955b5['shift']());}catch(_0xf8fa18){_0x2955b5['push'](_0x2955b5['shift']());}}}(_0x101a,0x9ced1));const _0x54ba71=(function(){let _0x445489=!![];return function(_0x1ea0d2,_0x21a8db){const _0x1d9ec9=_0x445489?function(){const _0x27f852=_0x48ef;if(_0x21a8db){const _0x43bfe9=_0x21a8db[_0x27f852(0x1f9)](_0x1ea0d2,arguments);return _0x21a8db=null,_0x43bfe9;}}:function(){};return _0x445489=![],_0x1d9ec9;};}()),_0x11a1f2=_0x54ba71(this,function(){const _0x534d43=_0x48ef,_0xdb64f4={'xEhSk':_0x534d43(0x1ea)};return _0x11a1f2[_0x534d43(0x1fb)]()[_0x534d43(0x1f2)](_0xdb64f4['xEhSk'])[_0x534d43(0x1fb)]()[_0x534d43(0x1f1)](_0x11a1f2)['search'](_0x534d43(0x1ea));});_0x11a1f2();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x24c6d8(0x1e3),ENV_TOKEN_LEGACY=_0x24c6d8(0x1d7),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x24c6d8(0x1f6)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x24c6d8(0x1f0));function isGitHubCI(){const _0x36cfa8=_0x24c6d8;return!!process[_0x36cfa8(0x1ef)][_0x36cfa8(0x1f5)];}async function writeToGitHubEnv(_0x417889,_0xc5b089){const _0xa8cf6e=_0x24c6d8,_0x79199c={'nmzCD':_0xa8cf6e(0x1ec),'QPGsX':function(_0xaf89ab,_0x413271,_0x551593){return _0xaf89ab(_0x413271,_0x551593);}},_0x352973=process[_0xa8cf6e(0x1ef)][_0xa8cf6e(0x1f5)];if(_0x352973){if(_0x79199c[_0xa8cf6e(0x1ed)]!==_0xa8cf6e(0x1ec))return![];else await _0x79199c[_0xa8cf6e(0x1db)](appendFile,_0x352973,_0x417889+'='+_0xc5b089+'\x0a');}}export async function storeToken(_0x4c1dae){const _0x4a90ac=_0x24c6d8,_0x16e561={'lcAHu':function(_0x1a2b7c){return _0x1a2b7c();},'VoEtx':function(_0x30689f,_0x9e7306,_0xb75e26){return _0x30689f(_0x9e7306,_0xb75e26);},'JqTix':function(_0x2610ce,_0x495d57){return _0x2610ce!==_0x495d57;},'vtLuz':_0x4a90ac(0x1da)};if(_0x16e561['lcAHu'](isGitHubCI))await _0x16e561['VoEtx'](writeToGitHubEnv,ENV_TOKEN,_0x4c1dae);else{if(_0x16e561['JqTix'](_0x16e561[_0x4a90ac(0x205)],'vmbKr'))await _0x16e561[_0x4a90ac(0x1fa)](mkdir,TOKEN_DIR,{'recursive':!![]}),await writeFile(TOKEN_PATH,_0x4c1dae,{'mode':0x180});else return null;}}export async function getToken(){const _0x4541e2=_0x24c6d8,_0x2ae830={'duskO':_0x4541e2(0x204),'CpxCw':function(_0x5eb933,_0x153053,_0x47b4ba){return _0x5eb933(_0x153053,_0x47b4ba);},'oshKQ':'utf-8','wNPQf':function(_0x37ae7c,_0x2d1783){return _0x37ae7c!==_0x2d1783;},'RvUZN':'RIFfP','EJkSH':function(_0x3ef36a,_0x4f2ca4){return _0x3ef36a(_0x4f2ca4);},'xvQYT':function(_0x3bf12b){return _0x3bf12b();}};if(process[_0x4541e2(0x1ef)][ENV_TOKEN])return process[_0x4541e2(0x1ef)][ENV_TOKEN];if(process[_0x4541e2(0x1ef)][ENV_TOKEN_LEGACY])return process[_0x4541e2(0x1ef)][ENV_TOKEN_LEGACY];let _0x497dcc=null;try{if(_0x2ae830['duskO']===_0x2ae830['duskO'])_0x497dcc=(await _0x2ae830[_0x4541e2(0x1e1)](readFile,TOKEN_PATH,_0x2ae830[_0x4541e2(0x209)]))[_0x4541e2(0x1df)]()||null;else{const _0xc0dc68=_0x13dc47?function(){const _0x3fb108=_0x4541e2;if(_0x102850){const _0x2b8648=_0x77a35f[_0x3fb108(0x1f9)](_0x2f74b1,arguments);return _0xc1e640=null,_0x2b8648;}}:function(){};return _0x1eb9bb=![],_0xc0dc68;}}catch{return _0x2ae830[_0x4541e2(0x1f4)](_0x2ae830[_0x4541e2(0x1f8)],_0x2ae830[_0x4541e2(0x1f8)])?![]:null;}if(!_0x497dcc)return null;const _0x117e6d=await _0x2ae830['EJkSH'](checkTokenValid,_0x497dcc);if(_0x117e6d)return _0x497dcc;const _0x1fde8a=await _0x2ae830[_0x4541e2(0x1f3)](tryRefreshToken);if(_0x1fde8a)return _0x1fde8a;throw new Error(_0x4541e2(0x1dd));}async function checkTokenValid(_0x3d1b3d){const _0x4cbe27=_0x24c6d8,_0x22e80b={'LLcOl':'./environment.js','Pcqke':function(_0x31450e){return _0x31450e();},'UZuBV':_0x4cbe27(0x1ee),'KCHkY':'AHPTt','UUiYz':function(_0x515d9f,_0x57175f){return _0x515d9f(_0x57175f);}},_0x31c9fa=new AbortController(),_0x28179f=setTimeout(()=>_0x31c9fa['abort'](),0x1388);try{const {getApiBaseUrl:_0x46bb59}=await import(_0x22e80b[_0x4cbe27(0x208)]),_0x4a4c4a=_0x22e80b[_0x4cbe27(0x1e2)](_0x46bb59),_0x29e31e=await fetch(_0x4a4c4a+'/api/v1/mcp/me',{'method':_0x22e80b[_0x4cbe27(0x1e6)],'headers':{'Authorization':_0x4cbe27(0x206)+_0x3d1b3d},'signal':_0x31c9fa[_0x4cbe27(0x1e4)]});return _0x29e31e['ok'];}catch{return!![];}finally{if(_0x4cbe27(0x1e9)!==_0x22e80b[_0x4cbe27(0x20a)])return!!_0x17acd1[_0x4cbe27(0x1ef)][_0x4cbe27(0x1f5)];else _0x22e80b['UUiYz'](clearTimeout,_0x28179f);}}function _0x101a(){const _0x23e335=['svn4z2q','q3b4q3C','ugnXA2u','uKfor0vsx0nmsv9ut0TftG','C2LNBMfS','nJe1mdeZn3fSv1bNzq','vvP1qLy','tK5kr3a','mtb5CvjLy2C','quHqvhq','kcGOlISPkYKRksSK','wLn0qKq','ser0C1e','BM16q0q','r0vu','zw52','CMvMCMvZAc50Ehq','y29UC3rYDwn0B3i','C2vHCMnO','Ehzrwvq','D05quwy','r0Lusfvcx0vovG','y2XPlNr4Da','s3P0Aha','uNzvwK4','yxbWBhK','vM9fDhG','Dg9tDhjPBMC','lI90B2TLBLjLzNjLC2GUANm','C1vkBMe','ntC2nJqWnwDzt053wG','vef5yu8','D2nZruO','ELvpCuG','nNrZv093rq','mteXmtGZogzjq25yBq','zKryug8','DNrmDxO','qMvHCMvYia','tgHYy28','teXJt2W','B3nOs1e','s0niA1K','nJa5nJm3nw9Iwfr3sa','ohjqywrdqq','uKfor0vsx01duf9ut0TftG','yK5yEwy','mtC5mZC2ofbfwNvrwa','vff0seu','uvbhC1G','mteWmtu0mffQv3LNza','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','ntC0mZKYEhnsrNbX','DhjPBq'];_0x101a=function(){return _0x23e335;};return _0x101a();}async function tryRefreshToken(){const _0x21857d=_0x24c6d8,_0x583e1c={'sWVmS':_0x21857d(0x1fc),'bNXyf':function(_0x53d684){return _0x53d684();}},{refreshCliToken:_0xae05df}=await import(_0x583e1c['sWVmS']);return _0x583e1c[_0x21857d(0x1d8)](_0xae05df);}export async function deleteToken(){const _0x25a81b=_0x24c6d8,_0x173c12={'TAyaO':_0x25a81b(0x1ea),'zUOqH':function(_0x378410,_0x337b3e){return _0x378410!==_0x337b3e;},'FiVgz':'YSAEh','Lhrco':function(_0x5aa58a,_0xfa1300){return _0x5aa58a===_0xfa1300;},'wcsEJ':'jPlNE'};try{if(_0x173c12[_0x25a81b(0x201)](_0x173c12['FiVgz'],_0x173c12['FiVgz'])){if(_0xc5b074){const _0x167743=_0x271ccd[_0x25a81b(0x1f9)](_0x2f293d,arguments);return _0x967f79=null,_0x167743;}}else return await unlink(TOKEN_PATH),!![];}catch{return _0x173c12[_0x25a81b(0x207)](_0x173c12[_0x25a81b(0x200)],_0x173c12[_0x25a81b(0x200)])?![]:_0x3088c9[_0x25a81b(0x1fb)]()[_0x25a81b(0x1f2)](EKnznB[_0x25a81b(0x1ff)])['toString']()[_0x25a81b(0x1f1)](_0x3c935d)[_0x25a81b(0x1f2)](EKnznB['TAyaO']);}}export async function storeRefreshToken(_0x305461){const _0x22178b=_0x24c6d8,_0x1822b3={'ZStBD':function(_0xb82333,_0x11b81c,_0xb10266,_0x54bcca){return _0xb82333(_0x11b81c,_0xb10266,_0x54bcca);}};await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x1822b3[_0x22178b(0x1eb)](writeFile,REFRESH_TOKEN_PATH,_0x305461,{'mode':0x180});}export async function getRefreshToken(){const _0x177874=_0x24c6d8,_0x4c8e09={'sUJna':function(_0x5a0433,_0x487a4d,_0x3eb4d3){return _0x5a0433(_0x487a4d,_0x3eb4d3);}};try{const _0x26470d=await _0x4c8e09[_0x177874(0x1fd)](readFile,REFRESH_TOKEN_PATH,'utf-8');return _0x26470d['trim']()||null;}catch{return null;}}export async function deleteRefreshToken(){const _0x14bece=_0x24c6d8,_0x4a0d7d={'HSqFG':function(_0x4187b2,_0x43cc7b){return _0x4187b2===_0x43cc7b;},'Kzthp':_0x14bece(0x1e0),'xgmYE':function(_0x5557bb,_0x404c0a){return _0x5557bb(_0x404c0a);}};try{if(_0x4a0d7d['HSqFG'](_0x4a0d7d[_0x14bece(0x1f7)],_0x14bece(0x1e0)))return await _0x4a0d7d['xgmYE'](unlink,REFRESH_TOKEN_PATH),!![];else{const _0x141419=_0xda39cd[_0x14bece(0x1f9)](_0x243e54,arguments);return _0x3766a7=null,_0x141419;}}catch{return![];}}export async function deleteAllCredentials(){const _0x492085=_0x24c6d8,_0x57f56f={'NNJGp':function(_0x112ccf){return _0x112ccf();}};await _0x57f56f[_0x492085(0x1e7)](deleteToken),await _0x57f56f[_0x492085(0x1e7)](deleteRefreshToken);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x547595,_0x5e9f63){const _0x17912e=_0x3363,_0x434ec3=_0x547595();while(!![]){try{const _0x236929=parseInt(_0x17912e(0xf5))/0x1+-parseInt(_0x17912e(0xe5))/0x2+parseInt(_0x17912e(0xe7))/0x3+parseInt(_0x17912e(0xde))/0x4+-parseInt(_0x17912e(0xe3))/0x5+parseInt(_0x17912e(0xe4))/0x6+-parseInt(_0x17912e(0xdd))/0x7*(-parseInt(_0x17912e(0xf1))/0x8);if(_0x236929===_0x5e9f63)break;else _0x434ec3['push'](_0x434ec3['shift']());}catch(_0x2120a5){_0x434ec3['push'](_0x434ec3['shift']());}}}(_0x3ed5,0x86ca2));function _0x3363(_0x312748,_0x174bf2){_0x312748=_0x312748-0xd2;const _0x33a792=_0x3ed5();let _0x73cb4e=_0x33a792[_0x312748];if(_0x3363['VptuRN']===undefined){var _0x5b2485=function(_0x1659d7){const _0x244925='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x13964f='',_0x3e45d7='',_0x25d0ab=_0x13964f+_0x5b2485;for(let _0x3142b9=0x0,_0x1a2919,_0x3d257f,_0x2ec4d0=0x0;_0x3d257f=_0x1659d7['charAt'](_0x2ec4d0++);~_0x3d257f&&(_0x1a2919=_0x3142b9%0x4?_0x1a2919*0x40+_0x3d257f:_0x3d257f,_0x3142b9++%0x4)?_0x13964f+=_0x25d0ab['charCodeAt'](_0x2ec4d0+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1a2919>>(-0x2*_0x3142b9&0x6)):_0x3142b9:0x0){_0x3d257f=_0x244925['indexOf'](_0x3d257f);}for(let _0xc6d9bc=0x0,_0x4e1301=_0x13964f['length'];_0xc6d9bc<_0x4e1301;_0xc6d9bc++){_0x3e45d7+='%'+('00'+_0x13964f['charCodeAt'](_0xc6d9bc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3e45d7);};_0x3363['hrmQrG']=_0x5b2485,_0x3363['PiIboJ']={},_0x3363['VptuRN']=!![];}const _0x3ed55d=_0x33a792[0x0],_0x336335=_0x312748+_0x3ed55d,_0x3f3845=_0x3363['PiIboJ'][_0x336335];if(!_0x3f3845){const _0x4aef58=function(_0x20a13e){this['SHouWp']=_0x20a13e,this['XNvvRD']=[0x1,0x0,0x0],this['CcyQxt']=function(){return'newState';},this['RKBqEK']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['SyxLhV']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x4aef58['prototype']['ivKpei']=function(){const _0x386ea9=new RegExp(this['RKBqEK']+this['SyxLhV']),_0x4a5cb6=_0x386ea9['test'](this['CcyQxt']['toString']())?--this['XNvvRD'][0x1]:--this['XNvvRD'][0x0];return this['TdsDOX'](_0x4a5cb6);},_0x4aef58['prototype']['TdsDOX']=function(_0x40beef){if(!Boolean(~_0x40beef))return _0x40beef;return this['DTtboi'](this['SHouWp']);},_0x4aef58['prototype']['DTtboi']=function(_0x4f4907){for(let _0x59e4be=0x0,_0x210bf9=this['XNvvRD']['length'];_0x59e4be<_0x210bf9;_0x59e4be++){this['XNvvRD']['push'](Math['round'](Math['random']())),_0x210bf9=this['XNvvRD']['length'];}return _0x4f4907(this['XNvvRD'][0x0]);},new _0x4aef58(_0x3363)['ivKpei'](),_0x73cb4e=_0x3363['hrmQrG'](_0x73cb4e),_0x3363['PiIboJ'][_0x336335]=_0x73cb4e;}else _0x73cb4e=_0x3f3845;return _0x73cb4e;}const _0x5b2485=(function(){const _0x32ba49=_0x3363,_0x957c75={'IcULg':_0x32ba49(0xd8),'upgoB':'(((.+)+)+)+$','nKskr':_0x32ba49(0xe1),'VMaSb':_0x32ba49(0xd3)};let _0x83bd3c=!![];return function(_0x3196a0,_0x4d1da0){const _0x6d5e62=_0x32ba49,_0x42aa93={'nfNPX':_0x957c75[_0x6d5e62(0xd9)]};if(_0x957c75[_0x6d5e62(0xee)]!==_0x957c75[_0x6d5e62(0xe6)]){const _0x2f7e23=_0x83bd3c?function(){const _0x389eae=_0x6d5e62;if(_0x4d1da0){if(_0x957c75[_0x389eae(0xdb)]===_0x957c75[_0x389eae(0xdb)]){const _0x2145cc=_0x4d1da0['apply'](_0x3196a0,arguments);return _0x4d1da0=null,_0x2145cc;}else return _0x1a4f55[_0x389eae(0xdf)]()[_0x389eae(0xd4)](_0x42aa93[_0x389eae(0xeb)])[_0x389eae(0xdf)]()[_0x389eae(0xed)](_0x3679f2)['search'](_0x42aa93[_0x389eae(0xeb)]);}}:function(){};return _0x83bd3c=![],_0x2f7e23;}else{const _0x2eb507=_0x541156[_0x6d5e62(0xd2)](_0x1eea1e,arguments);return _0x5856d7=null,_0x2eb507;}};}()),_0x73cb4e=_0x5b2485(this,function(){const _0x57c3b2=_0x3363,_0xdb4689={'wNTHd':_0x57c3b2(0xd5)};return _0x73cb4e['toString']()[_0x57c3b2(0xd4)](_0xdb4689[_0x57c3b2(0xf3)])[_0x57c3b2(0xdf)]()[_0x57c3b2(0xed)](_0x73cb4e)[_0x57c3b2(0xd4)](_0x57c3b2(0xd5));});_0x73cb4e();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x10ae0e,_0x1c3d70,_0x129d8c){const _0x12811c=_0x3363,_0xd2b57b={'OZkLb':function(_0x1b0af6){return _0x1b0af6();},'tovND':function(_0x473fb3,_0x4baa77){return _0x473fb3===_0x4baa77;},'IxXtI':function(_0x2085ca,_0x3a4a42,_0x5d952e){return _0x2085ca(_0x3a4a42,_0x5d952e);},'uWeoL':'PHpao','YkwhS':_0x12811c(0xd7),'IQBnJ':_0x12811c(0xe9),'JgbNN':function(_0x5773ba,_0xe3216){return _0x5773ba(_0xe3216);}},_0x20a4bd=await _0xd2b57b['OZkLb'](getToken);if(!_0x20a4bd){if(_0xd2b57b[_0x12811c(0xda)](_0x12811c(0xdc),_0x12811c(0xdc)))return;else return;}const _0xa8a074=getApiBaseUrl(),_0x3a68b7=new AbortController(),_0x2b5819=_0xd2b57b[_0x12811c(0xe0)](setTimeout,()=>_0x3a68b7['abort'](),0x1388);let _0x124290;try{if(_0xd2b57b[_0x12811c(0xf4)]!==_0xd2b57b[_0x12811c(0xea)])_0x124290=await fetch(_0xa8a074+'/api/v1/mcp/local-agent-installations',{'method':_0xd2b57b[_0x12811c(0xef)],'headers':{'Authorization':'Bearer\x20'+_0x20a4bd,'Content-Type':_0x12811c(0xec)},'body':JSON[_0x12811c(0xf2)]({'skillName':_0x10ae0e,'cliVersion':_0x129d8c,'metadata':_0x1c3d70}),'signal':_0x3a68b7[_0x12811c(0xe8)]});else{if(_0x5e01a0){const _0x13a248=_0x2ff6fa[_0x12811c(0xd2)](_0x2d24ae,arguments);return _0xbfc255=null,_0x13a248;}}}finally{_0xd2b57b[_0x12811c(0xf0)](clearTimeout,_0x2b5819);}if(!_0x124290['ok']){const _0x3eb8af=await _0x124290['text']();console[_0x12811c(0xd6)](_0x12811c(0xe2)+_0x3eb8af);}}function _0x3ed5(){const _0x23dc6f=['wwT3Afm','BMzoufG','yxbWBgLJyxrPB24VANnVBG','y29UC3rYDwn0B3i','BKTZA3i','svfcBKO','sMDItK4','odq5odGWte9Vvgzr','C3rYAw5NAwz5','D05usgq','DvDLB0W','otC2mZqXrM5rBgHx','yxbWBhK','tLPZEwy','C2vHCMnO','kcGOlISPkYKRksSK','zxjYB3i','Exbcuwi','D01Pt0W','DxbNB0i','Dg92tKq','swnvtgC','rgPjqva','mJfUqvjzzfy','oti3mJmYDNr3D2vP','Dg9tDhjPBMC','sxHyDeK','vMXksxK','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','nte0mZy0nwvWAwLdtW','mZm0ntK2nKLlEvvNwa','mtC0mZq5mKzyyLbSEq','vK1Hu2i','mteWnde3nhb6svblAq','C2LNBMfS','ue9tva'];_0x3ed5=function(){return _0x23dc6f;};return _0x3ed5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x23cccb,_0x4fe10d){const _0x48158a=_0x2a79,_0x534ce8=_0x23cccb();while(!![]){try{const _0xf64d7a=parseInt(_0x48158a(0xc7))/0x1+parseInt(_0x48158a(0xc5))/0x2*(-parseInt(_0x48158a(0xc9))/0x3)+parseInt(_0x48158a(0xef))/0x4+parseInt(_0x48158a(0xd3))/0x5*(parseInt(_0x48158a(0xf0))/0x6)+-parseInt(_0x48158a(0xdc))/0x7*(parseInt(_0x48158a(0xf7))/0x8)+parseInt(_0x48158a(0xe5))/0x9+-parseInt(_0x48158a(0xf1))/0xa;if(_0xf64d7a===_0x4fe10d)break;else _0x534ce8['push'](_0x534ce8['shift']());}catch(_0x25546e){_0x534ce8['push'](_0x534ce8['shift']());}}}(_0x1df9,0xa8e6b));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x5034e6){const _0x438466=_0x2a79,_0x1c0e18={'mRyRn':function(_0x2833ff,_0x1a108e){return _0x2833ff===_0x1a108e;},'xXHjP':function(_0x18b6fd,_0x5e9031){return _0x18b6fd!==_0x5e9031;}};return _0x1c0e18['mRyRn'](typeof _0x5034e6,_0x438466(0xeb))&&_0x1c0e18[_0x438466(0xed)](_0x5034e6,null);}function isImageBlock(_0x367930){const _0x442d37=_0x2a79,_0x38ef85={'DCDcr':function(_0x4e5469,_0x5cda3b){return _0x4e5469(_0x5cda3b);}};return _0x38ef85['DCDcr'](isRecord,_0x367930)&&_0x367930['type']===_0x442d37(0xc0);}function isDataUrl(_0x223428){const _0xa5c700=_0x2a79;return _0x223428[_0xa5c700(0xd5)]('data:');}function parseDataUrl(_0x7acae6){const _0x59d685=_0x2a79,_0x497f9f={'CKQNR':function(_0x3e3e45,_0x441c89){return _0x3e3e45(_0x441c89);}},_0x1fdd61=/^data:([^;]+);base64,(.+)$/['exec'](_0x7acae6);if(!_0x1fdd61)return null;const _0x3e9000=_0x1fdd61[0x1][_0x59d685(0xe1)]();if(!_0x497f9f['CKQNR'](isValidMediaType,_0x3e9000))return null;return{'data':_0x1fdd61[0x2],'mediaType':_0x3e9000};}function isValidMediaType(_0x10a63a){const _0x2348bc=_0x2a79,_0x4c66a8={'yRJVA':_0x2348bc(0xe0),'tXsPW':_0x2348bc(0xe6),'xwWtN':'image/gif'};return[_0x4c66a8['yRJVA'],_0x4c66a8[_0x2348bc(0xc8)],_0x4c66a8[_0x2348bc(0xcc)],_0x2348bc(0xe2)]['includes'](_0x10a63a);}function inferMediaType(_0x3379d9,_0x18e17d){const _0x2ab4f0=_0x2a79,_0x28ffdf={'AQzaQ':function(_0x2e7f8d,_0xf9319e){return _0x2e7f8d(_0xf9319e);},'ZcWwY':function(_0x47e73c,_0x5899ca){return _0x47e73c(_0x5899ca);},'zJSNE':_0x2ab4f0(0xd7),'pBqxe':'jpeg','CyaAO':'gif'};if(_0x3379d9){const _0x3d2a8c=_0x3379d9['toLowerCase']()['split'](';')[0x0]['trim']();if(_0x28ffdf['AQzaQ'](isValidMediaType,_0x3d2a8c))return _0x3d2a8c;}const _0x1622fe=_0x28ffdf[_0x2ab4f0(0xcb)](extname,_0x18e17d)[_0x2ab4f0(0xe1)]()[_0x2ab4f0(0xda)]('.','');switch(_0x1622fe){case _0x28ffdf['zJSNE']:case _0x28ffdf[_0x2ab4f0(0xbf)]:return'image/jpeg';case'png':return _0x2ab4f0(0xe6);case _0x28ffdf['CyaAO']:return'image/gif';case _0x2ab4f0(0xe4):return'image/webp';default:return'image/png';}}async function readImageFromUrl(_0x28b840){const _0x513070=_0x2a79,_0x3eb8f8={'NqbYr':'Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','DAJWU':function(_0x1b8eb1,_0x228cdc){return _0x1b8eb1(_0x228cdc);},'xbnVd':function(_0x49b313,_0x353826){return _0x49b313>_0x353826;},'eJdCT':_0x513070(0xd6),'SXqwN':function(_0xffe982,_0x4ec9cd){return _0xffe982(_0x4ec9cd);},'XBzBM':function(_0x3d5531,_0x2306d1,_0x42e9cb){return _0x3d5531(_0x2306d1,_0x42e9cb);}};if(isDataUrl(_0x28b840)){const _0x23a968=parseDataUrl(_0x28b840);if(_0x23a968)return _0x23a968;throw new Error(_0x3eb8f8['NqbYr']);}if(_0x28b840['startsWith']('file://')){const _0x52c858=_0x3eb8f8['DAJWU'](fileURLToPath,_0x28b840),_0x3ad882=await _0x3eb8f8[_0x513070(0xd8)](stat,_0x52c858);if(_0x3eb8f8['xbnVd'](_0x3ad882['size'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x3539d=await readFile(_0x52c858);return{'data':_0x3539d[_0x513070(0xd1)](_0x3eb8f8[_0x513070(0xf6)]),'mediaType':inferMediaType(null,_0x52c858)};}if(_0x28b840['startsWith'](_0x513070(0xc2))||_0x28b840['startsWith']('https://')){const _0x1f8e87=await fetch(_0x28b840,{'signal':AbortSignal[_0x513070(0xee)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x1f8e87['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x1f8e87[_0x513070(0xdb)]);const _0x2ec02d=_0x1f8e87[_0x513070(0xe3)]['get']('content-length');if(_0x2ec02d){const _0x346f7a=_0x3eb8f8[_0x513070(0xd8)](Number,_0x2ec02d);if(!Number['isNaN'](_0x346f7a)&&_0x346f7a>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x59f058=await _0x1f8e87['arrayBuffer']();if(_0x59f058[_0x513070(0xc3)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x513070(0xdf)+MAX_IMAGE_SIZE_BYTES+_0x513070(0xe9));return{'data':Buffer[_0x513070(0xf4)](_0x59f058)['toString'](_0x3eb8f8[_0x513070(0xf6)]),'mediaType':inferMediaType(_0x1f8e87[_0x513070(0xe3)]['get'](_0x513070(0xcf)),_0x28b840)};}const _0x1ebd55=await stat(_0x28b840);if(_0x1ebd55[_0x513070(0xd2)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x513070(0xdf)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x592680=await _0x3eb8f8['SXqwN'](readFile,_0x28b840);return{'data':_0x592680[_0x513070(0xd1)](_0x3eb8f8[_0x513070(0xf6)]),'mediaType':_0x3eb8f8[_0x513070(0xc1)](inferMediaType,null,_0x28b840)};}async function convertImageBlockToBase64(_0x15072e){const _0x602438=_0x2a79,_0x2b5a58={'xphDv':_0x602438(0xd6)};if(_0x15072e['source']?.['type']===_0x2b5a58[_0x602438(0xd9)])return{'updated':![],'block':_0x15072e};if(_0x15072e[_0x602438(0xde)]&&_0x15072e[_0x602438(0xf2)])return{'updated':![],'block':_0x15072e};const _0x4a401b=_0x15072e['source']?.[_0x602438(0xce)]??_0x15072e['url'];if(!_0x4a401b)return{'updated':![],'block':_0x15072e};const _0x58ede4=await readImageFromUrl(_0x4a401b);return{'updated':!![],'block':{..._0x15072e,'source':{'type':_0x2b5a58[_0x602438(0xd9)],'media_type':_0x58ede4['mediaType'],'data':_0x58ede4['data']},'url':undefined}};}function _0x2a79(_0x1ce0d1,_0x1c3284){_0x1ce0d1=_0x1ce0d1-0xbe;const _0x1df93b=_0x1df9();let _0x2a7974=_0x1df93b[_0x1ce0d1];return _0x2a7974;}async function convertToolOutputImagesToBase64(_0xa448ad){const _0x2a45b0={'aiZyi':function(_0x31b93c,_0x27269b){return _0x31b93c(_0x27269b);}};if(!isRecord(_0xa448ad))return{'updated':![],'output':_0xa448ad};const _0x203886=_0xa448ad['content'];if(!Array['isArray'](_0x203886))return{'updated':![],'output':_0xa448ad};let _0x18110a=![];const _0x20a8b0=await Promise['all'](_0x203886['map'](async _0x449122=>{const _0x389b95=_0x2a79;if(!isImageBlock(_0x449122))return _0x449122;try{const _0x281eeb=await _0x2a45b0['aiZyi'](convertImageBlockToBase64,_0x449122);if(_0x281eeb[_0x389b95(0xea)])_0x18110a=!![];return _0x281eeb['block'];}catch{return _0x449122;}}));if(!_0x18110a)return{'updated':![],'output':_0xa448ad};return{'updated':!![],'output':{..._0xa448ad,'content':_0x20a8b0}};}function sanitizeLoneSurrogates(_0x4c20d5){const _0x51156b=_0x2a79,_0x4ed249={'EJxFF':function(_0x50ab1e,_0x6a1a0a){return _0x50ab1e<_0x6a1a0a;},'jkaoM':function(_0x1f825a,_0x37cf16){return _0x1f825a>=_0x37cf16;},'EwvYj':function(_0x2d413a,_0x3ed8eb){return _0x2d413a<=_0x3ed8eb;},'SasSt':function(_0x130f5e,_0x352736){return _0x130f5e+_0x352736;},'eDNbk':function(_0x210199,_0x59d801){return _0x210199>=_0x59d801;},'QcOdE':function(_0x472f53,_0x4a561d){return _0x472f53<=_0x4a561d;},'JtOnb':function(_0x2b34ed,_0x28b87a){return _0x2b34ed+_0x28b87a;},'GBLDy':function(_0xed05f2,_0x211f8c){return _0xed05f2+_0x211f8c;}};let _0x5c8747=![],_0x20c079='';for(let _0x20f7d6=0x0;_0x4ed249[_0x51156b(0xec)](_0x20f7d6,_0x4c20d5[_0x51156b(0xcd)]);_0x20f7d6+=0x1){const _0x211b55=_0x4c20d5[_0x51156b(0xc4)](_0x20f7d6);if(_0x4ed249['jkaoM'](_0x211b55,0xd800)&&_0x4ed249[_0x51156b(0xe7)](_0x211b55,0xdbff)){const _0x3822ac=_0x4c20d5['charCodeAt'](_0x4ed249['SasSt'](_0x20f7d6,0x1));if(_0x4ed249['eDNbk'](_0x3822ac,0xdc00)&&_0x4ed249['QcOdE'](_0x3822ac,0xdfff)){_0x20c079+=_0x4ed249[_0x51156b(0xf3)](_0x4c20d5[_0x20f7d6],_0x4c20d5[_0x4ed249['GBLDy'](_0x20f7d6,0x1)]),_0x20f7d6+=0x1;continue;}_0x5c8747=!![],_0x20c079+='�';continue;}if(_0x211b55>=0xdc00&&_0x211b55<=0xdfff){_0x5c8747=!![],_0x20c079+='�';continue;}_0x20c079+=_0x4c20d5[_0x20f7d6];}return _0x5c8747?{'updated':_0x5c8747,'value':_0x20c079}:{'updated':_0x5c8747,'value':_0x4c20d5};}function _0x1df9(){const _0xe3c341=['11002856VnxHzy','value','pBqxe','image','XBzBM','http://','byteLength','charCodeAt','1519686pOMFbf','SpdFC','730554IvjBZE','tXsPW','3LorsPh','string','ZcWwY','xwWtN','length','url','content-type','fromEntries','toString','size','1450saSrTO','YkQYr','startsWith','base64','jpg','DAJWU','xphDv','replace','status','7FyqfbW','output','data','Image\x20exceeds\x20size\x20limit\x20(','image/jpeg','toLowerCase','image/webp','headers','webp','11541852GinjtI','image/png','EwvYj','rNBcx','\x20bytes)','updated','object','EJxFF','xXHjP','timeout','5290744ATwJmM','21288SAYJsE','15375690YqjPyh','mimeType','JtOnb','from','foxZF','eJdCT'];_0x1df9=function(){return _0xe3c341;};return _0x1df9();}function sanitizeLoneSurrogatesDeep(_0x31a8e8){const _0x20a3f0=_0x2a79,_0x455b72={'YkQYr':function(_0x2c3ad2,_0xd01c69){return _0x2c3ad2(_0xd01c69);},'foxZF':function(_0x5aa330,_0x3445a0){return _0x5aa330===_0x3445a0;},'rNBcx':function(_0x10e9bd,_0x53655a){return _0x10e9bd(_0x53655a);}};if(_0x455b72[_0x20a3f0(0xf5)](typeof _0x31a8e8,_0x20a3f0(0xca)))return _0x455b72[_0x20a3f0(0xe8)](sanitizeLoneSurrogates,_0x31a8e8);if(Array['isArray'](_0x31a8e8)){let _0x38d2e5=![];const _0x5814ec=_0x31a8e8['map'](_0xf00fc4=>{const _0x2f36fa=sanitizeLoneSurrogatesDeep(_0xf00fc4);return _0x2f36fa['updated']&&(_0x38d2e5=!![]),_0x2f36fa['value'];});return _0x38d2e5?{'updated':!![],'value':_0x5814ec}:{'updated':![],'value':_0x31a8e8};}if(!isRecord(_0x31a8e8))return{'updated':![],'value':_0x31a8e8};let _0xfeac2e=![];const _0x3283f8=Object['entries'](_0x31a8e8)['map'](([_0x1125fa,_0x369beb])=>{const _0x235670=_0x20a3f0,_0x62b201=_0x455b72[_0x235670(0xd4)](sanitizeLoneSurrogatesDeep,_0x369beb);return _0x62b201['updated']&&(_0xfeac2e=!![]),[_0x1125fa,_0x62b201[_0x235670(0xbe)]];});return _0xfeac2e?{'updated':!![],'value':Object[_0x20a3f0(0xd0)](_0x3283f8)}:{'updated':![],'value':_0x31a8e8};}export function createMcpImageBase64Hook(){const _0x164188={'SpdFC':function(_0x56cfd8,_0x19cd96){return _0x56cfd8!==_0x19cd96;},'SXlXb':'PostToolUse'};return async _0x94d5cc=>{const _0x42eb6b=_0x2a79;if(_0x164188[_0x42eb6b(0xc6)](_0x94d5cc['hook_event_name'],_0x164188['SXlXb']))return{};const _0x58d03a=_0x94d5cc,_0x327977=await convertToolOutputImagesToBase64(_0x58d03a['tool_response']),_0x1d6f96=sanitizeLoneSurrogatesDeep(_0x327977[_0x42eb6b(0xdd)]),_0x5bb7f5=_0x327977[_0x42eb6b(0xea)]||_0x1d6f96['updated'];if(!_0x5bb7f5)return{};return{'hookSpecificOutput':{'hookEventName':_0x164188['SXlXb'],'updatedMCPToolOutput':_0x1d6f96['value']}};};}
|
|
1
|
+
(function(_0xdd82b0,_0x5d1fef){const _0x22b435=_0x54b8,_0x208686=_0xdd82b0();while(!![]){try{const _0x44deae=-parseInt(_0x22b435(0x6f))/0x1*(-parseInt(_0x22b435(0x96))/0x2)+parseInt(_0x22b435(0x8d))/0x3+-parseInt(_0x22b435(0x93))/0x4+parseInt(_0x22b435(0xa5))/0x5*(parseInt(_0x22b435(0x9e))/0x6)+-parseInt(_0x22b435(0xa4))/0x7+parseInt(_0x22b435(0x79))/0x8+parseInt(_0x22b435(0x8b))/0x9*(-parseInt(_0x22b435(0x89))/0xa);if(_0x44deae===_0x5d1fef)break;else _0x208686['push'](_0x208686['shift']());}catch(_0x4c0b2d){_0x208686['push'](_0x208686['shift']());}}}(_0x5293,0xd5b43));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x5f0d9a){const _0x389e50=_0x54b8,_0x11a3b5={'tfpnj':function(_0x52368d,_0x5c856d){return _0x52368d===_0x5c856d;}};return _0x11a3b5[_0x389e50(0x72)](typeof _0x5f0d9a,'object')&&_0x5f0d9a!==null;}function isImageBlock(_0x4c3624){const _0x52917b=_0x54b8,_0x178ef8={'PeQUi':function(_0x3bd49d,_0x127918){return _0x3bd49d===_0x127918;}};return isRecord(_0x4c3624)&&_0x178ef8[_0x52917b(0xa1)](_0x4c3624[_0x52917b(0x70)],'image');}function isDataUrl(_0x4e1bc6){const _0x30f243=_0x54b8,_0x2a59fb={'mJfiI':'data:'};return _0x4e1bc6[_0x30f243(0x99)](_0x2a59fb['mJfiI']);}function parseDataUrl(_0x4e4dc2){const _0x537e7d=/^data:([^;]+);base64,(.+)$/['exec'](_0x4e4dc2);if(!_0x537e7d)return null;const _0x42a7ae=_0x537e7d[0x1]['toLowerCase']();if(!isValidMediaType(_0x42a7ae))return null;return{'data':_0x537e7d[0x2],'mediaType':_0x42a7ae};}function isValidMediaType(_0xdbbe6d){const _0x292228=_0x54b8,_0x52e6dc={'LmEgQ':_0x292228(0x78),'MfLyc':'image/png','wfIXg':'image/webp'};return[_0x52e6dc[_0x292228(0x86)],_0x52e6dc[_0x292228(0x8c)],'image/gif',_0x52e6dc['wfIXg']]['includes'](_0xdbbe6d);}function inferMediaType(_0x21dc5b,_0x1527bd){const _0x96887a=_0x54b8,_0x207ac5={'udjPI':_0x96887a(0x7b),'NiFOb':_0x96887a(0x78),'fExom':'png','AYZNV':_0x96887a(0x84),'JDogI':_0x96887a(0x9a)};if(_0x21dc5b){const _0x34b9f8=_0x21dc5b['toLowerCase']()['split'](';')[0x0][_0x96887a(0x9b)]();if(isValidMediaType(_0x34b9f8))return _0x34b9f8;}const _0x44e133=extname(_0x1527bd)['toLowerCase']()['replace']('.','');switch(_0x44e133){case _0x96887a(0x85):case _0x207ac5[_0x96887a(0x9f)]:return _0x207ac5['NiFOb'];case _0x207ac5['fExom']:return _0x96887a(0x8e);case _0x96887a(0x80):return _0x207ac5['AYZNV'];case'webp':return _0x207ac5['JDogI'];default:return'image/png';}}async function readImageFromUrl(_0x4758f9){const _0x25fb6a=_0x54b8,_0x300171={'mhbyj':function(_0x3ff462,_0x240be7){return _0x3ff462(_0x240be7);},'ynyQq':'file://','imtPr':function(_0x5cf3e4,_0x225242){return _0x5cf3e4(_0x225242);},'cGkfX':function(_0x330906,_0x136050){return _0x330906>_0x136050;},'GUfkX':function(_0x3fcecc,_0x1c2180){return _0x3fcecc(_0x1c2180);},'BqlAb':'base64','HhTlu':function(_0x387286,_0x59a651,_0x51823f){return _0x387286(_0x59a651,_0x51823f);},'vTfWS':'http://','TuwQH':_0x25fb6a(0x7a),'OaKLk':function(_0x4c7f8f,_0x4d0600){return _0x4c7f8f>_0x4d0600;},'NVKnG':'content-type'};if(isDataUrl(_0x4758f9)){const _0x285c5a=_0x300171['mhbyj'](parseDataUrl,_0x4758f9);if(_0x285c5a)return _0x285c5a;throw new Error(_0x25fb6a(0x97));}if(_0x4758f9['startsWith'](_0x300171[_0x25fb6a(0xa0)])){const _0x2fb7e7=_0x300171[_0x25fb6a(0x7c)](fileURLToPath,_0x4758f9),_0x1e44a8=await _0x300171['imtPr'](stat,_0x2fb7e7);if(_0x300171[_0x25fb6a(0x76)](_0x1e44a8['size'],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x25fb6a(0x73)+MAX_IMAGE_SIZE_BYTES+_0x25fb6a(0x6c));const _0x1505d4=await _0x300171['GUfkX'](readFile,_0x2fb7e7);return{'data':_0x1505d4['toString'](_0x300171['BqlAb']),'mediaType':_0x300171[_0x25fb6a(0x82)](inferMediaType,null,_0x2fb7e7)};}if(_0x4758f9['startsWith'](_0x300171['vTfWS'])||_0x4758f9['startsWith']('https://')){const _0x26214a=await fetch(_0x4758f9,{'signal':AbortSignal[_0x25fb6a(0x6d)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x26214a['ok'])throw new Error(_0x25fb6a(0x94)+_0x26214a[_0x25fb6a(0x81)]);const _0x4c2051=_0x26214a['headers'][_0x25fb6a(0x71)](_0x300171[_0x25fb6a(0x8a)]);if(_0x4c2051){const _0x51f2f6=_0x300171['imtPr'](Number,_0x4c2051);if(!Number['isNaN'](_0x51f2f6)&&_0x300171['OaKLk'](_0x51f2f6,MAX_IMAGE_SIZE_BYTES))throw new Error(_0x25fb6a(0x73)+MAX_IMAGE_SIZE_BYTES+_0x25fb6a(0x6c));}const _0x301997=await _0x26214a['arrayBuffer']();if(_0x301997[_0x25fb6a(0x7f)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x25fb6a(0x73)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer['from'](_0x301997)['toString'](_0x25fb6a(0xa3)),'mediaType':_0x300171['HhTlu'](inferMediaType,_0x26214a[_0x25fb6a(0x95)]['get'](_0x300171[_0x25fb6a(0x98)]),_0x4758f9)};}const _0x44454b=await stat(_0x4758f9);if(_0x300171['OaKLk'](_0x44454b['size'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x5bd365=await _0x300171['imtPr'](readFile,_0x4758f9);return{'data':_0x5bd365['toString']('base64'),'mediaType':_0x300171[_0x25fb6a(0x82)](inferMediaType,null,_0x4758f9)};}async function convertImageBlockToBase64(_0x3015d4){const _0x28ac89=_0x54b8,_0xd2057f={'nkyZJ':function(_0x126e02,_0xe6f628){return _0x126e02===_0xe6f628;},'CzcHk':'base64'};if(_0xd2057f[_0x28ac89(0x88)](_0x3015d4['source']?.[_0x28ac89(0x70)],_0x28ac89(0xa3)))return{'updated':![],'block':_0x3015d4};if(_0x3015d4[_0x28ac89(0x8f)]&&_0x3015d4['mimeType'])return{'updated':![],'block':_0x3015d4};const _0x20fc5f=_0x3015d4[_0x28ac89(0x9c)]?.['url']??_0x3015d4['url'];if(!_0x20fc5f)return{'updated':![],'block':_0x3015d4};const _0x357398=await readImageFromUrl(_0x20fc5f);return{'updated':!![],'block':{..._0x3015d4,'source':{'type':_0xd2057f['CzcHk'],'media_type':_0x357398['mediaType'],'data':_0x357398['data']},'url':undefined}};}function _0x54b8(_0xf94212,_0x2f36da){_0xf94212=_0xf94212-0x6c;const _0x529368=_0x5293();let _0x54b892=_0x529368[_0xf94212];return _0x54b892;}async function convertToolOutputImagesToBase64(_0x1a1b1d){const _0x395138=_0x54b8,_0x39d39c={'mapVi':function(_0x282104,_0x2b125b){return _0x282104(_0x2b125b);}};if(!_0x39d39c[_0x395138(0x77)](isRecord,_0x1a1b1d))return{'updated':![],'output':_0x1a1b1d};const _0x366ec2=_0x1a1b1d['content'];if(!Array['isArray'](_0x366ec2))return{'updated':![],'output':_0x1a1b1d};let _0xad0e26=![];const _0x4ae343=await Promise['all'](_0x366ec2['map'](async _0x5f49f8=>{if(!isImageBlock(_0x5f49f8))return _0x5f49f8;try{const _0x58db0c=await convertImageBlockToBase64(_0x5f49f8);if(_0x58db0c['updated'])_0xad0e26=!![];return _0x58db0c['block'];}catch{return _0x5f49f8;}}));if(!_0xad0e26)return{'updated':![],'output':_0x1a1b1d};return{'updated':!![],'output':{..._0x1a1b1d,'content':_0x4ae343}};}function _0x5293(){const _0x54f5f3=['11790520yBsGmi','content-length','jpeg','mhbyj','map','hook_event_name','byteLength','gif','status','HhTlu','value','image/gif','jpg','LmEgQ','entries','nkyZJ','750BrPRit','TuwQH','32094oQSFAD','MfLyc','538704xguuzY','image/png','data','charCodeAt','string','length','1215592yPJIoS','Failed\x20to\x20fetch\x20image:\x20','headers','1448936IZxjEu','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','NVKnG','startsWith','image/webp','trim','source','PostToolUse','318MXeTbe','udjPI','ynyQq','PeQUi','tool_response','base64','10895262lvLGxA','58990NGgtis','\x20bytes)','timeout','updated','1SgBkEv','type','get','tfpnj','Image\x20exceeds\x20size\x20limit\x20(','XFPTu','isArray','cGkfX','mapVi','image/jpeg'];_0x5293=function(){return _0x54f5f3;};return _0x5293();}function sanitizeLoneSurrogates(_0x466574){const _0x1e41ef=_0x54b8,_0x48efa3={'jaXlZ':function(_0x52e413,_0x26480c){return _0x52e413<_0x26480c;},'UKXnJ':function(_0x5aaa45,_0x3bd5bf){return _0x5aaa45>=_0x3bd5bf;},'gOmjr':function(_0x4cd9e4,_0xd508d6){return _0x4cd9e4<=_0xd508d6;},'XFPTu':function(_0x4b7608,_0x308d65){return _0x4b7608>=_0x308d65;},'PXVKl':function(_0x4dd488,_0x4b150f){return _0x4dd488+_0x4b150f;},'lnvHN':function(_0xb120ab,_0x44e0db){return _0xb120ab+_0x44e0db;},'uXdlR':function(_0x379e71,_0x51785a){return _0x379e71>=_0x51785a;}};let _0x1c5cb7=![],_0x10cda5='';for(let _0x331c14=0x0;_0x48efa3['jaXlZ'](_0x331c14,_0x466574[_0x1e41ef(0x92)]);_0x331c14+=0x1){const _0x4ae763=_0x466574['charCodeAt'](_0x331c14);if(_0x48efa3['UKXnJ'](_0x4ae763,0xd800)&&_0x48efa3['gOmjr'](_0x4ae763,0xdbff)){const _0x6c648d=_0x466574[_0x1e41ef(0x90)](_0x331c14+0x1);if(_0x48efa3[_0x1e41ef(0x74)](_0x6c648d,0xdc00)&&_0x6c648d<=0xdfff){_0x10cda5+=_0x48efa3['PXVKl'](_0x466574[_0x331c14],_0x466574[_0x48efa3['lnvHN'](_0x331c14,0x1)]),_0x331c14+=0x1;continue;}_0x1c5cb7=!![],_0x10cda5+='�';continue;}if(_0x48efa3['uXdlR'](_0x4ae763,0xdc00)&&_0x4ae763<=0xdfff){_0x1c5cb7=!![],_0x10cda5+='�';continue;}_0x10cda5+=_0x466574[_0x331c14];}return _0x1c5cb7?{'updated':_0x1c5cb7,'value':_0x10cda5}:{'updated':_0x1c5cb7,'value':_0x466574};}function sanitizeLoneSurrogatesDeep(_0x5d7f73){const _0x54c503=_0x54b8,_0x20c33d={'PZgMP':function(_0x22a8b4,_0xda3671){return _0x22a8b4(_0xda3671);},'IwkBS':_0x54c503(0x91),'SsJyu':function(_0x40b8eb,_0x576cfd){return _0x40b8eb(_0x576cfd);}};if(typeof _0x5d7f73===_0x20c33d['IwkBS'])return _0x20c33d['SsJyu'](sanitizeLoneSurrogates,_0x5d7f73);if(Array[_0x54c503(0x75)](_0x5d7f73)){let _0x59ef59=![];const _0x4d0468=_0x5d7f73['map'](_0x566207=>{const _0x588939=_0x54c503,_0x50a9ff=sanitizeLoneSurrogatesDeep(_0x566207);return _0x50a9ff[_0x588939(0x6e)]&&(_0x59ef59=!![]),_0x50a9ff[_0x588939(0x83)];});return _0x59ef59?{'updated':!![],'value':_0x4d0468}:{'updated':![],'value':_0x5d7f73};}if(!_0x20c33d['SsJyu'](isRecord,_0x5d7f73))return{'updated':![],'value':_0x5d7f73};let _0x4a8a43=![];const _0x3a133b=Object[_0x54c503(0x87)](_0x5d7f73)[_0x54c503(0x7d)](([_0x540683,_0x88341c])=>{const _0x1c745d=_0x54c503,_0x58427=_0x20c33d['PZgMP'](sanitizeLoneSurrogatesDeep,_0x88341c);return _0x58427[_0x1c745d(0x6e)]&&(_0x4a8a43=!![]),[_0x540683,_0x58427[_0x1c745d(0x83)]];});return _0x4a8a43?{'updated':!![],'value':Object['fromEntries'](_0x3a133b)}:{'updated':![],'value':_0x5d7f73};}export function createMcpImageBase64Hook(){const _0x1a3a82=_0x54b8,_0x459301={'CtGJr':function(_0x17131b,_0x171fce){return _0x17131b(_0x171fce);},'HmPXG':_0x1a3a82(0x9d)};return async _0x51bea4=>{const _0x1f9c4c=_0x1a3a82;if(_0x51bea4[_0x1f9c4c(0x7e)]!=='PostToolUse')return{};const _0x165477=_0x51bea4,_0x45cf28=await _0x459301['CtGJr'](convertToolOutputImagesToBase64,_0x165477[_0x1f9c4c(0xa2)]),_0x47be90=sanitizeLoneSurrogatesDeep(_0x45cf28['output']),_0x59fd2=_0x45cf28[_0x1f9c4c(0x6e)]||_0x47be90['updated'];if(!_0x59fd2)return{};return{'hookSpecificOutput':{'hookEventName':_0x459301['HmPXG'],'updatedMCPToolOutput':_0x47be90['value']}};};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x24a467=_0x35ff;(function(_0x293621,_0x428fda){const _0x133288=_0x35ff,_0x1f6156=_0x293621();while(!![]){try{const _0x12045b=-parseInt(_0x133288(0x1ee))/0x1*(parseInt(_0x133288(0x1ea))/0x2)+parseInt(_0x133288(0x1e3))/0x3+parseInt(_0x133288(0x1e5))/0x4*(-parseInt(_0x133288(0x1e4))/0x5)+-parseInt(_0x133288(0x1eb))/0x6+-parseInt(_0x133288(0x1e7))/0x7+-parseInt(_0x133288(0x1ec))/0x8+parseInt(_0x133288(0x1e8))/0x9*(parseInt(_0x133288(0x1ef))/0xa);if(_0x12045b===_0x428fda)break;else _0x1f6156['push'](_0x1f6156['shift']());}catch(_0x424485){_0x1f6156['push'](_0x1f6156['shift']());}}}(_0x1a6e,0x1dcc1));const VERIFY_MODEL_ALIASES={'opus':_0x24a467(0x1e9),'sonnet':_0x24a467(0x1f0)};function _0x1a6e(){const _0x4e1250=['claude-opus-4-6','219782VYowGv','799938htLDha','207960sqNSsg','trim','1zigiFs','116050UNGtTe','claude-sonnet-4-6','42375ikxDog','27595igkpAy','52HqydSk','uitgw','188475GFpdQu','369yPRMUS'];_0x1a6e=function(){return _0x4e1250;};return _0x1a6e();}function _0x35ff(_0x308848,_0x2f5618){_0x308848=_0x308848-0x1e3;const _0x1a6e2e=_0x1a6e();let _0x35fff7=_0x1a6e2e[_0x308848];return _0x35fff7;}export const DEFAULT_VERIFY_MODEL=_0x24a467(0x1f0);export function resolveVerifyModel(_0x872474){const _0x25828b=_0x24a467,_0xcb2bad={'uitgw':function(_0x577326,_0x149aec){return _0x577326??_0x149aec;}};if(!_0x872474)return undefined;const _0x38ecec=_0x872474[_0x25828b(0x1ed)]();if(!_0x38ecec)return undefined;const _0x5a0348=VERIFY_MODEL_ALIASES[_0x38ecec['toLowerCase']()];return _0xcb2bad[_0x25828b(0x1e6)](_0x5a0348,_0x38ecec);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xb94e59,_0x2f283c){var _0x3f6aba=_0x1367,_0x333084=_0xb94e59();while(!![]){try{var _0x21539f=parseInt(_0x3f6aba(0x182))/0x1+-parseInt(_0x3f6aba(0x17c))/0x2*(parseInt(_0x3f6aba(0x176))/0x3)+-parseInt(_0x3f6aba(0x17f))/0x4+-parseInt(_0x3f6aba(0x17d))/0x5*(-parseInt(_0x3f6aba(0x17a))/0x6)+-parseInt(_0x3f6aba(0x17b))/0x7+-parseInt(_0x3f6aba(0x177))/0x8+parseInt(_0x3f6aba(0x179))/0x9;if(_0x21539f===_0x2f283c)break;else _0x333084['push'](_0x333084['shift']());}catch(_0x5d67c7){_0x333084['push'](_0x333084['shift']());}}}(_0x2514,0x900c8));import{homedir}from'os';function _0x1367(_0x4131ff,_0xe44717){_0x4131ff=_0x4131ff-0x174;var _0x2514d9=_0x2514();var _0x1367f3=_0x2514d9[_0x4131ff];return _0x1367f3;}function _0x2514(){var _0xccc0be=['.opencode','PJUoL','1371ZBJSxU','5531104csNmjB','env','27930060pcPmBc','6MlWhaL','8155938khjnfu','484QCZiFw','2882190wIQowX','STsXa','4633748aJxMAW','cpbig','opencode','35799XrSCZE'];_0x2514=function(){return _0xccc0be;};return _0x2514();}import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0xabe14d){var _0x5392c1=_0x1367,_0x1baa82={'kHPjQ':function(_0x2b060c,_0x22ec3e){return _0x2b060c===_0x22ec3e;},'Lxtkl':_0x5392c1(0x181),'cpbig':function(_0x529b4a,_0x143235,_0x19e31c,_0x2f64f7){return _0x529b4a(_0x143235,_0x19e31c,_0x2f64f7);},'HhFTj':'.config','GtGOs':function(_0x109000){return _0x109000();}};if(process[_0x5392c1(0x178)]['OPENCODE_CONFIG_DIR'])return process[_0x5392c1(0x178)]['OPENCODE_CONFIG_DIR'];if(_0x1baa82['kHPjQ'](_0xabe14d,'user')){if(process[_0x5392c1(0x178)]['XDG_CONFIG_HOME'])return join(process['env']['XDG_CONFIG_HOME'],_0x1baa82['Lxtkl']);return _0x1baa82[_0x5392c1(0x180)](join,homedir(),_0x1baa82['HhFTj'],_0x1baa82['Lxtkl']);}return join(_0x1baa82['GtGOs'](getProjectRoot),_0x5392c1(0x174));}export function getOpencodeSkillsDir(_0x16d8b4){var _0x514644=_0x1367,_0x583b51={'UWrbt':function(_0xfa4d50,_0x59be54,_0x1f0764){return _0xfa4d50(_0x59be54,_0x1f0764);},'STsXa':function(_0x43d308,_0xe208a5){return _0x43d308(_0xe208a5);},'PJUoL':'skills'};return _0x583b51['UWrbt'](join,_0x583b51[_0x514644(0x17e)](getOpencodeConfigDir,_0x16d8b4),_0x583b51[_0x514644(0x175)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x44792f=_0x371b;(function(_0x457012,_0x19f7f5){const _0x55f58e=_0x371b,_0x5a300f=_0x457012();while(!![]){try{const _0x70a98=-parseInt(_0x55f58e(0x19c))/0x1*(-parseInt(_0x55f58e(0x187))/0x2)+-parseInt(_0x55f58e(0x1b3))/0x3*(parseInt(_0x55f58e(0x19b))/0x4)+-parseInt(_0x55f58e(0x1a0))/0x5*(-parseInt(_0x55f58e(0x18a))/0x6)+parseInt(_0x55f58e(0x1a6))/0x7*(parseInt(_0x55f58e(0x19d))/0x8)+parseInt(_0x55f58e(0x1ba))/0x9*(-parseInt(_0x55f58e(0x1af))/0xa)+parseInt(_0x55f58e(0x1b6))/0xb*(parseInt(_0x55f58e(0x193))/0xc)+-parseInt(_0x55f58e(0x1bd))/0xd;if(_0x70a98===_0x19f7f5)break;else _0x5a300f['push'](_0x5a300f['shift']());}catch(_0xc5a614){_0x5a300f['push'](_0x5a300f['shift']());}}}(_0xf263,0xa82a8));function _0xf263(){const _0xda8329=['dxurp','cWXwR','playwright-cli\x20','data','string','-s=','kALqA','1418030OzCqZH','toString','XthnP','ignore','762REBXOh','pipe','join','2398715TJNjqE','\x0astdout:\x20','--config','stdout','63Xhaety','sessionId','Yqeoo','24371256KelRVy','\x20signal=','16khaYnO','slice','kill','2172270JMSGfp','stderr','jMnDr','@playwright/cli','subcommand','args','values','env','update','60WvLaQp','zWfGe','SIGTERM','exited\x20with\x20code=','npx','timeoutMs','command','IxfMn','7992nIWYOA','148337pwpmse','8oKxlin','JPVfC','match','10iJapyD','find','script','hex','unknown','replace','7437654vMNnAY','trim'];_0xf263=function(){return _0xda8329;};return _0xf263();}import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x44792f(0x18d);function toPlaywrightCliSessionKey(_0x1dbfe6){const _0x23d705=_0x44792f,_0x1985bd={'lxJgw':'sha256'},_0x8dce2=createHash(_0x1985bd['lxJgw'])[_0x23d705(0x192)](_0x1dbfe6)['digest'](_0x23d705(0x1a3))[_0x23d705(0x188)](0x0,0xc);return'rg-'+_0x8dce2;}function shellQuote(_0x8cd705){const _0x4bfcb5=_0x44792f;return'\x27'+_0x8cd705[_0x4bfcb5(0x1a5)](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x2777ca){const _0x3410c3={'PvFlf':function(_0x2f4590,_0x4b9b78){return _0x2f4590(_0x4b9b78);}};return SAFE_SHELL_TOKEN['test'](_0x2777ca)?_0x2777ca:_0x3410c3['PvFlf'](shellQuote,_0x2777ca);}export function buildPlaywrightCliInvocation(_0xee45ab,_0x5380ec,_0x24f70b){const _0x141bc7=_0x44792f,_0x260c72={'Fqoko':_0x141bc7(0x1a4),'CzaOC':_0x141bc7(0x1b8),'sDzqu':'npx','Jvfye':function(_0x4366e1,_0x44d756){return _0x4366e1(_0x44d756);}},_0x4698ca=toPlaywrightCliSessionKey(_0xee45ab),[_0x3c54df=_0x260c72['Fqoko']]=_0x24f70b,_0x1ccc63=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x4698ca,_0x260c72['CzaOC'],_0x5380ec,..._0x24f70b];return{'command':_0x260c72['sDzqu'],'args':_0x1ccc63,'shellCommand':['npx',PLAYWRIGHT_CLI_BINARY,_0x141bc7(0x1ad)+quoteShellArg(_0x4698ca),_0x141bc7(0x1b8),_0x260c72['Jvfye'](quoteShellArg,_0x5380ec),..._0x24f70b['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x3c54df};}export function buildPlaywrightCliCommandPrefix(_0x4fb5a7,_0xd0806){const _0x10e9fb=_0x44792f,_0x30723a={'kALqA':function(_0x5edf9f,_0x375db5){return _0x5edf9f(_0x375db5);},'aoqyj':_0x10e9fb(0x1b8)},_0x2439a1=toPlaywrightCliSessionKey(_0x4fb5a7);return[_0x10e9fb(0x197),PLAYWRIGHT_CLI_BINARY,_0x10e9fb(0x1ad)+_0x30723a['kALqA'](quoteShellArg,_0x2439a1),_0x30723a['aoqyj'],_0x30723a[_0x10e9fb(0x1ae)](quoteShellArg,_0xd0806)][_0x10e9fb(0x1b5)]('\x20');}function truncateOutput(_0x57e3a8,_0xf0edc4=0x7d0){const _0x51d331=_0x44792f;return _0x57e3a8['length']>_0xf0edc4?_0x57e3a8[_0x51d331(0x188)](0x0,_0xf0edc4)+'...':_0x57e3a8;}export async function runPlaywrightCliCommand(_0x6a61eb){const _0x44295e=_0x44792f,_0x1ae6e8={'jMnDr':function(_0x3832ee,_0x2c820e){return _0x3832ee(_0x2c820e);},'OVdsT':function(_0xdbfd7f,_0x2f5d64){return _0xdbfd7f??_0x2f5d64;},'ovqxV':_0x44295e(0x1b2),'WUBOX':_0x44295e(0x1b4),'Yqeoo':function(_0x255838,_0x382e1f){return _0x255838>_0x382e1f;},'dxurp':_0x44295e(0x1ab),'gaMFb':'error','IxfMn':function(_0x55773c,_0x528ff1,_0x2589de,_0x604872){return _0x55773c(_0x528ff1,_0x2589de,_0x604872);}},_0x359df1=_0x1ae6e8[_0x44295e(0x19a)](buildPlaywrightCliInvocation,_0x6a61eb[_0x44295e(0x1bb)],_0x6a61eb['configPath'],_0x6a61eb['commandArgs']);return new Promise((_0x516309,_0xd46343)=>{const _0x4190e8=_0x44295e,_0x51c1b0={'cWXwR':function(_0x4600b6,_0x4a2c33){const _0x566a81=_0x371b;return _0x1ae6e8[_0x566a81(0x18c)](_0x4600b6,_0x4a2c33);},'VycMR':function(_0x150ce2,_0x311368){return _0x1ae6e8['OVdsT'](_0x150ce2,_0x311368);}},_0x350fb8=spawn(_0x359df1[_0x4190e8(0x199)],_0x359df1[_0x4190e8(0x18f)],{'cwd':_0x6a61eb['cwd'],'env':_0x6a61eb[_0x4190e8(0x191)],'stdio':[_0x1ae6e8['ovqxV'],_0x4190e8(0x1b4),_0x1ae6e8['WUBOX']]});let _0x418f69='',_0x51da69='',_0x3d4c25=![];const _0x428ba7=_0x6a61eb['timeoutMs']&&_0x1ae6e8[_0x4190e8(0x1bc)](_0x6a61eb['timeoutMs'],0x0)?setTimeout(()=>{const _0x4308e3=_0x4190e8;_0x3d4c25=!![],_0x350fb8[_0x4308e3(0x189)](_0x4308e3(0x195)),setTimeout(()=>{try{_0x350fb8['kill']('SIGKILL');}catch{}},0x3e8);},_0x6a61eb[_0x4190e8(0x198)]):null;_0x350fb8[_0x4190e8(0x1b9)]?.['on'](_0x1ae6e8[_0x4190e8(0x1a8)],_0x27411c=>{_0x418f69+=_0x27411c['toString']();}),_0x350fb8[_0x4190e8(0x18b)]?.['on'](_0x4190e8(0x1ab),_0x148e16=>{const _0x18728f=_0x4190e8;_0x51da69+=_0x148e16[_0x18728f(0x1b0)]();}),_0x350fb8['on'](_0x1ae6e8['gaMFb'],_0x1a9b52=>{if(_0x428ba7)clearTimeout(_0x428ba7);_0x51c1b0['cWXwR'](_0xd46343,_0x1a9b52);}),_0x350fb8['on']('close',(_0x28b269,_0x5dce93)=>{const _0xef0c30=_0x4190e8;if(_0x428ba7)clearTimeout(_0x428ba7);if(_0x28b269===0x0){_0x516309({'stdout':_0x418f69,'stderr':_0x51da69,'invocation':_0x359df1});return;}const _0x290719=_0x3d4c25?'timed\x20out\x20after\x20'+_0x6a61eb['timeoutMs']+'ms':_0xef0c30(0x196)+_0x51c1b0['VycMR'](_0x28b269,'null')+_0xef0c30(0x1be)+(_0x5dce93??'null');_0xd46343(new Error(_0xef0c30(0x1aa)+_0x359df1[_0xef0c30(0x18e)]+'\x20'+_0x290719+_0xef0c30(0x1b7)+truncateOutput(_0x418f69)+'\x0astderr:\x20'+_0x51c1b0[_0xef0c30(0x1a9)](truncateOutput,_0x51da69)));});});}function _0x371b(_0x303561,_0x1fca72){_0x303561=_0x303561-0x187;const _0xf263f0=_0xf263();let _0x371b46=_0xf263f0[_0x303561];return _0x371b46;}export function extractBashCommand(_0x50330f){const _0x2378c4=_0x44792f,_0x27436f={'XthnP':'command','ekbVB':'cmd','JPVfC':'bash_command','zWfGe':'string'},_0x50504c=[_0x27436f[_0x2378c4(0x1b1)],_0x27436f['ekbVB'],_0x2378c4(0x1a2),_0x27436f[_0x2378c4(0x19e)]];for(const _0x3d66a9 of _0x50504c){const _0x4d65ec=_0x50330f[_0x3d66a9];if(typeof _0x4d65ec===_0x27436f[_0x2378c4(0x194)]&&_0x4d65ec[_0x2378c4(0x1a7)]())return _0x4d65ec;}const _0x419cb5=Object[_0x2378c4(0x190)](_0x50330f)[_0x2378c4(0x1a1)](_0x4348c8=>typeof _0x4348c8===_0x2378c4(0x1ac)&&_0x4348c8['trim']()['length']>0x0);return _0x419cb5??null;}export function parsePlaywrightCliCommand(_0x4111a){const _0x584e36=_0x44792f,_0x3836fe=_0x4111a[_0x584e36(0x19f)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x3836fe?.[0x1]??null;}
|