@myagentroam/node 0.9.22 → 0.9.24
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/native-session-history.js +1 -1
- package/dist/runner/claude/managed-run-controller.js +1 -1
- package/dist/runner/mar-agent/conversation-normalizer.js +1 -1
- package/dist/runner/mar-agent/history-projection.js +1 -1
- package/dist/runner/mar-agent-runner.js +1 -1
- package/dist/runner/opencode/conversation-parser.js +1 -1
- package/dist/runner/opencode/managed-run-controller.js +1 -1
- package/dist/runtime-state.js +1 -1
- package/dist/service/session-catalog-service.js +1 -1
- package/dist/service/workspace-file-service.js +1 -1
- package/dist/service/workspace-watch-service.js +1 -1
- package/dist/service/workspace-watch-snapshot-service.js +1 -1
- package/dist/util/runner-native-session-parsers.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 _0x7978d2=_0x2876;function _0x2876(_0x2947cf,_0x7442ef){_0x2947cf=_0x2947cf-(-0x2*0x842+-0x99a+0x1bba);const _0x358005=_0x4707();let _0x2ab19a=_0x358005[_0x2947cf];if(_0x2876['AIFTlj']===undefined){var _0x3da548=function(_0x38b6bf){const _0x490ce5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4c2686='',_0x2ef050='';for(let _0x991ac9=0x5c6+-0x2c*0xd6+0x1f02,_0x29936d,_0x51e68b,_0x5b3591=-0x1197+-0x24f7+0x368e;_0x51e68b=_0x38b6bf['charAt'](_0x5b3591++);~_0x51e68b&&(_0x29936d=_0x991ac9%(-0x2*0xb69+0x1112*0x2+-0xb4e)?_0x29936d*(-0x1407*0x1+-0x671+0x168*0x13)+_0x51e68b:_0x51e68b,_0x991ac9++%(-0x31*0x79+0x2*-0x2b3+0x1c93))?_0x4c2686+=String['fromCharCode'](0xe20+-0x131+0x17e*-0x8&_0x29936d>>(-(-0x2421+-0x1fbf+0x43e2)*_0x991ac9&-0x11d5*-0x2+0x2520+-0x48c4)):0x6af*0x1+-0x82b+0x13*0x14){_0x51e68b=_0x490ce5['indexOf'](_0x51e68b);}for(let _0x510ab0=0xcd+0x1f2b+-0x1ff8,_0xcf1b4c=_0x4c2686['length'];_0x510ab0<_0xcf1b4c;_0x510ab0++){_0x2ef050+='%'+('00'+_0x4c2686['charCodeAt'](_0x510ab0)['toString'](-0x1797+-0x983+0x212a))['slice'](-(0xd*-0x199+-0x1*-0xfa9+0x51e));}return decodeURIComponent(_0x2ef050);};_0x2876['SoTQZD']=_0x3da548,_0x2876['GEFNmZ']={},_0x2876['AIFTlj']=!![];}const _0x5cd7f9=_0x358005[0x1fc*0x10+0x479+-0x2439*0x1];_0x2876['ZRUDYL']!==_0x5cd7f9&&(_0x2876['GEFNmZ']={},_0x2876['ZRUDYL']=_0x5cd7f9);const _0x2cb286=_0x2876['GEFNmZ'][_0x2947cf];return _0x2cb286===undefined?(_0x2ab19a=_0x2876['SoTQZD'](_0x2ab19a),_0x2876['GEFNmZ'][_0x2947cf]=_0x2ab19a):_0x2ab19a=_0x2cb286,_0x2ab19a;}(function(_0x1be28a,_0x19a759){const _0xa9f7c3=_0x2876,_0x399812=_0x1be28a();while(!![]){try{const _0x7a8872=-parseInt(_0xa9f7c3(0x1b5))/(0x1f89+-0x40f+-0x1b79)*(-parseInt(_0xa9f7c3(0x1e6))/(-0x1*-0x1c61+-0x1120+-0xb3f))+-parseInt(_0xa9f7c3(0x19c))/(-0x28*0x38+0x6*0x3b8+0xd8d*-0x1)+-parseInt(_0xa9f7c3(0x1bd))/(0xfa6*-0x1+-0x1836+0x3a*0xb0)+-parseInt(_0xa9f7c3(0x1dd))/(0x1bee+-0x10d7+-0xb12)*(-parseInt(_0xa9f7c3(0x1bb))/(-0x15*-0x1d0+-0x2d7*-0x3+-0x2e8f))+-parseInt(_0xa9f7c3(0x1ca))/(-0x5*0x59c+-0x1ba2+0xd*0x449)*(-parseInt(_0xa9f7c3(0x1ce))/(-0xa11+-0x1f00+-0x7*-0x5df))+-parseInt(_0xa9f7c3(0x1e1))/(-0x758+0x10a7+0x4a3*-0x2)*(parseInt(_0xa9f7c3(0x1a9))/(-0x2*0x917+0x13ab+-0x173))+parseInt(_0xa9f7c3(0x1aa))/(0xe48+0x14a1*-0x1+0x2*0x332)*(parseInt(_0xa9f7c3(0x1d9))/(0xb*-0x2b1+-0x1d0+0x1f77));if(_0x7a8872===_0x19a759)break;else _0x399812['push'](_0x399812['shift']());}catch(_0x4e14ab){_0x399812['push'](_0x399812['shift']());}}}(_0x4707,-0x1122d6+0xb7d53+0xf0ef5));export class WorkspaceWatchSnapshotService{[_0x7978d2(0x1b4)];[_0x7978d2(0x1c8)]=new Map();[_0x7978d2(0x1be)]=new Set();[_0x7978d2(0x19d)]=new Map();[_0x7978d2(0x19f)]=new Map();constructor(_0x40edb4){const _0x53defc=_0x7978d2;this[_0x53defc(0x1b4)]=_0x40edb4;}async[_0x7978d2(0x1ad)](_0x2e3c1c,_0x206287){const _0x4c0178=_0x7978d2;if(_0x206287[_0x4c0178(0x1b0)][_0x4c0178(0x1bc)]!==undefined||_0x206287[_0x4c0178(0x1b0)][_0x4c0178(0x1e0)])void this[_0x4c0178(0x1b4)][_0x4c0178(0x1bc)][_0x4c0178(0x1e8)](_0x2e3c1c)[_0x4c0178(0x1d1)]()[_0x4c0178(0x1d7)](()=>undefined);await Promise[_0x4c0178(0x1da)](this[_0x4c0178(0x1b3)](_0x206287)[_0x4c0178(0x1c3)](async _0x248b8d=>{const _0x46a64a=_0x4c0178;try{const _0x4017c1=await this[_0x46a64a(0x1c6)](_0x2e3c1c,_0x248b8d,_0x206287);if(!this[_0x46a64a(0x1e3)](_0x2e3c1c['id'],_0x206287))return;this[_0x46a64a(0x19f)][_0x46a64a(0x1b9)](this[_0x46a64a(0x1a0)](_0x2e3c1c['id'],_0x248b8d,_0x206287),signature(_0x4017c1)),this[_0x46a64a(0x1ac)](_0x2e3c1c,_0x206287,_0x248b8d,_0x4017c1);}catch{this[_0x46a64a(0x1d5)](_0x2e3c1c['id'],_0x206287,_0x248b8d);}}));}async[_0x7978d2(0x1c7)](_0x4f3d1f,_0x397a8a){const _0x459b6b=_0x7978d2,_0x8f0ddb=_0x4f3d1f+':'+_0x397a8a,_0x2077b2=this[_0x459b6b(0x1c8)][_0x459b6b(0x1b7)](_0x8f0ddb);if(_0x2077b2!==undefined)return this[_0x459b6b(0x1be)][_0x459b6b(0x1d3)](_0x8f0ddb),_0x2077b2;if(this[_0x459b6b(0x1a4)](_0x4f3d1f,_0x397a8a))this[_0x459b6b(0x1be)][_0x459b6b(0x1d3)](_0x8f0ddb);const _0x1d84d6=this[_0x459b6b(0x1d4)](_0x4f3d1f,_0x397a8a)[_0x459b6b(0x1d7)](()=>{const _0x218052=_0x459b6b;for(const _0xc4a5ac of this[_0x218052(0x1dc)](_0x4f3d1f,_0x397a8a))this[_0x218052(0x1d5)](_0x4f3d1f,_0xc4a5ac,_0x397a8a);});this[_0x459b6b(0x1c8)][_0x459b6b(0x1b9)](_0x8f0ddb,_0x1d84d6);try{await _0x1d84d6;}finally{if(this[_0x459b6b(0x1c8)][_0x459b6b(0x1b7)](_0x8f0ddb)===_0x1d84d6)this[_0x459b6b(0x1c8)][_0x459b6b(0x1af)](_0x8f0ddb);if(this[_0x459b6b(0x1be)][_0x459b6b(0x1af)](_0x8f0ddb))void this[_0x459b6b(0x1c7)](_0x4f3d1f,_0x397a8a);}}[_0x7978d2(0x1ba)](_0x5b3765,_0x5cffde){const _0xe07435=_0x7978d2;return this[_0xe07435(0x1c8)][_0xe07435(0x1b7)](_0x5b3765+':'+_0x5cffde)??this[_0xe07435(0x1c7)](_0x5b3765,_0x5cffde);}[_0x7978d2(0x1b8)](_0x361ae0){const _0x1f3c0d=_0x7978d2;for(const _0x4d45cd of[...this[_0x1f3c0d(0x1be)]])if(_0x4d45cd[_0x1f3c0d(0x1cd)](_0x361ae0+':'))this[_0x1f3c0d(0x1be)][_0x1f3c0d(0x1af)](_0x4d45cd);for(const _0xaf7c7 of[...this[_0x1f3c0d(0x19f)][_0x1f3c0d(0x1c2)]()])if(_0xaf7c7[_0x1f3c0d(0x1cd)](_0x361ae0+':'))this[_0x1f3c0d(0x19f)][_0x1f3c0d(0x1af)](_0xaf7c7);}[_0x7978d2(0x1b6)](){const _0x2d2797=_0x7978d2;this[_0x2d2797(0x1be)][_0x2d2797(0x1b8)](),this[_0x2d2797(0x19f)][_0x2d2797(0x1b8)]();}async[_0x7978d2(0x1d4)](_0x25bccf,_0x37d82c){const _0x3b7bb9=_0x7978d2,_0x25b8b9=this[_0x3b7bb9(0x1b4)][_0x3b7bb9(0x1c9)](_0x25bccf),_0x313f46=this[_0x3b7bb9(0x1dc)](_0x25bccf,_0x37d82c);if(_0x313f46[_0x3b7bb9(0x1db)]===-0xf5c+-0x2699+0x35f5)return;if(_0x37d82c!==_0x3b7bb9(0x1bc)){const _0x277ea0=_0x313f46[-0xbc4+0x21a*-0xb+0x22e2];if(_0x277ea0===undefined)return;const _0x48da05=await this[_0x3b7bb9(0x1c6)](_0x25b8b9,_0x37d82c,_0x277ea0),_0x46e1fb=_0x313f46[_0x3b7bb9(0x1b2)](_0x30aa45=>this[_0x3b7bb9(0x1e3)](_0x25bccf,_0x30aa45));if(_0x46e1fb[_0x3b7bb9(0x1db)]===0x211b+0x2512+-0x462d)return;if(!this[_0x3b7bb9(0x1c0)](this[_0x3b7bb9(0x1a0)](_0x25bccf,_0x37d82c,_0x277ea0),_0x48da05))return;for(const _0x55baf3 of _0x46e1fb)this[_0x3b7bb9(0x1ac)](_0x25b8b9,_0x55baf3,_0x37d82c,_0x48da05);return;}const _0x5e8fc3=new Map();for(const _0x24ce6a of _0x313f46){const _0x2f2352=JSON[_0x3b7bb9(0x1d0)](_0x24ce6a[_0x3b7bb9(0x1b0)][_0x3b7bb9(0x1bc)]);_0x5e8fc3[_0x3b7bb9(0x1b9)](_0x2f2352,[..._0x5e8fc3[_0x3b7bb9(0x1b7)](_0x2f2352)??[],_0x24ce6a]);}await Promise[_0x3b7bb9(0x1da)]([..._0x5e8fc3[_0x3b7bb9(0x1a3)]()][_0x3b7bb9(0x1c3)](async _0xa17395=>{const _0x38b4c0=_0x3b7bb9,_0x12e577=_0xa17395[0xf7+0x2a7*-0xd+0x2184];if(_0x12e577===undefined)return;try{const _0x2413b5=await this[_0x38b4c0(0x1c6)](_0x25b8b9,_0x37d82c,_0x12e577),_0x11461c=_0xa17395[_0x38b4c0(0x1b2)](_0x22c1b5=>this[_0x38b4c0(0x1e3)](_0x25bccf,_0x22c1b5));if(_0x11461c[_0x38b4c0(0x1db)]===-0x566+0x5*0x435+-0xfa3)return;if(!this[_0x38b4c0(0x1c0)](this[_0x38b4c0(0x1a0)](_0x25bccf,_0x37d82c,_0x12e577),_0x2413b5))return;for(const _0xde55d2 of _0x11461c)this[_0x38b4c0(0x1ac)](_0x25b8b9,_0xde55d2,_0x37d82c,_0x2413b5);}catch{for(const _0x16569a of _0xa17395)this[_0x38b4c0(0x1d5)](_0x25bccf,_0x16569a,_0x37d82c);}}));}[_0x7978d2(0x1c6)](_0x42cd05,_0x4dd946,_0x435b8c){const _0x4baa59=_0x7978d2,_0x558fec=_0x4dd946===_0x4baa59(0x1bc)?_0x42cd05['id']+_0x4baa59(0x1c4)+JSON[_0x4baa59(0x1d0)](_0x435b8c[_0x4baa59(0x1b0)][_0x4baa59(0x1bc)]):_0x42cd05['id']+':'+_0x4dd946,_0x2b27da=this[_0x4baa59(0x19d)][_0x4baa59(0x1b7)](_0x558fec);if(_0x2b27da!==undefined)return _0x2b27da;const _0x1ec5d8=(_0x4dd946===_0x4baa59(0x1c5)?this[_0x4baa59(0x1b4)][_0x4baa59(0x1ab)](_0x42cd05['id']):_0x4dd946===_0x4baa59(0x1e0)?_0x42cd05[_0x4baa59(0x1df)]===_0x4baa59(0x1a2)?this[_0x4baa59(0x1b4)][_0x4baa59(0x1e0)][_0x4baa59(0x1a1)](_0x42cd05):Promise[_0x4baa59(0x1e2)](null):this[_0x4baa59(0x1b4)][_0x4baa59(0x1bc)][_0x4baa59(0x1e9)](_0x42cd05,_0x435b8c[_0x4baa59(0x1b0)][_0x4baa59(0x1bc)])[_0x4baa59(0x1e4)](_0x5670bd=>({'files':_0x5670bd})))[_0x4baa59(0x19e)](()=>{const _0x17d6d3=_0x4baa59;if(this[_0x17d6d3(0x19d)][_0x17d6d3(0x1b7)](_0x558fec)===_0x1ec5d8)this[_0x17d6d3(0x19d)][_0x17d6d3(0x1af)](_0x558fec);});return this[_0x4baa59(0x19d)][_0x4baa59(0x1b9)](_0x558fec,_0x1ec5d8),_0x1ec5d8;}[_0x7978d2(0x1c0)](_0x352605,_0x39cf96){const _0x3e7c13=_0x7978d2,_0x504863=signature(_0x39cf96);if(this[_0x3e7c13(0x19f)][_0x3e7c13(0x1b7)](_0x352605)===_0x504863)return![];return this[_0x3e7c13(0x19f)][_0x3e7c13(0x1b9)](_0x352605,_0x504863),!![];}[_0x7978d2(0x1a0)](_0x12c0a7,_0x4c84e0,_0x1f9a7f){const _0x573a71=_0x7978d2;return _0x4c84e0===_0x573a71(0x1bc)?_0x12c0a7+_0x573a71(0x1c4)+JSON[_0x573a71(0x1d0)](_0x1f9a7f[_0x573a71(0x1b0)][_0x573a71(0x1bc)]):_0x12c0a7+':'+_0x4c84e0;}[_0x7978d2(0x1a4)](_0x2947cf,_0x7442ef){const _0x332b32=_0x7978d2,_0x358005=_0x2947cf+':'+_0x7442ef;return[...this[_0x332b32(0x19d)][_0x332b32(0x1c2)]()][_0x332b32(0x1d6)](_0x2ab19a=>_0x2ab19a===_0x358005||_0x2ab19a[_0x332b32(0x1cd)](_0x358005+':'));}[_0x7978d2(0x1dc)](_0x3da548,_0x5cd7f9){const _0x561b10=_0x7978d2;return this[_0x561b10(0x1b4)][_0x561b10(0x1b1)][_0x561b10(0x1cf)](_0x3da548)[_0x561b10(0x1b2)](_0x2cb286=>_0x5cd7f9===_0x561b10(0x1bc)?_0x2cb286[_0x561b10(0x1b0)][_0x561b10(0x1bc)]!==undefined:_0x2cb286[_0x561b10(0x1b0)][_0x5cd7f9]);}[_0x7978d2(0x1b3)](_0x38b6bf){const _0x47beb2=_0x7978d2;return[..._0x38b6bf[_0x47beb2(0x1b0)][_0x47beb2(0x1c5)]?[_0x47beb2(0x1c5)]:[],..._0x38b6bf[_0x47beb2(0x1b0)][_0x47beb2(0x1bc)]===undefined?[]:[_0x47beb2(0x1bc)],..._0x38b6bf[_0x47beb2(0x1b0)][_0x47beb2(0x1e0)]?[_0x47beb2(0x1e0)]:[]];}[_0x7978d2(0x1ac)](_0x490ce5,_0x4c2686,_0x2ef050,_0x991ac9){const _0x325461=_0x7978d2;if(!this[_0x325461(0x1e3)](_0x490ce5['id'],_0x4c2686))return;this[_0x325461(0x1b4)][_0x325461(0x1e7)]({'type':_0x325461(0x1a8),'workbenchConnectionId':_0x4c2686[_0x325461(0x1a5)],'watchId':_0x4c2686[_0x325461(0x1a6)],'nodeGeneration':_0x4c2686[_0x325461(0x1ae)],'nodeId':this[_0x325461(0x1b4)][_0x325461(0x1d8)](),'workspaceId':_0x490ce5['id'],'topic':_0x2ef050,'revision':this[_0x325461(0x1b4)][_0x325461(0x1b1)][_0x325461(0x1cc)](this[_0x325461(0x1a0)](_0x490ce5['id'],_0x2ef050,_0x4c2686)),'snapshotSequence':this[_0x325461(0x1b4)][_0x325461(0x1b1)][_0x325461(0x1e5)](),'expiresAt':_0x4c2686[_0x325461(0x1c1)],'payload':_0x991ac9});}[_0x7978d2(0x1d5)](_0x29936d,_0x51e68b,_0x5b3591){const _0x51f85e=_0x7978d2;if(!this[_0x51f85e(0x1e3)](_0x29936d,_0x51e68b))return;this[_0x51f85e(0x1b4)][_0x51f85e(0x1e7)]({'type':_0x51f85e(0x1de),'workbenchConnectionId':_0x51e68b[_0x51f85e(0x1a5)],'watchType':_0x51f85e(0x1bf),'watchId':_0x51e68b[_0x51f85e(0x1a6)],'nodeGeneration':_0x51e68b[_0x51f85e(0x1ae)],'nodeId':this[_0x51f85e(0x1b4)][_0x51f85e(0x1d8)](),'workspaceId':_0x29936d,'topic':_0x5b3591,'code':_0x51f85e(0x1a7),'message':_0x51f85e(0x1cb)});}[_0x7978d2(0x1e3)](_0x510ab0,_0xcf1b4c){const _0x37d8c6=_0x7978d2;return this[_0x37d8c6(0x1b4)][_0x37d8c6(0x1b1)][_0x37d8c6(0x1e3)](_0x510ab0,_0xcf1b4c[_0x37d8c6(0x1d2)]+':'+_0xcf1b4c[_0x37d8c6(0x1a5)],_0xcf1b4c[_0x37d8c6(0x1a6)]);}}function _0x4707(){const _0xd46393=['ywn0AxzLv2f0y2HLCW','C3rYAw5NAwz5','B2jZzxj2zq','C2vZC2LVBKHHC2G','ywrK','CMvMCMvZAa','zMfPBa','C29Tzq','y2f0y2G','BM9KzuLK','mtmXmtaYodHvEvLvvuq','ywXS','BgvUz3rO','C3vIC2nYAwjLCNm','mJvVy3rNBKK','D2f0y2GUzMfPBgvK','A2LUza','y2HHBMDLCW','oxH1zfnhrG','CMvZB2X2zq','Bwf0y2HLCW','DgHLBG','BMv4DfnUyxbZAg90u2vXDwvUy2u','mti0ndjorKHksu8','zw1PDfDHDgnOrxzLBNq','Aw5KzxG','BgLZDa','mJe3ndu3muPft1HxuW','CMvHzhm','zMLUywXSEq','C2LNBMf0DxjLCW','DMLLD0TLEq','y3vYCMvUDa','r0Lux1DpuKTtuefdrq','DMfSDwvZ','CMvHzefJDgL2zq','D29YA2jLBMnOq29UBMvJDgLVBKLK','D2f0y2Hjza','v09ss1nqqunfx1Dbvenix1noqvbtse9ux0zbsuXfra','D2f0y2GUD29YA3nWywnLlNnUyxbZAg90','nti3mdyZmeXvAxbyvW','mJjPsMvwvge','BgLZDfnLC3nPB25Z','zgvSAxzLCG','Aw5PDgLHBa','BM9KzuDLBMvYyxrPB24','zgvSzxrL','Dg9WAwnZ','D2f0y2G','zMLSDgvY','C3vIC2nYAwjLzfrVCgLJCW','B3b0Aw9UCW','mvDPELPUBW','y2XLyxjbBgW','z2v0','y2XLyxi','C2v0','zw5ZDxjLu25HChnOB3q','ndCWmdGYzuPXyLzY','zMLSzxm','nduXmtuYmer4Eg12wG','zgLYDhK','D29YA3nWywnL','y2HHBMDLza','zxHWAxjLC0f0','A2v5CW','BwfW','oMzPBgvZoG','C2vZC2LVBNm','CMvHza','Aw52ywXPzgf0zq','CMvMCMvZAgvZ','CMvXDwLYzvDVCMTZCgfJzq','mJG5nti5ohDoAhzhza','v29YA3nWywnLihDHDgnOihnUyxbZAg90igzHAwXLzc4','BMv4DfjLDMLZAw9U','C3rHCNrZv2L0Aa','ogvlBfb5Cq'];_0x4707=function(){return _0xd46393;};return _0x4707();}function signature(_0x54038d){const _0x4923cc=_0x7978d2;return JSON[_0x4923cc(0x1d0)](_0x54038d)??String(_0x54038d);}
|
|
2
|
+
const _0x10d2c6=_0x43f4;(function(_0x4e6e07,_0xcd4815){const _0x1c786c=_0x43f4,_0x5e8b76=_0x4e6e07();while(!![]){try{const _0x5da4a4=-parseInt(_0x1c786c(0x1a4))/(-0x17ac+0x2*-0xdc+-0x21*-0xc5)*(-parseInt(_0x1c786c(0x1a7))/(0x1e0b+0x5ec*0x4+0x1*-0x35b9))+-parseInt(_0x1c786c(0x1b4))/(0x168b+0x43f+-0x1ac7)+-parseInt(_0x1c786c(0x19e))/(-0x4d*-0x47+-0x18d5+-0x95*-0x6)+parseInt(_0x1c786c(0x1d7))/(-0x628*0x4+0x1*-0x1305+0x2baa)+-parseInt(_0x1c786c(0x1ae))/(0xae+-0x94f+0x1bb*0x5)+-parseInt(_0x1c786c(0x199))/(0xf4d*0x2+0x1*-0x17a7+-0x6ec)+parseInt(_0x1c786c(0x1a9))/(-0x1190+-0x1064+0xa*0x366);if(_0x5da4a4===_0xcd4815)break;else _0x5e8b76['push'](_0x5e8b76['shift']());}catch(_0x4912aa){_0x5e8b76['push'](_0x5e8b76['shift']());}}}(_0xbc37,0x27160+-0x1*0x5bf58+0x6553c));const FILES_REFRESH_INTERVAL_MS=0x326*-0x8+0xaada+-0x1*0x1c7a;export class WorkspaceWatchSnapshotService{[_0x10d2c6(0x196)];[_0x10d2c6(0x1c4)]=new Map();[_0x10d2c6(0x1c9)]=new Set();[_0x10d2c6(0x1b6)]=new Map();[_0x10d2c6(0x18e)]=new Map();[_0x10d2c6(0x1d8)];constructor(_0x487e28){const _0x54b47d=_0x10d2c6;this[_0x54b47d(0x196)]=_0x487e28;}async[_0x10d2c6(0x1b9)](_0x53aeaf,_0x574efd){const _0x28caad=_0x10d2c6;if(_0x574efd[_0x28caad(0x1b1)][_0x28caad(0x193)]!==undefined)this[_0x28caad(0x194)]();await Promise[_0x28caad(0x1d2)](this[_0x28caad(0x1be)](_0x574efd)[_0x28caad(0x1da)](async _0x3571ef=>{const _0x2df214=_0x28caad;try{const _0x35eea3=await this[_0x2df214(0x19b)](_0x53aeaf,_0x3571ef,_0x574efd);if(!this[_0x2df214(0x19f)](_0x53aeaf['id'],_0x574efd))return;this[_0x2df214(0x18e)][_0x2df214(0x1aa)](this[_0x2df214(0x1a2)](_0x53aeaf['id'],_0x3571ef,_0x574efd),signature(_0x35eea3)),this[_0x2df214(0x1ab)](_0x53aeaf,_0x574efd,_0x3571ef,_0x35eea3);}catch{this[_0x2df214(0x1a8)](_0x53aeaf['id'],_0x574efd,_0x3571ef);}}));}async[_0x10d2c6(0x195)](_0x4efa03,_0x744193){const _0xd5ba56=_0x10d2c6,_0x180098=_0x4efa03+':'+_0x744193,_0x5094f7=this[_0xd5ba56(0x1c4)][_0xd5ba56(0x1ca)](_0x180098);if(_0x5094f7!==undefined)return this[_0xd5ba56(0x1c9)][_0xd5ba56(0x1ce)](_0x180098),_0x5094f7;if(this[_0xd5ba56(0x1c6)](_0x4efa03,_0x744193))this[_0xd5ba56(0x1c9)][_0xd5ba56(0x1ce)](_0x180098);const _0x142e61=this[_0xd5ba56(0x197)](_0x4efa03,_0x744193)[_0xd5ba56(0x1a3)](()=>{const _0x12809a=_0xd5ba56;for(const _0x3db51a of this[_0x12809a(0x1d3)](_0x4efa03,_0x744193))this[_0x12809a(0x1a8)](_0x4efa03,_0x3db51a,_0x744193);});this[_0xd5ba56(0x1c4)][_0xd5ba56(0x1aa)](_0x180098,_0x142e61);try{await _0x142e61;}finally{if(this[_0xd5ba56(0x1c4)][_0xd5ba56(0x1ca)](_0x180098)===_0x142e61)this[_0xd5ba56(0x1c4)][_0xd5ba56(0x1a5)](_0x180098);if(this[_0xd5ba56(0x1c9)][_0xd5ba56(0x1a5)](_0x180098))void this[_0xd5ba56(0x195)](_0x4efa03,_0x744193);}}[_0x10d2c6(0x1c2)](_0x44952b,_0x5f423b){const _0x5530f3=_0x10d2c6;return this[_0x5530f3(0x1c4)][_0x5530f3(0x1ca)](_0x44952b+':'+_0x5f423b)??this[_0x5530f3(0x195)](_0x44952b,_0x5f423b);}[_0x10d2c6(0x1b0)](_0x316c77){const _0x51d4fc=_0x10d2c6;for(const _0x581c39 of[...this[_0x51d4fc(0x1c9)]])if(_0x581c39[_0x51d4fc(0x1cb)](_0x316c77+':'))this[_0x51d4fc(0x1c9)][_0x51d4fc(0x1a5)](_0x581c39);for(const _0x4ecb72 of[...this[_0x51d4fc(0x18e)][_0x51d4fc(0x1c0)]()])if(_0x4ecb72[_0x51d4fc(0x1cb)](_0x316c77+':'))this[_0x51d4fc(0x18e)][_0x51d4fc(0x1a5)](_0x4ecb72);}[_0x10d2c6(0x1c8)](){const _0x7f039b=_0x10d2c6;if(this[_0x7f039b(0x1d8)]!==undefined)clearInterval(this[_0x7f039b(0x1d8)]);this[_0x7f039b(0x1d8)]=undefined,this[_0x7f039b(0x1c9)][_0x7f039b(0x1b0)](),this[_0x7f039b(0x18e)][_0x7f039b(0x1b0)]();}[_0x10d2c6(0x194)](){const _0x217e2b=_0x10d2c6;if(this[_0x217e2b(0x1d8)]!==undefined)return;this[_0x217e2b(0x1d8)]=setInterval(()=>{const _0x19284d=_0x217e2b,_0x4d99a1=this[_0x19284d(0x196)][_0x19284d(0x1b8)][_0x19284d(0x1d4)](_0x19284d(0x193));if(_0x4d99a1[_0x19284d(0x1cf)]===0x2129*-0x1+0x385*-0xb+0x47e0){if(this[_0x19284d(0x1d8)]!==undefined)clearInterval(this[_0x19284d(0x1d8)]);this[_0x19284d(0x1d8)]=undefined;return;}for(const _0x41ffb9 of _0x4d99a1)void this[_0x19284d(0x195)](_0x41ffb9,_0x19284d(0x193));},this[_0x217e2b(0x196)][_0x217e2b(0x1c1)]??FILES_REFRESH_INTERVAL_MS),this[_0x217e2b(0x1d8)][_0x217e2b(0x1b2)]();}async[_0x10d2c6(0x197)](_0x4ad75a,_0x2a5509){const _0x10d75d=_0x10d2c6,_0x53f73f=this[_0x10d75d(0x196)][_0x10d75d(0x1d6)](_0x4ad75a),_0x2098e7=this[_0x10d75d(0x1d3)](_0x4ad75a,_0x2a5509);if(_0x2098e7[_0x10d75d(0x1cf)]===-0xc57*0x3+-0x6d*0x19+0x1*0x2faa)return;if(_0x2a5509!==_0x10d75d(0x193)){const _0x4b258f=_0x2098e7[0xe*-0x42+-0xe*0x3b+0x6d6];if(_0x4b258f===undefined)return;const _0x4b536a=await this[_0x10d75d(0x19b)](_0x53f73f,_0x2a5509,_0x4b258f),_0x167635=_0x2098e7[_0x10d75d(0x1bc)](_0x52b890=>this[_0x10d75d(0x19f)](_0x4ad75a,_0x52b890));if(_0x167635[_0x10d75d(0x1cf)]===0x2e3*-0x8+-0x1d88+0x34a0)return;if(!this[_0x10d75d(0x1cd)](this[_0x10d75d(0x1a2)](_0x4ad75a,_0x2a5509,_0x4b258f),_0x4b536a))return;for(const _0x25ddf1 of _0x167635)this[_0x10d75d(0x1ab)](_0x53f73f,_0x25ddf1,_0x2a5509,_0x4b536a);return;}const _0x4bb1f2=new Map();for(const _0x576d4e of _0x2098e7){const _0x361220=JSON[_0x10d75d(0x1ad)](_0x576d4e[_0x10d75d(0x1b1)][_0x10d75d(0x193)]);_0x4bb1f2[_0x10d75d(0x1aa)](_0x361220,[..._0x4bb1f2[_0x10d75d(0x1ca)](_0x361220)??[],_0x576d4e]);}await Promise[_0x10d75d(0x1d2)]([..._0x4bb1f2[_0x10d75d(0x1a0)]()][_0x10d75d(0x1da)](async _0x31a219=>{const _0x3fd376=_0x10d75d,_0x4f0c41=_0x31a219[-0xe11+-0xf47+-0x4*-0x756];if(_0x4f0c41===undefined)return;try{const _0xeda42e=await this[_0x3fd376(0x19b)](_0x53f73f,_0x2a5509,_0x4f0c41),_0x1e73f0=_0x31a219[_0x3fd376(0x1bc)](_0x3af728=>this[_0x3fd376(0x19f)](_0x4ad75a,_0x3af728));if(_0x1e73f0[_0x3fd376(0x1cf)]===0x347+0x229+-0x570)return;if(!this[_0x3fd376(0x1cd)](this[_0x3fd376(0x1a2)](_0x4ad75a,_0x2a5509,_0x4f0c41),_0xeda42e))return;for(const _0xb52a68 of _0x1e73f0)this[_0x3fd376(0x1ab)](_0x53f73f,_0xb52a68,_0x2a5509,_0xeda42e);}catch{for(const _0x2107da of _0x31a219)this[_0x3fd376(0x1a8)](_0x4ad75a,_0x2107da,_0x2a5509);}}));}[_0x10d2c6(0x19b)](_0x5ee3cd,_0x55a8b4,_0x2131d2){const _0x220f20=_0x10d2c6,_0xc84eb9=_0x55a8b4===_0x220f20(0x193)?_0x5ee3cd['id']+_0x220f20(0x1b7)+JSON[_0x220f20(0x1ad)](_0x2131d2[_0x220f20(0x1b1)][_0x220f20(0x193)]):_0x5ee3cd['id']+':'+_0x55a8b4,_0x8f9545=this[_0x220f20(0x1b6)][_0x220f20(0x1ca)](_0xc84eb9);if(_0x8f9545!==undefined)return _0x8f9545;const _0x583896=(_0x55a8b4===_0x220f20(0x1bb)?this[_0x220f20(0x196)][_0x220f20(0x19d)](_0x5ee3cd['id']):_0x55a8b4===_0x220f20(0x190)?_0x5ee3cd[_0x220f20(0x1c3)]===_0x220f20(0x1d1)?this[_0x220f20(0x196)][_0x220f20(0x190)][_0x220f20(0x1ac)](_0x5ee3cd):Promise[_0x220f20(0x191)](null):this[_0x220f20(0x196)][_0x220f20(0x193)][_0x220f20(0x1bf)](_0x5ee3cd,_0x2131d2[_0x220f20(0x1b1)][_0x220f20(0x193)])[_0x220f20(0x192)](_0x3c89cf=>({'files':_0x3c89cf})))[_0x220f20(0x1b5)](()=>{const _0x9d6c6=_0x220f20;if(this[_0x9d6c6(0x1b6)][_0x9d6c6(0x1ca)](_0xc84eb9)===_0x583896)this[_0x9d6c6(0x1b6)][_0x9d6c6(0x1a5)](_0xc84eb9);});return this[_0x220f20(0x1b6)][_0x220f20(0x1aa)](_0xc84eb9,_0x583896),_0x583896;}[_0x10d2c6(0x1cd)](_0x2255fc,_0x48294f){const _0x428c51=_0x10d2c6,_0x20d9ad=signature(_0x48294f);if(this[_0x428c51(0x18e)][_0x428c51(0x1ca)](_0x2255fc)===_0x20d9ad)return![];return this[_0x428c51(0x18e)][_0x428c51(0x1aa)](_0x2255fc,_0x20d9ad),!![];}[_0x10d2c6(0x1a2)](_0x28d63d,_0x5bbe8,_0x45f1ba){const _0x383c40=_0x10d2c6;return _0x5bbe8===_0x383c40(0x193)?_0x28d63d+_0x383c40(0x1b7)+JSON[_0x383c40(0x1ad)](_0x45f1ba[_0x383c40(0x1b1)][_0x383c40(0x193)]):_0x28d63d+':'+_0x5bbe8;}[_0x10d2c6(0x1c6)](_0x443b09,_0x4dfa8c){const _0x546fb0=_0x10d2c6,_0x3bc085=_0x443b09+':'+_0x4dfa8c;return[...this[_0x546fb0(0x1b6)][_0x546fb0(0x1c0)]()][_0x546fb0(0x1b3)](_0x56f094=>_0x56f094===_0x3bc085||_0x56f094[_0x546fb0(0x1cb)](_0x3bc085+':'));}[_0x10d2c6(0x1d3)](_0x5bfc53,_0xe222d8){const _0x4229b2=_0x10d2c6;return this[_0x4229b2(0x196)][_0x4229b2(0x1b8)][_0x4229b2(0x1d0)](_0x5bfc53)[_0x4229b2(0x1bc)](_0x3bbe18=>_0xe222d8===_0x4229b2(0x193)?_0x3bbe18[_0x4229b2(0x1b1)][_0x4229b2(0x193)]!==undefined:_0x3bbe18[_0x4229b2(0x1b1)][_0xe222d8]);}[_0x10d2c6(0x1be)](_0x131cc6){const _0x5d0638=_0x10d2c6;return[..._0x131cc6[_0x5d0638(0x1b1)][_0x5d0638(0x1bb)]?[_0x5d0638(0x1bb)]:[],..._0x131cc6[_0x5d0638(0x1b1)][_0x5d0638(0x193)]===undefined?[]:[_0x5d0638(0x193)],..._0x131cc6[_0x5d0638(0x1b1)][_0x5d0638(0x190)]?[_0x5d0638(0x190)]:[]];}[_0x10d2c6(0x1ab)](_0xb1879a,_0x477c3a,_0x27ec2e,_0x5b3099){const _0x621348=_0x10d2c6;if(!this[_0x621348(0x19f)](_0xb1879a['id'],_0x477c3a))return;this[_0x621348(0x196)][_0x621348(0x1cc)]({'type':_0x621348(0x19c),'workbenchConnectionId':_0x477c3a[_0x621348(0x1af)],'watchId':_0x477c3a[_0x621348(0x1a1)],'nodeGeneration':_0x477c3a[_0x621348(0x1d5)],'nodeId':this[_0x621348(0x196)][_0x621348(0x1a6)](),'workspaceId':_0xb1879a['id'],'topic':_0x27ec2e,'revision':this[_0x621348(0x196)][_0x621348(0x1b8)][_0x621348(0x18f)](this[_0x621348(0x1a2)](_0xb1879a['id'],_0x27ec2e,_0x477c3a)),'snapshotSequence':this[_0x621348(0x196)][_0x621348(0x1b8)][_0x621348(0x1c7)](),'expiresAt':_0x477c3a[_0x621348(0x1d9)],'payload':_0x5b3099});}[_0x10d2c6(0x1a8)](_0x287e56,_0x4a5a0a,_0x9d4a4){const _0xa4aa7a=_0x10d2c6;if(!this[_0xa4aa7a(0x19f)](_0x287e56,_0x4a5a0a))return;this[_0xa4aa7a(0x196)][_0xa4aa7a(0x1cc)]({'type':_0xa4aa7a(0x1ba),'workbenchConnectionId':_0x4a5a0a[_0xa4aa7a(0x1af)],'watchType':_0xa4aa7a(0x1c5),'watchId':_0x4a5a0a[_0xa4aa7a(0x1a1)],'nodeGeneration':_0x4a5a0a[_0xa4aa7a(0x1d5)],'nodeId':this[_0xa4aa7a(0x196)][_0xa4aa7a(0x1a6)](),'workspaceId':_0x287e56,'topic':_0x9d4a4,'code':_0xa4aa7a(0x198),'message':_0xa4aa7a(0x1bd)});}[_0x10d2c6(0x19f)](_0x36978d,_0x20f338){const _0x103b05=_0x10d2c6;return this[_0x103b05(0x196)][_0x103b05(0x1b8)][_0x103b05(0x19f)](_0x36978d,_0x20f338[_0x103b05(0x19a)]+':'+_0x20f338[_0x103b05(0x1af)],_0x20f338[_0x103b05(0x1a1)]);}}function _0x43f4(_0x2107da,_0x5ee3cd){_0x2107da=_0x2107da-(0x2bc+-0x1a*0x88+-0xb*-0x126);const _0x55a8b4=_0xbc37();let _0x2131d2=_0x55a8b4[_0x2107da];if(_0x43f4['gXVEHI']===undefined){var _0xc84eb9=function(_0x3c89cf){const _0x2255fc='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x48294f='',_0x20d9ad='';for(let _0x28d63d=0x1b64+0x1335+0x1*-0x2e99,_0x5bbe8,_0x45f1ba,_0x443b09=-0x1*-0x2082+-0x736+-0x194c;_0x45f1ba=_0x3c89cf['charAt'](_0x443b09++);~_0x45f1ba&&(_0x5bbe8=_0x28d63d%(0x2413*0x1+0x1f01+-0x4310)?_0x5bbe8*(-0xaa5+-0x257*-0x1+0x2*0x447)+_0x45f1ba:_0x45f1ba,_0x28d63d++%(0xe*-0x42+-0xe*0x3b+0x6da))?_0x48294f+=String['fromCharCode'](0x2e3*-0x8+-0x1d88+0x359f&_0x5bbe8>>(-(-0xe11+-0xf47+-0xd*-0x242)*_0x28d63d&0x347+0x229+-0x56a)):0x1*0x1453+0x12e*0x19+-0x31d1){_0x45f1ba=_0x2255fc['indexOf'](_0x45f1ba);}for(let _0x4dfa8c=-0x1368+0x3f*-0x8e+0x1*0x365a,_0x3bc085=_0x48294f['length'];_0x4dfa8c<_0x3bc085;_0x4dfa8c++){_0x20d9ad+='%'+('00'+_0x48294f['charCodeAt'](_0x4dfa8c)['toString'](0x1b*0x13a+-0x2*-0xcbe+-0x3b*0xfe))['slice'](-(-0x59*-0x42+-0x1*-0x167f+0x1*-0x2d6f));}return decodeURIComponent(_0x20d9ad);};_0x43f4['PwKytv']=_0xc84eb9,_0x43f4['psbSPD']={},_0x43f4['gXVEHI']=!![];}const _0x8f9545=_0x55a8b4[0x198+0x19b2+-0xda5*0x2];_0x43f4['csnVNc']!==_0x8f9545&&(_0x43f4['psbSPD']={},_0x43f4['csnVNc']=_0x8f9545);const _0x583896=_0x43f4['psbSPD'][_0x2107da];return _0x583896===undefined?(_0x2131d2=_0x43f4['PwKytv'](_0x2131d2),_0x43f4['psbSPD'][_0x2107da]=_0x2131d2):_0x2131d2=_0x583896,_0x2131d2;}function _0xbc37(){const _0x3d4d75=['y2HHBMDLza','ywrK','BgvUz3rO','ywn0AxzLv2f0y2HLCW','r0Lux1DpuKTtuefdrq','ywXS','C3vIC2nYAwjLCNm','ywn0AxzLv29YA3nWywnLswrZ','BM9KzuDLBMvYyxrPB24','CMvXDwLYzvDVCMTZCgfJzq','mtG3ndu1nuL5vefJva','zMLSzxnszwzYzxnOvgLTzxi','zxHWAxjLC0f0','BwfW','C2LNBMf0DxjLCW','BMv4DfjLDMLZAw9U','y2HHBMDLCW','CMvZB2X2zq','DgHLBG','zMLSzxm','zw5ZDxjLrMLSzxnszwzYzxnOvgLTzxi','Aw52ywXPzgf0zq','B3b0Aw9UCW','CMvMCMvZAa','v09ss1nqqunfx1Dbvenix1noqvbtse9ux0zbsuXfra','mte0otm1mvnpr0vgtq','C2vZC2LVBKHHC2G','CMvHza','D2f0y2GUD29YA3nWywnLlNnUyxbZAg90','BgLZDfnLC3nPB25Z','mtmWmtCXmMLoA295uG','Bwf0y2HLCW','DMfSDwvZ','D2f0y2Hjza','DMLLD0TLEq','y2f0y2G','odLfC2rhzuG','zgvSzxrL','BM9KzuLK','mtqXngz1r010va','zMfPBa','ndu4mZG1nMXcAujyrW','C2v0','zgvSAxzLCG','y3vYCMvUDa','C3rYAw5NAwz5','ndeWmdG4zMfHChLl','D29YA2jLBMnOq29UBMvJDgLVBKLK','y2XLyxi','Dg9WAwnZ','Dw5Yzwy','C29Tzq','nZyZmtm3vLPgBxze','zMLUywXSEq','CMvHzhm','oMzPBgvZoG','D2f0y2G','Aw5PDgLHBa','D2f0y2GUzMfPBgvK','C2vZC2LVBNm','zMLSDgvY','v29YA3nWywnLihDHDgnOihnUyxbZAg90igzHAwXLzc4','C3vIC2nYAwjLzfrVCgLJCW','BgLZDa','A2v5CW','zMLSzxnszwzYzxnOsw50zxj2ywXnCW','zw5ZDxjLu25HChnOB3q','A2LUza','CMvMCMvZAgvZ','D29YA3nWywnL','CMvHzefJDgL2zq','BMv4DfnUyxbZAg90u2vXDwvUy2u','y2XLyxjbBgW','zgLYDhK','z2v0','C3rHCNrZv2L0Aa','zw1PDfDHDgnOrxzLBNq'];_0xbc37=function(){return _0x3d4d75;};return _0xbc37();}function signature(_0xc6d820){const _0x41b8af=_0x10d2c6;return JSON[_0x41b8af(0x1ad)](_0xc6d820)??String(_0xc6d820);}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
(function(_0x5aa623,_0x239cd9){const _0x3bf32b=_0x4c01,_0x4ba33f=_0x5aa623();while(!![]){try{const _0x49411f=parseInt(_0x3bf32b(0xb0))/(0x5*0x63a+-0xb9e*-0x1+-0x2abf)*(parseInt(_0x3bf32b(0x10e))/(-0x24ff+0x123f+-0x2ae*-0x7))+parseInt(_0x3bf32b(0xce))/(-0x5c7*-0x3+-0x16b6+0x564)*(-parseInt(_0x3bf32b(0xa8))/(0x7b5+0x1a2f*0x1+0x4*-0x878))+parseInt(_0x3bf32b(0xfe))/(-0x37*-0x7c+0xd61+-0x2800)+parseInt(_0x3bf32b(0x101))/(0x1fbb+0x1*0x12b3+-0x4*0xc9a)+-parseInt(_0x3bf32b(0x102))/(-0x391+-0x76*0x43+0x227a)+-parseInt(_0x3bf32b(0xf5))/(-0x19f9+-0x20a1+0x3aa2)+-parseInt(_0x3bf32b(0x8c))/(0x1*0x7c4+-0x317*-0x2+-0xde9);if(_0x49411f===_0x239cd9)break;else _0x4ba33f['push'](_0x4ba33f['shift']());}catch(_0x3b4971){_0x4ba33f['push'](_0x4ba33f['shift']());}}}(_0x4093,0x3be*-0x301+0x1*-0xc8803+0x20e59f));function _0x4093(){const _0x104be5=['CxvLC3rPB24','mZKZDu5MquLM','C2HHmJu2','CgXHDgzVCM0','zMXHDe1HCa','ChvZAa','ywjZ','yxnZAxn0yw50x21LC3nHz2u','CMfJzq','DhvYBNm','C3rHCNrZv2L0Aa','A2LUza','q09nueXfveve','Dhj1BMnHDgvK','D2LUzg93uMvHzeXPBwL0','q09ervHFveHsrufex0nxrf9jtLzbteLe','C3vIqwDLBNq','C29YDa','oM5HDgL2ztO','BgfZDefJDgL2Axr5qxq','C291CMnLrxzLBNruExbL','DxbKyxrL','ChjLDMLLDW','BwfW','Aw5WDxruCNvUy2f0zwq','C3rYAw5N','y291BNq','Bwf4vg9Rzw5Z','zxjYB3i','BMf0AxzLswq','Aw5WDxq','ntfxvu14EvO','Dg9vChbLCKnHC2u','DgvZDa','Aw5qCM9NCMvZCW','CNvUBMvY','C2vJDgLVBNm','BwfYA2rVD24','Aw1Hz2vbDhrHy2HTzw50CW','u0HpuLrFvevyva','C291CMnLs2LUza','BMf0AxzLlwzPBgu','yxr0ywnOBwvUDhm','zNjVBq','zMLSzufUy2HVCG','y29TCgXLDgvKqxq','y2HHCMfJDgvYCW','qxnRvxnLCLf1zxn0Aw9U','zw50CNK','y2XHDwrLlwnVzgu','C3rHDhvZ','AxnbCNjHEq','Aw5WDxrtDw1Tyxj5','zgf0yq','CM9Szq','C3rHCNrLzef0','zMfPBgvK','u1vdq0vfreve','CxvLC3rPB25Z','BMfTzq','AxntAwrLy2HHAw4','DhjPBq','B3v0Chv0u3vTBwfYEq','DgL0Bgu','x0Lex01ju1njtKC','D2LUzg93rw5K','Dg9tDhjPBMC','DgHYzwfK','CNvUswq','Dg9mB3DLCKnHC2u','nde3mty4ohvKB25hza','DxnLCL9PBNb1Df9Yzxf1zxn0','CgXHBG','rvHurvjoquXFqunusvzf','Bw9KzwW','D2LUmZi','vvnfuG','CMvHC29UAw5Nx3n1Bw1HCNK','BwvZC2fNzq','ndy1ndyWnxDztLHfrW','C3rYAw5NAwz5','yMfZzty0DxjS','mti5nZa1mfviDufXvG','mZG4ndi1oe1oCLn0sa','BM90tg9HzgvK','y3vYC29YuMvZzxq','Dg9VBe5HBwu','Dg9VBf9JywXS','phbYB3bVC2vKx3bSyw4+','qundrvburuq','y3jLyxrLzef0','BgvUz3rO','Dw5RBM93BG','BxvSDgLtzwXLy3q','y3vYC29Y','ndy3oe9owvzhsG','zMLUzeXHC3q','tvvmveLFu0vmrunu','B3v0Chv0vhj1BMnHDgvK','CMvWBgfJzq','C2XPy2u','C2vZC2LVBKLK','ywn0AxzL','BMf0AxzLoG','C3vTBwfYEq','y2XHDwrLlxf1zxn0Aw9Ulq','surmrq','yw5JAg9YqNL0zxm','rKfjteve','AwrSzq','zw50CMLLCW','C3vIywDLBNq','C2v0','BwLU','zgLZDgfUy2u','C291CMnL','mteYoti5m3jqAMfJvG','zMLSztO','Dgv4Da','DxnLCL9TzxnZywDL','Dg9VBfvZzuLK','DMfSDwvZ','zgvZy3jPChrPB24','B3b0Aw9UCW','BgLTAxq','DxnLzfrVA2vUCW','D2LUzg93u3rHCNq','B2jQzwn0','oML0zw06','Dw5Yzwy','zMLSDgvY','AxrLBxm','C29Tzq','C25HChnOB3rfBMq','ve9ptf9fwevdvvrjt05FrKfjteve','u0Lor0Xfx1nftevdva','Bwf4','y3DK','z2v0','y29KzxG','y2XPzw50twvZC2fNzuLK','CMvKDwnL','zgLNzxn0','Cgf5Bg9Hza','nJi3mdHMwuvqtMu','BgfIzwW','zMLUza','AxrLBs0','vu5bvKfjtefcteu','DhLWzq','q09ervHF'];_0x4093=function(){return _0x104be5;};return _0x4093();}import{createHash}from'node:crypto';import{fileURLToPath}from'node:url';import{stripClaudePlanTag}from'../runner-command-engine.js';import{stripMissionStartPrompt}from'../service/mission-runtime.js';import{parseCodexComposerImageMarkers}from'../runner/codex/composer-image-markers.js';import{normalizeCodexTool}from'../runner/codex/tool-normalizer.js';import{normalizeClaudeTool}from'../runner/claude/tool-normalizer.js';import{compactRunnerText,isPlainRecord,nativePageEnd}from'./node-operation-parsers.js';export function extractId(_0x1c0c39,_0x5d722a){const _0x5e601f=_0x4c01;if(typeof _0x1c0c39===_0x5e601f(0x97)&&_0x1c0c39!==null&&_0x5d722a in _0x1c0c39&&typeof _0x1c0c39[_0x5d722a]===_0x5e601f(0x97)&&_0x1c0c39[_0x5d722a]!==null&&typeof _0x1c0c39[_0x5d722a]['id']===_0x5e601f(0xc8))return _0x1c0c39[_0x5d722a]['id'];throw new Error(_0x5e601f(0xae)+_0x5d722a[_0x5e601f(0xcf)]()+_0x5e601f(0xef));}export async function settleWithin(_0x4fdd95,_0x1c9cae){const _0x5d0cc4=_0x4c01;let _0x1e3755;try{return await Promise[_0x5d0cc4(0xb7)]([_0x4fdd95,new Promise(_0x2b9cfa=>{const _0x26b465=_0x5d0cc4;_0x1e3755=setTimeout(()=>_0x2b9cfa(undefined),_0x1c9cae),_0x1e3755[_0x26b465(0x99)]();})]);}finally{if(_0x1e3755!==undefined)clearTimeout(_0x1e3755);}}export function extractCodexThreads(_0x184f49){const _0xd04076=_0x4c01;if(typeof _0x184f49!==_0xd04076(0x97)||_0x184f49===null||!(_0xd04076(0xe4)in _0x184f49))return[];const _0x221039=_0x184f49[_0xd04076(0xe4)];if(!Array[_0xd04076(0xe2)](_0x221039))return[];return _0x221039[_0xd04076(0xb3)](_0x1a8049=>{const _0x54e330=_0xd04076;if(typeof _0x1a8049!==_0x54e330(0x97)||_0x1a8049===null)return[];const _0x293a8e=_0x1a8049;if(typeof _0x293a8e['id']!==_0x54e330(0xc8))return[];const _0x42525a=typeof _0x293a8e[_0x54e330(0xd7)]===_0x54e330(0xc8)?_0x293a8e[_0x54e330(0xd7)]:typeof _0x293a8e[_0x54e330(0x8b)]===_0x54e330(0xc8)?_0x293a8e[_0x54e330(0x8b)]:typeof _0x293a8e[_0x54e330(0x8b)]===_0x54e330(0x97)&&_0x293a8e[_0x54e330(0x8b)]!==null&&typeof _0x293a8e[_0x54e330(0x8b)][_0x54e330(0xba)]===_0x54e330(0xc8)?_0x293a8e[_0x54e330(0x8b)][_0x54e330(0xba)]:undefined,_0x55d501=isPlainRecord(_0x293a8e[_0x54e330(0x8b)])?_0x293a8e[_0x54e330(0x8b)]:undefined,_0x156e51=_0x42525a===_0x54e330(0x87)||_0x55d501?.[_0x54e330(0xba)]===_0x54e330(0x87)||isPlainRecord(_0x55d501?.[_0x54e330(0x87)])||isPlainRecord(_0x55d501?.[_0x54e330(0xbf)]),_0x4732e0=typeof _0x293a8e[_0x54e330(0xea)]===_0x54e330(0xc8)&&_0x293a8e[_0x54e330(0xea)][_0x54e330(0xec)]()[_0x54e330(0x10a)]>0xe8f+0x2*0x25+-0xed9?_0x293a8e[_0x54e330(0xea)][_0x54e330(0xec)]():typeof _0x293a8e[_0x54e330(0xc5)]===_0x54e330(0xc8)&&_0x293a8e[_0x54e330(0xc5)][_0x54e330(0xec)]()[_0x54e330(0x10a)]>-0x1*0x1052+0x163c+-0x5ea?_0x293a8e[_0x54e330(0xc5)][_0x54e330(0xec)]():undefined;return[{'id':_0x293a8e['id'],'source':_0x42525a,'derived':_0x156e51,'cwd':_0x293a8e[_0x54e330(0xa1)],'title':_0x4732e0}];});}export function codexThreadActivity(_0x2347de){const _0x22b608=_0x4c01;if(!isPlainRecord(_0x2347de)||!isPlainRecord(_0x2347de[_0x22b608(0xf2)]))return _0x22b608(0xac);const _0x1b8d76=_0x2347de[_0x22b608(0xf2)][_0x22b608(0xe1)];if(!isPlainRecord(_0x1b8d76)||typeof _0x1b8d76[_0x22b608(0xad)]!==_0x22b608(0xc8))return _0x22b608(0xac);if(_0x1b8d76[_0x22b608(0xad)]===_0x22b608(0x7e))return _0x22b608(0xf8);if(_0x1b8d76[_0x22b608(0xad)]===_0x22b608(0x85)||_0x1b8d76[_0x22b608(0xad)]===_0x22b608(0x103))return _0x22b608(0x82);return _0x22b608(0xac);}export function codexActiveTurnId(_0x558632){const _0x1ca7ee=_0x4c01;if(!isPlainRecord(_0x558632)||!isPlainRecord(_0x558632[_0x1ca7ee(0xf2)])||!Array[_0x1ca7ee(0xe2)](_0x558632[_0x1ca7ee(0xf2)][_0x1ca7ee(0xb8)]))return undefined;const _0x3aa77d=_0x558632[_0x1ca7ee(0xf2)][_0x1ca7ee(0xb8)][_0x1ca7ee(0xaa)](_0x133963=>isPlainRecord(_0x133963)&&typeof _0x133963['id']===_0x1ca7ee(0xc8)&&(_0x133963[_0x1ca7ee(0xe1)]===_0x1ca7ee(0x7e)||_0x133963[_0x1ca7ee(0xe1)]===_0x1ca7ee(0xd1)));return isPlainRecord(_0x3aa77d)&&typeof _0x3aa77d['id']===_0x1ca7ee(0xc8)?_0x3aa77d['id']:undefined;}export function codexThreadCwd(_0x3bbe46){const _0x5b4cbe=_0x4c01;if(typeof _0x3bbe46!==_0x5b4cbe(0xc8)||_0x3bbe46[_0x5b4cbe(0x10a)]===-0x2673+-0x1f1b+0x2*0x22c7)throw new Error(_0x5b4cbe(0xbe));if(!_0x3bbe46[_0x5b4cbe(0xb9)](_0x5b4cbe(0x8d)))return _0x3bbe46;try{return fileURLToPath(_0x3bbe46);}catch{throw new Error(_0x5b4cbe(0xbe));}}export function isWithinWorkspace(_0xdc0c5c,_0x554611){const _0x2cee2b=_0x4c01,_0x1485ef=_0x474e88=>{const _0x5887ae=_0x4c01,_0x14ab9b=_0x474e88[_0x5887ae(0x112)](/[\\/]+/g,'/')[_0x5887ae(0x112)](/\/$/,'');return process[_0x5887ae(0xb2)]===_0x5887ae(0xfa)?_0x14ab9b[_0x5887ae(0xf4)]():_0x14ab9b;},_0x4dabdd=_0x1485ef(_0xdc0c5c),_0x59ea42=_0x1485ef(_0x554611);if(_0x4dabdd===_0x59ea42)return!![];return _0x4dabdd[_0x2cee2b(0xb9)](_0x59ea42+'/');}export function claudeDiscoveredSession(_0xff0fba,_0x216e44){const _0x2300b9=_0x4c01;if(typeof _0xff0fba!==_0x2300b9(0x97)||_0xff0fba===null)return undefined;const _0x584bff=_0xff0fba;if(_0x584bff[_0x2300b9(0xeb)]===!![])return undefined;const _0x12c812=typeof _0x584bff[_0x2300b9(0x114)]===_0x2300b9(0xc8)?_0x584bff[_0x2300b9(0x114)]:typeof _0x584bff['id']===_0x2300b9(0xc8)?_0x584bff['id']:undefined;if(_0x12c812===undefined||_0x12c812[_0x2300b9(0x10a)]===0x4c1+-0x5e*0x1d+0x5e5)return undefined;const _0x5b0ee3=typeof _0x584bff[_0x2300b9(0x80)]===_0x2300b9(0xc8)?_0x584bff[_0x2300b9(0x80)]:typeof _0x584bff[_0x2300b9(0xee)]===_0x2300b9(0xc8)?_0x584bff[_0x2300b9(0xee)]:undefined,_0x101dfc=typeof _0x584bff[_0x2300b9(0xa1)]===_0x2300b9(0xc8)&&_0x584bff[_0x2300b9(0xa1)][_0x2300b9(0x10a)]>-0x822+0x10d6+-0x2*0x45a?_0x584bff[_0x2300b9(0xa1)]:_0x216e44;return{'externalSessionId':_0x12c812,'cwd':_0x101dfc,..._0x5b0ee3===undefined?{}:{'title':_0x5b0ee3[_0x2300b9(0x113)](-0x57*-0x3d+-0x1c67+0x7ac,0x1cac+0x819+0x40d*-0x9)}};}export function latestNativeActivity(_0x526495){const _0x3aa3d2=_0x4c01;return _0x526495[_0x3aa3d2(0xc2)];}export function sameContextUsage(_0x45b71d,_0x2ba375){const _0x7ec00=_0x4c01;return _0x45b71d[_0x7ec00(0xf9)]===_0x2ba375[_0x7ec00(0xf9)]&&_0x45b71d[_0x7ec00(0x95)]===_0x2ba375[_0x7ec00(0x95)]&&_0x45b71d[_0x7ec00(0xca)]===_0x2ba375[_0x7ec00(0xca)];}export function isNativeHistory(_0x167b89){const _0x11ff8a=_0x4c01;return typeof _0x167b89===_0x11ff8a(0x97)&&_0x167b89!==null&&Array[_0x11ff8a(0xe2)](_0x167b89[_0x11ff8a(0x9b)]);}export function deduplicateDirectSessions(_0x336a03){const _0xdbfd17=_0x4c01,_0x248e94=new Map();for(const _0x3049bc of _0x336a03){const _0x5d9421=_0x248e94[_0xdbfd17(0xa2)](_0x3049bc['id']);if(_0x5d9421===undefined||_0x5d9421[_0xdbfd17(0xc2)]<_0x3049bc[_0xdbfd17(0xc2)])_0x248e94[_0xdbfd17(0x88)](_0x3049bc['id'],_0x3049bc);}return[..._0x248e94[_0xdbfd17(0x91)]()][_0xdbfd17(0xc0)]((_0x42325e,_0x5a6ed2)=>_0x5a6ed2[_0xdbfd17(0xc2)]-_0x42325e[_0xdbfd17(0xc2)]);}export function nativeConversationPage(_0x3b6850,_0x555f37,_0x3dd6bf,_0x169a14=[],_0x29befc=()=>[]){const _0x356399=_0x4c01,_0x2e8428=Math[_0x356399(0x89)](Math[_0x356399(0xa0)](_0x3dd6bf[_0x356399(0x94)]??-0x13*0x6b+0xae*0x6+0x3fb,-0x1*-0x112d+-0x55*0x13+-0x3*0x39f),-0x2*0xa99+0x588+0x119e),_0x5838c4=_0x555f37[_0x356399(0x104)]===!![]?undefined:_0x3dd6bf[_0x356399(0x10d)],_0x337ad8=nativeTranscriptTurns(_0x555f37[_0x356399(0x9b)]),_0x18ae72=nativeTranscriptTurnIds(_0x3b6850['id'],_0x337ad8),_0x160218=nativePageEnd(_0x5838c4,_0x3b6850['id'],_0x337ad8[_0x356399(0x10a)]),_0x7cb43f=Math[_0x356399(0xa0)](0x114*0xd+0xd0b+-0x3*0x905,_0x160218-_0x2e8428),_0x194fda=_0x337ad8[_0x356399(0x113)](_0x7cb43f,_0x160218)[_0x356399(0xc6)]((_0x32398c,_0xf8546e)=>{const _0x3814bb=_0x356399,_0x1b7b38=_0x32398c[_0x3814bb(0xaa)](({entry:_0x29b959})=>_0x29b959[_0x3814bb(0xba)]===_0x3814bb(0xfd)&&_0x29b959[_0x3814bb(0xe5)]===_0x3814bb(0xfb))?.[_0x3814bb(0xdf)],_0x3715f2=_0x1b7b38?.[_0x3814bb(0xba)]===_0x3814bb(0xfd)?nativeUserClientMessageId(_0x3b6850[_0x3814bb(0xd2)],_0x1b7b38,_0x1b7b38[_0x3814bb(0x109)],_0x169a14):null,_0x41a501=typeof _0x3715f2===_0x3814bb(0xc8)?_0x169a14[_0x3814bb(0xaa)](_0x4a2ff0=>runtimeTurnClientMessageId(_0x4a2ff0)===_0x3715f2):undefined,_0x3ef09a=_0x41a501?.['id']??_0x18ae72[_0x7cb43f+_0xf8546e],_0x529788=nativeTranscriptItemIdentities(_0x32398c),_0x42e965=_0x32398c[_0x3814bb(0xc6)](({entry:_0x4ce8ec,index:_0x454293},_0x310b66)=>({...nativeTranscriptConversationItem(_0x3b6850,_0x4ce8ec,_0x454293,_0x529788[_0x310b66],_0x3ef09a,_0x169a14,_0x29befc),'runId':_0x41a501?.[_0x3814bb(0xf3)]??null})),_0x289b38=(_0x41a501?.[_0x3814bb(0x9b)]??[])[_0x3814bb(0x9a)](_0xf993b4=>_0xf993b4[_0x3814bb(0xba)]===_0x3814bb(0xcb))[_0x3814bb(0xc6)](_0x243314=>({..._0x243314,'turnId':_0x3ef09a,'runId':_0x41a501?.[_0x3814bb(0xf3)]??null})),_0x531db2=runtimeAssistantProjectionMoreComplete(_0x41a501,_0x42e965)?_0x41a501[_0x3814bb(0x9b)][_0x3814bb(0xc6)](_0x3236fd=>({..._0x3236fd,'turnId':_0x3ef09a,'runId':_0x41a501[_0x3814bb(0xf3)]})):[..._0x42e965,..._0x289b38[_0x3814bb(0x9a)](_0x1c02a0=>!_0x42e965[_0x3814bb(0x9c)](_0x3a25d7=>_0x3a25d7['id']===_0x1c02a0['id']))],_0x2118c6=_0x531db2[0x1129+0x1*0x1a6b+-0x2b94]?.[_0x3814bb(0xe6)]??null,_0x10855e=_0x531db2['at'](-(-0x23*-0xe3+0x1*0xc91+-0x1*0x2b99))?.[_0x3814bb(0xdc)]??_0x2118c6,_0x34ffda=lastNativeItemId(_0x32398c);return{'id':_0x3ef09a,'sessionId':_0x3b6850['id'],'runId':_0x41a501?.[_0x3814bb(0xf3)]??null,'userItemId':_0x531db2[_0x3814bb(0xaa)](_0x481801=>_0x481801[_0x3814bb(0xba)]===_0x3814bb(0x8f))?.['id']??null,'status':_0x289b38[_0x3814bb(0x10a)]>-0x3*0x853+-0x1df*0x7+-0x2612*-0x1?_0x3814bb(0x84):_0x3814bb(0xe8),'model':null,'effort':null,'access':null,..._0x34ffda===undefined||_0x3b6850[_0x3814bb(0xd2)]!==_0x3814bb(0xe0)?{}:{'rewind':{'before':lastNativeItemId(_0x337ad8[_0x7cb43f+_0xf8546e-(-0x2445+-0x25df+-0x3*-0x18b7)]??[])??null,'after':_0x34ffda}},'items':_0x531db2,'startedAt':_0x2118c6,'completedAt':_0x10855e};}),_0x84af40=_0x194fda,_0x49e661=_0x7cb43f,_0xd97d45={'sessionId':_0x3b6850['id'],..._0x555f37[_0x356399(0x9d)]===undefined?{}:{'snapshotEnd':_0x555f37[_0x356399(0x9d)]},..._0x555f37[_0x356399(0xf0)]===undefined?{}:{'nextEnd':_0x555f37[_0x356399(0xf0)]},..._0x555f37[_0x356399(0xdb)]===undefined?{}:{'fileAnchor':_0x555f37[_0x356399(0xdb)]},..._0x555f37[_0x356399(0x83)]===undefined?{}:{'anchorBytes':_0x555f37[_0x356399(0x83)]},'readLimit':_0x555f37[_0x356399(0xbd)]??_0x2e8428},_0x4e14bd=_0x555f37[_0x356399(0xbc)]===!![]&&_0x555f37[_0x356399(0x96)]!==undefined&&_0x555f37[_0x356399(0x9d)]!==undefined&&_0x555f37[_0x356399(0xdb)]!==undefined&&_0x555f37[_0x356399(0x83)]!==undefined?Buffer[_0x356399(0xda)](JSON[_0x356399(0xff)]({'sessionId':_0x3b6850['id'],'snapshotEnd':_0x555f37[_0x356399(0x9d)],'nextEnd':_0x555f37[_0x356399(0x96)],'fileAnchor':_0x555f37[_0x356399(0xdb)],'anchorBytes':_0x555f37[_0x356399(0x83)],'readLimit':_0x555f37[_0x356399(0xbd)]??_0x2e8428}))[_0x356399(0xf1)](_0x356399(0x100)):null;return{'turns':_0x84af40,'nextCursor':_0x49e661>0x3*0x709+0x16fc+-0x2c17?Buffer[_0x356399(0xda)](JSON[_0x356399(0xff)]({..._0xd97d45,'end':_0x49e661}))[_0x356399(0xf1)](_0x356399(0x100)):_0x4e14bd};}export function runtimeAssistantProjectionMoreComplete(_0x3f629a,_0x505def){const _0x2c0d5d=_0x4c01;if(_0x3f629a===undefined)return![];const _0x1ddff0=_0x24f5e3=>_0x24f5e3[_0x2c0d5d(0xa5)]((_0x196443,_0x26a942)=>{const _0x47aa26=_0x2c0d5d;if(_0x26a942[_0x47aa26(0xba)]!==_0x47aa26(0xb6)||!isPlainRecord(_0x26a942[_0x47aa26(0xa7)]))return _0x196443;return{'count':_0x196443[_0x47aa26(0xc9)]+(-0x4ed*-0x2+-0x1acc+0x10f3*0x1),'characters':_0x196443[_0x47aa26(0xdd)]+(typeof _0x26a942[_0x47aa26(0xa7)][_0x47aa26(0x8e)]===_0x47aa26(0xc8)?_0x26a942[_0x47aa26(0xa7)][_0x47aa26(0x8e)][_0x47aa26(0x10a)]:-0xf7a+0x18e8*-0x1+-0x6bb*-0x6)};},{'count':0x0,'characters':0x0}),_0x63a487=_0x1ddff0(_0x3f629a[_0x2c0d5d(0x9b)]),_0x47ec28=_0x1ddff0(_0x505def);return _0x63a487[_0x2c0d5d(0xc9)]>_0x47ec28[_0x2c0d5d(0xc9)]||_0x63a487[_0x2c0d5d(0xdd)]>_0x47ec28[_0x2c0d5d(0xdd)];}function runtimeTurnClientMessageId(_0x1bd680){const _0x32955f=_0x4c01,_0x5889f7=_0x1bd680[_0x32955f(0x9b)][_0x32955f(0xaa)](_0x2bef1=>_0x2bef1[_0x32955f(0xba)]===_0x32955f(0x8f));return isPlainRecord(_0x5889f7?.[_0x32955f(0xa7)])&&typeof _0x5889f7[_0x32955f(0xa7)][_0x32955f(0xa4)]===_0x32955f(0xc8)?_0x5889f7[_0x32955f(0xa7)][_0x32955f(0xa4)]:undefined;}function lastNativeItemId(_0x1ce41f){const _0x5b396f=_0x4c01;return _0x1ce41f[_0x5b396f(0x10f)](({entry:_0x1021ee})=>_0x1021ee[_0x5b396f(0xcc)]!==undefined)?.[_0x5b396f(0xdf)][_0x5b396f(0xcc)];}function nativeTranscriptTurnIds(_0x181730,_0x3e1b3f){const _0x1cb092=_0x4c01,_0x2b9e6a=new Map();return _0x3e1b3f[_0x1cb092(0xc6)](_0x12cdd5=>{const _0x528e6b=_0x1cb092,_0x25631d=_0x12cdd5[_0x528e6b(0xaa)](({entry:_0x5d80be})=>_0x5d80be[_0x528e6b(0xba)]===_0x528e6b(0xfd)&&_0x5d80be[_0x528e6b(0xe5)]===_0x528e6b(0xfb))?.[_0x528e6b(0xdf)],_0x4bc355=_0x25631d??_0x12cdd5[-0x1bfb+-0xef4+-0x2aef*-0x1]?.[_0x528e6b(0xdf)],_0x5f3a61=_0x4bc355?.[_0x528e6b(0xcc)]??nativeTranscriptItemFingerprint(_0x4bc355),_0x160c9e=_0x2b9e6a[_0x528e6b(0xa2)](_0x5f3a61)??0xc8c*-0x1+0x123f+-0x1*0x5b3;return _0x2b9e6a[_0x528e6b(0x88)](_0x5f3a61,_0x160c9e+(-0x3*0xa77+-0x222c+-0x4192*-0x1)),_0x181730+_0x528e6b(0xc1)+_0x5f3a61+(_0x160c9e===-0x3*-0x49d+0xc25+-0x19fc?'':':'+_0x160c9e);});}function _0x4c01(_0x38d898,_0x3c7666){_0x38d898=_0x38d898-(0x9d*0x6+-0x865+0x2b*0x1f);const _0x3c20c6=_0x4093();let _0x2db087=_0x3c20c6[_0x38d898];if(_0x4c01['kFuMPD']===undefined){var _0x1135e8=function(_0x1eb5f5){const _0x4bfdb0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x17781f='',_0x3209a8='';for(let _0x4ef97c=0x245c+0x1*0xec1+-0x331d,_0x36bda6,_0x17725c,_0x5d3c8=0x1889+0x108f+0x2*-0x148c;_0x17725c=_0x1eb5f5['charAt'](_0x5d3c8++);~_0x17725c&&(_0x36bda6=_0x4ef97c%(-0x335+-0x12fc+0x1635)?_0x36bda6*(0x2*-0x23f+-0x5*0x7cd+0x2bbf)+_0x17725c:_0x17725c,_0x4ef97c++%(0x10ee+-0x19bd+-0x8d3*-0x1))?_0x17781f+=String['fromCharCode'](-0x264d+-0x12ee*-0x2+-0x17*-0x10&_0x36bda6>>(-(0x2*-0xfdd+-0x206e+0x402a)*_0x4ef97c&0x1649+0x1*0x1ffa+-0x363d)):0x14d2+-0x1*-0x1db9+-0x39*0xe3){_0x17725c=_0x4bfdb0['indexOf'](_0x17725c);}for(let _0x27744=-0x1*-0x41b+-0x182c+0xb*0x1d3,_0x32187b=_0x17781f['length'];_0x27744<_0x32187b;_0x27744++){_0x3209a8+='%'+('00'+_0x17781f['charCodeAt'](_0x27744)['toString'](-0x12a8+0x2*-0xdc7+0x1723*0x2))['slice'](-(-0x1854+0x1271*0x1+0x5e5));}return decodeURIComponent(_0x3209a8);};_0x4c01['LxsWzz']=_0x1135e8,_0x4c01['UesBCZ']={},_0x4c01['kFuMPD']=!![];}const _0x1fb369=_0x3c20c6[0x1e7d+0x9*0x131+-0x19*0x1a6];_0x4c01['mkkyRv']!==_0x1fb369&&(_0x4c01['UesBCZ']={},_0x4c01['mkkyRv']=_0x1fb369);const _0x5b0f3d=_0x4c01['UesBCZ'][_0x38d898];return _0x5b0f3d===undefined?(_0x2db087=_0x4c01['LxsWzz'](_0x2db087),_0x4c01['UesBCZ'][_0x38d898]=_0x2db087):_0x2db087=_0x5b0f3d,_0x2db087;}function nativeTranscriptItemIdentities(_0x4baaa8){const _0x553d04=_0x4c01,_0xcbfc24=new Map();for(const {entry:_0xf16c4c}of _0x4baaa8)if(_0xf16c4c[_0x553d04(0xcc)]!==undefined)_0xcbfc24[_0x553d04(0x88)](_0xf16c4c[_0x553d04(0xcc)],(_0xcbfc24[_0x553d04(0xa2)](_0xf16c4c[_0x553d04(0xcc)])??0x48a*0x1+0x3a3*-0x4+0xa02)+(-0x18f4+-0x26a6+0x3f9b));const _0x154f2c=new Map();return _0x4baaa8[_0x553d04(0xc6)](({entry:_0x112b25})=>{const _0x28eabb=_0x553d04,_0xbf1b21=_0x112b25[_0x28eabb(0xcc)]!==undefined&&_0xcbfc24[_0x28eabb(0xa2)](_0x112b25[_0x28eabb(0xcc)])===0x1*-0x122c+0x2fe*-0x2+-0x1829*-0x1?_0x112b25[_0x28eabb(0xcc)]:''+(_0x112b25[_0x28eabb(0xcc)]===undefined?'':_0x112b25[_0x28eabb(0xcc)]+':')+nativeTranscriptItemFingerprint(_0x112b25),_0x4b4b3e=_0x154f2c[_0x28eabb(0xa2)](_0xbf1b21)??-0x1*-0xb3f+0x1683+-0x95*0x3a;return _0x154f2c[_0x28eabb(0x88)](_0xbf1b21,_0x4b4b3e+(-0xa*0xaa+0x26b3+-0x200e)),_0x4b4b3e===0x49d+0x577+-0xa14?_0xbf1b21:_0xbf1b21+':'+_0x4b4b3e;});}function nativeTranscriptItemFingerprint(_0x28ab63){const _0x94ee3=_0x4c01;return createHash(_0x94ee3(0xb1))[_0x94ee3(0xc4)](JSON[_0x94ee3(0xff)](_0x28ab63??null))[_0x94ee3(0xa6)](_0x94ee3(0x100))[_0x94ee3(0x113)](-0x201c+0xb*0x3d+0x1d7d,0xe2e+-0x173b+-0x925*-0x1);}function nativeTranscriptTurns(_0x56dfec){const _0x32162f=_0x4c01,_0x574c90=[];let _0xb14318=[];for(const [_0x3ac059,_0x153220]of _0x56dfec[_0x32162f(0x86)]()){_0x153220[_0x32162f(0xba)]===_0x32162f(0xfd)&&_0x153220[_0x32162f(0xe5)]===_0x32162f(0xfb)&&_0xb14318[_0x32162f(0x10a)]>-0x2212+-0x3*0xccd+0x4879&&(_0x574c90[_0x32162f(0xb4)](_0xb14318),_0xb14318=[]),_0xb14318[_0x32162f(0xb4)]({'entry':_0x153220,'index':_0x3ac059});}if(_0xb14318[_0x32162f(0x10a)]>0x10a*0x24+-0x6a*-0x4+-0x14*0x1f4)_0x574c90[_0x32162f(0xb4)](_0xb14318);return _0x574c90;}function nativeTranscriptConversationItem(_0x5edc40,_0x57d045,_0x4ce554,_0x48081c,_0x5acaa3,_0x5d8932,_0x39bd2c){const _0x171a7b=_0x4c01,_0x3a7087=_0x57d045[_0x171a7b(0x109)],_0x1f9a44=_0x57d045[_0x171a7b(0xba)]===_0x171a7b(0x106),_0x37dd4e=_0x57d045[_0x171a7b(0xba)]===_0x171a7b(0x10b),_0x44452e=_0x57d045[_0x171a7b(0xba)]===_0x171a7b(0xfc),_0x36ca30=_0x5edc40[_0x171a7b(0xd2)]===_0x171a7b(0xe0)&&_0x1f9a44?normalizeClaudeTool(_0x57d045[_0x171a7b(0x105)],_0x57d045[_0x171a7b(0xcd)],_0x57d045[_0x171a7b(0xed)],_0x57d045[_0x171a7b(0xe7)],_0x57d045[_0x171a7b(0xc7)]||_0x57d045[_0x171a7b(0x111)]):undefined,_0x5d04af=_0x5edc40[_0x171a7b(0xd2)]===_0x171a7b(0xa3)&&_0x1f9a44?normalizeCodexTool({'name':_0x57d045[_0x171a7b(0x105)],'namespace':_0x171a7b(0xa3),'rawInput':_0x57d045[_0x171a7b(0xcd)],'inputSummary':_0x57d045[_0x171a7b(0xe3)],'outputSummary':_0x57d045[_0x171a7b(0xed)],'truncated':_0x57d045[_0x171a7b(0xc7)]||_0x57d045[_0x171a7b(0x111)],..._0x57d045[_0x171a7b(0xd5)]===undefined?{}:{'attachments':_0x57d045[_0x171a7b(0xd5)]}}):undefined,_0x21d92f=_0x5edc40[_0x171a7b(0xd2)]===_0x171a7b(0xe0)&&_0x1f9a44&&_0x57d045[_0x171a7b(0x105)]===_0x171a7b(0xde)&&isPlainRecord(_0x57d045[_0x171a7b(0xcd)])?claudeUserInputQuestions(_0x57d045[_0x171a7b(0xcd)]):[],_0x50da96=_0x21d92f[_0x171a7b(0x10a)]>0xaae*-0x2+-0x19eb*-0x1+0x185*-0x3,_0xf9b8af=_0x57d045[_0x171a7b(0xba)]===_0x171a7b(0xfd)&&_0x57d045[_0x171a7b(0xe5)]===_0x171a7b(0xfb)?nativeUserClientMessageId(_0x5edc40[_0x171a7b(0xd2)],_0x57d045,_0x3a7087,_0x5d8932):null,_0x1e2cc8=_0x57d045[_0x171a7b(0xba)]===_0x171a7b(0xfd)?_0x57d045[_0x171a7b(0xe5)]===_0x171a7b(0xfb)?nativeUserMessageText(_0x5edc40[_0x171a7b(0xd2)],_0x57d045[_0x171a7b(0x8e)]):_0x57d045[_0x171a7b(0x8e)]:'',_0x35d8e2=_0xf9b8af===null?undefined:runtimeUserMessagePayload(_0xf9b8af,_0x5d8932),_0x4bd725=Array[_0x171a7b(0xe2)](_0x35d8e2?.[_0x171a7b(0xd9)])?_0x35d8e2[_0x171a7b(0xd9)]:_0x57d045[_0x171a7b(0xba)]===_0x171a7b(0xfd)&&_0x57d045[_0x171a7b(0xe5)]===_0x171a7b(0xfb)&&_0x57d045[_0x171a7b(0xd5)]!==undefined?_0x39bd2c(_0x57d045[_0x171a7b(0xd5)]):[],_0x163671=_0x57d045[_0x171a7b(0xba)]===_0x171a7b(0xfd)&&_0x57d045[_0x171a7b(0xe5)]!==_0x171a7b(0xfb)?claudePlanText(_0x1e2cc8):undefined,_0x3a7354={'id':_0x5acaa3+_0x171a7b(0x98)+_0x48081c,'sessionId':_0x5edc40['id'],'turnId':_0x5acaa3,'runId':null,'parentItemId':null,'sourceSequence':_0x4ce554,'revision':0x0,'kind':_0x50da96?_0x171a7b(0xf6):_0x44452e?_0x171a7b(0xfc):_0x1f9a44?_0x36ca30?.[_0x171a7b(0xba)]??_0x5d04af?.[_0x171a7b(0xba)]??_0x171a7b(0x106):_0x37dd4e?_0x171a7b(0x10b):_0x57d045[_0x171a7b(0xba)]===_0x171a7b(0xfd)&&_0x57d045[_0x171a7b(0xe5)]===_0x171a7b(0xfb)?_0x171a7b(0x8f):_0x163671!==undefined?_0x171a7b(0xf7):_0x171a7b(0xb6),'status':_0x171a7b(0xbb),'payload':_0x50da96?{'requestId':_0x171a7b(0x7f)+(_0x57d045[_0x171a7b(0xba)]===_0x171a7b(0x106)?_0x57d045[_0x171a7b(0x90)]:_0x171a7b(0xab)+_0x48081c),'questions':_0x21d92f}:_0x44452e?{'sections':_0x57d045[_0x171a7b(0xd3)]}:_0x1f9a44?{..._0x36ca30?.[_0x171a7b(0xa7)]??_0x5d04af?.[_0x171a7b(0xa7)]??{'namespace':_0x5edc40[_0x171a7b(0xd2)],'toolName':_0x57d045[_0x171a7b(0x105)],'title':_0x57d045[_0x171a7b(0x105)],'inputSummary':_0x57d045[_0x171a7b(0xe3)],'outputSummary':_0x57d045[_0x171a7b(0xed)],'progressLabel':null,'errorCode':_0x57d045[_0x171a7b(0xe7)]?_0x171a7b(0x9e):null,'truncated':_0x57d045[_0x171a7b(0xc7)]||_0x57d045[_0x171a7b(0x111)]},..._0x57d045[_0x171a7b(0xd5)]===undefined?{}:{'attachments':_0x39bd2c(_0x57d045[_0x171a7b(0xd5)])}}:_0x37dd4e?{'sourceEventType':_0x57d045[_0x171a7b(0xc3)],'label':_0x57d045[_0x171a7b(0xa9)]}:_0x57d045[_0x171a7b(0xba)]===_0x171a7b(0xfd)&&_0x57d045[_0x171a7b(0xe5)]===_0x171a7b(0xfb)?{'clientMessageId':_0xf9b8af,'text':_0x1e2cc8,'contexts':[],'delivery':_0x171a7b(0x108),..._0x4bd725[_0x171a7b(0x10a)]===0x1684+-0x7*-0x484+-0x3620?{}:{'attachments':_0x4bd725}}:_0x163671!==undefined?{'explanation':compactRunnerText(_0x163671,-0x8125+0x6f2d+-0xf6*-0x64),'steps':[]}:{'text':_0x1e2cc8,'format':_0x171a7b(0xd4),'source':_0x171a7b(0xd8)},'startedAt':_0x3a7087,'completedAt':_0x3a7087};return _0x3a7354;}export function nativeUserClientMessageId(_0x54d1b6,_0x14f1bd,_0x457b25,_0x4cb0e8){const _0x8951bf=_0x4c01,_0x38b129=[];for(const _0x2c8ed0 of _0x4cb0e8){const _0x1b1f4f=_0x2c8ed0[_0x8951bf(0x9b)][_0x8951bf(0xaa)](_0x5f3ad3=>_0x5f3ad3[_0x8951bf(0xba)]===_0x8951bf(0x8f));if(_0x1b1f4f===undefined||!isPlainRecord(_0x1b1f4f[_0x8951bf(0xa7)]))continue;const _0x51fbc1=_0x1b1f4f[_0x8951bf(0xa7)],_0x10dd18=typeof _0x51fbc1[_0x8951bf(0xa4)]===_0x8951bf(0xc8)?_0x51fbc1[_0x8951bf(0xa4)]:null;if(_0x10dd18===null||_0x51fbc1[_0x8951bf(0x8e)]!==nativeUserMessageText(_0x54d1b6,_0x14f1bd[_0x8951bf(0x8e)]))continue;const _0x4e70cb=_0x1b1f4f[_0x8951bf(0xe6)]??_0x2c8ed0[_0x8951bf(0xe6)];_0x38b129[_0x8951bf(0xb4)]({'clientMessageId':_0x10dd18,'createdAt':_0x4e70cb??null});}if(_0x457b25===null)return _0x38b129[_0x8951bf(0x10a)]===-0x1*-0x2084+-0x10ac+-0xfd7?_0x38b129[0x2*-0x2a4+0x3*0x1d6+-0x3a][_0x8951bf(0xa4)]:null;const _0x5ac8ac=_0x38b129[_0x8951bf(0x9a)](_0x29e5ca=>_0x29e5ca[_0x8951bf(0x109)]!==null)[_0x8951bf(0xc6)](_0x32dfaf=>({..._0x32dfaf,'distance':Math[_0x8951bf(0xb5)](_0x457b25-_0x32dfaf[_0x8951bf(0x109)])}))[_0x8951bf(0x9a)](_0x5b348d=>_0x5b348d[_0x8951bf(0x8a)]<=-0xe51b+-0x327e+0x201f9)[_0x8951bf(0xc0)]((_0x1b63be,_0x579da1)=>_0x1b63be[_0x8951bf(0x8a)]-_0x579da1[_0x8951bf(0x8a)]);return _0x5ac8ac[0x18e3+0xf78+0x1*-0x285b]?.[_0x8951bf(0xa4)]??null;}function runtimeUserMessagePayload(_0x4d737c,_0x2d7998){const _0x2ade7d=_0x4c01;for(const _0x130393 of _0x2d7998){const _0x3f627c=_0x130393[_0x2ade7d(0x9b)][_0x2ade7d(0xaa)](_0x5744f3=>_0x5744f3[_0x2ade7d(0xba)]===_0x2ade7d(0x8f));if(!isPlainRecord(_0x3f627c?.[_0x2ade7d(0xa7)])||_0x3f627c[_0x2ade7d(0xa7)][_0x2ade7d(0xa4)]!==_0x4d737c)continue;return _0x3f627c[_0x2ade7d(0xa7)];}return undefined;}function nativeUserMessageText(_0x17134a,_0x351453){const _0xd917e9=_0x4c01,_0x2ec4e1=stripMissionStartPrompt(_0x351453),_0x1af817=_0x17134a===_0xd917e9(0xe0)?stripClaudePlanTag(_0x2ec4e1):_0x2ec4e1;if(_0x17134a!==_0xd917e9(0xa3))return _0x1af817;return parseCodexComposerImageMarkers(_0x1af817)[_0xd917e9(0x8e)];}export function claudePlanText(_0x296af6){const _0x106f10=_0x4c01,_0x5f53b4=_0x296af6[_0x106f10(0xec)]();if(!_0x5f53b4[_0x106f10(0xb9)](_0x106f10(0x107))||!/<\/proposed_plan>\s*$/[_0x106f10(0xd0)](_0x5f53b4))return undefined;const _0x3f2895=_0x5f53b4[_0x106f10(0x113)](_0x106f10(0x107)[_0x106f10(0x10a)])[_0x106f10(0x112)](/<\/proposed_plan>\s*$/,'')[_0x106f10(0xec)]();return _0x3f2895[_0x106f10(0x10a)]>-0x12d2+0x22bc+-0xfea?_0x3f2895:undefined;}export function claudeUserInputQuestions(_0x34aa7e){const _0x395157=_0x4c01;if(!Array[_0x395157(0xe2)](_0x34aa7e[_0x395157(0xe9)])||_0x34aa7e[_0x395157(0xe9)][_0x395157(0x10a)]===0x182*0x1+-0x67*0x15+-0x1*-0x6f1||_0x34aa7e[_0x395157(0xe9)][_0x395157(0x10a)]>-0x1684+0x560+-0x44a*-0x4)return[];const _0x97049=_0x34aa7e[_0x395157(0xe9)][_0x395157(0xc6)]((_0x423bf4,_0xa12a10)=>{const _0x1c208e=_0x395157;if(!isPlainRecord(_0x423bf4)||typeof _0x423bf4[_0x1c208e(0xaf)]!==_0x1c208e(0xc8))return undefined;const _0x44827e=Array[_0x1c208e(0xe2)](_0x423bf4[_0x1c208e(0x93)])?_0x423bf4[_0x1c208e(0x93)][_0x1c208e(0xb3)](_0x3a523b=>{const _0x337441=_0x1c208e;if(!isPlainRecord(_0x3a523b)||typeof _0x3a523b[_0x337441(0xa9)]!==_0x337441(0xc8))return[];const _0x4758e0=compactRunnerText(_0x3a523b[_0x337441(0xa9)],-0x886+-0x235f+-0x1*-0x2dd9);return _0x4758e0[_0x337441(0x10a)]===0xffb+0xf45+-0x1f40?[]:[{'value':_0x4758e0,'label':_0x4758e0,'description':typeof _0x3a523b[_0x337441(0x92)]===_0x337441(0xc8)?compactRunnerText(_0x3a523b[_0x337441(0x92)],0x1d2e+0x1*-0x14d5+-0x471):null}];}):[],_0x267d04=_0x423bf4[_0x1c208e(0x10c)]===!![];return{'id':_0x1c208e(0x81)+_0xa12a10,'prompt':compactRunnerText(_0x423bf4[_0x1c208e(0xaf)],0x17+-0xf8a+-0x1*-0x22fb),'input':_0x44827e[_0x1c208e(0x10a)]===0x133*0x2+0x14d8+-0x173e?_0x1c208e(0xd6):_0x267d04?_0x1c208e(0x110):_0x1c208e(0x9f),'options':_0x44827e,'allowOther':!![],'multiSelect':_0x267d04};});return _0x97049[_0x395157(0x9c)](_0x50dc70=>_0x50dc70===undefined)?[]:_0x97049;}
|
|
2
|
+
(function(_0x186c3a,_0xf0c6fb){const _0x49b519=_0x43ae,_0x4e871c=_0x186c3a();while(!![]){try{const _0x1963fd=-parseInt(_0x49b519(0xbe))/(0x1*0x1111+0x607+-0x1*0x1717)+parseInt(_0x49b519(0x110))/(-0x2*-0xefb+-0x2ff+-0x1af5)*(-parseInt(_0x49b519(0xcc))/(0xaf9+-0x682+-0x474))+-parseInt(_0x49b519(0x100))/(0xc1*-0x31+-0x3*0x259+0x2c00)*(parseInt(_0x49b519(0xc1))/(-0x2672+-0x2119+0x4790))+parseInt(_0x49b519(0xa9))/(-0x1691+0x4*0x2bf+0xb9b*0x1)*(-parseInt(_0x49b519(0x131))/(-0x1793+0xe5*-0x5+-0x1*-0x1c13))+-parseInt(_0x49b519(0xe4))/(-0x29*-0x3+0x4dd*-0x1+0x46a)+-parseInt(_0x49b519(0xb2))/(0x22ba+0x87*0x2a+-0x38d7)*(-parseInt(_0x49b519(0x127))/(-0x3f0+-0x1ada+0x1ed4))+parseInt(_0x49b519(0x118))/(0x4f*0x13+-0x183c+0x126a);if(_0x1963fd===_0xf0c6fb)break;else _0x4e871c['push'](_0x4e871c['shift']());}catch(_0x26838d){_0x4e871c['push'](_0x4e871c['shift']());}}}(_0xb419,-0xcb9*0x89+-0x98c41+0x15f87d));import{createHash}from'node:crypto';import{fileURLToPath}from'node:url';import{stripClaudePlanTag}from'../runner-command-engine.js';import{stripMissionStartPrompt}from'../service/mission-runtime.js';import{parseCodexComposerImageMarkers}from'../runner/codex/composer-image-markers.js';import{normalizeCodexTool}from'../runner/codex/tool-normalizer.js';import{normalizeClaudeTool}from'../runner/claude/tool-normalizer.js';import{compactRunnerText,isPlainRecord,nativePageEnd}from'./node-operation-parsers.js';export function extractId(_0x4f64e3,_0xa37386){const _0x57840d=_0x43ae;if(typeof _0x4f64e3===_0x57840d(0x108)&&_0x4f64e3!==null&&_0xa37386 in _0x4f64e3&&typeof _0x4f64e3[_0xa37386]===_0x57840d(0x108)&&_0x4f64e3[_0xa37386]!==null&&typeof _0x4f64e3[_0xa37386]['id']===_0x57840d(0xe3))return _0x4f64e3[_0xa37386]['id'];throw new Error(_0x57840d(0xa2)+_0xa37386[_0x57840d(0x10a)]()+_0x57840d(0xa3));}export async function settleWithin(_0x593f4c,_0x6f2180){const _0x1488cf=_0x43ae;let _0x4b20bd;try{return await Promise[_0x1488cf(0xcb)]([_0x593f4c,new Promise(_0x1987dc=>{const _0x287aac=_0x1488cf;_0x4b20bd=setTimeout(()=>_0x1987dc(undefined),_0x6f2180),_0x4b20bd[_0x287aac(0xf6)]();})]);}finally{if(_0x4b20bd!==undefined)clearTimeout(_0x4b20bd);}}export function extractCodexThreads(_0x30ddd8){const _0x323084=_0x43ae;if(typeof _0x30ddd8!==_0x323084(0x108)||_0x30ddd8===null||!(_0x323084(0xd4)in _0x30ddd8))return[];const _0x36e8af=_0x30ddd8[_0x323084(0xd4)];if(!Array[_0x323084(0x119)](_0x36e8af))return[];return _0x36e8af[_0x323084(0xf9)](_0x172eb7=>{const _0x19b69c=_0x323084;if(typeof _0x172eb7!==_0x19b69c(0x108)||_0x172eb7===null)return[];const _0x17f92f=_0x172eb7;if(typeof _0x17f92f['id']!==_0x19b69c(0xe3))return[];const _0x396105=typeof _0x17f92f[_0x19b69c(0xf4)]===_0x19b69c(0xe3)?_0x17f92f[_0x19b69c(0xf4)]:typeof _0x17f92f[_0x19b69c(0xaf)]===_0x19b69c(0xe3)?_0x17f92f[_0x19b69c(0xaf)]:typeof _0x17f92f[_0x19b69c(0xaf)]===_0x19b69c(0x108)&&_0x17f92f[_0x19b69c(0xaf)]!==null&&typeof _0x17f92f[_0x19b69c(0xaf)][_0x19b69c(0xf1)]===_0x19b69c(0xe3)?_0x17f92f[_0x19b69c(0xaf)][_0x19b69c(0xf1)]:undefined,_0x16fc60=isPlainRecord(_0x17f92f[_0x19b69c(0xaf)])?_0x17f92f[_0x19b69c(0xaf)]:undefined,_0x23afbc=_0x396105===_0x19b69c(0x122)||_0x16fc60?.[_0x19b69c(0xf1)]===_0x19b69c(0x122)||isPlainRecord(_0x16fc60?.[_0x19b69c(0x122)])||isPlainRecord(_0x16fc60?.[_0x19b69c(0xc3)]),_0x7d1ff0=typeof _0x17f92f[_0x19b69c(0xcf)]===_0x19b69c(0xe3)&&_0x17f92f[_0x19b69c(0xcf)][_0x19b69c(0xa7)]()[_0x19b69c(0xc7)]>0x3ae+-0x1a77*-0x1+0x1e25*-0x1?_0x17f92f[_0x19b69c(0xcf)][_0x19b69c(0xa7)]():typeof _0x17f92f[_0x19b69c(0xd3)]===_0x19b69c(0xe3)&&_0x17f92f[_0x19b69c(0xd3)][_0x19b69c(0xa7)]()[_0x19b69c(0xc7)]>0x3f7*0x5+-0x71a+-0xcb9*0x1?_0x17f92f[_0x19b69c(0xd3)][_0x19b69c(0xa7)]():undefined;return[{'id':_0x17f92f['id'],'source':_0x396105,'derived':_0x23afbc,'cwd':_0x17f92f[_0x19b69c(0xd2)],'title':_0x7d1ff0}];});}export function codexThreadActivity(_0x2d9d18){const _0xd32624=_0x43ae;if(!isPlainRecord(_0x2d9d18)||!isPlainRecord(_0x2d9d18[_0xd32624(0x114)]))return _0xd32624(0xc0);const _0x2b88e2=_0x2d9d18[_0xd32624(0x114)][_0xd32624(0xfe)];if(!isPlainRecord(_0x2b88e2)||typeof _0x2b88e2[_0xd32624(0x120)]!==_0xd32624(0xe3))return _0xd32624(0xc0);if(_0x2b88e2[_0xd32624(0x120)]===_0xd32624(0xf8))return _0xd32624(0xd5);if(_0x2b88e2[_0xd32624(0x120)]===_0xd32624(0xe2)||_0x2b88e2[_0xd32624(0x120)]===_0xd32624(0x135))return _0xd32624(0x11f);return _0xd32624(0xc0);}export function codexActiveTurnId(_0x28c626){const _0x30ffe4=_0x43ae;if(!isPlainRecord(_0x28c626)||!isPlainRecord(_0x28c626[_0x30ffe4(0x114)])||!Array[_0x30ffe4(0x119)](_0x28c626[_0x30ffe4(0x114)][_0x30ffe4(0xc2)]))return undefined;const _0x339f20=_0x28c626[_0x30ffe4(0x114)][_0x30ffe4(0xc2)][_0x30ffe4(0x101)](_0x5f5783=>isPlainRecord(_0x5f5783)&&typeof _0x5f5783['id']===_0x30ffe4(0xe3)&&(_0x5f5783[_0x30ffe4(0xfe)]===_0x30ffe4(0xf8)||_0x5f5783[_0x30ffe4(0xfe)]===_0x30ffe4(0xde)));return isPlainRecord(_0x339f20)&&typeof _0x339f20['id']===_0x30ffe4(0xe3)?_0x339f20['id']:undefined;}export function codexThreadCwd(_0x14a040){const _0x2c2b35=_0x43ae;if(typeof _0x14a040!==_0x2c2b35(0xe3)||_0x14a040[_0x2c2b35(0xc7)]===-0x109*-0x1e+-0x1*-0x231a+-0x4228)throw new Error(_0x2c2b35(0x11d));if(!_0x14a040[_0x2c2b35(0xd6)](_0x2c2b35(0x105)))return _0x14a040;try{return fileURLToPath(_0x14a040);}catch{throw new Error(_0x2c2b35(0x11d));}}export function isWithinWorkspace(_0xc36245,_0x151334){const _0x5b59ec=_0x43ae,_0x172094=_0xc7813a=>{const _0x53a03b=_0x43ae,_0x223361=_0xc7813a[_0x53a03b(0xef)](/[\\/]+/g,'/')[_0x53a03b(0xef)](/\/$/,'');return process[_0x53a03b(0xce)]===_0x53a03b(0xdf)?_0x223361[_0x53a03b(0xc9)]():_0x223361;},_0x2607f0=_0x172094(_0xc36245),_0x282793=_0x172094(_0x151334);if(_0x2607f0===_0x282793)return!![];return _0x2607f0[_0x5b59ec(0xd6)](_0x282793+'/');}export function claudeDiscoveredSession(_0x28eee7,_0x27f243){const _0x31a9c2=_0x43ae;if(typeof _0x28eee7!==_0x31a9c2(0x108)||_0x28eee7===null)return undefined;const _0x557220=_0x28eee7;if(_0x557220[_0x31a9c2(0xdc)]===!![])return undefined;const _0x1670c0=typeof _0x557220[_0x31a9c2(0xdd)]===_0x31a9c2(0xe3)?_0x557220[_0x31a9c2(0xdd)]:typeof _0x557220['id']===_0x31a9c2(0xe3)?_0x557220['id']:undefined;if(_0x1670c0===undefined||_0x1670c0[_0x31a9c2(0xc7)]===-0x256f+-0x2589+0x4af8)return undefined;const _0x56f97c=typeof _0x557220[_0x31a9c2(0x123)]===_0x31a9c2(0xe3)?_0x557220[_0x31a9c2(0x123)]:typeof _0x557220[_0x31a9c2(0x113)]===_0x31a9c2(0xe3)?_0x557220[_0x31a9c2(0x113)]:undefined,_0x41f7ed=typeof _0x557220[_0x31a9c2(0xd2)]===_0x31a9c2(0xe3)&&_0x557220[_0x31a9c2(0xd2)][_0x31a9c2(0xc7)]>-0xe33+-0x268b+0x34be?_0x557220[_0x31a9c2(0xd2)]:_0x27f243;return{'externalSessionId':_0x1670c0,'cwd':_0x41f7ed,..._0x56f97c===undefined?{}:{'title':_0x56f97c[_0x31a9c2(0x130)](0x1ccc+0x195b+-0x3627,0xd4*0x13+-0x7*-0x321+-0x2553)}};}export function latestNativeActivity(_0x2131de){const _0x24930b=_0x43ae;return _0x2131de[_0x24930b(0x12e)];}export function sameContextUsage(_0x3c075b,_0x298ba7){const _0x33ac9c=_0x43ae;return _0x3c075b[_0x33ac9c(0x125)]===_0x298ba7[_0x33ac9c(0x125)]&&_0x3c075b[_0x33ac9c(0xfd)]===_0x298ba7[_0x33ac9c(0xfd)]&&_0x3c075b[_0x33ac9c(0x12d)]===_0x298ba7[_0x33ac9c(0x12d)];}export function isNativeHistory(_0x2803f1){const _0x4761b8=_0x43ae;return typeof _0x2803f1===_0x4761b8(0x108)&&_0x2803f1!==null&&Array[_0x4761b8(0x119)](_0x2803f1[_0x4761b8(0x11c)]);}export function deduplicateDirectSessions(_0x500ec4){const _0x127a8b=_0x43ae,_0x1a0ca2=new Map();for(const _0x364125 of _0x500ec4){const _0x572929=_0x1a0ca2[_0x127a8b(0x12a)](_0x364125['id']);if(_0x572929===undefined||_0x572929[_0x127a8b(0x12e)]<_0x364125[_0x127a8b(0x12e)])_0x1a0ca2[_0x127a8b(0xd7)](_0x364125['id'],_0x364125);}return[..._0x1a0ca2[_0x127a8b(0x124)]()][_0x127a8b(0xc5)]((_0xaad4c0,_0x1f5cf9)=>_0x1f5cf9[_0x127a8b(0x12e)]-_0xaad4c0[_0x127a8b(0x12e)]);}export function nativeConversationPage(_0x210fc7,_0x205f07,_0x5469cd,_0x130cc3=[],_0x357388=()=>[]){const _0x3074ec=_0x43ae,_0x162d0f=Math[_0x3074ec(0xd9)](Math[_0x3074ec(0xaa)](_0x5469cd[_0x3074ec(0xed)]??-0x1e8e+-0x1*0x139+0x1fe5,-0x1d*0xb8+-0xa63*0x3+-0xe*-0x3b7),0xb*0x172+0xcf7*-0x3+-0x3*-0x851),_0x441f4b=_0x205f07[_0x3074ec(0x133)]===!![]?undefined:_0x5469cd[_0x3074ec(0xcd)],_0x2e5f58=nativeTranscriptTurns(_0x205f07[_0x3074ec(0x11c)]),_0x1cc79d=nativeTranscriptTurnIds(_0x210fc7['id'],_0x2e5f58),_0x2f29dd=nativePageEnd(_0x441f4b,_0x210fc7['id'],_0x2e5f58[_0x3074ec(0xc7)]),_0x2e7c21=Math[_0x3074ec(0xaa)](0x1a*-0x102+-0x4*0x412+0x2*0x153e,_0x2f29dd-_0x162d0f),_0x235530=_0x2e5f58[_0x3074ec(0x130)](_0x2e7c21,_0x2f29dd)[_0x3074ec(0xfb)]((_0x194679,_0x3e6a93)=>{const _0x3870e5=_0x3074ec,_0x487124=_0x194679[_0x3870e5(0x101)](({entry:_0x23f68c})=>_0x23f68c[_0x3870e5(0xf1)]===_0x3870e5(0xf3)&&_0x23f68c[_0x3870e5(0x9f)]===_0x3870e5(0x112))?.[_0x3870e5(0x106)],_0xd04aad=_0x487124?.[_0x3870e5(0xf1)]===_0x3870e5(0xf3)?nativeUserClientMessageId(_0x210fc7[_0x3870e5(0xf0)],_0x487124,_0x487124[_0x3870e5(0xba)],_0x130cc3):null,_0x48ab5f=typeof _0xd04aad===_0x3870e5(0xe3)?_0x130cc3[_0x3870e5(0x101)](_0x5b95d4=>runtimeTurnClientMessageId(_0x5b95d4)===_0xd04aad):undefined,_0xa414aa=_0x48ab5f?.['id']??_0x1cc79d[_0x2e7c21+_0x3e6a93],_0x2fa0a9=nativeTranscriptItemIdentities(_0x194679),_0x457868=_0x194679[_0x3870e5(0xfb)](({entry:_0x47a011,index:_0x4b932f},_0x8643e8)=>({...nativeTranscriptConversationItem(_0x210fc7,_0x47a011,_0x4b932f,_0x2fa0a9[_0x8643e8],_0xa414aa,_0x130cc3,_0x357388),'runId':_0x48ab5f?.[_0x3870e5(0xfc)]??null})),_0xb7041e=(_0x48ab5f?.[_0x3870e5(0x11c)]??[])[_0x3870e5(0xec)](_0x43cec6=>_0x43cec6[_0x3870e5(0xf1)]===_0x3870e5(0xc8))[_0x3870e5(0xfb)](_0x3c77b9=>({..._0x3c77b9,'turnId':_0xa414aa,'runId':_0x48ab5f?.[_0x3870e5(0xfc)]??null})),_0x57d6ce=runtimeAssistantProjectionMoreComplete(_0x48ab5f,_0x457868)?_0x48ab5f[_0x3870e5(0x11c)][_0x3870e5(0xfb)](_0x40f677=>({..._0x40f677,'turnId':_0xa414aa,'runId':_0x48ab5f[_0x3870e5(0xfc)]})):[..._0x457868,..._0xb7041e[_0x3870e5(0xec)](_0x44fd28=>!_0x457868[_0x3870e5(0xe7)](_0x515b4b=>_0x515b4b['id']===_0x44fd28['id']))],_0x397b4c=_0x57d6ce[0x143b+-0x5*-0x6f9+-0x3718*0x1]?.[_0x3870e5(0xb7)]??null,_0x3163b4=_0x57d6ce['at'](-(0x12cd+-0x70*-0x5+-0x14fc))?.[_0x3870e5(0xb3)]??_0x397b4c,_0x5b3f01=lastNativeItemId(_0x194679);return{'id':_0xa414aa,'sessionId':_0x210fc7['id'],'runId':_0x48ab5f?.[_0x3870e5(0xfc)]??null,'userItemId':_0x57d6ce[_0x3870e5(0x101)](_0xcad2b8=>_0xcad2b8[_0x3870e5(0xf1)]===_0x3870e5(0x10b))?.['id']??null,'status':_0xb7041e[_0x3870e5(0xc7)]>-0x8a5+-0x253+-0xaf8*-0x1?_0x3870e5(0xb4):_0x3870e5(0xa5),'model':null,'effort':null,'access':null,..._0x5b3f01===undefined||_0x210fc7[_0x3870e5(0xf0)]!==_0x3870e5(0xee)?{}:{'rewind':{'before':lastNativeItemId(_0x2e5f58[_0x2e7c21+_0x3e6a93-(-0x1*0x107+0x5e*0x43+-0x1792)]??[])??null,'after':_0x5b3f01}},'items':_0x57d6ce,'startedAt':_0x397b4c,'completedAt':_0x3163b4};}),_0x1c8fbe=_0x235530,_0x3aae68=_0x2e7c21,_0x2ff75d={'sessionId':_0x210fc7['id'],..._0x205f07[_0x3074ec(0xb9)]===undefined?{}:{'snapshotEnd':_0x205f07[_0x3074ec(0xb9)]},..._0x205f07[_0x3074ec(0x115)]===undefined?{}:{'nextEnd':_0x205f07[_0x3074ec(0x115)]},..._0x205f07[_0x3074ec(0x11e)]===undefined?{}:{'fileAnchor':_0x205f07[_0x3074ec(0x11e)]},..._0x205f07[_0x3074ec(0xf5)]===undefined?{}:{'anchorBytes':_0x205f07[_0x3074ec(0xf5)]},'readLimit':_0x205f07[_0x3074ec(0xe5)]??_0x162d0f},_0x2fd0dc=_0x205f07[_0x3074ec(0x137)]===!![]&&_0x205f07[_0x3074ec(0x104)]!==undefined&&_0x205f07[_0x3074ec(0xb9)]!==undefined&&_0x205f07[_0x3074ec(0x11e)]!==undefined&&_0x205f07[_0x3074ec(0xf5)]!==undefined?Buffer[_0x3074ec(0xc4)](JSON[_0x3074ec(0xe0)]({'sessionId':_0x210fc7['id'],'snapshotEnd':_0x205f07[_0x3074ec(0xb9)],'nextEnd':_0x205f07[_0x3074ec(0x104)],'fileAnchor':_0x205f07[_0x3074ec(0x11e)],'anchorBytes':_0x205f07[_0x3074ec(0xf5)],'readLimit':_0x205f07[_0x3074ec(0xe5)]??_0x162d0f}))[_0x3074ec(0x117)](_0x3074ec(0xad)):null;return{'turns':_0x1c8fbe,'nextCursor':_0x3aae68>-0x1*-0x337+-0xf9*-0x13+-0x15b2?Buffer[_0x3074ec(0xc4)](JSON[_0x3074ec(0xe0)]({..._0x2ff75d,'end':_0x3aae68}))[_0x3074ec(0x117)](_0x3074ec(0xad)):_0x2fd0dc};}export function runtimeAssistantProjectionMoreComplete(_0x2aacc4,_0x275b37){const _0x1087c6=_0x43ae;if(_0x2aacc4===undefined)return![];const _0x299275=_0x8f4351=>_0x8f4351[_0x1087c6(0xc6)]((_0x420a61,_0x556031)=>{const _0x95d9d4=_0x1087c6;if(_0x556031[_0x95d9d4(0xf1)]!==_0x95d9d4(0xac)||!isPlainRecord(_0x556031[_0x95d9d4(0xb5)]))return _0x420a61;return{'count':_0x420a61[_0x95d9d4(0x107)]+(0x1a94+-0x207*-0x9+-0x2cd2),'characters':_0x420a61[_0x95d9d4(0xa8)]+(typeof _0x556031[_0x95d9d4(0xb5)][_0x95d9d4(0xa0)]===_0x95d9d4(0xe3)?_0x556031[_0x95d9d4(0xb5)][_0x95d9d4(0xa0)][_0x95d9d4(0xc7)]:0x61*0x10+0x228e+-0x289e)};},{'count':0x0,'characters':0x0}),_0x2a9d44=_0x299275(_0x2aacc4[_0x1087c6(0x11c)]),_0x54b156=_0x299275(_0x275b37);return _0x2a9d44[_0x1087c6(0x107)]>_0x54b156[_0x1087c6(0x107)]||_0x2a9d44[_0x1087c6(0xa8)]>_0x54b156[_0x1087c6(0xa8)];}function _0x43ae(_0x252396,_0x2cd9ba){_0x252396=_0x252396-(0xf8e+-0x16db*-0x1+-0xa4*0x3b);const _0x2ddf3d=_0xb419();let _0x1d7cb1=_0x2ddf3d[_0x252396];if(_0x43ae['ZIEqHH']===undefined){var _0x400445=function(_0x4db6d4){const _0x58946c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x17f917='',_0x5b37df='';for(let _0x482d14=0x1*0x166+-0x343*0x1+-0x1dd*-0x1,_0x229298,_0x339d18,_0x463e2b=-0x4*-0x36a+0x5d8*0x6+-0x30b8;_0x339d18=_0x4db6d4['charAt'](_0x463e2b++);~_0x339d18&&(_0x229298=_0x482d14%(0x7da*0x4+-0x382*0x7+-0x2*0x36b)?_0x229298*(-0x2068+-0x256f+0x4617)+_0x339d18:_0x339d18,_0x482d14++%(-0xbb0+-0xe33+0x19e7))?_0x17f917+=String['fromCharCode'](-0xdf*0x1+0x1ccc+-0x1aee&_0x229298>>(-(0xd4*0x13+-0x7*-0x321+-0x25a1)*_0x482d14&-0x1e8e+-0x1*0x139+0x1fcd)):-0x1d*0xb8+-0xa63*0x3+-0x1*-0x3401){_0x339d18=_0x58946c['indexOf'](_0x339d18);}for(let _0x59360b=0xb*0x172+0xcf7*-0x3+-0x1d*-0xcb,_0x2df7be=_0x17f917['length'];_0x59360b<_0x2df7be;_0x59360b++){_0x5b37df+='%'+('00'+_0x17f917['charCodeAt'](_0x59360b)['toString'](0x1a*-0x102+-0x4*0x412+0x4*0xaa3))['slice'](-(0x143b+-0x5*-0x6f9+-0x3716*0x1));}return decodeURIComponent(_0x5b37df);};_0x43ae['KExybL']=_0x400445,_0x43ae['mMkjpx']={},_0x43ae['ZIEqHH']=!![];}const _0xcf76b=_0x2ddf3d[0x12cd+-0x70*-0x5+-0x14fd];_0x43ae['OAClza']!==_0xcf76b&&(_0x43ae['mMkjpx']={},_0x43ae['OAClza']=_0xcf76b);const _0x2e6f0e=_0x43ae['mMkjpx'][_0x252396];return _0x2e6f0e===undefined?(_0x1d7cb1=_0x43ae['KExybL'](_0x1d7cb1),_0x43ae['mMkjpx'][_0x252396]=_0x1d7cb1):_0x1d7cb1=_0x2e6f0e,_0x1d7cb1;}function runtimeTurnClientMessageId(_0x3e8e23){const _0x48cf3f=_0x43ae,_0x31dd7c=_0x3e8e23[_0x48cf3f(0x11c)][_0x48cf3f(0x101)](_0x36d84b=>_0x36d84b[_0x48cf3f(0xf1)]===_0x48cf3f(0x10b));return isPlainRecord(_0x31dd7c?.[_0x48cf3f(0xb5)])&&typeof _0x31dd7c[_0x48cf3f(0xb5)][_0x48cf3f(0x12f)]===_0x48cf3f(0xe3)?_0x31dd7c[_0x48cf3f(0xb5)][_0x48cf3f(0x12f)]:undefined;}function lastNativeItemId(_0x111e4b){const _0x5def02=_0x43ae;return _0x111e4b[_0x5def02(0x12c)](({entry:_0x46833a})=>_0x46833a[_0x5def02(0xb1)]!==undefined)?.[_0x5def02(0x106)][_0x5def02(0xb1)];}function _0xb419(){const _0x371d13=['mte0mxf6v3r3vW','AxrLBs0','y3vYC29YuMvZzxq','B3b0Aw9UCW','BM90tg9HzgvK','zgLZDgfUy2u','Dhj1BMnHDgvK','qxnRvxnLCLf1zxn0Aw9U','C2HHmJu2','CM9Szq','Dgv4Da','Dg9VBf9JywXS','q09ervHF','x0Lex01ju1njtKC','CxvLC3rPB24','u1vdq0vfreve','y29UDgv4Df9JB21Wywn0Aw9U','DhjPBq','y2HHCMfJDgvYCW','nJC3ne52uKfPtW','Bwf4','Aw5WDxruCNvUy2f0zwq','yxnZAxn0yw50x21LC3nHz2u','yMfZzty0DxjS','Dg9VBe5HBwu','C291CMnL','Aw5WDxrtDw1Tyxj5','BMf0AxzLswq','oxfsA09MvG','y29TCgXLDgvKqxq','rKfjteve','Cgf5Bg9Hza','CxvLC3rPB25Z','C3rHCNrLzef0','u0Lor0Xfx1nftevdva','C25HChnOB3rfBMq','y3jLyxrLzef0','BwfYA2rVD24','q09nueXfveve','DxnLCL9PBNb1Df9Yzxf1zxn0','mtmXntKXz0vjDg5s','u0HpuLrFvevyva','vu5bvKfjtefcteu','mtu4nJmZmePSrLz5BW','DhvYBNm','C3vIqwDLBNq','zNjVBq','C29YDa','CMvKDwnL','BgvUz3rO','zxjYB3i','Dg9mB3DLCKnHC2u','C2vJDgLVBNm','CMfJzq','mJeWmZyZy3j4D0fH','y3vYC29Y','CgXHDgzVCM0','BMfTzq','BgfIzwW','BMf0AxzLlwzPBgu','y3DK','ChjLDMLLDW','zgf0yq','rvHurvjoquXFqunusvzf','C3rHCNrZv2L0Aa','C2v0','C291CMnLrxzLBNruExbL','BwLU','oML0zw06','B3v0Chv0vhj1BMnHDgvK','AxntAwrLy2HHAw4','C2vZC2LVBKLK','Aw5qCM9NCMvZCW','D2LUmZi','C3rYAw5NAwz5','zgLNzxn0','AwrSzq','C3rYAw5N','ndK4ndmZnKzSr1fJvG','D2LUzg93uMvHzeXPBwL0','CgHHC2u','C29Tzq','BxvSDgLtzwXLy3q','tvvmveLFu0vmrunu','ChvZAa','y2XHDwrLlxf1zxn0Aw9Ulq','zMLSDgvY','BgLTAxq','y2XHDwrLlwnVzgu','CMvWBgfJzq','CNvUBMvY','A2LUza','Dg9VBfvZzuLK','BwvZC2fNzq','C291CMnLs2LUza','yw5JAg9YqNL0zxm','Dw5Yzwy','CgXHBG','ywn0AxzL','zMXHDe1HCa','Dw5RBM93BG','BwfW','CNvUswq','DxnLzfrVA2vUCW','C3rHDhvZ','ve9ptf9fwevdvvrjt05FrKfjteve','nhnhqNLKzq','zMLUza','y29KzxG','zMfPBgvK','D2LUzg93u3rHCNq','zMLSztO','zw50CNK','y291BNq','B2jQzwn0','qundrvburuq','Dg9vChbLCKnHC2u','DxnLCL9TzxnZywDL','ywjZ','B3v0Chv0u3vTBwfYEq','zw50CMLLCW','zgvZy3jPChrPB24','mtz0y25Suem','BMf0AxzLoG','vvnfuG','DgL0Bgu','DgHYzwfK','D2LUzg93rw5K','oM5HDgL2ztO','Dg9tDhjPBMC','mtK2ntq2nJHbtfjPu2G','AxnbCNjHEq','DgvZDa','yxr0ywnOBwvUDhm','AxrLBxm','q09ervHFveHsrufex0nxrf9jtLzbteLe','zMLSzufUy2HVCG','surmrq','DhLWzq','Aw1Hz2vbDhrHy2HTzw50CW','C3vIywDLBNq','C3vTBwfYEq','DMfSDwvZ','Bw9KzwW','Aw5WDxq','mZK4mdm3meXNuufhBa','phbYB3bVC2vKx3bSyw4+','DxbKyxrL','z2v0','CMvHC29UAw5Nx3n1Bw1HCNK','zMLUzeXHC3q','Bwf4vg9Rzw5Z','BgfZDefJDgL2Axr5qxq','y2XPzw50twvZC2fNzuLK','C2XPy2u'];_0xb419=function(){return _0x371d13;};return _0xb419();}function nativeTranscriptTurnIds(_0xf2831a,_0x27b601){const _0x173948=_0x43ae,_0x5cf8db=new Map();return _0x27b601[_0x173948(0xfb)](_0x4b9f4b=>{const _0x37eabf=_0x173948,_0x2bf3d7=_0x4b9f4b[_0x37eabf(0x101)](({entry:_0x5c737e})=>_0x5c737e[_0x37eabf(0xf1)]===_0x37eabf(0xf3)&&_0x5c737e[_0x37eabf(0x9f)]===_0x37eabf(0x112))?.[_0x37eabf(0x106)],_0x161a86=_0x2bf3d7??_0x4b9f4b[0x9*-0x33b+0x4*0x4fd+-0x1d3*-0x5]?.[_0x37eabf(0x106)],_0x263a77=_0x161a86?.[_0x37eabf(0xb1)]??nativeTranscriptItemFingerprint(_0x161a86),_0x13e096=_0x5cf8db[_0x37eabf(0x12a)](_0x263a77)??0x204e*-0x1+-0xf*0x14b+0x5*0xa57;return _0x5cf8db[_0x37eabf(0xd7)](_0x263a77,_0x13e096+(0x3f5*-0x8+0x1d39+0x270)),_0xf2831a+_0x37eabf(0x116)+_0x263a77+(_0x13e096===-0xd73*0x1+-0x7*0x2a1+-0x38a*-0x9?'':':'+_0x13e096);});}function nativeTranscriptItemIdentities(_0x18123f){const _0xbb64ca=_0x43ae,_0x1ebad1=new Map();for(const {entry:_0x48d588}of _0x18123f)if(_0x48d588[_0xbb64ca(0xb1)]!==undefined)_0x1ebad1[_0xbb64ca(0xd7)](_0x48d588[_0xbb64ca(0xb1)],(_0x1ebad1[_0xbb64ca(0x12a)](_0x48d588[_0xbb64ca(0xb1)])??0x5b8+0x11aa+-0x1762)+(0x45b+-0x1*-0xeef+-0x1349));const _0x27bc60=new Map();return _0x18123f[_0xbb64ca(0xfb)](({entry:_0x1b801d})=>{const _0x4b6278=_0xbb64ca,_0x41ae98=_0x1b801d[_0x4b6278(0xb1)]!==undefined&&_0x1ebad1[_0x4b6278(0x12a)](_0x1b801d[_0x4b6278(0xb1)])===0xc62+-0x1a1e+0xdbd?_0x1b801d[_0x4b6278(0xb1)]:''+(_0x1b801d[_0x4b6278(0xb1)]===undefined?'':_0x1b801d[_0x4b6278(0xb1)]+':')+nativeTranscriptItemFingerprint(_0x1b801d),_0x4750e2=_0x27bc60[_0x4b6278(0x12a)](_0x41ae98)??0x179*0x14+0x1ece*0x1+-0x3c42;return _0x27bc60[_0x4b6278(0xd7)](_0x41ae98,_0x4750e2+(0x2*0xa6a+-0xb7c*0x2+0x9*0x3d)),_0x4750e2===-0xb*0x10f+0x1558+-0x9b3?_0x41ae98:_0x41ae98+':'+_0x4750e2;});}function nativeTranscriptItemFingerprint(_0x15d684){const _0x1d6bdd=_0x43ae;return createHash(_0x1d6bdd(0x9e))[_0x1d6bdd(0x129)](JSON[_0x1d6bdd(0xe0)](_0x15d684??null))[_0x1d6bdd(0xe1)](_0x1d6bdd(0xad))[_0x1d6bdd(0x130)](0x3*0x138+-0x85f*-0x3+-0x1cc5,-0x15e2+0x19f6+-0x3fc);}function nativeTranscriptTurns(_0x44798b){const _0x1365ab=_0x43ae,_0x2e19e0=[];let _0x383301=[];for(const [_0x89405c,_0x2653ac]of _0x44798b[_0x1365ab(0x10e)]()){_0x2653ac[_0x1365ab(0xf1)]===_0x1365ab(0xf3)&&_0x2653ac[_0x1365ab(0x9f)]===_0x1365ab(0x112)&&_0x383301[_0x1365ab(0xc7)]>-0x2557+-0x311*-0xb+0x21*0x1c&&(_0x2e19e0[_0x1365ab(0xea)](_0x383301),_0x383301=[]),_0x383301[_0x1365ab(0xea)]({'entry':_0x2653ac,'index':_0x89405c});}if(_0x383301[_0x1365ab(0xc7)]>0x1d99+0x1*-0x12c1+-0xad8)_0x2e19e0[_0x1365ab(0xea)](_0x383301);return _0x2e19e0;}function nativeTranscriptConversationItem(_0x1f2454,_0x26534f,_0x5bf859,_0x2dce03,_0x1375ab,_0x53f8c9,_0x1b029d){const _0x1de226=_0x43ae,_0x7e9a69=_0x26534f[_0x1de226(0xba)],_0x167170=_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xa1),_0x442faa=_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xfa),_0x46cd85=_0x26534f[_0x1de226(0xf1)]===_0x1de226(0x12b),_0xc05ca0=_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xa6),_0x491923=_0x1f2454[_0x1de226(0xf0)]===_0x1de226(0xee)&&_0x167170?normalizeClaudeTool(_0x26534f[_0x1de226(0xae)],_0x26534f[_0x1de226(0x126)],_0x26534f[_0x1de226(0x10d)],_0x26534f[_0x1de226(0x103)],_0x26534f[_0x1de226(0xab)]||_0x26534f[_0x1de226(0xdb)]):undefined,_0x303866=_0x1f2454[_0x1de226(0xf0)]===_0x1de226(0x102)&&_0x167170?normalizeCodexTool({'name':_0x26534f[_0x1de226(0xae)],'namespace':_0x1de226(0x102),'rawInput':_0x26534f[_0x1de226(0x126)],'inputSummary':_0x26534f[_0x1de226(0xb0)],'outputSummary':_0x26534f[_0x1de226(0x10d)],'truncated':_0x26534f[_0x1de226(0xab)]||_0x26534f[_0x1de226(0xdb)],..._0x26534f[_0x1de226(0x121)]===undefined?{}:{'attachments':_0x26534f[_0x1de226(0x121)]}}):undefined,_0x4dfe58=_0x1f2454[_0x1de226(0xf0)]===_0x1de226(0xee)&&_0x167170&&_0x26534f[_0x1de226(0xae)]===_0x1de226(0x9d)&&isPlainRecord(_0x26534f[_0x1de226(0x126)])?claudeUserInputQuestions(_0x26534f[_0x1de226(0x126)]):[],_0x3f658f=_0x4dfe58[_0x1de226(0xc7)]>0xb29+0xb26+-0x1*0x164f,_0x5aea59=_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xf3)&&_0x26534f[_0x1de226(0x9f)]===_0x1de226(0x112)?nativeUserClientMessageId(_0x1f2454[_0x1de226(0xf0)],_0x26534f,_0x7e9a69,_0x53f8c9):null,_0x5d7a13=_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xf3)?_0x26534f[_0x1de226(0x9f)]===_0x1de226(0x112)?nativeUserMessageText(_0x1f2454[_0x1de226(0xf0)],_0x26534f[_0x1de226(0xa0)]):_0x26534f[_0x1de226(0xa0)]:'',_0x38c2cf=_0x5aea59===null?undefined:runtimeUserMessagePayload(_0x5aea59,_0x53f8c9),_0x1d04db=Array[_0x1de226(0x119)](_0x38c2cf?.[_0x1de226(0x11b)])?_0x38c2cf[_0x1de226(0x11b)]:_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xf3)&&_0x26534f[_0x1de226(0x9f)]===_0x1de226(0x112)&&_0x26534f[_0x1de226(0x121)]!==undefined?_0x1b029d(_0x26534f[_0x1de226(0x121)]):[],_0x26a212=_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xf3)&&_0x26534f[_0x1de226(0x9f)]!==_0x1de226(0x112)?claudePlanText(_0x5d7a13):undefined,_0x819786={'id':_0x1375ab+_0x1de226(0xda)+_0x2dce03,'sessionId':_0x1f2454['id'],'turnId':_0x1375ab,'runId':null,'parentItemId':null,'sourceSequence':_0x5bf859,'revision':0x0,'kind':_0x3f658f?_0x1de226(0xbd):_0x46cd85?_0x1de226(0x12b):_0xc05ca0?_0x1de226(0xa6):_0x167170?_0x491923?.[_0x1de226(0xf1)]??_0x303866?.[_0x1de226(0xf1)]??_0x1de226(0xa1):_0x442faa?_0x1de226(0xfa):_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xf3)&&_0x26534f[_0x1de226(0x9f)]===_0x1de226(0x112)?_0x1de226(0x10b):_0x26a212!==undefined?_0x1de226(0xf7):_0x1de226(0xac),'status':_0x1de226(0xbc),'payload':_0x3f658f?{'requestId':_0x1de226(0x111)+(_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xa1)?_0x26534f[_0x1de226(0xf2)]:_0x1de226(0x132)+_0x2dce03),'questions':_0x4dfe58}:_0x46cd85?{'sections':_0x26534f[_0x1de226(0xca)]}:_0xc05ca0?{'phase':_0x26534f[_0x1de226(0xe6)],'summary':_0x26534f[_0x1de226(0x123)]}:_0x167170?{..._0x491923?.[_0x1de226(0xb5)]??_0x303866?.[_0x1de226(0xb5)]??{'namespace':_0x1f2454[_0x1de226(0xf0)],'toolName':_0x26534f[_0x1de226(0xae)],'title':_0x26534f[_0x1de226(0xae)],'inputSummary':_0x26534f[_0x1de226(0xb0)],'outputSummary':_0x26534f[_0x1de226(0x10d)],'progressLabel':null,'errorCode':_0x26534f[_0x1de226(0x103)]?_0x1de226(0xff):null,'truncated':_0x26534f[_0x1de226(0xab)]||_0x26534f[_0x1de226(0xdb)]},..._0x26534f[_0x1de226(0x121)]===undefined?{}:{'attachments':_0x1b029d(_0x26534f[_0x1de226(0x121)])}}:_0x442faa?{'sourceEventType':_0x26534f[_0x1de226(0xd8)],'label':_0x26534f[_0x1de226(0xd0)]}:_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xf3)&&_0x26534f[_0x1de226(0x9f)]===_0x1de226(0x112)?{'clientMessageId':_0x5aea59,'text':_0x5d7a13,'contexts':[],'delivery':_0x1de226(0x109),..._0x1d04db[_0x1de226(0xc7)]===0x268f+-0x51c+0x1*-0x2173?{}:{'attachments':_0x1d04db}}:_0x26a212!==undefined?{'explanation':compactRunnerText(_0x26a212,0x1*0x610f+0x1be5*0x2+-0x4ab9),'steps':[]}:{'text':_0x5d7a13,'format':_0x1de226(0xbb),'source':_0x1de226(0xd1)},'startedAt':_0x7e9a69,'completedAt':_0x7e9a69};return _0x819786;}export function nativeUserClientMessageId(_0x25aa5a,_0x4392f,_0x356c4d,_0x174c2d){const _0x3a360b=_0x43ae,_0x17c8d4=[];for(const _0x29d12d of _0x174c2d){const _0x3d98f3=_0x29d12d[_0x3a360b(0x11c)][_0x3a360b(0x101)](_0x19bcf3=>_0x19bcf3[_0x3a360b(0xf1)]===_0x3a360b(0x10b));if(_0x3d98f3===undefined||!isPlainRecord(_0x3d98f3[_0x3a360b(0xb5)]))continue;const _0x5aec8b=_0x3d98f3[_0x3a360b(0xb5)],_0x277545=typeof _0x5aec8b[_0x3a360b(0x12f)]===_0x3a360b(0xe3)?_0x5aec8b[_0x3a360b(0x12f)]:null;if(_0x277545===null||_0x5aec8b[_0x3a360b(0xa0)]!==nativeUserMessageText(_0x25aa5a,_0x4392f[_0x3a360b(0xa0)]))continue;const _0x59859c=_0x3d98f3[_0x3a360b(0xb7)]??_0x29d12d[_0x3a360b(0xb7)];_0x17c8d4[_0x3a360b(0xea)]({'clientMessageId':_0x277545,'createdAt':_0x59859c??null});}if(_0x356c4d===null)return _0x17c8d4[_0x3a360b(0xc7)]===0xcde+-0x21f5+-0x546*-0x4?_0x17c8d4[0x1c8b+-0x2350+-0x1*-0x6c5][_0x3a360b(0x12f)]:null;const _0x49568c=_0x17c8d4[_0x3a360b(0xec)](_0x5ad566=>_0x5ad566[_0x3a360b(0xba)]!==null)[_0x3a360b(0xfb)](_0x159aca=>({..._0x159aca,'distance':Math[_0x3a360b(0x10c)](_0x356c4d-_0x159aca[_0x3a360b(0xba)])}))[_0x3a360b(0xec)](_0x5da53a=>_0x5da53a[_0x3a360b(0x136)]<=0x1*-0xac51+-0x1*0x1254d+0x2*0x15dff)[_0x3a360b(0xc5)]((_0x489fe0,_0x2f0d57)=>_0x489fe0[_0x3a360b(0x136)]-_0x2f0d57[_0x3a360b(0x136)]);return _0x49568c[-0x2f*0xce+0x132c+-0xb*-0x1b2]?.[_0x3a360b(0x12f)]??null;}function runtimeUserMessagePayload(_0x5efae2,_0x4d3423){const _0x4ae3e5=_0x43ae;for(const _0x53fb8c of _0x4d3423){const _0x3e5541=_0x53fb8c[_0x4ae3e5(0x11c)][_0x4ae3e5(0x101)](_0x446de6=>_0x446de6[_0x4ae3e5(0xf1)]===_0x4ae3e5(0x10b));if(!isPlainRecord(_0x3e5541?.[_0x4ae3e5(0xb5)])||_0x3e5541[_0x4ae3e5(0xb5)][_0x4ae3e5(0x12f)]!==_0x5efae2)continue;return _0x3e5541[_0x4ae3e5(0xb5)];}return undefined;}function nativeUserMessageText(_0x5e13ef,_0x2a474a){const _0xb8efc0=_0x43ae,_0x5ed162=stripMissionStartPrompt(_0x2a474a),_0x4673b1=_0x5e13ef===_0xb8efc0(0xee)?stripClaudePlanTag(_0x5ed162):_0x5ed162;if(_0x5e13ef!==_0xb8efc0(0x102))return _0x4673b1;return parseCodexComposerImageMarkers(_0x4673b1)[_0xb8efc0(0xa0)];}export function claudePlanText(_0x57a24c){const _0x4d51c9=_0x43ae,_0x58ec6f=_0x57a24c[_0x4d51c9(0xa7)]();if(!_0x58ec6f[_0x4d51c9(0xd6)](_0x4d51c9(0x128))||!/<\/proposed_plan>\s*$/[_0x4d51c9(0x11a)](_0x58ec6f))return undefined;const _0x270cd1=_0x58ec6f[_0x4d51c9(0x130)](_0x4d51c9(0x128)[_0x4d51c9(0xc7)])[_0x4d51c9(0xef)](/<\/proposed_plan>\s*$/,'')[_0x4d51c9(0xa7)]();return _0x270cd1[_0x4d51c9(0xc7)]>-0x9b1+-0x1406+0x1*0x1db7?_0x270cd1:undefined;}export function claudeUserInputQuestions(_0x4c8b43){const _0x2c1abd=_0x43ae;if(!Array[_0x2c1abd(0x119)](_0x4c8b43[_0x2c1abd(0xb6)])||_0x4c8b43[_0x2c1abd(0xb6)][_0x2c1abd(0xc7)]===0x4c7*-0x1+0x1fc5*-0x1+0x923*0x4||_0x4c8b43[_0x2c1abd(0xb6)][_0x2c1abd(0xc7)]>0x190c+-0x1*0x1106+0x29*-0x32)return[];const _0x493648=_0x4c8b43[_0x2c1abd(0xb6)][_0x2c1abd(0xfb)]((_0x1bc1ec,_0xc4cd03)=>{const _0x35d1f3=_0x2c1abd;if(!isPlainRecord(_0x1bc1ec)||typeof _0x1bc1ec[_0x35d1f3(0xa4)]!==_0x35d1f3(0xe3))return undefined;const _0x274569=Array[_0x35d1f3(0x119)](_0x1bc1ec[_0x35d1f3(0x134)])?_0x1bc1ec[_0x35d1f3(0x134)][_0x35d1f3(0xf9)](_0x1229c3=>{const _0x28e1bc=_0x35d1f3;if(!isPlainRecord(_0x1229c3)||typeof _0x1229c3[_0x28e1bc(0xd0)]!==_0x28e1bc(0xe3))return[];const _0x4ac138=compactRunnerText(_0x1229c3[_0x28e1bc(0xd0)],0x4*0x17f+-0x1ef8+-0x35e*-0x8);return _0x4ac138[_0x28e1bc(0xc7)]===0xb3*-0x16+-0x1276+0x21d8?[]:[{'value':_0x4ac138,'label':_0x4ac138,'description':typeof _0x1229c3[_0x28e1bc(0x10f)]===_0x28e1bc(0xe3)?compactRunnerText(_0x1229c3[_0x28e1bc(0x10f)],0xb33+0x2d*-0x6a+0xb57):null}];}):[],_0x1fd612=_0x1bc1ec[_0x35d1f3(0xe8)]===!![];return{'id':_0x35d1f3(0xeb)+_0xc4cd03,'prompt':compactRunnerText(_0x1bc1ec[_0x35d1f3(0xa4)],-0x2*0x1063+0x6a6+0x16d4*0x2),'input':_0x274569[_0x35d1f3(0xc7)]===0xd99*-0x1+-0x1ad8+0x11*0x261?_0x35d1f3(0xbf):_0x1fd612?_0x35d1f3(0xe9):_0x35d1f3(0xb8),'options':_0x274569,'allowOther':!![],'multiSelect':_0x1fd612};});return _0x493648[_0x2c1abd(0xe7)](_0x2e0f4a=>_0x2e0f4a===undefined)?[]:_0x493648;}
|
package/dist/workspace.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
function _0xc207(_0x545965,_0x329d15){_0x545965=_0x545965-(-0xd2d+-0xcc8+0x1b10);const _0x3d4f34=_0xe7db();let _0x3d8d0d=_0x3d4f34[_0x545965];if(_0xc207['WoGBXx']===undefined){var _0xdde61a=function(_0x507266){const _0x226e3b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4912a8='',_0x5d8792='';for(let _0x15846a=0x1*0x1abd+0x48b*-0x5+-0xa*0x67,_0x5b912f,_0x4e07da,_0x5787a7=0x1*-0x487+0x228f+0x2*-0xf04;_0x4e07da=_0x507266['charAt'](_0x5787a7++);~_0x4e07da&&(_0x5b912f=_0x15846a%(-0x254f+0x14c4+0x108f)?_0x5b912f*(-0x2*-0x1e2+0x35*-0xa6+-0x2ce*-0xb)+_0x4e07da:_0x4e07da,_0x15846a++%(-0x24c4+0x15*-0x17e+0x220f*0x2))?_0x4912a8+=String['fromCharCode'](0x1*0x268f+-0x16*-0x8b+-0x3182&_0x5b912f>>(-(-0xa39*-0x3+0x1*0x2218+-0x40c1)*_0x15846a&0x26d*-0xd+0x1dda*0x1+0x1b5)):-0x2162+-0x17*0x5d+0x29bd*0x1){_0x4e07da=_0x226e3b['indexOf'](_0x4e07da);}for(let _0x1396c2=0x871+0x9e9*0x2+0x1c43*-0x1,_0x385cef=_0x4912a8['length'];_0x1396c2<_0x385cef;_0x1396c2++){_0x5d8792+='%'+('00'+_0x4912a8['charCodeAt'](_0x1396c2)['toString'](-0x1*0x17cf+-0x7*-0x341+0x118))['slice'](-(-0x4*0x2e0+0x3*0x33f+0x1c5));}return decodeURIComponent(_0x5d8792);};_0xc207['fiJxcF']=_0xdde61a,_0xc207['xqXkVT']={},_0xc207['WoGBXx']=!![];}const _0x261bed=_0x3d4f34[-0x2181+-0x10*-0x143+0xd51];_0xc207['ktTwgM']!==_0x261bed&&(_0xc207['xqXkVT']={},_0xc207['ktTwgM']=_0x261bed);const _0x16e96b=_0xc207['xqXkVT'][_0x545965];return _0x16e96b===undefined?(_0x3d8d0d=_0xc207['fiJxcF'](_0x3d8d0d),_0xc207['xqXkVT'][_0x545965]=_0x3d8d0d):_0x3d8d0d=_0x16e96b,_0x3d8d0d;}const _0x1a5b06=_0xc207;(function(_0x967d62,_0x493465){const _0x9ae782=_0xc207,_0x32080a=_0x967d62();while(!![]){try{const _0x34f5b0=-parseInt(_0x9ae782(0x22e))/(0xb74*-0x1+0x72*-0x42+0x1*0x28d9)*(parseInt(_0x9ae782(0x1de))/(0x21d5+-0x2397*0x1+0x1c4))+parseInt(_0x9ae782(0x143))/(-0x17af+0x1202+-0x5b*-0x10)+parseInt(_0x9ae782(0x1d9))/(-0x1*-0x153f+-0x1948+-0x1*-0x40d)*(parseInt(_0x9ae782(0x125))/(0xba9+-0x8eb+-0x11*0x29))+parseInt(_0x9ae782(0x218))/(0x16dc+0x1*0xc1a+-0x22f0)*(-parseInt(_0x9ae782(0x1b1))/(-0x137b*0x2+0x366*0x5+-0x3*-0x755))+parseInt(_0x9ae782(0x1fb))/(-0x1*-0xf2e+-0x1535+0x60f)+-parseInt(_0x9ae782(0x14b))/(0xd5e*0x1+0xb*-0x30+-0xb45)*(parseInt(_0x9ae782(0x20d))/(0x5b1+-0x1*0x1a5+-0x3*0x156))+parseInt(_0x9ae782(0x1cc))/(0x1*0x16bd+0x67f+-0x35*0x8d)*(parseInt(_0x9ae782(0x133))/(-0x1*0x120d+0x1630+-0x417));if(_0x34f5b0===_0x493465)break;else _0x32080a['push'](_0x32080a['shift']());}catch(_0x1a05c4){_0x32080a['push'](_0x32080a['shift']());}}}(_0xe7db,-0x79350+-0x1*-0x58d6+0x39a7*0x32));import{createHash,randomUUID}from'node:crypto';import{watch}from'node:fs';import{lstat,mkdir,opendir,open,readdir,readFile,realpath,rename,rm,stat,unlink,writeFile}from'node:fs/promises';import{homedir,platform as _0x4dde61}from'node:os';import{dirname,isAbsolute,posix,relative,resolve,sep,win32}from'node:path';import{spawn}from'node:child_process';import{minimatch}from'minimatch';const GIT_TIMEOUT_MS=0x1411+0x1438+0xa1*-0x21,GIT_OUTPUT_LIMIT=(0x6*0xd2+-0x2ec+0x0)*(-0x20df+-0x1577*0x1+-0x3*-0x1372),FILE_READ_LIMIT=(-0x493*-0x7+0xa89+-0x288e)*(0x4*-0x617+0x46d*0x1+0x17ef*0x1),DIRECTORY_PAGE_LIMIT=0x12c9+0xaa4+0x1ca5*-0x1,DIRECTORY_PICKER_LIMIT=0x1*0x260f+-0x1cd4+-0x873,SEARCH_RESULT_LIMIT=0x1*0x1dda+-0x2c*-0xa3+-0x3916,FILE_INDEX_IDLE_TTL_MS=(-0x17*0x5d+0x2377*-0x1+0x1607*0x2)*(0x1*-0x1964+-0xd5*-0xf+0xd25*0x1)*(-0x38b+0xda1+-0x62e),FILE_INDEX_ENTRY_LIMIT=0xc2c9+0xc*0x35d6+-0x1c231,FILE_INDEX_FALLBACK_POLL_MS=-0xc906+-0x4*-0x1e47+0xc51a,FILE_INDEX_METADATA_CONCURRENCY=0xb*0x2bb+0x266+-0x204f,DEFAULT_QUICK_OPEN_EXCLUDES=[_0x1a5b06(0x198),_0x1a5b06(0x201),_0x1a5b06(0x184),_0x1a5b06(0x204),_0x1a5b06(0x171),_0x1a5b06(0x1d7),_0x1a5b06(0x1c2),_0x1a5b06(0x1da),_0x1a5b06(0x1f0),_0x1a5b06(0x1ed),_0x1a5b06(0x13a),_0x1a5b06(0x1c0),_0x1a5b06(0x18a),_0x1a5b06(0x16e),_0x1a5b06(0x127),_0x1a5b06(0x20f),_0x1a5b06(0x1fd),_0x1a5b06(0x1fc),_0x1a5b06(0x1b2),_0x1a5b06(0x189),_0x1a5b06(0x20e),_0x1a5b06(0x1d0),_0x1a5b06(0x14c),_0x1a5b06(0x225),_0x1a5b06(0x1a6)],REF_PATTERN=/^(?!-)(?!.*\.\.)(?!.*@\{)[A-Za-z0-9][A-Za-z0-9._/-]{0,254}$/;export async function createWorkspaceDirectory(_0x156aa3,_0xdb8481,_0x2fbd55){const _0x3c39b3=_0x1a5b06,_0x2dc89e=_0xdb8481[_0x3c39b3(0x199)]();if(_0x2dc89e[_0x3c39b3(0x156)]===-0x144d+0x1ad7*0x1+-0x68a||_0x2dc89e[_0x3c39b3(0x156)]>-0x23f3*-0x1+0x4a*0x56+-0x3bd0||_0x2dc89e==='.'||_0x2dc89e==='..'||_0x2dc89e[_0x3c39b3(0x20c)]('/')||_0x2dc89e[_0x3c39b3(0x20c)]('\x5c')||_0x2dc89e[_0x3c39b3(0x20c)]('\x00'))throw new Error(_0x3c39b3(0x1a2));const _0x2951ac=await Promise[_0x3c39b3(0x12c)](_0x2fbd55[_0x3c39b3(0x231)](_0x68ea52=>realpath(_0x68ea52))),_0x155c6b=await realpath(_0x156aa3)[_0x3c39b3(0x1b3)](()=>{const _0xc41273=_0x3c39b3;throw new Error(_0xc41273(0x165));}),_0x4d815d=await stat(_0x155c6b)[_0x3c39b3(0x1b3)](()=>undefined);if(_0x4d815d?.[_0x3c39b3(0x1e4)]()!==!![]||!isWithinAllowedRoot(_0x155c6b,_0x2951ac))throw new Error(_0x3c39b3(0x165));const _0x2e6fc8=resolve(_0x155c6b,_0x2dc89e);if(dirname(_0x2e6fc8)!==_0x155c6b||!isWithinAllowedRoot(_0x2e6fc8,_0x2951ac))throw new Error(_0x3c39b3(0x1a2));try{await mkdir(_0x2e6fc8);}catch(_0x2540c6){if(_0x2540c6[_0x3c39b3(0x1e8)]===_0x3c39b3(0x1a3))throw new Error(_0x3c39b3(0x21b));throw _0x2540c6;}return _0x2e6fc8;}export class WorkspaceFileIndex{[_0x1a5b06(0x124)];[_0x1a5b06(0x182)];[_0x1a5b06(0x136)]=[];[_0x1a5b06(0x208)]=![];[_0x1a5b06(0x1a5)];[_0x1a5b06(0x1dd)];[_0x1a5b06(0x11c)]=!![];[_0x1a5b06(0x1fe)];[_0x1a5b06(0x1ac)];[_0x1a5b06(0x17f)];[_0x1a5b06(0x20a)]='';constructor(_0x5a9b41,_0x309941={}){const _0x47844e=_0x1a5b06;this[_0x47844e(0x124)]=_0x5a9b41,this[_0x47844e(0x182)]=_0x309941;}async[_0x1a5b06(0x19f)](){const _0x11dcfd=_0x1a5b06;await this[_0x11dcfd(0x19b)](),this[_0x11dcfd(0x1dc)]();}async[_0x1a5b06(0x1c4)](){const _0x328f92=_0x1a5b06;return await this[_0x328f92(0x19b)](),this[_0x328f92(0x1dc)](),{'entries':this[_0x328f92(0x136)][_0x328f92(0x1e9)](_0x28362d=>_0x28362d[_0x328f92(0x200)]===_0x328f92(0x17b)),'truncated':this[_0x328f92(0x208)]};}[_0x1a5b06(0x1e3)](){const _0x5ee903=_0x1a5b06;if(this[_0x5ee903(0x1ac)]!==undefined)clearTimeout(this[_0x5ee903(0x1ac)]);this[_0x5ee903(0x1ac)]=undefined,this[_0x5ee903(0x1fe)]?.[_0x5ee903(0x13d)](),this[_0x5ee903(0x1fe)]=undefined;if(this[_0x5ee903(0x17f)]!==undefined)clearInterval(this[_0x5ee903(0x17f)]);this[_0x5ee903(0x17f)]=undefined,this[_0x5ee903(0x136)]=[],this[_0x5ee903(0x208)]=![],this[_0x5ee903(0x11c)]=!![],this[_0x5ee903(0x20a)]='';}async[_0x1a5b06(0x1e7)](_0x13980c,_0x502703,_0xba5c0=SEARCH_RESULT_LIMIT,_0x4b9158=![]){const _0x18bdb9=_0x1a5b06;if(_0x13980c[_0x18bdb9(0x199)]()[_0x18bdb9(0x156)]===-0x43*0x53+-0x8c3+0x1e7c||_0x13980c[_0x18bdb9(0x156)]>-0x113f+0x1bd9+-0x99a||!Number[_0x18bdb9(0x16f)](_0xba5c0)||_0xba5c0<-0x1*0xc9d+0xf20+-0x6*0x6b||_0xba5c0>SEARCH_RESULT_LIMIT)throw new Error(_0x18bdb9(0x191));await this[_0x18bdb9(0x19b)](),this[_0x18bdb9(0x1dc)]();const _0x263173=decodeSearchCursor(_0x502703,_0x13980c),_0x272772=_0x263173===undefined?undefined:this[_0x18bdb9(0x136)][_0x18bdb9(0x196)](_0x467dbb=>_0x467dbb[_0x18bdb9(0x1c3)]===_0x263173&&(_0x4b9158||_0x467dbb[_0x18bdb9(0x200)]===_0x18bdb9(0x17b))),_0x29d49f=_0x272772===undefined?-(-0xa6a*0x2+-0x1*-0x1fee+-0xb19):fuzzyPathScore(_0x272772[_0x18bdb9(0x1c3)],_0x13980c),_0x5e8ef2=_0x272772===undefined||_0x29d49f<-0x1c0c+-0x10c5+-0x4d*-0x95?undefined:{'entry':_0x272772,'score':_0x29d49f},_0xd1a969=new RankedCandidateHeap(_0xba5c0+(-0xd01*0x3+0x1a17+0xced));for(const _0x3f16f8 of this[_0x18bdb9(0x136)]){if(!_0x4b9158&&_0x3f16f8[_0x18bdb9(0x200)]!==_0x18bdb9(0x17b))continue;const _0x4d990c=fuzzyPathScore(_0x3f16f8[_0x18bdb9(0x1c3)],_0x13980c);if(_0x4d990c<-0x408+0x2471+-0x2069)continue;const _0x4f7004={'entry':_0x3f16f8,'score':_0x4d990c};if(_0x5e8ef2!==undefined&&compareRankedCandidate(_0x4f7004,_0x5e8ef2)<=-0x2*-0xa99+0xd43+-0x2275*0x1)continue;_0xd1a969[_0x18bdb9(0x1c9)](_0x4f7004);}const _0x14978f=_0xd1a969[_0x18bdb9(0x154)](),_0x1e6a5e=_0x14978f[_0x18bdb9(0x1d2)](0x1a91+0x49f+0x3e6*-0x8,_0xba5c0)[_0x18bdb9(0x231)](_0x300d24=>_0x300d24[_0x18bdb9(0x236)]),_0x310952=_0x14978f[_0xba5c0]?.[_0x18bdb9(0x236)][_0x18bdb9(0x1c3)];return{'entries':_0x1e6a5e,'nextCursor':_0x310952===undefined?null:encodeSearchCursor(_0x13980c,_0x1e6a5e['at'](-(-0x1f84+-0x11f7+0x1*0x317c))?.[_0x18bdb9(0x1c3)]??_0x263173??''),'truncated':_0x310952!==undefined||this[_0x18bdb9(0x208)]};}async[_0x1a5b06(0x19b)](){const _0x529034=_0x1a5b06;if(!this[_0x529034(0x11c)]&&this[_0x529034(0x1a5)]!==undefined)return;this[_0x529034(0x1dd)]===undefined&&(this[_0x529034(0x1dd)]=this[_0x529034(0x1af)]()[_0x529034(0x194)](()=>{const _0x5bcd34=_0x529034;this[_0x5bcd34(0x1dd)]=undefined;})),await this[_0x529034(0x1dd)];}[_0x1a5b06(0x1dc)](){const _0x5e8a6b=_0x1a5b06;if(this[_0x5e8a6b(0x1ac)]!==undefined)clearTimeout(this[_0x5e8a6b(0x1ac)]);this[_0x5e8a6b(0x1ac)]=setTimeout(()=>this[_0x5e8a6b(0x1e3)](),this[_0x5e8a6b(0x182)][_0x5e8a6b(0x138)]??FILE_INDEX_IDLE_TTL_MS),this[_0x5e8a6b(0x1ac)][_0x5e8a6b(0x1f8)]();}async[_0x1a5b06(0x1af)](){const _0x8961c5=_0x1a5b06,_0x49d67e=await resolveRegisteredWorkspaceRoot(this[_0x8961c5(0x124)]),_0x3c0547=[...DEFAULT_QUICK_OPEN_EXCLUDES,...await workspaceExcludePatterns(_0x49d67e)],_0x4cb656=[],_0x553099=this[_0x8961c5(0x182)][_0x8961c5(0x1d6)]??FILE_INDEX_ENTRY_LIMIT;let _0x25e72e=![];const _0x26996c=['.'];let _0x2a1377=-0x1*0x48f+-0xf68+0x13f7;while(_0x2a1377<_0x26996c[_0x8961c5(0x156)]&&!_0x25e72e){const _0x3894c2=_0x26996c[_0x2a1377];_0x2a1377+=0x2*0xd9+0x4a*0x6d+-0x2133;const _0x104657=await resolveWorkspaceEntryFromCanonicalRoot(_0x49d67e,_0x3894c2,!![])[_0x8961c5(0x1b3)](()=>undefined);if(_0x104657===undefined)continue;const _0x285624=await opendir(_0x104657)[_0x8961c5(0x1b3)](()=>undefined);if(_0x285624===undefined)continue;let _0x344f47=[];const _0x19d03a=async()=>{const _0x59bdec=_0x8961c5,_0x2361f3=await Promise[_0x59bdec(0x12c)](_0x344f47);_0x344f47=[];for(const _0x2885c9 of _0x2361f3){if(_0x2885c9===undefined)continue;if(_0x2885c9[_0x59bdec(0x1c3)]===_0x59bdec(0x19e)||_0x2885c9[_0x59bdec(0x1c3)][_0x59bdec(0x220)](_0x59bdec(0x21e))||isExcluded(_0x2885c9[_0x59bdec(0x1c3)],_0x3c0547))continue;if(_0x2885c9[_0x59bdec(0x200)]===_0x59bdec(0x122))_0x26996c[_0x59bdec(0x1c5)](_0x2885c9[_0x59bdec(0x1c3)]);_0x4cb656[_0x59bdec(0x1c5)](_0x2885c9);if(_0x4cb656[_0x59bdec(0x156)]>=_0x553099){_0x25e72e=!![];break;}}};for await(const _0x5de84 of _0x285624){const _0x206229=_0x3894c2==='.'?_0x5de84[_0x8961c5(0x23b)]:posix[_0x8961c5(0x1cd)](_0x3894c2[_0x8961c5(0x141)]('\x5c','/'),_0x5de84[_0x8961c5(0x23b)]);if(_0x206229===_0x8961c5(0x19e)||_0x206229[_0x8961c5(0x220)](_0x8961c5(0x21e))||isExcluded(_0x206229,_0x3c0547))continue;_0x344f47[_0x8961c5(0x1c5)](inspectWorkspaceIndexEntry(_0x49d67e,_0x206229,_0x5de84[_0x8961c5(0x23b)]));if(_0x344f47[_0x8961c5(0x156)]>=FILE_INDEX_METADATA_CONCURRENCY)await _0x19d03a();if(_0x25e72e)break;}if(!_0x25e72e&&_0x344f47[_0x8961c5(0x156)]>-0x2ca+0x680+0xa*-0x5f)await _0x19d03a();}this[_0x8961c5(0x1a5)]=_0x49d67e,this[_0x8961c5(0x136)]=_0x4cb656,this[_0x8961c5(0x208)]=_0x25e72e,this[_0x8961c5(0x20a)]=fileIndexSignature(_0x4cb656,_0x25e72e),this[_0x8961c5(0x11c)]=![],this[_0x8961c5(0x1fe)]?.[_0x8961c5(0x13d)]();try{this[_0x8961c5(0x1fe)]=watch(_0x49d67e,{'persistent':![],'recursive':!![]},(_0x502259,_0xc7ce0e)=>{const _0x44780e=_0x8961c5;if(_0xc7ce0e!==null){const _0x2c0a8f=_0xc7ce0e[_0x44780e(0x1f4)]()[_0x44780e(0x141)]('\x5c','/');if(_0x2c0a8f===_0x44780e(0x19e)||_0x2c0a8f[_0x44780e(0x220)](_0x44780e(0x21e))||isExcluded(_0x2c0a8f,_0x3c0547))return;}this[_0x44780e(0x18d)]();}),this[_0x8961c5(0x1fe)]['on'](_0x8961c5(0x146),()=>{const _0x477ca3=_0x8961c5;this[_0x477ca3(0x18d)](),this[_0x477ca3(0x1fe)]?.[_0x477ca3(0x13d)](),this[_0x477ca3(0x1fe)]=undefined,this[_0x477ca3(0x13f)]();});}catch{this[_0x8961c5(0x1fe)]=undefined,this[_0x8961c5(0x13f)]();}}[_0x1a5b06(0x13f)](){const _0x1f5a41=_0x1a5b06;if(this[_0x1f5a41(0x17f)]!==undefined)return;this[_0x1f5a41(0x17f)]=setInterval(()=>void this[_0x1f5a41(0x1fa)](),FILE_INDEX_FALLBACK_POLL_MS),this[_0x1f5a41(0x17f)][_0x1f5a41(0x1f8)]();}async[_0x1a5b06(0x1fa)](){const _0x2828e0=_0x1a5b06;if(this[_0x2828e0(0x1dd)]!==undefined)return;const _0x183921=this[_0x2828e0(0x20a)];this[_0x2828e0(0x11c)]=!![];try{await this[_0x2828e0(0x19b)]();if(_0x183921!==this[_0x2828e0(0x20a)])this[_0x2828e0(0x182)][_0x2828e0(0x13e)]?.();}catch{this[_0x2828e0(0x11c)]=![];}}[_0x1a5b06(0x18d)](){const _0x11a829=_0x1a5b06;if(this[_0x11a829(0x11c)])return;this[_0x11a829(0x11c)]=!![],this[_0x11a829(0x182)][_0x11a829(0x13e)]?.();}}function fileIndexSignature(_0x1d7c12,_0x5646e9){const _0x96c8c2=_0x1a5b06,_0x51cdeb=createHash(_0x96c8c2(0x177));_0x51cdeb[_0x96c8c2(0x1a7)](_0x5646e9?'1\x00':'0\x00');for(const _0x3d67d2 of _0x1d7c12)_0x51cdeb[_0x96c8c2(0x1a7)](_0x3d67d2[_0x96c8c2(0x1c3)]+'\x00'+String(_0x3d67d2[_0x96c8c2(0x227)])+'\x00'+String(_0x3d67d2[_0x96c8c2(0x137)])+'\x00');return _0x51cdeb[_0x96c8c2(0x16b)](_0x96c8c2(0x175));}async function workspaceExcludePatterns(_0x4e1aed){const _0x197cd2=_0x1a5b06,_0x5bb8ee=resolve(_0x4e1aed,_0x197cd2(0x161)),_0x48d961=await readFile(_0x5bb8ee,_0x197cd2(0x1ea))[_0x197cd2(0x203)](JSON[_0x197cd2(0x147)])[_0x197cd2(0x1b3)](()=>undefined);if(typeof _0x48d961!==_0x197cd2(0x219)||_0x48d961===null)return[];return[_0x197cd2(0x167),_0x197cd2(0x195)][_0x197cd2(0x144)](_0x3ecc25=>{const _0x16df77=_0x197cd2,_0x3ed8e3=_0x48d961[_0x3ecc25];return typeof _0x3ed8e3===_0x16df77(0x219)&&_0x3ed8e3!==null?Object[_0x16df77(0x136)](_0x3ed8e3)[_0x16df77(0x144)](([_0x333c86,_0x247cd0])=>_0x247cd0===!![]?[_0x333c86]:[]):[];});}function isExcluded(_0xa753d4,_0x3975da){const _0x32dd1f=_0x1a5b06;return _0x3975da[_0x32dd1f(0x212)](_0x181e5f=>minimatch(_0xa753d4,_0x181e5f,{'dot':!![],'nocase':_0x4dde61()!==_0x32dd1f(0x14e)})||minimatch(_0xa753d4+'/',_0x181e5f,{'dot':!![],'nocase':_0x4dde61()!==_0x32dd1f(0x14e)}));}function compareRankedCandidate(_0x3adec6,_0x4caf90){const _0x1a8672=_0x1a5b06;return _0x4caf90[_0x1a8672(0x155)]-_0x3adec6[_0x1a8672(0x155)]||_0x3adec6[_0x1a8672(0x236)][_0x1a8672(0x1c3)][_0x1a8672(0x1ae)](_0x4caf90[_0x1a8672(0x236)][_0x1a8672(0x1c3)]);}class RankedCandidateHeap{[_0x1a5b06(0x172)];[_0x1a5b06(0x14f)]=[];constructor(_0x51d70c){const _0x159a57=_0x1a5b06;this[_0x159a57(0x172)]=_0x51d70c;}[_0x1a5b06(0x1c9)](_0x187362){const _0x4fd326=_0x1a5b06;if(this[_0x4fd326(0x14f)][_0x4fd326(0x156)]<this[_0x4fd326(0x172)]){this[_0x4fd326(0x14f)][_0x4fd326(0x1c5)](_0x187362),this[_0x4fd326(0x14d)](this[_0x4fd326(0x14f)][_0x4fd326(0x156)]-(-0x1559+0x908+0xc52));return;}if(compareRankedCandidate(_0x187362,this[_0x4fd326(0x14f)][0x20b5*0x1+-0x1f4e+-0x167])>=0x1c7a+-0x7c3*0x4+0x292)return;this[_0x4fd326(0x14f)][-0x1017+-0x1*-0xc06+0x411]=_0x187362,this[_0x4fd326(0x140)](-0x1bd3+0x1*0x230c+-0x739);}[_0x1a5b06(0x154)](){const _0x226e38=_0x1a5b06;return[...this[_0x226e38(0x14f)]][_0x226e38(0x1a1)](compareRankedCandidate);}[_0x1a5b06(0x14d)](_0x28de30){const _0xc7c7a=_0x1a5b06;let _0x32e599=_0x28de30;while(_0x32e599>-0x2*0xb61+-0xb27+-0x21e9*-0x1){const _0x435596=Math[_0xc7c7a(0x229)]((_0x32e599-(0x2*0x845+0x15*-0xab+0x141*-0x2))/(0x12a9+0x2*0xc1+-0x1429));if(compareRankedCandidate(this[_0xc7c7a(0x14f)][_0x32e599],this[_0xc7c7a(0x14f)][_0x435596])<=-0x244f+0xf08+0x1547)break;[this[_0xc7c7a(0x14f)][_0x32e599],this[_0xc7c7a(0x14f)][_0x435596]]=[this[_0xc7c7a(0x14f)][_0x435596],this[_0xc7c7a(0x14f)][_0x32e599]],_0x32e599=_0x435596;}}[_0x1a5b06(0x140)](_0x5256e2){const _0x106656=_0x1a5b06;let _0x1f45b9=_0x5256e2;while(!![]){const _0x65417c=_0x1f45b9*(0x1fa9*-0x1+0xc5*0x32+-0x6cf)+(-0x16ff+0x1845+-0x145);if(_0x65417c>=this[_0x106656(0x14f)][_0x106656(0x156)])return;const _0x102d8f=_0x65417c+(-0xb*-0x32+0x18*-0x4e+0x52b),_0x52222a=_0x102d8f<this[_0x106656(0x14f)][_0x106656(0x156)]&&compareRankedCandidate(this[_0x106656(0x14f)][_0x102d8f],this[_0x106656(0x14f)][_0x65417c])>0x119b+-0x3*0x97+-0xfd6?_0x102d8f:_0x65417c;if(compareRankedCandidate(this[_0x106656(0x14f)][_0x52222a],this[_0x106656(0x14f)][_0x1f45b9])<=-0x214c+0x1*0x4d7+0x1c75*0x1)return;[this[_0x106656(0x14f)][_0x1f45b9],this[_0x106656(0x14f)][_0x52222a]]=[this[_0x106656(0x14f)][_0x52222a],this[_0x106656(0x14f)][_0x1f45b9]],_0x1f45b9=_0x52222a;}}}function fuzzyPathScore(_0x4500d6,_0x5cec85){const _0x58e074=_0x1a5b06,_0x26b02d=_0x4500d6[_0x58e074(0x130)](),_0x5dcb06=_0x5cec85[_0x58e074(0x199)]()[_0x58e074(0x130)]();let _0x2b1522=0x145*-0x1+0x1d8b+-0x1c46,_0x3debcf=-0x39c+0xd*-0xa0+0x4*0x2ef,_0xaf82e3=-(0x26*-0xa3+0xf73+0x2eb*0x3);for(const _0x1b84a7 of _0x5dcb06){const _0x2dfc0b=_0x26b02d[_0x58e074(0x158)](_0x1b84a7,_0x2b1522);if(_0x2dfc0b===-(0x3*-0x133+0x8*-0x23b+0x1572))return-(-0xc38*0x3+-0x15f5+0x3a9e);_0x3debcf+=_0x2dfc0b===_0xaf82e3+(0x1a30+0x3e4+-0x1e13)?-0x1330+-0x4f*0x3b+0x9*0x429:0x2*0x1012+0x7c8+-0x1*0x27eb;if(_0x2dfc0b===-0x1769*-0x1+0x1c9a*-0x1+0x531||_0x58e074(0x164)[_0x58e074(0x20c)](_0x26b02d[_0x2dfc0b-(-0x1ebd*0x1+0x633*-0x5+0x5*0xc59)]??''))_0x3debcf+=0x1*-0x1631+-0x2*-0xa+-0x1*-0x1625;_0xaf82e3=_0x2dfc0b,_0x2b1522=_0x2dfc0b+(0x3e*-0x6d+0x2146+-0x6df*0x1);}const _0x1c5605=_0x4500d6[_0x58e074(0x1d2)](_0x4500d6[_0x58e074(0x228)]('/')+(0x60d+-0x1*0xef5+0x8e9))[_0x58e074(0x130)]();if(_0x1c5605[_0x58e074(0x20c)](_0x5dcb06))_0x3debcf+=0xfcc+-0xb*-0xcd+0x239*-0xb;else{if(_0x26b02d[_0x58e074(0x20c)](_0x5dcb06))_0x3debcf+=-0x2362+-0x2539*-0x1+-0x5*0x5b;}return _0x3debcf-_0x4500d6[_0x58e074(0x156)]/(-0x2*0xde6+-0x2*0xf6a+0x3e88);}function _0xe7db(){const _0x26c148=['rKLmrv9ot1rFrK9vtKq','BgLTAxrZ','ywn0Aw9U','kIOVyM93zxjFy29TCg9Uzw50CY8QkG','zxHLyW','uKvnt1rf','C3rYAw5NAwz5','ls1MB3jTyxq9jsHYzwzUyw1LksuWosuOCMvMBMfTztPZAg9YDcKLmdKLkg9IAMvJDg5HBwuPjta5jsHirufeksuWosuOC3LTCMvMkq','kIOVyMLUlYOQ','kIOVDgvZDc9YDw5ZlYOQ','CMvMCY9OzwfKCY8','ls11BNrYywnRzwqTzMLSzxm9ywXS','Aw52ywXPzgf0zq','qureruq','yMLUyxj5','ls1TyxGTy291BNq9','rKLmrv9trufsq0HFteLnsvrFrvHdruveruq','q1jfqvrfx0zjteu','uKvbrfK','zMLUywXSEq','C2vHCMnOlMv4y2X1zgu','zMLUza','zgf0yq','kIOVlMDPDc8QkG','DhjPBq','r0Lux0Hju1rpuLLFq1vsu09sx0LovKfmsuq','zw5ZDxjLtg9HzgvK','ywXSB2nvBNnHzMu','ls1YB290','lMDPDa','B2jZzxj2zq','CMvWBgfJzq','C29YDa','v09ss1nqqunfx0rjuKvdve9swv9oqu1fx0LovKfmsuq','ruvysvnu','yMfZzty0','CM9VDa','kIOVDMvUDI8QkG','DxbKyxrL','ls1ZAg9YDa','rKLmrv9srvzju0LptL9jtLzbteLe','Bwv0ywrHDge','vu5uuKfds0ve','zxHWAxj5vgLTzxi','z2L0','Bg9JywXLq29TCgfYzq','CMvIDwLSza','ls1ZA2LWpq','mJfTz1fpuwS','kIOVlMDYywrSzs8QkG','y2f0y2G','BhmTzMLSzxm','C3rHDhvZ','C3bSAxq','l2rLDI9UDwXS','pZ8G','AxntEw1IB2XPy0XPBMS','ls1ICMfUy2G','ls1LEgnSDwrLlxn0yw5KyxjK','C3rYAw5N','igj5DgvZpq','DxrMltG','sevbrca','kIOVy292zxjHz2uVkIO','u0Lhs0Lmta','kIOVlNbHCMnLBc1JywnOzs8QkG','Cgf0Aa','y29UDgvUDenHBMrPzgf0zxm','ChvZAa','iYmG','CMv2lxbHCNnL','ls1Yzwn1CNnPDMu','ywrK','rKLmrv9ut09Ftefsr0u','lM1HCI11CgXVywqT','mtmYrfPfthfb','AM9PBG','v09ss1nqqunfx0rfvKLdrv9qqvrix1jfsKvdveve','CMvMCY9Yzw1VDgvZ','kIOVDMvUzg9YlYOQ','D2LUmZi','C2XPy2u','ru5pru5u','tu9esuzjruq','yMXVyG','zw50CNLmAw1PDa','kIOVlMnHy2HLlYOQ','C2v0','ner2rNfiBq','kIOVlNr1CMjVlYOQ','zM9YlwvHy2GTCMvM','Dg91y2G','Bg9HzgLUzW','mJb6A3rjvMu','q09qsuve','ls1KyxrLlw9YzgvY','rKLmrv9qqvrix0vtq0fqrq','ls1ZDgfNzwq','zgLZCg9Zzq','AxneAxjLy3rVCNK','BwLU','ls1MB3jTyxq9juGLEdaWjvaLEdaWjwfUjxGWmcvHzsv4mdaLy3qLEdaWjxm','C2vHCMnO','y29Kzq','zMLSDgvY','DxrMoa','zgLMzI10CMvL','vfLqrv9dsefor0ve','kIOVyNvPBgqVkIO','r0Lux0niqu5hrv9srvnut1jfx1voqvzbsuXbqKXf','r0Lux1DpuKTtuefdrq','kIOVzgLZDc8QkG','revmrvrf','B25Jzq','r0Lux1jfrL9jtLzbteLe','Dg9tDhjPBMC','yMLUyxj5igrPzMyGC2HHmJu2pq','v09ss1nqqunfx1bbveHFsu5wquXjra','rKLmrv9ot1rFvevyva','Dw5Yzwy','zgLMzG','Cg9SBezHBgXIywnR','mta1odm4nefWrunUDq','kIOVDgfYz2v0lYOQ','kIOVlMfUz3vSyxiVkIO','D2f0y2HLCG','AxngAwXL','A2LUza','kIOVBM9Kzv9TB2r1BgvZlYOQ','ls1MB3jTyxq9','DgHLBG','kIOVlNbUCg0VkIO','ls10B3bVlw9YzgvY','ls1XDwLLDa','zNjVBq','Dhj1BMnHDgvK','y3vYC29Y','C2LNBMf0DxjL','zgvJB2rL','Aw5JBhvKzxm','mtbvB01pBg0','kIOVB2jQlYOQ','kIOVlNn2zwX0zs1RAxqVkIO','AwDUB3jL','C2HVDW','C29Tzq','AxnjBNrLz2vY','oIHSAxrLCMfSkq','ls1NAxqTy29TBw9UlwrPCG','yNL0zuXLBMD0Aa','Dg9vChbLCKnHC2u','mJe3mZaYv2XnD2Xg','B2jQzwn0','r0Lux0Hju1rpuLLFuKvgx0LovKfmsuq','v09ss1nqqunfx0rjuKvdve9swv9fweLtvfm','ls12zxjPzNK','sevbra','lMDPDc8','C3LTyM9SAwmTCMvM','C3rHCNrZv2L0Aa','lM1HCI1LzgL0lq','q1jfqvrfx0rjuKvdve9swq','C2HPzNq','ls1UBY1JB21TAxqTAwq','kIOVlNzLBNyVkIO','ls1Uyw1Llxn0yxr1CW','C2L6zq','BgfZDeLUzgv4t2y','zMXVB3i','CMvMCY9Yzw1VDgvZlW','ls1UBY10zxH0y29UDG','B3v0Chv0','Bg9N','nde1otf0EMjeqMW','CxvLCNK','qMLUyxj5igzPBgvZia','BwfW','ls1UBY1LEhqTzgLMzG','y2f0lwzPBgu','y29Uy2f0','ls1WB3jJzwXHAw49DJe','zw50CNK','yMfZzty0DxjS','ls13B3jRDhjLzq','Bwf4','ls1ZB3vYy2u9sevbra','BMfTzq','C3vIyxjYyxK','C3rHBgu','ls1MAxjZDc1WyxjLBNq','C3rKB3v0','lI4U','r0Lux0nptu1btKrFrKfjteve','r0Lux0Hju1rpuLLFq09ntuLux0LovKfmsuq','reLsrunut1jz','CMvSyxrPDMu','D29YA3nWywnLuM9VDa','mtm2mJe0nxDLv1nzyW','u1rbr0ve','kIOVlM51EhqVkIO','BwvZC2fNzq','BwvYz2uTyMfZzq','zgLZCgXHEu5HBwu','rvHju1rtx0zjteu','ywXS','BgLTAxq','rvHju1rtx0rjuKvdve9swq','ls1VDgHLCNm','Dg9mB2nHBgvmB3DLCKnHC2u','r0Lux1jfue9tsvrpuLLFsu5wquXjra','Aw52ywXPza','nZu0mZjeuhnKENO','CgLWzq','CMvMCW','zw50CMLLCW','Bw9KAwzPzwrbDa','AwrSzvr0Be1Z','BxrPBwvnCW','kIOVB3v0lYOQ','A2LSBa','AxnbyNnVBhv0zq','y2XVC2u','B25jBNzHBgLKyxrLza','C3rHCNrgywXSyMfJA1bVBgXPBMC','C2LUA0rVD24','CMvWBgfJzufSBa','su5wquXjrf9oqu1f','mteWmJy1m3HJqNbJDa','zMXHDe1HCa','uKvoqu1fra','zxjYB3i','CgfYC2u','v09ss1nqqunfx1bmqvrgt1jnx1vou1vque9sveve','te9dquW','CMvHza','ntmWmJG5y2Dgsfr0','kIOVx19WEwnHy2HLx18VkIO','yNvIyMXLvxa','BgLUDxG','DMfSDwvZ','BM9YBwfSAxPL','Bw9Kzq','ls1UBY1PBMrLEa','Dgv4Da','C29YDgvK','C2nVCMu','BgvUz3rO','rKLmrv9st09ux01vvefusu9ox0LovKfmsuq','Aw5KzxHpzG','Dg9mB3DLCKnHC2u','B2zMC2v0','v09ss1nqqunfx05pvf9bteXpv0ve','CMvZDg9Yzq','AgfZAa','ls1PCY1HBMnLC3rVCG','rKLmrv9xuKLurv9dt05gteLdva','rKLmrv9squ5hrv9jtLzbteLe','lNzZy29Kzs9Zzxr0Aw5NCY5QC29U','rKLmrv9ot1rFuKvhvuXbuG','zMLUz2vYChjPBNq','lY5Flq','v09ss1nqqunfx0rjuKvdve9swv9ot1rFquXmt1Dfra','v09ss1nqqunfx1bbveHFtK9ux0fcu09mvvrf','zMLSzxmUzxHJBhvKzq','rKLmrv9btfjfqurzx0vysvnuuW','C3rKzxjY','DgvZDa','zgLNzxn0','zMLUzeLUzgv4','lNbHCNq','kIOVlM5LEhqVkIO','AxntywzLsw50zwDLCG','CMvMCY9OzwfKCW','kIOVlNLHCM4VkIO','y2fWywnPDhK','vu5tvefhruq','revmrvrfra','Agv4','C3vIBw9KDwXL','C2HHmJu2','rKLmrv9ot1rFreLsrunut1jz','z2v0','zgvZDgLUyxrPB24','rKLmrq','y2HHBMDLCW','r0Lux0Hju1rpuLLFteLnsvrFsu5wquXjra','reLsrunut1jzx0nvuLnpuL9jtLzbteLe','zMfSBgjHy2TuAw1LCG','rKLmrv9nt1zfx0rfu0nftKrbtLrFsu5wquXjra'];_0xe7db=function(){return _0x26c148;};return _0xe7db();}export async function listWorkspaceDirectories(_0x1ff005,_0x24341f,_0x227102=homedir()){const _0x3b51e8=_0x1a5b06,_0x54fcb8=await realpath(_0x227102),_0x34ae2e=await Promise[_0x3b51e8(0x12c)](_0x24341f[_0x3b51e8(0x231)](_0x8c6ffb=>realpath(_0x8c6ffb))),_0x90c27e=[...new Set([_0x54fcb8,..._0x34ae2e])],_0x3960c2=_0x1ff005===undefined?_0x34ae2e[0x2da+-0x19e1+-0xf*-0x189]??_0x54fcb8:await realpath(_0x1ff005),_0x260461=await stat(_0x3960c2);if(!_0x260461[_0x3b51e8(0x1e4)]()||!isWithinAllowedRoot(_0x3960c2,_0x90c27e))throw new Error(_0x3b51e8(0x165));const _0x2dbaac=await readdir(_0x3960c2,{'withFileTypes':!![]}),_0x1ec569=[];for(const _0x48c4df of _0x2dbaac[_0x3b51e8(0x1a1)]((_0x4b48e4,_0x570e3c)=>_0x4b48e4[_0x3b51e8(0x23b)][_0x3b51e8(0x1ae)](_0x570e3c[_0x3b51e8(0x23b)]))){if(!_0x48c4df[_0x3b51e8(0x1e4)]()&&!_0x48c4df[_0x3b51e8(0x1b9)]())continue;const _0x1e7c0=await realpath(resolve(_0x3960c2,_0x48c4df[_0x3b51e8(0x23b)]))[_0x3b51e8(0x1b3)](()=>undefined);if(_0x1e7c0===undefined||!isWithinAllowedRoot(_0x1e7c0,_0x90c27e))continue;const _0x3e7b83=await stat(_0x1e7c0)[_0x3b51e8(0x1b3)](()=>undefined);if(_0x3e7b83===undefined||!_0x3e7b83[_0x3b51e8(0x1e4)]())continue;_0x1ec569[_0x3b51e8(0x1c5)]({'path':_0x1e7c0,'name':_0x48c4df[_0x3b51e8(0x23b)],'selectable':isWithinAllowedRoot(_0x1e7c0,_0x34ae2e)});if(_0x1ec569[_0x3b51e8(0x156)]>DIRECTORY_PICKER_LIMIT)break;}const _0x59a273=dirname(_0x3960c2);return{'homePath':_0x54fcb8,'currentPath':_0x3960c2,'parentPath':_0x59a273===_0x3960c2||!isWithinAllowedRoot(_0x59a273,_0x90c27e)?null:_0x59a273,'browseRoots':_0x34ae2e,'selectable':isWithinAllowedRoot(_0x3960c2,_0x34ae2e),'entries':_0x1ec569[_0x3b51e8(0x1d2)](-0x1c9*0x3+-0x147e+0x19d9,DIRECTORY_PICKER_LIMIT),'truncated':_0x1ec569[_0x3b51e8(0x156)]>DIRECTORY_PICKER_LIMIT};}export async function listWorkspaceFiles(_0x3dd5d9,_0x1f4472='.',_0x38d511,_0x3d998f=DIRECTORY_PAGE_LIMIT){const _0x5e4d94=_0x1a5b06;if(!Number[_0x5e4d94(0x16f)](_0x3d998f)||_0x3d998f<0xfef*0x1+-0x1800+0x812||_0x3d998f>DIRECTORY_PAGE_LIMIT)throw new Error(_0x5e4d94(0x17e));const _0x2e7298=await resolveRegisteredWorkspaceRoot(_0x3dd5d9),_0x55c03a=await resolveWorkspaceEntryFromCanonicalRoot(_0x2e7298,_0x1f4472,!![]),_0x36a13b=await readdir(_0x55c03a,{'withFileTypes':!![]}),_0x58673f=decodeDirectoryCursor(_0x38d511,_0x1f4472),_0x43fae2=_0x36a13b[_0x5e4d94(0x1e9)](_0x359a3b=>_0x359a3b[_0x5e4d94(0x23b)]!==_0x5e4d94(0x19e)&&!isWorkspaceUploadTemporaryName(_0x359a3b[_0x5e4d94(0x23b)]))[_0x5e4d94(0x231)](_0x3da14c=>_0x3da14c[_0x5e4d94(0x23b)])[_0x5e4d94(0x1a1)]((_0x4536fe,_0x25f336)=>_0x4536fe[_0x5e4d94(0x1ae)](_0x25f336)),_0x29aa17=_0x58673f===undefined?-0x904+-0x1465*-0x1+-0x3cb*0x3:_0x43fae2[_0x5e4d94(0x16c)](_0xcaa35a=>_0xcaa35a>_0x58673f);if(_0x58673f!==undefined&&_0x29aa17===-(-0x376+-0x6fa*0x2+0x116b))return{'entries':[],'nextCursor':null,'truncated':![]};const _0x4ebb70=_0x43fae2[_0x5e4d94(0x1d2)](_0x29aa17,_0x29aa17+_0x3d998f),_0x412a5b=[];for(const _0x1cb578 of _0x4ebb70){const _0x1c0a2d=await resolveWorkspaceEntry(_0x2e7298,relative(_0x2e7298,resolve(_0x55c03a,_0x1cb578)),![])[_0x5e4d94(0x1b3)](_0x4456f5=>{if(isSkippableWorkspaceEntryError(_0x4456f5))return undefined;throw _0x4456f5;});if(_0x1c0a2d===undefined)continue;const _0x5d0a39=await lstat(_0x1c0a2d)[_0x5e4d94(0x1b3)](_0x50a04c=>{const _0x336324=_0x5e4d94;if(_0x50a04c[_0x336324(0x1e8)]===_0x336324(0x1d3))return undefined;throw _0x50a04c;});if(_0x5d0a39===undefined||!_0x5d0a39[_0x5e4d94(0x1ff)]()&&!_0x5d0a39[_0x5e4d94(0x1e4)]())continue;_0x412a5b[_0x5e4d94(0x1c5)]({'path':relative(_0x2e7298,_0x1c0a2d)[_0x5e4d94(0x1b6)](sep)[_0x5e4d94(0x1cd)]('/'),'name':_0x1cb578,'kind':_0x5d0a39[_0x5e4d94(0x1e4)]()?_0x5e4d94(0x122):_0x5e4d94(0x17b),'size':_0x5d0a39[_0x5e4d94(0x1ff)]()?_0x5d0a39[_0x5e4d94(0x227)]:null,'modifiedAt':_0x5d0a39[_0x5e4d94(0x139)]});}const _0x46a7fd=_0x43fae2[_0x29aa17+_0x4ebb70[_0x5e4d94(0x156)]];return{'entries':_0x412a5b,'nextCursor':_0x46a7fd===undefined||_0x4ebb70[_0x5e4d94(0x156)]===0x1983+-0xe9*-0x7+-0x1fe2?null:encodeDirectoryCursor(_0x1f4472,_0x4ebb70[_0x4ebb70[_0x5e4d94(0x156)]-(-0x1950+-0x60*-0x21+0x1*0xcf1)]),'truncated':_0x46a7fd!==undefined};}export async function mutateWorkspaceFile(_0x596931,_0x47b947){const _0x213a70=_0x1a5b06,_0x396e4d=await resolveRegisteredWorkspaceRoot(_0x596931);if(_0x47b947[_0x213a70(0x183)]===_0x213a70(0x192)||_0x47b947[_0x213a70(0x183)]===_0x213a70(0x222)){const _0x3b4a95=await resolveNewWorkspaceEntry(_0x396e4d,_0x47b947[_0x213a70(0x1c3)]);if(_0x47b947[_0x213a70(0x183)]===_0x213a70(0x192))await writeFile(_0x3b4a95,'',{'flag':'wx'});else await mkdir(_0x3b4a95);return{'path':workspaceRelativePath(_0x396e4d,_0x3b4a95)};}await assertWorkspaceMutationPathHasNoSymlinks(_0x396e4d,_0x47b947[_0x213a70(0x1c3)]);const _0x490d7e=await resolveWorkspaceEntryMetadata(_0x396e4d,_0x47b947[_0x213a70(0x1c3)]);if(workspaceRelativePath(_0x396e4d,_0x490d7e[_0x213a70(0x1c3)])==='.')throw new Error(_0x213a70(0x157));if(_0x47b947[_0x213a70(0x183)]===_0x213a70(0x1f1))return await rm(_0x490d7e[_0x213a70(0x1c3)],{'recursive':_0x490d7e[_0x213a70(0x1aa)][_0x213a70(0x1e4)](),'force':![]}),{'deleted':!![]};const _0x575c2c=await resolveNewWorkspaceEntry(_0x396e4d,_0x47b947[_0x213a70(0x17a)]);if(_0x490d7e[_0x213a70(0x1aa)][_0x213a70(0x1e4)]()){const _0x264422=relative(_0x490d7e[_0x213a70(0x1c3)],_0x575c2c);if(_0x264422===''||!isAbsolute(_0x264422)&&_0x264422!=='..'&&!_0x264422[_0x213a70(0x220)]('..'+sep))throw new Error(_0x213a70(0x180));}return await rename(_0x490d7e[_0x213a70(0x1c3)],_0x575c2c),{'path':workspaceRelativePath(_0x396e4d,_0x575c2c)};}async function resolveNewWorkspaceEntry(_0x793728,_0x171388){const _0x18d0e3=_0x1a5b06,_0xedcfc9=_0x171388[_0x18d0e3(0x141)]('\x5c','/'),_0x53f1cf=_0xedcfc9[_0x18d0e3(0x1b6)]('/'),_0x1e064c=_0x53f1cf['at'](-(0x4*-0x143+-0x6a5*0x3+0x18fc));if(_0x171388[_0x18d0e3(0x20c)]('\x00')||_0xedcfc9[_0x18d0e3(0x220)]('/')||isAbsolute(_0x171388)||win32[_0x18d0e3(0x13c)](_0xedcfc9)||_0x1e064c===undefined||_0x1e064c[_0x18d0e3(0x156)]===0x100*-0x1c+-0xa08+0x2*0x1304||_0x53f1cf[_0x18d0e3(0x212)](invalidWorkspaceMutationSegment))throw new Error(_0x18d0e3(0x1e1));const _0x34df43=_0x53f1cf[_0x18d0e3(0x156)]===0x184c+-0x238c+0xb41?'.':_0x53f1cf[_0x18d0e3(0x1d2)](-0x1*0xc59+-0x38d+0xfe6,-(-0x3*-0x14b+0x2*-0x1216+-0x2*-0x1026))[_0x18d0e3(0x1cd)]('/');await assertWorkspaceMutationPathHasNoSymlinks(_0x793728,_0x34df43);const _0x54affb=await resolveWorkspaceEntryFromCanonicalRoot(_0x793728,_0x34df43,!![]),_0x232787=resolve(_0x54affb,_0x1e064c);try{await lstat(_0x232787);throw new Error(_0x18d0e3(0x168));}catch(_0x5c56b8){if(_0x5c56b8[_0x18d0e3(0x1e8)]!==_0x18d0e3(0x1d3))throw _0x5c56b8;}return _0x232787;}async function assertWorkspaceMutationPathHasNoSymlinks(_0x3870c1,_0x45b67b){const _0xad2258=_0x1a5b06,_0x39758f=_0x45b67b[_0xad2258(0x141)]('\x5c','/');if(_0x39758f==='.')return;const _0x5edfa7=_0x39758f[_0xad2258(0x1b6)]('/');if(_0x45b67b[_0xad2258(0x20c)]('\x00')||_0x39758f[_0xad2258(0x220)]('/')||isAbsolute(_0x45b67b)||win32[_0xad2258(0x13c)](_0x39758f)||_0x5edfa7[_0xad2258(0x212)](invalidWorkspaceMutationSegment))throw new Error(_0xad2258(0x1e1));let _0x33d4ed=_0x3870c1;for(const _0x49141f of _0x5edfa7){_0x33d4ed=resolve(_0x33d4ed,_0x49141f);const _0x4be11f=await lstat(_0x33d4ed)[_0xad2258(0x1b3)](_0x4c0dca=>{const _0x298825=_0xad2258;if(_0x4c0dca[_0x298825(0x1e8)]===_0x298825(0x1d3))throw new Error(_0x298825(0x181));throw _0x4c0dca;});if(_0x4be11f[_0xad2258(0x1b9)]())throw new Error(_0xad2258(0x1e1));}}function invalidWorkspaceMutationSegment(_0x31b780){const _0x48126c=_0x1a5b06;if(_0x31b780[_0x48126c(0x156)]===-0x176e+-0x50b+0x1c79||_0x31b780==='.'||_0x31b780==='..'||_0x31b780===_0x48126c(0x19e))return!![];if(_0x4dde61()!==_0x48126c(0x1d1))return![];const _0x1297f3=_0x31b780[_0x48126c(0x1a0)](/[. ]+$/u,'')[_0x48126c(0x217)]();return/[<>:"|?*]/u[_0x48126c(0x16a)](_0x31b780)||/^(?:CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])(?:\..*)?$/u[_0x48126c(0x16a)](_0x1297f3);}function workspaceRelativePath(_0x3579d1,_0x1ae0ed){const _0x280b85=_0x1a5b06,_0x1b62fa=relative(_0x3579d1,_0x1ae0ed)[_0x280b85(0x1b6)](sep)[_0x280b85(0x1cd)]('/');return _0x1b62fa[_0x280b85(0x156)]===-0x1e*-0x11b+-0x10b*-0x23+-0x45ab?'.':_0x1b62fa;}function isSkippableWorkspaceEntryError(_0x27d888){const _0x4eb602=_0x1a5b06;return _0x27d888 instanceof Error&&(_0x27d888[_0x4eb602(0x128)]===_0x4eb602(0x1e1)||_0x27d888[_0x4eb602(0x128)]===_0x4eb602(0x181)||_0x27d888[_0x4eb602(0x128)]===_0x4eb602(0x162));}export async function preflightWorkspaceUpload(_0x459ed6,_0x3220b4,_0x12a7fa){const _0x166f1d=_0x1a5b06;if(_0x12a7fa[_0x166f1d(0x156)]===0x212a+0x230a+-0x4434||_0x12a7fa==='.'||_0x12a7fa==='..'||_0x12a7fa[_0x166f1d(0x20c)]('\x00')||_0x12a7fa[_0x166f1d(0x20c)]('/')||_0x12a7fa[_0x166f1d(0x20c)]('\x5c')||isWorkspaceUploadTemporaryName(_0x12a7fa))return{'path':'','absolutePath':'','status':_0x166f1d(0x142)};const _0x3bd230=await resolveRegisteredWorkspaceRoot(_0x459ed6),_0x10d58b=await resolveWorkspaceEntry(_0x3bd230,_0x3220b4,!![]),_0x55cc87=resolve(_0x10d58b,_0x12a7fa);if(dirname(_0x55cc87)!==_0x10d58b)throw new Error(_0x166f1d(0x1e1));const _0x1fda66=relative(_0x3bd230,_0x55cc87)[_0x166f1d(0x1b6)](sep)[_0x166f1d(0x1cd)]('/'),_0x171476=await lstat(_0x55cc87)[_0x166f1d(0x1b3)](_0x47faf6=>{const _0x585369=_0x166f1d;if(_0x47faf6[_0x585369(0x1e8)]===_0x585369(0x1d3))return undefined;throw _0x47faf6;});if(_0x171476===undefined)return{'path':_0x1fda66,'absolutePath':_0x55cc87,'status':_0x166f1d(0x193)};if(_0x171476[_0x166f1d(0x1b9)]())throw new Error(_0x166f1d(0x1e1));if(_0x171476[_0x166f1d(0x1ff)]())return{'path':_0x1fda66,'absolutePath':_0x55cc87,'status':_0x166f1d(0x12b)};return{'path':_0x1fda66,'absolutePath':_0x55cc87,'status':_0x166f1d(0x12e)};}export function workspaceUploadTemporaryName(_0x44277e){const _0x146a67=_0x1a5b06;return _0x146a67(0x1cb)+_0x44277e+_0x146a67(0x16d);}function isWorkspaceUploadTemporaryName(_0x2e1c6c){const _0x4a48be=_0x1a5b06;return/^\.mar-upload-[0-9a-f-]{36}\.part$/iu[_0x4a48be(0x16a)](_0x2e1c6c)||/^\.mar-edit-[0-9a-f-]{36}\.part$/iu[_0x4a48be(0x16a)](_0x2e1c6c);}export async function readWorkspaceTextFile(_0x5d4644,_0x54dca5,_0x3a6a60=-0x4db*-0x1+0xd01*-0x3+0x4*0x88a,_0x361f0e=FILE_READ_LIMIT){const _0xc3d518=_0x1a5b06;if(!Number[_0xc3d518(0x16f)](_0x3a6a60)||_0x3a6a60<0x1*0x211+0x258b+0x14*-0x1fb||!Number[_0xc3d518(0x16f)](_0x361f0e)||_0x361f0e<0x195f+-0x1e*-0xfd+-0x3704||_0x361f0e>FILE_READ_LIMIT)throw new Error(_0xc3d518(0x160));const _0x475522=await resolveRegisteredWorkspaceRoot(_0x5d4644),_0x2628ac=await resolveWorkspaceEntry(_0x475522,_0x54dca5,![]),_0x48fc02=await lstat(_0x2628ac);if(!_0x48fc02[_0xc3d518(0x1ff)]())throw new Error(_0xc3d518(0x162));if(_0x48fc02[_0xc3d518(0x227)]>FILE_READ_LIMIT*(-0xe3f+0x22f3+0x4*-0x529))throw new Error(_0xc3d518(0x1ca));const _0x2026a1=await readFile(_0x2628ac),_0x4bf683=createHash(_0xc3d518(0x177))[_0xc3d518(0x1a7)](_0x2026a1)[_0xc3d518(0x16b)](_0xc3d518(0x175)),_0x1e94c6=_0x2026a1[_0xc3d518(0x20c)](0x2*0x42d+-0x31*0x85+0x1d*0x97)||!isValidUtf8(_0x2026a1);if(_0x1e94c6){const _0x9c4c0b=Math[_0xc3d518(0x1e5)](_0x2026a1[_0xc3d518(0x156)],_0x3a6a60+_0x361f0e),_0x41fca7=_0x2026a1[_0xc3d518(0x11b)](_0x3a6a60,_0x9c4c0b);return{'path':relative(_0x475522,_0x2628ac)[_0xc3d518(0x1b6)](sep)[_0xc3d518(0x1cd)]('/'),'encoding':_0xc3d518(0x1a4),'size':_0x2026a1[_0xc3d518(0x156)],'content':_0x41fca7[_0xc3d518(0x1f4)](_0xc3d518(0x1a4)),'truncated':_0x9c4c0b<_0x2026a1[_0xc3d518(0x156)],'nextOffset':_0x9c4c0b<_0x2026a1[_0xc3d518(0x156)]?_0x9c4c0b:null,'revision':_0x4bf683};}if(_0x3a6a60>-0x31f+0xa43*0x1+0x1c9*-0x4&&_0x3a6a60<_0x2026a1[_0xc3d518(0x156)]&&isUtf8ContinuationByte(_0x2026a1[_0x3a6a60]))throw new Error(_0xc3d518(0x160));let _0x512fcd=Math[_0xc3d518(0x1e5)](_0x2026a1[_0xc3d518(0x156)],_0x3a6a60+_0x361f0e);if(_0x512fcd<_0x2026a1[_0xc3d518(0x156)]&&isUtf8ContinuationByte(_0x2026a1[_0x512fcd])){while(_0x512fcd>_0x3a6a60&&isUtf8ContinuationByte(_0x2026a1[_0x512fcd]))_0x512fcd-=-0x3f*0x5d+-0x1*0x16af+-0x3*-0xf31;if(_0x512fcd===_0x3a6a60){_0x512fcd+=-0x714*0x1+-0x2625+0x2d3a;while(_0x512fcd<_0x2026a1[_0xc3d518(0x156)]&&isUtf8ContinuationByte(_0x2026a1[_0x512fcd]))_0x512fcd+=-0xb9*0x11+-0x18ee*-0x1+-0x4*0x329;}}const _0xb546ea=_0x2026a1[_0xc3d518(0x11b)](_0x3a6a60,_0x512fcd),_0x683a70=new TextDecoder(_0xc3d518(0x1be),{'fatal':!![]})[_0xc3d518(0x20b)](_0xb546ea),_0x4d6230=_0x512fcd<_0x2026a1[_0xc3d518(0x156)]?_0x512fcd:null;return{'path':relative(_0x475522,_0x2628ac)[_0xc3d518(0x1b6)](sep)[_0xc3d518(0x1cd)]('/'),'encoding':_0xc3d518(0x1be),'size':_0x2026a1[_0xc3d518(0x156)],'content':_0x683a70,'truncated':_0x4d6230!==null,'nextOffset':_0x4d6230,'revision':_0x4bf683};}export async function writeWorkspaceTextFile(_0x4cb233,_0x4bd847,_0x98983a,_0x4440c9){const _0x5d0275=_0x1a5b06;if(!/^[0-9a-f]{64}$/u[_0x5d0275(0x16a)](_0x4440c9))throw new Error(_0x5d0275(0x1a9));const _0x2dd291=Buffer[_0x5d0275(0x207)](_0x98983a,_0x5d0275(0x1ea));if(_0x2dd291[_0x5d0275(0x156)]>FILE_READ_LIMIT*(-0x1*-0x1e55+-0x89a+-0x15ab))throw new Error(_0x5d0275(0x1ca));if(_0x2dd291[_0x5d0275(0x20c)](-0x24f*-0x4+-0x1*0x2677+0x42d*0x7))throw new Error(_0x5d0275(0x1f7));const _0x2c2ed5=await resolveRegisteredWorkspaceRoot(_0x4cb233);await assertWorkspaceMutationPathHasNoSymlinks(_0x2c2ed5,_0x4bd847);const _0x260f76=await resolveWorkspaceEntry(_0x2c2ed5,_0x4bd847,![]),_0xc8881c=await lstat(_0x260f76);if(!_0xc8881c[_0x5d0275(0x1ff)]())throw new Error(_0x5d0275(0x162));const _0xc79786=await readFile(_0x260f76);if(_0xc79786[_0x5d0275(0x20c)](-0x1f*0x6a+0x340+0x996)||!isValidUtf8(_0xc79786))throw new Error(_0x5d0275(0x1f7));const _0x2ac13a=createHash(_0x5d0275(0x177))[_0x5d0275(0x1a7)](_0xc79786)[_0x5d0275(0x16b)](_0x5d0275(0x175));if(_0x2ac13a!==_0x4440c9)throw new Error(_0x5d0275(0x15f));const _0x561a91=createHash(_0x5d0275(0x177))[_0x5d0275(0x1a7)](_0x2dd291)[_0x5d0275(0x16b)](_0x5d0275(0x175)),_0x2a3b2e=resolve(dirname(_0x260f76),_0x5d0275(0x221)+randomUUID()+_0x5d0275(0x16d));try{await writeFile(_0x2a3b2e,_0x2dd291,{'flag':'wx','mode':_0xc8881c[_0x5d0275(0x151)]}),await rename(_0x2a3b2e,_0x260f76);}finally{await rm(_0x2a3b2e,{'force':!![]})[_0x5d0275(0x1b3)](()=>undefined);}return{'path':workspaceRelativePath(_0x2c2ed5,_0x260f76),'revision':_0x561a91,'size':_0x2dd291[_0x5d0275(0x156)]};}export async function readWorkspaceFileContentRange(_0x9e6b1b,_0x126c38,_0x1a1c3c=0x1*0x1f19+0x262f+-0x4548,_0xebf717=FILE_READ_LIMIT){const _0x1b8efb=_0x1a5b06;if(!Number[_0x1b8efb(0x16f)](_0x1a1c3c)||_0x1a1c3c<0x5*-0x1d2+-0xf*0xf+-0x9fb*-0x1||!Number[_0x1b8efb(0x16f)](_0xebf717)||_0xebf717<-0xd1*-0xa+0x102d+-0x1856||_0xebf717>FILE_READ_LIMIT)throw new Error(_0x1b8efb(0x160));const _0x2ad46d=await resolveRegisteredWorkspaceRoot(_0x9e6b1b),_0x4cebd8=await resolveWorkspaceEntry(_0x2ad46d,_0x126c38,![]),_0x4a57bd=await lstat(_0x4cebd8);if(!_0x4a57bd[_0x1b8efb(0x1ff)]())throw new Error(_0x1b8efb(0x162));if(_0x1a1c3c>_0x4a57bd[_0x1b8efb(0x227)])throw new Error(_0x1b8efb(0x160));const _0x52c9da=Math[_0x1b8efb(0x1e5)](_0xebf717,_0x4a57bd[_0x1b8efb(0x227)]-_0x1a1c3c),_0x308c3a=Buffer[_0x1b8efb(0x19c)](_0x52c9da),_0x5cfc4c=await open(_0x4cebd8,'r');try{const {bytesRead:_0x4ae2f0}=await _0x5cfc4c[_0x1b8efb(0x14a)](_0x308c3a,0x75*0x43+-0xb55*-0x1+0x2cc*-0xf,_0x52c9da,_0x1a1c3c),_0x5c3e7c=_0x1a1c3c+_0x4ae2f0;return{'path':relative(_0x2ad46d,_0x4cebd8)[_0x1b8efb(0x1b6)](sep)[_0x1b8efb(0x1cd)]('/'),'size':_0x4a57bd[_0x1b8efb(0x227)],'offset':_0x1a1c3c,'contentBase64':_0x308c3a[_0x1b8efb(0x11b)](0x2195*-0x1+0x2f*0x13+0x2*0xf0c,_0x4ae2f0)[_0x1b8efb(0x1f4)](_0x1b8efb(0x1a4)),'nextOffset':_0x5c3e7c<_0x4a57bd[_0x1b8efb(0x227)]?_0x5c3e7c:null};}finally{await _0x5cfc4c[_0x1b8efb(0x13d)]();}}export async function readAllowedTextFile(_0x54d52b,_0x2453a8,_0x1193f7=-0x234d+-0x17*0x166+0x4377,_0x3687c3=FILE_READ_LIMIT){const _0x244c58=_0x1a5b06;if(!isAbsolute(_0x54d52b))throw new Error(_0x244c58(0x1e1));const _0xd4f715=await realpath(_0x54d52b)[_0x244c58(0x1b3)](_0x55eda5=>{const _0x38ea4f=_0x244c58;if(_0x55eda5[_0x38ea4f(0x1e8)]===_0x38ea4f(0x1d3))throw new Error(_0x38ea4f(0x181));throw _0x55eda5;}),_0x3f2703=await Promise[_0x244c58(0x12c)](_0x2453a8[_0x244c58(0x231)](_0x56affd=>realpath(_0x56affd)));if(!isWithinAllowedRoot(_0xd4f715,_0x3f2703))throw new Error(_0x244c58(0x1e1));const _0x88bd70=await lstat(_0xd4f715);if(!_0x88bd70[_0x244c58(0x1ff)]())throw new Error(_0x244c58(0x162));if(_0x88bd70[_0x244c58(0x227)]>FILE_READ_LIMIT*(-0x34f+-0x7*-0x3ee+-0x25*0xa7))throw new Error(_0x244c58(0x1ca));if(!Number[_0x244c58(0x16f)](_0x1193f7)||_0x1193f7<-0x7cd*0x4+-0x18d1+0x3805||!Number[_0x244c58(0x16f)](_0x3687c3)||_0x3687c3<-0x1690+-0x1588+0x2c19||_0x3687c3>FILE_READ_LIMIT)throw new Error(_0x244c58(0x160));const _0x1e4c4f=await readFile(_0xd4f715),_0x3d5f8a=_0x1e4c4f[_0x244c58(0x20c)](0xb*-0x383+0xb*-0x211+0xe*0x462)||!isValidUtf8(_0x1e4c4f),_0x3578e1=Math[_0x244c58(0x1e5)](_0x1e4c4f[_0x244c58(0x156)],_0x1193f7+_0x3687c3);if(_0x3d5f8a){const _0x1847f1=_0x1e4c4f[_0x244c58(0x11b)](_0x1193f7,_0x3578e1);return{'path':_0xd4f715,'encoding':_0x244c58(0x1a4),'size':_0x1e4c4f[_0x244c58(0x156)],'content':_0x1847f1[_0x244c58(0x1f4)](_0x244c58(0x1a4)),'truncated':_0x3578e1<_0x1e4c4f[_0x244c58(0x156)],'nextOffset':_0x3578e1<_0x1e4c4f[_0x244c58(0x156)]?_0x3578e1:null};}if(_0x1193f7>0xd51+0x14be+0x1*-0x220f&&_0x1193f7<_0x1e4c4f[_0x244c58(0x156)]&&isUtf8ContinuationByte(_0x1e4c4f[_0x1193f7]))throw new Error(_0x244c58(0x160));let _0xf13ddb=_0x3578e1;if(_0xf13ddb<_0x1e4c4f[_0x244c58(0x156)]&&isUtf8ContinuationByte(_0x1e4c4f[_0xf13ddb])){while(_0xf13ddb>_0x1193f7&&isUtf8ContinuationByte(_0x1e4c4f[_0xf13ddb]))_0xf13ddb-=-0x23d8+-0x1028+0x3401;if(_0xf13ddb===_0x1193f7){_0xf13ddb+=0x758+-0x1381*-0x1+-0x1ad8;while(_0xf13ddb<_0x1e4c4f[_0x244c58(0x156)]&&isUtf8ContinuationByte(_0x1e4c4f[_0xf13ddb]))_0xf13ddb+=-0x257*-0x2+0x5b*0x2b+-0x2da*0x7;}}const _0x118c56=_0xf13ddb<_0x1e4c4f[_0x244c58(0x156)]?_0xf13ddb:null;return{'path':_0xd4f715,'encoding':_0x244c58(0x1be),'size':_0x1e4c4f[_0x244c58(0x156)],'content':new TextDecoder(_0x244c58(0x1be),{'fatal':!![]})[_0x244c58(0x20b)](_0x1e4c4f[_0x244c58(0x11b)](_0x1193f7,_0xf13ddb)),'truncated':_0x118c56!==null,'nextOffset':_0x118c56};}function isValidUtf8(_0x286dbe){const _0xe3879f=_0x1a5b06;try{return new TextDecoder(_0xe3879f(0x1be),{'fatal':!![]})[_0xe3879f(0x20b)](_0x286dbe),!![];}catch{return![];}}function isUtf8ContinuationByte(_0x27b6b1){return(_0x27b6b1&-0x1b5*0x1+-0x2703+0x2978)===-0x18e2+-0x26b3+0x4015;}export async function searchWorkspaceFiles(_0x5da571,_0x2f7dc4,_0x4add33,_0x431470=SEARCH_RESULT_LIMIT,_0x47c171=![]){const _0xa87472=_0x1a5b06,_0x2c241d=new WorkspaceFileIndex(_0x5da571);try{return await _0x2c241d[_0xa87472(0x1e7)](_0x2f7dc4,_0x4add33,_0x431470,_0x47c171);}finally{_0x2c241d[_0xa87472(0x1e3)]();}}async function resolveRegisteredWorkspaceRoot(_0x9a03da){const _0x12d0f8=_0x1a5b06,_0x302769=await realpath(_0x9a03da);if(normalizeWorkspacePath(_0x302769)!==normalizeWorkspacePath(_0x9a03da))throw new Error(_0x12d0f8(0x15b));return _0x302769;}async function resolveWorkspaceEntry(_0x5cf3a1,_0x5339e5,_0x525645){const _0xf416fa=await resolveRegisteredWorkspaceRoot(_0x5cf3a1);return resolveWorkspaceEntryFromCanonicalRoot(_0xf416fa,_0x5339e5,_0x525645);}async function resolveWorkspaceEntryFromCanonicalRoot(_0x435459,_0x210ede,_0x18bc27){const _0x1af2fb=_0x1a5b06,_0x409dcd=await resolveWorkspaceEntryMetadata(_0x435459,_0x210ede);if(_0x18bc27?!_0x409dcd[_0x1af2fb(0x1aa)][_0x1af2fb(0x1e4)]():!_0x409dcd[_0x1af2fb(0x1aa)][_0x1af2fb(0x1ff)]()&&!_0x409dcd[_0x1af2fb(0x1aa)][_0x1af2fb(0x1e4)]())throw new Error(_0x18bc27?_0x1af2fb(0x178):_0x1af2fb(0x162));return _0x409dcd[_0x1af2fb(0x1c3)];}async function resolveWorkspaceEntryMetadata(_0x444737,_0x10c6a0){const _0x110d89=_0x1a5b06;if(_0x10c6a0[_0x110d89(0x20c)]('\x00')||_0x10c6a0[_0x110d89(0x156)]===-0x8d3+-0x1*0x149f+0x1d72||_0x10c6a0[_0x110d89(0x220)]('/')||_0x10c6a0[_0x110d89(0x220)]('\x5c'))throw new Error(_0x110d89(0x1e1));const _0x58830=_0x10c6a0[_0x110d89(0x141)]('\x5c','/');if(_0x58830[_0x110d89(0x1b6)]('/')[_0x110d89(0x212)](_0x4fddbc=>_0x4fddbc==='..'||_0x4fddbc===_0x110d89(0x19e)))throw new Error(_0x110d89(0x1e1));let _0x2b4f37;try{_0x2b4f37=await realpath(resolve(_0x444737,_0x58830));}catch(_0x53562d){if(_0x53562d[_0x110d89(0x1e8)]===_0x110d89(0x1d3))throw new Error(_0x110d89(0x181));throw _0x53562d;}const _0x4eefa6=relative(_0x444737,_0x2b4f37);if(isAbsolute(_0x4eefa6)||_0x4eefa6[_0x110d89(0x220)]('..')||_0x4eefa6==='..'||_0x4eefa6[_0x110d89(0x220)]('..'+sep))throw new Error(_0x110d89(0x1e1));const _0x312cbe=await lstat(_0x2b4f37);return{'path':_0x2b4f37,'metadata':_0x312cbe};}async function inspectWorkspaceIndexEntry(_0x7d7c0b,_0x4c18a3,_0x37b81d){const _0x11db73=_0x1a5b06;try{const _0x3e6f80=await resolveWorkspaceEntryMetadata(_0x7d7c0b,_0x4c18a3);if(!_0x3e6f80[_0x11db73(0x1aa)][_0x11db73(0x1ff)]()&&!_0x3e6f80[_0x11db73(0x1aa)][_0x11db73(0x1e4)]())return undefined;const _0x530006=relative(_0x7d7c0b,_0x3e6f80[_0x11db73(0x1c3)])[_0x11db73(0x1b6)](sep)[_0x11db73(0x1cd)]('/');return _0x3e6f80[_0x11db73(0x1aa)][_0x11db73(0x1e4)]()?{'path':_0x530006,'name':_0x37b81d,'kind':_0x11db73(0x122),'size':null,'modifiedAt':_0x3e6f80[_0x11db73(0x1aa)][_0x11db73(0x139)]}:{'path':_0x530006,'name':_0x37b81d,'kind':_0x11db73(0x17b),'size':_0x3e6f80[_0x11db73(0x1aa)][_0x11db73(0x227)],'modifiedAt':_0x3e6f80[_0x11db73(0x1aa)][_0x11db73(0x139)]};}catch{return undefined;}}function encodeDirectoryCursor(_0x5dace9,_0x35798a){const _0x5e7ff9=_0x1a5b06;return Buffer[_0x5e7ff9(0x207)](JSON[_0x5e7ff9(0x187)]({'path':_0x5dace9,'name':_0x35798a}))[_0x5e7ff9(0x1f4)](_0x5e7ff9(0x237));}function decodeDirectoryCursor(_0x2e612b,_0x283136){const _0x19f1a6=_0x1a5b06;if(_0x2e612b===undefined)return undefined;try{const _0x4f8d37=JSON[_0x19f1a6(0x147)](Buffer[_0x19f1a6(0x207)](_0x2e612b,_0x19f1a6(0x237))[_0x19f1a6(0x1f4)](_0x19f1a6(0x1ea)));if(typeof _0x4f8d37!==_0x19f1a6(0x219)||_0x4f8d37===null||_0x4f8d37[_0x19f1a6(0x1c3)]!==_0x283136||typeof _0x4f8d37[_0x19f1a6(0x23b)]!==_0x19f1a6(0x1bc))throw new Error();return _0x4f8d37[_0x19f1a6(0x23b)];}catch{throw new Error(_0x19f1a6(0x17e));}}function encodeSearchCursor(_0x3a4f77,_0x3d05e6){const _0x3c58eb=_0x1a5b06;return Buffer[_0x3c58eb(0x207)](JSON[_0x3c58eb(0x187)]({'query':_0x3a4f77,'path':_0x3d05e6}))[_0x3c58eb(0x1f4)](_0x3c58eb(0x237));}function decodeSearchCursor(_0x31fb95,_0x4847ef){const _0x231467=_0x1a5b06;if(_0x31fb95===undefined)return undefined;try{const _0x10146d=JSON[_0x231467(0x147)](Buffer[_0x231467(0x207)](_0x31fb95,_0x231467(0x237))[_0x231467(0x1f4)](_0x231467(0x1ea)));if(typeof _0x10146d!==_0x231467(0x219)||_0x10146d===null||_0x10146d[_0x231467(0x22f)]!==_0x4847ef||typeof _0x10146d[_0x231467(0x1c3)]!==_0x231467(0x1bc))throw new Error();return _0x10146d[_0x231467(0x1c3)];}catch{throw new Error(_0x231467(0x17e));}}export function normalizeWorkspacePath(_0x1fabf9,_0x2b199a=_0x4dde61()){const _0x3ed6e7=_0x1a5b06;if(_0x1fabf9[_0x3ed6e7(0x156)]===-0x13*-0x15d+0x2094+-0x1*0x3a7b||_0x1fabf9[_0x3ed6e7(0x20c)]('\u0000'))throw new Error(_0x3ed6e7(0x1f6));if(_0x2b199a===_0x3ed6e7(0x1d1)){if(/^\\\\[?.]/[_0x3ed6e7(0x16a)](_0x1fabf9))throw new Error(_0x3ed6e7(0x1ce));const _0xb1a338=win32[_0x3ed6e7(0x150)](_0x1fabf9[_0x3ed6e7(0x141)]('/','\x5c'));if(!win32[_0x3ed6e7(0x13c)](_0xb1a338))throw new Error(_0x3ed6e7(0x166));return _0xb1a338[_0x3ed6e7(0x1a0)](/\\+$/,'')[_0x3ed6e7(0x159)]();}if(_0x2b199a!==_0x3ed6e7(0x14e))throw new Error(_0x3ed6e7(0x148));const _0x59022f=posix[_0x3ed6e7(0x150)](_0x1fabf9);if(!posix[_0x3ed6e7(0x13c)](_0x59022f))throw new Error(_0x3ed6e7(0x166));return _0x59022f==='/'?_0x59022f:_0x59022f[_0x3ed6e7(0x1a0)](/\/+$/,'');}export function isWithinAllowedRoot(_0x5ed6f1,_0x233e89,_0x33fd1a=_0x4dde61()){const _0x1f79d5=_0x1a5b06,_0x2f3234=normalizeWorkspacePath(_0x5ed6f1,_0x33fd1a),_0x2181a3=_0x33fd1a===_0x1f79d5(0x1d1)?win32:posix;return _0x233e89[_0x1f79d5(0x212)](_0x4d4f9d=>{const _0x49a712=_0x1f79d5,_0x5ebd93=normalizeWorkspacePath(_0x4d4f9d,_0x33fd1a),_0x256d8b=_0x2181a3[_0x49a712(0x123)](_0x5ebd93,_0x2f3234);return _0x256d8b===''||!_0x256d8b[_0x49a712(0x220)]('..')&&!_0x2181a3[_0x49a712(0x13c)](_0x256d8b);});}export async function inspectWorkspace(_0x3f0f65,_0x26f006){const _0x29b9a9=_0x1a5b06,_0x13380a=await realpath(_0x3f0f65),_0x107341=await Promise[_0x29b9a9(0x12c)](_0x26f006[_0x29b9a9(0x231)](_0x28562c=>realpath(_0x28562c))),_0x49eee1=await stat(_0x13380a);if(!_0x49eee1[_0x29b9a9(0x1e4)]()||!isWithinAllowedRoot(_0x13380a,_0x107341))throw new Error(_0x29b9a9(0x15b));try{const _0x562239=await readGitSummary(_0x13380a);return{'path':_0x13380a,'kind':_0x29b9a9(0x1ef),'gitSummary':_0x562239};}catch(_0x5d3e1c){if(_0x5d3e1c instanceof GitCommandError&&_0x5d3e1c[_0x29b9a9(0x1e8)]===-0x93f*-0x1+0x2c7+-0xb86||isGitUnavailable(_0x5d3e1c))return{'path':_0x13380a,'kind':_0x29b9a9(0x122)};throw _0x5d3e1c;}}export async function readGitSummary(_0xfd0094){const _0x8c81fe=_0x1a5b06,_0x57c3df=(await runGit(_0xfd0094,[_0x8c81fe(0x1c7),_0x8c81fe(0x215)]))[_0x8c81fe(0x153)][_0x8c81fe(0x199)](),_0xf33d18=await runGitAllowFailure(_0xfd0094,[_0x8c81fe(0x1c7),_0x8c81fe(0x21c),_0x8c81fe(0x21d)]),_0x4a5434=await runGitAllowFailure(_0xfd0094,[_0x8c81fe(0x21f),_0x8c81fe(0x206),_0x8c81fe(0x1a8),_0x8c81fe(0x21d)]),_0x3d6b5d=(await runGit(_0xfd0094,[_0x8c81fe(0x1b5),_0x8c81fe(0x235),'-z']))[_0x8c81fe(0x22c)][_0x8c81fe(0x156)]>-0x7bf*-0x1+-0x1cd2+-0x53*-0x41,_0x2249f2=await runGit(_0xfd0094,[_0x8c81fe(0x1b5),_0x8c81fe(0x235)])[_0x8c81fe(0x203)](_0x40ba91=>_0x40ba91[_0x8c81fe(0x153)]);return{'commonDir':_0x57c3df,'head':_0xf33d18[_0x8c81fe(0x1e8)]===-0x1*-0x1ed6+-0x2f4*0x1+0x53*-0x56?_0xf33d18[_0x8c81fe(0x153)][_0x8c81fe(0x199)]():'','branch':_0x4a5434[_0x8c81fe(0x1e8)]===-0x1*0x16e8+0x493*-0x5+0x2dc7?_0x4a5434[_0x8c81fe(0x153)][_0x8c81fe(0x199)]():null,'dirty':_0x3d6b5d,'snapshot':summarizeText(_0x2249f2)};}export function assertSafeGitRef(_0x468433){const _0x437f13=_0x1a5b06;if(!REF_PATTERN[_0x437f13(0x16a)](_0x468433))throw new Error(_0x437f13(0x1f3));}export async function readRestrictedDiff(_0x215b2c,_0x1ff12e,_0x5b7f74){const _0x5cb225=_0x1a5b06;assertSafeGitRef(_0x1ff12e),assertSafeGitRef(_0x5b7f74);const _0x2c2b89=await runGit(_0x215b2c,[_0x5cb225(0x1f9),_0x5cb225(0x232),_0x5cb225(0x22b),_0x1ff12e,_0x5b7f74]),_0x2148c9=_0x2c2b89[_0x5cb225(0x22c)][_0x5cb225(0x20c)](0x10e8+-0xd9a*0x1+-0x34e)||_0x2c2b89[_0x5cb225(0x153)][_0x5cb225(0x20c)](_0x5cb225(0x230));if(_0x2148c9)return{'binary':!![],'summary':_0x5cb225(0x1f5)+createHash(_0x5cb225(0x177))[_0x5cb225(0x1a7)](_0x2c2b89[_0x5cb225(0x22c)])[_0x5cb225(0x16b)](_0x5cb225(0x175))+_0x5cb225(0x1bd)+_0x2c2b89[_0x5cb225(0x22c)][_0x5cb225(0x156)],'truncated':_0x2c2b89[_0x5cb225(0x208)]};return{'binary':![],'text':_0x2c2b89[_0x5cb225(0x153)],'truncated':_0x2c2b89[_0x5cb225(0x208)]};}function currentBranchFromStatusHeader(_0x1d4275){const _0x223cdb=_0x1a5b06,_0x1a8dde=_0x1d4275[_0x223cdb(0x1d2)](-0x3*-0xb42+-0x1a25+0x1*-0x79e);if(_0x1a8dde[_0x223cdb(0x220)](_0x223cdb(0x1bf)))return null;const _0x39690b=/^(?:No commits yet on|Initial commit on) (.+)$/[_0x223cdb(0x185)](_0x1a8dde);if(_0x39690b!==null)return _0x39690b[-0x1*-0x119+0x3cb*-0x2+0x67e]??null;return _0x1a8dde[_0x223cdb(0x1b6)](_0x223cdb(0x11f))[-0x11ab*-0x1+-0x224f*-0x1+-0x1*0x33fa]?.[_0x223cdb(0x1b6)]('\x20')[-0x1253*0x2+-0x1255+0x36fb]??null;}export async function readCurrentChangesSummary(_0x5e83d0){const _0x323028=_0x1a5b06,_0x3e06f4=await runGit(_0x5e83d0,[_0x323028(0x1b5),_0x323028(0x235),'-z',_0x323028(0x1ba),_0x323028(0x18c)]),_0x1a819b=_0x3e06f4[_0x323028(0x153)][_0x323028(0x1b6)]('\x00'),_0x336cc9=_0x1a819b[_0x323028(0x223)]()??'',_0x49b791=[];for(let _0x3ab96a=-0x1*-0x180f+-0xd16+-0xaf9;_0x3ab96a<_0x1a819b[_0x323028(0x156)];_0x3ab96a+=0x1d6e+-0x1*0x25af+0x421*0x2){const _0x1e3a70=_0x1a819b[_0x3ab96a];if(_0x1e3a70[_0x323028(0x156)]<-0x1f6*-0x8+-0x1dc0+0x4*0x385)continue;const _0x5c6f40=_0x1e3a70[0x208d+0x1*0x541+0x2*-0x12e7],_0x3ee4e9=_0x1e3a70[0x1774+0x77f*-0x1+-0x4*0x3fd],_0x243812=_0x1e3a70[_0x323028(0x1d2)](-0x1*-0x20e3+-0x2d1*0x6+-0x7fd*0x2);if(_0x5c6f40==='?'&&_0x3ee4e9==='?'){_0x49b791[_0x323028(0x1c5)]({'path':_0x243812,'state':_0x323028(0x1ab),'change':_0x323028(0x18e)});continue;}_0x5c6f40!=='\x20'&&_0x49b791[_0x323028(0x1c5)]({'path':_0x243812,'state':_0x323028(0x126),'change':gitChange(_0x5c6f40)});_0x3ee4e9!=='\x20'&&_0x49b791[_0x323028(0x1c5)]({'path':_0x243812,'state':_0x323028(0x173),'change':gitChange(_0x3ee4e9)});if(_0x5c6f40==='R'||_0x5c6f40==='C'||_0x3ee4e9==='R'||_0x3ee4e9==='C')_0x3ab96a+=0xad7+0x1*0x2295+0xb*-0x421;}return{'branch':_0x336cc9[_0x323028(0x220)](_0x323028(0x1c6))?currentBranchFromStatusHeader(_0x336cc9):null,'changes':_0x49b791};}export async function listInitializedSubmodulePaths(_0x24f584){const _0x2f0f28=_0x1a5b06,_0xaf9744=await runGit(_0x24f584,[_0x2f0f28(0x176),_0x2f0f28(0x1b5),_0x2f0f28(0x1c8)]);return _0xaf9744[_0x2f0f28(0x153)][_0x2f0f28(0x1b6)](/\r?\n/)[_0x2f0f28(0x144)](_0x3e70aa=>{const _0x304c58=_0x2f0f28;if(_0x3e70aa[_0x304c58(0x156)]<-0xb+0x2*0x1292+0x1f*-0x131)return[];const _0x5023eb=_0x3e70aa[-0x20ab+-0x773+0x9e*0x41];if(_0x5023eb==='-')return[];const _0x5b7002=/^.[0-9a-f]+\s+(.+?)(?:\s+\([^)]*\))?$/[_0x304c58(0x185)](_0x3e70aa),_0x32d799=_0x5b7002?.[-0x24d2+0x2510+-0x3d]?.[_0x304c58(0x141)]('\x5c','/');return _0x32d799===undefined||_0x32d799[_0x304c58(0x156)]===0x20a+0x2b*0x23+-0x7eb*0x1?[]:[_0x32d799];})[_0x2f0f28(0x1a1)]((_0x4cb771,_0x5f4b0d)=>_0x4cb771[_0x2f0f28(0x1ae)](_0x5f4b0d));}export async function resolveGitRepository(_0x1d08ad,_0x4953de){const _0x4c45cf=_0x1a5b06;if(_0x4953de[_0x4c45cf(0x156)]===-0x7a*0x50+-0x1307+0x3927)return realpath(_0x1d08ad);if(_0x4953de[_0x4c45cf(0x20c)]('\x00')||_0x4953de[_0x4c45cf(0x220)]('/')||_0x4953de[_0x4c45cf(0x220)]('\x5c')||_0x4953de[_0x4c45cf(0x1b6)]('/')[_0x4c45cf(0x212)](_0x5fc440=>_0x5fc440[_0x4c45cf(0x156)]===-0x5fc+0x1baa*0x1+-0x15ae*0x1||_0x5fc440==='.'||_0x5fc440==='..'))throw new Error(_0x4c45cf(0x131));const _0x1752e7=await listInitializedSubmodulePaths(_0x1d08ad);if(!_0x1752e7[_0x4c45cf(0x20c)](_0x4953de))throw new Error(_0x4c45cf(0x131));const _0x5ccc52=resolve(await realpath(_0x1d08ad),_0x4953de);try{await readGitSummary(_0x5ccc52);}catch{throw new Error(_0x4c45cf(0x131));}return _0x5ccc52;}export async function listGitHistoryRefs(_0x2ad65d){const _0xa6f070=_0x1a5b06,_0x16866d=await runGit(_0x2ad65d,[_0xa6f070(0x1db),_0xa6f070(0x188),_0xa6f070(0x170),_0xa6f070(0x1cf)]);return _0x16866d[_0xa6f070(0x153)][_0xa6f070(0x1b6)](/\r?\n/)[_0xa6f070(0x144)](_0x2b7402=>{const _0x2dd256=_0xa6f070,[_0x1425d6,_0x5ba4d8,_0x4edba3,_0x16914a,_0x24fb99]=_0x2b7402[_0x2dd256(0x1b6)]('\x09');if(_0x1425d6===undefined||_0x5ba4d8===undefined||_0x4edba3===undefined||_0x24fb99===undefined||_0x24fb99[_0x2dd256(0x156)]>-0x225*-0x11+0x219c+-0x4611||!/^[0-9a-f]{40,64}$/[_0x2dd256(0x16a)](_0x4edba3))return[];const _0x2eb616=_0x1425d6[_0x2dd256(0x220)](_0x2dd256(0x18b))?_0x2dd256(0x149):_0x1425d6[_0x2dd256(0x220)](_0x2dd256(0x22a))?_0x2dd256(0x186):undefined;return _0x2eb616===undefined?[]:[{'name':_0x1425d6,'displayName':_0x5ba4d8,'kind':_0x2eb616,'hash':_0x4edba3,'current':_0x16914a==='*'}];})[_0xa6f070(0x1a1)]((_0x530ad6,_0x478152)=>_0x530ad6[_0xa6f070(0x200)][_0xa6f070(0x1ae)](_0x478152[_0xa6f070(0x200)])||_0x530ad6[_0xa6f070(0x12a)][_0xa6f070(0x1ae)](_0x478152[_0xa6f070(0x12a)]));}function selectedHistoryRefs(_0x2f49da,_0x9ee13c){const _0x1d3322=_0x1a5b06;if(_0x9ee13c===undefined||_0x9ee13c[_0x1d3322(0x156)]===0x1*-0x977+-0x2*-0x67d+0x383*-0x1)return _0x2f49da;const _0x4d282b=[...new Set(_0x9ee13c)],_0x5fbb41=_0x4d282b[_0x1d3322(0x231)](_0xd76e82=>_0x2f49da[_0x1d3322(0x196)](_0x5c5bcd=>_0x5c5bcd[_0x1d3322(0x23b)]===_0xd76e82));if(_0x5fbb41[_0x1d3322(0x212)](_0x41e26f=>_0x41e26f===undefined))throw new Error(_0x1d3322(0x21a));return _0x5fbb41;}function historyCursor(_0x237c1f,_0x1d524b){const _0x5f39f4=_0x1a5b06;return Buffer[_0x5f39f4(0x207)](JSON[_0x5f39f4(0x187)]({'offset':_0x237c1f,'fingerprint':_0x1d524b}))[_0x5f39f4(0x1f4)](_0x5f39f4(0x237));}function parseHistoryCursor(_0x56baa7,_0x16773c){const _0x5720ea=_0x1a5b06;if(_0x56baa7===undefined)return-0x11e6+-0x1*-0x2376+-0x4*0x464;try{const _0xa0b551=JSON[_0x5720ea(0x147)](Buffer[_0x5720ea(0x207)](_0x56baa7,_0x5720ea(0x237))[_0x5720ea(0x1f4)](_0x5720ea(0x1ea)));if(!Number[_0x5720ea(0x213)](_0xa0b551[_0x5720ea(0x15a)])||_0xa0b551[_0x5720ea(0x15a)]<0xf03+0xc5b*-0x2+0x9b3||_0xa0b551[_0x5720ea(0x163)]!==_0x16773c)throw new Error(_0x5720ea(0x132));return _0xa0b551[_0x5720ea(0x15a)];}catch{throw new Error(_0x5720ea(0x19a));}}export async function readGitHistory(_0x3b0c4b,_0x3db192){const _0xb5ebbb=_0x1a5b06,_0x242ca=await listGitHistoryRefs(_0x3b0c4b),_0x47b802=selectedHistoryRefs(_0x242ca,_0x3db192[_0xb5ebbb(0x135)]);if(_0x47b802[_0xb5ebbb(0x156)]===0x2691+0xa1+-0x2732)return{'commits':[],'nextCursor':null};const _0x28ade8=_0x3db192[_0xb5ebbb(0x12d)]??0x33c+-0x501+0x1f7*0x1;if(!Number[_0xb5ebbb(0x213)](_0x28ade8)||_0x28ade8<-0x4*-0x63a+0x2c*-0x39+-0x509*0x3||_0x28ade8>-0xc3d+0x1*0x1+0xca0)throw new Error(_0xb5ebbb(0x17d));const _0x4806db=_0x47b802[_0xb5ebbb(0x231)](_0x27f59b=>_0x27f59b[_0xb5ebbb(0x23b)])[_0xb5ebbb(0x1a1)](),_0x5153fe=createHash(_0xb5ebbb(0x177))[_0xb5ebbb(0x1a7)](_0x47b802[_0xb5ebbb(0x231)](_0xec06ec=>_0xec06ec[_0xb5ebbb(0x23b)]+'\x00'+_0xec06ec[_0xb5ebbb(0x15d)])[_0xb5ebbb(0x1a1)]()[_0xb5ebbb(0x1cd)]('\x00'))[_0xb5ebbb(0x16b)](_0xb5ebbb(0x175)),_0x2caadd=parseHistoryCursor(_0x3db192[_0xb5ebbb(0x209)],_0x5153fe),_0x49f407=await runGit(_0x3b0c4b,[_0xb5ebbb(0x22d),_0xb5ebbb(0x205),_0xb5ebbb(0x1e0),_0xb5ebbb(0x1b0)+_0x2caadd,_0xb5ebbb(0x190)+(_0x28ade8+(0x6*0x261+-0x4e4+-0x961)),'-z',_0xb5ebbb(0x1e6),..._0x4806db,'--']),_0x3689df=new Map();for(const _0x516fd8 of _0x242ca){const _0x23b273=_0x3689df[_0xb5ebbb(0x179)](_0x516fd8[_0xb5ebbb(0x15d)])??[];_0x23b273[_0xb5ebbb(0x1c5)](_0x516fd8[_0xb5ebbb(0x12a)]),_0x3689df[_0xb5ebbb(0x1d8)](_0x516fd8[_0xb5ebbb(0x15d)],_0x23b273);}const _0x2efacc=_0x49f407[_0xb5ebbb(0x153)][_0xb5ebbb(0x1b6)]('\x00'),_0x309501=[];for(let _0x5af624=-0x47*-0x4a+-0x2*0xd72+0x65e;_0x5af624+(-0x132d+0x21fe+0x766*-0x2)<_0x2efacc[_0xb5ebbb(0x156)];_0x5af624+=-0x9d*-0x31+0x124d*0x2+-0x42a1){const [_0x56b939,_0x126f20='',_0x4b0d82='',_0x2860cc='',_0x5df0d7='0',_0x30456d='']=_0x2efacc[_0xb5ebbb(0x1d2)](_0x5af624,_0x5af624+(-0x83f*-0x1+-0x11c9+0x33*0x30));if(_0x56b939===undefined||!/^[0-9a-f]{40,64}$/[_0xb5ebbb(0x16a)](_0x56b939))continue;_0x309501[_0xb5ebbb(0x1c5)]({'hash':_0x56b939,'parents':_0x126f20[_0xb5ebbb(0x156)]===-0x1d3*0xd+0x6b4+0x1103?[]:_0x126f20[_0xb5ebbb(0x1b6)]('\x20'),'authorName':_0x4b0d82,'authorEmail':_0x2860cc,'committedAt':Number(_0x5df0d7)*(0xa*-0x2a6+0x1*0x601+0x1863),'subject':_0x30456d,'refs':_0x3689df[_0xb5ebbb(0x179)](_0x56b939)??[]});}const _0x1d9233=_0x309501[_0xb5ebbb(0x156)]>_0x28ade8;return{'commits':_0x309501[_0xb5ebbb(0x1d2)](0x26da+-0x971+0x1d69*-0x1,_0x28ade8),'nextCursor':_0x1d9233?historyCursor(_0x2caadd+_0x28ade8,_0x5153fe):null};}async function assertHistoryCommitReachable(_0xd7553b,_0x50549a,_0x5d899b){const _0x8b5d1=_0x1a5b06;if(!/^[0-9a-f]{40,64}$/[_0x8b5d1(0x16a)](_0x50549a))throw new Error(_0x8b5d1(0x121));const _0x3cb5c4=selectedHistoryRefs(await listGitHistoryRefs(_0xd7553b),_0x5d899b);for(const _0x505916 of _0x3cb5c4){const _0x1b8c03=await runGitAllowFailure(_0xd7553b,[_0x8b5d1(0x129),_0x8b5d1(0x15e),_0x50549a,_0x505916[_0x8b5d1(0x23b)]]);if(_0x1b8c03[_0x8b5d1(0x1e8)]===-0x2*-0x72a+-0x310+-0xe*0xce)return;}throw new Error(_0x8b5d1(0x121));}export async function readGitHistoryFiles(_0x288007,_0x59cff5,_0x3a24e4){const _0x4f6f02=_0x1a5b06;await assertHistoryCommitReachable(_0x288007,_0x59cff5,_0x3a24e4);const _0x1ee227=await runGit(_0x288007,[_0x4f6f02(0x1eb),_0x4f6f02(0x19d),_0x4f6f02(0x11d),_0x4f6f02(0x224),'-r','-z','-M','-C',_0x4f6f02(0x226),_0x59cff5]),_0x2d250f=_0x1ee227[_0x4f6f02(0x153)][_0x4f6f02(0x1b6)]('\x00'),_0x13dc64=[];for(let _0x598a1d=0xd85*-0x2+0x269e+-0x2*0x5ca;_0x598a1d<_0x2d250f[_0x4f6f02(0x156)];_0x598a1d+=0x1b81+0xb6e+0x97*-0x42){const _0x12fe0f=_0x2d250f[_0x598a1d];if(_0x12fe0f===undefined||_0x12fe0f[_0x4f6f02(0x156)]===0x2056+-0x8ab+-0x53*0x49)continue;const _0x18030f=_0x12fe0f[0xdd9*0x2+0x47*-0x29+-0xc7*0x15]??'M';if(_0x18030f==='R'||_0x18030f==='C'){const _0x1d6fe1=_0x2d250f[_0x598a1d+(0x1ccc+0x3b*0x67+0x4*-0xd22)],_0x5c6c40=_0x2d250f[_0x598a1d+(-0x9c3+0x24*-0x92+0x1e4d*0x1)];if(_0x1d6fe1!==undefined&&_0x5c6c40!==undefined)_0x13dc64[_0x4f6f02(0x1c5)]({'path':_0x5c6c40,'previousPath':_0x1d6fe1,'change':gitChange(_0x18030f)});_0x598a1d+=-0x1*-0x493+-0x329*0x5+-0x2*-0x59e;}else{const _0x563d56=_0x2d250f[_0x598a1d+(0xe*-0x137+0x9b3*0x1+0x750)];if(_0x563d56!==undefined)_0x13dc64[_0x4f6f02(0x1c5)]({'path':_0x563d56,'change':gitChange(_0x18030f)});_0x598a1d+=-0x1*-0x975+0x47f*0x3+-0x16f1;}}return _0x13dc64;}export async function readGitHistoryFileDiff(_0x5548ca,_0x73c0b7,_0x19b03d,_0x2a1965,_0x6c26c1){const _0x20072a=_0x1a5b06;await assertHistoryCommitReachable(_0x5548ca,_0x73c0b7,_0x2a1965);const _0x1c7048=safeGitWorkspacePath(_0x19b03d),_0x59d0aa=_0x6c26c1===undefined?undefined:safeGitWorkspacePath(_0x6c26c1),_0x4b366a=await runGit(_0x5548ca,[_0x20072a(0x211),_0x20072a(0x202),_0x20072a(0x11d),_0x20072a(0x232),_0x20072a(0x22b),_0x73c0b7,'--',_0x20072a(0x214)+_0x1c7048,..._0x59d0aa===undefined||_0x59d0aa===_0x1c7048?[]:[_0x20072a(0x214)+_0x59d0aa]]),_0x26d5da=_0x4b366a[_0x20072a(0x22c)][_0x20072a(0x20c)](-0x17a7+-0x14ea+0x2c91)||_0x4b366a[_0x20072a(0x153)][_0x20072a(0x20c)](_0x20072a(0x230));if(_0x26d5da)return{'binary':!![],'summary':_0x20072a(0x1f5)+createHash(_0x20072a(0x177))[_0x20072a(0x1a7)](_0x4b366a[_0x20072a(0x22c)])[_0x20072a(0x16b)](_0x20072a(0x175))+_0x20072a(0x1bd)+_0x4b366a[_0x20072a(0x22c)][_0x20072a(0x156)],'truncated':_0x4b366a[_0x20072a(0x208)]};return{'binary':![],'text':_0x4b366a[_0x20072a(0x153)],'truncated':_0x4b366a[_0x20072a(0x208)]};}export async function readGitHistoryFileContentRange(_0x2ed670,_0x27b084,_0x1cf026,_0x3aec00,_0x363316,_0x29fd0b){const _0x4bf207=_0x1a5b06;if(!Number[_0x4bf207(0x16f)](_0x3aec00)||_0x3aec00<-0x1448+-0x2040+0x3488||!Number[_0x4bf207(0x16f)](_0x363316)||_0x363316<0x3*-0xc41+0x4*0x799+0x660||_0x363316>(0x106e*0x1+-0x61b+-0xa3f)*(-0x257+0x1555+-0x1*0xefe)*(-0x1*0x643+-0x2242*0x1+-0x3*-0xed7)||_0x3aec00+_0x363316>(0x1cec*0x1+-0x24dd*0x1+-0x805*-0x1)*(-0xab5+-0x3*-0x73d+-0x702)*(0xb3f*0x3+0xa18*0x1+0x21*-0x135))throw new Error(_0x4bf207(0x160));await assertHistoryCommitReachable(_0x2ed670,_0x27b084,_0x29fd0b);const _0x28c5d1=safeGitWorkspacePath(_0x1cf026),_0x1c3e6b=_0x27b084+':'+_0x28c5d1,_0x11679f=await runGit(_0x2ed670,[_0x4bf207(0x233),'-s',_0x1c3e6b]),_0x47dca6=Number(_0x11679f[_0x4bf207(0x153)][_0x4bf207(0x199)]());if(!Number[_0x4bf207(0x16f)](_0x47dca6)||_0x47dca6<-0x253f+-0x1960+0x3e9f||_0x3aec00>_0x47dca6)throw new Error(_0x4bf207(0x160));if(_0x3aec00===_0x47dca6)return{'path':_0x28c5d1,'size':_0x47dca6,'offset':_0x3aec00,'contentBase64':'','nextOffset':null};const _0x44d1f9=await runGitAllowFailure(_0x2ed670,[_0x4bf207(0x233),_0x4bf207(0x1d5),_0x1c3e6b],_0x3aec00+_0x363316);if(_0x44d1f9[_0x4bf207(0x1e8)]!==-0x229a+-0x1d7c+0x277*0x1a)throw new GitCommandError(_0x44d1f9[_0x4bf207(0x1e8)],_0x44d1f9[_0x4bf207(0x169)]);const _0x5e52f3=_0x44d1f9[_0x4bf207(0x22c)][_0x4bf207(0x11b)](_0x3aec00,Math[_0x4bf207(0x1e5)](_0x47dca6,_0x3aec00+_0x363316)),_0x522258=_0x3aec00+_0x5e52f3[_0x4bf207(0x156)];return{'path':_0x28c5d1,'size':_0x47dca6,'offset':_0x3aec00,'contentBase64':_0x5e52f3[_0x4bf207(0x1f4)](_0x4bf207(0x1a4)),'nextOffset':_0x522258<_0x47dca6?_0x522258:null};}export async function readCurrentChanges(_0x51846c){const _0x24e6bd=_0x1a5b06;return(await readCurrentChangesSummary(_0x51846c))[_0x24e6bd(0x17c)];}export async function readCurrentChangeDiff(_0x5a4c0b,_0x19d541){const _0x30509d=_0x1a5b06,_0x597607=safeGitWorkspacePath(_0x19d541);await assertCurrentChangePathAccessible(_0x5a4c0b,_0x597607);const _0x53f8c9=await readCurrentChangeGitDiff(_0x5a4c0b,_0x597607),_0x162b2f=await readWorkingTreeText(_0x5a4c0b,_0x597607),_0x2e536c=_0x53f8c9[_0x30509d(0x22c)][_0x30509d(0x20c)](-0x3*-0xbc3+0x25a5*0x1+-0x48ee)||_0x53f8c9[_0x30509d(0x153)][_0x30509d(0x20c)](_0x30509d(0x230))||_0x162b2f?.[_0x30509d(0x18f)]===!![];if(_0x2e536c)return{'binary':!![],'summary':_0x30509d(0x1f5)+createHash(_0x30509d(0x177))[_0x30509d(0x1a7)](_0x53f8c9[_0x30509d(0x22c)])[_0x30509d(0x16b)](_0x30509d(0x175))+_0x30509d(0x1bd)+_0x53f8c9[_0x30509d(0x22c)][_0x30509d(0x156)],'truncated':_0x53f8c9[_0x30509d(0x208)]||_0x162b2f?.[_0x30509d(0x208)]===!![]};return{'binary':![],'text':_0x53f8c9[_0x30509d(0x153)],'truncated':_0x53f8c9[_0x30509d(0x208)]||_0x162b2f?.[_0x30509d(0x208)]===!![],'afterText':_0x162b2f?.[_0x30509d(0x153)]??'',..._0x162b2f===undefined?{}:{'afterTruncated':_0x162b2f[_0x30509d(0x208)]}};}async function readCurrentChangeGitDiff(_0x21bf4d,_0x4030a8){const _0x5bf950=_0x1a5b06,_0x462bc5=await runGit(_0x21bf4d,[_0x5bf950(0x1b4),_0x5bf950(0x12f),_0x5bf950(0x1bb),'-z','--',_0x5bf950(0x214)+_0x4030a8]);if(_0x462bc5[_0x5bf950(0x153)][_0x5bf950(0x1b6)]('\x00')[_0x5bf950(0x20c)](_0x4030a8)){const _0x2dfef9=await runGitAllowFailure(_0x21bf4d,[_0x5bf950(0x1f9),_0x5bf950(0x152),_0x5bf950(0x232),_0x5bf950(0x22b),'--',_0x5bf950(0x1b7),_0x4030a8]);if(_0x2dfef9[_0x5bf950(0x1e8)]!==0x1d09*-0x1+0x2330+0x1*-0x627&&_0x2dfef9[_0x5bf950(0x1e8)]!==0xd0d*0x1+-0xa*0x20+-0xbcc)throw new GitCommandError(_0x2dfef9[_0x5bf950(0x1e8)],_0x2dfef9[_0x5bf950(0x169)]);return _0x2dfef9;}return runGit(_0x21bf4d,[_0x5bf950(0x1f9),_0x5bf950(0x232),_0x5bf950(0x22b),_0x5bf950(0x21d),'--',_0x5bf950(0x214)+_0x4030a8]);}export async function isWorkspaceChangeVisible(_0x5af238,_0x3d8ec9){const _0x39d715=_0x1a5b06;try{return await assertCurrentChangePathAccessible(_0x5af238,safeGitWorkspacePath(_0x3d8ec9)),!![];}catch(_0xdf923f){if(_0xdf923f instanceof Error&&(_0xdf923f[_0x39d715(0x128)]===_0x39d715(0x1e1)||_0xdf923f[_0x39d715(0x128)]===_0x39d715(0x181)||_0xdf923f[_0x39d715(0x128)]===_0x39d715(0x162)))return![];throw _0xdf923f;}}async function assertCurrentChangePathAccessible(_0x1243a8,_0x49acaf){const _0x33bfbc=_0x1a5b06,_0x204fae=await realpath(_0x1243a8),_0x1d626c=resolve(_0x204fae,_0x49acaf),_0x12ccf9=await lstat(_0x1d626c)[_0x33bfbc(0x1b3)](_0x81ac2e=>{const _0x34c18d=_0x33bfbc;if(_0x81ac2e[_0x34c18d(0x1e8)]===_0x34c18d(0x1d3))return undefined;throw _0x81ac2e;});if(_0x12ccf9===undefined)return;await resolveWorkspaceEntry(_0x204fae,_0x49acaf,![]);}async function readWorkingTreeText(_0x40f1ad,_0x47005b){const _0xe92547=_0x1a5b06,_0x19fe50=await realpath(_0x40f1ad);let _0x1ef202;try{_0x1ef202=await resolveWorkspaceEntry(_0x19fe50,_0x47005b,![]);}catch(_0xc37c0b){if(_0xc37c0b instanceof Error&&_0xc37c0b[_0xe92547(0x128)]===_0xe92547(0x181))return undefined;throw _0xc37c0b;}const _0x14249b=await lstat(_0x1ef202);if(!_0x14249b[_0xe92547(0x1ff)]())return undefined;const _0x26d1f6=await readFile(_0x1ef202);return diffTextFromBuffer(_0x26d1f6,_0x26d1f6[_0xe92547(0x156)]>GIT_OUTPUT_LIMIT);}function diffTextFromBuffer(_0x2dafa9,_0x58f655){const _0x25187b=_0x1a5b06;if(_0x2dafa9[_0x25187b(0x20c)](-0x59*0x3b+-0xbb*-0x2f+-0xdd2)||!isValidUtf8(_0x2dafa9))return{'binary':!![],'truncated':_0x58f655};let _0xaf6d14=Math[_0x25187b(0x1e5)](_0x2dafa9[_0x25187b(0x156)],GIT_OUTPUT_LIMIT);while(_0xaf6d14>-0x45d*0x5+0x1cdf*0x1+0x2b*-0x2a&&_0xaf6d14<_0x2dafa9[_0x25187b(0x156)]&&isUtf8ContinuationByte(_0x2dafa9[_0xaf6d14]))_0xaf6d14-=-0x2176+0x7*0x4e7+-0x2*0x6d;return{'binary':![],'text':_0x2dafa9[_0x25187b(0x11b)](-0x4*-0x67e+0x197b+-0x1*0x3373,_0xaf6d14)[_0x25187b(0x1f4)](_0x25187b(0x1ea)),'truncated':_0x58f655};}export async function restoreCurrentChange(_0x174785,_0x4eb743,_0x445190){const _0x135a1a=_0x1a5b06,_0x1fd152=safeGitWorkspacePath(_0x4eb743),_0x2851a4=_0x135a1a(0x214)+_0x1fd152;if(_0x445190===_0x135a1a(0x1ab)){const _0x735f67=await runGit(_0x174785,[_0x135a1a(0x1b5),_0x135a1a(0x235),'-z',_0x135a1a(0x18c),'--',_0x2851a4]);if(!_0x735f67[_0x135a1a(0x153)][_0x135a1a(0x1b6)]('\x00')[_0x135a1a(0x212)](_0x27be32=>_0x27be32[_0x135a1a(0x220)](_0x135a1a(0x1b8))&&_0x27be32[_0x135a1a(0x1d2)](-0x178b+-0x17*-0x16f+-0x1*0x96b)===_0x1fd152))throw new Error(_0x135a1a(0x1ee));const _0x1b90e5=await realpath(_0x174785),_0x4b31ad=resolve(_0x1b90e5,_0x1fd152),_0x3d525f=await lstat(_0x4b31ad);if(!_0x3d525f[_0x135a1a(0x1ff)]()||_0x3d525f[_0x135a1a(0x1b9)]())throw new Error(_0x135a1a(0x1ee));await unlink(_0x4b31ad);return;}if(_0x445190===_0x135a1a(0x173)){await runGit(_0x174785,[_0x135a1a(0x15c),_0x135a1a(0x238),'--',_0x2851a4]);return;}await runGit(_0x174785,[_0x135a1a(0x15c),_0x135a1a(0x23a),_0x135a1a(0x1e2),_0x135a1a(0x238),'--',_0x2851a4]);}function safeGitWorkspacePath(_0x457165){const _0x40d95a=_0x1a5b06;if(_0x457165[_0x40d95a(0x156)]===-0xbc9+0x25*0x70+-0x467||_0x457165[_0x40d95a(0x20c)]('\x00')||_0x457165[_0x40d95a(0x220)]('/')||_0x457165[_0x40d95a(0x220)]('\x5c'))throw new Error(_0x40d95a(0x1e1));const _0x1b88e8=_0x457165[_0x40d95a(0x141)]('\x5c','/');if(_0x1b88e8[_0x40d95a(0x1b6)]('/')[_0x40d95a(0x212)](_0x213e84=>_0x213e84===''||_0x213e84==='..'||_0x213e84===_0x40d95a(0x19e)))throw new Error(_0x40d95a(0x1e1));return _0x1b88e8;}function gitChange(_0x169d87){const _0x51693e=_0x1a5b06;if(_0x169d87==='A')return _0x51693e(0x18e);if(_0x169d87==='D')return _0x51693e(0x174);if(_0x169d87==='R')return _0x51693e(0x145);if(_0x169d87==='C')return _0x51693e(0x1df);if(_0x169d87==='T')return _0x51693e(0x1ec);return _0x51693e(0x1d4);}export class GitCommandError extends Error{[_0x1a5b06(0x1e8)];[_0x1a5b06(0x169)];constructor(_0x15e383,_0x2fdbfe){const _0x111640=_0x1a5b06;super(_0x111640(0x120)),this[_0x111640(0x1e8)]=_0x15e383,this[_0x111640(0x169)]=_0x2fdbfe;}}async function runGit(_0x26b269,_0x33986d){const _0x573ac8=_0x1a5b06,_0x51b284=await runGitAllowFailure(_0x26b269,_0x33986d);if(_0x51b284[_0x573ac8(0x1e8)]!==-0xf13+0x4*-0x3fa+0x67*0x4d)throw new GitCommandError(_0x51b284[_0x573ac8(0x1e8)],_0x51b284[_0x573ac8(0x169)]);return _0x51b284;}async function runGitAllowFailure(_0x2d1bc9,_0x59991c,_0x204bdf=GIT_OUTPUT_LIMIT){return new Promise((_0x5d9ff6,_0x215bb7)=>{const _0x83538f=_0xc207,_0x313c87=spawn(_0x83538f(0x1ad),[..._0x59991c],{'cwd':_0x2d1bc9,'shell':![],'windowsHide':!![],'stdio':[_0x83538f(0x210),_0x83538f(0x134),_0x83538f(0x134)]}),_0x23f1f5=[],_0x35a3b0=[];let _0x1c1a67=-0x5*-0x556+-0x165e+-0x450,_0x4ba528=![];const _0x324bac=setTimeout(()=>_0x313c87[_0x83538f(0x13b)](_0x83538f(0x1c1)),GIT_TIMEOUT_MS);_0x313c87[_0x83538f(0x11e)]['on'](_0x83538f(0x197),_0x1e0695=>{const _0x191601=_0x83538f,_0x57d43f=Math[_0x191601(0x239)](0x7*0x35e+-0x1*-0x13e4+-0x2b76,_0x204bdf-_0x1c1a67);if(_0x57d43f>-0x978+-0x1dbf+0x2737){const _0x2c41d7=_0x1e0695[_0x191601(0x11b)](-0x1a13+-0x101e*-0x1+0x1*0x9f5,_0x57d43f);_0x23f1f5[_0x191601(0x1c5)](_0x2c41d7),_0x1c1a67+=_0x2c41d7[_0x191601(0x156)];}_0x4ba528||=_0x1e0695[_0x191601(0x156)]>_0x57d43f;}),_0x313c87[_0x83538f(0x169)]['on'](_0x83538f(0x197),_0x566806=>_0x35a3b0[_0x83538f(0x1c5)](_0x566806[_0x83538f(0x11b)](0x894+0x1791+-0x2025,-0x62*-0x3f+0x1ae5+-0x2303))),_0x313c87[_0x83538f(0x1f2)](_0x83538f(0x146),_0x5ff5d6=>{clearTimeout(_0x324bac),_0x215bb7(_0x5ff5d6);}),_0x313c87[_0x83538f(0x1f2)](_0x83538f(0x13d),_0x5d4d16=>{const _0x19176b=_0x83538f;clearTimeout(_0x324bac);const _0x5cd42f=Buffer[_0x19176b(0x234)](_0x23f1f5);_0x5d9ff6({'code':_0x5d4d16??-0x45f*-0x2+-0x120+-0x79d,'output':_0x5cd42f,'text':_0x5cd42f[_0x19176b(0x1f4)](_0x19176b(0x1ea)),'stderr':Buffer[_0x19176b(0x234)](_0x35a3b0)[_0x19176b(0x1f4)](_0x19176b(0x1ea)),'truncated':_0x4ba528});});});}function isGitUnavailable(_0x5e006e){const _0x24f412=_0x1a5b06;return _0x5e006e instanceof Error&&_0x24f412(0x1e8)in _0x5e006e&&_0x5e006e[_0x24f412(0x1e8)]===_0x24f412(0x1d3);}function summarizeText(_0x391440){const _0x49717b=_0x1a5b06;return JSON[_0x49717b(0x187)]({'sha256':createHash(_0x49717b(0x177))[_0x49717b(0x1a7)](_0x391440)[_0x49717b(0x16b)](_0x49717b(0x175)),'bytes':Buffer[_0x49717b(0x216)](_0x391440)});}
|
|
2
|
+
const _0x3dca6f=_0x11df;(function(_0x462f9f,_0x467bce){const _0x3d3bbc=_0x11df,_0x53b700=_0x462f9f();while(!![]){try{const _0xf00e22=parseInt(_0x3d3bbc(0x273))/(-0x17*0x4d+-0x1a*0x121+-0x1223*-0x2)+-parseInt(_0x3d3bbc(0x1cc))/(0x1e37+-0x1be9*-0x1+-0x3a1e)*(-parseInt(_0x3d3bbc(0x1c5))/(0x15d7*0x1+-0x2525+-0x3*-0x51b))+parseInt(_0x3d3bbc(0x1e6))/(-0x1d*0x14f+-0x29*0x61+0x1ac*0x20)+-parseInt(_0x3d3bbc(0x249))/(0xfd6*0x1+0x12*-0x26+-0xd25)+parseInt(_0x3d3bbc(0x1aa))/(-0x160b+-0x4*0x661+-0x3a9*-0xd)+-parseInt(_0x3d3bbc(0x21d))/(-0x847*0x2+0x215*0xd+-0xa7c)*(parseInt(_0x3d3bbc(0x1d1))/(0x1e8d+0x1507+-0x338c))+parseInt(_0x3d3bbc(0x191))/(0x1dcc+0x1133+-0x1*0x2ef6);if(_0xf00e22===_0x467bce)break;else _0x53b700['push'](_0x53b700['shift']());}catch(_0x22cbdf){_0x53b700['push'](_0x53b700['shift']());}}}(_0x58c1,0x110268*0x1+0x1*-0x53c12+-0x165df*0x1));import{createHash,randomUUID}from'node:crypto';import{lstat,mkdir,opendir,open,readdir,readFile,realpath,rename,rm,stat,unlink,writeFile}from'node:fs/promises';import{homedir,platform as _0x2765bd}from'node:os';import{dirname,isAbsolute,posix,relative,resolve,sep,win32}from'node:path';import{spawn}from'node:child_process';import{minimatch}from'minimatch';const GIT_TIMEOUT_MS=0x1f15+0xeed+0x2*-0xd3d,GIT_OUTPUT_LIMIT=(-0x1645+-0x15*-0xa5+-0x1*-0xabc)*(-0xed2+0x2311+0x103f*-0x1),FILE_READ_LIMIT=(0x59*-0x4a+-0x2010+-0x3bca*-0x1)*(-0x25eb+0x17b6+-0x1*-0x1235),DIRECTORY_PAGE_LIMIT=-0x2231*-0x1+0x346+-0x24af,DIRECTORY_PICKER_LIMIT=-0x236b*-0x1+0xfd5+-0x154*0x26,SEARCH_RESULT_LIMIT=0x20*0x31+-0x1de6+0x188e,FILE_INDEX_IDLE_TTL_MS=(-0x101*-0x16+-0xabe+-0xb1c)*(-0x174f+-0x2bd+0x1d*0xe8)*(-0x205f+-0x22bc+0x4703),FILE_INDEX_FRESHNESS_TTL_MS=-0x2*-0x1bbc+-0x1*0xc04d+-0x1*-0xfe05,FILE_INDEX_ENTRY_LIMIT=-0x6b6*0x55+0x2b401*-0x1+-0x3*-0x22705,FILE_INDEX_METADATA_CONCURRENCY=0x19*0x115+-0x1e81+0xe5*0x4,DEFAULT_QUICK_OPEN_EXCLUDES=[_0x3dca6f(0x1db),_0x3dca6f(0x222),_0x3dca6f(0x19d),_0x3dca6f(0x27b),_0x3dca6f(0x22e),_0x3dca6f(0x245),_0x3dca6f(0x1a4),_0x3dca6f(0x1df),_0x3dca6f(0x19e),_0x3dca6f(0x258),_0x3dca6f(0x1af),_0x3dca6f(0x1f8),_0x3dca6f(0x183),_0x3dca6f(0x298),_0x3dca6f(0x216),_0x3dca6f(0x1d5),_0x3dca6f(0x22b),_0x3dca6f(0x1c4),_0x3dca6f(0x270),_0x3dca6f(0x254),_0x3dca6f(0x24f),_0x3dca6f(0x27f),_0x3dca6f(0x1e7),_0x3dca6f(0x25c),_0x3dca6f(0x1a6)],REF_PATTERN=/^(?!-)(?!.*\.\.)(?!.*@\{)[A-Za-z0-9][A-Za-z0-9._/-]{0,254}$/;export async function createWorkspaceDirectory(_0x493c3,_0x511b73,_0x58b264){const _0x517d9f=_0x3dca6f,_0xac639b=_0x511b73[_0x517d9f(0x250)]();if(_0xac639b[_0x517d9f(0x1ef)]===-0x1bb1+-0x4*0x80c+0x3be1||_0xac639b[_0x517d9f(0x1ef)]>0x2092+0x2635+0x58*-0xcb||_0xac639b==='.'||_0xac639b==='..'||_0xac639b[_0x517d9f(0x22f)]('/')||_0xac639b[_0x517d9f(0x22f)]('\x5c')||_0xac639b[_0x517d9f(0x22f)]('\x00'))throw new Error(_0x517d9f(0x237));const _0x59323c=await Promise[_0x517d9f(0x269)](_0x58b264[_0x517d9f(0x287)](_0x100e1e=>realpath(_0x100e1e))),_0x32b03d=await realpath(_0x493c3)[_0x517d9f(0x28f)](()=>{const _0xd2ff02=_0x517d9f;throw new Error(_0xd2ff02(0x25b));}),_0x58db30=await stat(_0x32b03d)[_0x517d9f(0x28f)](()=>undefined);if(_0x58db30?.[_0x517d9f(0x221)]()!==!![]||!isWithinAllowedRoot(_0x32b03d,_0x59323c))throw new Error(_0x517d9f(0x25b));const _0x592b82=resolve(_0x32b03d,_0xac639b);if(dirname(_0x592b82)!==_0x32b03d||!isWithinAllowedRoot(_0x592b82,_0x59323c))throw new Error(_0x517d9f(0x237));try{await mkdir(_0x592b82);}catch(_0x2516cb){if(_0x2516cb[_0x517d9f(0x203)]===_0x517d9f(0x18e))throw new Error(_0x517d9f(0x1e0));throw _0x2516cb;}return _0x592b82;}export class WorkspaceFileIndex{[_0x3dca6f(0x1ab)];[_0x3dca6f(0x182)];[_0x3dca6f(0x1b9)]=[];[_0x3dca6f(0x1dd)]=![];[_0x3dca6f(0x21e)];[_0x3dca6f(0x248)];[_0x3dca6f(0x252)]=!![];[_0x3dca6f(0x26f)];[_0x3dca6f(0x199)]=-0x2de*0x2+0x1*-0x2358+0x1de*0x16;[_0x3dca6f(0x1b0)]=-0x130f+-0x1428+-0x2737*-0x1;constructor(_0x4a0521,_0x19771d={}){const _0x54e115=_0x3dca6f;this[_0x54e115(0x1ab)]=_0x4a0521,this[_0x54e115(0x182)]=_0x19771d;}async[_0x3dca6f(0x1e3)](){const _0x87ad66=_0x3dca6f;return await this[_0x87ad66(0x220)](),this[_0x87ad66(0x247)](),{'entries':this[_0x87ad66(0x1b9)][_0x87ad66(0x256)](_0x261b54=>_0x261b54[_0x87ad66(0x196)]===_0x87ad66(0x21a)),'truncated':this[_0x87ad66(0x1dd)]};}[_0x3dca6f(0x26a)](){const _0x2b9ed1=_0x3dca6f;if(this[_0x2b9ed1(0x26f)]!==undefined)clearTimeout(this[_0x2b9ed1(0x26f)]);this[_0x2b9ed1(0x26f)]=undefined,this[_0x2b9ed1(0x1b9)]=[],this[_0x2b9ed1(0x1dd)]=![],this[_0x2b9ed1(0x252)]=!![],this[_0x2b9ed1(0x199)]=-0x6eb+0x1493+0x13*-0xb8,this[_0x2b9ed1(0x1b0)]=0xf23+-0x243e*0x1+-0x709*-0x3;}async[_0x3dca6f(0x19b)](_0x97a128,_0x1efbb2,_0x356a76=SEARCH_RESULT_LIMIT,_0x3cb6c8=![]){const _0x245901=_0x3dca6f;if(_0x97a128[_0x245901(0x250)]()[_0x245901(0x1ef)]===-0x2120+0x159c*0x1+0xb84||_0x97a128[_0x245901(0x1ef)]>-0xa3+0x14f7+-0x1354||!Number[_0x245901(0x181)](_0x356a76)||_0x356a76<-0xafa+-0x2245+-0x2d40*-0x1||_0x356a76>SEARCH_RESULT_LIMIT)throw new Error(_0x245901(0x292));await this[_0x245901(0x220)](),this[_0x245901(0x247)]();const _0x5c539f=decodeSearchCursor(_0x1efbb2,_0x97a128),_0x5dcd1d=_0x5c539f===undefined?undefined:this[_0x245901(0x1b9)][_0x245901(0x1b6)](_0x98a7ad=>_0x98a7ad[_0x245901(0x20a)]===_0x5c539f&&(_0x3cb6c8||_0x98a7ad[_0x245901(0x196)]===_0x245901(0x21a))),_0x78f29=_0x5dcd1d===undefined?-(0x1678+0x1f*0x10d+-0x581*0xa):fuzzyPathScore(_0x5dcd1d[_0x245901(0x20a)],_0x97a128),_0x2f19f0=_0x5dcd1d===undefined||_0x78f29<0x15b8+0xc6+-0x167e?undefined:{'entry':_0x5dcd1d,'score':_0x78f29},_0x14f491=new RankedCandidateHeap(_0x356a76+(-0xecd+0xaf1*0x2+0x714*-0x1));for(const _0x268dd1 of this[_0x245901(0x1b9)]){if(!_0x3cb6c8&&_0x268dd1[_0x245901(0x196)]!==_0x245901(0x21a))continue;const _0x5aa225=fuzzyPathScore(_0x268dd1[_0x245901(0x20a)],_0x97a128);if(_0x5aa225<-0x2456+0xc0e*-0x1+-0x3064*-0x1)continue;const _0x1d38bf={'entry':_0x268dd1,'score':_0x5aa225};if(_0x2f19f0!==undefined&&compareRankedCandidate(_0x1d38bf,_0x2f19f0)<=-0xd*0x2a6+0x696*0x1+0x1bd8)continue;_0x14f491[_0x245901(0x1b7)](_0x1d38bf);}const _0x6937cb=_0x14f491[_0x245901(0x232)](),_0x11af5d=_0x6937cb[_0x245901(0x194)](0x1*0xbbf+0x346+-0xf05,_0x356a76)[_0x245901(0x287)](_0x436831=>_0x436831[_0x245901(0x204)]),_0x4ad95b=_0x6937cb[_0x356a76]?.[_0x245901(0x204)][_0x245901(0x20a)];return{'entries':_0x11af5d,'nextCursor':_0x4ad95b===undefined?null:encodeSearchCursor(_0x97a128,_0x11af5d['at'](-(0xb5*0x1d+0xf7f*0x1+-0x23ff))?.[_0x245901(0x20a)]??_0x5c539f??''),'truncated':_0x4ad95b!==undefined||this[_0x245901(0x1dd)]};}async[_0x3dca6f(0x220)](){const _0x1c595e=_0x3dca6f;if(!this[_0x1c595e(0x252)]&&this[_0x1c595e(0x21e)]!==undefined){if(Date[_0x1c595e(0x23e)]()-this[_0x1c595e(0x1b0)]>=(this[_0x1c595e(0x182)][_0x1c595e(0x26e)]??FILE_INDEX_FRESHNESS_TTL_MS))this[_0x1c595e(0x206)]();return;}this[_0x1c595e(0x248)]===undefined&&(this[_0x1c595e(0x248)]=this[_0x1c595e(0x201)]()[_0x1c595e(0x19a)](()=>{const _0x3ef906=_0x1c595e;this[_0x3ef906(0x248)]=undefined;})),await this[_0x1c595e(0x248)];}[_0x3dca6f(0x247)](){const _0x5c9527=_0x3dca6f;if(this[_0x5c9527(0x26f)]!==undefined)clearTimeout(this[_0x5c9527(0x26f)]);this[_0x5c9527(0x26f)]=setTimeout(()=>this[_0x5c9527(0x26a)](),this[_0x5c9527(0x182)][_0x5c9527(0x1f9)]??FILE_INDEX_IDLE_TTL_MS),this[_0x5c9527(0x26f)][_0x5c9527(0x1eb)]();}async[_0x3dca6f(0x201)](){const _0x5914a2=_0x3dca6f,_0x3f6415=await resolveRegisteredWorkspaceRoot(this[_0x5914a2(0x1ab)]),_0x2609da=[...DEFAULT_QUICK_OPEN_EXCLUDES,...await workspaceExcludePatterns(_0x3f6415)],_0x4d010a=[],_0x1e5f4a=this[_0x5914a2(0x182)][_0x5914a2(0x217)]??FILE_INDEX_ENTRY_LIMIT;let _0x34f661=![];const _0x1deded=['.'];let _0x124f06=-0x12a6+0xcf*0x29+-0xe81;while(_0x124f06<_0x1deded[_0x5914a2(0x1ef)]&&!_0x34f661){const _0x5ef8eb=_0x1deded[_0x124f06];_0x124f06+=-0xb33+0x1*-0x8a9+0x13dd;const _0x437286=await resolveWorkspaceEntryFromCanonicalRoot(_0x3f6415,_0x5ef8eb,!![])[_0x5914a2(0x28f)](()=>undefined);if(_0x437286===undefined)continue;const _0xd0b1ee=await opendir(_0x437286)[_0x5914a2(0x28f)](()=>undefined);if(_0xd0b1ee===undefined)continue;let _0x5d2392=[];const _0x127874=async()=>{const _0x45c84b=_0x5914a2,_0x426060=await Promise[_0x45c84b(0x269)](_0x5d2392);_0x5d2392=[];for(const _0x3432da of _0x426060){if(_0x3432da===undefined)continue;if(_0x3432da[_0x45c84b(0x20a)]===_0x45c84b(0x1c8)||_0x3432da[_0x45c84b(0x20a)][_0x45c84b(0x233)](_0x45c84b(0x27e))||isExcluded(_0x3432da[_0x45c84b(0x20a)],_0x2609da))continue;if(_0x3432da[_0x45c84b(0x196)]===_0x45c84b(0x1e8))_0x1deded[_0x45c84b(0x260)](_0x3432da[_0x45c84b(0x20a)]);_0x4d010a[_0x45c84b(0x260)](_0x3432da);if(_0x4d010a[_0x45c84b(0x1ef)]>=_0x1e5f4a){_0x34f661=!![];break;}}};for await(const _0x526405 of _0xd0b1ee){const _0x198de3=_0x5ef8eb==='.'?_0x526405[_0x5914a2(0x294)]:posix[_0x5914a2(0x1b3)](_0x5ef8eb[_0x5914a2(0x190)]('\x5c','/'),_0x526405[_0x5914a2(0x294)]);if(_0x198de3===_0x5914a2(0x1c8)||_0x198de3[_0x5914a2(0x233)](_0x5914a2(0x27e))||isExcluded(_0x198de3,_0x2609da))continue;_0x5d2392[_0x5914a2(0x260)](inspectWorkspaceIndexEntry(_0x3f6415,_0x198de3,_0x526405[_0x5914a2(0x294)]));if(_0x5d2392[_0x5914a2(0x1ef)]>=FILE_INDEX_METADATA_CONCURRENCY)await _0x127874();if(_0x34f661)break;}if(!_0x34f661&&_0x5d2392[_0x5914a2(0x1ef)]>-0x1c4f+0x132b*0x2+-0xa07)await _0x127874();}this[_0x5914a2(0x21e)]=_0x3f6415,this[_0x5914a2(0x1b9)]=_0x4d010a,this[_0x5914a2(0x1dd)]=_0x34f661,this[_0x5914a2(0x252)]=![],this[_0x5914a2(0x199)]=Date[_0x5914a2(0x23e)](),this[_0x5914a2(0x1b0)]=this[_0x5914a2(0x199)];}[_0x3dca6f(0x206)](){const _0x3df3eb=_0x3dca6f;if(this[_0x3df3eb(0x248)]!==undefined)return;this[_0x3df3eb(0x1b0)]=Date[_0x3df3eb(0x23e)](),this[_0x3df3eb(0x248)]=this[_0x3df3eb(0x201)]()[_0x3df3eb(0x28f)](()=>undefined)[_0x3df3eb(0x19a)](()=>{const _0x4b4e6d=_0x3df3eb;this[_0x4b4e6d(0x248)]=undefined;});}}async function workspaceExcludePatterns(_0x5bf9b8){const _0x551b19=_0x3dca6f,_0x31b635=resolve(_0x5bf9b8,_0x551b19(0x262)),_0x4d7c78=await readFile(_0x31b635,_0x551b19(0x210))[_0x551b19(0x23a)](JSON[_0x551b19(0x24e)])[_0x551b19(0x28f)](()=>undefined);if(typeof _0x4d7c78!==_0x551b19(0x1e2)||_0x4d7c78===null)return[];return[_0x551b19(0x226),_0x551b19(0x23d)][_0x551b19(0x208)](_0xc6a751=>{const _0x5e18b1=_0x551b19,_0x528e31=_0x4d7c78[_0xc6a751];return typeof _0x528e31===_0x5e18b1(0x1e2)&&_0x528e31!==null?Object[_0x5e18b1(0x1b9)](_0x528e31)[_0x5e18b1(0x208)](([_0x2e1b56,_0x58d754])=>_0x58d754===!![]?[_0x2e1b56]:[]):[];});}function isExcluded(_0x43efda,_0x45cbe9){const _0x4d94ab=_0x3dca6f;return _0x45cbe9[_0x4d94ab(0x1ba)](_0x4dae38=>minimatch(_0x43efda,_0x4dae38,{'dot':!![],'nocase':_0x2765bd()!==_0x4d94ab(0x1c9)})||minimatch(_0x43efda+'/',_0x4dae38,{'dot':!![],'nocase':_0x2765bd()!==_0x4d94ab(0x1c9)}));}function compareRankedCandidate(_0x569c1b,_0x73e50f){const _0x1b888f=_0x3dca6f;return _0x73e50f[_0x1b888f(0x229)]-_0x569c1b[_0x1b888f(0x229)]||_0x569c1b[_0x1b888f(0x204)][_0x1b888f(0x20a)][_0x1b888f(0x1c1)](_0x73e50f[_0x1b888f(0x204)][_0x1b888f(0x20a)]);}class RankedCandidateHeap{[_0x3dca6f(0x1de)];[_0x3dca6f(0x1fe)]=[];constructor(_0x106f32){const _0x5c1c85=_0x3dca6f;this[_0x5c1c85(0x1de)]=_0x106f32;}[_0x3dca6f(0x1b7)](_0x41581c){const _0x356dc5=_0x3dca6f;if(this[_0x356dc5(0x1fe)][_0x356dc5(0x1ef)]<this[_0x356dc5(0x1de)]){this[_0x356dc5(0x1fe)][_0x356dc5(0x260)](_0x41581c),this[_0x356dc5(0x1ac)](this[_0x356dc5(0x1fe)][_0x356dc5(0x1ef)]-(0x24*0x67+-0x12*0x1b7+0x347*0x5));return;}if(compareRankedCandidate(_0x41581c,this[_0x356dc5(0x1fe)][0x1417*0x1+0x24f8+-0x390f])>=0x16a0+-0x1793+0x3*0x51)return;this[_0x356dc5(0x1fe)][-0x1*-0x53+0x1*0x2311+-0x1*0x2364]=_0x41581c,this[_0x356dc5(0x219)](-0x45*-0x27+-0x1c54+0x11d1);}[_0x3dca6f(0x232)](){const _0x5ee155=_0x3dca6f;return[...this[_0x5ee155(0x1fe)]][_0x5ee155(0x278)](compareRankedCandidate);}[_0x3dca6f(0x1ac)](_0x593a10){const _0x340a9b=_0x3dca6f;let _0x60e4ed=_0x593a10;while(_0x60e4ed>0xb04+0xdbd+-0x1*0x18c1){const _0x164952=Math[_0x340a9b(0x1fc)]((_0x60e4ed-(0x12*-0x16e+-0x3b7*0x4+0x223*0x13))/(-0x17cc+-0x1811+0x5f*0x81));if(compareRankedCandidate(this[_0x340a9b(0x1fe)][_0x60e4ed],this[_0x340a9b(0x1fe)][_0x164952])<=-0x281*-0x3+-0x4e7+-0x29c)break;[this[_0x340a9b(0x1fe)][_0x60e4ed],this[_0x340a9b(0x1fe)][_0x164952]]=[this[_0x340a9b(0x1fe)][_0x164952],this[_0x340a9b(0x1fe)][_0x60e4ed]],_0x60e4ed=_0x164952;}}[_0x3dca6f(0x219)](_0x30ce71){const _0x1b1cea=_0x3dca6f;let _0x7aad6b=_0x30ce71;while(!![]){const _0x171262=_0x7aad6b*(-0x1ecb*-0x1+-0x10*-0x40+-0x22c9)+(-0x1b+-0x54*0x75+0x2680);if(_0x171262>=this[_0x1b1cea(0x1fe)][_0x1b1cea(0x1ef)])return;const _0xcf4784=_0x171262+(0x22c*0xd+-0x23d2+0x1*0x797),_0x5a5779=_0xcf4784<this[_0x1b1cea(0x1fe)][_0x1b1cea(0x1ef)]&&compareRankedCandidate(this[_0x1b1cea(0x1fe)][_0xcf4784],this[_0x1b1cea(0x1fe)][_0x171262])>-0x59+0x392*0x3+-0xa5d?_0xcf4784:_0x171262;if(compareRankedCandidate(this[_0x1b1cea(0x1fe)][_0x5a5779],this[_0x1b1cea(0x1fe)][_0x7aad6b])<=0xb32+0x1749+0x2a7*-0xd)return;[this[_0x1b1cea(0x1fe)][_0x7aad6b],this[_0x1b1cea(0x1fe)][_0x5a5779]]=[this[_0x1b1cea(0x1fe)][_0x5a5779],this[_0x1b1cea(0x1fe)][_0x7aad6b]],_0x7aad6b=_0x5a5779;}}}function fuzzyPathScore(_0x1889fc,_0x59930e){const _0x591a85=_0x3dca6f,_0x365f7e=_0x1889fc[_0x591a85(0x185)](),_0x3f7e69=_0x59930e[_0x591a85(0x250)]()[_0x591a85(0x185)]();let _0xbef70e=0x154+-0x2304+-0x10*-0x21b,_0x2a2d64=-0x2bb+-0x25a0+0x285b*0x1,_0x30b4c8=-(-0x1b60+-0x1d*-0xa+-0x4*-0x690);for(const _0x4279bc of _0x3f7e69){const _0xacf228=_0x365f7e[_0x591a85(0x1b8)](_0x4279bc,_0xbef70e);if(_0xacf228===-(0x2181+0x187*0x11+0xd*-0x493))return-(0x943*0x1+0xdde+-0x5*0x4a0);_0x2a2d64+=_0xacf228===_0x30b4c8+(-0xca*0x1+-0x326*-0x6+-0x29*0x71)?0x1*0xbe7+-0x147*-0x9+-0x7a*0x31:0x8a6+-0x1*-0x7ba+-0x105f;if(_0xacf228===-0xbe8+-0x55b+0x3*0x5c1||_0x591a85(0x189)[_0x591a85(0x22f)](_0x365f7e[_0xacf228-(-0x953+0x1f5+-0x3*-0x275)]??''))_0x2a2d64+=-0x17f7+-0x1500+-0x1*-0x2cff;_0x30b4c8=_0xacf228,_0xbef70e=_0xacf228+(-0x22c1+-0x2079+0x433b);}const _0x30af54=_0x1889fc[_0x591a85(0x194)](_0x1889fc[_0x591a85(0x242)]('/')+(-0x2*0xfb6+0x41*-0x3e+0x2f2b))[_0x591a85(0x185)]();if(_0x30af54[_0x591a85(0x22f)](_0x3f7e69))_0x2a2d64+=0x5*-0x11f+0x2a3+-0xa0*-0x5;else{if(_0x365f7e[_0x591a85(0x22f)](_0x3f7e69))_0x2a2d64+=0x951+0x4*-0x66a+0x1067;}return _0x2a2d64-_0x1889fc[_0x591a85(0x1ef)]/(-0x1b4f*0x1+-0x1*0x1d5a+0x3c91);}export async function listWorkspaceDirectories(_0x549ae7,_0x37a11a,_0x5462d3=homedir()){const _0x2643aa=_0x3dca6f,_0x401c31=await realpath(_0x5462d3),_0x449524=await Promise[_0x2643aa(0x269)](_0x37a11a[_0x2643aa(0x287)](_0x5cf671=>realpath(_0x5cf671))),_0x384def=[...new Set([_0x401c31,..._0x449524])],_0x5743c5=_0x549ae7===undefined?_0x449524[-0x11fb*0x1+0x1*-0x249b+0x3696]??_0x401c31:await realpath(_0x549ae7),_0x8474c2=await stat(_0x5743c5);if(!_0x8474c2[_0x2643aa(0x221)]()||!isWithinAllowedRoot(_0x5743c5,_0x384def))throw new Error(_0x2643aa(0x25b));const _0x47b2d3=await readdir(_0x5743c5,{'withFileTypes':!![]}),_0x3f44b6=[];for(const _0x317b7a of _0x47b2d3[_0x2643aa(0x278)]((_0x2b7d21,_0x3de23c)=>_0x2b7d21[_0x2643aa(0x294)][_0x2643aa(0x1c1)](_0x3de23c[_0x2643aa(0x294)]))){if(!_0x317b7a[_0x2643aa(0x221)]()&&!_0x317b7a[_0x2643aa(0x1f3)]())continue;const _0x1774b3=await realpath(resolve(_0x5743c5,_0x317b7a[_0x2643aa(0x294)]))[_0x2643aa(0x28f)](()=>undefined);if(_0x1774b3===undefined||!isWithinAllowedRoot(_0x1774b3,_0x384def))continue;const _0x585b3e=await stat(_0x1774b3)[_0x2643aa(0x28f)](()=>undefined);if(_0x585b3e===undefined||!_0x585b3e[_0x2643aa(0x221)]())continue;_0x3f44b6[_0x2643aa(0x260)]({'path':_0x1774b3,'name':_0x317b7a[_0x2643aa(0x294)],'selectable':isWithinAllowedRoot(_0x1774b3,_0x449524)});if(_0x3f44b6[_0x2643aa(0x1ef)]>DIRECTORY_PICKER_LIMIT)break;}const _0x3b75ee=dirname(_0x5743c5);return{'homePath':_0x401c31,'currentPath':_0x5743c5,'parentPath':_0x3b75ee===_0x5743c5||!isWithinAllowedRoot(_0x3b75ee,_0x384def)?null:_0x3b75ee,'browseRoots':_0x449524,'selectable':isWithinAllowedRoot(_0x5743c5,_0x449524),'entries':_0x3f44b6[_0x2643aa(0x194)](-0xb2f+0x5a0+0x58f,DIRECTORY_PICKER_LIMIT),'truncated':_0x3f44b6[_0x2643aa(0x1ef)]>DIRECTORY_PICKER_LIMIT};}function _0x58c1(){const _0x3e3b17=['yMfZzty0DxjS','ls1MB3jTyxq9juGLEdaWjvaLEdaWjwfUjxGWmcvHzsv4mdaLy3qLEdaWjxm','y3vYC29Y','y2f0y2G','ls1KyxrLlw9YzgvY','zMLUz2vYChjPBNq','rKLmrv9trufsq0HFteLnsvrFrvHdruveruq','zgf0yq','BMfTzq','C3rKB3v0','te9dquW','ls1YB290','kIOVlM5LEhqVkIO','C3rYAw5N','sevbrca','AxntywzLsw50zwDLCG','BgLTAxrZ','kIOVDgvZDc9YDw5ZlYOQ','reLsrunut1jzx0nvuLnpuL9jtLzbteLe','Dg9mB2nHBgvmB3DLCKnHC2u','revmrvrfra','DxrMltG','lM1HCI1LzgL0lq','lY5Flq','BhmTzMLSzxm','y2HHBMDLCW','C3vIBw9KDwXL','B2zMC2v0','ruvysvnu','rKLmrv9ot1rFreLsrunut1jz','CMvWBgfJzufSBa','mte1nta4nJfWueHhEfu','rKLmrv9squ5hrv9jtLzbteLe','AgfZAa','C2XPy2u','ls1NAxqTy29TBw9UlwrPCG','A2LUza','Bw9Kzq','Bwv0ywrHDge','CMvMCMvZAgvKqxq','zMLUywXSEq','C2vHCMnO','rKLmrv9qqvrix0vtq0fqrq','kIOVyM93zxjFy29TCg9Uzw50CY8QkG','kIOVzgLZDc8QkG','ls12zxjPzNK','C3rKzxjY','rvHju1rtx0zjteu','v09ss1nqqunfx05pvf9bteXpv0ve','lM1HCI11CgXVywqT','kIOVlNbHCMnLBc1JywnOzs8QkG','C2v0','kIOVDMvUDI8QkG','vu5tvefhruq','vfLqrv9dsefor0ve','uKvbrfK','nJCWodCYnM1IsNvZAW','D29YA3nWywnLuM9VDa','yNvIyMXLvxa','Bg9N','zNjVBq','kIOVB3v0lYOQ','CMvMCMvZAef0DgvTChrLzef0','CMvZDg9Yzq','r0Lux1jfrL9jtLzbteLe','AM9PBG','ls1ZAg9YDa','zM9YlwvHy2GTCMvM','zMLUza','ywrK','Aw5KzxHpzG','zw50CMLLCW','C29Tzq','q09qsuve','l2rLDI9UDwXS','Agv4','B3v0Chv0','ls10B3bVlw9YzgvY','C3rHDhvZ','Bg9JywXLq29TCgfYzq','zgvJB2rL','BM9YBwfSAxPL','kIOVDgfYz2v0lYOQ','m2vpCvjzyW','iYmG','C3rYAw5NAwz5','lMDPDa','BgLUDxG','AxngAwXL','yNL0zuXLBMD0Aa','nZa2odaYzfruvMzi','AwDUB3jL','yMLUyxj5igrPzMyGC2HHmJu2pq','z2v0','qureruq','oe1My3nwsa','DxbKyxrL','v09ss1nqqunfx1bbveHFsu5wquXjra','B25Jzq','kIOVlNn2zwX0zs1RAxqVkIO','CxvLCNK','Dg9mB3DLCKnHC2u','pZ8G','u0Lhs0Lmta','ls11BNrYywnRzwqTzMLSzxm9ywXS','kIOVlMDPDc8QkG','ls1ZDgfNzwq','Dhj1BMnHDgvK','y2fWywnPDhK','kIOVlNr1CMjVlYOQ','v09ss1nqqunfx0rjuKvdve9swv9fweLtvfm','CMvWBgfJzq','B2jQzwn0','y29UDgvUDenHBMrPzgf0zxm','DgvZDa','rKLmrv9ot1rFvevyva','ndmZnZu2t092qM92','kIOVx19WEwnHy2HLx18VkIO','reLsrunut1jz','y2f0lwzPBgu','zMLUzeLUzgv4','Dw5Yzwy','rvHju1rtx0rjuKvdve9swq','ls1UBY1JB21TAxqTAwq','y29Uy2f0','BgvUz3rO','CMvSyxrPDMu','CgLWzq','rKLmrv9ut09Ftefsr0u','AxntEw1IB2XPy0XPBMS','r0Lux0nptu1btKrFrKfjteve','zxjYB3i','ls1ZA2LWpq','CMvMCY9OzwfKCY8','kIOVy292zxjHz2uVkIO','AwrSzvr0Be1Z','yMXVyG','lI4U','zMXVB3i','AxnjBNrLz2vY','DMfSDwvZ','ls1LEgnSDwrLlxn0yw5KyxjK','uKvnt1rf','CMvIDwLSza','z2L0','y29Kzq','zw50CNK','oIHSAxrLCMfSkq','CMvMCMvZAeLUqMfJA2DYB3vUza','Dg9tDhjPBMC','zMXHDe1HCa','ls1VDgHLCNm','Cgf0Aa','qMLUyxj5igzPBgvZia','ls1UBY1LEhqTzgLMzG','C2L6zq','yMfZzty0','ru5pru5u','DxrMoa','BxrPBwvnCW','zgLNzxn0','q1jfqvrfx0rjuKvdve9swq','C2HHmJu2','rKLmrv9srvzju0LptL9jtLzbteLe','kIOVlM51EhqVkIO','zw50CNLmAw1PDa','D2LUmZi','C2LUA0rVD24','rKLmrq','ls1TyxGTy291BNq9','CMvHza','nZqYmtmYm2fkv1nSEa','CM9VDa','r0Lux0Hju1rpuLLFq1vsu09sx0LovKfmsuq','zw5ZDxjLtg9HzgvK','AxneAxjLy3rVCNK','kIOVBM9Kzv9TB2r1BgvZlYOQ','zxHLyW','CMvMCY9OzwfKCW','v09ss1nqqunfx1bmqvrgt1jnx1vou1vque9sveve','zMLSzxmUzxHJBhvKzq','r0Lux0Hju1rpuLLFteLnsvrFsu5wquXjra','q1jfqvrfx0zjteu','C2nVCMu','ls1UBY10zxH0y29UDG','kIOVlMfUz3vSyxiVkIO','ls1ZB3vYy2u9sevbra','r0Lux1jfue9tsvrpuLLFsu5wquXjra','kIOVlNLHCM4VkIO','Aw5JBhvKzxm','zgvZDgLUyxrPB24','zgLZCgXHEu5HBwu','C29YDgvK','C3rHCNrZv2L0Aa','rKLmrv9btfjfqurzx0vysvnuuW','ls1MB3jTyxq9','C3vIyxjYyxK','v09ss1nqqunfx0rjuKvdve9swv9oqu1fx0LovKfmsuq','ls1WB3jJzwXHAw49DJe','C3bSAxq','DgHLBG','zgLMzI10CMvL','BgLTAxq','C2vHCMnOlMv4y2X1zgu','BM93','C2HVDW','rKLmrv9st09ux01vvefusu9ox0LovKfmsuq','v09ss1nqqunfx1bbveHFtK9ux0fcu09mvvrf','BgfZDeLUzgv4t2y','rKLmrv9ot1rFrK9vtKq','CMvMCW','kIOVlMnHy2HLlYOQ','r0Lux0niqu5hrv9srvnut1jfx1voqvzbsuXbqKXf','Dg91y2G','Bg9HzgLUzW','ntCYodqXnu1tD2TZCq','Dg9vChbLCKnHC2u','ls1XDwLLDa','CMv2lxbHCNnL','revmrvrf','CgfYC2u','kIOVB2jQlYOQ','DhjPBq','ls1MAxjZDc1WyxjLBNq','C3rHBgu','rKLmrv9nt1zfx0rfu0nftKrbtLrFsu5wquXjra','kIOVyMLUlYOQ','Dgv4Da','zMLSDgvY','yMLUyxj5','kIOVyNvPBgqVkIO','sevbra','C3LTyM9SAwmTCMvM','v09ss1nqqunfx0rjuKvdve9swv9ot1rFquXmt1Dfra','kIOVlNzLBNyVkIO','rKLmrv9xuKLurv9dt05gteLdva','ls13B3jRDhjLzq','ls1UBY1PBMrLEa','ChvZAa','zgLMzG','lNzZy29Kzs9Zzxr0Aw5NCY5QC29U','ls1Uyw1Llxn0yxr1CW','CMvMCY9Yzw1VDgvZ','BwvZC2fNzq','tu9esuzjruq','C2HPzNq','lNbHCNq','ywXS','zgLZCg9Zzq','v09ss1nqqunfx0rfvKLdrv9qqvrix1jfsKvdveve','ls1Yzwn1CNnPDMu','r0Lux0Hju1rpuLLFuKvgx0LovKfmsuq','zNjLC2HUzxnZvhrStxm','zxHWAxj5vgLTzxi','kIOVlMDYywrSzs8QkG','ywXSB2nvBNnHzMu','ls1ICMfUy2G','mJi1mZDVq1fZtve','uKvoqu1fra','ywn0Aw9U','r0Lux1DpuKTtuefdrq','igj5DgvZpq','C29YDa','r0Lux0Hju1rpuLLFq09ntuLux0LovKfmsuq','A2LSBa','kIOVlNbUCg0VkIO','u1rbr0ve','CMvMCY9Yzw1VDgvZlW','lMDPDc8','kIOVDMvUzg9YlYOQ','y2XVC2u','ls1PCY1HBMnLC3rVCG','ls1MB3jTyxq9jsHYzwzUyw1LksuWosuOCMvMBMfTztPZAg9YDcKLmdKLkg9IAMvJDg5HBwuPjta5jsHirufeksuWosuOC3LTCMvMkq','vu5uuKfds0ve','Aw52ywXPza','su5wquXjrf9oqu1f','Bwf4','BwfW','rKLmrv9ot1rFuKvhvuXbuG','AxnbyNnVBhv0zq','BwLU','BwvYz2uTyMfZzq'];_0x58c1=function(){return _0x3e3b17;};return _0x58c1();}export async function listWorkspaceFiles(_0x2ce977,_0x3ac03b='.',_0x2d2d6e,_0x5159a8=DIRECTORY_PAGE_LIMIT){const _0x393e36=_0x3dca6f;if(!Number[_0x393e36(0x181)](_0x5159a8)||_0x5159a8<0x1f73+0xded+-0x2d5f||_0x5159a8>DIRECTORY_PAGE_LIMIT)throw new Error(_0x393e36(0x184));const _0x32a5d4=await resolveRegisteredWorkspaceRoot(_0x2ce977),_0x29fc8e=await resolveWorkspaceEntryFromCanonicalRoot(_0x32a5d4,_0x3ac03b,!![]),_0x5cb944=await readdir(_0x29fc8e,{'withFileTypes':!![]}),_0x383afd=decodeDirectoryCursor(_0x2d2d6e,_0x3ac03b),_0x19c4f9=_0x5cb944[_0x393e36(0x256)](_0x171e67=>_0x171e67[_0x393e36(0x294)]!==_0x393e36(0x1c8)&&!isWorkspaceUploadTemporaryName(_0x171e67[_0x393e36(0x294)]))[_0x393e36(0x287)](_0x6ba523=>_0x6ba523[_0x393e36(0x294)])[_0x393e36(0x278)]((_0x41a30,_0x3a2534)=>_0x41a30[_0x393e36(0x1c1)](_0x3a2534)),_0x3acea4=_0x383afd===undefined?-0x17*0xd5+0x89*-0x35+-0x280*-0x13:_0x19c4f9[_0x393e36(0x1ea)](_0x4c918a=>_0x4c918a>_0x383afd);if(_0x383afd!==undefined&&_0x3acea4===-(0x3*-0x61+-0x18a2+0x19c6))return{'entries':[],'nextCursor':null,'truncated':![]};const _0x484b27=_0x19c4f9[_0x393e36(0x194)](_0x3acea4,_0x3acea4+_0x5159a8),_0x33ed4b=[];for(const _0x53b6d5 of _0x484b27){const _0x42d3ca=await resolveWorkspaceEntry(_0x32a5d4,relative(_0x32a5d4,resolve(_0x29fc8e,_0x53b6d5)),![])[_0x393e36(0x28f)](_0x35bfe9=>{if(isSkippableWorkspaceEntryError(_0x35bfe9))return undefined;throw _0x35bfe9;});if(_0x42d3ca===undefined)continue;const _0x3eb426=await lstat(_0x42d3ca)[_0x393e36(0x28f)](_0x25b1f0=>{const _0x395586=_0x393e36;if(_0x25b1f0[_0x395586(0x203)]===_0x395586(0x20f))return undefined;throw _0x25b1f0;});if(_0x3eb426===undefined||!_0x3eb426[_0x393e36(0x1ca)]()&&!_0x3eb426[_0x393e36(0x221)]())continue;_0x33ed4b[_0x393e36(0x260)]({'path':relative(_0x32a5d4,_0x42d3ca)[_0x393e36(0x239)](sep)[_0x393e36(0x1b3)]('/'),'name':_0x53b6d5,'kind':_0x3eb426[_0x393e36(0x221)]()?_0x393e36(0x1e8):_0x393e36(0x21a),'size':_0x3eb426[_0x393e36(0x1ca)]()?_0x3eb426[_0x393e36(0x20d)]:null,'modifiedAt':_0x3eb426[_0x393e36(0x211)]});}const _0x292095=_0x19c4f9[_0x3acea4+_0x484b27[_0x393e36(0x1ef)]];return{'entries':_0x33ed4b,'nextCursor':_0x292095===undefined||_0x484b27[_0x393e36(0x1ef)]===-0x2*0xc11+0x1811+0x11?null:encodeDirectoryCursor(_0x3ac03b,_0x484b27[_0x484b27[_0x393e36(0x1ef)]-(0x6a*0x56+-0x2577+0x77*0x4)]),'truncated':_0x292095!==undefined};}export async function mutateWorkspaceFile(_0x259e6a,_0x42b526){const _0x40a152=_0x3dca6f,_0x3f5a88=await resolveRegisteredWorkspaceRoot(_0x259e6a);if(_0x42b526[_0x40a152(0x275)]===_0x40a152(0x228)||_0x42b526[_0x40a152(0x275)]===_0x40a152(0x213)){const _0x449e4c=await resolveNewWorkspaceEntry(_0x3f5a88,_0x42b526[_0x40a152(0x20a)]);if(_0x42b526[_0x40a152(0x275)]===_0x40a152(0x228))await writeFile(_0x449e4c,'',{'flag':'wx'});else await mkdir(_0x449e4c);return{'path':workspaceRelativePath(_0x3f5a88,_0x449e4c)};}await assertWorkspaceMutationPathHasNoSymlinks(_0x3f5a88,_0x42b526[_0x40a152(0x20a)]);const _0xec5f69=await resolveWorkspaceEntryMetadata(_0x3f5a88,_0x42b526[_0x40a152(0x20a)]);if(workspaceRelativePath(_0x3f5a88,_0xec5f69[_0x40a152(0x20a)])==='.')throw new Error(_0x40a152(0x240));if(_0x42b526[_0x40a152(0x275)]===_0x40a152(0x24d))return await rm(_0xec5f69[_0x40a152(0x20a)],{'recursive':_0xec5f69[_0x40a152(0x198)][_0x40a152(0x221)](),'force':![]}),{'deleted':!![]};const _0x349148=await resolveNewWorkspaceEntry(_0x3f5a88,_0x42b526[_0x40a152(0x230)]);if(_0xec5f69[_0x40a152(0x198)][_0x40a152(0x221)]()){const _0x1b6308=relative(_0xec5f69[_0x40a152(0x20a)],_0x349148);if(_0x1b6308===''||!isAbsolute(_0x1b6308)&&_0x1b6308!=='..'&&!_0x1b6308[_0x40a152(0x233)]('..'+sep))throw new Error(_0x40a152(0x253));}return await rename(_0xec5f69[_0x40a152(0x20a)],_0x349148),{'path':workspaceRelativePath(_0x3f5a88,_0x349148)};}async function resolveNewWorkspaceEntry(_0xb0b3c8,_0xd917db){const _0x273245=_0x3dca6f,_0x1d02d8=_0xd917db[_0x273245(0x190)]('\x5c','/'),_0x2d0b63=_0x1d02d8[_0x273245(0x239)]('/'),_0x7335e1=_0x2d0b63['at'](-(-0x156c+-0x614*-0x1+-0xf59*-0x1));if(_0xd917db[_0x273245(0x22f)]('\x00')||_0x1d02d8[_0x273245(0x233)]('/')||isAbsolute(_0xd917db)||win32[_0x273245(0x289)](_0x1d02d8)||_0x7335e1===undefined||_0x7335e1[_0x273245(0x1ef)]===0x705*-0x3+-0x174f+0x2c5e||_0x2d0b63[_0x273245(0x1ba)](invalidWorkspaceMutationSegment))throw new Error(_0x273245(0x19c));const _0x108a35=_0x2d0b63[_0x273245(0x1ef)]===0x2566*-0x1+0x89*0x1+0x16*0x1ad?'.':_0x2d0b63[_0x273245(0x194)](0x1*0x1659+0x3d3*0x1+-0x1a2c,-(0x1a38*-0x1+-0xc5b+0x2694))[_0x273245(0x1b3)]('/');await assertWorkspaceMutationPathHasNoSymlinks(_0xb0b3c8,_0x108a35);const _0x3f667e=await resolveWorkspaceEntryFromCanonicalRoot(_0xb0b3c8,_0x108a35,!![]),_0xe25edc=resolve(_0x3f667e,_0x7335e1);try{await lstat(_0xe25edc);throw new Error(_0x273245(0x234));}catch(_0x4b66a1){if(_0x4b66a1[_0x273245(0x203)]!==_0x273245(0x20f))throw _0x4b66a1;}return _0xe25edc;}async function assertWorkspaceMutationPathHasNoSymlinks(_0x59c257,_0x1096d1){const _0x23e224=_0x3dca6f,_0x3e6c28=_0x1096d1[_0x23e224(0x190)]('\x5c','/');if(_0x3e6c28==='.')return;const _0x102a5a=_0x3e6c28[_0x23e224(0x239)]('/');if(_0x1096d1[_0x23e224(0x22f)]('\x00')||_0x3e6c28[_0x23e224(0x233)]('/')||isAbsolute(_0x1096d1)||win32[_0x23e224(0x289)](_0x3e6c28)||_0x102a5a[_0x23e224(0x1ba)](invalidWorkspaceMutationSegment))throw new Error(_0x23e224(0x19c));let _0x21687d=_0x59c257;for(const _0x272df7 of _0x102a5a){_0x21687d=resolve(_0x21687d,_0x272df7);const _0x5e29e0=await lstat(_0x21687d)[_0x23e224(0x28f)](_0x345685=>{const _0x12a87a=_0x23e224;if(_0x345685[_0x12a87a(0x203)]===_0x12a87a(0x20f))throw new Error(_0x12a87a(0x243));throw _0x345685;});if(_0x5e29e0[_0x23e224(0x1f3)]())throw new Error(_0x23e224(0x19c));}}function invalidWorkspaceMutationSegment(_0xcb26a9){const _0x3c3858=_0x3dca6f;if(_0xcb26a9[_0x3c3858(0x1ef)]===-0x10bc+-0x234*0x2+-0x7b*-0x2c||_0xcb26a9==='.'||_0xcb26a9==='..'||_0xcb26a9===_0x3c3858(0x1c8))return!![];if(_0x2765bd()!==_0x3c3858(0x218))return![];const _0x2c484e=_0xcb26a9[_0x3c3858(0x1e1)](/[. ]+$/u,'')[_0x3c3858(0x24a)]();return/[<>:"|?*]/u[_0x3c3858(0x1e4)](_0xcb26a9)||/^(?:CON|PRN|AUX|NUL|COM[1-9]|LPT[1-9])(?:\..*)?$/u[_0x3c3858(0x1e4)](_0x2c484e);}function workspaceRelativePath(_0x5e6c20,_0x45a144){const _0x2cdc50=_0x3dca6f,_0x4c8e13=relative(_0x5e6c20,_0x45a144)[_0x2cdc50(0x239)](sep)[_0x2cdc50(0x1b3)]('/');return _0x4c8e13[_0x2cdc50(0x1ef)]===0x11f1+0x2486+-0x1*0x3677?'.':_0x4c8e13;}function isSkippableWorkspaceEntryError(_0x3168f1){const _0x16ec8f=_0x3dca6f;return _0x3168f1 instanceof Error&&(_0x3168f1[_0x16ec8f(0x265)]===_0x16ec8f(0x19c)||_0x3168f1[_0x16ec8f(0x265)]===_0x16ec8f(0x243)||_0x3168f1[_0x16ec8f(0x265)]===_0x16ec8f(0x288));}export async function preflightWorkspaceUpload(_0x4ee60e,_0x4f96a9,_0x351894){const _0x19d556=_0x3dca6f;if(_0x351894[_0x19d556(0x1ef)]===0x1f65+-0x3b3+0x1bb2*-0x1||_0x351894==='.'||_0x351894==='..'||_0x351894[_0x19d556(0x22f)]('\x00')||_0x351894[_0x19d556(0x22f)]('/')||_0x351894[_0x19d556(0x22f)]('\x5c')||isWorkspaceUploadTemporaryName(_0x351894))return{'path':'','absolutePath':'','status':_0x19d556(0x285)};const _0x573ba0=await resolveRegisteredWorkspaceRoot(_0x4ee60e),_0x46ed60=await resolveWorkspaceEntry(_0x573ba0,_0x4f96a9,!![]),_0x32599c=resolve(_0x46ed60,_0x351894);if(dirname(_0x32599c)!==_0x46ed60)throw new Error(_0x19d556(0x19c));const _0x1dd8fd=relative(_0x573ba0,_0x32599c)[_0x19d556(0x239)](sep)[_0x19d556(0x1b3)]('/'),_0x3dbe8d=await lstat(_0x32599c)[_0x19d556(0x28f)](_0x2a69ca=>{const _0xe34cb4=_0x19d556;if(_0x2a69ca[_0xe34cb4(0x203)]===_0xe34cb4(0x20f))return undefined;throw _0x2a69ca;});if(_0x3dbe8d===undefined)return{'path':_0x1dd8fd,'absolutePath':_0x32599c,'status':_0x19d556(0x1a9)};if(_0x3dbe8d[_0x19d556(0x1f3)]())throw new Error(_0x19d556(0x19c));if(_0x3dbe8d[_0x19d556(0x1ca)]())return{'path':_0x1dd8fd,'absolutePath':_0x32599c,'status':_0x19d556(0x1a1)};return{'path':_0x1dd8fd,'absolutePath':_0x32599c,'status':_0x19d556(0x1ec)};}export function workspaceUploadTemporaryName(_0x337224){const _0x24110=_0x3dca6f;return _0x24110(0x1a3)+_0x337224+_0x24110(0x268);}function isWorkspaceUploadTemporaryName(_0x1c5781){const _0x2bc9bb=_0x3dca6f;return/^\.mar-upload-[0-9a-f-]{36}\.part$/iu[_0x2bc9bb(0x1e4)](_0x1c5781)||/^\.mar-edit-[0-9a-f-]{36}\.part$/iu[_0x2bc9bb(0x1e4)](_0x1c5781);}export async function readWorkspaceTextFile(_0x18aa33,_0x110435,_0x45ae25=0x1d90+0x6*-0x9d+-0x19e2,_0x2e8433=FILE_READ_LIMIT){const _0x384efc=_0x3dca6f;if(!Number[_0x384efc(0x181)](_0x45ae25)||_0x45ae25<-0x21fc+0x29d*-0xa+0x3c1e||!Number[_0x384efc(0x181)](_0x2e8433)||_0x2e8433<0x2*-0x265+0xab4+-0x5e9||_0x2e8433>FILE_READ_LIMIT)throw new Error(_0x384efc(0x192));const _0x5ba3ed=await resolveRegisteredWorkspaceRoot(_0x18aa33),_0x5ed7c4=await resolveWorkspaceEntry(_0x5ba3ed,_0x110435,![]),_0x44507c=await lstat(_0x5ed7c4);if(!_0x44507c[_0x384efc(0x1ca)]())throw new Error(_0x384efc(0x288));if(_0x44507c[_0x384efc(0x20d)]>FILE_READ_LIMIT*(-0x4b5+0x1c3a*0x1+-0x1775))throw new Error(_0x384efc(0x1f2));const _0x31cee7=await readFile(_0x5ed7c4),_0x36ce1d=createHash(_0x384efc(0x214))[_0x384efc(0x1d2)](_0x31cee7)[_0x384efc(0x212)](_0x384efc(0x1bd)),_0x4a6ec3=_0x31cee7[_0x384efc(0x22f)](-0xfee+0x12eb+0x1*-0x2fd)||!isValidUtf8(_0x31cee7);if(_0x4a6ec3){const _0xe13955=Math[_0x384efc(0x28a)](_0x31cee7[_0x384efc(0x1ef)],_0x45ae25+_0x2e8433),_0x50c575=_0x31cee7[_0x384efc(0x236)](_0x45ae25,_0xe13955);return{'path':relative(_0x5ba3ed,_0x5ed7c4)[_0x384efc(0x239)](sep)[_0x384efc(0x1b3)]('/'),'encoding':_0x384efc(0x20e),'size':_0x31cee7[_0x384efc(0x1ef)],'content':_0x50c575[_0x384efc(0x207)](_0x384efc(0x20e)),'truncated':_0xe13955<_0x31cee7[_0x384efc(0x1ef)],'nextOffset':_0xe13955<_0x31cee7[_0x384efc(0x1ef)]?_0xe13955:null,'revision':_0x36ce1d};}if(_0x45ae25>-0xd*0x12f+0x109+-0x72d*-0x2&&_0x45ae25<_0x31cee7[_0x384efc(0x1ef)]&&isUtf8ContinuationByte(_0x31cee7[_0x45ae25]))throw new Error(_0x384efc(0x192));let _0x4b7834=Math[_0x384efc(0x28a)](_0x31cee7[_0x384efc(0x1ef)],_0x45ae25+_0x2e8433);if(_0x4b7834<_0x31cee7[_0x384efc(0x1ef)]&&isUtf8ContinuationByte(_0x31cee7[_0x4b7834])){while(_0x4b7834>_0x45ae25&&isUtf8ContinuationByte(_0x31cee7[_0x4b7834]))_0x4b7834-=-0x2516+0x29*0x8b+0xed4;if(_0x4b7834===_0x45ae25){_0x4b7834+=-0xeed+0x1829+0x8b*-0x11;while(_0x4b7834<_0x31cee7[_0x384efc(0x1ef)]&&isUtf8ContinuationByte(_0x31cee7[_0x4b7834]))_0x4b7834+=0x122*-0x13+-0x181b+-0xb*-0x426;}}const _0x3e3aed=_0x31cee7[_0x384efc(0x236)](_0x45ae25,_0x4b7834),_0x1e69e6=new TextDecoder(_0x384efc(0x187),{'fatal':!![]})[_0x384efc(0x1c2)](_0x3e3aed),_0x3bd3f0=_0x4b7834<_0x31cee7[_0x384efc(0x1ef)]?_0x4b7834:null;return{'path':relative(_0x5ba3ed,_0x5ed7c4)[_0x384efc(0x239)](sep)[_0x384efc(0x1b3)]('/'),'encoding':_0x384efc(0x187),'size':_0x31cee7[_0x384efc(0x1ef)],'content':_0x1e69e6,'truncated':_0x3bd3f0!==null,'nextOffset':_0x3bd3f0,'revision':_0x36ce1d};}export async function writeWorkspaceTextFile(_0x47cc6f,_0x29cd22,_0xb30c1f,_0x1a3b90){const _0x5d9351=_0x3dca6f;if(!/^[0-9a-f]{64}$/u[_0x5d9351(0x1e4)](_0x1a3b90))throw new Error(_0x5d9351(0x215));const _0x2f22de=Buffer[_0x5d9351(0x1ae)](_0xb30c1f,_0x5d9351(0x210));if(_0x2f22de[_0x5d9351(0x1ef)]>FILE_READ_LIMIT*(0x212*-0xd+0xb0b*0x1+-0x1*-0xfef))throw new Error(_0x5d9351(0x1f2));if(_0x2f22de[_0x5d9351(0x22f)](0x1e3*-0x7+0x7d8+0x1*0x55d))throw new Error(_0x5d9351(0x1e5));const _0x9f5375=await resolveRegisteredWorkspaceRoot(_0x47cc6f);await assertWorkspaceMutationPathHasNoSymlinks(_0x9f5375,_0x29cd22);const _0x2b1d0a=await resolveWorkspaceEntry(_0x9f5375,_0x29cd22,![]),_0x36e75a=await lstat(_0x2b1d0a);if(!_0x36e75a[_0x5d9351(0x1ca)]())throw new Error(_0x5d9351(0x288));const _0x39dbcc=await readFile(_0x2b1d0a);if(_0x39dbcc[_0x5d9351(0x22f)](0x1*0x26dc+0x1*0x2306+-0x49e2)||!isValidUtf8(_0x39dbcc))throw new Error(_0x5d9351(0x1e5));const _0x49c4d5=createHash(_0x5d9351(0x214))[_0x5d9351(0x1d2)](_0x39dbcc)[_0x5d9351(0x212)](_0x5d9351(0x1bd));if(_0x49c4d5!==_0x1a3b90)throw new Error(_0x5d9351(0x25d));const _0x459598=createHash(_0x5d9351(0x214))[_0x5d9351(0x1d2)](_0x2f22de)[_0x5d9351(0x212)](_0x5d9351(0x1bd)),_0x1e6cc6=resolve(dirname(_0x2b1d0a),_0x5d9351(0x188)+randomUUID()+_0x5d9351(0x268));try{await writeFile(_0x1e6cc6,_0x2f22de,{'flag':'wx','mode':_0x36e75a[_0x5d9351(0x197)]}),await rename(_0x1e6cc6,_0x2b1d0a);}finally{await rm(_0x1e6cc6,{'force':!![]})[_0x5d9351(0x28f)](()=>undefined);}return{'path':workspaceRelativePath(_0x9f5375,_0x2b1d0a),'revision':_0x459598,'size':_0x2f22de[_0x5d9351(0x1ef)]};}export async function readWorkspaceFileContentRange(_0x49e7d0,_0x392aa5,_0x208506=0x1631*-0x1+0x5bd+0x1074,_0x10efb5=FILE_READ_LIMIT){const _0x4811ea=_0x3dca6f;if(!Number[_0x4811ea(0x181)](_0x208506)||_0x208506<0x2472*-0x1+0x6*0x682+-0x29a||!Number[_0x4811ea(0x181)](_0x10efb5)||_0x10efb5<-0x1*-0x1ea3+-0x163d+-0x865||_0x10efb5>FILE_READ_LIMIT)throw new Error(_0x4811ea(0x192));const _0x3777a0=await resolveRegisteredWorkspaceRoot(_0x49e7d0),_0x297ba7=await resolveWorkspaceEntry(_0x3777a0,_0x392aa5,![]),_0x276a2c=await lstat(_0x297ba7);if(!_0x276a2c[_0x4811ea(0x1ca)]())throw new Error(_0x4811ea(0x288));if(_0x208506>_0x276a2c[_0x4811ea(0x20d)])throw new Error(_0x4811ea(0x192));const _0x2b229a=Math[_0x4811ea(0x28a)](_0x10efb5,_0x276a2c[_0x4811ea(0x20d)]-_0x208506),_0x14f15e=Buffer[_0x4811ea(0x271)](_0x2b229a),_0x2ef39d=await open(_0x297ba7,'r');try{const {bytesRead:_0x37fb66}=await _0x2ef39d[_0x4811ea(0x21c)](_0x14f15e,0x1f03+-0xea+-0x1e19,_0x2b229a,_0x208506),_0x7c24dd=_0x208506+_0x37fb66;return{'path':relative(_0x3777a0,_0x297ba7)[_0x4811ea(0x239)](sep)[_0x4811ea(0x1b3)]('/'),'size':_0x276a2c[_0x4811ea(0x20d)],'offset':_0x208506,'contentBase64':_0x14f15e[_0x4811ea(0x236)](-0x6d+0x25d4+0x1*-0x2567,_0x37fb66)[_0x4811ea(0x207)](_0x4811ea(0x20e)),'nextOffset':_0x7c24dd<_0x276a2c[_0x4811ea(0x20d)]?_0x7c24dd:null};}finally{await _0x2ef39d[_0x4811ea(0x280)]();}}export async function readAllowedTextFile(_0x1e094b,_0xb5e7ab,_0x9c179e=0x1b13+-0xcd*0xb+-0x1244,_0xb36b1a=FILE_READ_LIMIT){const _0x5daa65=_0x3dca6f;if(!isAbsolute(_0x1e094b))throw new Error(_0x5daa65(0x19c));const _0x3afa0c=await realpath(_0x1e094b)[_0x5daa65(0x28f)](_0x5ea263=>{const _0x20dd17=_0x5daa65;if(_0x5ea263[_0x20dd17(0x203)]===_0x20dd17(0x20f))throw new Error(_0x20dd17(0x243));throw _0x5ea263;}),_0x482301=await Promise[_0x5daa65(0x269)](_0xb5e7ab[_0x5daa65(0x287)](_0x537195=>realpath(_0x537195)));if(!isWithinAllowedRoot(_0x3afa0c,_0x482301))throw new Error(_0x5daa65(0x19c));const _0x2b5974=await lstat(_0x3afa0c);if(!_0x2b5974[_0x5daa65(0x1ca)]())throw new Error(_0x5daa65(0x288));if(_0x2b5974[_0x5daa65(0x20d)]>FILE_READ_LIMIT*(0x721*0x3+0xeeb+-0x243e))throw new Error(_0x5daa65(0x1f2));if(!Number[_0x5daa65(0x181)](_0x9c179e)||_0x9c179e<0x2*-0x712+-0x4*-0x8e9+-0x4*0x560||!Number[_0x5daa65(0x181)](_0xb36b1a)||_0xb36b1a<-0x8f4*-0x1+0x151*0xa+-0x161d||_0xb36b1a>FILE_READ_LIMIT)throw new Error(_0x5daa65(0x192));const _0x37d151=await readFile(_0x3afa0c),_0x380622=_0x37d151[_0x5daa65(0x22f)](0xbd6+0x14*-0x165+0x2ad*0x6)||!isValidUtf8(_0x37d151),_0x5cac7d=Math[_0x5daa65(0x28a)](_0x37d151[_0x5daa65(0x1ef)],_0x9c179e+_0xb36b1a);if(_0x380622){const _0x3ae2d4=_0x37d151[_0x5daa65(0x236)](_0x9c179e,_0x5cac7d);return{'path':_0x3afa0c,'encoding':_0x5daa65(0x20e),'size':_0x37d151[_0x5daa65(0x1ef)],'content':_0x3ae2d4[_0x5daa65(0x207)](_0x5daa65(0x20e)),'truncated':_0x5cac7d<_0x37d151[_0x5daa65(0x1ef)],'nextOffset':_0x5cac7d<_0x37d151[_0x5daa65(0x1ef)]?_0x5cac7d:null};}if(_0x9c179e>-0x125+-0x1d66+0x1e8b&&_0x9c179e<_0x37d151[_0x5daa65(0x1ef)]&&isUtf8ContinuationByte(_0x37d151[_0x9c179e]))throw new Error(_0x5daa65(0x192));let _0x399694=_0x5cac7d;if(_0x399694<_0x37d151[_0x5daa65(0x1ef)]&&isUtf8ContinuationByte(_0x37d151[_0x399694])){while(_0x399694>_0x9c179e&&isUtf8ContinuationByte(_0x37d151[_0x399694]))_0x399694-=-0x1310+0x1200+0x111;if(_0x399694===_0x9c179e){_0x399694+=-0x1*0x266e+0xc56+0x1a19;while(_0x399694<_0x37d151[_0x5daa65(0x1ef)]&&isUtf8ContinuationByte(_0x37d151[_0x399694]))_0x399694+=-0x4ae*0x6+-0x1c61+-0x21*-0x1b6;}}const _0xb458f6=_0x399694<_0x37d151[_0x5daa65(0x1ef)]?_0x399694:null;return{'path':_0x3afa0c,'encoding':_0x5daa65(0x187),'size':_0x37d151[_0x5daa65(0x1ef)],'content':new TextDecoder(_0x5daa65(0x187),{'fatal':!![]})[_0x5daa65(0x1c2)](_0x37d151[_0x5daa65(0x236)](_0x9c179e,_0x399694)),'truncated':_0xb458f6!==null,'nextOffset':_0xb458f6};}function isValidUtf8(_0x4ea83d){const _0x4f4e1d=_0x3dca6f;try{return new TextDecoder(_0x4f4e1d(0x187),{'fatal':!![]})[_0x4f4e1d(0x1c2)](_0x4ea83d),!![];}catch{return![];}}function isUtf8ContinuationByte(_0x2bb503){return(_0x2bb503&0x1389+-0x14bb+0x1f2*0x1)===0x2a2+-0x9d5+0x7b3;}export async function searchWorkspaceFiles(_0x2c9ee0,_0x6ec9c5,_0x394e4d,_0x3b505e=SEARCH_RESULT_LIMIT,_0x122bf0=![]){const _0x410ee2=_0x3dca6f,_0x306eee=new WorkspaceFileIndex(_0x2c9ee0);try{return await _0x306eee[_0x410ee2(0x19b)](_0x6ec9c5,_0x394e4d,_0x3b505e,_0x122bf0);}finally{_0x306eee[_0x410ee2(0x26a)]();}}async function resolveRegisteredWorkspaceRoot(_0x373cac){const _0x41ae2b=_0x3dca6f,_0x7823b6=await realpath(_0x373cac);if(normalizeWorkspacePath(_0x7823b6)!==normalizeWorkspacePath(_0x373cac))throw new Error(_0x41ae2b(0x1a2));return _0x7823b6;}async function resolveWorkspaceEntry(_0xaa86f7,_0xd83f5f,_0x4b9d6d){const _0x3eae07=await resolveRegisteredWorkspaceRoot(_0xaa86f7);return resolveWorkspaceEntryFromCanonicalRoot(_0x3eae07,_0xd83f5f,_0x4b9d6d);}async function resolveWorkspaceEntryFromCanonicalRoot(_0x2d72c7,_0x2760a4,_0x52a252){const _0x38ee1a=_0x3dca6f,_0x164c21=await resolveWorkspaceEntryMetadata(_0x2d72c7,_0x2760a4);if(_0x52a252?!_0x164c21[_0x38ee1a(0x198)][_0x38ee1a(0x221)]():!_0x164c21[_0x38ee1a(0x198)][_0x38ee1a(0x1ca)]()&&!_0x164c21[_0x38ee1a(0x198)][_0x38ee1a(0x221)]())throw new Error(_0x52a252?_0x38ee1a(0x18f):_0x38ee1a(0x288));return _0x164c21[_0x38ee1a(0x20a)];}async function resolveWorkspaceEntryMetadata(_0x1220db,_0x24ddaf){const _0x3c2bd1=_0x3dca6f;if(_0x24ddaf[_0x3c2bd1(0x22f)]('\x00')||_0x24ddaf[_0x3c2bd1(0x1ef)]===0x43*0x3b+0x1*-0x101+-0xe70||_0x24ddaf[_0x3c2bd1(0x233)]('/')||_0x24ddaf[_0x3c2bd1(0x233)]('\x5c'))throw new Error(_0x3c2bd1(0x19c));const _0x5f2b01=_0x24ddaf[_0x3c2bd1(0x190)]('\x5c','/');if(_0x5f2b01[_0x3c2bd1(0x239)]('/')[_0x3c2bd1(0x1ba)](_0x3c48c3=>_0x3c48c3==='..'||_0x3c48c3===_0x3c2bd1(0x1c8)))throw new Error(_0x3c2bd1(0x19c));let _0x3ece97;try{_0x3ece97=await realpath(resolve(_0x1220db,_0x5f2b01));}catch(_0x2b2302){if(_0x2b2302[_0x3c2bd1(0x203)]===_0x3c2bd1(0x20f))throw new Error(_0x3c2bd1(0x243));throw _0x2b2302;}const _0x5a082d=relative(_0x1220db,_0x3ece97);if(isAbsolute(_0x5a082d)||_0x5a082d[_0x3c2bd1(0x233)]('..')||_0x5a082d==='..'||_0x5a082d[_0x3c2bd1(0x233)]('..'+sep))throw new Error(_0x3c2bd1(0x19c));const _0xb88f3a=await lstat(_0x3ece97);return{'path':_0x3ece97,'metadata':_0xb88f3a};}async function inspectWorkspaceIndexEntry(_0x623c7a,_0x2b3393,_0x380f66){const _0x20011b=_0x3dca6f;try{const _0x515be2=await resolveWorkspaceEntryMetadata(_0x623c7a,_0x2b3393);if(!_0x515be2[_0x20011b(0x198)][_0x20011b(0x1ca)]()&&!_0x515be2[_0x20011b(0x198)][_0x20011b(0x221)]())return undefined;const _0x11916d=relative(_0x623c7a,_0x515be2[_0x20011b(0x20a)])[_0x20011b(0x239)](sep)[_0x20011b(0x1b3)]('/');return _0x515be2[_0x20011b(0x198)][_0x20011b(0x221)]()?{'path':_0x11916d,'name':_0x380f66,'kind':_0x20011b(0x1e8),'size':null,'modifiedAt':_0x515be2[_0x20011b(0x198)][_0x20011b(0x211)]}:{'path':_0x11916d,'name':_0x380f66,'kind':_0x20011b(0x21a),'size':_0x515be2[_0x20011b(0x198)][_0x20011b(0x20d)],'modifiedAt':_0x515be2[_0x20011b(0x198)][_0x20011b(0x211)]};}catch{return undefined;}}function encodeDirectoryCursor(_0x316c65,_0x65b546){const _0x460c96=_0x3dca6f;return Buffer[_0x460c96(0x1ae)](JSON[_0x460c96(0x1c7)]({'path':_0x316c65,'name':_0x65b546}))[_0x460c96(0x207)](_0x460c96(0x28c));}function decodeDirectoryCursor(_0x10a544,_0x3f54c7){const _0x52f7b3=_0x3dca6f;if(_0x10a544===undefined)return undefined;try{const _0x113d27=JSON[_0x52f7b3(0x24e)](Buffer[_0x52f7b3(0x1ae)](_0x10a544,_0x52f7b3(0x28c))[_0x52f7b3(0x207)](_0x52f7b3(0x210)));if(typeof _0x113d27!==_0x52f7b3(0x1e2)||_0x113d27===null||_0x113d27[_0x52f7b3(0x20a)]!==_0x3f54c7||typeof _0x113d27[_0x52f7b3(0x294)]!==_0x52f7b3(0x299))throw new Error();return _0x113d27[_0x52f7b3(0x294)];}catch{throw new Error(_0x52f7b3(0x184));}}function encodeSearchCursor(_0x5c6ad8,_0x18b866){const _0x13dff2=_0x3dca6f;return Buffer[_0x13dff2(0x1ae)](JSON[_0x13dff2(0x1c7)]({'query':_0x5c6ad8,'path':_0x18b866}))[_0x13dff2(0x207)](_0x13dff2(0x28c));}function decodeSearchCursor(_0x2c4621,_0x3fa739){const _0x3845ba=_0x3dca6f;if(_0x2c4621===undefined)return undefined;try{const _0x14e34a=JSON[_0x3845ba(0x24e)](Buffer[_0x3845ba(0x1ae)](_0x2c4621,_0x3845ba(0x28c))[_0x3845ba(0x207)](_0x3845ba(0x210)));if(typeof _0x14e34a!==_0x3845ba(0x1e2)||_0x14e34a===null||_0x14e34a[_0x3845ba(0x1d6)]!==_0x3fa739||typeof _0x14e34a[_0x3845ba(0x20a)]!==_0x3845ba(0x299))throw new Error();return _0x14e34a[_0x3845ba(0x20a)];}catch{throw new Error(_0x3845ba(0x184));}}export function normalizeWorkspacePath(_0x3bf9da,_0x3cd651=_0x2765bd()){const _0x328946=_0x3dca6f;if(_0x3bf9da[_0x328946(0x1ef)]===-0x270f+-0x2117+-0x5*-0xe6e||_0x3bf9da[_0x328946(0x22f)]('\u0000'))throw new Error(_0x328946(0x1d3));if(_0x3cd651===_0x328946(0x218)){if(/^\\\\[?.]/[_0x328946(0x1e4)](_0x3bf9da))throw new Error(_0x328946(0x26b));const _0x2688db=win32[_0x328946(0x1c3)](_0x3bf9da[_0x328946(0x190)]('/','\x5c'));if(!win32[_0x328946(0x289)](_0x2688db))throw new Error(_0x328946(0x241));return _0x2688db[_0x328946(0x1e1)](/\\+$/,'')[_0x328946(0x1d7)]();}if(_0x3cd651!==_0x328946(0x1c9))throw new Error(_0x328946(0x225));const _0x1878b5=posix[_0x328946(0x1c3)](_0x3bf9da);if(!posix[_0x328946(0x289)](_0x1878b5))throw new Error(_0x328946(0x241));return _0x1878b5==='/'?_0x1878b5:_0x1878b5[_0x328946(0x1e1)](/\/+$/,'');}export function isWithinAllowedRoot(_0x536c45,_0x887542,_0x349572=_0x2765bd()){const _0x2bdc4c=_0x3dca6f,_0x3a0735=normalizeWorkspacePath(_0x536c45,_0x349572),_0x36bfe6=_0x349572===_0x2bdc4c(0x218)?win32:posix;return _0x887542[_0x2bdc4c(0x1ba)](_0x1c7d0d=>{const _0x30136b=_0x2bdc4c,_0x4d7605=normalizeWorkspacePath(_0x1c7d0d,_0x349572),_0x47b7b4=_0x36bfe6[_0x30136b(0x1f0)](_0x4d7605,_0x3a0735);return _0x47b7b4===''||!_0x47b7b4[_0x30136b(0x233)]('..')&&!_0x36bfe6[_0x30136b(0x289)](_0x47b7b4);});}export async function inspectWorkspace(_0x4aa84e,_0xb9469e){const _0x359ec2=_0x3dca6f,_0x59a984=await realpath(_0x4aa84e),_0x12e7a2=await Promise[_0x359ec2(0x269)](_0xb9469e[_0x359ec2(0x287)](_0x55528a=>realpath(_0x55528a))),_0x402a76=await stat(_0x59a984);if(!_0x402a76[_0x359ec2(0x221)]()||!isWithinAllowedRoot(_0x59a984,_0x12e7a2))throw new Error(_0x359ec2(0x1a2));try{const _0x49f2cc=await readGitSummary(_0x59a984);return{'path':_0x59a984,'kind':_0x359ec2(0x276),'gitSummary':_0x49f2cc};}catch(_0x242749){if(_0x242749 instanceof GitCommandError&&_0x242749[_0x359ec2(0x203)]===-0xb3*-0xa+0x10cb+0x3*-0x7c3||isGitUnavailable(_0x242749))return{'path':_0x59a984,'kind':_0x359ec2(0x1e8)};throw _0x242749;}}export async function readGitSummary(_0x4653f2){const _0x43a462=_0x3dca6f,_0x51868c=(await runGit(_0x4653f2,[_0x43a462(0x24c),_0x43a462(0x195)]))[_0x43a462(0x255)][_0x43a462(0x250)](),_0x5dc3eb=await runGitAllowFailure(_0x4653f2,[_0x43a462(0x24c),_0x43a462(0x19f),_0x43a462(0x259)]),_0x3bc852=await runGitAllowFailure(_0x4653f2,[_0x43a462(0x25a),_0x43a462(0x24b),_0x43a462(0x1b4),_0x43a462(0x259)]),_0x1e092b=(await runGit(_0x4653f2,[_0x43a462(0x1c0),_0x43a462(0x238),'-z']))[_0x43a462(0x1be)][_0x43a462(0x1ef)]>-0xdfa+0x197+-0x7*-0x1c5,_0x24f085=await runGit(_0x4653f2,[_0x43a462(0x1c0),_0x43a462(0x238)])[_0x43a462(0x23a)](_0x113c4b=>_0x113c4b[_0x43a462(0x255)]);return{'commonDir':_0x51868c,'head':_0x5dc3eb[_0x43a462(0x203)]===-0xa3*0xd+0x7ce+0x79?_0x5dc3eb[_0x43a462(0x255)][_0x43a462(0x250)]():'','branch':_0x3bc852[_0x43a462(0x203)]===-0x20cb+-0x1235*0x1+0x1980*0x2?_0x3bc852[_0x43a462(0x255)][_0x43a462(0x250)]():null,'dirty':_0x1e092b,'snapshot':summarizeText(_0x24f085)};}export function assertSafeGitRef(_0x904bc2){const _0x5393fe=_0x3dca6f;if(!REF_PATTERN[_0x5393fe(0x1e4)](_0x904bc2))throw new Error(_0x5393fe(0x1b2));}export async function readRestrictedDiff(_0xf87bf8,_0x357028,_0x31d9c5){const _0x4ddd10=_0x3dca6f;assertSafeGitRef(_0x357028),assertSafeGitRef(_0x31d9c5);const _0x15091d=await runGit(_0xf87bf8,[_0x4ddd10(0x261),_0x4ddd10(0x20c),_0x4ddd10(0x22a),_0x357028,_0x31d9c5]),_0x23fd2c=_0x15091d[_0x4ddd10(0x1be)][_0x4ddd10(0x22f)](0xa9c+0x2291+-0x2d2d)||_0x15091d[_0x4ddd10(0x255)][_0x4ddd10(0x22f)](_0x4ddd10(0x20b));if(_0x23fd2c)return{'binary':!![],'summary':_0x4ddd10(0x1ce)+createHash(_0x4ddd10(0x214))[_0x4ddd10(0x1d2)](_0x15091d[_0x4ddd10(0x1be)])[_0x4ddd10(0x212)](_0x4ddd10(0x1bd))+_0x4ddd10(0x277)+_0x15091d[_0x4ddd10(0x1be)][_0x4ddd10(0x1ef)],'truncated':_0x15091d[_0x4ddd10(0x1dd)]};return{'binary':![],'text':_0x15091d[_0x4ddd10(0x255)],'truncated':_0x15091d[_0x4ddd10(0x1dd)]};}function currentBranchFromStatusHeader(_0x27e88b){const _0x4d0510=_0x3dca6f,_0x20488d=_0x27e88b[_0x4d0510(0x194)](0x1c96+0x88b+-0x251e);if(_0x20488d[_0x4d0510(0x233)](_0x4d0510(0x29a)))return null;const _0x12de4e=/^(?:No commits yet on|Initial commit on) (.+)$/[_0x4d0510(0x223)](_0x20488d);if(_0x12de4e!==null)return _0x12de4e[-0x318+0x1ec6+0x1*-0x1bad]??null;return _0x20488d[_0x4d0510(0x239)](_0x4d0510(0x1fb))[0x64f+-0x11*0xfb+0xa5c]?.[_0x4d0510(0x239)]('\x20')[0xf3e*-0x1+0x851*0x1+0x3*0x24f]??null;}export async function readCurrentChangesSummary(_0xaab7fa){const _0xeb44a=_0x3dca6f,_0x527543=await runGit(_0xaab7fa,[_0xeb44a(0x1c0),_0xeb44a(0x238),'-z',_0xeb44a(0x272),_0xeb44a(0x1da)]),_0x1fd389=_0x527543[_0xeb44a(0x255)][_0xeb44a(0x239)]('\x00'),_0x26e37d=_0x1fd389[_0xeb44a(0x267)]()??'',_0x4bf85e=[];for(let _0x451ddb=-0x730*0x3+-0x66*0x15+0x1dee;_0x451ddb<_0x1fd389[_0xeb44a(0x1ef)];_0x451ddb+=-0xf94*-0x2+0x2*0x989+-0x3dd*0xd){const _0x8d3648=_0x1fd389[_0x451ddb];if(_0x8d3648[_0xeb44a(0x1ef)]<-0x829+-0x2272+0x2a9f)continue;const _0xd01cf5=_0x8d3648[-0x1d*0x133+0xa1e+0x18a9],_0x3c307e=_0x8d3648[-0xb8c+0x2*0x11ba+-0x17e7],_0x5a37e0=_0x8d3648[_0xeb44a(0x194)](-0x9c8+0x12ec+-0x29*0x39);if(_0xd01cf5==='?'&&_0x3c307e==='?'){_0x4bf85e[_0xeb44a(0x260)]({'path':_0x5a37e0,'state':_0xeb44a(0x283),'change':_0xeb44a(0x1d0)});continue;}_0xd01cf5!=='\x20'&&_0x4bf85e[_0xeb44a(0x260)]({'path':_0x5a37e0,'state':_0xeb44a(0x27c),'change':gitChange(_0xd01cf5)});_0x3c307e!=='\x20'&&_0x4bf85e[_0xeb44a(0x260)]({'path':_0x5a37e0,'state':_0xeb44a(0x1a7),'change':gitChange(_0x3c307e)});if(_0xd01cf5==='R'||_0xd01cf5==='C'||_0x3c307e==='R'||_0x3c307e==='C')_0x451ddb+=-0x89d+0xc5*0x1d+0xdb3*-0x1;}return{'branch':_0x26e37d[_0xeb44a(0x233)](_0xeb44a(0x1c6))?currentBranchFromStatusHeader(_0x26e37d):null,'changes':_0x4bf85e};}export async function listInitializedSubmodulePaths(_0x403043){const _0x3b351c=_0x3dca6f,_0x209324=await runGit(_0x403043,[_0x3b351c(0x18c),_0x3b351c(0x1c0),_0x3b351c(0x26c)]);return _0x209324[_0x3b351c(0x255)][_0x3b351c(0x239)](/\r?\n/)[_0x3b351c(0x208)](_0x2a90b8=>{const _0x380181=_0x3b351c;if(_0x2a90b8[_0x380181(0x1ef)]<-0x25f7*-0x1+0x1386+-0x3953)return[];const _0x15c62c=_0x2a90b8[0x38*0x87+0xa3f*-0x3+0x135];if(_0x15c62c==='-')return[];const _0x3bff0a=/^.[0-9a-f]+\s+(.+?)(?:\s+\([^)]*\))?$/[_0x380181(0x223)](_0x2a90b8),_0x3f0ba8=_0x3bff0a?.[0x1*-0x1d20+0x10a5+-0x44*-0x2f]?.[_0x380181(0x190)]('\x5c','/');return _0x3f0ba8===undefined||_0x3f0ba8[_0x380181(0x1ef)]===-0x9b7+0x3*0x5b3+0x3b1*-0x2?[]:[_0x3f0ba8];})[_0x3b351c(0x278)]((_0x53c079,_0x59b22c)=>_0x53c079[_0x3b351c(0x1c1)](_0x59b22c));}export async function resolveGitRepository(_0x270e2a,_0x131c70){const _0xb2281e=_0x3dca6f;if(_0x131c70[_0xb2281e(0x1ef)]===0x24ff+0x1ab7*-0x1+-0xa48)return realpath(_0x270e2a);if(_0x131c70[_0xb2281e(0x22f)]('\x00')||_0x131c70[_0xb2281e(0x233)]('/')||_0x131c70[_0xb2281e(0x233)]('\x5c')||_0x131c70[_0xb2281e(0x239)]('/')[_0xb2281e(0x1ba)](_0x4b0e5f=>_0x4b0e5f[_0xb2281e(0x1ef)]===0xa01+-0x1528+0xb27||_0x4b0e5f==='.'||_0x4b0e5f==='..'))throw new Error(_0xb2281e(0x22d));const _0xc82135=await listInitializedSubmodulePaths(_0x270e2a);if(!_0xc82135[_0xb2281e(0x22f)](_0x131c70))throw new Error(_0xb2281e(0x22d));const _0x2d276e=resolve(await realpath(_0x270e2a),_0x131c70);try{await readGitSummary(_0x2d276e);}catch{throw new Error(_0xb2281e(0x22d));}return _0x2d276e;}function _0x11df(_0x428ce1,_0x5409ac){_0x428ce1=_0x428ce1-(-0x527*0x7+-0x2240+0x47d2);const _0x3da4b2=_0x58c1();let _0x20821f=_0x3da4b2[_0x428ce1];if(_0x11df['vAhaMt']===undefined){var _0x50b472=function(_0x418751){const _0x233a3a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x44839f='',_0x4d72d1='';for(let _0xde4740=0x5a5+0x6e5*0x1+-0x6b*0x1e,_0x8674a4,_0xac8bee,_0x462c1a=-0x32*0xf+-0xf*-0x7a+-0xc*0x5a;_0xac8bee=_0x418751['charAt'](_0x462c1a++);~_0xac8bee&&(_0x8674a4=_0xde4740%(0x1854+-0x25*0x11+-0x15db)?_0x8674a4*(0x16b2+0x2331+0xe3*-0x41)+_0xac8bee:_0xac8bee,_0xde4740++%(-0x21fb+0xaf8+-0xf*-0x189))?_0x44839f+=String['fromCharCode'](-0xdc6+0x1*0xd1c+-0x55*-0x5&_0x8674a4>>(-(0x39*-0xad+-0xd46*0x1+0x33cd)*_0xde4740&-0xe7*-0x9+0x2e*-0x8f+0x1199)):-0xfe0+-0x101*-0x16+-0x636){_0xac8bee=_0x233a3a['indexOf'](_0xac8bee);}for(let _0x291b7d=-0x94b+-0x174f+0x209a,_0x2de086=_0x44839f['length'];_0x291b7d<_0x2de086;_0x291b7d++){_0x4d72d1+='%'+('00'+_0x44839f['charCodeAt'](_0x291b7d)['toString'](0x144e+0x101a+-0x2458))['slice'](-(-0xd76*0x1+-0x1*0x239e+-0x1*-0x3116));}return decodeURIComponent(_0x4d72d1);};_0x11df['uoeIMQ']=_0x50b472,_0x11df['JlVDqr']={},_0x11df['vAhaMt']=!![];}const _0xa75642=_0x3da4b2[0x7cb+-0xeb8+-0xc5*-0x9];_0x11df['dgoWBD']!==_0xa75642&&(_0x11df['JlVDqr']={},_0x11df['dgoWBD']=_0xa75642);const _0x343413=_0x11df['JlVDqr'][_0x428ce1];return _0x343413===undefined?(_0x20821f=_0x11df['uoeIMQ'](_0x20821f),_0x11df['JlVDqr'][_0x428ce1]=_0x20821f):_0x20821f=_0x343413,_0x20821f;}export async function listGitHistoryRefs(_0x480872){const _0x1aefef=_0x3dca6f,_0x3d2464=await runGit(_0x480872,[_0x1aefef(0x1b5),_0x1aefef(0x282),_0x1aefef(0x224),_0x1aefef(0x264)]);return _0x3d2464[_0x1aefef(0x255)][_0x1aefef(0x239)](/\r?\n/)[_0x1aefef(0x208)](_0x592feb=>{const _0x54ffed=_0x1aefef,[_0x26f5c5,_0x213c4e,_0x251f0a,_0x55498d,_0x1db161]=_0x592feb[_0x54ffed(0x239)]('\x09');if(_0x26f5c5===undefined||_0x213c4e===undefined||_0x251f0a===undefined||_0x1db161===undefined||_0x1db161[_0x54ffed(0x1ef)]>-0x199+-0x22a6+0x3*0xc15||!/^[0-9a-f]{40,64}$/[_0x54ffed(0x1e4)](_0x251f0a))return[];const _0x3bac2b=_0x26f5c5[_0x54ffed(0x233)](_0x54ffed(0x1f7))?_0x54ffed(0x296):_0x26f5c5[_0x54ffed(0x233)](_0x54ffed(0x27d))?_0x54ffed(0x200):undefined;return _0x3bac2b===undefined?[]:[{'name':_0x26f5c5,'displayName':_0x213c4e,'kind':_0x3bac2b,'hash':_0x251f0a,'current':_0x55498d==='*'}];})[_0x1aefef(0x278)]((_0x39096f,_0x413431)=>_0x39096f[_0x1aefef(0x196)][_0x1aefef(0x1c1)](_0x413431[_0x1aefef(0x196)])||_0x39096f[_0x1aefef(0x231)][_0x1aefef(0x1c1)](_0x413431[_0x1aefef(0x231)]));}function selectedHistoryRefs(_0x5c86c7,_0x280ce8){const _0x5d3fc5=_0x3dca6f;if(_0x280ce8===undefined||_0x280ce8[_0x5d3fc5(0x1ef)]===-0xae2+0x3*0x103+0x31*0x29)return _0x5c86c7;const _0x29eadc=[...new Set(_0x280ce8)],_0xd8deb2=_0x29eadc[_0x5d3fc5(0x287)](_0x1c3116=>_0x5c86c7[_0x5d3fc5(0x1b6)](_0x11c1c7=>_0x11c1c7[_0x5d3fc5(0x294)]===_0x1c3116));if(_0xd8deb2[_0x5d3fc5(0x1ba)](_0x5d726c=>_0x5d726c===undefined))throw new Error(_0x5d3fc5(0x26d));return _0xd8deb2;}function historyCursor(_0x3dc9f3,_0x244201){const _0x43adfc=_0x3dca6f;return Buffer[_0x43adfc(0x1ae)](JSON[_0x43adfc(0x1c7)]({'offset':_0x3dc9f3,'fingerprint':_0x244201}))[_0x43adfc(0x207)](_0x43adfc(0x28c));}function parseHistoryCursor(_0x46763e,_0x2a6d97){const _0x2db746=_0x3dca6f;if(_0x46763e===undefined)return 0x2400+-0x2356*0x1+-0xaa;try{const _0x3845ec=JSON[_0x2db746(0x24e)](Buffer[_0x2db746(0x1ae)](_0x46763e,_0x2db746(0x28c))[_0x2db746(0x207)](_0x2db746(0x210)));if(!Number[_0x2db746(0x1fd)](_0x3845ec[_0x2db746(0x18d)])||_0x3845ec[_0x2db746(0x18d)]<-0x75*0x17+0xa*-0x146+0x21d*0xb||_0x3845ec[_0x2db746(0x291)]!==_0x2a6d97)throw new Error(_0x2db746(0x284));return _0x3845ec[_0x2db746(0x18d)];}catch{throw new Error(_0x2db746(0x21f));}}export async function readGitHistory(_0x136b2a,_0x59d82d){const _0x4e5a12=_0x3dca6f,_0x46c8ab=await listGitHistoryRefs(_0x136b2a),_0xeb02ce=selectedHistoryRefs(_0x46c8ab,_0x59d82d[_0x4e5a12(0x244)]);if(_0xeb02ce[_0x4e5a12(0x1ef)]===-0x97*-0x3c+-0x35*-0x63+-0x1*0x37e3)return{'commits':[],'nextCursor':null};const _0x146702=_0x59d82d[_0x4e5a12(0x23c)]??-0x10dc+0x6c+0x1*0x10a2;if(!Number[_0x4e5a12(0x1fd)](_0x146702)||_0x146702<-0x31b*-0x5+-0x1*0x13b5+0x42f||_0x146702>-0x1703*-0x1+-0x43*0xb+-0x85*0x26)throw new Error(_0x4e5a12(0x227));const _0x2a8c4b=_0xeb02ce[_0x4e5a12(0x287)](_0x86f852=>_0x86f852[_0x4e5a12(0x294)])[_0x4e5a12(0x278)](),_0x2646fe=createHash(_0x4e5a12(0x214))[_0x4e5a12(0x1d2)](_0xeb02ce[_0x4e5a12(0x287)](_0x557c63=>_0x557c63[_0x4e5a12(0x294)]+'\x00'+_0x557c63[_0x4e5a12(0x193)])[_0x4e5a12(0x278)]()[_0x4e5a12(0x1b3)]('\x00'))[_0x4e5a12(0x212)](_0x4e5a12(0x1bd)),_0x1d199a=parseHistoryCursor(_0x59d82d[_0x4e5a12(0x28e)],_0x2646fe),_0x317dce=await runGit(_0x136b2a,[_0x4e5a12(0x1ad),_0x4e5a12(0x1bf),_0x4e5a12(0x290),_0x4e5a12(0x1f6)+_0x1d199a,_0x4e5a12(0x21b)+(_0x146702+(-0x464+0x47*-0x67+-0x20f6*-0x1)),'-z',_0x4e5a12(0x28d),..._0x2a8c4b,'--']),_0x58b319=new Map();for(const _0x195c7d of _0x46c8ab){const _0x1f9185=_0x58b319[_0x4e5a12(0x1cf)](_0x195c7d[_0x4e5a12(0x193)])??[];_0x1f9185[_0x4e5a12(0x260)](_0x195c7d[_0x4e5a12(0x231)]),_0x58b319[_0x4e5a12(0x1a5)](_0x195c7d[_0x4e5a12(0x193)],_0x1f9185);}const _0x3b569a=_0x317dce[_0x4e5a12(0x255)][_0x4e5a12(0x239)]('\x00'),_0x2d7458=[];for(let _0x20ac71=0x1741+0xf01+-0x2642;_0x20ac71+(-0x6b*0x47+0x23a5+-0x5f3)<_0x3b569a[_0x4e5a12(0x1ef)];_0x20ac71+=-0x22a*-0x6+-0x2*-0x38b+-0x503*0x4){const [_0x312211,_0x2c826f='',_0x13d89d='',_0x245e07='',_0x59fd37='0',_0x6e0216='']=_0x3b569a[_0x4e5a12(0x194)](_0x20ac71,_0x20ac71+(0x3*-0xb02+-0x1*0x559+0x2665));if(_0x312211===undefined||!/^[0-9a-f]{40,64}$/[_0x4e5a12(0x1e4)](_0x312211))continue;_0x2d7458[_0x4e5a12(0x260)]({'hash':_0x312211,'parents':_0x2c826f[_0x4e5a12(0x1ef)]===0x1aff+0x3a*0x30+-0x25df?[]:_0x2c826f[_0x4e5a12(0x239)]('\x20'),'authorName':_0x13d89d,'authorEmail':_0x245e07,'committedAt':Number(_0x59fd37)*(-0x427*-0x7+0x141c+-0x2d45*0x1),'subject':_0x6e0216,'refs':_0x58b319[_0x4e5a12(0x1cf)](_0x312211)??[]});}const _0x204684=_0x2d7458[_0x4e5a12(0x1ef)]>_0x146702;return{'commits':_0x2d7458[_0x4e5a12(0x194)](-0x2*0x30c+-0x4f9+0xb11,_0x146702),'nextCursor':_0x204684?historyCursor(_0x1d199a+_0x146702,_0x2646fe):null};}async function assertHistoryCommitReachable(_0x5ef3a8,_0x191e34,_0x15f3bc){const _0x766354=_0x3dca6f;if(!/^[0-9a-f]{40,64}$/[_0x766354(0x1e4)](_0x191e34))throw new Error(_0x766354(0x279));const _0x4cab28=selectedHistoryRefs(await listGitHistoryRefs(_0x5ef3a8),_0x15f3bc);for(const _0x5621bf of _0x4cab28){const _0x1bbd59=await runGitAllowFailure(_0x5ef3a8,[_0x766354(0x28b),_0x766354(0x281),_0x191e34,_0x5621bf[_0x766354(0x294)]]);if(_0x1bbd59[_0x766354(0x203)]===0x83f*-0x4+-0x2*0xabe+0x3678)return;}throw new Error(_0x766354(0x279));}export async function readGitHistoryFiles(_0x56e744,_0x10f445,_0x1c7ae){const _0x2661ff=_0x3dca6f;await assertHistoryCommitReachable(_0x56e744,_0x10f445,_0x1c7ae);const _0x21acea=await runGit(_0x56e744,[_0x2661ff(0x23b),_0x2661ff(0x297),_0x2661ff(0x251),_0x2661ff(0x1ed),'-r','-z','-M','-C',_0x2661ff(0x263),_0x10f445]),_0xffca8b=_0x21acea[_0x2661ff(0x255)][_0x2661ff(0x239)]('\x00'),_0x546d53=[];for(let _0x1dd361=-0xaeb*0x2+-0x3ed*-0x4+0x622;_0x1dd361<_0xffca8b[_0x2661ff(0x1ef)];_0x1dd361+=0x235d+-0xb4f+0x2f*-0x83){const _0x57f2b4=_0xffca8b[_0x1dd361];if(_0x57f2b4===undefined||_0x57f2b4[_0x2661ff(0x1ef)]===0x62e*-0x1+-0x1b0e*0x1+0x58a*0x6)continue;const _0x359147=_0x57f2b4[0x62*-0x1a+-0x1*0x576+0xf6a]??'M';if(_0x359147==='R'||_0x359147==='C'){const _0x27c918=_0xffca8b[_0x1dd361+(-0x8bf*-0x1+-0x1b95+0x12d7)],_0x5d29ac=_0xffca8b[_0x1dd361+(0x1b6*-0x12+-0x24a8+0x4376)];if(_0x27c918!==undefined&&_0x5d29ac!==undefined)_0x546d53[_0x2661ff(0x260)]({'path':_0x5d29ac,'previousPath':_0x27c918,'change':gitChange(_0x359147)});_0x1dd361+=-0xdb0+0x1*-0x7f7+0x455*0x5;}else{const _0xf935a3=_0xffca8b[_0x1dd361+(0x1*0xddb+0x26b6+-0x1*0x3490)];if(_0xf935a3!==undefined)_0x546d53[_0x2661ff(0x260)]({'path':_0xf935a3,'change':gitChange(_0x359147)});_0x1dd361+=-0x89*0x45+0x26*0x59+0x1*0x17b8;}}return _0x546d53;}export async function readGitHistoryFileDiff(_0x57feb2,_0x26b02d,_0x30852e,_0x5d6001,_0x12c065){const _0x476c01=_0x3dca6f;await assertHistoryCommitReachable(_0x57feb2,_0x26b02d,_0x5d6001);const _0x28d3c5=safeGitWorkspacePath(_0x30852e),_0x3ea026=_0x12c065===undefined?undefined:safeGitWorkspacePath(_0x12c065),_0x84a8c8=await runGit(_0x57feb2,[_0x476c01(0x23f),_0x476c01(0x235),_0x476c01(0x251),_0x476c01(0x20c),_0x476c01(0x22a),_0x26b02d,'--',_0x476c01(0x205)+_0x28d3c5,..._0x3ea026===undefined||_0x3ea026===_0x28d3c5?[]:[_0x476c01(0x205)+_0x3ea026]]),_0x5f089e=_0x84a8c8[_0x476c01(0x1be)][_0x476c01(0x22f)](0xe82+-0xd96+-0xec)||_0x84a8c8[_0x476c01(0x255)][_0x476c01(0x22f)](_0x476c01(0x20b));if(_0x5f089e)return{'binary':!![],'summary':_0x476c01(0x1ce)+createHash(_0x476c01(0x214))[_0x476c01(0x1d2)](_0x84a8c8[_0x476c01(0x1be)])[_0x476c01(0x212)](_0x476c01(0x1bd))+_0x476c01(0x277)+_0x84a8c8[_0x476c01(0x1be)][_0x476c01(0x1ef)],'truncated':_0x84a8c8[_0x476c01(0x1dd)]};return{'binary':![],'text':_0x84a8c8[_0x476c01(0x255)],'truncated':_0x84a8c8[_0x476c01(0x1dd)]};}export async function readGitHistoryFileContentRange(_0x48ddd2,_0x4babd5,_0x2ad645,_0x3a1006,_0x2993f1,_0x18c8da){const _0x132825=_0x3dca6f;if(!Number[_0x132825(0x181)](_0x3a1006)||_0x3a1006<0x4*-0x74+0x207a+0x311*-0xa||!Number[_0x132825(0x181)](_0x2993f1)||_0x2993f1<0x2*-0x3f2+0x2f*-0x39+0x125c||_0x2993f1>(-0x151e+-0xf67+0x2499)*(0x151*0x7+-0x25da+0x20a3)*(-0x26b9+0x467+-0x7aa*-0x5)||_0x3a1006+_0x2993f1>(-0xd*0x24d+0x165+0x1c98)*(0x1d7f+0x1*-0xfd7+-0xce*0xc)*(-0xbc1+0x239*-0x5+-0x16a*-0x13))throw new Error(_0x132825(0x192));await assertHistoryCommitReachable(_0x48ddd2,_0x4babd5,_0x18c8da);const _0x41f727=safeGitWorkspacePath(_0x2ad645),_0x47d1ac=_0x4babd5+':'+_0x41f727,_0x51fb28=await runGit(_0x48ddd2,[_0x132825(0x1e9),'-s',_0x47d1ac]),_0x63eec5=Number(_0x51fb28[_0x132825(0x255)][_0x132825(0x250)]());if(!Number[_0x132825(0x181)](_0x63eec5)||_0x63eec5<-0x11*0x17+0xfa0+-0xe19||_0x3a1006>_0x63eec5)throw new Error(_0x132825(0x192));if(_0x3a1006===_0x63eec5)return{'path':_0x41f727,'size':_0x63eec5,'offset':_0x3a1006,'contentBase64':'','nextOffset':null};const _0x5d1bcd=await runGitAllowFailure(_0x48ddd2,[_0x132825(0x1e9),_0x132825(0x1fa),_0x47d1ac],_0x3a1006+_0x2993f1);if(_0x5d1bcd[_0x132825(0x203)]!==0x256c+0x579*0x2+-0x305e)throw new GitCommandError(_0x5d1bcd[_0x132825(0x203)],_0x5d1bcd[_0x132825(0x1a0)]);const _0x25172b=_0x5d1bcd[_0x132825(0x1be)][_0x132825(0x236)](_0x3a1006,Math[_0x132825(0x28a)](_0x63eec5,_0x3a1006+_0x2993f1)),_0x1f3f8f=_0x3a1006+_0x25172b[_0x132825(0x1ef)];return{'path':_0x41f727,'size':_0x63eec5,'offset':_0x3a1006,'contentBase64':_0x25172b[_0x132825(0x207)](_0x132825(0x20e)),'nextOffset':_0x1f3f8f<_0x63eec5?_0x1f3f8f:null};}export async function readCurrentChanges(_0x487a4f){const _0x5c2112=_0x3dca6f;return(await readCurrentChangesSummary(_0x487a4f))[_0x5c2112(0x18b)];}export async function readCurrentChangeDiff(_0x3b2568,_0x2a00e9){const _0x459897=_0x3dca6f,_0x30d316=safeGitWorkspacePath(_0x2a00e9);await assertCurrentChangePathAccessible(_0x3b2568,_0x30d316);const _0x14a1fc=await readCurrentChangeGitDiff(_0x3b2568,_0x30d316),_0x2d8f63=await readWorkingTreeText(_0x3b2568,_0x30d316),_0x136cf6=_0x14a1fc[_0x459897(0x1be)][_0x459897(0x22f)](-0x6*0x5d1+-0x187c+-0x16*-0x2b3)||_0x14a1fc[_0x459897(0x255)][_0x459897(0x22f)](_0x459897(0x20b))||_0x2d8f63?.[_0x459897(0x257)]===!![];if(_0x136cf6)return{'binary':!![],'summary':_0x459897(0x1ce)+createHash(_0x459897(0x214))[_0x459897(0x1d2)](_0x14a1fc[_0x459897(0x1be)])[_0x459897(0x212)](_0x459897(0x1bd))+_0x459897(0x277)+_0x14a1fc[_0x459897(0x1be)][_0x459897(0x1ef)],'truncated':_0x14a1fc[_0x459897(0x1dd)]||_0x2d8f63?.[_0x459897(0x1dd)]===!![]};return{'binary':![],'text':_0x14a1fc[_0x459897(0x255)],'truncated':_0x14a1fc[_0x459897(0x1dd)]||_0x2d8f63?.[_0x459897(0x1dd)]===!![],'afterText':_0x2d8f63?.[_0x459897(0x255)]??'',..._0x2d8f63===undefined?{}:{'afterTruncated':_0x2d8f63[_0x459897(0x1dd)]}};}async function readCurrentChangeGitDiff(_0x59c30f,_0x4c8dbd){const _0x316b1b=_0x3dca6f,_0x5f0371=await runGit(_0x59c30f,[_0x316b1b(0x18a),_0x316b1b(0x209),_0x316b1b(0x1ff),'-z','--',_0x316b1b(0x205)+_0x4c8dbd]);if(_0x5f0371[_0x316b1b(0x255)][_0x316b1b(0x239)]('\x00')[_0x316b1b(0x22f)](_0x4c8dbd)){const _0x44c31a=await runGitAllowFailure(_0x59c30f,[_0x316b1b(0x261),_0x316b1b(0x25f),_0x316b1b(0x20c),_0x316b1b(0x22a),'--',_0x316b1b(0x1bc),_0x4c8dbd]);if(_0x44c31a[_0x316b1b(0x203)]!==-0x977+-0x1*-0x1411+-0xa9a&&_0x44c31a[_0x316b1b(0x203)]!==-0x115*0x20+0xb9a+-0xf*-0x189)throw new GitCommandError(_0x44c31a[_0x316b1b(0x203)],_0x44c31a[_0x316b1b(0x1a0)]);return _0x44c31a;}return runGit(_0x59c30f,[_0x316b1b(0x261),_0x316b1b(0x20c),_0x316b1b(0x22a),_0x316b1b(0x259),'--',_0x316b1b(0x205)+_0x4c8dbd]);}export async function isWorkspaceChangeVisible(_0x50ae62,_0x471133){const _0x51e520=_0x3dca6f;try{return await assertCurrentChangePathAccessible(_0x50ae62,safeGitWorkspacePath(_0x471133)),!![];}catch(_0x3dfdb2){if(_0x3dfdb2 instanceof Error&&(_0x3dfdb2[_0x51e520(0x265)]===_0x51e520(0x19c)||_0x3dfdb2[_0x51e520(0x265)]===_0x51e520(0x243)||_0x3dfdb2[_0x51e520(0x265)]===_0x51e520(0x288)))return![];throw _0x3dfdb2;}}async function assertCurrentChangePathAccessible(_0x4eedff,_0x18ad71){const _0x43fb74=_0x3dca6f,_0x2b3c8f=await realpath(_0x4eedff),_0x2d4f46=resolve(_0x2b3c8f,_0x18ad71),_0x63cff9=await lstat(_0x2d4f46)[_0x43fb74(0x28f)](_0x530d50=>{const _0xeb6e80=_0x43fb74;if(_0x530d50[_0xeb6e80(0x203)]===_0xeb6e80(0x20f))return undefined;throw _0x530d50;});if(_0x63cff9===undefined)return;await resolveWorkspaceEntry(_0x2b3c8f,_0x18ad71,![]);}async function readWorkingTreeText(_0x22f7fd,_0x422f94){const _0x1cf891=_0x3dca6f,_0x2fcfec=await realpath(_0x22f7fd);let _0x137cdb;try{_0x137cdb=await resolveWorkspaceEntry(_0x2fcfec,_0x422f94,![]);}catch(_0x1e93be){if(_0x1e93be instanceof Error&&_0x1e93be[_0x1cf891(0x265)]===_0x1cf891(0x243))return undefined;throw _0x1e93be;}const _0x451e78=await lstat(_0x137cdb);if(!_0x451e78[_0x1cf891(0x1ca)]())return undefined;const _0x2ef94b=await readFile(_0x137cdb);return diffTextFromBuffer(_0x2ef94b,_0x2ef94b[_0x1cf891(0x1ef)]>GIT_OUTPUT_LIMIT);}function diffTextFromBuffer(_0x3da3c4,_0x2233b7){const _0x51c305=_0x3dca6f;if(_0x3da3c4[_0x51c305(0x22f)](0x19+-0x20ff+0x20e6)||!isValidUtf8(_0x3da3c4))return{'binary':!![],'truncated':_0x2233b7};let _0x36c1f9=Math[_0x51c305(0x28a)](_0x3da3c4[_0x51c305(0x1ef)],GIT_OUTPUT_LIMIT);while(_0x36c1f9>0x2377+-0x1d6a+-0x60d&&_0x36c1f9<_0x3da3c4[_0x51c305(0x1ef)]&&isUtf8ContinuationByte(_0x3da3c4[_0x36c1f9]))_0x36c1f9-=-0x1035+0x1069+-0x33;return{'binary':![],'text':_0x3da3c4[_0x51c305(0x236)](0x23c2+-0x140c*0x1+-0x1*0xfb6,_0x36c1f9)[_0x51c305(0x207)](_0x51c305(0x210)),'truncated':_0x2233b7};}export async function restoreCurrentChange(_0x349e28,_0x3fdf5a,_0x4ebba9){const _0x1dd4d9=_0x3dca6f,_0x24a357=safeGitWorkspacePath(_0x3fdf5a),_0x50baff=_0x1dd4d9(0x205)+_0x24a357;if(_0x4ebba9===_0x1dd4d9(0x283)){const _0x4d7cb8=await runGit(_0x349e28,[_0x1dd4d9(0x1c0),_0x1dd4d9(0x238),'-z',_0x1dd4d9(0x1da),'--',_0x50baff]);if(!_0x4d7cb8[_0x1dd4d9(0x255)][_0x1dd4d9(0x239)]('\x00')[_0x1dd4d9(0x1ba)](_0x2690be=>_0x2690be[_0x1dd4d9(0x233)](_0x1dd4d9(0x1d8))&&_0x2690be[_0x1dd4d9(0x194)](0x22cf+-0x10*-0x11b+-0x347c)===_0x24a357))throw new Error(_0x1dd4d9(0x246));const _0x25b083=await realpath(_0x349e28),_0x3020ea=resolve(_0x25b083,_0x24a357),_0x55212f=await lstat(_0x3020ea);if(!_0x55212f[_0x1dd4d9(0x1ca)]()||_0x55212f[_0x1dd4d9(0x1f3)]())throw new Error(_0x1dd4d9(0x246));await unlink(_0x3020ea);return;}if(_0x4ebba9===_0x1dd4d9(0x1a7)){await runGit(_0x349e28,[_0x1dd4d9(0x1b1),_0x1dd4d9(0x25e),'--',_0x50baff]);return;}await runGit(_0x349e28,[_0x1dd4d9(0x1b1),_0x1dd4d9(0x22c),_0x1dd4d9(0x1dc),_0x1dd4d9(0x25e),'--',_0x50baff]);}function safeGitWorkspacePath(_0x594402){const _0x379ff0=_0x3dca6f;if(_0x594402[_0x379ff0(0x1ef)]===-0x12d3+0x1017+0x2bc||_0x594402[_0x379ff0(0x22f)]('\x00')||_0x594402[_0x379ff0(0x233)]('/')||_0x594402[_0x379ff0(0x233)]('\x5c'))throw new Error(_0x379ff0(0x19c));const _0x166d62=_0x594402[_0x379ff0(0x190)]('\x5c','/');if(_0x166d62[_0x379ff0(0x239)]('/')[_0x379ff0(0x1ba)](_0x2a5856=>_0x2a5856===''||_0x2a5856==='..'||_0x2a5856===_0x379ff0(0x1c8)))throw new Error(_0x379ff0(0x19c));return _0x166d62;}function gitChange(_0x599e3d){const _0x5ac5f7=_0x3dca6f;if(_0x599e3d==='A')return _0x5ac5f7(0x1d0);if(_0x599e3d==='D')return _0x5ac5f7(0x186);if(_0x599e3d==='R')return _0x5ac5f7(0x274);if(_0x599e3d==='C')return _0x5ac5f7(0x1bb);if(_0x599e3d==='T')return _0x5ac5f7(0x1a8);return _0x5ac5f7(0x266);}export class GitCommandError extends Error{[_0x3dca6f(0x203)];[_0x3dca6f(0x1a0)];constructor(_0x5ed307,_0x5206d3){const _0x29f4f7=_0x3dca6f;super(_0x29f4f7(0x1f4)),this[_0x29f4f7(0x203)]=_0x5ed307,this[_0x29f4f7(0x1a0)]=_0x5206d3;}}async function runGit(_0x1a53ba,_0xf92fc8){const _0x2bbaba=_0x3dca6f,_0x3bf7fc=await runGitAllowFailure(_0x1a53ba,_0xf92fc8);if(_0x3bf7fc[_0x2bbaba(0x203)]!==0x1756*0x1+-0x1f*0xa5+-0x35b)throw new GitCommandError(_0x3bf7fc[_0x2bbaba(0x203)],_0x3bf7fc[_0x2bbaba(0x1a0)]);return _0x3bf7fc;}async function runGitAllowFailure(_0x3a22a4,_0x499c34,_0x3fbddf=GIT_OUTPUT_LIMIT){return new Promise((_0x301d9b,_0xf9dd04)=>{const _0x5178af=_0x11df,_0x4ec1f5=spawn(_0x5178af(0x202),[..._0x499c34],{'cwd':_0x3a22a4,'shell':![],'windowsHide':!![],'stdio':[_0x5178af(0x1cd),_0x5178af(0x1f1),_0x5178af(0x1f1)]}),_0x648343=[],_0x2ccff7=[];let _0x2b5f9e=-0x71d*-0x1+0xed*-0x1f+0x1596,_0x423e30=![];const _0x193600=setTimeout(()=>_0x4ec1f5[_0x5178af(0x27a)](_0x5178af(0x1d9)),GIT_TIMEOUT_MS);_0x4ec1f5[_0x5178af(0x295)]['on'](_0x5178af(0x293),_0x368e53=>{const _0x6c7534=_0x5178af,_0x1e1713=Math[_0x6c7534(0x286)](-0x119b*-0x1+0x2687+-0x3822,_0x3fbddf-_0x2b5f9e);if(_0x1e1713>-0x1e1a+-0x1*0x1dad+-0x3*-0x13ed){const _0x14a198=_0x368e53[_0x6c7534(0x236)](-0x264b+0x139*-0xf+0x1c51*0x2,_0x1e1713);_0x648343[_0x6c7534(0x260)](_0x14a198),_0x2b5f9e+=_0x14a198[_0x6c7534(0x1ef)];}_0x423e30||=_0x368e53[_0x6c7534(0x1ef)]>_0x1e1713;}),_0x4ec1f5[_0x5178af(0x1a0)]['on'](_0x5178af(0x293),_0x2b15f5=>_0x2ccff7[_0x5178af(0x260)](_0x2b15f5[_0x5178af(0x236)](0x20f*0x1+-0x2469+0x225a,-0x1*-0x1c13+-0x1*-0x114d+-0x3ac*0x8))),_0x4ec1f5[_0x5178af(0x1d4)](_0x5178af(0x1f5),_0x554dbe=>{clearTimeout(_0x193600),_0xf9dd04(_0x554dbe);}),_0x4ec1f5[_0x5178af(0x1d4)](_0x5178af(0x280),_0x1e065f=>{const _0xa0eef0=_0x5178af;clearTimeout(_0x193600);const _0x364a9b=Buffer[_0xa0eef0(0x1ee)](_0x648343);_0x301d9b({'code':_0x1e065f??0x120c+0x1d37+-0x20e*0x17,'output':_0x364a9b,'text':_0x364a9b[_0xa0eef0(0x207)](_0xa0eef0(0x210)),'stderr':Buffer[_0xa0eef0(0x1ee)](_0x2ccff7)[_0xa0eef0(0x207)](_0xa0eef0(0x210)),'truncated':_0x423e30});});});}function isGitUnavailable(_0x2296ba){const _0xea4e32=_0x3dca6f;return _0x2296ba instanceof Error&&_0xea4e32(0x203)in _0x2296ba&&_0x2296ba[_0xea4e32(0x203)]===_0xea4e32(0x20f);}function summarizeText(_0x5a324d){const _0x5e9e0e=_0x3dca6f;return JSON[_0x5e9e0e(0x1c7)]({'sha256':createHash(_0x5e9e0e(0x214))[_0x5e9e0e(0x1d2)](_0x5a324d)[_0x5e9e0e(0x212)](_0x5e9e0e(0x1bd)),'bytes':Buffer[_0x5e9e0e(0x1cb)](_0x5a324d)});}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myagentroam/node",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.24",
|
|
4
4
|
"description": "MyAgentRoam Node runtime CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"node-pty": "1.1.0",
|
|
26
26
|
"ws": "^8.21.3",
|
|
27
27
|
"zod": "4.4.3",
|
|
28
|
-
"@myagentroam/agent": "^0.9.
|
|
29
|
-
"@myagentroam/protocol": "^0.9.
|
|
28
|
+
"@myagentroam/agent": "^0.9.24",
|
|
29
|
+
"@myagentroam/protocol": "^0.9.24"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/ws": "^8.18.1"
|