/* Metro module 7474; source: unknown; dependencies: [862, 65, 77, 7365, 7368, 7369, 7383, 7393, 7397, 7401, 7451, 7374, 7403, 7384, 7402, 7440, 7386, 7382, 7376] */ import * as Module00065Module from './module-00065.js'; /* Metro dependency 65 */ import * as Module00077Module from './module-00077.js'; /* Metro dependency 77 */ import * as Module00862Module from './module-00862.js'; /* Metro dependency 862 */ import * as RegisterSpanErrorInstrumentationModule from './module-07365-registerSpanErrorInstrumentation.js'; /* Metro dependency 7365 */ import * as DEBUG_BUILDModule from './module-07368-DEBUG_BUILD.js'; /* Metro dependency 7368 */ import * as Module07369Module from './module-07369.js'; /* Metro dependency 7369 */ import * as Module07382Module from './module-07382.js'; /* Metro dependency 7382 */ import * as Module07383Module from './module-07383.js'; /* Metro dependency 7383 */ import * as SEMANTIC_ATTRIBUTE_Module from './module-07384-SEMANTIC_ATTRIBUTE_.js'; /* Metro dependency 7384 */ import * as Module07393Module from './module-07393.js'; /* Metro dependency 7393 */ import * as DEBUG_BUILDModule2 from './module-07397-DEBUG_BUILD.js'; /* Metro dependency 7397 */ import * as SentryNonRecordingSpanModule from './module-07402-SentryNonRecordingSpan.js'; /* Metro dependency 7402 */ import * as GetTraceDataModule from './module-07440-getTraceData.js'; /* Metro dependency 7440 */ function _fun60286(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7652:6, offset: 0x01700252, size: 214 bytes, params: 8, frame: 19 const env0_0 = require; const stripBaggageHeaderOfSentryBaggageValues = function(a0) { var value = a0.split(','); value = value.filter(_fun60293); return value.join(','); }; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); RegisterSpanErrorInstrumentationModule; DEBUG_BUILDModule; Module07369Module; Module07383Module; Module07393Module; DEBUG_BUILDModule2; exports.addTracingHeadersToFetchRequest = function(a0, a1, a2, a3, a4) { return _addTracingHeadersToFetchRequest_60287(a0, a3, a4); }; exports.instrumentFetchRequest = instrumentFetchRequest_60295; function _addTracingHeadersToFetchRequest_60287(a0, a1, a2) { // fn#60287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7652:65, offset: 0x01700328, size: 681 bytes, params: 4, frame: 24 var r7; var headers; var r3; var r2; var baggage; var r13; var value4; var moduleValue2; var Object; var assign; var value5; var moduleValue3; var Array; var isArray; var concat; var binding; var value8; var value; const value2 = undefined; let object = {span: a2}; const traceData = GetTraceDataModule.getTraceData(object); const property = traceData['sentry-trace']; const baggage2 = traceData.baggage; if (property) { headers = a1.headers; if (headers) { r3 = headers; } else { value4 = typeof global.Request !== 'undefined'; if (value4) { moduleValue2 = require(7376) /* metro dependency 7376 */; r7 = moduleValue2.isInstanceOf(a0, global.Request); } else { r7 = value4; } r3 = r7 ? a0.headers : value2; } if (r3) { value5 = typeof global.Headers !== 'undefined'; if (value5) { moduleValue3 = require(7376) /* metro dependency 7376 */; r2 = moduleValue3.isInstanceOf(r3, global.Headers); } else { r2 = value5; } if (r2) { headers = new global.Headers(); headers.set('sentry-trace', property); if (baggage2) { value8 = headers.get('baggage'); if (value8) { value = stripBaggageHeaderOfSentryBaggageValues(value8); headers.set('baggage', value ? '' + value + ',' + baggage2 : baggage2); } else { headers.set('baggage', baggage2); } } return headers; } Array = global.Array; isArray = Array.isArray; if (Reflect.apply(isArray, Array, [r3])) { object = []; concat = object.concat; binding = Module00065Module; value = r3.filter(function(a0) { var Array = global.Array; return !(Array.isArray(a0) && a0[0] === 'sentry-trace'); }); value = binding(value.map(_fun60289)); value = Reflect.apply(concat, object, [value, [['sentry-trace', property]]]); if (baggage2) { value.push(['baggage', baggage2]); } return value; } baggage = 'baggage' in r3 ? r3.baggage : value2; object = []; Array = global.Array; isArray = Array.isArray; if (Reflect.apply(isArray, Array, [baggage])) { value = baggage.map(_fun60290); value = value.filter(_fun60291); r13 = value; } else if (baggage) { object.push(stripBaggageHeaderOfSentryBaggageValues(baggage)); r13 = object; } else { r13 = object; } if (baggage2) { r13.push(baggage2); } Object = global.Object; assign = Object.assign; object = {}; object['sentry-trace'] = property; r2 = r13.length > 0 ? r13.join(',') : value2; object.baggage = r2; return Reflect.apply(assign, Object, [{}, r3, object]); } Object = global.Object; return Object.assign({}, traceData); } return value2; function _fun60289(a0) { // fn#60289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7652:737, offset: 0x017005fc, size: 135 bytes, params: 2, frame: 15 var value; var value2; var property; var property2; var value3; var items2; const Array = global.Array; if (Array.isArray(a0)) { if (a0[0] !== 'baggage') { return a0; } if (typeof a0[1] === 'string') { value = environment.__proto__; value2 = env1_2(a0); property = value2[0]; property2 = value2[1]; value3 = value2.slice(2); items2 = [property]; items2[1] = stripBaggageHeaderOfSentryBaggageValues(property2); return items2.concat(env1_3(value3)); } } return a0; } function _fun60290(a0) { // fn#60290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7652:1059, offset: 0x01700683, size: 33 bytes, params: 2, frame: 12 var r0; var value2; let value = a0; if (typeof value !== 'string') { r0 = value; } else { value2 = environment.__proto__; value = stripBaggageHeaderOfSentryBaggageValues(value); r0 = value; } return r0; } } function stripBaggageHeaderOfSentryBaggageValues(a0) { // fn#60292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7652:1352, offset: 0x017006b1, size: 46 bytes, params: 2, frame: 12 let value = a0.split(','); value = value.filter(_fun60293); return value.join(','); function _fun60293(a0) { // fn#60293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7652:1432, offset: 0x017006df, size: 70 bytes, params: 2, frame: 13 const property = a0.split('=')[0]; const startsWith = property.startsWith; value = environment.__proto__; const SENTRY_BAGGAGE_KEY_PREFIX = (Module07382Module).SENTRY_BAGGAGE_KEY_PREFIX; return !Reflect.apply(startsWith, property, [SENTRY_BAGGAGE_KEY_PREFIX]); } } function instrumentFetchRequest_60295(a0, a1, a2, a3) { // fn#60295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7652:1786, offset: 0x01700740, size: 910 bytes, params: 5, frame: 29 var r1; var href; var host; var r6; var r4; var r5; var hasTracingEnabled; var url; var method; var URL; var prototype; var value6; var uRL; var value7; var error; var moduleValue2; var parseUrl; var moduleValue3; var activeSpan; var moduleValue4; var startInactiveSpan; var object; var binding; const SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = (SEMANTIC_ATTRIBUTE_Module).SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN; var value9; const SEMANTIC_ATTRIBUTE_SENTRY_OP = (SEMANTIC_ATTRIBUTE_Module).SEMANTIC_ATTRIBUTE_SENTRY_OP; var value10; const SentryNonRecordingSpan = (SentryNonRecordingSpanModule).SentryNonRecordingSpan; var value11; var sentryNonRecordingSpan; var value12; var spanContext; var spanId; var args; var property; var property2; var _addTracingHeadersToFetchRequest_60287Binding; var moduleValue5; var __span; var response; var setStatus; var moduleValue6; var setHttpStatus; var int; let value = undefined; const value2 = 'auto.http.browser'; const r15 = arguments.length > 4 ? value === arguments[4] ? value2 : arguments[4] : value2; let fetchData = a0.fetchData; if (fetchData) { r1 = (require(7401) /* metro dependency 7401 */).hasTracingEnabled() && a1(a0.fetchData.url); if (a0.endTimestamp) { if (r1) { __span = a0.fetchData.__span; if (__span) { property = a3[__span]; if (property) { response = a0.response; if (response) { moduleValue6 = require(7386) /* metro dependency 7386 */; setHttpStatus = moduleValue6.setHttpStatus; response = a0.response; Reflect.apply(setHttpStatus, moduleValue6, [property, response.status]); response = a0.response; r5 = response && a0.response.headers; r5 = r5 && a0.response.headers.get('content-length'); if (r5) { int = global.parseInt(r5); if (int > 0) { property.setAttribute('http.response_content_length', int); } } } else if (a0.error) { setStatus = property.setStatus; object = {}; object.code = (require(7386) /* metro dependency 7386 */).SPAN_STATUS_ERROR; object.message = 'internal_error'; Reflect.apply(setStatus, property, [object]); } property.end(); delete a3[__span]; } return value; } return value; } fetchData = a0.fetchData; method = fetchData.method; url = fetchData.url; try { URL = global.URL; prototype = URL.prototype; value6 = Object.create(prototype, {constructor: {value: URL}}); uRL = new URL(); value7 = uRL instanceof Object ? uRL : value6; href = value7.href; } catch (error) { href = value; } if (href) { moduleValue2 = require(7451) /* metro dependency 7451 */; host = moduleValue2.parseUrl(href).host; } else { host = value; } activeSpan = (require(7374) /* metro dependency 7374 */).getActiveSpan(); if (r1) { if (activeSpan) { moduleValue4 = require(7403) /* metro dependency 7403 */; startInactiveSpan = moduleValue4.startInactiveSpan; object = {}; object.name = '' + method + ' ' + url; binding = Module00077Module; object.attributes = binding(binding({url: url, type: 'fetch', ['http.method']: method, ['http.url']: href, ['server.address']: host}, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, r15), SEMANTIC_ATTRIBUTE_SENTRY_OP, 'http.client'); r1 = Reflect.apply(startInactiveSpan, moduleValue4, [object]); } else { sentryNonRecordingSpan = new SentryNonRecordingSpan(); } } else { sentryNonRecordingSpan = new SentryNonRecordingSpan(); } fetchData = a0.fetchData; spanContext = r1.spanContext; spanId = Reflect.apply(spanContext, r1, []).spanId; fetchData.__span = spanId; spanContext = r1.spanContext; spanId = Reflect.apply(spanContext, r1, []).spanId; a3[spanId] = r1; fetchData = a0.fetchData; url = fetchData.url; if (a2(url)) { args = a0.args; property = args[0]; args = a0.args; r6 = args[1] || ({}); _addTracingHeadersToFetchRequest_60287Binding = _addTracingHeadersToFetchRequest_60287; moduleValue5 = require(7401) /* metro dependency 7401 */; value = _addTracingHeadersToFetchRequest_60287Binding(property, r6, moduleValue5.hasTracingEnabled() && activeSpan ? r1 : value); if (value) { a0.args[1] = r6; r6.headers = value; } } return r1; } fetchData = a0.fetchData; method = fetchData.method; url = fetchData.url; try { URL = global.URL; } catch (error) { href = value; if (href) { moduleValue2 = require(7451) /* metro dependency 7451 */; parseUrl = moduleValue2.parseUrl; host = Reflect.apply(parseUrl, moduleValue2, [href]).host; } else { host = value; } moduleValue3 = require(7374) /* metro dependency 7374 */; activeSpan = moduleValue3.getActiveSpan(); if (r1) { if (activeSpan) { moduleValue4 = require(7403) /* metro dependency 7403 */; startInactiveSpan = moduleValue4.startInactiveSpan; object = {}; object.name = '' + method + ' ' + url; binding = Module00077Module; value9 = binding({url: url, type: 'fetch', ['http.method']: method, ['http.url']: href, ['server.address']: host}, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, r15); object.attributes = binding(value9, SEMANTIC_ATTRIBUTE_SENTRY_OP, 'http.client'); value10 = Reflect.apply(startInactiveSpan, moduleValue4, [object]); r1 = value10; } else { prototype = SentryNonRecordingSpan.prototype; value11 = Object.create(prototype, {constructor: {value: SentryNonRecordingSpan}}); sentryNonRecordingSpan = new SentryNonRecordingSpan(); value12 = sentryNonRecordingSpan instanceof Object ? sentryNonRecordingSpan : value11; r1 = value12; } } else { prototype = SentryNonRecordingSpan.prototype; value11 = Object.create(prototype, {constructor: {value: SentryNonRecordingSpan}}); sentryNonRecordingSpan = new SentryNonRecordingSpan(); value12 = sentryNonRecordingSpan instanceof Object ? sentryNonRecordingSpan : value11; r1 = value12; } fetchData = a0.fetchData; spanContext = r1.spanContext; spanId = Reflect.apply(spanContext, r1, []).spanId; fetchData.__span = spanId; spanContext = r1.spanContext; spanId = Reflect.apply(spanContext, r1, []).spanId; a3[spanId] = r1; fetchData = a0.fetchData; url = fetchData.url; if (a2(url)) { args = a0.args; property = args[0]; args = a0.args; property2 = args[1]; r6 = property2 || ({}); _addTracingHeadersToFetchRequest_60287Binding = _addTracingHeadersToFetchRequest_60287; moduleValue5 = require(7401) /* metro dependency 7401 */; hasTracingEnabled = moduleValue5.hasTracingEnabled; r4 = Reflect.apply(hasTracingEnabled, moduleValue5, []) && activeSpan ? r1 : value; value = _addTracingHeadersToFetchRequest_60287Binding(property, r6, r4); if (value) { args = a0.args; args[1] = r6; r6.headers = value; } } return r1; } try { prototype = URL.prototype; } catch (error) { href = value; if (href) { moduleValue2 = require(7451) /* metro dependency 7451 */; parseUrl = moduleValue2.parseUrl; host = Reflect.apply(parseUrl, moduleValue2, [href]).host; } else { host = value; } moduleValue3 = require(7374) /* metro dependency 7374 */; activeSpan = moduleValue3.getActiveSpan(); if (r1) { if (activeSpan) { moduleValue4 = require(7403) /* metro dependency 7403 */; startInactiveSpan = moduleValue4.startInactiveSpan; object = {}; object.name = '' + method + ' ' + url; binding = Module00077Module; value9 = binding({url: url, type: 'fetch', ['http.method']: method, ['http.url']: href, ['server.address']: host}, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, r15); object.attributes = binding(value9, SEMANTIC_ATTRIBUTE_SENTRY_OP, 'http.client'); value10 = Reflect.apply(startInactiveSpan, moduleValue4, [object]); r1 = value10; } else { prototype = SentryNonRecordingSpan.prototype; value11 = Object.create(prototype, {constructor: {value: SentryNonRecordingSpan}}); sentryNonRecordingSpan = new SentryNonRecordingSpan(); value12 = sentryNonRecordingSpan instanceof Object ? sentryNonRecordingSpan : value11; r1 = value12; } } else { prototype = SentryNonRecordingSpan.prototype; value11 = Object.create(prototype, {constructor: {value: SentryNonRecordingSpan}}); sentryNonRecordingSpan = new SentryNonRecordingSpan(); value12 = sentryNonRecordingSpan instanceof Object ? sentryNonRecordingSpan : value11; r1 = value12; } fetchData = a0.fetchData; spanContext = r1.spanContext; spanId = Reflect.apply(spanContext, r1, []).spanId; fetchData.__span = spanId; spanContext = r1.spanContext; spanId = Reflect.apply(spanContext, r1, []).spanId; a3[spanId] = r1; fetchData = a0.fetchData; url = fetchData.url; if (a2(url)) { args = a0.args; property = args[0]; args = a0.args; property2 = args[1]; r6 = property2 || ({}); _addTracingHeadersToFetchRequest_60287Binding = _addTracingHeadersToFetchRequest_60287; moduleValue5 = require(7401) /* metro dependency 7401 */; hasTracingEnabled = moduleValue5.hasTracingEnabled; r4 = Reflect.apply(hasTracingEnabled, moduleValue5, []) && activeSpan ? r1 : value; value = _addTracingHeadersToFetchRequest_60287Binding(property, r6, r4); if (value) { args = a0.args; args[1] = r6; r6.headers = value; } } return r1; } try { } catch (error) { href = value; if (href) { moduleValue2 = require(7451) /* metro dependency 7451 */; parseUrl = moduleValue2.parseUrl; host = Reflect.apply(parseUrl, moduleValue2, [href]).host; } else { host = value; } moduleValue3 = require(7374) /* metro dependency 7374 */; activeSpan = moduleValue3.getActiveSpan(); if (r1) { if (activeSpan) { moduleValue4 = require(7403) /* metro dependency 7403 */; startInactiveSpan = moduleValue4.startInactiveSpan; object = {}; object.name = '' + method + ' ' + url; binding = Module00077Module; value9 = binding({url: url, type: 'fetch', ['http.method']: method, ['http.url']: href, ['server.address']: host}, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, r15); object.attributes = binding(value9, SEMANTIC_ATTRIBUTE_SENTRY_OP, 'http.client'); value10 = Reflect.apply(startInactiveSpan, moduleValue4, [object]); r1 = value10; } else { prototype = SentryNonRecordingSpan.prototype; value11 = Object.create(prototype, {constructor: {value: SentryNonRecordingSpan}}); sentryNonRecordingSpan = new SentryNonRecordingSpan(); value12 = sentryNonRecordingSpan instanceof Object ? sentryNonRecordingSpan : value11; r1 = value12; } } else { prototype = SentryNonRecordingSpan.prototype; value11 = Object.create(prototype, {constructor: {value: SentryNonRecordingSpan}}); sentryNonRecordingSpan = new SentryNonRecordingSpan(); value12 = sentryNonRecordingSpan instanceof Object ? sentryNonRecordingSpan : value11; r1 = value12; } fetchData = a0.fetchData; spanContext = r1.spanContext; spanId = Reflect.apply(spanContext, r1, []).spanId; fetchData.__span = spanId; spanContext = r1.spanContext; spanId = Reflect.apply(spanContext, r1, []).spanId; a3[spanId] = r1; fetchData = a0.fetchData; url = fetchData.url; if (a2(url)) { args = a0.args; property = args[0]; args = a0.args; property2 = args[1]; r6 = property2 || ({}); _addTracingHeadersToFetchRequest_60287Binding = _addTracingHeadersToFetchRequest_60287; moduleValue5 = require(7401) /* metro dependency 7401 */; hasTracingEnabled = moduleValue5.hasTracingEnabled; r4 = Reflect.apply(hasTracingEnabled, moduleValue5, []) && activeSpan ? r1 : value; value = _addTracingHeadersToFetchRequest_60287Binding(property, r6, r4); if (value) { args = a0.args; args[1] = r6; r6.headers = value; } } return r1; } try { uRL = new URL(); } catch (error) { href = value; if (href) { moduleValue2 = require(7451) /* metro dependency 7451 */; parseUrl = moduleValue2.parseUrl; host = Reflect.apply(parseUrl, moduleValue2, [href]).host; } else { host = value; } moduleValue3 = require(7374) /* metro dependency 7374 */; activeSpan = moduleValue3.getActiveSpan(); if (r1) { if (activeSpan) { moduleValue4 = require(7403) /* metro dependency 7403 */; startInactiveSpan = moduleValue4.startInactiveSpan; object = {}; object.name = '' + method + ' ' + url; binding = Module00077Module; value9 = binding({url: url, type: 'fetch', ['http.method']: method, ['http.url']: href, ['server.address']: host}, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, r15); object.attributes = binding(value9, SEMANTIC_ATTRIBUTE_SENTRY_OP, 'http.client'); value10 = Reflect.apply(startInactiveSpan, moduleValue4, [object]); r1 = value10; } else { prototype = SentryNonRecordingSpan.prototype; value11 = Object.create(prototype, {constructor: {value: SentryNonRecordingSpan}}); sentryNonRecordingSpan = new SentryNonRecordingSpan(); value12 = sentryNonRecordingSpan instanceof Object ? sentryNonRecordingSpan : value11; r1 = value12; } } else { prototype = SentryNonRecordingSpan.prototype; value11 = Object.create(prototype, {constructor: {value: SentryNonRecordingSpan}}); sentryNonRecordingSpan = new SentryNonRecordingSpan(); value12 = sentryNonRecordingSpan instanceof Object ? sentryNonRecordingSpan : value11; r1 = value12; } fetchData = a0.fetchData; spanContext = r1.spanContext; spanId = Reflect.apply(spanContext, r1, []).spanId; fetchData.__span = spanId; spanContext = r1.spanContext; spanId = Reflect.apply(spanContext, r1, []).spanId; a3[spanId] = r1; fetchData = a0.fetchData; url = fetchData.url; if (a2(url)) { args = a0.args; property = args[0]; args = a0.args; property2 = args[1]; r6 = property2 || ({}); _addTracingHeadersToFetchRequest_60287Binding = _addTracingHeadersToFetchRequest_60287; moduleValue5 = require(7401) /* metro dependency 7401 */; hasTracingEnabled = moduleValue5.hasTracingEnabled; r4 = Reflect.apply(hasTracingEnabled, moduleValue5, []) && activeSpan ? r1 : value; value = _addTracingHeadersToFetchRequest_60287Binding(property, r6, r4); if (value) { args = a0.args; args[1] = r6; r6.headers = value; } } return r1; } try { value7 = uRL instanceof Object ? uRL : value6; } catch (error) { href = value; if (href) { moduleValue2 = require(7451) /* metro dependency 7451 */; parseUrl = moduleValue2.parseUrl; host = Reflect.apply(parseUrl, moduleValue2, [href]).host; } else { host = value; } moduleValue3 = require(7374) /* metro dependency 7374 */; activeSpan = moduleValue3.getActiveSpan(); if (r1) { if (activeSpan) { moduleValue4 = require(7403) /* metro dependency 7403 */; startInactiveSpan = moduleValue4.startInactiveSpan; object = {}; object.name = '' + method + ' ' + url; binding = Module00077Module; value9 = binding({url: url, type: 'fetch', ['http.method']: method, ['http.url']: href, ['server.address']: host}, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, r15); object.attributes = binding(value9, SEMANTIC_ATTRIBUTE_SENTRY_OP, 'http.client'); value10 = Reflect.apply(startInactiveSpan, moduleValue4, [object]); r1 = value10; } else { prototype = SentryNonRecordingSpan.prototype; value11 = Object.create(prototype, {constructor: {value: SentryNonRecordingSpan}}); sentryNonRecordingSpan = new SentryNonRecordingSpan(); value12 = sentryNonRecordingSpan instanceof Object ? sentryNonRecordingSpan : value11; r1 = value12; } } else { prototype = SentryNonRecordingSpan.prototype; value11 = Object.create(prototype, {constructor: {value: SentryNonRecordingSpan}}); sentryNonRecordingSpan = new SentryNonRecordingSpan(); value12 = sentryNonRecordingSpan instanceof Object ? sentryNonRecordingSpan : value11; r1 = value12; } fetchData = a0.fetchData; spanContext = r1.spanContext; spanId = Reflect.apply(spanContext, r1, []).spanId; fetchData.__span = spanId; spanContext = r1.spanContext; spanId = Reflect.apply(spanContext, r1, []).spanId; a3[spanId] = r1; fetchData = a0.fetchData; url = fetchData.url; if (a2(url)) { args = a0.args; property = args[0]; args = a0.args; property2 = args[1]; r6 = property2 || ({}); _addTracingHeadersToFetchRequest_60287Binding = _addTracingHeadersToFetchRequest_60287; moduleValue5 = require(7401) /* metro dependency 7401 */; hasTracingEnabled = moduleValue5.hasTracingEnabled; r4 = Reflect.apply(hasTracingEnabled, moduleValue5, []) && activeSpan ? r1 : value; value = _addTracingHeadersToFetchRequest_60287Binding(property, r6, r4); if (value) { args = a0.args; args[1] = r6; r6.headers = value; } } return r1; } try { href = value7.href; } catch (error) { href = value; } if (href) { moduleValue2 = require(7451) /* metro dependency 7451 */; host = moduleValue2.parseUrl(href).host; } else { host = value; } moduleValue3 = require(7374) /* metro dependency 7374 */; activeSpan = moduleValue3.getActiveSpan(); if (r1) { if (activeSpan) { moduleValue4 = require(7403) /* metro dependency 7403 */; startInactiveSpan = moduleValue4.startInactiveSpan; object = {}; object.name = '' + method + ' ' + url; binding = Module00077Module; object.attributes = binding(binding({url: url, type: 'fetch', ['http.method']: method, ['http.url']: href, ['server.address']: host}, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, r15), SEMANTIC_ATTRIBUTE_SENTRY_OP, 'http.client'); r1 = Reflect.apply(startInactiveSpan, moduleValue4, [object]); } else { sentryNonRecordingSpan = new SentryNonRecordingSpan(); } } else { sentryNonRecordingSpan = new SentryNonRecordingSpan(); } fetchData = a0.fetchData; spanContext = r1.spanContext; spanId = Reflect.apply(spanContext, r1, []).spanId; fetchData.__span = spanId; spanContext = r1.spanContext; spanId = Reflect.apply(spanContext, r1, []).spanId; a3[spanId] = r1; fetchData = a0.fetchData; url = fetchData.url; if (a2(url)) { args = a0.args; property = args[0]; args = a0.args; r6 = args[1] || ({}); _addTracingHeadersToFetchRequest_60287Binding = _addTracingHeadersToFetchRequest_60287; moduleValue5 = require(7401) /* metro dependency 7401 */; value = _addTracingHeadersToFetchRequest_60287Binding(property, r6, moduleValue5.hasTracingEnabled() && activeSpan ? r1 : value); if (value) { a0.args[1] = r6; r6.headers = value; } } return r1; } return value; } } function _fun60291(a0) { // fn#60291, offset: 0x017006a4, size: 13 bytes, params: 2, frame: 2 return a0 === ''; } global.__d(_fun60286, 7474, [862, 65, 77, 7365, 7368, 7369, 7383, 7393, 7397, 7401, 7451, 7374, 7403, 7384, 7402, 7440, 7386, 7382, 7376]) /* metro module 7474, dependencies: [862, 65, 77, 7365, 7368, 7369, 7383, 7393, 7397, 7401, 7451, 7374, 7403, 7384, 7402, 7440, 7386, 7382, 7376] */;