@private.me/xbind 1.3.0 → 1.3.5

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 (68) hide show
  1. package/README.md +2 -2
  2. package/dist-standalone/_deps/crypto/base64.js +183 -170
  3. package/dist-standalone/_deps/crypto/cjs/base64.js +653 -91
  4. package/dist-standalone/_deps/crypto/cjs/errors.js +658 -102
  5. package/dist-standalone/_deps/crypto/cjs/hmac.js +468 -66
  6. package/dist-standalone/_deps/crypto/cjs/index.js +848 -82
  7. package/dist-standalone/_deps/crypto/cjs/package.json +1 -0
  8. package/dist-standalone/_deps/crypto/cjs/padding.js +504 -50
  9. package/dist-standalone/_deps/crypto/cjs/share-header.js +369 -65
  10. package/dist-standalone/_deps/crypto/cjs/shares.js +865 -143
  11. package/dist-standalone/_deps/crypto/cjs/tlv.js +1005 -183
  12. package/dist-standalone/_deps/crypto/cjs/uuid.js +437 -55
  13. package/dist-standalone/_deps/crypto/cjs/verify.js +414 -24
  14. package/dist-standalone/_deps/crypto/cjs/xorida.js +888 -186
  15. package/dist-standalone/_deps/crypto/errors.js +179 -89
  16. package/dist-standalone/_deps/crypto/hmac.js +129 -61
  17. package/dist-standalone/_deps/crypto/index.js +140 -40
  18. package/dist-standalone/_deps/crypto/padding.js +151 -45
  19. package/dist-standalone/_deps/crypto/share-header.js +89 -60
  20. package/dist-standalone/_deps/crypto/shares.js +280 -133
  21. package/dist-standalone/_deps/crypto/tlv.js +348 -179
  22. package/dist-standalone/_deps/crypto/uuid.js +130 -50
  23. package/dist-standalone/_deps/crypto/verify.js +71 -15
  24. package/dist-standalone/_deps/crypto/xorida.js +332 -181
  25. package/dist-standalone/_deps/shared/cjs/errors.js +572 -208
  26. package/dist-standalone/_deps/shared/cjs/index.js +443 -85
  27. package/dist-standalone/_deps/shared/cjs/types.js +284 -57
  28. package/dist-standalone/_deps/shared/errors.js +192 -199
  29. package/dist-standalone/_deps/shared/index.js +48 -51
  30. package/dist-standalone/_deps/shared/types.js +56 -57
  31. package/dist-standalone/_deps/ux-helpers/cjs/errors.js +1 -1
  32. package/dist-standalone/_deps/ux-helpers/cjs/pagination.js +1 -1
  33. package/dist-standalone/_deps/ux-helpers/cjs/progress.js +1 -1
  34. package/dist-standalone/_deps/ux-helpers/cjs/search.js +1 -1
  35. package/dist-standalone/_deps/ux-helpers/errors.js +1 -1
  36. package/dist-standalone/_deps/ux-helpers/pagination.js +1 -1
  37. package/dist-standalone/_deps/ux-helpers/progress.js +1 -1
  38. package/dist-standalone/_deps/ux-helpers/search.js +1 -1
  39. package/dist-standalone/_deps/xchange/auto-accept.js +1 -1
  40. package/dist-standalone/_deps/xchange/cjs/auto-accept.js +1 -1
  41. package/dist-standalone/_deps/xchange/cjs/errors.js +1 -1
  42. package/dist-standalone/_deps/xchange/cjs/index.js +1 -1
  43. package/dist-standalone/_deps/xchange/cjs/invite-client.js +1 -1
  44. package/dist-standalone/_deps/xchange/cjs/lazy-init.js +1 -1
  45. package/dist-standalone/_deps/xchange/cjs/trust-integration.js +1 -1
  46. package/dist-standalone/_deps/xchange/cjs/xchange.js +1 -1
  47. package/dist-standalone/_deps/xchange/errors.js +1 -1
  48. package/dist-standalone/_deps/xchange/index.js +1 -1
  49. package/dist-standalone/_deps/xchange/invite-client.js +1 -1
  50. package/dist-standalone/_deps/xchange/lazy-init.js +1 -1
  51. package/dist-standalone/_deps/xchange/trust-integration.js +1 -1
  52. package/dist-standalone/_deps/xchange/xchange.js +1 -1
  53. package/dist-standalone/_deps/xregistry/cjs/discovery.js +1 -1
  54. package/dist-standalone/_deps/xregistry/cjs/errors.js +1 -1
  55. package/dist-standalone/_deps/xregistry/cjs/index.js +1 -1
  56. package/dist-standalone/_deps/xregistry/cjs/registry.js +1 -1
  57. package/dist-standalone/_deps/xregistry/cjs/schema.js +1 -1
  58. package/dist-standalone/_deps/xregistry/cjs/types.js +1 -1
  59. package/dist-standalone/_deps/xregistry/discovery.js +1 -1
  60. package/dist-standalone/_deps/xregistry/errors.js +1 -1
  61. package/dist-standalone/_deps/xregistry/index.js +1 -1
  62. package/dist-standalone/_deps/xregistry/registry.js +1 -1
  63. package/dist-standalone/_deps/xregistry/schema.js +1 -1
  64. package/dist-standalone/_deps/xregistry/types.js +1 -1
  65. package/dist-standalone/cjs/identity.js +2 -3
  66. package/dist-standalone/identity.js +2 -3
  67. package/package.json +2 -1
  68. package/share1.dat +0 -0
