|
1 | | -const db = new PouchDB('flags'); |
2 | | -const counterEl = document.getElementById('counter'); |
3 | | -const O = JSON.parse(document.getElementById('__DATA__').textContent); |
4 | | -const part1 = atob(decodeURIComponent(O['f'])); |
5 | | -const part2 = atob(decodeURIComponent(O['g'])); |
| 1 | +function _0x34da(_0x3e62c3, _0x678492) { |
| 2 | +const _0x12826f = _0x1282(); |
| 3 | +return ( |
| 4 | +(_0x34da = function (_0x34da03, _0x5c7ecb) { |
| 5 | +_0x34da03 = _0x34da03 - 0x103; |
| 6 | +let _0x18f5ce = _0x12826f[_0x34da03]; |
| 7 | +return _0x18f5ce; |
| 8 | +}), |
| 9 | +_0x34da(_0x3e62c3, _0x678492) |
| 10 | +); |
| 11 | +} |
6 | 12 |
|
| 13 | +const _0x57927a = _0x34da; |
| 14 | +(function (_0x10bcdd, _0x13ceaa) { |
| 15 | +const _0x453327 = _0x34da, |
| 16 | +_0x5edba3 = _0x10bcdd(); |
| 17 | +while (!![]) { |
| 18 | +try { |
| 19 | +const _0x3d3320 = |
| 20 | +(-parseInt(_0x453327(0x104)) / 0x1) * |
| 21 | +(parseInt(_0x453327(0x118)) / 0x2) + |
| 22 | +(parseInt(_0x453327(0x103)) / 0x3) * |
| 23 | +(-parseInt(_0x453327(0x10b)) / 0x4) + |
| 24 | +-parseInt(_0x453327(0x10a)) / 0x5 + |
| 25 | +(-parseInt(_0x453327(0x10f)) / 0x6) * |
| 26 | +(-parseInt(_0x453327(0x108)) / 0x7) + |
| 27 | +(-parseInt(_0x453327(0x109)) / 0x8) * |
| 28 | +(parseInt(_0x453327(0x107)) / 0x9) + |
| 29 | +(-parseInt(_0x453327(0x111)) / 0xa) * |
| 30 | +(-parseInt(_0x453327(0x119)) / 0xb) + |
| 31 | +parseInt(_0x453327(0x10e)) / 0xc; |
| 32 | +if (_0x3d3320 === _0x13ceaa) break; |
| 33 | +else _0x5edba3['push'](_0x5edba3['shift']()); |
| 34 | +} catch (_0x65209a) { |
| 35 | +_0x5edba3['push'](_0x5edba3['shift']()); |
| 36 | +} |
| 37 | +} |
| 38 | +})(_0x1282, 0x88f0a); |
| 39 | +const db = new PouchDB(_0x57927a(0x115)), |
| 40 | +counterEl = document[_0x57927a(0x116)](_0x57927a(0x117)), |
| 41 | +O = JSON[_0x57927a(0x106)]( |
| 42 | +document['getElementById'](_0x57927a(0x113))[_0x57927a(0x114)] |
| 43 | +), |
| 44 | +part1 = atob(decodeURIComponent(O['f'])), |
| 45 | +part2 = atob(decodeURIComponent(O['g'])); |
7 | 46 | void (async () => { |
| 47 | +const _0x2dd918 = _0x57927a; |
8 | 48 | try { |
9 | | -const counterDoc = await db.get('counter'); |
10 | | -const value = counterDoc.counter + 2; |
11 | | -await db.put({ |
12 | | -...counterDoc, |
13 | | -counter: value, |
14 | | -}); |
15 | | -counterEl.innerText = value.toString(); |
16 | | -} catch (e) { |
17 | | -await db.bulkDocs([ |
18 | | -{ |
19 | | -flag_part1: part1, |
20 | | -_id: `_local/flag_part_1`, |
21 | | -}, |
22 | | -{ |
23 | | -flag_part2: part2, |
24 | | -_id: `flag_part_2`, |
25 | | -}, |
26 | | -{ |
27 | | -counter: 0, |
28 | | -_id: 'counter', |
29 | | -}, |
30 | | -]); |
31 | | -counterEl.innerText = '0'; |
| 49 | +const _0x3846e5 = await db[_0x2dd918(0x11b)]('counter'), |
| 50 | +_0x5c3041 = _0x3846e5['counter'] + 0x2; |
| 51 | +await db[_0x2dd918(0x11a)]({ ..._0x3846e5, counter: _0x5c3041 }), |
| 52 | +(counterEl['innerText'] = _0x5c3041[_0x2dd918(0x112)]()); |
| 53 | +} catch (_0x4238a5) { |
| 54 | +await db[_0x2dd918(0x105)]([ |
| 55 | +{ flag_part1: part1, _id: _0x2dd918(0x10d) }, |
| 56 | +{ flag_part2: part2, _id: _0x2dd918(0x110) }, |
| 57 | +{ counter: 0x0, _id: _0x2dd918(0x117) }, |
| 58 | +]), |
| 59 | +(counterEl['innerText'] = '0'); |
32 | 60 | } finally { |
33 | | -counterEl.classList.add('floatIn'); |
| 61 | +counterEl[_0x2dd918(0x10c)]['add']('floatIn'); |
34 | 62 | } |
35 | 63 | })(); |
| 64 | + |
| 65 | +function _0x1282() { |
| 66 | +const _0x4ea14a = [ |
| 67 | +'put', |
| 68 | +'get', |
| 69 | +'687GFclCk', |
| 70 | +'2EaJsMT', |
| 71 | +'bulkDocs', |
| 72 | +'parse', |
| 73 | +'21555mAZHJs', |
| 74 | +'539YtPzum', |
| 75 | +'2760bIQEvY', |
| 76 | +'5242650OMPfRG', |
| 77 | +'12868NeNmaL', |
| 78 | +'classList', |
| 79 | +'_local/flag_part_1', |
| 80 | +'30396132lqsOSy', |
| 81 | +'79854QRjaWG', |
| 82 | +'flag_part_2', |
| 83 | +'2265150hwvFlc', |
| 84 | +'toString', |
| 85 | +'__DATA__', |
| 86 | +'textContent', |
| 87 | +'flags', |
| 88 | +'getElementById', |
| 89 | +'counter', |
| 90 | +'838430lolKYP', |
| 91 | +'22IFqdje', |
| 92 | +]; |
| 93 | +_0x1282 = function () { |
| 94 | +return _0x4ea14a; |
| 95 | +}; |
| 96 | +return _0x1282(); |
| 97 | +} |
0 commit comments