@dscord/daemon 0.1.84 → 0.1.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/chat-bridge.js +2214 -2186
  2. package/dist/index.js +10233 -10298
  3. package/package.json +1 -1
@@ -1,25 +1,24 @@
1
- const _0x548baf = _0x7c22;
2
- (function (_0x5959dc, _0x5506c6) {
3
- const _0x7ad8ab = {
4
- _0x540c6d: 0x22a,
5
- _0x338fb9: 0x138,
6
- _0x3b936c: 0x27c,
7
- _0xc894f4: 0x26f,
8
- _0x21945d: 0x26a,
9
- _0x2a0188: 0x25b
10
- }, _0x2ff1ad = _0x7c22, _0x4b07e7 = _0x5959dc();
1
+ const _0x5e54a5 = _0x3280;
2
+ (function (_0x58909d, _0x337cf8) {
3
+ const _0x294927 = {
4
+ _0x238225: 0x29a,
5
+ _0x141657: 0x20a,
6
+ _0x3f0b59: 0x168,
7
+ _0x290a91: 0x21e,
8
+ _0x470041: 0x2eb
9
+ }, _0x27fc71 = _0x3280, _0x3a47db = _0x58909d();
11
10
  while (!![]) {
12
11
  try {
13
- const _0x55855f = -parseInt(_0x2ff1ad(_0x7ad8ab._0x540c6d)) / 0x1 * (-parseInt(_0x2ff1ad(0x18e)) / 0x2) + parseInt(_0x2ff1ad(_0x7ad8ab._0x338fb9)) / 0x3 + -parseInt(_0x2ff1ad(_0x7ad8ab._0x3b936c)) / 0x4 * (-parseInt(_0x2ff1ad(0x156)) / 0x5) + -parseInt(_0x2ff1ad(0x22e)) / 0x6 + -parseInt(_0x2ff1ad(_0x7ad8ab._0xc894f4)) / 0x7 * (-parseInt(_0x2ff1ad(_0x7ad8ab._0x21945d)) / 0x8) + parseInt(_0x2ff1ad(0x15e)) / 0x9 * (parseInt(_0x2ff1ad(0x111)) / 0xa) + -parseInt(_0x2ff1ad(_0x7ad8ab._0x2a0188)) / 0xb;
14
- if (_0x55855f === _0x5506c6)
12
+ const _0x2a0eb2 = parseInt(_0x27fc71(0x1e1)) / 0x1 * (parseInt(_0x27fc71(0x1f8)) / 0x2) + -parseInt(_0x27fc71(0x247)) / 0x3 * (parseInt(_0x27fc71(0x25b)) / 0x4) + parseInt(_0x27fc71(0x26c)) / 0x5 * (parseInt(_0x27fc71(0x245)) / 0x6) + -parseInt(_0x27fc71(_0x294927._0x238225)) / 0x7 * (-parseInt(_0x27fc71(_0x294927._0x141657)) / 0x8) + -parseInt(_0x27fc71(0x244)) / 0x9 * (parseInt(_0x27fc71(_0x294927._0x3f0b59)) / 0xa) + parseInt(_0x27fc71(0x1c3)) / 0xb * (parseInt(_0x27fc71(_0x294927._0x290a91)) / 0xc) + -parseInt(_0x27fc71(_0x294927._0x470041)) / 0xd;
13
+ if (_0x2a0eb2 === _0x337cf8)
15
14
  break;
16
15
  else
17
- _0x4b07e7['push'](_0x4b07e7['shift']());
18
- } catch (_0x47ede1) {
19
- _0x4b07e7['push'](_0x4b07e7['shift']());
16
+ _0x3a47db['push'](_0x3a47db['shift']());
17
+ } catch (_0x2aec8b) {
18
+ _0x3a47db['push'](_0x3a47db['shift']());
20
19
  }
21
20
  }
22
- }(_0x3cbc, 0xa95ad));
21
+ }(_0x5707, 0x7d7b0));
23
22
  import { pathToFileURL } from 'node:url';
24
23
  import {
25
24
  mkdir,
@@ -29,2384 +28,2413 @@ import {
29
28
  writeFile
30
29
  } from 'node:fs/promises';
31
30
  import { homedir } from 'node:os';
32
- import _0x479ed7 from 'node:path';
33
- function _0x3cbc() {
34
- const _0x269a79 = [
35
- 'ndK2DKTeCeDw',
36
- 'DgfZA051BwjLCG',
37
- 'AgLNAa',
38
- 'C2vUzf9TzxnZywDLigzHAwXLza',
39
- 'ywDNCMvNyxrLswq',
40
- 'mZe0mZDJwK1pwgC',
41
- 'D29YA2vY',
42
- 'AgfZtw9Yzq',
43
- 'l2nVBNrLBNq',
44
- 'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
45
- 'Bgf0zxn0u2vX',
46
- 'CNvUBMLUzW',
47
- 'ywDNCMvNyxrLvhLWzq',
48
- 'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
49
- 'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
50
- 'zw51Bq',
51
- 'Dgv4Dc9JC3y',
52
- 'Dw5JBgfPBv90yxnR',
53
- 'ngfSrxjlza',
54
- 'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
55
- 'AgfZ',
56
- 'B3jPz2LUywXgAwXLBMfTzq',
57
- 'BwfW',
58
- 'Aw1Hz2uVz2LM',
59
- 'DMfSDwvZ',
60
- 'BwvZC2fNzxm',
61
- 'AxnbCNjHEq',
62
- 'zxHWAxjLC0f0',
63
- 'v29YA2vYia',
64
- 'D29YA2vYvgHYzwfKvgfYz2v0',
65
- 'Aw5KzxHpzG',
66
- 'C2L6zuj5DgvZ',
67
- 'Ahr0Chm6',
68
- 'z2v0twLUDxrLCW',
69
- 'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
70
- 'D29YA2vYtw9KzuvUywjSzwq',
71
- 'CMvZB2X2zvrHCMDLDa',
72
- 'C3rVCe1HAw4',
73
- 'Bg9JywXLq29TCgfYzq',
74
- 'D29YA2vYCW',
75
- 'A2LUza',
76
- 'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
31
+ import _0x36a60c from 'node:path';
32
+ var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
33
+ '.csv': _0x5e54a5(0x19b),
34
+ '.gif': _0x5e54a5(0x249),
35
+ '.jpeg': 'image/jpeg',
36
+ '.jpg': _0x5e54a5(0x238),
37
+ '.json': _0x5e54a5(0x213),
38
+ '.md': _0x5e54a5(0x224),
39
+ '.pdf': 'application/pdf',
40
+ '.png': _0x5e54a5(0x21d),
41
+ '.svg': _0x5e54a5(0x1ba),
42
+ '.txt': _0x5e54a5(0x1f6),
43
+ '.webp': 'image/webp',
44
+ '.xml': _0x5e54a5(0x2e6),
45
+ '.zip': 'application/zip'
46
+ };
47
+ function guessContentType(_0xc516c8) {
48
+ const _0x2eb4aa = { _0x2d7a33: 0x1c2 }, _0x5311bf = _0x5e54a5;
49
+ return MIME_BY_EXTENSION[_0x36a60c[_0x5311bf(_0x2eb4aa._0x2d7a33)](_0xc516c8)['toLowerCase']()] ?? 'application/octet-stream';
50
+ }
51
+ function safeFilename(_0x5ca015) {
52
+ const _0x1b8908 = { _0x17c679: 0x217 }, _0x22e552 = _0x5e54a5;
53
+ return _0x5ca015[_0x22e552(_0x1b8908._0x17c679)](/[\\/]/g, '-');
54
+ }
55
+ function extensionFor(_0x525f20) {
56
+ const _0x1a0ce8 = {
57
+ _0x1917a0: 0x28d,
58
+ _0x2e26c4: 0x282,
59
+ _0x300477: 0x1bf
60
+ }, _0x1bf834 = _0x5e54a5, _0xcfa76e = Object[_0x1bf834(_0x1a0ce8._0x1917a0)](MIME_BY_EXTENSION)[_0x1bf834(_0x1a0ce8._0x2e26c4)](([, _0xc59d4d]) => _0xc59d4d === _0x525f20);
61
+ return _0xcfa76e?.[0x0] ?? _0x1bf834(_0x1a0ce8._0x300477);
62
+ }
63
+ function _0x3280(_0x74c515, _0x2c5a0c) {
64
+ _0x74c515 = _0x74c515 - 0x15f;
65
+ const _0x570700 = _0x5707();
66
+ let _0x3280c8 = _0x570700[_0x74c515];
67
+ if (_0x3280['cIbsID'] === undefined) {
68
+ var _0x268695 = function (_0x8a721e) {
69
+ const _0x28bbf1 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
70
+ let _0x36a60c = '', _0xc516c8 = '';
71
+ for (let _0x5ca015 = 0x0, _0x525f20, _0xcfa76e, _0xc59d4d = 0x0; _0xcfa76e = _0x8a721e['charAt'](_0xc59d4d++); ~_0xcfa76e && (_0x525f20 = _0x5ca015 % 0x4 ? _0x525f20 * 0x40 + _0xcfa76e : _0xcfa76e, _0x5ca015++ % 0x4) ? _0x36a60c += String['fromCharCode'](0xff & _0x525f20 >> (-0x2 * _0x5ca015 & 0x6)) : 0x0) {
72
+ _0xcfa76e = _0x28bbf1['indexOf'](_0xcfa76e);
73
+ }
74
+ for (let _0x43cae4 = 0x0, _0x27eedd = _0x36a60c['length']; _0x43cae4 < _0x27eedd; _0x43cae4++) {
75
+ _0xc516c8 += '%' + ('00' + _0x36a60c['charCodeAt'](_0x43cae4)['toString'](0x10))['slice'](-0x2);
76
+ }
77
+ return decodeURIComponent(_0xc516c8);
78
+ };
79
+ _0x3280['wlrOdb'] = _0x268695, _0x3280['hUjmwo'] = {}, _0x3280['cIbsID'] = !![];
80
+ }
81
+ const _0x1581c0 = _0x570700[0x0], _0x1f8b6e = _0x74c515 + _0x1581c0, _0x340f58 = _0x3280['hUjmwo'][_0x1f8b6e];
82
+ return !_0x340f58 ? (_0x3280c8 = _0x3280['wlrOdb'](_0x3280c8), _0x3280['hUjmwo'][_0x1f8b6e] = _0x3280c8) : _0x3280c8 = _0x340f58, _0x3280c8;
83
+ }
84
+ async function prepareUploadFile(_0x43cae4, _0x27eedd = {}) {
85
+ const _0x1e6216 = {
86
+ _0x1f9268: 0x240,
87
+ _0x479386: 0x194,
88
+ _0xd5c7ff: 0x2bd,
89
+ _0xd238ca: 0x2e5
90
+ }, _0x163667 = _0x5e54a5;
91
+ if (!_0x36a60c['isAbsolute'](_0x43cae4))
92
+ throw new Error(_0x163667(0x165));
93
+ const _0x7c1e43 = await stat(_0x43cae4)['catch'](() => null);
94
+ if (!_0x7c1e43 || !_0x7c1e43[_0x163667(0x206)]())
95
+ throw new Error(_0x163667(_0x1e6216._0x1f9268) + _0x43cae4);
96
+ const _0x4a48bf = _0x27eedd[_0x163667(0x2b3)] ?? DEFAULT_MAX_FILE_SIZE;
97
+ if (_0x7c1e43['size'] > _0x4a48bf)
98
+ throw new Error(_0x163667(_0x1e6216._0x479386) + _0x7c1e43['size']);
99
+ const _0x5cf995 = await readFile(_0x43cae4), _0x157073 = _0x36a60c[_0x163667(_0x1e6216._0xd5c7ff)](_0x43cae4);
100
+ return {
101
+ 'contentBase64': _0x5cf995['toString'](_0x163667(0x252)),
102
+ 'contentType': guessContentType(_0x157073),
103
+ 'filename': _0x157073,
104
+ 'sizeBytes': _0x7c1e43[_0x163667(_0x1e6216._0xd238ca)]
105
+ };
106
+ }
107
+ function createAttachmentCache(_0x2555fa = {}) {
108
+ const _0x5b100a = {
109
+ _0xdc174f: 0x1c8,
110
+ _0x543d67: 0x2c4,
111
+ _0x21a95d: 0x27f,
112
+ _0x69f8fd: 0x232
113
+ }, _0x56c1e8 = _0x5e54a5, _0x2506fa = _0x2555fa['cacheDir'] ?? _0x36a60c[_0x56c1e8(0x27f)](homedir(), _0x56c1e8(0x219), 'attachments');
114
+ return {
115
+ 'cacheDir': _0x2506fa,
116
+ async 'findCachedPath'(_0x18b8a4) {
117
+ const _0x56d9f8 = _0x56c1e8;
118
+ await mkdir(_0x2506fa, { 'recursive': !![] });
119
+ const _0x556fce = await readdir(_0x2506fa), _0x208586 = _0x556fce[_0x56d9f8(0x282)](_0x422508 => _0x422508[_0x56d9f8(0x285)](_0x18b8a4 + '-') || _0x422508[_0x56d9f8(0x285)](_0x18b8a4));
120
+ return _0x208586 ? _0x36a60c['join'](_0x2506fa, _0x208586) : null;
121
+ },
122
+ async 'save'(_0x4ce46b) {
123
+ const _0x18d667 = _0x56c1e8;
124
+ await mkdir(_0x2506fa, { 'recursive': !![] });
125
+ const _0x2c9d6d = _0x4ce46b[_0x18d667(0x170)]?.[_0x18d667(_0x5b100a._0xdc174f)]() ? safeFilename(_0x4ce46b[_0x18d667(0x170)]) : '' + _0x4ce46b['attachmentId'] + extensionFor(_0x4ce46b[_0x18d667(_0x5b100a._0x543d67)]), _0x474c48 = _0x36a60c[_0x18d667(_0x5b100a._0x21a95d)](_0x2506fa, _0x4ce46b[_0x18d667(0x2b7)] + '-' + _0x2c9d6d);
126
+ return await writeFile(_0x474c48, _0x4ce46b[_0x18d667(_0x5b100a._0x69f8fd)]), _0x474c48;
127
+ }
128
+ };
129
+ }
130
+ import {
131
+ createHash,
132
+ randomUUID
133
+ } from 'node:crypto';
134
+ var UNSUPPORTED_TARGET_MESSAGE = _0x5e54a5(0x2e0);
135
+ function ensureSegment(_0x2e2c2c) {
136
+ const _0x47ca55 = { _0x1690f6: 0x2a2 }, _0xc56ddc = _0x5e54a5, _0x45ff9c = _0x2e2c2c[_0xc56ddc(0x1c8)]();
137
+ if (!_0x45ff9c || _0x45ff9c[_0xc56ddc(_0x47ca55._0x1690f6)](':'))
138
+ throw new Error(UNSUPPORTED_TARGET_MESSAGE);
139
+ return _0x45ff9c;
140
+ }
141
+ function parseThreadParts(_0x42c141) {
142
+ const _0x27fdc4 = { _0x309451: 0x1a1 }, _0x5c6c4f = _0x5e54a5, _0x4a7e53 = _0x42c141[_0x5c6c4f(0x272)](':');
143
+ if (_0x4a7e53['length'] < 0x1 || _0x4a7e53[_0x5c6c4f(_0x27fdc4._0x309451)] > 0x2)
144
+ throw new Error(UNSUPPORTED_TARGET_MESSAGE);
145
+ return {
146
+ 'channelName': ensureSegment(_0x4a7e53[0x0] ?? ''),
147
+ 'threadShortId': _0x4a7e53[0x1] ? ensureSegment(_0x4a7e53[0x1]) : null
148
+ };
149
+ }
150
+ function parseTarget(_0x3596a8) {
151
+ const _0x35d5d6 = {
152
+ _0x4e9865: 0x1c8,
153
+ _0x5c9309: 0x2ab,
154
+ _0x518b82: 0x2d4,
155
+ _0x26b7b7: 0x2d4,
156
+ _0x4bf43e: 0x2d4,
157
+ _0x43be09: 0x212,
158
+ _0x7b55bf: 0x2b2,
159
+ _0x317886: 0x1e4
160
+ }, _0xd6a3f2 = _0x5e54a5, _0x37b44d = _0x3596a8[_0xd6a3f2(_0x35d5d6._0x4e9865)]();
161
+ if (!_0x37b44d)
162
+ throw new Error(UNSUPPORTED_TARGET_MESSAGE);
163
+ if (_0x37b44d['startsWith']('#')) {
164
+ const _0x137f1b = parseThreadParts(_0x37b44d[_0xd6a3f2(_0x35d5d6._0x5c9309)](0x1)), _0x54e7c6 = '#' + _0x137f1b[_0xd6a3f2(0x2b2)];
165
+ if (!_0x137f1b[_0xd6a3f2(_0x35d5d6._0x518b82)])
166
+ return {
167
+ 'channelName': _0x137f1b[_0xd6a3f2(0x2b2)],
168
+ 'channelTarget': _0x54e7c6,
169
+ 'kind': _0xd6a3f2(0x298),
170
+ 'target': _0x54e7c6
171
+ };
172
+ return {
173
+ 'channelName': _0x137f1b['channelName'],
174
+ 'channelTarget': _0x54e7c6,
175
+ 'kind': _0xd6a3f2(0x1e4),
176
+ 'target': _0x54e7c6 + ':' + _0x137f1b[_0xd6a3f2(_0x35d5d6._0x26b7b7)],
177
+ 'threadShortId': _0x137f1b[_0xd6a3f2(_0x35d5d6._0x4bf43e)]
178
+ };
179
+ }
180
+ if (_0x37b44d[_0xd6a3f2(0x285)](_0xd6a3f2(0x1ff))) {
181
+ const _0x2e7a7b = parseThreadParts(_0x37b44d[_0xd6a3f2(0x2ab)](0x3));
182
+ if (!_0x2e7a7b[_0xd6a3f2(0x2b2)][_0xd6a3f2(0x285)](_0xd6a3f2(_0x35d5d6._0x43be09)))
183
+ throw new Error(UNSUPPORTED_TARGET_MESSAGE);
184
+ const _0x224f38 = _0xd6a3f2(0x1ff) + _0x2e7a7b['channelName'];
185
+ if (!_0x2e7a7b[_0xd6a3f2(0x2d4)])
186
+ return {
187
+ 'channelName': _0x2e7a7b['channelName'],
188
+ 'channelTarget': _0x224f38,
189
+ 'kind': 'channel',
190
+ 'target': _0x224f38
191
+ };
192
+ return {
193
+ 'channelName': _0x2e7a7b[_0xd6a3f2(_0x35d5d6._0x7b55bf)],
194
+ 'channelTarget': _0x224f38,
195
+ 'kind': _0xd6a3f2(_0x35d5d6._0x317886),
196
+ 'target': _0x224f38 + ':' + _0x2e7a7b[_0xd6a3f2(0x2d4)],
197
+ 'threadShortId': _0x2e7a7b[_0xd6a3f2(0x2d4)]
198
+ };
199
+ }
200
+ throw new Error(UNSUPPORTED_TARGET_MESSAGE);
201
+ }
202
+ function asErrorMessage(_0x3afe59, _0x10e115) {
203
+ const _0x38498d = _0x5e54a5;
204
+ if (typeof _0x3afe59 === _0x38498d(0x216) && _0x3afe59['trim']())
205
+ return _0x3afe59;
206
+ return _0x10e115;
207
+ }
208
+ function asRecord(_0x5079b2) {
209
+ const _0x3aba7c = { _0x317fb4: 0x2cc }, _0x5075c7 = _0x5e54a5;
210
+ return typeof _0x5079b2 === _0x5075c7(_0x3aba7c._0x317fb4) && _0x5079b2 !== null ? _0x5079b2 : {};
211
+ }
212
+ function stableStringify(_0x36df3c) {
213
+ const _0x2b703e = {
214
+ _0x3ed606: 0x1a9,
215
+ _0x1fee8d: 0x1f7
216
+ }, _0x1f0cc4 = _0x5e54a5;
217
+ if (_0x36df3c === null || typeof _0x36df3c !== _0x1f0cc4(0x2cc))
218
+ return JSON[_0x1f0cc4(_0x2b703e._0x3ed606)](_0x36df3c);
219
+ if (Array['isArray'](_0x36df3c))
220
+ return '[' + _0x36df3c[_0x1f0cc4(0x209)](_0x54d1cb => stableStringify(_0x54d1cb))[_0x1f0cc4(0x27f)](',') + ']';
221
+ const _0x5d7a58 = Object[_0x1f0cc4(0x28d)](_0x36df3c)[_0x1f0cc4(0x2de)](([, _0xe6a5fc]) => _0xe6a5fc !== void 0x0)[_0x1f0cc4(_0x2b703e._0x1fee8d)](([_0xe4183b], [_0x5e06f7]) => _0xe4183b[_0x1f0cc4(0x16a)](_0x5e06f7))['map'](([_0x126757, _0xad1ac5]) => JSON[_0x1f0cc4(0x1a9)](_0x126757) + ':' + stableStringify(_0xad1ac5));
222
+ return '{' + _0x5d7a58['join'](',') + '}';
223
+ }
224
+ function createHeaders(_0x266950) {
225
+ const _0x35f395 = _0x5e54a5;
226
+ return {
227
+ 'Content-Type': _0x35f395(0x213),
228
+ 'x-daemon-api-key': _0x266950
229
+ };
230
+ }
231
+ function toHttpBaseUrl(_0xca182c) {
232
+ const _0x22749a = {
233
+ _0x2137d3: 0x2b4,
234
+ _0x29448a: 0x1b7,
235
+ _0x254f6a: 0x1c6,
236
+ _0x325d59: 0x1bc,
237
+ _0x34babd: 0x2b1
238
+ }, _0x1adea7 = _0x5e54a5, _0x5eef70 = new URL(_0xca182c);
239
+ if (_0x5eef70[_0x1adea7(0x1e3)] === _0x1adea7(_0x22749a._0x2137d3))
240
+ _0x5eef70[_0x1adea7(0x1e3)] = _0x1adea7(_0x22749a._0x29448a);
241
+ else
242
+ _0x5eef70[_0x1adea7(0x1e3)] === _0x1adea7(_0x22749a._0x254f6a) && (_0x5eef70['protocol'] = _0x1adea7(_0x22749a._0x325d59));
243
+ return _0x5eef70[_0x1adea7(_0x22749a._0x34babd)]()[_0x1adea7(0x217)](/\/$/, '');
244
+ }
245
+ function isMentionBoundary(_0x2ebd2a) {
246
+ return !_0x2ebd2a || /\s|[([{'",。!?、:;]/['test'](_0x2ebd2a);
247
+ }
248
+ function isMentionTerminal(_0x45052c) {
249
+ const _0x59192d = { _0x1b5628: 0x228 }, _0x4be07a = _0x5e54a5;
250
+ return !_0x45052c || /\s|[)\]}'",。!?、:;,.!?]/[_0x4be07a(_0x59192d._0x1b5628)](_0x45052c);
251
+ }
252
+ function buildMatchableEntries(_0x4fa2b7) {
253
+ const _0x2d3f80 = {
254
+ _0x3b282e: 0x24d,
255
+ _0x56013d: 0x1a4,
256
+ _0x9e6b4c: 0x1c9
257
+ }, _0x3b21b8 = _0x5e54a5, _0x5cf4c1 = [];
258
+ for (const _0x1ad302 of [
259
+ ..._0x4fa2b7[_0x3b21b8(_0x2d3f80._0x3b282e)],
260
+ ..._0x4fa2b7[_0x3b21b8(0x183)]
261
+ ]) {
262
+ _0x5cf4c1['push']({
263
+ 'matchName': _0x1ad302[_0x3b21b8(_0x2d3f80._0x56013d)],
264
+ 'matchNameLower': _0x1ad302['name'][_0x3b21b8(0x1c9)](),
265
+ 'participantId': _0x1ad302['id']
266
+ }), _0x1ad302['id'] !== _0x1ad302[_0x3b21b8(_0x2d3f80._0x56013d)] && _0x5cf4c1['push']({
267
+ 'matchName': _0x1ad302['id'],
268
+ 'matchNameLower': _0x1ad302['id'][_0x3b21b8(_0x2d3f80._0x9e6b4c)](),
269
+ 'participantId': _0x1ad302['id']
270
+ });
271
+ }
272
+ return _0x5cf4c1;
273
+ }
274
+ function extractMentionedParticipantIds(_0x3babfb, _0x399ba5) {
275
+ const _0x56cb6c = {
276
+ _0x2ee22a: 0x282,
277
+ _0x56b286: 0x17e,
278
+ _0x5da3c0: 0x26d,
279
+ _0x116aa0: 0x214,
280
+ _0xa9f41c: 0x1a1
281
+ }, _0x49318f = { _0x534c30: 0x1a1 }, _0x159585 = _0x5e54a5, _0x520c30 = buildMatchableEntries(_0x399ba5)['sort']((_0x48170e, _0x3861e6) => _0x3861e6[_0x159585(0x214)][_0x159585(0x1a1)] - _0x48170e[_0x159585(0x214)][_0x159585(0x1a1)]), _0x56c083 = [], _0x53e7e9 = new Set();
282
+ for (let _0xe8eeb8 = 0x0; _0xe8eeb8 < _0x3babfb[_0x159585(0x1a1)]; _0xe8eeb8 += 0x1) {
283
+ if (_0x3babfb[_0xe8eeb8] !== '@' || !isMentionBoundary(_0x3babfb[_0xe8eeb8 - 0x1]))
284
+ continue;
285
+ const _0x200005 = _0x3babfb[_0x159585(0x2ab)](_0xe8eeb8 + 0x1), _0x9366b = _0x200005['toLocaleLowerCase'](), _0x1fefa4 = _0x520c30[_0x159585(_0x56cb6c._0x2ee22a)](_0x548098 => {
286
+ const _0x18a788 = _0x159585;
287
+ if (!_0x9366b[_0x18a788(0x285)](_0x548098[_0x18a788(0x1d4)]))
288
+ return ![];
289
+ return isMentionTerminal(_0x200005[_0x548098[_0x18a788(0x214)][_0x18a788(_0x49318f._0x534c30)]]);
290
+ });
291
+ if (!_0x1fefa4 || _0x53e7e9[_0x159585(0x2d8)](_0x1fefa4[_0x159585(0x2ed)]))
292
+ continue;
293
+ _0x53e7e9[_0x159585(_0x56cb6c._0x56b286)](_0x1fefa4[_0x159585(0x2ed)]), _0x56c083[_0x159585(_0x56cb6c._0x5da3c0)](_0x1fefa4[_0x159585(0x2ed)]), _0xe8eeb8 += _0x1fefa4[_0x159585(_0x56cb6c._0x116aa0)][_0x159585(_0x56cb6c._0xa9f41c)];
294
+ }
295
+ return _0x56c083;
296
+ }
297
+ var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
298
+ function anySignal(..._0x4b395b) {
299
+ const _0x55e0ac = { _0x2777f5: 0x21c }, _0x44e130 = _0x5e54a5, _0x3445e9 = new AbortController();
300
+ for (const _0x195a48 of _0x4b395b) {
301
+ if (_0x195a48['aborted'])
302
+ return _0x3445e9[_0x44e130(0x2dd)](_0x195a48[_0x44e130(0x195)]), _0x3445e9[_0x44e130(0x2d9)];
303
+ _0x195a48[_0x44e130(_0x55e0ac._0x2777f5)](_0x44e130(0x2dd), () => _0x3445e9['abort'](_0x195a48[_0x44e130(0x195)]), {
304
+ 'once': !![],
305
+ 'signal': _0x3445e9[_0x44e130(0x2d9)]
306
+ });
307
+ }
308
+ return _0x3445e9['signal'];
309
+ }
310
+ function createInternalAgentClient(_0x1786d1) {
311
+ const _0x326003 = {
312
+ _0x471757: 0x23c,
313
+ _0x4aa39d: 0x22b,
314
+ _0x528d4f: 0x1c8,
315
+ _0x284793: 0x274,
316
+ _0x38c636: 0x1c5,
317
+ _0xf6477b: 0x1df
318
+ }, _0x3e0a30 = {
319
+ _0x23d205: 0x2b1,
320
+ _0x405146: 0x22a,
321
+ _0x53154e: 0x232,
322
+ _0x35beb4: 0x1a1,
323
+ _0x1b11bf: 0x1f5,
324
+ _0x1e0b64: 0x209,
325
+ _0x1eff78: 0x17f,
326
+ _0x4b3c74: 0x26e,
327
+ _0x612eff: 0x216,
328
+ _0x38c49a: 0x2c6,
329
+ _0x40112: 0x1a2,
330
+ _0x5185b0: 0x216,
331
+ _0x3ed71e: 0x279,
332
+ _0x6773cf: 0x283,
333
+ _0x12187d: 0x283,
334
+ _0x275c16: 0x283,
335
+ _0x1f585b: 0x2a3,
336
+ _0x3e9002: 0x25f,
337
+ _0x34b488: 0x1b5,
338
+ _0x3abe99: 0x1d2,
339
+ _0x13cd17: 0x1d2,
340
+ _0x704b31: 0x2ea,
341
+ _0x582e72: 0x273,
342
+ _0x218e37: 0x26d,
343
+ _0x5b16d7: 0x22f,
344
+ _0x5b4cd7: 0x29f,
345
+ _0x360947: 0x189,
346
+ _0x2ddf5c: 0x210,
347
+ _0x4c2649: 0x25a,
348
+ _0x527ceb: 0x1ce,
349
+ _0x218d0b: 0x1fe
350
+ }, _0x2e1f14 = {
351
+ _0xb4d320: 0x298,
352
+ _0x361e85: 0x242,
353
+ _0x5abfea: 0x1a2
354
+ }, _0x327281 = {
355
+ _0x50ddd4: 0x2a3,
356
+ _0x1eb4d0: 0x242,
357
+ _0x33822e: 0x176,
358
+ _0x1c5266: 0x1b6,
359
+ _0x16005b: 0x259
360
+ }, _0x2b6bec = {
361
+ _0xa73d2e: 0x1de,
362
+ _0x3e2ca6: 0x22a,
363
+ _0x728828: 0x22a,
364
+ _0x3d935d: 0x2d9,
365
+ _0x34355c: 0x185,
366
+ _0x57e4f: 0x1f3,
367
+ _0x3e48f1: 0x192,
368
+ _0x4206b8: 0x1d2,
369
+ _0x149724: 0x1e9
370
+ }, _0x131671 = {
371
+ _0x228673: 0x1a2,
372
+ _0x40e847: 0x1b6,
373
+ _0x3ee8c3: 0x289,
374
+ _0x56898a: 0x175,
375
+ _0x3a3519: 0x232,
376
+ _0x106cb0: 0x170,
377
+ _0x4a9350: 0x1b0
378
+ }, _0x50b0e3 = {
379
+ _0x1f838b: 0x176,
380
+ _0x3ba3ef: 0x1b6,
381
+ _0x5f2652: 0x2ae,
382
+ _0x592ead: 0x1a9,
383
+ _0x27692c: 0x175
384
+ }, _0x8be683 = {
385
+ _0x3cffde: 0x1b6,
386
+ _0x1a2b74: 0x16d
387
+ }, _0x585cc0 = {
388
+ _0x59bdd1: 0x2ce,
389
+ _0x23ccbb: 0x1a9,
390
+ _0xffa4c9: 0x1eb
391
+ }, _0x25c44c = { _0x53ddc7: 0x1b6 }, _0x37de94 = {
392
+ _0x5dbb67: 0x1f3,
393
+ _0x13d0e5: 0x22a
394
+ }, _0x100727 = {
395
+ _0x161ef7: 0x257,
396
+ _0x359404: 0x1f3,
397
+ _0x43e21e: 0x2e7
398
+ }, _0x3f6cc9 = {
399
+ _0x1a3bc2: 0x2e7,
400
+ _0x6c47dd: 0x175
401
+ }, _0x2f0eb3 = {
402
+ _0x3a8403: 0x229,
403
+ _0x33e572: 0x175,
404
+ _0x8a6cfd: 0x232
405
+ }, _0x1f72eb = { _0x17137c: 0x22a }, _0x2cf042 = {
406
+ _0x4dc270: 0x291,
407
+ _0x1d6fc4: 0x292,
408
+ _0x11a857: 0x1a2,
409
+ _0x26fbc9: 0x175
410
+ }, _0x1c0222 = {
411
+ _0x418d53: 0x1a2,
412
+ _0x23f67d: 0x2a3,
413
+ _0x3aedbd: 0x2c6,
414
+ _0x1a832e: 0x2c6,
415
+ _0x4a1452: 0x2c6,
416
+ _0x5ac7e8: 0x2a3,
417
+ _0x462d4b: 0x255,
418
+ _0x281719: 0x2b5,
419
+ _0x539f9e: 0x176,
420
+ _0x45297c: 0x232,
421
+ _0x5ae46c: 0x20d,
422
+ _0x559af0: 0x193
423
+ }, _0x282a23 = { _0x1949b8: 0x25d }, _0xee3b1d = {
424
+ _0x1295e9: 0x283,
425
+ _0x1ab68f: 0x279,
426
+ _0x3de64a: 0x283,
427
+ _0x3a6ea1: 0x19c,
428
+ _0x3b701a: 0x2d4,
429
+ _0x2c7281: 0x216
430
+ }, _0x4a54ed = {
431
+ _0x1c06bc: 0x28e,
432
+ _0x2d823d: 0x19c,
433
+ _0x510100: 0x2d4,
434
+ _0x586305: 0x1a2,
435
+ _0x829bfd: 0x285
436
+ }, _0x17417e = {
437
+ _0x57eddd: 0x283,
438
+ _0x50aa3d: 0x28e,
439
+ _0x20b501: 0x19c,
440
+ _0x284740: 0x1a2
441
+ }, _0x5bf8b2 = {
442
+ _0x5ef0e9: 0x24d,
443
+ _0x32b83e: 0x282
444
+ }, _0x46362f = { _0x3fbf4f: 0x17f }, _0x5b83d6 = {
445
+ _0x3b4726: 0x1d9,
446
+ _0x49aa34: 0x241
447
+ }, _0x3207f9 = {
448
+ _0x5a3db2: 0x1b6,
449
+ _0x2e3b7d: 0x2c9,
450
+ _0x201763: 0x232,
451
+ _0xfb3619: 0x1cf,
452
+ _0x47cbd1: 0x2de,
453
+ _0x3f2d7d: 0x209,
454
+ _0x2bacfd: 0x2de,
455
+ _0xf238f7: 0x232,
456
+ _0x550df1: 0x205
457
+ }, _0x33a2f0 = {
458
+ _0x21414d: 0x176,
459
+ _0x4d8598: 0x291,
460
+ _0x3101f0: 0x175,
461
+ _0x347683: 0x232,
462
+ _0x5142ef: 0x2c6,
463
+ _0x208d9f: 0x232
464
+ }, _0x387f27 = {
465
+ _0x141764: 0x239,
466
+ _0x488057: 0x213,
467
+ _0x1855ab: 0x1f3
468
+ }, _0x457472 = { _0x18e114: 0x2a6 }, _0x2e7ed8 = { _0x4920e5: 0x1c0 }, _0x3b4e03 = { _0x591745: 0x2d9 }, _0x2789b0 = {
469
+ _0x44db2b: 0x15f,
470
+ _0x26c239: 0x1c8,
471
+ _0x4f00fb: 0x169
472
+ }, _0x4ce3c0 = {
473
+ _0x5dcae5: 0x1e9,
474
+ _0x59ce1e: 0x200
475
+ }, _0x5d250f = {
476
+ _0x44e2d4: 0x2c7,
477
+ _0x4876b4: 0x1d2,
478
+ _0x1aa41d: 0x217,
479
+ _0x7278d9: 0x2ab,
480
+ _0x6a88d5: 0x19d,
481
+ _0x221113: 0x178,
482
+ _0x1c2560: 0x171
483
+ }, _0x2bf35a = _0x5e54a5, _0x51c4fc = _0x1786d1['fetchImpl'] ?? fetch, _0x1e54d7 = _0x1786d1['fetchTimeoutMs'] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x3956f6 = typeof _0x1786d1[_0x2bf35a(0x2a8)] === _0x2bf35a(_0x326003._0x471757) && _0x1786d1['initialLastSeenSeq'] > 0x0 ? _0x1786d1['initialLastSeenSeq'] : 0x0, _0x2895f3 = _0x1786d1[_0x2bf35a(_0x326003._0x4aa39d)]?.['trim']() || void 0x0, _0x5df0ea = _0x1786d1['sessionId']?.[_0x2bf35a(_0x326003._0x528d4f)]() || void 0x0, _0x1e6d67 = _0x1786d1['workerModeEnabled'] === !![], _0x28a5fe = _0x1786d1[_0x2bf35a(_0x326003._0x284793)]?.[_0x2bf35a(_0x326003._0x528d4f)]() || void 0x0, _0x1d06a1 = _0x1786d1[_0x2bf35a(_0x326003._0x38c636)]?.[_0x2bf35a(0x1c8)]() || void 0x0, _0xd8cb6f = createHeaders(_0x1786d1[_0x2bf35a(_0x326003._0xf6477b)]), _0x4e14a2 = toHttpBaseUrl(_0x1786d1['serverUrl']);
484
+ let _0x5ed55f = null;
485
+ const _0x52699e = new Map();
486
+ let _0x24a660 = _0x3956f6, _0x5b4179 = _0x3956f6;
487
+ function _0x20a533(_0x472de7) {
488
+ const _0xe9a112 = _0x2bf35a, _0x20739d = _0x472de7[_0xe9a112(_0x5d250f._0x44e2d4)]['headers'][_0xe9a112(_0x5d250f._0x4876b4)](_0xe9a112(0x17d)) ?? _0xe9a112(0x1c4), _0x462a89 = _0x472de7['bodyText'][_0xe9a112(0x1c8)]()[_0xe9a112(_0x5d250f._0x1aa41d)](/\s+/g, '\x20')[_0xe9a112(_0x5d250f._0x7278d9)](0x0, 0x78) || _0xe9a112(0x1aa);
489
+ return '请求\x20' + _0x472de7[_0xe9a112(_0x5d250f._0x6a88d5)] + _0xe9a112(0x287) + _0x472de7[_0xe9a112(0x2c7)][_0xe9a112(0x1f3)] + _0xe9a112(_0x5d250f._0x221113) + _0x20739d + _0xe9a112(0x1b4) + _0x462a89 + _0xe9a112(_0x5d250f._0x1c2560);
490
+ }
491
+ async function _0x4467bb(_0x4a89b5, _0x20b470) {
492
+ const _0x4a6165 = _0x2bf35a, _0x401740 = Buffer['from'](await _0x20b470[_0x4a6165(_0x4ce3c0._0x5dcae5)]())[_0x4a6165(0x2b1)]('utf8');
493
+ if (!_0x401740['trim']())
494
+ return {};
495
+ try {
496
+ return JSON[_0x4a6165(_0x4ce3c0._0x59ce1e)](_0x401740);
497
+ } catch {
498
+ throw new Error(_0x20a533({
499
+ 'bodyText': _0x401740,
500
+ 'requestUrl': _0x4a89b5,
501
+ 'response': _0x20b470
502
+ }));
503
+ }
504
+ }
505
+ function _0x59b96e(_0x237151, _0x5bd421) {
506
+ const _0x378078 = _0x2bf35a, _0x173991 = typeof _0x5bd421['idempotency_key'] === _0x378078(0x216) ? _0x5bd421[_0x378078(_0x2789b0._0x44db2b)][_0x378078(_0x2789b0._0x26c239)]() : '';
507
+ if (_0x173991)
508
+ return _0x173991;
509
+ const _0x20b6cc = Date[_0x378078(0x226)]();
510
+ for (const [_0x369e0c, _0x59d1f4] of _0x52699e) {
511
+ _0x59d1f4['expiresAt'] <= _0x20b6cc && _0x52699e['delete'](_0x369e0c);
512
+ }
513
+ const _0x128f53 = {
514
+ ..._0x5bd421,
515
+ 'idempotency_key': void 0x0
516
+ }, _0x4df93f = createHash(_0x378078(0x296))['update'](_0x237151 + ':' + stableStringify(_0x128f53))[_0x378078(0x23a)](_0x378078(_0x2789b0._0x4f00fb)), _0x47a772 = _0x237151 + ':' + _0x4df93f, _0x971fd2 = _0x52699e[_0x378078(0x1d2)](_0x47a772);
517
+ if (_0x971fd2)
518
+ return _0x971fd2[_0x378078(0x1d5)];
519
+ const _0x74e671 = _0x378078(0x208) + _0x237151 + ':' + randomUUID();
520
+ return _0x52699e['set'](_0x47a772, {
521
+ 'expiresAt': _0x20b6cc + 0x5 * 0x3c * 0x3e8,
522
+ 'value': _0x74e671
523
+ }), _0x74e671;
524
+ }
525
+ async function _0x1fa09a(_0x230c77, _0x5386b1) {
526
+ const _0x5899c2 = _0x2bf35a, _0x4e4be0 = new AbortController(), _0x57ad29 = setTimeout(() => _0x4e4be0[_0x5899c2(0x2dd)](), _0x1e54d7), _0x10ae85 = _0x5386b1?.[_0x5899c2(0x2d9)] ? anySignal(_0x5386b1[_0x5899c2(_0x3b4e03._0x591745)], _0x4e4be0[_0x5899c2(0x2d9)]) : _0x4e4be0[_0x5899c2(_0x3b4e03._0x591745)], _0x1bf59e = '' + _0x4e14a2 + _0x230c77;
527
+ try {
528
+ const _0x1f2887 = await _0x51c4fc(_0x1bf59e, {
529
+ ..._0x5386b1,
530
+ 'signal': _0x10ae85
531
+ }), _0x4c4dc0 = await _0x4467bb(_0x1bf59e, _0x1f2887);
532
+ if (!_0x1f2887['ok'] || _0x4c4dc0[_0x5899c2(0x1bb)] === ![])
533
+ throw new Error(asErrorMessage(_0x4c4dc0[_0x5899c2(0x1c0)], _0x5899c2(0x185) + _0x1f2887['status']));
534
+ return _0x4c4dc0;
535
+ } finally {
536
+ clearTimeout(_0x57ad29);
537
+ }
538
+ }
539
+ async function _0x4d7c33(_0x190509, _0x5cee2f) {
540
+ const _0x5eb603 = _0x2bf35a, _0x345adf = new AbortController(), _0x5bfe32 = setTimeout(() => _0x345adf[_0x5eb603(0x2dd)](), _0x1e54d7), _0xcf3cb6 = _0x5cee2f?.[_0x5eb603(0x2d9)] ? anySignal(_0x5cee2f['signal'], _0x345adf['signal']) : _0x345adf[_0x5eb603(0x2d9)], _0x4f4938 = '' + _0x4e14a2 + _0x190509;
541
+ try {
542
+ const _0x56c701 = await _0x51c4fc(_0x4f4938, {
543
+ ..._0x5cee2f,
544
+ 'signal': _0xcf3cb6
545
+ }), _0x5e3648 = await _0x4467bb(_0x4f4938, _0x56c701);
546
+ if (!_0x56c701['ok'])
547
+ throw new Error(asErrorMessage(_0x5e3648[_0x5eb603(_0x2e7ed8._0x4920e5)], _0x5eb603(0x185) + _0x56c701[_0x5eb603(0x1f3)]));
548
+ return _0x5e3648;
549
+ } finally {
550
+ clearTimeout(_0x5bfe32);
551
+ }
552
+ }
553
+ async function _0x280996(_0x1bb6f8) {
554
+ const _0x53fa75 = _0x2bf35a;
555
+ if (!_0x5df0ea || _0x1bb6f8 <= _0x5b4179)
556
+ return;
557
+ await _0x1fa09a(_0x53fa75(0x246) + encodeURIComponent(_0x5df0ea) + _0x53fa75(0x2e1), {
558
+ 'body': JSON['stringify']({ 'lastSeenSeq': _0x1bb6f8 }),
559
+ 'headers': _0xd8cb6f,
560
+ 'method': _0x53fa75(_0x457472._0x18e114)
561
+ }), _0x5b4179 = _0x1bb6f8;
562
+ }
563
+ async function _0x3de8b2(_0x2ccbef) {
564
+ const _0x5699bd = _0x2bf35a;
565
+ if (!_0x2895f3 || !_0x28a5fe || _0x2ccbef <= _0x5b4179)
566
+ return;
567
+ const _0x3a1ef6 = await _0x51c4fc(_0x2895f3 + _0x5699bd(_0x387f27._0x141764), {
568
+ 'body': JSON[_0x5699bd(0x1a9)]({
569
+ 'last_seen_seq': _0x2ccbef,
570
+ 'worker_session_id': _0x28a5fe
571
+ }),
572
+ 'headers': { 'Content-Type': _0x5699bd(_0x387f27._0x488057) },
573
+ 'method': _0x5699bd(0x175)
574
+ });
575
+ if (!_0x3a1ef6['ok'])
576
+ throw new Error(_0x5699bd(0x185) + _0x3a1ef6[_0x5699bd(_0x387f27._0x1855ab)]);
577
+ _0x5b4179 = _0x2ccbef;
578
+ }
579
+ async function _0x7faf44(_0x2d5dac) {
580
+ const _0x416a39 = _0x2bf35a, _0x5376a9 = parseTarget(_0x2d5dac), _0x4f5f44 = await _0x1fa09a(_0x416a39(_0x33a2f0._0x21414d) + _0x1786d1['agentId'] + _0x416a39(0x17c), {
581
+ 'body': JSON[_0x416a39(0x1a9)]({ 'target': _0x5376a9[_0x416a39(_0x33a2f0._0x4d8598)] }),
582
+ 'headers': _0xd8cb6f,
583
+ 'method': _0x416a39(_0x33a2f0._0x3101f0)
584
+ });
585
+ return {
586
+ 'channelId': _0x4f5f44[_0x416a39(_0x33a2f0._0x347683)]?.[_0x416a39(_0x33a2f0._0x5142ef)] ?? '',
587
+ 'target': _0x5376a9[_0x416a39(0x28e)],
588
+ 'task': _0x4f5f44[_0x416a39(0x232)]?.[_0x416a39(0x286)],
589
+ 'threadId': _0x4f5f44[_0x416a39(0x232)]?.['threadId'],
590
+ 'threadNumber': _0x4f5f44[_0x416a39(_0x33a2f0._0x208d9f)]?.['threadNumber']
591
+ };
592
+ }
593
+ async function _0x10dedb(_0x3c7326 = {}) {
594
+ const _0x29f524 = _0x2bf35a;
595
+ if (!_0x3c7326[_0x29f524(_0x5b83d6._0x3b4726)] && _0x5ed55f)
596
+ return _0x5ed55f;
597
+ return _0x5ed55f = (async () => {
598
+ const _0x566a9d = _0x29f524, _0x76684d = await _0x1fa09a(_0x566a9d(0x176) + _0x1786d1[_0x566a9d(_0x3207f9._0x5a3db2)] + _0x566a9d(_0x3207f9._0x2e3b7d), {
599
+ 'headers': _0xd8cb6f,
600
+ 'method': _0x566a9d(0x22a)
601
+ }), _0x145924 = _0x76684d[_0x566a9d(_0x3207f9._0x201763)]?.[_0x566a9d(_0x3207f9._0xfb3619)] ?? [], _0x25d16f = _0x145924[_0x566a9d(_0x3207f9._0x47cbd1)](_0x4f1ad8 => _0x4f1ad8[_0x566a9d(0x25d)]?.[_0x566a9d(0x1ef)] === _0x566a9d(0x2d1))[_0x566a9d(_0x3207f9._0x3f2d7d)](_0x2f33ee => ({
602
+ 'id': _0x387e51(_0x2f33ee),
603
+ 'name': _0x287fe8(_0x2f33ee)
604
+ }))[_0x566a9d(_0x3207f9._0x2bacfd)](_0x3aaf3f => _0x3aaf3f['id']), _0x436d2f = _0x145924['filter'](_0x9bdd59 => _0x9bdd59[_0x566a9d(0x25d)]?.[_0x566a9d(0x1ef)] !== _0x566a9d(0x2d1))[_0x566a9d(_0x3207f9._0x3f2d7d)](_0x521d4a => ({
605
+ 'id': _0x387e51(_0x521d4a),
606
+ 'name': _0x287fe8(_0x521d4a)
607
+ }))[_0x566a9d(_0x3207f9._0x47cbd1)](_0x5303db => _0x5303db['id']), _0x3b0460 = _0x76684d[_0x566a9d(_0x3207f9._0xf238f7)]?.[_0x566a9d(_0x3207f9._0x550df1)]['id'] ?? '';
608
+ return {
609
+ 'agents': _0x25d16f,
610
+ 'channels': _0x76684d[_0x566a9d(0x232)]?.[_0x566a9d(0x262)] ?? [],
611
+ 'humans': _0x436d2f,
612
+ 'serverId': _0x3b0460,
613
+ 'serverName': _0x76684d['data']?.[_0x566a9d(0x205)]['name'] ?? _0x3b0460
614
+ };
615
+ })()[_0x29f524(_0x5b83d6._0x49aa34)](_0x4ad413 => {
616
+ _0x5ed55f = null;
617
+ throw _0x4ad413;
618
+ }), _0x5ed55f;
619
+ }
620
+ function _0x4cf133(_0x21ae24, _0x38b5fd) {
621
+ const _0x1e2f81 = _0x2bf35a;
622
+ return _0x38b5fd['agents'][_0x1e2f81(_0x46362f._0x3fbf4f)](_0x366b78 => _0x366b78['id'] === _0x21ae24 || _0x366b78['name'] === _0x21ae24) ? 'agent' : 'human';
623
+ }
624
+ function _0x5e12dc(_0x3f5976, _0x180552) {
625
+ const _0x137be8 = _0x2bf35a, _0x5e6725 = [
626
+ ..._0x180552[_0x137be8(_0x5bf8b2._0x5ef0e9)],
627
+ ..._0x180552[_0x137be8(0x183)]
628
+ ][_0x137be8(_0x5bf8b2._0x32b83e)](_0x2038ca => _0x2038ca['id'] === _0x3f5976);
629
+ return _0x5e6725?.[_0x137be8(0x1a4)] ?? _0x3f5976;
630
+ }
631
+ function _0x1dcadb(_0x564a2a) {
632
+ const _0x49ca1f = _0x2bf35a;
633
+ if (_0x564a2a[_0x49ca1f(_0x17417e._0x57eddd)] != null)
634
+ return _0x564a2a[_0x49ca1f(_0x17417e._0x50aa3d)] + ':t' + _0x564a2a['threadNumber'];
635
+ if (_0x564a2a[_0x49ca1f(0x19c)])
636
+ return _0x564a2a['channelTarget'] + ':' + _0x564a2a[_0x49ca1f(_0x17417e._0x20b501)];
637
+ if (_0x564a2a[_0x49ca1f(_0x17417e._0x284740)])
638
+ return _0x564a2a[_0x49ca1f(0x28e)] + ':' + _0x564a2a['threadId'][_0x49ca1f(0x2ab)](0x0, 0x8);
639
+ return _0x564a2a[_0x49ca1f(0x28e)];
640
+ }
641
+ function _0x16fb41(_0x35826d, _0x4a881b) {
642
+ const _0x155cce = _0x2bf35a;
643
+ try {
644
+ const _0x1f7783 = parseTarget(_0x35826d);
645
+ if (_0x1f7783['kind'] !== _0x155cce(0x1e4) || _0x1f7783[_0x155cce(_0x4a54ed._0x1c06bc)] !== _0x4a881b[_0x155cce(0x28e)])
646
+ return ![];
647
+ if (_0x4a881b['threadNumber'] != null && _0x1f7783['threadShortId'] === 't' + _0x4a881b['threadNumber'])
648
+ return !![];
649
+ if (_0x4a881b['rootMessageId'])
650
+ return _0x1f7783[_0x155cce(0x2d4)] === _0x4a881b[_0x155cce(_0x4a54ed._0x2d823d)] || _0x4a881b[_0x155cce(0x19c)][_0x155cce(0x285)](_0x1f7783[_0x155cce(_0x4a54ed._0x510100)]);
651
+ if (_0x4a881b[_0x155cce(_0x4a54ed._0x586305)])
652
+ return _0x1f7783[_0x155cce(_0x4a54ed._0x510100)] === _0x4a881b[_0x155cce(0x1a2)] || _0x4a881b[_0x155cce(0x1a2)][_0x155cce(_0x4a54ed._0x829bfd)](_0x1f7783[_0x155cce(0x2d4)]);
653
+ return ![];
654
+ } catch {
655
+ return ![];
656
+ }
657
+ }
658
+ function _0x5d3d0c(_0x3e78a7, _0x310bc7) {
659
+ const _0x3e3a13 = _0x2bf35a;
660
+ try {
661
+ const _0x2d4242 = parseTarget(_0x3e78a7);
662
+ if (_0x2d4242['kind'] !== 'thread')
663
+ return ![];
664
+ const _0x49bd9a = typeof _0x310bc7[_0x3e3a13(_0xee3b1d._0x1295e9)] === _0x3e3a13(0x23c) && Number[_0x3e3a13(_0xee3b1d._0x1ab68f)](_0x310bc7[_0x3e3a13(_0xee3b1d._0x3de64a)]) ? _0x310bc7[_0x3e3a13(0x283)] : void 0x0;
665
+ if (_0x49bd9a != null && _0x2d4242['threadShortId'] === 't' + _0x49bd9a)
666
+ return !![];
667
+ const _0x57c962 = typeof _0x310bc7[_0x3e3a13(_0xee3b1d._0x3a6ea1)] === 'string' ? _0x310bc7[_0x3e3a13(0x19c)] : void 0x0;
668
+ if (_0x57c962)
669
+ return _0x2d4242[_0x3e3a13(_0xee3b1d._0x3b701a)] === _0x57c962 || _0x57c962[_0x3e3a13(0x285)](_0x2d4242[_0x3e3a13(0x2d4)]);
670
+ const _0x6ecf37 = typeof _0x310bc7[_0x3e3a13(0x1a2)] === _0x3e3a13(_0xee3b1d._0x2c7281) ? _0x310bc7[_0x3e3a13(0x1a2)] : void 0x0;
671
+ return Boolean(_0x6ecf37) && (_0x2d4242[_0x3e3a13(0x2d4)] === _0x6ecf37 || _0x6ecf37['startsWith'](_0x2d4242[_0x3e3a13(0x2d4)]));
672
+ } catch {
673
+ return ![];
674
+ }
675
+ }
676
+ function _0x387e51(_0x513b23) {
677
+ const _0x3c528a = _0x2bf35a;
678
+ return _0x513b23[_0x3c528a(0x29c)]?.[_0x3c528a(0x2ed)] ?? _0x513b23[_0x3c528a(_0x282a23._0x1949b8)]?.['id'] ?? _0x513b23[_0x3c528a(0x2ed)] ?? '';
679
+ }
680
+ function _0x287fe8(_0xf04ba2) {
681
+ return _0xf04ba2['participant']?.['name'] ?? _0x387e51(_0xf04ba2);
682
+ }
683
+ async function _0x5d1401(_0x3c2338) {
684
+ const _0x568cde = _0x2bf35a, _0x3d693b = Math[_0x568cde(0x225)](_0x3c2338[_0x568cde(0x242)] ?? 0x32, 0x64), _0x216c38 = await _0x10dedb(), _0x280028 = new URLSearchParams();
685
+ _0x280028[_0x568cde(0x2a3)](_0x568cde(0x242), String(_0x3d693b));
686
+ _0x3c2338[_0x568cde(0x1a2)] ? (_0x280028['set'](_0x568cde(_0x1c0222._0x418d53), _0x3c2338[_0x568cde(0x1a2)]), _0x280028[_0x568cde(_0x1c0222._0x23f67d)](_0x568cde(0x2c6), _0x3c2338[_0x568cde(_0x1c0222._0x3aedbd)])) : _0x280028[_0x568cde(_0x1c0222._0x23f67d)](_0x568cde(_0x1c0222._0x1a832e), _0x3c2338[_0x568cde(_0x1c0222._0x4a1452)]);
687
+ _0x3c2338[_0x568cde(0x2b5)] && _0x280028[_0x568cde(_0x1c0222._0x5ac7e8)](_0x568cde(_0x1c0222._0x462d4b), String(_0x3c2338[_0x568cde(_0x1c0222._0x281719)]));
688
+ _0x3c2338[_0x568cde(0x21b)] !== void 0x0 && _0x280028[_0x568cde(0x2a3)]('after', String(_0x3c2338[_0x568cde(0x21b)]));
689
+ const _0x3a0d1f = await _0x1fa09a(_0x568cde(_0x1c0222._0x539f9e) + _0x1786d1[_0x568cde(0x1b6)] + _0x568cde(0x1e0) + _0x280028['toString'](), {
690
+ 'headers': _0xd8cb6f,
691
+ 'method': 'GET'
692
+ }), _0x4bd4ea = (_0x3a0d1f[_0x568cde(_0x1c0222._0x45297c)] ?? [])[_0x568cde(0x209)](_0x36cd7a => ({
693
+ 'attachments': (_0x36cd7a[_0x568cde(0x20b)] ?? [])[_0x568cde(0x209)](_0x5b01f2 => ({
694
+ 'filename': _0x5b01f2[_0x568cde(0x289)] ?? _0x5b01f2['id'],
695
+ 'id': _0x5b01f2['id']
696
+ })),
697
+ 'content': _0x36cd7a['bodyMarkdown'] ?? '',
698
+ 'createdAt': _0x36cd7a['createdAt'],
699
+ ..._0x36cd7a['kind'] && _0x36cd7a[_0x568cde(0x189)] !== _0x568cde(0x28f) ? { 'kind': _0x36cd7a['kind'] } : {},
700
+ 'messageId': _0x36cd7a['id'],
701
+ 'senderName': _0x5e12dc(_0x36cd7a[_0x568cde(0x25a)], _0x216c38),
702
+ 'senderType': _0x4cf133(_0x36cd7a[_0x568cde(0x25a)], _0x216c38),
703
+ 'seq': _0x36cd7a[_0x568cde(0x1ad)] ?? 0x0
704
+ }));
705
+ return {
706
+ 'channel': _0x3c2338[_0x568cde(0x28e)],
707
+ 'hasMore': _0x3a0d1f[_0x568cde(_0x1c0222._0x5ae46c)]?.[_0x568cde(_0x1c0222._0x559af0)] ?? ![],
708
+ 'messages': _0x4bd4ea,
709
+ 'nextCursor': _0x3a0d1f[_0x568cde(0x20d)]?.[_0x568cde(0x255)]
710
+ };
711
+ }
712
+ return {
713
+ async 'sendMessage'(_0x1463af) {
714
+ const _0x595375 = _0x2bf35a, _0xc5370e = await _0x7faf44(_0x1463af[_0x595375(_0x2cf042._0x4dc270)]), _0x443ba7 = _0x1463af['content']['includes']('@') ? extractMentionedParticipantIds(_0x1463af[_0x595375(0x22f)], await _0x10dedb()) : [], _0x39ae6c = await _0x1fa09a(_0x595375(0x176) + _0x1786d1['agentId'] + _0x595375(_0x2cf042._0x1d6fc4), {
715
+ 'body': JSON[_0x595375(0x1a9)]({
716
+ 'attachment_ids': _0x1463af[_0x595375(0x186)],
717
+ 'bodyMarkdown': _0x1463af['content'],
718
+ 'channelId': _0xc5370e['channelId'],
719
+ ..._0x443ba7['length'] > 0x0 ? { 'mentionedParticipantIds': _0x443ba7 } : {},
720
+ 'threadId': _0xc5370e[_0x595375(_0x2cf042._0x11a857)],
721
+ ..._0x1463af[_0x595375(0x1c1)] ? { 'visibility': _0x1463af['visibility'] } : {}
722
+ }),
723
+ 'headers': _0xd8cb6f,
724
+ 'method': _0x595375(_0x2cf042._0x26fbc9)
725
+ });
726
+ return { 'messageId': _0x39ae6c[_0x595375(0x232)]?.['id'] ?? '' };
727
+ },
728
+ async 'listSchedules'() {
729
+ const _0x439d10 = _0x2bf35a, _0x414075 = await _0x1fa09a('/api/internal/schedules', {
730
+ 'headers': _0xd8cb6f,
731
+ 'method': _0x439d10(_0x1f72eb._0x17137c)
732
+ });
733
+ return _0x414075[_0x439d10(0x232)] ?? [];
734
+ },
735
+ async 'claimScheduleRun'(_0x898a85) {
736
+ const _0x2f91d7 = _0x2bf35a, _0x1372ca = await _0x1fa09a(_0x2f91d7(_0x2f0eb3._0x3a8403), {
737
+ 'body': JSON['stringify'](_0x898a85),
738
+ 'headers': _0xd8cb6f,
739
+ 'method': _0x2f91d7(_0x2f0eb3._0x33e572)
740
+ });
741
+ return _0x1372ca[_0x2f91d7(_0x2f0eb3._0x8a6cfd)] ?? {
742
+ 'granted': ![],
743
+ 'runId': null,
744
+ 'schedule': null,
745
+ 'scheduledFor': _0x898a85[_0x2f91d7(0x1ca)]
746
+ };
747
+ },
748
+ async 'startScheduleRun'(_0x5dafe5) {
749
+ const _0x1e9e9c = _0x2bf35a, _0x3e2462 = await _0x1fa09a('/api/internal/schedules/' + encodeURIComponent(_0x5dafe5[_0x1e9e9c(_0x3f6cc9._0x1a3bc2)]) + '/start', {
750
+ 'body': JSON[_0x1e9e9c(0x1a9)]({}),
751
+ 'headers': _0xd8cb6f,
752
+ 'method': _0x1e9e9c(_0x3f6cc9._0x6c47dd)
753
+ });
754
+ return _0x3e2462['data'] ?? {
755
+ 'claimedByDaemonId': '',
756
+ 'id': _0x5dafe5[_0x1e9e9c(0x2e7)],
757
+ 'scheduleId': '',
758
+ 'status': 'running'
759
+ };
760
+ },
761
+ async 'finishScheduleRun'(_0x57e219) {
762
+ const _0x28e583 = _0x2bf35a, _0x2b0f68 = await _0x1fa09a(_0x28e583(_0x100727._0x161ef7) + encodeURIComponent(_0x57e219[_0x28e583(0x2e7)]) + '/finish', {
763
+ 'body': JSON['stringify']({
764
+ 'error': _0x57e219[_0x28e583(0x1c0)],
765
+ 'resultJson': _0x57e219['resultJson'],
766
+ 'status': _0x57e219[_0x28e583(_0x100727._0x359404)]
767
+ }),
768
+ 'headers': _0xd8cb6f,
769
+ 'method': _0x28e583(0x175)
770
+ });
771
+ return _0x2b0f68[_0x28e583(0x232)] ?? {
772
+ 'nextRunAt': null,
773
+ 'run': {
774
+ 'claimedByDaemonId': '',
775
+ 'id': _0x57e219[_0x28e583(_0x100727._0x43e21e)],
776
+ 'scheduleId': '',
777
+ 'status': _0x57e219['status']
778
+ }
779
+ };
780
+ },
781
+ async 'listTasks'(_0x4685fa) {
782
+ const _0x1d2509 = _0x2bf35a, _0x292d26 = new URLSearchParams();
783
+ return _0x292d26['set'](_0x1d2509(0x298), _0x4685fa[_0x1d2509(0x298)]), _0x4685fa[_0x1d2509(_0x37de94._0x5dbb67)] && _0x292d26[_0x1d2509(0x2a3)](_0x1d2509(_0x37de94._0x5dbb67), _0x4685fa[_0x1d2509(_0x37de94._0x5dbb67)]), _0x4d7c33('/internal/agent/' + _0x1786d1['agentId'] + _0x1d2509(0x269) + _0x292d26['toString'](), {
784
+ 'headers': _0xd8cb6f,
785
+ 'method': _0x1d2509(_0x37de94._0x13d0e5)
786
+ });
787
+ },
788
+ async 'createTasks'(_0x17c4e2) {
789
+ const _0x26b7fc = _0x2bf35a;
790
+ return _0x4d7c33(_0x26b7fc(0x176) + _0x1786d1[_0x26b7fc(_0x25c44c._0x53ddc7)] + '/tasks', {
791
+ 'body': JSON['stringify']({
792
+ ..._0x17c4e2,
793
+ 'idempotency_key': _0x59b96e('create_tasks', _0x17c4e2)
794
+ }),
795
+ 'headers': _0xd8cb6f,
796
+ 'method': _0x26b7fc(0x175)
797
+ });
798
+ },
799
+ async 'claimTasks'(_0x3f2a3b) {
800
+ const _0x1e07ba = _0x2bf35a;
801
+ return _0x4d7c33(_0x1e07ba(0x176) + _0x1786d1['agentId'] + _0x1e07ba(_0x585cc0._0x59bdd1), {
802
+ 'body': JSON[_0x1e07ba(_0x585cc0._0x23ccbb)]({
803
+ ..._0x3f2a3b,
804
+ 'idempotency_key': _0x59b96e(_0x1e07ba(_0x585cc0._0xffa4c9), _0x3f2a3b)
805
+ }),
806
+ 'headers': _0xd8cb6f,
807
+ 'method': _0x1e07ba(0x175)
808
+ });
809
+ },
810
+ async 'unclaimTask'(_0x3de529) {
811
+ const _0x36aec6 = _0x2bf35a;
812
+ return _0x4d7c33('/internal/agent/' + _0x1786d1[_0x36aec6(_0x8be683._0x3cffde)] + _0x36aec6(_0x8be683._0x1a2b74), {
813
+ 'body': JSON['stringify']({
814
+ ..._0x3de529,
815
+ 'idempotency_key': _0x59b96e(_0x36aec6(0x24a), _0x3de529)
816
+ }),
817
+ 'headers': _0xd8cb6f,
818
+ 'method': _0x36aec6(0x175)
819
+ });
820
+ },
821
+ async 'updateTaskStatus'(_0x246da1) {
822
+ const _0x3c9ce2 = _0x2bf35a;
823
+ return _0x4d7c33(_0x3c9ce2(_0x50b0e3._0x1f838b) + _0x1786d1[_0x3c9ce2(_0x50b0e3._0x3ba3ef)] + _0x3c9ce2(_0x50b0e3._0x5f2652), {
824
+ 'body': JSON[_0x3c9ce2(_0x50b0e3._0x592ead)]({
825
+ ..._0x246da1,
826
+ 'idempotency_key': _0x59b96e(_0x3c9ce2(0x1f1), _0x246da1)
827
+ }),
828
+ 'headers': _0xd8cb6f,
829
+ 'method': _0x3c9ce2(_0x50b0e3._0x27692c)
830
+ });
831
+ },
832
+ async 'uploadFile'(_0x1129fe) {
833
+ const _0x255750 = _0x2bf35a, _0x5902a3 = await _0x7faf44(_0x1129fe[_0x255750(0x298)]);
834
+ if (_0x5902a3[_0x255750(_0x131671._0x228673)])
835
+ throw new Error(_0x255750(0x2c0));
836
+ const _0x583176 = await _0x1fa09a(_0x255750(0x176) + _0x1786d1[_0x255750(_0x131671._0x40e847)] + _0x255750(0x1dc), {
837
+ 'body': JSON[_0x255750(0x1a9)]({
838
+ 'channel': _0x5902a3[_0x255750(0x291)],
839
+ 'contentBase64': _0x1129fe['contentBase64'],
840
+ 'contentType': _0x1129fe[_0x255750(0x2c4)],
841
+ 'originalFilename': _0x1129fe[_0x255750(_0x131671._0x3ee8c3)]
842
+ }),
843
+ 'headers': _0xd8cb6f,
844
+ 'method': _0x255750(_0x131671._0x56898a)
845
+ });
846
+ return {
847
+ 'attachmentId': _0x583176['data']?.['id'] ?? '',
848
+ 'filename': _0x583176[_0x255750(_0x131671._0x3a3519)]?.[_0x255750(_0x131671._0x106cb0)] ?? _0x1129fe[_0x255750(0x289)],
849
+ 'sizeBytes': _0x583176[_0x255750(0x232)]?.[_0x255750(_0x131671._0x4a9350)] ?? 0x0
850
+ };
851
+ },
852
+ async 'downloadAttachment'(_0x473e7b) {
853
+ const _0x124f1e = _0x2bf35a, _0x5d2b16 = await _0x1fa09a(_0x124f1e(_0x2b6bec._0xa73d2e) + _0x473e7b, {
854
+ 'headers': _0xd8cb6f,
855
+ 'method': _0x124f1e(_0x2b6bec._0x3e2ca6)
856
+ }), _0x2bc03f = new AbortController(), _0x1546c2 = setTimeout(() => _0x2bc03f[_0x124f1e(0x2dd)](), _0x1e54d7);
857
+ try {
858
+ const _0x5287f7 = await _0x51c4fc(_0x4e14a2 + _0x124f1e(0x1de) + _0x473e7b + '/content', {
859
+ 'headers': _0xd8cb6f,
860
+ 'method': _0x124f1e(_0x2b6bec._0x728828),
861
+ 'signal': _0x2bc03f[_0x124f1e(_0x2b6bec._0x3d935d)]
862
+ });
863
+ if (!_0x5287f7['ok'])
864
+ throw new Error(_0x124f1e(_0x2b6bec._0x34355c) + _0x5287f7[_0x124f1e(_0x2b6bec._0x57e4f)]);
865
+ return {
866
+ 'contentType': _0x5d2b16[_0x124f1e(0x232)]?.[_0x124f1e(0x2c4)] ?? _0x5287f7[_0x124f1e(_0x2b6bec._0x3e48f1)][_0x124f1e(_0x2b6bec._0x4206b8)](_0x124f1e(0x17d)) ?? _0x124f1e(0x174),
867
+ 'data': Buffer[_0x124f1e(0x197)](await _0x5287f7[_0x124f1e(_0x2b6bec._0x149724)]()),
868
+ 'originalFilename': _0x5d2b16[_0x124f1e(0x232)]?.[_0x124f1e(0x170)]
869
+ };
870
+ } finally {
871
+ clearTimeout(_0x1546c2);
872
+ }
873
+ },
874
+ async 'listServer'() {
875
+ return _0x10dedb({ 'forceRefresh': !![] });
876
+ },
877
+ async 'getLatestEventSeq'() {
878
+ const _0x86b083 = _0x2bf35a, _0x44858e = new URLSearchParams();
879
+ _0x44858e[_0x86b083(0x2a3)](_0x86b083(0x268), '0'), _0x44858e[_0x86b083(_0x327281._0x50ddd4)](_0x86b083(_0x327281._0x1eb4d0), '1');
880
+ const _0xa46024 = await _0x1fa09a(_0x86b083(_0x327281._0x33822e) + _0x1786d1[_0x86b083(_0x327281._0x1c5266)] + _0x86b083(0x182) + _0x44858e['toString'](), {
881
+ 'headers': _0xd8cb6f,
882
+ 'method': 'GET'
883
+ }), _0x3dad47 = _0xa46024[_0x86b083(0x20d)]?.[_0x86b083(_0x327281._0x16005b)];
884
+ return typeof _0x3dad47 === 'number' && _0x3dad47 > 0x0 ? _0x3dad47 : 0x0;
885
+ },
886
+ async 'readHistory'(_0x7cd8f2) {
887
+ const _0x1bc9ba = _0x2bf35a, _0x48c781 = await _0x7faf44(_0x7cd8f2[_0x1bc9ba(_0x2e1f14._0xb4d320)]);
888
+ return _0x5d1401({
889
+ 'after': _0x7cd8f2[_0x1bc9ba(0x21b)],
890
+ 'before': _0x7cd8f2[_0x1bc9ba(0x2b5)],
891
+ 'channelId': _0x48c781['channelId'],
892
+ 'channelTarget': _0x48c781[_0x1bc9ba(0x291)],
893
+ 'limit': _0x7cd8f2[_0x1bc9ba(_0x2e1f14._0x361e85)],
894
+ 'threadId': _0x48c781[_0x1bc9ba(_0x2e1f14._0x5abfea)]
895
+ });
896
+ },
897
+ 'resolveTarget': _0x7faf44,
898
+ async 'checkMessages'() {
899
+ const _0x43071d = {
900
+ _0x58eb64: 0x1e8,
901
+ _0x18e237: 0x26e
902
+ }, _0xdcb3e1 = _0x2bf35a, _0x2b2067 = new URLSearchParams();
903
+ _0x2b2067[_0xdcb3e1(0x2a3)](_0xdcb3e1(0x268), String(_0x24a660));
904
+ const _0xfbedac = _0x2b2067[_0xdcb3e1(_0x3e0a30._0x23d205)](), _0x2b826f = await _0x1fa09a(_0xdcb3e1(0x176) + _0x1786d1[_0xdcb3e1(0x1b6)] + '/receive' + (_0xfbedac ? '?' + _0xfbedac : ''), {
905
+ 'headers': _0xd8cb6f,
906
+ 'method': _0xdcb3e1(_0x3e0a30._0x405146)
907
+ }), _0x337ce7 = _0x2b826f[_0xdcb3e1(_0x3e0a30._0x53154e)] ?? [], _0x5c78a4 = _0x2b826f[_0xdcb3e1(0x20d)]?.[_0xdcb3e1(0x255)], _0x398634 = _0x1d06a1 ? _0x337ce7[_0xdcb3e1(0x2de)](_0x5a8c4a => {
908
+ const _0x1562f8 = _0xdcb3e1;
909
+ if (_0x5a8c4a['aggregateType'] !== _0x1562f8(_0x43071d._0x58eb64))
910
+ return ![];
911
+ return _0x5d3d0c(_0x1d06a1, asRecord(_0x5a8c4a[_0x1562f8(_0x43071d._0x18e237)]));
912
+ }) : _0x337ce7, _0x4f4167 = _0x5c78a4 !== void 0x0 ? _0x1d06a1 ? Math[_0xdcb3e1(0x23d)](_0x24a660, _0x398634[_0xdcb3e1(_0x3e0a30._0x35beb4)] > 0x0 ? _0x398634[_0x398634[_0xdcb3e1(0x1a1)] - 0x1][_0xdcb3e1(0x1f5)] : _0x24a660) : Math[_0xdcb3e1(0x23d)](_0x24a660, _0x5c78a4) : _0x398634[_0xdcb3e1(0x1a1)] > 0x0 ? Math[_0xdcb3e1(0x23d)](_0x24a660, _0x398634[_0x398634['length'] - 0x1][_0xdcb3e1(_0x3e0a30._0x1b11bf)]) : _0x24a660, _0x3dca49 = (_0x1d06a1 ? _0x398634 : _0x337ce7)['filter'](_0x1c55b5 => _0x1c55b5[_0xdcb3e1(0x204)] === 'message');
913
+ let _0x352e07 = await _0x10dedb(), _0xc184de = new Map(_0x352e07[_0xdcb3e1(0x262)][_0xdcb3e1(_0x3e0a30._0x1e0b64)](_0x3b8607 => [
914
+ _0x3b8607['id'],
915
+ _0x3b8607
916
+ ]));
917
+ const _0x33a4c4 = _0x3dca49[_0xdcb3e1(_0x3e0a30._0x1eff78)](_0xaac87f => {
918
+ const _0x537908 = _0xdcb3e1, _0x1fa786 = asRecord(_0xaac87f[_0x537908(0x26e)]), _0x119b23 = typeof _0x1fa786?.[_0x537908(0x2c6)] === _0x537908(0x216) ? _0x1fa786['channelId'] : '';
919
+ return Boolean(_0x119b23) && !_0xc184de['has'](_0x119b23);
920
+ });
921
+ _0x33a4c4 && (_0x352e07 = await _0x10dedb({ 'forceRefresh': !![] }), _0xc184de = new Map(_0x352e07[_0xdcb3e1(0x262)]['map'](_0x5d6b0f => [
922
+ _0x5d6b0f['id'],
923
+ _0x5d6b0f
924
+ ])));
925
+ const _0x2e91f6 = new Map();
926
+ for (const _0x51f200 of _0x3dca49) {
927
+ const _0x317f55 = asRecord(_0x51f200[_0xdcb3e1(_0x3e0a30._0x4b3c74)]), _0x51f726 = typeof _0x317f55['channelId'] === _0xdcb3e1(_0x3e0a30._0x612eff) ? _0x317f55[_0xdcb3e1(_0x3e0a30._0x38c49a)] : '';
928
+ if (!_0x51f726)
929
+ continue;
930
+ const _0x12ec9e = typeof _0x317f55[_0xdcb3e1(_0x3e0a30._0x40112)] === 'string' ? _0x317f55['threadId'] : void 0x0, _0x136ae5 = typeof _0x317f55[_0xdcb3e1(0x19c)] === _0xdcb3e1(_0x3e0a30._0x5185b0) ? _0x317f55['rootMessageId'] : void 0x0, _0xcbaedb = typeof _0x317f55[_0xdcb3e1(0x283)] === _0xdcb3e1(0x23c) && Number[_0xdcb3e1(_0x3e0a30._0x3ed71e)](_0x317f55[_0xdcb3e1(_0x3e0a30._0x6773cf)]) ? _0x317f55[_0xdcb3e1(_0x3e0a30._0x12187d)] : void 0x0, _0x191e97 = Boolean(_0x12ec9e && (!_0x136ae5 || _0x51f200[_0xdcb3e1(0x25f)] !== _0x136ae5)), _0x13ca31 = _0x191e97 ? _0x51f726 + ':' + _0x12ec9e : _0x51f726, _0x50fc2e = _0x2e91f6[_0xdcb3e1(0x1d2)](_0x13ca31) ?? {
931
+ 'aggregateIds': [],
932
+ 'channelId': _0x51f726,
933
+ 'entries': new Map(),
934
+ 'isThreadReply': _0x191e97,
935
+ 'rootMessageId': _0x136ae5,
936
+ 'threadNumber': _0xcbaedb,
937
+ 'threadId': _0x191e97 ? _0x12ec9e : void 0x0
938
+ };
939
+ _0x50fc2e[_0xdcb3e1(_0x3e0a30._0x275c16)] == null && _0xcbaedb != null && (_0x50fc2e[_0xdcb3e1(0x283)] = _0xcbaedb), !_0x50fc2e['rootMessageId'] && _0x136ae5 && (_0x50fc2e['rootMessageId'] = _0x136ae5), _0x50fc2e['aggregateIds'][_0xdcb3e1(0x26d)](_0x51f200[_0xdcb3e1(0x25f)]), _0x50fc2e[_0xdcb3e1(0x28d)][_0xdcb3e1(_0x3e0a30._0x1f585b)](_0x51f200[_0xdcb3e1(_0x3e0a30._0x3e9002)], {
940
+ 'payloadJson': _0x51f200['payloadJson'],
941
+ 'seq': _0x51f200[_0xdcb3e1(0x1f5)]
942
+ }), _0x2e91f6['set'](_0x13ca31, _0x50fc2e);
943
+ }
944
+ const _0x37bfed = [];
945
+ for (const _0xeb7efd of _0x2e91f6[_0xdcb3e1(_0x3e0a30._0x34b488)]()) {
946
+ const {
947
+ channelId: _0x5a29e2,
948
+ threadId: _0x359da1,
949
+ rootMessageId: _0xdb1846,
950
+ threadNumber: _0x3b9e53,
951
+ aggregateIds: _0x4487df,
952
+ isThreadReply: _0x3c399a,
953
+ entries: _0x45ef10
954
+ } = _0xeb7efd, _0x297d2b = _0xc184de[_0xdcb3e1(_0x3e0a30._0x3abe99)](_0x5a29e2), _0x3d96c3 = _0x297d2b?.[_0xdcb3e1(0x1a4)] ?? _0x5a29e2, _0x312ff3 = _0x297d2b?.[_0xdcb3e1(0x189)] === 'dm' ? 'dm:' + _0x3d96c3 : '#' + _0x3d96c3, _0x2283b2 = {
955
+ 'channelTarget': _0x312ff3,
956
+ 'rootMessageId': _0xdb1846,
957
+ 'threadId': _0x359da1,
958
+ 'threadNumber': _0x3b9e53
959
+ }, _0x3eaf15 = await _0x5d1401({
960
+ 'channelId': _0x5a29e2,
961
+ 'channelTarget': _0x312ff3,
962
+ 'limit': Math['max'](_0x4487df['length'], 0x32),
963
+ 'threadId': _0x359da1
964
+ }), _0x369910 = new Map(_0x3eaf15[_0xdcb3e1(0x264)][_0xdcb3e1(0x209)](_0x8a7c1d => [
965
+ _0x8a7c1d[_0xdcb3e1(0x210)],
966
+ _0x8a7c1d
967
+ ])), _0x1324ca = _0x359da1 ? _0x1dcadb(_0x2283b2) : _0x312ff3, _0xa84c59 = _0x1d06a1 ? _0x3c399a && _0x16fb41(_0x1d06a1, _0x2283b2) : !![], _0xbe3aad = _0x3c399a ? _0xa84c59 && _0x1d06a1 ? _0x1d06a1 : _0x1324ca : _0x312ff3;
968
+ for (const _0x480825 of _0x4487df) {
969
+ if (!_0xa84c59)
970
+ continue;
971
+ const _0x415e9e = _0x45ef10[_0xdcb3e1(_0x3e0a30._0x13cd17)](_0x480825), _0x5e5ffd = _0x415e9e ? asRecord(_0x415e9e[_0xdcb3e1(0x26e)]) : void 0x0, _0x5e8bbb = _0x5e5ffd?.[_0xdcb3e1(_0x3e0a30._0x704b31)] === _0xdcb3e1(_0x3e0a30._0x582e72), _0x1c370b = _0x369910[_0xdcb3e1(0x1d2)](_0x480825);
972
+ if (_0x1c370b) {
973
+ _0x37bfed[_0xdcb3e1(_0x3e0a30._0x218e37)]({
974
+ 'attachments': _0x1c370b['attachments'],
975
+ 'content': _0x1c370b[_0xdcb3e1(_0x3e0a30._0x5b16d7)],
976
+ 'createdAt': _0x1c370b[_0xdcb3e1(_0x3e0a30._0x5b4cd7)],
977
+ ..._0x1c370b[_0xdcb3e1(_0x3e0a30._0x360947)] ? { 'kind': _0x1c370b[_0xdcb3e1(0x189)] } : {},
978
+ 'messageId': _0x1c370b[_0xdcb3e1(_0x3e0a30._0x2ddf5c)],
979
+ 'senderName': _0x1c370b[_0xdcb3e1(0x1e7)],
980
+ 'senderType': _0x1c370b[_0xdcb3e1(0x1d6)],
981
+ 'target': _0xbe3aad,
982
+ ..._0x5e8bbb ? { 'targetedTask': !![] } : {}
983
+ });
984
+ continue;
985
+ }
986
+ if (_0x415e9e) {
987
+ const _0x13d372 = typeof _0x5e5ffd?.[_0xdcb3e1(_0x3e0a30._0x4c2649)] === _0xdcb3e1(0x216) ? _0x5e5ffd[_0xdcb3e1(0x25a)] : '', _0x2d3361 = typeof _0x5e5ffd?.[_0xdcb3e1(_0x3e0a30._0x527ceb)] === _0xdcb3e1(0x216) ? _0x5e5ffd[_0xdcb3e1(0x1ce)] : '', _0x2b363e = typeof _0x5e5ffd?.[_0xdcb3e1(_0x3e0a30._0x360947)] === 'string' && _0x5e5ffd[_0xdcb3e1(_0x3e0a30._0x360947)] !== _0xdcb3e1(0x28f) ? _0x5e5ffd[_0xdcb3e1(0x189)] : void 0x0;
988
+ _0x13d372 && _0x2d3361 && _0x37bfed[_0xdcb3e1(0x26d)]({
989
+ 'attachments': [],
990
+ 'content': _0x2d3361,
991
+ 'createdAt': new Date()[_0xdcb3e1(_0x3e0a30._0x218d0b)](),
992
+ ..._0x2b363e ? { 'kind': _0x2b363e } : {},
993
+ 'messageId': _0x480825,
994
+ 'senderName': _0x5e12dc(_0x13d372, _0x352e07),
995
+ 'senderType': _0x4cf133(_0x13d372, _0x352e07),
996
+ 'target': _0xbe3aad,
997
+ ..._0x5e8bbb ? { 'targetedTask': !![] } : {}
998
+ });
999
+ }
1000
+ }
1001
+ }
1002
+ if (_0x4f4167 > 0x0) {
1003
+ if (_0x5df0ea)
1004
+ await _0x280996(_0x4f4167);
1005
+ else
1006
+ _0x28a5fe && await _0x3de8b2(_0x4f4167);
1007
+ }
1008
+ return _0x4f4167 > _0x24a660 && (_0x24a660 = _0x4f4167), { 'messages': _0x37bfed };
1009
+ }
1010
+ };
1011
+ }
1012
+ function _0x5707() {
1013
+ const _0x3d105e = [
1014
+ 'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
1015
+ 'ihr5Cgu9ywDLBNq',
77
1016
  'Dg9gAxHLza',
78
- 'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
79
- 'l3jLC29SDMuTy2HHBM5LBa',
80
- 'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
81
- 'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
82
- 'C29YDa',
83
- 'ntC2nZC1mePxvNjmrG',
1017
+ 'AgfZ',
1018
+ 'C2LNBMfS',
1019
+ 'D29YA2vYigHHBMrVzMyGzMfPBgvK',
1020
+ 'C3rHCNrLza',
1021
+ 'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
84
1022
  'ywjVCNq',
85
- 'y29UDgvUDfr5Cgu',
86
- 'l3DVCMTLCNmVzgvSAxzLCG',
87
- 'igzHAwXLzdOG',
88
- 'D29YA2vYu2vZC2LVBKLK',
89
- 'ls13B3jRzxiTBw9Kzq',
90
- 'ChvZAa',
91
- 'Dw5RBM93BG',
92
- 'CMvZCg9UC2u',
93
- 'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
1023
+ 'zMLSDgvY',
1024
+ 'iIbUB3qGzM91BMq',
1025
+ 'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
1026
+ 'l2nVBNrLEhqTBwv0CMLJCW',
94
1027
  'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
95
- 'C2vX',
96
- 'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxHLy3v0Aw9Utw9Kzt1TywLUcLn0yxKGAw4GBwfPBIbZzxnZAw9UoIbYzwfKihrOzsbYzwzLCMvUy2vKihbSyw4Vzg9JDw1LBNqGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYaOB3iGB3rOzxj3AxnLigfKDMfUy2uGDgHLihrHC2SGAw4GBwfPBIb3AxrOB3v0igHHBMrPBMCGB2zMihrVigeGD29YA2vYks4',
97
- 'C3vIDgfZA051BwjLCG',
98
- 'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
99
- 'DxbKyxrLx3rHC2TFC3rHDhvZ',
100
- 'z2v0sg91CNm',
101
- 'zxnJywXHDgvFDg9FBwfPBG',
102
- 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
103
- 'AxnjBNrLz2vY',
104
- 'BMv4Den1CNnVCG',
105
- 'C2vYDMvYvxjS',
106
- 'lsba',
107
- 'BgLZDf9Zzxj2zxiGzMfPBgvK',
108
- 'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
109
- 'C3bSAxq',
110
- 'rMLSzsb1CgXVywrLzdOG',
111
- 'zg06',
112
- 'ywz0zxi',
113
- 'iJOGC3rHDhvZpq',
114
- 'y2HHBM5LBe5HBwu',
115
- 'y3jLyxrLx3rHC2TZ',
1028
+ 'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
1029
+ 'yxjNDG',
1030
+ 'C2L6zq',
1031
+ 'yxbWBgLJyxrPB24VEg1S',
1032
+ 'CNvUswq',
1033
+ 'ChvIBgLJ',
1034
+ 'igrVBMuP',
1035
+ 'DgfZA0rLBgL2zxj5tw9Kzq',
1036
+ 'nZq0mJi2nKnXtKvnCa',
1037
+ 'Axnoyu4',
1038
+ 'CgfYDgLJAxbHBNrjza',
1039
+ 'BwfYA193ywL0Aw5Nx2LUChv0',
1040
+ 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
1041
+ 'CgfYA193B3jRzxiGzMfPBgvK',
1042
+ 'AwrLBxbVDgvUy3LFA2v5',
1043
+ 'C2vUzf9TzxnZywDL',
1044
+ 'mc4WlJa',
1045
+ 'ls1Zzxj2zxiTDxjS',
116
1046
  'tM8GDgfZA3mGy3jLyxrLzc4',
117
- 'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
118
- 'DgfZAW',
119
- 'y2HPBgrYzw5uB3rHBa',
120
- 'y2XPzw50',
121
- 'C2vUze1LC3nHz2u',
122
- 'mZuYote0mgz2suPJrG',
123
- 'y2HHBM5LBa',
124
- 'C3vIDgfZA19UDw1IzxjZ',
125
- 'DgHYzwfKx3rHCMDLDa',
126
- 'yxnZAwDUzwvoyw1L',
127
- 'C3vJy2vZCW',
128
- 'zxHLy3v0Aw9Utw9Kzq',
129
- 'l3rHC2TZpW',
130
- 'Bwf0y2Hoyw1Ltg93zxi',
131
- 'CxvLDwvK',
132
- 'CgfYC2u',
133
- 'BwvZC2fNzq',
134
- 'CMvWBgfJzq',
135
- 'Dg9tDhjPBMC',
136
- 'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4Gv2HLBIbTB3zPBMCGD29YAYb0BYbPBL9YzxzPzxCSignOzwnRihLVDxiGBwvTB3j5ig9YignOyw5UzwWGCNvSzxmGyw5KihnLBMqGysbYzxzPzxDLCIbTzw50Aw9UihLVDxjZzwXMihDOzw4GyxbWCM9WCMLHDguU',
137
- 'Bg93',
138
- 'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
139
- 'ignSywLTzwq',
140
- 'C2XPy2u',
141
- 'C2vUzgvYvhLWzq',
142
- 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
143
- 'vgHYzwfKihrHCMDLDdOG',
144
- 'twvZC2fNzsbZzw50ihrVia',
145
- 'C3rYAw5NAwz5',
146
- 'zg0T',
147
- 'lMrZy29Yza',
148
- 'AwrSzq',
149
- 'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
150
- 'DxnLCG',
151
- 'DhLWzq',
152
- 'mtK3odCWnwn3s0jbyq',
153
1047
  'zgvZDhjVEwvK',
154
- 'l2fWAs9HDhrHy2HTzw50CY8',
155
- 'l3n0yxj0',
156
- 'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
157
- 'Aw1Hz2uVANbLzW',
158
- 'DxbSB2fKuhjLCgfYzxi',
159
- 'zgLNzxn0',
160
- 'owPbDLzsBa',
1048
+ 'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
1049
+ 'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
1050
+ 'lsba',
1051
+ 'mJmWnJi4mfbzBKzAqW',
1052
+ 'Agv4',
1053
+ 'Bg9JywXLq29TCgfYzq',
1054
+ 'y2XPzw50',
161
1055
  'B3b0Aw9UywW',
162
- 'ihrPBwu9',
163
- 'ChjVDg9JB2W',
164
- '4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
165
- 'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
166
- 'C2vUzgvYtMfTzq',
167
- 'uM9VDcb0yxnRig1LC3nHz2u6cG',
168
- 'yxjYyxLcDwzMzxi',
169
- 'l2zPBMLZAa',
170
- 'zMv0y2HuAw1LB3v0txm',
171
- 'yxv0BZO',
172
- 'ywDLBNq',
173
- 'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
174
- 'DgvZDa',
175
- 'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
176
- 'DgL0Bgu',
177
- 'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
178
- 'DxbKyxrLvgfZA1n0yxr1CW',
179
- 'yMvMB3jL',
180
- 'y2HHDa',
181
- 'y2HLy2TFBwvZC2fNzxm',
182
- 'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
183
- 'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
184
- '6k+35Rgcia',
185
- 'Dgv4Dc9TyxjRzg93BG',
186
- 'igLUia',
187
- 'D29YA19RzxK',
188
- 'C3vIDgfZA19UDw1Izxi',
189
- 'Ahr0CdO',
190
- 'ls13B3jRzxiTC2vZC2LVBI1Pza',
1056
+ 'l3rHC2TZl3vUy2XHAw0',
191
1057
  'zgLZCg9ZAxrPB24',
192
- 'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
193
- 'y3jLyxrLx3rHC2TZigzHAwXLza',
194
- 'DgfZA0LK',
195
- 'kgXLz2fJEsK',
196
- 'y2HLy2TnzxnZywDLCW',
197
- 'CMvHzf9OAxn0B3j5igzHAwXLza',
198
- 'Cgf5Bg9HzePZB24',
199
- 'EM9K',
200
- 'DgfZAYa',
201
- 'DgHYzwfK',
202
- 'igf0DgfJAg1LBNq',
203
- 'DgHYzwfKvgfYz2v0',
204
- 'ls1Hz2vUDc1Pza',
205
- 'yM9KEu1HCMTKB3DU',
206
- 'ChvIBgLJ',
207
- 'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
208
- 'nJu2ote4EuXxB2Ld',
209
- 'kg5VBMuP',
210
- 'y29UDgvUDejHC2u2na',
211
- 'Bwf0y2Hoyw1L',
212
- 'Dw5JBgfPBv90yxnRigzHAwXLza',
213
- 'ig1ZzZ0',
214
- 'lsaJ',
215
- 'CgfYDgLJAxbHBNq',
216
- 'yxr0ywnOBwvUDhm',
217
- 'DgfZA3m',
218
- 'C2v0',
219
- 'C2vUzgvYugfYDgLJAxbHBNrjza',
220
- 'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
221
- 'y2XHAw1FDgfZA3m',
222
- 'zg9Uzq',
223
- 'zMLSDgvY',
224
- 'iYmGu2vYDMvYoIa',
225
- 'D29YA2vYsgfUzg9MzJ10CNvL',
226
- 'DgfYz2v0',
227
- 'C2vYDMvYtMfTzq',
228
- 'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
229
- 'CNvUswq',
230
- 'lIbnzxnZywDLieLeoIa',
231
- 'DgfZA0rLBgL2zxj5tw9Kzq',
232
- 'AM9PBG',
233
- 'r0vu',
1058
+ 'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
1059
+ 'B3jPz2LUywXgAwXLBMfTzq',
1060
+ '77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
1061
+ 'tM8GBMv3ig1LC3nHz2vZlG',
1062
+ 'y3jLyxrLx3rHC2TZ',
1063
+ 'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
234
1064
  'ue9tva',
235
- 'Dgv4Dc9WBgfPBG',
236
1065
  'l2LUDgvYBMfSl2fNzw50lW',
237
- 'iIbUB3qGzM91BMq',
238
- 'pgvTChr5pG',
239
- 'y29UDgvUDa',
240
- 'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
241
- 'C3rHCNrLza',
242
- 'DgHYzwfKu2HVCNrjza',
243
- 'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
244
- 'zxHLy3v0Aw9Utw9Kzt0',
245
- 'BwfYA193ywL0Aw5Nx2LUChv0',
246
- 'ig1ZzZ1Oyw5KB2zMihrPBwu9',
247
- 'ywDLBNrjza',
248
- 'Dg9ju09tDhjPBMC',
249
- 'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
250
- 'BMfTzq',
251
- 'yxjYyxK',
252
- 'z2v0tw9UDgG',
253
- 'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
254
- 'cGOTls0G',
255
- 'xsba',
1066
+ 'CMvZDwX0CW',
1067
+ 'lcbJB250zw50lxr5Cgu9',
1068
+ 'DxbSB2fKx2zPBguGzMfPBgvK',
256
1069
  'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
257
- 'zxjYB3i',
258
- 'AhvTyw5Z',
259
- 'Aw5JBhvKzxm',
260
- 'ihn0yxLZigLUig1HAw4GC2vZC2LVBIaOzxHLy3v0Aw9Utw9Kzt1TywLUktSGCMvTywLUigHLCMuSihjLywqGDgHLihjLzMvYzw5JzwqGCgXHBI9KB2n1BwvUDcWGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYbPzIb0Agf0igLZihrOzsbPBNrLBNqU',
261
- 'ihr5Cgu9ywDLBNq',
262
- 'w3nLCt0',
263
- 'z2v0rgf0zq',
264
- 'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
265
- 'zgvZy3jPyMu',
266
- 'DgHYzwfKswq',
267
- 'y3vYC29Y',
268
- 'D29YA2vYsgfUzg9MzKvYCM9Y',
269
- 'CMvZDwX0sNnVBG',
270
- 'zgvSzxrL',
271
- 'BwvZC2fNzuLK',
272
- 'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
273
- 'BgLTAxq',
274
- 'yxjNDG',
275
- 'DMfSDwu',
276
- 'C2vUzf9TzxnZywDL',
277
- 'C2LNBMfS',
278
- 'BgvUz3rO',
279
- 'DgHYzwfKtNvTyMvY',
280
- 'yxr0ywnOBwvUDenHy2HLrgLY',
281
- 'CgfYA193B3jRzxiGzMfPBgvK',
282
- 'y2fJAgveAxi',
283
- 'C2L6zq',
284
- 'BgLZDfnLCNzLCG',
285
- 'DMLLD19MAwXL',
286
- 'y2HHBM5LBfrHCMDLDa',
287
- 'BgLZDf9Zzxj2zxi',
288
- 'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
289
- 'D29YA2vYtw9Kzq',
290
- 'Bwv0yq',
291
- 'lMjPBG',
292
- '77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
293
- 'yxr0ywnOBwvUDf9Pzhm',
294
- 'ywDLBNrZ',
295
- 'l3jLy2vPDMu',
296
- 'CMvXDwvZDfvYBa',
297
- 'C3rVCe1HAw49Dhj1zq',
298
- 'BgLZDf90yxnRCW',
299
- 'C2f2zq',
300
- 'l3rHC2TZl3vUy2XHAw0',
301
- 'D29YA2vYx3nLC3nPB25FAwq',
302
- 'ywz0zxjtzxe',
303
- 'v29YA2vYici',
304
- 'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
305
- 'y2HHBM5LBeLK',
306
- 'ANnVBG',
307
- 'Bwf4rMLSzvnPEMvcExrLCW',
308
- 'z2v0x3DVCMTLCL9ZDgf0Dxm',
309
- 'Axnoyu4',
310
- 'Dg9mB3DLCKnHC2u',
1070
+ 'ls13B3jRzxiTC2vZC2LVBI1Pza',
1071
+ 'l3jLC29SDMuTy2HHBM5LBa',
1072
+ 'y29UDgvUDc10ExbL',
311
1073
  'ywrK',
1074
+ 'C29Tzq',
1075
+ 'C3vIDgfZA19UDw1IzxjZ',
1076
+ 'ig1LC3nHz2vZkqOk',
1077
+ 'l3jLy2vPDMu/',
1078
+ 'AhvTyw5Z',
1079
+ 'l3DVCMTLCNmVzxnJywXHDgu',
1080
+ 'sfruuca',
1081
+ 'yxr0ywnOBwvUDeLKCW',
1082
+ 'AwrSzq',
1083
+ 'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
1084
+ 'A2LUza',
1085
+ 'ls1Hz2vUDc1Pza',
1086
+ 'DxbSB2fKrMLSzq',
1087
+ 'z2v0u2vJB25KCW',
1088
+ 'DgHYzwfKvgfYz2v0',
1089
+ 'CNvUBMLUzW',
1090
+ 'kg5VBMuP',
312
1091
  'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
313
- 'igTPBMq9',
314
- 'l3rHC2TZ',
315
- 'B2jQzwn0',
316
- 'y2f0y2G',
317
- 'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
1092
+ 'DMLLD19MAwXLigzHAwXLza',
1093
+ 'AgvHzgvYCW',
1094
+ 'AgfZtw9Yzq',
1095
+ 'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
1096
+ 'CMvHC29U',
1097
+ 'uM9VDcb0yxnRig1LC3nHz2u6cG',
1098
+ 'zNjVBq',
1099
+ 'DgfZAYa',
1100
+ 'khvUA25VD24P',
1101
+ 'cGOTls0G',
1102
+ 'Dgv4Dc9JC3y',
1103
+ 'CM9VDe1LC3nHz2vjza',
1104
+ 'CMvXDwvZDfvYBa',
1105
+ 'C3vIDgfZA051BwjLCG',
1106
+ 'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
1107
+ 'Dw5JBgfPBvrHC2S',
1108
+ 'BgvUz3rO',
1109
+ 'DgHYzwfKswq',
1110
+ 'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
1111
+ 'BMfTzq',
1112
+ 'tM8GDgfZA3mGzM91BMqU',
1113
+ 'icHPzdO',
1114
+ 'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
1115
+ 'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
1116
+ 'C3rYAw5NAwz5',
1117
+ 'pgvTChr5pG',
1118
+ 'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
1119
+ 'ls1KywvTB24TBg9JywWTDxjS',
1120
+ 'zxzLBNrtzxe',
1121
+ 'ANnVBG',
1122
+ 'BwvZC2fNzv9Pzhm',
1123
+ 'C2L6zuj5DgvZ',
1124
+ 'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
1125
+ 'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
1126
+ 'y2HPBgrYzw5uB3rHBa',
1127
+ 'lcbWCMv2Awv3pq',
1128
+ 'DMfSDwvZ',
1129
+ 'ywDLBNrjza',
1130
+ 'Ahr0CdO',
318
1131
  'w3rHCMDLDd0',
319
- 'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
320
- 'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
321
- 'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
322
- 'BwfPBG',
323
- 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
1132
+ 'lIbnzxnZywDLieLeoIa',
1133
+ 'Aw1Hz2uVC3zNk3HTBa',
1134
+ 'C3vJy2vZCW',
1135
+ 'Ahr0Chm6',
1136
+ 'Dgv4Da',
1137
+ 'tM8GDgfZA3mGy2XHAw1Lzc4',
1138
+ 'lMjPBG',
1139
+ 'zxjYB3i',
1140
+ 'DMLZAwjPBgL0Eq',
324
1141
  'zxH0BMfTzq',
325
- 'BNvTyMvY',
1142
+ 'mti2mZm1D1ziuK13',
1143
+ 'Dw5RBM93BG',
1144
+ 'D29YA2vYvgHYzwfKvgfYz2v0',
1145
+ 'D3nZoG',
1146
+ 'C3rVCe1HAw4',
1147
+ 'DhjPBq',
326
1148
  'Dg9mB2nHBgvmB3DLCKnHC2u',
327
- 'C29Tzq',
328
- 'ywrKrxzLBNrmAxn0zw5LCG',
329
- 'ig1LC3nHz2u9',
1149
+ 'C2nOzwr1BgvKrM9Y',
1150
+ 'CMvHzf9OAxn0B3j5igzHAwXLza',
1151
+ 'BgLZDf9Zzxj2zxi',
1152
+ 'CgfYA193B3jRzxi',
1153
+ 'yM9KEu1HCMTKB3DU',
1154
+ 'BwvTyMvYCW',
1155
+ 'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
1156
+ 'C2vUzf9TzxnZywDLigzHAwXLza',
1157
+ 'z2v0',
1158
+ 'DMLLD19MAwXL',
1159
+ 'Bwf0y2Hoyw1Ltg93zxi',
1160
+ 'DMfSDwu',
1161
+ 'C2vUzgvYvhLWzq',
1162
+ 'D2fPDgLUz19PBNb1Da',
1163
+ 'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
1164
+ 'zM9Yy2vszwzYzxnO',
1165
+ 'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
1166
+ 'yxjYyxK',
1167
+ 'l3vWBg9Hza',
1168
+ 'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
1169
+ 'l2fWAs9HDhrHy2HTzw50CY8',
1170
+ 'zgfLBw9UqxbPs2v5',
1171
+ 'l2HPC3rVCNK/',
1172
+ 'mti4nty0C1zKywno',
1173
+ 'BgLZDf90yxnRCW',
1174
+ 'ChjVDg9JB2W',
1175
+ 'DgHYzwfK',
330
1176
  'vgfZAYa',
331
- 'y2HHBM5LBhm',
332
- 'z2v0rNvSBfLLyxi',
333
- 'yxr0ywnOBwvUDf9Pza',
334
- 'zw50zxiTAgfUzg9MzIbMywLSzwq',
335
- 'D29YA2vYrgLZCg9ZAxrPB24',
336
- 'CMvZDwX0CW',
337
- 'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
338
- 'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
339
- 'CMvHzf9OAxn0B3j5',
340
- 'BwvZC2fNzv9Pzhm',
341
- 'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
1177
+ 'Dw5JBgfPBv90yxnRigzHAwXLza',
1178
+ 'C2vUzgvYtMfTzq',
1179
+ 'BwvZC2fNzq',
1180
+ 'yxjYyxLcDwzMzxi',
1181
+ 'DxnLCG',
1182
+ 'y2XHAw1FDgfZA3m',
1183
+ 'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
1184
+ 'v29YA2vYia',
1185
+ 'BMv4Den1CNnVCG',
1186
+ 'DhLWzq',
1187
+ 'C2vYDMvYtMfTzq',
1188
+ 'DxbKyxrLx3rHC2TFC3rHDhvZ',
1189
+ 'z2v0rgf0zq',
1190
+ 'C3rHDhvZ',
1191
+ 'D29YA2vYsgfUzg9MzJ10CNvL',
1192
+ 'C2vX',
1193
+ 'Dgv4Dc9WBgfPBG',
1194
+ 'C29YDa',
1195
+ 'nM56rKzoua',
342
1196
  'BwvKAxvT',
343
- 'CMvHzeHPC3rVCNK',
344
- 'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
345
- 's0iPcKf0DgfJAg1LBNqGsuq6ia',
346
- 'Aw1Hz2uVC3zNk3HTBa',
347
- 'y29UDgvUDc10ExbL',
348
- 'igrVBMuP',
1197
+ 'iYmJienOyw5UzwXZ',
1198
+ 'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
1199
+ 'ignSywLTzwq',
1200
+ 'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
1201
+ 'Dg9ju09tDhjPBMC',
1202
+ 'zg06',
1203
+ 'CgfYC2u',
1204
+ 'D29YA2vYCW',
1205
+ 'DgfZA19Pza',
1206
+ 'DxbKyxrLvgfZA1n0yxr1CW',
1207
+ 'ywDNCMvNyxrLvhLWzq',
349
1208
  'C2vYDMvY',
350
- 'yxnPzgu',
351
- 't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
352
- 'Aw5FChjVz3jLC3m',
353
- 'y3jLyxrLzef0',
354
- 'zw50CMLLCW',
355
- 'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
356
- 'CgfYDgLJAxbHBNrjza',
357
- 'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
358
- 'AxngAw5PDgu',
359
- 'ktSGz290ignOyw5UzwW9',
1209
+ 'AxngAwXL',
1210
+ 'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
1211
+ 'yxv0BZO',
1212
+ 'BwfW',
1213
+ 'odm1nJHlBw9hr0m',
1214
+ 'yxr0ywnOBwvUDhm',
1215
+ 'D29YA2vYrgLZCg9ZAxrPB24',
1216
+ 'Bwv0yq',
1217
+ 'iYmGu2vYDMvYoIa',
1218
+ 'DxbSB2fKuhjLCgfYzxi',
1219
+ 'BwvZC2fNzuLK',
1220
+ 'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
1221
+ 'zg0T',
1222
+ 'yxbWBgLJyxrPB24VANnVBG',
1223
+ 'Bwf0y2Hoyw1L',
1224
+ 'BgLZDfrHC2TZ',
1225
+ 'C3rYAw5N',
1226
+ 'CMvWBgfJzq',
1227
+ 'v29YA2vYici',
1228
+ 'lMrZy29Yza',
1229
+ 'D29YA2vY',
1230
+ 'ywz0zxi',
1231
+ 'ywrKrxzLBNrmAxn0zw5LCG',
1232
+ 'Aw1Hz2uVCg5N',
1233
+ 'nda4wgDvDM12',
1234
+ 'z2v0rNvSBfLLyxi',
1235
+ 'D29YA19RzxK',
1236
+ 'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
1237
+ 'D29YA2vYrgLZCg9ZAxrPB249',
1238
+ 'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
1239
+ 'Dgv4Dc9TyxjRzg93BG',
360
1240
  'BwLU',
1241
+ 'BM93',
1242
+ 'D29YA2vYtw9KzuvUywjSzwq',
1243
+ 'DgvZDa',
1244
+ 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
1245
+ 'r0vu',
361
1246
  'zgfLBw9Utg9JywXvCMW',
362
- 'lcbJB250zw50lxr5Cgu9',
363
- 'D29YA2vYigHHBMrVzMyGzMfPBgvK',
364
- 'mLn5AKf5yW',
365
- 'ywjVCNrLza',
366
- 'zgfLBw9UqxbPs2v5',
367
- 'DgHYzwfKvgfYz2v0pq',
368
- 'ntu0mtyXohLxrhHkua',
369
- 'l3nLBMq',
370
- 'zNjVBq',
371
- 'C2vZC2LVBKLK',
372
- 'BgLZDfrHC2TZ',
373
- 'Dg9KBW',
374
- 'tM8GBMv3ig1LC3nHz2vZlG',
375
- 'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
376
- 'zMLSzw5HBwu',
377
- 'zgvZy3jPChrPB24',
378
- 'BwvTyMvYCW',
379
- 'CMvJB3jK',
380
- 'yxbWBgLJyxrPB24VANnVBG',
381
- 'Dgv4Da',
382
- 'l3DVCMTLCNmVCgfYAW',
1247
+ 'AxngAw5PDgu',
1248
+ 'ihn0yxLZigLUig1HAw4GC2vZC2LVBIaOzxHLy3v0Aw9Utw9Kzt1TywLUktSGCMvTywLUigHLCMuSihjLywqGDgHLihjLzMvYzw5JzwqGCgXHBI9KB2n1BwvUDcWGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYbPzIb0Agf0igLZihrOzsbPBNrLBNqU',
1249
+ 'igfZC2LNBMvLpua',
1250
+ 'y29UDgvUDa',
1251
+ 'DgfZA0LK',
1252
+ 'DgfZA3m',
1253
+ 'zgf0yq',
1254
+ 'ig1LC3nHz2u9',
1255
+ 'C2f2zq',
1256
+ 'yxr0ywnOBwvUDenHy2HL',
1257
+ 'yxnZAwDUzwvoyw1L',
1258
+ 'kgXLz2fJEsK',
1259
+ 'Aw1Hz2uVANbLzW',
1260
+ 'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
1261
+ 'zgLNzxn0',
1262
+ 'yxnPzgu',
1263
+ 'BNvTyMvY',
1264
+ 'Bwf4',
1265
+ 'y2XHAw1FDgfZA3mGzMfPBgvK',
1266
+ 'zMfSC2u',
1267
+ 'rMLSzsbUB3qGzM91BMq6ia',
1268
+ 'y2f0y2G',
1269
+ 'BgLTAxq',
1270
+ 'xsba',
1271
+ 'mtHvyunwrMK',
1272
+ 'mteWnZC4Aw5jyNnY',
1273
+ 'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
1274
+ 'm25OuMHosa',
1275
+ 'BwfPBG',
1276
+ 'Aw1Hz2uVz2LM',
1277
+ 'Dw5JBgfPBv90yxnR',
383
1278
  'D29YA2vYsgfUzg9MzG',
384
- 'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
385
- 'DhjPBq',
386
- 'C3rYAw5N',
387
- 'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
1279
+ 'BgLZDf90yxnRCYbMywLSzwq',
1280
+ 'ywDLBNrZ',
1281
+ 'C3vIDgfZA19UDw1Izxi',
1282
+ 'ig1ZzZ0',
1283
+ 'iJOGC3rHDhvZpq',
1284
+ 'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
1285
+ 'yMfZzty0',
1286
+ 'zMLSzv9WyxrO',
1287
+ 'y2XHAw0GzMfPBgvK',
1288
+ 'y3vYC29Y',
1289
+ 'z2v0x3DVCMTLCL9ZDgf0Dxm',
1290
+ 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
1291
+ 'yxr0ywnOBwvUDf9Pzhm',
1292
+ 'Bgf0zxn0u2vX',
1293
+ 'C2vUzgvYugfYDgLJAxbHBNrjza',
1294
+ 'nZqZndG0B1Pqzw1d',
1295
+ 'DgfZA051BwjLCG',
1296
+ 'CgfYDgLJAxbHBNq',
1297
+ 'CMvJB3jK',
1298
+ 'ywDNCMvNyxrLswq',
1299
+ 'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
1300
+ 'zxHLy3v0Aw9Utw9Kzt0',
1301
+ 'y2HHBM5LBhm',
1302
+ 'vgHYzwfKihrHCMDLDdOG',
1303
+ 'BwvZC2fNzxm',
1304
+ 'DgfZAY0',
1305
+ 'rg93BMXVywrLzcb0BZOG',
1306
+ 'D29YA2vYtw9Kzq',
1307
+ 'ywz0zxjtzxe',
1308
+ 'l3rHC2TZpW',
1309
+ 'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
1310
+ 'Dg9KBW',
1311
+ 'mte1v3HZqvzq',
1312
+ 'ChvZAa',
1313
+ 'Cgf5Bg9HzePZB24',
1314
+ 'CMvHzeHPC3rVCNK',
1315
+ 'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
1316
+ 'lsaJ',
1317
+ 'C3bSAxq',
1318
+ 'DgfYz2v0zwq',
1319
+ 'D29YA2vYu2vZC2LVBKLK',
1320
+ 'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
388
1321
  'y2XHAw1uyxnRCW',
1322
+ 'ihrPBwu9',
1323
+ 'ywXS',
1324
+ 'AxnjBNrLz2vY',
1325
+ 'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4GqxnZAwDUzwuGCNvSzxm6igfUihvUy2XHAw1Lzcb0yxnRl3n1yNrHC2SGAxmGyxv0B21HDgLJywXSEsbJBgfPBwvKigj5ihLVDsbPBIb0AguGC2fTzsbJywXSicHJywXSzxiGyMvJB21LCYb0AguGyxnZAwDUzwuPoYbPzIb0AguGDgfZAYbPCYbHBhjLywr5ignSywLTzwqGyNKGyw5VDgHLCIbWyxj0AwnPCgfUDcWGDgHLihnLCNzLCIbYzxr1CM5ZidqWmYb3AxrOihrOzsbJDxjYzw50ignSywLTzxiNCYbUyw1LigfUzcb5B3uGBxvZDcbot1qGCMv0CNKG4OcuigXLDcb0AguGyxnZAwDUzwuGzMLUAxnOig9YigfZAYb0AgvTihrVihjLBgvHC2uGDgHLihrHC2SUifDOzw4GBw92Aw5NihDVCMSGDg8GAw5FCMv2Awv3lcbJAgvJAYb5B3vYig1LBw9YEsbVCIbJAgfUBMvSihj1BgvZigfUzcbZzw5KigeGCMv2Awv3zxiGBwvUDgLVBIb5B3vYC2vSzIb3AgvUigfWChjVChjPyxrLlG',
389
1326
  'Aw5FCMv2Awv3',
1327
+ 'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
1328
+ 'iokaLca',
1329
+ 'igTPBMq9',
1330
+ 'AM9PBG',
1331
+ 'C3rVCe1HAw49Dhj1zq',
1332
+ 'zgvZy3jPChrPB24',
1333
+ 'zMLUza',
1334
+ 'DgHYzwfKtNvTyMvY',
1335
+ 'y2HLy2TFBwvZC2fNzxm',
390
1336
  'C3rHCNrZv2L0Aa',
391
- 'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
392
- 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
393
- 'twLZC2LUzYaTlwfNzw50lwLK',
394
- 'ls1ZzxnZAw9UlwLK',
395
- 'l3DVCMTLCNmVzxnJywXHDgu',
1337
+ 'DgfZAW',
1338
+ 'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
1339
+ 'zg9Uzq',
1340
+ 'zMLSzw5HBwu',
1341
+ 'vgfZAZOG',
1342
+ 'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
1343
+ 'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
1344
+ 'zw50CMLLCW',
1345
+ 'y2HHBM5LBfrHCMDLDa',
1346
+ 'y2HHDa',
1347
+ 'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
1348
+ 'DgfYz2v0',
1349
+ 'l3nLBMq',
1350
+ 'iYmJieH1BwfUCW',
1351
+ 'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxHLy3v0Aw9Utw9Kzt1TywLUcLn0yxKGAw4GBwfPBIbZzxnZAw9UoIbYzwfKihrOzsbYzwzLCMvUy2vKihbSyw4Vzg9JDw1LBNqGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYaOB3iGB3rOzxj3AxnLigfKDMfUy2uGDgHLihrHC2SGAw4GBwfPBIb3AxrOB3v0igHHBMrPBMCGB2zMihrVigeGD29YA2vYks4',
1352
+ 'igf0DgfJAg1LBNq',
1353
+ 'C2HHmJu2',
1354
+ 'D29YA2vYsgfUzg9MzKvYCM9Y',
1355
+ 'y2HHBM5LBa',
1356
+ 'y3jLyxrLvgfZA3m',
1357
+ 'mZu3u1P6zgvN',
1358
+ 'BgLZDfnLCNzLCG',
1359
+ 'BwvTyMvY',
396
1360
  'y29UBMvJDa',
397
- 'yMfZzw5HBwu',
398
- 'zgf0yq',
1361
+ 'zg93BMXVywrbDhrHy2HTzw50',
1362
+ 'y3jLyxrLzef0',
399
1363
  'Dg9VBa',
400
- 'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
401
- 'AgvHzgvYCW',
402
- 'Bwf4',
403
- 'AhvTyw4',
404
- 'rMLSzsbUB3qGzM91BMq6ia',
405
- 'D2fPDgLUz19PBNb1Da',
406
- 'AxngAwXL',
407
- 'CMvHC29U',
408
- 'AxnbyNnVBhv0zq',
1364
+ 'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
1365
+ 'Aw5JBhvKzxm',
1366
+ 'C2v0',
1367
+ 'Bg93',
1368
+ 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
1369
+ 'uefuq0G',
1370
+ 'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
1371
+ 'Aw5PDgLHBeXHC3rtzwvUu2vX',
1372
+ 'igzHAwXLzdOG',
1373
+ 'z2v0vgLTzq',
1374
+ 'C2XPy2u',
1375
+ 'EM9K',
1376
+ 'DgL0Bgu',
1377
+ 'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
1378
+ 'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
1379
+ 'zMLUzenHy2HLzfbHDgG',
1380
+ 'Dg9tDhjPBMC',
1381
+ 'y2HHBM5LBe5HBwu',
1382
+ 'Bwf4rMLSzvnPEMvcExrLCW',
1383
+ 'D3m6',
1384
+ 'yMvMB3jL',
1385
+ 'zxnJywXHDgvFDg9FBwfPBG',
409
1386
  'yxr0ywnOBwvUDeLK',
410
- 'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
411
- 'zMfSC2u',
412
- 'z2v0',
413
- 'mtyXmZy3mZzfzg1zAwu',
414
- 'ihn0yxr1CZ0',
415
- 'zxzLBNrtzxe',
416
- 'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
417
- 'yM9KEvrLEhq',
1387
+ 'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
418
1388
  'DxbSB2fKx2zPBgu',
419
- 'ls1KywvTB24TyxbPlwTLEq',
420
- 'DMLZAwjPBgL0Eq',
421
- 'l3jLy2vPDMu/',
422
- 'zMLUza',
423
- 'BM93',
424
- 'CM9VDe1LC3nHz2vjza',
425
- 'sfruuca',
426
- 'CgfYA193B3jRzxi',
427
- 'C3rHDhvZ'
1389
+ 'CMvZB2X2zvrHCMDLDa',
1390
+ 'CMvHzf9OAxn0B3j5',
1391
+ 'ihn0yxr1CZ0',
1392
+ 'yMfZzw5HBwu',
1393
+ 'DgHYzwfKx3rHCMDLDa',
1394
+ 'Aw5FChjVz3jLC3m',
1395
+ 'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
1396
+ 'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
1397
+ 'zxHLy3v0Aw9Utw9Kzq',
1398
+ 'igLUia',
1399
+ 'y29UDgvUDfr5Cgu',
1400
+ 'zw51Bq',
1401
+ 'y2HHBM5LBeLK',
1402
+ 'CMvZCg9UC2u',
1403
+ 'yxr0ywnOBwvUDf9Pza',
1404
+ 'l3nLCNzLCG',
1405
+ 'DgHYzwfKvgfYz2v0pq',
1406
+ 'C2vUze1LC3nHz2u',
1407
+ 'B2jQzwn0',
1408
+ 'yxr0ywnOBwvUDenHy2HLrgLY',
1409
+ 'l3rHC2TZl2nSywLT',
1410
+ 'zw50zxiTAgfUzg9MzIbMywLSzwq',
1411
+ 'cKLMihLVDxiGBwvTB3j5ig9YignOyw5UzwWGCNvSzxmGCMvXDwLYzsbYzxzPzxCSihnLBMqGysbTzxnZywDLig1LBNrPB25PBMCGDgHLihjLDMLLD2vYigjLzM9YzsbWyxjRAw5NlG',
1412
+ 'ywDLBNq',
1413
+ 'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
1414
+ 'CxvLDwvK',
1415
+ 'DgHYzwfKu2HVCNrjza'
428
1416
  ];
429
- _0x3cbc = function () {
430
- return _0x269a79;
431
- };
432
- return _0x3cbc();
433
- }
434
- function _0x7c22(_0x48463b, _0x500da3) {
435
- _0x48463b = _0x48463b - 0xfb;
436
- const _0x3cbc69 = _0x3cbc();
437
- let _0x7c2252 = _0x3cbc69[_0x48463b];
438
- if (_0x7c22['erpQqS'] === undefined) {
439
- var _0xbe0f07 = function (_0x59c040) {
440
- const _0x5e072a = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
441
- let _0x479ed7 = '', _0xf9a011 = '';
442
- for (let _0x479b74 = 0x0, _0x2c958a, _0x302936, _0x174c77 = 0x0; _0x302936 = _0x59c040['charAt'](_0x174c77++); ~_0x302936 && (_0x2c958a = _0x479b74 % 0x4 ? _0x2c958a * 0x40 + _0x302936 : _0x302936, _0x479b74++ % 0x4) ? _0x479ed7 += String['fromCharCode'](0xff & _0x2c958a >> (-0x2 * _0x479b74 & 0x6)) : 0x0) {
443
- _0x302936 = _0x5e072a['indexOf'](_0x302936);
444
- }
445
- for (let _0x477888 = 0x0, _0x2fea8d = _0x479ed7['length']; _0x477888 < _0x2fea8d; _0x477888++) {
446
- _0xf9a011 += '%' + ('00' + _0x479ed7['charCodeAt'](_0x477888)['toString'](0x10))['slice'](-0x2);
447
- }
448
- return decodeURIComponent(_0xf9a011);
449
- };
450
- _0x7c22['qZRNhh'] = _0xbe0f07, _0x7c22['YyOgcl'] = {}, _0x7c22['erpQqS'] = !![];
451
- }
452
- const _0x1ad284 = _0x3cbc69[0x0], _0x43bde2 = _0x48463b + _0x1ad284, _0x4f063a = _0x7c22['YyOgcl'][_0x43bde2];
453
- return !_0x4f063a ? (_0x7c2252 = _0x7c22['qZRNhh'](_0x7c2252), _0x7c22['YyOgcl'][_0x43bde2] = _0x7c2252) : _0x7c2252 = _0x4f063a, _0x7c2252;
454
- }
455
- var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
456
- '.csv': _0x548baf(0x27a),
457
- '.gif': _0x548baf(0x281),
458
- '.jpeg': _0x548baf(0x15b),
459
- '.jpg': _0x548baf(0x15b),
460
- '.json': _0x548baf(0x23a),
461
- '.md': _0x548baf(0x177),
462
- '.pdf': 'application/pdf',
463
- '.png': 'image/png',
464
- '.svg': _0x548baf(0x218),
465
- '.txt': _0x548baf(0x1a9),
466
- '.webp': 'image/webp',
467
- '.xml': 'application/xml',
468
- '.zip': 'application/zip'
469
- };
470
- function guessContentType(_0xf9a011) {
471
- const _0x570feb = {
472
- _0x43e6e8: 0x1f4,
473
- _0x56777b: 0x273
474
- }, _0x53d37f = _0x548baf;
475
- return MIME_BY_EXTENSION[_0x479ed7[_0x53d37f(0x202)](_0xf9a011)[_0x53d37f(_0x570feb._0x43e6e8)]()] ?? _0x53d37f(_0x570feb._0x56777b);
476
- }
477
- function safeFilename(_0x479b74) {
478
- const _0x851d43 = { _0x20cedd: 0x144 }, _0x516da2 = _0x548baf;
479
- return _0x479b74[_0x516da2(_0x851d43._0x20cedd)](/[\\/]/g, '-');
480
- }
481
- function extensionFor(_0x2c958a) {
482
- const _0x5b5704 = { _0xe0bc75: 0x1e1 }, _0x30a0ae = _0x548baf, _0x302936 = Object[_0x30a0ae(0x220)](MIME_BY_EXTENSION)['find'](([, _0x174c77]) => _0x174c77 === _0x2c958a);
483
- return _0x302936?.[0x0] ?? _0x30a0ae(_0x5b5704._0xe0bc75);
484
- }
485
- async function prepareUploadFile(_0x477888, _0x2fea8d = {}) {
486
- const _0x594518 = {
487
- _0x316e41: 0x256,
488
- _0x3d1d9e: 0x1fa,
489
- _0x16c6fd: 0x1f1,
490
- _0x4f2cd2: 0x1d9,
491
- _0x18e57c: 0x24b,
492
- _0x4d6da9: 0x145
493
- }, _0x9212e7 = _0x548baf;
494
- if (!_0x479ed7[_0x9212e7(_0x594518._0x316e41)](_0x477888))
495
- throw new Error('file_path\x20must\x20be\x20an\x20absolute\x20path');
496
- const _0x15b98d = await stat(_0x477888)[_0x9212e7(_0x594518._0x3d1d9e)](() => null);
497
- if (!_0x15b98d || !_0x15b98d[_0x9212e7(0x254)]())
498
- throw new Error(_0x9212e7(0x252) + _0x477888);
499
- const _0x44ab29 = _0x2fea8d[_0x9212e7(_0x594518._0x16c6fd)] ?? DEFAULT_MAX_FILE_SIZE;
500
- if (_0x15b98d[_0x9212e7(0x1d9)] > _0x44ab29)
501
- throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x15b98d[_0x9212e7(_0x594518._0x4f2cd2)]);
502
- const _0x111b29 = await readFile(_0x477888), _0x469f4b = _0x479ed7[_0x9212e7(_0x594518._0x18e57c)](_0x477888);
503
- return {
504
- 'contentBase64': _0x111b29[_0x9212e7(_0x594518._0x4d6da9)]('base64'),
505
- 'contentType': guessContentType(_0x469f4b),
506
- 'filename': _0x469f4b,
507
- 'sizeBytes': _0x15b98d['size']
508
- };
509
- }
510
- function createAttachmentCache(_0x35d32e = {}) {
511
- const _0x1c25ea = {
512
- _0x39ba40: 0x1a6,
513
- _0x1d6473: 0x196
514
- }, _0x965a1 = {
515
- _0x103b51: 0x23f,
516
- _0x1eeb74: 0x27f,
517
- _0xdd55a: 0x257
518
- }, _0x2ae39 = _0x548baf, _0x49cf8a = _0x35d32e[_0x2ae39(0x1d8)] ?? _0x479ed7[_0x2ae39(_0x1c25ea._0x39ba40)](homedir(), _0x2ae39(0x151), _0x2ae39(_0x1c25ea._0x1d6473));
519
- return {
520
- 'cacheDir': _0x49cf8a,
521
- async 'findCachedPath'(_0x17d451) {
522
- const _0x350a66 = _0x2ae39;
523
- await mkdir(_0x49cf8a, { 'recursive': !![] });
524
- const _0x318a06 = await readdir(_0x49cf8a), _0x435a73 = _0x318a06[_0x350a66(0x264)](_0x9cf950 => _0x9cf950['startsWith'](_0x17d451 + '-') || _0x9cf950['startsWith'](_0x17d451));
525
- return _0x435a73 ? _0x479ed7[_0x350a66(0x1a6)](_0x49cf8a, _0x435a73) : null;
526
- },
527
- async 'save'(_0x4a9efb) {
528
- const _0x2e09f4 = _0x2ae39;
529
- await mkdir(_0x49cf8a, { 'recursive': !![] });
530
- const _0xa66b9d = _0x4a9efb[_0x2e09f4(0x27f)]?.[_0x2e09f4(_0x965a1._0x103b51)]() ? safeFilename(_0x4a9efb[_0x2e09f4(_0x965a1._0x1eeb74)]) : '' + _0x4a9efb[_0x2e09f4(_0x965a1._0xdd55a)] + extensionFor(_0x4a9efb[_0x2e09f4(0x113)]), _0x5a8b83 = _0x479ed7[_0x2e09f4(0x1a6)](_0x49cf8a, _0x4a9efb['attachmentId'] + '-' + _0xa66b9d);
531
- return await writeFile(_0x5a8b83, _0x4a9efb['data']), _0x5a8b83;
532
- }
533
- };
534
- }
535
- import {
536
- createHash,
537
- randomUUID
538
- } from 'node:crypto';
539
- var UNSUPPORTED_TARGET_MESSAGE = 'Unsupported\x20target\x20format.\x20Supported\x20values\x20are\x20#channel,\x20dm:dm-<name>,\x20and\x20their\x20thread\x20targets.';
540
- function ensureSegment(_0x4a9618) {
541
- const _0x5259ed = _0x548baf, _0x476e3b = _0x4a9618[_0x5259ed(0x23f)]();
542
- if (!_0x476e3b || _0x476e3b[_0x5259ed(0x1c1)](':'))
543
- throw new Error(UNSUPPORTED_TARGET_MESSAGE);
544
- return _0x476e3b;
545
- }
546
- function parseThreadParts(_0x408837) {
547
- const _0x59857c = {
548
- _0x2fe967: 0x12b,
549
- _0x1e2c61: 0x1d4
550
- }, _0xe953e8 = _0x548baf, _0x35c131 = _0x408837[_0xe953e8(_0x59857c._0x2fe967)](':');
551
- if (_0x35c131['length'] < 0x1 || _0x35c131[_0xe953e8(_0x59857c._0x1e2c61)] > 0x2)
552
- throw new Error(UNSUPPORTED_TARGET_MESSAGE);
553
- return {
554
- 'channelName': ensureSegment(_0x35c131[0x0] ?? ''),
555
- 'threadShortId': _0x35c131[0x1] ? ensureSegment(_0x35c131[0x1]) : null
556
- };
557
- }
558
- function parseTarget(_0x2918b8) {
559
- const _0x5ea5be = {
560
- _0x53ec4b: 0x14a,
561
- _0x2428a3: 0x1b0,
562
- _0x1f146e: 0x244,
563
- _0x4f5e22: 0x244,
564
- _0x43e890: 0x130,
565
- _0x5e1d72: 0x130,
566
- _0x2a138b: 0x1b0
567
- }, _0x3d417e = _0x548baf, _0x2ed165 = _0x2918b8['trim']();
568
- if (!_0x2ed165)
569
- throw new Error(UNSUPPORTED_TARGET_MESSAGE);
570
- if (_0x2ed165['startsWith']('#')) {
571
- const _0x238a72 = parseThreadParts(_0x2ed165[_0x3d417e(_0x5ea5be._0x53ec4b)](0x1)), _0x21cebd = '#' + _0x238a72['channelName'];
572
- if (!_0x238a72['threadShortId'])
573
- return {
574
- 'channelName': _0x238a72[_0x3d417e(0x130)],
575
- 'channelTarget': _0x21cebd,
576
- 'kind': _0x3d417e(0x139),
577
- 'target': _0x21cebd
578
- };
579
- return {
580
- 'channelName': _0x238a72[_0x3d417e(0x130)],
581
- 'channelTarget': _0x21cebd,
582
- 'kind': _0x3d417e(0x187),
583
- 'target': _0x21cebd + ':' + _0x238a72['threadShortId'],
584
- 'threadShortId': _0x238a72[_0x3d417e(_0x5ea5be._0x2428a3)]
585
- };
586
- }
587
- if (_0x2ed165[_0x3d417e(_0x5ea5be._0x1f146e)](_0x3d417e(0x12d))) {
588
- const _0x167e86 = parseThreadParts(_0x2ed165[_0x3d417e(_0x5ea5be._0x53ec4b)](0x3));
589
- if (!_0x167e86['channelName'][_0x3d417e(_0x5ea5be._0x4f5e22)](_0x3d417e(0x150)))
590
- throw new Error(UNSUPPORTED_TARGET_MESSAGE);
591
- const _0x165812 = 'dm:' + _0x167e86[_0x3d417e(_0x5ea5be._0x43e890)];
592
- if (!_0x167e86['threadShortId'])
593
- return {
594
- 'channelName': _0x167e86[_0x3d417e(_0x5ea5be._0x5e1d72)],
595
- 'channelTarget': _0x165812,
596
- 'kind': _0x3d417e(0x139),
597
- 'target': _0x165812
598
- };
599
- return {
600
- 'channelName': _0x167e86[_0x3d417e(_0x5ea5be._0x43e890)],
601
- 'channelTarget': _0x165812,
602
- 'kind': _0x3d417e(0x187),
603
- 'target': _0x165812 + ':' + _0x167e86[_0x3d417e(_0x5ea5be._0x2a138b)],
604
- 'threadShortId': _0x167e86['threadShortId']
605
- };
606
- }
607
- throw new Error(UNSUPPORTED_TARGET_MESSAGE);
608
- }
609
- function asErrorMessage(_0x170cd7, _0x33edb7) {
610
- const _0x2d2239 = { _0x2fe3e7: 0x23f }, _0x31ac96 = _0x548baf;
611
- if (typeof _0x170cd7 === 'string' && _0x170cd7[_0x31ac96(_0x2d2239._0x2fe3e7)]())
612
- return _0x170cd7;
613
- return _0x33edb7;
614
- }
615
- function asRecord(_0xfed67) {
616
- const _0x6cc1c5 = { _0x1e251e: 0x1f9 }, _0x496f0f = _0x548baf;
617
- return typeof _0xfed67 === _0x496f0f(_0x6cc1c5._0x1e251e) && _0xfed67 !== null ? _0xfed67 : {};
618
- }
619
- function stableStringify(_0x1b59e1) {
620
- const _0x3c854e = {
621
- _0x2f233f: 0x1f9,
622
- _0x298c43: 0xfb,
623
- _0x2d6440: 0x280,
624
- _0x479170: 0x110,
625
- _0x1eb980: 0x1a6
626
- }, _0x216835 = _0x548baf;
627
- if (_0x1b59e1 === null || typeof _0x1b59e1 !== _0x216835(_0x3c854e._0x2f233f))
628
- return JSON['stringify'](_0x1b59e1);
629
- if (Array[_0x216835(_0x3c854e._0x298c43)](_0x1b59e1))
630
- return '[' + _0x1b59e1[_0x216835(_0x3c854e._0x2d6440)](_0x1d2d5b => stableStringify(_0x1d2d5b))[_0x216835(0x1a6)](',') + ']';
631
- const _0x222a56 = Object[_0x216835(0x220)](_0x1b59e1)[_0x216835(0x19d)](([, _0x45d940]) => _0x45d940 !== void 0x0)[_0x216835(_0x3c854e._0x479170)](([_0x22832a], [_0x263020]) => _0x22832a[_0x216835(0x107)](_0x263020))['map'](([_0x44556e, _0x2cb84f]) => JSON[_0x216835(0x14f)](_0x44556e) + ':' + stableStringify(_0x2cb84f));
632
- return '{' + _0x222a56[_0x216835(_0x3c854e._0x1eb980)](',') + '}';
633
- }
634
- function createHeaders(_0x4f3f60) {
635
- const _0x14fa90 = _0x548baf;
636
- return {
637
- 'Content-Type': _0x14fa90(0x23a),
638
- 'x-daemon-api-key': _0x4f3f60
639
- };
640
- }
641
- function toHttpBaseUrl(_0x2b88d2) {
642
- const _0x85c06 = { _0x2fa5a0: 0x161 }, _0x28a331 = _0x548baf, _0x247c15 = new URL(_0x2b88d2);
643
- if (_0x247c15['protocol'] === 'ws:')
644
- _0x247c15[_0x28a331(_0x85c06._0x2fa5a0)] = _0x28a331(0x17b);
645
- else
646
- _0x247c15['protocol'] === 'wss:' && (_0x247c15[_0x28a331(_0x85c06._0x2fa5a0)] = _0x28a331(0x101));
647
- return _0x247c15[_0x28a331(0x145)]()['replace'](/\/$/, '');
648
- }
649
- function isMentionBoundary(_0x3ad6f8) {
650
- return !_0x3ad6f8 || /\s|[([{'",。!?、:;]/['test'](_0x3ad6f8);
651
- }
652
- function isMentionTerminal(_0x2334bf) {
653
- const _0x37bcdd = _0x548baf;
654
- return !_0x2334bf || /\s|[)\]}'",。!?、:;,.!?]/[_0x37bcdd(0x16c)](_0x2334bf);
655
- }
656
- function buildMatchableEntries(_0x8fc7c9) {
657
- const _0x236d96 = {
658
- _0x36c14a: 0x1e4,
659
- _0x2f3562: 0x1c0,
660
- _0x2a5cc2: 0x204
661
- }, _0x4201fc = _0x548baf, _0x4eddc2 = [];
662
- for (const _0x50fd51 of [
663
- ..._0x8fc7c9[_0x4201fc(_0x236d96._0x36c14a)],
664
- ..._0x8fc7c9[_0x4201fc(_0x236d96._0x2f3562)]
665
- ]) {
666
- _0x4eddc2[_0x4201fc(0x118)]({
667
- 'matchName': _0x50fd51[_0x4201fc(0x1b8)],
668
- 'matchNameLower': _0x50fd51['name']['toLocaleLowerCase'](),
669
- 'participantId': _0x50fd51['id']
670
- }), _0x50fd51['id'] !== _0x50fd51[_0x4201fc(0x1b8)] && _0x4eddc2[_0x4201fc(0x118)]({
671
- 'matchName': _0x50fd51['id'],
672
- 'matchNameLower': _0x50fd51['id'][_0x4201fc(_0x236d96._0x2a5cc2)](),
673
- 'participantId': _0x50fd51['id']
674
- });
675
- }
676
- return _0x4eddc2;
677
- }
678
- function extractMentionedParticipantIds(_0x3d5900, _0x20fdd9) {
679
- const _0x2fb342 = {
680
- _0x17080d: 0x14a,
681
- _0x543231: 0x222,
682
- _0x3be6b3: 0x191,
683
- _0x2bacef: 0x1d4
684
- }, _0x379842 = {
685
- _0x502f3d: 0x244,
686
- _0x4d2296: 0x140,
687
- _0x5c5003: 0x191
688
- }, _0x20d2f9 = _0x548baf, _0x27562e = buildMatchableEntries(_0x20fdd9)['sort']((_0x57d69e, _0x4bd8ff) => _0x4bd8ff[_0x20d2f9(0x191)][_0x20d2f9(0x1d4)] - _0x57d69e[_0x20d2f9(0x191)][_0x20d2f9(0x1d4)]), _0x748dfa = [], _0x259981 = new Set();
689
- for (let _0x492edb = 0x0; _0x492edb < _0x3d5900[_0x20d2f9(0x1d4)]; _0x492edb += 0x1) {
690
- if (_0x3d5900[_0x492edb] !== '@' || !isMentionBoundary(_0x3d5900[_0x492edb - 0x1]))
691
- continue;
692
- const _0x3ed473 = _0x3d5900[_0x20d2f9(_0x2fb342._0x17080d)](_0x492edb + 0x1), _0x3b6757 = _0x3ed473['toLocaleLowerCase'](), _0x4fbee4 = _0x27562e[_0x20d2f9(0x264)](_0x297607 => {
693
- const _0x12e602 = _0x20d2f9;
694
- if (!_0x3b6757[_0x12e602(_0x379842._0x502f3d)](_0x297607[_0x12e602(_0x379842._0x4d2296)]))
695
- return ![];
696
- return isMentionTerminal(_0x3ed473[_0x297607[_0x12e602(_0x379842._0x5c5003)]['length']]);
697
- });
698
- if (!_0x4fbee4 || _0x259981[_0x20d2f9(0x27e)](_0x4fbee4['participantId']))
699
- continue;
700
- _0x259981['add'](_0x4fbee4[_0x20d2f9(0x222)]), _0x748dfa['push'](_0x4fbee4[_0x20d2f9(_0x2fb342._0x543231)]), _0x492edb += _0x4fbee4[_0x20d2f9(_0x2fb342._0x3be6b3)][_0x20d2f9(_0x2fb342._0x2bacef)];
701
- }
702
- return _0x748dfa;
703
- }
704
- var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
705
- function anySignal(..._0x2d00f3) {
706
- const _0x3d81d2 = {
707
- _0xe7dbc6: 0x22b,
708
- _0x4e1a1c: 0x112,
709
- _0xdd0a5e: 0x1d3,
710
- _0x5a05bb: 0x112
711
- }, _0x1684db = _0x548baf, _0x4dff42 = new AbortController();
712
- for (const _0x3873fa of _0x2d00f3) {
713
- if (_0x3873fa[_0x1684db(_0x3d81d2._0xe7dbc6)])
714
- return _0x4dff42[_0x1684db(_0x3d81d2._0x4e1a1c)](_0x3873fa[_0x1684db(0x255)]), _0x4dff42[_0x1684db(_0x3d81d2._0xdd0a5e)];
715
- _0x3873fa[_0x1684db(0x206)](_0x1684db(_0x3d81d2._0x5a05bb), () => _0x4dff42['abort'](_0x3873fa[_0x1684db(0x255)]), {
716
- 'once': !![],
717
- 'signal': _0x4dff42[_0x1684db(0x1d3)]
718
- });
719
- }
720
- return _0x4dff42[_0x1684db(0x1d3)];
721
- }
722
- function createInternalAgentClient(_0x4fb4d6) {
723
- const _0x289c92 = {
724
- _0x514e1c: 0x168,
725
- _0x5652a2: 0x203,
726
- _0x1c9fef: 0x227,
727
- _0x31cc45: 0x23f,
728
- _0x527188: 0x231,
729
- _0x61a784: 0xfe,
730
- _0x427af4: 0x22c,
731
- _0x33fc6d: 0x127
732
- }, _0x2b0a59 = {
733
- _0x3cb7d9: 0x145,
734
- _0x1f7ad4: 0x1e5,
735
- _0xa6e0f4: 0x24c,
736
- _0x599ffa: 0x1d4,
737
- _0x573005: 0x11d,
738
- _0x55ce31: 0x250,
739
- _0x2c3a15: 0x11d,
740
- _0x3559d1: 0x209,
741
- _0x3788b9: 0x205,
742
- _0x140d59: 0x240,
743
- _0x173020: 0x1ef,
744
- _0x366af4: 0x266,
745
- _0x4e69ed: 0x1d5,
746
- _0x31a130: 0x266,
747
- _0x5aa3d9: 0x220,
748
- _0x364bb8: 0x26e,
749
- _0x242b73: 0x184,
750
- _0x328b08: 0x198,
751
- _0x27c0cc: 0x282,
752
- _0x389c68: 0x280,
753
- _0x56b677: 0x118,
754
- _0x5d6aa3: 0x196,
755
- _0x43e319: 0x240,
756
- _0x5efffd: 0x240,
757
- _0x48fdd3: 0x109,
758
- _0xd09ea1: 0x172
759
- }, _0x3a1d25 = { _0x53b64e: 0x1ef }, _0x405421 = {
760
- _0x5481ad: 0x139,
761
- _0x4ea879: 0x171,
762
- _0x566924: 0x1c8
763
- }, _0x1038d2 = {
764
- _0x20b8ab: 0x198,
765
- _0x4be780: 0x1b5,
766
- _0x5a45ef: 0x263,
767
- _0x1d3acd: 0x203
768
- }, _0x21d68f = {
769
- _0x2a011f: 0x1a7,
770
- _0x595bbb: 0x158,
771
- _0x5e1562: 0x272,
772
- _0x126b97: 0x1d3,
773
- _0x250000: 0x269,
774
- _0x2272c0: 0x25a,
775
- _0x2eb11f: 0x219,
776
- _0x3d767a: 0x166
777
- }, _0x11c2b5 = {
778
- _0x5911a1: 0x1c8,
779
- _0x5dee79: 0x1aa,
780
- _0x457e72: 0x1b5,
781
- _0x4d3b23: 0x14f,
782
- _0x3d4304: 0x190,
783
- _0x599b88: 0x236,
784
- _0x5e8709: 0x24c
785
- }, _0x196c20 = {
786
- _0x141381: 0x1b5,
787
- _0x530642: 0x235,
788
- _0x28ac1b: 0x14f
789
- }, _0x534b3e = {
790
- _0xf885d1: 0x1aa,
791
- _0x428dda: 0x1b5
792
- }, _0x19e506 = {
793
- _0x2472ce: 0x198,
794
- _0x3f0ee5: 0x269,
795
- _0x3af8d7: 0x269,
796
- _0x187346: 0x13f,
797
- _0x9e19b7: 0x145,
798
- _0xc4653d: 0x1a7
799
- }, _0x1ead70 = {
800
- _0x5bd7fb: 0x1a8,
801
- _0xc4fd48: 0x24c
802
- }, _0x53d82a = {
803
- _0x1f566a: 0x159,
804
- _0x48d3df: 0x14f,
805
- _0x1715f2: 0x275
806
- }, _0x17a358 = { _0x3cb6cf: 0x124 }, _0x30f93c = {
807
- _0x1ce058: 0x1ad,
808
- _0x3c07e6: 0x14f,
809
- _0x22dcc4: 0x1ef,
810
- _0x44a451: 0x1d4,
811
- _0x2ddfbe: 0x262
812
- }, _0x400e48 = {
813
- _0x1b79e8: 0x226,
814
- _0x540ee2: 0x1c8,
815
- _0xc06128: 0x198,
816
- _0x28793d: 0x1ef,
817
- _0x2b7501: 0x1ef,
818
- _0x59c432: 0x171,
819
- _0x51a43a: 0x198,
820
- _0x202d80: 0x1aa,
821
- _0x1a28d3: 0x1b5,
822
- _0xfd6704: 0x145,
823
- _0x403467: 0x1a7,
824
- _0x3a950e: 0x1dc,
825
- _0x52cdca: 0x1e0,
826
- _0x24aa79: 0x1c9
827
- }, _0x2a4f80 = { _0x4a8dc0: 0x195 }, _0x18473f = { _0x3af970: 0x195 }, _0x59565c = {
828
- _0x586faf: 0x1d5,
829
- _0x4e95ba: 0x125,
830
- _0x5db384: 0x266,
831
- _0x7a4430: 0x266,
832
- _0x2a8f3c: 0x1b0,
833
- _0xc659f3: 0x244,
834
- _0x12df49: 0x1b0
835
- }, _0x2a8ba5 = {
836
- _0x25ddf5: 0x1dc,
837
- _0x312d3b: 0x266,
838
- _0x4bf060: 0x1b0,
839
- _0x573f0c: 0x1c8,
840
- _0x1928ef: 0x1b0,
841
- _0x564594: 0x244
842
- }, _0x23c5ea = {
843
- _0x27ba9e: 0x1d5,
844
- _0x40fce4: 0x1dc,
845
- _0x4d33a9: 0x1dc,
846
- _0x4b6355: 0x1c8,
847
- _0x47d158: 0x1dc
848
- }, _0xb66e68 = {
849
- _0x1338ad: 0x1c0,
850
- _0x16bfcd: 0x1b8
851
- }, _0x407067 = { _0x24f5ca: 0x1e4 }, _0x3d5099 = { _0x1f382a: 0x1fa }, _0x5c15bb = {
852
- _0x83ddee: 0x19d,
853
- _0x22ec55: 0x280,
854
- _0x58f7f3: 0x24c,
855
- _0xf43f3: 0x24c,
856
- _0x5d5888: 0x21b
857
- }, _0x3b22c0 = {
858
- _0x1874b3: 0x1b5,
859
- _0xfe9391: 0x10d,
860
- _0x259d95: 0x24c,
861
- _0x32618c: 0x134,
862
- _0x3130d6: 0x1c8,
863
- _0x197bc3: 0x1d5
864
- }, _0x40821d = {
865
- _0x5e2432: 0x16b,
866
- _0x373bc7: 0x23a,
867
- _0x46a7cc: 0x1a8,
868
- _0x1cefee: 0x267,
869
- _0xc3cb99: 0x269
870
- }, _0x582222 = {
871
- _0x2fcd47: 0x258,
872
- _0x41a307: 0x14f
873
- }, _0x35965e = { _0x40389e: 0x269 }, _0x37c8d2 = {
874
- _0x2d8aad: 0x1d3,
875
- _0x2f08f4: 0x13d
876
- }, _0x349c24 = {
877
- _0x1c7d6e: 0x265,
878
- _0x28c69e: 0xfc,
879
- _0x461759: 0x25a,
880
- _0x1030da: 0x1d1
881
- }, _0x1dd4f9 = { _0x2a6083: 0x166 }, _0x5b74e1 = {
882
- _0x475744: 0x25a,
883
- _0x152d26: 0x219,
884
- _0x507fa6: 0x144,
885
- _0x330401: 0x14a,
886
- _0x3d050c: 0x176,
887
- _0x1b0a70: 0x11a
888
- }, _0x33c246 = _0x548baf, _0x4ed19f = _0x4fb4d6['fetchImpl'] ?? fetch, _0x2e6833 = _0x4fb4d6[_0x33c246(_0x289c92._0x514e1c)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x41aede = typeof _0x4fb4d6['initialLastSeenSeq'] === _0x33c246(_0x289c92._0x5652a2) && _0x4fb4d6['initialLastSeenSeq'] > 0x0 ? _0x4fb4d6['initialLastSeenSeq'] : 0x0, _0x33a636 = _0x4fb4d6[_0x33c246(_0x289c92._0x1c9fef)]?.[_0x33c246(_0x289c92._0x31cc45)]() || void 0x0, _0x4b10f6 = _0x4fb4d6[_0x33c246(_0x289c92._0x527188)]?.['trim']() || void 0x0, _0x2a66f8 = _0x4fb4d6[_0x33c246(0x104)] === !![], _0x4b103e = _0x4fb4d6[_0x33c246(0x116)]?.[_0x33c246(0x23f)]() || void 0x0, _0x327bf5 = _0x4fb4d6[_0x33c246(_0x289c92._0x61a784)]?.[_0x33c246(0x23f)]() || void 0x0, _0x181bf3 = createHeaders(_0x4fb4d6[_0x33c246(_0x289c92._0x427af4)]), _0x10d87e = toHttpBaseUrl(_0x4fb4d6[_0x33c246(_0x289c92._0x33fc6d)]);
889
- let _0x25f987 = null;
890
- const _0x52b034 = new Map();
891
- let _0xc87b39 = _0x41aede, _0x23e08c = _0x41aede;
892
- function _0x54ab6e(_0x389130) {
893
- const _0x387a8b = _0x33c246, _0x494f1b = _0x389130['response'][_0x387a8b(0x24f)][_0x387a8b(_0x5b74e1._0x475744)](_0x387a8b(_0x5b74e1._0x152d26)) ?? _0x387a8b(0x119), _0x44a087 = _0x389130[_0x387a8b(0x25f)][_0x387a8b(0x23f)]()[_0x387a8b(_0x5b74e1._0x507fa6)](/\s+/g, '\x20')[_0x387a8b(_0x5b74e1._0x330401)](0x0, 0x78) || _0x387a8b(0x1ac);
894
- return _0x387a8b(_0x5b74e1._0x3d050c) + _0x389130[_0x387a8b(0x1e6)] + _0x387a8b(0x221) + _0x389130[_0x387a8b(_0x5b74e1._0x1b0a70)][_0x387a8b(0x269)] + _0x387a8b(0x228) + _0x494f1b + ',\x20preview=' + _0x44a087 + _0x387a8b(0x1e2);
895
- }
896
- async function _0x5346d8(_0x1e8e89, _0x4ce630) {
897
- const _0x29bc46 = _0x33c246, _0x2b3644 = Buffer[_0x29bc46(0x230)](await _0x4ce630[_0x29bc46(_0x1dd4f9._0x2a6083)]())[_0x29bc46(0x145)]('utf8');
898
- if (!_0x2b3644['trim']())
899
- return {};
900
- try {
901
- return JSON[_0x29bc46(0x142)](_0x2b3644);
902
- } catch {
903
- throw new Error(_0x54ab6e({
904
- 'bodyText': _0x2b3644,
905
- 'requestUrl': _0x1e8e89,
906
- 'response': _0x4ce630
907
- }));
908
- }
909
- }
910
- function _0x3c3126(_0x32c108, _0x4db71b) {
911
- const _0x5a3857 = _0x33c246, _0x211e2a = typeof _0x4db71b['idempotency_key'] === _0x5a3857(0x240) ? _0x4db71b['idempotency_key'][_0x5a3857(0x23f)]() : '';
912
- if (_0x211e2a)
913
- return _0x211e2a;
914
- const _0x14c9a2 = Date[_0x5a3857(_0x349c24._0x1c7d6e)]();
915
- for (const [_0x364ff7, _0x16ac5a] of _0x52b034) {
916
- _0x16ac5a[_0x5a3857(_0x349c24._0x28c69e)] <= _0x14c9a2 && _0x52b034[_0x5a3857(0x1cc)](_0x364ff7);
917
- }
918
- const _0x4d89ef = {
919
- ..._0x4db71b,
920
- 'idempotency_key': void 0x0
921
- }, _0x6de742 = createHash('sha256')['update'](_0x32c108 + ':' + stableStringify(_0x4d89ef))[_0x5a3857(0x15d)]('hex'), _0xf2bb5b = _0x32c108 + ':' + _0x6de742, _0x538609 = _0x52b034[_0x5a3857(_0x349c24._0x461759)](_0xf2bb5b);
922
- if (_0x538609)
923
- return _0x538609[_0x5a3857(_0x349c24._0x1030da)];
924
- const _0x59d67d = _0x5a3857(0x169) + _0x32c108 + ':' + randomUUID();
925
- return _0x52b034['set'](_0xf2bb5b, {
926
- 'expiresAt': _0x14c9a2 + 0x5 * 0x3c * 0x3e8,
927
- 'value': _0x59d67d
928
- }), _0x59d67d;
929
- }
930
- async function _0x379f74(_0x330c1e, _0x42d2a9) {
931
- const _0x1b8e87 = _0x33c246, _0x4f5feb = new AbortController(), _0x449d72 = setTimeout(() => _0x4f5feb['abort'](), _0x2e6833), _0x3f53f0 = _0x42d2a9?.['signal'] ? anySignal(_0x42d2a9[_0x1b8e87(_0x37c8d2._0x2d8aad)], _0x4f5feb['signal']) : _0x4f5feb[_0x1b8e87(_0x37c8d2._0x2d8aad)], _0x27ffc3 = '' + _0x10d87e + _0x330c1e;
932
- try {
933
- const _0x40a7c5 = await _0x4ed19f(_0x27ffc3, {
934
- ..._0x42d2a9,
935
- 'signal': _0x3f53f0
936
- }), _0x53b6d5 = await _0x5346d8(_0x27ffc3, _0x40a7c5);
937
- if (!_0x40a7c5['ok'] || _0x53b6d5[_0x1b8e87(_0x37c8d2._0x2f08f4)] === ![])
938
- throw new Error(asErrorMessage(_0x53b6d5['error'], 'HTTP\x20' + _0x40a7c5[_0x1b8e87(0x269)]));
939
- return _0x53b6d5;
940
- } finally {
941
- clearTimeout(_0x449d72);
942
- }
943
- }
944
- async function _0x3eec24(_0x610bd6, _0x580633) {
945
- const _0x132001 = _0x33c246, _0x4bdb41 = new AbortController(), _0x1d1c95 = setTimeout(() => _0x4bdb41[_0x132001(0x112)](), _0x2e6833), _0x58d42e = _0x580633?.[_0x132001(0x1d3)] ? anySignal(_0x580633[_0x132001(0x1d3)], _0x4bdb41['signal']) : _0x4bdb41['signal'], _0x3c5ff7 = '' + _0x10d87e + _0x610bd6;
946
- try {
947
- const _0x558539 = await _0x4ed19f(_0x3c5ff7, {
948
- ..._0x580633,
949
- 'signal': _0x58d42e
950
- }), _0x254ece = await _0x5346d8(_0x3c5ff7, _0x558539);
951
- if (!_0x558539['ok'])
952
- throw new Error(asErrorMessage(_0x254ece[_0x132001(0x1bf)], _0x132001(0x267) + _0x558539[_0x132001(_0x35965e._0x40389e)]));
953
- return _0x254ece;
954
- } finally {
955
- clearTimeout(_0x1d1c95);
956
- }
957
- }
958
- async function _0xea8f84(_0x1660c5) {
959
- const _0x561cdb = _0x33c246;
960
- if (!_0x4b10f6 || _0x1660c5 <= _0x23e08c)
961
- return;
962
- await _0x379f74(_0x561cdb(_0x582222._0x2fcd47) + encodeURIComponent(_0x4b10f6) + '/context-metrics', {
963
- 'body': JSON[_0x561cdb(_0x582222._0x41a307)]({ 'lastSeenSeq': _0x1660c5 }),
964
- 'headers': _0x181bf3,
965
- 'method': 'PATCH'
966
- }), _0x23e08c = _0x1660c5;
967
- }
968
- async function _0x116268(_0x4f860f) {
969
- const _0x29978c = _0x33c246;
970
- if (!_0x33a636 || !_0x4b103e || _0x4f860f <= _0x23e08c)
971
- return;
972
- const _0x510c83 = await _0x4ed19f(_0x33a636 + _0x29978c(_0x40821d._0x5e2432), {
973
- 'body': JSON['stringify']({
974
- 'last_seen_seq': _0x4f860f,
975
- 'worker_session_id': _0x4b103e
976
- }),
977
- 'headers': { 'Content-Type': _0x29978c(_0x40821d._0x373bc7) },
978
- 'method': _0x29978c(_0x40821d._0x46a7cc)
979
- });
980
- if (!_0x510c83['ok'])
981
- throw new Error(_0x29978c(_0x40821d._0x1cefee) + _0x510c83[_0x29978c(_0x40821d._0xc3cb99)]);
982
- _0x23e08c = _0x4f860f;
983
- }
984
- async function _0x15a709(_0x533ef7) {
985
- const _0x299cd9 = _0x33c246, _0x18af2c = parseTarget(_0x533ef7), _0x70656b = await _0x379f74('/internal/agent/' + _0x4fb4d6[_0x299cd9(_0x3b22c0._0x1874b3)] + _0x299cd9(_0x3b22c0._0xfe9391), {
986
- 'body': JSON[_0x299cd9(0x14f)]({ 'target': _0x18af2c[_0x299cd9(0x1a0)] }),
987
- 'headers': _0x181bf3,
988
- 'method': _0x299cd9(0x1a8)
989
- });
990
- return {
991
- 'channelId': _0x70656b[_0x299cd9(_0x3b22c0._0x259d95)]?.[_0x299cd9(0x1ef)] ?? '',
992
- 'target': _0x18af2c[_0x299cd9(0x1dc)],
993
- 'task': _0x70656b[_0x299cd9(0x24c)]?.[_0x299cd9(_0x3b22c0._0x32618c)],
994
- 'threadId': _0x70656b[_0x299cd9(0x24c)]?.[_0x299cd9(_0x3b22c0._0x3130d6)],
995
- 'threadNumber': _0x70656b[_0x299cd9(0x24c)]?.[_0x299cd9(_0x3b22c0._0x197bc3)]
996
- };
997
- }
998
- async function _0x92fd4(_0x2490b9 = {}) {
999
- const _0xefa291 = _0x33c246;
1000
- if (!_0x2490b9['forceRefresh'] && _0x25f987)
1001
- return _0x25f987;
1002
- return _0x25f987 = (async () => {
1003
- const _0x1c175e = _0x7c22, _0x19ea58 = await _0x379f74(_0x1c175e(0x1aa) + _0x4fb4d6['agentId'] + '/server', {
1004
- 'headers': _0x181bf3,
1005
- 'method': 'GET'
1006
- }), _0x471218 = _0x19ea58[_0x1c175e(0x24c)]?.[_0x1c175e(0x238)] ?? [], _0x52e49c = _0x471218[_0x1c175e(_0x5c15bb._0x83ddee)](_0x162e2e => _0x162e2e['participant']?.[_0x1c175e(0x155)] === _0x1c175e(0x16a))[_0x1c175e(_0x5c15bb._0x22ec55)](_0x36de3d => ({
1007
- 'id': _0x3f6c7e(_0x36de3d),
1008
- 'name': _0x3dab1f(_0x36de3d)
1009
- }))[_0x1c175e(_0x5c15bb._0x83ddee)](_0x459dc4 => _0x459dc4['id']), _0x1213a9 = _0x471218[_0x1c175e(0x19d)](_0x3cbf31 => _0x3cbf31[_0x1c175e(0x195)]?.[_0x1c175e(0x155)] !== _0x1c175e(0x16a))[_0x1c175e(0x280)](_0x6ea93e => ({
1010
- 'id': _0x3f6c7e(_0x6ea93e),
1011
- 'name': _0x3dab1f(_0x6ea93e)
1012
- }))[_0x1c175e(0x19d)](_0x37ea9c => _0x37ea9c['id']), _0x3dd18f = _0x19ea58['data']?.['server']['id'] ?? '';
1013
- return {
1014
- 'agents': _0x52e49c,
1015
- 'channels': _0x19ea58[_0x1c175e(_0x5c15bb._0x58f7f3)]?.['channels'] ?? [],
1016
- 'humans': _0x1213a9,
1017
- 'serverId': _0x3dd18f,
1018
- 'serverName': _0x19ea58[_0x1c175e(_0x5c15bb._0xf43f3)]?.[_0x1c175e(_0x5c15bb._0x5d5888)][_0x1c175e(0x1b8)] ?? _0x3dd18f
1019
- };
1020
- })()[_0xefa291(_0x3d5099._0x1f382a)](_0x2b43ea => {
1021
- _0x25f987 = null;
1022
- throw _0x2b43ea;
1023
- }), _0x25f987;
1024
- }
1025
- function _0x197210(_0x58525e, _0x359b52) {
1026
- const _0x2dbde6 = _0x33c246;
1027
- return _0x359b52[_0x2dbde6(_0x407067._0x24f5ca)][_0x2dbde6(0x205)](_0x2bc2ff => _0x2bc2ff['id'] === _0x58525e || _0x2bc2ff[_0x2dbde6(0x1b8)] === _0x58525e) ? 'agent' : _0x2dbde6(0x251);
1028
- }
1029
- function _0x182591(_0x1b57e3, _0x306a74) {
1030
- const _0x11a599 = _0x33c246, _0x38ad3b = [
1031
- ..._0x306a74[_0x11a599(0x1e4)],
1032
- ..._0x306a74[_0x11a599(_0xb66e68._0x1338ad)]
1033
- ][_0x11a599(0x264)](_0x24eba7 => _0x24eba7['id'] === _0x1b57e3);
1034
- return _0x38ad3b?.[_0x11a599(_0xb66e68._0x16bfcd)] ?? _0x1b57e3;
1035
- }
1036
- function _0x5f0c22(_0x593bdd) {
1037
- const _0x271868 = _0x33c246;
1038
- if (_0x593bdd[_0x271868(_0x23c5ea._0x27ba9e)] != null)
1039
- return _0x593bdd[_0x271868(_0x23c5ea._0x40fce4)] + ':t' + _0x593bdd['threadNumber'];
1040
- if (_0x593bdd['rootMessageId'])
1041
- return _0x593bdd[_0x271868(_0x23c5ea._0x4d33a9)] + ':' + _0x593bdd[_0x271868(0x266)];
1042
- if (_0x593bdd[_0x271868(_0x23c5ea._0x4b6355)])
1043
- return _0x593bdd[_0x271868(_0x23c5ea._0x4d33a9)] + ':' + _0x593bdd[_0x271868(_0x23c5ea._0x4b6355)][_0x271868(0x14a)](0x0, 0x8);
1044
- return _0x593bdd[_0x271868(_0x23c5ea._0x47d158)];
1045
- }
1046
- function _0x3e2908(_0x2b1747, _0x460c64) {
1047
- const _0x16688c = _0x33c246;
1048
- try {
1049
- const _0x461876 = parseTarget(_0x2b1747);
1050
- if (_0x461876[_0x16688c(0x109)] !== _0x16688c(0x187) || _0x461876['channelTarget'] !== _0x460c64[_0x16688c(_0x2a8ba5._0x25ddf5)])
1051
- return ![];
1052
- if (_0x460c64[_0x16688c(0x1d5)] != null && _0x461876['threadShortId'] === 't' + _0x460c64[_0x16688c(0x1d5)])
1053
- return !![];
1054
- if (_0x460c64[_0x16688c(_0x2a8ba5._0x312d3b)])
1055
- return _0x461876[_0x16688c(_0x2a8ba5._0x4bf060)] === _0x460c64[_0x16688c(_0x2a8ba5._0x312d3b)] || _0x460c64[_0x16688c(0x266)][_0x16688c(0x244)](_0x461876[_0x16688c(_0x2a8ba5._0x4bf060)]);
1056
- if (_0x460c64[_0x16688c(_0x2a8ba5._0x573f0c)])
1057
- return _0x461876[_0x16688c(_0x2a8ba5._0x1928ef)] === _0x460c64[_0x16688c(0x1c8)] || _0x460c64[_0x16688c(0x1c8)][_0x16688c(_0x2a8ba5._0x564594)](_0x461876[_0x16688c(0x1b0)]);
1058
- return ![];
1059
- } catch {
1060
- return ![];
1061
- }
1062
- }
1063
- function _0x2360b5(_0x30d3df, _0x5c2202) {
1064
- const _0x2072f4 = _0x33c246;
1065
- try {
1066
- const _0x5191ef = parseTarget(_0x30d3df);
1067
- if (_0x5191ef['kind'] !== _0x2072f4(0x187))
1068
- return ![];
1069
- const _0x5ebc38 = typeof _0x5c2202[_0x2072f4(_0x59565c._0x586faf)] === _0x2072f4(0x203) && Number[_0x2072f4(_0x59565c._0x4e95ba)](_0x5c2202['threadNumber']) ? _0x5c2202['threadNumber'] : void 0x0;
1070
- if (_0x5ebc38 != null && _0x5191ef['threadShortId'] === 't' + _0x5ebc38)
1071
- return !![];
1072
- const _0x2db2bd = typeof _0x5c2202[_0x2072f4(_0x59565c._0x5db384)] === 'string' ? _0x5c2202[_0x2072f4(_0x59565c._0x7a4430)] : void 0x0;
1073
- if (_0x2db2bd)
1074
- return _0x5191ef[_0x2072f4(_0x59565c._0x2a8f3c)] === _0x2db2bd || _0x2db2bd[_0x2072f4(_0x59565c._0xc659f3)](_0x5191ef[_0x2072f4(_0x59565c._0x12df49)]);
1075
- const _0x5a60bb = typeof _0x5c2202[_0x2072f4(0x1c8)] === 'string' ? _0x5c2202[_0x2072f4(0x1c8)] : void 0x0;
1076
- return Boolean(_0x5a60bb) && (_0x5191ef[_0x2072f4(_0x59565c._0x12df49)] === _0x5a60bb || _0x5a60bb[_0x2072f4(_0x59565c._0xc659f3)](_0x5191ef[_0x2072f4(0x1b0)]));
1077
- } catch {
1078
- return ![];
1079
- }
1080
- }
1081
- function _0x3f6c7e(_0x3bc12d) {
1082
- const _0x1c77fb = _0x33c246;
1083
- return _0x3bc12d['member']?.[_0x1c77fb(0x222)] ?? _0x3bc12d[_0x1c77fb(_0x18473f._0x3af970)]?.['id'] ?? _0x3bc12d['participantId'] ?? '';
1084
- }
1085
- function _0x3dab1f(_0x25b46e) {
1086
- const _0x306a76 = _0x33c246;
1087
- return _0x25b46e[_0x306a76(_0x2a4f80._0x4a8dc0)]?.[_0x306a76(0x1b8)] ?? _0x3f6c7e(_0x25b46e);
1088
- }
1089
- async function _0x3f6983(_0x3fce1f) {
1090
- const _0x5ed6fb = _0x33c246, _0x327c9d = Math[_0x5ed6fb(_0x400e48._0x1b79e8)](_0x3fce1f['limit'] ?? 0x32, 0x64), _0x2f3c3c = await _0x92fd4(), _0x43e425 = new URLSearchParams();
1091
- _0x43e425[_0x5ed6fb(0x198)](_0x5ed6fb(0x1cf), String(_0x327c9d));
1092
- _0x3fce1f[_0x5ed6fb(_0x400e48._0x540ee2)] ? (_0x43e425[_0x5ed6fb(_0x400e48._0xc06128)](_0x5ed6fb(_0x400e48._0x540ee2), _0x3fce1f[_0x5ed6fb(0x1c8)]), _0x43e425[_0x5ed6fb(_0x400e48._0xc06128)](_0x5ed6fb(_0x400e48._0x28793d), _0x3fce1f[_0x5ed6fb(_0x400e48._0x2b7501)])) : _0x43e425['set']('channelId', _0x3fce1f[_0x5ed6fb(_0x400e48._0x2b7501)]);
1093
- _0x3fce1f[_0x5ed6fb(_0x400e48._0x59c432)] && _0x43e425['set'](_0x5ed6fb(0x1c9), String(_0x3fce1f[_0x5ed6fb(_0x400e48._0x59c432)]));
1094
- _0x3fce1f[_0x5ed6fb(0x12e)] !== void 0x0 && _0x43e425[_0x5ed6fb(_0x400e48._0x51a43a)](_0x5ed6fb(0x12e), String(_0x3fce1f[_0x5ed6fb(0x12e)]));
1095
- const _0x5788a1 = await _0x379f74(_0x5ed6fb(_0x400e48._0x202d80) + _0x4fb4d6[_0x5ed6fb(_0x400e48._0x1a28d3)] + '/history?' + _0x43e425[_0x5ed6fb(_0x400e48._0xfd6704)](), {
1096
- 'headers': _0x181bf3,
1097
- 'method': _0x5ed6fb(_0x400e48._0x403467)
1098
- }), _0x993665 = (_0x5788a1[_0x5ed6fb(0x24c)] ?? [])['map'](_0x48d554 => ({
1099
- 'attachments': (_0x48d554[_0x5ed6fb(0x196)] ?? [])[_0x5ed6fb(0x280)](_0x441d6a => ({
1100
- 'filename': _0x441d6a[_0x5ed6fb(0x236)] ?? _0x441d6a['id'],
1101
- 'id': _0x441d6a['id']
1102
- })),
1103
- 'content': _0x48d554[_0x5ed6fb(0x18b)] ?? '',
1104
- 'createdAt': _0x48d554['createdAt'],
1105
- ..._0x48d554[_0x5ed6fb(0x109)] && _0x48d554[_0x5ed6fb(0x109)] !== _0x5ed6fb(0x172) ? { 'kind': _0x48d554['kind'] } : {},
1106
- 'messageId': _0x48d554['id'],
1107
- 'senderName': _0x182591(_0x48d554[_0x5ed6fb(0x199)], _0x2f3c3c),
1108
- 'senderType': _0x197210(_0x48d554['senderParticipantId'], _0x2f3c3c),
1109
- 'seq': _0x48d554[_0x5ed6fb(0x25d)] ?? 0x0
1110
- }));
1111
- return {
1112
- 'channel': _0x3fce1f[_0x5ed6fb(_0x400e48._0x3a950e)],
1113
- 'hasMore': _0x5788a1[_0x5ed6fb(_0x400e48._0x52cdca)]?.[_0x5ed6fb(0x271)] ?? ![],
1114
- 'messages': _0x993665,
1115
- 'nextCursor': _0x5788a1[_0x5ed6fb(_0x400e48._0x52cdca)]?.[_0x5ed6fb(_0x400e48._0x24aa79)]
1116
- };
1117
- }
1118
- return {
1119
- async 'sendMessage'(_0x551ebd) {
1120
- const _0x3eda69 = _0x33c246, _0x28413f = await _0x15a709(_0x551ebd[_0x3eda69(0x1a0)]), _0x4e74dd = _0x551ebd[_0x3eda69(0x1ad)][_0x3eda69(0x1c1)]('@') ? extractMentionedParticipantIds(_0x551ebd[_0x3eda69(_0x30f93c._0x1ce058)], await _0x92fd4()) : [], _0x530a2a = await _0x379f74(_0x3eda69(0x1aa) + _0x4fb4d6[_0x3eda69(0x1b5)] + _0x3eda69(0x22f), {
1121
- 'body': JSON[_0x3eda69(_0x30f93c._0x3c07e6)]({
1122
- 'attachment_ids': _0x551ebd['attachmentIds'],
1123
- 'bodyMarkdown': _0x551ebd[_0x3eda69(0x1ad)],
1124
- 'channelId': _0x28413f[_0x3eda69(_0x30f93c._0x22dcc4)],
1125
- ..._0x4e74dd[_0x3eda69(_0x30f93c._0x44a451)] > 0x0 ? { 'mentionedParticipantIds': _0x4e74dd } : {},
1126
- 'threadId': _0x28413f[_0x3eda69(0x1c8)],
1127
- ..._0x551ebd[_0x3eda69(_0x30f93c._0x2ddfbe)] ? { 'visibility': _0x551ebd[_0x3eda69(0x262)] } : {}
1128
- }),
1129
- 'headers': _0x181bf3,
1130
- 'method': _0x3eda69(0x1a8)
1131
- });
1132
- return { 'messageId': _0x530a2a[_0x3eda69(0x24c)]?.['id'] ?? '' };
1133
- },
1134
- async 'listSchedules'() {
1135
- const _0x26262f = _0x33c246, _0x56f9f2 = await _0x379f74(_0x26262f(0x14c), {
1136
- 'headers': _0x181bf3,
1137
- 'method': _0x26262f(0x1a7)
1138
- });
1139
- return _0x56f9f2['data'] ?? [];
1140
- },
1141
- async 'claimScheduleRun'(_0xc3b425) {
1142
- const _0x5ae780 = _0x33c246, _0x5f5e12 = await _0x379f74(_0x5ae780(_0x17a358._0x3cb6cf), {
1143
- 'body': JSON['stringify'](_0xc3b425),
1144
- 'headers': _0x181bf3,
1145
- 'method': _0x5ae780(0x1a8)
1146
- });
1147
- return _0x5f5e12[_0x5ae780(0x24c)] ?? {
1148
- 'granted': ![],
1149
- 'runId': null,
1150
- 'schedule': null,
1151
- 'scheduledFor': _0xc3b425['scheduledFor']
1152
- };
1153
- },
1154
- async 'startScheduleRun'(_0x1c2726) {
1155
- const _0xe077bf = _0x33c246, _0x3bc295 = await _0x379f74(_0xe077bf(0x246) + encodeURIComponent(_0x1c2726[_0xe077bf(0x1a3)]) + _0xe077bf(_0x53d82a._0x1f566a), {
1156
- 'body': JSON[_0xe077bf(_0x53d82a._0x48d3df)]({}),
1157
- 'headers': _0x181bf3,
1158
- 'method': _0xe077bf(0x1a8)
1159
- });
1160
- return _0x3bc295[_0xe077bf(0x24c)] ?? {
1161
- 'claimedByDaemonId': '',
1162
- 'id': _0x1c2726['runId'],
1163
- 'scheduleId': '',
1164
- 'status': _0xe077bf(_0x53d82a._0x1715f2)
1165
- };
1166
- },
1167
- async 'finishScheduleRun'(_0x27b1b1) {
1168
- const _0x4a70b0 = _0x33c246, _0x777f10 = await _0x379f74('/api/internal/schedules/' + encodeURIComponent(_0x27b1b1['runId']) + _0x4a70b0(0x167), {
1169
- 'body': JSON['stringify']({
1170
- 'error': _0x27b1b1['error'],
1171
- 'resultJson': _0x27b1b1[_0x4a70b0(0x1cb)],
1172
- 'status': _0x27b1b1['status']
1173
- }),
1174
- 'headers': _0x181bf3,
1175
- 'method': _0x4a70b0(_0x1ead70._0x5bd7fb)
1176
- });
1177
- return _0x777f10[_0x4a70b0(_0x1ead70._0xc4fd48)] ?? {
1178
- 'nextRunAt': null,
1179
- 'run': {
1180
- 'claimedByDaemonId': '',
1181
- 'id': _0x27b1b1[_0x4a70b0(0x1a3)],
1182
- 'scheduleId': '',
1183
- 'status': _0x27b1b1[_0x4a70b0(0x269)]
1184
- }
1185
- };
1186
- },
1187
- async 'listTasks'(_0x1864b0) {
1188
- const _0x5bdb51 = _0x33c246, _0x5ac784 = new URLSearchParams();
1189
- return _0x5ac784[_0x5bdb51(_0x19e506._0x2472ce)](_0x5bdb51(0x139), _0x1864b0[_0x5bdb51(0x139)]), _0x1864b0[_0x5bdb51(_0x19e506._0x3f0ee5)] && _0x5ac784[_0x5bdb51(_0x19e506._0x2472ce)](_0x5bdb51(_0x19e506._0x3af8d7), _0x1864b0[_0x5bdb51(_0x19e506._0x3af8d7)]), _0x3eec24(_0x5bdb51(0x1aa) + _0x4fb4d6[_0x5bdb51(0x1b5)] + _0x5bdb51(_0x19e506._0x187346) + _0x5ac784[_0x5bdb51(_0x19e506._0x9e19b7)](), {
1190
- 'headers': _0x181bf3,
1191
- 'method': _0x5bdb51(_0x19e506._0xc4653d)
1192
- });
1193
- },
1194
- async 'createTasks'(_0x5f33bc) {
1195
- const _0x272973 = _0x33c246;
1196
- return _0x3eec24(_0x272973(_0x534b3e._0xf885d1) + _0x4fb4d6[_0x272973(_0x534b3e._0x428dda)] + _0x272973(0x1f8), {
1197
- 'body': JSON[_0x272973(0x14f)]({
1198
- ..._0x5f33bc,
1199
- 'idempotency_key': _0x3c3126(_0x272973(0x131), _0x5f33bc)
1200
- }),
1201
- 'headers': _0x181bf3,
1202
- 'method': 'POST'
1203
- });
1204
- },
1205
- async 'claimTasks'(_0x4decc9) {
1206
- const _0x1f1864 = _0x33c246;
1207
- return _0x3eec24(_0x1f1864(0x1aa) + _0x4fb4d6[_0x1f1864(0x1b5)] + '/tasks/claim', {
1208
- 'body': JSON[_0x1f1864(0x14f)]({
1209
- ..._0x4decc9,
1210
- 'idempotency_key': _0x3c3126('claim_tasks', _0x4decc9)
1211
- }),
1212
- 'headers': _0x181bf3,
1213
- 'method': _0x1f1864(0x1a8)
1214
- });
1215
- },
1216
- async 'unclaimTask'(_0x5609d1) {
1217
- const _0x36fe69 = _0x33c246;
1218
- return _0x3eec24(_0x36fe69(0x1aa) + _0x4fb4d6[_0x36fe69(0x1b5)] + _0x36fe69(0x1ea), {
1219
- 'body': JSON[_0x36fe69(0x14f)]({
1220
- ..._0x5609d1,
1221
- 'idempotency_key': _0x3c3126(_0x36fe69(0x27b), _0x5609d1)
1222
- }),
1223
- 'headers': _0x181bf3,
1224
- 'method': _0x36fe69(0x1a8)
1225
- });
1226
- },
1227
- async 'updateTaskStatus'(_0x408cde) {
1228
- const _0x3092eb = _0x33c246;
1229
- return _0x3eec24('/internal/agent/' + _0x4fb4d6[_0x3092eb(_0x196c20._0x141381)] + _0x3092eb(_0x196c20._0x530642), {
1230
- 'body': JSON[_0x3092eb(_0x196c20._0x28ac1b)]({
1231
- ..._0x408cde,
1232
- 'idempotency_key': _0x3c3126(_0x3092eb(0x121), _0x408cde)
1233
- }),
1234
- 'headers': _0x181bf3,
1235
- 'method': _0x3092eb(0x1a8)
1236
- });
1237
- },
1238
- async 'uploadFile'(_0x5d5a57) {
1239
- const _0x12352b = _0x33c246, _0x4425d1 = await _0x15a709(_0x5d5a57[_0x12352b(0x139)]);
1240
- if (_0x4425d1[_0x12352b(_0x11c2b5._0x5911a1)])
1241
- throw new Error(_0x12352b(0x11b));
1242
- const _0x52e813 = await _0x379f74(_0x12352b(_0x11c2b5._0x5dee79) + _0x4fb4d6[_0x12352b(_0x11c2b5._0x457e72)] + '/upload', {
1243
- 'body': JSON[_0x12352b(_0x11c2b5._0x4d3b23)]({
1244
- 'channel': _0x4425d1['target'],
1245
- 'contentBase64': _0x5d5a57[_0x12352b(_0x11c2b5._0x3d4304)],
1246
- 'contentType': _0x5d5a57[_0x12352b(0x113)],
1247
- 'originalFilename': _0x5d5a57[_0x12352b(_0x11c2b5._0x599b88)]
1248
- }),
1249
- 'headers': _0x181bf3,
1250
- 'method': 'POST'
1251
- });
1252
- return {
1253
- 'attachmentId': _0x52e813[_0x12352b(0x24c)]?.['id'] ?? '',
1254
- 'filename': _0x52e813[_0x12352b(_0x11c2b5._0x5e8709)]?.[_0x12352b(0x27f)] ?? _0x5d5a57[_0x12352b(_0x11c2b5._0x599b88)],
1255
- 'sizeBytes': _0x52e813[_0x12352b(0x24c)]?.[_0x12352b(0x100)] ?? 0x0
1256
- };
1257
- },
1258
- async 'downloadAttachment'(_0xd4f184) {
1259
- const _0x5506f7 = _0x33c246, _0x5e2639 = await _0x379f74('/api/attachments/' + _0xd4f184, {
1260
- 'headers': _0x181bf3,
1261
- 'method': _0x5506f7(_0x21d68f._0x2a011f)
1262
- }), _0x54a334 = new AbortController(), _0x57db24 = setTimeout(() => _0x54a334[_0x5506f7(0x112)](), _0x2e6833);
1263
- try {
1264
- const _0x3a8e15 = await _0x4ed19f(_0x10d87e + _0x5506f7(_0x21d68f._0x595bbb) + _0xd4f184 + _0x5506f7(_0x21d68f._0x5e1562), {
1265
- 'headers': _0x181bf3,
1266
- 'method': _0x5506f7(0x1a7),
1267
- 'signal': _0x54a334[_0x5506f7(_0x21d68f._0x126b97)]
1268
- });
1269
- if (!_0x3a8e15['ok'])
1270
- throw new Error(_0x5506f7(0x267) + _0x3a8e15[_0x5506f7(_0x21d68f._0x250000)]);
1271
- return {
1272
- 'contentType': _0x5e2639[_0x5506f7(0x24c)]?.[_0x5506f7(0x113)] ?? _0x3a8e15[_0x5506f7(0x24f)][_0x5506f7(_0x21d68f._0x2272c0)](_0x5506f7(_0x21d68f._0x2eb11f)) ?? 'application/octet-stream',
1273
- 'data': Buffer[_0x5506f7(0x230)](await _0x3a8e15[_0x5506f7(_0x21d68f._0x3d767a)]()),
1274
- 'originalFilename': _0x5e2639[_0x5506f7(0x24c)]?.['originalFilename']
1275
- };
1276
- } finally {
1277
- clearTimeout(_0x57db24);
1278
- }
1279
- },
1280
- async 'listServer'() {
1281
- return _0x92fd4({ 'forceRefresh': !![] });
1282
- },
1283
- async 'getLatestEventSeq'() {
1284
- const _0x4c98a6 = _0x33c246, _0x540963 = new URLSearchParams();
1285
- _0x540963[_0x4c98a6(_0x1038d2._0x20b8ab)](_0x4c98a6(0x1ec), '0'), _0x540963[_0x4c98a6(0x198)](_0x4c98a6(0x1cf), '1');
1286
- const _0xea9956 = await _0x379f74(_0x4c98a6(0x1aa) + _0x4fb4d6[_0x4c98a6(_0x1038d2._0x4be780)] + _0x4c98a6(_0x1038d2._0x5a45ef) + _0x540963[_0x4c98a6(0x145)](), {
1287
- 'headers': _0x181bf3,
1288
- 'method': 'GET'
1289
- }), _0x58c50f = _0xea9956[_0x4c98a6(0x1e0)]?.[_0x4c98a6(0x274)];
1290
- return typeof _0x58c50f === _0x4c98a6(_0x1038d2._0x1d3acd) && _0x58c50f > 0x0 ? _0x58c50f : 0x0;
1291
- },
1292
- async 'readHistory'(_0x2c86d8) {
1293
- const _0x543114 = _0x33c246, _0x4d3680 = await _0x15a709(_0x2c86d8[_0x543114(_0x405421._0x5481ad)]);
1294
- return _0x3f6983({
1295
- 'after': _0x2c86d8['after'],
1296
- 'before': _0x2c86d8[_0x543114(_0x405421._0x4ea879)],
1297
- 'channelId': _0x4d3680[_0x543114(0x1ef)],
1298
- 'channelTarget': _0x4d3680['target'],
1299
- 'limit': _0x2c86d8[_0x543114(0x1cf)],
1300
- 'threadId': _0x4d3680[_0x543114(_0x405421._0x566924)]
1301
- });
1302
- },
1303
- 'resolveTarget': _0x15a709,
1304
- async 'checkMessages'() {
1305
- const _0x16c11d = _0x33c246, _0x179046 = new URLSearchParams();
1306
- _0x179046[_0x16c11d(0x198)]('afterSeq', String(_0xc87b39));
1307
- const _0x383e60 = _0x179046[_0x16c11d(_0x2b0a59._0x3cb7d9)](), _0x1c1d80 = await _0x379f74(_0x16c11d(0x1aa) + _0x4fb4d6[_0x16c11d(0x1b5)] + _0x16c11d(_0x2b0a59._0x1f7ad4) + (_0x383e60 ? '?' + _0x383e60 : ''), {
1308
- 'headers': _0x181bf3,
1309
- 'method': 'GET'
1310
- }), _0x31f9d0 = _0x1c1d80[_0x16c11d(_0x2b0a59._0xa6e0f4)] ?? [], _0x1b858e = _0x1c1d80[_0x16c11d(0x1e0)]?.['cursor'], _0x37197b = _0x327bf5 ? _0x31f9d0['filter'](_0x2e40a7 => {
1311
- const _0x448348 = _0x16c11d;
1312
- if (_0x2e40a7['aggregateType'] !== _0x448348(0x143))
1313
- return ![];
1314
- return _0x2360b5(_0x327bf5, asRecord(_0x2e40a7[_0x448348(0x184)]));
1315
- }) : _0x31f9d0, _0x4fe55c = _0x1b858e !== void 0x0 ? _0x327bf5 ? Math[_0x16c11d(0x250)](_0xc87b39, _0x37197b[_0x16c11d(0x1d4)] > 0x0 ? _0x37197b[_0x37197b[_0x16c11d(_0x2b0a59._0x599ffa)] - 0x1][_0x16c11d(_0x2b0a59._0x573005)] : _0xc87b39) : Math[_0x16c11d(_0x2b0a59._0x55ce31)](_0xc87b39, _0x1b858e) : _0x37197b[_0x16c11d(0x1d4)] > 0x0 ? Math['max'](_0xc87b39, _0x37197b[_0x37197b[_0x16c11d(_0x2b0a59._0x599ffa)] - 0x1][_0x16c11d(_0x2b0a59._0x2c3a15)]) : _0xc87b39, _0x235241 = (_0x327bf5 ? _0x37197b : _0x31f9d0)['filter'](_0x264f16 => _0x264f16[_0x16c11d(0x276)] === _0x16c11d(0x143));
1316
- let _0x30fc57 = await _0x92fd4(), _0x568478 = new Map(_0x30fc57[_0x16c11d(_0x2b0a59._0x3559d1)]['map'](_0x42b4d4 => [
1317
- _0x42b4d4['id'],
1318
- _0x42b4d4
1319
- ]));
1320
- const _0x4e2508 = _0x235241[_0x16c11d(_0x2b0a59._0x3788b9)](_0x5063ae => {
1321
- const _0x191b10 = _0x16c11d, _0x4e2412 = asRecord(_0x5063ae[_0x191b10(0x184)]), _0x511ebf = typeof _0x4e2412?.[_0x191b10(0x1ef)] === _0x191b10(0x240) ? _0x4e2412[_0x191b10(_0x3a1d25._0x53b64e)] : '';
1322
- return Boolean(_0x511ebf) && !_0x568478['has'](_0x511ebf);
1323
- });
1324
- _0x4e2508 && (_0x30fc57 = await _0x92fd4({ 'forceRefresh': !![] }), _0x568478 = new Map(_0x30fc57['channels']['map'](_0x338ae3 => [
1325
- _0x338ae3['id'],
1326
- _0x338ae3
1327
- ])));
1328
- const _0x46fa83 = new Map();
1329
- for (const _0xcbf82f of _0x235241) {
1330
- const _0x5654a5 = asRecord(_0xcbf82f['payloadJson']), _0x3447ce = typeof _0x5654a5[_0x16c11d(0x1ef)] === _0x16c11d(_0x2b0a59._0x140d59) ? _0x5654a5[_0x16c11d(_0x2b0a59._0x173020)] : '';
1331
- if (!_0x3447ce)
1332
- continue;
1333
- const _0x10d031 = typeof _0x5654a5[_0x16c11d(0x1c8)] === _0x16c11d(0x240) ? _0x5654a5['threadId'] : void 0x0, _0x432b07 = typeof _0x5654a5['rootMessageId'] === _0x16c11d(0x240) ? _0x5654a5[_0x16c11d(_0x2b0a59._0x366af4)] : void 0x0, _0x466d00 = typeof _0x5654a5[_0x16c11d(_0x2b0a59._0x4e69ed)] === _0x16c11d(0x203) && Number['isInteger'](_0x5654a5[_0x16c11d(0x1d5)]) ? _0x5654a5[_0x16c11d(0x1d5)] : void 0x0, _0x3860f5 = Boolean(_0x10d031 && (!_0x432b07 || _0xcbf82f[_0x16c11d(0x26e)] !== _0x432b07)), _0x375ca0 = _0x3860f5 ? _0x3447ce + ':' + _0x10d031 : _0x3447ce, _0xc531ea = _0x46fa83['get'](_0x375ca0) ?? {
1334
- 'aggregateIds': [],
1335
- 'channelId': _0x3447ce,
1336
- 'entries': new Map(),
1337
- 'isThreadReply': _0x3860f5,
1338
- 'rootMessageId': _0x432b07,
1339
- 'threadNumber': _0x466d00,
1340
- 'threadId': _0x3860f5 ? _0x10d031 : void 0x0
1341
- };
1342
- _0xc531ea[_0x16c11d(0x1d5)] == null && _0x466d00 != null && (_0xc531ea[_0x16c11d(0x1d5)] = _0x466d00), !_0xc531ea[_0x16c11d(0x266)] && _0x432b07 && (_0xc531ea[_0x16c11d(_0x2b0a59._0x31a130)] = _0x432b07), _0xc531ea['aggregateIds']['push'](_0xcbf82f['aggregateId']), _0xc531ea[_0x16c11d(_0x2b0a59._0x5aa3d9)][_0x16c11d(0x198)](_0xcbf82f[_0x16c11d(_0x2b0a59._0x364bb8)], {
1343
- 'payloadJson': _0xcbf82f[_0x16c11d(_0x2b0a59._0x242b73)],
1344
- 'seq': _0xcbf82f['seq']
1345
- }), _0x46fa83[_0x16c11d(_0x2b0a59._0x328b08)](_0x375ca0, _0xc531ea);
1346
- }
1347
- const _0x16d9c2 = [];
1348
- for (const _0x19e46e of _0x46fa83[_0x16c11d(_0x2b0a59._0x27c0cc)]()) {
1349
- const {
1350
- channelId: _0x1dbe99,
1351
- threadId: _0x2d9130,
1352
- rootMessageId: _0x3bf03b,
1353
- threadNumber: _0x52cda7,
1354
- aggregateIds: _0x793bde,
1355
- isThreadReply: _0x5ccdec,
1356
- entries: _0x302026
1357
- } = _0x19e46e, _0x533e2e = _0x568478[_0x16c11d(0x25a)](_0x1dbe99), _0x1f8599 = _0x533e2e?.['name'] ?? _0x1dbe99, _0x1f0d8a = _0x533e2e?.[_0x16c11d(0x109)] === 'dm' ? _0x16c11d(0x12d) + _0x1f8599 : '#' + _0x1f8599, _0x165a7f = {
1358
- 'channelTarget': _0x1f0d8a,
1359
- 'rootMessageId': _0x3bf03b,
1360
- 'threadId': _0x2d9130,
1361
- 'threadNumber': _0x52cda7
1362
- }, _0x3ddf59 = await _0x3f6983({
1363
- 'channelId': _0x1dbe99,
1364
- 'channelTarget': _0x1f0d8a,
1365
- 'limit': Math['max'](_0x793bde['length'], 0x32),
1366
- 'threadId': _0x2d9130
1367
- }), _0x4e65b6 = new Map(_0x3ddf59[_0x16c11d(0x283)][_0x16c11d(_0x2b0a59._0x389c68)](_0x30bf0d => [
1368
- _0x30bf0d[_0x16c11d(0x1cd)],
1369
- _0x30bf0d
1370
- ])), _0x42a82a = _0x2d9130 ? _0x5f0c22(_0x165a7f) : _0x1f0d8a, _0x145ea3 = _0x327bf5 ? _0x5ccdec && _0x3e2908(_0x327bf5, _0x165a7f) : !![], _0x84ca25 = _0x5ccdec ? _0x145ea3 && _0x327bf5 ? _0x327bf5 : _0x42a82a : _0x1f0d8a;
1371
- for (const _0x459751 of _0x793bde) {
1372
- if (!_0x145ea3)
1373
- continue;
1374
- const _0x371a4f = _0x302026[_0x16c11d(0x25a)](_0x459751), _0x1c48c6 = _0x371a4f ? asRecord(_0x371a4f[_0x16c11d(0x184)]) : void 0x0, _0x588ef8 = _0x1c48c6?.[_0x16c11d(0x1a5)] === 'targeted', _0x42ad05 = _0x4e65b6[_0x16c11d(0x25a)](_0x459751);
1375
- if (_0x42ad05) {
1376
- _0x16d9c2[_0x16c11d(_0x2b0a59._0x56b677)]({
1377
- 'attachments': _0x42ad05[_0x16c11d(_0x2b0a59._0x5d6aa3)],
1378
- 'content': _0x42ad05[_0x16c11d(0x1ad)],
1379
- 'createdAt': _0x42ad05[_0x16c11d(0x21f)],
1380
- ..._0x42ad05[_0x16c11d(0x109)] ? { 'kind': _0x42ad05[_0x16c11d(0x109)] } : {},
1381
- 'messageId': _0x42ad05[_0x16c11d(0x1cd)],
1382
- 'senderName': _0x42ad05['senderName'],
1383
- 'senderType': _0x42ad05[_0x16c11d(0x14b)],
1384
- 'target': _0x84ca25,
1385
- ..._0x588ef8 ? { 'targetedTask': !![] } : {}
1386
- });
1387
- continue;
1388
- }
1389
- if (_0x371a4f) {
1390
- const _0x5f95dd = typeof _0x1c48c6?.[_0x16c11d(0x199)] === _0x16c11d(_0x2b0a59._0x43e319) ? _0x1c48c6[_0x16c11d(0x199)] : '', _0x35b0fa = typeof _0x1c48c6?.[_0x16c11d(0x18b)] === _0x16c11d(_0x2b0a59._0x5efffd) ? _0x1c48c6['bodyMarkdown'] : '', _0x7751a8 = typeof _0x1c48c6?.[_0x16c11d(0x109)] === _0x16c11d(_0x2b0a59._0x140d59) && _0x1c48c6[_0x16c11d(_0x2b0a59._0x48fdd3)] !== _0x16c11d(_0x2b0a59._0xd09ea1) ? _0x1c48c6[_0x16c11d(0x109)] : void 0x0;
1391
- _0x5f95dd && _0x35b0fa && _0x16d9c2[_0x16c11d(_0x2b0a59._0x56b677)]({
1392
- 'attachments': [],
1393
- 'content': _0x35b0fa,
1394
- 'createdAt': new Date()['toISOString'](),
1395
- ..._0x7751a8 ? { 'kind': _0x7751a8 } : {},
1396
- 'messageId': _0x459751,
1397
- 'senderName': _0x182591(_0x5f95dd, _0x30fc57),
1398
- 'senderType': _0x197210(_0x5f95dd, _0x30fc57),
1399
- 'target': _0x84ca25,
1400
- ..._0x588ef8 ? { 'targetedTask': !![] } : {}
1401
- });
1402
- }
1403
- }
1404
- }
1405
- if (_0x4fe55c > 0x0) {
1406
- if (_0x4b10f6)
1407
- await _0xea8f84(_0x4fe55c);
1408
- else
1409
- _0x4b103e && await _0x116268(_0x4fe55c);
1410
- }
1411
- return _0x4fe55c > _0xc87b39 && (_0xc87b39 = _0x4fe55c), { 'messages': _0x16d9c2 };
1412
- }
1417
+ _0x5707 = function () {
1418
+ return _0x3d105e;
1413
1419
  };
1420
+ return _0x5707();
1414
1421
  }
1415
- function toLocalTime(_0x4db02b) {
1416
- const _0x4de3bd = { _0x45de5f: 0x1c5 }, _0x218fba = _0x548baf, _0x3de321 = new Date(_0x4db02b);
1417
- if (Number[_0x218fba(0x1f3)](_0x3de321['getTime']()))
1418
- return _0x4db02b;
1419
- const _0x5a2a30 = _0x4ce1ee => String(_0x4ce1ee)['padStart'](0x2, '0');
1420
- return _0x3de321[_0x218fba(0x20a)]() + '-' + _0x5a2a30(_0x3de321[_0x218fba(0x1ba)]() + 0x1) + '-' + _0x5a2a30(_0x3de321[_0x218fba(_0x4de3bd._0x45de5f)]()) + '\x20' + _0x5a2a30(_0x3de321[_0x218fba(0x122)]()) + ':' + _0x5a2a30(_0x3de321[_0x218fba(0x102)]()) + ':' + _0x5a2a30(_0x3de321['getSeconds']());
1422
+ function toLocalTime(_0xb6ccdb) {
1423
+ const _0x53f00a = {
1424
+ _0x340c53: 0x2aa,
1425
+ _0x47f679: 0x21f,
1426
+ _0x744d62: 0x18c
1427
+ }, _0x18d881 = _0x5e54a5, _0x405ea1 = new Date(_0xb6ccdb);
1428
+ if (Number[_0x18d881(0x2ec)](_0x405ea1[_0x18d881(_0x53f00a._0x340c53)]()))
1429
+ return _0xb6ccdb;
1430
+ const _0x161fff = _0x1a945e => String(_0x1a945e)['padStart'](0x2, '0');
1431
+ return _0x405ea1[_0x18d881(_0x53f00a._0x47f679)]() + '-' + _0x161fff(_0x405ea1['getMonth']() + 0x1) + '-' + _0x161fff(_0x405ea1[_0x18d881(0x1f2)]()) + '\x20' + _0x161fff(_0x405ea1['getHours']()) + ':' + _0x161fff(_0x405ea1['getMinutes']()) + ':' + _0x161fff(_0x405ea1[_0x18d881(_0x53f00a._0x744d62)]());
1421
1432
  }
1422
- function formatAttachmentSuffix(_0x3bec24) {
1423
- const _0x44ed50 = { _0x5508b8: 0x1d4 }, _0x5e19a9 = _0x548baf;
1424
- if (!_0x3bec24 || _0x3bec24[_0x5e19a9(0x1d4)] === 0x0)
1433
+ function formatAttachmentSuffix(_0x35ddfc) {
1434
+ const _0x91bcdf = { _0x28c197: 0x1a1 }, _0x160eab = _0x5e54a5;
1435
+ if (!_0x35ddfc || _0x35ddfc['length'] === 0x0)
1425
1436
  return '';
1426
- return '\x20[' + _0x3bec24[_0x5e19a9(0x1d4)] + _0x5e19a9(0x188) + (_0x3bec24[_0x5e19a9(_0x44ed50._0x5508b8)] > 0x1 ? 's' : '') + ':\x20' + _0x3bec24['map'](_0xb69b3f => _0xb69b3f[_0x5e19a9(0x236)] + '\x20(id:' + _0xb69b3f['id'] + ')')[_0x5e19a9(0x1a6)](',\x20') + _0x5e19a9(0x25e);
1437
+ return '\x20[' + _0x35ddfc[_0x160eab(_0x91bcdf._0x28c197)] + _0x160eab(0x295) + (_0x35ddfc[_0x160eab(0x1a1)] > 0x1 ? 's' : '') + ':\x20' + _0x35ddfc['map'](_0x2f914f => _0x2f914f[_0x160eab(0x289)] + _0x160eab(0x1a6) + _0x2f914f['id'] + ')')['join'](',\x20') + '\x20—\x20use\x20view_file\x20to\x20see]';
1427
1438
  }
1428
- function formatCheckMessages(_0x5b3351) {
1429
- const _0x366cb7 = { _0x5cd462: 0x1a6 }, _0x2e1cf4 = {
1430
- _0x3a3e1f: 0x1c3,
1431
- _0x269838: 0x193,
1432
- _0x597563: 0x196
1433
- }, _0x4e7dbf = _0x548baf;
1434
- if (_0x5b3351['length'] === 0x0)
1435
- return _0x4e7dbf(0x234);
1436
- return _0x5b3351['map'](_0xa5e0a4 => {
1437
- const _0xdef18f = _0x4e7dbf, _0x226bde = _0xa5e0a4[_0xdef18f(0x14b)] === _0xdef18f(0x16a) ? _0xdef18f(_0x2e1cf4._0x3a3e1f) : '', _0x173bfb = _0xa5e0a4['kind'] && _0xa5e0a4['kind'] !== _0xdef18f(0x172) ? _0xdef18f(0x1f7) + _0xa5e0a4[_0xdef18f(0x109)] : '';
1438
- return _0xdef18f(0x1fc) + _0xa5e0a4['target'] + _0xdef18f(_0x2e1cf4._0x269838) + _0xa5e0a4[_0xdef18f(0x1cd)][_0xdef18f(0x14a)](0x0, 0x8) + _0xdef18f(0x160) + toLocalTime(_0xa5e0a4[_0xdef18f(0x21f)]) + _0x226bde + _0x173bfb + _0xdef18f(0x1bd) + _0xa5e0a4[_0xdef18f(0x164)] + ':\x20' + _0xa5e0a4['content'] + formatAttachmentSuffix(_0xa5e0a4[_0xdef18f(_0x2e1cf4._0x597563)]);
1439
- })[_0x4e7dbf(_0x366cb7._0x5cd462)]('\x0a');
1439
+ function formatCheckMessages(_0x34b143) {
1440
+ const _0x2eb3b9 = {
1441
+ _0x48baee: 0x1a1,
1442
+ _0x324a7d: 0x172,
1443
+ _0x3e1efc: 0x209,
1444
+ _0x26cad7: 0x27f
1445
+ }, _0x394fd3 = {
1446
+ _0x18d701: 0x189,
1447
+ _0x42659f: 0x189,
1448
+ _0x411740: 0x27e,
1449
+ _0x23e4c9: 0x1b8,
1450
+ _0x419281: 0x24f,
1451
+ _0x3a947e: 0x277,
1452
+ _0x15442e: 0x29f,
1453
+ _0x27f65f: 0x243
1454
+ }, _0x312604 = _0x5e54a5;
1455
+ if (_0x34b143[_0x312604(_0x2eb3b9._0x48baee)] === 0x0)
1456
+ return _0x312604(_0x2eb3b9._0x324a7d);
1457
+ return _0x34b143[_0x312604(_0x2eb3b9._0x3e1efc)](_0xd73486 => {
1458
+ const _0x1478c0 = _0x312604, _0x4e5f4d = _0xd73486['senderType'] === 'agent' ? _0x1478c0(0x2d6) : '', _0x1d1144 = _0xd73486[_0x1478c0(_0x394fd3._0x18d701)] && _0xd73486[_0x1478c0(_0x394fd3._0x42659f)] !== 'chat' ? _0x1478c0(_0x394fd3._0x411740) + _0xd73486[_0x1478c0(0x189)] : '';
1459
+ return _0x1478c0(_0x394fd3._0x23e4c9) + _0xd73486['target'] + _0x1478c0(_0x394fd3._0x419281) + _0xd73486['messageId'][_0x1478c0(0x2ab)](0x0, 0x8) + _0x1478c0(_0x394fd3._0x3a947e) + toLocalTime(_0xd73486[_0x1478c0(_0x394fd3._0x15442e)]) + _0x4e5f4d + _0x1d1144 + _0x1478c0(_0x394fd3._0x27f65f) + _0xd73486[_0x1478c0(0x1e7)] + ':\x20' + _0xd73486['content'] + formatAttachmentSuffix(_0xd73486[_0x1478c0(0x20b)]);
1460
+ })[_0x312604(_0x2eb3b9._0x26cad7)]('\x0a');
1440
1461
  }
1441
- function formatHistory(_0x34844c) {
1442
- const _0x1d33b5 = {
1443
- _0x594678: 0x283,
1444
- _0x40e712: 0x1d4,
1445
- _0x2d312f: 0x133,
1446
- _0x39224f: 0x139,
1447
- _0x1b5a5a: 0x216,
1448
- _0x4c54eb: 0x280,
1449
- _0x35a277: 0x126,
1450
- _0x17528c: 0x10c
1451
- }, _0x4679da = {
1452
- _0x246809: 0x172,
1453
- _0x2b0a8e: 0x109,
1454
- _0x452a4d: 0x1c4,
1455
- _0x3f4f15: 0x193,
1456
- _0x328b11: 0x1ad,
1457
- _0x22be95: 0x196
1458
- }, _0x14cfd9 = _0x548baf;
1459
- if (_0x34844c[_0x14cfd9(_0x1d33b5._0x594678)][_0x14cfd9(_0x1d33b5._0x40e712)] === 0x0)
1460
- return _0x14cfd9(_0x1d33b5._0x2d312f) + _0x34844c[_0x14cfd9(_0x1d33b5._0x39224f)] + _0x14cfd9(_0x1d33b5._0x1b5a5a);
1461
- const _0x2dc70a = _0x34844c[_0x14cfd9(0x283)][_0x14cfd9(_0x1d33b5._0x4c54eb)](_0x4b0059 => {
1462
- const _0x48680d = _0x14cfd9, _0x3d7713 = _0x4b0059[_0x48680d(0x14b)] === _0x48680d(0x16a) ? _0x48680d(0x1c3) : '', _0x1bf0ab = _0x4b0059['kind'] && _0x4b0059[_0x48680d(0x109)] !== _0x48680d(_0x4679da._0x246809) ? '\x20kind=' + _0x4b0059[_0x48680d(_0x4679da._0x2b0a8e)] : '';
1463
- return _0x48680d(_0x4679da._0x452a4d) + _0x4b0059[_0x48680d(0x11d)] + _0x48680d(_0x4679da._0x3f4f15) + _0x4b0059[_0x48680d(0x1cd)] + _0x48680d(0x160) + toLocalTime(_0x4b0059[_0x48680d(0x21f)]) + _0x3d7713 + _0x1bf0ab + _0x48680d(0x1bd) + _0x4b0059[_0x48680d(0x164)] + ':\x20' + _0x4b0059[_0x48680d(_0x4679da._0x328b11)] + formatAttachmentSuffix(_0x4b0059[_0x48680d(_0x4679da._0x22be95)]);
1464
- })['join']('\x0a'), _0x177c14 = _0x34844c[_0x14cfd9(0x271)] && _0x34844c[_0x14cfd9(_0x1d33b5._0x35a277)] ? _0x14cfd9(0x1bc) + _0x34844c['messages'][_0x14cfd9(_0x1d33b5._0x40e712)] + _0x14cfd9(_0x1d33b5._0x17528c) + _0x34844c['nextCursor'] + _0x14cfd9(0x23e) : '';
1465
- return _0x14cfd9(_0x1d33b5._0x2d312f) + _0x34844c[_0x14cfd9(_0x1d33b5._0x39224f)] + '\x20(' + _0x34844c['messages'][_0x14cfd9(0x1d4)] + '\x20messages)\x0a\x0a' + _0x2dc70a + _0x177c14;
1462
+ function formatHistory(_0xb81bde) {
1463
+ const _0x47ec0b = {
1464
+ _0x4b7c02: 0x264,
1465
+ _0x315d43: 0x19a,
1466
+ _0x3806a6: 0x298,
1467
+ _0x41e3e0: 0x1a1
1468
+ }, _0x4163e6 = {
1469
+ _0x3b18f7: 0x1d6,
1470
+ _0x3cb114: 0x2d1,
1471
+ _0x4d3b6d: 0x2d6,
1472
+ _0x1af0a8: 0x189,
1473
+ _0x4cc131: 0x189,
1474
+ _0x4cd8c6: 0x27e,
1475
+ _0xcd5f02: 0x24f,
1476
+ _0x433048: 0x277,
1477
+ _0x339cab: 0x1e7,
1478
+ _0x32c6d7: 0x22f,
1479
+ _0x37831e: 0x20b
1480
+ }, _0x239665 = _0x5e54a5;
1481
+ if (_0xb81bde[_0x239665(_0x47ec0b._0x4b7c02)]['length'] === 0x0)
1482
+ return '##\x20Message\x20History\x20for\x20' + _0xb81bde[_0x239665(0x298)] + '\x20(0\x20messages)\x0a\x0aNo\x20messages\x20in\x20this\x20channel.';
1483
+ const _0x31a54b = _0xb81bde['messages'][_0x239665(0x209)](_0x2c4631 => {
1484
+ const _0x579053 = _0x239665, _0x1b77fc = _0x2c4631[_0x579053(_0x4163e6._0x3b18f7)] === _0x579053(_0x4163e6._0x3cb114) ? _0x579053(_0x4163e6._0x4d3b6d) : '', _0x30dd40 = _0x2c4631[_0x579053(_0x4163e6._0x1af0a8)] && _0x2c4631[_0x579053(_0x4163e6._0x4cc131)] !== _0x579053(0x28f) ? _0x579053(_0x4163e6._0x4cd8c6) + _0x2c4631['kind'] : '';
1485
+ return '[seq=' + _0x2c4631['seq'] + _0x579053(_0x4163e6._0xcd5f02) + _0x2c4631[_0x579053(0x210)] + _0x579053(_0x4163e6._0x433048) + toLocalTime(_0x2c4631[_0x579053(0x29f)]) + _0x1b77fc + _0x30dd40 + _0x579053(0x243) + _0x2c4631[_0x579053(_0x4163e6._0x339cab)] + ':\x20' + _0x2c4631[_0x579053(_0x4163e6._0x32c6d7)] + formatAttachmentSuffix(_0x2c4631[_0x579053(_0x4163e6._0x37831e)]);
1486
+ })['join']('\x0a'), _0x4be725 = _0xb81bde['hasMore'] && _0xb81bde['nextCursor'] ? _0x239665(_0x47ec0b._0x315d43) + _0xb81bde['messages']['length'] + '\x20messages\x20shown.\x20Use\x20before=' + _0xb81bde[_0x239665(0x1ee)] + _0x239665(0x1ab) : '';
1487
+ return _0x239665(0x1b1) + _0xb81bde[_0x239665(_0x47ec0b._0x3806a6)] + '\x20(' + _0xb81bde['messages'][_0x239665(_0x47ec0b._0x41e3e0)] + _0x239665(0x181) + _0x31a54b + _0x4be725;
1466
1488
  }
1467
- function formatServerDirectory(_0x5b1f7e) {
1468
- const _0x233896 = {
1469
- _0x581d29: 0x1d4,
1470
- _0x524787: 0x18f,
1471
- _0x596a46: 0x1e4,
1472
- _0x57d0e2: 0x1a6,
1473
- _0x8eb358: 0x18f,
1474
- _0x1be9c5: 0x19e
1475
- }, _0xec5130 = _0x548baf, _0x21fb2c = _0x5b1f7e[_0xec5130(0x209)][_0xec5130(_0x233896._0x581d29)] > 0x0 ? _0x5b1f7e[_0xec5130(0x209)]['map'](_0x513d3a => _0x513d3a[_0xec5130(0x237)] ? _0xec5130(0x194) + _0x513d3a[_0xec5130(0x1b8)] + '\x20—\x20' + _0x513d3a[_0xec5130(0x237)] : _0xec5130(0x194) + _0x513d3a[_0xec5130(0x1b8)])[_0xec5130(0x1a6)]('\x0a') : _0xec5130(_0x233896._0x524787), _0x492781 = _0x5b1f7e[_0xec5130(_0x233896._0x596a46)][_0xec5130(0x1d4)] > 0x0 ? _0x5b1f7e[_0xec5130(0x1e4)][_0xec5130(0x280)](_0x323e32 => _0xec5130(0x128) + _0x323e32[_0xec5130(0x1b8)])[_0xec5130(_0x233896._0x57d0e2)]('\x0a') : _0xec5130(_0x233896._0x524787), _0x411788 = _0x5b1f7e[_0xec5130(0x1c0)][_0xec5130(_0x233896._0x581d29)] > 0x0 ? _0x5b1f7e[_0xec5130(0x1c0)]['map'](_0x4258bc => _0xec5130(0x128) + _0x4258bc['name'])['join']('\x0a') : _0xec5130(_0x233896._0x8eb358);
1489
+ function formatServerDirectory(_0x5cb532) {
1490
+ const _0x334119 = {
1491
+ _0x1b3d64: 0x27f,
1492
+ _0x57abc4: 0x18f,
1493
+ _0x4240fe: 0x209
1494
+ }, _0xab5276 = _0x5e54a5, _0x223727 = _0x5cb532['channels']['length'] > 0x0 ? _0x5cb532[_0xab5276(0x262)][_0xab5276(0x209)](_0x23124e => _0x23124e['description'] ? _0xab5276(0x271) + _0x23124e['name'] + _0xab5276(0x27d) + _0x23124e[_0xab5276(0x281)] : _0xab5276(0x271) + _0x23124e[_0xab5276(0x1a4)])[_0xab5276(_0x334119._0x1b3d64)]('\x0a') : _0xab5276(_0x334119._0x57abc4), _0x481ae1 = _0x5cb532['agents']['length'] > 0x0 ? _0x5cb532['agents'][_0xab5276(0x209)](_0x8f3e07 => _0xab5276(0x167) + _0x8f3e07['name'])[_0xab5276(0x27f)]('\x0a') : _0xab5276(0x18f), _0x50591c = _0x5cb532['humans'][_0xab5276(0x1a1)] > 0x0 ? _0x5cb532[_0xab5276(0x183)][_0xab5276(_0x334119._0x4240fe)](_0x318c07 => _0xab5276(0x167) + _0x318c07[_0xab5276(0x1a4)])[_0xab5276(_0x334119._0x1b3d64)]('\x0a') : _0xab5276(0x18f);
1476
1495
  return [
1477
- _0xec5130(_0x233896._0x1be9c5) + _0x5b1f7e[_0xec5130(0x1a1)],
1496
+ _0xab5276(0x20e) + _0x5cb532[_0xab5276(0x1f0)],
1478
1497
  '',
1479
- '###\x20Channels',
1480
- _0x21fb2c,
1498
+ _0xab5276(0x1fa),
1499
+ _0x223727,
1481
1500
  '',
1482
1501
  '###\x20Agents',
1483
- _0x492781,
1502
+ _0x481ae1,
1484
1503
  '',
1485
- '###\x20Humans',
1486
- _0x411788
1487
- ][_0xec5130(0x1a6)]('\x0a');
1504
+ _0xab5276(0x293),
1505
+ _0x50591c
1506
+ ]['join']('\x0a');
1488
1507
  }
1489
- function formatUploadResult(_0xc9d562) {
1490
- const _0xc28623 = {
1491
- _0x43160e: 0x12c,
1492
- _0x20a68d: 0x100,
1493
- _0x27eace: 0x1fb
1494
- }, _0x32580e = _0x548baf;
1495
- return _0x32580e(_0xc28623._0x43160e) + _0xc9d562[_0x32580e(0x236)] + '\x20(' + (_0xc9d562[_0x32580e(_0xc28623._0x20a68d)] / 0x400)[_0x32580e(0x10b)](0x1) + _0x32580e(0x217) + _0xc9d562['attachmentId'] + _0x32580e(_0xc28623._0x27eace);
1508
+ function formatUploadResult(_0x3d1ce3) {
1509
+ const _0x569b79 = {
1510
+ _0x208e4d: 0x2d7,
1511
+ _0x3b3010: 0x2b7
1512
+ }, _0x261d1f = _0x5e54a5;
1513
+ return 'File\x20uploaded:\x20' + _0x3d1ce3[_0x261d1f(0x289)] + '\x20(' + (_0x3d1ce3[_0x261d1f(0x1b0)] / 0x400)[_0x261d1f(_0x569b79._0x208e4d)](0x1) + 'KB)\x0aAttachment\x20ID:\x20' + _0x3d1ce3[_0x261d1f(_0x569b79._0x3b3010)] + _0x261d1f(0x27c);
1496
1514
  }
1497
- function formatViewFileResult(_0x327ffb, _0x52a417) {
1498
- const _0x2bae2f = _0x548baf;
1499
- return _0x52a417 ? _0x2bae2f(0x27d) + _0x327ffb : 'Downloaded\x20to:\x20' + _0x327ffb;
1515
+ function formatViewFileResult(_0x4138f2, _0x4e5eea) {
1516
+ const _0x375a05 = _0x5e54a5;
1517
+ return _0x4e5eea ? _0x375a05(0x19f) + _0x4138f2 : _0x375a05(0x266) + _0x4138f2;
1500
1518
  }
1501
- function formatTaskList(_0x3a8eeb, _0x33a6dc) {
1502
- const _0x47c552 = { _0x56a29c: 0x1a6 }, _0x190ea9 = {
1503
- _0x41e9bd: 0x26b,
1504
- _0x25fe97: 0x181,
1505
- _0x4c679a: 0x11f,
1506
- _0x50ab03: 0x1cd,
1507
- _0x14e299: 0x27e,
1508
- _0x3f9347: 0x135,
1509
- _0x36a7de: 0x21a,
1510
- _0x4b909c: 0x13c,
1511
- _0x29aa50: 0x16e
1512
- }, _0x4757b4 = _0x548baf;
1513
- if (_0x3a8eeb['length'] === 0x0)
1514
- return 'No\x20tasks\x20found.';
1515
- return _0x3a8eeb['map'](_0x399325 => {
1516
- const _0xbb77b2 = _0x7c22, _0xf2d8e9 = _0x399325[_0xbb77b2(_0x190ea9._0x41e9bd)] == null ? _0xbb77b2(_0x190ea9._0x25fe97) : _0x399325['subtaskNumber'] != null ? '#' + _0x399325[_0xbb77b2(0x26b)] + '.' + _0x399325[_0xbb77b2(_0x190ea9._0x4c679a)] : '#' + _0x399325[_0xbb77b2(_0x190ea9._0x41e9bd)], _0x47863c = _0x399325['messageId'] ? _0xbb77b2(0x207) + _0x399325[_0xbb77b2(_0x190ea9._0x50ab03)] : '', _0x1eaea2 = _0x33a6dc && _0x399325[_0xbb77b2(_0x190ea9._0x41e9bd)] != null && !_0x399325[_0xbb77b2(_0x190ea9._0x4c679a)] && _0x33a6dc[_0xbb77b2(_0x190ea9._0x14e299)](_0x399325['taskNumber']) ? '\x20executionMode=worker' : '', _0x206838 = _0x399325[_0xbb77b2(_0x190ea9._0x3f9347)] != null && _0x399325[_0xbb77b2(_0x190ea9._0x3f9347)] > 0x0 ? '\x20(' + (_0x399325['childrenDone'] ?? 0x0) + '/' + _0x399325[_0xbb77b2(0x135)] + _0xbb77b2(_0x190ea9._0x36a7de) : '', _0x45a005 = _0x399325[_0xbb77b2(_0x190ea9._0x4b909c)] ? '\x20assignee=@' + _0x399325[_0xbb77b2(0x13c)] : '';
1517
- return _0xf2d8e9 + '\x20[' + _0x399325['status'] + ']\x20' + _0x399325[_0xbb77b2(_0x190ea9._0x29aa50)] + _0x206838 + _0x45a005 + _0x47863c + _0x1eaea2;
1518
- })[_0x4757b4(_0x47c552._0x56a29c)]('\x0a');
1519
+ function formatTaskList(_0x4dd39f, _0x36dc03) {
1520
+ const _0x573524 = {
1521
+ _0x1a4483: 0x1a5,
1522
+ _0x251de6: 0x209
1523
+ }, _0x57cc6a = {
1524
+ _0x2a548f: 0x25c,
1525
+ _0x49d411: 0x1b3,
1526
+ _0x356a0b: 0x2ad
1527
+ }, _0x16b359 = _0x5e54a5;
1528
+ if (_0x4dd39f['length'] === 0x0)
1529
+ return _0x16b359(_0x573524._0x1a4483);
1530
+ return _0x4dd39f[_0x16b359(_0x573524._0x251de6)](_0x526551 => {
1531
+ const _0x34a92d = _0x16b359, _0x1441d0 = _0x526551['taskNumber'] == null ? '(legacy)' : _0x526551[_0x34a92d(0x19e)] != null ? '#' + _0x526551[_0x34a92d(0x25c)] + '.' + _0x526551[_0x34a92d(0x19e)] : '#' + _0x526551[_0x34a92d(0x25c)], _0x5b2baf = _0x526551['messageId'] ? _0x34a92d(0x233) + _0x526551[_0x34a92d(0x210)] : '', _0x473681 = _0x36dc03 && _0x526551[_0x34a92d(_0x57cc6a._0x2a548f)] != null && !_0x526551['subtaskNumber'] && _0x36dc03['has'](_0x526551['taskNumber']) ? _0x34a92d(0x2d2) : '', _0x5bfcd7 = _0x526551[_0x34a92d(_0x57cc6a._0x49d411)] != null && _0x526551[_0x34a92d(0x1b3)] > 0x0 ? '\x20(' + (_0x526551['childrenDone'] ?? 0x0) + '/' + _0x526551[_0x34a92d(0x1b3)] + _0x34a92d(0x2e9) : '', _0x240716 = _0x526551[_0x34a92d(0x236)] ? _0x34a92d(0x22e) + _0x526551[_0x34a92d(0x236)] : '';
1532
+ return _0x1441d0 + '\x20[' + _0x526551['status'] + ']\x20' + _0x526551[_0x34a92d(_0x57cc6a._0x356a0b)] + _0x5bfcd7 + _0x240716 + _0x5b2baf + _0x473681;
1533
+ })['join']('\x0a');
1519
1534
  }
1520
- function formatCreatedTasks(_0x2793cc) {
1521
- const _0x274c15 = {
1522
- _0x320c00: 0x280,
1523
- _0x5c8fb0: 0x1a6
1524
- }, _0x41beb = { _0x55e908: 0x16e }, _0x2fa898 = _0x548baf;
1525
- if (_0x2793cc[_0x2fa898(0x1d4)] === 0x0)
1526
- return _0x2fa898(0x132);
1527
- return _0x2793cc[_0x2fa898(_0x274c15._0x320c00)](_0x483a59 => {
1528
- const _0x1dace0 = _0x2fa898, _0x351148 = _0x483a59['taskNumber'] == null ? _0x1dace0(0x181) : _0x483a59['subtaskNumber'] != null ? '#' + _0x483a59['taskNumber'] + '.' + _0x483a59[_0x1dace0(0x11f)] : '#' + _0x483a59['taskNumber'], _0x7b6c8c = _0x483a59[_0x1dace0(0x1cd)] ? _0x1dace0(0x207) + _0x483a59['messageId'] : '';
1529
- return _0x351148 + '\x20' + _0x483a59[_0x1dace0(_0x41beb._0x55e908)] + _0x7b6c8c;
1530
- })[_0x2fa898(_0x274c15._0x5c8fb0)]('\x0a');
1535
+ function formatCreatedTasks(_0x2d6daa) {
1536
+ const _0x320d42 = {
1537
+ _0x24aee5: 0x163,
1538
+ _0x5a6bca: 0x209
1539
+ }, _0x233fc4 = { _0xeb24f9: 0x19e }, _0x528c63 = _0x5e54a5;
1540
+ if (_0x2d6daa[_0x528c63(0x1a1)] === 0x0)
1541
+ return _0x528c63(_0x320d42._0x24aee5);
1542
+ return _0x2d6daa[_0x528c63(_0x320d42._0x5a6bca)](_0x565f9d => {
1543
+ const _0x870923 = _0x528c63, _0x346756 = _0x565f9d['taskNumber'] == null ? '(legacy)' : _0x565f9d[_0x870923(0x19e)] != null ? '#' + _0x565f9d[_0x870923(0x25c)] + '.' + _0x565f9d[_0x870923(_0x233fc4._0xeb24f9)] : '#' + _0x565f9d['taskNumber'], _0x5285a6 = _0x565f9d[_0x870923(0x210)] ? _0x870923(0x233) + _0x565f9d[_0x870923(0x210)] : '';
1544
+ return _0x346756 + '\x20' + _0x565f9d[_0x870923(0x2ad)] + _0x5285a6;
1545
+ })['join']('\x0a');
1531
1546
  }
1532
- function formatClaimTaskLabel(_0x35ac3d, _0x8a9861) {
1533
- if (_0x35ac3d == null)
1534
- return '(legacy)';
1535
- return _0x8a9861 != null ? '#' + _0x35ac3d + '.' + _0x8a9861 : '#' + _0x35ac3d;
1547
+ function formatClaimTaskLabel(_0x51ae5d, _0x4087b2) {
1548
+ const _0x5e7d8c = _0x5e54a5;
1549
+ if (_0x51ae5d == null)
1550
+ return _0x5e7d8c(0x237);
1551
+ return _0x4087b2 != null ? '#' + _0x51ae5d + '.' + _0x4087b2 : '#' + _0x51ae5d;
1536
1552
  }
1537
- function formatClaimTaskResults(_0x4acabd) {
1538
- const _0x4179e3 = { _0x1255a0: 0x1a6 }, _0x31b908 = {
1539
- _0x89ed1a: 0x26b,
1540
- _0x3f9293: 0x13e,
1541
- _0x22bb9b: 0x13e,
1542
- _0x424416: 0x20d,
1543
- _0x2badca: 0x149,
1544
- _0x3a1a02: 0x1fe,
1545
- _0x3f2ee0: 0x13e,
1546
- _0x20d1db: 0x200,
1547
- _0xf9af8a: 0x1ca,
1548
- _0x505103: 0x16d,
1549
- _0x234b5c: 0x149,
1550
- _0x585829: 0x1cd,
1551
- _0x559b05: 0x11f,
1552
- _0x4abf4b: 0x115
1553
- }, _0x46b9eb = _0x548baf;
1554
- if (_0x4acabd['length'] === 0x0)
1555
- return 'No\x20tasks\x20claimed.';
1556
- return _0x4acabd['map'](_0x562ccd => {
1557
- const _0x3dcfa6 = _0x7c22;
1558
- if (_0x562ccd['success']) {
1559
- const _0x2a7003 = formatClaimTaskLabel(_0x562ccd[_0x3dcfa6(_0x31b908._0x89ed1a)], _0x562ccd[_0x3dcfa6(0x11f)]), _0x237d3e = _0x562ccd[_0x3dcfa6(0x1cd)] ? _0x3dcfa6(0x207) + _0x562ccd[_0x3dcfa6(0x1cd)] : '';
1560
- if (_0x562ccd[_0x3dcfa6(0x23d)]) {
1561
- const _0x5eab8e = [
1562
- _0x3dcfa6(0x19f),
1563
- _0x562ccd[_0x3dcfa6(0x106)] ? _0x3dcfa6(0x1e7) : null,
1564
- _0x562ccd[_0x3dcfa6(_0x31b908._0x3f9293)] ? _0x3dcfa6(0x1b2) + _0x562ccd[_0x3dcfa6(_0x31b908._0x22bb9b)] : null,
1565
- _0x562ccd['threadTarget'] ? _0x3dcfa6(0x22d) + _0x562ccd[_0x3dcfa6(0x189)] : null,
1566
- _0x562ccd[_0x3dcfa6(0x20d)] ? 'workerDisposition=' + _0x562ccd[_0x3dcfa6(_0x31b908._0x424416)] : null
1567
- ]['filter'](Boolean)[_0x3dcfa6(0x1a6)]('\x20');
1568
- return _0x2a7003 + _0x3dcfa6(_0x31b908._0x2badca) + _0x237d3e + '\x20' + _0x5eab8e + _0x3dcfa6(_0x31b908._0x3a1a02);
1553
+ function formatClaimTaskResults(_0x389b75) {
1554
+ const _0x26c070 = {
1555
+ _0x2f126d: 0x1a1,
1556
+ _0x3910b6: 0x1be,
1557
+ _0x53eead: 0x27f
1558
+ }, _0x35b613 = {
1559
+ _0x3829c6: 0x1bb,
1560
+ _0x25f9c3: 0x210,
1561
+ _0x6b31d0: 0x1f4,
1562
+ _0x390672: 0x1c7,
1563
+ _0x19e084: 0x280,
1564
+ _0x3e746e: 0x261,
1565
+ _0x4541cf: 0x2ca,
1566
+ _0x3d3aff: 0x222,
1567
+ _0x55b643: 0x27f,
1568
+ _0x2847b6: 0x188,
1569
+ _0x135967: 0x248,
1570
+ _0x52814e: 0x294,
1571
+ _0x5e2a80: 0x199,
1572
+ _0x48d42a: 0x195,
1573
+ _0x10348f: 0x254
1574
+ }, _0x2617bd = _0x5e54a5;
1575
+ if (_0x389b75[_0x2617bd(_0x26c070._0x2f126d)] === 0x0)
1576
+ return _0x2617bd(_0x26c070._0x3910b6);
1577
+ return _0x389b75['map'](_0x4b91ac => {
1578
+ const _0x2b8119 = _0x2617bd;
1579
+ if (_0x4b91ac[_0x2b8119(_0x35b613._0x3829c6)]) {
1580
+ const _0x192aca = formatClaimTaskLabel(_0x4b91ac['taskNumber'], _0x4b91ac['subtaskNumber']), _0x2ac57b = _0x4b91ac[_0x2b8119(_0x35b613._0x25f9c3)] ? '\x20message=' + _0x4b91ac[_0x2b8119(_0x35b613._0x25f9c3)] : '';
1581
+ if (_0x4b91ac[_0x2b8119(0x24b)]) {
1582
+ const _0x31a59b = [
1583
+ _0x2b8119(_0x35b613._0x6b31d0),
1584
+ _0x4b91ac[_0x2b8119(_0x35b613._0x390672)] ? _0x2b8119(_0x35b613._0x19e084) : null,
1585
+ _0x4b91ac[_0x2b8119(0x2c2)] ? _0x2b8119(_0x35b613._0x3e746e) + _0x4b91ac['executionMode'] : null,
1586
+ _0x4b91ac[_0x2b8119(0x18d)] ? _0x2b8119(_0x35b613._0x4541cf) + _0x4b91ac[_0x2b8119(0x18d)] : null,
1587
+ _0x4b91ac['workerDisposition'] ? _0x2b8119(_0x35b613._0x3d3aff) + _0x4b91ac[_0x2b8119(0x20c)] : null
1588
+ ][_0x2b8119(0x2de)](Boolean)[_0x2b8119(_0x35b613._0x55b643)]('\x20');
1589
+ return _0x192aca + _0x2b8119(0x1fc) + _0x2ac57b + '\x20' + _0x31a59b + _0x2b8119(_0x35b613._0x2847b6);
1569
1590
  }
1570
- if (_0x562ccd[_0x3dcfa6(_0x31b908._0x3f2ee0)] === _0x3dcfa6(_0x31b908._0x20d1db))
1571
- return _0x2a7003 + _0x3dcfa6(0x149) + _0x237d3e + _0x3dcfa6(0x11e);
1572
- const _0x12e4b0 = _0x562ccd[_0x3dcfa6(_0x31b908._0xf9af8a)] ? _0x3dcfa6(_0x31b908._0x505103) + _0x562ccd['workerHandoffError'] : '';
1573
- return _0x2a7003 + _0x3dcfa6(_0x31b908._0x234b5c) + _0x237d3e + _0x12e4b0;
1591
+ if (_0x4b91ac[_0x2b8119(0x2c2)] === _0x2b8119(_0x35b613._0x135967))
1592
+ return _0x192aca + '\x20claimed' + _0x2ac57b + _0x2b8119(_0x35b613._0x52814e);
1593
+ const _0x294fa4 = _0x4b91ac['workerHandoffError'] ? _0x2b8119(0x1a7) + _0x4b91ac[_0x2b8119(0x297)] : '';
1594
+ return _0x192aca + _0x2b8119(0x1fc) + _0x2ac57b + _0x294fa4;
1574
1595
  }
1575
- const _0x214bcb = _0x562ccd['taskNumber'] == null ? _0x562ccd[_0x3dcfa6(_0x31b908._0x585829)] ?? '(unknown)' : formatClaimTaskLabel(_0x562ccd[_0x3dcfa6(0x26b)], _0x562ccd[_0x3dcfa6(_0x31b908._0x559b05)]);
1576
- return _0x214bcb + _0x3dcfa6(_0x31b908._0x4abf4b) + (_0x562ccd[_0x3dcfa6(0x255)] ?? 'claim\x20failed');
1577
- })[_0x46b9eb(_0x4179e3._0x1255a0)]('\x0a');
1596
+ const _0x5818a2 = _0x4b91ac[_0x2b8119(0x25c)] == null ? _0x4b91ac[_0x2b8119(_0x35b613._0x25f9c3)] ?? _0x2b8119(_0x35b613._0x5e2a80) : formatClaimTaskLabel(_0x4b91ac['taskNumber'], _0x4b91ac[_0x2b8119(0x19e)]);
1597
+ return _0x5818a2 + _0x2b8119(0x2a9) + (_0x4b91ac[_0x2b8119(_0x35b613._0x48d42a)] ?? _0x2b8119(_0x35b613._0x10348f));
1598
+ })[_0x2617bd(_0x26c070._0x53eead)]('\x0a');
1578
1599
  }
1579
- function formatUnclaimTaskResult(_0xbb8908) {
1580
- const _0x807f74 = {
1581
- _0x25fdff: 0x26b,
1582
- _0x34f894: 0x181,
1583
- _0x5aff2b: 0x11f,
1584
- _0x40323f: 0x25c
1585
- }, _0x81dc49 = _0x548baf, _0x1e53a7 = _0xbb8908[_0x81dc49(_0x807f74._0x25fdff)] == null ? _0x81dc49(_0x807f74._0x34f894) : _0xbb8908[_0x81dc49(0x11f)] != null ? '#' + _0xbb8908[_0x81dc49(0x26b)] + '.' + _0xbb8908[_0x81dc49(_0x807f74._0x5aff2b)] : '#' + _0xbb8908[_0x81dc49(0x26b)];
1586
- return _0x1e53a7 + _0x81dc49(_0x807f74._0x40323f) + _0xbb8908[_0x81dc49(0x269)];
1600
+ function formatUnclaimTaskResult(_0x300725) {
1601
+ const _0x5b209d = {
1602
+ _0x248bc8: 0x19e,
1603
+ _0x760a01: 0x25c,
1604
+ _0xf5f533: 0x2bc
1605
+ }, _0x828133 = _0x5e54a5, _0x56e35f = _0x300725[_0x828133(0x25c)] == null ? _0x828133(0x237) : _0x300725[_0x828133(_0x5b209d._0x248bc8)] != null ? '#' + _0x300725['taskNumber'] + '.' + _0x300725['subtaskNumber'] : '#' + _0x300725[_0x828133(_0x5b209d._0x760a01)];
1606
+ return _0x56e35f + _0x828133(_0x5b209d._0xf5f533) + _0x300725['status'];
1587
1607
  }
1588
- function formatUpdateTaskStatusResult(_0x857d73) {
1589
- const _0x97fb40 = {
1590
- _0x8d924: 0x11f,
1591
- _0x587b9b: 0x269,
1592
- _0x6c23c6: 0x243
1593
- }, _0x34f2ad = _0x548baf, _0x3aa108 = _0x857d73['taskNumber'] == null ? _0x34f2ad(0x181) : _0x857d73['subtaskNumber'] != null ? '#' + _0x857d73[_0x34f2ad(0x26b)] + '.' + _0x857d73[_0x34f2ad(_0x97fb40._0x8d924)] : '#' + _0x857d73['taskNumber'], _0xfae0d6 = _0x3aa108 + '\x20status=' + _0x857d73['status'];
1594
- if (_0x857d73[_0x34f2ad(_0x97fb40._0x587b9b)] !== _0x34f2ad(_0x97fb40._0x6c23c6))
1595
- return _0xfae0d6;
1596
- return _0xfae0d6 + '\x0aIf\x20your\x20memory\x20or\x20channel\x20rules\x20require\x20review,\x20send\x20a\x20message\x20mentioning\x20the\x20reviewer\x20before\x20parking.';
1608
+ function formatUpdateTaskStatusResult(_0x3e1be0) {
1609
+ const _0x408b87 = {
1610
+ _0x1825f4: 0x25c,
1611
+ _0x32bef7: 0x237,
1612
+ _0x50844c: 0x2bc,
1613
+ _0x54b0b1: 0x1f3,
1614
+ _0x3bf815: 0x27b,
1615
+ _0x58455e: 0x2d0
1616
+ }, _0x35c882 = _0x5e54a5, _0x3eafe8 = _0x3e1be0[_0x35c882(_0x408b87._0x1825f4)] == null ? _0x35c882(_0x408b87._0x32bef7) : _0x3e1be0[_0x35c882(0x19e)] != null ? '#' + _0x3e1be0[_0x35c882(0x25c)] + '.' + _0x3e1be0[_0x35c882(0x19e)] : '#' + _0x3e1be0['taskNumber'], _0x4ac478 = _0x3eafe8 + _0x35c882(_0x408b87._0x50844c) + _0x3e1be0[_0x35c882(_0x408b87._0x54b0b1)];
1617
+ if (_0x3e1be0[_0x35c882(_0x408b87._0x54b0b1)] !== _0x35c882(_0x408b87._0x3bf815))
1618
+ return _0x4ac478;
1619
+ return _0x4ac478 + _0x35c882(_0x408b87._0x58455e);
1597
1620
  }
1598
1621
  function getChatBridgeToolDefinitions() {
1599
- const _0x4ec0d4 = {
1600
- _0x10e2ac: 0x131,
1601
- _0x3aa05c: 0x1f2,
1602
- _0x13402f: 0x268,
1603
- _0x3c44e5: 0x1b3
1604
- }, _0x274a46 = _0x548baf;
1622
+ const _0x42050c = {
1623
+ _0x2412eb: 0x160,
1624
+ _0x4b6df5: 0x2b9,
1625
+ _0x255265: 0x173,
1626
+ _0x57a2dc: 0x24a,
1627
+ _0x14760b: 0x256,
1628
+ _0x42385f: 0x1cd,
1629
+ _0x3975b8: 0x2b6,
1630
+ _0x3ebacf: 0x2ee
1631
+ }, _0x211862 = _0x5e54a5;
1605
1632
  return [
1606
- { 'name': _0x274a46(0x1d2) },
1607
- { 'name': 'check_messages' },
1608
- { 'name': _0x274a46(0x211) },
1609
- { 'name': _0x274a46(0x1dd) },
1610
- { 'name': 'upload_file' },
1633
+ { 'name': _0x211862(_0x42050c._0x2412eb) },
1634
+ { 'name': _0x211862(0x284) },
1635
+ { 'name': 'read_history' },
1636
+ { 'name': _0x211862(0x1cc) },
1637
+ { 'name': _0x211862(_0x42050c._0x4b6df5) },
1611
1638
  { 'name': 'view_file' },
1612
- { 'name': _0x274a46(0x1e8) },
1613
- { 'name': _0x274a46(_0x4ec0d4._0x10e2ac) },
1639
+ { 'name': 'list_tasks' },
1640
+ { 'name': _0x211862(_0x42050c._0x255265) },
1614
1641
  { 'name': 'claim_tasks' },
1615
- { 'name': _0x274a46(0x27b) },
1616
- { 'name': _0x274a46(0x121) },
1617
- { 'name': _0x274a46(_0x4ec0d4._0x3aa05c) },
1618
- { 'name': _0x274a46(_0x4ec0d4._0x13402f) },
1619
- { 'name': 'escalate_to_main' },
1620
- { 'name': _0x274a46(_0x4ec0d4._0x3c44e5) }
1642
+ { 'name': _0x211862(_0x42050c._0x57a2dc) },
1643
+ { 'name': 'update_task_status' },
1644
+ { 'name': _0x211862(_0x42050c._0x14760b) },
1645
+ { 'name': _0x211862(_0x42050c._0x42385f) },
1646
+ { 'name': _0x211862(_0x42050c._0x3975b8) },
1647
+ { 'name': _0x211862(_0x42050c._0x3ebacf) }
1621
1648
  ];
1622
1649
  }
1623
- function createChatBridgeHandlers(_0x5dab7a) {
1624
- const _0x1dfa17 = { _0x3f1bce: 0x253 }, _0x36bfd6 = {
1625
- _0x4b6c93: 0x249,
1626
- _0x5256b2: 0x1a8,
1627
- _0x583923: 0x23a,
1628
- _0x3d0abb: 0x1f0,
1629
- _0x43875d: 0x103,
1630
- _0x187158: 0x1b7
1631
- }, _0x1b3c23 = {
1632
- _0x5ec8d7: 0x227,
1633
- _0xfdb28: 0x1b5,
1634
- _0x534c86: 0x1f6,
1635
- _0x1f30cc: 0x14f,
1636
- _0x16db75: 0x278
1637
- }, _0x8172d5 = {
1638
- _0x1700ca: 0x227,
1639
- _0x210a5b: 0x23c,
1640
- _0x4104ce: 0x179,
1641
- _0x4ecc24: 0x1f0,
1642
- _0x96125c: 0x1ed
1643
- }, _0x5bdf14 = {
1644
- _0xbba9be: 0x227,
1645
- _0x925ad0: 0x179,
1646
- _0x50c0a2: 0x1ab,
1647
- _0x3707d7: 0x1ed
1648
- }, _0x876707 = {
1649
- _0x5ed826: 0x20b,
1650
- _0x5325e3: 0x1e9,
1651
- _0x5e7c31: 0x24c
1652
- }, _0x578e21 = { _0x269d1c: 0x136 }, _0x1ce7a3 = { _0x1be795: 0x170 }, _0x121230 = { _0x10bd0c: 0x17a }, _0x4258d0 = {
1653
- _0x3e072e: 0x1df,
1654
- _0x14efbc: 0x19b,
1655
- _0x1f0675: 0x139,
1656
- _0x5a203b: 0x212,
1657
- _0x11babf: 0x1d4,
1658
- _0x591868: 0x10f,
1659
- _0x34e951: 0x13a,
1660
- _0x427433: 0x1d4,
1661
- _0x261756: 0x175,
1662
- _0x302e64: 0x136,
1663
- _0x4b558b: 0x280
1664
- }, _0x5db48d = {
1665
- _0x36cc07: 0x1cd,
1666
- _0x2f70a4: 0x26b,
1667
- _0x2055e5: 0x229
1668
- }, _0x36e66f = {
1669
- _0x47f947: 0x139,
1670
- _0x2cc0e4: 0x136
1671
- }, _0x5aade3 = {
1672
- _0x1dfaaa: 0x136,
1673
- _0x4c804b: 0x227,
1674
- _0x4af6de: 0x108,
1675
- _0x3dcb60: 0x1d4,
1676
- _0x585cb1: 0x264,
1677
- _0x420810: 0x26b,
1678
- _0xb67090: 0x197
1679
- }, _0x1ede31 = { _0x20b327: 0x1da }, _0x4a09c7 = {
1680
- _0x517271: 0x104,
1681
- _0x1bcee8: 0x134,
1682
- _0x16a957: 0x1c8,
1683
- _0x4cd722: 0x200,
1684
- _0x3aec3c: 0x136,
1685
- _0x3e805e: 0x1e3,
1686
- _0x204331: 0x14e,
1687
- _0xd0d87d: 0x1a4,
1688
- _0x1d5ac1: 0x26b,
1689
- _0x56a75c: 0x1d5,
1690
- _0x24987b: 0x1a0,
1691
- _0x10caaf: 0x1d5,
1692
- _0x237ac5: 0x14a,
1693
- _0x2b69b4: 0x27e,
1694
- _0x11dfe8: 0x178,
1695
- _0x5bb4c8: 0x1ff,
1696
- _0x3be80a: 0x1b6,
1697
- _0x13bf6b: 0x1ae,
1698
- _0x4ec7c7: 0x134,
1699
- _0x3793ad: 0x1a6,
1700
- _0x26f767: 0x227,
1701
- _0x3b237a: 0x1b5,
1702
- _0x251ab5: 0x134,
1703
- _0x5a49d3: 0x154,
1704
- _0xaff66e: 0x1bf,
1705
- _0x4974e1: 0x20c,
1706
- _0x557707: 0x163,
1707
- _0x54955e: 0x16f,
1708
- _0x596d8c: 0xfd,
1709
- _0x185c8d: 0x17d,
1710
- _0x4bf38d: 0x1af,
1711
- _0x18706a: 0x162,
1712
- _0x497ed0: 0x137,
1713
- _0x5a389b: 0x1e3,
1714
- _0x1a28e4: 0x262
1715
- }, _0xda4684 = {
1716
- _0x2722dc: 0x227,
1717
- _0x4d3412: 0x1b5,
1718
- _0x5d05db: 0x1df,
1719
- _0x225b2c: 0x27e,
1720
- _0x3be79b: 0x13b,
1721
- _0x242c4f: 0x1f5,
1722
- _0x118433: 0x1d9
1723
- }, _0x59fc7d = {
1724
- _0x3c26c2: 0x1b5,
1725
- _0x168ba4: 0x1d9
1726
- }, _0x5934de = {
1727
- _0x25f02c: 0x139,
1728
- _0x181875: 0x109,
1729
- _0x2a6eb4: 0x26b,
1730
- _0xeb2406: 0x181,
1731
- _0x520526: 0x200,
1732
- _0x2ba97a: 0x1c2,
1733
- _0x116305: 0x1d5,
1734
- _0x70f718: 0x1cd,
1735
- _0x5c457e: 0x215,
1736
- _0x1b8ceb: 0x181,
1737
- _0x5d1dc3: 0x1fc,
1738
- _0x216718: 0x193,
1739
- _0x313796: 0x14a,
1740
- _0x1166c6: 0x24e,
1741
- _0x3f0a68: 0x165,
1742
- _0x5e6ae9: 0x1ad,
1743
- _0x4188d4: 0x1a6,
1744
- _0x16cef9: 0x114,
1745
- _0x4c066e: 0x23a,
1746
- _0x3c6b7e: 0x180,
1747
- _0x40ea93: 0x26b,
1748
- _0x361cf9: 0x1f0,
1749
- _0x456caa: 0x1bf,
1750
- _0x9c43c7: 0x17d,
1751
- _0x3bf5d4: 0x1eb
1752
- }, _0x5b2308 = {
1753
- _0x5bab0d: 0xfe,
1754
- _0x237806: 0xfe
1755
- }, _0x440543 = _0x548baf;
1756
- function _0x3dbfff(_0x52bde8, _0x58efda) {
1757
- const _0xba2b53 = _0x7c22;
1758
- if (!_0x5dab7a['workerMode'])
1650
+ function createChatBridgeHandlers(_0x2aabed) {
1651
+ const _0x1418c4 = { _0x431a90: 0x1d7 }, _0x494eff = {
1652
+ _0x4163d8: 0x2a5,
1653
+ _0x52bee1: 0x213,
1654
+ _0x427a84: 0x1a9,
1655
+ _0x16a874: 0x1ae,
1656
+ _0xd7ca6b: 0x1c0,
1657
+ _0x41842d: 0x1d0,
1658
+ _0x571605: 0x195
1659
+ }, _0x1844b4 = {
1660
+ _0x25991e: 0x22b,
1661
+ _0x3e9e39: 0x1b6,
1662
+ _0x335eb1: 0x2ef,
1663
+ _0x5f2a3b: 0x22b,
1664
+ _0x12a1c4: 0x190,
1665
+ _0x1ae9ef: 0x175,
1666
+ _0x100d39: 0x220,
1667
+ _0x59f81d: 0x1b6,
1668
+ _0x1e2a10: 0x1c0,
1669
+ _0x4742aa: 0x218,
1670
+ _0x407425: 0x2b8
1671
+ }, _0x31e6d5 = {
1672
+ _0x3f01d9: 0x22b,
1673
+ _0x3c45d1: 0x2f0,
1674
+ _0x2da937: 0x220
1675
+ }, _0x59729b = {
1676
+ _0x52927c: 0x22b,
1677
+ _0x2eae2e: 0x1ae,
1678
+ _0x27440c: 0x218,
1679
+ _0x315703: 0x2df,
1680
+ _0x3b5b5e: 0x220,
1681
+ _0x3ee3ed: 0x250
1682
+ }, _0x1507b9 = {
1683
+ _0x563e47: 0x234,
1684
+ _0xf184ef: 0x2c8,
1685
+ _0x73e49: 0x2c4,
1686
+ _0x443222: 0x232
1687
+ }, _0x38ba99 = {
1688
+ _0x8e720a: 0x20f,
1689
+ _0x123372: 0x253,
1690
+ _0x57a2ed: 0x18b,
1691
+ _0x31e6af: 0x298
1692
+ }, _0xe06bff = { _0x30f911: 0x203 }, _0x432d4c = {
1693
+ _0x2ee253: 0x24e,
1694
+ _0x5675a9: 0x270,
1695
+ _0x319cb5: 0x1a0
1696
+ }, _0xe20664 = {
1697
+ _0x129955: 0x298,
1698
+ _0x4dcbf2: 0x1af,
1699
+ _0x8bcf65: 0x1da,
1700
+ _0x4b69db: 0x16b,
1701
+ _0x51826b: 0x276,
1702
+ _0x1aa11f: 0x278,
1703
+ _0x1af9b0: 0x209
1704
+ }, _0x510d2c = {
1705
+ _0xa94307: 0x210,
1706
+ _0x1daeeb: 0x298,
1707
+ _0xabf647: 0x25c,
1708
+ _0x45182c: 0x283
1709
+ }, _0xd6b609 = { _0xe9c2aa: 0x173 }, _0x585fc2 = {
1710
+ _0x769e49: 0x215,
1711
+ _0xbffd0b: 0x22b,
1712
+ _0x286b97: 0x1b6,
1713
+ _0x3ca304: 0x2e3,
1714
+ _0x3d8585: 0x1ae,
1715
+ _0xd9cc16: 0x2ab,
1716
+ _0x56c181: 0x282,
1717
+ _0x52807d: 0x17e,
1718
+ _0x139f73: 0x25c
1719
+ }, _0xf27901 = { _0x2a1b15: 0x26f }, _0x3f471b = {
1720
+ _0xfeb205: 0x267,
1721
+ _0x16fbf7: 0x264
1722
+ }, _0x380663 = {
1723
+ _0x4dad4f: 0x267,
1724
+ _0x16b7be: 0x227,
1725
+ _0x51fbc8: 0x1b6,
1726
+ _0x996a83: 0x16b,
1727
+ _0x5bef8b: 0x2ba,
1728
+ _0x17d8fd: 0x286,
1729
+ _0x482ecb: 0x1a2,
1730
+ _0x307b17: 0x286,
1731
+ _0x4581f1: 0x248,
1732
+ _0xbf45c3: 0x2cb,
1733
+ _0x4aefb4: 0x291,
1734
+ _0x13b586: 0x291,
1735
+ _0x96cbd: 0x25c,
1736
+ _0xbd8b9e: 0x283,
1737
+ _0x5d5f06: 0x1e5,
1738
+ _0x89f065: 0x2c3,
1739
+ _0x1f02a6: 0x2dc,
1740
+ _0x122e01: 0x1b2,
1741
+ _0xb774b8: 0x28a,
1742
+ _0x5a4144: 0x263,
1743
+ _0xaa22fd: 0x22b,
1744
+ _0x34a580: 0x211,
1745
+ _0x5d0e9b: 0x1ed,
1746
+ _0x5e1c35: 0x2d3,
1747
+ _0x208909: 0x2db,
1748
+ _0x5b8f8b: 0x2cb,
1749
+ _0x8695fa: 0x1b9
1750
+ }, _0x579520 = {
1751
+ _0x5dfc29: 0x1b6,
1752
+ _0x1c5b24: 0x22b,
1753
+ _0x23e3fe: 0x2e3,
1754
+ _0x4382c6: 0x201,
1755
+ _0x1cdbd3: 0x2d8,
1756
+ _0xb8ad29: 0x17e,
1757
+ _0x2ff2e3: 0x2be,
1758
+ _0x45c9ed: 0x2e5
1759
+ }, _0x2993f9 = {
1760
+ _0x440a9e: 0x1b6,
1761
+ _0x10a421: 0x2e3,
1762
+ _0x14c950: 0x2be,
1763
+ _0x1e901b: 0x2be
1764
+ }, _0x4a21fb = {
1765
+ _0x30b739: 0x227,
1766
+ _0x5c684b: 0x298,
1767
+ _0x294ce9: 0x189,
1768
+ _0x346b8c: 0x25c,
1769
+ _0x944015: 0x198,
1770
+ _0x1f2a76: 0x283,
1771
+ _0x1a32ba: 0x28e,
1772
+ _0x55115a: 0x210,
1773
+ _0x1cd676: 0x26f,
1774
+ _0x4f9ec5: 0x210,
1775
+ _0x33f41e: 0x22b,
1776
+ _0x337b8e: 0x213,
1777
+ _0xea8554: 0x230,
1778
+ _0x16902f: 0x1c0,
1779
+ _0x2441ca: 0x21a
1780
+ }, _0x393a47 = {
1781
+ _0x7711a1: 0x26a,
1782
+ _0xb32849: 0x1c5
1783
+ }, _0x28f47a = _0x5e54a5;
1784
+ function _0x5d7ba3(_0x2892c1, _0x4fe838) {
1785
+ const _0x423fbd = _0x3280;
1786
+ if (!_0x2aabed[_0x423fbd(0x267)])
1759
1787
  return;
1760
- if (!_0x5dab7a[_0xba2b53(_0x5b2308._0x5bab0d)])
1761
- throw new Error(_0x52bde8 + ':\x20worker\x20runtime\x20missing\x20workerThreadTarget;\x20cannot\x20validate\x20scope');
1762
- if (_0x58efda !== _0x5dab7a[_0xba2b53(0xfe)])
1763
- throw new Error(_0x52bde8 + _0xba2b53(0x1bb) + _0x5dab7a[_0xba2b53(_0x5b2308._0x237806)] + _0xba2b53(0x225) + _0x58efda);
1788
+ if (!_0x2aabed['workerThreadTarget'])
1789
+ throw new Error(_0x2892c1 + _0x423fbd(_0x393a47._0x7711a1));
1790
+ if (_0x4fe838 !== _0x2aabed[_0x423fbd(0x1c5)])
1791
+ throw new Error(_0x2892c1 + _0x423fbd(0x207) + _0x2aabed[_0x423fbd(_0x393a47._0xb32849)] + ');\x20got\x20channel=' + _0x4fe838);
1764
1792
  }
1765
- async function _0x2993ce(_0x40e8e9) {
1766
- const _0x2a5613 = _0x7c22;
1767
- if (!_0x5dab7a[_0x2a5613(0x227)] || !_0x5dab7a[_0x2a5613(0x1b5)] || _0x5dab7a[_0x2a5613(0x1df)] || _0x5dab7a[_0x2a5613(0x104)] !== !![])
1793
+ async function _0x595752(_0x1333e6) {
1794
+ const _0x589cc9 = _0x3280;
1795
+ if (!_0x2aabed['daemonLocalUrl'] || !_0x2aabed['agentId'] || _0x2aabed[_0x589cc9(0x267)] || _0x2aabed[_0x589cc9(_0x4a21fb._0x30b739)] !== !![])
1768
1796
  return null;
1769
- const _0x1cad4c = parseTarget(_0x40e8e9[_0x2a5613(_0x5934de._0x25f02c)]);
1770
- if (_0x1cad4c[_0x2a5613(_0x5934de._0x181875)] !== _0x2a5613(0x139))
1797
+ const _0x3b2d37 = parseTarget(_0x1333e6[_0x589cc9(_0x4a21fb._0x5c684b)]);
1798
+ if (_0x3b2d37[_0x589cc9(_0x4a21fb._0x294ce9)] !== _0x589cc9(0x298))
1771
1799
  return null;
1772
- if (_0x40e8e9[_0x2a5613(0x13e)] === _0x2a5613(0x200)) {
1773
- const _0xfcefb7 = _0x40e8e9[_0x2a5613(_0x5934de._0x2a6eb4)] == null ? _0x2a5613(_0x5934de._0xeb2406) : '#' + _0x40e8e9['taskNumber'];
1800
+ if (_0x1333e6['executionMode'] === _0x589cc9(0x248)) {
1801
+ const _0xfc0b60 = _0x1333e6[_0x589cc9(_0x4a21fb._0x346b8c)] == null ? _0x589cc9(0x237) : '#' + _0x1333e6[_0x589cc9(_0x4a21fb._0x346b8c)];
1774
1802
  return {
1775
- 'executionMode': _0x2a5613(_0x5934de._0x520526),
1803
+ 'executionMode': _0x589cc9(0x248),
1776
1804
  'stopMain': ![],
1777
1805
  'workerHandoff': ![],
1778
- 'workerHandoffError': _0x2a5613(0x186) + _0xfcefb7 + _0x2a5613(_0x5934de._0x2ba97a)
1806
+ 'workerHandoffError': _0x589cc9(_0x4a21fb._0x944015) + _0xfc0b60 + _0x589cc9(0x22d)
1779
1807
  };
1780
1808
  }
1781
- const _0x188d24 = _0x40e8e9[_0x2a5613(_0x5934de._0x116305)] != null ? _0x1cad4c['channelTarget'] + ':t' + _0x40e8e9[_0x2a5613(0x1d5)] : _0x1cad4c[_0x2a5613(0x1dc)] + ':' + _0x40e8e9[_0x2a5613(_0x5934de._0x70f718)];
1782
- let _0x499290;
1809
+ const _0xa3597c = _0x1333e6[_0x589cc9(_0x4a21fb._0x1f2a76)] != null ? _0x3b2d37[_0x589cc9(_0x4a21fb._0x1a32ba)] + ':t' + _0x1333e6[_0x589cc9(_0x4a21fb._0x1f2a76)] : _0x3b2d37[_0x589cc9(0x28e)] + ':' + _0x1333e6[_0x589cc9(_0x4a21fb._0x55115a)];
1810
+ let _0x12c519;
1783
1811
  try {
1784
- const _0x2c1d19 = await _0x5dab7a[_0x2a5613(0x136)][_0x2a5613(_0x5934de._0x5c457e)]({
1785
- 'channel': _0x188d24,
1812
+ const _0x15d786 = await _0x2aabed[_0x589cc9(0x16b)][_0x589cc9(_0x4a21fb._0x1cd676)]({
1813
+ 'channel': _0xa3597c,
1786
1814
  'limit': 0x14
1787
1815
  });
1788
- _0x499290 = _0x2c1d19['messages']['find'](_0x50aed4 => _0x50aed4['messageId'] === _0x40e8e9[_0x2a5613(0x1cd)]);
1816
+ _0x12c519 = _0x15d786[_0x589cc9(0x264)][_0x589cc9(0x282)](_0x400482 => _0x400482[_0x589cc9(0x210)] === _0x1333e6[_0x589cc9(0x210)]);
1789
1817
  } catch {
1790
- _0x499290 = void 0x0;
1818
+ _0x12c519 = void 0x0;
1791
1819
  }
1792
- const _0x4dd1cc = _0x40e8e9[_0x2a5613(_0x5934de._0x2a6eb4)] == null ? _0x2a5613(_0x5934de._0x1b8ceb) : '#' + _0x40e8e9[_0x2a5613(_0x5934de._0x2a6eb4)], _0xd2fdea = [
1793
- _0x2a5613(_0x5934de._0x5d1dc3) + _0x188d24 + _0x2a5613(_0x5934de._0x216718) + _0x40e8e9[_0x2a5613(0x1cd)][_0x2a5613(_0x5934de._0x313796)](0x0, 0x8) + _0x2a5613(0x160) + new Date()[_0x2a5613(0x1b6)]() + _0x2a5613(_0x5934de._0x1166c6) + _0x4dd1cc + _0x2a5613(0x17e),
1820
+ const _0xf33c91 = _0x1333e6['taskNumber'] == null ? _0x589cc9(0x237) : '#' + _0x1333e6[_0x589cc9(0x25c)], _0x5507f9 = [
1821
+ '[target=' + _0xa3597c + _0x589cc9(0x24f) + _0x1333e6[_0x589cc9(_0x4a21fb._0x4f9ec5)][_0x589cc9(0x2ab)](0x0, 0x8) + '\x20time=' + new Date()['toISOString']() + _0x589cc9(0x2c1) + _0xf33c91 + _0x589cc9(0x1fb),
1794
1822
  '',
1795
- _0x499290 ? _0x2a5613(_0x5934de._0x3f0a68) + _0x499290[_0x2a5613(_0x5934de._0x5e6ae9)] : 'Root\x20task\x20message\x20id:\x20' + _0x40e8e9[_0x2a5613(0x1cd)],
1823
+ _0x12c519 ? _0x589cc9(0x196) + _0x12c519['content'] : _0x589cc9(0x1a8) + _0x1333e6['messageId'],
1796
1824
  '',
1797
- 'Thread\x20target:\x20' + _0x188d24,
1798
- _0x2a5613(0x1fd)
1799
- ][_0x2a5613(_0x5934de._0x4188d4)]('\x0a'), _0x544c5d = await fetch(_0x5dab7a[_0x2a5613(0x227)] + _0x2a5613(_0x5934de._0x16cef9), {
1800
- 'method': 'POST',
1801
- 'headers': { 'Content-Type': _0x2a5613(_0x5934de._0x4c066e) },
1802
- 'body': JSON[_0x2a5613(0x14f)]({
1803
- 'agent_id': _0x5dab7a[_0x2a5613(0x1b5)],
1804
- 'thread_target': _0x188d24,
1825
+ _0x589cc9(0x263) + _0xa3597c,
1826
+ 'Continue\x20execution\x20in\x20this\x20thread.\x20Use\x20read_history\x20if\x20you\x20need\x20more\x20context.'
1827
+ ]['join']('\x0a'), _0x246017 = await fetch(_0x2aabed[_0x589cc9(_0x4a21fb._0x33f41e)] + '/workers/deliver', {
1828
+ 'method': _0x589cc9(0x175),
1829
+ 'headers': { 'Content-Type': _0x589cc9(_0x4a21fb._0x337b8e) },
1830
+ 'body': JSON[_0x589cc9(0x1a9)]({
1831
+ 'agent_id': _0x2aabed['agentId'],
1832
+ 'thread_target': _0xa3597c,
1805
1833
  'spawn_packet': {
1806
- 'replyTarget': _0x188d24,
1807
- ..._0x40e8e9[_0x2a5613(0x180)] ? { 'taskId': _0x40e8e9[_0x2a5613(_0x5934de._0x3c6b7e)] } : _0x40e8e9[_0x2a5613(_0x5934de._0x40ea93)] != null ? { 'taskId': 'task-' + _0x40e8e9[_0x2a5613(0x26b)] } : {}
1834
+ 'replyTarget': _0xa3597c,
1835
+ ..._0x1333e6[_0x589cc9(_0x4a21fb._0xea8554)] ? { 'taskId': _0x1333e6[_0x589cc9(0x230)] } : _0x1333e6['taskNumber'] != null ? { 'taskId': _0x589cc9(0x265) + _0x1333e6[_0x589cc9(0x25c)] } : {}
1808
1836
  },
1809
1837
  'payload': {
1810
- 'mode': _0x2a5613(0x154),
1811
- 'text': _0xd2fdea
1838
+ 'mode': 'user',
1839
+ 'text': _0x5507f9
1812
1840
  }
1813
1841
  })
1814
- }), _0x361100 = await _0x544c5d[_0x2a5613(_0x5934de._0x361cf9)]();
1815
- if (!_0x361100['ok'])
1816
- throw new Error(_0x361100[_0x2a5613(_0x5934de._0x456caa)] ?? _0x2a5613(0x229));
1842
+ }), _0x319823 = await _0x246017[_0x589cc9(0x1ae)]();
1843
+ if (!_0x319823['ok'])
1844
+ throw new Error(_0x319823[_0x589cc9(_0x4a21fb._0x16902f)] ?? _0x589cc9(0x2da));
1817
1845
  return {
1818
1846
  'stopMain': !![],
1819
- 'threadTarget': _0x188d24,
1820
- 'workerDisposition': _0x361100[_0x2a5613(_0x5934de._0x9c43c7)] === _0x2a5613(0x141) ? 'queued' : 'started',
1847
+ 'threadTarget': _0xa3597c,
1848
+ 'workerDisposition': _0x319823['disposition'] === _0x589cc9(0x2d3) ? _0x589cc9(0x2d3) : 'started',
1821
1849
  'workerHandoff': !![],
1822
- 'workerSessionId': _0x361100[_0x2a5613(_0x5934de._0x3bf5d4)] ?? '',
1823
- 'executionMode': _0x2a5613(0x270)
1850
+ 'workerSessionId': _0x319823['worker_session_id'] ?? '',
1851
+ 'executionMode': _0x589cc9(_0x4a21fb._0x2441ca)
1824
1852
  };
1825
1853
  }
1826
- async function _0x4da444() {
1827
- const _0x471c80 = _0x7c22;
1828
- if (!_0x5dab7a[_0x471c80(0x227)] || !_0x5dab7a[_0x471c80(_0x59fc7d._0x3c26c2)] || _0x5dab7a[_0x471c80(0x1df)])
1854
+ async function _0x190b2c() {
1855
+ const _0x2dd189 = _0x3280;
1856
+ if (!_0x2aabed[_0x2dd189(0x22b)] || !_0x2aabed[_0x2dd189(_0x2993f9._0x440a9e)] || _0x2aabed[_0x2dd189(0x267)])
1829
1857
  return null;
1830
1858
  try {
1831
- const _0x210fe8 = await fetch(_0x5dab7a['daemonLocalUrl'] + _0x471c80(0x1ee) + encodeURIComponent(_0x5dab7a[_0x471c80(0x1b5)])), _0x4cd947 = await _0x210fe8[_0x471c80(0x1f0)]();
1832
- if (!_0x4cd947['ok'])
1859
+ const _0x53b998 = await fetch(_0x2aabed[_0x2dd189(0x22b)] + _0x2dd189(_0x2993f9._0x10a421) + encodeURIComponent(_0x2aabed['agentId'])), _0x3c750b = await _0x53b998['json']();
1860
+ if (!_0x3c750b['ok'])
1833
1861
  return null;
1834
- const _0x4a1460 = new Set();
1835
- for (const _0x3208c6 of _0x4cd947[_0x471c80(0x108)]) {
1836
- _0x3208c6['status'] !== 'destroyed' && _0x3208c6[_0x471c80(0x13b)] && _0x4a1460[_0x471c80(0x1f5)](_0x3208c6[_0x471c80(0x13b)]);
1862
+ const _0xf9dfe9 = new Set();
1863
+ for (const _0xd60147 of _0x3c750b[_0x2dd189(0x201)]) {
1864
+ _0xd60147[_0x2dd189(0x1f3)] !== _0x2dd189(0x164) && _0xd60147[_0x2dd189(_0x2993f9._0x14c950)] && _0xf9dfe9['add'](_0xd60147[_0x2dd189(_0x2993f9._0x1e901b)]);
1837
1865
  }
1838
- return _0x4a1460[_0x471c80(_0x59fc7d._0x168ba4)] > 0x0 ? _0x4a1460 : null;
1866
+ return _0xf9dfe9[_0x2dd189(0x2e5)] > 0x0 ? _0xf9dfe9 : null;
1839
1867
  } catch {
1840
1868
  return null;
1841
1869
  }
1842
1870
  }
1843
- const _0x1f4a54 = new Set([
1844
- _0x440543(0x275),
1845
- _0x440543(0x152),
1846
- _0x440543(_0x1dfa17._0x3f1bce)
1871
+ const _0x5ae73e = new Set([
1872
+ _0x28f47a(0x18e),
1873
+ _0x28f47a(0x187),
1874
+ _0x28f47a(_0x1418c4._0x431a90)
1847
1875
  ]);
1848
- async function _0x597e31() {
1849
- const _0x168a3a = _0x440543;
1850
- if (!_0x5dab7a[_0x168a3a(_0xda4684._0x2722dc)] || !_0x5dab7a[_0x168a3a(_0xda4684._0x4d3412)] || _0x5dab7a[_0x168a3a(_0xda4684._0x5d05db)])
1876
+ async function _0x47234c() {
1877
+ const _0xfbe112 = _0x28f47a;
1878
+ if (!_0x2aabed['daemonLocalUrl'] || !_0x2aabed[_0xfbe112(_0x579520._0x5dfc29)] || _0x2aabed['workerMode'])
1851
1879
  return null;
1852
1880
  try {
1853
- const _0x15edf4 = await fetch(_0x5dab7a[_0x168a3a(0x227)] + _0x168a3a(0x1ee) + encodeURIComponent(_0x5dab7a['agentId'])), _0x2f53e2 = await _0x15edf4['json']();
1854
- if (!_0x2f53e2['ok'])
1881
+ const _0x291403 = await fetch(_0x2aabed[_0xfbe112(_0x579520._0x1c5b24)] + _0xfbe112(_0x579520._0x23e3fe) + encodeURIComponent(_0x2aabed['agentId'])), _0xcbb13e = await _0x291403['json']();
1882
+ if (!_0xcbb13e['ok'])
1855
1883
  return null;
1856
- const _0x4dda24 = new Set();
1857
- for (const _0x28bf3b of _0x2f53e2['workers']) {
1858
- _0x1f4a54[_0x168a3a(_0xda4684._0x225b2c)](_0x28bf3b['status']) && _0x28bf3b[_0x168a3a(_0xda4684._0x3be79b)] && _0x4dda24[_0x168a3a(_0xda4684._0x242c4f)](_0x28bf3b[_0x168a3a(_0xda4684._0x3be79b)]);
1884
+ const _0x43ce68 = new Set();
1885
+ for (const _0x437f45 of _0xcbb13e[_0xfbe112(_0x579520._0x4382c6)]) {
1886
+ _0x5ae73e[_0xfbe112(_0x579520._0x1cdbd3)](_0x437f45[_0xfbe112(0x1f3)]) && _0x437f45[_0xfbe112(0x2be)] && _0x43ce68[_0xfbe112(_0x579520._0xb8ad29)](_0x437f45[_0xfbe112(_0x579520._0x2ff2e3)]);
1859
1887
  }
1860
- return _0x4dda24[_0x168a3a(_0xda4684._0x118433)] > 0x0 ? _0x4dda24 : null;
1888
+ return _0x43ce68[_0xfbe112(_0x579520._0x45c9ed)] > 0x0 ? _0x43ce68 : null;
1861
1889
  } catch {
1862
1890
  return null;
1863
1891
  }
1864
1892
  }
1865
1893
  return {
1866
- async 'send_message'(_0x11f04d) {
1867
- const _0x170223 = _0x440543;
1868
- if (!_0x5dab7a[_0x170223(0x1df)] && _0x5dab7a[_0x170223(_0x4a09c7._0x517271)] && _0x5dab7a[_0x170223(0x227)] && _0x5dab7a['agentId']) {
1869
- const _0x2d9ab5 = await _0x5dab7a['client'][_0x170223(0x105)](_0x11f04d[_0x170223(0x1a0)]);
1870
- if (_0x2d9ab5[_0x170223(_0x4a09c7._0x1bcee8)] && _0x2d9ab5[_0x170223(_0x4a09c7._0x16a957)]) {
1871
- if (_0x2d9ab5['task']['executionMode'] === _0x170223(_0x4a09c7._0x4cd722)) {
1872
- const _0x3f554e = await _0x5dab7a[_0x170223(_0x4a09c7._0x3aec3c)][_0x170223(0x137)]({
1873
- 'attachmentIds': _0x11f04d[_0x170223(_0x4a09c7._0x3e805e)],
1874
- 'content': _0x11f04d[_0x170223(0x1ad)],
1875
- 'target': _0x11f04d['target'],
1876
- 'visibility': _0x11f04d[_0x170223(0x262)]
1894
+ async 'send_message'(_0x1e9bac) {
1895
+ const _0x5e485f = _0x28f47a;
1896
+ if (!_0x2aabed[_0x5e485f(_0x380663._0x4dad4f)] && _0x2aabed[_0x5e485f(_0x380663._0x16b7be)] && _0x2aabed['daemonLocalUrl'] && _0x2aabed[_0x5e485f(_0x380663._0x51fbc8)]) {
1897
+ const _0x3f7076 = await _0x2aabed[_0x5e485f(_0x380663._0x996a83)][_0x5e485f(_0x380663._0x5bef8b)](_0x1e9bac[_0x5e485f(0x291)]);
1898
+ if (_0x3f7076[_0x5e485f(_0x380663._0x17d8fd)] && _0x3f7076[_0x5e485f(_0x380663._0x482ecb)]) {
1899
+ if (_0x3f7076[_0x5e485f(_0x380663._0x307b17)]['executionMode'] === _0x5e485f(_0x380663._0x4581f1)) {
1900
+ const _0x2b0b79 = await _0x2aabed[_0x5e485f(0x16b)][_0x5e485f(_0x380663._0xbf45c3)]({
1901
+ 'attachmentIds': _0x1e9bac[_0x5e485f(0x258)],
1902
+ 'content': _0x1e9bac['content'],
1903
+ 'target': _0x1e9bac[_0x5e485f(_0x380663._0x4aefb4)],
1904
+ 'visibility': _0x1e9bac['visibility']
1877
1905
  });
1878
- return _0x170223(_0x4a09c7._0x204331) + _0x11f04d['target'] + _0x170223(_0x4a09c7._0xd0d87d) + _0x3f554e[_0x170223(0x1cd)];
1906
+ return 'Message\x20sent\x20to\x20' + _0x1e9bac[_0x5e485f(_0x380663._0x13b586)] + _0x5e485f(0x1b9) + _0x2b0b79[_0x5e485f(0x210)];
1879
1907
  }
1880
- const _0x3c354a = _0x2d9ab5['task']['taskNumber'] != null ? '#' + _0x2d9ab5[_0x170223(0x134)][_0x170223(_0x4a09c7._0x1d5ac1)] : _0x170223(0x181), _0xfc3afa = _0x2d9ab5[_0x170223(_0x4a09c7._0x56a75c)] != null ? _0x2d9ab5[_0x170223(_0x4a09c7._0x24987b)] + ':t' + _0x2d9ab5[_0x170223(_0x4a09c7._0x10caaf)] : _0x2d9ab5[_0x170223(_0x4a09c7._0x24987b)] + ':' + _0x2d9ab5[_0x170223(0x1c8)][_0x170223(_0x4a09c7._0x237ac5)](0x0, 0x8), _0x27ce8a = await _0x597e31();
1881
- if (_0x27ce8a?.[_0x170223(_0x4a09c7._0x2b69b4)](_0xfc3afa))
1908
+ const _0x249aed = _0x3f7076[_0x5e485f(_0x380663._0x17d8fd)]['taskNumber'] != null ? '#' + _0x3f7076[_0x5e485f(0x286)][_0x5e485f(_0x380663._0x96cbd)] : '(legacy)', _0x410191 = _0x3f7076[_0x5e485f(0x283)] != null ? _0x3f7076[_0x5e485f(0x291)] + ':t' + _0x3f7076[_0x5e485f(_0x380663._0xbd8b9e)] : _0x3f7076[_0x5e485f(_0x380663._0x4aefb4)] + ':' + _0x3f7076[_0x5e485f(0x1a2)]['slice'](0x0, 0x8), _0x2ebd1b = await _0x47234c();
1909
+ if (_0x2ebd1b?.['has'](_0x410191))
1882
1910
  return [
1883
- _0x170223(0x208) + _0x3c354a + _0x170223(_0x4a09c7._0x11dfe8) + _0xfc3afa + _0x170223(_0x4a09c7._0x5bb4c8),
1884
- _0x170223(0x15a)
1885
- ][_0x170223(0x1a6)]('\x0a');
1886
- const _0x1d092a = [
1887
- _0x170223(0x1fc) + _0xfc3afa + _0x170223(0x1b4) + new Date()[_0x170223(_0x4a09c7._0x3be80a)]() + _0x170223(_0x4a09c7._0x13bf6b),
1911
+ _0x5e485f(_0x380663._0x5d5f06) + _0x249aed + _0x5e485f(_0x380663._0x89f065) + _0x410191 + _0x5e485f(_0x380663._0x1f02a6),
1912
+ _0x5e485f(0x28c)
1913
+ ][_0x5e485f(0x27f)]('\x0a');
1914
+ const _0x4f8ddb = [
1915
+ '[target=' + _0x410191 + '\x20msg=handoff\x20time=' + new Date()['toISOString']() + _0x5e485f(_0x380663._0x122e01),
1888
1916
  '',
1889
- 'Original\x20message:\x20' + _0x11f04d['content'],
1890
- 'Task:\x20' + _0x3c354a + '\x20(' + _0x2d9ab5[_0x170223(_0x4a09c7._0x4ec7c7)]['taskId'] + ')',
1891
- _0x170223(0x14d) + _0xfc3afa,
1892
- _0x170223(0x241)
1893
- ][_0x170223(_0x4a09c7._0x3793ad)]('\x0a'), _0x26414e = await fetch(_0x5dab7a[_0x170223(_0x4a09c7._0x26f767)] + '/workers/deliver', {
1894
- 'method': 'POST',
1895
- 'headers': { 'Content-Type': 'application/json' },
1896
- 'body': JSON[_0x170223(0x14f)]({
1897
- 'agent_id': _0x5dab7a[_0x170223(_0x4a09c7._0x3b237a)],
1898
- 'thread_target': _0xfc3afa,
1917
+ 'Original\x20message:\x20' + _0x1e9bac['content'],
1918
+ _0x5e485f(_0x380663._0xb774b8) + _0x249aed + '\x20(' + _0x3f7076[_0x5e485f(0x286)]['taskId'] + ')',
1919
+ _0x5e485f(_0x380663._0x5a4144) + _0x410191,
1920
+ _0x5e485f(0x2a7)
1921
+ ][_0x5e485f(0x27f)]('\x0a'), _0x276bd3 = await fetch(_0x2aabed[_0x5e485f(_0x380663._0xaa22fd)] + '/workers/deliver', {
1922
+ 'method': _0x5e485f(0x175),
1923
+ 'headers': { 'Content-Type': _0x5e485f(0x213) },
1924
+ 'body': JSON['stringify']({
1925
+ 'agent_id': _0x2aabed[_0x5e485f(0x1b6)],
1926
+ 'thread_target': _0x410191,
1899
1927
  'spawn_packet': {
1900
- 'replyTarget': _0xfc3afa,
1901
- 'taskId': _0x2d9ab5[_0x170223(_0x4a09c7._0x251ab5)]['taskId']
1928
+ 'replyTarget': _0x410191,
1929
+ 'taskId': _0x3f7076[_0x5e485f(0x286)]['taskId']
1902
1930
  },
1903
1931
  'payload': {
1904
- 'mode': _0x170223(_0x4a09c7._0x5a49d3),
1905
- 'text': _0x1d092a
1932
+ 'mode': _0x5e485f(0x1ea),
1933
+ 'text': _0x4f8ddb
1906
1934
  }
1907
1935
  })
1908
- }), _0xca25cd = await _0x26414e['json']();
1909
- if (!_0xca25cd['ok'])
1910
- throw new Error(_0xca25cd[_0x170223(_0x4a09c7._0xaff66e)] ?? _0x170223(_0x4a09c7._0x4974e1));
1936
+ }), _0x22cabe = await _0x276bd3['json']();
1937
+ if (!_0x22cabe['ok'])
1938
+ throw new Error(_0x22cabe['error'] ?? _0x5e485f(0x2cf));
1911
1939
  return [
1912
- _0x170223(_0x4a09c7._0x557707) + _0x3c354a + _0x170223(0x178) + _0xfc3afa + _0x170223(_0x4a09c7._0x54955e),
1913
- _0x170223(_0x4a09c7._0x596d8c) + (_0xca25cd[_0x170223(_0x4a09c7._0x185c8d)] === _0x170223(0x141) ? 'queued' : _0x170223(_0x4a09c7._0x4bf38d)) + '.',
1914
- _0x170223(_0x4a09c7._0x18706a)
1915
- ][_0x170223(0x1a6)]('\x0a');
1940
+ _0x5e485f(_0x380663._0x34a580) + _0x249aed + '\x20in\x20' + _0x410191 + '.\x20stopMain=true\x20executionMode=worker',
1941
+ _0x5e485f(_0x380663._0x5d0e9b) + (_0x22cabe[_0x5e485f(0x16e)] === _0x5e485f(0x2d3) ? _0x5e485f(_0x380663._0x5e1c35) : _0x5e485f(_0x380663._0x208909)) + '.',
1942
+ '⚠️\x20WORKER\x20ACTIVATED\x20—\x20Stop\x20ALL\x20work\x20on\x20this\x20task\x20immediately.\x20Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread.'
1943
+ ][_0x5e485f(0x27f)]('\x0a');
1916
1944
  }
1917
1945
  }
1918
- const _0x4b079b = await _0x5dab7a[_0x170223(_0x4a09c7._0x3aec3c)][_0x170223(_0x4a09c7._0x497ed0)]({
1919
- 'attachmentIds': _0x11f04d[_0x170223(_0x4a09c7._0x5a389b)],
1920
- 'content': _0x11f04d[_0x170223(0x1ad)],
1921
- 'target': _0x11f04d[_0x170223(0x1a0)],
1922
- 'visibility': _0x11f04d[_0x170223(_0x4a09c7._0x1a28e4)]
1946
+ const _0x33da71 = await _0x2aabed[_0x5e485f(0x16b)][_0x5e485f(_0x380663._0x5b8f8b)]({
1947
+ 'attachmentIds': _0x1e9bac[_0x5e485f(0x258)],
1948
+ 'content': _0x1e9bac['content'],
1949
+ 'target': _0x1e9bac[_0x5e485f(0x291)],
1950
+ 'visibility': _0x1e9bac['visibility']
1923
1951
  });
1924
- return _0x170223(_0x4a09c7._0x204331) + _0x11f04d[_0x170223(0x1a0)] + _0x170223(_0x4a09c7._0xd0d87d) + _0x4b079b[_0x170223(0x1cd)];
1952
+ return 'Message\x20sent\x20to\x20' + _0x1e9bac[_0x5e485f(0x291)] + _0x5e485f(_0x380663._0x8695fa) + _0x33da71[_0x5e485f(0x210)];
1925
1953
  },
1926
1954
  async 'check_messages'() {
1927
- const _0x2f69d2 = _0x440543, _0x2cee31 = await _0x5dab7a[_0x2f69d2(0x136)][_0x2f69d2(0x182)]();
1928
- if (!_0x5dab7a[_0x2f69d2(0x1df)]) {
1929
- const _0x167047 = await _0x4da444();
1930
- if (_0x167047)
1931
- return formatCheckMessages(_0x2cee31['messages']['filter'](_0x4e6424 => !_0x167047['has'](_0x4e6424[_0x2f69d2(0x1a0)])));
1955
+ const _0x277864 = _0x28f47a, _0x3804bb = await _0x2aabed[_0x277864(0x16b)]['checkMessages']();
1956
+ if (!_0x2aabed[_0x277864(_0x3f471b._0xfeb205)]) {
1957
+ const _0x52fbee = await _0x190b2c();
1958
+ if (_0x52fbee)
1959
+ return formatCheckMessages(_0x3804bb[_0x277864(0x264)][_0x277864(0x2de)](_0x30cd23 => !_0x52fbee[_0x277864(0x2d8)](_0x30cd23[_0x277864(0x291)])));
1932
1960
  }
1933
- return formatCheckMessages(_0x2cee31[_0x2f69d2(0x283)]);
1961
+ return formatCheckMessages(_0x3804bb[_0x277864(_0x3f471b._0x16fbf7)]);
1934
1962
  },
1935
- async 'read_history'(_0xd259fa) {
1936
- const _0x389450 = _0x440543, _0x115070 = await _0x5dab7a[_0x389450(0x136)][_0x389450(0x215)](_0xd259fa);
1937
- return formatHistory(_0x115070);
1963
+ async 'read_history'(_0x2bb90c) {
1964
+ const _0x43a241 = _0x28f47a, _0x520c23 = await _0x2aabed[_0x43a241(0x16b)][_0x43a241(_0xf27901._0x2a1b15)](_0x2bb90c);
1965
+ return formatHistory(_0x520c23);
1938
1966
  },
1939
1967
  async 'list_server'() {
1940
- const _0x25f0c9 = _0x440543, _0x2e0a60 = await _0x5dab7a['client'][_0x25f0c9(_0x1ede31._0x20b327)]();
1941
- return formatServerDirectory(_0x2e0a60);
1968
+ const _0x50dc2e = _0x28f47a, _0x3309d3 = await _0x2aabed[_0x50dc2e(0x16b)][_0x50dc2e(0x29b)]();
1969
+ return formatServerDirectory(_0x3309d3);
1942
1970
  },
1943
- async 'list_tasks'(_0x233d8f) {
1944
- const _0x14611b = _0x440543, _0x504941 = await _0x5dab7a[_0x14611b(_0x5aade3._0x1dfaaa)][_0x14611b(0x232)](_0x233d8f);
1945
- let _0x5861f1;
1946
- if (_0x5dab7a[_0x14611b(0x227)] && _0x5dab7a[_0x14611b(0x1b5)])
1971
+ async 'list_tasks'(_0x19307a) {
1972
+ const _0x4bec9f = _0x28f47a, _0x338794 = await _0x2aabed[_0x4bec9f(0x16b)][_0x4bec9f(_0x585fc2._0x769e49)](_0x19307a);
1973
+ let _0xf10bcb;
1974
+ if (_0x2aabed[_0x4bec9f(_0x585fc2._0xbffd0b)] && _0x2aabed[_0x4bec9f(_0x585fc2._0x286b97)])
1947
1975
  try {
1948
- const _0xbf4023 = await fetch(_0x5dab7a[_0x14611b(_0x5aade3._0x4c804b)] + '/workers/list?agent_id=' + encodeURIComponent(_0x5dab7a['agentId'])), _0x4991ca = await _0xbf4023[_0x14611b(0x1f0)]();
1949
- if (_0x4991ca['ok']) {
1950
- const _0x15a005 = _0x233d8f['channel'] + ':';
1951
- _0x5861f1 = new Set();
1952
- for (const _0x661e19 of _0x4991ca[_0x14611b(_0x5aade3._0x4af6de)]) {
1953
- if (_0x661e19['status'] === _0x14611b(0x157))
1976
+ const _0x583621 = await fetch(_0x2aabed[_0x4bec9f(_0x585fc2._0xbffd0b)] + _0x4bec9f(_0x585fc2._0x3ca304) + encodeURIComponent(_0x2aabed[_0x4bec9f(0x1b6)])), _0x5b8dab = await _0x583621[_0x4bec9f(_0x585fc2._0x3d8585)]();
1977
+ if (_0x5b8dab['ok']) {
1978
+ const _0x3bfc80 = _0x19307a['channel'] + ':';
1979
+ _0xf10bcb = new Set();
1980
+ for (const _0x50cf4f of _0x5b8dab[_0x4bec9f(0x201)]) {
1981
+ if (_0x50cf4f[_0x4bec9f(0x1f3)] === _0x4bec9f(0x164))
1954
1982
  continue;
1955
- if (_0x661e19[_0x14611b(0x13b)]?.[_0x14611b(0x244)](_0x15a005)) {
1956
- const _0x44908d = _0x661e19[_0x14611b(0x13b)]['slice'](_0x15a005[_0x14611b(_0x5aade3._0x3dcb60)]), _0x186955 = _0x504941[_0x14611b(0x197)][_0x14611b(_0x5aade3._0x585cb1)](_0x259c7a => _0x259c7a['messageId']?.['startsWith'](_0x44908d) === !![]);
1957
- if (_0x186955?.['taskNumber'] != null) {
1958
- _0x5861f1['add'](_0x186955[_0x14611b(_0x5aade3._0x420810)]);
1983
+ if (_0x50cf4f['thread_target']?.[_0x4bec9f(0x285)](_0x3bfc80)) {
1984
+ const _0x3169b6 = _0x50cf4f[_0x4bec9f(0x2be)][_0x4bec9f(_0x585fc2._0xd9cc16)](_0x3bfc80[_0x4bec9f(0x1a1)]), _0x3921ec = _0x338794[_0x4bec9f(0x231)][_0x4bec9f(_0x585fc2._0x56c181)](_0x4301a6 => _0x4301a6[_0x4bec9f(0x210)]?.[_0x4bec9f(0x285)](_0x3169b6) === !![]);
1985
+ if (_0x3921ec?.['taskNumber'] != null) {
1986
+ _0xf10bcb[_0x4bec9f(_0x585fc2._0x52807d)](_0x3921ec['taskNumber']);
1959
1987
  continue;
1960
1988
  }
1961
1989
  }
1962
- if (_0x661e19['task_id']) {
1963
- const _0x23b06d = _0x504941[_0x14611b(_0x5aade3._0xb67090)][_0x14611b(0x264)](_0x3484a4 => _0x3484a4[_0x14611b(0x180)] === _0x661e19['task_id']);
1964
- _0x23b06d?.[_0x14611b(0x26b)] != null && _0x5861f1[_0x14611b(0x1f5)](_0x23b06d[_0x14611b(_0x5aade3._0x420810)]);
1990
+ if (_0x50cf4f[_0x4bec9f(0x202)]) {
1991
+ const _0x3f2182 = _0x338794[_0x4bec9f(0x231)][_0x4bec9f(0x282)](_0x564fea => _0x564fea['taskId'] === _0x50cf4f[_0x4bec9f(0x202)]);
1992
+ _0x3f2182?.[_0x4bec9f(0x25c)] != null && _0xf10bcb[_0x4bec9f(_0x585fc2._0x52807d)](_0x3f2182[_0x4bec9f(_0x585fc2._0x139f73)]);
1965
1993
  }
1966
1994
  }
1967
1995
  }
1968
1996
  } catch {
1969
1997
  }
1970
- return formatTaskList(_0x504941['tasks'], _0x5861f1);
1998
+ return formatTaskList(_0x338794[_0x4bec9f(0x231)], _0xf10bcb);
1971
1999
  },
1972
- async 'create_tasks'(_0xc78086) {
1973
- const _0x369ca6 = _0x440543;
1974
- _0x3dbfff(_0x369ca6(0x131), _0xc78086[_0x369ca6(_0x36e66f._0x47f947)]);
1975
- const _0x4cf125 = await _0x5dab7a[_0x369ca6(_0x36e66f._0x2cc0e4)]['createTasks'](_0xc78086);
1976
- return formatCreatedTasks(_0x4cf125[_0x369ca6(0x197)]);
2000
+ async 'create_tasks'(_0x3b0632) {
2001
+ const _0x1b43f9 = _0x28f47a;
2002
+ _0x5d7ba3(_0x1b43f9(_0xd6b609._0xe9c2aa), _0x3b0632['channel']);
2003
+ const _0x6a7c8 = await _0x2aabed['client'][_0x1b43f9(0x299)](_0x3b0632);
2004
+ return formatCreatedTasks(_0x6a7c8[_0x1b43f9(0x231)]);
1977
2005
  },
1978
- async 'claim_tasks'(_0x49f85b) {
1979
- const _0x17f846 = _0x440543;
1980
- if (_0x5dab7a[_0x17f846(_0x4258d0._0x3e072e)]) {
1981
- _0x3dbfff(_0x17f846(_0x4258d0._0x14efbc), _0x49f85b[_0x17f846(_0x4258d0._0x1f0675)]);
1982
- if (_0x49f85b[_0x17f846(0x212)] && _0x49f85b[_0x17f846(_0x4258d0._0x5a203b)][_0x17f846(_0x4258d0._0x11babf)] > 0x0)
1983
- throw new Error(_0x17f846(_0x4258d0._0x591868));
1984
- if (!_0x49f85b[_0x17f846(_0x4258d0._0x34e951)] || _0x49f85b[_0x17f846(0x13a)][_0x17f846(_0x4258d0._0x427433)] === 0x0)
1985
- throw new Error(_0x17f846(_0x4258d0._0x261756));
2006
+ async 'claim_tasks'(_0x3c1968) {
2007
+ const _0x3aa367 = _0x28f47a;
2008
+ if (_0x2aabed[_0x3aa367(0x267)]) {
2009
+ _0x5d7ba3(_0x3aa367(0x1eb), _0x3c1968[_0x3aa367(_0xe20664._0x129955)]);
2010
+ if (_0x3c1968['message_ids'] && _0x3c1968[_0x3aa367(_0xe20664._0x4dcbf2)][_0x3aa367(0x1a1)] > 0x0)
2011
+ throw new Error(_0x3aa367(_0xe20664._0x8bcf65));
2012
+ if (!_0x3c1968['subtask_numbers'] || _0x3c1968[_0x3aa367(0x180)][_0x3aa367(0x1a1)] === 0x0)
2013
+ throw new Error('claim_tasks:\x20worker\x20can\x20only\x20claim\x20subtasks\x20inside\x20its\x20own\x20task\x20thread\x20—\x20provide\x20subtask_numbers.');
1986
2014
  }
1987
- const _0x3a0d7a = await _0x5dab7a[_0x17f846(_0x4258d0._0x302e64)][_0x17f846(0x242)](_0x49f85b), _0x2d892c = await Promise['all'](_0x3a0d7a[_0x17f846(0x20e)][_0x17f846(_0x4258d0._0x4b558b)](async _0xcc08f4 => {
1988
- const _0x1806b9 = _0x17f846;
1989
- if (!_0xcc08f4['success'] || !_0xcc08f4[_0x1806b9(_0x5db48d._0x36cc07)])
1990
- return _0xcc08f4;
2015
+ const _0x55498a = await _0x2aabed[_0x3aa367(_0xe20664._0x4b69db)][_0x3aa367(_0xe20664._0x51826b)](_0x3c1968), _0x56929e = await Promise[_0x3aa367(_0xe20664._0x1aa11f)](_0x55498a[_0x3aa367(0x177)][_0x3aa367(_0xe20664._0x1af9b0)](async _0x1c9154 => {
2016
+ const _0x164b70 = _0x3aa367;
2017
+ if (!_0x1c9154[_0x164b70(0x1bb)] || !_0x1c9154[_0x164b70(_0x510d2c._0xa94307)])
2018
+ return _0x1c9154;
1991
2019
  try {
1992
- const _0x171668 = await _0x2993ce({
1993
- 'channel': _0x49f85b['channel'],
1994
- 'executionMode': _0xcc08f4[_0x1806b9(0x13e)],
1995
- 'messageId': _0xcc08f4[_0x1806b9(_0x5db48d._0x36cc07)],
1996
- 'taskId': _0xcc08f4['taskId'],
1997
- 'taskNumber': _0xcc08f4[_0x1806b9(_0x5db48d._0x2f70a4)],
1998
- 'threadNumber': _0xcc08f4[_0x1806b9(0x1d5)]
2020
+ const _0x5c5d9e = await _0x595752({
2021
+ 'channel': _0x3c1968[_0x164b70(_0x510d2c._0x1daeeb)],
2022
+ 'executionMode': _0x1c9154[_0x164b70(0x2c2)],
2023
+ 'messageId': _0x1c9154[_0x164b70(0x210)],
2024
+ 'taskId': _0x1c9154['taskId'],
2025
+ 'taskNumber': _0x1c9154[_0x164b70(_0x510d2c._0xabf647)],
2026
+ 'threadNumber': _0x1c9154[_0x164b70(_0x510d2c._0x45182c)]
1999
2027
  });
2000
- return _0x171668 ? {
2001
- ..._0xcc08f4,
2002
- ..._0x171668
2003
- } : _0xcc08f4;
2004
- } catch (_0x2a56e8) {
2028
+ return _0x5c5d9e ? {
2029
+ ..._0x1c9154,
2030
+ ..._0x5c5d9e
2031
+ } : _0x1c9154;
2032
+ } catch (_0x38d346) {
2005
2033
  return {
2006
- ..._0xcc08f4,
2007
- 'workerHandoffError': _0x2a56e8 instanceof Error ? _0x2a56e8[_0x1806b9(0x143)] : _0x1806b9(_0x5db48d._0x2055e5)
2034
+ ..._0x1c9154,
2035
+ 'workerHandoffError': _0x38d346 instanceof Error ? _0x38d346['message'] : _0x164b70(0x2da)
2008
2036
  };
2009
2037
  }
2010
2038
  }));
2011
- return formatClaimTaskResults(_0x2d892c);
2039
+ return formatClaimTaskResults(_0x56929e);
2012
2040
  },
2013
- async 'unclaim_task'(_0x372838) {
2014
- const _0x3d65a4 = _0x440543;
2015
- if (_0x5dab7a[_0x3d65a4(0x1df)]) {
2016
- _0x3dbfff('unclaim_task', _0x372838['channel']);
2017
- if (_0x372838[_0x3d65a4(_0x121230._0x10bd0c)] == null)
2018
- throw new Error('unclaim_task:\x20worker\x20can\x20only\x20unclaim\x20subtasks\x20inside\x20its\x20own\x20task\x20thread\x20—\x20provide\x20subtask_number.');
2041
+ async 'unclaim_task'(_0x4ea8eb) {
2042
+ const _0x285bce = _0x28f47a;
2043
+ if (_0x2aabed['workerMode']) {
2044
+ _0x5d7ba3(_0x285bce(0x24a), _0x4ea8eb[_0x285bce(0x298)]);
2045
+ if (_0x4ea8eb[_0x285bce(_0x432d4c._0x2ee253)] == null)
2046
+ throw new Error(_0x285bce(_0x432d4c._0x5675a9));
2019
2047
  }
2020
- const _0x5491c6 = await _0x5dab7a[_0x3d65a4(0x136)]['unclaimTask'](_0x372838);
2021
- return formatUnclaimTaskResult(_0x5491c6);
2048
+ const _0x2837aa = await _0x2aabed[_0x285bce(0x16b)][_0x285bce(_0x432d4c._0x319cb5)](_0x4ea8eb);
2049
+ return formatUnclaimTaskResult(_0x2837aa);
2022
2050
  },
2023
- async 'update_task_status'(_0x2011ca) {
2024
- const _0x5a7e1c = _0x440543;
2025
- _0x3dbfff(_0x5a7e1c(0x121), _0x2011ca[_0x5a7e1c(0x139)]);
2026
- const _0xfa534d = await _0x5dab7a[_0x5a7e1c(0x136)][_0x5a7e1c(_0x1ce7a3._0x1be795)](_0x2011ca);
2027
- return formatUpdateTaskStatusResult(_0xfa534d);
2051
+ async 'update_task_status'(_0x549a8a) {
2052
+ const _0xd3e475 = _0x28f47a;
2053
+ _0x5d7ba3(_0xd3e475(0x1f1), _0x549a8a['channel']);
2054
+ const _0x55a534 = await _0x2aabed['client'][_0xd3e475(_0xe06bff._0x30f911)](_0x549a8a);
2055
+ return formatUpdateTaskStatusResult(_0x55a534);
2028
2056
  },
2029
- async 'upload_file'(_0xfb3cb0) {
2030
- const _0x5bf56b = _0x440543, _0xa86aa7 = await _0x5dab7a[_0x5bf56b(0x15c)](_0xfb3cb0['file_path']), {
2031
- sizeBytes: _0x2a8bfe,
2032
- ..._0x41d571
2033
- } = _0xa86aa7, _0x4f0bf1 = await _0x5dab7a[_0x5bf56b(_0x578e21._0x269d1c)]['uploadFile']({
2034
- 'channel': _0xfb3cb0[_0x5bf56b(0x139)],
2035
- ..._0x41d571
2057
+ async 'upload_file'(_0x36c818) {
2058
+ const _0x1f3218 = _0x28f47a, _0x292624 = await _0x2aabed[_0x1f3218(_0x38ba99._0x8e720a)](_0x36c818[_0x1f3218(_0x38ba99._0x123372)]), {
2059
+ sizeBytes: _0x8e748,
2060
+ ..._0x24c0ec
2061
+ } = _0x292624, _0x1bc51d = await _0x2aabed[_0x1f3218(0x16b)][_0x1f3218(_0x38ba99._0x57a2ed)]({
2062
+ 'channel': _0x36c818[_0x1f3218(_0x38ba99._0x31e6af)],
2063
+ ..._0x24c0ec
2036
2064
  });
2037
- return formatUploadResult(_0x4f0bf1);
2065
+ return formatUploadResult(_0x1bc51d);
2038
2066
  },
2039
- async 'view_file'(_0x5966c9) {
2040
- const _0x2a1207 = _0x440543, _0x519368 = await _0x5dab7a['attachmentCache']['findCachedPath'](_0x5966c9[_0x2a1207(0x20b)]);
2041
- if (_0x519368)
2042
- return formatViewFileResult(_0x519368, !![]);
2043
- const _0x4a5d99 = await _0x5dab7a[_0x2a1207(0x136)]['downloadAttachment'](_0x5966c9[_0x2a1207(_0x876707._0x5ed826)]), _0x9534cb = await _0x5dab7a['attachmentCache'][_0x2a1207(_0x876707._0x5325e3)]({
2044
- 'attachmentId': _0x5966c9[_0x2a1207(_0x876707._0x5ed826)],
2045
- 'contentType': _0x4a5d99['contentType'],
2046
- 'data': _0x4a5d99[_0x2a1207(_0x876707._0x5e7c31)],
2047
- 'originalFilename': _0x4a5d99['originalFilename']
2067
+ async 'view_file'(_0x132344) {
2068
+ const _0x3d976f = _0x28f47a, _0x3e7cbc = await _0x2aabed[_0x3d976f(0x235)][_0x3d976f(0x2b0)](_0x132344['attachment_id']);
2069
+ if (_0x3e7cbc)
2070
+ return formatViewFileResult(_0x3e7cbc, !![]);
2071
+ const _0xe2271c = await _0x2aabed[_0x3d976f(0x16b)][_0x3d976f(0x29e)](_0x132344[_0x3d976f(0x2c8)]), _0x3c9f2c = await _0x2aabed['attachmentCache'][_0x3d976f(_0x1507b9._0x563e47)]({
2072
+ 'attachmentId': _0x132344[_0x3d976f(_0x1507b9._0xf184ef)],
2073
+ 'contentType': _0xe2271c[_0x3d976f(_0x1507b9._0x73e49)],
2074
+ 'data': _0xe2271c[_0x3d976f(_0x1507b9._0x443222)],
2075
+ 'originalFilename': _0xe2271c[_0x3d976f(0x170)]
2048
2076
  });
2049
- return formatViewFileResult(_0x9534cb, ![]);
2077
+ return formatViewFileResult(_0x3c9f2c, ![]);
2050
2078
  },
2051
- async 'get_worker_status'(_0x315b9d) {
2052
- const _0x36b508 = _0x440543;
2053
- if (!_0x5dab7a[_0x36b508(0x227)])
2054
- return 'Worker\x20features\x20not\x20available';
2055
- const _0x22b9fe = await fetch(_0x5dab7a[_0x36b508(_0x5bdf14._0xbba9be)] + '/workers/status?work_key=' + encodeURIComponent(_0x315b9d[_0x36b508(_0x5bdf14._0x925ad0)])), _0x33d4ae = await _0x22b9fe['json']();
2056
- if (!_0x33d4ae['ok'])
2057
- return _0x36b508(0x1ed) + _0x315b9d[_0x36b508(0x179)] + _0x36b508(_0x5bdf14._0x50c0a2);
2058
- return _0x36b508(_0x5bdf14._0x3707d7) + _0x315b9d[_0x36b508(0x179)] + _0x36b508(0x12f) + _0x33d4ae[_0x36b508(0x269)];
2079
+ async 'get_worker_status'(_0xd95288) {
2080
+ const _0x56f9f5 = _0x28f47a;
2081
+ if (!_0x2aabed[_0x56f9f5(_0x59729b._0x52927c)])
2082
+ return _0x56f9f5(0x2a5);
2083
+ const _0x1c5790 = await fetch(_0x2aabed['daemonLocalUrl'] + _0x56f9f5(0x275) + encodeURIComponent(_0xd95288[_0x56f9f5(0x220)])), _0x534f41 = await _0x1c5790[_0x56f9f5(_0x59729b._0x2eae2e)]();
2084
+ if (!_0x534f41['ok'])
2085
+ return _0x56f9f5(_0x59729b._0x27440c) + _0xd95288['work_key'] + _0x56f9f5(_0x59729b._0x315703);
2086
+ return 'Worker\x20\x22' + _0xd95288[_0x56f9f5(_0x59729b._0x3b5b5e)] + _0x56f9f5(_0x59729b._0x3ee3ed) + _0x534f41['status'];
2059
2087
  },
2060
- async 'park_worker'(_0x251e3b) {
2061
- const _0xb868db = _0x440543;
2062
- if (!_0x5dab7a[_0xb868db(_0x8172d5._0x1700ca)])
2063
- return _0xb868db(0x201);
2064
- const _0x42eb73 = await fetch(_0x5dab7a[_0xb868db(0x227)] + _0xb868db(_0x8172d5._0x210a5b), {
2065
- 'method': _0xb868db(0x1a8),
2066
- 'headers': { 'Content-Type': _0xb868db(0x23a) },
2067
- 'body': JSON[_0xb868db(0x14f)]({ 'work_key': _0x251e3b[_0xb868db(_0x8172d5._0x4104ce)] })
2068
- }), _0x138683 = await _0x42eb73[_0xb868db(_0x8172d5._0x4ecc24)]();
2069
- if (!_0x138683['ok'])
2070
- throw new Error(_0x138683[_0xb868db(0x1bf)] ?? _0xb868db(0x1d7));
2071
- return _0xb868db(_0x8172d5._0x96125c) + _0x251e3b['work_key'] + _0xb868db(0x148);
2088
+ async 'park_worker'(_0x28b996) {
2089
+ const _0x327078 = _0x28f47a;
2090
+ if (!_0x2aabed['daemonLocalUrl'])
2091
+ return _0x327078(0x2a5);
2092
+ const _0x4c3f5e = await fetch(_0x2aabed[_0x327078(_0x31e6d5._0x3f01d9)] + '/workers/park', {
2093
+ 'method': _0x327078(0x175),
2094
+ 'headers': { 'Content-Type': _0x327078(0x213) },
2095
+ 'body': JSON[_0x327078(0x1a9)]({ 'work_key': _0x28b996[_0x327078(0x220)] })
2096
+ }), _0x221a1d = await _0x4c3f5e[_0x327078(0x1ae)]();
2097
+ if (!_0x221a1d['ok'])
2098
+ throw new Error(_0x221a1d['error'] ?? _0x327078(_0x31e6d5._0x3c45d1));
2099
+ return _0x327078(0x218) + _0x28b996[_0x327078(_0x31e6d5._0x2da937)] + _0x327078(0x16f);
2072
2100
  },
2073
- async 'mark_waiting_input'(_0x555783) {
2074
- const _0x593516 = _0x440543;
2075
- if (!_0x5dab7a[_0x593516(_0x1b3c23._0x5ec8d7)] || !_0x5dab7a[_0x593516(_0x1b3c23._0xfdb28)])
2076
- return 'Worker\x20features\x20not\x20available\x20(daemon\x20local\x20URL\x20or\x20agent\x20ID\x20not\x20configured)';
2077
- const _0x545016 = await fetch(_0x5dab7a['daemonLocalUrl'] + _0x593516(_0x1b3c23._0x534c86), {
2078
- 'method': _0x593516(0x1a8),
2079
- 'headers': { 'Content-Type': _0x593516(0x23a) },
2080
- 'body': JSON[_0x593516(_0x1b3c23._0x1f30cc)]({
2081
- 'work_key': _0x555783['work_key'],
2082
- 'agent_id': _0x5dab7a[_0x593516(_0x1b3c23._0xfdb28)]
2101
+ async 'mark_waiting_input'(_0x28c1d2) {
2102
+ const _0x7923b5 = _0x28f47a;
2103
+ if (!_0x2aabed[_0x7923b5(_0x1844b4._0x25991e)] || !_0x2aabed[_0x7923b5(_0x1844b4._0x3e9e39)])
2104
+ return _0x7923b5(_0x1844b4._0x335eb1);
2105
+ const _0x467206 = await fetch(_0x2aabed[_0x7923b5(_0x1844b4._0x5f2a3b)] + _0x7923b5(_0x1844b4._0x12a1c4), {
2106
+ 'method': _0x7923b5(_0x1844b4._0x1ae9ef),
2107
+ 'headers': { 'Content-Type': 'application/json' },
2108
+ 'body': JSON[_0x7923b5(0x1a9)]({
2109
+ 'work_key': _0x28c1d2[_0x7923b5(_0x1844b4._0x100d39)],
2110
+ 'agent_id': _0x2aabed[_0x7923b5(_0x1844b4._0x59f81d)]
2083
2111
  })
2084
- }), _0xb1464e = await _0x545016['json']();
2085
- if (!_0xb1464e['ok'])
2086
- throw new Error(_0xb1464e[_0x593516(0x1bf)] ?? _0x593516(0x277));
2087
- return _0x593516(0x1ed) + _0x555783[_0x593516(0x179)] + _0x593516(_0x1b3c23._0x16db75);
2112
+ }), _0x26d795 = await _0x467206[_0x7923b5(0x1ae)]();
2113
+ if (!_0x26d795['ok'])
2114
+ throw new Error(_0x26d795[_0x7923b5(_0x1844b4._0x1e2a10)] ?? _0x7923b5(0x2af));
2115
+ return _0x7923b5(_0x1844b4._0x4742aa) + _0x28c1d2[_0x7923b5(0x220)] + _0x7923b5(_0x1844b4._0x407425);
2088
2116
  },
2089
- async 'escalate_to_main'(_0x110855) {
2090
- const _0x2668e8 = _0x440543;
2091
- if (!_0x5dab7a[_0x2668e8(0x227)])
2092
- return _0x2668e8(0x201);
2093
- const _0x27f602 = await fetch(_0x5dab7a['daemonLocalUrl'] + _0x2668e8(_0x36bfd6._0x4b6c93), {
2094
- 'method': _0x2668e8(_0x36bfd6._0x5256b2),
2095
- 'headers': { 'Content-Type': _0x2668e8(_0x36bfd6._0x583923) },
2096
- 'body': JSON['stringify']({
2097
- 'work_key': _0x110855['work_key'],
2098
- 'reason': _0x110855[_0x2668e8(0x255)]
2117
+ async 'escalate_to_main'(_0x5515bf) {
2118
+ const _0x167692 = _0x28f47a;
2119
+ if (!_0x2aabed[_0x167692(0x22b)])
2120
+ return _0x167692(_0x494eff._0x4163d8);
2121
+ const _0x28d916 = await fetch(_0x2aabed['daemonLocalUrl'] + _0x167692(0x184), {
2122
+ 'method': 'POST',
2123
+ 'headers': { 'Content-Type': _0x167692(_0x494eff._0x52bee1) },
2124
+ 'body': JSON[_0x167692(_0x494eff._0x427a84)]({
2125
+ 'work_key': _0x5515bf[_0x167692(0x220)],
2126
+ 'reason': _0x5515bf[_0x167692(0x195)]
2099
2127
  })
2100
- }), _0x2bf21b = await _0x27f602[_0x2668e8(_0x36bfd6._0x3d0abb)]();
2101
- if (!_0x2bf21b['ok'])
2102
- throw new Error(_0x2bf21b['error'] ?? _0x2668e8(_0x36bfd6._0x43875d));
2103
- return _0x2668e8(_0x36bfd6._0x187158) + _0x110855[_0x2668e8(0x255)];
2128
+ }), _0x3fe5d9 = await _0x28d916[_0x167692(_0x494eff._0x16a874)]();
2129
+ if (!_0x3fe5d9['ok'])
2130
+ throw new Error(_0x3fe5d9[_0x167692(_0x494eff._0xd7ca6b)] ?? _0x167692(_0x494eff._0x41842d));
2131
+ return 'Escalation\x20sent\x20to\x20main\x20agent.\x20Reason:\x20' + _0x5515bf[_0x167692(_0x494eff._0x571605)];
2104
2132
  }
2105
2133
  };
2106
2134
  }
2107
- function textResult(_0x53a792, _0x4bd7fc = ![]) {
2108
- const _0x5c374b = _0x548baf;
2135
+ function textResult(_0x132824, _0x7e7048 = ![]) {
2136
+ const _0x16cea0 = { _0x52831b: 0x1bd }, _0x4786db = _0x5e54a5;
2109
2137
  return {
2110
2138
  'content': [{
2111
- 'type': _0x5c374b(0x23b),
2112
- 'text': _0x53a792
2139
+ 'type': _0x4786db(_0x16cea0._0x52831b),
2140
+ 'text': _0x132824
2113
2141
  }],
2114
- ..._0x4bd7fc ? { 'isError': !![] } : {}
2142
+ ..._0x7e7048 ? { 'isError': !![] } : {}
2115
2143
  };
2116
2144
  }
2117
- async function registerChatBridgeTools(_0xac53cc, _0x12b741, _0x383d85) {
2118
- const _0x1941c1 = {
2119
- _0x19ddc2: 0x24d,
2120
- _0x478c74: 0x20f,
2121
- _0x312df1: 0x240,
2122
- _0x2859be: 0x1b9,
2123
- _0x307343: 0x279,
2124
- _0x225ca9: 0x18c,
2125
- _0x58687d: 0x120,
2126
- _0xb258c5: 0x24d,
2127
- _0xc88f68: 0x15f,
2128
- _0x2fd6b1: 0x203,
2129
- _0xfa2a8a: 0x24d,
2130
- _0x15702e: 0x24d,
2131
- _0x557f0b: 0x240,
2132
- _0x5a94d7: 0x243,
2133
- _0x3e0d17: 0x1a2,
2134
- _0x50606c: 0x240,
2135
- _0x51be04: 0x1b9,
2136
- _0x48661d: 0x1f9,
2137
- _0x5168ac: 0x119,
2138
- _0x148372: 0x24d,
2139
- _0x185691: 0x27b,
2140
- _0x22da48: 0x245,
2141
- _0x1b3953: 0x203,
2142
- _0x7908c0: 0x121,
2143
- _0x351bc5: 0x15f,
2144
- _0x1e131c: 0x279,
2145
- _0x4030ac: 0x233,
2146
- _0x1a586b: 0x21e,
2147
- _0x3f9df1: 0x260,
2148
- _0x29ac4a: 0x24d,
2149
- _0x2bf317: 0x1ce,
2150
- _0x427187: 0x240,
2151
- _0x24809d: 0x24d,
2152
- _0x27b298: 0x268,
2153
- _0x1e758c: 0x10a,
2154
- _0x2cecd8: 0x123,
2155
- _0x5df0ff: 0x19a,
2156
- _0x1ad1ed: 0x24d,
2157
- _0x277022: 0x1b3
2158
- }, _0x7cc6c7 = { _0x47fe0b: 0x277 }, _0x336dee = { _0x33e94d: 0x143 }, _0xe8ea43 = { _0x374a23: 0x143 }, _0x38003b = { _0x5f395b: 0x153 }, _0x48ab2e = { _0x56032f: 0x143 }, _0x15b915 = {
2159
- _0x5efaf6: 0x121,
2160
- _0x35bcee: 0x143
2161
- }, _0x1cfe19 = {
2162
- _0x3c558f: 0x27b,
2163
- _0x56270c: 0x143,
2164
- _0x37692b: 0x192
2165
- }, _0x4d75e0 = { _0x59b4af: 0x143 }, _0x326cb7 = { _0x1232aa: 0x1e8 }, _0x4c2586 = { _0x73f02: 0x129 }, _0x146ee5 = { _0x58715a: 0x143 }, _0xe4bc81 = {
2166
- _0x43c61f: 0x1d2,
2167
- _0x3c111f: 0x26d
2168
- }, _0x18adbf = _0x548baf, {z: _0x484afa} = await import(_0x18adbf(0x185));
2169
- _0xac53cc[_0x18adbf(_0x1941c1._0x19ddc2)](_0x18adbf(0x1d2), _0x18adbf(_0x1941c1._0x478c74), {
2170
- 'target': _0x484afa[_0x18adbf(_0x1941c1._0x312df1)](),
2171
- 'content': _0x484afa['string'](),
2172
- 'attachment_ids': _0x484afa[_0x18adbf(_0x1941c1._0x2859be)](_0x484afa[_0x18adbf(0x240)]())[_0x18adbf(0x15f)](),
2173
- 'visibility': _0x484afa[_0x18adbf(_0x1941c1._0x307343)]([
2174
- _0x18adbf(_0x1941c1._0x225ca9),
2175
- _0x18adbf(0x21c)
2176
- ])['optional']()[_0x18adbf(0x1c7)](_0x18adbf(0x21d))
2177
- }, async _0x1a526d => {
2178
- const _0x1a568c = _0x18adbf;
2145
+ async function registerChatBridgeTools(_0x3897e6, _0x3ab95f, _0x5aa2f4) {
2146
+ const _0x2900de = {
2147
+ _0xeedc3b: 0x166,
2148
+ _0x229f83: 0x216,
2149
+ _0x4e13b5: 0x216,
2150
+ _0x11d43f: 0x16c,
2151
+ _0x52abe2: 0x2c5,
2152
+ _0xb5a337: 0x2e8,
2153
+ _0x19316f: 0x23b,
2154
+ _0x2005ce: 0x2a0,
2155
+ _0x4b2349: 0x284,
2156
+ _0x492153: 0x2d5,
2157
+ _0x141598: 0x2bb,
2158
+ _0x318708: 0x216,
2159
+ _0x120858: 0x1cc,
2160
+ _0x22376f: 0x1e2,
2161
+ _0x1157be: 0x1ec,
2162
+ _0xf83893: 0x2bf,
2163
+ _0x420667: 0x288,
2164
+ _0x10cda0: 0x2a0,
2165
+ _0x12e8f1: 0x173,
2166
+ _0x257c42: 0x16c,
2167
+ _0x18ed0b: 0x1db,
2168
+ _0x2c7010: 0x2c5,
2169
+ _0x36156: 0x1eb,
2170
+ _0x2c4105: 0x23c,
2171
+ _0x448641: 0x16c,
2172
+ _0x499a60: 0x24a,
2173
+ _0x4f796c: 0x2a0,
2174
+ _0x64c1ce: 0x27a,
2175
+ _0x438734: 0x26b,
2176
+ _0x5ede04: 0x2e2,
2177
+ _0x198fa6: 0x216,
2178
+ _0x3e2e85: 0x1d3,
2179
+ _0x5034d2: 0x1fd,
2180
+ _0x1104e8: 0x2b6,
2181
+ _0x2a6331: 0x216,
2182
+ _0x60f8e8: 0x2ee,
2183
+ _0x5af8eb: 0x1d8
2184
+ }, _0x565701 = { _0x56eb2b: 0x2b6 }, _0x47e496 = { _0x256814: 0x1e8 }, _0x1686b6 = { _0x337a22: 0x1e8 }, _0x214e56 = {
2185
+ _0x19ce9f: 0x1e8,
2186
+ _0x119f8c: 0x191
2187
+ }, _0x2272b9 = {
2188
+ _0x4b982a: 0x1e8,
2189
+ _0x249ea5: 0x179
2190
+ }, _0x273e82 = {
2191
+ _0x3364e0: 0x1e8,
2192
+ _0x395e5d: 0x223
2193
+ }, _0x57173d = {
2194
+ _0xdb4bcd: 0x1e8,
2195
+ _0x51e8c5: 0x1e6
2196
+ }, _0x1cb219 = { _0x5edfee: 0x1e8 }, _0xef352f = { _0x172fa7: 0x173 }, _0x34c9ff = { _0x439448: 0x24c }, _0x150426 = { _0x2daa00: 0x1cc }, _0x19ec69 = {
2197
+ _0x2e94e3: 0x2bb,
2198
+ _0x2c7d54: 0x1cb
2199
+ }, _0x2352ee = { _0x2603d7: 0x284 }, _0x4a7fe1 = {
2200
+ _0x344cf0: 0x160,
2201
+ _0x15a113: 0x1e8,
2202
+ _0x5cf0dd: 0x1d1
2203
+ }, _0x21f93c = _0x5e54a5, {z: _0xdf0738} = await import(_0x21f93c(0x2ac));
2204
+ _0x3897e6[_0x21f93c(0x2a0)](_0x21f93c(0x160), _0x21f93c(_0x2900de._0xeedc3b), {
2205
+ 'target': _0xdf0738[_0x21f93c(_0x2900de._0x229f83)](),
2206
+ 'content': _0xdf0738[_0x21f93c(_0x2900de._0x4e13b5)](),
2207
+ 'attachment_ids': _0xdf0738[_0x21f93c(0x1db)](_0xdf0738[_0x21f93c(0x216)]())[_0x21f93c(_0x2900de._0x11d43f)](),
2208
+ 'visibility': _0xdf0738[_0x21f93c(_0x2900de._0x52abe2)]([
2209
+ _0x21f93c(_0x2900de._0xb5a337),
2210
+ _0x21f93c(_0x2900de._0x19316f)
2211
+ ])[_0x21f93c(0x16c)]()['describe']('Optional.\x20If\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20\x22aside\x22\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Do\x20not\x20set\x20outside\x20threads.')
2212
+ }, async _0x24e57a => {
2213
+ const _0x5566b3 = _0x21f93c;
2179
2214
  try {
2180
- return textResult(await _0x12b741[_0x1a568c(_0xe4bc81._0x43c61f)](_0x1a526d));
2181
- } catch (_0x2847a1) {
2182
- return textResult(_0x2847a1 instanceof Error ? _0x2847a1['message'] : _0x1a568c(_0xe4bc81._0x3c111f), !![]);
2215
+ return textResult(await _0x3ab95f[_0x5566b3(_0x4a7fe1._0x344cf0)](_0x24e57a));
2216
+ } catch (_0x237fa9) {
2217
+ return textResult(_0x237fa9 instanceof Error ? _0x237fa9[_0x5566b3(_0x4a7fe1._0x15a113)] : _0x5566b3(_0x4a7fe1._0x5cf0dd), !![]);
2183
2218
  }
2184
- }), _0xac53cc[_0x18adbf(0x24d)](_0x18adbf(0x173), _0x18adbf(_0x1941c1._0x58687d), {}, async () => {
2185
- const _0x1b763b = _0x18adbf;
2219
+ }), _0x3897e6[_0x21f93c(_0x2900de._0x2005ce)](_0x21f93c(_0x2900de._0x4b2349), _0x21f93c(_0x2900de._0x492153), {}, async () => {
2220
+ const _0x39012d = _0x21f93c;
2186
2221
  try {
2187
- return textResult(await _0x12b741[_0x1b763b(0x173)]());
2188
- } catch (_0x24266e) {
2189
- return textResult(_0x24266e instanceof Error ? _0x24266e[_0x1b763b(_0x146ee5._0x58715a)] : _0x1b763b(0x213), !![]);
2222
+ return textResult(await _0x3ab95f[_0x39012d(_0x2352ee._0x2603d7)]());
2223
+ } catch (_0x20818d) {
2224
+ return textResult(_0x20818d instanceof Error ? _0x20818d[_0x39012d(0x1e8)] : 'check_messages\x20failed', !![]);
2190
2225
  }
2191
- }), _0xac53cc[_0x18adbf(_0x1941c1._0xb258c5)](_0x18adbf(0x211), _0x18adbf(0x1c6), {
2192
- 'channel': _0x484afa['string'](),
2193
- 'limit': _0x484afa['number']()[_0x18adbf(_0x1941c1._0xc88f68)](),
2194
- 'before': _0x484afa[_0x18adbf(_0x1941c1._0x2fd6b1)]()['optional'](),
2195
- 'after': _0x484afa['number']()[_0x18adbf(0x15f)]()
2196
- }, async _0x164b20 => {
2197
- const _0x5365e3 = _0x18adbf;
2226
+ }), _0x3897e6['tool'](_0x21f93c(_0x2900de._0x141598), _0x21f93c(0x1a3), {
2227
+ 'channel': _0xdf0738[_0x21f93c(_0x2900de._0x318708)](),
2228
+ 'limit': _0xdf0738[_0x21f93c(0x23c)]()[_0x21f93c(_0x2900de._0x11d43f)](),
2229
+ 'before': _0xdf0738['number']()[_0x21f93c(_0x2900de._0x11d43f)](),
2230
+ 'after': _0xdf0738[_0x21f93c(0x23c)]()[_0x21f93c(0x16c)]()
2231
+ }, async _0x4b4cde => {
2232
+ const _0x10dc4c = _0x21f93c;
2198
2233
  try {
2199
- return textResult(await _0x12b741[_0x5365e3(0x211)](_0x164b20));
2200
- } catch (_0x2ea293) {
2201
- return textResult(_0x2ea293 instanceof Error ? _0x2ea293[_0x5365e3(0x143)] : _0x5365e3(0x183), !![]);
2234
+ return textResult(await _0x3ab95f[_0x10dc4c(_0x19ec69._0x2e94e3)](_0x4b4cde));
2235
+ } catch (_0x26b0df) {
2236
+ return textResult(_0x26b0df instanceof Error ? _0x26b0df[_0x10dc4c(0x1e8)] : _0x10dc4c(_0x19ec69._0x2c7d54), !![]);
2202
2237
  }
2203
- }), _0xac53cc[_0x18adbf(_0x1941c1._0xfa2a8a)](_0x18adbf(0x1dd), 'List\x20channels,\x20agents,\x20and\x20humans\x20in\x20the\x20current\x20server.', {}, async () => {
2204
- const _0x275451 = _0x18adbf;
2238
+ }), _0x3897e6[_0x21f93c(0x2a0)](_0x21f93c(_0x2900de._0x120858), 'List\x20channels,\x20agents,\x20and\x20humans\x20in\x20the\x20current\x20server.', {}, async () => {
2239
+ const _0x5cd589 = _0x21f93c;
2205
2240
  try {
2206
- return textResult(await _0x12b741[_0x275451(0x1dd)]());
2207
- } catch (_0x8c8d5a) {
2208
- return textResult(_0x8c8d5a instanceof Error ? _0x8c8d5a['message'] : _0x275451(_0x4c2586._0x73f02), !![]);
2241
+ return textResult(await _0x3ab95f[_0x5cd589(_0x150426._0x2daa00)]());
2242
+ } catch (_0x4203c6) {
2243
+ return textResult(_0x4203c6 instanceof Error ? _0x4203c6['message'] : 'list_server\x20failed', !![]);
2209
2244
  }
2210
- }), _0xac53cc[_0x18adbf(_0x1941c1._0x15702e)]('list_tasks', _0x18adbf(0x18d), {
2211
- 'channel': _0x484afa[_0x18adbf(_0x1941c1._0x557f0b)](),
2212
- 'status': _0x484afa[_0x18adbf(0x279)]([
2213
- _0x18adbf(0x233),
2214
- 'in_progress',
2215
- _0x18adbf(_0x1941c1._0x5a94d7),
2216
- 'done'
2217
- ])[_0x18adbf(0x15f)]()
2218
- }, async _0x4163c7 => {
2219
- const _0x14a555 = _0x18adbf;
2245
+ }), _0x3897e6[_0x21f93c(_0x2900de._0x2005ce)](_0x21f93c(_0x2900de._0x22376f), _0x21f93c(_0x2900de._0x1157be), {
2246
+ 'channel': _0xdf0738[_0x21f93c(0x216)](),
2247
+ 'status': _0xdf0738[_0x21f93c(0x2c5)]([
2248
+ _0x21f93c(0x26b),
2249
+ _0x21f93c(_0x2900de._0xf83893),
2250
+ 'in_review',
2251
+ _0x21f93c(_0x2900de._0x420667)
2252
+ ])['optional']()
2253
+ }, async _0x1a0367 => {
2254
+ const _0x4aa4c7 = _0x21f93c;
2220
2255
  try {
2221
- return textResult(await _0x12b741[_0x14a555(_0x326cb7._0x1232aa)](_0x4163c7));
2222
- } catch (_0x2202ce) {
2223
- return textResult(_0x2202ce instanceof Error ? _0x2202ce[_0x14a555(0x143)] : 'list_tasks\x20failed', !![]);
2256
+ return textResult(await _0x3ab95f[_0x4aa4c7(0x1e2)](_0x1a0367));
2257
+ } catch (_0x533657) {
2258
+ return textResult(_0x533657 instanceof Error ? _0x533657[_0x4aa4c7(0x1e8)] : _0x4aa4c7(_0x34c9ff._0x439448), !![]);
2224
2259
  }
2225
- }), _0xac53cc[_0x18adbf(_0x1941c1._0x15702e)](_0x18adbf(0x131), _0x18adbf(_0x1941c1._0x3e0d17), {
2226
- 'channel': _0x484afa[_0x18adbf(_0x1941c1._0x50606c)](),
2227
- 'idempotency_key': _0x484afa[_0x18adbf(_0x1941c1._0x312df1)]()[_0x18adbf(0x15f)](),
2228
- 'tasks': _0x484afa[_0x18adbf(_0x1941c1._0x2859be)](_0x484afa['object']({
2229
- 'title': _0x484afa['string'](),
2230
- 'description': _0x484afa[_0x18adbf(0x240)]()[_0x18adbf(0x15f)](),
2231
- 'priority': _0x484afa['enum']([
2232
- _0x18adbf(0x147),
2233
- _0x18adbf(0x214),
2234
- _0x18adbf(0x26c),
2260
+ }), _0x3897e6[_0x21f93c(_0x2900de._0x10cda0)](_0x21f93c(_0x2900de._0x12e8f1), _0x21f93c(0x251), {
2261
+ 'channel': _0xdf0738['string'](),
2262
+ 'idempotency_key': _0xdf0738[_0x21f93c(0x216)]()[_0x21f93c(_0x2900de._0x257c42)](),
2263
+ 'tasks': _0xdf0738[_0x21f93c(_0x2900de._0x18ed0b)](_0xdf0738[_0x21f93c(0x2cc)]({
2264
+ 'title': _0xdf0738[_0x21f93c(0x216)](),
2265
+ 'description': _0xdf0738['string']()[_0x21f93c(_0x2900de._0x257c42)](),
2266
+ 'priority': _0xdf0738[_0x21f93c(_0x2900de._0x2c7010)]([
2267
+ _0x21f93c(0x2a4),
2268
+ _0x21f93c(0x1f9),
2269
+ 'high',
2235
2270
  'urgent'
2236
- ])[_0x18adbf(0x15f)]()
2271
+ ])[_0x21f93c(_0x2900de._0x257c42)]()
2237
2272
  }))
2238
- }, async _0x15d60a => {
2239
- const _0x24b09a = _0x18adbf;
2273
+ }, async _0x4dd073 => {
2274
+ const _0x4ff5d2 = _0x21f93c;
2240
2275
  try {
2241
- return textResult(await _0x12b741[_0x24b09a(0x131)](_0x15d60a));
2242
- } catch (_0x588817) {
2243
- return textResult(_0x588817 instanceof Error ? _0x588817[_0x24b09a(0x143)] : _0x24b09a(0x17f), !![]);
2276
+ return textResult(await _0x3ab95f[_0x4ff5d2(_0xef352f._0x172fa7)](_0x4dd073));
2277
+ } catch (_0x303cc7) {
2278
+ return textResult(_0x303cc7 instanceof Error ? _0x303cc7[_0x4ff5d2(0x1e8)] : 'create_tasks\x20failed', !![]);
2244
2279
  }
2245
- }), _0xac53cc[_0x18adbf(0x24d)](_0x18adbf(0x19b), _0x18adbf(0x174), {
2246
- 'channel': _0x484afa['string'](),
2247
- 'task_numbers': _0x484afa[_0x18adbf(0x1b9)](_0x484afa[_0x18adbf(_0x1941c1._0x2fd6b1)]())[_0x18adbf(0x15f)](),
2248
- 'subtask_numbers': _0x484afa[_0x18adbf(0x1b9)](_0x484afa[_0x18adbf(_0x1941c1._0x2fd6b1)]())[_0x18adbf(0x15f)](),
2249
- 'message_ids': _0x484afa[_0x18adbf(_0x1941c1._0x51be04)](_0x484afa[_0x18adbf(_0x1941c1._0x50606c)]())[_0x18adbf(0x15f)](),
2250
- 'evidence': _0x484afa[_0x18adbf(0x239)](_0x484afa['string'](), _0x484afa[_0x18adbf(_0x1941c1._0x48661d)]({
2251
- 'create_thread': _0x484afa['unknown']()[_0x18adbf(_0x1941c1._0xc88f68)](),
2252
- 'create_task': _0x484afa[_0x18adbf(_0x1941c1._0x5168ac)]()[_0x18adbf(_0x1941c1._0xc88f68)]()
2253
- }))['optional'](),
2254
- 'idempotency_key': _0x484afa[_0x18adbf(0x240)]()['optional']()
2255
- }, async _0x22826f => {
2256
- const _0x4c2cf0 = _0x18adbf;
2280
+ }), _0x3897e6['tool'](_0x21f93c(_0x2900de._0x36156), _0x21f93c(0x2a1), {
2281
+ 'channel': _0xdf0738[_0x21f93c(0x216)](),
2282
+ 'task_numbers': _0xdf0738[_0x21f93c(0x1db)](_0xdf0738[_0x21f93c(_0x2900de._0x2c4105)]())[_0x21f93c(0x16c)](),
2283
+ 'subtask_numbers': _0xdf0738[_0x21f93c(_0x2900de._0x18ed0b)](_0xdf0738['number']())[_0x21f93c(_0x2900de._0x448641)](),
2284
+ 'message_ids': _0xdf0738['array'](_0xdf0738[_0x21f93c(0x216)]())[_0x21f93c(0x16c)](),
2285
+ 'evidence': _0xdf0738[_0x21f93c(0x25e)](_0xdf0738['string'](), _0xdf0738['object']({
2286
+ 'create_thread': _0xdf0738['unknown']()[_0x21f93c(0x16c)](),
2287
+ 'create_task': _0xdf0738[_0x21f93c(0x1c4)]()['optional']()
2288
+ }))[_0x21f93c(0x16c)](),
2289
+ 'idempotency_key': _0xdf0738[_0x21f93c(0x216)]()[_0x21f93c(0x16c)]()
2290
+ }, async _0x5388b4 => {
2291
+ const _0x265823 = _0x21f93c;
2257
2292
  try {
2258
- return textResult(await _0x12b741[_0x4c2cf0(0x19b)](_0x22826f));
2259
- } catch (_0x342043) {
2260
- return textResult(_0x342043 instanceof Error ? _0x342043[_0x4c2cf0(_0x4d75e0._0x59b4af)] : 'claim_tasks\x20failed', !![]);
2293
+ return textResult(await _0x3ab95f[_0x265823(0x1eb)](_0x5388b4));
2294
+ } catch (_0x19f958) {
2295
+ return textResult(_0x19f958 instanceof Error ? _0x19f958[_0x265823(_0x1cb219._0x5edfee)] : _0x265823(0x23e), !![]);
2261
2296
  }
2262
- }), _0xac53cc[_0x18adbf(_0x1941c1._0x148372)](_0x18adbf(_0x1941c1._0x185691), _0x18adbf(_0x1941c1._0x22da48), {
2263
- 'channel': _0x484afa['string'](),
2264
- 'task_number': _0x484afa['number'](),
2265
- 'subtask_number': _0x484afa[_0x18adbf(_0x1941c1._0x1b3953)]()[_0x18adbf(0x15f)](),
2266
- 'idempotency_key': _0x484afa[_0x18adbf(0x240)]()[_0x18adbf(0x15f)]()
2267
- }, async _0x3d5457 => {
2268
- const _0x3634e3 = _0x18adbf;
2297
+ }), _0x3897e6[_0x21f93c(0x2a0)](_0x21f93c(_0x2900de._0x499a60), 'Release\x20a\x20claimed\x20task\x20by\x20channel\x20and\x20task\x20number.\x20For\x20subtasks,\x20also\x20pass\x20subtask_number.', {
2298
+ 'channel': _0xdf0738[_0x21f93c(_0x2900de._0x4e13b5)](),
2299
+ 'task_number': _0xdf0738[_0x21f93c(0x23c)](),
2300
+ 'subtask_number': _0xdf0738[_0x21f93c(_0x2900de._0x2c4105)]()[_0x21f93c(_0x2900de._0x257c42)](),
2301
+ 'idempotency_key': _0xdf0738[_0x21f93c(_0x2900de._0x318708)]()[_0x21f93c(0x16c)]()
2302
+ }, async _0x9efe67 => {
2303
+ const _0x59e095 = _0x21f93c;
2269
2304
  try {
2270
- return textResult(await _0x12b741[_0x3634e3(_0x1cfe19._0x3c558f)](_0x3d5457));
2271
- } catch (_0xb8bfe8) {
2272
- return textResult(_0xb8bfe8 instanceof Error ? _0xb8bfe8[_0x3634e3(_0x1cfe19._0x56270c)] : _0x3634e3(_0x1cfe19._0x37692b), !![]);
2305
+ return textResult(await _0x3ab95f['unclaim_task'](_0x9efe67));
2306
+ } catch (_0x484cb1) {
2307
+ return textResult(_0x484cb1 instanceof Error ? _0x484cb1[_0x59e095(_0x57173d._0xdb4bcd)] : _0x59e095(_0x57173d._0x51e8c5), !![]);
2273
2308
  }
2274
- }), _0xac53cc['tool'](_0x18adbf(_0x1941c1._0x7908c0), _0x18adbf(0x146), {
2275
- 'channel': _0x484afa['string'](),
2276
- 'task_number': _0x484afa[_0x18adbf(_0x1941c1._0x2fd6b1)](),
2277
- 'subtask_number': _0x484afa[_0x18adbf(_0x1941c1._0x1b3953)]()[_0x18adbf(_0x1941c1._0x351bc5)](),
2278
- 'status': _0x484afa[_0x18adbf(_0x1941c1._0x1e131c)]([
2279
- _0x18adbf(_0x1941c1._0x4030ac),
2280
- _0x18adbf(_0x1941c1._0x1a586b),
2281
- _0x18adbf(0x243),
2282
- _0x18adbf(0x19c)
2309
+ }), _0x3897e6[_0x21f93c(_0x2900de._0x4f796c)](_0x21f93c(0x1f1), _0x21f93c(_0x2900de._0x64c1ce), {
2310
+ 'channel': _0xdf0738[_0x21f93c(0x216)](),
2311
+ 'task_number': _0xdf0738['number'](),
2312
+ 'subtask_number': _0xdf0738[_0x21f93c(0x23c)]()[_0x21f93c(_0x2900de._0x11d43f)](),
2313
+ 'status': _0xdf0738[_0x21f93c(_0x2900de._0x52abe2)]([
2314
+ _0x21f93c(_0x2900de._0x438734),
2315
+ _0x21f93c(0x2bf),
2316
+ _0x21f93c(0x27b),
2317
+ _0x21f93c(0x288)
2283
2318
  ]),
2284
- 'idempotency_key': _0x484afa['string']()['optional']()
2285
- }, async _0xdfad13 => {
2286
- const _0x155606 = _0x18adbf;
2319
+ 'idempotency_key': _0xdf0738['string']()[_0x21f93c(_0x2900de._0x257c42)]()
2320
+ }, async _0x237852 => {
2321
+ const _0x271c34 = _0x21f93c;
2287
2322
  try {
2288
- return textResult(await _0x12b741[_0x155606(_0x15b915._0x5efaf6)](_0xdfad13));
2289
- } catch (_0x50a9e0) {
2290
- return textResult(_0x50a9e0 instanceof Error ? _0x50a9e0[_0x155606(_0x15b915._0x35bcee)] : 'update_task_status\x20failed', !![]);
2323
+ return textResult(await _0x3ab95f[_0x271c34(0x1f1)](_0x237852));
2324
+ } catch (_0x3ffd20) {
2325
+ return textResult(_0x3ffd20 instanceof Error ? _0x3ffd20[_0x271c34(_0x273e82._0x3364e0)] : _0x271c34(_0x273e82._0x395e5d), !![]);
2291
2326
  }
2292
- }), _0xac53cc[_0x18adbf(_0x1941c1._0xfa2a8a)](_0x18adbf(_0x1941c1._0x3f9df1), _0x18adbf(0x11c), {
2293
- 'channel': _0x484afa['string'](),
2294
- 'file_path': _0x484afa['string']()
2295
- }, async _0x4fdb69 => {
2296
- const _0xfa0a01 = _0x18adbf;
2327
+ }), _0x3897e6['tool'](_0x21f93c(0x2b9), _0x21f93c(_0x2900de._0x5ede04), {
2328
+ 'channel': _0xdf0738['string'](),
2329
+ 'file_path': _0xdf0738[_0x21f93c(_0x2900de._0x198fa6)]()
2330
+ }, async _0x307e80 => {
2331
+ const _0x451b08 = _0x21f93c;
2297
2332
  try {
2298
- return textResult(await _0x12b741[_0xfa0a01(0x260)](_0x4fdb69));
2299
- } catch (_0x112327) {
2300
- return textResult(_0x112327 instanceof Error ? _0x112327['message'] : 'upload_file\x20failed', !![]);
2333
+ return textResult(await _0x3ab95f[_0x451b08(0x2b9)](_0x307e80));
2334
+ } catch (_0xc18c01) {
2335
+ return textResult(_0xc18c01 instanceof Error ? _0xc18c01[_0x451b08(_0x2272b9._0x4b982a)] : _0x451b08(_0x2272b9._0x249ea5), !![]);
2301
2336
  }
2302
- }), _0xac53cc[_0x18adbf(_0x1941c1._0x29ac4a)](_0x18adbf(0x1db), _0x18adbf(_0x1941c1._0x2bf317), { 'attachment_id': _0x484afa[_0x18adbf(_0x1941c1._0x427187)]() }, async _0x33b08a => {
2303
- const _0x31228f = _0x18adbf;
2337
+ }), _0x3897e6[_0x21f93c(0x2a0)](_0x21f93c(_0x2900de._0x3e2e85), 'Download\x20an\x20attachment\x20to\x20the\x20local\x20cache\x20and\x20return\x20the\x20local\x20path.', { 'attachment_id': _0xdf0738['string']() }, async _0x488de7 => {
2338
+ const _0x2c5dbb = _0x21f93c;
2304
2339
  try {
2305
- return textResult(await _0x12b741['view_file'](_0x33b08a));
2306
- } catch (_0x1d32be) {
2307
- return textResult(_0x1d32be instanceof Error ? _0x1d32be[_0x31228f(_0x48ab2e._0x56032f)] : 'view_file\x20failed', !![]);
2340
+ return textResult(await _0x3ab95f[_0x2c5dbb(0x1d3)](_0x488de7));
2341
+ } catch (_0x1cb324) {
2342
+ return textResult(_0x1cb324 instanceof Error ? _0x1cb324[_0x2c5dbb(_0x214e56._0x19ce9f)] : _0x2c5dbb(_0x214e56._0x119f8c), !![]);
2308
2343
  }
2309
- }), _0xac53cc['tool']('get_worker_status', _0x18adbf(0x10e), { 'work_key': _0x484afa['string']() }, async _0x1387df => {
2310
- const _0x3efe13 = _0x18adbf;
2344
+ }), _0x3897e6[_0x21f93c(0x2a0)](_0x21f93c(0x256), _0x21f93c(_0x2900de._0x5034d2), { 'work_key': _0xdf0738[_0x21f93c(_0x2900de._0x229f83)]() }, async _0x199f0d => {
2345
+ const _0x4aa91a = _0x21f93c;
2311
2346
  try {
2312
- return textResult(await _0x12b741[_0x3efe13(0x1f2)](_0x1387df));
2313
- } catch (_0x45d6bf) {
2314
- return textResult(_0x45d6bf instanceof Error ? _0x45d6bf[_0x3efe13(0x143)] : _0x3efe13(_0x38003b._0x5f395b), !![]);
2347
+ return textResult(await _0x3ab95f[_0x4aa91a(0x256)](_0x199f0d));
2348
+ } catch (_0x200390) {
2349
+ return textResult(_0x200390 instanceof Error ? _0x200390[_0x4aa91a(_0x1686b6._0x337a22)] : _0x4aa91a(0x1dd), !![]);
2315
2350
  }
2316
- }), _0xac53cc[_0x18adbf(_0x1941c1._0x24809d)](_0x18adbf(_0x1941c1._0x27b298), _0x18adbf(_0x1941c1._0x1e758c), { 'work_key': _0x484afa[_0x18adbf(0x240)]() }, async _0x35eddc => {
2317
- const _0x2ef739 = _0x18adbf;
2351
+ }), _0x3897e6[_0x21f93c(0x2a0)]('park_worker', 'Worker-only.\x20Park\x20the\x20current\x20worker\x20lane\x20after\x20you\x20have\x20already\x20reported\x20results\x20in\x20this\x20thread.\x20This\x20does\x20not\x20end\x20the\x20session;\x20same-thread\x20follow-up\x20will\x20resume\x20this\x20lane.', { 'work_key': _0xdf0738['string']() }, async _0x39d626 => {
2352
+ const _0x1b313c = _0x21f93c;
2318
2353
  try {
2319
- return textResult(await _0x12b741[_0x2ef739(0x268)](_0x35eddc));
2320
- } catch (_0xf17098) {
2321
- return textResult(_0xf17098 instanceof Error ? _0xf17098[_0x2ef739(_0xe8ea43._0x374a23)] : 'park_worker\x20failed', !![]);
2354
+ return textResult(await _0x3ab95f[_0x1b313c(0x1cd)](_0x39d626));
2355
+ } catch (_0x37b4e0) {
2356
+ return textResult(_0x37b4e0 instanceof Error ? _0x37b4e0[_0x1b313c(_0x47e496._0x256814)] : 'park_worker\x20failed', !![]);
2322
2357
  }
2323
- }), !_0x383d85?.['workerMode'] && _0xac53cc[_0x18adbf(0x24d)](_0x18adbf(_0x1941c1._0x2cecd8), _0x18adbf(_0x1941c1._0x5df0ff), {
2324
- 'work_key': _0x484afa[_0x18adbf(0x240)](),
2325
- 'reason': _0x484afa['string']()
2326
- }, async _0x3d73a8 => {
2327
- const _0x2aa033 = _0x18adbf;
2358
+ }), !_0x5aa2f4?.[_0x21f93c(0x267)] && _0x3897e6[_0x21f93c(0x2a0)](_0x21f93c(_0x2900de._0x1104e8), 'Escalate\x20an\x20issue\x20to\x20the\x20main\x20agent\x20session.\x20Use\x20when\x20the\x20worker\x20cannot\x20resolve\x20a\x20problem\x20alone\x20and\x20needs\x20main\x20to\x20intervene.', {
2359
+ 'work_key': _0xdf0738[_0x21f93c(_0x2900de._0x2a6331)](),
2360
+ 'reason': _0xdf0738['string']()
2361
+ }, async _0x3b89ec => {
2362
+ const _0x218429 = _0x21f93c;
2328
2363
  try {
2329
- return textResult(await _0x12b741[_0x2aa033(0x123)](_0x3d73a8));
2330
- } catch (_0x5b5c4e) {
2331
- return textResult(_0x5b5c4e instanceof Error ? _0x5b5c4e[_0x2aa033(_0x336dee._0x33e94d)] : 'escalate_to_main\x20failed', !![]);
2364
+ return textResult(await _0x3ab95f[_0x218429(_0x565701._0x56eb2b)](_0x3b89ec));
2365
+ } catch (_0x2f316a) {
2366
+ return textResult(_0x2f316a instanceof Error ? _0x2f316a[_0x218429(0x1e8)] : 'escalate_to_main\x20failed', !![]);
2332
2367
  }
2333
- }), _0x383d85?.['workerMode'] && _0xac53cc[_0x18adbf(_0x1941c1._0x1ad1ed)](_0x18adbf(_0x1941c1._0x277022), 'Mark\x20the\x20current\x20worker\x20as\x20waiting\x20for\x20human\x20input.\x20Pauses\x20the\x20idle\x20TTL\x20timer\x20until\x20a\x20new\x20message\x20arrives.', { 'work_key': _0x484afa['string']() }, async _0x2308e7 => {
2334
- const _0x219583 = _0x18adbf;
2368
+ }), _0x5aa2f4?.[_0x21f93c(0x267)] && _0x3897e6[_0x21f93c(_0x2900de._0x10cda0)](_0x21f93c(_0x2900de._0x60f8e8), _0x21f93c(_0x2900de._0x5af8eb), { 'work_key': _0xdf0738['string']() }, async _0x12b460 => {
2369
+ const _0x57469d = _0x21f93c;
2335
2370
  try {
2336
- return textResult(await _0x12b741[_0x219583(0x1b3)](_0x2308e7));
2337
- } catch (_0x1548e8) {
2338
- return textResult(_0x1548e8 instanceof Error ? _0x1548e8['message'] : _0x219583(_0x7cc6c7._0x47fe0b), !![]);
2371
+ return textResult(await _0x3ab95f[_0x57469d(0x2ee)](_0x12b460));
2372
+ } catch (_0x5259d3) {
2373
+ return textResult(_0x5259d3 instanceof Error ? _0x5259d3[_0x57469d(0x1e8)] : _0x57469d(0x2af), !![]);
2339
2374
  }
2340
2375
  });
2341
2376
  }
2342
- async function createChatBridgeServer(_0x11ff13) {
2343
- const _0x32daa5 = {
2344
- _0x19a6d2: 0x172,
2345
- _0x13dea2: 0x1df
2346
- }, _0x2908cd = _0x548baf, {McpServer: _0x14d238} = await import('@modelcontextprotocol/sdk/server/mcp.js'), _0x1de2da = new _0x14d238({
2347
- 'name': _0x2908cd(_0x32daa5._0x19a6d2),
2348
- 'version': '0.0.0'
2349
- }), _0x899737 = createChatBridgeHandlers(_0x11ff13);
2350
- return await registerChatBridgeTools(_0x1de2da, _0x899737, { 'workerMode': _0x11ff13[_0x2908cd(_0x32daa5._0x13dea2)] }), {
2351
- 'handlers': _0x899737,
2352
- 'server': _0x1de2da
2377
+ async function createChatBridgeServer(_0x1c4491) {
2378
+ const _0x1fa105 = { _0x1b8b48: 0x28f }, _0xe1234e = _0x5e54a5, {McpServer: _0x3c9d26} = await import(_0xe1234e(0x260)), _0x102fe7 = new _0x3c9d26({
2379
+ 'name': _0xe1234e(_0x1fa105._0x1b8b48),
2380
+ 'version': _0xe1234e(0x161)
2381
+ }), _0xbcc532 = createChatBridgeHandlers(_0x1c4491);
2382
+ return await registerChatBridgeTools(_0x102fe7, _0xbcc532, { 'workerMode': _0x1c4491[_0xe1234e(0x267)] }), {
2383
+ 'handlers': _0xbcc532,
2384
+ 'server': _0x102fe7
2353
2385
  };
2354
2386
  }
2355
- function readFlag(_0x48361b, _0x3f3a29) {
2356
- const _0xd7739d = { _0x6cb38b: 0xff }, _0x26fa24 = _0x548baf, _0x324210 = _0x48361b[_0x26fa24(_0xd7739d._0x6cb38b)](_0x3f3a29);
2357
- if (_0x324210 === -0x1)
2387
+ function readFlag(_0x46f811, _0x113581) {
2388
+ const _0x2c266f = _0x46f811['indexOf'](_0x113581);
2389
+ if (_0x2c266f === -0x1)
2358
2390
  return void 0x0;
2359
- return _0x48361b[_0x324210 + 0x1];
2391
+ return _0x46f811[_0x2c266f + 0x1];
2360
2392
  }
2361
- function parseChatBridgeArgs(_0x32cbfd) {
2362
- const _0x58648 = {
2363
- _0x4a3405: 0x18a,
2364
- _0x2e19c9: 0x261,
2365
- _0x360662: 0x17c,
2366
- _0x4c862c: 0x1c1,
2367
- _0x8403dc: 0x117,
2368
- _0x152ac2: 0x247,
2369
- _0x58b0bc: 0x259
2370
- }, _0x7e6654 = _0x548baf, _0x29bcdb = readFlag(_0x32cbfd, _0x7e6654(_0x58648._0x4a3405)), _0x5320 = readFlag(_0x32cbfd, _0x7e6654(0x1de)), _0x2d3af8 = readFlag(_0x32cbfd, _0x7e6654(_0x58648._0x2e19c9)), _0x110925 = readFlag(_0x32cbfd, _0x7e6654(0x12a)), _0x21dc25 = readFlag(_0x32cbfd, '--server-url') ?? 'http://localhost:8121', _0x329d27 = readFlag(_0x32cbfd, '--daemon-local-url'), _0x40aa99 = readFlag(_0x32cbfd, _0x7e6654(0x248)), _0x42f24a = readFlag(_0x32cbfd, _0x7e6654(0x210)), _0x2d0044 = readFlag(_0x32cbfd, _0x7e6654(_0x58648._0x360662)), _0x22776c = readFlag(_0x32cbfd, _0x7e6654(0x1be)), _0x3e0282 = _0x32cbfd[_0x7e6654(_0x58648._0x4c862c)](_0x7e6654(_0x58648._0x8403dc)), _0x4b9fd6 = _0x110925 === void 0x0 ? void 0x0 : Number['parseInt'](_0x110925, 0xa);
2371
- if (!_0x29bcdb)
2372
- throw new Error(_0x7e6654(_0x58648._0x152ac2));
2373
- if (!_0x2d3af8)
2393
+ function parseChatBridgeArgs(_0xd931a7) {
2394
+ const _0x44058d = {
2395
+ _0x5ead58: 0x18a,
2396
+ _0x148463: 0x1ac,
2397
+ _0x269156: 0x290,
2398
+ _0x4d0a07: 0x2a2
2399
+ }, _0x273842 = _0x5e54a5, _0x5eabe1 = readFlag(_0xd931a7, _0x273842(_0x44058d._0x5ead58)), _0x4cb0dc = readFlag(_0xd931a7, _0x273842(0x28b)), _0x1afe93 = readFlag(_0xd931a7, '--daemon-api-key'), _0x9a05ff = readFlag(_0xd931a7, '--initial-last-seen-seq'), _0x244e09 = readFlag(_0xd931a7, _0x273842(0x162)) ?? 'http://localhost:8121', _0x188d5b = readFlag(_0xd931a7, _0x273842(_0x44058d._0x148463)), _0x17a196 = readFlag(_0xd931a7, '--session-id'), _0x24478f = readFlag(_0xd931a7, _0x273842(_0x44058d._0x269156)), _0x4d7f22 = readFlag(_0xd931a7, _0x273842(0x17b)), _0x3eaf0f = readFlag(_0xd931a7, _0x273842(0x17a)), _0x4b8f27 = _0xd931a7[_0x273842(_0x44058d._0x4d0a07)]('--worker-mode'), _0x8238e0 = _0x9a05ff === void 0x0 ? void 0x0 : Number['parseInt'](_0x9a05ff, 0xa);
2400
+ if (!_0x5eabe1)
2401
+ throw new Error('Missing\x20--agent-id');
2402
+ if (!_0x1afe93)
2374
2403
  throw new Error('Missing\x20--daemon-api-key');
2375
- if (_0x110925 !== void 0x0 && (_0x4b9fd6 === void 0x0 || !Number[_0x7e6654(0x224)](_0x4b9fd6) || _0x4b9fd6 < 0x0))
2376
- throw new Error(_0x7e6654(0x1b1));
2404
+ if (_0x9a05ff !== void 0x0 && (_0x8238e0 === void 0x0 || !Number[_0x273842(0x22c)](_0x8238e0) || _0x8238e0 < 0x0))
2405
+ throw new Error(_0x273842(0x221));
2377
2406
  return {
2378
- 'agentId': _0x29bcdb,
2379
- 'attachmentCacheDir': _0x5320,
2380
- 'daemonApiKey': _0x2d3af8,
2381
- 'daemonLocalUrl': _0x329d27,
2382
- 'initialLastSeenSeq': _0x4b9fd6,
2383
- 'sessionId': _0x40aa99,
2384
- 'serverUrl': _0x21dc25,
2385
- 'workerModeEnabled': _0x42f24a === void 0x0 ? void 0x0 : _0x42f24a !== _0x7e6654(_0x58648._0x58b0bc),
2386
- 'workerSessionId': _0x2d0044,
2387
- 'workerThreadTarget': _0x22776c,
2388
- 'workerMode': _0x3e0282
2407
+ 'agentId': _0x5eabe1,
2408
+ 'attachmentCacheDir': _0x4cb0dc,
2409
+ 'daemonApiKey': _0x1afe93,
2410
+ 'daemonLocalUrl': _0x188d5b,
2411
+ 'initialLastSeenSeq': _0x8238e0,
2412
+ 'sessionId': _0x17a196,
2413
+ 'serverUrl': _0x244e09,
2414
+ 'workerModeEnabled': _0x24478f === void 0x0 ? void 0x0 : _0x24478f !== _0x273842(0x23f),
2415
+ 'workerSessionId': _0x4d7f22,
2416
+ 'workerThreadTarget': _0x3eaf0f,
2417
+ 'workerMode': _0x4b8f27
2389
2418
  };
2390
2419
  }
2391
- async function runChatBridgeCli(_0x477282) {
2392
- const _0x11a32c = {
2393
- _0x4121b0: 0x223,
2394
- _0x450787: 0x1d6,
2395
- _0x54aea6: 0x1b5
2396
- }, _0x42bf28 = _0x548baf, _0x567a79 = parseChatBridgeArgs(_0x477282), {StdioServerTransport: _0x3577e5} = await import(_0x42bf28(_0x11a32c._0x4121b0)), _0x403b74 = createInternalAgentClient(_0x567a79), _0x12022d = createAttachmentCache({ 'cacheDir': _0x567a79[_0x42bf28(_0x11a32c._0x450787)] }), _0x3719de = await createChatBridgeServer({
2397
- 'agentId': _0x567a79[_0x42bf28(_0x11a32c._0x54aea6)],
2398
- 'attachmentCache': _0x12022d,
2399
- 'client': _0x403b74,
2400
- 'daemonLocalUrl': _0x567a79['daemonLocalUrl'],
2420
+ async function runChatBridgeCli(_0x5a9fbf) {
2421
+ const _0x1d6888 = {
2422
+ _0x54b3e7: 0x267,
2423
+ _0x271fb1: 0x205
2424
+ }, _0x2dacd7 = _0x5e54a5, _0x1a2f87 = parseChatBridgeArgs(_0x5a9fbf), {StdioServerTransport: _0x274690} = await import('@modelcontextprotocol/sdk/server/stdio.js'), _0x5b58f9 = createInternalAgentClient(_0x1a2f87), _0x455f0e = createAttachmentCache({ 'cacheDir': _0x1a2f87[_0x2dacd7(0x2cd)] }), _0x3b87a3 = await createChatBridgeServer({
2425
+ 'agentId': _0x1a2f87['agentId'],
2426
+ 'attachmentCache': _0x455f0e,
2427
+ 'client': _0x5b58f9,
2428
+ 'daemonLocalUrl': _0x1a2f87['daemonLocalUrl'],
2401
2429
  'uploadPreparer': prepareUploadFile,
2402
- 'workerModeEnabled': _0x567a79[_0x42bf28(0x104)],
2403
- 'workerMode': _0x567a79[_0x42bf28(0x1df)],
2404
- 'workerThreadTarget': _0x567a79[_0x42bf28(0xfe)]
2430
+ 'workerModeEnabled': _0x1a2f87[_0x2dacd7(0x227)],
2431
+ 'workerMode': _0x1a2f87[_0x2dacd7(_0x1d6888._0x54b3e7)],
2432
+ 'workerThreadTarget': _0x1a2f87[_0x2dacd7(0x1c5)]
2405
2433
  });
2406
- await _0x3719de[_0x42bf28(0x21b)][_0x42bf28(0x24a)](new _0x3577e5());
2434
+ await _0x3b87a3[_0x2dacd7(_0x1d6888._0x271fb1)][_0x2dacd7(0x29d)](new _0x274690());
2407
2435
  }
2408
- var executedAsEntry = process[_0x548baf(0x1d0)][0x1] ? import.meta.url === pathToFileURL(process[_0x548baf(0x1d0)][0x1])['href'] : ![];
2409
- executedAsEntry && await runChatBridgeCli(process['argv'][_0x548baf(0x14a)](0x2));
2436
+ var executedAsEntry = process[_0x5e54a5(0x2e4)][0x1] ? import.meta.url === pathToFileURL(process[_0x5e54a5(0x2e4)][0x1])['href'] : ![];
2437
+ executedAsEntry && await runChatBridgeCli(process[_0x5e54a5(0x2e4)][_0x5e54a5(0x2ab)](0x2));
2410
2438
  export {
2411
2439
  createChatBridgeHandlers,
2412
2440
  createChatBridgeServer,