@opentiny/agent 0.3.0 → 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.
Files changed (2) hide show
  1. package/index.js +743 -737
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1,952 +1,958 @@
1
- import _0x1323d6 from "jsonwebtoken";
1
+ import _0x93d5a6 from "jsonwebtoken";
2
2
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
3
3
  import { Client } from "@modelcontextprotocol/sdk/client/index.js";
4
4
  import { SSEServerTransport } from "@modelcontextprotocol/sdk/server/sse.js";
5
5
  import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
6
6
  import { EmptyResultSchema, ElicitResultSchema, CreateMessageResultSchema, ListRootsResultSchema, isInitializeRequest } from "@modelcontextprotocol/sdk/types.js";
7
- import _0x46f055 from "cors";
8
- import _0x6b975c from "express";
7
+ import _0x42d1ae from "cors";
8
+ import _0x1ba5a3 from "express";
9
9
  import { getOAuthProtectedResourceMetadataUrl, createOAuthMetadata, mcpAuthRouter } from "@modelcontextprotocol/sdk/server/auth/router.js";
10
10
  import { checkResourceAllowed } from "@modelcontextprotocol/sdk/shared/auth-utils.js";
11
11
  import { requireBearerAuth } from "@modelcontextprotocol/sdk/server/auth/middleware/bearerAuth.js";
12
12
  import { allowedMethods } from "@modelcontextprotocol/sdk/server/auth/middleware/allowedMethods.js";
13
13
  import { InvalidGrantError, InvalidTokenError } from "@modelcontextprotocol/sdk/server/auth/errors.js";
