Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,266 @@
|
||||
/* Metro module 950; source: unknown; dependencies: [57, 77, 948] */
|
||||
function _fun10082(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#10082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1077:6, offset: 0x00d7bd7f, size: 319 bytes, params: 8, frame: 20
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const env0_2 = require(57) /* metro dependency 57 */;
|
||||
const env0_3 = require(77) /* metro dependency 77 */;
|
||||
const Object = global.Object;
|
||||
const defineProperty = Object.defineProperty;
|
||||
const Symbol = global.Symbol;
|
||||
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
||||
object2 = {};
|
||||
const MCP_TOOL_NAME_ATTRIBUTE = (require(948) /* metro dependency 948 */).MCP_TOOL_NAME_ATTRIBUTE;
|
||||
object2['tools/call'] = {'targetField': 'name', 'targetAttribute': null, 'captureArguments': true,
|
||||
'argumentsField': 'arguments', targetAttribute: MCP_TOOL_NAME_ATTRIBUTE};
|
||||
const MCP_RESOURCE_URI_ATTRIBUTE = (require(948) /* metro dependency 948 */).MCP_RESOURCE_URI_ATTRIBUTE;
|
||||
object2['resources/read'] = {'targetField': 'uri', 'targetAttribute': null, 'captureUri': true,
|
||||
targetAttribute: MCP_RESOURCE_URI_ATTRIBUTE};
|
||||
object2['resources/subscribe'] = {targetField: 'uri', targetAttribute: MCP_RESOURCE_URI_ATTRIBUTE};
|
||||
object2['resources/unsubscribe'] = {targetField: 'uri', targetAttribute: MCP_RESOURCE_URI_ATTRIBUTE};
|
||||
const MCP_PROMPT_NAME_ATTRIBUTE = (require(948) /* metro dependency 948 */).MCP_PROMPT_NAME_ATTRIBUTE;
|
||||
object2['prompts/get'] = {'targetField': 'name', 'targetAttribute': null, 'captureName': true,
|
||||
'captureArguments': true, 'argumentsField': 'arguments', targetAttribute: MCP_PROMPT_NAME_ATTRIBUTE};
|
||||
exports.extractTargetInfo = extractTargetInfo;
|
||||
exports.getRequestArguments = getRequestArguments;
|
||||
}
|
||||
|
||||
function extractTargetInfo(a0, a1) { // fn#10083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1077:709, offset: 0x00d7bebe, size: 137 bytes, params: 3, frame: 17
|
||||
var r5;
|
||||
var object2;
|
||||
var targetField;
|
||||
var value2;
|
||||
const property = env0_4[a0];
|
||||
if (property) {
|
||||
targetField = property.targetField;
|
||||
value2 = undefined;
|
||||
r5 = targetField ? typeof (a1 == null ? value2 : a1[property.targetField]) !== 'string' ? value2 : a1[property.targetField] : value2;
|
||||
object2 = {target: r5};
|
||||
object2.attributes = r5 && property.targetAttribute ? env0_3({}, property.targetAttribute, r5) : {};
|
||||
return object2;
|
||||
}
|
||||
return {attributes: {}};
|
||||
}
|
||||
|
||||
function getRequestArguments(a0, a1) { // fn#10084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1077:976, offset: 0x00d7bf47, size: 489 bytes, params: 3, frame: 28
|
||||
var r5;
|
||||
var r4;
|
||||
var r3;
|
||||
var object2;
|
||||
var value;
|
||||
var property;
|
||||
var captureArguments;
|
||||
var argumentsField;
|
||||
var property2;
|
||||
var Object;
|
||||
var entries;
|
||||
var iterator;
|
||||
var iterator2;
|
||||
var item;
|
||||
var item2;
|
||||
var binding;
|
||||
var value2;
|
||||
var property3;
|
||||
var property4;
|
||||
var property5;
|
||||
var moduleValue;
|
||||
var MCP_REQUEST_ARGUMENT;
|
||||
var toLowerCase;
|
||||
var value3;
|
||||
var HermesInternal;
|
||||
var concat;
|
||||
var value4;
|
||||
var JSON;
|
||||
var stringify;
|
||||
var value5;
|
||||
var error;
|
||||
var captureUri;
|
||||
var value6;
|
||||
var uri;
|
||||
var value7;
|
||||
var captureName;
|
||||
var value8;
|
||||
var name;
|
||||
exceptionSkip29: while (true) {
|
||||
exceptionLanding29: while (true) {
|
||||
object2 = {};
|
||||
value = environment;
|
||||
property = env0_4[a0];
|
||||
if (property) {
|
||||
captureArguments = property.captureArguments;
|
||||
if (captureArguments) {
|
||||
argumentsField = property.argumentsField;
|
||||
if (!argumentsField) {
|
||||
break;
|
||||
}
|
||||
if (a1 == null) {
|
||||
break;
|
||||
}
|
||||
argumentsField = property.argumentsField;
|
||||
if (!a1[argumentsField]) {
|
||||
break;
|
||||
}
|
||||
argumentsField = property.argumentsField;
|
||||
property2 = a1[argumentsField];
|
||||
if (typeof property2 !== 'object') {
|
||||
break;
|
||||
}
|
||||
if (property2 === null) {
|
||||
break;
|
||||
}
|
||||
Object = global.Object;
|
||||
entries = Object.entries;
|
||||
iterator = Reflect.apply(entries, Object, [property2])[Symbol.iterator]();
|
||||
iterator2 = iterator.next;
|
||||
for (r5 = iterator; true; r5 = item2) {
|
||||
item2 = Reflect.apply(iterator2, r5, []);
|
||||
item = item2.value;
|
||||
item2 = item2.done ? undefined : r5;
|
||||
if (item2 === undefined) {
|
||||
break;
|
||||
}
|
||||
try {
|
||||
binding = env0_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
value2 = binding(item, 2);
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
property3 = value2[0];
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
property4 = value2[1];
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
property5 = dependencyMap[2];
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
moduleValue = require(property5);
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
MCP_REQUEST_ARGUMENT = moduleValue.MCP_REQUEST_ARGUMENT;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
toLowerCase = property3.toLowerCase;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
value3 = Reflect.apply(toLowerCase, property3, []);
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
HermesInternal = global.HermesInternal;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
concat = HermesInternal.concat;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
value4 = '' + MCP_REQUEST_ARGUMENT + '.' + value3;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
JSON = global.JSON;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
stringify = JSON.stringify;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
value5 = Reflect.apply(stringify, JSON, [property4]);
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
try {
|
||||
object2[value4] = value5;
|
||||
} catch (error) {
|
||||
break exceptionLanding29;
|
||||
}
|
||||
}
|
||||
}
|
||||
captureUri = property.captureUri;
|
||||
if (captureUri) {
|
||||
value6 = a1 != null;
|
||||
r4 = value6;
|
||||
} else {
|
||||
r4 = captureUri;
|
||||
}
|
||||
if (r4) {
|
||||
uri = a1.uri;
|
||||
r4 = uri;
|
||||
}
|
||||
if (r4) {
|
||||
MCP_REQUEST_ARGUMENT = require(dependencyMap[2]).MCP_REQUEST_ARGUMENT;
|
||||
HermesInternal = global.HermesInternal;
|
||||
concat = HermesInternal.concat;
|
||||
value7 = '' + MCP_REQUEST_ARGUMENT + '.uri';
|
||||
JSON = global.JSON;
|
||||
stringify = JSON.stringify;
|
||||
uri = a1.uri;
|
||||
object2[value7] = Reflect.apply(stringify, JSON, [uri]);
|
||||
}
|
||||
captureName = property.captureName;
|
||||
if (captureName) {
|
||||
value8 = a1 != null;
|
||||
r3 = value8;
|
||||
} else {
|
||||
r3 = captureName;
|
||||
}
|
||||
if (r3) {
|
||||
name = a1.name;
|
||||
r3 = name;
|
||||
}
|
||||
if (r3) {
|
||||
MCP_REQUEST_ARGUMENT = require(dependencyMap[2]).MCP_REQUEST_ARGUMENT;
|
||||
HermesInternal = global.HermesInternal;
|
||||
concat = HermesInternal.concat;
|
||||
value = '' + MCP_REQUEST_ARGUMENT + '.name';
|
||||
JSON = global.JSON;
|
||||
stringify = JSON.stringify;
|
||||
name = a1.name;
|
||||
object2[value] = Reflect.apply(stringify, JSON, [name]);
|
||||
}
|
||||
return object2;
|
||||
}
|
||||
return object2;
|
||||
break exceptionSkip29;
|
||||
}
|
||||
try {
|
||||
item2.return();
|
||||
} catch {
|
||||
}
|
||||
throw error;
|
||||
break exceptionSkip29;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user