@im-dims/dims-js 0.4.3

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.

Potentially problematic release.


This version of @im-dims/dims-js might be problematic. Click here for more details.

Files changed (38) hide show
  1. package/README.md +180 -0
  2. package/index.js +32 -0
  3. package/package.json +59 -0
  4. package/system/cloudDBAdabter.js +52 -0
  5. package/system/connection.js +231 -0
  6. package/system/converter.js +2 -0
  7. package/system/exif.js +2 -0
  8. package/system/functions.js +2 -0
  9. package/system/kasumiApic.js +2 -0
  10. package/system/lowdb/Low.d.ts +11 -0
  11. package/system/lowdb/Low.js +21 -0
  12. package/system/lowdb/LowSync.d.ts +11 -0
  13. package/system/lowdb/LowSync.js +21 -0
  14. package/system/lowdb/MissingAdapterError.d.ts +3 -0
  15. package/system/lowdb/MissingAdapterError.js +7 -0
  16. package/system/lowdb/adapters/JSONFile.d.ts +7 -0
  17. package/system/lowdb/adapters/JSONFile.js +19 -0
  18. package/system/lowdb/adapters/JSONFileSync.d.ts +7 -0
  19. package/system/lowdb/adapters/JSONFileSync.js +19 -0
  20. package/system/lowdb/adapters/LocalStorage.d.ts +7 -0
  21. package/system/lowdb/adapters/LocalStorage.js +16 -0
  22. package/system/lowdb/adapters/Memory.d.ts +6 -0
  23. package/system/lowdb/adapters/Memory.js +13 -0
  24. package/system/lowdb/adapters/MemorySync.d.ts +6 -0
  25. package/system/lowdb/adapters/MemorySync.js +12 -0
  26. package/system/lowdb/adapters/TextFile.d.ts +8 -0
  27. package/system/lowdb/adapters/TextFile.js +25 -0
  28. package/system/lowdb/adapters/TextFileSync.d.ts +8 -0
  29. package/system/lowdb/adapters/TextFileSync.js +26 -0
  30. package/system/lowdb/index.d.ts +9 -0
  31. package/system/lowdb/index.js +11 -0
  32. package/system/mongoDB.js +2 -0
  33. package/system/plugins.js +2 -0
  34. package/system/postgresDB.js +2 -0
  35. package/system/print.js +2 -0
  36. package/system/scraper.js +354 -0
  37. package/system/simple.js +2 -0
  38. package/system/store.js +2 -0
