Files
discord-decomp/sources/by-id/module-01034.js
T
2026-07-28 01:06:53 +03:00

7812 lines
369 KiB
JavaScript

/* Metro module 1034; source: unknown; dependencies: [65, 29, 5, 77, 57, 826] */
import * as Module00005Module from './module-00005.js'; /* Metro dependency 5 */
import * as ObjectWithoutPropertiesModule from './module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import * as Module00057Module from './module-00057.js'; /* Metro dependency 57 */
import * as Module00065Module from './module-00065.js'; /* Metro dependency 65 */
import * as Module00077Module from './module-00077.js'; /* Metro dependency 77 */
import * as Module00826Module from './module-00826.js'; /* Metro dependency 826 */
function _fun10768(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#10768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:6, offset: 0x00d96606, size: 1322 bytes, params: 8, frame: 31
var setTimeout;
var then;
var bind;
let env0_0 = require;
const setAttributesNS = function(a0, a1) {
var env0_0 = a0;
var Object = global.Object;
Object.entries(a1).forEach(_fun10776);
return a0;
};
const v$1 = function(a0, a1) {
var propertyName;
for (propertyName in a1) {
a0[propertyName] = a1[propertyName];
}
return a0;
};
const p$1 = function(a0) {
var parentNode = a0.parentNode;
if (parentNode) {
parentNode.removeChild(a0);
}
};
let closure = function(a0) {
return a0.children;
};
const closure2 = function(a0, a1) {
this.props = a0;
this.context = a1;
};
const C$12 = C$1;
const q$1 = function(a0, a1, a2) {
return this.constructor(a0, a2);
};
const closure4 = function(a0) {
env0_30 = 1;
return useReducer_10815(D, a0);
};
const useReducer_108152 = useReducer_10815;
const useLayoutEffect_108222 = useLayoutEffect_10822;
const useMemo_108232 = useMemo_10823;
const closure8 = function(a0, a1) {
var env0_0 = a0;
env0_30 = 8;
return useMemo_10823(_fun10825, a1);
};
const w = function(a0) {
var env0_0 = a0;
var closure = _fun10828;
var env0_2 = (0, global.setTimeout)(closure, 100);
if (result) {
var env0_1 = (0, global.requestAnimationFrame)(closure);
}
};
const C_10831 = function(a0, a1) {
var r0;
var env0_0 = a0;
r0 = a0 ? a0.length !== a1.length : !a0;
r0 = !r0 ? a1.some(_fun10832) : r0;
return r0;
};
const D = function(a0, a1) {
var r0;
var value = a1;
if (typeof value !== 'function') {
r0 = value;
} else {
value = value(a0);
r0 = value;
}
return r0;
};
const retrieveStringValue = function(a0, a1) {
var r0;
var value = a0.get(a1);
if (typeof value !== 'string') {
r0 = '';
} else {
value = value.trim();
r0 = value;
}
return r0;
};
const useTakeScreenshotFactory = function({hooks}) {
return _fun10857;
};
const with2dContext = function(a0, a1, a2) {
var value;
if (a0) {
value = a0.getContext('2d', a1);
if (value) {
a2(a0, value);
}
}
};
const paintImage = function(a0, a1) {
var env0_0 = a1;
with2dContext(a0, {alpha: true}, _fun10872);
};
const paintForeground = function(a0, a1, a2) {
var env0_0 = a1;
var env0_1 = a2;
with2dContext(a0, {alpha: true}, _fun10874);
};
let env0_2 = Module00065Module;
const env0_4 = Module00005Module;
const env0_7 = ['open', 'onFormSubmitted'];
let Object = global.Object;
let defineProperty = Object.defineProperty;
let Symbol = global.Symbol;
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
const GLOBAL_OBJ = (Module00826Module).GLOBAL_OBJ;
const env0_8 = GLOBAL_OBJ.document;
const env0_9 = GLOBAL_OBJ.navigator;
const sendFeedback2 = sendFeedback;
const env0_12 = typeof global.__SENTRY_DEBUG__ === 'undefined' || global.__SENTRY_DEBUG__;
const env0_13 = {'foreground': '#2b2233', 'background': '#ffffff', 'accentForeground': 'white',
'accentBackground': 'rgba(88, 74, 192, 1)', 'successColor': '#268d75', 'errorColor': '#df3338',
'border': '1.5px solid rgba(41, 35, 47, 0.13)', 'boxShadow': '0px 4px 24px 0px rgba(43, 34, 51, 0.12)',
'outline': '1px auto var(--accent-background)', 'interactiveFilter': 'brightness(95%)'};
const env0_14 = {'foreground': '#ebe6ef', 'background': '#29232f', 'accentForeground': 'white',
'accentBackground': 'rgba(88, 74, 192, 1)', 'successColor': '#2da98c', 'errorColor': '#f55459',
'border': '1.5px solid rgba(235, 230, 239, 0.15)', 'boxShadow': '0px 4px 24px 0px rgba(43, 34, 51, 0.12)',
'outline': '1px auto var(--accent-background)', 'interactiveFilter': 'brightness(150%)'};
const env0_22 = {};
const env0_24 = RegExp('acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera', 'i');
const Array = global.Array;
const env0_25 = Array.isArray;
const env0_15 = [].slice;
object = {__e: __e};
closure2.prototype.setState = setState_10918;
closure2.prototype.forceUpdate = forceUpdate_10919;
closure2.prototype.render = closure;
const env0_18 = [];
let Promise = global.Promise;
if (typeof Promise === 'function') {
Promise = global.Promise;
then = Promise.prototype.then;
bind = then.bind;
Promise = global.Promise;
value = Reflect.apply(bind, then, [Promise.resolve()]);
} else {
setTimeout = global.setTimeout;
}
const f$1 = function(a0, a1) {
return a0.__v.__b - a1.__v.__b;
};
C$12.__r = 0;
const env0_31 = [];
const env0_32 = [];
const env0_34 = object.__b;
const env0_35 = object.__r;
const env0_36 = object.diffed;
const env0_37 = object.__c;
const env0_38 = object.unmount;
const env0_39 = object.__;
object.__b = function(a0) {
env0_27 = null;
if (__b) {
__b(a0);
}
};
object.__ = function(a0, a1) {
if (a1.__k && a1.__k.__m) {
a0.__m = a1.__k.__m;
}
if (__) {
__(a0, a1);
}
};
object.__r = __r_10923;
object.diffed = diffed;
object.__c = __c_10927;
object.unmount = unmount;
const result = typeof global.requestAnimationFrame === 'function';
Object = global.Object;
defineProperty = Object.defineProperty;
value = Object.create(null);
value.useCallback = closure8;
value.useContext = useContext_10933;
value.useDebugValue = useDebugValue_10934;
value.useEffect = useEffect_10935;
value.useErrorBoundary = useErrorBoundary;
value.useId = useId_10939;
value.useImperativeHandle = function(a0, a1, a2) {
var r2;
var value = a2;
var env0_0 = a0;
var env0_1 = a1;
env0_30 = 6;
if (value == null) {
r2 = value;
} else {
value = value.concat(a0);
r2 = value;
}
useLayoutEffect_10822(_fun10941, r2);
};
value.useLayoutEffect = useLayoutEffect_108222;
value.useMemo = useMemo_108232;
value.useReducer = useReducer_108152;
value.useRef = function(a0) {
var env0_0 = a0;
env0_30 = 5;
return useMemo_10823(_fun10945, []);
};
value.useState = closure4;
Symbol = global.Symbol;
const env0_41 = Reflect.apply(defineProperty, Object, [value, Symbol.toStringTag, {value: 'Module'}]);
exports.buildFeedbackIntegration = function({lazyLoadIntegration, getModalIntegration, getScreenshotIntegration}) {
return _fun10947;
};
exports.feedbackModalIntegration = function() {
return {name: 'FeedbackModal', setupOnce: _fun10976, createDialog: _fun10977};
};
exports.feedbackScreenshotIntegration = function() {
return {name: 'FeedbackScreenshot', setupOnce: _fun10989, createInput: _fun10990};
};
exports.getFeedback = getFeedback;
exports.sendFeedback = sendFeedback2;
function mergeOptions(a0, a1) { // fn#10769, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:1331, offset: 0x00d96b30, size: 212 bytes, params: 3, frame: 23
const env0_0 = a0;
const env0_1 = a1;
const Object = global.Object;
const assign = Object.assign;
const Object2 = global.Object;
const Object3 = global.Object;
const Object4 = global.Object;
return Reflect.apply(assign, Object, [{}, a0, a1, {tags: Object2.assign({}, a0.tags, a1.tags),
onFormOpen: onFormOpen, onFormClose: onFormClose, onSubmitSuccess: onSubmitSuccess,
onSubmitError: onSubmitError, onFormSubmitted: onFormSubmitted, themeDark: Object3.assign({}, a0.themeDark,
a1.themeDark), themeLight: Object4.assign({}, a0.themeLight, a1.themeLight)}]);
function onFormOpen() { // fn#10770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:1435, owner: mergeOptions.onFormOpen, offset: 0x00d96c04, size: 65 bytes, params: 1, frame: 11
if (require.onFormOpen != null) {
require.onFormOpen();
}
if (env0_0.onFormOpen != null) {
env0_0.onFormOpen();
}
}
function onFormClose() { // fn#10771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:1540, owner: mergeOptions.onFormClose, offset: 0x00d96c45, size: 65 bytes, params: 1, frame: 11
if (require.onFormClose != null) {
require.onFormClose();
}
if (env0_0.onFormClose != null) {
env0_0.onFormClose();
}
}
function onSubmitSuccess(a0, a1) { // fn#10772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:1654, owner: mergeOptions.onSubmitSuccess, offset: 0x00d96c86, size: 75 bytes, params: 3, frame: 15
if (require.onSubmitSuccess != null) {
require.onSubmitSuccess(a0, a1);
}
if (env0_0.onSubmitSuccess != null) {
env0_0.onSubmitSuccess(a0, a1);
}
}
function onSubmitError(a0) { // fn#10773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:1795, owner: mergeOptions.onSubmitError, offset: 0x00d96cd1, size: 70 bytes, params: 2, frame: 13
if (require.onSubmitError != null) {
require.onSubmitError(a0);
}
if (env0_0.onSubmitError != null) {
env0_0.onSubmitError(a0);
}
}
function onFormSubmitted() { // fn#10774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:1922, owner: mergeOptions.onFormSubmitted, offset: 0x00d96d17, size: 65 bytes, params: 1, frame: 11
if (require.onFormSubmitted != null) {
require.onFormSubmitted();
}
if (env0_0.onFormSubmitted != null) {
env0_0.onFormSubmitted();
}
}
}
function setAttributesNS(a0, a1) { // fn#10775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:2149, offset: 0x00d96d58, size: 48 bytes, params: 3, frame: 13
const env0_0 = a0;
const Object = global.Object;
Object.entries(a1).forEach(_fun10776);
return a0;
function _fun10776(a0) { // fn#10776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:2213, offset: 0x00d96d88, size: 58 bytes, params: 2, frame: 16
let value = environment.__proto__;
value = env1_6(a0, 2);
env0_0.setAttributeNS(null, value[0], value[1]);
}
}
function Actor({triggerLabel, triggerAriaLabel, shadow, styleNonce}) { // fn#10777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:2284, offset: 0x00d96dc2, size: 290 bytes, params: 2, frame: 18
var element2;
const element = document.createElement('button');
element.type = 'button';
element.className = 'widget__actor';
element.ariaHidden = 'false';
let r3 = triggerAriaLabel || triggerLabel;
r3 = !r3 ? env0_10 : r3;
element.ariaLabel = r3;
element.appendChild(FeedbackIcon());
if (triggerLabel) {
element2 = document.createElement('span');
appendChild = element2.appendChild;
documentBinding = document;
Reflect.apply(appendChild, element2, [documentBinding.createTextNode(triggerLabel)]);
element.appendChild(element2);
}
const element3 = document.createElement('style');
element3.textContent = '\n.widget__actor {\n position: fixed;\n z-index: var(--z-index);\n margin: var(--page-margin);\n inset: var(--actor-inset);\n\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 16px;\n\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 600;\n line-height: 1.14em;\n text-decoration: none;\n\n background: var(--actor-background, var(--background));\n border-radius: var(--actor-border-radius, 1.7em/50%);\n border: var(--actor-border, var(--border));\n box-shadow: var(--actor-box-shadow, var(--box-shadow));\n color: var(--actor-color, var(--foreground));\n fill: var(--actor-color, var(--foreground));\n cursor: pointer;\n opacity: 1;\n transition: transform 0.2s ease-in-out;\n transform: translate(0, 0) scale(1);\n}\n.widget__actor[aria-hidden="true"] {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n transform: translate(0, 16px) scale(0.98);\n}\n\n.widget__actor:hover {\n background: var(--actor-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n\n.widget__actor svg {\n width: 1.14em;\n height: 1.14em;\n}\n\n@media (max-width: 600px) {\n .widget__actor span {\n display: none;\n }\n}\n';
if (styleNonce) {
element3.setAttribute('nonce', styleNonce);
}
return {el: element, appendToDom: appendToDom, removeFromDom: removeFromDom, show: show_10782, hide: hide};
function FeedbackIcon() { // fn#10778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:2500, owner: Actor.FeedbackIcon, offset: 0x00d96ee4, size: 283 bytes, params: 1, frame: 20
var environment;
const closure = function(a0) {
return require(dependencyMap[5]).GLOBAL_OBJ.document.createElementNS('http://www.w3.org/2000/svg', a0);
};
let value = environment.__proto__;
const setAttributesNSBinding = setAttributesNS;
const value2 = closure('svg');
setAttributesNSBinding(value2, {'width': '20', 'height': '20', 'viewBox': '0 0 20 20',
'fill': 'var(--actor-color, var(--foreground))'});
const value3 = closure('g');
setAttributesNSBinding(value3, {clipPath: 'url(#clip0_57_80)'});
const value4 = closure('path');
const binding = env1_5;
value = binding({}, 'fill-rule', 'evenodd');
value = binding(value, 'clip-rule', 'evenodd');
setAttributesNSBinding(value4, binding(value, 'd',
'M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z'));
value2.appendChild(value3).appendChild(value4);
value = closure('defs');
const value5 = closure('clipPath');
setAttributesNSBinding(value5, {id: 'clip0_57_80'});
const value6 = closure('rect');
setAttributesNSBinding(value6, {'width': '20', 'height': '20', 'fill': 'white'});
value5.appendChild(value6);
value.appendChild(value5);
value = value2.appendChild(value);
value = value.appendChild(value5);
value.appendChild(value6);
return value2;
}
function appendToDom() { // fn#10780, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:6637, owner: Actor.appendToDom, offset: 0x00d9703b, size: 41 bytes, params: 1, frame: 12
const shadowBinding = shadow;
shadowBinding.appendChild(env0_2);
shadowBinding.appendChild(env0_1);
}
function removeFromDom() { // fn#10781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:6709, owner: Actor.removeFromDom, offset: 0x00d97064, size: 35 bytes, params: 1, frame: 10
env0_1.remove();
env0_2.remove();
}
function ActorShow() { // fn#10782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:6762, owner: Actor.show, offset: 0x00d97087, size: 21 bytes, params: 1, frame: 2
env0_1.ariaHidden = 'false';
}
function hide() { // fn#10783, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:6805, owner: Actor.hide, offset: 0x00d9709c, size: 21 bytes, params: 1, frame: 2
env0_1.ariaHidden = 'true';
}
}
function y$1(a0, a1, a2) { // fn#10787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:8136, offset: 0x00d97189, size: 256 bytes, params: 4, frame: 33
var r7;
var r8;
var r13;
var r2;
var r3;
var propertyName;
var propertyName2;
var property;
var propertyName3;
var defaultProps2;
const value = a2;
const value2 = undefined;
const object = {};
const properties = Object.keys(a1);
const properties2 = 0;
const properties3 = properties.length;
if (properties === value2) {
r2 = value2;
r3 = value2;
} else {
r7 = value2;
r8 = value2;
r13 = properties2;
while (true) {
propertyName = properties[r13];
propertyName2 = r13 + 1;
if (propertyName === value2) {
r2 = r7;
r3 = r8;
break;
}
if (propertyName == 'key') {
property = a1[propertyName];
r8 = property;
r13 = propertyName2;
} else if (propertyName == 'ref') {
property = a1[propertyName];
r7 = property;
r13 = propertyName2;
} else {
object[propertyName] = a1[propertyName];
r13 = propertyName2;
}
}
}
if (arguments.length > 2) {
object.children = arguments.length > 3 ? slice.call(arguments, 2) : value;
}
if (typeof a0 === 'function') {
if (a0.defaultProps != null) {
for (propertyName in a0.defaultProps) {
if (value2 !== object[propertyName]) {
r7 = propertyName3;
continue;
}
defaultProps2 = a0.defaultProps;
object[propertyName] = defaultProps2[propertyName];
r7 = propertyName3;
}
}
}
return d$1(a0, object, r3, r2, null);
}
function d$1(a0, a1, a2, a3, a4) { // fn#10788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:8433, offset: 0x00d97289, size: 164 bytes, params: 6, frame: 15
let value = a4;
const object = {type: a0, props: a1, key: a2, ref: a3, __k: null, __: null, __b: 0, __e: null, __d: undefined,
__c: null, constructor: undefined};
object.__v = value ?? (typeof env0_17 === 'bigint' ? env0_17 + 1n : +env0_17 + 1);
object.__i = -1;
object.__u = 0;
value = value == null;
if (value && env0_16.vnode != null) {
env0_16.vnode(object);
}
return object;
}
function m$1(a0, a1) { // fn#10791, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:8718, offset: 0x00d97345, size: 158 bytes, params: 3, frame: 15
var r4;
var r3;
var r0;
var property;
var __e;
var m$1Binding;
var __;
var __i;
let value = a1;
const value2 = null;
if (value2 == value) {
__ = a0.__;
reducibleJoin11: while (true) {
if (__) {
value = environment;
m$1Binding = m$1;
__ = a0.__;
__i = a0.__i;
value = m$1Binding(__, __i + 1);
r0 = value;
break reducibleJoin11;
}
r0 = value2;
break reducibleJoin11;
}
return r0;
}
let __k = a0.__k;
let length = __k.length;
if (value < length) {
r4 = value;
reducibleLoop2: while (true) {
__k = a0.__k;
property = __k[r4];
if (value2 != property) {
__e = property.__e;
reducibleJoin4: while (true) {
if (value2 != __e) {
return property.__e;
}
break reducibleJoin4;
}
}
value = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
__k = a0.__k;
length = __k.length;
if (value < length) {
r4 = value;
continue reducibleLoop2;
}
break reducibleLoop2;
}
}
reducibleJoin7: while (true) {
if (typeof a0.type !== 'function') {
r3 = value2;
break reducibleJoin7;
}
value = environment;
value = m$1(a0);
r3 = value;
break reducibleJoin7;
}
return r3;
}
function w$1(a0, a1, a2) { // fn#10792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:8903, offset: 0x00d973e3, size: 252 bytes, params: 4, frame: 31
var r9;
var r8;
var v$1Binding;
var object;
var __n;
var ownerSVGElement;
var __u;
var value2;
const __v = a0.__v;
const __e = __v.__e;
const __P = a0.__P;
if (__P) {
v$1Binding = v$1;
object = {};
v$1Binding(object, __v);
object.__v = __v.__v + 1;
if (env0_16.vnode) {
env0_16.vnode(object);
}
__n = a0.__n;
ownerSVGElement = __P.ownerSVGElement;
__u = __v.__u;
value2 = null;
r9 = 32 & __u ? [__e] : value2;
r8 = value2 != __e ? __e : m$1(__v);
__u = __v.__u;
M(__P, object, __v, __n, ownerSVGElement !== undefined, r9, a1, r8, !!(32 & __u), a2);
object.__.__k[object.__i] = object;
object.__d = undefined;
if (object.__e != __e) {
k$1(object);
}
return object;
}
}
function k$1({__}) { // fn#10793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:9154, offset: 0x00d974df, size: 151 bytes, params: 2, frame: 13
var r3;
var __c;
var __k;
var length;
var value;
var property;
var __e;
if (__ != null) {
__c = __.__c;
reducibleJoin2: while (true) {
if (__c != null) {
__c = __.__c;
__c.base = null;
__.__e = null;
__k = __.__k;
length = __k.length;
value = 0;
if (value < length) {
r3 = value;
reducibleLoop4: while (true) {
__k = __.__k;
property = __k[r3];
if (property != null) {
__e = property.__e;
reducibleJoin6: while (true) {
if (__e != null) {
__c = __.__c;
__e = property.__e;
__c.base = __e;
__.__e = __e;
break reducibleLoop4;
}
break reducibleJoin6;
}
}
value = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
__k = __.__k;
length = __k.length;
if (value < length) {
r3 = value;
continue reducibleLoop4;
}
break reducibleLoop4;
}
}
value = environment;
return k$1(__);
}
break reducibleJoin2;
}
}
}
function x$1(a0) { // fn#10794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:9339, offset: 0x00d97576, size: 141 bytes, params: 2, frame: 12
var r0;
var __r;
const __d = a0.__d;
let value = !__d;
if (__d) {
r0 = value;
} else {
value = true;
a0.__d = value;
r0 = value;
}
r0 = r0 && env0_18.push(a0);
if (r0) {
__r = C$1.__r;
value = typeof __r === 'bigint' ? __r : +__r;
C$1.__r = typeof value === 'bigint' ? value + 1n : +value + 1;
value = !value;
r0 = value;
}
r0 = !r0 ? env0_19 !== env0_16.debounceRendering : r0;
if (r0) {
(env0_16.debounceRendering || env0_20)(C$1);
}
}
function C$1() { // fn#10795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:9459, offset: 0x00d97603, size: 266 bytes, params: 1, frame: 26
var r3;
var r8;
var r13;
var r12;
var r11;
var r10;
var r4;
var __d;
var length;
var value4;
var length2;
var __c;
var value5;
const items3 = [];
const items2 = [];
let binding = env0_18;
let sort = binding.sort;
Reflect.apply(sort, binding, [f$1]);
const value2 = env0_18.shift();
const value3 = undefined;
if (value2) {
r3 = value2;
r8 = value3;
reducibleLoop1: while (true) {
__d = r3.__d;
reducibleJoin11: while (true) {
if (__d) {
length = env0_18.length;
value4 = w$1(r3, items3, items2);
r13 = value4 || r8;
reducibleJoin10: while (true) {
reducibleJoin9: while (true) {
if (length === 0) {
break reducibleJoin9;
}
length2 = env0_18.length;
if (length2 > length) {
break reducibleJoin9;
}
reducibleJoin7: while (true) {
if (r13) {
__c = env0_16.__c;
r12 = __c;
break reducibleJoin7;
}
r12 = r13;
break reducibleJoin7;
}
if (r12) {
binding = env0_16;
__c = binding.__c;
Reflect.apply(__c, binding, [r13, env0_23]);
r11 = r13;
break reducibleJoin10;
}
r11 = r13;
break reducibleJoin10;
}
j$1(items3, r13, items2);
items3.length = 0;
items2.length = 0;
binding = env0_18;
sort = binding.sort;
Reflect.apply(sort, binding, [f$1]);
r11 = value3;
break reducibleJoin10;
}
r10 = r11;
break reducibleJoin11;
}
r10 = r8;
break reducibleJoin11;
}
binding = env0_18;
value5 = binding.shift();
if (value5) {
r3 = value5;
r8 = r10;
continue reducibleLoop1;
}
r4 = r10;
break reducibleLoop1;
}
} else {
r4 = value3;
}
reducibleJoin14: while (true) {
if (r4) {
j$1(items3, r4, items2);
break reducibleJoin14;
}
break reducibleJoin14;
}
C$1.__r = 0;
return value3;
}
function P$1(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) { // fn#10796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:9672, offset: 0x00d9770d, size: 1356 bytes, params: 12, frame: 63
var r17;
var r5;
var r6;
var r25;
var ref;
var r35;
var r43;
var r38;
var r39;
var r34;
var r1;
var r4;
var r7;
var r15;
var r27;
var r28;
var r29;
var r26;
var r3;
var __k;
var binding;
var property;
var value5;
var constructor;
var String;
var __b;
var d$1Binding;
var type;
var props;
var key;
var __v;
var value6;
var value7;
var value8;
var value9;
var __e;
var __d;
var value10;
var value11;
var value12;
var value13;
var __u;
var value14;
var value15;
var value16;
var value17;
var value18;
var value19;
var value20;
var value21;
var value22;
var __i;
var property2;
var ref2;
var push;
var __c;
var __k2;
var nextSibling;
let value = a3;
reducibleJoin2: while (true) {
if (value) {
__k = value.__k;
r17 = __k;
break reducibleJoin2;
}
r17 = value;
break reducibleJoin2;
}
reducibleJoin4: while (true) {
if (r17) {
break reducibleJoin4;
}
value = environment;
binding = env0_23;
r17 = binding;
break reducibleJoin4;
}
const length = a1.length;
a2.__d = a8;
const length2 = a1.length;
const length3 = r17.length;
a2.__k = [];
value = 0;
const value2 = undefined;
const value3 = null;
if (value < length2) {
r5 = value;
r6 = length3;
r25 = value;
reducibleLoop5: while (true) {
__k = a2.__k;
property = a1[r25];
reducibleJoin23: while (true) {
if (value3 == property) {
r43 = value3;
break reducibleJoin23;
}
value5 = typeof property;
if (value5 === 'boolean') {
r43 = value3;
break reducibleJoin23;
}
if (value5 === 'function') {
r43 = value3;
break reducibleJoin23;
}
reducibleJoin22: while (true) {
reducibleJoin21: while (true) {
if (value5 === 'string') {
break reducibleJoin21;
}
if (value5 === 'number') {
break reducibleJoin21;
}
if (value5 === 'bigint') {
break reducibleJoin21;
}
constructor = property.constructor;
String = global.String;
if (constructor == String) {
break reducibleJoin21;
}
if (isArray(property)) {
value7 = d$1(render_10789, {children: property}, value3, value3, value3);
r35 = value7;
} else {
constructor = property.constructor;
reducibleJoin18: while (true) {
if (value2 !== constructor) {
r35 = property;
break reducibleJoin18;
}
__b = property.__b;
if (__b > value) {
d$1Binding = d$1;
type = property.type;
props = property.props;
key = property.key;
ref = property.ref;
reducibleJoin17: while (true) {
if (ref) {
ref = property.ref;
break reducibleJoin17;
}
ref = value3;
break reducibleJoin17;
}
__v = property.__v;
value6 = d$1Binding(type, props, key, ref, __v);
r35 = value6;
break reducibleJoin18;
}
r35 = property;
break reducibleJoin18;
}
}
break reducibleJoin22;
}
value8 = d$1(value3, property, value3, value3, property);
r35 = value8;
break reducibleJoin22;
}
r43 = r35;
break reducibleJoin23;
}
__k[r25] = r43;
if (value3 != r43) {
r43.__ = a2;
__b = a2.__b;
r43.__b = __b + 1;
value11 = r25 + r5;
value12 = I_10798(r43, r17, value11, r6);
r43.__i = value12;
reducibleJoin35: while (true) {
if (value12 === -1) {
r38 = value3;
r39 = r6;
break reducibleJoin35;
}
value13 = typeof r6 === 'bigint' ? r6 - 1n : +r6 - 1;
property = r17[value12];
if (property) {
__u = property.__u;
property.__u = __u | 131072;
r38 = property;
r39 = value13;
break reducibleJoin35;
}
r38 = property;
r39 = value13;
break reducibleJoin35;
}
reducibleJoin54: while (true) {
reducibleJoin52: while (true) {
if (value3 == r38) {
if (value12 != -1) {
r38 = r5;
break reducibleJoin52;
}
value18 = typeof r5 === 'bigint' ? r5 - 1n : +r5 - 1;
r38 = value18;
break reducibleJoin52;
}
__v = r38.__v;
if (value3 === __v) {
if (value12 != -1) {
r38 = r5;
break reducibleJoin52;
}
value18 = typeof r5 === 'bigint' ? r5 - 1n : +r5 - 1;
r38 = value18;
break reducibleJoin52;
}
if (value12 === value11) {
r34 = r39;
r35 = r5;
break reducibleJoin54;
}
if (value12 === value11 + 1) {
value17 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
r38 = value17;
} else if (value12 > value11) {
if (r39 > length2 - value11) {
value16 = r5 + (value12 - value11);
r38 = value16;
} else {
value15 = typeof r5 === 'bigint' ? r5 - 1n : +r5 - 1;
r38 = value15;
}
} else {
reducibleJoin43: while (true) {
if (value12 < value11) {
if (value12 == value11 - 1) {
value14 = value12 - value11;
r38 = value14;
break reducibleJoin43;
}
r38 = value;
break reducibleJoin43;
}
r38 = value;
break reducibleJoin43;
}
}
if (value12 === r25 + r38) {
r34 = r39;
r35 = r38;
break reducibleJoin54;
}
__u = r43.__u;
r43.__u = __u | 65536;
r34 = r39;
r35 = r38;
break reducibleJoin54;
}
type = r43.type;
if (typeof type === 'function') {
r34 = r39;
r35 = r38;
break reducibleJoin54;
}
__u = r43.__u;
r43.__u = __u | 65536;
r34 = r39;
r35 = r38;
break reducibleJoin54;
}
} else {
property = r17[r25];
reducibleJoin26: while (true) {
if (property) {
key = property.key;
value9 = value3 == key;
r38 = value9;
break reducibleJoin26;
}
r38 = property;
break reducibleJoin26;
}
reducibleJoin28: while (true) {
if (r38) {
__e = property.__e;
r38 = __e;
break reducibleJoin28;
}
break reducibleJoin28;
}
reducibleJoin54: while (true) {
if (r38) {
__e = property.__e;
__d = a2.__d;
reducibleJoin31: while (true) {
if (__e != __d) {
break reducibleJoin31;
}
a2.__d = m$1(property);
break reducibleJoin31;
}
O(property, property, false);
r17[r25] = value3;
value10 = typeof r6 === 'bigint' ? r6 - 1n : +r6 - 1;
r34 = value10;
r35 = r5;
break reducibleJoin54;
}
r34 = r6;
r35 = r5;
break reducibleJoin54;
}
}
value19 = typeof r25 === 'bigint' ? r25 + 1n : +r25 + 1;
if (value19 < length2) {
r5 = r35;
r6 = r34;
r25 = value19;
continue reducibleLoop5;
}
r1 = r34;
break reducibleLoop5;
}
} else {
r1 = length3;
}
reducibleJoin64: while (true) {
if (!r1) {
break reducibleJoin64;
}
if (!(value < length3)) {
break reducibleJoin64;
}
r1 = value;
reducibleLoop57: while (true) {
property = r17[r1];
value20 = value3 != property;
reducibleJoin59: while (true) {
if (value20) {
__u = property.__u;
value21 = !(131072 & __u);
r5 = value21;
break reducibleJoin59;
}
r5 = value20;
break reducibleJoin59;
}
reducibleJoin63: while (true) {
if (r5) {
__e = property.__e;
__d = a2.__d;
reducibleJoin62: while (true) {
if (__e != __d) {
break reducibleJoin62;
}
a2.__d = m$1(property);
break reducibleJoin62;
}
O(property, property);
break reducibleJoin63;
}
break reducibleJoin63;
}
value22 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
if (value22 < length3) {
r1 = value22;
continue reducibleLoop57;
}
break reducibleJoin64;
}
}
__d = a2.__d;
if (value < length) {
r4 = value2;
r7 = __d;
r15 = value;
reducibleLoop65: while (true) {
__k = a2.__k;
property = __k[r15];
value = value3 != property;
reducibleJoin67: while (true) {
if (value) {
value = typeof property !== 'boolean';
r27 = value;
break reducibleJoin67;
}
r27 = value;
break reducibleJoin67;
}
reducibleJoin69: while (true) {
if (r27) {
value = typeof property !== 'function';
r27 = value;
break reducibleJoin69;
}
break reducibleJoin69;
}
reducibleJoin94: while (true) {
if (r27) {
__i = property.__i;
if (__i === -1) {
binding = env0_22;
r28 = binding;
} else {
__i = property.__i;
property2 = r17[__i];
reducibleJoin73: while (true) {
if (property2) {
r28 = property2;
break reducibleJoin73;
}
binding = env0_22;
r28 = binding;
break reducibleJoin73;
}
}
property.__i = r15;
M(a0, property, r28, a4, a5, a6, a7, r7, a9, a10);
__e = property.__e;
ref = property.ref;
reducibleJoin77: while (true) {
if (ref) {
ref = r28.ref;
ref2 = property.ref;
value = ref != ref2;
r29 = value;
break reducibleJoin77;
}
r29 = ref;
break reducibleJoin77;
}
reducibleJoin82: while (true) {
if (r29) {
ref = r28.ref;
reducibleJoin80: while (true) {
if (ref) {
ref = r28.ref;
N(ref, value3, property);
break reducibleJoin80;
}
break reducibleJoin80;
}
push = a10.push;
ref = property.ref;
__c = property.__c;
r29 = __c || __e;
Reflect.apply(push, a10, [ref, r29, property]);
break reducibleJoin82;
}
break reducibleJoin82;
}
value = value3 == r4;
reducibleJoin84: while (true) {
if (value) {
value = value3 != __e;
r29 = value;
break reducibleJoin84;
}
r29 = value;
break reducibleJoin84;
}
if (r29) {
r4 = __e;
}
__u = property.__u;
reducibleJoin93: while (true) {
reducibleJoin92: while (true) {
if (65536 & __u) {
break reducibleJoin92;
}
__k = r28.__k;
__k2 = property.__k;
if (__k === __k2) {
break reducibleJoin92;
}
type = property.type;
if (typeof type === 'function') {
__d = property.__d;
if (value2 !== __d) {
__d = property.__d;
r29 = __d;
break reducibleJoin93;
}
}
if (__e) {
nextSibling = __e.nextSibling;
r29 = nextSibling;
break reducibleJoin93;
}
r29 = r7;
break reducibleJoin93;
}
value = $(property, r7, a0);
r29 = value;
break reducibleJoin93;
}
property.__d = value2;
__u = property.__u;
property.__u = __u & -196609;
r25 = r4;
r26 = r29;
break reducibleJoin94;
}
r25 = r4;
r26 = r7;
break reducibleJoin94;
}
value = typeof r15 === 'bigint' ? r15 + 1n : +r15 + 1;
if (value < length) {
r4 = r25;
r7 = r26;
r15 = value;
continue reducibleLoop65;
}
r1 = r25;
r3 = r26;
break reducibleLoop65;
}
} else {
r1 = value2;
r3 = __d;
}
a2.__d = r3;
a2.__e = r1;
return value2;
}
function $(a0, a1, a2) { // fn#10797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:11001, offset: 0x00d97c59, size: 204 bytes, params: 4, frame: 21
var r0;
var r2;
var r5;
var r9;
var insertBefore;
var nextSibling;
var nodeType;
var __k;
var length;
var value3;
let value = a1;
if (typeof a0.type === 'function') {
__k = a0.__k;
if (__k) {
length = __k.length;
value3 = 0;
if (value3 < length) {
r2 = value;
r5 = value3;
while (true) {
if (__k[r5]) {
__k[r5].__ = a0;
r9 = $(__k[r5], r2, a2);
} else {
r9 = r2;
}
value = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
if (__k) {
length = __k.length;
if (value < length) {
r2 = r9;
r5 = value;
continue;
}
r0 = r9;
break;
}
r0 = r9;
break;
}
} else {
r0 = value;
}
} else {
r0 = value;
}
} else {
var __e = a0.__e;
var value2 = null;
if (__e == value) {
r2 = value;
} else {
insertBefore = a2.insertBefore;
__e = a0.__e;
r0 = value || value2;
Reflect.apply(insertBefore, a2, [__e, r0]);
__e = a0.__e;
r2 = __e;
}
while (true) {
if (r2) {
nextSibling = r2.nextSibling;
r0 = nextSibling;
} else {
r0 = r2;
}
if (value2 == r0) {
break;
}
nodeType = r0.nodeType;
if (nodeType === 8) {
r2 = r0;
continue;
}
break;
}
}
return r0;
}
function T$1(a0, a1, a2) { // fn#10799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:11569, offset: 0x00d97e5c, size: 122 bytes, params: 4, frame: 16
var r1;
var r0;
var binding;
let value = a2;
if (a1[0] === '-') {
a0.setProperty(a1, value ?? '');
} else {
if (value == null) {
r0 = '';
} else {
if (typeof value !== 'number') {
r1 = value;
} else {
binding = env0_24;
if (binding.test(a1)) {
r1 = value;
} else {
value += 'px';
r1 = value;
}
}
r0 = r1;
}
a0[a1] = r0;
}
}
function A$1(a0, a1, a2, a3, a4) { // fn#10800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:11685, offset: 0x00d97ed6, size: 931 bytes, params: 6, frame: 25
var r2;
var r9;
var r10;
var r7;
var r12;
var r6;
var r11;
var value4;
var value5;
var error;
var value6;
var l;
var style;
var propertyName;
var propertyName2;
var value12;
var propertyName3;
var property;
var value13;
let value = a1;
const value2 = a3;
const value3 = a2;
if (value === 'style') {
if (typeof value3 === 'string') {
a0.style.cssText = value3;
} else {
if (typeof value2 !== 'string') {
r10 = value2;
} else {
style = a0.style;
value = '';
style.cssText = value;
r10 = value;
}
if (r10) {
for (propertyName in r10) {
if (!value3) {
r12 = value3;
continue;
}
value12 = propertyName in value3;
r12 = value12;
if (r12) {
r7 = propertyName2;
continue;
}
style = a0.style;
T$1(style, propertyName, '');
r7 = propertyName2;
}
}
if (value3) {
for (propertyName in value3) {
if (!r10) {
r11 = r10;
continue;
}
property = value3[propertyName];
value13 = property === r10[propertyName];
r11 = value13;
if (r11) {
r6 = propertyName3;
continue;
}
style = a0.style;
T$1(style, propertyName, value3[propertyName]);
r6 = propertyName3;
}
}
}
} else if (value[0] !== 'o') {
if (a4) {
value = value.replace(RegExp('xlink(H|:h)', ''), 'h');
value = value.replace(RegExp('sName$', ''), 's');
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
} else if (value === 'width') {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
} else if (value === 'height') {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
} else if (value === 'href') {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
} else if (value === 'list') {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
} else if (value === 'form') {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
} else if (value === 'tabIndex') {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
} else if (value === 'download') {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
} else if (value === 'rowSpan') {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
} else if (value === 'colSpan') {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
} else if (value === 'role') {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
} else if (value in a0) {
try {
value4 = value3 == null;
value5 = '';
r2 = value4 ? value5 : value3;
a0[value] = r2;
} catch (error) {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
}
} else {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
}
} else if (value[1] === 'n') {
value6 = value.replace(RegExp('(PointerCapture)$|Capture$', 'i'), '$1');
value = value !== value6;
r2 = value6.toLowerCase() in a0 ? value6.toLowerCase().slice(2) : value6.slice(2);
l = a0.l;
if (!l) {
a0.l = {};
}
l = a0.l;
l[r2 + value] = value3;
if (value3) {
if (value2) {
value3.u = value2.u;
} else {
value3.u = global.Date.now();
a0.addEventListener(r2, value ? L : D$1, value);
}
} else {
a0.removeEventListener(r2, value ? L : D$1, value);
}
} else if (a4) {
value = value.replace(RegExp('xlink(H|:h)', ''), 'h');
value = value.replace(RegExp('sName$', ''), 's');
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
} else if (value === 'width') {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
} else if (value === 'height') {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
} else if (value === 'href') {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
} else if (value === 'list') {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
} else if (value === 'form') {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
} else if (value === 'tabIndex') {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
} else if (value === 'download') {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
} else if (value === 'rowSpan') {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
} else if (value === 'colSpan') {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
} else if (value === 'role') {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
} else if (value in a0) {
try {
value4 = value3 == null;
} catch (error) {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
return undefined;
}
try {
a0[value] = value4 ? '' : value3;
} catch (error) {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
}
} else {
r9 = value;
if (typeof value3 !== 'function') {
if (value3 == null) {
a0.removeAttribute(r9);
} else if (value3 !== false) {
a0.setAttribute(r9, value3);
} else if (r9[4] !== '-') {
a0.removeAttribute(r9);
} else {
a0.setAttribute(r9, value3);
}
}
}
}
function D$1(a0) { // fn#10801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:12532, offset: 0x00d98279, size: 132 bytes, params: 2, frame: 13
var r1;
var property;
let value = a0;
if (this.l) {
property = this.l[value.type + false];
if (value.t) {
if (value.t <= property.u) {
return undefined;
}
if (env0_16.event) {
value = env0_16.event(value);
r1 = value;
} else {
r1 = value;
}
return property(r1);
}
value.t = global.Date.now();
if (env0_16.event) {
value = env0_16.event(value);
r1 = value;
} else {
r1 = value;
}
return property(r1);
}
}
function L(a0) { // fn#10802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:12662, offset: 0x00d982fd, size: 78 bytes, params: 2, frame: 14
var r0;
var property;
let value = a0;
let l = this.l;
if (l) {
l = this.l;
property = l[value.type + true];
if (env0_16.event) {
value = env0_16.event(value);
r0 = value;
} else {
r0 = value;
}
return Reflect.apply(property, l, [r0]);
}
}
function M(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) { // fn#10803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:12733, offset: 0x00d9834b, size: 2263 bytes, params: 11, frame: 57
var r6;
var r7;
var r9;
var r23;
var r29;
var r232;
var r8;
var r11;
var r22;
var r30;
var r28;
var r24;
var r2;
var r16;
var r21;
var r17;
var value6;
var __e;
var object;
var __v;
var __v2;
var z$1Binding;
var __k;
var props;
var contextType;
var __c;
var property;
var __;
var props2;
var value8;
var value9;
var prototype;
var render;
var b$1Binding;
var b$12;
var value11;
var q$1Binding;
var type2;
var value14;
var sub;
var state;
var value15;
var __E;
var __s;
var value16;
var getDerivedStateFromProps;
var value17;
var value18;
var v$1Binding;
var __s2;
var value19;
var props3;
var value20;
var value21;
var componentWillReceiveProps;
var value22;
var shouldComponentUpdate;
var value23;
var shouldComponentUpdate2;
var value24;
var __v3;
var value25;
var __v4;
var forEach;
var closure;
var _sb;
var length;
var value26;
var __h;
var push;
var value27;
var componentWillUpdate;
var value28;
var componentDidUpdate;
var value29;
var value30;
var componentWillMount;
var value31;
var componentDidMount;
var value32;
var binding;
var __r;
var value33;
var value34;
var state2;
var context;
var value35;
var __d;
var value36;
var value37;
var state3;
var value38;
var value39;
var value40;
var value41;
var getChildContext;
var value42;
var getSnapshotBeforeUpdate;
var isArrayBinding;
var render_10789Binding;
var key;
var children;
var error;
var indexOf;
var diffed;
const env0_0 = a1;
let value = a3;
const value2 = a5;
const value3 = a7;
const value4 = a8;
const value5 = undefined;
let type = a1.type;
if (value5 !== a1.constructor) {
return null;
}
let __u = a2.__u;
reducibleJoin3: while (true) {
if (128 & __u) {
__u = a2.__u;
value6 = !!(32 & __u);
__e = a2.__e;
a1.__e = __e;
r6 = __e;
r7 = [__e];
r9 = value6;
break reducibleJoin3;
}
r6 = value3;
r7 = value2;
r9 = value4;
break reducibleJoin3;
}
const __b = env0_16.__b;
reducibleJoin5: while (true) {
if (__b) {
__b(a1);
break reducibleJoin5;
}
break reducibleJoin5;
}
reducibleJoin390: while (true) {
reduciblePort389: while (true) {
exceptionLanding382: while (true) {
if (typeof type === 'function') {
try {
props = a1.props;
} catch (error) {
break exceptionLanding382;
}
try {
contextType = type.contextType;
} catch (error) {
break exceptionLanding382;
}
reducibleJoin18: while (true) {
if (contextType) {
try {
__c = contextType.__c;
} catch (error) {
break exceptionLanding382;
}
try {
property = value[__c];
} catch (error) {
break exceptionLanding382;
}
r23 = property;
break reducibleJoin18;
}
r23 = contextType;
break reducibleJoin18;
}
if (contextType) {
if (r23) {
try {
props2 = r23.props;
} catch (error) {
break exceptionLanding382;
}
try {
value8 = props2.value;
} catch (error) {
break exceptionLanding382;
}
r29 = value8;
} else {
try {
__ = contextType.__;
} catch (error) {
break exceptionLanding382;
}
r29 = __;
}
r232 = r29;
} else {
r232 = value;
}
try {
__c = a2.__c;
} catch (error) {
break exceptionLanding382;
}
if (__c) {
try {
__c = a2.__c;
} catch (error) {
break exceptionLanding382;
}
try {
a1.__c = __c;
} catch (error) {
break exceptionLanding382;
}
try {
var env0_1 = __c;
} catch (error) {
break exceptionLanding382;
}
try {
__E = __c.__E;
} catch (error) {
break exceptionLanding382;
}
try {
__c.__ = __E;
} catch (error) {
break exceptionLanding382;
}
r8 = __c;
r11 = __E;
r22 = value5;
} else {
try {
value9 = 'prototype' in type;
} catch (error) {
break exceptionLanding382;
}
reducibleJoin63: while (true) {
reducibleJoin53: while (true) {
if (value9) {
try {
prototype = type.prototype;
} catch (error) {
break exceptionLanding382;
}
try {
render = prototype.render;
} catch (error) {
break exceptionLanding382;
}
if (render) {
try {
prototype = type.prototype;
} catch (error) {
break exceptionLanding382;
}
try {
} catch (error) {
break exceptionLanding382;
}
try {
type2 = new type();
} catch (error) {
break exceptionLanding382;
}
try {
value14 = type2 instanceof Object ? type2 : undefined;
} catch (error) {
break exceptionLanding382;
}
try {
env0_1 = value14;
} catch (error) {
break exceptionLanding382;
}
try {
a1.__c = value14;
} catch (error) {
break exceptionLanding382;
}
r8 = value14;
break reducibleJoin63;
}
try {
b$1Binding = b$1;
} catch (error) {
break exceptionLanding382;
}
try {
prototype = b$1Binding.prototype;
} catch (error) {
break exceptionLanding382;
}
try {
} catch (error) {
break exceptionLanding382;
}
try {
b$12 = new b$1Binding();
} catch (error) {
break exceptionLanding382;
}
try {
value11 = b$12 instanceof Object ? b$12 : undefined;
} catch (error) {
break exceptionLanding382;
}
try {
env0_1 = value11;
} catch (error) {
break exceptionLanding382;
}
try {
a1.__c = value11;
} catch (error) {
break exceptionLanding382;
}
try {
value11.constructor = type;
} catch (error) {
break exceptionLanding382;
}
try {
q$1Binding = q$1;
} catch (error) {
break exceptionLanding382;
}
try {
value11.render = q$1Binding;
} catch (error) {
break exceptionLanding382;
}
break reducibleJoin53;
}
try {
b$1Binding = b$1;
} catch (error) {
break exceptionLanding382;
}
try {
prototype = b$1Binding.prototype;
} catch (error) {
break exceptionLanding382;
}
try {
} catch (error) {
break exceptionLanding382;
}
try {
b$12 = new b$1Binding();
} catch (error) {
break exceptionLanding382;
}
try {
value11 = b$12 instanceof Object ? b$12 : undefined;
} catch (error) {
break exceptionLanding382;
}
try {
env0_1 = value11;
} catch (error) {
break exceptionLanding382;
}
try {
a1.__c = value11;
} catch (error) {
break exceptionLanding382;
}
try {
value11.constructor = type;
} catch (error) {
break exceptionLanding382;
}
try {
q$1Binding = q$1;
} catch (error) {
break exceptionLanding382;
}
try {
value11.render = q$1Binding;
} catch (error) {
break exceptionLanding382;
}
break reducibleJoin53;
}
r8 = value11;
break reducibleJoin63;
}
reducibleJoin68: while (true) {
if (r23) {
try {
sub = r23.sub;
} catch (error) {
break exceptionLanding382;
}
try {
Reflect.apply(sub, r23, [r8]);
} catch (error) {
break exceptionLanding382;
}
break reducibleJoin68;
}
break reducibleJoin68;
}
try {
r8.props = props;
} catch (error) {
break exceptionLanding382;
}
try {
state = r8.state;
} catch (error) {
break exceptionLanding382;
}
reducibleJoin75: while (true) {
if (state) {
break reducibleJoin75;
}
try {
object = {};
} catch (error) {
break exceptionLanding382;
}
try {
r8.state = object;
} catch (error) {
break exceptionLanding382;
}
break reducibleJoin75;
}
try {
r8.context = r232;
} catch (error) {
break exceptionLanding382;
}
try {
r8.__n = value;
} catch (error) {
break exceptionLanding382;
}
value15 = true;
try {
r8.__d = value15;
} catch (error) {
break exceptionLanding382;
}
try {
object = [];
} catch (error) {
break exceptionLanding382;
}
try {
r8.__h = object;
} catch (error) {
break exceptionLanding382;
}
try {
object = [];
} catch (error) {
break exceptionLanding382;
}
try {
r8._sb = object;
} catch (error) {
break exceptionLanding382;
}
r11 = value5;
r22 = value15;
}
try {
__s = r8.__s;
} catch (error) {
break exceptionLanding382;
}
try {
value16 = __s != null;
} catch (error) {
break exceptionLanding382;
}
reducibleJoin102: while (true) {
if (value16) {
break reducibleJoin102;
}
try {
state = r8.state;
} catch (error) {
break exceptionLanding382;
}
try {
r8.__s = state;
} catch (error) {
break exceptionLanding382;
}
break reducibleJoin102;
}
try {
getDerivedStateFromProps = type.getDerivedStateFromProps;
} catch (error) {
break exceptionLanding382;
}
try {
value17 = getDerivedStateFromProps == null;
} catch (error) {
break exceptionLanding382;
}
reducibleJoin124: while (true) {
if (value17) {
break reducibleJoin124;
}
try {
__s = r8.__s;
} catch (error) {
break exceptionLanding382;
}
try {
state = r8.state;
} catch (error) {
break exceptionLanding382;
}
try {
value18 = __s != state;
} catch (error) {
break exceptionLanding382;
}
reducibleJoin115: while (true) {
if (value18) {
break reducibleJoin115;
}
try {
v$1Binding = v$1;
} catch (error) {
break exceptionLanding382;
}
try {
object = {};
} catch (error) {
break exceptionLanding382;
}
try {
__s = r8.__s;
} catch (error) {
break exceptionLanding382;
}
try {
v$1Binding(object, __s);
} catch (error) {
break exceptionLanding382;
}
try {
r8.__s = object;
} catch (error) {
break exceptionLanding382;
}
break reducibleJoin115;
}
try {
v$1Binding = v$1;
} catch (error) {
break exceptionLanding382;
}
try {
__s = r8.__s;
} catch (error) {
break exceptionLanding382;
}
try {
getDerivedStateFromProps = type.getDerivedStateFromProps;
} catch (error) {
break exceptionLanding382;
}
try {
__s2 = r8.__s;
} catch (error) {
break exceptionLanding382;
}
try {
value19 = Reflect.apply(getDerivedStateFromProps, type, [props, __s2]);
} catch (error) {
break exceptionLanding382;
}
try {
v$1Binding(__s, value19);
} catch (error) {
break exceptionLanding382;
}
break reducibleJoin124;
}
try {
props3 = r8.props;
} catch (error) {
break exceptionLanding382;
}
try {
var env0_2 = props3;
} catch (error) {
break exceptionLanding382;
}
try {
state = r8.state;
} catch (error) {
break exceptionLanding382;
}
try {
var env0_3 = state;
} catch (error) {
break exceptionLanding382;
}
try {
r8.__v = a1;
} catch (error) {
break exceptionLanding382;
}
if (r22) {
try {
getDerivedStateFromProps = type.getDerivedStateFromProps;
} catch (error) {
break exceptionLanding382;
}
try {
value30 = getDerivedStateFromProps == null;
} catch (error) {
break exceptionLanding382;
}
reducibleJoin238: while (true) {
if (value30) {
try {
componentWillMount = r8.componentWillMount;
} catch (error) {
break exceptionLanding382;
}
try {
value31 = componentWillMount != null;
} catch (error) {
break exceptionLanding382;
}
r23 = value31;
break reducibleJoin238;
}
r23 = value30;
break reducibleJoin238;
}
reducibleJoin242: while (true) {
if (r23) {
try {
componentWillMount = r8.componentWillMount;
} catch (error) {
break exceptionLanding382;
}
try {
Reflect.apply(componentWillMount, r8, []);
} catch (error) {
break exceptionLanding382;
}
break reducibleJoin242;
}
break reducibleJoin242;
}
try {
componentDidMount = r8.componentDidMount;
} catch (error) {
break exceptionLanding382;
}
try {
value32 = componentDidMount == null;
} catch (error) {
break exceptionLanding382;
}
reducibleJoin250: while (true) {
if (value32) {
break reducibleJoin250;
}
try {
__h = r8.__h;
} catch (error) {
break exceptionLanding382;
}
try {
push = __h.push;
} catch (error) {
break exceptionLanding382;
}
try {
componentDidMount = r8.componentDidMount;
} catch (error) {
break exceptionLanding382;
}
try {
Reflect.apply(push, __h, [componentDidMount]);
} catch (error) {
break exceptionLanding382;
}
break reducibleJoin250;
}
} else {
try {
getDerivedStateFromProps = type.getDerivedStateFromProps;
} catch (error) {
break exceptionLanding382;
}
try {
value20 = getDerivedStateFromProps == null;
} catch (error) {
break exceptionLanding382;
}
reducibleJoin139: while (true) {
if (value20) {
value21 = props !== props3;
r29 = value21;
break reducibleJoin139;
}
r29 = value20;
break reducibleJoin139;
}
reducibleJoin143: while (true) {
if (r29) {
try {
componentWillReceiveProps = r8.componentWillReceiveProps;
} catch (error) {
break exceptionLanding382;
}
try {
value22 = componentWillReceiveProps != null;
} catch (error) {
break exceptionLanding382;
}
r23 = value22;
break reducibleJoin143;
}
r23 = r29;
break reducibleJoin143;
}
reducibleJoin148: while (true) {
if (r23) {
try {
componentWillReceiveProps = r8.componentWillReceiveProps;
} catch (error) {
break exceptionLanding382;
}
try {
Reflect.apply(componentWillReceiveProps, r8, [props, r232]);
} catch (error) {
break exceptionLanding382;
}
break reducibleJoin148;
}
break reducibleJoin148;
}
try {
__e = r8.__e;
} catch (error) {
break exceptionLanding382;
}
if (!__e) {
try {
shouldComponentUpdate = r8.shouldComponentUpdate;
} catch (error) {
break exceptionLanding382;
}
try {
value23 = shouldComponentUpdate == null;
} catch (error) {
break exceptionLanding382;
}
if (!value23) {
try {
shouldComponentUpdate = r8.shouldComponentUpdate;
} catch (error) {
break exceptionLanding382;
}
try {
__s = r8.__s;
} catch (error) {
break exceptionLanding382;
}
try {
shouldComponentUpdate2 = Reflect.apply(shouldComponentUpdate, r8, [props, __s,
r232]);
} catch (error) {
break exceptionLanding382;
}
try {
value24 = shouldComponentUpdate2 === false;
} catch (error) {
break exceptionLanding382;
}
if (value24) {
try {
__v = a1.__v;
} catch (error) {
break exceptionLanding382;
}
try {
__v4 = a2.__v;
} catch (error) {
break exceptionLanding382;
}
try {
value = __v === __v4;
} catch (error) {
break exceptionLanding382;
}
reducibleJoin178: while (true) {
if (value) {
break reducibleJoin178;
}
try {
r8.props = props;
} catch (error) {
break exceptionLanding382;
}
try {
__s = r8.__s;
} catch (error) {
break exceptionLanding382;
}
try {
r8.state = __s;
} catch (error) {
break exceptionLanding382;
}
try {
r8.__d = false;
} catch (error) {
break exceptionLanding382;
}
break reducibleJoin178;
}
try {
__e = a2.__e;
} catch (error) {
break exceptionLanding382;
}
try {
a1.__e = __e;
} catch (error) {
break exceptionLanding382;
}
try {
__k = a2.__k;
} catch (error) {
break exceptionLanding382;
}
try {
a1.__k = __k;
} catch (error) {
break exceptionLanding382;
}
try {
__k = a1.__k;
} catch (error) {
break exceptionLanding382;
}
try {
forEach = __k.forEach;
} catch (error) {
break exceptionLanding382;
}
try {
closure = _fun10804;
} catch (error) {
break exceptionLanding382;
}
try {
Reflect.apply(forEach, __k, [closure]);
} catch (error) {
break exceptionLanding382;
}
value = 0;
try {
_sb = r8._sb;
} catch (error) {
break exceptionLanding382;
}
try {
length = _sb.length;
} catch (error) {
break exceptionLanding382;
}
try {
value26 = value < length;
} catch (error) {
break exceptionLanding382;
}
if (value26) {
r30 = value;
reducibleLoop191: while (true) {
try {
__h = r8.__h;
} catch (error) {
break exceptionLanding382;
}
try {
push = __h.push;
} catch (error) {
break exceptionLanding382;
}
try {
_sb = r8._sb;
} catch (error) {
break exceptionLanding382;
}
try {
property = _sb[r30];
} catch (error) {
break exceptionLanding382;
}
try {
Reflect.apply(push, __h, [property]);
} catch (error) {
break exceptionLanding382;
}
try {
value = typeof r30 === 'bigint' ? r30 + 1n : +r30 + 1;
} catch (error) {
break exceptionLanding382;
}
try {
_sb = r8._sb;
} catch (error) {
break exceptionLanding382;
}
try {
length = _sb.length;
} catch (error) {
break exceptionLanding382;
}
try {
value27 = value < length;
} catch (error) {
break exceptionLanding382;
}
if (value27) {
r30 = value;
continue reducibleLoop191;
}
break reducibleLoop191;
}
}
try {
object = [];
} catch (error) {
break exceptionLanding382;
}
try {
r8._sb = object;
} catch (error) {
break exceptionLanding382;
}
try {
__h = r8.__h;
} catch (error) {
break exceptionLanding382;
}
try {
length = __h.length;
} catch (error) {
break exceptionLanding382;
}
if (length) {
try {
push = a6.push;
} catch (error) {
break exceptionLanding382;
}
try {
Reflect.apply(push, a6, [r8]);
} catch (error) {
break exceptionLanding382;
}
break reduciblePort389;
}
break reduciblePort389;
}
}
try {
__v = a1.__v;
} catch (error) {
break exceptionLanding382;
}
try {
__v3 = a2.__v;
} catch (error) {
break exceptionLanding382;
}
try {
value25 = __v !== __v3;
} catch (error) {
break exceptionLanding382;
}
if (!value25) {
try {
__v = a1.__v;
} catch (error) {
break exceptionLanding382;
}
try {
__v4 = a2.__v;
} catch (error) {
break exceptionLanding382;
}
try {
value = __v === __v4;
} catch (error) {
break exceptionLanding382;
}
reducibleJoin178: while (true) {
if (value) {
break reducibleJoin178;
}
try {
r8.props = props;
} catch (error) {
break exceptionLanding382;
}
try {
__s = r8.__s;
} catch (error) {
break exceptionLanding382;
}
try {
r8.state = __s;
} catch (error) {
break exceptionLanding382;
}
try {
r8.__d = false;
} catch (error) {
break exceptionLanding382;
}
break reducibleJoin178;
}
try {
__e = a2.__e;
} catch (error) {
break exceptionLanding382;
}
try {
a1.__e = __e;
} catch (error) {
break exceptionLanding382;
}
try {
__k = a2.__k;
} catch (error) {
break exceptionLanding382;
}
try {
a1.__k = __k;
} catch (error) {
break exceptionLanding382;
}
try {
__k = a1.__k;
} catch (error) {
break exceptionLanding382;
}
try {
forEach = __k.forEach;
} catch (error) {
break exceptionLanding382;
}
try {
closure = _fun10804;
} catch (error) {
break exceptionLanding382;
}
try {
Reflect.apply(forEach, __k, [closure]);
} catch (error) {
break exceptionLanding382;
}
value = 0;
try {
_sb = r8._sb;
} catch (error) {
break exceptionLanding382;
}
try {
length = _sb.length;
} catch (error) {
break exceptionLanding382;
}
try {
value26 = value < length;
} catch (error) {
break exceptionLanding382;
}
if (value26) {
r30 = value;
reducibleLoop191: while (true) {
try {
__h = r8.__h;
} catch (error) {
break exceptionLanding382;
}
try {
push = __h.push;
} catch (error) {
break exceptionLanding382;
}
try {
_sb = r8._sb;
} catch (error) {
break exceptionLanding382;
}
try {
property = _sb[r30];
} catch (error) {
break exceptionLanding382;
}
try {
Reflect.apply(push, __h, [property]);
} catch (error) {
break exceptionLanding382;
}
try {
value = typeof r30 === 'bigint' ? r30 + 1n : +r30 + 1;
} catch (error) {
break exceptionLanding382;
}
try {
_sb = r8._sb;
} catch (error) {
break exceptionLanding382;
}
try {
length = _sb.length;
} catch (error) {
break exceptionLanding382;
}
try {
value27 = value < length;
} catch (error) {
break exceptionLanding382;
}
if (value27) {
r30 = value;
continue reducibleLoop191;
}
break reducibleLoop191;
}
}
try {
object = [];
} catch (error) {
break exceptionLanding382;
}
try {
r8._sb = object;
} catch (error) {
break exceptionLanding382;
}
try {
__h = r8.__h;
} catch (error) {
break exceptionLanding382;
}
try {
length = __h.length;
} catch (error) {
break exceptionLanding382;
}
if (length) {
try {
push = a6.push;
} catch (error) {
break exceptionLanding382;
}
try {
Reflect.apply(push, a6, [r8]);
} catch (error) {
break exceptionLanding382;
}
break reduciblePort389;
}
break reduciblePort389;
}
}
try {
componentWillUpdate = r8.componentWillUpdate;
} catch (error) {
break exceptionLanding382;
}
try {
value28 = componentWillUpdate == null;
} catch (error) {
break exceptionLanding382;
}
reducibleJoin222: while (true) {
if (value28) {
break reducibleJoin222;
}
try {
componentWillUpdate = r8.componentWillUpdate;
} catch (error) {
break exceptionLanding382;
}
try {
__s = r8.__s;
} catch (error) {
break exceptionLanding382;
}
try {
Reflect.apply(componentWillUpdate, r8, [props, __s, r232]);
} catch (error) {
break exceptionLanding382;
}
break reducibleJoin222;
}
try {
componentDidUpdate = r8.componentDidUpdate;
} catch (error) {
break exceptionLanding382;
}
try {
value29 = componentDidUpdate == null;
} catch (error) {
break exceptionLanding382;
}
reducibleJoin250: while (true) {
if (value29) {
break reducibleJoin250;
}
try {
__h = r8.__h;
} catch (error) {
break exceptionLanding382;
}
try {
push = __h.push;
} catch (error) {
break exceptionLanding382;
}
try {
closure = _fun10805;
} catch (error) {
break exceptionLanding382;
}
try {
Reflect.apply(push, __h, [closure]);
} catch (error) {
break exceptionLanding382;
}
break reducibleJoin250;
}
}
try {
r8.context = r232;
} catch (error) {
break exceptionLanding382;
}
try {
r8.props = props;
} catch (error) {
break exceptionLanding382;
}
try {
r8.__P = a0;
} catch (error) {
break exceptionLanding382;
}
try {
r8.__e = false;
} catch (error) {
break exceptionLanding382;
}
try {
binding = env0_16;
} catch (error) {
break exceptionLanding382;
}
try {
__r = binding.__r;
} catch (error) {
break exceptionLanding382;
}
value33 = 0;
try {
value34 = 'prototype' in type;
} catch (error) {
break exceptionLanding382;
}
if (value34) {
try {
prototype = type.prototype;
} catch (error) {
break exceptionLanding382;
}
try {
render = prototype.render;
} catch (error) {
break exceptionLanding382;
}
if (render) {
try {
__s = r8.__s;
} catch (error) {
break exceptionLanding382;
}
try {
r8.state = __s;
} catch (error) {
break exceptionLanding382;
}
try {
r8.__d = false;
} catch (error) {
break exceptionLanding382;
}
reducibleJoin292: while (true) {
if (__r) {
try {
__r(a1);
} catch (error) {
break exceptionLanding382;
}
break reducibleJoin292;
}
break reducibleJoin292;
}
try {
render = r8.render;
} catch (error) {
break exceptionLanding382;
}
try {
props = r8.props;
} catch (error) {
break exceptionLanding382;
}
try {
state3 = r8.state;
} catch (error) {
break exceptionLanding382;
}
try {
context = r8.context;
} catch (error) {
break exceptionLanding382;
}
try {
value38 = Reflect.apply(render, r8, [props, state3, context]);
} catch (error) {
break exceptionLanding382;
}
try {
_sb = r8._sb;
} catch (error) {
break exceptionLanding382;
}
try {
length = _sb.length;
} catch (error) {
break exceptionLanding382;
}
try {
value39 = value33 < length;
} catch (error) {
break exceptionLanding382;
}
if (value39) {
r24 = value33;
reducibleLoop302: while (true) {
try {
__h = r8.__h;
} catch (error) {
break exceptionLanding382;
}
try {
push = __h.push;
} catch (error) {
break exceptionLanding382;
}
try {
_sb = r8._sb;
} catch (error) {
break exceptionLanding382;
}
try {
property = _sb[r24];
} catch (error) {
break exceptionLanding382;
}
try {
Reflect.apply(push, __h, [property]);
} catch (error) {
break exceptionLanding382;
}
try {
value40 = typeof r24 === 'bigint' ? r24 + 1n : +r24 + 1;
} catch (error) {
break exceptionLanding382;
}
try {
_sb = r8._sb;
} catch (error) {
break exceptionLanding382;
}
try {
length = _sb.length;
} catch (error) {
break exceptionLanding382;
}
try {
value41 = value40 < length;
} catch (error) {
break exceptionLanding382;
}
if (value41) {
r24 = value40;
continue reducibleLoop302;
}
break reducibleLoop302;
}
}
try {
object = [];
} catch (error) {
break exceptionLanding382;
}
try {
r8._sb = object;
} catch (error) {
break exceptionLanding382;
}
r2 = value38;
} else {
r28 = value33;
reducibleLoop265: while (true) {
try {
r8.__d = false;
} catch (error) {
break exceptionLanding382;
}
reducibleJoin270: while (true) {
if (__r) {
try {
__r(a1);
} catch (error) {
break exceptionLanding382;
}
break reducibleJoin270;
}
break reducibleJoin270;
}
try {
render = r8.render;
} catch (error) {
break exceptionLanding382;
}
try {
props = r8.props;
} catch (error) {
break exceptionLanding382;
}
try {
state2 = r8.state;
} catch (error) {
break exceptionLanding382;
}
try {
context = r8.context;
} catch (error) {
break exceptionLanding382;
}
try {
value35 = Reflect.apply(render, r8, [props, state2, context]);
} catch (error) {
break exceptionLanding382;
}
try {
__s = r8.__s;
} catch (error) {
break exceptionLanding382;
}
try {
r8.state = __s;
} catch (error) {
break exceptionLanding382;
}
try {
__d = r8.__d;
} catch (error) {
break exceptionLanding382;
}
if (__d) {
try {
value36 = typeof r28 === 'bigint' ? r28 + 1n : +r28 + 1;
} catch (error) {
break exceptionLanding382;
}
try {
value37 = value36 < 25;
} catch (error) {
break exceptionLanding382;
}
if (value37) {
r28 = value36;
continue reducibleLoop265;
}
r2 = value35;
break reducibleLoop265;
}
r2 = value35;
break reducibleLoop265;
}
}
} else {
r28 = value33;
reducibleLoop265: while (true) {
try {
r8.__d = false;
} catch (error) {
break exceptionLanding382;
}
reducibleJoin270: while (true) {
if (__r) {
try {
__r(a1);
} catch (error) {
break exceptionLanding382;
}
break reducibleJoin270;
}
break reducibleJoin270;
}
try {
render = r8.render;
} catch (error) {
break exceptionLanding382;
}
try {
props = r8.props;
} catch (error) {
break exceptionLanding382;
}
try {
state2 = r8.state;
} catch (error) {
break exceptionLanding382;
}
try {
context = r8.context;
} catch (error) {
break exceptionLanding382;
}
try {
value35 = Reflect.apply(render, r8, [props, state2, context]);
} catch (error) {
break exceptionLanding382;
}
try {
__s = r8.__s;
} catch (error) {
break exceptionLanding382;
}
try {
r8.state = __s;
} catch (error) {
break exceptionLanding382;
}
try {
__d = r8.__d;
} catch (error) {
break exceptionLanding382;
}
if (__d) {
try {
value36 = typeof r28 === 'bigint' ? r28 + 1n : +r28 + 1;
} catch (error) {
break exceptionLanding382;
}
try {
value37 = value36 < 25;
} catch (error) {
break exceptionLanding382;
}
if (value37) {
r28 = value36;
continue reducibleLoop265;
}
r2 = value35;
break reducibleLoop265;
}
r2 = value35;
break reducibleLoop265;
}
}
try {
__s = r8.__s;
} catch (error) {
break exceptionLanding382;
}
try {
r8.state = __s;
} catch (error) {
break exceptionLanding382;
}
try {
getChildContext = r8.getChildContext;
} catch (error) {
break exceptionLanding382;
}
try {
value42 = getChildContext == null;
} catch (error) {
break exceptionLanding382;
}
reducibleJoin331: while (true) {
if (value42) {
r16 = value;
break reducibleJoin331;
}
try {
v$1Binding = v$1;
} catch (error) {
break exceptionLanding382;
}
try {
object = {};
} catch (error) {
break exceptionLanding382;
}
try {
v$1Binding(object, value);
} catch (error) {
break exceptionLanding382;
}
try {
getChildContext = r8.getChildContext;
} catch (error) {
break exceptionLanding382;
}
try {
value = Reflect.apply(getChildContext, r8, []);
} catch (error) {
break exceptionLanding382;
}
try {
v$1Binding(object, value);
} catch (error) {
break exceptionLanding382;
}
r16 = object;
break reducibleJoin331;
}
reducibleJoin335: while (true) {
if (r22) {
r21 = r22;
break reducibleJoin335;
}
try {
getSnapshotBeforeUpdate = r8.getSnapshotBeforeUpdate;
} catch (error) {
break exceptionLanding382;
}
try {
value = getSnapshotBeforeUpdate == null;
} catch (error) {
break exceptionLanding382;
}
r21 = value;
break reducibleJoin335;
}
reducibleJoin340: while (true) {
if (r21) {
break reducibleJoin340;
}
try {
getSnapshotBeforeUpdate = r8.getSnapshotBeforeUpdate;
} catch (error) {
break exceptionLanding382;
}
try {
value = Reflect.apply(getSnapshotBeforeUpdate, r8, [props3, state]);
} catch (error) {
break exceptionLanding382;
}
try {
var env0_4 = value;
} catch (error) {
break exceptionLanding382;
}
break reducibleJoin340;
}
try {
} catch (error) {
break exceptionLanding382;
}
try {
isArrayBinding = isArray;
} catch (error) {
break exceptionLanding382;
}
try {
value = r2 == null;
} catch (error) {
break exceptionLanding382;
}
reducibleJoin356: while (true) {
reducibleJoin352: while (true) {
if (value) {
break reducibleJoin352;
}
try {
type = r2.type;
} catch (error) {
break exceptionLanding382;
}
try {
render_10789Binding = render_10789;
} catch (error) {
break exceptionLanding382;
}
try {
value = type !== render_10789Binding;
} catch (error) {
break exceptionLanding382;
}
if (value) {
break reducibleJoin352;
}
try {
key = r2.key;
} catch (error) {
break exceptionLanding382;
}
try {
value = key == null;
} catch (error) {
break exceptionLanding382;
}
if (value) {
try {
props = r2.props;
} catch (error) {
break exceptionLanding382;
}
try {
children = props.children;
} catch (error) {
break exceptionLanding382;
}
r17 = children;
break reducibleJoin356;
}
break reducibleJoin352;
}
r17 = r2;
break reducibleJoin356;
}
try {
value = isArrayBinding(r17);
} catch (error) {
break exceptionLanding382;
}
if (value) {
r22 = r17;
} else {
try {
object = [];
} catch (error) {
break exceptionLanding382;
}
try {
object[0] = r17;
} catch (error) {
break exceptionLanding382;
}
r22 = object;
}
try {
P$1(a0, r22, a1, a2, r16, a4, r7, a6, r6, r9, a9);
} catch (error) {
break exceptionLanding382;
}
try {
__e = a1.__e;
} catch (error) {
break exceptionLanding382;
}
try {
r8.base = __e;
} catch (error) {
break exceptionLanding382;
}
try {
__u = a1.__u;
} catch (error) {
break exceptionLanding382;
}
try {
value = __u & -161;
} catch (error) {
break exceptionLanding382;
}
try {
a1.__u = value;
} catch (error) {
break exceptionLanding382;
}
try {
__h = r8.__h;
} catch (error) {
break exceptionLanding382;
}
try {
length = __h.length;
} catch (error) {
break exceptionLanding382;
}
reducibleJoin379: while (true) {
if (length) {
try {
push = a6.push;
} catch (error) {
break exceptionLanding382;
}
try {
Reflect.apply(push, a6, [r8]);
} catch (error) {
break exceptionLanding382;
}
break reducibleJoin379;
}
break reducibleJoin379;
}
if (r11) {
try {
r8.__ = null;
} catch (error) {
break exceptionLanding382;
}
try {
r8.__E = null;
} catch (error) {
break exceptionLanding382;
}
break reduciblePort389;
}
break reduciblePort389;
}
if (r7 == null) {
__v = a1.__v;
__v2 = a2.__v;
if (__v === __v2) {
__k = a2.__k;
a1.__k = __k;
a1.__e = a2.__e;
break reduciblePort389;
}
}
z$1Binding = z$1;
__e = a2.__e;
a1.__e = z$1Binding(__e, a1, a2, value, a4, r7, a6, r9, a9);
break reduciblePort389;
}
a1.__v = null;
reducibleJoin388: while (true) {
reducibleJoin387: while (true) {
if (r9) {
a1.__e = r6;
__u = a1.__u;
value = 32;
if (r9) {
value = 160;
r9 = value;
break reducibleJoin387;
}
r9 = value;
break reducibleJoin387;
}
if (r7 != null) {
a1.__e = r6;
__u = a1.__u;
value = 32;
if (r9) {
value = 160;
r9 = value;
break reducibleJoin387;
}
r9 = value;
break reducibleJoin387;
}
__e = a2.__e;
a1.__e = __e;
__k = a2.__k;
a1.__k = __k;
break reducibleJoin388;
}
a1.__u = __u | r9;
indexOf = r7.indexOf;
r7[Reflect.apply(indexOf, r7, [r6])] = null;
break reducibleJoin388;
}
binding = env0_16;
__e = binding.__e;
Reflect.apply(__e, binding, [error, a1, a2]);
break reduciblePort389;
}
diffed = env0_16.diffed;
reducibleJoin391: while (true) {
if (diffed) {
break reducibleJoin390;
}
break reducibleJoin391;
}
return value5;
}
diffed(a1);
return value5;
function _fun10804(a0) { // fn#10804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:13886, offset: 0x00d98c22, size: 23 bytes, params: 2, frame: 2
if (a0) {
a0.__ = require;
}
}
function _fun10805() { // fn#10805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:14100, offset: 0x00d98c39, size: 36 bytes, params: 1, frame: 15
const __cBinding = __c;
__cBinding.componentDidUpdate(props, state, env0_4);
}
}
function j$1(a0, a1, a2) { // fn#10806, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:14994, offset: 0x00d98c5d, size: 130 bytes, params: 4, frame: 20
var r4;
var property;
var property2;
var binding;
const env0_0 = a0;
let length = a2.length;
let value = 0;
if (value < length) {
r4 = value;
reducibleLoop1: while (true) {
property = a2[r4];
value = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
property2 = a2[value];
value = typeof value === 'bigint' ? value + 1n : +value + 1;
N(property, property2, a2[value]);
value = typeof value === 'bigint' ? value + 1n : +value + 1;
length = a2.length;
if (value < length) {
r4 = value;
continue reducibleLoop1;
}
break reducibleLoop1;
}
}
let __c = env0_16.__c;
reducibleJoin4: while (true) {
if (__c) {
binding = env0_16;
__c = binding.__c;
Reflect.apply(__c, binding, [a1, env0_0]);
break reducibleJoin4;
}
break reducibleJoin4;
}
env0_0.some(_fun10807);
function _fun10807(a0) { // fn#10807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:15089, offset: 0x00d98cdf, size: 91 bytes, params: 2, frame: 14
var environment;
var __h;
var value;
var binding;
var closure;
var error;
var __e;
var __v;
let env0_0 = a0;
try {
__h = a0.__h;
value = environment;
env0_0 = __h;
a0.__h = [];
binding = env0_0;
closure = _fun10808;
binding.some(closure);
} catch (error) {
value = environment.__proto__;
binding = env1_16;
__e = binding.__e;
__v = a0.__v;
Reflect.apply(__e, binding, [error, __v]);
}
function _fun10808(a0) { // fn#10808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:15130, offset: 0x00d98d3a, size: 24 bytes, params: 2, frame: 11
a0.call(env0_0);
}
}
}
function z$1(a0, a1, a2, a3, a4, a5, a6, a7, a8) { // fn#10809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:15183, offset: 0x00d98d52, size: 1184 bytes, params: 10, frame: 60
var r11;
var r9;
var r6;
var r0;
var r4;
var r5;
var r3;
var r18;
var r12;
var r20;
var r16;
var r15;
var r21;
var r22;
var r27;
var r38;
var r37;
var r7;
var r19;
var r10;
var r1;
var value5;
var length;
var value7;
var property;
var nodeType;
var value8;
var localName;
var value9;
var value10;
var document;
var createElement;
var sliceBinding;
var call;
var childNodes;
var binding;
var object;
var attributes;
var name;
var properties;
var properties2;
var properties3;
var propertyName;
var propertyName2;
var value12;
var value13;
var properties4;
var properties5;
var propertyName3;
var value14;
var value15;
var value16;
var value17;
var __k;
var value18;
var value19;
var value20;
var value21;
var value22;
var __html;
var __html2;
var value23;
var innerHTML;
var value24;
var value25;
var value26;
var value27;
var value28;
var value29;
var value30;
var value31;
var value32;
var value33;
var value34;
var checked;
var value35;
var data;
let value = a0;
const value2 = a4;
const value3 = a5;
const value4 = a7;
let props = a2.props;
const props2 = a1.props;
const type = a1.type;
reducibleJoin2: while (true) {
if (type !== 'svg') {
r11 = value2;
break reducibleJoin2;
}
value5 = true;
r11 = value5;
break reducibleJoin2;
}
const value6 = null;
reducibleJoin12: while (true) {
if (value6 == value3) {
r0 = value;
break reducibleJoin12;
}
length = value3.length;
value7 = 0;
if (!(value7 < length)) {
r0 = value;
break reducibleJoin12;
}
r9 = value7;
reducibleLoop4: while (true) {
property = value3[r9];
if (property) {
reducibleJoin10: while (true) {
if ('setAttribute' in property !== !!type) {
break reducibleJoin10;
}
if (type) {
localName = property.localName;
value9 = localName === type;
r6 = value9;
} else {
nodeType = property.nodeType;
value8 = nodeType === 3;
r6 = value8;
}
if (r6) {
value3[r9] = value6;
r0 = property;
break reducibleJoin12;
}
break reducibleJoin10;
}
}
value10 = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1;
length = value3.length;
if (value10 < length) {
r9 = value10;
continue reducibleLoop4;
}
r0 = value;
break reducibleJoin12;
}
}
if (value6 != r0) {
r3 = value4;
r18 = value3;
} else {
if (value6 === type) {
return global.document.createTextNode(props2);
}
document = global.document;
if (r11) {
r5 = document.createElementNS('http://www.w3.org/2000/svg', type);
} else {
createElement = document.createElement;
r4 = props2.is && props2;
r5 = Reflect.apply(createElement, document, [type, r4]);
}
value = false;
r0 = r5;
r3 = value;
r18 = value6;
}
if (value6 === type) {
value = props === props2;
reducibleJoin98: while (true) {
if (value) {
r1 = value;
break reducibleJoin98;
}
reducibleJoin97: while (true) {
if (r3) {
data = r0.data;
value = data === props2;
r3 = value;
break reducibleJoin97;
}
break reducibleJoin97;
}
r1 = r3;
break reducibleJoin98;
}
reducibleJoin100: while (true) {
if (r1) {
break reducibleJoin100;
}
r0.data = props2;
break reducibleJoin100;
}
} else {
reducibleJoin22: while (true) {
if (r18) {
value = environment;
sliceBinding = slice;
call = sliceBinding.call;
childNodes = r0.childNodes;
value = Reflect.apply(call, sliceBinding, [childNodes]);
r18 = value;
break reducibleJoin22;
}
break reducibleJoin22;
}
props = a2.props;
reducibleJoin24: while (true) {
if (props) {
r5 = props;
break reducibleJoin24;
}
value = environment;
binding = env0_22;
r5 = binding;
break reducibleJoin24;
}
reducibleJoin28: while (true) {
if (r3) {
r4 = r5;
break reducibleJoin28;
}
if (value6 == r18) {
r4 = r5;
break reducibleJoin28;
}
object = {};
attributes = r0.attributes;
length = attributes.length;
value = 0;
if (!(value < length)) {
r4 = object;
break reducibleJoin28;
}
r6 = value;
reducibleLoop27: while (true) {
attributes = r0.attributes;
property = attributes[r6];
name = property.name;
value = property.value;
object[name] = value;
value = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
attributes = r0.attributes;
length = attributes.length;
if (value < length) {
r6 = value;
continue reducibleLoop27;
}
r4 = object;
break reducibleJoin28;
}
}
value = undefined;
properties = Object.keys(r4);
properties2 = 0;
properties3 = properties.length;
if (properties === value) {
r16 = value;
} else {
r6 = value;
r12 = properties2;
reducibleLoop29: while (true) {
propertyName = properties[r12];
propertyName2 = r12 + 1;
if (propertyName === value) {
r16 = r6;
break reducibleLoop29;
}
property = r4[propertyName];
if (propertyName == 'children') {
r12 = propertyName2;
continue reducibleLoop29;
}
reducibleJoin36: while (true) {
if (propertyName == 'dangerouslySetInnerHTML') {
r6 = property;
break reducibleJoin36;
}
value12 = propertyName === 'key';
reducibleJoin34: while (true) {
if (value12) {
r20 = value12;
break reducibleJoin34;
}
value13 = propertyName in props2;
r20 = value13;
break reducibleJoin34;
}
if (r20) {
break reducibleJoin36;
}
A$1(r0, propertyName, value6, property, r11);
break reducibleJoin36;
}
r12 = propertyName2;
continue reducibleLoop29;
}
}
properties = Object.keys(props2);
properties4 = 0;
properties5 = properties.length;
if (properties === value) {
r6 = value;
r7 = value;
r12 = value;
r19 = value;
} else {
r15 = value;
r20 = value;
r21 = value;
r22 = value;
r27 = properties4;
reducibleLoop38: while (true) {
propertyName = properties[r27];
propertyName3 = r27 + 1;
if (propertyName === value) {
r6 = r22;
r7 = r15;
r12 = r20;
r19 = r21;
break reducibleLoop38;
}
property = props2[propertyName];
if (propertyName == 'children') {
r21 = property;
r27 = propertyName3;
continue reducibleLoop38;
}
if (propertyName == 'dangerouslySetInnerHTML') {
r22 = property;
r27 = propertyName3;
continue reducibleLoop38;
}
if (propertyName == 'value') {
r20 = property;
r27 = propertyName3;
continue reducibleLoop38;
}
if (propertyName == 'checked') {
r15 = property;
r27 = propertyName3;
continue reducibleLoop38;
}
value14 = propertyName === 'key';
reducibleJoin47: while (true) {
if (value14) {
r37 = value14;
break reducibleJoin47;
}
reducibleJoin46: while (true) {
if (r3) {
value15 = typeof property !== 'function';
r38 = value15;
break reducibleJoin46;
}
r38 = r3;
break reducibleJoin46;
}
r37 = r38;
break reducibleJoin47;
}
reducibleJoin49: while (true) {
if (r37) {
break reducibleJoin49;
}
value16 = r4[propertyName] === property;
r37 = value16;
break reducibleJoin49;
}
if (r37) {
r27 = propertyName3;
continue reducibleLoop38;
}
A$1(r0, propertyName, property, r4[propertyName], r11);
r27 = propertyName3;
continue reducibleLoop38;
}
}
if (r6) {
reducibleJoin74: while (true) {
if (r3) {
r11 = r3;
break reducibleJoin74;
}
reducibleJoin73: while (true) {
if (r16) {
__html = r6.__html;
__html2 = r16.__html;
value23 = __html === __html2;
reducibleJoin72: while (true) {
if (value23) {
r16 = value23;
break reducibleJoin72;
}
__html = r6.__html;
innerHTML = r0.innerHTML;
value24 = __html === innerHTML;
r16 = value24;
break reducibleJoin72;
}
r15 = r16;
break reducibleJoin73;
}
r15 = r16;
break reducibleJoin73;
}
r11 = r15;
break reducibleJoin74;
}
reducibleJoin76: while (true) {
if (r11) {
break reducibleJoin76;
}
__html = r6.__html;
r0.innerHTML = __html;
break reducibleJoin76;
}
a1.__k = [];
} else {
reducibleJoin54: while (true) {
if (r16) {
r0.innerHTML = '';
break reducibleJoin54;
}
break reducibleJoin54;
}
reducibleJoin56: while (true) {
if (isArray(r19)) {
r22 = r19;
break reducibleJoin56;
}
r22 = [r19];
break reducibleJoin56;
}
reducibleJoin58: while (true) {
if (r11) {
value17 = type !== 'foreignObject';
r21 = value17;
break reducibleJoin58;
}
r21 = r11;
break reducibleJoin58;
}
if (r18) {
r20 = r18[0];
} else {
__k = a2.__k;
reducibleJoin61: while (true) {
if (__k) {
value18 = m$1(a2, 0);
r20 = value18;
break reducibleJoin61;
}
r20 = __k;
break reducibleJoin61;
}
}
P$1(r0, r22, a1, a2, a3, r21, r18, a6, r20, r3, a8);
reducibleJoin77: while (true) {
if (value6 == r18) {
break reducibleJoin77;
}
length = r18.length;
value19 = typeof length === 'bigint' ? length : +length;
value20 = typeof value19 === 'bigint' ? value19 - 1n : +value19 - 1;
if (!value19) {
break reducibleJoin77;
}
r15 = value20;
reducibleLoop65: while (true) {
reducibleJoin67: while (true) {
if (value6 == r18[r15]) {
break reducibleJoin67;
}
p$1(r18[r15]);
break reducibleJoin67;
}
value21 = typeof r15 === 'bigint' ? r15 : +r15;
value22 = typeof value21 === 'bigint' ? value21 - 1n : +value21 - 1;
if (value21) {
r15 = value22;
continue reducibleLoop65;
}
break reducibleJoin77;
}
}
}
reducibleJoin100: while (true) {
if (r3) {
break reducibleJoin100;
}
value25 = value !== r12;
reducibleJoin88: while (true) {
if (value25) {
value26 = r0.value;
value27 = r12 !== value26;
reducibleJoin83: while (true) {
if (value27) {
r10 = value27;
break reducibleJoin83;
}
value28 = type === 'progress';
reducibleJoin82: while (true) {
if (value28) {
value29 = !r12;
r11 = value29;
break reducibleJoin82;
}
r11 = value28;
break reducibleJoin82;
}
r10 = r11;
break reducibleJoin83;
}
reducibleJoin87: while (true) {
if (r10) {
break reducibleJoin87;
}
value30 = type === 'option';
reducibleJoin86: while (true) {
if (value30) {
value31 = r4.value;
value32 = r12 !== value31;
r11 = value32;
break reducibleJoin86;
}
r11 = value30;
break reducibleJoin86;
}
r10 = r11;
break reducibleJoin87;
}
r6 = r10;
break reducibleJoin88;
}
r6 = value25;
break reducibleJoin88;
}
reducibleJoin90: while (true) {
if (r6) {
value33 = r4.value;
A$1(r0, 'value', r12, value33, false);
break reducibleJoin90;
}
break reducibleJoin90;
}
value34 = value !== r7;
reducibleJoin92: while (true) {
if (value34) {
checked = r0.checked;
value35 = r7 !== checked;
r6 = value35;
break reducibleJoin92;
}
r6 = value34;
break reducibleJoin92;
}
if (r6) {
checked = r4.checked;
A$1(r0, 'checked', r7, checked, false);
break reducibleJoin100;
}
break reducibleJoin100;
}
}
return r0;
}
function N(a0, a1, a2) { // fn#10810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:16432, offset: 0x00d991f2, size: 77 bytes, params: 4, frame: 14
var value;
var error;
var binding;
try {
value = typeof a0 === 'function';
if (value) {
a0(a1);
} else {
a0.current = a1;
}
} catch (error) {
value = environment;
binding = env0_16;
binding.__e(error, a2);
}
}
function O(a0, a1, a2) { // fn#10811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:16513, offset: 0x00d9923f, size: 338 bytes, params: 4, frame: 24
var r4;
var r7;
var binding;
var error;
var length;
var value4;
var property;
var type;
var value5;
var value6;
const value = a2;
if (env0_16.unmount) {
binding = env0_16;
binding.unmount(a0);
}
const ref = a0.ref;
if (ref) {
r4 = ref.current && ref.current !== a0.__e;
if (!r4) {
N(ref, null, a1);
}
}
const __c = a0.__c;
if (__c != null) {
if (__c.componentWillUnmount) {
try {
__c.componentWillUnmount();
} catch (error) {
binding = env0_16;
binding.__e(error, a1);
}
}
__c.__P = null;
__c.base = null;
a0.__c = undefined;
}
const __k = a0.__k;
if (__k) {
length = __k.length;
value4 = 0;
if (value4 < length) {
r7 = value4;
while (true) {
if (__k[r7]) {
property = __k[r7];
if (value) {
r4 = value;
continue;
}
type = a0.type;
value5 = typeof type !== 'function';
r4 = value5;
O(property, a1, r4);
}
value6 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
length = __k.length;
if (value6 < length) {
r7 = value6;
continue;
}
break;
}
}
}
if (!(value || a0.__e == null)) {
p$1(a0.__e);
}
a0.__d = undefined;
a0.__e = undefined;
a0.__ = undefined;
}
function h(a0, a1) { // fn#10813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:17831, offset: 0x00d993a6, size: 159 bytes, params: 3, frame: 18
var r0;
var binding;
var object;
if (env0_33.__h) {
binding = env0_33;
binding.__h(env0_27, a0, env0_30 || a1);
}
const __H = env0_27.__H;
if (__H) {
r0 = __H;
} else {
binding = env0_27;
object = {__: [], __h: []};
binding.__H = object;
r0 = object;
}
let __ = r0.__;
if (a0 >= __.length) {
__ = r0.__;
__.push({__V: env0_32});
}
return r0.__[a0];
}
function useReducer_10815(a0, a1, a2) { // fn#10815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:18001, offset: 0x00d99464, size: 222 bytes, params: 4, frame: 17
var shouldComponentUpdate2;
var shouldComponentUpdate;
const hBinding = h;
const binding = env0_26;
const value2 = typeof binding === 'bigint' ? binding : +binding;
env0_26 = typeof value2 === 'bigint' ? value2 + 1n : +value2 + 1;
const value3 = hBinding(value2, 2);
value3.t = a0;
if (!value3.__c) {
value3.__ = [a2 ? a2(a1) : D(undefined, a1), _fun10816];
value3.__c = env0_27;
if (!env0_27.u) {
shouldComponentUpdate2 = shouldComponentUpdate;
env0_27.u = true;
shouldComponentUpdate = env0_27.shouldComponentUpdate;
env0_27.componentWillUpdate = env0_27.componentWillUpdate;
env0_27.shouldComponentUpdate = shouldComponentUpdate2;
}
}
return value3.__N || value3.__;
function _fun10816(a0) { // fn#10816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:18077, offset: 0x00d99542, size: 126 bytes, params: 2, frame: 14
const __N = env0_0.__N;
let binding = env0_0;
const r1 = __N ? binding.__N[0] : binding.__[0];
const value2 = env0_0.t(r1, a0);
if (r1 !== value2) {
binding = env0_0;
binding.__N = [value2, binding.__[1]];
binding.__c.setState({});
}
}
function shouldComponentUpdate(a0, a1, a2) { // fn#10817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:18200, owner: useReducer_10815.shouldComponentUpdate, offset: 0x00d995c0, size: 234 bytes, params: 4, frame: 20
var value2;
var shouldComponentUpdateBinding;
if (env0_0.__c.__H) {
value2 = env0_0.__c.__H.__.filter(function(a0) {
return !!a0.__c;
});
if (value2.every(_fun10819)) {
shouldComponentUpdateBinding = shouldComponentUpdate;
return shouldComponentUpdateBinding ? shouldComponentUpdate.call(this, a0, a1,
a2) : !shouldComponentUpdateBinding;
}
var env0_0 = false;
value2.forEach(_fun10820);
return !(!env0_0 && env0_0.__c.props === a0) && (shouldComponentUpdate ? shouldComponentUpdate.call(this, a0,
a1,
a2) : !shouldComponentUpdate);
}
return true;
function _fun10820(a0) { // fn#10820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:18393, offset: 0x00d996c9, size: 71 bytes, params: 2, frame: 4
var __;
var property;
if (a0.__N) {
__ = a0.__;
property = __[0];
a0.__ = a0.__N;
a0.__N = undefined;
__ = a0.__;
if (property === __[0]) {
}
}
}
}
function componentWillUpdate(a0, a1, a2) { // fn#10821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:18614, owner: useReducer_10815.componentWillUpdate, offset: 0x00d99710, size: 90 bytes, params: 4, frame: 19
if (this.__e) {
shouldComponentUpdate_2(a0, a1, a2);
}
if (componentWillUpdate) {
componentWillUpdate.call(this, a0, a1, a2);
}
}
}
function useLayoutEffect_10822(a0, a1) { // fn#10822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:18742, offset: 0x00d9976a, size: 107 bytes, params: 3, frame: 16
const hBinding = h;
const binding = env0_26;
const value2 = typeof binding === 'bigint' ? binding : +binding;
env0_26 = typeof value2 === 'bigint' ? value2 + 1n : +value2 + 1;
const value3 = hBinding(value2, 4);
if (!env0_33.__s && C_10831(value3.__H, a1)) {
value3.__ = a0;
value3.i = a1;
env0_27.__h.push(value3);
}
}
function useMemo_10823(a0, a1) { // fn#10823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:18824, offset: 0x00d997d5, size: 95 bytes, params: 3, frame: 16
var r0;
const hBinding = h;
const binding = env0_26;
const value2 = typeof binding === 'bigint' ? binding : +binding;
env0_26 = typeof value2 === 'bigint' ? value2 + 1n : +value2 + 1;
const value3 = hBinding(value2, 7);
if (C_10831(value3.__H, a1)) {
value3.__V = a0();
value3.i = a1;
value3.__h = a0;
r0 = value3.__V;
} else {
r0 = value3.__;
}
return r0;
}
function useCallback_10824(a0, a1) { // fn#10824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:18910, offset: 0x00d99834, size: 41 bytes, params: 3, frame: 13
const env0_0 = a0;
return useMemo_10823(_fun10825, a1);
function _fun10825() { // fn#10825, offset: 0x00c36f09, size: 9 bytes, params: 1, frame: 1
return env0_0;
}
}
function j() { // fn#10826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:18966, offset: 0x00d9985d, size: 198 bytes, params: 1, frame: 16
var r3;
var __P;
var __H;
var __h;
var error;
var __e;
var __v;
var value3;
let binding = env0_31;
const value2 = binding.shift();
if (value2) {
r3 = value2;
while (true) {
__P = r3.__P;
if (__P) {
__H = r3.__H;
if (!__H) {
break;
}
try {
__H = r3.__H;
__h = __H.__h;
__h.forEach(z);
__H = r3.__H;
__h = __H.__h;
__h.forEach(B_10830);
__H = r3.__H;
__H.__h = [];
} catch (error) {
__H = r3.__H;
__H.__h = [];
binding = env0_33;
__e = binding.__e;
__v = r3.__v;
Reflect.apply(__e, binding, [error, __v]);
}
}
binding = env0_31;
value3 = binding.shift();
if (value3) {
r3 = value3;
continue;
}
break;
}
}
}
function w(a0) { // fn#10827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:20110, offset: 0x00d99923, size: 64 bytes, params: 2, frame: 15
const env0_0 = a0;
const r2 = r;
const env0_2 = global.setTimeout(r2, 100);
if (result) {
var env0_1 = global.requestAnimationFrame(r2);
}
function r() { // fn#10828, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:20132, owner: w.r, offset: 0x00d99963, size: 64 bytes, params: 1, frame: 13
global.clearTimeout(env0_2);
if (result) {
global.cancelAnimationFrame(env0_1);
}
global.setTimeout(env0_0);
}
}
function z(a0) { // fn#10829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:20257, offset: 0x00d999a3, size: 47 bytes, params: 2, frame: 13
const __c = a0.__c;
if (typeof __c === 'function') {
a0.__c = undefined;
__c();
}
}
function B_10830(a0) { // fn#10830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:20334, offset: 0x00d999d2, size: 34 bytes, params: 2, frame: 11
a0.__c = a0.__();
}
function C_10831(a0, a1) { // fn#10831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:20375, offset: 0x00d999f4, size: 53 bytes, params: 3, frame: 13
const env0_0 = a0;
let r0 = a0 ? a0.length !== a1.length : !a0;
r0 = !r0 ? a1.some(_fun10832) : r0;
return r0;
function _fun10832(a0, a1) { // fn#10832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:20430, offset: 0x00d99a29, size: 23 bytes, params: 3, frame: 2
return a0 !== env0_0[a1];
}
}
function DialogHeader({options}) { // fn#10834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:21590, offset: 0x00d99a40, size: 148 bytes, params: 2, frame: 20
const value2 = useMemo_10823(_fun10835, []);
const y$1Binding = y$1;
return y$1Binding('h2', {class: 'dialog__header'}, y$1Binding('span', {class: 'dialog__title'}, options.formTitle),
options.showBranding ? y$1('a', {'class': 'brand-link', 'target': '_blank',
'href': 'https://sentry.io/welcome/', 'title': 'Powered by Sentry', 'rel': 'noopener noreferrer',
dangerouslySetInnerHTML: value2}) : null);
function _fun10835() { // fn#10835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:21636, offset: 0x00d99ad4, size: 100 bytes, params: 1, frame: 15
var environment;
const closure = function(a0) {
return document.createElementNS('http://www.w3.org/2000/svg', a0);
};
let value = environment.__proto__;
const setAttributesNSBinding = setAttributesNS;
value = closure('svg');
setAttributesNSBinding(value, {'width': '32', 'height': '30', 'viewBox': '0 0 72 66', 'fill': 'inherit'});
const value2 = closure('path');
setAttributesNSBinding(value2, {'transform': 'translate(11, 11)',
'd': 'M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z'});
value.appendChild(value2);
return {__html: value.outerHTML};
}
}
function Form({options, defaultEmail, defaultName, onFormClose, onSubmit, onSubmitSuccess, onSubmitError, showEmail, showName, screenshotInput}) { // fn#10838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:22821, offset: 0x00d99b81, size: 1169 bytes, params: 2, frame: 53
const env0_4 = options.tags;
const addScreenshotButtonLabel = options.addScreenshotButtonLabel;
const removeScreenshotButtonLabel = options.removeScreenshotButtonLabel;
const cancelButtonLabel = options.cancelButtonLabel;
const emailLabel = options.emailLabel;
const emailPlaceholder = options.emailPlaceholder;
const isEmailRequired = options.isEmailRequired;
const isEmailRequired2 = isEmailRequired;
const isNameRequired = options.isNameRequired;
const messageLabel = options.messageLabel;
const messagePlaceholder = options.messagePlaceholder;
const nameLabel = options.nameLabel;
const namePlaceholder = options.namePlaceholder;
const submitButtonLabel = options.submitButtonLabel;
const isRequiredLabel = options.isRequiredLabel;
const isEmailRequired22 = isEmailRequired2(useState_10814(false), 2);
const property = isEmailRequired22[0];
const env0_10 = isEmailRequired22[1];
const isEmailRequired23 = isEmailRequired2(useState_10814(null), 2);
const property2 = isEmailRequired23[0];
const env0_11 = isEmailRequired23[1];
const isEmailRequired24 = isEmailRequired2(useState_10814(false), 2);
const property3 = isEmailRequired24[0];
const env0_13 = isEmailRequired24[1];
const input = screenshotInput?.input;
const isEmailRequired25 = isEmailRequired2(useState_10814(null), 2);
const property4 = isEmailRequired25[0];
const env0_14 = isEmailRequired25[1];
const value12 = useCallback_10824(_fun10839, []);
const env0_15 = useCallback_10824(_fun10840, [emailLabel, isEmailRequired, isNameRequired, messageLabel, nameLabel]);
const value14 = useCallback_10824(_fun10841(), [screenshotInput && property3, onSubmitSuccess, onSubmitError]);
const y$1Binding = y$1;
object = {class: 'form', onSubmit: value14};
const r1 = input && property3 ? y$1(input, {onError: value12}) : null;
const y$1Binding3 = y$1;
const object3 = {'class': 'form__right', 'data-sentry-feedback': true};
object3.disabled = property;
const r17 = property2 ? y$1('div', {class: 'form__error-container'}, property2) : null;
const y$1Binding5 = y$1;
const r13 = showName ? y$1Binding5('label', {'for': 'name', 'class': 'form__label'}, y$1Binding5(LabelText,
{label: nameLabel, isRequiredLabel: isRequiredLabel, isRequired: isNameRequired}), y$1Binding5('input',
{'class': 'form__input', 'defaultValue': null, 'id': 'name', 'name': 'name', 'placeholder': null,
'required': null, 'type': 'text', defaultValue: defaultName, placeholder: namePlaceholder,
required: isNameRequired})) : y$1Binding5('input', {'aria-hidden': true, 'value': null, 'name': 'name',
'type': 'hidden', value: defaultName});
const y$1Binding6 = y$1;
const r11 = showEmail ? y$1Binding6('label', {'for': 'email', 'class': 'form__label'}, y$1Binding6(LabelText,
{label: emailLabel, isRequiredLabel: isRequiredLabel, isRequired: isEmailRequired}), y$1Binding6('input',
{'class': 'form__input', 'defaultValue': null, 'id': 'email', 'name': 'email', 'placeholder': null,
'required': null, 'type': 'email', defaultValue: defaultEmail, placeholder: emailPlaceholder,
required: isEmailRequired})) : y$1Binding6('input', {'aria-hidden': true, 'value': null, 'name': 'email',
'type': 'hidden', value: defaultEmail});
const y$1Binding7 = y$1;
const value31 = y$1Binding3('div', {class: 'form__top'}, r17, r13, r11, y$1Binding7('label', {'for': 'message',
'class': 'form__label'}, y$1Binding7(LabelText, {label: messageLabel, isRequiredLabel: isRequiredLabel,
isRequired: true}), y$1Binding7('textarea', {'autoFocus': true, 'class': 'form__input form__input--textarea',
'id': 'message', 'name': 'message', 'placeholder': null, 'required': true, 'rows': 5,
placeholder: messagePlaceholder})), input ? y$1('label', {'for': 'screenshot', 'class': 'form__label'},
y$1('button', {'class': 'btn btn--default', 'disabled': null, 'type': 'button', disabled: property,
onClick: onClick_10845}, property3 ? removeScreenshotButtonLabel : addScreenshotButtonLabel),
property4 ? y$1('div', {class: 'form__error-container'}, property4.message) : null) : null);
const y$1Binding10 = y$1;
let value = y$1Binding10('button', {'class': 'btn btn--primary', 'disabled': null, 'type': 'submit',
disabled: property}, submitButtonLabel);
value = y$1Binding10('div', {class: 'btn-group'}, value, y$1Binding10('button', {'class': 'btn btn--default',
'disabled': null, 'type': 'button', disabled: property, onClick: onFormClose}, cancelButtonLabel));
return y$1Binding('form', object, r1, y$1Binding3('fieldset', object3, value31, value));
function _fun10839(a0) { // fn#10839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:23474, offset: 0x00d9a012, size: 30 bytes, params: 2, frame: 12
env0_14(a0);
env0_13(false);
}
function _fun10840(a0) { // fn#10840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:23511, offset: 0x00d9a030, size: 242 bytes, params: 2, frame: 14
var binding;
const object = {};
var value;
object.emailLabel = emailLabel;
object.isEmailRequired = isEmailRequired;
object.isNameRequired = isNameRequired;
object.messageLabel = messageLabel;
object.nameLabel = nameLabel;
const items2 = [];
if (object.isNameRequired && !a0.name) {
items2.push(object.nameLabel);
}
if (object.isEmailRequired && !a0.email) {
items2.push(object.emailLabel);
}
if (!a0.message) {
items2.push(object.messageLabel);
}
if (items2.length > 0) {
binding = env0_11;
value = items2.join(', ');
value = 'Please enter in the following required fields: ' + value;
binding(value);
} else {
env0_11(null);
}
return items2.length === 0;
}
function _fun10841() { // fn#10841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:23919, offset: 0x00d9a122, size: 32 bytes, params: 1, frame: 12
const env0_0 = env1_4(_fun10843);
return _fun10844;
function* _fun10843(a0) { // fn#10843, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:23939, offset: 0x00d9a14b, size: 492 bytes, params: 2, frame: 21
var r1;
var r6;
var value;
var value2;
var value3;
var preventDefault;
var target;
var HTMLFormElement;
var value4;
var FormData;
var prototype;
var formData;
var value6;
var binding;
var value7;
var value8;
var value9;
var value10;
var object;
var value11;
var value12;
var value13;
var value14;
var items2;
var sliceBinding;
var value15;
var object2;
var name;
var email;
var message;
var object3;
var attachments;
var moduleValue;
var value16;
var value17;
var error;
var binding2;
var property;
var value18;
var debug;
var error2;
var sendFeedbackBinding;
exceptionLanding94: while (true) {
value = undefined;
value2 = false;
if (value2) {
return value;
}
value = undefined;
value3 = environment.__proto__.__proto__;
env2_10(true);
try {
preventDefault = a0.preventDefault;
} catch (error) {
break exceptionLanding94;
}
try {
Reflect.apply(preventDefault, a0, []);
} catch (error) {
break exceptionLanding94;
}
try {
target = a0.target;
} catch (error) {
break exceptionLanding94;
}
try {
HTMLFormElement = global.HTMLFormElement;
} catch (error) {
break exceptionLanding94;
}
try {
value4 = target instanceof HTMLFormElement;
} catch (error) {
break exceptionLanding94;
}
if (value4) {
try {
FormData = global.FormData;
} catch (error) {
break exceptionLanding94;
}
try {
target = a0.target;
} catch (error) {
break exceptionLanding94;
}
try {
prototype = FormData.prototype;
} catch (error) {
break exceptionLanding94;
}
try {
} catch (error) {
break exceptionLanding94;
}
try {
formData = new FormData();
} catch (error) {
break exceptionLanding94;
}
try {
value6 = formData instanceof Object ? formData : undefined;
} catch (error) {
break exceptionLanding94;
}
try {
binding = env2_3;
} catch (error) {
break exceptionLanding94;
}
reducibleJoin25: while (true) {
if (binding) {
try {
binding = env2_12;
} catch (error) {
break exceptionLanding94;
}
if (binding) {
try {
binding = env2_3;
} catch (error) {
break exceptionLanding94;
}
try {
value7 = binding.value;
} catch (error) {
break exceptionLanding94;
}
try {
value8 = Reflect.apply(value7, binding, []);
} catch (error) {
break exceptionLanding94;
}
r1 = value8;
break reducibleJoin25;
}
r1 = value;
break reducibleJoin25;
}
r1 = value;
break reducibleJoin25;
}
yield r1;
try {
value9 = undefined;
value10 = false;
} catch (error) {
break exceptionLanding94;
}
if (value10) {
env2_10(false);
return value9;
}
try {
object = {};
} catch (error) {
break exceptionLanding94;
}
value11 = environment.__proto__.__proto__.__proto__;
try {
binding = env3_83;
} catch (error) {
break exceptionLanding94;
}
try {
value12 = binding(value6, 'name');
} catch (error) {
break exceptionLanding94;
}
try {
object.name = value12;
} catch (error) {
break exceptionLanding94;
}
try {
value13 = binding(value6, 'email');
} catch (error) {
break exceptionLanding94;
}
try {
object.email = value13;
} catch (error) {
break exceptionLanding94;
}
try {
value14 = binding(value6, 'message');
} catch (error) {
break exceptionLanding94;
}
try {
object.message = value14;
} catch (error) {
break exceptionLanding94;
}
reducibleJoin46: while (true) {
if (value9) {
try {
items2 = [];
} catch (error) {
break exceptionLanding94;
}
try {
items2[0] = value9;
} catch (error) {
break exceptionLanding94;
}
r6 = items2;
break reducibleJoin46;
}
r6 = value;
break reducibleJoin46;
}
try {
object.attachments = r6;
} catch (error) {
break exceptionLanding94;
}
try {
sliceBinding = slice;
} catch (error) {
break exceptionLanding94;
}
try {
value15 = sliceBinding(object);
} catch (error) {
break exceptionLanding94;
}
if (value15) {
reducibleJoin53: while (true) {
reduciblePort92: while (true) {
exceptionLanding76: while (true) {
try {
try {
} catch (error) {
break exceptionLanding76;
}
} catch (error) {
break exceptionLanding94;
}
break reducibleJoin53;
}
try {
binding = env3_12;
} catch (error) {
break exceptionLanding94;
}
reducibleJoin88: while (true) {
if (binding) {
try {
binding = env3_0;
} catch (error) {
break exceptionLanding94;
}
try {
binding2 = env3_1;
} catch (error) {
break exceptionLanding94;
}
try {
property = binding2[5];
} catch (error) {
break exceptionLanding94;
}
try {
value18 = binding(property);
} catch (error) {
break exceptionLanding94;
}
try {
debug = value18.debug;
} catch (error) {
break exceptionLanding94;
}
try {
error2 = debug.error;
} catch (error) {
break exceptionLanding94;
}
try {
Reflect.apply(error2, debug, [error]);
} catch (error) {
break exceptionLanding94;
}
break reducibleJoin88;
}
break reducibleJoin88;
}
try {
sendFeedbackBinding = sendFeedback;
} catch (error) {
break exceptionLanding94;
}
try {
sendFeedbackBinding(error);
} catch (error) {
break exceptionLanding94;
}
try {
binding = env2_2;
} catch (error) {
break exceptionLanding94;
}
try {
binding(error);
} catch (error) {
break exceptionLanding94;
}
break reduciblePort92;
}
env2_10(false);
return value;
}
try {
try {
object2 = {};
} catch (error) {
break exceptionLanding76;
}
} catch (error) {
break exceptionLanding94;
}
try {
try {
name = object.name;
} catch (error) {
break exceptionLanding76;
}
} catch (error) {
break exceptionLanding94;
}
try {
try {
object2.name = name;
} catch (error) {
break exceptionLanding76;
}
} catch (error) {
break exceptionLanding94;
}
try {
try {
email = object.email;
} catch (error) {
break exceptionLanding76;
}
} catch (error) {
break exceptionLanding94;
}
try {
try {
object2.email = email;
} catch (error) {
break exceptionLanding76;
}
} catch (error) {
break exceptionLanding94;
}
try {
try {
message = object.message;
} catch (error) {
break exceptionLanding76;
}
} catch (error) {
break exceptionLanding94;
}
try {
try {
object2.message = message;
} catch (error) {
break exceptionLanding76;
}
} catch (error) {
break exceptionLanding94;
}
try {
try {
object2.source = 'widget';
} catch (error) {
break exceptionLanding76;
}
} catch (error) {
break exceptionLanding94;
}
try {
try {
binding = env2_4;
} catch (error) {
break exceptionLanding76;
}
} catch (error) {
break exceptionLanding94;
}
try {
try {
object2.tags = binding;
} catch (error) {
break exceptionLanding76;
}
} catch (error) {
break exceptionLanding94;
}
try {
try {
object3 = {};
} catch (error) {
break exceptionLanding76;
}
} catch (error) {
break exceptionLanding94;
}
try {
try {
attachments = object.attachments;
} catch (error) {
break exceptionLanding76;
}
} catch (error) {
break exceptionLanding94;
}
try {
try {
object3.attachments = attachments;
} catch (error) {
break exceptionLanding76;
}
} catch (error) {
break exceptionLanding94;
}
try {
try {
moduleValue = require(object2, object3);
} catch (error) {
break exceptionLanding76;
}
} catch (error) {
break exceptionLanding94;
}
yield moduleValue;
try {
try {
value16 = undefined;
value17 = false;
} catch (error) {
break exceptionLanding76;
}
} catch (error) {
break exceptionLanding94;
}
if (value17) {
env2_10(false);
return value16;
}
try {
try {
} catch (error) {
break exceptionLanding76;
}
} catch (error) {
break exceptionLanding94;
}
try {
try {
dependencyMap(object, value16);
} catch (error) {
break exceptionLanding76;
}
} catch (error) {
break exceptionLanding94;
}
env2_10(false);
return value;
}
env2_10(false);
return value;
}
env2_10(false);
return value;
}
env2_10(false);
throw error;
}
function _fun10844(a0) { // fn#10844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:24448, offset: 0x00d71197, size: 29 bytes, params: 2, frame: 13
return env0_0.apply(this, arguments);
}
}
function FormOnClick() { // fn#10845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:25678, owner: Form.onClick, offset: 0x00d9a337, size: 34 bytes, params: 1, frame: 12
env0_14(null);
env0_13(function(a0) {
return !a0;
});
}
}
function LabelText({label, isRequired, isRequiredLabel}) { // fn#10847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:25995, offset: 0x00d9a361, size: 94 bytes, params: 2, frame: 20
return y$1('span', {class: 'form__label__text'}, label, isRequired && y$1('span',
{class: 'form__label__text--required'}, isRequiredLabel));
}
function SuccessIcon() { // fn#10848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:26170, offset: 0x00d9a3bf, size: 311 bytes, params: 1, frame: 21
const closure = function(a0) {
return require(dependencyMap[5]).GLOBAL_OBJ.document.createElementNS('http://www.w3.org/2000/svg', a0);
};
const setAttributesNSBinding = setAttributesNS;
const value2 = closure('svg');
setAttributesNSBinding(value2, {'width': '16', 'height': '17', 'viewBox': '0 0 16 17', 'fill': 'inherit'});
const value3 = closure('g');
setAttributesNSBinding(value3, {clipPath: 'url(#clip0_57_156)'});
const value4 = closure('path');
let value = Module00077Module({}, 'fill-rule', 'evenodd');
value = Module00077Module(value, 'clip-rule', 'evenodd');
setAttributesNSBinding(value4, Module00077Module(value, 'd',
'M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z'));
value = closure('path');
setAttributesNSBinding(value,
{d: 'M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z'});
value2.appendChild(value3).append(value, value4);
value = closure('defs');
const value6 = closure('clipPath');
setAttributesNSBinding(value6, {id: 'clip0_57_156'});
const value7 = closure('rect');
setAttributesNSBinding(value7, {'width': '16', 'height': '16', 'fill': 'white', 'transform': 'translate(0 0.5)'});
value6.appendChild(value7);
value.appendChild(value6);
value = value2.appendChild(value);
value = value.appendChild(value6);
value.appendChild(value7);
return value2;
}
function Dialog(a0) { // fn#10850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:28508, offset: 0x00d9a532, size: 423 bytes, params: 2, frame: 30
var r0;
var value8;
var Object;
var successMessageText;
const open = a0.open;
const onFormSubmitted = a0.onFormSubmitted;
var value;
const value2 = env0_3(a0, env0_7);
const options = value2.options;
const value3 = useMemo_10823(function() {
var object = {};
object.__html = SuccessIcon().outerHTML;
return object;
}, []);
const value5 = Module00057Module(useState_10814(null), 2);
const property = value5[0];
var env0_3 = value5[1];
let object = [property];
const value6 = useCallback_10824(_fun10852, object);
const value7 = useCallback_10824(_fun10853, [onFormSubmitted]);
const y$1Binding = y$1;
const render_10789Binding = render_10789;
const y$1Binding2 = y$1;
if (property) {
object = {class: 'success__position', onClick: value6};
successMessageText = options.successMessageText;
value = y$1Binding2('span', {class: 'success__icon', dangerouslySetInnerHTML: value3});
value = y$1Binding2('div', object, y$1Binding2('div', {class: 'success__content'}, successMessageText, value));
r0 = value;
} else {
object = {class: 'dialog'};
object.onClick = options.onFormClose;
object.open = open;
value8 = y$1Binding2(DialogHeader, {options: options});
Object = global.Object;
value = y$1Binding2(Form, Object.assign({}, value2, {onSubmitSuccess: value7}));
value = y$1Binding2('dialog', object, y$1Binding2('div', {class: 'dialog__position'}, y$1Binding2('div',
{class: 'dialog__content', onClick: function(a0) {
a0.stopPropagation();
}}, value8, value)));
r0 = value;
}
return y$1Binding(render_10789Binding, null, r0);
function _fun10852() { // fn#10852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:28680, offset: 0x00d9a6f5, size: 52 bytes, params: 1, frame: 12
if (env0_2) {
global.clearTimeout(env0_2);
env0_3(null);
}
onFormSubmitted();
}
function _fun10853(a0, a1) { // fn#10853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:28736, offset: 0x00d9a729, size: 65 bytes, params: 3, frame: 14
env0_1.onSubmitSuccess(a0, a1);
env0_3(global.setTimeout(_fun10854, 5000));
function _fun10854() { // fn#10854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:28787, offset: 0x00d9a76a, size: 26 bytes, params: 1, frame: 11
onFormSubmitted();
env1_3(null);
}
}
}
function useTakeScreenshotFactory({hooks}) { // fn#10856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:29282, offset: 0x00d9a795, size: 22 bytes, params: 2, frame: 2
return function({onBeforeScreenshot, onScreenshot, onAfterScreenshot, onError}) {
var env0_4 = _fun10858();
hooks.useEffect(_fun10862, []);
};
function useTakeScreenshot({onBeforeScreenshot, onScreenshot, onAfterScreenshot, onError}) { // fn#10857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:29340, owner: useTakeScreenshotFactory.useTakeScreenshot, offset: 0x00d9a7ab, size: 89 bytes, params: 2, frame: 14
const env0_4 = useDpi();
hooks.useEffect(function() {
_fun10863()().catch(onError);
}, []);
function useDpi() { // fn#10858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:29450, owner: useTakeScreenshotFactory.useTakeScreenshot.useDpi, offset: 0x00d9a804, size: 127 bytes, params: 1, frame: 19
const hooksBinding = hooks;
const useState = hooksBinding.useState;
const GLOBAL_OBJ = (Module00826Module).GLOBAL_OBJ;
const devicePixelRatio = GLOBAL_OBJ.devicePixelRatio;
const value3 = 1;
const value5 = env2_6(Reflect.apply(useState, hooksBinding, [devicePixelRatio ?? value3]), 2);
const property = value5[0];
const env0_0 = value5[value3];
hooks.useEffect(_fun10859, []);
return property;
function _fun10859() { // fn#10859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:29583, offset: 0x00d9a883, size: 117 bytes, params: 1, frame: 17
var environment;
const onChange_108602 = onChange_10860;
const matchMedia = global.matchMedia;
const value = environment.__proto__.__proto__.__proto__;
const GLOBAL_OBJ = (Module00826Module).GLOBAL_OBJ;
matchMedia('(resolution: ' + GLOBAL_OBJ.devicePixelRatio + 'dppx)').addEventListener('change', onChange_108602);
return _fun10861;
function onChange_10860() { // fn#10860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:29600, offset: 0x00d9a8f8, size: 51 bytes, params: 1, frame: 12
const binding = env1_0;
const GLOBAL_OBJ = (Module00826Module).GLOBAL_OBJ;
binding(GLOBAL_OBJ.devicePixelRatio);
}
function _fun10861() { // fn#10861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:29775, offset: 0x00d9a92b, size: 31 bytes, params: 1, frame: 13
const binding = env0_1;
binding.removeEventListener('change', onChange_10860);
}
}
}
function _fun10862() { // fn#10862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:29845, offset: 0x00d9a94a, size: 37 bytes, params: 1, frame: 12
_fun10863()().catch(onError);
function _fun10863() { // fn#10863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:29862, offset: 0x00d9a96f, size: 32 bytes, params: 1, frame: 12
const env0_0 = env3_4(_fun10865);
return takeScreenshot;
function* _fun10865() { // fn#10865, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:29882, offset: 0x00d9a998, size: 256 bytes, params: 1, frame: 22
var environment;
if (true) {
var env0_1;
value = environment.__proto__.__proto__.__proto__;
hooks();
var mediaDevices = env5_9.mediaDevices;
var getDisplayMedia = mediaDevices.getDisplayMedia;
var object2 = {};
var binding = env5_0;
var binding2 = env5_1;
var GLOBAL_OBJ = binding(binding2[5]).GLOBAL_OBJ;
var innerWidth = GLOBAL_OBJ.innerWidth;
var binding3 = env3_4;
object2.width = innerWidth * binding3;
GLOBAL_OBJ = binding(binding2[5]).GLOBAL_OBJ;
object2.height = GLOBAL_OBJ.innerHeight * binding3;
yield Reflect.apply(getDisplayMedia, mediaDevices, [{'video': null, 'audio': false,
'monitorTypeSurfaces': 'exclude', 'preferCurrentTab': true, 'selfBrowserSurface': 'include',
'surfaceSwitching': 'exclude', video: object2}]);
if (false) {
return undefined;
}
env0_1 = env5_8.createElement('video');
var Promise = global.Promise;
var value6 = Object.create(Promise.prototype, {constructor: {value: Promise}});
var promise = new Promise(_fun10866);
yield promise instanceof Object ? promise : value6;
if (false) {
return undefined;
}
env3_2();
}
function _fun10866(a0, a1) { // fn#10866, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:30195, offset: 0x00d9aa98, size: 75 bytes, params: 3, frame: 12
env0_1.srcObject = a0;
env0_1.onloadedmetadata = onloadedmetadata;
env0_1.play().catch(a1);
function onloadedmetadata() { // fn#10867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:30242, offset: 0x00d9aae3, size: 72 bytes, params: 1, frame: 14
var environment;
const value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
env5_1(env1_1, env5_4);
env1_0.getTracks().forEach(function(a0) {
return a0.stop();
});
env0_0();
}
}
}
function takeScreenshot() { // fn#10869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:30354, offset: 0x00d71197, size: 29 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
}
}
}
function paintImage(a0, a1) { // fn#10871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:30509, offset: 0x00d9ab67, size: 44 bytes, params: 3, frame: 15
const env0_0 = a1;
with2dContext(a0, {alpha: true}, function(a0, a1) {
a1.drawImage(require, 0, 0, require.width, require.height, 0, 0, a0.width, a0.height);
});
function _fun10872({width, height}, a1) { // fn#10872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:30562, offset: 0x00d9ab93, size: 61 bytes, params: 3, frame: 24
const drawImage = a1.drawImage;
const width = require.width;
const height = require.height;
Reflect.apply(drawImage, a1, [require, 0, 0, width, height, 0, 0, width, height]);
}
}
function paintForeground(a0, a1, a2) { // fn#10873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:30636, offset: 0x00d9abd0, size: 51 bytes, params: 4, frame: 15
let env0_0 = a1;
const env0_1 = a2;
with2dContext(a0, {alpha: true}, function(a0, a1) {
var env0_0 = a1;
if (importDefault.length) {
a1.fillStyle = 'rgba(0, 0, 0, 0.25)';
a1.fillRect(0, 0, a0.width, a0.height);
}
importDefault.forEach(_fun10875);
});
function _fun10874(a0, a1) { // fn#10874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:30696, offset: 0x00d9ac03, size: 89 bytes, params: 3, frame: 18
const env0_0 = a1;
if (importDefault.length) {
a1.fillStyle = 'rgba(0, 0, 0, 0.25)';
a1.fillRect(0, 0, a0.width, a0.height);
}
importDefault.forEach(_fun10875);
function _fun10875(a0) { // fn#10875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:30800, offset: 0x00d9ac5c, size: 209 bytes, params: 2, frame: 19
var fillRect;
var x;
var y;
var w;
var h;
var value2;
var value3;
var clearRect;
let value = environment.__proto__;
const type = a0.type;
if (type === 'highlight') {
require.shadowColor = 'rgba(0, 0, 0, 0.7)';
require.shadowBlur = 50;
require.fillStyle = require;
fillRect = require.fillRect;
x = a0.x;
value = x - 1;
y = a0.y;
value2 = y - 1;
w = a0.w;
value3 = w + 2;
h = a0.h;
Reflect.apply(fillRect, require, [value, value2, value3, h + 2]);
clearRect = require.clearRect;
x = a0.x;
y = a0.y;
w = a0.w;
h = a0.h;
Reflect.apply(clearRect, require, [x, y, w, h]);
} else if (type === 'hide') {
require.fillStyle = 'rgb(0, 0, 0)';
require.fillRect(a0.x, a0.y, a0.w, a0.h);
}
}
}
}
function ScreenshotEditorFactory({h, hooks, outputBuffer, dialog, options}) { // fn#10876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:31086, offset: 0x00d9ad2d, size: 292 bytes, params: 2, frame: 31
const env0_4 = useTakeScreenshotFactory({hooks: hooks});
const env0_5 = (({h}) => _fun10878)({h: h});
const env0_6 = (({h}) => _fun10882)({h: h});
object = {};
const styleNonce = options.styleNonce;
const element = document.createElement('style');
element.textContent = '\n.editor {\n display: flex;\n flex-grow: 1;\n flex-direction: column;\n}\n\n.editor__image-container {\n justify-items: center;\n padding: 15px;\n position: relative;\n height: 100%;\n border-radius: var(--menu-border-radius, 6px);\n\n background-color: ' + '#1A141F' + ';\n background-image: repeating-linear-gradient(\n -145deg,\n transparent,\n transparent 8px,\n ' + '#1A141F' + ' 8px,\n ' + '#1A141F' + ' 11px\n ),\n repeating-linear-gradient(\n -45deg,\n transparent,\n transparent 15px,\n ' + '#302735' + ' 15px,\n ' + '#302735' + ' 16px\n );\n}\n\n.editor__canvas-container {\n width: 100%;\n height: 100%;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.editor__canvas-container > * {\n object-fit: contain;\n position: absolute;\n}\n\n.editor__tool-container {\n padding-top: 8px;\n display: flex;\n justify-content: center;\n}\n\n.editor__tool-bar {\n display: flex;\n gap: 8px;\n}\n\n.editor__tool {\n display: flex;\n padding: 8px 12px;\n justify-content: center;\n align-items: center;\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n background: var(--button-background, var(--background));\n color: var(--button-color, var(--foreground));\n}\n\n.editor__tool--active {\n background: var(--button-primary-background, var(--accent-background));\n color: var(--button-primary-color, var(--accent-foreground));\n}\n\n.editor__rect {\n position: absolute;\n z-index: 2;\n}\n\n.editor__rect button {\n opacity: 0;\n position: absolute;\n top: -12px;\n right: -12px;\n cursor: pointer;\n padding: 0;\n z-index: 3;\n border: none;\n background: none;\n}\n\n.editor__rect:hover button {\n opacity: 1;\n}\n';
if (styleNonce) {
element.setAttribute('nonce', styleNonce);
}
object.__html = element.innerText;
const env0_8 = dialog.el.style;
return ScreenshotEditorFactoryWrapper;
function ToolbarFactory({h}) { // fn#10877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:31230, owner: ScreenshotEditorFactory.ToolbarFactory, offset: 0x00d9ae51, size: 21 bytes, params: 2, frame: 2
return Toolbar;
function Toolbar({action, setAction, options}) { // fn#10878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:31274, owner: ScreenshotEditorFactory.ToolbarFactory.Toolbar, offset: 0x00d9ae66, size: 217 bytes, params: 2, frame: 25
const hBinding = h;
const value2 = '';
return hBinding('div', {class: 'editor__tool-container'}, hBinding('div', {class: 'editor__tool-bar'},
hBinding('button', {type: 'button',
class: 'editor__tool ' + (action !== 'highlight' ? value2 : 'editor__tool--active'), onClick: onClick_10879},
options.highlightToolText), h('button', {type: 'button',
class: 'editor__tool ' + (action !== 'hide' ? value2 : 'editor__tool--active'), onClick: onClick_10880},
options.hideToolText)));
function ToolbarOnClick() { // fn#10879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:31518, owner: ScreenshotEditorFactory.ToolbarFactory.Toolbar.onClick, offset: 0x00d9af3f, size: 32 bytes, params: 1, frame: 11
const setActionBinding = setAction;
const actionBinding = action;
const value = 'highlight';
setActionBinding(value !== actionBinding ? value : '');
}
function ToolbarOnClick_10880() { // fn#10880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:31689, owner: ScreenshotEditorFactory.ToolbarFactory.Toolbar.onClick, offset: 0x00d9af5f, size: 32 bytes, params: 1, frame: 11
const setActionBinding = setAction;
const actionBinding = action;
const value = 'hide';
setActionBinding(value !== actionBinding ? value : '');
}
}
}
function IconCloseFactory({h}) { // fn#10881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:31763, owner: ScreenshotEditorFactory.IconCloseFactory, offset: 0x00d9af7f, size: 21 bytes, params: 2, frame: 2
return IconClose;
function IconClose() { // fn#10882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:31809, owner: ScreenshotEditorFactory.IconCloseFactory.IconClose, offset: 0x00d9af94, size: 123 bytes, params: 1, frame: 21
const hBinding = h;
return hBinding('svg', {'data-test-id': 'icon-close', 'viewBox': '0 0 16 16', 'fill': '#2B2233', 'height': '25px',
'width': '25px'}, hBinding('circle', {'r': '7', 'cx': '8', 'cy': '8', 'fill': 'white'}), hBinding('path',
{'strokeWidth': '1.5',
'd': 'M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z'}),
hBinding('path', {'strokeWidth': '1.5',
'd': 'M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z'}),
hBinding('path', {'strokeWidth': '1.5',
'd': 'M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z'}));
}
}
function ScreenshotEditor({screenshot}) { // fn#10883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:34334, owner: ScreenshotEditorFactory.ScreenshotEditor, offset: 0x00d9b00f, size: 703 bytes, params: 2, frame: 30
const hooksBinding = hooks;
const [property, property2] = env1_6(hooksBinding.useState('highlight'), 2);
const [property3, env0_3] = env1_6(hooksBinding.useState([]), 2);
const value7 = hooksBinding.useRef(null);
const value8 = hooksBinding.useRef(null);
const env0_5 = value8;
const value9 = hooksBinding.useRef(null);
const value10 = hooksBinding.useRef(null);
const env0_7 = value10;
const [property4, env0_9] = env1_6(hooksBinding.useState(1), 2);
const useMemo = hooksBinding.useMemo;
const optionsBinding = options;
const value13 = Reflect.apply(useMemo, hooksBinding, [_fun10884, [optionsBinding.id]]);
hooksBinding.useLayoutEffect(function() {
var closure = _fun10886;
var env0_0 = closure;
closure();
var GLOBAL_OBJ = require(dependencyMap[5]).GLOBAL_OBJ;
GLOBAL_OBJ.addEventListener('resize', closure);
return _fun10888;
}, [screenshot]);
const env0_11 = hooksBinding.useCallback(function(a0, a1) {
var env0_0 = a1;
with2dContext(a0, {alpha: true}, _fun10890);
}, [screenshot]);
hooksBinding.useEffect(_fun10891, [screenshot]);
hooksBinding.useEffect(_fun10892, [property3, value13]);
hooksBinding.useEffect(_fun10894, [property3, screenshot, value13]);
const env0_12 = hooksBinding.useCallback(function(a0) {
var env0_0 = a0;
return _fun10897;
}, []);
object = {};
object.width = screenshot.canvas.width * property4 + 'px';
object.height = screenshot.canvas.height * property4 + 'px';
const handleStopPropagation = function(a0) {
a0.stopPropagation();
};
const hBinding = h;
return hBinding('div', {class: 'editor'}, hBinding('style', {nonce: optionsBinding.styleNonce,
dangerouslySetInnerHTML: env0_7}), hBinding('div', {class: 'editor__image-container'}, hBinding('div',
{class: 'editor__canvas-container', ref: value7}, hBinding('canvas', {ref: value8, id: 'background',
style: object}), hBinding('canvas', {ref: value9, id: 'foreground', style: object}), hBinding('div',
{ref: value10, onMouseDown: onMouseDown, style: object}, property3.map(_fun10906)))), hBinding(env0_5,
{options: optionsBinding, action: property, setAction: property2}));
function _fun10884() { // fn#10884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:34594, offset: 0x00d9b2ce, size: 93 bytes, params: 1, frame: 12
var r0;
var propertyValue;
let value = environment.__proto__.__proto__;
const documentBinding = document;
const getElementById = documentBinding.getElementById;
value = environment.__proto__;
value = Reflect.apply(getElementById, documentBinding, [options.id]);
if (value) {
value = global.getComputedStyle(value);
propertyValue = value.getPropertyValue('--button-primary-background');
if (propertyValue) {
r0 = propertyValue;
} else {
value = value.getPropertyValue('--accent-background');
r0 = value;
}
return r0;
}
return 'white';
}
function _fun10885() { // fn#10885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:34809, offset: 0x00d9b32b, size: 71 bytes, params: 1, frame: 15
const handleResize2 = handleResize;
handleResize2();
let GLOBAL_OBJ = (Module00826Module).GLOBAL_OBJ;
GLOBAL_OBJ.addEventListener('resize', handleResize2);
return function() {
var GLOBAL_OBJ = require(dependencyMap[5]).GLOBAL_OBJ;
GLOBAL_OBJ.removeEventListener('resize', handleResize);
};
function handleResize() { // fn#10886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:34826, offset: 0x00d9b372, size: 114 bytes, params: 1, frame: 16
var environment;
var value2;
const value = environment.__proto__;
const current = env1_4.current;
if (current) {
value2 = environment.__proto__.__proto__.__proto__;
with2dContext(screenshot.canvas, {alpha: false}, _fun10887);
if (!(current.clientHeight !== 0 && current.clientWidth !== 0)) {
global.setTimeout(handleResize, 0);
}
}
function _fun10887({width, height}) { // fn#10887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:34905, offset: 0x00d9b3e4, size: 75 bytes, params: 2, frame: 15
const Math = global.Math;
const min = Math.min;
const currentBinding = current;
let value = currentBinding.clientWidth / width;
value = Reflect.apply(min, Math, [value, currentBinding.clientHeight / height]);
env2_9(value);
}
}
function _fun10888() { // fn#10888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:35106, offset: 0x00d9b42f, size: 58 bytes, params: 1, frame: 14
const GLOBAL_OBJ = (Module00826Module).GLOBAL_OBJ;
GLOBAL_OBJ.removeEventListener('resize', handleResize);
}
}
function _fun10889(a0, a1) { // fn#10889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:35200, offset: 0x00d9b469, size: 44 bytes, params: 3, frame: 15
const env0_0 = a1;
with2dContext(a0, {alpha: true}, function(a0, a1) {
a1.scale(require, require);
var screenshotBinding = screenshot;
a0.width = screenshotBinding.canvas.width;
a0.height = screenshotBinding.canvas.height;
});
function _fun10890(a0, a1) { // fn#10890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:35242, offset: 0x00d9b495, size: 70 bytes, params: 3, frame: 13
a1.scale(require, require);
const screenshotBinding = screenshot;
a0.width = screenshotBinding.canvas.width;
a0.height = screenshotBinding.canvas.height;
}
}
function _fun10891() { // fn#10891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:35340, offset: 0x00d9b4db, size: 60 bytes, params: 1, frame: 15
const binding = env0_11;
const binding2 = env0_5;
const current = binding2.current;
const screenshotBinding = screenshot;
binding(current, screenshotBinding.dpi);
paintImage(binding2.current, screenshotBinding.canvas);
}
function _fun10892() { // fn#10892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:35422, offset: 0x00d9b517, size: 95 bytes, params: 1, frame: 18
const binding = env0_11;
const binding2 = env0_6;
binding(binding2.current, screenshot.dpi);
with2dContext(binding2.current, {alpha: true}, function(a0, a1) {
a1.clearRect(0, 0, a0.width, a0.height);
});
paintForeground(binding2.current, env0_10, env0_2);
}
function _fun10894() { // fn#10894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:35595, offset: 0x00d9b59b, size: 99 bytes, params: 1, frame: 15
var environment;
const binding = env0_11;
const outputBufferBinding = outputBuffer;
const screenshotBinding = screenshot;
binding(outputBufferBinding, screenshotBinding.dpi);
const value = environment.__proto__.__proto__;
paintImage(outputBufferBinding, screenshotBinding.canvas);
with2dContext(document.createElement('canvas'), {alpha: true}, _fun10895);
function _fun10895(a0, a1) { // fn#10895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:35693, offset: 0x00d9b5fe, size: 114 bytes, params: 3, frame: 17
const scale = a1.scale;
const screenshotBinding = screenshot;
Reflect.apply(scale, a1, [screenshotBinding.dpi, screenshotBinding.dpi]);
a0.width = screenshotBinding.canvas.width;
a0.height = screenshotBinding.canvas.height;
paintForeground(a0, env1_10, env1_2);
paintImage(outputBuffer, a0);
}
}
function _fun10896(a0) { // fn#10896, offset: 0x00d9b670, size: 16 bytes, params: 2, frame: 2
const env0_0 = a0;
return _fun10897;
function _fun10897(a0) { // fn#10897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:35872, offset: 0x00d9b680, size: 46 bytes, params: 2, frame: 11
a0.preventDefault();
a0.stopPropagation();
env1_3(_fun10898);
function _fun10898(a0) { // fn#10898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:35926, offset: 0x00d9b6ae, size: 41 bytes, params: 2, frame: 13
let value = environment.__proto__.__proto__.__proto__.__proto__;
value = env4_2(a0);
value.splice(env1_0, 1);
return value;
}
}
}
function onMouseDown(a0) { // fn#10900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:36403, owner: ScreenshotEditorFactory.ScreenshotEditor.onMouseDown, offset: 0x00d9b6d7, size: 178 bytes, params: 2, frame: 15
var environment;
var object;
var offsetX;
var binding;
var handleMouseMove2;
var handleMouseUp2;
if (env0_1) {
if (env0_7.current) {
var env0_0 = env0_7.current.getBoundingClientRect();
object = {type: env0_1};
offsetX = a0.offsetX;
binding = env0_8;
object.x = offsetX / binding;
object.y = a0.offsetY / binding;
handleMouseMove2 = handleMouseMove;
handleMouseUp2 = handleMouseUp;
value = environment.__proto__.__proto__;
document.addEventListener('mousemove', handleMouseMove2);
document.addEventListener('mouseup', handleMouseUp2);
}
}
function getDrawCommand(a0, {clientX, clientY}) { // fn#10901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:36531, owner: ScreenshotEditorFactory.ScreenshotEditor.onMouseDown.getDrawCommand, offset: 0x00d9b789, size: 189 bytes, params: 3, frame: 17
const value2 = clientX - env0_0.x;
const binding = env1_8;
const value4 = value2 / binding;
const value = (clientY - env0_0.y) / binding;
const object = {};
object.type = a0.type;
let Math = global.Math;
object.x = Math.min(a0.x, value4);
Math = global.Math;
object.y = Math.min(a0.y, value);
Math = global.Math;
object.w = Math.abs(value4 - a0.x);
Math = global.Math;
object.h = Math.abs(value - a0.y);
return object;
}
function handleMouseMove(a0) { // fn#10902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:36701, owner: ScreenshotEditorFactory.ScreenshotEditor.onMouseDown.handleMouseMove, offset: 0x00d9b846, size: 122 bytes, params: 2, frame: 20
var environment;
const value = environment.__proto__.__proto__.__proto__;
const with2dContextBinding = with2dContext;
let binding = env1_6;
let current = binding.current;
with2dContextBinding(current, {alpha: true}, function(a0, a1) {
a1.clearRect(0, 0, a0.width, a0.height);
});
const paintForegroundBinding = paintForeground;
current = binding.current;
binding = env1_10;
items2 = [];
paintForegroundBinding(current, binding, items2.concat(env3_2(env1_2), [getDrawCommand(env0_1, a0)]));
}
function handleMouseUp(a0) { // fn#10904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:36874, owner: ScreenshotEditorFactory.ScreenshotEditor.onMouseDown.handleMouseUp, offset: 0x00d9b8c0, size: 143 bytes, params: 2, frame: 17
const drawCommand = getDrawCommand(env0_1, a0);
if (drawCommand.w * env1_8 >= 1 && drawCommand.h * env1_8 >= 1) {
env1_3(_fun10905);
}
let documentBinding = document;
documentBinding.removeEventListener('mousemove', handleMouseMove);
documentBinding = document;
documentBinding.removeEventListener('mouseup', handleMouseUp);
function _fun10905(a0) { // fn#10905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:36938, offset: 0x00d9b94f, size: 49 bytes, params: 2, frame: 14
const items2 = [];
const concat = items2.concat;
const value = environment.__proto__.__proto__.__proto__.__proto__;
return Reflect.apply(concat, items2, [env4_2(a0), [env0_0]]);
}
}
}
function _fun10906({y, x, w, h}, a1) { // fn#10906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:37137, offset: 0x00d9b980, size: 204 bytes, params: 3, frame: 20
const value = environment.__proto__;
const hBinding = h;
const object = {key: a1, class: 'editor__rect'};
const binding = env0_8;
object.style = {top: y * binding + 'px', left: x * binding + 'px', width: w * binding + 'px',
height: h * binding + 'px'};
const object3 = {};
object3['aria-label'] = options.removeHighlightText;
object3.onClick = env0_12(a1);
const handleStopPropagationBinding = handleStopPropagation;
object3.onMouseDown = handleStopPropagationBinding;
object3.onMouseUp = handleStopPropagationBinding;
object3.type = 'button';
return hBinding('div', object, hBinding('button', object3, hBinding(env1_6, null)));
}
}
function ScreenshotEditorFactoryWrapper({onError}) { // fn#10907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:37442, owner: ScreenshotEditorFactory.Wrapper, offset: 0x00d9ba4c, size: 217 bytes, params: 2, frame: 19
const hooksBinding = hooks;
const [property, env0_1] = env1_6(hooksBinding.useState(), 2);
const binding = env0_4;
const object = {};
object.onBeforeScreenshot = hooksBinding.useCallback(function() {
style.display = 'none';
}, []);
object.onScreenshot = hooksBinding.useCallback(_fun10909, []);
object.onAfterScreenshot = hooksBinding.useCallback(function() {
style.display = 'block';
}, []);
object.onError = hooksBinding.useCallback(function(a0) {
style.display = 'block';
onError(a0);
}, []);
binding(object);
const hBinding = h;
return property ? hBinding(ScreenshotEditor, {screenshot: property}) : hBinding('div', null);
function _fun10909(a0, a1) { // fn#10909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:37622, offset: 0x00d9bb3a, size: 98 bytes, params: 3, frame: 16
var environment;
const env0_0 = a0;
const env0_1 = a1;
let value = environment.__proto__.__proto__;
with2dContext(document.createElement('canvas'), {alpha: false}, _fun10910);
value = environment.__proto__;
const outputBufferBinding = outputBuffer;
outputBufferBinding.width = a0.videoWidth;
outputBufferBinding.height = a0.videoHeight;
function _fun10910(a0, a1) { // fn#10910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:37688, offset: 0x00d9bb9c, size: 111 bytes, params: 3, frame: 20
a1.scale(require, require);
const binding = env0_0;
a0.width = binding.videoWidth;
a0.height = binding.videoHeight;
a1.drawImage(binding, 0, 0, a0.width, a0.height);
env1_1({canvas: a0, dpi: require});
}
}
}
}
function sendFeedback(a0) { // fn#10913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:280, offset: 0x00d9bc44, size: 365 bytes, params: 2, frame: 23
var object;
var value;
var Object;
var currentScope;
var captureFeedback;
var assign;
var Promise;
var promise;
if (a0.message) {
if ((require(826) /* metro dependency 826 */).getClient()) {
if (a0.tags && global.Object.keys(a0.tags).length) {
currentScope = (require(826) /* metro dependency 826 */).getCurrentScope();
currentScope.setTags(a0.tags);
}
value = require(826) /* metro dependency 826 */;
captureFeedback = value.captureFeedback;
Object = global.Object;
assign = Object.assign;
object = {source: 'api'};
object.url = (require(826) /* metro dependency 826 */).getLocationHref();
var env0_1 = Reflect.apply(captureFeedback, value, [Reflect.apply(assign, Object, [object, a0]),
arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {includeReplay: true}]);
Promise = global.Promise;
value = Object.create(Promise.prototype, {constructor: {value: Promise}});
promise = new Promise(_fun10914);
return promise instanceof Object ? promise : value;
}
throw new global.Error('No client setup, cannot send feedback.');
}
const Error = global.Error;
throw new Error('Unable to submit feedback with empty message');
function _fun10914(a0, a1) { // fn#10914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:754, offset: 0x00d9bdb1, size: 83 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = global.setTimeout(function() {
return require('Unable to determine if Feedback was correctly sent.');
}, 30000);
const env0_3 = env0_0.on('afterSendEvent', _fun10916);
function _fun10916({event_id}, a1) { // fn#10916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:893, offset: 0x00d9be1a, size: 175 bytes, params: 3, frame: 15
var clearTimeout;
var value3;
const value = environment.__proto__;
if (event_id === env1_1) {
clearTimeout = global.clearTimeout;
value3 = undefined;
clearTimeout(env0_2);
env0_3();
return a1 == null ? (a1 == null ? value3 : a1.statusCode) === 403 ? require('Unable to send feedback. This could be because this domain is not in your list of allowed domains.') : require('Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.') : a1.statusCode && a1.statusCode >= 200 && a1.statusCode < 300 ? env0_0(env1_1) : (a1 == null ? value3 : a1.statusCode) === 403 ? require('Unable to send feedback. This could be because this domain is not in your list of allowed domains.') : require('Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.');
}
}
}
}
function setState_10918(a0, a1) { // fn#10918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:17249, offset: 0x00d9bf9e, size: 187 bytes, params: 3, frame: 18
var r6;
var r0;
var v$1Binding;
var object;
let value = a0;
if (this.__s == null) {
v$1Binding = v$1;
object = {};
v$1Binding(object, this.state);
this.__s = object;
r6 = object;
} else if (this.__s !== this.state) {
r6 = this.__s;
} else {
v$1Binding = v$1;
object = {};
v$1Binding(object, this.state);
this.__s = object;
r6 = object;
}
if (typeof value !== 'function') {
r0 = value;
} else {
v$1Binding = v$1;
object = {};
v$1Binding(object, r6);
value = value(object, this.props);
r0 = value;
}
if (r0) {
v$1(r6, r0);
}
if (r0 != null && this.__v) {
if (a1) {
this._sb.push(a1);
}
x$1(this);
}
}
function forceUpdate_10919(a0) { // fn#10919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:17486, offset: 0x00d9c059, size: 59 bytes, params: 2, frame: 12
if (this.__v) {
this.__e = true;
if (a0) {
this.__h.push(a0);
}
x$1(this);
}
}
function __r_10923(a0) { // fn#10923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:19231, offset: 0x00d9c124, size: 176 bytes, params: 2, frame: 14
var __h;
if (__r) {
__r(a0);
}
const __c = a0.__c;
__c2 = __c;
const __H = __c.__H;
if (__H) {
if (env0_28 === __c2) {
__H.__h = [];
__c2.__h = [];
__H.__.forEach(_fun10924);
} else {
__h = __H.__h;
__h.forEach(z);
__h = __H.__h;
__h.forEach(B_10830);
__H.__h = [];
}
}
function _fun10924(a0) { // fn#10924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:19324, offset: 0x00d9c1d4, size: 53 bytes, params: 2, frame: 3
if (a0.__N) {
a0.__ = a0.__N;
}
a0.__V = env1_32;
a0.i = undefined;
a0.__N = undefined;
}
}
function diffed(a0) { // fn#10925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:19453, offset: 0x00d9c209, size: 188 bytes, params: 2, frame: 13
var __H;
if (diffed) {
diffed(a0);
}
const __c = a0.__c;
if (__c && __c.__H) {
__H = __c.__H;
if (__H.__h.length) {
if (!(env0_31.push(__c) !== 1 && env0_29 === env0_33.requestAnimationFrame)) {
(env0_33.requestAnimationFrame || w)(j);
}
}
__H = __c.__H;
__H.__.forEach(_fun10926);
}
function _fun10926(a0) { // fn#10926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:19621, offset: 0x00d9c2c5, size: 71 bytes, params: 2, frame: 4
if (a0.i) {
a0.__H = a0.i;
}
if (a0.__V !== env1_32) {
a0.__ = a0.__V;
}
a0.i = undefined;
a0.__V = env1_32;
}
}
function __c_10927(a0, a1) { // fn#10927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:19718, offset: 0x00d9c30c, size: 58 bytes, params: 3, frame: 13
const env0_0 = a1;
a1.some(_fun10928);
if (__c) {
__c(a0, env0_0);
}
function _fun10928(a0) { // fn#10928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:19740, offset: 0x00d9c346, size: 122 bytes, params: 2, frame: 15
var environment;
var __h;
var forEach;
var value;
var closure;
var error;
var binding;
var __e;
var __v;
try {
__h = a0.__h;
forEach = __h.forEach;
value = environment.__proto__;
Reflect.apply(forEach, __h, [z]);
__h = a0.__h;
closure = _fun10929;
value = __h.filter(closure);
a0.__h = value;
} catch (error) {
value = environment;
require.some(function(a0) {
if (a0.__h) {
a0.__h = [];
}
});
env0_0 = [];
value = environment.__proto__;
binding = env1_33;
__e = binding.__e;
__v = a0.__v;
Reflect.apply(__e, binding, [error, __v]);
}
function _fun10929(a0) { // fn#10929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:19793, offset: 0x00d9c3c0, size: 33 bytes, params: 2, frame: 12
var r0;
const __ = a0.__;
let value = !__;
if (__) {
value = environment.__proto__.__proto__;
value = undefined;
B_10830(a0);
r0 = value;
} else {
r0 = value;
}
return r0;
}
}
}
function unmount(a0) { // fn#10931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:19925, offset: 0x00d9c3fb, size: 119 bytes, params: 2, frame: 15
var binding;
if (unmount) {
unmount(a0);
}
const __c = a0.__c;
if (__c && __c.__H) {
__c.__H.__.forEach(_fun10932);
__c.__H = undefined;
if (env0_0) {
binding = env0_33;
binding.__e(env0_0, __c.__v);
}
}
function _fun10932(a0) { // fn#10932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:19990, offset: 0x00d9c472, size: 35 bytes, params: 2, frame: 11
var value;
var error;
try {
value = environment.__proto__;
z(a0);
} catch (error) {
value = environment;
env0_0 = error;
}
}
}
function useContext_10933(a0) { // fn#10933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:20583, offset: 0x00d9c495, size: 118 bytes, params: 2, frame: 16
var r0;
const property = env0_27.context[a0.__c];
const hBinding = h;
const binding = env0_26;
const value2 = typeof binding === 'bigint' ? binding : +binding;
env0_26 = typeof value2 === 'bigint' ? value2 + 1n : +value2 + 1;
const value3 = hBinding(value2, 9);
value3.c = a0;
if (property) {
if (value3.__ == null) {
value3.__ = true;
property.sub(env0_27);
}
r0 = property.props.value;
} else {
r0 = a0.__;
}
return r0;
}
function useDebugValue_10934(a0, a1) { // fn#10934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:20715, offset: 0x00d9c50b, size: 54 bytes, params: 3, frame: 14
var r0;
var binding;
let value = a0;
let useDebugValue = env0_33.useDebugValue;
if (useDebugValue) {
binding = env0_33;
useDebugValue = binding.useDebugValue;
if (a1) {
value = a1(value);
r0 = value;
} else {
r0 = value;
}
Reflect.apply(useDebugValue, binding, [r0]);
}
}
function useEffect_10935(a0, a1) { // fn#10935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:20787, offset: 0x00d9c541, size: 113 bytes, params: 3, frame: 16
const hBinding = h;
const binding = env0_26;
const value2 = typeof binding === 'bigint' ? binding : +binding;
env0_26 = typeof value2 === 'bigint' ? value2 + 1n : +value2 + 1;
const value3 = hBinding(value2, 3);
if (!env0_33.__s && C_10831(value3.__H, a1)) {
value3.__ = a0;
value3.i = a1;
env0_27.__H.__h.push(value3);
}
}
function useErrorBoundary(a0) { // fn#10936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:20891, offset: 0x00d9c5b2, size: 112 bytes, params: 2, frame: 15
const hBinding = h;
const binding = env0_26;
const value2 = typeof binding === 'bigint' ? binding : +binding;
env0_26 = typeof value2 === 'bigint' ? value2 + 1n : +value2 + 1;
const value3 = hBinding(value2, 10);
const value4 = useState_10814();
value3.__ = a0;
if (!env0_27.componentDidCatch) {
env0_27.componentDidCatch = componentDidCatch;
}
return [value4[0], _fun10938];
function componentDidCatch(a0, a1) { // fn#10937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:20985, owner: useErrorBoundary.componentDidCatch, offset: 0x00d9c622, size: 58 bytes, params: 3, frame: 14
if (env0_0.__) {
env0_0.__(a0, a1);
}
env0_1[1](a0);
}
function _fun10938() { // fn#10938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:21031, offset: 0x00d9c65c, size: 23 bytes, params: 1, frame: 11
env0_1[1](undefined);
}
}
function useId_10939() { // fn#10939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:21064, offset: 0x00d9c673, size: 217 bytes, params: 1, frame: 15
var r3;
var r2;
var r5;
var __v;
var __m;
var __2;
var items2;
var property;
var value4;
var value;
const hBinding = h;
const binding = env0_26;
const value2 = typeof binding === 'bigint' ? binding : +binding;
env0_26 = typeof value2 === 'bigint' ? value2 + 1n : +value2 + 1;
const value3 = hBinding(value2, 11);
let __ = value3.__;
if (!__) {
__v = env0_27.__v;
if (__v === null) {
r2 = __v;
} else {
__m = __v.__m;
if (__m) {
r2 = __v;
} else {
__ = __v.__;
if (__ === null) {
r2 = __v;
} else {
r3 = __v;
while (true) {
__ = r3.__;
if (__ === null) {
r2 = __;
break;
}
__m = __.__m;
if (__m) {
r2 = __;
break;
}
__2 = __.__;
if (__2 !== null) {
r3 = __;
continue;
}
r2 = __;
break;
}
}
}
}
__m = r2.__m;
if (__m) {
r5 = __m;
} else {
items2 = [0, 0];
r2.__m = items2;
r5 = items2;
}
value = 'P' + r5[0];
property = r5[1];
value4 = typeof property === 'bigint' ? property : +property;
r5[1] = typeof value4 === 'bigint' ? value4 + 1n : +value4 + 1;
value3.__ = value + '-' + value4;
}
return value3.__;
}
function useImperativeHandle_10940(a0, a1, a2) { // fn#10940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:21243, offset: 0x00d9c74c, size: 67 bytes, params: 4, frame: 15
var r2;
let value = a2;
const env0_0 = a0;
const env0_1 = a1;
if (value == null) {
r2 = value;
} else {
value = value.concat(a0);
r2 = value;
}
useLayoutEffect_10822(_fun10941, r2);
function _fun10941() { // fn#10941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:21269, offset: 0x00d9c78f, size: 82 bytes, params: 1, frame: 14
var r0;
if (typeof env0_0 === 'function') {
env0_0(require());
r0 = _fun10942;
} else if (env0_0) {
env0_0.current = require();
r0 = _fun10943;
} else {
r0 = undefined;
}
return r0;
function _fun10942() { // fn#10942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:21315, offset: 0x00d9c7e1, size: 18 bytes, params: 1, frame: 11
return env1_0(null);
}
function _fun10943() { // fn#10943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:21360, offset: 0x00d9c7f3, size: 17 bytes, params: 1, frame: 2
env1_0.current = null;
return null;
}
}
}
function useRef_10944(a0) { // fn#10944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:21476, offset: 0x00d9c804, size: 42 bytes, params: 2, frame: 13
const env0_0 = a0;
return useMemo_10823(_fun10945, []);
function _fun10945() { // fn#10945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:21505, offset: 0x00d9c82e, size: 15 bytes, params: 1, frame: 2
return {current: env0_0};
}
}
function buildFeedbackIntegration({lazyLoadIntegration, getModalIntegration, getScreenshotIntegration}) { // fn#10946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:38067, offset: 0x00d9c83d, size: 42 bytes, params: 2, frame: 3
return feedbackIntegration;
function feedbackIntegration() { // fn#10947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:38192, owner: buildFeedbackIntegration.feedbackIntegration, offset: 0x00d9c867, size: 977 bytes, params: 1, frame: 50
var environment;
const r0 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
const id = r0.id;
const r41 = id === undefined ? 'sentry-feedback' : id;
const autoInject = r0.autoInject;
const r40 = autoInject === undefined || autoInject;
const showBranding = r0.showBranding;
const r39 = showBranding === undefined || showBranding;
const isEmailRequired = r0.isEmailRequired;
const r38 = isEmailRequired !== undefined && isEmailRequired;
const isNameRequired = r0.isNameRequired;
const r37 = isNameRequired !== undefined && isNameRequired;
const showEmail = r0.showEmail;
const r36 = showEmail === undefined || showEmail;
const showName = r0.showName;
const r35 = showName === undefined || showName;
const enableScreenshot = r0.enableScreenshot;
const r34 = enableScreenshot === undefined || enableScreenshot;
const useSentryUser = r0.useSentryUser;
const r33 = useSentryUser !== undefined ? useSentryUser : {'email': 'email', 'name': 'username'};
const tags = r0.tags;
const styleNonce = r0.styleNonce;
const scriptNonce = r0.scriptNonce;
const colorScheme = r0.colorScheme;
const r29 = colorScheme === undefined ? 'system' : colorScheme;
const themeLight = r0.themeLight;
const r27 = themeLight !== undefined ? themeLight : {};
const themeDark = r0.themeDark;
const r28 = themeDark !== undefined ? themeDark : {};
const addScreenshotButtonLabel = r0.addScreenshotButtonLabel;
const r12 = addScreenshotButtonLabel === undefined ? 'Add a screenshot' : addScreenshotButtonLabel;
const cancelButtonLabel = r0.cancelButtonLabel;
const r24 = cancelButtonLabel === undefined ? 'Cancel' : cancelButtonLabel;
const confirmButtonLabel = r0.confirmButtonLabel;
const r22 = confirmButtonLabel === undefined ? 'Confirm' : confirmButtonLabel;
const emailLabel = r0.emailLabel;
const r20 = emailLabel === undefined ? 'Email' : emailLabel;
const emailPlaceholder = r0.emailPlaceholder;
const r19 = emailPlaceholder === undefined ? '[email protected]' : emailPlaceholder;
const formTitle = r0.formTitle;
const r21 = formTitle === undefined ? 'Report a Bug' : formTitle;
const isRequiredLabel = r0.isRequiredLabel;
const r13 = isRequiredLabel === undefined ? '(required)' : isRequiredLabel;
const messageLabel = r0.messageLabel;
const r18 = messageLabel === undefined ? 'Description' : messageLabel;
const messagePlaceholder = r0.messagePlaceholder;
const r17 = messagePlaceholder === undefined ? "What's the bug? What did you expect?" : messagePlaceholder;
const nameLabel = r0.nameLabel;
const r16 = nameLabel === undefined ? 'Name' : nameLabel;
const namePlaceholder = r0.namePlaceholder;
const r15 = namePlaceholder === undefined ? 'Your Name' : namePlaceholder;
const removeScreenshotButtonLabel = r0.removeScreenshotButtonLabel;
const r11 = removeScreenshotButtonLabel === undefined ? 'Remove screenshot' : removeScreenshotButtonLabel;
const submitButtonLabel = r0.submitButtonLabel;
const r23 = submitButtonLabel === undefined ? 'Send Bug Report' : submitButtonLabel;
const successMessageText = r0.successMessageText;
const r14 = successMessageText === undefined ? 'Thank you for your report!' : successMessageText;
const triggerLabel = r0.triggerLabel;
const r26 = triggerLabel !== undefined ? triggerLabel : env1_10;
const triggerAriaLabel = r0.triggerAriaLabel;
const r25 = triggerAriaLabel === undefined ? '' : triggerAriaLabel;
const highlightToolText = r0.highlightToolText;
const r10 = highlightToolText === undefined ? 'Highlight' : highlightToolText;
const hideToolText = r0.hideToolText;
const r9 = hideToolText === undefined ? 'Hide' : hideToolText;
const removeHighlightText = r0.removeHighlightText;
let object = {id: r41, autoInject: r40, showBranding: r39, isEmailRequired: r38, isNameRequired: r37,
showEmail: r36, showName: r35, enableScreenshot: r34, useSentryUser: r33, tags: tags, styleNonce: styleNonce,
scriptNonce: scriptNonce, colorScheme: r29, themeDark: r28, themeLight: r27, triggerLabel: r26,
triggerAriaLabel: r25, cancelButtonLabel: r24, submitButtonLabel: r23, confirmButtonLabel: r22, formTitle: r21,
emailLabel: r20, emailPlaceholder: r19, messageLabel: r18, messagePlaceholder: r17, nameLabel: r16,
namePlaceholder: r15, successMessageText: r14, isRequiredLabel: r13, addScreenshotButtonLabel: r12,
removeScreenshotButtonLabel: r11, highlightToolText: r10, hideToolText: r9,
removeHighlightText: removeHighlightText === undefined ? 'Remove' : removeHighlightText,
onFormClose: r0.onFormClose, onFormOpen: r0.onFormOpen, onSubmitError: r0.onSubmitError,
onSubmitSuccess: r0.onSubmitSuccess, onFormSubmitted: r0.onFormSubmitted};
const env0_5 = [];
const env0_7 = _fun10949();
object = {name: 'Feedback', setupOnce: setupOnce_10967, attachTo: attachTo, createWidget: createWidget};
value = environment.__proto__;
const env0_0 = env1_4(_fun10971);
object.createForm = createForm;
object.remove = remove_10973;
return object;
function _createShadow(a0) { // fn#10948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:40607, owner: buildFeedbackIntegration.feedbackIntegration._createShadow, offset: 0x00d9cc38, size: 417 bytes, params: 2, frame: 32
var value2;
var element;
var appendChild;
var value3;
var colorScheme;
var themeDark;
var themeLight;
var styleNonce;
var element2;
var value4;
if (!env0_4) {
value2 = environment.__proto__.__proto__;
element = document.createElement('div');
element.id = global.String(a0.id);
document.body.appendChild(element);
value3 = element.attachShadow({mode: 'open'});
env0_4 = value3;
appendChild = value3.appendChild;
colorScheme = a0.colorScheme;
themeDark = a0.themeDark;
themeLight = a0.themeLight;
styleNonce = a0.styleNonce;
element2 = document.createElement('style');
value4 = '';
element2.textContent = "\n:host {\n --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;\n --font-size: 14px;\n --z-index: 100000;\n\n --page-margin: 16px;\n --inset: auto 0 0 auto;\n --actor-inset: var(--inset);\n\n font-family: var(--font-family);\n font-size: var(--font-size);\n\n " + (colorScheme === 'system' ? value4 : 'color-scheme: only ' + colorScheme + ';') + '\n\n ' + getThemedCssVariables(colorScheme === 'dark' ? global.Object.assign({},
env2_14, themeDark) : global.Object.assign({}, env2_13,
themeLight)) + '\n}\n\n' + (colorScheme !== 'system' ? value4 : '\n@media (prefers-color-scheme: dark) {\n :host {\n color-scheme: only dark;\n\n ' + getThemedCssVariables(global.Object.assign({},
env2_14, themeDark)) + '\n }\n}') + '\n';
if (styleNonce) {
element2.setAttribute('nonce', styleNonce);
}
Reflect.apply(appendChild, value3, [element2]);
}
return env0_4;
}
function _fun10949() { // fn#10949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:41535, offset: 0x00d9cdd9, size: 32 bytes, params: 1, frame: 12
const env0_0 = env2_4(_fun10951);
return _loadAndRenderDialog;
function* _fun10951(a0) { // fn#10951, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:41555, offset: 0x00d9ce02, size: 634 bytes, params: 2, frame: 24
var environment;
var r10;
var r9;
var r6;
var r62;
var r5;
var r8;
var value;
var value2;
var enableScreenshot;
var regexp;
var test;
var value3;
var userAgent;
var value4;
var value5;
var maxTouchPoints;
var value6;
var isSecureContext;
var value7;
var value8;
var value9;
var value10;
var getScreenshotIntegrationBinding;
var moduleValue;
var value11;
var value12;
var value13;
var value14;
var value15;
var binding;
var binding2;
var property;
var value16;
var addIntegration;
var value17;
var moduleValue2;
var value18;
var value19;
var value20;
var value21;
var binding3;
var value22;
var error;
var debug;
var createDialog;
var object;
var Object;
var assign;
var value23;
exceptionLanding63: while (true) {
value = undefined;
value2 = false;
if (value2) {
return value;
}
var env0_0 = a0;
value = undefined;
var env0_1 = value;
enableScreenshot = a0.enableScreenshot;
reducibleJoin11: while (true) {
if (enableScreenshot) {
regexp = RegExp('Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini', 'i');
test = regexp.test;
value3 = environment.__proto__.__proto__.__proto__.__proto__;
userAgent = env4_9.userAgent;
value4 = Reflect.apply(test, regexp, [userAgent]);
reducibleJoin8: while (true) {
if (value4) {
r9 = value4;
break reducibleJoin8;
}
regexp = RegExp('Macintosh', 'i');
test = regexp.test;
userAgent = env4_9.userAgent;
value5 = Reflect.apply(test, regexp, [userAgent]);
reducibleJoin5: while (true) {
if (value5) {
maxTouchPoints = env4_9.maxTouchPoints;
r10 = maxTouchPoints;
break reducibleJoin5;
}
r10 = value5;
break reducibleJoin5;
}
reducibleJoin7: while (true) {
if (r10) {
maxTouchPoints = env4_9.maxTouchPoints;
value6 = maxTouchPoints > 1;
r10 = value6;
break reducibleJoin7;
}
break reducibleJoin7;
}
r9 = r10;
break reducibleJoin8;
}
reducibleJoin10: while (true) {
if (r9) {
break reducibleJoin10;
}
isSecureContext = global.isSecureContext;
value7 = !isSecureContext;
r9 = value7;
break reducibleJoin10;
}
value8 = !r9;
r6 = value8;
break reducibleJoin11;
}
r6 = enableScreenshot;
break reducibleJoin11;
}
value9 = environment.__proto__.__proto__.__proto__;
try {
} catch (error) {
break exceptionLanding63;
}
if (dependencyMap) {
try {
} catch (error) {
break exceptionLanding63;
}
try {
value13 = dependencyMap();
} catch (error) {
break exceptionLanding63;
}
r62 = value13;
} else {
try {
} catch (error) {
break exceptionLanding63;
}
value10 = environment.__proto__.__proto__;
try {
getScreenshotIntegrationBinding = getScreenshotIntegration;
} catch (error) {
break exceptionLanding63;
}
try {
moduleValue = require('feedbackModalIntegration', getScreenshotIntegrationBinding);
} catch (error) {
break exceptionLanding63;
}
yield moduleValue;
try {
value11 = undefined;
value12 = false;
} catch (error) {
break exceptionLanding63;
}
reducibleJoin26: while (true) {
if (value12) {
return value11;
}
r62 = value11;
break reducibleJoin26;
}
}
try {
value14 = r62();
} catch (error) {
break exceptionLanding63;
}
value15 = environment.__proto__.__proto__.__proto__.__proto__;
try {
binding = env4_0;
} catch (error) {
break exceptionLanding63;
}
try {
binding2 = env4_1;
} catch (error) {
break exceptionLanding63;
}
try {
property = binding2[5];
} catch (error) {
break exceptionLanding63;
}
try {
value16 = binding(property);
} catch (error) {
break exceptionLanding63;
}
try {
addIntegration = value16.addIntegration;
} catch (error) {
break exceptionLanding63;
}
try {
Reflect.apply(addIntegration, value16, [value14]);
} catch (error) {
break exceptionLanding63;
}
reducibleJoin50: while (true) {
reduciblePort62: while (true) {
exceptionLanding60: while (true) {
if (r6) {
try {
binding = env3_2;
} catch (error) {
r8 = value;
break exceptionLanding60;
}
if (binding) {
try {
binding = env3_2;
} catch (error) {
r8 = value;
break exceptionLanding60;
}
try {
value20 = binding();
} catch (error) {
r8 = value;
break exceptionLanding60;
}
r10 = value20;
} else {
try {
} catch (error) {
r8 = value;
break exceptionLanding60;
}
value17 = environment.__proto__.__proto__;
try {
getScreenshotIntegrationBinding = getScreenshotIntegration;
} catch (error) {
r8 = value;
break exceptionLanding60;
}
try {
moduleValue2 = require('feedbackScreenshotIntegration',
getScreenshotIntegrationBinding);
} catch (error) {
r8 = value;
break exceptionLanding60;
}
yield moduleValue2;
try {
value18 = undefined;
value19 = false;
} catch (error) {
r8 = value;
break exceptionLanding60;
}
reducibleJoin49: while (true) {
if (value19) {
return value18;
}
r10 = value18;
break reducibleJoin49;
}
}
r5 = r10;
break reducibleJoin50;
}
r5 = value;
break reducibleJoin50;
}
reducibleJoin62: while (true) {
if (env4_12) {
binding = env4_0;
debug = binding(env4_1[5]).debug;
error = debug.error;
Reflect.apply(error, debug,
['[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.']);
break reducibleJoin62;
}
break reducibleJoin62;
}
break reduciblePort62;
}
createDialog = value14.createDialog;
object = {};
Object = global.Object;
assign = Object.assign;
object.options = Reflect.apply(assign, Object, [{}, a0, {onFormClose: onFormClose_10952,
onFormSubmitted: onFormSubmitted_10953}]);
object.screenshotIntegration = r8;
object.sendFeedback = env4_11;
value23 = environment.__proto__.__proto__;
object.shadow = env2_6(a0);
value = Reflect.apply(createDialog, value14, [object]);
env0_1 = value;
return value;
}
reducibleJoin59: while (true) {
if (r5) {
try {
value21 = r5();
} catch (error) {
r8 = value;
break exceptionLanding60;
}
try {
binding = env4_0;
} catch (error) {
r8 = value21;
break exceptionLanding60;
}
try {
binding3 = env4_1;
} catch (error) {
r8 = value21;
break exceptionLanding60;
}
try {
property = binding3[5];
} catch (error) {
r8 = value21;
break exceptionLanding60;
}
try {
value22 = binding(property);
} catch (error) {
r8 = value21;
break exceptionLanding60;
}
try {
addIntegration = value22.addIntegration;
} catch (error) {
r8 = value21;
break exceptionLanding60;
}
try {
Reflect.apply(addIntegration, value22, [value21]);
} catch (error) {
r8 = value21;
break exceptionLanding60;
}
r8 = value21;
break reducibleJoin59;
}
r8 = value;
break reducibleJoin59;
}
createDialog = value14.createDialog;
object = {};
Object = global.Object;
assign = Object.assign;
object.options = Reflect.apply(assign, Object, [{}, a0, {onFormClose: onFormClose_10952,
onFormSubmitted: onFormSubmitted_10953}]);
object.screenshotIntegration = r8;
object.sendFeedback = env4_11;
value23 = environment.__proto__.__proto__;
object.shadow = env2_6(a0);
value = Reflect.apply(createDialog, value14, [object]);
env0_1 = value;
return value;
}
if (env4_12) {
env4_0(env4_1[5]).debug.error('[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`.');
throw new global.Error('[Feedback] Missing feedback modal integration!');
}
const Error = global.Error;
throw new Error('[Feedback] Missing feedback modal integration!');
function onFormClose_10952() { // fn#10952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:42410, offset: 0x00d9d07c, size: 59 bytes, params: 1, frame: 11
if (env0_1 != null) {
env0_1.close();
}
if (env0_0.onFormClose != null) {
env0_0.onFormClose();
}
}
function onFormSubmitted_10953() { // fn#10953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:42506, offset: 0x00d9d0b7, size: 59 bytes, params: 1, frame: 11
if (env0_1 != null) {
env0_1.close();
}
if (env0_0.onFormSubmitted != null) {
env0_0.onFormSubmitted();
}
}
}
function _loadAndRenderDialog(a0) { // fn#10954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:42673, offset: 0x00d71197, size: 29 bytes, params: 2, frame: 13
return env0_0.apply(this, arguments);
}
}
function attachTo(a0) { // fn#10955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:42744, owner: buildFeedbackIntegration.feedbackIntegration.attachTo, offset: 0x00d9d0f2, size: 261 bytes, params: 2, frame: 20
var r5;
var unsubscribe2;
let value = a0;
const env0_0 = mergeOptions(ObjectWithoutPropertiesModule, arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {});
if (typeof value === 'string') {
value = document.querySelector(value);
r5 = value;
} else {
r5 = typeof value.addEventListener !== 'function' ? null : value;
}
if (r5) {
r5.addEventListener('click', _fun10956());
unsubscribe2 = unsubscribe;
env0_5.push(unsubscribe2);
return unsubscribe2;
}
if (env2_12) {
(require(826) /* metro dependency 826 */).debug.error('[Feedback] Unable to attach to target element');
}
const Error = global.Error;
throw new Error('Unable to attach to target element');
function _fun10956() { // fn#10956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:43079, offset: 0x00d9d1f7, size: 32 bytes, params: 1, frame: 12
const env0_0 = env3_4(_fun10958);
return handleClick;
function* _fun10958() { // fn#10958, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:43099, offset: 0x00d9d220, size: 126 bytes, params: 1, frame: 18
var environment;
if (true) {
value = environment.__proto__.__proto__;
if (scriptNonce) {
scriptNonce.appendToDom();
scriptNonce.open();
} else {
var binding = env3_7;
var Object = global.Object;
yield binding(Object.assign({}, env2_0, {onFormSubmitted: onFormSubmitted_10959}));
if (false) {
return undefined;
}
scriptNonce.appendToDom();
scriptNonce.open();
}
}
function onFormSubmitted_10959() { // fn#10959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:43162, offset: 0x00d9d29e, size: 55 bytes, params: 1, frame: 11
const scriptNonceBinding = scriptNonce;
if (scriptNonceBinding != null) {
scriptNonceBinding.removeFromDom();
}
if (env3_0.onFormSubmitted != null) {
env3_0.onFormSubmitted();
}
}
}
function handleClick() { // fn#10960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:43311, offset: 0x00d71197, size: 29 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
function unsubscribe() { // fn#10961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:43405, owner: buildFeedbackIntegration.feedbackIntegration.attachTo.unsubscribe, offset: 0x00d9d2d5, size: 83 bytes, params: 1, frame: 13
let binding = env1_5;
env1_5 = binding.filter(function(a0) {
return a0 !== unsubscribe;
});
binding = env0_2;
if (binding != null) {
binding.removeFromDom();
}
env0_1.removeEventListener('click', ObjectWithoutPropertiesModule);
}
}
function _createActor() { // fn#10963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:43572, owner: buildFeedbackIntegration.feedbackIntegration._createActor, offset: 0x00d9d338, size: 183 bytes, params: 1, frame: 20
var environment;
let value = environment.__proto__.__proto__;
const value4 = mergeOptions(ObjectWithoutPropertiesModule, arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {});
value = Actor({triggerLabel: value4.triggerLabel, triggerAriaLabel: value4.triggerAriaLabel,
shadow: _createShadow(value4), styleNonce: styleNonce});
const attachToBinding = attachTo;
const el = value.el;
const Object = global.Object;
attachToBinding(el, Object.assign({}, value4, {onFormOpen: onFormOpen_10964, onFormClose: onFormClose_10965,
onFormSubmitted: onFormSubmitted_10966}));
return value;
function _createActorOnFormOpen() { // fn#10964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:43829, owner: buildFeedbackIntegration.feedbackIntegration._createActor.onFormOpen, offset: 0x00d9d3ef, size: 21 bytes, params: 1, frame: 9
env0_0.hide();
}
function _createActorOnFormClose() { // fn#10965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:43873, owner: buildFeedbackIntegration.feedbackIntegration._createActor.onFormClose, offset: 0x00d9d404, size: 21 bytes, params: 1, frame: 9
env0_0.show();
}
function _createActorOnFormSubmitted() { // fn#10966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:43922, owner: buildFeedbackIntegration.feedbackIntegration._createActor.onFormSubmitted, offset: 0x00d9d404, size: 21 bytes, params: 1, frame: 9
env0_0.show();
}
}
function feedbackIntegrationSetupOnce() { // fn#10967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:43998, owner: buildFeedbackIntegration.feedbackIntegration.setupOnce, offset: 0x00d9d419, size: 126 bytes, params: 1, frame: 14
var environment;
const value = environment.__proto__.__proto__;
if ((require(826) /* metro dependency 826 */).isBrowser() && ObjectWithoutPropertiesModule.autoInject) {
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', _fun10968);
} else {
_createActor().appendToDom();
}
}
function _fun10968() { // fn#10968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:44122, offset: 0x00d9d497, size: 25 bytes, params: 1, frame: 9
const value = environment.__proto__;
return _createActor().appendToDom();
}
}
function createWidget() { // fn#10969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:44208, owner: buildFeedbackIntegration.feedbackIntegration.createWidget, offset: 0x00d9d4b0, size: 70 bytes, params: 1, frame: 17
const value = _createActor(mergeOptions(ObjectWithoutPropertiesModule,
arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}));
value.appendToDom();
return value;
}
function* _fun10971() { // fn#10971, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:44360, offset: 0x00d9d4ff, size: 71 bytes, params: 1, frame: 18
if (false) {
return undefined;
}
value = environment.__proto__;
return env1_7(env3_42(env1_3, arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}));
}
function createForm() { // fn#10972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:44461, owner: buildFeedbackIntegration.feedbackIntegration.createForm, offset: 0x00d71197, size: 29 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
function feedbackIntegrationRemove() { // fn#10973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:44523, owner: buildFeedbackIntegration.feedbackIntegration.remove, offset: 0x00d9d546, size: 73 bytes, params: 1, frame: 12
var parentElement;
if (env0_4) {
parentElement = env0_4.parentElement;
if (parentElement != null) {
parentElement.remove();
}
}
items2.forEach(function(a0) {
return a0();
});
items2 = [];
}
}
}
function feedbackModalIntegration() { // fn#10975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:44676, offset: 0x00d9d58f, size: 36 bytes, params: 1, frame: 3
return {name: 'FeedbackModal', setupOnce: function() {
}, createDialog: createDialog};
function createDialog({options, screenshotIntegration, sendFeedback, shadow}) { // fn#10977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:44786, owner: feedbackModalIntegration.createDialog, offset: 0x00d9d5b3, size: 440 bytes, params: 2, frame: 20
var environment;
const env0_3 = options.useSentryUser;
let value = environment.__proto__;
const user = (require(826) /* metro dependency 826 */).getCurrentScope().getUser();
const user2 = (require(826) /* metro dependency 826 */).getIsolationScope().getUser();
const env0_4 = user && global.Object.keys(user).length ? user : user2 && global.Object.keys(user2).length ? user2 : (require(826) /* metro dependency 826 */).getGlobalScope().getUser();
const env0_5 = document.createElement('div');
const styleNonce = options.styleNonce;
const element = document.createElement('style');
element.textContent = '\n:host {\n --dialog-inset: var(--inset);\n}\n\n\n.dialog {\n position: fixed;\n z-index: var(--z-index);\n margin: 0;\n inset: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n height: 100vh;\n width: 100vw;\n\n color: var(--dialog-color, var(--foreground));\n fill: var(--dialog-color, var(--foreground));\n line-height: 1.75em;\n\n background-color: rgba(0, 0, 0, 0.05);\n border: none;\n inset: 0;\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n}\n\n.dialog__position {\n position: fixed;\n z-index: var(--z-index);\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n display: flex;\n max-height: calc(100vh - (2 * var(--page-margin)));\n}\n@media (max-width: 600px) {\n .dialog__position {\n inset: var(--page-margin);\n padding: 0;\n }\n}\n\n.dialog__position:has(.editor) {\n inset: var(--page-margin);\n padding: 0;\n}\n\n.dialog:not([open]) {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n padding: var(--dialog-padding, 24px);\n max-width: 100%;\n width: 100%;\n max-height: 100%;\n overflow: auto;\n\n background: var(--dialog-background, var(--background));\n border-radius: var(--dialog-border-radius, 20px);\n border: var(--dialog-border, var(--border));\n box-shadow: var(--dialog-box-shadow, var(--box-shadow));\n transform: translate(0, 0) scale(1);\n transition: transform 0.2s ease-in-out;\n}\n\n\n\n.dialog__header {\n display: flex;\n gap: 4px;\n justify-content: space-between;\n font-weight: var(--dialog-header-weight, 600);\n margin: 0;\n}\n.dialog__title {\n align-self: center;\n width: var(--form-width, 272px);\n}\n\n@media (max-width: 600px) {\n .dialog__title {\n width: auto;\n }\n}\n\n.dialog__position:has(.editor) .dialog__title {\n width: auto;\n}\n\n\n.brand-link {\n display: inline-flex;\n}\n.brand-link:focus-visible {\n outline: var(--outline);\n}\n\n\n.form {\n display: flex;\n overflow: auto;\n flex-direction: row;\n gap: 16px;\n flex: 1 0;\n}\n\n.form fieldset {\n border: none;\n margin: 0;\n padding: 0;\n}\n\n.form__right {\n flex: 0 0 auto;\n display: flex;\n overflow: auto;\n flex-direction: column;\n justify-content: space-between;\n gap: 20px;\n width: var(--form-width, 100%);\n}\n\n.dialog__position:has(.editor) .form__right {\n width: var(--form-width, 272px);\n}\n\n.form__top {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.form__error-container {\n color: var(--error-color);\n fill: var(--error-color);\n}\n\n.form__label {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin: 0px;\n}\n\n.form__label__text {\n display: flex;\n gap: 4px;\n align-items: center;\n}\n\n.form__label__text--required {\n font-size: 0.85em;\n}\n\n.form__input {\n font-family: inherit;\n line-height: inherit;\n background: transparent;\n box-sizing: border-box;\n border: var(--input-border, var(--border));\n border-radius: var(--input-border-radius, 6px);\n color: var(--input-color, inherit);\n fill: var(--input-color, inherit);\n font-size: var(--input-font-size, inherit);\n font-weight: var(--input-font-weight, 500);\n padding: 6px 12px;\n}\n\n.form__input::placeholder {\n opacity: 0.65;\n color: var(--input-placeholder-color, inherit);\n filter: var(--interactive-filter);\n}\n\n.form__input:focus-visible {\n outline: var(--input-focus-outline, var(--outline));\n}\n\n.form__input--textarea {\n font-family: inherit;\n resize: vertical;\n}\n\n.error {\n color: var(--error-color);\n fill: var(--error-color);\n}\n\n\n.btn-group {\n display: grid;\n gap: 8px;\n}\n\n.btn {\n line-height: inherit;\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n cursor: pointer;\n font-family: inherit;\n font-size: var(--button-font-size, inherit);\n font-weight: var(--button-font-weight, 600);\n padding: var(--button-padding, 6px 16px);\n}\n.btn[disabled] {\n opacity: 0.6;\n pointer-events: none;\n}\n\n.btn--primary {\n color: var(--button-primary-color, var(--accent-foreground));\n fill: var(--button-primary-color, var(--accent-foreground));\n background: var(--button-primary-background, var(--accent-background));\n border: var(--button-primary-border, var(--border));\n border-radius: var(--button-primary-border-radius, 6px);\n font-weight: var(--button-primary-font-weight, 500);\n}\n.btn--primary:hover {\n color: var(--button-primary-hover-color, var(--accent-foreground));\n fill: var(--button-primary-hover-color, var(--accent-foreground));\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n}\n.btn--primary:focus-visible {\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n outline: var(--button-primary-focus-outline, var(--outline));\n}\n\n.btn--default {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-background, var(--background));\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n font-weight: var(--button-font-weight, 500);\n}\n.btn--default:hover {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n.btn--default:focus-visible {\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n outline: var(--button-focus-outline, var(--outline));\n}\n\n\n.success__position {\n position: fixed;\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n z-index: var(--z-index);\n}\n.success__content {\n background: var(--success-background, var(--background));\n border: var(--success-border, var(--border));\n border-radius: var(--success-border-radius, 1.7em/50%);\n box-shadow: var(--success-box-shadow, var(--box-shadow));\n font-weight: var(--success-font-weight, 600);\n color: var(--success-color);\n fill: var(--success-color);\n padding: 12px 24px;\n line-height: 1.75em;\n\n display: grid;\n align-items: center;\n grid-auto-flow: column;\n gap: 6px;\n cursor: default;\n}\n\n.success__icon {\n display: flex;\n}\n\n';
if (styleNonce) {
element.setAttribute('nonce', styleNonce);
}
const object = {};
Object.defineProperty(object, 'el', {get: _fun10978, set: undefined, enumerable: true, configurable: true});
object.appendToDom = appendToDom_10979;
object.removeFromDom = removeFromDom_10980;
object.open = open;
object.close = close_10982;
if (screenshotIntegration != null) {
value = screenshotIntegration.createInput({h: y$1, hooks: env1_41, dialog: object, options: options});
}
return object;
function _fun10978() { // fn#10978, offset: 0x00d9d76b, size: 9 bytes, params: 1, frame: 1
return env0_5;
}
function createDialogAppendToDom() { // fn#10979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:51856, owner: feedbackModalIntegration.createDialog.appendToDom, offset: 0x00d9d774, size: 85 bytes, params: 1, frame: 13
if (!(shadow.contains(Module00057Module) || shadow.contains(env0_5))) {
shadowBinding = shadow;
shadowBinding.appendChild(Module00057Module);
shadowBinding.appendChild(env0_5);
}
}
function createDialogRemoveFromDom() { // fn#10980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:51960, owner: feedbackModalIntegration.createDialog.removeFromDom, offset: 0x00d9d7c9, size: 62 bytes, params: 1, frame: 10
env0_5.remove();
Module00057Module.remove();
document.body.style.overflow = env0_7;
}
function open() { // fn#10981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:52037, owner: feedbackModalIntegration.createDialog.open, offset: 0x00d9d807, size: 150 bytes, params: 1, frame: 15
renderContent(true);
if (options.onFormOpen != null) {
options.onFormOpen();
}
const client = (Module00826Module).getClient();
if (client != null) {
client.emit('openFeedbackWidget');
}
env0_7 = document.body.style.overflow;
document.body.style.overflow = 'hidden';
}
function createDialogClose() { // fn#10982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:52224, owner: feedbackModalIntegration.createDialog.close, offset: 0x00d9d89d, size: 45 bytes, params: 1, frame: 12
renderContent(false);
document.body.style.overflow = env0_7;
}
function renderContent(a0) { // fn#10983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:52343, owner: feedbackModalIntegration.createDialog.renderContent, offset: 0x00d9d8ca, size: 498 bytes, params: 2, frame: 33
let y$1Binding = y$1;
let object = {};
const optionsBinding = options;
object.options = optionsBinding;
object.screenshotInput = env0_8;
object.showName = optionsBinding.showName || options.isNameRequired;
object.showEmail = options.showEmail || options.isEmailRequired;
let String = global.String;
let r8 = useSentryUser && env0_4?.[useSentryUser.name];
r8 = !r8 ? '' : r8;
const value5 = undefined;
object.defaultName = String(r8);
String = global.String;
let r7 = useSentryUser && (env0_4 == null ? value5 : env0_4[useSentryUser.email]);
r7 = !r7 ? '' : r7;
object.defaultEmail = String(r7);
object.onFormClose = function() {
renderContent(false);
if (options.onFormClose != null) {
options.onFormClose();
}
};
object.onSubmit = sendFeedback;
object.onSubmitSuccess = function(a0, a1) {
renderContent(false);
if (options.onSubmitSuccess != null) {
options.onSubmitSuccess(a0, a1);
}
};
object.onSubmitError = function(a0) {
if (options.onSubmitError != null) {
options.onSubmitError(a0);
}
};
object.onFormSubmitted = function() {
if (options.onFormSubmitted != null) {
options.onFormSubmitted();
}
};
object.open = a0;
const value7 = y$1Binding(Dialog, object);
const binding = env0_5;
if (env2_16.__) {
env2_16.__(value7, binding);
}
const __k = binding.__k;
object = [];
const items2 = [];
y$1Binding = y$1;
const render_10789Binding = render_10789;
const value8 = null;
const value9 = y$1Binding(render_10789Binding, value8, [value7]);
binding.__k = value9;
M(binding, value9, __k || env2_22, env2_22, value5 !== binding.ownerSVGElement,
__k ? value8 : binding.firstChild ? slice.call(binding.childNodes) : value8, object,
__k ? __k.__e : binding.firstChild, false, items2);
value9.__d = value5;
j$1(object, value9, items2);
return value5;
}
}
}
function feedbackScreenshotIntegration() { // fn#10988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:53248, offset: 0x00d9db72, size: 36 bytes, params: 1, frame: 3
return {name: 'FeedbackScreenshot', setupOnce: function() {
}, createInput: createInput};
function createInput({h, hooks, dialog, options}) { // fn#10990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:53367, owner: feedbackScreenshotIntegration.createInput, offset: 0x00d9db96, size: 125 bytes, params: 2, frame: 18
const element = document.createElement('canvas');
const object = {};
object.input = ScreenshotEditorFactory({h: h, hooks: hooks, outputBuffer: element, dialog: dialog,
options: options});
const env0_0 = env1_4(_fun10992);
object.value = value_10994;
return object;
function* _fun10992() { // fn#10992, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:53562, offset: 0x00d9dc1c, size: 144 bytes, params: 1, frame: 14
var Uint8Array;
if (true) {
var Promise = global.Promise;
var promise = new Promise(_fun10993);
yield promise;
if (false) {
return undefined;
}
if (promise) {
Uint8Array = global.Uint8Array;
yield promise.arrayBuffer();
promise = undefined;
if (false) {
return promise;
}
return {'data': null, 'filename': 'screenshot.png', 'contentType': 'application/png',
data: new Uint8Array(promise)};
}
}
function _fun10993(a0) { // fn#10993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:53599, offset: 0x00d9dcac, size: 32 bytes, params: 2, frame: 13
env2_1.toBlob(a0, 'image/png');
}
}
function createInputValue() { // fn#10994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:53753, owner: feedbackScreenshotIntegration.createInput.value, offset: 0x00d71197, size: 29 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
}
function getFeedback() { // fn#10995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:53822, offset: 0x00d9dccc, size: 61 bytes, params: 1, frame: 12
const value = undefined;
const client = (Module00826Module).getClient();
return client == null ? value : client.getIntegrationByName('Feedback');
}
}
function getThemedCssVariables({foreground, background, accentForeground, accentBackground, successColor, errorColor, border, boxShadow, outline, interactiveFilter}) { // fn#10784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:7496, offset: 0x00d970b1, size: 148 bytes, params: 2, frame: 49
return '\n --foreground: ' + foreground + ';\n --background: ' + background + ';\n --accent-foreground: ' + accentForeground + ';\n --accent-background: ' + accentBackground + ';\n --success-color: ' + successColor + ';\n --error-color: ' + errorColor + ';\n --border: ' + border + ';\n --box-shadow: ' + boxShadow + ';\n --outline: ' + outline + ';\n --interactive-filter: ' + interactiveFilter + ';\n ';
}
function I_10798({key, type}, a1, a2, a3) { // fn#10798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:11244, offset: 0x00d97d25, size: 311 bytes, params: 5, frame: 13
var r2;
var r3;
var r4;
var r11;
var r9;
var key2;
var type2;
var __u;
var length;
var key3;
var type3;
var key4;
var type4;
let value = 1;
const value2 = a2 - value;
const value3 = a2 + value;
let property = a1[a2];
if (property !== null) {
reducibleJoin27: while (true) {
reducibleJoin26: while (true) {
if (property) {
key2 = property.key;
if (key == key2) {
type2 = property.type;
reducibleJoin4: while (true) {
if (type === type2) {
break reducibleJoin27;
}
break reducibleJoin4;
}
}
reducibleJoin7: while (true) {
reducibleJoin6: while (true) {
if (property == null) {
break reducibleJoin6;
}
__u = property.__u;
if (131072 & __u) {
break reducibleJoin6;
}
r2 = value;
break reducibleJoin7;
}
value = 0;
r2 = value;
break reducibleJoin7;
}
if (!(a3 > r2)) {
break reducibleJoin26;
}
if (value2 >= 0) {
r3 = value3;
r4 = value2;
} else {
length = a1.length;
reducibleJoin10: while (true) {
if (value3 < length) {
r3 = value3;
r4 = value2;
break reducibleJoin10;
}
break reducibleJoin26;
}
}
reducibleLoop10: while (true) {
if (r4 >= 0) {
property = a1[r4];
reducibleJoin17: while (true) {
reducibleJoin16: while (true) {
if (property) {
__u = property.__u;
if (131072 & __u) {
break reducibleJoin16;
}
key3 = property.key;
if (key != key3) {
break reducibleJoin16;
}
type3 = property.type;
if (type === type3) {
return r4;
}
break reducibleJoin16;
}
break reducibleJoin16;
}
value = typeof r4 === 'bigint' ? r4 - 1n : +r4 - 1;
r11 = value;
break reducibleJoin17;
}
} else {
r11 = r4;
}
length = a1.length;
if (r3 < length) {
property = a1[r3];
reducibleJoin24: while (true) {
reducibleJoin23: while (true) {
if (property) {
__u = property.__u;
if (131072 & __u) {
break reducibleJoin23;
}
key4 = property.key;
if (key != key4) {
break reducibleJoin23;
}
type4 = property.type;
if (type === type4) {
return r3;
}
break reducibleJoin23;
}
break reducibleJoin23;
}
value = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
r9 = value;
break reducibleJoin24;
}
} else {
r9 = r3;
}
if (r11 >= 0) {
r3 = r9;
r4 = r11;
continue reducibleLoop10;
}
length = a1.length;
if (r9 < length) {
r3 = r9;
r4 = r11;
continue reducibleLoop10;
}
break reducibleJoin26;
}
} else {
reducibleJoin7: while (true) {
reducibleJoin6: while (true) {
if (property == null) {
break reducibleJoin6;
}
__u = property.__u;
if (131072 & __u) {
break reducibleJoin6;
}
r2 = value;
break reducibleJoin7;
}
value = 0;
r2 = value;
break reducibleJoin7;
}
if (!(a3 > r2)) {
break reducibleJoin26;
}
if (value2 >= 0) {
r3 = value3;
r4 = value2;
} else {
length = a1.length;
reducibleJoin10: while (true) {
if (value3 < length) {
r3 = value3;
r4 = value2;
break reducibleJoin10;
}
break reducibleJoin26;
}
}
reducibleLoop10: while (true) {
if (r4 >= 0) {
property = a1[r4];
reducibleJoin17: while (true) {
reducibleJoin16: while (true) {
if (property) {
__u = property.__u;
if (131072 & __u) {
break reducibleJoin16;
}
key3 = property.key;
if (key != key3) {
break reducibleJoin16;
}
type3 = property.type;
if (type === type3) {
return r4;
}
break reducibleJoin16;
}
break reducibleJoin16;
}
value = typeof r4 === 'bigint' ? r4 - 1n : +r4 - 1;
r11 = value;
break reducibleJoin17;
}
} else {
r11 = r4;
}
length = a1.length;
if (r3 < length) {
property = a1[r3];
reducibleJoin24: while (true) {
reducibleJoin23: while (true) {
if (property) {
__u = property.__u;
if (131072 & __u) {
break reducibleJoin23;
}
key4 = property.key;
if (key != key4) {
break reducibleJoin23;
}
type4 = property.type;
if (type === type4) {
return r3;
}
break reducibleJoin23;
}
break reducibleJoin23;
}
value = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
r9 = value;
break reducibleJoin24;
}
} else {
r9 = r3;
}
if (r11 >= 0) {
r3 = r9;
r4 = r11;
continue reducibleLoop10;
}
length = a1.length;
if (r9 < length) {
r3 = r9;
r4 = r11;
continue reducibleLoop10;
}
break reducibleJoin26;
}
}
}
return -1;
}
}
return a2;
}
function _fun10819({__N}) { // fn#10819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:18309, offset: 0x00d996bb, size: 14 bytes, params: 2, frame: 1
return !__N;
}
function __e(a0, a1, a2, a3) { // fn#10917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1161:16940, offset: 0x00d9bec9, size: 213 bytes, params: 5, frame: 22
var r0;
var __;
var r6;
var r7;
var value;
var value2;
var value3;
var __c;
var __2;
var constructor;
var getDerivedStateFromError;
var setState;
var __d;
var componentDidCatch;
var object;
var error;
reduciblePort34: while (true) {
value = a0;
value2 = a3;
value3 = undefined;
__ = a1.__;
if (!__) {
r0 = value;
break reduciblePort34;
}
reducibleLoopEntryNormalSkip33: while (true) {
reducibleLoopEntryLanding33: while (true) {
exceptionLanding32: while (true) {
r0 = value;
r6 = value3;
reducibleLoop1: while (true) {
exceptionLoopEntryRetry33: while (true) {
exceptionLanding32: while (true) {
__c = __.__c;
if (__c) {
__2 = __c.__;
reducibleJoin33: while (true) {
if (__2) {
break reducibleJoin33;
}
try {
constructor = __c.constructor;
} catch (error) {
break exceptionLanding32;
}
reducibleJoin9: while (true) {
if (constructor) {
try {
getDerivedStateFromError = constructor.getDerivedStateFromError;
} catch (error) {
break exceptionLanding32;
}
try {
value = getDerivedStateFromError != null;
} catch (error) {
break exceptionLanding32;
}
r7 = value;
break reducibleJoin9;
}
r7 = constructor;
break reducibleJoin9;
}
reducibleJoin18: while (true) {
if (r7) {
try {
setState = __c.setState;
} catch (error) {
break exceptionLanding32;
}
try {
getDerivedStateFromError = constructor.getDerivedStateFromError;
} catch (error) {
break exceptionLanding32;
}
try {
value = Reflect.apply(getDerivedStateFromError, constructor, [r0]);
} catch (error) {
break exceptionLanding32;
}
try {
Reflect.apply(setState, __c, [value]);
} catch (error) {
break exceptionLanding32;
}
try {
__d = __c.__d;
} catch (error) {
break exceptionLanding32;
}
r6 = __d;
break reducibleJoin18;
}
break reducibleJoin18;
}
try {
componentDidCatch = __c.componentDidCatch;
} catch (error) {
break exceptionLanding32;
}
try {
value = componentDidCatch == null;
} catch (error) {
break exceptionLanding32;
}
reducibleJoin28: while (true) {
if (value) {
break reducibleJoin28;
}
try {
componentDidCatch = __c.componentDidCatch;
} catch (error) {
break exceptionLanding32;
}
reducibleJoin25: while (true) {
if (value2) {
r7 = value2;
break reducibleJoin25;
}
try {
object = {};
} catch (error) {
break exceptionLanding32;
}
r7 = object;
break reducibleJoin25;
}
try {
Reflect.apply(componentDidCatch, __c, [r0, r7]);
} catch (error) {
break exceptionLanding32;
}
try {
__d = __c.__d;
} catch (error) {
break exceptionLanding32;
}
r6 = __d;
break reducibleJoin28;
}
if (r6) {
break reducibleLoop1;
}
break reducibleJoin33;
}
}
__ = __.__;
if (__) {
continue reducibleLoop1;
}
break reduciblePort34;
}
r0 = error;
break exceptionLoopEntryRetry33;
}
__ = __.__;
reducibleJoin1: while (true) {
if (__) {
break reducibleJoin1;
}
break reduciblePort34;
}
}
try {
__c.__E = __c;
} catch (error) {
break exceptionLanding32;
}
return __c;
break reducibleLoopEntryNormalSkip33;
}
r0 = error;
break reducibleLoopEntryLanding33;
}
__ = __.__;
reducibleJoin1: while (true) {
if (__) {
break reducibleJoin1;
}
break reduciblePort34;
}
}
}
throw r0;
}
function feedbackModalIntegrationSetupOnce() { // fn#10976, owner: feedbackModalIntegration.setupOnce, offset: 0x00c37b63, size: 4 bytes, params: 1, frame: 1
}
function feedbackScreenshotIntegrationSetupOnce() { // fn#10989, owner: feedbackScreenshotIntegration.setupOnce, offset: 0x00c37b63, size: 4 bytes, params: 1, frame: 1
}
global.__d(_fun10768, 1034, [65, 29, 5, 77, 57,
826]) /* metro module 1034, dependencies: [65, 29, 5, 77, 57, 826] */;