/* Metro module 933; source: unknown; dependencies: [57, 65, 77, 862, 874, 848, 849, 877, 836, 839, 916, 832, 833, 895] */ function _fun9928(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:6, offset: 0x00d76732, size: 323 bytes, params: 8, frame: 22 let env0_0 = require; const markAsInstrumented = function(a0) { var error; try { a0.__SENTRY_INSTRUMENTED__ = true; } catch (error) { } }; const isInstrumented = function(a0) { var __SENTRY_INSTRUMENTED__; var error; try { __SENTRY_INSTRUMENTED__ = a0.__SENTRY_INSTRUMENTED__; } catch (error) { return false; } return __SENTRY_INSTRUMENTED__; }; const closure = extractOperation; const closure2 = translateFiltersIntoMethods; const instrumentAuthOperation = function(a0) { var env0_0 = a0; var env0_1 = arguments.length > 1 && arguments[1] !== undefined && arguments[1]; var Proxy = global.Proxy; value = Object.create(Proxy.prototype, {constructor: {value: Proxy}}); var value2 = new Proxy(a0, {apply: _fun9934}); return value2 instanceof Object ? value2 : value; }; const instrumentSupabaseClientConstructor = function(a0) { var prototype; var Proxy; var from; var value2; var value3; if (!isInstrumented(a0.prototype.from)) { prototype = a0.prototype; Proxy = global.Proxy; from = a0.prototype.from; value2 = Object.create(Proxy.prototype, {constructor: {value: Proxy}}); value3 = new Proxy(from, {apply: _fun9939}); prototype.from = value3 instanceof Object ? value3 : value2; markAsInstrumented(a0.prototype.from); } }; const env0_2 = require(57) /* metro dependency 57 */; const env0_3 = require(65) /* metro dependency 65 */; const env0_4 = require(77) /* metro dependency 77 */; const env0_5 = require(862) /* metro dependency 862 */; const Object = global.Object; const defineProperty = Object.defineProperty; const Symbol = global.Symbol; Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]); const env0_6 = ['reauthenticate', 'signInAnonymously', 'signInWithOAuth', 'signInWithIdToken', 'signInWithOtp', 'signInWithPassword', 'signInWithSSO', 'signOut', 'signUp', 'verifyOtp']; const env0_7 = ['createUser', 'deleteUser', 'listUsers', 'getUserById', 'updateUserById', 'inviteUserByEmail']; const closure3 = instrumentSupabaseClient; let value = require(895) /* metro dependency 895 */; value = value.defineIntegration(function({supabaseClient}) { return _fun9952(supabaseClient); }); exports.DB_OPERATIONS_TO_INSTRUMENT = ['select', 'insert', 'upsert', 'update', 'delete']; exports.FILTER_MAPPINGS = {'eq': 'eq', 'neq': 'neq', 'gt': 'gt', 'gte': 'gte', 'lt': 'lt', 'lte': 'lte', 'like': 'like', 'like(all)': 'likeAllOf', 'like(any)': 'likeAnyOf', 'ilike': 'ilike', 'ilike(all)': 'ilikeAllOf', 'ilike(any)': 'ilikeAnyOf', 'is': 'is', 'in': 'in', 'cs': 'contains', 'cd': 'containedBy', 'sr': 'rangeGt', 'nxl': 'rangeGte', 'sl': 'rangeLt', 'nxr': 'rangeLte', 'adj': 'rangeAdjacent', 'ov': 'overlaps', 'fts': '', 'plfts': 'plain', 'phfts': 'phrase', 'wfts': 'websearch', 'not': 'not'}; exports.extractOperation = closure; exports.instrumentSupabaseClient = closure3; exports.supabaseIntegration = value; exports.translateFiltersIntoMethods = closure2; } function extractOperation(a0) { // fn#9931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:988, offset: 0x00d7689c, size: 151 bytes, params: 2, frame: 13 var Prefer; let r0 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; if (a0 === 'GET') { return 'select'; } if (a0 === 'POST') { Prefer = r0.Prefer; r0 = Prefer != null && Prefer.includes('resolution=') ? 'upsert' : 'insert'; return r0; } if (a0 === 'PATCH') { return 'update'; } if (a0 === 'DELETE') { return 'delete'; } return ''; } function translateFiltersIntoMethods(a0, a1) { // fn#9932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:1289, offset: 0x00d76933, size: 394 bytes, params: 3, frame: 26 var r9; var r7; var r6; var r0; var r8; if (a1 === '') { return 'select(*)'; } if (a1 === '*') { return 'select(*)'; } if (a0 === 'select') { return 'select(' + a1 + ')'; } if (a0 === 'or') { return '' + a0 + a1; } if (a0.endsWith('.or')) { return '' + a0 + a1; } let value = a1.split('.'); value = env0_5(value); const property = value[0]; value = value.slice(1); if (property == null) { if (property == null) { if (property == null) { if (property == null) { r9 = property && env0_8[property]; r9 = !r9 ? 'filter' : r9; r7 = r9; } else if (property.startsWith('wfts')) { r7 = 'textSearch[websearch]'; } else { r9 = property && env0_8[property]; r9 = !r9 ? 'filter' : r9; r7 = r9; } r6 = r7; } else if (property.startsWith('phfts')) { r6 = 'textSearch[phrase]'; } else { if (property == null) { r9 = property && env0_8[property]; r9 = !r9 ? 'filter' : r9; r7 = r9; } else if (property.startsWith('wfts')) { r7 = 'textSearch[websearch]'; } else { r9 = property && env0_8[property]; r9 = !r9 ? 'filter' : r9; r7 = r9; } r6 = r7; } r0 = r6; } else if (property.startsWith('plfts')) { r0 = 'textSearch[plain]'; } else { if (property == null) { if (property == null) { r9 = property && env0_8[property]; r9 = !r9 ? 'filter' : r9; r7 = r9; } else if (property.startsWith('wfts')) { r7 = 'textSearch[websearch]'; } else { r9 = property && env0_8[property]; r9 = !r9 ? 'filter' : r9; r7 = r9; } r6 = r7; } else if (property.startsWith('phfts')) { r6 = 'textSearch[phrase]'; } else { if (property == null) { r9 = property && env0_8[property]; r9 = !r9 ? 'filter' : r9; r7 = r9; } else if (property.startsWith('wfts')) { r7 = 'textSearch[websearch]'; } else { r9 = property && env0_8[property]; r9 = !r9 ? 'filter' : r9; r7 = r9; } r6 = r7; } r0 = r6; } r8 = r0; } else if (property.startsWith('fts')) { r8 = 'textSearch'; } else { if (property == null) { if (property == null) { if (property == null) { r9 = property && env0_8[property]; r9 = !r9 ? 'filter' : r9; r7 = r9; } else if (property.startsWith('wfts')) { r7 = 'textSearch[websearch]'; } else { r9 = property && env0_8[property]; r9 = !r9 ? 'filter' : r9; r7 = r9; } r6 = r7; } else if (property.startsWith('phfts')) { r6 = 'textSearch[phrase]'; } else { if (property == null) { r9 = property && env0_8[property]; r9 = !r9 ? 'filter' : r9; r7 = r9; } else if (property.startsWith('wfts')) { r7 = 'textSearch[websearch]'; } else { r9 = property && env0_8[property]; r9 = !r9 ? 'filter' : r9; r7 = r9; } r6 = r7; } r0 = r6; } else if (property.startsWith('plfts')) { r0 = 'textSearch[plain]'; } else { if (property == null) { if (property == null) { r9 = property && env0_8[property]; r9 = !r9 ? 'filter' : r9; r7 = r9; } else if (property.startsWith('wfts')) { r7 = 'textSearch[websearch]'; } else { r9 = property && env0_8[property]; r9 = !r9 ? 'filter' : r9; r7 = r9; } r6 = r7; } else if (property.startsWith('phfts')) { r6 = 'textSearch[phrase]'; } else { if (property == null) { r9 = property && env0_8[property]; r9 = !r9 ? 'filter' : r9; r7 = r9; } else if (property.startsWith('wfts')) { r7 = 'textSearch[websearch]'; } else { r9 = property && env0_8[property]; r9 = !r9 ? 'filter' : r9; r7 = r9; } r6 = r7; } r0 = r6; } r8 = r0; } value = value.join('.'); return '' + r8 + '(' + a0 + ', ' + value + ')'; } function instrumentAuthOperation(a0) { // fn#9933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:1749, offset: 0x00d76abd, size: 92 bytes, params: 2, frame: 16 const env0_0 = a0; const r0 = arguments.length > 1 && arguments[1] !== undefined && arguments[1]; const Proxy = global.Proxy; const object2 = {apply: apply_9934}; value = Object.create(Proxy.prototype, {constructor: {value: Proxy}}); const proxy = new Proxy(a0, object2); return proxy instanceof Object ? proxy : value; } function instrumentSupabaseClientConstructor(a0) { // fn#9938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:2665, offset: 0x00d76deb, size: 116 bytes, params: 2, frame: 17 var Proxy; var value2; var proxy; var markAsInstrumentedBinding; const isInstrumentedBinding = isInstrumented; let prototype = a0.prototype; let from = prototype.from; if (!isInstrumentedBinding(from)) { prototype = a0.prototype; Proxy = global.Proxy; from = a0.prototype.from; value2 = Object.create(Proxy.prototype, {constructor: {value: Proxy}}); proxy = new Proxy(from, {apply: function(a0, a1, a2) { var value = global.Reflect.apply(a0, a1, a2); _fun9940(value.constructor); return value; }}); prototype.from = proxy instanceof Object ? proxy : value2; markAsInstrumentedBinding = markAsInstrumented; prototype = a0.prototype; from = prototype.from; markAsInstrumentedBinding(from); } } function instrumentSupabaseClient(a0) { // fn#9950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:5284, offset: 0x00d776bf, size: 428 bytes, params: 2, frame: 24 var r0; var r4; var r11; var r10; var value; var value2; var DEBUG_BUILD; var debug; var warn; var instrumentSupabaseClientConstructorBinding; var constructor; var Function; var auth; var isInstrumentedBinding; var auth2; var iterator; var iterator2; var item; var item2; var property; var auth3; var property2; var value3; var auth4; var instrumentAuthOperationBinding; var value4; var error; var iterator3; var item3; var admin; var auth5; var property3; var value5; var auth6; var value6; var markAsInstrumentedBinding; exceptionSkip47: while (true) { exceptionLanding47: while (true) { exceptionSkip25: while (true) { exceptionLanding25: while (true) { value = a0; value2 = environment; if (value) { instrumentSupabaseClientConstructorBinding = instrumentSupabaseClientConstructor; constructor = value.constructor; Function = global.Function; if (constructor === Function) { r0 = value; continue; } constructor = value.constructor; r0 = constructor; instrumentSupabaseClientConstructorBinding(r0); auth = value.auth; if (auth) { isInstrumentedBinding = isInstrumented; auth2 = value.auth; if (isInstrumentedBinding(auth2)) { break; } iterator = env0_6[Symbol.iterator](); iterator2 = iterator.next; r4 = iterator; while (true) { item2 = Reflect.apply(iterator2, r4, []); item = item2.value; item2 = item2.done ? undefined : r4; if (item2 === undefined) { break; } try { property = auth[item]; } catch (error) { break exceptionLanding25; } if (!property) { r11 = property; continue; } try { auth3 = value.auth; } catch (error) { break exceptionLanding25; } try { property2 = auth3[item]; } catch (error) { break exceptionLanding25; } value3 = typeof property2 === 'function'; r11 = value3; if (!r11) { r4 = item2; continue; } try { auth4 = value.auth; } catch (error) { break exceptionLanding25; } try { instrumentAuthOperationBinding = instrumentAuthOperation; } catch (error) { break exceptionLanding25; } try { value4 = instrumentAuthOperationBinding(property); } catch (error) { break exceptionLanding25; } try { auth4[item] = value4; } catch (error) { break exceptionLanding25; } r4 = item2; } iterator = env0_7[Symbol.iterator](); iterator3 = iterator.next; r4 = iterator; while (true) { item3 = Reflect.apply(iterator3, r4, []); item = item3.value; item3 = item3.done ? undefined : r4; if (item3 === undefined) { break; } try { admin = auth.admin; } catch (error) { break exceptionLanding47; } try { property = admin[item]; } catch (error) { break exceptionLanding47; } if (!property) { r10 = property; continue; } try { auth5 = value.auth; } catch (error) { break exceptionLanding47; } try { admin = auth5.admin; } catch (error) { break exceptionLanding47; } try { property3 = admin[item]; } catch (error) { break exceptionLanding47; } value5 = typeof property3 === 'function'; r10 = value5; if (!r10) { r4 = item3; continue; } try { auth6 = value.auth; } catch (error) { break exceptionLanding47; } try { admin = auth6.admin; } catch (error) { break exceptionLanding47; } try { instrumentAuthOperationBinding = instrumentAuthOperation; } catch (error) { break exceptionLanding47; } try { value6 = instrumentAuthOperationBinding(property, true); } catch (error) { break exceptionLanding47; } try { admin[item] = value6; } catch (error) { break exceptionLanding47; } r4 = item3; } markAsInstrumentedBinding = markAsInstrumented; auth = value.auth; markAsInstrumentedBinding(auth); break; } break; } DEBUG_BUILD = (require(832) /* metro dependency 832 */).DEBUG_BUILD; if (DEBUG_BUILD) { debug = (require(833) /* metro dependency 833 */).debug; warn = debug.warn; Reflect.apply(warn, debug, ['Supabase integration was not installed because no Supabase client was provided.']); break; } break; return undefined; break exceptionSkip25; } try { item2.return(); } catch { } throw error; break exceptionSkip25; } break exceptionSkip47; } try { item3.return(); } catch { } throw error; break exceptionSkip47; } } function _fun9951({supabaseClient}) { // fn#9951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:5895, offset: 0x00d7786b, size: 25 bytes, params: 2, frame: 11 return ((a0) => { var env0_0 = a0; return {setupOnce: _fun9953, name: 'Supabase'}; })(supabaseClient); } function instrumentAuthOperationApply(a0, a1, a2) { // fn#9934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:1873, owner: instrumentAuthOperation.apply, offset: 0x00d76b19, size: 285 bytes, params: 4, frame: 25 var environment; const env0_0 = a0; const env0_1 = a1; const env0_2 = a2; let value = environment.__proto__; const moduleValue = require(874) /* metro dependency 874 */; const startSpan = moduleValue.startSpan; const object2 = {}; const value3 = ''; object2.name = 'auth ' + (env0_1 ? '(admin) ' : value3) + env0_0.name; const binding = env1_4; const SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = (require(848) /* metro dependency 848 */).SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN; value = binding({}, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, 'auto.db.supabase'); const SEMANTIC_ATTRIBUTE_SENTRY_OP = (require(848) /* metro dependency 848 */).SEMANTIC_ATTRIBUTE_SENTRY_OP; value = binding(value, SEMANTIC_ATTRIBUTE_SENTRY_OP, 'db'); value = binding(value, 'db.system', 'postgresql'); object2.attributes = binding(value, 'db.operation', 'auth.' + (env0_1 ? 'admin.' : value3) + env0_0.name); return Reflect.apply(startSpan, moduleValue, [object2, _fun9935]); } function instrumentSupabaseClientConstructorApply(a0, a1, a2) { // fn#9939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:2799, owner: instrumentSupabaseClientConstructor.apply, offset: 0x00d76e5f, size: 50 bytes, params: 4, frame: 15 const Reflect = global.Reflect; const value = Reflect.apply(a0, a1, a2); instrumentPostgRESTQueryBuilder(value.constructor); return value; } function _supabaseIntegration(a0) { // fn#9952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:5914, offset: 0x00d77884, size: 33 bytes, params: 2, frame: 2 const env0_0 = a0; return {setupOnce: setupOnce_9953, name: 'Supabase'}; } function _fun9935(a0) { // fn#9935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:2164, offset: 0x00d76c36, size: 107 bytes, params: 2, frame: 16 const env0_0 = a0; const Reflect = global.Reflect; const apply = Reflect.apply; var value; value = Reflect.apply(Reflect.apply(apply, Reflect, [env0_0, require, importDefault]).then, value, [_fun9936]); value = value.catch(_fun9937); return value.then.apply(value, env2_3(importDefault)); } function instrumentPostgRESTQueryBuilder(a0) { // fn#9940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:2855, owner: instrumentSupabaseClientConstructor.apply.instrumentPostgRESTQueryBuilder, offset: 0x00d76e91, size: 59 bytes, params: 2, frame: 14 var error; const env0_0 = a0; const closure = instrumentPostgRESTQueryBuilder_loop; const iterator = env2_9[Symbol.iterator](); const iterator2 = iterator.next; let r2 = iterator; let item2 = Reflect.apply(iterator2, r2, []); let item = item2.value; item2 = item2.done ? undefined : r2; reducibleJoin2: while (true) { if (item2 === undefined) { return undefined; } break reducibleJoin2; } reducibleLoop2: while (true) { try { closure(item); } catch (error) { try { item2.return(); } catch { } throw error; } r2 = item2; item2 = Reflect.apply(iterator2, r2, []); item = item2.value; item2 = item2.done ? undefined : r2; if (item2 === undefined) { break reducibleLoop2; } continue reducibleLoop2; } } function _supabaseIntegrationSetupOnce() { // fn#9953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:5964, owner: _supabaseIntegration.setupOnce, offset: 0x00d778a5, size: 23 bytes, params: 1, frame: 11 instrumentSupabaseClient(env0_0); } function _fun9936(a0) { // fn#9936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:2218, offset: 0x00d76ca1, size: 216 bytes, params: 2, frame: 17 var value; var binding; var setStatus; var object2; const SPAN_STATUS_OK = (require(849) /* metro dependency 849 */).SPAN_STATUS_OK; if (a0) { if (typeof a0 !== 'object') { binding = env0_0; setStatus = binding.setStatus; value = environment.__proto__.__proto__.__proto__; Reflect.apply(setStatus, binding, [{code: SPAN_STATUS_OK}]); } else if ('error' in a0) { if (a0.error) { binding = env0_0; setStatus = binding.setStatus; object2 = {}; value = environment.__proto__.__proto__.__proto__; object2.code = (require(849) /* metro dependency 849 */).SPAN_STATUS_ERROR; Reflect.apply(setStatus, binding, [object2]); value = require(877) /* metro dependency 877 */; value.captureException(a0.error, {mechanism: {'handled': false, 'type': 'auto.db.supabase.auth'}}); } else { binding = env0_0; setStatus = binding.setStatus; value = environment.__proto__.__proto__.__proto__; Reflect.apply(setStatus, binding, [{code: SPAN_STATUS_OK}]); } } else { binding = env0_0; setStatus = binding.setStatus; value = environment.__proto__.__proto__.__proto__; Reflect.apply(setStatus, binding, [{code: SPAN_STATUS_OK}]); } } else { binding = env0_0; setStatus = binding.setStatus; value = environment.__proto__.__proto__.__proto__; Reflect.apply(setStatus, binding, [{code: SPAN_STATUS_OK}]); } env0_0.end(); return a0; } function _fun9937(a0) { // fn#9937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:2480, offset: 0x00d76d79, size: 114 bytes, params: 2, frame: 17 const binding = env0_0; const setStatus = binding.setStatus; const value = environment.__proto__.__proto__.__proto__; const SPAN_STATUS_ERROR = (require(849) /* metro dependency 849 */).SPAN_STATUS_ERROR; Reflect.apply(setStatus, binding, [{code: SPAN_STATUS_ERROR}]); binding.end(); (require(877) /* metro dependency 877 */).captureException(a0, {mechanism: {'handled': false, 'type': 'auto.db.supabase.auth'}}); throw a0; } function instrumentPostgRESTQueryBuilder_loop(a0) { // fn#9941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:2905, owner: instrumentSupabaseClientConstructor.apply.instrumentPostgRESTQueryBuilder._loop, offset: 0x00d76ecc, size: 131 bytes, params: 2, frame: 18 const env0_0 = a0; const isInstrumentedBinding = isInstrumented; let prototype = env0_0.prototype; if (isInstrumentedBinding(prototype[a0])) { return 1; } const binding = env0_0; prototype = binding.prototype; const Proxy = global.Proxy; const property = binding.prototype[a0]; const object2 = {apply: apply_9942}; const value3 = Object.create(Proxy.prototype, {constructor: {value: Proxy}}); const proxy = new Proxy(property, object2); prototype[a0] = proxy instanceof Object ? proxy : value3; markAsInstrumented(binding.prototype[a0]); } function apply_body(a0, a1, a2) { // fn#9942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:3013, owner: instrumentSupabaseClientConstructor.apply.instrumentPostgRESTQueryBuilder._loop.body, offset: 0x00d76f4f, size: 155 bytes, params: 4, frame: 19 var environment; var debug; const Reflect = global.Reflect; const value = Reflect.apply(a0, a1, a2); const constructor = value.constructor; let value2 = environment.__proto__.__proto__.__proto__.__proto__; if ((require(832) /* metro dependency 832 */).DEBUG_BUILD) { debug = (require(833) /* metro dependency 833 */).debug; debug.log('Instrumenting ' + env0_0 + " operation's PostgRESTFilterBuilder"); } ((a0) => { if (!isInstrumented(a0.prototype.then)) { var prototype = a0.prototype; var Proxy = global.Proxy; var then = a0.prototype.then; var value2 = Object.create(Proxy.prototype, {constructor: {value: Proxy}}); var value3 = new Proxy(then, {apply: _fun9944}); prototype.then = value3 instanceof Object ? value3 : value2; markAsInstrumented(a0.prototype.then); } })(constructor); return value; } function instrumentPostgRESTFilterBuilder(a0) { // fn#9943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:3183, owner: instrumentSupabaseClientConstructor.apply.instrumentPostgRESTQueryBuilder._loop.body.instrumentPostgRESTFilterBuilder, offset: 0x00d76fea, size: 118 bytes, params: 2, frame: 17 const isInstrumentedBinding = isInstrumented; let prototype = a0.prototype; let then = prototype.then; if (!isInstrumentedBinding(then)) { prototype = a0.prototype; var Proxy = global.Proxy; then = a0.prototype.then; var object2 = {apply: apply_9944}; var value2 = Object.create(Proxy.prototype, {constructor: {value: Proxy}}); var proxy = new Proxy(then, object2); prototype.then = proxy instanceof Object ? proxy : value2; var markAsInstrumentedBinding = markAsInstrumented; prototype = a0.prototype; then = prototype.then; markAsInstrumentedBinding(then); } } function instrumentPostgRESTFilterBuilderApply_body(a0, a1, a2) { // fn#9944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:3322, owner: instrumentSupabaseClientConstructor.apply.instrumentPostgRESTQueryBuilder._loop.body.instrumentPostgRESTFilterBuilder.body, offset: 0x00d77060, size: 836 bytes, params: 4, frame: 34 var environment; var r12; var r9; var r11; var r16; var value; var binding; var extractOperationBinding; var method; var headers; var value2; var includes; var Reflect; var apply; var url; var pathname; var split; var value3; var length; var value4; var property; var items; var searchParams; var entries; var iterator; var iterator2; var item; var item2; var value5; var property2; var push; var translateFiltersIntoMethodsBinding; var value6; var error; var Object; var create; var value7; var moduleValue; var isPlainObject; var body; var iterator3; var item3; var value8; var property3; var value9; var HermesInternal; var concat; var value10; var join; var value11; var value12; var object3; var schema; var origin; var SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN; var value13; var SEMANTIC_ATTRIBUTE_SENTRY_OP; var value14; var keys; var startSpan; exceptionSkip29: while (true) { exceptionLanding29: while (true) { exceptionSkip19: while (true) { exceptionLanding19: while (true) { var env0_0 = a0; var env0_1 = a1; var env0_2 = a2; value = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__; binding = env6_9; extractOperationBinding = extractOperation; method = a1.method; headers = a1.headers; value2 = extractOperationBinding(method, headers); var env0_3 = value2; includes = binding.includes; if (Reflect.apply(includes, binding, [value2])) { if (a1 == null) { Reflect = global.Reflect; return Reflect.apply(a0, a1, a2); } url = a1.url; if (url == null) { Reflect = global.Reflect; return Reflect.apply(a0, a1, a2); } pathname = url.pathname; if (pathname) { url = a1.url; pathname = url.pathname; if (typeof pathname !== 'string') { Reflect = global.Reflect; return Reflect.apply(a0, a1, a2); } url = a1.url; pathname = url.pathname; split = pathname.split; value3 = Reflect.apply(split, pathname, ['/']); length = value3.length; value4 = ''; if (length > 0) { property = value3[value3.length - 1]; r12 = property; } else { r12 = value4; } items = []; var env0_4 = items; url = a1.url; searchParams = url.searchParams; entries = searchParams.entries; iterator = Reflect.apply(entries, searchParams, [])[Symbol.iterator](); iterator2 = iterator.next; for (r9 = iterator; true; r9 = item2) { item2 = Reflect.apply(iterator2, r9, []); item = item2.value; item2 = item2.done ? undefined : r9; if (item2 === undefined) { break; } try { binding = env6_2; } catch (error) { break exceptionLanding19; } try { value5 = binding(item, 2); } catch (error) { break exceptionLanding19; } try { property = value5[0]; } catch (error) { break exceptionLanding19; } try { property2 = value5[1]; } catch (error) { break exceptionLanding19; } try { push = items.push; } catch (error) { break exceptionLanding19; } try { translateFiltersIntoMethodsBinding = translateFiltersIntoMethods; } catch (error) { break exceptionLanding19; } try { value6 = translateFiltersIntoMethodsBinding(property, property2); } catch (error) { break exceptionLanding19; } try { Reflect.apply(push, items, [value6]); } catch (error) { break exceptionLanding19; } } Object = global.Object; create = Object.create; value7 = Reflect.apply(create, Object, [null]); var env0_5 = value7; moduleValue = require(836) /* metro dependency 836 */; isPlainObject = moduleValue.isPlainObject; body = a1.body; if (Reflect.apply(isPlainObject, moduleValue, [body])) { Object = global.Object; entries = Object.entries; body = a1.body; iterator = Reflect.apply(entries, Object, [body])[Symbol.iterator](); iterator3 = iterator.next; for (r11 = iterator; true; r11 = item3) { item3 = Reflect.apply(iterator3, r11, []); item = item3.value; item3 = item3.done ? undefined : r11; if (item3 === undefined) { break; } try { binding = env6_2; } catch (error) { break exceptionLanding29; } try { value8 = binding(item, 2); } catch (error) { break exceptionLanding29; } try { property = value8[0]; } catch (error) { break exceptionLanding29; } try { property3 = value8[1]; } catch (error) { break exceptionLanding29; } try { value7[property] = property3; } catch (error) { break exceptionLanding29; } } } if (value2 === 'select') { r16 = value4; } else { if (!value7) { r11 = value4; continue; } value9 = '(...) '; r11 = value9; concat = global.HermesInternal.concat; value10 = value4 + value2 + r11; r16 = value10; } join = items.join; value11 = Reflect.apply(join, items, [' ']); HermesInternal = global.HermesInternal; concat = HermesInternal.concat; value12 = value4 + r16 + value11 + ' from(' + r12 + ')'; var env0_6 = value12; binding = env6_4; object3 = {}; object3['db.table'] = r12; schema = a1.schema; object3['db.schema'] = schema; url = a1.url; origin = url.origin; object3['db.url'] = origin; headers = a1.headers; object3['db.sdk'] = headers['X-Client-Info']; object3['db.system'] = 'postgresql'; object3['db.operation'] = value2; SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = (require(848) /* metro dependency 848 */).SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN; value13 = binding(object3, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, 'auto.db.supabase'); SEMANTIC_ATTRIBUTE_SENTRY_OP = (require(848) /* metro dependency 848 */).SEMANTIC_ATTRIBUTE_SENTRY_OP; value14 = binding(value13, SEMANTIC_ATTRIBUTE_SENTRY_OP, 'db'); length = items.length; if (length) { value14['db.query'] = items; } Object = global.Object; keys = Object.keys; length = Reflect.apply(keys, Object, [value7]).length; if (length) { value14['db.body'] = value7; } value = require(874) /* metro dependency 874 */; startSpan = value.startSpan; return Reflect.apply(startSpan, value, [{name: value12, attributes: value14}, _fun9945]); } Reflect = global.Reflect; return Reflect.apply(a0, a1, a2); } Reflect = global.Reflect; apply = Reflect.apply; return Reflect.apply(apply, Reflect, [a0, a1, a2]); break exceptionSkip19; } try { item2.return(); } catch { } throw error; break exceptionSkip19; } break exceptionSkip29; } try { item3.return(); } catch { } throw error; break exceptionSkip29; } } function _fun9945(a0) { // fn#9945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:4290, offset: 0x00d773a4, size: 101 bytes, params: 2, frame: 17 const env0_0 = a0; const Reflect = global.Reflect; const value2 = Reflect.apply(env0_0, require, []); let then = value2.then; const value3 = Reflect.apply(then, value2, [_fun9946, _fun9949]); then = value3.then; return then.apply(value3, env7_3(importDefault)); } function _fun9946(a0) { // fn#9946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:4345, offset: 0x00d77409, size: 519 bytes, params: 2, frame: 17 var environment; var r3; var status; var value5; var moduleValue; var setHttpStatus; var binding; var Error; var message; var object3; var value9; var length; var Object; var value10; const value = a0; if (env0_0) { r3 = value && typeof value === 'object'; r3 = r3 && 'status' in value; if (r3) { value5 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__; moduleValue = require(849) /* metro dependency 849 */; setHttpStatus = moduleValue.setHttpStatus; binding = env0_0; status = value.status; status = !status ? 500 : status; Reflect.apply(setHttpStatus, moduleValue, [binding, status]); } binding = env0_0; binding.end(); } let error = value.error; if (error) { Error = global.Error; error = value.error; message = error.message; error = new Error(); error = value.error; if (error.code) { error.code = value.error.code; } error = value.error; if (error.details) { error.details = value.error.details; } object3 = {}; value9 = environment.__proto__; length = env1_4.length; if (length) { object3.query = env1_4; } Object = global.Object; length = Object.keys(env1_5).length; if (length) { object3.body = env1_5; } value10 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__; (require(877) /* metro dependency 877 */).captureException(error, _fun9947); } object3 = {type: 'supabase'}; object3.category = 'db.' + env1_3; object3.message = env1_6; const object4 = {}; if (env1_4.length) { object4.query = env1_4; } Object = global.Object; if (Object.keys(env1_5).length) { object4.body = env1_5; } Object = global.Object; if (Object.keys(object4).length) { object3.data = object4; } (require(916) /* metro dependency 916 */).addBreadcrumb(object3); return value; } function _fun9949(a0) { // fn#9949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:5026, offset: 0x00d77678, size: 71 bytes, params: 2, frame: 13 var value2; var moduleValue; var setHttpStatus; var binding; if (env0_0) { value2 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__; moduleValue = require(849) /* metro dependency 849 */; setHttpStatus = moduleValue.setHttpStatus; binding = env0_0; Reflect.apply(setHttpStatus, moduleValue, [binding, 500]); binding.end(); } throw a0; } function _fun9947(a0) { // fn#9947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:4665, offset: 0x00d77610, size: 48 bytes, params: 2, frame: 13 a0.addEventProcessor(_fun9948); a0.setContext('supabase', env0_0); return a0; } function _fun9948(a0) { // fn#9948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1060:4705, offset: 0x00d77640, size: 56 bytes, params: 2, frame: 13 const value = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__; (require(839) /* metro dependency 839 */).addExceptionMechanism(a0, {'handled': false, 'type': 'auto.db.supabase.postgres'}); return a0; }