1673 lines
100 KiB
JavaScript
1673 lines
100 KiB
JavaScript
/* Metro module 981; source: unknown; dependencies: [5, 65, 77, 966, 982, 968, 848, 983, 969, 874, 984, 849, 877, 875, 857] */
|
|
import * as Module00005Module from './module-00005.js'; /* Metro dependency 5 */
|
|
import * as Module00065Module from './module-00065.js'; /* Metro dependency 65 */
|
|
import * as Module00077Module from './module-00077.js'; /* Metro dependency 77 */
|
|
import * as SEMANTIC_Module from './module-00848-SEMANTIC_.js'; /* Metro dependency 848 */
|
|
import * as Module00857Module from './module-00857.js'; /* Metro dependency 857 */
|
|
import * as moduleValue3 from './module-00874.js'; /* Metro dependency 874 */
|
|
import * as Module00877Module from './module-00877.js'; /* Metro dependency 877 */
|
|
import * as Module00966Module from './module-00966.js'; /* Metro dependency 966 */
|
|
import * as Module00968Module from './module-00968.js'; /* Metro dependency 968 */
|
|
import * as Module00982Module from './module-00982.js'; /* Metro dependency 982 */
|
|
import * as Module00983Module from './module-00983.js'; /* Metro dependency 983 */
|
|
|
|
function _fun10315(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#10315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1108:6, offset: 0x00d87e4b, size: 178 bytes, params: 8, frame: 19
|
|
let env0_0 = require;
|
|
const extractModel2 = extractModel;
|
|
const createDeepProxy_10336 = function(a0) {
|
|
var value = undefined;
|
|
var value2 = '';
|
|
var env0_0 = arguments.length > 1 ? value === arguments[1] ? value2 : arguments[1] : value2;
|
|
var env0_1 = arguments.length > 2 ? arguments[2] : value;
|
|
var Proxy = global.Proxy;
|
|
value = Object.create(Proxy.prototype, {constructor: {value: Proxy}});
|
|
var value4 = new Proxy(a0, {get: _fun10337});
|
|
return value4 instanceof Object ? value4 : value;
|
|
};
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
exports.extractModel = extractModel2;
|
|
exports.instrumentGoogleGenAIClient = instrumentGoogleGenAIClient;
|
|
function extractRequestAttributes_10317(a0, a1, a2) { // fn#10317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1108:330, offset: 0x00d87f7f, size: 767 bytes, params: 4, frame: 23
|
|
var r9;
|
|
var config;
|
|
var Object;
|
|
var assign;
|
|
var object;
|
|
var Array;
|
|
var value17;
|
|
var GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE;
|
|
var JSON;
|
|
const GEN_AI_SYSTEM_ATTRIBUTE = (require(966) /* metro dependency 966 */).GEN_AI_SYSTEM_ATTRIBUTE;
|
|
const GOOGLE_GENAI_SYSTEM_NAME = (Module00982Module).GOOGLE_GENAI_SYSTEM_NAME;
|
|
const value2 = Module00077Module({}, GEN_AI_SYSTEM_ATTRIBUTE, GOOGLE_GENAI_SYSTEM_NAME);
|
|
const GEN_AI_OPERATION_NAME_ATTRIBUTE = (require(966) /* metro dependency 966 */).GEN_AI_OPERATION_NAME_ATTRIBUTE;
|
|
const getFinalOperationName = Module00968Module.getFinalOperationName;
|
|
const value3 = Module00077Module(value2, GEN_AI_OPERATION_NAME_ATTRIBUTE, Reflect.apply(getFinalOperationName, Module00968Module,
|
|
[a0]));
|
|
const SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = (SEMANTIC_Module).SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN;
|
|
const value4 = Module00077Module(value3, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, 'auto.ai.google_genai');
|
|
const GEN_AI_REQUEST_MODEL_ATTRIBUTE = (require(966) /* metro dependency 966 */).GEN_AI_REQUEST_MODEL_ATTRIBUTE;
|
|
const extractModelBinding = extractModel;
|
|
if (a1) {
|
|
value4[GEN_AI_REQUEST_MODEL_ATTRIBUTE] = extractModelBinding(a1, a2);
|
|
if ('config' in a1) {
|
|
config = a1.config;
|
|
if (typeof config === 'object') {
|
|
config = a1.config;
|
|
if (config) {
|
|
config = a1.config;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
object = {};
|
|
r9 = 'temperature' in config && typeof config.temperature === 'number';
|
|
if (r9) {
|
|
object[(require(966) /* metro dependency 966 */).GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE] = config.temperature;
|
|
}
|
|
r9 = 'topP' in config && typeof config.topP === 'number';
|
|
if (r9) {
|
|
object[(require(966) /* metro dependency 966 */).GEN_AI_REQUEST_TOP_P_ATTRIBUTE] = config.topP;
|
|
}
|
|
r9 = 'topK' in config && typeof config.topK === 'number';
|
|
if (r9) {
|
|
object[(require(966) /* metro dependency 966 */).GEN_AI_REQUEST_TOP_K_ATTRIBUTE] = config.topK;
|
|
}
|
|
r9 = 'maxOutputTokens' in config && typeof config.maxOutputTokens === 'number';
|
|
if (r9) {
|
|
object[(require(966) /* metro dependency 966 */).GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE] = config.maxOutputTokens;
|
|
}
|
|
r9 = 'frequencyPenalty' in config && typeof config.frequencyPenalty === 'number';
|
|
if (r9) {
|
|
object[(require(966) /* metro dependency 966 */).GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE] = config.frequencyPenalty;
|
|
}
|
|
r9 = 'presencePenalty' in config && typeof config.presencePenalty === 'number';
|
|
if (r9) {
|
|
object[(require(966) /* metro dependency 966 */).GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE] = config.presencePenalty;
|
|
}
|
|
Reflect.apply(assign, Object, [value4, object]);
|
|
if ('tools' in config) {
|
|
Array = global.Array;
|
|
if (Array.isArray(config.tools)) {
|
|
value17 = config.tools.flatMap(function(a0) {
|
|
return a0.functionDeclarations;
|
|
});
|
|
GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE = (require(966) /* metro dependency 966 */).GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE;
|
|
JSON = global.JSON;
|
|
value4[GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE] = JSON.stringify(value17);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
value4[GEN_AI_REQUEST_MODEL_ATTRIBUTE] = extractModelBinding({}, a2);
|
|
}
|
|
return value4;
|
|
}
|
|
|
|
function addPrivateRequestAttributes_10319(a0, a1) { // fn#10319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1108:1740, offset: 0x00d8828b, size: 566 bytes, params: 3, frame: 22
|
|
var push;
|
|
var apply;
|
|
var binding;
|
|
var setAttributes;
|
|
var GEN_AI_REQUEST_MESSAGES_ATTRIBUTE;
|
|
var JSON;
|
|
var stringify;
|
|
var moduleValue;
|
|
const items2 = [];
|
|
let value = 'config' in a1;
|
|
let r1 = value && a1.config && typeof a1.config === 'object';
|
|
r1 = r1 && 'systemInstruction' in a1.config && a1.config.systemInstruction;
|
|
if (r1) {
|
|
push = items2.push;
|
|
apply = push.apply;
|
|
binding = Module00065Module;
|
|
value = require(983) /* metro dependency 983 */;
|
|
Reflect.apply(apply, push, [items2, binding(value.contentUnionToMessages(a1.config.systemInstruction,
|
|
'system'))]);
|
|
}
|
|
if ('history' in a1) {
|
|
push = items2.push;
|
|
apply = push.apply;
|
|
binding = Module00065Module;
|
|
value = require(983) /* metro dependency 983 */;
|
|
Reflect.apply(apply, push, [items2, binding(value.contentUnionToMessages(a1.history, 'user'))]);
|
|
}
|
|
if ('contents' in a1) {
|
|
push = items2.push;
|
|
apply = push.apply;
|
|
binding = Module00065Module;
|
|
value = require(983) /* metro dependency 983 */;
|
|
Reflect.apply(apply, push, [items2, binding(value.contentUnionToMessages(a1.contents, 'user'))]);
|
|
}
|
|
if ('message' in a1) {
|
|
push = items2.push;
|
|
apply = push.apply;
|
|
binding = Module00065Module;
|
|
value = require(983) /* metro dependency 983 */;
|
|
Reflect.apply(apply, push, [items2, binding(value.contentUnionToMessages(a1.message, 'user'))]);
|
|
}
|
|
const Array = global.Array;
|
|
if (Array.isArray(items2) && items2.length) {
|
|
setAttributes = a0.setAttributes;
|
|
binding = Module00077Module;
|
|
value = binding({}, (require(966) /* metro dependency 966 */).GEN_AI_REQUEST_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,
|
|
items2.length);
|
|
GEN_AI_REQUEST_MESSAGES_ATTRIBUTE = (require(966) /* metro dependency 966 */).GEN_AI_REQUEST_MESSAGES_ATTRIBUTE;
|
|
JSON = global.JSON;
|
|
stringify = JSON.stringify;
|
|
moduleValue = require(969) /* metro dependency 969 */;
|
|
Reflect.apply(setAttributes, a0, [binding(value, GEN_AI_REQUEST_MESSAGES_ATTRIBUTE, Reflect.apply(stringify,
|
|
JSON,
|
|
[moduleValue.truncateGenAiMessages(items2)]))]);
|
|
}
|
|
}
|
|
|
|
function instrumentMethod_10320(a0, a1, a2, a3) { // fn#10320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1108:2452, offset: 0x00d884c1, size: 109 bytes, params: 5, frame: 14
|
|
const env0_0 = a1;
|
|
const env0_1 = a2;
|
|
const env0_2 = a3;
|
|
const CHATS_CREATE_METHOD = (Module00982Module).CHATS_CREATE_METHOD;
|
|
const result = a1 === CHATS_CREATE_METHOD;
|
|
const Proxy = global.Proxy;
|
|
const object = {apply: apply_10321};
|
|
const value = Object.create(Proxy.prototype, {constructor: {value: Proxy}});
|
|
const proxy = new Proxy(a0, object);
|
|
return proxy instanceof Object ? proxy : value;
|
|
function instrumentMethod_10320Apply(a0, a1, a2) { // fn#10321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1108:2551, owner: instrumentMethod_10320.apply, offset: 0x00d8852e, size: 411 bytes, params: 4, frame: 29
|
|
var environment;
|
|
var r0;
|
|
var startSpan;
|
|
var object;
|
|
var startSpanManual;
|
|
const env0_0 = a0;
|
|
const env0_1 = a2;
|
|
const property = a2[0];
|
|
let value = environment.__proto__;
|
|
const value3 = extractRequestAttributes_10317(require, property, importDefault);
|
|
const GEN_AI_REQUEST_MODEL_ATTRIBUTE = (Module00966Module).GEN_AI_REQUEST_MODEL_ATTRIBUTE;
|
|
const r16 = value3[GEN_AI_REQUEST_MODEL_ATTRIBUTE] ?? 'unknown';
|
|
const finalOperationName = (require(968) /* metro dependency 968 */).getFinalOperationName(require);
|
|
const isStreamingMethod2 = (Module00983Module).isStreamingMethod(require);
|
|
if (isStreamingMethod2) {
|
|
startSpanManual = moduleValue3.startSpanManual;
|
|
object = {};
|
|
object.name = '' + finalOperationName + ' ' + r16 + ' stream-response';
|
|
value = require(968) /* metro dependency 968 */;
|
|
object.op = value.getSpanOperation(require);
|
|
object.attributes = value3;
|
|
value = Reflect.apply(startSpanManual, moduleValue3, [object, _fun10322()]);
|
|
r0 = value;
|
|
} else {
|
|
startSpan = moduleValue3.startSpan;
|
|
object = {};
|
|
object.name = result ? '' + finalOperationName + ' ' + r16 + ' create' : '' + finalOperationName + ' ' + r16;
|
|
value = require(968) /* metro dependency 968 */;
|
|
object.op = value.getSpanOperation(require);
|
|
object.attributes = value3;
|
|
value = Reflect.apply(startSpan, moduleValue3, [object, _fun10326]);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
function _fun10322() { // fn#10322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1108:2860, offset: 0x00d886c9, size: 32 bytes, params: 1, frame: 12
|
|
const env0_0 = env2_2(_fun10324);
|
|
return _fun10325;
|
|
function* _fun10324(a0) { // fn#10324, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1108:2880, offset: 0x00d886f2, size: 313 bytes, params: 2, frame: 19
|
|
var r1;
|
|
var binding;
|
|
var recordInputs;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var apply;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var binding2;
|
|
var property;
|
|
var value11;
|
|
var instrumentStream;
|
|
var Boolean;
|
|
var recordOutputs;
|
|
var value12;
|
|
var value13;
|
|
var error;
|
|
var setStatus;
|
|
var value14;
|
|
var binding3;
|
|
var SPAN_STATUS_ERROR;
|
|
var value15;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
try {
|
|
binding = env3_2;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
recordInputs = binding.recordInputs;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
if (recordInputs) {
|
|
value3 = environment.__proto__.__proto__;
|
|
try {
|
|
r1 = importAll;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
if (r1) {
|
|
value4 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
try {
|
|
binding = env4_7;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
value5 = environment.__proto__.__proto__;
|
|
try {
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding(a0, importAll);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
value6 = environment.__proto__.__proto__;
|
|
try {
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
apply = require.apply;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(apply, require, [dependencyMap, importDefault]);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
yield value7;
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
if (value9) {
|
|
return value8;
|
|
}
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
try {
|
|
binding = env4_0;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding2 = env4_1;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding2[10];
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value11 = binding(property);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
instrumentStream = value11.instrumentStream;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
Boolean = global.Boolean;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env3_2;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
recordOutputs = binding.recordOutputs;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value12 = Boolean(recordOutputs);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value13 = Reflect.apply(instrumentStream, value11, [value8, a0, value12]);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
return value13;
|
|
}
|
|
value6 = environment.__proto__.__proto__;
|
|
try {
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
apply = require.apply;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(apply, require, [dependencyMap, importDefault]);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
yield value7;
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
if (value9) {
|
|
return value8;
|
|
}
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
try {
|
|
binding = env4_0;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding2 = env4_1;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding2[10];
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value11 = binding(property);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
instrumentStream = value11.instrumentStream;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
Boolean = global.Boolean;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env3_2;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
recordOutputs = binding.recordOutputs;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value12 = Boolean(recordOutputs);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value13 = Reflect.apply(instrumentStream, value11, [value8, a0, value12]);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
} else {
|
|
if (recordInputs) {
|
|
value4 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
try {
|
|
binding = env4_7;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
value5 = environment.__proto__.__proto__;
|
|
try {
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding(a0, importAll);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
value6 = environment.__proto__.__proto__;
|
|
try {
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
apply = require.apply;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(apply, require, [dependencyMap, importDefault]);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
yield value7;
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
if (value9) {
|
|
return value8;
|
|
}
|
|
value10 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
try {
|
|
binding = env4_0;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding2 = env4_1;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding2[10];
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value11 = binding(property);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
instrumentStream = value11.instrumentStream;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
Boolean = global.Boolean;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env3_2;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
recordOutputs = binding.recordOutputs;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value12 = Boolean(recordOutputs);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value13 = Reflect.apply(instrumentStream, value11, [value8, a0, value12]);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
return value13;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
apply = require.apply;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(apply, require, [dependencyMap, importDefault]);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
yield value7;
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
if (value9) {
|
|
return value8;
|
|
}
|
|
try {
|
|
binding = env4_0;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding2 = env4_1;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding2[10];
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value11 = binding(property);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
instrumentStream = value11.instrumentStream;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
Boolean = global.Boolean;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env3_2;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
recordOutputs = binding.recordOutputs;
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value12 = Boolean(recordOutputs);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
try {
|
|
value13 = Reflect.apply(instrumentStream, value11, [value8, a0, value12]);
|
|
} catch (error) {
|
|
setStatus = a0.setStatus;
|
|
value14 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_0;
|
|
binding3 = env4_1;
|
|
SPAN_STATUS_ERROR = binding(binding3[11]).SPAN_STATUS_ERROR;
|
|
Reflect.apply(setStatus, a0, [{code: SPAN_STATUS_ERROR, message: 'internal_error'}]);
|
|
value15 = binding(binding3[12]);
|
|
value15.captureException(error, {mechanism: {'handled': false, 'type': 'auto.ai.google_genai',
|
|
data: {function: require}}});
|
|
a0.end();
|
|
throw error;
|
|
}
|
|
}
|
|
return value13;
|
|
}
|
|
|
|
function _fun10325(a0) { // fn#10325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1108:3245, offset: 0x00d71197, size: 29 bytes, params: 2, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun10326(a0) { // fn#10326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1108:3396, offset: 0x00d8882b, size: 117 bytes, params: 2, frame: 17
|
|
var environment;
|
|
const env0_0 = a0;
|
|
let value = environment.__proto__;
|
|
if (importAll.recordInputs && env0_2) {
|
|
value = environment.__proto__.__proto__;
|
|
addPrivateRequestAttributes_10319(a0, env0_2);
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
return (require(875) /* metro dependency 875 */).handleCallbackErrors(_fun10327, _fun10328, function() {
|
|
}, _fun10330);
|
|
function _fun10327() { // fn#10327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1108:3498, offset: 0x00d888a0, size: 31 bytes, params: 1, frame: 13
|
|
return env1_0.apply(importDefault, importDefault);
|
|
}
|
|
|
|
function _fun10328(a0) { // fn#10328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1108:3532, offset: 0x00d888bf, size: 81 bytes, params: 2, frame: 16
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
(Module00877Module).captureException(a0, {mechanism: {'handled': false,
|
|
'type': 'auto.ai.google_genai', data: {function: require}}});
|
|
}
|
|
|
|
function _fun10330(a0) { // fn#10330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1108:3662, offset: 0x00d88910, size: 50 bytes, params: 2, frame: 15
|
|
if (!result) {
|
|
addResponseAttributes_10331(env0_0, a0, importAll.recordOutputs);
|
|
}
|
|
function addResponseAttributes_10331(a0, a1, a2) { // fn#10331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1108:3677, offset: 0x00d88942, size: 648 bytes, params: 4, frame: 22
|
|
var environment;
|
|
var setAttribute;
|
|
var value;
|
|
var usageMetadata;
|
|
var setAttributes;
|
|
var binding;
|
|
var Array;
|
|
var value2;
|
|
var GEN_AI_RESPONSE_TEXT_ATTRIBUTE;
|
|
var functionCalls;
|
|
var GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE;
|
|
if (a1) {
|
|
if (typeof a1 === 'object') {
|
|
if (a1.modelVersion) {
|
|
setAttribute = a0.setAttribute;
|
|
value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
Reflect.apply(setAttribute, a0,
|
|
[(require(966) /* metro dependency 966 */).GEN_AI_RESPONSE_MODEL_ATTRIBUTE,
|
|
a1.modelVersion]);
|
|
}
|
|
usageMetadata = a1.usageMetadata;
|
|
if (usageMetadata) {
|
|
usageMetadata = a1.usageMetadata;
|
|
if (typeof usageMetadata === 'object') {
|
|
usageMetadata = a1.usageMetadata;
|
|
if (typeof usageMetadata.promptTokenCount === 'number') {
|
|
setAttributes = a0.setAttributes;
|
|
value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
Reflect.apply(setAttributes, a0, [env4_4({},
|
|
(require(966) /* metro dependency 966 */).GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,
|
|
usageMetadata.promptTokenCount)]);
|
|
}
|
|
if (typeof usageMetadata.candidatesTokenCount === 'number') {
|
|
setAttributes = a0.setAttributes;
|
|
value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
Reflect.apply(setAttributes, a0, [env4_4({},
|
|
(require(966) /* metro dependency 966 */).GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,
|
|
usageMetadata.candidatesTokenCount)]);
|
|
}
|
|
if (typeof usageMetadata.totalTokenCount === 'number') {
|
|
setAttributes = a0.setAttributes;
|
|
value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
Reflect.apply(setAttributes, a0, [env4_4({},
|
|
(require(966) /* metro dependency 966 */).GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,
|
|
usageMetadata.totalTokenCount)]);
|
|
}
|
|
}
|
|
}
|
|
if (a2) {
|
|
Array = global.Array;
|
|
if (Array.isArray(a1.candidates)) {
|
|
if (a1.candidates.length > 0) {
|
|
value = a1.candidates.map(function(a0) {
|
|
var r0;
|
|
var property = a0.content;
|
|
var value = '';
|
|
if (property != null) {
|
|
if (property.parts) {
|
|
if (global.Array.isArray(a0.content.parts)) {
|
|
value = a0.content.parts.map(_fun10333).filter(_fun10334).join(value);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
});
|
|
value = value.filter(_fun10335);
|
|
if (value.length > 0) {
|
|
setAttributes = a0.setAttributes;
|
|
value2 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_4;
|
|
GEN_AI_RESPONSE_TEXT_ATTRIBUTE = (require(966) /* metro dependency 966 */).GEN_AI_RESPONSE_TEXT_ATTRIBUTE;
|
|
value = value.join('');
|
|
Reflect.apply(setAttributes, a0, [binding({}, GEN_AI_RESPONSE_TEXT_ATTRIBUTE, value)]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (a2) {
|
|
functionCalls = a1.functionCalls;
|
|
if (functionCalls) {
|
|
functionCalls = a1.functionCalls;
|
|
value = global.Array.isArray(functionCalls);
|
|
if (value && functionCalls.length > 0) {
|
|
setAttributes = a0.setAttributes;
|
|
value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_4;
|
|
GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE = (require(966) /* metro dependency 966 */).GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE;
|
|
value = global.JSON.stringify(functionCalls);
|
|
Reflect.apply(setAttributes, a0, [binding({}, GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE, value)]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
function _fun10332(a0) { // fn#10332, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1108:4362, offset: 0x00d88bca, size: 126 bytes, params: 2, frame: 15
|
|
var r0;
|
|
var Array;
|
|
const content = a0.content;
|
|
let value = '';
|
|
if (content != null) {
|
|
if (content.parts) {
|
|
Array = global.Array;
|
|
if (Array.isArray(a0.content.parts)) {
|
|
value = a0.content.parts.map(function(a0) {
|
|
return typeof a0.text !== 'string' ? '' : a0.text;
|
|
}).filter(_fun10334).join(value);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function createDeepProxy_10336(a0) { // fn#10336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1108:4900, offset: 0x00d88c76, size: 115 bytes, params: 2, frame: 16
|
|
let value = undefined;
|
|
const value2 = '';
|
|
const env0_0 = arguments.length > 1 ? value === arguments[1] ? value2 : arguments[1] : value2;
|
|
const env0_1 = arguments.length > 2 ? arguments[2] : value;
|
|
const Proxy = global.Proxy;
|
|
const object = {get: get_10337};
|
|
value = Object.create(Proxy.prototype, {constructor: {value: Proxy}});
|
|
const proxy = new Proxy(a0, object);
|
|
return proxy instanceof Object ? proxy : value;
|
|
function createDeepProxy_10336Get(a0, a1, a2) { // fn#10337, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1108:5057, owner: createDeepProxy_10336.get, offset: 0x00d88ce9, size: 272 bytes, params: 4, frame: 23
|
|
var r7;
|
|
var moduleValue2;
|
|
const Reflect = global.Reflect;
|
|
let value = Reflect.get(a0, a1, a2);
|
|
const buildMethodPath = Module00968Module.buildMethodPath;
|
|
const binding = env0_0;
|
|
const String = global.String;
|
|
const methodPath = Reflect.apply(buildMethodPath, Module00968Module, [binding, String(a1)]);
|
|
const value4 = typeof value;
|
|
const value5 = value4 === 'function';
|
|
if (value5) {
|
|
moduleValue2 = require(983) /* metro dependency 983 */;
|
|
if (moduleValue2.shouldInstrument(methodPath)) {
|
|
if (methodPath === (require(982) /* metro dependency 982 */).CHATS_CREATE_METHOD) {
|
|
var env0_0 = instrumentMethod_10320(value, methodPath, a0, env0_1);
|
|
return instrumentedAndProxiedCreate;
|
|
}
|
|
return instrumentMethod_10320(value, methodPath, a0, env0_1);
|
|
}
|
|
}
|
|
if (value5) {
|
|
value = value.bind(a0);
|
|
r7 = value;
|
|
} else if (value) {
|
|
if (value4 !== 'object') {
|
|
r7 = value;
|
|
} else {
|
|
value = createDeepProxy_10336(value, methodPath, env0_1);
|
|
r7 = value;
|
|
}
|
|
} else {
|
|
r7 = value;
|
|
}
|
|
return r7;
|
|
function instrumentedAndProxiedCreate() { // fn#10338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1108:5270, owner: createDeepProxy_10336.get.instrumentedAndProxiedCreate, offset: 0x00d88df9, size: 93 bytes, params: 1, frame: 17
|
|
var r0;
|
|
var value2;
|
|
var createDeepProxy_10336Binding;
|
|
var CHAT_PATH;
|
|
var value3;
|
|
let value = env0_0.apply(undefined, arguments);
|
|
if (value) {
|
|
if (typeof value !== 'object') {
|
|
r0 = value;
|
|
} else {
|
|
value2 = environment.__proto__.__proto__;
|
|
createDeepProxy_10336Binding = createDeepProxy_10336;
|
|
CHAT_PATH = (require(982) /* metro dependency 982 */).CHAT_PATH;
|
|
value3 = environment.__proto__;
|
|
value = createDeepProxy_10336Binding(value, CHAT_PATH, env1_1);
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function instrumentGoogleGenAIClient(a0, a1) { // fn#10339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1108:5652, offset: 0x00d88e56, size: 127 bytes, params: 3, frame: 17
|
|
const Boolean = global.Boolean;
|
|
const value2 = undefined;
|
|
const client = (Module00857Module).getClient();
|
|
const value4 = Boolean(client == null ? value2 : client.getOptions().sendDefaultPii);
|
|
const createDeepProxy_10336Binding = createDeepProxy_10336;
|
|
const Object = global.Object;
|
|
return createDeepProxy_10336Binding(a0, '', Object.assign({recordInputs: value4, recordOutputs: value4}, a1));
|
|
}
|
|
|
|
}
|
|
|
|
function extractModel(a0, a1) { // fn#10316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1108:64, offset: 0x00d87efd, size: 130 bytes, params: 3, frame: 5
|
|
if ('model' in a0) {
|
|
if (typeof a0.model === 'string') {
|
|
return a0.model;
|
|
}
|
|
}
|
|
if (a1) {
|
|
if (typeof a1 !== 'object') {
|
|
return 'unknown';
|
|
}
|
|
if ('model' in a1) {
|
|
if (typeof a1.model === 'string') {
|
|
return a1.model;
|
|
}
|
|
if ('modelVersion' in a1) {
|
|
if (typeof a1.modelVersion === 'string') {
|
|
return a1.modelVersion;
|
|
}
|
|
return 'unknown';
|
|
}
|
|
return 'unknown';
|
|
}
|
|
if ('modelVersion' in a1) {
|
|
if (typeof a1.modelVersion === 'string') {
|
|
return a1.modelVersion;
|
|
}
|
|
return 'unknown';
|
|
}
|
|
}
|
|
return 'unknown';
|
|
}
|
|
|
|
function _fun10333(a0) { // fn#10333, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1108:4469, offset: 0x00d88c48, size: 30 bytes, params: 2, frame: 4
|
|
let text = a0.text;
|
|
text = typeof text !== 'string' ? '' : a0.text;
|
|
return text;
|
|
}
|
|
|
|
function _fun10334({length}) { // fn#10334, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1108:4532, offset: 0x00d88c66, size: 16 bytes, params: 2, frame: 2
|
|
return length > 0;
|
|
}
|
|
|
|
function _fun10335({length}) { // fn#10335, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1108:4588, offset: 0x00d88c66, size: 16 bytes, params: 2, frame: 2
|
|
return length > 0;
|
|
}
|
|
|
|
global.__d(_fun10315, 981, [5, 65, 77, 966, 982, 968, 848, 983, 969, 874, 984, 849, 877, 875,
|
|
857]) /* metro module 981, dependencies: [5, 65, 77, 966, 982, 968, 848, 983, 969, 874, 984, 849, 877, 875, 857] */;
|