package/README.md ADDED
@@ -0,0 +1,180 @@
1
+ ### Simplicity WhatsApp Bot (Baileys)
2
+
3
+ > This is a WhatsApp bot module based on Baileys which can be used in a very easy way.
4
+
5
+ ### Get Started
6
+ ```Javascript
7
+ const loli = new(require('@im-dims/dims-js'))
8
+ console.log(loli)
9
+ ```
10
+
11
+ ### Event Message (message)
12
+ ```Javascript
13
+ WebMessageInfo {
14
+ messageStubParameters: [],
15
+ labels: [],
16
+ userReceipt: [],
17
+ reactions: [],
18
+ pollUpdates: [],
19
+ eventResponses: [],
20
+ key: MessageKey {
21
+ remoteJid: '1234@g.us',
22
+ fromMe: false,
23
+ id: '32797FA1DDA4B27626EC95E76B0E7CC5',
24
+ participant: '628999@s.whatsapp.net'
25
+ },
26
+ message: Message { conversation: '=> m' },
27
+ messageTimestamp: Long { low: 1730019648, high: 0, unsigned: true },
28
+ broadcast: false,
29
+ pushName: 'Dimas',
30
+ id: '32797FA1DDA4B27626EC95E76B0E7CC5',
31
+ isBaileys: false,
32
+ chat: '1234@g.us',
33
+ isGroup: true,
34
+ sender: '628999@s.whatsapp.net',
35
+ fromMe: false,
36
+ mtype: 'conversation',
37
+ msg: '=> m',
38
+ text: '=> m',
39
+ mentionedJid: [],
40
+ quoted: null,
41
+ name: 'Dimas',
42
+ reply: [Function (anonymous)],
43
+ react: [Function (anonymous)],
44
+ copy: [Function (anonymous)],
45
+ forward: [Function (anonymous)],
46
+ copyNForward: [Function (anonymous)],
47
+ cMod: [Function (anonymous)],
48
+ delete: [Function (anonymous)],
49
+ exp: 24,
50
+ limit: false,
51
+ plugin: 'owner-eval.js',
52
+ isCommand: true
53
+ }
54
+ ```
55
+
56
+ ### Messaging Function
57
+ ```Javascript
58
+ // send a text message (auto tagged)
59
+ slips.reply(m.chat, `Test!`, m)
60
+
61
+ // send a react message
62
+ slips.sendReact(m.chat, `💀`, m.key)
63
+
64
+ // send a text message with progress bar
65
+ slips.sendProgress(m.chat, `Test!`, m)
66
+
67
+ // send a text message with custom thumbnail
68
+ slips.sendMessageModify(m.chat, 'Hi!', m, {
69
+ title: '© mari-bot',
70
+ largeThumb: true,
71
+ /* can buffer or url */
72
+ thumbnail: 'https://i.ibb.co/DfksZNg/image.jpg',
73
+ link: 'https://chat.whatsapp.com/JDihQ498jwH9UKu8kFaT9N'
74
+ })
75
+
76
+ // send a file from path, url, or buffer (auto extension)
77
+ slips.sendFile(m.chat, 'https://i.ibb.co/DfksZNg/image.jpg', 'image.jpg', 'Test!', m)
78
+
79
+ // send a document from path, url, or buffer (auto extension)
80
+ slips.sendFile(m.chat, 'https://i.ibb.co/DfksZNg/image.jpg', 'image.jpg', 'Test!', m, {
81
+ document: true
82
+ })
83
+
84
+ // send a voicenote from path, url, or buffer
85
+ slips.sendFile(m.chat, './media/audio/ah.mp3', '', '', m, {
86
+ ptt: true
87
+ })
88
+
89
+ // send a audio from path, url, or buffer with thumbnail in audio tag
90
+ slips.sendFile(m.chat, './media/audio/ah.mp3', '', '', m, {
91
+ APIC: < Buffer >
92
+ })
93
+
94
+ // send a sticker message from url or buffer
95
+ slips.sendSticker(m.chat, 'https://i.ibb.co/DfksZNg/image.jpg', m, {
96
+ packname: 'Sticker by',
97
+ author: '© mari-bot'
98
+ })
99
+
100
+ // send polling message
101
+ slips.sendPoll(m.chat, 'Do you like this library ?', {
102
+ options: ['Yes', 'No'],
103
+ multiselect: false
104
+ })
105
+
106
+ // send contact message
107
+ slips.sendContact(m.chat, [{
108
+ name: 'Dimas T',
109
+ number: '628999,
110
+ about: 'Owner & Creator'
111
+ }], m, {
112
+ org: 'Dims Network',
113
+ website: 'https://api.ssateam.my.id',
114
+ email: 'dev@ssateam.my.id'
115
+ })
116
+
117
+ // forward message
118
+ slips.copyNForward(m.chat, m)
119
+
120
+ // send button message (your own risk)
121
+ var buttons = [{
122
+ name: "quick_reply",
123
+ buttonParamsJson: JSON.stringify({
124
+ display_text: "OWNER",
125
+ id: '.owner'
126
+ }),
127
+ }, {
128
+ name: "cta_url",
129
+ buttonParamsJson: JSON.stringify({
130
+ display_text: "Rest API",
131
+ url: "https://api.neoxr.my.id",
132
+ merchant_url: "https://api.neoxr.my.id"
133
+ })
134
+ }, {
135
+ name: "cta_copy",
136
+ buttonParamsJson: JSON.stringify({
137
+ display_text: "Copy",
138
+ copy_code: "123456"
139
+ })
140
+ }, {
141
+ name: "cta_call",
142
+ buttonParamsJson: JSON.stringify({
143
+ display_text: "Call",
144
+ phone_number: "6285887776722"
145
+ })
146
+ }, {
147
+ name: "single_select",
148
+ buttonParamsJson: JSON.stringify({
149
+ title: "Tap!",
150
+ sections: [{
151
+ rows: [{
152
+ title: "Owner",
153
+ description: `X`,
154
+ id: `.owner`
155
+ }, {
156
+ title: "Runtime",
157
+ description: `Y`,
158
+ id: `.run`
159
+ }]
160
+ }]
161
+ })
162
+ }]
163
+
164
+ // button & list
165
+ slips.sendIAMessage(m.chat, buttons, m, {
166
+ header: '',
167
+ content: 'Hi!',
168
+ footer: '',
169
+ media: global.db.setting.cover // video or image link
170
+ })
171
+ ```
172
+
173
+ ### Thanks To (Source of Ideas)
174
+ [![Neoxr](https://github.com/neoxr.png?size=100)](https://github.com/neoxr)
175
+ [![Wildan](https://github.com/rifnd.png?size=100)](https://github.com/rifnd)
176
+
177
+ ### Staff Contribute
178
+ [![Im-Dims](https://github.com/Im-Dims.png?size=100)](https://github.com/Im-Dims)
179
+ [![Xyro](https://github.com/Xyro-Dev.png?size=100)](https://github.com/Xyro-Dev)
180
+ [![Fainshe](https://github.com/fainshe.png?size=100)](https://github.com/fainshe)
package/index.js ADDED
@@ -0,0 +1,32 @@
1
+ require('dotenv').config()
2
+ const { makeWASocket, smsg, logic, protoType } = require('./system/simple')
3
+ const { Connection } = require('./system/connection')
4
+ const Plugins = require('./system/plugins')
5
+ const Functions = new (require('./system/functions'))
6
+ const Scraper = new (require('./system/scraper'))
7
+ const Converter = new (require('./system/converter'))
8
+ const Print = require('./system/print')
9
+ const Exif = new (require('./system/exif'))
10
+ const MongoDB = require('./system/mongoDB')
11
+ const PostgresDB = require('./system/postgresDB')
12
+ const CloudDBAdapter = require('./system/cloudDBAdabter')
13
+ const lowdb = require('./system/lowdb')
14
+ const kasumiApic = new (require('./system/kasumiApic'))
15
+ module.exports = class Component {
16
+ makeWASocket = makeWASocket
17
+ smsg = smsg
18
+ logic = logic
19
+ protoType = protoType
20
+ Connection = Connection
21
+ Plugins = Plugins
22
+ Functions = Functions
23
+ Scraper = Scraper
24
+ Converter = Converter
25
+ Print = Print
26
+ Exif = Exif
27
+ MongoDB = MongoDB
28
+ PostgresDB = PostgresDB
29
+ CloudDBAdapter = CloudDBAdapter
30
+ lowdb = lowdb
31
+ kasumiApic = kasumiApic
32
+ }
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@im-dims/dims-js",
3
+ "version": "0.4.3",
4
+ "description": "Simplicity WhatsApp Bot (Baileys)",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/Im-Dims/kasumi-bot.git"
12
+ },
13
+ "author": "Dimas Triyatno",
14
+ "license": "ISC",
15
+ "bugs": {
16
+ "url": "https://github.com/Im-Dims/kasumi-bot/issues"
17
+ },
18
+ "homepage": "https://github.com/Im-Dims/kasumi-bot#readme",
19
+ "dependencies": {
20
+ "awesome-phonenumber": "~2.59.0",
21
+ "axios": "~0.24.0",
22
+ "cfonts": "^2.10.1",
23
+ "chalk": "^4.1.2",
24
+ "cheerio": "~1.0.0-rc.5",
25
+ "child_process": "~1.0.2",
26
+ "chokidar": "^3.5.3",
27
+ "cloudscraper": "4.6.0",
28
+ "dotenv": "^16.0.1",
29
+ "file-type": "~16.5.2",
30
+ "fluent-ffmpeg": "npm:fluent-ffmpeg-7",
31
+ "form-data": "~4.0.0",
32
+ "fs": "0.0.1-security",
33
+ "got": "^11.8.6",
34
+ "html-entities": "~2.3.2",
35
+ "human-readable": "^0.2.1",
36
+ "jimp": "^0.16.13",
37
+ "jsdom": "^20.0.3",
38
+ "lodash": "^4.17.21",
39
+ "lowdb": "^2.1.0",
40
+ "mime-types": "~2.1.32",
41
+ "miniget": "^4.2.3",
42
+ "moment-timezone": "~0.5.34",
43
+ "mongoose": "^6.3.3",
44
+ "node-cache": "^5.1.2",
45
+ "node-fetch": "^2.6.7",
46
+ "node-id3": "^0.2.3",
47
+ "node-webpmux": "^3.1.0",
48
+ "pg": "^8.13.0",
49
+ "qrcode": "^1.5.0",
50
+ "qrcode-terminal": "^0.12.0",
51
+ "request": "^2.88.2",
52
+ "rootpath": "^0.1.2",
53
+ "similarity": "^1.2.1",
54
+ "stream": "^0.0.2",
55
+ "syntax-error": "^1.4.0",
56
+ "url-regex-safe": "^3.0.0",
57
+ "yargs": "^17.5.1"
58
+ }
59
+ }
@@ -0,0 +1,52 @@
1
+ // lu mau ngapain tolol? mau nyolong kah? dasar makhluk rendahan, ga bisa ngoding jangan nyolong cil, belajar dulu sana tolol
2
+ const got = require('got')
3
+ const stringify = obj => JSON.stringify(obj, null, 2)
4
+ const parse = str => JSON.parse(str, (_, v) => {
5
+ if (v !== null && typeof v === 'object' && 'type' in v && v.type === 'Buffer' && 'data' in v && Array.isArray(v.data)) {
6
+ return Buffer.from(v.data)
7
+ }
8
+ return v
9
+ })
10
+
11
+ class CloudDBAdapter {
12
+ constructor(url, {
13
+ serialize = stringify,
14
+ deserialize = parse,
15
+ fetchOptions = {}
16
+ } = {}) {
17
+ this.url = url
18
+ this.serialize = serialize
19
+ this.deserialize = deserialize
20
+ this.fetchOptions = fetchOptions
21
+ }
22
+
23
+ async read() {
24
+ try {
25
+ let res = await got(this.url, {
26
+ method: 'GET',
27
+ headers: {
28
+ 'Accept': 'application/json;q=0.9,text/plain'
29
+ },
30
+ ...this.fetchOptions
31
+ })
32
+ if (res.statusCode !== 200) throw res.statusMessage
33
+ return this.deserialize(res.body)
34
+ } catch (e) {
35
+ return null
36
+ }
37
+ }
38
+
39
+ async write(obj) {
40
+ let res = await got(this.url, {
41
+ method: 'POST',
42
+ headers: {
43
+ 'Content-Type': 'application/json'
44
+ },
45
+ ...this.fetchOptions,
46
+ body: this.serialize(obj)
47
+ })
48
+ if (res.statusCode !== 200) throw res.statusMessage
49
+ return res.body
50
+ }
51
+ }
52
+ module.exports = CloudDBAdapter
@@ -0,0 +1,231 @@
1
+ // lu mau ngapain tolol? mau nyolong kah? dasar makhluk rendahan, ga bisa ngoding jangan nyolong cil, belajar dulu sana tolol
2
+ const {
3
+ useMultiFileAuthState,
4
+ DisconnectReason,
5
+ makeInMemoryStore,
6
+ jidNormalizedUser,
7
+ makeCacheableSignalKeyStore,
8
+ PHONENUMBER_MCC,
9
+ fetchLatestBaileysVersion,
10
+ proto,
11
+ Browsers,
12
+ MessageRetryMap
13
+ } = require("@whiskeysockets/baileys")
14
+ const {
15
+ Boom
16
+ } = require("@hapi/boom")
17
+ const {
18
+ makeWASocket,
19
+ smsg
20
+ } = require("./simple")
21
+ const {
22
+ plugins
23
+ } = require("./plugins")
24
+ const path = require("path")
25
+ const fs = require('fs')
26
+ const pino = require("pino")
27
+ const chalk = require("chalk")
28
+ const readline = require("readline")
29
+ const NodeCache = require("node-cache")
30
+ const env = JSON.parse(fs.readFileSync("./config.json", "utf-8"))
31
+ const storeSystem = require("./store")
32
+ require("events").EventEmitter.defaultMaxListeners = 500
33
+
34
+ function detectDatabase() {
35
+ const databaseUrl = env.databaseurl
36
+ if (/^mongodb(\+srv)?:\/\//i.test(databaseUrl)) {
37
+ return "MongoDB"
38
+ } else {
39
+ return /^postgresql:\/\/|^postgres:\/\//i.test(databaseUrl) ? "PostgreSQL" : "JSON"
40
+ }
41
+ }
42
+
43
+ function saveCredsBackup(creds, sessionName) {
44
+ const backupPath = path.join(process.cwd(), "backup_session", sessionName)
45
+ const credsPath = path.join(backupPath, "creds.json")
46
+ fs.mkdirSync(backupPath, { recursive: true })
47
+ fs.writeFileSync(credsPath, JSON.stringify(creds, null))
48
+ }
49
+
50
+ class Connection {
51
+ constructor(options = {}) {
52
+ this.handler = options.handler
53
+ this.session = options.session
54
+ this.online = options.online
55
+ this.version = options.version
56
+ this.browser = options.browser
57
+ }
58
+ async connect() {
59
+ const rl = readline.createInterface({
60
+ input: process.stdin,
61
+ output: process.stdout
62
+ })
63
+ const question = prompt => new Promise(resolve => rl.question(prompt, resolve))
64
+ const cache = new NodeCache()
65
+ const logger = pino({ level: "silent" })
66
+ const store = storeSystem.makeInMemoryStore()
67
+ let { state, saveCreds } = await useMultiFileAuthState(this.session)
68
+ let { version, isLatest } = await fetchLatestBaileysVersion()
69
+ const socket = makeWASocket({
70
+ keepAliveIntervalMs: 10000,
71
+ printQRInTerminal: !env.pairing.state,
72
+ logger: pino({ level: "silent" }),
73
+ auth: {
74
+ creds: state.creds,
75
+ keys: makeCacheableSignalKeyStore(state.keys, pino({
76
+ level: "silent"
77
+ }).child({
78
+ level: "silent"
79
+ }))
80
+ },
81
+ browser: this.browser || Browsers.ubuntu("Chrome"),
82
+ generateHighQualityLinkPreview: true,
83
+ syncFullHistory: true,
84
+ connectTimeoutMs: 60000,
85
+ defaultQueryTimeoutMs: 0,
86
+ MessageRetryMap,
87
+ resolveMsgBuffer: true,
88
+ emitOwnEvents: true,
89
+ fireInitQueries: true,
90
+ markOnlineOnConnect: this.online,
91
+ msgRetryCounterCache: cache,
92
+ patchMessageBeforeSending: async (message) => {
93
+ const requiresPatch = !!(message.buttonsMessage || message.listMessage || message.templateMessage)
94
+ if (requiresPatch) {
95
+ message = {
96
+ viewOnceMessage: {
97
+ message: {
98
+ ...message,
99
+ },
100
+ },
101
+ }
102
+ }
103
+ return message
104
+ },
105
+ getMessage: async (key) => {
106
+ let jid = jidNormalizedUser(key.remoteJid)
107
+ let msg = await store.loadMessage(jid, key.id)
108
+ return msg?.message || ""
109
+ }
110
+ })
111
+ if (env.pairing.state && !socket.authState.creds.registered) {
112
+ let phoneNumber
113
+ if (env.pairing.number) {
114
+ phoneNumber = env.pairing.number.toString().replace(/[^0-9]/g, '')
115
+ if (PHONENUMBER_MCC && typeof PHONENUMBER_MCC === "object" && !Object.keys(PHONENUMBER_MCC).some(code => phoneNumber.startsWith(code))) {
116
+ console.log(chalk.bgBlack(chalk.redBright("Start with your country's WhatsApp code, Example : 62xxx")))
117
+ process.exit(0)
118
+ }
119
+ } else {
120
+ phoneNumber = await question(chalk.bgBlack(chalk.greenBright("Please type your WhatsApp number : ")))
121
+ phoneNumber = phoneNumber.replace(/[^0-9]/g, '')
122
+ if (PHONENUMBER_MCC && typeof PHONENUMBER_MCC === "object" && !Object.keys(PHONENUMBER_MCC).some(code => phoneNumber.startsWith(code))) {
123
+ console.log(chalk.bgBlack(chalk.redBright("Start with your country's WhatsApp code, Example : 62xxx")))
124
+ phoneNumber = await question(chalk.bgBlack(chalk.greenBright("Please type your WhatsApp number : ")))
125
+ phoneNumber = phoneNumber.replace(/[^0-9]/g, '')
126
+ rl.close()
127
+ }
128
+ }
129
+ setTimeout(async () => {
130
+ let pairingCode = await socket.requestPairingCode(phoneNumber)
131
+ pairingCode = pairingCode?.match(/.{1,4}/g)?.join('-') || pairingCode
132
+ console.log(chalk.black(chalk.bgGreen("Your Pairing Code : ")), chalk.black(chalk.white(pairingCode)))
133
+ }, 3000)
134
+ }
135
+ store.bind(socket.ev, {
136
+ groupMetadata: socket.groupMetadata
137
+ })
138
+ process.on("uncaughtException", error => {
139
+ console.error("Uncaught Exception:", error.message)
140
+ })
141
+ process.on("unhandledRejection", error => {
142
+ console.error("Unhandled Rejection:", error.message)
143
+ })
144
+ socket.ev.on("connection.update", async update => {
145
+ const { receivedPendingNotifications } = update
146
+ if (receivedPendingNotifications) {
147
+ socket.ev.flush()
148
+ }
149
+ const { lastDisconnect, connection } = update
150
+ if (connection === "close") {
151
+ let statusCode = new Boom(lastDisconnect?.error)?.output.statusCode
152
+ if (statusCode === DisconnectReason.badSession) {
153
+ console.log(chalk.red("Session File is Corrupt, Please Delete Session and Scan Again"))
154
+ process.send("reset")
155
+ } else if (statusCode === DisconnectReason.connectionClosed) {
156
+ console.log(chalk.red("Connection closed, reconnect...."))
157
+ await this.connect()
158
+ } else if (statusCode === DisconnectReason.connectionLost) {
159
+ console.log(chalk.red("Connection Lost from Server, reconnect..."))
160
+ await this.connect()
161
+ } else if (statusCode === DisconnectReason.connectionReplaced) {
162
+ console.log(chalk.red("Connection Changed, New Session Opened, Please Close Current Session First"))
163
+ process.exit(1)
164
+ } else if (statusCode === DisconnectReason.loggedOut) {
165
+ console.log(chalk.red("Device Exited, Please Scan Again"))
166
+ process.exit(1)
167
+ } else if (statusCode === DisconnectReason.restartRequired) {
168
+ console.log(chalk.red("Restart Required, Restart..."))
169
+ await this.connect()
170
+ } else if (statusCode === DisconnectReason.timedOut) {
171
+ console.log(chalk.red("Connection Timed Out, Restart..."))
172
+ process.send("reset")
173
+ } else if (statusCode === DisconnectReason.multideviceMismatch) {
174
+ console.log(chalk.red("Multi device incompatibility, please scan again"))
175
+ process.exit(0)
176
+ } else {
177
+ console.log(statusCode)
178
+ process.send("reset")
179
+ }
180
+ }
181
+ if (connection === "connecting") {
182
+ console.log("[ - ]", chalk.hex("#e9c46a")(" Connecting... "))
183
+ console.log("[ - ]", chalk.hex("#e9c46a")(" Using WA v" + version.join('.') + ", isLatest: " + isLatest + " "))
184
+ console.log("[ - ]", chalk.hex("#e9c46a")(" Plugin detected : " + Object.keys(plugins).length + " "))
185
+ console.log("[ - ]", chalk.hex("#e9c46a")(" Database : " + detectDatabase() + " "))
186
+ }
187
+ if (connection === "open") {
188
+ console.log("[ - ]", chalk.hex("#e9c46a")(" Connected, you login as " + socket.user.name || "WhatsApp bot" + " "))
189
+ const jid = socket.user.jid.split('@')[0]
190
+ saveCredsBackup(socket.authState.creds, jid)
191
+ }
192
+ })
193
+ socket.ev.on("creds.update", saveCreds)
194
+ socket.ev.on("messages.upsert", async update => {
195
+ if (update.messages && update.messages.length) {
196
+ let message = await smsg(socket, update.messages[0])
197
+ if (message.message) {
198
+ message.message = message.message?.ephemeralMessage ? message.message.ephemeralMessage.message : message.message
199
+ require("../../../../handler").handler(socket, message, update)
200
+ }
201
+ }
202
+ })
203
+ socket.ev.on("contacts.update", contactsUpdate => {
204
+ for (const contact of contactsUpdate) {
205
+ const jid = jidNormalizedUser(contact.id)
206
+ if (store.contacts) {
207
+ store.contacts[jid] = {
208
+ ...store.contacts[jid] || {},
209
+ ...contact
210
+ }
211
+ }
212
+ }
213
+ })
214
+ socket.ev.on("contacts.upsert", contactsUpsert => {
215
+ for (const contact of contactsUpsert) {
216
+ const jid = jidNormalizedUser(contact.id)
217
+ if (store.contacts) {
218
+ store.contacts[jid] = {
219
+ ...contact,
220
+ isContact: true
221
+ }
222
+ }
223
+ }
224
+ })
225
+ return socket
226
+ }
227
+ }
228
+
229
+ module.exports = {
230
+ Connection
231
+ }
@@ -0,0 +1,2 @@
1
+ // lu mau ngapain tolol? mau nyolong kah? dasar makhluk rendahan, ga bisa ngoding jangan nyolong cil, belajar dulu sana tolol
2
+ function _0xa1c1(_0x297030,_0x165c2e){const _0x960065=_0x2795();return _0xa1c1=function(_0x497afb,_0x5e2e16){_0x497afb=_0x497afb-(0x120c+0x19c6+-0x2ac1);let _0x1ba721=_0x960065[_0x497afb];return _0x1ba721;},_0xa1c1(_0x297030,_0x165c2e);}const _0x1aff1c=_0xa1c1;(function(_0x893ca,_0x37cb01){const _0x2a86fc=_0xa1c1,_0x45683a=_0x893ca();while(!![]){try{const _0x55047d=-parseInt(_0x2a86fc(0x14c))/(-0x26e1*-0x1+-0xd*0x129+0x1*-0x17cb)+-parseInt(_0x2a86fc(0x138))/(-0x15f+-0x45*0x77+-0x1*-0x2174)+parseInt(_0x2a86fc(0x137))/(0x2f6*0x5+0x29e*-0xc+0x109d)+parseInt(_0x2a86fc(0x128))/(-0xe*0x8b+0x11c*-0x1+0x1*0x8ba)+parseInt(_0x2a86fc(0x11f))/(-0x938+0x16d*-0x1+0xaaa)*(-parseInt(_0x2a86fc(0x11b))/(0x261+0x1ed2+0x95*-0x39))+parseInt(_0x2a86fc(0x15e))/(-0x12c7+0x1*0x377+-0xe7*-0x11)*(parseInt(_0x2a86fc(0x163))/(0xca9*-0x3+-0xa91+0x2*0x184a))+-parseInt(_0x2a86fc(0x13e))/(-0x117a+0xc2*0x19+-0x16f);if(_0x55047d===_0x37cb01)break;else _0x45683a['push'](_0x45683a['shift']());}catch(_0x1eede3){_0x45683a['push'](_0x45683a['shift']());}}}(_0x2795,-0x1516d+-0x3cd49+-0x1*-0x86be5));const fs=require('fs'),path=require(_0x1aff1c(0x145)),{spawn}=require(_0x1aff1c(0x15b)+_0x1aff1c(0x164)),Func=new(require(_0x1aff1c(0x131)+'s'))();module[_0x1aff1c(0x140)]=class Converter{[_0x1aff1c(0x160)]=(_0x3ff58c,_0x578c00=[],_0x1ae887='',_0x103901='')=>{const _0x23da80=_0x1aff1c,_0x3b955c={'DufNh':function(_0x1b3776,_0x21bb27){return _0x1b3776!==_0x21bb27;},'Keeuf':function(_0xcf1648,_0x30a6dd){return _0xcf1648(_0x30a6dd);},'eLoQn':function(_0x4c7ab1,_0x5bb170){return _0x4c7ab1+_0x5bb170;},'xhAms':function(_0x225a52,_0x109de0){return _0x225a52+_0x109de0;},'yaZPy':_0x23da80(0x15a),'TSuii':function(_0x2e192d,_0x5e20db){return _0x2e192d+_0x5e20db;},'dWqbq':function(_0x5f1cf1,_0x2a2599){return _0x5f1cf1+_0x2a2599;},'aPPUG':function(_0x1076a8,_0x3ca3b1,_0x1e9e37){return _0x1076a8(_0x3ca3b1,_0x1e9e37);},'iBHUc':_0x23da80(0x160),'ggcVo':_0x23da80(0x15f),'KPmpS':_0x23da80(0x117)};return new Promise(async(_0x3a2bd3,_0x2c915e)=>{const _0x57f1e1=_0x23da80,_0x3bc338={'MLDGz':function(_0x153128,_0x1f375d){const _0x210527=_0xa1c1;return _0x3b955c[_0x210527(0x13f)](_0x153128,_0x1f375d);},'DdFVc':function(_0x32c866,_0x5562c4){const _0x7360a3=_0xa1c1;return _0x3b955c[_0x7360a3(0x14b)](_0x32c866,_0x5562c4);}};try{let _0x3daced=_0x3b955c[_0x57f1e1(0x167)](_0x3b955c[_0x57f1e1(0x154)](_0x3b955c[_0x57f1e1(0x167)](_0x3b955c[_0x57f1e1(0x13a)],Func[_0x57f1e1(0x165)]()),'.'),_0x1ae887),_0x47150d=_0x3b955c[_0x57f1e1(0x156)](_0x3b955c[_0x57f1e1(0x121)](_0x3daced,'.'),_0x103901);await fs[_0x57f1e1(0x12f)][_0x57f1e1(0x136)](_0x3daced,_0x3ff58c),_0x3b955c[_0x57f1e1(0x12d)](spawn,_0x3b955c[_0x57f1e1(0x112)],['-y','-i',_0x3daced,..._0x578c00,_0x47150d])['on'](_0x3b955c[_0x57f1e1(0x13d)],_0x2c915e)['on'](_0x3b955c[_0x57f1e1(0x114)],async _0x37af1b=>{const _0x321313=_0x57f1e1;try{await fs[_0x321313(0x12f)][_0x321313(0x148)](_0x3daced);if(_0x3bc338[_0x321313(0x133)](_0x37af1b,0x71*-0x25+0xbb*0xb+0x84c))return _0x3bc338[_0x321313(0x130)](_0x2c915e,_0x37af1b);_0x3bc338[_0x321313(0x130)](_0x3a2bd3,await fs[_0x321313(0x12f)][_0x321313(0x116)](_0x47150d)),await fs[_0x321313(0x12f)][_0x321313(0x148)](_0x47150d);}catch(_0x593b33){_0x3bc338[_0x321313(0x130)](_0x2c915e,_0x593b33);}});}catch(_0x421604){_0x3b955c[_0x57f1e1(0x14b)](_0x2c915e,_0x421604);}});};[_0x1aff1c(0x152)]=(_0x22e86f,_0x169850)=>{const _0x396210=_0x1aff1c,_0x48a38f={'taUvv':_0x396210(0x159),'ndyzr':_0x396210(0x12e),'DspJi':_0x396210(0x120),'DAhDR':_0x396210(0x147),'LImax':_0x396210(0x14e),'EighK':_0x396210(0x14d),'SalCc':_0x396210(0x143)};return this[_0x396210(0x160)](_0x22e86f,[_0x48a38f[_0x396210(0x15c)],_0x48a38f[_0x396210(0x132)],'2',_0x48a38f[_0x396210(0x162)],_0x48a38f[_0x396210(0x11a)],_0x48a38f[_0x396210(0x14f)],_0x48a38f[_0x396210(0x124)],'-f',_0x48a38f[_0x396210(0x119)]],_0x169850,_0x48a38f[_0x396210(0x119)]);};[_0x1aff1c(0x13b)]=(_0x30c9d9,_0x149f86)=>{const _0xabd98e=_0x1aff1c,_0x3c4970={'fXSAJ':_0xabd98e(0x159),'esvcQ':_0xabd98e(0x161),'KNADe':_0xabd98e(0x11d),'rHBZH':_0xabd98e(0x120),'fuyeN':_0xabd98e(0x147),'qJrjZ':_0xabd98e(0x12c),'dJvYA':_0xabd98e(0x115)+_0xabd98e(0x118),'ROevZ':_0xabd98e(0x15d)};return this[_0xabd98e(0x160)](_0x30c9d9,[_0x3c4970[_0xabd98e(0x141)],_0x3c4970[_0xabd98e(0x123)],_0x3c4970[_0xabd98e(0x126)],_0x3c4970[_0xabd98e(0x166)],_0x3c4970[_0xabd98e(0x155)],_0x3c4970[_0xabd98e(0x149)],'on',_0x3c4970[_0xabd98e(0x135)],'10'],_0x149f86,_0x3c4970[_0xabd98e(0x129)]);};[_0x1aff1c(0x12b)]=(_0x4dffb6,_0x3c1704)=>{const _0x739577=_0x1aff1c,_0x36007a={'EjzOp':_0x739577(0x142),'CiNRL':_0x739577(0x12a),'DBTKv':_0x739577(0x161),'MaEIY':_0x739577(0x144),'dwftm':_0x739577(0x11c),'rfIXM':_0x739577(0x147),'MPZAJ':_0x739577(0x14e),'MPCag':_0x739577(0x14d),'ncSYb':_0x739577(0x125),'BnRbL':_0x739577(0x153),'nIxFx':_0x739577(0x139),'BpuPJ':_0x739577(0x127)};return this[_0x739577(0x160)](_0x4dffb6,[_0x36007a[_0x739577(0x134)],_0x36007a[_0x739577(0x111)],_0x36007a[_0x739577(0x122)],_0x36007a[_0x739577(0x11e)],_0x36007a[_0x739577(0x113)],_0x36007a[_0x739577(0x14a)],_0x36007a[_0x739577(0x158)],_0x36007a[_0x739577(0x146)],_0x36007a[_0x739577(0x157)],'32',_0x36007a[_0x739577(0x150)],_0x36007a[_0x739577(0x13c)]],_0x3c1704,_0x36007a[_0x739577(0x151)]);};};function _0x2795(){const _0x5b42bc=['child_proc','taUvv','opus','14kIHyTS','error','ffmpeg','-c:a','DspJi','1330160ojZaEx','ess','uuid','rHBZH','eLoQn','CiNRL','iBHUc','dwftm','KPmpS','-compressi','readFile','close','on_level','SalCc','DAhDR','1168338xmkcld','-ab','libopus','MaEIY','5qzxcJE','-b:a','dWqbq','DBTKv','esvcQ','EighK','-crf','KNADe','mp4','1687300bBaLgN','ROevZ','libx264','toVideo','-vbr','aPPUG','-ac','promises','DdFVc','./function','ndyzr','MLDGz','EjzOp','dJvYA','writeFile','31122jmJQLy','21610zkuQba','slow','yaZPy','toPTT','nIxFx','ggcVo','600408rIotjT','DufNh','exports','fXSAJ','-c:v','mp3','aac','path','MPCag','128k','unlink','qJrjZ','rfIXM','Keeuf','276132lYFsXM','44100','-ar','LImax','BnRbL','BpuPJ','toAudio','-preset','xhAms','fuyeN','TSuii','ncSYb','MPZAJ','-vn','tmp/'];_0x2795=function(){return _0x5b42bc;};return _0x2795();}
package/system/exif.js ADDED
@@ -0,0 +1,2 @@
1
+ // lu mau ngapain tolol? mau nyolong kah? dasar makhluk rendahan, ga bisa ngoding jangan nyolong cil, belajar dulu sana tolol
2
+ (function(_0x5ea9f6,_0x175e8c){const _0x558911=_0x5ea9f6();function _0x467281(_0x5d015f,_0x420faa,_0x496893,_0x1057b2){return _0x3371(_0x1057b2- -0x216,_0x5d015f);}function _0x558885(_0x56f282,_0x178942,_0x1473ce,_0x30e4b7){return _0x3371(_0x56f282-0x1ca,_0x178942);}while(!![]){try{const _0x38a604=-parseInt(_0x558885(0x33c,0x333,0x37f,0x2f6))/(0x236f+-0xdca*0x2+0x3*-0x29e)+-parseInt(_0x467281(-0x30,-0x70,-0x52,-0x65))/(-0x505*-0x5+-0xdc*0x18+-0x17d*0x3)*(parseInt(_0x558885(0x339,0x369,0x35f,0x310))/(-0x22ac+-0x8*0x336+0x3c5f))+-parseInt(_0x467281(-0xde,-0xfb,-0xc6,-0xe2))/(0x36e*-0x5+0x15ad+-0x483)+-parseInt(_0x467281(-0xfd,-0xd3,-0xc5,-0xe5))/(0x5f8+0x9af+-0x29b*0x6)+-parseInt(_0x558885(0x33b,0x37f,0x34f,0x336))/(0xa1f*-0x1+0x2*-0xa9f+0x5*0x647)*(-parseInt(_0x467281(-0x13f,-0xd5,-0x13b,-0xf8))/(-0x5a2+-0x85*-0x25+-0xd90))+parseInt(_0x467281(-0x121,-0xee,-0xf6,-0xd4))/(0x19ed*0x1+-0x2020+0x63b)*(-parseInt(_0x558885(0x375,0x33c,0x381,0x3be))/(-0x1736+0xf4b+-0x4*-0x1fd))+parseInt(_0x467281(-0xa4,-0x39,-0x5e,-0x64))/(0x2277+-0x1*-0x5ed+-0x1*0x285a);if(_0x38a604===_0x175e8c)break;else _0x558911['push'](_0x558911['shift']());}catch(_0x306f95){_0x558911['push'](_0x558911['shift']());}}}(_0x5045,-0x1a*0x1951+0x1922*0x1e+0x17f2d));function _0x3371(_0x92b348,_0x51610c){const _0x101cef=_0x5045();return _0x3371=function(_0x504589,_0x3371ac){_0x504589=_0x504589-(0x7*-0x40f+-0x747+0x24ce);let _0x3ffba8=_0x101cef[_0x504589];return _0x3ffba8;},_0x3371(_0x92b348,_0x51610c);}const _0x101cef=(function(){const _0x30f458={};function _0x5ca040(_0x3100bf,_0xf9d8ff,_0x2a07e8,_0x35a468){return _0x3371(_0x35a468-0x166,_0x3100bf);}_0x30f458[_0x5ca040(0x2af,0x2b6,0x32d,0x2ec)]=function(_0x1a14e0,_0xef46){return _0x1a14e0!==_0xef46;};function _0x273f05(_0x23b3c9,_0x34a78d,_0x53e317,_0x2cb2da){return _0x3371(_0x34a78d-0x1d8,_0x2cb2da);}_0x30f458[_0x273f05(0x30d,0x330,0x309,0x33c)]=function(_0xbe77e8,_0x2d1ff5){return _0xbe77e8===_0x2d1ff5;};const _0x4b0b7e=_0x30f458;let _0x1d5b94=!![];return function(_0x3f4a86,_0x4d01ae){const _0xfb7c56={'eISkA':function(_0x5a23b3,_0x541df2){function _0xbd1f4f(_0x2459ac,_0x5de700,_0x2017d4,_0x5a1146){return _0x3371(_0x5de700- -0x1a3,_0x5a1146);}return _0x4b0b7e[_0xbd1f4f(-0x63,-0x1d,-0x4d,-0x48)](_0x5a23b3,_0x541df2);},'RPJSp':function(_0x38579f,_0x3b5af1){function _0x667bd1(_0x442d99,_0x256472,_0x35aca8,_0x48a6ba){return _0x3371(_0x256472- -0x3ad,_0x35aca8);}return _0x4b0b7e[_0x667bd1(-0x277,-0x255,-0x285,-0x24f)](_0x38579f,_0x3b5af1);},'YHqex':'ZCfSL'},_0x287a92=_0x1d5b94?function(){function _0x1647bc(_0x390ace,_0x10c4f5,_0x4198ca,_0x270762){return _0x3371(_0x4198ca- -0x1e2,_0x270762);}function _0x1bb9d4(_0x25fc3,_0x46bf0c,_0x31033a,_0x16674f){return _0x3371(_0x16674f-0x30f,_0x25fc3);}if(_0xfb7c56[_0x1bb9d4(0x46f,0x4ee,0x478,0x4a5)](_0x1bb9d4(0x4c0,0x4b1,0x461,0x486),_0x1bb9d4(0x4bf,0x507,0x491,0x4bf))){if(_0x4d01ae){if(_0xfb7c56['RPJSp'](_0xfb7c56[_0x1647bc(-0x9b,-0x53,-0x4e,-0x88)],_0x1647bc(-0x85,-0x108,-0xc2,-0x10a))){const _0xcc34f7=_0x5103bb[_0x1647bc(-0x60,-0x83,-0x4d,-0x5a)](_0x27739a,arguments);return _0x28c9cd=null,_0xcc34f7;}else{const _0x3eb912=_0x4d01ae[_0x1647bc(-0x5c,-0x7b,-0x4d,-0x25)](_0x3f4a86,arguments);return _0x4d01ae=null,_0x3eb912;}}}else{const _0xe63e9f=_0x209090?function(){if(_0x48838c){const _0x4f81d8=_0xe30371['apply'](_0x475a46,arguments);return _0x4629d4=null,_0x4f81d8;}}:function(){};return _0x459603=![],_0xe63e9f;}}:function(){};return _0x1d5b94=![],_0x287a92;};}()),_0x51610c=_0x101cef(this,function(){function _0x3abf93(_0x45ef34,_0x1ba151,_0x38f837,_0x47fadf){return _0x3371(_0x47fadf- -0x2ef,_0x1ba151);}const _0x2ee8e0={};_0x2ee8e0[_0x285931(-0x1a5,-0x1e1,-0x1e9,-0x227)]=_0x285931(-0x1a0,-0x176,-0x1a8,-0x1c0)+'+$';const _0x109b2d=_0x2ee8e0;function _0x285931(_0x1a702d,_0x75ff20,_0x6f236b,_0x1ee1a4){return _0x3371(_0x6f236b- -0x340,_0x1ee1a4);}return _0x51610c[_0x285931(-0x1fb,-0x209,-0x205,-0x22b)]()[_0x285931(-0x1df,-0x178,-0x1b9,-0x1ba)](_0x109b2d[_0x285931(-0x19c,-0x1b3,-0x1e9,-0x219)])[_0x3abf93(-0x197,-0x186,-0x1fc,-0x1b4)]()[_0x3abf93(-0x135,-0x111,-0x14a,-0x14e)+'r'](_0x51610c)['search'](_0x109b2d[_0x285931(-0x1bc,-0x20d,-0x1e9,-0x200)]);});function _0x5045(){const _0x4eecb1=['apis','paletteuse','zudoI','toString','warn','gIJgM','WoFJz','crypto','emojis','writeExifV','37384qCwCwS','ptions','.mp4','writeFileS','-preset','DsZhX','BgrJG','LdLDY','gjTAh','VEzSQ','eserve_tra','OjXev','hite@0.0,\x20','sticker-pa','KkJFI','length','-an','XVOeq','gmzOn','concat','n:transpar','BibJx','gDrfU','GSbOX','categories','exports','kasumi-bot','LEtnR','/2:(oh-ih)','imageToWeb','=ffffff\x20[p','nction()\x20','cdoUR',',pad=320:3','ync','.webp','readUIntLE','dvoLF','randomByte','inGfO','cthvN','00:00:00','nsparent=o','wcVQf','-vf','40842QTYLKD','GZoht','8310zCEFcR','97599qmMjtJ','lettegen=r','rn\x20this\x22)(','scale=320:','table','BHMRR','mFMtM','hTbWE','DbqQx','addOutputO','-vcodec','320:force_','ZrCAS','AfTiz','libwebp','nVITJ','unlinkSync','CPNLz','HxTbE','yunoZ','Wpdym','search','{}.constru','ency_color','kaLKF','exif','eOcuu','join','bind','DoaAg','fEZjE','from','stringify','packname','YHqex','apply','eISkA','info','(((.+)+)+)','readFileSy','tggyE','prototype','ck-name','ck-id','pUTlN','end','-ss','constructo','oEJHb','CaIHt','/2:color=w','utf-8','hYInE','-vsync','default','m.my.id','writeExifW','27VHWWdZ','djPVu','20:(ow-iw)','author','split\x20[a][','xRpxT','4ttPNXw','3691960AbvBEo','];\x20[b][p]\x20','b];\x20[a]\x20pa','o=decrease','ck-publish','error','497NGKloL','Aesmx','ZARXf','woyhh','save','irSQf','MTfFM','load','oTHWb','spect_rati','webp','original_a','zHsgL','Image','sgbPT','peg','SuYDQ','EuiJo','videoToWeb','410525KaRXkR','NUHcz','akkRq','495892mjsSIc','ctor(\x22retu','exception','toFormat'];_0x5045=function(){return _0x4eecb1;};return _0x5045();}_0x51610c();const _0xe156ec=(function(){let _0x886c1e=!![];return function(_0x5d4149,_0xe9293a){const _0x222940=_0x886c1e?function(){function _0x2fe3bf(_0x4b761c,_0x567570,_0x590276,_0x3c1c7b){return _0x3371(_0x3c1c7b-0x162,_0x590276);}if(_0xe9293a){const _0x3d3560=_0xe9293a[_0x2fe3bf(0x341,0x2f0,0x2fe,0x2f7)](_0x5d4149,arguments);return _0xe9293a=null,_0x3d3560;}}:function(){};return _0x886c1e=![],_0x222940;};}()),_0x450bac=_0xe156ec(this,function(){const _0x3a63cc={'NUHcz':function(_0x144c01,_0x16310f){return _0x144c01(_0x16310f);},'gIJgM':function(_0x378d92,_0x3f7d07){return _0x378d92+_0x3f7d07;},'djPVu':'return\x20(fu'+_0x46abee(0x8f,0x42,0x74,0xd),'LEtnR':function(_0x23ea01){return _0x23ea01();},'JnGLp':function(_0x3a2a61,_0xc95b50){return _0x3a2a61!==_0xc95b50;},'inGfO':_0x46abee(0x17,0x5f,0x87,0x97),'TZkOt':_0x46abee(-0x22,0x1d,-0x2f,0x7),'Aesmx':_0x46abee(0xa3,0x78,0xaf,0x46),'wcVQf':_0x22a8fc(0x1fa,0x1cf,0x1e9,0x21c),'KkJFI':_0x22a8fc(0x136,0x14e,0x15d,0x122),'gmzOn':_0x46abee(0xa,0x57,0x16,0x4b),'CkAJw':function(_0xb28800,_0x560c1e){return _0xb28800<_0x560c1e;}};let _0x599123;function _0x22a8fc(_0x12e7ce,_0x60cb60,_0x28a0cd,_0x47806e){return _0x3371(_0x60cb60-0x18,_0x28a0cd);}try{const _0x1e9611=_0x3a63cc[_0x46abee(-0x24,0x13,-0x22,-0x1a)](Function,_0x3a63cc[_0x46abee(0x51,0x1e,0x1,0x42)](_0x3a63cc['gIJgM'](_0x3a63cc[_0x22a8fc(0x1bd,0x1c4,0x1af,0x17b)],_0x22a8fc(0x1c8,0x1a0,0x1cd,0x1ba)+_0x46abee(0x1f,0x16,0x15,0x27)+_0x46abee(0x15,0x55,0x97,0x14)+'\x20)'),');'));_0x599123=_0x3a63cc[_0x22a8fc(0x179,0x175,0x15d,0x144)](_0x1e9611);}catch(_0x2f8a67){if(_0x3a63cc['JnGLp'](_0x22a8fc(0x11f,0x13e,0x184,0x124),_0x3a63cc[_0x46abee(0x1d,0x4a,0x3e,0x65)]))_0x599123=window;else{const _0x4d1a66=_0x56ba46?function(){if(_0x45618c){const _0x193804=_0x3cb36a['apply'](_0x4853b4,arguments);return _0x44aede=null,_0x193804;}}:function(){};return _0xd7b911=![],_0x4d1a66;}}const _0x506ead=_0x599123['console']=_0x599123['console']||{},_0x2678d1=['log',_0x3a63cc['TZkOt'],_0x3a63cc[_0x46abee(-0x49,0x0,-0x32,0x3)],_0x3a63cc[_0x46abee(0x2e,0x4e,0x1d,0x63)],_0x3a63cc[_0x46abee(0x20,0x31,0x69,0x65)],_0x3a63cc[_0x46abee(0x74,0x35,-0x3,0xb)],'trace'];function _0x46abee(_0x311c8d,_0x1864f1,_0x394f00,_0x42e247){return _0x3371(_0x1864f1- -0x11f,_0x42e247);}for(let _0xd0e753=-0x1650+0x1*-0xb9e+0x21ee;_0x3a63cc['CkAJw'](_0xd0e753,_0x2678d1[_0x46abee(0x30,0x32,0x7,0x66)]);_0xd0e753++){const _0x307b66=_0xe156ec['constructo'+'r'][_0x22a8fc(0x189,0x1b3,0x175,0x1d6)][_0x22a8fc(0x1d0,0x1a6,0x1a8,0x1d3)](_0xe156ec),_0x522526=_0x2678d1[_0xd0e753],_0x488452=_0x506ead[_0x522526]||_0x307b66;_0x307b66['__proto__']=_0xe156ec[_0x46abee(0x7f,0x6f,0x9e,0x4c)](_0xe156ec),_0x307b66[_0x22a8fc(0x19b,0x153,0x193,0x199)]=_0x488452['toString']['bind'](_0x488452),_0x506ead[_0x522526]=_0x307b66;}});_0x450bac();const fs=require('fs');function _0x22d513(_0x59790d,_0x2d658d,_0x1a9d95,_0x3444f4){return _0x3371(_0x2d658d-0xea,_0x3444f4);}const {tmpdir}=require('os');function _0x587fd6(_0xaac08d,_0x4e8f58,_0x23b2bd,_0x422825){return _0x3371(_0xaac08d- -0x2f5,_0x4e8f58);}const Crypto=require(_0x587fd6(-0x1b6,-0x170,-0x1bd,-0x1a5)),ff=require('fluent-ffm'+_0x587fd6(-0x1c8,-0x197,-0x185,-0x1c9)),webp=require('node-webpm'+'ux'),path=require('path');module[_0x587fd6(-0x19a,-0x171,-0x14f,-0x173)]=class Exif{async['imageToWeb'+'p'](_0x3d0ad1){const _0x58b479={'nVITJ':function(_0x59d531,_0xe1017c){return _0x59d531!==_0xe1017c;},'zHsgL':_0x323ea6(-0x116,-0x163,-0x159,-0x113),'CPNLz':function(_0x574c9e,_0x55977c){return _0x574c9e(_0x55977c);},'hYInE':_0x323ea6(-0xde,-0xe2,-0xc0,-0x122),'VEzSQ':_0x323ea6(-0xf6,-0x105,-0xe3,-0xac),'OjXev':_0x323ea6(-0x119,-0x12e,-0xcc,-0x162),'EuiJo':_0x323ea6(-0x115,-0x149,-0x15c,-0xd7),'dvoLF':_0x323ea6(-0x127,-0x160,-0x174,-0x10f),'LdLDY':'webp','oEJHb':function(_0x58a142){return _0x58a142();}};let _0x311eb2=path[_0x536539(0x487,0x485,0x455,0x47a)](_0x58b479[_0x536539(0x4d3,0x46a,0x495,0x48f)](tmpdir),Crypto['randomByte'+'s'](-0x3*0xc5d+-0x22c2+-0x1*-0x47df)[_0x323ea6(-0x12f,-0x13d,-0xe5,-0x14a)](-0x287*0xd+0x12ea+0xdf1,-0x1ca+-0x38b*-0xb+-0x2529)[_0x536539(0x3dd,0x3f2,0x3f4,0x428)](0x1*-0xb3c+0x19*-0xeb+0x2253)+_0x536539(0x413,0x423,0x42e,0x452)),_0x21d685=path['join'](_0x58b479[_0x536539(0x46e,0x47c,0x47f,0x48f)](tmpdir),Crypto['randomByte'+'s'](0x68*-0x2+0x2360+-0x1*0x228a)[_0x323ea6(-0x12f,-0x125,-0x114,-0x17b)](0x70e*-0x2+0x13b9+-0x3*0x1df,-0xc9*-0x1+0x1b*-0x71+0xb28)[_0x536539(0x3f8,0x458,0x452,0x428)](0x2081+-0x1fe9+-0x74)+'.jpg');fs[_0x323ea6(-0x150,-0x12d,-0x15d,-0x134)+'ync'](_0x21d685,_0x3d0ad1);function _0x536539(_0x3c1e74,_0x5f2f0c,_0x2fdad2,_0x376863){return _0x587fd6(_0x376863-0x5e2,_0x3c1e74,_0x2fdad2-0x15e,_0x376863-0x22);}await new Promise((_0x30f679,_0xa01bcd)=>{function _0x212516(_0x211ed2,_0x2b9ed5,_0x106986,_0x244c88){return _0x536539(_0x106986,_0x2b9ed5-0xfa,_0x106986-0x8c,_0x211ed2- -0x293);}function _0x35b679(_0x105c14,_0x2c758d,_0x524e03,_0x5bbf97){return _0x536539(_0x5bbf97,_0x2c758d-0x1c,_0x524e03-0x9b,_0x105c14-0x10);}if(_0x58b479[_0x35b679(0x47e,0x46f,0x435,0x445)](_0x58b479[_0x212516(0x184,0x169,0x142,0x15f)],_0x212516(0x1bc,0x1fc,0x187,0x1dc)))_0x58b479[_0x35b679(0x480,0x4bf,0x440,0x49a)](ff,_0x21d685)['on'](_0x58b479[_0x212516(0x200,0x229,0x231,0x1d7)],_0xa01bcd)['on'](_0x58b479[_0x35b679(0x448,0x467,0x406,0x419)],()=>_0x30f679(!![]))['addOutputO'+_0x212516(0x19d,0x189,0x18b,0x1a0)]([_0x58b479[_0x35b679(0x44a,0x456,0x463,0x466)],_0x58b479[_0x35b679(0x42c,0x40d,0x474,0x458)],_0x58b479[_0x212516(0x1c1,0x1d4,0x1ef,0x197)],_0x212516(0x1cf,0x1f1,0x216,0x208)+_0x35b679(0x47a,0x45b,0x49b,0x45a)+_0x35b679(0x426,0x41e,0x3fd,0x3ea)+_0x35b679(0x424,0x429,0x3f8,0x3f3)+_0x35b679(0x4b2,0x4aa,0x47d,0x4b4)+',pad=320:3'+_0x212516(0x207,0x1dc,0x228,0x1e6)+'/2:(oh-ih)'+_0x35b679(0x4a1,0x4d4,0x4d7,0x4ce)+_0x35b679(0x44b,0x453,0x47a,0x403)+_0x35b679(0x4ac,0x4e5,0x4a5,0x48e)+'b];\x20[a]\x20pa'+_0x35b679(0x470,0x47e,0x48c,0x47e)+_0x35b679(0x449,0x428,0x471,0x434)+'nsparent=o'+_0x35b679(0x453,0x499,0x484,0x452)+_0x35b679(0x486,0x440,0x474,0x4a9)+_0x212516(0x1ba,0x1ed,0x1bb,0x181)+'];\x20[b][p]\x20'+_0x212516(0x193,0x18d,0x1b9,0x1df)])[_0x35b679(0x434,0x44f,0x415,0x442)](_0x58b479[_0x35b679(0x446,0x44f,0x436,0x48a)])[_0x35b679(0x41f,0x449,0x3da,0x3d8)](_0x311eb2);else{if(_0xc9cf78){const _0xcdf1c0=_0xc92624[_0x212516(0x1ef,0x1fa,0x1b6,0x1ec)](_0x20357f,arguments);return _0x1c74af=null,_0xcdf1c0;}}});let _0x4b521e=fs[_0x323ea6(-0xfc,-0x149,-0xb9,-0xfa)+'nc'](_0x311eb2);fs[_0x536539(0x436,0x4b7,0x4a1,0x46f)](_0x311eb2),fs['unlinkSync'](_0x21d685);function _0x323ea6(_0x6fddbb,_0x218292,_0x2c9baf,_0x103bc5){return _0x22d513(_0x6fddbb-0x17a,_0x6fddbb- -0x37f,_0x2c9baf-0x13,_0x2c9baf);}return _0x4b521e;}async['videoToWeb'+'p'](_0x589c62){function _0x21e772(_0x942fb5,_0x15946e,_0x55373a,_0x120693){return _0x587fd6(_0x120693-0x34e,_0x15946e,_0x55373a-0x1bd,_0x120693-0x1d3);}const _0x46ea76={'DsZhX':function(_0x562202,_0x55493a){return _0x562202(_0x55493a);},'sgbPT':_0x21e772(0x249,0x238,0x20e,0x210),'yunoZ':_0x21e772(0x213,0x22e,0x1c4,0x1f8),'hTbWE':_0x58e067(0x47d,0x4a1,0x48c,0x48c),'BgrJG':_0x21e772(0x1c9,0x1a0,0x1f9,0x1c7),'zudoI':_0x58e067(0x48c,0x48f,0x4b6,0x481)+_0x58e067(0x4ae,0x48b,0x4d2,0x489)+_0x21e772(0x13a,0x1b6,0x1b4,0x182)+'spect_rati'+_0x58e067(0x4ab,0x4d9,0x4dd,0x4c1)+_0x21e772(0x1d1,0x1bc,0x17a,0x1bc)+_0x58e067(0x489,0x491,0x506,0x4b9)+_0x21e772(0x1d4,0x1f7,0x1f0,0x1b7)+_0x58e067(0x4a0,0x4e8,0x4e9,0x4b0)+_0x21e772(0x1ab,0x1f2,0x1ea,0x1a7)+_0x58e067(0x4c6,0x4f4,0x4bb,0x4bb)+_0x58e067(0x47b,0x49a,0x4c6,0x4c0)+_0x21e772(0x218,0x1d1,0x1a7,0x1cc)+_0x58e067(0x421,0x43b,0x494,0x458)+'nsparent=o'+_0x21e772(0x1b6,0x18c,0x1cc,0x1af)+_0x21e772(0x1e0,0x217,0x19f,0x1e2)+_0x21e772(0x1dd,0x1ec,0x1df,0x1b9)+'];\x20[b][p]\x20'+_0x21e772(0x1c6,0x1dc,0x163,0x192),'CaIHt':'-loop','WoFJz':'-ss','GSbOX':'00:00:05','GZoht':_0x21e772(0x198,0x1d7,0x154,0x19f),'pUTlN':_0x21e772(0x16f,0x15f,0x1da,0x1ab),'fEZjE':_0x21e772(0x23e,0x1e7,0x206,0x200),'woyhh':_0x58e067(0x47b,0x467,0x46d,0x434),'irSQf':function(_0x5431b1,_0x247770){return _0x5431b1!==_0x247770;},'akkRq':_0x58e067(0x4dd,0x4e9,0x4a1,0x4a6),'DoaAg':_0x21e772(0x202,0x219,0x1ea,0x1d5),'IEVgU':_0x21e772(0x22f,0x1e8,0x214,0x201)};let _0x55f2b0=path[_0x21e772(0x22f,0x209,0x1bb,0x1e6)](tmpdir(),Crypto[_0x21e772(0x17e,0x19f,0x18b,0x1c1)+'s'](-0x1*0x1cc+0x3*0xaec+-0x1ef2)[_0x58e067(0x442,0x4a2,0x426,0x472)](-0x2*0x11cf+-0x1*-0x10+0x238e,0x17e5+0x1989+0xba*-0x44)[_0x21e772(0x18d,0x164,0x183,0x194)](-0x1cc9*0x1+-0x21c5+0x6*0xa73)+_0x21e772(0x175,0x1d8,0x1db,0x1be)),_0x4c8f7b=path[_0x21e772(0x1bc,0x1a2,0x22f,0x1e6)](tmpdir(),Crypto['randomByte'+'s'](-0x1*-0x931+0x176a+0x2095*-0x1)['readUIntLE'](-0x199+-0x12d8+-0x1*-0x1471,-0x1*0x1d6e+-0x20d2+-0x2*-0x1f23)[_0x58e067(0x417,0x420,0x46b,0x447)](-0x426+0x1c7c+-0x1832)+_0x58e067(0x471,0x44d,0x451,0x450));fs[_0x21e772(0x15a,0x19c,0x16b,0x19e)+'ync'](_0x4c8f7b,_0x589c62),await new Promise((_0x19feea,_0x45b8fb)=>{function _0x25b8f1(_0x4e5c9e,_0x1c9d88,_0xf55b5f,_0x48da3c){return _0x58e067(_0x4e5c9e-0x188,_0x1c9d88-0x1b9,_0x1c9d88,_0x48da3c- -0x1d);}function _0x479191(_0x4aab8f,_0x12ee18,_0x1b3a54,_0x1409ae){return _0x21e772(_0x4aab8f-0x9c,_0x1409ae,_0x1b3a54-0xfd,_0x4aab8f-0x2c2);}_0x46ea76[_0x25b8f1(0x45a,0x450,0x457,0x412)](_0x46ea76[_0x479191(0x44e,0x44f,0x405,0x475)],_0x46ea76[_0x479191(0x44e,0x414,0x45f,0x497)])?_0x46ea76[_0x479191(0x462,0x492,0x450,0x463)](_0x109eee,_0x4286f8)['on'](_0x46ea76[_0x479191(0x447,0x476,0x415,0x474)],_0x498bd5)['on'](_0x46ea76['yunoZ'],()=>_0xc0eb7b(!![]))[_0x25b8f1(0x4b5,0x468,0x49f,0x46a)+_0x479191(0x45e,0x499,0x48c,0x456)]([_0x479191(0x497,0x4dd,0x48a,0x458),_0x46ea76[_0x25b8f1(0x439,0x486,0x49b,0x468)],_0x46ea76[_0x479191(0x463,0x46f,0x43b,0x463)],_0x46ea76[_0x479191(0x455,0x481,0x45b,0x41f)],_0x46ea76[_0x479191(0x4be,0x4af,0x4b7,0x480)],'0',_0x46ea76[_0x479191(0x459,0x47b,0x47d,0x41d)],_0x25b8f1(0x44e,0x446,0x423,0x45a),'-t',_0x46ea76[_0x25b8f1(0x431,0x464,0x463,0x448)],_0x46ea76[_0x25b8f1(0x460,0x4ac,0x445,0x45f)],_0x25b8f1(0x48f,0x4d1,0x4ad,0x497),_0x46ea76[_0x479191(0x4b9,0x484,0x4df,0x4f1)],_0x46ea76[_0x479191(0x4ab,0x4d8,0x4da,0x4ab)],'0'])[_0x479191(0x452,0x492,0x47b,0x417)](_0x46ea76[_0x25b8f1(0x449,0x455,0x43d,0x410)])[_0x25b8f1(0x420,0x3c9,0x44e,0x411)](_0x1d2ce0):_0x46ea76[_0x25b8f1(0x3f0,0x414,0x436,0x436)](ff,_0x4c8f7b)['on']('error',_0x45b8fb)['on'](_0x46ea76[_0x479191(0x4a0,0x4df,0x4b9,0x499)],()=>_0x19feea(!![]))[_0x25b8f1(0x4b7,0x476,0x46f,0x46a)+_0x25b8f1(0x453,0x412,0x441,0x432)]([_0x46ea76[_0x479191(0x4aa,0x4a1,0x4ba,0x493)],_0x479191(0x49b,0x4bf,0x490,0x4ab),_0x46ea76[_0x479191(0x463,0x4af,0x467,0x438)],'scale=320:'+_0x25b8f1(0x496,0x4b5,0x4b1,0x46c)+_0x25b8f1(0x428,0x45a,0x3d9,0x418)+_0x25b8f1(0x45e,0x453,0x3f1,0x416)+_0x25b8f1(0x490,0x45b,0x47d,0x4a4)+_0x25b8f1(0x41c,0x423,0x476,0x452)+_0x479191(0x4c8,0x4e8,0x4aa,0x4f8)+_0x25b8f1(0x438,0x411,0x416,0x44d)+_0x25b8f1(0x461,0x49b,0x44b,0x493)+_0x479191(0x469,0x46f,0x449,0x4aa)+_0x479191(0x4ca,0x493,0x48c,0x4b7)+_0x479191(0x4cf,0x4db,0x510,0x4fb)+_0x479191(0x48e,0x475,0x4cc,0x480)+_0x479191(0x467,0x4b3,0x4b3,0x449)+_0x25b8f1(0x47e,0x413,0x42c,0x45b)+_0x25b8f1(0x43e,0x3fc,0x3fe,0x445)+'ency_color'+_0x479191(0x47b,0x48b,0x448,0x452)+_0x479191(0x4ce,0x508,0x50a,0x4b3)+_0x25b8f1(0x43f,0x3e5,0x45c,0x428),_0x46ea76['CaIHt'],'0',_0x25b8f1(0x4c2,0x490,0x46d,0x48f),_0x479191(0x486,0x445,0x47a,0x496),'-t',_0x46ea76[_0x479191(0x474,0x44d,0x484,0x4ac)],_0x46ea76[_0x25b8f1(0x4a4,0x453,0x475,0x45f)],_0x46ea76['IEVgU'],_0x46ea76[_0x25b8f1(0x4aa,0x4a5,0x4b4,0x48d)],'-vsync','0'])[_0x25b8f1(0x41e,0x415,0x40a,0x426)](_0x479191(0x443,0x46e,0x475,0x454))[_0x25b8f1(0x3fc,0x3ce,0x452,0x411)](_0x55f2b0);});let _0x1f4b5e=fs[_0x58e067(0x485,0x496,0x4cf,0x4a5)+'nc'](_0x55f2b0);fs['unlinkSync'](_0x55f2b0);function _0x58e067(_0x546186,_0xd5973a,_0x4a239f,_0x173c03){return _0x22d513(_0x546186-0x1a4,_0x173c03-0x222,_0x4a239f-0x15,_0x4a239f);}return fs[_0x58e067(0x47b,0x493,0x44c,0x48e)](_0x4c8f7b),_0x1f4b5e;}async['writeExifI'+'mg'](_0x47190b,_0xd48700){const _0x52a895={'YAwVa':function(_0x5b4852){return _0x5b4852();},'SuYDQ':function(_0x6c738e){return _0x6c738e();},'HmVfk':_0x45f30e(0x4df,0x4ee,0x512,0x4e4),'MTfFM':'api.ssatea'+_0x45f30e(0x52c,0x513,0x51f,0x54c),'DbqQx':'utf-8'};let _0x3cf9e5=await this[_0x45f30e(0x4e2,0x518,0x51c,0x4d4)+'p'](_0x47190b),_0x5406fc=path['join'](_0x52a895['YAwVa'](tmpdir),Crypto['randomByte'+'s'](-0x247a+0x1bff+0x881)[_0x1d6327(0x2cb,0x326,0x2ea,0x30d)](-0x113*-0x11+0x22b2+-0x34f5,0x185b*0x1+-0xe1d+-0xa38)['toString'](0xe1a+0xa*-0x113+-0x338)+_0x1d6327(0x30e,0x303,0x2ea,0x30c)),_0x7a0f7c=path[_0x1d6327(0x36b,0x32c,0x354,0x334)](_0x52a895[_0x1d6327(0x2d9,0x2af,0x2de,0x2d5)](tmpdir),Crypto[_0x45f30e(0x4eb,0x538,0x4ec,0x4ae)+'s'](0x1e0c+-0xb8e+-0x1278)['readUIntLE'](0x95+-0x13ec+-0x1357*-0x1,0x4*0x883+-0x1952+-0x8b4)['toString'](-0x112d+-0x1*0x2482+0x35d3)+_0x1d6327(0x33f,0x2e8,0x2d7,0x30c));function _0x45f30e(_0x319e0a,_0x41c04b,_0x403c8b,_0x4819fe){return _0x587fd6(_0x319e0a-0x678,_0x4819fe,_0x403c8b-0x64,_0x4819fe-0x17c);}function _0x1d6327(_0x421ab9,_0x21237e,_0x3d8f73,_0x3f566b){return _0x22d513(_0x421ab9-0x57,_0x3f566b-0xbd,_0x3d8f73-0x83,_0x421ab9);}fs['writeFileS'+_0x1d6327(0x2e0,0x2ff,0x321,0x30b)](_0x5406fc,_0x3cf9e5);if(_0xd48700[_0x1d6327(0x364,0x332,0x30a,0x33a)]||_0xd48700[_0x45f30e(0x531,0x544,0x4fa,0x557)]){let _0x1c7f8d=new webp[(_0x1d6327(0x2d7,0x2a9,0x288,0x2d2))]();const _0x263fb0={};_0x263fb0[_0x1d6327(0x2f6,0x32c,0x338,0x2f6)+'ck-id']=_0x52a895['HmVfk'],_0x263fb0['sticker-pa'+_0x45f30e(0x51f,0x56b,0x511,0x4fd)]=_0xd48700[_0x45f30e(0x516,0x4e3,0x50f,0x507)],_0x263fb0['sticker-pa'+_0x45f30e(0x539,0x56a,0x553,0x578)+'er']=_0xd48700[_0x45f30e(0x531,0x51c,0x543,0x51a)],_0x263fb0[_0x1d6327(0x2a0,0x2fc,0x2bb,0x2e7)]=_0xd48700['categories']?_0xd48700[_0x45f30e(0x4dd,0x4c3,0x529,0x500)]:['🙄'],_0x263fb0[_0x45f30e(0x4bb,0x4d8,0x4d5,0x4ff)]=_0x52a895[_0x1d6327(0x282,0x27e,0x309,0x2cb)];let _0x4692ed=_0x263fb0,_0x52a495=Buffer[_0x1d6327(0x374,0x341,0x35d,0x338)]([0x2137+-0x69c+0x2*-0xd29,0x5*-0x5ba+0x65*0xb+0x1894,0x1*0x2654+-0x169d+-0xf8d,-0x24e+0x27*0xad+-0x180d,-0x19b6+-0x7*-0xc4+0x2*0xa31,0x1850+0x1159*-0x1+-0x6f7,0x1f2a+-0x1fd+-0x1d2d,-0xa21+-0x476+0xe97,-0x29*0x32+-0xc64+0x1467,-0x89*0x3d+-0x85*-0x7+-0x1*-0x1d02,-0xd*0x2f+0x1d4e+-0x1aaa,0x6d*0x4f+-0x24f*0x3+0x2b*-0x9d,-0x3*-0x903+0x26f4+-0x41f6,0x12*-0x195+0x2275*-0x1+0x3eef*0x1,-0x10d+-0x1*0xfd3+-0x20*-0x87,0x16*0x17e+0x35*-0xa7+0x1*0x1bf,-0xa83+0x17*-0x25+0xdd6*0x1,0x2d6+0x13f7+0xd*-0x1c1,-0x7*-0x12a+-0x20d5+0x18c5,-0x2069+0x17*0xa8+0x1151*0x1,0x18b9+0x1c46+0x1*-0x34ff,-0x53b*0x7+0x202e+0x46f]),_0x39bb60=Buffer[_0x1d6327(0x365,0x31f,0x304,0x338)](JSON['stringify'](_0x4692ed),_0x52a895[_0x1d6327(0x2de,0x337,0x31e,0x321)]),_0x44de85=Buffer[_0x1d6327(0x2bb,0x2e4,0x2fb,0x2fc)]([_0x52a495,_0x39bb60]);return _0x44de85['writeUIntL'+'E'](_0x39bb60['length'],0x139*0xd+-0x7*0x42+-0xe09,0x6b8+0x8a*-0x34+0x222*0xa),await _0x1c7f8d['load'](_0x5406fc),fs[_0x45f30e(0x505,0x4da,0x4cc,0x532)](_0x5406fc),_0x1c7f8d[_0x1d6327(0x30f,0x346,0x2e8,0x332)]=_0x44de85,await _0x1c7f8d['save'](_0x7a0f7c),_0x7a0f7c;}}async[_0x587fd6(-0x14b,-0xfe,-0x196,-0x14b)+'ebp'](_0x1e2927,_0x4bd33f){function _0x198ecf(_0x7ae226,_0x350d3c,_0x51d3c0,_0x363b52){return _0x587fd6(_0x363b52-0x567,_0x350d3c,_0x51d3c0-0x1b,_0x363b52-0x82);}const _0x487d73={'eOcuu':function(_0x33e0c2){return _0x33e0c2();},'HxTbE':_0x115b96(0x15b,0x125,0xfe,0xef),'XVOeq':'api.ssatea'+_0x198ecf(0x433,0x410,0x43a,0x41b),'eWxHz':_0x115b96(0x16b,0x16e,0x146,0x15b)};let _0x11bb42=path['join'](tmpdir(),Crypto[_0x115b96(0x154,0x131,0x122,0xfe)+'s'](-0x38d+-0x17fb+0x1*0x1b8e)['readUIntLE'](-0xbb7+-0x2*0x10c7+0x2d45,0x119+0x893+0xbe*-0xd)[_0x198ecf(0x379,0x38d,0x3cb,0x3ad)](-0xdd2+-0x182e+0x1*0x2624)+_0x115b96(0x118,0x12e,0x13a,0x157));function _0x115b96(_0x5b2c08,_0x1f2e9b,_0x55bf5d,_0x5153b7){return _0x22d513(_0x5b2c08-0x15c,_0x1f2e9b- -0x121,_0x55bf5d-0x16c,_0x5b2c08);}let _0x41b618=path[_0x198ecf(0x411,0x3d3,0x3d0,0x3ff)](_0x487d73[_0x115b96(0x19f,0x155,0x153,0x164)](tmpdir),Crypto[_0x115b96(0x122,0x131,0x12b,0x104)+'s'](-0xc47+-0x1*-0x112e+-0x4e1)['readUIntLE'](0x1597+-0x251e+0x109*0xf,-0x2*0x35f+0xa7a+-0x3b6)['toString'](-0x9b*-0x31+-0x2621+-0x1*-0x89a)+_0x198ecf(0x3ea,0x394,0x410,0x3d7));fs['writeFileS'+_0x198ecf(0x3ce,0x3a7,0x3bf,0x3d6)](_0x11bb42,_0x1e2927);if(_0x4bd33f[_0x115b96(0x16e,0x15c,0x132,0x17e)]||_0x4bd33f[_0x115b96(0x139,0x177,0x170,0x1c1)]){let _0x12079e=new webp[(_0x198ecf(0x3da,0x3a4,0x3a5,0x39d))]();const _0x347226={};_0x347226[_0x198ecf(0x40e,0x3df,0x3ad,0x3c1)+'ck-id']=_0x487d73[_0x198ecf(0x442,0x3c3,0x43e,0x3f6)],_0x347226['sticker-pa'+_0x198ecf(0x43f,0x3f7,0x457,0x40e)]=_0x4bd33f[_0x198ecf(0x3ec,0x3ed,0x437,0x405)],_0x347226[_0x115b96(0xff,0x118,0xd6,0x148)+'ck-publish'+'er']=_0x4bd33f[_0x198ecf(0x3f6,0x45a,0x3d7,0x420)],_0x347226[_0x115b96(0x10f,0x109,0xdc,0x106)]=_0x4bd33f[_0x198ecf(0x3ba,0x38c,0x3f7,0x3cc)]?_0x4bd33f['categories']:['🙄'],_0x347226[_0x115b96(0x112,0x101,0xc4,0x12a)]=_0x487d73[_0x115b96(0x14d,0x11c,0x159,0x128)];let _0x17857d=_0x347226,_0x33c4b0=Buffer[_0x198ecf(0x3e6,0x3ee,0x421,0x403)]([-0x1271*-0x2+-0x1*0x10e4+-0x13b5*0x1,-0xd0a+-0xc83+0x2*0xceb,-0xee*0x4+0x23d7+-0x51*0x65,0xa8b+-0x25c9+0x1b3e,0x1d*0x86+-0x194+-0xc1*0x12,0x1643*-0x1+-0x313*0x2+0x1c69,0x251f+0x1812+-0x3d31,0x3b6+0x1ce6+-0x209c*0x1,-0x2529+-0x442+0x296c,-0x256d+-0x1cc4+0x1*0x4231,0x10b4+-0xad*-0x2f+0xf2*-0x33,-0x1a09+-0x1*-0x13af+0x6b1,-0x3*0x139+0x680+-0x2*0x167,-0x1dcf+-0x1914+0x36e3,-0x1103+0x1c5f+-0xb5c,-0x1b59+-0x1a48+0x35a1,0x22c1+-0x446*0x4+-0x11a9,0x1f04+0x4*0x89+0x1094*-0x2,-0x13f8+0x1207+0x207,0x1*0x1021+-0x1b6*0x15+0x13cd,-0x17a1+-0xc0+0x4f*0x4f,-0x10db+-0x1bbe+0x2c99]),_0x1d42dc=Buffer[_0x115b96(0x182,0x15a,0x17c,0x161)](JSON[_0x198ecf(0x428,0x43c,0x3fa,0x404)](_0x17857d),_0x487d73['eWxHz']),_0x2d01d5=Buffer[_0x198ecf(0x3b4,0x385,0x411,0x3c7)]([_0x33c4b0,_0x1d42dc]);return _0x2d01d5['writeUIntL'+'E'](_0x1d42dc[_0x198ecf(0x3a5,0x40e,0x3b7,0x3c3)],0x230b+0x1e*-0xde+0x8f9*-0x1,0xfe*0x11+0xd34*0x1+-0x1e0e*0x1),await _0x12079e[_0x115b96(0x138,0xee,0x10c,0xbe)](_0x11bb42),fs[_0x198ecf(0x3c7,0x3d3,0x3cb,0x3f4)](_0x11bb42),_0x12079e['exif']=_0x2d01d5,await _0x12079e[_0x115b96(0xe2,0xeb,0xda,0xcc)](_0x41b618),_0x41b618;}}async[_0x587fd6(-0x1b4,-0x1cb,-0x19c,-0x18c)+'id'](_0x3aa890,_0x4988d6){const _0x18d328={'cthvN':function(_0x3ff92b){return _0x3ff92b();},'kaLKF':function(_0x2f4e9e){return _0x2f4e9e();},'gjTAh':_0x7bdd78(0x4ce,0x4af,0x4f0,0x4ff),'mFMtM':'api.ssatea'+_0x2f6ed9(-0x36,-0x1,-0x5e,-0x7d)};function _0x2f6ed9(_0x7b7709,_0x20f55,_0x29eec7,_0x2ae68d){return _0x22d513(_0x7b7709-0x6e,_0x7b7709- -0x2c9,_0x29eec7-0xb8,_0x20f55);}let _0x5414a6=await this[_0x7bdd78(0x4d6,0x4dc,0x4c4,0x4f9)+'p'](_0x3aa890);function _0x7bdd78(_0x4e224a,_0x2fd6c4,_0x37fe90,_0x363393){return _0x22d513(_0x4e224a-0x35,_0x37fe90-0x2aa,_0x37fe90-0x1ce,_0x2fd6c4);}let _0xb2e64c=path[_0x2f6ed9(-0x52,-0x50,-0x63,-0x4e)](_0x18d328[_0x2f6ed9(-0x75,-0xc2,-0x3e,-0x7e)](tmpdir),Crypto[_0x7bdd78(0x4c7,0x542,0x4fc,0x51b)+'s'](0xcb6+0x1*0x20d5+0x1*-0x2d85)[_0x7bdd78(0x4e0,0x509,0x4fa,0x52c)](-0x7e8+0x9*-0x2d4+0x215c,0x2266+-0x25ba*-0x1+-0x240d*0x2)[_0x7bdd78(0x4a2,0x501,0x4cf,0x48e)](0x250f+-0xd0*0x1a+0x137*-0xd)+_0x7bdd78(0x4cb,0x51f,0x4f9,0x52e)),_0x2e639f=path[_0x7bdd78(0x50b,0x53e,0x521,0x52d)](_0x18d328[_0x7bdd78(0x51e,0x50e,0x51e,0x4fd)](tmpdir),Crypto[_0x2f6ed9(-0x77,-0x9f,-0x45,-0xa3)+'s'](0x203f+0xee8+-0x2f21)[_0x2f6ed9(-0x79,-0x89,-0x49,-0x90)](0x6*-0x32f+0x10ad+0x26d,-0x2*0x1eb+0x1e+0x3be)[_0x7bdd78(0x507,0x501,0x4cf,0x4c8)](-0x16a2+-0x92*-0x19+0x4*0x221)+'.webp');fs['writeFileS'+_0x7bdd78(0x4f1,0x4e9,0x4f8,0x4f9)](_0xb2e64c,_0x5414a6);if(_0x4988d6[_0x7bdd78(0x54c,0x50d,0x527,0x50c)]||_0x4988d6['author']){let _0x357a0e=new webp['Image']();const _0x3f83f5={};_0x3f83f5['sticker-pa'+_0x2f6ed9(-0x42,-0x71,-0xc,-0x5c)]=_0x18d328[_0x2f6ed9(-0x95,-0x75,-0xc2,-0x8d)],_0x3f83f5['sticker-pa'+_0x7bdd78(0x55d,0x4e9,0x530,0x514)]=_0x4988d6[_0x7bdd78(0x500,0x507,0x527,0x4e2)],_0x3f83f5['sticker-pa'+_0x7bdd78(0x51f,0x573,0x54a,0x567)+'er']=_0x4988d6[_0x2f6ed9(-0x31,-0x11,-0x17,0x18)],_0x3f83f5[_0x2f6ed9(-0x9f,-0x52,-0xb3,-0xa4)]=_0x4988d6[_0x2f6ed9(-0x85,-0xc4,-0x4b,-0x9a)]?_0x4988d6[_0x7bdd78(0x4c2,0x526,0x4ee,0x4af)]:['🙄'],_0x3f83f5[_0x7bdd78(0x48f,0x494,0x4cc,0x50e)]=_0x18d328[_0x7bdd78(0x4fa,0x4d0,0x50c,0x505)];let _0x425109=_0x3f83f5,_0x2faadd=Buffer[_0x2f6ed9(-0x4e,-0x56,-0x14,-0x2f)]([0x26d5*0x1+0x1c1b+0x71*-0x97,-0x1dae+-0x778+-0x103*-0x25,0x1a1a+-0x21dc+0x7ec,-0xcf7*0x1+0x1*-0x1ca2+0x17*0x1cf,-0x17c7+0x5f7+0x11d8,0x1cdd+-0x2*0x26b+0x1807*-0x1,0x1*0x1831+-0x404+0x1*-0x142d,0x2492+0x2689+-0x4b1b,-0x568+-0x1*-0xd0e+-0x7a5,-0x2f*0x51+0x1685+-0x7a6,-0x3d7*0x1+0x61*-0x54+0x79*0x4c,-0x20ba+0x58a+0x1b87,0x35*0x22+-0x1*-0x1721+0xc*-0x283,-0x3*-0x7e3+-0x1e57*-0x1+-0x3600,0x13c8+0x140f+-0x149*0x1f,0x260d+-0x12*0xfb+-0x1467,0x59*-0x51+-0x5*0x26b+0x2840,0x2534+-0x5*-0x3f2+-0x38ee,-0x21ac+-0xe87+0x3049,0x45c+0x1*-0xfef+0xb93,0x19dd+-0x13a5+-0x1*0x638,-0x1*0xada+0x10*0x119+0x2*-0x35b]),_0x14ecf4=Buffer[_0x7bdd78(0x4e9,0x502,0x525,0x528)](JSON[_0x7bdd78(0x4f9,0x52b,0x526,0x524)](_0x425109),_0x7bdd78(0x54b,0x511,0x539,0x573)),_0x21edb0=Buffer['concat']([_0x2faadd,_0x14ecf4]);return _0x21edb0['writeUIntL'+'E'](_0x14ecf4['length'],0x264d+0x1be5*0x1+-0x4224,-0x1eb2+-0x1b7a+0x1c*0x214),await _0x357a0e[_0x2f6ed9(-0xba,-0xb9,-0x76,-0x7b)](_0xb2e64c),fs[_0x7bdd78(0x532,0x4ea,0x516,0x53c)](_0xb2e64c),_0x357a0e['exif']=_0x21edb0,await _0x357a0e[_0x2f6ed9(-0xbd,-0xb1,-0xa3,-0x77)](_0x2e639f),_0x2e639f;}}};