@myagentroam/node 0.9.37 → 0.9.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connector.js +1 -1
- package/dist/runner/mar-agent/generated-images.js +1 -1
- package/dist/runner/mar-agent/hosted-conversation-runtime.js +1 -1
- package/dist/service/bubblewrap-sandbox-executor.js +1 -1
- package/dist/service/hosted-conversation-node-service.js +1 -1
- package/dist/service/run-attachment-service.js +1 -1
- package/dist/service/run-workbench-service.js +1 -1
- package/dist/service/workspace-change-service.js +1 -1
- package/dist/service/workspace-file-service.js +1 -1
- package/dist/service/workspace-workbench-service.js +1 -1
- package/dist/workspace.js +1 -1
- package/package.json +3 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
const
|
|
2
|
+
const _0x24be61=_0x42ac;(function(_0x4db7c4,_0x19e404){const _0x5ba149=_0x42ac,_0x486cdf=_0x4db7c4();while(!![]){try{const _0x1293b7=-parseInt(_0x5ba149(0x21d))/(0x406+-0x1*0x18f1+0x14ec)*(parseInt(_0x5ba149(0x20d))/(-0x1074+-0x1791*0x1+0x2807))+-parseInt(_0x5ba149(0x234))/(0x49*-0x65+0x59f+0x3*0x7bb)*(-parseInt(_0x5ba149(0x21b))/(-0x11c7+-0x1932+0x2afd))+parseInt(_0x5ba149(0x227))/(-0x1*-0x15d7+0x3*-0x74c+0x12)*(parseInt(_0x5ba149(0x211))/(0x11*0xd7+0x119c+0x3*-0xa9f))+parseInt(_0x5ba149(0x237))/(-0x14d+-0x5f3*0x3+-0x132d*-0x1)*(-parseInt(_0x5ba149(0x229))/(-0x18d3+0x3fd*0x5+-0x4a*-0x11))+-parseInt(_0x5ba149(0x21e))/(0x4b8+-0xae*0x7+0x13)*(-parseInt(_0x5ba149(0x209))/(-0x15*0xb9+0xfb6+-0x1*0x7f))+-parseInt(_0x5ba149(0x214))/(0x2414*0x1+-0x13d7+-0x1032)+parseInt(_0x5ba149(0x1f8))/(0x2129+-0x2b8+-0x1e65)*(-parseInt(_0x5ba149(0x236))/(0x1b32*-0x1+-0x1034*-0x2+0x529*-0x1));if(_0x1293b7===_0x19e404)break;else _0x486cdf['push'](_0x486cdf['shift']());}catch(_0x1fddd6){_0x486cdf['push'](_0x486cdf['shift']());}}}(_0x2a1e,0xe76b*0x1+0x8502*-0x10+0xca85c));import{isTerminalRunStatus}from'../util/node-operation-parsers.js';import{isPlainRecord}from'../runner/codex/conversation-parser.js';import{isHostedConversationImageRunId}from'../runner/mar-agent/generated-images.js';import{assertRunOwner}from'./run-ownership-policy.js';export class RunWorkbenchService{[_0x24be61(0x221)];constructor(_0x25944c){const _0x185b35=_0x24be61;this[_0x185b35(0x221)]=_0x25944c;}[_0x24be61(0x220)](){const _0x4f6564=_0x24be61;return{'run.get':_0x5a9c69=>this[_0x4f6564(0x22b)](record(_0x5a9c69)),'run.image.read':_0x31f831=>this[_0x4f6564(0x22e)](record(_0x31f831)),'run.user-input.respond':_0x8425fd=>this[_0x4f6564(0x208)](record(_0x8425fd)),'session.interrupt':_0xf4de6e=>this[_0x4f6564(0x218)](record(_0xf4de6e)),'run.cancel':_0x4fc7b8=>this[_0x4f6564(0x215)](_0x4f6564(0x1f4),record(_0x4fc7b8)),'run.interrupt':_0x405222=>this[_0x4f6564(0x215)](_0x4f6564(0x1f5),record(_0x405222)),'run.approval.decide':_0x3273b9=>this[_0x4f6564(0x219)](record(_0x3273b9))};}[_0x24be61(0x22b)](_0x3e9931){const _0x5606e3=_0x24be61;return{'run':this[_0x5606e3(0x212)](_0x3e9931[_0x5606e3(0x1f3)])};}async[_0x24be61(0x22e)](_0x1c97d1){const _0x424f8e=_0x24be61;if(typeof _0x1c97d1[_0x424f8e(0x1f3)]!==_0x424f8e(0x20a)||typeof _0x1c97d1[_0x424f8e(0x230)]!==_0x424f8e(0x223)||!Number[_0x424f8e(0x206)](_0x1c97d1[_0x424f8e(0x230)])||_0x1c97d1[_0x424f8e(0x230)]<-0x6a4+0x6ff*-0x3+0x1ba1)throw new Error(_0x424f8e(0x207));if(isHostedConversationImageRunId(_0x1c97d1[_0x424f8e(0x1f3)]))throw new Error(_0x424f8e(0x207));const _0x1450f6=await this[_0x424f8e(0x221)][_0x424f8e(0x1fa)](_0x1c97d1[_0x424f8e(0x1f3)],_0x1c97d1[_0x424f8e(0x230)]);if(_0x1450f6===undefined)throw new Error(_0x424f8e(0x20c));return{'image':_0x1450f6};}[_0x24be61(0x208)](_0x54e8b3){const _0x17612b=_0x24be61;if(typeof _0x54e8b3[_0x17612b(0x1f3)]!==_0x17612b(0x20a)||typeof _0x54e8b3[_0x17612b(0x205)]!==_0x17612b(0x20a)||!isPlainRecord(_0x54e8b3[_0x17612b(0x202)]))throw new Error(_0x17612b(0x21f));const _0x1ad66e=this[_0x17612b(0x21c)](_0x54e8b3[_0x17612b(0x1f3)],_0x54e8b3[_0x17612b(0x231)]),_0x5ae97c=this[_0x17612b(0x221)][_0x17612b(0x226)][_0x17612b(0x22f)](_0x1ad66e['id'])??_0x1ad66e['id'];return this[_0x17612b(0x221)][_0x17612b(0x1f6)](_0x5ae97c,_0x54e8b3[_0x17612b(0x205)],_0x54e8b3[_0x17612b(0x202)]),{'accepted':!![]};}[_0x24be61(0x218)](_0x4d12cb){const _0x30b0a8=_0x24be61;if(typeof _0x4d12cb[_0x30b0a8(0x21a)]!==_0x30b0a8(0x20a))throw new Error(_0x30b0a8(0x22c));const _0x510f2c=this[_0x30b0a8(0x221)][_0x30b0a8(0x226)][_0x30b0a8(0x233)](_0x4d12cb[_0x30b0a8(0x21a)]);if(_0x510f2c===undefined)throw new Error(_0x30b0a8(0x22c));const _0x2b5e18=this[_0x30b0a8(0x221)][_0x30b0a8(0x226)][_0x30b0a8(0x1f9)](_0x510f2c['id']);if(_0x2b5e18===undefined||isTerminalRunStatus(_0x2b5e18[_0x30b0a8(0x232)]))throw new Error(_0x30b0a8(0x200));return this[_0x30b0a8(0x215)](_0x30b0a8(0x1f5),{'runId':_0x2b5e18['id'],'__requestUserId':_0x4d12cb[_0x30b0a8(0x231)]});}[_0x24be61(0x215)](_0x2cdd27,_0x4bb6d8){const _0x86353a=_0x24be61,_0x2c81d1=this[_0x86353a(0x21c)](_0x4bb6d8[_0x86353a(0x1f3)],_0x4bb6d8[_0x86353a(0x231)]),_0x35cd3d=this[_0x86353a(0x221)][_0x86353a(0x226)][_0x86353a(0x1ff)](_0x2c81d1['id'],_0x86353a(0x213)),_0x13bda0=this[_0x86353a(0x221)][_0x86353a(0x226)][_0x86353a(0x22f)](_0x2c81d1['id']),_0x11cd79=this[_0x86353a(0x221)][_0x86353a(0x226)][_0x86353a(0x1fe)](_0x2c81d1['id']),_0x27af33=_0x13bda0??(_0x11cd79===undefined||_0x11cd79[_0x86353a(0x222)]===null?_0x2c81d1['id']:undefined);return this[_0x86353a(0x221)][_0x86353a(0x22d)](_0x2c81d1[_0x86353a(0x21a)]),_0x27af33===undefined?(this[_0x86353a(0x221)][_0x86353a(0x20b)](_0x2c81d1['id']),this[_0x86353a(0x221)][_0x86353a(0x217)](_0x2c81d1['id'],_0x86353a(0x1fc),{'code':_0x86353a(0x225)},_0x86353a(0x235))):(this[_0x86353a(0x221)][_0x86353a(0x20b)](_0x27af33),this[_0x86353a(0x221)][_0x86353a(0x228)](_0x2cdd27,{'runId':_0x27af33})),{'run':_0x35cd3d};}[_0x24be61(0x219)](_0x498b43){const _0x5be31d=_0x24be61;if(typeof _0x498b43[_0x5be31d(0x1f3)]!==_0x5be31d(0x20a)||typeof _0x498b43[_0x5be31d(0x216)]!==_0x5be31d(0x20a)||_0x498b43[_0x5be31d(0x201)]!==_0x5be31d(0x204)&&_0x498b43[_0x5be31d(0x201)]!==_0x5be31d(0x1f7))throw new Error(_0x5be31d(0x224));const _0x4e9c17=this[_0x5be31d(0x221)][_0x5be31d(0x226)][_0x5be31d(0x20e)](_0x498b43[_0x5be31d(0x216)]);if(_0x4e9c17===undefined||this[_0x5be31d(0x221)][_0x5be31d(0x226)][_0x5be31d(0x20f)](_0x4e9c17[_0x5be31d(0x1f3)])!==_0x498b43[_0x5be31d(0x1f3)])throw new Error(_0x5be31d(0x1fb));this[_0x5be31d(0x1fd)](_0x4e9c17[_0x5be31d(0x1f3)],_0x498b43[_0x5be31d(0x231)]);const _0x32182a=this[_0x5be31d(0x221)][_0x5be31d(0x226)][_0x5be31d(0x219)](_0x498b43[_0x5be31d(0x216)],_0x498b43[_0x5be31d(0x201)]);return this[_0x5be31d(0x221)][_0x5be31d(0x217)](_0x32182a[_0x5be31d(0x1f3)],_0x5be31d(0x210),{'approvalId':_0x32182a['id'],'decision':_0x498b43[_0x5be31d(0x201)]}),this[_0x5be31d(0x221)][_0x5be31d(0x228)](_0x5be31d(0x203),{'runId':_0x32182a[_0x5be31d(0x1f3)],'approvalId':_0x32182a['id'],'decision':_0x498b43[_0x5be31d(0x201)]}),{'approval':_0x32182a};}[_0x24be61(0x212)](_0x391406){const _0x2d7c55=_0x24be61;if(typeof _0x391406!==_0x2d7c55(0x20a))throw new Error(_0x2d7c55(0x200));const _0x2657e7=this[_0x2d7c55(0x221)][_0x2d7c55(0x226)][_0x2d7c55(0x22a)](_0x391406);if(_0x2657e7===undefined)throw new Error(_0x2d7c55(0x200));return _0x2657e7;}[_0x24be61(0x21c)](_0x6f0755,_0x4e03ec){const _0x176cb2=_0x24be61,_0x308b11=this[_0x176cb2(0x212)](_0x6f0755);return assertRunOwner(_0x308b11,_0x4e03ec),_0x308b11;}[_0x24be61(0x1fd)](_0x26abc1,_0x1809bc){const _0x302ddf=_0x24be61;assertRunOwner(this[_0x302ddf(0x212)](_0x26abc1),_0x1809bc);}}function _0x42ac(_0x5df85b,_0x7a3325){_0x5df85b=_0x5df85b-(-0x54d+-0x20b*-0x1+0x2b*0x1f);const _0x3a2eb0=_0x2a1e();let _0x2ed16d=_0x3a2eb0[_0x5df85b];if(_0x42ac['qHLHHo']===undefined){var _0x5eecae=function(_0x124492){const _0x39f80d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x349421='',_0x2e0c5e='';for(let _0x30a9c8=-0x2*0xdb4+-0x4f8+0x2060,_0x233402,_0x23288e,_0x3cffe7=0x152b+0x1e7f+0x1*-0x33aa;_0x23288e=_0x124492['charAt'](_0x3cffe7++);~_0x23288e&&(_0x233402=_0x30a9c8%(-0x204e*0x1+0x8*-0x351+0x3ada)?_0x233402*(-0x166d+0xd3*0x25+-0x2*0x3e9)+_0x23288e:_0x23288e,_0x30a9c8++%(-0x250+-0xb7b*-0x2+-0x14a2))?_0x349421+=String['fromCharCode'](0x1*-0x68f+-0xb*-0x1ed+-0xda1&_0x233402>>(-(0x18d9+0xb3+-0x198a)*_0x30a9c8&0x11e3*-0x1+-0x23d+-0x1426*-0x1)):-0x1*-0x927+0x56c*-0x2+0x1*0x1b1){_0x23288e=_0x39f80d['indexOf'](_0x23288e);}for(let _0x3f4e04=0x278+0x6*-0x359+0x119e,_0x4d37f0=_0x349421['length'];_0x3f4e04<_0x4d37f0;_0x3f4e04++){_0x2e0c5e+='%'+('00'+_0x349421['charCodeAt'](_0x3f4e04)['toString'](0x8df+0x28e*-0xf+0x1d83))['slice'](-(-0xc3f+-0x75*0x3+0xda0));}return decodeURIComponent(_0x2e0c5e);};_0x42ac['zHpJQj']=_0x5eecae,_0x42ac['XoeEgQ']={},_0x42ac['qHLHHo']=!![];}const _0x5ab8ac=_0x3a2eb0[0x2*0x70f+0x6b*0x23+-0x995*0x3];_0x42ac['nSmuDi']!==_0x5ab8ac&&(_0x42ac['XoeEgQ']={},_0x42ac['nSmuDi']=_0x5ab8ac);const _0x187fe9=_0x42ac['XoeEgQ'][_0x5df85b];return _0x187fe9===undefined?(_0x2ed16d=_0x42ac['zHpJQj'](_0x2ed16d),_0x42ac['XoeEgQ'][_0x5df85b]=_0x2ed16d):_0x2ed16d=_0x187fe9,_0x2ed16d;}function record(_0x1baeca){return isPlainRecord(_0x1baeca)?_0x1baeca:{};}function _0x2a1e(){const _0x45adbf=['uLvox05pvf9gt1vora','zgvJAxnPB24','yw5ZD2vYCW','CNvUlMfWChjVDMfSlMrLy2LZAw9U','qvbquK9wruq','CMvXDwvZDeLK','AxnjBNrLz2vY','uLvox0LnquDfx0LovKfmsuq','CMvZCg9Uza','nJuYmgPNvKjbvG','C3rYAw5N','BwfYA0LUDgvYCNvWDgvK','uLvox0LnquDfx05pvf9gt1vora','ndyZogrYENvyzG','z2v0qxbWCM92ywW','y2fUB25Py2fSuNvUswq','yxbWCM92ywWUzgvJAwrLza','mJu4q3PbDhrJ','CMvXDwLYzvj1BG','q0foq0vmteLorW','nZm1nJK0m0TPDgjHsW','y2fUy2vSt3jjBNrLCNj1Chq','yxbWCM92ywXjza','zw1PDfj1BG','Aw50zxjYDxb0u2vZC2LVBG','zgvJAwrLqxbWCM92ywW','C2vZC2LVBKLK','mJu2nJq4mffoz1PLrG','CMvXDwLYzu93BMvKuNvU','mtDKrMfOsvi','otq1ouXsyNjewG','vvnfuL9jtLbvvf9jtLzbteLe','B3bLCMf0Aw9UCW','B3b0Aw9UCW','DxnLCKL0zw1jza','BNvTyMvY','qvbquK9wquXFrevdsvnjt05Fsu5wquXjra','vvnfuL9jtLrfuLjvufrfra','CNvUDgLTzq','nJmXndv6wLHUAKy','y29UDhjVBa','ndy0mZi4u1bVD056','z2v0uNvU','z2v0','u0vtu0LptL9ot1rFrK9vtKq','Cgf1C2vrDwv1zq','Aw1Hz2u','y3vYCMvUDev4zwn1DgLVBKLK','Aw1Hz2vjBMrLEa','x19Yzxf1zxn0vxnLCKLK','C3rHDhvZ','z2v0qwDLBNrtzxnZAw9U','m3DksLbgqW','su5urvjsvvburuq','ntm0odq3m3rfyNzoDa','ndLjuxnJr0e','CNvUswq','CNvUlMnHBMnLBa','CNvUlMLUDgvYCNvWDa','CMvZCg9UzfvZzxjjBNb1Da','uKvkrunuruq','mtjmEMLRyu8','ywn0AxzLu2vZC2LVBLj1BG','CMvHzeLTywDL','qvbquK9wquXFtK9ux0zpvu5e','CNvUlMLUDgvYCNvWDgvK','yxnZzxj0uNvUt3DUzxi','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','DhjHBNnPDgLVBLj1BG'];_0x2a1e=function(){return _0x45adbf;};return _0x2a1e();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
const _0x614b04=_0x4da2;(function(_0x2f4a09,_0x2b2172){const _0x36bbcb=_0x4da2,_0x46a544=_0x2f4a09();while(!![]){try{const _0x2d5c06=parseInt(_0x36bbcb(0x1cd))/(-0x37b+-0x1d60+-0x106e*-0x2)+parseInt(_0x36bbcb(0x1b9))/(0x21b0+-0x1ade+-0x6d0)+-parseInt(_0x36bbcb(0x1bd))/(0x2*-0x45d+0xa74+-0x1*0x1b7)+-parseInt(_0x36bbcb(0x1b2))/(-0x75c+-0xfa*-0x1+0x666)+parseInt(_0x36bbcb(0x1ca))/(-0x23cc+0xec0+0x1511)+-parseInt(_0x36bbcb(0x1c6))/(0x86f*0x2+0x805*0x4+-0x30ec)+parseInt(_0x36bbcb(0x1b1))/(0x255a+0xadc+-0x302f);if(_0x2d5c06===_0x2b2172)break;else _0x46a544['push'](_0x46a544['shift']());}catch(_0x2823da){_0x46a544['push'](_0x46a544['shift']());}}}(_0x4b52,0x20a09*-0x3+-0x20*0x157d+-0xa9*-0x153f));import{basename,posix}from'node:path';function _0x4da2(_0x4450df,_0x2a54ce){_0x4450df=_0x4450df-(0x236*-0x7+-0x2*0xa6a+0x1*0x25fd);const _0x3c63a5=_0x4b52();let _0x5d8f79=_0x3c63a5[_0x4450df];if(_0x4da2['zdWVMl']===undefined){var _0x2f0385=function(_0x969dfc){const _0x167435='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x231da5='',_0x253df9='';for(let _0x212474=-0x2341+0x116c+0x1*0x11d5,_0x2f9baf,_0x4f171f,_0x3ea437=0x54a+-0x29*-0xdd+-0x28af;_0x4f171f=_0x969dfc['charAt'](_0x3ea437++);~_0x4f171f&&(_0x2f9baf=_0x212474%(0x7*0x293+-0x7d*0x29+-0xc*-0x2b)?_0x2f9baf*(-0x1c79+0x268d+-0x9d4)+_0x4f171f:_0x4f171f,_0x212474++%(0xe38+-0xd56*0x1+0x25*-0x6))?_0x231da5+=String['fromCharCode'](0x1743+-0x500+-0x1144&_0x2f9baf>>(-(0x1ab*-0x7+0x1b12+0xf63*-0x1)*_0x212474&0x1*-0x1795+-0x1db4+0x354f)):-0x13f4*-0x1+-0x1795*-0x1+-0x2b89){_0x4f171f=_0x167435['indexOf'](_0x4f171f);}for(let _0x34e92f=0x2*-0x461+0x1*-0x797+0x1059,_0x474e5e=_0x231da5['length'];_0x34e92f<_0x474e5e;_0x34e92f++){_0x253df9+='%'+('00'+_0x231da5['charCodeAt'](_0x34e92f)['toString'](-0x5*0x216+-0xc*0x1f3+0x1*0x21e2))['slice'](-(0xb6e+-0x1*0x1d8e+0x1222));}return decodeURIComponent(_0x253df9);};_0x4da2['UDfpEg']=_0x2f0385,_0x4da2['QWgQAu']={},_0x4da2['zdWVMl']=!![];}const _0x459605=_0x3c63a5[0xfb*0x18+0xe3*0x10+-0x25b8];_0x4da2['sDsLmL']!==_0x459605&&(_0x4da2['QWgQAu']={},_0x4da2['sDsLmL']=_0x459605);const _0x372936=_0x4da2['QWgQAu'][_0x4450df];return _0x372936===undefined?(_0x5d8f79=_0x4da2['UDfpEg'](_0x5d8f79),_0x4da2['QWgQAu'][_0x4450df]=_0x5d8f79):_0x5d8f79=_0x372936,_0x5d8f79;}import{isWorkspaceChangeVisible,listInitializedSubmodulePaths,readCurrentChangesSummary,resolveGitRepository}from'../workspace.js';const CACHE_TTL_MS=0x1*-0x2bb+0x2fe*-0x1+0x1941,REPOSITORY_READ_CONCURRENCY=0x268a+-0x1c1*0xb+0x9*-0x223,CHANGE_VISIBILITY_CONCURRENCY=-0x21*-0x9e+-0x1824+-0x1*-0x3d6;export class WorkspaceChangeService{[_0x614b04(0x1c5)];constructor(_0x3da2f2){const _0x542278=_0x614b04;this[_0x542278(0x1c5)]=_0x3da2f2;}[_0x614b04(0x1b3)](_0xb9e09f){const _0x541d50=_0x614b04;this[_0x541d50(0x1c5)][_0x541d50(0x1cf)][_0x541d50(0x1c8)](_0xb9e09f),this[_0x541d50(0x1c5)][_0x541d50(0x1cc)][_0x541d50(0x1c8)](_0xb9e09f),this[_0x541d50(0x1c5)][_0x541d50(0x1d1)][_0x541d50(0x1b0)](_0xb9e09f,(this[_0x541d50(0x1c5)][_0x541d50(0x1d1)][_0x541d50(0x1bf)](_0xb9e09f)??-0xe*0x153+-0x21a+-0x14a4*-0x1)+(-0x11*-0x227+0x17fc+-0x3c92));}[_0x614b04(0x1c1)](){const _0x468b7d=_0x614b04;this[_0x468b7d(0x1c5)][_0x468b7d(0x1cf)][_0x468b7d(0x1c1)](),this[_0x468b7d(0x1c5)][_0x468b7d(0x1cc)][_0x468b7d(0x1c1)](),this[_0x468b7d(0x1c5)][_0x468b7d(0x1d1)][_0x468b7d(0x1c1)]();}async[_0x614b04(0x1c7)](_0x235b3b){const _0x46c76b=_0x614b04;if(_0x235b3b[_0x46c76b(0x1bb)]!==_0x46c76b(0x1b6))throw new Error(_0x46c76b(0x1c9));const _0x47c5a0=this[_0x46c76b(0x1c5)][_0x46c76b(0x1cc)][_0x46c76b(0x1bf)](_0x235b3b['id']);if(_0x47c5a0!==undefined&&_0x47c5a0[_0x46c76b(0x1ba)]>Date[_0x46c76b(0x1bc)]())return _0x47c5a0[_0x46c76b(0x1d2)];const _0x2f6dcc=this[_0x46c76b(0x1c5)][_0x46c76b(0x1cf)][_0x46c76b(0x1bf)](_0x235b3b['id']);if(_0x2f6dcc!==undefined)return _0x2f6dcc;const _0x2c4347=this[_0x46c76b(0x1c5)][_0x46c76b(0x1d1)][_0x46c76b(0x1bf)](_0x235b3b['id'])??0x1*-0x16f9+-0x7*0x1ab+0x22a6*0x1,_0x4c6893=this[_0x46c76b(0x1c5)][_0x46c76b(0x1d0)][_0x46c76b(0x1b5)](async()=>{const _0x3b754d=_0x46c76b,_0x410152=await listInitializedSubmodulePaths(_0x235b3b[_0x3b754d(0x1b4)]),_0x43dcad=['',..._0x410152],_0x4a602e=async _0x2a54ce=>{const _0x305c15=_0x3b754d,_0x3c63a5=_0x2a54ce===''?_0x235b3b[_0x305c15(0x1b4)]:await resolveGitRepository(_0x235b3b[_0x305c15(0x1b4)],_0x2a54ce,_0x410152),_0x5d8f79=await readCurrentChangesSummary(_0x3c63a5),_0x2f0385=(await mapWithConcurrency(_0x5d8f79[_0x305c15(0x1ce)],CHANGE_VISIBILITY_CONCURRENCY,async _0x459605=>({'change':_0x459605,'visible':await isWorkspaceChangeVisible(_0x3c63a5,_0x459605[_0x305c15(0x1b4)])})))[_0x305c15(0x1c4)](({visible:_0x372936})=>_0x372936)[_0x305c15(0x1be)](({change:_0x969dfc})=>_0x969dfc);return{'repositoryPath':_0x2a54ce,'repositoryName':_0x2a54ce===''?basename(_0x3c63a5):posix[_0x305c15(0x1b8)](_0x2a54ce),'branch':_0x5d8f79[_0x305c15(0x1af)],'changes':_0x2f0385};},_0x35b612=await _0x4a602e(''),_0x4af4c6=(await mapWithConcurrency(_0x43dcad[_0x3b754d(0x1c2)](0x1*-0x1795+-0x1db4+0x354a),REPOSITORY_READ_CONCURRENCY,async _0x167435=>{try{return await _0x4a602e(_0x167435);}catch{return undefined;}}))[_0x3b754d(0x1c4)](_0x231da5=>_0x231da5!==undefined),_0x249327=_0x253df9=>({..._0x253df9,'additions':null,'deletions':null,'binary':![],'diffAvailable':!![]}),_0x4450df={'branch':_0x35b612[_0x3b754d(0x1af)],'changes':_0x35b612[_0x3b754d(0x1ce)][_0x3b754d(0x1be)](_0x249327),'repositories':[_0x35b612,..._0x4af4c6][_0x3b754d(0x1be)](_0x212474=>({..._0x212474,'changes':_0x212474[_0x3b754d(0x1ce)][_0x3b754d(0x1be)](_0x249327)}))};if((this[_0x3b754d(0x1c5)][_0x3b754d(0x1d1)][_0x3b754d(0x1bf)](_0x235b3b['id'])??-0x13f4*-0x1+-0x1795*-0x1+-0x2b89)===_0x2c4347)this[_0x3b754d(0x1c5)][_0x3b754d(0x1cc)][_0x3b754d(0x1b0)](_0x235b3b['id'],{'value':_0x4450df,'expiresAt':Date[_0x3b754d(0x1bc)]()+CACHE_TTL_MS});return _0x4450df;});this[_0x46c76b(0x1c5)][_0x46c76b(0x1cf)][_0x46c76b(0x1b0)](_0x235b3b['id'],_0x4c6893);try{return await _0x4c6893;}finally{if(this[_0x46c76b(0x1c5)][_0x46c76b(0x1cf)][_0x46c76b(0x1bf)](_0x235b3b['id'])===_0x4c6893)this[_0x46c76b(0x1c5)][_0x46c76b(0x1cf)][_0x46c76b(0x1c8)](_0x235b3b['id']);}}}async function mapWithConcurrency(_0x2f9baf,_0x4f171f,_0x3ea437){const _0x438b80=_0x614b04,_0x34e92f=new Array(_0x2f9baf[_0x438b80(0x1b7)]);let _0x474e5e=0x2*-0x461+0x1*-0x797+0x1059;return await Promise[_0x438b80(0x1c3)](Array[_0x438b80(0x1cb)]({'length':Math[_0x438b80(0x1c0)](_0x4f171f,_0x2f9baf[_0x438b80(0x1b7)])},async()=>{const _0x5b14b9=_0x438b80;while(_0x474e5e<_0x2f9baf[_0x5b14b9(0x1b7)]){const _0xc950d9=_0x474e5e;_0x474e5e+=-0x5*0x216+-0xc*0x1f3+0x1*0x21d3,_0x34e92f[_0xc950d9]=await _0x3ea437(_0x2f9baf[_0xc950d9]);}})),_0x34e92f;}function _0x4b52(){const _0x217aab=['y2HHBMDLCW','y2HHBMDLC1jLywrZ','y2HHBMDLC0XPBwL0zxi','y2HHBMDLC1zLCNnPB25Z','DMfSDwu','yNjHBMnO','C2v0','mZeZmtm2nK5oDuzQsq','mtmXnMTevgTkyW','Aw52ywXPzgf0zq','Cgf0Aa','CNvU','r0Lux1DpuKTtuefdrq','BgvUz3rO','yMfZzw5HBwu','mJu4nJeYCMnouwHL','zxHWAxjLC0f0','A2LUza','BM93','mte1ntaWmgzrv0fbvG','BwfW','z2v0','BwLU','y2XLyxi','C2XPy2u','ywXS','zMLSDgvY','C3rHDgu','mZy0nZy4oeLoA25cra','y3vYCMvUDa','zgvSzxrL','v09ss1nqqunfx05pvf9hsvq','mte5nZeXnxrLD3DUCq','zNjVBq','y2HHBMDLC0nHy2HL','nte5ndq2shfeq0P4'];_0x4b52=function(){return _0x217aab;};return _0x4b52();}
|
|
2
|
+
function _0x1bbe(_0xcce067,_0x32ca61){_0xcce067=_0xcce067-(0x2033+-0x12d5+-0xbff);const _0x2879e6=_0x2321();let _0x16e3c2=_0x2879e6[_0xcce067];if(_0x1bbe['ZvXkUx']===undefined){var _0x342885=function(_0x19d568){const _0x38d72a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x327f70='',_0x4774b5='';for(let _0x2ea880=0x807+-0x35*-0x65+-0x4*0x73c,_0x59f122,_0x593feb,_0x54eebe=0x305*-0x6+0xc5*0x1+0x1159;_0x593feb=_0x19d568['charAt'](_0x54eebe++);~_0x593feb&&(_0x59f122=_0x2ea880%(0x2374+0xa*-0x88+0x8*-0x3c4)?_0x59f122*(0x2354+0x163d+-0x3951)+_0x593feb:_0x593feb,_0x2ea880++%(0x1026+-0x26b9+0x1697))?_0x327f70+=String['fromCharCode'](-0x1181+0x21cd+0xf4d*-0x1&_0x59f122>>(-(0x808*0x3+-0x53d+0xc1*-0x19)*_0x2ea880&-0x25b3+0x1*0x52f+0x31*0xaa)):0x1385+0x4*0x50a+0x5ab*-0x7){_0x593feb=_0x38d72a['indexOf'](_0x593feb);}for(let _0x3a05d8=0x2f*0x4+0x399*0x4+-0xf20,_0x38fa12=_0x327f70['length'];_0x3a05d8<_0x38fa12;_0x3a05d8++){_0x4774b5+='%'+('00'+_0x327f70['charCodeAt'](_0x3a05d8)['toString'](0xc28+-0xc0e*0x1+-0xa))['slice'](-(0xd*0x3b+0x1*0xec3+0x20*-0x8e));}return decodeURIComponent(_0x4774b5);};_0x1bbe['Amzkgp']=_0x342885,_0x1bbe['oyAgJE']={},_0x1bbe['ZvXkUx']=!![];}const _0x1b61e3=_0x2879e6[0x17f8+-0x1546+-0x1*0x2b2];_0x1bbe['vQDHuk']!==_0x1b61e3&&(_0x1bbe['oyAgJE']={},_0x1bbe['vQDHuk']=_0x1b61e3);const _0x51bb08=_0x1bbe['oyAgJE'][_0xcce067];return _0x51bb08===undefined?(_0x16e3c2=_0x1bbe['Amzkgp'](_0x16e3c2),_0x1bbe['oyAgJE'][_0xcce067]=_0x16e3c2):_0x16e3c2=_0x51bb08,_0x16e3c2;}const _0x208507=_0x1bbe;(function(_0x1976d4,_0x382031){const _0x8d4e61=_0x1bbe,_0x4bb138=_0x1976d4();while(!![]){try{const _0x53080f=-parseInt(_0x8d4e61(0x163))/(0x1db7+0x8d4+-0x1*0x268a)+parseInt(_0x8d4e61(0x189))/(0x1f68+-0x167*-0xb+-0x2ed3)+parseInt(_0x8d4e61(0x17f))/(-0xd84+0x74b*0x4+-0x3*0x537)*(parseInt(_0x8d4e61(0x162))/(-0xce*0x6+0x15*0x1bf+0x1fd3*-0x1))+parseInt(_0x8d4e61(0x165))/(0x1501*0x1+0x3c3*0x7+-0x2f51)+parseInt(_0x8d4e61(0x190))/(-0x107*-0x5+-0x1*-0x882+-0xd9f*0x1)+parseInt(_0x8d4e61(0x169))/(0x1fef+-0xaa5+-0x1*0x1543)*(parseInt(_0x8d4e61(0x16a))/(0xd68+-0x1d77+0x1017))+-parseInt(_0x8d4e61(0x17d))/(-0x277*0xb+0xc*-0x2e+-0x155*-0x16);if(_0x53080f===_0x382031)break;else _0x4bb138['push'](_0x4bb138['shift']());}catch(_0x24e17a){_0x4bb138['push'](_0x4bb138['shift']());}}}(_0x2321,0x4a341*0x4+-0x155388+0x1129fe));import{basename,posix}from'node:path';import{isWorkspaceChangeVisible,listGitWorktrees,listInitializedSubmodulePaths,readCurrentChangesSummary,resolveGitRepository}from'../workspace.js';const CACHE_TTL_MS=0x2591+0x3*-0x397+0x136*-0x6,REPOSITORY_READ_CONCURRENCY=-0x1*-0x1a1b+-0xef9+0x2*-0x58f,WORKTREE_READ_CONCURRENCY=0xb5*0x1b+0xac8+-0x1ddb,CHANGE_VISIBILITY_CONCURRENCY=-0x1729+0x1026+0x713;export class WorkspaceChangeService{[_0x208507(0x18b)];constructor(_0xcce067){const _0x2a438e=_0x208507;this[_0x2a438e(0x18b)]=_0xcce067;}[_0x208507(0x168)](_0x32ca61){const _0x43474a=_0x208507;this[_0x43474a(0x18b)][_0x43474a(0x183)][_0x43474a(0x16c)](_0x32ca61),this[_0x43474a(0x18b)][_0x43474a(0x18f)][_0x43474a(0x16c)](_0x32ca61),this[_0x43474a(0x18b)][_0x43474a(0x17a)][_0x43474a(0x192)](_0x32ca61,(this[_0x43474a(0x18b)][_0x43474a(0x17a)][_0x43474a(0x160)](_0x32ca61)??-0x2*0x977+-0x1181+0xc25*0x3)+(0x808*0x3+-0x53d+0xfe*-0x13));}[_0x208507(0x18c)](){const _0x260443=_0x208507;this[_0x260443(0x18b)][_0x260443(0x183)][_0x260443(0x18c)](),this[_0x260443(0x18b)][_0x260443(0x18f)][_0x260443(0x18c)](),this[_0x260443(0x18b)][_0x260443(0x17a)][_0x260443(0x18c)]();}async[_0x208507(0x164)](_0x2879e6){const _0x2794c8=_0x208507;if(_0x2879e6[_0x2794c8(0x16b)]!==_0x2794c8(0x170))throw new Error(_0x2794c8(0x18a));const _0x16e3c2=this[_0x2794c8(0x18b)][_0x2794c8(0x18f)][_0x2794c8(0x160)](_0x2879e6['id']);if(_0x16e3c2!==undefined&&_0x16e3c2[_0x2794c8(0x182)]>Date[_0x2794c8(0x17e)]())return _0x16e3c2[_0x2794c8(0x193)];const _0x342885=this[_0x2794c8(0x18b)][_0x2794c8(0x183)][_0x2794c8(0x160)](_0x2879e6['id']);if(_0x342885!==undefined)return _0x342885;const _0x1b61e3=this[_0x2794c8(0x18b)][_0x2794c8(0x17a)][_0x2794c8(0x160)](_0x2879e6['id'])??-0x25b3+0x1*0x52f+0x4*0x821,_0x51bb08=this[_0x2794c8(0x18b)][_0x2794c8(0x176)][_0x2794c8(0x16d)](async()=>{const _0x4bad11=_0x2794c8,_0x19d568=await listInitializedSubmodulePaths(_0x2879e6[_0x4bad11(0x179)]),_0x38d72a=['',..._0x19d568],_0x327f70=async(_0x687cc4,_0x210c14)=>{const _0x548f07=_0x4bad11,_0x2efac5=_0x210c14??(_0x687cc4===''?_0x2879e6[_0x548f07(0x179)]:await resolveGitRepository(_0x2879e6[_0x548f07(0x179)],_0x687cc4,_0x19d568)),_0x1d836f=await readCurrentChangesSummary(_0x2efac5),_0x636d23=(await mapWithConcurrency(_0x1d836f[_0x548f07(0x180)],CHANGE_VISIBILITY_CONCURRENCY,async _0x161bf2=>({'change':_0x161bf2,'visible':await isWorkspaceChangeVisible(_0x2efac5,_0x161bf2[_0x548f07(0x179)])})))[_0x548f07(0x16e)](({visible:_0xb8239})=>_0xb8239)[_0x548f07(0x187)](({change:_0x4d8ad2})=>_0x4d8ad2);return{'repositoryPath':_0x687cc4,'repositoryName':_0x687cc4===''?basename(_0x2efac5):posix[_0x548f07(0x172)](_0x687cc4),'branch':_0x1d836f[_0x548f07(0x184)],'dirty':_0x1d836f[_0x548f07(0x180)][_0x548f07(0x186)]>0x1385+0x4*0x50a+0x5ab*-0x7,'changes':_0x636d23};},_0x4774b5=await _0x327f70(''),_0x2ea880=(await mapWithConcurrency(_0x38d72a[_0x4bad11(0x181)](0x2f*0x4+0x399*0x4+-0xf1f),REPOSITORY_READ_CONCURRENCY,async _0x2c30ee=>{try{return await _0x327f70(_0x2c30ee);}catch{return undefined;}}))[_0x4bad11(0x16e)](_0x33c0a8=>_0x33c0a8!==undefined),_0x59f122=await listGitWorktrees(_0x2879e6[_0x4bad11(0x179)]),_0x593feb=_0x59f122[_0x4bad11(0x161)][_0x4bad11(0x16e)](_0x3c73a7=>!_0x3c73a7[_0x4bad11(0x164)]),_0x54eebe=await mapWithConcurrency(_0x593feb,WORKTREE_READ_CONCURRENCY,async _0x39ae16=>{const _0x41d090=_0x4bad11,_0x13a64d={'repositoryPath':'','repositoryName':_0x39ae16[_0x41d090(0x177)],'source':_0x41d090(0x15f),'worktreePath':_0x39ae16[_0x41d090(0x179)],'physicalPath':_0x39ae16[_0x41d090(0x179)],'current':![],'branch':_0x39ae16[_0x41d090(0x184)],'head':_0x39ae16[_0x41d090(0x167)],'locked':_0x39ae16[_0x41d090(0x173)],'prunable':_0x39ae16[_0x41d090(0x171)]};if(_0x39ae16[_0x41d090(0x171)])return{..._0x13a64d,'dirty':![],'status':_0x41d090(0x18e),'changes':[]};try{const _0x2a4155=await _0x327f70('',_0x39ae16[_0x41d090(0x179)]);return{..._0x13a64d,'dirty':_0x2a4155[_0x41d090(0x16f)],'branch':_0x2a4155[_0x41d090(0x184)],'status':_0x2a4155[_0x41d090(0x16f)]?_0x41d090(0x166):_0x41d090(0x17b),'changes':_0x2a4155[_0x41d090(0x180)]};}catch{return{..._0x13a64d,'dirty':![],'status':_0x41d090(0x18e),'changes':[]};}}),_0x3a05d8=_0x59f122[_0x4bad11(0x161)][_0x4bad11(0x175)](_0x124fae=>_0x124fae[_0x4bad11(0x164)]),_0x38fa12=_0x59f122[_0x4bad11(0x161)][_0x4bad11(0x187)](_0x5b88f8=>{const _0x4ca872=_0x4bad11,_0x48f183=_0x54eebe[_0x4ca872(0x175)](_0x22cfc9=>_0x22cfc9[_0x4ca872(0x178)]===_0x5b88f8[_0x4ca872(0x179)]);return{'directoryName':_0x5b88f8[_0x4ca872(0x177)],'branch':_0x5b88f8[_0x4ca872(0x184)],'head':_0x5b88f8[_0x4ca872(0x167)],'current':_0x5b88f8[_0x4ca872(0x164)],'status':_0x5b88f8[_0x4ca872(0x164)]?_0x4774b5[_0x4ca872(0x16f)]?_0x4ca872(0x166):_0x4ca872(0x17b):_0x48f183?.[_0x4ca872(0x185)]??_0x4ca872(0x18e),'locked':_0x5b88f8[_0x4ca872(0x173)],'prunable':_0x5b88f8[_0x4ca872(0x171)]};}),_0x33309d=_0x3624ad=>({..._0x3624ad,'additions':null,'deletions':null,'binary':![],'diffAvailable':!![]}),_0x51c577={'branch':_0x4774b5[_0x4bad11(0x184)],'changes':_0x4774b5[_0x4bad11(0x180)][_0x4bad11(0x187)](_0x33309d),'repositories':[{..._0x4774b5,'source':_0x4bad11(0x188),'physicalPath':_0x3a05d8?.[_0x4bad11(0x179)]??_0x2879e6[_0x4bad11(0x179)],'current':!![],..._0x3a05d8===undefined?{}:{'head':_0x3a05d8[_0x4bad11(0x167)]},'status':_0x4774b5[_0x4bad11(0x16f)]?_0x4bad11(0x166):_0x4bad11(0x17b),'locked':_0x3a05d8?.[_0x4bad11(0x173)]??![],'prunable':_0x3a05d8?.[_0x4bad11(0x171)]??![]},..._0x2ea880[_0x4bad11(0x187)](_0x4395e1=>({..._0x4395e1,'source':_0x4bad11(0x174)})),..._0x54eebe][_0x4bad11(0x187)](({dirty:_0x5494d4,..._0x2c5a64})=>{const _0x791827=_0x4bad11;return void _0x5494d4,{..._0x2c5a64,'changes':_0x2c5a64[_0x791827(0x180)][_0x791827(0x187)](_0x33309d)};}),'worktrees':_0x38fa12,'worktreesTruncated':_0x59f122[_0x4bad11(0x194)]};if((this[_0x4bad11(0x18b)][_0x4bad11(0x17a)][_0x4bad11(0x160)](_0x2879e6['id'])??0xc28+-0xc0e*0x1+-0x1a)===_0x1b61e3)this[_0x4bad11(0x18b)][_0x4bad11(0x18f)][_0x4bad11(0x192)](_0x2879e6['id'],{'value':_0x51c577,'expiresAt':Date[_0x4bad11(0x17e)]()+CACHE_TTL_MS});return _0x51c577;});this[_0x2794c8(0x18b)][_0x2794c8(0x183)][_0x2794c8(0x192)](_0x2879e6['id'],_0x51bb08);try{return await _0x51bb08;}finally{if(this[_0x2794c8(0x18b)][_0x2794c8(0x183)][_0x2794c8(0x160)](_0x2879e6['id'])===_0x51bb08)this[_0x2794c8(0x18b)][_0x2794c8(0x183)][_0x2794c8(0x16c)](_0x2879e6['id']);}}}async function mapWithConcurrency(_0x48b407,_0x35cdf9,_0x240470){const _0x525d31=_0x208507,_0x1e0250=new Array(_0x48b407[_0x525d31(0x186)]);let _0x37d091=0xd*0x3b+0x1*0xec3+0x2*-0x8e1;return await Promise[_0x525d31(0x191)](Array[_0x525d31(0x17c)]({'length':Math[_0x525d31(0x18d)](_0x35cdf9,_0x48b407[_0x525d31(0x186)])},async()=>{const _0x7825b3=_0x525d31;while(_0x37d091<_0x48b407[_0x7825b3(0x186)]){const _0x82384=_0x37d091;_0x37d091+=0x17f8+-0x1546+-0x1*0x2b1,_0x1e0250[_0x82384]=await _0x240470(_0x48b407[_0x82384]);}})),_0x1e0250;}function _0x2321(){const _0x3565c8=['C3rHDgu','y2XLyxi','BwLU','vu5bvKfjtefcteu','y2HHBMDLC0nHy2HL','mZyZnte2nNvnCKvQuq','ywXS','C2v0','DMfSDwu','Dhj1BMnHDgvK','v09ss1rsruu','z2v0','zw50CMLLCW','ndyXotzZC3zxqNa','mtm2odG0nvDYtwLfEq','y3vYCMvUDa','mtGXntmXnu9JzwTezq','reLsvfK','AgvHza','Aw52ywXPzgf0zq','otq2mZnSCuDTExq','ndK2AMXwB29j','A2LUza','zgvSzxrL','CNvU','zMLSDgvY','zgLYDhK','r0Lux1DpuKTtuefdrq','Chj1BMfIBgu','yMfZzw5HBwu','Bg9JA2vK','u1vctu9evuXf','zMLUza','y2HHBMDLC0XPBwL0zxi','zgLYzwn0B3j5tMfTzq','D29YA3rYzwvqyxrO','Cgf0Aa','y2HHBMDLC1zLCNnPB25Z','q0Xfqu4','zNjVBq','odm0nZy4mfD4qM9Ktq','BM93','mtqXC2Xfq1r3','y2HHBMDLCW','C2XPy2u','zxHWAxjLC0f0','y2HHBMDLC1jLywrZ','yNjHBMnO','C3rHDhvZ','BgvUz3rO','BwfW','uK9pva','mtC3odG2mfborKrywa','v09ss1nqqunfx05pvf9hsvq'];_0x2321=function(){return _0x3565c8;};return _0x2321();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
const _0x5ca356=_0x53af;(function(_0x3d0874,_0x3684b5){const _0x549db7=_0x53af,_0x2a405e=_0x3d0874();while(!![]){try{const _0x16b948=-parseInt(_0x549db7(0x167))/(-0x1e6b*-0x1+0x3*-0x2e7+-0x15b5)+-parseInt(_0x549db7(0x145))/(-0x13d*0x7+-0x1157+0x1a04)+parseInt(_0x549db7(0x173))/(0x1*-0x1e7d+0x2b4+0x1bcc)+-parseInt(_0x549db7(0x141))/(0x247c+-0x1*-0xd9f+-0x3217)*(-parseInt(_0x549db7(0x151))/(-0x198b+-0x233a+0x3cca))+-parseInt(_0x549db7(0x152))/(0x5ad*0x1+0x427+0xfb*-0xa)*(parseInt(_0x549db7(0x14a))/(-0x153c+-0x100d*-0x1+-0x2*-0x29b))+parseInt(_0x549db7(0x142))/(-0x35*0x1c+0x1936+-0x1362)+parseInt(_0x549db7(0x166))/(0x1583+-0x7c8+-0x2*0x6d9);if(_0x16b948===_0x3684b5)break;else _0x2a405e['push'](_0x2a405e['shift']());}catch(_0x53b558){_0x2a405e['push'](_0x2a405e['shift']());}}}(_0x37a9,-0x11986*0x4+-0x5b53*0x11+0xeb81c));function _0x53af(_0x30b13f,_0xe826e6){_0x30b13f=_0x30b13f-(0x201*-0xd+0x27*0x41+0x3*0x5cb);const _0x3d1951=_0x37a9();let _0x27ef93=_0x3d1951[_0x30b13f];if(_0x53af['RhMfTz']===undefined){var _0x4b845f=function(_0x5c03c5){const _0x5e6691='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x57d6a2='',_0x5c1cdd='';for(let _0x3fdc32=0x109*0x2+0x1ea0+0xae6*-0x3,_0xd652fb,_0x5afae5,_0x2791c2=-0x636+-0x1*0xb93+0x11c9;_0x5afae5=_0x5c03c5['charAt'](_0x2791c2++);~_0x5afae5&&(_0xd652fb=_0x3fdc32%(-0x3dd*0x7+-0x1*0x5af+0xb*0x2fa)?_0xd652fb*(0x98e*0x3+0x1*0x1c16+0x1*-0x3880)+_0x5afae5:_0x5afae5,_0x3fdc32++%(0x906+-0xb6a*0x3+0x193c))?_0x57d6a2+=String['fromCharCode'](-0x3*0x2dd+0xcdf+0x1d*-0x1d&_0xd652fb>>(-(-0x2*-0x65+0x31d*-0x1+0x3*0xc7)*_0x3fdc32&0x22c4+-0x1cb4+-0x60a)):-0x6*0x610+-0xac*-0x4+0x31*0xb0){_0x5afae5=_0x5e6691['indexOf'](_0x5afae5);}for(let _0x4c94ea=-0x7*-0x71+-0x119e+-0x1*-0xe87,_0x4dd7bf=_0x57d6a2['length'];_0x4c94ea<_0x4dd7bf;_0x4c94ea++){_0x5c1cdd+='%'+('00'+_0x57d6a2['charCodeAt'](_0x4c94ea)['toString'](-0x1b13+-0xa2f*0x2+0x2f81))['slice'](-(0xd7c*-0x2+0x9dd+0x111d));}return decodeURIComponent(_0x5c1cdd);};_0x53af['ToYnbB']=_0x4b845f,_0x53af['XfyUJz']={},_0x53af['RhMfTz']=!![];}const _0x1ac55d=_0x3d1951[-0x1282+-0x4e1*-0x3+0x1*0x3df];_0x53af['GReBKq']!==_0x1ac55d&&(_0x53af['XfyUJz']={},_0x53af['GReBKq']=_0x1ac55d);const _0x38b667=_0x53af['XfyUJz'][_0x30b13f];return _0x38b667===undefined?(_0x27ef93=_0x53af['ToYnbB'](_0x27ef93),_0x53af['XfyUJz'][_0x30b13f]=_0x27ef93):_0x27ef93=_0x38b667,_0x27ef93;}function _0x37a9(){const _0x55ccd6=['Bxv0yxrL','Cgf0Aa','reLsrunut1jzx0nvuLnpuL9jtLzbteLe','zgLZCg9Zzq','CMvHza','y2XLyxi','nxzwDefOAa','mtK3mtuZne1IueHyuW','rKLmrv9trufsq0HFteLnsvrFrvHdruveruq','z2v0','BNvTyMvY','C2vYAwfSAxPLtxv0yxrPB24','q1jfqvrfx0zjteu','rKLmrv9xuKLurv9jtLzbteLe','BgLZDa','revmrvrf','AxnjBNrLz2vY','q1jfqvrfx0rjuKvdve9swq','Aw5JBhvKzurPCMvJDg9YAwvZ','B2zMC2v0','tu9wrq','DgHLBG','ChjLDMLLD1jVB3rZ','C2L6zq','BgLTAxq','DMfSDwu','CMvZB2X2zq','nZeXmtmYm0TfDKvLDW','mZGWmtu3ANvtuerP','y3vYC29Y','C3rYAw5N','y29UDgvUDa','rKLmrv9squ5hrv9jtLzbteLe','zgvZDgLUyxrPB24','D3jPDgu','ywXSB3DLzfjVB3rZ','C2v0','ywn0Aw9U','zgvSzxrL','C2vHCMnO','nJe1otaZCxv4vNvO','zMLSzuLUzgv4zxm','CMvHzenVBNrLBNq','Bxv0yxrPB25uywLSCW','Aw5KzxG','B25jBNzHBgLKyxrLza','zw50CMLLCW','C3rHDgu','AxnbyNnVBhv0zq','otiXmtm2q21NBxzM','mJi3mJq5nKL2rwHLrG','CxvLCNK','zxHWzwn0zwrszxzPC2LVBG','mta0ndi3mhvfBK1eAa','BMv4Da','DMfSDwvZ','rKLmrv9nvvrbveLptL9jtLzbteLe','yM9VBgvHBG','n3j1qvnPvW'];_0x37a9=function(){return _0x55ccd6;};return _0x37a9();}import{tmpdir}from'node:os';import{isAbsolute,win32}from'node:path';import{listWorkspaceFiles,mutateWorkspaceFile,normalizeFilePreviewPath,readAllowedFileContentRange,readWorkspaceFileContentRange,readAllowedTextFile,readWorkspaceTextFile,writeWorkspaceTextFile,WorkspaceFileIndex}from'../workspace.js';const INDEX_CACHE_LIMIT=0x687+0x1ef7*0x1+-0x2576;export class WorkspaceFileService{[_0x5ca356(0x13f)];[_0x5ca356(0x16e)];[_0x5ca356(0x13d)];[_0x5ca356(0x13b)]=new Map();constructor(_0x17568e,_0x92f431,_0x510804){const _0x4f5939=_0x5ca356;this[_0x4f5939(0x13f)]=_0x17568e,this[_0x4f5939(0x16e)]=_0x92f431,this[_0x4f5939(0x13d)]=_0x510804;}async[_0x5ca356(0x159)](_0x1fd2ae,_0x563987){const _0x5da5ec=_0x5ca356;if(_0x563987[_0x5da5ec(0x14c)]!==undefined&&typeof _0x563987[_0x5da5ec(0x14c)]!==_0x5da5ec(0x169)||_0x563987[_0x5da5ec(0x168)]!==undefined&&typeof _0x563987[_0x5da5ec(0x168)]!==_0x5da5ec(0x169)||_0x563987[_0x5da5ec(0x163)]!==undefined&&(!Number[_0x5da5ec(0x15b)](_0x563987[_0x5da5ec(0x163)])||_0x563987[_0x5da5ec(0x163)]<-0x1*0xb93+-0x1a9d+0x2631||_0x563987[_0x5da5ec(0x163)]>-0x5af+-0x1*-0xadc+0x9*-0x7d))throw new Error(_0x5da5ec(0x14d));return listWorkspaceFiles(_0x1fd2ae[_0x5da5ec(0x14c)],typeof _0x563987[_0x5da5ec(0x14c)]===_0x5da5ec(0x169)?_0x563987[_0x5da5ec(0x14c)]:'.',typeof _0x563987[_0x5da5ec(0x168)]===_0x5da5ec(0x169)?_0x563987[_0x5da5ec(0x168)]:undefined,typeof _0x563987[_0x5da5ec(0x163)]===_0x5da5ec(0x155)?_0x563987[_0x5da5ec(0x163)]:undefined);}async[_0x5ca356(0x14f)](_0xa0311a,_0x47097a){const _0x47fb71=_0x5ca356;if(typeof _0x47097a[_0x47fb71(0x14c)]!==_0x47fb71(0x169)||_0x47097a[_0x47fb71(0x15e)]!==undefined&&(!Number[_0x47fb71(0x15b)](_0x47097a[_0x47fb71(0x15e)])||_0x47097a[_0x47fb71(0x15e)]<0x98e*0x3+0x1*0x1c16+0x1*-0x38c0)||_0x47097a[_0x47fb71(0x163)]!==undefined&&(!Number[_0x47fb71(0x15b)](_0x47097a[_0x47fb71(0x163)])||_0x47097a[_0x47fb71(0x163)]<0x906+-0xb6a*0x3+0x1939||_0x47097a[_0x47fb71(0x163)]>(-0x3*0x2dd+0xcdf+0x49*-0x8)*(-0x2*-0x65+0x31d*-0x1+0x1*0x653)))throw new Error(_0x47fb71(0x16b));const _0x2d5aac=typeof _0x47097a[_0x47fb71(0x15e)]===_0x47fb71(0x155)?_0x47097a[_0x47fb71(0x15e)]:0x22c4+-0x1cb4+-0x610,_0x53659c=typeof _0x47097a[_0x47fb71(0x163)]===_0x47fb71(0x155)?_0x47097a[_0x47fb71(0x163)]:(-0x6*0x610+-0xac*-0x4+0x8*0x476)*(-0x7*-0x71+-0x119e+-0x1*-0x1287),_0x57a350=normalizeFilePreviewPath(_0x47097a[_0x47fb71(0x14c)]);return isFilePreviewAbsolutePath(_0x57a350)?readAllowedTextFile(_0x57a350,this[_0x47fb71(0x161)](),_0x2d5aac,_0x53659c):readWorkspaceTextFile(_0xa0311a[_0x47fb71(0x14c)],_0x57a350,_0x2d5aac,_0x53659c);}async[_0x5ca356(0x175)](_0x285ff9,_0x3fbda6){const _0x454166=_0x5ca356;if(typeof _0x3fbda6[_0x454166(0x14c)]!==_0x454166(0x169)||_0x3fbda6[_0x454166(0x15e)]!==undefined&&(!Number[_0x454166(0x15b)](_0x3fbda6[_0x454166(0x15e)])||_0x3fbda6[_0x454166(0x15e)]<-0x1b13+-0xa2f*0x2+0x2f71)||_0x3fbda6[_0x454166(0x163)]!==undefined&&(!Number[_0x454166(0x15b)](_0x3fbda6[_0x454166(0x163)])||_0x3fbda6[_0x454166(0x163)]<0xd7c*-0x2+0x9dd+0x111c||_0x3fbda6[_0x454166(0x163)]>(-0x1282+-0x4e1*-0x3+0x3*0x1f5)*(-0x1*-0xd3+-0x1*0x1b2f+0x1e5c*0x1)))throw new Error(_0x454166(0x16b));const _0x4486dd=normalizeFilePreviewPath(_0x3fbda6[_0x454166(0x14c)]),_0x4003a2=typeof _0x3fbda6[_0x454166(0x15e)]===_0x454166(0x155)?_0x3fbda6[_0x454166(0x15e)]:0x2e*0xd5+0x20e5+-0x1*0x472b,_0x57ce6b=typeof _0x3fbda6[_0x454166(0x163)]===_0x454166(0x155)?_0x3fbda6[_0x454166(0x163)]:(0x17ac+0x18b5+-0x1f*0x17f)*(0x1b5*-0xc+-0x2c*-0xd6+-0xc4c);return isFilePreviewAbsolutePath(_0x4486dd)?readAllowedFileContentRange(_0x4486dd,this[_0x454166(0x161)](),_0x4003a2,_0x57ce6b):readWorkspaceFileContentRange(_0x285ff9[_0x454166(0x14c)],_0x4486dd,_0x4003a2,_0x57ce6b);}async[_0x5ca356(0x16d)](_0x3f5734,_0x13881c){const _0x18ce0c=_0x5ca356;if(typeof _0x13881c[_0x18ce0c(0x14c)]!==_0x18ce0c(0x169)||typeof _0x13881c[_0x18ce0c(0x16a)]!==_0x18ce0c(0x169)||typeof _0x13881c[_0x18ce0c(0x144)]!==_0x18ce0c(0x169))throw new Error(_0x18ce0c(0x158));const _0x3c8d65=_0x13881c[_0x18ce0c(0x14c)],_0x32c6ee=_0x13881c[_0x18ce0c(0x16a)],_0x3939af=_0x13881c[_0x18ce0c(0x144)];return this[_0x18ce0c(0x156)](_0x3f5734['id'],async()=>{const _0x4840c9=_0x18ce0c,_0xae6256=await writeWorkspaceTextFile(_0x3f5734[_0x4840c9(0x14c)],_0x3c8d65,_0x32c6ee,_0x3939af);return this[_0x4840c9(0x14e)](_0x3f5734['id']),this[_0x4840c9(0x13d)](_0x3f5734['id']),_0xae6256;});}async[_0x5ca356(0x172)](_0x461d09,_0x3989a0){const _0x58e135=_0x5ca356;if(typeof _0x3989a0[_0x58e135(0x143)]!==_0x58e135(0x169)||_0x3989a0[_0x58e135(0x168)]!==undefined&&typeof _0x3989a0[_0x58e135(0x168)]!==_0x58e135(0x169)||_0x3989a0[_0x58e135(0x15d)]!==undefined&&typeof _0x3989a0[_0x58e135(0x15d)]!==_0x58e135(0x149)||_0x3989a0[_0x58e135(0x163)]!==undefined&&(!Number[_0x58e135(0x15b)](_0x3989a0[_0x58e135(0x163)])||_0x3989a0[_0x58e135(0x163)]<0xee2+0x4e2+-0x13c3||_0x3989a0[_0x58e135(0x163)]>-0x1*-0x2264+-0x1cfb+0xf*-0x4f))throw new Error(_0x58e135(0x153));return this[_0x58e135(0x13c)](_0x461d09)[_0x58e135(0x172)](_0x3989a0[_0x58e135(0x143)],typeof _0x3989a0[_0x58e135(0x168)]===_0x58e135(0x169)?_0x3989a0[_0x58e135(0x168)]:undefined,typeof _0x3989a0[_0x58e135(0x163)]===_0x58e135(0x155)?_0x3989a0[_0x58e135(0x163)]:undefined,_0x3989a0[_0x58e135(0x15d)]===!![]);}async[_0x5ca356(0x14b)](_0x13ceb9,_0x2fcf6e){const _0x517abf=_0x5ca356,_0x4347d2=_0x2fcf6e[_0x517abf(0x170)];if(_0x4347d2!==_0x517abf(0x157)&&_0x4347d2!==_0x517abf(0x15c)&&_0x4347d2!==_0x517abf(0x15f)&&_0x4347d2!==_0x517abf(0x15a)||typeof _0x2fcf6e[_0x517abf(0x14c)]!==_0x517abf(0x169)||_0x4347d2===_0x517abf(0x15f)&&typeof _0x2fcf6e[_0x517abf(0x16c)]!==_0x517abf(0x169))throw new Error(_0x517abf(0x148));const _0x58fb5c=_0x2fcf6e[_0x517abf(0x14c)],_0x155bb6=typeof _0x2fcf6e[_0x517abf(0x16c)]===_0x517abf(0x169)?_0x2fcf6e[_0x517abf(0x16c)]:undefined;return this[_0x517abf(0x156)](_0x13ceb9['id'],async()=>{const _0x5ac22a=_0x517abf,_0x2b6948=await mutateWorkspaceFile(_0x13ceb9[_0x5ac22a(0x14c)],_0x4347d2===_0x5ac22a(0x15f)?{'action':_0x4347d2,'path':_0x58fb5c,'destination':_0x155bb6}:{'action':_0x4347d2,'path':_0x58fb5c});return this[_0x5ac22a(0x14e)](_0x13ceb9['id']),this[_0x5ac22a(0x13d)](_0x13ceb9['id']),_0x2b6948;});}async[_0x5ca356(0x156)](_0x7f74ba,_0x59eca2){const _0x5621ff=_0x5ca356,_0x33b60c=this[_0x5621ff(0x13b)][_0x5621ff(0x154)](_0x7f74ba)??Promise[_0x5621ff(0x165)](),_0x48024c=_0x33b60c[_0x5621ff(0x160)](_0x59eca2,_0x59eca2),_0x403df6=_0x48024c[_0x5621ff(0x160)](()=>undefined,()=>undefined);this[_0x5621ff(0x13b)][_0x5621ff(0x16f)](_0x7f74ba,_0x403df6);try{return await _0x48024c;}finally{if(this[_0x5621ff(0x13b)][_0x5621ff(0x154)](_0x7f74ba)===_0x403df6)this[_0x5621ff(0x13b)][_0x5621ff(0x171)](_0x7f74ba);}}[_0x5ca356(0x13c)](_0x716fbd){const _0x3d4a1e=_0x5ca356;let _0x1f2ef3=this[_0x3d4a1e(0x13f)][_0x3d4a1e(0x174)][_0x3d4a1e(0x154)](_0x716fbd['id']);if(_0x1f2ef3===undefined){if(this[_0x3d4a1e(0x13f)][_0x3d4a1e(0x174)][_0x3d4a1e(0x162)]>=INDEX_CACHE_LIMIT){const _0x9f8ade=this[_0x3d4a1e(0x13f)][_0x3d4a1e(0x174)][_0x3d4a1e(0x13e)]()[_0x3d4a1e(0x146)]()[_0x3d4a1e(0x164)];_0x9f8ade!==undefined&&(_0x9f8ade[-0x17e8+0x1381+0x468*0x1][_0x3d4a1e(0x14e)](),this[_0x3d4a1e(0x13f)][_0x3d4a1e(0x174)][_0x3d4a1e(0x171)](_0x9f8ade[0x1a30+0x1010*-0x2+-0x2f8*-0x2]));}_0x1f2ef3=new WorkspaceFileIndex(_0x716fbd[_0x3d4a1e(0x14c)]);}return this[_0x3d4a1e(0x13f)][_0x3d4a1e(0x174)][_0x3d4a1e(0x171)](_0x716fbd['id']),this[_0x3d4a1e(0x13f)][_0x3d4a1e(0x174)][_0x3d4a1e(0x16f)](_0x716fbd['id'],_0x1f2ef3),_0x1f2ef3;}[_0x5ca356(0x14e)](_0x3e96e0){const _0x4d4d1a=_0x5ca356;if(_0x3e96e0!==undefined){this[_0x4d4d1a(0x13f)][_0x4d4d1a(0x174)][_0x4d4d1a(0x154)](_0x3e96e0)?.[_0x4d4d1a(0x14e)](),this[_0x4d4d1a(0x13f)][_0x4d4d1a(0x174)][_0x4d4d1a(0x171)](_0x3e96e0);return;}for(const _0xc7b4a4 of this[_0x4d4d1a(0x13f)][_0x4d4d1a(0x174)][_0x4d4d1a(0x147)]())_0xc7b4a4[_0x4d4d1a(0x14e)]();this[_0x4d4d1a(0x13f)][_0x4d4d1a(0x174)][_0x4d4d1a(0x150)]();}[_0x5ca356(0x161)](){const _0x1ae128=_0x5ca356;return[...new Set([...this[_0x1ae128(0x16e)](),tmpdir()])];}}function isFilePreviewAbsolutePath(_0x10ca11){const _0x41806a=_0x5ca356;return isAbsolute(_0x10ca11)||win32[_0x41806a(0x140)](_0x10ca11);}
|
|
2
|
+
const _0x33ff72=_0x1f54;function _0x1f54(_0x4ec6f9,_0x4946ea){_0x4ec6f9=_0x4ec6f9-(-0x5*-0x509+0x32f+-0x1a77);const _0x32d818=_0x41d0();let _0x270899=_0x32d818[_0x4ec6f9];if(_0x1f54['JVlZNi']===undefined){var _0x135f05=function(_0x1dd6d5){const _0x36a922='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1eec45='',_0x1c2500='';for(let _0x380068=-0x1ab1+-0x4c0*-0x2+0x1131,_0x33ad79,_0x1835cf,_0x35c803=0x1fe6*-0x1+-0x14b9+0x349f;_0x1835cf=_0x1dd6d5['charAt'](_0x35c803++);~_0x1835cf&&(_0x33ad79=_0x380068%(-0xf*0x281+0x14f8+-0x3*-0x589)?_0x33ad79*(-0x63c+-0x1*-0x117+0x565)+_0x1835cf:_0x1835cf,_0x380068++%(-0x6b9+0xce9*0x3+-0x1ffe))?_0x1eec45+=String['fromCharCode'](-0x437+0x1324+-0x2*0x6f7&_0x33ad79>>(-(0x576+-0x1*-0x10eb+-0x165f)*_0x380068&0x1cf9*-0x1+-0x18e9+0x35e8)):0x3*0x6e3+-0x3*0xf9+-0x6*0x2f5){_0x1835cf=_0x36a922['indexOf'](_0x1835cf);}for(let _0x1a18af=0x9eb+-0x1*0x1322+0x937*0x1,_0x4eef18=_0x1eec45['length'];_0x1a18af<_0x4eef18;_0x1a18af++){_0x1c2500+='%'+('00'+_0x1eec45['charCodeAt'](_0x1a18af)['toString'](0x18e5+0x3*0xcec+-0x3f99))['slice'](-(-0x5*-0x14e+0x1d1b*0x1+-0x239f));}return decodeURIComponent(_0x1c2500);};_0x1f54['eEmvRr']=_0x135f05,_0x1f54['ascbJv']={},_0x1f54['JVlZNi']=!![];}const _0x5d818d=_0x32d818[0x35d*0x2+-0x1*-0x1e4d+-0x2507];_0x1f54['mMzslQ']!==_0x5d818d&&(_0x1f54['ascbJv']={},_0x1f54['mMzslQ']=_0x5d818d);const _0x5009aa=_0x1f54['ascbJv'][_0x4ec6f9];return _0x5009aa===undefined?(_0x270899=_0x1f54['eEmvRr'](_0x270899),_0x1f54['ascbJv'][_0x4ec6f9]=_0x270899):_0x270899=_0x5009aa,_0x270899;}(function(_0x53f636,_0x2608e1){const _0x4c8c13=_0x1f54,_0x11c172=_0x53f636();while(!![]){try{const _0x49e10b=parseInt(_0x4c8c13(0x1fe))/(0xa13*0x1+-0x107f+-0x149*-0x5)*(-parseInt(_0x4c8c13(0x1f0))/(-0xf47+0x2271+0x994*-0x2))+-parseInt(_0x4c8c13(0x20f))/(-0xef*0x1+-0x1cbc+0x1dae*0x1)+-parseInt(_0x4c8c13(0x1f2))/(-0xc17*-0x3+0x1*-0x17db+-0x2e*0x45)+-parseInt(_0x4c8c13(0x203))/(0x44d*-0x1+-0x11*0x1e6+0x2498)*(parseInt(_0x4c8c13(0x1ec))/(0xd4*-0x1a+0xe2f+-0x6f*-0x11))+-parseInt(_0x4c8c13(0x1e5))/(-0x2ad*-0x1+0x2189*-0x1+-0x1*-0x1ee3)*(-parseInt(_0x4c8c13(0x205))/(0x1f40+0x101*-0x11+-0xe27))+-parseInt(_0x4c8c13(0x1ef))/(0x1d*-0x14e+-0x829+0x2e08)*(-parseInt(_0x4c8c13(0x1fd))/(-0x2*0x4ae+-0x1d*0x1+0x983*0x1))+parseInt(_0x4c8c13(0x1e8))/(0x91d*-0x1+-0x29c*-0x2+-0x12*-0x38)*(parseInt(_0x4c8c13(0x20c))/(0x1*-0x17fa+0x22cf+-0xac9));if(_0x49e10b===_0x2608e1)break;else _0x11c172['push'](_0x11c172['shift']());}catch(_0x24d8b7){_0x11c172['push'](_0x11c172['shift']());}}}(_0x41d0,0xda6fc+-0xde052+-0x16d*-0x5a3));import{tmpdir}from'node:os';import{isAbsolute,win32}from'node:path';import{listWorkspaceFiles,mutateWorkspaceFile,normalizeFilePreviewPath,readAllowedFileContentRange,readWorkspaceFileContentRange,readAllowedTextFile,readWorkspaceTextFile,writeWorkspaceTextFile,WorkspaceFileIndex}from'../workspace.js';const INDEX_CACHE_LIMIT=-0x22df+-0x32+0x2319*0x1;export class WorkspaceFileService{[_0x33ff72(0x210)];[_0x33ff72(0x20a)];[_0x33ff72(0x204)];[_0x33ff72(0x1ea)]=new Map();constructor(_0x2922de,_0x177eb0,_0x3c301e){const _0x405064=_0x33ff72;this[_0x405064(0x210)]=_0x2922de,this[_0x405064(0x20a)]=_0x177eb0,this[_0x405064(0x204)]=_0x3c301e;}async[_0x33ff72(0x209)](_0x4b3788,_0x34d592){const _0x3591d9=_0x33ff72;if(_0x34d592[_0x3591d9(0x1eb)]!==undefined&&typeof _0x34d592[_0x3591d9(0x1eb)]!==_0x3591d9(0x1fc)||_0x34d592[_0x3591d9(0x1fa)]!==undefined&&typeof _0x34d592[_0x3591d9(0x1fa)]!==_0x3591d9(0x1fc)||_0x34d592[_0x3591d9(0x223)]!==undefined&&(!Number[_0x3591d9(0x21d)](_0x34d592[_0x3591d9(0x223)])||_0x34d592[_0x3591d9(0x223)]<-0x1a09+0x1*-0x10fb+0x2b05||_0x34d592[_0x3591d9(0x223)]>-0x198f+0x1775+-0x9*-0x52))throw new Error(_0x3591d9(0x1f6));return listWorkspaceFiles(_0x4b3788[_0x3591d9(0x1eb)],typeof _0x34d592[_0x3591d9(0x1eb)]===_0x3591d9(0x1fc)?_0x34d592[_0x3591d9(0x1eb)]:'.',typeof _0x34d592[_0x3591d9(0x1fa)]===_0x3591d9(0x1fc)?_0x34d592[_0x3591d9(0x1fa)]:undefined,typeof _0x34d592[_0x3591d9(0x223)]===_0x3591d9(0x216)?_0x34d592[_0x3591d9(0x223)]:undefined);}async[_0x33ff72(0x1ed)](_0x2624e0,_0x812e52,_0x1a0287=_0x2624e0[_0x33ff72(0x1eb)]){const _0x5bc91b=_0x33ff72;if(typeof _0x812e52[_0x5bc91b(0x1eb)]!==_0x5bc91b(0x1fc)||_0x812e52[_0x5bc91b(0x20d)]!==undefined&&(!Number[_0x5bc91b(0x21d)](_0x812e52[_0x5bc91b(0x20d)])||_0x812e52[_0x5bc91b(0x20d)]<0x62+-0x184+-0x122*-0x1)||_0x812e52[_0x5bc91b(0x223)]!==undefined&&(!Number[_0x5bc91b(0x21d)](_0x812e52[_0x5bc91b(0x223)])||_0x812e52[_0x5bc91b(0x223)]<0xa7c+0x20ff+-0x73f*0x6||_0x812e52[_0x5bc91b(0x223)]>(-0x1614+0xd*0x8b+0x1105)*(0x170c+-0x858+-0xab4)))throw new Error(_0x5bc91b(0x1f8));const _0xedf4e=typeof _0x812e52[_0x5bc91b(0x20d)]===_0x5bc91b(0x216)?_0x812e52[_0x5bc91b(0x20d)]:0x13ff+0x2406+-0x1*0x3805,_0x5698d2=typeof _0x812e52[_0x5bc91b(0x223)]===_0x5bc91b(0x216)?_0x812e52[_0x5bc91b(0x223)]:(-0x2*-0xb9c+-0x13*-0x77+-0x31*0x9d)*(-0x474+0x1301*0x1+0xa8d*-0x1),_0x241a13=normalizeFilePreviewPath(_0x812e52[_0x5bc91b(0x1eb)]);if(_0x1a0287!==_0x2624e0[_0x5bc91b(0x1eb)]&&isFilePreviewAbsolutePath(_0x241a13))throw new Error(_0x5bc91b(0x1f3));return isFilePreviewAbsolutePath(_0x241a13)?readAllowedTextFile(_0x241a13,this[_0x5bc91b(0x208)](),_0xedf4e,_0x5698d2):readWorkspaceTextFile(_0x1a0287,_0x241a13,_0xedf4e,_0x5698d2);}async[_0x33ff72(0x217)](_0x138200,_0x4bbdd7,_0xe4e39=_0x138200[_0x33ff72(0x1eb)]){const _0x2e9113=_0x33ff72;if(typeof _0x4bbdd7[_0x2e9113(0x1eb)]!==_0x2e9113(0x1fc)||_0x4bbdd7[_0x2e9113(0x20d)]!==undefined&&(!Number[_0x2e9113(0x21d)](_0x4bbdd7[_0x2e9113(0x20d)])||_0x4bbdd7[_0x2e9113(0x20d)]<-0xf60*0x1+0x27a*0x3+-0x9*-0xe2)||_0x4bbdd7[_0x2e9113(0x223)]!==undefined&&(!Number[_0x2e9113(0x21d)](_0x4bbdd7[_0x2e9113(0x223)])||_0x4bbdd7[_0x2e9113(0x223)]<0xb94+0x1492*0x1+0x2025*-0x1||_0x4bbdd7[_0x2e9113(0x223)]>(0xf4e+0x3b*-0x2+-0x3*0x448)*(-0x1*0x1733+-0x1f*-0x136+-0xa57)))throw new Error(_0x2e9113(0x1f8));const _0x5424fc=normalizeFilePreviewPath(_0x4bbdd7[_0x2e9113(0x1eb)]);if(_0xe4e39!==_0x138200[_0x2e9113(0x1eb)]&&isFilePreviewAbsolutePath(_0x5424fc))throw new Error(_0x2e9113(0x1f3));const _0x2e2424=typeof _0x4bbdd7[_0x2e9113(0x20d)]===_0x2e9113(0x216)?_0x4bbdd7[_0x2e9113(0x20d)]:0x6d0+-0x1b*-0x1f+-0x1d*0x59,_0x4520e6=typeof _0x4bbdd7[_0x2e9113(0x223)]===_0x2e9113(0x216)?_0x4bbdd7[_0x2e9113(0x223)]:(-0x19db+0x1220+0x9bb)*(0x577+0x1897+0x1d*-0xe6);return isFilePreviewAbsolutePath(_0x5424fc)?readAllowedFileContentRange(_0x5424fc,this[_0x2e9113(0x208)](),_0x2e2424,_0x4520e6):readWorkspaceFileContentRange(_0xe4e39,_0x5424fc,_0x2e2424,_0x4520e6);}async[_0x33ff72(0x215)](_0x4c3174,_0x34a9e6){const _0x287f63=_0x33ff72;if(typeof _0x34a9e6[_0x287f63(0x1eb)]!==_0x287f63(0x1fc)||typeof _0x34a9e6[_0x287f63(0x1f5)]!==_0x287f63(0x1fc)||typeof _0x34a9e6[_0x287f63(0x219)]!==_0x287f63(0x1fc))throw new Error(_0x287f63(0x222));const _0x14881e=_0x34a9e6[_0x287f63(0x1eb)],_0x457fdb=_0x34a9e6[_0x287f63(0x1f5)],_0x3ebee4=_0x34a9e6[_0x287f63(0x219)];return this[_0x287f63(0x21a)](_0x4c3174['id'],async()=>{const _0x521e75=_0x287f63,_0x19d6ae=await writeWorkspaceTextFile(_0x4c3174[_0x521e75(0x1eb)],_0x14881e,_0x457fdb,_0x3ebee4);return this[_0x521e75(0x211)](_0x4c3174['id']),this[_0x521e75(0x204)](_0x4c3174['id']),_0x19d6ae;});}async[_0x33ff72(0x1e6)](_0xf0f80,_0x5373d9){const _0x59f859=_0x33ff72;if(typeof _0x5373d9[_0x59f859(0x20b)]!==_0x59f859(0x1fc)||_0x5373d9[_0x59f859(0x1fa)]!==undefined&&typeof _0x5373d9[_0x59f859(0x1fa)]!==_0x59f859(0x1fc)||_0x5373d9[_0x59f859(0x1f1)]!==undefined&&typeof _0x5373d9[_0x59f859(0x1f1)]!==_0x59f859(0x218)||_0x5373d9[_0x59f859(0x223)]!==undefined&&(!Number[_0x59f859(0x21d)](_0x5373d9[_0x59f859(0x223)])||_0x5373d9[_0x59f859(0x223)]<0x119e+-0x63b+-0x2f*0x3e||_0x5373d9[_0x59f859(0x223)]>0x8c3*-0x2+0x1*-0x74b+0x1*0x1999))throw new Error(_0x59f859(0x214));return this[_0x59f859(0x20e)](_0xf0f80)[_0x59f859(0x1e6)](_0x5373d9[_0x59f859(0x20b)],typeof _0x5373d9[_0x59f859(0x1fa)]===_0x59f859(0x1fc)?_0x5373d9[_0x59f859(0x1fa)]:undefined,typeof _0x5373d9[_0x59f859(0x223)]===_0x59f859(0x216)?_0x5373d9[_0x59f859(0x223)]:undefined,_0x5373d9[_0x59f859(0x1f1)]===!![]);}async[_0x33ff72(0x207)](_0x1552a3,_0x57c732){const _0x1ab717=_0x33ff72,_0x1bf140=_0x57c732[_0x1ab717(0x202)];if(_0x1bf140!==_0x1ab717(0x1fb)&&_0x1bf140!==_0x1ab717(0x21e)&&_0x1bf140!==_0x1ab717(0x206)&&_0x1bf140!==_0x1ab717(0x213)||typeof _0x57c732[_0x1ab717(0x1eb)]!==_0x1ab717(0x1fc)||_0x1bf140===_0x1ab717(0x206)&&typeof _0x57c732[_0x1ab717(0x201)]!==_0x1ab717(0x1fc))throw new Error(_0x1ab717(0x21f));const _0x26dddb=_0x57c732[_0x1ab717(0x1eb)],_0x489958=typeof _0x57c732[_0x1ab717(0x201)]===_0x1ab717(0x1fc)?_0x57c732[_0x1ab717(0x201)]:undefined;return this[_0x1ab717(0x21a)](_0x1552a3['id'],async()=>{const _0x2a34c2=_0x1ab717,_0x121b32=await mutateWorkspaceFile(_0x1552a3[_0x2a34c2(0x1eb)],_0x1bf140===_0x2a34c2(0x206)?{'action':_0x1bf140,'path':_0x26dddb,'destination':_0x489958}:{'action':_0x1bf140,'path':_0x26dddb});return this[_0x2a34c2(0x211)](_0x1552a3['id']),this[_0x2a34c2(0x204)](_0x1552a3['id']),_0x121b32;});}async[_0x33ff72(0x21a)](_0x19751a,_0x3cd419){const _0x4c213c=_0x33ff72,_0x2d4a2c=this[_0x4c213c(0x1ea)][_0x4c213c(0x21c)](_0x19751a)??Promise[_0x4c213c(0x1ee)](),_0x14e12c=_0x2d4a2c[_0x4c213c(0x200)](_0x3cd419,_0x3cd419),_0x2ca780=_0x14e12c[_0x4c213c(0x200)](()=>undefined,()=>undefined);this[_0x4c213c(0x1ea)][_0x4c213c(0x212)](_0x19751a,_0x2ca780);try{return await _0x14e12c;}finally{if(this[_0x4c213c(0x1ea)][_0x4c213c(0x21c)](_0x19751a)===_0x2ca780)this[_0x4c213c(0x1ea)][_0x4c213c(0x1f9)](_0x19751a);}}[_0x33ff72(0x20e)](_0x4e8f92){const _0x2404b9=_0x33ff72;let _0x5b7841=this[_0x2404b9(0x210)][_0x2404b9(0x1f4)][_0x2404b9(0x21c)](_0x4e8f92['id']);if(_0x5b7841===undefined){if(this[_0x2404b9(0x210)][_0x2404b9(0x1f4)][_0x2404b9(0x221)]>=INDEX_CACHE_LIMIT){const _0x5940f2=this[_0x2404b9(0x210)][_0x2404b9(0x1f4)][_0x2404b9(0x1ff)]()[_0x2404b9(0x1e7)]()[_0x2404b9(0x1e9)];_0x5940f2!==undefined&&(_0x5940f2[0x2441+0x1109+-0x3549*0x1][_0x2404b9(0x211)](),this[_0x2404b9(0x210)][_0x2404b9(0x1f4)][_0x2404b9(0x1f9)](_0x5940f2[0xd*0x13+0x1cda*-0x1+-0x1be3*-0x1]));}_0x5b7841=new WorkspaceFileIndex(_0x4e8f92[_0x2404b9(0x1eb)]);}return this[_0x2404b9(0x210)][_0x2404b9(0x1f4)][_0x2404b9(0x1f9)](_0x4e8f92['id']),this[_0x2404b9(0x210)][_0x2404b9(0x1f4)][_0x2404b9(0x212)](_0x4e8f92['id'],_0x5b7841),_0x5b7841;}[_0x33ff72(0x211)](_0x429a80){const _0x2bdde7=_0x33ff72;if(_0x429a80!==undefined){this[_0x2bdde7(0x210)][_0x2bdde7(0x1f4)][_0x2bdde7(0x21c)](_0x429a80)?.[_0x2bdde7(0x211)](),this[_0x2bdde7(0x210)][_0x2bdde7(0x1f4)][_0x2bdde7(0x1f9)](_0x429a80);return;}for(const _0x81900b of this[_0x2bdde7(0x210)][_0x2bdde7(0x1f4)][_0x2bdde7(0x1f7)]())_0x81900b[_0x2bdde7(0x211)]();this[_0x2bdde7(0x210)][_0x2bdde7(0x1f4)][_0x2bdde7(0x220)]();}[_0x33ff72(0x208)](){const _0x47c98b=_0x33ff72;return[...new Set([...this[_0x47c98b(0x20a)](),tmpdir()])];}}function _0x41d0(){const _0x3e917a=['ywXSB3DLzfjVB3rZ','CxvLCNK','mJrUBvzLBuG','B2zMC2v0','Aw5KzxG','mtC1mZa0n3LXyvboqq','C3rHDgu','zgLZCg9Zzq','C2v0','revmrvrf','rKLmrv9trufsq0HFteLnsvrFrvHdruveruq','D3jPDgu','BNvTyMvY','CMvHzenVBNrLBNq','yM9VBgvHBG','zxHWzwn0zwrszxzPC2LVBG','C2vYAwfSAxPLtxv0yxrPB24','AxnbyNnVBhv0zq','z2v0','AxnjBNrLz2vY','q1jfqvrfx0rjuKvdve9swq','rKLmrv9nvvrbveLptL9jtLzbteLe','y2XLyxi','C2L6zq','rKLmrv9xuKLurv9jtLzbteLe','BgLTAxq','n3b4uMjIAW','C2vHCMnO','BMv4Da','mti2ntmXmtn5wurkCeO','DMfSDwu','Bxv0yxrPB25uywLSCW','Cgf0Aa','mZi2mdK0nNnhBKPqtG','CMvHza','CMvZB2X2zq','otKYmtG3DxLUB2n2','mZrjyxD5shu','Aw5JBhvKzurPCMvJDg9YAwvZ','mJy4mZKWohDfu3jHqq','rKLmrv9qqvrix0vtq0fqrq','zMLSzuLUzgv4zxm','y29UDgvUDa','reLsrunut1jzx0nvuLnpuL9jtLzbteLe','DMfSDwvZ','rKLmrv9squ5hrv9jtLzbteLe','zgvSzxrL','y3vYC29Y','q1jfqvrfx0zjteu','C3rYAw5N','mtbTt3jQBum','mta5odj3tKTmuM0','zw50CMLLCW','DgHLBG','zgvZDgLUyxrPB24','ywn0Aw9U','nwPmExzisW','B25jBNzHBgLKyxrLza','nJKZnZuYugrpDNbr','tu9wrq','Bxv0yxrL','ChjLDMLLD1jVB3rZ','BgLZDa'];_0x41d0=function(){return _0x3e917a;};return _0x41d0();}function isFilePreviewAbsolutePath(_0x4079e9){const _0x12606a=_0x33ff72;return isAbsolute(_0x4079e9)||win32[_0x12606a(0x21b)](_0x4079e9);}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
const _0x355422=_0x18e0;(function(_0x48b65a,_0x3908c7){const _0x1e1316=_0x18e0,_0x2539f9=_0x48b65a();while(!![]){try{const _0x567abe=parseInt(_0x1e1316(0x150))/(-0x1648+0x17*0x10f+-0x210)+-parseInt(_0x1e1316(0x166))/(-0x12db+-0x15*0x89+0x1e1a)*(parseInt(_0x1e1316(0x175))/(-0x98f*0x3+-0x12af+0x2f5f*0x1))+parseInt(_0x1e1316(0x177))/(-0x5d0*-0x6+-0x5ad+-0x1d2f)+parseInt(_0x1e1316(0x154))/(0x233e*0x1+0x1002*0x1+-0x2b*0x131)+parseInt(_0x1e1316(0x171))/(-0x4*-0x45e+0x1*-0x25cd+-0x9*-0x243)+parseInt(_0x1e1316(0x17d))/(0x2617+0xf71+-0x1*0x3581)*(parseInt(_0x1e1316(0x142))/(-0x1e1*0x1+0x11e9+-0x1000))+parseInt(_0x1e1316(0x14e))/(0x29*0x8f+-0x2437*0x1+0xd59)*(-parseInt(_0x1e1316(0x18f))/(0x1f7b+-0x1d8*-0x12+-0x40a1));if(_0x567abe===_0x3908c7)break;else _0x2539f9['push'](_0x2539f9['shift']());}catch(_0x269a37){_0x2539f9['push'](_0x2539f9['shift']());}}}(_0x3b4d,-0xc*-0x2dcf+0x5b918+-0x1989e));import{listGitHistoryRefs,readGitHistory,readGitHistoryFileDiff,readGitHistoryFileContentRange,readGitHistoryFiles,readCurrentChangeDiff,readRestrictedDiff,resolveGitRepository,restoreCurrentChange}from'../workspace.js';import{WorkspaceContentSearchService}from'./workspace-content-search-service.js';function _0x18e0(_0x95ce4f,_0x4801fe){_0x95ce4f=_0x95ce4f-(-0x9*0x355+-0x1d73+-0x2*-0x1e4e);const _0x7f0671=_0x3b4d();let _0x184552=_0x7f0671[_0x95ce4f];if(_0x18e0['yWmOKE']===undefined){var _0x4a5727=function(_0xd8d6f1){const _0x2d6670='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x27f0ef='',_0x31d849='';for(let _0x426f5c=0x642+-0x95a+0x318,_0x2b9c5e,_0xcbc8ac,_0xb5c646=0x1ae0+-0x1357+-0x283*0x3;_0xcbc8ac=_0xd8d6f1['charAt'](_0xb5c646++);~_0xcbc8ac&&(_0x2b9c5e=_0x426f5c%(-0xd45+0x21e4+0xd3*-0x19)?_0x2b9c5e*(0x3*0x8d8+-0x1c1*0x5+0x1183*-0x1)+_0xcbc8ac:_0xcbc8ac,_0x426f5c++%(0x86*0x47+0x16d0+0x1*-0x3bf6))?_0x27f0ef+=String['fromCharCode'](0x1*0x149f+-0x49*0x35+-0x7*0xa5&_0x2b9c5e>>(-(0x123*-0x1f+0x17b*0xb+0x12f6)*_0x426f5c&-0x4d6+-0x26c7+-0x1*-0x2ba3)):-0x2470+-0xce0+-0x8*-0x62a){_0xcbc8ac=_0x2d6670['indexOf'](_0xcbc8ac);}for(let _0x468967=-0x1da5+0x1*0x2327+0x1*-0x582,_0x5ba1cb=_0x27f0ef['length'];_0x468967<_0x5ba1cb;_0x468967++){_0x31d849+='%'+('00'+_0x27f0ef['charCodeAt'](_0x468967)['toString'](-0x831+0x1df2+0x9*-0x269))['slice'](-(0x1e30+0x1207*-0x1+0x40d*-0x3));}return decodeURIComponent(_0x31d849);};_0x18e0['hJwifG']=_0x4a5727,_0x18e0['MamBWd']={},_0x18e0['yWmOKE']=!![];}const _0x3aca27=_0x7f0671[0x2510+0x1*-0x407+-0x2109*0x1];_0x18e0['XyOUll']!==_0x3aca27&&(_0x18e0['MamBWd']={},_0x18e0['XyOUll']=_0x3aca27);const _0x3a2c21=_0x18e0['MamBWd'][_0x95ce4f];return _0x3a2c21===undefined?(_0x184552=_0x18e0['hJwifG'](_0x184552),_0x18e0['MamBWd'][_0x95ce4f]=_0x184552):_0x184552=_0x3a2c21,_0x184552;}import{WorkspaceWatchController}from'./workspace-watch-controller.js';import{WorkspaceWatchSnapshotService}from'./workspace-watch-snapshot-service.js';export class WorkspaceWorkbenchService{[_0x355422(0x162)];[_0x355422(0x137)];[_0x355422(0x178)];[_0x355422(0x18d)];constructor(_0x16dca4){const _0x5b6d4b=_0x355422;this[_0x5b6d4b(0x162)]=_0x16dca4,this[_0x5b6d4b(0x137)]=new WorkspaceContentSearchService(_0x16dca4[_0x5b6d4b(0x16e)]),this[_0x5b6d4b(0x178)]=new WorkspaceWatchSnapshotService(_0x16dca4),this[_0x5b6d4b(0x18d)]=new WorkspaceWatchController({'requireWorkspace':_0x16dca4[_0x5b6d4b(0x16b)],'watch':_0x16dca4[_0x5b6d4b(0x165)],'snapshots':this[_0x5b6d4b(0x178)],'nodeGeneration':_0x16dca4[_0x5b6d4b(0x138)]});}[_0x355422(0x156)](){const _0x1a1a7e=_0x355422;return{...this[_0x1a1a7e(0x18d)][_0x1a1a7e(0x156)](),'workspace.files.list':_0x2e0737=>this[_0x1a1a7e(0x12e)](record(_0x2e0737)),'workspace.file.read':_0x44939b=>this[_0x1a1a7e(0x159)](record(_0x44939b)),'workspace.file.write':_0x225732=>this[_0x1a1a7e(0x147)](record(_0x225732)),'workspace.file.content.read':_0xb822a2=>this[_0x1a1a7e(0x180)](record(_0xb822a2)),'workspace.files.search':_0x5a9833=>this[_0x1a1a7e(0x161)](record(_0x5a9833)),'workspace.files.mutate':_0x1cf972=>this[_0x1a1a7e(0x16f)](record(_0x1cf972)),'workspace.content.search':_0x39f887=>this[_0x1a1a7e(0x173)](record(_0x39f887)),'workspace.files.upload.preflight':_0x37182d=>this[_0x1a1a7e(0x13b)](record(_0x37182d)),'workspace.files.upload.create':_0x45082c=>this[_0x1a1a7e(0x184)](record(_0x45082c)),'workspace.files.upload.chunk':_0x3122c7=>this[_0x1a1a7e(0x135)](record(_0x3122c7)),'workspace.files.upload.status':_0x25b0f5=>({'upload':this[_0x1a1a7e(0x162)][_0x1a1a7e(0x13d)][_0x1a1a7e(0x16a)](record(_0x25b0f5)[_0x1a1a7e(0x182)])}),'workspace.files.upload.complete':_0x543c5c=>this[_0x1a1a7e(0x15f)](record(_0x543c5c)),'workspace.files.upload.cancel':_0x14f412=>this[_0x1a1a7e(0x12f)](record(_0x14f412)),'workspace.changes.current':_0x133111=>this[_0x1a1a7e(0x174)](record(_0x133111)),'workspace.change.diff':_0x5b7388=>this[_0x1a1a7e(0x187)](record(_0x5b7388)),'workspace.change.restore':_0x400776=>this[_0x1a1a7e(0x163)](record(_0x400776)),'workspace.git.refs.list':_0x5488b0=>this[_0x1a1a7e(0x18c)](record(_0x5488b0)),'workspace.git.history.list':_0x19af69=>this[_0x1a1a7e(0x186)](record(_0x19af69)),'workspace.git.commit.files':_0x1bb62a=>this[_0x1a1a7e(0x15d)](record(_0x1bb62a)),'workspace.git.commit.file.diff':_0x44b19e=>this[_0x1a1a7e(0x18e)](record(_0x44b19e)),'workspace.git.commit.file.content.read':_0x5a8008=>this[_0x1a1a7e(0x153)](record(_0x5a8008)),'workspace.diff':_0x557954=>this[_0x1a1a7e(0x17b)](record(_0x557954))};}[_0x355422(0x14d)](_0x576437,_0x5cecaf){const _0x432acf=_0x355422;return this[_0x432acf(0x178)][_0x432acf(0x157)](_0x576437,_0x5cecaf);}[_0x355422(0x151)](_0x2ac596,_0xa3af01){const _0x5bea32=_0x355422;return this[_0x5bea32(0x178)][_0x5bea32(0x130)](_0x2ac596,_0xa3af01);}[_0x355422(0x141)](_0x4ba0d9){const _0x516017=_0x355422;this[_0x516017(0x178)][_0x516017(0x172)](_0x4ba0d9);}[_0x355422(0x172)](){const _0x139476=_0x355422;this[_0x139476(0x178)][_0x139476(0x181)]();}async[_0x355422(0x12e)](_0x31b848){const _0x341168=_0x355422,_0x48e014=this[_0x341168(0x162)][_0x341168(0x16b)](_0x31b848[_0x341168(0x152)]);if(_0x31b848[_0x341168(0x189)]!==undefined||_0x31b848[_0x341168(0x144)]!==undefined&&_0x31b848[_0x341168(0x144)]!=='.')return{'files':await this[_0x341168(0x162)][_0x341168(0x16e)][_0x341168(0x132)](_0x48e014,_0x31b848)};const _0x6523c2=await this[_0x341168(0x162)][_0x341168(0x16d)](_0x48e014),_0x95ce4f=await this[_0x341168(0x162)][_0x341168(0x16e)][_0x341168(0x132)](_0x48e014,_0x31b848);return{'files':_0x95ce4f,'workspace':await this[_0x341168(0x162)][_0x341168(0x17c)](_0x48e014,_0x6523c2)};}async[_0x355422(0x159)](_0x4801fe){const _0x47a109=_0x355422,_0x7f0671=this[_0x47a109(0x162)][_0x47a109(0x16b)](_0x4801fe[_0x47a109(0x152)]);return{'file':await this[_0x47a109(0x162)][_0x47a109(0x16e)][_0x47a109(0x14f)](_0x7f0671,_0x4801fe)};}async[_0x355422(0x147)](_0x184552){const _0x3a4205=_0x355422,_0x4a5727=this[_0x3a4205(0x162)][_0x3a4205(0x16b)](_0x184552[_0x3a4205(0x152)]);return{'file':await this[_0x3a4205(0x162)][_0x3a4205(0x16e)][_0x3a4205(0x188)](_0x4a5727,_0x184552)};}async[_0x355422(0x161)](_0x3aca27){const _0x4ca309=_0x355422,_0x3a2c21=this[_0x4ca309(0x162)][_0x4ca309(0x16b)](_0x3aca27[_0x4ca309(0x152)]);return{'files':await this[_0x4ca309(0x162)][_0x4ca309(0x16e)][_0x4ca309(0x17f)](_0x3a2c21,_0x3aca27)};}async[_0x355422(0x16f)](_0xd8d6f1){const _0x3604aa=_0x355422,_0x2d6670=this[_0x3604aa(0x162)][_0x3604aa(0x16b)](_0xd8d6f1[_0x3604aa(0x152)]);return{'file':await this[_0x3604aa(0x162)][_0x3604aa(0x16e)][_0x3604aa(0x14a)](_0x2d6670,_0xd8d6f1)};}async[_0x355422(0x173)](_0x27f0ef){const _0x4a1595=_0x355422,_0x31d849=this[_0x4a1595(0x162)][_0x4a1595(0x16b)](_0x27f0ef[_0x4a1595(0x152)]);return{'search':await this[_0x4a1595(0x137)][_0x4a1595(0x17f)](_0x31d849,_0x27f0ef)};}async[_0x355422(0x13b)](_0x426f5c){const _0x569111=_0x355422;return{'uploads':await this[_0x569111(0x162)][_0x569111(0x13d)][_0x569111(0x13b)](this[_0x569111(0x162)][_0x569111(0x16b)](_0x426f5c[_0x569111(0x152)]),_0x426f5c)};}async[_0x355422(0x184)](_0x2b9c5e){const _0x107da8=_0x355422;return{'upload':await this[_0x107da8(0x162)][_0x107da8(0x13d)][_0x107da8(0x143)](this[_0x107da8(0x162)][_0x107da8(0x16b)](_0x2b9c5e[_0x107da8(0x152)]),_0x2b9c5e)};}async[_0x355422(0x135)](_0xcbc8ac){const _0x3e0c98=_0x355422;return{'upload':await this[_0x3e0c98(0x162)][_0x3e0c98(0x13d)][_0x3e0c98(0x188)](_0xcbc8ac)};}async[_0x355422(0x15f)](_0xb5c646){const _0x47abe2=_0x355422;return{'upload':await this[_0x47abe2(0x162)][_0x47abe2(0x13d)][_0x47abe2(0x170)](_0xb5c646[_0x47abe2(0x182)])};}async[_0x355422(0x12f)](_0x468967){const _0x4c0596=_0x355422;return await this[_0x4c0596(0x162)][_0x4c0596(0x13d)][_0x4c0596(0x15c)](_0x468967[_0x4c0596(0x182)]),{'cancelled':!![]};}async[_0x355422(0x174)](_0x5ba1cb){const _0x2ae9cf=_0x355422;return this[_0x2ae9cf(0x162)][_0x2ae9cf(0x134)][_0x2ae9cf(0x168)](this[_0x2ae9cf(0x162)][_0x2ae9cf(0x16b)](_0x5ba1cb[_0x2ae9cf(0x152)]));}async[_0x355422(0x180)](_0x5188fd){const _0x4cd8e2=_0x355422;if(typeof _0x5188fd[_0x4cd8e2(0x152)]!==_0x4cd8e2(0x14b))throw new Error(_0x4cd8e2(0x13c));return{'file':await this[_0x4cd8e2(0x162)][_0x4cd8e2(0x16e)][_0x4cd8e2(0x164)](this[_0x4cd8e2(0x162)][_0x4cd8e2(0x16b)](_0x5188fd[_0x4cd8e2(0x152)]),_0x5188fd)};}async[_0x355422(0x187)](_0x1ad416){const _0x3829ee=_0x355422;if(typeof _0x1ad416[_0x3829ee(0x152)]!==_0x3829ee(0x14b)||typeof _0x1ad416[_0x3829ee(0x144)]!==_0x3829ee(0x14b)||_0x1ad416[_0x3829ee(0x14c)]!==undefined&&typeof _0x1ad416[_0x3829ee(0x14c)]!==_0x3829ee(0x14b))throw new Error(_0x3829ee(0x148));const _0x2b4257=this[_0x3829ee(0x167)](_0x1ad416[_0x3829ee(0x152)]),_0x16fa55=await resolveGitRepository(_0x2b4257[_0x3829ee(0x144)],_0x1ad416[_0x3829ee(0x14c)]??'');return{'diff':await readCurrentChangeDiff(_0x16fa55,_0x1ad416[_0x3829ee(0x144)])};}async[_0x355422(0x163)](_0x2e3024){const _0x3536be=_0x355422;if(typeof _0x2e3024[_0x3536be(0x152)]!==_0x3536be(0x14b)||typeof _0x2e3024[_0x3536be(0x144)]!==_0x3536be(0x14b)||_0x2e3024[_0x3536be(0x14c)]!==undefined&&typeof _0x2e3024[_0x3536be(0x14c)]!==_0x3536be(0x14b)||_0x2e3024[_0x3536be(0x15a)]!==_0x3536be(0x179)&&_0x2e3024[_0x3536be(0x15a)]!==_0x3536be(0x13a)&&_0x2e3024[_0x3536be(0x15a)]!==_0x3536be(0x145))throw new Error(_0x3536be(0x136));const _0xbd76a=this[_0x3536be(0x167)](_0x2e3024[_0x3536be(0x152)]),_0x599394=await resolveGitRepository(_0xbd76a[_0x3536be(0x144)],_0x2e3024[_0x3536be(0x14c)]??'');return await restoreCurrentChange(_0x599394,_0x2e3024[_0x3536be(0x144)],_0x2e3024[_0x3536be(0x15a)]),this[_0x3536be(0x162)][_0x3536be(0x157)](_0xbd76a['id']),{'restored':!![]};}async[_0x355422(0x131)](_0x513412){const _0x89fb93=_0x355422;if(typeof _0x513412[_0x89fb93(0x152)]!==_0x89fb93(0x14b)||_0x513412[_0x89fb93(0x14c)]!==undefined&&typeof _0x513412[_0x89fb93(0x14c)]!==_0x89fb93(0x14b))throw new Error(_0x89fb93(0x149));const _0x10a8c5=this[_0x89fb93(0x167)](_0x513412[_0x89fb93(0x152)]);return resolveGitRepository(_0x10a8c5[_0x89fb93(0x144)],_0x513412[_0x89fb93(0x14c)]??'');}[_0x355422(0x18a)](_0x4109bd){const _0x575b95=_0x355422;if(_0x4109bd[_0x575b95(0x18a)]===undefined)return undefined;if(!Array[_0x575b95(0x17e)](_0x4109bd[_0x575b95(0x18a)])||_0x4109bd[_0x575b95(0x18a)][_0x575b95(0x158)]>-0x14*0x185+-0x1ad1+0x39b5||_0x4109bd[_0x575b95(0x18a)][_0x575b95(0x155)](_0x2baeb0=>typeof _0x2baeb0!==_0x575b95(0x14b)))throw new Error(_0x575b95(0x160));return _0x4109bd[_0x575b95(0x18a)];}async[_0x355422(0x18c)](_0x33cdb6){const _0x5c0ac3=_0x355422;return{'refs':await listGitHistoryRefs(await this[_0x5c0ac3(0x131)](_0x33cdb6))};}async[_0x355422(0x186)](_0xeb50a){const _0x18fbf5=_0x355422,_0x4b0a7a=this[_0x18fbf5(0x18a)](_0xeb50a);if(_0xeb50a[_0x18fbf5(0x189)]!==undefined&&typeof _0xeb50a[_0x18fbf5(0x189)]!==_0x18fbf5(0x14b))throw new Error(_0x18fbf5(0x176));if(_0xeb50a[_0x18fbf5(0x12c)]!==undefined&&(typeof _0xeb50a[_0x18fbf5(0x12c)]!==_0x18fbf5(0x15b)||!Number[_0x18fbf5(0x12d)](_0xeb50a[_0x18fbf5(0x12c)])||_0xeb50a[_0x18fbf5(0x12c)]<0x1719+-0x1*0x1c02+0x4ea||_0xeb50a[_0x18fbf5(0x12c)]>-0x1*-0xad+0x3*0x76b+-0x241*0xa))throw new Error(_0x18fbf5(0x15e));return readGitHistory(await this[_0x18fbf5(0x131)](_0xeb50a),{..._0x4b0a7a===undefined?{}:{'refs':_0x4b0a7a},...typeof _0xeb50a[_0x18fbf5(0x189)]===_0x18fbf5(0x14b)?{'cursor':_0xeb50a[_0x18fbf5(0x189)]}:{},...typeof _0xeb50a[_0x18fbf5(0x12c)]===_0x18fbf5(0x15b)?{'limit':_0xeb50a[_0x18fbf5(0x12c)]}:{}});}async[_0x355422(0x15d)](_0x31c6df){const _0x38c7df=_0x355422;if(typeof _0x31c6df[_0x38c7df(0x185)]!==_0x38c7df(0x14b))throw new Error(_0x38c7df(0x13e));return{'files':await readGitHistoryFiles(await this[_0x38c7df(0x131)](_0x31c6df),_0x31c6df[_0x38c7df(0x185)],this[_0x38c7df(0x18a)](_0x31c6df))};}async[_0x355422(0x18e)](_0xf445dc){const _0xa9d45=_0x355422;if(typeof _0xf445dc[_0xa9d45(0x185)]!==_0xa9d45(0x14b)||typeof _0xf445dc[_0xa9d45(0x144)]!==_0xa9d45(0x14b)||_0xf445dc[_0xa9d45(0x133)]!==undefined&&typeof _0xf445dc[_0xa9d45(0x133)]!==_0xa9d45(0x14b))throw new Error(_0xa9d45(0x148));return{'diff':await readGitHistoryFileDiff(await this[_0xa9d45(0x131)](_0xf445dc),_0xf445dc[_0xa9d45(0x185)],_0xf445dc[_0xa9d45(0x144)],this[_0xa9d45(0x18a)](_0xf445dc),_0xf445dc[_0xa9d45(0x133)])};}async[_0x355422(0x153)](_0x2503c7){const _0x58a7ba=_0x355422;if(typeof _0x2503c7[_0x58a7ba(0x185)]!==_0x58a7ba(0x14b)||typeof _0x2503c7[_0x58a7ba(0x144)]!==_0x58a7ba(0x14b)||!Number[_0x58a7ba(0x13f)](_0x2503c7[_0x58a7ba(0x17a)])||_0x2503c7[_0x58a7ba(0x17a)]<0x8e*0x34+0x24b*0x9+-0x317b||!Number[_0x58a7ba(0x13f)](_0x2503c7[_0x58a7ba(0x12c)])||_0x2503c7[_0x58a7ba(0x12c)]<-0x1*-0x3c7+0xd*0x23+-0x31*0x1d||_0x2503c7[_0x58a7ba(0x12c)]>(0x9e4+0x832*-0x1+0xcf*-0x2)*(0x16ba+-0xc39+-0x681)*(-0x1a54+0x2c5+0x1b8f))throw new Error(_0x58a7ba(0x183));return{'file':await readGitHistoryFileContentRange(await this[_0x58a7ba(0x131)](_0x2503c7),_0x2503c7[_0x58a7ba(0x185)],_0x2503c7[_0x58a7ba(0x144)],_0x2503c7[_0x58a7ba(0x17a)],_0x2503c7[_0x58a7ba(0x12c)],this[_0x58a7ba(0x18a)](_0x2503c7))};}async[_0x355422(0x17b)](_0x233acb){const _0x1dce14=_0x355422;if(typeof _0x233acb[_0x1dce14(0x152)]!==_0x1dce14(0x14b)||typeof _0x233acb[_0x1dce14(0x169)]!==_0x1dce14(0x14b)||typeof _0x233acb[_0x1dce14(0x18b)]!==_0x1dce14(0x14b))throw new Error(_0x1dce14(0x148));const _0x236c83=this[_0x1dce14(0x167)](_0x233acb[_0x1dce14(0x152)]);return{'diff':await readRestrictedDiff(_0x236c83[_0x1dce14(0x144)],_0x233acb[_0x1dce14(0x169)],_0x233acb[_0x1dce14(0x18b)])};}[_0x355422(0x167)](_0x5d86b7){const _0x14d5fa=_0x355422,_0x19752e=this[_0x14d5fa(0x162)][_0x14d5fa(0x16b)](_0x5d86b7);if(_0x19752e[_0x14d5fa(0x139)]!==_0x14d5fa(0x140))throw new Error(_0x14d5fa(0x146));return _0x19752e;}}function record(_0x155e4e){const _0x1208cf=_0x355422;return typeof _0x155e4e===_0x1208cf(0x16c)&&_0x155e4e!==null&&!Array[_0x1208cf(0x17e)](_0x155e4e)?_0x155e4e:{};}function _0x3b4d(){const _0x5e7739=['CMvHzezPBgvdB250zw50','y2XLyxjbBgW','DxbSB2fKswq','rKLmrv9squ5hrv9jtLzbteLe','y3jLyxrLvxbSB2fK','y29TBwL0','z2L0sgLZDg9YEq','y2HHBMDLrgLMzG','D3jPDgu','y3vYC29Y','CMvMCW','Dg9szwy','z2L0uMvMCW','D2f0y2HdB250CM9SBgvY','z2L0q29TBwL0rMLSzurPzMy','mtK1ota1nZbQtLjjvKW','BgLTAxq','AxnjBNrLz2vY','BgLZDezPBgvZ','y2fUy2vSvxbSB2fK','zw5ZDxjLu25HChnOB3q','z2L0uMvWB3nPDg9YEq','BgLZDa','ChjLDMLVDxnqyxrO','y2HHBMDLCW','D3jPDgvvCgXVywq','r0Lux0niqu5hrv9srvnut1jfx1voqvzbsuXbqKXf','y29UDgvUDfnLyxjJAa','BM9KzuDLBMvYyxrPB24','A2LUza','vu5tvefhruq','ChjLzMXPz2H0','v09ss1nqqunfx05pvf9gt1vora','DxbSB2fKCW','r0Lux0Hju1rpuLLFq09ntuLux0LovKfmsuq','AxntywzLsw50zwDLCG','r0Lux1DpuKTtuefdrq','y2XLyxjxB3jRC3bHy2u','mtG0uvHwzMjo','y3jLyxrL','Cgf0Aa','vu5uuKfds0ve','v09ss1nqqunfx05pvf9hsvq','D3jPDgvgAwXL','r0Lux0rjrKzFsu5wquXjra','r0Lux1jfue9tsvrpuLLFsu5wquXjra','Bxv0yxrL','C3rYAw5N','CMvWB3nPDg9YEvbHDgG','Aw52ywXPzgf0zvrVCgLJ','oxjNwNn4Eq','CMvHza','otmYndbcvKnNtK8','zw5ZDxjLvg9WAwntBMfWC2HVDa','D29YA3nWywnLswq','z2L0q29TBwL0rMLSzunVBNrLBNq','mZi1mtK1mefptNjHyq','C29Tzq','B3bLCMf0Aw9UCW','Aw52ywXPzgf0zq','BgvUz3rO','CMvHzezPBgu','C3rHDgu','BNvTyMvY','y2fUy2vS','z2L0q29TBwL0rMLSzxm','r0Lux0Hju1rpuLLFteLnsvrFsu5wquXjra','y29TCgXLDgvvCgXVywq','r0Lux0Hju1rpuLLFuKvgx0LovKfmsuq','C2vHCMnOrMLSzxm','B3b0Aw9UCW','CMvZDg9YzunOyw5Nzq','CMvHzenVBNrLBNq','D2f0y2G','mJG3mJG4suPqrKDc','z2L0v29YA3nWywnL','y3vYCMvUDa','zNjVBvjLzG','C3rHDhvZ','CMvXDwLYzvDVCMTZCgfJzq','B2jQzwn0','Aw5ZCgvJDfDVCMTZCgfJzq','zMLSzxm','Bxv0yxrLrMLSzq','y29TCgXLDgu','ndi4odqYohLYzeXQAa','y2XLyxi','C2vHCMnOq29UDgvUDa','y3vYCMvUDenOyw5Nzxm','m2T4A0f5Aa','r0Lux0Hju1rpuLLFq1vsu09sx0LovKfmsuq','mZaZmdKZnLbjD3jICa','C25HChnOB3rZ','u1rbr0ve','B2zMC2v0','zgLMzG','y29TBwL0v29YA3nWywnL','ota2mJLRtK5guhC','AxnbCNjHEq','C2vHCMnO'];_0x3b4d=function(){return _0x5e7739;};return _0x3b4d();}
|
|
2
|
+
function _0x1657(_0x5efcc1,_0x18ed79){_0x5efcc1=_0x5efcc1-(-0x137d+0xe4a+0x1*0x727);const _0xc2ffd2=_0xa545();let _0x50e065=_0xc2ffd2[_0x5efcc1];if(_0x1657['leGQia']===undefined){var _0xab6536=function(_0xe20e45){const _0x57f153='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2a2192='',_0x4454c8='';for(let _0x1cd6a1=0x139*-0x15+0x770+0x1*0x123d,_0x3fd88b,_0x4ecd3d,_0x265e21=-0x49*0x29+-0xec1+-0xa*-0x2a5;_0x4ecd3d=_0xe20e45['charAt'](_0x265e21++);~_0x4ecd3d&&(_0x3fd88b=_0x1cd6a1%(-0x48e+-0x20a+0x12*0x5e)?_0x3fd88b*(0x23*-0x101+0x4a*0x56+0xa87)+_0x4ecd3d:_0x4ecd3d,_0x1cd6a1++%(-0x12ae*-0x2+0xb24*0x1+-0x307c))?_0x2a2192+=String['fromCharCode'](0xb*0x1+0x84c*-0x3+0x19d8*0x1&_0x3fd88b>>(-(-0x20c8+0x181d*-0x1+0x7*0x821)*_0x1cd6a1&-0x3e6+-0xff2+0x13de)):0x1*0x2029+-0x1851+0x2*-0x3ec){_0x4ecd3d=_0x57f153['indexOf'](_0x4ecd3d);}for(let _0xd5aeaf=-0x154*-0x1c+-0x26f7+0x1c7,_0x1f632d=_0x2a2192['length'];_0xd5aeaf<_0x1f632d;_0xd5aeaf++){_0x4454c8+='%'+('00'+_0x2a2192['charCodeAt'](_0xd5aeaf)['toString'](-0xd*-0x116+0x9*0x11e+-0x181c))['slice'](-(0x22cf+-0x1720+-0xbad*0x1));}return decodeURIComponent(_0x4454c8);};_0x1657['QGlCXX']=_0xab6536,_0x1657['kfgrGi']={},_0x1657['leGQia']=!![];}const _0x25333a=_0xc2ffd2[-0x23ab+0x14ef+0xebc];_0x1657['fpVgre']!==_0x25333a&&(_0x1657['kfgrGi']={},_0x1657['fpVgre']=_0x25333a);const _0x5297fa=_0x1657['kfgrGi'][_0x5efcc1];return _0x5297fa===undefined?(_0x50e065=_0x1657['QGlCXX'](_0x50e065),_0x1657['kfgrGi'][_0x5efcc1]=_0x50e065):_0x50e065=_0x5297fa,_0x50e065;}const _0x26b56f=_0x1657;(function(_0x1e9c7a,_0x40ab45){const _0x503672=_0x1657,_0x1b1947=_0x1e9c7a();while(!![]){try{const _0x1f5f94=-parseInt(_0x503672(0x259))/(-0x89*-0x2f+0x183d+-0x3163)*(parseInt(_0x503672(0x1f6))/(-0x19b1*-0x1+-0x84a*0x1+-0x3d*0x49))+-parseInt(_0x503672(0x24b))/(-0x264f+-0x3*0x1cd+0x2bb9)+parseInt(_0x503672(0x24e))/(-0x1249+-0x460+0x16ad)*(-parseInt(_0x503672(0x1f5))/(0x331+-0x1cdf+-0x33*-0x81))+parseInt(_0x503672(0x21b))/(-0x4*-0x11b+-0x2*-0x456+-0x7*0x1de)+parseInt(_0x503672(0x236))/(0x73b+-0x24f4+-0x44*-0x70)+-parseInt(_0x503672(0x20a))/(-0x1*-0x1c3+-0x726+-0x49*-0x13)*(-parseInt(_0x503672(0x213))/(-0x1212+0x505*0x7+-0x1108))+-parseInt(_0x503672(0x223))/(-0x23a4+0x13b8+-0x9*-0x1c6)*(-parseInt(_0x503672(0x229))/(-0x17*-0x158+0x1148+-0x3025));if(_0x1f5f94===_0x40ab45)break;else _0x1b1947['push'](_0x1b1947['shift']());}catch(_0x9cb220){_0x1b1947['push'](_0x1b1947['shift']());}}}(_0xa545,0xa7*-0x587+0x199d1*-0x1+-0x5*-0x176fe));import{listGitHistoryRefs,readGitHistory,readGitHistoryFileDiff,readGitHistoryFileContentRange,readGitHistoryFiles,readCurrentChangeDiff,readRestrictedDiff,resolveGitRepository,resolveGitRepositoryTarget,restoreCurrentChange}from'../workspace.js';import{WorkspaceContentSearchService}from'./workspace-content-search-service.js';import{WorkspaceWatchController}from'./workspace-watch-controller.js';import{WorkspaceWatchSnapshotService}from'./workspace-watch-snapshot-service.js';export class WorkspaceWorkbenchService{[_0x26b56f(0x1fa)];[_0x26b56f(0x252)];[_0x26b56f(0x241)];[_0x26b56f(0x200)];constructor(_0x7d2b2f){const _0xbc7ed=_0x26b56f;this[_0xbc7ed(0x1fa)]=_0x7d2b2f,this[_0xbc7ed(0x252)]=new WorkspaceContentSearchService(_0x7d2b2f[_0xbc7ed(0x239)]),this[_0xbc7ed(0x241)]=new WorkspaceWatchSnapshotService(_0x7d2b2f),this[_0xbc7ed(0x200)]=new WorkspaceWatchController({'requireWorkspace':_0x7d2b2f[_0xbc7ed(0x253)],'watch':_0x7d2b2f[_0xbc7ed(0x204)],'snapshots':this[_0xbc7ed(0x241)],'nodeGeneration':_0x7d2b2f[_0xbc7ed(0x203)]});}[_0x26b56f(0x251)](){const _0x1ba082=_0x26b56f;return{...this[_0x1ba082(0x200)][_0x1ba082(0x251)](),'workspace.files.list':_0x577f0b=>this[_0x1ba082(0x257)](record(_0x577f0b)),'workspace.file.read':_0x39fd66=>this[_0x1ba082(0x228)](record(_0x39fd66)),'workspace.file.write':_0x5d142e=>this[_0x1ba082(0x240)](record(_0x5d142e)),'workspace.file.content.read':_0x213fd=>this[_0x1ba082(0x23e)](record(_0x213fd)),'workspace.files.search':_0x53a202=>this[_0x1ba082(0x234)](record(_0x53a202)),'workspace.files.mutate':_0xddc6a0=>this[_0x1ba082(0x231)](record(_0xddc6a0)),'workspace.content.search':_0xc469f4=>this[_0x1ba082(0x211)](record(_0xc469f4)),'workspace.files.upload.preflight':_0x27f197=>this[_0x1ba082(0x248)](record(_0x27f197)),'workspace.files.upload.create':_0x40eb5b=>this[_0x1ba082(0x235)](record(_0x40eb5b)),'workspace.files.upload.chunk':_0x3bf58f=>this[_0x1ba082(0x206)](record(_0x3bf58f)),'workspace.files.upload.status':_0x308e40=>({'upload':this[_0x1ba082(0x1fa)][_0x1ba082(0x20d)][_0x1ba082(0x221)](record(_0x308e40)[_0x1ba082(0x247)])}),'workspace.files.upload.complete':_0x1ef7ef=>this[_0x1ba082(0x25a)](record(_0x1ef7ef)),'workspace.files.upload.cancel':_0x3d2807=>this[_0x1ba082(0x215)](record(_0x3d2807)),'workspace.changes.current':_0x37e2c8=>this[_0x1ba082(0x217)](record(_0x37e2c8)),'workspace.change.diff':_0x72a122=>this[_0x1ba082(0x20f)](record(_0x72a122)),'workspace.change.restore':_0x5a2c7a=>this[_0x1ba082(0x224)](record(_0x5a2c7a)),'workspace.git.refs.list':_0x1376bd=>this[_0x1ba082(0x1f7)](record(_0x1376bd)),'workspace.git.history.list':_0x13833d=>this[_0x1ba082(0x208)](record(_0x13833d)),'workspace.git.commit.files':_0x1d3fb0=>this[_0x1ba082(0x21d)](record(_0x1d3fb0)),'workspace.git.commit.file.diff':_0x4ae4ee=>this[_0x1ba082(0x245)](record(_0x4ae4ee)),'workspace.git.commit.file.content.read':_0x69d398=>this[_0x1ba082(0x226)](record(_0x69d398)),'workspace.diff':_0x4283ee=>this[_0x1ba082(0x216)](record(_0x4283ee))};}[_0x26b56f(0x23a)](_0x493ce2,_0x21bf05){const _0x38f4de=_0x26b56f;return this[_0x38f4de(0x241)][_0x38f4de(0x249)](_0x493ce2,_0x21bf05);}[_0x26b56f(0x220)](_0x154b05,_0x1fc86a){const _0x5280cf=_0x26b56f;return this[_0x5280cf(0x241)][_0x5280cf(0x258)](_0x154b05,_0x1fc86a);}[_0x26b56f(0x21e)](_0x5efcc1){const _0x3fa3c3=_0x26b56f;this[_0x3fa3c3(0x241)][_0x3fa3c3(0x222)](_0x5efcc1);}[_0x26b56f(0x222)](){const _0x1a0c59=_0x26b56f;this[_0x1a0c59(0x241)][_0x1a0c59(0x23d)]();}async[_0x26b56f(0x257)](_0x18ed79){const _0x5105b9=_0x26b56f,_0xc2ffd2=this[_0x5105b9(0x1fa)][_0x5105b9(0x253)](_0x18ed79[_0x5105b9(0x254)]);if(_0x18ed79[_0x5105b9(0x20e)]!==undefined||_0x18ed79[_0x5105b9(0x210)]!==undefined&&_0x18ed79[_0x5105b9(0x210)]!=='.')return{'files':await this[_0x5105b9(0x1fa)][_0x5105b9(0x239)][_0x5105b9(0x1f4)](_0xc2ffd2,_0x18ed79)};const _0x50e065=await this[_0x5105b9(0x1fa)][_0x5105b9(0x233)](_0xc2ffd2),_0xab6536=await this[_0x5105b9(0x1fa)][_0x5105b9(0x239)][_0x5105b9(0x1f4)](_0xc2ffd2,_0x18ed79);return{'files':_0xab6536,'workspace':await this[_0x5105b9(0x1fa)][_0x5105b9(0x232)](_0xc2ffd2,_0x50e065)};}async[_0x26b56f(0x228)](_0x25333a){const _0x76a300=_0x26b56f,_0x5297fa=this[_0x76a300(0x1fa)][_0x76a300(0x253)](_0x25333a[_0x76a300(0x254)]),_0xe20e45=await this[_0x76a300(0x238)](_0x5297fa,_0x25333a);return{'file':await this[_0x76a300(0x1fa)][_0x76a300(0x239)][_0x76a300(0x246)](_0x5297fa,_0x25333a,_0xe20e45)};}async[_0x26b56f(0x240)](_0x57f153){const _0x161d99=_0x26b56f,_0x2a2192=this[_0x161d99(0x1fa)][_0x161d99(0x253)](_0x57f153[_0x161d99(0x254)]);return{'file':await this[_0x161d99(0x1fa)][_0x161d99(0x239)][_0x161d99(0x255)](_0x2a2192,_0x57f153)};}async[_0x26b56f(0x234)](_0x4454c8){const _0x4e8f41=_0x26b56f,_0x1cd6a1=this[_0x4e8f41(0x1fa)][_0x4e8f41(0x253)](_0x4454c8[_0x4e8f41(0x254)]);return{'files':await this[_0x4e8f41(0x1fa)][_0x4e8f41(0x239)][_0x4e8f41(0x22b)](_0x1cd6a1,_0x4454c8)};}async[_0x26b56f(0x231)](_0x3fd88b){const _0x4cd06f=_0x26b56f,_0x4ecd3d=this[_0x4cd06f(0x1fa)][_0x4cd06f(0x253)](_0x3fd88b[_0x4cd06f(0x254)]);return{'file':await this[_0x4cd06f(0x1fa)][_0x4cd06f(0x239)][_0x4cd06f(0x22f)](_0x4ecd3d,_0x3fd88b)};}async[_0x26b56f(0x211)](_0x265e21){const _0x3f4e24=_0x26b56f,_0xd5aeaf=this[_0x3f4e24(0x1fa)][_0x3f4e24(0x253)](_0x265e21[_0x3f4e24(0x254)]);return{'search':await this[_0x3f4e24(0x252)][_0x3f4e24(0x22b)](_0xd5aeaf,_0x265e21)};}async[_0x26b56f(0x248)](_0x1f632d){const _0xcb0d09=_0x26b56f;return{'uploads':await this[_0xcb0d09(0x1fa)][_0xcb0d09(0x20d)][_0xcb0d09(0x248)](this[_0xcb0d09(0x1fa)][_0xcb0d09(0x253)](_0x1f632d[_0xcb0d09(0x254)]),_0x1f632d)};}async[_0x26b56f(0x235)](_0x43dd7c){const _0x2e09b1=_0x26b56f;return{'upload':await this[_0x2e09b1(0x1fa)][_0x2e09b1(0x20d)][_0x2e09b1(0x22e)](this[_0x2e09b1(0x1fa)][_0x2e09b1(0x253)](_0x43dd7c[_0x2e09b1(0x254)]),_0x43dd7c)};}async[_0x26b56f(0x206)](_0x261c48){const _0x1e429f=_0x26b56f;return{'upload':await this[_0x1e429f(0x1fa)][_0x1e429f(0x20d)][_0x1e429f(0x255)](_0x261c48)};}async[_0x26b56f(0x25a)](_0x36959e){const _0x41a98f=_0x26b56f;return{'upload':await this[_0x41a98f(0x1fa)][_0x41a98f(0x20d)][_0x41a98f(0x202)](_0x36959e[_0x41a98f(0x247)])};}async[_0x26b56f(0x215)](_0x34e289){const _0x159d37=_0x26b56f;return await this[_0x159d37(0x1fa)][_0x159d37(0x20d)][_0x159d37(0x219)](_0x34e289[_0x159d37(0x247)]),{'cancelled':!![]};}async[_0x26b56f(0x217)](_0x3c75d5){const _0x2f99d7=_0x26b56f;return this[_0x2f99d7(0x1fa)][_0x2f99d7(0x24d)][_0x2f99d7(0x212)](this[_0x2f99d7(0x1fa)][_0x2f99d7(0x253)](_0x3c75d5[_0x2f99d7(0x254)]));}async[_0x26b56f(0x23e)](_0x287b17){const _0x12d405=_0x26b56f;if(typeof _0x287b17[_0x12d405(0x254)]!==_0x12d405(0x201))throw new Error(_0x12d405(0x225));const _0x1ae350=this[_0x12d405(0x1fa)][_0x12d405(0x253)](_0x287b17[_0x12d405(0x254)]),_0x3ef0a6=await this[_0x12d405(0x238)](_0x1ae350,_0x287b17);return{'file':await this[_0x12d405(0x1fa)][_0x12d405(0x239)][_0x12d405(0x22a)](_0x1ae350,_0x287b17,_0x3ef0a6)};}async[_0x26b56f(0x20f)](_0x5e36ef){const _0x5bc257=_0x26b56f;if(typeof _0x5e36ef[_0x5bc257(0x254)]!==_0x5bc257(0x201)||typeof _0x5e36ef[_0x5bc257(0x210)]!==_0x5bc257(0x201)||_0x5e36ef[_0x5bc257(0x230)]!==undefined&&typeof _0x5e36ef[_0x5bc257(0x230)]!==_0x5bc257(0x201)||_0x5e36ef[_0x5bc257(0x20b)]!==undefined&&typeof _0x5e36ef[_0x5bc257(0x20b)]!==_0x5bc257(0x201))throw new Error(_0x5bc257(0x256));const _0x53a880=this[_0x5bc257(0x24c)](_0x5e36ef[_0x5bc257(0x254)]),_0x1c8650=await resolveGitRepositoryTarget(_0x53a880[_0x5bc257(0x210)],_0x5e36ef[_0x5bc257(0x230)]??'',_0x5e36ef[_0x5bc257(0x20b)]);return{'diff':await readCurrentChangeDiff(_0x1c8650,_0x5e36ef[_0x5bc257(0x210)])};}async[_0x26b56f(0x224)](_0x2023bb){const _0x25d432=_0x26b56f;if(typeof _0x2023bb[_0x25d432(0x254)]!==_0x25d432(0x201)||typeof _0x2023bb[_0x25d432(0x210)]!==_0x25d432(0x201)||_0x2023bb[_0x25d432(0x230)]!==undefined&&typeof _0x2023bb[_0x25d432(0x230)]!==_0x25d432(0x201)||_0x2023bb[_0x25d432(0x20b)]!==undefined&&typeof _0x2023bb[_0x25d432(0x20b)]!==_0x25d432(0x201)||_0x2023bb[_0x25d432(0x21a)]!==_0x25d432(0x207)&&_0x2023bb[_0x25d432(0x21a)]!==_0x25d432(0x23f)&&_0x2023bb[_0x25d432(0x21a)]!==_0x25d432(0x1fe))throw new Error(_0x25d432(0x21c));const _0x5123b8=this[_0x25d432(0x24c)](_0x2023bb[_0x25d432(0x254)]),_0x5e7b45=await resolveGitRepositoryTarget(_0x5123b8[_0x25d432(0x210)],_0x2023bb[_0x25d432(0x230)]??'',_0x2023bb[_0x25d432(0x20b)]);return await restoreCurrentChange(_0x5e7b45,_0x2023bb[_0x25d432(0x210)],_0x2023bb[_0x25d432(0x21a)]),this[_0x25d432(0x1fa)][_0x25d432(0x249)](_0x5123b8['id']),{'restored':!![]};}async[_0x26b56f(0x244)](_0x2a6fac){const _0x3738cb=_0x26b56f;if(typeof _0x2a6fac[_0x3738cb(0x254)]!==_0x3738cb(0x201)||_0x2a6fac[_0x3738cb(0x230)]!==undefined&&typeof _0x2a6fac[_0x3738cb(0x230)]!==_0x3738cb(0x201))throw new Error(_0x3738cb(0x218));const _0x3e5b73=this[_0x3738cb(0x24c)](_0x2a6fac[_0x3738cb(0x254)]);return resolveGitRepository(_0x3e5b73[_0x3738cb(0x210)],_0x2a6fac[_0x3738cb(0x230)]??'');}async[_0x26b56f(0x238)](_0x20a268,_0x332de5){const _0x570981=_0x26b56f;if(_0x332de5[_0x570981(0x20b)]===undefined)return _0x20a268[_0x570981(0x210)];if(typeof _0x332de5[_0x570981(0x20b)]!==_0x570981(0x201))throw new Error(_0x570981(0x218));return resolveGitRepositoryTarget(_0x20a268[_0x570981(0x210)],'',_0x332de5[_0x570981(0x20b)]);}[_0x26b56f(0x20c)](_0x35e487){const _0x4dcafb=_0x26b56f;if(_0x35e487[_0x4dcafb(0x20c)]===undefined)return undefined;if(!Array[_0x4dcafb(0x22c)](_0x35e487[_0x4dcafb(0x20c)])||_0x35e487[_0x4dcafb(0x20c)][_0x4dcafb(0x22d)]>-0x16*0x1b5+0x8+-0x9d*-0x3e||_0x35e487[_0x4dcafb(0x20c)][_0x4dcafb(0x21f)](_0x1f2431=>typeof _0x1f2431!==_0x4dcafb(0x201)))throw new Error(_0x4dcafb(0x1ff));return _0x35e487[_0x4dcafb(0x20c)];}async[_0x26b56f(0x1f7)](_0x31d672){const _0x353316=_0x26b56f;return{'refs':await listGitHistoryRefs(await this[_0x353316(0x244)](_0x31d672))};}async[_0x26b56f(0x208)](_0x5a66d1){const _0x286d07=_0x26b56f,_0xafc22e=this[_0x286d07(0x20c)](_0x5a66d1);if(_0x5a66d1[_0x286d07(0x20e)]!==undefined&&typeof _0x5a66d1[_0x286d07(0x20e)]!==_0x286d07(0x201))throw new Error(_0x286d07(0x242));if(_0x5a66d1[_0x286d07(0x1f9)]!==undefined&&(typeof _0x5a66d1[_0x286d07(0x1f9)]!==_0x286d07(0x205)||!Number[_0x286d07(0x227)](_0x5a66d1[_0x286d07(0x1f9)])||_0x5a66d1[_0x286d07(0x1f9)]<-0x21b+0xef0+-0xcd4||_0x5a66d1[_0x286d07(0x1f9)]>0x29*-0x85+-0x245f+0x4*0xe84))throw new Error(_0x286d07(0x250));return readGitHistory(await this[_0x286d07(0x244)](_0x5a66d1),{..._0xafc22e===undefined?{}:{'refs':_0xafc22e},...typeof _0x5a66d1[_0x286d07(0x20e)]===_0x286d07(0x201)?{'cursor':_0x5a66d1[_0x286d07(0x20e)]}:{},...typeof _0x5a66d1[_0x286d07(0x1f9)]===_0x286d07(0x205)?{'limit':_0x5a66d1[_0x286d07(0x1f9)]}:{}});}async[_0x26b56f(0x21d)](_0x57fd92){const _0x537680=_0x26b56f;if(typeof _0x57fd92[_0x537680(0x237)]!==_0x537680(0x201))throw new Error(_0x537680(0x23c));return{'files':await readGitHistoryFiles(await this[_0x537680(0x244)](_0x57fd92),_0x57fd92[_0x537680(0x237)],this[_0x537680(0x20c)](_0x57fd92))};}async[_0x26b56f(0x245)](_0x3d7538){const _0xfed97a=_0x26b56f;if(typeof _0x3d7538[_0xfed97a(0x237)]!==_0xfed97a(0x201)||typeof _0x3d7538[_0xfed97a(0x210)]!==_0xfed97a(0x201)||_0x3d7538[_0xfed97a(0x1fb)]!==undefined&&typeof _0x3d7538[_0xfed97a(0x1fb)]!==_0xfed97a(0x201))throw new Error(_0xfed97a(0x256));return{'diff':await readGitHistoryFileDiff(await this[_0xfed97a(0x244)](_0x3d7538),_0x3d7538[_0xfed97a(0x237)],_0x3d7538[_0xfed97a(0x210)],this[_0xfed97a(0x20c)](_0x3d7538),_0x3d7538[_0xfed97a(0x1fb)])};}async[_0x26b56f(0x226)](_0x13e444){const _0x58507d=_0x26b56f;if(typeof _0x13e444[_0x58507d(0x237)]!==_0x58507d(0x201)||typeof _0x13e444[_0x58507d(0x210)]!==_0x58507d(0x201)||!Number[_0x58507d(0x243)](_0x13e444[_0x58507d(0x23b)])||_0x13e444[_0x58507d(0x23b)]<-0x25*-0x6a+0x5*0x3ab+-0x21a9*0x1||!Number[_0x58507d(0x243)](_0x13e444[_0x58507d(0x1f9)])||_0x13e444[_0x58507d(0x1f9)]<0x1121+-0x2417*-0x1+0x11bd*-0x3||_0x13e444[_0x58507d(0x1f9)]>(0x243*0x1+0x2265+-0x2494)*(0x2*-0x112a+-0x1*-0x99d+0x1cb7)*(-0x40+-0x1d3*0x5+0x15*0xa3))throw new Error(_0x58507d(0x214));return{'file':await readGitHistoryFileContentRange(await this[_0x58507d(0x244)](_0x13e444),_0x13e444[_0x58507d(0x237)],_0x13e444[_0x58507d(0x210)],_0x13e444[_0x58507d(0x23b)],_0x13e444[_0x58507d(0x1f9)],this[_0x58507d(0x20c)](_0x13e444))};}async[_0x26b56f(0x216)](_0x8ddd8){const _0x32b299=_0x26b56f;if(typeof _0x8ddd8[_0x32b299(0x254)]!==_0x32b299(0x201)||typeof _0x8ddd8[_0x32b299(0x24a)]!==_0x32b299(0x201)||typeof _0x8ddd8[_0x32b299(0x1fc)]!==_0x32b299(0x201))throw new Error(_0x32b299(0x256));const _0x1491a3=this[_0x32b299(0x24c)](_0x8ddd8[_0x32b299(0x254)]);return{'diff':await readRestrictedDiff(_0x1491a3[_0x32b299(0x210)],_0x8ddd8[_0x32b299(0x24a)],_0x8ddd8[_0x32b299(0x1fc)])};}[_0x26b56f(0x24c)](_0x182c5d){const _0x2b5e7e=_0x26b56f,_0xa689af=this[_0x2b5e7e(0x1fa)][_0x2b5e7e(0x253)](_0x182c5d);if(_0xa689af[_0x2b5e7e(0x24f)]!==_0x2b5e7e(0x1f8))throw new Error(_0x2b5e7e(0x1fd));return _0xa689af;}}function record(_0x3c67fc){const _0x1ab91c=_0x26b56f;return typeof _0x3c67fc===_0x1ab91c(0x209)&&_0x3c67fc!==null&&!Array[_0x1ab91c(0x22c)](_0x3c67fc)?_0x3c67fc:{};}function _0xa545(){const _0x53d1d1=['ngTrA3D1vW','A2LUza','r0Lux0Hju1rpuLLFteLnsvrFsu5wquXjra','B3bLCMf0Aw9UCW','y29UDgvUDfnLyxjJAa','CMvXDwLYzvDVCMTZCgfJzq','D29YA3nWywnLswq','D3jPDgu','r0Lux0rjrKzFsu5wquXjra','BgLZDezPBgvZ','zw5ZDxjLu25HChnOB3q','mJe5otKXyuHqz1ns','y29TCgXLDgvvCgXVywq','BgLZDa','nJq0nte1wurWyNHz','mMXrzNPjvq','z2L0uMvMCW','r0Lux1DpuKTtuefdrq','BgLTAxq','B3b0Aw9UCW','ChjLDMLVDxnqyxrO','Dg9szwy','v09ss1nqqunfx05pvf9hsvq','vu5uuKfds0ve','r0Lux0Hju1rpuLLFuKvgx0LovKfmsuq','D2f0y2HdB250CM9SBgvY','C3rYAw5N','y29TCgXLDgu','BM9KzuDLBMvYyxrPB24','D2f0y2G','BNvTyMvY','D3jPDgvvCgXVywq','u1rbr0ve','z2L0sgLZDg9YEq','B2jQzwn0','mtzPuMPtrvC','D29YA3rYzwvqyxrO','CMvMCW','DxbSB2fKCW','y3vYC29Y','y2HHBMDLrgLMzG','Cgf0Aa','C2vHCMnOq29UDgvUDa','y3vYCMvUDa','mta0mdyWn2PzuwHAvW','rKLmrv9squ5hrv9jtLzbteLe','y2fUy2vSvxbSB2fK','zgLMzG','y3vYCMvUDenOyw5Nzxm','r0Lux1jfue9tsvrpuLLFsu5wquXjra','y2fUy2vS','C3rHDgu','odq4nti2vxrywNjW','r0Lux0niqu5hrv9srvnut1jfx1voqvzbsuXbqKXf','z2L0q29TBwL0rMLSzxm','y2XLyxjxB3jRC3bHy2u','C29Tzq','zw5ZDxjLvg9WAwntBMfWC2HVDa','C3rHDhvZ','y2XLyxi','mtbZsKHKswC','CMvZDg9YzunOyw5Nzq','v09ss1nqqunfx05pvf9gt1vora','z2L0q29TBwL0rMLSzunVBNrLBNq','AxnjBNrLz2vY','CMvHzezPBgu','mZqXoda0mwrAsw1MuW','CMvHzenVBNrLBNq','C2vHCMnO','AxnbCNjHEq','BgvUz3rO','y3jLyxrL','Bxv0yxrL','CMvWB3nPDg9YEvbHDgG','Bxv0yxrLrMLSzq','y29TBwL0v29YA3nWywnL','Aw5ZCgvJDfDVCMTZCgfJzq','C2vHCMnOrMLSzxm','y3jLyxrLvxbSB2fK','mtq0otq5tfLrDfPZ','y29TBwL0','zMLSzvjLCg9ZAxrVCNK','zMLSzxm','Aw52ywXPzgf0zvrVCgLJ','B2zMC2v0','r0Lux0Hju1rpuLLFq09ntuLux0LovKfmsuq','y2XLyxjbBgW','CMvHzezPBgvdB250zw50','vu5tvefhruq','D3jPDgvgAwXL','C25HChnOB3rZ','r0Lux0Hju1rpuLLFq1vsu09sx0LovKfmsuq','AxntywzLsw50zwDLCG','z2L0uMvWB3nPDg9YEq','z2L0q29TBwL0rMLSzurPzMy','CMvHza','DxbSB2fKswq','ChjLzMXPz2H0','Aw52ywXPzgf0zq','zNjVBvjLzG','nJq5mZe3ChbWz0nQ','z2L0v29YA3nWywnL','y2HHBMDLCW'];_0xa545=function(){return _0x53d1d1;};return _0xa545();}
|