@myagentroam/node 0.9.13 → 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
- 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
- const _0x5ce6bc=_0x1fdd;function _0x24a4(){const _0x4d0051=['zgvSzxrL','CNvUoG','mJr6yNHXB1q','BM93','Cgf5Bg9Hza','CgXHBG','y3vZDg9TvgL0Bgu','zw1PDe5VDW','C3rYAw5N','DMfSDwvZ','Cgf1C2vrDwv1zq','y29UDMvYC2f0Aw9U','yxbWCM92ywWUCMvXDwvZDa','CgvUzgLUz1rLEhq','CxvLC3rPB25Z','C2vXDwvUy2u','AxnbCNjHEq','u0vtu0LptL9tvefsvf9gquLmruq','yxbWCM92ywXjza','mJa5ntm4AfLZwef4','zgLZCgf0y2HrDwv1zq','C2vZC2LVBG','zw1PDfDVCMTIzw5JAa','zMX1C2HuzxH0','C2vZC2LVBKLK','AxncB290C3rYyxbtzxnZAw9U','Aw5PDgLHDgvKqNLvC2vYswq','mMD4BKzREq','C2vZC2LVBLf1zxvL','C2v0','ywn0AxzL','CMvMCMvZAfDVCMTZCgfJzvnLC3nPB25Z','Dgv4Da','zMX1C2Hqzw5KAw5Nvgv4Da','rKfjteve','zw1PDa','AxntywzLsw50zwDLCG','C2nOzwr1BgvdB250zxH0uMvMCMvZAa','AxrLBuLK','z2v0qwDLBNrtzxnZAw9U','y29UDMvYC2f0Aw9UlML0zw0','mZuYntCYtunzrND2','Dgv4Dc5KzwX0yq','y2XLyw51Cef0DgfJAg1LBNrZ','CNvUBMvYvgL0Bgu','CMvTB3zLuxvLDwvKu3rHCNq','uLvox1rfuK1jtKfm','u1vdq0vfreve','ntaXodeYChnHyKDw','y2XLyxi','DxnLCKLK','qvbquK9wquXFuKvrvuLsruq','mta0otKXn0jVv3rtrq','DgLTzxi','BM90AwzPy2f0Aw9U','CMvTB3zLvgvYBwLUywXsDw4','CNvUBMvYrMfPBgvK','BgvUz3rO','ntrIrfDnAxe','z2v0uNvU','C3rHDgu','y3jLyxrLzef0','D29YA3nWywnLswq','mtbItKvrBLK','mtyZmtGXnNfewNvdvG','CNvUswrZ','yxbWzw5KuNvUrxzLBNq','z2v0','DxnLCL9PBNb1Df9Yzxf1zxn0','yxbWCM92ywW6','Bwv0CMLJCW','A2LUza','DxnLCI1PBNb1DdO','CgXHBJO','mJe1otG2mfnRzfbwvW','ueXbtL9srufewq','vvnfuL9jtLbvvf9srvfvsvjfra','CMvQzwn0qM9VDhn0CMfW','mJaWmJG5BxPItMrb','AgfZ','Aw50zxjYDxb0uMvXDwvZDgvK','CNvUDgLTzq','CNvUlMv2zw50','zw5XDwv1zvrLEhq','BgfZDfj1BLnLCxvLBMnL','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','ChjLC2vUDfnLC3nPB24','B3b0Aw9UCW','zxHWAxjLsw1Hz2vZ','CNvU','BM90AwzPy2f0Aw9Uugf5Bg9Hza','oxfkrfnbCa'];_0x24a4=function(){return _0x4d0051;};return _0x24a4();}(function(_0x435294,_0x53205f){const _0x1133ae=_0x1fdd,_0x36eb60=_0x435294();while(!![]){try{const _0x1f9b1e=parseInt(_0x1133ae(0xf8))/(-0x1401*-0x1+0x5*-0xb+-0x1*0x13c9)+parseInt(_0x1133ae(0x121))/(0x1648*-0x1+0x133d*-0x1+-0x1*-0x2987)*(parseInt(_0x1133ae(0x12f))/(-0x129a+0xe68*0x1+0x1*0x435))+parseInt(_0x1133ae(0xda))/(0x4*0x2dc+0x1c58+-0x27c4*0x1)*(-parseInt(_0x1133ae(0xe9))/(-0xa01+-0x24f*-0x6+-0x3d4))+-parseInt(_0x1133ae(0xe4))/(-0x194c+0x7ab+0x11a7*0x1)*(-parseInt(_0x1133ae(0x119))/(-0x1b43+0x1*-0x1891+-0x9*-0x5c3))+-parseInt(_0x1133ae(0xea))/(0x52*-0x6d+-0x103e*-0x2+0x276)+-parseInt(_0x1133ae(0x105))/(0x16dc+-0xff1*0x2+0x90f)*(-parseInt(_0x1133ae(0xf4))/(-0x33*-0xa4+0x32*-0x2+0x1*-0x203e))+parseInt(_0x1133ae(0xde))/(0xf*-0x1ff+-0xee5+0x2ce1)*(-parseInt(_0x1133ae(0x108))/(0x1*0x1c03+0xae6+0x1*-0x26dd));if(_0x1f9b1e===_0x53205f)break;else _0x36eb60['push'](_0x36eb60['shift']());}catch(_0x520218){_0x36eb60['push'](_0x36eb60['shift']());}}}(_0x24a4,0x4be87+0x22f80+0x1b5*-0x2a7));import{nodeLog}from'../operational.js';import{isPlainRecord,isTerminalRunStatus}from'../util/node-operation-parsers.js';const COALESCE_MS=-0x4*-0x94f+0x13e0+-0x3854,MAX_BATCH_CHARS=0x6cc9+0x106d*0x5+-0x7eea;function _0x1fdd(_0x3a674d,_0x246dfa){_0x3a674d=_0x3a674d-(0x2338+0x1ee9+-0x414c);const _0x2617b3=_0x24a4();let _0x4697b2=_0x2617b3[_0x3a674d];if(_0x1fdd['MTMnUc']===undefined){var _0x29c5df=function(_0x17c12b){const _0x2f264d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x23f61a='',_0x480803='';for(let _0x6efd86=-0x3fc*-0x1+0x79e*-0x2+0xc*0xf0,_0x30de5c,_0xc34b37,_0x2ac637=-0xede+0x6e6*-0x3+0x2390;_0xc34b37=_0x17c12b['charAt'](_0x2ac637++);~_0xc34b37&&(_0x30de5c=_0x6efd86%(0xc30+-0xa*-0x31a+-0x2b30)?_0x30de5c*(0x2704+0xe9*0x10+-0x3554*0x1)+_0xc34b37:_0xc34b37,_0x6efd86++%(0x139a+0x513*0x3+-0x22cf))?_0x23f61a+=String['fromCharCode'](-0x202*0x4+-0x1*0x527+0xe2e&_0x30de5c>>(-(-0x1b86+-0xdad*0x2+0x1*0x36e2)*_0x6efd86&-0xb*-0xea+-0x47*-0x13+0xf4d*-0x1)):-0x2057*-0x1+-0x1b37+-0x520*0x1){_0xc34b37=_0x2f264d['indexOf'](_0xc34b37);}for(let _0x183ba8=-0xb19+0xf01+0xfa*-0x4,_0x394762=_0x23f61a['length'];_0x183ba8<_0x394762;_0x183ba8++){_0x480803+='%'+('00'+_0x23f61a['charCodeAt'](_0x183ba8)['toString'](-0x4bd*-0x4+-0xe4d+-0x497))['slice'](-(0x1e95+0x25*-0x72+-0xe19));}return decodeURIComponent(_0x480803);};_0x1fdd['nTEXxT']=_0x29c5df,_0x1fdd['ceRPWy']={},_0x1fdd['MTMnUc']=!![];}const _0x4fd594=_0x2617b3[-0xc7*-0x2b+0x1*-0x194f+0x40f*-0x2];_0x1fdd['tgBpVz']!==_0x4fd594&&(_0x1fdd['ceRPWy']={},_0x1fdd['tgBpVz']=_0x4fd594);const _0x5547f7=_0x1fdd['ceRPWy'][_0x3a674d];return _0x5547f7===undefined?(_0x4697b2=_0x1fdd['nTEXxT'](_0x4697b2),_0x1fdd['ceRPWy'][_0x3a674d]=_0x4697b2):_0x4697b2=_0x5547f7,_0x4697b2;}export class RunEventService{[_0x5ce6bc(0x101)];[_0x5ce6bc(0x113)]=new Map();constructor(_0xe4dea3){const _0x4637e9=_0x5ce6bc;this[_0x4637e9(0x101)]=_0xe4dea3;}[_0x5ce6bc(0x129)](_0x1d0795,_0x3472df,_0x4a2d22,_0x3a3bdd){const _0x1fde69=_0x5ce6bc;if(_0x3472df===_0x1fde69(0x130)&&_0x3a3bdd===undefined&&isPlainRecord(_0x4a2d22)&&typeof _0x4a2d22[_0x1fde69(0x126)]===_0x1fde69(0x10e)){this[_0x1fde69(0xfd)](_0x1d0795,_0x4a2d22[_0x1fde69(0x126)],typeof _0x4a2d22[_0x1fde69(0x12c)]===_0x1fde69(0x10e)?_0x4a2d22[_0x1fde69(0x12c)]:undefined);return;}this[_0x1fde69(0x11d)](_0x1d0795),this[_0x1fde69(0x10d)](_0x1d0795,_0x3472df,_0x4a2d22,_0x3a3bdd);}[_0x5ce6bc(0xdb)](){const _0x414ef2=_0x5ce6bc;for(const _0x323ba8 of this[_0x414ef2(0x113)][_0x414ef2(0x10f)]())clearTimeout(_0x323ba8[_0x414ef2(0xdf)]);this[_0x414ef2(0x113)][_0x414ef2(0xdb)]();}[_0x5ce6bc(0x127)](_0x3bf5e1){const _0xe84eae=_0x5ce6bc;this[_0xe84eae(0x11d)](_0x3bf5e1);}[_0x5ce6bc(0xfd)](_0x361e28,_0x4f0da4,_0x25939c){const _0x24212d=_0x5ce6bc;if(_0x4f0da4[_0x24212d(0xe3)]===0x1934+0x2*-0x78b+-0xa1e)return;const _0x4df841=this[_0x24212d(0x113)][_0x24212d(0xed)](_0x361e28);if(_0x4df841!==undefined&&_0x4df841[_0x24212d(0x12c)]===_0x25939c){_0x4df841[_0x24212d(0x126)]+=_0x4f0da4;if(_0x4df841[_0x24212d(0x126)][_0x24212d(0xe3)]>=MAX_BATCH_CHARS)this[_0x24212d(0x11d)](_0x361e28);return;}if(_0x4df841!==undefined)this[_0x24212d(0x11d)](_0x361e28);const _0x15d1c8=setTimeout(()=>this[_0x24212d(0x11d)](_0x361e28),COALESCE_MS);this[_0x24212d(0x113)][_0x24212d(0x123)](_0x361e28,{'text':_0x4f0da4,..._0x25939c===undefined?{}:{'itemId':_0x25939c},'timer':_0x15d1c8});}[_0x5ce6bc(0x11d)](_0x5b3402){const _0x54045c=_0x5ce6bc,_0x561ebb=this[_0x54045c(0x113)][_0x54045c(0xed)](_0x5b3402);if(_0x561ebb===undefined)return;clearTimeout(_0x561ebb[_0x54045c(0xdf)]),this[_0x54045c(0x113)][_0x54045c(0x106)](_0x5b3402),this[_0x54045c(0x10d)](_0x5b3402,_0x54045c(0x130),{'text':_0x561ebb[_0x54045c(0x126)],..._0x561ebb[_0x54045c(0x12c)]===undefined?{}:{'itemId':_0x561ebb[_0x54045c(0x12c)]}});}[_0x5ce6bc(0x10d)](_0x57290a,_0xe794ae,_0x326e91,_0x90bdc7){const _0x24bf02=_0x5ce6bc;if(this[_0x24bf02(0x101)][_0x24bf02(0xfb)][_0x24bf02(0xe5)](_0x57290a)===undefined)return;const _0xc888fa=this[_0x24bf02(0x104)](_0x57290a,_0xe794ae,_0x326e91,_0x90bdc7),_0x5d6cd2={'runId':_0x57290a,'sequence':this[_0x24bf02(0x101)][_0x24bf02(0xfb)][_0x24bf02(0xfe)](_0x57290a)+(-0x155c*-0x1+0x1f*0xa9+-0x29d2),'eventType':_0xe794ae,'payload':_0x326e91,..._0x90bdc7===undefined?{}:{'status':_0x90bdc7}};if(_0xe794ae!==_0x24bf02(0x130))nodeLog(_0x24bf02(0xfc),{'runId':_0x57290a,'eventType':_0xe794ae,'status':_0x90bdc7});if(_0x90bdc7===_0x24bf02(0x128))this[_0x24bf02(0x101)][_0x24bf02(0xf0)][_0x24bf02(0xe2)]();let _0xb53e4=undefined;try{_0xb53e4=this[_0x24bf02(0x101)][_0x24bf02(0xfb)][_0x24bf02(0xec)]({'runId':_0x57290a,'sequence':_0x5d6cd2[_0x24bf02(0x115)],'eventType':_0xe794ae,'payload':_0x326e91,..._0x90bdc7===undefined?{}:{'status':_0x90bdc7}});}catch{}if(_0x90bdc7!==undefined&&isTerminalRunStatus(_0x90bdc7)){this[_0x24bf02(0x101)][_0x24bf02(0xe6)][_0x24bf02(0x124)][_0x24bf02(0x106)](_0x57290a),this[_0x24bf02(0x101)][_0x24bf02(0xe6)][_0x24bf02(0xfa)][_0x24bf02(0x106)](_0x57290a);const _0x1737db=this[_0x24bf02(0x101)][_0x24bf02(0xfb)][_0x24bf02(0xe5)](_0x57290a);if(_0x1737db!==undefined&&this[_0x24bf02(0x101)][_0x24bf02(0x11f)](_0x1737db[_0x24bf02(0x11e)]))this[_0x24bf02(0x101)][_0x24bf02(0xf7)](_0x1737db[_0x24bf02(0x11e)],_0x24bf02(0x117));}if(_0x90bdc7!==undefined){const _0xa2254e=this[_0x24bf02(0x101)][_0x24bf02(0xfb)][_0x24bf02(0xe5)](_0x57290a);this[_0x24bf02(0x101)][_0x24bf02(0x11c)](_0x24bf02(0x103),{'run':_0xa2254e});const _0x48ae06=_0xa2254e===undefined?undefined:this[_0x24bf02(0x101)][_0x24bf02(0xfb)][_0x24bf02(0x12d)](_0xa2254e[_0x24bf02(0x11e)]);if(_0x48ae06!==undefined)this[_0x24bf02(0x101)][_0x24bf02(0x11c)](_0x24bf02(0x11b),{'session':this[_0x24bf02(0x101)][_0x24bf02(0x100)](_0x48ae06)});}this[_0x24bf02(0x101)][_0x24bf02(0x11c)](_0x24bf02(0x111),{'event':{..._0x5d6cd2,'createdAt':_0xb53e4?.[_0x24bf02(0xe7)]??Date[_0x24bf02(0x109)]()}});if(_0xc888fa!==undefined){const _0x569c99=_0xb53e4?.[_0x24bf02(0xe7)]??Date[_0x24bf02(0x109)]();nodeLog(_0x24bf02(0xfc),{'runId':_0x57290a,'eventType':_0x24bf02(0xe0)}),this[_0x24bf02(0x101)][_0x24bf02(0x11c)](_0x24bf02(0x111),{'event':{'runId':_0x57290a,'sequence':_0x5d6cd2[_0x24bf02(0x115)],'eventType':_0x24bf02(0xe0),'payload':{..._0xc888fa,'occurredAt':_0x569c99},'createdAt':_0x569c99}});}if(_0x90bdc7===undefined||!isTerminalRunStatus(_0x90bdc7))return;const _0x222555=this[_0x24bf02(0x101)][_0x24bf02(0xfb)][_0x24bf02(0xff)](_0x57290a);if(_0x222555!==undefined)this[_0x24bf02(0x101)][_0x24bf02(0x11c)](_0x24bf02(0x111),{'turn':_0x222555});this[_0x24bf02(0x101)][_0x24bf02(0xd5)](_0x57290a),this[_0x24bf02(0x101)][_0x24bf02(0x102)](_0x57290a),this[_0x24bf02(0x101)][_0x24bf02(0xd7)](_0x57290a);const _0x42008a=this[_0x24bf02(0x101)][_0x24bf02(0xfb)][_0x24bf02(0xe5)](_0x57290a);if(_0x42008a!==undefined){this[_0x24bf02(0x101)][_0x24bf02(0x12b)](_0x42008a[_0x24bf02(0x11e)]),this[_0x24bf02(0x101)][_0x24bf02(0x125)](_0x42008a[_0x24bf02(0xe8)]);if(_0x90bdc7===_0x24bf02(0x128))this[_0x24bf02(0x101)][_0x24bf02(0x110)](_0x42008a[_0x24bf02(0x11e)]);this[_0x24bf02(0x101)][_0x24bf02(0xfb)][_0x24bf02(0xe1)](_0x57290a);if(_0x90bdc7!==_0x24bf02(0x128))void this[_0x24bf02(0x101)][_0x24bf02(0x11a)](_0x42008a[_0x24bf02(0x11e)]);}}[_0x5ce6bc(0x104)](_0x46d251,_0x1e3c02,_0x3f18c4,_0x1525b5){const _0x570446=_0x5ce6bc;if(_0x1e3c02===_0x570446(0xe0))return undefined;const _0x23388d=this[_0x570446(0x101)][_0x570446(0xfb)][_0x570446(0xe5)](_0x46d251);if(_0x23388d===undefined)return undefined;const _0x1c4d81=this[_0x570446(0x101)][_0x570446(0xfb)][_0x570446(0x12d)](_0x23388d[_0x570446(0x11e)]);if(_0x1c4d81===undefined)return undefined;const _0x550360={'userId':_0x23388d[_0x570446(0x120)],'workspaceId':_0x23388d[_0x570446(0xe8)],'sessionId':_0x23388d[_0x570446(0x11e)],'sessionTitle':_0x1c4d81[_0x570446(0x10c)]??_0x1c4d81[_0x570446(0xd6)]??_0x1c4d81['id'],'runId':_0x46d251};if(!Number[_0x570446(0x12a)](_0x550360[_0x570446(0xdc)]))return undefined;if(_0x1525b5!==undefined&&isTerminalRunStatus(_0x1525b5)){if(this[_0x570446(0x101)][_0x570446(0xe6)][_0x570446(0xfa)][_0x570446(0xf9)](_0x46d251))return undefined;if(_0x1525b5===_0x570446(0xd9)&&this[_0x570446(0x101)][_0x570446(0xfb)][_0x570446(0x122)](_0x23388d[_0x570446(0x11e)])[_0x570446(0xeb)][_0x570446(0xe3)]>0xe83+0x1e1e+-0x2ca1)return undefined;return{..._0x550360,'notificationId':_0x570446(0x107)+_0x23388d[_0x570446(0xe8)]+':'+_0x46d251,'kind':_0x570446(0xd8),'outcome':_0x1525b5};}if(_0x1e3c02===_0x570446(0x112)&&isPlainRecord(_0x3f18c4)){const _0x1b938a=_0x3f18c4[_0x570446(0x118)];if(typeof _0x1b938a!==_0x570446(0x10e))return undefined;return{..._0x550360,'notificationId':_0x570446(0xef)+_0x23388d[_0x570446(0xe8)]+':'+_0x46d251+':'+_0x1b938a,'kind':_0x570446(0xdd)};}if(_0x1e3c02!==_0x570446(0x12e)||!isPlainRecord(_0x3f18c4))return undefined;if(_0x3f18c4[_0x570446(0xf1)]===_0x570446(0x10b)&&typeof _0x3f18c4[_0x570446(0x12c)]===_0x570446(0x10e))return{..._0x550360,'notificationId':_0x570446(0xf3)+_0x23388d[_0x570446(0xe8)]+':'+_0x46d251+':'+_0x3f18c4[_0x570446(0x12c)],'kind':_0x570446(0xf5)};if(_0x3f18c4[_0x570446(0xf1)]===_0x570446(0xee)&&typeof _0x3f18c4[_0x570446(0x12c)]===_0x570446(0x10e)&&isPlainRecord(_0x3f18c4[_0x570446(0x10a)])&&Array[_0x570446(0x116)](_0x3f18c4[_0x570446(0x10a)][_0x570446(0x114)])&&_0x3f18c4[_0x570446(0x10a)][_0x570446(0x114)][_0x570446(0xe3)]>-0x1*-0x181d+-0x187a+0x5d)return{..._0x550360,'notificationId':_0x570446(0xf2)+_0x23388d[_0x570446(0xe8)]+':'+_0x46d251+':'+_0x3f18c4[_0x570446(0x12c)],'kind':_0x570446(0xf6)};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();}
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x22579d=_0x39cc;(function(_0x57134d,_0x4a8491){const _0x417edd=_0x39cc,_0x49a97c=_0x57134d();while(!![]){try{const _0x601af9=-parseInt(_0x417edd(0x10e))/(0x165f*0x1+-0x113e+-0x520)*(-parseInt(_0x417edd(0x145))/(-0x4bd*0x7+0x1d9*-0x1+0x2306*0x1))+-parseInt(_0x417edd(0x105))/(-0x1702*0x1+0x8cb+0xe3a)*(-parseInt(_0x417edd(0x150))/(-0x15a0+-0x281*0x5+0x2229))+parseInt(_0x417edd(0x12c))/(-0x1c14+-0x9b*-0x5+0xc89*0x2)+-parseInt(_0x417edd(0x136))/(0xfa+0x106c+0x458*-0x4)+-parseInt(_0x417edd(0x14b))/(-0xea8+0xa11+0x49e)*(-parseInt(_0x417edd(0x13f))/(-0xa6*-0x2d+-0x2491+0x76b))+parseInt(_0x417edd(0x154))/(-0xb84+-0x64b+0x11d8)+-parseInt(_0x417edd(0x115))/(0x1*0xb47+0x81*-0x2f+-0x12*-0xb1);if(_0x601af9===_0x4a8491)break;else _0x49a97c['push'](_0x49a97c['shift']());}catch(_0x18f8ee){_0x49a97c['push'](_0x49a97c['shift']());}}}(_0x3b8f,-0x367e1+0x3dde2+0x2*0x14750));import{randomUUID}from'node:crypto';function _0x3b8f(){const _0x27b056=['y3jLyxrLza','nJmXmJnXqurkzKG','u1rbuLrfra','C2vJCMv0rw52AxjVBM1LBNq','zMLUza','ChjLC2vUDa','zxH0zxjUywXtzxnZAw9Uswq','zw5XDwv1zq','ywrTAw4','C3rYAw5N','muLrCxPPtW','C2vYDMLJzvrPzxi','y2XLyw51Ca','C2v0DgXLrw5XDwv1zq','y29TBwfUzhm','y2XPzw50twvZC2fNzuLK','zw1PDfnLC3nPB24','mtyXntq2meHkr2X6Bq','zMfZDa','AxnbCNjHEq','DxbSB2fKCW','C2v0','BgvUz3rO','y29UC3vTzq','tuvtu0fhrv9jtLzbteLe','x19Yzxf1zxn0vxnLCKLK','C2v0vgvTCg9Yyxj5vgL0BgvjzK1PC3nPBMC','AxnrDwv1zwrsDw4','y29UDgvUDa','yxr0ywnOBwvUDhm','CNvUBMvYCW','uvvfvuu','CNvUBMvY','CMvXDwLYzq','tuvtu0fhrv9bvfrbq0Hnru5uu19jtLzbteLe','zgvSzxrL','BwfW','Bw9KzwW','BgLZDfj1BNngB3jtzxnZAw9U','zgvSAxzLCNLjBNrLBNq','oti1nZK1A1Pyu2Dw','BwvZC2fNzq','C3rHDhvZ','CNvU','y2XLyxi','CxvLDwu','CgvYC2LZDezPBgvZ','CgvYC2LZDef0DgfJAg1LBNrZ','uLvotKLorW','Dg9Rzw4','mty4nJG1mKvdy0fHyG','y29TBwfUzeLK','C2vZC2LVBLf1zxvL','CgvYC29UywXjBNn0CNvJDgLVBNm','y2HHBM5LBfrVA2vU','yxr0ywnOBwvUDa','y2fJAgu','uvvfvuve','CNvUDgLTzq','nJrgDu14zuS','y2f0y2G','ChjLCgfYzu1LC3nHz2vjBNb1Da','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','u0vora','CgXHBG','mJi2odq0yu5bDwLR','CMvZB2X2zq','zMLSDgvY','B3b0Aw9UCW','y3DK','u1rbuLrjtKC','mJmYmtq4yunlzLvI','AxntywzLsw50zwDLCG','yxr0ywnOBwvUDeLKCW','u0vtu0LptL9jtLzbteLe','CgvUzgLUz01LC3nHz2vZ','ngTNrwvRBW','y2HHBM5LBe1LC3nHz2u','ywnJzxnZ','z2v0','ndK5otiZsxv1Chv5','C29Tzq','u0vtu0LptL9dsefotKvmx1voqvzbsuXbqKXf','B2jQzwn0','C2vZC2LVBKLK','zgvMyxvSDa','BgLZDa','zMLUze1LC3nHz2vsDw4','zwzMB3j0','zgvSAxzLCKnOyw5UzwW','B3bLCMf0Aw9UCW','uKvqtefdrv9dvvjsru5u','D29YA3nWywnLswq','z2v0qwDLBNrtzxnZAw9U','Aw50zxjHy3rPB24'];_0x3b8f=function(){return _0x27b056;};return _0x3b8f();}function _0x39cc(_0x2c42f8,_0x7732ea){_0x2c42f8=_0x2c42f8-(0xf*-0x286+-0x1*0x1d42+-0xda*-0x50);const _0x364984=_0x3b8f();let _0x5b90f5=_0x364984[_0x2c42f8];if(_0x39cc['mKnzmW']===undefined){var _0x9ebc7=function(_0x3e2140){const _0x78f81='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4e104d='',_0x5dfa4e='';for(let _0x52afd3=-0xc30+-0x9d3*-0x1+0xb*0x37,_0x9d6aa8,_0x45816c,_0xa5efc1=0xb2e+0x5dd+-0x110b*0x1;_0x45816c=_0x3e2140['charAt'](_0xa5efc1++);~_0x45816c&&(_0x9d6aa8=_0x52afd3%(-0x11*-0x10d+-0x1*0x20d3+0xefa)?_0x9d6aa8*(0x26e4+-0x15cd*-0x1+-0x3c71)+_0x45816c:_0x45816c,_0x52afd3++%(0x1*-0x10dd+0x1322+-0x241*0x1))?_0x4e104d+=String['fromCharCode'](0x1de*-0x7+0x101*-0x1+0xf12&_0x9d6aa8>>(-(0x3b6+-0x1*-0x1435+-0x17e9)*_0x52afd3&0x813+0x1801+-0x2ea*0xb)):0x955+-0x151c+-0xc9*-0xf){_0x45816c=_0x78f81['indexOf'](_0x45816c);}for(let _0x3d5be5=-0xf*-0x262+0x1ae1+-0x3e9f,_0x323975=_0x4e104d['length'];_0x3d5be5<_0x323975;_0x3d5be5++){_0x5dfa4e+='%'+('00'+_0x4e104d['charCodeAt'](_0x3d5be5)['toString'](-0x1c8e+0x2116+-0x478))['slice'](-(-0xe7b+0x6c4+-0x3*-0x293));}return decodeURIComponent(_0x5dfa4e);};_0x39cc['LMlxxu']=_0x9ebc7,_0x39cc['HQLdTD']={},_0x39cc['mKnzmW']=!![];}const _0x4d2532=_0x364984[0x170f+-0x14*-0x62+-0x1eb7];_0x39cc['Fakrrh']!==_0x4d2532&&(_0x39cc['HQLdTD']={},_0x39cc['Fakrrh']=_0x4d2532);const _0x16dcb9=_0x39cc['HQLdTD'][_0x2c42f8];return _0x16dcb9===undefined?(_0x5b90f5=_0x39cc['LMlxxu'](_0x5b90f5),_0x39cc['HQLdTD'][_0x2c42f8]=_0x5b90f5):_0x5b90f5=_0x16dcb9,_0x5b90f5;}import{isImageAttachment,isRunnerImageAttachment,parseComposerAttachmentIds,parseMessageAttachments,sessionTitleFromFirstMessage,withNonImageAttachmentPrompt}from'../util/node-operation-parsers.js';import{parseSecretEnvironment}from'../util/secret-environment.js';import{personalInstructionsForRunner}from'../util/personal-instructions.js';export class SessionMessageService{[_0x22579d(0x148)];[_0x22579d(0x14f)]=new Map();constructor(_0x288844){const _0x3b3d1a=_0x22579d;this[_0x3b3d1a(0x148)]=_0x288844;}[_0x22579d(0x15e)](){const _0x4a76fe=_0x22579d;return{'session.message':_0x2a7ff0=>this[_0x4a76fe(0x12d)](record(_0x2a7ff0)),'session.channel.message':_0x4fc379=>this[_0x4a76fe(0x151)](record(_0x4fc379)),'session.channel.token':_0xd0324d=>this[_0x4a76fe(0x13a)](record(_0xd0324d))};}async[_0x22579d(0x12d)](_0x3b1494){const _0xfe8381=_0x22579d;if(typeof _0x3b1494[_0xfe8381(0x158)]!==_0xfe8381(0x10d)||typeof _0x3b1494[_0xfe8381(0x113)]!==_0xfe8381(0x10d)||_0x3b1494[_0xfe8381(0x113)][_0xfe8381(0x11a)]===-0x1609+0x45*0x89+0x1*-0xee4||typeof _0x3b1494[_0xfe8381(0x120)]!==_0xfe8381(0x10d)||_0x3b1494[_0xfe8381(0x120)][_0xfe8381(0x11a)]===-0x16d9*0x1+-0x5dd*0x1+-0x19*-0x126)throw new Error(_0xfe8381(0x11c));const _0x15ec70=_0x3b1494[_0xfe8381(0x113)],_0x12c01e=_0x3b1494[_0xfe8381(0x120)],_0x1dc1d1=parseMessageAttachments(_0x3b1494[_0xfe8381(0x121)]),_0x4786fb=parseSecretEnvironment(_0x3b1494[_0xfe8381(0x107)]),_0x13521e=parseComposerAttachmentIds(_0x3b1494[_0xfe8381(0x14d)]);if(_0x1dc1d1[_0xfe8381(0x11a)]>0xc06+0x59*-0x5+-0xa49&&_0x13521e[_0xfe8381(0x11a)]>0x1bfb+-0x1524+0x6d7*-0x1)throw new Error(_0xfe8381(0x126));const _0x5b4fbe=await this[_0xfe8381(0x148)][_0xfe8381(0x146)](_0x3b1494[_0xfe8381(0x158)]),_0x507eb3=personalInstructionsForRunner(_0x3b1494[_0xfe8381(0x139)],_0x5b4fbe[_0xfe8381(0x124)]),_0x35691a=_0x3b1494[_0xfe8381(0x12b)]??_0xfe8381(0x143);if(_0x35691a!==_0xfe8381(0x143)&&_0x35691a!==_0xfe8381(0x123)&&_0x35691a!==_0xfe8381(0x15f))throw new Error(_0xfe8381(0x11c));const _0x22d719=this[_0xfe8381(0x148)][_0xfe8381(0x13e)][_0xfe8381(0x15b)](_0x5b4fbe['id'],_0x15ec70);if(_0x22d719!==undefined)return{'session':this[_0xfe8381(0x148)][_0xfe8381(0x109)](_0x5b4fbe),'run':_0x22d719,'delivery':this[_0xfe8381(0x148)][_0xfe8381(0x13e)][_0xfe8381(0x11f)](_0x22d719['id'])?_0xfe8381(0x13d):_0xfe8381(0x106),'idempotent':!![]};const _0x2f2942=_0x5b4fbe['id']+'\x00'+_0x15ec70,_0x20e42b=this[_0xfe8381(0x14f)][_0xfe8381(0x153)](_0x2f2942);if(_0x20e42b!==undefined)return _0x20e42b;const _0xcd5d73=((async()=>{const _0xf042f7=_0xfe8381,_0x581255=randomUUID();let _0x1f1dc0=![];try{const _0x1bbd44=await this[_0xf042f7(0x148)][_0xf042f7(0x118)][_0xf042f7(0x146)](_0x5b4fbe[_0xf042f7(0x160)],_0x13521e),_0x648fb6=_0x13521e[_0xf042f7(0x11a)]===-0x74*-0x8+-0xb7b+0x7db?_0x1dc1d1:_0x1bbd44[_0xf042f7(0x128)](_0x7732ea=>_0x7732ea[_0xf042f7(0x13b)]),_0x1e03ee=_0x648fb6[_0xf042f7(0x147)](isImageAttachment),_0x37f27e=_0x648fb6[_0xf042f7(0x147)](isRunnerImageAttachment),_0x24f208=await this[_0xf042f7(0x133)](_0x5b4fbe,_0x581255,_0x648fb6),_0x2e9018=withNonImageAttachmentPrompt(_0x12c01e,_0x24f208),_0x47d6a9=this[_0xf042f7(0x148)][_0xf042f7(0x112)][_0xf042f7(0x15a)](_0x5b4fbe['id'])[_0xf042f7(0x155)](_0x364984=>_0x364984[_0xf042f7(0x137)]===_0xf042f7(0x144)),_0x1c4312=this[_0xf042f7(0x148)][_0xf042f7(0x122)][_0xf042f7(0x125)](_0x5b4fbe[_0xf042f7(0x124)]),_0x4bd4fb=this[_0xf042f7(0x148)][_0xf042f7(0x13e)][_0xf042f7(0x12a)](_0x5b4fbe['id'])[_0xf042f7(0x108)](_0x5b90f5=>_0x5b90f5[_0xf042f7(0x12e)]===_0xf042f7(0x14a)||_0x5b90f5[_0xf042f7(0x12e)]===_0xf042f7(0x134)),_0x3908c8=_0x35691a===_0xf042f7(0x15f)?_0x4bd4fb:undefined,_0x67c47d=this[_0xf042f7(0x148)][_0xf042f7(0x13e)][_0xf042f7(0x138)](_0x5b4fbe['id']),_0x494c96=this[_0xf042f7(0x148)][_0xf042f7(0x13e)][_0xf042f7(0x142)](_0x5b4fbe['id']),_0x1e697a=this[_0xf042f7(0x148)][_0xf042f7(0x131)][_0xf042f7(0x10b)]({'runId':_0x581255,'sessionId':_0x5b4fbe['id'],'workspaceId':_0x5b4fbe[_0xf042f7(0x160)],'runner':_0x5b4fbe[_0xf042f7(0x124)],'input':_0x1c4312[_0xf042f7(0x141)](_0x2e9018,_0x47d6a9?_0xf042f7(0x144):_0xf042f7(0x159)),'attachments':_0x37f27e,'attachmentPaths':_0x24f208,'cwd':_0x5b4fbe[_0xf042f7(0x149)],'externalSessionId':_0x5b4fbe[_0xf042f7(0x10a)],'model':_0x5b4fbe[_0xf042f7(0x129)],'effort':_0x5b4fbe[_0xf042f7(0x15c)],'access':_0x5b4fbe[_0xf042f7(0x152)],'collaborationMode':_0x47d6a9?_0xf042f7(0x144):_0xf042f7(0x159),'secretEnvironment':_0x4786fb,..._0x507eb3===undefined?{}:{'personalInstructions':_0x507eb3},..._0x1c4312[_0xf042f7(0x10f)]()===_0xf042f7(0x116)?{'serviceTier':_0xf042f7(0x116)}:{}},{'runId':_0x581255,'sessionId':_0x5b4fbe['id'],'clientMessageId':_0x15ec70,'content':_0x2e9018,...Number[_0xf042f7(0x14c)](_0x3b1494[_0xf042f7(0x11d)])?{'initiatedByUserId':_0x3b1494[_0xf042f7(0x11d)]}:{},..._0x648fb6[_0xf042f7(0x11a)]===0xccc*0x1+0x1ab9+0x97*-0x43?{}:{'attachments':_0x648fb6}});_0x1f1dc0=_0x1e697a[_0xf042f7(0x104)];if(!_0x1e697a[_0xf042f7(0x104)])return this[_0xf042f7(0x148)][_0xf042f7(0x121)][_0xf042f7(0x110)](_0x581255),{'session':this[_0xf042f7(0x148)][_0xf042f7(0x109)](_0x5b4fbe),'run':_0x1e697a[_0xf042f7(0x12f)],'delivery':this[_0xf042f7(0x148)][_0xf042f7(0x13e)][_0xf042f7(0x11f)](_0x1e697a[_0xf042f7(0x12f)]['id'])?_0xf042f7(0x13d):_0xf042f7(0x106),'idempotent':!![]};const _0x2ebc1b=this[_0xf042f7(0x148)][_0xf042f7(0x13e)][_0xf042f7(0x11e)](_0x5b4fbe['id'],sessionTitleFromFirstMessage(_0x12c01e));this[_0xf042f7(0x148)][_0xf042f7(0x114)](_0x2ebc1b),this[_0xf042f7(0x148)][_0xf042f7(0x121)][_0xf042f7(0x13c)](_0x1e697a[_0xf042f7(0x12f)]['id'],_0x1e03ee),void this[_0xf042f7(0x148)][_0xf042f7(0x118)][_0xf042f7(0x11b)](_0x13521e)[_0xf042f7(0x140)](()=>undefined);const _0x2c42f8=this[_0xf042f7(0x148)][_0xf042f7(0x131)][_0xf042f7(0x111)]({'runId':_0x1e697a[_0xf042f7(0x12f)]['id'],'intent':_0x35691a,'queueBefore':_0x67c47d,'leaseWasActive':_0x494c96,..._0x3908c8===undefined?{}:{'activeRunId':_0x3908c8['id']}});return{'session':this[_0xf042f7(0x148)][_0xf042f7(0x109)](_0x2ebc1b),'run':_0x1e697a[_0xf042f7(0x12f)],'delivery':_0x2c42f8,'idempotent':![]};}catch(_0x9ebc7){!_0x1f1dc0&&(this[_0xf042f7(0x148)][_0xf042f7(0x121)][_0xf042f7(0x130)](_0x581255),this[_0xf042f7(0x148)][_0xf042f7(0x121)][_0xf042f7(0x110)](_0x581255));throw _0x9ebc7;}})());this[_0xfe8381(0x14f)][_0xfe8381(0x119)](_0x2f2942,_0xcd5d73);try{return await _0xcd5d73;}finally{if(this[_0xfe8381(0x14f)][_0xfe8381(0x153)](_0x2f2942)===_0xcd5d73)this[_0xfe8381(0x14f)][_0xfe8381(0x127)](_0x2f2942);}}async[_0x22579d(0x133)](_0x4d2532,_0x16dcb9,_0x3e2140){const _0x3889f4=_0x22579d;return this[_0x3889f4(0x148)][_0x3889f4(0x121)][_0x3889f4(0x132)](_0x4d2532[_0x3889f4(0x149)],_0x16dcb9,_0x3e2140[_0x3889f4(0x147)](_0x78f81=>!isRunnerImageAttachment(_0x78f81)));}[_0x22579d(0x151)](_0x4e104d){const _0x3a2ce0=_0x22579d;if(typeof _0x4e104d[_0x3a2ce0(0x158)]!==_0x3a2ce0(0x10d)||typeof _0x4e104d[_0x3a2ce0(0x135)]!==_0x3a2ce0(0x10d)||typeof _0x4e104d[_0x3a2ce0(0x113)]!==_0x3a2ce0(0x10d)||typeof _0x4e104d[_0x3a2ce0(0x120)]!==_0x3a2ce0(0x10d)||_0x4e104d[_0x3a2ce0(0x120)][_0x3a2ce0(0x11a)]===-0xfbf+0x1e6b+0x272*-0x6)throw new Error(_0x3a2ce0(0x11c));const _0x5dfa4e=this[_0x3a2ce0(0x148)][_0x3a2ce0(0x13e)][_0x3a2ce0(0x161)](_0x4e104d[_0x3a2ce0(0x158)]);if(_0x5dfa4e===undefined||_0x5dfa4e[_0x3a2ce0(0x13a)]!==_0x4e104d[_0x3a2ce0(0x135)])throw new Error(_0x3a2ce0(0x156));return{'delivery':this[_0x3a2ce0(0x148)][_0x3a2ce0(0x162)][_0x3a2ce0(0x15d)](_0x5dfa4e[_0x3a2ce0(0x124)],_0x4e104d[_0x3a2ce0(0x158)],_0x4e104d[_0x3a2ce0(0x113)],_0x3a2ce0(0x10c),_0x4e104d[_0x3a2ce0(0x135)],_0x4e104d[_0x3a2ce0(0x120)])};}[_0x22579d(0x13a)](_0x52afd3){const _0x1f0f07=_0x22579d;if(typeof _0x52afd3[_0x1f0f07(0x158)]!==_0x1f0f07(0x10d))throw new Error(_0x1f0f07(0x14e));const _0x9d6aa8=this[_0x1f0f07(0x148)][_0x1f0f07(0x13a)](_0x52afd3[_0x1f0f07(0x158)]);if(_0x9d6aa8===undefined)throw new Error(_0x1f0f07(0x156));return{'token':_0x9d6aa8};}}function record(_0x45816c){const _0x526e89=_0x22579d;if(_0x45816c===null||typeof _0x45816c!==_0x526e89(0x157)||Array[_0x526e89(0x117)](_0x45816c))return{};return _0x45816c;}
2
+ const _0x2660b0=_0xcb92;(function(_0xa80849,_0x27449f){const _0x42a28c=_0xcb92,_0xa384f2=_0xa80849();while(!![]){try{const _0x7b76a1=-parseInt(_0x42a28c(0xa6))/(0x2*0x1077+0x216a+0x275*-0x1b)+parseInt(_0x42a28c(0xb5))/(0x10*-0x25a+-0x1*0x141b+0x39bd)+parseInt(_0x42a28c(0xc1))/(0x1002+-0x1*0xc47+-0x3b8)+-parseInt(_0x42a28c(0xb9))/(-0x1*0x17bf+0x1423+0x10*0x3a)+parseInt(_0x42a28c(0xc6))/(-0x107*-0x20+0x1d64+-0xc73*0x5)*(parseInt(_0x42a28c(0xb0))/(0x2369+-0x525+0x31*-0x9e))+-parseInt(_0x42a28c(0xe0))/(0x864+0x1d4c+0x137*-0x1f)+parseInt(_0x42a28c(0xdc))/(0x1648+-0x251d+0xedd);if(_0x7b76a1===_0x27449f)break;else _0xa384f2['push'](_0xa384f2['shift']());}catch(_0x599f78){_0xa384f2['push'](_0xa384f2['shift']());}}}(_0x4c7e,-0x5f490+0x42403*0x1+0x5cd45));import{randomUUID}from'node:crypto';import{isImageAttachment,isRunnerImageAttachment,parseComposerAttachmentIds,parseMessageAttachments,sessionTitleFromFirstMessage,withNonImageAttachmentPrompt}from'../util/node-operation-parsers.js';import{parseSecretEnvironment}from'../util/secret-environment.js';import{personalInstructionsForRunner}from'../util/personal-instructions.js';import{safeErrorCode}from'../util/safe-error.js';export class SessionMessageService{[_0x2660b0(0xca)];[_0x2660b0(0xef)]=new Map();constructor(_0x3ca6e1){const _0x407e7a=_0x2660b0;this[_0x407e7a(0xca)]=_0x3ca6e1;}[_0x2660b0(0xa5)](){const _0x3b573a=_0x2660b0;return{'session.message':_0x57a9c9=>this[_0x3b573a(0xc4)](record(_0x57a9c9)),'session.channel.message':_0x36ff57=>this[_0x3b573a(0xf2)](record(_0x36ff57)),'session.channel.token':_0x1e3412=>this[_0x3b573a(0xbd)](record(_0x1e3412))};}async[_0x2660b0(0xc4)](_0x2241f2){const _0x34b33f=_0x2660b0;if(typeof _0x2241f2[_0x34b33f(0xd2)]!==_0x34b33f(0xea)||typeof _0x2241f2[_0x34b33f(0xcb)]!==_0x34b33f(0xea)||_0x2241f2[_0x34b33f(0xcb)][_0x34b33f(0xe3)]===-0x1341+-0xde*-0x1f+-0x7a1||typeof _0x2241f2[_0x34b33f(0xbc)]!==_0x34b33f(0xea)||_0x2241f2[_0x34b33f(0xbc)][_0x34b33f(0xe3)]===-0x4c*0x63+-0x2*-0xb7b+-0x1*-0x66e)throw new Error(_0x34b33f(0xa0));const _0x57fc98=_0x2241f2[_0x34b33f(0xcb)],_0x1827a5=_0x2241f2[_0x34b33f(0xbc)],_0x3144ce=parseMessageAttachments(_0x2241f2[_0x34b33f(0xf7)]),_0x49aeaa=parseSecretEnvironment(_0x2241f2[_0x34b33f(0xda)]),_0x475457=parseComposerAttachmentIds(_0x2241f2[_0x34b33f(0xd3)]);if(_0x3144ce[_0x34b33f(0xe3)]>0x3*-0xd6+-0x1567*-0x1+-0x2b3*0x7&&_0x475457[_0x34b33f(0xe3)]>0x623*-0x3+-0x1c10+0x1*0x2e79)throw new Error(_0x34b33f(0xd6));const _0x339256=await this[_0x34b33f(0xca)][_0x34b33f(0xbe)](_0x2241f2[_0x34b33f(0xd2)]),_0x4f9379=personalInstructionsForRunner(_0x2241f2[_0x34b33f(0xbf)],_0x339256[_0x34b33f(0xa7)]),_0x57f07f=_0x2241f2[_0x34b33f(0xa4)]??_0x34b33f(0xec);if(_0x57f07f!==_0x34b33f(0xec)&&_0x57f07f!==_0x34b33f(0xae)&&_0x57f07f!==_0x34b33f(0xc9))throw new Error(_0x34b33f(0xa0));const _0x48588d=_0x339256['id']+'\x00'+_0x57fc98,_0x2ff47b=this[_0x34b33f(0xef)][_0x34b33f(0xee)](_0x48588d);if(_0x2ff47b!==undefined)return _0x2ff47b;const _0x2546bc=this[_0x34b33f(0xca)][_0x34b33f(0xb6)][_0x34b33f(0x9b)](_0x339256['id'],_0x57fc98);if(_0x2546bc!==undefined)throw new Error(_0x2546bc);const _0x3b05e9=this[_0x34b33f(0xca)][_0x34b33f(0xb6)][_0x34b33f(0xed)](_0x339256['id'],_0x57fc98);if(_0x3b05e9!==undefined)return{'session':this[_0x34b33f(0xca)][_0x34b33f(0xb7)](_0x339256),'run':_0x3b05e9[_0x34b33f(0xac)],..._0x3b05e9[_0x34b33f(0x9c)]===_0x34b33f(0xab)?{'queueItemId':_0x3b05e9[_0x34b33f(0xad)]['id']}:{},'delivery':_0x3b05e9[_0x34b33f(0x9c)]===_0x34b33f(0xab)?_0x34b33f(0xd4):_0x34b33f(0xd9),'idempotent':!![]};const _0x18be67=((async()=>{const _0x562fd3=_0x34b33f,_0x4a9083=randomUUID(),_0x7f35bf=this[_0x562fd3(0xca)][_0x562fd3(0xb6)][_0x562fd3(0xf3)](_0x339256['id']),_0x5471ca=this[_0x562fd3(0xca)][_0x562fd3(0xb6)][_0x562fd3(0xd8)](_0x339256['id']),_0x3973f2=_0x57f07f===_0x562fd3(0xc9)?_0x5471ca:undefined,_0x17e7f3=this[_0x562fd3(0xca)][_0x562fd3(0xce)][_0x562fd3(0xe6)]({'runId':_0x4a9083,'sessionId':_0x339256['id'],'clientMessageId':_0x57fc98,'content':_0x1827a5,...Number[_0x562fd3(0xd5)](_0x2241f2[_0x562fd3(0xf4)])?{'initiatedByUserId':_0x2241f2[_0x562fd3(0xf4)]}:{},..._0x3144ce[_0x562fd3(0xe3)]===0x1*-0x5f2+0x1762+-0x1170?{}:{'attachments':_0x3144ce}}),_0x4a96cb=_0x17e7f3[_0x562fd3(0xb8)]?.['id']??_0x17e7f3[_0x562fd3(0xac)]['id'],_0x4bd9af=this[_0x562fd3(0xca)][_0x562fd3(0xb6)][_0x562fd3(0xa2)](_0x339256['id'],sessionTitleFromFirstMessage(_0x1827a5));this[_0x562fd3(0xca)][_0x562fd3(0xc0)](_0x4bd9af);if(_0x17e7f3[_0x562fd3(0xb8)]===undefined)this[_0x562fd3(0xca)][_0x562fd3(0xce)][_0x562fd3(0xcc)](_0x17e7f3[_0x562fd3(0xac)]['id']);try{const _0x2dc3fe=await this[_0x562fd3(0xca)][_0x562fd3(0xc3)][_0x562fd3(0xbe)](_0x339256[_0x562fd3(0xd1)],_0x475457),_0x30bf9d=_0x475457[_0x562fd3(0xe3)]===-0x1*-0x296+-0x25c7+0x2331?_0x3144ce:_0x2dc3fe[_0x562fd3(0xc2)](_0x3418bb=>_0x3418bb[_0x562fd3(0xc7)]),_0x31e8df=_0x30bf9d[_0x562fd3(0xbb)](isImageAttachment),_0xa2490=_0x30bf9d[_0x562fd3(0xbb)](isRunnerImageAttachment),_0x9beac9=await this[_0x562fd3(0xe2)](_0x339256,_0x4a9083,_0x30bf9d),_0x3c34f5=withNonImageAttachmentPrompt(_0x1827a5,_0x9beac9),_0x74b69d=this[_0x562fd3(0xca)][_0x562fd3(0x9d)][_0x562fd3(0xcf)](_0x339256['id'])[_0x562fd3(0xe7)](_0x4877ce=>_0x4877ce[_0x562fd3(0xb2)]===_0x562fd3(0xb1)),_0x1ac083=this[_0x562fd3(0xca)][_0x562fd3(0xd0)][_0x562fd3(0xf8)](_0x339256[_0x562fd3(0xa7)]);if(_0x17e7f3[_0x562fd3(0xb8)]===undefined)this[_0x562fd3(0xca)][_0x562fd3(0xb6)][_0x562fd3(0xaa)](_0x17e7f3[_0x562fd3(0xac)]['id'],_0x30bf9d);else this[_0x562fd3(0xca)][_0x562fd3(0xb6)][_0x562fd3(0xcd)](_0x17e7f3[_0x562fd3(0xb8)]['id'],_0x30bf9d);this[_0x562fd3(0xca)][_0x562fd3(0xce)][_0x562fd3(0xc8)](_0x4a96cb,{'runId':_0x4a9083,'sessionId':_0x339256['id'],'workspaceId':_0x339256[_0x562fd3(0xd1)],'runner':_0x339256[_0x562fd3(0xa7)],'input':_0x1ac083[_0x562fd3(0xe8)](_0x3c34f5,_0x74b69d?_0x562fd3(0xb1):_0x562fd3(0xaf)),'attachments':_0xa2490,'attachmentPaths':_0x9beac9,'cwd':_0x339256[_0x562fd3(0xba)],'externalSessionId':_0x339256[_0x562fd3(0x9f)],'model':_0x339256[_0x562fd3(0xa9)],'effort':_0x339256[_0x562fd3(0xe1)],'access':_0x339256[_0x562fd3(0xa1)],'collaborationMode':_0x74b69d?_0x562fd3(0xb1):_0x562fd3(0xaf),'secretEnvironment':_0x49aeaa,..._0x4f9379===undefined?{}:{'personalInstructions':_0x4f9379},..._0x1ac083[_0x562fd3(0xde)]()===_0x562fd3(0xb4)?{'serviceTier':_0x562fd3(0xb4)}:{}}),this[_0x562fd3(0xca)][_0x562fd3(0xf7)][_0x562fd3(0xeb)](_0x4a96cb,_0x31e8df),void this[_0x562fd3(0xca)][_0x562fd3(0xc3)][_0x562fd3(0xd7)](_0x475457)[_0x562fd3(0xdf)](()=>undefined);const _0x5e9f3d=this[_0x562fd3(0xca)][_0x562fd3(0xce)][_0x562fd3(0xe4)]({'submissionId':_0x4a96cb,'intent':_0x57f07f,'queueBefore':_0x7f35bf,..._0x3973f2===undefined?{}:{'activeRunId':_0x3973f2['id']}});return{'session':this[_0x562fd3(0xca)][_0x562fd3(0xb7)](_0x4bd9af),'run':_0x17e7f3[_0x562fd3(0xac)],..._0x17e7f3[_0x562fd3(0xb8)]===undefined?{}:{'queueItemId':_0x17e7f3[_0x562fd3(0xb8)]['id']},'delivery':_0x5e9f3d,'idempotent':![]};}catch(_0x1bc039){this[_0x562fd3(0xca)][_0x562fd3(0xce)][_0x562fd3(0xf6)](_0x4a96cb,safeErrorCode(_0x1bc039,_0x562fd3(0xf5))),this[_0x562fd3(0xca)][_0x562fd3(0xf7)][_0x562fd3(0xe9)](_0x4a96cb),this[_0x562fd3(0xca)][_0x562fd3(0xf7)][_0x562fd3(0xdd)](_0x4a96cb);throw _0x1bc039;}})());this[_0x34b33f(0xef)][_0x34b33f(0xf1)](_0x48588d,_0x18be67);try{return await _0x18be67;}finally{if(this[_0x34b33f(0xef)][_0x34b33f(0xee)](_0x48588d)===_0x18be67)this[_0x34b33f(0xef)][_0x34b33f(0xa8)](_0x48588d);}}async[_0x2660b0(0xe2)](_0x556661,_0x6a0d22,_0x2bbfce){const _0x41f538=_0x2660b0;return this[_0x41f538(0xca)][_0x41f538(0xf7)][_0x41f538(0x9e)](_0x556661[_0x41f538(0xba)],_0x6a0d22,_0x2bbfce[_0x41f538(0xbb)](_0x5a0551=>!isRunnerImageAttachment(_0x5a0551)));}async[_0x2660b0(0xf2)](_0x70d744){const _0x81add3=_0x2660b0;if(typeof _0x70d744[_0x81add3(0xd2)]!==_0x81add3(0xea)||typeof _0x70d744[_0x81add3(0xa3)]!==_0x81add3(0xea)||typeof _0x70d744[_0x81add3(0xcb)]!==_0x81add3(0xea)||typeof _0x70d744[_0x81add3(0xbc)]!==_0x81add3(0xea)||_0x70d744[_0x81add3(0xbc)][_0x81add3(0xe3)]===-0x2648+-0x1f0a+0x4552||!Number[_0x81add3(0xd5)](_0x70d744[_0x81add3(0xf4)]))throw new Error(_0x81add3(0xa0));const _0x199f2d=this[_0x81add3(0xca)][_0x81add3(0xb6)][_0x81add3(0xe5)](_0x70d744[_0x81add3(0xd2)]);if(_0x199f2d===undefined||_0x199f2d[_0x81add3(0xbd)]!==_0x70d744[_0x81add3(0xa3)])throw new Error(_0x81add3(0xc5));return this[_0x81add3(0xc4)]({'sessionId':_0x70d744[_0x81add3(0xd2)],'clientMessageId':_0x70d744[_0x81add3(0xcb)],'content':_0x70d744[_0x81add3(0xbc)],'deliveryIntent':_0x81add3(0xae),'__requestUserId':_0x70d744[_0x81add3(0xf4)]});}[_0x2660b0(0xbd)](_0x25c00e){const _0x327ffe=_0x2660b0;if(typeof _0x25c00e[_0x327ffe(0xd2)]!==_0x327ffe(0xea))throw new Error(_0x327ffe(0xb3));const _0x294306=this[_0x327ffe(0xca)][_0x327ffe(0xbd)](_0x25c00e[_0x327ffe(0xd2)]);if(_0x294306===undefined)throw new Error(_0x327ffe(0xc5));return{'token':_0x294306};}}function _0xcb92(_0x4877ce,_0x1bc039){_0x4877ce=_0x4877ce-(-0x22ed*0x1+0x718+0x71c*0x4);const _0x556661=_0x4c7e();let _0x6a0d22=_0x556661[_0x4877ce];if(_0xcb92['KIuWxu']===undefined){var _0x2bbfce=function(_0x199f2d){const _0x25c00e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x294306='',_0x26e7a7='';for(let _0x1119a6=-0x15c1+-0xb03+-0xc*-0x2bb,_0x58faeb,_0x3cdf28,_0x34f479=0x1a4d+-0x1b9d+0x70*0x3;_0x3cdf28=_0x199f2d['charAt'](_0x34f479++);~_0x3cdf28&&(_0x58faeb=_0x1119a6%(-0x1331+-0x5*-0x7e+0x10bf)?_0x58faeb*(0x1*0x1567+0x25c5+-0x68c*0x9)+_0x3cdf28:_0x3cdf28,_0x1119a6++%(0x623*-0x3+-0x1c10+0x3*0xf7f))?_0x294306+=String['fromCharCode'](0x1*-0x5f2+0x1762+-0x1071&_0x58faeb>>(-(-0x1*-0x296+-0x25c7+0x2333)*_0x1119a6&-0x2648+-0x1f0a+0x4558)):-0x1*-0xa9f+0x20c1+-0x20*0x15b){_0x3cdf28=_0x25c00e['indexOf'](_0x3cdf28);}for(let _0x4eb262=0x1*0x14b+0x234d*-0x1+0x1*0x2202,_0x3b4000=_0x294306['length'];_0x4eb262<_0x3b4000;_0x4eb262++){_0x26e7a7+='%'+('00'+_0x294306['charCodeAt'](_0x4eb262)['toString'](-0x888+-0x949*-0x1+0x1*-0xb1))['slice'](-(-0x1*0x137c+0x1*0x160a+-0x28c));}return decodeURIComponent(_0x26e7a7);};_0xcb92['LsQHMv']=_0x2bbfce,_0xcb92['JOyFdm']={},_0xcb92['KIuWxu']=!![];}const _0x5a0551=_0x556661[-0x1f17+0xa42+0x1*0x14d5];_0xcb92['mIoQWq']!==_0x5a0551&&(_0xcb92['JOyFdm']={},_0xcb92['mIoQWq']=_0x5a0551);const _0x70d744=_0xcb92['JOyFdm'][_0x4877ce];return _0x70d744===undefined?(_0x6a0d22=_0xcb92['LsQHMv'](_0x6a0d22),_0xcb92['JOyFdm'][_0x4877ce]=_0x6a0d22):_0x6a0d22=_0x70d744,_0x6a0d22;}function record(_0x26e7a7){const _0x4be6d9=_0x2660b0;if(_0x26e7a7===null||typeof _0x26e7a7!==_0x4be6d9(0xf0)||Array[_0x4be6d9(0xdb)](_0x26e7a7))return{};return _0x26e7a7;}function _0x4c7e(){const _0x501b0b=['CgvYC2LZDezPBgvZ','zxH0zxjUywXtzxnZAw9Uswq','tuvtu0fhrv9jtLzbteLe','ywnJzxnZ','C2v0vgvTCg9Yyxj5vgL0BgvjzK1PC3nPBMC','Dg9Rzw4','zgvSAxzLCNLjBNrLBNq','B3bLCMf0Aw9UCW','ndyXnZu2rKTntKPP','CNvUBMvY','zgvSzxrL','Bw9KzwW','DxbKyxrLuhjLCgfYAw5NvhvYBKf0DgfJAg1LBNrZ','CxvLDwu','CNvU','AxrLBq','uvvfvuu','zgvMyxvSDa','mZGWmtC4BLPyt2Dn','CgXHBG','y29TBwfUzeLK','u0vtu0LptL9jtLzbteLe','zMfZDa','mJG5mdaYBu9fELPP','CNvUDgLTzq','ChjLC2vUDa','CxvLDwvjDgvT','mtG3ntiWnerQyLnMCW','y3DK','zMLSDgvY','y29UDgvUDa','y2HHBM5LBfrVA2vU','CMvZB2X2zq','CgvYC29UywXjBNn0CNvJDgLVBNm','zw1PDfnLC3nPB24','mtCZmtC4zeT6vMrn','BwfW','DxbSB2fKCW','BwvZC2fNzq','u0vtu0LptL9dsefotKvmx1voqvzbsuXbqKXf','mtbNvwPKA1i','yxr0ywnOBwvUDa','ChjLCgfYzq','uKvqtefdrv9dvvjsru5u','B3b0Aw9UCW','y2XPzw50twvZC2fNzuLK','ChvIBgLZAen1CNjLBNruDxjU','DxbKyxrLuxvLDwvjDgvTqxr0ywnOBwvUDhm','y29VCMrPBMf0B3i','BgLZDa','CNvUBMvYCW','D29YA3nWywnLswq','C2vZC2LVBKLK','yxr0ywnOBwvUDeLKCW','uvvfvuve','AxntywzLsw50zwDLCG','tuvtu0fhrv9bvfrbq0Hnru5uu19jtLzbteLe','y29UC3vTzq','ywn0AxzLu2vZC2LVBLj1BG','u1rbuLrfra','C2vJCMv0rw52AxjVBM1LBNq','AxnbCNjHEq','otqWnZaWoerLEgLeDa','y2XLyw51Ca','C2vYDMLJzvrPzxi','y2f0y2G','mJe5mdC3nKLOrvbOvW','zwzMB3j0','CgvYC2LZDef0DgfJAg1LBNrZ','BgvUz3rO','C2v0DgXL','z2v0qwDLBNrtzxnZAw9U','ywnJzxb0','C29Tzq','ChjLCgfYzu1LC3nHz2vjBNb1Da','y2XLyxi','C3rYAw5N','y2fJAgu','u0vora','zMLUze1LC3nHz2vtDwjTAxnZAw9U','z2v0','CgvUzgLUz01LC3nHz2vZ','B2jQzwn0','C2v0','y2HHBM5LBe1LC3nHz2u','C2vZC2LVBLf1zxvL','x19Yzxf1zxn0vxnLCKLK','tuvtu0fhrv9quKvqqvjbveLptL9gquLmruq','zMfPBfbYzxbHCMf0Aw9U','yxr0ywnOBwvUDhm','CMvXDwLYzq','BwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','A2LUza','y29TBwfUzhm'];_0x4c7e=function(){return _0x501b0b;};return _0x4c7e();}
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- function _0x3a51(_0x4b1388,_0x1469d0){_0x4b1388=_0x4b1388-(-0x461+0x8c9+0x5*-0xbd);const _0x5338bc=_0x53cf();let _0x443535=_0x5338bc[_0x4b1388];if(_0x3a51['fxqZxn']===undefined){var _0x25a495=function(_0xac00e9){const _0x55690b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4e9055='',_0x202700='';for(let _0x512668=-0x9fb+0x1b6a+-0x116f,_0x42a372,_0x1cead0,_0x3102a3=0x20d*0x13+-0x1*-0x2006+-0x1*0x46fd;_0x1cead0=_0xac00e9['charAt'](_0x3102a3++);~_0x1cead0&&(_0x42a372=_0x512668%(-0x1*0x1036+-0x1966+0x29a0)?_0x42a372*(0x2266+0x1679+-0x389f)+_0x1cead0:_0x1cead0,_0x512668++%(0x1*0x154a+0x8f9*-0x3+0x5a5))?_0x4e9055+=String['fromCharCode'](0x1593+-0x227d*0x1+0xde9&_0x42a372>>(-(-0x23*-0x57+0xd5c*-0x1+0x179)*_0x512668&0x1*0x2192+0x246f+-0x45fb)):0x2080+-0x1e8+-0x1e98){_0x1cead0=_0x55690b['indexOf'](_0x1cead0);}for(let _0x426f6b=-0xf6f+-0x12b5*-0x1+-0x346,_0xb92e9c=_0x4e9055['length'];_0x426f6b<_0xb92e9c;_0x426f6b++){_0x202700+='%'+('00'+_0x4e9055['charCodeAt'](_0x426f6b)['toString'](0x3*0x713+-0x11cc+0x7b*-0x7))['slice'](-(0x24e5*-0x1+0x1f3*-0x1+0x26da));}return decodeURIComponent(_0x202700);};_0x3a51['bQPjUX']=_0x25a495,_0x3a51['FnmXcm']={},_0x3a51['fxqZxn']=!![];}const _0x41b802=_0x5338bc[-0x91e+0x2*0x6e3+-0x4a8];_0x3a51['ayxtKg']!==_0x41b802&&(_0x3a51['FnmXcm']={},_0x3a51['ayxtKg']=_0x41b802);const _0x31e355=_0x3a51['FnmXcm'][_0x4b1388];return _0x31e355===undefined?(_0x443535=_0x3a51['bQPjUX'](_0x443535),_0x3a51['FnmXcm'][_0x4b1388]=_0x443535):_0x443535=_0x31e355,_0x443535;}const _0x44fa0a=_0x3a51;(function(_0x40430a,_0x4b8ded){const _0xc3daa=_0x3a51,_0x496cd4=_0x40430a();while(!![]){try{const _0x2cc56f=parseInt(_0xc3daa(0xcd))/(0xd51+-0x160a+0x8ba)+-parseInt(_0xc3daa(0xe3))/(-0xf4e*0x1+0xe3c*-0x2+0x2bc8)*(-parseInt(_0xc3daa(0xd2))/(0x6ac+-0x1*-0x362+-0x359*0x3))+-parseInt(_0xc3daa(0x115))/(0xda0+-0x17*0x3e+0x31*-0x2a)*(-parseInt(_0xc3daa(0x111))/(0x1*-0x257f+0x3b*0x83+0x753))+parseInt(_0xc3daa(0xe1))/(0x169b*-0x1+-0x25a7+-0x1418*-0x3)+-parseInt(_0xc3daa(0xb7))/(-0xc55*0x1+0x13e5+0x789*-0x1)*(parseInt(_0xc3daa(0x11c))/(0x123a+-0x527+-0x9*0x173))+parseInt(_0xc3daa(0x137))/(0x1*-0x1d8b+-0x100*0x8+0x2e4*0xd)+-parseInt(_0xc3daa(0xca))/(0x1e8d+0x1*0x88d+0x2710*-0x1)*(parseInt(_0xc3daa(0x138))/(0x1f56+-0x4*0x1bb+-0x185f));if(_0x2cc56f===_0x4b8ded)break;else _0x496cd4['push'](_0x496cd4['shift']());}catch(_0x3dc8df){_0x496cd4['push'](_0x496cd4['shift']());}}}(_0x53cf,-0x28607*-0x7+-0x50*0x259+-0x7dca1));import{isPlainRecord}from'../runner/codex/conversation-parser.js';function _0x53cf(){const _0x201c4f=['Cgf1C2vK','uLvotKLorW','y2XLyxjjBwfNzxm','uvvfvuvFsu5wquXjra','CMvTB3zL','yxr0ywnOBwvUDhm','zw1PDa','Cgf1C2vpCLjLC3vTzq','CMvVCMrLCLnLC3nPB25rDwv1zq','y2fUy2vSuxvLDwvK','y3DK','AxnbCNjHEq','y29UDgvUDa','CgvYC29UywXjBNn0CNvJDgLVBNm','otK5nta5nfHju3jvra','mtmYDwTUyvrS','mte5nJKZz3Pnt0Ll','Bw9KzwW','zw1PDenVBNzLCNnHDgLVBG','u0vtu0LptL9ot1rFrK9vtKq','DxbKyxrLugvUzgLUzW','y2XLyw51Cef0DgfJAg1LBNrZ','zgvSzxrLuxvLDwvKuNvU','y29UDhjVBa','BgLZDfj1BNngB3jtzxnZAw9U','zxH0zxjUywXtzxnZAw9Uswq','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','AgfZ','y2XHAw1ozxH0uxvLDwvKuNvU','CMvWBgfJzq','D29YA3nWywnLswq','C2vZC2LVBLf1zxvL','Aw5WDxq','zgLZCgf0y2G','CxvLDwvczwzVCMu','mtCZodm5men4tNrfEq','y3jLyxrLtwvZC2fNzvj1BG','CxvLDwvKtwvZC2fNzvrLEhq','mtKZmtu4ueThEKnf','zxHWzwn0zwrwzxjZAw9U','C2v0DgXLrw5XDwv1zq','ChjLCgfYzuLUChv0','C2vJCMv0rw52AxjVBM1LBNq','nZy4mtjotvDhq2O','zMXHDe1HCa','DMfSDwvZ','C3rHDhvZ','CNvUlMLUDgvYCNvWDa','CNvUswq','v09ss1nqqunfx05pvf9gt1vora','Dw5Yzwy','CMvXDwLYzvj1BG','CMvVCMrLCG','uKvtvefsveLorW','zgvSzxrL','BwnWCW','rKfjteve','C3rHCNrZ','mZu2ode1ogrYqwTbyG','u1rbuLrfra','nMnsv2LuvG','ywnJzxnZ','ChjLC2vUDa','CMvZDw1L','y3vZDg9TvgL0Bgu','uvvfvuvFsvrftv9jtLzbteLe','CNvUlNn0yxj0','B3bLCMf0Aw9UCW','BgvUz3rO','ChvIBgLZAa','CMvZDw1Lu2vZC2LVBLf1zxvL','C2vZC2LVBKLK','DhjHBNnPDgLVBLj1BG','Cgf1C2vtzxnZAw9UuxvLDwu','z2v0','CMvXDwLYzvnLC3nPB24','B3b0Aw9UCW','Cgf1C2u','yxr0ywnOBwvUDfbHDgHZ','C2nOzwr1Bgu','C3rYAw5N','vw50AxrSzwqGC2vZC2LVBG','uvvfvuu','DxbKyxrL','BwfYA0LUDgvYCNvWDgvK','zxHLy3v0zq','BwLNCMf0zvnLC3nPB24','DhjPBq','CgvUzgLUzW','y3jLyxrLza','uvvfvuvFu1rbuLrFrKfjteve','q0foq0vmteve','CNvUDgLTzq','AxnjBNrLz2vY','CNvUBMvYvgL0Bgu','uvvfvuve','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','C2vYDMLJzvrPzxi','BgvHC2vxyxnby3rPDMu','C29Tzq','zw5XDwv1zq','Aw50zw50','CNvUBMvY','CMvZDw1Lqwz0zxjdB21Tyw5KuNvU','DxbKyxrLuxvLDwvKtwvZC2fNzq','CNvUswrZ','mZG2odaXnwXbz1n1Aq','z2v0qwDLBNrtzxnZAw9U','q0foq0vmteLorW','C2nOzwr1BgvKu2vZC2LVBNm','ngvsuNvMsa','u1rbuLrjtKC','AxnrDwv1zwrsDw4','z2v0uNvU','uvvfvuvFsu5qvvrFte9tva','y2XLyxi','ChjPB3jPDgL6zvf1zxvLzfj1BG','mZjJD0zpwuG','DMvYC2LVBG','zMLUza','C2v0','CNvUlMnVBxbSzxrLza','CNvUlNjLAMvJDgvK','zwzMB3j0','uLvox05pvf9gt1vora','uvvfvuvFuLvox01ju01bveni','zw1PDfj1BG','ywn0AxzLuNvUswq','y29SBgfIB3jHDgLVBK1Vzgu','C3rVChbLza'];_0x53cf=function(){return _0x201c4f;};return _0x53cf();}import{isTerminalRunStatus}from'../util/node-operation-parsers.js';import{withNonImageAttachmentPrompt}from'../runner/codex/conversation-parser.js';import{safeErrorCode}from'../util/safe-error.js';export class WorkspaceQueueWorkbenchService{[_0x44fa0a(0xf3)];[_0x44fa0a(0xe0)]=new Map();[_0x44fa0a(0x114)]=new Map();constructor(_0x1ce066){const _0x266b46=_0x44fa0a;this[_0x266b46(0xf3)]=_0x1ce066;}[_0x44fa0a(0x10b)](_0x4a05a8,_0x5982f8){const _0x3d5f4f=_0x44fa0a;if(_0x5982f8[_0x3d5f4f(0xd7)]!==_0x4a05a8[_0x3d5f4f(0xd7)]||_0x5982f8[_0x3d5f4f(0xee)]!==_0x4a05a8[_0x3d5f4f(0xee)])throw new Error(_0x3d5f4f(0x124));const _0xd3588b=this[_0x3d5f4f(0xf3)][_0x3d5f4f(0x103)][_0x3d5f4f(0xcb)](_0x5982f8);if(_0xd3588b[_0x3d5f4f(0x100)])this[_0x3d5f4f(0xe0)][_0x3d5f4f(0x11f)](_0x4a05a8[_0x3d5f4f(0xd7)],_0x4a05a8);return _0xd3588b;}[_0x44fa0a(0xff)](_0x343c7a){const _0x9a7a06=_0x44fa0a;return this[_0x9a7a06(0xe0)][_0x9a7a06(0xf1)](_0x343c7a);}[_0x44fa0a(0x12d)](_0x2d1308){const _0x14490d=_0x44fa0a;this[_0x14490d(0xe0)][_0x14490d(0xdd)](_0x2d1308);}[_0x44fa0a(0x11a)](){const _0x287e26=_0x44fa0a;this[_0x287e26(0xe0)][_0x287e26(0x11a)]();for(const _0x252975 of this[_0x287e26(0x114)][_0x287e26(0xd4)]())clearTimeout(_0x252975);this[_0x287e26(0x114)][_0x287e26(0x11a)]();}[_0x44fa0a(0xec)](_0x3e3543){const _0x2652a7=_0x44fa0a,_0x1f626a=this[_0x2652a7(0xf3)][_0x2652a7(0x103)][_0x2652a7(0x112)](_0x3e3543);if(_0x1f626a===undefined)throw new Error(_0x2652a7(0xba));this[_0x2652a7(0xf3)][_0x2652a7(0x12f)](_0x1f626a[_0x2652a7(0xc5)],_0x1f626a['id']);}[_0x44fa0a(0xfd)](_0x565d35,_0x1958b9){const _0x3aa77a=_0x44fa0a;for(const [_0x5f2f29,_0x543586]of this[_0x3aa77a(0xe0)]){if(_0x543586[_0x3aa77a(0xee)]===_0x565d35)this[_0x3aa77a(0xe0)][_0x3aa77a(0x11f)](_0x5f2f29,{..._0x543586,'sessionId':_0x1958b9,'externalSessionId':_0x1958b9});}const _0x54f5c6=this[_0x3aa77a(0x114)][_0x3aa77a(0xf1)](_0x565d35);_0x54f5c6!==undefined&&(clearTimeout(_0x54f5c6),this[_0x3aa77a(0x114)][_0x3aa77a(0xdd)](_0x565d35),this[_0x3aa77a(0xf6)](_0x1958b9));}[_0x44fa0a(0x132)](_0x58a908){const _0x319b1f=_0x44fa0a,_0x5c2819=this[_0x319b1f(0xda)](_0x58a908);if(!this[_0x319b1f(0xf3)][_0x319b1f(0x103)][_0x319b1f(0x117)](_0x5c2819['id']))throw new Error(_0x319b1f(0xe8));this[_0x319b1f(0xf3)][_0x319b1f(0x103)][_0x319b1f(0xbd)](_0x5c2819['id']),this[_0x319b1f(0x12d)](_0x5c2819['id']),this[_0x319b1f(0xf3)][_0x319b1f(0x12b)](_0x5c2819['id']),this[_0x319b1f(0xf3)][_0x319b1f(0xbc)](_0x5c2819['id']),this[_0x319b1f(0xf3)][_0x319b1f(0x12f)](_0x5c2819[_0x319b1f(0xc5)],_0x5c2819[_0x319b1f(0xee)]);}[_0x44fa0a(0xf0)](_0x46b33b){const _0x3ec7b4=_0x44fa0a,_0x381fbb=this[_0x3ec7b4(0xf3)][_0x3ec7b4(0x103)][_0x3ec7b4(0x112)](_0x46b33b);if(_0x381fbb===undefined)throw new Error(_0x3ec7b4(0xba));this[_0x3ec7b4(0xf3)][_0x3ec7b4(0x103)][_0x3ec7b4(0xf0)](_0x381fbb['id']),this[_0x3ec7b4(0xec)](_0x381fbb['id']);}[_0x44fa0a(0x10e)](_0x2872cd){const _0x526263=_0x44fa0a,_0x22cd34=this[_0x526263(0xf3)][_0x526263(0x103)][_0x526263(0x112)](_0x2872cd);if(_0x22cd34===undefined)throw new Error(_0x526263(0xba));if(!this[_0x526263(0xf3)][_0x526263(0x103)][_0x526263(0xc6)](_0x22cd34['id'])[_0x526263(0x129)])return;this[_0x526263(0xf3)][_0x526263(0x103)][_0x526263(0xed)](_0x22cd34['id']),this[_0x526263(0xec)](_0x22cd34['id']),this[_0x526263(0xf6)](_0x22cd34['id']);}[_0x44fa0a(0xea)](){const _0x9d41cf=_0x44fa0a;return{'workspace.queue.get':_0x575aeb=>this[_0x9d41cf(0xf1)](record(_0x575aeb)),'workspace.queue.resume':_0x2d5c1e=>this[_0x9d41cf(0x130)](_0x9d41cf(0xe6),record(_0x2d5c1e)),'workspace.queue.pause':_0x12f2d0=>this[_0x9d41cf(0x130)](_0x9d41cf(0xf4),record(_0x12f2d0)),'workspace.queue.reorder':_0x2e5e9c=>this[_0x9d41cf(0xdb)](record(_0x2e5e9c)),'workspace.queue.message.update':_0x15297b=>this[_0x9d41cf(0xfa)](record(_0x15297b)),'workspace.queue.message.delete':_0x1cda37=>this[_0x9d41cf(0xdd)](record(_0x1cda37)),'workspace.queue.message.execute':_0x468533=>this[_0x9d41cf(0xfc)](record(_0x468533))};}[_0x44fa0a(0xf1)](_0x18244d){const _0x1db1e4=_0x44fa0a;if(typeof _0x18244d[_0x1db1e4(0xc5)]!==_0x1db1e4(0xf7)||typeof _0x18244d[_0x1db1e4(0xee)]!==_0x1db1e4(0xf7))throw new Error(_0x1db1e4(0xd8));return{'queue':this[_0x1db1e4(0xe5)](_0x18244d[_0x1db1e4(0xc5)],_0x18244d[_0x1db1e4(0xee)])};}[_0x44fa0a(0x130)](_0x381e17,_0xc1ca99){const _0x2edb30=_0x44fa0a,_0x285688=this[_0x2edb30(0xf2)](_0xc1ca99);if(_0x381e17===_0x2edb30(0xe6))this[_0x2edb30(0xf3)][_0x2edb30(0x103)][_0x2edb30(0xed)](_0x285688['id']),this[_0x2edb30(0xf6)](_0x285688['id']);else this[_0x2edb30(0xf3)][_0x2edb30(0x103)][_0x2edb30(0xf0)](_0x285688['id']);return this[_0x2edb30(0xf3)][_0x2edb30(0x12f)](_0x285688[_0x2edb30(0xc5)],_0x285688['id']),{'queue':this[_0x2edb30(0xe5)](_0x285688[_0x2edb30(0xc5)],_0x285688['id'])};}[_0x44fa0a(0xdb)](_0x4996e7){const _0x8596fc=_0x44fa0a;if(!Number[_0x8596fc(0x104)](_0x4996e7[_0x8596fc(0xce)])||!Array[_0x8596fc(0x134)](_0x4996e7[_0x8596fc(0x110)])||_0x4996e7[_0x8596fc(0x110)][_0x8596fc(0x10a)](_0x50c76e=>typeof _0x50c76e!==_0x8596fc(0xf7)))throw new Error(_0x8596fc(0x12c));const _0x19f7a0=this[_0x8596fc(0xf2)](_0x4996e7);return this[_0x8596fc(0xf3)][_0x8596fc(0x103)][_0x8596fc(0x131)](_0x19f7a0['id'],_0x4996e7[_0x8596fc(0xce)],_0x4996e7[_0x8596fc(0x110)]),this[_0x8596fc(0xf3)][_0x8596fc(0x12f)](_0x19f7a0[_0x8596fc(0xc5)],_0x19f7a0['id']),{'queue':this[_0x8596fc(0xe5)](_0x19f7a0[_0x8596fc(0xc5)],_0x19f7a0['id'])};}[_0x44fa0a(0xfa)](_0x3e6a3e){const _0x2fa6fe=_0x44fa0a;if(typeof _0x3e6a3e[_0x2fa6fe(0xd7)]!==_0x2fa6fe(0xf7)||typeof _0x3e6a3e[_0x2fa6fe(0x135)]!==_0x2fa6fe(0xf7)||_0x3e6a3e[_0x2fa6fe(0x135)][_0x2fa6fe(0xfe)]()[_0x2fa6fe(0xeb)]===0x1d3*-0xb+0x3*0xcfd+-0x12e6)throw new Error(_0x2fa6fe(0x12c));const _0x125dc9=this[_0x2fa6fe(0xda)](_0x3e6a3e[_0x2fa6fe(0xd7)]);return this[_0x2fa6fe(0xbb)](_0x125dc9['id'],_0x3e6a3e[_0x2fa6fe(0x135)][_0x2fa6fe(0xfe)]()),this[_0x2fa6fe(0xf3)][_0x2fa6fe(0x12f)](_0x125dc9[_0x2fa6fe(0xc5)],_0x125dc9[_0x2fa6fe(0xee)]),{'queue':this[_0x2fa6fe(0xe5)](_0x125dc9[_0x2fa6fe(0xc5)],_0x125dc9[_0x2fa6fe(0xee)])};}[_0x44fa0a(0xdd)](_0x34c7a6){const _0x15d0f1=_0x44fa0a;if(typeof _0x34c7a6[_0x15d0f1(0xd7)]!==_0x15d0f1(0xf7))throw new Error(_0x15d0f1(0x12c));const _0x506e37=this[_0x15d0f1(0xda)](_0x34c7a6[_0x15d0f1(0xd7)]);return this[_0x15d0f1(0x132)](_0x506e37['id']),{'queue':this[_0x15d0f1(0xe5)](_0x506e37[_0x15d0f1(0xc5)],_0x506e37[_0x15d0f1(0xee)])};}[_0x44fa0a(0xfc)](_0x2a87c3){const _0xf70cb3=_0x44fa0a;if(typeof _0x2a87c3[_0xf70cb3(0xd7)]!==_0xf70cb3(0xf7))throw new Error(_0xf70cb3(0x12c));const _0x2d4f2f=this[_0xf70cb3(0xda)](_0x2a87c3[_0xf70cb3(0xd7)]);if(!this[_0xf70cb3(0xf3)][_0xf70cb3(0x103)][_0xf70cb3(0x117)](_0x2d4f2f['id'])||_0x2d4f2f[_0xf70cb3(0xd5)]!==_0xf70cb3(0x106))throw new Error(_0xf70cb3(0xe8));if(!this[_0xf70cb3(0xe0)][_0xf70cb3(0xc2)](_0x2d4f2f['id']))throw new Error(_0xf70cb3(0x119));const _0x32fb71=this[_0xf70cb3(0xf3)][_0xf70cb3(0x103)][_0xf70cb3(0x112)](_0x2d4f2f[_0xf70cb3(0xee)]);if(_0x32fb71===undefined)throw new Error(_0xf70cb3(0xba));this[_0xf70cb3(0xf3)][_0xf70cb3(0x103)][_0xf70cb3(0xed)](_0x32fb71['id']);const _0x5e02f9=this[_0xf70cb3(0xf3)][_0xf70cb3(0x103)][_0xf70cb3(0xbf)](_0x32fb71['id'])[_0xf70cb3(0x11e)](_0x4fb304=>_0x4fb304[_0xf70cb3(0xd5)]===_0xf70cb3(0x116)||_0x4fb304[_0xf70cb3(0xd5)]===_0xf70cb3(0x12a));this[_0xf70cb3(0xf3)][_0xf70cb3(0x103)][_0xf70cb3(0x11b)](_0x2d4f2f['id']);if(_0x5e02f9!==undefined)return this[_0xf70cb3(0xc4)](_0x2d4f2f['id'],_0x5e02f9['id'],![]),{'run':_0x2d4f2f,'delivery':_0xf70cb3(0xdc)};return this[_0xf70cb3(0xf6)](_0x32fb71['id']),{'run':_0x2d4f2f,'delivery':_0xf70cb3(0x116)};}[_0x44fa0a(0xf2)](_0x47f5cf){const _0x413629=_0x44fa0a;if(typeof _0x47f5cf[_0x413629(0xc5)]!==_0x413629(0xf7)||typeof _0x47f5cf[_0x413629(0xee)]!==_0x413629(0xf7))throw new Error(_0x413629(0xd8));const _0x6bc0a7=this[_0x413629(0xf3)][_0x413629(0x103)][_0x413629(0x112)](_0x47f5cf[_0x413629(0xee)]);if(_0x6bc0a7?.[_0x413629(0xc5)]!==_0x47f5cf[_0x413629(0xc5)])throw new Error(_0x413629(0xba));return _0x6bc0a7;}[_0x44fa0a(0xda)](_0x248f65){const _0x659f93=_0x44fa0a,_0x407f3f=this[_0x659f93(0xf3)][_0x659f93(0x103)][_0x659f93(0x118)](_0x248f65);if(_0x407f3f===undefined)throw new Error(_0x659f93(0x123));return _0x407f3f;}[_0x44fa0a(0xc4)](_0x21767c,_0x54125e,_0x36143b=!![]){const _0x23f7c3=_0x44fa0a,_0x1f205a=this[_0x23f7c3(0xf3)][_0x23f7c3(0x103)][_0x23f7c3(0x118)](_0x21767c),_0x4b1388=this[_0x23f7c3(0xf3)][_0x23f7c3(0x103)][_0x23f7c3(0x118)](_0x54125e);if(_0x1f205a===undefined||_0x4b1388===undefined||_0x1f205a[_0x23f7c3(0xee)]!==_0x4b1388[_0x23f7c3(0xee)]||!this[_0x23f7c3(0xf3)][_0x23f7c3(0x103)][_0x23f7c3(0x117)](_0x1f205a['id']))throw new Error(_0x23f7c3(0xe8));if(_0x36143b)this[_0x23f7c3(0xf3)][_0x23f7c3(0x103)][_0x23f7c3(0x11b)](_0x1f205a['id']);this[_0x23f7c3(0xf3)][_0x23f7c3(0x12f)](_0x1f205a[_0x23f7c3(0xc5)],_0x1f205a[_0x23f7c3(0xee)]),this[_0x23f7c3(0xf3)][_0x23f7c3(0xfb)](_0x4b1388['id']),this[_0x23f7c3(0xf3)][_0x23f7c3(0x103)][_0x23f7c3(0xef)](_0x4b1388['id'],_0x23f7c3(0x113)),this[_0x23f7c3(0xf3)][_0x23f7c3(0xbe)](_0x23f7c3(0xd6),{'runId':_0x4b1388['id']});}[_0x44fa0a(0xf6)](_0x1469d0){const _0x14204d=_0x44fa0a;if(this[_0x14204d(0x114)][_0x14204d(0xc2)](_0x1469d0))return;const _0x5338bc=setTimeout(()=>{const _0x3688c7=_0x14204d;this[_0x3688c7(0x114)][_0x3688c7(0xdd)](_0x1469d0);if(!this[_0x3688c7(0xf3)][_0x3688c7(0x128)]())void this[_0x3688c7(0xc8)](_0x1469d0);},0x188d+-0x731+-0x1*0x115c);this[_0x14204d(0x114)][_0x14204d(0x11f)](_0x1469d0,_0x5338bc),_0x5338bc[_0x14204d(0xd9)]();}[_0x44fa0a(0xcf)](_0x443535){const _0x871fac=_0x44fa0a,_0x25a495=this[_0x871fac(0xda)](_0x443535[_0x871fac(0xd7)]),_0x41b802=this[_0x871fac(0xf3)][_0x871fac(0x103)][_0x871fac(0x112)](_0x25a495[_0x871fac(0xee)]);if(_0x41b802===undefined)throw new Error(_0x871fac(0xba));if(_0x443535[_0x871fac(0xc9)][_0x871fac(0x129)]&&_0x443535[_0x871fac(0x126)]===undefined&&_0x443535[_0x871fac(0x10c)]!==_0x871fac(0xf9))this[_0x871fac(0xf3)][_0x871fac(0x103)][_0x871fac(0x11b)](_0x25a495['id']);if(!_0x443535[_0x871fac(0xc9)][_0x871fac(0x129)]||_0x443535[_0x871fac(0x10c)]!==_0x871fac(0xf9))this[_0x871fac(0xf3)][_0x871fac(0x103)][_0x871fac(0xed)](_0x41b802['id']);if(_0x443535[_0x871fac(0x126)]!==undefined)return this[_0x871fac(0xc4)](_0x25a495['id'],_0x443535[_0x871fac(0x126)]),_0x871fac(0xdc);const _0x31e355=_0x443535[_0x871fac(0x109)]&&this[_0x871fac(0xf3)][_0x871fac(0x103)][_0x871fac(0x107)](_0x41b802['id']),_0xac00e9=!_0x31e355&&!(_0x443535[_0x871fac(0xc9)][_0x871fac(0x129)]&&_0x443535[_0x871fac(0x10c)]===_0x871fac(0xf9)),_0x55690b=_0xac00e9&&(_0x443535[_0x871fac(0xc9)][_0x871fac(0x110)][_0x871fac(0xeb)]===0x503*-0x2+-0x14a4+0x1eaa||_0x443535[_0x871fac(0xc9)][_0x871fac(0x129)]&&_0x443535[_0x871fac(0x10c)]!==_0x871fac(0xf9));if(_0xac00e9)this[_0x871fac(0xf6)](_0x41b802['id']);else this[_0x871fac(0xf3)][_0x871fac(0x12f)](_0x41b802[_0x871fac(0xc5)],_0x41b802['id']);return _0x55690b?_0x871fac(0xe2):_0x871fac(0x106);}async[_0x44fa0a(0xc8)](_0x4e9055){const _0x28863e=_0x44fa0a,_0x202700=this[_0x28863e(0xf3)][_0x28863e(0x103)][_0x28863e(0xc3)](_0x4e9055);if(_0x202700===undefined)return;this[_0x28863e(0xf3)][_0x28863e(0x12f)](_0x202700[_0x28863e(0xc5)],_0x4e9055);const _0x512668=this[_0x28863e(0xe0)][_0x28863e(0xf1)](_0x202700['id']);if(_0x512668===undefined){this[_0x28863e(0xf3)][_0x28863e(0x125)](_0x202700['id'],_0x28863e(0x121),{'code':_0x28863e(0x119)},_0x28863e(0xdf));return;}try{const _0x42a372=this[_0x28863e(0xf3)][_0x28863e(0x103)][_0x28863e(0xc1)](_0x202700['id']);if(_0x42a372!==undefined)this[_0x28863e(0xf3)][_0x28863e(0xb9)](_0x42a372);const _0x1cead0=this[_0x28863e(0xf3)][_0x28863e(0x103)][_0x28863e(0x118)](_0x202700['id']);if(_0x1cead0!==undefined&&isTerminalRunStatus(_0x1cead0[_0x28863e(0xd5)]))return;if(_0x1cead0?.[_0x28863e(0xd5)]===_0x28863e(0x113)){this[_0x28863e(0xf3)][_0x28863e(0x125)](_0x202700['id'],_0x28863e(0x120),{'status':_0x28863e(0x102)},_0x28863e(0x102));return;}this[_0x28863e(0xf3)][_0x28863e(0xbe)](_0x28863e(0xe9),{'runId':_0x512668[_0x28863e(0xd7)],'sessionId':_0x512668[_0x28863e(0xee)],'workspaceId':_0x512668[_0x28863e(0xc5)],'runner':_0x512668[_0x28863e(0x10d)],'input':_0x512668[_0x28863e(0xc7)],..._0x512668[_0x28863e(0x12e)][_0x28863e(0xeb)]===-0xd89+0x1*0x154a+0x18d*-0x5?{}:{'attachments':_0x512668[_0x28863e(0x12e)]},'cwd':_0x512668[_0x28863e(0x133)],..._0x512668[_0x28863e(0xc0)]===null?{}:{'externalSessionId':_0x512668[_0x28863e(0xc0)]},..._0x512668[_0x28863e(0xb8)]===null?{}:{'model':_0x512668[_0x28863e(0xb8)]},..._0x512668[_0x28863e(0x122)]===null?{}:{'effort':_0x512668[_0x28863e(0x122)]},..._0x512668[_0x28863e(0xe4)]===null?{}:{'access':_0x512668[_0x28863e(0xe4)]},'collaborationMode':_0x512668[_0x28863e(0x127)],..._0x512668[_0x28863e(0x108)]===undefined?{}:{'serviceTier':_0x512668[_0x28863e(0x108)]},'secretEnvironment':_0x512668[_0x28863e(0xd1)],..._0x512668[_0x28863e(0x136)]===undefined?{}:{'personalInstructions':_0x512668[_0x28863e(0x136)]},'mcpInstallations':this[_0x28863e(0xf3)][_0x28863e(0xde)](_0x512668[_0x28863e(0xc5)])});}catch(_0x3102a3){this[_0x28863e(0xf3)][_0x28863e(0x125)](_0x202700['id'],_0x28863e(0x121),{'code':safeErrorCode(_0x3102a3,_0x28863e(0x101))},_0x28863e(0xdf));}}[_0x44fa0a(0xe5)](_0x426f6b,_0xb92e9c){const _0xd1ae16=_0x44fa0a,_0x7ade3e=this[_0xd1ae16(0xf3)][_0xd1ae16(0x103)][_0xd1ae16(0x112)](_0xb92e9c);if(_0x7ade3e?.[_0xd1ae16(0xc5)]!==_0x426f6b)throw new Error(_0xd1ae16(0xba));const _0x2ef6d4=this[_0xd1ae16(0xf3)][_0xd1ae16(0x103)][_0xd1ae16(0xc6)](_0xb92e9c);return{'version':_0x2ef6d4[_0xd1ae16(0x11d)],'paused':_0x2ef6d4[_0xd1ae16(0x129)],'items':_0x2ef6d4[_0xd1ae16(0x110)][_0xd1ae16(0xd3)](_0x50a540=>{const _0x5dca85=_0xd1ae16,_0x433210=this[_0x5dca85(0xf3)][_0x5dca85(0x103)][_0x5dca85(0x118)](_0x50a540);if(_0x433210===undefined)return[];const _0x57a1ee=this[_0x5dca85(0xf3)][_0x5dca85(0x103)][_0x5dca85(0x112)](_0x433210[_0x5dca85(0xee)]);return[{'run':_0x433210,'sessionId':_0x433210[_0x5dca85(0xee)],'sessionTitle':_0x57a1ee?.[_0x5dca85(0xe7)]??_0x57a1ee?.[_0x5dca85(0x105)]??_0x5dca85(0xf8),'content':this[_0x5dca85(0xf3)][_0x5dca85(0x103)][_0x5dca85(0xcc)](_0x433210['id'])}];})};}[_0x44fa0a(0xbb)](_0x55e1a3,_0x4dae15){const _0x488ce1=_0x44fa0a,_0xe7cd5=this[_0x488ce1(0xe0)][_0x488ce1(0xf1)](_0x55e1a3),_0x473995=withNonImageAttachmentPrompt(_0x4dae15,_0xe7cd5?.[_0x488ce1(0xf5)]??[]);this[_0x488ce1(0xf3)][_0x488ce1(0x103)][_0x488ce1(0x10f)](_0x55e1a3,_0x473995);if(_0xe7cd5===undefined)return;this[_0x488ce1(0xe0)][_0x488ce1(0x11f)](_0x55e1a3,{..._0xe7cd5,'input':this[_0x488ce1(0xf3)][_0x488ce1(0xd0)](_0xe7cd5[_0x488ce1(0x10d)],_0x473995,_0xe7cd5[_0x488ce1(0x127)])});}}function record(_0x28ecc3){return isPlainRecord(_0x28ecc3)?_0x28ecc3:{};}
2
+ const _0x13e9eb=_0x4b0a;(function(_0x223811,_0x5bcc17){const _0x45cb79=_0x4b0a,_0x20d312=_0x223811();while(!![]){try{const _0x3eae27=-parseInt(_0x45cb79(0x11f))/(0x12f0*-0x2+-0x5a0*-0x5+0x9c1)*(-parseInt(_0x45cb79(0x14b))/(0xb2*0x27+-0x985*0x2+-0x2*0x409))+-parseInt(_0x45cb79(0x120))/(-0x2651+0x1*0x1815+0x209*0x7)+parseInt(_0x45cb79(0x134))/(0x75e+-0x59e+-0x6f*0x4)*(-parseInt(_0x45cb79(0x141))/(0xb*-0x338+-0x5b*0x35+0x3644))+-parseInt(_0x45cb79(0x11e))/(0x219f+0x54b*-0x5+0xb*-0xa6)+-parseInt(_0x45cb79(0x13b))/(-0x1ff6+-0x1668+0x3665)+parseInt(_0x45cb79(0x14e))/(-0xbf*-0x2+0x3*-0x71d+0x13e1)+-parseInt(_0x45cb79(0x116))/(-0x1227+-0x1999*-0x1+-0x769*0x1)*(-parseInt(_0x45cb79(0x11d))/(-0x1b29*0x1+-0x1*0x463+0x1f96*0x1));if(_0x3eae27===_0x5bcc17)break;else _0x20d312['push'](_0x20d312['shift']());}catch(_0x3861b0){_0x20d312['push'](_0x20d312['shift']());}}}(_0xf8a5,-0x52c4*-0x26+-0x4ef82+0x1*0x2d80b));import{isPlainRecord,withNonImageAttachmentPrompt}from'../runner/codex/conversation-parser.js';import{assertQueueItemOwner,assertSessionControlOwner}from'./run-ownership-policy.js';export class WorkspaceQueueWorkbenchService{[_0x13e9eb(0x142)];constructor(_0x4605e0){const _0x266669=_0x13e9eb;this[_0x266669(0x142)]=_0x4605e0;}[_0x13e9eb(0x133)](){const _0x18f564=_0x13e9eb;return{'workspace.queue.get':_0x26e51b=>this[_0x18f564(0x113)](record(_0x26e51b)),'workspace.queue.resume':_0x454462=>this[_0x18f564(0x128)](_0x18f564(0x11a),record(_0x454462)),'workspace.queue.pause':_0x4a75a8=>this[_0x18f564(0x128)](_0x18f564(0x12e),record(_0x4a75a8)),'workspace.queue.reorder':_0x44ba6b=>this[_0x18f564(0x131)](record(_0x44ba6b)),'workspace.queue.message.update':_0x2dbef5=>this[_0x18f564(0x14c)](record(_0x2dbef5)),'workspace.queue.message.delete':_0x3fcefd=>this[_0x18f564(0x118)](record(_0x3fcefd)),'workspace.queue.message.execute':_0x1b7aa0=>this[_0x18f564(0x124)](record(_0x1b7aa0))};}[_0x13e9eb(0x14a)](_0x5af9bc){const _0x4259f2=_0x13e9eb,_0x45f7fa=this[_0x4259f2(0x142)][_0x4259f2(0x13e)][_0x4259f2(0x115)](_0x5af9bc);if(_0x45f7fa===undefined)throw new Error(_0x4259f2(0x123));this[_0x4259f2(0x142)][_0x4259f2(0x13e)][_0x4259f2(0x14a)](_0x45f7fa['id']),this[_0x4259f2(0x142)][_0x4259f2(0x11c)](_0x45f7fa[_0x4259f2(0x12b)],_0x45f7fa['id']);}[_0x13e9eb(0x14f)](_0x334ec9){const _0x4de58d=_0x13e9eb,_0x2f4118=this[_0x4de58d(0x142)][_0x4de58d(0x13e)][_0x4de58d(0x115)](_0x334ec9);if(_0x2f4118===undefined)throw new Error(_0x4de58d(0x123));if(!this[_0x4de58d(0x142)][_0x4de58d(0x13e)][_0x4de58d(0x11b)](_0x2f4118['id'])[_0x4de58d(0x126)])return;this[_0x4de58d(0x142)][_0x4de58d(0x10e)][_0x4de58d(0x11a)](_0x2f4118['id']),this[_0x4de58d(0x142)][_0x4de58d(0x11c)](_0x2f4118[_0x4de58d(0x12b)],_0x2f4118['id']);}[_0x13e9eb(0x14d)](_0x3dff1e,_0x4518af){const _0xdc308d=_0x13e9eb,_0x126c2a=this[_0xdc308d(0x142)][_0xdc308d(0x13e)][_0xdc308d(0x115)](_0x4518af);if(_0x126c2a?.[_0xdc308d(0x12b)]!==_0x3dff1e)throw new Error(_0xdc308d(0x123));return this[_0xdc308d(0x121)](_0x4518af);}[_0x13e9eb(0x121)](_0x4f58b0){const _0x3c12dd=_0x13e9eb,_0x4c9ae3=this[_0x3c12dd(0x142)][_0x3c12dd(0x13e)][_0x3c12dd(0x11b)](_0x4f58b0);return{'version':_0x4c9ae3[_0x3c12dd(0x13d)],'paused':_0x4c9ae3[_0x3c12dd(0x126)],'items':_0x4c9ae3[_0x3c12dd(0x110)][_0x3c12dd(0x111)](_0x168345=>{const _0x46cccc=_0x3c12dd,_0x4abcf1=this[_0x46cccc(0x142)][_0x46cccc(0x13e)][_0x46cccc(0x12a)](_0x168345);if(_0x4abcf1===undefined)return[];const _0x38a3bc=this[_0x46cccc(0x142)][_0x46cccc(0x13e)][_0x46cccc(0x115)](_0x4abcf1[_0x46cccc(0x129)]);return[{'queueItemId':_0x4abcf1['id'],'sessionId':_0x4abcf1[_0x46cccc(0x129)],'workspaceId':_0x4abcf1[_0x46cccc(0x12b)],'runner':_0x4abcf1[_0x46cccc(0x148)],'clientMessageId':_0x4abcf1[_0x46cccc(0x135)],'sessionTitle':_0x38a3bc?.[_0x46cccc(0x117)]??_0x38a3bc?.[_0x46cccc(0x140)]??_0x46cccc(0x127),'content':_0x4abcf1[_0x46cccc(0x139)],'createdAt':_0x4abcf1[_0x46cccc(0x112)]}];})};}[_0x13e9eb(0x113)](_0x522729){const _0x58ed76=_0x13e9eb,_0x3f9e52=this[_0x58ed76(0x137)](_0x522729);return{'queue':this[_0x58ed76(0x14d)](_0x3f9e52[_0x58ed76(0x12b)],_0x3f9e52['id'])};}[_0x13e9eb(0x128)](_0x582d4e,_0x3351de){const _0x5aedd9=_0x13e9eb,_0x2752b1=this[_0x5aedd9(0x137)](_0x3351de);assertSessionControlOwner(this[_0x5aedd9(0x142)][_0x5aedd9(0x13e)],_0x2752b1['id'],_0x3351de[_0x5aedd9(0x150)]);if(_0x582d4e===_0x5aedd9(0x11a))this[_0x5aedd9(0x142)][_0x5aedd9(0x10e)][_0x5aedd9(0x11a)](_0x2752b1['id']);else this[_0x5aedd9(0x142)][_0x5aedd9(0x13e)][_0x5aedd9(0x14a)](_0x2752b1['id']);return this[_0x5aedd9(0x142)][_0x5aedd9(0x11c)](_0x2752b1[_0x5aedd9(0x12b)],_0x2752b1['id']),{'queue':this[_0x5aedd9(0x14d)](_0x2752b1[_0x5aedd9(0x12b)],_0x2752b1['id'])};}[_0x13e9eb(0x131)](_0x53cf41){const _0x3ccda6=_0x13e9eb;if(!Number[_0x3ccda6(0x130)](_0x53cf41[_0x3ccda6(0x13f)])||!Array[_0x3ccda6(0x12d)](_0x53cf41[_0x3ccda6(0x146)])||_0x53cf41[_0x3ccda6(0x146)][_0x3ccda6(0x143)](_0x38ee40=>typeof _0x38ee40!==_0x3ccda6(0x114)))throw new Error(_0x3ccda6(0x12c));const _0x5165a9=this[_0x3ccda6(0x137)](_0x53cf41);return assertSessionControlOwner(this[_0x3ccda6(0x142)][_0x3ccda6(0x13e)],_0x5165a9['id'],_0x53cf41[_0x3ccda6(0x150)]),this[_0x3ccda6(0x142)][_0x3ccda6(0x13e)][_0x3ccda6(0x132)](_0x5165a9['id'],_0x53cf41[_0x3ccda6(0x13f)],_0x53cf41[_0x3ccda6(0x146)]),this[_0x3ccda6(0x142)][_0x3ccda6(0x11c)](_0x5165a9[_0x3ccda6(0x12b)],_0x5165a9['id']),{'queue':this[_0x3ccda6(0x14d)](_0x5165a9[_0x3ccda6(0x12b)],_0x5165a9['id'])};}[_0x13e9eb(0x14c)](_0x19f385){const _0x2878c0=_0x13e9eb;if(typeof _0x19f385[_0x2878c0(0x10f)]!==_0x2878c0(0x114)||typeof _0x19f385[_0x2878c0(0x139)]!==_0x2878c0(0x114)||_0x19f385[_0x2878c0(0x139)][_0x2878c0(0x119)]()[_0x2878c0(0x147)]===-0x25d9+-0x21*0x45+0x2ebe)throw new Error(_0x2878c0(0x12c));const _0x23f586=this[_0x2878c0(0x125)](_0x19f385[_0x2878c0(0x10f)],_0x19f385[_0x2878c0(0x12b)]);assertQueueItemOwner(_0x23f586,_0x19f385[_0x2878c0(0x150)]);const _0xc2b70e=_0x19f385[_0x2878c0(0x139)][_0x2878c0(0x119)]();this[_0x2878c0(0x142)][_0x2878c0(0x13e)][_0x2878c0(0x138)](_0x23f586['id'],_0xc2b70e);const _0x1d3bc8=this[_0x2878c0(0x142)][_0x2878c0(0x10e)][_0x2878c0(0x151)](_0x23f586['id']);if(_0x1d3bc8!==undefined){const _0x3efd40=withNonImageAttachmentPrompt(_0xc2b70e,_0x1d3bc8[_0x2878c0(0x144)]);this[_0x2878c0(0x142)][_0x2878c0(0x10e)][_0x2878c0(0x136)](_0x23f586['id'],this[_0x2878c0(0x142)][_0x2878c0(0x12f)](_0x1d3bc8[_0x2878c0(0x148)],_0x3efd40,_0x1d3bc8[_0x2878c0(0x145)]));}return this[_0x2878c0(0x142)][_0x2878c0(0x11c)](_0x23f586[_0x2878c0(0x12b)],_0x23f586[_0x2878c0(0x129)]),{'queue':this[_0x2878c0(0x14d)](_0x23f586[_0x2878c0(0x12b)],_0x23f586[_0x2878c0(0x129)])};}[_0x13e9eb(0x118)](_0x2af425){const _0x236693=_0x13e9eb;if(typeof _0x2af425[_0x236693(0x10f)]!==_0x236693(0x114))throw new Error(_0x236693(0x12c));const _0x5d3237=this[_0x236693(0x125)](_0x2af425[_0x236693(0x10f)],_0x2af425[_0x236693(0x12b)]);return assertQueueItemOwner(_0x5d3237,_0x2af425[_0x236693(0x150)]),this[_0x236693(0x142)][_0x236693(0x10e)][_0x236693(0x13a)](_0x5d3237['id']),{'queue':this[_0x236693(0x14d)](_0x5d3237[_0x236693(0x12b)],_0x5d3237[_0x236693(0x129)])};}[_0x13e9eb(0x124)](_0x493e8b){const _0x3e594a=_0x13e9eb;if(typeof _0x493e8b[_0x3e594a(0x10f)]!==_0x3e594a(0x114))throw new Error(_0x3e594a(0x12c));return assertQueueItemOwner(this[_0x3e594a(0x125)](_0x493e8b[_0x3e594a(0x10f)],_0x493e8b[_0x3e594a(0x12b)]),_0x493e8b[_0x3e594a(0x150)]),this[_0x3e594a(0x142)][_0x3e594a(0x10e)][_0x3e594a(0x149)](_0x493e8b[_0x3e594a(0x10f)]);}[_0x13e9eb(0x137)](_0x312482){const _0x103ea3=_0x13e9eb;if(typeof _0x312482[_0x103ea3(0x12b)]!==_0x103ea3(0x114)||typeof _0x312482[_0x103ea3(0x129)]!==_0x103ea3(0x114))throw new Error(_0x103ea3(0x122));const _0x211536=this[_0x103ea3(0x142)][_0x103ea3(0x13e)][_0x103ea3(0x115)](_0x312482[_0x103ea3(0x129)]);if(_0x211536?.[_0x103ea3(0x12b)]!==_0x312482[_0x103ea3(0x12b)])throw new Error(_0x103ea3(0x123));return _0x211536;}[_0x13e9eb(0x125)](_0x5c977c,_0x2b4c18){const _0x57d465=_0x13e9eb,_0x5c709c=this[_0x57d465(0x142)][_0x57d465(0x13e)][_0x57d465(0x12a)](_0x5c977c);if(_0x5c709c===undefined)throw new Error(_0x57d465(0x13c));if(typeof _0x2b4c18!==_0x57d465(0x114)||_0x5c709c[_0x57d465(0x12b)]!==_0x2b4c18)throw new Error(_0x57d465(0x13c));return _0x5c709c;}}function record(_0x326485){return isPlainRecord(_0x326485)?_0x326485:{};}function _0x4b0a(_0x5e31f0,_0x1e7027){_0x5e31f0=_0x5e31f0-(-0x227d+-0x30*0x9e+-0xc9*-0x53);const _0x5ccd50=_0xf8a5();let _0x14072b=_0x5ccd50[_0x5e31f0];if(_0x4b0a['enPXFe']===undefined){var _0x1b51df=function(_0x3af5e7){const _0x3059d3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x11fe5c='',_0x269aab='';for(let _0x3dd456=-0x6de+0x372+0x36c,_0x3be31f,_0x2e940c,_0x48c3bf=-0x12e3+0x2534+-0x3*0x61b;_0x2e940c=_0x3af5e7['charAt'](_0x48c3bf++);~_0x2e940c&&(_0x3be31f=_0x3dd456%(-0x1*-0x11ae+-0x5*-0x463+0x5d*-0x6d)?_0x3be31f*(0x17*0x21+-0x5b+0x97*-0x4)+_0x2e940c:_0x2e940c,_0x3dd456++%(0x14a1*-0x1+0x162a*0x1+-0x1*0x185))?_0x11fe5c+=String['fromCharCode'](-0x1d98*-0x1+0x1b9e+-0x3837&_0x3be31f>>(-(-0xf1f+0xc89*0x1+-0x4*-0xa6)*_0x3dd456&0x1*0x24ca+0x399*-0x1+-0x212b)):-0x2216+0x1*-0x12ad+0x34c3){_0x2e940c=_0x3059d3['indexOf'](_0x2e940c);}for(let _0x1f2aa4=-0xc*0x2+0x26aa+-0x2692,_0x480b6d=_0x11fe5c['length'];_0x1f2aa4<_0x480b6d;_0x1f2aa4++){_0x269aab+='%'+('00'+_0x11fe5c['charCodeAt'](_0x1f2aa4)['toString'](0x611*0x5+0x5*-0x135+0x234*-0xb))['slice'](-(0x16ff+-0x1629*0x1+-0xd4));}return decodeURIComponent(_0x269aab);};_0x4b0a['ubtFEX']=_0x1b51df,_0x4b0a['ODYukR']={},_0x4b0a['enPXFe']=!![];}const _0x4d9d44=_0x5ccd50[0x8*0x476+0x1cab+-0x1*0x405b];_0x4b0a['CcrXGH']!==_0x4d9d44&&(_0x4b0a['ODYukR']={},_0x4b0a['CcrXGH']=_0x4d9d44);const _0x1e2756=_0x4b0a['ODYukR'][_0x5e31f0];return _0x1e2756===undefined?(_0x14072b=_0x4b0a['ubtFEX'](_0x14072b),_0x4b0a['ODYukR'][_0x5e31f0]=_0x14072b):_0x14072b=_0x1e2756,_0x14072b;}function _0xf8a5(){const _0x4101d7=['mJiWndvhtLfjrvu','mJa4nZu4nLHureL6vW','C25HChnOB3q','v09ss1nqqunfx05pvf9gt1vora','u0vtu0LptL9ot1rFrK9vtKq','zxHLy3v0zq','CMvXDwLYzuL0zw0','Cgf1C2vK','vw50AxrSzwqGC2vZC2LVBG','Cgf1C2vpCLjLC3vTzq','C2vZC2LVBKLK','z2v0uxvLDwvjDgvT','D29YA3nWywnLswq','uvvfvuvFsu5wquXjra','AxnbCNjHEq','Cgf1C2u','ChjLCgfYzuLUChv0','AxnjBNrLz2vY','CMvVCMrLCG','CMvVCMrLCLnLC3nPB25rDwv1zq','B3bLCMf0Aw9UCW','nJy2mtG4ELPIwwTV','y2XPzw50twvZC2fNzuLK','DxbKyxrLuhjLCgfYzwrjBNb1Da','CMvXDwLYzvnLC3nPB24','DxbKyxrLuxvLDwvjDgvT','y29UDgvUDa','zgvSzxrLuxvLDwvjDgvT','mJa5mtiZnND3CeLtrq','uvvfvuvFsvrftv9jtLzbteLe','DMvYC2LVBG','CNvUDgLTzq','zxHWzwn0zwrwzxjZAw9U','CNvUBMvYvgL0Bgu','mZvryKDbANy','B3b0Aw9UCW','C29Tzq','yxr0ywnOBwvUDfbHDgHZ','y29SBgfIB3jHDgLVBK1Vzgu','CxvLDwvjDgvTswrZ','BgvUz3rO','CNvUBMvY','zxHLy3v0zvf1zxvLsxrLBq','Cgf1C2vtzxnZAw9UuxvLDwu','otrqBgTkyNK','DxbKyxrL','ChjLC2vUDa','mteWndaXnMfmC2rguW','CMvZDw1Lqwz0zxjdB21Tyw5KuNvU','x19Yzxf1zxn0vxnLCKLK','CgvUzgLUzW','y29VCMrPBMf0B3i','CxvLDwvjDgvTswq','AxrLBuLKCW','zMXHDe1HCa','y3jLyxrLzef0','z2v0','C3rYAw5N','z2v0qwDLBNrtzxnZAw9U','ounKBwzOrq','y3vZDg9TvgL0Bgu','zgvSzxrL','DhjPBq','CMvZDw1L','C2vZC2LVBLf1zxvL','zw1PDa','mJi5mZa5otbNz1jeAhi','mZGZmJi3mKHhyK5ItG'];_0xf8a5=function(){return _0x4101d7;};return _0xf8a5();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/node",
3
- "version": "0.9.13",
3
+ "version": "0.9.14",
4
4
  "description": "MyAgentRoam Node runtime CLI.",
5
5
  "type": "module",
6
6
  "files": [
@@ -24,7 +24,7 @@
24
24
  "node-pty": "1.1.0",
25
25
  "ws": "^8.21.3",
26
26
  "zod": "4.4.3",
27
- "@myagentroam/protocol": "^0.9.13"
27
+ "@myagentroam/protocol": "^0.9.14"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/ws": "^8.18.1"