14
- (function(_0x24506a, _0x1759b0) {
15
- const _0x5ad8fc = _0x2148, _0x26d4b4 = _0x2148, _0x213d6c = _0x24506a();
14
+ (function(_0x414590, _0x4b8a15) {
15
+ const _0x1d6a63 = _0x4044, _0x4f9f34 = _0x4044, _0x2b8c88 = _0x414590();
16
16
  while (!![]) {
17
17
  try {
18
- const _0x2ccbe8 = parseInt(_0x5ad8fc(468)) / (-6588 + 1540 + 33 * 153) + parseInt(_0x26d4b4(442)) / (-2 * 278 + 5201 + -4643) * (-parseInt(_0x26d4b4(475)) / (1 * -1457 + -5214 + 6674)) + parseInt(_0x26d4b4(491)) / (1998 + 6160 + -8154) + parseInt(_0x26d4b4(490)) / (1 * 6911 + 56 * -32 + -5114) + parseInt(_0x5ad8fc(464)) / (-1266 + 451 * 6 + 717 * -2) + parseInt(_0x5ad8fc(454)) / (-2606 + 1 * -5617 + 5 * 1646) * (parseInt(_0x5ad8fc(460)) / (-332 * -17 + 5382 + -787 * 14)) + -parseInt(_0x5ad8fc(485)) / (-8698 + 8471 * 1 + 236);
19
- if (_0x2ccbe8 === _0x1759b0) break;
20
- else _0x213d6c["push"](_0x213d6c["shift"]());
21
- } catch (_0x207d6e) {
22
- _0x213d6c["push"](_0x213d6c["shift"]());
18
+ const _0x3c17dd = parseInt(_0x1d6a63(501)) / (-637 + 8355 + 1 * -7717) * (parseInt(_0x4f9f34(449)) / (2932 + 9972 * 1 + -12902)) + parseInt(_0x1d6a63(459)) / (-1 * 3154 + -539 * 2 + 4235) + -parseInt(_0x4f9f34(515)) / (12 + 7728 + 7736 * -1) + -parseInt(_0x1d6a63(456)) / (-2 * -1384 + -7084 + 4321) + parseInt(_0x1d6a63(493)) / (-9640 + 3 * -2904 + 18358) + parseInt(_0x4f9f34(509)) / (-9169 + 807 * -1 + 9983) * (parseInt(_0x1d6a63(453)) / (-8925 + -1 * -787 + 8146)) + -parseInt(_0x4f9f34(506)) / (-1335 * 1 + -1928 + 3272) * (parseInt(_0x4f9f34(499)) / (3540 + 5501 + 9031 * -1));
19
+ if (_0x3c17dd === _0x4b8a15) break;
20
+ else _0x2b8c88["push"](_0x2b8c88["shift"]());
21
+ } catch (_0x45ee5f) {
22
+ _0x2b8c88["push"](_0x2b8c88["shift"]());
23
23
  }
24
24
  }
25
- })(_0xdc18, -321089 * -3 + 109143 + 23110 * -9);
26
- const forwardServerRequest = async (_0x479437, _0x31dc3b, _0x49d777) => {
25
+ })(_0x4502, -19771 * 13 + 72868 + 1 * 316326);
26
+ function _0x4044(_0x357129, _0x319f99) {
27
+ const _0x2a0fa4 = _0x4502();
28
+ return _0x4044 = function(_0x4577a9, _0x4a6fa2) {
29
+ _0x4577a9 = _0x4577a9 - (9 * 334 + 1070 + 1 * -3631);
30
+ let _0x40fad1 = _0x2a0fa4[_0x4577a9];
31
+ return _0x40fad1;
32
+ }, _0x4044(_0x357129, _0x319f99);
33
+ }
34
+ function _0x4502() {
35
+ const _0x110955 = ["originalOnResponse", "IWycK", "mHXXj", "resources/templates/list", "readResource", "769336wESUPJ", "call", "listResources", "result", "data", "tools/list", "addRequestListener", "push", "AFyaI", "initialize", "clearNotificationListener", "prompts/list", "_onrequest", "NBngV", "ZFsMq", "length", "jsonrpc", "TgEut", "2oRtKoi", "addResponseListener", "method", "XAOgt", "7368LSLXZA", "code", "message", "1026645KrXCFZ", "rJyGJ", "onerror", "305829WseTZR", "cjyyP", "ICaQy", "resources/subscribe", "prompts/get", "completion/complete", "tQWau", "splice", "gHncM", "tools/call", "callTool", "listResourceTemplates", "kmUmj", "clearRequestListener", "indexOf", "notification", "bWxLM", "addListener", "ping", "notifications/cancelled", "kiyeT", "params", "clear", "iHAKU", "error", "mnKTH", "clearListener", "aktdr", "_onresponse", "unsubscribeResource", "iCroC", "notifications/initialized", "2.0", "vJSNK", "1489344rcYdID", "resources/list", "rDeRr", "name", "resources/unsubscribe", "handleListener", "290FPirjE", "ZfGsk", "234134Qtogqx", "transport", "subscribeResource", "send", "jLliF", "36054ZWFXMB", "setLoggingLevel", "function", "469iYmoTK"];
36
+ _0x4502 = function() {
37
+ return _0x110955;
38
+ };
39
+ return _0x4502();
40
+ }
41
+ const forwardServerRequest = async (_0x5ddbd7, _0x31537f, _0x24e0a5) => {
27
42
  var _a;
28
- const _0x279105 = _0x2148, _0x2fd66a = _0x2148, _0x396570 = {};
29
- _0x396570["ZzLqb"] = _0x279105(465), _0x396570[_0x2fd66a(493)] = "tools/call", _0x396570["crNru"] = "resources/list", _0x396570["BcJUG"] = "resources/templates/list", _0x396570[_0x2fd66a(462)] = "resources/read", _0x396570[_0x279105(488)] = "resources/subscribe", _0x396570["VOrSW"] = _0x2fd66a(458), _0x396570["PGjgW"] = "prompts/get", _0x396570["ECpzz"] = _0x279105(484), _0x396570["jLyWk"] = "ping", _0x396570[_0x2fd66a(445)] = "completion/complete";
30
- const _0x148a0c = _0x396570, { id: _0x242691, method: _0x3d749e, params: _0x3f954b } = _0x49d777;
31
- let _0x580161 = {};
32
- switch (_0x3d749e) {
33
- case _0x148a0c[_0x279105(421)]:
34
- _0x580161 = await _0x31dc3b[_0x2fd66a(430)](_0x3f954b);
43
+ const _0x161c24 = _0x4044, _0x31010d = _0x4044, _0x241b8f = {};
44
+ _0x241b8f["nxptd"] = _0x161c24(468), _0x241b8f[_0x161c24(479)] = _0x31010d(494), _0x241b8f["tNMrc"] = "resources/read", _0x241b8f[_0x31010d(511)] = _0x31010d(462), _0x241b8f["cjyyP"] = _0x31010d(497), _0x241b8f[_0x31010d(500)] = _0x161c24(526), _0x241b8f[_0x31010d(448)] = _0x161c24(464), _0x241b8f["JQxQT"] = "2.0";
45
+ const _0x2712aa = _0x241b8f, { id: _0x51aaf7, method: _0x5cf14d, params: _0x430be3 } = _0x24e0a5;
46
+ let _0x1b9c9c = {};
47
+ switch (_0x5cf14d) {
48
+ case _0x31010d(520):
49
+ _0x1b9c9c = await _0x31537f["listTools"](_0x430be3);
35
50
  break;
36
- case _0x148a0c[_0x2fd66a(493)]:
37
- _0x580161 = await _0x31dc3b["callTool"](_0x3f954b);
51
+ case _0x2712aa["nxptd"]:
52
+ _0x1b9c9c = await _0x31537f[_0x161c24(469)](_0x430be3);
38
53
  break;
39
- case _0x148a0c[_0x279105(471)]:
40
- _0x580161 = await _0x31dc3b[_0x2fd66a(432)](_0x3f954b);
54
+ case _0x2712aa["kiyeT"]:
55
+ _0x1b9c9c = await _0x31537f[_0x31010d(517)](_0x430be3);
41
56
  break;
42
- case _0x148a0c["BcJUG"]:
43
- _0x580161 = await _0x31dc3b["listResourceTemplates"](_0x3f954b);
57
+ case _0x31010d(513):
58
+ _0x1b9c9c = await _0x31537f[_0x161c24(470)](_0x430be3);
44
59
  break;
45
- case _0x148a0c["JZOKo"]:
46
- _0x580161 = await _0x31dc3b[_0x279105(497)](_0x3f954b);
60
+ case _0x2712aa["tNMrc"]:
61
+ _0x1b9c9c = await _0x31537f[_0x161c24(514)](_0x430be3);
47
62
  break;
48
- case _0x148a0c["aWSIX"]:
49
- _0x580161 = await _0x31dc3b["subscribeResource"](_0x3f954b);
63
+ case _0x2712aa["IWycK"]:
64
+ _0x1b9c9c = await _0x31537f[_0x161c24(503)](_0x430be3);
50
65
  break;
51
- case _0x148a0c[_0x279105(427)]:
52
- _0x580161 = await _0x31dc3b[_0x2fd66a(438)](_0x3f954b);
66
+ case _0x2712aa[_0x31010d(460)]:
67
+ _0x1b9c9c = await _0x31537f[_0x161c24(488)](_0x430be3);
53
68
  break;
54
- case _0x148a0c["PGjgW"]:
55
- _0x580161 = await _0x31dc3b["getPrompt"](_0x3f954b);
69
+ case _0x31010d(463):
70
+ _0x1b9c9c = await _0x31537f["getPrompt"](_0x430be3);
56
71
  break;
57
- case _0x148a0c[_0x2fd66a(437)]:
58
- _0x580161 = await _0x31dc3b["listPrompts"](_0x3f954b);
72
+ case _0x2712aa[_0x161c24(500)]:
73
+ _0x1b9c9c = await _0x31537f["listPrompts"](_0x430be3);
59
74
  break;
60
- case _0x148a0c["jLyWk"]:
61
- _0x580161 = await _0x31dc3b[_0x279105(480)]();
75
+ case _0x31010d(477):
76
+ _0x1b9c9c = await _0x31537f[_0x161c24(477)]();
62
77
  break;
63
- case _0x148a0c[_0x279105(445)]:
64
- _0x580161 = await _0x31dc3b["complete"](_0x3f954b);
78
+ case _0x2712aa[_0x31010d(448)]:
79
+ _0x1b9c9c = await _0x31537f["complete"](_0x430be3);
65
80
  break;
66
- case _0x2fd66a(423):
67
- _0x580161 = await _0x31dc3b[_0x279105(447)](_0x3f954b == null ? void 0 : _0x3f954b["level"]);
81
+ case "logging/setLevel":
82
+ _0x1b9c9c = await _0x31537f[_0x31010d(507)](_0x430be3 == null ? void 0 : _0x430be3["level"]);
68
83
  break;
69
84
  }
70
- const _0x1b207b = {};
71
- _0x1b207b["result"] = _0x580161, _0x1b207b["jsonrpc"] = _0x279105(446), _0x1b207b["id"] = _0x242691, await ((_a = _0x479437 == null ? void 0 : _0x479437[_0x279105(452)]) == null ? void 0 : _a["send"](_0x1b207b));
72
- }, forwardClientRequest = async (_0x43129e, _0x259cf5, _0x5ab3ec) => {
85
+ const _0x2be629 = {};
86
+ _0x2be629[_0x31010d(518)] = _0x1b9c9c, _0x2be629[_0x161c24(447)] = _0x2712aa["JQxQT"], _0x2be629["id"] = _0x51aaf7, await ((_a = _0x5ddbd7 == null ? void 0 : _0x5ddbd7["transport"]) == null ? void 0 : _a[_0x31010d(504)](_0x2be629));
87
+ }, forwardClientRequest = async (_0x421651, _0x5187b4, _0x27142b) => {
73
88
  var _a;
74
- const _0x2d6f88 = _0x2148, _0x2d6430 = _0x2148, _0x5a3635 = {};
75
- _0x5a3635[_0x2d6f88(425)] = "roots/list", _0x5a3635["wBtzd"] = "sampling/createMessage", _0x5a3635["fDlAQ"] = _0x2d6f88(478), _0x5a3635["RkgUK"] = "ping", _0x5a3635[_0x2d6f88(466)] = _0x2d6430(446);
76
- const _0x3cdfa0 = _0x5a3635, { id: _0x3a8483, method: _0x174cfd, params: _0x342377 } = _0x5ab3ec;
77
- let _0x261fce = {};
78
- switch (_0x174cfd) {
79
- case _0x3cdfa0["UxVqB"]:
80
- const _0x2b3693 = {};
81
- _0x2b3693["method"] = _0x174cfd, _0x2b3693["params"] = _0x342377, _0x261fce = await _0x259cf5["request"](_0x2b3693, ListRootsResultSchema);
89
+ const _0x4b02a5 = _0x4044, _0x19432e = _0x4044, _0x4ca4fa = {};
90
+ _0x4ca4fa[_0x4b02a5(471)] = "roots/list", _0x4ca4fa["jLliF"] = "sampling/createMessage", _0x4ca4fa["qrMyG"] = _0x19432e(491);
91
+ const _0x2645a1 = _0x4ca4fa, { id: _0x400403, method: _0xbcd1ac, params: _0x200a76 } = _0x27142b;
92
+ let _0x540365 = {};
93
+ switch (_0xbcd1ac) {
94
+ case _0x2645a1[_0x4b02a5(471)]:
95
+ const _0x53f230 = {};
96
+ _0x53f230["method"] = _0xbcd1ac, _0x53f230[_0x19432e(480)] = _0x200a76, _0x540365 = await _0x5187b4["request"](_0x53f230, ListRootsResultSchema);
82
97
  break;
83
- case _0x3cdfa0[_0x2d6430(470)]:
84
- const _0x53f617 = {};
85
- _0x53f617["method"] = _0x174cfd, _0x53f617["params"] = _0x342377, _0x261fce = await _0x259cf5["request"](_0x53f617, CreateMessageResultSchema);
98
+ case _0x2645a1[_0x4b02a5(505)]:
99
+ const _0x638a4a = {};
100
+ _0x638a4a["method"] = _0xbcd1ac, _0x638a4a[_0x19432e(480)] = _0x200a76, _0x540365 = await _0x5187b4["request"](_0x638a4a, CreateMessageResultSchema);
86
101
  break;
87
- case _0x3cdfa0[_0x2d6f88(463)]:
88
- const _0x71e8d2 = {};
89
- _0x71e8d2["method"] = _0x174cfd, _0x71e8d2["params"] = _0x342377, _0x261fce = await _0x259cf5[_0x2d6430(469)](_0x71e8d2, ElicitResultSchema);
102
+ case "elicitation/create":
103
+ const _0x162a48 = {};
104
+ _0x162a48[_0x4b02a5(451)] = _0xbcd1ac, _0x162a48["params"] = _0x200a76, _0x540365 = await _0x5187b4["request"](_0x162a48, ElicitResultSchema);
90
105
  break;
91
- case _0x3cdfa0["RkgUK"]:
92
- const _0x2c7e7c = {};
93
- _0x2c7e7c["method"] = _0x174cfd, _0x261fce = await _0x259cf5["request"](_0x2c7e7c, EmptyResultSchema);
106
+ case "ping":
107
+ const _0x4c169e = {};
108
+ _0x4c169e[_0x19432e(451)] = _0xbcd1ac, _0x540365 = await _0x5187b4["request"](_0x4c169e, EmptyResultSchema);
94
109
  break;
95
110
  }
96
- const _0x354ff0 = {};
97
- return _0x354ff0["result"] = _0x261fce, _0x354ff0[_0x2d6430(441)] = _0x3cdfa0[_0x2d6430(466)], _0x354ff0["id"] = _0x3a8483, await ((_a = _0x43129e == null ? void 0 : _0x43129e[_0x2d6f88(452)]) == null ? void 0 : _a["send"](_0x354ff0)), _0x261fce;
111
+ const _0xa55e1b = {};
112
+ return _0xa55e1b[_0x19432e(518)] = _0x540365, _0xa55e1b[_0x19432e(447)] = _0x2645a1["qrMyG"], _0xa55e1b["id"] = _0x400403, await ((_a = _0x421651 == null ? void 0 : _0x421651[_0x4b02a5(502)]) == null ? void 0 : _a[_0x19432e(504)](_0xa55e1b)), _0x540365;
98
113
  };
99
- const forwardServerOnRequest = (_0x356148, _0x4a6725) => {
100
- const _0x2cd8d4 = _0x2148, _0x225440 = _0x2148, _0x5ac0c4 = { "ZNAFs": _0x2cd8d4(431), "GxPaA": function(_0xa2f545, _0x301fdb, _0x12d19e, _0x2fb525) {
101
- return _0xa2f545(_0x301fdb, _0x12d19e, _0x2fb525);
102
- } }, _0x327f89 = _0x356148[_0x2cd8d4(453)];
103
- _0x356148[_0x225440(453)] = async (_0x3a96f8, _0x1ed4a3) => {
114
+ const forwardServerOnRequest = (_0x18ef46, _0x192806) => {
115
+ const _0x5a20e3 = _0x4044, _0x103c0e = { "bWxLM": function(_0x3fc8b0, _0x4b6f5f) {
116
+ return _0x3fc8b0 === _0x4b6f5f;
117
+ }, "KakbL": _0x5a20e3(524), "iCroC": function(_0x47887d, _0x2edaea, _0x1e8c3e, _0x2c2b5f) {
118
+ return _0x47887d(_0x2edaea, _0x1e8c3e, _0x2c2b5f);
119
+ } }, _0x6c961f = _0x18ef46[_0x5a20e3(527)];
120
+ _0x18ef46[_0x5a20e3(527)] = async (_0x396437, _0xddbb07) => {
104
121
  var _a, _b, _c, _d, _e;
105
- const _0x54122c = _0x2cd8d4, _0x3541f4 = _0x2cd8d4, { id: _0x12368e, method: _0x43dc18 } = _0x3a96f8;
122
+ const _0x4edf77 = _0x5a20e3, _0x214b66 = _0x5a20e3, { id: _0x461832, method: _0x255764 } = _0x396437;
106
123
  try {
107
- _0x43dc18 === _0x5ac0c4["ZNAFs"] ? await _0x327f89[_0x54122c(428)](_0x356148, _0x3a96f8, _0x1ed4a3) : await _0x5ac0c4[_0x3541f4(444)](forwardServerRequest, _0x356148, _0x4a6725, _0x3a96f8);
108
- } catch (_0x3a0a3e) {
109
- const { code: _0x5950de, message: _0x47b260, data: _0x5c4b56 } = _0x3a0a3e;
124
+ _0x103c0e[_0x4edf77(475)](_0x255764, _0x103c0e["KakbL"]) ? await _0x6c961f[_0x214b66(516)](_0x18ef46, _0x396437, _0xddbb07) : await _0x103c0e[_0x214b66(489)](forwardServerRequest, _0x18ef46, _0x192806, _0x396437);
125
+ } catch (_0x5bc967) {
126
+ const { code: _0x32ef58, message: _0x4b20d5, data: _0x2a2cdb } = _0x5bc967;
110
127
  try {
111
- if (_0x5950de) {
112
- const _0x298298 = {};
113
- _0x298298["code"] = _0x5950de, _0x298298["message"] = _0x47b260, _0x298298["data"] = _0x5c4b56;
114
- const _0x2b1cf2 = {};
115
- _0x2b1cf2[_0x54122c(483)] = _0x298298, _0x2b1cf2["jsonrpc"] = "2.0", _0x2b1cf2["id"] = _0x12368e, await ((_a = _0x356148 == null ? void 0 : _0x356148[_0x54122c(452)]) == null ? void 0 : _a["send"](_0x2b1cf2));
116
- } else (_c = (_b = _0x356148 == null ? void 0 : _0x356148["transport"]) == null ? void 0 : _b[_0x54122c(495)]) == null ? void 0 : _c.call(_b, _0x3a0a3e);
117
- } catch (_0x1e0479) {
118
- (_e = (_d = _0x356148 == null ? void 0 : _0x356148[_0x3541f4(452)]) == null ? void 0 : _d[_0x54122c(495)]) == null ? void 0 : _e.call(_d, _0x1e0479);
128
+ if (_0x32ef58) {
129
+ const _0x28b048 = {};
130
+ _0x28b048[_0x4edf77(454)] = _0x32ef58, _0x28b048[_0x4edf77(455)] = _0x4b20d5, _0x28b048[_0x214b66(519)] = _0x2a2cdb;
131
+ const _0x4c93f1 = {};
132
+ _0x4c93f1["error"] = _0x28b048, _0x4c93f1["jsonrpc"] = _0x4edf77(491), _0x4c93f1["id"] = _0x461832, await ((_a = _0x18ef46 == null ? void 0 : _0x18ef46["transport"]) == null ? void 0 : _a["send"](_0x4c93f1));
133
+ } else (_c = (_b = _0x18ef46 == null ? void 0 : _0x18ef46["transport"]) == null ? void 0 : _b["onerror"]) == null ? void 0 : _c.call(_b, _0x5bc967);
134
+ } catch (_0x2a65e7) {
135
+ (_e = (_d = _0x18ef46 == null ? void 0 : _0x18ef46[_0x214b66(502)]) == null ? void 0 : _d[_0x4edf77(458)]) == null ? void 0 : _e.call(_d, _0x2a65e7);
119
136
  }
120
137
  }
121
138
  };
122
139
  };
123
- const forwardServerOnNotification = (_0x3b079f, _0x5306af) => {
124
- const _0x1a8c52 = _0x2148, _0x43f5e0 = {};
125
- _0x43f5e0["yIDgO"] = function(_0x214641, _0x3e094b) {
126
- return _0x214641 !== _0x3e094b;
127
- }, _0x43f5e0["XITLS"] = function(_0x3f295d, _0x44003c) {
128
- return _0x3f295d !== _0x44003c;
129
- };
130
- const _0x39e20e = _0x43f5e0;
131
- _0x3b079f[_0x1a8c52(434)] = async (_0x270c6e) => {
140
+ const forwardServerOnNotification = (_0x380ea8, _0x54bf5f) => {
141
+ const _0xee3c22 = _0x4044, _0x19469f = {};
142
+ _0x19469f["mNMii"] = function(_0x1a72e2, _0x48cbcb) {
143
+ return _0x1a72e2 !== _0x48cbcb;
144
+ }, _0x19469f["rDeRr"] = _0xee3c22(478);
145
+ const _0xf7a9ae = _0x19469f;
146
+ _0x380ea8["_onnotification"] = async (_0x3d9bdf) => {
132
147
  var _a, _b;
133
- const _0x43f4d6 = _0x1a8c52, _0x3da25d = _0x1a8c52, { method: _0x3b6c9d, params: _0x1fa073 } = _0x270c6e;
134
- if (_0x39e20e["yIDgO"](_0x3b6c9d, "notifications/initialized") && (_0x39e20e[_0x43f4d6(426)](_0x3b6c9d, _0x3da25d(476)) || (_0x1fa073 == null ? void 0 : _0x1fa073[_0x43f4d6(435)]))) try {
135
- await _0x5306af["notification"](_0x270c6e);
136
- } catch (_0x1870df) {
137
- (_b = (_a = _0x3b079f == null ? void 0 : _0x3b079f["transport"]) == null ? void 0 : _a[_0x43f4d6(495)]) == null ? void 0 : _b.call(_a, _0x1870df);
148
+ const _0x570a08 = _0xee3c22, _0x1f82a8 = _0xee3c22, { method: _0x54529f, params: _0x263fbc } = _0x3d9bdf;
149
+ if (_0xf7a9ae["mNMii"](_0x54529f, "notifications/initialized") && (_0xf7a9ae["mNMii"](_0x54529f, _0xf7a9ae[_0x570a08(495)]) || (_0x263fbc == null ? void 0 : _0x263fbc["forward"]))) try {
150
+ await _0x54bf5f[_0x1f82a8(474)](_0x3d9bdf);
151
+ } catch (_0x5a0d32) {
152
+ (_b = (_a = _0x380ea8 == null ? void 0 : _0x380ea8["transport"]) == null ? void 0 : _a[_0x570a08(458)]) == null ? void 0 : _b.call(_a, _0x5a0d32);
138
153
  }
139
154
  };
140
155
  };
141
- const forwardClientOnRequest = (_0xd57b3e, _0x51a6df) => async (_0x53f14f) => {
156
+ const forwardClientOnRequest = (_0x323cff, _0x43fb61) => async (_0x38a817) => {
142
157
  var _a, _b, _c, _d, _e;
143
- const _0x4b37f8 = _0x2148, _0x311f2c = _0x2148, _0x49f08f = { "LXhkL": function(_0x2bdad1, _0x2c8bf5, _0x297880, _0x2e6a10) {
144
- return _0x2bdad1(_0x2c8bf5, _0x297880, _0x2e6a10);
145
- } };
158
+ const _0x2a1ac9 = _0x4044, _0x137dbc = _0x4044, _0x27e052 = { "flUTc": function(_0x3dbcc7, _0x2299bc, _0x14a599, _0x259a13) {
159
+ return _0x3dbcc7(_0x2299bc, _0x14a599, _0x259a13);
160
+ }, "tQWau": _0x2a1ac9(491) };
146
161
  try {
147
- return await _0x49f08f[_0x4b37f8(496)](forwardClientRequest, _0xd57b3e, _0x51a6df, _0x53f14f);
148
- } catch (_0x12bc1b) {
149
- const { code: _0x51b83c, message: _0x34566d, data: _0x55afcb } = _0x12bc1b;
162
+ return await _0x27e052["flUTc"](forwardClientRequest, _0x323cff, _0x43fb61, _0x38a817);
163
+ } catch (_0x10ab66) {
164
+ const { code: _0x47eb64, message: _0x1b8544, data: _0x1d0644 } = _0x10ab66;
150
165
  try {
151
- if (_0x51b83c) {
152
- const _0x1a63a1 = {};
153
- _0x1a63a1["code"] = _0x51b83c, _0x1a63a1["message"] = _0x34566d, _0x1a63a1[_0x311f2c(449)] = _0x55afcb;
154
- const _0x250dd1 = {};
155
- _0x250dd1["error"] = _0x1a63a1, _0x250dd1[_0x311f2c(441)] = _0x4b37f8(446), _0x250dd1["id"] = _0x53f14f["id"], await ((_a = _0xd57b3e == null ? void 0 : _0xd57b3e[_0x311f2c(452)]) == null ? void 0 : _a["send"](_0x250dd1));
156
- } else (_c = (_b = _0xd57b3e == null ? void 0 : _0xd57b3e["transport"]) == null ? void 0 : _b[_0x4b37f8(495)]) == null ? void 0 : _c.call(_b, _0x12bc1b);
157
- } catch (_0x55b6c7) {
158
- (_e = (_d = _0xd57b3e == null ? void 0 : _0xd57b3e[_0x311f2c(452)]) == null ? void 0 : _d["onerror"]) == null ? void 0 : _e.call(_d, _0x55b6c7);
166
+ if (_0x47eb64) {
167
+ const _0x4af81b = {};
168
+ _0x4af81b[_0x137dbc(454)] = _0x47eb64, _0x4af81b[_0x137dbc(455)] = _0x1b8544, _0x4af81b["data"] = _0x1d0644;
169
+ const _0x1cae04 = {};
170
+ _0x1cae04["error"] = _0x4af81b, _0x1cae04["jsonrpc"] = _0x27e052[_0x2a1ac9(465)], _0x1cae04["id"] = _0x38a817["id"], await ((_a = _0x323cff == null ? void 0 : _0x323cff["transport"]) == null ? void 0 : _a["send"](_0x1cae04));
171
+ } else (_c = (_b = _0x323cff == null ? void 0 : _0x323cff[_0x137dbc(502)]) == null ? void 0 : _b[_0x2a1ac9(458)]) == null ? void 0 : _c.call(_b, _0x10ab66);
172
+ } catch (_0x48919e) {
173
+ (_e = (_d = _0x323cff == null ? void 0 : _0x323cff["transport"]) == null ? void 0 : _d["onerror"]) == null ? void 0 : _e.call(_d, _0x48919e);
159
174
  }
160
175
  }
161
176
  };
162
- function _0x2148(_0x2f37fe, _0x3a4fa9) {
163
- const _0xeafb11 = _0xdc18();
164
- return _0x2148 = function(_0x3612ee, _0xf2e2dc) {
165
- _0x3612ee = _0x3612ee - (-7811 + 3480 + 4751);
166
- let _0x592853 = _0xeafb11[_0x3612ee];
167
- return _0x592853;
168
- }, _0x2148(_0x2f37fe, _0x3a4fa9);
169
- }
170
- const forwardClientOnNotification = (_0x81d6a0, _0x4b9834) => async (_0x3a59b4) => {
177
+ const forwardClientOnNotification = (_0x9821b2, _0x310108) => async (_0x372cfb) => {
171
178
  var _a, _b, _c;
172
- const _0x4f24ca = _0x2148, _0x3a224d = _0x2148, _0x3dc5b7 = {};
173
- _0x3dc5b7[_0x4f24ca(474)] = function(_0x3effc1, _0x22f450) {
174
- return _0x3effc1 !== _0x22f450;
175
- }, _0x3dc5b7[_0x4f24ca(473)] = "notifications/initialized", _0x3dc5b7["nvMqU"] = function(_0x4f06ef, _0x464c96) {
176
- return _0x4f06ef !== _0x464c96;
177
- }, _0x3dc5b7["hmqeM"] = "notifications/cancelled", _0x3dc5b7[_0x4f24ca(424)] = "2.0";
178
- const _0x23c402 = _0x3dc5b7, { method: _0x2a83f0, params: _0x570a14 } = _0x3a59b4;
179
- if (_0x23c402[_0x4f24ca(474)](_0x2a83f0, _0x23c402["pxjlU"]) && (_0x23c402[_0x3a224d(492)](_0x2a83f0, _0x23c402["hmqeM"]) || (_0x570a14 == null ? void 0 : _0x570a14[_0x4f24ca(435)]))) try {
180
- const _0x55085d = { ..._0x3a59b4 };
181
- _0x55085d["jsonrpc"] = _0x23c402["QyZsH"], await ((_a = _0x4b9834 == null ? void 0 : _0x4b9834[_0x3a224d(452)]) == null ? void 0 : _a[_0x3a224d(467)](_0x55085d));
182
- } catch (_0x3ae513) {
183
- (_c = (_b = _0x81d6a0 == null ? void 0 : _0x81d6a0["transport"]) == null ? void 0 : _b["onerror"]) == null ? void 0 : _c.call(_b, _0x3ae513);
179
+ const _0x34643e = _0x4044, _0x34dce2 = _0x4044, _0x411811 = {};
180
+ _0x411811[_0x34643e(461)] = _0x34643e(490), _0x411811["ZrgoL"] = function(_0x38d1c2, _0x7d1689) {
181
+ return _0x38d1c2 !== _0x7d1689;
182
+ }, _0x411811[_0x34dce2(528)] = "notifications/cancelled", _0x411811[_0x34643e(512)] = "2.0";
183
+ const _0x25a8e1 = _0x411811, { method: _0x1cc6f5, params: _0x342a0c } = _0x372cfb;
184
+ if (_0x1cc6f5 !== _0x25a8e1[_0x34dce2(461)] && (_0x25a8e1["ZrgoL"](_0x1cc6f5, _0x25a8e1["NBngV"]) || (_0x342a0c == null ? void 0 : _0x342a0c["forward"]))) try {
185
+ const _0x44cacf = { ..._0x372cfb };
186
+ _0x44cacf["jsonrpc"] = _0x25a8e1["mHXXj"], await ((_a = _0x310108 == null ? void 0 : _0x310108["transport"]) == null ? void 0 : _a[_0x34dce2(504)](_0x44cacf));
187
+ } catch (_0x3ba934) {
188
+ (_c = (_b = _0x9821b2 == null ? void 0 : _0x9821b2[_0x34643e(502)]) == null ? void 0 : _b["onerror"]) == null ? void 0 : _c.call(_b, _0x3ba934);
184
189
  }
185
190
  };
186
- function _0xdc18() {
187
- const _0x429d97 = ["readResource", "KvuPz", "ZzLqb", "function", "logging/setLevel", "QyZsH", "UxVqB", "XITLS", "VOrSW", "call", "get", "listTools", "initialize", "listResources", "IYvWf", "_onnotification", "forward", "clear", "ECpzz", "unsubscribeResource", "fallbackRequestHandler", "_notificationHandlers", "jsonrpc", "179152MHFjCL", "fyrWU", "GxPaA", "BPlGy", "2.0", "setLoggingLevel", "clearResponseListener", "data", "includes", "length", "transport", "_onrequest", "14tMAtCT", "name", "gcKPn", "addListener", "resources/unsubscribe", "clearNotificationListener", "1472888OkcRyI", "splice", "JZOKo", "fDlAQ", "8994132yhOhQF", "tools/list", "zBkSM", "send", "166548nQfjZY", "request", "wBtzd", "crNru", "XBQVo", "pxjlU", "UNpJw", "18KJcGuQ", "notifications/cancelled", "handleListener", "elicitation/create", "originalOnResponse", "ping", "AvMEN", "QtNZz", "error", "prompts/list", "16914852YHuiIr", "push", "_onresponse", "aWSIX", "MVdrt", "3671290VgqvKl", "2053016PhCfNY", "nvMqU", "BEURE", "clearRequestListener", "onerror", "LXhkL"];
188
- _0xdc18 = function() {
189
- return _0x429d97;
190
- };
191
- return _0xdc18();
192
- }
193
191
  const createHandleListener = () => {
194
- const _0x5ad65c = _0x2148, _0x2a215d = _0x2148, _0x16ea55 = { "QNtnY": function(_0x5f2639, _0x6ad9a8, _0x2e58da) {
195
- return _0x5f2639(_0x6ad9a8, _0x2e58da);
196
- }, "fyrWU": function(_0x11f511, _0x4f2dda) {
197
- return _0x11f511 !== _0x4f2dda;
198
- }, "rqWXg": function(_0x11cea3, _0x28f0f2) {
199
- return _0x11cea3 === _0x28f0f2;
200
- }, "LQpWM": "function", "aBlnH": function(_0x5f155e, _0x872a6a) {
201
- return _0x5f155e !== _0x872a6a;
202
- } }, _0x459b9b = [], _0x132890 = (_0x144b60, _0x1fd130) => {
203
- const _0x2e955e = _0x2148;
204
- if (_0x1fd130) {
205
- const _0x23366e = [];
206
- for (const _0x5bca73 of _0x459b9b) {
192
+ const _0x133c34 = _0x4044, _0x367bb4 = _0x4044, _0xfb81a4 = { "AlJTO": function(_0x523b20, _0x194ee8, _0x223e85) {
193
+ return _0x523b20(_0x194ee8, _0x223e85);
194
+ }, "ILUTH": function(_0x46576e, _0x2d5e97) {
195
+ return _0x46576e !== _0x2d5e97;
196
+ }, "XAOgt": function(_0x12683b, _0x57bec2) {
197
+ return _0x12683b(_0x57bec2);
198
+ }, "AFyaI": function(_0x12e884, _0x3e577e) {
199
+ return _0x12e884 === _0x3e577e;
200
+ }, "cFEvs": _0x133c34(508) }, _0x2d79d1 = [], _0xde4734 = (_0x23b3da, _0x1a62d0) => {
201
+ const _0x3da6b8 = _0x133c34, _0x5973c8 = _0x133c34;
202
+ if (_0x1a62d0) {
203
+ const _0x524cab = [];
204
+ for (const _0x471bce of _0x2d79d1) {
207
205
  try {
208
- _0x23366e["push"](_0x16ea55["QNtnY"](_0x5bca73, _0x144b60, _0x1fd130));
206
+ _0x524cab[_0x3da6b8(522)](_0xfb81a4["AlJTO"](_0x471bce, _0x23b3da, _0x1a62d0));
209
207
  } catch {
210
208
  }
211
209
  }
212
- for (const _0x22bb50 of _0x23366e) {
213
- if (_0x16ea55[_0x2e955e(443)](_0x22bb50, null)) return _0x22bb50;
210
+ for (const _0x127b35 of _0x524cab) {
211
+ if (_0xfb81a4["ILUTH"](_0x127b35, null)) return _0x127b35;
214
212
  }
215
- } else for (const _0x2c4cea of _0x459b9b) {
213
+ } else for (const _0x2f742f of _0x2d79d1) {
216
214
  try {
217
- _0x2c4cea(_0x144b60);
215
+ _0xfb81a4[_0x5973c8(452)](_0x2f742f, _0x23b3da);
218
216
  } catch {
219
217
  }
220
218
  }
221
- }, _0x40f528 = (_0x44d704) => {
222
- const _0x143a6c = _0x2148;
223
- _0x16ea55["rqWXg"](typeof _0x44d704, _0x16ea55["LQpWM"]) && !_0x459b9b[_0x143a6c(450)](_0x44d704) && _0x459b9b[_0x143a6c(486)](_0x44d704);
224
- }, _0x4211f6 = (_0xb2b499) => {
225
- const _0x31e595 = _0x2148, _0x34a0e0 = _0x459b9b["indexOf"](_0xb2b499);
226
- _0x16ea55["aBlnH"](_0x34a0e0, -1) && _0x459b9b[_0x31e595(461)](_0x34a0e0, 130 * -25 + 3333 + -82 * 1);
227
- }, _0x33615f = () => {
228
- const _0x263e72 = _0x2148;
229
- _0x459b9b[_0x263e72(451)] = 802 + 8494 + -9296;
230
- }, _0x17d568 = {};
231
- return _0x17d568[_0x5ad65c(477)] = _0x132890, _0x17d568[_0x2a215d(457)] = _0x40f528, _0x17d568["removeListener"] = _0x4211f6, _0x17d568["clearListener"] = _0x33615f, _0x17d568;
232
- }, setClientListener = (_0x37e9ac) => {
233
- const _0x376a89 = _0x2148, _0x323962 = _0x2148, _0x222084 = { "XBQVo": function(_0x349258) {
234
- return _0x349258();
219
+ }, _0x4a19db = (_0x40e2c9) => {
220
+ const _0x48d6f8 = _0x133c34;
221
+ _0xfb81a4[_0x48d6f8(523)](typeof _0x40e2c9, _0xfb81a4["cFEvs"]) && !_0x2d79d1["includes"](_0x40e2c9) && _0x2d79d1["push"](_0x40e2c9);
222
+ }, _0x415dba = (_0x2521b) => {
223
+ const _0x4fbec0 = _0x133c34, _0x170b1a = _0x133c34, _0x180537 = _0x2d79d1[_0x4fbec0(473)](_0x2521b);
224
+ _0x180537 !== -1 && _0x2d79d1[_0x170b1a(466)](_0x180537, 8314 + 7148 + -15461 * 1);
225
+ }, _0x456e19 = () => {
226
+ const _0x53fa4b = _0x133c34;
227
+ _0x2d79d1[_0x53fa4b(446)] = -1044 + 5 * 287 + -391 * 1;
228
+ }, _0x8cd665 = {};
229
+ return _0x8cd665[_0x133c34(498)] = _0xde4734, _0x8cd665[_0x133c34(476)] = _0x4a19db, _0x8cd665["removeListener"] = _0x415dba, _0x8cd665[_0x367bb4(485)] = _0x456e19, _0x8cd665;
230
+ }, setClientListener = (_0x479365) => {
231
+ const _0x5db56e = _0x4044, _0x176b64 = _0x4044, _0x121704 = { "lPQDm": function(_0x1ac16d) {
232
+ return _0x1ac16d();
233
+ }, "iHAKU": function(_0xcdc756) {
234
+ return _0xcdc756();
235
+ }, "aktdr": function(_0x3ad61a) {
236
+ return _0x3ad61a();
235
237
  } };
236
238
  {
237
- const { handleListener: _0x23f15d, addListener: _0x15e497, removeListener: _0x9048d8, clearListener: _0x321aff } = _0x222084["XBQVo"](createHandleListener);
238
- _0x37e9ac["_onresponse"] = _0x23f15d, _0x37e9ac["addResponseListener"] = _0x15e497, _0x37e9ac["removeResponseListener"] = _0x9048d8, _0x37e9ac[_0x376a89(448)] = _0x321aff;
239
+ const { handleListener: _0x5e0b6c, addListener: _0x4911ea, removeListener: _0x5ee924, clearListener: _0x288665 } = _0x121704["lPQDm"](createHandleListener);
240
+ _0x479365["_onresponse"] = _0x5e0b6c, _0x479365["addResponseListener"] = _0x4911ea, _0x479365["removeResponseListener"] = _0x5ee924, _0x479365["clearResponseListener"] = _0x288665;
239
241
  }
240
242
  {
241
- const { handleListener: _0x4609e7, addListener: _0x50173f, removeListener: _0x273921, clearListener: _0x30defe } = createHandleListener();
242
- _0x37e9ac[_0x376a89(439)] = _0x4609e7, _0x37e9ac["addRequestListener"] = _0x50173f, _0x37e9ac["removeRequestListener"] = _0x273921, _0x37e9ac[_0x376a89(494)] = _0x30defe;
243
+ const { handleListener: _0x5be1af, addListener: _0x126a3d, removeListener: _0x4a45eb, clearListener: _0x510c57 } = _0x121704[_0x5db56e(482)](createHandleListener);
244
+ _0x479365["fallbackRequestHandler"] = _0x5be1af, _0x479365[_0x176b64(521)] = _0x126a3d, _0x479365["removeRequestListener"] = _0x4a45eb, _0x479365[_0x5db56e(472)] = _0x510c57;
243
245
  }
244
246
  {
245
- const { handleListener: _0x2644c9, addListener: _0x43c84d, removeListener: _0x46e24f, clearListener: _0x337cbf } = _0x222084[_0x323962(472)](createHandleListener);
246
- _0x37e9ac["fallbackNotificationHandler"] = _0x2644c9, _0x37e9ac["addNotificationListener"] = _0x43c84d, _0x37e9ac["removeNotificationListener"] = _0x46e24f, _0x37e9ac[_0x376a89(459)] = _0x337cbf;
247
+ const { handleListener: _0x39a9eb, addListener: _0x1e6016, removeListener: _0x288fcf, clearListener: _0x4006db } = _0x121704[_0x176b64(486)](createHandleListener);
248
+ _0x479365["fallbackNotificationHandler"] = _0x39a9eb, _0x479365["addNotificationListener"] = _0x1e6016, _0x479365["removeNotificationListener"] = _0x288fcf, _0x479365[_0x5db56e(525)] = _0x4006db;
247
249
  }
248
250
  };
249
- const initClientHandler = (_0x1308ca, { beforeInit: _0x14caee, afterInit: _0x21af41 } = {}) => {
250
- const _0x12b039 = _0x2148, _0x3c7eca = _0x2148, _0xb389e8 = { "MVdrt": function(_0x50639c, _0x2b1b0a) {
251
- return _0x50639c === _0x2b1b0a;
252
- }, "UpzlB": _0x12b039(422), "KvuPz": function(_0x49e483, _0x579e44) {
253
- return _0x49e483(_0x579e44);
254
- }, "AvMEN": function(_0x30ba61) {
255
- return _0x30ba61();
256
- }, "gcKPn": function(_0x38133c, _0x42e503) {
257
- return _0x38133c === _0x42e503;
258
- }, "QtNZz": _0x12b039(487), "IYvWf": function(_0x3dcebc, _0x24fb1f) {
259
- return _0x3dcebc(_0x24fb1f);
260
- }, "pfCrD": function(_0xb65e10) {
261
- return _0xb65e10();
262
- } }, _0x50e246 = new Map(_0x1308ca[_0x3c7eca(440)]);
263
- _0x1308ca["_requestHandlers"]["clear"](), _0x1308ca[_0x12b039(440)][_0x12b039(436)](), _0xb389e8[_0x3c7eca(489)](typeof _0x14caee, _0xb389e8["UpzlB"]) && _0xb389e8[_0x3c7eca(481)](_0x14caee), _0xb389e8[_0x12b039(456)](_0x1308ca["_onresponse"][_0x12b039(455)], _0xb389e8[_0x12b039(482)]) && (_0x1308ca[_0x3c7eca(479)] = _0x1308ca["_onresponse"]), _0xb389e8[_0x12b039(433)](setClientListener, _0x1308ca), _0x1308ca["addResponseListener"]((_0x2405ac) => {
264
- const _0x57e6a2 = _0x12b039, _0x1bb5d5 = _0x12b039;
265
- _0x1308ca[_0x57e6a2(479)][_0x1bb5d5(428)](_0x1308ca, _0x2405ac);
266
- }), _0xb389e8[_0x12b039(456)](typeof _0x21af41, _0xb389e8["UpzlB"]) && _0xb389e8["pfCrD"](_0x21af41), _0x1308ca["addNotificationListener"]((_0x17a307) => {
267
- const _0xa7ca37 = _0x12b039, _0x261155 = _0x3c7eca, { method: _0x3bc632 } = _0x17a307, _0xbc75fd = _0x50e246[_0xa7ca37(429)](_0x3bc632);
268
- _0xb389e8[_0xa7ca37(489)](typeof _0xbc75fd, _0xb389e8["UpzlB"]) && _0xb389e8[_0x261155(420)](_0xbc75fd, _0x17a307);
251
+ const initClientHandler = (_0x4b92bd, { beforeInit: _0x230fdd, afterInit: _0xd16416 } = {}) => {
252
+ const _0x5183b6 = _0x4044, _0x58fc93 = _0x4044, _0xac52f7 = { "vqRbz": function(_0x1b35cc, _0x362d4d) {
253
+ return _0x1b35cc === _0x362d4d;
254
+ }, "rJyGJ": _0x5183b6(508), "gHncM": function(_0x4bd2d4, _0x36dcde) {
255
+ return _0x4bd2d4(_0x36dcde);
256
+ }, "ZFsMq": _0x58fc93(487), "vJSNK": function(_0x1c20f7) {
257
+ return _0x1c20f7();
258
+ } }, _0x589b1a = new Map(_0x4b92bd["_notificationHandlers"]);
259
+ _0x4b92bd["_requestHandlers"][_0x58fc93(481)](), _0x4b92bd["_notificationHandlers"]["clear"](), _0xac52f7["vqRbz"](typeof _0x230fdd, _0x58fc93(508)) && _0x230fdd(), _0x4b92bd[_0x5183b6(487)][_0x5183b6(496)] === _0xac52f7[_0x5183b6(445)] && (_0x4b92bd[_0x58fc93(510)] = _0x4b92bd["_onresponse"]), _0xac52f7[_0x5183b6(467)](setClientListener, _0x4b92bd), _0x4b92bd[_0x5183b6(450)]((_0x33b3c1) => {
260
+ const _0x8f1836 = _0x5183b6, _0x587ea9 = _0x58fc93;
261
+ _0x4b92bd[_0x8f1836(510)][_0x587ea9(516)](_0x4b92bd, _0x33b3c1);
262
+ }), typeof _0xd16416 === "function" && _0xac52f7[_0x58fc93(492)](_0xd16416), _0x4b92bd["addNotificationListener"]((_0x449c5b) => {
263
+ const _0x104f43 = _0x58fc93, _0x2fe341 = _0x58fc93, { method: _0x21f9dc } = _0x449c5b, _0x475fdf = _0x589b1a["get"](_0x21f9dc);
264
+ _0xac52f7["vqRbz"](typeof _0x475fdf, _0xac52f7[_0x104f43(457)]) && _0xac52f7[_0x2fe341(467)](_0x475fdf, _0x449c5b);
269
265
  });
270
266
  };
271
- const _0x166945 = _0x3719, _0x4f1ef4 = _0x3719;
272
- (function(_0x495559, _0x5bab2d) {
273
- const _0x54a888 = _0x3719, _0x1bbd7f = _0x3719, _0x156f46 = _0x495559();
267
+ const _0x174478 = _0x85e5, _0x2b1096 = _0x85e5;
268
+ (function(_0x49f094, _0x28a72f) {
269
+ const _0x1e722b = _0x85e5, _0x3a1109 = _0x85e5, _0x412ec8 = _0x49f094();
274
270
  while (!![]) {
275
271
  try {
276
- const _0x2852ae = parseInt(_0x54a888(172)) / (2 * -3331 + 9 * -297 + 9336) + parseInt(_0x1bbd7f(176)) / (859 + 3064 + -3921) * (parseInt(_0x1bbd7f(182)) / (-7969 * -1 + -4083 + -3883)) + parseInt(_0x54a888(187)) / (3882 + -8 * 12 + -3782) * (parseInt(_0x54a888(174)) / (-19 * 113 + -1 * 3669 + 1 * 5821)) + parseInt(_0x1bbd7f(183)) / (141 * -53 + -2 * 4693 + -16865 * -1) * (-parseInt(_0x1bbd7f(185)) / (-10 * -958 + 293 * -17 + 4 * -1148)) + parseInt(_0x1bbd7f(175)) / (-2928 + -120 + 4 * 764) * (-parseInt(_0x1bbd7f(177)) / (-4594 * -2 + -915 * 7 + 1 * -2774)) + parseInt(_0x54a888(180)) / (3409 * 1 + -8498 + 1 * 5099) + -parseInt(_0x54a888(171)) / (4 * 1732 + -8703 + 1786);
277
- if (_0x2852ae === _0x5bab2d) break;
278
- else _0x156f46["push"](_0x156f46["shift"]());
279
- } catch (_0x3f7d22) {
280
- _0x156f46["push"](_0x156f46["shift"]());
272
+ const _0x77aa96 = -parseInt(_0x1e722b(359)) / (15 * -9 + -2 * 3831 + 7798) + parseInt(_0x3a1109(370)) / (-4833 * 1 + -6643 + -3 * -3826) + -parseInt(_0x3a1109(355)) / (-2641 + 263 * -37 + -165 * -75) + parseInt(_0x1e722b(366)) / (-7839 + -16 * -490 + 3 * 1) + -parseInt(_0x1e722b(362)) / (-1 * -3963 + -4493 * -1 + -8451) + -parseInt(_0x3a1109(361)) / (-6955 + 4647 + 2314) + parseInt(_0x1e722b(367)) / (-272 * -35 + -5433 + 17 * -240) * (parseInt(_0x1e722b(353)) / (-7787 * 1 + -1344 + 9139));
273
+ if (_0x77aa96 === _0x28a72f) break;
274
+ else _0x412ec8["push"](_0x412ec8["shift"]());
275
+ } catch (_0x36e71f) {
276
+ _0x412ec8["push"](_0x412ec8["shift"]());
281
277
  }
282
278
  }
283
- })(_0x2be1, -2921 * 188 + -11 * -14686 + 978617);
279
+ })(_0x3c31, -418 * 703 + -1213 * -158 + 498869);
280
+ function _0x85e5(_0x52ead4, _0x32d1a9) {
281
+ const _0x1b6a32 = _0x3c31();
282
+ return _0x85e5 = function(_0x4d8349, _0xeb65a8) {
283
+ _0x4d8349 = _0x4d8349 - (-3 * 1 + 1171 * 6 + -6671);
284
+ let _0x463176 = _0x1b6a32[_0x4d8349];
285
+ return _0x463176;
286
+ }, _0x85e5(_0x52ead4, _0x32d1a9);
287
+ }
284
288
  const randomUUID = () => {
285
- const _0x240238 = _0x3719, _0x2e8617 = _0x3719, _0x57da7c = {};
286
- _0x57da7c["WtHdW"] = function(_0x55dd75, _0x2bb62c) {
287
- return _0x55dd75 & _0x2bb62c;
288
- }, _0x57da7c["bARia"] = function(_0x40bb35, _0x30a06d) {
289
- return _0x40bb35 === _0x30a06d;
290
- }, _0x57da7c["QQpyg"] = function(_0x2b7ad3, _0x1a4c4b) {
291
- return _0x2b7ad3 | _0x1a4c4b;
292
- }, _0x57da7c["nvQfP"] = function(_0x5c99ce, _0x983fed) {
293
- return _0x5c99ce & _0x983fed;
294
- }, _0x57da7c[_0x240238(181)] = _0x240238(170);
295
- const _0x38ffc3 = _0x57da7c;
296
- if (_0x38ffc3["bARia"](typeof crypto, _0x38ffc3[_0x2e8617(181)]) && crypto[_0x2e8617(168)]) return crypto["randomUUID"]();
297
- return _0x240238(169)[_0x240238(186)](/[xy]/g, (_0x483ff2) => {
298
- const _0x5b08d0 = _0x2e8617, _0x231da6 = _0x240238, _0x17d979 = _0x38ffc3["WtHdW"](crypto["getRandomValues"](new Uint8Array(134 * 31 + -5654 + 1501))[-7 * 146 + -31 * 139 + 1 * 5331], -5844 + -7380 + 13239), _0x2cf4ec = _0x38ffc3["bARia"](_0x483ff2, "x") ? _0x17d979 : _0x38ffc3[_0x5b08d0(188)](_0x38ffc3[_0x231da6(179)](_0x17d979, -17 * -367 + -8604 + 1184 * 2), 47 * 167 + 9124 + -16965);
299
- return _0x2cf4ec["toString"](-23 * -174 + -9950 + 1988 * 3);
289
+ const _0x54795d = _0x85e5, _0x2b9a75 = _0x85e5, _0x477739 = {};
290
+ _0x477739["UVwSO"] = function(_0x40fb7e, _0x519dad) {
291
+ return _0x40fb7e & _0x519dad;
292
+ }, _0x477739["usyxO"] = function(_0x1ebf7d, _0x4328b5) {
293
+ return _0x1ebf7d === _0x4328b5;
294
+ }, _0x477739["Vmtbe"] = function(_0x363f0f, _0x16b168) {
295
+ return _0x363f0f | _0x16b168;
296
+ }, _0x477739["Eymvg"] = function(_0x5db526, _0x8b213c) {
297
+ return _0x5db526 === _0x8b213c;
298
+ }, _0x477739[_0x54795d(369)] = "object", _0x477739[_0x54795d(354)] = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";
299
+ const _0x321cf1 = _0x477739;
300
+ if (_0x321cf1[_0x2b9a75(358)](typeof crypto, _0x321cf1["yEwBs"]) && crypto["randomUUID"]) return crypto["randomUUID"]();
301
+ return _0x321cf1[_0x2b9a75(354)][_0x2b9a75(356)](/[xy]/g, (_0x4a99d2) => {
302
+ const _0x3e02dd = _0x54795d, _0x5e898d = _0x54795d, _0x25b62a = _0x321cf1[_0x3e02dd(365)](crypto["getRandomValues"](new Uint8Array(-4420 + -3564 + 1597 * 5))[-15 * 5 + -298 * -14 + -4097], 4 * -416 + -5 * 221 + 2784), _0x576ad7 = _0x321cf1[_0x5e898d(360)](_0x4a99d2, "x") ? _0x25b62a : _0x321cf1[_0x3e02dd(352)](_0x321cf1["UVwSO"](_0x25b62a, 331 * 7 + -9813 * 1 + 1 * 7499), -4294 * -1 + 28 * -356 + 5682);
303
+ return _0x576ad7[_0x3e02dd(363)](8896 + 47 * -50 + -653 * 10);
300
304
  });
301
- }, randomBytes = (_0x1295cd) => {
302
- const _0x5659ef = _0x3719, _0x1510eb = _0x3719, _0x48a366 = new Uint8Array(_0x1295cd);
303
- return crypto["getRandomValues"](_0x48a366), Array[_0x5659ef(184)](_0x48a366, (_0x519be6) => _0x519be6[_0x1510eb(173)](-1 * 143 + 2473 * -1 + 2632)["padStart"](-3 * -2877 + 9302 + 129 * -139, "0"))["join"]("");
304
- }, _0x198425 = {};
305
- _0x198425[_0x166945(168)] = randomUUID, _0x198425[_0x4f1ef4(178)] = randomBytes;
306
- function _0x3719(_0x5c540d, _0x24fb6c) {
307
- const _0x55445f = _0x2be1();
308
- return _0x3719 = function(_0x566dad, _0x5f37fd) {
309
- _0x566dad = _0x566dad - (-7299 + -4241 * 2 + -389 * -41);
310
- let _0x2c889c = _0x55445f[_0x566dad];
311
- return _0x2c889c;
312
- }, _0x3719(_0x5c540d, _0x24fb6c);
313
- }
314
- function _0x2be1() {
315
- const _0x40dd17 = ["randomBytes", "nvQfP", "2605440SNpafK", "fPedK", "51PbyUnl", "2466cHyxrl", "from", "11536wuhjmP", "replace", "4bLpbCN", "QQpyg", "randomUUID", "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx", "object", "20403042uZjcCY", "1134087EXndeA", "toString", "4461970ccFOru", "8Ijsoaa", "110574qnXPtJ", "933651VoWqwJ"];
316
- _0x2be1 = function() {
317
- return _0x40dd17;
305
+ }, randomBytes = (_0x4ee949) => {
306
+ const _0x26ef89 = _0x85e5, _0x32a773 = new Uint8Array(_0x4ee949);
307
+ return crypto["getRandomValues"](_0x32a773), Array["from"](_0x32a773, (_0x1b0457) => _0x1b0457["toString"](-1931 + 9555 + -1902 * 4)["padStart"](-2484 * -3 + 451 * 11 + -12411, "0"))[_0x26ef89(357)]("");
308
+ }, _0x268db3 = {};
309
+ _0x268db3[_0x174478(368)] = randomUUID, _0x268db3[_0x2b1096(364)] = randomBytes;
310
+ function _0x3c31() {
311
+ const _0x283233 = ["Vmtbe", "16NtBzZW", "mxbcI", "556449GnctmW", "replace", "join", "Eymvg", "584078guKyeG", "usyxO", "2310564UsarHd", "455735dtMeLt", "toString", "randomBytes", "UVwSO", "2286592abUDEo", "1254631BWQwGE", "randomUUID", "yEwBs", "1424714zvOIHr"];
312
+ _0x3c31 = function() {
313
+ return _0x283233;
318
314
  };
319
- return _0x2be1();
315
+ return _0x3c31();
320
316
  }
321
- const _0x5881e5 = _0x2b37, _0x4e9d44 = _0x2b37;
322
- (function(_0x1c2ee3, _0xcf2b49) {
323
- const _0x5774e6 = _0x2b37, _0x66e94f = _0x2b37, _0x3aca95 = _0x1c2ee3();
317
+ const _0x4f289c = _0x5738, _0x27c85b = _0x5738;
318
+ (function(_0x519967, _0x9b1766) {
319
+ const _0x42e7ce = _0x5738, _0x3c754a = _0x5738, _0x1eac77 = _0x519967();
324
320
  while (!![]) {
325
321
  try {
326
- const _0x310436 = parseInt(_0x5774e6(153)) / (36 * -249 + -2740 + 2341 * 5) + parseInt(_0x66e94f(187)) / (-5164 + -16 * 23 + 5534) + -parseInt(_0x5774e6(201)) / (5606 + -1474 + 4129 * -1) * (-parseInt(_0x66e94f(235)) / (2 * -2297 + 3656 + 1 * 942)) + -parseInt(_0x66e94f(185)) / (706 + 219 * -2 + -263) * (parseInt(_0x66e94f(186)) / (-7165 + 2 * 127 + 1 * 6917)) + -parseInt(_0x5774e6(152)) / (3606 + 254 * 30 + -11219) * (-parseInt(_0x5774e6(149)) / (-8407 * -1 + 7805 + -16204)) + parseInt(_0x66e94f(147)) / (8514 + -6 * 445 + -1167 * 5) * (-parseInt(_0x66e94f(157)) / (-443 * 13 + -4435 * 2 + 14639)) + -parseInt(_0x5774e6(218)) / (9457 + -1621 + -7825);
327
- if (_0x310436 === _0xcf2b49) break;
328
- else _0x3aca95["push"](_0x3aca95["shift"]());
329
- } catch (_0x4a5fbf) {
330
- _0x3aca95["push"](_0x3aca95["shift"]());
322
+ const _0x986d94 = -parseInt(_0x42e7ce(434)) / (-6041 + -7754 + 13796) * (parseInt(_0x42e7ce(365)) / (2128 + -4323 + 2197)) + -parseInt(_0x42e7ce(342)) / (2 * 1193 + 40 * 96 + -6223) + parseInt(_0x42e7ce(373)) / (-3406 + -13 * 509 + -10027 * -1) + -parseInt(_0x3c754a(363)) / (1 * 9733 + -8 * 1217 + 2 * 4) + parseInt(_0x42e7ce(399)) / (-2427 * 2 + -4 * -761 + 1816) + parseInt(_0x3c754a(358)) / (-3853 * 1 + -3585 + 7445) * (parseInt(_0x3c754a(341)) / (8 * -1007 + 1 * -8704 + -64 * -262)) + parseInt(_0x42e7ce(388)) / (8424 + -34 * -68 + 631 * -17) * (parseInt(_0x42e7ce(403)) / (-1 * 8696 + 2 * -2320 + -1 * -13346));
323
+ if (_0x986d94 === _0x9b1766) break;
324
+ else _0x1eac77["push"](_0x1eac77["shift"]());
325
+ } catch (_0xb9cd89) {
326
+ _0x1eac77["push"](_0x1eac77["shift"]());
331
327
  }
332
328
  }
333
- })(_0x20ed, 15524 * 18 + -462199 * 1 + 437875);
334
- function _0x20ed() {
335
- const _0x22fe8e = ["toString", "hlQlh", "accessTokensStore", "bmWMR", ", got: ", "client_id", "clientId", "clientsStore", "status", " to this client: ", "jmqFo", "dbXwH", "QBCWY", "saveAccessToken", "47545djYRCK", "276YrdUwD", "669986bFzWbH", "accessTokens", "getRefreshToken", "exp", "saveRefreshToken", "saveClient", "verifyAccessToken", "aeAAw", "get", "nrkmb", "state", "bearer", "search", "isRevoked", "4998cDYQeF", "HoeCA", "challengeForAuthorizationCode", "XyTlR", "getAccessToken", "CMyvV", "/.well-known/oauth-authorization-server", "floor", "authorize", "delete", "client", "generateAccessToken", "randomBytes", "refreshTokenExpiresIn", "registerClient", "SEmsY", "ETPeg", "36575EtbMHx", "generateAuthorizationCode", "deleteCodeData", "revokeRefreshToken", "izmXQ", "refreshTokensStore", "refreshTokens", "LahiK", "getCodeDate", "join", "LLexh", "lkQKy", "set", "Router", "split", "token_type_hint", "Refresh token was not issued to this client: ", "40qzXowH", "code", "accessTokenExpiresIn", "eOdij", "clients", "153711WzpzDR", "Resource Indicator (RFC8707) missing", "957528apUarw", "aud", "codeChallenge", "7bgZAIW", "497767PrVTUW", "exchangeAuthorizationCode", "Expected resource indicator ", "expiresAt", "160FKBeut", "OAuth authorization failed: ", "now", "generateRefreshToken", "codesStore", "scopes", "scope", "use", "Bearer", "codes", "Invalid authorization code for this client: ", "params", "body", "revokeToken"];
336
- _0x20ed = function() {
337
- return _0x22fe8e;
338
- };
339
- return _0x20ed();
340
- }
341
- function _0x2b37(_0x23e720, _0x26eb39) {
342
- const _0xd4e150 = _0x20ed();
343
- return _0x2b37 = function(_0x1714ee, _0x30efd9) {
344
- _0x1714ee = _0x1714ee - (-8833 + 2396 + -1 * -6580);
345
- let _0x20d42d = _0xd4e150[_0x1714ee];
346
- return _0x20d42d;
347
- }, _0x2b37(_0x23e720, _0x26eb39);
329
+ })(_0x4ca2, 1 * -141413 + 61361 + 208214);
330
+ function _0x5738(_0x4f614c, _0x4b67f5) {
331
+ const _0x1f8e1d = _0x4ca2();
332
+ return _0x5738 = function(_0x14decf, _0x35e552) {
333
+ _0x14decf = _0x14decf - (736 * 13 + -3617 + -5612);
334
+ let _0x85fcb = _0x1f8e1d[_0x14decf];
335
+ return _0x85fcb;
336
+ }, _0x5738(_0x4f614c, _0x4b67f5);
348
337
  }
349
- const ACCESS_TOKEN_EXPIRES_IN = (-9568 + 163 * -41 + 16275) * (-8544 + -247 * -17 + 4405) * (1145 * -1 + -9903 + -2 * -5554);
350
- const REFRESH_TOKEN_EXPIRES_IN = (790 * -1 + 53 * -137 + 1 * 8058) * (-9540 + 8976 + 588) * (-6257 + 6915 + -23 * 26) * (-8867 * -1 + 7213 + -16020);
338
+ const ACCESS_TOKEN_EXPIRES_IN = (-4673 + 2286 + 2411) * (6387 + -203 * 48 + 3417) * (3 * -2447 + -142 * -28 + 3425);
339
+ const REFRESH_TOKEN_EXPIRES_IN = (-177 + 8 * -401 + 3392) * (1 * 1135 + -58 * -28 + -2735) * (-2059 + 5 * 128 + 1479) * (-5596 + 9842 + -4186);
351
340
  const generateAuthorizationCodeFunction = () => {
352
- return _0x198425["randomBytes"](-5 * -967 + 1051 * -9 + 8 * 581);
341
+ const _0x3939e2 = _0x5738;
342
+ return _0x268db3[_0x3939e2(397)](-8863 * 1 + 612 + 8275);
353
343
  }, generateAccessTokenFunction = () => {
354
- return _0x198425["randomBytes"](-1695 * -3 + -3563 + -2 * 745);
344
+ return _0x268db3["randomBytes"](-7036 + 1461 + -801 * -7);
355
345
  }, generateRefreshTokenFunction = () => {
356
- const _0x8e4fff = _0x2b37;
357
- return _0x198425[_0x8e4fff(213)](-1 * -1252 + 4411 * 1 + -5615);
346
+ return _0x268db3["randomBytes"](-361 * -3 + 5507 + -6542);
358
347
  };
359
348
  class MemoryClientsStore {
360
349
  constructor() {
361
- this["clients"] = /* @__PURE__ */ new Map();
350
+ const _0x47ee45 = _0x5738;
351
+ this[_0x47ee45(418)] = /* @__PURE__ */ new Map();
362
352
  }
363
- async ["getClient"](_0x5b3fb8) {
364
- return this["clients"]["get"](_0x5b3fb8);
353
+ async ["getClient"](_0x2a1f88) {
354
+ const _0x1f179a = _0x5738;
355
+ return this["clients"][_0x1f179a(364)](_0x2a1f88);
365
356
  }
366
- async [_0x5881e5(192)](_0x2ee6df) {
367
- const _0x278079 = _0x5881e5, _0x7b6e4a = _0x5881e5;
368
- return this[_0x278079(146)][_0x7b6e4a(230)](_0x2ee6df["client_id"], _0x2ee6df), _0x2ee6df;
357
+ async ["saveClient"](_0x5d20f9) {
358
+ const _0x16ac5b = _0x5738, _0x7ef6ee = _0x5738;
359
+ return this[_0x16ac5b(418)][_0x7ef6ee(422)](_0x5d20f9[_0x7ef6ee(419)], _0x5d20f9), _0x5d20f9;
369
360
  }
370
- async ["deleteClient"](_0x5ab236) {
371
- const _0x38ccd2 = _0x5881e5;
372
- return this["clients"][_0x38ccd2(210)](_0x5ab236);
361
+ async [_0x4f289c(432)](_0x1c9a29) {
362
+ const _0x49579c = _0x4f289c;
363
+ return this[_0x49579c(418)]["delete"](_0x1c9a29);
373
364
  }
374
- async [_0x4e9d44(215)](_0x179824) {
375
- const _0x117d33 = _0x4e9d44;
376
- return this[_0x117d33(192)](_0x179824);
365
+ async ["registerClient"](_0x406d66) {
366
+ return this["saveClient"](_0x406d66);
377
367
  }
378
368
  }
379
369
  class MemoryAuthorizationCodeStore {
380
370
  constructor() {
381
- const _0x5e6e04 = _0x5881e5;
382
- this[_0x5e6e04(166)] = /* @__PURE__ */ new Map();
371
+ this["codes"] = /* @__PURE__ */ new Map();
383
372
  }
384
- async [_0x5881e5(226)](_0x3a022f) {
385
- const _0x110435 = _0x5881e5;
386
- return this[_0x110435(166)]["get"](_0x3a022f);
373
+ async ["getCodeDate"](_0x1794a2) {
374
+ const _0x1de897 = _0x4f289c, _0x7e7701 = _0x4f289c;
375
+ return this[_0x1de897(425)][_0x7e7701(364)](_0x1794a2);
387
376
  }
388
- async ["saveCodeData"](_0x47cf16, _0x2e97c1) {
389
- const _0x5ece6c = _0x5881e5, _0x56507d = _0x5881e5;
390
- return this[_0x5ece6c(166)][_0x56507d(230)](_0x47cf16, _0x2e97c1), !![];
377
+ async ["saveCodeData"](_0x19c6f0, _0x903099) {
378
+ const _0x4721c0 = _0x4f289c;
379
+ return this[_0x4721c0(425)][_0x4721c0(422)](_0x19c6f0, _0x903099), !![];
391
380
  }
392
- async [_0x5881e5(220)](_0x49fb52) {
393
- const _0x30189d = _0x5881e5;
394
- return this["codes"][_0x30189d(210)](_0x49fb52);
381
+ async [_0x27c85b(401)](_0x24ca6c) {
382
+ const _0x3e8a08 = _0x4f289c;
383
+ return this[_0x3e8a08(425)][_0x3e8a08(414)](_0x24ca6c);
395
384
  }
396
385
  }
397
386
  class MemoryAccessTokensStore {
398
387
  constructor() {
399
- const _0x15e7ab = _0x4e9d44;
400
- this[_0x15e7ab(188)] = /* @__PURE__ */ new Map();
388
+ this["accessTokens"] = /* @__PURE__ */ new Map();
401
389
  }
402
- async [_0x4e9d44(205)](_0x523552) {
403
- const _0x2ac841 = _0x4e9d44;
404
- return this[_0x2ac841(188)][_0x2ac841(195)](_0x523552);
390
+ async ["getAccessToken"](_0x20cf1a) {
391
+ return this["accessTokens"]["get"](_0x20cf1a);
405
392
  }
406
- async [_0x4e9d44(184)](_0x2af231, _0x39f776) {
407
- const _0x393ce0 = _0x5881e5;
408
- return this["accessTokens"][_0x393ce0(230)](_0x2af231, _0x39f776), !![];
393
+ async ["saveAccessToken"](_0x227269, _0x42a52f) {
394
+ return this["accessTokens"]["set"](_0x227269, _0x42a52f), !![];
409
395
  }
410
- async ["revokeAccessToken"](_0x26b9e5) {
411
- const _0x900037 = _0x4e9d44;
412
- return this[_0x900037(188)]["delete"](_0x26b9e5);
396
+ async ["revokeAccessToken"](_0x52a35d) {
397
+ return this["accessTokens"]["delete"](_0x52a35d);
413
398
  }
414
399
  }
415
400
  class MemoryRefreshTokensStore {
416
401
  constructor() {
417
- const _0x1ae732 = _0x4e9d44;
418
- this[_0x1ae732(224)] = /* @__PURE__ */ new Map();
402
+ this["refreshTokens"] = /* @__PURE__ */ new Map();
419
403
  }
420
- async [_0x4e9d44(189)](_0x4353cc) {
421
- const _0x418668 = _0x4e9d44, _0x277aba = _0x4e9d44;
422
- return this[_0x418668(224)][_0x277aba(195)](_0x4353cc);
404
+ async [_0x4f289c(368)](_0x468058) {
405
+ const _0x1b7c71 = _0x27c85b;
406
+ return this[_0x1b7c71(427)]["get"](_0x468058);
423
407
  }
424
- async ["saveRefreshToken"](_0x231c08, _0x5dbbdf) {
425
- const _0x11c7c0 = _0x5881e5;
426
- return this[_0x11c7c0(224)]["set"](_0x231c08, _0x5dbbdf), !![];
408
+ async [_0x4f289c(349)](_0x5d96fe, _0x169a38) {
409
+ return this["refreshTokens"]["set"](_0x5d96fe, _0x169a38), !![];
427
410
  }
428
- async ["revokeRefreshToken"](_0x3a3dae) {
429
- const _0x1ab8ea = _0x4e9d44;
430
- return this["refreshTokens"][_0x1ab8ea(210)](_0x3a3dae);
411
+ async [_0x4f289c(370)](_0x462845) {
412
+ const _0x5a1b5a = _0x4f289c, _0x2c4bd0 = _0x27c85b;
413
+ return this[_0x5a1b5a(427)][_0x2c4bd0(414)](_0x462845);
431
414
  }
432
415
  }
433
416
  class AuthServerProvider {
434
- constructor(_0x466f49 = {}) {
435
- const _0x2f3f2a = _0x5881e5, _0xff286b = _0x4e9d44, _0x56f68e = {};
436
- _0x56f68e[_0x2f3f2a(206)] = function(_0xff337e, _0xcd72a2) {
437
- return _0xff337e || _0xcd72a2;
438
- }, _0x56f68e["jmqFo"] = function(_0x3e60b9, _0x4c9a72) {
439
- return _0x3e60b9 || _0x4c9a72;
440
- }, _0x56f68e[_0x2f3f2a(194)] = function(_0x20cfc8, _0xf49617) {
441
- return _0x20cfc8 || _0xf49617;
417
+ constructor(_0x32512e = {}) {
418
+ const _0x23793a = _0x4f289c, _0x23eb31 = _0x27c85b, _0x230b86 = {};
419
+ _0x230b86[_0x23793a(415)] = function(_0x5eebd9, _0x1af0bc) {
420
+ return _0x5eebd9 || _0x1af0bc;
442
421
  };
443
- const _0x112915 = _0x56f68e, { clientsStore: _0x243b29, codesStore: _0x1d9eb7, accessTokensStore: _0x10ac3b, refreshTokensStore: _0x296d81, generateAuthorizationCode: _0x2ce90a, generateAccessToken: _0x23bead, generateRefreshToken: _0x1eb225, accessTokenExpiresIn: _0x493a98, refreshTokenExpiresIn: _0x25ce4b } = _0x466f49;
444
- this[_0xff286b(178)] = _0x243b29 || new MemoryClientsStore(), this[_0x2f3f2a(161)] = _0x1d9eb7 || new MemoryAuthorizationCodeStore(), this[_0xff286b(173)] = _0x10ac3b || new MemoryAccessTokensStore(), this["refreshTokensStore"] = _0x296d81 || new MemoryRefreshTokensStore(), this[_0xff286b(219)] = _0x2ce90a || generateAuthorizationCodeFunction, this[_0x2f3f2a(212)] = _0x112915[_0xff286b(206)](_0x23bead, generateAccessTokenFunction), this[_0x2f3f2a(160)] = _0x112915[_0x2f3f2a(181)](_0x1eb225, generateRefreshTokenFunction), this["accessTokenExpiresIn"] = _0x112915["CMyvV"](_0x493a98, ACCESS_TOKEN_EXPIRES_IN), this["refreshTokenExpiresIn"] = _0x112915[_0xff286b(194)](_0x25ce4b, REFRESH_TOKEN_EXPIRES_IN);
445
- }
446
- async [_0x5881e5(209)](_0x58bd0c, _0x56a101, _0x2f2979) {
447
- const _0x2cb3ff = _0x4e9d44, _0xfe9ad4 = _0x5881e5, _0x3cc4b7 = {};
448
- _0x3cc4b7[_0x2cb3ff(217)] = function(_0x150002, _0xfa876b) {
449
- return _0x150002 !== _0xfa876b;
422
+ const _0x12ebce = _0x230b86, { clientsStore: _0x367533, codesStore: _0x256b62, accessTokensStore: _0x83e880, refreshTokensStore: _0x36d198, generateAuthorizationCode: _0x2f92ca, generateAccessToken: _0x235dde, generateRefreshToken: _0x135ec4, accessTokenExpiresIn: _0x3c493a, refreshTokenExpiresIn: _0x5d748f } = _0x32512e;
423
+ this["clientsStore"] = _0x367533 || new MemoryClientsStore(), this[_0x23eb31(376)] = _0x256b62 || new MemoryAuthorizationCodeStore(), this[_0x23793a(374)] = _0x83e880 || new MemoryAccessTokensStore(), this[_0x23793a(361)] = _0x36d198 || new MemoryRefreshTokensStore(), this["generateAuthorizationCode"] = _0x12ebce[_0x23793a(415)](_0x2f92ca, generateAuthorizationCodeFunction), this[_0x23eb31(436)] = _0x235dde || generateAccessTokenFunction, this["generateRefreshToken"] = _0x12ebce["kxhTT"](_0x135ec4, generateRefreshTokenFunction), this[_0x23793a(412)] = _0x3c493a || ACCESS_TOKEN_EXPIRES_IN, this["refreshTokenExpiresIn"] = _0x12ebce["kxhTT"](_0x5d748f, REFRESH_TOKEN_EXPIRES_IN);
424
+ }
425
+ async [_0x4f289c(383)](_0x5871f1, _0x342ebc, _0x524ea8) {
426
+ const _0x4ec492 = _0x4f289c, _0x56f616 = _0x4f289c, _0x163639 = {};
427
+ _0x163639["CjAor"] = function(_0x25ba7a, _0x57a2b1) {
428
+ return _0x25ba7a !== _0x57a2b1;
429
+ }, _0x163639[_0x4ec492(404)] = "state";
430
+ const _0x40add4 = _0x163639, _0x509d1b = this[_0x56f616(343)](), _0x353bd3 = {};
431
+ _0x353bd3[_0x56f616(410)] = _0x509d1b;
432
+ const _0x7425dc = new URLSearchParams(_0x353bd3);
433
+ _0x40add4["CjAor"](_0x342ebc["state"], void 0) && _0x7425dc["set"](_0x40add4[_0x56f616(404)], _0x342ebc[_0x4ec492(420)]);
434
+ const _0x5efce6 = {};
435
+ _0x5efce6[_0x4ec492(431)] = _0x5871f1, _0x5efce6[_0x4ec492(369)] = _0x342ebc, await this[_0x4ec492(376)][_0x56f616(346)](_0x509d1b, _0x5efce6);
436
+ const _0x1ff8d7 = new URL(_0x342ebc["redirectUri"] || _0x5871f1[_0x56f616(384)][-1481 * -1 + -6046 + 83 * 55]);
437
+ _0x1ff8d7[_0x56f616(351)] = _0x7425dc[_0x4ec492(360)](), _0x524ea8[_0x4ec492(355)](_0x1ff8d7[_0x4ec492(360)]());
438
+ }
439
+ async [_0x27c85b(382)](_0x104e52, _0x494b8f) {
440
+ const _0x4943b2 = _0x27c85b, _0x2c9085 = await this["codesStore"]["getCodeDate"](_0x494b8f);
441
+ if (!_0x2c9085) throw new InvalidGrantError(_0x4943b2(353) + _0x104e52["client_id"]);
442
+ return _0x2c9085[_0x4943b2(369)][_0x4943b2(375)];
443
+ }
444
+ async [_0x27c85b(405)](_0x2adcff, _0x19482b) {
445
+ const _0x597b57 = _0x4f289c, _0x5c6596 = _0x27c85b, _0x5d0149 = {};
446
+ _0x5d0149["sKcvw"] = function(_0x4c7054, _0x2cef3d) {
447
+ return _0x4c7054 !== _0x2cef3d;
448
+ }, _0x5d0149[_0x597b57(344)] = function(_0x438cd2, _0x367e03) {
449
+ return _0x438cd2 + _0x367e03;
450
+ }, _0x5d0149["XKVYr"] = function(_0x4fb462, _0x57caaa) {
451
+ return _0x4fb462 * _0x57caaa;
452
+ }, _0x5d0149[_0x5c6596(378)] = function(_0xef8ffd, _0x35dedd) {
453
+ return _0xef8ffd * _0x35dedd;
454
+ }, _0x5d0149[_0x597b57(429)] = _0x5c6596(387);
455
+ const _0x1c8357 = _0x5d0149, _0x50c85b = await this[_0x597b57(376)]["getCodeDate"](_0x19482b);
456
+ if (!_0x50c85b) throw new InvalidGrantError("Invalid authorization code for this client: " + _0x2adcff[_0x597b57(419)]);
457
+ if (_0x1c8357["sKcvw"](_0x50c85b[_0x5c6596(431)]["client_id"], _0x2adcff[_0x5c6596(419)])) throw new InvalidGrantError(_0x5c6596(339) + _0x2adcff["client_id"]);
458
+ const _0x111fa2 = _0x50c85b["params"]["redirectUri"] || _0x50c85b[_0x5c6596(431)][_0x597b57(384)][-9433 + 512 * -2 + -10457 * -1];
459
+ await this[_0x597b57(376)][_0x5c6596(401)](_0x19482b);
460
+ const _0x107f30 = this["generateAccessToken"](), _0x925d45 = this["generateRefreshToken"](), _0x3dbe82 = {};
461
+ _0x3dbe82[_0x5c6596(394)] = _0x111fa2;
462
+ const _0x5c96f5 = { "token": _0x107f30, "clientId": _0x2adcff[_0x5c6596(419)], "scopes": _0x50c85b[_0x5c6596(369)][_0x597b57(359)] || [], "expiresAt": _0x1c8357[_0x597b57(344)](Date[_0x597b57(354)](), _0x1c8357["XKVYr"](this[_0x597b57(412)], 6752 + 8165 + -13917)), "resource": _0x50c85b["params"]["resource"], "extra": _0x3dbe82 };
463
+ await this[_0x597b57(374)][_0x5c6596(367)](_0x107f30, _0x5c96f5);
464
+ const _0x2ce974 = {};
465
+ _0x2ce974["isRevoked"] = ![];
466
+ const _0xbf52b9 = { "token": _0x925d45, "clientId": _0x2adcff["client_id"], "scopes": _0x50c85b[_0x597b57(369)][_0x597b57(359)] || [], "expiresAt": _0x1c8357["WbEUC"](Date[_0x5c6596(354)](), _0x1c8357[_0x5c6596(378)](this[_0x5c6596(357)], 1 * -2921 + -1542 * -6 + -5331)), "extra": _0x2ce974 };
467
+ return await this["refreshTokensStore"]["saveRefreshToken"](_0x925d45, _0xbf52b9), { "access_token": _0x107f30, "refresh_token": _0x925d45, "token_type": _0x1c8357[_0x597b57(429)], "expires_in": this[_0x5c6596(412)], "scope": (_0x50c85b["params"][_0x5c6596(359)] || [])["join"](" ") };
468
+ }
469
+ async ["exchangeRefreshToken"](_0x1a781d, _0x27006f) {
470
+ const _0x478159 = _0x4f289c, _0x4d6ca4 = _0x4f289c, _0x3e04cb = {};
471
+ _0x3e04cb[_0x478159(389)] = function(_0xf7c948, _0x229ccf) {
472
+ return _0xf7c948 < _0x229ccf;
473
+ }, _0x3e04cb[_0x4d6ca4(362)] = function(_0x14ed30, _0x1fa976) {
474
+ return _0x14ed30 + _0x1fa976;
475
+ }, _0x3e04cb["DdiDW"] = function(_0xfb60e8, _0x1af7ae) {
476
+ return _0xfb60e8 * _0x1af7ae;
450
477
  };
451
- const _0x57ceaa = _0x3cc4b7, _0x248abb = this[_0xfe9ad4(219)](), _0x567cfd = {};
452
- _0x567cfd["code"] = _0x248abb;
453
- const _0x4617a7 = new URLSearchParams(_0x567cfd);
454
- _0x57ceaa[_0x2cb3ff(217)](_0x56a101["state"], void 0) && _0x4617a7[_0xfe9ad4(230)](_0xfe9ad4(197), _0x56a101["state"]);
455
- const _0x55f27a = {};
456
- _0x55f27a[_0xfe9ad4(211)] = _0x58bd0c, _0x55f27a[_0xfe9ad4(168)] = _0x56a101, await this[_0xfe9ad4(161)]["saveCodeData"](_0x248abb, _0x55f27a);
457
- const _0x27dd6f = new URL(_0x58bd0c["redirect_uris"][-6 * 1306 + -36 + -192 * -41]);
458
- _0x27dd6f[_0xfe9ad4(199)] = _0x4617a7["toString"](), _0x2f2979["redirect"](_0x27dd6f[_0xfe9ad4(171)]());
459
- }
460
- async [_0x4e9d44(203)](_0x1b4298, _0x10a41b) {
461
- const _0x17c296 = _0x4e9d44, _0x1b5dce = await this[_0x17c296(161)]["getCodeDate"](_0x10a41b);
462
- if (!_0x1b5dce) throw new InvalidGrantError("Invalid authorization code for this client: " + _0x1b4298["client_id"]);
463
- return _0x1b5dce["params"][_0x17c296(151)];
464
- }
465
- async [_0x4e9d44(154)](_0x4595ec, _0x1c4c7b) {
466
- const _0x1b1b3d = _0x5881e5, _0x2bad88 = _0x5881e5, _0x47f87f = {};
467
- _0x47f87f["CrczU"] = function(_0x2504cf, _0x372fd1) {
468
- return _0x2504cf !== _0x372fd1;
469
- }, _0x47f87f["nrkmb"] = function(_0x44591f, _0x590f01) {
470
- return _0x44591f + _0x590f01;
471
- }, _0x47f87f["jXyZO"] = function(_0x37c695, _0x291af2) {
472
- return _0x37c695 * _0x291af2;
473
- };
474
- const _0x324074 = _0x47f87f, _0xfc079a = await this["codesStore"]["getCodeDate"](_0x1c4c7b);
475
- if (!_0xfc079a) throw new InvalidGrantError(_0x1b1b3d(167) + _0x4595ec["client_id"]);
476
- if (_0x324074["CrczU"](_0xfc079a["client"]["client_id"], _0x4595ec[_0x2bad88(176)])) throw new InvalidGrantError("Authorization code was not issued to this client: " + _0x4595ec[_0x2bad88(176)]);
477
- await this[_0x1b1b3d(161)][_0x2bad88(220)](_0x1c4c7b);
478
- const _0x31ebd7 = this["generateAccessToken"](), _0x4b02fe = this[_0x1b1b3d(160)](), _0x316a6c = { "token": _0x31ebd7, "clientId": _0x4595ec["client_id"], "scopes": _0xfc079a["params"][_0x1b1b3d(162)] || [], "expiresAt": _0x324074[_0x2bad88(196)](Date["now"](), _0x324074["jXyZO"](this["accessTokenExpiresIn"], 4724 * 1 + 780 + 1 * -4504)), "resource": _0xfc079a["params"]["resource"] };
479
- await this[_0x2bad88(173)]["saveAccessToken"](_0x31ebd7, _0x316a6c);
480
- const _0x4dc148 = {};
481
- _0x4dc148[_0x2bad88(200)] = ![];
482
- const _0x246a80 = { "token": _0x4b02fe, "clientId": _0x4595ec["client_id"], "scopes": _0xfc079a["params"][_0x2bad88(162)] || [], "expiresAt": _0x324074["nrkmb"](Date["now"](), this[_0x1b1b3d(214)] * (-5405 + 767 * -11 + 14842)), "extra": _0x4dc148 };
483
- return await this["refreshTokensStore"][_0x1b1b3d(191)](_0x4b02fe, _0x246a80), { "access_token": _0x31ebd7, "refresh_token": _0x4b02fe, "token_type": _0x2bad88(198), "expires_in": this[_0x1b1b3d(144)], "scope": (_0xfc079a["params"]["scopes"] || [])[_0x2bad88(227)](" ") };
484
- }
485
- async ["exchangeRefreshToken"](_0x38369c, _0x1ff00c) {
486
- const _0x3a80b2 = _0x5881e5, _0x37e964 = _0x5881e5, _0x4fa3ce = {};
487
- _0x4fa3ce[_0x3a80b2(145)] = function(_0x114ee1, _0x60ccf) {
488
- return _0x114ee1 !== _0x60ccf;
489
- }, _0x4fa3ce["lkQKy"] = function(_0x4f57d7, _0x1a75ed) {
490
- return _0x4f57d7 + _0x1a75ed;
491
- }, _0x4fa3ce[_0x3a80b2(174)] = function(_0x5cff22, _0x46f97b) {
492
- return _0x5cff22 * _0x46f97b;
493
- }, _0x4fa3ce[_0x3a80b2(172)] = _0x37e964(165);
494
- const _0x2f4f4b = _0x4fa3ce, _0x566584 = await this["refreshTokensStore"][_0x3a80b2(189)](_0x1ff00c);
495
- if (!_0x566584) throw new InvalidGrantError("Refresh token is invalid or has been revoked for this client: " + _0x38369c["client_id"]);
496
- if (_0x566584["expiresAt"] < Date["now"]()) throw new InvalidGrantError("Refresh token has expired for this client: " + _0x38369c["client_id"]);
497
- if (_0x2f4f4b[_0x37e964(145)](_0x566584[_0x3a80b2(177)], _0x38369c[_0x3a80b2(176)])) throw new InvalidGrantError(_0x37e964(234) + _0x38369c["client_id"]);
498
- await this[_0x37e964(223)]["revokeRefreshToken"](_0x1ff00c);
499
- const _0x237710 = this[_0x3a80b2(212)](), _0x4a8c31 = this[_0x37e964(160)](), _0x3b135d = { "token": _0x1ff00c, "clientId": _0x38369c[_0x37e964(176)], "scopes": _0x566584[_0x37e964(162)], "expiresAt": _0x2f4f4b[_0x37e964(229)](Date[_0x37e964(159)](), _0x2f4f4b[_0x37e964(174)](this[_0x37e964(214)], -124 * 7 + 379 * -6 + -19 * -218)) };
500
- return await this["refreshTokensStore"][_0x37e964(191)](_0x1ff00c, _0x3b135d), { "access_token": _0x237710, "refresh_token": _0x4a8c31, "token_type": _0x2f4f4b["hlQlh"], "expires_in": this[_0x3a80b2(144)], "scope": _0x566584["scopes"]["join"](" ") };
501
- }
502
- async ["verifyAccessToken"](_0xbb061) {
503
- const _0x1fd60e = _0x4e9d44, _0x4dbb94 = _0x5881e5, _0x804bae = {};
504
- _0x804bae["izmXQ"] = "Token is invalid", _0x804bae[_0x1fd60e(182)] = function(_0x2c4a0d, _0x206bac) {
505
- return _0x2c4a0d / _0x206bac;
506
- };
507
- const _0x171b25 = _0x804bae, _0x103083 = await this[_0x1fd60e(173)][_0x1fd60e(205)](_0xbb061);
508
- if (!_0x103083 || !_0x103083[_0x4dbb94(156)]) throw new InvalidTokenError(_0x171b25[_0x1fd60e(222)]);
509
- return { "token": _0xbb061, "clientId": _0x103083[_0x4dbb94(177)], "scopes": _0x103083["scopes"], "expiresAt": Math[_0x1fd60e(208)](_0x171b25["dbXwH"](_0x103083["expiresAt"], -3202 + 17 * 523 + -4689)), "resource": _0x103083["resource"] };
510
- }
511
- async [_0x4e9d44(170)](_0x50b7c3, _0x257cce) {
512
- const _0xb99faa = _0x5881e5, _0x4b19e4 = _0x4e9d44, _0x576778 = {};
513
- _0x576778["TNZcy"] = function(_0x1ab946, _0x513555) {
514
- return _0x1ab946 === _0x513555;
515
- }, _0x576778[_0xb99faa(183)] = "access_token", _0x576778[_0x4b19e4(204)] = function(_0x5989e5, _0x452d71) {
516
- return _0x5989e5 !== _0x452d71;
517
- };
518
- const _0x44ea89 = _0x576778;
519
- if (_0x44ea89["TNZcy"](_0x257cce[_0xb99faa(233)], _0x44ea89[_0x4b19e4(183)])) {
520
- const _0x312b70 = await this[_0xb99faa(173)][_0xb99faa(205)](_0x257cce["token"]);
521
- if (!_0x312b70 || _0x44ea89[_0xb99faa(204)](_0x312b70["clientId"], _0x50b7c3[_0x4b19e4(176)])) throw new InvalidTokenError("Access token is invalid or does not belong to this client: " + _0x50b7c3["client_id"]);
522
- await this[_0x4b19e4(173)]["revokeAccessToken"](_0x257cce["token"]);
478
+ const _0xcf6654 = _0x3e04cb, _0x259297 = await this["refreshTokensStore"]["getRefreshToken"](_0x27006f);
479
+ if (!_0x259297) throw new InvalidGrantError(_0x478159(413) + _0x1a781d["client_id"]);
480
+ if (_0xcf6654[_0x4d6ca4(389)](_0x259297["expiresAt"], Date[_0x4d6ca4(354)]())) throw new InvalidGrantError("Refresh token has expired for this client: " + _0x1a781d["client_id"]);
481
+ if (_0x259297["clientId"] !== _0x1a781d[_0x4d6ca4(419)]) throw new InvalidGrantError(_0x478159(350) + _0x1a781d[_0x4d6ca4(419)]);
482
+ await this[_0x478159(361)]["revokeRefreshToken"](_0x27006f);
483
+ const _0x46b77e = this["generateAccessToken"](), _0x336c80 = this[_0x4d6ca4(407)](), _0x91c844 = { "token": _0x27006f, "clientId": _0x1a781d[_0x4d6ca4(419)], "scopes": _0x259297[_0x478159(359)], "expiresAt": _0xcf6654["DRJfV"](Date[_0x4d6ca4(354)](), _0xcf6654[_0x4d6ca4(356)](this[_0x4d6ca4(357)], -8422 * -1 + 5677 + 1 * -13099)) };
484
+ return await this[_0x4d6ca4(361)]["saveRefreshToken"](_0x27006f, _0x91c844), { "access_token": _0x46b77e, "refresh_token": _0x336c80, "token_type": "Bearer", "expires_in": this[_0x478159(412)], "scope": _0x259297["scopes"][_0x4d6ca4(408)](" ") };
485
+ }
486
+ async ["verifyAccessToken"](_0x519a3e) {
487
+ const _0x5d96d0 = _0x27c85b, _0x2a6af1 = _0x27c85b, _0x120462 = {};
488
+ _0x120462[_0x5d96d0(411)] = _0x2a6af1(377);
489
+ const _0x1a8098 = _0x120462, _0x233371 = await this[_0x5d96d0(374)][_0x2a6af1(423)](_0x519a3e);
490
+ if (!_0x233371 || !_0x233371[_0x5d96d0(371)]) throw new InvalidTokenError(_0x1a8098["RmhZb"]);
491
+ return { "token": _0x519a3e, "clientId": _0x233371["clientId"], "scopes": _0x233371[_0x2a6af1(359)], "expiresAt": Math["floor"](_0x233371["expiresAt"] / (1 * 2417 + 1 * 6353 + -518 * 15)), "resource": _0x233371["resource"], "extra": _0x233371["extra"] };
492
+ }
493
+ async [_0x4f289c(428)](_0x585eeb, _0x5888e1) {
494
+ const _0x5b9e9a = _0x27c85b, _0x16b1f8 = _0x27c85b, _0x33affc = {};
495
+ _0x33affc["VNwJm"] = function(_0x2862fc, _0x40c765) {
496
+ return _0x2862fc === _0x40c765;
497
+ }, _0x33affc[_0x5b9e9a(433)] = "access_token", _0x33affc[_0x5b9e9a(396)] = "refresh_token";
498
+ const _0x2b96a6 = _0x33affc;
499
+ if (_0x2b96a6[_0x5b9e9a(430)](_0x5888e1["token_type_hint"], _0x2b96a6["ItKpe"])) {
500
+ const _0x51aa75 = await this["accessTokensStore"]["getAccessToken"](_0x5888e1[_0x16b1f8(385)]);
501
+ if (!_0x51aa75 || _0x51aa75[_0x5b9e9a(391)] !== _0x585eeb[_0x5b9e9a(419)]) throw new InvalidTokenError(_0x16b1f8(400) + _0x585eeb["client_id"]);
502
+ await this["accessTokensStore"]["revokeAccessToken"](_0x5888e1[_0x16b1f8(385)]);
523
503
  } else {
524
- if (_0x44ea89["TNZcy"](_0x257cce["token_type_hint"], "refresh_token")) {
525
- const _0x1656a5 = await this[_0xb99faa(223)][_0x4b19e4(189)](_0x257cce["token"]);
526
- if (!_0x1656a5 || _0x44ea89["XyTlR"](_0x1656a5["clientId"], _0x50b7c3[_0x4b19e4(176)])) throw new InvalidTokenError("Refresh token is invalid or does not belong to this client: " + _0x50b7c3["client_id"]);
527
- await this[_0xb99faa(223)][_0x4b19e4(221)](_0x257cce["token"]);
528
- } else throw new InvalidGrantError("Unsupported token type hint: " + _0x257cce[_0x4b19e4(233)] + _0x4b19e4(180) + _0x50b7c3["client_id"]);
504
+ if (_0x5888e1[_0x5b9e9a(395)] === _0x2b96a6[_0x16b1f8(396)]) {
505
+ const _0x115c98 = await this[_0x16b1f8(361)][_0x16b1f8(368)](_0x5888e1["token"]);
506
+ if (!_0x115c98 || _0x115c98[_0x16b1f8(391)] !== _0x585eeb[_0x5b9e9a(419)]) throw new InvalidTokenError(_0x16b1f8(386) + _0x585eeb[_0x5b9e9a(419)]);
507
+ await this[_0x16b1f8(361)]["revokeRefreshToken"](_0x5888e1["token"]);
508
+ } else throw new InvalidGrantError("Unsupported token type hint: " + _0x5888e1[_0x16b1f8(395)] + _0x5b9e9a(380) + _0x585eeb[_0x5b9e9a(419)]);
529
509
  }
530
510
  }
531
511
  }
532
- const createAuthMiddleware = (_0xf3df04, _0x158e03) => {
533
- const _0x54d4c3 = _0x4e9d44, _0x22639f = { "SEmsY": function(_0x3fd1d0, _0x48c89f) {
534
- return _0x3fd1d0(_0x48c89f);
535
- } }, _0x4ce940 = async (_0x5c8321) => {
536
- const _0x37a4d9 = _0x2b37, _0x16ec2b = _0x2b37, _0x469a0e = await _0xf3df04[_0x37a4d9(193)](_0x5c8321), _0x55b928 = { "active": !![], "client_id": _0x469a0e["clientId"], "scope": _0x469a0e["scopes"][_0x37a4d9(227)](" "), "exp": _0x469a0e["expiresAt"], "aud": _0x469a0e["resource"] };
537
- if (!_0x55b928[_0x16ec2b(150)]) throw new Error(_0x37a4d9(148));
538
- const _0x522888 = {};
539
- _0x522888["requestedResource"] = _0x55b928[_0x16ec2b(150)], _0x522888["configuredResource"] = _0x158e03;
540
- if (!_0x22639f["SEmsY"](checkResourceAllowed, _0x522888)) throw new Error(_0x16ec2b(155) + _0x158e03 + _0x16ec2b(175) + _0x55b928["aud"]);
541
- return { "token": _0x5c8321, "clientId": _0x55b928[_0x37a4d9(176)], "scopes": _0x55b928[_0x16ec2b(163)] ? _0x55b928[_0x37a4d9(163)][_0x16ec2b(232)](" ") : [], "expiresAt": _0x55b928[_0x37a4d9(190)] };
542
- }, _0x1ed4f2 = {};
543
- return _0x1ed4f2["verifyAccessToken"] = _0x4ce940, _0x22639f["SEmsY"](requireBearerAuth, { "verifier": _0x1ed4f2, "requiredScopes": [], "resourceMetadataUrl": _0x22639f[_0x54d4c3(216)](getOAuthProtectedResourceMetadataUrl, new URL(_0x158e03)) });
512
+ const createAuthMiddleware = (_0x4976b7, _0x345a24) => {
513
+ const _0x9e2557 = _0x4f289c, _0x3ed1fb = { "XTXiP": function(_0x3ff663, _0x2ab790) {
514
+ return _0x3ff663(_0x2ab790);
515
+ } }, _0x50ebef = async (_0x10f0a3) => {
516
+ var _a;
517
+ const _0x3a4c75 = _0x5738, _0x415584 = _0x5738, _0x557663 = await _0x4976b7["verifyAccessToken"](_0x10f0a3), _0x325011 = { "active": !![], "client_id": _0x557663["clientId"], "scope": _0x557663[_0x3a4c75(359)][_0x415584(408)](" "), "exp": _0x557663["expiresAt"], "aud": _0x557663["resource"] };
518
+ if (!_0x325011["aud"]) throw new Error(_0x3a4c75(345));
519
+ const _0x52035d = {};
520
+ _0x52035d["requestedResource"] = _0x325011["aud"], _0x52035d["configuredResource"] = _0x345a24;
521
+ if (!checkResourceAllowed(_0x52035d)) throw new Error(_0x3a4c75(381) + _0x345a24 + _0x415584(417) + _0x325011[_0x415584(426)]);
522
+ return { "token": _0x10f0a3, "clientId": _0x325011["client_id"], "scopes": _0x325011["scope"] ? _0x325011["scope"][_0x3a4c75(347)](" ") : [], "expiresAt": _0x325011["exp"], "redirectUri": (_a = _0x557663[_0x415584(352)]) == null ? void 0 : _a["redirectUri"] };
523
+ }, _0x126d54 = {};
524
+ return _0x126d54[_0x9e2557(424)] = _0x50ebef, _0x3ed1fb["XTXiP"](requireBearerAuth, { "verifier": _0x126d54, "requiredScopes": [], "resourceMetadataUrl": _0x3ed1fb["XTXiP"](getOAuthProtectedResourceMetadataUrl, new URL(_0x345a24)) });
544
525
  };
545
- const createAuthCallbackRouter = (_0x533820, ..._0x3d4e6a) => {
546
- const _0x44c5df = _0x5881e5, _0x9e3520 = _0x5881e5, _0x37c704 = {};
547
- _0x37c704[_0x44c5df(228)] = function(_0x273a1b, _0xe94e71) {
548
- return _0x273a1b && _0xe94e71;
526
+ const createAuthCallbackRouter = (_0x385d17, ..._0x390fd2) => {
527
+ const _0xb0a8ef = _0x4f289c, _0x20d228 = _0x4f289c, _0x3e2237 = {};
528
+ _0x3e2237["IssiA"] = function(_0x5044a5, _0x29bfd1) {
529
+ return _0x5044a5 && _0x29bfd1;
549
530
  };
550
- const _0x516c37 = _0x37c704, _0xbc31b = _0x6b975c["Router"](), _0x3c7617 = /* @__PURE__ */ new Map();
551
- _0xbc31b[_0x9e3520(195)](_0x533820, _0x6b975c["json"](), (_0x59ecc7, _0x5170de) => {
552
- const _0x10e0db = _0x44c5df, _0x2a1476 = _0x9e3520, { code: _0x2b6233, state: _0xf67045, error: _0x117717 } = _0x59ecc7["query"];
553
- if (_0x516c37[_0x10e0db(228)](_0x2b6233, _0xf67045)) _0x3c7617["set"](_0xf67045, _0x2b6233), _0x5170de["json"]({});
554
- else _0x117717 && _0x5170de[_0x2a1476(179)](815 * -11 + 31 * -243 + 142 * 119)["send"](_0x2a1476(158) + _0x117717);
531
+ const _0x47e062 = _0x3e2237, _0x25e151 = _0x1ba5a3[_0xb0a8ef(393)](), _0x21fd45 = /* @__PURE__ */ new Map();
532
+ _0x25e151["get"](_0x385d17, _0x1ba5a3[_0xb0a8ef(372)](), (_0x13ec44, _0x3e99a6) => {
533
+ const _0x8d3b94 = _0xb0a8ef, _0x332f8a = _0x20d228, { code: _0x228ff5, state: _0x552812, error: _0x30e522 } = _0x13ec44[_0x8d3b94(416)];
534
+ if (_0x47e062["IssiA"](_0x228ff5, _0x552812)) _0x21fd45["set"](_0x552812, _0x228ff5), _0x3e99a6[_0x8d3b94(372)]({});
535
+ else _0x30e522 && _0x3e99a6[_0x8d3b94(366)](2305 + -4275 + 1 * 2370)[_0x332f8a(402)]("OAuth authorization failed: " + _0x30e522);
555
536
  });
556
- const _0x3a3698 = [_0x6b975c["json"](), ..._0x3d4e6a, (_0x13c9da, _0x1f20f8) => {
557
- const _0x5007ca = _0x9e3520, _0x4e5d5e = _0x44c5df, { state: _0x4c97e0 } = _0x13c9da[_0x5007ca(169)];
558
- if (_0x4c97e0 && _0x3c7617["has"](_0x4c97e0)) {
559
- const _0x314560 = _0x3c7617["get"](_0x4c97e0);
560
- _0x3c7617["delete"](_0x4c97e0);
561
- const _0x3a6bf5 = {};
562
- _0x3a6bf5[_0x4e5d5e(143)] = _0x314560, _0x1f20f8["json"](_0x3a6bf5);
563
- } else _0x1f20f8["status"](8209 + 3274 * -2 + 1 * -1261)["send"]("No authorization code found for state: " + _0x4c97e0);
537
+ const _0x36d338 = [_0x1ba5a3[_0x20d228(372)](), ..._0x390fd2, (_0x5e1b24, _0x1ddfaf) => {
538
+ const _0x47d319 = _0x20d228, _0xc50672 = _0xb0a8ef, { state: _0x5a5e11 } = _0x5e1b24[_0x47d319(398)];
539
+ if (_0x5a5e11 && _0x21fd45["has"](_0x5a5e11)) {
540
+ const _0x40df20 = _0x21fd45["get"](_0x5a5e11);
541
+ _0x21fd45["delete"](_0x5a5e11);
542
+ const _0x25c4e5 = {};
543
+ _0x25c4e5[_0xc50672(410)] = _0x40df20, _0x1ddfaf[_0xc50672(372)](_0x25c4e5);
544
+ } else _0x1ddfaf[_0x47d319(366)](138 * -25 + -1181 + 1677 * 3)["send"](_0x47d319(392) + _0x5a5e11);
564
545
  }];
565
- return _0xbc31b["post"](_0x533820, ..._0x3a3698), _0xbc31b;
546
+ return _0x25e151["post"](_0x385d17, ..._0x36d338), _0x25e151;
566
547
  };
567
- const metadataHandler = (_0x5309c1) => {
568
- const _0x2e6e3e = _0x5881e5, _0x2ae220 = _0x5881e5, _0x28fdbb = { "ewlPd": function(_0xc5602a, _0x280af9) {
569
- return _0xc5602a(_0x280af9);
570
- }, "gJMqp": "GET" }, _0xbaf2c2 = _0x6b975c[_0x2e6e3e(231)]();
571
- return _0xbaf2c2[_0x2ae220(164)](_0x46f055()), _0xbaf2c2[_0x2ae220(164)](_0x28fdbb["ewlPd"](allowedMethods, [_0x28fdbb["gJMqp"]])), _0xbaf2c2[_0x2ae220(164)]("/", (_0x3d018c, _0x2a382b) => {
572
- _0x2a382b["status"](7267 + 356 + -7423)["json"](_0x5309c1);
573
- }), _0xbaf2c2;
548
+ function _0x4ca2() {
549
+ const _0x273b7b = ["deleteClient", "ItKpe", "58213QdubMn", "issuer", "generateAccessToken", "Authorization code was not issued to this client: ", "THtZy", "309304uJgGPc", "650586YkQhCn", "generateAuthorizationCode", "WbEUC", "Resource Indicator (RFC8707) missing", "saveCodeData", "split", "/.well-known/oauth-protected-resource", "saveRefreshToken", "Refresh token was not issued to this client: ", "search", "extra", "Invalid authorization code for this client: ", "now", "redirect", "DdiDW", "refreshTokenExpiresIn", "35GscyjL", "scopes", "toString", "refreshTokensStore", "DRJfV", "1222270BhrteE", "get", "2JEGwTi", "status", "saveAccessToken", "getRefreshToken", "params", "revokeRefreshToken", "expiresAt", "json", "995164kgcxSY", "accessTokensStore", "codeChallenge", "codesStore", "Token is invalid", "ZXMTG", "hpQMb", " to this client: ", "Expected resource indicator ", "challengeForAuthorizationCode", "authorize", "redirect_uris", "token", "Refresh token is invalid or does not belong to this client: ", "bearer", "169281FmVANd", "POOxX", "wBcEJ", "clientId", "No authorization code found for state: ", "Router", "redirectUri", "token_type_hint", "JSdBP", "randomBytes", "body", "1120656Arlgdu", "Access token is invalid or does not belong to this client: ", "deleteCodeData", "send", "10EFrFLG", "dHuiq", "exchangeAuthorizationCode", "use", "generateRefreshToken", "join", "EslVC", "code", "RmhZb", "accessTokenExpiresIn", "Refresh token is invalid or has been revoked for this client: ", "delete", "kxhTT", "query", ", got: ", "clients", "client_id", "state", "/.well-known/oauth-authorization-server", "set", "getAccessToken", "verifyAccessToken", "codes", "aud", "refreshTokens", "revokeToken", "gNROD", "VNwJm", "client"];
550
+ _0x4ca2 = function() {
551
+ return _0x273b7b;
552
+ };
553
+ return _0x4ca2();
554
+ }
555
+ const metadataHandler = (_0x16cd97) => {
556
+ const _0x173faa = _0x4f289c, _0x29b53f = _0x27c85b, _0x702826 = { "wBcEJ": function(_0x5bc079) {
557
+ return _0x5bc079();
558
+ }, "UZDZv": "GET" }, _0x6a802d = _0x1ba5a3["Router"]();
559
+ return _0x6a802d["use"](_0x702826[_0x173faa(390)](_0x42d1ae)), _0x6a802d["use"](allowedMethods([_0x702826["UZDZv"]])), _0x6a802d[_0x29b53f(406)]("/", (_0x4b8b3f, _0x57e378) => {
560
+ _0x57e378["status"](-2898 * 1 + 4386 + -1288)["json"](_0x16cd97);
561
+ }), _0x6a802d;
574
562
  };
575
- const createAuthMetadataRouter = (_0x4f78e8, _0x21b5ab, _0x55edf7) => {
576
- const _0x5bbfce = _0x5881e5, _0x407f4b = _0x4e9d44, _0x556047 = { "LahiK": _0x5bbfce(207), "HoeCA": function(_0x2da314, _0x2de64d) {
577
- return _0x2da314(_0x2de64d);
578
- } }, _0x325724 = _0x6b975c[_0x407f4b(231)](), _0x3172ba = createOAuthMetadata({ "provider": _0x4f78e8, "issuerUrl": new URL(_0x21b5ab) }), _0x12cc3e = { "resource": new URL(_0x55edf7)["href"], "authorization_servers": [_0x3172ba["issuer"]] };
579
- return _0x325724[_0x407f4b(164)]("/.well-known/oauth-protected-resource", metadataHandler(_0x12cc3e)), _0x325724["use"](_0x556047[_0x407f4b(225)], _0x556047[_0x5bbfce(202)](metadataHandler, _0x3172ba)), _0x325724;
563
+ const createAuthMetadataRouter = (_0x406d6e, _0x2ab56f, _0x296201) => {
564
+ const _0x13f907 = _0x4f289c, _0x588652 = _0x4f289c, _0x11d350 = { "aUtvX": function(_0x5bd16c, _0x3241ac) {
565
+ return _0x5bd16c(_0x3241ac);
566
+ }, "hpQMb": _0x13f907(348), "THtZy": _0x13f907(421) }, _0x2a7b57 = _0x1ba5a3[_0x13f907(393)](), _0x5c14c7 = _0x11d350["aUtvX"](createOAuthMetadata, { "provider": _0x406d6e, "issuerUrl": new URL(_0x2ab56f) }), _0x2c1bf4 = { "resource": new URL(_0x296201)["href"], "authorization_servers": [_0x5c14c7[_0x13f907(435)]] };
567
+ return _0x2a7b57[_0x588652(406)](_0x11d350[_0x588652(379)], _0x11d350["aUtvX"](metadataHandler, _0x2c1bf4)), _0x2a7b57[_0x588652(406)](_0x11d350[_0x13f907(340)], metadataHandler(_0x5c14c7)), _0x2a7b57;
580
568
  };
581
- const createAuthRouter = (_0x503c8b) => {
582
- const _0xb2fb2b = { "GKiYF": function(_0x1d197b, _0x2d00b8) {
583
- return _0x1d197b(_0x2d00b8);
569
+ const createAuthRouter = (_0x21f432) => {
570
+ const _0x2af24a = _0x27c85b, _0x5d02c1 = { "EslVC": function(_0x5086c3, _0x2dfe11) {
571
+ return _0x5086c3(_0x2dfe11);
584
572
  } };
585
- return _0xb2fb2b["GKiYF"](mcpAuthRouter, _0x503c8b);
573
+ return _0x5d02c1[_0x2af24a(409)](mcpAuthRouter, _0x21f432);
586
574
  };
587
- const _0x3e1736 = _0x2f7b, _0x81757 = _0x2f7b;
588
- (function(_0x1374da, _0x1a8ed9) {
589
- const _0x193023 = _0x2f7b, _0x9e58d1 = _0x2f7b, _0x503462 = _0x1374da();
575
+ function _0x52c6() {
576
+ const _0x439ef1 = ["clientSessions", "allSettled", "completions", "ECnDb", "pSeJH", "prompts", "Allow", "version", "writeHead", "bIWcn", "mcp-server", "roots", "user", "sampling", "transport", "1.0.0", "event: close\ndata: \n\n", "tools", "hZKhj", "forEach", "cmFzA", "nCrwA", "jlJyR", "9131868HdwBlj", "auth", "initialize", "Method not allowed.", "close", "logging", "end", "qfAwp", "_sseResponse", "No client found for session ID ", "Internal server error", "rsQQt", "Invalid or missing session ID", "body", "2898986xCDZlF", "mcp-stream-proxy-server", "mcp-session-id", "capabilities", "params", "onerror", "HGCzN", "HhAxF", "client", "connect", "POST", "8912645hTBRuD", "KMbUG", "axyYw", "yWHog", "shouldClose", "server", "SSE", "onRemoterError", "protocolVersion", "json", "includes", "BziWR", "75260CBUrtR", "sessionId", "details", "handleStreamInspector", "gSYHi", "716buJdhN", "1548xdKZTF", "2.0", "type", "verify", "set", "transports", "x-forwarded-for", "clients", "_requestHandlers", "217uzhJsK", "message", "raqFy", "3126RcLxQD", "IIRYw", "headers", "PzXZN", "fulfilled", "SwShd", "brEPQ", "resources", "elicitation", "Dbvnn", "mcpServer", "_sessionId", "HvRHL", "subscribe", "sse-session-id", "listChanged", "jGlwo", "dbAQN", "62679034pRdoDC", "handleSseMessage", "1hzHwJw", "pcDEc", "method", "write", "bxdHV", "send", "push", "name", "handleStreamRequest", "error", "keys", "ping", "GET", "referer", "jsonrpc", "code", "HOJlP", "map", "DELETE", "removeRequestListener", "gyQZO", "377144FmDxyG", "GKIhY", "lVnwc", "value", "status", "handleRequest", "handleSseProxy", "notifications/initialized"];
577
+ _0x52c6 = function() {
578
+ return _0x439ef1;
579
+ };
580
+ return _0x52c6();
581
+ }
582
+ const _0x20a06a = _0x46ad, _0x294689 = _0x46ad;
583
+ (function(_0x3fbcd0, _0x537973) {
584
+ const _0x1b7fd1 = _0x46ad, _0x38e9b9 = _0x46ad, _0x28dfb2 = _0x3fbcd0();
590
585
  while (!![]) {
591
586
  try {
592
- const _0x5eda81 = parseInt(_0x193023(319)) / (-3489 + 224 * -7 + -1 * -5058) + parseInt(_0x9e58d1(421)) / (-2 * -233 + 1006 + 35 * -42) + -parseInt(_0x9e58d1(343)) / (-1 * -8804 + -5 * 1069 + -216 * 16) * (parseInt(_0x9e58d1(356)) / (5153 * -1 + -1851 + -876 * -8)) + parseInt(_0x193023(392)) / (-1 * -6679 + -339 * -9 + 1 * -9725) + parseInt(_0x9e58d1(363)) / (-7612 + 3459 + 4159) * (parseInt(_0x193023(420)) / (-9281 + 7745 + 1543)) + -parseInt(_0x9e58d1(369)) / (1 * 2549 + 845 + -3386) * (-parseInt(_0x9e58d1(400)) / (-3 * 1421 + 5940 + -1668)) + -parseInt(_0x193023(374)) / (-12 * 406 + 5556 + -674) * (parseInt(_0x9e58d1(410)) / (77 * -27 + 2969 * 2 + -3848));
593
- if (_0x5eda81 === _0x1a8ed9) break;
594
- else _0x503462["push"](_0x503462["shift"]());
595
- } catch (_0x48c034) {
596
- _0x503462["push"](_0x503462["shift"]());
587
+ const _0x203043 = -parseInt(_0x1b7fd1(263)) / (9927 + -6422 + -16 * 219) * (parseInt(_0x1b7fd1(202)) / (-5979 * 1 + -8270 + -14251 * -1)) + parseInt(_0x1b7fd1(243)) / (-1130 * -7 + 11 * 98 + -5 * 1797) * (-parseInt(_0x38e9b9(230)) / (1 * -3694 + -5961 + 9659)) + -parseInt(_0x38e9b9(213)) / (167 + 2490 + 12 * -221) + -parseInt(_0x1b7fd1(315)) / (3789 + -371 * 14 + -1 * -1411) + parseInt(_0x38e9b9(240)) / (-947 * -1 + -16 * 25 + 36 * -15) * (parseInt(_0x1b7fd1(284)) / (15 * -572 + -370 + 8958)) + parseInt(_0x38e9b9(231)) / (3 * 1049 + 22 * 263 + 97 * -92) * (-parseInt(_0x38e9b9(225)) / (-51 * 46 + 3507 * 1 + -1151)) + parseInt(_0x38e9b9(261)) / (111 * -71 + 9481 + -1589);
588
+ if (_0x203043 === _0x537973) break;
589
+ else _0x28dfb2["push"](_0x28dfb2["shift"]());
590
+ } catch (_0x4699a4) {
591
+ _0x28dfb2["push"](_0x28dfb2["shift"]());
597
592
  }
598
593
  }
599
- })(_0x6b51, -575209 * 1 + 1045640 + 277882 * 1);
600
- function _0x2f7b(_0x37a693, _0x3ad569) {
601
- const _0x1268fe = _0x6b51();
602
- return _0x2f7b = function(_0x239d2d, _0x3788e6) {
603
- _0x239d2d = _0x239d2d - (3295 + -4673 + 6 * 281);
604
- let _0x12060f = _0x1268fe[_0x239d2d];
605
- return _0x12060f;
606
- }, _0x2f7b(_0x37a693, _0x3ad569);
594
+ })(_0x52c6, 1 * -945178 + 130 * -4808 + 2494755);
595
+ function _0x46ad(_0x4a052d, _0x3a738d) {
596
+ const _0x1bb64c = _0x52c6();
597
+ return _0x46ad = function(_0x29dc2f, _0x219f82) {
598
+ _0x29dc2f = _0x29dc2f - (10 * 827 + 1 * 1223 + 3097 * -3);
599
+ let _0x3d4d7b = _0x1bb64c[_0x29dc2f];
600
+ return _0x3d4d7b;
601
+ }, _0x46ad(_0x4a052d, _0x3a738d);
607
602
  }
608
- const auth = ({ secret: _0x522e9e }) => (_0x2da066, _0x63a239, _0x3fad67) => {
603
+ const auth = ({ secret: _0x1876fa }) => (_0x3a27be, _0x4fbb72, _0xa4e5b5) => {
609
604
  var _a;
610
- const _0x2a317d = _0x2f7b, _0x362bc1 = _0x2f7b, _0xbcde2b = {};
611
- _0xbcde2b[_0x2a317d(350)] = _0x362bc1(323), _0xbcde2b[_0x362bc1(403)] = "Invalid bearer token";
612
- const _0x3a590b = _0xbcde2b, _0x3d6a7d = (_a = _0x2da066["headers"][_0x2a317d(330)]) == null ? void 0 : _a[_0x362bc1(315)](" ")[8451 + 9456 + -17906];
613
- if (!_0x3d6a7d) {
614
- _0x63a239[_0x2a317d(353)](-1 * 877 + -8 * 548 + 5662)["send"](_0x3a590b[_0x2a317d(350)]);
605
+ const _0x2630dd = _0x46ad, _0xfb8b34 = _0x46ad, _0xdf2662 = {};
606
+ _0xdf2662["Dbvnn"] = "Missing bearer token", _0xdf2662["lVnwc"] = "Invalid bearer token";
607
+ const _0x2303c8 = _0xdf2662, _0x3f9aed = (_a = _0x3a27be["headers"]["authorization"]) == null ? void 0 : _a["split"](" ")[67 * 37 + -291 * -17 + -7425];
608
+ if (!_0x3f9aed) {
609
+ _0x4fbb72["status"](1761 + 8167 * 1 + 1361 * -7)[_0x2630dd(268)](_0x2303c8[_0x2630dd(252)]);
615
610
  return;
616
611
  }
617
612
  try {
618
- _0x2da066["user"] = _0x1323d6["verify"](_0x3d6a7d, _0x522e9e), _0x3fad67();
619
- } catch (_0x420789) {
620
- const _0x5d73ba = {};
621
- _0x5d73ba["error"] = _0x3a590b[_0x362bc1(403)], _0x5d73ba[_0x2a317d(428)] = _0x420789[_0x2a317d(327)], _0x63a239["status"](565 + 9749 * 1 + -583 * 17)["json"](_0x5d73ba);
613
+ _0x3a27be["user"] = _0x93d5a6[_0x2630dd(234)](_0x3f9aed, _0x1876fa), _0xa4e5b5();
614
+ } catch (_0x305aa7) {
615
+ const _0x29550d = {};
616
+ _0x29550d[_0x2630dd(272)] = _0x2303c8[_0xfb8b34(286)], _0x29550d[_0xfb8b34(227)] = _0x305aa7[_0xfb8b34(241)], _0x4fbb72[_0xfb8b34(288)](1 * -6821 + -719 + 7943)[_0xfb8b34(222)](_0x29550d);
622
617
  }
623
618
  };
624
- const getDeviceInfo = (_0x359b5a) => ({ "ip": _0x359b5a["headers"]["x-forwarded-for"] || _0x359b5a["ip"] || "", "userAgent": _0x359b5a["headers"]["user-agent"] || "", "acceptLanguage": _0x359b5a["headers"]["accept-language"] || "", "referer": _0x359b5a[_0x3e1736(344)][_0x3e1736(361)] || "" }), forwardProxyServer = (_0x4fbbf7, _0x55fb26) => {
625
- const _0xccabab = _0x81757, _0x254223 = _0x3e1736, _0x54360e = { "IBiUI": function(_0x18dca1, _0x2aa65e, _0x3c86d0) {
626
- return _0x18dca1(_0x2aa65e, _0x3c86d0);
619
+ const getDeviceInfo = (_0x5ddeb2) => ({ "ip": _0x5ddeb2[_0x20a06a(245)][_0x20a06a(237)] || _0x5ddeb2["ip"] || "", "userAgent": _0x5ddeb2["headers"]["user-agent"] || "", "acceptLanguage": _0x5ddeb2[_0x20a06a(245)]["accept-language"] || "", "referer": _0x5ddeb2[_0x294689(245)][_0x294689(276)] || "" }), forwardProxyServer = (_0x408e33, _0x3d3116) => {
620
+ const _0x29bd7e = _0x20a06a, _0x387a62 = _0x294689, _0x2eab7f = { "raqFy": function(_0x16cd0a, _0x3f3e27, _0x1d6e3a) {
621
+ return _0x16cd0a(_0x3f3e27, _0x1d6e3a);
627
622
  } };
628
- forwardServerOnRequest(_0x4fbbf7, _0x55fb26), forwardServerOnNotification(_0x4fbbf7, _0x55fb26);
629
- const _0x2ff679 = _0x54360e["IBiUI"](forwardClientOnRequest, _0x55fb26, _0x4fbbf7), _0x7ac9b8 = forwardClientOnNotification(_0x55fb26, _0x4fbbf7);
630
- _0x55fb26[_0xccabab(320)](_0x2ff679), _0x55fb26[_0xccabab(331)](_0x7ac9b8), _0x4fbbf7[_0xccabab(339)] = () => {
631
- const _0x325f2d = _0x254223;
632
- _0x55fb26["removeRequestListener"](_0x2ff679), _0x55fb26[_0x325f2d(391)](_0x7ac9b8);
623
+ _0x2eab7f[_0x29bd7e(242)](forwardServerOnRequest, _0x408e33, _0x3d3116), _0x2eab7f["raqFy"](forwardServerOnNotification, _0x408e33, _0x3d3116);
624
+ const _0x247b0b = _0x2eab7f[_0x387a62(242)](forwardClientOnRequest, _0x3d3116, _0x408e33), _0x538a1e = _0x2eab7f[_0x387a62(242)](forwardClientOnNotification, _0x3d3116, _0x408e33);
625
+ _0x3d3116["addRequestListener"](_0x247b0b), _0x3d3116["addNotificationListener"](_0x538a1e), _0x408e33["onclose"] = () => {
626
+ const _0x1a89c1 = _0x387a62;
627
+ _0x3d3116[_0x1a89c1(282)](_0x247b0b), _0x3d3116["removeNotificationListener"](_0x538a1e);
628
+ };
629
+ }, initTwinClientHandler = (_0xa5328e, _0x5a76ba) => {
630
+ const _0x515cc5 = _0x20a06a, _0x1dae9a = _0x294689, _0x129c13 = {};
631
+ _0x129c13["rcraz"] = _0x515cc5(291), _0x129c13[_0x515cc5(249)] = function(_0x22b4cc, _0x3d4a15) {
632
+ return _0x22b4cc instanceof _0x3d4a15;
633
633
  };
634
- }, initTwinClientHandler = (_0x54589c, _0x2855d0) => {
635
- const _0x24c013 = _0x3e1736, _0x42378e = _0x3e1736, _0x3cd2f9 = { "IcHpP": _0x24c013(401), "XovhO": _0x42378e(324), "VcBKB": _0x24c013(316), "CGcoc": function(_0xa9c7c2, _0x58d5d2) {
636
- return _0xa9c7c2 instanceof _0x58d5d2;
637
- }, "EypRd": function(_0x50a56b, _0x236374, _0x17d617) {
638
- return _0x50a56b(_0x236374, _0x17d617);
639
- } }, _0x2a4b41 = () => {
640
- const _0x29f855 = _0x24c013, _0x8d8298 = _0x42378e, _0xb6188b = {};
641
- _0xb6188b["listChanged"] = !![];
642
- const _0x2803a7 = {};
643
- _0x2803a7["subscribe"] = !![], _0x2803a7[_0x29f855(393)] = !![];
644
- const _0x960712 = {};
645
- _0x960712["listChanged"] = !![];
646
- const _0x25f58a = {};
647
- _0x25f58a[_0x29f855(309)] = _0xb6188b, _0x25f58a["resources"] = _0x2803a7, _0x25f58a[_0x8d8298(380)] = _0x960712, _0x25f58a[_0x8d8298(367)] = {}, _0x25f58a[_0x8d8298(407)] = {};
648
- const _0x53ea52 = _0x25f58a, _0x5ed97b = {};
649
- _0x5ed97b[_0x29f855(336)] = _0x29f855(397), _0x5ed97b[_0x29f855(310)] = "1.0.0", _0x54589c["_requestHandlers"]["set"](_0x3cd2f9["IcHpP"], (_0x3b61ef) => ({ "protocolVersion": _0x3b61ef[_0x29f855(430)]["protocolVersion"], "capabilities": _0x53ea52, "serverInfo": _0x5ed97b })), _0x54589c[_0x29f855(332)]["set"](_0x3cd2f9["XovhO"], () => {
634
+ const _0x366115 = _0x129c13, _0xa89204 = () => {
635
+ const _0x2f8a67 = _0x515cc5, _0x164caa = _0x515cc5, _0x151499 = {};
636
+ _0x151499["listChanged"] = !![];
637
+ const _0x3695f8 = {};
638
+ _0x3695f8[_0x2f8a67(256)] = !![], _0x3695f8["listChanged"] = !![];
639
+ const _0xd183f1 = {};
640
+ _0xd183f1[_0x2f8a67(258)] = !![];
641
+ const _0x50df50 = {};
642
+ _0x50df50["prompts"] = _0x151499, _0x50df50["resources"] = _0x3695f8, _0x50df50[_0x164caa(309)] = _0xd183f1, _0x50df50["completions"] = {}, _0x50df50[_0x164caa(320)] = {};
643
+ const _0x2793e1 = _0x50df50, _0x3af332 = {};
644
+ _0x3af332[_0x164caa(270)] = _0x2f8a67(302), _0x3af332[_0x164caa(299)] = _0x164caa(307), _0xa5328e[_0x2f8a67(239)]["set"](_0x164caa(317), (_0xd67aec) => ({ "protocolVersion": _0xd67aec[_0x164caa(206)][_0x2f8a67(221)], "capabilities": _0x2793e1, "serverInfo": _0x3af332 })), _0xa5328e["_notificationHandlers"][_0x164caa(235)](_0x366115["rcraz"], () => {
650
645
  });
651
- }, _0x218e61 = () => {
652
- const _0x380295 = _0x42378e;
653
- _0x3cd2f9["CGcoc"](_0x2855d0, SSEServerTransport) && (_0x2855d0[_0x380295(337)] = () => {
646
+ }, _0x57bfbe = () => {
647
+ const _0x47ccda = _0x515cc5, _0x3e27a5 = _0x1dae9a, _0x220345 = {};
648
+ _0x220345[_0x47ccda(285)] = _0x3e27a5(308);
649
+ const _0x5011fa = _0x220345;
650
+ _0x366115["brEPQ"](_0x5a76ba, SSEServerTransport) && (_0x5a76ba["close"] = () => {
654
651
  var _a, _b;
655
- const _0xd93343 = _0x380295;
656
- return (_a = _0x2855d0["_sseResponse"]) == null ? void 0 : _a[_0xd93343(414)](_0x3cd2f9[_0xd93343(405)])["end"](), _0x2855d0[_0xd93343(384)] = void 0, (_b = _0x2855d0["onclose"]) == null ? void 0 : _b.call(_0x2855d0), Promise[_0xd93343(390)]();
652
+ const _0x1f3c83 = _0x3e27a5;
653
+ return (_a = _0x5a76ba["_sseResponse"]) == null ? void 0 : _a[_0x1f3c83(266)](_0x5011fa[_0x1f3c83(285)])["end"](), _0x5a76ba[_0x1f3c83(323)] = void 0, (_b = _0x5a76ba["onclose"]) == null ? void 0 : _b.call(_0x5a76ba), Promise["resolve"]();
657
654
  });
658
- }, _0x4187b6 = {};
659
- _0x4187b6["beforeInit"] = _0x2a4b41, _0x4187b6[_0x24c013(341)] = _0x218e61, _0x3cd2f9[_0x42378e(425)](initClientHandler, _0x54589c, _0x4187b6);
655
+ }, _0x250d0c = {};
656
+ _0x250d0c["beforeInit"] = _0xa89204, _0x250d0c["afterInit"] = _0x57bfbe, initClientHandler(_0xa5328e, _0x250d0c);
660
657
  };
661
658
  const useProxyHandles = () => {
662
- const _0x366cc9 = _0x3e1736, _0x45f122 = _0x81757, _0x3bd65f = { "Lndqr": function(_0x14371b, _0x1c681f) {
663
- return _0x14371b(_0x1c681f);
664
- }, "jiGQt": _0x366cc9(359), "FCEDe": "sse-session-id", "UWXex": "close", "sjrOH": "mcp-sse-twin-client", "tOrTB": function(_0x22ccfe, _0xfaf819) {
665
- return _0x22ccfe(_0xfaf819);
666
- }, "IBanx": "mcp-sse-proxy-server", "dMURb": _0x366cc9(404), "IsLWU": function(_0x535c39, _0x3bdf42, _0x57daa9) {
667
- return _0x535c39(_0x3bdf42, _0x57daa9);
668
- }, "CcOpT": function(_0x50e61c, _0x1d2b45) {
669
- return _0x50e61c === _0x1d2b45;
670
- }, "MnmYe": function(_0x45a9d1, _0x4099c4) {
671
- return _0x45a9d1 === _0x4099c4;
672
- }, "Zmjjs": "GET", "xrxSg": "DELETE", "Hrtvy": function(_0x30efd3, _0x39add5, _0x24cb21) {
673
- return _0x30efd3(_0x39add5, _0x24cb21);
674
- }, "hCjHy": _0x366cc9(408), "JuViw": _0x45f122(342), "Isgge": function(_0x47474d, _0x5b9651) {
675
- return _0x47474d(_0x5b9651);
676
- }, "xmKBD": "StreamableHTTP", "mIkYm": function(_0x41da88, _0x2c0a8f) {
677
- return _0x41da88(_0x2c0a8f);
678
- }, "gFkTc": "mcp-stream-twin-client", "RcENs": function(_0x1211bd, _0x2a2bae, _0x5642ba) {
679
- return _0x1211bd(_0x2a2bae, _0x5642ba);
680
- }, "CFhYM": function(_0x3e9ce1, _0x116f59) {
681
- return _0x3e9ce1(_0x116f59);
682
- }, "MCyPx": _0x366cc9(317), "HjNnp": _0x366cc9(373), "URNvt": function(_0x1d96ed, _0x244aa6, _0xf00629) {
683
- return _0x1d96ed(_0x244aa6, _0xf00629);
684
- }, "aAlJA": function(_0x3924a3, _0x27de42) {
685
- return _0x3924a3 === _0x27de42;
686
- }, "spzPF": function(_0x5684ee, _0x383411, _0x595e92) {
687
- return _0x5684ee(_0x383411, _0x595e92);
688
- }, "KVwnS": "Invalid or missing session ID", "poUzV": function(_0xdb217d, _0x10b16a) {
689
- return _0xdb217d(_0x10b16a);
690
- }, "AwNKh": function(_0x47f844, _0x36bac2, _0x29ed61) {
691
- return _0x47f844(_0x36bac2, _0x29ed61);
692
- }, "GGSyp": _0x366cc9(406), "ufHqk": function(_0x29fef5, _0x2ad43f) {
693
- return _0x29fef5 !== _0x2ad43f;
694
- } }, _0x5e15f9 = {}, _0x2dffd2 = {}, _0x10216e = {}, _0xe7dee8 = {};
695
- let _0x53a5d2 = () => {
659
+ const _0x76a38c = _0x20a06a, _0x51262c = _0x20a06a, _0x35bafb = { "HGCzN": function(_0x2e02fd, _0x46b511) {
660
+ return _0x2e02fd(_0x46b511);
661
+ }, "dbAQN": _0x76a38c(257), "JcfPn": "mcp-sse-twin-client", "pSeJH": "1.0.0", "tJNRe": function(_0xb38d1c, _0x58b5e7) {
662
+ return _0xb38d1c(_0x58b5e7);
663
+ }, "WYlPz": _0x51262c(219), "KgkaV": function(_0x5595af, _0x3136f8, _0x45555f) {
664
+ return _0x5595af(_0x3136f8, _0x45555f);
665
+ }, "axyYw": _0x76a38c(319), "sDlMU": function(_0x27042f, _0x5ff4b9) {
666
+ return _0x27042f(_0x5ff4b9);
667
+ }, "gyQZO": "No transport found", "aPbtV": function(_0x425111, _0x4422eb) {
668
+ return _0x425111 === _0x4422eb;
669
+ }, "nCrwA": _0x51262c(212), "jlJyR": function(_0x457260, _0x228947) {
670
+ return _0x457260 === _0x228947;
671
+ }, "cmFzA": _0x76a38c(275), "SwShd": _0x76a38c(281), "HIkJt": function(_0x49c7ef, _0x71802a) {
672
+ return _0x49c7ef(_0x71802a);
673
+ }, "HhAxF": "GET, POST, DELETE", "uixmn": _0x76a38c(232), "xLWyK": function(_0x4b2aab, _0x1ec110) {
674
+ return _0x4b2aab === _0x1ec110;
675
+ }, "bIWcn": "text/event-stream", "hZKhj": function(_0x422a3e, _0x26bd1f) {
676
+ return _0x422a3e === _0x26bd1f;
677
+ }, "pcDEc": function(_0x4bf747) {
678
+ return _0x4bf747();
679
+ }, "aWvfb": "Invalid or missing session ID", "nHfJw": function(_0x5027c8, _0x3557f6) {
680
+ return _0x5027c8(_0x3557f6);
681
+ }, "HvRHL": "StreamableHTTP", "yWHog": "mcp-session-id", "xJOKW": "stream-session-id", "BziWR": "mcp-stream-twin-client", "rsQQt": function(_0x5e9790, _0x3c8135, _0x2bd0dd) {
682
+ return _0x5e9790(_0x3c8135, _0x2bd0dd);
683
+ }, "bxdHV": function(_0x468588, _0x4ee8e3) {
684
+ return _0x468588(_0x4ee8e3);
685
+ }, "ivJNB": "Bad Request: No valid session ID provided", "ECnDb": function(_0x35f2c7, _0x48e69a) {
686
+ return _0x35f2c7(_0x48e69a);
687
+ }, "HuQqg": _0x76a38c(203), "gSYHi": "Internal server error", "HNJCu": function(_0x5371a6, _0x9f321f) {
688
+ return _0x5371a6 !== _0x9f321f;
689
+ }, "jGlwo": function(_0x35dde4, _0x3469c7) {
690
+ return _0x35dde4 !== _0x3469c7;
691
+ }, "IIRYw": function(_0x3e617b, _0x5a5083) {
692
+ return _0x3e617b === _0x5a5083;
693
+ }, "KMbUG": _0x51262c(247), "HOJlP": function(_0x58bba3, _0x3f1e4b) {
694
+ return _0x58bba3 === _0x3f1e4b;
695
+ } }, _0x20f02f = {}, _0x444bf8 = {}, _0x283b90 = {}, _0x1af8fb = {};
696
+ let _0x255a21 = () => {
696
697
  };
697
- const _0x1a3cee = (_0x209f7e) => {
698
- _0x53a5d2 = _0x209f7e;
698
+ const _0x3fabb8 = (_0x508066) => {
699
+ _0x255a21 = _0x508066;
699
700
  };
700
- let _0x2b24ac = () => {
701
+ let _0x451ac6 = () => {
701
702
  };
702
- const _0x998834 = (_0x4d8bcf) => {
703
- _0x2b24ac = _0x4d8bcf;
704
- }, _0x18e4be = async (_0x343925, _0x41cf43, _0x1ed22e) => {
705
- const _0xf98538 = _0x45f122, _0x12cc03 = _0x366cc9, _0x50a952 = new SSEServerTransport(_0x1ed22e, _0x41cf43), _0x366bd8 = _0x343925["headers"][_0x3bd65f[_0xf98538(416)]];
706
- _0x366bd8 && (_0x50a952["_sessionId"] = _0x366bd8);
707
- const _0xdc067e = _0x50a952["sessionId"];
708
- _0x5e15f9[_0xdc067e] = _0x50a952, _0x343925["on"](_0x3bd65f["UWXex"], () => {
709
- const _0x1387f9 = _0xf98538;
710
- _0x50a952[_0x1387f9(337)](), delete _0x5e15f9[_0xdc067e], delete _0x2dffd2[_0xdc067e];
703
+ const _0x320940 = (_0x562564) => {
704
+ _0x451ac6 = _0x562564;
705
+ }, _0x31ee3c = async (_0x2d5107, _0x29e397, _0x451d88) => {
706
+ const _0x226402 = _0x76a38c, _0x2026ef = _0x51262c, _0x2ee668 = new SSEServerTransport(_0x451d88, _0x29e397), _0x4554e2 = _0x2d5107[_0x226402(245)][_0x35bafb[_0x226402(260)]];
707
+ _0x4554e2 && (_0x2ee668[_0x226402(254)] = _0x4554e2);
708
+ const _0xe06ac6 = _0x2ee668[_0x226402(226)];
709
+ _0x20f02f[_0xe06ac6] = _0x2ee668, _0x2d5107["on"](_0x2026ef(319), () => {
710
+ _0x2ee668["close"](), delete _0x20f02f[_0xe06ac6], delete _0x444bf8[_0xe06ac6];
711
711
  });
712
- const _0x131448 = {};
713
- _0x131448["listChanged"] = !![];
714
- const _0x96970b = {};
715
- _0x96970b["subscribe"] = !![], _0x96970b["listChanged"] = !![];
716
- const _0x8bdd69 = {};
717
- _0x8bdd69[_0x12cc03(393)] = !![];
718
- const _0x5b240b = {};
719
- _0x5b240b[_0xf98538(393)] = !![];
720
- const _0x37e102 = {};
721
- _0x37e102[_0xf98538(309)] = _0x131448, _0x37e102[_0x12cc03(411)] = _0x96970b, _0x37e102[_0xf98538(380)] = _0x8bdd69, _0x37e102["completions"] = {}, _0x37e102[_0xf98538(407)] = {}, _0x37e102[_0xf98538(375)] = _0x5b240b, _0x37e102["sampling"] = {}, _0x37e102[_0x12cc03(413)] = {};
722
- const _0x3fb912 = _0x37e102, _0x325ed2 = {};
723
- _0x325ed2["name"] = _0x3bd65f[_0xf98538(357)], _0x325ed2[_0x12cc03(310)] = _0xf98538(404);
724
- const _0x1286b7 = {};
725
- _0x1286b7[_0x12cc03(381)] = _0x3fb912;
726
- const _0x52b902 = new Client(_0x325ed2, _0x1286b7);
727
- _0x2dffd2[_0xdc067e] = { "client": _0x52b902, "transport": _0x50a952, "user": _0x343925["auth"] || _0x343925["user"], "device": _0x3bd65f["tOrTB"](getDeviceInfo, _0x343925), "type": "SSE" }, _0x50a952["onerror"] = (_0x1442fa) => {
728
- const _0x183df2 = _0x12cc03;
729
- _0x3bd65f[_0x183df2(370)](_0x53a5d2, { "client": _0x52b902, "transport": _0x50a952, "error": _0x1442fa, "type": _0x3bd65f[_0x183df2(335)] });
730
- }, initTwinClientHandler(_0x52b902, _0x50a952), await _0x52b902[_0xf98538(312)](_0x50a952);
731
- }, _0x385d91 = async (_0x38e7b6, _0x596c71, _0x4353f8) => {
712
+ const _0x1ce9f1 = {};
713
+ _0x1ce9f1[_0x226402(258)] = !![];
714
+ const _0x25acb5 = {};
715
+ _0x25acb5[_0x2026ef(256)] = !![], _0x25acb5["listChanged"] = !![];
716
+ const _0x293dd5 = {};
717
+ _0x293dd5[_0x226402(258)] = !![];
718
+ const _0x43b120 = {};
719
+ _0x43b120["listChanged"] = !![];
720
+ const _0x408bcc = {};
721
+ _0x408bcc[_0x226402(297)] = _0x1ce9f1, _0x408bcc[_0x2026ef(250)] = _0x25acb5, _0x408bcc[_0x2026ef(309)] = _0x293dd5, _0x408bcc["completions"] = {}, _0x408bcc["logging"] = {}, _0x408bcc[_0x226402(303)] = _0x43b120, _0x408bcc[_0x2026ef(305)] = {}, _0x408bcc[_0x2026ef(251)] = {};
722
+ const _0x504ed8 = _0x408bcc, _0x26f4e7 = {};
723
+ _0x26f4e7[_0x226402(270)] = _0x35bafb["JcfPn"], _0x26f4e7[_0x226402(299)] = _0x35bafb["pSeJH"];
724
+ const _0x466ce3 = {};
725
+ _0x466ce3[_0x2026ef(205)] = _0x504ed8;
726
+ const _0x15fcf0 = new Client(_0x26f4e7, _0x466ce3);
727
+ _0x444bf8[_0xe06ac6] = { "client": _0x15fcf0, "transport": _0x2ee668, "user": _0x2d5107["auth"] || _0x2d5107[_0x226402(304)], "device": _0x35bafb["tJNRe"](getDeviceInfo, _0x2d5107), "type": _0x35bafb["WYlPz"] }, _0x2ee668[_0x2026ef(207)] = (_0xa3eed4) => {
728
+ const _0x17894a = _0x2026ef, _0x3610a3 = _0x226402, _0x1ad3e1 = {};
729
+ _0x1ad3e1["client"] = _0x15fcf0, _0x1ad3e1[_0x17894a(306)] = _0x2ee668, _0x1ad3e1[_0x3610a3(272)] = _0xa3eed4, _0x1ad3e1[_0x17894a(233)] = "SSE", _0x35bafb[_0x17894a(208)](_0x255a21, _0x1ad3e1);
730
+ }, _0x35bafb["KgkaV"](initTwinClientHandler, _0x15fcf0, _0x2ee668), await _0x15fcf0[_0x2026ef(211)](_0x2ee668);
731
+ }, _0x36fe27 = async (_0x4a9267, _0x34d664, _0x9188d) => {
732
732
  var _a;
733
- const _0x3db27c = _0x366cc9, _0x2e6fee = _0x45f122, _0x28d740 = _0x38e7b6[_0x3db27c(346)][_0x2e6fee(417)], _0x45fda1 = (_a = _0x2dffd2[_0x28d740]) == null ? void 0 : _a["client"];
734
- if (!_0x45fda1) {
735
- _0x596c71["status"](-4983 + -1 * 9491 + 1 * 14874)["send"](_0x3db27c(345) + _0x28d740);
733
+ const _0x228889 = _0x76a38c, _0xd3f124 = _0x76a38c, _0x4af169 = { "qfAwp": function(_0x5927cb, _0x413a75) {
734
+ return _0x5927cb(_0x413a75);
735
+ }, "COdPg": "SSE" }, _0x2e83b6 = _0x4a9267["query"]["sessionId"], _0x2965e8 = (_a = _0x444bf8[_0x2e83b6]) == null ? void 0 : _a[_0x228889(210)];
736
+ if (!_0x2965e8) {
737
+ _0x34d664[_0xd3f124(288)](-6790 + 1 * 1502 + 5688)["send"]("No client found for session ID " + _0x2e83b6);
736
738
  return;
737
739
  }
738
- const _0x1564ef = new SSEServerTransport(_0x4353f8, _0x596c71), _0x1e9c58 = _0x1564ef["sessionId"];
739
- _0x10216e[_0x1e9c58] = _0x1564ef, _0x38e7b6["on"](_0x3bd65f["UWXex"], () => {
740
- _0x1564ef["close"](), delete _0x10216e[_0x1e9c58], delete _0xe7dee8[_0x1e9c58];
740
+ const _0x5f1b27 = new SSEServerTransport(_0x9188d, _0x34d664), _0x4c1f4b = _0x5f1b27["sessionId"];
741
+ _0x283b90[_0x4c1f4b] = _0x5f1b27, _0x4a9267["on"](_0x35bafb[_0xd3f124(215)], () => {
742
+ _0x5f1b27["close"](), delete _0x283b90[_0x4c1f4b], delete _0x1af8fb[_0x4c1f4b];
741
743
  });
742
- const _0x379be7 = {};
743
- _0x379be7[_0x3db27c(393)] = !![];
744
- const _0x3e73ed = {};
745
- _0x3e73ed[_0x3db27c(318)] = !![], _0x3e73ed[_0x2e6fee(393)] = !![];
746
- const _0x19796c = {};
747
- _0x19796c["listChanged"] = !![];
748
- const _0x2eb53c = {};
749
- _0x2eb53c[_0x2e6fee(309)] = _0x379be7, _0x2eb53c[_0x2e6fee(411)] = _0x3e73ed, _0x2eb53c["tools"] = _0x19796c, _0x2eb53c["completions"] = {}, _0x2eb53c[_0x2e6fee(407)] = {};
750
- const _0xd6bf9e = _0x2eb53c, _0x25654c = {};
751
- _0x25654c[_0x2e6fee(336)] = _0x3bd65f[_0x3db27c(368)], _0x25654c["version"] = _0x3bd65f[_0x2e6fee(382)];
752
- const _0x15d2b6 = {};
753
- _0x15d2b6[_0x2e6fee(381)] = _0xd6bf9e;
754
- const _0x477feb = new McpServer(_0x25654c, _0x15d2b6);
755
- _0xe7dee8[_0x1e9c58] = { "mcpServer": _0x477feb, "transport": _0x1564ef, "client": _0x28d740, "user": _0x38e7b6[_0x3db27c(418)] || _0x38e7b6[_0x2e6fee(426)], "device": _0x3bd65f["tOrTB"](getDeviceInfo, _0x38e7b6), "type": _0x3bd65f["jiGQt"] }, _0x1564ef[_0x3db27c(376)] = (_0x52b353) => {
756
- const _0x3c863e = _0x3db27c, _0x269b14 = _0x2e6fee, _0x113f41 = {};
757
- _0x113f41[_0x3c863e(398)] = _0x477feb, _0x113f41[_0x269b14(354)] = _0x1564ef, _0x113f41["client"] = _0x28d740, _0x113f41["error"] = _0x52b353, _0x113f41["type"] = "SSE", _0x2b24ac(_0x113f41);
758
- }, await _0x477feb[_0x3db27c(312)](_0x1564ef), _0x3bd65f["IsLWU"](forwardProxyServer, _0x477feb["server"], _0x45fda1);
759
- }, _0x1eda8e = async (_0x177122, _0x467126) => {
760
- const _0x1f3611 = _0x45f122, _0x47a646 = _0x45f122, _0x11c84f = _0x177122["query"][_0x1f3611(417)], _0x20ac80 = _0x5e15f9[_0x11c84f] || _0x10216e[_0x11c84f];
761
- _0x20ac80 ? await _0x20ac80[_0x47a646(328)](_0x177122, _0x467126) : _0x467126[_0x1f3611(353)](523 * 1 + 7483 + -7606 * 1)["send"](_0x47a646(360));
762
- }, _0x260117 = async (_0x134be1, _0x632f12) => {
763
- const _0x379847 = _0x45f122, _0xdf0ea1 = _0x366cc9;
764
- if (_0x3bd65f[_0x379847(314)](_0x134be1[_0xdf0ea1(385)], "POST")) await _0x3bd65f["IsLWU"](_0x2a9db2, _0x134be1, _0x632f12);
765
- else _0x3bd65f["MnmYe"](_0x134be1["method"], _0x3bd65f["Zmjjs"]) || _0x134be1[_0x379847(385)] === _0x3bd65f[_0xdf0ea1(423)] ? await _0x3bd65f[_0x379847(386)](_0x514e4f, _0x134be1, _0x632f12) : await _0x3bd65f["tOrTB"](_0x4c9429, _0x632f12);
766
- }, _0x4c9429 = async (_0x179cd8) => {
767
- const _0x300578 = _0x45f122, _0x590ea7 = _0x45f122, _0xf09263 = {};
768
- _0xf09263["Allow"] = _0x300578(352);
769
- const _0x212787 = {};
770
- _0x212787["code"] = -32e3, _0x212787["message"] = _0x300578(313);
771
- const _0x5e23da = {};
772
- _0x5e23da["jsonrpc"] = _0x3bd65f[_0x590ea7(399)], _0x5e23da[_0x300578(388)] = _0x212787, _0x5e23da["id"] = null, _0x179cd8["writeHead"](29 * -5 + 4499 * -2 + 9548, _0xf09263)["end"](JSON[_0x590ea7(383)](_0x5e23da));
773
- }, _0x514e4f = async (_0xca8fbf, _0x327708) => {
774
- const _0x3416f2 = _0x45f122, _0x5a09ac = _0xca8fbf[_0x3416f2(344)][_0x3bd65f["JuViw"]], _0x391cd8 = _0x5e15f9[_0x5a09ac];
775
- _0x391cd8 ? (await _0x391cd8["handleRequest"](_0xca8fbf, _0x327708), _0x3bd65f["MnmYe"](_0xca8fbf[_0x3416f2(385)], "DELETE") && (delete _0x5e15f9[_0x5a09ac], delete _0x2dffd2[_0x5a09ac])) : _0x327708["status"](16 * -47 + 6800 + -2 * 2824)["send"]("Invalid or missing session ID");
776
- }, _0x2a9db2 = async (_0x3a639d, _0x5615a3) => {
777
- const _0x59a9b9 = _0x366cc9, _0x13579d = _0x45f122;
744
+ const _0x51ac56 = {};
745
+ _0x51ac56["listChanged"] = !![];
746
+ const _0x4c8653 = {};
747
+ _0x4c8653["subscribe"] = !![], _0x4c8653[_0xd3f124(258)] = !![];
748
+ const _0x2d60b6 = {};
749
+ _0x2d60b6["listChanged"] = !![];
750
+ const _0x18a0af = {};
751
+ _0x18a0af["prompts"] = _0x51ac56, _0x18a0af[_0x228889(250)] = _0x4c8653, _0x18a0af[_0x228889(309)] = _0x2d60b6, _0x18a0af[_0xd3f124(294)] = {}, _0x18a0af[_0x228889(320)] = {};
752
+ const _0x2650d8 = _0x18a0af, _0x289e6a = {};
753
+ _0x289e6a["name"] = "mcp-sse-proxy-server", _0x289e6a["version"] = _0x35bafb[_0x228889(296)];
754
+ const _0x5bb048 = {};
755
+ _0x5bb048["capabilities"] = _0x2650d8;
756
+ const _0x2ba5f0 = new McpServer(_0x289e6a, _0x5bb048);
757
+ _0x1af8fb[_0x4c1f4b] = { "mcpServer": _0x2ba5f0, "transport": _0x5f1b27, "client": _0x2e83b6, "user": _0x4a9267["auth"] || _0x4a9267[_0x228889(304)], "device": _0x35bafb["sDlMU"](getDeviceInfo, _0x4a9267), "type": _0x35bafb["WYlPz"] }, _0x5f1b27["onerror"] = (_0x48455f) => {
758
+ const _0xe1d310 = _0xd3f124;
759
+ _0x4af169[_0xe1d310(322)](_0x451ac6, { "mcpServer": _0x2ba5f0, "transport": _0x5f1b27, "client": _0x2e83b6, "error": _0x48455f, "type": _0x4af169["COdPg"] });
760
+ }, await _0x2ba5f0[_0xd3f124(211)](_0x5f1b27), _0x35bafb["KgkaV"](forwardProxyServer, _0x2ba5f0["server"], _0x2965e8);
761
+ }, _0xa26b82 = async (_0x3b6605, _0xd4d5d4) => {
762
+ const _0x3bb410 = _0x76a38c, _0x48e644 = _0x76a38c, _0x4b6498 = _0x3b6605["query"]["sessionId"], _0x48157d = _0x20f02f[_0x4b6498] || _0x283b90[_0x4b6498];
763
+ _0x48157d ? await _0x48157d["handlePostMessage"](_0x3b6605, _0xd4d5d4) : _0xd4d5d4[_0x3bb410(288)](46 * -163 + -189 * -36 + 547 * 2)[_0x48e644(268)](_0x35bafb[_0x48e644(283)]);
764
+ }, _0x598f32 = async (_0x4f0123, _0x576383) => {
765
+ const _0x3778d2 = _0x76a38c, _0x1452ab = _0x51262c;
766
+ if (_0x35bafb["aPbtV"](_0x4f0123[_0x3778d2(265)], _0x35bafb[_0x3778d2(313)])) await _0x35bafb["KgkaV"](_0xa8a1cd, _0x4f0123, _0x576383);
767
+ else _0x35bafb[_0x1452ab(314)](_0x4f0123[_0x3778d2(265)], _0x35bafb[_0x3778d2(312)]) || _0x4f0123[_0x3778d2(265)] === _0x35bafb[_0x1452ab(248)] ? await _0x434a15(_0x4f0123, _0x576383) : await _0x35bafb["HIkJt"](_0x1599c5, _0x576383);
768
+ }, _0x1599c5 = async (_0xccf4b7) => {
769
+ const _0x465f4a = _0x76a38c, _0x202c77 = _0x76a38c, _0x387d1b = {};
770
+ _0x387d1b[_0x465f4a(298)] = _0x35bafb[_0x465f4a(209)];
771
+ const _0xab7381 = {};
772
+ _0xab7381[_0x202c77(278)] = -32e3, _0xab7381[_0x465f4a(241)] = _0x465f4a(318);
773
+ const _0x5c39f9 = {};
774
+ _0x5c39f9[_0x465f4a(277)] = _0x35bafb["uixmn"], _0x5c39f9[_0x202c77(272)] = _0xab7381, _0x5c39f9["id"] = null, _0xccf4b7[_0x465f4a(300)](-3983 + 6788 + 30 * -80, _0x387d1b)[_0x465f4a(321)](JSON["stringify"](_0x5c39f9));
775
+ }, _0x434a15 = async (_0x50445f, _0x324b0c) => {
776
+ var _a;
777
+ const _0x3efc91 = _0x51262c, _0x38472c = _0x76a38c, _0x29315d = _0x50445f["headers"][_0x3efc91(204)], _0x2808f2 = _0x20f02f[_0x29315d];
778
+ if (_0x2808f2) {
779
+ await _0x2808f2["handleRequest"](_0x50445f, _0x324b0c);
780
+ const _0x321ed2 = () => {
781
+ delete _0x20f02f[_0x29315d], delete _0x444bf8[_0x29315d];
782
+ };
783
+ if (_0x35bafb["xLWyK"](_0x50445f["method"], _0x35bafb["cmFzA"]) && ((_a = _0x50445f[_0x3efc91(245)]["accept"]) == null ? void 0 : _a[_0x38472c(223)](_0x35bafb[_0x38472c(301)]))) _0x50445f["once"](_0x35bafb[_0x38472c(215)], _0x321ed2);
784
+ else _0x35bafb["hZKhj"](_0x50445f["method"], _0x35bafb["SwShd"]) && _0x35bafb[_0x3efc91(264)](_0x321ed2);
785
+ } else _0x324b0c[_0x38472c(288)](2 * 4306 + -2923 + -5289)[_0x38472c(268)](_0x35bafb["aWvfb"]);
786
+ }, _0xa8a1cd = async (_0x5ddf6e, _0x5be061) => {
787
+ const _0x1a3f1b = _0x51262c, _0x274d0f = _0x51262c;
778
788
  try {
779
- const _0x35a7e3 = _0x3a639d[_0x59a9b9(344)]["mcp-session-id"], _0x321df3 = _0x3a639d["headers"]["stream-session-id"];
780
- let _0x4368f1 = _0x5e15f9[_0x35a7e3];
781
- if (_0x4368f1) await _0x4368f1["handleRequest"](_0x3a639d, _0x5615a3, _0x3a639d[_0x59a9b9(377)]);
789
+ const _0x4729ac = _0x5ddf6e[_0x1a3f1b(245)][_0x35bafb[_0x1a3f1b(216)]], _0x488e88 = _0x5ddf6e["headers"][_0x35bafb["xJOKW"]];
790
+ let _0xdbe225 = _0x20f02f[_0x4729ac];
791
+ if (_0xdbe225) await _0xdbe225["handleRequest"](_0x5ddf6e, _0x5be061, _0x5ddf6e["body"]);
782
792
  else {
783
- if (!_0x35a7e3 && _0x3bd65f[_0x13579d(308)](isInitializeRequest, _0x3a639d[_0x59a9b9(377)])) {
784
- const _0x19e54f = {};
785
- _0x19e54f[_0x59a9b9(362)] = () => _0x321df3, _0x4368f1 = new StreamableHTTPServerTransport(_0x19e54f);
786
- const _0x2e32b7 = {};
787
- _0x2e32b7["listChanged"] = !![];
788
- const _0x56464b = {};
789
- _0x56464b[_0x59a9b9(318)] = !![], _0x56464b[_0x13579d(393)] = !![];
790
- const _0x18cfc6 = {};
791
- _0x18cfc6["listChanged"] = !![];
792
- const _0x48cb7f = {};
793
- _0x48cb7f[_0x13579d(393)] = !![];
794
- const _0x1dc16e = {};
795
- _0x1dc16e["prompts"] = _0x2e32b7, _0x1dc16e[_0x13579d(411)] = _0x56464b, _0x1dc16e["tools"] = _0x18cfc6, _0x1dc16e["completions"] = {}, _0x1dc16e["logging"] = {}, _0x1dc16e[_0x13579d(375)] = _0x48cb7f, _0x1dc16e["sampling"] = {}, _0x1dc16e["elicitation"] = {};
796
- const _0x4a8549 = _0x1dc16e, _0x3d3167 = {};
797
- _0x3d3167["name"] = _0x3bd65f["gFkTc"], _0x3d3167[_0x59a9b9(310)] = _0x3bd65f["dMURb"];
798
- const _0x1db239 = {};
799
- _0x1db239["capabilities"] = _0x4a8549;
800
- const _0x25c872 = new Client(_0x3d3167, _0x1db239);
801
- _0x3bd65f[_0x59a9b9(333)](initTwinClientHandler, _0x25c872, _0x4368f1), _0x2dffd2[_0x321df3] = { "client": _0x25c872, "transport": _0x4368f1, "user": _0x3a639d["auth"] || _0x3a639d["user"], "device": _0x3bd65f["CFhYM"](getDeviceInfo, _0x3a639d), "type": _0x3bd65f["xmKBD"] }, _0x5e15f9[_0x321df3] = _0x4368f1, _0x4368f1[_0x13579d(417)] = _0x321df3, _0x4368f1["onclose"] = () => {
802
- const _0x2aef8d = _0x4368f1["sessionId"];
803
- _0x2aef8d && _0x5e15f9[_0x2aef8d] && (delete _0x5e15f9[_0x2aef8d], delete _0x2dffd2[_0x2aef8d]);
804
- }, _0x4368f1[_0x59a9b9(376)] = (_0x23432f) => {
805
- const _0x5dfea9 = _0x13579d;
806
- _0x3bd65f["Isgge"](_0x53a5d2, { "client": _0x25c872, "transport": _0x4368f1, "error": _0x23432f, "type": _0x3bd65f[_0x5dfea9(355)] });
807
- }, await _0x25c872[_0x13579d(312)](_0x4368f1), await _0x4368f1["handleRequest"](_0x3a639d, _0x5615a3, _0x3a639d[_0x13579d(377)]);
793
+ if (!_0x4729ac && _0x35bafb["tJNRe"](isInitializeRequest, _0x5ddf6e["body"])) {
794
+ const _0x2d9b07 = {};
795
+ _0x2d9b07["sessionIdGenerator"] = () => _0x488e88, _0xdbe225 = new StreamableHTTPServerTransport(_0x2d9b07);
796
+ const _0x4fa118 = {};
797
+ _0x4fa118[_0x274d0f(258)] = !![];
798
+ const _0xd6a6ae = {};
799
+ _0xd6a6ae["subscribe"] = !![], _0xd6a6ae["listChanged"] = !![];
800
+ const _0x1e2cef = {};
801
+ _0x1e2cef["listChanged"] = !![];
802
+ const _0x1643d4 = {};
803
+ _0x1643d4["listChanged"] = !![];
804
+ const _0x45b046 = {};
805
+ _0x45b046["prompts"] = _0x4fa118, _0x45b046[_0x1a3f1b(250)] = _0xd6a6ae, _0x45b046[_0x274d0f(309)] = _0x1e2cef, _0x45b046["completions"] = {}, _0x45b046[_0x274d0f(320)] = {}, _0x45b046[_0x274d0f(303)] = _0x1643d4, _0x45b046[_0x274d0f(305)] = {}, _0x45b046["elicitation"] = {};
806
+ const _0x346679 = _0x45b046, _0x471c1d = {};
807
+ _0x471c1d["name"] = _0x35bafb[_0x274d0f(224)], _0x471c1d["version"] = _0x35bafb[_0x1a3f1b(296)];
808
+ const _0x24f908 = {};
809
+ _0x24f908[_0x1a3f1b(205)] = _0x346679;
810
+ const _0x292d84 = new Client(_0x471c1d, _0x24f908);
811
+ _0x35bafb[_0x1a3f1b(326)](initTwinClientHandler, _0x292d84, _0xdbe225), _0x444bf8[_0x488e88] = { "client": _0x292d84, "transport": _0xdbe225, "user": _0x5ddf6e["auth"] || _0x5ddf6e[_0x1a3f1b(304)], "device": _0x35bafb[_0x1a3f1b(267)](getDeviceInfo, _0x5ddf6e), "type": _0x35bafb[_0x274d0f(255)] }, _0x20f02f[_0x488e88] = _0xdbe225, _0xdbe225[_0x1a3f1b(226)] = _0x488e88, _0xdbe225["onclose"] = () => {
812
+ const _0x497152 = _0xdbe225["sessionId"];
813
+ _0x497152 && _0x20f02f[_0x497152] && (delete _0x20f02f[_0x497152], delete _0x444bf8[_0x497152]);
814
+ }, _0xdbe225["onerror"] = (_0x3b4790) => {
815
+ _0x35bafb["nHfJw"](_0x255a21, { "client": _0x292d84, "transport": _0xdbe225, "error": _0x3b4790, "type": _0x35bafb["HvRHL"] });
816
+ }, await _0x292d84["connect"](_0xdbe225), await _0xdbe225["handleRequest"](_0x5ddf6e, _0x5be061, _0x5ddf6e[_0x1a3f1b(328)]);
808
817
  } else {
809
- const _0x1da915 = {};
810
- _0x1da915["jsonrpc"] = _0x3bd65f[_0x13579d(399)], _0x1da915[_0x13579d(388)] = {}, _0x1da915["id"] = null, _0x1da915[_0x13579d(388)]["code"] = -(11 * -1137 + 3637 + 20435 * 2), _0x1da915[_0x13579d(388)]["message"] = _0x3bd65f[_0x13579d(322)], _0x5615a3[_0x59a9b9(353)](4441 + -394 + -3647 * 1)[_0x13579d(424)](_0x1da915);
818
+ const _0x2025f8 = {};
819
+ _0x2025f8["jsonrpc"] = _0x35bafb["uixmn"], _0x2025f8[_0x1a3f1b(272)] = {}, _0x2025f8["id"] = null, _0x2025f8[_0x1a3f1b(272)]["code"] = -(-56767 + -1 * -51601 + 37166), _0x2025f8[_0x1a3f1b(272)][_0x274d0f(241)] = _0x35bafb["ivJNB"], _0x5be061[_0x274d0f(288)](4866 + -5743 + 1277)["json"](_0x2025f8);
811
820
  }
812
821
  }
813
822
  } catch {
814
- if (!_0x5615a3[_0x59a9b9(409)]) {
815
- const _0x112089 = {};
816
- _0x112089["jsonrpc"] = _0x3bd65f["hCjHy"], _0x112089[_0x59a9b9(388)] = {}, _0x112089["id"] = null, _0x112089[_0x59a9b9(388)][_0x13579d(412)] = -32603, _0x112089[_0x59a9b9(388)]["message"] = _0x3bd65f["HjNnp"], _0x5615a3[_0x59a9b9(353)](-3189 * 3 + 295 * 20 + 4167)["json"](_0x112089);
823
+ if (!_0x5be061["headersSent"]) {
824
+ const _0x137ac5 = {};
825
+ _0x137ac5["code"] = -32603, _0x137ac5[_0x1a3f1b(241)] = _0x274d0f(325);
826
+ const _0x20b4ae = {};
827
+ _0x20b4ae["jsonrpc"] = _0x274d0f(232), _0x20b4ae["error"] = _0x137ac5, _0x20b4ae["id"] = null, _0x5be061["status"](-71 * -48 + 3637 + -11 * 595)[_0x274d0f(222)](_0x20b4ae);
817
828
  }
818
829
  }
819
- }, _0xd0ea7e = async (_0x1bb2c2, _0x1380ed) => {
820
- const _0x349537 = _0x366cc9;
821
- if (_0x3bd65f["MnmYe"](_0x1bb2c2["method"], _0x349537(351))) await _0x3bd65f[_0x349537(429)](_0x42e735, _0x1bb2c2, _0x1380ed);
822
- else _0x3bd65f["aAlJA"](_0x1bb2c2[_0x349537(385)], "GET") || _0x3bd65f["CcOpT"](_0x1bb2c2["method"], _0x3bd65f[_0x349537(423)]) ? await _0x3bd65f[_0x349537(334)](_0x5be953, _0x1bb2c2, _0x1380ed) : await _0x3bd65f["tOrTB"](_0x4c9429, _0x1380ed);
823
- }, _0x5be953 = async (_0x22a989, _0x5eba24) => {
824
- const _0x1372d1 = _0x45f122, _0x1b7c3a = _0x22a989[_0x1372d1(344)][_0x3bd65f["JuViw"]], _0x2d5332 = _0x10216e[_0x1b7c3a];
825
- _0x2d5332 ? (await _0x2d5332["handleRequest"](_0x22a989, _0x5eba24), _0x3bd65f["MnmYe"](_0x22a989["method"], _0x3bd65f["xrxSg"]) && (delete _0x10216e[_0x1b7c3a], delete _0xe7dee8[_0x1b7c3a])) : _0x5eba24[_0x1372d1(353)](-138 * -22 + 1681 * -1 + -955)[_0x1372d1(329)](_0x3bd65f["KVwnS"]);
826
- }, _0x42e735 = async (_0x27f4db, _0x410220) => {
830
+ }, _0xd1b50f = async (_0x23472f, _0x85b2e8) => {
831
+ const _0x268133 = _0x76a38c, _0x4061ea = _0x51262c;
832
+ if (_0x35bafb["jlJyR"](_0x23472f[_0x268133(265)], _0x35bafb[_0x4061ea(313)])) await _0x35bafb["KgkaV"](_0x14d4c3, _0x23472f, _0x85b2e8);
833
+ else _0x35bafb[_0x4061ea(310)](_0x23472f["method"], _0x35bafb["cmFzA"]) || _0x23472f[_0x268133(265)] === _0x35bafb[_0x268133(248)] ? await _0x5c7eee(_0x23472f, _0x85b2e8) : await _0x35bafb[_0x268133(295)](_0x1599c5, _0x85b2e8);
834
+ }, _0x5c7eee = async (_0x309024, _0x5092cc) => {
835
+ const _0x17a472 = _0x51262c, _0x34394d = _0x309024["headers"]["mcp-session-id"], _0x4c53de = _0x283b90[_0x34394d];
836
+ _0x4c53de ? (await _0x4c53de["handleRequest"](_0x309024, _0x5092cc), _0x309024[_0x17a472(265)] === _0x35bafb[_0x17a472(248)] && (delete _0x283b90[_0x34394d], delete _0x1af8fb[_0x34394d])) : _0x5092cc[_0x17a472(288)](-7657 + 34 * -13 + 8499)[_0x17a472(268)](_0x17a472(327));
837
+ }, _0x14d4c3 = async (_0x233126, _0x1351e0) => {
827
838
  var _a;
828
- const _0x476f52 = _0x366cc9, _0x40ecc3 = _0x366cc9;
839
+ const _0x4959f2 = _0x51262c, _0x3e9af9 = _0x51262c;
829
840
  try {
830
- const _0x2bc3cd = _0x27f4db[_0x476f52(344)][_0x3bd65f[_0x476f52(378)]], _0xbd3448 = _0x27f4db["query"]["sessionId"];
831
- let _0x4352e6 = _0x10216e[_0x2bc3cd];
832
- if (_0x4352e6) await _0x4352e6[_0x40ecc3(321)](_0x27f4db, _0x410220, _0x27f4db[_0x476f52(377)]);
841
+ const _0x328653 = _0x233126[_0x4959f2(245)][_0x35bafb[_0x4959f2(216)]], _0x3da94e = _0x233126["query"][_0x4959f2(226)];
842
+ let _0x3bf4fd = _0x283b90[_0x328653];
843
+ if (_0x3bf4fd) await _0x3bf4fd["handleRequest"](_0x233126, _0x1351e0, _0x233126["body"]);
833
844
  else {
834
- if (!_0x2bc3cd && _0x3bd65f[_0x476f52(348)](isInitializeRequest, _0x27f4db[_0x476f52(377)])) {
835
- const _0x101a7e = (_a = _0x2dffd2[_0xbd3448]) == null ? void 0 : _a[_0x476f52(389)];
836
- if (!_0x101a7e) {
837
- _0x410220["status"](7408 + 331 * -13 + -2705)["send"](_0x476f52(345) + _0xbd3448);
845
+ if (!_0x328653 && _0x35bafb[_0x3e9af9(295)](isInitializeRequest, _0x233126["body"])) {
846
+ const _0x589046 = (_a = _0x444bf8[_0x3da94e]) == null ? void 0 : _a[_0x3e9af9(210)];
847
+ if (!_0x589046) {
848
+ _0x1351e0["status"](2865 + -9191 + 177 * 38)[_0x4959f2(268)](_0x3e9af9(324) + _0x3da94e);
838
849
  return;
839
850
  }
840
- const _0xc3b56d = _0x198425["randomUUID"](), _0x3ad461 = {};
841
- _0x3ad461[_0x40ecc3(362)] = () => _0xc3b56d, _0x4352e6 = new StreamableHTTPServerTransport(_0x3ad461);
842
- const _0x4f69b0 = {};
843
- _0x4f69b0[_0x476f52(393)] = !![];
844
- const _0xd9e458 = {};
845
- _0xd9e458[_0x40ecc3(318)] = !![], _0xd9e458[_0x476f52(393)] = !![];
846
- const _0x3cb19d = {};
847
- _0x3cb19d[_0x476f52(393)] = !![];
848
- const _0x367e1e = {};
849
- _0x367e1e["prompts"] = _0x4f69b0, _0x367e1e["resources"] = _0xd9e458, _0x367e1e["tools"] = _0x3cb19d, _0x367e1e[_0x40ecc3(367)] = {}, _0x367e1e["logging"] = {};
850
- const _0x89bb6 = _0x367e1e, _0xb30a8d = {};
851
- _0xb30a8d["name"] = _0x476f52(371), _0xb30a8d[_0x40ecc3(310)] = _0x3bd65f["dMURb"];
852
- const _0x180afd = {};
853
- _0x180afd["capabilities"] = _0x89bb6;
854
- const _0x6791ba = new McpServer(_0xb30a8d, _0x180afd);
855
- _0xe7dee8[_0xc3b56d] = { "mcpServer": _0x6791ba, "transport": _0x4352e6, "client": _0xbd3448, "user": _0x27f4db["auth"] || _0x27f4db["user"], "device": _0x3bd65f[_0x476f52(427)](getDeviceInfo, _0x27f4db), "type": _0x3bd65f[_0x476f52(355)] }, _0x10216e[_0xc3b56d] = _0x4352e6, _0x4352e6["sessionId"] = _0xc3b56d, _0x4352e6[_0x476f52(339)] = () => {
856
- const _0x117681 = _0x4352e6["sessionId"];
857
- _0x117681 && _0x5e15f9[_0x117681] && (delete _0x10216e[_0x117681], delete _0xe7dee8[_0x117681]);
858
- }, _0x4352e6["onerror"] = (_0x54d64b) => {
859
- const _0x260711 = _0x40ecc3, _0x4faffc = _0x476f52, _0x1a6c2d = {};
860
- _0x1a6c2d["mcpServer"] = _0x6791ba, _0x1a6c2d["transport"] = _0x4352e6, _0x1a6c2d["client"] = _0xbd3448, _0x1a6c2d[_0x260711(388)] = _0x54d64b, _0x1a6c2d[_0x260711(396)] = _0x4faffc(365), _0x3bd65f[_0x260711(427)](_0x2b24ac, _0x1a6c2d);
861
- }, await _0x6791ba[_0x476f52(312)](_0x4352e6), _0x3bd65f["AwNKh"](forwardProxyServer, _0x6791ba[_0x476f52(395)], _0x101a7e), await _0x4352e6["handleRequest"](_0x27f4db, _0x410220, _0x27f4db["body"]);
851
+ const _0x42a0c5 = _0x268db3["randomUUID"](), _0x5efd47 = {};
852
+ _0x5efd47["sessionIdGenerator"] = () => _0x42a0c5, _0x3bf4fd = new StreamableHTTPServerTransport(_0x5efd47);
853
+ const _0x56d383 = {};
854
+ _0x56d383["listChanged"] = !![];
855
+ const _0x49405c = {};
856
+ _0x49405c["subscribe"] = !![], _0x49405c[_0x3e9af9(258)] = !![];
857
+ const _0x385253 = {};
858
+ _0x385253["listChanged"] = !![];
859
+ const _0xb2e1f3 = {};
860
+ _0xb2e1f3["prompts"] = _0x56d383, _0xb2e1f3[_0x3e9af9(250)] = _0x49405c, _0xb2e1f3[_0x3e9af9(309)] = _0x385253, _0xb2e1f3["completions"] = {}, _0xb2e1f3["logging"] = {};
861
+ const _0x151caa = _0xb2e1f3, _0x1c9f77 = {};
862
+ _0x1c9f77[_0x4959f2(270)] = _0x35bafb["HuQqg"], _0x1c9f77[_0x3e9af9(299)] = _0x35bafb["pSeJH"];
863
+ const _0x3a8952 = {};
864
+ _0x3a8952["capabilities"] = _0x151caa;
865
+ const _0x508f18 = new McpServer(_0x1c9f77, _0x3a8952);
866
+ _0x1af8fb[_0x42a0c5] = { "mcpServer": _0x508f18, "transport": _0x3bf4fd, "client": _0x3da94e, "user": _0x233126[_0x4959f2(316)] || _0x233126[_0x4959f2(304)], "device": _0x35bafb["bxdHV"](getDeviceInfo, _0x233126), "type": _0x35bafb[_0x3e9af9(255)] }, _0x283b90[_0x42a0c5] = _0x3bf4fd, _0x3bf4fd["sessionId"] = _0x42a0c5, _0x3bf4fd["onclose"] = () => {
867
+ const _0x59be51 = _0x3bf4fd["sessionId"];
868
+ _0x59be51 && _0x20f02f[_0x59be51] && (delete _0x283b90[_0x59be51], delete _0x1af8fb[_0x59be51]);
869
+ }, _0x3bf4fd[_0x3e9af9(207)] = (_0x2b5819) => {
870
+ const _0x5a948c = _0x4959f2, _0x431533 = _0x3e9af9, _0x3c8454 = {};
871
+ _0x3c8454["mcpServer"] = _0x508f18, _0x3c8454["transport"] = _0x3bf4fd, _0x3c8454[_0x5a948c(210)] = _0x3da94e, _0x3c8454[_0x431533(272)] = _0x2b5819, _0x3c8454["type"] = _0x35bafb["HvRHL"], _0x451ac6(_0x3c8454);
872
+ }, await _0x508f18["connect"](_0x3bf4fd), _0x35bafb[_0x4959f2(326)](forwardProxyServer, _0x508f18[_0x4959f2(218)], _0x589046), await _0x3bf4fd[_0x4959f2(289)](_0x233126, _0x1351e0, _0x233126["body"]);
862
873
  } else {
863
- const _0x4f88be = {};
864
- _0x4f88be[_0x476f52(326)] = _0x3bd65f["hCjHy"], _0x4f88be["error"] = {}, _0x4f88be["id"] = null, _0x4f88be["error"][_0x476f52(412)] = -(32983 + 25873 * -1 + 4978 * 5), _0x4f88be["error"][_0x476f52(327)] = _0x3bd65f["MCyPx"], _0x410220[_0x476f52(353)](-1566 + 125 * -37 + -169 * -39)["json"](_0x4f88be);
874
+ const _0x23bc3c = {};
875
+ _0x23bc3c[_0x4959f2(278)] = -(3005 * -5 + -2 * -19098 + 8829), _0x23bc3c["message"] = "Bad Request: No valid session ID provided";
876
+ const _0x3f80bd = {};
877
+ _0x3f80bd[_0x3e9af9(277)] = _0x35bafb["uixmn"], _0x3f80bd["error"] = _0x23bc3c, _0x3f80bd["id"] = null, _0x1351e0["status"](-7031 + 1300 * -6 + 15231 * 1)["json"](_0x3f80bd);
865
878
  }
866
879
  }
867
880
  } catch {
868
- if (!_0x410220["headersSent"]) {
869
- const _0x5b0fe9 = {};
870
- _0x5b0fe9["jsonrpc"] = _0x3bd65f[_0x40ecc3(399)], _0x5b0fe9[_0x476f52(388)] = {}, _0x5b0fe9["id"] = null, _0x5b0fe9[_0x476f52(388)][_0x476f52(412)] = -32603, _0x5b0fe9[_0x476f52(388)][_0x476f52(327)] = _0x3bd65f["HjNnp"], _0x410220[_0x40ecc3(353)](6 * 82 + 207 + -199)[_0x476f52(424)](_0x5b0fe9);
881
+ if (!_0x1351e0["headersSent"]) {
882
+ const _0x3ee562 = {};
883
+ _0x3ee562["jsonrpc"] = _0x35bafb["uixmn"], _0x3ee562[_0x3e9af9(272)] = {}, _0x3ee562["id"] = null, _0x3ee562[_0x3e9af9(272)][_0x3e9af9(278)] = -32603, _0x3ee562[_0x3e9af9(272)]["message"] = _0x35bafb[_0x4959f2(229)], _0x1351e0[_0x3e9af9(288)](1 * 2239 + -3240 + -79 * -19)["json"](_0x3ee562);
871
884
  }
872
885
  }
873
- }, _0x909535 = () => {
874
- const _0xf950b5 = _0x366cc9, _0x490e10 = _0x366cc9;
886
+ }, _0x185a46 = () => {
887
+ const _0x887a58 = _0x51262c, _0x247bde = _0x51262c;
875
888
  try {
876
- Object[_0xf950b5(311)](_0x5e15f9)[_0x490e10(372)]((_0x3adf63) => _0x3adf63[_0xf950b5(337)]()), Object[_0x490e10(311)](_0x10216e)["forEach"]((_0x11c697) => _0x11c697["close"]()), Object["values"](_0x2dffd2)[_0xf950b5(372)]((_0x1bfcfa) => _0x1bfcfa[_0xf950b5(389)][_0x490e10(337)]()), Object["values"](_0xe7dee8)[_0x490e10(372)]((_0x35e2d3) => _0x35e2d3["mcpServer"][_0xf950b5(337)]());
889
+ Object["values"](_0x20f02f)[_0x887a58(311)]((_0x1527d1) => _0x1527d1[_0x887a58(319)]()), Object["values"](_0x283b90)[_0x247bde(311)]((_0x464d20) => _0x464d20["close"]()), Object["values"](_0x444bf8)["forEach"]((_0x4da3ab) => _0x4da3ab["client"]["close"]()), Object["values"](_0x1af8fb)["forEach"]((_0x5b03d8) => _0x5b03d8[_0x247bde(253)][_0x887a58(319)]());
877
890
  } catch {
878
891
  }
879
892
  try {
880
- Object[_0x490e10(379)](_0x5e15f9)["forEach"]((_0x19750e) => delete _0x5e15f9[_0x19750e]), Object[_0xf950b5(379)](_0x10216e)["forEach"]((_0x29c57a) => delete _0x10216e[_0x29c57a]), Object[_0xf950b5(379)](_0x2dffd2)["forEach"]((_0x2b6359) => delete _0x2dffd2[_0x2b6359]), Object["keys"](_0xe7dee8)[_0xf950b5(372)]((_0xbf21b6) => delete _0xe7dee8[_0xbf21b6]);
893
+ Object["keys"](_0x20f02f)[_0x887a58(311)]((_0x161207) => delete _0x20f02f[_0x161207]), Object[_0x887a58(273)](_0x283b90)[_0x247bde(311)]((_0x59cea1) => delete _0x283b90[_0x59cea1]), Object[_0x887a58(273)](_0x444bf8)[_0x887a58(311)]((_0x39edcf) => delete _0x444bf8[_0x39edcf]), Object["keys"](_0x1af8fb)[_0x247bde(311)]((_0x537136) => delete _0x1af8fb[_0x537136]);
881
894
  } catch {
882
895
  }
883
896
  return {};
884
- }, _0x24ba59 = async () => {
885
- const _0x2b1d55 = _0x366cc9, _0x370416 = _0x366cc9, _0x413489 = { "qLStB": function(_0x510a6a, _0x5030f2) {
886
- const _0x3836a1 = _0x2f7b;
887
- return _0x3bd65f[_0x3836a1(419)](_0x510a6a, _0x5030f2);
888
- } }, _0x3a50e6 = Object[_0x2b1d55(379)](_0x2dffd2)[_0x2b1d55(387)](async (_0x4e2688) => {
889
- const _0x3073fb = _0x2b1d55, _0x485d2b = _0x2b1d55, { client: _0x5bdbfc } = _0x2dffd2[_0x4e2688];
897
+ }, _0x7fa775 = async () => {
898
+ const _0x50b983 = _0x76a38c, _0x5e8fae = _0x76a38c, _0x1ec662 = { "Srrtp": function(_0xf2a64d, _0x53b7a4) {
899
+ const _0x8456df = _0x46ad;
900
+ return _0x35bafb[_0x8456df(279)](_0xf2a64d, _0x53b7a4);
901
+ }, "PzXZN": _0x35bafb[_0x50b983(214)] }, _0x2d5e2a = Object["keys"](_0x444bf8)[_0x5e8fae(280)](async (_0x2c1c9d) => {
902
+ const _0x210534 = _0x50b983, _0x3cc955 = _0x5e8fae, { client: _0x2b6042 } = _0x444bf8[_0x2c1c9d];
890
903
  try {
891
- const _0x1d9cbf = await _0x5bdbfc["ping"]();
892
- return { "sessionId": _0x4e2688, "shouldClose": Object["keys"](_0x1d9cbf)[_0x3073fb(325)] !== -22 * 219 + -1 * 3085 + 7903 };
904
+ const _0x1e74b4 = await _0x2b6042["ping"]();
905
+ return { "sessionId": _0x2c1c9d, "shouldClose": _0x35bafb["HNJCu"](Object[_0x210534(273)](_0x1e74b4)["length"], 5 * 313 + -722 + -843) };
893
906
  } catch {
894
- const _0x252ea3 = {};
895
- return _0x252ea3[_0x485d2b(417)] = _0x4e2688, _0x252ea3[_0x3073fb(394)] = !![], _0x252ea3;
907
+ const _0x4ef8c7 = {};
908
+ return _0x4ef8c7[_0x3cc955(226)] = _0x2c1c9d, _0x4ef8c7["shouldClose"] = !![], _0x4ef8c7;
896
909
  }
897
- }), _0x428399 = Object["keys"](_0xe7dee8)["map"](async (_0x33d294) => {
898
- const _0x1338b8 = _0x370416, _0xb03fc3 = _0x2b1d55, { mcpServer: _0x141bf1 } = _0xe7dee8[_0x33d294];
910
+ }), _0x3ea5a2 = Object["keys"](_0x1af8fb)[_0x5e8fae(280)](async (_0x55278e) => {
911
+ const _0x15934d = _0x50b983, _0x37a0fa = _0x5e8fae, { mcpServer: _0x24e528 } = _0x1af8fb[_0x55278e];
899
912
  try {
900
- const _0x4900fd = await _0x141bf1[_0x1338b8(395)][_0x1338b8(402)]();
901
- return { "sessionId": _0x33d294, "shouldClose": _0x413489[_0xb03fc3(358)](Object["keys"](_0x4900fd)[_0x1338b8(325)], -303 * -7 + -576 + -1545) };
913
+ const _0x7d6d88 = await _0x24e528["server"][_0x15934d(274)]();
914
+ return { "sessionId": _0x55278e, "shouldClose": _0x35bafb[_0x37a0fa(259)](Object["keys"](_0x7d6d88)["length"], 35 * -119 + -7 * -1337 + -5194) };
902
915
  } catch {
903
- const _0x5882a0 = {};
904
- return _0x5882a0["sessionId"] = _0x33d294, _0x5882a0["shouldClose"] = !![], _0x5882a0;
916
+ const _0x369d46 = {};
917
+ return _0x369d46[_0x15934d(226)] = _0x55278e, _0x369d46["shouldClose"] = !![], _0x369d46;
905
918
  }
906
- }), [_0x5d90fc, _0x1181d9] = await Promise[_0x2b1d55(347)]([Promise["allSettled"](_0x3a50e6), Promise["allSettled"](_0x428399)]), _0x1b415c = [], _0x18681e = [];
907
- _0x5d90fc[_0x2b1d55(372)]((_0x55a306) => {
908
- const _0x3a1a11 = _0x370416;
909
- _0x55a306[_0x3a1a11(353)] === _0x3bd65f[_0x3a1a11(364)] && _0x55a306["value"]["shouldClose"] && _0x1b415c["push"](_0x55a306["value"]["sessionId"]);
910
- }), _0x1181d9[_0x2b1d55(372)]((_0x201eea) => {
911
- const _0x42b83e = _0x2b1d55, _0x5af32b = _0x370416;
912
- _0x201eea[_0x42b83e(353)] === _0x3bd65f["GGSyp"] && _0x201eea[_0x5af32b(349)][_0x42b83e(394)] && _0x18681e[_0x42b83e(366)](_0x201eea[_0x5af32b(349)]["sessionId"]);
919
+ }), [_0x5778b5, _0x47fa63] = await Promise["all"]([Promise["allSettled"](_0x2d5e2a), Promise[_0x50b983(293)](_0x3ea5a2)]), _0x2879b0 = [], _0xcc388d = [];
920
+ _0x5778b5[_0x5e8fae(311)]((_0x37bab6) => {
921
+ const _0x1c3201 = _0x50b983, _0x22bd78 = _0x50b983;
922
+ _0x35bafb[_0x1c3201(244)](_0x37bab6["status"], _0x35bafb["KMbUG"]) && _0x37bab6[_0x22bd78(287)][_0x1c3201(217)] && _0x2879b0[_0x22bd78(269)](_0x37bab6[_0x1c3201(287)]["sessionId"]);
923
+ }), _0x47fa63[_0x50b983(311)]((_0x5b046f) => {
924
+ const _0x5aeaac = _0x5e8fae, _0x3ede31 = _0x5e8fae;
925
+ _0x1ec662["Srrtp"](_0x5b046f[_0x5aeaac(288)], _0x1ec662[_0x5aeaac(246)]) && _0x5b046f["value"][_0x3ede31(217)] && _0xcc388d["push"](_0x5b046f[_0x5aeaac(287)]["sessionId"]);
913
926
  });
914
- const _0x4f3792 = _0x1b415c["map"](async (_0x1cff8c) => {
927
+ const _0x40cb72 = _0x2879b0[_0x5e8fae(280)](async (_0x35615a) => {
915
928
  var _a, _b;
916
- const _0x4abcdf = _0x2b1d55;
929
+ const _0x335446 = _0x5e8fae;
917
930
  try {
918
- (_a = _0x5e15f9[_0x1cff8c]) == null ? void 0 : _a[_0x4abcdf(337)](), (_b = _0x2dffd2[_0x1cff8c]) == null ? void 0 : _b["client"][_0x4abcdf(337)]();
931
+ (_a = _0x20f02f[_0x35615a]) == null ? void 0 : _a[_0x335446(319)](), (_b = _0x444bf8[_0x35615a]) == null ? void 0 : _b[_0x335446(210)]["close"]();
919
932
  } catch {
920
933
  }
921
934
  try {
922
- delete _0x5e15f9[_0x1cff8c], delete _0x2dffd2[_0x1cff8c];
935
+ delete _0x20f02f[_0x35615a], delete _0x444bf8[_0x35615a];
923
936
  } catch {
924
937
  }
925
- }), _0x305506 = _0x18681e[_0x2b1d55(387)](async (_0x367fe9) => {
938
+ }), _0x949649 = _0xcc388d[_0x50b983(280)](async (_0x4178a2) => {
926
939
  var _a, _b;
927
- const _0x5e2f3a = _0x2b1d55;
940
+ const _0x3adc1d = _0x50b983;
928
941
  try {
929
- (_a = _0x10216e[_0x367fe9]) == null ? void 0 : _a["close"](), (_b = _0xe7dee8[_0x367fe9]) == null ? void 0 : _b["mcpServer"][_0x5e2f3a(337)]();
942
+ (_a = _0x283b90[_0x4178a2]) == null ? void 0 : _a["close"](), (_b = _0x1af8fb[_0x4178a2]) == null ? void 0 : _b[_0x3adc1d(253)]["close"]();
930
943
  } catch {
931
944
  }
932
945
  try {
933
- delete _0x10216e[_0x367fe9], delete _0xe7dee8[_0x367fe9];
946
+ delete _0x283b90[_0x4178a2], delete _0x1af8fb[_0x4178a2];
934
947
  } catch {
935
948
  }
936
949
  });
937
- await Promise["allSettled"]([..._0x4f3792, ..._0x305506]);
938
- const _0x1f90ab = {};
939
- return _0x1f90ab["clientSessions"] = _0x1b415c, _0x1f90ab["remoterSessions"] = _0x18681e, _0x1f90ab;
940
- }, _0x44e0c6 = {};
941
- return _0x44e0c6[_0x45f122(431)] = _0x18e4be, _0x44e0c6["handleSseInspector"] = _0x385d91, _0x44e0c6["handleSseMessage"] = _0x1eda8e, _0x44e0c6[_0x45f122(422)] = _0x260117, _0x44e0c6["handleStreamInspector"] = _0xd0ea7e, _0x44e0c6["clients"] = _0x2dffd2, _0x44e0c6["remoters"] = _0xe7dee8, _0x44e0c6["transports"] = _0x5e15f9, _0x44e0c6[_0x45f122(415)] = _0x10216e, _0x44e0c6["reset"] = _0x909535, _0x44e0c6["ping"] = _0x24ba59, _0x44e0c6[_0x366cc9(338)] = _0x1a3cee, _0x44e0c6[_0x45f122(340)] = _0x998834, _0x44e0c6;
950
+ await Promise[_0x5e8fae(293)]([..._0x40cb72, ..._0x949649]);
951
+ const _0x2cb281 = {};
952
+ return _0x2cb281[_0x5e8fae(292)] = _0x2879b0, _0x2cb281["remoterSessions"] = _0xcc388d, _0x2cb281;
953
+ }, _0x230d55 = {};
954
+ return _0x230d55[_0x76a38c(290)] = _0x31ee3c, _0x230d55["handleSseInspector"] = _0x36fe27, _0x230d55[_0x76a38c(262)] = _0xa26b82, _0x230d55[_0x76a38c(271)] = _0x598f32, _0x230d55[_0x76a38c(228)] = _0xd1b50f, _0x230d55[_0x51262c(238)] = _0x444bf8, _0x230d55["remoters"] = _0x1af8fb, _0x230d55[_0x51262c(236)] = _0x20f02f, _0x230d55["inspectors"] = _0x283b90, _0x230d55["reset"] = _0x185a46, _0x230d55["ping"] = _0x7fa775, _0x230d55["onClientError"] = _0x3fabb8, _0x230d55[_0x76a38c(220)] = _0x320940, _0x230d55;
942
955
  };
943
- function _0x6b51() {
944
- const _0x390c80 = ["tOrTB", "details", "URNvt", "params", "handleSseProxy", "mIkYm", "prompts", "version", "values", "connect", "Method not allowed.", "CcOpT", "split", "event: close\ndata: \n\n", "Bad Request: No valid session ID provided", "subscribe", "1083562jcWPcE", "addRequestListener", "handleRequest", "MCyPx", "Missing bearer token", "notifications/initialized", "length", "jsonrpc", "message", "handlePostMessage", "send", "authorization", "addNotificationListener", "_notificationHandlers", "RcENs", "spzPF", "jiGQt", "name", "close", "onClientError", "onclose", "onRemoterError", "afterInit", "mcp-session-id", "303wmcoub", "headers", "No client found for session ID ", "query", "all", "poUzV", "value", "VcuqS", "POST", "GET, POST, DELETE", "status", "transport", "xmKBD", "59124NhmyFT", "sjrOH", "qLStB", "SSE", "No transport found", "referer", "sessionIdGenerator", "242256uBBPSI", "GGSyp", "StreamableHTTP", "push", "completions", "IBanx", "9816TWKerG", "Lndqr", "mcp-stream-proxy-server", "forEach", "Internal server error", "9229910dXUjLF", "roots", "onerror", "body", "JuViw", "keys", "tools", "capabilities", "dMURb", "stringify", "_sseResponse", "method", "Hrtvy", "map", "error", "client", "resolve", "removeNotificationListener", "3944525GHCRpB", "listChanged", "shouldClose", "server", "type", "mcp-server", "mcpServer", "hCjHy", "9234JiZfnS", "initialize", "ping", "sKJxy", "1.0.0", "VcBKB", "fulfilled", "logging", "2.0", "headersSent", "22iZCOcW", "resources", "code", "elicitation", "write", "inspectors", "FCEDe", "sessionId", "auth", "ufHqk", "35FagELh", "1507854ndNPRD", "handleStreamRequest", "xrxSg", "json", "EypRd", "user"];
945
- _0x6b51 = function() {
946
- return _0x390c80;
947
- };
948
- return _0x6b51();
949
- }
950
956
  export {
951
957
  ACCESS_TOKEN_EXPIRES_IN,
952
958
  AuthServerProvider,