@dscord/daemon 0.1.65 → 0.1.66

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 +2229 -2198
  2. package/dist/index.js +11442 -11378
  3. package/package.json +1 -1
@@ -1,2409 +1,2440 @@
1
- const _0x36c0a2 = _0x2192;
2
- (function (_0x538791, _0x34a750) {
3
- const _0x225553 = {
4
- _0x381e4e: 0x1f4,
5
- _0x2542d3: 0x2c0,
6
- _0x42b231: 0x175,
7
- _0x17ac2e: 0x254
8
- }, _0x30a6f1 = _0x2192, _0x1ba875 = _0x538791();
1
+ const _0x57701d = _0x3fa9;
2
+ (function (_0x1ad838, _0x1088e3) {
3
+ const _0x565891 = {
4
+ _0x51f605: 0x2b1,
5
+ _0xf6a615: 0x36a,
6
+ _0x40bc81: 0x2b9
7
+ }, _0x16b24d = _0x3fa9, _0x4f0850 = _0x1ad838();
9
8
  while (!![]) {
10
9
  try {
11
- const _0x236ad0 = -parseInt(_0x30a6f1(0x18e)) / 0x1 + parseInt(_0x30a6f1(_0x225553._0x381e4e)) / 0x2 + -parseInt(_0x30a6f1(_0x225553._0x2542d3)) / 0x3 + parseInt(_0x30a6f1(0x276)) / 0x4 + parseInt(_0x30a6f1(0x1f3)) / 0x5 + parseInt(_0x30a6f1(_0x225553._0x42b231)) / 0x6 + parseInt(_0x30a6f1(_0x225553._0x17ac2e)) / 0x7 * (parseInt(_0x30a6f1(0x1cb)) / 0x8);
12
- if (_0x236ad0 === _0x34a750)
10
+ const _0x1c2db1 = -parseInt(_0x16b24d(_0x565891._0x51f605)) / 0x1 * (parseInt(_0x16b24d(0x2ed)) / 0x2) + parseInt(_0x16b24d(0x2dd)) / 0x3 * (parseInt(_0x16b24d(0x231)) / 0x4) + -parseInt(_0x16b24d(0x358)) / 0x5 + parseInt(_0x16b24d(_0x565891._0xf6a615)) / 0x6 + -parseInt(_0x16b24d(_0x565891._0x40bc81)) / 0x7 + -parseInt(_0x16b24d(0x258)) / 0x8 * (parseInt(_0x16b24d(0x340)) / 0x9) + parseInt(_0x16b24d(0x278)) / 0xa;
11
+ if (_0x1c2db1 === _0x1088e3)
13
12
  break;
14
13
  else
15
- _0x1ba875['push'](_0x1ba875['shift']());
16
- } catch (_0x4a1048) {
17
- _0x1ba875['push'](_0x1ba875['shift']());
14
+ _0x4f0850['push'](_0x4f0850['shift']());
15
+ } catch (_0x2f14af) {
16
+ _0x4f0850['push'](_0x4f0850['shift']());
18
17
  }
19
18
  }
20
- }(_0x7a96, 0x742a6));
21
- import { pathToFileURL } from 'node:url';
22
- import {
23
- mkdir,
24
- readFile,
25
- readdir,
26
- stat,
27
- writeFile
28
- } from 'node:fs/promises';
29
- import { homedir } from 'node:os';
30
- import _0xb0331c from 'node:path';
31
- var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
32
- '.csv': _0x36c0a2(0x1cd),
33
- '.gif': _0x36c0a2(0x202),
34
- '.jpeg': 'image/jpeg',
35
- '.jpg': _0x36c0a2(0x283),
36
- '.json': _0x36c0a2(0x2b1),
37
- '.md': 'text/markdown',
38
- '.pdf': _0x36c0a2(0x1bb),
39
- '.png': 'image/png',
40
- '.svg': 'image/svg+xml',
41
- '.txt': 'text/plain',
42
- '.webp': _0x36c0a2(0x1ec),
43
- '.xml': _0x36c0a2(0x157),
44
- '.zip': _0x36c0a2(0x18d)
45
- };
46
- function guessContentType(_0x1b00e6) {
47
- const _0x105089 = _0x36c0a2;
48
- return MIME_BY_EXTENSION[_0xb0331c[_0x105089(0x21c)](_0x1b00e6)['toLowerCase']()] ?? _0x105089(0x27b);
49
- }
50
- function safeFilename(_0xc44fd5) {
51
- const _0x1bd106 = _0x36c0a2;
52
- return _0xc44fd5[_0x1bd106(0x2ac)](/[\\/]/g, '-');
53
- }
54
- function extensionFor(_0x36d0ab) {
55
- const _0x5664ba = {
56
- _0x58ef3d: 0x233,
57
- _0xaace9c: 0x208
58
- }, _0x3971ff = _0x36c0a2, _0x160a57 = Object[_0x3971ff(_0x5664ba._0x58ef3d)](MIME_BY_EXTENSION)[_0x3971ff(_0x5664ba._0xaace9c)](([, _0x1b79b0]) => _0x1b79b0 === _0x36d0ab);
59
- return _0x160a57?.[0x0] ?? _0x3971ff(0x238);
60
- }
61
- async function prepareUploadFile(_0x409283, _0x2f063d = {}) {
62
- const _0x1dfffe = {
63
- _0x4b6b43: 0x2c7,
64
- _0x19bcb6: 0x16f,
65
- _0x99b2e4: 0x180,
66
- _0x1c437f: 0x199,
67
- _0x2672d6: 0x249
68
- }, _0x56a0e2 = _0x36c0a2;
69
- if (!_0xb0331c[_0x56a0e2(_0x1dfffe._0x4b6b43)](_0x409283))
70
- throw new Error(_0x56a0e2(0x1c7));
71
- const _0x172e64 = await stat(_0x409283)[_0x56a0e2(0x24c)](() => null);
72
- if (!_0x172e64 || !_0x172e64['isFile']())
73
- throw new Error(_0x56a0e2(_0x1dfffe._0x19bcb6) + _0x409283);
74
- const _0x2c9337 = _0x2f063d[_0x56a0e2(_0x1dfffe._0x99b2e4)] ?? DEFAULT_MAX_FILE_SIZE;
75
- if (_0x172e64[_0x56a0e2(0x199)] > _0x2c9337)
76
- throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x172e64[_0x56a0e2(_0x1dfffe._0x1c437f)]);
77
- const _0x4742c0 = await readFile(_0x409283), _0x5997fe = _0xb0331c[_0x56a0e2(0x2db)](_0x409283);
78
- return {
79
- 'contentBase64': _0x4742c0[_0x56a0e2(0x159)](_0x56a0e2(_0x1dfffe._0x2672d6)),
80
- 'contentType': guessContentType(_0x5997fe),
81
- 'filename': _0x5997fe,
82
- 'sizeBytes': _0x172e64[_0x56a0e2(_0x1dfffe._0x1c437f)]
83
- };
84
- }
85
- function createAttachmentCache(_0x47e25f = {}) {
86
- const _0xaf8977 = {
87
- _0xd61785: 0x156,
88
- _0x4b2621: 0x156,
89
- _0x5ad15a: 0x224,
90
- _0x97271f: 0x1c4
91
- }, _0x57f0aa = _0x36c0a2, _0xfbcc3d = _0x47e25f['cacheDir'] ?? _0xb0331c[_0x57f0aa(0x2a2)](homedir(), _0x57f0aa(0x2b2), _0x57f0aa(0x25c));
92
- return {
93
- 'cacheDir': _0xfbcc3d,
94
- async 'findCachedPath'(_0x50cffd) {
95
- const _0x4ba2b1 = _0x57f0aa;
96
- await mkdir(_0xfbcc3d, { 'recursive': !![] });
97
- const _0x48db8f = await readdir(_0xfbcc3d), _0x5c4542 = _0x48db8f[_0x4ba2b1(0x208)](_0x738bc9 => _0x738bc9[_0x4ba2b1(0x260)](_0x50cffd + '-') || _0x738bc9[_0x4ba2b1(0x260)](_0x50cffd));
98
- return _0x5c4542 ? _0xb0331c[_0x4ba2b1(0x2a2)](_0xfbcc3d, _0x5c4542) : null;
99
- },
100
- async 'save'(_0x215958) {
101
- const _0x3b715c = _0x57f0aa;
102
- await mkdir(_0xfbcc3d, { 'recursive': !![] });
103
- const _0x1da97b = _0x215958[_0x3b715c(_0xaf8977._0xd61785)]?.['trim']() ? safeFilename(_0x215958[_0x3b715c(_0xaf8977._0x4b2621)]) : '' + _0x215958[_0x3b715c(0x227)] + extensionFor(_0x215958[_0x3b715c(_0xaf8977._0x5ad15a)]), _0x27b982 = _0xb0331c['join'](_0xfbcc3d, _0x215958['attachmentId'] + '-' + _0x1da97b);
104
- return await writeFile(_0x27b982, _0x215958[_0x3b715c(_0xaf8977._0x97271f)]), _0x27b982;
105
- }
106
- };
107
- }
108
- import {
109
- createHash,
110
- randomUUID
111
- } from 'node:crypto';
112
- var UNSUPPORTED_TARGET_MESSAGE = 'Unsupported\x20target\x20format.\x20Supported\x20values\x20are\x20#channel,\x20dm:dm-<name>,\x20and\x20their\x20thread\x20targets.';
113
- function ensureSegment(_0x30071d) {
114
- const _0x1375c8 = _0x30071d['trim']();
115
- if (!_0x1375c8 || _0x1375c8['includes'](':'))
116
- throw new Error(UNSUPPORTED_TARGET_MESSAGE);
117
- return _0x1375c8;
118
- }
119
- function parseThreadParts(_0x12998c) {
120
- const _0x4b3e1e = { _0x36d81a: 0x2a9 }, _0x2b5703 = _0x36c0a2, _0x3d9074 = _0x12998c[_0x2b5703(0x2d6)](':');
121
- if (_0x3d9074[_0x2b5703(0x2a9)] < 0x1 || _0x3d9074[_0x2b5703(_0x4b3e1e._0x36d81a)] > 0x2)
122
- throw new Error(UNSUPPORTED_TARGET_MESSAGE);
123
- return {
124
- 'channelName': ensureSegment(_0x3d9074[0x0] ?? ''),
125
- 'threadShortId': _0x3d9074[0x1] ? ensureSegment(_0x3d9074[0x1]) : null
126
- };
127
- }
128
- function parseTarget(_0x10542e) {
129
- const _0x1bb7d8 = {
130
- _0x47ba21: 0x260,
131
- _0x428c46: 0x2e3,
132
- _0x44901c: 0x2e0,
133
- _0x5263c8: 0x251,
134
- _0x5512eb: 0x1b2,
135
- _0x5886b1: 0x181
136
- }, _0x3925dc = _0x36c0a2, _0x15bf2a = _0x10542e[_0x3925dc(0x255)]();
137
- if (!_0x15bf2a)
138
- throw new Error(UNSUPPORTED_TARGET_MESSAGE);
139
- if (_0x15bf2a[_0x3925dc(_0x1bb7d8._0x47ba21)]('#')) {
140
- const _0x2c2701 = parseThreadParts(_0x15bf2a[_0x3925dc(0x189)](0x1)), _0x59de6c = '#' + _0x2c2701[_0x3925dc(_0x1bb7d8._0x428c46)];
141
- if (!_0x2c2701[_0x3925dc(0x214)])
142
- return {
143
- 'channelName': _0x2c2701[_0x3925dc(0x2e3)],
144
- 'channelTarget': _0x59de6c,
145
- 'kind': _0x3925dc(_0x1bb7d8._0x44901c),
146
- 'target': _0x59de6c
147
- };
148
- return {
149
- 'channelName': _0x2c2701['channelName'],
150
- 'channelTarget': _0x59de6c,
151
- 'kind': _0x3925dc(0x181),
152
- 'target': _0x59de6c + ':' + _0x2c2701[_0x3925dc(0x214)],
153
- 'threadShortId': _0x2c2701[_0x3925dc(0x214)]
154
- };
155
- }
156
- if (_0x15bf2a[_0x3925dc(0x260)](_0x3925dc(_0x1bb7d8._0x5263c8))) {
157
- const _0x5d0f30 = parseThreadParts(_0x15bf2a[_0x3925dc(0x189)](0x3));
158
- if (!_0x5d0f30[_0x3925dc(0x2e3)][_0x3925dc(_0x1bb7d8._0x47ba21)](_0x3925dc(_0x1bb7d8._0x5512eb)))
159
- throw new Error(UNSUPPORTED_TARGET_MESSAGE);
160
- const _0x46e27c = 'dm:' + _0x5d0f30[_0x3925dc(0x2e3)];
161
- if (!_0x5d0f30['threadShortId'])
162
- return {
163
- 'channelName': _0x5d0f30[_0x3925dc(_0x1bb7d8._0x428c46)],
164
- 'channelTarget': _0x46e27c,
165
- 'kind': _0x3925dc(0x2e0),
166
- 'target': _0x46e27c
167
- };
168
- return {
169
- 'channelName': _0x5d0f30['channelName'],
170
- 'channelTarget': _0x46e27c,
171
- 'kind': _0x3925dc(_0x1bb7d8._0x5886b1),
172
- 'target': _0x46e27c + ':' + _0x5d0f30['threadShortId'],
173
- 'threadShortId': _0x5d0f30[_0x3925dc(0x214)]
174
- };
175
- }
176
- throw new Error(UNSUPPORTED_TARGET_MESSAGE);
177
- }
178
- function asErrorMessage(_0x3db6c9, _0x546081) {
179
- if (typeof _0x3db6c9 === 'string' && _0x3db6c9['trim']())
180
- return _0x3db6c9;
181
- return _0x546081;
182
- }
183
- function asRecord(_0x3fd8e9) {
184
- return typeof _0x3fd8e9 === 'object' && _0x3fd8e9 !== null ? _0x3fd8e9 : {};
185
- }
186
- function stableStringify(_0x3ed13b) {
187
- const _0xf0570e = {
188
- _0x1a2add: 0x2be,
189
- _0x8b5b: 0x174,
190
- _0x14a091: 0x266
191
- }, _0x3a989d = _0x36c0a2;
192
- if (_0x3ed13b === null || typeof _0x3ed13b !== _0x3a989d(_0xf0570e._0x1a2add))
193
- return JSON['stringify'](_0x3ed13b);
194
- if (Array[_0x3a989d(0x16d)](_0x3ed13b))
195
- return '[' + _0x3ed13b['map'](_0x3fc8b3 => stableStringify(_0x3fc8b3))[_0x3a989d(0x2a2)](',') + ']';
196
- const _0x220982 = Object[_0x3a989d(0x233)](_0x3ed13b)[_0x3a989d(_0xf0570e._0x8b5b)](([, _0x66a98a]) => _0x66a98a !== void 0x0)[_0x3a989d(_0xf0570e._0x14a091)](([_0x3c65a1], [_0x1265c8]) => _0x3c65a1[_0x3a989d(0x1d1)](_0x1265c8))['map'](([_0x34d8d2, _0x167498]) => JSON[_0x3a989d(0x29e)](_0x34d8d2) + ':' + stableStringify(_0x167498));
197
- return '{' + _0x220982['join'](',') + '}';
198
- }
199
- function createHeaders(_0x1f0290) {
200
- const _0x400fe7 = { _0x318655: 0x2b1 }, _0x3dbd1f = _0x36c0a2;
201
- return {
202
- 'Content-Type': _0x3dbd1f(_0x400fe7._0x318655),
203
- 'x-daemon-api-key': _0x1f0290
204
- };
205
- }
206
- function toHttpBaseUrl(_0x147599) {
207
- const _0x594447 = { _0x5b151c: 0x2ac }, _0x851f37 = _0x36c0a2, _0x2cc5ff = new URL(_0x147599);
208
- if (_0x2cc5ff['protocol'] === _0x851f37(0x277))
209
- _0x2cc5ff[_0x851f37(0x2af)] = _0x851f37(0x23b);
210
- else
211
- _0x2cc5ff[_0x851f37(0x2af)] === 'wss:' && (_0x2cc5ff[_0x851f37(0x2af)] = 'https:');
212
- return _0x2cc5ff['toString']()[_0x851f37(_0x594447._0x5b151c)](/\/$/, '');
213
- }
214
- function isMentionBoundary(_0x2ba377) {
215
- const _0x4f62dd = _0x36c0a2;
216
- return !_0x2ba377 || /\s|[([{'",。!?、:;]/[_0x4f62dd(0x23a)](_0x2ba377);
217
- }
218
- function isMentionTerminal(_0x35d21b) {
219
- const _0x4781d6 = { _0x3a9dbd: 0x23a }, _0x4b98d2 = _0x36c0a2;
220
- return !_0x35d21b || /\s|[)\]}'",。!?、:;,.!?]/[_0x4b98d2(_0x4781d6._0x3a9dbd)](_0x35d21b);
221
- }
222
- function buildMatchableEntries(_0x571aac) {
223
- const _0x2f7403 = {
224
- _0x31584c: 0x2a4,
225
- _0x1d7446: 0x195,
226
- _0x3bb2dc: 0x195,
227
- _0x34626e: 0x191
228
- }, _0x3086b1 = _0x36c0a2, _0x4b6938 = [];
229
- for (const _0x19f9c0 of [
230
- ..._0x571aac[_0x3086b1(_0x2f7403._0x31584c)],
231
- ..._0x571aac[_0x3086b1(0x240)]
232
- ]) {
233
- _0x4b6938[_0x3086b1(0x191)]({
234
- 'matchName': _0x19f9c0[_0x3086b1(_0x2f7403._0x1d7446)],
235
- 'matchNameLower': _0x19f9c0[_0x3086b1(0x195)]['toLocaleLowerCase'](),
236
- 'participantId': _0x19f9c0['id']
237
- }), _0x19f9c0['id'] !== _0x19f9c0[_0x3086b1(_0x2f7403._0x3bb2dc)] && _0x4b6938[_0x3086b1(_0x2f7403._0x34626e)]({
238
- 'matchName': _0x19f9c0['id'],
239
- 'matchNameLower': _0x19f9c0['id'][_0x3086b1(0x25a)](),
240
- 'participantId': _0x19f9c0['id']
241
- });
242
- }
243
- return _0x4b6938;
244
- }
245
- function extractMentionedParticipantIds(_0x534f6c, _0x494ed3) {
246
- const _0x1f528c = {
247
- _0x28f92c: 0x189,
248
- _0x26946b: 0x1f8,
249
- _0x93582c: 0x15b,
250
- _0x243e9f: 0x18c
251
- }, _0x15011b = {
252
- _0xb1f598: 0x293,
253
- _0x592767: 0x18c,
254
- _0x1a80fe: 0x2a9
255
- }, _0x1d03a6 = _0x36c0a2, _0x3d3c81 = buildMatchableEntries(_0x494ed3)['sort']((_0x311522, _0xc7853d) => _0xc7853d['matchName'][_0x1d03a6(0x2a9)] - _0x311522['matchName'][_0x1d03a6(0x2a9)]), _0x22658c = [], _0x74515f = new Set();
256
- for (let _0x2c92cb = 0x0; _0x2c92cb < _0x534f6c['length']; _0x2c92cb += 0x1) {
257
- if (_0x534f6c[_0x2c92cb] !== '@' || !isMentionBoundary(_0x534f6c[_0x2c92cb - 0x1]))
258
- continue;
259
- const _0x5d2b80 = _0x534f6c[_0x1d03a6(_0x1f528c._0x28f92c)](_0x2c92cb + 0x1), _0x543ae6 = _0x5d2b80[_0x1d03a6(0x25a)](), _0x4527ce = _0x3d3c81[_0x1d03a6(0x208)](_0x2977fb => {
260
- const _0xe32126 = _0x1d03a6;
261
- if (!_0x543ae6['startsWith'](_0x2977fb[_0xe32126(_0x15011b._0xb1f598)]))
262
- return ![];
263
- return isMentionTerminal(_0x5d2b80[_0x2977fb[_0xe32126(_0x15011b._0x592767)][_0xe32126(_0x15011b._0x1a80fe)]]);
264
- });
265
- if (!_0x4527ce || _0x74515f[_0x1d03a6(0x192)](_0x4527ce['participantId']))
266
- continue;
267
- _0x74515f[_0x1d03a6(_0x1f528c._0x26946b)](_0x4527ce[_0x1d03a6(_0x1f528c._0x93582c)]), _0x22658c[_0x1d03a6(0x191)](_0x4527ce['participantId']), _0x2c92cb += _0x4527ce[_0x1d03a6(_0x1f528c._0x243e9f)][_0x1d03a6(0x2a9)];
268
- }
269
- return _0x22658c;
270
- }
271
- var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
272
- function anySignal(..._0x57c5fa) {
273
- const _0x324f21 = {
274
- _0x2bb47c: 0x1db,
275
- _0x23926d: 0x1ed,
276
- _0xc6152c: 0x28c
277
- }, _0x3868de = _0x36c0a2, _0x4057c6 = new AbortController();
278
- for (const _0x140dc1 of _0x57c5fa) {
279
- if (_0x140dc1[_0x3868de(0x17e)])
280
- return _0x4057c6[_0x3868de(0x28c)](_0x140dc1[_0x3868de(0x245)]), _0x4057c6[_0x3868de(_0x324f21._0x2bb47c)];
281
- _0x140dc1[_0x3868de(_0x324f21._0x23926d)](_0x3868de(_0x324f21._0xc6152c), () => _0x4057c6[_0x3868de(0x28c)](_0x140dc1[_0x3868de(0x245)]), {
282
- 'once': !![],
283
- 'signal': _0x4057c6['signal']
284
- });
285
- }
286
- return _0x4057c6['signal'];
287
- }
288
- function createInternalAgentClient(_0x5346d1) {
289
- const _0xaaed02 = {
290
- _0x28d5af: 0x204,
291
- _0x567802: 0x193,
292
- _0x15d58a: 0x255,
293
- _0x37e302: 0x255,
294
- _0x55a91d: 0x21f
295
- }, _0x1bd5b3 = {
296
- _0x32a070: 0x171,
297
- _0x569194: 0x213,
298
- _0x40f217: 0x159,
299
- _0x1b07a9: 0x1f7,
300
- _0x197c55: 0x2ab,
301
- _0xa7a14f: 0x282,
302
- _0x375681: 0x1c4,
303
- _0x435f7d: 0x177,
304
- _0x263864: 0x2a9,
305
- _0x2de142: 0x207,
306
- _0xaa166e: 0x174,
307
- _0x3d7fe8: 0x212,
308
- _0x3cc107: 0x2e2,
309
- _0x170e9d: 0x2e2,
310
- _0x2c1448: 0x178,
311
- _0x16a872: 0x2e2,
312
- _0xc3064b: 0x1f6,
313
- _0x165121: 0x1d9,
314
- _0x46fdc0: 0x2dc,
315
- _0x1ef366: 0x191,
316
- _0x1b5c27: 0x1d9,
317
- _0x445af9: 0x171,
318
- _0x35e833: 0x230,
319
- _0x3bb87f: 0x251,
320
- _0x1b8996: 0x243,
321
- _0x5e07c9: 0x230,
322
- _0x300735: 0x1cf,
323
- _0x4352b2: 0x243,
324
- _0x59c9f6: 0x25f,
325
- _0x5d5efd: 0x253,
326
- _0x79ab15: 0x257,
327
- _0xfabc53: 0x176,
328
- _0x1c7a5d: 0x1fa,
329
- _0x4161f7: 0x2d1,
330
- _0x45d21b: 0x2d1,
331
- _0x5edaf8: 0x270,
332
- _0x3ac43a: 0x270,
333
- _0x5546d0: 0x257,
334
- _0x5b4c6f: 0x160,
335
- _0x39172a: 0x257,
336
- _0x473127: 0x27e,
337
- _0x49ef6b: 0x174
338
- }, _0x313a15 = { _0x2940e1: 0x230 }, _0x3b5768 = {
339
- _0x1b5485: 0x1c3,
340
- _0x387386: 0x169,
341
- _0x535ba8: 0x29a
342
- }, _0x508a0 = {
343
- _0xb988ad: 0x171,
344
- _0x7620b7: 0x177,
345
- _0x5b929f: 0x2a6
346
- }, _0x1fafec = {
347
- _0x33626b: 0x278,
348
- _0x847581: 0x278,
349
- _0xe76054: 0x1db,
350
- _0x383358: 0x1d3,
351
- _0x207a24: 0x2e4,
352
- _0x40356a: 0x156
353
- }, _0x82d29c = {
354
- _0x165403: 0x1c4,
355
- _0x5b728a: 0x1dd
356
- }, _0xe4893f = {
357
- _0x46d485: 0x2b6,
358
- _0x42285e: 0x2a0
359
- }, _0x479a21 = {
360
- _0x2f9b43: 0x1a7,
361
- _0x550bc5: 0x2c9,
362
- _0x487851: 0x2a0
363
- }, _0x291f16 = {
364
- _0x5d046a: 0x29e,
365
- _0x2fe737: 0x2a0
366
- }, _0x450a91 = { _0x492e1d: 0x1f7 }, _0x55fe7c = {
367
- _0xbf8142: 0x171,
368
- _0x424b4e: 0x2b0
369
- }, _0x539e03 = {
370
- _0x3ea7e4: 0x173,
371
- _0x350958: 0x2d4,
372
- _0x273667: 0x2b0,
373
- _0x1686f5: 0x1c4
374
- }, _0x2bef0f = {
375
- _0x40bf27: 0x1a0,
376
- _0x321eb0: 0x259,
377
- _0x4ac118: 0x1a0,
378
- _0x541fa7: 0x1fd
379
- }, _0x44965f = {
380
- _0x279ccf: 0x20b,
381
- _0xba4b3f: 0x183
382
- }, _0x4ff413 = {
383
- _0x13d3bf: 0x25f,
384
- _0x424ecf: 0x1a7,
385
- _0x194000: 0x1f7,
386
- _0x57d296: 0x212,
387
- _0x3eef56: 0x2a9,
388
- _0x3d7eca: 0x288,
389
- _0x4e984f: 0x288,
390
- _0x4db353: 0x2a0
391
- }, _0x332b0d = {
392
- _0x52f7d0: 0x17f,
393
- _0x30c137: 0x171,
394
- _0xaada83: 0x212,
395
- _0x541df5: 0x212,
396
- _0x115965: 0x1c4,
397
- _0x338299: 0x29b,
398
- _0x2ab4be: 0x177,
399
- _0xafc3c0: 0x294
400
- }, _0x1e3ab4 = {
401
- _0x2c8f01: 0x1f6,
402
- _0x40197e: 0x2a6,
403
- _0x1dd96d: 0x214,
404
- _0x48122a: 0x2e2,
405
- _0x2ebbd6: 0x214,
406
- _0x4caf7a: 0x260,
407
- _0x163e1e: 0x29a,
408
- _0x18c8ca: 0x214,
409
- _0x57d427: 0x260
410
- }, _0x148118 = {
411
- _0x5eee3e: 0x181,
412
- _0x37cf04: 0x1f6,
413
- _0x26612a: 0x214,
414
- _0x7f8bae: 0x178,
415
- _0x791088: 0x178,
416
- _0x48d78d: 0x260
417
- }, _0x48873a = {
418
- _0x38165e: 0x1f6,
419
- _0x5223ea: 0x26d,
420
- _0x4c2fba: 0x29a
421
- }, _0x32bcf1 = {
422
- _0x183caf: 0x240,
423
- _0x2e2a34: 0x208
424
- }, _0x4bd80c = { _0xafe741: 0x20c }, _0x592e39 = { _0x2031f0: 0x17d }, _0x32c940 = {
425
- _0x40af52: 0x1c6,
426
- _0x302d87: 0x29e,
427
- _0x3c1b9e: 0x169,
428
- _0x4cdab2: 0x1c4,
429
- _0x446b2b: 0x26d,
430
- _0x5e82a0: 0x1f6
431
- }, _0x41cfc8 = { _0x2b5a6d: 0x216 }, _0x2c165f = { _0xfaa68e: 0x1dc }, _0x44e1f0 = {
432
- _0x6a17d2: 0x1db,
433
- _0x5953eb: 0x2d4,
434
- _0x4560cd: 0x1cc
435
- }, _0xae2a55 = {
436
- _0x4fa9b8: 0x1db,
437
- _0x504e51: 0x1cc,
438
- _0x290a97: 0x2b0
439
- }, _0x240fae = {
440
- _0x2b1938: 0x215,
441
- _0x1ed9a1: 0x280,
442
- _0x3fa865: 0x279,
443
- _0x52a9a1: 0x2d2
444
- }, _0x56fd75 = {
445
- _0x1a2155: 0x2e4,
446
- _0x288444: 0x255
447
- }, _0x2aa3eb = {
448
- _0x9c8dca: 0x2ac,
449
- _0x5869c3: 0x182,
450
- _0x566ab0: 0x219,
451
- _0x291b1c: 0x225,
452
- _0x2fbdde: 0x2ad
453
- }, _0x452847 = _0x36c0a2, _0x2d31a6 = _0x5346d1[_0x452847(0x16b)] ?? fetch, _0x17af24 = _0x5346d1['fetchTimeoutMs'] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x541614 = typeof _0x5346d1[_0x452847(0x1eb)] === 'number' && _0x5346d1[_0x452847(0x1eb)] > 0x0 ? _0x5346d1[_0x452847(0x1eb)] : 0x0, _0x1bf6fb = _0x5346d1['daemonLocalUrl']?.['trim']() || void 0x0, _0x10d26d = _0x5346d1[_0x452847(_0xaaed02._0x28d5af)]?.['trim']() || void 0x0, _0xd14797 = _0x5346d1['workerModeEnabled'] === !![], _0x5c3fb4 = _0x5346d1[_0x452847(_0xaaed02._0x567802)]?.[_0x452847(_0xaaed02._0x15d58a)]() || void 0x0, _0x1d17f8 = _0x5346d1[_0x452847(0x23e)]?.[_0x452847(_0xaaed02._0x37e302)]() || void 0x0, _0x132ecd = createHeaders(_0x5346d1[_0x452847(_0xaaed02._0x55a91d)]), _0x2e77b9 = toHttpBaseUrl(_0x5346d1[_0x452847(0x2d7)]);
454
- let _0x48499c = null;
455
- const _0x3b37f3 = new Map();
456
- let _0x42d217 = _0x541614, _0x2d2f75 = _0x541614;
457
- function _0x17be70(_0x2086e4) {
458
- const _0x2ba0dc = _0x452847, _0x5e3692 = _0x2086e4[_0x2ba0dc(0x2cd)][_0x2ba0dc(0x2cb)][_0x2ba0dc(0x243)]('content-type') ?? _0x2ba0dc(0x1a8), _0x1bc470 = _0x2086e4[_0x2ba0dc(0x232)][_0x2ba0dc(0x255)]()[_0x2ba0dc(_0x2aa3eb._0x9c8dca)](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0x2ba0dc(_0x2aa3eb._0x5869c3);
459
- return _0x2ba0dc(_0x2aa3eb._0x566ab0) + _0x2086e4['requestUrl'] + '\x20返回了非\x20JSON\x20响应(status=' + _0x2086e4['response']['status'] + _0x2ba0dc(_0x2aa3eb._0x291b1c) + _0x5e3692 + _0x2ba0dc(_0x2aa3eb._0x2fbdde) + _0x1bc470 + ')。这通常表示\x20serverUrl\x20指向了\x20web\x20站点,或代理没有把\x20daemon/internal\x20API\x20转发到后端。';
460
- }
461
- async function _0x41fd2e(_0x11193a, _0xb6bcdf) {
462
- const _0x225644 = _0x452847, _0x409e4f = Buffer[_0x225644(0x1d3)](await _0xb6bcdf[_0x225644(_0x56fd75._0x1a2155)]())['toString'](_0x225644(0x2c4));
463
- if (!_0x409e4f[_0x225644(_0x56fd75._0x288444)]())
464
- return {};
465
- try {
466
- return JSON[_0x225644(0x26c)](_0x409e4f);
467
- } catch {
468
- throw new Error(_0x17be70({
469
- 'bodyText': _0x409e4f,
470
- 'requestUrl': _0x11193a,
471
- 'response': _0xb6bcdf
472
- }));
473
- }
474
- }
475
- function _0x43ab40(_0x3b2974, _0x279cd6) {
476
- const _0x47fe1e = _0x452847, _0x1ba39e = typeof _0x279cd6[_0x47fe1e(_0x240fae._0x2b1938)] === _0x47fe1e(0x2e2) ? _0x279cd6['idempotency_key'][_0x47fe1e(0x255)]() : '';
477
- if (_0x1ba39e)
478
- return _0x1ba39e;
479
- const _0x4f5a60 = Date[_0x47fe1e(0x1fb)]();
480
- for (const [_0xf4b4dc, _0x4209fe] of _0x3b37f3) {
481
- _0x4209fe[_0x47fe1e(_0x240fae._0x1ed9a1)] <= _0x4f5a60 && _0x3b37f3[_0x47fe1e(_0x240fae._0x3fa865)](_0xf4b4dc);
482
- }
483
- const _0x58d6af = {
484
- ..._0x279cd6,
485
- 'idempotency_key': void 0x0
486
- }, _0x282018 = createHash(_0x47fe1e(0x241))['update'](_0x3b2974 + ':' + stableStringify(_0x58d6af))['digest'](_0x47fe1e(0x2aa)), _0x33c4d8 = _0x3b2974 + ':' + _0x282018, _0x3abae0 = _0x3b37f3[_0x47fe1e(0x243)](_0x33c4d8);
487
- if (_0x3abae0)
488
- return _0x3abae0[_0x47fe1e(0x28e)];
489
- const _0x29ec24 = _0x47fe1e(_0x240fae._0x52a9a1) + _0x3b2974 + ':' + randomUUID();
490
- return _0x3b37f3[_0x47fe1e(0x171)](_0x33c4d8, {
491
- 'expiresAt': _0x4f5a60 + 0x5 * 0x3c * 0x3e8,
492
- 'value': _0x29ec24
493
- }), _0x29ec24;
494
- }
495
- async function _0x1e2419(_0x26f9c3, _0x2862c7) {
496
- const _0x9aeb67 = _0x452847, _0x1786b0 = new AbortController(), _0x157a0e = setTimeout(() => _0x1786b0[_0x9aeb67(0x28c)](), _0x17af24), _0x1ce8f2 = _0x2862c7?.[_0x9aeb67(0x1db)] ? anySignal(_0x2862c7[_0x9aeb67(0x1db)], _0x1786b0[_0x9aeb67(0x1db)]) : _0x1786b0[_0x9aeb67(_0xae2a55._0x4fa9b8)], _0x548562 = '' + _0x2e77b9 + _0x26f9c3;
497
- try {
498
- const _0x1ea7e7 = await _0x2d31a6(_0x548562, {
499
- ..._0x2862c7,
500
- 'signal': _0x1ce8f2
501
- }), _0x429fb3 = await _0x41fd2e(_0x548562, _0x1ea7e7);
502
- if (!_0x1ea7e7['ok'] || _0x429fb3[_0x9aeb67(0x1c9)] === ![])
503
- throw new Error(asErrorMessage(_0x429fb3['error'], _0x9aeb67(_0xae2a55._0x504e51) + _0x1ea7e7[_0x9aeb67(_0xae2a55._0x290a97)]));
504
- return _0x429fb3;
505
- } finally {
506
- clearTimeout(_0x157a0e);
507
- }
508
- }
509
- async function _0x29aa9c(_0x375dc8, _0x452856) {
510
- const _0x357df5 = _0x452847, _0x299ea9 = new AbortController(), _0x59663e = setTimeout(() => _0x299ea9[_0x357df5(0x28c)](), _0x17af24), _0xb9abcd = _0x452856?.['signal'] ? anySignal(_0x452856[_0x357df5(_0x44e1f0._0x6a17d2)], _0x299ea9[_0x357df5(0x1db)]) : _0x299ea9['signal'], _0x26e2d2 = '' + _0x2e77b9 + _0x375dc8;
511
- try {
512
- const _0x315519 = await _0x2d31a6(_0x26e2d2, {
513
- ..._0x452856,
514
- 'signal': _0xb9abcd
515
- }), _0x384212 = await _0x41fd2e(_0x26e2d2, _0x315519);
516
- if (!_0x315519['ok'])
517
- throw new Error(asErrorMessage(_0x384212[_0x357df5(_0x44e1f0._0x5953eb)], _0x357df5(_0x44e1f0._0x4560cd) + _0x315519['status']));
518
- return _0x384212;
519
- } finally {
520
- clearTimeout(_0x59663e);
521
- }
522
- }
523
- async function _0x537eb7(_0x655f13) {
524
- const _0x1a8bc4 = _0x452847;
525
- if (!_0x10d26d || _0x655f13 <= _0x2d2f75)
526
- return;
527
- await _0x1e2419(_0x1a8bc4(0x2c2) + encodeURIComponent(_0x10d26d) + _0x1a8bc4(_0x2c165f._0xfaa68e), {
528
- 'body': JSON[_0x1a8bc4(0x29e)]({ 'lastSeenSeq': _0x655f13 }),
529
- 'headers': _0x132ecd,
530
- 'method': _0x1a8bc4(0x21e)
531
- }), _0x2d2f75 = _0x655f13;
532
- }
533
- async function _0x382984(_0x1d1283) {
534
- const _0x46de29 = _0x452847;
535
- if (!_0x1bf6fb || !_0x5c3fb4 || _0x1d1283 <= _0x2d2f75)
536
- return;
537
- const _0x461e04 = await _0x2d31a6(_0x1bf6fb + _0x46de29(_0x41cfc8._0x2b5a6d), {
538
- 'body': JSON['stringify']({
539
- 'last_seen_seq': _0x1d1283,
540
- 'worker_session_id': _0x5c3fb4
541
- }),
542
- 'headers': { 'Content-Type': 'application/json' },
543
- 'method': _0x46de29(0x2a0)
544
- });
545
- if (!_0x461e04['ok'])
546
- throw new Error(_0x46de29(0x1cc) + _0x461e04[_0x46de29(0x2b0)]);
547
- _0x2d2f75 = _0x1d1283;
548
- }
549
- async function _0x8ac170(_0x509d1e) {
550
- const _0x40455b = _0x452847, _0x377bc0 = parseTarget(_0x509d1e), _0x1a0642 = await _0x1e2419(_0x40455b(0x1a7) + _0x5346d1['agentId'] + _0x40455b(_0x32c940._0x40af52), {
551
- 'body': JSON[_0x40455b(_0x32c940._0x302d87)]({ 'target': _0x377bc0[_0x40455b(_0x32c940._0x3c1b9e)] }),
552
- 'headers': _0x132ecd,
553
- 'method': 'POST'
554
- });
555
- return {
556
- 'channelId': _0x1a0642[_0x40455b(_0x32c940._0x4cdab2)]?.[_0x40455b(0x212)] ?? '',
557
- 'target': _0x377bc0[_0x40455b(_0x32c940._0x446b2b)],
558
- 'task': _0x1a0642[_0x40455b(0x1c4)]?.['task'],
559
- 'threadId': _0x1a0642['data']?.[_0x40455b(0x29a)],
560
- 'threadNumber': _0x1a0642[_0x40455b(0x1c4)]?.[_0x40455b(_0x32c940._0x5e82a0)]
561
- };
562
- }
563
- async function _0x518709(_0x4be89e = {}) {
564
- const _0x6322f = {
565
- _0x2f8acf: 0x1a7,
566
- _0xdb5794: 0x1c4,
567
- _0x53a32d: 0x209,
568
- _0x4cecaf: 0x29b,
569
- _0x38eac7: 0x174,
570
- _0x5bc9a8: 0x174,
571
- _0x40da9a: 0x2a8,
572
- _0x1f7186: 0x197,
573
- _0x164c28: 0x195
574
- }, _0x569449 = _0x452847;
575
- if (!_0x4be89e[_0x569449(_0x592e39._0x2031f0)] && _0x48499c)
576
- return _0x48499c;
577
- return _0x48499c = (async () => {
578
- const _0x1bc0f5 = _0x569449, _0x4e0703 = await _0x1e2419(_0x1bc0f5(_0x6322f._0x2f8acf) + _0x5346d1[_0x1bc0f5(0x1f7)] + _0x1bc0f5(0x18b), {
579
- 'headers': _0x132ecd,
580
- 'method': _0x1bc0f5(0x282)
581
- }), _0xcdddf5 = _0x4e0703[_0x1bc0f5(_0x6322f._0xdb5794)]?.[_0x1bc0f5(_0x6322f._0x53a32d)] ?? [], _0x50e27a = _0xcdddf5['filter'](_0x489de5 => _0x489de5['participant']?.[_0x1bc0f5(0x286)] === 'agent')[_0x1bc0f5(_0x6322f._0x4cecaf)](_0x1948c0 => ({
582
- 'id': _0x5a4cd0(_0x1948c0),
583
- 'name': _0x37afd0(_0x1948c0)
584
- }))[_0x1bc0f5(_0x6322f._0x38eac7)](_0x35b3ea => _0x35b3ea['id']), _0x4e9e05 = _0xcdddf5[_0x1bc0f5(0x174)](_0x5ef7d0 => _0x5ef7d0[_0x1bc0f5(0x1fe)]?.['type'] !== _0x1bc0f5(0x20c))[_0x1bc0f5(0x29b)](_0x1a2865 => ({
585
- 'id': _0x5a4cd0(_0x1a2865),
586
- 'name': _0x37afd0(_0x1a2865)
587
- }))[_0x1bc0f5(_0x6322f._0x5bc9a8)](_0x656f => _0x656f['id']), _0x4cbeaa = _0x4e0703[_0x1bc0f5(0x1c4)]?.[_0x1bc0f5(_0x6322f._0x40da9a)]['id'] ?? '';
588
- return {
589
- 'agents': _0x50e27a,
590
- 'channels': _0x4e0703[_0x1bc0f5(_0x6322f._0xdb5794)]?.[_0x1bc0f5(_0x6322f._0x1f7186)] ?? [],
591
- 'humans': _0x4e9e05,
592
- 'serverId': _0x4cbeaa,
593
- 'serverName': _0x4e0703[_0x1bc0f5(0x1c4)]?.[_0x1bc0f5(0x2a8)][_0x1bc0f5(_0x6322f._0x164c28)] ?? _0x4cbeaa
594
- };
595
- })()[_0x569449(0x24c)](_0x18654c => {
596
- _0x48499c = null;
597
- throw _0x18654c;
598
- }), _0x48499c;
599
- }
600
- function _0x41e9fa(_0x3c9b4c, _0xa0aeac) {
601
- const _0x2f203b = _0x452847;
602
- return _0xa0aeac[_0x2f203b(0x2a4)]['some'](_0x533180 => _0x533180['id'] === _0x3c9b4c || _0x533180['name'] === _0x3c9b4c) ? _0x2f203b(_0x4bd80c._0xafe741) : _0x2f203b(0x1d6);
603
- }
604
- function _0x564900(_0x3857ea, _0x5aa594) {
605
- const _0x26e89c = _0x452847, _0x3976e9 = [
606
- ..._0x5aa594['agents'],
607
- ..._0x5aa594[_0x26e89c(_0x32bcf1._0x183caf)]
608
- ][_0x26e89c(_0x32bcf1._0x2e2a34)](_0x443c4c => _0x443c4c['id'] === _0x3857ea);
609
- return _0x3976e9?.['name'] ?? _0x3857ea;
610
- }
611
- function _0x2b8b48(_0x3fe31f) {
612
- const _0x56e54d = _0x452847;
613
- if (_0x3fe31f[_0x56e54d(0x1f6)] != null)
614
- return _0x3fe31f[_0x56e54d(0x26d)] + ':t' + _0x3fe31f[_0x56e54d(_0x48873a._0x38165e)];
615
- if (_0x3fe31f[_0x56e54d(0x178)])
616
- return _0x3fe31f[_0x56e54d(_0x48873a._0x5223ea)] + ':' + _0x3fe31f['rootMessageId'];
617
- if (_0x3fe31f[_0x56e54d(_0x48873a._0x4c2fba)])
618
- return _0x3fe31f['channelTarget'] + ':' + _0x3fe31f[_0x56e54d(_0x48873a._0x4c2fba)][_0x56e54d(0x189)](0x0, 0x8);
619
- return _0x3fe31f['channelTarget'];
620
- }
621
- function _0x14f5a3(_0x3b7a68, _0x48ce60) {
622
- const _0x3fcb69 = _0x452847;
623
- try {
624
- const _0x42cd66 = parseTarget(_0x3b7a68);
625
- if (_0x42cd66[_0x3fcb69(0x257)] !== _0x3fcb69(_0x148118._0x5eee3e) || _0x42cd66['channelTarget'] !== _0x48ce60[_0x3fcb69(0x26d)])
626
- return ![];
627
- if (_0x48ce60[_0x3fcb69(_0x148118._0x37cf04)] != null && _0x42cd66['threadShortId'] === 't' + _0x48ce60['threadNumber'])
628
- return !![];
629
- if (_0x48ce60[_0x3fcb69(0x178)])
630
- return _0x42cd66[_0x3fcb69(_0x148118._0x26612a)] === _0x48ce60[_0x3fcb69(_0x148118._0x7f8bae)] || _0x48ce60[_0x3fcb69(_0x148118._0x791088)][_0x3fcb69(_0x148118._0x48d78d)](_0x42cd66[_0x3fcb69(0x214)]);
631
- if (_0x48ce60['threadId'])
632
- return _0x42cd66[_0x3fcb69(0x214)] === _0x48ce60['threadId'] || _0x48ce60[_0x3fcb69(0x29a)][_0x3fcb69(0x260)](_0x42cd66[_0x3fcb69(0x214)]);
633
- return ![];
634
- } catch {
635
- return ![];
636
- }
637
- }
638
- function _0x5405d3(_0x279bac, _0x310574) {
639
- const _0x58dce2 = _0x452847;
640
- try {
641
- const _0x573265 = parseTarget(_0x279bac);
642
- if (_0x573265[_0x58dce2(0x257)] !== 'thread')
643
- return ![];
644
- const _0x439047 = typeof _0x310574[_0x58dce2(_0x1e3ab4._0x2c8f01)] === _0x58dce2(_0x1e3ab4._0x40197e) && Number['isInteger'](_0x310574[_0x58dce2(_0x1e3ab4._0x2c8f01)]) ? _0x310574[_0x58dce2(_0x1e3ab4._0x2c8f01)] : void 0x0;
645
- if (_0x439047 != null && _0x573265[_0x58dce2(_0x1e3ab4._0x1dd96d)] === 't' + _0x439047)
646
- return !![];
647
- const _0x27e249 = typeof _0x310574[_0x58dce2(0x178)] === _0x58dce2(_0x1e3ab4._0x48122a) ? _0x310574['rootMessageId'] : void 0x0;
648
- if (_0x27e249)
649
- return _0x573265[_0x58dce2(_0x1e3ab4._0x2ebbd6)] === _0x27e249 || _0x27e249[_0x58dce2(_0x1e3ab4._0x4caf7a)](_0x573265[_0x58dce2(0x214)]);
650
- const _0x102677 = typeof _0x310574['threadId'] === _0x58dce2(0x2e2) ? _0x310574[_0x58dce2(_0x1e3ab4._0x163e1e)] : void 0x0;
651
- return Boolean(_0x102677) && (_0x573265[_0x58dce2(_0x1e3ab4._0x18c8ca)] === _0x102677 || _0x102677[_0x58dce2(_0x1e3ab4._0x57d427)](_0x573265[_0x58dce2(_0x1e3ab4._0x1dd96d)]));
652
- } catch {
653
- return ![];
654
- }
655
- }
656
- function _0x5a4cd0(_0x4874ed) {
657
- const _0x16f944 = _0x452847;
658
- return _0x4874ed[_0x16f944(0x2d9)]?.[_0x16f944(0x15b)] ?? _0x4874ed['participant']?.['id'] ?? _0x4874ed[_0x16f944(0x15b)] ?? '';
659
- }
660
- function _0x37afd0(_0x34eb6b) {
661
- const _0x32ad4a = _0x452847;
662
- return _0x34eb6b[_0x32ad4a(0x1fe)]?.['name'] ?? _0x5a4cd0(_0x34eb6b);
663
- }
664
- async function _0x25f684(_0xac1ac3) {
665
- const _0x100515 = _0x452847, _0x5b1e84 = Math[_0x100515(0x19f)](_0xac1ac3[_0x100515(_0x332b0d._0x52f7d0)] ?? 0x32, 0x64), _0x588306 = await _0x518709(), _0x48a080 = new URLSearchParams();
666
- _0x48a080[_0x100515(_0x332b0d._0x30c137)]('limit', String(_0x5b1e84));
667
- _0xac1ac3['threadId'] ? (_0x48a080['set']('threadId', _0xac1ac3[_0x100515(0x29a)]), _0x48a080['set']('channelId', _0xac1ac3[_0x100515(0x212)])) : _0x48a080['set'](_0x100515(_0x332b0d._0xaada83), _0xac1ac3[_0x100515(_0x332b0d._0x541df5)]);
668
- _0xac1ac3[_0x100515(0x1c3)] && _0x48a080[_0x100515(0x171)]('cursor', String(_0xac1ac3[_0x100515(0x1c3)]));
669
- _0xac1ac3[_0x100515(0x20e)] !== void 0x0 && _0x48a080[_0x100515(0x171)](_0x100515(0x20e), String(_0xac1ac3[_0x100515(0x20e)]));
670
- const _0x4351c6 = await _0x1e2419('/internal/agent/' + _0x5346d1[_0x100515(0x1f7)] + '/history?' + _0x48a080[_0x100515(0x159)](), {
671
- 'headers': _0x132ecd,
672
- 'method': _0x100515(0x282)
673
- }), _0xbe03c4 = (_0x4351c6[_0x100515(_0x332b0d._0x115965)] ?? [])[_0x100515(_0x332b0d._0x338299)](_0x3ded1d => ({
674
- 'attachments': (_0x3ded1d['attachments'] ?? [])['map'](_0x1051a0 => ({
675
- 'filename': _0x1051a0[_0x100515(0x1dd)] ?? _0x1051a0['id'],
676
- 'id': _0x1051a0['id']
677
- })),
678
- 'content': _0x3ded1d[_0x100515(0x270)] ?? '',
679
- 'createdAt': _0x3ded1d[_0x100515(0x253)],
680
- ..._0x3ded1d['kind'] && _0x3ded1d[_0x100515(0x257)] !== _0x100515(0x160) ? { 'kind': _0x3ded1d[_0x100515(0x257)] } : {},
681
- 'messageId': _0x3ded1d['id'],
682
- 'senderName': _0x564900(_0x3ded1d[_0x100515(0x2d1)], _0x588306),
683
- 'senderType': _0x41e9fa(_0x3ded1d[_0x100515(0x2d1)], _0x588306),
684
- 'seq': _0x3ded1d[_0x100515(0x1ea)] ?? 0x0
685
- }));
686
- return {
687
- 'channel': _0xac1ac3[_0x100515(0x26d)],
688
- 'hasMore': _0x4351c6[_0x100515(_0x332b0d._0x2ab4be)]?.['hasMore'] ?? ![],
689
- 'messages': _0xbe03c4,
690
- 'nextCursor': _0x4351c6[_0x100515(_0x332b0d._0x2ab4be)]?.[_0x100515(_0x332b0d._0xafc3c0)]
691
- };
692
- }
693
- return {
694
- async 'sendMessage'(_0x3f7302) {
695
- const _0x3c6623 = _0x452847, _0x63d401 = await _0x8ac170(_0x3f7302['target']), _0x42e14c = _0x3f7302[_0x3c6623(0x25f)][_0x3c6623(0x18a)]('@') ? extractMentionedParticipantIds(_0x3f7302[_0x3c6623(_0x4ff413._0x13d3bf)], await _0x518709()) : [], _0x1c9035 = await _0x1e2419(_0x3c6623(_0x4ff413._0x424ecf) + _0x5346d1[_0x3c6623(_0x4ff413._0x194000)] + _0x3c6623(0x2c6), {
696
- 'body': JSON[_0x3c6623(0x29e)]({
697
- 'attachment_ids': _0x3f7302[_0x3c6623(0x28b)],
698
- 'bodyMarkdown': _0x3f7302['content'],
699
- 'channelId': _0x63d401[_0x3c6623(_0x4ff413._0x57d296)],
700
- ..._0x42e14c[_0x3c6623(_0x4ff413._0x3eef56)] > 0x0 ? { 'mentionedParticipantIds': _0x42e14c } : {},
701
- 'threadId': _0x63d401[_0x3c6623(0x29a)],
702
- ..._0x3f7302[_0x3c6623(_0x4ff413._0x3d7eca)] ? { 'visibility': _0x3f7302[_0x3c6623(_0x4ff413._0x4e984f)] } : {}
703
- }),
704
- 'headers': _0x132ecd,
705
- 'method': _0x3c6623(_0x4ff413._0x4db353)
706
- });
707
- return { 'messageId': _0x1c9035['data']?.['id'] ?? '' };
708
- },
709
- async 'listSchedules'() {
710
- const _0x30a07d = _0x452847, _0x216702 = await _0x1e2419(_0x30a07d(0x297), {
711
- 'headers': _0x132ecd,
712
- 'method': 'GET'
713
- });
714
- return _0x216702['data'] ?? [];
715
- },
716
- async 'claimScheduleRun'(_0xcb32a7) {
717
- const _0x4ac040 = _0x452847, _0x2063c9 = await _0x1e2419(_0x4ac040(_0x44965f._0x279ccf), {
718
- 'body': JSON['stringify'](_0xcb32a7),
719
- 'headers': _0x132ecd,
720
- 'method': 'POST'
721
- });
722
- return _0x2063c9[_0x4ac040(0x1c4)] ?? {
723
- 'granted': ![],
724
- 'runId': null,
725
- 'schedule': null,
726
- 'scheduledFor': _0xcb32a7[_0x4ac040(_0x44965f._0xba4b3f)]
727
- };
728
- },
729
- async 'startScheduleRun'(_0x42172d) {
730
- const _0x157611 = _0x452847, _0x5a02b8 = await _0x1e2419(_0x157611(0x223) + encodeURIComponent(_0x42172d[_0x157611(_0x2bef0f._0x40bf27)]) + _0x157611(_0x2bef0f._0x321eb0), {
731
- 'body': JSON[_0x157611(0x29e)]({}),
732
- 'headers': _0x132ecd,
733
- 'method': 'POST'
734
- });
735
- return _0x5a02b8['data'] ?? {
736
- 'claimedByDaemonId': '',
737
- 'id': _0x42172d[_0x157611(_0x2bef0f._0x4ac118)],
738
- 'scheduleId': '',
739
- 'status': _0x157611(_0x2bef0f._0x541fa7)
740
- };
741
- },
742
- async 'finishScheduleRun'(_0x54451e) {
743
- const _0x52b989 = _0x452847, _0x465ca4 = await _0x1e2419(_0x52b989(0x223) + encodeURIComponent(_0x54451e[_0x52b989(0x1a0)]) + _0x52b989(_0x539e03._0x3ea7e4), {
744
- 'body': JSON['stringify']({
745
- 'error': _0x54451e[_0x52b989(_0x539e03._0x350958)],
746
- 'resultJson': _0x54451e['resultJson'],
747
- 'status': _0x54451e[_0x52b989(_0x539e03._0x273667)]
748
- }),
749
- 'headers': _0x132ecd,
750
- 'method': _0x52b989(0x2a0)
751
- });
752
- return _0x465ca4[_0x52b989(_0x539e03._0x1686f5)] ?? {
753
- 'nextRunAt': null,
754
- 'run': {
755
- 'claimedByDaemonId': '',
756
- 'id': _0x54451e[_0x52b989(0x1a0)],
757
- 'scheduleId': '',
758
- 'status': _0x54451e['status']
759
- }
760
- };
761
- },
762
- async 'listTasks'(_0x4c51dc) {
763
- const _0x2dff35 = _0x452847, _0x23540f = new URLSearchParams();
764
- return _0x23540f[_0x2dff35(_0x55fe7c._0xbf8142)](_0x2dff35(0x2e0), _0x4c51dc['channel']), _0x4c51dc[_0x2dff35(_0x55fe7c._0x424b4e)] && _0x23540f['set'](_0x2dff35(0x2b0), _0x4c51dc[_0x2dff35(0x2b0)]), _0x29aa9c('/internal/agent/' + _0x5346d1[_0x2dff35(0x1f7)] + _0x2dff35(0x2ba) + _0x23540f['toString'](), {
765
- 'headers': _0x132ecd,
766
- 'method': 'GET'
767
- });
768
- },
769
- async 'createTasks'(_0x598dbe) {
770
- const _0x4e3b9b = _0x452847;
771
- return _0x29aa9c(_0x4e3b9b(0x1a7) + _0x5346d1[_0x4e3b9b(_0x450a91._0x492e1d)] + _0x4e3b9b(0x20d), {
772
- 'body': JSON['stringify']({
773
- ..._0x598dbe,
774
- 'idempotency_key': _0x43ab40(_0x4e3b9b(0x16e), _0x598dbe)
775
- }),
776
- 'headers': _0x132ecd,
777
- 'method': 'POST'
778
- });
779
- },
780
- async 'claimTasks'(_0xcd5cdf) {
781
- const _0x592f9d = _0x452847;
782
- return _0x29aa9c(_0x592f9d(0x1a7) + _0x5346d1[_0x592f9d(0x1f7)] + '/tasks/claim', {
783
- 'body': JSON[_0x592f9d(_0x291f16._0x5d046a)]({
784
- ..._0xcd5cdf,
785
- 'idempotency_key': _0x43ab40(_0x592f9d(0x263), _0xcd5cdf)
786
- }),
787
- 'headers': _0x132ecd,
788
- 'method': _0x592f9d(_0x291f16._0x2fe737)
789
- });
790
- },
791
- async 'unclaimTask'(_0x26dd48) {
792
- const _0x52cc13 = _0x452847;
793
- return _0x29aa9c(_0x52cc13(_0x479a21._0x2f9b43) + _0x5346d1[_0x52cc13(0x1f7)] + _0x52cc13(0x271), {
794
- 'body': JSON[_0x52cc13(0x29e)]({
795
- ..._0x26dd48,
796
- 'idempotency_key': _0x43ab40(_0x52cc13(_0x479a21._0x550bc5), _0x26dd48)
797
- }),
798
- 'headers': _0x132ecd,
799
- 'method': _0x52cc13(_0x479a21._0x487851)
800
- });
801
- },
802
- async 'updateTaskStatus'(_0x208e62) {
803
- const _0x4cdfaf = _0x452847;
804
- return _0x29aa9c('/internal/agent/' + _0x5346d1['agentId'] + _0x4cdfaf(0x291), {
805
- 'body': JSON[_0x4cdfaf(0x29e)]({
806
- ..._0x208e62,
807
- 'idempotency_key': _0x43ab40(_0x4cdfaf(_0xe4893f._0x46d485), _0x208e62)
808
- }),
809
- 'headers': _0x132ecd,
810
- 'method': _0x4cdfaf(_0xe4893f._0x42285e)
811
- });
812
- },
813
- async 'uploadFile'(_0x223ba5) {
814
- const _0x3979a7 = _0x452847, _0x4a7503 = await _0x8ac170(_0x223ba5[_0x3979a7(0x2e0)]);
815
- if (_0x4a7503['threadId'])
816
- throw new Error(_0x3979a7(0x2ca));
817
- const _0x2e128b = await _0x1e2419('/internal/agent/' + _0x5346d1[_0x3979a7(0x1f7)] + _0x3979a7(0x1df), {
818
- 'body': JSON['stringify']({
819
- 'channel': _0x4a7503[_0x3979a7(0x169)],
820
- 'contentBase64': _0x223ba5[_0x3979a7(0x1c8)],
821
- 'contentType': _0x223ba5['contentType'],
822
- 'originalFilename': _0x223ba5['filename']
823
- }),
824
- 'headers': _0x132ecd,
825
- 'method': _0x3979a7(0x2a0)
826
- });
827
- return {
828
- 'attachmentId': _0x2e128b[_0x3979a7(0x1c4)]?.['id'] ?? '',
829
- 'filename': _0x2e128b[_0x3979a7(_0x82d29c._0x165403)]?.[_0x3979a7(0x156)] ?? _0x223ba5[_0x3979a7(_0x82d29c._0x5b728a)],
830
- 'sizeBytes': _0x2e128b[_0x3979a7(_0x82d29c._0x165403)]?.['sizeBytes'] ?? 0x0
831
- };
832
- },
833
- async 'downloadAttachment'(_0x5a0ab2) {
834
- const _0x2d200e = _0x452847, _0x2f56b8 = await _0x1e2419(_0x2d200e(_0x1fafec._0x33626b) + _0x5a0ab2, {
835
- 'headers': _0x132ecd,
836
- 'method': 'GET'
837
- }), _0x17a8e8 = new AbortController(), _0x5ead63 = setTimeout(() => _0x17a8e8[_0x2d200e(0x28c)](), _0x17af24);
838
- try {
839
- const _0x44e703 = await _0x2d31a6(_0x2e77b9 + _0x2d200e(_0x1fafec._0x847581) + _0x5a0ab2 + _0x2d200e(0x295), {
840
- 'headers': _0x132ecd,
841
- 'method': 'GET',
842
- 'signal': _0x17a8e8[_0x2d200e(_0x1fafec._0xe76054)]
843
- });
844
- if (!_0x44e703['ok'])
845
- throw new Error(_0x2d200e(0x1cc) + _0x44e703[_0x2d200e(0x2b0)]);
846
- return {
847
- 'contentType': _0x2f56b8[_0x2d200e(0x1c4)]?.[_0x2d200e(0x224)] ?? _0x44e703['headers']['get'](_0x2d200e(0x21d)) ?? _0x2d200e(0x27b),
848
- 'data': Buffer[_0x2d200e(_0x1fafec._0x383358)](await _0x44e703[_0x2d200e(_0x1fafec._0x207a24)]()),
849
- 'originalFilename': _0x2f56b8['data']?.[_0x2d200e(_0x1fafec._0x40356a)]
850
- };
851
- } finally {
852
- clearTimeout(_0x5ead63);
853
- }
854
- },
855
- async 'listServer'() {
856
- return _0x518709({ 'forceRefresh': !![] });
857
- },
858
- async 'getLatestEventSeq'() {
859
- const _0x402930 = _0x452847, _0x4e9cc0 = new URLSearchParams();
860
- _0x4e9cc0[_0x402930(0x171)](_0x402930(0x213), '0'), _0x4e9cc0[_0x402930(_0x508a0._0xb988ad)](_0x402930(0x17f), '1');
861
- const _0x260667 = await _0x1e2419('/internal/agent/' + _0x5346d1['agentId'] + _0x402930(0x1d2) + _0x4e9cc0['toString'](), {
862
- 'headers': _0x132ecd,
863
- 'method': _0x402930(0x282)
864
- }), _0x4d490c = _0x260667[_0x402930(_0x508a0._0x7620b7)]?.[_0x402930(0x275)];
865
- return typeof _0x4d490c === _0x402930(_0x508a0._0x5b929f) && _0x4d490c > 0x0 ? _0x4d490c : 0x0;
866
- },
867
- async 'readHistory'(_0x2030f5) {
868
- const _0xb2f3f6 = _0x452847, _0x281296 = await _0x8ac170(_0x2030f5[_0xb2f3f6(0x2e0)]);
869
- return _0x25f684({
870
- 'after': _0x2030f5[_0xb2f3f6(0x20e)],
871
- 'before': _0x2030f5[_0xb2f3f6(_0x3b5768._0x1b5485)],
872
- 'channelId': _0x281296['channelId'],
873
- 'channelTarget': _0x281296[_0xb2f3f6(_0x3b5768._0x387386)],
874
- 'limit': _0x2030f5[_0xb2f3f6(0x17f)],
875
- 'threadId': _0x281296[_0xb2f3f6(_0x3b5768._0x535ba8)]
876
- });
877
- },
878
- 'resolveTarget': _0x8ac170,
879
- async 'checkMessages'() {
880
- const _0x1115a7 = _0x452847, _0x33953e = new URLSearchParams();
881
- _0x33953e[_0x1115a7(_0x1bd5b3._0x32a070)](_0x1115a7(_0x1bd5b3._0x569194), String(_0x42d217));
882
- const _0x51be72 = _0x33953e[_0x1115a7(_0x1bd5b3._0x40f217)](), _0x26a887 = await _0x1e2419(_0x1115a7(0x1a7) + _0x5346d1[_0x1115a7(_0x1bd5b3._0x1b07a9)] + _0x1115a7(_0x1bd5b3._0x197c55) + (_0x51be72 ? '?' + _0x51be72 : ''), {
883
- 'headers': _0x132ecd,
884
- 'method': _0x1115a7(_0x1bd5b3._0xa7a14f)
885
- }), _0x4bab9c = _0x26a887[_0x1115a7(_0x1bd5b3._0x375681)] ?? [], _0x26494e = _0x26a887[_0x1115a7(_0x1bd5b3._0x435f7d)]?.[_0x1115a7(0x294)], _0x2bdcec = _0x1d17f8 ? _0x4bab9c[_0x1115a7(0x174)](_0x26833b => {
886
- const _0x5211b2 = _0x1115a7;
887
- if (_0x26833b[_0x5211b2(0x2b5)] !== _0x5211b2(0x1d7))
888
- return ![];
889
- return _0x5405d3(_0x1d17f8, asRecord(_0x26833b['payloadJson']));
890
- }) : _0x4bab9c, _0x502c27 = _0x26494e !== void 0x0 ? _0x1d17f8 ? Math[_0x1115a7(0x207)](_0x42d217, _0x2bdcec['length'] > 0x0 ? _0x2bdcec[_0x2bdcec['length'] - 0x1][_0x1115a7(0x1c2)] : _0x42d217) : Math['max'](_0x42d217, _0x26494e) : _0x2bdcec[_0x1115a7(_0x1bd5b3._0x263864)] > 0x0 ? Math[_0x1115a7(_0x1bd5b3._0x2de142)](_0x42d217, _0x2bdcec[_0x2bdcec[_0x1115a7(0x2a9)] - 0x1][_0x1115a7(0x1c2)]) : _0x42d217, _0x43ae1d = (_0x1d17f8 ? _0x2bdcec : _0x4bab9c)[_0x1115a7(_0x1bd5b3._0xaa166e)](_0x259183 => _0x259183[_0x1115a7(0x2b5)] === _0x1115a7(0x1d7)), _0x1678e6 = _0x1d17f8 === void 0x0 && _0xd14797;
891
- let _0x28835b = await _0x518709(), _0x4c10a0 = new Map(_0x28835b[_0x1115a7(0x197)]['map'](_0x1a8c20 => [
892
- _0x1a8c20['id'],
893
- _0x1a8c20
894
- ]));
895
- const _0x489fd6 = _0x43ae1d[_0x1115a7(0x2d3)](_0x570aba => {
896
- const _0x19b664 = _0x1115a7, _0x588f61 = asRecord(_0x570aba[_0x19b664(_0x313a15._0x2940e1)]), _0x356bcb = typeof _0x588f61?.[_0x19b664(0x212)] === 'string' ? _0x588f61[_0x19b664(0x212)] : '';
897
- return Boolean(_0x356bcb) && !_0x4c10a0[_0x19b664(0x192)](_0x356bcb);
898
- });
899
- _0x489fd6 && (_0x28835b = await _0x518709({ 'forceRefresh': !![] }), _0x4c10a0 = new Map(_0x28835b[_0x1115a7(0x197)][_0x1115a7(0x29b)](_0xee3d15 => [
900
- _0xee3d15['id'],
901
- _0xee3d15
902
- ])));
903
- const _0x3228b8 = new Map();
904
- for (const _0x551f61 of _0x43ae1d) {
905
- const _0x3c95e5 = asRecord(_0x551f61[_0x1115a7(0x230)]), _0x3eeb2e = typeof _0x3c95e5[_0x1115a7(_0x1bd5b3._0x3d7fe8)] === _0x1115a7(_0x1bd5b3._0x3cc107) ? _0x3c95e5[_0x1115a7(0x212)] : '';
906
- if (!_0x3eeb2e)
907
- continue;
908
- const _0x5503bd = typeof _0x3c95e5[_0x1115a7(0x29a)] === _0x1115a7(_0x1bd5b3._0x170e9d) ? _0x3c95e5[_0x1115a7(0x29a)] : void 0x0, _0x3be8c5 = typeof _0x3c95e5[_0x1115a7(_0x1bd5b3._0x2c1448)] === _0x1115a7(_0x1bd5b3._0x16a872) ? _0x3c95e5[_0x1115a7(0x178)] : void 0x0, _0xfd9aa = typeof _0x3c95e5[_0x1115a7(_0x1bd5b3._0xc3064b)] === _0x1115a7(0x2a6) && Number['isInteger'](_0x3c95e5[_0x1115a7(_0x1bd5b3._0xc3064b)]) ? _0x3c95e5['threadNumber'] : void 0x0, _0x29c605 = Boolean(_0x5503bd && (!_0x3be8c5 || _0x551f61[_0x1115a7(_0x1bd5b3._0x165121)] !== _0x3be8c5)), _0xbaea36 = _0x29c605 ? _0x3eeb2e + ':' + _0x5503bd : _0x3eeb2e, _0x371230 = _0x3228b8[_0x1115a7(0x243)](_0xbaea36) ?? {
909
- 'aggregateIds': [],
910
- 'channelId': _0x3eeb2e,
911
- 'entries': new Map(),
912
- 'isThreadReply': _0x29c605,
913
- 'rootMessageId': _0x3be8c5,
914
- 'threadNumber': _0xfd9aa,
915
- 'threadId': _0x29c605 ? _0x5503bd : void 0x0
916
- };
917
- _0x371230[_0x1115a7(_0x1bd5b3._0xc3064b)] == null && _0xfd9aa != null && (_0x371230[_0x1115a7(0x1f6)] = _0xfd9aa), !_0x371230['rootMessageId'] && _0x3be8c5 && (_0x371230['rootMessageId'] = _0x3be8c5), _0x371230[_0x1115a7(_0x1bd5b3._0x46fdc0)][_0x1115a7(_0x1bd5b3._0x1ef366)](_0x551f61[_0x1115a7(_0x1bd5b3._0x1b5c27)]), _0x371230[_0x1115a7(0x233)][_0x1115a7(_0x1bd5b3._0x445af9)](_0x551f61['aggregateId'], {
918
- 'payloadJson': _0x551f61[_0x1115a7(_0x1bd5b3._0x35e833)],
919
- 'seq': _0x551f61['seq']
920
- }), _0x3228b8[_0x1115a7(0x171)](_0xbaea36, _0x371230);
921
- }
922
- const _0x47f703 = [];
923
- for (const _0x39397a of _0x3228b8[_0x1115a7(0x2d0)]()) {
924
- const {
925
- channelId: _0x3641a8,
926
- threadId: _0x1cc421,
927
- rootMessageId: _0x40d9c1,
928
- threadNumber: _0x25b68c,
929
- aggregateIds: _0x45948f,
930
- isThreadReply: _0x127407,
931
- entries: _0x46b47a
932
- } = _0x39397a, _0x5616ad = _0x4c10a0[_0x1115a7(0x243)](_0x3641a8), _0x3acb8e = _0x5616ad?.[_0x1115a7(0x195)] ?? _0x3641a8, _0x3d9d22 = _0x5616ad?.['kind'] === 'dm' ? _0x1115a7(_0x1bd5b3._0x3bb87f) + _0x3acb8e : '#' + _0x3acb8e, _0x8422c1 = {
933
- 'channelTarget': _0x3d9d22,
934
- 'rootMessageId': _0x40d9c1,
935
- 'threadId': _0x1cc421,
936
- 'threadNumber': _0x25b68c
937
- }, _0xd9b9e = await _0x25f684({
938
- 'channelId': _0x3641a8,
939
- 'channelTarget': _0x3d9d22,
940
- 'limit': Math['max'](_0x45948f[_0x1115a7(0x2a9)], 0x32),
941
- 'threadId': _0x1cc421
942
- }), _0x1227d = new Map(_0xd9b9e[_0x1115a7(0x170)][_0x1115a7(0x29b)](_0x1d7fdc => [
943
- _0x1d7fdc[_0x1115a7(0x176)],
944
- _0x1d7fdc
945
- ])), _0x483075 = _0x1cc421 ? _0x2b8b48(_0x8422c1) : _0x3d9d22, _0x4d7acb = _0x1d17f8 ? _0x127407 && _0x14f5a3(_0x1d17f8, _0x8422c1) : !![], _0x13a974 = _0x127407 ? _0x4d7acb && _0x1d17f8 ? _0x1d17f8 : _0x483075 : _0x3d9d22;
946
- for (const _0x157d99 of _0x45948f) {
947
- if (!_0x4d7acb)
948
- continue;
949
- const _0x48919b = _0x46b47a[_0x1115a7(_0x1bd5b3._0x1b8996)](_0x157d99), _0x4d970b = _0x48919b ? asRecord(_0x48919b[_0x1115a7(_0x1bd5b3._0x5e07c9)]) : void 0x0, _0x47c0e7 = _0x4d970b?.[_0x1115a7(_0x1bd5b3._0x300735)] === 'targeted';
950
- if (_0x1678e6 && _0x47c0e7)
951
- continue;
952
- const _0x254f8c = _0x1227d[_0x1115a7(_0x1bd5b3._0x4352b2)](_0x157d99);
953
- if (_0x254f8c) {
954
- _0x47f703['push']({
955
- 'attachments': _0x254f8c['attachments'],
956
- 'content': _0x254f8c[_0x1115a7(_0x1bd5b3._0x59c9f6)],
957
- 'createdAt': _0x254f8c[_0x1115a7(_0x1bd5b3._0x5d5efd)],
958
- ..._0x254f8c[_0x1115a7(_0x1bd5b3._0x79ab15)] ? { 'kind': _0x254f8c[_0x1115a7(0x257)] } : {},
959
- 'messageId': _0x254f8c[_0x1115a7(_0x1bd5b3._0xfabc53)],
960
- 'senderName': _0x254f8c[_0x1115a7(_0x1bd5b3._0x1c7a5d)],
961
- 'senderType': _0x254f8c[_0x1115a7(0x231)],
962
- 'target': _0x13a974,
963
- ..._0x47c0e7 ? { 'targetedTask': !![] } : {}
964
- });
965
- continue;
966
- }
967
- if (_0x48919b) {
968
- const _0x5781e1 = typeof _0x4d970b?.[_0x1115a7(_0x1bd5b3._0x4161f7)] === _0x1115a7(_0x1bd5b3._0x170e9d) ? _0x4d970b[_0x1115a7(_0x1bd5b3._0x45d21b)] : '', _0x57fab1 = typeof _0x4d970b?.[_0x1115a7(_0x1bd5b3._0x5edaf8)] === _0x1115a7(0x2e2) ? _0x4d970b[_0x1115a7(_0x1bd5b3._0x3ac43a)] : '', _0x186b46 = typeof _0x4d970b?.[_0x1115a7(_0x1bd5b3._0x5546d0)] === _0x1115a7(_0x1bd5b3._0x3cc107) && _0x4d970b[_0x1115a7(0x257)] !== _0x1115a7(_0x1bd5b3._0x5b4c6f) ? _0x4d970b[_0x1115a7(_0x1bd5b3._0x39172a)] : void 0x0;
969
- _0x5781e1 && _0x57fab1 && _0x47f703[_0x1115a7(0x191)]({
970
- 'attachments': [],
971
- 'content': _0x57fab1,
972
- 'createdAt': new Date()[_0x1115a7(_0x1bd5b3._0x473127)](),
973
- ..._0x186b46 ? { 'kind': _0x186b46 } : {},
974
- 'messageId': _0x157d99,
975
- 'senderName': _0x564900(_0x5781e1, _0x28835b),
976
- 'senderType': _0x41e9fa(_0x5781e1, _0x28835b),
977
- 'target': _0x13a974,
978
- ..._0x47c0e7 ? { 'targetedTask': !![] } : {}
979
- });
980
- }
981
- }
982
- }
983
- if (_0x502c27 > 0x0) {
984
- if (_0x10d26d)
985
- await _0x537eb7(_0x502c27);
986
- else
987
- _0x5c3fb4 && await _0x382984(_0x502c27);
988
- }
989
- return _0x502c27 > _0x42d217 && (_0x42d217 = _0x502c27), { 'messages': _0x1d17f8 ? _0x47f703 : _0x1678e6 ? _0x47f703[_0x1115a7(_0x1bd5b3._0x49ef6b)](_0x529bb5 => _0x529bb5['targetedTask'] !== !![]) : _0x47f703 };
990
- }
991
- };
992
- }
993
- function _0x7a96() {
994
- const _0x9c9c9e = [
995
- 'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
996
- 'BgLZDfrHC2TZ',
997
- 'DxrMoa',
998
- 'l3DVCMTLCNmVzgvSAxzLCG',
999
- 'l3nLBMq',
1000
- 'AxnbyNnVBhv0zq',
1001
- 'xsba',
1002
- 'Dw5JBgfPBv90yxnR',
1003
- 'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
1004
- 'AgvHzgvYCW',
1005
- 'zgfLBw9Utg9JywXvCMW',
1006
- 'CMvZCg9UC2u',
1007
- 'w3nLCt0',
1008
- 'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
1009
- 'DMfSDwvZ',
1010
- 'C2vUzgvYugfYDgLJAxbHBNrjza',
1011
- 'yxv0BZO',
1012
- 'C29Tzq',
1013
- 'zxjYB3i',
1014
- 'zgvZDhjVEwvK',
1015
- 'C3bSAxq',
1016
- 'C2vYDMvYvxjS',
1017
- 'ls1Hz2vUDc1Pza',
1018
- 'BwvTyMvY',
1019
- 'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
1020
- 'yMfZzw5HBwu',
1021
- 'ywDNCMvNyxrLswrZ',
1022
- 'DgL0Bgu',
1023
- 'Dg9gAxHLza',
1024
- 'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
19
+ }(_0x1813, 0x9a2c2));
20
+ function _0x1813() {
21
+ const _0x1ee142 = [
22
+ 'B3b0Aw9UywW',
23
+ 'BM93',
24
+ 'ywz0zxi',
25
+ 'ls1KywvTB24TyxbPlwTLEq',
26
+ 'tM8GDgfZA3mGy2XHAw1Lzc4',
27
+ 'kg5VBMuP',
28
+ 'zMLSzv9WyxrO',
29
+ 'CMvHC29U',
30
+ 'Aw5PDgLHBeXHC3rtzwvUu2vX',
31
+ 'C2L6zuj5DgvZ',
32
+ 'mc4WlJa',
33
+ 'y3jLyxrLvgfZA3m',
34
+ 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
35
+ 'DgfZA19Pza',
36
+ 'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
37
+ 'BwfPBG',
1025
38
  'y2HHBM5LBa',
1026
- 'DgfZAY0',
1027
- 'C3rYAw5N',
1028
- 'y2HHBM5LBe5HBwu',
1029
- 'yxjYyxLcDwzMzxi',
1030
- 'B3jPz2LUywXgAwXLBMfTzq',
1031
- 'yxbWBgLJyxrPB24VEg1S',
1032
- 'DgfZA0LK',
1033
- 'Dg9tDhjPBMC',
1034
- 'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
1035
- 'CgfYDgLJAxbHBNrjza',
1036
- 'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
1037
- 'BwvZC2fNzv9Pzhm',
1038
- 'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
1039
- 'ig1ZzZ0',
1040
- 'y2HHDa',
1041
- 'DgHYzwfKvgfYz2v0',
1042
- 'BwvKAxvT',
1043
- 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
1044
- 'BgLZDf9Zzxj2zxi',
1045
- 'y2XPzw50',
1046
- 'C2vUzf9TzxnZywDLigzHAwXLza',
1047
- 'zw51Bq',
1048
- 'CgfYA193B3jRzxiGzMfPBgvK',
1049
- 'DgfYz2v0',
1050
- 'y2XHAw1FDgfZA3mGzMfPBgvK',
1051
- 'zMv0y2HjBxbS',
1052
- 'y2HLy2TnzxnZywDLCW',
1053
- 'AxnbCNjHEq',
1054
- 'y3jLyxrLx3rHC2TZ',
1055
- 'rMLSzsbUB3qGzM91BMq6ia',
39
+ 'ls13B3jRzxiTC2vZC2LVBI1Pza',
40
+ 'l3vWBg9Hza',
1056
41
  'BwvZC2fNzxm',
1057
- 'C2v0',
1058
- 'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
1059
- 'l2zPBMLZAa',
1060
- 'zMLSDgvY',
1061
- 'mty4mJaXmfzIAuzJCq',
1062
- 'BwvZC2fNzuLK',
1063
- 'Bwv0yq',
1064
- 'CM9VDe1LC3nHz2vjza',
1065
- 'D29YA2vYCW',
1066
- 'iokaLca',
1067
42
  'BgLZDfnLCNzLCG',
1068
- 'CMvJB3jK',
43
+ 'lcbJB250zw50lxr5Cgu9',
44
+ 'DgfYz2v0',
45
+ 'zMLSDgvY',
46
+ 'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
47
+ 'zgLNzxn0',
48
+ 'C2vUzf9TzxnZywDLigzHAwXLza',
49
+ 'zMLUzenHy2HLzfbHDgG',
50
+ 'l3rHC2TZpW',
51
+ 'z2v0tw9UDgG',
52
+ 'D29YA2vYtw9KzuvUywjSzwq',
53
+ 'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
54
+ 'ou5qC2vVBW',
55
+ 'CMvHzeHPC3rVCNK',
56
+ 'DgfZA3m',
57
+ 'C3rHCNrZv2L0Aa',
58
+ 'zgvZy3jPChrPB24',
59
+ 'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
1069
60
  'zM9Yy2vszwzYzxnO',
61
+ 'CgfYA193B3jRzxi',
62
+ 'w3rHCMDLDd0',
63
+ 'lsba',
64
+ 'DMfSDwu',
65
+ 'AxnbyNnVBhv0zq',
66
+ 'r0vu',
67
+ 'ig1ZzZ1Oyw5KB2zMihrPBwu9',
68
+ 'y3jLyxrLzef0',
69
+ 'zgLZCg9ZAxrPB24',
70
+ 'Cgf5Bg9HzePZB24',
1070
71
  'ywjVCNrLza',
1071
- 'BgLTAxq',
1072
- 'Bwf4rMLSzvnPEMvcExrLCW',
1073
- 'DgHYzwfK',
1074
- 'pgvTChr5pG',
1075
- 'C2nOzwr1BgvKrM9Y',
1076
- 'DgHYzwfKx3rHCMDLDa',
1077
- 'zMLSzv9WyxrO',
1078
- 'Dw5JBgfPBvrHC2S',
1079
- 'CxvLDwvK',
1080
- 'l3DVCMTLCNmVCgfYAW',
1081
- 'C2XPy2u',
1082
- 'Aw5JBhvKzxm',
1083
- 'l3nLCNzLCG',
1084
- 'Bwf0y2Hoyw1L',
1085
- 'yxbWBgLJyxrPB24VEMLW',
1086
- 'otm1mdKYrKfbBxbw',
1087
- 'y2XHAw1uyxnRCW',
1088
- 'z2v0x3DVCMTLCL9ZDgf0Dxm',
1089
- 'ChvZAa',
1090
- 'AgfZ',
1091
- 'D29YA2vYu2vZC2LVBKLK',
1092
- 'lsaJ',
1093
- 'BMfTzq',
1094
- 'iYmJiefNzw50CW',
1095
- 'y2HHBM5LBhm',
1096
- 'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
1097
- 'C2L6zq',
1098
- 'z2v0rgf0zq',
1099
- 'C2vUze1LC3nHz2u',
1100
- 'tM8GDgfZA3mGzM91BMqU',
1101
- 'DxbSB2fKx2zPBgu',
1102
- 'zxnJywXHDgvFDg9FBwfPBG',
1103
- 'BwLU',
1104
- 'CNvUswq',
1105
- 'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
1106
- 'igTPBMq9',
1107
- 'Dg9KBW',
1108
- 'iYmJieH1BwfUCW',
1109
- 'tM8GDgfZA3mGy3jLyxrLzc4',
1110
- 'zxHLy3v0Aw9Utw9Kzt0',
1111
72
  'l2LUDgvYBMfSl2fNzw50lW',
1112
- 'Dw5RBM93BG',
1113
- 'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
1114
- 'zgLZCg9ZAxrPB24',
1115
- 'Aw5KzxHpzG',
1116
- 'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
1117
- 'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
1118
- 'yxr0ywnOBwvUDenHy2HL',
1119
- 't3jPz2LUywWGBwvZC2fNztOG',
1120
- 'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
1121
- 'ig1LC3nHz2vZkqOk',
1122
- 'zg0T',
1123
- 'DgHYzwfKvgfYz2v0pq',
1124
- 'CMvHzf9OAxn0B3j5',
1125
- 'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
1126
- 'ignSywLTzwq',
1127
- 'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
1128
- 'zgvZy3jPyMu',
73
+ 't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
74
+ 'CgfYC2vjBNq',
75
+ 'ywDLBNrZ',
76
+ 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
77
+ 'Bwv0yq',
78
+ 'ndqYnJKZnxnbBxLnDW',
79
+ 'CMvZDwX0CW',
80
+ 'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
81
+ 'AxngAw5PDgu',
82
+ 'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
83
+ 'DxrMoa',
84
+ 'ls1Zzxj2zxiTDxjS',
85
+ 'C2vYDMvYvxjS',
86
+ 'rMLSzsb1CgXVywrLzdOG',
87
+ 'y3jLyxrLx3rHC2TZigzHAwXLza',
1129
88
  'kgXLz2fJEsK',
1130
- 'rg93BMXVywrLzcb0BZOG',
1131
- 'yxbWBgLJyxrPB24VCgrM',
89
+ 'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4Gv2HLBIbTB3zPBMCGD29YAYb0BYbPBL9YzxzPzxCSignOzwnRihLVDxiGBwvTB3j5ig9YignOyw5UzwWGCNvSzxmGyw5KihnLBMqGysbYzxzPzxDLCIbTzw50Aw9UihLVDxjZzwXMihDOzw4GyxbWCM9WCMLHDguU',
90
+ 'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
1132
91
  'yxjNDG',
1133
- 'ls1Zzxj2zxiTDxjS',
1134
- 'ANnVBG',
1135
- 'zg9Uzq',
1136
- 'AwrSzq',
1137
- 'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
1138
- 'C2vX',
1139
- 'yMvMB3jL',
1140
- 'zgf0yq',
1141
- 'BgLZDf9Zzxj2zxiGzMfPBgvK',
1142
- 'l3jLC29SDMuTy2HHBM5LBa',
1143
- 'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
1144
- 'y29UDgvUDejHC2u2na',
1145
- 'C3vJy2vZCW',
1146
- 'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
1147
- 'oevuyxDhDG',
1148
- 'sfruuca',
1149
- 'Dgv4Dc9JC3y',
1150
- 'CMvZDwX0CW',
1151
- 'DgfZA0rLBgL2zxj5tw9Kzq',
1152
- 'DMLLD19MAwXLigzHAwXLza',
1153
- 'Bg9JywXLq29TCgfYzq',
1154
- 'l3jLy2vPDMu/',
1155
- 'zNjVBq',
1156
- 'tM8GDgfZA3mGy2XHAw1Lzc4',
1157
- 'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
1158
- 'AhvTyw4',
1159
- 'BwvZC2fNzq',
1160
- 'cGOTls0G',
1161
- 'ywDNCMvNyxrLswq',
1162
- 'Aw5FChjVz3jLC3m',
1163
- 'C2LNBMfS',
1164
- 'l2nVBNrLEhqTBwv0CMLJCW',
1165
- 'zMLSzw5HBwu',
1166
- 'zg93BMXVywrbDhrHy2HTzw50',
1167
- 'l3vWBg9Hza',
1168
- 'v29YA2vYici',
1169
- 'vgHYzwfKihrHCMDLDdOG',
1170
- 't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
1171
- 'w3rHCMDLDd0',
1172
- 'zw50zxiTAgfUzg9MzIbMywLSzwq',
92
+ 'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
93
+ 'DxbSB2fKrMLSzq',
94
+ 'uefuq0G',
95
+ 'C3vIDgfZA051BwjLCG',
96
+ 'ntCZnJK5me5mBxPOCG',
97
+ 'ihr5Cgu9ywDLBNq',
98
+ 'ignSywLTzwq',
99
+ 'D2fPDgLUz19PBNb1Da',
100
+ 'BwvZC2fNzuLK',
101
+ 'yxjYyxLcDwzMzxi',
102
+ 'C3rVCe1HAw4',
103
+ 'DgL0Bgu',
104
+ 's0iPcKf0DgfJAg1LBNqGsuq6ia',
105
+ 'vgfZAZOG',
106
+ 'vgfZAYa',
1173
107
  'Bg93',
1174
- 'DgfZA3m',
1175
- 'twLZC2LUzYaTlwfNzw50lwLK',
1176
- 'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
1177
- 'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
1178
- 'zxzLBNrtzxe',
1179
- 'Aw5PDgLHBeXHC3rtzwvUu2vX',
1180
- 'Aw1Hz2uVD2vICa',
1181
- 'ywrKrxzLBNrmAxn0zw5LCG',
1182
- 'CgfYA193B3jRzxi',
1183
- 'rMLSzsb1CgXVywrLzdOG',
1184
- 'D29YA2vY',
1185
- 'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
1186
- 'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
1187
- 'mty5nti5mefICfDTuW',
1188
- 'odKWnJe0zNrTugvd',
1189
- 'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
1190
- 'DgHYzwfKtNvTyMvY',
1191
108
  'ywDLBNrjza',
1192
- 'ywrK',
1193
- 'ls13B3jRzxiTBw9Kzq',
1194
- 'C2vUzgvYtMfTzq',
1195
- 'BM93',
1196
- 'D29YA2vYrgLZCg9ZAxrPB249',
1197
- 'CNvUBMLUzW',
1198
- 'CgfYDgLJAxbHBNq',
1199
- 'D29YA2vYsgfUzg9MzKvYCM9Y',
1200
- 'C3rHCNrLza',
1201
- 'tM8GBMv3ig1LC3nHz2vZlG',
1202
- 'Aw1Hz2uVz2LM',
1203
- 'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
1204
- 'C2vZC2LVBKLK',
1205
- 'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
1206
- 'CMvHzeHPC3rVCNK',
1207
- 'Bwf4',
1208
- 'zMLUza',
1209
- 'BwvTyMvYCW',
1210
- 'BMv4Den1CNnVCG',
1211
- 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
1212
- 'ywDLBNq',
109
+ 'y2XHAw1uyxnRCW',
110
+ 'zw51Bq',
111
+ 'zMv0y2HjBxbS',
112
+ 'ywDNCMvNyxrLswq',
113
+ 'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
114
+ 'AgfZtw9Yzq',
1213
115
  'l3rHC2TZ',
1214
- 'ywz0zxi',
1215
- 'uM9VDcb0yxnRig1LC3nHz2u6cG',
1216
- 'C3vIDgfZA19UDw1IzxjZ',
1217
- 'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
1218
- 'y2HHBM5LBeLK',
1219
- 'ywz0zxjtzxe',
1220
- 'DgHYzwfKu2HVCNrjza',
1221
116
  'AwrLBxbVDgvUy3LFA2v5',
1222
- 'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
117
+ 'CMvZCg9UC2u',
118
+ 'CxvLDwvK',
119
+ 'DxbSB2fKx2zPBgu',
120
+ 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
121
+ 'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
122
+ 'yM9KEvrLEhq',
123
+ 'l3rHC2TZl3vUy2XHAw0',
1223
124
  'D29YA2vYrgLZCg9ZAxrPB24',
1224
- 'ihr5Cgu9ywDLBNq',
1225
- '6k+35Rgcia',
1226
- 'y29UBMvJDa',
1227
- 'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
1228
- 'zxH0BMfTzq',
1229
- 'y29UDgvUDc10ExbL',
1230
- 'uefuq0G',
1231
- 'zgfLBw9UqxbPs2v5',
1232
- 'lsba',
1233
- 'yxr0ywnOBwvUDenHy2HLrgLY',
1234
- 'yxnPzgu',
1235
- 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
1236
- 'y29UDgvUDfr5Cgu',
1237
- 'lcbJB250zw50lxr5Cgu9',
1238
- 'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4Gv2HLBIbTB3zPBMCGD29YAYb0BYbPBL9YzxzPzxCSignOzwnRihLVDxiGBwvTB3j5ig9YignOyw5UzwWGCNvSzxmGyw5KihnLBMqGysbYzxzPzxDLCIbTzw50Aw9UihLVDxjZzwXMihDOzw4GyxbWCM9WCMLHDguU',
125
+ 'D29YA2vYCW',
126
+ 'C3rVCe1HAw49Dhj1zq',
127
+ 'v29YA2vYici',
128
+ 'l2nVBNrLBNq',
129
+ 'zg93BMXVywrbDhrHy2HTzw50',
130
+ 'BgLZDf90yxnRCYbMywLSzwq',
131
+ 'C2vUzgvYugfYDgLJAxbHBNrjza',
132
+ 'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
133
+ 'pgvTChr5pG',
134
+ 'yxbWBgLJyxrPB24VCgrM',
135
+ 'BgLZDf90yxnRCW',
136
+ 'igrVBMuP',
137
+ 'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
138
+ 'BwvZC2fNzv9Pzhm',
139
+ 'iJOGC3rHDhvZpq',
140
+ 'y2HPBgrYzw5uB3rHBa',
141
+ 'C3rHDhvZ',
142
+ 'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
143
+ 'D29YA2vY',
144
+ 'Bwf0y2Hoyw1L',
145
+ 'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
146
+ 'DxbKyxrL',
147
+ 'AgvHzgvYCW',
148
+ 'CgfYDgLJAxbHBNq',
149
+ 'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
150
+ 'l2nVBNrLEhqTBwv0CMLJCW',
151
+ 'Dw5JBgfPBv90yxnR',
1239
152
  'yxr0ywnOBwvUDeLK',
1240
- 'D29YA2vYigHHBMrVzMyGzMfPBgvK',
1241
- 'DxbKyxrLvgfZA1n0yxr1CW',
1242
- 'B3b0Aw9UywW',
1243
- 'DMLLD19MAwXL',
1244
- 'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
153
+ 'Dg9VBa',
154
+ 'y3vYC29Y',
155
+ 'zxH0BMfTzq',
156
+ 'yxr0ywnOBwvUDhm',
157
+ 'BgLZDf9Zzxj2zxi',
158
+ 'Bwf0y2Hoyw1Ltg93zxi',
159
+ 'ue9tva',
160
+ 'BgLTAxq',
1245
161
  'yxr0ywnOBwvUDf9Pza',
1246
- 'ywXS',
1247
- 'lIbnzxnZywDLieLeoIa',
1248
- 'Cgf5Bg9HzePZB24',
1249
- 'C2vUzgvYvhLWzq',
1250
- 'yM9KEvrLEhq',
1251
- 'zw50CMLLCW',
1252
- 'BgLZDf90yxnRCW',
1253
- 'EM9K',
1254
- 'mc4WlJa',
1255
- 'zxHLy3v0Aw9Utw9Kzq',
162
+ 'ywDNCMvNyxrLvhLWzq',
163
+ 'CNvUswq',
164
+ 'igLUia',
165
+ 'y2HLy2TnzxnZywDLCW',
166
+ 'AxnbCNjHEq',
167
+ 'D29YA2vYsgfUzg9MzKvYCM9Y',
168
+ 'y2fJAgveAxi',
169
+ 'Dgv4Dc9JC3y',
170
+ 'CMvHzf9OAxn0B3j5igzHAwXLza',
171
+ 'yM9KEu1HCMTKB3DU',
172
+ 'y29UBMvJDa',
173
+ 'AxngAwXL',
174
+ 'z2v0u2vJB25KCW',
175
+ 'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
176
+ 'DxbSB2fKx2zPBguGzMfPBgvK',
177
+ 'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
178
+ 'ywz0zxjtzxe',
179
+ 'DxjNzw50',
180
+ 'BgvUz3rO',
181
+ 'mZm0mZK0mgrOtwXAyG',
182
+ 'ywrK',
183
+ 'Aw5FCMv2Awv3',
184
+ 'z2v0twLUDxrLCW',
185
+ 'CM9VDe1LC3nHz2vjza',
186
+ 'CMvHzf9OAxn0B3j5',
187
+ 'C29Tzq',
188
+ 'ihn0yxLZigLUig1HAw4GC2vZC2LVBIaOzxHLy3v0Aw9Utw9Kzt1TywLUktSGCMvTywLUigHLCMuSihjLywqGDgHLihjLzMvYzw5JzwqGCgXHBI9KB2n1BwvUDcWGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYbPzIb0Agf0igLZihrOzsbPBNrLBNqU',
189
+ 'ChvIBgLJ',
190
+ 'DgfZA051BwjLCG',
191
+ 'ls1ZzxnZAw9UlwLK',
192
+ 'Dg9mB3DLCKnHC2u',
193
+ 'C2v0',
194
+ 'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
195
+ 'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
196
+ 'C2vYDMvY',
197
+ 'AhjLzG',
198
+ 'BwfW',
199
+ 'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
200
+ 'C3vIDgfZA19UDw1IzxjZ',
201
+ 'lIbnzxnZywDLieLeoIa',
202
+ 'iIbUB3qGzM91BMq',
203
+ 'ChvZAa',
204
+ 'CMvJB3jK',
1256
205
  'lMjPBG',
1257
- 'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
1258
- 'DgvZDa',
1259
- 'Ahr0CdO',
1260
- 'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
1261
- 'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
1262
- 'D29YA2vYvgHYzwfKvgfYz2v0',
1263
- 's0iPcKf0DgfJAg1LBNqGsuq6ia',
206
+ 'DgfZAW',
207
+ 'ywjVCNq',
208
+ 'Agv4',
209
+ 'ktSGz290ignOyw5UzwW9',
210
+ 'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
211
+ 'D29YA2vYrgLZCg9ZAxrPB249',
212
+ 'BMfTzq',
213
+ 'l3DVCMTLCNmVzgvSAxzLCG',
214
+ 'Ahr0Chm6',
215
+ 'zw50CMLLCW',
216
+ 'icHPzdO',
217
+ 'ywDNCMvNyxrLswrZ',
218
+ 'Bwf4',
219
+ 'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
220
+ 'mJmWmtC3nNL0tNLuCW',
221
+ 'DgfZA0LK',
222
+ 'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
1264
223
  'AhvTyw5Z',
1265
- 'C2HHmJu2',
1266
- 'ChvIBgLJ',
224
+ 'Ahr0CdO',
225
+ 'DxbKyxrLvgfZA1n0yxr1CW',
226
+ 'l3n0yxj0',
227
+ 'CMvZDwX0sNnVBG',
228
+ 'B2jQzwn0',
229
+ 'CgfYA193B3jRzxiGzMfPBgvK',
230
+ 'zxzLBNrtzxe',
231
+ 'Aw5KzxHpzG',
232
+ 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
233
+ 'BwvZC2fNzq',
234
+ 'AgfZ',
235
+ 'C2vYDMvYtMfTzq',
236
+ 'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
237
+ 'sfruuca',
238
+ 'DgHYzwfK',
239
+ 'lMrZy29Yza',
240
+ 'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
241
+ 'Aw1Hz2uVANbLzW',
242
+ 'CgfYC2u',
243
+ 'C3rYAw5NAwz5',
244
+ 'yxbWBgLJyxrPB24VEMLW',
245
+ 'tM8GDgfZA3mGzM91BMqU',
246
+ 'D3nZoG',
247
+ 'y2HHBM5LBeLK',
248
+ 'y2HLy2TFBwvZC2fNzxm',
249
+ 'DMLLD19MAwXL',
250
+ 'Axnoyu4',
251
+ 'l3DVCMTLCNmVzxnJywXHDgu',
252
+ 'mJeYnJq2mZbxB014wxO',
253
+ 'DgHYzwfKu2HVCNrjza',
254
+ 'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
255
+ 'BMv4Den1CNnVCG',
256
+ 'zgf0yq',
257
+ 'twLZC2LUzYaTlwfNzw50lwLK',
258
+ 'DxbSB2fKuhjLCgfYzxi',
259
+ 'zxnJywXHDgvFDg9FBwfPBG',
260
+ 'BNvTyMvY',
1267
261
  'z2v0',
1268
- 'zMfSC2u',
1269
- 'CMvHC29U',
1270
- 'z2v0sg91CNm',
1271
- 'D29YA2vYsgfUzg9MzG',
1272
- 'DxbSB2fKrMLSzq',
1273
- 'yMfZzty0',
1274
- 'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
1275
- 'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
1276
- 'y2f0y2G',
1277
- 'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
1278
- 'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
1279
- 'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
1280
- 'Aw5FCMv2Awv3',
1281
- 'zg06',
1282
- 'DxnLCG',
1283
- 'y3jLyxrLzef0',
1284
- 'nJC3mtiWnuPSAKD0vW',
1285
- 'DhjPBq',
1286
- 'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
262
+ 'igTPBMq9',
1287
263
  'A2LUza',
264
+ 'ANnVBG',
265
+ 'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
266
+ 'C2vX',
267
+ 'ig1ZzZ0',
268
+ 'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
269
+ 't3jPz2LUywWGBwvZC2fNztOG',
270
+ 'DgfYz2v0zwruyxnR',
271
+ 'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
272
+ 'C3rHCNrLza',
273
+ 'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
274
+ 'D29YA2vYtw9Kzq',
275
+ 'zgvZy3jPyMu',
276
+ 'y2XPzw50',
277
+ 'C2vUzgvYtMfTzq',
278
+ 'yMvMB3jL',
279
+ 'Dg9tDhjPBMC',
280
+ 'vgHYzwfKihrHCMDLDdOG',
281
+ 'Bwf4rMLSzvnPEMvcExrLCW',
282
+ 'l3jLy2vPDMu/',
283
+ 'y29UDgvUDfr5Cgu',
284
+ 'yxbWBgLJyxrPB24VANnVBG',
285
+ 'zg0T',
286
+ 'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
287
+ 'y2HHBM5LBhm',
288
+ 'y2HHDa',
289
+ 'C2XPy2u',
1288
290
  'ihrPBwu9',
1289
- 'l3n0yxj0',
1290
- 'Dg9mB2nHBgvmB3DLCKnHC2u',
1291
- 'y2HPBgrYzw5uB3rHBa',
1292
- 'yxr0ywnOBwvUDhm',
1293
- 'C2f2zq',
1294
- '4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
1295
- 'y29UDgvUDa',
1296
- 'C3rHCNrZv2L0Aa',
1297
- 'C3rVCe1HAw49Dhj1zq',
1298
- 'y2XHAw0GzMfPBgvK',
1299
- 'y2XHAw1FDgfZA3m',
1300
- 'BgLZDf90yxnRCYbMywLSzwq',
1301
- 'yxjYyxK',
1302
- 'C29YDa',
1303
- 'zMLUzenHy2HLzfbHDgG',
1304
- 'CMvHzf9OAxn0B3j5igzHAwXLza',
1305
- 'C2vUzf9TzxnZywDL',
1306
- 'zgvZy3jPChrPB24',
1307
- 'D29YA2vYtw9KzuvUywjSzwq',
1308
- 'CgfYC2u',
1309
- 'y2HHBM5LBfrHCMDLDa',
1310
- 'igrVBMuP',
1311
- 'ls13B3jRzxiTC2vZC2LVBI1Pza',
1312
- 'yM9KEu1HCMTKB3DU',
1313
- 'l3rHC2TZl3vUy2XHAw0',
1314
- 'BwfYA193ywL0Aw5Nx2LUChv0',
1315
- 'vgfZAYa',
1316
- 'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
1317
- 'Bgf0zxn0u2vX',
1318
- 'mJK0nZqWzwvjvgjn',
1319
- 'D3m6',
1320
- 'l2fWAs9HDhrHy2HTzw50CY8',
291
+ 'DgHYzwfKvgfYz2v0',
292
+ 'y29UDgvUDejHC2u2na',
293
+ 'DMLLD19MAwXLigzHAwXLza',
294
+ 'l3rHC2TZl2nSywLT',
295
+ 'C2LNBMfS',
296
+ 'DgHYzwfKvgfYz2v0pq',
297
+ 'AM9PBG',
1321
298
  'zgvSzxrL',
1322
- 'yxr0ywnOBwvUDf9Pzhm',
1323
- 'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
1324
- 'twvZC2fNzsbZzw50ihrVia',
1325
- 'z2v0rNvSBfLLyxi',
1326
- 'Dg9ju09tDhjPBMC',
1327
- 'ig1LC3nHz2u9',
299
+ 'y2HHBM5LBe5HBwu',
300
+ 'zxHLy3v0Aw9Utw9Kzt0',
301
+ 'zgfLBw9Utg9JywXvCMW',
302
+ 'CgfYDgLJAxbHBNrjza',
303
+ 'BwvTyMvY',
304
+ 'Dgv4Dc9WBgfPBG',
305
+ 'Dgv4Dc9TyxjRzg93BG',
306
+ 'zMv0y2HuAw1LB3v0txm',
307
+ 'zNjVBq',
308
+ 'iYmGu2vYDMvYoIa',
309
+ 'ntG3nduXBvjztfHu',
310
+ 'C2vUzf9TzxnZywDL',
311
+ 'C3vJy2vZCW',
1328
312
  'zxHWAxjLC0f0',
1329
- 'ktSGz290ignOyw5UzwW9',
1330
- 'r0vu',
1331
- 'Aw1Hz2uVANbLzW',
1332
- 'D29YA2vYtw9Kzq',
1333
- 'Dgv4Da',
313
+ 'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
314
+ 'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
315
+ 'y3jLyxrLx3rHC2TZ',
316
+ 'Aw5JBhvKzxm',
317
+ 'nJu3mZC4nhfPrvDhEG',
318
+ 'Dg9KBW',
319
+ 'C2L6zq',
320
+ 'Bgf0zxn0u2vX',
321
+ 'EM9K',
322
+ 'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
323
+ 'zg06',
1334
324
  'DhLWzq',
1335
- 'igzHAwXLzdOG',
1336
- 'DMLZAwjPBgL0Eq',
1337
- 'CMvZB2X2zvrHCMDLDa',
1338
- 'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
1339
- 'yxr0ywnOBwvUDeLKCW',
1340
- 'ywjVCNq',
325
+ 'yMfZzw5HBwu',
326
+ 'z2v0vgLTzq',
327
+ 'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
328
+ 'CgfKu3rHCNq',
329
+ 'Dw5RBM93BG',
330
+ 'C29YDa',
331
+ 'zMLUza',
332
+ '4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
333
+ 'DgHYzwfKx3rHCMDLDa',
334
+ 'ihn0yxr1CZ0',
335
+ 'zxHLy3v0Aw9Utw9Kzq',
336
+ 'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
337
+ 'ls13B3jRzxiTBw9Kzq',
338
+ 'zg9Uzq',
339
+ 'D29YA2vYsgfUzg9MzJ10CNvL',
340
+ 'C3rYAw5N',
341
+ 'Aw1Hz2uVC3zNk3HTBa',
1341
342
  'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
1342
- 'DMfSDwu',
1343
- 'Dg9VBa',
1344
- 'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
1345
- 'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
1346
- 'z2v0u2vJB25KCW',
1347
- 'Bwf0y2Hoyw1Ltg93zxi',
1348
- 'y3vYC29Y',
1349
- 'l2nVBNrLBNq',
1350
343
  'iYmJienOyw5UzwXZ',
1351
- 'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
1352
- 'AxngAw5PDgu',
1353
- 'Dw5JBgfPBv90yxnRigzHAwXLza',
344
+ 'y2HPBgrYzw5eB25L',
345
+ 'CNvUBMLUzW',
346
+ 'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
347
+ 'l2HPC3rVCNK/',
348
+ 'igzHAwXLzdOG',
349
+ 'C2vUzgvYvhLWzq',
350
+ 'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxHLy3v0Aw9Utw9Kzt1TywLUcLn0yxKGAw4GBwfPBIbZzxnZAw9UoIbYzwfKihrOzsbYzwzLCMvUy2vKihbSyw4Vzg9JDw1LBNqGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYaOB3iGB3rOzxj3AxnLigfKDMfUy2uGDgHLihrHC2SGAw4GBwfPBIb3AxrOB3v0igHHBMrPBMCGB2zMihrVigeGD29YA2vYks4',
351
+ 'yxr0ywnOBwvUDeLKCW',
352
+ 'zw50zxiTAgfUzg9MzIbMywLSzwq',
353
+ 'm1DkqKXIvW',
354
+ 'l3jLC29SDMuTy2HHBM5LBa',
355
+ 'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
356
+ 'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
357
+ 'ywXS',
358
+ 'D29YA2vYvgHYzwfKvgfYz2v0',
359
+ 'xsba',
360
+ 'D29YA2vYsgfUzg9MzG',
1354
361
  'DgHYzwfKswq',
1355
- 'BwfW',
1356
- 'Axnoyu4',
1357
- 'DgfZAW',
1358
- 'C3rYAw5NAwz5',
1359
- 'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
1360
- 'ue9tva',
1361
- 'kg5VBMuP',
1362
- 'AM9PBG',
1363
- 'ls1KywvTB24TBg9JywWTDxjS',
1364
- 'ywDLBNrZ',
1365
- 'icHPzdO',
1366
- 'BNvTyMvY',
1367
- 'DgfZA051BwjLCG',
1368
- 'C2vYDMvY',
1369
- 'BgvUz3rO',
1370
- 'Agv4',
1371
- 'l3jLy2vPDMu',
1372
- 'CMvWBgfJzq',
1373
- 'lcbWCMv2Awv3pq',
1374
- 'AgfZtw9Yzq',
1375
- 'ChjVDg9JB2W',
1376
- 'C3rHDhvZ',
1377
- 'yxbWBgLJyxrPB24VANnVBG',
1378
- 'lMrZy29Yza',
1379
- 'C3vIDgfZA051BwjLCG',
1380
- 'cKLMihLVDxiGBwvTB3j5ig9YignOyw5UzwWGCNvSzxmGCMvXDwLYzsbYzxzPzxCSihnLBMqGysbTzxnZywDLig1LBNrPB25PBMCGDgHLihjLDMLLD2vYigjLzM9YzsbWyxjRAw5NlG',
1381
- 'ywDNCMvNyxrLvhLWzq',
362
+ 'C2HHmJu2',
363
+ 'DgfZAY0',
364
+ 'BwLU',
365
+ 'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
366
+ '77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
367
+ 'v29YA2vYia',
368
+ 'yxr0ywnOBwvUDenHy2HL',
369
+ 'nfzKCwDZta',
370
+ 'lsaJ',
371
+ 'DhjPBq',
372
+ 'khvUA25VD24P',
1382
373
  'DxbKyxrLx3rHC2TFC3rHDhvZ',
1383
- 'ihn0yxr1CZ0',
1384
- 'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
1385
- 'y2HLy2TFBwvZC2fNzxm',
1386
- 'l3rHC2TZpW',
1387
- 'CgfYC2vjBNq',
374
+ 'uM9VDcb0yxnRig1LC3nHz2u6cG',
375
+ 'y2f0y2G',
376
+ 'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
377
+ 'y29UDgvUDc10ExbL',
378
+ 'Dgv4Da',
1388
379
  'D29YA19RzxK',
1389
- 'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
1390
- 'B2jQzwn0',
1391
- 'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
1392
- 'mJa4ndm4mNbbExP6uq',
1393
- 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu'
380
+ 'DMLZAwjPBgL0Eq',
381
+ 'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
382
+ 'Dg9ju09tDhjPBMC',
383
+ 'DgfZAYa',
384
+ 'Dw5JBgfPBvrHC2S',
385
+ 'Dg9mB2nHBgvmB3DLCKnHC2u',
386
+ 'ywDLBNq',
387
+ 'AxnjBNrLz2vY',
388
+ 'zgvZDhjVEwvK',
389
+ 'z2v0x3DVCMTLCL9ZDgf0Dxm',
390
+ 'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
391
+ 'DgHYzwfKtNvTyMvY',
392
+ 'ChjVDg9JB2W',
393
+ 'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
394
+ 'Aw5FChjVz3jLC3m',
395
+ 'yxv0BZO',
396
+ 'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
397
+ 'zMLSzw5HBwu',
398
+ 'z2v0rgf0zq',
399
+ 'tM8GBMv3ig1LC3nHz2vZlG',
400
+ 'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
401
+ 'CMvWBgfJzq',
402
+ 'zxjYB3i',
403
+ 'yxnPzgu',
404
+ 'zgfLBw9UqxbPs2v5',
405
+ 'ls1Hz2vUDc1Pza',
406
+ 'C2vZC2LVBKLK',
407
+ 'y2XHAw1FDgfZA3m',
408
+ 'y29UDgvUDa',
409
+ 'B3jPz2LUywXgAwXLBMfTzq',
410
+ 'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
411
+ 'y2HHBM5LBfrHCMDLDa',
412
+ 'yxjYyxK',
413
+ 'zMfSC2u',
414
+ 'yMfZzty0',
415
+ 'D29YA2vYigHHBMrVzMyGzMfPBgvK',
416
+ 'y2XHAw0GzMfPBgvK',
417
+ 'C2nOzwr1BgvKrM9Y',
418
+ 'ig1LC3nHz2u9',
419
+ 'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP'
1394
420
  ];
1395
- _0x7a96 = function () {
1396
- return _0x9c9c9e;
421
+ _0x1813 = function () {
422
+ return _0x1ee142;
423
+ };
424
+ return _0x1813();
425
+ }
426
+ import { pathToFileURL } from 'node:url';
427
+ import {
428
+ mkdir,
429
+ readFile,
430
+ readdir,
431
+ stat,
432
+ writeFile
433
+ } from 'node:fs/promises';
434
+ import { homedir } from 'node:os';
435
+ import _0xd2d670 from 'node:path';
436
+ var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
437
+ '.csv': _0x57701d(0x225),
438
+ '.gif': 'image/gif',
439
+ '.jpeg': 'image/jpeg',
440
+ '.jpg': _0x57701d(0x26d),
441
+ '.json': _0x57701d(0x298),
442
+ '.md': _0x57701d(0x2ad),
443
+ '.pdf': _0x57701d(0x202),
444
+ '.png': 'image/png',
445
+ '.svg': _0x57701d(0x2d1),
446
+ '.txt': _0x57701d(0x2ac),
447
+ '.webp': 'image/webp',
448
+ '.xml': 'application/xml',
449
+ '.zip': _0x57701d(0x270)
450
+ };
451
+ function guessContentType(_0x1fb8ba) {
452
+ const _0x3b9b7b = {
453
+ _0x1da1b4: 0x217,
454
+ _0x255666: 0x23c,
455
+ _0x1ce033: 0x20a
456
+ }, _0x5be909 = _0x57701d;
457
+ return MIME_BY_EXTENSION[_0xd2d670[_0x5be909(_0x3b9b7b._0x1da1b4)](_0x1fb8ba)[_0x5be909(_0x3b9b7b._0x255666)]()] ?? _0x5be909(_0x3b9b7b._0x1ce033);
458
+ }
459
+ function safeFilename(_0x3a2a06) {
460
+ const _0x2ef101 = _0x57701d;
461
+ return _0x3a2a06[_0x2ef101(0x30d)](/[\\/]/g, '-');
462
+ }
463
+ function extensionFor(_0x3bcb0f) {
464
+ const _0x115b25 = _0x57701d, _0x3eb2bf = Object['entries'](MIME_BY_EXTENSION)[_0x115b25(0x2c7)](([, _0x1457c2]) => _0x1457c2 === _0x3bcb0f);
465
+ return _0x3eb2bf?.[0x0] ?? _0x115b25(0x249);
466
+ }
467
+ async function prepareUploadFile(_0x50d7fa, _0x426cc8 = {}) {
468
+ const _0x11066d = {
469
+ _0x228d21: 0x2f3,
470
+ _0x338ae6: 0x229,
471
+ _0x5737b4: 0x2c1,
472
+ _0x57ee02: 0x293,
473
+ _0x231694: 0x2bb
474
+ }, _0x3a504f = _0x57701d;
475
+ if (!_0xd2d670[_0x3a504f(0x34b)](_0x50d7fa))
476
+ throw new Error(_0x3a504f(0x316));
477
+ const _0x295dbd = await stat(_0x50d7fa)[_0x3a504f(_0x11066d._0x228d21)](() => null);
478
+ if (!_0x295dbd || !_0x295dbd[_0x3a504f(_0x11066d._0x338ae6)]())
479
+ throw new Error('File\x20not\x20found:\x20' + _0x50d7fa);
480
+ const _0x138edf = _0x426cc8[_0x3a504f(0x295)] ?? DEFAULT_MAX_FILE_SIZE;
481
+ if (_0x295dbd[_0x3a504f(0x2bb)] > _0x138edf)
482
+ throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x295dbd[_0x3a504f(0x2bb)]);
483
+ const _0xfb3e96 = await readFile(_0x50d7fa), _0x2337fd = _0xd2d670[_0x3a504f(_0x11066d._0x5737b4)](_0x50d7fa);
484
+ return {
485
+ 'contentBase64': _0xfb3e96[_0x3a504f(_0x11066d._0x57ee02)](_0x3a504f(0x31a)),
486
+ 'contentType': guessContentType(_0x2337fd),
487
+ 'filename': _0x2337fd,
488
+ 'sizeBytes': _0x295dbd[_0x3a504f(_0x11066d._0x231694)]
489
+ };
490
+ }
491
+ function _0x3fa9(_0x449dc3, _0x2cc1e3) {
492
+ _0x449dc3 = _0x449dc3 - 0x1ed;
493
+ const _0x1813ee = _0x1813();
494
+ let _0x3fa984 = _0x1813ee[_0x449dc3];
495
+ if (_0x3fa9['izvCKK'] === undefined) {
496
+ var _0x7fbb71 = function (_0xff551f) {
497
+ const _0x5a104c = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
498
+ let _0xd2d670 = '', _0x1fb8ba = '';
499
+ for (let _0x3a2a06 = 0x0, _0x3bcb0f, _0x3eb2bf, _0x1457c2 = 0x0; _0x3eb2bf = _0xff551f['charAt'](_0x1457c2++); ~_0x3eb2bf && (_0x3bcb0f = _0x3a2a06 % 0x4 ? _0x3bcb0f * 0x40 + _0x3eb2bf : _0x3eb2bf, _0x3a2a06++ % 0x4) ? _0xd2d670 += String['fromCharCode'](0xff & _0x3bcb0f >> (-0x2 * _0x3a2a06 & 0x6)) : 0x0) {
500
+ _0x3eb2bf = _0x5a104c['indexOf'](_0x3eb2bf);
501
+ }
502
+ for (let _0x50d7fa = 0x0, _0x426cc8 = _0xd2d670['length']; _0x50d7fa < _0x426cc8; _0x50d7fa++) {
503
+ _0x1fb8ba += '%' + ('00' + _0xd2d670['charCodeAt'](_0x50d7fa)['toString'](0x10))['slice'](-0x2);
504
+ }
505
+ return decodeURIComponent(_0x1fb8ba);
506
+ };
507
+ _0x3fa9['qkILHI'] = _0x7fbb71, _0x3fa9['nDIgmD'] = {}, _0x3fa9['izvCKK'] = !![];
508
+ }
509
+ const _0xe80ec3 = _0x1813ee[0x0], _0x3c1b56 = _0x449dc3 + _0xe80ec3, _0x27db13 = _0x3fa9['nDIgmD'][_0x3c1b56];
510
+ return !_0x27db13 ? (_0x3fa984 = _0x3fa9['qkILHI'](_0x3fa984), _0x3fa9['nDIgmD'][_0x3c1b56] = _0x3fa984) : _0x3fa984 = _0x27db13, _0x3fa984;
511
+ }
512
+ function createAttachmentCache(_0x17b408 = {}) {
513
+ const _0x381395 = {
514
+ _0x5ae5d4: 0x224,
515
+ _0x25177e: 0x218
516
+ }, _0x3457bd = {
517
+ _0x44899f: 0x315,
518
+ _0x413fed: 0x297,
519
+ _0xdc407f: 0x2a5,
520
+ _0x45298f: 0x214
521
+ }, _0x4887e8 = { _0x1902a6: 0x2c7 }, _0x14a494 = _0x57701d, _0x465a57 = _0x17b408[_0x14a494(_0x381395._0x5ae5d4)] ?? _0xd2d670['join'](homedir(), _0x14a494(0x26b), _0x14a494(_0x381395._0x25177e));
522
+ return {
523
+ 'cacheDir': _0x465a57,
524
+ async 'findCachedPath'(_0x2d4f76) {
525
+ const _0xb50e9c = _0x14a494;
526
+ await mkdir(_0x465a57, { 'recursive': !![] });
527
+ const _0x36da55 = await readdir(_0x465a57), _0xcccdd5 = _0x36da55[_0xb50e9c(_0x4887e8._0x1902a6)](_0x19e64c => _0x19e64c[_0xb50e9c(0x343)](_0x2d4f76 + '-') || _0x19e64c[_0xb50e9c(0x343)](_0x2d4f76));
528
+ return _0xcccdd5 ? _0xd2d670['join'](_0x465a57, _0xcccdd5) : null;
529
+ },
530
+ async 'save'(_0x2e44b8) {
531
+ const _0x2386a9 = _0x14a494;
532
+ await mkdir(_0x465a57, { 'recursive': !![] });
533
+ const _0x1c3efa = _0x2e44b8[_0x2386a9(_0x3457bd._0x44899f)]?.[_0x2386a9(0x2ef)]() ? safeFilename(_0x2e44b8[_0x2386a9(_0x3457bd._0x44899f)]) : '' + _0x2e44b8[_0x2386a9(0x214)] + extensionFor(_0x2e44b8[_0x2386a9(_0x3457bd._0x413fed)]), _0x238f98 = _0xd2d670[_0x2386a9(_0x3457bd._0xdc407f)](_0x465a57, _0x2e44b8[_0x2386a9(_0x3457bd._0x45298f)] + '-' + _0x1c3efa);
534
+ return await writeFile(_0x238f98, _0x2e44b8['data']), _0x238f98;
535
+ }
536
+ };
537
+ }
538
+ import {
539
+ createHash,
540
+ randomUUID
541
+ } from 'node:crypto';
542
+ var UNSUPPORTED_TARGET_MESSAGE = _0x57701d(0x27a);
543
+ function ensureSegment(_0x382c8c) {
544
+ const _0x13b780 = _0x57701d, _0x32d38b = _0x382c8c[_0x13b780(0x2ef)]();
545
+ if (!_0x32d38b || _0x32d38b['includes'](':'))
546
+ throw new Error(UNSUPPORTED_TARGET_MESSAGE);
547
+ return _0x32d38b;
548
+ }
549
+ function parseThreadParts(_0x4e9811) {
550
+ const _0x4cb7eb = { _0x2c1dce: 0x230 }, _0x1ab656 = _0x57701d, _0x444611 = _0x4e9811['split'](':');
551
+ if (_0x444611[_0x1ab656(0x230)] < 0x1 || _0x444611[_0x1ab656(_0x4cb7eb._0x2c1dce)] > 0x2)
552
+ throw new Error(UNSUPPORTED_TARGET_MESSAGE);
553
+ return {
554
+ 'channelName': ensureSegment(_0x444611[0x0] ?? ''),
555
+ 'threadShortId': _0x444611[0x1] ? ensureSegment(_0x444611[0x1]) : null
556
+ };
557
+ }
558
+ function parseTarget(_0x3f4add) {
559
+ const _0x478b1c = {
560
+ _0x198258: 0x343,
561
+ _0x20bb21: 0x29d,
562
+ _0x4951c7: 0x279,
563
+ _0x50f452: 0x330,
564
+ _0xdd3a29: 0x29d,
565
+ _0x83aa09: 0x299,
566
+ _0x2edb6c: 0x2a7,
567
+ _0x5a0795: 0x2a7
568
+ }, _0x5776e1 = _0x57701d, _0x22e616 = _0x3f4add['trim']();
569
+ if (!_0x22e616)
570
+ throw new Error(UNSUPPORTED_TARGET_MESSAGE);
571
+ if (_0x22e616[_0x5776e1(_0x478b1c._0x198258)]('#')) {
572
+ const _0x7fc60d = parseThreadParts(_0x22e616[_0x5776e1(_0x478b1c._0x20bb21)](0x1)), _0x2454aa = '#' + _0x7fc60d['channelName'];
573
+ if (!_0x7fc60d[_0x5776e1(_0x478b1c._0x4951c7)])
574
+ return {
575
+ 'channelName': _0x7fc60d[_0x5776e1(0x2a7)],
576
+ 'channelTarget': _0x2454aa,
577
+ 'kind': _0x5776e1(_0x478b1c._0x50f452),
578
+ 'target': _0x2454aa
579
+ };
580
+ return {
581
+ 'channelName': _0x7fc60d[_0x5776e1(0x2a7)],
582
+ 'channelTarget': _0x2454aa,
583
+ 'kind': _0x5776e1(0x26a),
584
+ 'target': _0x2454aa + ':' + _0x7fc60d[_0x5776e1(_0x478b1c._0x4951c7)],
585
+ 'threadShortId': _0x7fc60d[_0x5776e1(0x279)]
586
+ };
587
+ }
588
+ if (_0x22e616['startsWith'](_0x5776e1(0x2bf))) {
589
+ const _0x4a8c0a = parseThreadParts(_0x22e616[_0x5776e1(_0x478b1c._0xdd3a29)](0x3));
590
+ if (!_0x4a8c0a[_0x5776e1(0x2a7)][_0x5776e1(0x343)](_0x5776e1(_0x478b1c._0x83aa09)))
591
+ throw new Error(UNSUPPORTED_TARGET_MESSAGE);
592
+ const _0xc1877f = 'dm:' + _0x4a8c0a['channelName'];
593
+ if (!_0x4a8c0a['threadShortId'])
594
+ return {
595
+ 'channelName': _0x4a8c0a[_0x5776e1(_0x478b1c._0x2edb6c)],
596
+ 'channelTarget': _0xc1877f,
597
+ 'kind': _0x5776e1(0x330),
598
+ 'target': _0xc1877f
599
+ };
600
+ return {
601
+ 'channelName': _0x4a8c0a[_0x5776e1(_0x478b1c._0x5a0795)],
602
+ 'channelTarget': _0xc1877f,
603
+ 'kind': _0x5776e1(0x26a),
604
+ 'target': _0xc1877f + ':' + _0x4a8c0a[_0x5776e1(_0x478b1c._0x4951c7)],
605
+ 'threadShortId': _0x4a8c0a[_0x5776e1(_0x478b1c._0x4951c7)]
606
+ };
607
+ }
608
+ throw new Error(UNSUPPORTED_TARGET_MESSAGE);
609
+ }
610
+ function asErrorMessage(_0x27f674, _0x220199) {
611
+ const _0x46b196 = {
612
+ _0x3dd41d: 0x2d0,
613
+ _0x3e833f: 0x2ef
614
+ }, _0x934375 = _0x57701d;
615
+ if (typeof _0x27f674 === _0x934375(_0x46b196._0x3dd41d) && _0x27f674[_0x934375(_0x46b196._0x3e833f)]())
616
+ return _0x27f674;
617
+ return _0x220199;
618
+ }
619
+ function asRecord(_0x1aae3a) {
620
+ const _0x14764a = { _0x1320f8: 0x260 }, _0xf3db6d = _0x57701d;
621
+ return typeof _0x1aae3a === _0xf3db6d(_0x14764a._0x1320f8) && _0x1aae3a !== null ? _0x1aae3a : {};
622
+ }
623
+ function stableStringify(_0x4cf309) {
624
+ const _0x416e4e = { _0x30b2dc: 0x222 }, _0x4ef0c9 = _0x57701d;
625
+ if (_0x4cf309 === null || typeof _0x4cf309 !== 'object')
626
+ return JSON[_0x4ef0c9(0x26f)](_0x4cf309);
627
+ if (Array[_0x4ef0c9(_0x416e4e._0x30b2dc)](_0x4cf309))
628
+ return '[' + _0x4cf309[_0x4ef0c9(0x242)](_0x132743 => stableStringify(_0x132743))['join'](',') + ']';
629
+ const _0x347121 = Object[_0x4ef0c9(0x253)](_0x4cf309)[_0x4ef0c9(0x337)](([, _0x5200f4]) => _0x5200f4 !== void 0x0)['sort'](([_0x20245e], [_0x4c2912]) => _0x20245e['localeCompare'](_0x4c2912))['map'](([_0x22e2cd, _0x3e2b4c]) => JSON[_0x4ef0c9(0x26f)](_0x22e2cd) + ':' + stableStringify(_0x3e2b4c));
630
+ return '{' + _0x347121['join'](',') + '}';
631
+ }
632
+ function createHeaders(_0x48ce68) {
633
+ const _0x69f425 = _0x57701d;
634
+ return {
635
+ 'Content-Type': _0x69f425(0x298),
636
+ 'x-daemon-api-key': _0x48ce68
637
+ };
638
+ }
639
+ function toHttpBaseUrl(_0x2c5929) {
640
+ const _0x184ebe = {
641
+ _0x41cffc: 0x304,
642
+ _0x3ba59f: 0x25c,
643
+ _0x2fdbac: 0x272,
644
+ _0x1a383b: 0x293,
645
+ _0x48972c: 0x30d
646
+ }, _0x1ad9f8 = _0x57701d, _0xce48f5 = new URL(_0x2c5929);
647
+ if (_0xce48f5[_0x1ad9f8(0x304)] === 'ws:')
648
+ _0xce48f5[_0x1ad9f8(_0x184ebe._0x41cffc)] = _0x1ad9f8(_0x184ebe._0x3ba59f);
649
+ else
650
+ _0xce48f5[_0x1ad9f8(_0x184ebe._0x41cffc)] === _0x1ad9f8(_0x184ebe._0x2fdbac) && (_0xce48f5['protocol'] = _0x1ad9f8(0x252));
651
+ return _0xce48f5[_0x1ad9f8(_0x184ebe._0x1a383b)]()[_0x1ad9f8(_0x184ebe._0x48972c)](/\/$/, '');
652
+ }
653
+ function isMentionBoundary(_0x4d163c) {
654
+ return !_0x4d163c || /\s|[([{'",。!?、:;]/['test'](_0x4d163c);
655
+ }
656
+ function isMentionTerminal(_0x41336b) {
657
+ return !_0x41336b || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x41336b);
658
+ }
659
+ function buildMatchableEntries(_0x43de6c) {
660
+ const _0x700762 = {
661
+ _0x5ea5be: 0x25b,
662
+ _0x1e7baf: 0x247,
663
+ _0x54627f: 0x250,
664
+ _0x501bfd: 0x2fd
665
+ }, _0x5b2bb1 = _0x57701d, _0xfd30d7 = [];
666
+ for (const _0x58c8de of [
667
+ ..._0x43de6c[_0x5b2bb1(0x355)],
668
+ ..._0x43de6c[_0x5b2bb1(_0x700762._0x5ea5be)]
669
+ ]) {
670
+ _0xfd30d7[_0x5b2bb1(_0x700762._0x1e7baf)]({
671
+ 'matchName': _0x58c8de[_0x5b2bb1(0x250)],
672
+ 'matchNameLower': _0x58c8de[_0x5b2bb1(_0x700762._0x54627f)][_0x5b2bb1(_0x700762._0x501bfd)](),
673
+ 'participantId': _0x58c8de['id']
674
+ }), _0x58c8de['id'] !== _0x58c8de[_0x5b2bb1(0x250)] && _0xfd30d7['push']({
675
+ 'matchName': _0x58c8de['id'],
676
+ 'matchNameLower': _0x58c8de['id']['toLocaleLowerCase'](),
677
+ 'participantId': _0x58c8de['id']
678
+ });
679
+ }
680
+ return _0xfd30d7;
681
+ }
682
+ function extractMentionedParticipantIds(_0x341054, _0x24c6b9) {
683
+ const _0x29b8be = {
684
+ _0x13073f: 0x2c6,
685
+ _0x44cff7: 0x230
686
+ }, _0x4f00e4 = {
687
+ _0x133e9d: 0x21a,
688
+ _0x5edea8: 0x20c
689
+ }, _0x19b2a2 = _0x57701d, _0x1c5c53 = buildMatchableEntries(_0x24c6b9)[_0x19b2a2(_0x29b8be._0x13073f)]((_0x5a2931, _0x5cf0fe) => _0x5cf0fe[_0x19b2a2(0x20c)][_0x19b2a2(0x230)] - _0x5a2931[_0x19b2a2(0x20c)][_0x19b2a2(0x230)]), _0x138c04 = [], _0x2164b3 = new Set();
690
+ for (let _0x445481 = 0x0; _0x445481 < _0x341054[_0x19b2a2(_0x29b8be._0x44cff7)]; _0x445481 += 0x1) {
691
+ if (_0x341054[_0x445481] !== '@' || !isMentionBoundary(_0x341054[_0x445481 - 0x1]))
692
+ continue;
693
+ const _0x247ea9 = _0x341054[_0x19b2a2(0x29d)](_0x445481 + 0x1), _0x29f892 = _0x247ea9['toLocaleLowerCase'](), _0x19eeec = _0x1c5c53[_0x19b2a2(0x2c7)](_0x1cee96 => {
694
+ const _0x9eddb0 = _0x19b2a2;
695
+ if (!_0x29f892[_0x9eddb0(0x343)](_0x1cee96[_0x9eddb0(_0x4f00e4._0x133e9d)]))
696
+ return ![];
697
+ return isMentionTerminal(_0x247ea9[_0x1cee96[_0x9eddb0(_0x4f00e4._0x5edea8)]['length']]);
698
+ });
699
+ if (!_0x19eeec || _0x2164b3['has'](_0x19eeec['participantId']))
700
+ continue;
701
+ _0x2164b3['add'](_0x19eeec['participantId']), _0x138c04[_0x19b2a2(0x247)](_0x19eeec['participantId']), _0x445481 += _0x19eeec[_0x19b2a2(0x20c)][_0x19b2a2(_0x29b8be._0x44cff7)];
702
+ }
703
+ return _0x138c04;
704
+ }
705
+ var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
706
+ function anySignal(..._0x208974) {
707
+ const _0x5f22f3 = {
708
+ _0x2e653e: 0x351,
709
+ _0x4691f0: 0x2a3
710
+ }, _0x2ca8af = _0x57701d, _0x3c5f39 = new AbortController();
711
+ for (const _0x416cdd of _0x208974) {
712
+ if (_0x416cdd[_0x2ca8af(_0x5f22f3._0x2e653e)])
713
+ return _0x3c5f39[_0x2ca8af(0x24b)](_0x416cdd[_0x2ca8af(0x327)]), _0x3c5f39[_0x2ca8af(_0x5f22f3._0x4691f0)];
714
+ _0x416cdd['addEventListener']('abort', () => _0x3c5f39[_0x2ca8af(0x24b)](_0x416cdd[_0x2ca8af(0x327)]), {
715
+ 'once': !![],
716
+ 'signal': _0x3c5f39[_0x2ca8af(_0x5f22f3._0x4691f0)]
717
+ });
718
+ }
719
+ return _0x3c5f39[_0x2ca8af(_0x5f22f3._0x4691f0)];
720
+ }
721
+ function createInternalAgentClient(_0xdbe9e3) {
722
+ const _0x41fc82 = {
723
+ _0x3e65de: 0x379,
724
+ _0x4b77a4: 0x2ae,
725
+ _0x43581d: 0x328,
726
+ _0x46ab4a: 0x328,
727
+ _0x566a70: 0x2ef,
728
+ _0x559167: 0x310,
729
+ _0x949ce4: 0x35f
730
+ }, _0x46f6dd = {
731
+ _0x3f9978: 0x22e,
732
+ _0x4e3763: 0x293,
733
+ _0x42e30b: 0x376,
734
+ _0x452cfb: 0x34c,
735
+ _0x3a068d: 0x357,
736
+ _0x42fdb7: 0x216,
737
+ _0x32e347: 0x230,
738
+ _0x2bd345: 0x230,
739
+ _0x1906c8: 0x256,
740
+ _0x420468: 0x29b,
741
+ _0x12361a: 0x350,
742
+ _0x1f5673: 0x273,
743
+ _0x12ad13: 0x2e5,
744
+ _0x4a5dde: 0x2d0,
745
+ _0x595334: 0x2d0,
746
+ _0xe4c119: 0x2ff,
747
+ _0x47b6a5: 0x303,
748
+ _0x441905: 0x255,
749
+ _0x53dcf8: 0x350,
750
+ _0x557605: 0x286,
751
+ _0x9e0ad: 0x281,
752
+ _0x10e88e: 0x250,
753
+ _0x27ed12: 0x283,
754
+ _0x358489: 0x2bf,
755
+ _0x242bb1: 0x247,
756
+ _0x258a7b: 0x291,
757
+ _0x1a1bfe: 0x2d9,
758
+ _0x12465f: 0x1ff,
759
+ _0x367208: 0x227,
760
+ _0x5d2c7d: 0x29c
761
+ }, _0xa8f581 = { _0x2fca99: 0x2d0 }, _0x500720 = {
762
+ _0x11aee4: 0x330,
763
+ _0xef9e4e: 0x292,
764
+ _0x512e10: 0x21c
765
+ }, _0x2f7205 = {
766
+ _0x4f9506: 0x23d,
767
+ _0x3adb2a: 0x296,
768
+ _0x153d26: 0x357,
769
+ _0x50d8a9: 0x2bc
770
+ }, _0x4a5909 = {
771
+ _0x474ee8: 0x1fc,
772
+ _0x11ad09: 0x34c,
773
+ _0x2111fb: 0x269,
774
+ _0x3df818: 0x27c,
775
+ _0x43cc7c: 0x20f,
776
+ _0x4bb380: 0x281
777
+ }, _0x569617 = {
778
+ _0x5a0516: 0x330,
779
+ _0x502efb: 0x352,
780
+ _0x1e6a8d: 0x332,
781
+ _0x164b7a: 0x336,
782
+ _0x2c81ed: 0x2a0,
783
+ _0x3efc59: 0x297,
784
+ _0x488a03: 0x309,
785
+ _0x161f67: 0x21b,
786
+ _0x136219: 0x27c
787
+ }, _0x45d21e = {
788
+ _0x4a8b7d: 0x376,
789
+ _0x565519: 0x26f,
790
+ _0x4546fc: 0x2f1,
791
+ _0x23223d: 0x21b
792
+ }, _0x8c0677 = { _0x348cc8: 0x21b }, _0x247237 = {
793
+ _0x38833b: 0x352,
794
+ _0x1dd163: 0x376,
795
+ _0x4d4fce: 0x26f,
796
+ _0x11f82e: 0x313,
797
+ _0x20ce1e: 0x21b
798
+ }, _0x4b582d = {
799
+ _0x571cad: 0x376,
800
+ _0x502c43: 0x1ef,
801
+ _0xef3810: 0x2b7,
802
+ _0xb69739: 0x21b
803
+ }, _0x52be9a = {
804
+ _0x4f7012: 0x352,
805
+ _0x5b0f49: 0x376,
806
+ _0x5ef89e: 0x33c,
807
+ _0x5c3906: 0x293,
808
+ _0xecf4c1: 0x34c
809
+ }, _0x59261e = { _0xe58f56: 0x209 }, _0x4ec38e = {
810
+ _0x161990: 0x21f,
811
+ _0x58fc5f: 0x25e,
812
+ _0x215d46: 0x26f,
813
+ _0x5f0826: 0x2d5
814
+ }, _0x1943fa = { _0x2aabf2: 0x26f }, _0x547977 = {
815
+ _0x201cf2: 0x314,
816
+ _0x84509c: 0x2b8,
817
+ _0x2f5fef: 0x26f,
818
+ _0xa1e4a2: 0x2db,
819
+ _0x13279e: 0x230,
820
+ _0x4fcf4e: 0x2e5,
821
+ _0x1cfbc1: 0x27c
822
+ }, _0x2d1e46 = {
823
+ _0x161ced: 0x21c,
824
+ _0x51d875: 0x23d,
825
+ _0x34f4fa: 0x2e5,
826
+ _0x23889e: 0x2e5,
827
+ _0x151504: 0x273,
828
+ _0x318c28: 0x216,
829
+ _0x4b6fa2: 0x322,
830
+ _0x409b68: 0x352,
831
+ _0x5ebe4e: 0x34c,
832
+ _0x1905b5: 0x317,
833
+ _0x15ac70: 0x357,
834
+ _0x564c43: 0x1ee
835
+ }, _0x507bd3 = { _0x37eb73: 0x210 }, _0x54f530 = {
836
+ _0x3b8fcc: 0x2ab,
837
+ _0x45ec6f: 0x210
838
+ }, _0x3a894c = {
839
+ _0x45a407: 0x280,
840
+ _0x5e77ea: 0x2ff,
841
+ _0x12eabf: 0x279,
842
+ _0x4b445c: 0x2e5,
843
+ _0x5cd607: 0x279,
844
+ _0x2ec8a9: 0x343
845
+ }, _0x38ee51 = {
846
+ _0xbfbd60: 0x303,
847
+ _0x1b7813: 0x235,
848
+ _0x44dd1c: 0x343,
849
+ _0x3b8415: 0x279,
850
+ _0x50f980: 0x2e5
851
+ }, _0x123eb8 = {
852
+ _0x4da94e: 0x303,
853
+ _0x2ccbfa: 0x303,
854
+ _0x32d641: 0x235,
855
+ _0x49befe: 0x2e5,
856
+ _0x4e86dd: 0x317
857
+ }, _0x120c7a = {
858
+ _0x172753: 0x355,
859
+ _0x1e3a97: 0x25b,
860
+ _0x4ae630: 0x2c7
861
+ }, _0xaa8d48 = {
862
+ _0xe02649: 0x237,
863
+ _0x34e2a2: 0x2fe
864
+ }, _0xf4193f = { _0x12cabe: 0x346 }, _0x2c423b = {
865
+ _0x3db92d: 0x2de,
866
+ _0x3c98f0: 0x336,
867
+ _0x17752a: 0x27c,
868
+ _0x26e48e: 0x317,
869
+ _0xa4f294: 0x24a,
870
+ _0x2830ff: 0x27c,
871
+ _0xcf6399: 0x303
872
+ }, _0x330ecb = {
873
+ _0x3fe371: 0x298,
874
+ _0x5a95cf: 0x21b
875
+ }, _0x3ecf87 = {
876
+ _0xf310bb: 0x2be,
877
+ _0x49b000: 0x212,
878
+ _0x3924a7: 0x368
879
+ }, _0x486560 = {
880
+ _0x115862: 0x2a3,
881
+ _0x1b21a2: 0x2a3
882
+ }, _0x4f5102 = {
883
+ _0x22c6c1: 0x2a3,
884
+ _0x4a8f36: 0x2b3,
885
+ _0x514ee8: 0x269
886
+ }, _0x38e6fd = {
887
+ _0x16284a: 0x2b4,
888
+ _0x3ae669: 0x2a6,
889
+ _0x23cf89: 0x339,
890
+ _0x4575a9: 0x34a
891
+ }, _0x17d53e = {
892
+ _0x1e44b1: 0x36f,
893
+ _0x6048b3: 0x26e
894
+ }, _0x39320e = {
895
+ _0x587b11: 0x281,
896
+ _0x2ac33e: 0x1f6,
897
+ _0x5fe272: 0x30d,
898
+ _0xa79754: 0x1f1,
899
+ _0x39965c: 0x209
900
+ }, _0x3a00cc = _0x57701d, _0x33e399 = _0xdbe9e3[_0x3a00cc(_0x41fc82._0x3e65de)] ?? fetch, _0x378895 = _0xdbe9e3[_0x3a00cc(_0x41fc82._0x4b77a4)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x3a54c8 = typeof _0xdbe9e3[_0x3a00cc(_0x41fc82._0x43581d)] === _0x3a00cc(0x280) && _0xdbe9e3[_0x3a00cc(_0x41fc82._0x46ab4a)] > 0x0 ? _0xdbe9e3[_0x3a00cc(0x328)] : 0x0, _0x159828 = _0xdbe9e3[_0x3a00cc(0x2a9)]?.[_0x3a00cc(0x2ef)]() || void 0x0, _0x165de2 = _0xdbe9e3[_0x3a00cc(0x312)]?.[_0x3a00cc(0x2ef)]() || void 0x0, _0x4d2db7 = _0xdbe9e3['workerModeEnabled'] === !![], _0x363e5b = _0xdbe9e3['workerSessionId']?.[_0x3a00cc(_0x41fc82._0x566a70)]() || void 0x0, _0x19b515 = _0xdbe9e3['workerThreadTarget']?.[_0x3a00cc(0x2ef)]() || void 0x0, _0x27838b = createHeaders(_0xdbe9e3[_0x3a00cc(_0x41fc82._0x559167)]), _0x4f2902 = toHttpBaseUrl(_0xdbe9e3[_0x3a00cc(_0x41fc82._0x949ce4)]);
901
+ let _0x3bfeeb = null;
902
+ const _0x2d6742 = new Map();
903
+ let _0x43f31a = _0x3a54c8, _0xcf657 = _0x3a54c8;
904
+ function _0x155003(_0x99324a) {
905
+ const _0x4ee453 = _0x3a00cc, _0x481056 = _0x99324a['response'][_0x4ee453(0x20f)][_0x4ee453(_0x39320e._0x587b11)](_0x4ee453(0x2f5)) ?? 'unknown', _0x2b14b5 = _0x99324a[_0x4ee453(_0x39320e._0x2ac33e)][_0x4ee453(0x2ef)]()[_0x4ee453(_0x39320e._0x5fe272)](/\s+/g, '\x20')[_0x4ee453(0x29d)](0x0, 0x78) || _0x4ee453(0x201);
906
+ return '请求\x20' + _0x99324a['requestUrl'] + '\x20返回了非\x20JSON\x20响应(status=' + _0x99324a[_0x4ee453(_0x39320e._0xa79754)][_0x4ee453(_0x39320e._0x39965c)] + _0x4ee453(0x335) + _0x481056 + ',\x20preview=' + _0x2b14b5 + _0x4ee453(0x2ea);
907
+ }
908
+ async function _0xa5accb(_0x509abb, _0x1974b8) {
909
+ const _0x39f646 = _0x3a00cc, _0x5e9b79 = Buffer['from'](await _0x1974b8[_0x39f646(_0x17d53e._0x1e44b1)]())[_0x39f646(0x293)](_0x39f646(0x35d));
910
+ if (!_0x5e9b79['trim']())
911
+ return {};
912
+ try {
913
+ return JSON[_0x39f646(_0x17d53e._0x6048b3)](_0x5e9b79);
914
+ } catch {
915
+ throw new Error(_0x155003({
916
+ 'bodyText': _0x5e9b79,
917
+ 'requestUrl': _0x509abb,
918
+ 'response': _0x1974b8
919
+ }));
920
+ }
921
+ }
922
+ function _0x32ce6c(_0x144823, _0x28bb7e) {
923
+ const _0x1918b5 = _0x3a00cc, _0x23002d = typeof _0x28bb7e[_0x1918b5(0x1f0)] === 'string' ? _0x28bb7e[_0x1918b5(0x1f0)][_0x1918b5(0x2ef)]() : '';
924
+ if (_0x23002d)
925
+ return _0x23002d;
926
+ const _0x11e2f7 = Date[_0x1918b5(0x321)]();
927
+ for (const [_0x18936d, _0x578d77] of _0x2d6742) {
928
+ _0x578d77[_0x1918b5(_0x38e6fd._0x16284a)] <= _0x11e2f7 && _0x2d6742[_0x1918b5(_0x38e6fd._0x3ae669)](_0x18936d);
929
+ }
930
+ const _0x2f8863 = {
931
+ ..._0x28bb7e,
932
+ 'idempotency_key': void 0x0
933
+ }, _0x24314e = createHash(_0x1918b5(0x2e6))[_0x1918b5(0x20e)](_0x144823 + ':' + stableStringify(_0x2f8863))[_0x1918b5(_0x38e6fd._0x23cf89)](_0x1918b5(0x24c)), _0x277b1d = _0x144823 + ':' + _0x24314e, _0x3772e3 = _0x2d6742[_0x1918b5(0x281)](_0x277b1d);
934
+ if (_0x3772e3)
935
+ return _0x3772e3[_0x1918b5(_0x38e6fd._0x4575a9)];
936
+ const _0x3bc6fc = _0x1918b5(0x307) + _0x144823 + ':' + randomUUID();
937
+ return _0x2d6742[_0x1918b5(0x23d)](_0x277b1d, {
938
+ 'expiresAt': _0x11e2f7 + 0x5 * 0x3c * 0x3e8,
939
+ 'value': _0x3bc6fc
940
+ }), _0x3bc6fc;
941
+ }
942
+ async function _0x51e761(_0x684d6, _0x1d2ac6) {
943
+ const _0x148de2 = _0x3a00cc, _0x431d21 = new AbortController(), _0x5035c8 = setTimeout(() => _0x431d21[_0x148de2(0x24b)](), _0x378895), _0x2e601d = _0x1d2ac6?.['signal'] ? anySignal(_0x1d2ac6[_0x148de2(_0x4f5102._0x22c6c1)], _0x431d21[_0x148de2(0x2a3)]) : _0x431d21[_0x148de2(_0x4f5102._0x22c6c1)], _0x168d96 = '' + _0x4f2902 + _0x684d6;
944
+ try {
945
+ const _0x1e84ab = await _0x33e399(_0x168d96, {
946
+ ..._0x1d2ac6,
947
+ 'signal': _0x2e601d
948
+ }), _0x4217e0 = await _0xa5accb(_0x168d96, _0x1e84ab);
949
+ if (!_0x1e84ab['ok'] || _0x4217e0[_0x148de2(_0x4f5102._0x4a8f36)] === ![])
950
+ throw new Error(asErrorMessage(_0x4217e0[_0x148de2(0x30e)], _0x148de2(_0x4f5102._0x514ee8) + _0x1e84ab['status']));
951
+ return _0x4217e0;
952
+ } finally {
953
+ clearTimeout(_0x5035c8);
954
+ }
955
+ }
956
+ async function _0x1e19c9(_0x246903, _0x106566) {
957
+ const _0x5e4eff = _0x3a00cc, _0x42952f = new AbortController(), _0x33b8af = setTimeout(() => _0x42952f[_0x5e4eff(0x24b)](), _0x378895), _0x49a84b = _0x106566?.[_0x5e4eff(_0x486560._0x115862)] ? anySignal(_0x106566['signal'], _0x42952f[_0x5e4eff(0x2a3)]) : _0x42952f[_0x5e4eff(_0x486560._0x1b21a2)], _0x3b2e32 = '' + _0x4f2902 + _0x246903;
958
+ try {
959
+ const _0x447f3d = await _0x33e399(_0x3b2e32, {
960
+ ..._0x106566,
961
+ 'signal': _0x49a84b
962
+ }), _0x1dcb9c = await _0xa5accb(_0x3b2e32, _0x447f3d);
963
+ if (!_0x447f3d['ok'])
964
+ throw new Error(asErrorMessage(_0x1dcb9c[_0x5e4eff(0x30e)], _0x5e4eff(0x269) + _0x447f3d['status']));
965
+ return _0x1dcb9c;
966
+ } finally {
967
+ clearTimeout(_0x33b8af);
968
+ }
969
+ }
970
+ async function _0x3c3131(_0x586953) {
971
+ const _0x485961 = _0x3a00cc;
972
+ if (!_0x165de2 || _0x586953 <= _0xcf657)
973
+ return;
974
+ await _0x51e761(_0x485961(_0x3ecf87._0xf310bb) + encodeURIComponent(_0x165de2) + _0x485961(_0x3ecf87._0x49b000), {
975
+ 'body': JSON['stringify']({ 'lastSeenSeq': _0x586953 }),
976
+ 'headers': _0x27838b,
977
+ 'method': _0x485961(_0x3ecf87._0x3924a7)
978
+ }), _0xcf657 = _0x586953;
979
+ }
980
+ async function _0x1a2ee4(_0x1127f2) {
981
+ const _0x2e3f0e = _0x3a00cc;
982
+ if (!_0x159828 || !_0x363e5b || _0x1127f2 <= _0xcf657)
983
+ return;
984
+ const _0x5be4c4 = await _0x33e399(_0x159828 + '/workers/context-metrics', {
985
+ 'body': JSON[_0x2e3f0e(0x26f)]({
986
+ 'last_seen_seq': _0x1127f2,
987
+ 'worker_session_id': _0x363e5b
988
+ }),
989
+ 'headers': { 'Content-Type': _0x2e3f0e(_0x330ecb._0x3fe371) },
990
+ 'method': _0x2e3f0e(_0x330ecb._0x5a95cf)
991
+ });
992
+ if (!_0x5be4c4['ok'])
993
+ throw new Error(_0x2e3f0e(0x269) + _0x5be4c4[_0x2e3f0e(0x209)]);
994
+ _0xcf657 = _0x1127f2;
995
+ }
996
+ async function _0x3e6729(_0x2969cd) {
997
+ const _0x2f790e = _0x3a00cc, _0x1f2928 = parseTarget(_0x2969cd), _0xc1f50f = await _0x51e761(_0x2f790e(0x352) + _0xdbe9e3[_0x2f790e(0x376)] + _0x2f790e(_0x2c423b._0x3db92d), {
998
+ 'body': JSON[_0x2f790e(0x26f)]({ 'target': _0x1f2928[_0x2f790e(_0x2c423b._0x3c98f0)] }),
999
+ 'headers': _0x27838b,
1000
+ 'method': 'POST'
1001
+ });
1002
+ return {
1003
+ 'channelId': _0xc1f50f[_0x2f790e(_0x2c423b._0x17752a)]?.['channelId'] ?? '',
1004
+ 'target': _0x1f2928[_0x2f790e(_0x2c423b._0x26e48e)],
1005
+ 'task': _0xc1f50f['data']?.[_0x2f790e(_0x2c423b._0xa4f294)],
1006
+ 'threadId': _0xc1f50f[_0x2f790e(_0x2c423b._0x17752a)]?.['threadId'],
1007
+ 'threadNumber': _0xc1f50f[_0x2f790e(_0x2c423b._0x2830ff)]?.[_0x2f790e(_0x2c423b._0xcf6399)]
1008
+ };
1009
+ }
1010
+ async function _0x3796ee(_0xa7fd6f = {}) {
1011
+ const _0x470b27 = {
1012
+ _0x3f5868: 0x352,
1013
+ _0x2e248e: 0x376,
1014
+ _0x5e8b23: 0x242,
1015
+ _0x53f0f8: 0x27c,
1016
+ _0x2e7793: 0x250
1017
+ }, _0x4f2717 = _0x3a00cc;
1018
+ if (!_0xa7fd6f[_0x4f2717(_0xf4193f._0x12cabe)] && _0x3bfeeb)
1019
+ return _0x3bfeeb;
1020
+ return _0x3bfeeb = (async () => {
1021
+ const _0x16aae1 = _0x4f2717, _0x4f74c2 = await _0x51e761(_0x16aae1(_0x470b27._0x3f5868) + _0xdbe9e3[_0x16aae1(_0x470b27._0x2e248e)] + '/server', {
1022
+ 'headers': _0x27838b,
1023
+ 'method': _0x16aae1(0x34c)
1024
+ }), _0x302f49 = _0x4f74c2[_0x16aae1(0x27c)]?.['members'] ?? [], _0x506c46 = _0x302f49['filter'](_0x15d2b2 => _0x15d2b2['participant']?.['type'] === _0x16aae1(0x2fe))[_0x16aae1(0x242)](_0x22ff9 => ({
1025
+ 'id': _0x2e9a0b(_0x22ff9),
1026
+ 'name': _0x5ef412(_0x22ff9)
1027
+ }))['filter'](_0x356e62 => _0x356e62['id']), _0x202552 = _0x302f49['filter'](_0x24a4a3 => _0x24a4a3[_0x16aae1(0x210)]?.[_0x16aae1(0x2c0)] !== _0x16aae1(0x2fe))[_0x16aae1(_0x470b27._0x5e8b23)](_0x45ee5a => ({
1028
+ 'id': _0x2e9a0b(_0x45ee5a),
1029
+ 'name': _0x5ef412(_0x45ee5a)
1030
+ }))[_0x16aae1(0x337)](_0x2f3ed0 => _0x2f3ed0['id']), _0x5472e5 = _0x4f74c2['data']?.['server']['id'] ?? '';
1031
+ return {
1032
+ 'agents': _0x506c46,
1033
+ 'channels': _0x4f74c2[_0x16aae1(_0x470b27._0x53f0f8)]?.[_0x16aae1(0x29b)] ?? [],
1034
+ 'humans': _0x202552,
1035
+ 'serverId': _0x5472e5,
1036
+ 'serverName': _0x4f74c2[_0x16aae1(_0x470b27._0x53f0f8)]?.[_0x16aae1(0x240)][_0x16aae1(_0x470b27._0x2e7793)] ?? _0x5472e5
1037
+ };
1038
+ })()[_0x4f2717(0x2f3)](_0x14cfd9 => {
1039
+ _0x3bfeeb = null;
1040
+ throw _0x14cfd9;
1041
+ }), _0x3bfeeb;
1042
+ }
1043
+ function _0x39c89f(_0x4462ec, _0x5e724d) {
1044
+ const _0x4e94c2 = _0x3a00cc;
1045
+ return _0x5e724d['agents'][_0x4e94c2(_0xaa8d48._0xe02649)](_0x177ab3 => _0x177ab3['id'] === _0x4462ec || _0x177ab3[_0x4e94c2(0x250)] === _0x4462ec) ? _0x4e94c2(_0xaa8d48._0x34e2a2) : 'human';
1046
+ }
1047
+ function _0x180d2d(_0x432888, _0x282f8d) {
1048
+ const _0x1d9622 = _0x3a00cc, _0x55f405 = [
1049
+ ..._0x282f8d[_0x1d9622(_0x120c7a._0x172753)],
1050
+ ..._0x282f8d[_0x1d9622(_0x120c7a._0x1e3a97)]
1051
+ ][_0x1d9622(_0x120c7a._0x4ae630)](_0x51840e => _0x51840e['id'] === _0x432888);
1052
+ return _0x55f405?.['name'] ?? _0x432888;
1053
+ }
1054
+ function _0x2af7d4(_0x43307e) {
1055
+ const _0x1ac468 = _0x3a00cc;
1056
+ if (_0x43307e[_0x1ac468(_0x123eb8._0x4da94e)] != null)
1057
+ return _0x43307e['channelTarget'] + ':t' + _0x43307e[_0x1ac468(_0x123eb8._0x2ccbfa)];
1058
+ if (_0x43307e[_0x1ac468(_0x123eb8._0x32d641)])
1059
+ return _0x43307e['channelTarget'] + ':' + _0x43307e[_0x1ac468(0x235)];
1060
+ if (_0x43307e[_0x1ac468(_0x123eb8._0x49befe)])
1061
+ return _0x43307e[_0x1ac468(_0x123eb8._0x4e86dd)] + ':' + _0x43307e['threadId']['slice'](0x0, 0x8);
1062
+ return _0x43307e[_0x1ac468(0x317)];
1063
+ }
1064
+ function _0x17c9e9(_0x58eef1, _0x4273d9) {
1065
+ const _0x5105ee = _0x3a00cc;
1066
+ try {
1067
+ const _0x308025 = parseTarget(_0x58eef1);
1068
+ if (_0x308025[_0x5105ee(0x283)] !== _0x5105ee(0x26a) || _0x308025['channelTarget'] !== _0x4273d9[_0x5105ee(0x317)])
1069
+ return ![];
1070
+ if (_0x4273d9[_0x5105ee(_0x38ee51._0xbfbd60)] != null && _0x308025[_0x5105ee(0x279)] === 't' + _0x4273d9['threadNumber'])
1071
+ return !![];
1072
+ if (_0x4273d9[_0x5105ee(0x235)])
1073
+ return _0x308025[_0x5105ee(0x279)] === _0x4273d9[_0x5105ee(_0x38ee51._0x1b7813)] || _0x4273d9[_0x5105ee(_0x38ee51._0x1b7813)][_0x5105ee(_0x38ee51._0x44dd1c)](_0x308025[_0x5105ee(_0x38ee51._0x3b8415)]);
1074
+ if (_0x4273d9['threadId'])
1075
+ return _0x308025['threadShortId'] === _0x4273d9[_0x5105ee(_0x38ee51._0x50f980)] || _0x4273d9['threadId'][_0x5105ee(0x343)](_0x308025[_0x5105ee(0x279)]);
1076
+ return ![];
1077
+ } catch {
1078
+ return ![];
1079
+ }
1080
+ }
1081
+ function _0x3aa32b(_0x5a1e39, _0x1858ba) {
1082
+ const _0x49c2d1 = _0x3a00cc;
1083
+ try {
1084
+ const _0x37f337 = parseTarget(_0x5a1e39);
1085
+ if (_0x37f337['kind'] !== 'thread')
1086
+ return ![];
1087
+ const _0x2fe0e7 = typeof _0x1858ba['threadNumber'] === _0x49c2d1(_0x3a894c._0x45a407) && Number[_0x49c2d1(_0x3a894c._0x5e77ea)](_0x1858ba['threadNumber']) ? _0x1858ba[_0x49c2d1(0x303)] : void 0x0;
1088
+ if (_0x2fe0e7 != null && _0x37f337[_0x49c2d1(0x279)] === 't' + _0x2fe0e7)
1089
+ return !![];
1090
+ const _0x5669d2 = typeof _0x1858ba[_0x49c2d1(0x235)] === 'string' ? _0x1858ba[_0x49c2d1(0x235)] : void 0x0;
1091
+ if (_0x5669d2)
1092
+ return _0x37f337['threadShortId'] === _0x5669d2 || _0x5669d2['startsWith'](_0x37f337[_0x49c2d1(_0x3a894c._0x12eabf)]);
1093
+ const _0x4160c3 = typeof _0x1858ba[_0x49c2d1(0x2e5)] === 'string' ? _0x1858ba[_0x49c2d1(_0x3a894c._0x4b445c)] : void 0x0;
1094
+ return Boolean(_0x4160c3) && (_0x37f337[_0x49c2d1(_0x3a894c._0x5cd607)] === _0x4160c3 || _0x4160c3[_0x49c2d1(_0x3a894c._0x2ec8a9)](_0x37f337['threadShortId']));
1095
+ } catch {
1096
+ return ![];
1097
+ }
1098
+ }
1099
+ function _0x2e9a0b(_0x4cefd1) {
1100
+ const _0xbcdb36 = _0x3a00cc;
1101
+ return _0x4cefd1[_0xbcdb36(_0x54f530._0x3b8fcc)]?.[_0xbcdb36(0x2aa)] ?? _0x4cefd1[_0xbcdb36(_0x54f530._0x45ec6f)]?.['id'] ?? _0x4cefd1['participantId'] ?? '';
1102
+ }
1103
+ function _0x5ef412(_0x5951c7) {
1104
+ const _0x536de0 = _0x3a00cc;
1105
+ return _0x5951c7[_0x536de0(_0x507bd3._0x37eb73)]?.['name'] ?? _0x2e9a0b(_0x5951c7);
1106
+ }
1107
+ async function _0x3daab5(_0x10302c) {
1108
+ const _0x38157a = _0x3a00cc, _0x215025 = Math[_0x38157a(0x2e8)](_0x10302c[_0x38157a(_0x2d1e46._0x161ced)] ?? 0x32, 0x64), _0x32bcfe = await _0x3796ee(), _0x379d15 = new URLSearchParams();
1109
+ _0x379d15[_0x38157a(_0x2d1e46._0x51d875)](_0x38157a(_0x2d1e46._0x161ced), String(_0x215025));
1110
+ _0x10302c[_0x38157a(_0x2d1e46._0x34f4fa)] ? (_0x379d15[_0x38157a(_0x2d1e46._0x51d875)](_0x38157a(0x2e5), _0x10302c[_0x38157a(_0x2d1e46._0x23889e)]), _0x379d15[_0x38157a(_0x2d1e46._0x51d875)](_0x38157a(_0x2d1e46._0x151504), _0x10302c[_0x38157a(0x273)])) : _0x379d15[_0x38157a(_0x2d1e46._0x51d875)](_0x38157a(_0x2d1e46._0x151504), _0x10302c[_0x38157a(0x273)]);
1111
+ _0x10302c[_0x38157a(0x292)] && _0x379d15['set'](_0x38157a(_0x2d1e46._0x318c28), String(_0x10302c[_0x38157a(0x292)]));
1112
+ _0x10302c['after'] !== void 0x0 && _0x379d15[_0x38157a(_0x2d1e46._0x51d875)](_0x38157a(_0x2d1e46._0x4b6fa2), String(_0x10302c[_0x38157a(_0x2d1e46._0x4b6fa2)]));
1113
+ const _0x266f35 = await _0x51e761(_0x38157a(_0x2d1e46._0x409b68) + _0xdbe9e3['agentId'] + _0x38157a(0x2d7) + _0x379d15[_0x38157a(0x293)](), {
1114
+ 'headers': _0x27838b,
1115
+ 'method': _0x38157a(_0x2d1e46._0x5ebe4e)
1116
+ }), _0x25d83f = (_0x266f35['data'] ?? [])[_0x38157a(0x242)](_0x44c8fd => ({
1117
+ 'attachments': (_0x44c8fd['attachments'] ?? [])[_0x38157a(0x242)](_0x2599d8 => ({
1118
+ 'filename': _0x2599d8['filename'] ?? _0x2599d8['id'],
1119
+ 'id': _0x2599d8['id']
1120
+ })),
1121
+ 'content': _0x44c8fd[_0x38157a(0x227)] ?? '',
1122
+ 'createdAt': _0x44c8fd[_0x38157a(0x34e)],
1123
+ ..._0x44c8fd[_0x38157a(0x283)] && _0x44c8fd[_0x38157a(0x283)] !== _0x38157a(0x29c) ? { 'kind': _0x44c8fd[_0x38157a(0x283)] } : {},
1124
+ 'messageId': _0x44c8fd['id'],
1125
+ 'senderName': _0x180d2d(_0x44c8fd[_0x38157a(0x1ff)], _0x32bcfe),
1126
+ 'senderType': _0x39c89f(_0x44c8fd['senderParticipantId'], _0x32bcfe),
1127
+ 'seq': _0x44c8fd[_0x38157a(0x262)] ?? 0x0
1128
+ }));
1129
+ return {
1130
+ 'channel': _0x10302c[_0x38157a(_0x2d1e46._0x1905b5)],
1131
+ 'hasMore': _0x266f35[_0x38157a(_0x2d1e46._0x15ac70)]?.[_0x38157a(_0x2d1e46._0x564c43)] ?? ![],
1132
+ 'messages': _0x25d83f,
1133
+ 'nextCursor': _0x266f35[_0x38157a(_0x2d1e46._0x15ac70)]?.[_0x38157a(0x216)]
1134
+ };
1135
+ }
1136
+ return {
1137
+ async 'sendMessage'(_0x381c9b) {
1138
+ const _0x3a349b = _0x3a00cc, _0x5cadc2 = await _0x3e6729(_0x381c9b[_0x3a349b(0x336)]), _0x56e4e5 = _0x381c9b[_0x3a349b(_0x547977._0x201cf2)][_0x3a349b(_0x547977._0x84509c)]('@') ? extractMentionedParticipantIds(_0x381c9b[_0x3a349b(0x314)], await _0x3796ee()) : [], _0x5988a3 = await _0x51e761(_0x3a349b(0x352) + _0xdbe9e3[_0x3a349b(0x376)] + '/send', {
1139
+ 'body': JSON[_0x3a349b(_0x547977._0x2f5fef)]({
1140
+ 'attachment_ids': _0x381c9b[_0x3a349b(_0x547977._0xa1e4a2)],
1141
+ 'bodyMarkdown': _0x381c9b['content'],
1142
+ 'channelId': _0x5cadc2[_0x3a349b(0x273)],
1143
+ ..._0x56e4e5[_0x3a349b(_0x547977._0x13279e)] > 0x0 ? { 'mentionedParticipantIds': _0x56e4e5 } : {},
1144
+ 'threadId': _0x5cadc2[_0x3a349b(_0x547977._0x4fcf4e)],
1145
+ ..._0x381c9b[_0x3a349b(0x2f8)] ? { 'visibility': _0x381c9b[_0x3a349b(0x2f8)] } : {}
1146
+ }),
1147
+ 'headers': _0x27838b,
1148
+ 'method': 'POST'
1149
+ });
1150
+ return { 'messageId': _0x5988a3[_0x3a349b(_0x547977._0x1cfbc1)]?.['id'] ?? '' };
1151
+ },
1152
+ async 'listSchedules'() {
1153
+ const _0x2bbcaa = _0x3a00cc, _0x15c534 = await _0x51e761(_0x2bbcaa(0x264), {
1154
+ 'headers': _0x27838b,
1155
+ 'method': 'GET'
1156
+ });
1157
+ return _0x15c534[_0x2bbcaa(0x27c)] ?? [];
1158
+ },
1159
+ async 'claimScheduleRun'(_0x5bc2b7) {
1160
+ const _0x412a51 = _0x3a00cc, _0x48eb95 = await _0x51e761(_0x412a51(0x1f4), {
1161
+ 'body': JSON[_0x412a51(_0x1943fa._0x2aabf2)](_0x5bc2b7),
1162
+ 'headers': _0x27838b,
1163
+ 'method': 'POST'
1164
+ });
1165
+ return _0x48eb95[_0x412a51(0x27c)] ?? {
1166
+ 'granted': ![],
1167
+ 'runId': null,
1168
+ 'schedule': null,
1169
+ 'scheduledFor': _0x5bc2b7[_0x412a51(0x31d)]
1170
+ };
1171
+ },
1172
+ async 'startScheduleRun'(_0x17a883) {
1173
+ const _0x3cb47a = _0x3a00cc, _0x4749c7 = await _0x51e761('/api/internal/schedules/' + encodeURIComponent(_0x17a883[_0x3cb47a(_0x4ec38e._0x161990)]) + _0x3cb47a(_0x4ec38e._0x58fc5f), {
1174
+ 'body': JSON[_0x3cb47a(_0x4ec38e._0x215d46)]({}),
1175
+ 'headers': _0x27838b,
1176
+ 'method': _0x3cb47a(0x21b)
1177
+ });
1178
+ return _0x4749c7['data'] ?? {
1179
+ 'claimedByDaemonId': '',
1180
+ 'id': _0x17a883[_0x3cb47a(0x21f)],
1181
+ 'scheduleId': '',
1182
+ 'status': _0x3cb47a(_0x4ec38e._0x5f0826)
1183
+ };
1184
+ },
1185
+ async 'finishScheduleRun'(_0x4ada9d) {
1186
+ const _0x32343a = _0x3a00cc, _0xf6348 = await _0x51e761(_0x32343a(0x32c) + encodeURIComponent(_0x4ada9d['runId']) + '/finish', {
1187
+ 'body': JSON['stringify']({
1188
+ 'error': _0x4ada9d[_0x32343a(0x30e)],
1189
+ 'resultJson': _0x4ada9d[_0x32343a(0x25f)],
1190
+ 'status': _0x4ada9d[_0x32343a(_0x59261e._0xe58f56)]
1191
+ }),
1192
+ 'headers': _0x27838b,
1193
+ 'method': 'POST'
1194
+ });
1195
+ return _0xf6348[_0x32343a(0x27c)] ?? {
1196
+ 'nextRunAt': null,
1197
+ 'run': {
1198
+ 'claimedByDaemonId': '',
1199
+ 'id': _0x4ada9d[_0x32343a(0x21f)],
1200
+ 'scheduleId': '',
1201
+ 'status': _0x4ada9d[_0x32343a(0x209)]
1202
+ }
1203
+ };
1204
+ },
1205
+ async 'listTasks'(_0x5ddb02) {
1206
+ const _0x430ec0 = _0x3a00cc, _0x58c581 = new URLSearchParams();
1207
+ return _0x58c581[_0x430ec0(0x23d)](_0x430ec0(0x330), _0x5ddb02[_0x430ec0(0x330)]), _0x5ddb02['status'] && _0x58c581['set'](_0x430ec0(0x209), _0x5ddb02[_0x430ec0(0x209)]), _0x1e19c9(_0x430ec0(_0x52be9a._0x4f7012) + _0xdbe9e3[_0x430ec0(_0x52be9a._0x5b0f49)] + _0x430ec0(_0x52be9a._0x5ef89e) + _0x58c581[_0x430ec0(_0x52be9a._0x5c3906)](), {
1208
+ 'headers': _0x27838b,
1209
+ 'method': _0x430ec0(_0x52be9a._0xecf4c1)
1210
+ });
1211
+ },
1212
+ async 'createTasks'(_0x259719) {
1213
+ const _0x2c6038 = _0x3a00cc;
1214
+ return _0x1e19c9(_0x2c6038(0x352) + _0xdbe9e3[_0x2c6038(_0x4b582d._0x571cad)] + _0x2c6038(_0x4b582d._0x502c43), {
1215
+ 'body': JSON['stringify']({
1216
+ ..._0x259719,
1217
+ 'idempotency_key': _0x32ce6c(_0x2c6038(_0x4b582d._0xef3810), _0x259719)
1218
+ }),
1219
+ 'headers': _0x27838b,
1220
+ 'method': _0x2c6038(_0x4b582d._0xb69739)
1221
+ });
1222
+ },
1223
+ async 'claimTasks'(_0x2aa5ac) {
1224
+ const _0x545614 = _0x3a00cc;
1225
+ return _0x1e19c9(_0x545614(_0x247237._0x38833b) + _0xdbe9e3[_0x545614(_0x247237._0x1dd163)] + _0x545614(0x2a2), {
1226
+ 'body': JSON[_0x545614(_0x247237._0x4d4fce)]({
1227
+ ..._0x2aa5ac,
1228
+ 'idempotency_key': _0x32ce6c(_0x545614(_0x247237._0x11f82e), _0x2aa5ac)
1229
+ }),
1230
+ 'headers': _0x27838b,
1231
+ 'method': _0x545614(_0x247237._0x20ce1e)
1232
+ });
1233
+ },
1234
+ async 'unclaimTask'(_0x27a157) {
1235
+ const _0x1e5a8a = _0x3a00cc;
1236
+ return _0x1e19c9(_0x1e5a8a(0x352) + _0xdbe9e3[_0x1e5a8a(0x376)] + _0x1e5a8a(0x1f7), {
1237
+ 'body': JSON[_0x1e5a8a(0x26f)]({
1238
+ ..._0x27a157,
1239
+ 'idempotency_key': _0x32ce6c('unclaim_task', _0x27a157)
1240
+ }),
1241
+ 'headers': _0x27838b,
1242
+ 'method': _0x1e5a8a(_0x8c0677._0x348cc8)
1243
+ });
1244
+ },
1245
+ async 'updateTaskStatus'(_0xe4d2d6) {
1246
+ const _0xe1fa71 = _0x3a00cc;
1247
+ return _0x1e19c9('/internal/agent/' + _0xdbe9e3[_0xe1fa71(_0x45d21e._0x4a8b7d)] + _0xe1fa71(0x25a), {
1248
+ 'body': JSON[_0xe1fa71(_0x45d21e._0x565519)]({
1249
+ ..._0xe4d2d6,
1250
+ 'idempotency_key': _0x32ce6c(_0xe1fa71(_0x45d21e._0x4546fc), _0xe4d2d6)
1251
+ }),
1252
+ 'headers': _0x27838b,
1253
+ 'method': _0xe1fa71(_0x45d21e._0x23223d)
1254
+ });
1255
+ },
1256
+ async 'uploadFile'(_0x70b042) {
1257
+ const _0x46936c = _0x3a00cc, _0x31f8ae = await _0x3e6729(_0x70b042[_0x46936c(_0x569617._0x5a0516)]);
1258
+ if (_0x31f8ae['threadId'])
1259
+ throw new Error(_0x46936c(0x2e9));
1260
+ const _0x2a6e12 = await _0x51e761(_0x46936c(_0x569617._0x502efb) + _0xdbe9e3['agentId'] + _0x46936c(_0x569617._0x1e6a8d), {
1261
+ 'body': JSON[_0x46936c(0x26f)]({
1262
+ 'channel': _0x31f8ae[_0x46936c(_0x569617._0x164b7a)],
1263
+ 'contentBase64': _0x70b042[_0x46936c(_0x569617._0x2c81ed)],
1264
+ 'contentType': _0x70b042[_0x46936c(_0x569617._0x3efc59)],
1265
+ 'originalFilename': _0x70b042[_0x46936c(_0x569617._0x488a03)]
1266
+ }),
1267
+ 'headers': _0x27838b,
1268
+ 'method': _0x46936c(_0x569617._0x161f67)
1269
+ });
1270
+ return {
1271
+ 'attachmentId': _0x2a6e12[_0x46936c(0x27c)]?.['id'] ?? '',
1272
+ 'filename': _0x2a6e12[_0x46936c(_0x569617._0x136219)]?.[_0x46936c(0x315)] ?? _0x70b042[_0x46936c(0x309)],
1273
+ 'sizeBytes': _0x2a6e12['data']?.[_0x46936c(0x329)] ?? 0x0
1274
+ };
1275
+ },
1276
+ async 'downloadAttachment'(_0x33a4ab) {
1277
+ const _0x30322d = _0x3a00cc, _0x2db63f = await _0x51e761('/api/attachments/' + _0x33a4ab, {
1278
+ 'headers': _0x27838b,
1279
+ 'method': _0x30322d(0x34c)
1280
+ }), _0x1682e1 = new AbortController(), _0x400729 = setTimeout(() => _0x1682e1[_0x30322d(0x24b)](), _0x378895);
1281
+ try {
1282
+ const _0x36c138 = await _0x33e399(_0x4f2902 + '/api/attachments/' + _0x33a4ab + _0x30322d(_0x4a5909._0x474ee8), {
1283
+ 'headers': _0x27838b,
1284
+ 'method': _0x30322d(_0x4a5909._0x11ad09),
1285
+ 'signal': _0x1682e1['signal']
1286
+ });
1287
+ if (!_0x36c138['ok'])
1288
+ throw new Error(_0x30322d(_0x4a5909._0x2111fb) + _0x36c138[_0x30322d(0x209)]);
1289
+ return {
1290
+ 'contentType': _0x2db63f[_0x30322d(_0x4a5909._0x3df818)]?.['contentType'] ?? _0x36c138[_0x30322d(_0x4a5909._0x43cc7c)][_0x30322d(_0x4a5909._0x4bb380)](_0x30322d(0x2f5)) ?? _0x30322d(0x20a),
1291
+ 'data': Buffer[_0x30322d(0x2af)](await _0x36c138[_0x30322d(0x36f)]()),
1292
+ 'originalFilename': _0x2db63f[_0x30322d(0x27c)]?.['originalFilename']
1293
+ };
1294
+ } finally {
1295
+ clearTimeout(_0x400729);
1296
+ }
1297
+ },
1298
+ async 'listServer'() {
1299
+ return _0x3796ee({ 'forceRefresh': !![] });
1300
+ },
1301
+ async 'getLatestEventSeq'() {
1302
+ const _0x341b41 = _0x3a00cc, _0x2c31e2 = new URLSearchParams();
1303
+ _0x2c31e2[_0x341b41(0x23d)](_0x341b41(0x22e), '0'), _0x2c31e2[_0x341b41(_0x2f7205._0x4f9506)]('limit', '1');
1304
+ const _0x5799c7 = await _0x51e761('/internal/agent/' + _0xdbe9e3[_0x341b41(0x376)] + _0x341b41(_0x2f7205._0x3adb2a) + _0x2c31e2[_0x341b41(0x293)](), {
1305
+ 'headers': _0x27838b,
1306
+ 'method': 'GET'
1307
+ }), _0x294960 = _0x5799c7[_0x341b41(_0x2f7205._0x153d26)]?.[_0x341b41(_0x2f7205._0x50d8a9)];
1308
+ return typeof _0x294960 === _0x341b41(0x280) && _0x294960 > 0x0 ? _0x294960 : 0x0;
1309
+ },
1310
+ async 'readHistory'(_0x1dc01a) {
1311
+ const _0x22afe4 = _0x3a00cc, _0x3bb531 = await _0x3e6729(_0x1dc01a[_0x22afe4(_0x500720._0x11aee4)]);
1312
+ return _0x3daab5({
1313
+ 'after': _0x1dc01a['after'],
1314
+ 'before': _0x1dc01a[_0x22afe4(_0x500720._0xef9e4e)],
1315
+ 'channelId': _0x3bb531['channelId'],
1316
+ 'channelTarget': _0x3bb531['target'],
1317
+ 'limit': _0x1dc01a[_0x22afe4(_0x500720._0x512e10)],
1318
+ 'threadId': _0x3bb531[_0x22afe4(0x2e5)]
1319
+ });
1320
+ },
1321
+ 'resolveTarget': _0x3e6729,
1322
+ async 'checkMessages'() {
1323
+ const _0x13f80a = {
1324
+ _0xadf8ca: 0x21e,
1325
+ _0x2f634a: 0x265
1326
+ }, _0x2d7072 = _0x3a00cc, _0x4ddbb5 = new URLSearchParams();
1327
+ _0x4ddbb5['set'](_0x2d7072(_0x46f6dd._0x3f9978), String(_0x43f31a));
1328
+ const _0x3ae1e1 = _0x4ddbb5[_0x2d7072(_0x46f6dd._0x4e3763)](), _0xcac118 = await _0x51e761('/internal/agent/' + _0xdbe9e3[_0x2d7072(_0x46f6dd._0x42e30b)] + '/receive' + (_0x3ae1e1 ? '?' + _0x3ae1e1 : ''), {
1329
+ 'headers': _0x27838b,
1330
+ 'method': _0x2d7072(_0x46f6dd._0x452cfb)
1331
+ }), _0x21a178 = _0xcac118['data'] ?? [], _0x175cf1 = _0xcac118[_0x2d7072(_0x46f6dd._0x3a068d)]?.[_0x2d7072(_0x46f6dd._0x42fdb7)], _0x3ff016 = _0x19b515 ? _0x21a178[_0x2d7072(0x337)](_0x1b5bde => {
1332
+ const _0x4162e8 = _0x2d7072;
1333
+ if (_0x1b5bde[_0x4162e8(_0x13f80a._0xadf8ca)] !== _0x4162e8(_0x13f80a._0x2f634a))
1334
+ return ![];
1335
+ return _0x3aa32b(_0x19b515, asRecord(_0x1b5bde['payloadJson']));
1336
+ }) : _0x21a178, _0x4dcda7 = _0x175cf1 !== void 0x0 ? _0x19b515 ? Math[_0x2d7072(0x256)](_0x43f31a, _0x3ff016[_0x2d7072(_0x46f6dd._0x32e347)] > 0x0 ? _0x3ff016[_0x3ff016[_0x2d7072(_0x46f6dd._0x2bd345)] - 0x1][_0x2d7072(0x286)] : _0x43f31a) : Math[_0x2d7072(_0x46f6dd._0x1906c8)](_0x43f31a, _0x175cf1) : _0x3ff016[_0x2d7072(_0x46f6dd._0x2bd345)] > 0x0 ? Math[_0x2d7072(_0x46f6dd._0x1906c8)](_0x43f31a, _0x3ff016[_0x3ff016[_0x2d7072(_0x46f6dd._0x32e347)] - 0x1]['seq']) : _0x43f31a, _0x37b641 = (_0x19b515 ? _0x3ff016 : _0x21a178)[_0x2d7072(0x337)](_0xfa5f2b => _0xfa5f2b[_0x2d7072(0x21e)] === _0x2d7072(0x265)), _0x439b1e = _0x19b515 === void 0x0 && _0x4d2db7;
1337
+ let _0x15f7c4 = await _0x3796ee(), _0x4c4e39 = new Map(_0x15f7c4[_0x2d7072(_0x46f6dd._0x420468)][_0x2d7072(0x242)](_0x2734ec => [
1338
+ _0x2734ec['id'],
1339
+ _0x2734ec
1340
+ ]));
1341
+ const _0x50dc3e = _0x37b641['some'](_0x26a619 => {
1342
+ const _0x251b67 = _0x2d7072, _0x36f1c8 = asRecord(_0x26a619[_0x251b67(0x350)]), _0xd2edb9 = typeof _0x36f1c8?.[_0x251b67(0x273)] === _0x251b67(_0xa8f581._0x2fca99) ? _0x36f1c8[_0x251b67(0x273)] : '';
1343
+ return Boolean(_0xd2edb9) && !_0x4c4e39[_0x251b67(0x266)](_0xd2edb9);
1344
+ });
1345
+ _0x50dc3e && (_0x15f7c4 = await _0x3796ee({ 'forceRefresh': !![] }), _0x4c4e39 = new Map(_0x15f7c4[_0x2d7072(_0x46f6dd._0x420468)][_0x2d7072(0x242)](_0x578b52 => [
1346
+ _0x578b52['id'],
1347
+ _0x578b52
1348
+ ])));
1349
+ const _0x5170d4 = new Map();
1350
+ for (const _0x181513 of _0x37b641) {
1351
+ const _0x5acd8a = asRecord(_0x181513[_0x2d7072(_0x46f6dd._0x12361a)]), _0x4728a0 = typeof _0x5acd8a[_0x2d7072(_0x46f6dd._0x1f5673)] === _0x2d7072(0x2d0) ? _0x5acd8a[_0x2d7072(0x273)] : '';
1352
+ if (!_0x4728a0)
1353
+ continue;
1354
+ const _0x27697a = typeof _0x5acd8a[_0x2d7072(_0x46f6dd._0x12ad13)] === _0x2d7072(_0x46f6dd._0x4a5dde) ? _0x5acd8a['threadId'] : void 0x0, _0x91ed64 = typeof _0x5acd8a['rootMessageId'] === _0x2d7072(_0x46f6dd._0x595334) ? _0x5acd8a['rootMessageId'] : void 0x0, _0x4b2f2f = typeof _0x5acd8a[_0x2d7072(0x303)] === _0x2d7072(0x280) && Number[_0x2d7072(_0x46f6dd._0xe4c119)](_0x5acd8a[_0x2d7072(0x303)]) ? _0x5acd8a['threadNumber'] : void 0x0, _0x558a58 = Boolean(_0x27697a && (!_0x91ed64 || _0x181513[_0x2d7072(0x37a)] !== _0x91ed64)), _0x4a89a2 = _0x558a58 ? _0x4728a0 + ':' + _0x27697a : _0x4728a0, _0x1f6e43 = _0x5170d4['get'](_0x4a89a2) ?? {
1355
+ 'aggregateIds': [],
1356
+ 'channelId': _0x4728a0,
1357
+ 'entries': new Map(),
1358
+ 'isThreadReply': _0x558a58,
1359
+ 'rootMessageId': _0x91ed64,
1360
+ 'threadNumber': _0x4b2f2f,
1361
+ 'threadId': _0x558a58 ? _0x27697a : void 0x0
1362
+ };
1363
+ _0x1f6e43[_0x2d7072(0x303)] == null && _0x4b2f2f != null && (_0x1f6e43[_0x2d7072(_0x46f6dd._0x47b6a5)] = _0x4b2f2f), !_0x1f6e43[_0x2d7072(0x235)] && _0x91ed64 && (_0x1f6e43['rootMessageId'] = _0x91ed64), _0x1f6e43[_0x2d7072(_0x46f6dd._0x441905)][_0x2d7072(0x247)](_0x181513['aggregateId']), _0x1f6e43[_0x2d7072(0x253)]['set'](_0x181513[_0x2d7072(0x37a)], {
1364
+ 'payloadJson': _0x181513[_0x2d7072(_0x46f6dd._0x53dcf8)],
1365
+ 'seq': _0x181513[_0x2d7072(_0x46f6dd._0x557605)]
1366
+ }), _0x5170d4[_0x2d7072(0x23d)](_0x4a89a2, _0x1f6e43);
1367
+ }
1368
+ const _0x4a8f02 = [];
1369
+ for (const _0x14e563 of _0x5170d4['values']()) {
1370
+ const {
1371
+ channelId: _0x135f9e,
1372
+ threadId: _0x28f755,
1373
+ rootMessageId: _0x38bf9f,
1374
+ threadNumber: _0x3aaa3b,
1375
+ aggregateIds: _0x4a1a50,
1376
+ isThreadReply: _0x90a1a1,
1377
+ entries: _0x2b3a1d
1378
+ } = _0x14e563, _0x5a8cc5 = _0x4c4e39[_0x2d7072(_0x46f6dd._0x9e0ad)](_0x135f9e), _0x571131 = _0x5a8cc5?.[_0x2d7072(_0x46f6dd._0x10e88e)] ?? _0x135f9e, _0x5814f9 = _0x5a8cc5?.[_0x2d7072(_0x46f6dd._0x27ed12)] === 'dm' ? _0x2d7072(_0x46f6dd._0x358489) + _0x571131 : '#' + _0x571131, _0x205c89 = {
1379
+ 'channelTarget': _0x5814f9,
1380
+ 'rootMessageId': _0x38bf9f,
1381
+ 'threadId': _0x28f755,
1382
+ 'threadNumber': _0x3aaa3b
1383
+ }, _0x25ecb8 = await _0x3daab5({
1384
+ 'channelId': _0x135f9e,
1385
+ 'channelTarget': _0x5814f9,
1386
+ 'limit': Math['max'](_0x4a1a50[_0x2d7072(0x230)], 0x32),
1387
+ 'threadId': _0x28f755
1388
+ }), _0x4051b6 = new Map(_0x25ecb8[_0x2d7072(0x333)][_0x2d7072(0x242)](_0x1dc69b => [
1389
+ _0x1dc69b[_0x2d7072(0x36e)],
1390
+ _0x1dc69b
1391
+ ])), _0x31ec12 = _0x28f755 ? _0x2af7d4(_0x205c89) : _0x5814f9, _0x30cb7a = _0x19b515 ? _0x90a1a1 && _0x17c9e9(_0x19b515, _0x205c89) : !![], _0xd2d7bd = _0x90a1a1 ? _0x30cb7a && _0x19b515 ? _0x19b515 : _0x31ec12 : _0x5814f9;
1392
+ for (const _0x21163d of _0x4a1a50) {
1393
+ if (!_0x30cb7a)
1394
+ continue;
1395
+ const _0x10a314 = _0x2b3a1d[_0x2d7072(0x281)](_0x21163d), _0x20711d = _0x10a314 ? asRecord(_0x10a314[_0x2d7072(0x350)]) : void 0x0, _0x1bf3a1 = _0x20711d?.['taskDeliveryMode'] === 'targeted';
1396
+ if (_0x439b1e && _0x1bf3a1)
1397
+ continue;
1398
+ const _0xde8086 = _0x4051b6[_0x2d7072(0x281)](_0x21163d);
1399
+ if (_0xde8086) {
1400
+ _0x4a8f02[_0x2d7072(_0x46f6dd._0x242bb1)]({
1401
+ 'attachments': _0xde8086[_0x2d7072(0x218)],
1402
+ 'content': _0xde8086[_0x2d7072(0x314)],
1403
+ 'createdAt': _0xde8086['createdAt'],
1404
+ ..._0xde8086[_0x2d7072(0x283)] ? { 'kind': _0xde8086[_0x2d7072(0x283)] } : {},
1405
+ 'messageId': _0xde8086[_0x2d7072(0x36e)],
1406
+ 'senderName': _0xde8086[_0x2d7072(_0x46f6dd._0x258a7b)],
1407
+ 'senderType': _0xde8086[_0x2d7072(_0x46f6dd._0x1a1bfe)],
1408
+ 'target': _0xd2d7bd,
1409
+ ..._0x1bf3a1 ? { 'targetedTask': !![] } : {}
1410
+ });
1411
+ continue;
1412
+ }
1413
+ if (_0x10a314) {
1414
+ const _0x28ad43 = typeof _0x20711d?.[_0x2d7072(_0x46f6dd._0x12465f)] === _0x2d7072(0x2d0) ? _0x20711d[_0x2d7072(0x1ff)] : '', _0x220c4b = typeof _0x20711d?.['bodyMarkdown'] === _0x2d7072(0x2d0) ? _0x20711d[_0x2d7072(_0x46f6dd._0x367208)] : '', _0x968523 = typeof _0x20711d?.[_0x2d7072(0x283)] === _0x2d7072(0x2d0) && _0x20711d[_0x2d7072(0x283)] !== _0x2d7072(_0x46f6dd._0x5d2c7d) ? _0x20711d[_0x2d7072(0x283)] : void 0x0;
1415
+ _0x28ad43 && _0x220c4b && _0x4a8f02['push']({
1416
+ 'attachments': [],
1417
+ 'content': _0x220c4b,
1418
+ 'createdAt': new Date()['toISOString'](),
1419
+ ..._0x968523 ? { 'kind': _0x968523 } : {},
1420
+ 'messageId': _0x21163d,
1421
+ 'senderName': _0x180d2d(_0x28ad43, _0x15f7c4),
1422
+ 'senderType': _0x39c89f(_0x28ad43, _0x15f7c4),
1423
+ 'target': _0xd2d7bd,
1424
+ ..._0x1bf3a1 ? { 'targetedTask': !![] } : {}
1425
+ });
1426
+ }
1427
+ }
1428
+ }
1429
+ if (_0x4dcda7 > 0x0) {
1430
+ if (_0x165de2)
1431
+ await _0x3c3131(_0x4dcda7);
1432
+ else
1433
+ _0x363e5b && await _0x1a2ee4(_0x4dcda7);
1434
+ }
1435
+ return _0x4dcda7 > _0x43f31a && (_0x43f31a = _0x4dcda7), { 'messages': _0x19b515 ? _0x4a8f02 : _0x439b1e ? _0x4a8f02[_0x2d7072(0x337)](_0x3d635d => _0x3d635d[_0x2d7072(0x28a)] !== !![]) : _0x4a8f02 };
1436
+ }
1397
1437
  };
1398
- return _0x7a96();
1399
1438
  }
1400
- function toLocalTime(_0x342339) {
1401
- const _0x101cd2 = {
1402
- _0x1dccef: 0x29c,
1403
- _0x4e668c: 0x27d,
1404
- _0x293127: 0x19a,
1405
- _0x90042b: 0x246,
1406
- _0x5a5ba3: 0x292
1407
- }, _0x1568d0 = _0x36c0a2, _0xbb376d = new Date(_0x342339);
1408
- if (Number[_0x1568d0(_0x101cd2._0x1dccef)](_0xbb376d['getTime']()))
1409
- return _0x342339;
1410
- const _0x467c1a = _0x39ffc3 => String(_0x39ffc3)['padStart'](0x2, '0');
1411
- return _0xbb376d[_0x1568d0(_0x101cd2._0x4e668c)]() + '-' + _0x467c1a(_0xbb376d['getMonth']() + 0x1) + '-' + _0x467c1a(_0xbb376d[_0x1568d0(_0x101cd2._0x293127)]()) + '\x20' + _0x467c1a(_0xbb376d[_0x1568d0(_0x101cd2._0x90042b)]()) + ':' + _0x467c1a(_0xbb376d['getMinutes']()) + ':' + _0x467c1a(_0xbb376d[_0x1568d0(_0x101cd2._0x5a5ba3)]());
1439
+ function toLocalTime(_0x26d917) {
1440
+ const _0x56fb56 = {
1441
+ _0x2cf747: 0x276,
1442
+ _0x5e56ca: 0x30a,
1443
+ _0x5e6cf2: 0x234
1444
+ }, _0x24ff97 = _0x57701d, _0x3c6aac = new Date(_0x26d917);
1445
+ if (Number[_0x24ff97(_0x56fb56._0x2cf747)](_0x3c6aac[_0x24ff97(0x2c2)]()))
1446
+ return _0x26d917;
1447
+ const _0x2c4f52 = _0x5e135a => String(_0x5e135a)[_0x24ff97(0x2c4)](0x2, '0');
1448
+ return _0x3c6aac['getFullYear']() + '-' + _0x2c4f52(_0x3c6aac[_0x24ff97(0x33d)]() + 0x1) + '-' + _0x2c4f52(_0x3c6aac[_0x24ff97(_0x56fb56._0x5e56ca)]()) + '\x20' + _0x2c4f52(_0x3c6aac['getHours']()) + ':' + _0x2c4f52(_0x3c6aac[_0x24ff97(_0x56fb56._0x5e6cf2)]()) + ':' + _0x2c4f52(_0x3c6aac[_0x24ff97(0x22a)]());
1412
1449
  }
1413
- function formatAttachmentSuffix(_0x2749c0) {
1414
- const _0x231837 = {
1415
- _0x5bc0be: 0x29b,
1416
- _0x3c4e13: 0x2df
1417
- }, _0x46ba5 = _0x36c0a2;
1418
- if (!_0x2749c0 || _0x2749c0['length'] === 0x0)
1450
+ function formatAttachmentSuffix(_0x1b591) {
1451
+ const _0x22291e = { _0x4f7ad1: 0x302 }, _0x3037a4 = _0x57701d;
1452
+ if (!_0x1b591 || _0x1b591['length'] === 0x0)
1419
1453
  return '';
1420
- return '\x20[' + _0x2749c0[_0x46ba5(0x2a9)] + '\x20attachment' + (_0x2749c0['length'] > 0x1 ? 's' : '') + ':\x20' + _0x2749c0[_0x46ba5(_0x231837._0x5bc0be)](_0x12e363 => _0x12e363[_0x46ba5(0x1dd)] + _0x46ba5(0x2a5) + _0x12e363['id'] + ')')['join'](',\x20') + _0x46ba5(_0x231837._0x3c4e13);
1454
+ return '\x20[' + _0x1b591['length'] + '\x20attachment' + (_0x1b591[_0x3037a4(0x230)] > 0x1 ? 's' : '') + ':\x20' + _0x1b591[_0x3037a4(0x242)](_0x3245f1 => _0x3245f1[_0x3037a4(0x309)] + _0x3037a4(0x254) + _0x3245f1['id'] + ')')[_0x3037a4(0x2a5)](',\x20') + _0x3037a4(_0x22291e._0x4f7ad1);
1421
1455
  }
1422
- function formatCheckMessages(_0xecc93) {
1423
- const _0x55d42a = { _0x53a77f: 0x2a2 }, _0x56bb65 = {
1424
- _0x349f1f: 0x231,
1425
- _0x482080: 0x20c,
1426
- _0x1dbf92: 0x1a2,
1427
- _0x4f6972: 0x176,
1428
- _0x4cc0f6: 0x1fa,
1429
- _0x202c7a: 0x25c
1430
- }, _0x58a4b3 = _0x36c0a2;
1431
- if (_0xecc93[_0x58a4b3(0x2a9)] === 0x0)
1432
- return _0x58a4b3(0x201);
1433
- return _0xecc93[_0x58a4b3(0x29b)](_0x3a058 => {
1434
- const _0x2c78b3 = _0x58a4b3, _0x3d9685 = _0x3a058[_0x2c78b3(_0x56bb65._0x349f1f)] === _0x2c78b3(_0x56bb65._0x482080) ? _0x2c78b3(0x218) : '', _0x2fc3df = _0x3a058['kind'] && _0x3a058['kind'] !== _0x2c78b3(0x160) ? _0x2c78b3(_0x56bb65._0x1dbf92) + _0x3a058[_0x2c78b3(0x257)] : '';
1435
- return _0x2c78b3(0x1e3) + _0x3a058['target'] + _0x2c78b3(0x15f) + _0x3a058[_0x2c78b3(_0x56bb65._0x4f6972)][_0x2c78b3(0x189)](0x0, 0x8) + _0x2c78b3(0x258) + toLocalTime(_0x3a058[_0x2c78b3(0x253)]) + _0x3d9685 + _0x2fc3df + _0x2c78b3(0x2c8) + _0x3a058[_0x2c78b3(_0x56bb65._0x4cc0f6)] + ':\x20' + _0x3a058[_0x2c78b3(0x25f)] + formatAttachmentSuffix(_0x3a058[_0x2c78b3(_0x56bb65._0x202c7a)]);
1436
- })[_0x58a4b3(_0x55d42a._0x53a77f)]('\x0a');
1456
+ function formatCheckMessages(_0x2885c4) {
1457
+ const _0x1fe0dc = { _0x11a05a: 0x242 }, _0x127cb5 = {
1458
+ _0x5bc799: 0x283,
1459
+ _0x544630: 0x287,
1460
+ _0x72e155: 0x2e3
1461
+ }, _0x332717 = _0x57701d;
1462
+ if (_0x2885c4[_0x332717(0x230)] === 0x0)
1463
+ return _0x332717(0x30b);
1464
+ return _0x2885c4[_0x332717(_0x1fe0dc._0x11a05a)](_0x5f41bd => {
1465
+ const _0xc4a9ae = _0x332717, _0x2d1a8f = _0x5f41bd[_0xc4a9ae(0x2d9)] === _0xc4a9ae(0x2fe) ? _0xc4a9ae(0x36b) : '', _0x943933 = _0x5f41bd[_0xc4a9ae(0x283)] && _0x5f41bd[_0xc4a9ae(_0x127cb5._0x5bc799)] !== _0xc4a9ae(0x29c) ? _0xc4a9ae(0x282) + _0x5f41bd[_0xc4a9ae(_0x127cb5._0x5bc799)] : '';
1466
+ return '[target=' + _0x5f41bd['target'] + _0xc4a9ae(_0x127cb5._0x544630) + _0x5f41bd[_0xc4a9ae(0x36e)][_0xc4a9ae(0x29d)](0x0, 0x8) + '\x20time=' + toLocalTime(_0x5f41bd['createdAt']) + _0x2d1a8f + _0x943933 + _0xc4a9ae(_0x127cb5._0x72e155) + _0x5f41bd['senderName'] + ':\x20' + _0x5f41bd[_0xc4a9ae(0x314)] + formatAttachmentSuffix(_0x5f41bd['attachments']);
1467
+ })[_0x332717(0x2a5)]('\x0a');
1437
1468
  }
1438
- function formatHistory(_0x272df9) {
1439
- const _0x1b005a = {
1440
- _0x3da3db: 0x2a9,
1441
- _0x22ef73: 0x2bf,
1442
- _0x2371f7: 0x29b,
1443
- _0x4a4612: 0x24d,
1444
- _0xcf9313: 0x20a,
1445
- _0x18306a: 0x2cf
1446
- }, _0xb9ba3a = {
1447
- _0x22769c: 0x231,
1448
- _0x53a767: 0x257,
1449
- _0x179b92: 0x257,
1450
- _0x44b65e: 0x160,
1451
- _0x1ca0bc: 0x257,
1452
- _0x388ce3: 0x1c2,
1453
- _0xdec841: 0x253
1454
- }, _0x44df36 = _0x36c0a2;
1455
- if (_0x272df9['messages'][_0x44df36(_0x1b005a._0x3da3db)] === 0x0)
1456
- return '##\x20Message\x20History\x20for\x20' + _0x272df9[_0x44df36(0x2e0)] + _0x44df36(_0x1b005a._0x22ef73);
1457
- const _0x559c9b = _0x272df9[_0x44df36(0x170)][_0x44df36(_0x1b005a._0x2371f7)](_0x16d752 => {
1458
- const _0x36562e = _0x44df36, _0x30fae1 = _0x16d752[_0x36562e(_0xb9ba3a._0x22769c)] === _0x36562e(0x20c) ? _0x36562e(0x218) : '', _0x224490 = _0x16d752[_0x36562e(_0xb9ba3a._0x53a767)] && _0x16d752[_0x36562e(_0xb9ba3a._0x179b92)] !== _0x36562e(_0xb9ba3a._0x44b65e) ? '\x20kind=' + _0x16d752[_0x36562e(_0xb9ba3a._0x1ca0bc)] : '';
1459
- return _0x36562e(0x2ce) + _0x16d752[_0x36562e(_0xb9ba3a._0x388ce3)] + '\x20msg=' + _0x16d752[_0x36562e(0x176)] + _0x36562e(0x258) + toLocalTime(_0x16d752[_0x36562e(_0xb9ba3a._0xdec841)]) + _0x30fae1 + _0x224490 + _0x36562e(0x2c8) + _0x16d752[_0x36562e(0x1fa)] + ':\x20' + _0x16d752[_0x36562e(0x25f)] + formatAttachmentSuffix(_0x16d752['attachments']);
1460
- })['join']('\x0a'), _0x116d5c = _0x272df9[_0x44df36(0x2ae)] && _0x272df9[_0x44df36(0x20a)] ? _0x44df36(0x1d8) + _0x272df9[_0x44df36(0x170)]['length'] + _0x44df36(_0x1b005a._0x4a4612) + _0x272df9[_0x44df36(_0x1b005a._0xcf9313)] + _0x44df36(0x1ac) : '';
1461
- return _0x44df36(_0x1b005a._0x18306a) + _0x272df9[_0x44df36(0x2e0)] + '\x20(' + _0x272df9[_0x44df36(0x170)][_0x44df36(_0x1b005a._0x3da3db)] + _0x44df36(0x1b1) + _0x559c9b + _0x116d5c;
1469
+ function formatHistory(_0x154674) {
1470
+ const _0x463ee3 = {
1471
+ _0x1eaae7: 0x1ed,
1472
+ _0x1120a5: 0x242,
1473
+ _0x1801b7: 0x2a5,
1474
+ _0x154354: 0x230,
1475
+ _0x2d9370: 0x2f9,
1476
+ _0x4d20ab: 0x2df,
1477
+ _0x8c6a6c: 0x330,
1478
+ _0x59af90: 0x333
1479
+ }, _0x1e072a = {
1480
+ _0xda2d09: 0x2d9,
1481
+ _0xca12cf: 0x2fe,
1482
+ _0x56fc88: 0x36b,
1483
+ _0x2a8061: 0x282,
1484
+ _0x3cdd8c: 0x34e,
1485
+ _0x13b947: 0x218
1486
+ }, _0x265462 = _0x57701d;
1487
+ if (_0x154674[_0x265462(0x333)][_0x265462(0x230)] === 0x0)
1488
+ return '##\x20Message\x20History\x20for\x20' + _0x154674['channel'] + _0x265462(_0x463ee3._0x1eaae7);
1489
+ const _0x5d7e21 = _0x154674[_0x265462(0x333)][_0x265462(_0x463ee3._0x1120a5)](_0x16a0b6 => {
1490
+ const _0x379dc3 = _0x265462, _0x30adcb = _0x16a0b6[_0x379dc3(_0x1e072a._0xda2d09)] === _0x379dc3(_0x1e072a._0xca12cf) ? _0x379dc3(_0x1e072a._0x56fc88) : '', _0x4be674 = _0x16a0b6['kind'] && _0x16a0b6[_0x379dc3(0x283)] !== _0x379dc3(0x29c) ? _0x379dc3(_0x1e072a._0x2a8061) + _0x16a0b6['kind'] : '';
1491
+ return '[seq=' + _0x16a0b6['seq'] + '\x20msg=' + _0x16a0b6[_0x379dc3(0x36e)] + _0x379dc3(0x29e) + toLocalTime(_0x16a0b6[_0x379dc3(_0x1e072a._0x3cdd8c)]) + _0x30adcb + _0x4be674 + _0x379dc3(0x2e3) + _0x16a0b6[_0x379dc3(0x291)] + ':\x20' + _0x16a0b6['content'] + formatAttachmentSuffix(_0x16a0b6[_0x379dc3(_0x1e072a._0x13b947)]);
1492
+ })[_0x265462(_0x463ee3._0x1801b7)]('\x0a'), _0x59aa8b = _0x154674[_0x265462(0x1ee)] && _0x154674['nextCursor'] ? '\x0a\x0a---\x20' + _0x154674['messages'][_0x265462(_0x463ee3._0x154354)] + _0x265462(_0x463ee3._0x2d9370) + _0x154674[_0x265462(0x27b)] + _0x265462(_0x463ee3._0x4d20ab) : '';
1493
+ return '##\x20Message\x20History\x20for\x20' + _0x154674[_0x265462(_0x463ee3._0x8c6a6c)] + '\x20(' + _0x154674[_0x265462(_0x463ee3._0x59af90)][_0x265462(_0x463ee3._0x154354)] + '\x20messages)\x0a\x0a' + _0x5d7e21 + _0x59aa8b;
1462
1494
  }
1463
- function formatServerDirectory(_0x2cd617) {
1464
- const _0x464092 = {
1465
- _0x848a11: 0x197,
1466
- _0x2b6dda: 0x2a4,
1467
- _0x37fce3: 0x2a4,
1468
- _0x3a9c0e: 0x2a2,
1469
- _0x52141f: 0x2a1,
1470
- _0x31fb07: 0x1a4
1471
- }, _0x49b50a = _0x36c0a2, _0x2edefd = _0x2cd617[_0x49b50a(_0x464092._0x848a11)][_0x49b50a(0x2a9)] > 0x0 ? _0x2cd617['channels'][_0x49b50a(0x29b)](_0x57b517 => _0x57b517[_0x49b50a(0x26a)] ? _0x49b50a(0x194) + _0x57b517['name'] + _0x49b50a(0x17a) + _0x57b517['description'] : _0x49b50a(0x194) + _0x57b517[_0x49b50a(0x195)])[_0x49b50a(0x2a2)]('\x0a') : _0x49b50a(0x2a1), _0x232378 = _0x2cd617[_0x49b50a(_0x464092._0x2b6dda)]['length'] > 0x0 ? _0x2cd617[_0x49b50a(_0x464092._0x37fce3)][_0x49b50a(0x29b)](_0xaaed6e => '-\x20@' + _0xaaed6e[_0x49b50a(0x195)])[_0x49b50a(_0x464092._0x3a9c0e)]('\x0a') : _0x49b50a(_0x464092._0x52141f), _0x20998e = _0x2cd617[_0x49b50a(0x240)][_0x49b50a(0x2a9)] > 0x0 ? _0x2cd617['humans'][_0x49b50a(0x29b)](_0x8e9cac => _0x49b50a(0x220) + _0x8e9cac[_0x49b50a(0x195)])[_0x49b50a(_0x464092._0x3a9c0e)]('\x0a') : _0x49b50a(0x2a1);
1495
+ function formatServerDirectory(_0x5f4140) {
1496
+ const _0x474c44 = {
1497
+ _0x146096: 0x29b,
1498
+ _0x2677ae: 0x230,
1499
+ _0x3b9732: 0x242,
1500
+ _0x22fff7: 0x2a5,
1501
+ _0x6d3d6: 0x230,
1502
+ _0x28997d: 0x25b,
1503
+ _0x8d786d: 0x325,
1504
+ _0x36b3fb: 0x2b0,
1505
+ _0x164f64: 0x267
1506
+ }, _0x51fcdc = _0x57701d, _0x2a5fed = _0x5f4140[_0x51fcdc(_0x474c44._0x146096)][_0x51fcdc(_0x474c44._0x2677ae)] > 0x0 ? _0x5f4140[_0x51fcdc(0x29b)][_0x51fcdc(_0x474c44._0x3b9732)](_0xe63e9 => _0xe63e9[_0x51fcdc(0x344)] ? _0x51fcdc(0x2ee) + _0xe63e9[_0x51fcdc(0x250)] + '\x20—\x20' + _0xe63e9[_0x51fcdc(0x344)] : '-\x20#' + _0xe63e9[_0x51fcdc(0x250)])[_0x51fcdc(0x2a5)]('\x0a') : '(none)', _0x3a46a5 = _0x5f4140['agents'][_0x51fcdc(0x230)] > 0x0 ? _0x5f4140['agents'][_0x51fcdc(0x242)](_0x500d11 => _0x51fcdc(0x349) + _0x500d11[_0x51fcdc(0x250)])[_0x51fcdc(_0x474c44._0x22fff7)]('\x0a') : '(none)', _0x455eeb = _0x5f4140[_0x51fcdc(0x25b)][_0x51fcdc(_0x474c44._0x6d3d6)] > 0x0 ? _0x5f4140[_0x51fcdc(_0x474c44._0x28997d)][_0x51fcdc(0x242)](_0x331072 => _0x51fcdc(0x349) + _0x331072[_0x51fcdc(0x250)])['join']('\x0a') : _0x51fcdc(_0x474c44._0x8d786d);
1472
1507
  return [
1473
- '##\x20Server:\x20' + _0x2cd617['serverName'],
1508
+ _0x51fcdc(_0x474c44._0x36b3fb) + _0x5f4140[_0x51fcdc(_0x474c44._0x164f64)],
1474
1509
  '',
1475
- _0x49b50a(0x296),
1476
- _0x2edefd,
1510
+ _0x51fcdc(0x2d3),
1511
+ _0x2a5fed,
1477
1512
  '',
1478
- _0x49b50a(0x196),
1479
- _0x232378,
1513
+ '###\x20Agents',
1514
+ _0x3a46a5,
1480
1515
  '',
1481
- _0x49b50a(_0x464092._0x31fb07),
1482
- _0x20998e
1483
- ][_0x49b50a(0x2a2)]('\x0a');
1484
- }
1485
- function formatUploadResult(_0x2bc29d) {
1486
- const _0x46a5d8 = {
1487
- _0x3c9594: 0x2de,
1488
- _0x359777: 0x23f
1489
- }, _0x352909 = _0x36c0a2;
1490
- return _0x352909(0x1ef) + _0x2bc29d[_0x352909(0x1dd)] + '\x20(' + (_0x2bc29d['sizeBytes'] / 0x400)[_0x352909(_0x46a5d8._0x3c9594)](0x1) + _0x352909(_0x46a5d8._0x359777) + _0x2bc29d[_0x352909(0x227)] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
1516
+ '###\x20Humans',
1517
+ _0x455eeb
1518
+ ][_0x51fcdc(0x2a5)]('\x0a');
1491
1519
  }
1492
- function formatViewFileResult(_0x40f2e7, _0x55f5d5) {
1493
- const _0x3e8a7c = _0x36c0a2;
1494
- return _0x55f5d5 ? 'File\x20already\x20cached\x20at:\x20' + _0x40f2e7 : _0x3e8a7c(0x1ba) + _0x40f2e7;
1520
+ function formatUploadResult(_0x23cf43) {
1521
+ const _0xd81280 = {
1522
+ _0x28aa18: 0x372,
1523
+ _0x18d312: 0x214
1524
+ }, _0x3a6b2b = _0x57701d;
1525
+ return _0x3a6b2b(0x360) + _0x23cf43['filename'] + '\x20(' + (_0x23cf43['sizeBytes'] / 0x400)['toFixed'](0x1) + _0x3a6b2b(_0xd81280._0x28aa18) + _0x23cf43[_0x3a6b2b(_0xd81280._0x18d312)] + _0x3a6b2b(0x364);
1495
1526
  }
1496
- function formatTaskList(_0x40b1e1, _0x2b32a2) {
1497
- const _0x41f9f9 = { _0x33d7d2: 0x2a9 }, _0x216fec = {
1498
- _0x5ccd5c: 0x1b9,
1499
- _0x454e79: 0x2a7,
1500
- _0x71990: 0x176,
1501
- _0x3c4f0d: 0x25b,
1502
- _0x2b7bed: 0x26e,
1503
- _0x36c937: 0x2dd
1504
- }, _0x20777b = _0x36c0a2;
1505
- if (_0x40b1e1[_0x20777b(_0x41f9f9._0x33d7d2)] === 0x0)
1506
- return _0x20777b(0x19c);
1507
- return _0x40b1e1[_0x20777b(0x29b)](_0x44e199 => {
1508
- const _0x1ec515 = _0x20777b, _0x251bd2 = _0x44e199['taskNumber'] == null ? _0x1ec515(_0x216fec._0x5ccd5c) : _0x44e199[_0x1ec515(0x2b3)] != null ? '#' + _0x44e199[_0x1ec515(0x2a7)] + '.' + _0x44e199[_0x1ec515(0x2b3)] : '#' + _0x44e199[_0x1ec515(_0x216fec._0x454e79)], _0x4b77b9 = _0x44e199[_0x1ec515(0x176)] ? _0x1ec515(0x27f) + _0x44e199[_0x1ec515(_0x216fec._0x71990)] : '', _0x593ee6 = _0x2b32a2 && _0x44e199[_0x1ec515(0x2a7)] != null && !_0x44e199[_0x1ec515(0x2b3)] && _0x2b32a2[_0x1ec515(0x192)](_0x44e199[_0x1ec515(_0x216fec._0x454e79)]) ? _0x1ec515(0x15c) : '', _0x4191f3 = _0x44e199[_0x1ec515(_0x216fec._0x3c4f0d)] != null && _0x44e199[_0x1ec515(_0x216fec._0x3c4f0d)] > 0x0 ? '\x20(' + (_0x44e199['childrenDone'] ?? 0x0) + '/' + _0x44e199[_0x1ec515(0x25b)] + _0x1ec515(_0x216fec._0x2b7bed) : '';
1509
- return _0x251bd2 + '\x20[' + _0x44e199['status'] + ']\x20' + _0x44e199[_0x1ec515(_0x216fec._0x36c937)] + _0x4191f3 + _0x4b77b9 + _0x593ee6;
1510
- })['join']('\x0a');
1527
+ function formatViewFileResult(_0x42893b, _0x2e49c0) {
1528
+ const _0x44886e = { _0x3aa070: 0x23f }, _0x28320a = _0x57701d;
1529
+ return _0x2e49c0 ? _0x28320a(_0x44886e._0x3aa070) + _0x42893b : 'Downloaded\x20to:\x20' + _0x42893b;
1511
1530
  }
1512
- function formatCreatedTasks(_0x37ac9d) {
1513
- const _0x576ed5 = { _0x38cd72: 0x1a5 }, _0x2de174 = {
1514
- _0xfc76f9: 0x2a7,
1515
- _0x5c48ee: 0x1b9,
1516
- _0x57251c: 0x2b3,
1517
- _0x1daec0: 0x2b3,
1518
- _0x5cf5b5: 0x27f,
1519
- _0x1538e3: 0x2dd
1520
- }, _0x103fa3 = _0x36c0a2;
1521
- if (_0x37ac9d[_0x103fa3(0x2a9)] === 0x0)
1522
- return _0x103fa3(_0x576ed5._0x38cd72);
1523
- return _0x37ac9d[_0x103fa3(0x29b)](_0x106075 => {
1524
- const _0x2f2d61 = _0x103fa3, _0x1b63a0 = _0x106075[_0x2f2d61(_0x2de174._0xfc76f9)] == null ? _0x2f2d61(_0x2de174._0x5c48ee) : _0x106075[_0x2f2d61(_0x2de174._0x57251c)] != null ? '#' + _0x106075[_0x2f2d61(_0x2de174._0xfc76f9)] + '.' + _0x106075[_0x2f2d61(_0x2de174._0x1daec0)] : '#' + _0x106075['taskNumber'], _0xe2d484 = _0x106075[_0x2f2d61(0x176)] ? _0x2f2d61(_0x2de174._0x5cf5b5) + _0x106075[_0x2f2d61(0x176)] : '';
1525
- return _0x1b63a0 + '\x20' + _0x106075[_0x2f2d61(_0x2de174._0x1538e3)] + _0xe2d484;
1526
- })[_0x103fa3(0x2a2)]('\x0a');
1531
+ function formatTaskList(_0x165974, _0x125675) {
1532
+ const _0x3cee9e = { _0x1d94a3: 0x271 }, _0x3fa194 = {
1533
+ _0x5e9ef3: 0x23a,
1534
+ _0x2dde2b: 0x36e,
1535
+ _0x349b30: 0x23a,
1536
+ _0x118a4c: 0x23a,
1537
+ _0x50d7f4: 0x208,
1538
+ _0x10910e: 0x371
1539
+ }, _0xc72e4a = _0x57701d;
1540
+ if (_0x165974['length'] === 0x0)
1541
+ return _0xc72e4a(_0x3cee9e._0x1d94a3);
1542
+ return _0x165974[_0xc72e4a(0x242)](_0x515556 => {
1543
+ const _0x5296ec = _0xc72e4a, _0x26e2b6 = _0x515556[_0x5296ec(0x23a)] == null ? _0x5296ec(0x362) : _0x515556[_0x5296ec(0x369)] != null ? '#' + _0x515556[_0x5296ec(_0x3fa194._0x5e9ef3)] + '.' + _0x515556[_0x5296ec(0x369)] : '#' + _0x515556[_0x5296ec(0x23a)], _0x435986 = _0x515556[_0x5296ec(_0x3fa194._0x2dde2b)] ? '\x20message=' + _0x515556[_0x5296ec(0x36e)] : '', _0x42748f = _0x125675 && _0x515556[_0x5296ec(_0x3fa194._0x349b30)] != null && !_0x515556[_0x5296ec(0x369)] && _0x125675[_0x5296ec(0x266)](_0x515556[_0x5296ec(_0x3fa194._0x118a4c)]) ? _0x5296ec(0x30c) : '', _0x172883 = _0x515556['childrenTotal'] != null && _0x515556[_0x5296ec(_0x3fa194._0x50d7f4)] > 0x0 ? '\x20(' + (_0x515556[_0x5296ec(0x2d4)] ?? 0x0) + '/' + _0x515556[_0x5296ec(_0x3fa194._0x50d7f4)] + _0x5296ec(0x204) : '';
1544
+ return _0x26e2b6 + '\x20[' + _0x515556[_0x5296ec(0x209)] + ']\x20' + _0x515556[_0x5296ec(_0x3fa194._0x10910e)] + _0x172883 + _0x435986 + _0x42748f;
1545
+ })[_0xc72e4a(0x2a5)]('\x0a');
1527
1546
  }
1528
- function formatClaimTaskLabel(_0x5d6cec, _0x478bbc) {
1529
- const _0x2ff9ca = { _0x362641: 0x1b9 }, _0x3b4fcd = _0x36c0a2;
1530
- if (_0x5d6cec == null)
1531
- return _0x3b4fcd(_0x2ff9ca._0x362641);
1532
- return _0x478bbc != null ? '#' + _0x5d6cec + '.' + _0x478bbc : '#' + _0x5d6cec;
1547
+ function formatCreatedTasks(_0x13ab92) {
1548
+ const _0x3d4065 = {
1549
+ _0x219d9b: 0x23a,
1550
+ _0x5d7267: 0x36e,
1551
+ _0x35913b: 0x31e,
1552
+ _0x3f3e2c: 0x371
1553
+ }, _0xc2ca03 = _0x57701d;
1554
+ if (_0x13ab92[_0xc2ca03(0x230)] === 0x0)
1555
+ return 'No\x20tasks\x20created.';
1556
+ return _0x13ab92[_0xc2ca03(0x242)](_0x20dcfe => {
1557
+ const _0x5c0da6 = _0xc2ca03, _0x23ebbc = _0x20dcfe[_0x5c0da6(0x23a)] == null ? '(legacy)' : _0x20dcfe['subtaskNumber'] != null ? '#' + _0x20dcfe[_0x5c0da6(0x23a)] + '.' + _0x20dcfe[_0x5c0da6(0x369)] : '#' + _0x20dcfe[_0x5c0da6(_0x3d4065._0x219d9b)], _0x581859 = _0x20dcfe[_0x5c0da6(_0x3d4065._0x5d7267)] ? _0x5c0da6(_0x3d4065._0x35913b) + _0x20dcfe[_0x5c0da6(0x36e)] : '';
1558
+ return _0x23ebbc + '\x20' + _0x20dcfe[_0x5c0da6(_0x3d4065._0x3f3e2c)] + _0x581859;
1559
+ })['join']('\x0a');
1533
1560
  }
1534
- function _0x2192(_0x43e2d4, _0x13a01d) {
1535
- _0x43e2d4 = _0x43e2d4 - 0x156;
1536
- const _0x7a964d = _0x7a96();
1537
- let _0x219279 = _0x7a964d[_0x43e2d4];
1538
- if (_0x2192['WvPoqJ'] === undefined) {
1539
- var _0xa43de1 = function (_0x48d15f) {
1540
- const _0x1b1146 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
1541
- let _0xb0331c = '', _0x1b00e6 = '';
1542
- for (let _0xc44fd5 = 0x0, _0x36d0ab, _0x160a57, _0x1b79b0 = 0x0; _0x160a57 = _0x48d15f['charAt'](_0x1b79b0++); ~_0x160a57 && (_0x36d0ab = _0xc44fd5 % 0x4 ? _0x36d0ab * 0x40 + _0x160a57 : _0x160a57, _0xc44fd5++ % 0x4) ? _0xb0331c += String['fromCharCode'](0xff & _0x36d0ab >> (-0x2 * _0xc44fd5 & 0x6)) : 0x0) {
1543
- _0x160a57 = _0x1b1146['indexOf'](_0x160a57);
1544
- }
1545
- for (let _0x409283 = 0x0, _0x2f063d = _0xb0331c['length']; _0x409283 < _0x2f063d; _0x409283++) {
1546
- _0x1b00e6 += '%' + ('00' + _0xb0331c['charCodeAt'](_0x409283)['toString'](0x10))['slice'](-0x2);
1547
- }
1548
- return decodeURIComponent(_0x1b00e6);
1549
- };
1550
- _0x2192['EohBxX'] = _0xa43de1, _0x2192['HfamjE'] = {}, _0x2192['WvPoqJ'] = !![];
1551
- }
1552
- const _0x476e8d = _0x7a964d[0x0], _0x1e2f4f = _0x43e2d4 + _0x476e8d, _0x607028 = _0x2192['HfamjE'][_0x1e2f4f];
1553
- return !_0x607028 ? (_0x219279 = _0x2192['EohBxX'](_0x219279), _0x2192['HfamjE'][_0x1e2f4f] = _0x219279) : _0x219279 = _0x607028, _0x219279;
1561
+ function formatClaimTaskLabel(_0x459732, _0x397799) {
1562
+ const _0x4cf5f3 = { _0x424abb: 0x362 }, _0x1fa413 = _0x57701d;
1563
+ if (_0x459732 == null)
1564
+ return _0x1fa413(_0x4cf5f3._0x424abb);
1565
+ return _0x397799 != null ? '#' + _0x459732 + '.' + _0x397799 : '#' + _0x459732;
1554
1566
  }
1555
- function formatClaimTaskResults(_0x2f7217) {
1556
- const _0x412550 = {
1557
- _0x3446ea: 0x29b,
1558
- _0x189d04: 0x2a2
1559
- }, _0x2a7346 = {
1560
- _0x25d15d: 0x27f,
1561
- _0x1adfec: 0x261,
1562
- _0xc2766a: 0x161,
1563
- _0xce93ff: 0x217,
1564
- _0x12ed37: 0x174,
1565
- _0x4912e7: 0x1b6,
1566
- _0x158b86: 0x1e8,
1567
- _0x8c836a: 0x1b6,
1568
- _0x146357: 0x2b3,
1569
- _0x2a9e9a: 0x245
1570
- }, _0x552adc = _0x36c0a2;
1571
- if (_0x2f7217['length'] === 0x0)
1572
- return _0x552adc(0x1d4);
1573
- return _0x2f7217[_0x552adc(_0x412550._0x3446ea)](_0x47d56d => {
1574
- const _0x40e43a = _0x552adc;
1575
- if (_0x47d56d[_0x40e43a(0x1c9)]) {
1576
- const _0x540bbf = formatClaimTaskLabel(_0x47d56d[_0x40e43a(0x2a7)], _0x47d56d['subtaskNumber']), _0xa5c581 = _0x47d56d['messageId'] ? _0x40e43a(_0x2a7346._0x25d15d) + _0x47d56d[_0x40e43a(0x176)] : '';
1577
- if (_0x47d56d[_0x40e43a(0x247)]) {
1578
- const _0x475657 = [
1579
- 'workerHandoff=true',
1580
- _0x47d56d['stopMain'] ? _0x40e43a(_0x2a7346._0x1adfec) : null,
1581
- _0x47d56d[_0x40e43a(0x237)] ? _0x40e43a(0x1a6) + _0x47d56d['executionMode'] : null,
1582
- _0x47d56d[_0x40e43a(_0x2a7346._0xc2766a)] ? _0x40e43a(0x1b3) + _0x47d56d['threadTarget'] : null,
1583
- _0x47d56d[_0x40e43a(_0x2a7346._0xce93ff)] ? _0x40e43a(0x1fc) + _0x47d56d[_0x40e43a(0x217)] : null
1584
- ][_0x40e43a(_0x2a7346._0x12ed37)](Boolean)[_0x40e43a(0x2a2)]('\x20');
1585
- return _0x540bbf + _0x40e43a(_0x2a7346._0x4912e7) + _0xa5c581 + '\x20' + _0x475657 + '\x0a⚠️\x20WORKER\x20ACTIVATED\x20—\x20Stop\x20ALL\x20work\x20on\x20this\x20task\x20immediately.\x20Worker\x20handles\x20execution\x20end-to-end.';
1567
+ function formatClaimTaskResults(_0x2ec1eb) {
1568
+ const _0x38a64 = { _0x23374f: 0x230 }, _0x55fc31 = {
1569
+ _0x2b2608: 0x36e,
1570
+ _0x53fc0d: 0x31e,
1571
+ _0xa0e1e3: 0x2cf,
1572
+ _0x50556e: 0x370,
1573
+ _0x45a695: 0x1fa,
1574
+ _0x354f4d: 0x2cb,
1575
+ _0x22135c: 0x2a8,
1576
+ _0x54366a: 0x2a4,
1577
+ _0xdbd8a7: 0x29f,
1578
+ _0x27e419: 0x1f8,
1579
+ _0x249d56: 0x1f8,
1580
+ _0xefdefc: 0x36c,
1581
+ _0x5098aa: 0x2c3,
1582
+ _0x49a6ef: 0x223,
1583
+ _0x37e61d: 0x29a,
1584
+ _0x42ac41: 0x36c,
1585
+ _0x261664: 0x2f0,
1586
+ _0x4d5061: 0x369,
1587
+ _0xbae477: 0x2d8
1588
+ }, _0x104520 = _0x57701d;
1589
+ if (_0x2ec1eb[_0x104520(_0x38a64._0x23374f)] === 0x0)
1590
+ return _0x104520(0x324);
1591
+ return _0x2ec1eb[_0x104520(0x242)](_0x474d6f => {
1592
+ const _0x73056a = _0x104520;
1593
+ if (_0x474d6f[_0x73056a(0x2b3)]) {
1594
+ const _0x4da281 = formatClaimTaskLabel(_0x474d6f[_0x73056a(0x23a)], _0x474d6f[_0x73056a(0x369)]), _0x2e5da6 = _0x474d6f[_0x73056a(_0x55fc31._0x2b2608)] ? _0x73056a(_0x55fc31._0x53fc0d) + _0x474d6f[_0x73056a(0x36e)] : '';
1595
+ if (_0x474d6f[_0x73056a(0x2e4)]) {
1596
+ const _0x497b0a = [
1597
+ _0x73056a(_0x55fc31._0xa0e1e3),
1598
+ _0x474d6f[_0x73056a(_0x55fc31._0x50556e)] ? _0x73056a(_0x55fc31._0x45a695) : null,
1599
+ _0x474d6f[_0x73056a(_0x55fc31._0x354f4d)] ? _0x73056a(_0x55fc31._0x22135c) + _0x474d6f[_0x73056a(0x2cb)] : null,
1600
+ _0x474d6f['threadTarget'] ? _0x73056a(_0x55fc31._0x54366a) + _0x474d6f[_0x73056a(_0x55fc31._0xdbd8a7)] : null,
1601
+ _0x474d6f[_0x73056a(_0x55fc31._0x27e419)] ? _0x73056a(0x24f) + _0x474d6f[_0x73056a(_0x55fc31._0x249d56)] : null
1602
+ ][_0x73056a(0x337)](Boolean)['join']('\x20');
1603
+ return _0x4da281 + _0x73056a(_0x55fc31._0xefdefc) + _0x2e5da6 + '\x20' + _0x497b0a + _0x73056a(_0x55fc31._0x5098aa);
1586
1604
  }
1587
- const _0x5f150c = _0x47d56d[_0x40e43a(0x1ff)] ? _0x40e43a(_0x2a7346._0x158b86) + _0x47d56d[_0x40e43a(0x1ff)] : '';
1588
- return _0x540bbf + _0x40e43a(_0x2a7346._0x8c836a) + _0xa5c581 + _0x5f150c;
1605
+ if (_0x474d6f[_0x73056a(0x2cb)] === _0x73056a(0x32f))
1606
+ return _0x4da281 + _0x73056a(_0x55fc31._0xefdefc) + _0x2e5da6 + _0x73056a(0x2da);
1607
+ const _0x29f82d = _0x474d6f[_0x73056a(_0x55fc31._0x49a6ef)] ? _0x73056a(_0x55fc31._0x37e61d) + _0x474d6f[_0x73056a(0x223)] : '';
1608
+ return _0x4da281 + _0x73056a(_0x55fc31._0x42ac41) + _0x2e5da6 + _0x29f82d;
1589
1609
  }
1590
- const _0x1399f1 = _0x47d56d['taskNumber'] == null ? _0x47d56d['messageId'] ?? '(unknown)' : formatClaimTaskLabel(_0x47d56d[_0x40e43a(0x2a7)], _0x47d56d[_0x40e43a(_0x2a7346._0x146357)]);
1591
- return _0x1399f1 + _0x40e43a(0x287) + (_0x47d56d[_0x40e43a(_0x2a7346._0x2a9e9a)] ?? _0x40e43a(0x262));
1592
- })[_0x552adc(_0x412550._0x189d04)]('\x0a');
1610
+ const _0x18bc41 = _0x474d6f['taskNumber'] == null ? _0x474d6f['messageId'] ?? _0x73056a(_0x55fc31._0x261664) : formatClaimTaskLabel(_0x474d6f['taskNumber'], _0x474d6f[_0x73056a(_0x55fc31._0x4d5061)]);
1611
+ return _0x18bc41 + _0x73056a(_0x55fc31._0xbae477) + (_0x474d6f[_0x73056a(0x327)] ?? _0x73056a(0x31c));
1612
+ })['join']('\x0a');
1593
1613
  }
1594
- function formatUnclaimTaskResult(_0x1b90c7) {
1595
- const _0x3964d7 = {
1596
- _0x2a69d4: 0x2b3,
1597
- _0x287bb8: 0x2b0
1598
- }, _0x242efd = _0x36c0a2, _0x342e54 = _0x1b90c7['taskNumber'] == null ? '(legacy)' : _0x1b90c7[_0x242efd(_0x3964d7._0x2a69d4)] != null ? '#' + _0x1b90c7['taskNumber'] + '.' + _0x1b90c7[_0x242efd(0x2b3)] : '#' + _0x1b90c7['taskNumber'];
1599
- return _0x342e54 + '\x20status=' + _0x1b90c7[_0x242efd(_0x3964d7._0x287bb8)];
1614
+ function formatUnclaimTaskResult(_0xe40010) {
1615
+ const _0x546ccc = { _0x34811d: 0x362 }, _0x4899bd = _0x57701d, _0x223400 = _0xe40010['taskNumber'] == null ? _0x4899bd(_0x546ccc._0x34811d) : _0xe40010['subtaskNumber'] != null ? '#' + _0xe40010[_0x4899bd(0x23a)] + '.' + _0xe40010[_0x4899bd(0x369)] : '#' + _0xe40010[_0x4899bd(0x23a)];
1616
+ return _0x223400 + _0x4899bd(0x2ca) + _0xe40010[_0x4899bd(0x209)];
1600
1617
  }
1601
- function formatUpdateTaskStatusResult(_0x3e9418) {
1602
- const _0x303877 = {
1603
- _0x38517d: 0x1b9,
1604
- _0x21913a: 0x2b3,
1605
- _0x2538b7: 0x2b0,
1606
- _0x36d746: 0x250,
1607
- _0x5444a5: 0x2b4
1608
- }, _0x2c57de = _0x36c0a2, _0x4bfd64 = _0x3e9418[_0x2c57de(0x2a7)] == null ? _0x2c57de(_0x303877._0x38517d) : _0x3e9418[_0x2c57de(_0x303877._0x21913a)] != null ? '#' + _0x3e9418['taskNumber'] + '.' + _0x3e9418[_0x2c57de(0x2b3)] : '#' + _0x3e9418[_0x2c57de(0x2a7)], _0x2a6418 = _0x4bfd64 + _0x2c57de(0x2b7) + _0x3e9418[_0x2c57de(_0x303877._0x2538b7)];
1609
- if (_0x3e9418[_0x2c57de(0x2b0)] !== _0x2c57de(_0x303877._0x36d746))
1610
- return _0x2a6418;
1611
- return _0x2a6418 + _0x2c57de(_0x303877._0x5444a5);
1618
+ function formatUpdateTaskStatusResult(_0x8d9759) {
1619
+ const _0x7992ae = {
1620
+ _0x468593: 0x369,
1621
+ _0x3b295f: 0x209
1622
+ }, _0x4c890b = _0x57701d, _0x5f579e = _0x8d9759[_0x4c890b(0x23a)] == null ? _0x4c890b(0x362) : _0x8d9759['subtaskNumber'] != null ? '#' + _0x8d9759['taskNumber'] + '.' + _0x8d9759[_0x4c890b(_0x7992ae._0x468593)] : '#' + _0x8d9759['taskNumber'], _0x130f5b = _0x5f579e + _0x4c890b(0x2ca) + _0x8d9759[_0x4c890b(_0x7992ae._0x3b295f)];
1623
+ if (_0x8d9759['status'] !== _0x4c890b(0x233))
1624
+ return _0x130f5b;
1625
+ return _0x130f5b + '\x0aIf\x20your\x20memory\x20or\x20channel\x20rules\x20require\x20review,\x20send\x20a\x20message\x20mentioning\x20the\x20reviewer\x20before\x20parking.';
1612
1626
  }
1613
1627
  function getChatBridgeToolDefinitions() {
1614
- const _0x30b3db = {
1615
- _0x11d5b9: 0x2b9,
1616
- _0x31eb92: 0x1b4,
1617
- _0x28415b: 0x19d,
1618
- _0x2ef95a: 0x234,
1619
- _0x4e7a49: 0x2c9,
1620
- _0x2bf7a1: 0x1ee,
1621
- _0x2a42c4: 0x19e,
1622
- _0x6448b7: 0x272
1623
- }, _0x5ceb9e = _0x36c0a2;
1628
+ const _0x59d6d3 = {
1629
+ _0x1eb239: 0x2b2,
1630
+ _0x46b99a: 0x236,
1631
+ _0x4295c2: 0x275,
1632
+ _0x56b453: 0x203,
1633
+ _0x1eeee: 0x2b7,
1634
+ _0xbd6eda: 0x313,
1635
+ _0x3597ac: 0x2f1
1636
+ }, _0x21fd85 = _0x57701d;
1624
1637
  return [
1625
- { 'name': _0x5ceb9e(0x269) },
1626
- { 'name': _0x5ceb9e(_0x30b3db._0x11d5b9) },
1627
- { 'name': _0x5ceb9e(_0x30b3db._0x31eb92) },
1628
- { 'name': _0x5ceb9e(0x164) },
1629
- { 'name': _0x5ceb9e(_0x30b3db._0x28415b) },
1630
- { 'name': 'view_file' },
1631
- { 'name': _0x5ceb9e(_0x30b3db._0x2ef95a) },
1632
- { 'name': _0x5ceb9e(0x16e) },
1633
- { 'name': 'claim_tasks' },
1634
- { 'name': _0x5ceb9e(_0x30b3db._0x4e7a49) },
1635
- { 'name': _0x5ceb9e(0x2b6) },
1636
- { 'name': _0x5ceb9e(0x190) },
1637
- { 'name': _0x5ceb9e(_0x30b3db._0x2bf7a1) },
1638
- { 'name': _0x5ceb9e(_0x30b3db._0x2a42c4) },
1639
- { 'name': _0x5ceb9e(_0x30b3db._0x6448b7) }
1638
+ { 'name': _0x21fd85(_0x59d6d3._0x1eb239) },
1639
+ { 'name': _0x21fd85(0x274) },
1640
+ { 'name': _0x21fd85(_0x59d6d3._0x46b99a) },
1641
+ { 'name': _0x21fd85(0x219) },
1642
+ { 'name': 'upload_file' },
1643
+ { 'name': _0x21fd85(_0x59d6d3._0x4295c2) },
1644
+ { 'name': _0x21fd85(_0x59d6d3._0x56b453) },
1645
+ { 'name': _0x21fd85(_0x59d6d3._0x1eeee) },
1646
+ { 'name': _0x21fd85(_0x59d6d3._0xbd6eda) },
1647
+ { 'name': _0x21fd85(0x213) },
1648
+ { 'name': _0x21fd85(_0x59d6d3._0x3597ac) },
1649
+ { 'name': 'get_worker_status' },
1650
+ { 'name': _0x21fd85(0x347) },
1651
+ { 'name': _0x21fd85(0x27f) },
1652
+ { 'name': 'mark_waiting_input' }
1640
1653
  ];
1641
1654
  }
1642
- function createChatBridgeHandlers(_0x1ce260) {
1643
- const _0x3adf0a = {
1644
- _0x55ca24: 0x1fd,
1645
- _0x12bdbf: 0x1c0
1646
- }, _0x2f0220 = {
1647
- _0x3cf1b6: 0x2cc,
1648
- _0xd03982: 0x2c1,
1649
- _0x2dba5f: 0x2bc,
1650
- _0x14e0a8: 0x245,
1651
- _0x519361: 0x1be,
1652
- _0x11f0d3: 0x2d4
1653
- }, _0x56cafa = {
1654
- _0x2a44ab: 0x2b1,
1655
- _0x287c0e: 0x2bc,
1656
- _0x4dbb9d: 0x1f7,
1657
- _0x466c03: 0x1be
1658
- }, _0x21525a = {
1659
- _0x137e6d: 0x2cc,
1660
- _0x15f3e5: 0x188,
1661
- _0x3a0559: 0x2bc,
1662
- _0x257831: 0x168,
1663
- _0x48f832: 0x1e0,
1664
- _0x5c29b0: 0x1ad
1665
- }, _0x3d777d = {
1666
- _0x3cae70: 0x2cc,
1667
- _0x393cc5: 0x21b,
1668
- _0x2ea417: 0x2bc,
1669
- _0x3c154d: 0x1e0
1670
- }, _0x248200 = {
1671
- _0x3df43e: 0x1ae,
1672
- _0x23fa0c: 0x165,
1673
- _0x835cd9: 0x1de,
1674
- _0x157f48: 0x25d,
1675
- _0xa9bd60: 0x1c4,
1676
- _0x2b80a4: 0x156
1677
- }, _0x55e472 = { _0x41e084: 0x248 }, _0x48663d = {
1678
- _0x19a8c5: 0x2e0,
1679
- _0x4adf54: 0x229
1680
- }, _0x3c6981 = {
1681
- _0x5b6921: 0x28a,
1682
- _0x5f4be6: 0x186
1683
- }, _0xfef6f5 = {
1684
- _0x6ce088: 0x15d,
1685
- _0x16e733: 0x2a9,
1686
- _0x3e894b: 0x210,
1687
- _0x2a45fc: 0x2a9,
1688
- _0x3b4fa8: 0x18f,
1689
- _0x3df600: 0x29b
1690
- }, _0x4a9cbb = {
1691
- _0x10c025: 0x176,
1692
- _0x450d91: 0x2a7
1693
- }, _0x3b3175 = { _0x4810f9: 0x16e }, _0x4de2f5 = {
1694
- _0x313e6d: 0x165,
1695
- _0x61d379: 0x2c3,
1696
- _0x17a50d: 0x1f7,
1697
- _0xd0b244: 0x2d5,
1698
- _0x42693b: 0x184,
1699
- _0x3289db: 0x260,
1700
- _0x1e40de: 0x184,
1701
- _0x5d1012: 0x189,
1702
- _0x45ea12: 0x208,
1703
- _0x188732: 0x1e6,
1704
- _0x46b714: 0x2a7
1705
- }, _0x3390f1 = { _0x8b2d37: 0x17b }, _0x46d276 = {
1706
- _0x452bff: 0x165,
1707
- _0x45dd92: 0x206
1708
- }, _0xc6ead2 = {
1709
- _0x433a26: 0x165,
1710
- _0x42b669: 0x170
1711
- }, _0xb07ea9 = {
1712
- _0x544b61: 0x1f7,
1713
- _0x363ffc: 0x165,
1714
- _0xcf1f0b: 0x289,
1715
- _0x2d498d: 0x169,
1716
- _0x15c8ab: 0x29d,
1717
- _0x1dd714: 0x29a,
1718
- _0x48f1fe: 0x29d,
1719
- _0x20614b: 0x2a7,
1720
- _0x3a6369: 0x1b9,
1721
- _0x43c055: 0x1f6,
1722
- _0x38d5e7: 0x192,
1723
- _0x52f172: 0x158,
1724
- _0x1121ac: 0x2a2,
1725
- _0x55006e: 0x2cc,
1726
- _0x5d8999: 0x2c5,
1727
- _0x3a2350: 0x2a0,
1728
- _0x21b36b: 0x2b1,
1729
- _0x43c34b: 0x29e,
1730
- _0x3bae91: 0x1e4,
1731
- _0x17d841: 0x1aa,
1732
- _0x33c871: 0x187,
1733
- _0x49822f: 0x200,
1734
- _0x5276c0: 0x25f,
1735
- _0x2d26ce: 0x288,
1736
- _0x26236a: 0x22f
1737
- }, _0xb1c7fe = {
1738
- _0x62c0d3: 0x2cc,
1739
- _0x46b149: 0x1f7,
1740
- _0x48cf69: 0x192,
1741
- _0x316193: 0x1f8,
1742
- _0x2cee00: 0x199
1743
- }, _0x425404 = {
1744
- _0x376012: 0x179,
1745
- _0x575ae1: 0x184,
1746
- _0x4f073a: 0x199
1747
- }, _0x37232c = {
1748
- _0x2696af: 0x1f7,
1749
- _0x223696: 0x26b,
1750
- _0xf96421: 0x2e0,
1751
- _0xcc3774: 0x257,
1752
- _0x49ef19: 0x1f6,
1753
- _0x33fe24: 0x26d,
1754
- _0x5584fd: 0x1f6,
1755
- _0x4e149a: 0x176,
1756
- _0x3e94df: 0x165,
1757
- _0x28fe31: 0x206,
1758
- _0x43b880: 0x208,
1759
- _0x369486: 0x2a7,
1760
- _0x5cced9: 0x1e3,
1761
- _0x4f3152: 0x176,
1762
- _0x9dd585: 0x189,
1763
- _0x435b2e: 0x258,
1764
- _0x1c5186: 0x24e,
1765
- _0x196eca: 0x176,
1766
- _0x4d9d9d: 0x2a2,
1767
- _0x32b910: 0x2c5,
1768
- _0x33a7e6: 0x2e1,
1769
- _0x49f59b: 0x252,
1770
- _0x599d00: 0x1be,
1771
- _0x47377b: 0x187
1772
- }, _0x496c13 = {
1773
- _0x1dbbe3: 0x23e,
1774
- _0x308480: 0x24a
1775
- }, _0x275c84 = _0x36c0a2;
1776
- function _0x3c900c(_0x20ec3f, _0x2ff1d8) {
1777
- const _0x364cf8 = _0x2192;
1778
- if (!_0x1ce260[_0x364cf8(0x284)])
1655
+ function createChatBridgeHandlers(_0x41641c) {
1656
+ const _0x2d7cb7 = {
1657
+ _0x34e159: 0x2d5,
1658
+ _0x3bd65d: 0x36d
1659
+ }, _0x2826a1 = {
1660
+ _0x196a87: 0x2a9,
1661
+ _0x438e2d: 0x356,
1662
+ _0x52c5f4: 0x277,
1663
+ _0x4cb568: 0x298,
1664
+ _0x5edcb8: 0x26f,
1665
+ _0x3cfc32: 0x327,
1666
+ _0x8c1b45: 0x2d2
1667
+ }, _0x131db4 = {
1668
+ _0x42a42f: 0x2a9,
1669
+ _0xc22649: 0x31f,
1670
+ _0x55e2a7: 0x32e,
1671
+ _0x3a7e94: 0x26f,
1672
+ _0x2c08d9: 0x284,
1673
+ _0x302788: 0x28d
1674
+ }, _0x19485d = {
1675
+ _0x104339: 0x2a9,
1676
+ _0x29af33: 0x356,
1677
+ _0x5b923a: 0x21b,
1678
+ _0x5978e4: 0x284,
1679
+ _0x5ea861: 0x30e,
1680
+ _0x166f56: 0x2f7
1681
+ }, _0x2ce538 = {
1682
+ _0x171287: 0x2a9,
1683
+ _0xacbe53: 0x1fb,
1684
+ _0x2292eb: 0x2f7,
1685
+ _0x517ef3: 0x246,
1686
+ _0x5a2086: 0x2f7,
1687
+ _0x426d96: 0x207,
1688
+ _0xf4ea80: 0x209
1689
+ }, _0x300baf = {
1690
+ _0x2237a9: 0x33b,
1691
+ _0xb7c6dd: 0x21d,
1692
+ _0x3af698: 0x1fd,
1693
+ _0x21d3e1: 0x2ec,
1694
+ _0x1fde1a: 0x27c
1695
+ }, _0xb89041 = {
1696
+ _0x561f99: 0x326,
1697
+ _0x139f83: 0x367,
1698
+ _0x42a612: 0x330
1699
+ }, _0x5b1cbc = {
1700
+ _0x4a095b: 0x2f1,
1701
+ _0x547bfe: 0x330,
1702
+ _0x527a66: 0x290,
1703
+ _0x2f7da1: 0x25d
1704
+ }, _0x46c4ee = {
1705
+ _0x4e711c: 0x213,
1706
+ _0x466ce9: 0x330
1707
+ }, _0x480baf = {
1708
+ _0x57f487: 0x330,
1709
+ _0x567633: 0x288,
1710
+ _0x560ca1: 0x377,
1711
+ _0x570300: 0x2e1,
1712
+ _0x5cb94e: 0x242
1713
+ }, _0x532d32 = {
1714
+ _0x220404: 0x2a9,
1715
+ _0xa028fe: 0x376,
1716
+ _0x33dc73: 0x2a9,
1717
+ _0xe88e5c: 0x376,
1718
+ _0x2b86dc: 0x284,
1719
+ _0x84ce90: 0x1f9,
1720
+ _0x41c010: 0x209,
1721
+ _0x3fb0d5: 0x2c9,
1722
+ _0x18c047: 0x343,
1723
+ _0x6d440a: 0x2c9,
1724
+ _0x440a49: 0x2c7,
1725
+ _0x1f89d0: 0x32d,
1726
+ _0x311880: 0x342
1727
+ }, _0x3cc4c5 = { _0x4c042e: 0x334 }, _0x28be05 = { _0x2fc9e0: 0x290 }, _0x397f9e = {
1728
+ _0x8de20: 0x2a9,
1729
+ _0x9d5e27: 0x24a,
1730
+ _0x2fe9a1: 0x2e5,
1731
+ _0x27926b: 0x23a,
1732
+ _0x4042c5: 0x303,
1733
+ _0x2055ef: 0x374,
1734
+ _0x4f4ac9: 0x1f5,
1735
+ _0x44bb5f: 0x34d,
1736
+ _0x545ddf: 0x200,
1737
+ _0x2211cc: 0x314,
1738
+ _0x6d2602: 0x259,
1739
+ _0x4bbe75: 0x251,
1740
+ _0x4387d2: 0x2dc,
1741
+ _0x487cb5: 0x34f,
1742
+ _0x7d8f12: 0x1f2,
1743
+ _0x2a5d46: 0x28c,
1744
+ _0x589138: 0x290
1745
+ }, _0x143d95 = {
1746
+ _0x5a8dfc: 0x2b6,
1747
+ _0x30c37d: 0x2c9
1748
+ }, _0x1c96f3 = {
1749
+ _0x28fee3: 0x2a9,
1750
+ _0x15ccf1: 0x376,
1751
+ _0x28b8f4: 0x300,
1752
+ _0x4e3c44: 0x232
1753
+ }, _0x1b5659 = {
1754
+ _0x2cfe17: 0x2a9,
1755
+ _0x2c0853: 0x28e,
1756
+ _0x18f800: 0x33e,
1757
+ _0x5c8bb6: 0x283,
1758
+ _0x5d2394: 0x23a,
1759
+ _0x5d9e3d: 0x362,
1760
+ _0x9b399d: 0x32f,
1761
+ _0x693564: 0x238,
1762
+ _0x32ce50: 0x303,
1763
+ _0x2f3622: 0x290,
1764
+ _0x3ad4b0: 0x287,
1765
+ _0x25c7ae: 0x2fa,
1766
+ _0x2eaa96: 0x2f2,
1767
+ _0xe3765a: 0x314,
1768
+ _0x5dba27: 0x294,
1769
+ _0x2b0451: 0x2a5,
1770
+ _0x4db4db: 0x376,
1771
+ _0x4ba1b8: 0x259,
1772
+ _0x42eda5: 0x23a,
1773
+ _0x27c261: 0x284,
1774
+ _0x4bb9ad: 0x31b,
1775
+ _0x274e40: 0x34f,
1776
+ _0x5729ce: 0x1f2,
1777
+ _0x39d147: 0x20b
1778
+ }, _0x39460e = {
1779
+ _0x1a9ae7: 0x268,
1780
+ _0x4e8c53: 0x2e2,
1781
+ _0x2680b6: 0x35c
1782
+ }, _0x4133d2 = _0x57701d;
1783
+ function _0x33ecd8(_0x247eec, _0x231858) {
1784
+ const _0x13b1fd = _0x3fa9;
1785
+ if (!_0x41641c['workerMode'])
1779
1786
  return;
1780
- if (!_0x1ce260[_0x364cf8(_0x496c13._0x1dbbe3)])
1781
- throw new Error(_0x20ec3f + _0x364cf8(0x1c1));
1782
- if (_0x2ff1d8 !== _0x1ce260[_0x364cf8(0x23e)])
1783
- throw new Error(_0x20ec3f + _0x364cf8(_0x496c13._0x308480) + _0x1ce260['workerThreadTarget'] + _0x364cf8(0x281) + _0x2ff1d8);
1787
+ if (!_0x41641c[_0x13b1fd(0x2e2)])
1788
+ throw new Error(_0x247eec + _0x13b1fd(_0x39460e._0x1a9ae7));
1789
+ if (_0x231858 !== _0x41641c[_0x13b1fd(_0x39460e._0x4e8c53)])
1790
+ throw new Error(_0x247eec + _0x13b1fd(_0x39460e._0x2680b6) + _0x41641c[_0x13b1fd(0x2e2)] + _0x13b1fd(0x24d) + _0x231858);
1784
1791
  }
1785
- async function _0x535737(_0x15a3ae) {
1786
- const _0x49377c = _0x2192;
1787
- if (!_0x1ce260['daemonLocalUrl'] || !_0x1ce260[_0x49377c(_0x37232c._0x2696af)] || _0x1ce260['workerMode'] || _0x1ce260[_0x49377c(_0x37232c._0x223696)] !== !![])
1792
+ async function _0x29cbca(_0x55528a) {
1793
+ const _0x599d53 = _0x3fa9;
1794
+ if (!_0x41641c[_0x599d53(_0x1b5659._0x2cfe17)] || !_0x41641c['agentId'] || _0x41641c[_0x599d53(_0x1b5659._0x2c0853)] || _0x41641c[_0x599d53(_0x1b5659._0x18f800)] !== !![])
1788
1795
  return null;
1789
- const _0x2ca86c = parseTarget(_0x15a3ae[_0x49377c(_0x37232c._0xf96421)]);
1790
- if (_0x2ca86c[_0x49377c(_0x37232c._0xcc3774)] !== _0x49377c(0x2e0))
1796
+ const _0x4a7e76 = parseTarget(_0x55528a['channel']);
1797
+ if (_0x4a7e76[_0x599d53(_0x1b5659._0x5c8bb6)] !== 'channel')
1791
1798
  return null;
1792
- const _0x4dce3c = _0x15a3ae[_0x49377c(_0x37232c._0x49ef19)] != null ? _0x2ca86c[_0x49377c(_0x37232c._0x33fe24)] + ':t' + _0x15a3ae[_0x49377c(_0x37232c._0x5584fd)] : _0x2ca86c['channelTarget'] + ':' + _0x15a3ae[_0x49377c(_0x37232c._0x4e149a)];
1793
- let _0x5c321e;
1799
+ if (_0x55528a['executionMode'] === 'main') {
1800
+ const _0x1f18da = _0x55528a[_0x599d53(_0x1b5659._0x5d2394)] == null ? _0x599d53(_0x1b5659._0x5d9e3d) : '#' + _0x55528a[_0x599d53(0x23a)];
1801
+ return {
1802
+ 'executionMode': _0x599d53(_0x1b5659._0x9b399d),
1803
+ 'stopMain': ![],
1804
+ 'workerHandoff': ![],
1805
+ 'workerHandoffError': _0x599d53(0x2fb) + _0x1f18da + _0x599d53(_0x1b5659._0x693564)
1806
+ };
1807
+ }
1808
+ const _0x119a0e = _0x55528a[_0x599d53(_0x1b5659._0x32ce50)] != null ? _0x4a7e76[_0x599d53(0x317)] + ':t' + _0x55528a[_0x599d53(0x303)] : _0x4a7e76[_0x599d53(0x317)] + ':' + _0x55528a[_0x599d53(0x36e)];
1809
+ let _0x305d24;
1794
1810
  try {
1795
- const _0x4a20a2 = await _0x1ce260[_0x49377c(_0x37232c._0x3e94df)][_0x49377c(_0x37232c._0x28fe31)]({
1796
- 'channel': _0x4dce3c,
1811
+ const _0x5e0447 = await _0x41641c[_0x599d53(_0x1b5659._0x2f3622)]['readHistory']({
1812
+ 'channel': _0x119a0e,
1797
1813
  'limit': 0x14
1798
1814
  });
1799
- _0x5c321e = _0x4a20a2['messages'][_0x49377c(_0x37232c._0x43b880)](_0xecfabc => _0xecfabc[_0x49377c(0x176)] === _0x15a3ae[_0x49377c(0x176)]);
1815
+ _0x305d24 = _0x5e0447['messages'][_0x599d53(0x2c7)](_0x553360 => _0x553360[_0x599d53(0x36e)] === _0x55528a[_0x599d53(0x36e)]);
1800
1816
  } catch {
1801
- _0x5c321e = void 0x0;
1817
+ _0x305d24 = void 0x0;
1802
1818
  }
1803
- const _0x2458ad = _0x15a3ae[_0x49377c(_0x37232c._0x369486)] == null ? '(legacy)' : '#' + _0x15a3ae[_0x49377c(0x2a7)], _0x3ae4ec = [
1804
- _0x49377c(_0x37232c._0x5cced9) + _0x4dce3c + '\x20msg=' + _0x15a3ae[_0x49377c(_0x37232c._0x4f3152)][_0x49377c(_0x37232c._0x9dd585)](0x0, 0x8) + _0x49377c(_0x37232c._0x435b2e) + new Date()['toISOString']() + _0x49377c(0x1b0) + _0x2458ad + _0x49377c(_0x37232c._0x1c5186),
1819
+ const _0x56d45d = _0x55528a[_0x599d53(_0x1b5659._0x5d2394)] == null ? '(legacy)' : '#' + _0x55528a[_0x599d53(0x23a)], _0x1452e6 = [
1820
+ _0x599d53(0x348) + _0x119a0e + _0x599d53(_0x1b5659._0x3ad4b0) + _0x55528a[_0x599d53(0x36e)][_0x599d53(0x29d)](0x0, 0x8) + _0x599d53(0x29e) + new Date()[_0x599d53(_0x1b5659._0x25c7ae)]() + _0x599d53(0x305) + _0x56d45d + _0x599d53(0x2f4),
1805
1821
  '',
1806
- _0x5c321e ? _0x49377c(0x20f) + _0x5c321e[_0x49377c(0x25f)] : _0x49377c(0x256) + _0x15a3ae[_0x49377c(_0x37232c._0x196eca)],
1822
+ _0x305d24 ? _0x599d53(_0x1b5659._0x2eaa96) + _0x305d24[_0x599d53(_0x1b5659._0xe3765a)] : 'Root\x20task\x20message\x20id:\x20' + _0x55528a['messageId'],
1807
1823
  '',
1808
- _0x49377c(0x1e1) + _0x4dce3c,
1809
- _0x49377c(0x29f)
1810
- ][_0x49377c(_0x37232c._0x4d9d9d)]('\x0a'), _0x5d1c17 = await fetch(_0x1ce260['daemonLocalUrl'] + _0x49377c(_0x37232c._0x32b910), {
1824
+ _0x599d53(_0x1b5659._0x5dba27) + _0x119a0e,
1825
+ _0x599d53(0x285)
1826
+ ][_0x599d53(_0x1b5659._0x2b0451)]('\x0a'), _0x299d89 = await fetch(_0x41641c[_0x599d53(_0x1b5659._0x2cfe17)] + '/workers/deliver', {
1811
1827
  'method': 'POST',
1812
- 'headers': { 'Content-Type': 'application/json' },
1813
- 'body': JSON['stringify']({
1814
- 'agent_id': _0x1ce260[_0x49377c(_0x37232c._0x2696af)],
1815
- 'thread_target': _0x4dce3c,
1828
+ 'headers': { 'Content-Type': _0x599d53(0x298) },
1829
+ 'body': JSON[_0x599d53(0x26f)]({
1830
+ 'agent_id': _0x41641c[_0x599d53(_0x1b5659._0x4db4db)],
1831
+ 'thread_target': _0x119a0e,
1816
1832
  'spawn_packet': {
1817
- 'replyTarget': _0x4dce3c,
1818
- ..._0x15a3ae[_0x49377c(0x158)] ? { 'taskId': _0x15a3ae[_0x49377c(0x158)] } : _0x15a3ae[_0x49377c(_0x37232c._0x369486)] != null ? { 'taskId': _0x49377c(_0x37232c._0x33a7e6) + _0x15a3ae[_0x49377c(_0x37232c._0x369486)] } : {}
1833
+ 'replyTarget': _0x119a0e,
1834
+ ..._0x55528a[_0x599d53(_0x1b5659._0x4ba1b8)] ? { 'taskId': _0x55528a[_0x599d53(_0x1b5659._0x4ba1b8)] } : _0x55528a[_0x599d53(_0x1b5659._0x42eda5)] != null ? { 'taskId': _0x599d53(0x2e7) + _0x55528a['taskNumber'] } : {}
1819
1835
  },
1820
1836
  'payload': {
1821
- 'mode': _0x49377c(_0x37232c._0x49f59b),
1822
- 'text': _0x3ae4ec
1837
+ 'mode': 'user',
1838
+ 'text': _0x1452e6
1823
1839
  }
1824
1840
  })
1825
- }), _0x43ea44 = await _0x5d1c17[_0x49377c(_0x37232c._0x599d00)]();
1826
- if (!_0x43ea44['ok'])
1827
- throw new Error(_0x43ea44[_0x49377c(0x2d4)] ?? _0x49377c(0x228));
1841
+ }), _0x5d3c98 = await _0x299d89[_0x599d53(_0x1b5659._0x27c261)]();
1842
+ if (!_0x5d3c98['ok'])
1843
+ throw new Error(_0x5d3c98['error'] ?? _0x599d53(_0x1b5659._0x4bb9ad));
1828
1844
  return {
1829
1845
  'stopMain': !![],
1830
- 'threadTarget': _0x4dce3c,
1831
- 'workerDisposition': _0x43ea44['disposition'] === _0x49377c(_0x37232c._0x47377b) ? _0x49377c(0x187) : 'started',
1846
+ 'threadTarget': _0x119a0e,
1847
+ 'workerDisposition': _0x5d3c98[_0x599d53(_0x1b5659._0x274e40)] === _0x599d53(_0x1b5659._0x5729ce) ? 'queued' : _0x599d53(0x28c),
1832
1848
  'workerHandoff': !![],
1833
- 'workerSessionId': _0x43ea44['worker_session_id'] ?? '',
1834
- 'executionMode': _0x49377c(0x1f0)
1849
+ 'workerSessionId': _0x5d3c98['worker_session_id'] ?? '',
1850
+ 'executionMode': _0x599d53(_0x1b5659._0x39d147)
1835
1851
  };
1836
1852
  }
1837
- async function _0x1ffd3e() {
1838
- const _0x5a11f5 = _0x2192;
1839
- if (!_0x1ce260[_0x5a11f5(0x2cc)] || !_0x1ce260['agentId'] || _0x1ce260[_0x5a11f5(0x284)])
1853
+ async function _0x4a7343() {
1854
+ const _0xad431a = _0x3fa9;
1855
+ if (!_0x41641c[_0xad431a(_0x1c96f3._0x28fee3)] || !_0x41641c['agentId'] || _0x41641c[_0xad431a(0x28e)])
1840
1856
  return null;
1841
1857
  try {
1842
- const _0x3c691b = await fetch(_0x1ce260[_0x5a11f5(0x2cc)] + '/workers/list?agent_id=' + encodeURIComponent(_0x1ce260[_0x5a11f5(0x1f7)])), _0x3a97fb = await _0x3c691b[_0x5a11f5(0x1be)]();
1843
- if (!_0x3a97fb['ok'])
1858
+ const _0x2380b1 = await fetch(_0x41641c[_0xad431a(0x2a9)] + '/workers/list?agent_id=' + encodeURIComponent(_0x41641c[_0xad431a(_0x1c96f3._0x15ccf1)])), _0x2833da = await _0x2380b1['json']();
1859
+ if (!_0x2833da['ok'])
1844
1860
  return null;
1845
- const _0x15ae65 = new Set();
1846
- for (const _0x58f0fd of _0x3a97fb[_0x5a11f5(_0x425404._0x376012)]) {
1847
- _0x58f0fd['status'] !== 'destroyed' && _0x58f0fd[_0x5a11f5(_0x425404._0x575ae1)] && _0x15ae65[_0x5a11f5(0x1f8)](_0x58f0fd['thread_target']);
1861
+ const _0x4da580 = new Set();
1862
+ for (const _0x28f4e6 of _0x2833da[_0xad431a(0x1f9)]) {
1863
+ _0x28f4e6[_0xad431a(0x209)] !== _0xad431a(_0x1c96f3._0x28b8f4) && _0x28f4e6[_0xad431a(0x2c9)] && _0x4da580[_0xad431a(_0x1c96f3._0x4e3c44)](_0x28f4e6[_0xad431a(0x2c9)]);
1848
1864
  }
1849
- return _0x15ae65[_0x5a11f5(_0x425404._0x4f073a)] > 0x0 ? _0x15ae65 : null;
1865
+ return _0x4da580[_0xad431a(0x2bb)] > 0x0 ? _0x4da580 : null;
1850
1866
  } catch {
1851
1867
  return null;
1852
1868
  }
1853
1869
  }
1854
- const _0x1bda11 = new Set([
1855
- _0x275c84(_0x3adf0a._0x55ca24),
1856
- _0x275c84(_0x3adf0a._0x12bdbf),
1857
- 'waiting_input'
1870
+ const _0x2287ab = new Set([
1871
+ _0x4133d2(_0x2d7cb7._0x34e159),
1872
+ 'idle',
1873
+ _0x4133d2(_0x2d7cb7._0x3bd65d)
1858
1874
  ]);
1859
- async function _0xc7ba4c() {
1860
- const _0x30077e = _0x275c84;
1861
- if (!_0x1ce260['daemonLocalUrl'] || !_0x1ce260['agentId'] || _0x1ce260['workerMode'])
1875
+ async function _0x1402d3() {
1876
+ const _0x290968 = _0x4133d2;
1877
+ if (!_0x41641c[_0x290968(0x2a9)] || !_0x41641c[_0x290968(0x376)] || _0x41641c['workerMode'])
1862
1878
  return null;
1863
1879
  try {
1864
- const _0x33f13c = await fetch(_0x1ce260[_0x30077e(_0xb1c7fe._0x62c0d3)] + _0x30077e(0x1d5) + encodeURIComponent(_0x1ce260[_0x30077e(_0xb1c7fe._0x46b149)])), _0x294eb7 = await _0x33f13c[_0x30077e(0x1be)]();
1865
- if (!_0x294eb7['ok'])
1880
+ const _0x32bf51 = await fetch(_0x41641c['daemonLocalUrl'] + _0x290968(_0x143d95._0x5a8dfc) + encodeURIComponent(_0x41641c[_0x290968(0x376)])), _0x544d52 = await _0x32bf51[_0x290968(0x284)]();
1881
+ if (!_0x544d52['ok'])
1866
1882
  return null;
1867
- const _0x5c4d65 = new Set();
1868
- for (const _0x4227a0 of _0x294eb7[_0x30077e(0x179)]) {
1869
- _0x1bda11[_0x30077e(_0xb1c7fe._0x48cf69)](_0x4227a0[_0x30077e(0x2b0)]) && _0x4227a0[_0x30077e(0x184)] && _0x5c4d65[_0x30077e(_0xb1c7fe._0x316193)](_0x4227a0['thread_target']);
1883
+ const _0x5c2358 = new Set();
1884
+ for (const _0x18616c of _0x544d52[_0x290968(0x1f9)]) {
1885
+ _0x2287ab[_0x290968(0x266)](_0x18616c[_0x290968(0x209)]) && _0x18616c[_0x290968(_0x143d95._0x30c37d)] && _0x5c2358[_0x290968(0x232)](_0x18616c['thread_target']);
1870
1886
  }
1871
- return _0x5c4d65[_0x30077e(_0xb1c7fe._0x2cee00)] > 0x0 ? _0x5c4d65 : null;
1887
+ return _0x5c2358['size'] > 0x0 ? _0x5c2358 : null;
1872
1888
  } catch {
1873
1889
  return null;
1874
1890
  }
1875
1891
  }
1876
1892
  return {
1877
- async 'send_message'(_0x3a60be) {
1878
- const _0x411cda = _0x275c84;
1879
- if (!_0x1ce260['workerMode'] && _0x1ce260[_0x411cda(0x26b)] && _0x1ce260[_0x411cda(0x2cc)] && _0x1ce260[_0x411cda(_0xb07ea9._0x544b61)]) {
1880
- const _0x5b439f = await _0x1ce260[_0x411cda(_0xb07ea9._0x363ffc)][_0x411cda(_0xb07ea9._0xcf1f0b)](_0x3a60be[_0x411cda(_0xb07ea9._0x2d498d)]);
1881
- if (_0x5b439f[_0x411cda(_0xb07ea9._0x15c8ab)] && _0x5b439f[_0x411cda(_0xb07ea9._0x1dd714)]) {
1882
- const _0x107fa8 = _0x5b439f[_0x411cda(_0xb07ea9._0x48f1fe)]['taskNumber'] != null ? '#' + _0x5b439f['task'][_0x411cda(_0xb07ea9._0x20614b)] : _0x411cda(_0xb07ea9._0x3a6369), _0x1aab35 = _0x5b439f[_0x411cda(_0xb07ea9._0x43c055)] != null ? _0x5b439f['target'] + ':t' + _0x5b439f['threadNumber'] : _0x5b439f[_0x411cda(_0xb07ea9._0x2d498d)] + ':' + _0x5b439f['threadId']['slice'](0x0, 0x8), _0x392543 = await _0xc7ba4c();
1883
- if (_0x392543?.[_0x411cda(_0xb07ea9._0x38d5e7)](_0x1aab35))
1893
+ async 'send_message'(_0x3ee5f1) {
1894
+ const _0x2c5e5b = _0x4133d2;
1895
+ if (!_0x41641c[_0x2c5e5b(0x28e)] && _0x41641c[_0x2c5e5b(0x33e)] && _0x41641c[_0x2c5e5b(_0x397f9e._0x8de20)] && _0x41641c[_0x2c5e5b(0x376)]) {
1896
+ const _0x324204 = await _0x41641c[_0x2c5e5b(0x290)]['resolveTarget'](_0x3ee5f1[_0x2c5e5b(0x336)]);
1897
+ if (_0x324204[_0x2c5e5b(_0x397f9e._0x9d5e27)] && _0x324204[_0x2c5e5b(_0x397f9e._0x2fe9a1)]) {
1898
+ const _0x21b0e5 = _0x324204[_0x2c5e5b(0x24a)][_0x2c5e5b(_0x397f9e._0x27926b)] != null ? '#' + _0x324204[_0x2c5e5b(0x24a)][_0x2c5e5b(0x23a)] : _0x2c5e5b(0x362), _0x5760c1 = _0x324204[_0x2c5e5b(_0x397f9e._0x4042c5)] != null ? _0x324204[_0x2c5e5b(0x336)] + ':t' + _0x324204['threadNumber'] : _0x324204[_0x2c5e5b(0x336)] + ':' + _0x324204[_0x2c5e5b(_0x397f9e._0x2fe9a1)][_0x2c5e5b(0x29d)](0x0, 0x8), _0x3b8183 = await _0x1402d3();
1899
+ if (_0x3b8183?.[_0x2c5e5b(0x266)](_0x5760c1))
1884
1900
  return [
1885
- _0x411cda(0x273) + _0x107fa8 + '\x20in\x20' + _0x1aab35 + _0x411cda(0x198),
1886
- _0x411cda(0x1ca)
1887
- ][_0x411cda(0x2a2)]('\x0a');
1888
- const _0x19c9de = [
1889
- '[target=' + _0x1aab35 + '\x20msg=handoff\x20time=' + new Date()[_0x411cda(0x27e)]() + _0x411cda(0x2bd),
1901
+ _0x2c5e5b(_0x397f9e._0x2055ef) + _0x21b0e5 + _0x2c5e5b(0x220) + _0x5760c1 + _0x2c5e5b(_0x397f9e._0x4f4ac9),
1902
+ 'Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread\x20—\x20the\x20worker\x20is\x20handling\x20it.'
1903
+ ]['join']('\x0a');
1904
+ const _0x3df0b9 = [
1905
+ _0x2c5e5b(0x348) + _0x5760c1 + _0x2c5e5b(_0x397f9e._0x44bb5f) + new Date()['toISOString']() + _0x2c5e5b(_0x397f9e._0x545ddf),
1890
1906
  '',
1891
- _0x411cda(0x1af) + _0x3a60be[_0x411cda(0x25f)],
1892
- 'Task:\x20' + _0x107fa8 + '\x20(' + _0x5b439f['task'][_0x411cda(_0xb07ea9._0x52f172)] + ')',
1893
- 'Thread\x20target:\x20' + _0x1aab35,
1907
+ _0x2c5e5b(0x289) + _0x3ee5f1[_0x2c5e5b(_0x397f9e._0x2211cc)],
1908
+ _0x2c5e5b(0x373) + _0x21b0e5 + '\x20(' + _0x324204[_0x2c5e5b(0x24a)][_0x2c5e5b(_0x397f9e._0x6d2602)] + ')',
1909
+ _0x2c5e5b(0x294) + _0x5760c1,
1894
1910
  'Read\x20thread\x20history\x20before\x20taking\x20action.\x20Do\x20not\x20echo\x20this\x20message\x20to\x20the\x20thread.'
1895
- ][_0x411cda(_0xb07ea9._0x1121ac)]('\x0a'), _0x1688aa = await fetch(_0x1ce260[_0x411cda(_0xb07ea9._0x55006e)] + _0x411cda(_0xb07ea9._0x5d8999), {
1896
- 'method': _0x411cda(_0xb07ea9._0x3a2350),
1897
- 'headers': { 'Content-Type': _0x411cda(_0xb07ea9._0x21b36b) },
1898
- 'body': JSON[_0x411cda(_0xb07ea9._0x43c34b)]({
1899
- 'agent_id': _0x1ce260[_0x411cda(0x1f7)],
1900
- 'thread_target': _0x1aab35,
1911
+ ]['join']('\x0a'), _0x3d4ed7 = await fetch(_0x41641c[_0x2c5e5b(0x2a9)] + _0x2c5e5b(_0x397f9e._0x4bbe75), {
1912
+ 'method': _0x2c5e5b(0x21b),
1913
+ 'headers': { 'Content-Type': _0x2c5e5b(0x298) },
1914
+ 'body': JSON['stringify']({
1915
+ 'agent_id': _0x41641c['agentId'],
1916
+ 'thread_target': _0x5760c1,
1901
1917
  'spawn_packet': {
1902
- 'replyTarget': _0x1aab35,
1903
- 'taskId': _0x5b439f[_0x411cda(0x29d)][_0x411cda(0x158)]
1918
+ 'replyTarget': _0x5760c1,
1919
+ 'taskId': _0x324204[_0x2c5e5b(_0x397f9e._0x9d5e27)][_0x2c5e5b(0x259)]
1904
1920
  },
1905
1921
  'payload': {
1906
1922
  'mode': 'user',
1907
- 'text': _0x19c9de
1923
+ 'text': _0x3df0b9
1908
1924
  }
1909
1925
  })
1910
- }), _0x564354 = await _0x1688aa['json']();
1911
- if (!_0x564354['ok'])
1912
- throw new Error(_0x564354[_0x411cda(0x2d4)] ?? _0x411cda(_0xb07ea9._0x3bae91));
1926
+ }), _0x3da698 = await _0x3d4ed7[_0x2c5e5b(0x284)]();
1927
+ if (!_0x3da698['ok'])
1928
+ throw new Error(_0x3da698[_0x2c5e5b(0x30e)] ?? _0x2c5e5b(_0x397f9e._0x4387d2));
1913
1929
  return [
1914
- 'Handoff\x20to\x20worker\x20for\x20task\x20' + _0x107fa8 + '\x20in\x20' + _0x1aab35 + '.\x20stopMain=true\x20executionMode=worker',
1915
- 'Worker\x20' + (_0x564354[_0x411cda(_0xb07ea9._0x17d841)] === _0x411cda(_0xb07ea9._0x33c871) ? _0x411cda(0x187) : _0x411cda(_0xb07ea9._0x49822f)) + '.',
1916
- _0x411cda(0x25e)
1917
- ][_0x411cda(0x2a2)]('\x0a');
1930
+ 'Handoff\x20to\x20worker\x20for\x20task\x20' + _0x21b0e5 + '\x20in\x20' + _0x5760c1 + _0x2c5e5b(0x24e),
1931
+ _0x2c5e5b(0x2eb) + (_0x3da698[_0x2c5e5b(_0x397f9e._0x487cb5)] === _0x2c5e5b(0x1f2) ? _0x2c5e5b(_0x397f9e._0x7d8f12) : _0x2c5e5b(_0x397f9e._0x2a5d46)) + '.',
1932
+ _0x2c5e5b(0x2c8)
1933
+ ][_0x2c5e5b(0x2a5)]('\x0a');
1918
1934
  }
1919
1935
  }
1920
- const _0x387362 = await _0x1ce260[_0x411cda(0x165)][_0x411cda(0x19b)]({
1921
- 'attachmentIds': _0x3a60be[_0x411cda(0x27a)],
1922
- 'content': _0x3a60be[_0x411cda(_0xb07ea9._0x5276c0)],
1923
- 'target': _0x3a60be[_0x411cda(0x169)],
1924
- 'visibility': _0x3a60be[_0x411cda(_0xb07ea9._0x2d26ce)]
1936
+ const _0x1fdee7 = await _0x41641c[_0x2c5e5b(_0x397f9e._0x589138)]['sendMessage']({
1937
+ 'attachmentIds': _0x3ee5f1['attachment_ids'],
1938
+ 'content': _0x3ee5f1[_0x2c5e5b(0x314)],
1939
+ 'target': _0x3ee5f1['target'],
1940
+ 'visibility': _0x3ee5f1[_0x2c5e5b(0x2f8)]
1925
1941
  });
1926
- return _0x411cda(0x27c) + _0x3a60be[_0x411cda(_0xb07ea9._0x2d498d)] + _0x411cda(_0xb07ea9._0x26236a) + _0x387362[_0x411cda(0x176)];
1942
+ return 'Message\x20sent\x20to\x20' + _0x3ee5f1[_0x2c5e5b(0x336)] + _0x2c5e5b(0x245) + _0x1fdee7[_0x2c5e5b(0x36e)];
1927
1943
  },
1928
1944
  async 'check_messages'() {
1929
- const _0x377c13 = _0x275c84, _0x5dd582 = await _0x1ce260[_0x377c13(_0xc6ead2._0x433a26)][_0x377c13(0x16c)]();
1930
- if (!_0x1ce260['workerMode']) {
1931
- const _0x3ceeb5 = await _0x1ffd3e();
1932
- if (_0x3ceeb5)
1933
- return formatCheckMessages(_0x5dd582[_0x377c13(0x170)]['filter'](_0x4ba399 => !_0x3ceeb5[_0x377c13(0x192)](_0x4ba399['target'])));
1945
+ const _0x3bd622 = _0x4133d2, _0x56a79d = await _0x41641c[_0x3bd622(_0x28be05._0x2fc9e0)][_0x3bd622(0x221)]();
1946
+ if (!_0x41641c[_0x3bd622(0x28e)]) {
1947
+ const _0x2a9a11 = await _0x4a7343();
1948
+ if (_0x2a9a11)
1949
+ return formatCheckMessages(_0x56a79d['messages']['filter'](_0x30e705 => !_0x2a9a11['has'](_0x30e705['target'])));
1934
1950
  }
1935
- return formatCheckMessages(_0x5dd582[_0x377c13(_0xc6ead2._0x42b669)]);
1951
+ return formatCheckMessages(_0x56a79d['messages']);
1936
1952
  },
1937
- async 'read_history'(_0x5e33c8) {
1938
- const _0x55d85f = _0x275c84, _0x113a8e = await _0x1ce260[_0x55d85f(_0x46d276._0x452bff)][_0x55d85f(_0x46d276._0x45dd92)](_0x5e33c8);
1939
- return formatHistory(_0x113a8e);
1953
+ async 'read_history'(_0x2d3364) {
1954
+ const _0x18e550 = _0x4133d2, _0x314ce9 = await _0x41641c[_0x18e550(0x290)][_0x18e550(0x341)](_0x2d3364);
1955
+ return formatHistory(_0x314ce9);
1940
1956
  },
1941
1957
  async 'list_server'() {
1942
- const _0x533ca1 = _0x275c84, _0x13ea2f = await _0x1ce260[_0x533ca1(0x165)][_0x533ca1(_0x3390f1._0x8b2d37)]();
1943
- return formatServerDirectory(_0x13ea2f);
1958
+ const _0x46ae86 = _0x4133d2, _0x1e7a0c = await _0x41641c[_0x46ae86(0x290)][_0x46ae86(_0x3cc4c5._0x4c042e)]();
1959
+ return formatServerDirectory(_0x1e7a0c);
1944
1960
  },
1945
- async 'list_tasks'(_0x214cfd) {
1946
- const _0x27cef9 = _0x275c84, _0x5b814b = await _0x1ce260[_0x27cef9(_0x4de2f5._0x313e6d)][_0x27cef9(_0x4de2f5._0x61d379)](_0x214cfd);
1947
- let _0x974459;
1948
- if (_0x1ce260['daemonLocalUrl'] && _0x1ce260[_0x27cef9(_0x4de2f5._0x17a50d)])
1961
+ async 'list_tasks'(_0xf4ff5e) {
1962
+ const _0x476dc7 = _0x4133d2, _0x430f80 = await _0x41641c['client']['listTasks'](_0xf4ff5e);
1963
+ let _0x57ad3f;
1964
+ if (_0x41641c[_0x476dc7(_0x532d32._0x220404)] && _0x41641c[_0x476dc7(_0x532d32._0xa028fe)])
1949
1965
  try {
1950
- const _0xc50e11 = await fetch(_0x1ce260['daemonLocalUrl'] + '/workers/list?agent_id=' + encodeURIComponent(_0x1ce260[_0x27cef9(0x1f7)])), _0x5e4cca = await _0xc50e11['json']();
1951
- if (_0x5e4cca['ok']) {
1952
- const _0x5e2f40 = _0x214cfd[_0x27cef9(0x2e0)] + ':';
1953
- _0x974459 = new Set();
1954
- for (const _0x22f57a of _0x5e4cca['workers']) {
1955
- if (_0x22f57a[_0x27cef9(0x2b0)] === _0x27cef9(_0x4de2f5._0xd0b244))
1966
+ const _0x40cd5e = await fetch(_0x41641c[_0x476dc7(_0x532d32._0x33dc73)] + _0x476dc7(0x2b6) + encodeURIComponent(_0x41641c[_0x476dc7(_0x532d32._0xe88e5c)])), _0x182a97 = await _0x40cd5e[_0x476dc7(_0x532d32._0x2b86dc)]();
1967
+ if (_0x182a97['ok']) {
1968
+ const _0x561d61 = _0xf4ff5e[_0x476dc7(0x330)] + ':';
1969
+ _0x57ad3f = new Set();
1970
+ for (const _0x54b384 of _0x182a97[_0x476dc7(_0x532d32._0x84ce90)]) {
1971
+ if (_0x54b384[_0x476dc7(_0x532d32._0x41c010)] === 'destroyed')
1956
1972
  continue;
1957
- if (_0x22f57a[_0x27cef9(_0x4de2f5._0x42693b)]?.[_0x27cef9(_0x4de2f5._0x3289db)](_0x5e2f40)) {
1958
- const _0x1b5222 = _0x22f57a[_0x27cef9(_0x4de2f5._0x1e40de)][_0x27cef9(_0x4de2f5._0x5d1012)](_0x5e2f40['length']), _0x5c5ada = _0x5b814b[_0x27cef9(0x1e6)][_0x27cef9(_0x4de2f5._0x45ea12)](_0x486885 => _0x486885[_0x27cef9(0x176)]?.['startsWith'](_0x1b5222) === !![]);
1959
- if (_0x5c5ada?.['taskNumber'] != null) {
1960
- _0x974459['add'](_0x5c5ada['taskNumber']);
1973
+ if (_0x54b384[_0x476dc7(_0x532d32._0x3fb0d5)]?.[_0x476dc7(_0x532d32._0x18c047)](_0x561d61)) {
1974
+ const _0x16da50 = _0x54b384[_0x476dc7(_0x532d32._0x6d440a)]['slice'](_0x561d61[_0x476dc7(0x230)]), _0x496095 = _0x430f80[_0x476dc7(0x342)][_0x476dc7(_0x532d32._0x440a49)](_0x2e517c => _0x2e517c[_0x476dc7(0x36e)]?.[_0x476dc7(0x343)](_0x16da50) === !![]);
1975
+ if (_0x496095?.['taskNumber'] != null) {
1976
+ _0x57ad3f[_0x476dc7(0x232)](_0x496095[_0x476dc7(0x23a)]);
1961
1977
  continue;
1962
1978
  }
1963
1979
  }
1964
- if (_0x22f57a['task_id']) {
1965
- const _0x2b58fc = _0x5b814b[_0x27cef9(_0x4de2f5._0x188732)][_0x27cef9(_0x4de2f5._0x45ea12)](_0x1e4688 => _0x1e4688[_0x27cef9(0x158)] === _0x22f57a['task_id']);
1966
- _0x2b58fc?.[_0x27cef9(0x2a7)] != null && _0x974459[_0x27cef9(0x1f8)](_0x2b58fc[_0x27cef9(_0x4de2f5._0x46b714)]);
1980
+ if (_0x54b384[_0x476dc7(_0x532d32._0x1f89d0)]) {
1981
+ const _0x574adb = _0x430f80['tasks'][_0x476dc7(0x2c7)](_0x4b62aa => _0x4b62aa[_0x476dc7(0x259)] === _0x54b384[_0x476dc7(0x32d)]);
1982
+ _0x574adb?.[_0x476dc7(0x23a)] != null && _0x57ad3f['add'](_0x574adb['taskNumber']);
1967
1983
  }
1968
1984
  }
1969
1985
  }
1970
1986
  } catch {
1971
1987
  }
1972
- return formatTaskList(_0x5b814b[_0x27cef9(0x1e6)], _0x974459);
1988
+ return formatTaskList(_0x430f80[_0x476dc7(_0x532d32._0x311880)], _0x57ad3f);
1973
1989
  },
1974
- async 'create_tasks'(_0x28394f) {
1975
- const _0x368508 = _0x275c84;
1976
- _0x3c900c(_0x368508(_0x3b3175._0x4810f9), _0x28394f[_0x368508(0x2e0)]);
1977
- const _0x4e6262 = await _0x1ce260[_0x368508(0x165)]['createTasks'](_0x28394f);
1978
- return formatCreatedTasks(_0x4e6262['tasks']);
1990
+ async 'create_tasks'(_0x31cf1f) {
1991
+ const _0x27414c = _0x4133d2;
1992
+ _0x33ecd8(_0x27414c(0x2b7), _0x31cf1f[_0x27414c(0x330)]);
1993
+ const _0x4e6633 = await _0x41641c['client'][_0x27414c(0x32b)](_0x31cf1f);
1994
+ return formatCreatedTasks(_0x4e6633[_0x27414c(0x342)]);
1979
1995
  },
1980
- async 'claim_tasks'(_0x457026) {
1981
- const _0x1516ad = _0x275c84;
1982
- if (_0x1ce260[_0x1516ad(0x284)]) {
1983
- _0x3c900c(_0x1516ad(0x263), _0x457026[_0x1516ad(0x2e0)]);
1984
- if (_0x457026[_0x1516ad(0x15d)] && _0x457026[_0x1516ad(_0xfef6f5._0x6ce088)][_0x1516ad(_0xfef6f5._0x16e733)] > 0x0)
1985
- throw new Error(_0x1516ad(0x1f2));
1986
- if (!_0x457026[_0x1516ad(_0xfef6f5._0x3e894b)] || _0x457026[_0x1516ad(0x210)][_0x1516ad(_0xfef6f5._0x2a45fc)] === 0x0)
1987
- throw new Error('claim_tasks:\x20worker\x20can\x20only\x20claim\x20subtasks\x20inside\x20its\x20own\x20task\x20thread\x20—\x20provide\x20subtask_numbers.');
1996
+ async 'claim_tasks'(_0x2c8340) {
1997
+ const _0x10b2b2 = {
1998
+ _0x58af85: 0x2cb,
1999
+ _0x48ac82: 0x36e,
2000
+ _0x52cdcb: 0x23a,
2001
+ _0x34541a: 0x303,
2002
+ _0x5ab705: 0x265,
2003
+ _0x5b8b40: 0x31b
2004
+ }, _0x4e2ac = _0x4133d2;
2005
+ if (_0x41641c[_0x4e2ac(0x28e)]) {
2006
+ _0x33ecd8('claim_tasks', _0x2c8340[_0x4e2ac(_0x480baf._0x57f487)]);
2007
+ if (_0x2c8340[_0x4e2ac(0x206)] && _0x2c8340[_0x4e2ac(0x206)][_0x4e2ac(0x230)] > 0x0)
2008
+ throw new Error('claim_tasks:\x20worker\x20cannot\x20claim\x20by\x20message_ids\x20(top-level\x20message\x20promotion\x20is\x20main-agent\x20only);\x20use\x20subtask_numbers\x20inside\x20your\x20own\x20task\x20thread.');
2009
+ if (!_0x2c8340[_0x4e2ac(0x244)] || _0x2c8340[_0x4e2ac(0x244)][_0x4e2ac(0x230)] === 0x0)
2010
+ throw new Error(_0x4e2ac(_0x480baf._0x567633));
1988
2011
  }
1989
- const _0x53c145 = await _0x1ce260['client'][_0x1516ad(_0xfef6f5._0x3b4fa8)](_0x457026), _0x185d81 = await Promise[_0x1516ad(0x22e)](_0x53c145[_0x1516ad(0x1ce)][_0x1516ad(_0xfef6f5._0x3df600)](async _0x1489d4 => {
1990
- const _0x71e2e = _0x1516ad;
1991
- if (!_0x1489d4[_0x71e2e(0x1c9)] || !_0x1489d4[_0x71e2e(_0x4a9cbb._0x10c025)])
1992
- return _0x1489d4;
2012
+ const _0x168224 = await _0x41641c['client'][_0x4e2ac(_0x480baf._0x560ca1)](_0x2c8340), _0x483c67 = await Promise[_0x4e2ac(_0x480baf._0x570300)](_0x168224[_0x4e2ac(0x359)][_0x4e2ac(_0x480baf._0x5cb94e)](async _0x59ce04 => {
2013
+ const _0x160de8 = _0x4e2ac;
2014
+ if (!_0x59ce04['success'] || !_0x59ce04['messageId'])
2015
+ return _0x59ce04;
1993
2016
  try {
1994
- const _0x118002 = await _0x535737({
1995
- 'channel': _0x457026[_0x71e2e(0x2e0)],
1996
- 'messageId': _0x1489d4[_0x71e2e(0x176)],
1997
- 'taskId': _0x1489d4['taskId'],
1998
- 'taskNumber': _0x1489d4[_0x71e2e(_0x4a9cbb._0x450d91)],
1999
- 'threadNumber': _0x1489d4[_0x71e2e(0x1f6)]
2017
+ const _0x12908b = await _0x29cbca({
2018
+ 'channel': _0x2c8340[_0x160de8(0x330)],
2019
+ 'executionMode': _0x59ce04[_0x160de8(_0x10b2b2._0x58af85)],
2020
+ 'messageId': _0x59ce04[_0x160de8(_0x10b2b2._0x48ac82)],
2021
+ 'taskId': _0x59ce04[_0x160de8(0x259)],
2022
+ 'taskNumber': _0x59ce04[_0x160de8(_0x10b2b2._0x52cdcb)],
2023
+ 'threadNumber': _0x59ce04[_0x160de8(_0x10b2b2._0x34541a)]
2000
2024
  });
2001
- return _0x118002 ? {
2002
- ..._0x1489d4,
2003
- ..._0x118002
2004
- } : _0x1489d4;
2005
- } catch (_0x4a1c37) {
2025
+ return _0x12908b ? {
2026
+ ..._0x59ce04,
2027
+ ..._0x12908b
2028
+ } : _0x59ce04;
2029
+ } catch (_0x38df65) {
2006
2030
  return {
2007
- ..._0x1489d4,
2008
- 'workerHandoffError': _0x4a1c37 instanceof Error ? _0x4a1c37['message'] : _0x71e2e(0x228)
2031
+ ..._0x59ce04,
2032
+ 'workerHandoffError': _0x38df65 instanceof Error ? _0x38df65[_0x160de8(_0x10b2b2._0x5ab705)] : _0x160de8(_0x10b2b2._0x5b8b40)
2009
2033
  };
2010
2034
  }
2011
2035
  }));
2012
- return formatClaimTaskResults(_0x185d81);
2036
+ return formatClaimTaskResults(_0x483c67);
2013
2037
  },
2014
- async 'unclaim_task'(_0x53c581) {
2015
- const _0x3e4994 = _0x275c84;
2016
- if (_0x1ce260[_0x3e4994(0x284)]) {
2017
- _0x3c900c(_0x3e4994(0x2c9), _0x53c581['channel']);
2018
- if (_0x53c581['subtask_number'] == null)
2019
- throw new Error(_0x3e4994(_0x3c6981._0x5b6921));
2038
+ async 'unclaim_task'(_0x14659f) {
2039
+ const _0x2f91d9 = _0x4133d2;
2040
+ if (_0x41641c['workerMode']) {
2041
+ _0x33ecd8(_0x2f91d9(_0x46c4ee._0x4e711c), _0x14659f[_0x2f91d9(_0x46c4ee._0x466ce9)]);
2042
+ if (_0x14659f['subtask_number'] == null)
2043
+ throw new Error('unclaim_task:\x20worker\x20can\x20only\x20unclaim\x20subtasks\x20inside\x20its\x20own\x20task\x20thread\x20—\x20provide\x20subtask_number.');
2020
2044
  }
2021
- const _0x283c85 = await _0x1ce260['client'][_0x3e4994(_0x3c6981._0x5f4be6)](_0x53c581);
2022
- return formatUnclaimTaskResult(_0x283c85);
2045
+ const _0x562072 = await _0x41641c['client'][_0x2f91d9(0x2fc)](_0x14659f);
2046
+ return formatUnclaimTaskResult(_0x562072);
2023
2047
  },
2024
- async 'update_task_status'(_0x53d1f5) {
2025
- const _0x49ed3d = _0x275c84;
2026
- _0x3c900c('update_task_status', _0x53d1f5[_0x49ed3d(_0x48663d._0x19a8c5)]);
2027
- const _0x557843 = await _0x1ce260[_0x49ed3d(0x165)][_0x49ed3d(_0x48663d._0x4adf54)](_0x53d1f5);
2028
- return formatUpdateTaskStatusResult(_0x557843);
2048
+ async 'update_task_status'(_0x3b5ed0) {
2049
+ const _0x555e91 = _0x4133d2;
2050
+ _0x33ecd8(_0x555e91(_0x5b1cbc._0x4a095b), _0x3b5ed0[_0x555e91(_0x5b1cbc._0x547bfe)]);
2051
+ const _0x35f7e4 = await _0x41641c[_0x555e91(_0x5b1cbc._0x527a66)][_0x555e91(_0x5b1cbc._0x2f7da1)](_0x3b5ed0);
2052
+ return formatUpdateTaskStatusResult(_0x35f7e4);
2029
2053
  },
2030
- async 'upload_file'(_0x510f23) {
2031
- const _0x40d2f2 = _0x275c84, _0x790a9d = await _0x1ce260['uploadPreparer'](_0x510f23[_0x40d2f2(0x185)]), {
2032
- sizeBytes: _0x3849e3,
2033
- ..._0xf6f0d3
2034
- } = _0x790a9d, _0x8fc541 = await _0x1ce260[_0x40d2f2(0x165)][_0x40d2f2(_0x55e472._0x41e084)]({
2035
- 'channel': _0x510f23[_0x40d2f2(0x2e0)],
2036
- ..._0xf6f0d3
2054
+ async 'upload_file'(_0x201acd) {
2055
+ const _0x36fd02 = _0x4133d2, _0xef5df = await _0x41641c[_0x36fd02(0x27e)](_0x201acd[_0x36fd02(_0xb89041._0x561f99)]), {
2056
+ sizeBytes: _0x430952,
2057
+ ..._0x16dd66
2058
+ } = _0xef5df, _0x29f23b = await _0x41641c[_0x36fd02(0x290)][_0x36fd02(_0xb89041._0x139f83)]({
2059
+ 'channel': _0x201acd[_0x36fd02(_0xb89041._0x42a612)],
2060
+ ..._0x16dd66
2037
2061
  });
2038
- return formatUploadResult(_0x8fc541);
2062
+ return formatUploadResult(_0x29f23b);
2039
2063
  },
2040
- async 'view_file'(_0x3861ab) {
2041
- const _0x59c1ee = _0x275c84, _0x23b703 = await _0x1ce260[_0x59c1ee(_0x248200._0x3df43e)][_0x59c1ee(0x267)](_0x3861ab[_0x59c1ee(0x22d)]);
2042
- if (_0x23b703)
2043
- return formatViewFileResult(_0x23b703, !![]);
2044
- const _0x21f037 = await _0x1ce260[_0x59c1ee(_0x248200._0x23fa0c)][_0x59c1ee(_0x248200._0x835cd9)](_0x3861ab[_0x59c1ee(0x22d)]), _0xc25d = await _0x1ce260[_0x59c1ee(_0x248200._0x3df43e)][_0x59c1ee(_0x248200._0x157f48)]({
2045
- 'attachmentId': _0x3861ab['attachment_id'],
2046
- 'contentType': _0x21f037[_0x59c1ee(0x224)],
2047
- 'data': _0x21f037[_0x59c1ee(_0x248200._0xa9bd60)],
2048
- 'originalFilename': _0x21f037[_0x59c1ee(_0x248200._0x2b80a4)]
2064
+ async 'view_file'(_0x307d6c) {
2065
+ const _0xdee7d3 = _0x4133d2, _0x9378d2 = await _0x41641c[_0xdee7d3(0x2ec)][_0xdee7d3(_0x300baf._0x2237a9)](_0x307d6c[_0xdee7d3(_0x300baf._0xb7c6dd)]);
2066
+ if (_0x9378d2)
2067
+ return formatViewFileResult(_0x9378d2, !![]);
2068
+ const _0x490b93 = await _0x41641c['client'][_0xdee7d3(_0x300baf._0x3af698)](_0x307d6c['attachment_id']), _0x49f786 = await _0x41641c[_0xdee7d3(_0x300baf._0x21d3e1)]['save']({
2069
+ 'attachmentId': _0x307d6c[_0xdee7d3(_0x300baf._0xb7c6dd)],
2070
+ 'contentType': _0x490b93['contentType'],
2071
+ 'data': _0x490b93[_0xdee7d3(_0x300baf._0x1fde1a)],
2072
+ 'originalFilename': _0x490b93[_0xdee7d3(0x315)]
2049
2073
  });
2050
- return formatViewFileResult(_0xc25d, ![]);
2074
+ return formatViewFileResult(_0x49f786, ![]);
2051
2075
  },
2052
- async 'get_worker_status'(_0x5d1877) {
2053
- const _0x4c4b5d = _0x275c84;
2054
- if (!_0x1ce260[_0x4c4b5d(_0x3d777d._0x3cae70)])
2076
+ async 'get_worker_status'(_0x3a8400) {
2077
+ const _0x506d78 = _0x4133d2;
2078
+ if (!_0x41641c[_0x506d78(_0x2ce538._0x171287)])
2055
2079
  return 'Worker\x20features\x20not\x20available';
2056
- const _0x484231 = await fetch(_0x1ce260[_0x4c4b5d(0x2cc)] + _0x4c4b5d(_0x3d777d._0x393cc5) + encodeURIComponent(_0x5d1877[_0x4c4b5d(_0x3d777d._0x2ea417)])), _0x12bafc = await _0x484231['json']();
2057
- if (!_0x12bafc['ok'])
2058
- return _0x4c4b5d(_0x3d777d._0x3c154d) + _0x5d1877[_0x4c4b5d(0x2bc)] + '\x22\x20not\x20found';
2059
- return 'Worker\x20\x22' + _0x5d1877[_0x4c4b5d(0x2bc)] + '\x22:\x20status=' + _0x12bafc[_0x4c4b5d(0x2b0)];
2080
+ const _0x183ff8 = await fetch(_0x41641c[_0x506d78(_0x2ce538._0x171287)] + '/workers/status?work_key=' + encodeURIComponent(_0x3a8400[_0x506d78(0x2f7)])), _0x79f2e5 = await _0x183ff8[_0x506d78(0x284)]();
2081
+ if (!_0x79f2e5['ok'])
2082
+ return _0x506d78(_0x2ce538._0xacbe53) + _0x3a8400[_0x506d78(_0x2ce538._0x2292eb)] + _0x506d78(_0x2ce538._0x517ef3);
2083
+ return _0x506d78(_0x2ce538._0xacbe53) + _0x3a8400[_0x506d78(_0x2ce538._0x5a2086)] + _0x506d78(_0x2ce538._0x426d96) + _0x79f2e5[_0x506d78(_0x2ce538._0xf4ea80)];
2060
2084
  },
2061
- async 'park_worker'(_0x4128b1) {
2062
- const _0x448b30 = _0x275c84;
2063
- if (!_0x1ce260[_0x448b30(0x2cc)])
2064
- return _0x448b30(0x2c1);
2065
- const _0x6cea3d = await fetch(_0x1ce260[_0x448b30(_0x21525a._0x137e6d)] + _0x448b30(_0x21525a._0x15f3e5), {
2066
- 'method': 'POST',
2067
- 'headers': { 'Content-Type': _0x448b30(0x2b1) },
2068
- 'body': JSON[_0x448b30(0x29e)]({ 'work_key': _0x4128b1[_0x448b30(_0x21525a._0x3a0559)] })
2069
- }), _0x40d7af = await _0x6cea3d['json']();
2070
- if (!_0x40d7af['ok'])
2071
- throw new Error(_0x40d7af['error'] ?? _0x448b30(_0x21525a._0x257831));
2072
- return _0x448b30(_0x21525a._0x48f832) + _0x4128b1[_0x448b30(0x2bc)] + _0x448b30(_0x21525a._0x5c29b0);
2085
+ async 'park_worker'(_0x5f3b62) {
2086
+ const _0x5c530f = _0x4133d2;
2087
+ if (!_0x41641c[_0x5c530f(_0x19485d._0x104339)])
2088
+ return _0x5c530f(_0x19485d._0x29af33);
2089
+ const _0x472936 = await fetch(_0x41641c[_0x5c530f(0x2a9)] + '/workers/park', {
2090
+ 'method': _0x5c530f(_0x19485d._0x5b923a),
2091
+ 'headers': { 'Content-Type': _0x5c530f(0x298) },
2092
+ 'body': JSON['stringify']({ 'work_key': _0x5f3b62[_0x5c530f(0x2f7)] })
2093
+ }), _0x144bab = await _0x472936[_0x5c530f(_0x19485d._0x5978e4)]();
2094
+ if (!_0x144bab['ok'])
2095
+ throw new Error(_0x144bab[_0x5c530f(_0x19485d._0x5ea861)] ?? _0x5c530f(0x261));
2096
+ return 'Worker\x20\x22' + _0x5f3b62[_0x5c530f(_0x19485d._0x166f56)] + _0x5c530f(0x22b);
2073
2097
  },
2074
- async 'mark_waiting_input'(_0x406866) {
2075
- const _0x20f60e = _0x275c84;
2076
- if (!_0x1ce260[_0x20f60e(0x2cc)] || !_0x1ce260['agentId'])
2077
- return _0x20f60e(0x163);
2078
- const _0x114af0 = await fetch(_0x1ce260[_0x20f60e(0x2cc)] + '/workers/waiting_input', {
2098
+ async 'mark_waiting_input'(_0x49d314) {
2099
+ const _0x39c2fe = _0x4133d2;
2100
+ if (!_0x41641c[_0x39c2fe(_0x131db4._0x42a42f)] || !_0x41641c[_0x39c2fe(0x376)])
2101
+ return _0x39c2fe(_0x131db4._0xc22649);
2102
+ const _0x146ed3 = await fetch(_0x41641c[_0x39c2fe(0x2a9)] + _0x39c2fe(_0x131db4._0x55e2a7), {
2079
2103
  'method': 'POST',
2080
- 'headers': { 'Content-Type': _0x20f60e(_0x56cafa._0x2a44ab) },
2081
- 'body': JSON['stringify']({
2082
- 'work_key': _0x406866[_0x20f60e(_0x56cafa._0x287c0e)],
2083
- 'agent_id': _0x1ce260[_0x20f60e(_0x56cafa._0x4dbb9d)]
2104
+ 'headers': { 'Content-Type': 'application/json' },
2105
+ 'body': JSON[_0x39c2fe(_0x131db4._0x3a7e94)]({
2106
+ 'work_key': _0x49d314['work_key'],
2107
+ 'agent_id': _0x41641c['agentId']
2084
2108
  })
2085
- }), _0x5a6fed = await _0x114af0[_0x20f60e(_0x56cafa._0x466c03)]();
2086
- if (!_0x5a6fed['ok'])
2087
- throw new Error(_0x5a6fed[_0x20f60e(0x2d4)] ?? _0x20f60e(0x23c));
2088
- return _0x20f60e(0x1e0) + _0x406866[_0x20f60e(_0x56cafa._0x287c0e)] + _0x20f60e(0x239);
2109
+ }), _0x3fecb5 = await _0x146ed3[_0x39c2fe(_0x131db4._0x2c08d9)]();
2110
+ if (!_0x3fecb5['ok'])
2111
+ throw new Error(_0x3fecb5[_0x39c2fe(0x30e)] ?? 'mark_waiting_input\x20failed');
2112
+ return _0x39c2fe(0x1fb) + _0x49d314['work_key'] + _0x39c2fe(_0x131db4._0x302788);
2089
2113
  },
2090
- async 'escalate_to_main'(_0x148714) {
2091
- const _0x42b967 = _0x275c84;
2092
- if (!_0x1ce260[_0x42b967(_0x2f0220._0x3cf1b6)])
2093
- return _0x42b967(_0x2f0220._0xd03982);
2094
- const _0x1cd1ce = await fetch(_0x1ce260[_0x42b967(_0x2f0220._0x3cf1b6)] + '/workers/escalate', {
2095
- 'method': _0x42b967(0x2a0),
2096
- 'headers': { 'Content-Type': _0x42b967(0x2b1) },
2097
- 'body': JSON['stringify']({
2098
- 'work_key': _0x148714[_0x42b967(_0x2f0220._0x2dba5f)],
2099
- 'reason': _0x148714[_0x42b967(_0x2f0220._0x14e0a8)]
2114
+ async 'escalate_to_main'(_0x144d20) {
2115
+ const _0x340131 = _0x4133d2;
2116
+ if (!_0x41641c[_0x340131(_0x2826a1._0x196a87)])
2117
+ return _0x340131(_0x2826a1._0x438e2d);
2118
+ const _0x4f8ee8 = await fetch(_0x41641c['daemonLocalUrl'] + _0x340131(_0x2826a1._0x52c5f4), {
2119
+ 'method': _0x340131(0x21b),
2120
+ 'headers': { 'Content-Type': _0x340131(_0x2826a1._0x4cb568) },
2121
+ 'body': JSON[_0x340131(_0x2826a1._0x5edcb8)]({
2122
+ 'work_key': _0x144d20[_0x340131(0x2f7)],
2123
+ 'reason': _0x144d20[_0x340131(_0x2826a1._0x3cfc32)]
2100
2124
  })
2101
- }), _0x4c5d43 = await _0x1cd1ce[_0x42b967(_0x2f0220._0x519361)]();
2102
- if (!_0x4c5d43['ok'])
2103
- throw new Error(_0x4c5d43[_0x42b967(_0x2f0220._0x11f0d3)] ?? 'escalate_to_main\x20failed');
2104
- return _0x42b967(0x28d) + _0x148714['reason'];
2125
+ }), _0x5d5e4f = await _0x4f8ee8['json']();
2126
+ if (!_0x5d5e4f['ok'])
2127
+ throw new Error(_0x5d5e4f['error'] ?? 'escalate_to_main\x20failed');
2128
+ return _0x340131(_0x2826a1._0x8c1b45) + _0x144d20[_0x340131(_0x2826a1._0x3cfc32)];
2105
2129
  }
2106
2130
  };
2107
2131
  }
2108
- function textResult(_0x1fcec6, _0x3f4c06 = ![]) {
2109
- const _0x55994f = { _0x177145: 0x285 }, _0x2be2d3 = _0x36c0a2;
2132
+ function textResult(_0x24e03e, _0x236a86 = ![]) {
2133
+ const _0xdfcd04 = _0x57701d;
2110
2134
  return {
2111
2135
  'content': [{
2112
- 'type': _0x2be2d3(_0x55994f._0x177145),
2113
- 'text': _0x1fcec6
2136
+ 'type': _0xdfcd04(0x2f6),
2137
+ 'text': _0x24e03e
2114
2138
  }],
2115
- ..._0x3f4c06 ? { 'isError': !![] } : {}
2139
+ ..._0x236a86 ? { 'isError': !![] } : {}
2116
2140
  };
2117
2141
  }
2118
- async function registerChatBridgeTools(_0x249066, _0x4ff5b4, _0x11f301) {
2119
- const _0x3a1e3c = {
2120
- _0x519605: 0x235,
2121
- _0x402d72: 0x28f,
2122
- _0x44eaa3: 0x269,
2123
- _0x5cb18f: 0x23d,
2124
- _0x247435: 0x167,
2125
- _0x508125: 0x222,
2126
- _0x10a7af: 0x1e2,
2127
- _0x55bbdc: 0x2b9,
2128
- _0x5b6d5c: 0x1b7,
2129
- _0x3d66ce: 0x24f,
2130
- _0x54dd3d: 0x2e2,
2131
- _0x20a5fb: 0x2a6,
2132
- _0x51fe9f: 0x1e9,
2133
- _0x405620: 0x1a3,
2134
- _0x347ec4: 0x205,
2135
- _0x363778: 0x2e2,
2136
- _0x401189: 0x22a,
2137
- _0x1cc600: 0x265,
2138
- _0x4ab85b: 0x2be,
2139
- _0x39fc24: 0x22a,
2140
- _0xba97c2: 0x1e5,
2141
- _0x37ce2a: 0x162,
2142
- _0xf4cfa6: 0x22a,
2143
- _0x1cccd7: 0x22a,
2144
- _0x3398e6: 0x2a6,
2145
- _0x216f11: 0x22a,
2146
- _0x1e2e08: 0x1a3,
2147
- _0x57c59c: 0x250,
2148
- _0x2a453a: 0x1a9,
2149
- _0x2ffc49: 0x2e2,
2150
- _0x30174e: 0x22b,
2151
- _0x252f2f: 0x2da,
2152
- _0x1f358c: 0x190,
2153
- _0x626b8d: 0x2e2,
2154
- _0x33e84d: 0x1ee,
2155
- _0xcd0591: 0x24b,
2156
- _0x3bc430: 0x272,
2157
- _0x49fef8: 0x15a,
2158
- _0x38d98f: 0x2e2
2159
- }, _0x194673 = { _0x39d883: 0x211 }, _0x7398ef = { _0x475eb8: 0x22b }, _0x5c9cb3 = { _0x37fd52: 0x15e }, _0x120cdb = { _0x337d97: 0x16e }, _0x478a3a = {
2160
- _0x5e34f9: 0x234,
2161
- _0x2463ed: 0x1d7,
2162
- _0x1433fa: 0x264
2163
- }, _0x54675a = { _0x4b3a08: 0x1d7 }, _0x277d00 = { _0x29147a: 0x1d7 }, _0x2999fe = _0x36c0a2, {z: _0x181077} = await import(_0x2999fe(_0x3a1e3c._0x519605));
2164
- _0x249066[_0x2999fe(_0x3a1e3c._0x402d72)](_0x2999fe(_0x3a1e3c._0x44eaa3), _0x2999fe(_0x3a1e3c._0x5cb18f), {
2165
- 'target': _0x181077[_0x2999fe(0x2e2)](),
2166
- 'content': _0x181077[_0x2999fe(0x2e2)](),
2167
- 'attachment_ids': _0x181077['array'](_0x181077['string']())['optional'](),
2168
- 'visibility': _0x181077[_0x2999fe(_0x3a1e3c._0x247435)]([
2169
- _0x2999fe(0x242),
2170
- _0x2999fe(_0x3a1e3c._0x508125)
2171
- ])[_0x2999fe(0x22a)]()[_0x2999fe(0x1b8)](_0x2999fe(_0x3a1e3c._0x10a7af))
2172
- }, async _0x39ffc1 => {
2173
- const _0x4b7211 = _0x2999fe;
2142
+ async function registerChatBridgeTools(_0x3a25ef, _0x2d36e3, _0x198250) {
2143
+ const _0x3ee18f = {
2144
+ _0x1afbca: 0x2bd,
2145
+ _0x584dc7: 0x2d0,
2146
+ _0x3bb559: 0x320,
2147
+ _0x362b70: 0x236,
2148
+ _0x415255: 0x338,
2149
+ _0x20e23e: 0x280,
2150
+ _0x21d5e7: 0x320,
2151
+ _0x5ff3e2: 0x280,
2152
+ _0x1d59af: 0x219,
2153
+ _0x59a1a9: 0x308,
2154
+ _0x555913: 0x215,
2155
+ _0x1b5a34: 0x378,
2156
+ _0xbe7075: 0x2ce,
2157
+ _0x5bb582: 0x2b7,
2158
+ _0x3d1701: 0x2d0,
2159
+ _0x127638: 0x260,
2160
+ _0x2e40a6: 0x378,
2161
+ _0x4b9137: 0x320,
2162
+ _0x5a5d6d: 0x313,
2163
+ _0x57dd02: 0x2b5,
2164
+ _0x3589eb: 0x2d0,
2165
+ _0xcb8c09: 0x318,
2166
+ _0x2494ae: 0x318,
2167
+ _0x43031f: 0x280,
2168
+ _0x4157c0: 0x248,
2169
+ _0x2c9073: 0x2d0,
2170
+ _0x2bf89b: 0x2c5,
2171
+ _0x2e3e9f: 0x320,
2172
+ _0x52bee2: 0x2d0,
2173
+ _0x23e4d1: 0x2f1,
2174
+ _0x34bd03: 0x363,
2175
+ _0xcacbc7: 0x2ba,
2176
+ _0x2e6194: 0x2ce,
2177
+ _0x2b4921: 0x243,
2178
+ _0x3b2b81: 0x2e0,
2179
+ _0x184f9f: 0x301,
2180
+ _0x544c81: 0x215,
2181
+ _0x420b87: 0x28e,
2182
+ _0x3055cb: 0x28e
2183
+ }, _0x4b8b06 = { _0x20bfd9: 0x27f }, _0x240658 = {
2184
+ _0x23c692: 0x347,
2185
+ _0x5a1ac0: 0x265
2186
+ }, _0x5f2285 = { _0x2c26ec: 0x265 }, _0x25bf1c = {
2187
+ _0x4fa564: 0x275,
2188
+ _0xd24a6b: 0x265,
2189
+ _0x1b77d3: 0x2a1
2190
+ }, _0x4b90ce = {
2191
+ _0x3391e3: 0x1f3,
2192
+ _0x41afb8: 0x265,
2193
+ _0x3815c8: 0x22c
2194
+ }, _0x89cab3 = { _0x1d3883: 0x265 }, _0x558a36 = { _0x2d3726: 0x2b7 }, _0x153cee = {
2195
+ _0x3bcd93: 0x203,
2196
+ _0x1588f0: 0x1fe
2197
+ }, _0x347630 = { _0x381eeb: 0x274 }, _0x5caea1 = { _0x1d5090: 0x265 }, _0xe4c08e = _0x57701d, {z: _0xaad158} = await import(_0xe4c08e(_0x3ee18f._0x1afbca));
2198
+ _0x3a25ef[_0xe4c08e(0x215)](_0xe4c08e(0x2b2), 'Send\x20a\x20message.\x20If\x20visibility\x20is\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20visibility:\x20aside\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Outside\x20threads,\x20do\x20not\x20set\x20visibility.\x20Reuse\x20the\x20exact\x20target\x20string\x20from\x20incoming\x20messages.', {
2199
+ 'target': _0xaad158[_0xe4c08e(0x2d0)](),
2200
+ 'content': _0xaad158[_0xe4c08e(_0x3ee18f._0x584dc7)](),
2201
+ 'attachment_ids': _0xaad158['array'](_0xaad158['string']())[_0xe4c08e(_0x3ee18f._0x3bb559)](),
2202
+ 'visibility': _0xaad158[_0xe4c08e(0x378)]([
2203
+ _0xe4c08e(0x239),
2204
+ _0xe4c08e(0x30f)
2205
+ ])[_0xe4c08e(_0x3ee18f._0x3bb559)]()[_0xe4c08e(0x28f)](_0xe4c08e(0x353))
2206
+ }, async _0x3984dc => {
2207
+ const _0x2df9c8 = _0xe4c08e;
2174
2208
  try {
2175
- return textResult(await _0x4ff5b4['send_message'](_0x39ffc1));
2176
- } catch (_0x1bce79) {
2177
- return textResult(_0x1bce79 instanceof Error ? _0x1bce79[_0x4b7211(_0x277d00._0x29147a)] : _0x4b7211(0x166), !![]);
2209
+ return textResult(await _0x2d36e3[_0x2df9c8(0x2b2)](_0x3984dc));
2210
+ } catch (_0x453168) {
2211
+ return textResult(_0x453168 instanceof Error ? _0x453168[_0x2df9c8(_0x5caea1._0x1d5090)] : _0x2df9c8(0x33a), !![]);
2178
2212
  }
2179
- }), _0x249066[_0x2999fe(0x28f)](_0x2999fe(_0x3a1e3c._0x55bbdc), _0x2999fe(_0x3a1e3c._0x5b6d5c), {}, async () => {
2180
- const _0x2d824d = _0x2999fe;
2213
+ }), _0x3a25ef[_0xe4c08e(0x215)]('check_messages', _0xe4c08e(0x20d), {}, async () => {
2214
+ const _0x334b2f = _0xe4c08e;
2181
2215
  try {
2182
- return textResult(await _0x4ff5b4['check_messages']());
2183
- } catch (_0x3f6783) {
2184
- return textResult(_0x3f6783 instanceof Error ? _0x3f6783[_0x2d824d(0x1d7)] : _0x2d824d(0x203), !![]);
2216
+ return textResult(await _0x2d36e3[_0x334b2f(_0x347630._0x381eeb)]());
2217
+ } catch (_0x5a9332) {
2218
+ return textResult(_0x5a9332 instanceof Error ? _0x5a9332['message'] : 'check_messages\x20failed', !![]);
2185
2219
  }
2186
- }), _0x249066[_0x2999fe(0x28f)](_0x2999fe(0x1b4), _0x2999fe(_0x3a1e3c._0x3d66ce), {
2187
- 'channel': _0x181077[_0x2999fe(_0x3a1e3c._0x54dd3d)](),
2188
- 'limit': _0x181077[_0x2999fe(_0x3a1e3c._0x20a5fb)]()[_0x2999fe(0x22a)](),
2189
- 'before': _0x181077[_0x2999fe(0x2a6)]()['optional'](),
2190
- 'after': _0x181077[_0x2999fe(0x2a6)]()['optional']()
2191
- }, async _0x1a9c34 => {
2192
- const _0x12028c = _0x2999fe;
2220
+ }), _0x3a25ef[_0xe4c08e(0x215)](_0xe4c08e(_0x3ee18f._0x362b70), _0xe4c08e(_0x3ee18f._0x415255), {
2221
+ 'channel': _0xaad158['string'](),
2222
+ 'limit': _0xaad158[_0xe4c08e(_0x3ee18f._0x20e23e)]()['optional'](),
2223
+ 'before': _0xaad158[_0xe4c08e(_0x3ee18f._0x20e23e)]()[_0xe4c08e(_0x3ee18f._0x21d5e7)](),
2224
+ 'after': _0xaad158[_0xe4c08e(_0x3ee18f._0x5ff3e2)]()[_0xe4c08e(0x320)]()
2225
+ }, async _0x1080e1 => {
2226
+ const _0x239213 = _0xe4c08e;
2193
2227
  try {
2194
- return textResult(await _0x4ff5b4['read_history'](_0x1a9c34));
2195
- } catch (_0x2a9b1c) {
2196
- return textResult(_0x2a9b1c instanceof Error ? _0x2a9b1c[_0x12028c(_0x54675a._0x4b3a08)] : _0x12028c(0x268), !![]);
2228
+ return textResult(await _0x2d36e3[_0x239213(0x236)](_0x1080e1));
2229
+ } catch (_0x2ffa8b) {
2230
+ return textResult(_0x2ffa8b instanceof Error ? _0x2ffa8b[_0x239213(0x265)] : _0x239213(0x226), !![]);
2197
2231
  }
2198
- }), _0x249066['tool']('list_server', _0x2999fe(0x274), {}, async () => {
2199
- const _0x1c0435 = _0x2999fe;
2232
+ }), _0x3a25ef[_0xe4c08e(0x215)](_0xe4c08e(_0x3ee18f._0x1d59af), _0xe4c08e(_0x3ee18f._0x59a1a9), {}, async () => {
2233
+ const _0xbb6f8f = _0xe4c08e;
2200
2234
  try {
2201
- return textResult(await _0x4ff5b4['list_server']());
2202
- } catch (_0x28afc5) {
2203
- return textResult(_0x28afc5 instanceof Error ? _0x28afc5[_0x1c0435(0x1d7)] : _0x1c0435(0x1c5), !![]);
2235
+ return textResult(await _0x2d36e3[_0xbb6f8f(0x219)]());
2236
+ } catch (_0x456f86) {
2237
+ return textResult(_0x456f86 instanceof Error ? _0x456f86[_0xbb6f8f(0x265)] : 'list_server\x20failed', !![]);
2204
2238
  }
2205
- }), _0x249066[_0x2999fe(0x28f)](_0x2999fe(0x234), _0x2999fe(_0x3a1e3c._0x51fe9f), {
2206
- 'channel': _0x181077[_0x2999fe(0x2e2)](),
2207
- 'status': _0x181077[_0x2999fe(0x167)]([
2208
- _0x2999fe(_0x3a1e3c._0x405620),
2209
- 'in_progress',
2210
- _0x2999fe(0x250),
2211
- _0x2999fe(0x1bf)
2212
- ])[_0x2999fe(0x22a)]()
2213
- }, async _0x6d0e84 => {
2214
- const _0x3c70e0 = _0x2999fe;
2239
+ }), _0x3a25ef[_0xe4c08e(_0x3ee18f._0x555913)](_0xe4c08e(0x203), 'List\x20tasks\x20in\x20a\x20channel\x20or\x20thread.\x20Thread\x20target\x20(e.g.\x20\x22#channel:threadId\x22)\x20returns\x20the\x20parent\x20task\x20plus\x20its\x20subtasks\x20with\x20aggregation\x20fields\x20(childrenTotal,\x20childrenDone,\x20childrenInProgress).\x20Channel\x20target\x20returns\x20only\x20parent\x20tasks\x20(no\x20subtasks).', {
2240
+ 'channel': _0xaad158[_0xe4c08e(0x2d0)](),
2241
+ 'status': _0xaad158[_0xe4c08e(_0x3ee18f._0x1b5a34)]([
2242
+ 'todo',
2243
+ _0xe4c08e(0x306),
2244
+ _0xe4c08e(0x233),
2245
+ _0xe4c08e(_0x3ee18f._0xbe7075)
2246
+ ])[_0xe4c08e(0x320)]()
2247
+ }, async _0x395e36 => {
2248
+ const _0x1d17c9 = _0xe4c08e;
2215
2249
  try {
2216
- return textResult(await _0x4ff5b4[_0x3c70e0(_0x478a3a._0x5e34f9)](_0x6d0e84));
2217
- } catch (_0x54b770) {
2218
- return textResult(_0x54b770 instanceof Error ? _0x54b770[_0x3c70e0(_0x478a3a._0x2463ed)] : _0x3c70e0(_0x478a3a._0x1433fa), !![]);
2250
+ return textResult(await _0x2d36e3[_0x1d17c9(_0x153cee._0x3bcd93)](_0x395e36));
2251
+ } catch (_0xd15be3) {
2252
+ return textResult(_0xd15be3 instanceof Error ? _0xd15be3[_0x1d17c9(0x265)] : _0x1d17c9(_0x153cee._0x1588f0), !![]);
2219
2253
  }
2220
- }), _0x249066[_0x2999fe(0x28f)]('create_tasks', _0x2999fe(_0x3a1e3c._0x347ec4), {
2221
- 'channel': _0x181077[_0x2999fe(_0x3a1e3c._0x363778)](),
2222
- 'idempotency_key': _0x181077[_0x2999fe(_0x3a1e3c._0x54dd3d)]()[_0x2999fe(_0x3a1e3c._0x401189)](),
2223
- 'tasks': _0x181077[_0x2999fe(_0x3a1e3c._0x1cc600)](_0x181077[_0x2999fe(_0x3a1e3c._0x4ab85b)]({
2224
- 'title': _0x181077[_0x2999fe(_0x3a1e3c._0x54dd3d)](),
2225
- 'description': _0x181077[_0x2999fe(_0x3a1e3c._0x54dd3d)]()[_0x2999fe(_0x3a1e3c._0x39fc24)](),
2226
- 'priority': _0x181077['enum']([
2227
- _0x2999fe(_0x3a1e3c._0xba97c2),
2228
- _0x2999fe(_0x3a1e3c._0x37ce2a),
2254
+ }), _0x3a25ef[_0xe4c08e(0x215)](_0xe4c08e(_0x3ee18f._0x5bb582), _0xe4c08e(0x26c), {
2255
+ 'channel': _0xaad158[_0xe4c08e(_0x3ee18f._0x3d1701)](),
2256
+ 'idempotency_key': _0xaad158['string']()['optional'](),
2257
+ 'tasks': _0xaad158[_0xe4c08e(0x318)](_0xaad158[_0xe4c08e(_0x3ee18f._0x127638)]({
2258
+ 'title': _0xaad158['string'](),
2259
+ 'description': _0xaad158['string']()[_0xe4c08e(_0x3ee18f._0x21d5e7)](),
2260
+ 'priority': _0xaad158[_0xe4c08e(_0x3ee18f._0x2e40a6)]([
2261
+ _0xe4c08e(0x375),
2262
+ 'medium',
2229
2263
  'high',
2230
- 'urgent'
2231
- ])[_0x2999fe(_0x3a1e3c._0x401189)]()
2264
+ _0xe4c08e(0x22f)
2265
+ ])[_0xe4c08e(_0x3ee18f._0x4b9137)]()
2232
2266
  }))
2233
- }, async _0x437d09 => {
2234
- const _0xdc188b = _0x2999fe;
2267
+ }, async _0x2b6f29 => {
2268
+ const _0x211de6 = _0xe4c08e;
2235
2269
  try {
2236
- return textResult(await _0x4ff5b4[_0xdc188b(_0x120cdb._0x337d97)](_0x437d09));
2237
- } catch (_0x14694a) {
2238
- return textResult(_0x14694a instanceof Error ? _0x14694a[_0xdc188b(0x1d7)] : 'create_tasks\x20failed', !![]);
2270
+ return textResult(await _0x2d36e3[_0x211de6(_0x558a36._0x2d3726)](_0x2b6f29));
2271
+ } catch (_0x18a3d5) {
2272
+ return textResult(_0x18a3d5 instanceof Error ? _0x18a3d5[_0x211de6(0x265)] : _0x211de6(0x361), !![]);
2239
2273
  }
2240
- }), _0x249066[_0x2999fe(0x28f)]('claim_tasks', 'Claim\x20tasks\x20in\x20a\x20channel\x20by\x20task\x20number\x20or\x20source\x20message.\x20For\x20subtasks\x20in\x20a\x20thread,\x20use\x20subtask_numbers\x20with\x20a\x20single\x20task_numbers\x20entry.', {
2241
- 'channel': _0x181077[_0x2999fe(_0x3a1e3c._0x363778)](),
2242
- 'task_numbers': _0x181077['array'](_0x181077['number']())[_0x2999fe(_0x3a1e3c._0xf4cfa6)](),
2243
- 'subtask_numbers': _0x181077[_0x2999fe(0x265)](_0x181077[_0x2999fe(0x2a6)]())[_0x2999fe(0x22a)](),
2244
- 'message_ids': _0x181077[_0x2999fe(_0x3a1e3c._0x1cc600)](_0x181077['string']())[_0x2999fe(0x22a)](),
2245
- 'evidence': _0x181077[_0x2999fe(0x17c)](_0x181077['string'](), _0x181077['object']({
2246
- 'create_thread': _0x181077[_0x2999fe(0x1a8)]()[_0x2999fe(_0x3a1e3c._0x1cccd7)](),
2247
- 'create_task': _0x181077[_0x2999fe(0x1a8)]()[_0x2999fe(0x22a)]()
2248
- }))[_0x2999fe(0x22a)](),
2249
- 'idempotency_key': _0x181077['string']()['optional']()
2250
- }, async _0x4e5359 => {
2251
- const _0x2f8a09 = _0x2999fe;
2274
+ }), _0x3a25ef[_0xe4c08e(0x215)](_0xe4c08e(_0x3ee18f._0x5a5d6d), _0xe4c08e(_0x3ee18f._0x57dd02), {
2275
+ 'channel': _0xaad158[_0xe4c08e(_0x3ee18f._0x3589eb)](),
2276
+ 'task_numbers': _0xaad158[_0xe4c08e(_0x3ee18f._0xcb8c09)](_0xaad158['number']())['optional'](),
2277
+ 'subtask_numbers': _0xaad158[_0xe4c08e(_0x3ee18f._0x2494ae)](_0xaad158[_0xe4c08e(_0x3ee18f._0x43031f)]())['optional'](),
2278
+ 'message_ids': _0xaad158[_0xe4c08e(0x318)](_0xaad158[_0xe4c08e(0x2d0)]())['optional'](),
2279
+ 'evidence': _0xaad158[_0xe4c08e(_0x3ee18f._0x4157c0)](_0xaad158[_0xe4c08e(_0x3ee18f._0x2c9073)](), _0xaad158[_0xe4c08e(_0x3ee18f._0x127638)]({
2280
+ 'create_thread': _0xaad158[_0xe4c08e(_0x3ee18f._0x2bf89b)]()[_0xe4c08e(0x320)](),
2281
+ 'create_task': _0xaad158[_0xe4c08e(_0x3ee18f._0x2bf89b)]()[_0xe4c08e(_0x3ee18f._0x2e3e9f)]()
2282
+ }))[_0xe4c08e(0x320)](),
2283
+ 'idempotency_key': _0xaad158[_0xe4c08e(_0x3ee18f._0x52bee2)]()['optional']()
2284
+ }, async _0x3fad4b => {
2285
+ const _0x23f4f9 = _0xe4c08e;
2252
2286
  try {
2253
- return textResult(await _0x4ff5b4[_0x2f8a09(0x263)](_0x4e5359));
2254
- } catch (_0x144bb4) {
2255
- return textResult(_0x144bb4 instanceof Error ? _0x144bb4[_0x2f8a09(0x1d7)] : _0x2f8a09(0x16a), !![]);
2287
+ return textResult(await _0x2d36e3[_0x23f4f9(0x313)](_0x3fad4b));
2288
+ } catch (_0x44eb0e) {
2289
+ return textResult(_0x44eb0e instanceof Error ? _0x44eb0e[_0x23f4f9(_0x89cab3._0x1d3883)] : 'claim_tasks\x20failed', !![]);
2256
2290
  }
2257
- }), _0x249066[_0x2999fe(0x28f)]('unclaim_task', _0x2999fe(0x290), {
2258
- 'channel': _0x181077[_0x2999fe(0x2e2)](),
2259
- 'task_number': _0x181077[_0x2999fe(_0x3a1e3c._0x3398e6)](),
2260
- 'subtask_number': _0x181077['number']()[_0x2999fe(0x22a)](),
2261
- 'idempotency_key': _0x181077['string']()[_0x2999fe(_0x3a1e3c._0x216f11)]()
2262
- }, async _0x43882d => {
2263
- const _0x2d5ffd = _0x2999fe;
2291
+ }), _0x3a25ef[_0xe4c08e(_0x3ee18f._0x555913)](_0xe4c08e(0x213), 'Release\x20a\x20claimed\x20task\x20by\x20channel\x20and\x20task\x20number.\x20For\x20subtasks,\x20also\x20pass\x20subtask_number.', {
2292
+ 'channel': _0xaad158[_0xe4c08e(0x2d0)](),
2293
+ 'task_number': _0xaad158['number'](),
2294
+ 'subtask_number': _0xaad158[_0xe4c08e(0x280)]()[_0xe4c08e(0x320)](),
2295
+ 'idempotency_key': _0xaad158[_0xe4c08e(0x2d0)]()[_0xe4c08e(0x320)]()
2296
+ }, async _0x40e89a => {
2297
+ const _0x427876 = _0xe4c08e;
2264
2298
  try {
2265
- return textResult(await _0x4ff5b4['unclaim_task'](_0x43882d));
2266
- } catch (_0x370c63) {
2267
- return textResult(_0x370c63 instanceof Error ? _0x370c63[_0x2d5ffd(0x1d7)] : _0x2d5ffd(0x299), !![]);
2299
+ return textResult(await _0x2d36e3[_0x427876(0x213)](_0x40e89a));
2300
+ } catch (_0x2cf3d8) {
2301
+ return textResult(_0x2cf3d8 instanceof Error ? _0x2cf3d8[_0x427876(0x265)] : 'unclaim_task\x20failed', !![]);
2268
2302
  }
2269
- }), _0x249066[_0x2999fe(_0x3a1e3c._0x402d72)]('update_task_status', _0x2999fe(0x226), {
2270
- 'channel': _0x181077[_0x2999fe(_0x3a1e3c._0x54dd3d)](),
2271
- 'task_number': _0x181077[_0x2999fe(0x2a6)](),
2272
- 'subtask_number': _0x181077[_0x2999fe(0x2a6)]()[_0x2999fe(0x22a)](),
2273
- 'status': _0x181077[_0x2999fe(0x167)]([
2274
- _0x2999fe(_0x3a1e3c._0x1e2e08),
2275
- _0x2999fe(0x1da),
2276
- _0x2999fe(_0x3a1e3c._0x57c59c),
2277
- _0x2999fe(0x1bf)
2303
+ }), _0x3a25ef[_0xe4c08e(0x215)](_0xe4c08e(_0x3ee18f._0x23e4d1), _0xe4c08e(_0x3ee18f._0x34bd03), {
2304
+ 'channel': _0xaad158[_0xe4c08e(0x2d0)](),
2305
+ 'task_number': _0xaad158[_0xe4c08e(_0x3ee18f._0x5ff3e2)](),
2306
+ 'subtask_number': _0xaad158[_0xe4c08e(0x280)]()['optional'](),
2307
+ 'status': _0xaad158['enum']([
2308
+ _0xe4c08e(_0x3ee18f._0xcacbc7),
2309
+ 'in_progress',
2310
+ 'in_review',
2311
+ _0xe4c08e(_0x3ee18f._0x2e6194)
2278
2312
  ]),
2279
- 'idempotency_key': _0x181077['string']()[_0x2999fe(0x22a)]()
2280
- }, async _0x4383c4 => {
2281
- const _0x3d0696 = _0x2999fe;
2313
+ 'idempotency_key': _0xaad158['string']()[_0xe4c08e(0x320)]()
2314
+ }, async _0x1e1d0e => {
2315
+ const _0x4f0716 = _0xe4c08e;
2282
2316
  try {
2283
- return textResult(await _0x4ff5b4['update_task_status'](_0x4383c4));
2284
- } catch (_0xa88b9c) {
2285
- return textResult(_0xa88b9c instanceof Error ? _0xa88b9c['message'] : _0x3d0696(_0x5c9cb3._0x37fd52), !![]);
2317
+ return textResult(await _0x2d36e3[_0x4f0716(0x2f1)](_0x1e1d0e));
2318
+ } catch (_0x123db2) {
2319
+ return textResult(_0x123db2 instanceof Error ? _0x123db2[_0x4f0716(0x265)] : _0x4f0716(0x22d), !![]);
2286
2320
  }
2287
- }), _0x249066[_0x2999fe(0x28f)](_0x2999fe(0x19d), _0x2999fe(_0x3a1e3c._0x2a453a), {
2288
- 'channel': _0x181077[_0x2999fe(_0x3a1e3c._0x2ffc49)](),
2289
- 'file_path': _0x181077[_0x2999fe(_0x3a1e3c._0x363778)]()
2290
- }, async _0x3c76e2 => {
2291
- const _0x362de8 = _0x2999fe;
2321
+ }), _0x3a25ef['tool']('upload_file', _0xe4c08e(_0x3ee18f._0x2b4921), {
2322
+ 'channel': _0xaad158[_0xe4c08e(_0x3ee18f._0x584dc7)](),
2323
+ 'file_path': _0xaad158[_0xe4c08e(0x2d0)]()
2324
+ }, async _0x37cb5a => {
2325
+ const _0x523f41 = _0xe4c08e;
2292
2326
  try {
2293
- return textResult(await _0x4ff5b4[_0x362de8(0x19d)](_0x3c76e2));
2294
- } catch (_0xe977b3) {
2295
- return textResult(_0xe977b3 instanceof Error ? _0xe977b3['message'] : 'upload_file\x20failed', !![]);
2327
+ return textResult(await _0x2d36e3[_0x523f41(_0x4b90ce._0x3391e3)](_0x37cb5a));
2328
+ } catch (_0x5d62d8) {
2329
+ return textResult(_0x5d62d8 instanceof Error ? _0x5d62d8[_0x523f41(_0x4b90ce._0x41afb8)] : _0x523f41(_0x4b90ce._0x3815c8), !![]);
2296
2330
  }
2297
- }), _0x249066['tool'](_0x2999fe(_0x3a1e3c._0x30174e), _0x2999fe(_0x3a1e3c._0x252f2f), { 'attachment_id': _0x181077['string']() }, async _0x27fc7d => {
2298
- const _0x8a96a0 = _0x2999fe;
2331
+ }), _0x3a25ef[_0xe4c08e(0x215)](_0xe4c08e(0x275), _0xe4c08e(_0x3ee18f._0x3b2b81), { 'attachment_id': _0xaad158['string']() }, async _0x2b29f6 => {
2332
+ const _0x175064 = _0xe4c08e;
2299
2333
  try {
2300
- return textResult(await _0x4ff5b4[_0x8a96a0(_0x7398ef._0x475eb8)](_0x27fc7d));
2301
- } catch (_0x1daae1) {
2302
- return textResult(_0x1daae1 instanceof Error ? _0x1daae1[_0x8a96a0(0x1d7)] : _0x8a96a0(0x1d0), !![]);
2334
+ return textResult(await _0x2d36e3[_0x175064(_0x25bf1c._0x4fa564)](_0x2b29f6));
2335
+ } catch (_0x56f627) {
2336
+ return textResult(_0x56f627 instanceof Error ? _0x56f627[_0x175064(_0x25bf1c._0xd24a6b)] : _0x175064(_0x25bf1c._0x1b77d3), !![]);
2303
2337
  }
2304
- }), _0x249066[_0x2999fe(_0x3a1e3c._0x402d72)](_0x2999fe(_0x3a1e3c._0x1f358c), 'Check\x20the\x20current\x20status\x20of\x20a\x20spawned\x20worker\x20by\x20its\x20work\x20key.', { 'work_key': _0x181077[_0x2999fe(_0x3a1e3c._0x626b8d)]() }, async _0x737ab2 => {
2305
- const _0x2df235 = _0x2999fe;
2338
+ }), _0x3a25ef['tool'](_0xe4c08e(_0x3ee18f._0x184f9f), _0xe4c08e(0x35a), { 'work_key': _0xaad158[_0xe4c08e(_0x3ee18f._0x52bee2)]() }, async _0x1c9d10 => {
2339
+ const _0x272077 = _0xe4c08e;
2306
2340
  try {
2307
- return textResult(await _0x4ff5b4[_0x2df235(0x190)](_0x737ab2));
2308
- } catch (_0x2c8afd) {
2309
- return textResult(_0x2c8afd instanceof Error ? _0x2c8afd[_0x2df235(0x1d7)] : 'get_worker_status\x20failed', !![]);
2341
+ return textResult(await _0x2d36e3[_0x272077(0x301)](_0x1c9d10));
2342
+ } catch (_0x18b5eb) {
2343
+ return textResult(_0x18b5eb instanceof Error ? _0x18b5eb[_0x272077(_0x5f2285._0x2c26ec)] : _0x272077(0x2d6), !![]);
2310
2344
  }
2311
- }), _0x249066['tool'](_0x2999fe(_0x3a1e3c._0x33e84d), _0x2999fe(0x1a1), { 'work_key': _0x181077[_0x2999fe(0x2e2)]() }, async _0x3d4ff6 => {
2312
- const _0x586bbb = _0x2999fe;
2345
+ }), _0x3a25ef[_0xe4c08e(_0x3ee18f._0x544c81)](_0xe4c08e(0x347), _0xe4c08e(0x345), { 'work_key': _0xaad158[_0xe4c08e(0x2d0)]() }, async _0x25069e => {
2346
+ const _0x4ca39c = _0xe4c08e;
2313
2347
  try {
2314
- return textResult(await _0x4ff5b4['park_worker'](_0x3d4ff6));
2315
- } catch (_0x3da7d9) {
2316
- return textResult(_0x3da7d9 instanceof Error ? _0x3da7d9[_0x586bbb(0x1d7)] : 'park_worker\x20failed', !![]);
2348
+ return textResult(await _0x2d36e3[_0x4ca39c(_0x240658._0x23c692)](_0x25069e));
2349
+ } catch (_0x780645) {
2350
+ return textResult(_0x780645 instanceof Error ? _0x780645[_0x4ca39c(_0x240658._0x5a1ac0)] : 'park_worker\x20failed', !![]);
2317
2351
  }
2318
- }), _0x249066['tool']('escalate_to_main', _0x2999fe(_0x3a1e3c._0xcd0591), {
2319
- 'work_key': _0x181077[_0x2999fe(_0x3a1e3c._0x626b8d)](),
2320
- 'reason': _0x181077['string']()
2321
- }, async _0x2147ed => {
2322
- const _0x179c7f = _0x2999fe;
2352
+ }), !_0x198250?.[_0xe4c08e(_0x3ee18f._0x420b87)] && _0x3a25ef[_0xe4c08e(0x215)]('escalate_to_main', 'Escalate\x20an\x20issue\x20to\x20the\x20main\x20agent\x20session.\x20Use\x20when\x20the\x20worker\x20cannot\x20resolve\x20a\x20problem\x20alone\x20and\x20needs\x20main\x20to\x20intervene.', {
2353
+ 'work_key': _0xaad158[_0xe4c08e(_0x3ee18f._0x52bee2)](),
2354
+ 'reason': _0xaad158[_0xe4c08e(_0x3ee18f._0x2c9073)]()
2355
+ }, async _0x560769 => {
2356
+ const _0x4ba69f = _0xe4c08e;
2323
2357
  try {
2324
- return textResult(await _0x4ff5b4['escalate_to_main'](_0x2147ed));
2325
- } catch (_0x48f3f3) {
2326
- return textResult(_0x48f3f3 instanceof Error ? _0x48f3f3[_0x179c7f(0x1d7)] : _0x179c7f(_0x194673._0x39d883), !![]);
2358
+ return textResult(await _0x2d36e3[_0x4ba69f(_0x4b8b06._0x20bfd9)](_0x560769));
2359
+ } catch (_0x579921) {
2360
+ return textResult(_0x579921 instanceof Error ? _0x579921[_0x4ba69f(0x265)] : 'escalate_to_main\x20failed', !![]);
2327
2361
  }
2328
- }), _0x11f301?.[_0x2999fe(0x284)] && _0x249066[_0x2999fe(0x28f)](_0x2999fe(_0x3a1e3c._0x3bc430), _0x2999fe(_0x3a1e3c._0x49fef8), { 'work_key': _0x181077[_0x2999fe(_0x3a1e3c._0x38d98f)]() }, async _0x67c234 => {
2329
- const _0x4549d8 = _0x2999fe;
2362
+ }), _0x198250?.[_0xe4c08e(_0x3ee18f._0x3055cb)] && _0x3a25ef['tool']('mark_waiting_input', _0xe4c08e(0x33f), { 'work_key': _0xaad158[_0xe4c08e(0x2d0)]() }, async _0x47c568 => {
2363
+ const _0x11e88e = _0xe4c08e;
2330
2364
  try {
2331
- return textResult(await _0x4ff5b4[_0x4549d8(0x272)](_0x67c234));
2332
- } catch (_0x1f61fa) {
2333
- return textResult(_0x1f61fa instanceof Error ? _0x1f61fa['message'] : _0x4549d8(0x23c), !![]);
2365
+ return textResult(await _0x2d36e3['mark_waiting_input'](_0x47c568));
2366
+ } catch (_0x1cb9e8) {
2367
+ return textResult(_0x1cb9e8 instanceof Error ? _0x1cb9e8[_0x11e88e(0x265)] : 'mark_waiting_input\x20failed', !![]);
2334
2368
  }
2335
2369
  });
2336
2370
  }
2337
- async function createChatBridgeServer(_0x556114) {
2338
- const _0x9bd8a = {
2339
- _0x2b9df3: 0x1f5,
2340
- _0x267eb1: 0x284
2341
- }, _0x9f8ea2 = _0x36c0a2, {McpServer: _0x51b098} = await import(_0x9f8ea2(_0x9bd8a._0x2b9df3)), _0x316684 = new _0x51b098({
2342
- 'name': _0x9f8ea2(0x160),
2343
- 'version': _0x9f8ea2(0x236)
2344
- }), _0x12f0a3 = createChatBridgeHandlers(_0x556114);
2345
- return await registerChatBridgeTools(_0x316684, _0x12f0a3, { 'workerMode': _0x556114[_0x9f8ea2(_0x9bd8a._0x267eb1)] }), {
2346
- 'handlers': _0x12f0a3,
2347
- 'server': _0x316684
2371
+ async function createChatBridgeServer(_0x2857df) {
2372
+ const _0x4e3867 = { _0x1c814d: 0x32a }, _0x15cf3a = _0x57701d, {McpServer: _0x830fe8} = await import('@modelcontextprotocol/sdk/server/mcp.js'), _0x203eed = new _0x830fe8({
2373
+ 'name': _0x15cf3a(0x29c),
2374
+ 'version': _0x15cf3a(_0x4e3867._0x1c814d)
2375
+ }), _0x4d5bab = createChatBridgeHandlers(_0x2857df);
2376
+ return await registerChatBridgeTools(_0x203eed, _0x4d5bab, { 'workerMode': _0x2857df['workerMode'] }), {
2377
+ 'handlers': _0x4d5bab,
2378
+ 'server': _0x203eed
2348
2379
  };
2349
2380
  }
2350
- function readFlag(_0x5f106b, _0x11e93a) {
2351
- const _0x1dbf2e = _0x36c0a2, _0x5480e4 = _0x5f106b[_0x1dbf2e(0x1ab)](_0x11e93a);
2352
- if (_0x5480e4 === -0x1)
2381
+ function readFlag(_0xbbd417, _0x367ef6) {
2382
+ const _0x54317e = _0x57701d, _0x24d6f7 = _0xbbd417[_0x54317e(0x263)](_0x367ef6);
2383
+ if (_0x24d6f7 === -0x1)
2353
2384
  return void 0x0;
2354
- return _0x5f106b[_0x5480e4 + 0x1];
2385
+ return _0xbbd417[_0x24d6f7 + 0x1];
2355
2386
  }
2356
- function parseChatBridgeArgs(_0x2d3adb) {
2357
- const _0x5882fd = {
2358
- _0x386b62: 0x1bd,
2359
- _0x21f7e: 0x2a3,
2360
- _0x5607ab: 0x26f,
2361
- _0x3edae7: 0x1f9,
2362
- _0x4c62d6: 0x2bb,
2363
- _0x1ff7d4: 0x1e7,
2364
- _0x416291: 0x1f1,
2365
- _0x32f59d: 0x298,
2366
- _0x3ff66e: 0x244
2367
- }, _0x2f14b6 = _0x36c0a2, _0xb0e7bd = readFlag(_0x2d3adb, _0x2f14b6(0x2d8)), _0xd4cf8a = readFlag(_0x2d3adb, '--attachment-cache-dir'), _0x237f36 = readFlag(_0x2d3adb, '--daemon-api-key'), _0x68cbbf = readFlag(_0x2d3adb, _0x2f14b6(0x1b5)), _0x4895eb = readFlag(_0x2d3adb, _0x2f14b6(_0x5882fd._0x386b62)) ?? 'http://localhost:8121', _0x2dbf67 = readFlag(_0x2d3adb, _0x2f14b6(_0x5882fd._0x21f7e)), _0x1b9694 = readFlag(_0x2d3adb, '--session-id'), _0x5ea76d = readFlag(_0x2d3adb, _0x2f14b6(0x22c)), _0x15e29 = readFlag(_0x2d3adb, _0x2f14b6(_0x5882fd._0x5607ab)), _0x1a70ec = readFlag(_0x2d3adb, '--worker-thread-target'), _0x324b1e = _0x2d3adb[_0x2f14b6(0x18a)](_0x2f14b6(_0x5882fd._0x3edae7)), _0x12ea7a = _0x68cbbf === void 0x0 ? void 0x0 : Number[_0x2f14b6(_0x5882fd._0x4c62d6)](_0x68cbbf, 0xa);
2368
- if (!_0xb0e7bd)
2369
- throw new Error(_0x2f14b6(_0x5882fd._0x1ff7d4));
2370
- if (!_0x237f36)
2371
- throw new Error(_0x2f14b6(_0x5882fd._0x416291));
2372
- if (_0x68cbbf !== void 0x0 && (_0x12ea7a === void 0x0 || !Number[_0x2f14b6(_0x5882fd._0x32f59d)](_0x12ea7a) || _0x12ea7a < 0x0))
2373
- throw new Error(_0x2f14b6(0x2b8));
2387
+ function parseChatBridgeArgs(_0x4c0d43) {
2388
+ const _0x3d7d40 = {
2389
+ _0x448ce0: 0x311,
2390
+ _0x2c2736: 0x35e,
2391
+ _0x2d5e09: 0x23e,
2392
+ _0x5ce2c2: 0x366,
2393
+ _0x363f27: 0x354,
2394
+ _0x8f55b0: 0x205,
2395
+ _0x5d36a7: 0x35b,
2396
+ _0x519d41: 0x28b,
2397
+ _0x36c49e: 0x319
2398
+ }, _0x378fc4 = _0x57701d, _0x1dbaef = readFlag(_0x4c0d43, _0x378fc4(_0x3d7d40._0x448ce0)), _0x17f8a6 = readFlag(_0x4c0d43, _0x378fc4(0x211)), _0x53583a = readFlag(_0x4c0d43, _0x378fc4(0x323)), _0x504d2b = readFlag(_0x4c0d43, '--initial-last-seen-seq'), _0x2c3386 = readFlag(_0x4c0d43, _0x378fc4(_0x3d7d40._0x2c2736)) ?? _0x378fc4(_0x3d7d40._0x2d5e09), _0x33acd8 = readFlag(_0x4c0d43, '--daemon-local-url'), _0x50e8c2 = readFlag(_0x4c0d43, _0x378fc4(0x23b)), _0x321f3c = readFlag(_0x4c0d43, _0x378fc4(_0x3d7d40._0x5ce2c2)), _0x1b815a = readFlag(_0x4c0d43, _0x378fc4(0x331)), _0x1a48b9 = readFlag(_0x4c0d43, _0x378fc4(0x257)), _0x4b0027 = _0x4c0d43[_0x378fc4(0x2b8)](_0x378fc4(0x2cd)), _0x476626 = _0x504d2b === void 0x0 ? void 0x0 : Number[_0x378fc4(_0x3d7d40._0x363f27)](_0x504d2b, 0xa);
2399
+ if (!_0x1dbaef)
2400
+ throw new Error(_0x378fc4(0x27d));
2401
+ if (!_0x53583a)
2402
+ throw new Error(_0x378fc4(_0x3d7d40._0x8f55b0));
2403
+ if (_0x504d2b !== void 0x0 && (_0x476626 === void 0x0 || !Number[_0x378fc4(_0x3d7d40._0x5d36a7)](_0x476626) || _0x476626 < 0x0))
2404
+ throw new Error(_0x378fc4(_0x3d7d40._0x519d41));
2374
2405
  return {
2375
- 'agentId': _0xb0e7bd,
2376
- 'attachmentCacheDir': _0xd4cf8a,
2377
- 'daemonApiKey': _0x237f36,
2378
- 'daemonLocalUrl': _0x2dbf67,
2379
- 'initialLastSeenSeq': _0x12ea7a,
2380
- 'sessionId': _0x1b9694,
2381
- 'serverUrl': _0x4895eb,
2382
- 'workerModeEnabled': _0x5ea76d === void 0x0 ? void 0x0 : _0x5ea76d !== _0x2f14b6(_0x5882fd._0x3ff66e),
2383
- 'workerSessionId': _0x15e29,
2384
- 'workerThreadTarget': _0x1a70ec,
2385
- 'workerMode': _0x324b1e
2406
+ 'agentId': _0x1dbaef,
2407
+ 'attachmentCacheDir': _0x17f8a6,
2408
+ 'daemonApiKey': _0x53583a,
2409
+ 'daemonLocalUrl': _0x33acd8,
2410
+ 'initialLastSeenSeq': _0x476626,
2411
+ 'sessionId': _0x50e8c2,
2412
+ 'serverUrl': _0x2c3386,
2413
+ 'workerModeEnabled': _0x321f3c === void 0x0 ? void 0x0 : _0x321f3c !== _0x378fc4(_0x3d7d40._0x36c49e),
2414
+ 'workerSessionId': _0x1b815a,
2415
+ 'workerThreadTarget': _0x1a48b9,
2416
+ 'workerMode': _0x4b0027
2386
2417
  };
2387
2418
  }
2388
- async function runChatBridgeCli(_0x5656df) {
2389
- const _0x25aa3b = {
2390
- _0x4c73cb: 0x1f7,
2391
- _0x460568: 0x284,
2392
- _0x330b3d: 0x21a
2393
- }, _0x2ac883 = _0x36c0a2, _0xb5ecd6 = parseChatBridgeArgs(_0x5656df), {StdioServerTransport: _0x237866} = await import(_0x2ac883(0x172)), _0x553389 = createInternalAgentClient(_0xb5ecd6), _0x3253f5 = createAttachmentCache({ 'cacheDir': _0xb5ecd6[_0x2ac883(0x221)] }), _0x197852 = await createChatBridgeServer({
2394
- 'agentId': _0xb5ecd6[_0x2ac883(_0x25aa3b._0x4c73cb)],
2395
- 'attachmentCache': _0x3253f5,
2396
- 'client': _0x553389,
2397
- 'daemonLocalUrl': _0xb5ecd6[_0x2ac883(0x2cc)],
2419
+ async function runChatBridgeCli(_0x3a0b98) {
2420
+ const _0x3f05a0 = {
2421
+ _0xe7297e: 0x33e,
2422
+ _0x7f61: 0x28e,
2423
+ _0x1abf5b: 0x240
2424
+ }, _0x1ed473 = _0x57701d, _0x2b2445 = parseChatBridgeArgs(_0x3a0b98), {StdioServerTransport: _0x1a173b} = await import(_0x1ed473(0x2cc)), _0x42c33f = createInternalAgentClient(_0x2b2445), _0x191c4f = createAttachmentCache({ 'cacheDir': _0x2b2445['attachmentCacheDir'] }), _0x3d6dfe = await createChatBridgeServer({
2425
+ 'agentId': _0x2b2445['agentId'],
2426
+ 'attachmentCache': _0x191c4f,
2427
+ 'client': _0x42c33f,
2428
+ 'daemonLocalUrl': _0x2b2445[_0x1ed473(0x2a9)],
2398
2429
  'uploadPreparer': prepareUploadFile,
2399
- 'workerModeEnabled': _0xb5ecd6['workerModeEnabled'],
2400
- 'workerMode': _0xb5ecd6[_0x2ac883(_0x25aa3b._0x460568)],
2401
- 'workerThreadTarget': _0xb5ecd6['workerThreadTarget']
2430
+ 'workerModeEnabled': _0x2b2445[_0x1ed473(_0x3f05a0._0xe7297e)],
2431
+ 'workerMode': _0x2b2445[_0x1ed473(_0x3f05a0._0x7f61)],
2432
+ 'workerThreadTarget': _0x2b2445[_0x1ed473(0x2e2)]
2402
2433
  });
2403
- await _0x197852['server'][_0x2ac883(_0x25aa3b._0x330b3d)](new _0x237866());
2434
+ await _0x3d6dfe[_0x1ed473(_0x3f05a0._0x1abf5b)][_0x1ed473(0x228)](new _0x1a173b());
2404
2435
  }
2405
- var executedAsEntry = process[_0x36c0a2(0x1bc)][0x1] ? import.meta.url === pathToFileURL(process[_0x36c0a2(0x1bc)][0x1])['href'] : ![];
2406
- executedAsEntry && await runChatBridgeCli(process[_0x36c0a2(0x1bc)][_0x36c0a2(0x189)](0x2));
2436
+ var executedAsEntry = process[_0x57701d(0x365)][0x1] ? import.meta.url === pathToFileURL(process['argv'][0x1])[_0x57701d(0x241)] : ![];
2437
+ executedAsEntry && await runChatBridgeCli(process[_0x57701d(0x365)][_0x57701d(0x29d)](0x2));
2407
2438
  export {
2408
2439
  createChatBridgeHandlers,
2409
2440
  createChatBridgeServer,