@@ -1,199 +1,1021 @@
1
- "use strict";
2
- /**
3
- * TLV (Type-Length-Value) serialization for Xail messages.
4
- *
5
- * Format: [Type: 1 byte][Length: 4 bytes uint32 BE][Value: Length bytes]
6
- *
7
- * Serialization order: MESSAGE_UUID, SENDER_ID, TIMESTAMP, CONTENT_TYPE,
8
- * MESSAGE_BODY, ATTACHMENT(s).
9
- *
10
- * HMAC key/signature and per-share metadata are NOT in the TLV payload —
11
- * they travel in the share envelope.
12
- */
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.serializeMessage = serializeMessage;
15
- exports.deserializeMessage = deserializeMessage;
16
- const shared_1 = require("../../shared/index.js");
17
- const uuid_js_1 = require("./uuid.js");
18
- const TEXT_ENCODER = new TextEncoder();
19
- const TEXT_DECODER = new TextDecoder();
20
- /**
21
- * Serialize a XailMessage into a TLV byte stream.
22
- *
23
- * @param message - Message to serialize
24
- * @returns TLV-encoded byte array
25
- */
26
- function serializeMessage(message) {
27
- const parts = [];
28
- // MESSAGE_UUID
29
- parts.push(encodeTlv(shared_1.TLV_TYPE.MESSAGE_UUID, (0, uuid_js_1.uuidToBytes)(message.uuid)));
30
- // SENDER_ID
31
- parts.push(encodeTlv(shared_1.TLV_TYPE.SENDER_ID, TEXT_ENCODER.encode(message.sender.name)));
32
- // SENDER_EMAIL (optional — preserves sender's email across reconstruction)
33
- const senderEmail = message.sender.channels[0]?.email;
34
- if (senderEmail) {
35
- parts.push(encodeTlv(shared_1.TLV_TYPE.SENDER_EMAIL, TEXT_ENCODER.encode(senderEmail)));
1
+ 'use strict';
2
+ const a7_0x4b0c21 = a7_0x12db;
3
+ (function (_0x204ecc, _0x3acc81) {
4
+ const a7_0x191df8 = {
5
+ _0x4ac624: 0x1f4,
6
+ _0x511ae1: 0x231,
7
+ _0x2a3119: 0x2ac,
8
+ _0x1b19de: 0x202,
9
+ _0x5452ad: 0x2a5
10
+ }, _0x5125fc = a7_0x12db, _0x2c91d5 = _0x204ecc();
11
+ while (!![]) {
12
+ try {
13
+ const _0x53943d = parseInt(_0x5125fc(a7_0x191df8._0x4ac624)) / 0x1 * (parseInt(_0x5125fc(0x28a)) / 0x2) + -parseInt(_0x5125fc(a7_0x191df8._0x511ae1)) / 0x3 * (-parseInt(_0x5125fc(0x211)) / 0x4) + -parseInt(_0x5125fc(0x1f3)) / 0x5 * (parseInt(_0x5125fc(0x266)) / 0x6) + parseInt(_0x5125fc(0x240)) / 0x7 * (parseInt(_0x5125fc(0x244)) / 0x8) + parseInt(_0x5125fc(a7_0x191df8._0x2a3119)) / 0x9 * (parseInt(_0x5125fc(a7_0x191df8._0x1b19de)) / 0xa) + parseInt(_0x5125fc(a7_0x191df8._0x5452ad)) / 0xb + -parseInt(_0x5125fc(0x26d)) / 0xc;
14
+ if (_0x53943d === _0x3acc81)
15
+ break;
16
+ else
17
+ _0x2c91d5['push'](_0x2c91d5['shift']());
18
+ } catch (_0x3be0ba) {
19
+ _0x2c91d5['push'](_0x2c91d5['shift']());
20
+ }
36
21
  }
37
- // TIMESTAMP (8 bytes, uint64 big-endian)
38
- const tsBuf = new Uint8Array(8);
39
- const tsView = new DataView(tsBuf.buffer);
40
- // Split into high 32 and low 32 bits
41
- tsView.setUint32(0, Math.floor(message.timestamp / 0x100000000));
42
- tsView.setUint32(4, message.timestamp >>> 0);
43
- parts.push(encodeTlv(shared_1.TLV_TYPE.TIMESTAMP, tsBuf));
44
- // CONTENT_TYPE
45
- parts.push(encodeTlv(shared_1.TLV_TYPE.CONTENT_TYPE, TEXT_ENCODER.encode(message.contentType)));
46
- // MESSAGE_SUBJECT (optional)
47
- if (message.subject) {
48
- parts.push(encodeTlv(shared_1.TLV_TYPE.MESSAGE_SUBJECT, TEXT_ENCODER.encode(message.subject)));
22
+ }(a7_0x4d54, 0x936ca));
23
+ const a8_0x3eeead = a8_0x163e;
24
+ function a7_0x12db(_0x5767a0, _0x556d08) {
25
+ _0x5767a0 = _0x5767a0 - 0x1ee;
26
+ const _0x4d54d3 = a7_0x4d54();
27
+ let _0x12dbd5 = _0x4d54d3[_0x5767a0];
28
+ if (a7_0x12db['LgSrOi'] === undefined) {
29
+ var _0x10029d = function (_0x580192) {
30
+ const _0x1b5ecd = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
31
+ let _0xc450f5 = '', _0x590d44 = '';
32
+ for (let _0x2a4cb3 = 0x0, _0x2cb674, _0x3c07b1, _0xdd50b9 = 0x0; _0x3c07b1 = _0x580192['charAt'](_0xdd50b9++); ~_0x3c07b1 && (_0x2cb674 = _0x2a4cb3 % 0x4 ? _0x2cb674 * 0x40 + _0x3c07b1 : _0x3c07b1, _0x2a4cb3++ % 0x4) ? _0xc450f5 += String['fromCharCode'](0xff & _0x2cb674 >> (-0x2 * _0x2a4cb3 & 0x6)) : 0x0) {
33
+ _0x3c07b1 = _0x1b5ecd['indexOf'](_0x3c07b1);
34
+ }
35
+ for (let _0x7ecc02 = 0x0, _0x2f48e0 = _0xc450f5['length']; _0x7ecc02 < _0x2f48e0; _0x7ecc02++) {
36
+ _0x590d44 += '%' + ('00' + _0xc450f5['charCodeAt'](_0x7ecc02)['toString'](0x10))['slice'](-0x2);
37
+ }
38
+ return decodeURIComponent(_0x590d44);
39
+ };
40
+ a7_0x12db['IlVvZZ'] = _0x10029d, a7_0x12db['amxqhm'] = {}, a7_0x12db['LgSrOi'] = !![];
49
41
  }
50
- // MESSAGE_BODY
51
- parts.push(encodeTlv(shared_1.TLV_TYPE.MESSAGE_BODY, TEXT_ENCODER.encode(message.body)));
52
- // ATTACHMENTs
53
- for (const att of message.attachments) {
54
- parts.push(encodeTlv(shared_1.TLV_TYPE.ATTACHMENT, encodeAttachment(att)));
42
+ const _0x2eacbd = _0x4d54d3[0x0], _0x4c6212 = _0x5767a0 + _0x2eacbd, _0x1f438d = a7_0x12db['amxqhm'][_0x4c6212];
43
+ return !_0x1f438d ? (_0x12dbd5 = a7_0x12db['IlVvZZ'](_0x12dbd5), a7_0x12db['amxqhm'][_0x4c6212] = _0x12dbd5) : _0x12dbd5 = _0x1f438d, _0x12dbd5;
44
+ }
45
+ (function (_0x1b7a49, _0x26d9ef) {
46
+ const a7_0x410cb8 = {
47
+ _0x4aacb4: 0x227,
48
+ _0x482472: 0x265,
49
+ _0x201bbf: 0x250,
50
+ _0x4a309e: 0x2b6,
51
+ _0x149c3c: 0x201,
52
+ _0x53d278: 0x201,
53
+ _0x5de371: 0x1f1,
54
+ _0x50c32d: 0x208
55
+ }, _0x101fa2 = a7_0x12db, _0x3001b8 = {
56
+ 'Jektq': function (_0x2b0832) {
57
+ return _0x2b0832();
58
+ },
59
+ 'urXby': function (_0x47272d, _0x4ef36e) {
60
+ return _0x47272d + _0x4ef36e;
61
+ },
62
+ 'VAWQp': function (_0x552d3d, _0x5c86f9) {
63
+ return _0x552d3d / _0x5c86f9;
64
+ },
65
+ 'nsIro': function (_0xd5e747, _0x297754) {
66
+ return _0xd5e747(_0x297754);
67
+ },
68
+ 'oPjxH': function (_0x31a0c1, _0x51b991) {
69
+ return _0x31a0c1(_0x51b991);
70
+ },
71
+ 'IIOjm': function (_0x6bde4a, _0x41bb01) {
72
+ return _0x6bde4a(_0x41bb01);
73
+ },
74
+ 'NvGSs': function (_0x5c5ff8, _0x3e5ecf) {
75
+ return _0x5c5ff8(_0x3e5ecf);
76
+ },
77
+ 'ZauXy': function (_0x4e48d5, _0x3debcd) {
78
+ return _0x4e48d5 / _0x3debcd;
79
+ },
80
+ 'WFtht': function (_0x50708f, _0x12b618) {
81
+ return _0x50708f / _0x12b618;
82
+ },
83
+ 'raTTY': function (_0x5e700b, _0x3a3e58) {
84
+ return _0x5e700b(_0x3a3e58);
85
+ },
86
+ 'YISRh': function (_0x7a404b, _0x27e4ce) {
87
+ return _0x7a404b(_0x27e4ce);
88
+ },
89
+ 'uuueK': 'push',
90
+ 'tKZGg': 'shift'
91
+ }, _0x169fa8 = {
92
+ '_0x4d6c95': 0xb7,
93
+ '_0x52d957': 0x8f
94
+ }, _0xc284da = a8_0x163e, _0x3775d0 = _0x3001b8[_0x101fa2(a7_0x410cb8._0x4aacb4)](_0x1b7a49);
95
+ while (!![]) {
96
+ try {
97
+ const _0x1a8d34 = _0x3001b8[_0x101fa2(a7_0x410cb8._0x482472)](_0x3001b8['VAWQp'](_0x3001b8[_0x101fa2(a7_0x410cb8._0x201bbf)](parseInt, _0xc284da(0xa2)), 0x1) + parseInt(_0xc284da(_0x169fa8[_0x101fa2(a7_0x410cb8._0x4a309e)])) / 0x2 + _0x3001b8[_0x101fa2(a7_0x410cb8._0x149c3c)](_0x3001b8['oPjxH'](parseInt, _0x3001b8[_0x101fa2(0x250)](_0xc284da, _0x169fa8[_0x101fa2(0x21f)])), 0x3) + _0x3001b8[_0x101fa2(a7_0x410cb8._0x53d278)](_0x3001b8[_0x101fa2(0x247)](parseInt, _0x3001b8[_0x101fa2(0x236)](_0xc284da, 0x98)), 0x4), _0x3001b8['ZauXy'](parseInt(_0xc284da(0x7d)), 0x5)) + _0x3001b8[_0x101fa2(a7_0x410cb8._0x5de371)](parseInt(_0x3001b8[_0x101fa2(0x27c)](_0xc284da, 0xa7)), 0x6) + -_0x3001b8['YISRh'](parseInt, _0xc284da(0xb1)) / 0x7;
98
+ if (_0x1a8d34 === _0x26d9ef)
99
+ break;
100
+ else
101
+ _0x3775d0['push'](_0x3775d0[_0x101fa2(0x210)]());
102
+ } catch (_0xec4e9c) {
103
+ _0x3775d0[_0x3001b8[_0x101fa2(a7_0x410cb8._0x50c32d)]](_0x3775d0[_0x3001b8[_0x101fa2(0x291)]]());
104
+ }
55
105
  }
56
- // Concatenate all parts
57
- const totalLen = parts.reduce((sum, p) => sum + p.length, 0);
58
- const result = new Uint8Array(totalLen);
59
- let offset = 0;
60
- for (const part of parts) {
61
- result.set(part, offset);
62
- offset += part.length;
106
+ }(a8_0x3f55, 0x6b240));
107
+ function a8_0x3f55() {
108
+ const a7_0x46a1b4 = {
109
+ _0x3a14e2: 0x24e,
110
+ _0x575fcd: 0x299,
111
+ _0x39f2e3: 0x221,
112
+ _0x415096: 0x2c7,
113
+ _0x1ba4ad: 0x1ff,
114
+ _0x1b22b0: 0x25e,
115
+ _0x524ff6: 0x2d1,
116
+ _0x246299: 0x278,
117
+ _0x468eb8: 0x2a7,
118
+ _0x4312d1: 0x2cd,
119
+ _0x53549f: 0x22b,
120
+ _0x8095a9: 0x20a,
121
+ _0x3c4be9: 0x23d,
122
+ _0x3e8c4b: 0x264,
123
+ _0x36085c: 0x2bc,
124
+ _0xa7b244: 0x22f,
125
+ _0xa05b9d: 0x1f7,
126
+ _0x4d9b64: 0x218,
127
+ _0x553fb3: 0x269,
128
+ _0x5486ed: 0x275,
129
+ _0x56b391: 0x274,
130
+ _0x4d5bfa: 0x237,
131
+ _0x51024e: 0x267,
132
+ _0x17c129: 0x21d,
133
+ _0x71fa4c: 0x279,
134
+ _0x38d47c: 0x22d,
135
+ _0x5afe1e: 0x20c,
136
+ _0x316789: 0x2c1,
137
+ _0x14f268: 0x2bd,
138
+ _0x95e724: 0x238,
139
+ _0x5322a2: 0x23e,
140
+ _0x5d3d82: 0x24c
141
+ }, _0x447a61 = a7_0x12db, _0x88d74d = {
142
+ 'TopII': _0x447a61(a7_0x46a1b4._0x3a14e2),
143
+ 'mirYm': _0x447a61(a7_0x46a1b4._0x575fcd),
144
+ 'mleLA': _0x447a61(a7_0x46a1b4._0x39f2e3),
145
+ 'lPRET': 'DxvPzfrVqNL0zxm',
146
+ 'KWVmx': _0x447a61(0x217),
147
+ 'nVeTu': _0x447a61(0x297),
148
+ 'ubElq': 'z2v0vwLUDdmY',
149
+ 'MiunF': 'mJCWodGZmLj6zffpqq',
150
+ 'oVQet': _0x447a61(0x285),
151
+ 'dJrUh': _0x447a61(a7_0x46a1b4._0x415096),
152
+ 'Zlkjn': _0x447a61(0x280),
153
+ 'RvUBz': _0x447a61(a7_0x46a1b4._0x1ba4ad),
154
+ 'bOwBk': _0x447a61(0x2a2),
155
+ 'YhBaP': _0x447a61(0x1f8),
156
+ 'QfnVy': 'vvvjrcbTDxn0igjLide2igj5DgvZ',
157
+ 'LZhZs': _0x447a61(a7_0x46a1b4._0x1b22b0),
158
+ 'xuKRR': _0x447a61(a7_0x46a1b4._0x524ff6),
159
+ 'Eecdo': 'qhbYAxzHDguUBwuVC2HHCMvK',
160
+ 'PURQG': _0x447a61(0x290),
161
+ 'WKjJp': _0x447a61(a7_0x46a1b4._0x246299),
162
+ 'VepvN': _0x447a61(0x287),
163
+ 'cCYfa': _0x447a61(0x27d),
164
+ 'MhpEr': 'CLvUtee',
165
+ 'yrDso': 'yM9KEq',
166
+ 'zsdxe': _0x447a61(0x1f0),
167
+ 'OKeGN': 'yxr0ywnOBwvUDhm',
168
+ 'KYjyK': _0x447a61(0x2b3),
169
+ 'mEBdl': _0x447a61(0x214),
170
+ 'hWSke': _0x447a61(0x24a),
171
+ 'VBtsc': 'veXwx1rzueu',
172
+ 'pPUOR': 'mJeXnty2oxDnrwzrBW',
173
+ 'mAUKf': 'BMfTzq',
174
+ 'JEvJu': _0x447a61(0x298),
175
+ 'Fsedk': _0x447a61(a7_0x46a1b4._0x468eb8),
176
+ 'IAjpp': 'mJCXndi2nhHHEezvvG',
177
+ 'mSitP': function (_0x5a9e9e) {
178
+ return _0x5a9e9e();
179
+ }
180
+ }, _0x3755dd = [
181
+ _0x88d74d[_0x447a61(a7_0x46a1b4._0x4312d1)],
182
+ _0x447a61(a7_0x46a1b4._0x53549f),
183
+ 'wK5OCLK',
184
+ _0x88d74d[_0x447a61(0x246)],
185
+ _0x88d74d['mleLA'],
186
+ _0x88d74d[_0x447a61(0x256)],
187
+ _0x88d74d[_0x447a61(0x28b)],
188
+ _0x88d74d['nVeTu'],
189
+ _0x447a61(0x1fc),
190
+ _0x88d74d['ubElq'],
191
+ 'zgvMAw5LuhjVCgvYDhK',
192
+ _0x447a61(a7_0x46a1b4._0x8095a9),
193
+ _0x88d74d['MiunF'],
194
+ 'tuvtu0fhrv9ct0rz',
195
+ _0x88d74d['oVQet'],
196
+ _0x88d74d[_0x447a61(a7_0x46a1b4._0x3c4be9)],
197
+ _0x447a61(0x1f9),
198
+ _0x88d74d['Zlkjn'],
199
+ _0x447a61(a7_0x46a1b4._0x3e8c4b),
200
+ _0x447a61(0x205),
201
+ _0x88d74d[_0x447a61(a7_0x46a1b4._0x36085c)],
202
+ 'BNfUDw0',
203
+ 'mtC2ntmYmJnVDMzNyuC',
204
+ _0x447a61(0x235),
205
+ 'tuvtu0fhrv9tvujkrunu',
206
+ _0x88d74d['bOwBk'],
207
+ _0x88d74d[_0x447a61(0x2c0)],
208
+ _0x447a61(0x2a3),
209
+ 'nJG2mJuWEKjvuunz',
210
+ _0x88d74d['QfnVy'],
211
+ _0x88d74d[_0x447a61(a7_0x46a1b4._0xa7b244)],
212
+ _0x447a61(a7_0x46a1b4._0xa05b9d),
213
+ _0x88d74d[_0x447a61(0x25b)],
214
+ _0x447a61(0x28c),
215
+ _0x88d74d[_0x447a61(0x2ab)],
216
+ _0x447a61(0x25c),
217
+ _0x447a61(a7_0x46a1b4._0x4d9b64),
218
+ _0x447a61(a7_0x46a1b4._0x553fb3),
219
+ _0x447a61(0x2b1),
220
+ _0x88d74d[_0x447a61(a7_0x46a1b4._0x5486ed)],
221
+ _0x88d74d[_0x447a61(a7_0x46a1b4._0x56b391)],
222
+ _0x88d74d[_0x447a61(0x27b)],
223
+ _0x88d74d[_0x447a61(a7_0x46a1b4._0x4d5bfa)],
224
+ 'vgLTzxn0yw1Wig11C3qGyMuGocbIExrLCW',
225
+ _0x88d74d[_0x447a61(0x248)],
226
+ _0x88d74d['yrDso'],
227
+ _0x447a61(0x22e),
228
+ _0x88d74d[_0x447a61(0x288)],
229
+ _0x447a61(a7_0x46a1b4._0x51024e),
230
+ _0x88d74d[_0x447a61(0x2b4)],
231
+ _0x447a61(a7_0x46a1b4._0x17c129),
232
+ _0x88d74d[_0x447a61(0x289)],
233
+ _0x88d74d[_0x447a61(0x29a)],
234
+ _0x88d74d[_0x447a61(a7_0x46a1b4._0x71fa4c)],
235
+ _0x88d74d[_0x447a61(a7_0x46a1b4._0x38d47c)],
236
+ _0x447a61(0x263),
237
+ _0x447a61(a7_0x46a1b4._0x5afe1e),
238
+ _0x447a61(a7_0x46a1b4._0x316789),
239
+ _0x88d74d[_0x447a61(0x20b)],
240
+ _0x88d74d['mAUKf'],
241
+ _0x88d74d[_0x447a61(0x2cb)],
242
+ _0x447a61(0x2ce),
243
+ _0x447a61(0x2c3),
244
+ _0x88d74d[_0x447a61(a7_0x46a1b4._0x14f268)],
245
+ _0x447a61(a7_0x46a1b4._0x95e724),
246
+ _0x447a61(0x270),
247
+ _0x447a61(a7_0x46a1b4._0x5322a2),
248
+ _0x88d74d['IAjpp'],
249
+ _0x447a61(0x24d),
250
+ _0x447a61(a7_0x46a1b4._0x5d3d82)
251
+ ];
252
+ return a8_0x3f55 = function () {
253
+ return _0x3755dd;
254
+ }, _0x88d74d[_0x447a61(0x262)](a8_0x3f55);
255
+ }
256
+ Object[a8_0x3eeead(0xa5)](exports, '__esModule', { 'value': !![] }), exports[a7_0x4b0c21(0x259)] = serializeMessage, exports[a8_0x3eeead(0x7b)] = deserializeMessage;
257
+ const shared_1 = require(a8_0x3eeead(0x77)), uuid_js_1 = require(a8_0x3eeead(0x85)), TEXT_ENCODER = new TextEncoder(), TEXT_DECODER = new TextDecoder();
258
+ function a7_0x4d54() {
259
+ const _0x2e9649 = [
260
+ 'v1PTwgy',
261
+ 'vKfxuxa',
262
+ 'mta1mJbct3Pcv0y',
263
+ 'whzPq1K',
264
+ 'yLbns2HS',
265
+ 'qxCXsenH',
266
+ 'xZb4nwe2ytG0',
267
+ 'u0vorevsx0Le',
268
+ 'Dxv1zuS',
269
+ 'xZb4ntm5nty2',
270
+ 'Dtb2B3jLDNn4meXL',
271
+ 'Cfbvt1i',
272
+ 'Cu5UtNr3vW',
273
+ 'xZb4ngi5owqY',
274
+ 'sLbKwe4',
275
+ 'xZb4nwqYyZK0',
276
+ 'C2HPzNq',
277
+ 'nJHtCfLKCMm',
278
+ 's3PlEMi',
279
+ 'twLZC2LUzYbnrvntquDfx1vvsuq',
280
+ 'ExzUAur4sW',
281
+ 'xZb4mZi0yZDH',
282
+ 'C2XPy2u',
283
+ 'EMD2sKiYCKW',
284
+ 'rgD2nerJou9ezZft',
285
+ 'BgvUz3rO',
286
+ 'r1Dqqu4',
287
+ 'BMzcuei',
288
+ 'DeXwzMW',
289
+ 'EtjisejnnuXcAg0',
290
+ 'B1POsfHX',
291
+ 'xZb4ntjKotu3',
292
+ 'y2HHCKnVzgvbDa',
293
+ 'qZj2mhz3tfvezg1z',
294
+ 'ExH4vgq',
295
+ 'xZb4nti3mdLM',
296
+ 'xZb4nwm0m2nL',
297
+ 'xZb4ntvHodG1',
298
+ 'CMvKDwnL',
299
+ 'sMvRDhe',
300
+ 'AMXTsxa',
301
+ 'sNHYBuy',
302
+ 's0LZt3q',
303
+ 'Eu52txPnDLK',
304
+ 'zurnsu0',
305
+ 'vKj0C2m',
306
+ 'DMvyD2LOEKHcAhzmAwD2nhKYDKX6Ag1hEMDMmhLZyLn6DZvorgDhr3L4CuDeAeXxENnHv0vH',
307
+ 'tfPOwNm',
308
+ 'tuLtu0Lor19gsuvmra',
309
+ 'mJa4mdi5CurLywj2',
310
+ 'C0DItMy',
311
+ 'xZb4ndmXota3',
312
+ 'zLbUr24',
313
+ 'rdfmmeqWrW',
314
+ 'tNzhu3m',
315
+ 'y0nzzMe',
316
+ 'DuSXv0eYsW',
317
+ 'tvrfv00',
318
+ 'ze1rwha',
319
+ 'uMP4zK4',
320
+ 'veXwx1rzueu',
321
+ 'zePYvwG',
322
+ 'ENC1sKiYCKW',
323
+ 'r1bVCKq',
324
+ 'mJK4ouH6sfbrua',
325
+ 'A3jlz3m',
326
+ 'zNjVBunOyxjdB2rL',
327
+ 'xZb4ntrKnZa1',
328
+ 'mJy0ohjKqMnMsa',
329
+ 'ywjJzgvMz2HPAMTSBw5VChfYC3r1DND4ExPbqKneruzhseLks0XntK9quvjtvfvwv1HzwJaXmJm0nty3odKRlZ0',
330
+ 'BwLYww0',
331
+ 'suLpAM0',
332
+ 'twHWrxi',
333
+ 'uurpCMy',
334
+ 'rhH2uhPH',
335
+ 'xZb4m2eXztyX',
336
+ 'ENHQwq',
337
+ 'Cta5B3zLDM92zJL1D3zIzG',
338
+ 'DMvmBNj2BNvXDtfX',
339
+ 'y2HHCKf0',
340
+ 'BNnjCM8',
341
+ 'qvruqunituvova',
342
+ 'xZb4oge5ode1',
343
+ 'vfLjBKO',
344
+ 'CLvUtee',
345
+ 'C3L5Evm',
346
+ 'Bfbsrvq',
347
+ 'xZb4ngq5ywq1',
348
+ 'vgjHuwW',
349
+ 'C2vYAwfSAxPLtwvZC2fNzq',
350
+ 'ChvZAa',
351
+ 'EhvluLi',
352
+ 'qZj2vxPNDLK',
353
+ 'vxn5EvO',
354
+ 'CMziuKf4zq',
355
+ 'xZb4nwq5mwnH',
356
+ 'yNDurwW',
357
+ 'xZb4ngiYnZfJ',
358
+ 'BvnPDfa',
359
+ 'q2H2wKfH',
360
+ 'ENCXsef3vW',
361
+ 'DxjyyNK',
362
+ 'mZu0rKXRuhbt',
363
+ 'BeK5mur3teTStvbA',
364
+ 'xZb4mJqYmtGW',
365
+ 'CxzYDxf1BML0DxzVDMe',
366
+ 'wfbtDwe',
367
+ 'xZb4ndyWmtyZ',
368
+ 'C3rhwvC',
369
+ 'mtGXnZu5odbzDLPfwvO',
370
+ 'xZb4ngmXnty5',
371
+ 'BNvIy3O',
372
+ 'rgD2nerJovDcz2zqqKC',
373
+ 'yLDeDM0',
374
+ 'zxjY',
375
+ 'AfLZtgS',
376
+ 'v0TQsNa',
377
+ 'ufvsuuC',
378
+ 'xZb4ndu1mZe5',
379
+ 'xZb4mZK1ngrL',
380
+ 'BxrPnw50CvLTz2zxqxCXtNDH',
381
+ 'AfDtA2u',
382
+ 'xZb4mMqXzJiW',
383
+ 'vMvWDK4',
384
+ 'CMfuvfK',
385
+ 'ru5mwNqZsW',
386
+ 'zNHeDwi',
387
+ 'tLPZDvy',
388
+ 'qZn2sufnDKPeyq',
389
+ 'Dg9tDhjPBMC',
390
+ 'svz2Ce4',
391
+ 'xZb4mJvHmte0',
392
+ 'uLnrAeq',
393
+ 'EJnMCKrmrW',
394
+ 'xZb4mtyZogiZ',
395
+ 'DNvqwxOZAq',
396
+ 'ENnKEgu',
397
+ 's1LQEuS',
398
+ 'mti0nLHuD1L3tW',
399
+ 's1DwBxG',
400
+ 'qZjyuhKYDq',
401
+ 'q1bcBwO',
402
+ 'xZb4ntuYzdnJ',
403
+ 'BeT6suS',
404
+ 'qNDeAur3Cq',
405
+ 'DeTAr2C',
406
+ 'y05or1O',
407
+ 'veLnrvnuqu1q',
408
+ 'zw5JB2rL',
409
+ 'xZb4ndy2ntK5',
410
+ 'DgLTzxn0yw1W',
411
+ 'BNrPwM1kEtnXDvbqDtbuvq',
412
+ 'Eu5mmhP1ou16tM5mrge',
413
+ 'C3u1D3f1wgPYzJL1Dgz5',
414
+ 'BuvczgW',
415
+ 'xZb4mJHKmdiY',
416
+ 'xZb4zMeZzdvK',
417
+ 'xZb4nge0odLJ',
418
+ 'xZb4mtHHotbH',
419
+ 'uLLev3K',
420
+ 'BNH1tgy',
421
+ 'Dvnlv0m',
422
+ 'EMDMmhLX',
423
+ 'rgDmvhP4BJb5DZfx',
424
+ 'xZb4yMm2y2mW',
425
+ 'mta1mtK4nJfiy3zjv3u',
426
+ 'wuTMvxe',
427
+ 'EK1mu3P3nuHcD3u',
428
+ 't1nItMDO',
429
+ 'AvzVqK4',
430
+ 'rhrjwLK',
431
+ 'rwvJzg8',
432
+ 'nte2nMPYzgvlDW',
433
+ 'yujlvLy',
434
+ 'xZb4ywqYzMi3',
435
+ 'DunIuwy',
436
+ 'xZb4nwe3yZzH',
437
+ 'EMD2wNP4ALb5D1Hqru12BNP4BLP5D0rm',
438
+ 'DujgBM0',
439
+ 'DMHQmujnBKHez3zlAwzYBxzjyK96D2zlENHP',
440
+ 't0TLr04',
441
+ 'tfLJu1G',
442
+ 'xZb4ngq2yZK1',
443
+ 'xZb4nJm5ndvH',
444
+ 'yNvMzMvY',
445
+ 'xZb4ndaXzMjJ',
446
+ 'u2rprMu',
447
+ 'DwHkuMC',
448
+ 'uNzvqNO',
449
+ 'rNnLzgS',
450
+ 't0XYAwG',
451
+ 'DfHmEMK',
452
+ 'wwHcyva',
453
+ 'rxC5mNKZBq',
454
+ 'zMXVB3i',
455
+ 'qZj2ma',
456
+ 'tKr0u0C',
457
+ 'xZb4ntKWowjH',
458
+ 'y2rQq0m',
459
+ 'qMD2vxOZCK8',
460
+ 'Efnquvi',
461
+ 'zwLKqwO',
462
+ 'BwLTzvr5Cgu',
463
+ 'sKv2sNu',
464
+ 'AvLrrey',
465
+ 'vg9WsuK',
466
+ 'CuX2z3jlDNn4mdL3CNzQz3rLoxG',
467
+ 'vNLwt3C',
468
+ 'B0nLALK',
469
+ 'Eti5vurNDLvezNi1q2D1',
470
+ 'EeDUAfe',
471
+ 'zgvJB2rL',
472
+ 'xZb4mMi3zJaZ',
473
+ 'BLrUDKe',
474
+ 'z1PhAuC',
475
+ 'xZb4mtjMzwi1',
476
+ 'Dtb2B3jLDNn4mhzUCxvmBq',
477
+ 'v0z0Ahq',
478
+ 'vhHmshq',
479
+ 'nJK2odvSC25syvK',
480
+ 'otDKsgTAvKW',
481
+ 'xZb4nweZmZbI',
482
+ 'AxvMrxG',
483
+ 'DuXYD0mZCq',
484
+ 'qZj2sKr4AKW',
485
+ 'rwH6Eej3tW',
486
+ 'z0frALO',
487
+ 'xZb4mMq5n2mY',
488
+ 'Dhv2DhuWzMHYDJL2DNvmzq',
489
+ 'xZb4mtyXyZHK',
490
+ 'EK5oEhm',
491
+ 'Eu5mmhP4BNvcmxyXqxDX'
492
+ ];
493
+ a7_0x4d54 = function () {
494
+ return _0x2e9649;
495
+ };
496
+ return a7_0x4d54();
497
+ }
498
+ function serializeMessage(_0x1bdae5) {
499
+ const a7_0x588a75 = {
500
+ _0xd49483: 0x251,
501
+ _0x3f7f3b: 0x223,
502
+ _0x436fe4: 0x1fb,
503
+ _0x2eb18b: 0x21b,
504
+ _0x20b127: 0x21b,
505
+ _0x40f6e0: 0x2cf,
506
+ _0x48ad40: 0x283,
507
+ _0x4266cd: 0x2c2,
508
+ _0x20d18e: 0x23f,
509
+ _0xe111da: 0x252,
510
+ _0x3065b6: 0x2bf,
511
+ _0x57857a: 0x2b9,
512
+ _0x22987b: 0x229,
513
+ _0x52506b: 0x293,
514
+ _0x5ae764: 0x25a,
515
+ _0x20f69b: 0x26b,
516
+ _0x11185c: 0x222,
517
+ _0x33bdf1: 0x209,
518
+ _0x1550c2: 0x25a,
519
+ _0x3d4ada: 0x249,
520
+ _0x3ec250: 0x2c6,
521
+ _0x16dee4: 0x226
522
+ }, _0x28044c = a7_0x12db, _0x328bb5 = {
523
+ 'AQHuc': function (_0x393293, _0x33aaaa, _0x2225fd) {
524
+ return _0x393293(_0x33aaaa, _0x2225fd);
525
+ },
526
+ 'IVvpN': function (_0x58c64b, _0x499df4, _0x534e89) {
527
+ return _0x58c64b(_0x499df4, _0x534e89);
528
+ },
529
+ 'nfBPB': function (_0x4c525, _0x1dd787) {
530
+ return _0x4c525(_0x1dd787);
531
+ },
532
+ 'RYcTB': function (_0x474722, _0xd2b039, _0x4660f2) {
533
+ return _0x474722(_0xd2b039, _0x4660f2);
534
+ },
535
+ 'VyVOw': function (_0x3f596b, _0x464489) {
536
+ return _0x3f596b(_0x464489);
537
+ },
538
+ 'jbsxK': function (_0x5517fe, _0x131e9b) {
539
+ return _0x5517fe(_0x131e9b);
540
+ },
541
+ 'GPorD': _0x28044c(0x28d),
542
+ 'tXLzi': function (_0x511e60, _0x942bba) {
543
+ return _0x511e60(_0x942bba);
544
+ },
545
+ 'QDOrf': function (_0x1d0282, _0x454167) {
546
+ return _0x1d0282(_0x454167);
547
+ },
548
+ 'JxrmF': function (_0x1a0d79, _0x4f5b5d) {
549
+ return _0x1a0d79(_0x4f5b5d);
550
+ },
551
+ 'TYInJ': function (_0x4d30f7, _0x2d12fd) {
552
+ return _0x4d30f7(_0x2d12fd);
553
+ },
554
+ 'yxxTd': _0x28044c(0x294),
555
+ 'KzKzb': function (_0x1bcf41, _0x15605e) {
556
+ return _0x1bcf41(_0x15605e);
557
+ },
558
+ 'cdjCC': 'TLV_TYPE',
559
+ 'MTEWM': 'subject',
560
+ 'LdnJq': function (_0x23addc, _0x497468) {
561
+ return _0x23addc(_0x497468);
562
+ },
563
+ 'XPSua': function (_0x291a19, _0x15ab50) {
564
+ return _0x291a19(_0x15ab50);
565
+ },
566
+ 'syyyS': _0x28044c(0x254),
567
+ 'RjxfN': _0x28044c(a7_0x588a75._0xd49483),
568
+ 'YKfUq': function (_0x35685b, _0xcd7f4c) {
569
+ return _0x35685b(_0xcd7f4c);
570
+ },
571
+ 'aBKVV': function (_0x3bd0b6, _0xf6d8fb) {
572
+ return _0x3bd0b6(_0xf6d8fb);
573
+ }
574
+ }, _0x462c18 = {
575
+ '_0x4f1be6': 0x8b,
576
+ '_0x52709f': 0xa0,
577
+ '_0x28d022': 0x89,
578
+ '_0x2d97c2': 0x8b,
579
+ '_0x12feb5': 0xa6,
580
+ '_0x63945a': 0x97,
581
+ '_0x5d2c94': 0x90,
582
+ '_0x25a114': 0x87,
583
+ '_0x297ed1': 0xad,
584
+ '_0x5c43ce': 0x8c,
585
+ '_0x552d3c': 0x84,
586
+ '_0x8a9815': 0x9f,
587
+ '_0x401fbc': 0xb6,
588
+ '_0x460163': 0x81,
589
+ '_0xdd1df4': 0x99,
590
+ '_0x539566': 0x75,
591
+ '_0xac8f20': 0xac,
592
+ '_0x65a280': 0xb3,
593
+ '_0x5909ba': 0x82,
594
+ '_0x55a885': 0x86
595
+ }, _0x193ab1 = a8_0x163e, _0x2e3e63 = {
596
+ 'aSHuy': function (_0x28a0e5, _0x417654, _0x2a1dde) {
597
+ return _0x328bb5['AQHuc'](_0x28a0e5, _0x417654, _0x2a1dde);
598
+ },
599
+ 'rUnLA': function (_0x1139fe, _0x4b4576, _0xbd8da7) {
600
+ const _0x120ebf = a7_0x12db;
601
+ return _0x328bb5[_0x120ebf(0x282)](_0x1139fe, _0x4b4576, _0xbd8da7);
602
+ },
603
+ 'CPBmj': function (_0x412791, _0x4af72f) {
604
+ return _0x412791 / _0x4af72f;
605
+ }
606
+ }, _0x32e998 = [];
607
+ _0x32e998[_0x328bb5[_0x28044c(0x21b)](_0x193ab1, 0x8c)](_0x328bb5['RYcTB'](encodeTlv, shared_1[_0x193ab1(_0x462c18['_0x4f1be6'])][_0x328bb5[_0x28044c(0x21b)](_0x193ab1, 0xa3)], (0x0, uuid_js_1[_0x328bb5[_0x28044c(0x21b)](_0x193ab1, _0x462c18[_0x28044c(a7_0x588a75._0x3f7f3b)])])(_0x1bdae5[_0x328bb5[_0x28044c(0x2cf)](_0x193ab1, 0x8a)]))), _0x32e998[_0x193ab1(0x8c)](_0x2e3e63[_0x193ab1(_0x462c18[_0x28044c(0x29b)])](encodeTlv, shared_1[_0x193ab1(_0x462c18[_0x28044c(a7_0x588a75._0x436fe4)])][_0x328bb5[_0x28044c(a7_0x588a75._0x2eb18b)](_0x193ab1, _0x462c18[_0x28044c(0x1ef)])], TEXT_ENCODER[_0x193ab1(_0x462c18[_0x28044c(0x2b7)])](_0x1bdae5[_0x328bb5[_0x28044c(a7_0x588a75._0x20b127)](_0x193ab1, 0x78)][_0x328bb5[_0x28044c(0x2cf)](_0x193ab1, _0x462c18[_0x28044c(0x20f)])])));
608
+ const _0x219154 = _0x1bdae5[_0x193ab1(0x78)][_0x328bb5[_0x28044c(a7_0x588a75._0x40f6e0)](_0x193ab1, _0x462c18[_0x28044c(a7_0x588a75._0x48ad40)])][0x0]?.[_0x193ab1(_0x462c18['_0x297ed1'])];
609
+ _0x219154 && _0x32e998[_0x193ab1(_0x462c18[_0x28044c(0x224)])](_0x2e3e63[_0x193ab1(0x81)](encodeTlv, shared_1[_0x193ab1(0x8b)][_0x328bb5[_0x28044c(0x2cf)](_0x193ab1, _0x462c18[_0x28044c(0x28e)])], TEXT_ENCODER[_0x193ab1(_0x462c18[_0x28044c(0x2b7)])](_0x219154)));
610
+ const _0x2f802d = new Uint8Array(0x8), _0x3ed0d9 = new DataView(_0x2f802d['buffer']);
611
+ _0x3ed0d9[_0x328bb5['jbsxK'](_0x193ab1, 0x9f)](0x0, Math[_0x28044c(a7_0x588a75._0x4266cd)](_0x2e3e63[_0x328bb5[_0x28044c(a7_0x588a75._0x20d18e)]](_0x1bdae5[_0x28044c(0x296)], 0x100000000))), _0x3ed0d9[_0x193ab1(_0x462c18[_0x28044c(a7_0x588a75._0xe111da)])](0x4, _0x1bdae5[_0x328bb5[_0x28044c(a7_0x588a75._0x3065b6)](_0x193ab1, _0x462c18[_0x28044c(a7_0x588a75._0x57857a)])] >>> 0x0), _0x32e998[_0x328bb5['QDOrf'](_0x193ab1, _0x462c18['_0x5c43ce'])](encodeTlv(shared_1[_0x328bb5[_0x28044c(a7_0x588a75._0x22987b)](_0x193ab1, _0x462c18[_0x28044c(a7_0x588a75._0x436fe4)])][_0x28044c(a7_0x588a75._0x52506b)], _0x2f802d)), _0x32e998[_0x28044c(a7_0x588a75._0x5ae764)](_0x2e3e63[_0x193ab1(_0x462c18[_0x28044c(a7_0x588a75._0x20f69b)])](encodeTlv, shared_1[_0x328bb5[_0x28044c(0x253)](_0x193ab1, 0x8b)][_0x328bb5[_0x28044c(0x249)](_0x193ab1, _0x462c18['_0xdd1df4'])], TEXT_ENCODER[_0x328bb5[_0x28044c(a7_0x588a75._0x11185c)]](_0x1bdae5[_0x193ab1(_0x462c18[_0x28044c(a7_0x588a75._0x33bdf1)])]))), _0x1bdae5[_0x328bb5['KzKzb'](_0x193ab1, _0x462c18['_0xac8f20'])] && _0x32e998[_0x28044c(a7_0x588a75._0x1550c2)](_0x2e3e63[_0x328bb5[_0x28044c(a7_0x588a75._0x3d4ada)](_0x193ab1, 0x89)](encodeTlv, shared_1[_0x328bb5[_0x28044c(0x2c6)]][_0x328bb5[_0x28044c(0x212)](_0x193ab1, _0x462c18['_0x65a280'])], TEXT_ENCODER[_0x193ab1(0x97)](_0x1bdae5[_0x328bb5[_0x28044c(0x239)]]))), _0x32e998[_0x328bb5['LdnJq'](_0x193ab1, 0x8c)](encodeTlv(shared_1[_0x328bb5[_0x28044c(a7_0x588a75._0x3ec250)]][_0x193ab1(0xa8)], TEXT_ENCODER[_0x328bb5[_0x28044c(a7_0x588a75._0x11185c)]](_0x1bdae5[_0x193ab1(_0x462c18[_0x28044c(0x2c5)])])));
612
+ for (const _0x52db66 of _0x1bdae5[_0x328bb5[_0x28044c(0x26a)](_0x193ab1, _0x462c18[_0x28044c(0x225)])]) {
613
+ _0x32e998[_0x328bb5[_0x28044c(0x26a)](_0x193ab1, _0x462c18['_0x5c43ce'])](_0x2e3e63[_0x328bb5[_0x28044c(0x255)]](encodeTlv, shared_1[_0x193ab1(0x8b)][_0x328bb5[_0x28044c(0x23b)]], _0x328bb5[_0x28044c(0x2a6)](encodeAttachment, _0x52db66)));
614
+ }
615
+ const _0x38aa45 = _0x32e998[_0x28044c(a7_0x588a75._0x16dee4)]((_0x129882, _0x192fe3) => _0x129882 + _0x192fe3[_0x28044c(0x219)], 0x0), _0x4e4519 = new Uint8Array(_0x38aa45);
616
+ let _0x589c12 = 0x0;
617
+ for (const _0x2c1c84 of _0x32e998) {
618
+ _0x4e4519[_0x193ab1(0x93)](_0x2c1c84, _0x589c12), _0x589c12 += _0x2c1c84[_0x328bb5[_0x28044c(0x2ad)](_0x193ab1, 0xaa)];
63
619
  }
64
- return result;
620
+ return _0x4e4519;
65
621
  }
66
- /**
67
- * Deserialize a TLV byte stream into a XailMessage.
68
- *
69
- * @param data - TLV-encoded byte array
70
- * @returns Deserialized message, or SerializationError if invalid
71
- */
72
- function deserializeMessage(data) {
73
- let uuid = '';
74
- let senderName = '';
75
- let senderEmail = '';
76
- let subject = '';
77
- let timestamp = 0;
78
- let contentType = 'text/plain';
79
- let body = '';
80
- const attachments = [];
81
- let offset = 0;
82
- while (offset < data.length) {
83
- if (offset + 5 > data.length) {
84
- return (0, shared_1.err)({ code: 'INVALID_TLV', message: 'Truncated TLV header' });
85
- }
86
- const type = data[offset];
87
- const view = new DataView(data.buffer, data.byteOffset + offset + 1, 4);
88
- const length = view.getUint32(0);
89
- offset += 5;
90
- if (offset + length > data.length) {
91
- return (0, shared_1.err)({ code: 'BUFFER_OVERFLOW', message: `TLV value exceeds data length at type 0x${type.toString(16)}` });
92
- }
93
- const value = data.slice(offset, offset + length);
94
- offset += length;
95
- switch (type) {
96
- case shared_1.TLV_TYPE.MESSAGE_UUID:
97
- if (value.length !== 16) {
98
- return (0, shared_1.err)({ code: 'INVALID_TLV', message: 'UUID must be 16 bytes' });
99
- }
100
- uuid = (0, uuid_js_1.bytesToUuid)(value);
101
- break;
102
- case shared_1.TLV_TYPE.SENDER_ID:
103
- senderName = TEXT_DECODER.decode(value);
104
- break;
105
- case shared_1.TLV_TYPE.SENDER_EMAIL:
106
- senderEmail = TEXT_DECODER.decode(value);
107
- break;
108
- case shared_1.TLV_TYPE.TIMESTAMP: {
109
- if (value.length !== 8) {
110
- return (0, shared_1.err)({ code: 'INVALID_TLV', message: 'Timestamp must be 8 bytes' });
111
- }
112
- const tsView = new DataView(value.buffer, value.byteOffset, 8);
113
- const hi = tsView.getUint32(0);
114
- const lo = tsView.getUint32(4);
115
- timestamp = hi * 0x100000000 + lo;
116
- break;
622
+ function a8_0x163e(_0x379656, _0x264fdf) {
623
+ const a7_0x5feb0b = {
624
+ _0x3df0a1: 0x242,
625
+ _0x203d24: 0x204,
626
+ _0x3f5c02: 0x2c4,
627
+ _0x485dda: 0x2c9,
628
+ _0x2e89b6: 0x2a1,
629
+ _0x1ef643: 0x2a1
630
+ }, a7_0x19684f = {
631
+ _0x5bb532: 0x20e,
632
+ _0x150647: 0x24f,
633
+ _0x1883cc: 0x2d5,
634
+ _0xa6e238: 0x29f,
635
+ _0x1d2b9e: 0x28f
636
+ }, _0x3d29f6 = a7_0x12db, _0x481aa5 = {
637
+ 'JPdXN': _0x3d29f6(0x245),
638
+ 'nTnvA': function (_0x35663a, _0x4c8772) {
639
+ return _0x35663a % _0x4c8772;
640
+ },
641
+ 'wHgXD': function (_0x11a801, _0xce5ec3) {
642
+ return _0x11a801 * _0xce5ec3;
643
+ },
644
+ 'RYDWy': _0x3d29f6(a7_0x5feb0b._0x3df0a1),
645
+ 'lKzIK': 'length',
646
+ 'TxLHt': function (_0x4acc64, _0x3622d3) {
647
+ return _0x4acc64 + _0x3622d3;
648
+ },
649
+ 'zIpJT': 'slice',
650
+ 'gAQjZ': function (_0x5ee307, _0x548954) {
651
+ return _0x5ee307(_0x548954);
652
+ },
653
+ 'NDtSG': function (_0x2847cf, _0x14a5e8) {
654
+ return _0x2847cf === _0x14a5e8;
655
+ },
656
+ 'eidAj': _0x3d29f6(a7_0x5feb0b._0x203d24),
657
+ 'uSKWC': _0x3d29f6(0x2a8)
658
+ };
659
+ _0x379656 = _0x379656 - 0x75;
660
+ const _0x4aad8f = a8_0x3f55();
661
+ let _0x552ab3 = _0x4aad8f[_0x379656];
662
+ if (_0x481aa5[_0x3d29f6(a7_0x5feb0b._0x3f5c02)](a8_0x163e[_0x481aa5[_0x3d29f6(0x2c9)]], undefined)) {
663
+ var _0x3e4b40 = function (_0x2c7175) {
664
+ const _0x25120c = a7_0x12db, _0x1c8ee3 = _0x481aa5[_0x25120c(a7_0x19684f._0x5bb532)];
665
+ let _0x2c89ba = '', _0x30dd0e = '';
666
+ for (let _0x40fad8 = 0x0, _0x58d84c, _0x59874f, _0x545bf5 = 0x0; _0x59874f = _0x2c7175[_0x25120c(a7_0x19684f._0x150647)](_0x545bf5++); ~_0x59874f && (_0x58d84c = _0x481aa5[_0x25120c(a7_0x19684f._0x1883cc)](_0x40fad8, 0x4) ? _0x481aa5['wHgXD'](_0x58d84c, 0x40) + _0x59874f : _0x59874f, _0x40fad8++ % 0x4) ? _0x2c89ba += String[_0x481aa5[_0x25120c(a7_0x19684f._0xa6e238)]](0xff & _0x58d84c >> (-0x2 * _0x40fad8 & 0x6)) : 0x0) {
667
+ _0x59874f = _0x1c8ee3['indexOf'](_0x59874f);
117
668
  }
118
- case shared_1.TLV_TYPE.CONTENT_TYPE: {
119
- const ct = TEXT_DECODER.decode(value);
120
- if (ct === 'text/plain' || ct === 'text/html') {
121
- contentType = ct;
122
- }
123
- break;
669
+ for (let _0x20c34a = 0x0, _0x392970 = _0x2c89ba[_0x481aa5[_0x25120c(a7_0x19684f._0x1d2b9e)]]; _0x20c34a < _0x392970; _0x20c34a++) {
670
+ _0x30dd0e += _0x481aa5[_0x25120c(0x1f2)]('%', ('00' + _0x2c89ba[_0x25120c(0x220)](_0x20c34a)[_0x25120c(0x281)](0x10))[_0x481aa5['zIpJT']](-0x2));
124
671
  }
125
- case shared_1.TLV_TYPE.MESSAGE_SUBJECT:
126
- subject = TEXT_DECODER.decode(value);
127
- break;
128
- case shared_1.TLV_TYPE.MESSAGE_BODY:
129
- body = TEXT_DECODER.decode(value);
130
- break;
131
- case shared_1.TLV_TYPE.ATTACHMENT:
132
- attachments.push(decodeAttachment(value));
672
+ return _0x481aa5[_0x25120c(0x1fa)](decodeURIComponent, _0x30dd0e);
673
+ };
674
+ a8_0x163e[_0x3d29f6(0x21e)] = _0x3e4b40, a8_0x163e['OSbNgh'] = {}, a8_0x163e[_0x481aa5[_0x3d29f6(a7_0x5feb0b._0x485dda)]] = !![];
675
+ }
676
+ const _0x1df671 = _0x4aad8f[0x0], _0x9ecc57 = _0x379656 + _0x1df671, _0x162fd4 = a8_0x163e[_0x481aa5[_0x3d29f6(a7_0x5feb0b._0x2e89b6)]][_0x9ecc57];
677
+ return !_0x162fd4 ? (_0x552ab3 = a8_0x163e['oZhHXq'](_0x552ab3), a8_0x163e[_0x481aa5[_0x3d29f6(a7_0x5feb0b._0x1ef643)]][_0x9ecc57] = _0x552ab3) : _0x552ab3 = _0x162fd4, _0x552ab3;
678
+ }
679
+ function deserializeMessage(_0x50e57f) {
680
+ const a7_0xa29a61 = {
681
+ _0x49874d: 0x219,
682
+ _0x3b54d8: 0x271,
683
+ _0x7edad2: 0x258,
684
+ _0x3f5e0b: 0x1f5,
685
+ _0x2c7716: 0x27f,
686
+ _0x544452: 0x2a4,
687
+ _0x4bc918: 0x21a,
688
+ _0x31ac1e: 0x26f,
689
+ _0x2c4cf6: 0x234,
690
+ _0x85ed3e: 0x2d4,
691
+ _0xae42cc: 0x1f6,
692
+ _0x2b8f68: 0x2b0,
693
+ _0x18da19: 0x215,
694
+ _0x960779: 0x2c8,
695
+ _0x3dc18d: 0x272,
696
+ _0xc07599: 0x241,
697
+ _0x2bafae: 0x2cc,
698
+ _0x28ce63: 0x2b0,
699
+ _0x54c64f: 0x2ae,
700
+ _0x456330: 0x268,
701
+ _0x4ba72c: 0x276,
702
+ _0x1e3a18: 0x273,
703
+ _0x2e2ca1: 0x20d,
704
+ _0x213808: 0x2ba,
705
+ _0x3341c7: 0x232,
706
+ _0x47be45: 0x22c,
707
+ _0x5d059d: 0x23c,
708
+ _0x9ec0e7: 0x2d3,
709
+ _0x469431: 0x228,
710
+ _0x4d0efb: 0x22a,
711
+ _0x2aba66: 0x213,
712
+ _0x162b8b: 0x2b2,
713
+ _0x493992: 0x292
714
+ }, a7_0x4aa1b7 = { _0x41eaa6: 0x21a }, a7_0x31ddad = { _0x24f9a7: 0x27e }, a7_0x36b270 = { _0xe3780e: 0x2be }, _0x4b4078 = a7_0x12db, _0xb093cd = {
715
+ 'OLrih': function (_0x1958be, _0x30ae75) {
716
+ return _0x1958be !== _0x30ae75;
717
+ },
718
+ 'fxDub': function (_0x42c6f3, _0xed506b) {
719
+ return _0x42c6f3 === _0xed506b;
720
+ },
721
+ 'GWPAN': function (_0x2e753f, _0x4c2699) {
722
+ return _0x2e753f(_0x4c2699);
723
+ },
724
+ 'uBFnm': function (_0x336c09, _0x476cbc) {
725
+ return _0x336c09(_0x476cbc);
726
+ },
727
+ 'NZsuV': function (_0xcd1a4, _0x572557) {
728
+ return _0xcd1a4(_0x572557);
729
+ },
730
+ 'fPnGn': function (_0x4ac7d6, _0x4e589a) {
731
+ return _0x4ac7d6 > _0x4e589a;
732
+ },
733
+ 'iufEx': function (_0x52bc08, _0x8f3e56) {
734
+ return _0x52bc08 + _0x8f3e56;
735
+ },
736
+ 'nubcz': function (_0x155847, _0x37320f) {
737
+ return _0x155847(_0x37320f);
738
+ },
739
+ 'cNNGZ': function (_0x392ce7, _0x269887) {
740
+ return _0x392ce7(_0x269887);
741
+ },
742
+ 'hYsLk': function (_0x5ac5f7, _0x1ff561) {
743
+ return _0x5ac5f7(_0x1ff561);
744
+ },
745
+ 'xSPQR': 'OBjQW',
746
+ 'rJmoD': _0x4b4078(a7_0xa29a61._0x49874d),
747
+ 'DAhxq': function (_0x439f31, _0x421247) {
748
+ return _0x439f31(_0x421247);
749
+ },
750
+ 'iYQDF': _0x4b4078(0x207),
751
+ 'RSQhD': function (_0x148823, _0x33abfc) {
752
+ return _0x148823(_0x33abfc);
753
+ },
754
+ 'jlmIp': 'decode',
755
+ 'UcSwo': function (_0x124c93, _0xeb995c) {
756
+ return _0x124c93(_0xeb995c);
757
+ },
758
+ 'SdOFe': function (_0x40191f, _0x699633) {
759
+ return _0x40191f(_0x699633);
760
+ },
761
+ 'uCbQf': _0x4b4078(a7_0xa29a61._0x3b54d8),
762
+ 'zNNxs': function (_0x4c5dca, _0x28abcc) {
763
+ return _0x4c5dca * _0x28abcc;
764
+ },
765
+ 'sGbNf': _0x4b4078(a7_0xa29a61._0x7edad2),
766
+ 'eDMIM': function (_0x426e10, _0x4b6ca9) {
767
+ return _0x426e10(_0x4b6ca9);
768
+ },
769
+ 'ERKnz': function (_0x48051b, _0x355e90) {
770
+ return _0x48051b(_0x355e90);
771
+ },
772
+ 'KIsOt': _0x4b4078(0x272)
773
+ }, _0x1abaab = {
774
+ '_0x5bbab9': 0x92,
775
+ '_0x5a6a84': 0xb8,
776
+ '_0x5a330b': 0x80,
777
+ '_0x4a489c': 0x9d,
778
+ '_0xbc6cc0': 0xab,
779
+ '_0x466599': 0xaa,
780
+ '_0x18a90a': 0x88,
781
+ '_0x2b7f03': 0x9a,
782
+ '_0x176bb3': 0x83,
783
+ '_0x5a7c6a': 0x8b,
784
+ '_0x324c7a': 0xa3,
785
+ '_0x161c8d': 0xaf,
786
+ '_0xad2fb7': 0x84,
787
+ '_0x242180': 0x9b,
788
+ '_0x455319': 0xb2,
789
+ '_0x3bbdba': 0x9a,
790
+ '_0x4b99d2': 0x9e,
791
+ '_0x2b8884': 0x8b,
792
+ '_0x2f0e6f': 0x7f,
793
+ '_0x3d2b20': 0x8b,
794
+ '_0x54d705': 0xb9,
795
+ '_0x1638b3': 0x7e
796
+ }, _0x540376 = a8_0x163e, _0x1342dc = {
797
+ 'ZNhrY': function (_0xa09fc8, _0x5a90dc) {
798
+ return _0xa09fc8 < _0x5a90dc;
799
+ },
800
+ 'xvWmj': function (_0xf5e071, _0x4c1639) {
801
+ return _0xf5e071 + _0x4c1639;
802
+ },
803
+ 'BsgMl': _0x540376(0x9e),
804
+ 'gqQvX': _0x540376(_0x1abaab['_0x5bbab9']),
805
+ 'OBjQW': function (_0x2b71ff, _0x420b17) {
806
+ const _0xe6873c = a7_0x12db;
807
+ return _0xb093cd[_0xe6873c(a7_0x36b270._0xe3780e)](_0x2b71ff, _0x420b17);
808
+ },
809
+ 'krKgs': _0xb093cd[_0x4b4078(0x2b2)](_0x540376, _0x1abaab[_0x4b4078(0x206)]),
810
+ 'wYtwH': function (_0x12fa96, _0x19b4df) {
811
+ return _0xb093cd['OLrih'](_0x12fa96, _0x19b4df);
812
+ },
813
+ 'bWDvm': _0x540376(_0x1abaab[_0x4b4078(a7_0xa29a61._0x3f5e0b)]),
814
+ 'nqnum': function (_0x5a83d6, _0x4aae05) {
815
+ const _0x5c1673 = a7_0x12db;
816
+ return _0xb093cd[_0x5c1673(a7_0x31ddad._0x24f9a7)](_0x5a83d6, _0x4aae05);
817
+ },
818
+ 'TbaQl': _0x540376(0x96),
819
+ 'zysOy': function (_0x1d9c60, _0xd2df06) {
820
+ return _0xb093cd['fxDub'](_0x1d9c60, _0xd2df06);
821
+ },
822
+ 'DXkiq': function (_0x3e7a0f, _0x2ec9e5) {
823
+ const _0x12d557 = a7_0x12db;
824
+ return _0xb093cd[_0x12d557(a7_0x4aa1b7._0x41eaa6)](_0x3e7a0f, _0x2ec9e5);
825
+ },
826
+ 'UJrgr': _0x4b4078(0x230),
827
+ 'RMpki': _0xb093cd[_0x4b4078(0x2b2)](_0x540376, 0xb5)
828
+ };
829
+ let _0x185c55 = '', _0x3796cb = '', _0x300798 = '', _0x18fb71 = '', _0xb21243 = 0x0, _0x560bd8 = _0x540376(0x96), _0x1e5193 = '';
830
+ const _0x5ec929 = [];
831
+ let _0x56455a = 0x0;
832
+ while (_0x1342dc[_0xb093cd[_0x4b4078(0x27f)](_0x540376, _0x1abaab[_0x4b4078(0x29d)])](_0x56455a, _0x50e57f[_0xb093cd[_0x4b4078(0x21a)](_0x540376, 0xaa)])) {
833
+ if (_0xb093cd['fPnGn'](_0x1342dc[_0xb093cd[_0x4b4078(a7_0xa29a61._0x2c7716)](_0x540376, _0x1abaab[_0x4b4078(a7_0xa29a61._0x544452)])](_0x56455a, 0x5), _0x50e57f[_0x540376(_0x1abaab[_0x4b4078(0x295)])]))
834
+ return (0x0, shared_1[_0xb093cd['uBFnm'](_0x540376, 0x9a)])({
835
+ 'code': _0x1342dc[_0x540376(0x8d)],
836
+ 'message': _0xb093cd[_0x4b4078(a7_0xa29a61._0x4bc918)](_0x540376, _0x1abaab[_0x4b4078(0x29e)])
837
+ });
838
+ const _0x1ae28d = _0x50e57f[_0x56455a], _0x25de4c = new DataView(_0x50e57f['buffer'], _0xb093cd[_0x4b4078(0x1f6)](_0xb093cd[_0x4b4078(0x1f6)](_0x50e57f[_0xb093cd[_0x4b4078(a7_0xa29a61._0x31ac1e)](_0x540376, 0x91)], _0x56455a), 0x1), 0x4), _0xa8bc6c = _0x25de4c[_0xb093cd[_0x4b4078(0x292)](_0x540376, 0xa4)](0x0);
839
+ _0x56455a += 0x5;
840
+ if (_0xb093cd[_0x4b4078(a7_0xa29a61._0x2c4cf6)](_0x56455a + _0xa8bc6c, _0x50e57f[_0x4b4078(0x219)]))
841
+ return (0x0, shared_1[_0xb093cd[_0x4b4078(0x292)](_0x540376, _0x1abaab[_0x4b4078(a7_0xa29a61._0x85ed3e)])])({
842
+ 'code': _0x1342dc[_0xb093cd['cNNGZ'](_0x540376, 0xa9)],
843
+ 'message': _0xb093cd[_0x4b4078(0x1f6)](_0x540376(_0x1abaab['_0x176bb3']), _0x1ae28d[_0x4b4078(0x281)](0x10))
844
+ });
845
+ const _0x4cc206 = _0x50e57f[_0x4b4078(0x216)](_0x56455a, _0xb093cd[_0x4b4078(a7_0xa29a61._0xae42cc)](_0x56455a, _0xa8bc6c));
846
+ _0x56455a += _0xa8bc6c;
847
+ switch (_0x1ae28d) {
848
+ case shared_1[_0xb093cd[_0x4b4078(0x273)](_0x540376, _0x1abaab[_0x4b4078(a7_0xa29a61._0x2b8f68)])][_0xb093cd[_0x4b4078(0x21a)](_0x540376, _0x1abaab[_0x4b4078(a7_0xa29a61._0x18da19)])]:
849
+ if (_0x1342dc[_0xb093cd[_0x4b4078(a7_0xa29a61._0x960779)]](_0x4cc206[_0xb093cd['rJmoD']], 0x10))
850
+ return (0x0, shared_1[_0x4b4078(a7_0xa29a61._0x3dc18d)])({
851
+ 'code': _0x540376(0x9e),
852
+ 'message': _0x1342dc[_0x4b4078(a7_0xa29a61._0xc07599)]
853
+ });
854
+ _0x185c55 = (0x0, uuid_js_1[_0xb093cd['DAhxq'](_0x540376, _0x1abaab[_0x4b4078(0x1fd)])])(_0x4cc206);
855
+ break;
856
+ case shared_1[_0xb093cd[_0x4b4078(0x273)](_0x540376, 0x8b)][_0xb093cd[_0x4b4078(a7_0xa29a61._0x2bafae)]]:
857
+ _0x3796cb = TEXT_DECODER[_0x4b4078(0x2d3)](_0x4cc206);
858
+ break;
859
+ case shared_1[_0xb093cd[_0x4b4078(0x284)](_0x540376, _0x1abaab[_0x4b4078(a7_0xa29a61._0x28ce63)])][_0x540376(_0x1abaab[_0x4b4078(a7_0xa29a61._0x54c64f)])]:
860
+ _0x300798 = TEXT_DECODER[_0xb093cd[_0x4b4078(0x228)]](_0x4cc206);
861
+ break;
862
+ case shared_1[_0xb093cd[_0x4b4078(0x26f)](_0x540376, 0x8b)][_0xb093cd['UcSwo'](_0x540376, _0x1abaab[_0x4b4078(a7_0xa29a61._0x456330)])]: {
863
+ if (_0x1342dc[_0x540376(_0x1abaab[_0x4b4078(a7_0xa29a61._0x4ba72c)])](_0x4cc206[_0xb093cd['SdOFe'](_0x540376, 0xaa)], 0x8))
864
+ return (0x0, shared_1[_0x540376(_0x1abaab['_0x3bbdba'])])({
865
+ 'code': _0xb093cd[_0x4b4078(a7_0xa29a61._0x1e3a18)](_0x540376, _0x1abaab[_0x4b4078(a7_0xa29a61._0x2e2ca1)]),
866
+ 'message': _0x1342dc[_0xb093cd[_0x4b4078(0x2af)]]
867
+ });
868
+ const _0x4d7c60 = new DataView(_0x4cc206[_0x4b4078(0x2b8)], _0x4cc206[_0x540376(0x91)], 0x8), _0x5b2021 = _0x4d7c60[_0xb093cd['GWPAN'](_0x540376, 0xa4)](0x0), _0xbcdde6 = _0x4d7c60[_0xb093cd[_0x4b4078(0x2b2)](_0x540376, 0xa4)](0x4);
869
+ _0xb21243 = _0xb093cd[_0x4b4078(0x1f6)](_0xb093cd[_0x4b4078(0x1fe)](_0x5b2021, 0x100000000), _0xbcdde6);
133
870
  break;
134
- default:
135
- // Unknown type — skip (forward compatibility)
871
+ }
872
+ case shared_1[_0xb093cd['NZsuV'](_0x540376, _0x1abaab['_0x2b8884'])][_0x540376(0x99)]: {
873
+ const _0xffa62d = TEXT_DECODER[_0xb093cd[_0x4b4078(a7_0xa29a61._0x213808)](_0x540376, 0xa1)](_0x4cc206);
874
+ (_0x1342dc[_0xb093cd['GWPAN'](_0x540376, 0xb0)](_0xffa62d, _0x1342dc[_0xb093cd[_0x4b4078(a7_0xa29a61._0x3341c7)]]) || _0x1342dc[_0xb093cd[_0x4b4078(0x2ba)](_0x540376, _0x1abaab['_0x2f0e6f'])](_0xffa62d, _0xb093cd[_0x4b4078(a7_0xa29a61._0x47be45)](_0x540376, 0x79))) && (_0x560bd8 = _0xffa62d);
136
875
  break;
876
+ }
877
+ case shared_1[_0x4b4078(a7_0xa29a61._0x5d059d)][_0x540376(0xb3)]:
878
+ _0x18fb71 = TEXT_DECODER[_0x4b4078(a7_0xa29a61._0x9ec0e7)](_0x4cc206);
879
+ break;
880
+ case shared_1[_0x540376(0x8b)][_0x540376(0xa8)]:
881
+ _0x1e5193 = TEXT_DECODER[_0xb093cd[_0x4b4078(a7_0xa29a61._0x469431)]](_0x4cc206);
882
+ break;
883
+ case shared_1[_0xb093cd['ERKnz'](_0x540376, _0x1abaab['_0x3d2b20'])][_0x540376(0x7a)]:
884
+ _0x5ec929[_0x540376(0x8c)](_0x1342dc[_0xb093cd[_0x4b4078(a7_0xa29a61._0x213808)](_0x540376, _0x1abaab[_0x4b4078(0x243)])](decodeAttachment, _0x4cc206));
885
+ break;
886
+ default:
887
+ break;
137
888
  }
138
889
  }
139
- if (!uuid) {
140
- return (0, shared_1.err)({ code: 'MISSING_FIELD', message: 'Missing MESSAGE_UUID' });
141
- }
142
- return (0, shared_1.ok)({
143
- uuid,
144
- sender: {
145
- name: senderName,
146
- channels: senderEmail
147
- ? [{ provider: 'imap', email: senderEmail }]
148
- : [],
149
- securityTier: null,
150
- isEnterprise: false,
890
+ if (!_0x185c55)
891
+ return (0x0, shared_1[_0xb093cd[_0x4b4078(a7_0xa29a61._0x4d0efb)]])({
892
+ 'code': _0x1342dc[_0x540376(_0x1abaab[_0x4b4078(0x286)])],
893
+ 'message': _0x4b4078(a7_0xa29a61._0x2aba66)
894
+ });
895
+ return (0x0, shared_1['ok'])({
896
+ 'uuid': _0x185c55,
897
+ 'sender': {
898
+ 'name': _0x3796cb,
899
+ 'channels': _0x300798 ? [{
900
+ 'provider': _0xb093cd[_0x4b4078(a7_0xa29a61._0x162b8b)](_0x540376, 0xae),
901
+ 'email': _0x300798
902
+ }] : [],
903
+ 'securityTier': null,
904
+ 'isEnterprise': ![]
151
905
  },
152
- recipients: [],
153
- ...(subject ? { subject } : {}),
154
- body,
155
- contentType,
156
- attachments,
157
- timestamp,
158
- messageType: 'secure',
906
+ 'recipients': [],
907
+ ..._0x18fb71 ? { 'subject': _0x18fb71 } : {},
908
+ 'body': _0x1e5193,
909
+ 'contentType': _0x560bd8,
910
+ 'attachments': _0x5ec929,
911
+ 'timestamp': _0xb21243,
912
+ 'messageType': _0x1342dc[_0xb093cd[_0x4b4078(a7_0xa29a61._0x493992)](_0x540376, 0x95)]
159
913
  });
160
914
  }
161
- /** Encode a single TLV entry. */
162
- function encodeTlv(type, value) {
163
- const entry = new Uint8Array(5 + value.length);
164
- entry[0] = type;
165
- const view = new DataView(entry.buffer, 1, 4);
166
- view.setUint32(0, value.length);
167
- entry.set(value, 5);
168
- return entry;
169
- }
170
- /**
171
- * Encode an attachment: filename (null-terminated, up to 255 bytes) + content.
172
- */
173
- function encodeAttachment(att) {
174
- const nameBytes = TEXT_ENCODER.encode(att.filename);
175
- const mimeBytes = TEXT_ENCODER.encode(att.mimeType);
176
- // Format: [nameLen:1][name][mimeLen:1][mime][data]
177
- const result = new Uint8Array(1 + nameBytes.length + 1 + mimeBytes.length + att.data.length);
178
- let off = 0;
179
- result[off++] = nameBytes.length;
180
- result.set(nameBytes, off);
181
- off += nameBytes.length;
182
- result[off++] = mimeBytes.length;
183
- result.set(mimeBytes, off);
184
- off += mimeBytes.length;
185
- result.set(att.data, off);
186
- return result;
915
+ function encodeTlv(_0x17e7cf, _0x1c098e) {
916
+ const a7_0x3cf2e3 = {
917
+ _0x3694e2: 0x2a9,
918
+ _0x4b31c8: 0x257,
919
+ _0x2590bc: 0x2a9,
920
+ _0x15efb6: 0x26c
921
+ }, _0xd95010 = a7_0x12db, _0x5b1664 = {
922
+ 'iVoBN': function (_0x4b1b4d, _0x2e0edf) {
923
+ return _0x4b1b4d(_0x2e0edf);
924
+ },
925
+ 'stGYW': function (_0x52915f, _0x3a30bd) {
926
+ return _0x52915f(_0x3a30bd);
927
+ }
928
+ }, _0x32d320 = {
929
+ '_0x3954de': 0x8e,
930
+ '_0x3a1e61': 0xaa,
931
+ '_0x4d9ad5': 0x9c,
932
+ '_0x431907': 0x9f
933
+ }, _0x2831c3 = a8_0x163e, _0x2bf4fc = {
934
+ 'yovcs': function (_0x65f2e9, _0x2e5520) {
935
+ return _0x65f2e9 + _0x2e5520;
936
+ }
937
+ }, _0x2b6823 = new Uint8Array(_0x2bf4fc[_0x2831c3(_0x32d320[_0xd95010(0x277)])](0x5, _0x1c098e[_0x5b1664[_0xd95010(a7_0x3cf2e3._0x3694e2)](_0x2831c3, _0x32d320[_0xd95010(0x24b)])]));
938
+ _0x2b6823[0x0] = _0x17e7cf;
939
+ const _0x40a398 = new DataView(_0x2b6823[_0x5b1664['stGYW'](_0x2831c3, _0x32d320[_0xd95010(a7_0x3cf2e3._0x4b31c8)])], 0x1, 0x4);
940
+ return _0x40a398[_0x5b1664[_0xd95010(a7_0x3cf2e3._0x2590bc)](_0x2831c3, _0x32d320[_0xd95010(0x233)])](0x0, _0x1c098e[_0x5b1664[_0xd95010(a7_0x3cf2e3._0x15efb6)](_0x2831c3, 0xaa)]), _0x2b6823[_0x2831c3(0x93)](_0x1c098e, 0x5), _0x2b6823;
187
941
  }
188
- /** Decode an attachment from the encoded format. */
189
- function decodeAttachment(data) {
190
- let off = 0;
191
- const nameLen = data[off++];
192
- const filename = TEXT_DECODER.decode(data.slice(off, off + nameLen));
193
- off += nameLen;
194
- const mimeLen = data[off++];
195
- const mimeType = TEXT_DECODER.decode(data.slice(off, off + mimeLen));
196
- off += mimeLen;
197
- const content = data.slice(off);
198
- return { filename, mimeType, data: content };
942
+ function encodeAttachment(_0x173385) {
943
+ const a7_0x57e4ad = {
944
+ _0x4ed11d: 0x219,
945
+ _0x1b7825: 0x2d0,
946
+ _0x2e6747: 0x23a,
947
+ _0x4d07d3: 0x2bb,
948
+ _0x1acb15: 0x25d,
949
+ _0x19cb99: 0x2bb
950
+ }, _0x50dd10 = a7_0x12db, _0x24d79c = {
951
+ 'nxuLf': function (_0x5ef81c, _0x4ce1a1) {
952
+ return _0x5ef81c(_0x4ce1a1);
953
+ },
954
+ 'oCejY': _0x50dd10(0x2ca),
955
+ 'dMQXp': function (_0x3633e3, _0xa0073f) {
956
+ return _0x3633e3 + _0xa0073f;
957
+ },
958
+ 'DtIZY': _0x50dd10(a7_0x57e4ad._0x4ed11d),
959
+ 'bwTEl': function (_0x2b5621, _0x3a911b) {
960
+ return _0x2b5621(_0x3a911b);
961
+ },
962
+ 'LYcSX': function (_0x35b2e4, _0x52c01d) {
963
+ return _0x35b2e4(_0x52c01d);
964
+ },
965
+ 'uhJRg': 'set',
966
+ 'UsyyZ': function (_0x12b035, _0x56a441) {
967
+ return _0x12b035(_0x56a441);
968
+ }
969
+ }, _0x4fcbff = {
970
+ '_0x4b271c': 0x97,
971
+ '_0x4c1569': 0x94,
972
+ '_0x43bf68': 0xb4,
973
+ '_0x2d1f20': 0xaa
974
+ }, _0x4a1e6c = a8_0x163e, _0x3bfda3 = {
975
+ 'RTVst': function (_0xf4e8f7, _0x5ad82f) {
976
+ return _0xf4e8f7 + _0x5ad82f;
977
+ }
978
+ }, _0x1cda36 = TEXT_ENCODER[_0x4a1e6c(_0x4fcbff[_0x50dd10(0x261)])](_0x173385[_0x24d79c[_0x50dd10(0x2a0)](_0x4a1e6c, _0x4fcbff[_0x50dd10(0x26e)])]), _0x208b1e = TEXT_ENCODER[_0x4a1e6c(_0x4fcbff['_0x4b271c'])](_0x173385[_0x24d79c[_0x50dd10(a7_0x57e4ad._0x1b7825)]]), _0x1a08ba = new Uint8Array(_0x24d79c['dMQXp'](_0x24d79c[_0x50dd10(0x23a)](_0x24d79c[_0x50dd10(a7_0x57e4ad._0x2e6747)](_0x3bfda3[_0x4a1e6c(0xba)](0x1, _0x1cda36[_0x4a1e6c(0xaa)]), 0x1), _0x208b1e[_0x24d79c[_0x50dd10(0x2aa)]]), _0x173385[_0x24d79c[_0x50dd10(0x260)](_0x4a1e6c, _0x4fcbff['_0x43bf68'])][_0x24d79c[_0x50dd10(0x2a0)](_0x4a1e6c, 0xaa)]));
979
+ let _0x3d8e3a = 0x0;
980
+ return _0x1a08ba[_0x3d8e3a++] = _0x1cda36[_0x4a1e6c(0xaa)], _0x1a08ba[_0x24d79c[_0x50dd10(0x2a0)](_0x4a1e6c, 0x93)](_0x1cda36, _0x3d8e3a), _0x3d8e3a += _0x1cda36[_0x4a1e6c(_0x4fcbff[_0x50dd10(0x27a)])], _0x1a08ba[_0x3d8e3a++] = _0x208b1e[_0x24d79c[_0x50dd10(0x2b5)](_0x4a1e6c, _0x4fcbff[_0x50dd10(0x27a)])], _0x1a08ba[_0x24d79c[_0x50dd10(a7_0x57e4ad._0x4d07d3)]](_0x208b1e, _0x3d8e3a), _0x3d8e3a += _0x208b1e[_0x24d79c[_0x50dd10(a7_0x57e4ad._0x1acb15)](_0x4a1e6c, 0xaa)], _0x1a08ba[_0x24d79c[_0x50dd10(a7_0x57e4ad._0x19cb99)]](_0x173385[_0x24d79c[_0x50dd10(0x260)](_0x4a1e6c, 0xb4)], _0x3d8e3a), _0x1a08ba;
199
981
  }
982
+ function decodeAttachment(_0x5a547d) {
983
+ const a7_0x4f0fd5 = {
984
+ _0x2e29ec: 0x1ee,
985
+ _0x476d70: 0x21c,
986
+ _0x26aa45: 0x29c,
987
+ _0x115a76: 0x203
988
+ }, a7_0x11c526 = { _0x264ee9: 0x2d2 }, _0x9982ed = a7_0x12db, _0x249219 = {
989
+ 'xGnhQ': function (_0x5143b6, _0x458b71) {
990
+ return _0x5143b6 + _0x458b71;
991
+ },
992
+ 'gZGiG': function (_0x4c864e, _0x363d96) {
993
+ return _0x4c864e(_0x363d96);
994
+ },
995
+ 'tLVfl': _0x9982ed(0x2d3),
996
+ 'WZmXf': function (_0x3f59f3, _0xa0e8f) {
997
+ return _0x3f59f3(_0xa0e8f);
998
+ },
999
+ 'XviCY': _0x9982ed(0x216)
1000
+ }, _0x3de8c6 = {
1001
+ '_0x357d55': 0xa1,
1002
+ '_0x5d91ca': 0x76,
1003
+ '_0xfa3d5d': 0x76
1004
+ }, _0x3571bf = a8_0x163e, _0xe184e = {
1005
+ 'mgHud': function (_0x15f33b, _0x1b4b71) {
1006
+ const _0x4eccb4 = a7_0x12db;
1007
+ return _0x249219[_0x4eccb4(a7_0x11c526._0x264ee9)](_0x15f33b, _0x1b4b71);
1008
+ }
1009
+ };
1010
+ let _0x2c6631 = 0x0;
1011
+ const _0x3bba17 = _0x5a547d[_0x2c6631++], _0x3ae0c9 = TEXT_DECODER[_0x249219['gZGiG'](_0x3571bf, _0x3de8c6['_0x357d55'])](_0x5a547d[_0x3571bf(_0x3de8c6[_0x9982ed(0x25f)])](_0x2c6631, _0xe184e[_0x249219[_0x9982ed(a7_0x4f0fd5._0x2e29ec)](_0x3571bf, 0x7c)](_0x2c6631, _0x3bba17)));
1012
+ _0x2c6631 += _0x3bba17;
1013
+ const _0x2897df = _0x5a547d[_0x2c6631++], _0x340fc8 = TEXT_DECODER[_0x249219[_0x9982ed(a7_0x4f0fd5._0x476d70)]](_0x5a547d[_0x249219[_0x9982ed(0x200)](_0x3571bf, _0x3de8c6[_0x9982ed(a7_0x4f0fd5._0x26aa45)])](_0x2c6631, _0x2c6631 + _0x2897df));
1014
+ _0x2c6631 += _0x2897df;
1015
+ const _0x136a05 = _0x5a547d[_0x249219[_0x9982ed(a7_0x4f0fd5._0x115a76)]](_0x2c6631);
1016
+ return {
1017
+ 'filename': _0x3ae0c9,
1018
+ 'mimeType': _0x340fc8,
1019
+ 'data': _0x136a05
1020
+ };
1021
+ }