-
Notifications
You must be signed in to change notification settings - Fork 168
/
Copy pathbard.js
177 lines (177 loc) · 5.1 KB
/
bard.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
'use strict'
const _0x1031d0 = _0x3c92
;(function (_0x4b3e23, _0x1c0035) {
const _0x5df106 = _0x3c92,
_0x405078 = _0x4b3e23()
while (!![]) {
try {
const _0x14b27e =
(parseInt(_0x5df106(0x14e)) / 0x1) * (parseInt(_0x5df106(0x158)) / 0x2) +
(parseInt(_0x5df106(0x159)) / 0x3) * (-parseInt(_0x5df106(0x15f)) / 0x4) +
parseInt(_0x5df106(0x161)) / 0x5 +
parseInt(_0x5df106(0x149)) / 0x6 +
(-parseInt(_0x5df106(0x147)) / 0x7) * (parseInt(_0x5df106(0x15a)) / 0x8) +
-parseInt(_0x5df106(0x150)) / 0x9 +
-parseInt(_0x5df106(0x14f)) / 0xa
if (_0x14b27e === _0x1c0035) break
else _0x405078['push'](_0x405078['shift']())
} catch (_0x2457d2) {
_0x405078['push'](_0x405078['shift']())
}
}
})(_0x3ea0, 0x1d0e8)
import _0x3fb20f from 'axios'
const baseurl = _0x1031d0(0x144)
class bard {
constructor() {}
async [_0x1031d0(0x15d)]({ ask: _0x3b21f7 }) {
const _0x1d05cc = _0x1031d0,
_0x46916b = {
uRGCm: _0x1d05cc(0x167),
ctxyE: function (_0x45bf03, _0xb826c1) {
return _0x45bf03 === _0xb826c1
},
cTJsu: _0x1d05cc(0x140),
sNPsC: function (_0x11f28a, _0x1d14ce) {
return _0x11f28a === _0x1d14ce
},
Vzobw: _0x1d05cc(0x156),
xtOZE: _0x1d05cc(0x154),
CWZel: _0x1d05cc(0x143),
HkepH: function (_0x1da4db, _0xa5e9e8) {
return _0x1da4db !== _0xa5e9e8
},
PRvuM: _0x1d05cc(0x152),
ePLDH: function (_0xfcf5e4, _0x40dc3d) {
return _0xfcf5e4 + _0x40dc3d
},
JbgTx: _0x1d05cc(0x163),
}
if (!_0x3b21f7) {
if (_0x46916b[_0x1d05cc(0x166)](_0x46916b[_0x1d05cc(0x15c)], _0x1d05cc(0x151)))
throw new _0x3e0466(_0x46916b['uRGCm'])
else throw new Error(_0x46916b[_0x1d05cc(0x15e)])
}
try {
if (_0x46916b['sNPsC'](_0x46916b[_0x1d05cc(0x14b)], _0x46916b[_0x1d05cc(0x15b)]))
throw new _0x30d571(_0x46916b['uRGCm'])
else {
const _0x5678a9 = await _0x3fb20f[_0x1d05cc(0x164)](
baseurl + _0x1d05cc(0x14d),
{ ask: _0x3b21f7 },
{ headers: { 'Content-Type': _0x46916b[_0x1d05cc(0x160)] } }
)
return _0x5678a9[_0x1d05cc(0x168)]
}
} catch (_0x585290) {
if (_0x46916b[_0x1d05cc(0x14c)](_0x1d05cc(0x152), _0x46916b[_0x1d05cc(0x165)]))
throw new _0x5373e9('Please\x20specify\x20a\x20URL\x20for\x20the\x20image!')
else
throw new Error(
_0x46916b[_0x1d05cc(0x155)](_0x46916b[_0x1d05cc(0x162)], _0x585290[_0x1d05cc(0x153)])
)
}
}
async [_0x1031d0(0x14a)]({ ask: _0x2857e3, image: _0x47f648 }) {
const _0x85607b = _0x1031d0,
_0x276ba5 = {
eniEK: function (_0x3b705b, _0x40e052) {
return _0x3b705b + _0x40e052
},
kbGPv: 'Error:\x20',
usScc: _0x85607b(0x157),
kolow: _0x85607b(0x148),
DmcCg: _0x85607b(0x167),
bYqiK: function (_0x3f3925, _0x4ee629) {
return _0x3f3925 === _0x4ee629
},
ODdoj: 'HMBLV',
bGSxl: _0x85607b(0x146),
HUuOo: _0x85607b(0x143),
}
if (!_0x2857e3) {
if (_0x276ba5['usScc'] !== _0x276ba5['kolow']) throw new Error(_0x276ba5['DmcCg'])
else
throw new _0x2ed94a(_0x276ba5[_0x85607b(0x169)](_0x276ba5['kbGPv'], _0x5e8189['message']))
}
if (!_0x47f648) {
if (_0x276ba5['bYqiK'](_0x276ba5[_0x85607b(0x142)], _0x276ba5[_0x85607b(0x142)]))
throw new Error(_0x276ba5['bGSxl'])
else throw new _0x47c5c3(_0x276ba5[_0x85607b(0x145)] + _0x203e29[_0x85607b(0x153)])
}
try {
const _0x394ba6 = await _0x3fb20f[_0x85607b(0x164)](
baseurl + '/api/onstage/image',
{ ask: _0x2857e3, image: _0x47f648 },
{ headers: { 'Content-Type': _0x276ba5[_0x85607b(0x141)] } }
)
return _0x394ba6['data']
} catch (_0xe85cc6) {
throw new Error(
_0x276ba5[_0x85607b(0x169)](_0x276ba5[_0x85607b(0x145)], _0xe85cc6['message'])
)
}
}
}
function _0x3c92(_0x325fa4, _0x35400d) {
const _0x3ea0a8 = _0x3ea0()
return (
(_0x3c92 = function (_0x3c924c, _0x1a05da) {
_0x3c924c = _0x3c924c - 0x140
let _0x24dbc3 = _0x3ea0a8[_0x3c924c]
return _0x24dbc3
}),
_0x3c92(_0x325fa4, _0x35400d)
)
}
export default bard
function _0x3ea0() {
const _0x2a1727 = [
'post',
'PRvuM',
'ctxyE',
'Please\x20specify\x20a\x20question!',
'data',
'eniEK',
'CRbQn',
'HUuOo',
'ODdoj',
'application/json',
'https://bard.rizzy.eu.org',
'kbGPv',
'Please\x20specify\x20a\x20URL\x20for\x20the\x20image!',
'125027lZjOdh',
'IlJuM',
'596190KDbgvO',
'questionWithImage',
'Vzobw',
'HkepH',
'/api/onstage',
'210891hQQVyi',
'133520OtowtE',
'1271880SacyxF',
'zHjEN',
'NTnMO',
'message',
'QZxki',
'ePLDH',
'PyrfJ',
'PScdG',
'2GBotIV',
'2028JiqZyi',
'64WuzyNh',
'xtOZE',
'cTJsu',
'question',
'uRGCm',
'316fIkVyU',
'CWZel',
'798620OZWPFj',
'JbgTx',
'Error:\x20',
]
_0x3ea0 = function () {
return _0x2a1727
}
return _0x3ea0()
}