@ranger-testing/ranger-cli 2.5.4-alpha.ed286f1-2 → 2.5.4-alpha.f940f0d-18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/README.md +36 -14
  2. package/build/cli.js +1 -1
  3. package/build/commands/addEnv.js +1 -1
  4. package/build/commands/authEncrypt.js +1 -1
  5. package/build/commands/clean.js +1 -1
  6. package/build/commands/config.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -0
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -0
  43. package/build/commands/utils/cloudProfileSession.js +1 -0
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -0
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -0
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -0
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/opencodeConfig.js +1 -1
  58. package/build/commands/utils/playwrightCli.js +1 -1
  59. package/build/commands/utils/profileMessages.js +1 -1
  60. package/build/commands/utils/profileSetupBanner.js +1 -1
  61. package/build/commands/utils/projectsConfig.js +1 -0
  62. package/build/commands/utils/rangerConfig.js +1 -1
  63. package/build/commands/utils/rangerRoot.js +1 -1
  64. package/build/commands/utils/resolveProfileContext.js +1 -0
  65. package/build/commands/utils/resolveProfileUrl.js +1 -0
  66. package/build/commands/utils/retry.js +1 -1
  67. package/build/commands/utils/sessionCache.js +1 -1
  68. package/build/commands/utils/settings.js +1 -1
  69. package/build/commands/utils/skillContent.js +1 -1
  70. package/build/commands/utils/skills.js +1 -1
  71. package/build/commands/utils/stitchWebmFiles.js +1 -1
  72. package/build/commands/utils/telemetry.js +1 -1
  73. package/build/commands/utils/tokenRefresh.js +1 -1
  74. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  75. package/build/commands/utils/userApi.js +1 -1
  76. package/build/commands/utils/version.js +1 -1
  77. package/build/commands/verifyFeature.js +1 -1
  78. package/build/commands/verifyFeatureCli.js +1 -1
  79. package/build/skills/ranger/SKILL.md +36 -6
  80. package/build/skills/ranger/create.md +19 -0
  81. package/build/skills/ranger/verify.md +46 -7
  82. package/package.json +3 -2
