-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
273 lines (237 loc) · 58.1 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
/* Thanks to
* Dani Techno. - FullStack Engineer (Creator)
* Miftah GanzZ. - (Constributor)
* api.miftah.biz.id / api-miftah.xyz (API provider)
* api.caliph.biz.id (API provider)
* module provider
*/
const {
makeWASocket,
useMultiFileAuthState,
makeInMemoryStore,
PHONENUMBER_MCC,
makeCacheableSignalKeyStore,
jidDecode,
downloadContentFromMessage,
DisconnectReason
} = require('@whiskeysockets/baileys');
const {
Boom
} = require('@hapi/boom');
const pino = require('pino');
const readLine = require('readline');
const qrCodeTerminal = require('qrcode-terminal');
const chalk = require('chalk');
const fs = require('fs');
const mongoose = require('mongoose');
const cron = require('node-cron');
const FileType = require('file-type');
const config = require('./config/mainConfig.js');
const db = require('./models/connectionModel.js');
const userSchema = require('./models/schemaModel.js');
const {
smsg,
fetchJson,
fetchBuffer,
writeExifImage,
writeExifVideo,
imageToWebp,
videoToWebp
} = require('./utils/functionsUtils.js');
const store = makeInMemoryStore({
logger: pino().child({
level: 'silent',
stream: 'store'
})
});
async function startServer() {
try {
(function(_0x61a827,_0x3bfd60){function _0x3ead7d(_0x4192ca,_0x5901b9,_0xfc405e,_0xdc3602,_0x55594e){return _0x4c4b(_0xfc405e-0x3b5,_0x55594e);}function _0x8fd1ed(_0x5cf0b7,_0x1c280b,_0x47dd43,_0x48e63d,_0x416cba){return _0x4c4b(_0x416cba- -0x6b,_0x5cf0b7);}function _0x376580(_0xb52497,_0x5347d8,_0x5a1113,_0xea2a36,_0x58958f){return _0x4c4b(_0x5347d8-0x19d,_0xb52497);}function _0x33022a(_0x58a448,_0x974984,_0x38afdb,_0x58460f,_0x561de2){return _0x4c4b(_0x38afdb-0x25d,_0x974984);}const _0x5e3498=_0x61a827();function _0x239f7a(_0x272599,_0xf52bf2,_0x98f754,_0x2030a4,_0x3c03ae){return _0x4c4b(_0x98f754- -0x9f,_0xf52bf2);}while(!![]){try{const _0x547088=-parseInt(_0x8fd1ed(0xe4,0x87,0x146,0x174,0xf9))/(-0x210e+0x5d5*0x3+0xf90)+parseInt(_0x8fd1ed(0x1fb,0x1da,0x282,0x205,0x1fa))/(0x2533+-0x89b+-0x1c96)*(-parseInt(_0x239f7a(0x15e,0x241,0x1d2,0x1dc,0x205))/(-0x1*-0x5b1+-0x3*-0x50d+-0x14d5*0x1))+-parseInt(_0x239f7a(0x1cd,0x1ef,0x162,0xea,0x1d3))/(0x379*-0x5+-0x92*-0x19+0x31f)*(parseInt(_0x3ead7d(0x674,0x678,0x602,0x57c,0x69f))/(-0x93e+-0x5*-0x593+-0x4a7*0x4))+-parseInt(_0x8fd1ed(0x1e5,0x1e4,0xef,0x1fb,0x17d))/(-0x18a1*-0x1+-0x22f*0xd+0x3c8)*(-parseInt(_0x8fd1ed(0x107,0xe0,0xbe,0xf8,0xec))/(0x9*-0x259+0x2b*-0x32+0xec7*0x2))+-parseInt(_0x33022a(0x571,0x492,0x4eb,0x521,0x53a))/(0x234e*0x1+0x109f+-0x33e5*0x1)*(parseInt(_0x8fd1ed(0x15d,0xf4,0xf6,0x1b3,0x158))/(-0x1e*0x10f+0x3*0x7ba+-0x93*-0xf))+-parseInt(_0x3ead7d(0x59e,0x5be,0x611,0x5ff,0x5d9))/(-0x740+0x11*-0x13a+0x1c24)+parseInt(_0x239f7a(0x148,0x1fc,0x1a5,0x223,0x15d))/(0x1e75+0x2d*-0xa9+-0xb5);if(_0x547088===_0x3bfd60)break;else _0x5e3498['push'](_0x5e3498['shift']());}catch(_0x13b367){_0x5e3498['push'](_0x5e3498['shift']());}}}(_0x2d74,-0x4a36e*-0x1+0x27f*0x315+0x6a28));const _0x57a90c=(function(){const _0xd45ff8={'TdeoA':function(_0x228788,_0x1ce4cf){return _0x228788+_0x1ce4cf;},'BazAH':_0x1be791(0x1b,0x91,-0x76,0x24,0x99),'ZoDls':_0x1b17b6(-0x11b,-0x152,-0x154,-0xc2,-0xe2),'dZXaM':_0x37dc0e(0x5aa,0x523,0x551,0x592,0x55a)+_0x1b17b6(-0xd3,-0xa5,-0xee,-0x11f,-0x7b)+'t','Wfgns':function(_0x55ba7a,_0x5b6599){return _0x55ba7a(_0x5b6599);},'FbAnP':function(_0x5f12f6,_0x46beaa){return _0x5f12f6+_0x46beaa;},'FnNWO':function(_0x42efc4,_0x5de906){return _0x42efc4+_0x5de906;},'afdFB':_0x1b17b6(-0x1a0,-0x1a1,-0x167,-0x1f7,-0x18a)+_0x1be791(-0x59,0x66,-0x60,0x7,0x67)+_0x1b17b6(-0x16,-0x75,-0xb,-0x108,-0x7b)+_0x43cab8(0x428,0x3fe,0x3dc,0x42f,0x391),'ioWAD':_0x37dc0e(0x553,0x57e,0x507,0x5a6,0x542)+_0x1be791(0x4a,0x13,0x10,0x7a,0xc)+_0x43cab8(0x3b0,0x44e,0x365,0x36f,0x3e8)+_0x1b17b6(-0x236,-0x1a3,-0x193,-0x178,-0x12e)+_0x43cab8(0x3fb,0x45f,0x477,0x379,0x3ee)+_0x1b17b6(-0x20e,-0x1a0,-0x1fd,-0x1b4,-0x146)+'\x20)','uvQFv':function(_0x170217){return _0x170217();},'hMipw':function(_0x102169,_0x3ed029){return _0x102169!==_0x3ed029;},'ucjbc':_0x1b17b6(-0x1c4,-0x154,-0x110,-0x17f,-0xf5),'FSdsH':_0x43cab8(0x33d,0x36b,0x383,0x2e6,0x2e2),'PgsHG':function(_0x39ef36,_0x30d82a){return _0x39ef36===_0x30d82a;},'IHeKm':_0x286235(-0xc2,-0x4c,0x33,-0xba,0x20),'LFNpC':_0x43cab8(0x420,0x4a2,0x464,0x397,0x3e8),'CtcOs':function(_0x2b9c7a,_0x1cda8c){return _0x2b9c7a!==_0x1cda8c;},'BQjkQ':_0x1be791(0xa9,0xb8,0xc4,0x40,0x57)};function _0x1be791(_0x51b9d0,_0x3fdabc,_0x48cc24,_0x112cdc,_0x4e8baf){return _0x4c4b(_0x112cdc- -0x1bb,_0x48cc24);}let _0x3333ef=!![];function _0x37dc0e(_0x166b4e,_0x721356,_0x2d44a2,_0x187411,_0x4904ab){return _0x4c4b(_0x721356-0x392,_0x187411);}function _0x1b17b6(_0x1a7fe6,_0x171394,_0x3c50fd,_0x199a6e,_0x351e7b){return _0x4c4b(_0x171394- -0x2f6,_0x3c50fd);}function _0x286235(_0x4d3483,_0x583041,_0xb44994,_0x2d1385,_0x345296){return _0x4c4b(_0x583041- -0x222,_0x2d1385);}function _0x43cab8(_0x4e5977,_0x3dfdee,_0x2810bb,_0x2e66b4,_0x672ec9){return _0x4c4b(_0x4e5977-0x1b8,_0x672ec9);}return function(_0x279718,_0x2128cd){function _0x30be1a(_0x1fc562,_0x2f28f7,_0x4f0b3c,_0x332365,_0x5c5739){return _0x37dc0e(_0x1fc562-0x91,_0x1fc562- -0x575,_0x4f0b3c-0x2d,_0x2f28f7,_0x5c5739-0xf0);}function _0x46b683(_0x4c91fb,_0x5cf0c5,_0x52517e,_0x4c2b06,_0x4a507d){return _0x1be791(_0x4c91fb-0x57,_0x5cf0c5-0x1a0,_0x4c2b06,_0x5cf0c5-0x175,_0x4a507d-0x1ee);}function _0x2e6501(_0x28901e,_0x5ba517,_0xce67be,_0x295933,_0x40e9d2){return _0x43cab8(_0x295933- -0x577,_0x5ba517-0x158,_0xce67be-0x90,_0x295933-0x8,_0xce67be);}function _0x4ec276(_0x2edc8c,_0x2b7296,_0x52440d,_0xddfc3,_0x28d69f){return _0x286235(_0x2edc8c-0x12b,_0x2b7296-0xc0,_0x52440d-0xd3,_0x2edc8c,_0x28d69f-0x6c);}if(_0xd45ff8[_0x2e6501(-0x16d,-0x1d3,-0x1cc,-0x183,-0x111)](_0xd45ff8[_0x2e6501(-0x1f1,-0x21d,-0x2ab,-0x241,-0x200)],_0xd45ff8[_0x4ec276(0x1f,0x1c,0x8e,-0x3,-0x16)])){if(_0x489590){const _0x6b2f28=_0x4c78ea[_0x2e6501(-0x189,-0x158,-0x217,-0x1f2,-0x21e)](_0x502785,arguments);return _0x4181b4=null,_0x6b2f28;}}else{const _0x1769ce=_0x3333ef?function(){const _0x215045={'uJcuV':function(_0x60df4,_0x192815){function _0x47a47e(_0xf97dd6,_0x46fd,_0x179c09,_0x183949,_0x6a31fb){return _0x4c4b(_0x183949-0x39c,_0x6a31fb);}return _0xd45ff8[_0x47a47e(0x4f4,0x57a,0x589,0x501,0x50c)](_0x60df4,_0x192815);},'iDzqh':_0xd45ff8[_0xe66075(0x18a,0x220,0x1e1,0x219,0x212)],'VaMbG':_0xd45ff8[_0x1fc635(-0x23,0xbf,0x4c,0x70,0xc9)],'FpIcp':_0xd45ff8[_0xe66075(0x1fb,0x2b4,0x21d,0x25b,0x225)],'appjK':function(_0x1491b8,_0x56b45e){function _0x12a139(_0x1088ee,_0x27879d,_0x3d6d89,_0x3c3ce9,_0x19d895){return _0x1fc635(_0x1088ee-0x73,_0x27879d-0x17c,_0x3c3ce9-0x1fc,_0x19d895,_0x19d895-0x155);}return _0xd45ff8[_0x12a139(0x2e8,0x3b9,0x359,0x327,0x2c5)](_0x1491b8,_0x56b45e);},'ICOcu':function(_0x5c8dfa,_0x586f08){function _0x292a31(_0x31c336,_0x27b8e9,_0x5f1744,_0x4b3ce1,_0x3ac136){return _0x19b6e9(_0x31c336-0x140,_0x27b8e9-0xad,_0x5f1744-0xbd,_0x27b8e9,_0x3ac136- -0x443);}return _0xd45ff8[_0x292a31(-0xce,-0x43,-0xbe,-0x14,-0x6f)](_0x5c8dfa,_0x586f08);},'iCYeW':function(_0xe69fbd,_0x574006){function _0x2a27dc(_0x24e828,_0x1807d5,_0x7bdcae,_0x67e0f4,_0x3f3a19){return _0x19b6e9(_0x24e828-0x5e,_0x1807d5-0x1cd,_0x7bdcae-0xc4,_0x24e828,_0x1807d5- -0x491);}return _0xd45ff8[_0x2a27dc(-0xd1,-0x7e,-0x11c,-0x90,-0x111)](_0xe69fbd,_0x574006);},'pYWIA':_0xd45ff8[_0x19b6e9(0x40c,0x439,0x4e4,0x427,0x455)],'GItNY':_0xd45ff8[_0x1fc635(0x150,0xec,0xda,0x154,0x60)],'gLHHV':function(_0x29dbb3){function _0x483a5b(_0x2d6dee,_0x24e663,_0x35f596,_0x27bd7b,_0x535043){return _0xe66075(_0x2d6dee-0x8e,_0x24e663-0x1e7,_0x24e663- -0xcb,_0x27bd7b-0x116,_0x35f596);}return _0xd45ff8[_0x483a5b(0x188,0x172,0x115,0x1c9,0x1d6)](_0x29dbb3);}};function _0x2dc85a(_0x21c9ea,_0x3e38f6,_0x48a509,_0x3ea9fd,_0x15a159){return _0x46b683(_0x21c9ea-0xaf,_0x21c9ea-0x134,_0x48a509-0x13d,_0x3e38f6,_0x15a159-0xa4);}function _0x588640(_0x27e1cf,_0x5f9105,_0x385048,_0x2ecc80,_0x1df36f){return _0x30be1a(_0x2ecc80-0x256,_0x5f9105,_0x385048-0x1ce,_0x2ecc80-0x5c,_0x1df36f-0x15e);}function _0xe66075(_0x1d72e6,_0x39e960,_0x115aeb,_0x202aa8,_0x19f08a){return _0x2e6501(_0x1d72e6-0x157,_0x39e960-0x162,_0x19f08a,_0x115aeb-0x3a9,_0x19f08a-0x7d);}function _0x19b6e9(_0x1338ba,_0x1855ac,_0x1429ea,_0x5d5521,_0x28c0d0){return _0x30be1a(_0x28c0d0-0x44e,_0x5d5521,_0x1429ea-0x9a,_0x5d5521-0x10,_0x28c0d0-0x146);}function _0x1fc635(_0x412f77,_0x221949,_0x5c3579,_0x491f7f,_0x358927){return _0x30be1a(_0x5c3579-0xb5,_0x491f7f,_0x5c3579-0x174,_0x491f7f-0x19a,_0x358927-0x127);}if(_0xd45ff8[_0x588640(0x274,0x27c,0x230,0x28d,0x307)](_0xd45ff8[_0x19b6e9(0x444,0x536,0x413,0x49c,0x496)],_0xd45ff8[_0x2dc85a(0x2e2,0x265,0x2ee,0x264,0x273)])){if(_0x2128cd){if(_0xd45ff8[_0x2dc85a(0x24c,0x2be,0x1ae,0x1b4,0x285)](_0xd45ff8[_0x19b6e9(0x3a6,0x3f1,0x456,0x388,0x402)],_0xd45ff8[_0x19b6e9(0x4d5,0x539,0x466,0x481,0x4d9)]))(function(){return![];}[_0x19b6e9(0x3e6,0x40e,0x41d,0x4a2,0x437)+_0xe66075(0x1fb,0x228,0x1dd,0x174,0x21f)+'r'](_0x215045[_0xe66075(0x112,0x129,0x145,0xcd,0x187)](_0x215045[_0x19b6e9(0x42d,0x359,0x401,0x40a,0x3ee)],_0x215045[_0x588640(0x256,0x315,0x21d,0x27d,0x2b4)]))[_0x2dc85a(0x2bb,0x2c2,0x29e,0x326,0x34b)](_0x215045[_0x1fc635(0xdd,0x161,0x14f,0x167,0x1a9)]));else{const _0x2b7311=_0x2128cd[_0xe66075(0x218,0x20e,0x1b7,0x22a,0x1b0)](_0x279718,arguments);return _0x2128cd=null,_0x2b7311;}}}else{let _0x943f51;try{const _0x17108c=_0x215045[_0x2dc85a(0x327,0x399,0x359,0x345,0x2ca)](_0x597570,_0x215045[_0x1fc635(0x8b,-0x26,0x46,0xd,0x24)](_0x215045[_0x1fc635(0x146,0x3b,0xd4,0x60,0x104)](_0x215045[_0xe66075(0x170,0x1e4,0x155,0xdf,0x112)],_0x215045[_0xe66075(0x13f,0x16f,0x13e,0xe9,0x100)]),');'));_0x943f51=_0x215045[_0x19b6e9(0x37c,0x3a5,0x3c4,0x339,0x3c7)](_0x17108c);}catch(_0x5b3a8e){_0x943f51=_0x5e1f28;}_0x943f51[_0x2dc85a(0x2f2,0x294,0x2b1,0x380,0x328)+_0xe66075(0x1d6,0xd6,0x167,0x1b9,0x18a)+'l'](_0x26395f,0x1501+0x160a+-0x1b6b*0x1);}}:function(){};return _0x3333ef=![],_0x1769ce;}};}()),_0x160467=_0x57a90c(this,function(){function _0x49c96e(_0x516e25,_0x4a2272,_0x31babb,_0x3b91b0,_0x1fc93d){return _0x4c4b(_0x516e25- -0xc8,_0x1fc93d);}function _0x1ce327(_0x33820e,_0xee4b64,_0x34653c,_0x285c75,_0x44ce35){return _0x4c4b(_0xee4b64-0x3b7,_0x44ce35);}function _0x43956a(_0x2f875e,_0xe1db16,_0x40660f,_0x3bb7f9,_0x186d4b){return _0x4c4b(_0x40660f-0x34b,_0xe1db16);}function _0x5e4368(_0x2d86ca,_0x53fd08,_0x44d55b,_0x1c9415,_0x1ab7e5){return _0x4c4b(_0x1c9415-0x190,_0x53fd08);}function _0x21e902(_0x466580,_0x16a5e7,_0x8e0133,_0x533b09,_0x5dc634){return _0x4c4b(_0x466580- -0x160,_0x16a5e7);}const _0x145e27={};_0x145e27[_0x5e4368(0x3b7,0x380,0x359,0x3a8,0x360)]=_0x43956a(0x447,0x40b,0x4aa,0x468,0x531)+_0x43956a(0x519,0x46d,0x501,0x561,0x465)+'+$';const _0x18f60c=_0x145e27;return _0x160467[_0x21e902(0x106,0x93,0x19a,0xde,0xd2)+_0x1ce327(0x4e1,0x55a,0x591,0x517,0x5e8)]()[_0x43956a(0x50e,0x5b7,0x58c,0x5ae,0x4fd)+'h'](_0x18f60c[_0x49c96e(0x150,0x13e,0x103,0x193,0xe0)])[_0x1ce327(0x62d,0x61d,0x60f,0x640,0x5c5)+_0x21e902(0x43,0x10,0x89,-0x5b,0x46)]()[_0x43956a(0x58e,0x4f5,0x517,0x4dc,0x4cf)+_0x49c96e(0x12b,0x1a0,0xf4,0x103,0xed)+'r'](_0x160467)[_0x49c96e(0x179,0x1bc,0x216,0x20b,0x19d)+'h'](_0x18f60c[_0x43956a(0x4e5,0x522,0x563,0x546,0x59a)]);});_0x160467();function _0x2d74(){const _0x3ffb6e=['VzkBz','EOgft','\x20coun','black','FgZfq','trynW','217192VDtpAK','AylWk','ing\x20c','match','\x22retu','GItNY','retur','is\x22)(','49BxXdEC','try\x20c','code','Pairi','uJcuV','gLHHV','CbvHp','PgsHG','(((.+','stPai','\x20API','\x20(tru','exit','1617092qTSpzu','TdeoA','\x20pair','zEmwY','zA-Z_','FbAnP','LKyfD','pYWIA','some','eInte','KDUzx','pGTSu','iJkze','stdou','er,\x20E','\x20Numb','ICOcu','da:','ffavX','DkQVJ','eUTcR','tsApp','ZoDls','OWHQa','keys','terva','BQjkQ','MdkcM','level','uMgMn','regis','iDzqh','\x20with','lvCaa','DsDOI','ion','r\x20Wha','$]*)','quest','GTZsM','RDXGz','oupCm','n\x20nom','rcZfL','e\x20:\x206','state','JxcbI','BzKmw','KONDd','\x5c(\x20*\x5c','asuka','IHeKm','ode\x20o','Z_$][','AlJOh','Brigh','des','TOKdp','iqLte','child','OIhTa','oRMFG','ivRwr','ing','gger','AOLRn','jiCXx','UQgSS','FnNWO','KZwDm','oESKB','Silah','de\x20an','ng\x20ko','t\x20use','Piukf','stdin','KnuWf','ith\x20m','YzStr','lONTt','UpcXG',')+)+)','EmAqg','join','HmXnD','HWEve','obile','FUNIk','XzxrT','dTvSf','BAbrp','XkRuq','while','n\x20(fu','144PAWTXA','KClev','ckqEg','p\x20and','RfKdd','NYqFW','IUnDc','tate','ight','const','apply','0-9a-','deoXd','ring-','actio','upbXj','jDfJZ','ng_co','KtQAA','Rddjq','outpu','toh:\x20','yTZWR','ftWrL','CbfMe','mDiyD','ShOkR','EAxgb','debu','DAkHj','pairi','cWbrA','OOuEe','nrXLM','gDRVj','dHcCC','NioHk','1388586iOyOej','QTkdN','afdFB','a-zA-','{}.co','XZMDu','\x0a>\x20','sessi','QnKsD','EOjBT','brows','ructo','FSdsH','Canno','repla','BazAH','ctor(','bind','WoRcX','axwTZ','white','juIhH','NWogw','NiJcc','creat','940848Wqejit','iCYeW','or\x20Wh','setIn','28xxx','KOFGg','GWcut','ioWAD','start','VaMbG','hYOdG','test','xampl','LiJUj','init','xhMXf','xhLtt','wUJNW','WmWcN','gzqPD','ISgtr','aJvNa','name','orEUe','DKmqZ','hMipw','628xx','CauEB','ode','f\x20you','.upda','close','*(?:[','pRbFJ','vvgmc','PyfHl','log','creds','dClIu','fWOCT','inclu','\x5c+\x5c+\x20','ucjbc','hbmLF','QnnIA','lAMpI','XEoHF','JOcCO','NcSdX','argv','dZXaM','RTgZj','nstru','funct','rface','fIzEH','appjK','mQASF','input','CtcOs','UpKra','NtNjn','qaXDL','PIGQj','searc','lOEKq','rn\x20th','42503857iEIuTa','silen','Jasnl','VWeEB','hyAHs','reque','VOoiH','--pai','uyppQ','10iEoXsr','lengt','--mob','jzmva','Objec','QTWUr','uvQFv','DRXJo','ulwaP','bgBla','Start','yHfhX','Wfgns','chain','redBr','12945740SfvoIf','DOERf','rkCMl','lder_','WYTwu','FPmik','on_fo','tered','RHkFF','97906OrjZPg','toStr','green','MdXbZ','count','GjWfj','CXwYu','e)\x20{}','wlhrZ','LFNpC','kgyCs','n()\x20','51inUROx','call','YBSCn','a\x20con','ile','authS','atsAp','cxPVx','Gcpyu','ringC','sjCRQ','ion\x20*','FpIcp','YXwcG','RoXhm','strin','nctio','kan\x20m','MOtBY','OLHDd','sWith','ode\x20w','XRcZe'];_0x2d74=function(){return _0x3ffb6e;};return _0x2d74();}const _0x46a024=(function(){function _0x5c5e55(_0x1080a6,_0x278aae,_0xe7523f,_0x278f89,_0x3a66f0){return _0x4c4b(_0x278aae-0x154,_0x3a66f0);}function _0x19fdc4(_0xa91bf5,_0x4ab737,_0x3e9aac,_0x2589d0,_0x3af6f7){return _0x4c4b(_0x3af6f7- -0x2c5,_0x3e9aac);}function _0x1a59d7(_0x34b478,_0x14ee92,_0x6a35a0,_0x40e8ff,_0x44b0a5){return _0x4c4b(_0x44b0a5-0x397,_0x40e8ff);}const _0x298ea8={'EOjBT':function(_0x19e986,_0x1b3bfb){return _0x19e986(_0x1b3bfb);},'rcZfL':function(_0xadfdde,_0x492ba1){return _0xadfdde===_0x492ba1;},'deoXd':_0x1a59d7(0x4f4,0x55a,0x512,0x5cf,0x534),'CbfMe':_0x2620fc(0x250,0x2a6,0x282,0x310,0x234),'FUNIk':function(_0xfdc3c3,_0x1438d1){return _0xfdc3c3!==_0x1438d1;},'mDiyD':_0x5c5e55(0x336,0x2c3,0x33d,0x35d,0x249),'sjCRQ':_0x2620fc(0x14d,0x24c,0x1b0,0x192,0x175),'EAxgb':function(_0x13f70c,_0x2deb72){return _0x13f70c===_0x2deb72;},'NtNjn':_0x1a59d7(0x608,0x570,0x50d,0x5f6,0x57b),'QTWUr':_0x1a59d7(0x659,0x5f2,0x5f8,0x5cb,0x5bb)};let _0x17961a=!![];function _0x2620fc(_0x152911,_0x2658d9,_0x395229,_0x794521,_0x25e8a1){return _0x4c4b(_0x395229-0x38,_0x25e8a1);}function _0x1a5811(_0x694e8c,_0x50c916,_0x52aecd,_0xd333a9,_0x26c65f){return _0x4c4b(_0xd333a9- -0x348,_0x26c65f);}return function(_0xa9d3ea,_0x18259e){function _0x5c92b4(_0x404dd8,_0x4fa2a5,_0xd49421,_0x33e691,_0x57abb0){return _0x2620fc(_0x404dd8-0x43,_0x4fa2a5-0x129,_0x404dd8- -0x1ab,_0x33e691-0x185,_0x4fa2a5);}function _0x413839(_0x5ed3cc,_0x9e3bd,_0x297353,_0x1ff5e8,_0x550386){return _0x1a59d7(_0x5ed3cc-0x1c1,_0x9e3bd-0x1d9,_0x297353-0x63,_0x297353,_0x550386- -0x1b7);}function _0xa9570a(_0x44456a,_0xea22f5,_0x1eacc2,_0x401049,_0x589d43){return _0x5c5e55(_0x44456a-0x63,_0x44456a- -0x320,_0x1eacc2-0x24,_0x401049-0xbd,_0xea22f5);}const _0xdf0e3e={'DRXJo':function(_0x5c726d,_0x378f3f){function _0x18ec5c(_0x1ff2e4,_0x3df631,_0x1906c4,_0x1bbf1d,_0x33b7c9){return _0x4c4b(_0x1ff2e4- -0x36d,_0x33b7c9);}return _0x298ea8[_0x18ec5c(-0x17c,-0x17b,-0x1d8,-0x1ef,-0x10b)](_0x5c726d,_0x378f3f);}};function _0x6bac14(_0x5b7a99,_0x24fd98,_0x4774fa,_0x5d2bc0,_0x4bf040){return _0x19fdc4(_0x5b7a99-0xaa,_0x24fd98-0x1e7,_0x5d2bc0,_0x5d2bc0-0x1a5,_0x24fd98-0x587);}if(_0x298ea8[_0x6bac14(0x53f,0x4a0,0x45a,0x4dd,0x45e)](_0x298ea8[_0x5c92b4(0xcb,0x10e,0x128,0x5c,0x30)],_0x298ea8[_0x5c92b4(0xdf,0x5a,0x135,0x60,0x87)]))_0xdf0e3e[_0xa9570a(0x88,0xf2,0x54,0xd8,0x1)](_0x4e5c61,'0');else{const _0xadcce0=_0x17961a?function(){function _0x6df27(_0x75d8c3,_0x1c238b,_0x5234ff,_0x41a9d0,_0x50bf75){return _0x413839(_0x75d8c3-0x19c,_0x1c238b-0x62,_0x5234ff,_0x41a9d0-0x108,_0x50bf75- -0x1e4);}function _0x1113ea(_0x462aaa,_0x4ec245,_0x4c4eae,_0x3e1a46,_0xfbcb00){return _0x5c92b4(_0x462aaa-0x153,_0x3e1a46,_0x4c4eae-0x1da,_0x3e1a46-0x1aa,_0xfbcb00-0x17d);}function _0x245682(_0x83158d,_0x2c0891,_0x1b5b87,_0x3151b,_0x285d7){return _0x413839(_0x83158d-0x93,_0x2c0891-0xc1,_0x285d7,_0x3151b-0xec,_0x83158d-0xcc);}function _0x464406(_0x23f9eb,_0x1671c0,_0x374923,_0x79a6b5,_0x47ff7c){return _0x6bac14(_0x23f9eb-0x1b8,_0x23f9eb- -0x289,_0x374923-0xd1,_0x47ff7c,_0x47ff7c-0x170);}function _0x391aab(_0x336d32,_0x1f01b5,_0x3d712a,_0x53e40c,_0x302e16){return _0x6bac14(_0x336d32-0x10d,_0x302e16- -0xac,_0x3d712a-0x19e,_0x1f01b5,_0x302e16-0xa0);}const _0x460947={'KOFGg':function(_0x4eafed,_0x5d1222){function _0x3d33b6(_0x108d9b,_0x162d5c,_0x4b7d99,_0x22a328,_0x96dbe5){return _0x4c4b(_0x22a328-0x2ce,_0x162d5c);}return _0x298ea8[_0x3d33b6(0x541,0x4a8,0x44e,0x4bf,0x471)](_0x4eafed,_0x5d1222);}};if(_0x298ea8[_0x6df27(0x1a0,0x156,0x129,0x11e,0x18b)](_0x298ea8[_0x6df27(0x1f4,0x259,0x13f,0x1c3,0x1cb)],_0x298ea8[_0x245682(0x487,0x42b,0x453,0x4bc,0x45a)])){const _0x2d3b70=_0x2435bd?function(){function _0x5a8555(_0x3643d3,_0x2b0207,_0x2c31c6,_0x1fed68,_0x12b7f1){return _0x245682(_0x3643d3- -0x279,_0x2b0207-0xd7,_0x2c31c6-0x3e,_0x1fed68-0x58,_0x2c31c6);}if(_0x3d8fdf){const _0x32b8b1=_0x5f0520[_0x5a8555(0x200,0x1f2,0x1dc,0x29b,0x22b)](_0x51646e,arguments);return _0xf3d862=null,_0x32b8b1;}}:function(){};return _0x143f0c=![],_0x2d3b70;}else{if(_0x18259e){if(_0x298ea8[_0x1113ea(0x19c,0x1fc,0x22b,0x1ba,0x151)](_0x298ea8[_0x6df27(0x1fb,0x1a4,0x23e,0x25c,0x1d8)],_0x298ea8[_0x6df27(0x28c,0x1da,0x267,0x2b1,0x277)])){const _0x538eeb=_0x18259e[_0x464406(0x206,0x1ee,0x1fe,0x213,0x273)](_0xa9d3ea,arguments);return _0x18259e=null,_0x538eeb;}else{if(_0x47d416)return _0x489c86;else _0x460947[_0x391aab(0x3f3,0x448,0x39e,0x4a8,0x41c)](_0x13e745,0x1bb0+-0x5*-0x6f7+-0xd*0x4cf);}}}}:function(){};return _0x17961a=![],_0xadcce0;}};}());(function(){function _0xb3d683(_0x1d2fb5,_0x47554d,_0x15bdcd,_0xcf9ac4,_0x29d172){return _0x4c4b(_0x29d172-0x269,_0x47554d);}function _0x138300(_0x84f615,_0x891b15,_0x221f62,_0x24a2b2,_0x2fe509){return _0x4c4b(_0x24a2b2- -0x67,_0x2fe509);}function _0x3535e2(_0x1ccb71,_0x4872b8,_0x18aa56,_0x5dd2b4,_0x1a7e1e){return _0x4c4b(_0x5dd2b4- -0x273,_0x18aa56);}function _0x2fdb28(_0x2f95e6,_0x28abfb,_0x15262a,_0x343781,_0x19821c){return _0x4c4b(_0x28abfb-0x157,_0x2f95e6);}function _0xfea3e8(_0x232c54,_0x3e6585,_0x47a47c,_0x5c3ab9,_0x201697){return _0x4c4b(_0x201697-0x31f,_0x3e6585);}const _0x2bc3af={'QTkdN':_0x3535e2(-0x2b,0x4b,-0x70,-0x3d,-0xa2)+_0x138300(0x18c,0x2a6,0x1a3,0x215,0x1b8)+_0x2fdb28(0x2d9,0x2ec,0x37d,0x29d,0x324)+')','ulwaP':_0x3535e2(-0x97,-0x8d,-0x76,-0x49,-0xa1)+_0x2fdb28(0x2f4,0x378,0x32b,0x321,0x361)+_0x2fdb28(0x315,0x342,0x2a5,0x3b2,0x332)+_0x3535e2(-0x6d,-0x174,-0x179,-0xda,-0xa2)+_0xfea3e8(0x527,0x4eb,0x541,0x4e5,0x4ed)+_0xb3d683(0x3fe,0x340,0x351,0x34e,0x3d1)+_0x138300(0x107,0x123,0x1be,0x122,0xb2),'YzStr':function(_0x3fd9b0,_0x2bd179){return _0x3fd9b0(_0x2bd179);},'YBSCn':_0x3535e2(0xb,-0x1d,-0x37,-0x64,-0x4e),'KtQAA':function(_0x3f4de0,_0x1edb82){return _0x3f4de0+_0x1edb82;},'iJkze':_0xb3d683(0x55e,0x449,0x51a,0x510,0x4c3),'ShOkR':function(_0x5b0b75,_0x73bb9){return _0x5b0b75+_0x73bb9;},'XkRuq':_0x138300(0x237,0x256,0x1e6,0x1d4,0x196),'CauEB':function(_0x577a41,_0x19fbae){return _0x577a41(_0x19fbae);},'xhMXf':function(_0x26eb7a){return _0x26eb7a();},'lAMpI':_0xb3d683(0x392,0x406,0x435,0x466,0x42a)+_0xfea3e8(0x417,0x4e0,0x442,0x416,0x481)+_0x138300(0x182,0x1cf,0x189,0x205,0x21b),'NcSdX':_0x2fdb28(0x35f,0x3c0,0x320,0x388,0x456)+'er','yHfhX':function(_0x43bfc1,_0x5db9d6){return _0x43bfc1(_0x5db9d6);},'iqLte':function(_0x33f7fb,_0x49da82){return _0x33f7fb+_0x49da82;},'NiJcc':function(_0x152b16,_0x19c1c7){return _0x152b16(_0x19c1c7);},'OIhTa':function(_0x20e71d,_0x2b1b0e,_0x36e531){return _0x20e71d(_0x2b1b0e,_0x36e531);},'pRbFJ':function(_0x17dcea,_0x55b7d5){return _0x17dcea!==_0x55b7d5;},'Jasnl':_0xb3d683(0x4a2,0x4ee,0x407,0x4cd,0x47f),'ISgtr':_0x3535e2(0x18,-0xb,-0xd1,-0x50,-0x57),'hYOdG':function(_0x81f907,_0x122395){return _0x81f907(_0x122395);},'CbvHp':function(_0x1d8b5d,_0x2319c5){return _0x1d8b5d+_0x2319c5;},'DAkHj':_0x2fdb28(0x391,0x30b,0x2b9,0x37e,0x298),'DsDOI':_0x2fdb28(0x314,0x2cd,0x2e3,0x2fb,0x2ef),'yTZWR':function(_0x5a0de2,_0x396de6){return _0x5a0de2(_0x396de6);},'YXwcG':_0x2fdb28(0x346,0x339,0x2a2,0x2ee,0x352),'NYqFW':function(_0x31861b){return _0x31861b();},'KDUzx':function(_0xe76cfa,_0x52f087,_0x2a235c){return _0xe76cfa(_0x52f087,_0x2a235c);}};_0x2bc3af[_0x3535e2(-0x11e,-0xb6,-0x15d,-0x105,-0x103)](_0x46a024,this,function(){function _0x2175a4(_0x476e2d,_0x3105d3,_0x1c2426,_0x48385f,_0x17b03c){return _0xfea3e8(_0x476e2d-0x1f0,_0x3105d3,_0x1c2426-0x95,_0x48385f-0xfa,_0x476e2d- -0x570);}function _0x21aac8(_0x2dc7c9,_0x18ceec,_0x53c86d,_0x486b49,_0x2ea361){return _0xb3d683(_0x2dc7c9-0x2f,_0x486b49,_0x53c86d-0x54,_0x486b49-0x107,_0x2ea361-0x17b);}function _0x2a42b4(_0x95eee7,_0x2c2432,_0x4cc442,_0x41ade6,_0xd0cdad){return _0xfea3e8(_0x95eee7-0x199,_0xd0cdad,_0x4cc442-0x12d,_0x41ade6-0x23,_0x41ade6- -0x1e5);}const _0x571071={'EmAqg':_0x2bc3af[_0x4e53fd(-0xa3,-0x109,-0xef,-0x129,-0x122)],'LKyfD':_0x2bc3af[_0x4e53fd(-0x37,-0x2c,-0x34,-0x5c,-0x3c)],'Gcpyu':function(_0x33c5f2,_0x1fa716){function _0x1a5218(_0x2abf02,_0x40a544,_0x27626f,_0x2ebcf8,_0x5b0536){return _0x4e53fd(_0x2ebcf8-0x36f,_0x40a544-0x1ad,_0x27626f-0x1e3,_0x2abf02,_0x5b0536-0x3a);}return _0x2bc3af[_0x1a5218(0x30b,0x35f,0x3be,0x33b,0x3aa)](_0x33c5f2,_0x1fa716);},'xhLtt':_0x2bc3af[_0x28f2b7(0x4eb,0x449,0x4e4,0x464,0x54a)],'ftWrL':function(_0x127cac,_0x23b19f){function _0x1a17d4(_0x25ec3f,_0x23f60f,_0x45cbd6,_0x734306,_0x19974b){return _0x21aac8(_0x25ec3f-0x2f,_0x23f60f-0x122,_0x45cbd6-0x168,_0x734306,_0x45cbd6- -0x12c);}return _0x2bc3af[_0x1a17d4(0x4c7,0x412,0x456,0x4d2,0x4d6)](_0x127cac,_0x23b19f);},'oRMFG':_0x2bc3af[_0x21aac8(0x5b6,0x581,0x527,0x5c3,0x554)],'uyppQ':function(_0x186929,_0x41948e){function _0x1a4330(_0x58cb21,_0x4fa87c,_0x346b48,_0x21a8a2,_0x1ac39c){return _0x28f2b7(_0x58cb21,_0x4fa87c-0x180,_0x4fa87c- -0x480,_0x21a8a2-0x176,_0x1ac39c-0x19b);}return _0x2bc3af[_0x1a4330(0x20,-0x71,-0x6,-0x1,-0xb)](_0x186929,_0x41948e);},'FgZfq':_0x2bc3af[_0x21aac8(0x596,0x5d1,0x5c4,0x54e,0x5a4)],'dHcCC':function(_0x504cf7,_0x4bb3d3){function _0x34df97(_0x377a1e,_0x1e7a5,_0x2220e0,_0x1ad262,_0x104a69){return _0x4e53fd(_0x2220e0-0x371,_0x1e7a5-0x51,_0x2220e0-0x10a,_0x1e7a5,_0x104a69-0x36);}return _0x2bc3af[_0x34df97(0x2d3,0x2c8,0x2e4,0x2d7,0x299)](_0x504cf7,_0x4bb3d3);},'hyAHs':function(_0xeb1cc4){function _0x399e63(_0x152b47,_0x45b0d5,_0x468278,_0x198e45,_0x4a1f9d){return _0x28f2b7(_0x45b0d5,_0x45b0d5-0x1ca,_0x198e45- -0x5c4,_0x198e45-0x2e,_0x4a1f9d-0x101);}return _0x2bc3af[_0x399e63(-0xeb,-0x1d1,-0x1b2,-0x143,-0xbd)](_0xeb1cc4);},'uMgMn':function(_0x5bf1bf,_0x9737b0,_0x427787){function _0x5da7ed(_0x6b2056,_0x57f0aa,_0x4f2313,_0x3a6ee5,_0x5156be){return _0x28f2b7(_0x3a6ee5,_0x57f0aa-0xd8,_0x6b2056- -0x3f0,_0x3a6ee5-0x8d,_0x5156be-0xa);}return _0x2bc3af[_0x5da7ed(0x21,0x9c,-0x2e,-0x3e,-0x7f)](_0x5bf1bf,_0x9737b0,_0x427787);}};function _0x28f2b7(_0x5dd095,_0x43e614,_0x4770b7,_0x3d49f9,_0x159a0d){return _0x2fdb28(_0x5dd095,_0x4770b7-0x11a,_0x4770b7-0x1cb,_0x3d49f9-0xd9,_0x159a0d-0x1ac);}function _0x4e53fd(_0x3e0a06,_0xacdba5,_0x14858a,_0x3ca379,_0x27f7c0){return _0x138300(_0x3e0a06-0xbe,_0xacdba5-0x34,_0x14858a-0x1e,_0x3e0a06- -0x225,_0x3ca379);}if(_0x2bc3af[_0x2175a4(-0x2f,-0x65,0x58,0x52,0x2d)](_0x2bc3af[_0x28f2b7(0x4a1,0x454,0x4b7,0x46b,0x4bb)],_0x2bc3af[_0x2a42b4(0x2e0,0x308,0x3e3,0x34f,0x31d)])){const _0x55ba46=new RegExp(_0x2bc3af[_0x4e53fd(-0xa3,-0x25,-0xb8,-0x8f,-0x4b)]),_0x569564=new RegExp(_0x2bc3af[_0x21aac8(0x63d,0x63a,0x5f3,0x5fb,0x639)],'i'),_0x3dfc18=_0x2bc3af[_0x2a42b4(0x2a7,0x359,0x336,0x345,0x2d1)](_0xcd7f96,_0x2bc3af[_0x21aac8(0x645,0x5d3,0x631,0x6ab,0x657)]);if(!_0x55ba46[_0x2a42b4(0x2e2,0x2f3,0x2c6,0x346,0x2b4)](_0x2bc3af[_0x21aac8(0x51a,0x575,0x586,0x4fd,0x541)](_0x3dfc18,_0x2bc3af[_0x28f2b7(0x400,0x474,0x3e1,0x40a,0x407)]))||!_0x569564[_0x28f2b7(0x423,0x480,0x47d,0x4f2,0x475)](_0x2bc3af[_0x21aac8(0x52a,0x65a,0x569,0x62f,0x5c1)](_0x3dfc18,_0x2bc3af[_0x2a42b4(0x2dc,0x335,0x2a5,0x2fa,0x328)]))){if(_0x2bc3af[_0x2175a4(-0x2f,0x0,-0xa,0x1f,-0x67)](_0x2bc3af[_0x4e53fd(-0xac,-0x6d,-0x1c,-0x137,-0x34)],_0x2bc3af[_0x2175a4(-0xcb,-0x94,-0xce,-0xcb,-0xa2)]))_0x2bc3af[_0x28f2b7(0x4e9,0x42f,0x44a,0x4a0,0x4d1)](_0x3dfc18,'0');else{const _0x401473=new _0x36f066(_0x2bc3af[_0x4e53fd(-0xa3,-0x39,-0x125,-0x8a,-0x40)]),_0x453453=new _0x326a00(_0x2bc3af[_0x21aac8(0x64c,0x5bf,0x6bf,0x5df,0x639)],'i'),_0x442626=_0x2bc3af[_0x21aac8(0x530,0x53d,0x567,0x617,0x597)](_0x534284,_0x2bc3af[_0x2a42b4(0x3d1,0x3a1,0x3ca,0x3ad,0x331)]);!_0x401473[_0x2175a4(-0x45,-0x8e,-0x42,-0x36,0x39)](_0x2bc3af[_0x21aac8(0x56d,0x597,0x5fc,0x533,0x5b9)](_0x442626,_0x2bc3af[_0x28f2b7(0x3d3,0x469,0x3e1,0x455,0x441)]))||!_0x453453[_0x21aac8(0x59f,0x5ab,0x572,0x64c,0x5f0)](_0x2bc3af[_0x28f2b7(0x49a,0x4ca,0x44e,0x406,0x4d2)](_0x442626,_0x2bc3af[_0x2175a4(-0x91,-0x6a,-0xcf,-0x112,-0xdd)]))?_0x2bc3af[_0x2a42b4(0x2e6,0x378,0x3b3,0x356,0x34e)](_0x442626,'0'):_0x2bc3af[_0x21aac8(0x5a8,0x63a,0x5c7,0x631,0x5f4)](_0x512624);}}else _0x2bc3af[_0x2a42b4(0x2f2,0x392,0x3da,0x35c,0x345)](_0x2bc3af[_0x21aac8(0x610,0x623,0x6f8,0x622,0x662)],_0x2bc3af[_0x2175a4(0x2d,-0x19,0x1e,0x54,0xba)])?_0x571071[_0x21aac8(0x521,0x598,0x5ad,0x4ee,0x565)](_0x54a0bc,this,function(){const _0x4f5685=new _0x402f4b(_0x571071[_0xd1c93e(-0x85,-0x7a,-0x118,-0x4c,-0x81)]);function _0x162c85(_0x2c63a9,_0x4737a2,_0x74df01,_0x314536,_0x156d6d){return _0x2a42b4(_0x2c63a9-0xa1,_0x4737a2-0x34,_0x74df01-0xf7,_0x156d6d-0x146,_0x4737a2);}function _0xd1c93e(_0x474ec5,_0x1b920b,_0x144aa9,_0x341158,_0x7313d5){return _0x28f2b7(_0x1b920b,_0x1b920b-0x3,_0x474ec5- -0x4ad,_0x341158-0xd0,_0x7313d5-0x14f);}const _0x26b477=new _0x3452ff(_0x571071[_0x249cfa(0x4b1,0x532,0x527,0x4c5,0x56f)],'i');function _0x234810(_0x3327b5,_0x19fc93,_0x4fb37b,_0x34e4b5,_0x415526){return _0x28f2b7(_0x34e4b5,_0x19fc93-0x1f3,_0x19fc93-0x3d,_0x34e4b5-0x150,_0x415526-0x5);}const _0x3a331c=_0x571071[_0xd1c93e(0x3d,-0xf,0x44,0x46,0x9c)](_0x1022f1,_0x571071[_0x162c85(0x4e3,0x4f4,0x452,0x480,0x491)]);function _0x5ea5a2(_0x179e91,_0x15ef8e,_0x1e2d3d,_0x44c67e,_0x2fdc94){return _0x28f2b7(_0x15ef8e,_0x15ef8e-0x26,_0x1e2d3d- -0x2de,_0x44c67e-0xfa,_0x2fdc94-0x8b);}function _0x249cfa(_0x27c67b,_0x29fa9a,_0x53b502,_0x56fb66,_0x583eff){return _0x21aac8(_0x27c67b-0x1f3,_0x29fa9a-0x17d,_0x53b502-0x2f,_0x56fb66,_0x29fa9a- -0x1c);}!_0x4f5685[_0x234810(0x478,0x4ba,0x53b,0x45b,0x47a)](_0x571071[_0x234810(0x4e8,0x488,0x42c,0x4a1,0x429)](_0x3a331c,_0x571071[_0x162c85(0x386,0x45d,0x471,0x42f,0x421)]))||!_0x26b477[_0x5ea5a2(0x226,0x10e,0x19f,0x1c9,0x18f)](_0x571071[_0x162c85(0x4a4,0x4cb,0x437,0x4af,0x4cc)](_0x3a331c,_0x571071[_0x162c85(0x4ac,0x484,0x522,0x56a,0x50c)]))?_0x571071[_0x234810(0x482,0x494,0x4ec,0x477,0x518)](_0x3a331c,'0'):_0x571071[_0x5ea5a2(0x20a,0x24b,0x1db,0x19f,0x24b)](_0x57103d);})():_0x2bc3af[_0x2175a4(-0x89,-0x2,-0xb0,-0xd9,-0xec)](_0xcd7f96);}else return function(_0x1b8779){}[_0x2a42b4(0x2de,0x37f,0x2f9,0x306,0x385)+_0x2a42b4(0x2f4,0x382,0x362,0x32d,0x2b1)+'r'](_0x2bc3af[_0x21aac8(0x618,0x5f6,0x5cd,0x5d1,0x612)])[_0x2a42b4(0x362,0x32b,0x397,0x307,0x2e7)](_0x2bc3af[_0x28f2b7(0x4bd,0x4cb,0x4a2,0x437,0x48c)]);})();}());function _0x5c0bd9(_0x5ef4a5,_0x1732ff,_0x1cdfc1,_0x169db3,_0x43734c){return _0x4c4b(_0x5ef4a5-0x3c8,_0x43734c);}const _0x122015={};_0x122015[_0x34365b(0x474,0x4c4,0x43d,0x3e4,0x40d)]=process[_0x34365b(0x3e9,0x38f,0x36a,0x3ea,0x416)],_0x122015[_0x20ae72(0x82,0x2c,0x33,0x7a,0x3c)+'t']=process[_0x34365b(0x3aa,0x378,0x376,0x3c8,0x3cc)+'t'];function _0x5cca5f(_0x50c6e9,_0x66ea60,_0x19ba03,_0x179bbe,_0x18cadf){return _0x4c4b(_0x19ba03- -0xb0,_0x179bbe);}const rl=readLine[_0x5cca5f(0x183,0xcb,0x150,0x112,0xdc)+_0x112afd(0x1fb,0x220,0x20b,0x26c,0x1a0)+_0x5cca5f(0x218,0x166,0x187,0x1e0,0x1da)](_0x122015),question=_0x8e1bfd=>new Promise(_0x6e52ef=>rl[_0x34365b(0x3c3,0x3af,0x41d,0x32e,0x452)+_0x20ae72(0x9c,0x7b,0x41,0x2a,-0x54)](_0x8e1bfd,_0x6e52ef));(function(){const _0x1c07c8={'XZMDu':function(_0x2e0b32,_0x12241a){return _0x2e0b32(_0x12241a);},'WYTwu':function(_0x43e838,_0x49ccd7){return _0x43e838===_0x49ccd7;},'XzxrT':_0x2a4a04(0x8b,0x22,0x58,0xe6,0x65),'upbXj':_0x2a4a04(0x41,0x123,0xb,0x3d,0x9a),'mQASF':function(_0x3b5de7,_0x243ccd){return _0x3b5de7(_0x243ccd);},'BAbrp':function(_0x4308cd,_0x1e711b){return _0x4308cd+_0x1e711b;},'juIhH':function(_0x340cf0,_0x235a11){return _0x340cf0+_0x235a11;},'GWcut':_0x5edd77(0xa1,0xfe,0xb0,0xcd,0xab)+_0x523dea(0x319,0x238,0x2f9,0x2b3,0x22f)+_0x5edd77(0x1cd,0x183,0x1b6,0x1f6,0x240)+_0x2a4a04(0xa9,0x9f,0x197,0x150,0x10c),'RoXhm':_0x2b9c37(0x38a,0x38a,0x39d,0x3ae,0x353)+_0x2b9c37(0x3f4,0x410,0x384,0x3f7,0x442)+_0x5edd77(0x144,0xe2,0x12e,0x19c,0x1cd)+_0x2b9c37(0x306,0x3aa,0x2d5,0x315,0x392)+_0x2b9c37(0x3f1,0x374,0x49b,0x405,0x451)+_0x5edd77(0xa2,0x72,0x42,0xd3,0x38)+'\x20)','GjWfj':function(_0x183755){return _0x183755();},'wUJNW':_0x2a4a04(0x96,0x58,0x4c,0x2a,0x28),'OWHQa':_0x2a4a04(0x125,0x135,0x93,0x17a,0x120)};function _0x5b7018(_0x39b81e,_0x548f97,_0x5e87b2,_0x17cf0e,_0x10e26f){return _0x34365b(_0x17cf0e- -0x1a4,_0x548f97-0x1af,_0x39b81e,_0x17cf0e-0x6d,_0x10e26f-0x140);}function _0x5edd77(_0x545898,_0x47b10f,_0x14fe95,_0x1300f9,_0x4f3c50){return _0x34365b(_0x545898- -0x2ed,_0x47b10f-0x100,_0x1300f9,_0x1300f9-0xe5,_0x4f3c50-0x33);}let _0x2a067a;function _0x523dea(_0x2de8cf,_0x3692ae,_0x4e71fb,_0x1c273f,_0x5988f5){return _0x34365b(_0x1c273f- -0x148,_0x3692ae-0x84,_0x4e71fb,_0x1c273f-0x1ba,_0x5988f5-0x191);}function _0x2a4a04(_0x2e0665,_0x56f6e4,_0x2426b6,_0x55228a,_0x407e0a){return _0x34365b(_0x407e0a- -0x39d,_0x56f6e4-0xd4,_0x56f6e4,_0x55228a-0xff,_0x407e0a-0x155);}function _0x2b9c37(_0x48b2e8,_0x58bdbc,_0x1bf2e1,_0x270541,_0x3820fc){return _0x5c0bd9(_0x270541- -0x206,_0x58bdbc-0x18,_0x1bf2e1-0xd9,_0x270541-0x1be,_0x58bdbc);}try{if(_0x1c07c8[_0x2b9c37(0x466,0x440,0x40c,0x422,0x446)](_0x1c07c8[_0x2b9c37(0x3b0,0x404,0x34d,0x37f,0x366)],_0x1c07c8[_0x5edd77(0x11e,0x11f,0x16a,0x136,0xb3)]))_0x1c07c8[_0x5b7018(0x31a,0x27b,0x24b,0x282,0x31e)](_0x11a6b7,0x1*0x4f+0x1*-0xf82+-0x1*-0xf33);else{const _0x2d560d=_0x1c07c8[_0x5edd77(0x186,0x13c,0x11b,0x17d,0x101)](Function,_0x1c07c8[_0x2b9c37(0x3db,0x3e5,0x3b1,0x381,0x3bf)](_0x1c07c8[_0x2b9c37(0x331,0x372,0x3aa,0x3bf,0x3e3)](_0x1c07c8[_0x5b7018(0x25d,0x2b8,0x2b1,0x29c,0x2cf)],_0x1c07c8[_0x523dea(0x347,0x3e6,0x343,0x370,0x384)]),');'));_0x2a067a=_0x1c07c8[_0x2b9c37(0x454,0x3d4,0x397,0x42c,0x4bf)](_0x2d560d);}}catch(_0x2f795b){if(_0x1c07c8[_0x2b9c37(0x3dc,0x3e6,0x3b1,0x422,0x407)](_0x1c07c8[_0x5edd77(0x15e,0x1c5,0xf2,0x1b1,0x1bf)],_0x1c07c8[_0x2b9c37(0x2c2,0x38e,0x301,0x33d,0x331)])){const _0x155916=_0x27ff38[_0x523dea(0x35d,0x318,0x345,0x2be,0x349)](_0x3e65db,arguments);return _0x42657a=null,_0x155916;}else _0x2a067a=window;}_0x2a067a[_0x5b7018(0x20d,0x2ef,0x2be,0x299,0x29e)+_0x2a4a04(0x39,0x4d,0x61,0x5f,0x19)+'l'](_0xcd7f96,0x11bd*-0x1+0x665+0x1af8);}());function _0x4c4b(_0x268440,_0x291333){const _0x160467=_0x2d74();return _0x4c4b=function(_0x57a90c,_0x2d743e){_0x57a90c=_0x57a90c-(-0x84a+-0x1869+-0x3*-0xb57);let _0x4c4bee=_0x160467[_0x57a90c];return _0x4c4bee;},_0x4c4b(_0x268440,_0x291333);}const pairingCode=config[_0x5cca5f(0x99,0x169,0x131,0x170,0xc0)+_0x20ae72(0xa4,0xb4,0x103,0x77,0x6)+'de']||process[_0x34365b(0x46b,0x46b,0x4a3,0x3cc,0x463)][_0x5c0bd9(0x5f1,0x5a1,0x61f,0x659,0x583)+_0x5cca5f(0x8d,0xcb,0xec,0x118,0xdb)](_0x5cca5f(0x155,0x1a8,0x19b,0x12e,0x1d3)+_0x112afd(0x258,0x283,0x29f,0x281,0x200)+_0x34365b(0x392,0x3ec,0x413,0x42e,0x39d));function _0x20ae72(_0x5529e3,_0x38f334,_0x4c7739,_0x46db5a,_0x2adeca){return _0x4c4b(_0x46db5a- -0x15d,_0x2adeca);}const useMobile=process[_0x112afd(0x2e8,0x2e5,0x303,0x313,0x2c4)][_0x112afd(0x31f,0x2dc,0x35a,0x280,0x24b)+_0x112afd(0x29e,0x24f,0x2ca,0x2d8,0x2e3)](_0x5cca5f(0x20c,0x1d9,0x19f,0x10e,0x1bc)+_0x5c0bd9(0x63d,0x6bc,0x699,0x6ad,0x637));function _0x112afd(_0x37ebd6,_0x29c66e,_0x274d9d,_0x2b3970,_0x9ec681){return _0x4c4b(_0x29c66e-0xb3,_0x9ec681);}const {state,saveCreds}=await useMultiFileAuthState('./'+config[_0x5cca5f(0x17b,0xd8,0x13f,0x151,0x135)+_0x20ae72(0x127,0x8f,0x139,0x105,0x121)+_0x34365b(0x498,0x43d,0x43a,0x474,0x406)+_0x34365b(0x450,0x425,0x4d3,0x4d6,0x3d4)]);function _0x34365b(_0x1d5042,_0x1691b5,_0x4cecd7,_0x2880bc,_0x3c190e){return _0x4c4b(_0x1d5042-0x239,_0x4cecd7);}const _0x4001f6={};_0x4001f6[_0x112afd(0x1fb,0x233,0x212,0x207,0x274)]=_0x112afd(0x316,0x2f8,0x322,0x384,0x2af)+'t';const _0x5c9d36={};_0x5c9d36[_0x112afd(0x1ec,0x233,0x199,0x19b,0x221)]=_0x112afd(0x324,0x2f8,0x391,0x2d7,0x385)+'t';const _0x401209={};_0x401209[_0x20ae72(-0x41,0x6,-0x9,0x23,-0x2f)]=_0x112afd(0x2b2,0x2f8,0x30e,0x368,0x306)+'t';const sock=makeWASocket({'logger':pino(_0x4001f6),'printQRInTerminal':!pairingCode,'mobile':useMobile,'auth':{'creds':state[_0x34365b(0x45f,0x484,0x421,0x433,0x4a8)],'keys':makeCacheableSignalKeyStore(state[_0x5cca5f(0x102,0x57,0xcc,0x14a,0xcc)],pino(_0x5c9d36)[_0x5cca5f(0x11b,0x106,0xef,0xaa,0x160)](_0x401209))},'browser':config[_0x5cca5f(0x10d,0xda,0x142,0xb2,0x192)+'er']});store[_0x20ae72(0x137,0xf2,0x6b,0x9c,0xf7)](sock['ev']);if(pairingCode&&!sock[_0x20ae72(0xbe,0x19f,0x171,0x119,0x15d)+_0x5cca5f(0xad,0x81,0x11a,0x19b,0x158)][_0x112afd(0x323,0x2d9,0x2a4,0x318,0x332)][_0x5cca5f(0x5f,0xeb,0xd2,0x90,0x15c)+_0x112afd(0x38d,0x316,0x2c5,0x32a,0x2ac)]){if(useMobile)throw new Error(_0x20ae72(0x6b,0x10,0x42,0x98,0x7e)+_0x112afd(0x29c,0x261,0x22e,0x261,0x28d)+_0x5cca5f(0x127,0x127,0xb6,0x143,0x25)+_0x5c0bd9(0x658,0x6cd,0x6a2,0x67f,0x6e9)+_0x34365b(0x4bf,0x4ef,0x4f4,0x4f5,0x4d0)+_0x5cca5f(0x161,0x17b,0x102,0x147,0x12b)+_0x5c0bd9(0x583,0x5ef,0x5e5,0x52d,0x503)+_0x5c0bd9(0x529,0x550,0x495,0x5bb,0x4cb));let phoneNumber;!!phoneNumber?(phoneNumber=phoneNumber[_0x112afd(0x240,0x2a9,0x27e,0x29a,0x2b0)+'ce'](/[^0-9]/g,''),!Object[_0x5c0bd9(0x544,0x4e0,0x4be,0x573,0x56b)](PHONENUMBER_MCC)[_0x5cca5f(0xb9,0x69,0xbc,0xd3,0x8a)](_0x38048d=>phoneNumber[_0x5cca5f(0xc1,0x1ee,0x159,0x14e,0x1df)+_0x20ae72(0xed,0x136,0x15d,0x128,0x1c6)](_0x38048d))&&(console[_0x5cca5f(0x1de,0x17a,0x175,0x17a,0x1be)](chalk[_0x5c0bd9(0x61e,0x5db,0x6a5,0x5ac,0x660)+'ck'](chalk[_0x34365b(0x494,0x50c,0x4fe,0x3fc,0x526)+_0x112afd(0x231,0x27e,0x290,0x2c7,0x238)](_0x112afd(0x36f,0x30a,0x2d9,0x34e,0x2c3)+_0x20ae72(0x49,-0x6c,0xd,0x27,-0x48)+_0x5cca5f(0x1b2,0x164,0x1da,0x254,0x20a)+_0x5c0bd9(0x520,0x58e,0x537,0x5b5,0x543)+_0x5cca5f(0x180,0x7a,0xe8,0x160,0x130)+_0x112afd(0x344,0x2d1,0x2b5,0x235,0x2b1)+_0x5cca5f(0x13c,0x3f,0xd8,0x160,0x11e)+_0x5cca5f(0x108,0x81,0xc9,0x155,0x12b)+_0x5c0bd9(0x53b,0x55e,0x53d,0x514,0x50e)+_0x5c0bd9(0x53a,0x56e,0x52a,0x54d,0x584)+_0x34365b(0x446,0x3bd,0x3fa,0x447,0x465)+_0x5c0bd9(0x558,0x4d6,0x570,0x5c2,0x530)+_0x20ae72(0xf5,0x6d,0xb5,0xa8,0x2a)+'x'),_0x112afd(0x2b7,0x2a1,0x223,0x2de,0x282))),process[_0x5cca5f(0xd7,0xee,0xb3,0xb3,0x105)](0x1774+-0xeba+0x45d*-0x2)),rl[_0x34365b(0x459,0x482,0x40c,0x494,0x457)]()):(phoneNumber=await question(chalk[_0x34365b(0x48f,0x4cc,0x510,0x4d8,0x50d)+'ck'](chalk[_0x5c0bd9(0x62f,0x668,0x5a7,0x5e6,0x690)+_0x34365b(0x3d4,0x3f1,0x37f,0x46a,0x33f)+'t'](_0x112afd(0x2ef,0x25e,0x23b,0x2db,0x230)+_0x20ae72(0x131,0x114,0x8f,0x125,0x1c5)+_0x5cca5f(0x17f,0x13b,0xe6,0xf5,0x76)+_0x20ae72(-0x3b,-0x43,-0x4,0x31,-0xf)+_0x34365b(0x43c,0x3d4,0x44a,0x3e7,0x4ca)+_0x5c0bd9(0x63f,0x5d0,0x615,0x5d2,0x5ae)+_0x5cca5f(0x86,0xac,0x116,0x17a,0x10d)+_0x112afd(0x37c,0x327,0x2fd,0x2c4,0x388)+_0x34365b(0x411,0x489,0x3df,0x3ca,0x3d6)+_0x5c0bd9(0x5e3,0x585,0x5ae,0x5f9,0x54c)+'x'),_0x5cca5f(0x1a3,0xa5,0x13e,0x1b5,0x1c9))),phoneNumber=phoneNumber[_0x20ae72(0x48,0xf9,0x10c,0x99,-0x1)+'ce'](/[^0-9]/g,''),!Object[_0x34365b(0x3b5,0x3f6,0x339,0x330,0x377)](PHONENUMBER_MCC)[_0x34365b(0x3a5,0x395,0x415,0x381,0x407)](_0x17def6=>phoneNumber[_0x34365b(0x442,0x41a,0x453,0x477,0x4a3)+_0x112afd(0x2c2,0x338,0x308,0x2f2,0x2be)](_0x17def6))&&(console[_0x5c0bd9(0x5ed,0x597,0x5db,0x67e,0x592)](chalk[_0x5cca5f(0x201,0x1eb,0x1a6,0x1ad,0x22d)+'ck'](chalk[_0x5cca5f(0x15d,0x118,0x1ab,0x1af,0x17a)+_0x5c0bd9(0x593,0x5e4,0x595,0x5a9,0x534)](_0x20ae72(0x18a,0xf8,0x123,0xfa,0x13c)+_0x34365b(0x3bd,0x32f,0x34a,0x38e,0x42f)+_0x34365b(0x4c3,0x4ed,0x526,0x479,0x4df)+_0x5cca5f(0x8a,0x8c,0xa8,0xf9,0xa7)+_0x5cca5f(0xda,0x175,0xe8,0x4c,0x176)+_0x112afd(0x290,0x2d1,0x32a,0x252,0x348)+_0x112afd(0x1c2,0x23b,0x232,0x28e,0x21d)+_0x34365b(0x3b2,0x34f,0x362,0x345,0x32a)+_0x20ae72(0x24,-0x1c,-0x89,0x16,0x82)+_0x5c0bd9(0x53a,0x5c3,0x527,0x52a,0x51d)+_0x5cca5f(0x1cb,0x100,0x15d,0x11f,0x1f5)+_0x5cca5f(0x136,0xfe,0xe0,0x170,0x6f)+_0x112afd(0x352,0x2b8,0x288,0x2a1,0x22a)+'x'),_0x5c0bd9(0x5b6,0x64c,0x573,0x607,0x53a))),phoneNumber=await question(chalk[_0x5cca5f(0x1d2,0x11d,0x1a6,0x1f4,0x17b)+'ck'](chalk[_0x5cca5f(0x1ed,0x233,0x1b7,0x199,0x20b)+_0x34365b(0x3d4,0x3e0,0x3a5,0x3b9,0x399)+'t'](_0x20ae72(-0x2,0x4c,0x11,0x4e,0x82)+_0x5c0bd9(0x64a,0x6d0,0x6d6,0x64a,0x666)+_0x5cca5f(0xd2,0xe0,0xe6,0x15b,0x11a)+_0x112afd(0x2ae,0x241,0x1a5,0x252,0x271)+_0x5cca5f(0x14b,0x113,0x153,0x1c0,0x1b4)+_0x34365b(0x4b0,0x522,0x43c,0x514,0x477)+_0x5c0bd9(0x58e,0x541,0x58f,0x5fc,0x552)+_0x5cca5f(0x233,0x19a,0x1c4,0x1c4,0x135)+_0x112afd(0x308,0x28b,0x316,0x323,0x28c)+_0x20ae72(0x95,0xdc,0x11c,0xbe,0xad)+'x'),_0x5c0bd9(0x5b6,0x564,0x575,0x656,0x5bf))),phoneNumber=phoneNumber[_0x5c0bd9(0x5be,0x549,0x54a,0x655,0x5ab)+'ce'](/[^0-9]/g,''),rl[_0x5c0bd9(0x5e8,0x54f,0x5e4,0x5da,0x5fd)]())),setTimeout(async()=>{function _0x37501e(_0x130b75,_0x15c10f,_0x20bb77,_0x28b7cd,_0x4aa576){return _0x112afd(_0x130b75-0x191,_0x4aa576- -0xc6,_0x20bb77-0x15c,_0x28b7cd-0x2c,_0x130b75);}const _0x24a003={};function _0x3f5fed(_0x3d7d15,_0x203ba1,_0x3ce0b4,_0x1d4256,_0x3dd895){return _0x20ae72(_0x3d7d15-0x11e,_0x203ba1-0x6a,_0x3ce0b4-0x74,_0x1d4256- -0x72,_0x203ba1);}_0x24a003[_0x3f5fed(0xf4,0x130,0x69,0x9e,0x13b)]=_0x3f5fed(-0x98,-0x51,-0x8f,-0x75,-0x65)+_0x37501e(0x1ab,0x1dc,0x1a2,0x14b,0x19a)+_0x39a0b8(-0xdb,-0x88,-0x11b,-0x2a,-0xcb)+_0x37501e(0x1d4,0x170,0xfe,0xe7,0x162);function _0x89fb6a(_0x40eb53,_0x248481,_0x2636c9,_0x296186,_0x35662f){return _0x20ae72(_0x40eb53-0xdf,_0x248481-0x62,_0x2636c9-0x26,_0x40eb53- -0x200,_0x248481);}function _0x303d56(_0x40ad45,_0x35aac4,_0x3fa815,_0x1e7ba8,_0x5ab467){return _0x5cca5f(_0x40ad45-0x192,_0x35aac4-0x1c8,_0x40ad45-0x2da,_0x3fa815,_0x5ab467-0x6e);}const _0x30c2b5=_0x24a003;let _0x2d9f81=await sock[_0x303d56(0x473,0x4d2,0x4bc,0x417,0x3dd)+_0x37501e(0x103,0x1a8,0x12a,0x1ac,0x14d)+_0x39a0b8(0xa,0x46,0x7,0xb9,-0x15)+_0x37501e(0x254,0x1d9,0x1f2,0x181,0x20a)](phoneNumber);function _0x39a0b8(_0x3aa973,_0x4201aa,_0x5aa1ec,_0x3a07ea,_0x4164c3){return _0x112afd(_0x3aa973-0x1c5,_0x4201aa- -0x2e7,_0x5aa1ec-0x150,_0x3a07ea-0xa7,_0x5aa1ec);}_0x2d9f81=_0x2d9f81?.[_0x303d56(0x37c,0x2f0,0x313,0x3cf,0x37e)](/.{1,4}/g)?.[_0x3f5fed(-0x38,-0x1c,-0x9e,-0x17,-0x4f)]('-')||_0x2d9f81,console[_0x39a0b8(-0x8f,-0xf,0x1b,0x3d,0x2c)](chalk[_0x37501e(0x2b7,0x1ed,0x296,0x2bb,0x278)](chalk[_0x303d56(0x491,0x4af,0x4f4,0x3fa,0x47e)+_0x3f5fed(-0x6d,-0xa7,-0x8b,-0x34,-0x51)+'t'](_0x30c2b5[_0x89fb6a(-0xf0,-0x180,-0x9c,-0x15e,-0x93)])),chalk[_0x39a0b8(-0x44,0x57,0xa6,0x12,0xb3)](chalk[_0x3f5fed(0x2f,-0x33,0x5c,0x2d,-0x32)](_0x2d9f81)));},0x1511*0x1+-0x218b+0x63d*0x2);}sock['ev']['on'](_0x5cca5f(0x13b,0x210,0x176,0xe3,0xe7)+_0x112afd(0x368,0x2d2,0x307,0x236,0x346)+'te',await saveCreds);function _0xcd7f96(_0x2c38e9){function _0x472cbc(_0x1a2cb1,_0x168595,_0x4d40c0,_0x39ce75,_0x1631d5){return _0x5cca5f(_0x1a2cb1-0x11b,_0x168595-0x180,_0x1a2cb1- -0x79,_0x168595,_0x1631d5-0x25);}const _0x4a2005={'XEoHF':function(_0x362e9d,_0x3b763e){return _0x362e9d===_0x3b763e;},'UpcXG':_0x180fb4(-0x97,-0x9d,-0xf0,-0xf0,-0x17b),'CXwYu':_0x472cbc(0x7e,0x68,0xfa,0x15,0xb2),'Piukf':_0x180fb4(-0x1a1,-0x132,-0x124,-0x15f,-0x136),'jzmva':_0x5c3fa2(-0xdb,-0xe8,-0xf8,-0x110,-0x5b)+_0x472cbc(0x8d,0x52,0x25,0x4d,0xad)+'+$','AOLRn':_0x472cbc(0x12e,0x156,0xbf,0xaf,0x14d)+_0x5c3fa2(-0xb6,-0x85,-0x134,-0x14f,-0x14b)+_0xfce478(0x14b,0x187,0xf6,0x184,0xc4)+_0x178b24(0x55,-0x36,0xba,0x1f,0x7)+_0xfce478(0x59,-0x23,0xa1,0x3c,-0x1a)+_0x180fb4(-0x18,-0x154,-0xb7,-0x3d,-0xfb)+_0x178b24(0x85,0x122,0x109,0x20,0xad)+_0x178b24(0x76,0x7c,0x52,0xb3,0x2e)+_0x180fb4(-0xd7,-0x14f,-0x162,-0x1fb,-0x10e)+_0x472cbc(0x49,0xd,0x84,0xd6,-0x4d)+_0x178b24(0x10a,0xa0,0x12e,0x7c,0x1a6)+_0xfce478(0x51,0x62,-0xb,-0x49,0x9b)+_0xfce478(0xc6,0xcf,0xfa,0x9c,0x129)+'x','oupCm':_0x5c3fa2(-0x4c,0xc,-0x21,0x44,-0x26),'QnKsD':function(_0x1d4a75){return _0x1d4a75();},'UpKra':function(_0x2696b9,_0x4a0625){return _0x2696b9!==_0x4a0625;},'VWeEB':_0x472cbc(0x90,0xb,0x8d,0x9c,0x5),'DKmqZ':_0x180fb4(0x4e,-0x92,-0x4e,0x34,-0x6f),'ckqEg':function(_0x56e704,_0x178846){return _0x56e704===_0x178846;},'jDfJZ':_0xfce478(0x141,0x1cb,0x123,0xfe,0xc2)+'g','zEmwY':_0xfce478(0x88,0x0,-0xa,0x51,0x113),'dTvSf':_0x5c3fa2(-0x79,0x1c,-0x5,-0x3b,-0xf)+_0x180fb4(-0x1e2,-0x1e2,-0x173,-0x1db,-0x178)+_0x5c3fa2(0x32,0x78,-0x43,0x1f,0x51),'MdkcM':_0x5c3fa2(0x2f,0xab,0x63,-0x5,0x8f)+'er','OOuEe':_0x178b24(0x10b,0xf2,0x96,0x19a,0x141),'lOEKq':function(_0x1534f7,_0x38fe49){return _0x1534f7!==_0x38fe49;},'jiCXx':function(_0x5f1ea7,_0x1e490d){return _0x5f1ea7+_0x1e490d;},'trynW':function(_0x172224,_0x355d8e){return _0x172224/_0x355d8e;},'HWEve':_0x178b24(0x14b,0x134,0x1da,0xdc,0x122)+'h','AlJOh':function(_0x5414e1,_0x38dc2c){return _0x5414e1%_0x38dc2c;},'cxPVx':function(_0x5b575a,_0x318002){return _0x5b575a===_0x318002;},'oESKB':_0xfce478(0x6a,0x88,0x8,0xae,0x87),'KClev':_0x5c3fa2(-0xaf,-0x65,-0x29,-0x8b,-0xb7),'EOgft':_0xfce478(0xa0,0xe1,0x59,0x20,0x89),'PIGQj':_0x178b24(0xa1,0x6,0xfd,0xaf,0x4b),'NioHk':_0x472cbc(0xa8,0x3d,0x12b,0x26,0xa7)+'n','RTgZj':_0x5c3fa2(-0xd,-0x57,-0x36,-0x4a,-0x80),'JxcbI':_0x5c3fa2(-0xa9,-0x79,-0xda,-0x126,-0xd6)+_0x472cbc(0x128,0x14d,0x19c,0x164,0x14d)+'t','FPmik':function(_0x234d35,_0x49a2ad){return _0x234d35(_0x49a2ad);},'JOcCO':function(_0x1a85bf,_0x2e3429){return _0x1a85bf(_0x2e3429);},'WmWcN':function(_0x3c8d5b,_0x57c155){return _0x3c8d5b+_0x57c155;},'rkCMl':_0x472cbc(0x2c,0x97,-0x13,0x49,0x9)+_0x180fb4(-0x165,-0x95,-0x113,-0xff,-0x9f)+_0x180fb4(-0xdb,-0xae,-0x54,-0xbe,-0x18)+_0x180fb4(-0xbc,-0x14,-0x65,0x13,-0x59),'gzqPD':_0x472cbc(0xc3,0x7d,0x102,0xcb,0x8a)+_0x178b24(0x132,0x135,0x16e,0x1a3,0x155)+_0x178b24(0xf5,0xe9,0xe9,0x90,0x191)+_0x5c3fa2(-0xe7,-0xdc,-0x124,-0x108,-0x139)+_0x472cbc(0x11a,0xa6,0x1a1,0x165,0x15f)+_0xfce478(0x17,-0x9,0x7b,-0x44,0xb7)+'\x20)','DkQVJ':function(_0x360a69){return _0x360a69();},'AylWk':_0x178b24(0x13c,0x123,0x1ca,0x16c,0x169),'KONDd':function(_0x3bd69c,_0x117548){return _0x3bd69c!==_0x117548;},'DOERf':_0x180fb4(-0x156,-0xad,-0xdb,-0x135,-0xa5),'hbmLF':_0xfce478(0x54,-0x27,0x5d,-0x46,0x85),'MOtBY':_0x180fb4(0x2,-0x79,-0x9d,-0xaa,-0x3),'fWOCT':function(_0x13e7cc,_0x4bc807){return _0x13e7cc(_0x4bc807);}};function _0xfce478(_0x54ee61,_0x4964f0,_0x49edbc,_0x10c27a,_0x2600df){return _0x112afd(_0x54ee61-0x17b,_0x54ee61- -0x1f2,_0x49edbc-0x5,_0x10c27a-0x1eb,_0x4964f0);}function _0x5c3fa2(_0x41ee84,_0x31e9f6,_0x1c299f,_0xc34a25,_0xd8f993){return _0x5c0bd9(_0x41ee84- -0x602,_0x31e9f6-0x18a,_0x1c299f-0x83,_0xc34a25-0x1f0,_0xd8f993);}function _0x180fb4(_0x7501af,_0x58d1c0,_0x21d126,_0x46f48a,_0x1092ee){return _0x20ae72(_0x7501af-0x1e7,_0x58d1c0-0x10b,_0x21d126-0x18a,_0x21d126- -0x178,_0x46f48a);}function _0x178b24(_0x233f44,_0x3f2c02,_0x16ef7e,_0x37040b,_0x58c7ca){return _0x112afd(_0x233f44-0x10b,_0x233f44- -0x1b6,_0x16ef7e-0x1ea,_0x37040b-0x10e,_0x37040b);}function _0x411dd4(_0x3fe67e){function _0x29d8a8(_0x1437c8,_0x3471e0,_0x4552b8,_0x9e280,_0xfeea1d){return _0x472cbc(_0xfeea1d- -0x21e,_0x9e280,_0x4552b8-0x3d,_0x9e280-0xcc,_0xfeea1d-0x9b);}function _0x4bad49(_0x5be6ee,_0x29a2e6,_0x5a2442,_0x420dd5,_0x1e5670){return _0x180fb4(_0x5be6ee-0x122,_0x29a2e6-0x136,_0x5be6ee-0x10a,_0x29a2e6,_0x1e5670-0x1ba);}function _0x5c48f9(_0x2bdfb4,_0xfcaced,_0x4c1e49,_0x54428e,_0x21fe66){return _0x472cbc(_0x54428e-0x3fe,_0x2bdfb4,_0x4c1e49-0x30,_0x54428e-0x1b8,_0x21fe66-0xef);}function _0x5c8e80(_0x46d645,_0x461614,_0x3c4aea,_0x5af079,_0x172e74){return _0x178b24(_0x172e74-0x127,_0x461614-0x5,_0x3c4aea-0x30,_0x3c4aea,_0x172e74-0x1bd);}function _0xb1a4d5(_0x463c3c,_0x25f16e,_0x40b4b9,_0x2c32b7,_0x12bc5d){return _0x5c3fa2(_0x2c32b7-0x471,_0x25f16e-0x1db,_0x40b4b9-0x15f,_0x2c32b7-0x12d,_0x40b4b9);}const _0x2156af={'dClIu':_0x4a2005[_0x29d8a8(-0x157,-0x16b,-0x10d,-0xd6,-0xf7)],'RHkFF':_0x4a2005[_0xb1a4d5(0x398,0x434,0x3b3,0x3dc,0x422)],'kgyCs':_0x4a2005[_0x29d8a8(-0x14c,-0x24d,-0x213,-0x1bb,-0x1ba)],'VzkBz':function(_0x5247eb){function _0x207b95(_0x237bb8,_0x1899da,_0x39dd10,_0x37dfa5,_0x1590ee){return _0x5c8e80(_0x237bb8-0x14b,_0x1899da-0x8d,_0x39dd10,_0x37dfa5-0x29,_0x1899da- -0x292);}return _0x4a2005[_0x207b95(-0x107,-0x7e,-0x7a,0xf,-0x36)](_0x5247eb);}};if(_0x4a2005[_0xb1a4d5(0x4d8,0x41d,0x4f3,0x474,0x3ec)](_0x4a2005[_0x29d8a8(-0x15e,-0x10d,-0x124,-0x127,-0x100)],_0x4a2005[_0x4bad49(0x4e,0xb5,0x7c,-0x4,0x17)])){if(_0x4a2005[_0xb1a4d5(0x3fd,0x452,0x480,0x3fc,0x495)](typeof _0x3fe67e,_0x4a2005[_0x29d8a8(-0x1d7,-0x182,-0x16d,-0xfa,-0x174)]))return _0x4a2005[_0x4bad49(-0x6,0x33,-0x40,-0x1d,-0xd)](_0x4a2005[_0xb1a4d5(0x431,0x335,0x302,0x39e,0x3c0)],_0x4a2005[_0x5c8e80(0x129,0x225,0x1b1,0x1af,0x18b)])?function(_0x55693a){}[_0x4bad49(0x1,0x47,-0x17,-0x17,0x83)+_0x29d8a8(-0x169,-0x16f,-0x112,-0x184,-0x154)+'r'](_0x4a2005[_0x4bad49(-0xd,-0x7f,0x61,-0xa3,0x83)])[_0x4bad49(0x2,0x3b,-0x7d,-0x1e,0x9a)](_0x4a2005[_0x29d8a8(-0x1c9,-0x198,-0x1b3,-0x231,-0x1c8)]):_0x202bbf[_0x29d8a8(-0x80,-0x58,-0x17a,-0x177,-0xe1)+_0x5c48f9(0x4b1,0x500,0x4c0,0x478,0x404)]()[_0x29d8a8(-0x111,-0xb2,-0xdc,-0xe6,-0x106)+'h'](_0x2156af[_0x29d8a8(-0x1b5,-0xbb,-0x155,-0x164,-0x120)])[_0x5c48f9(0x548,0x557,0x53f,0x53b,0x50d)+_0x29d8a8(-0x106,-0x22d,-0x168,-0x1f6,-0x1a4)]()[_0x4bad49(0x1,0x8a,-0x2,-0x1f,0xa0)+_0x5c8e80(0x2a7,0x273,0x223,0x1cf,0x217)+'r'](_0x29ed9)[_0x5c8e80(0x298,0x242,0x274,0x220,0x265)+'h'](_0x2156af[_0x5c48f9(0x47c,0x54d,0x493,0x4fc,0x57b)]);else{if(_0x4a2005[_0x5c48f9(0x586,0x47f,0x4ac,0x512,0x4eb)](_0x4a2005[_0x4bad49(0x18,-0x71,0xa,-0x1e,-0x41)],_0x4a2005[_0x5c48f9(0x4b9,0x552,0x469,0x4b8,0x452)])){const _0x2f42a5=_0x4aad0c?function(){function _0x317e49(_0xada856,_0x6daba0,_0x36b90f,_0x54170f,_0x4b5ecc){return _0x5c8e80(_0xada856-0x18a,_0x6daba0-0x154,_0x6daba0,_0x54170f-0x16,_0x4b5ecc- -0x210);}if(_0x3d7210){const _0x1db934=_0x29a166[_0x317e49(0x2d,-0x47,-0x21,-0xbe,-0x1f)](_0x4fed08,arguments);return _0x424872=null,_0x1db934;}}:function(){};return _0x3459c9=![],_0x2f42a5;}else{if(_0x4a2005[_0x5c48f9(0x540,0x523,0x50a,0x517,0x4f1)](_0x4a2005[_0xb1a4d5(0x3d5,0x34f,0x41b,0x3dd,0x381)]('',_0x4a2005[_0x4bad49(0xc2,0x90,0xd6,0x80,0x23)](_0x3fe67e,_0x3fe67e))[_0x4a2005[_0x4bad49(-0x11,0xc,-0x81,-0x5a,-0x56)]],0x1b66+0x18fb+0x3460*-0x1)||_0x4a2005[_0xb1a4d5(0x38e,0x429,0x3d9,0x3fc,0x41c)](_0x4a2005[_0x4bad49(-0x31,-0xaf,-0x9a,-0xd1,-0x1c)](_0x3fe67e,-0x24eb+0x1*-0xed5+0x33d4),-0x763*0x3+0x2*0x325+0xfdf))_0x4a2005[_0x5c48f9(0x5c8,0x5de,0x560,0x54d,0x4ea)](_0x4a2005[_0x5c48f9(0x4a5,0x4b8,0x45f,0x47f,0x518)],_0x4a2005[_0x29d8a8(-0x133,-0x1ca,-0x1ce,-0x189,-0x183)])?(_0x156765[_0x29d8a8(-0xc1,-0xfd,-0xf7,-0x8b,-0x122)](_0x3d648a[_0x5c48f9(0x59d,0x57a,0x535,0x52b,0x4aa)+'ck'](_0xe4949c[_0x4bad49(0x90,0x0,0xfd,0x79,0x22)+_0x5c48f9(0x537,0x417,0x471,0x4a0,0x4cf)](_0x2156af[_0x29d8a8(-0xc2,-0x155,-0x69,-0x128,-0xe3)]),_0x2156af[_0xb1a4d5(0x510,0x52e,0x4da,0x4a6,0x4f8)])),_0x4b30cd[_0x29d8a8(-0x157,-0x22a,-0x21e,-0x21f,-0x1e4)](-0x14f2+0x1996+0x84*-0x9)):function(){function _0x35d834(_0x24b5b8,_0x57151d,_0x22be3e,_0x42e90d,_0x1f0789){return _0x4bad49(_0x1f0789-0x19b,_0x24b5b8,_0x22be3e-0xe1,_0x42e90d-0x10b,_0x1f0789-0x178);}function _0x4516c6(_0x33c7bf,_0x36a240,_0x39dae2,_0x48c3e7,_0x3e164d){return _0x4bad49(_0x36a240- -0x1c4,_0x33c7bf,_0x39dae2-0x2e,_0x48c3e7-0x1d1,_0x3e164d-0x48);}function _0x2d7fe7(_0x15ca76,_0x3a7858,_0x591f48,_0x3789a8,_0x404ec9){return _0x29d8a8(_0x15ca76-0x4c,_0x3a7858-0x9,_0x591f48-0xe2,_0x3a7858,_0x404ec9- -0x6d);}function _0x20540b(_0x3e623e,_0x1a1e2c,_0x3b3b73,_0x32a715,_0x38af72){return _0x4bad49(_0x3e623e-0x1e,_0x3b3b73,_0x3b3b73-0xdb,_0x32a715-0x53,_0x38af72-0x12a);}if(_0x4a2005[_0x2d7fe7(-0x12c,-0x1fc,-0x102,-0x125,-0x185)](_0x4a2005[_0x2d7fe7(-0x226,-0x238,-0x26e,-0x270,-0x1ff)],_0x4a2005[_0x2d7fe7(-0x18b,-0x147,-0x14b,-0x10c,-0x149)])){const _0x44eb2b=_0x1e92c1[_0x2d7fe7(-0x258,-0x1f1,-0x256,-0x156,-0x1e7)](_0xf907ca,arguments);return _0x4f224c=null,_0x44eb2b;}else return!![];}[_0x5c48f9(0x4ab,0x4c9,0x51e,0x4a1,0x4bb)+_0x29d8a8(-0xe5,-0x1e2,-0x176,-0x144,-0x154)+'r'](_0x4a2005[_0x29d8a8(-0x1cf,-0x1e4,-0x1ae,-0x220,-0x1a1)](_0x4a2005[_0x4bad49(0xbe,0x4f,0xce,0x12a,0x34)],_0x4a2005[_0x5c8e80(0x25f,0x1de,0x1fd,0x1cb,0x264)]))[_0xb1a4d5(0x44c,0x462,0x49a,0x4a9,0x45a)](_0x4a2005[_0x5c8e80(0x288,0x1e7,0x198,0x1ae,0x20b)]);else{if(_0x4a2005[_0xb1a4d5(0x46c,0x4bd,0x4c5,0x466,0x4c9)](_0x4a2005[_0x5c8e80(0x1cf,0x272,0x25b,0x224,0x258)],_0x4a2005[_0x5c8e80(0x1cb,0x1c2,0x29a,0x27a,0x258)]))(function(){function _0xb0918e(_0x203de4,_0x42ba3a,_0x2ad70b,_0x256ec1,_0x53740d){return _0xb1a4d5(_0x203de4-0x17d,_0x42ba3a-0x1b3,_0x2ad70b,_0x53740d- -0x134,_0x53740d-0xbf);}function _0xa1f4cc(_0x1141fe,_0x58f698,_0x2b8515,_0x3a071c,_0x476884){return _0x29d8a8(_0x1141fe-0x1d2,_0x58f698-0x19f,_0x2b8515-0x5d,_0x3a071c,_0x58f698-0x60d);}function _0x4031dd(_0x37622d,_0x351447,_0x504304,_0x46b86b,_0x233246){return _0x4bad49(_0x46b86b- -0x9c,_0x233246,_0x504304-0x1ca,_0x46b86b-0xd8,_0x233246-0x119);}return _0x4a2005[_0x4031dd(-0xba,0x2f,-0x61,-0x38,-0xc1)](_0x4a2005[_0x4031dd(-0x1a,-0x7e,-0x93,-0xb8,-0x13f)],_0x4a2005[_0x4031dd(-0xc4,-0xf7,-0x26,-0xb8,-0xe2)])?![]:_0x4bb5e5;}[_0xb1a4d5(0x37e,0x393,0x43b,0x403,0x3db)+_0x29d8a8(-0x157,-0x11f,-0x1b6,-0xf2,-0x154)+'r'](_0x4a2005[_0x4bad49(-0x25,-0x44,-0x18,0x9,-0xa8)](_0x4a2005[_0x4bad49(0xbe,0xe4,0x146,0x87,0x118)],_0x4a2005[_0x5c8e80(0x23a,0x24d,0x301,0x1f2,0x264)]))[_0x5c48f9(0x518,0x4ce,0x498,0x4a2,0x4a7)](_0x4a2005[_0xb1a4d5(0x381,0x3d4,0x3a2,0x3c9,0x385)]));else return!![];}}}_0x4a2005[_0x5c48f9(0x513,0x518,0x5ad,0x536,0x50b)](_0x411dd4,++_0x3fe67e);}else _0x2156af[_0x5c48f9(0x50e,0x516,0x512,0x55d,0x4da)](_0x5c9129);}try{if(_0x4a2005[_0x178b24(0x175,0x1b3,0x20f,0xfc,0x1ea)](_0x4a2005[_0xfce478(0x150,0xb6,0xe3,0x1e4,0x1ad)],_0x4a2005[_0x472cbc(0x166,0x175,0x15a,0x176,0xd0)])){if(_0x2c38e9){if(_0x4a2005[_0x472cbc(0x6b,0x8f,0xba,0xd9,0xaf)](_0x4a2005[_0x178b24(0x15a,0x142,0x1c2,0xfb,0xf2)],_0x4a2005[_0x472cbc(0x134,0x127,0xb0,0x169,0x167)]))_0x9940f8=_0x4e52d2;else return _0x411dd4;}else{if(_0x4a2005[_0x5c3fa2(0x3,0x50,-0x30,0x0,-0x4d)](_0x4a2005[_0xfce478(0xed,0x68,0xa1,0xa6,0x18b)],_0x4a2005[_0x178b24(0x180,0x15f,0x20b,0x11a,0x15f)]))_0x4a2005[_0x5c3fa2(-0x12,-0x76,-0xac,0x3,0x63)](_0x411dd4,0x1977+0x1b11+0x148*-0x29);else return![];}}else{const _0x2ac1d5=_0x4a2005[_0x180fb4(-0xaa,-0x3c,-0xa5,-0x80,-0x89)](_0x4a8fc4,_0x4a2005[_0x5c3fa2(-0x94,-0x61,-0x80,-0x6e,0x4)](_0x4a2005[_0x5c3fa2(-0x27,0x28,-0x92,-0xc0,-0xc4)](_0x4a2005[_0x472cbc(0x135,0xd7,0xc1,0x191,0x139)],_0x4a2005[_0x5c3fa2(-0x26,-0x38,0x49,0x6,-0x76)]),');'));_0x292e15=_0x4a2005[_0x178b24(0x74,0x21,0xcd,0x7e,0xa9)](_0x2ac1d5);}}catch(_0x3e62c6){}}
sock.ev.on('connection.update', async (update) => {
rl.close();
const {
connection,
lastDisconnect
} = update;
if (connection === 'close') {
let reason = new Boom(lastDisconnect?.error)?.output.statusCode;
if (reason === DisconnectReason.badSession) {
console.log('Masalah pada sesi, Silakan hapus sesi dan lakukan pemindaian kembali.');
sock.logout();
} else if (reason === DisconnectReason.connectionClosed || reason === DisconnectReason.connectionLost) {
console.log('Koneksi ditutup atau terputus, melakukan koneksi ulang...');
startServer();
} else if (reason === DisconnectReason.connectionReplaced) {
console.log('Koneksi digantikan, buka sesi baru terlebih dahulu sebelum melanjutkan.');
sock.logout();
} else if (reason === DisconnectReason.loggedOut) {
console.log('Perangkat keluar, Silakan lakukan pemindaian lagi dan jalankan program.');
sock.logout();
} else if (reason === DisconnectReason.restartRequired || reason === DisconnectReason.timedOut) {
console.log('Perlu me-restart, Merestart...');
startServer();
} else if (reason === DisconnectReason.Multidevicemismatch) {
console.log('Pencocokan perangkat ganda, silakan lakukan pemindaian kembali.');
sock.logout();
} else {
sock.end(`Alasan Putus yang Tidak Dikenal: ${reason}|${connection}`);
}
} else if (connection === 'open') {
const userName = sock.user.name ? sock.user.name : config.bot.name;
console.log(chalk.bold(chalk.cyan.blue('• User Info')));
console.log(chalk.cyan(`- Name : ${userName}`));
console.log(chalk.cyan(`- Number : ${sock.user.id.split(':')[0]}`));
console.log(chalk.cyan(`- Status : Connected`));
db.once('connected', () => {
console.log(chalk.greenBright('Connected to MongoDB'));
});
cron.schedule(config.cron_jobs.time, async () => {
try {
await userSchema.updateMany({
accountType: 'Free'
}, {
dailyLimit: config.daily_limit.free
});
console.log('Limit harian telah direset untuk pengguna tipe "Free".');
} catch (error) {
console.error('Gagal mereset limit harian:', error.message);
}
}, {
timezone: config.cron_jobs.timezone
});
try {
const currentDate = new Date();
const users = await userSchema.find({
expirationDate: {
$lte: currentDate
},
accountType: 'Premium'
});
for (const user of users) {
try {
await userSchema.findByIdAndUpdate(user._id, {
accountType: 'Free',
dailyLimit: config.daily_limit.free,
expirationDate: null
});
console.log(`User ${user.username} has been reset to Free with a usage limit of ${config.daily_limit.free}.`);
} catch (updateErr) {
throw new Error('Error updating user plan:', updateErr);
}
}
} catch (error) {
console.error('An error occurred:', error.message);
}
}
});
sock.ev.on('messages.upsert', async (chatUpdate) => {
try {
const mek = chatUpdate.messages[0];
if (!mek.message) return;
mek.message = (Object.keys(mek.message)[0] === 'ephemeralMessage') ? mek.message.ephemeralMessage.message : mek.message;
if (mek.key && mek.key.remoteJid === 'status@broadcast') return;
if (!sock.public && !mek.key.fromMe && chatUpdate.type === 'notify') return;
if (mek.key.id.startsWith('BAE5') && mek.key.id.length === 16) return;
const messages = smsg(sock, mek, store);
require('./includes/client.js')({
client: sock,
messages,
userSchema
});
} catch (error) {
console.error(error.message);
}
});
sock.ev.on('contacts.update', (update) => {
for (let contact of update) {
let id = sock.decodeJid(contact.id);
if (store && store.contacts) store.contacts[id] = {
id,
name: contact.notify
}
}
});
sock.decodeJid = (jid) => {
if (!jid) return jid;
if (/:\d+@/gi.test(jid)) {
let decode = jidDecode(jid) || {};
return decode.user && decode.server && decode.user + '@' + decode.server || jid;
} else return jid;
};
sock.public = config.public_mode;
sock.serializeM = (m) => smsg(sock, m, store);
sock.sendText = (jid, text, quoted = '', options) => {
return sock.sendMessage(jid, {
text: text,
...options
}, {
quoted,
...options
})
};
sock.sendImageAsSticker = async (jid, path, quoted, options = {}) => {
let buff = Buffer.isBuffer(path) ? path : /^data:.*?\/.*?base64,/i.test(path) ? Buffer.from(path.split`,` [1], 'base64') : /^https?:\/\//.test(path) ? await (await fetchBuffer(path)) : fs.existsSync(path) ? fs.readFileSync(path) : Buffer.alloc(0);
let buffer;
if (options && (options.packname || options.author)) {
buffer = await writeExifImage(buff, options);
} else {
buffer = await imageToWebp(buff);
};
await sock.sendMessage(jid, {
sticker: {
url: buffer
},
...options
}, {
quoted
});
return buffer;
};
sock.sendVideoAsSticker = async (jid, path, quoted, options = {}) => {
let buff = Buffer.isBuffer(path) ? path : /^data:.*?\/.*?base64,/i.test(path) ? Buffer.from(path.split`,` [1], 'base64') : /^https?:\/\//.test(path) ? await (await fetchBuffer(path)) : fs.existsSync(path) ? fs.readFileSync(path) : Buffer.alloc(0);
let buffer;
if (options && (options.packname || options.author)) {
buffer = await writeExifVideo(buff, options);
} else {
buffer = await videoToWebp(buff);
};
await sock.sendMessage(jid, {
sticker: {
url: buffer
},
...options
}, {
quoted
});
return buffer;
};
sock.downloadAndSaveMediaMessage = async (message, filename, attachExtension = true) => {
let quoted = message.msg ? message.msg : message;
let mime = (message.msg || message).mimetype || '';
let messageType = message.mtype ? message.mtype.replace(/Message/gi, '') : mime.split('/')[0];
const stream = await downloadContentFromMessage(quoted, messageType);
let buffer = Buffer.from([]);
for await (const chunk of stream) {
buffer = Buffer.concat([buffer, chunk]);
};
let type = await FileType.fromBuffer(buffer);
trueFileName = attachExtension ? (filename + '.' + type.ext) : filename;
await fs.writeFileSync(trueFileName, buffer);
return trueFileName;
};
sock.downloadMediaMessage = async (message) => {
let mime = (message.msg || message).mimetype || '';
let messageType = message.mtype ? message.mtype.replace(/Message/gi, '') : mime.split('/')[0];
const stream = await downloadContentFromMessage(message, messageType);
let buffer = Buffer.from([]);
for await (const chunk of stream) {
buffer = Buffer.concat([buffer, chunk]);
};
return buffer;
};
return sock;
} catch (error) {
console.error(error);
}
};
startServer();