@myagentroam/node 0.9.12 → 0.9.14

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.
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- function _0x1e83(){const _0x12853f=['C2XPy2u','DMvYC2LVBG','Dw5ZAgLMDa','CgfYC2u','C25HChnOB3rtzxf1zw5Jzq','C2vZC2LVBKLK','mtaWmZC4ohvtueL6Ea','mtmZmtGWm3voCgD5ua','ChvZAa','mtHpBvnNA1G','oNnLz21LBNq6','AgfZ','yMvMB3jLu2vNBwvUDeLK','Bgf0zxn0vMLZAwjSzuf0','zMXHDe1HCa','Dg9tDhjPBMC','CMv3Aw5K','mJe2otKWzw5lBgT0','C3rHCNrLzef0','CMvHza','u0vhtuvova','zgvMzxjYzwrpBgrLCKHPC3rVCNK','C3rHDhvZ','y3vYC29Y','y29TCgXLDgvKqxq','C291CMnL','CMvHzfr1CM5Z','nZnsvfDLs3q','BwLU','otmWDKPACfDv','zMLUzeLUzgv4','nxLrsu9dza','u1vdq0vfreve','zw50CMLLCW','DxrMoa','yMfZzty0DxjS','CMvHzef0','C3rYAw5NAwz5','BM93','Bwf4','A2LUza','C3rYAw5N','rvzftLrFq1vsu09sx0LovKfmsuq','ywrK','BgvUz3rO','nJy4mJmYse9wsKvq','mZCWnZCYog1zru9VAa','BMv4Den1CNnVCG','BwfW','zNjVBq','DhvYBNm','yxnZAxn0yw50x21LC3nHz2u','BgLTAxq','mJmYnZKWs0XhBLni','CNvUswq','AxrLBxm','CNvUDgLTzq','ChjVAMvJDeLUAxrPywW','mJfTruT5vhm'];_0x1e83=function(){return _0x12853f;};return _0x1e83();}const _0x43d17f=_0xd87e;(function(_0x59028a,_0x35410e){const _0x410c07=_0xd87e,_0x64693e=_0x59028a();while(!![]){try{const _0x490088=parseInt(_0x410c07(0xea))/(-0xf9e*0x2+0x517+0x1*0x1a26)*(-parseInt(_0x410c07(0xec))/(0x25d5+0x1f2+-0x27c5))+-parseInt(_0x410c07(0xe0))/(-0x1*-0x9a+0x1e50+0xa4d*-0x3)+parseInt(_0x410c07(0x110))/(0x1*-0x1933+0x8e6+0x1051)*(-parseInt(_0x410c07(0xee))/(-0x196f+0x761*-0x5+0x3e59))+-parseInt(_0x410c07(0xfc))/(-0xa5b*-0x3+-0xd*-0xee+0x1*-0x2b21)*(-parseInt(_0x410c07(0x109))/(-0x12c1+-0x159d+0x2865))+parseInt(_0x410c07(0xfd))/(0xf67*-0x2+0x247*-0x1+0x211d)+-parseInt(_0x410c07(0xd8))/(0xbdb+-0x2c6*-0x1+-0xe98)*(parseInt(_0x410c07(0x104))/(-0x9e2+0xfc+0x8f0))+-parseInt(_0x410c07(0x111))/(-0x25cf*-0x1+-0x18fa+0x665*-0x2);if(_0x490088===_0x35410e)break;else _0x64693e['push'](_0x64693e['shift']());}catch(_0x403f04){_0x64693e['push'](_0x64693e['shift']());}}}(_0x1e83,-0x1*-0x1f917+0x6c936+-0x498f4));const TURN_PAGE_SIZE=-0x1ef*-0xd+-0x1b1*0x7+-0xd2e;export function conversationSegments(_0x3c043d){const _0x5b3871=_0xd87e,_0x4f8a9e=[];let _0x1194e6=[];for(const _0x9e554c of _0x3c043d[_0x5b3871(0x106)]){_0x1194e6['at'](-(-0x1*0x1f0b+-0xb*0xd2+-0x1*-0x2812))?.[_0x5b3871(0xf7)]===_0x5b3871(0x102)&&_0x9e554c[_0x5b3871(0xf7)]!==_0x5b3871(0x102)&&(_0x4f8a9e[_0x5b3871(0xd7)](_0x1194e6),_0x1194e6=[]),_0x1194e6[_0x5b3871(0xd7)](_0x9e554c);}if(_0x1194e6[_0x5b3871(0xfb)]>-0x1510+-0x52a*0x4+0x29b8||_0x4f8a9e[_0x5b3871(0xfb)]===-0xd84+0x1af4+-0xd70)_0x4f8a9e[_0x5b3871(0xd7)](_0x1194e6);return _0x4f8a9e[_0x5b3871(0xff)]((_0x448077,_0x1e63ed)=>{const _0x4ed31a=_0x5b3871,_0xf22009=_0x3c043d['id']+_0x4ed31a(0xd9)+_0x1e63ed,_0x23bce2=_0x1e63ed===_0x4f8a9e[_0x4ed31a(0xfb)]-(0x62f+0x1388+0x6*-0x449),_0x586e5f=_0x448077[_0x4ed31a(0xff)](_0x307dad=>({..._0x307dad,'runId':_0x3c043d[_0x4ed31a(0x105)],'segmentId':_0xf22009,'segmentIndex':_0x1e63ed}));return{'id':_0xf22009,'sessionId':_0x3c043d[_0x4ed31a(0x10f)],'turnId':_0x3c043d['id'],'runId':_0x3c043d[_0x4ed31a(0x105)],'index':_0x1e63ed,'status':_0x23bce2?_0x3c043d[_0x4ed31a(0xe5)]:_0x4ed31a(0xef),..._0x23bce2&&_0x3c043d[_0x4ed31a(0xdf)]!==undefined?{'rewind':_0x3c043d[_0x4ed31a(0xdf)]}:{},'items':_0x586e5f,'startedAt':_0x586e5f[-0x407+-0x1c9*0x13+0x25f2]?.[_0x4ed31a(0xe1)]??_0x3c043d[_0x4ed31a(0xe1)],'completedAt':_0x586e5f['at'](-(-0x517*0x5+0x203e+-0x6ca))?.[_0x4ed31a(0xe7)]??null};});}function _0xd87e(_0x48f726,_0x57e137){_0x48f726=_0x48f726-(0x246e+-0x1c60+-0x737);const _0x548baf=_0x1e83();let _0x4f1250=_0x548baf[_0x48f726];if(_0xd87e['VcdmSB']===undefined){var _0x214e6a=function(_0x36ffa0){const _0x2e3a0d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x146947='',_0x574e70='';for(let _0x4d297f=0x1996+-0x145b+0x67*-0xd,_0x3d844f,_0x2bade0,_0x130cef=-0xbd7+-0x58f*-0x2+0xb9;_0x2bade0=_0x36ffa0['charAt'](_0x130cef++);~_0x2bade0&&(_0x3d844f=_0x4d297f%(-0x1*0x1f0b+-0xb*0xd2+-0x1*-0x2815)?_0x3d844f*(-0x1510+-0x52a*0x4+0x29f8)+_0x2bade0:_0x2bade0,_0x4d297f++%(-0xd84+0x1af4+-0xd6c))?_0x146947+=String['fromCharCode'](0x62f+0x1388+0x38*-0x71&_0x3d844f>>(-(-0x407+-0x1c9*0x13+0x25f4)*_0x4d297f&-0x517*0x5+0x203e+-0x6c5)):-0x1d*-0xca+-0x6d5+-0x100d){_0x2bade0=_0x2e3a0d['indexOf'](_0x2bade0);}for(let _0x36b149=-0x1b0+-0xb*0x38d+0x28bf,_0x4fb301=_0x146947['length'];_0x36b149<_0x4fb301;_0x36b149++){_0x574e70+='%'+('00'+_0x146947['charCodeAt'](_0x36b149)['toString'](-0x128+-0xd*0x2e+0x23*0x1a))['slice'](-(-0x23d*-0x5+0x2*0x1b4+0x19f*-0x9));}return decodeURIComponent(_0x574e70);};_0xd87e['tyExyz']=_0x214e6a,_0xd87e['cGEkwT']={},_0xd87e['VcdmSB']=!![];}const _0x389e28=_0x548baf[-0x1553+0x1*-0x1c5a+-0x31ad*-0x1];_0xd87e['BbVciR']!==_0x389e28&&(_0xd87e['cGEkwT']={},_0xd87e['BbVciR']=_0x389e28);const _0x1049a4=_0xd87e['cGEkwT'][_0x48f726];return _0x1049a4===undefined?(_0x4f1250=_0xd87e['tyExyz'](_0x4f1250),_0xd87e['cGEkwT'][_0x48f726]=_0x4f1250):_0x4f1250=_0x1049a4,_0x4f1250;}export function conversationSegmentIdentityForItem(_0xf744ea,_0x6cee54,_0x14f67e){const _0x584515=_0xd87e;let _0x1eca65=-0x1d*-0xca+-0x6d5+-0x100d;const _0x40a8e3=_0xf744ea[_0x584515(0x105)]===null?_0x6cee54:_0xf744ea[_0x584515(0x105)]+':'+_0x6cee54;for(const [_0x1d52ef,_0x3b2501]of _0xf744ea[_0x584515(0x106)][_0x584515(0xf0)]()){const _0x467432=_0xf744ea[_0x584515(0x106)][_0x1d52ef-(-0x1b0+-0xb*0x38d+0x28c0)];if(_0x467432?.[_0x584515(0xf7)]===_0x584515(0x102)&&_0x3b2501[_0x584515(0xf7)]!==_0x584515(0x102))_0x1eca65+=-0x128+-0xd*0x2e+0xb3*0x5;if(_0x3b2501['id']===_0x6cee54||_0x3b2501['id']===_0x40a8e3)return{'id':_0xf744ea['id']+_0x584515(0xd9)+_0x1eca65,'index':_0x1eca65};}if(_0xf744ea[_0x584515(0x106)]['at'](-(-0x23d*-0x5+0x2*0x1b4+0x3a6*-0x4))?.[_0x584515(0xf7)]===_0x584515(0x102)&&_0x14f67e!==_0x584515(0x102))_0x1eca65+=-0x1553+0x1*-0x1c5a+-0x31ae*-0x1;return{'id':_0xf744ea['id']+_0x584515(0xd9)+_0x1eca65,'index':_0x1eca65};}export class ConversationSegmentService{[_0x43d17f(0xe9)];constructor(_0x3a673f){const _0x40112c=_0x43d17f;this[_0x40112c(0xe9)]=_0x3a673f;}[_0x43d17f(0x108)](_0x3c4e49,_0x349365,_0x3e4e36){const _0xbc78f6=_0x43d17f,_0x580d3b=_0x349365[_0xbc78f6(0x101)][_0xbc78f6(0xdd)](conversationSegments),_0x3e9d83=_0x580d3b[_0xbc78f6(0x10a)](-_0x3e4e36);return{'snapshotSequence':_0x349365[_0xbc78f6(0x10e)],'source':_0x349365[_0xbc78f6(0xe8)],'readAt':_0x349365[_0xbc78f6(0xf3)],'latestVisibleAt':_0x349365[_0xbc78f6(0xdc)],'unit':_0xbc78f6(0xe3),'segments':_0x3e9d83,'nextCursor':_0x3e9d83[_0xbc78f6(0xfb)]===0x1e2*0xb+0x20ee+-0xd69*0x4||_0x3e9d83[_0xbc78f6(0xfb)]===_0x580d3b[_0xbc78f6(0xfb)]&&_0x349365[_0xbc78f6(0xfe)]===null?null:encodeCursor({'version':0x1,'sessionId':_0x3c4e49['id'],'beforeSegmentId':_0x3e9d83[0x5fd+0x133*-0x1+-0x1*0x4ca]['id']})};}async[_0x43d17f(0xe2)](_0xb0059e,_0x43c11c){const _0x32d4f0=_0x43d17f,_0xcf3f80=Math[_0x32d4f0(0xeb)](Math[_0x32d4f0(0xf6)](_0x43c11c[_0x32d4f0(0x103)]??0x2619*-0x1+0x5bd+-0x207a*-0x1,-0x6*0xd3+0x1*0x242b+0x378*-0x9),0x1144+-0xc05+-0x34b),_0x402941=_0x43c11c[_0x32d4f0(0xe6)]===undefined?undefined:decodeCursor(_0x43c11c[_0x32d4f0(0xe6)],_0xb0059e['id']),_0x92f01a=[],_0x258455=new Set();let _0x2745ed,_0x56d0d5=_0x402941!==undefined,_0x450375=![],_0xd95167;while(_0x92f01a[_0x32d4f0(0xfb)]<_0xcf3f80){const _0xc5834a=await this[_0x32d4f0(0xe9)](_0xb0059e,{..._0x2745ed===undefined?{}:{'cursor':_0x2745ed},'limit':TURN_PAGE_SIZE});_0xd95167??={'snapshotSequence':_0xc5834a[_0x32d4f0(0x10e)],'source':_0xc5834a[_0x32d4f0(0xe8)],'readAt':_0xc5834a[_0x32d4f0(0xf3)],'latestVisibleAt':_0xc5834a[_0x32d4f0(0xdc)],..._0x402941===undefined&&_0xc5834a[_0x32d4f0(0xe4)]===!![]?{'deferredOlderHistory':!![]}:{}};const _0x1a8fae=_0xc5834a[_0x32d4f0(0x101)][_0x32d4f0(0xdd)](conversationSegments);let _0x4afbcb=_0x1a8fae;if(_0x56d0d5){const _0x109719=_0x1a8fae[_0x32d4f0(0xed)](_0x5037d1=>_0x5037d1['id']===_0x402941?.[_0x32d4f0(0xdb)]);if(_0x109719>=0x2*-0xd37+-0xfab+0x33d*0xd)_0x4afbcb=_0x1a8fae[_0x32d4f0(0x10a)](0xd51+0x133*-0x5+-0x752*0x1,_0x109719),_0x56d0d5=![];else _0x4afbcb=[];}if(!_0x56d0d5&&_0x4afbcb[_0x32d4f0(0xfb)]>-0x1*-0x9c2+0x2c5*-0x8+-0x3*-0x422){const _0x2c72b3=Math[_0x32d4f0(0xf6)](0xf58+0x2538+0x10*-0x349,_0xcf3f80-_0x92f01a[_0x32d4f0(0xfb)]),_0x4057eb=_0x4afbcb[_0x32d4f0(0x10a)](-_0x2c72b3);_0x450375=_0x4afbcb[_0x32d4f0(0xfb)]>_0x4057eb[_0x32d4f0(0xfb)]||_0xc5834a[_0x32d4f0(0xfe)]!==null,_0x92f01a[_0x32d4f0(0x10c)](..._0x4057eb);}if(_0x402941===undefined&&_0xc5834a[_0x32d4f0(0xe4)]===!![])break;if(_0x92f01a[_0x32d4f0(0xfb)]>=_0xcf3f80||_0xc5834a[_0x32d4f0(0xfe)]===null)break;if(_0x258455[_0x32d4f0(0xda)](_0xc5834a[_0x32d4f0(0xfe)]))throw new Error(_0x32d4f0(0xf9));_0x258455[_0x32d4f0(0xfa)](_0xc5834a[_0x32d4f0(0xfe)]),_0x2745ed=_0xc5834a[_0x32d4f0(0xfe)];}if(_0x56d0d5)throw new Error(_0x32d4f0(0xf9));const _0x1efa55=_0x92f01a[_0x32d4f0(0xfb)]===0x1*0x19e1+0x163a+-0x301b||!_0x450375?null:encodeCursor({'version':0x1,'sessionId':_0xb0059e['id'],'beforeSegmentId':_0x92f01a[-0x23a1+0x220e+0x193]['id']});return{..._0xd95167??{'snapshotSequence':0x0,'source':_0x32d4f0(0x107),'readAt':Date[_0x32d4f0(0xf5)](),'latestVisibleAt':0x0},'unit':_0x32d4f0(0xe3),'segments':_0x92f01a,'nextCursor':_0x1efa55};}}function encodeCursor(_0x21455d){const _0x3bd604=_0x43d17f;return Buffer[_0x3bd604(0x100)](JSON[_0x3bd604(0xf4)](_0x21455d))[_0x3bd604(0xde)](_0x3bd604(0xf2));}function decodeCursor(_0x428e58,_0x5b4e99){const _0x178565=_0x43d17f;try{const _0x5b1bbc=JSON[_0x178565(0x10d)](Buffer[_0x178565(0x100)](_0x428e58,_0x178565(0xf2))[_0x178565(0xde)](_0x178565(0xf1)));if(_0x5b1bbc[_0x178565(0x10b)]!==-0x1afa+-0x172c+0x15b*0x25||_0x5b1bbc[_0x178565(0x10f)]!==_0x5b4e99||typeof _0x5b1bbc[_0x178565(0xdb)]!==_0x178565(0xf8)||_0x5b1bbc[_0x178565(0xdb)][_0x178565(0xfb)]===0x19c7+0x4b5*-0x1+-0x383*0x6)throw new Error(_0x178565(0xf9));return _0x5b1bbc;}catch{throw new Error(_0x178565(0xf9));}}
2
+ const _0x230072=_0x5bcc;(function(_0x2f1dbf,_0x1412e1){const _0x15fe0d=_0x5bcc,_0x3eaaaa=_0x2f1dbf();while(!![]){try{const _0x5da962=parseInt(_0x15fe0d(0x198))/(0xe83+-0x19*0xa7+-0x1*-0x1cd)*(-parseInt(_0x15fe0d(0x1a4))/(0x352*0x4+-0xe1a+0xd4))+-parseInt(_0x15fe0d(0x1bf))/(-0x16f1+0x1c5d+-0x569)+parseInt(_0x15fe0d(0x1ba))/(-0x1f41*0x1+0x3fe*-0x6+-0x43*-0xd3)+-parseInt(_0x15fe0d(0x1a2))/(-0x1*-0x13ed+0x18c2*-0x1+-0x1b*-0x2e)*(parseInt(_0x15fe0d(0x195))/(0xd3*-0xb+-0x3*0x822+0x217d))+-parseInt(_0x15fe0d(0x19c))/(0x61a+0x2*0x247+-0xaa1*0x1)*(parseInt(_0x15fe0d(0x194))/(0xc*-0x11+-0x26e*-0x9+-0x150a))+parseInt(_0x15fe0d(0x1bc))/(-0x185+-0x21f+0x3ad)+-parseInt(_0x15fe0d(0x1bd))/(-0xb17+-0x7*0xf4+0x11cd)*(-parseInt(_0x15fe0d(0x1b2))/(0x67d+0x1f63*-0x1+0x18f1));if(_0x5da962===_0x1412e1)break;else _0x3eaaaa['push'](_0x3eaaaa['shift']());}catch(_0x295b22){_0x3eaaaa['push'](_0x3eaaaa['shift']());}}}(_0x5229,-0x1*-0x110236+0x3bf91*0x7+-0x1cf232));const TURN_PAGE_SIZE=0xbfb*-0x2+0x1dde+-0x26*0x27;export function conversationSegments(_0x1a7719){const _0x322e51=_0x5bcc,_0x1e9432=[];let _0x27a3d4=[];for(const _0x1c215c of _0x1a7719[_0x322e51(0x1ad)]){_0x27a3d4['at'](-(0x101+-0x3*0x274+0x65c))?.[_0x322e51(0x1ab)]===_0x322e51(0x197)&&_0x1c215c[_0x322e51(0x1ab)]!==_0x322e51(0x197)&&(_0x1e9432[_0x322e51(0x1a7)](_0x27a3d4),_0x27a3d4=[]),_0x27a3d4[_0x322e51(0x1a7)](_0x1c215c);}if(_0x27a3d4[_0x322e51(0x1a0)]>-0x10de+0x1d31+-0xc53||_0x1e9432[_0x322e51(0x1a0)]===-0x22b2+0x1f68+0x34a)_0x1e9432[_0x322e51(0x1a7)](_0x27a3d4);return _0x1e9432[_0x322e51(0x19d)]((_0x3e0aa6,_0x301881)=>{const _0x456e4b=_0x322e51,_0x2c2732=_0x1a7719['id']+_0x456e4b(0x1a6)+_0x301881,_0xa14d22=_0x301881===_0x1e9432[_0x456e4b(0x1a0)]-(0x23*0x113+0x2037+0x353*-0x15),_0x1828ab=_0x3e0aa6[_0x456e4b(0x19d)](_0x11d122=>({..._0x11d122,'runId':_0x1a7719[_0x456e4b(0x1b9)],'segmentId':_0x2c2732,'segmentIndex':_0x301881}));return{'id':_0x2c2732,'sessionId':_0x1a7719[_0x456e4b(0x1b1)],'turnId':_0x1a7719['id'],'runId':_0x1a7719[_0x456e4b(0x1b9)],'index':_0x301881,'status':_0xa14d22?_0x1a7719[_0x456e4b(0x1a3)]:_0x456e4b(0x1a8),..._0x1a7719[_0x456e4b(0x1a1)]===undefined?{}:{'rewind':_0x1a7719[_0x456e4b(0x1a1)]},'items':_0x1828ab,'startedAt':_0x1828ab[-0xc92*0x1+0xdfb+-0x169*0x1]?.[_0x456e4b(0x1af)]??_0x1a7719[_0x456e4b(0x1af)],'completedAt':_0x1828ab['at'](-(0xec3*-0x2+-0x20*0x24+0x2207))?.[_0x456e4b(0x1c8)]??null};});}export function conversationSegmentIdentityForItem(_0x362625,_0x3fffd3,_0x21a5e5){const _0xc23349=_0x5bcc;let _0x4a858b=0xbb7*-0x3+0x1ba9+0x77c;const _0x1516f6=_0x362625[_0xc23349(0x1b9)]===null?_0x3fffd3:_0x362625[_0xc23349(0x1b9)]+':'+_0x3fffd3;for(const [_0x2c1c3d,_0x246a53]of _0x362625[_0xc23349(0x1ad)][_0xc23349(0x1c5)]()){const _0x516b75=_0x362625[_0xc23349(0x1ad)][_0x2c1c3d-(-0xd*-0xdf+0x23fb*-0x1+0x18a9*0x1)];if(_0x516b75?.[_0xc23349(0x1ab)]===_0xc23349(0x197)&&_0x246a53[_0xc23349(0x1ab)]!==_0xc23349(0x197))_0x4a858b+=-0xa3*-0xf+-0x1*0x179f+0xe13*0x1;if(_0x246a53['id']===_0x3fffd3||_0x246a53['id']===_0x1516f6)return{'id':_0x362625['id']+_0xc23349(0x1a6)+_0x4a858b,'index':_0x4a858b};}if(_0x362625[_0xc23349(0x1ad)]['at'](-(-0xe1a+-0xc69+-0x1a84*-0x1))?.[_0xc23349(0x1ab)]===_0xc23349(0x197)&&_0x21a5e5!==_0xc23349(0x197))_0x4a858b+=0x1*0x709+0x96*-0xf+-0x4b*-0x6;return{'id':_0x362625['id']+_0xc23349(0x1a6)+_0x4a858b,'index':_0x4a858b};}function _0x5bcc(_0x5b24aa,_0x3a9838){_0x5b24aa=_0x5b24aa-(0x1d9c*0x1+0x136b+-0x2f75);const _0x74e3b3=_0x5229();let _0x3bd073=_0x74e3b3[_0x5b24aa];if(_0x5bcc['WMfEZM']===undefined){var _0x1b1beb=function(_0x595ec1){const _0x3bf4f7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2048cd='',_0x41daf5='';for(let _0x56a874=-0x1391*-0x1+0x7bb+0x1*-0x1b4c,_0x1d0e23,_0x28693a,_0x416e29=-0x4*-0x6cd+-0xa*0x32e+0x498;_0x28693a=_0x595ec1['charAt'](_0x416e29++);~_0x28693a&&(_0x1d0e23=_0x56a874%(0x24ac+-0x6d6+-0x15b*0x16)?_0x1d0e23*(-0x134a+-0x3*0x303+0x1c93)+_0x28693a:_0x28693a,_0x56a874++%(0x1e*-0xde+-0x7*-0x55f+0x1a7*-0x7))?_0x2048cd+=String['fromCharCode'](-0xc92*0x1+0xdfb+-0x6a*0x1&_0x1d0e23>>(-(0xec3*-0x2+-0x20*0x24+0x2208)*_0x56a874&0xbb7*-0x3+0x1ba9+0x782)):-0xd*-0xdf+0x23fb*-0x1+0x18a8*0x1){_0x28693a=_0x3bf4f7['indexOf'](_0x28693a);}for(let _0x112df0=-0xa3*-0xf+-0x1*0x179f+0xe12*0x1,_0x23ce1e=_0x2048cd['length'];_0x112df0<_0x23ce1e;_0x112df0++){_0x41daf5+='%'+('00'+_0x2048cd['charCodeAt'](_0x112df0)['toString'](-0xe1a+-0xc69+-0x1a93*-0x1))['slice'](-(0x1*0x709+0x96*-0xf+-0x1c3*-0x1));}return decodeURIComponent(_0x41daf5);};_0x5bcc['AiLJAg']=_0x1b1beb,_0x5bcc['NjIHTN']={},_0x5bcc['WMfEZM']=!![];}const _0xbe94=_0x74e3b3[0x1*-0x1fd+-0x7dc*-0x4+-0x1d73];_0x5bcc['HqNlDx']!==_0xbe94&&(_0x5bcc['NjIHTN']={},_0x5bcc['HqNlDx']=_0xbe94);const _0xd3add3=_0x5bcc['NjIHTN'][_0x5b24aa];return _0xd3add3===undefined?(_0x3bd073=_0x5bcc['AiLJAg'](_0x3bd073),_0x5bcc['NjIHTN'][_0x5b24aa]=_0x3bd073):_0x3bd073=_0xd3add3,_0x3bd073;}function _0x5229(){const _0x148671=['zMLUzeLUzgv4','CgfYC2u','rvzftLrFq1vsu09sx0LovKfmsuq','AgfZ','CNvUswq','mZm3nZqYneDpChrcEq','C25HChnOB3rtzxf1zw5Jzq','nZCZnZCXngTPCxfIsG','mtiWmJi3ntbuDKHZv3i','BM93','nta5otyXm1rss05Juq','yMfZzty0DxjS','CMvHzfr1CM5Z','C3rYAw5NAwz5','u0vhtuvova','DMvYC2LVBG','zw50CMLLCW','BgLTAxq','Bwf4','y29TCgXLDgvKqxq','CMvHza','ChjVAMvJDeLUAxrPywW','ywrK','CMvHzef0','zgvMzxjYzwrpBgrLCKHPC3rVCNK','Dg9tDhjPBMC','mJrnywDgDMe','ntm4mdK4mejHwvzTCa','zMXHDe1HCa','yxnZAxn0yw50x21LC3nHz2u','mty0mJr1ze9cB2y','Dw5ZAgLMDa','zNjVBq','yMvMB3jLu2vNBwvUDeLK','nZm1nJuXqwHyugvu','BwfW','C3rYAw5N','y3vYC29Y','BgvUz3rO','CMv3Aw5K','nwHjrxrQuG','C3rHDhvZ','mtC4BM9oC3Pg','DxrMoa','oNnLz21LBNq6','ChvZAa','u1vdq0vfreve','DhvYBNm','C291CMnL','A2LUza','BMv4Den1CNnVCG','AxrLBxm','C2XPy2u','C3rHCNrLzef0','CNvUDgLTzq','C2vZC2LVBKLK','mZnuu2nJsKK','Bgf0zxn0vMLZAwjSzuf0','BwLU'];_0x5229=function(){return _0x148671;};return _0x5229();}export class ConversationSegmentService{[_0x230072(0x1c1)];constructor(_0x1ea634){const _0x102ad0=_0x230072;this[_0x102ad0(0x1c1)]=_0x1ea634;}[_0x230072(0x1ca)](_0x3639c3,_0x1a362a,_0x5c3d1d){const _0xc54600=_0x230072,_0x44d61a=_0x1a362a[_0xc54600(0x1a9)][_0xc54600(0x196)](conversationSegments),_0x31080e=_0x44d61a[_0xc54600(0x1ae)](-_0x5c3d1d);return{'snapshotSequence':_0x1a362a[_0xc54600(0x1bb)],'source':_0x1a362a[_0xc54600(0x1aa)],'readAt':_0x1a362a[_0xc54600(0x1cc)],'latestVisibleAt':_0x1a362a[_0xc54600(0x1b3)],'unit':_0xc54600(0x1c3),'segments':_0x31080e,'nextCursor':_0x31080e[_0xc54600(0x1a0)]===0x1*-0x1fd+-0x7dc*-0x4+-0x1d73||_0x31080e[_0xc54600(0x1a0)]===_0x44d61a[_0xc54600(0x1a0)]&&_0x1a362a[_0xc54600(0x1ac)]===null?null:encodeCursor({'version':0x1,'sessionId':_0x3639c3['id'],'beforeSegmentId':_0x31080e[0x239a+-0x1a*-0x58+-0x2c8a]['id']})};}async[_0x230072(0x1c9)](_0x437797,_0x354119){const _0x2b0dfd=_0x230072,_0x155f8b=Math[_0x2b0dfd(0x1b4)](Math[_0x2b0dfd(0x1c7)](_0x354119[_0x2b0dfd(0x1c6)]??-0xd*0x22c+0x2227*0x1+-0x5cd,-0x5f6+-0x23b9+-0xe8*-0x2e),0x6*-0x664+-0xfca+0x3816),_0x1f6784=_0x354119[_0x2b0dfd(0x19f)]===undefined?undefined:decodeCursor(_0x354119[_0x2b0dfd(0x19f)],_0x437797['id']),_0x22bed6=[],_0x74f977=new Set();let _0x51a618,_0xed1d05=_0x1f6784!==undefined,_0x17ea98=![],_0xa97364;while(_0x22bed6[_0x2b0dfd(0x1a0)]<_0x155f8b){const _0x63e710=await this[_0x2b0dfd(0x1c1)](_0x437797,{..._0x51a618===undefined?{}:{'cursor':_0x51a618},'limit':TURN_PAGE_SIZE});_0xa97364??={'snapshotSequence':_0x63e710[_0x2b0dfd(0x1bb)],'source':_0x63e710[_0x2b0dfd(0x1aa)],'readAt':_0x63e710[_0x2b0dfd(0x1cc)],'latestVisibleAt':_0x63e710[_0x2b0dfd(0x1b3)],..._0x1f6784===undefined&&_0x63e710[_0x2b0dfd(0x192)]===!![]?{'deferredOlderHistory':!![]}:{}};const _0x225cc7=_0x63e710[_0x2b0dfd(0x1a9)][_0x2b0dfd(0x196)](conversationSegments);let _0xc886c6=_0x225cc7;if(_0xed1d05){const _0x6bf124=_0x225cc7[_0x2b0dfd(0x1b5)](_0x127772=>_0x127772['id']===_0x1f6784?.[_0x2b0dfd(0x19b)]);if(_0x6bf124>=0x9*0xff+-0x1*-0x2420+0x671*-0x7)_0xc886c6=_0x225cc7[_0x2b0dfd(0x1ae)](-0x10e1+-0x2*-0x243+0xc5b*0x1,_0x6bf124),_0xed1d05=![];else _0xc886c6=[];}if(!_0xed1d05&&_0xc886c6[_0x2b0dfd(0x1a0)]>0x6bb*-0x1+-0x21d*-0x6+0x5f3*-0x1){const _0x304ec7=Math[_0x2b0dfd(0x1c7)](-0x2*0x9d9+-0x2ce+0x1680,_0x155f8b-_0x22bed6[_0x2b0dfd(0x1a0)]),_0x596883=_0xc886c6[_0x2b0dfd(0x1ae)](-_0x304ec7);_0x17ea98=_0xc886c6[_0x2b0dfd(0x1a0)]>_0x596883[_0x2b0dfd(0x1a0)]||_0x63e710[_0x2b0dfd(0x1ac)]!==null,_0x22bed6[_0x2b0dfd(0x199)](..._0x596883);}if(_0x1f6784===undefined&&_0x63e710[_0x2b0dfd(0x192)]===!![])break;if(_0x22bed6[_0x2b0dfd(0x1a0)]>=_0x155f8b||_0x63e710[_0x2b0dfd(0x1ac)]===null)break;if(_0x74f977[_0x2b0dfd(0x1b8)](_0x63e710[_0x2b0dfd(0x1ac)]))throw new Error(_0x2b0dfd(0x1b7));_0x74f977[_0x2b0dfd(0x1cb)](_0x63e710[_0x2b0dfd(0x1ac)]),_0x51a618=_0x63e710[_0x2b0dfd(0x1ac)];}if(_0xed1d05)throw new Error(_0x2b0dfd(0x1b7));const _0x31bbe2=_0x22bed6[_0x2b0dfd(0x1a0)]===0x1e6d+0x11*0x223+-0x42c0||!_0x17ea98?null:encodeCursor({'version':0x1,'sessionId':_0x437797['id'],'beforeSegmentId':_0x22bed6[-0x120d+-0xb2d+0x4df*0x6]['id']});return{..._0xa97364??{'snapshotSequence':0x0,'source':_0x2b0dfd(0x1b0),'readAt':Date[_0x2b0dfd(0x1be)](),'latestVisibleAt':0x0},'unit':_0x2b0dfd(0x1c3),'segments':_0x22bed6,'nextCursor':_0x31bbe2};}}function encodeCursor(_0x3596c1){const _0x344354=_0x230072;return Buffer[_0x344354(0x19a)](JSON[_0x344354(0x1c2)](_0x3596c1))[_0x344354(0x193)](_0x344354(0x1c0));}function decodeCursor(_0x593de5,_0x3ae231){const _0x5a09c9=_0x230072;try{const _0x1f9310=JSON[_0x5a09c9(0x1b6)](Buffer[_0x5a09c9(0x19a)](_0x593de5,_0x5a09c9(0x1c0))[_0x5a09c9(0x193)](_0x5a09c9(0x1a5)));if(_0x1f9310[_0x5a09c9(0x1c4)]!==-0x2*-0x87b+0xc84+0x5*-0x5e5||_0x1f9310[_0x5a09c9(0x1b1)]!==_0x3ae231||typeof _0x1f9310[_0x5a09c9(0x19b)]!==_0x5a09c9(0x19e)||_0x1f9310[_0x5a09c9(0x19b)][_0x5a09c9(0x1a0)]===-0x1d84*0x1+-0x118d*-0x2+0x5*-0x11e)throw new Error(_0x5a09c9(0x1b7));return _0x1f9310;}catch{throw new Error(_0x5a09c9(0x1b7));}}
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x121596=_0x52a7;function _0x52a7(_0x2ed5f4,_0x453499){_0x2ed5f4=_0x2ed5f4-(0xe26*-0x2+-0x2610+0x1*0x430e);const _0x231ea2=_0x524d();let _0x5a61d2=_0x231ea2[_0x2ed5f4];if(_0x52a7['qHSMAj']===undefined){var _0x4f6549=function(_0x6f1890){const _0x348e92='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x325aae='',_0x420479='';for(let _0x102411=-0x126c+-0x52*-0x76+-0x1360,_0x1a7c8d,_0xacdbb0,_0x433dfe=0x1bff+0x2*-0xe1+-0x1a3d;_0xacdbb0=_0x6f1890['charAt'](_0x433dfe++);~_0xacdbb0&&(_0x1a7c8d=_0x102411%(-0x1*0xf9a+0x83b*0x1+-0x763*-0x1)?_0x1a7c8d*(-0x1*0x1659+0x115*-0x1f+0x2*0x1c12)+_0xacdbb0:_0xacdbb0,_0x102411++%(0x40b+0x3d5+-0x7dc))?_0x325aae+=String['fromCharCode'](0x22f+0x1eb9+-0x1fe9&_0x1a7c8d>>(-(0x532+0x16c7*0x1+0x1bf7*-0x1)*_0x102411&-0x10cb*0x1+0x83*0x40+0x1*-0xfef)):-0x1034+-0x1*0xf65+-0x1*-0x1f99){_0xacdbb0=_0x348e92['indexOf'](_0xacdbb0);}for(let _0x153e4e=0x151b+0x915+-0x1e30,_0x2b8272=_0x325aae['length'];_0x153e4e<_0x2b8272;_0x153e4e++){_0x420479+='%'+('00'+_0x325aae['charCodeAt'](_0x153e4e)['toString'](-0x185f+-0xf0a+0x2779))['slice'](-(0x952+0x2115+-0x2a65));}return decodeURIComponent(_0x420479);};_0x52a7['QyBrpw']=_0x4f6549,_0x52a7['SMyjbA']={},_0x52a7['qHSMAj']=!![];}const _0x41cc42=_0x231ea2[-0xba4+-0xc1*-0x19+-0x735];_0x52a7['DzNsdP']!==_0x41cc42&&(_0x52a7['SMyjbA']={},_0x52a7['DzNsdP']=_0x41cc42);const _0x2d531d=_0x52a7['SMyjbA'][_0x2ed5f4];return _0x2d531d===undefined?(_0x5a61d2=_0x52a7['QyBrpw'](_0x5a61d2),_0x52a7['SMyjbA'][_0x2ed5f4]=_0x5a61d2):_0x5a61d2=_0x2d531d,_0x5a61d2;}function _0x524d(){const _0x50eeca=['CNvUBMvYvgL0Bgu','C2XPy2u','y2XLyw51Ca','mtm0mtu0reXwvu94','C2v0','mtq0mdC0yK93q2j2','C2vZC2LVBKLK','BM93','zgvSzxrL','y3vZDg9TvgL0Bgu','vvbeqvrf','DxnLCKLK','su5urvjsvvburuq','nJa1ndqWmhvlwgHZEa','DhjPBq','Bg9JywXLq29TCgfYzq','ndKXnuDTq1DdCa','mtq0qxforvLo','mty1ntGZzKrmzuzy','u05bufnit1q','BM9KzuLK','AxntywzLsw50zwDLCG','y2XLyw51CfrPBwvY','CMvJB3jK','y29TCgXLDgvKqxq','C3rHDhvZ','q0foq0vmteve','mtGYndHuBujcze8','Aw5PDgLHDgvKqNLvC2vYswq','u1vdq0vfreve','rKfjteve','DxnLCK1LC3nHz2u','CNvUswq','DMfSDwvZ','C25HChnOB3q','zw1PDa','mta1m01HChLJsW','y3jLyxrLzef0','zgLZCg9Zzq','Aw5JBhvKzxm','Dw5Yzwy','C3rHCNrLzef0','DMvYC2LVBG','zxH0zxjUywXtzxnZAw9Uswq','C29YDa','ChvZAa','CNvUC0j5u2vZC2LVBG','ndq3odGYAxveEwT0','CMvWBgfJzq','C29YDef0','ChvIBgLZAfnUyxbZAg90','m05UsejQDW','DxbKyxrLzef0','z2v0','uvvfvuve','BgvUz3rO','CNvUBMvY','D29YA3nWywnLswq'];_0x524d=function(){return _0x50eeca;};return _0x524d();}(function(_0x54a973,_0x876432){const _0x3d2d2a=_0x52a7,_0x2a6356=_0x54a973();while(!![]){try{const _0x2b4d42=parseInt(_0x3d2d2a(0xe7))/(-0x23ea+0x1536+0x1*0xeb5)+-parseInt(_0x3d2d2a(0xca))/(0x32c+-0x1*-0xd1a+-0x1*0x1044)*(parseInt(_0x3d2d2a(0xce))/(0x2*0x117a+0xfb*-0x7+-0xc*0x257))+-parseInt(_0x3d2d2a(0xe6))/(0xacf+0x309*-0x3+-0x1b0)*(parseInt(_0x3d2d2a(0xe5))/(0x6a1*0x5+0x40e*0x9+-0x459e*0x1))+-parseInt(_0x3d2d2a(0xd8))/(0x26b*-0xb+-0x6a7+-0x1*-0x2146)+-parseInt(_0x3d2d2a(0xda))/(-0x4*-0x8e9+0x93e+-0x2cdb)+parseInt(_0x3d2d2a(0xb6))/(0x5*0x151+0x7*-0x312+0xef1)*(-parseInt(_0x3d2d2a(0xbf))/(-0x898+0xc92+0x3f1*-0x1))+parseInt(_0x3d2d2a(0xe2))/(-0x7*0xe5+-0x1a4e+0x209b);if(_0x2b4d42===_0x876432)break;else _0x2a6356['push'](_0x2a6356['shift']());}catch(_0x553b17){_0x2a6356['push'](_0x2a6356['shift']());}}}(_0x524d,-0x22946+-0x3dabb+0x91895*0x1));const TERMINAL_TTL_MS=(0x9a3+-0x1*0x1118+0x781)*(0xae7+0x244+0xb*-0x12d)*(0x1*-0x4efd+0x1867e+-0x4d21),CLEANUP_INTERVAL_MS=(-0x218b+0x2ab*0x7+0x1*0xee3)*(0x3082+0x2dfe+0x8be0),TERMINAL_LIMIT=0x22f+0x1eb9+-0x2084;export class RecentRunProjectionService{[_0x121596(0xbe)];[_0x121596(0xdc)];[_0x121596(0xc9)]=new Map();[_0x121596(0xeb)];constructor(_0x11f0e3,_0x1d559e=Date[_0x121596(0xdc)]){const _0x808c5c=_0x121596;this[_0x808c5c(0xbe)]=_0x11f0e3,this[_0x808c5c(0xdc)]=_0x1d559e,this[_0x808c5c(0xeb)]=setInterval(()=>this[_0x808c5c(0xd7)](),CLEANUP_INTERVAL_MS),this[_0x808c5c(0xeb)][_0x808c5c(0xc3)]();}[_0x121596(0xb2)](_0xbc2a28,_0x2ec548,_0x2c4469){const _0x39dad4=_0x121596;if(!Number[_0x39dad4(0xea)](_0xbc2a28[_0x39dad4(0xb7)])||_0xbc2a28[_0x39dad4(0xb7)]===undefined)return;if(_0x2ec548[_0x39dad4(0xc6)]===null)return;const _0x3b0fec=taskKey(_0xbc2a28[_0x39dad4(0xb7)],_0xbc2a28[_0x39dad4(0xdb)]),_0x58109a=this[_0x39dad4(0xc9)][_0x39dad4(0xd0)](_0x3b0fec),_0x250bd6=_0x58109a?.[_0x39dad4(0xbb)]===_0xbc2a28['id'];if(_0x250bd6&&_0x58109a[_0x39dad4(0xc5)]>_0xbc2a28[_0x39dad4(0xc5)])return;if(!_0x250bd6&&_0x58109a!==undefined&&newerThan(_0x58109a,_0xbc2a28))return;const _0xf929c=(_0x250bd6?_0x58109a[_0x39dad4(0xc4)]:null)??(_0xbc2a28[_0x39dad4(0xb4)]===_0x39dad4(0xd1)?null:_0xbc2a28[_0x39dad4(0xcf)]),_0xb1ddc9=terminal(_0xbc2a28[_0x39dad4(0xb4)])?(_0x250bd6?_0x58109a[_0x39dad4(0xb3)]:null)??_0xbc2a28[_0x39dad4(0xcf)]:null,_0x217b50=messagePreview(_0x2c4469)??(_0x250bd6?_0x58109a[_0x39dad4(0xba)]:undefined),_0x46b146={'runId':_0xbc2a28['id'],'nodeId':_0xbc2a28[_0x39dad4(0xe9)],'workspaceId':_0xbc2a28[_0x39dad4(0xd4)],'sessionId':_0xbc2a28[_0x39dad4(0xdb)],'sessionTitle':_0x2ec548[_0x39dad4(0xde)]??_0x2ec548[_0x39dad4(0xd5)]??_0x2ec548['id'],..._0x217b50===undefined?{}:{'userMessage':_0x217b50},'runner':_0xbc2a28[_0x39dad4(0xd3)],'status':_0xbc2a28[_0x39dad4(0xb4)],'createdAt':_0xbc2a28[_0x39dad4(0xc0)],'startedAt':_0xf929c,'completedAt':_0xb1ddc9,'sortAt':_0xf929c??_0xbc2a28[_0x39dad4(0xc0)],'updatedAt':_0xbc2a28[_0x39dad4(0xcf)],'version':_0xbc2a28[_0x39dad4(0xc5)],'userId':_0xbc2a28[_0x39dad4(0xb7)]};this[_0x39dad4(0xc9)][_0x39dad4(0xd9)](_0x3b0fec,_0x46b146),this[_0x39dad4(0xd7)](),this[_0x39dad4(0xbe)]({'kind':_0x39dad4(0xdf),'run':_0x46b146});}[_0x121596(0xbd)](){const _0x2c2052=_0x121596;return this[_0x2c2052(0xd7)](),[...this[_0x2c2052(0xc9)][_0x2c2052(0xbc)]()][_0x2c2052(0xc7)](compareRecentRuns);}[_0x121596(0xcd)](){const _0xf42741=_0x121596;this[_0xf42741(0xbe)]({'kind':_0xf42741(0xe8),'runs':[...this[_0xf42741(0xbd)]()]});}[_0x121596(0xc1)](){const _0x43ad4d=_0x121596;clearInterval(this[_0x43ad4d(0xeb)]);}[_0x121596(0xd7)](){const _0x446dce=_0x121596,_0x2c4c6b=this[_0x446dce(0xdc)]()-TERMINAL_TTL_MS;for(const [_0x12b316,_0x1f64a3]of this[_0x446dce(0xc9)])if(_0x1f64a3[_0x446dce(0xb3)]!==null&&_0x1f64a3[_0x446dce(0xb3)]<=_0x2c4c6b)this[_0x446dce(0xc9)][_0x446dce(0xdd)](_0x12b316);const _0x501d7d=new Map();for(const _0x2ed5f4 of this[_0x446dce(0xc9)][_0x446dce(0xbc)]()){if(_0x2ed5f4[_0x446dce(0xb3)]===null)continue;const _0x453499=_0x501d7d[_0x446dce(0xd0)](_0x2ed5f4[_0x446dce(0xe0)])??[];_0x453499[_0x446dce(0xc8)](_0x2ed5f4),_0x501d7d[_0x446dce(0xd9)](_0x2ed5f4[_0x446dce(0xe0)],_0x453499);}for(const _0x231ea2 of _0x501d7d[_0x446dce(0xbc)]())for(const _0x5a61d2 of _0x231ea2[_0x446dce(0xc7)](compareRecentRuns)[_0x446dce(0xd6)](TERMINAL_LIMIT))this[_0x446dce(0xc9)][_0x446dce(0xdd)](taskKey(_0x5a61d2[_0x446dce(0xe0)],_0x5a61d2[_0x446dce(0xdb)]));}}function compareRecentRuns(_0x4f6549,_0x41cc42){const _0x18d573=_0x121596;return _0x41cc42[_0x18d573(0xcc)]-_0x4f6549[_0x18d573(0xcc)]||_0x41cc42[_0x18d573(0xc0)]-_0x4f6549[_0x18d573(0xc0)]||_0x41cc42[_0x18d573(0xbb)][_0x18d573(0xe4)](_0x4f6549[_0x18d573(0xbb)]);}function newerThan(_0x2d531d,_0x6f1890){const _0x4dcd0c=_0x121596;return _0x2d531d[_0x4dcd0c(0xc0)]>_0x6f1890[_0x4dcd0c(0xc0)]||_0x2d531d[_0x4dcd0c(0xc0)]===_0x6f1890[_0x4dcd0c(0xc0)]&&_0x2d531d[_0x4dcd0c(0xbb)][_0x4dcd0c(0xe4)](_0x6f1890['id'])>0x532+0x16c7*0x1+0x5d*-0x4d;}function taskKey(_0x348e92,_0x325aae){return _0x348e92+'\x00'+_0x325aae;}function messagePreview(_0x420479){const _0x3aff5a=_0x121596,_0x102411=_0x420479?.[_0x3aff5a(0xe3)]()[_0x3aff5a(0xcb)](/\s+/gu,'\x20');return _0x102411===undefined||_0x102411[_0x3aff5a(0xd2)]===-0x10cb*0x1+0x83*0x40+0x13*-0xd7?undefined:_0x102411[_0x3aff5a(0xd6)](-0x1034+-0x1*0xf65+-0x1*-0x1f99,0x151b+0x915+-0x1c3c);}function terminal(_0x1a7c8d){const _0x363cde=_0x121596;return[_0x363cde(0xb8),_0x363cde(0xb9),_0x363cde(0xb5),_0x363cde(0xe1)][_0x363cde(0xc2)](_0x1a7c8d);}
2
+ function _0x5b9e(_0x3c111d,_0x2df895){_0x3c111d=_0x3c111d-(0x72c*-0x3+0xb*0x339+-0xca6);const _0x51fbc6=_0x5aa8();let _0x1ac99f=_0x51fbc6[_0x3c111d];if(_0x5b9e['AOfCxU']===undefined){var _0x280aef=function(_0x4606ce){const _0x4cdcbe='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x658c68='',_0x5c52c7='';for(let _0x4ef4ab=0x1*0x25ac+0x15b*0x7+0x1*-0x2f29,_0x3565de,_0x231ce2,_0x513d06=-0x989+0x1c*0x2e+0x481;_0x231ce2=_0x4606ce['charAt'](_0x513d06++);~_0x231ce2&&(_0x3565de=_0x4ef4ab%(0x18da+0x33c+0x1*-0x1c12)?_0x3565de*(0x3*0x793+0x934*-0x1+-0xd45*0x1)+_0x231ce2:_0x231ce2,_0x4ef4ab++%(0x1*0xf73+0xd75+-0x1ce4))?_0x658c68+=String['fromCharCode'](-0x1*0x466+-0x272+0x7d7&_0x3565de>>(-(0xe0e+-0x16b4+0x115*0x8)*_0x4ef4ab&0x729+0x61a*-0x4+0x1145*0x1)):-0x197b+-0x999+0x382*0xa){_0x231ce2=_0x4cdcbe['indexOf'](_0x231ce2);}for(let _0x519918=0x1*-0x7b3+-0x18cd+0x82*0x40,_0x35a2fd=_0x658c68['length'];_0x519918<_0x35a2fd;_0x519918++){_0x5c52c7+='%'+('00'+_0x658c68['charCodeAt'](_0x519918)['toString'](-0x3*0x72a+-0x1646+0x1e*0x176))['slice'](-(0x1f2+-0x2042+0x1e52));}return decodeURIComponent(_0x5c52c7);};_0x5b9e['ySddcf']=_0x280aef,_0x5b9e['GgpiAR']={},_0x5b9e['AOfCxU']=!![];}const _0x26f12a=_0x51fbc6[-0x1e2e+-0xd34+0x2b62];_0x5b9e['zKrgFf']!==_0x26f12a&&(_0x5b9e['GgpiAR']={},_0x5b9e['zKrgFf']=_0x26f12a);const _0x463176=_0x5b9e['GgpiAR'][_0x3c111d];return _0x463176===undefined?(_0x1ac99f=_0x5b9e['ySddcf'](_0x1ac99f),_0x5b9e['GgpiAR'][_0x3c111d]=_0x1ac99f):_0x1ac99f=_0x463176,_0x1ac99f;}const _0x68eb40=_0x5b9e;(function(_0x3155fe,_0x453a1e){const _0x2ba542=_0x5b9e,_0x407a44=_0x3155fe();while(!![]){try{const _0x4a157f=parseInt(_0x2ba542(0x17b))/(-0x109d+0xdcc+0x13*0x26)*(parseInt(_0x2ba542(0x165))/(-0x34a*0x1+-0xb9b+0x1*0xee7))+parseInt(_0x2ba542(0x15c))/(0x9a4+-0x1d9a+0x13f9)+-parseInt(_0x2ba542(0x162))/(-0x15f0+0x19ab+-0x3b7)+-parseInt(_0x2ba542(0x175))/(-0x1442+-0x3e2*-0x6+-0x305)*(-parseInt(_0x2ba542(0x156))/(-0x245f+-0x241a*0x1+-0x115*-0x43))+parseInt(_0x2ba542(0x14d))/(-0x1bc0+-0xae7*0x1+0x1357*0x2)+parseInt(_0x2ba542(0x149))/(-0x11a2+0x15ca+-0x420)+-parseInt(_0x2ba542(0x155))/(0xce5+-0x1558*-0x1+-0x2234);if(_0x4a157f===_0x453a1e)break;else _0x407a44['push'](_0x407a44['shift']());}catch(_0x584a8f){_0x407a44['push'](_0x407a44['shift']());}}}(_0x5aa8,0x7*0x87ae+-0x1fbb5+0x47d0));const TERMINAL_TTL_MS=(0x1*0x455+-0x2*-0x3be+-0x1*0xbc5)*(0x697+0x1*0x1234+-0x188f)*(0x16bd*-0xf+0x17371+0x1*0xcc02),CLEANUP_INTERVAL_MS=(-0x304*-0x1+0x2*0x127d+0x1*-0x27f9)*(-0x2a8a+-0x4a16+-0x1a*-0xd80),TERMINAL_LIMIT=-0x761*0x1+-0x1d58+0x251d;export class RecentRunProjectionService{[_0x68eb40(0x172)];[_0x68eb40(0x16c)];[_0x68eb40(0x17d)]=new Map();[_0x68eb40(0x15b)];constructor(_0x2ae7ce,_0x399de6=Date[_0x68eb40(0x16c)]){const _0x2c3384=_0x68eb40;this[_0x2c3384(0x172)]=_0x2ae7ce,this[_0x2c3384(0x16c)]=_0x399de6,this[_0x2c3384(0x15b)]=setInterval(()=>this[_0x2c3384(0x160)](),CLEANUP_INTERVAL_MS),this[_0x2c3384(0x15b)][_0x2c3384(0x179)]();}[_0x68eb40(0x15e)](_0x3d78ce,_0x320fe6,_0x850b7e){const _0x74c6b7=_0x68eb40;if(!Number[_0x74c6b7(0x15f)](_0x3d78ce[_0x74c6b7(0x167)])||_0x3d78ce[_0x74c6b7(0x167)]===undefined)return;if(_0x320fe6[_0x74c6b7(0x16a)]===null)return;const _0x187d18=taskKey(_0x3d78ce[_0x74c6b7(0x167)],_0x3d78ce[_0x74c6b7(0x174)]),_0xb97fe8=this[_0x74c6b7(0x17d)][_0x74c6b7(0x170)](_0x187d18),_0x2bd5cd=_0xb97fe8?.[_0x74c6b7(0x154)]===_0x3d78ce['id'];if(_0x2bd5cd&&_0xb97fe8[_0x74c6b7(0x159)]>_0x3d78ce[_0x74c6b7(0x159)])return;if(!_0x2bd5cd&&_0xb97fe8!==undefined&&newerThan(_0xb97fe8,_0x3d78ce))return;const _0xada9d7=(_0x2bd5cd?_0xb97fe8[_0x74c6b7(0x15a)]:null)??_0x3d78ce[_0x74c6b7(0x15a)],_0x1f9293=terminal(_0x3d78ce[_0x74c6b7(0x15d)])?(_0x2bd5cd?_0xb97fe8[_0x74c6b7(0x166)]:null)??_0x3d78ce[_0x74c6b7(0x166)]??_0x3d78ce[_0x74c6b7(0x157)]:null,_0x5f446e=messagePreview(_0x850b7e)??(_0x2bd5cd?_0xb97fe8[_0x74c6b7(0x14e)]:undefined),_0x282fdd={'runId':_0x3d78ce['id'],'nodeId':_0x3d78ce[_0x74c6b7(0x177)],'workspaceId':_0x3d78ce[_0x74c6b7(0x14a)],'sessionId':_0x3d78ce[_0x74c6b7(0x174)],'sessionTitle':_0x320fe6[_0x74c6b7(0x17e)]??_0x320fe6[_0x74c6b7(0x152)]??_0x320fe6['id'],..._0x5f446e===undefined?{}:{'userMessage':_0x5f446e},'runner':_0x3d78ce[_0x74c6b7(0x151)],'status':_0x3d78ce[_0x74c6b7(0x15d)],'createdAt':_0x3d78ce[_0x74c6b7(0x150)],'startedAt':_0xada9d7,'completedAt':_0x1f9293,'sortAt':_0xada9d7??_0x3d78ce[_0x74c6b7(0x150)],'updatedAt':_0x3d78ce[_0x74c6b7(0x157)],'version':_0x3d78ce[_0x74c6b7(0x159)],'userId':_0x3d78ce[_0x74c6b7(0x167)]};this[_0x74c6b7(0x17d)][_0x74c6b7(0x158)](_0x187d18,_0x282fdd),this[_0x74c6b7(0x160)](),this[_0x74c6b7(0x172)]({'kind':_0x74c6b7(0x176),'run':_0x282fdd});}[_0x68eb40(0x16b)](){const _0x48fbf2=_0x68eb40;return this[_0x48fbf2(0x160)](),[...this[_0x48fbf2(0x17d)][_0x48fbf2(0x16e)]()][_0x48fbf2(0x17f)](compareRecentRuns);}[_0x68eb40(0x171)](){const _0x5a1de7=_0x68eb40;this[_0x5a1de7(0x172)]({'kind':_0x5a1de7(0x153),'runs':[...this[_0x5a1de7(0x16b)]()]});}[_0x68eb40(0x14c)](){const _0x517737=_0x68eb40;clearInterval(this[_0x517737(0x15b)]);}[_0x68eb40(0x160)](){const _0x2e7cd2=_0x68eb40,_0x677df2=this[_0x2e7cd2(0x16c)]()-TERMINAL_TTL_MS;for(const [_0x2df895,_0x51fbc6]of this[_0x2e7cd2(0x17d)])if(_0x51fbc6[_0x2e7cd2(0x166)]!==null&&_0x51fbc6[_0x2e7cd2(0x166)]<=_0x677df2)this[_0x2e7cd2(0x17d)][_0x2e7cd2(0x14b)](_0x2df895);const _0x3c111d=new Map();for(const _0x1ac99f of this[_0x2e7cd2(0x17d)][_0x2e7cd2(0x16e)]()){if(_0x1ac99f[_0x2e7cd2(0x166)]===null)continue;const _0x280aef=_0x3c111d[_0x2e7cd2(0x170)](_0x1ac99f[_0x2e7cd2(0x17a)])??[];_0x280aef[_0x2e7cd2(0x173)](_0x1ac99f),_0x3c111d[_0x2e7cd2(0x158)](_0x1ac99f[_0x2e7cd2(0x17a)],_0x280aef);}for(const _0x26f12a of _0x3c111d[_0x2e7cd2(0x16e)]())for(const _0x463176 of _0x26f12a[_0x2e7cd2(0x17f)](compareRecentRuns)[_0x2e7cd2(0x17c)](TERMINAL_LIMIT))this[_0x2e7cd2(0x17d)][_0x2e7cd2(0x14b)](taskKey(_0x463176[_0x2e7cd2(0x17a)],_0x463176[_0x2e7cd2(0x174)]));}}function compareRecentRuns(_0x4606ce,_0x4cdcbe){const _0x156451=_0x68eb40;return _0x4cdcbe[_0x156451(0x16f)]-_0x4606ce[_0x156451(0x16f)]||_0x4cdcbe[_0x156451(0x150)]-_0x4606ce[_0x156451(0x150)]||_0x4cdcbe[_0x156451(0x154)][_0x156451(0x168)](_0x4606ce[_0x156451(0x154)]);}function newerThan(_0x658c68,_0x5c52c7){const _0x31b3c8=_0x68eb40;return _0x658c68[_0x31b3c8(0x150)]>_0x5c52c7[_0x31b3c8(0x150)]||_0x658c68[_0x31b3c8(0x150)]===_0x5c52c7[_0x31b3c8(0x150)]&&_0x658c68[_0x31b3c8(0x154)][_0x31b3c8(0x168)](_0x5c52c7['id'])>-0x15b*-0x16+0x1489+0x325b*-0x1;}function taskKey(_0x4ef4ab,_0x3565de){return _0x4ef4ab+'\x00'+_0x3565de;}function _0x5aa8(){const _0x3577e6=['D29YA3nWywnLswq','zgvSzxrL','zgLZCg9Zzq','mJaYndeYseTYzMT1','DxnLCK1LC3nHz2u','DhjPBq','y3jLyxrLzef0','CNvUBMvY','CNvUBMvYvgL0Bgu','u05bufnit1q','CNvUswq','ndy0oti4m2PRuNfJCa','mty4nMLJuevkuW','DxbKyxrLzef0','C2v0','DMvYC2LVBG','C3rHCNrLzef0','y2XLyw51CfrPBwvY','mZyWndC3CLLxyvjS','C3rHDhvZ','CMvJB3jK','AxntywzLsw50zwDLCG','y2XLyw51Ca','su5urvjsvvburuq','mtmXmda0t2fAu2DP','CMvWBgfJzq','Aw5JBhvKzxm','mJa2B0PosNfp','y29TCgXLDgvKqxq','Aw5PDgLHDgvKqNLvC2vYswq','Bg9JywXLq29TCgfYzq','rKfjteve','zxH0zxjUywXtzxnZAw9Uswq','C25HChnOB3q','BM93','BgvUz3rO','DMfSDwvZ','C29YDef0','z2v0','ChvIBgLZAfnUyxbZAg90','zw1PDa','ChvZAa','C2vZC2LVBKLK','ndq2mgPwrgjQtW','vvbeqvrf','BM9KzuLK','q0foq0vmteve','Dw5Yzwy','DxnLCKLK','mJG3BxfPuw1h','C2XPy2u','CNvUC0j5u2vZC2LVBG','y3vZDg9TvgL0Bgu','C29YDa','u1vdq0vfreve','mJaXmJC5mLzLtNv3sq'];_0x5aa8=function(){return _0x3577e6;};return _0x5aa8();}function messagePreview(_0x231ce2){const _0x3283b1=_0x68eb40,_0x513d06=_0x231ce2?.[_0x3283b1(0x14f)]()[_0x3283b1(0x163)](/\s+/gu,'\x20');return _0x513d06===undefined||_0x513d06[_0x3283b1(0x16d)]===0xaff+0x17ab+-0x22aa?undefined:_0x513d06[_0x3283b1(0x17c)](-0x2*0x77b+0x8b5+0x1*0x641,-0x2b*0x25+0x374+-0x1*-0x4b7);}function terminal(_0x519918){const _0x1152ca=_0x68eb40;return[_0x1152ca(0x180),_0x1152ca(0x169),_0x1152ca(0x178),_0x1152ca(0x161)][_0x1152ca(0x164)](_0x519918);}
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x4238d0=_0x444b;(function(_0x1aa8e1,_0x2b612b){const _0x42adb5=_0x444b,_0x3831ea=_0x1aa8e1();while(!![]){try{const _0x20e675=-parseInt(_0x42adb5(0xc9))/(-0xfef+-0xef4+0x1ee4)+-parseInt(_0x42adb5(0x96))/(0x1451*0x1+0x7ec*-0x1+-0xc63)*(parseInt(_0x42adb5(0xcf))/(0xfbe+-0x136b+0x3b0))+-parseInt(_0x42adb5(0xd0))/(-0x1894+0x1fa+0x6*0x3c5)*(parseInt(_0x42adb5(0x9b))/(-0x280+-0x1fd3*0x1+0x2258))+parseInt(_0x42adb5(0xb6))/(-0x1*0x24d+0x94d*-0x1+0xba0)+-parseInt(_0x42adb5(0x90))/(-0x1c16+0xf*-0x24f+0x3ebe)*(-parseInt(_0x42adb5(0x8b))/(-0x18c9+0x1a2a*0x1+-0x17*0xf))+parseInt(_0x42adb5(0x93))/(0x1fd+-0xd1d+0xb29)*(parseInt(_0x42adb5(0xb4))/(0x12c6+-0x1*-0x1a52+-0x2d0e))+-parseInt(_0x42adb5(0xb9))/(-0x1cf*0x1+0x17f1+-0x1617);if(_0x20e675===_0x2b612b)break;else _0x3831ea['push'](_0x3831ea['shift']());}catch(_0x3bca6a){_0x3831ea['push'](_0x3831ea['shift']());}}}(_0x1381,-0x7*-0x2ff33+0x62c14+-0x45b*0x2f1));import{tmpdir}from'node:os';import{basename,dirname,isAbsolute,join,relative,resolve}from'node:path';import{lstat,mkdir,mkdtemp,readFile,realpath,rm,writeFile}from'node:fs/promises';import{AttachmentDomainState}from'./attachment-domain-state.js';const MAX_ATTACHMENT_BYTES=(-0xc80+-0x9*0x29b+0x23f8)*(0x1*0x2481+-0x6*0x425+0x73*-0x11)*(0x2*0x61+0x582+-0x244),IMAGE_CACHE_TTL_MS=(-0x3*0x25+0x1e04+0x1*-0x1d59)*(0x762*0x7+0x17553+0xbea1*-0x1),NATIVE_IMAGE_INDEX_TTL_MS=(-0x5fd*-0x1+-0x8*-0x400+0x5*-0x78d)*(0x14c3+-0xf943+0x2*0xe770);function _0x1381(){const _0x1c2ab7=['ndGXnZq3mLnzv1rMtW','lM1HCI90zw1WlwzPBgvZlW','AxneAxjLy3rVCNK','ndeZnti1mLjNt1j2Eq','Cgf0Aa','CNvUrMLSzurPCMvJDg9YAwvZ','y2f0y2G','yMfZzty0','CMvNAxn0zxjoyxrPDMu','Bwf0zxjPywXPEMvdB2rLEa','CNvUrgLYzwn0B3jPzxm','C3rHDgu','C2XPy2u','tuvtu0fhrv9bvfrbq0Hnru5ux0rjuKvdve9swv9jtLzbteLe','DgLTzxi','ywXS','BgvUz3rO','zNjVBq','Dg9tDhjPBMC','mtqXntG4mvzsDNH2tW','zMLUza','BMf0AxzLsgLZDg9YEuLTywDLvgLTzxjZ','Dw5Yzwy','Bg9JywXqyxrOCW','ANbN','ovvYA3vRsG','odCXmde2q2nMqvv2','BwfW','zMLUzeLUzgv4','Bg9JywXjBwfNzq','BMfTzq','y2fJAgvKqxr0ywnOBwvUDej5ugf0Aa','mtm3mtq5odrTDLfJBgm','CgvYC2LZDezPBgvZ','AxntEw1IB2XPy0XPBMS','A2v5CW','Bg9JywXqyxrO','n2zYAMHsza','Aw1Hz2uV','zxHWAxjLC0f0','mte3zerqBNrq','CNvUsw1Hz2vZ','BMf0AxzLsw1Hz2vsB290CW','mZeYnJyYvwD1zev6','ChvZAa','C2v0','BxLHz2vUDhjVyw0Tyxr0ywnOBwvUDc0','y2XLyxi','mJvgv3vzD0C','C2L6zq','BM93','Aw1Hz2vZ','BMf0AxzLsgLZDg9YEuLTywDLCW','zgLZCg9Zzq','DgvTCc1MAwXLCW','y2XLyw51Ca','zgf0yujHC2u2na','y2fJAgu','BMf0AxzLlwHPC3rVCNK6','zgvSzxrL','z2v0','CMvWBgfJzq','C3rHCNrZv2L0Aa','CMvHza','yNL0zuXLBMD0Aa','CM9VDa','AxngAwXL','CMvHze5HDgL2zq','lM1HCG','BwLTzq','zxHWAxjL','DMfSDwvZ','yxbWzw5K','mtm2mZa5meHVvgX3sG','ANbLzW'];_0x1381=function(){return _0x1c2ab7;};return _0x1381();}function _0x444b(_0x27a4ed,_0x54bfc3){_0x27a4ed=_0x27a4ed-(-0x1efd+-0xcf7*0x1+-0x3*-0xed5);const _0x5a1dda=_0x1381();let _0x39de86=_0x5a1dda[_0x27a4ed];if(_0x444b['JmYQYx']===undefined){var _0x1361d7=function(_0x320e56){const _0x1da733='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4dab13='',_0x322367='';for(let _0x7fc080=0x1157+-0xa32+-0x725,_0x333930,_0x36d646,_0x4fec11=-0x8fc+0x343+-0x125*-0x5;_0x36d646=_0x320e56['charAt'](_0x4fec11++);~_0x36d646&&(_0x333930=_0x7fc080%(-0x1a*-0x11b+0x45*0x5+0x1*-0x1e13)?_0x333930*(0x168a+0x1050+-0x269a)+_0x36d646:_0x36d646,_0x7fc080++%(0x1e04+0x227b+0x1*-0x407b))?_0x4dab13+=String['fromCharCode'](0x44f*0x1+0x1f1d+0x226d*-0x1&_0x333930>>(-(-0x5fd*-0x1+-0x8*-0x400+0x7*-0x56d)*_0x7fc080&0x1bb+-0x14c6+0x1*0x1311)):-0x2d8+0xdbf+-0xae7){_0x36d646=_0x1da733['indexOf'](_0x36d646);}for(let _0x29357c=-0x220a+0x1742+0xac8,_0xeca10f=_0x4dab13['length'];_0x29357c<_0xeca10f;_0x29357c++){_0x322367+='%'+('00'+_0x4dab13['charCodeAt'](_0x29357c)['toString'](0x4a6+-0xf00+0xa6a))['slice'](-(-0x1d6d+0x2ef*-0xb+0x3db4));}return decodeURIComponent(_0x322367);};_0x444b['FYvEGQ']=_0x1361d7,_0x444b['eSfJGu']={},_0x444b['JmYQYx']=!![];}const _0x24e876=_0x5a1dda[0x11*-0x99+0x1a02+-0x1*0xfd9];_0x444b['voYNjN']!==_0x24e876&&(_0x444b['eSfJGu']={},_0x444b['voYNjN']=_0x24e876);const _0x1c2a63=_0x444b['eSfJGu'][_0x27a4ed];return _0x1c2a63===undefined?(_0x39de86=_0x444b['FYvEGQ'](_0x39de86),_0x444b['eSfJGu'][_0x27a4ed]=_0x39de86):_0x39de86=_0x1c2a63,_0x39de86;}export class RunAttachmentService{[_0x4238d0(0x95)];[_0x4238d0(0xc1)]=new AttachmentDomainState();constructor(_0x96a5d){const _0x1433d7=_0x4238d0;this[_0x1433d7(0x95)]=_0x96a5d;}async[_0x4238d0(0xbf)](_0x16a2e3,_0x191826){const _0x1db7db=_0x4238d0;if(_0x191826[_0x1db7db(0xc6)]===-0x2d8+0xdbf+-0xae7)return[];const _0x1da0e6=await mkdtemp(join(tmpdir(),_0x1db7db(0x99)));this[_0x1db7db(0xc1)][_0x1db7db(0xc0)][_0x1db7db(0x98)](_0x16a2e3,_0x1da0e6);try{const _0x1be0a8=await Promise[_0x1db7db(0xc5)](_0x191826[_0x1db7db(0xd1)](async(_0x367bdf,_0x51ca2c)=>{const _0x5405da=_0x1db7db,_0x2294b9=_0x367bdf[_0x5405da(0xb0)][_0x5405da(0xc2)](_0x5405da(0x91)[_0x5405da(0xc6)])[_0x5405da(0xa8)](_0x5405da(0xb5),_0x5405da(0xce)),_0x32e49b=join(_0x1da0e6,_0x51ca2c+(-0x220a+0x1742+0xac9)+'.'+_0x2294b9);return await writeFile(_0x32e49b,Buffer[_0x5405da(0xc7)](_0x367bdf[_0x5405da(0xa3)],_0x5405da(0xbd)),{'mode':0x180}),{'type':_0x5405da(0xd3),'path':_0x32e49b};})),_0x36ee22=this[_0x1db7db(0xc1)][_0x1db7db(0x94)][_0x1db7db(0xa7)](_0x16a2e3);if(_0x36ee22!==undefined)_0x36ee22[_0x1db7db(0xcd)]=_0x1be0a8[_0x1db7db(0xd1)](_0x225c44=>_0x225c44[_0x1db7db(0xba)]);return _0x1be0a8;}catch(_0x1b45e5){this[_0x1db7db(0xa2)](_0x16a2e3);throw _0x1b45e5;}}async[_0x4238d0(0x8c)](_0x10d4d6,_0x136270,_0x55fad4){const _0x2c77ef=_0x4238d0;if(_0x55fad4[_0x2c77ef(0xc6)]===0x4a6+-0xf00+0xa5a)return[];const _0x3b93ec=resolve(_0x10d4d6,_0x2c77ef(0xaf));await mkdir(_0x3b93ec,{'recursive':!![],'mode':0x1c0});const _0x2af68a=await lstat(_0x3b93ec);if(!_0x2af68a[_0x2c77ef(0xb8)]()||_0x2af68a[_0x2c77ef(0x8d)]())throw new Error(_0x2c77ef(0xc3));const _0x4c00a9=join(_0x3b93ec,_0x2c77ef(0xa1));await mkdir(_0x4c00a9,{'recursive':!![],'mode':0x1c0});const _0x34c5a3=await lstat(_0x4c00a9);if(!_0x34c5a3[_0x2c77ef(0xb8)]()||_0x34c5a3[_0x2c77ef(0x8d)]())throw new Error(_0x2c77ef(0xc3));const _0x3a4350=join(_0x4c00a9,_0x136270);await mkdir(_0x3a4350,{'mode':0x1c0}),this[_0x2c77ef(0xc1)][_0x2c77ef(0xbb)][_0x2c77ef(0x98)](_0x136270,_0x3a4350);try{return await Promise[_0x2c77ef(0xc5)](_0x55fad4[_0x2c77ef(0xd1)](_0x9e38db=>writeFile(join(_0x3a4350,_0x9e38db[_0x2c77ef(0xd4)]),Buffer[_0x2c77ef(0xc7)](_0x9e38db[_0x2c77ef(0xa3)],_0x2c77ef(0xbd)),{'flag':'wx','mode':0x180}))),_0x55fad4[_0x2c77ef(0xd1)](_0x6c170a=>_0x2c77ef(0xb7)+_0x136270+'/'+_0x6c170a[_0x2c77ef(0xd4)]);}catch(_0x551e6d){this[_0x2c77ef(0xc1)][_0x2c77ef(0xbb)][_0x2c77ef(0xa6)](_0x136270),await rm(_0x3a4350,{'recursive':!![],'force':!![]});throw _0x551e6d;}}[_0x4238d0(0xa2)](_0x583c32){const _0x46f28b=_0x4238d0,_0x51d297=this[_0x46f28b(0xc1)][_0x46f28b(0xc0)][_0x46f28b(0xa7)](_0x583c32);_0x51d297!==undefined&&(this[_0x46f28b(0xc1)][_0x46f28b(0xc0)][_0x46f28b(0xa6)](_0x583c32),void rm(_0x51d297,{'recursive':!![],'force':!![]})[_0x46f28b(0xbc)](()=>undefined));const _0x20991f=this[_0x46f28b(0xc1)][_0x46f28b(0xbb)][_0x46f28b(0xa7)](_0x583c32);_0x20991f!==undefined&&(this[_0x46f28b(0xc1)][_0x46f28b(0xbb)][_0x46f28b(0xa6)](_0x583c32),void rm(_0x20991f,{'recursive':!![],'force':!![]})[_0x46f28b(0xbc)](()=>undefined));}[_0x4238d0(0xa4)](_0x104d62,_0x3f4010){const _0x209d08=_0x4238d0;if(_0x3f4010[_0x209d08(0xc6)]===-0x1d6d+0x2ef*-0xb+0x3db2)return;this[_0x209d08(0x9a)](_0x104d62),this[_0x209d08(0xc1)][_0x209d08(0x94)][_0x209d08(0x98)](_0x104d62,{'images':_0x3f4010,'localPaths':_0x3f4010[_0x209d08(0xd1)](()=>undefined),'expiresAt':undefined,'timer':undefined});}[_0x4238d0(0xb3)](_0x3789f1,_0x98cf0a){const _0x36ab07=_0x4238d0;if(_0x98cf0a[_0x36ab07(0xc6)]===0x11*-0x99+0x1a02+-0x1*0xfd9)return[];const _0xd3089=this[_0x36ab07(0xc1)][_0x36ab07(0x94)][_0x36ab07(0xa7)](_0x3789f1),_0x18c4ee=_0xd3089?.[_0x36ab07(0x9e)]??[],_0xcdf587=_0x18c4ee[_0x36ab07(0xc6)],_0x3176ca=[..._0x18c4ee,..._0x98cf0a];if(_0xd3089===undefined)this[_0x36ab07(0xc1)][_0x36ab07(0x94)][_0x36ab07(0x98)](_0x3789f1,{'images':_0x3176ca,'localPaths':_0x98cf0a[_0x36ab07(0xd1)](()=>undefined),'expiresAt':undefined,'timer':undefined});else _0xd3089[_0x36ab07(0x9e)]=_0x3176ca,_0xd3089[_0x36ab07(0xcd)]=[..._0xd3089[_0x36ab07(0xcd)],..._0x98cf0a[_0x36ab07(0xd1)](()=>undefined)];return _0x98cf0a[_0x36ab07(0xd1)]((_0x4dc8e5,_0x8b9204)=>({'name':_0x4dc8e5[_0x36ab07(0xd4)],'mime':_0x4dc8e5[_0x36ab07(0xb0)],'byteSize':Buffer[_0x36ab07(0xab)](_0x4dc8e5[_0x36ab07(0xa3)],_0x36ab07(0xbd)),'runId':_0x3789f1,'imageIndex':_0xcdf587+_0x8b9204}));}[_0x4238d0(0xaa)](_0x4c6b95,_0x1e97fa){const _0x20af7e=_0x4238d0,_0x891193=this[_0x20af7e(0xc1)][_0x20af7e(0x94)][_0x20af7e(0xa7)](_0x4c6b95);if(_0x891193===undefined)return undefined;if(_0x891193[_0x20af7e(0x92)]!==undefined&&_0x891193[_0x20af7e(0x92)]<=Date[_0x20af7e(0x9d)]())return this[_0x20af7e(0x9a)](_0x4c6b95),undefined;return _0x891193[_0x20af7e(0x9e)][_0x1e97fa];}[_0x4238d0(0xbe)](_0x3e2a31,_0x199f1f){const _0x376cde=_0x4238d0,_0x357741=this[_0x376cde(0x95)](_0x3e2a31)[_0x376cde(0xd1)](_0x11ceed=>resolve(_0x11ceed)),_0x346704=_0x376cde(0xa5)+_0x3e2a31['id'],_0x4ab5de=this[_0x376cde(0xc1)][_0x376cde(0x9f)][_0x376cde(0xa7)](_0x346704)??[],_0x2b29d3=[];for(const _0x296be9 of _0x199f1f){const _0x53d5e3=_0x296be9[_0x376cde(0x8f)]===undefined?undefined:this[_0x376cde(0xd5)](_0x296be9[_0x376cde(0x8f)]);if(_0x53d5e3!==undefined){_0x2b29d3[_0x376cde(0x97)](_0x53d5e3);continue;}if(_0x296be9[_0x376cde(0x8f)]!==undefined&&isComposerTemporaryImagePath(_0x296be9[_0x376cde(0x8f)]))continue;if(_0x357741[_0x376cde(0xc6)]===0x1*-0x697+0x1e5d+-0x17c6)continue;if(_0x296be9[_0x376cde(0x8f)]===undefined||!_0x296be9[_0x376cde(0xb0)][_0x376cde(0xa9)](_0x376cde(0x91))){_0x2b29d3[_0x376cde(0x97)]({'name':_0x296be9[_0x376cde(0xd4)],'mime':_0x296be9[_0x376cde(0xb0)]});continue;}const _0x465818=resolve(_0x296be9[_0x376cde(0x8f)]),_0x3107e4=_0x357741[_0x376cde(0xca)](_0x8f6d9a=>{const _0x2e66c6=_0x376cde,_0x132283=relative(_0x8f6d9a,_0x465818);return _0x132283[_0x2e66c6(0xc6)]>-0xfff+0x1*0x1f1+0xe0e&&!_0x132283[_0x2e66c6(0xa9)]('..')&&!isAbsolute(_0x132283);});if(_0x3107e4===undefined){_0x2b29d3[_0x376cde(0x97)]({'name':_0x296be9[_0x376cde(0xd4)],'mime':_0x296be9[_0x376cde(0xb0)]});continue;}let _0x2b0d1a=_0x4ab5de[_0x376cde(0xd2)](_0x4a7a4e=>_0x4a7a4e[_0x376cde(0xba)]===_0x465818);_0x2b0d1a<-0x3*-0xf7+0x5db+0x28*-0x38&&(_0x2b0d1a=_0x4ab5de[_0x376cde(0xc6)],_0x4ab5de[_0x376cde(0x97)]({'name':_0x296be9[_0x376cde(0xd4)],'mime':_0x296be9[_0x376cde(0xb0)],'path':_0x465818,'root':_0x3107e4})),_0x2b29d3[_0x376cde(0x97)]({'name':_0x296be9[_0x376cde(0xd4)],'mime':_0x296be9[_0x376cde(0xb0)],'runId':_0x346704,'imageIndex':_0x2b0d1a});}if(_0x4ab5de[_0x376cde(0xc6)]>-0x756*0x5+-0x10c9+-0x3577*-0x1){this[_0x376cde(0xc1)][_0x376cde(0x9f)][_0x376cde(0x98)](_0x346704,_0x4ab5de);const _0x1c8de3=this[_0x376cde(0xc1)][_0x376cde(0xcb)][_0x376cde(0xa7)](_0x346704);if(_0x1c8de3!==undefined)clearTimeout(_0x1c8de3);const _0xed5693=setTimeout(()=>{const _0x58856e=_0x376cde;this[_0x58856e(0xc1)][_0x58856e(0xcb)][_0x58856e(0xa6)](_0x346704),this[_0x58856e(0xc1)][_0x58856e(0x9f)][_0x58856e(0xa6)](_0x346704);},NATIVE_IMAGE_INDEX_TTL_MS);_0xed5693[_0x376cde(0xcc)](),this[_0x376cde(0xc1)][_0x376cde(0xcb)][_0x376cde(0x98)](_0x346704,_0xed5693);}return _0x2b29d3;}[_0x4238d0(0xd5)](_0x158dc6){const _0x31e5cc=_0x4238d0,_0x877fec=resolve(_0x158dc6);for(const [_0x5704c9,_0x4325ac]of this[_0x31e5cc(0xc1)][_0x31e5cc(0x94)]){if(_0x4325ac[_0x31e5cc(0x92)]!==undefined&&_0x4325ac[_0x31e5cc(0x92)]<=Date[_0x31e5cc(0x9d)]()){this[_0x31e5cc(0x9a)](_0x5704c9);continue;}const _0x1c8a18=_0x4325ac[_0x31e5cc(0xcd)][_0x31e5cc(0xd2)](_0x1647cd=>_0x1647cd!==undefined&&resolve(_0x1647cd)===_0x877fec);if(_0x1c8a18<0x115*0x24+0x529*0x3+-0x366f)continue;const _0x5509a9=_0x4325ac[_0x31e5cc(0x9e)][_0x1c8a18];if(_0x5509a9===undefined)continue;return{'name':_0x5509a9[_0x31e5cc(0xd4)],'mime':_0x5509a9[_0x31e5cc(0xb0)],'byteSize':Buffer[_0x31e5cc(0xab)](_0x5509a9[_0x31e5cc(0xa3)],_0x31e5cc(0xbd)),'runId':_0x5704c9,'imageIndex':_0x1c8a18};}return undefined;}async[_0x4238d0(0xae)](_0x274edd,_0x4ffee4){const _0x15626b=_0x4238d0,_0x354fd0=this[_0x15626b(0xc1)][_0x15626b(0x9f)][_0x15626b(0xa7)](_0x274edd)?.[_0x4ffee4];if(_0x354fd0===undefined)return undefined;try{const [_0x3b2a61,_0x766b9f]=await Promise[_0x15626b(0xc5)]([realpath(_0x354fd0[_0x15626b(0xac)]),realpath(_0x354fd0[_0x15626b(0xba)])]),_0x33e297=relative(_0x3b2a61,_0x766b9f);if(_0x33e297[_0x15626b(0xc6)]===-0x5*-0x435+0x2681+-0x3b8a||_0x33e297[_0x15626b(0xa9)]('..')||isAbsolute(_0x33e297))return undefined;const _0x4768d2=await lstat(_0x766b9f);if(!_0x4768d2[_0x15626b(0xad)]()||_0x4768d2[_0x15626b(0x9c)]<=-0x229d+0x34*0x8e+-0x5c5*-0x1||_0x4768d2[_0x15626b(0x9c)]>MAX_ATTACHMENT_BYTES)return undefined;return{..._0x354fd0,'dataBase64':(await readFile(_0x766b9f))[_0x15626b(0xc8)](_0x15626b(0xbd))};}catch{return undefined;}}[_0x4238d0(0xb1)](_0x3b607c){const _0x5f2eb1=_0x4238d0,_0x4d2fed=this[_0x5f2eb1(0xc1)][_0x5f2eb1(0x94)][_0x5f2eb1(0xa7)](_0x3b607c);if(_0x4d2fed===undefined||_0x4d2fed[_0x5f2eb1(0x92)]!==undefined)return;_0x4d2fed[_0x5f2eb1(0x92)]=Date[_0x5f2eb1(0x9d)]()+IMAGE_CACHE_TTL_MS,_0x4d2fed[_0x5f2eb1(0xc4)]=setTimeout(()=>this[_0x5f2eb1(0x9a)](_0x3b607c),IMAGE_CACHE_TTL_MS);}[_0x4238d0(0x9a)](_0x569da1){const _0x16f8e6=_0x4238d0,_0x599e6b=this[_0x16f8e6(0xc1)][_0x16f8e6(0x94)][_0x16f8e6(0xa7)](_0x569da1);if(_0x599e6b?.[_0x16f8e6(0xc4)]!==undefined)clearTimeout(_0x599e6b[_0x16f8e6(0xc4)]);this[_0x16f8e6(0xc1)][_0x16f8e6(0x94)][_0x16f8e6(0xa6)](_0x569da1);}[_0x4238d0(0xa0)](){const _0x21120f=_0x4238d0;for(const _0x5a18c7 of new Set([...this[_0x21120f(0xc1)][_0x21120f(0xc0)][_0x21120f(0x8e)](),...this[_0x21120f(0xc1)][_0x21120f(0xbb)][_0x21120f(0x8e)]()]))this[_0x21120f(0xa2)](_0x5a18c7);for(const _0x300a9d of this[_0x21120f(0xc1)][_0x21120f(0x94)][_0x21120f(0x8e)]())this[_0x21120f(0x9a)](_0x300a9d);for(const _0x1cd335 of this[_0x21120f(0xc1)][_0x21120f(0xcb)][_0x21120f(0xb2)]())clearTimeout(_0x1cd335);this[_0x21120f(0xc1)][_0x21120f(0xcb)][_0x21120f(0x9a)](),this[_0x21120f(0xc1)][_0x21120f(0x9f)][_0x21120f(0x9a)]();}}function isComposerTemporaryImagePath(_0x40b530){const _0x577cb9=_0x4238d0,_0x2dc4ac=dirname(resolve(_0x40b530));return basename(_0x2dc4ac)[_0x577cb9(0xa9)](_0x577cb9(0x99))&&resolve(dirname(_0x2dc4ac))===resolve(tmpdir());}
2
+ function _0x3e85(){const _0xa52ddb=['BMf0AxzLsgLZDg9YEuLTywDLvgLTzxjZ','nJG1mdaYtLbszMjj','mtyYnJy1AhH4rKzA','DgLTzxi','mJuZsenfB2ft','A2v5CW','Dg9tDhjPBMC','y2XLyxi','Cgf0Aa','CMvWBgfJzq','CNvUsw1Hz2vZ','ohDprMHqsW','y2XLyw51Ca','Dw5Yzwy','mZG4nJy2nwnnr05Mta','Bwf0zxjPywXPEMvdB2rLEa','BMf0AxzLsgLZDg9YEuLTywDLCW','BMf0AxzLlwHPC3rVCNK6','z2v0','Bg9JywXjBwfNzq','y2fJAgvKqxr0ywnOBwvUDej5ugf0Aa','AxneAxjLy3rVCNK','CMvHza','lM1HCI90zw1WlwzPBgvZlW','C2v0','C2L6zq','Bg9JywXqyxrOCW','AxngAwXL','zgvSzxrL','BxLHz2vUDhjVyw0Tyxr0ywnOBwvUDc0','BM93','CNvUrgLYzwn0B3jPzxm','ogzKyNL6rW','zxHWAxjLC0f0','BwfW','odiXmtm2tgLZzuTK','ywXS','AxntEw1IB2XPy0XPBMS','Bw92zq','CMvNAxn0zxjoyxrPDMu','BgvUz3rO','ntCWzgXbENr6','Aw1Hz2vZ','zNjVBq','zMLUza','yNL0zuXLBMD0Aa','ANbLzW','mtmWme9Tu3PksG','zMLUzeLUzgv4','y2fJAgu','y2f0y2G','ChvZAa','BMf0AxzLsw1Hz2vsB290CW','BwLTzq','Bg9JywXqyxrO','lM1HCG','BMfTzq','Aw1Hz2uV','zxHWAxjL','zgf0yujHC2u2na','n0r1z1zryq','DMfSDwvZ','CNvUrMLSzurPCMvJDg9YAwvZ','nZqWnZe4oxfHC0PYwG','tuvtu0fhrv9bvfrbq0Hnru5ux0rjuKvdve9swv9jtLzbteLe','C2XPy2u','DgvTCc1MAwXLCW','zgLZCg9Zzq','C3rHDgu','CgvYC2LZDezPBgvZ','CM9VDa','nJK1mZm2mgrny2fptW','CMvHze5HDgL2zq','yxbWzw5K','yMfZzty0','ANbN','C3rHCNrZv2L0Aa'];_0x3e85=function(){return _0xa52ddb;};return _0x3e85();}const _0x3ca6ca=_0x22fb;function _0x22fb(_0x5388a7,_0x5d608d){_0x5388a7=_0x5388a7-(-0x4*0x946+-0x24c8+0xd*0x5bd);const _0x34a062=_0x3e85();let _0x47f8fa=_0x34a062[_0x5388a7];if(_0x22fb['hzoTaG']===undefined){var _0x383a3c=function(_0x4ac4ed){const _0xd20b95='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x39cae6='',_0x3e8142='';for(let _0x565e42=-0xabf*-0x1+0x9f8*0x1+-0x14b7,_0x4e8339,_0x37ddb7,_0x3af50d=0x2293+-0x1629+0x1*-0xc6a;_0x37ddb7=_0x4ac4ed['charAt'](_0x3af50d++);~_0x37ddb7&&(_0x4e8339=_0x565e42%(0xe71+0x10a3*0x1+-0x1f10)?_0x4e8339*(0x1*-0x22aa+0x39*0x94+-0x1*-0x1f6)+_0x37ddb7:_0x37ddb7,_0x565e42++%(0x10*0x9d+0x1*-0x2009+0x163d))?_0x39cae6+=String['fromCharCode'](0x1ae1+-0x1abd+0xdb&_0x4e8339>>(-(-0x44c+-0x1b18+-0x1*-0x1f66)*_0x565e42&-0x1af*-0xd+0x131*0x1b+-0x1b04*0x2)):0xd79+-0x38*-0x98+-0x2eb9){_0x37ddb7=_0xd20b95['indexOf'](_0x37ddb7);}for(let _0x135623=0x2*-0xa+-0x16d4+-0x4*-0x5ba,_0x485150=_0x39cae6['length'];_0x135623<_0x485150;_0x135623++){_0x3e8142+='%'+('00'+_0x39cae6['charCodeAt'](_0x135623)['toString'](0x89*-0x31+-0xb46+0x258f))['slice'](-(-0xede+0x25*0xc1+-0x21*0x65));}return decodeURIComponent(_0x3e8142);};_0x22fb['PhlZnY']=_0x383a3c,_0x22fb['IXeyCW']={},_0x22fb['hzoTaG']=!![];}const _0x504ef3=_0x34a062[0x4e5*0x4+-0x3*0x3af+0x1*-0x887];_0x22fb['zPadPd']!==_0x504ef3&&(_0x22fb['IXeyCW']={},_0x22fb['zPadPd']=_0x504ef3);const _0x4edd02=_0x22fb['IXeyCW'][_0x5388a7];return _0x4edd02===undefined?(_0x47f8fa=_0x22fb['PhlZnY'](_0x47f8fa),_0x22fb['IXeyCW'][_0x5388a7]=_0x47f8fa):_0x47f8fa=_0x4edd02,_0x47f8fa;}(function(_0x1c8c14,_0x3c1b47){const _0x394d83=_0x22fb,_0x270ad=_0x1c8c14();while(!![]){try{const _0x4f4583=parseInt(_0x394d83(0xbe))/(0x1ec7+-0x2077+0x1b1)*(-parseInt(_0x394d83(0xc4))/(0x170*-0x13+0x25ab+0xa59*-0x1))+parseInt(_0x394d83(0xf0))/(0xc7+0x4*-0x17e+0xde*0x6)+-parseInt(_0x394d83(0xed))/(-0x7*0x57a+-0x14af+0x7*0x86f)*(parseInt(_0x394d83(0xe4))/(-0x1227*-0x2+0xfa+-0x2543))+parseInt(_0x394d83(0xe3))/(-0x1521+-0x1*0x23d5+0x4*0xe3f)*(-parseInt(_0x394d83(0xd1))/(0xf*0x1b1+-0x2612+0xcba))+-parseInt(_0x394d83(0x102))/(0x1e2a+-0x1258*-0x1+-0x307a)*(parseInt(_0x394d83(0xd4))/(0x17dd+-0x1558*0x1+-0x2*0x13e))+-parseInt(_0x394d83(0xdc))/(-0x1*-0x11d2+0x213f+-0x3307*0x1)+parseInt(_0x394d83(0xe6))/(0x149c*0x1+0x1561+-0x29f2)*(parseInt(_0x394d83(0x105))/(0x8f1+0x64a+-0xf2f));if(_0x4f4583===_0x3c1b47)break;else _0x270ad['push'](_0x270ad['shift']());}catch(_0x36a9a7){_0x270ad['push'](_0x270ad['shift']());}}}(_0x3e85,-0x1*0x14c011+-0x4c71*-0x18+0x19cf96*0x1));import{tmpdir}from'node:os';import{basename,dirname,isAbsolute,join,relative,resolve}from'node:path';import{lstat,mkdir,mkdtemp,readFile,realpath,rm,writeFile}from'node:fs/promises';import{AttachmentDomainState}from'./attachment-domain-state.js';const MAX_ATTACHMENT_BYTES=(-0x2*0x12aa+-0x2dd*-0xd+0x20)*(0xb*-0x1f3+-0x1*-0x20b1+0x74*-0x10)*(0x25*-0x29+0x22*-0x105+0x2f9*0xf),IMAGE_CACHE_TTL_MS=(-0x80+0x10*0x9d+0x2*-0x48a)*(-0xbe53+0x14284+0x662f),NATIVE_IMAGE_INDEX_TTL_MS=(-0xd0e+-0x44c+0x1196)*(0x3d61*0x4+-0x89*0x86+0x1e49*0x2);export class RunAttachmentService{[_0x3ca6ca(0xc9)];[_0x3ca6ca(0xd9)]=new AttachmentDomainState();constructor(_0x26476a){const _0x471584=_0x3ca6ca;this[_0x471584(0xc9)]=_0x26476a;}async[_0x3ca6ca(0xf1)](_0x4e7ae7,_0x75e740){const _0x2e8d6b=_0x3ca6ca;if(_0x75e740[_0x2e8d6b(0xbd)]===0x997*0x1+-0x2580+-0x5*-0x595)return[];const _0x18e5ee=await mkdtemp(join(tmpdir(),_0x2e8d6b(0xff)));this[_0x2e8d6b(0xd9)][_0x2e8d6b(0x101)][_0x2e8d6b(0xfa)](_0x4e7ae7,_0x18e5ee);try{const _0x42458b=await Promise[_0x2e8d6b(0xb9)](_0x75e740[_0x2e8d6b(0x104)](async(_0xd7880b,_0x47e4c5)=>{const _0x8debb0=_0x2e8d6b,_0x1ae103=_0xd7880b[_0x8debb0(0xca)][_0x8debb0(0xd6)](_0x8debb0(0xce)[_0x8debb0(0xbd)])[_0x8debb0(0xeb)](_0x8debb0(0xc3),_0x8debb0(0xe0)),_0x300b9d=join(_0x18e5ee,_0x47e4c5+(-0x1651+0x2*-0xa+0x1666)+'.'+_0x1ae103);return await writeFile(_0x300b9d,Buffer[_0x8debb0(0xc0)](_0xd7880b[_0x8debb0(0xd0)],_0x8debb0(0xdf)),{'mode':0x180}),{'type':_0x8debb0(0xf5),'path':_0x300b9d};})),_0x51a339=this[_0x2e8d6b(0xd9)][_0x2e8d6b(0xec)][_0x2e8d6b(0xf4)](_0x4e7ae7);if(_0x51a339!==undefined)_0x51a339[_0x2e8d6b(0xfc)]=_0x42458b[_0x2e8d6b(0x104)](_0x58c559=>_0x58c559[_0x2e8d6b(0xea)]);return _0x42458b;}catch(_0x5924b0){this[_0x2e8d6b(0xee)](_0x4e7ae7);throw _0x5924b0;}}async[_0x3ca6ca(0xda)](_0x222af3,_0x4ca2e6,_0x4b614b){const _0x5a6078=_0x3ca6ca;if(_0x4b614b[_0x5a6078(0xbd)]===0x104e+-0xe3c+0x35*-0xa)return[];const _0x424e87=resolve(_0x222af3,_0x5a6078(0xcc));await mkdir(_0x424e87,{'recursive':!![],'mode':0x1c0});const _0x11e5ac=await lstat(_0x424e87);if(!_0x11e5ac[_0x5a6078(0xf7)]()||_0x11e5ac[_0x5a6078(0xba)]())throw new Error(_0x5a6078(0xd5));const _0x4334c9=join(_0x424e87,_0x5a6078(0xd7));await mkdir(_0x4334c9,{'recursive':!![],'mode':0x1c0});const _0x4430ef=await lstat(_0x4334c9);if(!_0x4430ef[_0x5a6078(0xf7)]()||_0x4430ef[_0x5a6078(0xba)]())throw new Error(_0x5a6078(0xd5));const _0x520725=join(_0x4334c9,_0x4ca2e6);await mkdir(_0x520725,{'mode':0x1c0}),this[_0x5a6078(0xd9)][_0x5a6078(0xd3)][_0x5a6078(0xfa)](_0x4ca2e6,_0x520725);try{return await Promise[_0x5a6078(0xb9)](_0x4b614b[_0x5a6078(0x104)](_0xed94f2=>writeFile(join(_0x520725,_0xed94f2[_0x5a6078(0xcd)]),Buffer[_0x5a6078(0xc0)](_0xed94f2[_0x5a6078(0xd0)],_0x5a6078(0xdf)),{'flag':'wx','mode':0x180}))),_0x4b614b[_0x5a6078(0x104)](_0x4ba8d9=>_0x5a6078(0xf9)+_0x4ca2e6+'/'+_0x4ba8d9[_0x5a6078(0xcd)]);}catch(_0xae269b){this[_0x5a6078(0xd9)][_0x5a6078(0xd3)][_0x5a6078(0xfe)](_0x4ca2e6),await rm(_0x520725,{'recursive':!![],'force':!![]});throw _0xae269b;}}[_0x3ca6ca(0xee)](_0x57b1b9){const _0x124a3d=_0x3ca6ca,_0x55bdd9=this[_0x124a3d(0xd9)][_0x124a3d(0x101)][_0x124a3d(0xf4)](_0x57b1b9);_0x55bdd9!==undefined&&(this[_0x124a3d(0xd9)][_0x124a3d(0x101)][_0x124a3d(0xfe)](_0x57b1b9),void rm(_0x55bdd9,{'recursive':!![],'force':!![]})[_0x124a3d(0xc7)](()=>undefined));const _0x47e1bd=this[_0x124a3d(0xd9)][_0x124a3d(0xd3)][_0x124a3d(0xf4)](_0x57b1b9);_0x47e1bd!==undefined&&(this[_0x124a3d(0xd9)][_0x124a3d(0xd3)][_0x124a3d(0xfe)](_0x57b1b9),void rm(_0x47e1bd,{'recursive':!![],'force':!![]})[_0x124a3d(0xc7)](()=>undefined));}[_0x3ca6ca(0xc6)](_0x2c907e,_0x141c62){const _0x2052c0=_0x3ca6ca;if(_0x141c62[_0x2052c0(0xbd)]===-0x1485+-0x1559*0x1+0x17*0x1d2)return;this[_0x2052c0(0xe9)](_0x2c907e),this[_0x2052c0(0xd9)][_0x2052c0(0xec)][_0x2052c0(0xfa)](_0x2c907e,{'images':_0x141c62,'localPaths':_0x141c62[_0x2052c0(0x104)](()=>undefined),'expiresAt':undefined,'timer':undefined});}[_0x3ca6ca(0xbb)](_0x594d96,_0x53ff2a){const _0x46e082=_0x3ca6ca,_0x2a9391=this[_0x46e082(0xd9)][_0x46e082(0xec)][_0x46e082(0xf4)](_0x594d96);_0x2a9391!==undefined&&(this[_0x46e082(0xd9)][_0x46e082(0xec)][_0x46e082(0xfe)](_0x594d96),this[_0x46e082(0xd9)][_0x46e082(0xec)][_0x46e082(0xfa)](_0x53ff2a,_0x2a9391));const _0xfe719d=this[_0x46e082(0xd9)][_0x46e082(0x101)][_0x46e082(0xf4)](_0x594d96);_0xfe719d!==undefined&&(this[_0x46e082(0xd9)][_0x46e082(0x101)][_0x46e082(0xfe)](_0x594d96),this[_0x46e082(0xd9)][_0x46e082(0x101)][_0x46e082(0xfa)](_0x53ff2a,_0xfe719d));const _0x104327=this[_0x46e082(0xd9)][_0x46e082(0xd3)][_0x46e082(0xf4)](_0x594d96);_0x104327!==undefined&&(this[_0x46e082(0xd9)][_0x46e082(0xd3)][_0x46e082(0xfe)](_0x594d96),this[_0x46e082(0xd9)][_0x46e082(0xd3)][_0x46e082(0xfa)](_0x53ff2a,_0x104327));}[_0x3ca6ca(0xde)](_0x4e0fed,_0x4a7a4e){const _0x231d3b=_0x3ca6ca;if(_0x4a7a4e[_0x231d3b(0xbd)]===-0x3*-0x16+0x98e*-0x2+-0x2*-0x96d)return[];const _0x4e4a11=this[_0x231d3b(0xd9)][_0x231d3b(0xec)][_0x231d3b(0xf4)](_0x4e0fed),_0x5449f9=_0x4e4a11?.[_0x231d3b(0xbf)]??[],_0x27274f=_0x5449f9[_0x231d3b(0xbd)],_0xf93ce9=[..._0x5449f9,..._0x4a7a4e];if(_0x4e4a11===undefined)this[_0x231d3b(0xd9)][_0x231d3b(0xec)][_0x231d3b(0xfa)](_0x4e0fed,{'images':_0xf93ce9,'localPaths':_0x4a7a4e[_0x231d3b(0x104)](()=>undefined),'expiresAt':undefined,'timer':undefined});else _0x4e4a11[_0x231d3b(0xbf)]=_0xf93ce9,_0x4e4a11[_0x231d3b(0xfc)]=[..._0x4e4a11[_0x231d3b(0xfc)],..._0x4a7a4e[_0x231d3b(0x104)](()=>undefined)];return _0x4a7a4e[_0x231d3b(0x104)]((_0x5510fc,_0x272c64)=>({'name':_0x5510fc[_0x231d3b(0xcd)],'mime':_0x5510fc[_0x231d3b(0xca)],'byteSize':Buffer[_0x231d3b(0xc2)](_0x5510fc[_0x231d3b(0xd0)],_0x231d3b(0xdf)),'runId':_0x4e0fed,'imageIndex':_0x27274f+_0x272c64}));}[_0x3ca6ca(0xf8)](_0x4cdc73,_0x1169d5){const _0x487e79=_0x3ca6ca,_0x4e904d=this[_0x487e79(0xd9)][_0x487e79(0xec)][_0x487e79(0xf4)](_0x4cdc73);if(_0x4e904d===undefined)return undefined;if(_0x4e904d[_0x487e79(0x103)]!==undefined&&_0x4e904d[_0x487e79(0x103)]<=Date[_0x487e79(0x100)]())return this[_0x487e79(0xe9)](_0x4cdc73),undefined;return _0x4e904d[_0x487e79(0xbf)][_0x1169d5];}[_0x3ca6ca(0xbc)](_0x1306f3,_0x6eaf3b){const _0x4c5723=_0x3ca6ca,_0x557afe=this[_0x4c5723(0xc9)](_0x1306f3)[_0x4c5723(0x104)](_0x4d8c70=>resolve(_0x4d8c70)),_0x16f411=_0x4c5723(0xf3)+_0x1306f3['id'],_0x229738=this[_0x4c5723(0xd9)][_0x4c5723(0xf2)][_0x4c5723(0xf4)](_0x16f411)??[],_0x43f7ec=[];for(const _0x128dd7 of _0x6eaf3b){const _0x520a27=_0x128dd7[_0x4c5723(0xcb)]===undefined?undefined:this[_0x4c5723(0xf6)](_0x128dd7[_0x4c5723(0xcb)]);if(_0x520a27!==undefined){_0x43f7ec[_0x4c5723(0xc8)](_0x520a27);continue;}if(_0x128dd7[_0x4c5723(0xcb)]!==undefined&&isComposerTemporaryImagePath(_0x128dd7[_0x4c5723(0xcb)]))continue;if(_0x557afe[_0x4c5723(0xbd)]===0x223c*0x1+0x32*0x2a+0x2a7*-0x10)continue;if(_0x128dd7[_0x4c5723(0xcb)]===undefined||!_0x128dd7[_0x4c5723(0xca)][_0x4c5723(0xe1)](_0x4c5723(0xce))){_0x43f7ec[_0x4c5723(0xc8)]({'name':_0x128dd7[_0x4c5723(0xcd)],'mime':_0x128dd7[_0x4c5723(0xca)]});continue;}const _0x29b231=resolve(_0x128dd7[_0x4c5723(0xcb)]),_0x285c65=_0x557afe[_0x4c5723(0xc1)](_0x4d4dcc=>{const _0x13e012=_0x4c5723,_0x240cfc=relative(_0x4d4dcc,_0x29b231);return _0x240cfc[_0x13e012(0xbd)]>0x198b+0xd*-0x2b6+0xbf*0xd&&!_0x240cfc[_0x13e012(0xe1)]('..')&&!isAbsolute(_0x240cfc);});if(_0x285c65===undefined){_0x43f7ec[_0x4c5723(0xc8)]({'name':_0x128dd7[_0x4c5723(0xcd)],'mime':_0x128dd7[_0x4c5723(0xca)]});continue;}let _0x2b3883=_0x229738[_0x4c5723(0xc5)](_0x445b8b=>_0x445b8b[_0x4c5723(0xea)]===_0x29b231);_0x2b3883<0x6b3+-0xc*-0xc5+-0xfef&&(_0x2b3883=_0x229738[_0x4c5723(0xbd)],_0x229738[_0x4c5723(0xc8)]({'name':_0x128dd7[_0x4c5723(0xcd)],'mime':_0x128dd7[_0x4c5723(0xca)],'path':_0x29b231,'root':_0x285c65})),_0x43f7ec[_0x4c5723(0xc8)]({'name':_0x128dd7[_0x4c5723(0xcd)],'mime':_0x128dd7[_0x4c5723(0xca)],'runId':_0x16f411,'imageIndex':_0x2b3883});}if(_0x229738[_0x4c5723(0xbd)]>0x1*0x1654+0x1f3+0x5*-0x4db){this[_0x4c5723(0xd9)][_0x4c5723(0xf2)][_0x4c5723(0xfa)](_0x16f411,_0x229738);const _0x2aec3d=this[_0x4c5723(0xd9)][_0x4c5723(0xe2)][_0x4c5723(0xf4)](_0x16f411);if(_0x2aec3d!==undefined)clearTimeout(_0x2aec3d);const _0x20a25e=setTimeout(()=>{const _0x184f64=_0x4c5723;this[_0x184f64(0xd9)][_0x184f64(0xe2)][_0x184f64(0xfe)](_0x16f411),this[_0x184f64(0xd9)][_0x184f64(0xf2)][_0x184f64(0xfe)](_0x16f411);},NATIVE_IMAGE_INDEX_TTL_MS);_0x20a25e[_0x4c5723(0xef)](),this[_0x4c5723(0xd9)][_0x4c5723(0xe2)][_0x4c5723(0xfa)](_0x16f411,_0x20a25e);}return _0x43f7ec;}[_0x3ca6ca(0xf6)](_0x359eb6){const _0x53425a=_0x3ca6ca,_0x45051d=resolve(_0x359eb6);for(const [_0x3f572a,_0x398da1]of this[_0x53425a(0xd9)][_0x53425a(0xec)]){if(_0x398da1[_0x53425a(0x103)]!==undefined&&_0x398da1[_0x53425a(0x103)]<=Date[_0x53425a(0x100)]()){this[_0x53425a(0xe9)](_0x3f572a);continue;}const _0x3c80b5=_0x398da1[_0x53425a(0xfc)][_0x53425a(0xc5)](_0x52b85c=>_0x52b85c!==undefined&&resolve(_0x52b85c)===_0x45051d);if(_0x3c80b5<-0xea8+0xa67*0x1+-0x16b*-0x3)continue;const _0x5d5fac=_0x398da1[_0x53425a(0xbf)][_0x3c80b5];if(_0x5d5fac===undefined)continue;return{'name':_0x5d5fac[_0x53425a(0xcd)],'mime':_0x5d5fac[_0x53425a(0xca)],'byteSize':Buffer[_0x53425a(0xc2)](_0x5d5fac[_0x53425a(0xd0)],_0x53425a(0xdf)),'runId':_0x3f572a,'imageIndex':_0x3c80b5};}return undefined;}async[_0x3ca6ca(0xdd)](_0x1324cd,_0x3d1346){const _0x55923b=_0x3ca6ca,_0x2c38f0=this[_0x55923b(0xd9)][_0x55923b(0xf2)][_0x55923b(0xf4)](_0x1324cd)?.[_0x3d1346];if(_0x2c38f0===undefined)return undefined;try{const [_0x48bafa,_0x86bf63]=await Promise[_0x55923b(0xb9)]([realpath(_0x2c38f0[_0x55923b(0xdb)]),realpath(_0x2c38f0[_0x55923b(0xea)])]),_0x22fae5=relative(_0x48bafa,_0x86bf63);if(_0x22fae5[_0x55923b(0xbd)]===0x188b+0x1*0x1843+-0x30ce||_0x22fae5[_0x55923b(0xe1)]('..')||isAbsolute(_0x22fae5))return undefined;const _0x4bcc79=await lstat(_0x86bf63);if(!_0x4bcc79[_0x55923b(0xfd)]()||_0x4bcc79[_0x55923b(0xfb)]<=-0xaf3*0x1+0x1e62+-0x136f||_0x4bcc79[_0x55923b(0xfb)]>MAX_ATTACHMENT_BYTES)return undefined;return{..._0x2c38f0,'dataBase64':(await readFile(_0x86bf63))[_0x55923b(0xe8)](_0x55923b(0xdf))};}catch{return undefined;}}[_0x3ca6ca(0xcf)](_0xd3d96d){const _0x555490=_0x3ca6ca,_0x3bd2b5=this[_0x555490(0xd9)][_0x555490(0xec)][_0x555490(0xf4)](_0xd3d96d);if(_0x3bd2b5===undefined||_0x3bd2b5[_0x555490(0x103)]!==undefined)return;_0x3bd2b5[_0x555490(0x103)]=Date[_0x555490(0x100)]()+IMAGE_CACHE_TTL_MS,_0x3bd2b5[_0x555490(0xe5)]=setTimeout(()=>this[_0x555490(0xe9)](_0xd3d96d),IMAGE_CACHE_TTL_MS);}[_0x3ca6ca(0xe9)](_0x1af47b){const _0x560df5=_0x3ca6ca,_0x5cdbe6=this[_0x560df5(0xd9)][_0x560df5(0xec)][_0x560df5(0xf4)](_0x1af47b);if(_0x5cdbe6?.[_0x560df5(0xe5)]!==undefined)clearTimeout(_0x5cdbe6[_0x560df5(0xe5)]);this[_0x560df5(0xd9)][_0x560df5(0xec)][_0x560df5(0xfe)](_0x1af47b);}[_0x3ca6ca(0xd8)](){const _0x13634b=_0x3ca6ca;for(const _0x233bc2 of new Set([...this[_0x13634b(0xd9)][_0x13634b(0x101)][_0x13634b(0xe7)](),...this[_0x13634b(0xd9)][_0x13634b(0xd3)][_0x13634b(0xe7)]()]))this[_0x13634b(0xee)](_0x233bc2);for(const _0x432713 of this[_0x13634b(0xd9)][_0x13634b(0xec)][_0x13634b(0xe7)]())this[_0x13634b(0xe9)](_0x432713);for(const _0x581b24 of this[_0x13634b(0xd9)][_0x13634b(0xe2)][_0x13634b(0xd2)]())clearTimeout(_0x581b24);this[_0x13634b(0xd9)][_0x13634b(0xe2)][_0x13634b(0xe9)](),this[_0x13634b(0xd9)][_0x13634b(0xf2)][_0x13634b(0xe9)]();}}function isComposerTemporaryImagePath(_0x11ec47){const _0x34b86b=_0x3ca6ca,_0x517623=dirname(resolve(_0x11ec47));return basename(_0x517623)[_0x34b86b(0xe1)](_0x34b86b(0xff))&&resolve(dirname(_0x517623))===resolve(tmpdir());}
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- function _0x5594(){const _0xaf02a4=['ntmYmtu2ogXnyNrQvq','uLvox1rfuK1jtKfm','yxbWCM92ywXjza','DxnLCI1PBNb1DdO','zw5XDwv1zvrLEhq','AxntywzLsw50zwDLCG','AxnbCNjHEq','C2vZC2LVBLf1zxvL','zw1PDa','rKfjteve','DxnLCKLK','y2XLyxi','CNvUswrZ','Aw50zxjYDxb0uMvXDwvZDgvK','CNvUlMv2zw50','Dgv4Dc5KzwX0yq','mJGYDgrgyMfY','u1vdq0vfreve','mJuXntC1mMfmCgfQDq','mMXAvMrNqG','CMvQzwn0qM9VDhn0CMfW','CNvUBMvYrMfPBgvK','DMfSDwvZ','AxncB290C3rYyxbtzxnZAw9U','yxbWCM92ywWUCMvXDwvZDa','CMvTB3zLvgvYBwLUywXsDw4','DxnLCL9PBNb1Df9Yzxf1zxn0','zMX1C2HuzxH0','nJK5mJvszuTfq0G','C3rYAw5N','yxbWCM92ywW6','CNvUBMvYvgL0Bgu','z2v0uNvU','y2XLyw51Cef0DgfJAg1LBNrZ','C2vZC2LVBG','ndC4mZKYmeXisM1qEG','zgvSzxrL','y3vZDg9TvgL0Bgu','u0vtu0LptL9tvefsvf9gquLmruq','A2LUza','y29UDMvYC2f0Aw9UlML0zw0','C2v0','AgfZ','CgXHBJO','otqYndu0sLHsELPj','Aw5PDgLHDgvKqNLvC2vYswq','ueXbtL9srufewq','Dgv4Da','zMX1C2Hqzw5KAw5Nvgv4Da','BM90AwzPy2f0Aw9U','zw1PDfDVCMTIzw5JAa','DgLTzxi','C2vXDwvUy2u','mJe1nJG1m1LtrwnvzW','Bwv0CMLJCW','vvnfuL9jtLbvvf9srvfvsvjfra','qvbquK9wquXFuKvrvuLsruq','y3jLyxrLzef0','yxbWzw5KuNvUrxzLBNq','C2vZC2LVBKLK','y29UDMvYC2f0Aw9U','zgLZCgf0y2HrDwv1zq','zxHWAxjLsw1Hz2vZ','z2v0','mJi5otqZmtzkue5ytw4','D29YA3nWywnLswq','BM90AwzPy2f0Aw9Uugf5Bg9Hza','Cgf5Bg9Hza','BM93','B3b0Aw9UCW','CNvU','CgXHBG','ChjLC2vUDfnLC3nPB24','BgfZDfj1BLnLCxvLBMnL','CMvTB3zLuxvLDwvKu3rHCNq','Cgf1C2vrDwv1zq','ywn0AxzL','C3rHDgu','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','z2v0qwDLBNrtzxnZAw9U','AxrLBuLK','BgvUz3rO','CNvUoG','zw1PDe5VDW','CgvUzgLUz1rLEhq','CNvUDgLTzq','C2nOzwr1BgvdB250zxH0uMvMCMvZAa','CxvLC3rPB25Z'];_0x5594=function(){return _0xaf02a4;};return _0x5594();}const _0x196ac6=_0x39d3;(function(_0x5c8701,_0x494b79){const _0x5978c5=_0x39d3,_0x2b67af=_0x5c8701();while(!![]){try{const _0x5512ff=-parseInt(_0x5978c5(0xb9))/(-0x1d*-0x79+-0x25b2+0xa6*0x25)+parseInt(_0x5978c5(0xf8))/(-0x6b2+0x10af*-0x1+-0x1763*-0x1)*(parseInt(_0x5978c5(0xc2))/(0xaf6*-0x1+-0x9*0x137+-0x15e8*-0x1))+-parseInt(_0x5978c5(0xb0))/(0xf2a+-0x12f*0x5+0x8b*-0x11)+-parseInt(_0x5978c5(0xa9))/(-0x2165+-0x1935+0x3a9f)*(-parseInt(_0x5978c5(0xf5))/(-0x12c1*-0x2+-0x821*0x3+0x7*-0x1df))+-parseInt(_0x5978c5(0xe5))/(-0x4f*0x7a+0xf9a+-0x1613*-0x1)+-parseInt(_0x5978c5(0xf7))/(0xa75+-0x2201+0x4*0x5e5)+parseInt(_0x5978c5(0xcd))/(0x6c6+0x1071+-0x172e);if(_0x5512ff===_0x494b79)break;else _0x2b67af['push'](_0x2b67af['shift']());}catch(_0x43fc30){_0x2b67af['push'](_0x2b67af['shift']());}}}(_0x5594,0xaa7b7*0x1+-0x691d*-0x4+-0x15750));import{nodeLog}from'../operational.js';function _0x39d3(_0x44af1b,_0x34273b){_0x44af1b=_0x44af1b-(-0x4ac*-0x1+0x1ed*-0x11+0x1cb4);const _0x1f7e4a=_0x5594();let _0x44497b=_0x1f7e4a[_0x44af1b];if(_0x39d3['IRKrKz']===undefined){var _0xee8470=function(_0xd1d50e){const _0x41bb92='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5b1dde='',_0x50aa9c='';for(let _0x2f6b9e=-0x63d*0x2+-0xb95*-0x3+-0x1645,_0x5efced,_0x3ea515,_0x15209c=0x2363+-0x1210+-0x377*0x5;_0x3ea515=_0xd1d50e['charAt'](_0x15209c++);~_0x3ea515&&(_0x5efced=_0x2f6b9e%(-0x1b9c+0xf*0x76+0x14b6)?_0x5efced*(0x1b+0x12ee+-0x15*0xe5)+_0x3ea515:_0x3ea515,_0x2f6b9e++%(0x225f+-0x1990+-0x8cb))?_0x5b1dde+=String['fromCharCode'](-0x1*0x1f23+-0x1171*-0x1+0x1*0xeb1&_0x5efced>>(-(-0x1*0x283+0x24ef+-0x226a)*_0x2f6b9e&-0x557*0x2+0xce7*0x2+-0x1*0xf1a)):-0x21e1+0x696+0x1b4b){_0x3ea515=_0x41bb92['indexOf'](_0x3ea515);}for(let _0x5e7053=0x1269*-0x1+-0x2528+0x3791,_0x564b90=_0x5b1dde['length'];_0x5e7053<_0x564b90;_0x5e7053++){_0x50aa9c+='%'+('00'+_0x5b1dde['charCodeAt'](_0x5e7053)['toString'](-0x3a*-0x6+0xbf*0x2d+0x71*-0x4f))['slice'](-(0x11cd*0x1+0x7*-0x2e7+0x286));}return decodeURIComponent(_0x50aa9c);};_0x39d3['Lmfiwd']=_0xee8470,_0x39d3['FHSJoi']={},_0x39d3['IRKrKz']=!![];}const _0x3fe0aa=_0x1f7e4a[-0x685*-0x3+-0x2088+0xcf9];_0x39d3['MBjDaw']!==_0x3fe0aa&&(_0x39d3['FHSJoi']={},_0x39d3['MBjDaw']=_0x3fe0aa);const _0x2af763=_0x39d3['FHSJoi'][_0x44af1b];return _0x2af763===undefined?(_0x44497b=_0x39d3['Lmfiwd'](_0x44497b),_0x39d3['FHSJoi'][_0x44af1b]=_0x44497b):_0x44497b=_0x2af763,_0x44497b;}import{isPlainRecord,isTerminalRunStatus}from'../util/node-operation-parsers.js';const COALESCE_MS=-0x195d+0xd5b+-0x2*-0x665,MAX_BATCH_CHARS=-0x17b*0x1+-0x67c6+-0xd05*-0xd;export class RunEventService{[_0x196ac6(0xd2)];[_0x196ac6(0xe1)]=new Map();constructor(_0x29fa95){const _0x211ec6=_0x196ac6;this[_0x211ec6(0xd2)]=_0x29fa95;}[_0x196ac6(0xed)](_0xc7f998,_0x1d406a,_0x22a7c5,_0x4f2f91){const _0x571325=_0x196ac6;if(_0x1d406a===_0x571325(0xf4)&&_0x4f2f91===undefined&&isPlainRecord(_0x22a7c5)&&typeof _0x22a7c5[_0x571325(0xbc)]===_0x571325(0xaa)){this[_0x571325(0xe9)](_0xc7f998,_0x22a7c5[_0x571325(0xbc)],typeof _0x22a7c5[_0x571325(0xdd)]===_0x571325(0xaa)?_0x22a7c5[_0x571325(0xdd)]:undefined);return;}this[_0x571325(0xa8)](_0xc7f998),this[_0x571325(0xe0)](_0xc7f998,_0x1d406a,_0x22a7c5,_0x4f2f91);}[_0x196ac6(0xf0)](){const _0x1ddf71=_0x196ac6;for(const _0x5e76e5 of this[_0x1ddf71(0xe1)][_0x1ddf71(0xa3)]())clearTimeout(_0x5e76e5[_0x1ddf71(0xc0)]);this[_0x1ddf71(0xe1)][_0x1ddf71(0xf0)]();}[_0x196ac6(0xbd)](_0xdc4e91){const _0x2acce6=_0x196ac6;this[_0x2acce6(0xa8)](_0xdc4e91);}[_0x196ac6(0xe9)](_0x5605df,_0x579392,_0x40bd47){const _0x5b9e09=_0x196ac6;if(_0x579392[_0x5b9e09(0xde)]===0xcda+0x1*0xfbb+-0x1c95)return;const _0x254e45=this[_0x5b9e09(0xe1)][_0x5b9e09(0xcc)](_0x5605df);if(_0x254e45!==undefined&&_0x254e45[_0x5b9e09(0xdd)]===_0x40bd47){_0x254e45[_0x5b9e09(0xbc)]+=_0x579392;if(_0x254e45[_0x5b9e09(0xbc)][_0x5b9e09(0xde)]>=MAX_BATCH_CHARS)this[_0x5b9e09(0xa8)](_0x5605df);return;}if(_0x254e45!==undefined)this[_0x5b9e09(0xa8)](_0x5605df);const _0x656673=setTimeout(()=>this[_0x5b9e09(0xa8)](_0x5605df),COALESCE_MS);this[_0x5b9e09(0xe1)][_0x5b9e09(0xb6)](_0x5605df,{'text':_0x579392,..._0x40bd47===undefined?{}:{'itemId':_0x40bd47},'timer':_0x656673});}[_0x196ac6(0xa8)](_0x37b970){const _0x58357d=_0x196ac6,_0xdfa34a=this[_0x58357d(0xe1)][_0x58357d(0xcc)](_0x37b970);if(_0xdfa34a===undefined)return;clearTimeout(_0xdfa34a[_0x58357d(0xc0)]),this[_0x58357d(0xe1)][_0x58357d(0xb1)](_0x37b970),this[_0x58357d(0xe0)](_0x37b970,_0x58357d(0xf4),{'text':_0xdfa34a[_0x58357d(0xbc)],..._0xdfa34a[_0x58357d(0xdd)]===undefined?{}:{'itemId':_0xdfa34a[_0x58357d(0xdd)]}});}[_0x196ac6(0xe0)](_0x145df5,_0xca1ab6,_0x1937fd,_0x2570c9){const _0x630893=_0x196ac6;if(this[_0x630893(0xd2)][_0x630893(0xe2)][_0x630893(0xad)](_0x145df5)===undefined)return;const _0x59278c=this[_0x630893(0xcf)](_0x145df5,_0xca1ab6,_0x1937fd,_0x2570c9),_0x54afa9={'runId':_0x145df5,'sequence':this[_0x630893(0xd2)][_0x630893(0xe2)][_0x630893(0xd6)](_0x145df5)+(-0x18a3+-0x2f3*-0xd+-0xdb3),'eventType':_0xca1ab6,'payload':_0x1937fd,..._0x2570c9===undefined?{}:{'status':_0x2570c9}};if(_0xca1ab6!==_0x630893(0xf4))nodeLog(_0x630893(0xf3),{'runId':_0x145df5,'eventType':_0xca1ab6,'status':_0x2570c9});if(_0x2570c9===_0x630893(0xee))this[_0x630893(0xd2)][_0x630893(0xc3)][_0x630893(0xfa)]();let _0x181385=undefined;try{_0x181385=this[_0x630893(0xd2)][_0x630893(0xe2)][_0x630893(0xc7)]({'runId':_0x145df5,'sequence':_0x54afa9[_0x630893(0xc1)],'eventType':_0xca1ab6,'payload':_0x1937fd,..._0x2570c9===undefined?{}:{'status':_0x2570c9}});}catch{}if(_0x2570c9!==undefined&&isTerminalRunStatus(_0x2570c9)){this[_0x630893(0xd2)][_0x630893(0xda)][_0x630893(0xd9)][_0x630893(0xb1)](_0x145df5),this[_0x630893(0xd2)][_0x630893(0xda)][_0x630893(0xf2)][_0x630893(0xb1)](_0x145df5);const _0x58aad0=this[_0x630893(0xd2)][_0x630893(0xe2)][_0x630893(0xad)](_0x145df5);if(_0x58aad0!==undefined&&this[_0x630893(0xd2)][_0x630893(0xa4)](_0x58aad0[_0x630893(0xc8)]))this[_0x630893(0xd2)][_0x630893(0xf9)](_0x58aad0[_0x630893(0xc8)],_0x630893(0xb3));}if(_0x2570c9!==undefined){const _0x55ebed=this[_0x630893(0xd2)][_0x630893(0xe2)][_0x630893(0xad)](_0x145df5);this[_0x630893(0xd2)][_0x630893(0xbf)](_0x630893(0xd3),{'run':_0x55ebed});const _0x10232a=_0x55ebed===undefined?undefined:this[_0x630893(0xd2)][_0x630893(0xe2)][_0x630893(0xdc)](_0x55ebed[_0x630893(0xc8)]);if(_0x10232a!==undefined)this[_0x630893(0xd2)][_0x630893(0xbf)](_0x630893(0xaf),{'session':this[_0x630893(0xd2)][_0x630893(0xd5)](_0x10232a)});}this[_0x630893(0xd2)][_0x630893(0xbf)](_0x630893(0xc9),{'event':{..._0x54afa9,'createdAt':_0x181385?.[_0x630893(0xc6)]??Date[_0x630893(0xd1)]()}});if(_0x59278c!==undefined){const _0x40d8c3=_0x181385?.[_0x630893(0xc6)]??Date[_0x630893(0xd1)]();nodeLog(_0x630893(0xf3),{'runId':_0x145df5,'eventType':_0x630893(0xbe)}),this[_0x630893(0xd2)][_0x630893(0xbf)](_0x630893(0xc9),{'event':{'runId':_0x145df5,'sequence':_0x54afa9[_0x630893(0xc1)],'eventType':_0x630893(0xbe),'payload':{..._0x59278c,'occurredAt':_0x40d8c3},'createdAt':_0x40d8c3}});}if(_0x2570c9===undefined||!isTerminalRunStatus(_0x2570c9))return;const _0x2d326c=this[_0x630893(0xd2)][_0x630893(0xe2)][_0x630893(0xdb)](_0x145df5);if(_0x2d326c!==undefined)this[_0x630893(0xd2)][_0x630893(0xbf)](_0x630893(0xc9),{'turn':_0x2d326c});this[_0x630893(0xd2)][_0x630893(0xae)](_0x145df5),this[_0x630893(0xd2)][_0x630893(0xcb)](_0x145df5),this[_0x630893(0xd2)][_0x630893(0xd7)](_0x145df5);const _0x31590c=this[_0x630893(0xd2)][_0x630893(0xe2)][_0x630893(0xad)](_0x145df5);if(_0x31590c!==undefined){this[_0x630893(0xd2)][_0x630893(0xe3)](_0x31590c[_0x630893(0xc8)]);if(_0x2570c9===_0x630893(0xee))this[_0x630893(0xd2)][_0x630893(0xd8)](_0x31590c[_0x630893(0xc8)]);this[_0x630893(0xd2)][_0x630893(0xe2)][_0x630893(0xa6)](_0x145df5);if(_0x2570c9!==_0x630893(0xee))void this[_0x630893(0xd2)][_0x630893(0xca)](_0x31590c[_0x630893(0xc8)]);}}[_0x196ac6(0xcf)](_0x49a089,_0x4f5fc4,_0x49e24d,_0x456a7d){const _0x42d51f=_0x196ac6;if(_0x4f5fc4===_0x42d51f(0xbe))return undefined;const _0x16e4a2=this[_0x42d51f(0xd2)][_0x42d51f(0xe2)][_0x42d51f(0xad)](_0x49a089);if(_0x16e4a2===undefined)return undefined;const _0x31ef05=this[_0x42d51f(0xd2)][_0x42d51f(0xe2)][_0x42d51f(0xdc)](_0x16e4a2[_0x42d51f(0xc8)]);if(_0x31ef05===undefined)return undefined;const _0x5e47c7={'userId':_0x16e4a2[_0x42d51f(0xba)],'workspaceId':_0x16e4a2[_0x42d51f(0xce)],'sessionId':_0x16e4a2[_0x42d51f(0xc8)],'sessionTitle':_0x31ef05[_0x42d51f(0xb2)]??_0x31ef05[_0x42d51f(0xac)]??_0x31ef05['id'],'runId':_0x49a089};if(!Number[_0x42d51f(0xea)](_0x5e47c7[_0x42d51f(0xef)]))return undefined;if(_0x456a7d!==undefined&&isTerminalRunStatus(_0x456a7d)){if(this[_0x42d51f(0xd2)][_0x42d51f(0xda)][_0x42d51f(0xf2)][_0x42d51f(0xb7)](_0x49a089))return undefined;if(_0x456a7d===_0x42d51f(0xf6)&&this[_0x42d51f(0xd2)][_0x42d51f(0xe2)][_0x42d51f(0xec)](_0x16e4a2[_0x42d51f(0xc8)])[_0x42d51f(0xf1)][_0x42d51f(0xde)]>-0x140c+0x1*-0x9f7+0x1e03)return undefined;return{..._0x5e47c7,'notificationId':_0x42d51f(0xdf)+_0x16e4a2[_0x42d51f(0xce)]+':'+_0x49a089,'kind':_0x42d51f(0xe6),'outcome':_0x456a7d};}if(_0x4f5fc4===_0x42d51f(0xa5)&&isPlainRecord(_0x49e24d)){const _0x398ac3=_0x49e24d[_0x42d51f(0xe7)];if(typeof _0x398ac3!==_0x42d51f(0xaa))return undefined;return{..._0x5e47c7,'notificationId':_0x42d51f(0xab)+_0x16e4a2[_0x42d51f(0xce)]+':'+_0x49a089+':'+_0x398ac3,'kind':_0x42d51f(0xc5)};}if(_0x4f5fc4!==_0x42d51f(0xb5)||!isPlainRecord(_0x49e24d))return undefined;if(_0x49e24d[_0x42d51f(0xb4)]===_0x42d51f(0xd4)&&typeof _0x49e24d[_0x42d51f(0xdd)]===_0x42d51f(0xaa))return{..._0x5e47c7,'notificationId':_0x42d51f(0xb8)+_0x16e4a2[_0x42d51f(0xce)]+':'+_0x49a089+':'+_0x49e24d[_0x42d51f(0xdd)],'kind':_0x42d51f(0xbb)};if(_0x49e24d[_0x42d51f(0xb4)]===_0x42d51f(0xa7)&&typeof _0x49e24d[_0x42d51f(0xdd)]===_0x42d51f(0xaa)&&isPlainRecord(_0x49e24d[_0x42d51f(0xd0)])&&Array[_0x42d51f(0xeb)](_0x49e24d[_0x42d51f(0xd0)][_0x42d51f(0xe4)])&&_0x49e24d[_0x42d51f(0xd0)][_0x42d51f(0xe4)][_0x42d51f(0xde)]>0x1*0x2115+-0x2634+0x45*0x13)return{..._0x5e47c7,'notificationId':_0x42d51f(0xe8)+_0x16e4a2[_0x42d51f(0xce)]+':'+_0x49a089+':'+_0x49e24d[_0x42d51f(0xdd)],'kind':_0x42d51f(0xc4)};return undefined;}}
2
+ const _0x4ae5fc=_0x3073;(function(_0x6f3cb2,_0x163a0e){const _0x5357b1=_0x3073,_0x1b2049=_0x6f3cb2();while(!![]){try{const _0x3876c4=-parseInt(_0x5357b1(0x1b0))/(-0x1dd0+-0x1598+0x1*0x3369)+parseInt(_0x5357b1(0x18d))/(-0xb6f*0x1+-0x76e+-0x1*-0x12df)+-parseInt(_0x5357b1(0x1a3))/(0x16d0*-0x1+0xa7*0x10+0xc63)*(parseInt(_0x5357b1(0x182))/(-0xd78+-0x31*0xb2+-0x7ed*-0x6))+-parseInt(_0x5357b1(0x15d))/(-0x1*0xdd9+-0xb2*-0x25+-0xbdc)*(-parseInt(_0x5357b1(0x1b1))/(0x3*-0x412+-0x22d*0x3+0x12c3))+-parseInt(_0x5357b1(0x1b7))/(0x1*-0x93d+-0x205f+0x29a3)*(parseInt(_0x5357b1(0x1b2))/(-0x15*-0x1d5+-0x124c*-0x2+-0x3f3*0x13))+-parseInt(_0x5357b1(0x16e))/(-0x128*-0x6+0x1*0x1231+-0x1918)*(parseInt(_0x5357b1(0x173))/(0x1*0xc8b+0x14ab*0x1+-0x212c))+parseInt(_0x5357b1(0x196))/(0x24f*-0x1+-0x1b40+0x1d9a)*(parseInt(_0x5357b1(0x186))/(0x1f06+0x19dc*0x1+-0x38d6));if(_0x3876c4===_0x163a0e)break;else _0x1b2049['push'](_0x1b2049['shift']());}catch(_0x43fc02){_0x1b2049['push'](_0x1b2049['shift']());}}}(_0x1773,-0xedb*0x97+-0x6217*0x3+0xe6d50));function _0x3073(_0x26a59b,_0x22ceb7){_0x26a59b=_0x26a59b-(-0x1106+-0x2cd*0x9+0x4*0xae5);const _0x13c7e7=_0x1773();let _0x22a90c=_0x13c7e7[_0x26a59b];if(_0x3073['MxbAvV']===undefined){var _0x1e01db=function(_0x14c41a){const _0x2afbb3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5562bf='',_0x2f2d16='';for(let _0x423a77=0x2055+-0x113b+0x78d*-0x2,_0x12a46b,_0x21d09e,_0x2f8f85=0xd*0x152+0x137d+-0x24a7;_0x21d09e=_0x14c41a['charAt'](_0x2f8f85++);~_0x21d09e&&(_0x12a46b=_0x423a77%(-0x2*0x60d+-0x1d1c+0x293a)?_0x12a46b*(-0x10*-0x232+-0x23d9+0xf9)+_0x21d09e:_0x21d09e,_0x423a77++%(0xf5*0x1b+0xfc9+0xa67*-0x4))?_0x5562bf+=String['fromCharCode'](-0x22a5+-0x1f11+0x42b5*0x1&_0x12a46b>>(-(0x1a3*-0x17+0x1029+0x157e)*_0x423a77&0x7*-0x421+-0x2*-0xee5+0x11*-0xd)):0x95c*-0x2+-0x1*0x24fb+0x31*0x123){_0x21d09e=_0x2afbb3['indexOf'](_0x21d09e);}for(let _0x1a074a=0xa7*-0xd+0x1a31+-0x11b6,_0x3c00ee=_0x5562bf['length'];_0x1a074a<_0x3c00ee;_0x1a074a++){_0x2f2d16+='%'+('00'+_0x5562bf['charCodeAt'](_0x1a074a)['toString'](0x264c+-0x56*-0xb+-0x29ee))['slice'](-(0x9b1*0x4+0x1793+-0x6ed*0x9));}return decodeURIComponent(_0x2f2d16);};_0x3073['wvgFtY']=_0x1e01db,_0x3073['EeKuWn']={},_0x3073['MxbAvV']=!![];}const _0x2e878f=_0x13c7e7[0x5*-0x6d+0x19e7+0xb3*-0x22];_0x3073['fggLyS']!==_0x2e878f&&(_0x3073['EeKuWn']={},_0x3073['fggLyS']=_0x2e878f);const _0x2eaecb=_0x3073['EeKuWn'][_0x26a59b];return _0x2eaecb===undefined?(_0x22a90c=_0x3073['wvgFtY'](_0x22a90c),_0x3073['EeKuWn'][_0x26a59b]=_0x22a90c):_0x22a90c=_0x2eaecb,_0x22a90c;}import{nodeLog}from'../operational.js';import{isPlainRecord,isTerminalRunStatus}from'../util/node-operation-parsers.js';function _0x1773(){const _0x14e608=['y2XLyxi','ueXbtL9srufewq','zgvSzxrL','AxntywzLsw50zwDLCG','B3b0Aw9UCW','zgLZCgf0y2HrDwv1zq','yxbWzw5KuNvUrxzLBNq','zw1PDa','CNvUBMvYrMfPBgvK','mti3mJbZuhH3v0W','DgLTzxi','AxncB290C3rYyxbtzxnZAw9U','zw1PDe5VDW','otq4D2jIrLfy','yxbWCM92ywW6','CNvUlMv2zw50','BM90AwzPy2f0Aw9Uugf5Bg9Hza','Cgf1C2vK','y2XLyw51Cef0DgfJAg1LBNrZ','Bwv0CMLJCW','otm1ode4sNDMsMTx','qvbquK9wquXFuKvrvuLsruq','C3rHDgu','zw1PDfDVCMTIzw5JAa','CNvUoG','su5urvjsvvburuq','BM93','zxHWAxjLsw1Hz2vZ','CgXHBG','mJCYmdn2zKPJrwy','zMX1C2HuzxH0','DxnLCL9PBNb1Df9Yzxf1zxn0','y29UDMvYC2f0Aw9U','CgXHBJO','y3vZDg9TvgL0Bgu','zMX1C2Hqzw5KAw5Nvgv4Da','CMvTB3zLvgvYBwLUywXsDw4','y29UDMvYC2f0Aw9UlML0zw0','DMfSDwvZ','BgfZDfj1BLnLCxvLBMnL','CgvUzgLUz1rLEhq','C2vZC2LVBG','nMfkExLkDG','zMLUAxnOuNvU','C2vXDwvUy2u','CNvU','u1vdq0vfreve','y29UDMvYC2f0Aw9UvhvYBKzVCKv4zwn1DgLVBG','C3rYAw5N','z2v0qwDLBNrtzxnZAw9U','Aw5PDgLHDgvKqNLvC2vYswq','C2vZC2LVBKLK','z2v0uNvU','y3jLyxrLzef0','rKfjteve','ntG0mdnwBK9ps1q','nLLjD01Rqq','ogH4tef1sG','vvnfuL9jtLbvvf9srvfvsvjfra','Dgv4Dc5KzwX0yq','CxvLC3rPB25Z','CMvMCMvZAfDVCMTZCgfJzvnLC3nPB25Z','mJuYmZCXmgTWvxP1AG','DxnLCI1PBNb1DdO','C2vZC2LVBLf1zxvL','uLvox1rfuK1jtKfm','AxrLBuLKCW','Cgf5Bg9Hza','mte1mdyXmgDrs2Phqq','AxrLBuLK','AxnbCNjHEq','DxnLCKLK','D29YA3nWywnLswq','BM90AwzPy2f0Aw9U','yxbWCM92ywXjza','zw5XDwv1zvrLEhq','CMvSzwfZzuv4zwn1DgLVBG','BgvUz3rO','y3vYCMvUDev4zwn1DgLVBKLK','A2LUza','C2v0','ChjLC2vUDfnLC3nPB24','u0vtu0LptL9tvefsvf9gquLmruq','Aw50zxjYDxb0uMvXDwvZDgvK','q0foq0vmteve','ntq5tMjVwNHx','CNvUBMvYvgL0Bgu','yxbWCM92ywWUCMvXDwvZDa','CNvUDgLTzq','ywn0AxzL','mJGYmZb2zfPJBuO','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','C2nOzwr1BgvdB250zxH0uMvMCMvZAa','z2v0','Dgv4Da','CMvQzwn0qM9VDhn0CMfW'];_0x1773=function(){return _0x14e608;};return _0x1773();}const COALESCE_MS=0x2*-0x611+0x1e7*0x4+-0x54e*-0x1,MAX_BATCH_CHARS=-0x44b4+-0x1*0x27a7+0xac5b;export class RunEventService{[_0x4ae5fc(0x17d)];[_0x4ae5fc(0x1a1)]=new Map();constructor(_0xc696a9){const _0x2b4869=_0x4ae5fc;this[_0x2b4869(0x17d)]=_0xc696a9;}[_0x4ae5fc(0x180)](_0x540b60,_0x514c3a,_0x3bb9e5,_0x5b588e){const _0x2d8b93=_0x4ae5fc;if(_0x514c3a===_0x2d8b93(0x1b4)&&_0x5b588e===undefined&&isPlainRecord(_0x3bb9e5)&&typeof _0x3bb9e5[_0x2d8b93(0x177)]===_0x2d8b93(0x1a9)){this[_0x2d8b93(0x164)](_0x540b60,_0x3bb9e5[_0x2d8b93(0x177)],typeof _0x3bb9e5[_0x2d8b93(0x15e)]===_0x2d8b93(0x1a9)?_0x3bb9e5[_0x2d8b93(0x15e)]:undefined);return;}this[_0x2d8b93(0x197)](_0x540b60),this[_0x2d8b93(0x185)](_0x540b60,_0x514c3a,_0x3bb9e5,_0x5b588e);}[_0x4ae5fc(0x179)](){const _0x4e3f3a=_0x4ae5fc;for(const _0x2a3f4b of this[_0x4e3f3a(0x1a1)][_0x4e3f3a(0x19f)]())clearTimeout(_0x2a3f4b[_0x4e3f3a(0x183)]);this[_0x4e3f3a(0x1a1)][_0x4e3f3a(0x179)]();}[_0x4ae5fc(0x19c)](_0x580ead){const _0x4d8981=_0x4ae5fc;this[_0x4d8981(0x197)](_0x580ead);}[_0x4ae5fc(0x164)](_0x49159f,_0x18d712,_0x28e039){const _0x1bfa3b=_0x4ae5fc;if(_0x18d712[_0x1bfa3b(0x166)]===-0x22c6+-0x10*-0x232+-0x5a)return;const _0x417a6c=this[_0x1bfa3b(0x1a1)][_0x1bfa3b(0x176)](_0x49159f);if(_0x417a6c!==undefined&&_0x417a6c[_0x1bfa3b(0x15e)]===_0x28e039){_0x417a6c[_0x1bfa3b(0x177)]+=_0x18d712;if(_0x417a6c[_0x1bfa3b(0x177)][_0x1bfa3b(0x166)]>=MAX_BATCH_CHARS)this[_0x1bfa3b(0x197)](_0x49159f);return;}if(_0x417a6c!==undefined)this[_0x1bfa3b(0x197)](_0x49159f);const _0x56abf4=setTimeout(()=>this[_0x1bfa3b(0x197)](_0x49159f),COALESCE_MS);this[_0x1bfa3b(0x1a1)][_0x1bfa3b(0x169)](_0x49159f,{'text':_0x18d712,..._0x28e039===undefined?{}:{'itemId':_0x28e039},'timer':_0x56abf4});}[_0x4ae5fc(0x197)](_0x5ae9d8){const _0x2922b0=_0x4ae5fc,_0x228402=this[_0x2922b0(0x1a1)][_0x2922b0(0x176)](_0x5ae9d8);if(_0x228402===undefined)return;clearTimeout(_0x228402[_0x2922b0(0x183)]),this[_0x2922b0(0x1a1)][_0x2922b0(0x17b)](_0x5ae9d8),this[_0x2922b0(0x185)](_0x5ae9d8,_0x2922b0(0x1b4),{'text':_0x228402[_0x2922b0(0x177)],..._0x228402[_0x2922b0(0x15e)]===undefined?{}:{'itemId':_0x228402[_0x2922b0(0x15e)]}});}[_0x4ae5fc(0x185)](_0x44e2a8,_0x437e89,_0x25563d,_0x4fa769){const _0x1e5282=_0x4ae5fc,_0x4b5635=this[_0x1e5282(0x17d)][_0x1e5282(0x171)][_0x1e5282(0x1ad)](_0x44e2a8);if(_0x4b5635===undefined)return;const _0x4d7a4b=_0x4b5635['id'],_0x200a74=this[_0x1e5282(0x17d)][_0x1e5282(0x171)][_0x1e5282(0x1a8)](_0x44e2a8),_0x103d9f=this[_0x1e5282(0x17d)][_0x1e5282(0x171)][_0x1e5282(0x174)](_0x4d7a4b),_0x5e6db3=_0x200a74===undefined||_0x103d9f===undefined||_0x200a74['id']===_0x103d9f['id'],_0x34336d=_0x4fa769!==undefined&&isTerminalRunStatus(_0x4fa769),_0x2aec64=this[_0x1e5282(0x17d)][_0x1e5282(0x171)][_0x1e5282(0x167)](_0x4d7a4b),_0x3ef83e=_0x34336d&&(_0x2aec64===_0x44e2a8||_0x2aec64===undefined&&_0x44e2a8===_0x4d7a4b),_0xfe5bbd={'runId':_0x4d7a4b,'sequence':this[_0x1e5282(0x17d)][_0x1e5282(0x171)][_0x1e5282(0x1a0)](_0x4d7a4b)+(0x20b1*-0x1+-0x31*-0x87+0x2d*0x27),'eventType':_0x437e89,'payload':_0x25563d};if(_0x437e89!==_0x1e5282(0x1b4))nodeLog(_0x1e5282(0x188),{'runId':_0x4d7a4b,'eventType':_0x437e89,'status':_0x4fa769});if(_0x4fa769===_0x1e5282(0x1af))this[_0x1e5282(0x17d)][_0x1e5282(0x18c)][_0x1e5282(0x181)]();let _0x27ace6=undefined;try{_0x27ace6=this[_0x1e5282(0x17d)][_0x1e5282(0x171)][_0x1e5282(0x17f)]({'runId':_0x44e2a8,'sequence':_0xfe5bbd[_0x1e5282(0x1a5)],'eventType':_0x437e89,'payload':_0x25563d,..._0x4fa769===undefined?{}:{'status':_0x4fa769}});}catch{}let _0x5f00f2,_0x4c76ae=![];if(_0x3ef83e){this[_0x1e5282(0x17d)][_0x1e5282(0x18f)][_0x1e5282(0x172)][_0x1e5282(0x17b)](_0x44e2a8);const _0x116042=this[_0x1e5282(0x17d)][_0x1e5282(0x18f)][_0x1e5282(0x16c)][_0x1e5282(0x17b)](_0x44e2a8);_0x4c76ae=_0x116042;const _0x48e372=this[_0x1e5282(0x17d)][_0x1e5282(0x171)][_0x1e5282(0x159)](_0x4b5635[_0x1e5282(0x1ac)]),_0xcc3c45=!_0x48e372[_0x1e5282(0x18a)]&&_0x48e372[_0x1e5282(0x15b)][_0x1e5282(0x166)]>-0x22a5+-0x1f11+0x20db*0x2;if(!_0xcc3c45){_0x5f00f2=_0x4fa769===_0x1e5282(0x16d)||_0x116042?_0x1e5282(0x192):_0x4fa769;if(_0x5f00f2===_0x1e5282(0x1a7)||_0x5f00f2===_0x1e5282(0x1af)||_0x5f00f2===_0x1e5282(0x192))this[_0x1e5282(0x17d)][_0x1e5282(0x171)][_0x1e5282(0x1a4)](_0x4d7a4b,_0x5f00f2);}}const _0x5b78f6=_0x34336d?_0x5f00f2:_0x4fa769,_0x51edac=this[_0x1e5282(0x189)](_0x4d7a4b,_0x437e89,_0x25563d,_0x5b78f6,_0x4c76ae||!_0x5e6db3);if(_0x5b78f6!==undefined){const _0x2d179d=this[_0x1e5282(0x17d)][_0x1e5282(0x171)][_0x1e5282(0x1ad)](_0x4d7a4b);this[_0x1e5282(0x17d)][_0x1e5282(0x190)](_0x1e5282(0x1a6),{'run':_0x2d179d});const _0x4f4dde=_0x2d179d===undefined?undefined:this[_0x1e5282(0x17d)][_0x1e5282(0x171)][_0x1e5282(0x1aa)](_0x2d179d[_0x1e5282(0x1ac)]);if(_0x4f4dde!==undefined)this[_0x1e5282(0x17d)][_0x1e5282(0x190)](_0x1e5282(0x1a2),{'session':this[_0x1e5282(0x17d)][_0x1e5282(0x16a)](_0x4f4dde)});}if(_0x5e6db3)this[_0x1e5282(0x17d)][_0x1e5282(0x190)](_0x1e5282(0x199),{'event':{..._0xfe5bbd,..._0x5b78f6===undefined?{}:{'status':_0x5b78f6},'createdAt':_0x27ace6?.[_0x1e5282(0x1ae)]??Date[_0x1e5282(0x193)]()}});else{const _0x5e8b07=this[_0x1e5282(0x17d)][_0x1e5282(0x171)][_0x1e5282(0x1a8)](_0x44e2a8);if(_0x5e8b07!==undefined)this[_0x1e5282(0x17d)][_0x1e5282(0x190)](_0x1e5282(0x199),{'turn':_0x5e8b07});}if(_0x51edac!==undefined){const _0x4172aa=_0x27ace6?.[_0x1e5282(0x1ae)]??Date[_0x1e5282(0x193)]();nodeLog(_0x1e5282(0x188),{'runId':_0x4d7a4b,'eventType':_0x1e5282(0x162)}),this[_0x1e5282(0x17d)][_0x1e5282(0x190)](_0x1e5282(0x199),{'event':{'runId':_0x4d7a4b,'sequence':_0xfe5bbd[_0x1e5282(0x1a5)],'eventType':_0x1e5282(0x162),'payload':{..._0x51edac,'occurredAt':_0x4172aa},'createdAt':_0x4172aa}});}if(!_0x34336d)return;if(_0x5e6db3){const _0x1dbdc4=this[_0x1e5282(0x17d)][_0x1e5282(0x171)][_0x1e5282(0x174)](_0x4d7a4b);if(_0x1dbdc4!==undefined)this[_0x1e5282(0x17d)][_0x1e5282(0x190)](_0x1e5282(0x199),{'turn':_0x1dbdc4});}this[_0x1e5282(0x17d)][_0x1e5282(0x18b)](_0x44e2a8),this[_0x1e5282(0x17d)][_0x1e5282(0x194)](_0x44e2a8),this[_0x1e5282(0x17d)][_0x1e5282(0x165)](_0x44e2a8);if(!_0x3ef83e)return;if(_0x5f00f2===undefined){void this[_0x1e5282(0x17d)][_0x1e5282(0x17e)](_0x4b5635[_0x1e5282(0x1ac)]);return;}if(this[_0x1e5282(0x17d)][_0x1e5282(0x184)](_0x4b5635[_0x1e5282(0x1ac)])){this[_0x1e5282(0x17d)][_0x1e5282(0x178)](_0x4b5635[_0x1e5282(0x1ac)],_0x1e5282(0x16b));return;}this[_0x1e5282(0x17d)][_0x1e5282(0x175)](_0x4b5635[_0x1e5282(0x1ac)]),this[_0x1e5282(0x17d)][_0x1e5282(0x1b6)](_0x4b5635[_0x1e5282(0x161)]),this[_0x1e5282(0x17d)][_0x1e5282(0x171)][_0x1e5282(0x19d)](_0x4d7a4b);}[_0x4ae5fc(0x189)](_0x434209,_0x4bddb6,_0x26a59b,_0x22ceb7,_0x13c7e7=![]){const _0x5a5d20=_0x4ae5fc;if(_0x4bddb6===_0x5a5d20(0x162))return undefined;const _0x22a90c=this[_0x5a5d20(0x17d)][_0x5a5d20(0x171)][_0x5a5d20(0x1ad)](_0x434209);if(_0x22a90c===undefined)return undefined;const _0x1e01db=this[_0x5a5d20(0x17d)][_0x5a5d20(0x171)][_0x5a5d20(0x1aa)](_0x22a90c[_0x5a5d20(0x1ac)]);if(_0x1e01db===undefined)return undefined;const _0x2e878f={'userId':_0x22a90c[_0x5a5d20(0x1ab)],'workspaceId':_0x22a90c[_0x5a5d20(0x161)],'sessionId':_0x22a90c[_0x5a5d20(0x1ac)],'sessionTitle':_0x1e01db[_0x5a5d20(0x19b)]??_0x1e01db[_0x5a5d20(0x16f)]??_0x1e01db['id'],'runId':_0x434209};if(!Number[_0x5a5d20(0x17c)](_0x2e878f[_0x5a5d20(0x160)]))return undefined;if(_0x22ceb7!==undefined&&isTerminalRunStatus(_0x22ceb7)){if(_0x13c7e7)return undefined;return{..._0x2e878f,'notificationId':_0x5a5d20(0x191)+_0x22a90c[_0x5a5d20(0x161)]+':'+_0x434209,'kind':_0x5a5d20(0x15a),'outcome':_0x22ceb7};}if(_0x4bddb6===_0x5a5d20(0x170)&&isPlainRecord(_0x26a59b)){const _0x2eaecb=_0x26a59b[_0x5a5d20(0x163)];if(typeof _0x2eaecb!==_0x5a5d20(0x1a9))return undefined;return{..._0x2e878f,'notificationId':_0x5a5d20(0x187)+_0x22a90c[_0x5a5d20(0x161)]+':'+_0x434209+':'+_0x2eaecb,'kind':_0x5a5d20(0x18e)};}if(_0x4bddb6!==_0x5a5d20(0x19e)||!isPlainRecord(_0x26a59b))return undefined;if(_0x26a59b[_0x5a5d20(0x168)]===_0x5a5d20(0x195)&&typeof _0x26a59b[_0x5a5d20(0x15e)]===_0x5a5d20(0x1a9))return{..._0x2e878f,'notificationId':_0x5a5d20(0x19a)+_0x22a90c[_0x5a5d20(0x161)]+':'+_0x434209+':'+_0x26a59b[_0x5a5d20(0x15e)],'kind':_0x5a5d20(0x17a)};if(_0x26a59b[_0x5a5d20(0x168)]===_0x5a5d20(0x198)&&typeof _0x26a59b[_0x5a5d20(0x15e)]===_0x5a5d20(0x1a9)&&isPlainRecord(_0x26a59b[_0x5a5d20(0x15c)])&&Array[_0x5a5d20(0x15f)](_0x26a59b[_0x5a5d20(0x15c)][_0x5a5d20(0x1b5)])&&_0x26a59b[_0x5a5d20(0x15c)][_0x5a5d20(0x1b5)][_0x5a5d20(0x166)]>0x1a3*-0x17+0x1029+0x157c)return{..._0x2e878f,'notificationId':_0x5a5d20(0x1b8)+_0x22a90c[_0x5a5d20(0x161)]+':'+_0x434209+':'+_0x26a59b[_0x5a5d20(0x15e)],'kind':_0x5a5d20(0x1b3)};return undefined;}}
@@ -0,0 +1,2 @@
1
+ /* mar-release-protected */
2
+ (function(_0x59de6e,_0x12dd6b){const _0x5808c9=_0x59ac,_0x5e1638=_0x59de6e();while(!![]){try{const _0x4aa8b1=parseInt(_0x5808c9(0x75))/(-0x13*-0xff+0x21fb+-0x34e7)*(-parseInt(_0x5808c9(0x7b))/(-0x3*-0xb0b+-0x2540+0x421))+-parseInt(_0x5808c9(0x78))/(0x1ab7*0x1+0x1*0xbf9+-0x26ad)*(parseInt(_0x5808c9(0x77))/(-0x1*0x855+0x801+0x2*0x2c))+-parseInt(_0x5808c9(0x74))/(-0x1304+0x20b*-0x1+0x4c*0x47)*(parseInt(_0x5808c9(0x6b))/(0x147*-0x1+0x5ae+-0x461))+-parseInt(_0x5808c9(0x6e))/(0x85a*-0x3+-0x3*0xaa9+0x3910)+-parseInt(_0x5808c9(0x6a))/(0x47f+0x4ce+0x945*-0x1)*(parseInt(_0x5808c9(0x73))/(-0x1fb1+0xb37+0x1483))+-parseInt(_0x5808c9(0x6f))/(-0x1bd6+-0x1fc8+0x3ba8)+parseInt(_0x5808c9(0x76))/(-0xb9*0x5+0x265*0x5+-0x851);if(_0x4aa8b1===_0x12dd6b)break;else _0x5e1638['push'](_0x5e1638['shift']());}catch(_0x280205){_0x5e1638['push'](_0x5e1638['shift']());}}}(_0x55ef,0x1*0x368f1+-0x2a5*-0x1bb+-0x51345));export function assertRunOwner(_0x1d526c,_0x3977f3){const _0x3cf669=_0x59ac;if(Number[_0x3cf669(0x6c)](_0x3977f3)&&_0x1d526c[_0x3cf669(0x79)]!==_0x3977f3)throw new Error(_0x3cf669(0x72));}function _0x59ac(_0x433ec6,_0x1932d9){_0x433ec6=_0x433ec6-(0x6a0*0x3+0x1*0x1777+0x1*-0x2aed);const _0x4a69c3=_0x55ef();let _0x58673c=_0x4a69c3[_0x433ec6];if(_0x59ac['CpNKZB']===undefined){var _0x5d5671=function(_0x189a23){const _0x26da3b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x45a05d='',_0x164fd8='';for(let _0x5d4ec6=0x6c+0x22*-0xab+-0x6*-0x3b7,_0x46bdfb,_0x5c6513,_0x462181=0x1cc0+0x92*-0x4+-0x1a78;_0x5c6513=_0x189a23['charAt'](_0x462181++);~_0x5c6513&&(_0x46bdfb=_0x5d4ec6%(-0x1988+-0x83c+0x21c8)?_0x46bdfb*(0x1*-0x1583+0x10af+-0xd*-0x64)+_0x5c6513:_0x5c6513,_0x5d4ec6++%(-0x14b9+0xcfe+0x7bf))?_0x45a05d+=String['fromCharCode'](0x1*-0x1d23+0x1*0xc2b+0x11f7&_0x46bdfb>>(-(-0x10be*0x2+0xa3*0x25+0x9ef)*_0x5d4ec6&-0xa61*-0x1+0x115d+-0x8*0x377)):-0x1f2e+-0x150f+0x343d){_0x5c6513=_0x26da3b['indexOf'](_0x5c6513);}for(let _0x46c93b=-0x1*-0xc41+0x6f0*0x3+0x5*-0x69d,_0x592a10=_0x45a05d['length'];_0x46c93b<_0x592a10;_0x46c93b++){_0x164fd8+='%'+('00'+_0x45a05d['charCodeAt'](_0x46c93b)['toString'](0x23c+-0x1*-0xf27+-0x1153))['slice'](-(0x1afe+-0x948+-0x11b4));}return decodeURIComponent(_0x164fd8);};_0x59ac['NQamrN']=_0x5d5671,_0x59ac['nMYbcw']={},_0x59ac['CpNKZB']=!![];}const _0x2b4bfc=_0x4a69c3[-0x26bc+-0x14ab+-0x1*-0x3b67];_0x59ac['oEbLej']!==_0x2b4bfc&&(_0x59ac['nMYbcw']={},_0x59ac['oEbLej']=_0x2b4bfc);const _0xce613b=_0x59ac['nMYbcw'][_0x433ec6];return _0xce613b===undefined?(_0x58673c=_0x59ac['NQamrN'](_0x58673c),_0x59ac['nMYbcw'][_0x433ec6]=_0x58673c):_0x58673c=_0xce613b,_0x58673c;}export function assertQueueItemOwner(_0x40ed80,_0x34f6ee){const _0x4ddf22=_0x59ac;if(Number[_0x4ddf22(0x6c)](_0x34f6ee)&&_0x40ed80[_0x4ddf22(0x79)]!==_0x34f6ee)throw new Error(_0x4ddf22(0x72));}function _0x55ef(){const _0x9df809=['mZqXmZa0t1Hts0jl','AxntywzLsw50zwDLCG','z2v0uxvLDwvjDgvT','mtuZmtaXmNLjD2LsDa','mJeWmta1mfDzEgHUDG','AxrLBuLKCW','C2vZC2LVBLf1zxvL','uLvox09xtKvex0jzx0fot1rirvjFvvnfuG','mJC5CLD4s25p','mJvPBuLouM8','n2Djveflqq','mtqWmZq2odbmBvLnwu0','ogjlCgzSEq','mtiWnJm5vhzhtffQ','Aw5PDgLHDgvKqNLvC2vYswq','ywn0AxzLu2vZC2LVBLj1BG','nZeYntbHzfbtz1a','mta4ntzLANfHBwW'];_0x55ef=function(){return _0x9df809;};return _0x55ef();}export function assertSessionControlOwner(_0x21779f,_0x52c7db,_0x2ce73e){const _0x557638=_0x59ac;if(!Number[_0x557638(0x6c)](_0x2ce73e))return;const _0x40a92f=_0x21779f[_0x557638(0x7a)](_0x52c7db);if(_0x40a92f!==undefined){assertRunOwner(_0x40a92f,_0x2ce73e);return;}for(const _0x5258bb of _0x21779f[_0x557638(0x71)](_0x52c7db)[_0x557638(0x70)]){const _0x508308=_0x21779f[_0x557638(0x6d)](_0x5258bb);if(_0x508308!==undefined)assertQueueItemOwner(_0x508308,_0x2ce73e);}}
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- function _0x4f5e(_0x1be16e,_0x45c65c){_0x1be16e=_0x1be16e-(0x12f*-0x1b+0x1*0x223d+-0xc2);const _0xaa1ece=_0x36ed();let _0x360d57=_0xaa1ece[_0x1be16e];if(_0x4f5e['DBNial']===undefined){var _0x1f8c1d=function(_0x22f92c){const _0x57faaf='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x56b2a5='',_0x5790c8='';for(let _0x3db2b1=0x354+-0xdc6+-0x539*-0x2,_0x5e5fc7,_0x61258d,_0x5945e8=-0x1055+-0x2*0x11b5+0x33bf;_0x61258d=_0x22f92c['charAt'](_0x5945e8++);~_0x61258d&&(_0x5e5fc7=_0x3db2b1%(0x167*-0x19+-0x480+-0xd31*-0x3)?_0x5e5fc7*(-0x1489+-0xf89+0x1229*0x2)+_0x61258d:_0x61258d,_0x3db2b1++%(0x3f0+-0x216a+0x1d7e))?_0x56b2a5+=String['fromCharCode'](0x2*-0xac7+0xd*0x267+0x65*-0x16&_0x5e5fc7>>(-(0x26f1+-0x173*-0x2+-0x1*0x29d5)*_0x3db2b1&0x1b2*0x2+0x8a7+0x1*-0xc05)):0x8d*-0x44+-0x7*0x49+0x2773*0x1){_0x61258d=_0x57faaf['indexOf'](_0x61258d);}for(let _0x3e4e7c=0x23e*-0x7+0x2*-0x199+0x193*0xc,_0x1120b0=_0x56b2a5['length'];_0x3e4e7c<_0x1120b0;_0x3e4e7c++){_0x5790c8+='%'+('00'+_0x56b2a5['charCodeAt'](_0x3e4e7c)['toString'](-0xc3f+-0xdd5*0x2+0x9*0x471))['slice'](-(-0xdc6+0xb*-0x36e+-0x26*-0x15b));}return decodeURIComponent(_0x5790c8);};_0x4f5e['fiRaOQ']=_0x1f8c1d,_0x4f5e['ecivlB']={},_0x4f5e['DBNial']=!![];}const _0x3f4560=_0xaa1ece[0x7*0x12c+0x1*0x1a4a+0x2*-0x113f];_0x4f5e['uzZigF']!==_0x3f4560&&(_0x4f5e['ecivlB']={},_0x4f5e['uzZigF']=_0x3f4560);const _0x3d7f30=_0x4f5e['ecivlB'][_0x1be16e];return _0x3d7f30===undefined?(_0x360d57=_0x4f5e['fiRaOQ'](_0x360d57),_0x4f5e['ecivlB'][_0x1be16e]=_0x360d57):_0x360d57=_0x3d7f30,_0x360d57;}function _0x36ed(){const _0x2516fe=['Cgf1C2vrDwv1zq','z2v0uNvU','yxbWCM92ywXjza','uvvfvuve','z2v0qwDLBNrtzxnZAw9U','B3bLCMf0Aw9UCW','uLvox05pvf9gt1vora','zgvJAwrLqxbWCM92ywW','CNvUlMLUDgvYCNvWDa','yxbWCM92ywXZ','qvbquK9wquXFrevdsvnjt05Fsu5wquXjra','CNvUlMnHBMnLBa','C3rYAw5N','zgvJAxnPB24','AxnjBNrLz2vY','q0foq0vmteve','ywn0AxzLu2vZC2LVBLj1BG','Aw50zxjYDxb0u2vZC2LVBG','uKvkrunuruq','u0vtu0LptL9ot1rFrK9vtKq','mte4ody4mJb5wefYwKe','mJiWmdiYmu1mvxjOBa','CMvXDwLYzvj1BG','CNvUswq','CNvUlMnVBxbSzxrLza','ndG1otrsq0vfqLa','nJG5odG5nKLiDfzwvG','y2fUy2vSuxvLDwvK','uLvox0LnquDfx05pvf9gt1vora','z2v0','AxnrDwv1zwrsDw4','B3b0Aw9UCW','CNvUlMfWChjVDMfSlMrLy2LZAw9U','zw1PDfj1BG','C2vZC2LVBKLK','ouHAzfDiAG','CMvZCg9UzfvZzxjjBNb1Da','q0foq0vmteLorW','ntaYmdy1BuDiuxbg','CMvXDwvZDeLK','CMvHzeLTywDL','qvbquK9wruq','ntjzAfHkCwe','mJu2mtK5Evfpwhfj','y29UDhjVBa','CMvZCg9Uza','BNvTyMvY','BwfYA0LUDgvYCNvWDgvK','vvnfuL9jtLbvvf9jtLzbteLe','CNvUDgLTzq','C3rHDhvZ','uLvox0LnquDfx0LovKfmsuq','yw5ZD2vYCW','mLLWEeHvuG','mJa1ntKYmePLDvb3Dq','BgLZDefWChjVDMfSCW','y2fUy2vSt3jjBNrLCNj1Chq','Aw1Hz2vjBMrLEa','odreCe1Mrhi','DhjHBNnPDgLVBLj1BG','Aw1Hz2u','yxbWCM92ywWUzgvJAwrLza'];_0x36ed=function(){return _0x2516fe;};return _0x36ed();}const _0x4464b0=_0x4f5e;(function(_0x2d4ac7,_0x509d33){const _0x5e538c=_0x4f5e,_0x1cfc5f=_0x2d4ac7();while(!![]){try{const _0x5894e6=parseInt(_0x5e538c(0x1b3))/(0x81c+0x1224*0x1+0x1a3f*-0x1)+-parseInt(_0x5e538c(0x1bd))/(-0x1c7e+-0x568*0x1+0x21e8)*(-parseInt(_0x5e538c(0x19d))/(-0x79d+-0x1912+0x3e*0x87))+parseInt(_0x5e538c(0x1b2))/(0x1*-0xbe7+0xc7+-0x592*-0x2)*(parseInt(_0x5e538c(0x1ae))/(-0x2258+-0x10*0x254+0x2a7*0x1b))+parseInt(_0x5e538c(0x1a1))/(0x230d*0x1+0x27*-0xb5+-0x774)*(parseInt(_0x5e538c(0x1c2))/(-0x5*0x5ae+0x163b+0x632))+-parseInt(_0x5e538c(0x1a2))/(0x1ea4+0x36d+-0x1*0x2209)+parseInt(_0x5e538c(0x1ab))/(-0x9c7*0x2+0x47*0x1e+0xb45)*(parseInt(_0x5e538c(0x1be))/(0x121d*0x1+-0x4b5+0x76*-0x1d))+-parseInt(_0x5e538c(0x19c))/(0x757*0x1+0x1808*0x1+-0x1f54);if(_0x5894e6===_0x509d33)break;else _0x1cfc5f['push'](_0x1cfc5f['shift']());}catch(_0x4ded2d){_0x1cfc5f['push'](_0x1cfc5f['shift']());}}}(_0x36ed,0x1b41*0x44+0x2*0x1f18d+0x1*-0x122a9));import{isTerminalRunStatus}from'../util/node-operation-parsers.js';import{isPlainRecord}from'../runner/codex/conversation-parser.js';export class RunWorkbenchService{[_0x4464b0(0x1a7)];constructor(_0x34c623){const _0x4fc95f=_0x4464b0;this[_0x4fc95f(0x1a7)]=_0x34c623;}[_0x4464b0(0x18d)](){const _0x16b282=_0x4464b0;return{'run.get':_0x370d6b=>this[_0x16b282(0x1a5)](record(_0x370d6b)),'run.image.read':_0x28d5d5=>this[_0x16b282(0x186)](record(_0x28d5d5)),'run.user-input.respond':_0x21d907=>this[_0x16b282(0x1b5)](record(_0x21d907)),'session.interrupt':_0x4e6001=>this[_0x16b282(0x199)](record(_0x4e6001)),'run.cancel':_0x2a31ac=>this[_0x16b282(0x1c0)](_0x16b282(0x193),record(_0x2a31ac)),'run.interrupt':_0x4e0076=>this[_0x16b282(0x1c0)](_0x16b282(0x190),record(_0x4e0076)),'run.approvals':_0x4b66cf=>this[_0x16b282(0x191)](record(_0x4b66cf)),'run.approval.decide':_0x2f5bfb=>this[_0x16b282(0x18f)](record(_0x2f5bfb))};}[_0x4464b0(0x1a5)](_0x3983d8){const _0x56c34c=_0x4464b0;return{'run':this[_0x56c34c(0x19e)](_0x3983d8[_0x56c34c(0x19f)])};}async[_0x4464b0(0x186)](_0x888837){const _0x1ba960=_0x4464b0;if(typeof _0x888837[_0x1ba960(0x19f)]!==_0x1ba960(0x194)||typeof _0x888837[_0x1ba960(0x1c1)]!==_0x1ba960(0x1b6)||!Number[_0x1ba960(0x196)](_0x888837[_0x1ba960(0x1c1)])||_0x888837[_0x1ba960(0x1c1)]<-0x1762+0x1db0+-0x64e)throw new Error(_0x1ba960(0x1bb));const _0x169fe0=await this[_0x1ba960(0x1a7)][_0x1ba960(0x1b0)](_0x888837[_0x1ba960(0x19f)],_0x888837[_0x1ba960(0x1c1)]);if(_0x169fe0===undefined)throw new Error(_0x1ba960(0x1a4));return{'image':_0x169fe0};}[_0x4464b0(0x1b5)](_0x1cb9a8){const _0x408926=_0x4464b0;if(typeof _0x1cb9a8[_0x408926(0x19f)]!==_0x408926(0x194)||typeof _0x1cb9a8[_0x408926(0x1af)]!==_0x408926(0x194)||!isPlainRecord(_0x1cb9a8[_0x408926(0x1bc)]))throw new Error(_0x408926(0x1b8));return this[_0x408926(0x1a7)][_0x408926(0x1ac)](_0x1cb9a8[_0x408926(0x19f)],_0x1cb9a8[_0x408926(0x1af)],_0x1cb9a8[_0x408926(0x1bc)]),{'accepted':!![]};}[_0x4464b0(0x199)](_0xcd7396){const _0x215ccf=_0x4464b0;if(typeof _0xcd7396[_0x215ccf(0x1aa)]!==_0x215ccf(0x194))throw new Error(_0x215ccf(0x19b));const _0xaa81f4=this[_0x215ccf(0x1a7)][_0x215ccf(0x1b9)][_0x215ccf(0x18c)](_0xcd7396[_0x215ccf(0x1aa)]);if(_0xaa81f4===undefined)throw new Error(_0x215ccf(0x19b));const _0x5572ae=this[_0x215ccf(0x1a7)][_0x215ccf(0x1b9)][_0x215ccf(0x198)](_0xaa81f4['id']);if(_0x5572ae===undefined||isTerminalRunStatus(_0x5572ae[_0x215ccf(0x1ba)]))throw new Error(_0x215ccf(0x18e));return this[_0x215ccf(0x1c0)](_0x215ccf(0x190),{'runId':_0x5572ae['id']});}[_0x4464b0(0x1c0)](_0x523298,_0x347e3b){const _0x33061f=_0x4464b0,_0x6e8305=this[_0x33061f(0x19e)](_0x347e3b[_0x33061f(0x19f)]);if(_0x523298===_0x33061f(0x193)&&_0x6e8305[_0x33061f(0x1ba)]===_0x33061f(0x18b)&&this[_0x33061f(0x1a7)][_0x33061f(0x1b9)][_0x33061f(0x1a6)](_0x6e8305['id']))return this[_0x33061f(0x1a7)][_0x33061f(0x1a3)](_0x6e8305['id']),{'cancelled':!![]};const _0x27169f=this[_0x33061f(0x1a7)][_0x33061f(0x1b9)][_0x33061f(0x1c3)](_0x6e8305['id'],_0x523298===_0x33061f(0x193)&&_0x6e8305[_0x33061f(0x1ba)]===_0x33061f(0x18b)?_0x33061f(0x197):_0x33061f(0x1ad));if(_0x523298===_0x33061f(0x193)&&_0x27169f[_0x33061f(0x1ba)]===_0x33061f(0x197))return this[_0x33061f(0x1a7)][_0x33061f(0x1a9)](_0x6e8305['id'],_0x33061f(0x1a0),{'status':_0x33061f(0x197)},_0x33061f(0x197)),{'run':_0x27169f};return _0x523298===_0x33061f(0x190)&&(this[_0x33061f(0x1a7)][_0x33061f(0x188)](_0x6e8305[_0x33061f(0x1aa)]),this[_0x33061f(0x1a7)][_0x33061f(0x1b7)](_0x6e8305['id'])),this[_0x33061f(0x1a7)][_0x33061f(0x1b4)](_0x523298,{'runId':_0x6e8305['id']}),{'run':_0x27169f};}[_0x4464b0(0x191)](_0x2586d9){const _0x5832a5=_0x4464b0,_0x260f2e=this[_0x5832a5(0x19e)](_0x2586d9[_0x5832a5(0x19f)]);return{'approvals':this[_0x5832a5(0x1a7)][_0x5832a5(0x1b9)][_0x5832a5(0x1bf)](_0x260f2e['id'])};}[_0x4464b0(0x18f)](_0x15615d){const _0x205ac9=_0x4464b0;if(typeof _0x15615d[_0x205ac9(0x18a)]!==_0x205ac9(0x194)||_0x15615d[_0x205ac9(0x195)]!==_0x205ac9(0x1b1)&&_0x15615d[_0x205ac9(0x195)]!==_0x205ac9(0x19a))throw new Error(_0x205ac9(0x192));const _0x55ce6f=this[_0x205ac9(0x1a7)][_0x205ac9(0x1b9)][_0x205ac9(0x18f)](_0x15615d[_0x205ac9(0x18a)],_0x15615d[_0x205ac9(0x195)]);return this[_0x205ac9(0x1a7)][_0x205ac9(0x1a9)](_0x55ce6f[_0x205ac9(0x19f)],_0x205ac9(0x187),{'approvalId':_0x55ce6f['id'],'decision':_0x15615d[_0x205ac9(0x195)]}),this[_0x205ac9(0x1a7)][_0x205ac9(0x1b4)](_0x205ac9(0x1a8),{'runId':_0x55ce6f[_0x205ac9(0x19f)],'approvalId':_0x55ce6f['id'],'decision':_0x15615d[_0x205ac9(0x195)]}),{'approval':_0x55ce6f};}[_0x4464b0(0x19e)](_0x48c5ee){const _0x53cd6d=_0x4464b0;if(typeof _0x48c5ee!==_0x53cd6d(0x194))throw new Error(_0x53cd6d(0x18e));const _0x379d92=this[_0x53cd6d(0x1a7)][_0x53cd6d(0x1b9)][_0x53cd6d(0x189)](_0x48c5ee);if(_0x379d92===undefined)throw new Error(_0x53cd6d(0x18e));return _0x379d92;}}function record(_0x5f407f){return isPlainRecord(_0x5f407f)?_0x5f407f:{};}
2
+ const _0x5d5259=_0x4114;(function(_0xce0d65,_0x58003a){const _0x1fdbbe=_0x4114,_0xa5737d=_0xce0d65();while(!![]){try{const _0x4ccbd0=parseInt(_0x1fdbbe(0x14a))/(0x181+-0x1337*0x2+0x24ee)*(parseInt(_0x1fdbbe(0x165))/(0x1*0x986+0x13e1+-0xaf*0x2b))+parseInt(_0x1fdbbe(0x152))/(-0x6b*-0x49+0x1c0b+-0x85d*0x7)*(parseInt(_0x1fdbbe(0x170))/(0x35b*-0x8+-0x187e+0x335a))+-parseInt(_0x1fdbbe(0x15d))/(0x1ce5+0x252c+-0x420c)*(parseInt(_0x1fdbbe(0x184))/(0x24cd+0x53*-0x2d+-0x50*0x47))+parseInt(_0x1fdbbe(0x181))/(-0x134f*0x1+0x1*0x113+0x3a7*0x5)*(-parseInt(_0x1fdbbe(0x158))/(0x1*0xe75+0x6*0x2b0+-0x1e8d))+parseInt(_0x1fdbbe(0x14b))/(0x5f*-0x57+0x229+0x1e29)+-parseInt(_0x1fdbbe(0x14d))/(-0x1aef+0x2*-0x1032+-0xd*-0x491)*(-parseInt(_0x1fdbbe(0x161))/(-0xed2+-0xd96+0x1c73))+-parseInt(_0x1fdbbe(0x179))/(-0x438+-0xe52+0x1a*0xb7);if(_0x4ccbd0===_0x58003a)break;else _0xa5737d['push'](_0xa5737d['shift']());}catch(_0x374f96){_0xa5737d['push'](_0xa5737d['shift']());}}}(_0x52d7,-0xe557+-0x9378+0xd160e));import{isTerminalRunStatus}from'../util/node-operation-parsers.js';function _0x4114(_0x397ca4,_0x290747){_0x397ca4=_0x397ca4-(0x22*-0x8d+0x3*0xabd+-0xc37*0x1);const _0x14c278=_0x52d7();let _0x4006f7=_0x14c278[_0x397ca4];if(_0x4114['HavQuC']===undefined){var _0x593228=function(_0x28924d){const _0x1b9d1e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x106cb6='',_0x27dadd='';for(let _0x2b6368=-0x638+-0x1cb5*-0x1+-0x167d,_0x56e23e,_0x1afe38,_0x54dd9a=-0x192*0x12+-0x85d*0x4+0x3db8;_0x1afe38=_0x28924d['charAt'](_0x54dd9a++);~_0x1afe38&&(_0x56e23e=_0x2b6368%(-0x5a5*-0x1+-0xde8+0x847)?_0x56e23e*(0x41*-0xd+0x9e*-0x19+0x12fb)+_0x1afe38:_0x1afe38,_0x2b6368++%(0x94*-0x17+0x26f8+-0x4*0x66a))?_0x106cb6+=String['fromCharCode'](0x263b*-0x1+0x56*0x24+0x2e*0x97&_0x56e23e>>(-(0x1a6b+0x1c09+0x913*-0x6)*_0x2b6368&0x2a5*0x1+-0x5fd*-0x5+0x412*-0x8)):-0x2153+0x1464+0xcef){_0x1afe38=_0x1b9d1e['indexOf'](_0x1afe38);}for(let _0x460dee=0x46*0x8b+-0x2501*-0x1+-0x4b03,_0x1c676c=_0x106cb6['length'];_0x460dee<_0x1c676c;_0x460dee++){_0x27dadd+='%'+('00'+_0x106cb6['charCodeAt'](_0x460dee)['toString'](-0x1d03+-0xd05+0x2a18))['slice'](-(-0x2*0x239+0x3*0x1+0x471));}return decodeURIComponent(_0x27dadd);};_0x4114['DQjrVO']=_0x593228,_0x4114['SACdeS']={},_0x4114['HavQuC']=!![];}const _0x527207=_0x14c278[0x1da+-0x2c*-0x2e+-0x9c2];_0x4114['VEtzQt']!==_0x527207&&(_0x4114['SACdeS']={},_0x4114['VEtzQt']=_0x527207);const _0x583154=_0x4114['SACdeS'][_0x397ca4];return _0x583154===undefined?(_0x4006f7=_0x4114['DQjrVO'](_0x4006f7),_0x4114['SACdeS'][_0x397ca4]=_0x4006f7):_0x4006f7=_0x583154,_0x4006f7;}import{isPlainRecord}from'../runner/codex/conversation-parser.js';import{assertRunOwner}from'./run-ownership-policy.js';export class RunWorkbenchService{[_0x5d5259(0x156)];constructor(_0x6dbc7c){const _0x4261b3=_0x5d5259;this[_0x4261b3(0x156)]=_0x6dbc7c;}[_0x5d5259(0x154)](){const _0x55fc1c=_0x5d5259;return{'run.get':_0x5503c6=>this[_0x55fc1c(0x150)](record(_0x5503c6)),'run.image.read':_0xe654cd=>this[_0x55fc1c(0x151)](record(_0xe654cd)),'run.user-input.respond':_0x488556=>this[_0x55fc1c(0x16f)](record(_0x488556)),'session.interrupt':_0x12c711=>this[_0x55fc1c(0x14f)](record(_0x12c711)),'run.cancel':_0x2f9d93=>this[_0x55fc1c(0x16c)](_0x55fc1c(0x171),record(_0x2f9d93)),'run.interrupt':_0x3693bc=>this[_0x55fc1c(0x16c)](_0x55fc1c(0x15a),record(_0x3693bc)),'run.approval.decide':_0x1eb767=>this[_0x55fc1c(0x153)](record(_0x1eb767))};}[_0x5d5259(0x150)](_0x3d327e){const _0x2125aa=_0x5d5259;return{'run':this[_0x2125aa(0x169)](_0x3d327e[_0x2125aa(0x160)])};}async[_0x5d5259(0x151)](_0x6143b2){const _0x163d00=_0x5d5259;if(typeof _0x6143b2[_0x163d00(0x160)]!==_0x163d00(0x159)||typeof _0x6143b2[_0x163d00(0x16b)]!==_0x163d00(0x16d)||!Number[_0x163d00(0x186)](_0x6143b2[_0x163d00(0x16b)])||_0x6143b2[_0x163d00(0x16b)]<-0xd6e+0x9e5+0x389)throw new Error(_0x163d00(0x146));const _0x190847=await this[_0x163d00(0x156)][_0x163d00(0x163)](_0x6143b2[_0x163d00(0x160)],_0x6143b2[_0x163d00(0x16b)]);if(_0x190847===undefined)throw new Error(_0x163d00(0x15c));return{'image':_0x190847};}[_0x5d5259(0x16f)](_0x2e0e0c){const _0x274bd2=_0x5d5259;if(typeof _0x2e0e0c[_0x274bd2(0x160)]!==_0x274bd2(0x159)||typeof _0x2e0e0c[_0x274bd2(0x147)]!==_0x274bd2(0x159)||!isPlainRecord(_0x2e0e0c[_0x274bd2(0x14e)]))throw new Error(_0x274bd2(0x149));const _0x2ba877=this[_0x274bd2(0x177)](_0x2e0e0c[_0x274bd2(0x160)],_0x2e0e0c[_0x274bd2(0x148)]),_0x1cdafe=this[_0x274bd2(0x156)][_0x274bd2(0x17b)][_0x274bd2(0x17d)](_0x2ba877['id'])??_0x2ba877['id'];return this[_0x274bd2(0x156)][_0x274bd2(0x168)](_0x1cdafe,_0x2e0e0c[_0x274bd2(0x147)],_0x2e0e0c[_0x274bd2(0x14e)]),{'accepted':!![]};}[_0x5d5259(0x14f)](_0x55222a){const _0x551258=_0x5d5259;if(typeof _0x55222a[_0x551258(0x16a)]!==_0x551258(0x159))throw new Error(_0x551258(0x15b));const _0x4865ab=this[_0x551258(0x156)][_0x551258(0x17b)][_0x551258(0x183)](_0x55222a[_0x551258(0x16a)]);if(_0x4865ab===undefined)throw new Error(_0x551258(0x15b));const _0x3184c5=this[_0x551258(0x156)][_0x551258(0x17b)][_0x551258(0x15f)](_0x4865ab['id']);if(_0x3184c5===undefined||isTerminalRunStatus(_0x3184c5[_0x551258(0x14c)]))throw new Error(_0x551258(0x17a));return this[_0x551258(0x16c)](_0x551258(0x15a),{'runId':_0x3184c5['id'],'__requestUserId':_0x55222a[_0x551258(0x148)]});}[_0x5d5259(0x16c)](_0x4da853,_0x28f9f7){const _0xab73e4=_0x5d5259,_0x1f756b=this[_0xab73e4(0x177)](_0x28f9f7[_0xab73e4(0x160)],_0x28f9f7[_0xab73e4(0x148)]),_0x5f3fd5=this[_0xab73e4(0x156)][_0xab73e4(0x17b)][_0xab73e4(0x157)](_0x1f756b['id'],_0xab73e4(0x15e)),_0x326843=this[_0xab73e4(0x156)][_0xab73e4(0x17b)][_0xab73e4(0x17d)](_0x1f756b['id']);return this[_0xab73e4(0x156)][_0xab73e4(0x155)](_0x1f756b[_0xab73e4(0x16a)]),_0x326843===undefined?(this[_0xab73e4(0x156)][_0xab73e4(0x178)](_0x1f756b['id']),this[_0xab73e4(0x156)][_0xab73e4(0x176)](_0x1f756b['id'],_0xab73e4(0x16e),{'code':_0xab73e4(0x175)},_0xab73e4(0x17c))):(this[_0xab73e4(0x156)][_0xab73e4(0x178)](_0x326843),this[_0xab73e4(0x156)][_0xab73e4(0x162)](_0x4da853,{'runId':_0x326843})),{'run':_0x5f3fd5};}[_0x5d5259(0x153)](_0x522a0c){const _0x484967=_0x5d5259;if(typeof _0x522a0c[_0x484967(0x160)]!==_0x484967(0x159)||typeof _0x522a0c[_0x484967(0x164)]!==_0x484967(0x159)||_0x522a0c[_0x484967(0x180)]!==_0x484967(0x167)&&_0x522a0c[_0x484967(0x180)]!==_0x484967(0x172))throw new Error(_0x484967(0x182));const _0x28435e=this[_0x484967(0x156)][_0x484967(0x17b)][_0x484967(0x185)](_0x522a0c[_0x484967(0x164)]);if(_0x28435e===undefined||this[_0x484967(0x156)][_0x484967(0x17b)][_0x484967(0x173)](_0x28435e[_0x484967(0x160)])!==_0x522a0c[_0x484967(0x160)])throw new Error(_0x484967(0x187));this[_0x484967(0x174)](_0x28435e[_0x484967(0x160)],_0x522a0c[_0x484967(0x148)]);const _0x3a9fad=this[_0x484967(0x156)][_0x484967(0x17b)][_0x484967(0x153)](_0x522a0c[_0x484967(0x164)],_0x522a0c[_0x484967(0x180)]);return this[_0x484967(0x156)][_0x484967(0x176)](_0x3a9fad[_0x484967(0x160)],_0x484967(0x166),{'approvalId':_0x3a9fad['id'],'decision':_0x522a0c[_0x484967(0x180)]}),this[_0x484967(0x156)][_0x484967(0x162)](_0x484967(0x17f),{'runId':_0x3a9fad[_0x484967(0x160)],'approvalId':_0x3a9fad['id'],'decision':_0x522a0c[_0x484967(0x180)]}),{'approval':_0x3a9fad};}[_0x5d5259(0x169)](_0x227b5c){const _0xc3cfb1=_0x5d5259;if(typeof _0x227b5c!==_0xc3cfb1(0x159))throw new Error(_0xc3cfb1(0x17a));const _0x106b75=this[_0xc3cfb1(0x156)][_0xc3cfb1(0x17b)][_0xc3cfb1(0x17e)](_0x227b5c);if(_0x106b75===undefined)throw new Error(_0xc3cfb1(0x17a));return _0x106b75;}[_0x5d5259(0x177)](_0x3e72a7,_0x524d12){const _0x373c59=_0x5d5259,_0x5ef020=this[_0x373c59(0x169)](_0x3e72a7);return assertRunOwner(_0x5ef020,_0x524d12),_0x5ef020;}[_0x5d5259(0x174)](_0x326c37,_0x498eec){const _0x407a43=_0x5d5259;assertRunOwner(this[_0x407a43(0x169)](_0x326c37),_0x498eec);}}function record(_0x5d9e7e){return isPlainRecord(_0x5d9e7e)?_0x5d9e7e:{};}function _0x52d7(){const _0x44f635=['mtaYotvSwLLgtvO','mtiXmta0mdLTwKD1CNe','C3rHDhvZ','mtiWmtiXmgPtDgP1ra','yw5ZD2vYCW','Aw50zxjYDxb0u2vZC2LVBG','z2v0','Aw1Hz2u','mta5mJq2nxr4quLUua','zgvJAwrLqxbWCM92ywW','B3bLCMf0Aw9UCW','Cgf1C2vrDwv1zq','B3b0Aw9UCW','DhjHBNnPDgLVBLj1BG','mJrWEwLArhy','C3rYAw5N','CNvUlMLUDgvYCNvWDa','u0vtu0LptL9ot1rFrK9vtKq','uLvox0LnquDfx05pvf9gt1vora','nti2mJiWBNvgD2XJ','q0foq0vmteLorW','ywn0AxzLu2vZC2LVBLj1BG','CNvUswq','mteWDK9eD2rc','y29UDhjVBa','CMvHzeLTywDL','yxbWCM92ywXjza','mJaWzgrNCMnX','yxbWCM92ywWUzgvJAwrLza','qvbquK9wruq','CMvZCg9UzfvZzxjjBNb1Da','CMvXDwLYzvj1BG','C2vZC2LVBKLK','Aw1Hz2vjBMrLEa','y2fUy2vSt3jjBNrLCNj1Chq','BNvTyMvY','CNvUlMLUDgvYCNvWDgvK','CMvZCg9Uza','mtjqEKjgB0y','CNvUlMnHBMnLBa','uKvkrunuruq','y2fUB25Py2fSuNvUswq','yxnZzxj0uNvUt3DUzxi','vvnfuL9jtLrfuLjvufrfra','zw1PDfj1BG','CMvXDwLYzu93BMvKuNvU','BwfYA0LUDgvYCNvWDgvK','mZu4nJCYmdH1DfP3D1y','uLvox05pvf9gt1vora','CNvUDgLTzq','su5urvjsvvburuq','y3vYCMvUDev4zwn1DgLVBKLK','z2v0uNvU','CNvUlMfWChjVDMfSlMrLy2LZAw9U','zgvJAxnPB24','ndi0nJi3DNHwB2nn','qvbquK9wquXFrevdsvnjt05Fsu5wquXjra','z2v0qwDLBNrtzxnZAw9U','ndjxu1D3CgK','z2v0qxbWCM92ywW','AxnjBNrLz2vY','qvbquK9wquXFtK9ux0zpvu5e','uLvox0LnquDfx0LovKfmsuq','CMvXDwvZDeLK','x19Yzxf1zxn0vxnLCKLK','vvnfuL9jtLbvvf9jtLzbteLe'];_0x52d7=function(){return _0x44f635;};return _0x52d7();}
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- function _0x2f0d(_0x4f1434,_0xba1953){_0x4f1434=_0x4f1434-(-0x152a+-0x2416+-0x475*-0xd);const _0x547a4d=_0x2549();let _0x573ac0=_0x547a4d[_0x4f1434];if(_0x2f0d['yrgkce']===undefined){var _0x11283f=function(_0x7734eb){const _0x4512d0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xe376cd='',_0xe71110='';for(let _0x173383=-0x1f*-0x115+-0x2506+-0x3*-0x129,_0x2c8627,_0x38eadb,_0x3b2a6b=0x2300+-0x133*-0x1d+-0x45c7;_0x38eadb=_0x7734eb['charAt'](_0x3b2a6b++);~_0x38eadb&&(_0x2c8627=_0x173383%(-0x389*0x3+-0xd81*0x2+0x25a1)?_0x2c8627*(-0x1*-0x26b+-0x6dc+0x4b1)+_0x38eadb:_0x38eadb,_0x173383++%(-0x6*0x9d+0xad+0x305))?_0xe376cd+=String['fromCharCode'](0x161c+-0x5*0x153+-0xe7e&_0x2c8627>>(-(-0x2258+0x2c7*-0xd+0x4675)*_0x173383&0x444+-0x2659+0x221b)):0x11eb+0x449*0x6+-0x2ba1){_0x38eadb=_0x4512d0['indexOf'](_0x38eadb);}for(let _0x1e4fbe=0x4b7*-0x7+-0x1*0x18cb+0x6*0x9a2,_0x53e0ef=_0xe376cd['length'];_0x1e4fbe<_0x53e0ef;_0x1e4fbe++){_0xe71110+='%'+('00'+_0xe376cd['charCodeAt'](_0x1e4fbe)['toString'](0x19*0x55+0x1d44+0x2581*-0x1))['slice'](-(-0x2505+-0x1ec3+0x1*0x43ca));}return decodeURIComponent(_0xe71110);};_0x2f0d['rmntMu']=_0x11283f,_0x2f0d['niBfBm']={},_0x2f0d['yrgkce']=!![];}const _0x102aee=_0x547a4d[0x2*-0xfc4+-0x1086+-0x1807*-0x2];_0x2f0d['hgdZdn']!==_0x102aee&&(_0x2f0d['niBfBm']={},_0x2f0d['hgdZdn']=_0x102aee);const _0x306ca0=_0x2f0d['niBfBm'][_0x4f1434];return _0x306ca0===undefined?(_0x573ac0=_0x2f0d['rmntMu'](_0x573ac0),_0x2f0d['niBfBm'][_0x4f1434]=_0x573ac0):_0x573ac0=_0x306ca0,_0x573ac0;}const _0x4bbb8f=_0x2f0d;(function(_0x5661f5,_0x4fb022){const _0x124d49=_0x2f0d,_0x50c822=_0x5661f5();while(!![]){try{const _0x91f793=parseInt(_0x124d49(0xca))/(-0x10da+-0x9d*-0x29+0x425*-0x2)*(-parseInt(_0x124d49(0xd2))/(-0x16*-0x21+-0x1cc1+0x19ed))+parseInt(_0x124d49(0xd9))/(0x1a*-0xd+0x161d+-0x85*0x28)*(parseInt(_0x124d49(0xd6))/(0x1b78*-0x1+0x89*0x13+0x1151))+-parseInt(_0x124d49(0xc5))/(0x1*0xb4d+0x11*-0x101+0x5c9*0x1)+-parseInt(_0x124d49(0xd7))/(-0x5f8*-0x1+-0x1*0x2257+0x3*0x977)*(-parseInt(_0x124d49(0xda))/(0xf32+-0x162+0xdc9*-0x1))+-parseInt(_0x124d49(0xdd))/(-0x4*0x239+-0x1*0x1d41+0x1*0x262d)*(-parseInt(_0x124d49(0xb1))/(0x1*-0x9cd+-0x14f5+0x1ecb))+parseInt(_0x124d49(0xb4))/(-0x20e*-0xd+-0x142c+-0x680)+-parseInt(_0x124d49(0xd5))/(0xad8+-0x643+0x2*-0x245)*(parseInt(_0x124d49(0xce))/(0x162+-0x2511+0x23bb));if(_0x91f793===_0x4fb022)break;else _0x50c822['push'](_0x50c822['shift']());}catch(_0x3a3b6e){_0x50c822['push'](_0x50c822['shift']());}}}(_0x2549,0x96183+-0xbc15c+0xc6b6d));const REFRESH_DELAYS_MS=[-0x3eb+0x9b6*0x1+-0x567,0x32+-0x1947+0x1aa5,-0x322*-0x4+-0x1e64+-0x4*-0x571],CONTEXT_SNAPSHOT_TTL_MS=(0x692+-0x1118+0xaa4)*(0x821+0x6619+0x7c26);export class SessionContextService{[_0x4bbb8f(0xcd)];[_0x4bbb8f(0xb7)]=new Map();[_0x4bbb8f(0xbc)]=new Map();[_0x4bbb8f(0xc9)]=new Map();[_0x4bbb8f(0xb2)]=new Map();constructor(_0x933dca){const _0x3a9e7e=_0x4bbb8f;this[_0x3a9e7e(0xcd)]=_0x933dca;}async[_0x4bbb8f(0xc4)](_0x1b84da){const _0x33ef1d=_0x4bbb8f;if(_0x1b84da[_0x33ef1d(0xd3)]===null)return{'context':null,'pending':![]};const _0x52081f=await this[_0x33ef1d(0xcd)][_0x33ef1d(0xd4)][_0x33ef1d(0xb5)](_0x1b84da[_0x33ef1d(0xc3)])?.[_0x33ef1d(0xb6)](_0x1b84da);if(_0x52081f===undefined)return{'context':null,'pending':![]};const _0x374bb0={'model':_0x52081f[_0x33ef1d(0xc0)]??_0x1b84da[_0x33ef1d(0xc0)],'usedTokens':_0x52081f[_0x33ef1d(0xc2)],'maxTokens':_0x52081f[_0x33ef1d(0xb8)],'percentage':Math[_0x33ef1d(0xbd)](_0x52081f[_0x33ef1d(0xc2)]/_0x52081f[_0x33ef1d(0xb8)]*(0x161c+-0x5*0x153+-0xb95))/(-0x2258+0x2c7*-0xd+0x467d)};this[_0x33ef1d(0xb7)][_0x33ef1d(0xba)](_0x1b84da['id'],_0x374bb0);const _0x1443c2=this[_0x33ef1d(0xbc)][_0x33ef1d(0xc7)](_0x1b84da['id']);if(_0x1443c2!==undefined)clearTimeout(_0x1443c2);const _0x3523d0=setTimeout(()=>{const _0x31e516=_0x33ef1d;this[_0x31e516(0xbc)][_0x31e516(0xbe)](_0x1b84da['id']),this[_0x31e516(0xb7)][_0x31e516(0xbe)](_0x1b84da['id']);},CONTEXT_SNAPSHOT_TTL_MS);return _0x3523d0[_0x33ef1d(0xdb)](),this[_0x33ef1d(0xbc)][_0x33ef1d(0xba)](_0x1b84da['id'],_0x3523d0),{'context':_0x374bb0,'pending':![]};}[_0x4bbb8f(0xd0)](_0xe27e30){const _0x1dc514=_0x4bbb8f,_0x4f1434=this[_0x1dc514(0xc9)][_0x1dc514(0xc7)](_0xe27e30);if(_0x4f1434!==undefined)clearTimeout(_0x4f1434);this[_0x1dc514(0xc9)][_0x1dc514(0xbe)](_0xe27e30);const _0xba1953=(this[_0x1dc514(0xb2)][_0x1dc514(0xc7)](_0xe27e30)??0x444+-0x2659+0x2215)+(0x11eb+0x449*0x6+-0x2ba0);this[_0x1dc514(0xb2)][_0x1dc514(0xba)](_0xe27e30,_0xba1953);let _0x547a4d=this[_0x1dc514(0xb7)][_0x1dc514(0xc7)](_0xe27e30);const _0x573ac0=_0x11283f=>{const _0x5f5d7a=_0x1dc514,_0x102aee=setTimeout(()=>{const _0x4dbd12=_0x2f0d;if(this[_0x4dbd12(0xc9)][_0x4dbd12(0xc7)](_0xe27e30)===_0x102aee)this[_0x4dbd12(0xc9)][_0x4dbd12(0xbe)](_0xe27e30);if(!this[_0x4dbd12(0xd1)](_0xe27e30,_0xba1953))return;const _0x306ca0=this[_0x4dbd12(0xcd)][_0x4dbd12(0xcb)](_0xe27e30);if(_0x306ca0===undefined||_0x306ca0[_0x4dbd12(0xd3)]===null)return;void this[_0x4dbd12(0xc4)](_0x306ca0)[_0x4dbd12(0xcc)](({context:_0x7734eb})=>{const _0x4d8145=_0x4dbd12;if(!this[_0x4d8145(0xd1)](_0xe27e30,_0xba1953))return;_0x7734eb!==null&&(_0x547a4d===undefined||!sameUsage(_0x547a4d,_0x7734eb))&&(_0x547a4d=_0x7734eb,this[_0x4d8145(0xcd)][_0x4d8145(0xb9)]({'sessionId':_0x306ca0['id'],'workspaceId':_0x306ca0[_0x4d8145(0xcf)],'context':_0x7734eb,'pending':![]}));})[_0x4dbd12(0xc6)](()=>undefined)[_0x4dbd12(0xd8)](()=>{const _0x32deee=_0x4dbd12;if(!this[_0x32deee(0xd1)](_0xe27e30,_0xba1953))return;if(_0x11283f+(0x4b7*-0x7+-0x1*0x18cb+0x1*0x39cd)<REFRESH_DELAYS_MS[_0x32deee(0xdc)])_0x573ac0(_0x11283f+(0x19*0x55+0x1d44+0x4b2*-0x8));else this[_0x32deee(0xb2)][_0x32deee(0xbe)](_0xe27e30);});},REFRESH_DELAYS_MS[_0x11283f]);this[_0x5f5d7a(0xc9)][_0x5f5d7a(0xba)](_0xe27e30,_0x102aee),_0x102aee[_0x5f5d7a(0xdb)]();};_0x573ac0(-0x2505+-0x1ec3+0x4*0x10f2);}[_0x4bbb8f(0xb3)](){const _0x547b10=_0x4bbb8f;for(const _0x4512d0 of this[_0x547b10(0xc9)][_0x547b10(0xc1)]())clearTimeout(_0x4512d0);for(const _0xe376cd of this[_0x547b10(0xbc)][_0x547b10(0xc1)]())clearTimeout(_0xe376cd);this[_0x547b10(0xc9)][_0x547b10(0xbb)](),this[_0x547b10(0xbc)][_0x547b10(0xbb)](),this[_0x547b10(0xb2)][_0x547b10(0xbb)](),this[_0x547b10(0xb7)][_0x547b10(0xbb)]();}[_0x4bbb8f(0xd1)](_0xe71110,_0x173383){const _0xadf72=_0x4bbb8f;return!this[_0xadf72(0xcd)][_0xadf72(0xc8)]()&&this[_0xadf72(0xb2)][_0xadf72(0xc7)](_0xe71110)===_0x173383;}}function _0x2549(){const _0x69ab9b=['ChjVzhvJDa','CMvHzenVBNrLEhrvC2fNzq','C25HChnOB3rZ','Bwf4vg9Rzw5Z','ChvIBgLZAa','C2v0','y2XLyxi','C25HChnOB3ruAw1LCNm','CM91BMq','zgvSzxrL','CgvYy2vUDgfNzq','Bw9KzwW','DMfSDwvZ','DxnLzfrVA2vUCW','CNvUBMvY','CMvHza','ndaWnJq4mfzdAvDWwG','y2f0y2G','z2v0','C3rVChbLza','DgLTzxjZ','ndC5odyZCMPNz1fv','C2vZC2LVBG','DgHLBG','B3b0Aw9UCW','mtjtDvPiB1u','D29YA3nWywnLswq','C2nOzwr1Bgu','y3vYCMvUDa','mLr3D3zUzq','zxH0zxjUywXtzxnZAw9Uswq','CNvUBMvYCW','nJiZndm0owr6wNPtta','mZK5nZu0oe5uufPMta','mtG3odzRvw95wvq','zMLUywXSEq','m2nsu1bmsa','mtq3sefOrvnZ','Dw5Yzwy','BgvUz3rO','ofLvA1vPvq','nti5nJe0oufIz2DtBa','DMvYC2LVBNm','zgLZCg9Zzq','oduYnJqZmfz6CvjXBG'];_0x2549=function(){return _0x69ab9b;};return _0x2549();}function sameUsage(_0x2c8627,_0x38eadb){const _0x34274f=_0x4bbb8f;return _0x2c8627[_0x34274f(0xc0)]===_0x38eadb[_0x34274f(0xc0)]&&_0x2c8627[_0x34274f(0xc2)]===_0x38eadb[_0x34274f(0xc2)]&&_0x2c8627[_0x34274f(0xb8)]===_0x38eadb[_0x34274f(0xb8)]&&_0x2c8627[_0x34274f(0xbf)]===_0x38eadb[_0x34274f(0xbf)];}
2
+ const _0x4356c9=_0x687d;(function(_0x55a99e,_0x4b0ef3){const _0x5c366d=_0x687d,_0x110d2f=_0x55a99e();while(!![]){try{const _0x250c49=-parseInt(_0x5c366d(0xba))/(-0xff3+0x358*0x9+-0x712*0x2)+parseInt(_0x5c366d(0xc0))/(-0x126c+-0x2f8+-0x42*-0x53)*(-parseInt(_0x5c366d(0xaf))/(-0x43a*0x4+0x266f+-0x1584))+parseInt(_0x5c366d(0xb7))/(0x1a15+-0xb61+-0x2f*0x50)*(-parseInt(_0x5c366d(0xa3))/(0x61c+0x8*-0x3bd+-0x7*-0x367))+parseInt(_0x5c366d(0x9c))/(0x8d1*-0x3+0x180e*0x1+0x26b)+parseInt(_0x5c366d(0xc1))/(-0x1846*-0x1+-0x589+-0x2*0x95b)*(-parseInt(_0x5c366d(0x95))/(-0x9d0+0x4*0xda+0x670))+parseInt(_0x5c366d(0x96))/(-0x2*0x625+-0x161*-0x13+-0x378*0x4)*(parseInt(_0x5c366d(0xad))/(0x1*0x1f1b+-0x2*-0x688+-0x403*0xb))+-parseInt(_0x5c366d(0x9a))/(-0x21*0x125+-0x234f*0x1+0x1*0x491f)*(-parseInt(_0x5c366d(0x9f))/(0x1a71*-0x1+-0x157b+0x17fc*0x2));if(_0x250c49===_0x4b0ef3)break;else _0x110d2f['push'](_0x110d2f['shift']());}catch(_0x47a6dd){_0x110d2f['push'](_0x110d2f['shift']());}}}(_0x4998,0xd2dc*-0x5+0x3f762+-0x2a94f*-0x2));const REFRESH_DELAYS_MS=[-0x7*0x4b8+-0x2f*-0x5c+0x1088,-0x32*-0xa3+-0x95*0x13+-0x1337,-0x721*0x1+0x119*-0x16+0x1*0x232f],CONTEXT_SNAPSHOT_TTL_MS=(-0xc9*-0x8+0x112*-0x1+0x1*-0x518)*(0x4d*0x5bd+0x1a462+0x1741*-0x1b);export class SessionContextService{[_0x4356c9(0xa8)];[_0x4356c9(0xb1)]=new Map();[_0x4356c9(0xbb)]=new Map();[_0x4356c9(0x9d)]=new Map();[_0x4356c9(0xae)]=new Map();constructor(_0x4077ae){const _0x4b35aa=_0x4356c9;this[_0x4b35aa(0xa8)]=_0x4077ae;}async[_0x4356c9(0xac)](_0x5b0b07){const _0x525f2a=_0x4356c9;if(_0x5b0b07[_0x525f2a(0xc2)]===null)return{'context':null,'pending':![]};const _0x4b55df=await this[_0x525f2a(0xa8)][_0x525f2a(0xb9)][_0x525f2a(0xbd)](_0x5b0b07[_0x525f2a(0xa9)])?.[_0x525f2a(0x99)](_0x5b0b07);if(_0x4b55df===undefined)return{'context':null,'pending':![]};const _0x581e7f={'model':_0x4b55df[_0x525f2a(0xaa)]??_0x5b0b07[_0x525f2a(0xaa)],'usedTokens':_0x4b55df[_0x525f2a(0xbc)],'maxTokens':_0x4b55df[_0x525f2a(0x9e)],'percentage':Math[_0x525f2a(0xa7)](_0x4b55df[_0x525f2a(0xbc)]/_0x4b55df[_0x525f2a(0x9e)]*(0x259c+0xded+-0x2fa1))/(0x1*-0x6ad+-0x1987+0x203e)};this[_0x525f2a(0xb1)][_0x525f2a(0xb5)](_0x5b0b07['id'],_0x581e7f);const _0x46301b=this[_0x525f2a(0xbb)][_0x525f2a(0xa2)](_0x5b0b07['id']);if(_0x46301b!==undefined)clearTimeout(_0x46301b);const _0x3ea79e=setTimeout(()=>{const _0x4958bd=_0x525f2a;this[_0x4958bd(0xbb)][_0x4958bd(0xa6)](_0x5b0b07['id']),this[_0x4958bd(0xb1)][_0x4958bd(0xa6)](_0x5b0b07['id']);},CONTEXT_SNAPSHOT_TTL_MS);return _0x3ea79e[_0x525f2a(0xb6)](),this[_0x525f2a(0xbb)][_0x525f2a(0xb5)](_0x5b0b07['id'],_0x3ea79e),{'context':_0x581e7f,'pending':![]};}[_0x4356c9(0xb8)](_0x4b6421){const _0x106fb6=_0x4356c9;return this[_0x106fb6(0xb1)][_0x106fb6(0xa2)](_0x4b6421)??null;}[_0x4356c9(0xa0)](_0x5428e1){const _0x28a5a7=_0x4356c9,_0xd9c53b=this[_0x28a5a7(0x9d)][_0x28a5a7(0xa2)](_0x5428e1);if(_0xd9c53b!==undefined)clearTimeout(_0xd9c53b);this[_0x28a5a7(0x9d)][_0x28a5a7(0xa6)](_0x5428e1);const _0xfcc98=(this[_0x28a5a7(0xae)][_0x28a5a7(0xa2)](_0x5428e1)??0x3*-0x758+0x103a+0x1*0x5ce)+(0x3c9*-0x6+-0x5f0+-0x98d*-0x3);this[_0x28a5a7(0xae)][_0x28a5a7(0xb5)](_0x5428e1,_0xfcc98);let _0x339342=this[_0x28a5a7(0xb1)][_0x28a5a7(0xa2)](_0x5428e1);const _0x3df86e=_0x53cc74=>{const _0x53f0b0=_0x28a5a7,_0x4811f5=setTimeout(()=>{const _0x4e3b8e=_0x687d;if(this[_0x4e3b8e(0x9d)][_0x4e3b8e(0xa2)](_0x5428e1)===_0x4811f5)this[_0x4e3b8e(0x9d)][_0x4e3b8e(0xa6)](_0x5428e1);if(!this[_0x4e3b8e(0xb0)](_0x5428e1,_0xfcc98))return;const _0x2a67cb=this[_0x4e3b8e(0xa8)][_0x4e3b8e(0xb4)](_0x5428e1);if(_0x2a67cb===undefined||_0x2a67cb[_0x4e3b8e(0xc2)]===null)return;void this[_0x4e3b8e(0xac)](_0x2a67cb)[_0x4e3b8e(0xab)](({context:_0x5b5dc2})=>{const _0x244fef=_0x4e3b8e;if(!this[_0x244fef(0xb0)](_0x5428e1,_0xfcc98))return;_0x5b5dc2!==null&&(_0x339342===undefined||!sameUsage(_0x339342,_0x5b5dc2))&&(_0x339342=_0x5b5dc2,this[_0x244fef(0xa8)][_0x244fef(0xa5)]({'sessionId':_0x2a67cb['id'],'workspaceId':_0x2a67cb[_0x244fef(0xb3)],'context':_0x5b5dc2,'pending':![]}));})[_0x4e3b8e(0x9b)](()=>undefined)[_0x4e3b8e(0xb2)](()=>{const _0x341867=_0x4e3b8e;if(!this[_0x341867(0xb0)](_0x5428e1,_0xfcc98))return;if(_0x53cc74+(-0x44*-0x5e+0x1a7d+-0x3374*0x1)<REFRESH_DELAYS_MS[_0x341867(0xbe)])_0x3df86e(_0x53cc74+(-0x31a*0x4+0x1424+-0x7bb));else this[_0x341867(0xae)][_0x341867(0xa6)](_0x5428e1);});},REFRESH_DELAYS_MS[_0x53cc74]);this[_0x53f0b0(0x9d)][_0x53f0b0(0xb5)](_0x5428e1,_0x4811f5),_0x4811f5[_0x53f0b0(0xb6)]();};_0x3df86e(-0x11b1*0x1+-0x6d7*0x2+0xa75*0x3);}[_0x4356c9(0xa4)](){const _0x4d3596=_0x4356c9;for(const _0x501b4c of this[_0x4d3596(0x9d)][_0x4d3596(0xbf)]())clearTimeout(_0x501b4c);for(const _0x42787b of this[_0x4d3596(0xbb)][_0x4d3596(0xbf)]())clearTimeout(_0x42787b);this[_0x4d3596(0x9d)][_0x4d3596(0x97)](),this[_0x4d3596(0xbb)][_0x4d3596(0x97)](),this[_0x4d3596(0xae)][_0x4d3596(0x97)](),this[_0x4d3596(0xb1)][_0x4d3596(0x97)]();}[_0x4356c9(0xb0)](_0x578394,_0xcf1a6a){const _0x4b4168=_0x4356c9;return!this[_0x4b4168(0xa8)][_0x4b4168(0xa1)]()&&this[_0x4b4168(0xae)][_0x4b4168(0xa2)](_0x578394)===_0xcf1a6a;}}function _0x687d(_0x4077ae,_0x5b0b07){_0x4077ae=_0x4077ae-(-0xb82+-0x21c4+0x2ddb);const _0x4b55df=_0x4998();let _0x581e7f=_0x4b55df[_0x4077ae];if(_0x687d['QaDDpF']===undefined){var _0x46301b=function(_0x5428e1){const _0xd9c53b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xfcc98='',_0x339342='';for(let _0x3df86e=-0x931+-0x1894+-0x4d3*-0x7,_0x53cc74,_0x4811f5,_0x2a67cb=0x10e4+-0x1*-0x259+-0x133d;_0x4811f5=_0x5428e1['charAt'](_0x2a67cb++);~_0x4811f5&&(_0x53cc74=_0x3df86e%(-0x32*-0xa3+-0x95*0x13+-0x14c3)?_0x53cc74*(-0x721*0x1+0x119*-0x16+0x7*0x481)+_0x4811f5:_0x4811f5,_0x3df86e++%(-0xc9*-0x8+0x112*-0x1+0x2*-0x299))?_0xfcc98+=String['fromCharCode'](0xb*0x359+0x2309+0x179f*-0x3&_0x53cc74>>(-(0x259c+0xded+-0x3387)*_0x3df86e&0x1*-0x6ad+-0x1987+0x203a)):0x3*-0x758+0x103a+0x1*0x5ce){_0x4811f5=_0xd9c53b['indexOf'](_0x4811f5);}for(let _0x5b5dc2=0x3c9*-0x6+-0x5f0+-0xe53*-0x2,_0x501b4c=_0xfcc98['length'];_0x5b5dc2<_0x501b4c;_0x5b5dc2++){_0x339342+='%'+('00'+_0xfcc98['charCodeAt'](_0x5b5dc2)['toString'](-0x44*-0x5e+0x1a7d+-0x3365*0x1))['slice'](-(-0x31a*0x4+0x1424+-0x7ba));}return decodeURIComponent(_0x339342);};_0x687d['wXjpgU']=_0x46301b,_0x687d['zkRgeD']={},_0x687d['QaDDpF']=!![];}const _0x3ea79e=_0x4b55df[-0x11b1*0x1+-0x6d7*0x2+0xa75*0x3];_0x687d['ziXItg']!==_0x3ea79e&&(_0x687d['zkRgeD']={},_0x687d['ziXItg']=_0x3ea79e);const _0x4b6421=_0x687d['zkRgeD'][_0x4077ae];return _0x4b6421===undefined?(_0x581e7f=_0x687d['wXjpgU'](_0x581e7f),_0x687d['zkRgeD'][_0x4077ae]=_0x581e7f):_0x581e7f=_0x4b6421,_0x581e7f;}function _0x4998(){const _0x19b804=['Dw5Yzwy','mJuXndq4mhrSzfveDW','C25HChnOB3q','CNvUBMvYCW','nta1mtq3ve9eufvV','C25HChnOB3ruAw1LCNm','DxnLzfrVA2vUCW','ChjVzhvJDa','BgvUz3rO','DMfSDwvZ','nti3ode0DKXHrK92','otHkq2fqyNK','zxH0zxjUywXtzxnZAw9Uswq','mtaZmZG0sxf1Bu5L','odf6rNPpr3q','y2XLyxi','CgvYy2vUDgfNzq','CMvHzenVBNrLEhrvC2fNzq','mtqYmJe5t1jKDxzf','y2f0y2G','ntiYmZq4D1nOrevb','DgLTzxjZ','Bwf4vg9Rzw5Z','mtuWmezrDMTgCW','C2nOzwr1Bgu','C3rVChbLza','z2v0','nuHqt2v6yG','zgLZCg9Zzq','ChvIBgLZAa','zgvSzxrL','CM91BMq','B3b0Aw9UCW','CNvUBMvY','Bw9KzwW','DgHLBG','CMvHza','mJm4mdKWtxj3CfnX','DMvYC2LVBNm','m01Vt1bMtG','y3vYCMvUDa','C25HChnOB3rZ','zMLUywXSEq','D29YA3nWywnLswq','C2vZC2LVBG','C2v0'];_0x4998=function(){return _0x19b804;};return _0x4998();}function sameUsage(_0x2651bf,_0x12a1d8){const _0x45559e=_0x4356c9;return _0x2651bf[_0x45559e(0xaa)]===_0x12a1d8[_0x45559e(0xaa)]&&_0x2651bf[_0x45559e(0xbc)]===_0x12a1d8[_0x45559e(0xbc)]&&_0x2651bf[_0x45559e(0x9e)]===_0x12a1d8[_0x45559e(0x9e)]&&_0x2651bf[_0x45559e(0x98)]===_0x12a1d8[_0x45559e(0x98)];}
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- function _0x55fe(_0x59bcbf,_0x461b79){_0x59bcbf=_0x59bcbf-(0x3e6*0x2+0x129+0x3d0*-0x2);const _0x3010e6=_0x5794();let _0x957afc=_0x3010e6[_0x59bcbf];if(_0x55fe['AfJCrD']===undefined){var _0x1e2feb=function(_0x42e512){const _0x1fa8e4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xfddd74='',_0x53fa6a='';for(let _0x47a98c=0x12b8+-0x1*0x505+0xa7*-0x15,_0x4f0ece,_0xa6f901,_0x498a29=0x15a*-0x1b+0x8b4*0x4+0x1ae;_0xa6f901=_0x42e512['charAt'](_0x498a29++);~_0xa6f901&&(_0x4f0ece=_0x47a98c%(-0x81c+-0x14ea*-0x1+-0xcca)?_0x4f0ece*(-0x18bf+-0xa00+0x22ff)+_0xa6f901:_0xa6f901,_0x47a98c++%(0x1*-0xe21+-0xbd3+-0x19f8*-0x1))?_0xfddd74+=String['fromCharCode'](-0x1*0x23a9+-0x2095*0x1+0xdd9*0x5&_0x4f0ece>>(-(-0x129e+0x1734+-0x494)*_0x47a98c&0xfa5+-0x25*0xbf+-0xbfc*-0x1)):0x21b4+-0x1500*-0x1+-0x36b4){_0xa6f901=_0x1fa8e4['indexOf'](_0xa6f901);}for(let _0x145ab8=0x20bf*0x1+0x1b80+-0x123*0x35,_0x23f1ec=_0xfddd74['length'];_0x145ab8<_0x23f1ec;_0x145ab8++){_0x53fa6a+='%'+('00'+_0xfddd74['charCodeAt'](_0x145ab8)['toString'](-0x1*-0x373+0x1a2d*0x1+-0x1d90))['slice'](-(0x8*0x209+-0xc7e+-0x3c8));}return decodeURIComponent(_0x53fa6a);};_0x55fe['qfYwbr']=_0x1e2feb,_0x55fe['negKAw']={},_0x55fe['AfJCrD']=!![];}const _0x48faf2=_0x3010e6[-0x1*-0x675+0xd79+-0x13ee];_0x55fe['UlJTGB']!==_0x48faf2&&(_0x55fe['negKAw']={},_0x55fe['UlJTGB']=_0x48faf2);const _0x26e32d=_0x55fe['negKAw'][_0x59bcbf];return _0x26e32d===undefined?(_0x957afc=_0x55fe['qfYwbr'](_0x957afc),_0x55fe['negKAw'][_0x59bcbf]=_0x957afc):_0x957afc=_0x26e32d,_0x957afc;}const _0x3115e6=_0x55fe;function _0x5794(){const _0x5f4855=['z2v0','tK9erv9tve9queve','C2v0','u0vtu0LptL9oqvrjvKvFsurFveLnru9vva','ChjVBw90zq','mtu0odb2s3jPve4','CNvUDgLTzq','zgvSzxrL','BwLNCMf0zvf1zxvL','z2v0qwDLBNrtzxnZAw9U','zw1PDfnLC3nPB24','DMfSDwvZ','B3b0Aw9UCW','Dw5Yzwy','uvvfvuve','mtqZotblCKrnyNG','BgLZDenVBNzLCNnHDgLVBLr1CM5Z','D2fPDa','mZy0otm1mgHIBM9Ptq','mtiZnZu1ofDnqwzXtG','BwLNCMf0zvj1BM5LCLn0yxrL','DgLTzxi','C3rHDhvZ','y2XLyxi','zw1PDfj1BG','D2fPDgvYCW','odKWotrfsuD3AMW','mJq0uKr6uvLM','CMvTB3zLqwDLBNrtzxnZAw9U','ChjVBw90zvnLC3nPB25jzgvUDgL0Eq','zw1PDfr1CM4','CMvQzwn0','yM9VDhn0CMfWswrZ','BwfYA0jVB3rZDhjHCa','zw1PDff1zxvL','oti3uMzpBhrb','DhvYBNm','CgvYC2LZDa','BgLZDfj1BNngB3jtzxnZAw9U','mMXfyw5wuW','ntyWmJG2uLHZr2Hd','mJa0ndeZrxftyLDo','BwLNCMf0zunVBw1HBMrZ','zgLZCg9Zzq','CMvZB2X2zq','ywrK','ChjVBwLZzq'];_0x5794=function(){return _0x5f4855;};return _0x5794();}(function(_0x46a0cf,_0x22975a){const _0x33df88=_0x55fe,_0x28602b=_0x46a0cf();while(!![]){try{const _0x37100c=parseInt(_0x33df88(0x155))/(-0xde0+-0x21bc+0x2f9d)*(-parseInt(_0x33df88(0x182))/(0x1*-0x2375+0x19ed+0x98a*0x1))+-parseInt(_0x33df88(0x183))/(0x926*0x2+-0x122a+0x1*-0x1f)+-parseInt(_0x33df88(0x176))/(0x1ba4+-0x2222+0xe*0x77)*(-parseInt(_0x33df88(0x16a))/(0x874*0x1+-0x31+-0x83e))+-parseInt(_0x33df88(0x175))/(0x2589+0xee3+-0x3466)+parseInt(_0x33df88(0x16e))/(0x47*-0x51+0x82a*-0x1+0x1ea8)+-parseInt(_0x33df88(0x160))/(0xc8a+0x26f2+-0x3374)*(parseInt(_0x33df88(0x17e))/(-0x2*-0x10bb+0x16b3+-0x3820))+parseInt(_0x33df88(0x16d))/(-0x1230*0x1+0x59f*0x1+0x7*0x1cd);if(_0x37100c===_0x22975a)break;else _0x28602b['push'](_0x28602b['shift']());}catch(_0x53022d){_0x28602b['push'](_0x28602b['shift']());}}}(_0x5794,-0x4*0xd94c+0x11bd3+0x3feb3));export class SessionIdentityService{[_0x3115e6(0x167)];[_0x3115e6(0x17b)]=new Set();[_0x3115e6(0x174)]=new Map();constructor(_0x4d3efc){const _0x2cb30a=_0x3115e6;this[_0x2cb30a(0x167)]=_0x4d3efc;}[_0x3115e6(0x17c)](_0x4d6637){const _0x4dd625=_0x3115e6;this[_0x4dd625(0x17b)][_0x4dd625(0x159)](_0x4d6637);}[_0x3115e6(0x15f)](_0x51b63f,_0x255c8f){const _0x4ffb91=_0x3115e6,_0x25ca1d=this[_0x4ffb91(0x167)][_0x4ffb91(0x161)][_0x4ffb91(0x164)](_0x51b63f);this[_0x4ffb91(0x167)][_0x4ffb91(0x161)][_0x4ffb91(0x178)](_0x51b63f,_0x255c8f);if(_0x25ca1d!==undefined)this[_0x4ffb91(0x167)][_0x4ffb91(0x180)](_0x25ca1d,_0x255c8f);this[_0x4ffb91(0x167)][_0x4ffb91(0x156)](_0x51b63f,_0x255c8f),this[_0x4ffb91(0x167)][_0x4ffb91(0x163)](_0x51b63f,_0x255c8f),this[_0x4ffb91(0x167)][_0x4ffb91(0x16f)](_0x51b63f,_0x255c8f),this[_0x4ffb91(0x17b)][_0x4ffb91(0x162)](_0x51b63f);const _0x493773=this[_0x4ffb91(0x174)][_0x4ffb91(0x15b)](_0x51b63f);_0x493773!==undefined&&(clearTimeout(_0x493773[_0x4ffb91(0x170)]),this[_0x4ffb91(0x174)][_0x4ffb91(0x162)](_0x51b63f),_0x493773[_0x4ffb91(0x158)](_0x255c8f));const _0x6f3a60=this[_0x4ffb91(0x167)][_0x4ffb91(0x161)][_0x4ffb91(0x164)](_0x255c8f);if(_0x6f3a60===undefined)return;this[_0x4ffb91(0x167)][_0x4ffb91(0x165)](_0x6f3a60);for(const _0x52fa6b of this[_0x4ffb91(0x167)][_0x4ffb91(0x161)][_0x4ffb91(0x181)](_0x255c8f))this[_0x4ffb91(0x167)][_0x4ffb91(0x173)](_0x52fa6b);this[_0x4ffb91(0x167)][_0x4ffb91(0x17d)](_0x255c8f);for(const _0x3921a2 of this[_0x4ffb91(0x167)][_0x4ffb91(0x161)][_0x4ffb91(0x16b)]({'sessionId':_0x255c8f})[_0x4ffb91(0x17f)])if(_0x3921a2[_0x4ffb91(0x171)]!==_0x4ffb91(0x169))this[_0x4ffb91(0x167)][_0x4ffb91(0x179)](_0x3921a2);}[_0x3115e6(0x16c)](_0x4b2a4b){const _0x5bfecd=_0x3115e6,_0x117cca=this[_0x5bfecd(0x174)][_0x5bfecd(0x15b)](_0x4b2a4b);if(_0x117cca!==undefined)return _0x117cca[_0x5bfecd(0x15a)];let _0x237c0f,_0xd99700;const _0x2df73e=new Promise((_0x1e71ef,_0x2141d1)=>{_0x237c0f=_0x1e71ef,_0xd99700=_0x2141d1;}),_0x15640c=setTimeout(()=>{const _0x41932d=_0x5bfecd;this[_0x41932d(0x174)][_0x41932d(0x162)](_0x4b2a4b),_0xd99700(new Error(_0x41932d(0x15e)));},0xb8d*0x8+-0x2034+0x824*0x7);return _0x15640c[_0x5bfecd(0x168)](),this[_0x5bfecd(0x174)][_0x5bfecd(0x15d)](_0x4b2a4b,{'promise':_0x2df73e,'resolve':_0x237c0f,'reject':_0xd99700,'timer':_0x15640c}),_0x2df73e;}[_0x3115e6(0x17a)](_0x3a4c21,_0x44f1b2){const _0xe14e73=_0x3115e6,_0x2df831=this[_0xe14e73(0x174)][_0xe14e73(0x15b)](_0x3a4c21);if(_0x2df831===undefined)return;clearTimeout(_0x2df831[_0xe14e73(0x170)]),this[_0xe14e73(0x174)][_0xe14e73(0x162)](_0x3a4c21),_0x2df831[_0xe14e73(0x17a)](new Error(_0x44f1b2)),queueMicrotask(()=>{const _0x20edc9=_0xe14e73;try{this[_0x20edc9(0x167)][_0x20edc9(0x161)][_0x20edc9(0x177)](_0x3a4c21),this[_0x20edc9(0x17b)][_0x20edc9(0x162)](_0x3a4c21);}catch{}});}[_0x3115e6(0x157)](){const _0x18c107=_0x3115e6;for(const _0x34bcaa of this[_0x18c107(0x174)][_0x18c107(0x166)]()){clearTimeout(_0x34bcaa[_0x18c107(0x170)]),_0x34bcaa[_0x18c107(0x17a)](new Error(_0x18c107(0x15c)));}this[_0x18c107(0x174)][_0x18c107(0x172)](),this[_0x18c107(0x17b)][_0x18c107(0x172)]();}}
2
+ const _0x3f60a3=_0x353a;function _0x353a(_0x306084,_0x4469f3){_0x306084=_0x306084-(0x1982+0x13*0xac+0x2*-0x1286);const _0x369965=_0xa034();let _0x49e31e=_0x369965[_0x306084];if(_0x353a['eyvxIL']===undefined){var _0x2db310=function(_0x4793db){const _0x423fe2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x245e1f='',_0x3a0010='';for(let _0x447ac6=0x1*-0x17c0+0x2515+-0xd55,_0x4a95c8,_0x54f149,_0x3c452a=0x1e48+-0x1*-0xc7c+-0x142*0x22;_0x54f149=_0x4793db['charAt'](_0x3c452a++);~_0x54f149&&(_0x4a95c8=_0x447ac6%(-0x2*-0xa3d+-0x1*0x1a15+-0x59f*-0x1)?_0x4a95c8*(0x1*-0x15cd+-0x5*-0x127+0x104a)+_0x54f149:_0x54f149,_0x447ac6++%(0x543+0x1fd+0x4*-0x1cf))?_0x245e1f+=String['fromCharCode'](0x1*-0x8dd+-0x15c+0xb38&_0x4a95c8>>(-(0x19a8+0x1f81+-0x130d*0x3)*_0x447ac6&-0x1c*-0xec+-0x8c8*0x4+0x956)):-0xc42+0x3da+0x8*0x10d){_0x54f149=_0x423fe2['indexOf'](_0x54f149);}for(let _0x9d2e34=-0x25e4+0x1529*0x1+0x1*0x10bb,_0x36d774=_0x245e1f['length'];_0x9d2e34<_0x36d774;_0x9d2e34++){_0x3a0010+='%'+('00'+_0x245e1f['charCodeAt'](_0x9d2e34)['toString'](0x2680+-0x8df+0x105*-0x1d))['slice'](-(-0x1642+0x14*0x82+-0x3e*-0x32));}return decodeURIComponent(_0x3a0010);};_0x353a['HBOICL']=_0x2db310,_0x353a['CvHvFO']={},_0x353a['eyvxIL']=!![];}const _0x5f0d40=_0x369965[0x1b08+0x26e9+-0x41f1*0x1];_0x353a['sTZRNK']!==_0x5f0d40&&(_0x353a['CvHvFO']={},_0x353a['sTZRNK']=_0x5f0d40);const _0xe61ff0=_0x353a['CvHvFO'][_0x306084];return _0xe61ff0===undefined?(_0x49e31e=_0x353a['HBOICL'](_0x49e31e),_0x353a['CvHvFO'][_0x306084]=_0x49e31e):_0x49e31e=_0xe61ff0,_0x49e31e;}(function(_0x3e8114,_0x4b5883){const _0x1c8ff6=_0x353a,_0x2ed6bc=_0x3e8114();while(!![]){try{const _0x1a99c6=-parseInt(_0x1c8ff6(0x143))/(-0x12c4*0x2+0x14c*0x11+-0xd*-0x131)*(parseInt(_0x1c8ff6(0x144))/(-0x16*-0x17f+-0x563*-0x1+-0x264b))+parseInt(_0x1c8ff6(0x161))/(-0x1*0x18a9+0x130b*-0x2+-0x1d*-0x22a)+parseInt(_0x1c8ff6(0x156))/(-0x3be+-0x450+-0x2*-0x409)*(parseInt(_0x1c8ff6(0x15b))/(0xaf6+-0x23*-0xb0+-0x2301))+-parseInt(_0x1c8ff6(0x160))/(0x18bb+0x1081+-0x2936)+-parseInt(_0x1c8ff6(0x15a))/(0x88+-0x1*0x1871+0x17f0)+-parseInt(_0x1c8ff6(0x14c))/(0x642*0x3+-0xac3+-0x3*0x2a9)*(-parseInt(_0x1c8ff6(0x159))/(-0x411+-0x6fe+0xb18))+-parseInt(_0x1c8ff6(0x142))/(-0x1f*-0xc1+-0x2*0xfee+-0x3b*-0x25)*(-parseInt(_0x1c8ff6(0x152))/(0x1*0x14fe+-0x778+0xcb*-0x11));if(_0x1a99c6===_0x4b5883)break;else _0x2ed6bc['push'](_0x2ed6bc['shift']());}catch(_0x22985e){_0x2ed6bc['push'](_0x2ed6bc['shift']());}}}(_0xa034,0xe5ff0+0xf*0x6f+-0x16421*0x5));export class SessionIdentityService{[_0x3f60a3(0x13d)];[_0x3f60a3(0x145)]=new Set();[_0x3f60a3(0x146)]=new Map();constructor(_0x35d66b){const _0x43e743=_0x3f60a3;this[_0x43e743(0x13d)]=_0x35d66b;}[_0x3f60a3(0x155)](_0x2ebe3b){const _0x10519b=_0x3f60a3;this[_0x10519b(0x145)][_0x10519b(0x151)](_0x2ebe3b);}[_0x3f60a3(0x158)](_0x2fde3b,_0x114b25){const _0xe267b7=_0x3f60a3,_0x48adb8=this[_0xe267b7(0x13d)][_0xe267b7(0x149)][_0xe267b7(0x13e)](_0x2fde3b);this[_0xe267b7(0x13d)][_0xe267b7(0x149)][_0xe267b7(0x15f)](_0x2fde3b,_0x114b25);if(_0x48adb8!==undefined)this[_0xe267b7(0x13d)][_0xe267b7(0x147)](_0x48adb8,_0x114b25);this[_0xe267b7(0x13d)][_0xe267b7(0x165)](_0x2fde3b,_0x114b25),this[_0xe267b7(0x13d)][_0xe267b7(0x13b)](_0x2fde3b,_0x114b25),this[_0xe267b7(0x13d)][_0xe267b7(0x166)](_0x2fde3b,_0x114b25),this[_0xe267b7(0x145)][_0xe267b7(0x162)](_0x2fde3b);const _0xfda43c=this[_0xe267b7(0x146)][_0xe267b7(0x14d)](_0x2fde3b);_0xfda43c!==undefined&&(clearTimeout(_0xfda43c[_0xe267b7(0x163)]),this[_0xe267b7(0x146)][_0xe267b7(0x162)](_0x2fde3b),_0xfda43c[_0xe267b7(0x157)](_0x114b25));const _0x5b49da=this[_0xe267b7(0x13d)][_0xe267b7(0x149)][_0xe267b7(0x13e)](_0x114b25);if(_0x5b49da===undefined)return;this[_0xe267b7(0x13d)][_0xe267b7(0x13f)](_0x5b49da);for(const _0x1ecddd of this[_0xe267b7(0x13d)][_0xe267b7(0x149)][_0xe267b7(0x13c)](_0x114b25))this[_0xe267b7(0x13d)][_0xe267b7(0x14f)](_0x1ecddd);this[_0xe267b7(0x13d)][_0xe267b7(0x15e)](_0x114b25);for(const _0x3d064f of this[_0xe267b7(0x13d)][_0xe267b7(0x149)][_0xe267b7(0x148)]({'sessionId':_0x114b25})[_0xe267b7(0x140)])this[_0xe267b7(0x13d)][_0xe267b7(0x167)](_0x3d064f);}[_0x3f60a3(0x15c)](_0x285278){const _0x2d2fe6=_0x3f60a3,_0x475369=this[_0x2d2fe6(0x146)][_0x2d2fe6(0x14d)](_0x285278);if(_0x475369!==undefined)return _0x475369[_0x2d2fe6(0x153)];let _0x4e21e0,_0x1514a2;const _0x36b879=new Promise((_0x3304ad,_0x423d09)=>{_0x4e21e0=_0x3304ad,_0x1514a2=_0x423d09;}),_0x482301=setTimeout(()=>{const _0x3708dd=_0x2d2fe6;this[_0x3708dd(0x146)][_0x3708dd(0x162)](_0x285278),_0x1514a2(new Error(_0x3708dd(0x14b)));},0x1f3+0x3*-0x399b+0x1200e);return _0x482301[_0x2d2fe6(0x13a)](),this[_0x2d2fe6(0x146)][_0x2d2fe6(0x15d)](_0x285278,{'promise':_0x36b879,'resolve':_0x4e21e0,'reject':_0x1514a2,'timer':_0x482301}),_0x36b879;}[_0x3f60a3(0x14a)](_0x25aaa8,_0x103857){const _0x4f006f=_0x3f60a3,_0x361c47=this[_0x4f006f(0x146)][_0x4f006f(0x14d)](_0x25aaa8);if(_0x361c47===undefined)return;clearTimeout(_0x361c47[_0x4f006f(0x163)]),this[_0x4f006f(0x146)][_0x4f006f(0x162)](_0x25aaa8),_0x361c47[_0x4f006f(0x14a)](new Error(_0x103857)),queueMicrotask(()=>{const _0x2c8186=_0x4f006f;try{this[_0x2c8186(0x13d)][_0x2c8186(0x149)][_0x2c8186(0x164)](_0x25aaa8),this[_0x2c8186(0x145)][_0x2c8186(0x162)](_0x25aaa8);}catch{}});}[_0x3f60a3(0x141)](){const _0x147898=_0x3f60a3;for(const _0x321d44 of this[_0x147898(0x146)][_0x147898(0x14e)]()){clearTimeout(_0x321d44[_0x147898(0x163)]),_0x321d44[_0x147898(0x14a)](new Error(_0x147898(0x154)));}this[_0x147898(0x146)][_0x147898(0x150)](),this[_0x147898(0x145)][_0x147898(0x150)]();}}function _0xa034(){const _0xbbba96=['u0vtu0LptL9oqvrjvKvFsurFveLnru9vva','mtq5mdi2nfPOtMn0rG','z2v0','DMfSDwvZ','zw1PDfj1BG','y2XLyxi','ywrK','odHIugvXseu','ChjVBwLZzq','tK9erv9tve9queve','BwfYA0jVB3rZDhjHCa','mtm3mJm2wNvMAeTr','CMvZB2X2zq','ChjVBw90zq','mtHmt1vhzKq','mJm3nJCXy0fmre95','ntvSr2Dpsue','D2fPDa','C2v0','zw1PDff1zxvL','ChjVBw90zvnLC3nPB25jzgvUDgL0Eq','mtmYodu1mg1swNPStq','nZuWmtuZt3Druffk','zgvSzxrL','DgLTzxi','CMvTB3zLqwDLBNrtzxnZAw9U','BwLNCMf0zunVBw1HBMrZ','BwLNCMf0zvj1BM5LCLn0yxrL','zw1PDfr1CM4','Dw5Yzwy','BwLNCMf0zvf1zxvL','BgLZDfj1BNngB3jtzxnZAw9U','B3b0Aw9UCW','z2v0qwDLBNrtzxnZAw9U','zw1PDfnLC3nPB24','DhvYBNm','zgLZCg9Zzq','mtmZndaWtLHwAwjs','mvzXr2vTCG','nZi2otq4q21PqK1H','yM9VDhn0CMfWswrZ','D2fPDgvYCW','CgvYC2LZDa','BgLZDenVBNzLCNnHDgLVBLr1CM5Z','CNvUDgLTzq','CMvQzwn0'];_0xa034=function(){return _0xbbba96;};return _0xa034();}