@opentiny/next 0.3.1 → 0.3.2
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.
- package/LICENSE +0 -0
- package/README.md +20 -7
- package/index.d.ts +0 -0
- package/index.js +652 -618
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -4,799 +4,833 @@ import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js";
|
|
|
4
4
|
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
|
5
5
|
import { WebSocketClientTransport } from "@modelcontextprotocol/sdk/client/websocket.js";
|
|
6
6
|
import { UnauthorizedError } from "@modelcontextprotocol/sdk/client/auth.js";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return _0x4fe318;
|
|
11
|
-
};
|
|
12
|
-
return _0x425b();
|
|
13
|
-
}
|
|
14
|
-
(function(_0x3f2143, _0xebf1ca) {
|
|
15
|
-
const _0xf16569 = _0x3c98, _0xf8772f = _0x3c98, _0x12639d = _0x3f2143();
|
|
7
|
+
const _0x4f2826 = _0xad7a;
|
|
8
|
+
(function(_0x5153c5, _0x3abbea) {
|
|
9
|
+
const _0x5f186f = _0xad7a, _0x3f8155 = _0xad7a, _0x5ad68c = _0x5153c5();
|
|
16
10
|
while (!![]) {
|
|
17
11
|
try {
|
|
18
|
-
const
|
|
19
|
-
if (
|
|
20
|
-
else
|
|
21
|
-
} catch (
|
|
22
|
-
|
|
12
|
+
const _0x1209c2 = parseInt(_0x5f186f(403)) / (-1 * -8962 + 7125 + -1 * 16086) + -parseInt(_0x5f186f(411)) / (-118 * -62 + 5798 + -298 * 44) * (-parseInt(_0x3f8155(406)) / (-3602 + 4764 + -1159 * 1)) + -parseInt(_0x3f8155(425)) / (-878 * 8 + 6350 + 678) * (parseInt(_0x5f186f(387)) / (-2471 + -7095 + 9571)) + -parseInt(_0x3f8155(426)) / (-1158 + 4090 + -266 * 11) + parseInt(_0x3f8155(395)) / (-5007 + 205 * 3 + 83 * 53) * (-parseInt(_0x5f186f(419)) / (-4925 + 9223 + -4290)) + -parseInt(_0x5f186f(413)) / (8348 + -7962 + -1 * 377) + parseInt(_0x3f8155(400)) / (-1828 + 1230 + 608);
|
|
13
|
+
if (_0x1209c2 === _0x3abbea) break;
|
|
14
|
+
else _0x5ad68c["push"](_0x5ad68c["shift"]());
|
|
15
|
+
} catch (_0x3c6d23) {
|
|
16
|
+
_0x5ad68c["push"](_0x5ad68c["shift"]());
|
|
23
17
|
}
|
|
24
18
|
}
|
|
25
|
-
})(
|
|
19
|
+
})(_0xf7c7, -118057 + 3521 * -35 + -2099 * -233);
|
|
26
20
|
const getGlobalObject = () => {
|
|
27
|
-
const
|
|
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
|
-
|
|
21
|
+
const _0x5b06d9 = _0xad7a, _0x55441c = _0xad7a, _0x3922ee = {};
|
|
22
|
+
_0x3922ee[_0x5b06d9(420)] = "3|0|2|1|4", _0x3922ee["vQYJZ"] = function(_0x5e2b69, _0x44350c) {
|
|
23
|
+
return _0x5e2b69 !== _0x44350c;
|
|
24
|
+
}, _0x3922ee[_0x55441c(394)] = _0x55441c(414), _0x3922ee["ktWqD"] = function(_0x187cae, _0x331f13) {
|
|
25
|
+
return _0x187cae !== _0x331f13;
|
|
26
|
+
}, _0x3922ee[_0x5b06d9(424)] = _0x5b06d9(391);
|
|
27
|
+
const _0x4bc984 = _0x3922ee, _0x58c960 = _0x4bc984[_0x55441c(420)]["split"]("|");
|
|
28
|
+
let _0x55d9fc = 859 * 2 + -3 * -1039 + -4835 * 1;
|
|
29
|
+
while (!![]) {
|
|
30
|
+
switch (_0x58c960[_0x55d9fc++]) {
|
|
31
|
+
case "0":
|
|
32
|
+
if (_0x4bc984[_0x55441c(407)](typeof window, "undefined")) return window;
|
|
33
|
+
continue;
|
|
34
|
+
case "1":
|
|
35
|
+
if (_0x4bc984["vQYJZ"](typeof self, _0x4bc984["NZmUq"])) return self;
|
|
36
|
+
continue;
|
|
37
|
+
case "2":
|
|
38
|
+
if (_0x4bc984[_0x55441c(405)](typeof global, "undefined")) return global;
|
|
39
|
+
continue;
|
|
40
|
+
case "3":
|
|
41
|
+
if (_0x4bc984[_0x55441c(405)](typeof globalThis, _0x4bc984[_0x5b06d9(394)])) return globalThis;
|
|
42
|
+
continue;
|
|
43
|
+
case "4":
|
|
44
|
+
return Function(_0x4bc984[_0x5b06d9(424)])();
|
|
45
|
+
}
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
}, sendMessage = (_0x35d0b8, _0xeea47, _0xfb13f6) => {
|
|
49
|
+
const _0x348bd2 = _0xad7a, _0x30ad92 = _0xad7a, _0x31ab0f = {};
|
|
50
|
+
_0x31ab0f["eOzBp"] = function(_0xa5b644, _0x9c2e17) {
|
|
51
|
+
return _0xa5b644 !== _0x9c2e17;
|
|
52
|
+
}, _0x31ab0f["ooaJk"] = "undefined", _0x31ab0f[_0x348bd2(402)] = function(_0x3bec39, _0x3d0904) {
|
|
53
|
+
return _0x3bec39 === _0x3d0904;
|
|
54
|
+
}, _0x31ab0f[_0x348bd2(421)] = "function";
|
|
55
|
+
const _0x3ab65e = _0x31ab0f;
|
|
56
|
+
if (_0x3ab65e[_0x30ad92(389)](typeof window, _0x3ab65e["ooaJk"])) _0x35d0b8[_0x30ad92(423)](_0xeea47, "*", _0xfb13f6);
|
|
57
|
+
else _0x348bd2(423) in _0x35d0b8 && _0x3ab65e["pTvSc"](typeof _0x35d0b8[_0x30ad92(423)], _0x3ab65e[_0x348bd2(421)]) && _0x35d0b8["postMessage"](_0xeea47, _0xfb13f6);
|
|
58
|
+
}, setMessageHandler = (_0x47e26b, _0x56d6f3) => {
|
|
59
|
+
const _0x3198b3 = _0xad7a, _0x178e44 = _0xad7a, _0x878ed8 = {};
|
|
60
|
+
_0x878ed8["nTCfA"] = function(_0x161049, _0x23c671) {
|
|
61
|
+
return _0x161049 in _0x23c671;
|
|
62
|
+
}, _0x878ed8[_0x3198b3(390)] = "addEventListener", _0x878ed8[_0x3198b3(385)] = function(_0x113571, _0x525d77) {
|
|
63
|
+
return _0x113571 === _0x525d77;
|
|
64
|
+
}, _0x878ed8[_0x3198b3(409)] = "function", _0x878ed8["VaHpd"] = _0x178e44(392), _0x878ed8[_0x178e44(384)] = _0x3198b3(417), _0x878ed8["FPOYW"] = function(_0x450905, _0x43bced) {
|
|
65
|
+
return _0x450905 !== _0x43bced;
|
|
66
|
+
};
|
|
67
|
+
const _0xbc5ca5 = _0x878ed8;
|
|
68
|
+
if (_0xbc5ca5["nTCfA"](_0xbc5ca5["ogKey"], _0x47e26b) && _0xbc5ca5[_0x178e44(385)](typeof _0x47e26b["addEventListener"], _0xbc5ca5[_0x178e44(409)])) _0x47e26b[_0x178e44(386)](_0xbc5ca5["VaHpd"], _0x56d6f3);
|
|
69
|
+
else _0xbc5ca5[_0x178e44(384)] in _0x47e26b && _0xbc5ca5[_0x3198b3(398)](typeof _0x47e26b[_0x178e44(417)], _0x3198b3(414)) && (_0x47e26b["onmessage"] = _0x56d6f3);
|
|
55
70
|
};
|
|
56
71
|
class MessageChannelTransport {
|
|
57
|
-
constructor(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
this[_0x262fc0(406)][_0x262fc0(413)] = (_0x12f751) => {
|
|
72
|
+
constructor(_0x34a0c2) {
|
|
73
|
+
this["_port"] = _0x34a0c2;
|
|
74
|
+
}
|
|
75
|
+
async [_0x4f2826(401)]() {
|
|
76
|
+
const _0x128b02 = _0x4f2826, _0x5486a4 = _0x4f2826;
|
|
77
|
+
if (!this[_0x128b02(422)]) return;
|
|
78
|
+
this[_0x5486a4(422)]["onmessage"] = (_0x589d80) => {
|
|
65
79
|
var _a, _b;
|
|
66
|
-
const
|
|
80
|
+
const _0x48ea76 = _0x128b02;
|
|
67
81
|
try {
|
|
68
|
-
const
|
|
69
|
-
(_a = this[
|
|
70
|
-
} catch (
|
|
71
|
-
const
|
|
72
|
-
(_b = this[
|
|
82
|
+
const _0xb2e035 = JSONRPCMessageSchema["parse"](_0x589d80["data"]["message"]);
|
|
83
|
+
(_a = this["onmessage"]) == null ? void 0 : _a.call(this, _0xb2e035, _0x589d80[_0x48ea76(412)][_0x48ea76(428)]);
|
|
84
|
+
} catch (_0x28fd34) {
|
|
85
|
+
const _0x19f373 = new Error("MessageChannel failed to parse message: " + _0x28fd34);
|
|
86
|
+
(_b = this[_0x48ea76(383)]) == null ? void 0 : _b.call(this, _0x19f373);
|
|
73
87
|
}
|
|
74
|
-
}, this["_port"][
|
|
88
|
+
}, this["_port"]["onmessageerror"] = (_0xf11ae3) => {
|
|
75
89
|
var _a;
|
|
76
|
-
const
|
|
77
|
-
(_a = this["onerror"]) == null ? void 0 : _a.call(this,
|
|
78
|
-
}, this[
|
|
79
|
-
}
|
|
80
|
-
async ["send"](
|
|
81
|
-
const
|
|
82
|
-
return
|
|
83
|
-
}, "
|
|
84
|
-
return
|
|
90
|
+
const _0x2e8678 = _0x5486a4, _0x2174a2 = new Error("MessageChannel transport error: " + JSON[_0x2e8678(415)](_0xf11ae3));
|
|
91
|
+
(_a = this["onerror"]) == null ? void 0 : _a.call(this, _0x2174a2);
|
|
92
|
+
}, this[_0x5486a4(422)]["start"]();
|
|
93
|
+
}
|
|
94
|
+
async ["send"](_0x53414e, _0x1fad39) {
|
|
95
|
+
const _0x242e50 = { "EoBZE": function(_0x5dfbdd) {
|
|
96
|
+
return _0x5dfbdd();
|
|
97
|
+
}, "leEiG": function(_0x2c92ea, _0x3a00c7) {
|
|
98
|
+
return _0x2c92ea instanceof _0x3a00c7;
|
|
99
|
+
}, "cDUwk": function(_0x502cb0, _0x62d20e) {
|
|
100
|
+
return _0x502cb0(_0x62d20e);
|
|
85
101
|
} };
|
|
86
|
-
return new Promise((
|
|
102
|
+
return new Promise((_0x27cc57, _0x179db2) => {
|
|
87
103
|
var _a;
|
|
88
|
-
const
|
|
104
|
+
const _0x1ce41e = _0xad7a, _0x5396c7 = _0xad7a;
|
|
89
105
|
try {
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
const
|
|
93
|
-
|
|
94
|
-
if (this[
|
|
95
|
-
|
|
96
|
-
} catch (
|
|
97
|
-
const
|
|
98
|
-
(_a = this[
|
|
106
|
+
const _0x4c1128 = {};
|
|
107
|
+
_0x4c1128[_0x1ce41e(404)] = _0x1fad39 == null ? void 0 : _0x1fad39[_0x1ce41e(404)];
|
|
108
|
+
const _0x2b6c6f = {};
|
|
109
|
+
_0x2b6c6f[_0x1ce41e(392)] = _0x53414e, _0x2b6c6f["extra"] = _0x4c1128;
|
|
110
|
+
if (this["_port"]) this["_port"][_0x5396c7(423)](_0x2b6c6f);
|
|
111
|
+
_0x242e50[_0x1ce41e(399)](_0x27cc57);
|
|
112
|
+
} catch (_0xd49ca8) {
|
|
113
|
+
const _0x306c32 = _0x242e50["leEiG"](_0xd49ca8, Error) ? _0xd49ca8 : new Error(_0x242e50["cDUwk"](String, _0xd49ca8));
|
|
114
|
+
(_a = this["onerror"]) == null ? void 0 : _a.call(this, _0x306c32), _0x179db2(_0x306c32);
|
|
99
115
|
}
|
|
100
116
|
});
|
|
101
117
|
}
|
|
102
118
|
async ["close"]() {
|
|
103
119
|
var _a, _b;
|
|
104
|
-
const
|
|
105
|
-
(_a = this["_port"]) == null ? void 0 : _a[
|
|
120
|
+
const _0x45fe11 = _0x4f2826, _0x27cc50 = _0x4f2826;
|
|
121
|
+
(_a = this["_port"]) == null ? void 0 : _a[_0x45fe11(393)](), this[_0x45fe11(422)] = void 0, (_b = this[_0x27cc50(408)]) == null ? void 0 : _b.call(this);
|
|
106
122
|
}
|
|
107
123
|
}
|
|
108
124
|
class MessageChannelClientTransport extends MessageChannelTransport {
|
|
109
|
-
constructor(
|
|
110
|
-
const
|
|
111
|
-
return
|
|
125
|
+
constructor(_0x20201a, _0x4e42d0 = getGlobalObject()) {
|
|
126
|
+
const _0xe917b4 = _0x4f2826, _0x2ee57a = { "lSpBh": function(_0x15fcf6, _0xd26994, _0x5aabc7, _0x5b05d2) {
|
|
127
|
+
return _0x15fcf6(_0xd26994, _0x5aabc7, _0x5b05d2);
|
|
112
128
|
} };
|
|
113
|
-
super(), this[
|
|
114
|
-
const
|
|
115
|
-
this[
|
|
129
|
+
super(), this["_endpoint"] = _0x20201a, this["_globalObject"] = _0x4e42d0;
|
|
130
|
+
const _0x24f521 = new MessageChannel();
|
|
131
|
+
this["_port"] = _0x24f521[_0xe917b4(410)], _0x2ee57a[_0xe917b4(418)](sendMessage, this["_globalObject"], { "endpoint": this[_0xe917b4(397)] }, [_0x24f521[_0xe917b4(429)]]);
|
|
116
132
|
}
|
|
117
133
|
}
|
|
118
134
|
class MessageChannelServerTransport extends MessageChannelTransport {
|
|
119
|
-
constructor(
|
|
120
|
-
const
|
|
121
|
-
return
|
|
122
|
-
}, "
|
|
123
|
-
return
|
|
135
|
+
constructor(_0x3de1c8, _0x3c4f19 = getGlobalObject()) {
|
|
136
|
+
const _0x2eab2a = _0x4f2826, _0x26e754 = _0x4f2826, _0x496337 = { "HITdC": function(_0xf4906b, _0x545503) {
|
|
137
|
+
return _0xf4906b === _0x545503;
|
|
138
|
+
}, "QdDxM": function(_0xe02af1) {
|
|
139
|
+
return _0xe02af1();
|
|
140
|
+
}, "jowPp": function(_0x44b8f3, _0x17adcb, _0xc8cd9d) {
|
|
141
|
+
return _0x44b8f3(_0x17adcb, _0xc8cd9d);
|
|
124
142
|
} };
|
|
125
|
-
super(), this[
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
143
|
+
super(), this[_0x2eab2a(397)] = _0x3de1c8, this[_0x26e754(388)] = _0x3c4f19, this[_0x26e754(416)] = new Promise((_0x1e1df9) => {
|
|
144
|
+
const _0x5d87de = _0x2eab2a, _0xb8f004 = { "XlglK": function(_0xfd91d5, _0x4e700d) {
|
|
145
|
+
return _0x496337["HITdC"](_0xfd91d5, _0x4e700d);
|
|
146
|
+
}, "pXlad": function(_0x35325b) {
|
|
147
|
+
return _0x496337["QdDxM"](_0x35325b);
|
|
148
|
+
} };
|
|
149
|
+
_0x496337[_0x5d87de(427)](setMessageHandler, this["_globalObject"], (_0x594651) => {
|
|
150
|
+
const _0x598787 = _0x5d87de, _0x338e8d = _0x5d87de;
|
|
151
|
+
_0x594651[_0x598787(412)] && _0xb8f004["XlglK"](_0x594651["data"][_0x338e8d(396)], this["_endpoint"]) && (this[_0x598787(422)] = _0x594651[_0x338e8d(430)][122 * -38 + 1600 + -1518 * -2], _0xb8f004["pXlad"](_0x1e1df9));
|
|
130
152
|
});
|
|
131
153
|
});
|
|
132
154
|
}
|
|
133
155
|
async ["listen"]() {
|
|
134
|
-
|
|
135
|
-
return this[_0x5cffe3(432)];
|
|
156
|
+
return this["_listen"];
|
|
136
157
|
}
|
|
137
158
|
}
|
|
138
|
-
function
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
159
|
+
function _0xf7c7() {
|
|
160
|
+
const _0x217378 = ["message", "close", "NZmUq", "177464iLQCGm", "endpoint", "_endpoint", "FPOYW", "EoBZE", "3022630ngzRBs", "start", "pTvSc", "272809yMhhPJ", "authInfo", "ktWqD", "21849KofsKk", "vQYJZ", "onclose", "mkHJS", "port1", "22dUTKmE", "data", "608229RXNlUs", "undefined", "stringify", "_listen", "onmessage", "lSpBh", "8FmlYyF", "XwdDB", "cHbAW", "_port", "postMessage", "kFtNB", "72572mbPnfL", "689424jqaGZE", "jowPp", "extra", "port2", "ports", "onerror", "Fzdib", "mkuHv", "addEventListener", "55juYkZZ", "_globalObject", "eOzBp", "ogKey", "return this"];
|
|
161
|
+
_0xf7c7 = function() {
|
|
162
|
+
return _0x217378;
|
|
163
|
+
};
|
|
164
|
+
return _0xf7c7();
|
|
165
|
+
}
|
|
166
|
+
function _0xad7a(_0x5c8efe, _0x17336f) {
|
|
167
|
+
const _0x4b62f0 = _0xf7c7();
|
|
168
|
+
return _0xad7a = function(_0x222a68, _0x35aa14) {
|
|
169
|
+
_0x222a68 = _0x222a68 - (9175 + 8052 + 1 * -16844);
|
|
170
|
+
let _0x4cf37b = _0x4b62f0[_0x222a68];
|
|
171
|
+
return _0x4cf37b;
|
|
172
|
+
}, _0xad7a(_0x5c8efe, _0x17336f);
|
|
145
173
|
}
|
|
146
174
|
const createTransportPair = () => {
|
|
147
|
-
const
|
|
148
|
-
return [new MessageChannelTransport(
|
|
175
|
+
const _0x4bcc62 = new MessageChannel();
|
|
176
|
+
return [new MessageChannelTransport(_0x4bcc62["port1"]), new MessageChannelTransport(_0x4bcc62["port2"])];
|
|
149
177
|
};
|
|
150
|
-
(function(
|
|
151
|
-
const
|
|
178
|
+
(function(_0x3d7f1e, _0xfc81c8) {
|
|
179
|
+
const _0x276c7b = _0x21a3, _0x2dfe35 = _0x21a3, _0x234d86 = _0x3d7f1e();
|
|
152
180
|
while (!![]) {
|
|
153
181
|
try {
|
|
154
|
-
const
|
|
155
|
-
if (
|
|
156
|
-
else
|
|
157
|
-
} catch (
|
|
158
|
-
|
|
182
|
+
const _0x380f07 = parseInt(_0x276c7b(452)) / (-9341 * 1 + 3580 + 5762) * (parseInt(_0x2dfe35(441)) / (-6775 + 1161 + 16 * 351)) + parseInt(_0x2dfe35(434)) / (-4159 + -9100 + -349 * -38) * (-parseInt(_0x2dfe35(418)) / (6 * -1155 + 1020 * 9 + 2246 * -1)) + parseInt(_0x276c7b(459)) / (-2939 * -1 + -7622 + 4688) + parseInt(_0x276c7b(482)) / (8451 * 1 + 426 * 14 + -14409) * (-parseInt(_0x276c7b(479)) / (8180 + 7314 + -17 * 911)) + -parseInt(_0x276c7b(458)) / (6370 + -4744 + -1618) * (parseInt(_0x276c7b(457)) / (10 * 983 + 2949 * -3 + -487 * 2)) + -parseInt(_0x2dfe35(416)) / (-1 * -8615 + 9674 + -18279) + -parseInt(_0x276c7b(450)) / (-9359 + 3829 + 5541) * (-parseInt(_0x276c7b(433)) / (6146 + -143 * 39 + 1 * -557));
|
|
183
|
+
if (_0x380f07 === _0xfc81c8) break;
|
|
184
|
+
else _0x234d86["push"](_0x234d86["shift"]());
|
|
185
|
+
} catch (_0x1d5794) {
|
|
186
|
+
_0x234d86["push"](_0x234d86["shift"]());
|
|
159
187
|
}
|
|
160
188
|
}
|
|
161
|
-
})(
|
|
162
|
-
const forwardServerRequest = async (
|
|
189
|
+
})(_0x3610, -411935 * 1 + 228107 + 208149 * 2);
|
|
190
|
+
const forwardServerRequest = async (_0x1da138, _0x46e2a5, _0xa7e9d) => {
|
|
163
191
|
var _a;
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
const
|
|
167
|
-
let
|
|
168
|
-
switch (
|
|
169
|
-
case
|
|
170
|
-
|
|
192
|
+
const _0x334ed0 = _0x21a3, _0x4f511c = _0x21a3, _0x249fa5 = {};
|
|
193
|
+
_0x249fa5["VRyiJ"] = "tools/list", _0x249fa5["VkPYu"] = "tools/call", _0x249fa5[_0x334ed0(475)] = _0x334ed0(411), _0x249fa5["SoCaE"] = "resources/templates/list", _0x249fa5[_0x4f511c(484)] = "resources/read", _0x249fa5[_0x334ed0(461)] = "prompts/get", _0x249fa5["srIIC"] = _0x4f511c(477), _0x249fa5[_0x4f511c(436)] = _0x4f511c(478), _0x249fa5[_0x4f511c(442)] = _0x334ed0(437), _0x249fa5["dEmVs"] = _0x334ed0(465);
|
|
194
|
+
const _0x472708 = _0x249fa5, { id: _0x467a84, method: _0x866073, params: _0x4698ee } = _0xa7e9d;
|
|
195
|
+
let _0x413eb6 = {};
|
|
196
|
+
switch (_0x866073) {
|
|
197
|
+
case _0x472708["VRyiJ"]:
|
|
198
|
+
_0x413eb6 = await _0x46e2a5["listTools"](_0x4698ee);
|
|
171
199
|
break;
|
|
172
|
-
case
|
|
173
|
-
|
|
200
|
+
case _0x472708["VkPYu"]:
|
|
201
|
+
_0x413eb6 = await _0x46e2a5["callTool"](_0x4698ee);
|
|
174
202
|
break;
|
|
175
|
-
case
|
|
176
|
-
|
|
203
|
+
case _0x472708["fgMSD"]:
|
|
204
|
+
_0x413eb6 = await _0x46e2a5["listResources"](_0x4698ee);
|
|
177
205
|
break;
|
|
178
|
-
case
|
|
179
|
-
|
|
206
|
+
case _0x472708[_0x4f511c(466)]:
|
|
207
|
+
_0x413eb6 = await _0x46e2a5["listResourceTemplates"](_0x4698ee);
|
|
180
208
|
break;
|
|
181
|
-
case
|
|
182
|
-
|
|
209
|
+
case _0x472708["sthgI"]:
|
|
210
|
+
_0x413eb6 = await _0x46e2a5[_0x334ed0(455)](_0x4698ee);
|
|
183
211
|
break;
|
|
184
|
-
case
|
|
185
|
-
|
|
212
|
+
case _0x4f511c(486):
|
|
213
|
+
_0x413eb6 = await _0x46e2a5["subscribeResource"](_0x4698ee);
|
|
186
214
|
break;
|
|
187
|
-
case
|
|
188
|
-
|
|
215
|
+
case _0x334ed0(410):
|
|
216
|
+
_0x413eb6 = await _0x46e2a5["unsubscribeResource"](_0x4698ee);
|
|
189
217
|
break;
|
|
190
|
-
case
|
|
191
|
-
|
|
218
|
+
case _0x472708[_0x4f511c(461)]:
|
|
219
|
+
_0x413eb6 = await _0x46e2a5[_0x4f511c(414)](_0x4698ee);
|
|
192
220
|
break;
|
|
193
|
-
case
|
|
194
|
-
|
|
221
|
+
case _0x472708[_0x334ed0(412)]:
|
|
222
|
+
_0x413eb6 = await _0x46e2a5[_0x334ed0(491)](_0x4698ee);
|
|
195
223
|
break;
|
|
196
|
-
case
|
|
197
|
-
|
|
224
|
+
case _0x472708[_0x334ed0(436)]:
|
|
225
|
+
_0x413eb6 = await _0x46e2a5[_0x334ed0(478)]();
|
|
198
226
|
break;
|
|
199
|
-
case
|
|
200
|
-
|
|
227
|
+
case _0x472708["kkNqg"]:
|
|
228
|
+
_0x413eb6 = await _0x46e2a5["complete"](_0x4698ee);
|
|
201
229
|
break;
|
|
202
|
-
case
|
|
203
|
-
|
|
230
|
+
case _0x334ed0(464):
|
|
231
|
+
_0x413eb6 = await _0x46e2a5["setLoggingLevel"](_0x4698ee == null ? void 0 : _0x4698ee[_0x4f511c(443)]);
|
|
204
232
|
break;
|
|
205
233
|
}
|
|
206
|
-
const
|
|
207
|
-
|
|
208
|
-
}, forwardClientRequest = async (
|
|
234
|
+
const _0x58de11 = {};
|
|
235
|
+
_0x58de11["result"] = _0x413eb6, _0x58de11["jsonrpc"] = _0x472708[_0x4f511c(472)], _0x58de11["id"] = _0x467a84, await ((_a = _0x1da138 == null ? void 0 : _0x1da138[_0x4f511c(488)]) == null ? void 0 : _a[_0x334ed0(460)](_0x58de11));
|
|
236
|
+
}, forwardClientRequest = async (_0x28a0ac, _0x338cef, _0x40baf5) => {
|
|
209
237
|
var _a;
|
|
210
|
-
const
|
|
211
|
-
|
|
212
|
-
const
|
|
213
|
-
let
|
|
214
|
-
switch (
|
|
215
|
-
case
|
|
216
|
-
const
|
|
217
|
-
|
|
238
|
+
const _0x5efcdf = _0x21a3, _0x450048 = _0x21a3, _0x2c33ce = {};
|
|
239
|
+
_0x2c33ce[_0x5efcdf(487)] = _0x450048(462), _0x2c33ce["ypHTC"] = "ping", _0x2c33ce["fPExS"] = _0x5efcdf(465);
|
|
240
|
+
const _0x319e5f = _0x2c33ce, { id: _0x70260b, method: _0x3f464d, params: _0x362734 } = _0x40baf5;
|
|
241
|
+
let _0xc56c52 = {};
|
|
242
|
+
switch (_0x3f464d) {
|
|
243
|
+
case "roots/list":
|
|
244
|
+
const _0x408740 = {};
|
|
245
|
+
_0x408740["method"] = _0x3f464d, _0x408740[_0x450048(446)] = _0x362734, _0xc56c52 = await _0x338cef[_0x5efcdf(469)](_0x408740, ListRootsResultSchema);
|
|
218
246
|
break;
|
|
219
|
-
case
|
|
220
|
-
const
|
|
221
|
-
|
|
247
|
+
case "sampling/createMessage":
|
|
248
|
+
const _0x14dd4f = {};
|
|
249
|
+
_0x14dd4f[_0x5efcdf(481)] = _0x3f464d, _0x14dd4f[_0x5efcdf(446)] = _0x362734, _0xc56c52 = await _0x338cef["request"](_0x14dd4f, CreateMessageResultSchema);
|
|
222
250
|
break;
|
|
223
|
-
case
|
|
224
|
-
const
|
|
225
|
-
|
|
251
|
+
case _0x319e5f[_0x5efcdf(487)]:
|
|
252
|
+
const _0x5991f6 = {};
|
|
253
|
+
_0x5991f6["method"] = _0x3f464d, _0x5991f6[_0x450048(446)] = _0x362734, _0xc56c52 = await _0x338cef["request"](_0x5991f6, ElicitResultSchema);
|
|
226
254
|
break;
|
|
227
|
-
case
|
|
228
|
-
const
|
|
229
|
-
|
|
255
|
+
case _0x319e5f["ypHTC"]:
|
|
256
|
+
const _0x41ab78 = {};
|
|
257
|
+
_0x41ab78["method"] = _0x3f464d, _0xc56c52 = await _0x338cef["request"](_0x41ab78, EmptyResultSchema);
|
|
230
258
|
break;
|
|
231
259
|
}
|
|
232
|
-
const
|
|
233
|
-
return
|
|
260
|
+
const _0x5e6d17 = {};
|
|
261
|
+
return _0x5e6d17["result"] = _0xc56c52, _0x5e6d17["jsonrpc"] = _0x319e5f["fPExS"], _0x5e6d17["id"] = _0x70260b, await ((_a = _0x28a0ac == null ? void 0 : _0x28a0ac["transport"]) == null ? void 0 : _a["send"](_0x5e6d17)), _0xc56c52;
|
|
234
262
|
};
|
|
235
|
-
|
|
236
|
-
const
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
263
|
+
function _0x21a3(_0x59a0be, _0x1661dd) {
|
|
264
|
+
const _0x4be0a9 = _0x3610();
|
|
265
|
+
return _0x21a3 = function(_0x137762, _0x29cfcd) {
|
|
266
|
+
_0x137762 = _0x137762 - (-71 * 113 + 4 * -2344 + -17809 * -1);
|
|
267
|
+
let _0x1f8d56 = _0x4be0a9[_0x137762];
|
|
268
|
+
return _0x1f8d56;
|
|
269
|
+
}, _0x21a3(_0x59a0be, _0x1661dd);
|
|
270
|
+
}
|
|
271
|
+
const forwardServerOnRequest = (_0x329455, _0x16d5d5) => {
|
|
272
|
+
const _0x5a2100 = _0x21a3, _0x4a22d9 = _0x21a3, _0x577008 = { "vYlhn": function(_0x330259, _0x50ff20) {
|
|
273
|
+
return _0x330259 === _0x50ff20;
|
|
274
|
+
}, "DhPFX": _0x5a2100(470), "NYVNC": function(_0x5732a5, _0x76d95c, _0x228f7f, _0x207877) {
|
|
275
|
+
return _0x5732a5(_0x76d95c, _0x228f7f, _0x207877);
|
|
276
|
+
}, "yfZbw": "2.0" }, _0x516d92 = _0x329455["_onrequest"];
|
|
277
|
+
_0x329455[_0x4a22d9(463)] = async (_0x5a04f0, _0xbef58f) => {
|
|
242
278
|
var _a, _b, _c, _d, _e;
|
|
243
|
-
const
|
|
279
|
+
const _0x54051b = _0x4a22d9, _0x80d773 = _0x5a2100, { id: _0x32bf38, method: _0x463a73 } = _0x5a04f0;
|
|
244
280
|
try {
|
|
245
|
-
|
|
246
|
-
} catch (
|
|
247
|
-
const { code:
|
|
281
|
+
_0x577008[_0x54051b(451)](_0x463a73, _0x577008["DhPFX"]) ? await _0x516d92["call"](_0x329455, _0x5a04f0, _0xbef58f) : await _0x577008[_0x80d773(474)](forwardServerRequest, _0x329455, _0x16d5d5, _0x5a04f0);
|
|
282
|
+
} catch (_0x508f60) {
|
|
283
|
+
const { code: _0x214832, message: _0xfed545, data: _0x33967a } = _0x508f60;
|
|
248
284
|
try {
|
|
249
|
-
if (
|
|
250
|
-
const
|
|
251
|
-
|
|
252
|
-
const
|
|
253
|
-
|
|
254
|
-
} else (_c = (_b =
|
|
255
|
-
} catch (
|
|
256
|
-
(_e = (_d =
|
|
285
|
+
if (_0x214832) {
|
|
286
|
+
const _0x15f047 = {};
|
|
287
|
+
_0x15f047[_0x80d773(485)] = _0x214832, _0x15f047[_0x54051b(422)] = _0xfed545, _0x15f047["data"] = _0x33967a;
|
|
288
|
+
const _0x567f35 = {};
|
|
289
|
+
_0x567f35[_0x80d773(448)] = _0x15f047, _0x567f35["jsonrpc"] = _0x577008[_0x54051b(417)], _0x567f35["id"] = _0x32bf38, await ((_a = _0x329455 == null ? void 0 : _0x329455["transport"]) == null ? void 0 : _a[_0x80d773(460)](_0x567f35));
|
|
290
|
+
} else (_c = (_b = _0x329455 == null ? void 0 : _0x329455["transport"]) == null ? void 0 : _b["onerror"]) == null ? void 0 : _c.call(_b, _0x508f60);
|
|
291
|
+
} catch (_0x541ca6) {
|
|
292
|
+
(_e = (_d = _0x329455 == null ? void 0 : _0x329455["transport"]) == null ? void 0 : _d["onerror"]) == null ? void 0 : _e.call(_d, _0x541ca6);
|
|
257
293
|
}
|
|
258
294
|
}
|
|
259
295
|
};
|
|
260
296
|
};
|
|
261
|
-
const forwardServerOnNotification = (
|
|
262
|
-
const
|
|
263
|
-
|
|
264
|
-
return
|
|
265
|
-
},
|
|
266
|
-
const
|
|
267
|
-
|
|
297
|
+
const forwardServerOnNotification = (_0x59fb06, _0xc053ae) => {
|
|
298
|
+
const _0xa34383 = _0x21a3, _0x5b22bf = _0x21a3, _0x4c9779 = {};
|
|
299
|
+
_0x4c9779[_0xa34383(476)] = _0xa34383(439), _0x4c9779[_0xa34383(431)] = function(_0x473631, _0x5f30f9) {
|
|
300
|
+
return _0x473631 !== _0x5f30f9;
|
|
301
|
+
}, _0x4c9779["UPdQt"] = "notifications/cancelled";
|
|
302
|
+
const _0x1bd652 = _0x4c9779;
|
|
303
|
+
_0x59fb06[_0xa34383(421)] = async (_0xa54d77) => {
|
|
268
304
|
var _a, _b;
|
|
269
|
-
const
|
|
270
|
-
if (
|
|
271
|
-
await
|
|
272
|
-
} catch (
|
|
273
|
-
(_b = (_a =
|
|
305
|
+
const _0x2e1bc3 = _0xa34383, _0x535235 = _0x5b22bf, { method: _0x33bd7f, params: _0x53a86f } = _0xa54d77;
|
|
306
|
+
if (_0x33bd7f !== _0x1bd652[_0x2e1bc3(476)] && (_0x1bd652["QWYMz"](_0x33bd7f, _0x1bd652["UPdQt"]) || (_0x53a86f == null ? void 0 : _0x53a86f[_0x535235(490)]))) try {
|
|
307
|
+
await _0xc053ae[_0x2e1bc3(445)](_0xa54d77);
|
|
308
|
+
} catch (_0x113034) {
|
|
309
|
+
(_b = (_a = _0x59fb06 == null ? void 0 : _0x59fb06[_0x2e1bc3(488)]) == null ? void 0 : _a[_0x2e1bc3(480)]) == null ? void 0 : _b.call(_a, _0x113034);
|
|
274
310
|
}
|
|
275
311
|
};
|
|
276
312
|
};
|
|
277
|
-
const forwardClientOnRequest = (
|
|
313
|
+
const forwardClientOnRequest = (_0x30f928, _0x3f46c8) => async (_0x31962c) => {
|
|
278
314
|
var _a, _b, _c, _d, _e;
|
|
279
|
-
const
|
|
280
|
-
|
|
281
|
-
|
|
315
|
+
const _0x356ff8 = _0x21a3, _0x26811b = _0x21a3, _0x1cab49 = { "TJhyV": function(_0x18467a, _0x4aa001, _0x48eb92, _0x5965f6) {
|
|
316
|
+
return _0x18467a(_0x4aa001, _0x48eb92, _0x5965f6);
|
|
317
|
+
}, "MMNTY": _0x356ff8(465) };
|
|
282
318
|
try {
|
|
283
|
-
return await forwardClientRequest
|
|
284
|
-
} catch (
|
|
285
|
-
const { code:
|
|
319
|
+
return await _0x1cab49["TJhyV"](forwardClientRequest, _0x30f928, _0x3f46c8, _0x31962c);
|
|
320
|
+
} catch (_0x29fecb) {
|
|
321
|
+
const { code: _0x3da4f4, message: _0x3bdceb, data: _0x3744ea } = _0x29fecb;
|
|
286
322
|
try {
|
|
287
|
-
if (
|
|
288
|
-
const
|
|
289
|
-
|
|
290
|
-
const
|
|
291
|
-
|
|
292
|
-
} else (_c = (_b =
|
|
293
|
-
} catch (
|
|
294
|
-
(_e = (_d =
|
|
323
|
+
if (_0x3da4f4) {
|
|
324
|
+
const _0x3e55f6 = {};
|
|
325
|
+
_0x3e55f6["code"] = _0x3da4f4, _0x3e55f6[_0x356ff8(422)] = _0x3bdceb, _0x3e55f6[_0x26811b(419)] = _0x3744ea;
|
|
326
|
+
const _0x290f0d = {};
|
|
327
|
+
_0x290f0d[_0x356ff8(448)] = _0x3e55f6, _0x290f0d[_0x356ff8(424)] = _0x1cab49["MMNTY"], _0x290f0d["id"] = _0x31962c["id"], await ((_a = _0x30f928 == null ? void 0 : _0x30f928["transport"]) == null ? void 0 : _a[_0x26811b(460)](_0x290f0d));
|
|
328
|
+
} else (_c = (_b = _0x30f928 == null ? void 0 : _0x30f928["transport"]) == null ? void 0 : _b[_0x356ff8(480)]) == null ? void 0 : _c.call(_b, _0x29fecb);
|
|
329
|
+
} catch (_0x1c8062) {
|
|
330
|
+
(_e = (_d = _0x30f928 == null ? void 0 : _0x30f928[_0x356ff8(488)]) == null ? void 0 : _d["onerror"]) == null ? void 0 : _e.call(_d, _0x1c8062);
|
|
295
331
|
}
|
|
296
332
|
}
|
|
297
333
|
};
|
|
298
|
-
const forwardClientOnNotification = (
|
|
334
|
+
const forwardClientOnNotification = (_0x320cea, _0x3f25ca) => async (_0x4767e2) => {
|
|
299
335
|
var _a, _b, _c;
|
|
300
|
-
const
|
|
301
|
-
|
|
302
|
-
return
|
|
303
|
-
},
|
|
304
|
-
const
|
|
305
|
-
if (
|
|
306
|
-
const
|
|
307
|
-
|
|
308
|
-
} catch (
|
|
309
|
-
(_c = (_b =
|
|
336
|
+
const _0x1d24fb = _0x21a3, _0x27d938 = _0x21a3, _0x213b9b = {};
|
|
337
|
+
_0x213b9b["xmcLM"] = function(_0x12d227, _0x276a63) {
|
|
338
|
+
return _0x12d227 !== _0x276a63;
|
|
339
|
+
}, _0x213b9b["xSWLt"] = "notifications/initialized", _0x213b9b[_0x1d24fb(420)] = _0x27d938(453);
|
|
340
|
+
const _0x1e4b70 = _0x213b9b, { method: _0x4711e2, params: _0x108731 } = _0x4767e2;
|
|
341
|
+
if (_0x1e4b70["xmcLM"](_0x4711e2, _0x1e4b70["xSWLt"]) && (_0x1e4b70["xmcLM"](_0x4711e2, _0x1e4b70[_0x27d938(420)]) || (_0x108731 == null ? void 0 : _0x108731[_0x27d938(490)]))) try {
|
|
342
|
+
const _0x8005f4 = { ..._0x4767e2 };
|
|
343
|
+
_0x8005f4["jsonrpc"] = _0x1d24fb(465), await ((_a = _0x3f25ca == null ? void 0 : _0x3f25ca[_0x1d24fb(488)]) == null ? void 0 : _a["send"](_0x8005f4));
|
|
344
|
+
} catch (_0x32056a) {
|
|
345
|
+
(_c = (_b = _0x320cea == null ? void 0 : _0x320cea["transport"]) == null ? void 0 : _b["onerror"]) == null ? void 0 : _c.call(_b, _0x32056a);
|
|
310
346
|
}
|
|
311
347
|
};
|
|
312
|
-
function
|
|
313
|
-
const
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
}, _0x436f(_0x3eb3da, _0x246fe0);
|
|
348
|
+
function _0x3610() {
|
|
349
|
+
const _0x541b55 = ["JMaxV", "cNneM", "completion/complete", "addResponseListener", "notifications/initialized", "call", "570686biwZQB", "kkNqg", "level", "addNotificationListener", "notification", "params", "addListener", "error", "_onresponse", "164054EGcqjc", "vYlhn", "1PDRdga", "notifications/cancelled", "_requestHandlers", "readResource", "FjTAY", "1782ueLDLp", "4496TJFZWc", "1767765yPcVQJ", "send", "HefvS", "elicitation/create", "_onrequest", "logging/setLevel", "2.0", "SoCaE", "HucXo", "function", "request", "initialize", "push", "dEmVs", "addRequestListener", "NYVNC", "fgMSD", "CSjwA", "prompts/list", "ping", "35pZrnNj", "onerror", "method", "238086YifXhM", "get", "sthgI", "code", "resources/subscribe", "sttJM", "transport", "jsmFN", "forward", "listPrompts", "resources/unsubscribe", "resources/list", "srIIC", "originalOnResponse", "getPrompt", "indexOf", "3653560KcjkMk", "yfZbw", "4SAWlvk", "data", "rCDHw", "_onnotification", "message", "UlqiY", "jsonrpc", "yCyFn", "clearNotificationListener", "VWsxO", "name", "UynHf", "length", "QWYMz", "fallbackRequestHandler", "492jTClKn", "1028589HsbHVQ"];
|
|
350
|
+
_0x3610 = function() {
|
|
351
|
+
return _0x541b55;
|
|
352
|
+
};
|
|
353
|
+
return _0x3610();
|
|
319
354
|
}
|
|
320
|
-
const forwardClientOnResponse = (
|
|
355
|
+
const forwardClientOnResponse = (_0x52736d, _0x58c3cf) => async (_0xd20f53) => {
|
|
321
356
|
var _a, _b, _c, _d, _e, _f;
|
|
322
|
-
const
|
|
323
|
-
|
|
324
|
-
const
|
|
357
|
+
const _0xf4b324 = _0x21a3, _0x2956df = _0x21a3, _0x4964bc = {};
|
|
358
|
+
_0x4964bc["kSvAZ"] = _0xf4b324(465);
|
|
359
|
+
const _0x4c53ce = _0x4964bc;
|
|
325
360
|
try {
|
|
326
|
-
await ((_a =
|
|
327
|
-
} catch (
|
|
328
|
-
const { code:
|
|
361
|
+
await ((_a = _0x58c3cf == null ? void 0 : _0x58c3cf[_0x2956df(488)]) == null ? void 0 : _a[_0x2956df(460)](_0xd20f53));
|
|
362
|
+
} catch (_0x1408a9) {
|
|
363
|
+
const { code: _0x512075, message: _0xe99b85, data: _0x347365 } = _0x1408a9;
|
|
329
364
|
try {
|
|
330
|
-
if (
|
|
331
|
-
const
|
|
332
|
-
|
|
333
|
-
const
|
|
334
|
-
|
|
335
|
-
} else (_d = (_c =
|
|
336
|
-
} catch (
|
|
337
|
-
(_f = (_e =
|
|
365
|
+
if (_0x512075) {
|
|
366
|
+
const _0x6472f2 = {};
|
|
367
|
+
_0x6472f2["code"] = _0x512075, _0x6472f2["message"] = _0xe99b85, _0x6472f2["data"] = _0x347365;
|
|
368
|
+
const _0x41cab2 = {};
|
|
369
|
+
_0x41cab2["error"] = _0x6472f2, _0x41cab2[_0x2956df(424)] = _0x4c53ce["kSvAZ"], _0x41cab2["id"] = _0xd20f53["id"], await ((_b = _0x52736d == null ? void 0 : _0x52736d["transport"]) == null ? void 0 : _b["send"](_0x41cab2));
|
|
370
|
+
} else (_d = (_c = _0x52736d == null ? void 0 : _0x52736d["transport"]) == null ? void 0 : _c[_0xf4b324(480)]) == null ? void 0 : _d.call(_c, _0x1408a9);
|
|
371
|
+
} catch (_0x1e60d2) {
|
|
372
|
+
(_f = (_e = _0x52736d == null ? void 0 : _0x52736d[_0xf4b324(488)]) == null ? void 0 : _e[_0x2956df(480)]) == null ? void 0 : _f.call(_e, _0x1e60d2);
|
|
338
373
|
}
|
|
339
374
|
}
|
|
340
375
|
};
|
|
341
376
|
const createHandleListener = () => {
|
|
342
|
-
const
|
|
343
|
-
return
|
|
344
|
-
}, "
|
|
345
|
-
return
|
|
346
|
-
}, "
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
const _0x1e8724 = [];
|
|
352
|
-
for (const _0x1264b7 of _0x5de2ad) {
|
|
377
|
+
const _0xac9689 = _0x21a3, _0x1107c8 = { "rgPZO": function(_0x5d043a, _0x1def76) {
|
|
378
|
+
return _0x5d043a !== _0x1def76;
|
|
379
|
+
}, "VWsxO": function(_0x2ade8e, _0xecf54) {
|
|
380
|
+
return _0x2ade8e(_0xecf54);
|
|
381
|
+
}, "FjTAY": "function" }, _0x2eb4ef = [], _0x4b0952 = (_0x496b22, _0x2a3c52) => {
|
|
382
|
+
const _0x4de46f = _0x21a3;
|
|
383
|
+
if (_0x2a3c52) {
|
|
384
|
+
const _0x568d5d = [];
|
|
385
|
+
for (const _0x3baad7 of _0x2eb4ef) {
|
|
353
386
|
try {
|
|
354
|
-
|
|
387
|
+
_0x568d5d["push"](_0x3baad7(_0x496b22, _0x2a3c52));
|
|
355
388
|
} catch {
|
|
356
389
|
}
|
|
357
390
|
}
|
|
358
|
-
for (const
|
|
359
|
-
if (
|
|
391
|
+
for (const _0x5f4b66 of _0x568d5d) {
|
|
392
|
+
if (_0x1107c8["rgPZO"](_0x5f4b66, null)) return _0x5f4b66;
|
|
360
393
|
}
|
|
361
|
-
} else for (const
|
|
394
|
+
} else for (const _0xbf6e37 of _0x2eb4ef) {
|
|
362
395
|
try {
|
|
363
|
-
|
|
396
|
+
_0x1107c8[_0x4de46f(427)](_0xbf6e37, _0x496b22);
|
|
364
397
|
} catch {
|
|
365
398
|
}
|
|
366
399
|
}
|
|
367
|
-
},
|
|
368
|
-
const
|
|
369
|
-
|
|
370
|
-
},
|
|
371
|
-
const
|
|
372
|
-
|
|
373
|
-
},
|
|
374
|
-
const
|
|
375
|
-
|
|
376
|
-
},
|
|
377
|
-
return
|
|
378
|
-
}, setClientListener = (
|
|
379
|
-
const
|
|
380
|
-
return
|
|
381
|
-
}, "
|
|
382
|
-
return
|
|
400
|
+
}, _0x55a910 = (_0x173206) => {
|
|
401
|
+
const _0xcd10e3 = _0x21a3, _0x1d3d8a = _0x21a3;
|
|
402
|
+
typeof _0x173206 === _0x1107c8[_0xcd10e3(456)] && !_0x2eb4ef["includes"](_0x173206) && _0x2eb4ef[_0x1d3d8a(471)](_0x173206);
|
|
403
|
+
}, _0x5bbfbf = (_0x5069e7) => {
|
|
404
|
+
const _0x26df23 = _0x21a3, _0x270444 = _0x2eb4ef[_0x26df23(415)](_0x5069e7);
|
|
405
|
+
_0x270444 !== -1 && _0x2eb4ef["splice"](_0x270444, -9598 + -7993 + 6 * 2932);
|
|
406
|
+
}, _0x5e8325 = () => {
|
|
407
|
+
const _0x1c5cd6 = _0x21a3;
|
|
408
|
+
_0x2eb4ef[_0x1c5cd6(430)] = -505 * 7 + 1322 + 2213;
|
|
409
|
+
}, _0x192b11 = {};
|
|
410
|
+
return _0x192b11["handleListener"] = _0x4b0952, _0x192b11[_0xac9689(447)] = _0x55a910, _0x192b11["removeListener"] = _0x5bbfbf, _0x192b11["clearListener"] = _0x5e8325, _0x192b11;
|
|
411
|
+
}, setClientListener = (_0x3f2a4b) => {
|
|
412
|
+
const _0x2b0dcf = _0x21a3, _0x59aa79 = _0x21a3, _0x1dbe74 = { "UlqiY": function(_0x29f7e1) {
|
|
413
|
+
return _0x29f7e1();
|
|
414
|
+
}, "jsmFN": function(_0x491d18) {
|
|
415
|
+
return _0x491d18();
|
|
383
416
|
} };
|
|
384
417
|
{
|
|
385
|
-
const { handleListener:
|
|
386
|
-
|
|
418
|
+
const { handleListener: _0x396f91, addListener: _0xd63d09, removeListener: _0x5219aa, clearListener: _0x2d1072 } = _0x1dbe74[_0x2b0dcf(423)](createHandleListener);
|
|
419
|
+
_0x3f2a4b["_onresponse"] = _0x396f91, _0x3f2a4b[_0x59aa79(438)] = _0xd63d09, _0x3f2a4b["removeResponseListener"] = _0x5219aa, _0x3f2a4b["clearResponseListener"] = _0x2d1072;
|
|
387
420
|
}
|
|
388
421
|
{
|
|
389
|
-
const { handleListener:
|
|
390
|
-
|
|
422
|
+
const { handleListener: _0x22f5be, addListener: _0x3da798, removeListener: _0x288ae5, clearListener: _0x351358 } = _0x1dbe74[_0x2b0dcf(489)](createHandleListener);
|
|
423
|
+
_0x3f2a4b[_0x2b0dcf(432)] = _0x22f5be, _0x3f2a4b[_0x59aa79(473)] = _0x3da798, _0x3f2a4b["removeRequestListener"] = _0x288ae5, _0x3f2a4b["clearRequestListener"] = _0x351358;
|
|
391
424
|
}
|
|
392
425
|
{
|
|
393
|
-
const { handleListener:
|
|
394
|
-
|
|
426
|
+
const { handleListener: _0x2ac8fa, addListener: _0x7c4ea0, removeListener: _0x5e1228, clearListener: _0x2230ce } = _0x1dbe74["jsmFN"](createHandleListener);
|
|
427
|
+
_0x3f2a4b["fallbackNotificationHandler"] = _0x2ac8fa, _0x3f2a4b[_0x2b0dcf(444)] = _0x7c4ea0, _0x3f2a4b["removeNotificationListener"] = _0x5e1228, _0x3f2a4b[_0x59aa79(426)] = _0x2230ce;
|
|
395
428
|
}
|
|
396
429
|
};
|
|
397
|
-
|
|
398
|
-
const
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
const
|
|
414
|
-
|
|
415
|
-
}), _0xef50a3["tqDZP"](typeof _0x392ad7, _0xef50a3[_0x2ff689(380)]) && _0xef50a3[_0x39ee68(397)](_0x392ad7), _0x4eae35[_0x2ff689(327)]((_0x4b3e63) => {
|
|
416
|
-
const { method: _0x52cc8d } = _0x4b3e63, _0x1d4650 = _0x28c085["get"](_0x52cc8d);
|
|
417
|
-
_0xef50a3["tqDZP"](typeof _0x1d4650, _0xef50a3["cjSoZ"]) && _0x1d4650(_0x4b3e63);
|
|
430
|
+
const initClientHandler = (_0x44fc4b, { beforeInit: _0x2f7bcf, afterInit: _0x3a8b46 } = {}) => {
|
|
431
|
+
const _0xd1a2a = _0x21a3, _0x2c5aa6 = _0x21a3, _0xd894da = { "HucXo": function(_0x4f3317, _0x48b59e) {
|
|
432
|
+
return _0x4f3317 === _0x48b59e;
|
|
433
|
+
}, "HicFO": _0xd1a2a(468), "JMaxV": function(_0x38cdf8) {
|
|
434
|
+
return _0x38cdf8();
|
|
435
|
+
}, "DclXr": function(_0x2d9c7c, _0x40079a) {
|
|
436
|
+
return _0x2d9c7c(_0x40079a);
|
|
437
|
+
}, "UynHf": function(_0xe96982, _0x5d6dbc) {
|
|
438
|
+
return _0xe96982 === _0x5d6dbc;
|
|
439
|
+
}, "yCyFn": function(_0x2d408b) {
|
|
440
|
+
return _0x2d408b();
|
|
441
|
+
} }, _0x2ed60f = new Map(_0x44fc4b["_notificationHandlers"]);
|
|
442
|
+
_0x44fc4b[_0xd1a2a(454)]["clear"](), _0x44fc4b["_notificationHandlers"]["clear"](), _0xd894da["HucXo"](typeof _0x2f7bcf, _0xd894da["HicFO"]) && _0xd894da[_0xd1a2a(435)](_0x2f7bcf), _0xd894da[_0xd1a2a(467)](_0x44fc4b[_0xd1a2a(449)][_0x2c5aa6(428)], _0xd1a2a(449)) && (_0x44fc4b[_0x2c5aa6(413)] = _0x44fc4b[_0x2c5aa6(449)]), _0xd894da["DclXr"](setClientListener, _0x44fc4b), _0x44fc4b[_0x2c5aa6(438)]((_0x2331a6) => {
|
|
443
|
+
const _0x34d91a = _0xd1a2a;
|
|
444
|
+
_0x44fc4b["originalOnResponse"][_0x34d91a(440)](_0x44fc4b, _0x2331a6);
|
|
445
|
+
}), _0xd894da[_0xd1a2a(429)](typeof _0x3a8b46, _0xd894da["HicFO"]) && _0xd894da[_0x2c5aa6(425)](_0x3a8b46), _0x44fc4b[_0x2c5aa6(444)]((_0x339f8e) => {
|
|
446
|
+
const _0x4a50fe = _0x2c5aa6, { method: _0x325e41 } = _0x339f8e, _0x11bd8a = _0x2ed60f[_0x4a50fe(483)](_0x325e41);
|
|
447
|
+
_0xd894da[_0x4a50fe(467)](typeof _0x11bd8a, "function") && _0x11bd8a(_0x339f8e);
|
|
418
448
|
});
|
|
419
449
|
};
|
|
420
|
-
const
|
|
421
|
-
(function(
|
|
422
|
-
const
|
|
450
|
+
const _0x580c11 = _0x3345;
|
|
451
|
+
(function(_0x478e44, _0xa6dc8a) {
|
|
452
|
+
const _0x25e00b = _0x3345, _0x47302c = _0x3345, _0x2eda2a = _0x478e44();
|
|
423
453
|
while (!![]) {
|
|
424
454
|
try {
|
|
425
|
-
const
|
|
426
|
-
if (
|
|
427
|
-
else
|
|
428
|
-
} catch (
|
|
429
|
-
|
|
455
|
+
const _0x494140 = parseInt(_0x25e00b(215)) / (886 + 503 * 15 + -8430) * (-parseInt(_0x47302c(217)) / (-8610 + 2472 + -6140 * -1)) + parseInt(_0x25e00b(216)) / (3238 * -1 + -3707 + 3474 * 2) + parseInt(_0x25e00b(210)) / (-37 * -228 + 1 * 8449 + -5627 * 3) * (parseInt(_0x47302c(223)) / (-7747 + -4788 + 1 * 12540)) + -parseInt(_0x47302c(214)) / (4967 + 1364 + -6325) * (parseInt(_0x47302c(220)) / (4 * 1044 + -3 * 1182 + -623)) + parseInt(_0x47302c(212)) / (-2957 * 3 + 1472 + -1 * -7407) * (parseInt(_0x25e00b(228)) / (-1937 + -1990 + 3936)) + parseInt(_0x25e00b(219)) / (-173 * 57 + -25 * 296 + 101 * 171) + parseInt(_0x25e00b(222)) / (-8629 + -58 * -157 + -466) * (parseInt(_0x25e00b(224)) / (-7707 + 181 * -29 + 12968));
|
|
456
|
+
if (_0x494140 === _0xa6dc8a) break;
|
|
457
|
+
else _0x2eda2a["push"](_0x2eda2a["shift"]());
|
|
458
|
+
} catch (_0x46fc95) {
|
|
459
|
+
_0x2eda2a["push"](_0x2eda2a["shift"]());
|
|
430
460
|
}
|
|
431
461
|
}
|
|
432
|
-
})(
|
|
433
|
-
|
|
434
|
-
const
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
return
|
|
439
|
-
},
|
|
462
|
+
})(_0x15b2, 995159 + -6 * -266138 + -1619768);
|
|
463
|
+
const randomUUID = () => {
|
|
464
|
+
const _0xb079cb = _0x3345, _0x528f08 = _0x3345, _0x5a8a43 = {};
|
|
465
|
+
_0x5a8a43["svuxn"] = function(_0x193cff, _0x4c5d10) {
|
|
466
|
+
return _0x193cff & _0x4c5d10;
|
|
467
|
+
}, _0x5a8a43["ZUPdr"] = function(_0x332e8b, _0x121e9f) {
|
|
468
|
+
return _0x332e8b === _0x121e9f;
|
|
469
|
+
}, _0x5a8a43[_0xb079cb(227)] = function(_0x255fbc, _0x2ab97f) {
|
|
470
|
+
return _0x255fbc === _0x2ab97f;
|
|
471
|
+
}, _0x5a8a43["SpRzi"] = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";
|
|
472
|
+
const _0x43115c = _0x5a8a43;
|
|
473
|
+
if (_0x43115c[_0x528f08(227)](typeof crypto, "object") && crypto[_0xb079cb(211)]) return crypto["randomUUID"]();
|
|
474
|
+
return _0x43115c["SpRzi"]["replace"](/[xy]/g, (_0x362ab3) => {
|
|
475
|
+
const _0x14d41e = _0xb079cb, _0x2776e = _0x43115c["svuxn"](crypto["getRandomValues"](new Uint8Array(-3798 + 8571 * -1 + 12370))[5599 + -7924 + -25 * -93], 46 * -149 + -1470 + 8339 * 1), _0x3ff335 = _0x43115c[_0x14d41e(225)](_0x362ab3, "x") ? _0x2776e : _0x43115c[_0x14d41e(209)](_0x2776e, 28 * -139 + 58 * -157 + -1 * -13001) | 813 * 10 + -3707 + 883 * -5;
|
|
476
|
+
return _0x3ff335["toString"](-1 * -1851 + 6493 + -8328);
|
|
477
|
+
});
|
|
478
|
+
}, randomBytes = (_0x4e1e74) => {
|
|
479
|
+
const _0x52a103 = _0x3345, _0x49e565 = _0x3345, _0x133a67 = new Uint8Array(_0x4e1e74);
|
|
480
|
+
return crypto[_0x52a103(221)](_0x133a67), Array[_0x49e565(218)](_0x133a67, (_0x268787) => _0x268787[_0x49e565(226)](39 * 181 + 4365 + 4 * -2852)["padStart"](7831 + 1119 + 2237 * -4, "0"))[_0x52a103(213)]("");
|
|
481
|
+
}, _0x5e2e0a = {};
|
|
482
|
+
_0x5e2e0a[_0x580c11(211)] = randomUUID, _0x5e2e0a["randomBytes"] = randomBytes;
|
|
483
|
+
function _0x3345(_0x7cf9, _0x178965) {
|
|
484
|
+
const _0x30367e = _0x15b2();
|
|
485
|
+
return _0x3345 = function(_0x5db3dc, _0x53b88a) {
|
|
486
|
+
_0x5db3dc = _0x5db3dc - (-7373 + 7187 * 1 + 395);
|
|
487
|
+
let _0x1b99a4 = _0x30367e[_0x5db3dc];
|
|
488
|
+
return _0x1b99a4;
|
|
489
|
+
}, _0x3345(_0x7cf9, _0x178965);
|
|
440
490
|
}
|
|
441
|
-
function
|
|
442
|
-
const
|
|
443
|
-
|
|
444
|
-
return
|
|
491
|
+
function _0x15b2() {
|
|
492
|
+
const _0x18a9ba = ["join", "2500590yHdCUG", "3CzpgOE", "219762yRRBUK", "592022JqIdxi", "from", "6033730pSHJFF", "28gKZiuO", "getRandomValues", "147169GUBreL", "5fFOMNB", "1140KVOWlq", "ZUPdr", "toString", "DBGzc", "45351XtLuDF", "svuxn", "9892WpQPGF", "randomUUID", "2504EaskHQ"];
|
|
493
|
+
_0x15b2 = function() {
|
|
494
|
+
return _0x18a9ba;
|
|
445
495
|
};
|
|
446
|
-
return
|
|
496
|
+
return _0x15b2();
|
|
447
497
|
}
|
|
448
|
-
|
|
449
|
-
const
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
return
|
|
454
|
-
},
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
return _0x2305bc["dHTfU"]["replace"](/[xy]/g, (_0x47a253) => {
|
|
460
|
-
const _0xee7adc = _0x503b55, _0x3ebe42 = _0x503b55, _0x3b82cf = _0x2305bc[_0xee7adc(392)](crypto[_0xee7adc(384)](new Uint8Array(-25 * -62 + 7113 + 2 * -4331))[741 * 2 + -1385 * -2 + 4252 * -1], 8648 + -107 * 62 + -1999), _0x5cd225 = _0x2305bc["suJHI"](_0x47a253, "x") ? _0x3b82cf : _0x2305bc[_0x3ebe42(386)](_0x3b82cf, -2516 + -1861 + 4 * 1095) | 5047 + 32 + 461 * -11;
|
|
461
|
-
return _0x5cd225["toString"](9449 + 4 * -461 + -7589);
|
|
462
|
-
});
|
|
463
|
-
}, randomBytes = (_0x2added) => {
|
|
464
|
-
const _0x3977c7 = _0x4f47, _0x2f0d95 = _0x4f47, _0x516c9f = new Uint8Array(_0x2added);
|
|
465
|
-
return crypto["getRandomValues"](_0x516c9f), Array[_0x3977c7(401)](_0x516c9f, (_0x145cf8) => _0x145cf8[_0x2f0d95(403)](-3 * 1739 + -6509 + 2 * 5871)[_0x3977c7(387)](6365 + 9124 + -15487, "0"))["join"]("");
|
|
466
|
-
}, _0xf24c8f = {};
|
|
467
|
-
_0xf24c8f[_0x1c80bf(391)] = randomUUID, _0xf24c8f[_0x53d80a(396)] = randomBytes;
|
|
468
|
-
const _0x4b5fcc = _0x47a7;
|
|
469
|
-
(function(_0x564ad7, _0x4857af) {
|
|
470
|
-
const _0x465eed = _0x47a7, _0xa45919 = _0x47a7, _0x1574ce = _0x564ad7();
|
|
498
|
+
function _0xd139(_0x296853, _0x37f015) {
|
|
499
|
+
const _0x5da840 = _0x3ca7();
|
|
500
|
+
return _0xd139 = function(_0x54e7ad, _0x50f639) {
|
|
501
|
+
_0x54e7ad = _0x54e7ad - (-1483 * 3 + -5564 + 20 * 513);
|
|
502
|
+
let _0x14a7dc = _0x5da840[_0x54e7ad];
|
|
503
|
+
return _0x14a7dc;
|
|
504
|
+
}, _0xd139(_0x296853, _0x37f015);
|
|
505
|
+
}
|
|
506
|
+
const _0x403f63 = _0xd139, _0x165645 = _0xd139;
|
|
507
|
+
(function(_0x1a9ffe, _0x259fb9) {
|
|
508
|
+
const _0x1f17e3 = _0xd139, _0x385b90 = _0xd139, _0x2090d1 = _0x1a9ffe();
|
|
471
509
|
while (!![]) {
|
|
472
510
|
try {
|
|
473
|
-
const
|
|
474
|
-
if (
|
|
475
|
-
else
|
|
476
|
-
} catch (
|
|
477
|
-
|
|
511
|
+
const _0x575940 = parseInt(_0x1f17e3(302)) / (483 * -9 + -8479 + 127 * 101) + -parseInt(_0x385b90(249)) / (-109 * -51 + 8949 + -14506) + -parseInt(_0x1f17e3(291)) / (155 * 4 + -7609 + -2 * -3496) + -parseInt(_0x1f17e3(292)) / (-4223 + 1 * -2293 + 6520) * (parseInt(_0x1f17e3(264)) / (-2453 * -1 + 2607 + -5055)) + -parseInt(_0x385b90(273)) / (5458 + -70 * -15 + -6502) * (parseInt(_0x1f17e3(266)) / (-1 * -739 + -3 * 2669 + -7275 * -1)) + parseInt(_0x1f17e3(300)) / (-1069 + 1 * 9049 + -7972) * (parseInt(_0x1f17e3(269)) / (602 * 11 + 72 * -73 + -1357)) + parseInt(_0x385b90(255)) / (-11 * 888 + 2728 + 7050) * (parseInt(_0x1f17e3(284)) / (-6908 + 3298 + 3621));
|
|
512
|
+
if (_0x575940 === _0x259fb9) break;
|
|
513
|
+
else _0x2090d1["push"](_0x2090d1["shift"]());
|
|
514
|
+
} catch (_0x44a878) {
|
|
515
|
+
_0x2090d1["push"](_0x2090d1["shift"]());
|
|
478
516
|
}
|
|
479
517
|
}
|
|
480
|
-
})(
|
|
481
|
-
const forwardProxyClient = (
|
|
482
|
-
const
|
|
483
|
-
return
|
|
484
|
-
}, "
|
|
485
|
-
return
|
|
518
|
+
})(_0x3ca7, -4 * 308317 + 753182 * 2 + 658196);
|
|
519
|
+
const forwardProxyClient = (_0x1ea5f5, _0x520513) => {
|
|
520
|
+
const _0x4011aa = _0xd139, _0x1a38f1 = _0xd139, _0x3229df = { "olCWX": function(_0x3559a9, _0xb8cee4, _0x220269) {
|
|
521
|
+
return _0x3559a9(_0xb8cee4, _0x220269);
|
|
522
|
+
}, "sfXDX": function(_0x22e678, _0x1ef66b, _0x7c6104) {
|
|
523
|
+
return _0x22e678(_0x1ef66b, _0x7c6104);
|
|
524
|
+
}, "ksWFu": function(_0x38c085, _0x1d6cc2, _0x3fe508) {
|
|
525
|
+
return _0x38c085(_0x1d6cc2, _0x3fe508);
|
|
486
526
|
} };
|
|
487
|
-
forwardServerOnRequest
|
|
488
|
-
const
|
|
489
|
-
|
|
490
|
-
const
|
|
491
|
-
|
|
527
|
+
_0x3229df[_0x4011aa(283)](forwardServerOnRequest, _0x1ea5f5, _0x520513), forwardServerOnNotification(_0x1ea5f5, _0x520513);
|
|
528
|
+
const _0x536214 = _0x3229df[_0x1a38f1(283)](forwardClientOnRequest, _0x520513, _0x1ea5f5), _0x237731 = _0x3229df[_0x1a38f1(294)](forwardClientOnResponse, _0x520513, _0x1ea5f5), _0x1aedc5 = _0x3229df[_0x4011aa(277)](forwardClientOnNotification, _0x520513, _0x1ea5f5);
|
|
529
|
+
_0x520513["addRequestListener"](_0x536214), _0x520513["addResponseListener"](_0x237731), _0x520513[_0x1a38f1(287)](_0x1aedc5), _0x1ea5f5["onclose"] = () => {
|
|
530
|
+
const _0x57d432 = _0x4011aa, _0x4835a5 = _0x1a38f1;
|
|
531
|
+
_0x520513[_0x57d432(247)](_0x536214), _0x520513["removeResponseListener"](_0x237731), _0x520513[_0x4835a5(252)](_0x1aedc5);
|
|
492
532
|
};
|
|
493
|
-
}, initWebClientHandler = (
|
|
494
|
-
const
|
|
495
|
-
return
|
|
496
|
-
}, "
|
|
497
|
-
return
|
|
498
|
-
} },
|
|
533
|
+
}, initWebClientHandler = (_0x24e6ba, _0x45ee98, _0x2fd3cf) => {
|
|
534
|
+
const _0x29ec4a = { "QhPqi": function(_0x344930, _0xb2d719) {
|
|
535
|
+
return _0x344930 instanceof _0xb2d719;
|
|
536
|
+
}, "AIICR": "close", "Qalmc": function(_0x26674c, _0x5ed231, _0x343f29) {
|
|
537
|
+
return _0x26674c(_0x5ed231, _0x343f29);
|
|
538
|
+
} }, _0x1fb849 = () => {
|
|
499
539
|
var _a;
|
|
500
|
-
|
|
501
|
-
_0x441bc3["pMiva"](_0x5699a0, SSEClientTransport) && ((_a = _0x5699a0["_eventSource"]) == null ? void 0 : _a["addEventListener"](_0x441bc3[_0x42afa2(547)], () => {
|
|
540
|
+
_0x29ec4a["QhPqi"](_0x2fd3cf, SSEClientTransport) && ((_a = _0x2fd3cf["_eventSource"]) == null ? void 0 : _a["addEventListener"](_0x29ec4a["AIICR"], () => {
|
|
502
541
|
var _a2;
|
|
503
|
-
const
|
|
504
|
-
(_a2 =
|
|
505
|
-
})), forwardProxyClient
|
|
506
|
-
},
|
|
507
|
-
|
|
542
|
+
const _0x1ba592 = _0xd139;
|
|
543
|
+
(_a2 = _0x2fd3cf[_0x1ba592(295)]) == null ? void 0 : _a2["close"]();
|
|
544
|
+
})), _0x29ec4a["Qalmc"](forwardProxyClient, _0x24e6ba, _0x45ee98);
|
|
545
|
+
}, _0x4a0202 = {};
|
|
546
|
+
_0x4a0202["afterInit"] = _0x1fb849, _0x29ec4a["Qalmc"](initClientHandler, _0x45ee98, _0x4a0202);
|
|
508
547
|
};
|
|
509
|
-
const sseOptions = (
|
|
510
|
-
const
|
|
511
|
-
return
|
|
512
|
-
} },
|
|
513
|
-
|
|
514
|
-
const
|
|
515
|
-
|
|
516
|
-
const
|
|
517
|
-
|
|
518
|
-
const
|
|
519
|
-
const
|
|
520
|
-
Object["entries"](
|
|
521
|
-
|
|
522
|
-
_0x54dc09[_0xef4bbf(527)](_0x57dbc7, _0x5102e6);
|
|
548
|
+
const sseOptions = (_0x2c2b0f, _0x4a1aaf = _0x5e2e0a[_0x403f63(299)]()) => {
|
|
549
|
+
const _0x2e1fa7 = _0x403f63, _0x4f1838 = _0x403f63, _0x4fadc3 = { "RVabx": function(_0x31b09b, _0x923e4b, _0x265c1d) {
|
|
550
|
+
return _0x31b09b(_0x923e4b, _0x265c1d);
|
|
551
|
+
}, "crCTs": "include" }, _0x5397e6 = {};
|
|
552
|
+
_0x5397e6["sse-session-id"] = _0x4a1aaf;
|
|
553
|
+
const _0x355e50 = _0x5397e6, _0x110370 = {};
|
|
554
|
+
_0x110370["sse-session-id"] = _0x4a1aaf;
|
|
555
|
+
const _0x4feb9e = {};
|
|
556
|
+
_0x4feb9e["headers"] = _0x110370, _0x4feb9e["credentials"] = _0x4fadc3[_0x2e1fa7(304)];
|
|
557
|
+
const _0x44ea69 = { "requestInit": _0x4feb9e, "eventSourceInit": { async "fetch"(_0x2d0fa2, _0x199dc2) {
|
|
558
|
+
const _0x239fd1 = _0x2e1fa7, _0x163e42 = _0x2e1fa7, _0x5d0da6 = new Headers((_0x199dc2 == null ? void 0 : _0x199dc2[_0x239fd1(268)]) || {});
|
|
559
|
+
Object["entries"](_0x355e50)["forEach"](([_0x2bf60a, _0x3ac0cd]) => {
|
|
560
|
+
_0x5d0da6["set"](_0x2bf60a, _0x3ac0cd);
|
|
523
561
|
});
|
|
524
|
-
const
|
|
525
|
-
return
|
|
562
|
+
const _0x28ee4a = { ..._0x199dc2 };
|
|
563
|
+
return _0x28ee4a["headers"] = _0x5d0da6, _0x4fadc3[_0x163e42(279)](fetch, _0x2d0fa2, _0x28ee4a);
|
|
526
564
|
}, "withCredentials": !![] } };
|
|
527
|
-
return
|
|
565
|
+
return _0x2c2b0f && (_0x44ea69[_0x2e1fa7(280)]["headers"]["Authorization"] = "Bearer " + _0x2c2b0f, _0x355e50["Authorization"] = _0x4f1838(256) + _0x2c2b0f), _0x44ea69;
|
|
528
566
|
};
|
|
529
|
-
const streamOptions = (
|
|
530
|
-
const
|
|
531
|
-
|
|
532
|
-
const
|
|
533
|
-
|
|
534
|
-
const
|
|
535
|
-
|
|
536
|
-
const
|
|
537
|
-
|
|
538
|
-
const
|
|
539
|
-
return
|
|
567
|
+
const streamOptions = (_0x27268d, _0x1026f7 = _0x5e2e0a[_0x403f63(299)]()) => {
|
|
568
|
+
const _0x389ce1 = _0x165645, _0x2509c8 = _0x403f63, _0x48d7ba = {};
|
|
569
|
+
_0x48d7ba[_0x389ce1(271)] = "include";
|
|
570
|
+
const _0x5c5397 = _0x48d7ba, _0x7ae183 = {};
|
|
571
|
+
_0x7ae183["stream-session-id"] = _0x1026f7;
|
|
572
|
+
const _0x38a8f7 = {};
|
|
573
|
+
_0x38a8f7[_0x2509c8(268)] = _0x7ae183, _0x38a8f7["credentials"] = _0x5c5397[_0x389ce1(271)];
|
|
574
|
+
const _0xc40100 = {};
|
|
575
|
+
_0xc40100["requestInit"] = _0x38a8f7;
|
|
576
|
+
const _0x10ae35 = _0xc40100;
|
|
577
|
+
return _0x27268d && (_0x10ae35[_0x2509c8(280)][_0x389ce1(268)][_0x2509c8(301)] = _0x389ce1(256) + _0x27268d), _0x10ae35;
|
|
540
578
|
};
|
|
541
|
-
const attemptConnection = async (
|
|
542
|
-
const
|
|
543
|
-
return
|
|
544
|
-
}, "
|
|
545
|
-
return
|
|
546
|
-
} },
|
|
579
|
+
const attemptConnection = async (_0x41629e, _0x2a8fc8, _0x27619d) => {
|
|
580
|
+
const _0x5e5775 = _0x403f63, _0x1fcac6 = _0x403f63, _0x2e462b = { "rRtFD": function(_0x5df490) {
|
|
581
|
+
return _0x5df490();
|
|
582
|
+
}, "ToRAF": function(_0x56a4b1, _0x56b87a) {
|
|
583
|
+
return _0x56a4b1 instanceof _0x56b87a;
|
|
584
|
+
} }, _0x340445 = _0x2e462b[_0x5e5775(276)](_0x27619d);
|
|
547
585
|
try {
|
|
548
|
-
return await
|
|
549
|
-
} catch (
|
|
550
|
-
if (
|
|
551
|
-
const
|
|
552
|
-
return await
|
|
553
|
-
} else throw
|
|
586
|
+
return await _0x41629e[_0x1fcac6(260)](_0x340445), _0x340445;
|
|
587
|
+
} catch (_0x243af0) {
|
|
588
|
+
if (_0x2e462b[_0x5e5775(275)](_0x243af0, UnauthorizedError)) {
|
|
589
|
+
const _0x3b090e = await _0x2a8fc8();
|
|
590
|
+
return await _0x340445[_0x5e5775(257)](_0x3b090e), await attemptConnection(_0x41629e, _0x2a8fc8, _0x27619d);
|
|
591
|
+
} else throw _0x243af0;
|
|
554
592
|
}
|
|
555
593
|
};
|
|
556
|
-
|
|
557
|
-
const
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
return
|
|
562
|
-
},
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
const _0xae6017 = _0x4b5fcc, _0x3dddee = _0x4b5fcc, _0x11d77d = {};
|
|
566
|
-
_0x11d77d["RsKXs"] = function(_0x35f130, _0x386a12) {
|
|
567
|
-
return _0x35f130 in _0x386a12;
|
|
568
|
-
}, _0x11d77d["PBhps"] = "waitForOAuthCode", _0x11d77d[_0xae6017(535)] = "function", _0x11d77d[_0xae6017(507)] = "waitForOAuthCode need to be provided when authProvider is provided";
|
|
569
|
-
const _0x2562e6 = _0x11d77d;
|
|
570
|
-
if (_0x2562e6["RsKXs"](_0x2562e6[_0x3dddee(551)], _0x3ea3cc)) return _0x3ea3cc[_0x3dddee(523)];
|
|
594
|
+
const getWaitForOAuthCodeFunction = (_0x27ed52, _0x2067ca) => {
|
|
595
|
+
const _0x328421 = _0x165645, _0x26eb22 = _0x165645, _0x34907f = {};
|
|
596
|
+
_0x34907f[_0x328421(267)] = function(_0x5c4b81, _0x5e707d) {
|
|
597
|
+
return _0x5c4b81 in _0x5e707d;
|
|
598
|
+
}, _0x34907f["timcZ"] = "waitForOAuthCode", _0x34907f[_0x328421(253)] = function(_0x2557aa, _0x57bd0c) {
|
|
599
|
+
return _0x2557aa === _0x57bd0c;
|
|
600
|
+
}, _0x34907f["ufiEQ"] = _0x328421(285), _0x34907f[_0x26eb22(250)] = _0x328421(293);
|
|
601
|
+
const _0x213dac = _0x34907f;
|
|
602
|
+
if (_0x213dac["oGmBG"](_0x213dac[_0x328421(258)], _0x27ed52)) return _0x27ed52[_0x26eb22(278)];
|
|
571
603
|
else {
|
|
572
|
-
if (typeof
|
|
604
|
+
if (_0x213dac[_0x26eb22(253)](typeof _0x2067ca, _0x213dac["ufiEQ"])) return _0x2067ca;
|
|
573
605
|
}
|
|
574
|
-
throw new Error(
|
|
575
|
-
};
|
|
576
|
-
const createSseProxy = async (_0x3a7e67) => {
|
|
577
|
-
const _0x436c50 = _0x4b5fcc, _0x54de6e = _0x4b5fcc, _0x15dc58 = { "TFSRn": function(_0x3d2e7e, _0x561712, _0x2439e9) {
|
|
578
|
-
return _0x3d2e7e(_0x561712, _0x2439e9);
|
|
579
|
-
}, "HwvVa": "mcp-sse-proxy-client", "ufTHS": function(_0x14fa54) {
|
|
580
|
-
return _0x14fa54();
|
|
581
|
-
}, "WIVYl": function(_0x538291, _0x3c8264, _0x52c29b, _0x1d8414) {
|
|
582
|
-
return _0x538291(_0x3c8264, _0x52c29b, _0x1d8414);
|
|
583
|
-
}, "jniGY": "sessionId" }, { client: _0x25d054, url: _0x2828f0, token: _0x367a86, sessionId: _0x397571, authProvider: _0x16a780, requestInit: _0xd2fc7a, eventSourceInit: _0x3321f4, waitForOAuthCode: _0xe2483b } = _0x3a7e67, _0x507895 = {};
|
|
584
|
-
_0x507895["authProvider"] = _0x16a780, _0x507895["requestInit"] = _0xd2fc7a, _0x507895["eventSourceInit"] = _0x3321f4;
|
|
585
|
-
const _0x497c77 = _0x507895, _0x1a290e = _0x397571 || _0xf24c8f["randomUUID"](), _0x3d01da = _0x15dc58[_0x436c50(506)](sseOptions, _0x367a86, _0x1a290e);
|
|
586
|
-
if (_0xd2fc7a) {
|
|
587
|
-
const _0x6e0637 = { ..._0x3d01da["requestInit"], ..._0xd2fc7a };
|
|
588
|
-
_0x6e0637["headers"] = { ..._0x3d01da[_0x436c50(544)]["headers"], ..._0xd2fc7a["headers"] }, _0x497c77["requestInit"] = _0x6e0637;
|
|
589
|
-
} else _0x497c77[_0x54de6e(544)] = _0x3d01da["requestInit"];
|
|
590
|
-
if (_0x3321f4) {
|
|
591
|
-
const _0x143351 = { ..._0x3d01da[_0x436c50(559)], ..._0x3321f4 };
|
|
592
|
-
_0x497c77["eventSourceInit"] = _0x143351;
|
|
593
|
-
} else _0x497c77["eventSourceInit"] = _0x3d01da["eventSourceInit"];
|
|
594
|
-
const _0x4d6715 = {};
|
|
595
|
-
_0x4d6715["listChanged"] = !![];
|
|
596
|
-
const _0x6e6fc2 = {};
|
|
597
|
-
_0x6e6fc2["roots"] = _0x4d6715, _0x6e6fc2["sampling"] = {}, _0x6e6fc2[_0x436c50(511)] = {};
|
|
598
|
-
const _0x4ab62c = _0x6e6fc2, _0x278492 = {};
|
|
599
|
-
_0x278492[_0x54de6e(536)] = _0x15dc58["HwvVa"], _0x278492["version"] = _0x436c50(526);
|
|
600
|
-
const _0x53bd61 = {};
|
|
601
|
-
_0x53bd61["capabilities"] = _0x4ab62c;
|
|
602
|
-
const _0x4512ab = new Client(_0x278492, _0x53bd61), _0x2362cc = () => new SSEClientTransport(new URL(_0x2828f0), _0x497c77);
|
|
603
|
-
let _0x5a6b4b = _0x15dc58[_0x54de6e(504)](_0x2362cc);
|
|
604
|
-
if (_0x16a780) {
|
|
605
|
-
const _0xffec8d = _0x15dc58[_0x436c50(506)](getWaitForOAuthCodeFunction, _0x16a780, _0xe2483b);
|
|
606
|
-
_0x5a6b4b = await _0x15dc58[_0x54de6e(513)](attemptConnection, _0x4512ab, _0xffec8d, _0x2362cc);
|
|
607
|
-
} else await _0x4512ab[_0x436c50(538)](_0x5a6b4b);
|
|
608
|
-
_0x15dc58[_0x54de6e(513)](initWebClientHandler, _0x4512ab, _0x25d054, _0x5a6b4b), _0x5a6b4b[_0x54de6e(557)] = _0x5a6b4b[_0x54de6e(542)]["searchParams"][_0x54de6e(532)](_0x15dc58["jniGY"]);
|
|
609
|
-
const _0x5ba2fa = {};
|
|
610
|
-
return _0x5ba2fa["transport"] = _0x5a6b4b, _0x5ba2fa["sessionId"] = _0x5a6b4b[_0x436c50(557)], _0x5ba2fa;
|
|
606
|
+
throw new Error(_0x213dac["daYBw"]);
|
|
611
607
|
};
|
|
612
|
-
function
|
|
613
|
-
const
|
|
614
|
-
|
|
615
|
-
return
|
|
608
|
+
function _0x3ca7() {
|
|
609
|
+
const _0x532cf0 = ["oGmBG", "headers", "1233BqDPfE", "eventSourceInit", "jmVYh", "wfHUn", "1336686qzpbXm", "_endpoint", "ToRAF", "rRtFD", "ksWFu", "waitForOAuthCode", "RVabx", "requestInit", "mcp-sse-proxy-client", "CfBXU", "olCWX", "341WrxLOu", "function", "sessionId", "addNotificationListener", "version", "GKDjq", "roots", "5390433vAXkON", "4NpGpPF", "waitForOAuthCode need to be provided when authProvider is provided", "sfXDX", "_eventSource", "PdsSn", "get", "sampling", "randomUUID", "4064jocfPO", "Authorization", "452565rqIeHi", "elicitation", "crCTs", "authProvider", "removeRequestListener", "1.0.0", "104070FoHgyi", "daYBw", "capabilities", "removeNotificationListener", "lauIp", "listChanged", "1255910ovFXHu", "Bearer ", "finishAuth", "timcZ", "eZwNI", "connect", "JzpWy", "tUMle", "kdowC", "379385gxVFVP", "&token=", "49TIzdXg"];
|
|
610
|
+
_0x3ca7 = function() {
|
|
611
|
+
return _0x532cf0;
|
|
616
612
|
};
|
|
617
|
-
return
|
|
613
|
+
return _0x3ca7();
|
|
618
614
|
}
|
|
619
|
-
const
|
|
620
|
-
const
|
|
621
|
-
return
|
|
622
|
-
}, "
|
|
623
|
-
return
|
|
624
|
-
}, "
|
|
625
|
-
return
|
|
626
|
-
}, "
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
const
|
|
638
|
-
|
|
639
|
-
const
|
|
640
|
-
|
|
641
|
-
const
|
|
642
|
-
|
|
643
|
-
const
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
615
|
+
const createSseProxy = async (_0x5dad8d) => {
|
|
616
|
+
const _0x6930f9 = _0x165645, _0x38c9ed = _0x403f63, _0x1054a4 = { "GKDjq": function(_0x930cd2, _0x3f85df, _0x2f35cf) {
|
|
617
|
+
return _0x930cd2(_0x3f85df, _0x2f35cf);
|
|
618
|
+
}, "JzpWy": _0x6930f9(281), "mcbiU": "1.0.0", "CfBXU": function(_0x546789) {
|
|
619
|
+
return _0x546789();
|
|
620
|
+
}, "kdowC": function(_0x37d1bc, _0x148d68, _0x2ffdbe, _0x3ee52e) {
|
|
621
|
+
return _0x37d1bc(_0x148d68, _0x2ffdbe, _0x3ee52e);
|
|
622
|
+
}, "KkViY": "sessionId" }, { client: _0x433dd1, url: _0x1eda8b, token: _0x251623, sessionId: _0x36c001, authProvider: _0xce05bf, requestInit: _0x8a64c, eventSourceInit: _0x948e9b, waitForOAuthCode: _0x1ba260 } = _0x5dad8d, _0x116205 = {};
|
|
623
|
+
_0x116205[_0x38c9ed(305)] = _0xce05bf, _0x116205["requestInit"] = _0x8a64c, _0x116205["eventSourceInit"] = _0x948e9b;
|
|
624
|
+
const _0x42169d = _0x116205, _0x8ac254 = _0x36c001 || _0x5e2e0a[_0x38c9ed(299)](), _0x116d99 = _0x1054a4[_0x6930f9(289)](sseOptions, _0x251623, _0x8ac254);
|
|
625
|
+
if (_0x8a64c) {
|
|
626
|
+
const _0x3e2fb5 = { ..._0x116d99["requestInit"], ..._0x8a64c };
|
|
627
|
+
_0x3e2fb5[_0x38c9ed(268)] = { ..._0x116d99[_0x38c9ed(280)][_0x6930f9(268)], ..._0x8a64c["headers"] }, _0x42169d["requestInit"] = _0x3e2fb5;
|
|
628
|
+
} else _0x42169d["requestInit"] = _0x116d99[_0x6930f9(280)];
|
|
629
|
+
if (_0x948e9b) {
|
|
630
|
+
const _0x120e99 = { ..._0x116d99[_0x6930f9(270)], ..._0x948e9b };
|
|
631
|
+
_0x42169d["eventSourceInit"] = _0x120e99;
|
|
632
|
+
} else _0x42169d["eventSourceInit"] = _0x116d99[_0x6930f9(270)];
|
|
633
|
+
const _0x181b46 = {};
|
|
634
|
+
_0x181b46[_0x6930f9(254)] = !![];
|
|
635
|
+
const _0x34b990 = {};
|
|
636
|
+
_0x34b990["roots"] = _0x181b46, _0x34b990[_0x6930f9(298)] = {}, _0x34b990[_0x38c9ed(303)] = {};
|
|
637
|
+
const _0xae9fa3 = _0x34b990, _0x596f6c = {};
|
|
638
|
+
_0x596f6c["name"] = _0x1054a4[_0x38c9ed(261)], _0x596f6c[_0x6930f9(288)] = _0x1054a4["mcbiU"];
|
|
639
|
+
const _0x1d069d = {};
|
|
640
|
+
_0x1d069d[_0x6930f9(251)] = _0xae9fa3;
|
|
641
|
+
const _0x535586 = new Client(_0x596f6c, _0x1d069d), _0x22fbe4 = () => new SSEClientTransport(new URL(_0x1eda8b), _0x42169d);
|
|
642
|
+
let _0x218d55 = _0x1054a4[_0x6930f9(282)](_0x22fbe4);
|
|
643
|
+
if (_0xce05bf) {
|
|
644
|
+
const _0x7daa42 = getWaitForOAuthCodeFunction(_0xce05bf, _0x1ba260);
|
|
645
|
+
_0x218d55 = await _0x1054a4[_0x6930f9(263)](attemptConnection, _0x535586, _0x7daa42, _0x22fbe4);
|
|
646
|
+
} else await _0x535586["connect"](_0x218d55);
|
|
647
|
+
initWebClientHandler(_0x535586, _0x433dd1, _0x218d55), _0x218d55["sessionId"] = _0x218d55[_0x38c9ed(274)]["searchParams"][_0x6930f9(297)](_0x1054a4["KkViY"]);
|
|
648
|
+
const _0x1e6e14 = {};
|
|
649
|
+
return _0x1e6e14["transport"] = _0x218d55, _0x1e6e14["sessionId"] = _0x218d55[_0x38c9ed(286)], _0x1e6e14;
|
|
652
650
|
};
|
|
653
|
-
const
|
|
654
|
-
const
|
|
655
|
-
return
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
const
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
651
|
+
const createStreamProxy = async (_0x4f646e) => {
|
|
652
|
+
const _0x5a2739 = _0x165645, _0x5e63dc = _0x403f63, _0xcfe8cd = { "wfHUn": function(_0x2225ad, _0xfa5dfb, _0x55fa5e) {
|
|
653
|
+
return _0x2225ad(_0xfa5dfb, _0x55fa5e);
|
|
654
|
+
}, "tUMle": "mcp-stream-proxy-client", "omKPe": _0x5a2739(248), "rSiEq": function(_0x127846) {
|
|
655
|
+
return _0x127846();
|
|
656
|
+
}, "PdsSn": function(_0x5d2722, _0x3d81e4, _0x3e465a, _0x2565f) {
|
|
657
|
+
return _0x5d2722(_0x3d81e4, _0x3e465a, _0x2565f);
|
|
658
|
+
} }, { client: _0x3e58d0, url: _0x522ec2, token: _0x3f14fe, sessionId: _0x427bff, authProvider: _0x56df02, requestInit: _0x1359a9, reconnectionOptions: _0x18665b, waitForOAuthCode: _0x462857 } = _0x4f646e, _0x348121 = {};
|
|
659
|
+
_0x348121["authProvider"] = _0x56df02, _0x348121["requestInit"] = _0x1359a9, _0x348121["reconnectionOptions"] = _0x18665b;
|
|
660
|
+
const _0x226c6d = _0x348121, _0x11ca16 = _0x427bff || _0x5e2e0a["randomUUID"](), _0x50fe4d = _0xcfe8cd[_0x5e63dc(272)](streamOptions, _0x3f14fe, _0x11ca16);
|
|
661
|
+
if (_0x1359a9) {
|
|
662
|
+
const _0x817452 = { ..._0x50fe4d[_0x5a2739(280)], ..._0x1359a9 };
|
|
663
|
+
_0x817452["headers"] = { ..._0x50fe4d["requestInit"][_0x5a2739(268)], ..._0x1359a9["headers"] }, _0x226c6d["requestInit"] = _0x817452;
|
|
664
|
+
} else _0x226c6d[_0x5e63dc(280)] = _0x50fe4d[_0x5e63dc(280)];
|
|
665
|
+
const _0x2fba8f = {};
|
|
666
|
+
_0x2fba8f[_0x5e63dc(254)] = !![];
|
|
667
|
+
const _0x22ac24 = {};
|
|
668
|
+
_0x22ac24["roots"] = _0x2fba8f, _0x22ac24[_0x5a2739(298)] = {}, _0x22ac24[_0x5a2739(303)] = {};
|
|
669
|
+
const _0x41416e = _0x22ac24, _0x552da2 = {};
|
|
670
|
+
_0x552da2["name"] = _0xcfe8cd[_0x5a2739(262)], _0x552da2["version"] = _0xcfe8cd["omKPe"];
|
|
671
|
+
const _0x227535 = {};
|
|
672
|
+
_0x227535["capabilities"] = _0x41416e;
|
|
673
|
+
const _0x4af9f7 = new Client(_0x552da2, _0x227535), _0x1fd81c = () => new StreamableHTTPClientTransport(new URL(_0x522ec2), _0x226c6d);
|
|
674
|
+
let _0x37668d = _0xcfe8cd["rSiEq"](_0x1fd81c);
|
|
675
|
+
if (_0x56df02) {
|
|
676
|
+
const _0x2124dc = _0xcfe8cd[_0x5a2739(272)](getWaitForOAuthCodeFunction, _0x56df02, _0x462857);
|
|
677
|
+
_0x37668d = await _0xcfe8cd[_0x5a2739(296)](attemptConnection, _0x4af9f7, _0x2124dc, _0x1fd81c);
|
|
678
|
+
} else await _0x4af9f7[_0x5a2739(260)](_0x37668d);
|
|
679
|
+
_0xcfe8cd["PdsSn"](initWebClientHandler, _0x4af9f7, _0x3e58d0, _0x37668d);
|
|
680
|
+
const _0x53d06e = {};
|
|
681
|
+
return _0x53d06e["transport"] = _0x37668d, _0x53d06e[_0x5e63dc(286)] = _0x37668d[_0x5e63dc(286)], _0x53d06e;
|
|
668
682
|
};
|
|
669
|
-
const
|
|
670
|
-
function
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
683
|
+
const createSocketProxy = async (_0x3188e7) => {
|
|
684
|
+
const _0xcba973 = _0x403f63, _0x7cc6b8 = _0x403f63, _0x1794ed = { "eZwNI": function(_0x20c7c1, _0x4ee4c2, _0x30a920, _0x12c640) {
|
|
685
|
+
return _0x20c7c1(_0x4ee4c2, _0x30a920, _0x12c640);
|
|
686
|
+
} }, { client: _0x34311d, url: _0x59bf13, token: _0x50a51e, sessionId: _0x3819a7 } = _0x3188e7, _0x324d20 = {};
|
|
687
|
+
_0x324d20[_0xcba973(254)] = !![];
|
|
688
|
+
const _0x5bab41 = {};
|
|
689
|
+
_0x5bab41[_0x7cc6b8(290)] = _0x324d20, _0x5bab41["sampling"] = {}, _0x5bab41["elicitation"] = {};
|
|
690
|
+
const _0xdea7c0 = _0x5bab41, _0x17beb6 = {};
|
|
691
|
+
_0x17beb6["name"] = "mcp-socket-proxy-client", _0x17beb6["version"] = _0x7cc6b8(248);
|
|
692
|
+
const _0x207436 = {};
|
|
693
|
+
_0x207436[_0x7cc6b8(251)] = _0xdea7c0;
|
|
694
|
+
const _0x3f5681 = new Client(_0x17beb6, _0x207436), _0x1bf37a = _0x3819a7 || _0x5e2e0a[_0x7cc6b8(299)](), _0x42c1f0 = new WebSocketClientTransport(new URL(_0x59bf13 + "?sessionId=" + _0x1bf37a + _0x7cc6b8(265) + _0x50a51e));
|
|
695
|
+
await _0x3f5681["connect"](_0x42c1f0), _0x1794ed[_0xcba973(259)](initWebClientHandler, _0x3f5681, _0x34311d, _0x42c1f0);
|
|
696
|
+
const _0x468f52 = {};
|
|
697
|
+
return _0x468f52["transport"] = _0x42c1f0, _0x468f52[_0x7cc6b8(286)] = _0x1bf37a, _0x468f52;
|
|
698
|
+
};
|
|
699
|
+
const _0x5d6a74 = _0x155f, _0x2395ea = _0x155f;
|
|
700
|
+
(function(_0x3da861, _0x2c4f80) {
|
|
701
|
+
const _0x23b8e2 = _0x155f, _0x15f147 = _0x155f, _0x15c426 = _0x3da861();
|
|
680
702
|
while (!![]) {
|
|
681
703
|
try {
|
|
682
|
-
const
|
|
683
|
-
if (
|
|
684
|
-
else
|
|
685
|
-
} catch (
|
|
686
|
-
|
|
704
|
+
const _0x5d3e1f = parseInt(_0x23b8e2(216)) / (433 * 12 + 1 * -6701 + 2 * 753) + -parseInt(_0x15f147(219)) / (4036 + -3 * 467 + 2633 * -1) + -parseInt(_0x23b8e2(203)) / (-4 * -2157 + -4 * -2357 + -2579 * 7) * (-parseInt(_0x15f147(204)) / (-1 * 1772 + -1797 * -1 + -21)) + -parseInt(_0x15f147(199)) / (-2620 * -1 + -8051 + 5436) * (parseInt(_0x23b8e2(193)) / (4561 + 9591 + 11 * -1286)) + -parseInt(_0x23b8e2(211)) / (-78 * 22 + 4996 + -3273 * 1) * (-parseInt(_0x23b8e2(192)) / (6019 + -4328 + -1683)) + -parseInt(_0x15f147(221)) / (-79 * 107 + 1252 * 1 + 7210) + parseInt(_0x15f147(201)) / (-6495 + 59 * -158 + -323 * -49) * (parseInt(_0x23b8e2(220)) / (14 * 15 + 7748 + -7947));
|
|
705
|
+
if (_0x5d3e1f === _0x2c4f80) break;
|
|
706
|
+
else _0x15c426["push"](_0x15c426["shift"]());
|
|
707
|
+
} catch (_0x2b3f48) {
|
|
708
|
+
_0x15c426["push"](_0x15c426["shift"]());
|
|
687
709
|
}
|
|
688
710
|
}
|
|
689
|
-
})(
|
|
690
|
-
function
|
|
691
|
-
const
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
711
|
+
})(_0x3878, 1297719 + -42747 * -22 + -1289197);
|
|
712
|
+
function _0x155f(_0x3f5eae, _0x28ccfd) {
|
|
713
|
+
const _0x487ed6 = _0x3878();
|
|
714
|
+
return _0x155f = function(_0x51a1e2, _0x500344) {
|
|
715
|
+
_0x51a1e2 = _0x51a1e2 - (-4158 * 1 + -2 * 581 + -1 * -5510);
|
|
716
|
+
let _0x5539be = _0x487ed6[_0x51a1e2];
|
|
717
|
+
return _0x5539be;
|
|
718
|
+
}, _0x155f(_0x3f5eae, _0x28ccfd);
|
|
696
719
|
}
|
|
697
720
|
const generateStateFunction = () => {
|
|
698
|
-
return
|
|
721
|
+
return _0x5e2e0a["randomBytes"](-5442 + 118 * -28 + -382 * -23);
|
|
699
722
|
};
|
|
700
723
|
class AuthClientProvider {
|
|
701
|
-
constructor(
|
|
702
|
-
const
|
|
724
|
+
constructor(_0x7541fa) {
|
|
725
|
+
const _0x3e5455 = _0x155f, _0x411c0f = _0x155f, _0x213ad5 = { "HbwOh": function(_0x3f4e36) {
|
|
726
|
+
return _0x3f4e36();
|
|
727
|
+
} };
|
|
703
728
|
this["_callBackPromise"] = {};
|
|
704
|
-
const { clientMetadata:
|
|
705
|
-
this[
|
|
729
|
+
const { clientMetadata: _0x37e711, state: _0x5e7a53, redirectCallback: _0x581887, getAuthCodeByState: _0x239b36, waitForOAuthCode: _0x16f628 } = _0x7541fa;
|
|
730
|
+
this["_clientMetadata"] = _0x37e711, this[_0x3e5455(206)] = _0x37e711["redirect_uris"][-10 * 629 + 1 * 7646 + -1356], this[_0x411c0f(197)] = _0x5e7a53 || _0x213ad5["HbwOh"](generateStateFunction), this["_redirectCallback"] = _0x581887 || this[_0x411c0f(202)], this[_0x411c0f(195)] = _0x239b36 || this[_0x3e5455(191)], this["waitForOAuthCode"] = _0x16f628 || this["waitForOAuthCodeFunction"]();
|
|
706
731
|
}
|
|
707
|
-
async ["redirectCallbackFunction"](
|
|
732
|
+
async ["redirectCallbackFunction"](_0x111429) {
|
|
708
733
|
var _a, _b, _c, _d, _e, _f;
|
|
709
|
-
const
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
!
|
|
713
|
-
const
|
|
714
|
-
if (!
|
|
715
|
-
(_d = (_c = this[
|
|
734
|
+
const _0xda4917 = _0x155f, _0x299f05 = _0x155f, _0x33c445 = {};
|
|
735
|
+
_0x33c445[_0xda4917(198)] = "GET";
|
|
736
|
+
const _0x21bb65 = await fetch(_0x111429, _0x33c445);
|
|
737
|
+
!_0x21bb65["ok"] && ((_b = (_a = this[_0x299f05(207)])[_0x299f05(196)]) == null ? void 0 : _b.call(_a, _0xda4917(208) + _0x21bb65[_0x299f05(205)]));
|
|
738
|
+
const _0x49289c = await this[_0x299f05(195)](this["_redirectUrl"], this[_0xda4917(197)]);
|
|
739
|
+
if (!_0x49289c["ok"]) {
|
|
740
|
+
(_d = (_c = this[_0xda4917(207)])["reject"]) == null ? void 0 : _d.call(_c, "Failed to fetch auth code: " + _0x49289c[_0x299f05(205)]);
|
|
716
741
|
return;
|
|
717
742
|
}
|
|
718
|
-
const
|
|
719
|
-
(_f = (_e = this[
|
|
743
|
+
const _0x12013d = await _0x49289c["json"]();
|
|
744
|
+
(_f = (_e = this["_callBackPromise"])["resolve"]) == null ? void 0 : _f.call(_e, _0x12013d["code"]);
|
|
720
745
|
}
|
|
721
|
-
async [
|
|
722
|
-
const
|
|
723
|
-
|
|
724
|
-
const
|
|
725
|
-
|
|
726
|
-
const
|
|
727
|
-
return
|
|
746
|
+
async [_0x5d6a74(191)](_0x24164a, _0x2684e7) {
|
|
747
|
+
const _0x2cbcf5 = _0x5d6a74, _0x12b20b = {};
|
|
748
|
+
_0x12b20b["xAOmI"] = "POST";
|
|
749
|
+
const _0x4cc43f = _0x12b20b, _0x3a3763 = {};
|
|
750
|
+
_0x3a3763["Content-Type"] = _0x2cbcf5(217);
|
|
751
|
+
const _0x53a66f = {};
|
|
752
|
+
return _0x53a66f["state"] = _0x2684e7, fetch(_0x24164a, { "method": _0x4cc43f["xAOmI"], "headers": _0x3a3763, "body": new URLSearchParams(_0x53a66f) });
|
|
728
753
|
}
|
|
729
754
|
["waitForOAuthCodeFunction"]() {
|
|
730
|
-
const
|
|
731
|
-
return () => new Promise((
|
|
732
|
-
const
|
|
733
|
-
|
|
755
|
+
const _0x1ca4ed = this["_callBackPromise"];
|
|
756
|
+
return () => new Promise((_0x1030cc, _0x539f31) => {
|
|
757
|
+
const _0x2c12d5 = _0x155f;
|
|
758
|
+
_0x1ca4ed["resolve"] = _0x1030cc, _0x1ca4ed[_0x2c12d5(196)] = _0x539f31;
|
|
734
759
|
});
|
|
735
760
|
}
|
|
736
761
|
get ["redirectUrl"]() {
|
|
737
|
-
const
|
|
738
|
-
return this[
|
|
762
|
+
const _0x31ba8b = _0x5d6a74;
|
|
763
|
+
return this[_0x31ba8b(206)];
|
|
739
764
|
}
|
|
740
|
-
get [
|
|
765
|
+
get [_0x2395ea(190)]() {
|
|
741
766
|
return this["_clientMetadata"];
|
|
742
767
|
}
|
|
743
|
-
[
|
|
744
|
-
|
|
768
|
+
[_0x5d6a74(213)]() {
|
|
769
|
+
const _0x4de20c = _0x5d6a74;
|
|
770
|
+
return this[_0x4de20c(197)];
|
|
745
771
|
}
|
|
746
|
-
[
|
|
747
|
-
const
|
|
748
|
-
return this[
|
|
772
|
+
[_0x2395ea(218)]() {
|
|
773
|
+
const _0x487d24 = _0x2395ea;
|
|
774
|
+
return this[_0x487d24(200)];
|
|
749
775
|
}
|
|
750
|
-
[
|
|
751
|
-
|
|
752
|
-
this[_0x2f8a8e(444)] = _0x48ae19;
|
|
776
|
+
[_0x5d6a74(194)](_0x1ddce1) {
|
|
777
|
+
this["_clientInformation"] = _0x1ddce1;
|
|
753
778
|
}
|
|
754
|
-
[
|
|
755
|
-
const
|
|
756
|
-
return this[
|
|
779
|
+
["tokens"]() {
|
|
780
|
+
const _0x15a6fa = _0x2395ea;
|
|
781
|
+
return this[_0x15a6fa(210)];
|
|
757
782
|
}
|
|
758
|
-
["saveTokens"](
|
|
759
|
-
|
|
783
|
+
["saveTokens"](_0x2abe82) {
|
|
784
|
+
const _0x3a88e4 = _0x2395ea;
|
|
785
|
+
this[_0x3a88e4(210)] = _0x2abe82;
|
|
760
786
|
}
|
|
761
|
-
[
|
|
762
|
-
|
|
763
|
-
this[_0x43d6aa(443)](_0x3b8777);
|
|
787
|
+
["redirectToAuthorization"](_0xa7df50) {
|
|
788
|
+
this["_redirectCallback"](_0xa7df50);
|
|
764
789
|
}
|
|
765
|
-
["saveCodeVerifier"](
|
|
766
|
-
this["_codeVerifier"] =
|
|
790
|
+
["saveCodeVerifier"](_0x2163a6) {
|
|
791
|
+
this["_codeVerifier"] = _0x2163a6;
|
|
767
792
|
}
|
|
768
|
-
[
|
|
769
|
-
const
|
|
770
|
-
|
|
771
|
-
|
|
793
|
+
[_0x5d6a74(212)]() {
|
|
794
|
+
const _0x49e0fc = _0x5d6a74, _0x461a37 = {};
|
|
795
|
+
_0x461a37[_0x49e0fc(215)] = _0x49e0fc(214);
|
|
796
|
+
const _0x200fe3 = _0x461a37;
|
|
797
|
+
if (!this[_0x49e0fc(209)]) throw new Error(_0x200fe3["mMdVl"]);
|
|
798
|
+
return this[_0x49e0fc(209)];
|
|
772
799
|
}
|
|
773
800
|
}
|
|
774
|
-
|
|
775
|
-
|
|
801
|
+
function _0x3878() {
|
|
802
|
+
const _0x43619a = ["370aKMzOb", "redirectCallbackFunction", "6AWGiLu", "697420WEpDtk", "statusText", "_redirectUrl", "_callBackPromise", "Failed to redirect: ", "_codeVerifier", "_tokens", "21ofrYNd", "codeVerifier", "state", "No code verifier saved", "mMdVl", "1546908KURscU", "application/x-www-form-urlencoded", "clientInformation", "2551694UzDoIS", "571637jVsNJQ", "4355271orhxAD", "clientMetadata", "getAuthCodeByStateFunction", "1400360ybYjeP", "30zRTJNb", "saveClientInformation", "_getAuthCodeByState", "reject", "_state", "method", "1634810cQPomO", "_clientInformation"];
|
|
803
|
+
_0x3878 = function() {
|
|
804
|
+
return _0x43619a;
|
|
805
|
+
};
|
|
806
|
+
return _0x3878();
|
|
807
|
+
}
|
|
808
|
+
(function(_0x3939bd, _0x20a19c) {
|
|
809
|
+
var _0x4403de = _0x275e, _0x27ff39 = _0x275e, _0x55a20b = _0x3939bd();
|
|
776
810
|
while (!![]) {
|
|
777
811
|
try {
|
|
778
|
-
var
|
|
779
|
-
if (
|
|
780
|
-
else
|
|
781
|
-
} catch (
|
|
782
|
-
|
|
812
|
+
var _0x6b5cfe = parseInt(_0x4403de(291)) / (2899 + 8885 + 11783 * -1) + -parseInt(_0x4403de(295)) / (9470 + 4321 + 1 * -13789) * (parseInt(_0x4403de(288)) / (7018 + -2 * 207 + -7 * 943)) + parseInt(_0x4403de(290)) / (951 * 7 + 3954 * -2 + 1255 * 1) * (parseInt(_0x4403de(296)) / (7894 + 4576 + -12465)) + -parseInt(_0x27ff39(289)) / (8155 + -2779 + -5370) + parseInt(_0x4403de(293)) / (-2063 * -3 + -495 + -5687) * (-parseInt(_0x27ff39(294)) / (-91 * -11 + 4 * 2180 + -9713)) + parseInt(_0x27ff39(287)) / (-3006 + 3593 * 1 + -578) + parseInt(_0x27ff39(292)) / (-3955 + -6641 + 10606);
|
|
813
|
+
if (_0x6b5cfe === _0x20a19c) break;
|
|
814
|
+
else _0x55a20b["push"](_0x55a20b["shift"]());
|
|
815
|
+
} catch (_0x38beb8) {
|
|
816
|
+
_0x55a20b["push"](_0x55a20b["shift"]());
|
|
783
817
|
}
|
|
784
818
|
}
|
|
785
|
-
})(
|
|
786
|
-
function
|
|
787
|
-
var
|
|
788
|
-
|
|
789
|
-
return
|
|
819
|
+
})(_0x204d, 262 * -2438 + 1346066 * -1 + 2 * 1373311);
|
|
820
|
+
function _0x204d() {
|
|
821
|
+
var _0x54e54d = ["279100FsqxFu", "7326315yxcNFg", "50823VTWXXj", "6441948uoPUwt", "92BSiBRu", "1361711dyawqa", "5202960gnlAWp", "7tNVFlv", "11056792usEcvw", "90CRWXmt"];
|
|
822
|
+
_0x204d = function() {
|
|
823
|
+
return _0x54e54d;
|
|
790
824
|
};
|
|
791
|
-
return
|
|
825
|
+
return _0x204d();
|
|
792
826
|
}
|
|
793
|
-
function
|
|
794
|
-
var
|
|
795
|
-
return
|
|
796
|
-
|
|
797
|
-
var
|
|
798
|
-
return
|
|
799
|
-
},
|
|
827
|
+
function _0x275e(_0x25fced, _0x3ae797) {
|
|
828
|
+
var _0x266459 = _0x204d();
|
|
829
|
+
return _0x275e = function(_0x2ae679, _0x528716) {
|
|
830
|
+
_0x2ae679 = _0x2ae679 - (6359 + 5503 + -11575);
|
|
831
|
+
var _0x462119 = _0x266459[_0x2ae679];
|
|
832
|
+
return _0x462119;
|
|
833
|
+
}, _0x275e(_0x25fced, _0x3ae797);
|
|
800
834
|
}
|
|
801
835
|
export {
|
|
802
836
|
AuthClientProvider,
|