@@ -1 +1 @@
1
- const _0x3cd49f=_0x400e;(function(_0x3cea95,_0x2be97b){const _0x3a0191=_0x400e,_0x55b870=_0x3cea95();while(!![]){try{const _0xd090c3=parseInt(_0x3a0191(0xd3))/0x1+-parseInt(_0x3a0191(0xd6))/0x2+-parseInt(_0x3a0191(0xac))/0x3*(parseInt(_0x3a0191(0xa2))/0x4)+-parseInt(_0x3a0191(0x99))/0x5+-parseInt(_0x3a0191(0x9f))/0x6+-parseInt(_0x3a0191(0xa4))/0x7*(-parseInt(_0x3a0191(0x9b))/0x8)+-parseInt(_0x3a0191(0xa3))/0x9*(-parseInt(_0x3a0191(0xb1))/0xa);if(_0xd090c3===_0x2be97b)break;else _0x55b870['push'](_0x55b870['shift']());}catch(_0xc0591b){_0x55b870['push'](_0x55b870['shift']());}}}(_0xaf33,0x96bcd));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(_0x45df96,_0x22cd03){const _0x50f036=_0x400e,_0x389d85={'IiOFz':function(_0x2143a2,_0x4d731f){return _0x2143a2<=_0x4d731f;},'TigEo':function(_0x2430c1,_0xecfe84){return _0x2430c1>_0xecfe84;},'AFjjm':function(_0x3b9404,_0x120a43){return _0x3b9404&_0x120a43;},'cSErS':function(_0x353ac9,_0x5d9237){return _0x353ac9+_0x5d9237;},'VLMQJ':function(_0x3ff1c2,_0x1fa0db){return _0x3ff1c2+_0x1fa0db;}};if(_0x22cd03>=_0x45df96[_0x50f036(0x9d)])return[0x0,0x0];const _0x459aa7=_0x45df96[_0x22cd03];let _0x3d7d27=0x1,_0x16298f=0x80;while(_0x389d85[_0x50f036(0xaa)](_0x3d7d27,0x8)&&!(_0x459aa7&_0x16298f)){_0x3d7d27++,_0x16298f>>=0x1;}if(_0x389d85['TigEo'](_0x22cd03+_0x3d7d27,_0x45df96['length']))return[0x0,0x0];let _0x191fcb=_0x389d85['AFjjm'](_0x459aa7,_0x16298f-0x1);for(let _0x244ef8=0x1;_0x244ef8<_0x3d7d27;_0x244ef8++){_0x191fcb=_0x389d85[_0x50f036(0xba)](_0x191fcb*0x100,_0x45df96[_0x389d85[_0x50f036(0xd9)](_0x22cd03,_0x244ef8)]);}return[_0x191fcb,_0x3d7d27];}function readId(_0x182aa6,_0x75d225){const _0x19d5fa=_0x400e,_0xcc4b72={'FYdSL':function(_0x760576,_0x2836b7){return _0x760576>=_0x2836b7;},'dRHND':function(_0x3e2dfb,_0x1cc6ee){return _0x3e2dfb>_0x1cc6ee;},'ZVAtn':function(_0x1dd619,_0x5ba618){return _0x1dd619<_0x5ba618;},'biHYp':function(_0x40f05e,_0x479242){return _0x40f05e+_0x479242;},'LQoBP':function(_0x525202,_0x28e57e){return _0x525202*_0x28e57e;}};if(_0xcc4b72['FYdSL'](_0x75d225,_0x182aa6[_0x19d5fa(0x9d)]))return[0x0,0x0];const _0x3d55e0=_0x182aa6[_0x75d225];let _0x2442da;if(_0xcc4b72[_0x19d5fa(0xb8)](_0x3d55e0,0x80))_0x2442da=0x1;else{if(_0x3d55e0>=0x40)_0x2442da=0x2;else{if(_0x3d55e0>=0x20)_0x2442da=0x3;else{if(_0x3d55e0>=0x10)_0x2442da=0x4;else return[_0x3d55e0,0x1];}}}if(_0xcc4b72[_0x19d5fa(0xb0)](_0x75d225+_0x2442da,_0x182aa6['length']))return[0x0,0x0];let _0x9c0611=0x0;for(let _0x32a89d=0x0;_0xcc4b72[_0x19d5fa(0xad)](_0x32a89d,_0x2442da);_0x32a89d++){_0x9c0611=_0xcc4b72['biHYp'](_0xcc4b72['LQoBP'](_0x9c0611,0x100),_0x182aa6[_0x75d225+_0x32a89d]);}return[_0x9c0611,_0x2442da];}function _0xaf33(){const _0x54115e=['9ONSOLi','41377UfTALq','pow','rHOkp','dataOffset','UxpHE','VUnvS','IiOFz','Could\x20not\x20compute\x20duration','5961DOOSlE','ZVAtn','gQYUc','nueBW','dRHND','8365970nBVIqq','zTnbu','log','cyXHZ','eOUzY','PlVBm','error','FYdSL','dataSize','cSErS','UbnOz','bPPNT','ACyWS','Fixed:\x20','fixWebmDuration.js','from','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','tFQtz','upSzM','mZcaj','Could\x20not\x20find\x20Info\x20element','nSEeC','RweBy','qPgeN','KmUMP','heUFm','sizeLen','RzINh','jhPaX','argv','iIoPR','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','KlwZC','slice','1178622DRXXud','wxyUy','PgcXe','1762842bPlQZX','gQrXi','ytHTy','VLMQJ','QLcRQ','offset','concat','endsWith','XpiVn','jklRO','1619755OaDBWc','alloc','1544eVRRGT','MIHvi','length','yoXsi','1633146oqQHGm','VDbTN','lNIHN','2136JnAOGG'];_0xaf33=function(){return _0x54115e;};return _0xaf33();}function readUint(_0x423336,_0x100328,_0x22bf2f){const _0x285806=_0x400e,_0x276b6c={'NVegk':function(_0x168ee7,_0x417975){return _0x168ee7+_0x417975;},'QLcRQ':function(_0x118d20,_0x421d2d){return _0x118d20*_0x421d2d;}};let _0x184246=0x0;for(let _0x159419=0x0;_0x159419<_0x22bf2f;_0x159419++){_0x184246=_0x276b6c['NVegk'](_0x276b6c[_0x285806(0xda)](_0x184246,0x100),_0x423336[_0x100328+_0x159419]);}return _0x184246;}function isUnknownSize(_0x519553,_0x477810){const _0x55b57a={'VvXPd':function(_0x3e2284,_0x3bf141){return _0x3e2284===_0x3bf141;}};return _0x55b57a['VvXPd'](_0x519553,Math['pow'](0x2,0x7*_0x477810)-0x1);}function _0x400e(_0x2b72dc,_0x1f098b){_0x2b72dc=_0x2b72dc-0x98;const _0xaf33a7=_0xaf33();let _0x400ec0=_0xaf33a7[_0x2b72dc];return _0x400ec0;}function writeId(_0x16d456){const _0x5b351a=_0x400e,_0x96bc79={'tWplY':function(_0x4e95f7,_0x17051b){return _0x4e95f7<=_0x17051b;},'PwCix':function(_0x5b99db,_0x1bb63d){return _0x5b99db<=_0x1bb63d;},'RweBy':function(_0x260176,_0x120e57){return _0x260176&_0x120e57;},'eOUzY':function(_0x32c5f1,_0x40d2ee){return _0x32c5f1<=_0x40d2ee;},'fdhHU':function(_0x5c644a,_0x5e81bd){return _0x5c644a&_0x5e81bd;},'nInzE':function(_0x4da8e7,_0x4ce0b7){return _0x4da8e7>>_0x4ce0b7;},'nueBW':function(_0x1d80ef,_0x16617f){return _0x1d80ef&_0x16617f;},'PgcXe':function(_0x1ed5f7,_0x532d79){return _0x1ed5f7>>_0x532d79;}};if(_0x96bc79['tWplY'](_0x16d456,0xff))return Buffer['from']([_0x16d456]);if(_0x96bc79['PwCix'](_0x16d456,0xffff))return Buffer[_0x5b351a(0xc0)]([_0x16d456>>0x8&0xff,_0x96bc79[_0x5b351a(0xc7)](_0x16d456,0xff)]);if(_0x96bc79[_0x5b351a(0xb5)](_0x16d456,0xffffff))return Buffer['from']([_0x96bc79['fdhHU'](_0x96bc79['nInzE'](_0x16d456,0x10),0xff),_0x16d456>>0x8&0xff,_0x16d456&0xff]);return Buffer['from']([_0x96bc79[_0x5b351a(0xaf)](_0x96bc79[_0x5b351a(0xd5)](_0x16d456,0x18),0xff),_0x16d456>>0x10&0xff,_0x16d456>>0x8&0xff,_0x96bc79['RweBy'](_0x16d456,0xff)]);}function writeVint(_0x2c9ac3,_0xb85252){const _0xbc06f0=_0x400e,_0x4023cd={'wigap':function(_0x4e05fe,_0x582bad){return _0x4e05fe||_0x582bad;},'zzlbA':function(_0x49101c,_0x426714){return _0x49101c<_0x426714;},'upSzM':function(_0x1475de,_0x334d09){return _0x1475de-_0x334d09;},'VDbTN':function(_0x12605a,_0x16b714){return _0x12605a<<_0x16b714;}};let _0x56e238=_0x4023cd['wigap'](_0xb85252,0x1);while(_0x4023cd['zzlbA'](Math[_0xbc06f0(0xa5)](0x2,0x7*_0x56e238)-0x2,_0x2c9ac3))_0x56e238++;const _0x206724=Buffer['alloc'](_0x56e238);for(let _0x1c12bd=_0x4023cd[_0xbc06f0(0xc3)](_0x56e238,0x1);_0x1c12bd>=0x0;_0x1c12bd--){_0x206724[_0x1c12bd]=_0x2c9ac3&0xff,_0x2c9ac3=Math['floor'](_0x2c9ac3/0x100);}return _0x206724[0x0]|=_0x4023cd[_0xbc06f0(0xa0)](0x1,_0x4023cd['upSzM'](0x8,_0x56e238)),_0x206724;}function writeFloat64(_0x29bfa3){const _0xd0c110=_0x400e,_0x1a4cf1=Buffer[_0xd0c110(0x9a)](0x8);return _0x1a4cf1['writeDoubleBE'](_0x29bfa3,0x0),_0x1a4cf1;}function writeVoid(_0x5b775f){const _0x2fc85c=_0x400e,_0x311c58={'cyXHZ':function(_0x36dd49,_0x57e9ea){return _0x36dd49<=_0x57e9ea;},'KmUMP':function(_0x260170,_0x127848){return _0x260170>=_0x127848;},'ytHTy':function(_0xb65b71,_0x3b561a){return _0xb65b71-_0x3b561a;},'JHsFl':function(_0x3947a0,_0x26b947){return _0x3947a0*_0x26b947;},'gCqcM':function(_0xf630d5,_0x904882,_0x5ee240){return _0xf630d5(_0x904882,_0x5ee240);}};for(let _0x165e99=0x1;_0x311c58[_0x2fc85c(0xb4)](_0x165e99,0x8);_0x165e99++){const _0x325144=_0x5b775f-0x1-_0x165e99;if(_0x311c58[_0x2fc85c(0xc9)](_0x325144,0x0)&&_0x311c58[_0x2fc85c(0xb4)](_0x325144,_0x311c58[_0x2fc85c(0xd8)](Math[_0x2fc85c(0xa5)](0x2,_0x311c58['JHsFl'](0x7,_0x165e99)),0x2)))return Buffer['concat']([Buffer['from']([ID_VOID]),_0x311c58['gCqcM'](writeVint,_0x325144,_0x165e99),Buffer['alloc'](_0x325144)]);}return Buffer[_0x2fc85c(0x9a)](0x0);}function findElement(_0x2f2c34,_0xb8fe5c,_0x2f4fce,_0x128874){const _0x186a42=_0x400e,_0x3921e6={'iIoPR':function(_0xc16c21,_0x257a1b,_0x1bc75d){return _0xc16c21(_0x257a1b,_0x1bc75d);},'jklRO':function(_0x5f3298,_0x4480fa){return _0x5f3298===_0x4480fa;},'KlwZC':function(_0x33d309,_0x397daf){return _0x33d309+_0x397daf;},'zTnbu':function(_0x5a2bea,_0x21f343){return _0x5a2bea+_0x21f343;}};let _0xecc5d2=_0xb8fe5c;while(_0xecc5d2<_0x2f4fce){const [_0x5bb083,_0x3bd7d1]=_0x3921e6[_0x186a42(0xcf)](readId,_0x2f2c34,_0xecc5d2),[_0x43a6b4,_0x4e16c4]=readVint(_0x2f2c34,_0xecc5d2+_0x3bd7d1);if(_0x3921e6[_0x186a42(0x98)](_0x5bb083,_0x128874))return{'offset':_0xecc5d2,'idLen':_0x3bd7d1,'sizeLen':_0x4e16c4,'dataSize':_0x43a6b4,'dataOffset':_0x3921e6[_0x186a42(0xd1)](_0xecc5d2,_0x3bd7d1)+_0x4e16c4};if(isUnknownSize(_0x43a6b4,_0x4e16c4))break;_0xecc5d2+=_0x3921e6[_0x186a42(0xb2)](_0x3bd7d1,_0x4e16c4)+_0x43a6b4;}return null;}function computeDurationMs(_0x1cb854,_0x3e7815){const _0x5a49f0=_0x400e,_0x1b5da0={'fPyxA':function(_0x27c9be,_0x2205b0){return _0x27c9be===_0x2205b0;},'MIHvi':function(_0x3b719b,_0x4679c1,_0x53716f){return _0x3b719b(_0x4679c1,_0x53716f);},'UbnOz':function(_0x3d9d3e,_0x54974b){return _0x3d9d3e+_0x54974b;},'wxyUy':function(_0x504307,_0x447fc0){return _0x504307+_0x447fc0;},'UxpHE':function(_0x4c0d01,_0xffd327){return _0x4c0d01<_0xffd327;},'jhPaX':function(_0x4633d2,_0x321d9f,_0x544895){return _0x4633d2(_0x321d9f,_0x544895);},'iBPFW':function(_0xb1d5eb,_0x3ff92c){return _0xb1d5eb+_0x3ff92c;},'VTHLx':function(_0x17ada7,_0x587130){return _0x17ada7<_0x587130;},'GMART':function(_0x36da0c,_0x1806a7,_0x221300){return _0x36da0c(_0x1806a7,_0x221300);},'XpiVn':function(_0x50d3a3,_0x46d8b0,_0xfe3b0e,_0x1b3c1c){return _0x50d3a3(_0x46d8b0,_0xfe3b0e,_0x1b3c1c);},'heUFm':function(_0x2867fe,_0x572a38){return _0x2867fe+_0x572a38;},'lPIJK':function(_0xaa7b8a,_0x1cf1f4){return _0xaa7b8a>_0x1cf1f4;}};let _0x5458b1=0x0;const _0x421ed5=Buffer[_0x5a49f0(0xc0)]([0x1f,0x43,0xb6,0x75]);let _0x27bf51=_0x1cb854['indexOf'](_0x421ed5);if(_0x1b5da0['fPyxA'](_0x27bf51,-0x1))return 0x0;while(_0x27bf51<_0x1cb854['length']){const [_0xca3ed6,_0x3d77f7]=readId(_0x1cb854,_0x27bf51);if(_0xca3ed6!==ID_CLUSTER)break;const [_0x571046,_0x53981d]=_0x1b5da0['MIHvi'](readVint,_0x1cb854,_0x1b5da0['UbnOz'](_0x27bf51,_0x3d77f7)),_0x10b26f=_0x1b5da0[_0x5a49f0(0xbb)](_0x1b5da0[_0x5a49f0(0xd4)](_0x27bf51,_0x3d77f7),_0x53981d),_0x52a3e6=isUnknownSize(_0x571046,_0x53981d);let _0x402f0b;if(_0x52a3e6){let _0xbeb822=_0x10b26f;while(_0x1b5da0[_0x5a49f0(0xa8)](_0xbeb822,_0x1cb854[_0x5a49f0(0x9d)]-0x4)){const [_0x1f3a20,_0x2f853d]=_0x1b5da0['jhPaX'](readId,_0x1cb854,_0xbeb822);if(_0x1b5da0['fPyxA'](_0x1f3a20,ID_CLUSTER)){_0x402f0b=_0xbeb822;break;}const [_0x1e8a00,_0x5e1c9e]=readVint(_0x1cb854,_0x1b5da0[_0x5a49f0(0xd4)](_0xbeb822,_0x2f853d));if(_0x1b5da0['jhPaX'](isUnknownSize,_0x1e8a00,_0x5e1c9e)){_0x402f0b=_0x1cb854[_0x5a49f0(0x9d)];break;}_0xbeb822+=_0x1b5da0['iBPFW'](_0x2f853d,_0x5e1c9e)+_0x1e8a00;}_0x402f0b??=_0x1cb854[_0x5a49f0(0x9d)];}else _0x402f0b=_0x1b5da0['iBPFW'](_0x10b26f,_0x571046);let _0x498c1b=0x0,_0x26e463=_0x10b26f;while(_0x1b5da0['VTHLx'](_0x26e463,_0x402f0b)){const [_0x29450a,_0x521577]=readId(_0x1cb854,_0x26e463),[_0x1c2765,_0x54ef56]=_0x1b5da0['GMART'](readVint,_0x1cb854,_0x26e463+_0x521577);if(_0x29450a===ID_TIMESTAMP)_0x498c1b=_0x1b5da0[_0x5a49f0(0xde)](readUint,_0x1cb854,_0x26e463+_0x521577+_0x54ef56,_0x1c2765);else{if(_0x29450a===ID_SIMPLE_BLOCK&&_0x1c2765>=0x4){const _0x9e6e08=_0x1b5da0[_0x5a49f0(0xca)](_0x1b5da0['heUFm'](_0x26e463,_0x521577),_0x54ef56),[,_0x18bef8]=_0x1b5da0[_0x5a49f0(0x9c)](readVint,_0x1cb854,_0x9e6e08),_0x6587d7=_0x1cb854['readInt16BE'](_0x9e6e08+_0x18bef8),_0x1cab03=(_0x498c1b+_0x6587d7)*_0x3e7815/0xf4240;_0x1b5da0['lPIJK'](_0x1cab03,_0x5458b1)&&(_0x5458b1=_0x1cab03);}else{if(_0x29450a===ID_CLUSTER)break;}}if(_0x1b5da0[_0x5a49f0(0xcd)](isUnknownSize,_0x1c2765,_0x54ef56))break;_0x26e463+=_0x1b5da0[_0x5a49f0(0xd4)](_0x1b5da0['UbnOz'](_0x521577,_0x54ef56),_0x1c2765);}_0x27bf51=_0x402f0b;}return _0x5458b1;}export function fixWebmDuration(_0x311667,_0x251a53){const _0x12d61d=_0x400e,_0x20b4cf={'rHOkp':function(_0x5612e4,_0x4acc36,_0x560ef5){return _0x5612e4(_0x4acc36,_0x560ef5);},'nSEeC':function(_0x1b54dd,_0x4fdbbf){return _0x1b54dd+_0x4fdbbf;},'RzINh':function(_0x333331,_0x55b484,_0x2e5233){return _0x333331(_0x55b484,_0x2e5233);},'PlVBm':function(_0x4b5b93,_0xab6f8b){return _0x4b5b93!==_0xab6f8b;},'tFQtz':function(_0x268eff,_0x28f9a8,_0x5eb10b){return _0x268eff(_0x28f9a8,_0x5eb10b);},'UWlCy':function(_0x4a694c,_0x2c259d){return _0x4a694c+_0x2c259d;},'mZcaj':function(_0x5901df,_0x39c4eb,_0x4e9ea0){return _0x5901df(_0x39c4eb,_0x4e9ea0);},'gQYUc':function(_0x1fe1aa,_0x5612f){return _0x1fe1aa+_0x5612f;},'CnsZQ':function(_0xd15fb,_0x25c90d,_0x333944,_0x3d70a5,_0x8aa6b8){return _0xd15fb(_0x25c90d,_0x333944,_0x3d70a5,_0x8aa6b8);},'eKhCj':function(_0x15a126,_0x1505dd){return _0x15a126+_0x1505dd;},'bPPNT':function(_0x573951,_0x3adbf0){return _0x573951+_0x3adbf0;},'dXMff':function(_0x467828,_0x4e7899){return _0x467828<=_0x4e7899;},'mgAsr':function(_0x2f6c78,_0x562016){return _0x2f6c78/_0x562016;},'lNIHN':function(_0xfb3aea,_0x4e54c7){return _0xfb3aea(_0x4e54c7);},'VUnvS':function(_0x470a2a,_0x5d4f5c){return _0x470a2a<_0x5d4f5c;},'yoXsi':function(_0x28f16f,_0x2d3940){return _0x28f16f+_0x2d3940;},'gQrXi':function(_0x44c15f,_0x5b1647){return _0x44c15f-_0x5b1647;},'vwUml':function(_0x1620ee,_0x5c13d4,_0x2fc930,_0x59ee98,_0x1ab3ec,_0x3f6810,_0x20e422){return _0x1620ee(_0x5c13d4,_0x2fc930,_0x59ee98,_0x1ab3ec,_0x3f6810,_0x20e422);},'MQvXj':function(_0xf0ce38,_0x576dc9){return _0xf0ce38(_0x576dc9);},'ACyWS':function(_0x5dca38,_0x1fe48f){return _0x5dca38+_0x1fe48f;},'TYCsK':function(_0x2e78a4,_0x18fde8,_0x2255fd,_0x3ceaf5,_0x219169,_0x33bc9a,_0x20354b){return _0x2e78a4(_0x18fde8,_0x2255fd,_0x3ceaf5,_0x219169,_0x33bc9a,_0x20354b);}},_0x19050b=readFileSync(_0x311667);let _0x6ab03f=0x0;const [_0x200b62,_0x1ff2a4]=_0x20b4cf[_0x12d61d(0xa6)](readId,_0x19050b,_0x6ab03f),[_0x5c3a62,_0x103cec]=readVint(_0x19050b,_0x20b4cf[_0x12d61d(0xc6)](_0x6ab03f,_0x1ff2a4));_0x6ab03f+=_0x1ff2a4+_0x103cec+_0x5c3a62;const [_0x24f1fe,_0x1f009f]=_0x20b4cf[_0x12d61d(0xcc)](readId,_0x19050b,_0x6ab03f);if(_0x20b4cf[_0x12d61d(0xb6)](_0x24f1fe,ID_SEGMENT))return console[_0x12d61d(0xb7)](_0x12d61d(0xc1)),![];const [,_0x50ebf0]=_0x20b4cf[_0x12d61d(0xc2)](readVint,_0x19050b,_0x6ab03f+_0x1f009f),_0x2be9b4=_0x20b4cf['UWlCy'](_0x6ab03f,_0x1f009f)+_0x50ebf0;let _0x4a3e0b=_0x2be9b4;const _0x4c72d7=Math['min'](_0x19050b[_0x12d61d(0x9d)],_0x2be9b4+0x2710);let _0x34cf84=null,_0x2b69c8=null;while(_0x4a3e0b<_0x4c72d7){const [_0x583a74,_0x587650]=_0x20b4cf['RzINh'](readId,_0x19050b,_0x4a3e0b),[_0x4f10e3,_0x4b0112]=_0x20b4cf[_0x12d61d(0xc4)](readVint,_0x19050b,_0x4a3e0b+_0x587650);_0x583a74===ID_VOID&&!_0x34cf84&&(_0x34cf84={'offset':_0x4a3e0b,'idLen':_0x587650,'sizeLen':_0x4b0112,'dataSize':_0x4f10e3,'dataOffset':_0x20b4cf['nSEeC'](_0x20b4cf[_0x12d61d(0xc6)](_0x4a3e0b,_0x587650),_0x4b0112)});if(_0x583a74===ID_INFO){_0x2b69c8={'offset':_0x4a3e0b,'idLen':_0x587650,'sizeLen':_0x4b0112,'dataSize':_0x4f10e3,'dataOffset':_0x4a3e0b+_0x587650+_0x4b0112};break;}if(_0x583a74===ID_CLUSTER)break;if(isUnknownSize(_0x4f10e3,_0x4b0112))break;_0x4a3e0b+=_0x20b4cf[_0x12d61d(0xae)](_0x587650,_0x4b0112)+_0x4f10e3;}if(!_0x2b69c8)return console[_0x12d61d(0xb7)](_0x12d61d(0xc5)),![];const _0xcba921=_0x20b4cf['CnsZQ'](findElement,_0x19050b,_0x2b69c8['dataOffset'],_0x20b4cf['eKhCj'](_0x2b69c8[_0x12d61d(0xa7)],_0x2b69c8['dataSize']),ID_DURATION);if(_0xcba921)return![];const _0x5dd270=findElement(_0x19050b,_0x2b69c8['dataOffset'],_0x20b4cf[_0x12d61d(0xbc)](_0x2b69c8[_0x12d61d(0xa7)],_0x2b69c8['dataSize']),ID_TIMESTAMP_SCALE);let _0x44ebba=0xf4240;_0x5dd270&&(_0x44ebba=readUint(_0x19050b,_0x5dd270['dataOffset'],_0x5dd270[_0x12d61d(0xb9)]));const _0x50c741=computeDurationMs(_0x19050b,_0x44ebba);if(_0x20b4cf['dXMff'](_0x50c741,0x0))return console['error'](_0x12d61d(0xab)),![];const _0x2cfeeb=_0x20b4cf['mgAsr'](_0x50c741*0xf4240,_0x44ebba),_0x554b12=Buffer[_0x12d61d(0xdc)]([writeId(ID_DURATION),writeVint(0x8),_0x20b4cf[_0x12d61d(0xa1)](writeFloat64,_0x2cfeeb)]),_0x1594b9=_0x554b12[_0x12d61d(0x9d)];if(!_0x34cf84||_0x20b4cf['VUnvS'](_0x34cf84[_0x12d61d(0xdb)],_0x2b69c8['offset'])){if(_0x34cf84){const _0x12347d=_0x20b4cf[_0x12d61d(0x9e)](_0x34cf84['idLen'],_0x34cf84['sizeLen'])+_0x34cf84[_0x12d61d(0xb9)],_0x257792=_0x20b4cf[_0x12d61d(0xd7)](_0x12347d,_0x1594b9);if(_0x20b4cf[_0x12d61d(0xa9)](_0x257792,0x2))return _0x20b4cf['vwUml'](rewriteFile,_0x19050b,_0x2b69c8,_0x554b12,_0x44ebba,_0x50c741,_0x251a53);const _0x30ea15=_0x2b69c8[_0x12d61d(0xb9)]+_0x1594b9,_0x1ef7b0=Buffer[_0x12d61d(0xdc)]([_0x20b4cf['MQvXj'](writeId,ID_INFO),writeVint(_0x30ea15,_0x2b69c8[_0x12d61d(0xcb)])]),_0x44042a=_0x19050b['slice'](_0x2b69c8[_0x12d61d(0xa7)],_0x20b4cf[_0x12d61d(0xbd)](_0x2b69c8[_0x12d61d(0xa7)],_0x2b69c8['dataSize'])),_0x3754c0=writeVoid(_0x257792),_0xe7e8a4=_0x19050b['slice'](0x0,_0x34cf84[_0x12d61d(0xdb)]),_0x7732e2=_0x19050b['slice'](_0x2b69c8['dataOffset']+_0x2b69c8['dataSize']);return writeFileSync(_0x251a53,Buffer['concat']([_0xe7e8a4,_0x3754c0,_0x1ef7b0,_0x44042a,_0x554b12,_0x7732e2])),!![];}}return _0x20b4cf['TYCsK'](rewriteFile,_0x19050b,_0x2b69c8,_0x554b12,_0x44ebba,_0x50c741,_0x251a53);}function rewriteFile(_0x19bfd9,_0x589742,_0x59ffa4,_0x52c87,_0x103840,_0x1c79c6){const _0x2a3169=_0x400e,_0x19de55={'qPgeN':function(_0x54845e,_0x268a6b){return _0x54845e+_0x268a6b;},'qEjdU':function(_0x4380fc,_0xca8e5){return _0x4380fc(_0xca8e5);}},_0x4a8924=_0x19de55[_0x2a3169(0xc8)](_0x589742[_0x2a3169(0xb9)],_0x59ffa4['length']),_0x2cf05c=Buffer['concat']([writeId(ID_INFO),_0x19de55['qEjdU'](writeVint,_0x4a8924)]),_0x428974=_0x19de55[_0x2a3169(0xc8)](_0x589742['idLen'],_0x589742[_0x2a3169(0xcb)]),_0x5ddee5=_0x19bfd9['slice'](0x0,_0x589742[_0x2a3169(0xdb)]),_0x37185d=_0x19bfd9[_0x2a3169(0xd2)](_0x589742['dataOffset'],_0x589742[_0x2a3169(0xa7)]+_0x589742[_0x2a3169(0xb9)]),_0x10d6ba=_0x19bfd9[_0x2a3169(0xd2)](_0x589742[_0x2a3169(0xdb)]+_0x428974+_0x589742[_0x2a3169(0xb9)]);return writeFileSync(_0x1c79c6,Buffer['concat']([_0x5ddee5,_0x2cf05c,_0x37185d,_0x59ffa4,_0x10d6ba])),!![];}if(process[_0x3cd49f(0xce)][0x1]?.[_0x3cd49f(0xdd)]('fixWebmDuration.ts')||process['argv'][0x1]?.['endsWith'](_0x3cd49f(0xbf))){const input=process[_0x3cd49f(0xce)][0x2],output=process['argv'][0x3];(!input||!output)&&(console[_0x3cd49f(0xb7)](_0x3cd49f(0xd0)),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x3cd49f(0xb3)](_0x3cd49f(0xbe)+output):console[_0x3cd49f(0xb3)]('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
1
+ const _0x2f758d=_0x3349;(function(_0x53b0fc,_0x2fc1e5){const _0x2f051c=_0x3349,_0x306af3=_0x53b0fc();while(!![]){try{const _0x4697c0=-parseInt(_0x2f051c(0x18c))/0x1+-parseInt(_0x2f051c(0x154))/0x2*(parseInt(_0x2f051c(0x16e))/0x3)+-parseInt(_0x2f051c(0x16a))/0x4+-parseInt(_0x2f051c(0x15b))/0x5+-parseInt(_0x2f051c(0x153))/0x6+-parseInt(_0x2f051c(0x181))/0x7+parseInt(_0x2f051c(0x151))/0x8;if(_0x4697c0===_0x2fc1e5)break;else _0x306af3['push'](_0x306af3['shift']());}catch(_0x385682){_0x306af3['push'](_0x306af3['shift']());}}}(_0x3b20,0x482f4));import{readFileSync,writeFileSync}from'fs';function _0x3349(_0x35002f,_0x3208ee){_0x35002f=_0x35002f-0x149;const _0x3b200e=_0x3b20();let _0x334998=_0x3b200e[_0x35002f];return _0x334998;}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(_0x50cf81,_0x4cfdf1){const _0xf84747=_0x3349,_0x107d1f={'HNPJU':function(_0x19b950,_0x461ece){return _0x19b950<=_0x461ece;},'SrCoP':function(_0x295814,_0x4e16b5){return _0x295814&_0x4e16b5;},'tHjzd':function(_0x5b7e4f,_0x4fe05d){return _0x5b7e4f-_0x4fe05d;},'pSxue':function(_0x4a7fbf,_0x470210){return _0x4a7fbf<_0x470210;}};if(_0x4cfdf1>=_0x50cf81['length'])return[0x0,0x0];const _0x5324fa=_0x50cf81[_0x4cfdf1];let _0x190141=0x1,_0x4ac104=0x80;while(_0x107d1f['HNPJU'](_0x190141,0x8)&&!_0x107d1f[_0xf84747(0x185)](_0x5324fa,_0x4ac104)){_0x190141++,_0x4ac104>>=0x1;}if(_0x4cfdf1+_0x190141>_0x50cf81['length'])return[0x0,0x0];let _0x1eb26b=_0x5324fa&_0x107d1f[_0xf84747(0x187)](_0x4ac104,0x1);for(let _0xcb7ae3=0x1;_0x107d1f['pSxue'](_0xcb7ae3,_0x190141);_0xcb7ae3++){_0x1eb26b=_0x1eb26b*0x100+_0x50cf81[_0x4cfdf1+_0xcb7ae3];}return[_0x1eb26b,_0x190141];}function readId(_0x1c7cb8,_0x25a1d8){const _0x31c85d=_0x3349,_0x5bdc48={'QiTLy':function(_0x4b82d1,_0x30aaf4){return _0x4b82d1>=_0x30aaf4;},'yguCJ':function(_0x23a953,_0x5159cc){return _0x23a953>=_0x5159cc;},'oXXlW':function(_0x5d8a5e,_0x303bd7){return _0x5d8a5e>_0x303bd7;},'CCFJH':function(_0x45a387,_0x5c990e){return _0x45a387+_0x5c990e;},'SPTHZ':function(_0x2b654e,_0x722152){return _0x2b654e<_0x722152;},'Bubgz':function(_0x407a71,_0x300bf6){return _0x407a71+_0x300bf6;}};if(_0x5bdc48[_0x31c85d(0x17b)](_0x25a1d8,_0x1c7cb8[_0x31c85d(0x163)]))return[0x0,0x0];const _0x11d3c7=_0x1c7cb8[_0x25a1d8];let _0x526971;if(_0x11d3c7>=0x80)_0x526971=0x1;else{if(_0x5bdc48['QiTLy'](_0x11d3c7,0x40))_0x526971=0x2;else{if(_0x5bdc48[_0x31c85d(0x17b)](_0x11d3c7,0x20))_0x526971=0x3;else{if(_0x5bdc48[_0x31c85d(0x167)](_0x11d3c7,0x10))_0x526971=0x4;else return[_0x11d3c7,0x1];}}}if(_0x5bdc48['oXXlW'](_0x5bdc48['CCFJH'](_0x25a1d8,_0x526971),_0x1c7cb8[_0x31c85d(0x163)]))return[0x0,0x0];let _0x3408ec=0x0;for(let _0x2a5a1e=0x0;_0x5bdc48[_0x31c85d(0x165)](_0x2a5a1e,_0x526971);_0x2a5a1e++){_0x3408ec=_0x5bdc48[_0x31c85d(0x17d)](_0x3408ec*0x100,_0x1c7cb8[_0x25a1d8+_0x2a5a1e]);}return[_0x3408ec,_0x526971];}function readUint(_0x5395e2,_0x3ef7a7,_0x318d16){const _0x4f0610=_0x3349,_0x557a83={'UpXcR':function(_0x458d7b,_0x55d745){return _0x458d7b+_0x55d745;},'uVKJL':function(_0x284be3,_0x25c46b){return _0x284be3*_0x25c46b;}};let _0x1341ea=0x0;for(let _0x1013b2=0x0;_0x1013b2<_0x318d16;_0x1013b2++){_0x1341ea=_0x557a83['UpXcR'](_0x557a83[_0x4f0610(0x162)](_0x1341ea,0x100),_0x5395e2[_0x3ef7a7+_0x1013b2]);}return _0x1341ea;}function isUnknownSize(_0x3d325e,_0xfdcb39){const _0x483d80=_0x3349,_0x13b0e9={'VUXdA':function(_0x1317aa,_0x3c26ca){return _0x1317aa*_0x3c26ca;}};return _0x3d325e===Math['pow'](0x2,_0x13b0e9[_0x483d80(0x179)](0x7,_0xfdcb39))-0x1;}function writeId(_0x4b98d9){const _0x3fcc6a=_0x3349,_0x27dc13={'YsiOO':function(_0x15e481,_0x57ee2e){return _0x15e481<=_0x57ee2e;},'WLQPI':function(_0x435e1f,_0x345b39){return _0x435e1f&_0x345b39;},'zUaqW':function(_0x572dc5,_0x58eb1c){return _0x572dc5>>_0x58eb1c;}};if(_0x27dc13['YsiOO'](_0x4b98d9,0xff))return Buffer['from']([_0x4b98d9]);if(_0x27dc13['YsiOO'](_0x4b98d9,0xffff))return Buffer[_0x3fcc6a(0x16d)]([_0x27dc13['WLQPI'](_0x4b98d9>>0x8,0xff),_0x27dc13['WLQPI'](_0x4b98d9,0xff)]);if(_0x4b98d9<=0xffffff)return Buffer['from']([_0x27dc13[_0x3fcc6a(0x18e)](_0x27dc13['zUaqW'](_0x4b98d9,0x10),0xff),_0x27dc13[_0x3fcc6a(0x152)](_0x4b98d9,0x8)&0xff,_0x4b98d9&0xff]);return Buffer[_0x3fcc6a(0x16d)]([_0x27dc13[_0x3fcc6a(0x18e)](_0x27dc13[_0x3fcc6a(0x152)](_0x4b98d9,0x18),0xff),_0x4b98d9>>0x10&0xff,_0x27dc13['WLQPI'](_0x4b98d9>>0x8,0xff),_0x4b98d9&0xff]);}function writeVint(_0x357add,_0x22c0e2){const _0x22cf41=_0x3349,_0x12ca81={'QRHNN':function(_0x565952,_0x1d7f77){return _0x565952<_0x1d7f77;},'DPyAR':function(_0x445a51,_0x1eb21c){return _0x445a51-_0x1eb21c;},'nWWbG':function(_0x2b08f,_0x5c028e){return _0x2b08f*_0x5c028e;},'knwiT':function(_0x193322,_0xa6736e){return _0x193322&_0xa6736e;},'vuMml':function(_0x228564,_0x253c71){return _0x228564/_0x253c71;},'PYLIV':function(_0x352508,_0x55946a){return _0x352508<<_0x55946a;}};let _0x34fafa=_0x22c0e2||0x1;while(_0x12ca81[_0x22cf41(0x15e)](_0x12ca81[_0x22cf41(0x149)](Math[_0x22cf41(0x16b)](0x2,_0x12ca81[_0x22cf41(0x166)](0x7,_0x34fafa)),0x2),_0x357add))_0x34fafa++;const _0x45a61d=Buffer[_0x22cf41(0x186)](_0x34fafa);for(let _0x257444=_0x34fafa-0x1;_0x257444>=0x0;_0x257444--){_0x45a61d[_0x257444]=_0x12ca81[_0x22cf41(0x14b)](_0x357add,0xff),_0x357add=Math[_0x22cf41(0x169)](_0x12ca81[_0x22cf41(0x158)](_0x357add,0x100));}return _0x45a61d[0x0]|=_0x12ca81[_0x22cf41(0x184)](0x1,0x8-_0x34fafa),_0x45a61d;}function writeFloat64(_0xc09e18){const _0x40b8ba=_0x3349,_0x25cd08=Buffer[_0x40b8ba(0x186)](0x8);return _0x25cd08[_0x40b8ba(0x18a)](_0xc09e18,0x0),_0x25cd08;}function _0x3b20(){const _0x31ceca=['DqHzC','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','vuMml','Xkbwd','IaGmf','2040295rUIuXP','idLen','VrxGO','QRHNN','MoeeH','min','dataOffset','uVKJL','length','offset','SPTHZ','nWWbG','yguCJ','LvRvp','floor','31784fIkTgF','pow','ZNSob','from','6NfrmHF','rEJnf','tjfDT','xNrDS','GKPHb','WwVGV','mQcwq','nMvOB','error','concat','dsJFi','VUXdA','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','QiTLy','mPNtX','Bubgz','argv','FyijY','EEEwH','1460949qYPLxJ','bXdGg','Kznre','PYLIV','SrCoP','alloc','tHjzd','sizeLen','indexOf','writeDoubleBE','BvXsO','527925ZZtfRc','EHdaT','WLQPI','dataSize','DPyAR','rPcru','knwiT','eIahb','VFwRD','qvqJM','log','slice','16275768DdYsTs','zUaqW','989520YCNina','421246QfcLAD','wEAwc'];_0x3b20=function(){return _0x31ceca;};return _0x3b20();}function writeVoid(_0x41b422){const _0x15b9b8=_0x3349,_0x5a93eb={'dsJFi':function(_0x3a8e58,_0x2dae56){return _0x3a8e58-_0x2dae56;},'XksSx':function(_0x48b0b3,_0x260211){return _0x48b0b3*_0x260211;},'MoeeH':function(_0x443bb4,_0x54e30d,_0x60234b){return _0x443bb4(_0x54e30d,_0x60234b);}};for(let _0x554265=0x1;_0x554265<=0x8;_0x554265++){const _0x4f3230=_0x5a93eb['dsJFi'](_0x5a93eb[_0x15b9b8(0x178)](_0x41b422,0x1),_0x554265);if(_0x4f3230>=0x0&&_0x4f3230<=_0x5a93eb['dsJFi'](Math['pow'](0x2,_0x5a93eb['XksSx'](0x7,_0x554265)),0x2))return Buffer['concat']([Buffer['from']([ID_VOID]),_0x5a93eb[_0x15b9b8(0x15f)](writeVint,_0x4f3230,_0x554265),Buffer['alloc'](_0x4f3230)]);}return Buffer['alloc'](0x0);}function findElement(_0x2d1d40,_0x10184f,_0x2c658a,_0x1695d2){const _0x12eeaf=_0x3349,_0x31ee39={'tgRSp':function(_0x3c34f1,_0xda4ec,_0x49ed4c){return _0x3c34f1(_0xda4ec,_0x49ed4c);},'fydDH':function(_0x538aa1,_0x2091ca){return _0x538aa1===_0x2091ca;},'oBeLM':function(_0x46d36d,_0x2062f9){return _0x46d36d+_0x2062f9;},'VrxGO':function(_0x1ea2c6,_0x1a849b){return _0x1ea2c6+_0x1a849b;}};let _0x1be7f8=_0x10184f;while(_0x1be7f8<_0x2c658a){const [_0x2566fc,_0x2edbc3]=readId(_0x2d1d40,_0x1be7f8),[_0x3637f8,_0xf0a680]=_0x31ee39['tgRSp'](readVint,_0x2d1d40,_0x1be7f8+_0x2edbc3);if(_0x31ee39['fydDH'](_0x2566fc,_0x1695d2))return{'offset':_0x1be7f8,'idLen':_0x2edbc3,'sizeLen':_0xf0a680,'dataSize':_0x3637f8,'dataOffset':_0x31ee39['oBeLM'](_0x1be7f8+_0x2edbc3,_0xf0a680)};if(isUnknownSize(_0x3637f8,_0xf0a680))break;_0x1be7f8+=_0x31ee39[_0x12eeaf(0x15d)](_0x2edbc3+_0xf0a680,_0x3637f8);}return null;}function computeDurationMs(_0x2bdfb4,_0x166b11){const _0x2d321b=_0x3349,_0x4e734c={'vWWNS':function(_0x3d4462,_0x451d8a){return _0x3d4462===_0x451d8a;},'rEJnf':function(_0x174c2d,_0x59bbea,_0x58c66c){return _0x174c2d(_0x59bbea,_0x58c66c);},'eIahb':function(_0x2bbd2d,_0x35a55b){return _0x2bbd2d!==_0x35a55b;},'JoPZi':function(_0x471b62,_0x451d34){return _0x471b62+_0x451d34;},'DqHzC':function(_0x1203f6,_0x291d55){return _0x1203f6+_0x291d55;},'aAAxt':function(_0x55548b,_0x319b27){return _0x55548b-_0x319b27;},'bXdGg':function(_0x5cb98c,_0x36d160){return _0x5cb98c===_0x36d160;},'xNrDS':function(_0x261c9a,_0x497405,_0x4c0bc3){return _0x261c9a(_0x497405,_0x4c0bc3);},'UDKoo':function(_0x54f0f6,_0x531665){return _0x54f0f6<_0x531665;},'ZNSob':function(_0x104b7e,_0x399604,_0x2f1aa3){return _0x104b7e(_0x399604,_0x2f1aa3);},'BvXsO':function(_0x3c7b22,_0x1fda9a,_0x54a447){return _0x3c7b22(_0x1fda9a,_0x54a447);},'IMAjh':function(_0xe6434f,_0x4e3391){return _0xe6434f+_0x4e3391;},'EEEwH':function(_0x20976d,_0x2cb66b,_0x522fc7,_0x24e097){return _0x20976d(_0x2cb66b,_0x522fc7,_0x24e097);},'LvRvp':function(_0xfa2a24,_0x252903){return _0xfa2a24+_0x252903;},'aWTjY':function(_0x2129d2,_0xfa1dda){return _0x2129d2===_0xfa1dda;},'MJvkN':function(_0x29812d,_0x3b19a7){return _0x29812d*_0x3b19a7;},'mQcwq':function(_0x4f861d,_0x1f3b7c){return _0x4f861d>_0x1f3b7c;}};let _0x41a1ae=0x0;const _0x3ab9da=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x716f1b=_0x2bdfb4[_0x2d321b(0x189)](_0x3ab9da);if(_0x4e734c['vWWNS'](_0x716f1b,-0x1))return 0x0;while(_0x716f1b<_0x2bdfb4[_0x2d321b(0x163)]){const [_0x472908,_0x3bc067]=_0x4e734c[_0x2d321b(0x16f)](readId,_0x2bdfb4,_0x716f1b);if(_0x4e734c[_0x2d321b(0x14c)](_0x472908,ID_CLUSTER))break;const [_0x7d7baa,_0x208558]=readVint(_0x2bdfb4,_0x4e734c['JoPZi'](_0x716f1b,_0x3bc067)),_0x38e396=_0x4e734c['DqHzC'](_0x716f1b+_0x3bc067,_0x208558),_0x51aa64=isUnknownSize(_0x7d7baa,_0x208558);let _0x35826b;if(_0x51aa64){let _0x161e67=_0x38e396;while(_0x161e67<_0x4e734c['aAAxt'](_0x2bdfb4[_0x2d321b(0x163)],0x4)){const [_0x1769c3,_0x14f09e]=readId(_0x2bdfb4,_0x161e67);if(_0x4e734c[_0x2d321b(0x182)](_0x1769c3,ID_CLUSTER)){_0x35826b=_0x161e67;break;}const [_0x38bdd3,_0x2978d0]=readVint(_0x2bdfb4,_0x4e734c['DqHzC'](_0x161e67,_0x14f09e));if(_0x4e734c['xNrDS'](isUnknownSize,_0x38bdd3,_0x2978d0)){_0x35826b=_0x2bdfb4['length'];break;}_0x161e67+=_0x4e734c[_0x2d321b(0x156)](_0x4e734c['DqHzC'](_0x14f09e,_0x2978d0),_0x38bdd3);}_0x35826b??=_0x2bdfb4['length'];}else _0x35826b=_0x38e396+_0x7d7baa;let _0x5b6f3e=0x0,_0x3352dc=_0x38e396;while(_0x4e734c['UDKoo'](_0x3352dc,_0x35826b)){const [_0x581f41,_0x31b107]=_0x4e734c[_0x2d321b(0x16c)](readId,_0x2bdfb4,_0x3352dc),[_0x885ecd,_0x4a6889]=_0x4e734c[_0x2d321b(0x18b)](readVint,_0x2bdfb4,_0x4e734c['IMAjh'](_0x3352dc,_0x31b107));if(_0x581f41===ID_TIMESTAMP)_0x5b6f3e=_0x4e734c[_0x2d321b(0x180)](readUint,_0x2bdfb4,_0x4e734c[_0x2d321b(0x168)](_0x4e734c[_0x2d321b(0x156)](_0x3352dc,_0x31b107),_0x4a6889),_0x885ecd);else{if(_0x4e734c['aWTjY'](_0x581f41,ID_SIMPLE_BLOCK)&&_0x885ecd>=0x4){const _0x3a12f1=_0x4e734c['IMAjh'](_0x4e734c[_0x2d321b(0x168)](_0x3352dc,_0x31b107),_0x4a6889),[,_0x99f6c9]=_0x4e734c[_0x2d321b(0x171)](readVint,_0x2bdfb4,_0x3a12f1),_0x5c19fa=_0x2bdfb4['readInt16BE'](_0x4e734c['IMAjh'](_0x3a12f1,_0x99f6c9)),_0x2fadae=_0x4e734c['MJvkN'](_0x5b6f3e+_0x5c19fa,_0x166b11)/0xf4240;_0x4e734c[_0x2d321b(0x174)](_0x2fadae,_0x41a1ae)&&(_0x41a1ae=_0x2fadae);}else{if(_0x581f41===ID_CLUSTER)break;}}if(_0x4e734c[_0x2d321b(0x18b)](isUnknownSize,_0x885ecd,_0x4a6889))break;_0x3352dc+=_0x31b107+_0x4a6889+_0x885ecd;}_0x716f1b=_0x35826b;}return _0x41a1ae;}export function fixWebmDuration(_0x379f08,_0x407cfd){const _0x20b3de=_0x3349,_0x339b6d={'nMvOB':function(_0x3279fb,_0x3942de){return _0x3279fb(_0x3942de);},'Xkbwd':function(_0x1ea4c9,_0x2807dc,_0x132f2e){return _0x1ea4c9(_0x2807dc,_0x132f2e);},'GKPHb':function(_0x362653,_0x3c0b7f){return _0x362653+_0x3c0b7f;},'tjfDT':function(_0x556296,_0x58d1ce){return _0x556296+_0x58d1ce;},'dqEQx':function(_0x24545c,_0x3af832){return _0x24545c!==_0x3af832;},'IaGmf':_0x20b3de(0x17a),'wEAwc':function(_0xf2d0a4,_0x5227b0){return _0xf2d0a4+_0x5227b0;},'rPcru':function(_0x38fe69,_0x17b750){return _0x38fe69+_0x17b750;},'qvqJM':function(_0x40add3,_0x680ca0){return _0x40add3+_0x680ca0;},'mPNtX':function(_0x35729a,_0x2115b1){return _0x35729a<=_0x2115b1;},'WwVGV':'Could\x20not\x20compute\x20duration','VFwRD':function(_0x3191d5,_0x9fe594){return _0x3191d5/_0x9fe594;},'JCrlm':function(_0x1ca918,_0x1ef1d2){return _0x1ca918*_0x1ef1d2;},'EHdaT':function(_0x29d0e6,_0x288f58){return _0x29d0e6(_0x288f58);},'Kznre':function(_0x185084,_0x2ccf63){return _0x185084<_0x2ccf63;},'ivPfC':function(_0x1e12d7,_0xf46798){return _0x1e12d7(_0xf46798);}},_0x21095=_0x339b6d[_0x20b3de(0x175)](readFileSync,_0x379f08);let _0x1cf3fd=0x0;const [_0x4ff68f,_0x508987]=readId(_0x21095,_0x1cf3fd),[_0x4414d7,_0x15db44]=_0x339b6d[_0x20b3de(0x159)](readVint,_0x21095,_0x339b6d[_0x20b3de(0x172)](_0x1cf3fd,_0x508987));_0x1cf3fd+=_0x339b6d['tjfDT'](_0x508987,_0x15db44)+_0x4414d7;const [_0x397295,_0x3080c7]=readId(_0x21095,_0x1cf3fd);if(_0x339b6d['dqEQx'](_0x397295,ID_SEGMENT))return console[_0x20b3de(0x176)](_0x339b6d[_0x20b3de(0x15a)]),![];const [,_0x2e6ffe]=_0x339b6d[_0x20b3de(0x159)](readVint,_0x21095,_0x339b6d[_0x20b3de(0x172)](_0x1cf3fd,_0x3080c7)),_0x3caf93=_0x339b6d[_0x20b3de(0x155)](_0x339b6d[_0x20b3de(0x14a)](_0x1cf3fd,_0x3080c7),_0x2e6ffe);let _0x47adc=_0x3caf93;const _0x406cad=Math[_0x20b3de(0x160)](_0x21095['length'],_0x339b6d[_0x20b3de(0x172)](_0x3caf93,0x2710));let _0x1053c3=null,_0x227b74=null;while(_0x47adc<_0x406cad){const [_0x3a7f55,_0x410a76]=readId(_0x21095,_0x47adc),[_0x73729a,_0x1f0675]=readVint(_0x21095,_0x47adc+_0x410a76);_0x3a7f55===ID_VOID&&!_0x1053c3&&(_0x1053c3={'offset':_0x47adc,'idLen':_0x410a76,'sizeLen':_0x1f0675,'dataSize':_0x73729a,'dataOffset':_0x339b6d[_0x20b3de(0x170)](_0x47adc,_0x410a76)+_0x1f0675});if(_0x3a7f55===ID_INFO){_0x227b74={'offset':_0x47adc,'idLen':_0x410a76,'sizeLen':_0x1f0675,'dataSize':_0x73729a,'dataOffset':_0x339b6d[_0x20b3de(0x14e)](_0x47adc,_0x410a76)+_0x1f0675};break;}if(_0x3a7f55===ID_CLUSTER)break;if(isUnknownSize(_0x73729a,_0x1f0675))break;_0x47adc+=_0x410a76+_0x1f0675+_0x73729a;}if(!_0x227b74)return console[_0x20b3de(0x176)]('Could\x20not\x20find\x20Info\x20element'),![];const _0x2449cc=findElement(_0x21095,_0x227b74[_0x20b3de(0x161)],_0x339b6d['wEAwc'](_0x227b74[_0x20b3de(0x161)],_0x227b74['dataSize']),ID_DURATION);if(_0x2449cc)return![];const _0x554515=findElement(_0x21095,_0x227b74['dataOffset'],_0x227b74['dataOffset']+_0x227b74[_0x20b3de(0x18f)],ID_TIMESTAMP_SCALE);let _0x653b08=0xf4240;_0x554515&&(_0x653b08=readUint(_0x21095,_0x554515['dataOffset'],_0x554515[_0x20b3de(0x18f)]));const _0x2521d5=computeDurationMs(_0x21095,_0x653b08);if(_0x339b6d[_0x20b3de(0x17c)](_0x2521d5,0x0))return console[_0x20b3de(0x176)](_0x339b6d[_0x20b3de(0x173)]),![];const _0x1685ac=_0x339b6d[_0x20b3de(0x14d)](_0x339b6d['JCrlm'](_0x2521d5,0xf4240),_0x653b08),_0x1116ac=Buffer['concat']([writeId(ID_DURATION),_0x339b6d[_0x20b3de(0x18d)](writeVint,0x8),writeFloat64(_0x1685ac)]),_0x4b925=_0x1116ac['length'];if(!_0x1053c3||_0x339b6d['Kznre'](_0x1053c3[_0x20b3de(0x164)],_0x227b74[_0x20b3de(0x164)])){if(_0x1053c3){const _0x35f75b=_0x1053c3[_0x20b3de(0x15c)]+_0x1053c3[_0x20b3de(0x188)]+_0x1053c3[_0x20b3de(0x18f)],_0x307d96=_0x35f75b-_0x4b925;if(_0x339b6d[_0x20b3de(0x183)](_0x307d96,0x2))return rewriteFile(_0x21095,_0x227b74,_0x1116ac,_0x653b08,_0x2521d5,_0x407cfd);const _0x3717b0=_0x339b6d[_0x20b3de(0x14a)](_0x227b74[_0x20b3de(0x18f)],_0x4b925),_0x1401ba=Buffer[_0x20b3de(0x177)]([_0x339b6d['ivPfC'](writeId,ID_INFO),_0x339b6d['Xkbwd'](writeVint,_0x3717b0,_0x227b74[_0x20b3de(0x188)])]),_0x2bc162=_0x21095['slice'](_0x227b74['dataOffset'],_0x227b74['dataOffset']+_0x227b74['dataSize']),_0x120c49=writeVoid(_0x307d96),_0x21eb64=_0x21095[_0x20b3de(0x150)](0x0,_0x1053c3[_0x20b3de(0x164)]),_0xc0991a=_0x21095['slice'](_0x227b74[_0x20b3de(0x161)]+_0x227b74['dataSize']);return writeFileSync(_0x407cfd,Buffer['concat']([_0x21eb64,_0x120c49,_0x1401ba,_0x2bc162,_0x1116ac,_0xc0991a])),!![];}}return rewriteFile(_0x21095,_0x227b74,_0x1116ac,_0x653b08,_0x2521d5,_0x407cfd);}function rewriteFile(_0x4e6249,_0x4372fc,_0x5b360a,_0x145799,_0x277333,_0x332b14){const _0x5d2902=_0x3349,_0x440d6a={'FZojR':function(_0x378fd6,_0x49607c){return _0x378fd6(_0x49607c);},'RBxTA':function(_0x37d1ba,_0x26b653){return _0x37d1ba(_0x26b653);},'FyijY':function(_0x3b3172,_0x54f7dc){return _0x3b3172+_0x54f7dc;},'IdCNM':function(_0x11f762,_0x2f0cfa,_0x44fb32){return _0x11f762(_0x2f0cfa,_0x44fb32);}},_0x133ef4=_0x4372fc[_0x5d2902(0x18f)]+_0x5b360a['length'],_0x489422=Buffer[_0x5d2902(0x177)]([_0x440d6a['FZojR'](writeId,ID_INFO),_0x440d6a['RBxTA'](writeVint,_0x133ef4)]),_0x26001a=_0x440d6a[_0x5d2902(0x17f)](_0x4372fc['idLen'],_0x4372fc[_0x5d2902(0x188)]),_0x19922c=_0x4e6249['slice'](0x0,_0x4372fc['offset']),_0x1b9fc0=_0x4e6249[_0x5d2902(0x150)](_0x4372fc[_0x5d2902(0x161)],_0x4372fc[_0x5d2902(0x161)]+_0x4372fc['dataSize']),_0x5ad78b=_0x4e6249['slice'](_0x4372fc['offset']+_0x26001a+_0x4372fc[_0x5d2902(0x18f)]);return _0x440d6a['IdCNM'](writeFileSync,_0x332b14,Buffer[_0x5d2902(0x177)]([_0x19922c,_0x489422,_0x1b9fc0,_0x5b360a,_0x5ad78b])),!![];}if(process['argv'][0x1]?.['endsWith']('fixWebmDuration.ts')||process[_0x2f758d(0x17e)][0x1]?.['endsWith']('fixWebmDuration.js')){const input=process['argv'][0x2],output=process['argv'][0x3];(!input||!output)&&(console[_0x2f758d(0x176)]('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log']('Fixed:\x20'+output):console[_0x2f758d(0x14f)](_0x2f758d(0x157));}
@@ -0,0 +1 @@
1
+ (function(_0x466eb0,_0x5bc528){const _0x58e23e=_0x4933,_0x5f3f69=_0x466eb0();while(!![]){try{const _0x4de72f=parseInt(_0x58e23e(0x12f))/0x1+-parseInt(_0x58e23e(0x12b))/0x2+parseInt(_0x58e23e(0x131))/0x3*(parseInt(_0x58e23e(0x12c))/0x4)+parseInt(_0x58e23e(0x132))/0x5+parseInt(_0x58e23e(0x12e))/0x6+parseInt(_0x58e23e(0x129))/0x7*(-parseInt(_0x58e23e(0x12a))/0x8)+-parseInt(_0x58e23e(0x12d))/0x9;if(_0x4de72f===_0x5bc528)break;else _0x5f3f69['push'](_0x5f3f69['shift']());}catch(_0xb9a0d8){_0x5f3f69['push'](_0x5f3f69['shift']());}}}(_0x1781,0x3e4d8));import{execFile as _0x29f60f}from'child_process';import{promisify}from'util';function _0x1781(){const _0xb4c2ae=['1969250qCQOWR','--error-unmatch','889UzQLas','31800sJeTpB','791396dNJCMS','316236dvRwSU','235188htNVLx','3002646TDjsoF','208497ypoLhj','ls-files','3XzUFXF'];_0x1781=function(){return _0xb4c2ae;};return _0x1781();}const execFile=promisify(_0x29f60f);function _0x4933(_0x1889cf,_0x1d8a77){_0x1889cf=_0x1889cf-0x128;const _0x17817d=_0x1781();let _0x4933a7=_0x17817d[_0x1889cf];return _0x4933a7;}export async function isPathGitTracked(_0x1deeee){const _0x2738c4=_0x4933,_0x2015ad={'Bgujl':'git'};try{return await execFile(_0x2015ad['Bgujl'],[_0x2738c4(0x130),_0x2738c4(0x128),_0x1deeee],{'cwd':process['cwd']()}),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const _0x41ef19=_0x4e0c;(function(_0x216d0a,_0x305efd){const _0xc9ba2a=_0x4e0c,_0x589d2e=_0x216d0a();while(!![]){try{const _0x2e9308=-parseInt(_0xc9ba2a(0xdd))/0x1*(-parseInt(_0xc9ba2a(0xb1))/0x2)+-parseInt(_0xc9ba2a(0xd2))/0x3*(-parseInt(_0xc9ba2a(0xc8))/0x4)+parseInt(_0xc9ba2a(0xd8))/0x5*(-parseInt(_0xc9ba2a(0xb9))/0x6)+parseInt(_0xc9ba2a(0xf6))/0x7+parseInt(_0xc9ba2a(0xc1))/0x8*(parseInt(_0xc9ba2a(0xb0))/0x9)+parseInt(_0xc9ba2a(0xe0))/0xa+-parseInt(_0xc9ba2a(0xe6))/0xb*(parseInt(_0xc9ba2a(0xfe))/0xc);if(_0x2e9308===_0x305efd)break;else _0x589d2e['push'](_0x589d2e['shift']());}catch(_0x241d9f){_0x589d2e['push'](_0x589d2e['shift']());}}}(_0x1d02,0xa17c6));const _0x545af1=(function(){let _0x3d596f=!![];return function(_0x47a962,_0x420e6d){const _0x4cecca=_0x3d596f?function(){const _0x4a8211=_0x4e0c;if(_0x420e6d){const _0x432885=_0x420e6d[_0x4a8211(0xe8)](_0x47a962,arguments);return _0x420e6d=null,_0x432885;}}:function(){};return _0x3d596f=![],_0x4cecca;};}()),_0x3a6b82=_0x545af1(this,function(){const _0x23cfa7=_0x4e0c,_0xa84e9c={'rKgrx':_0x23cfa7(0xcc)};return _0x3a6b82['toString']()[_0x23cfa7(0xf1)](_0xa84e9c[_0x23cfa7(0xf0)])[_0x23cfa7(0xb4)]()[_0x23cfa7(0xb7)](_0x3a6b82)[_0x23cfa7(0xf1)](_0xa84e9c[_0x23cfa7(0xf0)]);});function _0x1d02(){const _0x13ac60=['nde4otyYA3vQs0jc','zKDMEue','yxn5Cuq','z1DHq1C','t0jiBMy','rNvty3C','rKLQBKq','sxPczui','nZqWmZm2CM9JBxni','Bg9N','zKznv2K','rxbcuKm','CuTdtgO','EwLyzLi','sKLqz2m','ne9gu1fruG','AKHLB2K','AwDQCNG','uKfor0vsx0nmsv9ut0TftG','kcGOlISPkYKRksSK','z1DvAxe','tu9gugi','tLDdELO','B0zur28','ALPTA1u','nJG2oteZBxL5wgD5','ALrpD1K','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','D3H5z00','DfPmy3K','DvHsswK','mtvADxjrCgO','y2XPlNr4Da','rgHJu1O','uxnXzNG','zK5pBNe','mJeXntq3AhbjD1n2','BwvZC2fNzq','BuDvu2G','mJm5nJe4mfbKyKvetW','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','ywjVCNq','D05cv1e','DgDmD3q','uKfor0vsx01duf9ut0TftG','ndrRueD4yue','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','yxbWBhK','C2LNBMfS','CMjxCeO','qMvHCMvYia','l2fWAs92ms9Ty3aVBwu','BMnlugC','DhjPBq','Cgzfq0W','CKTNCNG','C2vHCMnO','A3LNthe','ALnmCu8','CuvQwvu','zw52','oteYnJK1qwz3CMPV','wwX1tLC','DxrMltG','EgXcwMy','AurqCvm','sfHdCuG','lI90B2TLBLjLzNjLC2GUANm','D0jSu0S','mty0mZmXnKnPwNrZwa','r0Lusfvcx0vovG','vfHXA20','rwLYD1K','Cgf1y1O','mtHttxPlEvi','nKP3A2TIvq','CMvMCMvZAc50Ehq','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','Dg9tDhjPBMC','sNrJrLO','zhnICMO','y29UC3rYDwn0B3i','lI4VBwnWqM9VDhn0CMfWlMPZ'];_0x1d02=function(){return _0x13ac60;};return _0x1d02();}_0x3a6b82();function _0x4e0c(_0x437662,_0x1d7fe1){_0x437662=_0x437662-0xb0;const _0x38c735=_0x1d02();let _0x3a6b82=_0x38c735[_0x437662];if(_0x4e0c['jnEQSD']===undefined){var _0x545af1=function(_0x2fc58c){const _0x215fcc='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xc2bfbb='',_0x39ca6b='',_0x25390b=_0xc2bfbb+_0x545af1;for(let _0x2ebb4e=0x0,_0x58a7a1,_0x567b99,_0x3a27eb=0x0;_0x567b99=_0x2fc58c['charAt'](_0x3a27eb++);~_0x567b99&&(_0x58a7a1=_0x2ebb4e%0x4?_0x58a7a1*0x40+_0x567b99:_0x567b99,_0x2ebb4e++%0x4)?_0xc2bfbb+=_0x25390b['charCodeAt'](_0x3a27eb+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x58a7a1>>(-0x2*_0x2ebb4e&0x6)):_0x2ebb4e:0x0){_0x567b99=_0x215fcc['indexOf'](_0x567b99);}for(let _0x2ce916=0x0,_0x27aacb=_0xc2bfbb['length'];_0x2ce916<_0x27aacb;_0x2ce916++){_0x39ca6b+='%'+('00'+_0xc2bfbb['charCodeAt'](_0x2ce916)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x39ca6b);};_0x4e0c['XrAzTk']=_0x545af1,_0x4e0c['jMyCsn']={},_0x4e0c['jnEQSD']=!![];}const _0x1d0205=_0x38c735[0x0],_0x4e0ce2=_0x437662+_0x1d0205,_0x281fe0=_0x4e0c['jMyCsn'][_0x4e0ce2];if(!_0x281fe0){const _0xddebbb=function(_0x4013e4){this['LOvzKw']=_0x4013e4,this['rMHqNZ']=[0x1,0x0,0x0],this['iIlfVg']=function(){return'newState';},this['eqwjKq']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['ZufokD']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0xddebbb['prototype']['kyfclC']=function(){const _0x5634a1=new RegExp(this['eqwjKq']+this['ZufokD']),_0x46ef3a=_0x5634a1['test'](this['iIlfVg']['toString']())?--this['rMHqNZ'][0x1]:--this['rMHqNZ'][0x0];return this['BFRfZZ'](_0x46ef3a);},_0xddebbb['prototype']['BFRfZZ']=function(_0x4bd52d){if(!Boolean(~_0x4bd52d))return _0x4bd52d;return this['PyJKoC'](this['LOvzKw']);},_0xddebbb['prototype']['PyJKoC']=function(_0x49e983){for(let _0x4240a0=0x0,_0x5e9f28=this['rMHqNZ']['length'];_0x4240a0<_0x5e9f28;_0x4240a0++){this['rMHqNZ']['push'](Math['round'](Math['random']())),_0x5e9f28=this['rMHqNZ']['length'];}return _0x49e983(this['rMHqNZ'][0x0]);},new _0xddebbb(_0x4e0c)['kyfclC'](),_0x3a6b82=_0x4e0c['XrAzTk'](_0x3a6b82),_0x4e0c['jMyCsn'][_0x4e0ce2]=_0x3a6b82;}else _0x3a6b82=_0x281fe0;return _0x3a6b82;}import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x41ef19(0xcb),ENV_TOKEN_LEGACY=_0x41ef19(0xe5),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x41ef19(0xd9)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x41ef19(0xb2));function isGitHubCI(){const _0x428d7e=_0x41ef19;return!!process[_0x428d7e(0xf5)][_0x428d7e(0xff)];}async function writeToGitHubEnv(_0x5bce84,_0x160fcc){const _0x4ffe03=_0x41ef19,_0x403fe2={'tgLwt':function(_0x5d3040,_0x68342d){return _0x5d3040===_0x68342d;},'paucZ':_0x4ffe03(0xd5),'FuScw':function(_0x11841d,_0x4d77fa,_0x2dedbf){return _0x11841d(_0x4d77fa,_0x2dedbf);}},_0x197184=process[_0x4ffe03(0xf5)][_0x4ffe03(0xff)];if(_0x197184){if(_0x403fe2[_0x4ffe03(0xe4)](_0x403fe2[_0x4ffe03(0x102)],_0x403fe2[_0x4ffe03(0x102)]))await _0x403fe2[_0x4ffe03(0xbe)](appendFile,_0x197184,_0x5bce84+'='+_0x160fcc+'\x0a');else{if(_0x1a0e4d){const _0x3fffbe=_0x44d539[_0x4ffe03(0xe8)](_0x49e322,arguments);return _0x4c968f=null,_0x3fffbe;}}}}export async function storeToken(_0x150ddb){const _0x39e20f=_0x41ef19,_0x1b33e1={'MOFPb':function(_0x451147){return _0x451147();},'wNBWQ':function(_0x536a63,_0x32b117,_0x4eb0c0){return _0x536a63(_0x32b117,_0x4eb0c0);},'uthcy':function(_0x48d2a9,_0x3e9c33,_0x29fcae,_0x134df8){return _0x48d2a9(_0x3e9c33,_0x29fcae,_0x134df8);}};_0x1b33e1[_0x39e20f(0xce)](isGitHubCI)?await writeToGitHubEnv(ENV_TOKEN,_0x150ddb):(await _0x1b33e1[_0x39e20f(0xe3)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x1b33e1['uthcy'](writeFile,TOKEN_PATH,_0x150ddb,{'mode':0x180}));}export async function getToken(){const _0x11108c=_0x41ef19,_0x5b075f={'xlBZf':_0x11108c(0xcc),'wBlSK':function(_0x12b175,_0x276c33){return _0x12b175!==_0x276c33;},'yiXfR':'zcSIa','fNOnq':function(_0x27ffa5,_0x1ce666){return _0x27ffa5!==_0x1ce666;},'dyXfw':_0x11108c(0xdf),'NWCzZ':'utf-8','EirwY':function(_0xd1bf3b,_0xa94f59){return _0xd1bf3b!==_0xa94f59;},'tZLcy':_0x11108c(0xc3),'ncKPg':function(_0x1e3b29){return _0x1e3b29();},'DJeJF':function(_0x3bec25,_0x43de53){return _0x3bec25(_0x43de53);},'oFTGo':function(_0x187e50,_0x48b827){return _0x187e50(_0x48b827);},'dsbrj':_0x11108c(0xb8),'OBHnf':function(_0x481aa9,_0x593c9d){return _0x481aa9===_0x593c9d;},'YluNW':_0x11108c(0xea),'gWaCW':_0x11108c(0xf2),'DhcSZ':_0x11108c(0xe7),'TXqkm':function(_0x157a52){return _0x157a52();},'jSLqO':'FtFbc','KCsPT':function(_0x1c2efc,_0x383c13){return _0x1c2efc instanceof _0x383c13;},'jZmkU':function(_0x29146e,_0x2b0e7f){return _0x29146e+_0x2b0e7f;},'JIPgc':_0x11108c(0xb3),'HXCqH':_0x11108c(0xd4)};if(process[_0x11108c(0xf5)][ENV_TOKEN])return process[_0x11108c(0xf5)][ENV_TOKEN];if(process[_0x11108c(0xf5)][ENV_TOKEN_LEGACY])return _0x5b075f[_0x11108c(0xfd)](_0x5b075f[_0x11108c(0xc6)],'zcSIa')?!![]:process['env'][ENV_TOKEN_LEGACY];let _0x464795=null;try{if(_0x5b075f[_0x11108c(0xdc)](_0x5b075f['dyXfw'],'mGUSh'))return _0x446f69['toString']()['search'](haEFOt[_0x11108c(0xf9)])[_0x11108c(0xb4)]()[_0x11108c(0xb7)](_0x105e42)['search'](haEFOt[_0x11108c(0xf9)]);else _0x464795=(await readFile(TOKEN_PATH,_0x5b075f[_0x11108c(0xcf)]))[_0x11108c(0xee)]()||null;}catch{if(_0x5b075f[_0x11108c(0x101)](_0x11108c(0xc3),_0x5b075f[_0x11108c(0xd6)]))return!!_0x3f060b['env'][_0x11108c(0xff)];else{const _0x2ef66d=await _0x5b075f[_0x11108c(0xed)](tryRefreshToken);return _0x2ef66d;}}if(!_0x464795)return null;const _0x5699f6=await _0x5b075f['DJeJF'](checkTokenValid,_0x464795);if(_0x5699f6)return _0x464795;const _0xf54faf=await _0x5b075f[_0x11108c(0xd0)](tryPromoteRefreshToken,_0x464795);if(_0xf54faf)return _0xf54faf;const _0x2f0b94=await _0x5b075f['ncKPg'](tryRefreshToken);if(_0x2f0b94)return _0x2f0b94;const {getMcpAuthOrigin:_0x69c34d,mcpBootstrap:_0x5d3ad8}=await import(_0x5b075f[_0x11108c(0xb6)]),_0x280ae1=await _0x5b075f[_0x11108c(0xed)](_0x69c34d);if(_0x280ae1)try{if(_0x5b075f[_0x11108c(0xbd)](_0x5b075f[_0x11108c(0xf7)],_0x5b075f[_0x11108c(0xbc)]))return _0x821669['env'][_0x7ad712];else{console[_0x11108c(0xc2)](_0x5b075f[_0x11108c(0xda)]),await _0x5b075f[_0x11108c(0x100)](_0x5d3ad8);const _0x66f262=await _0x5b075f[_0x11108c(0xed)](tryRefreshToken);if(_0x66f262)return _0x66f262;}}catch(_0x26f2a2){if(_0x5b075f[_0x11108c(0xbd)](_0x5b075f['jSLqO'],_0x5b075f[_0x11108c(0xf3)])){const _0x2c7ab5=_0x5b075f['KCsPT'](_0x26f2a2,Error)?_0x26f2a2['message']:_0x5b075f['DJeJF'](String,_0x26f2a2);throw new Error(_0x5b075f[_0x11108c(0xd1)](_0x11108c(0xe1)+_0x2c7ab5+'\x0a',_0x5b075f[_0x11108c(0xc7)]));}else return![];}throw new Error(_0x5b075f[_0x11108c(0xfb)]);}async function checkTokenValid(_0x5d8c63){const _0x263b3c=_0x41ef19,_0x4a6120={'qKCLj':function(_0x398157,_0x36860e,_0x1ba35d){return _0x398157(_0x36860e,_0x1ba35d);},'iDPqS':'./environment.js','jHeoi':function(_0x2d93ce){return _0x2d93ce();},'RJFFR':'GET','jTOwY':_0x263b3c(0xf4),'JtcFZ':function(_0x37eeec,_0x553647){return _0x37eeec(_0x553647);}},_0x4eecd2=new AbortController(),_0x3b6897=_0x4a6120[_0x263b3c(0xc5)](setTimeout,()=>_0x4eecd2[_0x263b3c(0xe2)](),0x1388);try{const {getApiBaseUrl:_0x627990}=await import(_0x4a6120[_0x263b3c(0xfa)]),_0x29a3b6=_0x4a6120[_0x263b3c(0xc9)](_0x627990),_0x44806e=await fetch(_0x29a3b6+_0x263b3c(0xec),{'method':_0x4a6120['RJFFR'],'headers':{'Authorization':_0x263b3c(0xeb)+_0x5d8c63},'signal':_0x4eecd2[_0x263b3c(0xe9)]});return _0x44806e['ok'];}catch{return _0x263b3c(0xf4)===_0x4a6120[_0x263b3c(0xd3)]?!![]:null;}finally{if('asyqD'===_0x263b3c(0xbb))_0x4a6120[_0x263b3c(0xb5)](clearTimeout,_0x3b6897);else{const _0x446390=_0x3675fc[_0x263b3c(0xe8)](_0x1e70fc,arguments);return _0x60647=null,_0x446390;}}}async function tryRefreshToken(){const _0x178531=_0x41ef19,_0x2998d1={'EpBRC':_0x178531(0xfc)},{refreshCliToken:_0x1bd9e6}=await import(_0x2998d1[_0x178531(0xc4)]);return _0x1bd9e6();}async function tryPromoteRefreshToken(_0x1b9057){const _0x1f3d7b=_0x41ef19,_0x38ef1f={'MpqPl':'./tokenRefresh.js','uXRIi':function(_0x4e936c,_0x4aaba9,_0x11c92d){return _0x4e936c(_0x4aaba9,_0x11c92d);}},{refreshPartnerCliToken:_0xecb0c0}=await import(_0x38ef1f['MpqPl']);return _0x38ef1f[_0x1f3d7b(0xd7)](_0xecb0c0,_0x1b9057,{'persistRefreshToken':!![]});}export async function deleteToken(){try{return await unlink(TOKEN_PATH),!![];}catch{return![];}}export async function storeRefreshToken(_0x24ce82){const _0x3ac4fe=_0x41ef19,_0x3fddc8={'fGfyA':function(_0xde688,_0x138ce2,_0x112aa8){return _0xde688(_0x138ce2,_0x112aa8);}};await _0x3fddc8[_0x3ac4fe(0xba)](mkdir,TOKEN_DIR,{'recursive':!![]}),await writeFile(REFRESH_TOKEN_PATH,_0x24ce82,{'mode':0x180});}export async function getRefreshToken(){const _0x538e1c=_0x41ef19,_0x5b8034={'FIjnD':function(_0x29593f,_0x1b2512){return _0x29593f instanceof _0x1b2512;},'jEtHW':function(_0x1f0f86,_0x50188b){return _0x1f0f86+_0x50188b;},'pfECL':_0x538e1c(0xb3),'hdRPw':function(_0x35556c,_0x20a1fa,_0x74fccc){return _0x35556c(_0x20a1fa,_0x74fccc);},'ElTqI':_0x538e1c(0xf8),'gWUiq':function(_0x27d90f,_0x63c4ec){return _0x27d90f!==_0x63c4ec;},'Qsqfx':'GutQM'};try{const _0x52d974=await _0x5b8034['hdRPw'](readFile,REFRESH_TOKEN_PATH,_0x5b8034['ElTqI']);return _0x52d974[_0x538e1c(0xee)]()||null;}catch{if(_0x5b8034[_0x538e1c(0xcd)](_0x5b8034[_0x538e1c(0xdb)],_0x538e1c(0xca)))return null;else{const _0x2d24be=_0x5b8034[_0x538e1c(0xbf)](_0x3ae37a,_0x5260b0)?_0x46cc64[_0x538e1c(0xde)]:_0x2a8331(_0x377b5f);throw new _0x447a28(_0x5b8034['jEtHW']('MCP\x20re-authentication\x20failed:\x20'+_0x2d24be+'\x0a',_0x5b8034[_0x538e1c(0xef)]));}}}export async function deleteRefreshToken(){const _0xfb42d=_0x41ef19,_0x4cab06={'IzBeB':function(_0x26bf0a,_0x36c347){return _0x26bf0a(_0x36c347);}};try{return await _0x4cab06[_0xfb42d(0xc0)](unlink,REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0x34b5bb={'SCsUR':function(_0x5c488f){return _0x5c488f();}};await deleteToken(),await _0x34b5bb['SCsUR'](deleteRefreshToken);}
1
+ const _0x4fd68f=_0xcd7a;(function(_0x29e963,_0x20cc08){const _0x140d99=_0xcd7a,_0x88c981=_0x29e963();while(!![]){try{const _0x1706ba=-parseInt(_0x140d99(0x15c))/0x1+parseInt(_0x140d99(0x194))/0x2+-parseInt(_0x140d99(0x154))/0x3*(parseInt(_0x140d99(0x165))/0x4)+parseInt(_0x140d99(0x16e))/0x5*(-parseInt(_0x140d99(0x167))/0x6)+-parseInt(_0x140d99(0x17a))/0x7+parseInt(_0x140d99(0x155))/0x8+parseInt(_0x140d99(0x19e))/0x9;if(_0x1706ba===_0x20cc08)break;else _0x88c981['push'](_0x88c981['shift']());}catch(_0x372f45){_0x88c981['push'](_0x88c981['shift']());}}}(_0x1dfd,0xc75f1));const _0x24f6dc=(function(){const _0x3328ad=_0xcd7a,_0x5bbb6b={'KHDJq':_0x3328ad(0x181),'wZYxJ':_0x3328ad(0x16f),'zuIeo':_0x3328ad(0x170),'ZEXyg':_0x3328ad(0x15e)};let _0x4fdab2=!![];return function(_0x5655b4,_0x56ba60){const _0x1bd4a4=_0x3328ad,_0x3c9781={'tqqgI':_0x5bbb6b[_0x1bd4a4(0x17b)],'OtwKv':_0x5bbb6b[_0x1bd4a4(0x158)]};if(_0x5bbb6b[_0x1bd4a4(0x185)]!==_0x5bbb6b[_0x1bd4a4(0x179)]){const _0x5a7f09=_0x4fdab2?function(){const _0x5a2ca9=_0x1bd4a4,_0x184d6c={'ChcuG':_0x3c9781[_0x5a2ca9(0x188)]};if(_0x3c9781[_0x5a2ca9(0x1a0)]===_0x3c9781[_0x5a2ca9(0x1a0)]){if(_0x56ba60){const _0x4f17aa=_0x56ba60['apply'](_0x5655b4,arguments);return _0x56ba60=null,_0x4f17aa;}}else return _0x19338a[_0x5a2ca9(0x192)]()[_0x5a2ca9(0x153)](_0x184d6c[_0x5a2ca9(0x17e)])['toString']()[_0x5a2ca9(0x198)](_0x558bf4)[_0x5a2ca9(0x153)](_0x184d6c[_0x5a2ca9(0x17e)]);}:function(){};return _0x4fdab2=![],_0x5a7f09;}else{const _0x591b75=_0x2fd38e?function(){const _0x43d4dd=_0x1bd4a4;if(_0x1a9add){const _0x44e644=_0x19cf6c[_0x43d4dd(0x15b)](_0x5e5ccd,arguments);return _0x5d1c67=null,_0x44e644;}}:function(){};return _0x3efe6a=![],_0x591b75;}};}()),_0x176c52=_0x24f6dc(this,function(){const _0x18fcd0=_0xcd7a,_0x250188={'Opsnx':_0x18fcd0(0x181)};return _0x176c52[_0x18fcd0(0x192)]()[_0x18fcd0(0x153)](_0x18fcd0(0x181))[_0x18fcd0(0x192)]()['constructor'](_0x176c52)[_0x18fcd0(0x153)](_0x250188[_0x18fcd0(0x174)]);});_0x176c52();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';function _0xcd7a(_0x1a3bd3,_0x13f150){_0x1a3bd3=_0x1a3bd3-0x14e;const _0x1375ff=_0x1dfd();let _0x176c52=_0x1375ff[_0x1a3bd3];if(_0xcd7a['ePDByI']===undefined){var _0x24f6dc=function(_0x355690){const _0x162976='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4e4fe5='',_0x4a16c9='',_0x46ba48=_0x4e4fe5+_0x24f6dc;for(let _0x358444=0x0,_0x217560,_0x21e401,_0x4359e3=0x0;_0x21e401=_0x355690['charAt'](_0x4359e3++);~_0x21e401&&(_0x217560=_0x358444%0x4?_0x217560*0x40+_0x21e401:_0x21e401,_0x358444++%0x4)?_0x4e4fe5+=_0x46ba48['charCodeAt'](_0x4359e3+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x217560>>(-0x2*_0x358444&0x6)):_0x358444:0x0){_0x21e401=_0x162976['indexOf'](_0x21e401);}for(let _0x245ac2=0x0,_0x24678b=_0x4e4fe5['length'];_0x245ac2<_0x24678b;_0x245ac2++){_0x4a16c9+='%'+('00'+_0x4e4fe5['charCodeAt'](_0x245ac2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4a16c9);};_0xcd7a['HjVktm']=_0x24f6dc,_0xcd7a['zWnQki']={},_0xcd7a['ePDByI']=!![];}const _0x1dfdfb=_0x1375ff[0x0],_0xcd7a59=_0x1a3bd3+_0x1dfdfb,_0x11d9b3=_0xcd7a['zWnQki'][_0xcd7a59];if(!_0x11d9b3){const _0x2fd38e=function(_0x8dcb15){this['ioUDKz']=_0x8dcb15,this['erBqZZ']=[0x1,0x0,0x0],this['WFEGUT']=function(){return'newState';},this['ioTKvS']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['txWUmh']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2fd38e['prototype']['VYxcuG']=function(){const _0x34ba56=new RegExp(this['ioTKvS']+this['txWUmh']),_0x26d779=_0x34ba56['test'](this['WFEGUT']['toString']())?--this['erBqZZ'][0x1]:--this['erBqZZ'][0x0];return this['ruoxAW'](_0x26d779);},_0x2fd38e['prototype']['ruoxAW']=function(_0x54bcf6){if(!Boolean(~_0x54bcf6))return _0x54bcf6;return this['LmYHWf'](this['ioUDKz']);},_0x2fd38e['prototype']['LmYHWf']=function(_0x3efe6a){for(let _0x1a9add=0x0,_0x1fc83a=this['erBqZZ']['length'];_0x1a9add<_0x1fc83a;_0x1a9add++){this['erBqZZ']['push'](Math['round'](Math['random']())),_0x1fc83a=this['erBqZZ']['length'];}return _0x3efe6a(this['erBqZZ'][0x0]);},new _0x2fd38e(_0xcd7a)['VYxcuG'](),_0x176c52=_0xcd7a['HjVktm'](_0x176c52),_0xcd7a['zWnQki'][_0xcd7a59]=_0x176c52;}else _0x176c52=_0x11d9b3;return _0x176c52;}import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN='RANGER_CLI_TOKEN',ENV_TOKEN_LEGACY=_0x4fd68f(0x19c),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x4fd68f(0x1ac)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x4fd68f(0x1a8));function isGitHubCI(){const _0xca904b=_0x4fd68f;return!!process[_0xca904b(0x17f)][_0xca904b(0x15d)];}async function writeToGitHubEnv(_0x1e23bf,_0x323191){const _0x4998d9=_0x4fd68f,_0x3c65c0={'hTgcg':function(_0x184ccd,_0x4ffaf5,_0x4d2747){return _0x184ccd(_0x4ffaf5,_0x4d2747);}},_0x2fcaf2=process[_0x4998d9(0x17f)][_0x4998d9(0x15d)];_0x2fcaf2&&await _0x3c65c0['hTgcg'](appendFile,_0x2fcaf2,_0x1e23bf+'='+_0x323191+'\x0a');}export async function storeToken(_0x5c3925){const _0x3a85af=_0x4fd68f,_0x5696a1={'UJAlv':_0x3a85af(0x15f),'aMZGL':function(_0x11241b,_0x44fb02,_0x286271){return _0x11241b(_0x44fb02,_0x286271);},'ctrjB':function(_0x4cba66,_0x1ab14c){return _0x4cba66!==_0x1ab14c;},'XymaS':'XkwLv','KGnLy':_0x3a85af(0x1a7),'kUftf':function(_0x5bce50,_0x5dffcd,_0x4c4a62,_0x1b9d8c){return _0x5bce50(_0x5dffcd,_0x4c4a62,_0x1b9d8c);}};if(isGitHubCI()){if(_0x3a85af(0x15f)!==_0x5696a1[_0x3a85af(0x14e)])return _0x1b1f78[_0x3a85af(0x17f)][_0x53af37];else await _0x5696a1[_0x3a85af(0x193)](writeToGitHubEnv,ENV_TOKEN,_0x5c3925);}else{if(_0x5696a1[_0x3a85af(0x152)](_0x5696a1[_0x3a85af(0x180)],_0x5696a1[_0x3a85af(0x1a2)]))await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x5696a1['kUftf'](writeFile,TOKEN_PATH,_0x5c3925,{'mode':0x180});else{if(_0x5b7c8c){const _0x2ed0e9=_0x33a5dc[_0x3a85af(0x15b)](_0x3a543a,arguments);return _0x5a2473=null,_0x2ed0e9;}}}}export async function getToken(){const _0x21d6af=_0x4fd68f,_0x59b2cc={'jzrYk':function(_0x461196,_0x4fca00){return _0x461196(_0x4fca00);},'cEAeT':function(_0x58fc43,_0x453cf3){return _0x58fc43 instanceof _0x453cf3;},'WJLCL':function(_0x4a8b71,_0x5636ea){return _0x4a8b71+_0x5636ea;},'bKKlM':function(_0x29f5f4,_0x1b313d){return _0x29f5f4!==_0x1b313d;},'AwtYX':_0x21d6af(0x1a9),'eBWWa':'qADuh','jgkiC':'yrOfx','mgoSU':function(_0x545edf,_0x21cdb6,_0x3d9de0){return _0x545edf(_0x21cdb6,_0x3d9de0);},'YRtiF':_0x21d6af(0x163),'YTfNo':function(_0x88421,_0x30e9c7){return _0x88421!==_0x30e9c7;},'WnJrM':_0x21d6af(0x151),'bwZHN':_0x21d6af(0x18c),'MzHNX':function(_0x33bbc5){return _0x33bbc5();},'KjLNr':_0x21d6af(0x150),'MtYDu':function(_0x233994){return _0x233994();},'VcWMw':'Session\x20expired.\x20Re-authenticating\x20via\x20MCP\x20bootstrap...','wdANb':function(_0x70afe2,_0x28f5e1){return _0x70afe2+_0x28f5e1;},'bOHpa':_0x21d6af(0x16c),'XolNd':_0x21d6af(0x18e)};if(process[_0x21d6af(0x17f)][ENV_TOKEN])return _0x59b2cc['bKKlM'](_0x59b2cc[_0x21d6af(0x19f)],_0x59b2cc[_0x21d6af(0x19f)])?!![]:process[_0x21d6af(0x17f)][ENV_TOKEN];if(process['env'][ENV_TOKEN_LEGACY])return process[_0x21d6af(0x17f)][ENV_TOKEN_LEGACY];let _0x42948c=null;try{_0x59b2cc[_0x21d6af(0x16b)](_0x59b2cc[_0x21d6af(0x187)],_0x59b2cc[_0x21d6af(0x186)])?_0x42948c=(await _0x59b2cc['mgoSU'](readFile,TOKEN_PATH,_0x59b2cc[_0x21d6af(0x190)]))[_0x21d6af(0x161)]()||null:_0x59b2cc[_0x21d6af(0x1a4)](_0x37a952,_0x30c328);}catch{if(_0x59b2cc['YTfNo'](_0x59b2cc['WnJrM'],_0x59b2cc[_0x21d6af(0x164)])){const _0x44f421=await _0x59b2cc[_0x21d6af(0x166)](tryRefreshToken);return _0x44f421;}else{const _0xa779db=_0x59b2cc[_0x21d6af(0x19a)](_0x4caad9,_0x1899c5)?_0x28c2d7[_0x21d6af(0x157)]:_0x2647f7(_0x3ef330);throw new _0x1d2f10(_0x59b2cc['WJLCL'](_0x21d6af(0x184)+_0xa779db+'\x0a',_0x21d6af(0x16c)));}}if(!_0x42948c)return null;const _0x468501=await _0x59b2cc[_0x21d6af(0x1a4)](checkTokenValid,_0x42948c);if(_0x468501)return _0x42948c;const _0x3d2675=await _0x59b2cc[_0x21d6af(0x1a4)](tryPromoteRefreshToken,_0x42948c);if(_0x3d2675)return _0x3d2675;const _0x58698c=await _0x59b2cc['MzHNX'](tryRefreshToken);if(_0x58698c)return _0x58698c;const {getMcpAuthOrigin:_0x32cd1e,mcpBootstrap:_0x124c3e}=await import(_0x59b2cc[_0x21d6af(0x196)]),_0x294b5c=await _0x59b2cc[_0x21d6af(0x17d)](_0x32cd1e);if(_0x294b5c)try{console['log'](_0x59b2cc['VcWMw']),await _0x59b2cc['MzHNX'](_0x124c3e);const _0x341582=await _0x59b2cc[_0x21d6af(0x166)](tryRefreshToken);if(_0x341582)return _0x341582;}catch(_0x38c502){const _0xa85406=_0x59b2cc[_0x21d6af(0x19a)](_0x38c502,Error)?_0x38c502[_0x21d6af(0x157)]:_0x59b2cc[_0x21d6af(0x1a4)](String,_0x38c502);throw new Error(_0x59b2cc[_0x21d6af(0x182)](_0x21d6af(0x184)+_0xa85406+'\x0a',_0x59b2cc[_0x21d6af(0x18d)]));}throw new Error(_0x59b2cc[_0x21d6af(0x19b)]);}async function checkTokenValid(_0x10e228){const _0x5a4e9f=_0x4fd68f,_0x2e8198={'Jetoa':function(_0x40c0a0,_0x5cfe8d){return _0x40c0a0!==_0x5cfe8d;},'pWyiW':_0x5a4e9f(0x169),'LRNvC':_0x5a4e9f(0x159),'zZBsh':function(_0x1286e9){return _0x1286e9();},'UBRax':function(_0x182916,_0x1d9d4d,_0x4cfed9){return _0x182916(_0x1d9d4d,_0x4cfed9);},'tyQEz':function(_0x36e8cf,_0x26d5e4){return _0x36e8cf===_0x26d5e4;},'XqmNx':_0x5a4e9f(0x18a),'KDMfl':function(_0xfb326d,_0x2ba20f){return _0xfb326d(_0x2ba20f);}},_0x2584b1=new AbortController(),_0x172d4e=setTimeout(()=>_0x2584b1[_0x5a4e9f(0x173)](),0x1388);try{if(_0x2e8198[_0x5a4e9f(0x162)](_0x5a4e9f(0x160),_0x2e8198[_0x5a4e9f(0x18b)])){const {getApiBaseUrl:_0x4eee2b}=await import(_0x2e8198[_0x5a4e9f(0x16a)]),_0x1e94bb=_0x2e8198[_0x5a4e9f(0x199)](_0x4eee2b),_0x67e56=await _0x2e8198['UBRax'](fetch,_0x1e94bb+_0x5a4e9f(0x19d),{'method':_0x5a4e9f(0x15a),'headers':{'Authorization':'Bearer\x20'+_0x10e228},'signal':_0x2584b1[_0x5a4e9f(0x183)]});return _0x67e56['ok'];}else return _0x124190[_0x5a4e9f(0x17f)][_0x5d393c];}catch{return _0x2e8198[_0x5a4e9f(0x1a3)](_0x2e8198[_0x5a4e9f(0x197)],_0x5a4e9f(0x176))?![]:!![];}finally{_0x2e8198[_0x5a4e9f(0x189)](clearTimeout,_0x172d4e);}}async function tryRefreshToken(){const _0x15bc98=_0x4fd68f,_0x3095ab={'Qaxhy':function(_0x446165){return _0x446165();}},{refreshCliToken:_0x218d78}=await import(_0x15bc98(0x156));return _0x3095ab['Qaxhy'](_0x218d78);}async function tryPromoteRefreshToken(_0x558b99){const _0xe07772=_0x4fd68f,_0xa73f88={'jDlmI':'./tokenRefresh.js','lRPMP':function(_0x172fa7,_0x4530cf,_0x146144){return _0x172fa7(_0x4530cf,_0x146144);}},{refreshPartnerCliToken:_0x376c66}=await import(_0xa73f88[_0xe07772(0x177)]);return _0xa73f88[_0xe07772(0x172)](_0x376c66,_0x558b99,{'persistRefreshToken':!![]});}function _0x1dfd(){const _0x116b86=['ANPYwwS','AfvjvNe','EKjTswi','ufvLwuq','CMvMCMvZAc50Ehq','y2Pkvg8','D0Teu2K','r1fuuMi','y2XPlNr4Da','vuPbBhy','sMj3DK4','lI4VBwnWqM9VDhn0CMfWlMPZ','y3zsEK0','y3rYAKi','C2vHCMnO','otK2mZiXrerfshrY','mta3nJGZmJbiywP5tLC','lI90B2TLBLjLzNjLC2GUANm','BwvZC2fNzq','D1PzEeO','lI9LBNzPCM9UBwvUDc5QCW','r0vu','yxbWBhK','mZaYndyYsK1kquL1','r0Lusfvcx0vovG','AvD3B08','AK1Sr24','CwfMq1a','DhjPBq','sMv0B2e','DxrMltG','yNDAse4','mtziqK5Nqum','txPitLG','mty0mJjNBuDvrNq','A1Dgr3q','uKjgvgu','tfjoDKm','yKTlBe0','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','Eg5yrue','mtm4nuztzwTAwG','z3LZCMG','CvbLs0O','uuXjy1G','Bfjqtva','ywjVCNq','t3bZBNG','vNbfsvG','DwH1uuy','AKrSBuK','AMfsAeO','wKvyEwC','mta3mJCWmvH5BMvesW','s0HesNe','qKXJwxu','txrzrhu','q2HJDuC','zw52','whLTyvm','kcGOlISPkYKRksSK','D2rbtMi','C2LNBMfS','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','ENvjzw8','AMDRAum','zujxv2e','DhfXz0K','s0rnzMW','wvLrzee','CfD5AvC','vvHcuhe','yK9iCge','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','DhHuC20','wvj0Auy','EKvPqKe','Dg9tDhjPBMC','yu1Ar0W','mteWntmZmMPjDvLtqG','zgHQwui','s2PmtNi','whfTtNG','y29UC3rYDwn0B3i','ELPcC2G','y0vbzvq','wg9StMq','uKfor0vsx01duf9ut0TftG','l2fWAs92ms9Ty3aVBwu','mtmXnde4mdLKBNPruve','qxD0wvG','t3r3s3y','D3nsuLO','s0DUthK','DhLrrxO'];_0x1dfd=function(){return _0x116b86;};return _0x1dfd();}export async function deleteToken(){const _0x3ecb93=_0x4fd68f,_0x1b497e={'BLcYu':function(_0x15585f,_0x5e1cb9){return _0x15585f===_0x5e1cb9;},'zBmIb':_0x3ecb93(0x16d),'dhjYB':_0x3ecb93(0x14f),'wKDSi':function(_0x8f38ad,_0x552d84){return _0x8f38ad(_0x552d84);},'QLIcX':function(_0x26e5a1,_0x59679e){return _0x26e5a1!==_0x59679e;},'txTsm':_0x3ecb93(0x191),'jaRhJ':_0x3ecb93(0x1a5)};try{if(_0x1b497e[_0x3ecb93(0x17c)](_0x1b497e[_0x3ecb93(0x1a6)],_0x1b497e[_0x3ecb93(0x195)])){const _0x23cc0a=_0x5154f1[_0x3ecb93(0x15b)](_0x5162ce,arguments);return _0x1bd505=null,_0x23cc0a;}else return await _0x1b497e[_0x3ecb93(0x1aa)](unlink,TOKEN_PATH),!![];}catch{return _0x1b497e[_0x3ecb93(0x171)](_0x1b497e[_0x3ecb93(0x18f)],_0x1b497e[_0x3ecb93(0x178)])?![]:![];}}export async function storeRefreshToken(_0x1753b1){const _0x425fde=_0x4fd68f,_0xdd4914={'VpEIX':function(_0x5cc9e4,_0x508d72,_0x33f349){return _0x5cc9e4(_0x508d72,_0x33f349);}};await _0xdd4914[_0x425fde(0x175)](mkdir,TOKEN_DIR,{'recursive':!![]}),await writeFile(REFRESH_TOKEN_PATH,_0x1753b1,{'mode':0x180});}export async function getRefreshToken(){const _0x45e4e2=_0x4fd68f,_0x5cfd73={'nUDhc':function(_0x5e59b3,_0x8461bc,_0x148650){return _0x5e59b3(_0x8461bc,_0x148650);},'kWFGt':_0x45e4e2(0x163)};try{const _0x4fe0a2=await _0x5cfd73['nUDhc'](readFile,REFRESH_TOKEN_PATH,_0x5cfd73[_0x45e4e2(0x168)]);return _0x4fe0a2[_0x45e4e2(0x161)]()||null;}catch{return null;}}export async function deleteRefreshToken(){const _0x3c3d74=_0x4fd68f,_0x1c44ba={'GQTRb':function(_0x4b0fad,_0x5adc9c){return _0x4b0fad(_0x5adc9c);}};try{return await _0x1c44ba[_0x3c3d74(0x1ab)](unlink,REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0x1543ca=_0x4fd68f,_0x55c510={'wsRRZ':function(_0x4ba8d8){return _0x4ba8d8();}};await deleteToken(),await _0x55c510[_0x1543ca(0x1a1)](deleteRefreshToken);}
@@ -0,0 +1 @@
1
+ const _0x33be12=_0x34cf;(function(_0xd06b88,_0x268cd3){const _0x430d9f=_0x34cf,_0x3ed2a5=_0xd06b88();while(!![]){try{const _0x3ce8dd=-parseInt(_0x430d9f(0x194))/0x1*(-parseInt(_0x430d9f(0x1ac))/0x2)+-parseInt(_0x430d9f(0x1a8))/0x3*(-parseInt(_0x430d9f(0x1a9))/0x4)+parseInt(_0x430d9f(0x18f))/0x5+parseInt(_0x430d9f(0x196))/0x6+-parseInt(_0x430d9f(0x1a4))/0x7+-parseInt(_0x430d9f(0x197))/0x8*(parseInt(_0x430d9f(0x19e))/0x9)+parseInt(_0x430d9f(0x193))/0xa;if(_0x3ce8dd===_0x268cd3)break;else _0x3ed2a5['push'](_0x3ed2a5['shift']());}catch(_0x85488e){_0x3ed2a5['push'](_0x3ed2a5['shift']());}}}(_0x348a,0x45d79));import{existsSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function detectLegacyPaths(){const _0xa954ff=_0x34cf,_0x566590={'EbVqQ':function(_0x531b03){return _0x531b03();},'TusrA':function(_0x45375c,_0x36ab58,_0x159471){return _0x45375c(_0x36ab58,_0x159471);},'FwyUr':function(_0x3153e6,_0x1544c1,_0x3da895){return _0x3153e6(_0x1544c1,_0x3da895);},'EZQlX':_0xa954ff(0x19f),'ImpVY':_0xa954ff(0x1ab)},_0x1e7acb=getRangerDir(),_0x4a92be=_0x566590['EbVqQ'](getRangerHomeDir);return[_0x566590[_0xa954ff(0x191)](join,_0x1e7acb,'local'),join(_0x1e7acb,'ci'),_0x566590['FwyUr'](join,_0x4a92be,_0x566590[_0xa954ff(0x19a)]),join(_0x1e7acb,_0x566590['ImpVY'])]['filter'](_0x4b2d7c=>existsSync(_0x4b2d7c));}function flagFilePath(){const _0x379592=_0x34cf,_0x25e704={'eofoR':function(_0x5cf5db,_0x3a505b,_0x54e3da){return _0x5cf5db(_0x3a505b,_0x54e3da);}},_0x14b878=new Date()[_0x379592(0x198)]()['slice'](0x0,0xa);return _0x25e704[_0x379592(0x199)](join,getRangerHomeDir(),'.legacy-warning-'+_0x14b878);}function _0x348a(){const _0x4682d3=['has','\x20\x20\x20Ranger\x20no\x20longer\x20writes\x20to\x20these\x20paths.\x20Existing\x20sessions\x20there\x20still\x20work','3860661XsjVAv','length','Igjyp','--help','2598HqTCSC','472GbkqGD','wJrkS','active-profile.txt','150LQWfOU','1857495eFNhXh','\x20\x20\x20Delete\x20these\x20paths\x20after\x20you\x20have\x20re-auth-ed.','TusrA','IjYWM','4173310lDQelr','2877gOuIoZ','\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20<name>','985884gUujNL','8gtUvTp','toISOString','eofoR','EZQlX','XHoVb','map','verify-feature','3901599mRyLse','local','profiles','qHtwT'];_0x348a=function(){return _0x4682d3;};return _0x348a();}export function showLegacyDeprecationWarning(){const _0x31724a=_0x34cf,_0x4471c9={'qHtwT':function(_0x412afa){return _0x412afa();},'xmEVv':'⚠\x20\x20Legacy\x20Ranger\x20paths\x20detected\x20(read-only):','xdZBn':_0x31724a(0x1a3),'WMJJL':'\x20\x20\x20as\x20a\x20fallback.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:','Igjyp':'\x20\x20\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:','wJrkS':function(_0x13bb04,_0x51bd76){return _0x13bb04+_0x51bd76;},'IjYWM':function(_0xff7860,_0x52e42d,_0xba9057){return _0xff7860(_0x52e42d,_0xba9057);}},_0x52f619=_0x4471c9[_0x31724a(0x1a1)](detectLegacyPaths);if(_0x52f619[_0x31724a(0x1a5)]===0x0)return;const _0x697c2b=flagFilePath();if(existsSync(_0x697c2b))return;const _0x1bc929=['',_0x4471c9['xmEVv'],..._0x52f619[_0x31724a(0x19c)](_0x1d7730=>'\x20\x20\x20\x20\x20'+_0x1d7730),'',_0x4471c9['xdZBn'],_0x4471c9['WMJJL'],'',_0x31724a(0x195),'',_0x4471c9[_0x31724a(0x1a6)],'\x20\x20\x20\x20\x20https://docs.ranger.net/main/concepts/profiles','',_0x31724a(0x190),''];process['stderr']['write'](_0x4471c9[_0x31724a(0x1aa)](_0x1bc929['join']('\x0a'),'\x0a'));try{_0x4471c9[_0x31724a(0x192)](mkdirSync,getRangerHomeDir(),{'recursive':!![]}),writeFileSync(_0x697c2b,'',{'mode':0x180});}catch{}}const PROFILE_TOUCHING_COMMANDS=new Set(['go','verify',_0x33be12(0x19d),'profile',_0x33be12(0x1a0),'setup','setup-ci','start','use']);function _0x34cf(_0x3bc722,_0x5a9368){_0x3bc722=_0x3bc722-0x18f;const _0x348aee=_0x348a();let _0x34cf2f=_0x348aee[_0x3bc722];return _0x34cf2f;}export function shouldShowLegacyWarning(_0x13b145){const _0x1560ee=_0x33be12,_0x232f8d={'XHoVb':function(_0x4c194c,_0x580a05){return _0x4c194c===_0x580a05;}},_0x3ab63b=_0x13b145[0x2];if(!_0x3ab63b)return![];if(_0x3ab63b['startsWith']('-'))return![];if(!PROFILE_TOUCHING_COMMANDS[_0x1560ee(0x1a2)](_0x3ab63b))return![];for(let _0x3e9cce=0x3;_0x3e9cce<_0x13b145['length'];_0x3e9cce++){if(_0x13b145[_0x3e9cce]===_0x1560ee(0x1a7)||_0x232f8d[_0x1560ee(0x19b)](_0x13b145[_0x3e9cce],'-h'))return![];}return!![];}
@@ -1 +1 @@
1
- function _0xda7c(_0x1a023c,_0xe22307){_0x1a023c=_0x1a023c-0xcf;const _0x29b780=_0xb480();let _0x1f5fb4=_0x29b780[_0x1a023c];if(_0xda7c['RzvvFm']===undefined){var _0x3bc8ad=function(_0x1ff1aa){const _0x202626='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x18ec80='',_0x1a8874='',_0x3718d7=_0x18ec80+_0x3bc8ad;for(let _0x5bf8eb=0x0,_0x57b238,_0x30962b,_0x4de2e5=0x0;_0x30962b=_0x1ff1aa['charAt'](_0x4de2e5++);~_0x30962b&&(_0x57b238=_0x5bf8eb%0x4?_0x57b238*0x40+_0x30962b:_0x30962b,_0x5bf8eb++%0x4)?_0x18ec80+=_0x3718d7['charCodeAt'](_0x4de2e5+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x57b238>>(-0x2*_0x5bf8eb&0x6)):_0x5bf8eb:0x0){_0x30962b=_0x202626['indexOf'](_0x30962b);}for(let _0x4314a1=0x0,_0x105e96=_0x18ec80['length'];_0x4314a1<_0x105e96;_0x4314a1++){_0x1a8874+='%'+('00'+_0x18ec80['charCodeAt'](_0x4314a1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1a8874);};_0xda7c['AWWmsb']=_0x3bc8ad,_0xda7c['TquXdN']={},_0xda7c['RzvvFm']=!![];}const _0xb48094=_0x29b780[0x0],_0xda7c41=_0x1a023c+_0xb48094,_0x583fbe=_0xda7c['TquXdN'][_0xda7c41];if(!_0x583fbe){const _0xd6fcd9=function(_0x599d2){this['zdGtvJ']=_0x599d2,this['lnVQny']=[0x1,0x0,0x0],this['mrAadg']=function(){return'newState';},this['qnLrdR']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['XjGWEJ']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0xd6fcd9['prototype']['jOQDLa']=function(){const _0x2accd6=new RegExp(this['qnLrdR']+this['XjGWEJ']),_0xb12a84=_0x2accd6['test'](this['mrAadg']['toString']())?--this['lnVQny'][0x1]:--this['lnVQny'][0x0];return this['BsgUwt'](_0xb12a84);},_0xd6fcd9['prototype']['BsgUwt']=function(_0x1e7745){if(!Boolean(~_0x1e7745))return _0x1e7745;return this['jwofdy'](this['zdGtvJ']);},_0xd6fcd9['prototype']['jwofdy']=function(_0x7ee98d){for(let _0x465168=0x0,_0x90c1b0=this['lnVQny']['length'];_0x465168<_0x90c1b0;_0x465168++){this['lnVQny']['push'](Math['round'](Math['random']())),_0x90c1b0=this['lnVQny']['length'];}return _0x7ee98d(this['lnVQny'][0x0]);},new _0xd6fcd9(_0xda7c)['jOQDLa'](),_0x1f5fb4=_0xda7c['AWWmsb'](_0x1f5fb4),_0xda7c['TquXdN'][_0xda7c41]=_0x1f5fb4;}else _0x1f5fb4=_0x583fbe;return _0x1f5fb4;}function _0xb480(){const _0x11c02b=['nti3otmWquXtuxDc','Agz5sKi','mtmYmZGYmMvKrLzAEa','odqYyxvLBuH5','mtmWotu2mfLeCeDMAW','tKXdzgG','y0z2Evu','otK2nJGWuxjitejz','yu16qNq','Dg9tDhjPBMC','C2LNBMfS','ue9tva','vLztt0i','C3rYAw5NAwz5','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','ywjVCNq','mZe5zMLwEKfR','wNrgq3C','zxjYB3i','mZe1q25nDg94','r1PXEKe','C2vHCMnO','mti0nZfqBhfrrhi','A3LHzvi','y29UC3rYDwn0B3i','yxbWBhK','yxbWBgLJyxrPB24VANnVBG','ENLczMC','Dgv4Da','sKX1uui','wMn2C3e','vK5py2K','wKT0tfC','mtaXmZe2neXWAgX0yG','mJvHsuPXuMS','BMnMv20','mtHRAe9gC2q','ENnLEg0','odC2mdHsu1LdzKm','yLDxCg8','kcGOlISPkYKRksSK'];_0xb480=function(){return _0x11c02b;};return _0xb480();}(function(_0xfab8a1,_0x1ad7d4){const _0x190cd4=_0xda7c,_0x54a931=_0xfab8a1();while(!![]){try{const _0x4fc5a9=parseInt(_0x190cd4(0xd2))/0x1+parseInt(_0x190cd4(0xd5))/0x2*(-parseInt(_0x190cd4(0xe8))/0x3)+-parseInt(_0x190cd4(0xf3))/0x4+parseInt(_0x190cd4(0xf4))/0x5*(-parseInt(_0x190cd4(0xd4))/0x6)+parseInt(_0x190cd4(0xe5))/0x7*(parseInt(_0x190cd4(0xcf))/0x8)+-parseInt(_0x190cd4(0xf6))/0x9*(parseInt(_0x190cd4(0xd9))/0xa)+-parseInt(_0x190cd4(0xe2))/0xb*(-parseInt(_0x190cd4(0xd6))/0xc);if(_0x4fc5a9===_0x1ad7d4)break;else _0x54a931['push'](_0x54a931['shift']());}catch(_0xe74705){_0x54a931['push'](_0x54a931['shift']());}}}(_0xb480,0xd6be2));const _0x3bc8ad=(function(){const _0x35a0b1=_0xda7c,_0x62abdb={'NLCdh':_0x35a0b1(0xf1),'nuUdP':function(_0x4c7f09,_0x4da2dd){return _0x4c7f09!==_0x4da2dd;},'JLuQB':_0x35a0b1(0xe6),'bWWpo':_0x35a0b1(0xd1)};let _0x2a2b0f=!![];return function(_0x5b3660,_0x4dc449){const _0x55b3cd=_0x35a0b1,_0xe05cb0={'ZtFCw':_0x62abdb[_0x55b3cd(0xd0)]},_0x451e97=_0x2a2b0f?function(){const _0x541bb2=_0x55b3cd;if(_0x62abdb[_0x541bb2(0xd7)]!==_0x62abdb[_0x541bb2(0xd7)])return;else{if(_0x4dc449){if(_0x62abdb['nuUdP'](_0x62abdb['JLuQB'],_0x62abdb[_0x541bb2(0xef)]))return _0x3e8b2a['toString']()['search'](_0xe05cb0[_0x541bb2(0xe3)])[_0x541bb2(0xdb)]()[_0x541bb2(0xea)](_0x2c2ec3)['search'](_0xe05cb0[_0x541bb2(0xe3)]);else{const _0x28e010=_0x4dc449['apply'](_0x5b3660,arguments);return _0x4dc449=null,_0x28e010;}}}}:function(){};return _0x2a2b0f=![],_0x451e97;};}()),_0x1f5fb4=_0x3bc8ad(this,function(){const _0x22e2f0=_0xda7c,_0x25d850={'cFvyU':_0x22e2f0(0xd1)};return _0x1f5fb4[_0x22e2f0(0xdb)]()[_0x22e2f0(0xe7)](_0x25d850[_0x22e2f0(0xd8)])[_0x22e2f0(0xdb)]()[_0x22e2f0(0xea)](_0x1f5fb4)[_0x22e2f0(0xe7)](_0x25d850[_0x22e2f0(0xd8)]);});_0x1f5fb4();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x60882f,_0x5ad21a,_0x592a3a){const _0x5687e0=_0xda7c,_0x35fd65={'zsexm':function(_0x320c88){return _0x320c88();},'Zcvsq':_0x5687e0(0xdd),'BsgFS':_0x5687e0(0xec),'ZKtLW':function(_0x5d8af7,_0x450947){return _0x5d8af7!==_0x450947;},'xetow':_0x5687e0(0xed),'hfyJB':function(_0x14ac76,_0x1f6e61){return _0x14ac76!==_0x1f6e61;},'aMzBt':_0x5687e0(0xde),'kyaeR':_0x5687e0(0xf5)},_0x403ff9=await getToken();if(!_0x403ff9)return;const _0x44f94d=_0x35fd65[_0x5687e0(0xf7)](getApiBaseUrl),_0x4d3838=new AbortController(),_0x12f4a3=setTimeout(()=>_0x4d3838[_0x5687e0(0xe1)](),0x1388);let _0x42a619;try{_0x42a619=await fetch(_0x44f94d+_0x5687e0(0xe0),{'method':_0x35fd65[_0x5687e0(0xf0)],'headers':{'Authorization':'Bearer\x20'+_0x403ff9,'Content-Type':_0x35fd65['BsgFS']},'body':JSON[_0x5687e0(0xdf)]({'skillName':_0x60882f,'cliVersion':_0x592a3a,'metadata':_0x5ad21a}),'signal':_0x4d3838[_0x5687e0(0xdc)]});}finally{if(_0x35fd65[_0x5687e0(0xf2)](_0x5687e0(0xed),_0x35fd65['xetow'])){const _0x50699f=_0x361301[_0x5687e0(0xeb)](_0x4ebef1,arguments);return _0x2ec268=null,_0x50699f;}else clearTimeout(_0x12f4a3);}if(!_0x42a619['ok']){if(_0x35fd65[_0x5687e0(0xd3)](_0x35fd65[_0x5687e0(0xda)],_0x35fd65[_0x5687e0(0xe9)])){const _0x4105df=await _0x42a619[_0x5687e0(0xee)]();console[_0x5687e0(0xe4)]('Failed\x20to\x20log\x20skill\x20installation:\x20'+_0x4105df);}else{const _0x27b6ca=_0xd6fcd9?function(){const _0x43d5d5=_0x5687e0;if(_0x465168){const _0x3cda17=_0x3f5680[_0x43d5d5(0xeb)](_0x8c1186,arguments);return _0x14e077=null,_0x3cda17;}}:function(){};return _0x7ee98d=![],_0x27b6ca;}}}
1
+ (function(_0x4a8c23,_0x3d3dca){const _0x3c9b9c=_0x455e,_0x1364ff=_0x4a8c23();while(!![]){try{const _0x29253b=parseInt(_0x3c9b9c(0xa6))/0x1+parseInt(_0x3c9b9c(0xbf))/0x2+-parseInt(_0x3c9b9c(0xb9))/0x3*(parseInt(_0x3c9b9c(0xba))/0x4)+parseInt(_0x3c9b9c(0xae))/0x5*(-parseInt(_0x3c9b9c(0xa8))/0x6)+parseInt(_0x3c9b9c(0xac))/0x7*(parseInt(_0x3c9b9c(0xc1))/0x8)+parseInt(_0x3c9b9c(0xb3))/0x9*(-parseInt(_0x3c9b9c(0xb1))/0xa)+parseInt(_0x3c9b9c(0xb8))/0xb;if(_0x29253b===_0x3d3dca)break;else _0x1364ff['push'](_0x1364ff['shift']());}catch(_0x25e9e0){_0x1364ff['push'](_0x1364ff['shift']());}}}(_0x24fc,0x62feb));const _0x2369d0=(function(){const _0x1ae5bb=_0x455e,_0x1da52e={'IsKCA':function(_0x4a5b8d,_0x595213){return _0x4a5b8d===_0x595213;},'LKHHf':_0x1ae5bb(0xa2)};let _0x506d89=!![];return function(_0x66ee4a,_0x39be9e){const _0x240e01=_0x1ae5bb;if(_0x1da52e[_0x240e01(0xbc)](_0x240e01(0xb0),_0x1da52e[_0x240e01(0xc4)])){const _0x55e856=_0x477d50[_0x240e01(0xc2)](_0x2dd037,arguments);return _0x1ef540=null,_0x55e856;}else{const _0x38f7ba=_0x506d89?function(){const _0x3580fe=_0x240e01;if(_0x39be9e){const _0x560bd0=_0x39be9e[_0x3580fe(0xc2)](_0x66ee4a,arguments);return _0x39be9e=null,_0x560bd0;}}:function(){};return _0x506d89=![],_0x38f7ba;}};}()),_0x4a7727=_0x2369d0(this,function(){const _0x341c26=_0x455e,_0xeeae49={'EZnXi':_0x341c26(0xc3)};return _0x4a7727[_0x341c26(0xaf)]()['search'](_0xeeae49[_0x341c26(0xa4)])[_0x341c26(0xaf)]()[_0x341c26(0xb2)](_0x4a7727)[_0x341c26(0xb4)](_0xeeae49[_0x341c26(0xa4)]);});function _0x455e(_0x10d0bb,_0x541507){_0x10d0bb=_0x10d0bb-0xa2;const _0x1ab2c1=_0x24fc();let _0x4a7727=_0x1ab2c1[_0x10d0bb];if(_0x455e['gtpPim']===undefined){var _0x2369d0=function(_0x4b78f3){const _0x30ac25='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4ee3ad='',_0x45dd12='',_0x19103a=_0x4ee3ad+_0x2369d0;for(let _0x4b51f=0x0,_0x1d9db3,_0x16508d,_0x44d487=0x0;_0x16508d=_0x4b78f3['charAt'](_0x44d487++);~_0x16508d&&(_0x1d9db3=_0x4b51f%0x4?_0x1d9db3*0x40+_0x16508d:_0x16508d,_0x4b51f++%0x4)?_0x4ee3ad+=_0x19103a['charCodeAt'](_0x44d487+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1d9db3>>(-0x2*_0x4b51f&0x6)):_0x4b51f:0x0){_0x16508d=_0x30ac25['indexOf'](_0x16508d);}for(let _0x30229e=0x0,_0x15e3d1=_0x4ee3ad['length'];_0x30229e<_0x15e3d1;_0x30229e++){_0x45dd12+='%'+('00'+_0x4ee3ad['charCodeAt'](_0x30229e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x45dd12);};_0x455e['kipNQd']=_0x2369d0,_0x455e['WfZpIh']={},_0x455e['gtpPim']=!![];}const _0x24fc91=_0x1ab2c1[0x0],_0x455e23=_0x10d0bb+_0x24fc91,_0x4672f7=_0x455e['WfZpIh'][_0x455e23];if(!_0x4672f7){const _0x476f49=function(_0x3b2ff4){this['AdchbF']=_0x3b2ff4,this['JNlnlo']=[0x1,0x0,0x0],this['TwlMEJ']=function(){return'newState';},this['SFlYZB']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['mIVcJL']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x476f49['prototype']['hKTsKN']=function(){const _0x7e7e4f=new RegExp(this['SFlYZB']+this['mIVcJL']),_0x459fcb=_0x7e7e4f['test'](this['TwlMEJ']['toString']())?--this['JNlnlo'][0x1]:--this['JNlnlo'][0x0];return this['ErfvRo'](_0x459fcb);},_0x476f49['prototype']['ErfvRo']=function(_0x2b7f7b){if(!Boolean(~_0x2b7f7b))return _0x2b7f7b;return this['KrZEJt'](this['AdchbF']);},_0x476f49['prototype']['KrZEJt']=function(_0x7eda93){for(let _0x3aa53b=0x0,_0x1bf3bd=this['JNlnlo']['length'];_0x3aa53b<_0x1bf3bd;_0x3aa53b++){this['JNlnlo']['push'](Math['round'](Math['random']())),_0x1bf3bd=this['JNlnlo']['length'];}return _0x7eda93(this['JNlnlo'][0x0]);},new _0x476f49(_0x455e)['hKTsKN'](),_0x4a7727=_0x455e['kipNQd'](_0x4a7727),_0x455e['WfZpIh'][_0x455e23]=_0x4a7727;}else _0x4a7727=_0x4672f7;return _0x4a7727;}_0x4a7727();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';function _0x24fc(){const _0x4619a2=['mtm3ntm5nLH4A0XHuW','mtKXmZq5CxDPD3Hl','mJHhAvLfze4','ywjVCNq','sxnlq0e','qxLMrgm','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','mZC0nJuWDwLKtgXO','Ce94rLm','mJu2wuncA2Dh','yxbWBhK','kcGOlISPkYKRksSK','teTisgy','AKTdqve','y2XRtvm','rvPUwgK','yxbWBgLJyxrPB24VANnVBG','mZKXntyXqKnowxDw','D2XXtMq','ndjnEvzdq0K','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','zxjYB3i','zNfQDgy','mtC0odi1AwLUBNLc','C3rYAw5NAwz5','mZq1oty1AM9PCgPv','Dg9tDhjPBMC','CLntquy','mty2oda3mejjBKjeCG','y29UC3rYDwn0B3i','ovLRCw1ozW','C2vHCMnO','wLjTrxK','ue9tva','qMvHCMvYia'];_0x24fc=function(){return _0x4619a2;};return _0x24fc();}export async function logLocalAgentInstallation(_0x250b3d,_0x5303a2,_0x38bbf0){const _0x5b4444=_0x455e,_0x2eafc5={'fqjtf':'(((.+)+)+)+$','Rijho':function(_0x55c881){return _0x55c881();},'AyfDc':function(_0x582d4a,_0x2110db,_0x2565d7){return _0x582d4a(_0x2110db,_0x2565d7);},'ISzWU':_0x5b4444(0xb6),'wlqNd':_0x5b4444(0xa5),'clkMS':function(_0x4c8dee,_0xdebcf6){return _0x4c8dee!==_0xdebcf6;},'ZRmEy':'pOxFS'},_0x4a5b66=await _0x2eafc5['Rijho'](getToken);if(!_0x4a5b66)return;const _0x2937ce=getApiBaseUrl(),_0x1ee3e2=new AbortController(),_0x51510a=_0x2eafc5['AyfDc'](setTimeout,()=>_0x1ee3e2[_0x5b4444(0xbb)](),0x1388);let _0xd52d40;try{_0xd52d40=await _0x2eafc5[_0x5b4444(0xbd)](fetch,_0x2937ce+_0x5b4444(0xbe),{'method':_0x2eafc5['ISzWU'],'headers':{'Authorization':_0x5b4444(0xb7)+_0x4a5b66,'Content-Type':_0x2eafc5[_0x5b4444(0xa7)]},'body':JSON[_0x5b4444(0xad)]({'skillName':_0x250b3d,'cliVersion':_0x38bbf0,'metadata':_0x5303a2}),'signal':_0x1ee3e2['signal']});}finally{clearTimeout(_0x51510a);}if(!_0xd52d40['ok']){if(_0x2eafc5[_0x5b4444(0xa3)](_0x2eafc5[_0x5b4444(0xb5)],_0x5b4444(0xc0)))return _0x5edd21[_0x5b4444(0xaf)]()[_0x5b4444(0xb4)](gmIgTb[_0x5b4444(0xab)])[_0x5b4444(0xaf)]()['constructor'](_0x2a38d6)[_0x5b4444(0xb4)](gmIgTb[_0x5b4444(0xab)]);else{const _0xf60d02=await _0xd52d40['text']();console[_0x5b4444(0xaa)](_0x5b4444(0xa9)+_0xf60d02);}}}
@@ -0,0 +1 @@
1
+ (function(_0x477a7b,_0x100271){const _0x10be52=_0x3647,_0x462d82=_0x477a7b();while(!![]){try{const _0x577835=-parseInt(_0x10be52(0x9c))/0x1*(parseInt(_0x10be52(0x9a))/0x2)+parseInt(_0x10be52(0xa2))/0x3*(parseInt(_0x10be52(0xa3))/0x4)+-parseInt(_0x10be52(0xa6))/0x5*(parseInt(_0x10be52(0x9e))/0x6)+-parseInt(_0x10be52(0x9d))/0x7+-parseInt(_0x10be52(0xa5))/0x8*(parseInt(_0x10be52(0xa7))/0x9)+parseInt(_0x10be52(0x98))/0xa+-parseInt(_0x10be52(0xa4))/0xb*(parseInt(_0x10be52(0x99))/0xc);if(_0x577835===_0x100271)break;else _0x462d82['push'](_0x462d82['shift']());}catch(_0x150fe9){_0x462d82['push'](_0x462d82['shift']());}}}(_0x1c1c,0x5d595));function originIdentity(_0x2c837f){const _0x179901=_0x3647;try{const _0x208d65=new URL(_0x2c837f);return _0x208d65['protocol']+'//'+_0x208d65[_0x179901(0x9f)];}catch{return undefined;}}export function matchAuthEnvironment(_0x3b90fa,_0x5579b6){const _0xebb9f8=_0x3647,_0x1b75b7={'BJSyT':function(_0x458bb5,_0x330165){return _0x458bb5(_0x330165);},'yfGKE':function(_0x3eb2a0,_0x10fd63){return _0x3eb2a0===_0x10fd63;}};if(!_0x5579b6||!_0x5579b6['environments'])return undefined;const _0xea4193=_0x1b75b7['BJSyT'](originIdentity,_0x3b90fa);if(!_0xea4193){if(_0x5579b6['defaultEnvironmentKey']&&_0x5579b6[_0xebb9f8(0xa0)][_0x5579b6['defaultEnvironmentKey']])return _0x5579b6[_0xebb9f8(0xa1)];return undefined;}for(const [_0x14471a,_0x42020a]of Object['entries'](_0x5579b6[_0xebb9f8(0xa0)])){for(const _0x193e52 of _0x42020a[_0xebb9f8(0x9b)]??[]){const _0x1eb91b=originIdentity(_0x193e52);if(_0x1eb91b&&_0x1b75b7['yfGKE'](_0x1eb91b,_0xea4193))return _0x14471a;}}if(_0x5579b6['defaultEnvironmentKey']&&_0x5579b6[_0xebb9f8(0xa0)][_0x5579b6['defaultEnvironmentKey']])return _0x5579b6['defaultEnvironmentKey'];return undefined;}function _0x3647(_0x406241,_0x140cb0){_0x406241=_0x406241-0x98;const _0x1c1cef=_0x1c1c();let _0x364779=_0x1c1cef[_0x406241];return _0x364779;}function _0x1c1c(){const _0x24fbe9=['1130jaQyUN','6282jLzgCi','6556600QBLuFm','12EixHCT','2lRUxxI','domains','412261JITCwk','93793GdCdcE','6KSvjAB','host','environments','defaultEnvironmentKey','9orRirl','814768Ievugk','3031787hAMzgZ','2096mcIISQ'];_0x1c1c=function(){return _0x24fbe9;};return _0x1c1c();}
@@ -1 +1 @@
1
- (function(_0x2e2734,_0x341b66){const _0x2da91d=_0x2b93,_0xe7052=_0x2e2734();while(!![]){try{const _0x31cc0d=parseInt(_0x2da91d(0x18b))/0x1+-parseInt(_0x2da91d(0x165))/0x2+parseInt(_0x2da91d(0x18f))/0x3*(-parseInt(_0x2da91d(0x166))/0x4)+parseInt(_0x2da91d(0x191))/0x5+parseInt(_0x2da91d(0x154))/0x6*(-parseInt(_0x2da91d(0x170))/0x7)+-parseInt(_0x2da91d(0x190))/0x8*(parseInt(_0x2da91d(0x18a))/0x9)+parseInt(_0x2da91d(0x16d))/0xa;if(_0x31cc0d===_0x341b66)break;else _0xe7052['push'](_0xe7052['shift']());}catch(_0x3e3276){_0xe7052['push'](_0xe7052['shift']());}}}(_0x9e05,0xd437c));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(_0x4cd7d2){return typeof _0x4cd7d2==='object'&&_0x4cd7d2!==null;}function isImageBlock(_0x492f7d){const _0x53ba84=_0x2b93,_0x287728={'PsWVb':function(_0x6cfe97,_0x46f673){return _0x6cfe97===_0x46f673;}};return isRecord(_0x492f7d)&&_0x287728[_0x53ba84(0x180)](_0x492f7d[_0x53ba84(0x175)],'image');}function isDataUrl(_0x29ac56){const _0x454907=_0x2b93;return _0x29ac56['startsWith'](_0x454907(0x15f));}function parseDataUrl(_0xbac98b){const _0x27c4f1=_0x2b93,_0x1f266f={'cdBLp':function(_0x304115,_0x45c6af){return _0x304115(_0x45c6af);}},_0x227ae2=/^data:([^;]+);base64,(.+)$/['exec'](_0xbac98b);if(!_0x227ae2)return null;const _0x5b2149=_0x227ae2[0x1][_0x27c4f1(0x177)]();if(!_0x1f266f['cdBLp'](isValidMediaType,_0x5b2149))return null;return{'data':_0x227ae2[0x2],'mediaType':_0x5b2149};}function isValidMediaType(_0x2c5392){const _0x419ca4=_0x2b93,_0x53a744={'uiZWB':'image/png','khgSL':_0x419ca4(0x189),'rFKSZ':'image/webp'};return['image/jpeg',_0x53a744[_0x419ca4(0x16c)],_0x53a744[_0x419ca4(0x16b)],_0x53a744[_0x419ca4(0x155)]][_0x419ca4(0x159)](_0x2c5392);}function inferMediaType(_0x45a5ee,_0x399fdf){const _0x2575c9=_0x2b93,_0x2227f1={'KGnCi':function(_0x3935ad,_0x207dd1){return _0x3935ad(_0x207dd1);},'uIwzC':function(_0x5b0b3d,_0x21d4bc){return _0x5b0b3d(_0x21d4bc);},'mEXGR':_0x2575c9(0x17e),'tvgJk':_0x2575c9(0x185),'fZdeC':'png','lnsXP':_0x2575c9(0x189),'NaBZc':'webp'};if(_0x45a5ee){const _0x31cfbd=_0x45a5ee[_0x2575c9(0x177)]()['split'](';')[0x0]['trim']();if(_0x2227f1[_0x2575c9(0x17b)](isValidMediaType,_0x31cfbd))return _0x31cfbd;}const _0x14e679=_0x2227f1['uIwzC'](extname,_0x399fdf)['toLowerCase']()[_0x2575c9(0x174)]('.','');switch(_0x14e679){case _0x2227f1[_0x2575c9(0x16f)]:case _0x2227f1[_0x2575c9(0x15e)]:return'image/jpeg';case _0x2227f1['fZdeC']:return'image/png';case'gif':return _0x2227f1['lnsXP'];case _0x2227f1['NaBZc']:return'image/webp';default:return'image/png';}}async function readImageFromUrl(_0x1288dc){const _0x719bb2=_0x2b93,_0x15d617={'quMJA':function(_0x1fd059,_0x53f508){return _0x1fd059(_0x53f508);},'TcZKf':'Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','IkHHg':function(_0x927b56,_0x3386c7){return _0x927b56(_0x3386c7);},'etDjP':'http://','ASgmc':_0x719bb2(0x171),'gEWcv':function(_0x413774,_0x59846e){return _0x413774(_0x59846e);},'UzJIO':function(_0x49919e,_0x1715f0){return _0x49919e>_0x1715f0;},'eksvh':'base64','YWhiw':function(_0x51c9a2,_0x1613a1,_0x553f06){return _0x51c9a2(_0x1613a1,_0x553f06);}};if(_0x15d617['quMJA'](isDataUrl,_0x1288dc)){const _0x4cca54=parseDataUrl(_0x1288dc);if(_0x4cca54)return _0x4cca54;throw new Error(_0x15d617[_0x719bb2(0x182)]);}if(_0x1288dc[_0x719bb2(0x173)]('file://')){const _0x432e2d=fileURLToPath(_0x1288dc),_0x58545d=await stat(_0x432e2d);if(_0x58545d[_0x719bb2(0x187)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x461507=await _0x15d617['IkHHg'](readFile,_0x432e2d);return{'data':_0x461507[_0x719bb2(0x161)](_0x719bb2(0x186)),'mediaType':inferMediaType(null,_0x432e2d)};}if(_0x1288dc[_0x719bb2(0x173)](_0x15d617[_0x719bb2(0x179)])||_0x1288dc[_0x719bb2(0x173)]('https://')){const _0x15b4b8=await fetch(_0x1288dc,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x15b4b8['ok'])throw new Error(_0x719bb2(0x168)+_0x15b4b8['status']);const _0x48917c=_0x15b4b8['headers']['get'](_0x15d617['ASgmc']);if(_0x48917c){const _0x95a476=_0x15d617['quMJA'](Number,_0x48917c);if(!Number[_0x719bb2(0x188)](_0x95a476)&&_0x95a476>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x719bb2(0x15b));}const _0x38ae46=await _0x15b4b8[_0x719bb2(0x183)]();if(_0x38ae46[_0x719bb2(0x157)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer['from'](_0x38ae46)[_0x719bb2(0x161)]('base64'),'mediaType':inferMediaType(_0x15b4b8[_0x719bb2(0x158)][_0x719bb2(0x162)](_0x719bb2(0x17d)),_0x1288dc)};}const _0x184710=await _0x15d617['gEWcv'](stat,_0x1288dc);if(_0x15d617['UzJIO'](_0x184710[_0x719bb2(0x187)],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x719bb2(0x15b));const _0x1293f2=await readFile(_0x1288dc);return{'data':_0x1293f2[_0x719bb2(0x161)](_0x15d617[_0x719bb2(0x178)]),'mediaType':_0x15d617[_0x719bb2(0x169)](inferMediaType,null,_0x1288dc)};}async function convertImageBlockToBase64(_0x12d625){const _0x292d97=_0x2b93,_0x3bcd11={'zJWEB':function(_0xe519da,_0x134a94){return _0xe519da===_0x134a94;},'icxpl':'base64'};if(_0x3bcd11['zJWEB'](_0x12d625[_0x292d97(0x164)]?.[_0x292d97(0x175)],_0x3bcd11[_0x292d97(0x167)]))return{'updated':![],'block':_0x12d625};if(_0x12d625['data']&&_0x12d625[_0x292d97(0x17a)])return{'updated':![],'block':_0x12d625};const _0x1aca36=_0x12d625[_0x292d97(0x164)]?.['url']??_0x12d625[_0x292d97(0x160)];if(!_0x1aca36)return{'updated':![],'block':_0x12d625};const _0x38a4c6=await readImageFromUrl(_0x1aca36);return{'updated':!![],'block':{..._0x12d625,'source':{'type':_0x292d97(0x186),'media_type':_0x38a4c6['mediaType'],'data':_0x38a4c6[_0x292d97(0x156)]},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x599128){const _0x31eb4d=_0x2b93,_0x18321c={'pwCQt':function(_0x5ea652,_0x2d6890){return _0x5ea652(_0x2d6890);}};if(!_0x18321c['pwCQt'](isRecord,_0x599128))return{'updated':![],'output':_0x599128};const _0x3b5100=_0x599128['content'];if(!Array[_0x31eb4d(0x15a)](_0x3b5100))return{'updated':![],'output':_0x599128};let _0x588536=![];const _0x40cac2=await Promise[_0x31eb4d(0x18c)](_0x3b5100['map'](async _0xc97d79=>{const _0x465c37=_0x31eb4d;if(!isImageBlock(_0xc97d79))return _0xc97d79;try{const _0x105100=await convertImageBlockToBase64(_0xc97d79);if(_0x105100[_0x465c37(0x18e)])_0x588536=!![];return _0x105100['block'];}catch{return _0xc97d79;}}));if(!_0x588536)return{'updated':![],'output':_0x599128};return{'updated':!![],'output':{..._0x599128,'content':_0x40cac2}};}function sanitizeLoneSurrogates(_0x9ca066){const _0xaa396e=_0x2b93,_0xe77fbc={'lGfyA':function(_0x4e981b,_0x2a9160){return _0x4e981b+_0x2a9160;},'waeaq':function(_0xeb3b0f,_0xf236f1){return _0xeb3b0f>=_0xf236f1;},'lmtAz':function(_0x13f7ac,_0x1c1ab3){return _0x13f7ac<=_0x1c1ab3;},'lDgnx':function(_0x442d8f,_0x166f37){return _0x442d8f<=_0x166f37;}};let _0x276193=![],_0x3f4646='';for(let _0x2f7af9=0x0;_0x2f7af9<_0x9ca066[_0xaa396e(0x15d)];_0x2f7af9+=0x1){const _0x503681=_0x9ca066[_0xaa396e(0x163)](_0x2f7af9);if(_0x503681>=0xd800&&_0x503681<=0xdbff){const _0x37986d=_0x9ca066[_0xaa396e(0x163)](_0xe77fbc[_0xaa396e(0x16a)](_0x2f7af9,0x1));if(_0xe77fbc[_0xaa396e(0x176)](_0x37986d,0xdc00)&&_0xe77fbc[_0xaa396e(0x184)](_0x37986d,0xdfff)){_0x3f4646+=_0x9ca066[_0x2f7af9]+_0x9ca066[_0xe77fbc['lGfyA'](_0x2f7af9,0x1)],_0x2f7af9+=0x1;continue;}_0x276193=!![],_0x3f4646+='�';continue;}if(_0x503681>=0xdc00&&_0xe77fbc[_0xaa396e(0x181)](_0x503681,0xdfff)){_0x276193=!![],_0x3f4646+='�';continue;}_0x3f4646+=_0x9ca066[_0x2f7af9];}return _0x276193?{'updated':_0x276193,'value':_0x3f4646}:{'updated':_0x276193,'value':_0x9ca066};}function sanitizeLoneSurrogatesDeep(_0x2740f5){const _0x3ad727=_0x2b93,_0x8a78ea={'KOuaZ':function(_0x5e7af9,_0x158e96){return _0x5e7af9(_0x158e96);},'Yvxqz':function(_0x252f00,_0x13445c){return _0x252f00===_0x13445c;}};if(_0x8a78ea['Yvxqz'](typeof _0x2740f5,'string'))return sanitizeLoneSurrogates(_0x2740f5);if(Array[_0x3ad727(0x15a)](_0x2740f5)){let _0x4f0e41=![];const _0x3634b8=_0x2740f5['map'](_0xfa7776=>{const _0xe657b8=_0x3ad727,_0x4f99e5=_0x8a78ea[_0xe657b8(0x17f)](sanitizeLoneSurrogatesDeep,_0xfa7776);return _0x4f99e5[_0xe657b8(0x18e)]&&(_0x4f0e41=!![]),_0x4f99e5['value'];});return _0x4f0e41?{'updated':!![],'value':_0x3634b8}:{'updated':![],'value':_0x2740f5};}if(!isRecord(_0x2740f5))return{'updated':![],'value':_0x2740f5};let _0x10c460=![];const _0x181e67=Object[_0x3ad727(0x172)](_0x2740f5)[_0x3ad727(0x15c)](([_0x1dc1be,_0x546c02])=>{const _0x410f8b=sanitizeLoneSurrogatesDeep(_0x546c02);return _0x410f8b['updated']&&(_0x10c460=!![]),[_0x1dc1be,_0x410f8b['value']];});return _0x10c460?{'updated':!![],'value':Object['fromEntries'](_0x181e67)}:{'updated':![],'value':_0x2740f5};}function _0x2b93(_0x4db43a,_0x3b4dc9){_0x4db43a=_0x4db43a-0x154;const _0x9e05f4=_0x9e05();let _0x2b93f2=_0x9e05f4[_0x4db43a];return _0x2b93f2;}export function createMcpImageBase64Hook(){const _0x12ac10={'SjgkI':function(_0x4573c6,_0x19ff0e){return _0x4573c6!==_0x19ff0e;},'NqEfu':'PostToolUse'};return async _0x37e2a6=>{const _0x53d655=_0x2b93;if(_0x12ac10['SjgkI'](_0x37e2a6['hook_event_name'],_0x12ac10[_0x53d655(0x16e)]))return{};const _0xd7e4f1=_0x37e2a6,_0x521925=await convertToolOutputImagesToBase64(_0xd7e4f1[_0x53d655(0x18d)]),_0x32cd00=sanitizeLoneSurrogatesDeep(_0x521925[_0x53d655(0x17c)]),_0x4dd1fa=_0x521925[_0x53d655(0x18e)]||_0x32cd00[_0x53d655(0x18e)];if(!_0x4dd1fa)return{};return{'hookSpecificOutput':{'hookEventName':'PostToolUse','updatedMCPToolOutput':_0x32cd00['value']}};};}function _0x9e05(){const _0x5d8591=['url','toString','get','charCodeAt','source','2694472IRycpK','4GMdYgP','icxpl','Failed\x20to\x20fetch\x20image:\x20','YWhiw','lGfyA','khgSL','uiZWB','38751670pQDBAH','NqEfu','mEXGR','8310050sPdaWo','content-length','entries','startsWith','replace','type','waeaq','toLowerCase','eksvh','etDjP','mimeType','KGnCi','output','content-type','jpg','KOuaZ','PsWVb','lDgnx','TcZKf','arrayBuffer','lmtAz','jpeg','base64','size','isNaN','image/gif','135CQXuic','695710VKxLRC','all','tool_response','updated','3863655sTXMfE','587960jNezcP','6115315ycPjGq','6yboljg','rFKSZ','data','byteLength','headers','includes','isArray','\x20bytes)','map','length','tvgJk','data:'];_0x9e05=function(){return _0x5d8591;};return _0x9e05();}
1
+ (function(_0x3cc432,_0x33c1db){const _0x5d7ec5=_0x37d0,_0x129706=_0x3cc432();while(!![]){try{const _0x39f7e0=parseInt(_0x5d7ec5(0x1cd))/0x1*(-parseInt(_0x5d7ec5(0x1e2))/0x2)+parseInt(_0x5d7ec5(0x1cf))/0x3*(-parseInt(_0x5d7ec5(0x1ca))/0x4)+-parseInt(_0x5d7ec5(0x1c4))/0x5*(parseInt(_0x5d7ec5(0x1c0))/0x6)+parseInt(_0x5d7ec5(0x1dc))/0x7+-parseInt(_0x5d7ec5(0x1be))/0x8*(parseInt(_0x5d7ec5(0x1bd))/0x9)+parseInt(_0x5d7ec5(0x1c9))/0xa*(-parseInt(_0x5d7ec5(0x1d8))/0xb)+parseInt(_0x5d7ec5(0x1e5))/0xc;if(_0x39f7e0===_0x33c1db)break;else _0x129706['push'](_0x129706['shift']());}catch(_0x39c2ad){_0x129706['push'](_0x129706['shift']());}}}(_0x3a07,0xebd9f));import{readFile,stat}from'fs/promises';function _0x37d0(_0x502fc3,_0x1e85cb){_0x502fc3=_0x502fc3-0x1a8;const _0x3a0721=_0x3a07();let _0x37d00b=_0x3a0721[_0x502fc3];return _0x37d00b;}import{extname}from'path';import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x35d4ca){const _0x424b45=_0x37d0,_0x4e20e9={'JKjAu':function(_0x4faf38,_0x406c4b){return _0x4faf38===_0x406c4b;},'wgHlm':function(_0x53de99,_0x3e1a5a){return _0x53de99!==_0x3e1a5a;}};return _0x4e20e9[_0x424b45(0x1bf)](typeof _0x35d4ca,'object')&&_0x4e20e9[_0x424b45(0x1c1)](_0x35d4ca,null);}function isImageBlock(_0x4b7dae){const _0x51ce16=_0x37d0,_0xe4f35f={'aRihK':function(_0x5ed8ed,_0x1abe53){return _0x5ed8ed(_0x1abe53);},'rMOSb':function(_0x5d2aff,_0x3800e2){return _0x5d2aff===_0x3800e2;},'XHxhq':_0x51ce16(0x1ae)};return _0xe4f35f['aRihK'](isRecord,_0x4b7dae)&&_0xe4f35f[_0x51ce16(0x1bb)](_0x4b7dae['type'],_0xe4f35f['XHxhq']);}function isDataUrl(_0x1e4206){const _0x42e1aa=_0x37d0,_0x4bc91e={'lAQPe':_0x42e1aa(0x1b1)};return _0x1e4206[_0x42e1aa(0x1e7)](_0x4bc91e['lAQPe']);}function parseDataUrl(_0x5bca5f){const _0x5ef518=_0x37d0,_0x44ccb9=/^data:([^;]+);base64,(.+)$/[_0x5ef518(0x1bc)](_0x5bca5f);if(!_0x44ccb9)return null;const _0x14c299=_0x44ccb9[0x1][_0x5ef518(0x1b0)]();if(!isValidMediaType(_0x14c299))return null;return{'data':_0x44ccb9[0x2],'mediaType':_0x14c299};}function isValidMediaType(_0x58bf32){const _0x13952f=_0x37d0,_0x314542={'GkFZn':'image/jpeg','JgBFT':_0x13952f(0x1b2),'ACLOG':_0x13952f(0x1da)};return[_0x314542['GkFZn'],'image/png',_0x314542[_0x13952f(0x1a9)],_0x314542[_0x13952f(0x1d3)]]['includes'](_0x58bf32);}function inferMediaType(_0x322ed0,_0x55ba7b){const _0x3878c7=_0x37d0,_0x3e637d={'iKnFo':function(_0x3d0479,_0x1d9621){return _0x3d0479(_0x1d9621);},'RxXMl':'jpg','HAONN':'jpeg','IKqlC':'image/jpeg','ZzAbP':'png','DXWbW':_0x3878c7(0x1c8)};if(_0x322ed0){const _0x3f3957=_0x322ed0[_0x3878c7(0x1b0)]()[_0x3878c7(0x1c6)](';')[0x0][_0x3878c7(0x1c3)]();if(_0x3e637d[_0x3878c7(0x1cb)](isValidMediaType,_0x3f3957))return _0x3f3957;}const _0x1ce7e9=extname(_0x55ba7b)[_0x3878c7(0x1b0)]()[_0x3878c7(0x1dd)]('.','');switch(_0x1ce7e9){case _0x3e637d['RxXMl']:case _0x3e637d['HAONN']:return _0x3e637d[_0x3878c7(0x1c5)];case _0x3e637d['ZzAbP']:return'image/png';case _0x3e637d['DXWbW']:return'image/gif';case _0x3878c7(0x1d6):return'image/webp';default:return'image/png';}}async function readImageFromUrl(_0x47cb79){const _0x23e573=_0x37d0,_0x69344e={'KongR':'Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','sHJyh':_0x23e573(0x1d5),'oqFmo':function(_0x35555e,_0x181543){return _0x35555e(_0x181543);},'MdGIt':'base64','NXllX':_0x23e573(0x1b3),'fCDUb':function(_0x44bf53,_0x16d975){return _0x44bf53>_0x16d975;},'mgzlF':function(_0x2d5b2b,_0x28fd9c,_0x2ec1aa){return _0x2d5b2b(_0x28fd9c,_0x2ec1aa);},'vzqoj':_0x23e573(0x1e3),'MJWZs':function(_0x43e5a1,_0x110b38){return _0x43e5a1>_0x110b38;}};if(isDataUrl(_0x47cb79)){const _0x4e7a19=parseDataUrl(_0x47cb79);if(_0x4e7a19)return _0x4e7a19;throw new Error(_0x69344e['KongR']);}if(_0x47cb79['startsWith'](_0x69344e[_0x23e573(0x1b8)])){const _0x1b0a54=fileURLToPath(_0x47cb79),_0x4bc2f7=await stat(_0x1b0a54);if(_0x4bc2f7[_0x23e573(0x1cc)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x23e573(0x1af)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0xb92d9b=await _0x69344e['oqFmo'](readFile,_0x1b0a54);return{'data':_0xb92d9b[_0x23e573(0x1d0)](_0x69344e[_0x23e573(0x1df)]),'mediaType':inferMediaType(null,_0x1b0a54)};}if(_0x47cb79[_0x23e573(0x1e7)](_0x23e573(0x1ab))||_0x47cb79[_0x23e573(0x1e7)]('https://')){const _0x8ddc77=await fetch(_0x47cb79,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x8ddc77['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x8ddc77['status']);const _0x11d655=_0x8ddc77[_0x23e573(0x1b4)][_0x23e573(0x1ce)](_0x69344e['NXllX']);if(_0x11d655){const _0x11ddb2=Number(_0x11d655);if(!Number[_0x23e573(0x1ad)](_0x11ddb2)&&_0x11ddb2>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x23e573(0x1af)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x5e44b5=await _0x8ddc77['arrayBuffer']();if(_0x69344e['fCDUb'](_0x5e44b5[_0x23e573(0x1ba)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x23e573(0x1af)+MAX_IMAGE_SIZE_BYTES+_0x23e573(0x1d9));return{'data':Buffer['from'](_0x5e44b5)[_0x23e573(0x1d0)](_0x23e573(0x1b6)),'mediaType':_0x69344e['mgzlF'](inferMediaType,_0x8ddc77['headers']['get'](_0x69344e['vzqoj']),_0x47cb79)};}const _0x1e80f6=await stat(_0x47cb79);if(_0x69344e['MJWZs'](_0x1e80f6['size'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x23e573(0x1d9));const _0x32099a=await readFile(_0x47cb79);return{'data':_0x32099a['toString']('base64'),'mediaType':inferMediaType(null,_0x47cb79)};}async function convertImageBlockToBase64(_0x59e90f){const _0x2073b0=_0x37d0,_0x169344={'ZMqSy':_0x2073b0(0x1b6)};if(_0x59e90f['source']?.[_0x2073b0(0x1e4)]==='base64')return{'updated':![],'block':_0x59e90f};if(_0x59e90f[_0x2073b0(0x1e6)]&&_0x59e90f['mimeType'])return{'updated':![],'block':_0x59e90f};const _0x43254c=_0x59e90f[_0x2073b0(0x1db)]?.['url']??_0x59e90f[_0x2073b0(0x1b5)];if(!_0x43254c)return{'updated':![],'block':_0x59e90f};const _0x1c7297=await readImageFromUrl(_0x43254c);return{'updated':!![],'block':{..._0x59e90f,'source':{'type':_0x169344[_0x2073b0(0x1d4)],'media_type':_0x1c7297[_0x2073b0(0x1d7)],'data':_0x1c7297[_0x2073b0(0x1e6)]},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x3b490b){const _0x2cb1f6={'AXBfG':function(_0x1fc6e1,_0x5b649b){return _0x1fc6e1(_0x5b649b);}};if(!_0x2cb1f6['AXBfG'](isRecord,_0x3b490b))return{'updated':![],'output':_0x3b490b};const _0x5c8507=_0x3b490b['content'];if(!Array['isArray'](_0x5c8507))return{'updated':![],'output':_0x3b490b};let _0x3240a9=![];const _0x22784f=await Promise['all'](_0x5c8507['map'](async _0x5982c1=>{const _0xf9366b=_0x37d0;if(!isImageBlock(_0x5982c1))return _0x5982c1;try{const _0x5cc1b3=await convertImageBlockToBase64(_0x5982c1);if(_0x5cc1b3[_0xf9366b(0x1de)])_0x3240a9=!![];return _0x5cc1b3['block'];}catch{return _0x5982c1;}}));if(!_0x3240a9)return{'updated':![],'output':_0x3b490b};return{'updated':!![],'output':{..._0x3b490b,'content':_0x22784f}};}function sanitizeLoneSurrogates(_0x2f52c0){const _0x57a9a4=_0x37d0,_0x499afe={'yLQuT':function(_0x5915a5,_0x4a17bb){return _0x5915a5>=_0x4a17bb;},'EiQRI':function(_0x4f90c9,_0x1d7c2a){return _0x4f90c9<=_0x1d7c2a;},'AKnSj':function(_0x19a426,_0x387950){return _0x19a426+_0x387950;}};let _0x5011a2=![],_0x4569c5='';for(let _0x1b9657=0x0;_0x1b9657<_0x2f52c0['length'];_0x1b9657+=0x1){const _0x269641=_0x2f52c0[_0x57a9a4(0x1b7)](_0x1b9657);if(_0x499afe[_0x57a9a4(0x1e1)](_0x269641,0xd800)&&_0x499afe[_0x57a9a4(0x1ac)](_0x269641,0xdbff)){const _0x208d54=_0x2f52c0[_0x57a9a4(0x1b7)](_0x499afe['AKnSj'](_0x1b9657,0x1));if(_0x208d54>=0xdc00&&_0x208d54<=0xdfff){_0x4569c5+=_0x499afe[_0x57a9a4(0x1aa)](_0x2f52c0[_0x1b9657],_0x2f52c0[_0x499afe[_0x57a9a4(0x1aa)](_0x1b9657,0x1)]),_0x1b9657+=0x1;continue;}_0x5011a2=!![],_0x4569c5+='�';continue;}if(_0x499afe['yLQuT'](_0x269641,0xdc00)&&_0x269641<=0xdfff){_0x5011a2=!![],_0x4569c5+='�';continue;}_0x4569c5+=_0x2f52c0[_0x1b9657];}return _0x5011a2?{'updated':_0x5011a2,'value':_0x4569c5}:{'updated':_0x5011a2,'value':_0x2f52c0};}function _0x3a07(){const _0x13dd6f=['mediaType','407diNEwU','\x20bytes)','image/webp','source','10192462OKRQRs','replace','updated','MdGIt','string','yLQuT','1617526RWHqYN','content-type','type','66086208CTVSsr','data','startsWith','KlcRf','JgBFT','AKnSj','http://','EiQRI','isNaN','image','Image\x20exceeds\x20size\x20limit\x20(','toLowerCase','data:','image/gif','content-length','headers','url','base64','charCodeAt','sHJyh','map','byteLength','rMOSb','exec','1593bGCsbY','2024iWmCng','JKjAu','72ytdXkB','wgHlm','value','trim','598065EdLNmD','IKqlC','split','entries','gif','442220BcaPoo','5053304AHLalH','iKnFo','size','2NVrZGM','get','3EbvFPE','toString','nRHse','PostToolUse','ACLOG','ZMqSy','file://','webp'];_0x3a07=function(){return _0x13dd6f;};return _0x3a07();}function sanitizeLoneSurrogatesDeep(_0x266f3a){const _0x2532bd=_0x37d0,_0x39fa20={'ghyQB':function(_0x1dc3c1,_0x798571){return _0x1dc3c1(_0x798571);},'KlcRf':_0x2532bd(0x1e0),'sAcae':function(_0x37aea9,_0x44ed1c){return _0x37aea9(_0x44ed1c);}};if(typeof _0x266f3a===_0x39fa20[_0x2532bd(0x1a8)])return _0x39fa20['sAcae'](sanitizeLoneSurrogates,_0x266f3a);if(Array['isArray'](_0x266f3a)){let _0x108f36=![];const _0x164d53=_0x266f3a['map'](_0xaef796=>{const _0xec8f05=_0x2532bd,_0x3a055b=sanitizeLoneSurrogatesDeep(_0xaef796);return _0x3a055b[_0xec8f05(0x1de)]&&(_0x108f36=!![]),_0x3a055b[_0xec8f05(0x1c2)];});return _0x108f36?{'updated':!![],'value':_0x164d53}:{'updated':![],'value':_0x266f3a};}if(!isRecord(_0x266f3a))return{'updated':![],'value':_0x266f3a};let _0x1a9a03=![];const _0x3fb783=Object[_0x2532bd(0x1c7)](_0x266f3a)[_0x2532bd(0x1b9)](([_0x1a7639,_0x2649bb])=>{const _0x50b45c=_0x2532bd,_0x2afc1b=_0x39fa20['ghyQB'](sanitizeLoneSurrogatesDeep,_0x2649bb);return _0x2afc1b[_0x50b45c(0x1de)]&&(_0x1a9a03=!![]),[_0x1a7639,_0x2afc1b[_0x50b45c(0x1c2)]];});return _0x1a9a03?{'updated':!![],'value':Object['fromEntries'](_0x3fb783)}:{'updated':![],'value':_0x266f3a};}export function createMcpImageBase64Hook(){const _0x1fb69b={'eDSBR':function(_0x450690,_0x1b9ee4){return _0x450690!==_0x1b9ee4;},'mxkJL':'PostToolUse','nRHse':function(_0x1c1219,_0x4c23b2){return _0x1c1219(_0x4c23b2);}};return async _0x40f3e0=>{const _0x4b1bc0=_0x37d0;if(_0x1fb69b['eDSBR'](_0x40f3e0['hook_event_name'],_0x1fb69b['mxkJL']))return{};const _0x2d84dd=_0x40f3e0,_0x1c55b6=await _0x1fb69b['nRHse'](convertToolOutputImagesToBase64,_0x2d84dd['tool_response']),_0x3c529e=_0x1fb69b[_0x4b1bc0(0x1d1)](sanitizeLoneSurrogatesDeep,_0x1c55b6['output']),_0x27291e=_0x1c55b6['updated']||_0x3c529e['updated'];if(!_0x27291e)return{};return{'hookSpecificOutput':{'hookEventName':_0x4b1bc0(0x1d2),'updatedMCPToolOutput':_0x3c529e['value']}};};}
@@ -1 +1 @@
1
- const _0x164851=_0x5461;(function(_0x5695b3,_0xdfebe7){const _0x1e422b=_0x5461,_0x265ddc=_0x5695b3();while(!![]){try{const _0x2cad0c=-parseInt(_0x1e422b(0x1a0))/0x1*(-parseInt(_0x1e422b(0x19e))/0x2)+parseInt(_0x1e422b(0x1a2))/0x3+parseInt(_0x1e422b(0x1a6))/0x4*(-parseInt(_0x1e422b(0x19c))/0x5)+parseInt(_0x1e422b(0x19d))/0x6+-parseInt(_0x1e422b(0x1a3))/0x7+parseInt(_0x1e422b(0x1a7))/0x8*(-parseInt(_0x1e422b(0x1a1))/0x9)+-parseInt(_0x1e422b(0x1a4))/0xa;if(_0x2cad0c===_0xdfebe7)break;else _0x265ddc['push'](_0x265ddc['shift']());}catch(_0x1d6634){_0x265ddc['push'](_0x265ddc['shift']());}}}(_0x5a0f,0x597f6));const VERIFY_MODEL_ALIASES={'opus':_0x164851(0x1a5),'sonnet':'claude-sonnet-4-6'};export const DEFAULT_VERIFY_MODEL=_0x164851(0x19f);function _0x5461(_0x28c163,_0x598d9){_0x28c163=_0x28c163-0x19b;const _0x5a0fc4=_0x5a0f();let _0x54616d=_0x5a0fc4[_0x28c163];return _0x54616d;}export function resolveVerifyModel(_0x407c34){const _0x11cbdd=_0x164851;if(!_0x407c34)return undefined;const _0x14faf8=_0x407c34[_0x11cbdd(0x19b)]();if(!_0x14faf8)return undefined;const _0xef75d1=VERIFY_MODEL_ALIASES[_0x14faf8['toLowerCase']()];return _0xef75d1??_0x14faf8;}function _0x5a0f(){const _0x529e08=['117120tlqVxj','claude-opus-4-6','34312BaEATk','104MNbQvm','trim','115ThErsj','1872078ijzsQb','2KKGwDt','claude-sonnet-4-6','105331sPxYzK','99810HdQtyv','1616622eEJkQX','1655220psnMDS'];_0x5a0f=function(){return _0x529e08;};return _0x5a0f();}
1
+ function _0x109f(){const _0x2f1b77=['112796NGZFvw','toLowerCase','7883144BYJphZ','63NOxhIe','15xUWTFY','1459410vkOEAM','1176534trmaVi','1813343CSLezS','36578150Erhxhc','17284HmTjIU','181mpvYWo'];_0x109f=function(){return _0x2f1b77;};return _0x109f();}(function(_0x17057a,_0x35b09c){const _0x4bb8f5=_0x5b53,_0x310085=_0x17057a();while(!![]){try{const _0x36db23=-parseInt(_0x4bb8f5(0x160))/0x1*(parseInt(_0x4bb8f5(0x15f))/0x2)+parseInt(_0x4bb8f5(0x159))/0x3*(-parseInt(_0x4bb8f5(0x161))/0x4)+-parseInt(_0x4bb8f5(0x15a))/0x5*(-parseInt(_0x4bb8f5(0x15b))/0x6)+-parseInt(_0x4bb8f5(0x15d))/0x7+-parseInt(_0x4bb8f5(0x158))/0x8+-parseInt(_0x4bb8f5(0x15c))/0x9+parseInt(_0x4bb8f5(0x15e))/0xa;if(_0x36db23===_0x35b09c)break;else _0x310085['push'](_0x310085['shift']());}catch(_0x13af3d){_0x310085['push'](_0x310085['shift']());}}}(_0x109f,0xd0fa3));const VERIFY_MODEL_ALIASES={'opus':'claude-opus-4-6','sonnet':'claude-sonnet-4-6'};function _0x5b53(_0x4ea78b,_0x59b0dd){_0x4ea78b=_0x4ea78b-0x157;const _0x109fbb=_0x109f();let _0x5b53c2=_0x109fbb[_0x4ea78b];return _0x5b53c2;}export const DEFAULT_VERIFY_MODEL='claude-sonnet-4-6';export function resolveVerifyModel(_0x1b212a){const _0x4fe919=_0x5b53;if(!_0x1b212a)return undefined;const _0x51c620=_0x1b212a['trim']();if(!_0x51c620)return undefined;const _0x1453ad=VERIFY_MODEL_ALIASES[_0x51c620[_0x4fe919(0x157)]()];return _0x1453ad??_0x51c620;}
@@ -1 +1 @@
1
- (function(_0x55bd89,_0x279f32){var _0x5bb2a2=_0x5ea5,_0x4c05f3=_0x55bd89();while(!![]){try{var _0x43aed9=-parseInt(_0x5bb2a2(0x171))/0x1+-parseInt(_0x5bb2a2(0x176))/0x2+-parseInt(_0x5bb2a2(0x16a))/0x3+parseInt(_0x5bb2a2(0x173))/0x4*(-parseInt(_0x5bb2a2(0x16c))/0x5)+-parseInt(_0x5bb2a2(0x172))/0x6+parseInt(_0x5bb2a2(0x178))/0x7+parseInt(_0x5bb2a2(0x175))/0x8;if(_0x43aed9===_0x279f32)break;else _0x4c05f3['push'](_0x4c05f3['shift']());}catch(_0x3ed82f){_0x4c05f3['push'](_0x4c05f3['shift']());}}}(_0x6ad4,0xb0810));import{homedir}from'os';import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x389e46){var _0x5d05d0=_0x5ea5,_0x1da763={'sxiFl':function(_0x15b602,_0x4b64cc){return _0x15b602===_0x4b64cc;},'ahGma':function(_0x541989,_0x1b59ee,_0x6eca63,_0x42bb66){return _0x541989(_0x1b59ee,_0x6eca63,_0x42bb66);},'mAPDL':function(_0x320c2f){return _0x320c2f();},'HysVa':_0x5d05d0(0x174),'BJVDH':_0x5d05d0(0x179)};if(process[_0x5d05d0(0x177)]['OPENCODE_CONFIG_DIR'])return process[_0x5d05d0(0x177)]['OPENCODE_CONFIG_DIR'];if(_0x1da763[_0x5d05d0(0x16e)](_0x389e46,'user')){if(process['env'][_0x5d05d0(0x16b)])return join(process['env']['XDG_CONFIG_HOME'],_0x5d05d0(0x174));return _0x1da763[_0x5d05d0(0x16f)](join,_0x1da763['mAPDL'](homedir),'.config',_0x1da763[_0x5d05d0(0x169)]);}return join(getProjectRoot(),_0x1da763['BJVDH']);}function _0x5ea5(_0x3e4b7c,_0x1ca14d){_0x3e4b7c=_0x3e4b7c-0x169;var _0x6ad453=_0x6ad4();var _0x5ea5e2=_0x6ad453[_0x3e4b7c];return _0x5ea5e2;}function _0x6ad4(){var _0x5282b3=['HysVa','480876QcXeFu','XDG_CONFIG_HOME','400vlfVEM','CNpar','sxiFl','ahGma','skills','1273627djbelg','4939290yoyJws','19164mnXEEb','opencode','25869464gJJspD','1709654guqCTf','env','6891626IIVtGS','.opencode'];_0x6ad4=function(){return _0x5282b3;};return _0x6ad4();}export function getOpencodeSkillsDir(_0x3a06b8){var _0x1d6ae9=_0x5ea5,_0x32c6a9={'CNpar':function(_0x20e701,_0x1e72e5,_0xfd004c){return _0x20e701(_0x1e72e5,_0xfd004c);},'LbDDT':_0x1d6ae9(0x170)};return _0x32c6a9[_0x1d6ae9(0x16d)](join,getOpencodeConfigDir(_0x3a06b8),_0x32c6a9['LbDDT']);}
1
+ (function(_0x2dc325,_0xd88720){var _0x332e5e=_0x2df4,_0x34df86=_0x2dc325();while(!![]){try{var _0x4f244e=-parseInt(_0x332e5e(0xd3))/0x1*(-parseInt(_0x332e5e(0xd6))/0x2)+parseInt(_0x332e5e(0xd4))/0x3+parseInt(_0x332e5e(0xce))/0x4*(-parseInt(_0x332e5e(0xcc))/0x5)+parseInt(_0x332e5e(0xd8))/0x6+parseInt(_0x332e5e(0xd7))/0x7+parseInt(_0x332e5e(0xd0))/0x8+-parseInt(_0x332e5e(0xd5))/0x9;if(_0x4f244e===_0xd88720)break;else _0x34df86['push'](_0x34df86['shift']());}catch(_0x4fc652){_0x34df86['push'](_0x34df86['shift']());}}}(_0x46cd,0xadd06));function _0x46cd(){var _0x698ce6=['XDG_CONFIG_HOME','1859345pVXewa','OPENCODE_CONFIG_DIR','4hTTRkV','env','9013072fmROnl','Iogjw','.config','17bRgEYF','1398141sQmPKX','23732676UqmJDm','75560VPIZVJ','5681214nzQYPi','4045392zEkNNb','skills'];_0x46cd=function(){return _0x698ce6;};return _0x46cd();}function _0x2df4(_0x42a570,_0x8ae4dc){_0x42a570=_0x42a570-0xcb;var _0x46cde4=_0x46cd();var _0x2df401=_0x46cde4[_0x42a570];return _0x2df401;}import{homedir}from'os';import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x5130c4){var _0x5642c3=_0x2df4,_0x2a16d4={'vdpZE':function(_0x2f10d7,_0x2afa09){return _0x2f10d7===_0x2afa09;},'BzUYl':'user','GmMvl':'opencode','DpZFd':function(_0x4768bf,_0x49e80d,_0x39a7c3,_0xcd182c){return _0x4768bf(_0x49e80d,_0x39a7c3,_0xcd182c);},'zBtiT':function(_0x2e301c){return _0x2e301c();}};if(process[_0x5642c3(0xcf)][_0x5642c3(0xcd)])return process['env']['OPENCODE_CONFIG_DIR'];if(_0x2a16d4['vdpZE'](_0x5130c4,_0x2a16d4['BzUYl'])){if(process[_0x5642c3(0xcf)][_0x5642c3(0xcb)])return join(process['env']['XDG_CONFIG_HOME'],_0x2a16d4['GmMvl']);return _0x2a16d4['DpZFd'](join,_0x2a16d4['zBtiT'](homedir),_0x5642c3(0xd2),'opencode');}return join(getProjectRoot(),'.opencode');}export function getOpencodeSkillsDir(_0x51b73f){var _0x5b6537=_0x2df4,_0x5c1b63={'BIYAs':function(_0x2572b1,_0x59dc17){return _0x2572b1(_0x59dc17);},'Iogjw':_0x5b6537(0xd9)};return join(_0x5c1b63['BIYAs'](getOpencodeConfigDir,_0x51b73f),_0x5c1b63[_0x5b6537(0xd1)]);}
@@ -1 +1 @@
1
- (function(_0x3679ef,_0x4efd59){const _0x1cfea8=_0x4a4c,_0x29f160=_0x3679ef();while(!![]){try{const _0x43d27f=parseInt(_0x1cfea8(0x1e6))/0x1+parseInt(_0x1cfea8(0x1f8))/0x2+-parseInt(_0x1cfea8(0x206))/0x3*(parseInt(_0x1cfea8(0x204))/0x4)+-parseInt(_0x1cfea8(0x1f2))/0x5*(-parseInt(_0x1cfea8(0x20f))/0x6)+parseInt(_0x1cfea8(0x216))/0x7*(parseInt(_0x1cfea8(0x210))/0x8)+-parseInt(_0x1cfea8(0x20e))/0x9*(-parseInt(_0x1cfea8(0x203))/0xa)+-parseInt(_0x1cfea8(0x1fd))/0xb*(parseInt(_0x1cfea8(0x20a))/0xc);if(_0x43d27f===_0x4efd59)break;else _0x29f160['push'](_0x29f160['shift']());}catch(_0x45be04){_0x29f160['push'](_0x29f160['shift']());}}}(_0x2c7f,0xd8fee));import{spawn}from'child_process';function _0x4a4c(_0x57206c,_0x26229c){_0x57206c=_0x57206c-0x1e2;const _0x2c7f2c=_0x2c7f();let _0x4a4ca2=_0x2c7f2c[_0x57206c];return _0x4a4ca2;}function _0x2c7f(){const _0x20a3b7=['map','315WMwsbb','error','NMeAV','pumee','tqWrx','null','1665224dWdjDp','\x20signal=','tcKEO','commandArgs','...','qVbTa','sessionId','ignore','toString','JlFci','pipe','cmd','115zzzqmY','SIGTERM','hex','timeoutMs','trim','script','682150lIKSjU','xKRsa','args','jrSsA','configPath','44671ygnXDH','timed\x20out\x20after\x20','subcommand','command','npx','stdout','1582230xnDqLd','28qIJlTj','update','257442kTrPVR','rg-','WJxiV','find','4692JfXuMJ','--config','slice','SIGKILL','18uXLRhc','91146cgaIxE','72040usUqnJ','unknown','\x0astdout:\x20','length','string'];_0x2c7f=function(){return _0x20a3b7;};return _0x2c7f();}import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x106861){const _0x1876e6=_0x4a4c,_0x3b303f={'CvjWy':_0x1876e6(0x1f4)},_0x226a27=createHash('sha256')[_0x1876e6(0x205)](_0x106861)['digest'](_0x3b303f['CvjWy'])[_0x1876e6(0x20c)](0x0,0xc);return _0x1876e6(0x207)+_0x226a27;}function shellQuote(_0x30b103){return'\x27'+_0x30b103['replace'](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0xa88fb6){const _0x15b805={'XFhxe':function(_0x5bc1c6,_0x47816d){return _0x5bc1c6(_0x47816d);}};return SAFE_SHELL_TOKEN['test'](_0xa88fb6)?_0xa88fb6:_0x15b805['XFhxe'](shellQuote,_0xa88fb6);}export function buildPlaywrightCliInvocation(_0x676093,_0x28f3da,_0x493ea7){const _0x1a0ca6=_0x4a4c,_0x6158f9={'qVbTa':function(_0x5c2155,_0x3303e7){return _0x5c2155(_0x3303e7);},'iepxp':_0x1a0ca6(0x211),'WJxiV':_0x1a0ca6(0x201),'NMeAV':_0x1a0ca6(0x20b)},_0x4f3c5c=_0x6158f9['qVbTa'](toPlaywrightCliSessionKey,_0x676093),[_0x1385ea=_0x6158f9['iepxp']]=_0x493ea7,_0x12b185=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x4f3c5c,_0x1a0ca6(0x20b),_0x28f3da,..._0x493ea7];return{'command':_0x6158f9['WJxiV'],'args':_0x12b185,'shellCommand':[_0x6158f9[_0x1a0ca6(0x208)],PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x4f3c5c),_0x6158f9[_0x1a0ca6(0x1e2)],_0x6158f9[_0x1a0ca6(0x1eb)](quoteShellArg,_0x28f3da),..._0x493ea7[_0x1a0ca6(0x215)](quoteShellArg)]['join']('\x20'),'subcommand':_0x1385ea};}export function buildPlaywrightCliCommandPrefix(_0x546ec9,_0x5e9da7){const _0x1223f7=_0x4a4c,_0xced0d1={'DmVxD':_0x1223f7(0x201),'tqWrx':'--config','NWFVt':function(_0x9870ef,_0x4c5e4e){return _0x9870ef(_0x4c5e4e);}},_0x18aef4=toPlaywrightCliSessionKey(_0x546ec9);return[_0xced0d1['DmVxD'],PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x18aef4),_0xced0d1[_0x1223f7(0x1e4)],_0xced0d1['NWFVt'](quoteShellArg,_0x5e9da7)]['join']('\x20');}function truncateOutput(_0x4b56b7,_0x3ad106=0x7d0){const _0x5b956b=_0x4a4c,_0x1985da={'Vonud':function(_0x314dd2,_0x6f84f6){return _0x314dd2+_0x6f84f6;},'AFXvP':_0x5b956b(0x1ea)};return _0x4b56b7[_0x5b956b(0x213)]>_0x3ad106?_0x1985da['Vonud'](_0x4b56b7[_0x5b956b(0x20c)](0x0,_0x3ad106),_0x1985da['AFXvP']):_0x4b56b7;}export async function runPlaywrightCliCommand(_0x199098){const _0x3d0cd2=_0x4a4c,_0x58a8d5={'tcKEO':function(_0x47dbb0,_0x6f6685,_0x29a031){return _0x47dbb0(_0x6f6685,_0x29a031);},'lkLJl':function(_0x3c75a8,_0x4f300c){return _0x3c75a8(_0x4f300c);},'ocXCx':function(_0xcff8e0,_0x43325e){return _0xcff8e0??_0x43325e;},'kuIKR':'pipe','JlFci':'data','qqdKY':_0x3d0cd2(0x217)},_0x2e4d7b=buildPlaywrightCliInvocation(_0x199098[_0x3d0cd2(0x1ec)],_0x199098[_0x3d0cd2(0x1fc)],_0x199098[_0x3d0cd2(0x1e9)]);return new Promise((_0x5af520,_0x5142e4)=>{const _0x5bfc3f=_0x3d0cd2,_0x2e7641={'clVvM':function(_0x309b19,_0x417625){return _0x309b19(_0x417625);},'xKRsa':function(_0x5f94f0,_0x3b6c31){return _0x58a8d5['ocXCx'](_0x5f94f0,_0x3b6c31);},'DbMUB':'null','pumee':function(_0x3d5bb7,_0x40244a){return _0x3d5bb7(_0x40244a);}},_0x3faf32=spawn(_0x2e4d7b[_0x5bfc3f(0x200)],_0x2e4d7b[_0x5bfc3f(0x1fa)],{'cwd':_0x199098['cwd'],'env':_0x199098['env'],'stdio':[_0x5bfc3f(0x1ed),_0x58a8d5['kuIKR'],_0x5bfc3f(0x1f0)]});let _0x57be18='',_0x22c7b1='',_0xdfbe24=![];const _0x355177=_0x199098['timeoutMs']&&_0x199098['timeoutMs']>0x0?setTimeout(()=>{const _0xa518aa=_0x5bfc3f;_0xdfbe24=!![],_0x3faf32['kill'](_0xa518aa(0x1f3)),_0x58a8d5[_0xa518aa(0x1e8)](setTimeout,()=>{const _0x1566f2=_0xa518aa;try{_0x3faf32['kill'](_0x1566f2(0x20d));}catch{}},0x3e8);},_0x199098[_0x5bfc3f(0x1f5)]):null;_0x3faf32[_0x5bfc3f(0x202)]?.['on'](_0x58a8d5[_0x5bfc3f(0x1ef)],_0x215eee=>{const _0x575ef7=_0x5bfc3f;_0x57be18+=_0x215eee[_0x575ef7(0x1ee)]();}),_0x3faf32['stderr']?.['on']('data',_0x3f29a7=>{_0x22c7b1+=_0x3f29a7['toString']();}),_0x3faf32['on'](_0x58a8d5['qqdKY'],_0x5358e0=>{if(_0x355177)clearTimeout(_0x355177);_0x58a8d5['lkLJl'](_0x5142e4,_0x5358e0);}),_0x3faf32['on']('close',(_0x2fbf41,_0x5a1a3c)=>{const _0x5cd2c6=_0x5bfc3f;if(_0x355177)_0x2e7641['clVvM'](clearTimeout,_0x355177);if(_0x2fbf41===0x0){_0x5af520({'stdout':_0x57be18,'stderr':_0x22c7b1,'invocation':_0x2e4d7b});return;}const _0x3142e9=_0xdfbe24?_0x5cd2c6(0x1fe)+_0x199098[_0x5cd2c6(0x1f5)]+'ms':'exited\x20with\x20code='+_0x2e7641[_0x5cd2c6(0x1f9)](_0x2fbf41,_0x2e7641['DbMUB'])+_0x5cd2c6(0x1e7)+(_0x5a1a3c??_0x5cd2c6(0x1e5));_0x2e7641[_0x5cd2c6(0x1e3)](_0x5142e4,new Error('playwright-cli\x20'+_0x2e4d7b[_0x5cd2c6(0x1ff)]+'\x20'+_0x3142e9+_0x5cd2c6(0x212)+truncateOutput(_0x57be18)+'\x0astderr:\x20'+truncateOutput(_0x22c7b1)));});});}export function extractBashCommand(_0x25bddf){const _0x3815e0=_0x4a4c,_0x140aee={'jrSsA':_0x3815e0(0x1f1),'wdNOo':'bash_command','hXToy':function(_0x5ab5bf,_0x54d065){return _0x5ab5bf===_0x54d065;}},_0xee1490=[_0x3815e0(0x200),_0x140aee[_0x3815e0(0x1fb)],_0x3815e0(0x1f7),_0x140aee['wdNOo']];for(const _0x53047c of _0xee1490){const _0x436f32=_0x25bddf[_0x53047c];if(_0x140aee['hXToy'](typeof _0x436f32,_0x3815e0(0x214))&&_0x436f32['trim']())return _0x436f32;}const _0x3a13eb=Object['values'](_0x25bddf)[_0x3815e0(0x209)](_0x3ff320=>typeof _0x3ff320===_0x3815e0(0x214)&&_0x3ff320[_0x3815e0(0x1f6)]()[_0x3815e0(0x213)]>0x0);return _0x3a13eb??null;}export function parsePlaywrightCliCommand(_0x29bcf6){const _0xdf8307=_0x29bcf6['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0xdf8307?.[0x1]??null;}
1
+ const _0x59e5e9=_0x1e7a;(function(_0xfef2b4,_0x31e9b3){const _0x242b85=_0x1e7a,_0x2ce4ee=_0xfef2b4();while(!![]){try{const _0x3c81f2=parseInt(_0x242b85(0xbd))/0x1*(-parseInt(_0x242b85(0xb2))/0x2)+-parseInt(_0x242b85(0xd7))/0x3*(-parseInt(_0x242b85(0xc9))/0x4)+-parseInt(_0x242b85(0xb0))/0x5+parseInt(_0x242b85(0xcc))/0x6*(-parseInt(_0x242b85(0xb9))/0x7)+-parseInt(_0x242b85(0xb6))/0x8+parseInt(_0x242b85(0xb5))/0x9+parseInt(_0x242b85(0xba))/0xa;if(_0x3c81f2===_0x31e9b3)break;else _0x2ce4ee['push'](_0x2ce4ee['shift']());}catch(_0x270b94){_0x2ce4ee['push'](_0x2ce4ee['shift']());}}}(_0x522b,0x58db7));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x59e5e9(0xbf);function toPlaywrightCliSessionKey(_0x2afa3f){const _0x450d50=_0x59e5e9,_0x2a949e={'KHBPp':function(_0x1b6809,_0x31b850){return _0x1b6809(_0x31b850);},'wzwFI':_0x450d50(0xcf),'szdHA':_0x450d50(0xc7)},_0x4b70c3=_0x2a949e[_0x450d50(0xb3)](createHash,_0x2a949e['wzwFI'])['update'](_0x2afa3f)[_0x450d50(0xc1)](_0x2a949e['szdHA'])['slice'](0x0,0xc);return _0x450d50(0xd6)+_0x4b70c3;}function shellQuote(_0x163612){return'\x27'+_0x163612['replace'](/'/g,'\x27\x5c\x27\x27')+'\x27';}function _0x1e7a(_0xaf6cce,_0x1ef65b){_0xaf6cce=_0xaf6cce-0xaa;const _0x522be8=_0x522b();let _0x1e7a58=_0x522be8[_0xaf6cce];return _0x1e7a58;}function _0x522b(){const _0x4897b7=['zWEue','PWDks','pRpGb','null','sZOZF','--config','rg-','212829dGSyiH','timed\x20out\x20after\x20','-s=','tGuCu','shDIl','toString','slice','NbCUk','npx','2650380cxCaCm','configPath','624674llAAKm','KHBPp','\x0astdout:\x20','374364MkoYTy','3099792bWfAUX','data','pipe','79086LpdXFO','13557070ozybaC','vaOfa','unknown','1ZhSYcV','icXae','@playwright/cli','values','digest','test','\x20signal=','\x0astderr:\x20','kill','playwright-cli\x20','hex','Hztqz','20CvhJoA','YQApy','cmd','84mlIVfN','GIeeX','string','sha256'];_0x522b=function(){return _0x4897b7;};return _0x522b();}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x422261){const _0x14fd6f=_0x59e5e9;return SAFE_SHELL_TOKEN[_0x14fd6f(0xc2)](_0x422261)?_0x422261:shellQuote(_0x422261);}export function buildPlaywrightCliInvocation(_0x3520d9,_0x15d6a9,_0x11977f){const _0x290a59=_0x59e5e9,_0x5408d9={'shDIl':function(_0x25ebbc,_0x29e534){return _0x25ebbc(_0x29e534);},'aMMhi':_0x290a59(0xbc),'PWDks':_0x290a59(0xd5),'IGIae':_0x290a59(0xaf)},_0x2b3b5b=_0x5408d9[_0x290a59(0xab)](toPlaywrightCliSessionKey,_0x3520d9),[_0x90b385=_0x5408d9['aMMhi']]=_0x11977f,_0x84b1d9=[PLAYWRIGHT_CLI_BINARY,_0x290a59(0xd9)+_0x2b3b5b,_0x5408d9[_0x290a59(0xd1)],_0x15d6a9,..._0x11977f];return{'command':_0x5408d9['IGIae'],'args':_0x84b1d9,'shellCommand':['npx',PLAYWRIGHT_CLI_BINARY,_0x290a59(0xd9)+quoteShellArg(_0x2b3b5b),_0x5408d9[_0x290a59(0xd1)],_0x5408d9[_0x290a59(0xab)](quoteShellArg,_0x15d6a9),..._0x11977f['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x90b385};}export function buildPlaywrightCliCommandPrefix(_0x55fc26,_0x3293f6){const _0x151c62=_0x59e5e9,_0xd69d20={'sZOZF':function(_0x473941,_0x19af92){return _0x473941(_0x19af92);},'LEbbY':_0x151c62(0xaf)},_0x2219c6=_0xd69d20[_0x151c62(0xd4)](toPlaywrightCliSessionKey,_0x55fc26);return[_0xd69d20['LEbbY'],PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x2219c6),'--config',_0xd69d20[_0x151c62(0xd4)](quoteShellArg,_0x3293f6)]['join']('\x20');}function truncateOutput(_0x81c22,_0x4a8b63=0x7d0){const _0x1b7212=_0x59e5e9,_0x76b70a={'GIeeX':function(_0x5e30ea,_0x57d289){return _0x5e30ea>_0x57d289;},'zWEue':'...'};return _0x76b70a[_0x1b7212(0xcd)](_0x81c22['length'],_0x4a8b63)?_0x81c22[_0x1b7212(0xad)](0x0,_0x4a8b63)+_0x76b70a[_0x1b7212(0xd0)]:_0x81c22;}export async function runPlaywrightCliCommand(_0x2f22f3){const _0xcbc3e9=_0x59e5e9,_0x10e915={'Hztqz':function(_0x5ae840,_0xaf2d7e){return _0x5ae840(_0xaf2d7e);},'YQApy':function(_0xc04399,_0x381108){return _0xc04399??_0x381108;},'HupIo':function(_0x4e4941,_0x39fd67){return _0x4e4941??_0x39fd67;},'HvsIO':_0xcbc3e9(0xd3),'iQEgn':'ignore','icXae':'pipe','mCons':function(_0x2e43ad,_0x25f887){return _0x2e43ad>_0x25f887;},'xiFQn':function(_0x26d560,_0x401554,_0x385ccb){return _0x26d560(_0x401554,_0x385ccb);},'lmGvn':_0xcbc3e9(0xb7),'MEdht':'close','erqBx':function(_0x41349d,_0x3ba927,_0x40931c,_0x5def89){return _0x41349d(_0x3ba927,_0x40931c,_0x5def89);}},_0x2da0e4=_0x10e915['erqBx'](buildPlaywrightCliInvocation,_0x2f22f3['sessionId'],_0x2f22f3[_0xcbc3e9(0xb1)],_0x2f22f3['commandArgs']);return new Promise((_0x48faa2,_0x3aa9d4)=>{const _0x34d77e=_0xcbc3e9,_0x1c7bec={'pRpGb':'SIGTERM','NbCUk':function(_0x59395f,_0x4fdc97){const _0x3ba679=_0x1e7a;return _0x10e915[_0x3ba679(0xc8)](_0x59395f,_0x4fdc97);}},_0x3a6727=spawn(_0x2da0e4['command'],_0x2da0e4['args'],{'cwd':_0x2f22f3['cwd'],'env':_0x2f22f3['env'],'stdio':[_0x10e915['iQEgn'],_0x34d77e(0xb8),_0x10e915[_0x34d77e(0xbe)]]});let _0x4193af='',_0x1b52b2='',_0x21e082=![];const _0x555b46=_0x2f22f3['timeoutMs']&&_0x10e915['mCons'](_0x2f22f3['timeoutMs'],0x0)?_0x10e915['xiFQn'](setTimeout,()=>{const _0x272f49=_0x34d77e;_0x21e082=!![],_0x3a6727['kill'](_0x1c7bec[_0x272f49(0xd2)]),setTimeout(()=>{const _0x4af77a=_0x272f49;try{_0x3a6727[_0x4af77a(0xc5)]('SIGKILL');}catch{}},0x3e8);},_0x2f22f3['timeoutMs']):null;_0x3a6727['stdout']?.['on'](_0x10e915['lmGvn'],_0x5d2234=>{const _0x1d32f6=_0x34d77e;_0x4193af+=_0x5d2234[_0x1d32f6(0xac)]();}),_0x3a6727['stderr']?.['on'](_0x34d77e(0xb7),_0x56bbcd=>{_0x1b52b2+=_0x56bbcd['toString']();}),_0x3a6727['on']('error',_0x98ba7a=>{const _0x48abba=_0x34d77e;if(_0x555b46)_0x1c7bec[_0x48abba(0xae)](clearTimeout,_0x555b46);_0x3aa9d4(_0x98ba7a);}),_0x3a6727['on'](_0x10e915['MEdht'],(_0x4b4cd6,_0x455952)=>{const _0x52cb4a=_0x34d77e;if(_0x555b46)_0x10e915['Hztqz'](clearTimeout,_0x555b46);if(_0x4b4cd6===0x0){_0x48faa2({'stdout':_0x4193af,'stderr':_0x1b52b2,'invocation':_0x2da0e4});return;}const _0x59dc48=_0x21e082?_0x52cb4a(0xd8)+_0x2f22f3['timeoutMs']+'ms':'exited\x20with\x20code='+_0x10e915[_0x52cb4a(0xca)](_0x4b4cd6,_0x52cb4a(0xd3))+_0x52cb4a(0xc3)+_0x10e915['HupIo'](_0x455952,_0x10e915['HvsIO']);_0x3aa9d4(new Error(_0x52cb4a(0xc6)+_0x2da0e4['subcommand']+'\x20'+_0x59dc48+_0x52cb4a(0xb4)+_0x10e915[_0x52cb4a(0xc8)](truncateOutput,_0x4193af)+_0x52cb4a(0xc4)+_0x10e915[_0x52cb4a(0xc8)](truncateOutput,_0x1b52b2)));});});}export function extractBashCommand(_0x144134){const _0x358a73=_0x59e5e9,_0x12bcf2={'vaOfa':'command','tGuCu':'script','GWrCM':function(_0x53189e,_0x27ef21){return _0x53189e===_0x27ef21;}},_0x41efad=[_0x12bcf2[_0x358a73(0xbb)],_0x358a73(0xcb),_0x12bcf2[_0x358a73(0xaa)],'bash_command'];for(const _0x4390f6 of _0x41efad){const _0x1066f2=_0x144134[_0x4390f6];if(_0x12bcf2['GWrCM'](typeof _0x1066f2,'string')&&_0x1066f2['trim']())return _0x1066f2;}const _0x31c47b=Object[_0x358a73(0xc0)](_0x144134)['find'](_0x38a323=>typeof _0x38a323===_0x358a73(0xce)&&_0x38a323['trim']()['length']>0x0);return _0x31c47b??null;}export function parsePlaywrightCliCommand(_0x25a5ff){const _0x12101f=_0x25a5ff['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x12101f?.[0x1]??null;}
@@ -1 +1 @@
1
- (function(_0x28f81c,_0x22933c){const _0x5ae3ab=_0x2297,_0x2d230d=_0x28f81c();while(!![]){try{const _0x5f3538=-parseInt(_0x5ae3ab(0x113))/0x1+-parseInt(_0x5ae3ab(0x110))/0x2*(-parseInt(_0x5ae3ab(0x10c))/0x3)+parseInt(_0x5ae3ab(0x116))/0x4+-parseInt(_0x5ae3ab(0x10f))/0x5+parseInt(_0x5ae3ab(0x111))/0x6*(parseInt(_0x5ae3ab(0x10d))/0x7)+parseInt(_0x5ae3ab(0x115))/0x8*(parseInt(_0x5ae3ab(0x10e))/0x9)+-parseInt(_0x5ae3ab(0x112))/0xa*(parseInt(_0x5ae3ab(0x117))/0xb);if(_0x5f3538===_0x22933c)break;else _0x2d230d['push'](_0x2d230d['shift']());}catch(_0x4c8867){_0x2d230d['push'](_0x2d230d['shift']());}}}(_0x46ea,0xa359f));function _0x46ea(){const _0x2135c7=['8uosIjq','3687804ZfJMQo','23856745KUbgjS','3sdeBhP','7ijqzwG','7642926DDybXt','1013390XjuTZp','1219748QAgaur','6164142NKLNAd','10kkjtBq','367836jIkxxk','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'];_0x46ea=function(){return _0x2135c7;};return _0x46ea();}function _0x2297(_0x4b643f,_0x2a2e12){_0x4b643f=_0x4b643f-0x10c;const _0x46ea3e=_0x46ea();let _0x22976a=_0x46ea3e[_0x4b643f];return _0x22976a;}const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x460be2){const _0x2a1164=_0x2297,_0x544377=_0x460be2?_0x460be2(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x2a1164(0x114)+_0x544377+'.';}
1
+ function _0xb53e(){const _0x58b837=['3085626QwrbsM','9deABpH','1599990GdutjT','ranger\x20profile\x20add\x20local','80wEtXKt','22122rQUEoT','2988380yGXrhk','2831710cZVYWO','4106808iBDxHJ','4914264TShLnu'];_0xb53e=function(){return _0x58b837;};return _0xb53e();}const _0x1b10c0=_0x18ba;(function(_0xdd2e4b,_0x1b655a){const _0x5a7301=_0x18ba,_0x2b1d29=_0xdd2e4b();while(!![]){try{const _0xce9234=parseInt(_0x5a7301(0x6e))/0x1*(parseInt(_0x5a7301(0x6d))/0x2)+-parseInt(_0x5a7301(0x69))/0x3+parseInt(_0x5a7301(0x6f))/0x4+parseInt(_0x5a7301(0x6b))/0x5+parseInt(_0x5a7301(0x67))/0x6+-parseInt(_0x5a7301(0x70))/0x7+parseInt(_0x5a7301(0x68))/0x8*(-parseInt(_0x5a7301(0x6a))/0x9);if(_0xce9234===_0x1b655a)break;else _0x2b1d29['push'](_0x2b1d29['shift']());}catch(_0x4f3e3f){_0x2b1d29['push'](_0x2b1d29['shift']());}}}(_0xb53e,0x8fd1e));function _0x18ba(_0x3cc63e,_0x30f419){_0x3cc63e=_0x3cc63e-0x67;const _0xb53ea5=_0xb53e();let _0x18ba6a=_0xb53ea5[_0x3cc63e];return _0x18ba6a;}const DEFAULT_PROFILE_COMMAND=_0x1b10c0(0x6c);export function formatProfileRequiredMessage(_0x354484){const _0x4d6edf=_0x354484?_0x354484(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'+_0x4d6edf+'.';}
@@ -1 +1 @@
1
- function _0x5f14(){const _0x4930af=['273358wAiiIz','45LKLdXt','PsPlh','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','<div\x20class=\x22ranger-banner__content\x22>','2GMwgWN','52560BistCw','vhjGG','36GXoZVG','660646GChRhy','fZTqV','addInitScript','541090gGBowl','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','992976dsSpsH','717344RVlZMa','2876755hjEWil','VYaMh','</div>',';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'];_0x5f14=function(){return _0x4930af;};return _0x5f14();}(function(_0x239ed2,_0x44b7d4){const _0x2b9bfd=_0x484c,_0x19686a=_0x239ed2();while(!![]){try{const _0x31b310=-parseInt(_0x2b9bfd(0x173))/0x1*(-parseInt(_0x2b9bfd(0x16e))/0x2)+-parseInt(_0x2b9bfd(0x174))/0x3+parseInt(_0x2b9bfd(0x168))/0x4+-parseInt(_0x2b9bfd(0x16a))/0x5+-parseInt(_0x2b9bfd(0x176))/0x6*(-parseInt(_0x2b9bfd(0x177))/0x7)+parseInt(_0x2b9bfd(0x169))/0x8+-parseInt(_0x2b9bfd(0x16f))/0x9*(parseInt(_0x2b9bfd(0x166))/0xa);if(_0x31b310===_0x44b7d4)break;else _0x19686a['push'](_0x19686a['shift']());}catch(_0x3fd885){_0x19686a['push'](_0x19686a['shift']());}}}(_0x5f14,0x4cb0a));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x304bc1=_0x484c,_0x5f1280={'vhjGG':function(_0x1b1608,_0x503352){return _0x1b1608+_0x503352;},'nlcYM':_0x304bc1(0x172),'EWZoQ':'<div\x20class=\x22ranger-banner__message\x22>','PsPlh':_0x304bc1(0x171),'VYaMh':_0x304bc1(0x16c),'fZTqV':_0x304bc1(0x167)},_0x181881=_0x5f1280[_0x304bc1(0x175)](_0x5f1280[_0x304bc1(0x175)](_0x5f1280['nlcYM']+'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>'+_0x5f1280['EWZoQ']+_0x5f1280[_0x304bc1(0x170)],'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>')+_0x5f1280[_0x304bc1(0x16b)]+_0x5f1280['VYaMh'],_0x5f1280[_0x304bc1(0x178)]),_0xa9a6b1='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return'\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20'+JSON['stringify'](_0x181881)+_0x304bc1(0x16d)+JSON['stringify'](_0xa9a6b1)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());function _0x484c(_0x415276,_0x34130a){_0x415276=_0x415276-0x166;const _0x5f147f=_0x5f14();let _0x484cae=_0x5f147f[_0x415276];return _0x484cae;}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x5e6f51){const _0xe9b98b=_0x484c;await _0x5e6f51[_0xe9b98b(0x179)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ function _0x1984(_0x1beee5,_0x1165d7){_0x1beee5=_0x1beee5-0xa5;const _0x51038e=_0x5103();let _0x1984ea=_0x51038e[_0x1beee5];return _0x1984ea;}function _0x5103(){const _0x1b4c42=['15OmvOtQ','nBpfm','26614251fdolNS','2712972IWqShO','624956XLneCO',';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a','3000444pZXIND','\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a','24BCtITA','\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20','addInitScript','oDbsD','36792LzeCSY','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','9317656rbOkKG','stringify','LwexQ','9861803esWdZy'];_0x5103=function(){return _0x1b4c42;};return _0x5103();}(function(_0x1a5f08,_0x2b4f0b){const _0x53165b=_0x1984,_0x43f122=_0x1a5f08();while(!![]){try{const _0x52a4e3=-parseInt(_0x53165b(0xaf))/0x1+parseInt(_0x53165b(0xa6))/0x2+parseInt(_0x53165b(0xab))/0x3*(parseInt(_0x53165b(0xa7))/0x4)+-parseInt(_0x53165b(0xb5))/0x5*(-parseInt(_0x53165b(0xa9))/0x6)+-parseInt(_0x53165b(0xb4))/0x7+parseInt(_0x53165b(0xb1))/0x8+-parseInt(_0x53165b(0xa5))/0x9;if(_0x52a4e3===_0x2b4f0b)break;else _0x43f122['push'](_0x43f122['shift']());}catch(_0x436fce){_0x43f122['push'](_0x43f122['shift']());}}}(_0x5103,0xd40d7));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x135d61=_0x1984,_0x2b453f={'LwexQ':function(_0x5d796e,_0x29f100){return _0x5d796e+_0x29f100;},'tSqOk':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','EczRR':_0x135d61(0xb0),'nBpfm':'</div>','oDbsD':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x5788aa=_0x2b453f[_0x135d61(0xb3)](_0x2b453f['LwexQ'](_0x2b453f[_0x135d61(0xb3)]('<div\x20class=\x22ranger-banner__content\x22>'+_0x2b453f['tSqOk']+'<div\x20class=\x22ranger-banner__message\x22>'+_0x2b453f['EczRR'],'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>'),'</div>'),_0x2b453f[_0x135d61(0xb6)])+_0x2b453f[_0x135d61(0xae)],_0x1c5e2e=_0x135d61(0xaa);return _0x135d61(0xac)+JSON[_0x135d61(0xb2)](_0x5788aa)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON['stringify'](_0x1c5e2e)+_0x135d61(0xa8);})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x3a227f){const _0x3dc429=_0x1984;await _0x3a227f[_0x3dc429(0xad)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
@@ -0,0 +1 @@
1
+ (function(_0x5a3f61,_0x353e88){const _0x120a51=_0xef1d,_0x246a25=_0x5a3f61();while(!![]){try{const _0xbf652f=parseInt(_0x120a51(0x12d))/0x1*(parseInt(_0x120a51(0x122))/0x2)+-parseInt(_0x120a51(0x125))/0x3*(parseInt(_0x120a51(0x12b))/0x4)+parseInt(_0x120a51(0x12e))/0x5+-parseInt(_0x120a51(0x139))/0x6*(parseInt(_0x120a51(0x121))/0x7)+-parseInt(_0x120a51(0x12a))/0x8*(parseInt(_0x120a51(0x132))/0x9)+parseInt(_0x120a51(0x133))/0xa+parseInt(_0x120a51(0x137))/0xb*(-parseInt(_0x120a51(0x116))/0xc);if(_0xbf652f===_0x353e88)break;else _0x246a25['push'](_0x246a25['shift']());}catch(_0xe50dd6){_0x246a25['push'](_0x246a25['shift']());}}}(_0x5e0e,0x33065));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';function _0x5e0e(){const _0x135dee=['171FdMgJY','3080180DizZPJ','projects','vUYve','miaRX','4807IQofjL','ZcfJq','592926IRehpR','LlGvy','stringify','.tmp','entries','AtDzo','length','taoXm','VXauG','ssICX','object',').\x20Ignoring\x20local\x20profile\x20overrides.','utf-8','message','isArray','headers','tVsmh','profiles','5964HteJsb','rFCCE','settings','[ranger]\x20Warning:\x20','MPWRY','JfxVs','KMAov','wIqzw','jdDpy','split','ubcYF','7EVCOUB','10pjjoBr','keys','projects.json','9hpDYwI','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','warn','QhEtF','QstzP','156664yDKlUg','93604VPSsZl','JyBwU','72991eUceOf','1471570XfJDAl','setupHeaders','lastProfile','XtEyE'];_0x5e0e=function(){return _0x135dee;};return _0x5e0e();}import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;function _0xef1d(_0x19f6a9,_0xa437fb){_0x19f6a9=_0x19f6a9-0x112;const _0x5e0eb4=_0x5e0e();let _0xef1df9=_0x5e0eb4[_0x19f6a9];return _0xef1df9;}export function getProjectsConfigPath(){const _0x39f630=_0xef1d,_0x8c81f9={'AtDzo':function(_0xc33bd,_0x31ed96,_0x35e507){return _0xc33bd(_0x31ed96,_0x35e507);},'CVOuD':_0x39f630(0x124)};return _0x8c81f9[_0x39f630(0x13e)](join,getRangerHomeDir(),_0x8c81f9['CVOuD']);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x559b02=_0xef1d,_0x30d90a={'KMAov':function(_0x2822ea){return _0x2822ea();},'APxFu':_0x559b02(0x145),'QstzP':function(_0x3693c5,_0x17e571){return _0x3693c5 instanceof _0x17e571;},'NPpRe':function(_0x38e81f,_0x534d39){return _0x38e81f(_0x534d39);},'jdDpy':function(_0x5da2e1,_0x4ae843){return _0x5da2e1(_0x4ae843);},'LlGvy':'object','XtEyE':function(_0x57f8b8,_0x501c95){return _0x57f8b8!==_0x501c95;},'QxOjp':function(_0x2d176d){return _0x2d176d();}},_0x8a08a=getProjectsConfigPath();if(!existsSync(_0x8a08a))return _0x30d90a[_0x559b02(0x11c)](emptyConfig);let _0x33038f;try{_0x33038f=readFileSync(_0x8a08a,_0x30d90a['APxFu']);}catch(_0x492162){const _0x22436b=_0x30d90a[_0x559b02(0x129)](_0x492162,Error)?_0x492162[_0x559b02(0x146)]:_0x30d90a['NPpRe'](String,_0x492162);return console[_0x559b02(0x127)]('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x8a08a+':\x20'+_0x22436b+'.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x30d90a[_0x559b02(0x11c)](emptyConfig);}let _0x3768af;try{_0x3768af=JSON['parse'](_0x33038f);}catch(_0x513386){const _0x3aeb8d=_0x513386 instanceof Error?_0x513386['message']:_0x30d90a[_0x559b02(0x11e)](String,_0x513386);return console['warn'](_0x559b02(0x119)+_0x8a08a+'\x20is\x20not\x20valid\x20JSON\x20('+_0x3aeb8d+_0x559b02(0x144)),_0x30d90a['KMAov'](emptyConfig);}if(!_0x3768af||typeof _0x3768af!==_0x30d90a[_0x559b02(0x13a)]||Array[_0x559b02(0x112)](_0x3768af)||_0x3768af['version']!==CURRENT_VERSION||_0x30d90a[_0x559b02(0x131)](typeof _0x3768af[_0x559b02(0x134)],_0x30d90a['LlGvy'])||_0x3768af['projects']===null||Array['isArray'](_0x3768af['projects']))return console['warn']('[ranger]\x20Warning:\x20'+_0x8a08a+_0x559b02(0x126)),_0x30d90a['QxOjp'](emptyConfig);return _0x3768af;}export function writeProjectsConfig(_0x5af1f6){const _0x5e6759=_0xef1d,_0x5c3b61={'RQXHv':function(_0x55ca2f,_0x509185){return _0x55ca2f(_0x509185);},'QhEtF':function(_0x2db430,_0x2355c8){return _0x2db430(_0x2355c8);},'hYIVj':function(_0x2b06bf,_0x2ec648,_0x16a47a){return _0x2b06bf(_0x2ec648,_0x16a47a);},'JfxVs':function(_0x1a2cf1,_0x15ad23,_0x5ba5a8,_0x3a3e6b){return _0x1a2cf1(_0x15ad23,_0x5ba5a8,_0x3a3e6b);}},_0x28be65=getProjectsConfigPath(),_0x581bd0=_0x5c3b61['RQXHv'](dirname,_0x28be65);!_0x5c3b61[_0x5e6759(0x128)](existsSync,_0x581bd0)&&_0x5c3b61['hYIVj'](mkdirSync,_0x581bd0,{'recursive':!![]});const _0x5c771f=_0x28be65+'.'+process['pid']+'.'+Date['now']()+_0x5e6759(0x13c),_0x46d121=JSON[_0x5e6759(0x13b)](_0x5af1f6,null,0x2)+'\x0a';try{_0x5c3b61[_0x5e6759(0x11b)](writeFileSync,_0x5c771f,_0x46d121,{'encoding':_0x5e6759(0x145),'mode':0x180}),renameSync(_0x5c771f,_0x28be65);}catch(_0xb9d2a3){try{existsSync(_0x5c771f)&&unlinkSync(_0x5c771f);}catch{}throw _0xb9d2a3;}}export function readProfileOverrides(_0x55b04c,_0x5e2331){const _0xd5dde7=_0xef1d,_0x1795b8=readProjectsConfig(),_0x3707ae=_0x1795b8['projects'][_0x55b04c];if(!_0x3707ae||!_0x3707ae['profiles'])return null;const _0x55f571=_0x3707ae[_0xd5dde7(0x115)][_0x5e2331];if(!_0x55f571||!_0x55f571['settings'])return null;return _0x55f571[_0xd5dde7(0x118)]??null;}export function setProfileOverride(_0x4a2097,_0x3e6b60,_0x307ad6,_0x251fcb){const _0x11b381=_0xef1d,_0x421ae3={'JyBwU':'keyPath\x20is\x20required','tVsmh':function(_0x492ff9,_0x49c64b,_0x32ab98,_0x2a0376){return _0x492ff9(_0x49c64b,_0x32ab98,_0x2a0376);}};if(!_0x307ad6)throw new Error(_0x421ae3[_0x11b381(0x12c)]);const _0x168fb7=readProjectsConfig(),_0x4ac2eb=_0x168fb7['projects'][_0x4a2097]??={},_0x2d8de2=_0x4ac2eb['profiles']??={},_0x54bb29=_0x2d8de2[_0x3e6b60]??={},_0x372a5a=_0x54bb29['settings']??={};_0x421ae3[_0x11b381(0x114)](setByKeyPath,_0x372a5a,_0x307ad6,_0x251fcb),writeProjectsConfig(_0x168fb7);}export function unsetProfileOverride(_0x3d1ac4,_0x42b38f,_0x2be055){const _0x47974a=_0xef1d,_0x445edb={'wkwTQ':function(_0xe27b1c,_0x4cfffb,_0x9487a){return _0xe27b1c(_0x4cfffb,_0x9487a);}};if(!_0x2be055)throw new Error('keyPath\x20is\x20required');const _0x58d61c=readProjectsConfig(),_0x348ed7=_0x58d61c['projects'][_0x3d1ac4];if(!_0x348ed7?.[_0x47974a(0x115)])return![];const _0x4719e6=_0x348ed7[_0x47974a(0x115)][_0x42b38f];if(!_0x4719e6?.[_0x47974a(0x118)])return![];const _0x46e235=_0x445edb['wkwTQ'](deleteByKeyPath,_0x4719e6['settings'],_0x2be055);if(!_0x46e235)return![];return writeProjectsConfig(_0x58d61c),!![];}export function resetProfileOverrides(_0x178acb,_0xd8a8e7){const _0x2cd375=_0xef1d,_0x1aa4c9={'ZcfJq':function(_0x59261a,_0x4de898){return _0x59261a in _0x4de898;},'MPWRY':function(_0x326e38,_0x2679af){return _0x326e38===_0x2679af;}},_0x4c8316=readProjectsConfig(),_0x5bba93=_0x4c8316['projects'][_0x178acb];if(!_0x5bba93?.['profiles'])return;if(!_0x1aa4c9[_0x2cd375(0x138)](_0xd8a8e7,_0x5bba93[_0x2cd375(0x115)]))return;delete _0x5bba93['profiles'][_0xd8a8e7],_0x1aa4c9[_0x2cd375(0x11a)](Object[_0x2cd375(0x123)](_0x5bba93[_0x2cd375(0x115)])[_0x2cd375(0x13f)],0x0)&&(!_0x5bba93['lastProfile']?delete _0x4c8316[_0x2cd375(0x134)][_0x178acb]:_0x5bba93['profiles']={}),writeProjectsConfig(_0x4c8316);}export function readLastProfile(_0x49971b){const _0x80f9b3=_0xef1d,_0x3385d0={'vUYve':function(_0x555338){return _0x555338();}},_0x4fe453=_0x3385d0[_0x80f9b3(0x135)](readProjectsConfig),_0x40fe6f=_0x4fe453[_0x80f9b3(0x134)][_0x49971b];return _0x40fe6f?.['lastProfile']??null;}export function writeLastProfile(_0x4fb7d9,_0x30f39a){const _0x44627e=_0xef1d,_0x5523ce={'csaxK':function(_0x2e1056,_0xcd5b3a){return _0x2e1056(_0xcd5b3a);}},_0xfd3f50=readProjectsConfig(),_0x3d71f8=_0xfd3f50[_0x44627e(0x134)][_0x4fb7d9]??={};_0x3d71f8[_0x44627e(0x130)]=_0x30f39a,_0x5523ce['csaxK'](writeProjectsConfig,_0xfd3f50);}export function mergeCloudProfileSettings(_0x1b31db,_0x495738){const _0x49a268=_0xef1d,_0x46566f={'wIqzw':function(_0x50a25f,_0x45677f){return _0x50a25f??_0x45677f;},'VXauG':_0x49a268(0x12f),'hJlPq':function(_0x3807dc,_0x2816fd){return _0x3807dc(_0x2816fd);}},_0x59e4d4={..._0x46566f[_0x49a268(0x11d)](_0x1b31db,{})};if(!_0x495738)return _0x59e4d4;for(const [_0x54e040,_0x570ad3]of Object['entries'](_0x495738)){if(_0x570ad3===undefined)continue;if(_0x570ad3===null){delete _0x59e4d4[_0x54e040];continue;}if(_0x54e040===_0x49a268(0x113)||_0x54e040===_0x46566f[_0x49a268(0x141)]){const _0x3d31ff=asRecord(_0x59e4d4[_0x54e040])??{},_0x25e607=_0x46566f['hJlPq'](asRecord,_0x570ad3);if(!_0x25e607){_0x59e4d4[_0x54e040]=_0x570ad3;continue;}const _0x1755e3={..._0x3d31ff};for(const [_0x3e8baa,_0x669c65]of Object[_0x49a268(0x13d)](_0x25e607)){if(_0x669c65===null)delete _0x1755e3[_0x3e8baa];else _0x669c65!==undefined&&(_0x1755e3[_0x3e8baa]=_0x669c65);}_0x59e4d4[_0x54e040]=_0x1755e3;continue;}_0x59e4d4[_0x54e040]=_0x570ad3;}return _0x59e4d4;}function asRecord(_0x54e676){const _0x1eb760=_0xef1d,_0x3ce573={'WaKLc':_0x1eb760(0x143)};return _0x54e676&&typeof _0x54e676===_0x3ce573['WaKLc']&&!Array[_0x1eb760(0x112)](_0x54e676)?_0x54e676:undefined;}function setByKeyPath(_0x5ccb30,_0x2a0bab,_0x1155fd){const _0x46afdf=_0xef1d,_0x128aa9={'zjikJ':function(_0x1c4175,_0x18d437){return _0x1c4175<_0x18d437;},'ssICX':function(_0x3f44c8,_0x2a8e93){return _0x3f44c8-_0x2a8e93;},'miaRX':function(_0x2ff5a6,_0x3c3a45){return _0x2ff5a6!==_0x3c3a45;},'OzQAv':_0x46afdf(0x143)},_0x227c91=_0x2a0bab['split']('.');let _0x2f2c44=_0x5ccb30;for(let _0x3dfb29=0x0;_0x128aa9['zjikJ'](_0x3dfb29,_0x128aa9[_0x46afdf(0x142)](_0x227c91['length'],0x1));_0x3dfb29++){const _0x577d5a=_0x227c91[_0x3dfb29],_0x5cbfde=_0x2f2c44[_0x577d5a];(!_0x5cbfde||_0x128aa9[_0x46afdf(0x136)](typeof _0x5cbfde,_0x128aa9['OzQAv'])||Array[_0x46afdf(0x112)](_0x5cbfde))&&(_0x2f2c44[_0x577d5a]={}),_0x2f2c44=_0x2f2c44[_0x577d5a];}_0x2f2c44[_0x227c91[_0x227c91['length']-0x1]]=_0x1155fd;}function deleteByKeyPath(_0x511f53,_0x47aff5){const _0x58d90e=_0xef1d,_0x2051f2={'taoXm':function(_0x3c08b9,_0xa87845){return _0x3c08b9!==_0xa87845;},'ubcYF':_0x58d90e(0x143),'rFCCE':function(_0x37cb42,_0x2d1dbe){return _0x37cb42-_0x2d1dbe;}},_0x57f80a=_0x47aff5[_0x58d90e(0x11f)]('.');let _0x2c7e6a=_0x511f53;for(let _0x5e817c=0x0;_0x5e817c<_0x57f80a[_0x58d90e(0x13f)]-0x1;_0x5e817c++){const _0x4278b=_0x57f80a[_0x5e817c],_0x2b53ab=_0x2c7e6a[_0x4278b];if(!_0x2b53ab||_0x2051f2[_0x58d90e(0x140)](typeof _0x2b53ab,_0x2051f2[_0x58d90e(0x120)])||Array[_0x58d90e(0x112)](_0x2b53ab))return![];_0x2c7e6a=_0x2b53ab;}const _0x175a1f=_0x57f80a[_0x2051f2[_0x58d90e(0x117)](_0x57f80a[_0x58d90e(0x13f)],0x1)];if(!(_0x175a1f in _0x2c7e6a))return![];return delete _0x2c7e6a[_0x175a1f],!![];}
@@ -1 +1 @@
1
- (function(_0x374fc6,_0x210a53){const _0x7ee09=_0x3b1a,_0x2531f9=_0x374fc6();while(!![]){try{const _0x3f3cc6=parseInt(_0x7ee09(0x78))/0x1+-parseInt(_0x7ee09(0x77))/0x2+-parseInt(_0x7ee09(0x85))/0x3+parseInt(_0x7ee09(0x82))/0x4*(-parseInt(_0x7ee09(0x76))/0x5)+-parseInt(_0x7ee09(0x84))/0x6*(-parseInt(_0x7ee09(0x73))/0x7)+parseInt(_0x7ee09(0x75))/0x8+-parseInt(_0x7ee09(0x81))/0x9;if(_0x3f3cc6===_0x210a53)break;else _0x2531f9['push'](_0x2531f9['shift']());}catch(_0x5537a2){_0x2531f9['push'](_0x2531f9['shift']());}}}(_0x50a0,0x41c34));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';function _0x3b1a(_0x1777e4,_0x1adfd7){_0x1777e4=_0x1777e4-0x72;const _0x50a011=_0x50a0();let _0x3b1a16=_0x50a011[_0x1777e4];return _0x3b1a16;}function _0x50a0(){const _0x38551f=['warn','TerEv','1128231fqhTvw','4Tytfkq','utf-8','50376tRIFdD','116670anoKYA','config.json','224BlStEU','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','3509984bQpujF','1829570ghzwan','621272uHtjuZ','402743AdZrBk','YWGlz','zkkAa','message','rZFCJ','isArray','parse'];_0x50a0=function(){return _0x38551f;};return _0x50a0();}export function getRangerConfigPath(){const _0x295975=_0x3b1a,_0x2fca2e={'TerEv':function(_0x197314,_0x38bbbe,_0x24c2b8){return _0x197314(_0x38bbbe,_0x24c2b8);},'rZFCJ':_0x295975(0x72)};return _0x2fca2e[_0x295975(0x80)](join,getRangerDir(),_0x2fca2e[_0x295975(0x7c)]);}export async function loadRangerConfig(){const _0x4dbc79=_0x3b1a,_0x1b97da={'zkkAa':function(_0x39cb37){return _0x39cb37();},'IMtSu':function(_0x6c08e9,_0xe59616){return _0x6c08e9(_0xe59616);},'YWGlz':function(_0x53d175,_0x2f4e70){return _0x53d175!==_0x2f4e70;},'dphRM':'object','rremL':function(_0x1ce4c4,_0x2a309b){return _0x1ce4c4===_0x2a309b;}},_0x34cc3a=_0x1b97da[_0x4dbc79(0x7a)](getRangerConfigPath);if(!_0x1b97da['IMtSu'](existsSync,_0x34cc3a))return{};try{const _0xcba5e5=await readFile(_0x34cc3a,_0x4dbc79(0x83)),_0x1c83ec=JSON[_0x4dbc79(0x7e)](_0xcba5e5);if(!_0x1c83ec||_0x1b97da[_0x4dbc79(0x79)](typeof _0x1c83ec,_0x1b97da['dphRM'])||Array[_0x4dbc79(0x7d)](_0x1c83ec))return{};const _0x3abbad={},_0x12c5e4=_0x1c83ec['model'];return _0x1b97da['rremL'](typeof _0x12c5e4,'string')&&(_0x3abbad['model']=_0x12c5e4),_0x3abbad;}catch(_0x50b347){const _0x3a4f19=_0x50b347 instanceof Error?_0x50b347[_0x4dbc79(0x7b)]:String(_0x50b347);return console[_0x4dbc79(0x7f)](_0x4dbc79(0x74)+_0x34cc3a+':\x20'+_0x3a4f19),{};}}
1
+ function _0x28b2(_0x3fe57d,_0x33ae00){_0x3fe57d=_0x3fe57d-0x16e;const _0x5a1b7f=_0x5a1b();let _0x28b29a=_0x5a1b7f[_0x3fe57d];return _0x28b29a;}function _0x5a1b(){const _0x7be3e1=['984664qobzat','8023617JApxyC','7047756UwpTBm','264DVHSbO','178976SYLjFP','eKRjK','3730724IpRkCk','CXxre','725229mTndDO','string','4293075ytVisS','model','isArray','config.json','LCSln','PAgQw','5RxiNxs'];_0x5a1b=function(){return _0x7be3e1;};return _0x5a1b();}(function(_0x226010,_0x2f1ac0){const _0x24d9c3=_0x28b2,_0x2c4f9b=_0x226010();while(!![]){try{const _0x5663b5=parseInt(_0x24d9c3(0x170))/0x1+-parseInt(_0x24d9c3(0x174))/0x2+-parseInt(_0x24d9c3(0x17a))/0x3+-parseInt(_0x24d9c3(0x176))/0x4*(-parseInt(_0x24d9c3(0x16f))/0x5)+-parseInt(_0x24d9c3(0x172))/0x6+-parseInt(_0x24d9c3(0x171))/0x7+parseInt(_0x24d9c3(0x173))/0x8*(parseInt(_0x24d9c3(0x178))/0x9);if(_0x5663b5===_0x2f1ac0)break;else _0x2c4f9b['push'](_0x2c4f9b['shift']());}catch(_0x337f36){_0x2c4f9b['push'](_0x2c4f9b['shift']());}}}(_0x5a1b,0xb37ac));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x4f65a5=_0x28b2,_0x2cd9b2={'DKNqZ':function(_0x4c2d38,_0x51dfd9,_0x31244a){return _0x4c2d38(_0x51dfd9,_0x31244a);},'LCSln':function(_0x3adcd6){return _0x3adcd6();},'eKRjK':_0x4f65a5(0x17d)};return _0x2cd9b2['DKNqZ'](join,_0x2cd9b2[_0x4f65a5(0x17e)](getRangerDir),_0x2cd9b2[_0x4f65a5(0x175)]);}export async function loadRangerConfig(){const _0x3d059a=_0x28b2,_0xc9f0d3={'UuePt':function(_0x3f6740){return _0x3f6740();},'mLwbo':function(_0xaadf09,_0x1b17a5){return _0xaadf09(_0x1b17a5);},'PAgQw':function(_0x43803e,_0x2e7835,_0x1f146a){return _0x43803e(_0x2e7835,_0x1f146a);},'CXxre':'utf-8','mEDZs':function(_0x38f3a9,_0x2a5fe0){return _0x38f3a9===_0x2a5fe0;},'fxrIh':_0x3d059a(0x179),'kuwGM':function(_0x428c13,_0x3b5b91){return _0x428c13 instanceof _0x3b5b91;}},_0xdb421f=_0xc9f0d3['UuePt'](getRangerConfigPath);if(!_0xc9f0d3['mLwbo'](existsSync,_0xdb421f))return{};try{const _0x6370a6=await _0xc9f0d3[_0x3d059a(0x16e)](readFile,_0xdb421f,_0xc9f0d3[_0x3d059a(0x177)]),_0x121880=JSON['parse'](_0x6370a6);if(!_0x121880||typeof _0x121880!=='object'||Array[_0x3d059a(0x17c)](_0x121880))return{};const _0x20c31a={},_0x24d117=_0x121880[_0x3d059a(0x17b)];return _0xc9f0d3['mEDZs'](typeof _0x24d117,_0xc9f0d3['fxrIh'])&&(_0x20c31a[_0x3d059a(0x17b)]=_0x24d117),_0x20c31a;}catch(_0x546f52){const _0x29483b=_0xc9f0d3['kuwGM'](_0x546f52,Error)?_0x546f52['message']:String(_0x546f52);return console['warn']('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0xdb421f+':\x20'+_0x29483b),{};}}
@@ -1 +1 @@
1
- (function(_0xe3fc0a,_0x5a2aa0){const _0x109cde=_0x18b6,_0x59179e=_0xe3fc0a();while(!![]){try{const _0x2b29f9=parseInt(_0x109cde(0x13e))/0x1*(-parseInt(_0x109cde(0x138))/0x2)+parseInt(_0x109cde(0x141))/0x3+parseInt(_0x109cde(0x135))/0x4*(-parseInt(_0x109cde(0x133))/0x5)+parseInt(_0x109cde(0x13c))/0x6+-parseInt(_0x109cde(0x136))/0x7*(parseInt(_0x109cde(0x13a))/0x8)+parseInt(_0x109cde(0x143))/0x9+parseInt(_0x109cde(0x134))/0xa*(-parseInt(_0x109cde(0x13d))/0xb);if(_0x2b29f9===_0x5a2aa0)break;else _0x59179e['push'](_0x59179e['shift']());}catch(_0x3b6e06){_0x59179e['push'](_0x59179e['shift']());}}}(_0x13b2,0x34918));import{dirname,join,parse}from'path';function _0x13b2(){const _0x58e370=['.ranger','1415WSEIWj','232930wWnjrx','3740rtgBDO','12194OJQJeN','HKZwE','12nlaQHK','MSbCB','24EzKlDX','cwd','2567544FnaRin','143CvHwUr','5428nHmIIU','root','Virkq','986664dvFvhM','lUfgy','573444iNcwKq','.git'];_0x13b2=function(){return _0x58e370;};return _0x13b2();}function _0x18b6(_0x4e7c04,_0x285754){_0x4e7c04=_0x4e7c04-0x131;const _0x13b2b8=_0x13b2();let _0x18b6d1=_0x13b2b8[_0x4e7c04];return _0x18b6d1;}import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x112c97=_0x18b6,_0x562118={'srtLT':function(_0xd11ee0,_0x181bbc){return _0xd11ee0(_0x181bbc);},'HKZwE':function(_0x33cfe9,_0x224cc0){return _0x33cfe9!==_0x224cc0;},'ZFRjO':function(_0x36fbb8,_0x2a047f){return _0x36fbb8(_0x2a047f);},'qbIuf':function(_0x2e0dc6,_0x3e4c2c,_0x592051){return _0x2e0dc6(_0x3e4c2c,_0x592051);},'JntJP':function(_0x5b2e8b){return _0x5b2e8b();}};let _0x5f0f79=process['cwd']();const _0x57dfcd=_0x562118['srtLT'](parse,_0x5f0f79)[_0x112c97(0x13f)];while(_0x562118[_0x112c97(0x137)](_0x5f0f79,_0x57dfcd)){if(existsSync(join(_0x5f0f79,'.ranger')))return _0x5f0f79;_0x5f0f79=_0x562118['ZFRjO'](dirname,_0x5f0f79);}if(existsSync(_0x562118['qbIuf'](join,_0x57dfcd,'.ranger')))return _0x57dfcd;const _0x584b10=_0x562118['JntJP'](findGitRoot);if(_0x584b10)return _0x584b10;return process[_0x112c97(0x13b)]();}export function getRangerDir(){const _0xb331ba=_0x18b6;return join(getRangerRoot(),_0xb331ba(0x132));}export function findGitRoot(){const _0x216a6c=_0x18b6,_0x50e51f={'rNvEE':function(_0x3aa1c9,_0x3d7f8d){return _0x3aa1c9!==_0x3d7f8d;},'Virkq':function(_0x104c45,_0x11385c){return _0x104c45(_0x11385c);},'MSbCB':_0x216a6c(0x131)};let _0x3039f9=process['cwd']();const _0x175da0=parse(_0x3039f9)['root'];while(_0x50e51f['rNvEE'](_0x3039f9,_0x175da0)){if(_0x50e51f[_0x216a6c(0x140)](existsSync,join(_0x3039f9,'.git')))return _0x3039f9;_0x3039f9=dirname(_0x3039f9);}if(existsSync(join(_0x175da0,_0x50e51f[_0x216a6c(0x139)])))return _0x175da0;return null;}export function getRangerHomeDir(){const _0x3af30f=_0x18b6,_0xd1582c={'lUfgy':function(_0x29a6af,_0x3348c0,_0x143ea4){return _0x29a6af(_0x3348c0,_0x143ea4);}};return _0xd1582c[_0x3af30f(0x142)](join,homedir(),'.ranger');}
1
+ (function(_0xe6149d,_0x596739){const _0x1dfe9e=_0x1733,_0x404922=_0xe6149d();while(!![]){try{const _0x3ed085=parseInt(_0x1dfe9e(0x1fd))/0x1*(-parseInt(_0x1dfe9e(0x1f7))/0x2)+-parseInt(_0x1dfe9e(0x202))/0x3+parseInt(_0x1dfe9e(0x1f9))/0x4*(parseInt(_0x1dfe9e(0x200))/0x5)+-parseInt(_0x1dfe9e(0x1f4))/0x6+parseInt(_0x1dfe9e(0x1fa))/0x7*(-parseInt(_0x1dfe9e(0x1f8))/0x8)+-parseInt(_0x1dfe9e(0x1fb))/0x9+parseInt(_0x1dfe9e(0x201))/0xa;if(_0x3ed085===_0x596739)break;else _0x404922['push'](_0x404922['shift']());}catch(_0x544402){_0x404922['push'](_0x404922['shift']());}}}(_0x57e8,0x1fda8));import{dirname,join,parse}from'path';import{existsSync}from'fs';function _0x1733(_0x313aa6,_0x114806){_0x313aa6=_0x313aa6-0x1f4;const _0x57e854=_0x57e8();let _0x17336d=_0x57e854[_0x313aa6];return _0x17336d;}import{homedir}from'os';export function getRangerRoot(){const _0x2d65fe=_0x1733,_0x2b8abd={'cPrpS':function(_0xac3f0f,_0x2be20b){return _0xac3f0f(_0x2be20b);},'gkitF':function(_0x1e81b6,_0x4170ed){return _0x1e81b6!==_0x4170ed;},'bpIQd':'.ranger','Yenly':function(_0x1e6f92,_0xe488d9){return _0x1e6f92(_0xe488d9);},'nfsuN':function(_0x188539,_0x164ac4,_0x3a5074){return _0x188539(_0x164ac4,_0x3a5074);},'RfzeW':function(_0x3d1abf){return _0x3d1abf();}};let _0xeccd6f=process['cwd']();const _0x319607=_0x2b8abd[_0x2d65fe(0x1fc)](parse,_0xeccd6f)[_0x2d65fe(0x1f6)];while(_0x2b8abd[_0x2d65fe(0x1f5)](_0xeccd6f,_0x319607)){if(existsSync(join(_0xeccd6f,_0x2b8abd['bpIQd'])))return _0xeccd6f;_0xeccd6f=_0x2b8abd['Yenly'](dirname,_0xeccd6f);}if(_0x2b8abd[_0x2d65fe(0x1ff)](existsSync,_0x2b8abd[_0x2d65fe(0x204)](join,_0x319607,'.ranger')))return _0x319607;const _0x4b3cce=_0x2b8abd[_0x2d65fe(0x203)](findGitRoot);if(_0x4b3cce)return _0x4b3cce;return process['cwd']();}export function getRangerDir(){const _0x45730e=_0x1733,_0x1a14a7={'nJcbZ':function(_0x2c092d,_0x21f8e3,_0x29fec8){return _0x2c092d(_0x21f8e3,_0x29fec8);}};return _0x1a14a7['nJcbZ'](join,getRangerRoot(),_0x45730e(0x1fe));}export function findGitRoot(){let _0x57404d=process['cwd']();const _0x3d62fb=parse(_0x57404d)['root'];while(_0x57404d!==_0x3d62fb){if(existsSync(join(_0x57404d,'.git')))return _0x57404d;_0x57404d=dirname(_0x57404d);}if(existsSync(join(_0x3d62fb,'.git')))return _0x3d62fb;return null;}function _0x57e8(){const _0x30077f=['root','10rJNWGl','1178192IyWNfJ','68GUtqgf','7fjOCJQ','1457136jRAEDw','cPrpS','19041hHRvvK','.ranger','Yenly','28835yMpMXO','6588420QagGTo','437094IUiPwY','RfzeW','nfsuN','457968wVZEng','gkitF'];_0x57e8=function(){return _0x30077f;};return _0x57e8();}export function getRangerHomeDir(){const _0x21ae85={'ZBzYv':'.ranger'};return join(homedir(),_0x21ae85['ZBzYv']);}