27347 lines
1.3 MiB
Plaintext
27347 lines
1.3 MiB
Plaintext
/* Metro module 1096; source: unknown; dependencies: [5, 15, 17, 18, 162, 57, 65, 6, 7, 826, 1041] */
|
|
import * as ClassCallCheckModule from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import * as CreateClassModule from './module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import * as PossibleConstructorReturnModule from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import * as Module00017Module from './module-00017.js'; /* Metro dependency 17 */
|
|
import * as InheritsModule from './module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import * as Module00057Module from './module-00057.js'; /* Metro dependency 57 */
|
|
import * as Module00065Module from './module-00065.js'; /* Metro dependency 65 */
|
|
import * as Module00162Module from './module-00162.js'; /* Metro dependency 162 */
|
|
import * as Module00826Module from './module-00826.js'; /* Metro dependency 826 */
|
|
import * as moduleValue22 from './module-01041.js'; /* Metro dependency 1041 */
|
|
|
|
function _fun11410(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#11410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:6, offset: 0x00dabd8e, size: 4070 bytes, params: 8, frame: 45
|
|
var object3;
|
|
var r7;
|
|
var r31;
|
|
var from;
|
|
var r8;
|
|
var Proxy;
|
|
var Reflect;
|
|
var object2;
|
|
var value13;
|
|
var uint8Array;
|
|
var charCodeAt;
|
|
var value15;
|
|
var Array;
|
|
var items2;
|
|
var closure2;
|
|
var value16;
|
|
var property;
|
|
var value17;
|
|
var document;
|
|
var createElement;
|
|
var element;
|
|
var body;
|
|
var appendChild;
|
|
var contentWindow;
|
|
var value18;
|
|
var Array2;
|
|
var Array3;
|
|
var removeChild;
|
|
var error;
|
|
var console;
|
|
var debug;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var object;
|
|
var Set;
|
|
var Mutation;
|
|
var items3;
|
|
var StyleSheetRule;
|
|
var StyleDeclaration;
|
|
var AdoptedStyleSheet;
|
|
var CanvasMutation;
|
|
var Selection;
|
|
var MediaInteraction;
|
|
var value22;
|
|
var set;
|
|
var value23;
|
|
var value24;
|
|
var value25;
|
|
var __SENTRY_DEBUG__;
|
|
var value26;
|
|
var Error;
|
|
var value27;
|
|
const GLOBAL_OBJ = (Module00826Module).GLOBAL_OBJ;
|
|
var navigator;
|
|
var value28;
|
|
var value29;
|
|
let env0_0 = require;
|
|
let value = undefined;
|
|
const isShadowRoot = function(a0) {
|
|
var r4;
|
|
var value = undefined;
|
|
r4 = a0 == null ? value : a0.host;
|
|
return global.Boolean((r4 == null ? value : r4.shadowRoot) === a0);
|
|
};
|
|
const isNativeShadowDom = function(a0) {
|
|
return global.Object.prototype.toString.call(a0) === '[object ShadowRoot]';
|
|
};
|
|
const shouldMaskInput = function({maskInputOptions, tagName, type}) {
|
|
var r0;
|
|
var r1;
|
|
r0 = tagName !== 'OPTION' ? tagName : 'SELECT';
|
|
var Boolean = global.Boolean;
|
|
r1 = maskInputOptions[r0.toLowerCase()] || type && maskInputOptions[type];
|
|
r1 = !r1 ? type === 'password' : r1;
|
|
if (!r1) {
|
|
r0 = r0 === 'INPUT' && !type;
|
|
r0 = r0 && maskInputOptions.text;
|
|
r1 = r0;
|
|
}
|
|
return Boolean(r1);
|
|
};
|
|
const maskInputValue = function({isMasked, element, value, maskInputFn}) {
|
|
var r4;
|
|
r4 = value || '';
|
|
return isMasked ? '*'.repeat((maskInputFn ? maskInputFn(r4, element) : r4).length) : r4;
|
|
};
|
|
const toLowerCase = function(a0) {
|
|
return a0.toLowerCase();
|
|
};
|
|
const toUpperCase = function(a0) {
|
|
return a0.toUpperCase();
|
|
};
|
|
const getInputValue = function(a0, a1, a2) {
|
|
return a1 !== 'INPUT' ? a0.value : a2 === 'radio' ? a0.getAttribute('value') || '' : a2 !== 'checkbox' ? a0.value : a0.getAttribute('value') || '';
|
|
};
|
|
const getIframeContentDocument = function(a0) {
|
|
var contentDocument;
|
|
var error;
|
|
try {
|
|
contentDocument = a0.contentDocument;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
return contentDocument;
|
|
};
|
|
const isSVGElement = function(a0) {
|
|
var Boolean = global.Boolean;
|
|
return Boolean(a0.tagName === 'svg' || a0.ownerSVGElement);
|
|
};
|
|
const ignoreAttribute = function(a0, a1, a2) {
|
|
return (a0 === 'video' || a0 === 'audio') && a1 === 'autoplay';
|
|
};
|
|
const createMatchPredicate = function(a0, a1) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
return _fun11442;
|
|
};
|
|
const lowerIfExists = function(a0) {
|
|
return a0 == null ? '' : a0.toLowerCase();
|
|
};
|
|
const on_11462 = function(a0, a1) {
|
|
var r3;
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
r3 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : global.document;
|
|
var env0_2 = r3;
|
|
r3.addEventListener(a0, a1, {'capture': true, 'passive': true});
|
|
return _fun11463;
|
|
};
|
|
const throttle$1 = function(a0, a1) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
var env0_2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
var env0_3 = null;
|
|
var env0_4 = 0;
|
|
return _fun11465;
|
|
};
|
|
const hookSetter = function(a0, a1, a2, a3) {
|
|
var r1;
|
|
var property;
|
|
var value = a2;
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
var env0_2 = value;
|
|
r1 = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : global.window;
|
|
var env0_3 = r1.Object.getOwnPropertyDescriptor(a0, a1);
|
|
property = r1.Object;
|
|
property.defineProperty(a0, a1, a3 ? value : {set: _fun11469});
|
|
return _fun11471;
|
|
};
|
|
const getWindowHeight = function() {
|
|
var r0;
|
|
r0 = global.window.innerHeight || global.document.documentElement && global.document.documentElement.clientHeight;
|
|
r0 = !r0 ? global.document.body && global.document.body.clientHeight : r0;
|
|
return r0;
|
|
};
|
|
const getWindowWidth = function() {
|
|
var r0;
|
|
r0 = global.window.innerWidth || global.document.documentElement && global.document.documentElement.clientWidth;
|
|
r0 = !r0 ? global.document.body && global.document.body.clientWidth : r0;
|
|
return r0;
|
|
};
|
|
const closestElementOfNode$1 = function(a0) {
|
|
var r0;
|
|
var property;
|
|
var ELEMENT_NODE;
|
|
var value2;
|
|
var error;
|
|
var value = a0;
|
|
if (value) {
|
|
try {
|
|
property = value.nodeType;
|
|
ELEMENT_NODE = value.ELEMENT_NODE;
|
|
value2 = property === ELEMENT_NODE;
|
|
if (value2) {
|
|
r0 = value;
|
|
} else {
|
|
property = value.parentElement;
|
|
r0 = property;
|
|
}
|
|
} catch (error) {
|
|
return null;
|
|
}
|
|
return r0;
|
|
}
|
|
return null;
|
|
};
|
|
const isIgnored_11481 = function(a0, a1) {
|
|
return a1.getId(a0) === -2;
|
|
};
|
|
const legacy_isTouchEvent = function(a0) {
|
|
var Boolean = global.Boolean;
|
|
return Boolean(a0.changedTouches);
|
|
};
|
|
const isSerializedIframe = function(a0, a1) {
|
|
var Boolean = global.Boolean;
|
|
return Boolean(a0.nodeName === 'IFRAME' && a1.getMeta(a0));
|
|
};
|
|
const isSerializedStylesheet = function(a0, a1) {
|
|
var r1;
|
|
var Boolean = global.Boolean;
|
|
var value = a0.nodeName === 'LINK';
|
|
r1 = value && a0.nodeType === a0.ELEMENT_NODE && a0.getAttribute;
|
|
if (r1) {
|
|
value = a0.getAttribute('rel');
|
|
value = value === 'stylesheet';
|
|
r1 = value;
|
|
}
|
|
r1 = r1 && a1.getMeta(a0);
|
|
return Boolean(r1);
|
|
};
|
|
const hasShadowRoot = function(a0) {
|
|
var Boolean = global.Boolean;
|
|
return Boolean(a0?.shadowRoot);
|
|
};
|
|
const getShadowHost = function(a0) {
|
|
var r3;
|
|
var value3;
|
|
var value = null;
|
|
var value2 = undefined;
|
|
if (value == a0.getRootNode) {
|
|
r3 = value2;
|
|
} else {
|
|
value3 = a0.getRootNode();
|
|
r3 = value == value3 ? value2 : value3.nodeType;
|
|
}
|
|
return r3 === global.Node.DOCUMENT_FRAGMENT_NODE && a0.getRootNode().host ? a0.getRootNode().host : value;
|
|
};
|
|
const getIFrameContentDocument = function(a0) {
|
|
var contentDocument;
|
|
var error;
|
|
try {
|
|
contentDocument = a0.contentDocument;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
return contentDocument;
|
|
};
|
|
const isNodeInLinkedList = function(a0) {
|
|
return '__ln' in a0;
|
|
};
|
|
const deepDelete = function(a0, a1) {
|
|
var env0_0 = a0;
|
|
a0.delete(a1);
|
|
var childNodes = a1.childNodes;
|
|
if (childNodes != null) {
|
|
childNodes.forEach(_fun11495);
|
|
}
|
|
};
|
|
const isParentRemoved = function(a0, a1, a2) {
|
|
return a0.length !== 0 && _fun11497(a0, a1, a2);
|
|
};
|
|
const getEventTarget = function(a0) {
|
|
var r0;
|
|
var value2;
|
|
var value3;
|
|
var property;
|
|
var value4;
|
|
var error;
|
|
var value = a0;
|
|
reducibleJoin3: while (true) {
|
|
reduciblePort25: while (true) {
|
|
exceptionLanding24: while (true) {
|
|
try {
|
|
value2 = 'composedPath' in value;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
break reduciblePort25;
|
|
}
|
|
reducibleJoin27: while (true) {
|
|
if (value) {
|
|
property = value.target;
|
|
r0 = property;
|
|
break reducibleJoin27;
|
|
}
|
|
r0 = value;
|
|
break reducibleJoin27;
|
|
}
|
|
return r0;
|
|
}
|
|
if (value2) {
|
|
try {
|
|
property = value.composedPath;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
value4 = Reflect.apply(property, value, []);
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
property = value4.length;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
reducibleJoin25: while (true) {
|
|
if (property) {
|
|
try {
|
|
property = value4[0];
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
return property;
|
|
}
|
|
break reducibleJoin25;
|
|
}
|
|
} else {
|
|
try {
|
|
value3 = 'path' in value;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
reducibleJoin25: while (true) {
|
|
if (value3) {
|
|
try {
|
|
property = value.path;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
property = property.length;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
if (property) {
|
|
try {
|
|
property = value.path;
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
try {
|
|
property = property[0];
|
|
} catch (error) {
|
|
break exceptionLanding24;
|
|
}
|
|
return property;
|
|
}
|
|
break reducibleJoin25;
|
|
}
|
|
break reducibleJoin25;
|
|
}
|
|
}
|
|
reducibleJoin27: while (true) {
|
|
if (value) {
|
|
property = value.target;
|
|
r0 = property;
|
|
break reducibleJoin27;
|
|
}
|
|
r0 = value;
|
|
break reducibleJoin27;
|
|
}
|
|
return r0;
|
|
};
|
|
const getIdAndStyleId = function(a0, a1, a2) {
|
|
var r2;
|
|
var r3;
|
|
var r0;
|
|
var value;
|
|
var value3;
|
|
if (a0) {
|
|
if (a0.ownerNode) {
|
|
value = a1.getId(a0.ownerNode);
|
|
value3 = undefined;
|
|
r2 = value;
|
|
r3 = value3;
|
|
} else {
|
|
value = a2.getId(a0);
|
|
r2 = undefined;
|
|
r3 = value;
|
|
}
|
|
r0 = {styleId: r3, id: r2};
|
|
} else {
|
|
r0 = {};
|
|
}
|
|
return r0;
|
|
};
|
|
const hasNestedCSSRule = function(a0) {
|
|
return global.window[a0] !== undefined;
|
|
};
|
|
const canMonkeyPatchNestedCSSRule = function(a0) {
|
|
var Boolean = global.Boolean;
|
|
return Boolean(global.window[a0] !== undefined && global.window[a0].prototype && 'insertRule' in global.window[a0].prototype && 'deleteRule' in global.window[a0].prototype);
|
|
};
|
|
const record2 = record;
|
|
const timestampToMs = function(a0) {
|
|
var value = a0;
|
|
return value > 9999999999 ? value : 1000 * value;
|
|
};
|
|
const timestampToS = function(a0) {
|
|
var r0;
|
|
var value = a0;
|
|
if (value > 9999999999) {
|
|
value /= 1000;
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
const addBreadcrumbEvent = function(a0, a1) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
if (a1.category !== 'sentry.transaction') {
|
|
if (['ui.click', 'ui.input'].includes(a1.category)) {
|
|
a0.triggerUserActivity();
|
|
} else {
|
|
a0.checkAndHandleExpiredSession();
|
|
}
|
|
a0.addUpdate(_fun11633);
|
|
}
|
|
};
|
|
const getClosestInteractive = function(a0) {
|
|
var value = a0;
|
|
return value.closest('button,a') || value;
|
|
};
|
|
const getTargetNode = function(a0) {
|
|
var value = a0;
|
|
return typeof value === 'object' && !!value && 'target' in value ? value.target : value;
|
|
};
|
|
const nowInSeconds = function() {
|
|
var Date = global.Date;
|
|
return Date.now() / 1000;
|
|
};
|
|
const createBreadcrumb = function(a0) {
|
|
var Object = global.Object;
|
|
var object = {};
|
|
var Date = global.Date;
|
|
object.timestamp = Date.now() / 1000;
|
|
object.type = 'default';
|
|
return Object.assign(object, a0);
|
|
};
|
|
const webVitalHandler = function(a0, a1) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
return _fun11653;
|
|
};
|
|
const getAbsoluteTime_11655 = function(a0) {
|
|
return ((require(dependencyMap[9]).browserPerformanceTimeOrigin() || require(dependencyMap[9]).GLOBAL_OBJ.performance.timeOrigin) + a0) / 1000;
|
|
};
|
|
const isLayoutShift = function(a0) {
|
|
return a0.sources !== undefined;
|
|
};
|
|
const isSampled = function(a0) {
|
|
return a0 !== undefined && global.Math.random() < a0;
|
|
};
|
|
const isExpired = function(a0, a1) {
|
|
var r3;
|
|
var r0;
|
|
var value2;
|
|
if (arguments.length > 2) {
|
|
if (arguments[2] !== undefined) {
|
|
r3 = arguments[2];
|
|
} else {
|
|
value2 = new global.Date();
|
|
value2 = Number(value2);
|
|
r3 = value2;
|
|
}
|
|
} else {
|
|
value2 = new global.Date();
|
|
value2 = Number(value2);
|
|
r3 = value2;
|
|
}
|
|
r0 = a0 === null || a1 === undefined;
|
|
r0 = !r0 ? a1 < 0 : r0;
|
|
r0 = !r0 ? a1 !== 0 && a0 + a1 <= r3 : r0;
|
|
return r0;
|
|
};
|
|
const _addEvent = function(a0, a1, a2) {
|
|
return _addEvent3.apply(this, arguments);
|
|
};
|
|
const isErrorEvent_11683 = function(a0) {
|
|
return !a0.type;
|
|
};
|
|
const isTransactionEvent_11684 = function(a0) {
|
|
return a0.type === 'transaction';
|
|
};
|
|
const isFeedbackEvent = function(a0) {
|
|
return a0.type === 'feedback';
|
|
};
|
|
const handleAfterSendEvent = function(a0) {
|
|
var env0_0 = a0;
|
|
return _fun11687;
|
|
};
|
|
const handleBeforeSendEvent = function(a0) {
|
|
var env0_0 = a0;
|
|
return _fun11692;
|
|
};
|
|
const isBreadcrumbWithCategory = function(a0) {
|
|
return !!a0.category;
|
|
};
|
|
const handleGlobalEventListener = function(a0) {
|
|
var env0_0 = a0;
|
|
var Object = global.Object;
|
|
return Object.assign(_fun11702, {id: 'Replay'});
|
|
};
|
|
const createPerformanceSpans = function(a0, a1) {
|
|
var env0_0 = a0;
|
|
return a1.map(_fun11706);
|
|
};
|
|
const handleHistorySpanListener = function(a0) {
|
|
var env0_0 = a0;
|
|
return _fun11708;
|
|
};
|
|
const parseContentLengthHeader = function(a0) {
|
|
var int;
|
|
var value = undefined;
|
|
if (a0) {
|
|
int = (0, global.parseInt)(a0, 10);
|
|
return (0, global.isNaN)(int) ? value : int;
|
|
}
|
|
return value;
|
|
};
|
|
const makeNetworkReplayBreadcrumb = function(a0, a1) {
|
|
return a1 ? {type: a0, start: a1.startTimestamp / 1000, end: a1.endTimestamp / 1000, name: a1.url,
|
|
data: {method: a1.method, statusCode: a1.statusCode, request: a1.request, response: a1.response}} : null;
|
|
};
|
|
const buildSkippedNetworkRequestOrResponse = function(a0) {
|
|
return {headers: {}, size: a0, _meta: {warnings: ['URL_SKIPPED']}};
|
|
};
|
|
const getAllowedHeaders = function(a0, a1) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
var Object = global.Object;
|
|
return Object.entries(a0).reduce(_fun11720, {});
|
|
};
|
|
const urlMatches = function(a0, a1) {
|
|
return require(dependencyMap[9]).stringMatchesSomePattern(_fun11722(a0), a1);
|
|
};
|
|
const getAllHeaders = function(a0, a1) {
|
|
var env0_0 = a0;
|
|
a1.forEach(_fun11747);
|
|
return {};
|
|
};
|
|
const getHandleRecordingEmit = function(a0) {
|
|
var env0_0 = a0;
|
|
var env0_1 = false;
|
|
return _fun11767;
|
|
};
|
|
const sendReplay = function(a0) {
|
|
return _sendReplay.apply(this, arguments);
|
|
};
|
|
const throttle_11785 = function(a0, a1, a2) {
|
|
var env0_0 = a0;
|
|
var env0_1 = 300;
|
|
var env0_2 = 5;
|
|
var Map = global.Map;
|
|
var env0_3 = new Map();
|
|
var env0_4 = false;
|
|
return _fun11786;
|
|
};
|
|
let value2 = 0;
|
|
let env0_2 = require(dependencyMap[value2]);
|
|
let env0_3 = PossibleConstructorReturnModule;
|
|
let env0_4 = Module00017Module;
|
|
let value3 = Module00162Module;
|
|
let Object = global.Object;
|
|
let defineProperty = Object.defineProperty;
|
|
let Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
Object = global.Object;
|
|
defineProperty = Object.defineProperty;
|
|
object3 = {Document: value2};
|
|
object3[value2] = 'Document';
|
|
object3.DocumentType = 1;
|
|
object3[1] = 'DocumentType';
|
|
object3.Element = 2;
|
|
object3[2] = 'Element';
|
|
object3.Text = 3;
|
|
object3[3] = 'Text';
|
|
object3.CDATA = 4;
|
|
object3[4] = 'CDATA';
|
|
object3.Comment = 5;
|
|
object3[5] = 'Comment';
|
|
let value4 = _fun11795();
|
|
const env0_21 = {};
|
|
const RegExp = global.RegExp;
|
|
let prototype = RegExp.prototype;
|
|
const value5 = Object.create(prototype, {constructor: {value: RegExp}});
|
|
const regExp = new RegExp('[^a-z0-9-_:]');
|
|
const env0_25 = regExp instanceof Object ? regExp : value5;
|
|
const env0_26 = RegExp('url\\((?:(\')([^\']*)\'|(")(.*?)"|([^)]*))\\)', 'gm');
|
|
const env0_27 = RegExp('^(?:[a-z+]+:)?\\/\\/', 'i');
|
|
const env0_28 = RegExp('^www\\..*', 'i');
|
|
const env0_29 = RegExp('^(data:)([^,]*),(.*)', 'i');
|
|
const env0_30 = RegExp('^[^ \\t\\n\\r\\u000c]+', '');
|
|
const env0_31 = RegExp('^[, \\t\\n\\r\\u000c]+', '');
|
|
let WeakMap = global.WeakMap;
|
|
let weakMap = new WeakMap();
|
|
object3 = {map: {}, getId: getId, getNode: getNode, removeNodeFromMap: removeNodeFromMap, has: has_11811,
|
|
reset: reset_11812};
|
|
let window = global.window;
|
|
const value9 = typeof window !== 'undefined';
|
|
reducibleJoin2: while (true) {
|
|
if (value9) {
|
|
window = global.window;
|
|
Proxy = window.Proxy;
|
|
r7 = Proxy;
|
|
break reducibleJoin2;
|
|
}
|
|
r7 = value9;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (r7) {
|
|
window = global.window;
|
|
Reflect = window.Reflect;
|
|
r7 = Reflect;
|
|
break reducibleJoin4;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
reducibleJoin6: while (true) {
|
|
if (r7) {
|
|
Proxy = global.Proxy;
|
|
object2 = {get: get_11813};
|
|
prototype = Proxy.prototype;
|
|
Object.create(prototype, {constructor: {value: Proxy}});
|
|
new Proxy(object3);
|
|
break reducibleJoin6;
|
|
}
|
|
break reducibleJoin6;
|
|
}
|
|
let Date = global.Date;
|
|
const now = Date.now;
|
|
var env0_34;
|
|
const regexp = RegExp('[1-9][0-9]{12}', '');
|
|
const test = regexp.test;
|
|
Date = global.Date;
|
|
const value10 = Date.now();
|
|
reducibleJoin8: while (true) {
|
|
if (Reflect.apply(test, regexp, [value10.toString()])) {
|
|
break reducibleJoin8;
|
|
}
|
|
env0_34 = function() {
|
|
var Date = global.Date;
|
|
return new Date().getTime();
|
|
};
|
|
break reducibleJoin8;
|
|
}
|
|
const env0_35 = _fun11815();
|
|
const env0_36 = {};
|
|
object3 = {DomContentLoaded: value2};
|
|
object3[value2] = 'DomContentLoaded';
|
|
object3.Load = 1;
|
|
object3[1] = 'Load';
|
|
object3.FullSnapshot = 2;
|
|
object3[2] = 'FullSnapshot';
|
|
object3.IncrementalSnapshot = 3;
|
|
object3[3] = 'IncrementalSnapshot';
|
|
object3.Meta = 4;
|
|
object3[4] = 'Meta';
|
|
object3.Custom = 5;
|
|
object3[5] = 'Custom';
|
|
object3.Plugin = 6;
|
|
object3[6] = 'Plugin';
|
|
object3 = {Mutation: value2};
|
|
object3[value2] = 'Mutation';
|
|
object3.MouseMove = 1;
|
|
object3[1] = 'MouseMove';
|
|
object3.MouseInteraction = 2;
|
|
object3[2] = 'MouseInteraction';
|
|
object3.Scroll = 3;
|
|
object3[3] = 'Scroll';
|
|
object3.ViewportResize = 4;
|
|
object3[4] = 'ViewportResize';
|
|
object3.Input = 5;
|
|
object3[5] = 'Input';
|
|
object3.TouchMove = 6;
|
|
object3[6] = 'TouchMove';
|
|
object3.MediaInteraction = 7;
|
|
object3[7] = 'MediaInteraction';
|
|
object3.StyleSheetRule = 8;
|
|
object3[8] = 'StyleSheetRule';
|
|
object3.CanvasMutation = 9;
|
|
object3[9] = 'CanvasMutation';
|
|
object3.Font = 10;
|
|
object3[10] = 'Font';
|
|
object3.Log = 11;
|
|
object3[11] = 'Log';
|
|
object3.Drag = 12;
|
|
object3[12] = 'Drag';
|
|
object3.StyleDeclaration = 13;
|
|
object3[13] = 'StyleDeclaration';
|
|
object3.Selection = 14;
|
|
object3[14] = 'Selection';
|
|
object3.AdoptedStyleSheet = 15;
|
|
object3[15] = 'AdoptedStyleSheet';
|
|
object3.CustomElement = 16;
|
|
object3[16] = 'CustomElement';
|
|
const object4 = {MouseUp: value2};
|
|
object4[value2] = 'MouseUp';
|
|
object4.MouseDown = 1;
|
|
object4[1] = 'MouseDown';
|
|
object4.Click = 2;
|
|
object4[2] = 'Click';
|
|
object4.ContextMenu = 3;
|
|
object4[3] = 'ContextMenu';
|
|
object4.DblClick = 4;
|
|
object4[4] = 'DblClick';
|
|
object4.Focus = 5;
|
|
object4[5] = 'Focus';
|
|
object4.Blur = 6;
|
|
object4[6] = 'Blur';
|
|
object4.TouchStart = 7;
|
|
object4[7] = 'TouchStart';
|
|
object4.TouchMove_Departed = 8;
|
|
object4[8] = 'TouchMove_Departed';
|
|
object4.TouchEnd = 9;
|
|
object4[9] = 'TouchEnd';
|
|
object4.TouchCancel = 10;
|
|
object4[10] = 'TouchCancel';
|
|
const object5 = {Mouse: value2};
|
|
object5[value2] = 'Mouse';
|
|
object5.Pen = 1;
|
|
object5[1] = 'Pen';
|
|
object5.Touch = 2;
|
|
object5[2] = 'Touch';
|
|
const object6 = {Play: value2};
|
|
object6[value2] = 'Play';
|
|
object6.Pause = 1;
|
|
object6[1] = 'Pause';
|
|
object6.Seeked = 2;
|
|
object6[2] = 'Seeked';
|
|
object6.VolumeChange = 3;
|
|
object6[3] = 'VolumeChange';
|
|
object6.RateChange = 4;
|
|
object6[4] = 'RateChange';
|
|
const env0_43 = _fun11823();
|
|
const moveKey = function(a0, a1) {
|
|
return '' + a0 + '@' + a1;
|
|
};
|
|
const env0_45 = _fun11829();
|
|
const env0_47 = [];
|
|
const env0_48 = ['INPUT', 'TEXTAREA', 'SELECT'];
|
|
WeakMap = global.WeakMap;
|
|
weakMap = new WeakMap();
|
|
const env0_50 = _fun11862();
|
|
const env0_51 = _fun11873();
|
|
const env0_52 = _fun11878();
|
|
const env0_53 = _fun11899();
|
|
const env0_54 = _fun11905();
|
|
let Uint8Array = global.Uint8Array;
|
|
if (typeof Uint8Array === 'undefined') {
|
|
r31 = [];
|
|
} else {
|
|
Uint8Array = global.Uint8Array;
|
|
prototype = Uint8Array.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: Uint8Array}});
|
|
uint8Array = new Uint8Array(256);
|
|
r31 = uint8Array instanceof Object ? uint8Array : value13;
|
|
}
|
|
let r27 = value2;
|
|
reducibleLoop14: while (true) {
|
|
charCodeAt = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.charCodeAt;
|
|
r31[Reflect.apply(charCodeAt, 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/', [r27])] = r27;
|
|
value15 = typeof r27 === 'bigint' ? r27 + 1n : +r27 + 1;
|
|
if (value15 < 64) {
|
|
r27 = value15;
|
|
continue reducibleLoop14;
|
|
}
|
|
break reducibleLoop14;
|
|
}
|
|
const env0_57 = _fun11917();
|
|
const env0_58 = _fun11928();
|
|
const env0_59 = _fun11936();
|
|
reducibleJoin17: while (true) {
|
|
reduciblePort48: while (true) {
|
|
exceptionLanding47: while (true) {
|
|
try {
|
|
Array = global.Array;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
break reducibleJoin17;
|
|
}
|
|
console = global.console;
|
|
debug = console.debug;
|
|
Reflect.apply(debug, console, ['Unable to override Array.from', error]);
|
|
break reduciblePort48;
|
|
}
|
|
prototype = value4.prototype;
|
|
value19 = Object.create(prototype, {constructor: {value: value4}});
|
|
value20 = new value4();
|
|
value21 = value20 instanceof Object ? value20 : value19;
|
|
var env0_60 = value21;
|
|
record2.mirror = value21;
|
|
record2.takeFullSnapshot = takeFullSnapshot;
|
|
object = {NotStarted: value2};
|
|
object[value2] = 'NotStarted';
|
|
object.Running = 1;
|
|
object[1] = 'Running';
|
|
object.Stopped = 2;
|
|
object[2] = 'Stopped';
|
|
Set = global.Set;
|
|
Mutation = object3.Mutation;
|
|
items3 = [Mutation];
|
|
StyleSheetRule = object3.StyleSheetRule;
|
|
items3[1] = StyleSheetRule;
|
|
StyleDeclaration = object3.StyleDeclaration;
|
|
items3[2] = StyleDeclaration;
|
|
AdoptedStyleSheet = object3.AdoptedStyleSheet;
|
|
items3[3] = AdoptedStyleSheet;
|
|
CanvasMutation = object3.CanvasMutation;
|
|
items3[4] = CanvasMutation;
|
|
Selection = object3.Selection;
|
|
items3[5] = Selection;
|
|
MediaInteraction = object3.MediaInteraction;
|
|
items3[6] = MediaInteraction;
|
|
prototype = Set.prototype;
|
|
value22 = Object.create(prototype, {constructor: {value: Set}});
|
|
set = new Set();
|
|
value23 = set instanceof Object ? set : value22;
|
|
var env0_62 = value23;
|
|
var env0_63 = _fun11946();
|
|
var env0_64 = ['A', 'BUTTON', 'INPUT'];
|
|
object3 = {Document: value2};
|
|
object3[value2] = 'Document';
|
|
object3.DocumentType = 1;
|
|
object3[1] = 'DocumentType';
|
|
object3.Element = 2;
|
|
object3[2] = 'Element';
|
|
object3.Text = 3;
|
|
object3[3] = 'Text';
|
|
object3.CDATA = 4;
|
|
object3[4] = 'CDATA';
|
|
object3.Comment = 5;
|
|
object3[5] = 'Comment';
|
|
var env0_65 = object3;
|
|
Set = global.Set;
|
|
prototype = Set.prototype;
|
|
value24 = Object.create(prototype, {constructor: {value: Set}});
|
|
set = new Set(['id', 'class', 'aria-label', 'role', 'name', 'alt', 'title', 'data-test-id', 'data-testid',
|
|
'disabled', 'aria-disabled', 'data-sentry-component']);
|
|
value25 = set instanceof Object ? set : value24;
|
|
var env0_66 = value25;
|
|
var handleDomListener = function(a0) {
|
|
var env0_0 = a0;
|
|
return _fun11967;
|
|
};
|
|
object3 = {resource: resource, paint: paint, navigation: navigation};
|
|
var env0_68 = object3;
|
|
__SENTRY_DEBUG__ = global.__SENTRY_DEBUG__;
|
|
value26 = typeof __SENTRY_DEBUG__ === 'undefined';
|
|
reducibleJoin54: while (true) {
|
|
if (value26) {
|
|
r8 = value26;
|
|
break reducibleJoin54;
|
|
}
|
|
__SENTRY_DEBUG__ = global.__SENTRY_DEBUG__;
|
|
r8 = __SENTRY_DEBUG__;
|
|
break reducibleJoin54;
|
|
}
|
|
var env0_69 = r8;
|
|
var env0_70 = ['log', 'warn', 'error'];
|
|
var env0_71 = '[Replay] ';
|
|
var env0_72 = makeReplayDebugLogger();
|
|
Error = global.Error;
|
|
value27 = value3(Error);
|
|
var env0_73 = _fun11983(value27);
|
|
var env0_74 = _fun11985();
|
|
var env0_75 = _fun11998();
|
|
var env0_76 = _fun12009();
|
|
var env0_77 = _fun12024();
|
|
navigator = GLOBAL_OBJ.navigator;
|
|
var env0_78 = navigator;
|
|
Error = global.Error;
|
|
value28 = value3(Error);
|
|
var env0_79 = _fun12046(value28);
|
|
Error = global.Error;
|
|
value29 = value3(Error);
|
|
var env0_80 = _fun12048(value29);
|
|
var env0_81 = '__THROTTLED';
|
|
var env0_82 = _fun12050();
|
|
var env0_83 = 'img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]';
|
|
var env0_84 = ['content-length', 'content-type', 'accept'];
|
|
Symbol = global.Symbol;
|
|
var env0_85 = Symbol.for('sentry__originalRequestBody');
|
|
var env0_86 = false;
|
|
var env0_87 = false;
|
|
var env0_88 = _fun12136();
|
|
exports.getReplay = getReplay;
|
|
exports.replayIntegration = replayIntegration;
|
|
return value;
|
|
}
|
|
try {
|
|
from = Array.from;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
items2 = [1];
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
closure2 = function(a0) {
|
|
return 2 * a0;
|
|
};
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
value16 = Reflect.apply(from, Array, [items2, closure2]);
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
property = value16[value2];
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
value17 = property === 2;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
reducibleJoin48: while (true) {
|
|
if (value17) {
|
|
break reducibleJoin48;
|
|
}
|
|
try {
|
|
document = global.document;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
createElement = document.createElement;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
element = Reflect.apply(createElement, document, ['iframe']);
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
document = global.document;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
body = document.body;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
appendChild = body.appendChild;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
Reflect.apply(appendChild, body, [element]);
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
Array = global.Array;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
contentWindow = element.contentWindow;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
value18 = contentWindow == null;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
reducibleJoin39: while (true) {
|
|
if (value18) {
|
|
from = value;
|
|
break reducibleJoin39;
|
|
}
|
|
try {
|
|
Array2 = contentWindow.Array;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
from = Array2.from;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
break reducibleJoin39;
|
|
}
|
|
reducibleJoin42: while (true) {
|
|
if (from) {
|
|
r27 = from;
|
|
break reducibleJoin42;
|
|
}
|
|
try {
|
|
Array3 = global.Array;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
from = Array3.from;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
r27 = from;
|
|
break reducibleJoin42;
|
|
}
|
|
try {
|
|
Array.from = r27;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
document = global.document;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
body = document.body;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
removeChild = body.removeChild;
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
try {
|
|
Reflect.apply(removeChild, body, [element]);
|
|
} catch (error) {
|
|
break exceptionLanding47;
|
|
}
|
|
break reducibleJoin48;
|
|
}
|
|
value19 = Object.create(value4.prototype, {constructor: {value: value4}});
|
|
value20 = new value4();
|
|
record2.mirror = value20 instanceof Object ? value20 : value19;
|
|
record2.takeFullSnapshot = takeFullSnapshot;
|
|
object = {NotStarted: value2};
|
|
object[value2] = 'NotStarted';
|
|
object.Running = 1;
|
|
object[1] = 'Running';
|
|
object.Stopped = 2;
|
|
object[2] = 'Stopped';
|
|
Set = global.Set;
|
|
Mutation = object3.Mutation;
|
|
items3 = [Mutation];
|
|
StyleSheetRule = object3.StyleSheetRule;
|
|
items3[1] = StyleSheetRule;
|
|
StyleDeclaration = object3.StyleDeclaration;
|
|
items3[2] = StyleDeclaration;
|
|
AdoptedStyleSheet = object3.AdoptedStyleSheet;
|
|
items3[3] = AdoptedStyleSheet;
|
|
CanvasMutation = object3.CanvasMutation;
|
|
items3[4] = CanvasMutation;
|
|
Selection = object3.Selection;
|
|
items3[5] = Selection;
|
|
MediaInteraction = object3.MediaInteraction;
|
|
items3[6] = MediaInteraction;
|
|
set = new Set();
|
|
var env0_63 = _fun11946();
|
|
var env0_64 = ['A', 'BUTTON', 'INPUT'];
|
|
object3 = {Document: value2};
|
|
object3[value2] = 'Document';
|
|
object3.DocumentType = 1;
|
|
object3[1] = 'DocumentType';
|
|
object3.Element = 2;
|
|
object3[2] = 'Element';
|
|
object3.Text = 3;
|
|
object3[3] = 'Text';
|
|
object3.CDATA = 4;
|
|
object3[4] = 'CDATA';
|
|
object3.Comment = 5;
|
|
object3[5] = 'Comment';
|
|
Set = global.Set;
|
|
set = new Set(['id', 'class', 'aria-label', 'role', 'name', 'alt', 'title', 'data-test-id', 'data-testid',
|
|
'disabled', 'aria-disabled', 'data-sentry-component']);
|
|
var handleDomListener = function(a0) {
|
|
var env0_0 = a0;
|
|
return _fun11967;
|
|
};
|
|
object3 = {resource: resource, paint: paint, navigation: navigation};
|
|
value26 = typeof global.__SENTRY_DEBUG__ === 'undefined';
|
|
reducibleJoin54: while (true) {
|
|
if (value26) {
|
|
r8 = value26;
|
|
break reducibleJoin54;
|
|
}
|
|
__SENTRY_DEBUG__ = global.__SENTRY_DEBUG__;
|
|
r8 = __SENTRY_DEBUG__;
|
|
break reducibleJoin54;
|
|
}
|
|
var env0_70 = ['log', 'warn', 'error'];
|
|
var env0_72 = makeReplayDebugLogger();
|
|
Error = global.Error;
|
|
var env0_73 = _fun11983(value3(Error));
|
|
var env0_74 = _fun11985();
|
|
var env0_75 = _fun11998();
|
|
var env0_76 = _fun12009();
|
|
var env0_77 = _fun12024();
|
|
navigator = GLOBAL_OBJ.navigator;
|
|
Error = global.Error;
|
|
var env0_79 = _fun12046(value3(Error));
|
|
Error = global.Error;
|
|
var env0_80 = _fun12048(value3(Error));
|
|
var env0_82 = _fun12050();
|
|
var env0_84 = ['content-length', 'content-type', 'accept'];
|
|
Symbol = global.Symbol;
|
|
var env0_85 = Symbol.for('sentry__originalRequestBody');
|
|
var env0_88 = _fun12136();
|
|
exports.getReplay = getReplay;
|
|
exports.replayIntegration = replayIntegration;
|
|
return value;
|
|
function _callSuper_11411(a0, a1, a2) { // fn#11411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:124, offset: 0x00dacd74, size: 100 bytes, params: 4, frame: 20
|
|
var r0;
|
|
var Reflect;
|
|
let value = a2;
|
|
const value3 = env0_4(a1);
|
|
const binding = env0_3;
|
|
if (_isNativeReflectConstruct_11412()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value3, value || [], env0_4(a0).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value3.apply(a0, value);
|
|
r0 = value;
|
|
}
|
|
return binding(a0, r0);
|
|
}
|
|
|
|
function _isNativeReflectConstruct_11412() { // fn#11412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:255, offset: 0x00dacdd8, size: 94 bytes, params: 1, frame: 18
|
|
var Boolean;
|
|
var prototype;
|
|
var valueOf;
|
|
var call;
|
|
var Reflect;
|
|
var construct;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Boolean = global.Boolean;
|
|
prototype = Boolean.prototype;
|
|
valueOf = prototype.valueOf;
|
|
call = valueOf.call;
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
Boolean = global.Boolean;
|
|
closure = function() {
|
|
};
|
|
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
|
value = Reflect.apply(call, valueOf, [value]);
|
|
var result = !value;
|
|
} catch (error) {
|
|
}
|
|
return (_isNativeReflectConstruct_11412_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function stringifyStylesheet(a0) { // fn#11417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:1207, offset: 0x00dace99, size: 166 bytes, params: 2, frame: 15
|
|
var r0;
|
|
var r2;
|
|
var r1;
|
|
var rules;
|
|
var cssRules;
|
|
var value;
|
|
var Array;
|
|
var from;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var replace;
|
|
var regexp;
|
|
var error;
|
|
try {
|
|
rules = a0.rules;
|
|
if (rules) {
|
|
r0 = rules;
|
|
} else {
|
|
cssRules = a0.cssRules;
|
|
r0 = cssRules;
|
|
}
|
|
value = null;
|
|
if (r0) {
|
|
Array = global.Array;
|
|
from = Array.from;
|
|
value = environment;
|
|
value = Reflect.apply(from, Array, [r0, stringifyRule]);
|
|
value = value.join('');
|
|
value2 = value.includes(' background-clip: text;');
|
|
if (value2) {
|
|
value3 = value.includes(' -webkit-background-clip: text;');
|
|
value4 = !value3;
|
|
r2 = value4;
|
|
} else {
|
|
r2 = value2;
|
|
}
|
|
if (r2) {
|
|
replace = value.replace;
|
|
regexp = RegExp('\\sbackground-clip:\\s*text;', 'g');
|
|
value = Reflect.apply(replace, value, [regexp,
|
|
' -webkit-background-clip: text; background-clip: text;']);
|
|
r1 = value;
|
|
} else {
|
|
r1 = value;
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
} catch (error) {
|
|
return null;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function stringifyRule(a0) { // fn#11418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:1589, offset: 0x00dacf3f, size: 692 bytes, params: 2, frame: 31
|
|
var r3;
|
|
var r8;
|
|
var r14;
|
|
var r16;
|
|
var r10;
|
|
var r9;
|
|
var r2;
|
|
var r0;
|
|
var cssText;
|
|
var value2;
|
|
var style;
|
|
var length;
|
|
var value4;
|
|
var value5;
|
|
var property;
|
|
var propertyPriority;
|
|
var propertyValue;
|
|
var value9;
|
|
var value10;
|
|
var value13;
|
|
var stringifyStylesheetBinding;
|
|
var styleSheet;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var JSON;
|
|
var stringify;
|
|
var href;
|
|
var value17;
|
|
var value18;
|
|
var items2;
|
|
var layerName;
|
|
var value19;
|
|
var push;
|
|
var value20;
|
|
var supportsText;
|
|
var value21;
|
|
var media;
|
|
var mediaText;
|
|
var value22;
|
|
var value23;
|
|
var error;
|
|
const value = undefined;
|
|
if ('styleSheet' in a0) {
|
|
try {
|
|
value13 = environment;
|
|
stringifyStylesheetBinding = stringifyStylesheet;
|
|
styleSheet = a0.styleSheet;
|
|
value14 = stringifyStylesheetBinding(styleSheet);
|
|
if (value14) {
|
|
r2 = value14;
|
|
} else {
|
|
cssText = a0.cssText;
|
|
value15 = cssText.split('"');
|
|
length = value15.length;
|
|
value16 = length < 3;
|
|
if (value16) {
|
|
r3 = cssText;
|
|
} else {
|
|
JSON = global.JSON;
|
|
stringify = JSON.stringify;
|
|
href = a0.href;
|
|
value17 = Reflect.apply(stringify, JSON, [href]);
|
|
value18 = 'url(' + value17 + ')';
|
|
items2 = ['@import'];
|
|
items2[1] = value18;
|
|
layerName = a0.layerName;
|
|
value19 = layerName === '';
|
|
if (value19) {
|
|
items2.push('layer');
|
|
} else {
|
|
layerName = a0.layerName;
|
|
if (layerName) {
|
|
push = items2.push;
|
|
layerName = a0.layerName;
|
|
value20 = 'layer(' + layerName + ')';
|
|
Reflect.apply(push, items2, [value20]);
|
|
}
|
|
}
|
|
supportsText = a0.supportsText;
|
|
if (supportsText) {
|
|
push = items2.push;
|
|
supportsText = a0.supportsText;
|
|
value21 = 'supports(' + supportsText + ')';
|
|
Reflect.apply(push, items2, [value21]);
|
|
}
|
|
media = a0.media;
|
|
length = media.length;
|
|
if (length) {
|
|
push = items2.push;
|
|
media = a0.media;
|
|
mediaText = media.mediaText;
|
|
Reflect.apply(push, items2, [mediaText]);
|
|
}
|
|
value22 = items2.join(' ');
|
|
value23 = value22 + ';';
|
|
r3 = value23;
|
|
}
|
|
r2 = r3;
|
|
}
|
|
r0 = r2;
|
|
} catch (error) {
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
if ('selectorText' in a0) {
|
|
cssText = a0.cssText;
|
|
value2 = a0.selectorText.includes(':');
|
|
style = a0.style;
|
|
r3 = typeof style.all === 'string' && a0.style.all;
|
|
if (r3) {
|
|
style = a0.style;
|
|
length = style.length;
|
|
value4 = 0;
|
|
value5 = '';
|
|
if (value4 < length) {
|
|
r8 = value5;
|
|
r14 = value4;
|
|
while (true) {
|
|
style = a0.style;
|
|
property = style[r14];
|
|
propertyPriority = style.getPropertyPriority(property);
|
|
propertyValue = style.getPropertyValue(property);
|
|
r16 = propertyPriority ? ' !important' : value5;
|
|
value9 = r8 + (value5 + property + ':' + propertyValue + r16 + ';');
|
|
value10 = typeof r14 === 'bigint' ? r14 + 1n : +r14 + 1;
|
|
style = a0.style;
|
|
length = style.length;
|
|
if (value10 < length) {
|
|
r8 = value9;
|
|
r14 = value10;
|
|
continue;
|
|
}
|
|
r10 = value9;
|
|
break;
|
|
}
|
|
} else {
|
|
r10 = value5;
|
|
}
|
|
r9 = value5 + a0.selectorText + ' { ' + r10 + ' }';
|
|
} else {
|
|
r9 = cssText;
|
|
}
|
|
r2 = value2 ? r9.replace(RegExp('(\\[(?:[\\w-]+)[^\\\\])(:(?:[\\w-]+)\\])', 'gm'), '$1\\$2') : r9;
|
|
if (value2) {
|
|
return r2;
|
|
}
|
|
if (r3) {
|
|
return r2;
|
|
}
|
|
r0 = value;
|
|
r0 = !r0 ? a0.cssText : r0;
|
|
return r0;
|
|
}
|
|
r0 = value;
|
|
}
|
|
r0 = !r0 ? a0.cssText : r0;
|
|
return r0;
|
|
}
|
|
|
|
function getInputType(a0) { // fn#11423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:4219, offset: 0x00dad2d9, size: 56 bytes, params: 2, frame: 13
|
|
const type = a0.type;
|
|
return a0.hasAttribute('data-rr-is-password') ? 'password' : type ? toLowerCase(type) : null;
|
|
}
|
|
|
|
function getImplementation$1(a0) { // fn#11426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:4659, offset: 0x00dad3ee, size: 223 bytes, params: 2, frame: 19
|
|
var r8;
|
|
var r4;
|
|
var createElement;
|
|
var element;
|
|
var head;
|
|
var appendChild;
|
|
var contentWindow;
|
|
var property2;
|
|
var removeChild;
|
|
var error;
|
|
var binding;
|
|
var bind;
|
|
let value = environment;
|
|
let property = env0_21[a0];
|
|
if (property) {
|
|
return property;
|
|
}
|
|
let window = global.window;
|
|
const document = window.document;
|
|
property = global.window[a0];
|
|
if (document) {
|
|
createElement = document.createElement;
|
|
if (typeof createElement !== 'function') {
|
|
r4 = property;
|
|
} else {
|
|
try {
|
|
createElement = document.createElement;
|
|
} catch (error) {
|
|
r4 = property;
|
|
binding = env0_21;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
element = Reflect.apply(createElement, document, ['iframe']);
|
|
} catch (error) {
|
|
r4 = property;
|
|
binding = env0_21;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
element.hidden = true;
|
|
} catch (error) {
|
|
r4 = property;
|
|
binding = env0_21;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
head = document.head;
|
|
} catch (error) {
|
|
r4 = property;
|
|
binding = env0_21;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
appendChild = head.appendChild;
|
|
} catch (error) {
|
|
r4 = property;
|
|
binding = env0_21;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
Reflect.apply(appendChild, head, [element]);
|
|
} catch (error) {
|
|
r4 = property;
|
|
binding = env0_21;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
contentWindow = element.contentWindow;
|
|
} catch (error) {
|
|
r4 = property;
|
|
binding = env0_21;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
if (contentWindow) {
|
|
try {
|
|
property2 = contentWindow[a0];
|
|
r8 = property2;
|
|
} catch (error) {
|
|
r4 = property;
|
|
binding = env0_21;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
if (r8) {
|
|
try {
|
|
property = contentWindow[a0];
|
|
r4 = property;
|
|
} catch (error) {
|
|
r4 = property;
|
|
binding = env0_21;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
head = document.head;
|
|
} catch (error) {
|
|
binding = env0_21;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
removeChild = head.removeChild;
|
|
} catch (error) {
|
|
binding = env0_21;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
Reflect.apply(removeChild, head, [element]);
|
|
} catch (error) {
|
|
}
|
|
} else {
|
|
r4 = property;
|
|
try {
|
|
head = document.head;
|
|
} catch (error) {
|
|
binding = env0_21;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
removeChild = head.removeChild;
|
|
} catch (error) {
|
|
binding = env0_21;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
Reflect.apply(removeChild, head, [element]);
|
|
} catch (error) {
|
|
}
|
|
}
|
|
} else if (contentWindow) {
|
|
try {
|
|
property = contentWindow[a0];
|
|
r4 = property;
|
|
} catch (error) {
|
|
r4 = property;
|
|
binding = env0_21;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
head = document.head;
|
|
} catch (error) {
|
|
binding = env0_21;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
removeChild = head.removeChild;
|
|
} catch (error) {
|
|
binding = env0_21;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
Reflect.apply(removeChild, head, [element]);
|
|
} catch (error) {
|
|
}
|
|
} else {
|
|
r4 = property;
|
|
try {
|
|
head = document.head;
|
|
} catch (error) {
|
|
binding = env0_21;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
removeChild = head.removeChild;
|
|
} catch (error) {
|
|
binding = env0_21;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
Reflect.apply(removeChild, head, [element]);
|
|
} catch (error) {
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
r4 = property;
|
|
}
|
|
binding = env0_21;
|
|
value = r4.bind(global.window);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
|
|
function setTimeout$2() { // fn#11427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:4960, offset: 0x00dad4cd, size: 35 bytes, params: 1, frame: 14
|
|
return getImplementation$1('setTimeout').apply(undefined, arguments);
|
|
}
|
|
|
|
function clearTimeout$1() { // fn#11428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:5049, offset: 0x00dad4f0, size: 35 bytes, params: 1, frame: 14
|
|
return getImplementation$1('clearTimeout').apply(undefined, arguments);
|
|
}
|
|
|
|
function genId() { // fn#11430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:5260, offset: 0x00dad524, size: 19 bytes, params: 1, frame: 3
|
|
const binding = env0_24;
|
|
const value2 = typeof binding === 'bigint' ? binding : +binding;
|
|
env0_24 = typeof value2 === 'bigint' ? value2 + 1n : +value2 + 1;
|
|
return value2;
|
|
}
|
|
|
|
function absoluteToStylesheet(a0, a1) { // fn#11431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:5403, offset: 0x00dad537, size: 44 bytes, params: 3, frame: 13
|
|
const value = a0;
|
|
const env0_0 = a1;
|
|
const r3 = value || '';
|
|
return r3.replace(env0_26, _fun11432);
|
|
function _fun11432(a0, a1, a2, a3, a4, a5) { // fn#11432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:5463, offset: 0x00dad563, size: 530 bytes, params: 7, frame: 25
|
|
var r5;
|
|
var split;
|
|
var value6;
|
|
var pop;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var value7;
|
|
var value8;
|
|
var push;
|
|
var error;
|
|
var HermesInternal;
|
|
var concat;
|
|
let value = a1;
|
|
const value2 = a2;
|
|
const value3 = a3;
|
|
const value4 = a4;
|
|
const value5 = a5;
|
|
let r3 = value2 || value4;
|
|
r3 = !r3 ? value5 : r3;
|
|
let r4 = value || value3;
|
|
reducibleJoin5: while (true) {
|
|
if (r4) {
|
|
break reducibleJoin5;
|
|
}
|
|
value = '';
|
|
r4 = value;
|
|
break reducibleJoin5;
|
|
}
|
|
if (!r3) {
|
|
return a0;
|
|
}
|
|
value = environment.__proto__;
|
|
let binding = env1_27;
|
|
let test = binding.test;
|
|
reducibleJoin13: while (true) {
|
|
reducibleJoin32: while (true) {
|
|
if (Reflect.apply(test, binding, [r3])) {
|
|
break reducibleJoin32;
|
|
}
|
|
binding = env1_28;
|
|
test = binding.test;
|
|
if (Reflect.apply(test, binding, [r3])) {
|
|
break reducibleJoin32;
|
|
}
|
|
binding = env1_29;
|
|
test = binding.test;
|
|
if (Reflect.apply(test, binding, [r3])) {
|
|
concat = global.HermesInternal.concat;
|
|
return 'url(' + r4 + r3 + r4 + ')';
|
|
}
|
|
if (r3[0] === '/') {
|
|
value = environment;
|
|
value = require.indexOf('//');
|
|
if (value > -1) {
|
|
value = require.split('/');
|
|
value = value.slice(0, 3);
|
|
value = value.join('/');
|
|
r5 = value;
|
|
} else {
|
|
r5 = require.split('/')[0];
|
|
}
|
|
value = r5.split('?')[0] + r3;
|
|
concat = global.HermesInternal.concat;
|
|
return 'url(' + r4 + value + r4 + ')';
|
|
}
|
|
value = environment;
|
|
split = require.split;
|
|
value = Reflect.apply(split, require, ['/']);
|
|
split = r3.split;
|
|
value6 = Reflect.apply(split, r3, ['/']);
|
|
pop = value.pop;
|
|
Reflect.apply(pop, value, []);
|
|
iterator = value6[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
r5 = iterator;
|
|
item2 = Reflect.apply(iterator2, r5, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r5;
|
|
if (item2 === undefined) {
|
|
value = value.join('/');
|
|
concat = global.HermesInternal.concat;
|
|
return 'url(' + r4 + value + r4 + ')';
|
|
}
|
|
break reducibleJoin13;
|
|
}
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
return 'url(' + r4 + r3 + r4 + ')';
|
|
}
|
|
reducibleLoop13: while (true) {
|
|
try {
|
|
value7 = item === '.';
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
reducibleJoin12: while (true) {
|
|
if (value7) {
|
|
r5 = item2;
|
|
break reducibleJoin12;
|
|
}
|
|
try {
|
|
value8 = item === '..';
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (value8) {
|
|
try {
|
|
pop = value.pop;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(pop, value, []);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r5 = item2;
|
|
break reducibleJoin12;
|
|
}
|
|
try {
|
|
push = value.push;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(push, value, [item]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r5 = item2;
|
|
break reducibleJoin12;
|
|
}
|
|
item2 = Reflect.apply(iterator2, r5, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r5;
|
|
if (item2 === undefined) {
|
|
break reducibleLoop13;
|
|
}
|
|
continue reducibleLoop13;
|
|
}
|
|
value = value.join('/');
|
|
HermesInternal = global.HermesInternal;
|
|
return 'url(' + r4 + value + r4 + ')';
|
|
}
|
|
|
|
}
|
|
|
|
function absoluteToDoc(a0, a1) { // fn#11433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:5978, offset: 0x00dad775, size: 50 bytes, params: 3, frame: 14
|
|
var r0;
|
|
let value = a1;
|
|
if (value) {
|
|
if (value.trim() === '') {
|
|
r0 = value;
|
|
} else {
|
|
value = getHref(a0, value);
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function getHref(a0, a1) { // fn#11435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:6123, offset: 0x00dad7d2, size: 135 bytes, params: 3, frame: 15
|
|
var r1;
|
|
var element;
|
|
var startsWith;
|
|
const value = a1;
|
|
const value3 = env0_32.get(a0);
|
|
if (value3) {
|
|
r1 = value3;
|
|
} else {
|
|
element = a0.createElement('a');
|
|
env0_32.set(a0, element);
|
|
r1 = element;
|
|
}
|
|
if (value) {
|
|
startsWith = value.startsWith;
|
|
if (Reflect.apply(startsWith, value, ['blob:'])) {
|
|
return value;
|
|
}
|
|
startsWith = value.startsWith;
|
|
if (Reflect.apply(startsWith, value, ['data:'])) {
|
|
return value;
|
|
}
|
|
r1.setAttribute('href', value);
|
|
} else {
|
|
r1.setAttribute('href', '');
|
|
}
|
|
return r1.href;
|
|
}
|
|
|
|
function transformAttribute(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#11436, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:6311, offset: 0x00dad859, size: 657 bytes, params: 8, frame: 28
|
|
var environment;
|
|
var r0;
|
|
var r1;
|
|
var r8;
|
|
var value;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var size;
|
|
var value5;
|
|
var split;
|
|
var value6;
|
|
var value7;
|
|
var items2;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var value8;
|
|
var trim;
|
|
var value9;
|
|
var indexOf;
|
|
var value10;
|
|
var value11;
|
|
var push;
|
|
var slice;
|
|
var value12;
|
|
var value13;
|
|
var has;
|
|
var value14;
|
|
var error;
|
|
var join;
|
|
var value15;
|
|
var length;
|
|
var value16;
|
|
var value17;
|
|
var endsWith;
|
|
var value18;
|
|
var value19;
|
|
var console;
|
|
var warn;
|
|
var value20;
|
|
var value21;
|
|
var value22;
|
|
exceptionLanding66: while (true) {
|
|
value = importAll;
|
|
value2 = dependencyMap;
|
|
if (value) {
|
|
if (importDefault !== 'src') {
|
|
reducibleJoin87: while (true) {
|
|
reducibleJoin12: while (true) {
|
|
if (importDefault !== 'href') {
|
|
if (importDefault === 'xlink:href') {
|
|
reducibleJoin8: while (true) {
|
|
if (value[0] !== '#') {
|
|
value21 = environment;
|
|
return absoluteToDoc(global, value);
|
|
}
|
|
break reducibleJoin8;
|
|
}
|
|
}
|
|
if (importDefault === 'background') {
|
|
if (require !== 'table') {
|
|
reducibleJoin85: while (true) {
|
|
if (require === 'td') {
|
|
break reducibleJoin85;
|
|
}
|
|
if (require === 'th') {
|
|
break reducibleJoin85;
|
|
}
|
|
break reducibleJoin12;
|
|
}
|
|
}
|
|
value20 = environment;
|
|
return absoluteToDoc(global, value);
|
|
}
|
|
break reducibleJoin12;
|
|
}
|
|
if (require !== 'use') {
|
|
break reducibleJoin87;
|
|
}
|
|
if (value[0] !== '#') {
|
|
break reducibleJoin87;
|
|
}
|
|
if (importDefault === 'xlink:href') {
|
|
reducibleJoin8: while (true) {
|
|
if (value[0] !== '#') {
|
|
value21 = environment;
|
|
return absoluteToDoc(global, value);
|
|
}
|
|
break reducibleJoin8;
|
|
}
|
|
}
|
|
if (importDefault === 'background') {
|
|
if (require !== 'table') {
|
|
reducibleJoin85: while (true) {
|
|
if (require === 'td') {
|
|
break reducibleJoin85;
|
|
}
|
|
if (require === 'th') {
|
|
break reducibleJoin85;
|
|
}
|
|
break reducibleJoin12;
|
|
}
|
|
}
|
|
value20 = environment;
|
|
return absoluteToDoc(global, value);
|
|
}
|
|
break reducibleJoin12;
|
|
}
|
|
if (importDefault === 'srcset') {
|
|
return getAbsoluteSrcsetString(global, value);
|
|
}
|
|
if (importDefault === 'style') {
|
|
value4 = environment;
|
|
value = absoluteToStylesheet(value, getHref(global));
|
|
reducibleJoin23: while (true) {
|
|
if (value2) {
|
|
size = value2.size;
|
|
value5 = size > 0;
|
|
r1 = value5;
|
|
break reducibleJoin23;
|
|
}
|
|
r1 = value2;
|
|
break reducibleJoin23;
|
|
}
|
|
reducibleJoin83: while (true) {
|
|
if (r1) {
|
|
reduciblePort82: while (true) {
|
|
exceptionLanding81: while (true) {
|
|
if (value) {
|
|
size = value2.size;
|
|
if (size === 0) {
|
|
r1 = value;
|
|
break reduciblePort82;
|
|
}
|
|
try {
|
|
split = value.split;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
value6 = ';';
|
|
try {
|
|
value7 = Reflect.apply(split, value, [value6]);
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
items2 = [];
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
iterator = value7[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
r8 = iterator;
|
|
reducibleLoop34: while (true) {
|
|
try {
|
|
item2 = Reflect.apply(iterator2, r8, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r8;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
value8 = item2 === undefined;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
if (value8) {
|
|
break reducibleLoop34;
|
|
}
|
|
try {
|
|
try {
|
|
trim = item.trim;
|
|
} catch (error) {
|
|
break exceptionLanding66;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
try {
|
|
value9 = Reflect.apply(trim, item, []);
|
|
} catch (error) {
|
|
break exceptionLanding66;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
reducibleJoin65: while (true) {
|
|
if (value9) {
|
|
try {
|
|
try {
|
|
indexOf = value9.indexOf;
|
|
} catch (error) {
|
|
break exceptionLanding66;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
try {
|
|
value10 = Reflect.apply(indexOf, value9, [':']);
|
|
} catch (error) {
|
|
break exceptionLanding66;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
try {
|
|
value11 = value10 !== -1;
|
|
} catch (error) {
|
|
break exceptionLanding66;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
if (value11) {
|
|
try {
|
|
try {
|
|
slice = value9.slice;
|
|
} catch (error) {
|
|
break exceptionLanding66;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
try {
|
|
value12 = Reflect.apply(slice, value9, [0,
|
|
value10]);
|
|
} catch (error) {
|
|
break exceptionLanding66;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
try {
|
|
trim = value12.trim;
|
|
} catch (error) {
|
|
break exceptionLanding66;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
try {
|
|
value13 = Reflect.apply(trim, value12, []);
|
|
} catch (error) {
|
|
break exceptionLanding66;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
try {
|
|
has = value2.has;
|
|
} catch (error) {
|
|
break exceptionLanding66;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
try {
|
|
value14 = Reflect.apply(has, value2, [value13]);
|
|
} catch (error) {
|
|
break exceptionLanding66;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
if (value14) {
|
|
break reducibleJoin65;
|
|
}
|
|
try {
|
|
try {
|
|
push = items2.push;
|
|
} catch (error) {
|
|
break exceptionLanding66;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
try {
|
|
Reflect.apply(push, items2, [value9]);
|
|
} catch (error) {
|
|
break exceptionLanding66;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
break reducibleJoin65;
|
|
}
|
|
try {
|
|
try {
|
|
push = items2.push;
|
|
} catch (error) {
|
|
break exceptionLanding66;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
try {
|
|
Reflect.apply(push, items2, [value9]);
|
|
} catch (error) {
|
|
break exceptionLanding66;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
break reducibleJoin65;
|
|
}
|
|
break reducibleJoin65;
|
|
}
|
|
r8 = item2;
|
|
continue reducibleLoop34;
|
|
}
|
|
try {
|
|
join = items2.join;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
value15 = Reflect.apply(join, items2, ['; ']);
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
length = items2.length;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
value16 = length > 0;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
value17 = '';
|
|
reducibleJoin80: while (true) {
|
|
if (value16) {
|
|
try {
|
|
endsWith = value.endsWith;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
value18 = Reflect.apply(endsWith, value, [value6]);
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
if (value18) {
|
|
r1 = value6;
|
|
break reducibleJoin80;
|
|
}
|
|
r1 = value17;
|
|
break reducibleJoin80;
|
|
}
|
|
r1 = value17;
|
|
break reducibleJoin80;
|
|
}
|
|
try {
|
|
value19 = value15 + r1;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
r1 = value19;
|
|
break reduciblePort82;
|
|
}
|
|
r1 = value;
|
|
break reduciblePort82;
|
|
}
|
|
console = global.console;
|
|
warn = console.warn;
|
|
Reflect.apply(warn, console, ['Error filtering CSS properties:', error]);
|
|
r1 = value;
|
|
break reduciblePort82;
|
|
}
|
|
r0 = r1;
|
|
break reducibleJoin83;
|
|
}
|
|
r0 = value;
|
|
break reducibleJoin83;
|
|
}
|
|
return r0;
|
|
}
|
|
reducibleJoin20: while (true) {
|
|
reducibleJoin18: while (true) {
|
|
if (require !== 'object') {
|
|
if (typeof exports !== 'function') {
|
|
r0 = value;
|
|
break reducibleJoin18;
|
|
}
|
|
value = exports(importDefault, value, module);
|
|
r0 = value;
|
|
break reducibleJoin18;
|
|
}
|
|
if (importDefault === 'data') {
|
|
value3 = environment;
|
|
value = absoluteToDoc(global, value);
|
|
r0 = value;
|
|
break reducibleJoin20;
|
|
}
|
|
if (typeof exports !== 'function') {
|
|
r0 = value;
|
|
break reducibleJoin18;
|
|
}
|
|
value = exports(importDefault, value, module);
|
|
r0 = value;
|
|
break reducibleJoin18;
|
|
}
|
|
break reducibleJoin20;
|
|
}
|
|
return r0;
|
|
}
|
|
}
|
|
value22 = environment;
|
|
return absoluteToDoc(global, value);
|
|
}
|
|
return value;
|
|
}
|
|
try {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
throw error;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
function getAbsoluteSrcsetString(a0, a1) { // fn#11437, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:6607, owner: transformAttribute.getAbsoluteSrcsetString, offset: 0x00dadaea, size: 407 bytes, params: 3, frame: 39
|
|
var environment;
|
|
var r27;
|
|
var r28;
|
|
var value3;
|
|
var slice;
|
|
var absoluteToDocBinding;
|
|
var value4;
|
|
var value5;
|
|
var charAt;
|
|
var value6;
|
|
var value7;
|
|
var push;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var substring;
|
|
var value11;
|
|
const env0_0 = a1;
|
|
const collectCharacters2 = collectCharacters;
|
|
let value = a1.trim();
|
|
const value2 = '';
|
|
if (value2 === value) {
|
|
return a1;
|
|
}
|
|
let env0_1 = 0;
|
|
const items2 = [];
|
|
value = environment.__proto__;
|
|
collectCharacters2(env1_31);
|
|
let binding = env0_1;
|
|
let length = a1.length;
|
|
if (!(binding >= length)) {
|
|
reducibleLoop2: while (true) {
|
|
value3 = collectCharacters2(env1_30);
|
|
slice = value3.slice;
|
|
if (Reflect.apply(slice, value3, [-1]) === ',') {
|
|
absoluteToDocBinding = absoluteToDoc;
|
|
substring = value3.substring;
|
|
value11 = absoluteToDocBinding(a0, Reflect.apply(substring, value3, [0, value3.length - 1]));
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [value11]);
|
|
} else {
|
|
value4 = absoluteToDoc(a0, value3);
|
|
value5 = false;
|
|
r27 = value5;
|
|
r28 = value2;
|
|
reducibleLoop4: while (true) {
|
|
charAt = a1.charAt;
|
|
value6 = Reflect.apply(charAt, a1, [env0_1]);
|
|
if (value2 === value6) {
|
|
push = items2.push;
|
|
value10 = value4 + r28;
|
|
trim = value10.trim;
|
|
Reflect.apply(push, items2, [Reflect.apply(trim, value10, [])]);
|
|
break reducibleLoop4;
|
|
}
|
|
if (r27) {
|
|
if (value6 === ')') {
|
|
r27 = value5;
|
|
}
|
|
} else {
|
|
if (value6 === ',') {
|
|
env0_1 += 1;
|
|
push = items2.push;
|
|
value8 = value4 + r28;
|
|
trim = value8.trim;
|
|
Reflect.apply(push, items2, [Reflect.apply(trim, value8, [])]);
|
|
break reducibleLoop4;
|
|
}
|
|
reducibleJoin11: while (true) {
|
|
if (value6 !== '(') {
|
|
break reducibleJoin11;
|
|
}
|
|
value7 = true;
|
|
r27 = value7;
|
|
break reducibleJoin11;
|
|
}
|
|
}
|
|
value9 = r28 + value6;
|
|
env0_1 += 1;
|
|
r28 = value9;
|
|
continue reducibleLoop4;
|
|
}
|
|
}
|
|
collectCharacters2(env1_31);
|
|
binding = env0_1;
|
|
length = a1.length;
|
|
if (binding >= length) {
|
|
break reducibleLoop2;
|
|
}
|
|
continue reducibleLoop2;
|
|
}
|
|
}
|
|
return items2.join(', ');
|
|
function collectCharacters(a0) { // fn#11438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:6679, owner: transformAttribute.getAbsoluteSrcsetString.collectCharacters, offset: 0x00dadc81, size: 71 bytes, params: 2, frame: 14
|
|
const value2 = a0.exec(require.substring(env0_1));
|
|
return value2 ? value2[0] : '';
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function distanceToMatch(a0, a1) { // fn#11440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:7765, offset: 0x00dadcee, size: 172 bytes, params: 3, frame: 21
|
|
let value = Infinity;
|
|
const r6 = arguments.length > 2 ? arguments[2] === undefined ? value : arguments[2] : value;
|
|
value = 0;
|
|
const r9 = arguments.length > 3 ? arguments[3] === undefined ? value : arguments[3] : value;
|
|
value = -1;
|
|
return a0 ? a0.nodeType !== a0.ELEMENT_NODE || r9 > r6 ? value : a1(a0) ? r9 : distanceToMatch(a0.parentNode, a1,
|
|
r6, r9 + 1) : value;
|
|
}
|
|
|
|
function createMatchPredicate(a0, a1) { // fn#11441, offset: 0x00dadd9a, size: 23 bytes, params: 3, frame: 2
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
return _fun11442;
|
|
function _fun11442(a0) { // fn#11442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:8054, offset: 0x00daddb1, size: 211 bytes, params: 2, frame: 18
|
|
var r6;
|
|
var r3;
|
|
var r0;
|
|
var binding;
|
|
var value2;
|
|
var classList;
|
|
var length;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var property;
|
|
var test;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var matches;
|
|
var concat;
|
|
var value10;
|
|
var value11;
|
|
var error;
|
|
if (a0 === null) {
|
|
return false;
|
|
}
|
|
var value;
|
|
try {
|
|
binding = env0_0;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
if (binding) {
|
|
try {
|
|
binding = env0_0;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
value2 = typeof binding === 'string';
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
if (value2) {
|
|
try {
|
|
matches = a0.matches;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
binding = env0_0;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
value10 = Reflect.apply(concat, '.', [binding]);
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
value11 = Reflect.apply(matches, a0, [value10]);
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
if (value11) {
|
|
return true;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
if (require) {
|
|
try {
|
|
matches = a0.matches;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
value = Reflect.apply(matches, a0, [require]);
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
value = !value;
|
|
r0 = value;
|
|
} else {
|
|
r0 = !require;
|
|
}
|
|
return !r0;
|
|
}
|
|
try {
|
|
binding = env0_0;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
classList = a0.classList;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
length = classList.length;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
value3 = typeof length === 'bigint' ? length : +length;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
value4 = typeof value3 === 'bigint' ? value3 - 1n : +value3 - 1;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
value5 = true;
|
|
value6 = false;
|
|
if (value3) {
|
|
r6 = value4;
|
|
while (true) {
|
|
try {
|
|
classList = a0.classList;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
property = classList[r6];
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
test = binding.test;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(test, binding, [property]);
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
if (value7) {
|
|
r3 = value5;
|
|
break;
|
|
}
|
|
try {
|
|
value8 = typeof r6 === 'bigint' ? r6 : +r6;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
value9 = typeof value8 === 'bigint' ? value8 - 1n : +value8 - 1;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
if (value8) {
|
|
r6 = value9;
|
|
continue;
|
|
}
|
|
r3 = value6;
|
|
break;
|
|
}
|
|
} else {
|
|
r3 = value6;
|
|
}
|
|
if (r3) {
|
|
return value5;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
if (require) {
|
|
try {
|
|
matches = a0.matches;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
value = Reflect.apply(matches, a0, [require]);
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
value = !value;
|
|
r0 = value;
|
|
} else {
|
|
r0 = !require;
|
|
}
|
|
} else {
|
|
try {
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
if (require) {
|
|
try {
|
|
matches = a0.matches;
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
try {
|
|
value = Reflect.apply(matches, a0, [require]);
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
value = !value;
|
|
r0 = value;
|
|
} else {
|
|
r0 = !require;
|
|
}
|
|
}
|
|
return !r0;
|
|
}
|
|
|
|
}
|
|
|
|
function needMaskingText(a0, a1, a2, a3, a4, a5) { // fn#11443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:8354, offset: 0x00dade84, size: 394 bytes, params: 7, frame: 29
|
|
var r9;
|
|
var r1;
|
|
var r3;
|
|
var r4;
|
|
var r2;
|
|
var nodeType;
|
|
var ELEMENT_NODE;
|
|
var value2;
|
|
var parentElement;
|
|
var tagName;
|
|
var getAttribute;
|
|
var items2;
|
|
var includes;
|
|
var distanceToMatchBinding;
|
|
var createMatchPredicateBinding;
|
|
var matchPredicate;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var matchPredicate2;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var error;
|
|
let value = a0;
|
|
try {
|
|
nodeType = value.nodeType;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
ELEMENT_NODE = value.ELEMENT_NODE;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
value2 = nodeType === ELEMENT_NODE;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
if (value2) {
|
|
r9 = value;
|
|
} else {
|
|
try {
|
|
parentElement = value.parentElement;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
r9 = parentElement;
|
|
}
|
|
try {
|
|
value = r9 === null;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
if (value) {
|
|
return false;
|
|
}
|
|
try {
|
|
tagName = r9.tagName;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
value = tagName !== 'INPUT';
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
if (value) {
|
|
try {
|
|
distanceToMatchBinding = distanceToMatch;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
createMatchPredicateBinding = createMatchPredicate;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
if (a5) {
|
|
try {
|
|
matchPredicate2 = createMatchPredicateBinding(a3, a4);
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
value7 = distanceToMatchBinding(r9, matchPredicate2);
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
value8 = value7 < 0;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
if (value8) {
|
|
return true;
|
|
}
|
|
try {
|
|
distanceToMatchBinding = distanceToMatch;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
createMatchPredicateBinding = createMatchPredicate;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
value = createMatchPredicateBinding(a1, a2);
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
value9 = value7 >= 0;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
r1 = value9 ? value7 : Infinity;
|
|
try {
|
|
value = distanceToMatchBinding(r9, value, r1);
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
r3 = value7;
|
|
r4 = value;
|
|
try {
|
|
value = r4 >= 0;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
if (value) {
|
|
try {
|
|
value = r3 >= 0;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
if (value) {
|
|
try {
|
|
value = r4 <= r3;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
r2 = value;
|
|
} else {
|
|
r2 = !value;
|
|
}
|
|
r1 = r2;
|
|
} else {
|
|
try {
|
|
value = r3 >= 0;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
r1 = !value && !!a5;
|
|
}
|
|
return r1;
|
|
}
|
|
try {
|
|
matchPredicate = createMatchPredicateBinding(a1, a2);
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
value3 = distanceToMatchBinding(r9, matchPredicate);
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
value4 = value3 < 0;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
if (value4) {
|
|
return false;
|
|
}
|
|
try {
|
|
distanceToMatchBinding = distanceToMatch;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
createMatchPredicateBinding = createMatchPredicate;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
value = createMatchPredicateBinding(a3, a4);
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
value5 = value3 >= 0;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
value = distanceToMatchBinding(r9, value, value5 ? value3 : Infinity);
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
r3 = value;
|
|
r4 = value3;
|
|
try {
|
|
value = r4 >= 0;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
if (value) {
|
|
try {
|
|
value = r3 >= 0;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
if (value) {
|
|
try {
|
|
value = r4 <= r3;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
r2 = value;
|
|
} else {
|
|
r2 = !value;
|
|
}
|
|
r1 = r2;
|
|
} else {
|
|
try {
|
|
value = r3 >= 0;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
r1 = !value && !!a5;
|
|
}
|
|
} else {
|
|
try {
|
|
getAttribute = r9.getAttribute;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
value = Reflect.apply(getAttribute, r9, ['autocomplete']);
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
items2 = ['current-password', 'new-password', 'cc-number', 'cc-exp', 'cc-exp-month', 'cc-exp-year',
|
|
'cc-csc'];
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
includes = items2.includes;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
value = Reflect.apply(includes, items2, [value]);
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
if (value) {
|
|
return true;
|
|
}
|
|
try {
|
|
distanceToMatchBinding = distanceToMatch;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
createMatchPredicateBinding = createMatchPredicate;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
if (a5) {
|
|
try {
|
|
matchPredicate2 = createMatchPredicateBinding(a3, a4);
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
value7 = distanceToMatchBinding(r9, matchPredicate2);
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
value8 = value7 < 0;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
if (value8) {
|
|
return true;
|
|
}
|
|
try {
|
|
distanceToMatchBinding = distanceToMatch;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
createMatchPredicateBinding = createMatchPredicate;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
value = createMatchPredicateBinding(a1, a2);
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
value9 = value7 >= 0;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
r1 = value9 ? value7 : Infinity;
|
|
try {
|
|
value = distanceToMatchBinding(r9, value, r1);
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
r3 = value7;
|
|
r4 = value;
|
|
try {
|
|
value = r4 >= 0;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
if (value) {
|
|
try {
|
|
value = r3 >= 0;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
if (value) {
|
|
try {
|
|
value = r4 <= r3;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
r2 = value;
|
|
} else {
|
|
r2 = !value;
|
|
}
|
|
r1 = r2;
|
|
} else {
|
|
try {
|
|
value = r3 >= 0;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
r1 = !value && !!a5;
|
|
}
|
|
return r1;
|
|
}
|
|
try {
|
|
matchPredicate = createMatchPredicateBinding(a1, a2);
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
value3 = distanceToMatchBinding(r9, matchPredicate);
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
value4 = value3 < 0;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
if (value4) {
|
|
return false;
|
|
}
|
|
try {
|
|
distanceToMatchBinding = distanceToMatch;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
createMatchPredicateBinding = createMatchPredicate;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
value = createMatchPredicateBinding(a3, a4);
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
value5 = value3 >= 0;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
try {
|
|
value = distanceToMatchBinding(r9, value, value5 ? value3 : Infinity);
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
r3 = value;
|
|
r4 = value3;
|
|
try {
|
|
value = r4 >= 0;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
if (value) {
|
|
try {
|
|
value = r3 >= 0;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
if (value) {
|
|
try {
|
|
value = r4 <= r3;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
r2 = value;
|
|
} else {
|
|
r2 = !value;
|
|
}
|
|
r1 = r2;
|
|
} else {
|
|
try {
|
|
value = r3 >= 0;
|
|
} catch (error) {
|
|
return !!a5;
|
|
}
|
|
r1 = !value && !!a5;
|
|
}
|
|
}
|
|
return r1;
|
|
}
|
|
|
|
function serializeNode(a0, {doc, mirror, blockClass, blockSelector, unblockSelector, maskAllText, maskAttributeFn, maskTextClass, unmaskTextClass, maskTextSelector, unmaskTextSelector, inlineStylesheet, maskInputOptions, maskTextFn, maskInputFn, dataURLOptions, inlineImages, recordCanvas, keepIframeSrcFn, newlyAddedElement, ignoreCSSAttributes}) { // fn#11444, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:8975, offset: 0x00dae00e, size: 1346 bytes, params: 3, frame: 55
|
|
var environment;
|
|
var r3;
|
|
var r1;
|
|
var textContent;
|
|
var r37;
|
|
var r23;
|
|
var r30;
|
|
var r26;
|
|
var r24;
|
|
var object;
|
|
var id;
|
|
var rootId;
|
|
var parentNode;
|
|
var nextSibling;
|
|
var previousSibling;
|
|
var sheet;
|
|
var value7;
|
|
var cssRules;
|
|
var value8;
|
|
var stringifyStylesheetBinding;
|
|
var value9;
|
|
var error;
|
|
var console;
|
|
var value14;
|
|
var maskInputValueBinding;
|
|
let value = undefined;
|
|
const r15 = value !== maskInputOptions ? maskInputOptions : {};
|
|
const r13 = value !== dataURLOptions ? dataURLOptions : {};
|
|
const r9 = value !== newlyAddedElement && newlyAddedElement;
|
|
if (mirror.hasNode(doc)) {
|
|
id = mirror.getId(doc);
|
|
r1 = id === 1 ? value : id;
|
|
} else {
|
|
r1 = value;
|
|
}
|
|
const nodeType = a0.nodeType;
|
|
const DOCUMENT_NODE = a0.DOCUMENT_NODE;
|
|
if (DOCUMENT_NODE === nodeType) {
|
|
return a0.compatMode !== 'CSS1Compat' ? {type: env0_18.Document, childNodes: [],
|
|
compatMode: a0.compatMode} : {type: env0_18.Document, childNodes: []};
|
|
}
|
|
const DOCUMENT_TYPE_NODE = a0.DOCUMENT_TYPE_NODE;
|
|
if (DOCUMENT_TYPE_NODE === nodeType) {
|
|
value = environment;
|
|
return {type: env0_18.DocumentType, name: a0.name, publicId: a0.publicId, systemId: a0.systemId, rootId: r1};
|
|
}
|
|
const ELEMENT_NODE = a0.ELEMENT_NODE;
|
|
if (ELEMENT_NODE === nodeType) {
|
|
return serializeElementNode(a0, {doc: doc, blockClass: blockClass, blockSelector: blockSelector,
|
|
unblockSelector: unblockSelector, inlineStylesheet: inlineStylesheet, maskAttributeFn: maskAttributeFn,
|
|
maskInputOptions: r15, maskInputFn: maskInputFn, dataURLOptions: r13, inlineImages: inlineImages,
|
|
recordCanvas: recordCanvas, keepIframeSrcFn: keepIframeSrcFn, newlyAddedElement: r9, rootId: r1,
|
|
maskTextClass: maskTextClass, unmaskTextClass: unmaskTextClass, maskTextSelector: maskTextSelector,
|
|
unmaskTextSelector: unmaskTextSelector, ignoreCSSAttributes: ignoreCSSAttributes});
|
|
}
|
|
const TEXT_NODE = a0.TEXT_NODE;
|
|
if (TEXT_NODE === nodeType) {
|
|
object = {doc: doc, maskAllText: maskAllText, maskTextClass: maskTextClass, unmaskTextClass: unmaskTextClass,
|
|
maskTextSelector: maskTextSelector, unmaskTextSelector: unmaskTextSelector, maskTextFn: maskTextFn,
|
|
maskInputOptions: r15, maskInputFn: maskInputFn, rootId: r1};
|
|
maskAllText = object.maskAllText;
|
|
maskTextClass = object.maskTextClass;
|
|
unmaskTextClass = object.unmaskTextClass;
|
|
maskTextSelector = object.maskTextSelector;
|
|
unmaskTextSelector = object.unmaskTextSelector;
|
|
maskTextFn = object.maskTextFn;
|
|
maskInputOptions = object.maskInputOptions;
|
|
maskInputFn = object.maskInputFn;
|
|
rootId = object.rootId;
|
|
parentNode = a0.parentNode;
|
|
if (parentNode) {
|
|
parentNode = a0.parentNode;
|
|
r37 = parentNode.tagName;
|
|
} else {
|
|
r37 = parentNode;
|
|
}
|
|
textContent = a0.textContent;
|
|
r23 = r37 === 'STYLE' || value;
|
|
r30 = r37 === 'SCRIPT' || value;
|
|
r3 = r37 === 'TEXTAREA' || value;
|
|
if (r23) {
|
|
if (textContent) {
|
|
try {
|
|
nextSibling = a0.nextSibling;
|
|
if (nextSibling) {
|
|
r26 = nextSibling;
|
|
} else {
|
|
previousSibling = a0.previousSibling;
|
|
r26 = previousSibling;
|
|
}
|
|
if (r26) {
|
|
r24 = textContent;
|
|
} else {
|
|
parentNode = a0.parentNode;
|
|
sheet = parentNode.sheet;
|
|
value7 = sheet != null;
|
|
if (value7) {
|
|
cssRules = sheet.cssRules;
|
|
r26 = cssRules;
|
|
} else {
|
|
r26 = value7;
|
|
}
|
|
if (r26) {
|
|
value8 = environment;
|
|
stringifyStylesheetBinding = stringifyStylesheet;
|
|
parentNode = a0.parentNode;
|
|
sheet = parentNode.sheet;
|
|
value9 = stringifyStylesheetBinding(sheet);
|
|
r24 = value9;
|
|
} else {
|
|
r24 = textContent;
|
|
}
|
|
}
|
|
} catch (error) {
|
|
console = global.console;
|
|
console.warn("Cannot get CSS styles from text's parentNode. Error: " + error, a0);
|
|
r24 = textContent;
|
|
}
|
|
r24 = absoluteToStylesheet(r24, getHref(object.doc));
|
|
} else {
|
|
r24 = textContent;
|
|
}
|
|
} else {
|
|
r24 = textContent;
|
|
}
|
|
r24 = r30 ? 'SCRIPT_PLACEHOLDER' : r24;
|
|
value14 = needMaskingText(a0, maskTextClass, maskTextSelector, unmaskTextClass, unmaskTextSelector,
|
|
maskAllText);
|
|
r26 = r23 || r30;
|
|
r26 = !r26 ? r3 : r26;
|
|
r26 = !r26 ? !r24 : r26;
|
|
r26 = !r26 ? !value14 : r26;
|
|
r24 = !r26 ? maskTextFn ? maskTextFn(r24, a0.parentElement) : r24.replace(RegExp('[\\S]', 'g'), '*') : r24;
|
|
r3 = r3 && r24;
|
|
r3 = r3 && (maskInputOptions.textarea || value14);
|
|
r24 = r3 ? maskInputFn ? maskInputFn(r24, a0.parentNode) : r24.replace(RegExp('[\\S]', 'g'), '*') : r24;
|
|
if (r37 === 'OPTION') {
|
|
if (r24) {
|
|
maskInputValueBinding = maskInputValue;
|
|
object = {};
|
|
object.isMasked = needMaskingText(a0, maskTextClass, maskTextSelector, unmaskTextClass,
|
|
unmaskTextSelector,
|
|
shouldMaskInput({type: null, tagName: r37, maskInputOptions: maskInputOptions}));
|
|
object.element = a0;
|
|
object.value = r24;
|
|
object.maskInputFn = maskInputFn;
|
|
r24 = maskInputValueBinding(object);
|
|
}
|
|
}
|
|
r24 = !r24 ? '' : r24;
|
|
return {type: env0_18.Text, textContent: r24, isStyle: r23, rootId: rootId};
|
|
}
|
|
const CDATA_SECTION_NODE = a0.CDATA_SECTION_NODE;
|
|
if (CDATA_SECTION_NODE === nodeType) {
|
|
return {type: env0_18.CDATA, textContent: '', rootId: r1};
|
|
}
|
|
const COMMENT_NODE = a0.COMMENT_NODE;
|
|
if (COMMENT_NODE === nodeType) {
|
|
textContent = a0.textContent;
|
|
textContent = !textContent ? '' : textContent;
|
|
return {type: env0_18.Comment, textContent: textContent, rootId: r1};
|
|
}
|
|
return false;
|
|
function serializeElementNode(a0, {doc, blockClass, blockSelector, unblockSelector, inlineStylesheet, maskInputOptions, maskAttributeFn, maskInputFn, dataURLOptions, inlineImages, recordCanvas, keepIframeSrcFn, newlyAddedElement, rootId, maskTextClass, unmaskTextClass, maskTextSelector, unmaskTextSelector, ignoreCSSAttributes}) { // fn#11445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:9840, owner: serializeNode.serializeElementNode, offset: 0x00dae550, size: 1897 bytes, params: 3, frame: 49
|
|
var environment;
|
|
var r13;
|
|
var r16;
|
|
var r28;
|
|
var r0;
|
|
var r19;
|
|
var r14;
|
|
var r29;
|
|
var r23;
|
|
var r12;
|
|
var r4;
|
|
var r1;
|
|
var object;
|
|
var matches;
|
|
var value3;
|
|
var value4;
|
|
var classList;
|
|
var length;
|
|
var value5;
|
|
var value6;
|
|
var property;
|
|
var test;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var contains;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var error;
|
|
var value16;
|
|
var HTMLFormElement;
|
|
var value17;
|
|
var value18;
|
|
var toLowerCaseBinding;
|
|
var tagName;
|
|
var value19;
|
|
var binding;
|
|
var value20;
|
|
var value21;
|
|
var attributes;
|
|
var value22;
|
|
var value23;
|
|
var name;
|
|
var ignoreAttributeBinding;
|
|
var value24;
|
|
var transformAttributeBinding;
|
|
var name2;
|
|
var value25;
|
|
var value26;
|
|
var value27;
|
|
var Array;
|
|
var from;
|
|
var styleSheets;
|
|
var value28;
|
|
var find;
|
|
var value29;
|
|
var value30;
|
|
var stringifyStylesheetBinding;
|
|
var value31;
|
|
var absoluteToStylesheetBinding;
|
|
var href;
|
|
var sheet;
|
|
var innerText;
|
|
var textContent;
|
|
var value32;
|
|
var trim;
|
|
var value33;
|
|
var inputType;
|
|
var inputValue;
|
|
var checked;
|
|
var needMaskingTextBinding;
|
|
var shouldMaskInputBinding;
|
|
var object2;
|
|
var value36;
|
|
var selected;
|
|
var select;
|
|
var __context;
|
|
var toDataURL;
|
|
var type;
|
|
var quality;
|
|
var value37;
|
|
var createElement;
|
|
var element;
|
|
var width;
|
|
var height;
|
|
var element2;
|
|
var getContext;
|
|
var currentSrc;
|
|
var getAttribute;
|
|
var value38;
|
|
var value39;
|
|
var crossOrigin;
|
|
var recordInlineImage2;
|
|
var complete;
|
|
var naturalWidth;
|
|
var addEventListener;
|
|
var value40;
|
|
var value41;
|
|
var paused;
|
|
var value42;
|
|
var value43;
|
|
var currentTime;
|
|
var scrollLeft;
|
|
var scrollTop;
|
|
var getBoundingClientRect;
|
|
var value44;
|
|
var object4;
|
|
var HermesInternal;
|
|
var concat;
|
|
var value45;
|
|
var src;
|
|
var value46;
|
|
var iframeContentDocument;
|
|
var customElements;
|
|
var get;
|
|
var value48;
|
|
var value49;
|
|
var Element;
|
|
var isSVGElement2;
|
|
const env0_0 = a0;
|
|
reducibleJoin2: while (true) {
|
|
if (maskInputOptions !== undefined) {
|
|
r13 = maskInputOptions;
|
|
break reducibleJoin2;
|
|
}
|
|
r13 = {};
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (dataURLOptions !== undefined) {
|
|
r16 = dataURLOptions;
|
|
break reducibleJoin4;
|
|
}
|
|
r16 = {};
|
|
break reducibleJoin4;
|
|
}
|
|
let r9 = newlyAddedElement !== undefined && newlyAddedElement;
|
|
reducibleJoin128: while (true) {
|
|
reduciblePort135: while (true) {
|
|
exceptionLanding134: while (true) {
|
|
reducibleJoin11: while (true) {
|
|
reduciblePort47: while (true) {
|
|
exceptionLanding46: while (true) {
|
|
if (unblockSelector) {
|
|
try {
|
|
matches = a0.matches;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value3 = Reflect.apply(matches, a0, [unblockSelector]);
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
if (value3) {
|
|
value15 = false;
|
|
r0 = value15;
|
|
break reduciblePort47;
|
|
}
|
|
break reducibleJoin11;
|
|
}
|
|
break reducibleJoin11;
|
|
}
|
|
value16 = false;
|
|
r0 = value16;
|
|
break reduciblePort47;
|
|
}
|
|
HTMLFormElement = global.HTMLFormElement;
|
|
value17 = 'form';
|
|
reducibleJoin50: while (true) {
|
|
if (a0 instanceof HTMLFormElement) {
|
|
r14 = value17;
|
|
break reducibleJoin50;
|
|
}
|
|
value18 = environment.__proto__;
|
|
toLowerCaseBinding = toLowerCase;
|
|
tagName = a0.tagName;
|
|
value19 = toLowerCaseBinding(tagName);
|
|
binding = env1_25;
|
|
test = binding.test;
|
|
value20 = Reflect.apply(test, binding, [value19]);
|
|
value21 = 'div';
|
|
r19 = value20 ? value21 : value19;
|
|
r14 = r19;
|
|
break reducibleJoin50;
|
|
}
|
|
object = {};
|
|
var env0_2 = object;
|
|
attributes = a0.attributes;
|
|
length = attributes.length;
|
|
value22 = 0;
|
|
value23 = environment.__proto__;
|
|
if (value22 < length) {
|
|
r19 = value22;
|
|
reducibleLoop51: while (true) {
|
|
attributes = a0.attributes;
|
|
property = attributes[r19];
|
|
name = property.name;
|
|
reducibleJoin53: while (true) {
|
|
if (name) {
|
|
ignoreAttributeBinding = ignoreAttribute;
|
|
name = property.name;
|
|
property.value;
|
|
value24 = !ignoreAttributeBinding(r14, name, undefined);
|
|
r29 = value24;
|
|
break reducibleJoin53;
|
|
}
|
|
r29 = name;
|
|
break reducibleJoin53;
|
|
}
|
|
reducibleJoin55: while (true) {
|
|
if (r29) {
|
|
name = property.name;
|
|
transformAttributeBinding = transformAttribute;
|
|
toLowerCaseBinding = toLowerCase;
|
|
name2 = property.name;
|
|
value25 = toLowerCaseBinding(name2);
|
|
value26 = property.value;
|
|
object[name] = transformAttributeBinding(doc, r14, value25, value26, a0,
|
|
maskAttributeFn,
|
|
ignoreCSSAttributes);
|
|
break reducibleJoin55;
|
|
}
|
|
break reducibleJoin55;
|
|
}
|
|
value27 = typeof r19 === 'bigint' ? r19 + 1n : +r19 + 1;
|
|
if (value27 < length) {
|
|
r19 = value27;
|
|
continue reducibleLoop51;
|
|
}
|
|
break reducibleLoop51;
|
|
}
|
|
}
|
|
reducibleJoin62: while (true) {
|
|
if (r14 !== 'link') {
|
|
break reducibleJoin62;
|
|
}
|
|
if (inlineStylesheet) {
|
|
Array = global.Array;
|
|
from = Array.from;
|
|
styleSheets = doc.styleSheets;
|
|
value28 = Reflect.apply(from, Array, [styleSheets]);
|
|
find = value28.find;
|
|
value29 = Reflect.apply(find, value28, [_fun11446]);
|
|
value30 = null;
|
|
reducibleJoin60: while (true) {
|
|
if (value29) {
|
|
value31 = stringifyStylesheet(value29);
|
|
r23 = value31;
|
|
break reducibleJoin60;
|
|
}
|
|
r23 = value30;
|
|
break reducibleJoin60;
|
|
}
|
|
if (r23) {
|
|
object.rel = value30;
|
|
object.href = value30;
|
|
object.crossorigin = value30;
|
|
absoluteToStylesheetBinding = absoluteToStylesheet;
|
|
href = value29.href;
|
|
object._cssText = absoluteToStylesheetBinding(r23, href);
|
|
break reducibleJoin62;
|
|
}
|
|
break reducibleJoin62;
|
|
}
|
|
break reducibleJoin62;
|
|
}
|
|
reducibleJoin71: while (true) {
|
|
if (r14 !== 'style') {
|
|
break reducibleJoin71;
|
|
}
|
|
sheet = a0.sheet;
|
|
if (sheet) {
|
|
innerText = a0.innerText;
|
|
reducibleJoin66: while (true) {
|
|
if (innerText) {
|
|
r19 = innerText;
|
|
break reducibleJoin66;
|
|
}
|
|
textContent = a0.textContent;
|
|
r19 = textContent;
|
|
break reducibleJoin66;
|
|
}
|
|
reducibleJoin68: while (true) {
|
|
if (r19) {
|
|
break reducibleJoin68;
|
|
}
|
|
value32 = '';
|
|
r19 = value32;
|
|
break reducibleJoin68;
|
|
}
|
|
trim = r19.trim;
|
|
length = Reflect.apply(trim, r19, []).length;
|
|
if (length) {
|
|
break reducibleJoin71;
|
|
}
|
|
stringifyStylesheetBinding = stringifyStylesheet;
|
|
sheet = a0.sheet;
|
|
value33 = stringifyStylesheetBinding(sheet);
|
|
if (value33) {
|
|
object._cssText = absoluteToStylesheet(value33, getHref(doc));
|
|
break reducibleJoin71;
|
|
}
|
|
break reducibleJoin71;
|
|
}
|
|
break reducibleJoin71;
|
|
}
|
|
reducibleJoin81: while (true) {
|
|
reducibleJoin79: while (true) {
|
|
if (r14 === 'input') {
|
|
inputType = getInputType(a0);
|
|
inputValue = getInputValue(a0, toUpperCase(r14), inputType);
|
|
checked = a0.checked;
|
|
if (inputType === 'submit') {
|
|
break reducibleJoin79;
|
|
}
|
|
if (inputType === 'button') {
|
|
break reducibleJoin79;
|
|
}
|
|
if (inputValue) {
|
|
needMaskingTextBinding = needMaskingText;
|
|
shouldMaskInputBinding = shouldMaskInput;
|
|
object2 = {type: inputType};
|
|
object2.tagName = toUpperCase(r14);
|
|
object2.maskInputOptions = r13;
|
|
value36 = needMaskingTextBinding(a0, maskTextClass, maskTextSelector,
|
|
unmaskTextClass,
|
|
unmaskTextSelector,
|
|
shouldMaskInputBinding(object2));
|
|
object.value = maskInputValue({isMasked: value36, element: a0, value: inputValue,
|
|
maskInputFn: maskInputFn});
|
|
break reducibleJoin79;
|
|
}
|
|
break reducibleJoin79;
|
|
}
|
|
if (r14 !== 'textarea') {
|
|
if (r14 !== 'select') {
|
|
if (r14 !== 'option') {
|
|
break reducibleJoin81;
|
|
}
|
|
}
|
|
}
|
|
inputType = getInputType(a0);
|
|
inputValue = getInputValue(a0, toUpperCase(r14), inputType);
|
|
checked = a0.checked;
|
|
if (inputType === 'submit') {
|
|
break reducibleJoin79;
|
|
}
|
|
if (inputType === 'button') {
|
|
break reducibleJoin79;
|
|
}
|
|
if (inputValue) {
|
|
needMaskingTextBinding = needMaskingText;
|
|
shouldMaskInputBinding = shouldMaskInput;
|
|
object2 = {type: inputType};
|
|
object2.tagName = toUpperCase(r14);
|
|
object2.maskInputOptions = r13;
|
|
value36 = needMaskingTextBinding(a0, maskTextClass, maskTextSelector, unmaskTextClass,
|
|
unmaskTextSelector,
|
|
shouldMaskInputBinding(object2));
|
|
object.value = maskInputValue({isMasked: value36, element: a0, value: inputValue,
|
|
maskInputFn: maskInputFn});
|
|
break reducibleJoin79;
|
|
}
|
|
break reducibleJoin79;
|
|
}
|
|
if (checked) {
|
|
object.checked = checked;
|
|
break reducibleJoin81;
|
|
}
|
|
break reducibleJoin81;
|
|
}
|
|
reducibleJoin86: while (true) {
|
|
if (r14 !== 'option') {
|
|
break reducibleJoin86;
|
|
}
|
|
selected = a0.selected;
|
|
if (selected) {
|
|
select = r13.select;
|
|
if (!select) {
|
|
object.selected = true;
|
|
break reducibleJoin86;
|
|
}
|
|
}
|
|
delete object.selected;
|
|
break reducibleJoin86;
|
|
}
|
|
reducibleJoin94: while (true) {
|
|
if (r14 !== 'canvas') {
|
|
break reducibleJoin94;
|
|
}
|
|
if (recordCanvas) {
|
|
__context = a0.__context;
|
|
if (__context === '2d') {
|
|
if (is2DCanvasBlank(a0)) {
|
|
break reducibleJoin94;
|
|
}
|
|
object.rr_dataURL = a0.toDataURL(r16.type, r16.quality);
|
|
break reducibleJoin94;
|
|
}
|
|
if ('__context' in a0) {
|
|
break reducibleJoin94;
|
|
}
|
|
toDataURL = a0.toDataURL;
|
|
type = r16.type;
|
|
quality = r16.quality;
|
|
value37 = Reflect.apply(toDataURL, a0, [type, quality]);
|
|
createElement = doc.createElement;
|
|
element = Reflect.apply(createElement, doc, ['canvas']);
|
|
width = a0.width;
|
|
element.width = width;
|
|
height = a0.height;
|
|
element.height = height;
|
|
toDataURL = element.toDataURL;
|
|
type = r16.type;
|
|
quality = r16.quality;
|
|
if (value37 === Reflect.apply(toDataURL, element, [type, quality])) {
|
|
break reducibleJoin94;
|
|
}
|
|
object.rr_dataURL = value37;
|
|
break reducibleJoin94;
|
|
}
|
|
break reducibleJoin94;
|
|
}
|
|
reducibleJoin106: while (true) {
|
|
if (r14 !== 'img') {
|
|
break reducibleJoin106;
|
|
}
|
|
if (inlineImages) {
|
|
reducibleJoin98: while (true) {
|
|
if (element22) {
|
|
break reducibleJoin98;
|
|
}
|
|
createElement = doc.createElement;
|
|
element2 = Reflect.apply(createElement, doc, ['canvas']);
|
|
element22 = element2;
|
|
getContext = element2.getContext;
|
|
env1_23 = Reflect.apply(getContext, element2, ['2d']);
|
|
break reducibleJoin98;
|
|
}
|
|
var env0_3 = a0;
|
|
currentSrc = a0.currentSrc;
|
|
reducibleJoin100: while (true) {
|
|
if (currentSrc) {
|
|
r12 = currentSrc;
|
|
break reducibleJoin100;
|
|
}
|
|
getAttribute = a0.getAttribute;
|
|
value38 = Reflect.apply(getAttribute, a0, ['src']);
|
|
r12 = value38;
|
|
break reducibleJoin100;
|
|
}
|
|
reducibleJoin102: while (true) {
|
|
if (r12) {
|
|
break reducibleJoin102;
|
|
}
|
|
value39 = '<unknown-src>';
|
|
r12 = value39;
|
|
break reducibleJoin102;
|
|
}
|
|
var env0_4 = r12;
|
|
crossOrigin = a0.crossOrigin;
|
|
var env0_5 = crossOrigin;
|
|
recordInlineImage2 = recordInlineImage;
|
|
var recordInlineImage = recordInlineImage2;
|
|
complete = a0.complete;
|
|
if (complete) {
|
|
naturalWidth = a0.naturalWidth;
|
|
if (value22 !== naturalWidth) {
|
|
recordInlineImage2();
|
|
break reducibleJoin106;
|
|
}
|
|
}
|
|
addEventListener = a0.addEventListener;
|
|
Reflect.apply(addEventListener, a0, ['load', recordInlineImage2]);
|
|
break reducibleJoin106;
|
|
}
|
|
break reducibleJoin106;
|
|
}
|
|
value40 = r14 !== 'audio';
|
|
reducibleJoin108: while (true) {
|
|
if (value40) {
|
|
value41 = r14 !== 'video';
|
|
r12 = value41;
|
|
break reducibleJoin108;
|
|
}
|
|
r12 = value40;
|
|
break reducibleJoin108;
|
|
}
|
|
reducibleJoin112: while (true) {
|
|
if (r12) {
|
|
break reducibleJoin112;
|
|
}
|
|
paused = a0.paused;
|
|
value42 = 'played';
|
|
reducibleJoin111: while (true) {
|
|
if (paused) {
|
|
value43 = 'paused';
|
|
r12 = value43;
|
|
break reducibleJoin111;
|
|
}
|
|
r12 = value42;
|
|
break reducibleJoin111;
|
|
}
|
|
object.rr_mediaState = r12;
|
|
currentTime = a0.currentTime;
|
|
object.rr_mediaCurrentTime = currentTime;
|
|
break reducibleJoin112;
|
|
}
|
|
reducibleJoin117: while (true) {
|
|
if (r9) {
|
|
break reducibleJoin117;
|
|
}
|
|
scrollLeft = a0.scrollLeft;
|
|
reducibleJoin115: while (true) {
|
|
if (scrollLeft) {
|
|
scrollLeft = a0.scrollLeft;
|
|
object.rr_scrollLeft = scrollLeft;
|
|
break reducibleJoin115;
|
|
}
|
|
break reducibleJoin115;
|
|
}
|
|
scrollTop = a0.scrollTop;
|
|
if (scrollTop) {
|
|
scrollTop = a0.scrollTop;
|
|
object.rr_scrollTop = scrollTop;
|
|
break reducibleJoin117;
|
|
}
|
|
break reducibleJoin117;
|
|
}
|
|
reducibleJoin119: while (true) {
|
|
if (r0) {
|
|
getBoundingClientRect = a0.getBoundingClientRect;
|
|
value44 = Reflect.apply(getBoundingClientRect, a0, []);
|
|
width = value44.width;
|
|
height = value44.height;
|
|
object4 = {class: object.class};
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
object4.rr_width = '' + width + 'px';
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
object4.rr_height = '' + height + 'px';
|
|
env0_2 = object4;
|
|
r4 = object4;
|
|
break reducibleJoin119;
|
|
}
|
|
r4 = object;
|
|
break reducibleJoin119;
|
|
}
|
|
value45 = r14 !== 'iframe';
|
|
reducibleJoin121: while (true) {
|
|
if (value45) {
|
|
r9 = value45;
|
|
break reducibleJoin121;
|
|
}
|
|
src = r4.src;
|
|
value46 = keepIframeSrcFn(src);
|
|
r9 = value46;
|
|
break reducibleJoin121;
|
|
}
|
|
reducibleJoin127: while (true) {
|
|
if (r9) {
|
|
break reducibleJoin127;
|
|
}
|
|
reducibleJoin124: while (true) {
|
|
if (r0) {
|
|
r9 = r0;
|
|
break reducibleJoin124;
|
|
}
|
|
iframeContentDocument = getIframeContentDocument(a0);
|
|
r9 = iframeContentDocument;
|
|
break reducibleJoin124;
|
|
}
|
|
reducibleJoin126: while (true) {
|
|
if (r9) {
|
|
break reducibleJoin126;
|
|
}
|
|
src = r4.src;
|
|
r4.rr_src = src;
|
|
break reducibleJoin126;
|
|
}
|
|
delete r4.src;
|
|
break reducibleJoin127;
|
|
}
|
|
try {
|
|
customElements = global.customElements;
|
|
} catch (error) {
|
|
break exceptionLanding134;
|
|
}
|
|
break reducibleJoin128;
|
|
}
|
|
try {
|
|
value4 = typeof blockClass === 'string';
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
reducibleJoin47: while (true) {
|
|
reducibleJoin39: while (true) {
|
|
if (value4) {
|
|
try {
|
|
classList = a0.classList;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
contains = classList.contains;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value11 = Reflect.apply(contains, classList, [blockClass]);
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
if (value11) {
|
|
value14 = true;
|
|
r0 = value14;
|
|
break reducibleJoin47;
|
|
}
|
|
break reducibleJoin39;
|
|
}
|
|
try {
|
|
classList = a0.classList;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
length = classList.length;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value5 = typeof length === 'bigint' ? length : +length;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value6 = typeof value5 === 'bigint' ? value5 - 1n : +value5 - 1;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
if (value5) {
|
|
r28 = value6;
|
|
reducibleLoop20: while (true) {
|
|
try {
|
|
classList = a0.classList;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
property = classList[r28];
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
test = blockClass.test;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(test, blockClass, [property]);
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
if (value7) {
|
|
value10 = true;
|
|
r0 = value10;
|
|
break reducibleJoin47;
|
|
}
|
|
try {
|
|
value8 = typeof r28 === 'bigint' ? r28 : +r28;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value9 = typeof value8 === 'bigint' ? value8 - 1n : +value8 - 1;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
if (value8) {
|
|
r28 = value9;
|
|
continue reducibleLoop20;
|
|
}
|
|
break reducibleJoin39;
|
|
}
|
|
HTMLFormElement = global.HTMLFormElement;
|
|
value17 = 'form';
|
|
reducibleJoin50: while (true) {
|
|
if (a0 instanceof HTMLFormElement) {
|
|
r14 = value17;
|
|
break reducibleJoin50;
|
|
}
|
|
value18 = environment.__proto__;
|
|
toLowerCaseBinding = toLowerCase;
|
|
tagName = a0.tagName;
|
|
value19 = toLowerCaseBinding(tagName);
|
|
binding = env1_25;
|
|
test = binding.test;
|
|
value20 = Reflect.apply(test, binding, [value19]);
|
|
value21 = 'div';
|
|
r19 = value20 ? value21 : value19;
|
|
r14 = r19;
|
|
break reducibleJoin50;
|
|
}
|
|
object = {};
|
|
var env0_2 = object;
|
|
attributes = a0.attributes;
|
|
length = attributes.length;
|
|
value22 = 0;
|
|
value23 = environment.__proto__;
|
|
if (value22 < length) {
|
|
r19 = value22;
|
|
reducibleLoop51: while (true) {
|
|
attributes = a0.attributes;
|
|
property = attributes[r19];
|
|
name = property.name;
|
|
reducibleJoin53: while (true) {
|
|
if (name) {
|
|
ignoreAttributeBinding = ignoreAttribute;
|
|
name = property.name;
|
|
property.value;
|
|
value24 = !ignoreAttributeBinding(r14, name, undefined);
|
|
r29 = value24;
|
|
break reducibleJoin53;
|
|
}
|
|
r29 = name;
|
|
break reducibleJoin53;
|
|
}
|
|
reducibleJoin55: while (true) {
|
|
if (r29) {
|
|
name = property.name;
|
|
transformAttributeBinding = transformAttribute;
|
|
toLowerCaseBinding = toLowerCase;
|
|
name2 = property.name;
|
|
value25 = toLowerCaseBinding(name2);
|
|
value26 = property.value;
|
|
object[name] = transformAttributeBinding(doc, r14, value25, value26, a0,
|
|
maskAttributeFn,
|
|
ignoreCSSAttributes);
|
|
break reducibleJoin55;
|
|
}
|
|
break reducibleJoin55;
|
|
}
|
|
value27 = typeof r19 === 'bigint' ? r19 + 1n : +r19 + 1;
|
|
if (value27 < length) {
|
|
r19 = value27;
|
|
continue reducibleLoop51;
|
|
}
|
|
break reducibleLoop51;
|
|
}
|
|
}
|
|
reducibleJoin62: while (true) {
|
|
if (r14 !== 'link') {
|
|
break reducibleJoin62;
|
|
}
|
|
if (inlineStylesheet) {
|
|
Array = global.Array;
|
|
from = Array.from;
|
|
styleSheets = doc.styleSheets;
|
|
value28 = Reflect.apply(from, Array, [styleSheets]);
|
|
find = value28.find;
|
|
value29 = Reflect.apply(find, value28, [_fun11446]);
|
|
value30 = null;
|
|
reducibleJoin60: while (true) {
|
|
if (value29) {
|
|
value31 = stringifyStylesheet(value29);
|
|
r23 = value31;
|
|
break reducibleJoin60;
|
|
}
|
|
r23 = value30;
|
|
break reducibleJoin60;
|
|
}
|
|
if (r23) {
|
|
object.rel = value30;
|
|
object.href = value30;
|
|
object.crossorigin = value30;
|
|
absoluteToStylesheetBinding = absoluteToStylesheet;
|
|
href = value29.href;
|
|
object._cssText = absoluteToStylesheetBinding(r23, href);
|
|
break reducibleJoin62;
|
|
}
|
|
break reducibleJoin62;
|
|
}
|
|
break reducibleJoin62;
|
|
}
|
|
reducibleJoin71: while (true) {
|
|
if (r14 !== 'style') {
|
|
break reducibleJoin71;
|
|
}
|
|
sheet = a0.sheet;
|
|
if (sheet) {
|
|
innerText = a0.innerText;
|
|
reducibleJoin66: while (true) {
|
|
if (innerText) {
|
|
r19 = innerText;
|
|
break reducibleJoin66;
|
|
}
|
|
textContent = a0.textContent;
|
|
r19 = textContent;
|
|
break reducibleJoin66;
|
|
}
|
|
reducibleJoin68: while (true) {
|
|
if (r19) {
|
|
break reducibleJoin68;
|
|
}
|
|
value32 = '';
|
|
r19 = value32;
|
|
break reducibleJoin68;
|
|
}
|
|
trim = r19.trim;
|
|
length = Reflect.apply(trim, r19, []).length;
|
|
if (length) {
|
|
break reducibleJoin71;
|
|
}
|
|
stringifyStylesheetBinding = stringifyStylesheet;
|
|
sheet = a0.sheet;
|
|
value33 = stringifyStylesheetBinding(sheet);
|
|
if (value33) {
|
|
object._cssText = absoluteToStylesheet(value33, getHref(doc));
|
|
break reducibleJoin71;
|
|
}
|
|
break reducibleJoin71;
|
|
}
|
|
break reducibleJoin71;
|
|
}
|
|
reducibleJoin81: while (true) {
|
|
reducibleJoin79: while (true) {
|
|
if (r14 === 'input') {
|
|
inputType = getInputType(a0);
|
|
inputValue = getInputValue(a0, toUpperCase(r14), inputType);
|
|
checked = a0.checked;
|
|
if (inputType === 'submit') {
|
|
break reducibleJoin79;
|
|
}
|
|
if (inputType === 'button') {
|
|
break reducibleJoin79;
|
|
}
|
|
if (inputValue) {
|
|
needMaskingTextBinding = needMaskingText;
|
|
shouldMaskInputBinding = shouldMaskInput;
|
|
object2 = {type: inputType};
|
|
object2.tagName = toUpperCase(r14);
|
|
object2.maskInputOptions = r13;
|
|
value36 = needMaskingTextBinding(a0, maskTextClass, maskTextSelector,
|
|
unmaskTextClass,
|
|
unmaskTextSelector,
|
|
shouldMaskInputBinding(object2));
|
|
object.value = maskInputValue({isMasked: value36, element: a0,
|
|
value: inputValue,
|
|
maskInputFn: maskInputFn});
|
|
break reducibleJoin79;
|
|
}
|
|
break reducibleJoin79;
|
|
}
|
|
if (r14 !== 'textarea') {
|
|
if (r14 !== 'select') {
|
|
if (r14 !== 'option') {
|
|
break reducibleJoin81;
|
|
}
|
|
}
|
|
}
|
|
inputType = getInputType(a0);
|
|
inputValue = getInputValue(a0, toUpperCase(r14), inputType);
|
|
checked = a0.checked;
|
|
if (inputType === 'submit') {
|
|
break reducibleJoin79;
|
|
}
|
|
if (inputType === 'button') {
|
|
break reducibleJoin79;
|
|
}
|
|
if (inputValue) {
|
|
needMaskingTextBinding = needMaskingText;
|
|
shouldMaskInputBinding = shouldMaskInput;
|
|
object2 = {type: inputType};
|
|
object2.tagName = toUpperCase(r14);
|
|
object2.maskInputOptions = r13;
|
|
value36 = needMaskingTextBinding(a0, maskTextClass, maskTextSelector,
|
|
unmaskTextClass,
|
|
unmaskTextSelector,
|
|
shouldMaskInputBinding(object2));
|
|
object.value = maskInputValue({isMasked: value36, element: a0,
|
|
value: inputValue,
|
|
maskInputFn: maskInputFn});
|
|
break reducibleJoin79;
|
|
}
|
|
break reducibleJoin79;
|
|
}
|
|
if (checked) {
|
|
object.checked = checked;
|
|
break reducibleJoin81;
|
|
}
|
|
break reducibleJoin81;
|
|
}
|
|
reducibleJoin86: while (true) {
|
|
if (r14 !== 'option') {
|
|
break reducibleJoin86;
|
|
}
|
|
selected = a0.selected;
|
|
if (selected) {
|
|
select = r13.select;
|
|
if (!select) {
|
|
object.selected = true;
|
|
break reducibleJoin86;
|
|
}
|
|
}
|
|
delete object.selected;
|
|
break reducibleJoin86;
|
|
}
|
|
reducibleJoin94: while (true) {
|
|
if (r14 !== 'canvas') {
|
|
break reducibleJoin94;
|
|
}
|
|
if (recordCanvas) {
|
|
__context = a0.__context;
|
|
if (__context === '2d') {
|
|
if (is2DCanvasBlank(a0)) {
|
|
break reducibleJoin94;
|
|
}
|
|
object.rr_dataURL = a0.toDataURL(r16.type, r16.quality);
|
|
break reducibleJoin94;
|
|
}
|
|
if ('__context' in a0) {
|
|
break reducibleJoin94;
|
|
}
|
|
toDataURL = a0.toDataURL;
|
|
type = r16.type;
|
|
quality = r16.quality;
|
|
value37 = Reflect.apply(toDataURL, a0, [type, quality]);
|
|
createElement = doc.createElement;
|
|
element = Reflect.apply(createElement, doc, ['canvas']);
|
|
width = a0.width;
|
|
element.width = width;
|
|
height = a0.height;
|
|
element.height = height;
|
|
toDataURL = element.toDataURL;
|
|
type = r16.type;
|
|
quality = r16.quality;
|
|
if (value37 === Reflect.apply(toDataURL, element, [type, quality])) {
|
|
break reducibleJoin94;
|
|
}
|
|
object.rr_dataURL = value37;
|
|
break reducibleJoin94;
|
|
}
|
|
break reducibleJoin94;
|
|
}
|
|
reducibleJoin106: while (true) {
|
|
if (r14 !== 'img') {
|
|
break reducibleJoin106;
|
|
}
|
|
if (inlineImages) {
|
|
reducibleJoin98: while (true) {
|
|
if (element22) {
|
|
break reducibleJoin98;
|
|
}
|
|
createElement = doc.createElement;
|
|
element2 = Reflect.apply(createElement, doc, ['canvas']);
|
|
element22 = element2;
|
|
getContext = element2.getContext;
|
|
env1_23 = Reflect.apply(getContext, element2, ['2d']);
|
|
break reducibleJoin98;
|
|
}
|
|
var env0_3 = a0;
|
|
currentSrc = a0.currentSrc;
|
|
reducibleJoin100: while (true) {
|
|
if (currentSrc) {
|
|
r12 = currentSrc;
|
|
break reducibleJoin100;
|
|
}
|
|
getAttribute = a0.getAttribute;
|
|
value38 = Reflect.apply(getAttribute, a0, ['src']);
|
|
r12 = value38;
|
|
break reducibleJoin100;
|
|
}
|
|
reducibleJoin102: while (true) {
|
|
if (r12) {
|
|
break reducibleJoin102;
|
|
}
|
|
value39 = '<unknown-src>';
|
|
r12 = value39;
|
|
break reducibleJoin102;
|
|
}
|
|
var env0_4 = r12;
|
|
crossOrigin = a0.crossOrigin;
|
|
var env0_5 = crossOrigin;
|
|
recordInlineImage2 = recordInlineImage;
|
|
var recordInlineImage = recordInlineImage2;
|
|
complete = a0.complete;
|
|
if (complete) {
|
|
naturalWidth = a0.naturalWidth;
|
|
if (value22 !== naturalWidth) {
|
|
recordInlineImage2();
|
|
break reducibleJoin106;
|
|
}
|
|
}
|
|
addEventListener = a0.addEventListener;
|
|
Reflect.apply(addEventListener, a0, ['load', recordInlineImage2]);
|
|
break reducibleJoin106;
|
|
}
|
|
break reducibleJoin106;
|
|
}
|
|
value40 = r14 !== 'audio';
|
|
reducibleJoin108: while (true) {
|
|
if (value40) {
|
|
value41 = r14 !== 'video';
|
|
r12 = value41;
|
|
break reducibleJoin108;
|
|
}
|
|
r12 = value40;
|
|
break reducibleJoin108;
|
|
}
|
|
reducibleJoin112: while (true) {
|
|
if (r12) {
|
|
break reducibleJoin112;
|
|
}
|
|
paused = a0.paused;
|
|
value42 = 'played';
|
|
reducibleJoin111: while (true) {
|
|
if (paused) {
|
|
value43 = 'paused';
|
|
r12 = value43;
|
|
break reducibleJoin111;
|
|
}
|
|
r12 = value42;
|
|
break reducibleJoin111;
|
|
}
|
|
object.rr_mediaState = r12;
|
|
currentTime = a0.currentTime;
|
|
object.rr_mediaCurrentTime = currentTime;
|
|
break reducibleJoin112;
|
|
}
|
|
reducibleJoin117: while (true) {
|
|
if (r9) {
|
|
break reducibleJoin117;
|
|
}
|
|
scrollLeft = a0.scrollLeft;
|
|
reducibleJoin115: while (true) {
|
|
if (scrollLeft) {
|
|
scrollLeft = a0.scrollLeft;
|
|
object.rr_scrollLeft = scrollLeft;
|
|
break reducibleJoin115;
|
|
}
|
|
break reducibleJoin115;
|
|
}
|
|
scrollTop = a0.scrollTop;
|
|
if (scrollTop) {
|
|
scrollTop = a0.scrollTop;
|
|
object.rr_scrollTop = scrollTop;
|
|
break reducibleJoin117;
|
|
}
|
|
break reducibleJoin117;
|
|
}
|
|
reducibleJoin119: while (true) {
|
|
if (r0) {
|
|
getBoundingClientRect = a0.getBoundingClientRect;
|
|
value44 = Reflect.apply(getBoundingClientRect, a0, []);
|
|
width = value44.width;
|
|
height = value44.height;
|
|
object4 = {class: object.class};
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
object4.rr_width = '' + width + 'px';
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
object4.rr_height = '' + height + 'px';
|
|
env0_2 = object4;
|
|
r4 = object4;
|
|
break reducibleJoin119;
|
|
}
|
|
r4 = object;
|
|
break reducibleJoin119;
|
|
}
|
|
value45 = r14 !== 'iframe';
|
|
reducibleJoin121: while (true) {
|
|
if (value45) {
|
|
r9 = value45;
|
|
break reducibleJoin121;
|
|
}
|
|
src = r4.src;
|
|
value46 = keepIframeSrcFn(src);
|
|
r9 = value46;
|
|
break reducibleJoin121;
|
|
}
|
|
reducibleJoin127: while (true) {
|
|
if (r9) {
|
|
break reducibleJoin127;
|
|
}
|
|
reducibleJoin124: while (true) {
|
|
if (r0) {
|
|
r9 = r0;
|
|
break reducibleJoin124;
|
|
}
|
|
iframeContentDocument = getIframeContentDocument(a0);
|
|
r9 = iframeContentDocument;
|
|
break reducibleJoin124;
|
|
}
|
|
reducibleJoin126: while (true) {
|
|
if (r9) {
|
|
break reducibleJoin126;
|
|
}
|
|
src = r4.src;
|
|
r4.rr_src = src;
|
|
break reducibleJoin126;
|
|
}
|
|
delete r4.src;
|
|
break reducibleJoin127;
|
|
}
|
|
try {
|
|
customElements = global.customElements;
|
|
} catch (error) {
|
|
break exceptionLanding134;
|
|
}
|
|
break reducibleJoin128;
|
|
}
|
|
break reducibleJoin39;
|
|
}
|
|
if (blockSelector) {
|
|
try {
|
|
matches = a0.matches;
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
try {
|
|
value13 = Reflect.apply(matches, a0, [blockSelector]);
|
|
} catch (error) {
|
|
break exceptionLanding46;
|
|
}
|
|
r0 = value13;
|
|
break reducibleJoin47;
|
|
}
|
|
value12 = false;
|
|
r0 = value12;
|
|
break reducibleJoin47;
|
|
}
|
|
HTMLFormElement = global.HTMLFormElement;
|
|
value17 = 'form';
|
|
reducibleJoin50: while (true) {
|
|
if (a0 instanceof HTMLFormElement) {
|
|
r14 = value17;
|
|
break reducibleJoin50;
|
|
}
|
|
value18 = environment.__proto__;
|
|
toLowerCaseBinding = toLowerCase;
|
|
tagName = a0.tagName;
|
|
value19 = toLowerCaseBinding(tagName);
|
|
binding = env1_25;
|
|
test = binding.test;
|
|
value20 = Reflect.apply(test, binding, [value19]);
|
|
value21 = 'div';
|
|
r19 = value20 ? value21 : value19;
|
|
r14 = r19;
|
|
break reducibleJoin50;
|
|
}
|
|
object = {};
|
|
var env0_2 = object;
|
|
attributes = a0.attributes;
|
|
length = attributes.length;
|
|
value22 = 0;
|
|
value23 = environment.__proto__;
|
|
if (value22 < length) {
|
|
r19 = value22;
|
|
reducibleLoop51: while (true) {
|
|
attributes = a0.attributes;
|
|
property = attributes[r19];
|
|
name = property.name;
|
|
reducibleJoin53: while (true) {
|
|
if (name) {
|
|
ignoreAttributeBinding = ignoreAttribute;
|
|
name = property.name;
|
|
property.value;
|
|
value24 = !ignoreAttributeBinding(r14, name, undefined);
|
|
r29 = value24;
|
|
break reducibleJoin53;
|
|
}
|
|
r29 = name;
|
|
break reducibleJoin53;
|
|
}
|
|
reducibleJoin55: while (true) {
|
|
if (r29) {
|
|
name = property.name;
|
|
transformAttributeBinding = transformAttribute;
|
|
toLowerCaseBinding = toLowerCase;
|
|
name2 = property.name;
|
|
value25 = toLowerCaseBinding(name2);
|
|
value26 = property.value;
|
|
object[name] = transformAttributeBinding(doc, r14, value25, value26, a0,
|
|
maskAttributeFn,
|
|
ignoreCSSAttributes);
|
|
break reducibleJoin55;
|
|
}
|
|
break reducibleJoin55;
|
|
}
|
|
value27 = typeof r19 === 'bigint' ? r19 + 1n : +r19 + 1;
|
|
if (value27 < length) {
|
|
r19 = value27;
|
|
continue reducibleLoop51;
|
|
}
|
|
break reducibleLoop51;
|
|
}
|
|
}
|
|
reducibleJoin62: while (true) {
|
|
if (r14 !== 'link') {
|
|
break reducibleJoin62;
|
|
}
|
|
if (inlineStylesheet) {
|
|
Array = global.Array;
|
|
from = Array.from;
|
|
styleSheets = doc.styleSheets;
|
|
value28 = Reflect.apply(from, Array, [styleSheets]);
|
|
find = value28.find;
|
|
value29 = Reflect.apply(find, value28, [_fun11446]);
|
|
value30 = null;
|
|
reducibleJoin60: while (true) {
|
|
if (value29) {
|
|
value31 = stringifyStylesheet(value29);
|
|
r23 = value31;
|
|
break reducibleJoin60;
|
|
}
|
|
r23 = value30;
|
|
break reducibleJoin60;
|
|
}
|
|
if (r23) {
|
|
object.rel = value30;
|
|
object.href = value30;
|
|
object.crossorigin = value30;
|
|
absoluteToStylesheetBinding = absoluteToStylesheet;
|
|
href = value29.href;
|
|
object._cssText = absoluteToStylesheetBinding(r23, href);
|
|
break reducibleJoin62;
|
|
}
|
|
break reducibleJoin62;
|
|
}
|
|
break reducibleJoin62;
|
|
}
|
|
reducibleJoin71: while (true) {
|
|
if (r14 !== 'style') {
|
|
break reducibleJoin71;
|
|
}
|
|
sheet = a0.sheet;
|
|
if (sheet) {
|
|
innerText = a0.innerText;
|
|
reducibleJoin66: while (true) {
|
|
if (innerText) {
|
|
r19 = innerText;
|
|
break reducibleJoin66;
|
|
}
|
|
textContent = a0.textContent;
|
|
r19 = textContent;
|
|
break reducibleJoin66;
|
|
}
|
|
reducibleJoin68: while (true) {
|
|
if (r19) {
|
|
break reducibleJoin68;
|
|
}
|
|
value32 = '';
|
|
r19 = value32;
|
|
break reducibleJoin68;
|
|
}
|
|
trim = r19.trim;
|
|
length = Reflect.apply(trim, r19, []).length;
|
|
if (length) {
|
|
break reducibleJoin71;
|
|
}
|
|
stringifyStylesheetBinding = stringifyStylesheet;
|
|
sheet = a0.sheet;
|
|
value33 = stringifyStylesheetBinding(sheet);
|
|
if (value33) {
|
|
object._cssText = absoluteToStylesheet(value33, getHref(doc));
|
|
break reducibleJoin71;
|
|
}
|
|
break reducibleJoin71;
|
|
}
|
|
break reducibleJoin71;
|
|
}
|
|
reducibleJoin81: while (true) {
|
|
reducibleJoin79: while (true) {
|
|
if (r14 === 'input') {
|
|
inputType = getInputType(a0);
|
|
inputValue = getInputValue(a0, toUpperCase(r14), inputType);
|
|
checked = a0.checked;
|
|
if (inputType === 'submit') {
|
|
break reducibleJoin79;
|
|
}
|
|
if (inputType === 'button') {
|
|
break reducibleJoin79;
|
|
}
|
|
if (inputValue) {
|
|
needMaskingTextBinding = needMaskingText;
|
|
shouldMaskInputBinding = shouldMaskInput;
|
|
object2 = {type: inputType};
|
|
object2.tagName = toUpperCase(r14);
|
|
object2.maskInputOptions = r13;
|
|
value36 = needMaskingTextBinding(a0, maskTextClass, maskTextSelector, unmaskTextClass,
|
|
unmaskTextSelector,
|
|
shouldMaskInputBinding(object2));
|
|
object.value = maskInputValue({isMasked: value36, element: a0, value: inputValue,
|
|
maskInputFn: maskInputFn});
|
|
break reducibleJoin79;
|
|
}
|
|
break reducibleJoin79;
|
|
}
|
|
if (r14 !== 'textarea') {
|
|
if (r14 !== 'select') {
|
|
if (r14 !== 'option') {
|
|
break reducibleJoin81;
|
|
}
|
|
}
|
|
}
|
|
inputType = getInputType(a0);
|
|
inputValue = getInputValue(a0, toUpperCase(r14), inputType);
|
|
checked = a0.checked;
|
|
if (inputType === 'submit') {
|
|
break reducibleJoin79;
|
|
}
|
|
if (inputType === 'button') {
|
|
break reducibleJoin79;
|
|
}
|
|
if (inputValue) {
|
|
needMaskingTextBinding = needMaskingText;
|
|
shouldMaskInputBinding = shouldMaskInput;
|
|
object2 = {type: inputType};
|
|
object2.tagName = toUpperCase(r14);
|
|
object2.maskInputOptions = r13;
|
|
value36 = needMaskingTextBinding(a0, maskTextClass, maskTextSelector, unmaskTextClass,
|
|
unmaskTextSelector,
|
|
shouldMaskInputBinding(object2));
|
|
object.value = maskInputValue({isMasked: value36, element: a0, value: inputValue,
|
|
maskInputFn: maskInputFn});
|
|
break reducibleJoin79;
|
|
}
|
|
break reducibleJoin79;
|
|
}
|
|
if (checked) {
|
|
object.checked = checked;
|
|
break reducibleJoin81;
|
|
}
|
|
break reducibleJoin81;
|
|
}
|
|
reducibleJoin86: while (true) {
|
|
if (r14 !== 'option') {
|
|
break reducibleJoin86;
|
|
}
|
|
selected = a0.selected;
|
|
if (selected) {
|
|
select = r13.select;
|
|
if (!select) {
|
|
object.selected = true;
|
|
break reducibleJoin86;
|
|
}
|
|
}
|
|
delete object.selected;
|
|
break reducibleJoin86;
|
|
}
|
|
reducibleJoin94: while (true) {
|
|
if (r14 !== 'canvas') {
|
|
break reducibleJoin94;
|
|
}
|
|
if (recordCanvas) {
|
|
__context = a0.__context;
|
|
if (__context === '2d') {
|
|
if (is2DCanvasBlank(a0)) {
|
|
break reducibleJoin94;
|
|
}
|
|
object.rr_dataURL = a0.toDataURL(r16.type, r16.quality);
|
|
break reducibleJoin94;
|
|
}
|
|
if ('__context' in a0) {
|
|
break reducibleJoin94;
|
|
}
|
|
toDataURL = a0.toDataURL;
|
|
type = r16.type;
|
|
quality = r16.quality;
|
|
value37 = Reflect.apply(toDataURL, a0, [type, quality]);
|
|
createElement = doc.createElement;
|
|
element = Reflect.apply(createElement, doc, ['canvas']);
|
|
width = a0.width;
|
|
element.width = width;
|
|
height = a0.height;
|
|
element.height = height;
|
|
toDataURL = element.toDataURL;
|
|
type = r16.type;
|
|
quality = r16.quality;
|
|
if (value37 === Reflect.apply(toDataURL, element, [type, quality])) {
|
|
break reducibleJoin94;
|
|
}
|
|
object.rr_dataURL = value37;
|
|
break reducibleJoin94;
|
|
}
|
|
break reducibleJoin94;
|
|
}
|
|
reducibleJoin106: while (true) {
|
|
if (r14 !== 'img') {
|
|
break reducibleJoin106;
|
|
}
|
|
if (inlineImages) {
|
|
reducibleJoin98: while (true) {
|
|
if (element22) {
|
|
break reducibleJoin98;
|
|
}
|
|
createElement = doc.createElement;
|
|
element2 = Reflect.apply(createElement, doc, ['canvas']);
|
|
element22 = element2;
|
|
getContext = element2.getContext;
|
|
env1_23 = Reflect.apply(getContext, element2, ['2d']);
|
|
break reducibleJoin98;
|
|
}
|
|
var env0_3 = a0;
|
|
currentSrc = a0.currentSrc;
|
|
reducibleJoin100: while (true) {
|
|
if (currentSrc) {
|
|
r12 = currentSrc;
|
|
break reducibleJoin100;
|
|
}
|
|
getAttribute = a0.getAttribute;
|
|
value38 = Reflect.apply(getAttribute, a0, ['src']);
|
|
r12 = value38;
|
|
break reducibleJoin100;
|
|
}
|
|
reducibleJoin102: while (true) {
|
|
if (r12) {
|
|
break reducibleJoin102;
|
|
}
|
|
value39 = '<unknown-src>';
|
|
r12 = value39;
|
|
break reducibleJoin102;
|
|
}
|
|
var env0_4 = r12;
|
|
crossOrigin = a0.crossOrigin;
|
|
var env0_5 = crossOrigin;
|
|
recordInlineImage2 = recordInlineImage;
|
|
var recordInlineImage = recordInlineImage2;
|
|
complete = a0.complete;
|
|
if (complete) {
|
|
naturalWidth = a0.naturalWidth;
|
|
if (value22 !== naturalWidth) {
|
|
recordInlineImage2();
|
|
break reducibleJoin106;
|
|
}
|
|
}
|
|
addEventListener = a0.addEventListener;
|
|
Reflect.apply(addEventListener, a0, ['load', recordInlineImage2]);
|
|
break reducibleJoin106;
|
|
}
|
|
break reducibleJoin106;
|
|
}
|
|
value40 = r14 !== 'audio';
|
|
reducibleJoin108: while (true) {
|
|
if (value40) {
|
|
value41 = r14 !== 'video';
|
|
r12 = value41;
|
|
break reducibleJoin108;
|
|
}
|
|
r12 = value40;
|
|
break reducibleJoin108;
|
|
}
|
|
reducibleJoin112: while (true) {
|
|
if (r12) {
|
|
break reducibleJoin112;
|
|
}
|
|
paused = a0.paused;
|
|
value42 = 'played';
|
|
reducibleJoin111: while (true) {
|
|
if (paused) {
|
|
value43 = 'paused';
|
|
r12 = value43;
|
|
break reducibleJoin111;
|
|
}
|
|
r12 = value42;
|
|
break reducibleJoin111;
|
|
}
|
|
object.rr_mediaState = r12;
|
|
currentTime = a0.currentTime;
|
|
object.rr_mediaCurrentTime = currentTime;
|
|
break reducibleJoin112;
|
|
}
|
|
reducibleJoin117: while (true) {
|
|
if (r9) {
|
|
break reducibleJoin117;
|
|
}
|
|
scrollLeft = a0.scrollLeft;
|
|
reducibleJoin115: while (true) {
|
|
if (scrollLeft) {
|
|
scrollLeft = a0.scrollLeft;
|
|
object.rr_scrollLeft = scrollLeft;
|
|
break reducibleJoin115;
|
|
}
|
|
break reducibleJoin115;
|
|
}
|
|
scrollTop = a0.scrollTop;
|
|
if (scrollTop) {
|
|
scrollTop = a0.scrollTop;
|
|
object.rr_scrollTop = scrollTop;
|
|
break reducibleJoin117;
|
|
}
|
|
break reducibleJoin117;
|
|
}
|
|
reducibleJoin119: while (true) {
|
|
if (r0) {
|
|
getBoundingClientRect = a0.getBoundingClientRect;
|
|
value44 = Reflect.apply(getBoundingClientRect, a0, []);
|
|
width = value44.width;
|
|
height = value44.height;
|
|
object4 = {class: object.class};
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
object4.rr_width = '' + width + 'px';
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
object4.rr_height = '' + height + 'px';
|
|
env0_2 = object4;
|
|
r4 = object4;
|
|
break reducibleJoin119;
|
|
}
|
|
r4 = object;
|
|
break reducibleJoin119;
|
|
}
|
|
value45 = r14 !== 'iframe';
|
|
reducibleJoin121: while (true) {
|
|
if (value45) {
|
|
r9 = value45;
|
|
break reducibleJoin121;
|
|
}
|
|
src = r4.src;
|
|
value46 = keepIframeSrcFn(src);
|
|
r9 = value46;
|
|
break reducibleJoin121;
|
|
}
|
|
reducibleJoin127: while (true) {
|
|
if (r9) {
|
|
break reducibleJoin127;
|
|
}
|
|
reducibleJoin124: while (true) {
|
|
if (r0) {
|
|
r9 = r0;
|
|
break reducibleJoin124;
|
|
}
|
|
iframeContentDocument = getIframeContentDocument(a0);
|
|
r9 = iframeContentDocument;
|
|
break reducibleJoin124;
|
|
}
|
|
reducibleJoin126: while (true) {
|
|
if (r9) {
|
|
break reducibleJoin126;
|
|
}
|
|
src = r4.src;
|
|
r4.rr_src = src;
|
|
break reducibleJoin126;
|
|
}
|
|
delete r4.src;
|
|
break reducibleJoin127;
|
|
}
|
|
try {
|
|
customElements = global.customElements;
|
|
} catch (error) {
|
|
break exceptionLanding134;
|
|
}
|
|
break reducibleJoin128;
|
|
}
|
|
r1 = undefined;
|
|
break reduciblePort135;
|
|
}
|
|
object = {};
|
|
Element = env1_18.Element;
|
|
object.type = Element;
|
|
object.tagName = r14;
|
|
object.attributes = r4;
|
|
object.childNodes = [];
|
|
isSVGElement2 = isSVGElement(a0);
|
|
r4 = isSVGElement2 || undefined;
|
|
object.isSVG = r4;
|
|
object.needBlock = r0;
|
|
object.rootId = rootId;
|
|
object.isCustom = r1;
|
|
return object;
|
|
}
|
|
try {
|
|
get = customElements.get;
|
|
} catch (error) {
|
|
break exceptionLanding134;
|
|
}
|
|
try {
|
|
value48 = Reflect.apply(get, customElements, [r14]);
|
|
} catch (error) {
|
|
break exceptionLanding134;
|
|
}
|
|
reducibleJoin133: while (true) {
|
|
if (value48) {
|
|
value49 = true;
|
|
r1 = value49;
|
|
break reducibleJoin133;
|
|
}
|
|
r1 = undefined;
|
|
break reducibleJoin133;
|
|
}
|
|
object = {};
|
|
Element = env1_18.Element;
|
|
object.type = Element;
|
|
object.tagName = r14;
|
|
object.attributes = r4;
|
|
object.childNodes = [];
|
|
object.isSVG = isSVGElement(a0) || undefined;
|
|
object.needBlock = r0;
|
|
object.rootId = rootId;
|
|
object.isCustom = r1;
|
|
return object;
|
|
function _fun11446({href}) { // fn#11446, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:10921, offset: 0x00daecb9, size: 28 bytes, params: 2, frame: 2
|
|
return href === env0_0.href;
|
|
}
|
|
|
|
function is2DCanvasBlank(a0) { // fn#11447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:11712, owner: serializeNode.serializeElementNode.is2DCanvasBlank, offset: 0x00daecd5, size: 275 bytes, params: 2, frame: 30
|
|
var environment;
|
|
var r1;
|
|
var r10;
|
|
var r15;
|
|
var width;
|
|
var value2;
|
|
var value3;
|
|
var height;
|
|
var getImageData;
|
|
var property;
|
|
var Uint32Array;
|
|
var call;
|
|
var Math;
|
|
var min;
|
|
var value4;
|
|
var data;
|
|
var buffer;
|
|
var prototype;
|
|
var value5;
|
|
var uint32Array;
|
|
var value6;
|
|
var some;
|
|
var value7;
|
|
var value8;
|
|
const context = a0.getContext('2d');
|
|
if (context) {
|
|
width = a0.width;
|
|
value2 = 0;
|
|
value3 = environment.__proto__.__proto__;
|
|
if (value2 < width) {
|
|
r1 = value2;
|
|
reducibleLoop3: while (true) {
|
|
height = a0.height;
|
|
if (value2 < height) {
|
|
r10 = value2;
|
|
reducibleLoop4: while (true) {
|
|
getImageData = context.getImageData;
|
|
reducibleJoin6: while (true) {
|
|
if (env2_20 in getImageData) {
|
|
property = getImageData[env2_20];
|
|
r15 = property;
|
|
break reducibleJoin6;
|
|
}
|
|
r15 = getImageData;
|
|
break reducibleJoin6;
|
|
}
|
|
Uint32Array = global.Uint32Array;
|
|
call = r15.call;
|
|
Math = global.Math;
|
|
min = Math.min;
|
|
width = a0.width;
|
|
value4 = Reflect.apply(min, Math, [50, width - r1]);
|
|
Math = global.Math;
|
|
min = Math.min;
|
|
height = a0.height;
|
|
data = Reflect.apply(call, r15, [context, r1, r10, value4, Reflect.apply(min, Math, [50,
|
|
height - r10])]).data;
|
|
buffer = data.buffer;
|
|
prototype = Uint32Array.prototype;
|
|
value5 = Object.create(prototype, {constructor: {value: Uint32Array}});
|
|
uint32Array = new Uint32Array();
|
|
value6 = uint32Array instanceof Object ? uint32Array : value5;
|
|
some = value6.some;
|
|
if (Reflect.apply(some, value6, [function(a0) {
|
|
return a0 !== 0;
|
|
}])) {
|
|
return false;
|
|
}
|
|
value7 = r10 + 50;
|
|
height = a0.height;
|
|
if (value7 < height) {
|
|
r10 = value7;
|
|
continue reducibleLoop4;
|
|
}
|
|
break reducibleLoop4;
|
|
}
|
|
}
|
|
value8 = r1 + 50;
|
|
width = a0.width;
|
|
if (!(value8 < width)) {
|
|
return true;
|
|
}
|
|
r1 = value8;
|
|
continue reducibleLoop3;
|
|
}
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
function recordInlineImage() { // fn#11449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:12401, owner: serializeNode.serializeElementNode.recordInlineImage, offset: 0x00daedf3, size: 361 bytes, params: 1, frame: 20
|
|
var value2;
|
|
var binding2;
|
|
var naturalWidth;
|
|
var binding3;
|
|
var naturalHeight;
|
|
var drawImage;
|
|
var binding4;
|
|
var binding5;
|
|
var toDataURL;
|
|
var binding6;
|
|
var type;
|
|
var binding7;
|
|
var quality;
|
|
var value3;
|
|
var error;
|
|
var crossOrigin2;
|
|
var console;
|
|
var warn;
|
|
var complete;
|
|
let binding = env0_3;
|
|
binding.removeEventListener('load', recordInlineImage);
|
|
try {
|
|
value2 = environment.__proto__.__proto__;
|
|
binding = env2_22;
|
|
binding2 = env0_3;
|
|
naturalWidth = binding2.naturalWidth;
|
|
binding.width = naturalWidth;
|
|
binding = env2_22;
|
|
binding3 = env0_3;
|
|
naturalHeight = binding3.naturalHeight;
|
|
binding.height = naturalHeight;
|
|
binding = env2_23;
|
|
drawImage = binding.drawImage;
|
|
binding4 = env0_3;
|
|
Reflect.apply(drawImage, binding, [binding4, 0, 0]);
|
|
binding = env0_2;
|
|
binding5 = env2_22;
|
|
toDataURL = binding5.toDataURL;
|
|
binding6 = env0_1;
|
|
type = binding6.type;
|
|
binding7 = env0_1;
|
|
quality = binding7.quality;
|
|
value3 = Reflect.apply(toDataURL, binding5, [type, quality]);
|
|
binding.rr_dataURL = value3;
|
|
} catch (error) {
|
|
crossOrigin2 = env0_3.crossOrigin;
|
|
if (crossOrigin2 !== 'anonymous') {
|
|
env0_3.crossOrigin = 'anonymous';
|
|
complete = env0_3.complete;
|
|
if (complete) {
|
|
naturalWidth = env0_3.naturalWidth;
|
|
if (naturalWidth !== 0) {
|
|
recordInlineImage();
|
|
} else {
|
|
env0_3.addEventListener('load', recordInlineImage);
|
|
}
|
|
} else {
|
|
env0_3.addEventListener('load', recordInlineImage);
|
|
}
|
|
return undefined;
|
|
}
|
|
console = global.console;
|
|
warn = console.warn;
|
|
binding = env0_4;
|
|
Reflect.apply(warn, console, ['Cannot inline img src=' + binding + '! Error: ' + error]);
|
|
}
|
|
if (env0_3.crossOrigin === 'anonymous') {
|
|
if (crossOrigin) {
|
|
env0_2.crossOrigin = crossOrigin;
|
|
} else {
|
|
env0_3.removeAttribute('crossorigin');
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function serializeNodeWithId(a0, a1) { // fn#11451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:15226, offset: 0x00daef78, size: 3324 bytes, params: 3, frame: 54
|
|
var environment;
|
|
var r28;
|
|
var r27;
|
|
var r26;
|
|
var r21;
|
|
var r20;
|
|
var r19;
|
|
var r9;
|
|
var r5;
|
|
var r13;
|
|
var r40;
|
|
var r18;
|
|
var r4;
|
|
var r39;
|
|
var r7;
|
|
var r8;
|
|
var doc;
|
|
var mirror;
|
|
var blockClass;
|
|
var blockSelector;
|
|
var unblockSelector;
|
|
var maskAllText;
|
|
var maskTextClass;
|
|
var unmaskTextClass;
|
|
var maskTextSelector;
|
|
var unmaskTextSelector;
|
|
var skipChild;
|
|
var value;
|
|
var inlineStylesheet;
|
|
var maskInputOptions;
|
|
var object;
|
|
var maskAttributeFn;
|
|
var maskTextFn;
|
|
var maskInputFn;
|
|
var slimDOMOptions;
|
|
var dataURLOptions;
|
|
var inlineImages;
|
|
var recordCanvas;
|
|
var onSerialize;
|
|
var onIframeLoad;
|
|
var iframeLoadTimeout;
|
|
var onBlockedImageLoad;
|
|
var onStylesheetLoad;
|
|
var stylesheetLoadTimeout;
|
|
var keepIframeSrcFn;
|
|
var closure;
|
|
var newlyAddedElement;
|
|
var ignoreCSSAttributes;
|
|
var preserveWhiteSpace;
|
|
var serializeNodeBinding;
|
|
var value2;
|
|
var console;
|
|
var warn;
|
|
var hasNode;
|
|
var comment;
|
|
var type;
|
|
var Comment;
|
|
var value3;
|
|
var Element;
|
|
var value4;
|
|
var script;
|
|
var tagName;
|
|
var value5;
|
|
var attributes;
|
|
var rel;
|
|
var href;
|
|
var extractFileExtensionBinding;
|
|
var value6;
|
|
var headFavicon;
|
|
var value7;
|
|
var lowerIfExistsBinding;
|
|
var name;
|
|
var value8;
|
|
var match;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var headMetaDescKeywords;
|
|
var value15;
|
|
var value16;
|
|
var value17;
|
|
var headMetaSocial;
|
|
var property2;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var value22;
|
|
var headMetaRobots;
|
|
var value23;
|
|
var value24;
|
|
var value25;
|
|
var value26;
|
|
var headMetaHttpEquiv;
|
|
var value27;
|
|
var headMetaAuthorship;
|
|
var value28;
|
|
var value29;
|
|
var value30;
|
|
var value31;
|
|
var value32;
|
|
var value33;
|
|
var value34;
|
|
var value35;
|
|
var headMetaVerification;
|
|
var value36;
|
|
var value37;
|
|
var value38;
|
|
var value39;
|
|
var value40;
|
|
var value41;
|
|
var value42;
|
|
var value43;
|
|
var value44;
|
|
var Text;
|
|
var isStyle;
|
|
var textContent;
|
|
var replace;
|
|
var length;
|
|
var value45;
|
|
var getId;
|
|
var value46;
|
|
var Object;
|
|
var assign;
|
|
var value47;
|
|
var add;
|
|
var value48;
|
|
var needBlock;
|
|
var value49;
|
|
var shadowRoot;
|
|
var isNativeShadowDomBinding;
|
|
var isNativeShadowDom2;
|
|
var Document;
|
|
var headWhitespace;
|
|
var value50;
|
|
var value51;
|
|
var value52;
|
|
var childNodes;
|
|
var Array;
|
|
var from;
|
|
var value53;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var serializeNodeWithIdBinding;
|
|
var value54;
|
|
var push;
|
|
var error;
|
|
var nodeType;
|
|
var ELEMENT_NODE;
|
|
var iterator3;
|
|
var item3;
|
|
var value55;
|
|
var isNativeShadowDom3;
|
|
var parentNode;
|
|
var isShadowRootBinding;
|
|
var isShadowRoot2;
|
|
var isNativeShadowDom4;
|
|
var value56;
|
|
var value57;
|
|
var complete;
|
|
var isConnected;
|
|
var addEventListener;
|
|
var value58;
|
|
var value59;
|
|
var value60;
|
|
var value61;
|
|
var value62;
|
|
var value63;
|
|
var value64;
|
|
var value65;
|
|
exceptionSkip130: while (true) {
|
|
exceptionLanding130: while (true) {
|
|
exceptionSkip109: while (true) {
|
|
exceptionLanding109: while (true) {
|
|
var env0_0 = a0;
|
|
doc = a1.doc;
|
|
var env0_1 = doc;
|
|
mirror = a1.mirror;
|
|
var env0_2 = mirror;
|
|
blockClass = a1.blockClass;
|
|
var env0_3 = blockClass;
|
|
blockSelector = a1.blockSelector;
|
|
var env0_4 = blockSelector;
|
|
unblockSelector = a1.unblockSelector;
|
|
var env0_5 = unblockSelector;
|
|
maskAllText = a1.maskAllText;
|
|
var env0_6 = maskAllText;
|
|
maskTextClass = a1.maskTextClass;
|
|
var env0_7 = maskTextClass;
|
|
unmaskTextClass = a1.unmaskTextClass;
|
|
var env0_8 = unmaskTextClass;
|
|
maskTextSelector = a1.maskTextSelector;
|
|
var env0_9 = maskTextSelector;
|
|
unmaskTextSelector = a1.unmaskTextSelector;
|
|
var env0_10 = unmaskTextSelector;
|
|
skipChild = a1.skipChild;
|
|
value = skipChild !== undefined;
|
|
r28 = value && skipChild;
|
|
inlineStylesheet = a1.inlineStylesheet;
|
|
value = inlineStylesheet === undefined;
|
|
r27 = value || inlineStylesheet;
|
|
var env0_11 = r27;
|
|
maskInputOptions = a1.maskInputOptions;
|
|
reducibleJoin4: while (true) {
|
|
if (maskInputOptions !== undefined) {
|
|
r26 = maskInputOptions;
|
|
break reducibleJoin4;
|
|
}
|
|
r26 = {};
|
|
break reducibleJoin4;
|
|
}
|
|
var env0_12 = r26;
|
|
maskAttributeFn = a1.maskAttributeFn;
|
|
var env0_13 = maskAttributeFn;
|
|
maskTextFn = a1.maskTextFn;
|
|
var env0_14 = maskTextFn;
|
|
maskInputFn = a1.maskInputFn;
|
|
var env0_15 = maskInputFn;
|
|
slimDOMOptions = a1.slimDOMOptions;
|
|
var env0_16 = slimDOMOptions;
|
|
dataURLOptions = a1.dataURLOptions;
|
|
reducibleJoin6: while (true) {
|
|
if (dataURLOptions !== undefined) {
|
|
r21 = dataURLOptions;
|
|
break reducibleJoin6;
|
|
}
|
|
r21 = {};
|
|
break reducibleJoin6;
|
|
}
|
|
var env0_17 = r21;
|
|
inlineImages = a1.inlineImages;
|
|
value = inlineImages !== undefined;
|
|
r20 = value && inlineImages;
|
|
var env0_18 = r20;
|
|
recordCanvas = a1.recordCanvas;
|
|
value = recordCanvas !== undefined;
|
|
r19 = value && recordCanvas;
|
|
var env0_19 = r19;
|
|
onSerialize = a1.onSerialize;
|
|
var env0_20 = onSerialize;
|
|
onIframeLoad = a1.onIframeLoad;
|
|
var env0_21 = onIframeLoad;
|
|
iframeLoadTimeout = a1.iframeLoadTimeout;
|
|
value = 5000;
|
|
r9 = iframeLoadTimeout === undefined ? value : iframeLoadTimeout;
|
|
var env0_22 = r9;
|
|
onBlockedImageLoad = a1.onBlockedImageLoad;
|
|
var env0_23 = onBlockedImageLoad;
|
|
onStylesheetLoad = a1.onStylesheetLoad;
|
|
var env0_24 = onStylesheetLoad;
|
|
stylesheetLoadTimeout = a1.stylesheetLoadTimeout;
|
|
r5 = stylesheetLoadTimeout === undefined ? value : stylesheetLoadTimeout;
|
|
var env0_25 = r5;
|
|
keepIframeSrcFn = a1.keepIframeSrcFn;
|
|
reducibleJoin12: while (true) {
|
|
if (keepIframeSrcFn !== undefined) {
|
|
r13 = keepIframeSrcFn;
|
|
break reducibleJoin12;
|
|
}
|
|
closure = function() {
|
|
return false;
|
|
};
|
|
r13 = closure;
|
|
break reducibleJoin12;
|
|
}
|
|
var env0_26 = r13;
|
|
newlyAddedElement = a1.newlyAddedElement;
|
|
value = newlyAddedElement !== undefined;
|
|
r40 = value && newlyAddedElement;
|
|
ignoreCSSAttributes = a1.ignoreCSSAttributes;
|
|
var env0_27 = ignoreCSSAttributes;
|
|
preserveWhiteSpace = a1.preserveWhiteSpace;
|
|
value = preserveWhiteSpace === undefined;
|
|
r18 = value || preserveWhiteSpace;
|
|
var env0_28 = r18;
|
|
value = environment;
|
|
serializeNodeBinding = serializeNode;
|
|
object = {doc: doc, mirror: mirror, blockClass: blockClass, blockSelector: blockSelector,
|
|
maskAllText: maskAllText,
|
|
unblockSelector: unblockSelector, maskTextClass: maskTextClass,
|
|
unmaskTextClass: unmaskTextClass,
|
|
maskTextSelector: maskTextSelector, unmaskTextSelector: unmaskTextSelector,
|
|
inlineStylesheet: r27,
|
|
maskInputOptions: r26, maskAttributeFn: maskAttributeFn, maskTextFn: maskTextFn,
|
|
maskInputFn: maskInputFn,
|
|
dataURLOptions: r21, inlineImages: r20, recordCanvas: r19, keepIframeSrcFn: r13,
|
|
newlyAddedElement: r40,
|
|
ignoreCSSAttributes: ignoreCSSAttributes};
|
|
value2 = serializeNodeBinding(a0, object);
|
|
if (value2) {
|
|
hasNode = mirror.hasNode;
|
|
if (Reflect.apply(hasNode, mirror, [a0])) {
|
|
getId = mirror.getId;
|
|
value46 = Reflect.apply(getId, mirror, [a0]);
|
|
r39 = value46;
|
|
} else {
|
|
comment = slimDOMOptions.comment;
|
|
reducibleJoin68: while (true) {
|
|
reducibleJoin19: while (true) {
|
|
if (comment) {
|
|
type = value2.type;
|
|
Comment = env0_18.Comment;
|
|
value3 = true;
|
|
if (type === Comment) {
|
|
r4 = value3;
|
|
break reducibleJoin68;
|
|
}
|
|
break reducibleJoin19;
|
|
}
|
|
break reducibleJoin19;
|
|
}
|
|
type = value2.type;
|
|
Element = env0_18.Element;
|
|
value4 = false;
|
|
if (type !== Element) {
|
|
r4 = value4;
|
|
break reducibleJoin68;
|
|
}
|
|
script = slimDOMOptions.script;
|
|
if (script) {
|
|
tagName = value2.tagName;
|
|
value5 = true;
|
|
if (tagName === 'script') {
|
|
r4 = value5;
|
|
break reducibleJoin68;
|
|
}
|
|
tagName = value2.tagName;
|
|
if (tagName === 'link') {
|
|
attributes = value2.attributes;
|
|
rel = attributes.rel;
|
|
if (rel === 'preload') {
|
|
r4 = value5;
|
|
break reducibleJoin68;
|
|
}
|
|
attributes = value2.attributes;
|
|
rel = attributes.rel;
|
|
if (rel === 'modulepreload') {
|
|
r4 = value5;
|
|
break reducibleJoin68;
|
|
}
|
|
}
|
|
tagName = value2.tagName;
|
|
if (tagName === 'link') {
|
|
attributes = value2.attributes;
|
|
rel = attributes.rel;
|
|
if (rel === 'prefetch') {
|
|
attributes = value2.attributes;
|
|
href = attributes.href;
|
|
if (typeof href === 'string') {
|
|
extractFileExtensionBinding = extractFileExtension;
|
|
attributes = value2.attributes;
|
|
href = attributes.href;
|
|
value6 = extractFileExtensionBinding(href);
|
|
if (value6 === 'js') {
|
|
r4 = value5;
|
|
break reducibleJoin68;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
headFavicon = slimDOMOptions.headFavicon;
|
|
if (headFavicon) {
|
|
tagName = value2.tagName;
|
|
if (tagName === 'link') {
|
|
attributes = value2.attributes;
|
|
rel = attributes.rel;
|
|
value7 = true;
|
|
if (rel === 'shortcut icon') {
|
|
r4 = value7;
|
|
break reducibleJoin68;
|
|
}
|
|
}
|
|
tagName = value2.tagName;
|
|
if (tagName === 'meta') {
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
name = attributes.name;
|
|
value8 = lowerIfExistsBinding(name);
|
|
match = value8.match;
|
|
value9 = Reflect.apply(match, value8,
|
|
[RegExp('^msapplication-tile(image|color)$',
|
|
'')]);
|
|
value10 = true;
|
|
if (value9) {
|
|
r4 = value10;
|
|
break reducibleJoin68;
|
|
}
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
name = attributes.name;
|
|
value11 = lowerIfExistsBinding(name);
|
|
if (value11 === 'application-name') {
|
|
r4 = value10;
|
|
break reducibleJoin68;
|
|
}
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
rel = attributes.rel;
|
|
value12 = lowerIfExistsBinding(rel);
|
|
if (value12 === 'icon') {
|
|
r4 = value10;
|
|
break reducibleJoin68;
|
|
}
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
rel = attributes.rel;
|
|
value13 = lowerIfExistsBinding(rel);
|
|
if (value13 === 'apple-touch-icon') {
|
|
r4 = value10;
|
|
break reducibleJoin68;
|
|
}
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
rel = attributes.rel;
|
|
value14 = lowerIfExistsBinding(rel);
|
|
if (value14 === 'shortcut icon') {
|
|
r4 = value10;
|
|
break reducibleJoin68;
|
|
}
|
|
}
|
|
}
|
|
tagName = value2.tagName;
|
|
if (tagName !== 'meta') {
|
|
r4 = value4;
|
|
break reducibleJoin68;
|
|
}
|
|
headMetaDescKeywords = slimDOMOptions.headMetaDescKeywords;
|
|
if (headMetaDescKeywords) {
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
name = attributes.name;
|
|
value15 = lowerIfExistsBinding(name);
|
|
match = value15.match;
|
|
value16 = Reflect.apply(match, value15, [RegExp('^description|keywords$', '')]);
|
|
value17 = true;
|
|
if (value16) {
|
|
r4 = value17;
|
|
break reducibleJoin68;
|
|
}
|
|
}
|
|
headMetaSocial = slimDOMOptions.headMetaSocial;
|
|
if (headMetaSocial) {
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
property2 = attributes.property;
|
|
value18 = lowerIfExistsBinding(property2);
|
|
match = value18.match;
|
|
value19 = Reflect.apply(match, value18, [RegExp('^(og|twitter|fb):', '')]);
|
|
value20 = true;
|
|
if (value19) {
|
|
r4 = value20;
|
|
break reducibleJoin68;
|
|
}
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
name = attributes.name;
|
|
value21 = lowerIfExistsBinding(name);
|
|
match = value21.match;
|
|
if (Reflect.apply(match, value21, [RegExp('^(og|twitter):', '')])) {
|
|
r4 = value20;
|
|
break reducibleJoin68;
|
|
}
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
name = attributes.name;
|
|
value22 = lowerIfExistsBinding(name);
|
|
if (value22 === 'pinterest') {
|
|
r4 = value20;
|
|
break reducibleJoin68;
|
|
}
|
|
}
|
|
headMetaRobots = slimDOMOptions.headMetaRobots;
|
|
if (headMetaRobots) {
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
name = attributes.name;
|
|
value23 = lowerIfExistsBinding(name);
|
|
value24 = true;
|
|
if (value23 === 'robots') {
|
|
r4 = value24;
|
|
break reducibleJoin68;
|
|
}
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
name = attributes.name;
|
|
value25 = lowerIfExistsBinding(name);
|
|
if (value25 === 'googlebot') {
|
|
r4 = value24;
|
|
break reducibleJoin68;
|
|
}
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
name = attributes.name;
|
|
value26 = lowerIfExistsBinding(name);
|
|
if (value26 === 'bingbot') {
|
|
r4 = value24;
|
|
break reducibleJoin68;
|
|
}
|
|
}
|
|
headMetaHttpEquiv = slimDOMOptions.headMetaHttpEquiv;
|
|
if (headMetaHttpEquiv) {
|
|
attributes = value2.attributes;
|
|
value27 = true;
|
|
if (attributes['http-equiv'] !== undefined) {
|
|
r4 = value27;
|
|
break reducibleJoin68;
|
|
}
|
|
}
|
|
headMetaAuthorship = slimDOMOptions.headMetaAuthorship;
|
|
if (headMetaAuthorship) {
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
name = attributes.name;
|
|
value28 = lowerIfExistsBinding(name);
|
|
value29 = true;
|
|
if (value28 === 'author') {
|
|
r4 = value29;
|
|
break reducibleJoin68;
|
|
}
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
name = attributes.name;
|
|
value30 = lowerIfExistsBinding(name);
|
|
if (value30 === 'generator') {
|
|
r4 = value29;
|
|
break reducibleJoin68;
|
|
}
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
name = attributes.name;
|
|
value31 = lowerIfExistsBinding(name);
|
|
if (value31 === 'framework') {
|
|
r4 = value29;
|
|
break reducibleJoin68;
|
|
}
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
name = attributes.name;
|
|
value32 = lowerIfExistsBinding(name);
|
|
if (value32 === 'publisher') {
|
|
r4 = value29;
|
|
break reducibleJoin68;
|
|
}
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
name = attributes.name;
|
|
value33 = lowerIfExistsBinding(name);
|
|
if (value33 === 'progid') {
|
|
r4 = value29;
|
|
break reducibleJoin68;
|
|
}
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
property2 = attributes.property;
|
|
value34 = lowerIfExistsBinding(property2);
|
|
match = value34.match;
|
|
if (Reflect.apply(match, value34, [RegExp('^article:', '')])) {
|
|
r4 = value29;
|
|
break reducibleJoin68;
|
|
}
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
property2 = attributes.property;
|
|
value35 = lowerIfExistsBinding(property2);
|
|
match = value35.match;
|
|
if (Reflect.apply(match, value35, [RegExp('^product:', '')])) {
|
|
r4 = value29;
|
|
break reducibleJoin68;
|
|
}
|
|
}
|
|
headMetaVerification = slimDOMOptions.headMetaVerification;
|
|
if (headMetaVerification) {
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
name = attributes.name;
|
|
value36 = lowerIfExistsBinding(name);
|
|
if (value36 !== 'google-site-verification') {
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
name = attributes.name;
|
|
value37 = lowerIfExistsBinding(name);
|
|
if (value37 !== 'yandex-verification') {
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
name = attributes.name;
|
|
value38 = lowerIfExistsBinding(name);
|
|
if (value38 !== 'csrf-token') {
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
name = attributes.name;
|
|
value39 = lowerIfExistsBinding(name);
|
|
if (value39 !== 'p:domain_verify') {
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
name = attributes.name;
|
|
value40 = lowerIfExistsBinding(name);
|
|
if (value40 !== 'verify-v1') {
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
name = attributes.name;
|
|
value41 = lowerIfExistsBinding(name);
|
|
if (value41 !== 'verification') {
|
|
lowerIfExistsBinding = lowerIfExists;
|
|
attributes = value2.attributes;
|
|
name = attributes.name;
|
|
value42 = lowerIfExistsBinding(name);
|
|
if (value42 !== 'shopify-checkout-api-token') {
|
|
r4 = value4;
|
|
break reducibleJoin68;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
value43 = true;
|
|
r4 = value43;
|
|
break reducibleJoin68;
|
|
}
|
|
r4 = value4;
|
|
break reducibleJoin68;
|
|
}
|
|
value44 = -2;
|
|
reducibleJoin74: while (true) {
|
|
if (r4) {
|
|
r39 = value44;
|
|
break reducibleJoin74;
|
|
}
|
|
if (!r18) {
|
|
type = value2.type;
|
|
Text = env0_18.Text;
|
|
if (type === Text) {
|
|
isStyle = value2.isStyle;
|
|
if (!isStyle) {
|
|
textContent = value2.textContent;
|
|
replace = textContent.replace;
|
|
length = Reflect.apply(replace, textContent, [RegExp('^\\s+|\\s+$', 'gm'),
|
|
'']).length;
|
|
if (!length) {
|
|
r39 = value44;
|
|
break reducibleJoin74;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
value45 = genId();
|
|
r39 = value45;
|
|
break reducibleJoin74;
|
|
}
|
|
}
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
object = {id: r39};
|
|
value47 = Reflect.apply(assign, Object, [value2, object]);
|
|
var env0_29 = value47;
|
|
add = mirror.add;
|
|
Reflect.apply(add, mirror, [a0, value47]);
|
|
if (r39 === -2) {
|
|
return null;
|
|
}
|
|
reducibleJoin79: while (true) {
|
|
if (onSerialize) {
|
|
onSerialize(a0);
|
|
break reducibleJoin79;
|
|
}
|
|
break reducibleJoin79;
|
|
}
|
|
value48 = !r28;
|
|
type = value47.type;
|
|
Element = env0_18.Element;
|
|
reducibleJoin86: while (true) {
|
|
if (type !== Element) {
|
|
r7 = value48;
|
|
break reducibleJoin86;
|
|
}
|
|
reducibleJoin82: while (true) {
|
|
if (r28) {
|
|
r39 = value48;
|
|
break reducibleJoin82;
|
|
}
|
|
needBlock = value47.needBlock;
|
|
value49 = !needBlock;
|
|
r39 = value49;
|
|
break reducibleJoin82;
|
|
}
|
|
shadowRoot = a0.shadowRoot;
|
|
reducibleJoin84: while (true) {
|
|
if (shadowRoot) {
|
|
isNativeShadowDom2 = isNativeShadowDom(shadowRoot);
|
|
r40 = isNativeShadowDom2;
|
|
break reducibleJoin84;
|
|
}
|
|
r40 = shadowRoot;
|
|
break reducibleJoin84;
|
|
}
|
|
if (r40) {
|
|
value47.isShadowHost = true;
|
|
r7 = r39;
|
|
break reducibleJoin86;
|
|
}
|
|
r7 = r39;
|
|
break reducibleJoin86;
|
|
}
|
|
type = value47.type;
|
|
Document = env0_18.Document;
|
|
reducibleJoin131: while (true) {
|
|
reducibleJoin88: while (true) {
|
|
if (type === Document) {
|
|
break reducibleJoin88;
|
|
}
|
|
type = value47.type;
|
|
Element = env0_18.Element;
|
|
if (type !== Element) {
|
|
break reducibleJoin131;
|
|
}
|
|
break reducibleJoin88;
|
|
}
|
|
if (!r7) {
|
|
break reducibleJoin131;
|
|
}
|
|
headWhitespace = slimDOMOptions.headWhitespace;
|
|
reducibleJoin91: while (true) {
|
|
if (headWhitespace) {
|
|
type = value47.type;
|
|
Element = env0_18.Element;
|
|
value50 = type === Element;
|
|
r7 = value50;
|
|
break reducibleJoin91;
|
|
}
|
|
r7 = headWhitespace;
|
|
break reducibleJoin91;
|
|
}
|
|
reducibleJoin93: while (true) {
|
|
if (r7) {
|
|
tagName = value47.tagName;
|
|
value51 = tagName === 'head';
|
|
r7 = value51;
|
|
break reducibleJoin93;
|
|
}
|
|
break reducibleJoin93;
|
|
}
|
|
reducibleJoin95: while (true) {
|
|
if (r7) {
|
|
value52 = false;
|
|
env0_28 = value52;
|
|
r18 = value52;
|
|
break reducibleJoin95;
|
|
}
|
|
break reducibleJoin95;
|
|
}
|
|
object = {doc: doc, mirror: mirror, blockClass: blockClass, blockSelector: blockSelector,
|
|
maskAllText: maskAllText,
|
|
unblockSelector: unblockSelector, maskTextClass: maskTextClass,
|
|
unmaskTextClass: unmaskTextClass,
|
|
maskTextSelector: maskTextSelector, unmaskTextSelector: unmaskTextSelector,
|
|
skipChild: r28,
|
|
inlineStylesheet: r27, maskInputOptions: r26, maskAttributeFn: maskAttributeFn,
|
|
maskTextFn: maskTextFn,
|
|
maskInputFn: maskInputFn, slimDOMOptions: slimDOMOptions, dataURLOptions: r21,
|
|
inlineImages: r20,
|
|
recordCanvas: r19, preserveWhiteSpace: r18, onSerialize: onSerialize,
|
|
onIframeLoad: onIframeLoad,
|
|
iframeLoadTimeout: r9, onBlockedImageLoad: onBlockedImageLoad,
|
|
onStylesheetLoad: onStylesheetLoad,
|
|
stylesheetLoadTimeout: r5, keepIframeSrcFn: r13,
|
|
ignoreCSSAttributes: ignoreCSSAttributes};
|
|
childNodes = a0.childNodes;
|
|
if (childNodes) {
|
|
Array = global.Array;
|
|
from = Array.from;
|
|
childNodes = a0.childNodes;
|
|
value53 = Reflect.apply(from, Array, [childNodes]);
|
|
r13 = value53;
|
|
} else {
|
|
r13 = [];
|
|
}
|
|
iterator = r13[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
r8 = iterator;
|
|
reducibleLoop99: while (true) {
|
|
item2 = Reflect.apply(iterator2, r8, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r8;
|
|
if (item2 === undefined) {
|
|
break reducibleLoop99;
|
|
}
|
|
try {
|
|
serializeNodeWithIdBinding = serializeNodeWithId;
|
|
} catch (error) {
|
|
break exceptionLanding109;
|
|
}
|
|
try {
|
|
value54 = serializeNodeWithIdBinding(item, object);
|
|
} catch (error) {
|
|
break exceptionLanding109;
|
|
}
|
|
if (value54) {
|
|
try {
|
|
childNodes = value47.childNodes;
|
|
} catch (error) {
|
|
break exceptionLanding109;
|
|
}
|
|
try {
|
|
push = childNodes.push;
|
|
} catch (error) {
|
|
break exceptionLanding109;
|
|
}
|
|
try {
|
|
Reflect.apply(push, childNodes, [value54]);
|
|
} catch (error) {
|
|
break exceptionLanding109;
|
|
}
|
|
r8 = item2;
|
|
continue reducibleLoop99;
|
|
}
|
|
r8 = item2;
|
|
continue reducibleLoop99;
|
|
}
|
|
nodeType = a0.nodeType;
|
|
ELEMENT_NODE = a0.ELEMENT_NODE;
|
|
if (nodeType !== ELEMENT_NODE) {
|
|
break reducibleJoin131;
|
|
}
|
|
shadowRoot = a0.shadowRoot;
|
|
if (!shadowRoot) {
|
|
break reducibleJoin131;
|
|
}
|
|
Array = global.Array;
|
|
from = Array.from;
|
|
shadowRoot = a0.shadowRoot;
|
|
childNodes = shadowRoot.childNodes;
|
|
iterator = Reflect.apply(from, Array, [childNodes])[Symbol.iterator]();
|
|
iterator3 = iterator.next;
|
|
r7 = iterator;
|
|
reducibleLoop113: while (true) {
|
|
item3 = Reflect.apply(iterator3, r7, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : r7;
|
|
if (item3 === undefined) {
|
|
break reducibleJoin131;
|
|
}
|
|
try {
|
|
serializeNodeWithIdBinding = serializeNodeWithId;
|
|
} catch (error) {
|
|
break exceptionLanding130;
|
|
}
|
|
try {
|
|
value55 = serializeNodeWithIdBinding(item, object);
|
|
} catch (error) {
|
|
break exceptionLanding130;
|
|
}
|
|
if (value55) {
|
|
try {
|
|
isNativeShadowDomBinding = isNativeShadowDom;
|
|
} catch (error) {
|
|
break exceptionLanding130;
|
|
}
|
|
try {
|
|
shadowRoot = a0.shadowRoot;
|
|
} catch (error) {
|
|
break exceptionLanding130;
|
|
}
|
|
try {
|
|
isNativeShadowDom3 = isNativeShadowDomBinding(shadowRoot);
|
|
} catch (error) {
|
|
break exceptionLanding130;
|
|
}
|
|
reducibleJoin125: while (true) {
|
|
if (isNativeShadowDom3) {
|
|
try {
|
|
value55.isShadow = true;
|
|
} catch (error) {
|
|
break exceptionLanding130;
|
|
}
|
|
break reducibleJoin125;
|
|
}
|
|
break reducibleJoin125;
|
|
}
|
|
try {
|
|
childNodes = value47.childNodes;
|
|
} catch (error) {
|
|
break exceptionLanding130;
|
|
}
|
|
try {
|
|
push = childNodes.push;
|
|
} catch (error) {
|
|
break exceptionLanding130;
|
|
}
|
|
try {
|
|
Reflect.apply(push, childNodes, [value55]);
|
|
} catch (error) {
|
|
break exceptionLanding130;
|
|
}
|
|
r7 = item3;
|
|
continue reducibleLoop113;
|
|
}
|
|
r7 = item3;
|
|
continue reducibleLoop113;
|
|
}
|
|
break reducibleJoin131;
|
|
}
|
|
parentNode = a0.parentNode;
|
|
reducibleJoin133: while (true) {
|
|
if (parentNode) {
|
|
isShadowRootBinding = isShadowRoot;
|
|
parentNode = a0.parentNode;
|
|
isShadowRoot2 = isShadowRootBinding(parentNode);
|
|
r4 = isShadowRoot2;
|
|
break reducibleJoin133;
|
|
}
|
|
r4 = parentNode;
|
|
break reducibleJoin133;
|
|
}
|
|
reducibleJoin135: while (true) {
|
|
if (r4) {
|
|
isNativeShadowDomBinding = isNativeShadowDom;
|
|
parentNode = a0.parentNode;
|
|
isNativeShadowDom4 = isNativeShadowDomBinding(parentNode);
|
|
r4 = isNativeShadowDom4;
|
|
break reducibleJoin135;
|
|
}
|
|
break reducibleJoin135;
|
|
}
|
|
reducibleJoin137: while (true) {
|
|
if (r4) {
|
|
value47.isShadow = true;
|
|
break reducibleJoin137;
|
|
}
|
|
break reducibleJoin137;
|
|
}
|
|
type = value47.type;
|
|
Element = env0_18.Element;
|
|
value56 = type !== Element;
|
|
reducibleJoin139: while (true) {
|
|
if (value56) {
|
|
r4 = value56;
|
|
break reducibleJoin139;
|
|
}
|
|
tagName = value47.tagName;
|
|
value57 = tagName !== 'iframe';
|
|
r4 = value57;
|
|
break reducibleJoin139;
|
|
}
|
|
reducibleJoin141: while (true) {
|
|
if (r4) {
|
|
break reducibleJoin141;
|
|
}
|
|
needBlock = value47.needBlock;
|
|
r4 = needBlock;
|
|
break reducibleJoin141;
|
|
}
|
|
reducibleJoin143: while (true) {
|
|
if (r4) {
|
|
break reducibleJoin143;
|
|
}
|
|
closure = onceIframeLoaded;
|
|
closure(a0, _fun11456, r9);
|
|
break reducibleJoin143;
|
|
}
|
|
type = value47.type;
|
|
Element = env0_18.Element;
|
|
reducibleJoin149: while (true) {
|
|
if (type !== Element) {
|
|
break reducibleJoin149;
|
|
}
|
|
tagName = value47.tagName;
|
|
if (tagName !== 'img') {
|
|
break reducibleJoin149;
|
|
}
|
|
complete = a0.complete;
|
|
if (complete) {
|
|
break reducibleJoin149;
|
|
}
|
|
needBlock = value47.needBlock;
|
|
if (needBlock) {
|
|
var env0_30 = a0;
|
|
closure = updateImageDimensions;
|
|
var updateImageDimensions = closure;
|
|
isConnected = a0.isConnected;
|
|
if (isConnected) {
|
|
addEventListener = a0.addEventListener;
|
|
Reflect.apply(addEventListener, a0, ['load', closure]);
|
|
break reducibleJoin149;
|
|
}
|
|
break reducibleJoin149;
|
|
}
|
|
break reducibleJoin149;
|
|
}
|
|
type = value47.type;
|
|
Element = env0_18.Element;
|
|
value58 = type === Element;
|
|
reducibleJoin151: while (true) {
|
|
if (value58) {
|
|
tagName = value47.tagName;
|
|
value59 = tagName === 'link';
|
|
r4 = value59;
|
|
break reducibleJoin151;
|
|
}
|
|
r4 = value58;
|
|
break reducibleJoin151;
|
|
}
|
|
reducibleJoin153: while (true) {
|
|
if (r4) {
|
|
attributes = value47.attributes;
|
|
rel = attributes.rel;
|
|
value60 = typeof rel === 'string';
|
|
r4 = value60;
|
|
break reducibleJoin153;
|
|
}
|
|
break reducibleJoin153;
|
|
}
|
|
reducibleJoin161: while (true) {
|
|
if (r4) {
|
|
attributes = value47.attributes;
|
|
rel = attributes.rel;
|
|
value61 = rel === 'stylesheet';
|
|
reducibleJoin160: while (true) {
|
|
if (value61) {
|
|
r7 = value61;
|
|
break reducibleJoin160;
|
|
}
|
|
attributes = value47.attributes;
|
|
rel = attributes.rel;
|
|
value62 = rel === 'preload';
|
|
reducibleJoin157: while (true) {
|
|
if (value62) {
|
|
attributes = value47.attributes;
|
|
href = attributes.href;
|
|
value63 = typeof href === 'string';
|
|
r8 = value63;
|
|
break reducibleJoin157;
|
|
}
|
|
r8 = value62;
|
|
break reducibleJoin157;
|
|
}
|
|
reducibleJoin159: while (true) {
|
|
if (r8) {
|
|
extractFileExtensionBinding = extractFileExtension;
|
|
attributes = value47.attributes;
|
|
href = attributes.href;
|
|
value64 = extractFileExtensionBinding(href);
|
|
value65 = value64 === 'css';
|
|
r8 = value65;
|
|
break reducibleJoin159;
|
|
}
|
|
break reducibleJoin159;
|
|
}
|
|
r7 = r8;
|
|
break reducibleJoin160;
|
|
}
|
|
r4 = r7;
|
|
break reducibleJoin161;
|
|
}
|
|
break reducibleJoin161;
|
|
}
|
|
reducibleJoin163: while (true) {
|
|
if (r4) {
|
|
closure = onceStylesheetLoaded;
|
|
closure(a0, _fun11461, r5);
|
|
break reducibleJoin163;
|
|
}
|
|
break reducibleJoin163;
|
|
}
|
|
type = value47.type;
|
|
Element = env0_18.Element;
|
|
reducibleJoin165: while (true) {
|
|
if (type !== Element) {
|
|
break reducibleJoin165;
|
|
}
|
|
delete value47.needBlock;
|
|
break reducibleJoin165;
|
|
}
|
|
return value47;
|
|
}
|
|
console = global.console;
|
|
warn = console.warn;
|
|
Reflect.apply(warn, console, [a0, 'not serialized']);
|
|
return null;
|
|
break exceptionSkip109;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip109;
|
|
}
|
|
break exceptionSkip130;
|
|
}
|
|
try {
|
|
item3.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip130;
|
|
}
|
|
function onceIframeLoaded(a0, a1, a2) { // fn#11453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:19999, owner: serializeNodeWithId.onceIframeLoaded, offset: 0x00dafc74, size: 248 bytes, params: 4, frame: 19
|
|
var environment;
|
|
var document;
|
|
var readyState;
|
|
var value;
|
|
var src;
|
|
var error;
|
|
const env0_0 = a1;
|
|
const contentWindow = a0.contentWindow;
|
|
if (contentWindow) {
|
|
try {
|
|
document = contentWindow.document;
|
|
readyState = document.readyState;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
if (readyState === 'complete') {
|
|
if (contentWindow.location.href !== 'about:blank') {
|
|
value = environment.__proto__;
|
|
setTimeout$2(a1, 0);
|
|
return a0.addEventListener('load', a1);
|
|
}
|
|
src = a0.src;
|
|
if (src === 'about:blank') {
|
|
value = environment.__proto__;
|
|
setTimeout$2(a1, 0);
|
|
return a0.addEventListener('load', a1);
|
|
}
|
|
src = a0.src;
|
|
if (src === '') {
|
|
value = environment.__proto__;
|
|
setTimeout$2(a1, 0);
|
|
return a0.addEventListener('load', a1);
|
|
}
|
|
a0.addEventListener('load', a1);
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__;
|
|
var env0_2 = setTimeout$2(_fun11454, a2);
|
|
a0.addEventListener('load', _fun11455);
|
|
}
|
|
function _fun11454() { // fn#11454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:20308, offset: 0x00da1436, size: 30 bytes, params: 1, frame: 10
|
|
if (!env0_1) {
|
|
require();
|
|
}
|
|
}
|
|
|
|
function _fun11455() { // fn#11455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:20365, offset: 0x00dafd6c, size: 37 bytes, params: 1, frame: 12
|
|
clearTimeout$1(env0_2);
|
|
require();
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11456() { // fn#11456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:20412, offset: 0x00dafd91, size: 314 bytes, params: 1, frame: 15
|
|
let value = environment.__proto__;
|
|
const iframeContentDocument = getIframeContentDocument(env0_0);
|
|
if (iframeContentDocument) {
|
|
if (onIframeLoad) {
|
|
value = serializeNodeWithId(iframeContentDocument, {doc: iframeContentDocument, mirror: mirror,
|
|
blockClass: blockClass, blockSelector: blockSelector, unblockSelector: unblockSelector,
|
|
maskAllText: maskAllText, maskTextClass: maskTextClass, unmaskTextClass: unmaskTextClass,
|
|
maskTextSelector: maskTextSelector, unmaskTextSelector: unmaskTextSelector, skipChild: false,
|
|
inlineStylesheet: env0_11, maskInputOptions: env0_12, maskAttributeFn: maskAttributeFn,
|
|
maskTextFn: maskTextFn,
|
|
maskInputFn: maskInputFn, slimDOMOptions: slimDOMOptions, dataURLOptions: env0_17,
|
|
inlineImages: env0_18,
|
|
recordCanvas: env0_19, preserveWhiteSpace: env0_28, onSerialize: onSerialize,
|
|
onIframeLoad: onIframeLoad,
|
|
iframeLoadTimeout: env0_22, onStylesheetLoad: onStylesheetLoad, stylesheetLoadTimeout: env0_25,
|
|
keepIframeSrcFn: env0_26, ignoreCSSAttributes: ignoreCSSAttributes});
|
|
if (value) {
|
|
onIframeLoad(env0_0, value);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function updateImageDimensions() { // fn#11457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:21053, owner: serializeNodeWithId.updateImageDimensions, offset: 0x00dafecb, size: 138 bytes, params: 1, frame: 17
|
|
var r3;
|
|
var onBlockedImageLoadBinding;
|
|
var binding;
|
|
var boundingClientRect;
|
|
var width;
|
|
var value3;
|
|
var height;
|
|
var value4;
|
|
var binding2;
|
|
var error;
|
|
if (env0_30.isConnected) {
|
|
if (!env0_30.complete) {
|
|
onBlockedImageLoadBinding = onBlockedImageLoad;
|
|
if (onBlockedImageLoadBinding) {
|
|
try {
|
|
binding = env0_30;
|
|
boundingClientRect = binding.getBoundingClientRect();
|
|
width = boundingClientRect.width;
|
|
value3 = width > 0;
|
|
if (value3) {
|
|
height = boundingClientRect.height;
|
|
value4 = height > 0;
|
|
r3 = value4;
|
|
} else {
|
|
r3 = value3;
|
|
}
|
|
if (r3) {
|
|
onBlockedImageLoadBinding = onBlockedImageLoad;
|
|
binding = env0_30;
|
|
binding2 = env0_29;
|
|
onBlockedImageLoadBinding(binding, binding2, boundingClientRect);
|
|
}
|
|
} catch (error) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
binding = env0_30;
|
|
binding.removeEventListener('load', updateImageDimensions);
|
|
}
|
|
|
|
function onceStylesheetLoaded(a0, a1, a2) { // fn#11458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:21515, owner: serializeNodeWithId.onceStylesheetLoaded, offset: 0x00daff55, size: 92 bytes, params: 4, frame: 15
|
|
var environment;
|
|
var sheet;
|
|
var value;
|
|
var error;
|
|
const env0_0 = a1;
|
|
try {
|
|
sheet = a0.sheet;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
if (!sheet) {
|
|
value = environment.__proto__;
|
|
var env0_2 = setTimeout$2(_fun11459, a2);
|
|
a0.addEventListener('load', _fun11460);
|
|
}
|
|
function _fun11459() { // fn#11459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:21620, offset: 0x00da1436, size: 30 bytes, params: 1, frame: 10
|
|
if (!env0_1) {
|
|
require();
|
|
}
|
|
}
|
|
|
|
function _fun11460() { // fn#11460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:21677, offset: 0x00dafd6c, size: 37 bytes, params: 1, frame: 12
|
|
clearTimeout$1(env0_2);
|
|
require();
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11461() { // fn#11461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:21723, offset: 0x00daffb1, size: 305 bytes, params: 1, frame: 14
|
|
var value2;
|
|
var value3;
|
|
if (onStylesheetLoad) {
|
|
value2 = environment.__proto__;
|
|
value3 = serializeNodeWithId(env0_0, {doc: doc, mirror: mirror, blockClass: blockClass,
|
|
blockSelector: blockSelector, unblockSelector: unblockSelector, maskAllText: maskAllText,
|
|
maskTextClass: maskTextClass, unmaskTextClass: unmaskTextClass, maskTextSelector: maskTextSelector,
|
|
unmaskTextSelector: unmaskTextSelector, skipChild: false, inlineStylesheet: env0_11,
|
|
maskInputOptions: env0_12,
|
|
maskAttributeFn: maskAttributeFn, maskTextFn: maskTextFn, maskInputFn: maskInputFn,
|
|
slimDOMOptions: slimDOMOptions, dataURLOptions: env0_17, inlineImages: env0_18, recordCanvas: env0_19,
|
|
preserveWhiteSpace: env0_28, onSerialize: onSerialize, onIframeLoad: onIframeLoad,
|
|
iframeLoadTimeout: env0_22,
|
|
onStylesheetLoad: onStylesheetLoad, stylesheetLoadTimeout: env0_25, keepIframeSrcFn: env0_26,
|
|
ignoreCSSAttributes: ignoreCSSAttributes});
|
|
if (value3) {
|
|
onStylesheetLoad(env0_0, value3);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function on_11462(a0, a1) { // fn#11462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:22291, offset: 0x00db00e2, size: 90 bytes, params: 3, frame: 17
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
(arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : global.document).addEventListener(a0, a1,
|
|
{'capture': true, 'passive': true});
|
|
return _fun11463;
|
|
function _fun11463() { // fn#11463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:22437, offset: 0x00db013c, size: 34 bytes, params: 1, frame: 15
|
|
const binding = env0_2;
|
|
return binding.removeEventListener(env0_0, require, env0_3);
|
|
}
|
|
|
|
}
|
|
|
|
function throttle$1(a0, a1) { // fn#11464, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:22983, offset: 0x00db015e, size: 69 bytes, params: 3, frame: 5
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
return _fun11465;
|
|
function _fun11465() { // fn#11465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:23090, offset: 0x00db01a3, size: 253 bytes, params: 1, frame: 19
|
|
var environment;
|
|
var r2;
|
|
var r7;
|
|
var r6;
|
|
var value5;
|
|
var leading;
|
|
var value7;
|
|
var trailing;
|
|
var apply;
|
|
let value = arguments.length;
|
|
const Array = global.Array;
|
|
const array = new Array(value);
|
|
const array2 = array;
|
|
const value4 = 0;
|
|
if (value4 < value) {
|
|
r2 = value4;
|
|
reducibleLoop1: while (true) {
|
|
array[r2] = arguments[r2];
|
|
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value5 < value) {
|
|
r2 = value5;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
}
|
|
const Date = global.Date;
|
|
value = Date.now();
|
|
let binding = env0_4;
|
|
reducibleJoin4: while (true) {
|
|
if (binding) {
|
|
r7 = binding;
|
|
break reducibleJoin4;
|
|
}
|
|
leading = env0_2.leading;
|
|
value7 = leading !== false;
|
|
r7 = value7;
|
|
break reducibleJoin4;
|
|
}
|
|
reducibleJoin6: while (true) {
|
|
if (r7) {
|
|
break reducibleJoin6;
|
|
}
|
|
env0_4 = value;
|
|
break reducibleJoin6;
|
|
}
|
|
const value8 = require - (value - env0_4);
|
|
reducibleJoin15: while (true) {
|
|
reducibleJoin14: while (true) {
|
|
if (value8 <= value4) {
|
|
if (env0_3) {
|
|
clearTimeout$2(env0_3);
|
|
env0_3 = null;
|
|
break reducibleJoin14;
|
|
}
|
|
break reducibleJoin14;
|
|
}
|
|
if (value8 > require) {
|
|
if (env0_3) {
|
|
clearTimeout$2(env0_3);
|
|
env0_3 = null;
|
|
break reducibleJoin14;
|
|
}
|
|
break reducibleJoin14;
|
|
}
|
|
binding = env0_3;
|
|
reducibleJoin10: while (true) {
|
|
if (binding) {
|
|
r6 = binding;
|
|
break reducibleJoin10;
|
|
}
|
|
trailing = env0_2.trailing;
|
|
value = trailing === false;
|
|
r6 = value;
|
|
break reducibleJoin10;
|
|
}
|
|
if (r6) {
|
|
break reducibleJoin15;
|
|
}
|
|
value = environment.__proto__;
|
|
env0_3 = setTimeout$1(_fun11467, value8);
|
|
break reducibleJoin15;
|
|
}
|
|
env0_4 = value;
|
|
binding = array2;
|
|
apply = binding.apply;
|
|
Reflect.apply(apply, binding, [this, array]);
|
|
break reducibleJoin15;
|
|
}
|
|
function clearTimeout$2() { // fn#11466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:23252, offset: 0x00db02a0, size: 35 bytes, params: 1, frame: 14
|
|
const value = environment.__proto__.__proto__;
|
|
return getImplementation('clearTimeout').apply(undefined, arguments);
|
|
}
|
|
|
|
function _fun11467() { // fn#11467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:23410, offset: 0x00db02c3, size: 78 bytes, params: 1, frame: 13
|
|
var value3;
|
|
if (env1_2.leading !== false) {
|
|
value3 = global.Date.now();
|
|
}
|
|
const binding = env1_0;
|
|
binding.apply(env0_1, env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function hookSetter(a0, a1, a2, a3) { // fn#11468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:23478, offset: 0x00db0311, size: 124 bytes, params: 5, frame: 18
|
|
const value = a2;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const r1 = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : global.window;
|
|
let Object = r1.Object;
|
|
const env0_3 = Object.getOwnPropertyDescriptor(a0, a1);
|
|
Object = r1.Object;
|
|
Object.defineProperty(a0, a1, a3 ? value : {set: set_11469});
|
|
return _fun11471;
|
|
function hookSetterSet(a0) { // fn#11469, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:23660, owner: hookSetter.set, offset: 0x00db038d, size: 81 bytes, params: 2, frame: 15
|
|
const env0_0 = a0;
|
|
setTimeout$1(_fun11470, 0);
|
|
if (env0_3 && env0_3.set) {
|
|
env0_3.set.call(this, a0);
|
|
}
|
|
function _fun11470() { // fn#11470, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:23701, offset: 0x00db03de, size: 38 bytes, params: 1, frame: 13
|
|
const set = importDefault.set;
|
|
set.call(env0_1, env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11471() { // fn#11471, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:23765, offset: 0x00db0404, size: 46 bytes, params: 1, frame: 17
|
|
return hookSetter(env0_0, require, env0_3 || ({}), true);
|
|
}
|
|
|
|
}
|
|
|
|
function patch_11472(a0, a1, a2) { // fn#11472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:23809, offset: 0x00db0432, size: 171 bytes, params: 4, frame: 20
|
|
var r4;
|
|
var value;
|
|
var property;
|
|
var value2;
|
|
var prototype;
|
|
var Object;
|
|
var error;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
try {
|
|
value = a1 in a0;
|
|
} catch (error) {
|
|
return function() {
|
|
};
|
|
}
|
|
if (value) {
|
|
try {
|
|
property = a0[a1];
|
|
var env0_2 = property;
|
|
value = a2(property);
|
|
value2 = typeof value !== 'function';
|
|
if (!value2) {
|
|
prototype = value.prototype;
|
|
r4 = prototype || ({});
|
|
value.prototype = r4;
|
|
Object = global.Object;
|
|
Object.defineProperties(value, {__rrweb_original__: {enumerable: false, value: property}});
|
|
}
|
|
a0[a1] = value;
|
|
} catch (error) {
|
|
return function() {
|
|
};
|
|
}
|
|
return _fun11474;
|
|
}
|
|
return function() {
|
|
};
|
|
function _fun11474() { // fn#11474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:24023, offset: 0x00db04dd, size: 23 bytes, params: 1, frame: 3
|
|
env0_0[require] = env0_2;
|
|
}
|
|
|
|
}
|
|
|
|
function isBlocked(a0, a1, a2, a3, a4) { // fn#11480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:25278, offset: 0x00db0735, size: 165 bytes, params: 6, frame: 20
|
|
var r2;
|
|
var r0;
|
|
var r1;
|
|
var value3;
|
|
var matchPredicate;
|
|
var value4;
|
|
var value5;
|
|
var value7;
|
|
let value = a3;
|
|
if (a0) {
|
|
value3 = closestElementOfNode$1(a0);
|
|
if (value3) {
|
|
matchPredicate = createMatchPredicate(a1, a2);
|
|
if (a4) {
|
|
value4 = distanceToMatch(value3, matchPredicate);
|
|
value5 = value4 < 0;
|
|
if (value5) {
|
|
r0 = !value5;
|
|
} else {
|
|
value7 = -1;
|
|
if (value) {
|
|
value = distanceToMatch(value3, createMatchPredicate(null, value));
|
|
r2 = value;
|
|
} else {
|
|
r2 = value7;
|
|
}
|
|
value = value4 > value7;
|
|
r1 = value && r2 < 0;
|
|
r1 = !r1 ? value4 < r2 : r1;
|
|
r0 = r1;
|
|
}
|
|
return r0;
|
|
}
|
|
if (value) {
|
|
value = value3.matches(value);
|
|
r2 = value;
|
|
} else {
|
|
r2 = value;
|
|
}
|
|
value = matchPredicate(value3);
|
|
r0 = value && !r2;
|
|
return r0;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
function isAncestorRemoved(a0, a1) { // fn#11482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:25611, offset: 0x00db07f7, size: 127 bytes, params: 3, frame: 17
|
|
var r1;
|
|
var r0;
|
|
var parentNode;
|
|
if (isShadowRoot(a0)) {
|
|
return false;
|
|
}
|
|
const value3 = a1.has(a1.getId(a0));
|
|
if (value3) {
|
|
parentNode = a0.parentNode;
|
|
r1 = parentNode ? a0.parentNode.nodeType !== a0.DOCUMENT_NODE : !parentNode;
|
|
r1 = r1 && (a0.parentNode ? isAncestorRemoved(a0.parentNode, a1) : !a0.parentNode);
|
|
r0 = r1;
|
|
} else {
|
|
r0 = !value3;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function shadowHostInDom(a0) { // fn#11488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:27217, offset: 0x00db09be, size: 64 bytes, params: 2, frame: 15
|
|
var r0;
|
|
var r1;
|
|
var shadowHost;
|
|
let value = a0;
|
|
const ownerDocument = value.ownerDocument;
|
|
if (ownerDocument) {
|
|
shadowHost = getShadowHost(value);
|
|
if (shadowHost) {
|
|
r0 = shadowHost;
|
|
reducibleLoop3: while (true) {
|
|
value = getShadowHost(r0);
|
|
if (value) {
|
|
r0 = value;
|
|
continue reducibleLoop3;
|
|
}
|
|
r1 = r0;
|
|
break reducibleLoop3;
|
|
}
|
|
} else {
|
|
r1 = value;
|
|
}
|
|
return ownerDocument.contains(r1);
|
|
}
|
|
return false;
|
|
}
|
|
|
|
function inDom(a0) { // fn#11489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:27390, offset: 0x00db09fe, size: 51 bytes, params: 2, frame: 13
|
|
const ownerDocument = a0.ownerDocument;
|
|
return ownerDocument ? ownerDocument.contains(a0) || shadowHostInDom(a0) : !!ownerDocument;
|
|
}
|
|
|
|
function getImplementation(a0) { // fn#11490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:27486, offset: 0x00db0a31, size: 223 bytes, params: 2, frame: 19
|
|
var r8;
|
|
var r4;
|
|
var createElement;
|
|
var element;
|
|
var head;
|
|
var appendChild;
|
|
var contentWindow;
|
|
var property2;
|
|
var removeChild;
|
|
var error;
|
|
var binding;
|
|
var bind;
|
|
let value = environment;
|
|
let property = env0_36[a0];
|
|
if (property) {
|
|
return property;
|
|
}
|
|
let window = global.window;
|
|
const document = window.document;
|
|
property = global.window[a0];
|
|
if (document) {
|
|
createElement = document.createElement;
|
|
if (typeof createElement !== 'function') {
|
|
r4 = property;
|
|
} else {
|
|
try {
|
|
createElement = document.createElement;
|
|
} catch (error) {
|
|
r4 = property;
|
|
binding = env0_36;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
element = Reflect.apply(createElement, document, ['iframe']);
|
|
} catch (error) {
|
|
r4 = property;
|
|
binding = env0_36;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
element.hidden = true;
|
|
} catch (error) {
|
|
r4 = property;
|
|
binding = env0_36;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
head = document.head;
|
|
} catch (error) {
|
|
r4 = property;
|
|
binding = env0_36;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
appendChild = head.appendChild;
|
|
} catch (error) {
|
|
r4 = property;
|
|
binding = env0_36;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
Reflect.apply(appendChild, head, [element]);
|
|
} catch (error) {
|
|
r4 = property;
|
|
binding = env0_36;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
contentWindow = element.contentWindow;
|
|
} catch (error) {
|
|
r4 = property;
|
|
binding = env0_36;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
if (contentWindow) {
|
|
try {
|
|
property2 = contentWindow[a0];
|
|
r8 = property2;
|
|
} catch (error) {
|
|
r4 = property;
|
|
binding = env0_36;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
if (r8) {
|
|
try {
|
|
property = contentWindow[a0];
|
|
r4 = property;
|
|
} catch (error) {
|
|
r4 = property;
|
|
binding = env0_36;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
head = document.head;
|
|
} catch (error) {
|
|
binding = env0_36;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
removeChild = head.removeChild;
|
|
} catch (error) {
|
|
binding = env0_36;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
Reflect.apply(removeChild, head, [element]);
|
|
} catch (error) {
|
|
}
|
|
} else {
|
|
r4 = property;
|
|
try {
|
|
head = document.head;
|
|
} catch (error) {
|
|
binding = env0_36;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
removeChild = head.removeChild;
|
|
} catch (error) {
|
|
binding = env0_36;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
Reflect.apply(removeChild, head, [element]);
|
|
} catch (error) {
|
|
}
|
|
}
|
|
} else if (contentWindow) {
|
|
try {
|
|
property = contentWindow[a0];
|
|
r4 = property;
|
|
} catch (error) {
|
|
r4 = property;
|
|
binding = env0_36;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
head = document.head;
|
|
} catch (error) {
|
|
binding = env0_36;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
removeChild = head.removeChild;
|
|
} catch (error) {
|
|
binding = env0_36;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
Reflect.apply(removeChild, head, [element]);
|
|
} catch (error) {
|
|
}
|
|
} else {
|
|
r4 = property;
|
|
try {
|
|
head = document.head;
|
|
} catch (error) {
|
|
binding = env0_36;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
removeChild = head.removeChild;
|
|
} catch (error) {
|
|
binding = env0_36;
|
|
bind = r4.bind;
|
|
window = global.window;
|
|
value = Reflect.apply(bind, r4, [window]);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
try {
|
|
Reflect.apply(removeChild, head, [element]);
|
|
} catch (error) {
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
r4 = property;
|
|
}
|
|
binding = env0_36;
|
|
value = r4.bind(global.window);
|
|
binding[a0] = value;
|
|
return value;
|
|
}
|
|
|
|
function setTimeout$1() { // fn#11491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:27785, offset: 0x00db0b10, size: 35 bytes, params: 1, frame: 14
|
|
return getImplementation('setTimeout').apply(undefined, arguments);
|
|
}
|
|
|
|
function deepDelete(a0, a1) { // fn#11494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:39117, offset: 0x00db0b40, size: 53 bytes, params: 3, frame: 12
|
|
const env0_0 = a0;
|
|
a0.delete(a1);
|
|
const childNodes = a1.childNodes;
|
|
if (childNodes != null) {
|
|
childNodes.forEach(_fun11495);
|
|
}
|
|
function _fun11495(a0) { // fn#11495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:39195, offset: 0x00db0b75, size: 27 bytes, params: 2, frame: 13
|
|
deepDelete(env0_0, a0);
|
|
}
|
|
|
|
}
|
|
|
|
function isParentRemoved(a0, a1, a2) { // fn#11496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:39233, offset: 0x00db0b90, size: 41 bytes, params: 4, frame: 16
|
|
return a0.length !== 0 && ((a0, a1, a2) => {
|
|
var value;
|
|
var env0_0 = a0;
|
|
var env0_1 = a2;
|
|
var parentNode = a1.parentNode;
|
|
if (parentNode) {
|
|
loopExit1: while (true) {
|
|
value = _fun11498();
|
|
if (value) {
|
|
return value.v;
|
|
}
|
|
if (parentNode) {
|
|
continue;
|
|
}
|
|
break loopExit1;
|
|
}
|
|
}
|
|
return false;
|
|
})(a0, a1, a2);
|
|
function _isParentRemoved(a0, {parentNode}, a2) { // fn#11497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:39286, owner: isParentRemoved._isParentRemoved, offset: 0x00db0bb9, size: 64 bytes, params: 4, frame: 12
|
|
var value;
|
|
const env0_0 = a0;
|
|
const env0_1 = a2;
|
|
if (parentNode) {
|
|
loopExit1: while (true) {
|
|
value = (function() {
|
|
if (importDefault.getId(parentNode).some(_fun11499)) {
|
|
return {v: true};
|
|
}
|
|
env0_2 = parentNode.parentNode;
|
|
})();
|
|
if (value) {
|
|
return value.v;
|
|
}
|
|
if (parentNode) {
|
|
continue;
|
|
}
|
|
break loopExit1;
|
|
}
|
|
}
|
|
return false;
|
|
function _isParentRemoved_loop() { // fn#11498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:39342, owner: isParentRemoved._isParentRemoved._loop, offset: 0x00db0bf9, size: 79 bytes, params: 1, frame: 13
|
|
const id = importDefault.getId(parentNode);
|
|
if (id.some(_fun11499)) {
|
|
return {v: true};
|
|
}
|
|
env0_2 = parentNode.parentNode;
|
|
function _fun11499({id}) { // fn#11499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:39387, offset: 0x00db0c48, size: 21 bytes, params: 2, frame: 2
|
|
return id === env0_0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function isAncestorInSet(a0, a1) { // fn#11500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:39492, offset: 0x00db0c5d, size: 37 bytes, params: 3, frame: 14
|
|
return a0.size !== 0 && _isAncestorInSet(a0, a1);
|
|
}
|
|
|
|
function _isAncestorInSet(a0, {parentNode}) { // fn#11501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:39563, offset: 0x00db0c82, size: 60 bytes, params: 3, frame: 15
|
|
var r0;
|
|
let value = !!parentNode;
|
|
if (parentNode) {
|
|
value = a0.has(parentNode);
|
|
r0 = value ? !!value : _isAncestorInSet(a0, parentNode);
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function initMutationObserver(a0, a1) { // fn#11503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:40021, offset: 0x00db0d36, size: 252 bytes, params: 3, frame: 18
|
|
const env0_0 = a0;
|
|
const env0_453 = new env0_45();
|
|
env0_47.push(env0_453);
|
|
env0_453.init(a0);
|
|
let window = global.window;
|
|
const MutationObserver = window.MutationObserver;
|
|
let r2 = MutationObserver || global.window.__rrMutationObserver;
|
|
window = global.window;
|
|
const r5 = window == null || window.Zone == null || window.Zone.__symbol__ == null ? undefined : window.Zone.__symbol__('MutationObserver');
|
|
r2 = r5 && global.window[r5] ? global.window[r5] : r2;
|
|
const value = callbackWrapper(_fun11504);
|
|
r2 = new r2();
|
|
r2.observe(a1, {'attributes': true, 'attributeOldValue': true, 'characterData': true, 'characterDataOldValue': true,
|
|
'childList': true, 'subtree': true});
|
|
return r2;
|
|
function _fun11504(a0) { // fn#11504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:40291, offset: 0x00db0e32, size: 74 bytes, params: 2, frame: 13
|
|
var binding;
|
|
if (!(env0_0.onMutation && env0_0.onMutation(a0) === false)) {
|
|
binding = env0_1;
|
|
binding.processMutations.bind(binding)(a0);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function initMouseInteractionObserver({mouseInteractionCb, doc, mirror, blockClass, blockSelector, unblockSelector, sampling}) { // fn#11505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:40498, offset: 0x00db0e7c, size: 218 bytes, params: 2, frame: 13
|
|
if (sampling.mouseInteraction === false) {
|
|
return function() {
|
|
};
|
|
}
|
|
const env0_6 = sampling.mouseInteraction === true || sampling.mouseInteraction === undefined ? {} : sampling.mouseInteraction;
|
|
const env0_7 = [];
|
|
const Object = global.Object;
|
|
Object.keys(env0_39).filter(_fun11507).forEach(_fun11508);
|
|
return callbackWrapper(_fun11511);
|
|
function _fun11507(a0) { // fn#11507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:40821, offset: 0x00db0f56, size: 80 bytes, params: 2, frame: 13
|
|
const Number = global.Number;
|
|
const isNaN = Number.isNaN;
|
|
const Number2 = global.Number;
|
|
return Reflect.apply(isNaN, Number, [Number2(a0)]) && !a0.endsWith('_Departed') && env0_6[a0] !== false;
|
|
}
|
|
|
|
function _fun11508(a0) { // fn#11508, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:40913, offset: 0x00db0fa6, size: 173 bytes, params: 2, frame: 18
|
|
var r5;
|
|
var property;
|
|
var binding;
|
|
const value2 = toLowerCase(a0);
|
|
const value3 = ((a0) => {
|
|
var env0_0 = a0;
|
|
return _fun11510;
|
|
})(a0);
|
|
if (global.window.PointerEvent) {
|
|
property = env1_39[a0];
|
|
if (env1_39.MouseDown === property) {
|
|
r5 = value2.replace('mouse', 'pointer');
|
|
binding = env0_7;
|
|
binding.push(on_11462(r5, value3, doc));
|
|
return undefined;
|
|
}
|
|
if (env1_39.MouseUp === property) {
|
|
r5 = value2.replace('mouse', 'pointer');
|
|
binding = env0_7;
|
|
binding.push(on_11462(r5, value3, doc));
|
|
return undefined;
|
|
}
|
|
if (env1_39.TouchStart === property) {
|
|
return undefined;
|
|
}
|
|
if (env1_39.TouchEnd !== property) {
|
|
r5 = value2;
|
|
binding = env0_7;
|
|
binding.push(on_11462(r5, value3, doc));
|
|
return undefined;
|
|
}
|
|
} else {
|
|
r5 = value2;
|
|
binding = env0_7;
|
|
binding.push(on_11462(r5, value3, doc));
|
|
}
|
|
function getHandler(a0) { // fn#11509, offset: 0x00db1053, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun11510;
|
|
function _fun11510(a0) { // fn#11510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:40978, offset: 0x00db1063, size: 545 bytes, params: 2, frame: 25
|
|
var r7;
|
|
var r5;
|
|
var r11;
|
|
var r3;
|
|
var binding;
|
|
var pointerType;
|
|
var value10;
|
|
var value11;
|
|
var clientX;
|
|
var clientY;
|
|
var value16;
|
|
var Object;
|
|
var assign;
|
|
var object;
|
|
let value = a0;
|
|
const eventTarget = getEventTarget(value);
|
|
if (!isBlocked(eventTarget, blockClass, blockSelector, unblockSelector, true)) {
|
|
binding = env0_0;
|
|
if ('pointerType' in value) {
|
|
pointerType = value.pointerType;
|
|
r7 = pointerType === 'mouse' ? env3_40.Mouse : pointerType === 'touch' ? env3_40.Touch : pointerType !== 'pen' ? null : env3_40.Pen;
|
|
if (r7 === env3_40.Touch) {
|
|
if (env3_39[env0_0] === env3_39.MouseDown) {
|
|
r5 = r7;
|
|
r11 = 'TouchStart';
|
|
} else if (env3_39[env0_0] !== env3_39.MouseUp) {
|
|
r5 = r7;
|
|
r11 = binding;
|
|
} else {
|
|
value10 = 'TouchEnd';
|
|
r5 = r7;
|
|
r11 = value10;
|
|
}
|
|
} else {
|
|
env3_40.Pen;
|
|
r5 = r7;
|
|
r11 = binding;
|
|
}
|
|
} else if (legacy_isTouchEvent(value)) {
|
|
r5 = env3_40.Touch;
|
|
r11 = binding;
|
|
} else {
|
|
r5 = null;
|
|
r11 = binding;
|
|
}
|
|
value11 = null;
|
|
if (value11 !== r5) {
|
|
r3 = r11.startsWith('Touch') && r5 === env3_40.Touch;
|
|
r3 = !r3 ? r11.startsWith('Mouse') && r5 === env3_40.Mouse : r3;
|
|
r7 = r3 ? value11 : r5;
|
|
} else {
|
|
r7 = env3_39[env0_0] !== env3_39.Click ? r5 : env2_8;
|
|
}
|
|
r3 = legacy_isTouchEvent(value) ? value.changedTouches[0] : value;
|
|
if (r3) {
|
|
value = mirror.getId(eventTarget);
|
|
clientX = r3.clientX;
|
|
clientY = r3.clientY;
|
|
value16 = callbackWrapper(mouseInteractionCb);
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
object = {type: env3_39[r11], id: value, x: clientX, y: clientY};
|
|
value = value11 !== r7;
|
|
value16(Reflect.apply(assign, Object, [object, value && ({pointerType: r7})]));
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11511() { // fn#11511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:41776, offset: 0x00db1284, size: 28 bytes, params: 1, frame: 11
|
|
env0_7.forEach(function(a0) {
|
|
return a0();
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
function initScrollObserver({scrollCb, doc, mirror, blockClass, blockSelector, unblockSelector, sampling}) { // fn#11513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:41827, offset: 0x00db12a0, size: 134 bytes, params: 2, frame: 18
|
|
const on_11462Binding = on_11462;
|
|
const callbackWrapperBinding = callbackWrapper;
|
|
const throttle$1Binding = throttle$1;
|
|
let value = callbackWrapperBinding(_fun11514);
|
|
let scroll = sampling.scroll;
|
|
scroll = !scroll ? 100 : scroll;
|
|
value = callbackWrapperBinding(throttle$1Binding(value, scroll));
|
|
return on_11462Binding('scroll', value, doc);
|
|
function _fun11514(a0) { // fn#11514, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:41997, offset: 0x00db1326, size: 186 bytes, params: 2, frame: 21
|
|
var id;
|
|
let value = environment.__proto__;
|
|
const eventTarget = getEventTarget(a0);
|
|
if (eventTarget) {
|
|
if (!isBlocked(eventTarget, blockClass, blockSelector, unblockSelector, true)) {
|
|
id = mirror.getId(eventTarget);
|
|
if (eventTarget !== doc) {
|
|
scrollCb({id: id, x: eventTarget.scrollLeft, y: eventTarget.scrollTop});
|
|
} else if (doc.defaultView) {
|
|
value = getWindowScroll(doc.defaultView);
|
|
scrollCb({id: id, x: value.left, y: value.top});
|
|
} else {
|
|
scrollCb({id: id, x: eventTarget.scrollLeft, y: eventTarget.scrollTop});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function initInputObserver({inputCb, doc, mirror, blockClass, blockSelector, unblockSelector, ignoreClass, ignoreSelector, maskInputOptions, maskInputFn, sampling, userTriggeredOnInput, maskTextClass, unmaskTextClass, maskTextSelector, unmaskTextSelector}) { // fn#11515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:42288, offset: 0x00db13e0, size: 546 bytes, params: 2, frame: 17
|
|
var Object;
|
|
var getOwnPropertyDescriptor;
|
|
var HTMLInputElement;
|
|
var prototype;
|
|
var value2;
|
|
var items2;
|
|
var HTMLSelectElement;
|
|
var push;
|
|
const value = (sampling.input === 'last' ? ['change'] : ['input', 'change']).map(function(a0) {
|
|
return on_11462(a0, callbackWrapper(eventHandler), doc);
|
|
});
|
|
const defaultView = doc.defaultView;
|
|
if (defaultView) {
|
|
Object = defaultView.Object;
|
|
getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
HTMLInputElement = defaultView.HTMLInputElement;
|
|
prototype = HTMLInputElement.prototype;
|
|
value2 = Reflect.apply(getOwnPropertyDescriptor, Object, [prototype, 'value']);
|
|
HTMLInputElement = defaultView.HTMLInputElement;
|
|
prototype = HTMLInputElement.prototype;
|
|
items2 = [[prototype, 'value']];
|
|
HTMLInputElement = defaultView.HTMLInputElement;
|
|
prototype = HTMLInputElement.prototype;
|
|
items2[1] = [prototype, 'checked'];
|
|
HTMLSelectElement = defaultView.HTMLSelectElement;
|
|
prototype = HTMLSelectElement.prototype;
|
|
items2[2] = [prototype, 'value'];
|
|
prototype = defaultView.HTMLTextAreaElement.prototype;
|
|
items2[3] = [prototype, 'value'];
|
|
HTMLSelectElement = defaultView.HTMLSelectElement;
|
|
prototype = HTMLSelectElement.prototype;
|
|
items2[4] = [prototype, 'selectedIndex'];
|
|
prototype = defaultView.HTMLOptionElement.prototype;
|
|
items2[5] = [prototype, 'selected'];
|
|
if (value2 && value2.set) {
|
|
push = value.push;
|
|
push.apply(value, ignoreSelector(items2.map(function(a0) {
|
|
return hookSetter(a0[0], a0[1], {set: _fun11523}, false, defaultView);
|
|
})));
|
|
}
|
|
return callbackWrapper(_fun11524);
|
|
}
|
|
return _fun11520;
|
|
function eventHandler(a0) { // fn#11516, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:42598, owner: initInputObserver.eventHandler, offset: 0x00db1602, size: 506 bytes, params: 2, frame: 28
|
|
var environment;
|
|
var r4;
|
|
var r3;
|
|
var classList;
|
|
var inputType;
|
|
var inputValue;
|
|
var value8;
|
|
var value9;
|
|
var name;
|
|
let value = environment.__proto__;
|
|
const eventTarget = getEventTarget(a0);
|
|
const isTrusted = a0.isTrusted;
|
|
const r11 = eventTarget && toUpperCase(eventTarget.tagName);
|
|
const r6 = r11 !== 'OPTION' ? eventTarget : eventTarget.parentElement;
|
|
if (r6) {
|
|
if (r11) {
|
|
if (!(env1_48.indexOf(r11) < 0)) {
|
|
if (!isBlocked(r6, blockClass, blockSelector, unblockSelector, true)) {
|
|
classList = r6.classList;
|
|
if (!classList.contains(ignoreClass)) {
|
|
if (ignoreSelector) {
|
|
if (!r6.matches(ignoreSelector)) {
|
|
inputType = getInputType(r6);
|
|
inputValue = getInputValue(r6, r11, inputType);
|
|
value8 = false;
|
|
value9 = needMaskingText(r6, maskTextClass, maskTextSelector, unmaskTextClass,
|
|
unmaskTextSelector,
|
|
shouldMaskInput({maskInputOptions: maskInputOptions, tagName: r11,
|
|
type: inputType}));
|
|
r4 = inputType !== 'radio' && inputType !== 'checkbox' ? value8 : r6.checked;
|
|
value = maskInputValue({isMasked: value9, element: r6, value: inputValue,
|
|
maskInputFn: maskInputFn});
|
|
cbWithDedup(r6, userTriggeredOnInput ? {text: value, isChecked: r4,
|
|
userTriggered: isTrusted} : {text: value,
|
|
isChecked: r4});
|
|
name = r6.name;
|
|
value = inputType === 'radio';
|
|
r3 = value && name;
|
|
r3 = r3 && r4;
|
|
if (r3) {
|
|
doc.querySelectorAll('input[type="radio"][name="' + name + '"]').forEach(_fun11517);
|
|
}
|
|
}
|
|
} else {
|
|
inputType = getInputType(r6);
|
|
inputValue = getInputValue(r6, r11, inputType);
|
|
value8 = false;
|
|
value9 = needMaskingText(r6, maskTextClass, maskTextSelector, unmaskTextClass,
|
|
unmaskTextSelector,
|
|
shouldMaskInput({maskInputOptions: maskInputOptions, tagName: r11, type: inputType}));
|
|
r4 = inputType !== 'radio' && inputType !== 'checkbox' ? value8 : r6.checked;
|
|
value = maskInputValue({isMasked: value9, element: r6, value: inputValue,
|
|
maskInputFn: maskInputFn});
|
|
cbWithDedup(r6, userTriggeredOnInput ? {text: value, isChecked: r4,
|
|
userTriggered: isTrusted} : {text: value,
|
|
isChecked: r4});
|
|
name = r6.name;
|
|
value = inputType === 'radio';
|
|
r3 = value && name;
|
|
r3 = r3 && r4;
|
|
if (r3) {
|
|
doc.querySelectorAll('input[type="radio"][name="' + name + '"]').forEach(_fun11517);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
function _fun11517(a0) { // fn#11517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:43247, offset: 0x00db17fc, size: 151 bytes, params: 2, frame: 18
|
|
var value2;
|
|
var maskInputValueBinding;
|
|
var object;
|
|
var value3;
|
|
var value4;
|
|
if (a0 !== parentElement) {
|
|
value2 = environment.__proto__.__proto__;
|
|
maskInputValueBinding = maskInputValue;
|
|
object = {isMasked: env0_4, element: a0};
|
|
object.value = getInputValue(a0, env0_1, env0_2);
|
|
value3 = environment.__proto__;
|
|
object.maskInputFn = maskInputFn;
|
|
value4 = maskInputValueBinding(object);
|
|
cbWithDedup(a0, userTriggeredOnInput ? {text: value4, isChecked: !checked,
|
|
userTriggered: false} : {text: value4,
|
|
isChecked: !checked});
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function cbWithDedup(a0, a1) { // fn#11518, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:43439, owner: initInputObserver.cbWithDedup, offset: 0x00db1893, size: 141 bytes, params: 3, frame: 17
|
|
var id;
|
|
var Object;
|
|
let value = environment.__proto__;
|
|
const value2 = env1_49.get(a0);
|
|
if (value2) {
|
|
if (value2.text !== a1.text) {
|
|
env1_49.set(a0, a1);
|
|
id = mirror.getId(a0);
|
|
value = callbackWrapper(inputCb);
|
|
Object = global.Object;
|
|
value(Object.assign({}, a1, {id: id}));
|
|
} else if (value2.isChecked !== a1.isChecked) {
|
|
env1_49.set(a0, a1);
|
|
id = mirror.getId(a0);
|
|
value = callbackWrapper(inputCb);
|
|
Object = global.Object;
|
|
value(Object.assign({}, a1, {id: id}));
|
|
}
|
|
} else {
|
|
env1_49.set(a0, a1);
|
|
id = mirror.getId(a0);
|
|
value = callbackWrapper(inputCb);
|
|
Object = global.Object;
|
|
value(Object.assign({}, a1, {id: id}));
|
|
}
|
|
}
|
|
|
|
function _fun11520() { // fn#11520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:43732, offset: 0x00db1949, size: 28 bytes, params: 1, frame: 11
|
|
env0_15.forEach(function(a0) {
|
|
return a0();
|
|
});
|
|
}
|
|
|
|
function _fun11522([property, property2]) { // fn#11522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:44157, offset: 0x00db1965, size: 56 bytes, params: 2, frame: 19
|
|
return hookSetter(property, property2, {set: set_11523}, false, defaultView);
|
|
function set_11523() { // fn#11523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:44202, offset: 0x00db199d, size: 44 bytes, params: 1, frame: 12
|
|
let value = environment.__proto__.__proto__;
|
|
const callbackWrapperBinding = callbackWrapper;
|
|
value = environment.__proto__;
|
|
callbackWrapperBinding(eventHandler)({target: this, isTrusted: false});
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11524() { // fn#11524, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:44279, offset: 0x00db19c9, size: 28 bytes, params: 1, frame: 11
|
|
env0_15.forEach(function(a0) {
|
|
return a0();
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
function getNestedCSSRulePositions(a0) { // fn#11526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:44330, offset: 0x00db19e5, size: 283 bytes, params: 2, frame: 14
|
|
var Array;
|
|
const items2 = [];
|
|
var value;
|
|
if (hasNestedCSSRule('CSSGroupingRule')) {
|
|
if (a0.parentRule instanceof global.CSSGroupingRule) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentRule.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
} else if (hasNestedCSSRule('CSSMediaRule')) {
|
|
if (a0.parentRule instanceof global.CSSMediaRule) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentRule.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
} else if (hasNestedCSSRule('CSSSupportsRule')) {
|
|
if (a0.parentRule instanceof global.CSSSupportsRule) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentRule.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
} else if (hasNestedCSSRule('CSSConditionRule')) {
|
|
if (a0.parentRule instanceof global.CSSConditionRule) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentRule.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
} else if (a0.parentStyleSheet) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentStyleSheet.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
}
|
|
} else if (a0.parentStyleSheet) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentStyleSheet.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
}
|
|
} else if (hasNestedCSSRule('CSSConditionRule')) {
|
|
if (a0.parentRule instanceof global.CSSConditionRule) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentRule.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
} else if (a0.parentStyleSheet) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentStyleSheet.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
}
|
|
} else if (a0.parentStyleSheet) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentStyleSheet.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
}
|
|
} else if (hasNestedCSSRule('CSSSupportsRule')) {
|
|
if (a0.parentRule instanceof global.CSSSupportsRule) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentRule.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
} else if (hasNestedCSSRule('CSSConditionRule')) {
|
|
if (a0.parentRule instanceof global.CSSConditionRule) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentRule.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
} else if (a0.parentStyleSheet) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentStyleSheet.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
}
|
|
} else if (a0.parentStyleSheet) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentStyleSheet.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
}
|
|
} else if (hasNestedCSSRule('CSSConditionRule')) {
|
|
if (a0.parentRule instanceof global.CSSConditionRule) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentRule.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
} else if (a0.parentStyleSheet) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentStyleSheet.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
}
|
|
} else if (a0.parentStyleSheet) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentStyleSheet.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
}
|
|
} else if (hasNestedCSSRule('CSSMediaRule')) {
|
|
if (a0.parentRule instanceof global.CSSMediaRule) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentRule.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
} else if (hasNestedCSSRule('CSSSupportsRule')) {
|
|
if (a0.parentRule instanceof global.CSSSupportsRule) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentRule.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
} else if (hasNestedCSSRule('CSSConditionRule')) {
|
|
if (a0.parentRule instanceof global.CSSConditionRule) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentRule.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
} else if (a0.parentStyleSheet) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentStyleSheet.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
}
|
|
} else if (a0.parentStyleSheet) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentStyleSheet.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
}
|
|
} else if (hasNestedCSSRule('CSSConditionRule')) {
|
|
if (a0.parentRule instanceof global.CSSConditionRule) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentRule.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
} else if (a0.parentStyleSheet) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentStyleSheet.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
}
|
|
} else if (a0.parentStyleSheet) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentStyleSheet.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
}
|
|
} else if (hasNestedCSSRule('CSSSupportsRule')) {
|
|
if (a0.parentRule instanceof global.CSSSupportsRule) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentRule.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
} else if (hasNestedCSSRule('CSSConditionRule')) {
|
|
if (a0.parentRule instanceof global.CSSConditionRule) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentRule.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
} else if (a0.parentStyleSheet) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentStyleSheet.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
}
|
|
} else if (a0.parentStyleSheet) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentStyleSheet.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
}
|
|
} else if (hasNestedCSSRule('CSSConditionRule')) {
|
|
if (a0.parentRule instanceof global.CSSConditionRule) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentRule.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
} else if (a0.parentStyleSheet) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentStyleSheet.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
}
|
|
} else if (a0.parentStyleSheet) {
|
|
Array = global.Array;
|
|
value = Array.from(a0.parentStyleSheet.cssRules);
|
|
value = value.indexOf(a0);
|
|
items2.unshift(value);
|
|
}
|
|
return items2;
|
|
}
|
|
|
|
function initAdoptedStyleSheetObserver({mirror, stylesheetManager}, a1) { // fn#11528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:45005, offset: 0x00db1b4b, size: 331 bytes, params: 3, frame: 21
|
|
const env0_0 = a1;
|
|
const r5 = a1.nodeName === '#document' ? mirror.getId(a1) : mirror.getId(a1.host);
|
|
let r0 = a1.nodeName === '#document' ? a1.defaultView?.Document : a1.ownerDocument == null || a1.ownerDocument.defaultView == null ? undefined : a1.ownerDocument.defaultView.ShadowRoot;
|
|
const value = undefined;
|
|
const r2 = r0 != null && r0.prototype ? global.Object.getOwnPropertyDescriptor(r0 == null ? value : r0.prototype,
|
|
'adoptedStyleSheets') : value;
|
|
if (r5 === null) {
|
|
r0 = function() {
|
|
};
|
|
} else if (r5 === -1) {
|
|
r0 = _fun11532;
|
|
} else if (r0) {
|
|
if (r2) {
|
|
global.Object.defineProperty(a1, 'adoptedStyleSheets', {configurable: r2.configurable,
|
|
enumerable: r2.enumerable,
|
|
get: get_11529, set: set_11530});
|
|
r0 = callbackWrapper(_fun11531);
|
|
} else {
|
|
r0 = _fun11532;
|
|
}
|
|
} else {
|
|
r0 = _fun11532;
|
|
}
|
|
return r0;
|
|
function initAdoptedStyleSheetObserverGet() { // fn#11529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:45539, owner: initAdoptedStyleSheetObserver.get, offset: 0x00db1c96, size: 37 bytes, params: 1, frame: 12
|
|
const get = env0_3.get;
|
|
return get?.call(this);
|
|
}
|
|
|
|
function initAdoptedStyleSheetObserverSet(a0) { // fn#11530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:45608, owner: initAdoptedStyleSheetObserver.set, offset: 0x00db1cbb, size: 90 bytes, params: 2, frame: 17
|
|
var stylesheetManagerBinding;
|
|
var adoptStyleSheets;
|
|
var binding;
|
|
var error;
|
|
const r0 = env0_3.set?.call(this, a0);
|
|
if (env0_2 !== null) {
|
|
if (env0_2 !== -1) {
|
|
try {
|
|
stylesheetManagerBinding = stylesheetManager;
|
|
adoptStyleSheets = stylesheetManagerBinding.adoptStyleSheets;
|
|
binding = env0_2;
|
|
Reflect.apply(adoptStyleSheets, stylesheetManagerBinding, [a0, binding]);
|
|
} catch (error) {
|
|
}
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun11531() { // fn#11531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:45744, offset: 0x00db1d15, size: 91 bytes, params: 1, frame: 16
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const get = env0_3.get;
|
|
Reflect.apply(defineProperty, Object, [require, 'adoptedStyleSheets', {configurable: env0_3.configurable,
|
|
enumerable: env0_3.enumerable, get: get, set: env0_3.set}]);
|
|
}
|
|
|
|
}
|
|
|
|
function initObservers(a0) { // fn#11533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:45892, offset: 0x00db1d70, size: 425 bytes, params: 2, frame: 24
|
|
var environment;
|
|
var value;
|
|
var initMutationObserverBinding;
|
|
var initAdoptedStyleSheetObserverBinding;
|
|
var collectFonts;
|
|
var push;
|
|
var observer;
|
|
var callback;
|
|
var options;
|
|
var value2;
|
|
var error;
|
|
let doc = a0.doc;
|
|
const defaultView = doc.defaultView;
|
|
if (!defaultView) {
|
|
return function() {
|
|
};
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (a0.recordDOM) {
|
|
value = environment;
|
|
initMutationObserverBinding = initMutationObserver;
|
|
doc = a0.doc;
|
|
var env0_0 = initMutationObserverBinding(a0, doc);
|
|
break reducibleJoin4;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
const env0_1 = initMoveObserver(a0);
|
|
const env0_2 = initMouseInteractionObserver(a0);
|
|
const env0_3 = initScrollObserver(a0);
|
|
const env0_4 = initViewportResizeObserver(a0, {win: defaultView});
|
|
const env0_5 = initInputObserver(a0);
|
|
let env0_6 = initMediaInteractionObserver(a0);
|
|
let env0_7 = function() {
|
|
};
|
|
let env0_8 = function() {
|
|
};
|
|
let env0_9 = function() {
|
|
};
|
|
let env0_10 = function() {
|
|
};
|
|
reducibleJoin7: while (true) {
|
|
if (a0.recordDOM) {
|
|
env0_7 = initStyleSheetObserver(a0, {win: defaultView});
|
|
initAdoptedStyleSheetObserverBinding = initAdoptedStyleSheetObserver;
|
|
doc = a0.doc;
|
|
env0_8 = initAdoptedStyleSheetObserverBinding(a0, doc);
|
|
env0_9 = initStyleDeclarationObserver(a0, {win: defaultView});
|
|
collectFonts = a0.collectFonts;
|
|
if (collectFonts) {
|
|
env0_10 = initFontObserver(a0);
|
|
break reducibleJoin7;
|
|
}
|
|
break reducibleJoin7;
|
|
}
|
|
break reducibleJoin7;
|
|
}
|
|
const env0_11 = (({doc, mirror, blockClass, blockSelector, unblockSelector, selectionCb}) => {
|
|
var env0_6 = true;
|
|
var value2 = callbackWrapper(_fun11578);
|
|
value2();
|
|
return on_11462('selectionchange', value2);
|
|
})(a0);
|
|
const env0_12 = initCustomElementObserver(a0);
|
|
items2 = [];
|
|
const iterator = a0.plugins[Symbol.iterator]();
|
|
const iterator2 = iterator.next;
|
|
let r4 = iterator;
|
|
let item2 = Reflect.apply(iterator2, r4, []);
|
|
let item = item2.value;
|
|
item2 = item2.done ? undefined : r4;
|
|
reducibleJoin9: while (true) {
|
|
if (item2 === undefined) {
|
|
return callbackWrapper(_fun11583);
|
|
}
|
|
break reducibleJoin9;
|
|
}
|
|
reducibleLoop9: while (true) {
|
|
try {
|
|
push = items2.push;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
observer = item.observer;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
callback = item.callback;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
options = item.options;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value2 = Reflect.apply(observer, item, [callback, defaultView, options]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(push, items2, [value2]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r4 = item2;
|
|
item2 = Reflect.apply(iterator2, r4, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r4;
|
|
if (item2 === undefined) {
|
|
break reducibleLoop9;
|
|
}
|
|
continue reducibleLoop9;
|
|
}
|
|
return callbackWrapper(_fun11583);
|
|
function initMoveObserver({mousemoveCb, sampling, doc, mirror}) { // fn#11535, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:46023, owner: initObservers.initMoveObserver, offset: 0x00db1f19, size: 261 bytes, params: 2, frame: 20
|
|
var environment;
|
|
let mousemove = sampling.mousemove;
|
|
if (mousemove === false) {
|
|
return function() {
|
|
};
|
|
}
|
|
mousemove = sampling.mousemove;
|
|
mousemove = typeof mousemove !== 'number' ? 50 : sampling.mousemove;
|
|
let mousemoveCallback = sampling.mousemoveCallback;
|
|
mousemoveCallback = typeof mousemoveCallback !== 'number' ? 500 : sampling.mousemoveCallback;
|
|
const env0_3 = [];
|
|
value = environment.__proto__;
|
|
const throttle$1Binding = throttle$1;
|
|
const env0_4 = throttle$1Binding(callbackWrapper(_fun11537), mousemoveCallback);
|
|
callbackWrapperBinding = callbackWrapper;
|
|
const value3 = callbackWrapperBinding(throttle$1Binding(callbackWrapperBinding(_fun11539), mousemove,
|
|
{trailing: false}));
|
|
const on_11462Binding = on_11462;
|
|
object = [on_11462Binding('mousemove', value3, doc), on_11462Binding('touchmove', value3, doc),
|
|
on_11462Binding('drag', value3, doc)];
|
|
return callbackWrapper(_fun11540);
|
|
function _fun11537(a0) { // fn#11537, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:46281, offset: 0x00db201e, size: 84 bytes, params: 2, frame: 14
|
|
const Date = global.Date;
|
|
const env0_0 = Date.now() - env0_2;
|
|
mousemoveCb(items2.map(_fun11538), a0);
|
|
items2 = [];
|
|
function _fun11538(a0) { // fn#11538, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:46321, offset: 0x00db2072, size: 28 bytes, params: 2, frame: 3
|
|
a0.timeOffset = a0.timeOffset - env0_0;
|
|
return a0;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11539(a0) { // fn#11539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:46402, offset: 0x00db208e, size: 230 bytes, params: 2, frame: 18
|
|
const value = a0;
|
|
const eventTarget = getEventTarget(value);
|
|
const {clientX, clientY} = legacy_isTouchEvent(value) ? value.changedTouches[0] : value;
|
|
env0_2 = !env0_2 ? env2_34() : env0_2;
|
|
let binding = env0_3;
|
|
const push = binding.push;
|
|
const object = {x: clientX, y: clientY};
|
|
object.id = mirror.getId(eventTarget);
|
|
object.timeOffset = env2_34() - env0_2;
|
|
Reflect.apply(push, binding, [object]);
|
|
binding = env0_4;
|
|
const DragEvent = global.DragEvent;
|
|
binding(typeof DragEvent === 'undefined' ? value instanceof global.MouseEvent ? env2_38.MouseMove : env2_38.TouchMove : value instanceof global.DragEvent ? env2_38.Drag : value instanceof global.MouseEvent ? env2_38.MouseMove : env2_38.TouchMove);
|
|
}
|
|
|
|
function _fun11540() { // fn#11540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:46772, offset: 0x00db2174, size: 28 bytes, params: 1, frame: 11
|
|
env0_5.forEach(function(a0) {
|
|
return a0();
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
function initViewportResizeObserver({viewportResizeCb}, {win}) { // fn#11542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:46887, owner: initObservers.initViewportResizeObserver, offset: 0x00db2190, size: 94 bytes, params: 3, frame: 17
|
|
var environment;
|
|
let value = environment.__proto__;
|
|
const on_11462Binding = on_11462;
|
|
const callbackWrapperBinding = callbackWrapper;
|
|
const throttle$1Binding = throttle$1;
|
|
value = callbackWrapperBinding(_fun11543);
|
|
value = callbackWrapperBinding(throttle$1Binding(value, 200));
|
|
return on_11462Binding('resize', value, win);
|
|
function _fun11543() { // fn#11543, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:47008, offset: 0x00db21ee, size: 99 bytes, params: 1, frame: 16
|
|
var viewportResizeCbBinding;
|
|
var object;
|
|
var Number;
|
|
let value = environment.__proto__.__proto__;
|
|
const windowHeight = getWindowHeight();
|
|
value = getWindowWidth();
|
|
if (!(env0_1 === windowHeight && env0_2 === value)) {
|
|
viewportResizeCbBinding = viewportResizeCb;
|
|
object = {};
|
|
Number = global.Number;
|
|
object.width = Number(value);
|
|
Number = global.Number;
|
|
object.height = Number(windowHeight);
|
|
viewportResizeCbBinding(object);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function initMediaInteractionObserver({mediaInteractionCb, blockClass, blockSelector, unblockSelector, mirror, sampling, doc}) { // fn#11544, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:47173, owner: initObservers.initMediaInteractionObserver, offset: 0x00db2251, size: 274 bytes, params: 2, frame: 19
|
|
const value2 = callbackWrapper(_fun11545);
|
|
const on_11462Binding = on_11462;
|
|
const Play = env1_41.Play;
|
|
const items2 = [on_11462Binding('play', value2(Play), doc)];
|
|
const Pause = env1_41.Pause;
|
|
items2[1] = on_11462Binding('pause', value2(Pause), doc);
|
|
const Seeked = env1_41.Seeked;
|
|
items2[2] = on_11462Binding('seeked', value2(Seeked), doc);
|
|
const VolumeChange = env1_41.VolumeChange;
|
|
items2[3] = on_11462Binding('volumechange', value2(VolumeChange), doc);
|
|
const RateChange = env1_41.RateChange;
|
|
items2[4] = on_11462Binding('ratechange', value2(RateChange), doc);
|
|
return callbackWrapper(_fun11547);
|
|
function _fun11545(a0) { // fn#11545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:47332, offset: 0x00db2363, size: 62 bytes, params: 2, frame: 14
|
|
var environment;
|
|
const env0_0 = a0;
|
|
let value = environment.__proto__.__proto__;
|
|
const throttle$1Binding = throttle$1;
|
|
value = callbackWrapper(_fun11546);
|
|
let media = sampling.media;
|
|
media = !media ? 500 : media;
|
|
return throttle$1Binding(value, media);
|
|
function _fun11546(a0) { // fn#11546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:47366, offset: 0x00db23a1, size: 140 bytes, params: 2, frame: 22
|
|
var isBlockedBinding;
|
|
var currentTime;
|
|
var volume;
|
|
var muted;
|
|
var playbackRate;
|
|
var mediaInteractionCbBinding;
|
|
var object;
|
|
const eventTarget = getEventTarget(a0);
|
|
if (eventTarget) {
|
|
isBlockedBinding = isBlocked;
|
|
value = environment.__proto__;
|
|
if (!isBlockedBinding(eventTarget, blockClass, blockSelector, unblockSelector, true)) {
|
|
currentTime = eventTarget.currentTime;
|
|
volume = eventTarget.volume;
|
|
muted = eventTarget.muted;
|
|
playbackRate = eventTarget.playbackRate;
|
|
mediaInteractionCbBinding = mediaInteractionCb;
|
|
object = {};
|
|
object.type = env0_0;
|
|
object.id = mirror.getId(eventTarget);
|
|
object.currentTime = currentTime;
|
|
object.volume = volume;
|
|
object.muted = muted;
|
|
object.playbackRate = playbackRate;
|
|
mediaInteractionCbBinding(object);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11547() { // fn#11547, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:47747, offset: 0x00db242d, size: 28 bytes, params: 1, frame: 11
|
|
env0_6.forEach(function(a0) {
|
|
return a0();
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
function initStyleSheetObserver({styleSheetRuleCb, mirror, stylesheetManager}, {win}) { // fn#11553, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:47961, owner: initObservers.initStyleSheetObserver, offset: 0x00db2449, size: 657 bytes, params: 3, frame: 20
|
|
var environment;
|
|
var prototype;
|
|
var insertRule;
|
|
var Proxy;
|
|
var object;
|
|
var value;
|
|
var value2;
|
|
var proxy;
|
|
var deleteRule;
|
|
var value4;
|
|
var replace;
|
|
var value6;
|
|
var replaceSync;
|
|
var value8;
|
|
let CSSStyleSheet = win.CSSStyleSheet;
|
|
if (CSSStyleSheet) {
|
|
CSSStyleSheet = win.CSSStyleSheet;
|
|
prototype = CSSStyleSheet.prototype;
|
|
if (prototype) {
|
|
CSSStyleSheet = win.CSSStyleSheet;
|
|
prototype = CSSStyleSheet.prototype;
|
|
insertRule = prototype.insertRule;
|
|
CSSStyleSheet = win.CSSStyleSheet;
|
|
prototype = CSSStyleSheet.prototype;
|
|
Proxy = global.Proxy;
|
|
object = {};
|
|
value = environment.__proto__;
|
|
object.apply = callbackWrapper(_fun11555);
|
|
value2 = Object.create(Proxy.prototype, {constructor: {value: Proxy}});
|
|
proxy = new Proxy();
|
|
prototype.insertRule = proxy instanceof Object ? proxy : value2;
|
|
CSSStyleSheet = win.CSSStyleSheet;
|
|
prototype = CSSStyleSheet.prototype;
|
|
deleteRule = prototype.deleteRule;
|
|
CSSStyleSheet = win.CSSStyleSheet;
|
|
prototype = CSSStyleSheet.prototype;
|
|
Proxy = global.Proxy;
|
|
object = {};
|
|
object.apply = callbackWrapper(_fun11556);
|
|
value4 = Object.create(Proxy.prototype, {constructor: {value: Proxy}});
|
|
proxy = new Proxy();
|
|
prototype.deleteRule = proxy instanceof Object ? proxy : value4;
|
|
CSSStyleSheet = win.CSSStyleSheet;
|
|
prototype = CSSStyleSheet.prototype;
|
|
replace = prototype.replace;
|
|
if (replace) {
|
|
CSSStyleSheet = win.CSSStyleSheet;
|
|
prototype = CSSStyleSheet.prototype;
|
|
replace = prototype.replace;
|
|
CSSStyleSheet = win.CSSStyleSheet;
|
|
prototype = CSSStyleSheet.prototype;
|
|
Proxy = global.Proxy;
|
|
({}).apply = callbackWrapper(_fun11557);
|
|
value6 = Object.create(Proxy.prototype, {constructor: {value: Proxy}});
|
|
proxy = new Proxy();
|
|
prototype.replace = proxy instanceof Object ? proxy : value6;
|
|
}
|
|
CSSStyleSheet = win.CSSStyleSheet;
|
|
prototype = CSSStyleSheet.prototype;
|
|
replaceSync = prototype.replaceSync;
|
|
if (replaceSync) {
|
|
CSSStyleSheet = win.CSSStyleSheet;
|
|
prototype = CSSStyleSheet.prototype;
|
|
replaceSync = prototype.replaceSync;
|
|
CSSStyleSheet = win.CSSStyleSheet;
|
|
prototype = CSSStyleSheet.prototype;
|
|
Proxy = global.Proxy;
|
|
({}).apply = callbackWrapper(_fun11558);
|
|
value8 = Object.create(Proxy.prototype, {constructor: {value: Proxy}});
|
|
proxy = new Proxy();
|
|
prototype.replaceSync = proxy instanceof Object ? proxy : value8;
|
|
}
|
|
object = {};
|
|
if (canMonkeyPatchNestedCSSRule('CSSGroupingRule')) {
|
|
object.CSSGroupingRule = win.CSSGroupingRule;
|
|
} else {
|
|
if (canMonkeyPatchNestedCSSRule('CSSMediaRule')) {
|
|
object.CSSMediaRule = win.CSSMediaRule;
|
|
}
|
|
if (canMonkeyPatchNestedCSSRule('CSSConditionRule')) {
|
|
object.CSSConditionRule = win.CSSConditionRule;
|
|
}
|
|
if (canMonkeyPatchNestedCSSRule('CSSSupportsRule')) {
|
|
object.CSSSupportsRule = win.CSSSupportsRule;
|
|
}
|
|
}
|
|
var env0_9 = {};
|
|
global.Object.entries(object).forEach(_fun11559);
|
|
return callbackWrapper(_fun11562);
|
|
}
|
|
}
|
|
return function() {
|
|
};
|
|
function _fun11555(a0, a1, a2) { // fn#11555, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:48235, offset: 0x00db26da, size: 177 bytes, params: 4, frame: 22
|
|
const value2 = env2_6(a2, 2);
|
|
const property = value2[0];
|
|
const property2 = value2[1];
|
|
const {id, styleId} = getIdAndStyleId(a1, mirror, stylesheetManager.styleMirror);
|
|
let r4 = id && id !== -1;
|
|
r4 = !r4 ? styleId && styleId !== -1 : r4;
|
|
if (r4) {
|
|
styleSheetRuleCb({id: id, styleId: styleId, adds: [{rule: property, index: property2}]});
|
|
}
|
|
return a0.apply(a1, a2);
|
|
}
|
|
|
|
function _fun11556(a0, a1, a2) { // fn#11556, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:48533, offset: 0x00db278b, size: 165 bytes, params: 4, frame: 21
|
|
const property = env2_6(a2, 1)[0];
|
|
const {id, styleId} = getIdAndStyleId(a1, mirror, stylesheetManager.styleMirror);
|
|
let r4 = id && id !== -1;
|
|
r4 = !r4 ? styleId && styleId !== -1 : r4;
|
|
if (r4) {
|
|
styleSheetRuleCb({id: id, styleId: styleId, removes: [{index: property}]});
|
|
}
|
|
return a0.apply(a1, a2);
|
|
}
|
|
|
|
function _fun11557(a0, a1, a2) { // fn#11557, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:48838, offset: 0x00db2830, size: 150 bytes, params: 4, frame: 21
|
|
const property = env2_6(a2, 1)[0];
|
|
const {id, styleId} = getIdAndStyleId(a1, mirror, stylesheetManager.styleMirror);
|
|
let r4 = id && id !== -1;
|
|
r4 = !r4 ? styleId && styleId !== -1 : r4;
|
|
if (r4) {
|
|
styleSheetRuleCb({id: id, styleId: styleId, replace: property});
|
|
}
|
|
return a0.apply(a1, a2);
|
|
}
|
|
|
|
function _fun11558(a0, a1, a2) { // fn#11558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:49146, offset: 0x00db28c6, size: 151 bytes, params: 4, frame: 21
|
|
const property = env2_6(a2, 1)[0];
|
|
const {id, styleId} = getIdAndStyleId(a1, mirror, stylesheetManager.styleMirror);
|
|
let r4 = id && id !== -1;
|
|
r4 = !r4 ? styleId && styleId !== -1 : r4;
|
|
if (r4) {
|
|
styleSheetRuleCb({id: id, styleId: styleId, replaceSync: property});
|
|
}
|
|
return a0.apply(a1, a2);
|
|
}
|
|
|
|
function _fun11559(a0) { // fn#11559, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:49706, offset: 0x00db295d, size: 239 bytes, params: 2, frame: 22
|
|
var environment;
|
|
const value = environment.__proto__.__proto__;
|
|
const value2 = env2_6(a0, 2);
|
|
const property = value2[0];
|
|
const property2 = value2[1];
|
|
const binding = env0_9;
|
|
let prototype = property2.prototype;
|
|
let insertRule = prototype.insertRule;
|
|
let deleteRule = property2.prototype.deleteRule;
|
|
binding[property] = {insertRule: insertRule, deleteRule: deleteRule};
|
|
prototype = property2.prototype;
|
|
let Proxy = global.Proxy;
|
|
insertRule = env0_9[property].insertRule;
|
|
object = {};
|
|
object.apply = callbackWrapper(_fun11560);
|
|
const value4 = Object.create(Proxy.prototype, {constructor: {value: Proxy}});
|
|
const proxy = new Proxy(insertRule, object);
|
|
prototype.insertRule = proxy instanceof Object ? proxy : value4;
|
|
prototype = property2.prototype;
|
|
Proxy = global.Proxy;
|
|
deleteRule = env0_9[property].deleteRule;
|
|
object = {};
|
|
object.apply = callbackWrapper(_fun11561);
|
|
prototype.deleteRule = new Proxy(deleteRule, object);
|
|
function _fun11560(a0, a1, a2) { // fn#11560, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:49880, offset: 0x00db2a4c, size: 229 bytes, params: 4, frame: 24
|
|
var styleSheetRuleCbBinding;
|
|
var object;
|
|
var object2;
|
|
var items2;
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
const value2 = env3_6(a2, 2);
|
|
const value3 = 0;
|
|
const property = value2[value3];
|
|
const property2 = value2[1];
|
|
const {id, styleId} = getIdAndStyleId(a1.parentStyleSheet, mirror, stylesheetManager.styleMirror);
|
|
let r4 = id && id !== -1;
|
|
r4 = !r4 ? styleId && styleId !== -1 : r4;
|
|
if (r4) {
|
|
styleSheetRuleCbBinding = styleSheetRuleCb;
|
|
object = {id: id, styleId: styleId};
|
|
object2 = {rule: property};
|
|
items2 = [];
|
|
object2.index = items2.concat(env3_7(getNestedCSSRulePositions(a1)), [property2 || value3]);
|
|
object.adds = [object2];
|
|
styleSheetRuleCbBinding(object);
|
|
}
|
|
return a0.apply(a1, a2);
|
|
}
|
|
|
|
function _fun11561(a0, a1, a2) { // fn#11561, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:50196, offset: 0x00db2b31, size: 212 bytes, params: 4, frame: 22
|
|
var styleSheetRuleCbBinding;
|
|
var object;
|
|
var object2;
|
|
var items2;
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
const property = env3_6(a2, 1)[0];
|
|
const {id, styleId} = getIdAndStyleId(a1.parentStyleSheet, mirror, stylesheetManager.styleMirror);
|
|
let r4 = id && id !== -1;
|
|
r4 = !r4 ? styleId && styleId !== -1 : r4;
|
|
if (r4) {
|
|
styleSheetRuleCbBinding = styleSheetRuleCb;
|
|
object = {id: id, styleId: styleId};
|
|
object2 = {};
|
|
items2 = [];
|
|
object2.index = items2.concat(env3_7(getNestedCSSRulePositions(a1)), [property]);
|
|
object.removes = [object2];
|
|
styleSheetRuleCbBinding(object);
|
|
}
|
|
return a0.apply(a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11562() { // fn#11562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:50441, offset: 0x00db2c05, size: 157 bytes, params: 1, frame: 12
|
|
const winBinding = win;
|
|
let CSSStyleSheet = winBinding.CSSStyleSheet;
|
|
CSSStyleSheet.prototype.insertRule = insertRule;
|
|
CSSStyleSheet = winBinding.CSSStyleSheet;
|
|
CSSStyleSheet.prototype.deleteRule = deleteRule;
|
|
if (replace) {
|
|
win.CSSStyleSheet.prototype.replace = replace;
|
|
}
|
|
if (replaceSync) {
|
|
win.CSSStyleSheet.prototype.replaceSync = replaceSync;
|
|
}
|
|
const Object = global.Object;
|
|
Object.entries(env0_8).forEach(_fun11563);
|
|
function _fun11563(a0) { // fn#11563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:50643, offset: 0x00db2ca2, size: 89 bytes, params: 2, frame: 15
|
|
let value = environment.__proto__.__proto__.__proto__;
|
|
value = env3_6(a0, 2);
|
|
const property = value[0];
|
|
const property2 = value[1];
|
|
const prototype = property2.prototype;
|
|
value = environment.__proto__;
|
|
prototype.insertRule = env1_9[property].insertRule;
|
|
property2.prototype.deleteRule = env1_9[property].deleteRule;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function initStyleDeclarationObserver({styleDeclarationCb, mirror, ignoreCSSAttributes, stylesheetManager}, {win}) { // fn#11564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:50821, owner: initObservers.initStyleDeclarationObserver, offset: 0x00db2cfb, size: 261 bytes, params: 3, frame: 20
|
|
let CSSStyleDeclaration = win.CSSStyleDeclaration;
|
|
let prototype = CSSStyleDeclaration.prototype;
|
|
const setProperty = prototype.setProperty;
|
|
CSSStyleDeclaration = win.CSSStyleDeclaration;
|
|
prototype = CSSStyleDeclaration.prototype;
|
|
let Proxy = global.Proxy;
|
|
let object = {};
|
|
object.apply = callbackWrapper(_fun11565);
|
|
const value2 = Object.create(Proxy.prototype, {constructor: {value: Proxy}});
|
|
let proxy = new Proxy(setProperty, object);
|
|
prototype.setProperty = proxy instanceof Object ? proxy : value2;
|
|
CSSStyleDeclaration = win.CSSStyleDeclaration;
|
|
const removeProperty = CSSStyleDeclaration.prototype.removeProperty;
|
|
CSSStyleDeclaration = win.CSSStyleDeclaration;
|
|
prototype = CSSStyleDeclaration.prototype;
|
|
Proxy = global.Proxy;
|
|
object = {};
|
|
object.apply = callbackWrapper(_fun11566);
|
|
const value4 = Object.create(Proxy.prototype, {constructor: {value: Proxy}});
|
|
proxy = new Proxy(removeProperty, object);
|
|
prototype.removeProperty = proxy instanceof Object ? proxy : value4;
|
|
return callbackWrapper(function() {
|
|
var winBinding = win;
|
|
winBinding.CSSStyleDeclaration.prototype.setProperty = setProperty;
|
|
winBinding.CSSStyleDeclaration.prototype.removeProperty = removeProperty;
|
|
});
|
|
function _fun11565(a0, a1, a2) { // fn#11565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:51069, offset: 0x00db2e00, size: 275 bytes, params: 4, frame: 24
|
|
var styleDeclarationCbBinding;
|
|
var object;
|
|
var setPropertyBinding;
|
|
const value2 = undefined;
|
|
const value3 = env2_6(a2, 3);
|
|
const property = value3[0];
|
|
const property2 = value3[1];
|
|
const property3 = value3[2];
|
|
const ignoreCSSAttributesBinding = ignoreCSSAttributes;
|
|
if (ignoreCSSAttributesBinding.has(property)) {
|
|
setPropertyBinding = setProperty;
|
|
return setPropertyBinding.apply(a1, [property, property2, property3]);
|
|
}
|
|
const getIdAndStyleIdBinding = getIdAndStyleId;
|
|
const parentRule = a1.parentRule;
|
|
const {id, styleId} = getIdAndStyleIdBinding(parentRule == null ? value2 : parentRule.parentStyleSheet, mirror,
|
|
stylesheetManager.styleMirror);
|
|
let r1 = id && id !== -1;
|
|
r1 = !r1 ? styleId && styleId !== -1 : r1;
|
|
if (r1) {
|
|
styleDeclarationCbBinding = styleDeclarationCb;
|
|
object = {id: id, styleId: styleId};
|
|
object.set = {property: property, value: property2, priority: property3};
|
|
object.index = getNestedCSSRulePositions(a1.parentRule);
|
|
styleDeclarationCbBinding(object);
|
|
}
|
|
return a0.apply(a1, a2);
|
|
}
|
|
|
|
function _fun11566(a0, a1, a2) { // fn#11566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:51546, offset: 0x00db2f13, size: 245 bytes, params: 4, frame: 22
|
|
var styleDeclarationCbBinding;
|
|
var object;
|
|
var removePropertyBinding;
|
|
const value2 = undefined;
|
|
const property = env2_6(a2, 1)[0];
|
|
const ignoreCSSAttributesBinding = ignoreCSSAttributes;
|
|
if (ignoreCSSAttributesBinding.has(property)) {
|
|
removePropertyBinding = removeProperty;
|
|
return removePropertyBinding.apply(a1, [property]);
|
|
}
|
|
const getIdAndStyleIdBinding = getIdAndStyleId;
|
|
const parentRule = a1.parentRule;
|
|
const {id, styleId} = getIdAndStyleIdBinding(parentRule == null ? value2 : parentRule.parentStyleSheet, mirror,
|
|
stylesheetManager.styleMirror);
|
|
let r1 = id && id !== -1;
|
|
r1 = !r1 ? styleId && styleId !== -1 : r1;
|
|
if (r1) {
|
|
styleDeclarationCbBinding = styleDeclarationCb;
|
|
object = {id: id, styleId: styleId};
|
|
object.remove = {property: property};
|
|
object.index = getNestedCSSRulePositions(a1.parentRule);
|
|
styleDeclarationCbBinding(object);
|
|
}
|
|
return a0.apply(a1, a2);
|
|
}
|
|
|
|
}
|
|
|
|
function initFontObserver({fontCb, doc}) { // fn#11568, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:51999, owner: initObservers.initFontObserver, offset: 0x00db303d, size: 174 bytes, params: 2, frame: 18
|
|
var environment;
|
|
var items2;
|
|
var weakMap;
|
|
var value2;
|
|
const defaultView = doc.defaultView;
|
|
if (defaultView) {
|
|
items2 = [];
|
|
weakMap = new global.WeakMap();
|
|
defaultView.FontFace = defaultView.FontFace;
|
|
weakMap = environment.__proto__;
|
|
value2 = patch_11472(doc.fonts, 'add', function(a0) {
|
|
var env0_0 = a0;
|
|
return _fun11572;
|
|
});
|
|
items2.push(_fun11574);
|
|
items2.push(value2);
|
|
return callbackWrapper(_fun11575);
|
|
}
|
|
return function() {
|
|
};
|
|
function FontFace(a0, a1, a2) { // fn#11570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:52140, owner: initObservers.initFontObserver.FontFace, offset: 0x00db30eb, size: 168 bytes, params: 4, frame: 22
|
|
var r4;
|
|
var JSON;
|
|
var stringify;
|
|
var Array;
|
|
var from;
|
|
var uint8Array;
|
|
const value = a1;
|
|
const fontFace = new FontFace(a0, value, a2);
|
|
const binding = env0_3;
|
|
const set = binding.set;
|
|
const object = {family: a0};
|
|
const value5 = typeof value;
|
|
object.buffer = value5 !== 'string';
|
|
object.descriptors = a2;
|
|
if (value5 === 'string') {
|
|
r4 = value;
|
|
} else {
|
|
JSON = global.JSON;
|
|
stringify = JSON.stringify;
|
|
Array = global.Array;
|
|
from = Array.from;
|
|
uint8Array = new global.Uint8Array(value);
|
|
uint8Array = Reflect.apply(stringify, JSON, [Reflect.apply(from, Array, [uint8Array])]);
|
|
r4 = uint8Array;
|
|
}
|
|
object.fontSource = r4;
|
|
Reflect.apply(set, binding, [fontFace, object]);
|
|
return fontFace;
|
|
}
|
|
|
|
function _fun11571(a0) { // fn#11571, offset: 0x00db3193, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun11572;
|
|
function _fun11572(a0) { // fn#11572, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:52379, offset: 0x00db31a3, size: 70 bytes, params: 2, frame: 14
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
setTimeout$1(callbackWrapper(_fun11573), 0);
|
|
return env0_0.apply(this, [a0]);
|
|
function _fun11573() { // fn#11573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:52415, offset: 0x00db31e9, size: 60 bytes, params: 1, frame: 13
|
|
const value3 = env2_3.get(env0_0);
|
|
if (value3) {
|
|
fontCb(value3);
|
|
env2_3.delete(env0_0);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11574() { // fn#11574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:52506, offset: 0x00db3225, size: 21 bytes, params: 1, frame: 2
|
|
defaultView.FontFace = FontFace;
|
|
}
|
|
|
|
function _fun11575() { // fn#11575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:52547, offset: 0x00db323a, size: 28 bytes, params: 1, frame: 11
|
|
env0_2.forEach(function(a0) {
|
|
return a0();
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
function initSelectionObserver({doc, mirror, blockClass, blockSelector, unblockSelector, selectionCb}) { // fn#11577, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:52610, owner: initObservers.initSelectionObserver, offset: 0x00db3256, size: 112 bytes, params: 2, frame: 13
|
|
const value2 = callbackWrapper(_fun11578);
|
|
value2();
|
|
return on_11462('selectionchange', value2);
|
|
function _fun11578() { // fn#11578, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:52747, offset: 0x00db32c6, size: 283 bytes, params: 1, frame: 30
|
|
var isCollapsed;
|
|
var rangeCount;
|
|
var r5;
|
|
var r9;
|
|
var value3;
|
|
var items2;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var getRangeAt;
|
|
var value7;
|
|
var startContainer;
|
|
var startOffset;
|
|
var endContainer;
|
|
var endOffset;
|
|
var isBlocked2;
|
|
var isBlocked3;
|
|
var push;
|
|
var object;
|
|
var mirrorBinding;
|
|
var getId;
|
|
var value8;
|
|
const selection = doc.getSelection();
|
|
reducibleJoin15: while (true) {
|
|
if (selection) {
|
|
if (isCollapsed2) {
|
|
if (selection != null) {
|
|
if (selection.isCollapsed) {
|
|
break reducibleJoin15;
|
|
}
|
|
}
|
|
}
|
|
isCollapsed = selection.isCollapsed;
|
|
reducibleJoin6: while (true) {
|
|
if (isCollapsed) {
|
|
break reducibleJoin6;
|
|
}
|
|
value3 = false;
|
|
isCollapsed = value3;
|
|
break reducibleJoin6;
|
|
}
|
|
isCollapsed2 = isCollapsed;
|
|
items2 = [];
|
|
rangeCount = selection.rangeCount;
|
|
reducibleJoin8: while (true) {
|
|
if (rangeCount) {
|
|
break reducibleJoin8;
|
|
}
|
|
value4 = 0;
|
|
rangeCount = value4;
|
|
break reducibleJoin8;
|
|
}
|
|
value5 = 0;
|
|
value6 = environment.__proto__.__proto__;
|
|
if (value5 < rangeCount) {
|
|
r5 = value5;
|
|
reducibleLoop9: while (true) {
|
|
getRangeAt = selection.getRangeAt;
|
|
value7 = Reflect.apply(getRangeAt, selection, [r5]);
|
|
startContainer = value7.startContainer;
|
|
startOffset = value7.startOffset;
|
|
endContainer = value7.endContainer;
|
|
endOffset = value7.endOffset;
|
|
isBlocked2 = isBlocked(startContainer, blockClass, blockSelector, unblockSelector, true);
|
|
reducibleJoin11: while (true) {
|
|
if (isBlocked2) {
|
|
r9 = isBlocked2;
|
|
break reducibleJoin11;
|
|
}
|
|
isBlocked3 = isBlocked(endContainer, blockClass, blockSelector, unblockSelector, true);
|
|
r9 = isBlocked3;
|
|
break reducibleJoin11;
|
|
}
|
|
reducibleJoin13: while (true) {
|
|
if (r9) {
|
|
break reducibleJoin13;
|
|
}
|
|
push = items2.push;
|
|
object = {};
|
|
mirrorBinding = mirror;
|
|
getId = mirrorBinding.getId;
|
|
object.start = Reflect.apply(getId, mirrorBinding, [startContainer]);
|
|
object.startOffset = startOffset;
|
|
getId = mirrorBinding.getId;
|
|
object.end = Reflect.apply(getId, mirrorBinding, [endContainer]);
|
|
object.endOffset = endOffset;
|
|
Reflect.apply(push, items2, [object]);
|
|
break reducibleJoin13;
|
|
}
|
|
value8 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
if (value8 < rangeCount) {
|
|
r5 = value8;
|
|
continue reducibleLoop9;
|
|
}
|
|
break reducibleLoop9;
|
|
}
|
|
}
|
|
selectionCb({ranges: items2});
|
|
break reducibleJoin15;
|
|
}
|
|
break reducibleJoin15;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function initCustomElementObserver({doc, customElementCb}) { // fn#11579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:53143, owner: initObservers.initCustomElementObserver, offset: 0x00db33e1, size: 79 bytes, params: 2, frame: 16
|
|
var environment;
|
|
var r0;
|
|
var value;
|
|
const defaultView = doc.defaultView;
|
|
if (defaultView) {
|
|
if (defaultView.customElements) {
|
|
value = environment.__proto__;
|
|
value = patch_11472(defaultView.customElements, 'define', function(a0) {
|
|
var env0_0 = a0;
|
|
return _fun11581;
|
|
});
|
|
r0 = value;
|
|
} else {
|
|
r0 = _fun11582;
|
|
}
|
|
} else {
|
|
r0 = _fun11582;
|
|
}
|
|
return r0;
|
|
function _fun11580(a0) { // fn#11580, offset: 0x00db3430, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun11581;
|
|
function _fun11581(a0, a1, a2) { // fn#11581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:53308, offset: 0x00db3440, size: 84 bytes, params: 4, frame: 16
|
|
var value;
|
|
var error;
|
|
try {
|
|
value = environment.__proto__;
|
|
customElementCb({define: {name: a0}});
|
|
} catch (error) {
|
|
}
|
|
return env0_0.apply(this, [a0, a1, a2]);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11583() { // fn#11583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:53491, offset: 0x00db3494, size: 166 bytes, params: 1, frame: 12
|
|
let binding = env1_47;
|
|
binding.forEach(function(a0) {
|
|
return a0.reset();
|
|
});
|
|
binding = env0_0;
|
|
if (binding != null) {
|
|
binding.disconnect();
|
|
}
|
|
env0_1();
|
|
env0_2();
|
|
env0_3();
|
|
env0_4();
|
|
env0_5();
|
|
env0_6();
|
|
styleSheetObserver();
|
|
adoptedStyleSheetObserver();
|
|
styleDeclarationObserver();
|
|
fontObserver();
|
|
env0_11();
|
|
env0_12();
|
|
env0_13.forEach(function(a0) {
|
|
return a0();
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
function record() { // fn#11588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:65126, offset: 0x00db35c8, size: 1914 bytes, params: 1, frame: 53
|
|
var environment;
|
|
var r4;
|
|
var r32;
|
|
var r31;
|
|
var r30;
|
|
var r7;
|
|
var r29;
|
|
var r28;
|
|
var r27;
|
|
var r26;
|
|
var r25;
|
|
var r24;
|
|
var r35;
|
|
var r16;
|
|
var r22;
|
|
var r18;
|
|
var r13;
|
|
var recordAfter;
|
|
var r17;
|
|
var r12;
|
|
var r10;
|
|
var r15;
|
|
var r14;
|
|
var r23;
|
|
var r11;
|
|
var r38;
|
|
var object;
|
|
var value;
|
|
var emit;
|
|
var checkoutEveryNms;
|
|
var checkoutEveryNth;
|
|
var blockClass;
|
|
var blockSelector;
|
|
var unblockSelector;
|
|
var ignoreClass;
|
|
var value2;
|
|
var ignoreSelector;
|
|
var maskAllText;
|
|
var value3;
|
|
var maskTextClass;
|
|
var value4;
|
|
var unmaskTextClass;
|
|
var maskTextSelector;
|
|
var unmaskTextSelector;
|
|
var inlineStylesheet;
|
|
var value5;
|
|
var maskAllInputs;
|
|
var maskInputOptions;
|
|
var slimDOMOptions;
|
|
var maskAttributeFn;
|
|
var maskInputFn;
|
|
var maskTextFn;
|
|
var maxCanvasSize;
|
|
var packFn;
|
|
var sampling;
|
|
var dataURLOptions;
|
|
var mousemoveWait;
|
|
var recordDOM;
|
|
var recordCanvas;
|
|
var recordCrossOriginIframes;
|
|
var userTriggeredOnInput;
|
|
var collectFonts;
|
|
var inlineImages;
|
|
var plugins;
|
|
var keepIframeSrcFn;
|
|
var closure;
|
|
var ignoreCSSAttributes;
|
|
var Set;
|
|
var prototype;
|
|
var set;
|
|
var errorHandler;
|
|
var onMutation;
|
|
var getCanvasManager;
|
|
var value6;
|
|
var window;
|
|
var parent;
|
|
var value7;
|
|
var value8;
|
|
var document;
|
|
var error;
|
|
var value9;
|
|
var value10;
|
|
var mousemove;
|
|
var value11;
|
|
var binding;
|
|
var reset;
|
|
var value12;
|
|
var scrollCb2;
|
|
var value13;
|
|
var binding2;
|
|
var value15;
|
|
var __RRWEB_EXCLUDE_IFRAME__;
|
|
var value16;
|
|
var binding3;
|
|
var value18;
|
|
var value19;
|
|
var binding4;
|
|
var value21;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var getMirror;
|
|
var crossOriginIframeMirror;
|
|
var crossOriginIframeStyleMirror;
|
|
var value22;
|
|
var binding5;
|
|
var value24;
|
|
var canvas;
|
|
var binding6;
|
|
var value27;
|
|
var canvasManager;
|
|
var console;
|
|
var warn;
|
|
var value29;
|
|
var binding7;
|
|
var value31;
|
|
var __RRWEB_EXCLUDE_SHADOW_DOM__;
|
|
var value32;
|
|
var binding8;
|
|
var value34;
|
|
var value35;
|
|
var binding9;
|
|
var value37;
|
|
var addLoadListener;
|
|
var readyState;
|
|
var value38;
|
|
var value39;
|
|
var push;
|
|
var on_11462Binding;
|
|
exceptionLanding142: while (true) {
|
|
exceptionLanding88: while (true) {
|
|
reducibleJoin4: while (true) {
|
|
reducibleJoin2: while (true) {
|
|
if (arguments.length > 0) {
|
|
if (arguments[0] !== undefined) {
|
|
value = arguments[0];
|
|
r4 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
r4 = {};
|
|
break reducibleJoin4;
|
|
}
|
|
emit = r4.emit;
|
|
var env0_0 = emit;
|
|
checkoutEveryNms = r4.checkoutEveryNms;
|
|
var env0_1 = checkoutEveryNms;
|
|
checkoutEveryNth = r4.checkoutEveryNth;
|
|
var env0_2 = checkoutEveryNth;
|
|
blockClass = r4.blockClass;
|
|
value = 'rr-block';
|
|
r32 = blockClass === undefined ? value : blockClass;
|
|
var env0_3 = r32;
|
|
blockSelector = r4.blockSelector;
|
|
value = null;
|
|
r31 = blockSelector === undefined ? value : blockSelector;
|
|
var env0_4 = r31;
|
|
unblockSelector = r4.unblockSelector;
|
|
r30 = unblockSelector === undefined ? value : unblockSelector;
|
|
var env0_5 = r30;
|
|
ignoreClass = r4.ignoreClass;
|
|
value2 = 'rr-ignore';
|
|
r7 = ignoreClass === undefined ? value2 : ignoreClass;
|
|
var env0_6 = r7;
|
|
ignoreSelector = r4.ignoreSelector;
|
|
r7 = ignoreSelector === undefined ? value : ignoreSelector;
|
|
var env0_7 = r7;
|
|
maskAllText = r4.maskAllText;
|
|
value3 = maskAllText !== undefined;
|
|
r29 = value3 && maskAllText;
|
|
var env0_8 = r29;
|
|
maskTextClass = r4.maskTextClass;
|
|
value4 = 'rr-mask';
|
|
r28 = maskTextClass === undefined ? value4 : maskTextClass;
|
|
var env0_9 = r28;
|
|
unmaskTextClass = r4.unmaskTextClass;
|
|
r27 = unmaskTextClass === undefined ? value : unmaskTextClass;
|
|
var env0_10 = r27;
|
|
maskTextSelector = r4.maskTextSelector;
|
|
r26 = maskTextSelector === undefined ? value : maskTextSelector;
|
|
var env0_11 = r26;
|
|
unmaskTextSelector = r4.unmaskTextSelector;
|
|
r25 = unmaskTextSelector === undefined ? value : unmaskTextSelector;
|
|
var env0_12 = r25;
|
|
inlineStylesheet = r4.inlineStylesheet;
|
|
value5 = inlineStylesheet === undefined;
|
|
r24 = value5 || inlineStylesheet;
|
|
var env0_13 = r24;
|
|
maskAllInputs = r4.maskAllInputs;
|
|
maskInputOptions = r4.maskInputOptions;
|
|
slimDOMOptions = r4.slimDOMOptions;
|
|
maskAttributeFn = r4.maskAttributeFn;
|
|
var env0_14 = maskAttributeFn;
|
|
maskInputFn = r4.maskInputFn;
|
|
var env0_15 = maskInputFn;
|
|
maskTextFn = r4.maskTextFn;
|
|
var env0_16 = maskTextFn;
|
|
maxCanvasSize = r4.maxCanvasSize;
|
|
r35 = maxCanvasSize === undefined ? value : maxCanvasSize;
|
|
packFn = r4.packFn;
|
|
var env0_17 = packFn;
|
|
sampling = r4.sampling;
|
|
reducibleJoin18: while (true) {
|
|
if (sampling !== undefined) {
|
|
r16 = sampling;
|
|
break reducibleJoin18;
|
|
}
|
|
r16 = {};
|
|
break reducibleJoin18;
|
|
}
|
|
var env0_18 = r16;
|
|
dataURLOptions = r4.dataURLOptions;
|
|
reducibleJoin20: while (true) {
|
|
if (dataURLOptions !== undefined) {
|
|
r22 = dataURLOptions;
|
|
break reducibleJoin20;
|
|
}
|
|
r22 = {};
|
|
break reducibleJoin20;
|
|
}
|
|
var env0_19 = r22;
|
|
mousemoveWait = r4.mousemoveWait;
|
|
recordDOM = r4.recordDOM;
|
|
value = recordDOM === undefined;
|
|
r7 = value || recordDOM;
|
|
var env0_20 = r7;
|
|
recordCanvas = r4.recordCanvas;
|
|
value = recordCanvas !== undefined;
|
|
r18 = value && recordCanvas;
|
|
var env0_21 = r18;
|
|
recordCrossOriginIframes = r4.recordCrossOriginIframes;
|
|
value = recordCrossOriginIframes !== undefined;
|
|
r13 = value && recordCrossOriginIframes;
|
|
recordAfter = r4.recordAfter;
|
|
reducibleJoin27: while (true) {
|
|
if (recordAfter !== undefined) {
|
|
r7 = recordAfter;
|
|
break reducibleJoin27;
|
|
}
|
|
recordAfter = r4.recordAfter;
|
|
value = 'load';
|
|
reducibleJoin26: while (true) {
|
|
if (recordAfter !== 'DOMContentLoaded') {
|
|
recordAfter = value;
|
|
break reducibleJoin26;
|
|
}
|
|
recordAfter = r4.recordAfter;
|
|
break reducibleJoin26;
|
|
}
|
|
r7 = recordAfter;
|
|
break reducibleJoin27;
|
|
}
|
|
var env0_22 = r7;
|
|
userTriggeredOnInput = r4.userTriggeredOnInput;
|
|
value = userTriggeredOnInput !== undefined;
|
|
r7 = value && userTriggeredOnInput;
|
|
var env0_23 = r7;
|
|
collectFonts = r4.collectFonts;
|
|
value = collectFonts !== undefined;
|
|
r7 = value && collectFonts;
|
|
var env0_24 = r7;
|
|
inlineImages = r4.inlineImages;
|
|
value = inlineImages !== undefined;
|
|
r17 = value && inlineImages;
|
|
var env0_25 = r17;
|
|
plugins = r4.plugins;
|
|
var env0_26 = plugins;
|
|
keepIframeSrcFn = r4.keepIframeSrcFn;
|
|
reducibleJoin32: while (true) {
|
|
if (keepIframeSrcFn !== undefined) {
|
|
r12 = keepIframeSrcFn;
|
|
break reducibleJoin32;
|
|
}
|
|
closure = function() {
|
|
return false;
|
|
};
|
|
r12 = closure;
|
|
break reducibleJoin32;
|
|
}
|
|
var env0_27 = r12;
|
|
ignoreCSSAttributes = r4.ignoreCSSAttributes;
|
|
reducibleJoin34: while (true) {
|
|
if (ignoreCSSAttributes !== undefined) {
|
|
r10 = ignoreCSSAttributes;
|
|
break reducibleJoin34;
|
|
}
|
|
Set = global.Set;
|
|
prototype = Set.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Set}});
|
|
set = new Set([]);
|
|
value = set instanceof Object ? set : value;
|
|
r10 = value;
|
|
break reducibleJoin34;
|
|
}
|
|
var env0_28 = r10;
|
|
errorHandler = r4.errorHandler;
|
|
onMutation = r4.onMutation;
|
|
var env0_29 = onMutation;
|
|
getCanvasManager = r4.getCanvasManager;
|
|
value = environment;
|
|
env0_42 = errorHandler;
|
|
value6 = !r13;
|
|
reducibleJoin36: while (true) {
|
|
if (r13) {
|
|
window = global.window;
|
|
parent = window.parent;
|
|
window = global.window;
|
|
value7 = parent === window;
|
|
r15 = value7;
|
|
break reducibleJoin36;
|
|
}
|
|
r15 = value6;
|
|
break reducibleJoin36;
|
|
}
|
|
reducibleJoin99: while (true) {
|
|
reduciblePort101: while (true) {
|
|
exceptionLanding100: while (true) {
|
|
reducibleJoin46: while (true) {
|
|
reduciblePort45: while (true) {
|
|
exceptionLanding44: while (true) {
|
|
var env0_30 = r15;
|
|
value8 = false;
|
|
var env0_31 = value8;
|
|
if (r15) {
|
|
r14 = value8;
|
|
break reduciblePort45;
|
|
}
|
|
try {
|
|
window = global.window;
|
|
} catch (error) {
|
|
break exceptionLanding44;
|
|
}
|
|
try {
|
|
parent = window.parent;
|
|
} catch (error) {
|
|
break exceptionLanding44;
|
|
}
|
|
try {
|
|
document = parent.document;
|
|
} catch (error) {
|
|
break exceptionLanding44;
|
|
}
|
|
if (document) {
|
|
try {
|
|
env0_31 = value8;
|
|
} catch (error) {
|
|
break exceptionLanding44;
|
|
}
|
|
r14 = value8;
|
|
break reduciblePort45;
|
|
}
|
|
r14 = value8;
|
|
break reduciblePort45;
|
|
}
|
|
value9 = true;
|
|
env0_31 = value9;
|
|
r14 = value9;
|
|
break reduciblePort45;
|
|
}
|
|
if (r15) {
|
|
break reducibleJoin46;
|
|
}
|
|
if (!r15) {
|
|
reducibleJoin51: while (true) {
|
|
if (!r14) {
|
|
return _fun11590;
|
|
}
|
|
break reducibleJoin51;
|
|
}
|
|
}
|
|
value10 = mousemoveWait !== undefined;
|
|
reducibleJoin53: while (true) {
|
|
if (value10) {
|
|
mousemove = r16.mousemove;
|
|
value11 = mousemove === undefined;
|
|
r14 = value11;
|
|
break reducibleJoin53;
|
|
}
|
|
r14 = value10;
|
|
break reducibleJoin53;
|
|
}
|
|
reducibleJoin55: while (true) {
|
|
if (r14) {
|
|
r16.mousemove = mousemoveWait;
|
|
break reducibleJoin55;
|
|
}
|
|
break reducibleJoin55;
|
|
}
|
|
binding = env0_60;
|
|
reset = binding.reset;
|
|
Reflect.apply(reset, binding, []);
|
|
if (maskAllInputs === true) {
|
|
r23 = {'color': true, 'date': true, 'datetime-local': true, 'email': true,
|
|
'month': true,
|
|
'number': true,
|
|
'range': true, 'search': true, 'tel': true, 'text': true, 'time': true, 'url': true,
|
|
'week': true,
|
|
'textarea': true, 'select': true, 'radio': true, 'checkbox': true};
|
|
} else {
|
|
reducibleJoin58: while (true) {
|
|
if (maskInputOptions !== undefined) {
|
|
r23 = maskInputOptions;
|
|
break reducibleJoin58;
|
|
}
|
|
r23 = {};
|
|
break reducibleJoin58;
|
|
}
|
|
}
|
|
var env0_33 = r23;
|
|
reducibleJoin66: while (true) {
|
|
reducibleJoin65: while (true) {
|
|
if (slimDOMOptions === true) {
|
|
break reducibleJoin65;
|
|
}
|
|
if (slimDOMOptions === 'all') {
|
|
break reducibleJoin65;
|
|
}
|
|
reducibleJoin64: while (true) {
|
|
if (slimDOMOptions) {
|
|
r15 = slimDOMOptions;
|
|
break reducibleJoin64;
|
|
}
|
|
r15 = {};
|
|
break reducibleJoin64;
|
|
}
|
|
break reducibleJoin66;
|
|
}
|
|
value12 = slimDOMOptions === 'all';
|
|
r15 = {'script': true, 'comment': true, 'headFavicon': true, 'headWhitespace': true,
|
|
'headMetaSocial': true,
|
|
'headMetaRobots': true, 'headMetaHttpEquiv': true, 'headMetaVerification': true,
|
|
headMetaAuthorship: value12,
|
|
headMetaDescKeywords: value12};
|
|
break reducibleJoin66;
|
|
}
|
|
var env0_34 = r15;
|
|
polyfill$1();
|
|
var env0_35 = 0;
|
|
var eventProcessorBinding = eventProcessor;
|
|
wrappedEmit = wrappedEmit;
|
|
closure = mutationCb;
|
|
var mutationCb = closure;
|
|
scrollCb2 = scrollCb;
|
|
var scrollCb = scrollCb2;
|
|
var wrappedCanvasMutationEmitBinding = wrappedCanvasMutationEmit;
|
|
binding = env0_58;
|
|
object = {mutationCb: closure, adoptedStyleSheetCb: adoptedStyleSheetCb};
|
|
prototype = binding.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: binding}});
|
|
binding2 = new binding();
|
|
value15 = binding2 instanceof Object ? binding2 : value13;
|
|
var env0_40 = value15;
|
|
__RRWEB_EXCLUDE_IFRAME__ = global.__RRWEB_EXCLUDE_IFRAME__;
|
|
reducibleJoin70: while (true) {
|
|
reducibleJoin68: while (true) {
|
|
if (typeof __RRWEB_EXCLUDE_IFRAME__ !== 'boolean') {
|
|
break reducibleJoin68;
|
|
}
|
|
__RRWEB_EXCLUDE_IFRAME__ = global.__RRWEB_EXCLUDE_IFRAME__;
|
|
if (__RRWEB_EXCLUDE_IFRAME__) {
|
|
binding = env0_51;
|
|
prototype = binding.prototype;
|
|
value19 = Object.create(prototype, {constructor: {value: binding}});
|
|
binding4 = new binding();
|
|
value21 = binding4 instanceof Object ? binding4 : value19;
|
|
r11 = value21;
|
|
break reducibleJoin70;
|
|
}
|
|
break reducibleJoin68;
|
|
}
|
|
binding = env0_52;
|
|
object = {mirror: env0_60, mutationCb: closure, stylesheetManager: value15,
|
|
recordCrossOriginIframes: r13,
|
|
wrappedEmit: env0_55};
|
|
prototype = binding.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: binding}});
|
|
binding3 = new binding();
|
|
value18 = binding3 instanceof Object ? binding3 : value16;
|
|
r11 = value18;
|
|
break reducibleJoin70;
|
|
}
|
|
var env0_41 = r11;
|
|
reducibleJoin72: while (true) {
|
|
if (plugins) {
|
|
r38 = plugins;
|
|
break reducibleJoin72;
|
|
}
|
|
r38 = [];
|
|
break reducibleJoin72;
|
|
}
|
|
iterator = r38[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
r13 = iterator;
|
|
reducibleLoop73: while (true) {
|
|
item2 = Reflect.apply(iterator2, r13, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r13;
|
|
if (item2 === undefined) {
|
|
break reducibleLoop73;
|
|
}
|
|
try {
|
|
getMirror = item.getMirror;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
if (getMirror) {
|
|
try {
|
|
getMirror = item.getMirror;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
binding = env0_60;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
object.nodeMirror = binding;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
crossOriginIframeMirror = r11.crossOriginIframeMirror;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
object.crossOriginIframeMirror = crossOriginIframeMirror;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
crossOriginIframeStyleMirror = r11.crossOriginIframeStyleMirror;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
object.crossOriginIframeStyleMirror = crossOriginIframeStyleMirror;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
Reflect.apply(getMirror, item, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
r13 = item2;
|
|
continue reducibleLoop73;
|
|
}
|
|
r13 = item2;
|
|
continue reducibleLoop73;
|
|
}
|
|
binding = env0_59;
|
|
prototype = binding.prototype;
|
|
value22 = Object.create(prototype, {constructor: {value: binding}});
|
|
binding5 = new binding();
|
|
value24 = binding5 instanceof Object ? binding5 : value22;
|
|
var env0_42 = value24;
|
|
object = {mirror: env0_60};
|
|
window = global.window;
|
|
object.win = window;
|
|
object.mutationCb = mutationCb_11600;
|
|
object.recordCanvas = r18;
|
|
object.blockClass = r32;
|
|
object.blockSelector = r31;
|
|
object.unblockSelector = r30;
|
|
object.maxCanvasSize = r35;
|
|
canvas = r16.canvas;
|
|
object.sampling = canvas;
|
|
object.dataURLOptions = r22;
|
|
object.errorHandler = errorHandler;
|
|
if (getCanvasManager) {
|
|
try {
|
|
canvasManager = getCanvasManager(object);
|
|
} catch (error) {
|
|
break exceptionLanding100;
|
|
}
|
|
r13 = canvasManager;
|
|
break reducibleJoin99;
|
|
}
|
|
try {
|
|
binding = env0_57;
|
|
} catch (error) {
|
|
break exceptionLanding100;
|
|
}
|
|
try {
|
|
prototype = binding.prototype;
|
|
} catch (error) {
|
|
break exceptionLanding100;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding100;
|
|
}
|
|
try {
|
|
binding6 = new binding();
|
|
} catch (error) {
|
|
break exceptionLanding100;
|
|
}
|
|
try {
|
|
value27 = binding6 instanceof Object ? binding6 : undefined;
|
|
} catch (error) {
|
|
break exceptionLanding100;
|
|
}
|
|
r13 = value27;
|
|
break reducibleJoin99;
|
|
}
|
|
if (!emit) {
|
|
throw new global.Error('emit function is required');
|
|
}
|
|
if (!r15) {
|
|
reducibleJoin51: while (true) {
|
|
if (!r14) {
|
|
return _fun11590;
|
|
}
|
|
break reducibleJoin51;
|
|
}
|
|
}
|
|
value10 = mousemoveWait !== undefined;
|
|
reducibleJoin53: while (true) {
|
|
if (value10) {
|
|
mousemove = r16.mousemove;
|
|
value11 = mousemove === undefined;
|
|
r14 = value11;
|
|
break reducibleJoin53;
|
|
}
|
|
r14 = value10;
|
|
break reducibleJoin53;
|
|
}
|
|
reducibleJoin55: while (true) {
|
|
if (r14) {
|
|
r16.mousemove = mousemoveWait;
|
|
break reducibleJoin55;
|
|
}
|
|
break reducibleJoin55;
|
|
}
|
|
binding = env0_60;
|
|
reset = binding.reset;
|
|
Reflect.apply(reset, binding, []);
|
|
if (maskAllInputs === true) {
|
|
r23 = {'color': true, 'date': true, 'datetime-local': true, 'email': true, 'month': true,
|
|
'number': true,
|
|
'range': true, 'search': true, 'tel': true, 'text': true, 'time': true, 'url': true,
|
|
'week': true,
|
|
'textarea': true, 'select': true, 'radio': true, 'checkbox': true};
|
|
} else {
|
|
reducibleJoin58: while (true) {
|
|
if (maskInputOptions !== undefined) {
|
|
r23 = maskInputOptions;
|
|
break reducibleJoin58;
|
|
}
|
|
r23 = {};
|
|
break reducibleJoin58;
|
|
}
|
|
}
|
|
var env0_33 = r23;
|
|
reducibleJoin66: while (true) {
|
|
reducibleJoin65: while (true) {
|
|
if (slimDOMOptions === true) {
|
|
break reducibleJoin65;
|
|
}
|
|
if (slimDOMOptions === 'all') {
|
|
break reducibleJoin65;
|
|
}
|
|
reducibleJoin64: while (true) {
|
|
if (slimDOMOptions) {
|
|
r15 = slimDOMOptions;
|
|
break reducibleJoin64;
|
|
}
|
|
r15 = {};
|
|
break reducibleJoin64;
|
|
}
|
|
break reducibleJoin66;
|
|
}
|
|
value12 = slimDOMOptions === 'all';
|
|
r15 = {'script': true, 'comment': true, 'headFavicon': true, 'headWhitespace': true,
|
|
'headMetaSocial': true,
|
|
'headMetaRobots': true, 'headMetaHttpEquiv': true, 'headMetaVerification': true,
|
|
headMetaAuthorship: value12,
|
|
headMetaDescKeywords: value12};
|
|
break reducibleJoin66;
|
|
}
|
|
var env0_34 = r15;
|
|
polyfill$1();
|
|
var env0_35 = 0;
|
|
var eventProcessorBinding = eventProcessor;
|
|
wrappedEmit = wrappedEmit;
|
|
closure = mutationCb;
|
|
var mutationCb = closure;
|
|
scrollCb2 = scrollCb;
|
|
var scrollCb = scrollCb2;
|
|
var wrappedCanvasMutationEmitBinding = wrappedCanvasMutationEmit;
|
|
binding = env0_58;
|
|
object = {mutationCb: closure, adoptedStyleSheetCb: adoptedStyleSheetCb};
|
|
prototype = binding.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: binding}});
|
|
binding2 = new binding();
|
|
value15 = binding2 instanceof Object ? binding2 : value13;
|
|
var env0_40 = value15;
|
|
__RRWEB_EXCLUDE_IFRAME__ = global.__RRWEB_EXCLUDE_IFRAME__;
|
|
reducibleJoin70: while (true) {
|
|
reducibleJoin68: while (true) {
|
|
if (typeof __RRWEB_EXCLUDE_IFRAME__ !== 'boolean') {
|
|
break reducibleJoin68;
|
|
}
|
|
__RRWEB_EXCLUDE_IFRAME__ = global.__RRWEB_EXCLUDE_IFRAME__;
|
|
if (__RRWEB_EXCLUDE_IFRAME__) {
|
|
binding = env0_51;
|
|
prototype = binding.prototype;
|
|
value19 = Object.create(prototype, {constructor: {value: binding}});
|
|
binding4 = new binding();
|
|
value21 = binding4 instanceof Object ? binding4 : value19;
|
|
r11 = value21;
|
|
break reducibleJoin70;
|
|
}
|
|
break reducibleJoin68;
|
|
}
|
|
binding = env0_52;
|
|
object = {mirror: env0_60, mutationCb: closure, stylesheetManager: value15,
|
|
recordCrossOriginIframes: r13,
|
|
wrappedEmit: env0_55};
|
|
prototype = binding.prototype;
|
|
value16 = Object.create(prototype, {constructor: {value: binding}});
|
|
binding3 = new binding();
|
|
value18 = binding3 instanceof Object ? binding3 : value16;
|
|
r11 = value18;
|
|
break reducibleJoin70;
|
|
}
|
|
var env0_41 = r11;
|
|
reducibleJoin72: while (true) {
|
|
if (plugins) {
|
|
r38 = plugins;
|
|
break reducibleJoin72;
|
|
}
|
|
r38 = [];
|
|
break reducibleJoin72;
|
|
}
|
|
iterator = r38[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
r13 = iterator;
|
|
reducibleLoop73: while (true) {
|
|
item2 = Reflect.apply(iterator2, r13, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r13;
|
|
if (item2 === undefined) {
|
|
break reducibleLoop73;
|
|
}
|
|
try {
|
|
getMirror = item.getMirror;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
if (getMirror) {
|
|
try {
|
|
getMirror = item.getMirror;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
binding = env0_60;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
object.nodeMirror = binding;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
crossOriginIframeMirror = r11.crossOriginIframeMirror;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
object.crossOriginIframeMirror = crossOriginIframeMirror;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
crossOriginIframeStyleMirror = r11.crossOriginIframeStyleMirror;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
object.crossOriginIframeStyleMirror = crossOriginIframeStyleMirror;
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
try {
|
|
Reflect.apply(getMirror, item, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding88;
|
|
}
|
|
r13 = item2;
|
|
continue reducibleLoop73;
|
|
}
|
|
r13 = item2;
|
|
continue reducibleLoop73;
|
|
}
|
|
binding = env0_59;
|
|
prototype = binding.prototype;
|
|
value22 = Object.create(prototype, {constructor: {value: binding}});
|
|
binding5 = new binding();
|
|
value24 = binding5 instanceof Object ? binding5 : value22;
|
|
var env0_42 = value24;
|
|
object = {mirror: env0_60};
|
|
window = global.window;
|
|
object.win = window;
|
|
object.mutationCb = mutationCb_11600;
|
|
object.recordCanvas = r18;
|
|
object.blockClass = r32;
|
|
object.blockSelector = r31;
|
|
object.unblockSelector = r30;
|
|
object.maxCanvasSize = r35;
|
|
canvas = r16.canvas;
|
|
object.sampling = canvas;
|
|
object.dataURLOptions = r22;
|
|
object.errorHandler = errorHandler;
|
|
if (getCanvasManager) {
|
|
try {
|
|
canvasManager = getCanvasManager(object);
|
|
} catch (error) {
|
|
break exceptionLanding100;
|
|
}
|
|
r13 = canvasManager;
|
|
break reducibleJoin99;
|
|
}
|
|
try {
|
|
binding = env0_57;
|
|
} catch (error) {
|
|
break exceptionLanding100;
|
|
}
|
|
try {
|
|
prototype = binding.prototype;
|
|
} catch (error) {
|
|
break exceptionLanding100;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding100;
|
|
}
|
|
try {
|
|
binding6 = new binding();
|
|
} catch (error) {
|
|
break exceptionLanding100;
|
|
}
|
|
try {
|
|
value27 = binding6 instanceof Object ? binding6 : undefined;
|
|
} catch (error) {
|
|
break exceptionLanding100;
|
|
}
|
|
r13 = value27;
|
|
break reducibleJoin99;
|
|
}
|
|
console = global.console;
|
|
warn = console.warn;
|
|
Reflect.apply(warn, console, ['Unable to initialize CanvasManager']);
|
|
binding = env0_57;
|
|
prototype = binding.prototype;
|
|
value29 = Object.create(prototype, {constructor: {value: binding}});
|
|
binding7 = new binding();
|
|
value31 = binding7 instanceof Object ? binding7 : value29;
|
|
r13 = value31;
|
|
break reduciblePort101;
|
|
}
|
|
var env0_43 = r13;
|
|
__RRWEB_EXCLUDE_SHADOW_DOM__ = global.__RRWEB_EXCLUDE_SHADOW_DOM__;
|
|
reducibleJoin105: while (true) {
|
|
reducibleJoin103: while (true) {
|
|
if (typeof __RRWEB_EXCLUDE_SHADOW_DOM__ !== 'boolean') {
|
|
break reducibleJoin103;
|
|
}
|
|
__RRWEB_EXCLUDE_SHADOW_DOM__ = global.__RRWEB_EXCLUDE_SHADOW_DOM__;
|
|
if (__RRWEB_EXCLUDE_SHADOW_DOM__) {
|
|
binding = env0_53;
|
|
prototype = binding.prototype;
|
|
value35 = Object.create(prototype, {constructor: {value: binding}});
|
|
binding9 = new binding();
|
|
value37 = binding9 instanceof Object ? binding9 : value35;
|
|
r7 = value37;
|
|
break reducibleJoin105;
|
|
}
|
|
break reducibleJoin103;
|
|
}
|
|
binding = env0_54;
|
|
object = {mutationCb: closure, scrollCb: scrollCb2};
|
|
object.bypassOptions = {onMutation: onMutation, blockClass: r32, blockSelector: r31,
|
|
unblockSelector: r30,
|
|
maskAllText: r29, maskTextClass: r28, unmaskTextClass: r27, maskTextSelector: r26,
|
|
unmaskTextSelector: r25,
|
|
inlineStylesheet: r24, maskInputOptions: r23, dataURLOptions: r22,
|
|
maskAttributeFn: maskAttributeFn,
|
|
maskTextFn: maskTextFn, maskInputFn: maskInputFn, recordCanvas: r18, inlineImages: r17,
|
|
sampling: r16,
|
|
slimDOMOptions: r15, iframeManager: r11, stylesheetManager: value15, canvasManager: r13,
|
|
keepIframeSrcFn: r12,
|
|
processedNodeManager: value24, ignoreCSSAttributes: r10};
|
|
object.mirror = env0_60;
|
|
prototype = binding.prototype;
|
|
value32 = Object.create(prototype, {constructor: {value: binding}});
|
|
binding8 = new binding();
|
|
value34 = binding8 instanceof Object ? binding8 : value32;
|
|
r7 = value34;
|
|
break reducibleJoin105;
|
|
}
|
|
var env0_44 = r7;
|
|
closure = takeFullSnapshot2;
|
|
var takeFullSnapshot2 = closure;
|
|
takeFullSnapshot2_2 = closure;
|
|
try {
|
|
object = [];
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
var env0_46 = object;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
closure = recordObserve;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
var recordObserve = closure;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
addLoadListener = r11.addLoadListener;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
closure = _fun11624;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
Reflect.apply(addLoadListener, r11, [closure]);
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
closure = recordInit;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
var recordInit = closure;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
document = global.document;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
readyState = document.readyState;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
value38 = readyState === 'interactive';
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
reducibleJoin141: while (true) {
|
|
reducibleJoin140: while (true) {
|
|
if (value38) {
|
|
break reducibleJoin140;
|
|
}
|
|
try {
|
|
document = global.document;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
readyState = document.readyState;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
value39 = readyState === 'complete';
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
if (value39) {
|
|
break reducibleJoin140;
|
|
}
|
|
try {
|
|
push = object.push;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
on_11462Binding = on_11462;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
closure = _fun11626;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
value = on_11462Binding('DOMContentLoaded', closure);
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
Reflect.apply(push, object, [value]);
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
push = object.push;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
window = global.window;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
closure = _fun11627;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
value = on_11462Binding('load', closure, window);
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
Reflect.apply(push, object, [value]);
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
break reducibleJoin141;
|
|
}
|
|
try {
|
|
closure();
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
break reducibleJoin141;
|
|
}
|
|
return _fun11628;
|
|
}
|
|
var env0_43 = r13;
|
|
__RRWEB_EXCLUDE_SHADOW_DOM__ = global.__RRWEB_EXCLUDE_SHADOW_DOM__;
|
|
reducibleJoin105: while (true) {
|
|
reducibleJoin103: while (true) {
|
|
if (typeof __RRWEB_EXCLUDE_SHADOW_DOM__ !== 'boolean') {
|
|
break reducibleJoin103;
|
|
}
|
|
__RRWEB_EXCLUDE_SHADOW_DOM__ = global.__RRWEB_EXCLUDE_SHADOW_DOM__;
|
|
if (__RRWEB_EXCLUDE_SHADOW_DOM__) {
|
|
binding = env0_53;
|
|
prototype = binding.prototype;
|
|
value35 = Object.create(prototype, {constructor: {value: binding}});
|
|
binding9 = new binding();
|
|
value37 = binding9 instanceof Object ? binding9 : value35;
|
|
r7 = value37;
|
|
break reducibleJoin105;
|
|
}
|
|
break reducibleJoin103;
|
|
}
|
|
binding = env0_54;
|
|
object = {mutationCb: closure, scrollCb: scrollCb2};
|
|
object.bypassOptions = {onMutation: onMutation, blockClass: r32, blockSelector: r31,
|
|
unblockSelector: r30,
|
|
maskAllText: r29, maskTextClass: r28, unmaskTextClass: r27, maskTextSelector: r26,
|
|
unmaskTextSelector: r25,
|
|
inlineStylesheet: r24, maskInputOptions: r23, dataURLOptions: r22, maskAttributeFn: maskAttributeFn,
|
|
maskTextFn: maskTextFn, maskInputFn: maskInputFn, recordCanvas: r18, inlineImages: r17,
|
|
sampling: r16,
|
|
slimDOMOptions: r15, iframeManager: r11, stylesheetManager: value15, canvasManager: r13,
|
|
keepIframeSrcFn: r12,
|
|
processedNodeManager: value24, ignoreCSSAttributes: r10};
|
|
object.mirror = env0_60;
|
|
prototype = binding.prototype;
|
|
value32 = Object.create(prototype, {constructor: {value: binding}});
|
|
binding8 = new binding();
|
|
value34 = binding8 instanceof Object ? binding8 : value32;
|
|
r7 = value34;
|
|
break reducibleJoin105;
|
|
}
|
|
var env0_44 = r7;
|
|
closure = takeFullSnapshot2;
|
|
var takeFullSnapshot2 = closure;
|
|
takeFullSnapshot2_2 = closure;
|
|
try {
|
|
object = [];
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
var env0_46 = object;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
closure = recordObserve;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
var recordObserve = closure;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
addLoadListener = r11.addLoadListener;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
closure = _fun11624;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
Reflect.apply(addLoadListener, r11, [closure]);
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
closure = recordInit;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
var recordInit = closure;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
document = global.document;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
readyState = document.readyState;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
value38 = readyState === 'interactive';
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
reducibleJoin141: while (true) {
|
|
reducibleJoin140: while (true) {
|
|
if (value38) {
|
|
break reducibleJoin140;
|
|
}
|
|
try {
|
|
document = global.document;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
readyState = document.readyState;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
value39 = readyState === 'complete';
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
if (value39) {
|
|
break reducibleJoin140;
|
|
}
|
|
try {
|
|
push = object.push;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
on_11462Binding = on_11462;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
closure = _fun11626;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
value = on_11462Binding('DOMContentLoaded', closure);
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
Reflect.apply(push, object, [value]);
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
push = object.push;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
window = global.window;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
closure = _fun11627;
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
value = on_11462Binding('load', closure, window);
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
try {
|
|
Reflect.apply(push, object, [value]);
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
break reducibleJoin141;
|
|
}
|
|
try {
|
|
closure();
|
|
} catch (error) {
|
|
break exceptionLanding142;
|
|
}
|
|
break reducibleJoin141;
|
|
}
|
|
return _fun11628;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
global.console.warn(error);
|
|
function polyfill$1() { // fn#11591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:67152, owner: record.polyfill$1, offset: 0x00db3d42, size: 225 bytes, params: 1, frame: 6
|
|
const r2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.window;
|
|
if ('NodeList' in r2 && !r2.NodeList.prototype.forEach) {
|
|
r2.NodeList.prototype.forEach = global.Array.prototype.forEach;
|
|
}
|
|
if ('DOMTokenList' in r2 && !r2.DOMTokenList.prototype.forEach) {
|
|
r2.DOMTokenList.prototype.forEach = global.Array.prototype.forEach;
|
|
}
|
|
const Node = global.Node;
|
|
if (!Node.prototype.contains) {
|
|
global.Node.prototype.contains = contains;
|
|
}
|
|
function contains() { // fn#11592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:67515, owner: global.Node.prototype.contains, offset: 0x00db3e23, size: 144 bytes, params: 1, frame: 15
|
|
var r1;
|
|
var r2;
|
|
var value5;
|
|
var parentNode;
|
|
const length = arguments.length;
|
|
const Array = global.Array;
|
|
const array = new Array(length);
|
|
const value4 = 0;
|
|
if (value4 < length) {
|
|
r1 = value4;
|
|
reducibleLoop1: while (true) {
|
|
array[r1] = arguments[r1];
|
|
value5 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (value5 < length) {
|
|
r1 = value5;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
}
|
|
const property = array[value4];
|
|
if (!(value4 in array)) {
|
|
throw new global.TypeError('1 argument is required');
|
|
}
|
|
r1 = property;
|
|
reducibleLoop4: while (true) {
|
|
if (env0_0 === r1) {
|
|
return true;
|
|
}
|
|
reducibleJoin7: while (true) {
|
|
if (r1) {
|
|
parentNode = r1.parentNode;
|
|
r2 = parentNode;
|
|
break reducibleJoin7;
|
|
}
|
|
r2 = r1;
|
|
break reducibleJoin7;
|
|
}
|
|
if (!r2) {
|
|
return false;
|
|
}
|
|
r1 = r2;
|
|
continue reducibleLoop4;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function eventProcessor(a0) { // fn#11593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:67740, owner: record.eventProcessor, offset: 0x00db3eb3, size: 107 bytes, params: 2, frame: 17
|
|
var r6;
|
|
var r2;
|
|
var eventProcessor;
|
|
var error;
|
|
var packFnBinding;
|
|
let value = a0;
|
|
const pluginsBinding = plugins;
|
|
reducibleJoin2: while (true) {
|
|
if (pluginsBinding) {
|
|
r6 = pluginsBinding;
|
|
break reducibleJoin2;
|
|
}
|
|
r6 = [];
|
|
break reducibleJoin2;
|
|
}
|
|
const iterator = r6[Symbol.iterator]();
|
|
const iterator2 = iterator.next;
|
|
let r0 = value;
|
|
let r4 = iterator;
|
|
let item2 = Reflect.apply(iterator2, r4, []);
|
|
let item = item2.value;
|
|
item2 = item2.done ? undefined : r4;
|
|
reducibleJoin4: while (true) {
|
|
if (item2 === undefined) {
|
|
packFnBinding = packFn;
|
|
reducibleJoin15: while (true) {
|
|
if (packFnBinding) {
|
|
value = !env0_31;
|
|
r2 = value;
|
|
break reducibleJoin15;
|
|
}
|
|
r2 = packFnBinding;
|
|
break reducibleJoin15;
|
|
}
|
|
reducibleJoin17: while (true) {
|
|
if (r2) {
|
|
value = packFn(r0);
|
|
r0 = value;
|
|
break reducibleJoin17;
|
|
}
|
|
break reducibleJoin17;
|
|
}
|
|
return r0;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
reducibleLoop4: while (true) {
|
|
try {
|
|
eventProcessor = item.eventProcessor;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
reducibleJoin11: while (true) {
|
|
if (eventProcessor) {
|
|
try {
|
|
eventProcessor = item.eventProcessor;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value = Reflect.apply(eventProcessor, item, [r0]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r0 = value;
|
|
break reducibleJoin11;
|
|
}
|
|
break reducibleJoin11;
|
|
}
|
|
r4 = item2;
|
|
item2 = Reflect.apply(iterator2, r4, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r4;
|
|
if (item2 === undefined) {
|
|
break reducibleLoop4;
|
|
}
|
|
continue reducibleLoop4;
|
|
}
|
|
packFnBinding = packFn;
|
|
reducibleJoin15: while (true) {
|
|
if (packFnBinding) {
|
|
value = !env0_31;
|
|
r2 = value;
|
|
break reducibleJoin15;
|
|
}
|
|
r2 = packFnBinding;
|
|
break reducibleJoin15;
|
|
}
|
|
reducibleJoin17: while (true) {
|
|
if (r2) {
|
|
value = packFn(r0);
|
|
r0 = value;
|
|
break reducibleJoin17;
|
|
}
|
|
break reducibleJoin17;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function wrappedEmit(a0, a1) { // fn#11594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:67859, owner: record.wrappedEmit, offset: 0x00db3f1e, size: 471 bytes, params: 3, frame: 20
|
|
var environment;
|
|
var r5;
|
|
var r4;
|
|
var data;
|
|
var binding;
|
|
var object;
|
|
var window;
|
|
let value = environment.__proto__;
|
|
a0.timestamp = env1_34();
|
|
const property = env1_47[0];
|
|
let r1 = property == null || !property.isFrozen();
|
|
r1 = !r1 ? a0.type === env1_37.FullSnapshot : r1;
|
|
r1 = !r1 ? a0.type === env1_37.IncrementalSnapshot && a0.data.source === env1_38.Mutation : r1;
|
|
if (!r1) {
|
|
env1_47.forEach(function(a0) {
|
|
return a0.unfreeze();
|
|
});
|
|
}
|
|
if (env0_30) {
|
|
if (emit != null) {
|
|
emit(eventProcessor(a0), a1);
|
|
}
|
|
} else if (env0_31) {
|
|
object = {type: 'rrweb'};
|
|
object.event = eventProcessor(a0);
|
|
window = global.window;
|
|
object.origin = window.location.origin;
|
|
object.isCheckout = a1;
|
|
window = global.window;
|
|
window.parent.postMessage(object, '*');
|
|
}
|
|
const type = a0.type;
|
|
const FullSnapshot = env1_37.FullSnapshot;
|
|
if (type === FullSnapshot) {
|
|
env0_32 = a0;
|
|
} else {
|
|
if (a0.type !== env1_37.IncrementalSnapshot) {
|
|
return undefined;
|
|
}
|
|
data = a0.data;
|
|
if (data.source !== env1_38.Mutation) {
|
|
binding = env0_35;
|
|
env0_35 = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
|
|
r4 = checkoutEveryNth && env0_35 >= checkoutEveryNth;
|
|
r5 = checkoutEveryNms && env0_32;
|
|
if (r5) {
|
|
value = a0.timestamp - env0_32.timestamp;
|
|
value = value > checkoutEveryNms;
|
|
r5 = value;
|
|
}
|
|
r4 = !r4 ? r5 : r4;
|
|
if (r4) {
|
|
takeFullSnapshot2(true);
|
|
}
|
|
return undefined;
|
|
}
|
|
data = a0.data;
|
|
if (data.isAttachIframe) {
|
|
return undefined;
|
|
}
|
|
binding = env0_35;
|
|
env0_35 = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
|
|
r4 = checkoutEveryNth && env0_35 >= checkoutEveryNth;
|
|
r5 = checkoutEveryNms && env0_32;
|
|
if (r5) {
|
|
value = a0.timestamp - env0_32.timestamp;
|
|
value = value > checkoutEveryNms;
|
|
r5 = value;
|
|
}
|
|
r4 = !r4 ? r5 : r4;
|
|
if (r4) {
|
|
takeFullSnapshot2(true);
|
|
}
|
|
}
|
|
}
|
|
|
|
function recordMutationCb(a0) { // fn#11596, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:68439, owner: record.mutationCb, offset: 0x00db4104, size: 74 bytes, params: 2, frame: 15
|
|
const binding = env1_55;
|
|
const IncrementalSnapshot = env1_37.IncrementalSnapshot;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const Mutation = env1_38.Mutation;
|
|
binding({type: IncrementalSnapshot, data: Reflect.apply(assign, Object, [{source: Mutation}, a0])});
|
|
}
|
|
|
|
function scrollCb(a0) { // fn#11597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:68550, owner: record.scrollCb, offset: 0x00db414e, size: 74 bytes, params: 2, frame: 15
|
|
const binding = env1_55;
|
|
const IncrementalSnapshot = env1_37.IncrementalSnapshot;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const Scroll = env1_38.Scroll;
|
|
return binding({type: IncrementalSnapshot, data: Reflect.apply(assign, Object, [{source: Scroll}, a0])});
|
|
}
|
|
|
|
function wrappedCanvasMutationEmit(a0) { // fn#11598, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:68664, owner: record.wrappedCanvasMutationEmit, offset: 0x00db4198, size: 74 bytes, params: 2, frame: 15
|
|
const binding = env1_55;
|
|
const IncrementalSnapshot = env1_37.IncrementalSnapshot;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const CanvasMutation = env1_38.CanvasMutation;
|
|
return binding({type: IncrementalSnapshot, data: Reflect.apply(assign, Object, [{source: CanvasMutation}, a0])});
|
|
}
|
|
|
|
function adoptedStyleSheetCb(a0) { // fn#11599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:68836, owner: record.adoptedStyleSheetCb, offset: 0x00db41e2, size: 74 bytes, params: 2, frame: 15
|
|
const binding = env1_55;
|
|
const IncrementalSnapshot = env1_37.IncrementalSnapshot;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const AdoptedStyleSheet = env1_38.AdoptedStyleSheet;
|
|
return binding({type: IncrementalSnapshot, data: Reflect.apply(assign, Object, [{source: AdoptedStyleSheet}, a0])});
|
|
}
|
|
|
|
function recordMutationCb_11600(a0) { // fn#11600, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:69510, owner: record.mutationCb, offset: 0x00db4198, size: 74 bytes, params: 2, frame: 15
|
|
const binding = env1_55;
|
|
const IncrementalSnapshot = env1_37.IncrementalSnapshot;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const CanvasMutation = env1_38.CanvasMutation;
|
|
return binding({type: IncrementalSnapshot, data: Reflect.apply(assign, Object, [{source: CanvasMutation}, a0])});
|
|
}
|
|
|
|
function takeFullSnapshot2() { // fn#11601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:70336, owner: record.takeFullSnapshot2, offset: 0x00db422c, size: 607 bytes, params: 1, frame: 20
|
|
var environment;
|
|
var value2;
|
|
var binding;
|
|
var object;
|
|
var object2;
|
|
var document;
|
|
var value3;
|
|
var object3;
|
|
var adoptedStyleSheets;
|
|
var adoptStyleSheets;
|
|
var binding2;
|
|
var getId;
|
|
if (env0_20) {
|
|
value2 = environment.__proto__;
|
|
binding = env1_55;
|
|
object = {};
|
|
object.type = env1_37.Meta;
|
|
object2 = {};
|
|
object2.href = global.window.location.href;
|
|
object2.width = getWindowWidth();
|
|
object2.height = getWindowHeight();
|
|
object.data = object2;
|
|
binding(object, arguments.length > 0 && arguments[0] !== undefined && arguments[0]);
|
|
binding = env0_40;
|
|
binding.reset();
|
|
binding = env0_44;
|
|
binding.init();
|
|
binding = env1_47;
|
|
binding.forEach(function(a0) {
|
|
return a0.lock();
|
|
});
|
|
document = global.document;
|
|
object = {mirror: env1_60, blockClass: env0_3, blockSelector: env0_4, unblockSelector: env0_5,
|
|
maskAllText: env0_8,
|
|
maskTextClass: env0_9, unmaskTextClass: env0_10, maskTextSelector: env0_11, unmaskTextSelector: env0_12,
|
|
inlineStylesheet: env0_13, maskAllInputs: env0_33};
|
|
object.maskAttributeFn = maskAttributeFn;
|
|
object.maskInputFn = maskInputFn;
|
|
object.maskTextFn = maskTextFn;
|
|
object.slimDOM = env0_34;
|
|
object.dataURLOptions = env0_19;
|
|
object.recordCanvas = env0_21;
|
|
object.inlineImages = env0_25;
|
|
object.onSerialize = onSerialize;
|
|
object.onIframeLoad = onIframeLoad;
|
|
object.onStylesheetLoad = onStylesheetLoad;
|
|
object.onBlockedImageLoad = onBlockedImageLoad;
|
|
object.keepIframeSrcFn = env0_27;
|
|
object.ignoreCSSAttributes = env0_28;
|
|
value3 = snapshot(document, object);
|
|
if (value3) {
|
|
binding = env1_55;
|
|
object = {};
|
|
object.type = env1_37.FullSnapshot;
|
|
object3 = {node: value3};
|
|
object3.initialOffset = getWindowScroll(global.window);
|
|
object.data = object3;
|
|
binding(object);
|
|
binding = env1_47;
|
|
binding.forEach(_fun11609);
|
|
document = global.document;
|
|
adoptedStyleSheets = document.adoptedStyleSheets;
|
|
if (adoptedStyleSheets && global.document.adoptedStyleSheets.length > 0) {
|
|
binding = env0_40;
|
|
adoptStyleSheets = binding.adoptStyleSheets;
|
|
document = global.document;
|
|
adoptedStyleSheets = document.adoptedStyleSheets;
|
|
binding2 = env1_60;
|
|
getId = binding2.getId;
|
|
document = global.document;
|
|
Reflect.apply(adoptStyleSheets, binding, [adoptedStyleSheets, Reflect.apply(getId, binding2,
|
|
[document])]);
|
|
}
|
|
return undefined;
|
|
}
|
|
return global.console.warn('Failed to snapshot the document');
|
|
}
|
|
function snapshot(a0, a1) { // fn#11603, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:70604, owner: record.takeFullSnapshot2.snapshot, offset: 0x00db449a, size: 627 bytes, params: 3, frame: 41
|
|
var environment;
|
|
const r0 = a1 || ({});
|
|
const mirror = r0.mirror;
|
|
const r30 = mirror !== undefined ? mirror : new env2_19();
|
|
const blockClass = r0.blockClass;
|
|
const r29 = blockClass === undefined ? 'rr-block' : blockClass;
|
|
const blockSelector = r0.blockSelector;
|
|
value = null;
|
|
const r28 = blockSelector === undefined ? value : blockSelector;
|
|
const unblockSelector = r0.unblockSelector;
|
|
const r27 = unblockSelector === undefined ? value : unblockSelector;
|
|
const maskAllText = r0.maskAllText;
|
|
const r26 = maskAllText !== undefined && maskAllText;
|
|
const maskTextClass = r0.maskTextClass;
|
|
const r25 = maskTextClass === undefined ? 'rr-mask' : maskTextClass;
|
|
const unmaskTextClass = r0.unmaskTextClass;
|
|
const r24 = unmaskTextClass === undefined ? value : unmaskTextClass;
|
|
const maskTextSelector = r0.maskTextSelector;
|
|
const r23 = maskTextSelector === undefined ? value : maskTextSelector;
|
|
const unmaskTextSelector = r0.unmaskTextSelector;
|
|
const r5 = unmaskTextSelector === undefined ? value : unmaskTextSelector;
|
|
const inlineStylesheet = r0.inlineStylesheet;
|
|
const r17 = inlineStylesheet === undefined || inlineStylesheet;
|
|
const inlineImages = r0.inlineImages;
|
|
const r15 = inlineImages !== undefined && inlineImages;
|
|
const recordCanvas = r0.recordCanvas;
|
|
const r14 = recordCanvas !== undefined && recordCanvas;
|
|
const maskAllInputs = r0.maskAllInputs;
|
|
let r22 = maskAllInputs !== undefined && maskAllInputs;
|
|
const maskAttributeFn = r0.maskAttributeFn;
|
|
const maskTextFn = r0.maskTextFn;
|
|
const maskInputFn = r0.maskInputFn;
|
|
const slimDOM = r0.slimDOM;
|
|
const r20 = slimDOM !== undefined && slimDOM;
|
|
const dataURLOptions = r0.dataURLOptions;
|
|
const preserveWhiteSpace = r0.preserveWhiteSpace;
|
|
const onSerialize = r0.onSerialize;
|
|
const onIframeLoad = r0.onIframeLoad;
|
|
const iframeLoadTimeout = r0.iframeLoadTimeout;
|
|
const onBlockedImageLoad = r0.onBlockedImageLoad;
|
|
const onStylesheetLoad = r0.onStylesheetLoad;
|
|
const stylesheetLoadTimeout = r0.stylesheetLoadTimeout;
|
|
const keepIframeSrcFn = r0.keepIframeSrcFn;
|
|
const r6 = keepIframeSrcFn !== undefined ? keepIframeSrcFn : function() {
|
|
return false;
|
|
};
|
|
const ignoreCSSAttributes = r0.ignoreCSSAttributes;
|
|
value = environment.__proto__.__proto__;
|
|
const serializeNodeWithIdBinding = serializeNodeWithId;
|
|
const object = {doc: a0, mirror: r30, blockClass: r29, blockSelector: r28, unblockSelector: r27, maskAllText: r26,
|
|
maskTextClass: r25, unmaskTextClass: r24, maskTextSelector: r23, unmaskTextSelector: r5, skipChild: false,
|
|
inlineStylesheet: r17};
|
|
r22 = r22 === true ? {'color': true, 'date': true, 'datetime-local': true, 'email': true, 'month': true,
|
|
'number': true, 'range': true, 'search': true, 'tel': true, 'text': true, 'time': true, 'url': true,
|
|
'week': true, 'textarea': true, 'select': true} : r22 === false ? {} : r22;
|
|
object.maskInputOptions = r22;
|
|
object.maskAttributeFn = maskAttributeFn;
|
|
object.maskTextFn = maskTextFn;
|
|
object.maskInputFn = maskInputFn;
|
|
object.slimDOMOptions = r20 === true || r20 === 'all' ? {'script': true, 'comment': true, 'headFavicon': true,
|
|
'headWhitespace': true, 'headMetaDescKeywords': null, 'headMetaSocial': true, 'headMetaRobots': true,
|
|
'headMetaHttpEquiv': true, 'headMetaAuthorship': true, 'headMetaVerification': true,
|
|
headMetaDescKeywords: r20 === 'all'} : r20 !== false ? r20 : {};
|
|
object.dataURLOptions = dataURLOptions;
|
|
object.inlineImages = r15;
|
|
object.recordCanvas = r14;
|
|
object.preserveWhiteSpace = preserveWhiteSpace;
|
|
object.onSerialize = onSerialize;
|
|
object.onIframeLoad = onIframeLoad;
|
|
object.iframeLoadTimeout = iframeLoadTimeout;
|
|
object.onBlockedImageLoad = onBlockedImageLoad;
|
|
object.onStylesheetLoad = onStylesheetLoad;
|
|
object.stylesheetLoadTimeout = stylesheetLoadTimeout;
|
|
object.keepIframeSrcFn = r6;
|
|
object.newlyAddedElement = false;
|
|
object.ignoreCSSAttributes = ignoreCSSAttributes !== undefined ? ignoreCSSAttributes : new global.Set([]);
|
|
return serializeNodeWithIdBinding(a0, object);
|
|
}
|
|
|
|
function onSerialize(a0) { // fn#11605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:72701, owner: record.takeFullSnapshot2.onSerialize, offset: 0x00db470d, size: 125 bytes, params: 2, frame: 14
|
|
var value2;
|
|
var binding;
|
|
var value3;
|
|
if (isSerializedIframe(a0, env2_60)) {
|
|
value2 = environment.__proto__;
|
|
env1_41.addIframe(a0);
|
|
}
|
|
if (isSerializedStylesheet(a0, env2_60)) {
|
|
value3 = environment.__proto__;
|
|
env1_40.trackLinkElement(a0);
|
|
}
|
|
if (hasShadowRoot(a0)) {
|
|
value = environment.__proto__;
|
|
binding = env1_44;
|
|
binding.addShadowRoot(a0.shadowRoot, global.document);
|
|
}
|
|
}
|
|
|
|
function onIframeLoad(a0, a1) { // fn#11606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:72892, owner: record.takeFullSnapshot2.onIframeLoad, offset: 0x00db478a, size: 74 bytes, params: 3, frame: 14
|
|
let binding = env1_41;
|
|
binding.attachIframe(a0, a1);
|
|
if (a0.contentWindow) {
|
|
binding = env1_43;
|
|
binding.addWindow(a0.contentWindow);
|
|
}
|
|
env1_44.observeAttachShadow(a0);
|
|
}
|
|
|
|
function onStylesheetLoad(a0, a1) { // fn#11607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:73031, owner: record.takeFullSnapshot2.onStylesheetLoad, offset: 0x00db47d4, size: 29 bytes, params: 3, frame: 13
|
|
env1_40.attachLinkElement(a0, a1);
|
|
}
|
|
|
|
function onBlockedImageLoad(a0, {id}, {width, height}) { // fn#11608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:73108, owner: record.takeFullSnapshot2.onBlockedImageLoad, offset: 0x00db47f1, size: 150 bytes, params: 4, frame: 20
|
|
mutationCb({adds: [], removes: [], texts: [], attributes: [{id: id, attributes: {style: {width: '' + width + 'px',
|
|
height: '' + height + 'px'}}}]});
|
|
}
|
|
|
|
}
|
|
|
|
function recordObserve(a0) { // fn#11610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:73666, owner: record.observe, offset: 0x00db4896, size: 530 bytes, params: 2, frame: 18
|
|
var environment;
|
|
var r0;
|
|
let value = environment.__proto__;
|
|
const callbackWrapperBinding = callbackWrapper;
|
|
const initObserversBinding = initObservers;
|
|
const value2 = undefined;
|
|
const value3 = callbackWrapperBinding(initObserversBinding);
|
|
const object = {};
|
|
object.onMutation = onMutation;
|
|
object.mutationCb = mutationCb;
|
|
object.mousemoveCb = mousemoveCb;
|
|
object.mouseInteractionCb = mouseInteractionCb;
|
|
object.scrollCb = scrollCb;
|
|
object.viewportResizeCb = viewportResizeCb;
|
|
object.inputCb = inputCb;
|
|
object.mediaInteractionCb = mediaInteractionCb;
|
|
object.styleSheetRuleCb = styleSheetRuleCb;
|
|
object.styleDeclarationCb = styleDeclarationCb;
|
|
object.canvasMutationCb = wrappedCanvasMutationEmit;
|
|
object.fontCb = fontCb;
|
|
object.selectionCb = selectionCb;
|
|
object.customElementCb = customElementCb;
|
|
object.blockClass = env0_3;
|
|
object.ignoreClass = env0_6;
|
|
object.ignoreSelector = env0_7;
|
|
object.maskAllText = env0_8;
|
|
object.maskTextClass = env0_9;
|
|
object.unmaskTextClass = env0_10;
|
|
object.maskTextSelector = env0_11;
|
|
object.unmaskTextSelector = env0_12;
|
|
object.maskInputOptions = env0_33;
|
|
object.inlineStylesheet = env0_13;
|
|
object.sampling = env0_18;
|
|
object.recordDOM = env0_20;
|
|
object.recordCanvas = env0_21;
|
|
object.inlineImages = env0_25;
|
|
object.userTriggeredOnInput = env0_23;
|
|
object.collectFonts = env0_24;
|
|
object.doc = a0;
|
|
object.maskAttributeFn = maskAttributeFn;
|
|
object.maskInputFn = maskInputFn;
|
|
object.maskTextFn = maskTextFn;
|
|
object.keepIframeSrcFn = env0_27;
|
|
object.blockSelector = env0_4;
|
|
object.unblockSelector = env0_5;
|
|
object.slimDOMOptions = env0_34;
|
|
object.dataURLOptions = env0_19;
|
|
object.mirror = env1_60;
|
|
object.iframeManager = env0_41;
|
|
object.stylesheetManager = env0_40;
|
|
object.shadowDomManager = env0_44;
|
|
object.processedNodeManager = env0_42;
|
|
object.canvasManager = env0_43;
|
|
object.ignoreCSSAttributes = env0_28;
|
|
if (plugins == null) {
|
|
r0 = value2;
|
|
} else {
|
|
value = plugins.filter(function(a0) {
|
|
return a0.observer;
|
|
});
|
|
if (value == null) {
|
|
r0 = value2;
|
|
} else {
|
|
value = value.map(_fun11622);
|
|
r0 = value;
|
|
}
|
|
}
|
|
r0 = !r0 ? [] : r0;
|
|
object.plugins = r0;
|
|
return value3(object, {});
|
|
function mousemoveCb(a0, a1) { // fn#11611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:73758, owner: record.observe.mousemoveCb, offset: 0x00db4aa8, size: 53 bytes, params: 3, frame: 12
|
|
const binding = env2_55;
|
|
const IncrementalSnapshot = env2_37.IncrementalSnapshot;
|
|
return binding({type: IncrementalSnapshot, data: {source: a1, positions: a0}});
|
|
}
|
|
|
|
function mouseInteractionCb(a0) { // fn#11612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:73872, owner: record.observe.mouseInteractionCb, offset: 0x00db4add, size: 74 bytes, params: 2, frame: 15
|
|
const binding = env2_55;
|
|
const IncrementalSnapshot = env2_37.IncrementalSnapshot;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const MouseInteraction = env2_38.MouseInteraction;
|
|
return binding({type: IncrementalSnapshot, data: Reflect.apply(assign, Object, [{source: MouseInteraction}, a0])});
|
|
}
|
|
|
|
function viewportResizeCb(a0) { // fn#11613, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:74023, owner: record.observe.viewportResizeCb, offset: 0x00db4b27, size: 74 bytes, params: 2, frame: 15
|
|
const binding = env2_55;
|
|
const IncrementalSnapshot = env2_37.IncrementalSnapshot;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const ViewportResize = env2_38.ViewportResize;
|
|
return binding({type: IncrementalSnapshot, data: Reflect.apply(assign, Object, [{source: ViewportResize}, a0])});
|
|
}
|
|
|
|
function inputCb(a0) { // fn#11614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:74149, owner: record.observe.inputCb, offset: 0x00db4b71, size: 74 bytes, params: 2, frame: 15
|
|
const binding = env2_55;
|
|
const IncrementalSnapshot = env2_37.IncrementalSnapshot;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const Input = env2_38.Input;
|
|
return binding({type: IncrementalSnapshot, data: Reflect.apply(assign, Object, [{source: Input}, a0])});
|
|
}
|
|
|
|
function mediaInteractionCb(a0) { // fn#11615, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:74268, owner: record.observe.mediaInteractionCb, offset: 0x00db4bbb, size: 74 bytes, params: 2, frame: 15
|
|
const binding = env2_55;
|
|
const IncrementalSnapshot = env2_37.IncrementalSnapshot;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const MediaInteraction = env2_38.MediaInteraction;
|
|
return binding({type: IncrementalSnapshot, data: Reflect.apply(assign, Object, [{source: MediaInteraction}, a0])});
|
|
}
|
|
|
|
function styleSheetRuleCb(a0) { // fn#11616, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:74407, owner: record.observe.styleSheetRuleCb, offset: 0x00db4c05, size: 74 bytes, params: 2, frame: 15
|
|
const binding = env2_55;
|
|
const IncrementalSnapshot = env2_37.IncrementalSnapshot;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const StyleSheetRule = env2_38.StyleSheetRule;
|
|
return binding({type: IncrementalSnapshot, data: Reflect.apply(assign, Object, [{source: StyleSheetRule}, a0])});
|
|
}
|
|
|
|
function styleDeclarationCb(a0) { // fn#11617, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:74544, owner: record.observe.styleDeclarationCb, offset: 0x00db4c4f, size: 74 bytes, params: 2, frame: 15
|
|
const binding = env2_55;
|
|
const IncrementalSnapshot = env2_37.IncrementalSnapshot;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const StyleDeclaration = env2_38.StyleDeclaration;
|
|
return binding({type: IncrementalSnapshot, data: Reflect.apply(assign, Object, [{source: StyleDeclaration}, a0])});
|
|
}
|
|
|
|
function fontCb(a0) { // fn#11618, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:74693, owner: record.observe.fontCb, offset: 0x00db4c99, size: 74 bytes, params: 2, frame: 15
|
|
const binding = env2_55;
|
|
const IncrementalSnapshot = env2_37.IncrementalSnapshot;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const Font = env2_38.Font;
|
|
return binding({type: IncrementalSnapshot, data: Reflect.apply(assign, Object, [{source: Font}, a0])});
|
|
}
|
|
|
|
function selectionCb(a0) { // fn#11619, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:74803, owner: record.observe.selectionCb, offset: 0x00db4ce3, size: 74 bytes, params: 2, frame: 15
|
|
const binding = env2_55;
|
|
const IncrementalSnapshot = env2_37.IncrementalSnapshot;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const Selection = env2_38.Selection;
|
|
binding({type: IncrementalSnapshot, data: Reflect.apply(assign, Object, [{source: Selection}, a0])});
|
|
}
|
|
|
|
function customElementCb(a0) { // fn#11620, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:74920, owner: record.observe.customElementCb, offset: 0x00db4d2d, size: 74 bytes, params: 2, frame: 15
|
|
const binding = env2_55;
|
|
const IncrementalSnapshot = env2_37.IncrementalSnapshot;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const CustomElement = env2_38.CustomElement;
|
|
binding({type: IncrementalSnapshot, data: Reflect.apply(assign, Object, [{source: CustomElement}, a0])});
|
|
}
|
|
|
|
function _fun11622(a0) { // fn#11622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:75652, offset: 0x00db4d82, size: 43 bytes, params: 2, frame: 4
|
|
const env0_0 = a0;
|
|
return {observer: a0.observer, options: a0.options, callback: callback_11623};
|
|
function callback_11623(a0) { // fn#11623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:75718, offset: 0x00db4dad, size: 65 bytes, params: 2, frame: 12
|
|
const binding = env3_55;
|
|
const Plugin = env3_37.Plugin;
|
|
return binding({type: Plugin, data: {plugin: env0_0.name, payload: a0}});
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11624(a0) { // fn#11624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:75833, offset: 0x00db4dee, size: 63 bytes, params: 2, frame: 13
|
|
var value;
|
|
var binding;
|
|
var push;
|
|
var recordObserveBinding;
|
|
var contentDocument;
|
|
var error;
|
|
var console;
|
|
try {
|
|
value = environment;
|
|
binding = env0_46;
|
|
push = binding.push;
|
|
recordObserveBinding = recordObserve;
|
|
contentDocument = a0.contentDocument;
|
|
value = recordObserveBinding(contentDocument);
|
|
Reflect.apply(push, binding, [value]);
|
|
} catch (error) {
|
|
console = global.console;
|
|
console.warn(error);
|
|
}
|
|
}
|
|
|
|
function recordInit() { // fn#11625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:75916, owner: record.init, offset: 0x00db4e2d, size: 46 bytes, params: 1, frame: 13
|
|
takeFullSnapshot2();
|
|
const binding = env0_46;
|
|
binding.push(recordObserve(global.document));
|
|
}
|
|
|
|
function _fun11626() { // fn#11626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:76073, offset: 0x00db4e5b, size: 63 bytes, params: 1, frame: 12
|
|
const binding = env1_55;
|
|
const DomContentLoaded = env1_37.DomContentLoaded;
|
|
binding({type: DomContentLoaded, data: {}});
|
|
if (env0_22 === 'DOMContentLoaded') {
|
|
recordInit();
|
|
}
|
|
}
|
|
|
|
function _fun11627() { // fn#11627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:76174, offset: 0x00db4e9a, size: 61 bytes, params: 1, frame: 12
|
|
const binding = env1_55;
|
|
const Load = env1_37.Load;
|
|
binding({type: Load, data: {}});
|
|
if (env0_22 === 'load') {
|
|
recordInit();
|
|
}
|
|
}
|
|
|
|
function _fun11628() { // fn#11628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:76240, offset: 0x00db4ed7, size: 53 bytes, params: 1, frame: 12
|
|
env0_46.forEach(function(a0) {
|
|
return a0();
|
|
});
|
|
env0_42.destroy();
|
|
}
|
|
|
|
}
|
|
|
|
function addBreadcrumbEvent(a0, a1) { // fn#11632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:76744, offset: 0x00db4f2c, size: 101 bytes, params: 3, frame: 13
|
|
var items2;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
if (a1.category !== 'sentry.transaction') {
|
|
items2 = ['ui.click', 'ui.input'];
|
|
if (items2.includes(a1.category)) {
|
|
a0.triggerUserActivity();
|
|
} else {
|
|
a0.checkAndHandleExpiredSession();
|
|
}
|
|
a0.addUpdate(_fun11633);
|
|
}
|
|
function _fun11633() { // fn#11633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:76928, offset: 0x00db4f91, size: 145 bytes, params: 1, frame: 19
|
|
const binding = env0_0;
|
|
const throttledAddEvent = binding.throttledAddEvent;
|
|
const object = {};
|
|
const Custom = env1_37.Custom;
|
|
object.type = Custom;
|
|
let timestamp = require.timestamp;
|
|
timestamp = !timestamp ? 0 : timestamp;
|
|
object.timestamp = 1000 * timestamp;
|
|
const object2 = {tag: 'breadcrumb'};
|
|
object2.payload = (require(826) /* metro dependency 826 */).normalize(require, 10, 1000);
|
|
object.data = object2;
|
|
Reflect.apply(throttledAddEvent, binding, [object]);
|
|
return require.category === 'console';
|
|
}
|
|
|
|
}
|
|
|
|
function getClickTargetNode(a0) { // fn#11635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:77174, offset: 0x00db5040, size: 52 bytes, params: 2, frame: 13
|
|
const targetNode = getTargetNode(a0);
|
|
return targetNode && targetNode instanceof global.Element ? getClosestInteractive(targetNode) : targetNode;
|
|
}
|
|
|
|
function onWindowOpen(a0) { // fn#11637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:77408, offset: 0x00db50a4, size: 59 bytes, params: 2, frame: 13
|
|
const env0_0 = a0;
|
|
if (!items2) {
|
|
items2 = [];
|
|
monkeyPatchWindowOpen();
|
|
}
|
|
items2.push(a0);
|
|
return _fun11642;
|
|
function monkeyPatchWindowOpen() { // fn#11638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:77451, owner: onWindowOpen.monkeyPatchWindowOpen, offset: 0x00db50df, size: 66 bytes, params: 1, frame: 16
|
|
var environment;
|
|
let value = environment.__proto__;
|
|
value = require(826) /* metro dependency 826 */;
|
|
const fill = value.fill;
|
|
const GLOBAL_OBJ = (require(826) /* metro dependency 826 */).GLOBAL_OBJ;
|
|
Reflect.apply(fill, value, [GLOBAL_OBJ, 'open', function(a0) {
|
|
var env0_0 = a0;
|
|
return _fun11640;
|
|
}]);
|
|
function _fun11639(a0) { // fn#11639, offset: 0x00db5121, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun11640;
|
|
function _fun11640() { // fn#11640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:77543, offset: 0x00db5131, size: 143 bytes, params: 1, frame: 16
|
|
var environment;
|
|
var r1;
|
|
var value;
|
|
var binding;
|
|
var forEach;
|
|
var closure;
|
|
var error;
|
|
var length;
|
|
var Array;
|
|
var prototype;
|
|
var value3;
|
|
var array;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var apply;
|
|
const GLOBAL_OBJ = (Module00826Module).GLOBAL_OBJ;
|
|
reducibleJoin8: while (true) {
|
|
reduciblePort7: while (true) {
|
|
exceptionLanding6: while (true) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
if (env3_61) {
|
|
try {
|
|
binding = env3_61;
|
|
} catch (error) {
|
|
break exceptionLanding6;
|
|
}
|
|
try {
|
|
forEach = binding.forEach;
|
|
} catch (error) {
|
|
break exceptionLanding6;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding6;
|
|
}
|
|
try {
|
|
closure = function(a0) {
|
|
return a0();
|
|
};
|
|
} catch (error) {
|
|
break exceptionLanding6;
|
|
}
|
|
try {
|
|
Reflect.apply(forEach, binding, [closure]);
|
|
} catch (error) {
|
|
break exceptionLanding6;
|
|
}
|
|
break reduciblePort7;
|
|
}
|
|
break reduciblePort7;
|
|
}
|
|
break reduciblePort7;
|
|
}
|
|
length = arguments.length;
|
|
Array = global.Array;
|
|
prototype = Array.prototype;
|
|
value3 = Object.create(prototype, {constructor: {value: Array}});
|
|
array = new Array();
|
|
value4 = array instanceof Object ? array : value3;
|
|
value5 = 0;
|
|
if (value5 < length) {
|
|
r1 = value5;
|
|
break reducibleJoin8;
|
|
}
|
|
value7 = environment;
|
|
binding = env0_0;
|
|
apply = binding.apply;
|
|
return Reflect.apply(apply, binding, [GLOBAL_OBJ, value4]);
|
|
}
|
|
reducibleLoop8: while (true) {
|
|
value4[r1] = arguments[r1];
|
|
value6 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (value6 < length) {
|
|
r1 = value6;
|
|
continue reducibleLoop8;
|
|
}
|
|
break reducibleLoop8;
|
|
}
|
|
return env0_0.apply(GLOBAL_OBJ, value4);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11642() { // fn#11642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:77740, offset: 0x00db51c0, size: 68 bytes, params: 1, frame: 15
|
|
const value2 = -1;
|
|
const r3 = env1_61 ? env1_61.indexOf(env0_0) : value2;
|
|
if (r3 > value2) {
|
|
env1_61.splice(r3, 1);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function updateClickDetectorForRecordingEvent(a0, a1) { // fn#11644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:81826, offset: 0x00db5221, size: 257 bytes, params: 3, frame: 18
|
|
var r3;
|
|
var type;
|
|
var value;
|
|
var data;
|
|
var source;
|
|
var binding;
|
|
var has;
|
|
var value2;
|
|
var registerMutation;
|
|
var timestamp;
|
|
var Scroll;
|
|
var value3;
|
|
var registerScroll;
|
|
var MouseInteraction;
|
|
var value4;
|
|
var id;
|
|
var recordBinding;
|
|
var mirror;
|
|
var getNode;
|
|
var value5;
|
|
var HTMLElement;
|
|
var value6;
|
|
var Click;
|
|
var registerClick;
|
|
var error;
|
|
reducibleJoin3: while (true) {
|
|
reduciblePort53: while (true) {
|
|
exceptionLanding52: while (true) {
|
|
try {
|
|
type = a1.type;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
break reduciblePort53;
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
value = type === 3;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
if (value) {
|
|
try {
|
|
data = a1.data;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
try {
|
|
source = data.source;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
value = environment;
|
|
try {
|
|
binding = env0_62;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
try {
|
|
has = binding.has;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
try {
|
|
value2 = Reflect.apply(has, binding, [source]);
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
reducibleJoin19: while (true) {
|
|
if (value2) {
|
|
try {
|
|
registerMutation = a0.registerMutation;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
try {
|
|
timestamp = a1.timestamp;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
try {
|
|
Reflect.apply(registerMutation, a0, [timestamp]);
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
break reducibleJoin19;
|
|
}
|
|
break reducibleJoin19;
|
|
}
|
|
try {
|
|
binding = env0_38;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
try {
|
|
Scroll = binding.Scroll;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
try {
|
|
value3 = source !== Scroll;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
reducibleJoin28: while (true) {
|
|
if (value3) {
|
|
break reducibleJoin28;
|
|
}
|
|
try {
|
|
registerScroll = a0.registerScroll;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
try {
|
|
timestamp = a1.timestamp;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
try {
|
|
Reflect.apply(registerScroll, a0, [timestamp]);
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
break reducibleJoin28;
|
|
}
|
|
try {
|
|
data = a1.data;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
try {
|
|
source = data.source;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
try {
|
|
binding = env0_38;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
try {
|
|
MouseInteraction = binding.MouseInteraction;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
try {
|
|
value4 = source !== MouseInteraction;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
reducibleJoin53: while (true) {
|
|
if (value4) {
|
|
break reducibleJoin53;
|
|
}
|
|
try {
|
|
data = a1.data;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
try {
|
|
type = data.type;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
try {
|
|
id = data.id;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
try {
|
|
recordBinding = record;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
try {
|
|
mirror = recordBinding.mirror;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
try {
|
|
getNode = mirror.getNode;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
try {
|
|
value5 = Reflect.apply(getNode, mirror, [id]);
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
try {
|
|
HTMLElement = global.HTMLElement;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
try {
|
|
value6 = value5 instanceof HTMLElement;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
reducibleJoin48: while (true) {
|
|
if (value6) {
|
|
try {
|
|
binding = env0_39;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
try {
|
|
Click = binding.Click;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
value = type === Click;
|
|
r3 = value;
|
|
break reducibleJoin48;
|
|
}
|
|
r3 = value6;
|
|
break reducibleJoin48;
|
|
}
|
|
if (r3) {
|
|
try {
|
|
registerClick = a0.registerClick;
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
try {
|
|
Reflect.apply(registerClick, a0, [value5]);
|
|
} catch (error) {
|
|
break exceptionLanding52;
|
|
}
|
|
break reducibleJoin53;
|
|
}
|
|
break reducibleJoin53;
|
|
}
|
|
}
|
|
}
|
|
|
|
function getAttributesToRecord(a0) { // fn#11646, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:82702, offset: 0x00db5362, size: 131 bytes, params: 2, frame: 23
|
|
var r8;
|
|
var r13;
|
|
var r5;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var binding;
|
|
var has;
|
|
var value3;
|
|
var value4;
|
|
const object = {};
|
|
if (!a0['data-sentry-component'] && a0['data-sentry-element']) {
|
|
a0['data-sentry-component'] = a0['data-sentry-element'];
|
|
}
|
|
for (propertyName in a0) {
|
|
binding = env0_66;
|
|
has = binding.has;
|
|
if (!Reflect.apply(has, binding, [propertyName])) {
|
|
r8 = propertyName2;
|
|
continue;
|
|
}
|
|
value3 = propertyName !== 'data-testid';
|
|
if (!value3) {
|
|
r13 = value3;
|
|
continue;
|
|
}
|
|
value4 = propertyName !== 'data-test-id';
|
|
r13 = value4;
|
|
if (r13) {
|
|
r5 = propertyName;
|
|
continue;
|
|
}
|
|
r5 = 'testId';
|
|
continue;
|
|
object[r5] = a0[propertyName];
|
|
r8 = propertyName2;
|
|
}
|
|
return object;
|
|
}
|
|
|
|
function getBaseDomBreadcrumb(a0, a1) { // fn#11647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:83680, offset: 0x00db53e5, size: 280 bytes, params: 3, frame: 19
|
|
var r1;
|
|
var object3;
|
|
var object4;
|
|
var Array;
|
|
var value7;
|
|
const id = record.mirror.getId(a0);
|
|
const r3 = id && record.mirror.getNode(id);
|
|
const r0 = r3 && record.mirror.getMeta(r3);
|
|
const value5 = null;
|
|
const r4 = r0 ? r0.type !== env0_65.Element ? value5 : r0 : value5;
|
|
if (r4) {
|
|
object3 = {nodeId: id};
|
|
object4 = {id: id};
|
|
object4.tagName = r4.tagName;
|
|
Array = global.Array;
|
|
value7 = Array.from(r4.childNodes).map(_fun11648);
|
|
object4.textContent = value7.filter(global.Boolean).map(function(a0) {
|
|
return a0.trim();
|
|
}).join('');
|
|
object4.attributes = getAttributesToRecord(r4.attributes);
|
|
object3.node = object4;
|
|
r1 = object3;
|
|
} else {
|
|
r1 = {};
|
|
}
|
|
return {message: a1, data: r1};
|
|
function _fun11648(a0) { // fn#11648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:83974, offset: 0x00db54fd, size: 35 bytes, params: 2, frame: 3
|
|
const type = a0.type;
|
|
const value = environment.__proto__;
|
|
const Text = env1_65.Text;
|
|
return type === Text && a0.textContent;
|
|
}
|
|
|
|
}
|
|
|
|
function handleKeyboardEvent(a0, a1) { // fn#11650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:84142, offset: 0x00db5520, size: 65 bytes, params: 3, frame: 13
|
|
var keyboardBreadcrumb;
|
|
if (a0.isEnabled()) {
|
|
a0.updateUserActivity();
|
|
keyboardBreadcrumb = getKeyboardBreadcrumb(a1);
|
|
if (keyboardBreadcrumb) {
|
|
addBreadcrumbEvent(a0, keyboardBreadcrumb);
|
|
}
|
|
}
|
|
function getKeyboardBreadcrumb({metaKey, shiftKey, ctrlKey, altKey, key, target}) { // fn#11651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:84223, owner: handleKeyboardEvent.getKeyboardBreadcrumb, offset: 0x00db5561, size: 288 bytes, params: 2, frame: 22
|
|
var r0;
|
|
var r5;
|
|
var value;
|
|
var length;
|
|
var baseDomBreadcrumb;
|
|
var createBreadcrumbBinding;
|
|
var Object;
|
|
if (target) {
|
|
value = target.tagName === 'INPUT';
|
|
r0 = value || target.tagName === 'TEXTAREA';
|
|
r0 = !r0 ? target.isContentEditable : r0;
|
|
if (r0) {
|
|
return null;
|
|
}
|
|
if (key) {
|
|
r0 = metaKey || ctrlKey;
|
|
r0 = !r0 ? altKey : r0;
|
|
length = key.length;
|
|
if (r0) {
|
|
value = environment.__proto__;
|
|
r5 = (require(826) /* metro dependency 826 */).htmlTreeAsString(target,
|
|
{maxStringLength: 200}) || '<unknown>';
|
|
baseDomBreadcrumb = getBaseDomBreadcrumb(target, r5);
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
return createBreadcrumbBinding({category: 'ui.keyDown', message: r5, data: Object.assign({},
|
|
baseDomBreadcrumb.data,
|
|
{metaKey: metaKey, shiftKey: shiftKey, ctrlKey: ctrlKey, altKey: altKey, key: key})});
|
|
}
|
|
if (length !== 1) {
|
|
value = environment.__proto__;
|
|
r5 = (require(826) /* metro dependency 826 */).htmlTreeAsString(target,
|
|
{maxStringLength: 200}) || '<unknown>';
|
|
baseDomBreadcrumb = getBaseDomBreadcrumb(target, r5);
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
return createBreadcrumbBinding({category: 'ui.keyDown', message: r5, data: Object.assign({},
|
|
baseDomBreadcrumb.data,
|
|
{metaKey: metaKey, shiftKey: shiftKey, ctrlKey: ctrlKey, altKey: altKey, key: key})});
|
|
}
|
|
return null;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
}
|
|
|
|
function webVitalHandler(a0, a1) { // fn#11652, offset: 0x00db5681, size: 23 bytes, params: 3, frame: 2
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
return _fun11653;
|
|
function _fun11653({metric}) { // fn#11653, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:85974, offset: 0x00db5698, size: 45 bytes, params: 2, frame: 13
|
|
require.replayPerformanceEntries.push(env0_0(metric));
|
|
}
|
|
|
|
}
|
|
|
|
function createPerformanceEntry(a0) { // fn#11654, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:86040, offset: 0x00db56c5, size: 34 bytes, params: 2, frame: 12
|
|
const property = env0_68[a0.entryType];
|
|
return property ? property(a0) : null;
|
|
}
|
|
|
|
function getLargestContentfulPaint(a0) { // fn#11656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:86242, offset: 0x00db5743, size: 94 bytes, params: 2, frame: 16
|
|
const property = a0.entries[a0.entries.length - 1];
|
|
return getWebVital(a0, 'largest-contentful-paint',
|
|
property != null && property.element ? [property.element] : undefined);
|
|
}
|
|
|
|
function getCumulativeLayoutShift(a0) { // fn#11658, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:86455, offset: 0x00db57b2, size: 277 bytes, params: 2, frame: 28
|
|
var r6;
|
|
var r12;
|
|
var r14;
|
|
var value;
|
|
var items4;
|
|
var items2;
|
|
var entries;
|
|
var iterator;
|
|
var iterator2;
|
|
var value2;
|
|
var item;
|
|
var item2;
|
|
var isLayoutShiftBinding;
|
|
var isLayoutShift2;
|
|
var items3;
|
|
var sources;
|
|
var iterator3;
|
|
var item3;
|
|
var item4;
|
|
var value3;
|
|
var node;
|
|
var push;
|
|
var recordBinding;
|
|
var mirror;
|
|
var getId;
|
|
var value4;
|
|
var error;
|
|
var object;
|
|
var value5;
|
|
var length;
|
|
exceptionSkip48: while (true) {
|
|
exceptionLanding48: while (true) {
|
|
exceptionSkip33: while (true) {
|
|
exceptionLanding33: while (true) {
|
|
value = undefined;
|
|
items4 = [];
|
|
items2 = [];
|
|
entries = a0.entries;
|
|
iterator = entries[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
value2 = environment;
|
|
r6 = iterator;
|
|
while (true) {
|
|
item2 = Reflect.apply(iterator2, r6, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r6;
|
|
if (item2 === value) {
|
|
break;
|
|
}
|
|
try {
|
|
isLayoutShiftBinding = isLayoutShift;
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
try {
|
|
isLayoutShift2 = isLayoutShiftBinding(item);
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
if (!isLayoutShift2) {
|
|
r6 = item2;
|
|
continue;
|
|
}
|
|
try {
|
|
items3 = [];
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
try {
|
|
sources = item.sources;
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
try {
|
|
iterator = sources[Symbol.iterator]();
|
|
iterator3 = iterator.next;
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
r12 = iterator;
|
|
while (true) {
|
|
try {
|
|
item4 = Reflect.apply(iterator3, r12, []);
|
|
item3 = item4.value;
|
|
item4 = item4.done ? undefined : r12;
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
try {
|
|
value3 = item4 === value;
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
if (value3) {
|
|
break;
|
|
}
|
|
try {
|
|
try {
|
|
node = item3.node;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
if (!node) {
|
|
continue;
|
|
}
|
|
try {
|
|
try {
|
|
push = items2.push;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
try {
|
|
try {
|
|
node = item3.node;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
try {
|
|
try {
|
|
Reflect.apply(push, items2, [node]);
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
try {
|
|
try {
|
|
recordBinding = record;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
try {
|
|
try {
|
|
mirror = recordBinding.mirror;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
try {
|
|
try {
|
|
getId = mirror.getId;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
try {
|
|
try {
|
|
node = item3.node;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
try {
|
|
try {
|
|
value4 = Reflect.apply(getId, mirror, [node]);
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
if (!value4) {
|
|
continue;
|
|
}
|
|
try {
|
|
try {
|
|
push = items3.push;
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
try {
|
|
try {
|
|
Reflect.apply(push, items3, [value4]);
|
|
} catch (error) {
|
|
break exceptionLanding33;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
r12 = item4;
|
|
}
|
|
try {
|
|
push = items4.push;
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
try {
|
|
value5 = item.value;
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
try {
|
|
object.value = value5;
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
try {
|
|
length = items3.length;
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
if (!length) {
|
|
r14 = value;
|
|
continue;
|
|
}
|
|
r14 = items3;
|
|
try {
|
|
object.nodeIds = r14;
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
try {
|
|
Reflect.apply(push, items4, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
r6 = item2;
|
|
}
|
|
return getWebVital(a0, 'cumulative-layout-shift', items2, items4);
|
|
break exceptionSkip33;
|
|
}
|
|
try {
|
|
try {
|
|
item4.return();
|
|
} catch {
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
try {
|
|
throw error;
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
break exceptionSkip33;
|
|
}
|
|
break exceptionSkip48;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip48;
|
|
}
|
|
}
|
|
|
|
function getInteractionToNextPaint(a0) { // fn#11659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:86757, offset: 0x00db58c7, size: 94 bytes, params: 2, frame: 16
|
|
const property = a0.entries[a0.entries.length - 1];
|
|
return getWebVital(a0, 'interaction-to-next-paint',
|
|
property != null && property.target ? [property.target] : undefined);
|
|
}
|
|
|
|
function getWebVital({value, rating}, a1, a2, a3) { // fn#11660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:86917, offset: 0x00db5925, size: 114 bytes, params: 5, frame: 15
|
|
const absoluteTime_11655 = getAbsoluteTime_11655(value);
|
|
const object = {type: 'web-vital', name: a1, start: absoluteTime_11655, end: absoluteTime_11655};
|
|
const object2 = {value: value, size: value, rating: rating};
|
|
object2.nodeIds = a2 ? a2.map(function(a0) {
|
|
return record.mirror.getId(a0);
|
|
}) : undefined;
|
|
object2.attributions = a3;
|
|
object.data = object2;
|
|
return object;
|
|
}
|
|
|
|
function _addBreadcrumb(a0) { // fn#11662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:87261, offset: 0x00db59b4, size: 147 bytes, params: 2, frame: 18
|
|
const value = 'info';
|
|
const r5 = arguments.length > 1 ? arguments[1] === undefined ? value : arguments[1] : value;
|
|
(Module00826Module).addBreadcrumb({category: 'console', data: {logger: 'replay'}, level: r5,
|
|
message: '' + env0_71 + a0}, {level: r5});
|
|
}
|
|
|
|
function createEventBuffer({useCompression, workerUrl}) { // fn#11663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:94321, offset: 0x00db5a47, size: 111 bytes, params: 2, frame: 13
|
|
var value;
|
|
var binding;
|
|
var binding2;
|
|
if (useCompression) {
|
|
if (global.window.Worker) {
|
|
value = _loadWorker(workerUrl);
|
|
if (value) {
|
|
return value;
|
|
}
|
|
if (env0_69) {
|
|
env0_72.log('Using simple buffer');
|
|
}
|
|
binding = env0_74;
|
|
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
|
binding2 = new binding();
|
|
return binding2 instanceof Object ? binding2 : value;
|
|
}
|
|
}
|
|
if (env0_69) {
|
|
env0_72.log('Using simple buffer');
|
|
}
|
|
binding = env0_74;
|
|
value = Object.create(binding.prototype, {constructor: {value: binding}});
|
|
binding2 = new binding();
|
|
return binding2 instanceof Object ? binding2 : value;
|
|
function _loadWorker(a0) { // fn#11664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:94415, owner: createEventBuffer._loadWorker, offset: 0x00db5ab6, size: 203 bytes, params: 2, frame: 19
|
|
var environment;
|
|
var r2;
|
|
var r7;
|
|
var closure;
|
|
var value2;
|
|
var value3;
|
|
var binding;
|
|
var log;
|
|
var value4;
|
|
var concat;
|
|
var Worker;
|
|
var prototype;
|
|
var worker;
|
|
var value5;
|
|
var error;
|
|
let value = a0;
|
|
if (value) {
|
|
if (value) {
|
|
try {
|
|
value3 = environment.__proto__;
|
|
binding = env1_69;
|
|
if (binding) {
|
|
binding = env1_72;
|
|
log = binding.log;
|
|
value4 = '';
|
|
r7 = value ? ' from ' + value : value4;
|
|
value = 'Using compression worker' + r7;
|
|
Reflect.apply(log, binding, [value]);
|
|
}
|
|
Worker = global.Worker;
|
|
prototype = Worker.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Worker}});
|
|
worker = new Worker();
|
|
value = worker instanceof Object ? worker : value;
|
|
binding = env1_77;
|
|
prototype = binding.prototype;
|
|
value5 = Object.create(prototype, {constructor: {value: binding}});
|
|
value = new binding(value);
|
|
value = value instanceof Object ? value : value5;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
return value;
|
|
}
|
|
} else {
|
|
try {
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
closure = function() {
|
|
var property;
|
|
var value2;
|
|
if (typeof global.__SENTRY_EXCLUDE_REPLAY_WORKER__ === 'undefined') {
|
|
property = global.Blob;
|
|
value2 = new property(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);
|
|
property = global.URL;
|
|
return property.createObjectURL(value2);
|
|
}
|
|
if (global.__SENTRY_EXCLUDE_REPLAY_WORKER__) {
|
|
return '';
|
|
}
|
|
return global.URL.createObjectURL(new global.Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});']));
|
|
};
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
value2 = closure();
|
|
r2 = value2;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
if (r2) {
|
|
value3 = environment.__proto__;
|
|
try {
|
|
binding = env1_69;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
if (binding) {
|
|
try {
|
|
binding = env1_72;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
log = binding.log;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
value4 = '';
|
|
if (value) {
|
|
try {
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
value = Reflect.apply(concat, ' from ', [value]);
|
|
r7 = value;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
value = 'Using compression worker' + r7;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
Reflect.apply(log, binding, [value]);
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
Worker = global.Worker;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
prototype = Worker.prototype;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
worker = new Worker();
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
value = worker instanceof Object ? worker : value;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env1_77;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
prototype = binding.prototype;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
value = new binding(value);
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
value = value instanceof Object ? value : value5;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
return value;
|
|
}
|
|
r7 = value4;
|
|
try {
|
|
value = 'Using compression worker' + r7;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
Reflect.apply(log, binding, [value]);
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
Worker = global.Worker;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
prototype = Worker.prototype;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
worker = new Worker();
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
value = worker instanceof Object ? worker : value;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env1_77;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
prototype = binding.prototype;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
value = new binding(value);
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
value = value instanceof Object ? value : value5;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
return value;
|
|
}
|
|
try {
|
|
Worker = global.Worker;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
prototype = Worker.prototype;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
worker = new Worker();
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
value = worker instanceof Object ? worker : value;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env1_77;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
prototype = binding.prototype;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
value = new binding(value);
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
value = value instanceof Object ? value : value5;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(error, 'Failed to create compression worker');
|
|
}
|
|
return undefined;
|
|
}
|
|
return value;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function hasSessionStorage() { // fn#11666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:105226, offset: 0x00db5bda, size: 88 bytes, params: 1, frame: 14
|
|
var r0;
|
|
var value;
|
|
var property;
|
|
var moduleValue;
|
|
var GLOBAL_OBJ;
|
|
var value2;
|
|
var sessionStorage;
|
|
var error;
|
|
try {
|
|
value = environment;
|
|
property = dependencyMap[9];
|
|
moduleValue = require(property);
|
|
GLOBAL_OBJ = moduleValue.GLOBAL_OBJ;
|
|
value2 = 'sessionStorage' in GLOBAL_OBJ;
|
|
if (value2) {
|
|
property = dependencyMap[9];
|
|
value = require(property);
|
|
GLOBAL_OBJ = value.GLOBAL_OBJ;
|
|
sessionStorage = GLOBAL_OBJ.sessionStorage;
|
|
value = !!sessionStorage;
|
|
r0 = value;
|
|
} else {
|
|
r0 = value2;
|
|
}
|
|
} catch (error) {
|
|
return false;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function clearSession(a0) { // fn#11667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:105359, offset: 0x00db5c32, size: 78 bytes, params: 2, frame: 13
|
|
var property;
|
|
var moduleValue;
|
|
var GLOBAL_OBJ;
|
|
var sessionStorage;
|
|
var removeItem;
|
|
var binding;
|
|
var error;
|
|
if (hasSessionStorage()) {
|
|
try {
|
|
property = dependencyMap[9];
|
|
moduleValue = require(property);
|
|
GLOBAL_OBJ = moduleValue.GLOBAL_OBJ;
|
|
sessionStorage = GLOBAL_OBJ.sessionStorage;
|
|
removeItem = sessionStorage.removeItem;
|
|
binding = env0_10;
|
|
Reflect.apply(removeItem, sessionStorage, [binding]);
|
|
} catch (error) {
|
|
}
|
|
}
|
|
a0.session = undefined;
|
|
}
|
|
|
|
function saveSession(a0) { // fn#11669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:105581, offset: 0x00db5ca4, size: 92 bytes, params: 2, frame: 16
|
|
var property;
|
|
var moduleValue;
|
|
var GLOBAL_OBJ;
|
|
var sessionStorage;
|
|
var setItem;
|
|
var binding;
|
|
var JSON;
|
|
var error;
|
|
let value = environment;
|
|
if (hasSessionStorage()) {
|
|
try {
|
|
property = dependencyMap[9];
|
|
moduleValue = require(property);
|
|
GLOBAL_OBJ = moduleValue.GLOBAL_OBJ;
|
|
sessionStorage = GLOBAL_OBJ.sessionStorage;
|
|
setItem = sessionStorage.setItem;
|
|
binding = env0_10;
|
|
JSON = global.JSON;
|
|
value = JSON.stringify(a0);
|
|
Reflect.apply(setItem, sessionStorage, [binding, value]);
|
|
} catch (error) {
|
|
}
|
|
}
|
|
}
|
|
|
|
function makeSession_11670({id, started, lastActivity, segmentId, sampled, previousSessionId, dirty}) { // fn#11670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:105706, offset: 0x00db5d00, size: 159 bytes, params: 2, frame: 15
|
|
const Date = global.Date;
|
|
const value = Date.now();
|
|
const r2 = id || (require(826) /* metro dependency 826 */).uuid4();
|
|
segmentId = !segmentId ? 0 : segmentId;
|
|
dirty = !!dirty && dirty;
|
|
return {id: r2, started: started || value, lastActivity: lastActivity || value, segmentId: segmentId,
|
|
sampled: sampled, previousSessionId: previousSessionId, dirty: dirty};
|
|
}
|
|
|
|
function createSession({sessionSampleRate, allowBuffering, stickySession}) { // fn#11671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:105931, offset: 0x00db5d9f, size: 137 bytes, params: 2, frame: 16
|
|
const r3 = stickySession !== undefined && stickySession;
|
|
const session_11670 = makeSession_11670({sampled: isSampled(sessionSampleRate) ? 'session' : allowBuffering ? 'buffer' : !!allowBuffering,
|
|
previousSessionId: (arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}).previousSessionId});
|
|
if (r3) {
|
|
saveSession(session_11670);
|
|
}
|
|
return session_11670;
|
|
}
|
|
|
|
function isSessionExpired(a0, {maxReplayDuration, sessionIdleExpire, targetTime}) { // fn#11673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:106420, offset: 0x00db5e98, size: 91 bytes, params: 3, frame: 18
|
|
const r3 = targetTime !== undefined ? targetTime : global.Date.now();
|
|
return isExpired(a0.started, maxReplayDuration, r3) || isExpired(a0.lastActivity, sessionIdleExpire, r3);
|
|
}
|
|
|
|
function shouldRefreshSession(a0, {sessionIdleExpire, maxReplayDuration}) { // fn#11674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:106603, offset: 0x00db5ef3, size: 88 bytes, params: 3, frame: 14
|
|
const isSessionExpired2 = isSessionExpired(a0, {sessionIdleExpire: sessionIdleExpire,
|
|
maxReplayDuration: maxReplayDuration});
|
|
return isSessionExpired2 ? a0.sampled !== 'buffer' || a0.segmentId !== 0 : !!isSessionExpired2;
|
|
}
|
|
|
|
function loadOrCreateSession({sessionIdleExpire, maxReplayDuration, previousSessionId}, a1) { // fn#11675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:106785, offset: 0x00db5f4b, size: 326 bytes, params: 3, frame: 23
|
|
var r1;
|
|
var r6;
|
|
var r0;
|
|
var value;
|
|
var hasSessionStorage2;
|
|
var value2;
|
|
var property;
|
|
var moduleValue;
|
|
var GLOBAL_OBJ;
|
|
var sessionStorage;
|
|
var getItem;
|
|
var binding;
|
|
var value3;
|
|
var JSON;
|
|
var parse;
|
|
var value4;
|
|
var infoTick;
|
|
var makeSession_11670Binding;
|
|
var error;
|
|
var createSessionBinding;
|
|
var id;
|
|
const stickySession = a1.stickySession;
|
|
reducibleJoin27: while (true) {
|
|
if (stickySession) {
|
|
reduciblePort26: while (true) {
|
|
exceptionLanding25: while (true) {
|
|
value = environment;
|
|
hasSessionStorage2 = hasSessionStorage();
|
|
value2 = null;
|
|
if (hasSessionStorage2) {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
property = dependencyMap[9];
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
moduleValue = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
GLOBAL_OBJ = moduleValue.GLOBAL_OBJ;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
sessionStorage = GLOBAL_OBJ.sessionStorage;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
getItem = sessionStorage.getItem;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
binding = env0_10;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
value3 = Reflect.apply(getItem, sessionStorage, [binding]);
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
if (value3) {
|
|
try {
|
|
JSON = global.JSON;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
parse = JSON.parse;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
value4 = Reflect.apply(parse, JSON, [value3]);
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
binding = env0_69;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
reducibleJoin23: while (true) {
|
|
if (binding) {
|
|
try {
|
|
binding = env0_72;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
infoTick = binding.infoTick;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
Reflect.apply(infoTick, binding, ['Loading existing session']);
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
break reducibleJoin23;
|
|
}
|
|
break reducibleJoin23;
|
|
}
|
|
try {
|
|
makeSession_11670Binding = makeSession_11670;
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
try {
|
|
value = makeSession_11670Binding(value4);
|
|
} catch (error) {
|
|
break exceptionLanding25;
|
|
}
|
|
r1 = value;
|
|
break reduciblePort26;
|
|
}
|
|
r1 = value2;
|
|
break reduciblePort26;
|
|
}
|
|
r1 = value2;
|
|
break reduciblePort26;
|
|
}
|
|
r1 = value2;
|
|
break reduciblePort26;
|
|
}
|
|
r6 = r1;
|
|
break reducibleJoin27;
|
|
}
|
|
r6 = stickySession;
|
|
break reducibleJoin27;
|
|
}
|
|
value = environment;
|
|
if (r6) {
|
|
reducibleJoin35: while (true) {
|
|
if (shouldRefreshSession(r6, {sessionIdleExpire: sessionIdleExpire,
|
|
maxReplayDuration: maxReplayDuration})) {
|
|
reducibleJoin34: while (true) {
|
|
if (env0_69) {
|
|
binding = env0_72;
|
|
infoTick = binding.infoTick;
|
|
Reflect.apply(infoTick, binding, ['Session in sessionStorage is expired, creating new one...']);
|
|
break reducibleJoin34;
|
|
}
|
|
break reducibleJoin34;
|
|
}
|
|
createSessionBinding = createSession;
|
|
id = r6.id;
|
|
value = createSessionBinding(a1, {previousSessionId: id});
|
|
r1 = value;
|
|
break reducibleJoin35;
|
|
}
|
|
r1 = r6;
|
|
break reducibleJoin35;
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
reducibleJoin30: while (true) {
|
|
if (env0_69) {
|
|
binding = env0_72;
|
|
infoTick = binding.infoTick;
|
|
Reflect.apply(infoTick, binding, ['Creating new session']);
|
|
break reducibleJoin30;
|
|
}
|
|
break reducibleJoin30;
|
|
}
|
|
r0 = createSession(a1, {previousSessionId: previousSessionId});
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function addEventSync(a0, a1, a2) { // fn#11676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:107431, offset: 0x00db6091, size: 48 bytes, params: 4, frame: 16
|
|
var r0;
|
|
const shouldAddEvent2 = shouldAddEvent(a0, a1);
|
|
if (shouldAddEvent2) {
|
|
_addEvent(a0, a1, a2);
|
|
r0 = true;
|
|
} else {
|
|
r0 = !!shouldAddEvent2;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _addEvent3() { // fn#11678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:107577, offset: 0x00db60de, size: 47 bytes, params: 1, frame: 14
|
|
return env0_2(_fun11680).apply(this, arguments);
|
|
function* _fun11680(a0, a1, a2) { // fn#11680, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:107620, offset: 0x00db6116, size: 418 bytes, params: 4, frame: 24
|
|
var environment;
|
|
var r9;
|
|
var r92;
|
|
var r11;
|
|
var value3;
|
|
var clear;
|
|
var getOptions;
|
|
var beforeAddRecordingEvent;
|
|
var maybeApplyCallback2;
|
|
var addEvent;
|
|
var value4;
|
|
var error;
|
|
var binding;
|
|
var value5;
|
|
var value6;
|
|
var stop;
|
|
var value7;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = a2;
|
|
const eventBuffer = a0.eventBuffer;
|
|
if (eventBuffer) {
|
|
if (eventBuffer.waitForCheckout) {
|
|
if (value) {
|
|
value3 = a0.recordingMode === 'buffer';
|
|
if (value && value3) {
|
|
try {
|
|
clear = eventBuffer.clear;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
Reflect.apply(clear, eventBuffer, []);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
if (value) {
|
|
try {
|
|
eventBuffer.hasCheckout = true;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
eventBuffer.waitForCheckout = false;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
getOptions = a0.getOptions;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = Reflect.apply(getOptions, a0, []);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
beforeAddRecordingEvent = value.beforeAddRecordingEvent;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
maybeApplyCallback2 = maybeApplyCallback;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = maybeApplyCallback2(a1, beforeAddRecordingEvent);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
if (value) {
|
|
try {
|
|
addEvent = eventBuffer.addEvent;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = Reflect.apply(addEvent, eventBuffer, [value]);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
yield value;
|
|
try {
|
|
value = undefined;
|
|
value4 = false;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
return value4 ? value : value;
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
getOptions = a0.getOptions;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = Reflect.apply(getOptions, a0, []);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
beforeAddRecordingEvent = value.beforeAddRecordingEvent;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
maybeApplyCallback2 = maybeApplyCallback;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = maybeApplyCallback2(a1, beforeAddRecordingEvent);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
if (value) {
|
|
try {
|
|
addEvent = eventBuffer.addEvent;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = Reflect.apply(addEvent, eventBuffer, [value]);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
yield value;
|
|
try {
|
|
value = undefined;
|
|
value4 = false;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
return value4 ? value : value;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value) {
|
|
try {
|
|
eventBuffer.hasCheckout = true;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
eventBuffer.waitForCheckout = false;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
getOptions = a0.getOptions;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = Reflect.apply(getOptions, a0, []);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
beforeAddRecordingEvent = value.beforeAddRecordingEvent;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
maybeApplyCallback2 = maybeApplyCallback;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = maybeApplyCallback2(a1, beforeAddRecordingEvent);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
if (value) {
|
|
try {
|
|
addEvent = eventBuffer.addEvent;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = Reflect.apply(addEvent, eventBuffer, [value]);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
yield value;
|
|
try {
|
|
value = undefined;
|
|
value4 = false;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
return value4 ? value : value;
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
getOptions = a0.getOptions;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = Reflect.apply(getOptions, a0, []);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
beforeAddRecordingEvent = value.beforeAddRecordingEvent;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
maybeApplyCallback2 = maybeApplyCallback;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = maybeApplyCallback2(a1, beforeAddRecordingEvent);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
if (value) {
|
|
try {
|
|
addEvent = eventBuffer.addEvent;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = Reflect.apply(addEvent, eventBuffer, [value]);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
yield value;
|
|
try {
|
|
value = undefined;
|
|
value4 = false;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
return value4 ? value : value;
|
|
}
|
|
return undefined;
|
|
}
|
|
return null;
|
|
}
|
|
value3 = a0.recordingMode === 'buffer';
|
|
if (value && value3) {
|
|
try {
|
|
clear = eventBuffer.clear;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
Reflect.apply(clear, eventBuffer, []);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
if (value) {
|
|
try {
|
|
eventBuffer.hasCheckout = true;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
eventBuffer.waitForCheckout = false;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
getOptions = a0.getOptions;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = Reflect.apply(getOptions, a0, []);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
beforeAddRecordingEvent = value.beforeAddRecordingEvent;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
maybeApplyCallback2 = maybeApplyCallback;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = maybeApplyCallback2(a1, beforeAddRecordingEvent);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
if (value) {
|
|
try {
|
|
addEvent = eventBuffer.addEvent;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = Reflect.apply(addEvent, eventBuffer, [value]);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
yield value;
|
|
try {
|
|
value = undefined;
|
|
value4 = false;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
return value4 ? value : value;
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
getOptions = a0.getOptions;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = Reflect.apply(getOptions, a0, []);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
beforeAddRecordingEvent = value.beforeAddRecordingEvent;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
maybeApplyCallback2 = maybeApplyCallback;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = maybeApplyCallback2(a1, beforeAddRecordingEvent);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
if (value) {
|
|
try {
|
|
addEvent = eventBuffer.addEvent;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = Reflect.apply(addEvent, eventBuffer, [value]);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
yield value;
|
|
try {
|
|
value = undefined;
|
|
value4 = false;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
return value4 ? value : value;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value) {
|
|
try {
|
|
eventBuffer.hasCheckout = true;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
eventBuffer.waitForCheckout = false;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
getOptions = a0.getOptions;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = Reflect.apply(getOptions, a0, []);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
beforeAddRecordingEvent = value.beforeAddRecordingEvent;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
maybeApplyCallback2 = maybeApplyCallback;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = maybeApplyCallback2(a1, beforeAddRecordingEvent);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
if (value) {
|
|
try {
|
|
addEvent = eventBuffer.addEvent;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = Reflect.apply(addEvent, eventBuffer, [value]);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
yield value;
|
|
try {
|
|
value = undefined;
|
|
value4 = false;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
return value4 ? value : value;
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
getOptions = a0.getOptions;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = Reflect.apply(getOptions, a0, []);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
beforeAddRecordingEvent = value.beforeAddRecordingEvent;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
maybeApplyCallback2 = maybeApplyCallback;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = maybeApplyCallback2(a1, beforeAddRecordingEvent);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
if (value) {
|
|
try {
|
|
addEvent = eventBuffer.addEvent;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
try {
|
|
value = Reflect.apply(addEvent, eventBuffer, [value]);
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
yield value;
|
|
try {
|
|
value = undefined;
|
|
value4 = false;
|
|
} catch (error) {
|
|
if (error) {
|
|
value = environment.__proto__.__proto__;
|
|
value = error instanceof env2_73;
|
|
r9 = value;
|
|
} else {
|
|
r9 = error;
|
|
}
|
|
value = 'addEvent';
|
|
r92 = r9 ? 'addEventSizeExceeded' : value;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value = binding(env2_1[9]);
|
|
value = value.getClient();
|
|
if (value) {
|
|
value5 = 'internal_sdk_error';
|
|
if (r9) {
|
|
value6 = 'buffer_overflow';
|
|
r11 = value6;
|
|
} else {
|
|
r11 = value5;
|
|
}
|
|
value.recordDroppedEvent(r11, 'replay');
|
|
}
|
|
if (r9) {
|
|
if (value3) {
|
|
eventBuffer.clear();
|
|
eventBuffer.waitForCheckout = true;
|
|
return null;
|
|
}
|
|
a0.handleException(error);
|
|
yield a0.stop({reason: r92});
|
|
return undefined;
|
|
}
|
|
a0.handleException(error);
|
|
stop = a0.stop;
|
|
yield Reflect.apply(stop, a0, [{reason: r92}]);
|
|
value = undefined;
|
|
value7 = false;
|
|
return value7 ? value : undefined;
|
|
}
|
|
return value4 ? value : value;
|
|
}
|
|
return undefined;
|
|
}
|
|
return null;
|
|
function maybeApplyCallback(a0, a1) { // fn#11681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:107800, offset: 0x00db62b8, size: 106 bytes, params: 3, frame: 14
|
|
var value;
|
|
var type;
|
|
var binding;
|
|
var Custom;
|
|
var error;
|
|
try {
|
|
value = typeof a1 !== 'function';
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
if (env3_69) {
|
|
binding = env3_72;
|
|
binding.exception(error,
|
|
'An error occurred in the `beforeAddRecordingEvent` callback, skipping the event...');
|
|
return null;
|
|
}
|
|
return null;
|
|
}
|
|
if (!value) {
|
|
try {
|
|
type = a0.type;
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
if (env3_69) {
|
|
binding = env3_72;
|
|
binding.exception(error,
|
|
'An error occurred in the `beforeAddRecordingEvent` callback, skipping the event...');
|
|
return null;
|
|
}
|
|
return null;
|
|
}
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
try {
|
|
binding = env3_37;
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
if (env3_69) {
|
|
binding = env3_72;
|
|
binding.exception(error,
|
|
'An error occurred in the `beforeAddRecordingEvent` callback, skipping the event...');
|
|
return null;
|
|
}
|
|
return null;
|
|
}
|
|
try {
|
|
Custom = binding.Custom;
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
if (env3_69) {
|
|
binding = env3_72;
|
|
binding.exception(error,
|
|
'An error occurred in the `beforeAddRecordingEvent` callback, skipping the event...');
|
|
return null;
|
|
}
|
|
return null;
|
|
}
|
|
try {
|
|
value = type === Custom;
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
if (env3_69) {
|
|
binding = env3_72;
|
|
binding.exception(error,
|
|
'An error occurred in the `beforeAddRecordingEvent` callback, skipping the event...');
|
|
return null;
|
|
}
|
|
return null;
|
|
}
|
|
if (value) {
|
|
try {
|
|
value = a1(a0);
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
if (env3_69) {
|
|
binding = env3_72;
|
|
binding.exception(error,
|
|
'An error occurred in the `beforeAddRecordingEvent` callback, skipping the event...');
|
|
return null;
|
|
}
|
|
return null;
|
|
}
|
|
return value;
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function shouldAddEvent(a0, a1) { // fn#11682, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:108451, offset: 0x00db6322, size: 223 bytes, params: 3, frame: 18
|
|
var r1;
|
|
var r0;
|
|
var value2;
|
|
var value3;
|
|
var Date;
|
|
var value4;
|
|
var value6;
|
|
var value8;
|
|
if (a0.eventBuffer) {
|
|
if (a0.isPaused()) {
|
|
return false;
|
|
}
|
|
if (a0.isEnabled()) {
|
|
value2 = timestampToMs(a1.timestamp);
|
|
value3 = value2 + a0.timeouts.sessionIdlePause;
|
|
Date = global.Date;
|
|
value4 = value3 < Date.now();
|
|
if (value4) {
|
|
r0 = !value4;
|
|
} else {
|
|
value6 = value2 > a0.getContext().initialTimestamp + a0.getOptions().maxReplayDuration;
|
|
if (value6) {
|
|
value8 = false;
|
|
if (env0_69) {
|
|
env0_72.infoTick('Skipping event with timestamp ' + value2 + ' because it is after maxReplayDuration');
|
|
r1 = value8;
|
|
} else {
|
|
r1 = value8;
|
|
}
|
|
} else {
|
|
r1 = !value6;
|
|
}
|
|
r0 = r1;
|
|
}
|
|
return r0;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
function handleAfterSendEvent(a0) { // fn#11686, offset: 0x00db6420, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun11687;
|
|
function _fun11687(a0, a1) { // fn#11687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:108984, offset: 0x00db6430, size: 242 bytes, params: 3, frame: 16
|
|
var environment;
|
|
var r4;
|
|
var r2;
|
|
var r3;
|
|
var value2;
|
|
var statusCode;
|
|
var isTransactionEvent_116842;
|
|
var contexts;
|
|
var value6;
|
|
var trace;
|
|
var traceIds;
|
|
var context;
|
|
let binding = env0_0;
|
|
if (binding.isEnabled()) {
|
|
value2 = environment.__proto__;
|
|
if (isErrorEvent_11683(a0)) {
|
|
statusCode = a1.statusCode;
|
|
r4 = statusCode ? statusCode < 200 : !statusCode;
|
|
r4 = !r4 ? statusCode >= 300 : r4;
|
|
if (!r4) {
|
|
isTransactionEvent_116842 = isTransactionEvent_11684(a0);
|
|
binding = env0_0;
|
|
if (isTransactionEvent_116842) {
|
|
context = binding.getContext();
|
|
contexts = a0.contexts;
|
|
value6 = contexts != null;
|
|
if (value6) {
|
|
trace = contexts.trace;
|
|
r2 = trace != null;
|
|
r3 = trace;
|
|
} else {
|
|
r2 = value6;
|
|
r3 = contexts;
|
|
}
|
|
r2 = r2 && r3.trace_id;
|
|
r2 = r2 && context.traceIds.size < 100;
|
|
if (r2) {
|
|
traceIds = context.traceIds;
|
|
traceIds.add(a0.contexts.trace.trace_id);
|
|
}
|
|
} else {
|
|
handleErrorEvent(binding, a0);
|
|
}
|
|
}
|
|
} else if (isTransactionEvent_11684(a0)) {
|
|
statusCode = a1.statusCode;
|
|
r4 = statusCode ? statusCode < 200 : !statusCode;
|
|
r4 = !r4 ? statusCode >= 300 : r4;
|
|
if (!r4) {
|
|
isTransactionEvent_116842 = isTransactionEvent_11684(a0);
|
|
binding = env0_0;
|
|
if (isTransactionEvent_116842) {
|
|
context = binding.getContext();
|
|
contexts = a0.contexts;
|
|
value6 = contexts != null;
|
|
if (value6) {
|
|
trace = contexts.trace;
|
|
r2 = trace != null;
|
|
r3 = trace;
|
|
} else {
|
|
r2 = value6;
|
|
r3 = contexts;
|
|
}
|
|
r2 = r2 && r3.trace_id;
|
|
r2 = r2 && context.traceIds.size < 100;
|
|
if (r2) {
|
|
traceIds = context.traceIds;
|
|
traceIds.add(a0.contexts.trace.trace_id);
|
|
}
|
|
} else {
|
|
handleErrorEvent(binding, a0);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
function handleErrorEvent(a0, a1) { // fn#11688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:109301, offset: 0x00db6522, size: 206 bytes, params: 3, frame: 15
|
|
var environment;
|
|
var errorIds;
|
|
var beforeErrorSampling;
|
|
var moduleValue;
|
|
const env0_0 = a0;
|
|
let value = a0.getContext();
|
|
if (a1.event_id && value.errorIds.size < 100) {
|
|
errorIds = value.errorIds;
|
|
errorIds.add(a1.event_id);
|
|
}
|
|
if (a0.recordingMode === 'buffer') {
|
|
if (a1.tags) {
|
|
if (a1.tags.replayId) {
|
|
beforeErrorSampling = a0.getOptions().beforeErrorSampling;
|
|
if (typeof beforeErrorSampling !== 'function') {
|
|
value = environment.__proto__.__proto__;
|
|
moduleValue = require(1041) /* metro dependency 1041 */;
|
|
moduleValue.setTimeout(env2_2(_fun11690));
|
|
return undefined;
|
|
}
|
|
if (beforeErrorSampling(a1)) {
|
|
value = environment.__proto__.__proto__;
|
|
moduleValue = require(1041) /* metro dependency 1041 */;
|
|
moduleValue.setTimeout(env2_2(_fun11690));
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
}
|
|
function* _fun11690() { // fn#11690, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:109583, offset: 0x00db65f9, size: 67 bytes, params: 1, frame: 12
|
|
var binding;
|
|
var sendBufferedReplayOrFlush;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var error;
|
|
if (true) {
|
|
value = environment.__proto__;
|
|
try {
|
|
binding = env1_0;
|
|
} catch (error) {
|
|
binding = env1_0;
|
|
binding.handleException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
sendBufferedReplayOrFlush = binding.sendBufferedReplayOrFlush;
|
|
} catch (error) {
|
|
binding = env1_0;
|
|
binding.handleException(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value3 = Reflect.apply(sendBufferedReplayOrFlush, binding, []);
|
|
} catch (error) {
|
|
binding = env1_0;
|
|
binding.handleException(error);
|
|
return undefined;
|
|
}
|
|
yield value3;
|
|
try {
|
|
value4 = undefined;
|
|
value5 = false;
|
|
} catch (error) {
|
|
binding = env1_0;
|
|
binding.handleException(error);
|
|
return undefined;
|
|
}
|
|
if (value5) {
|
|
return value4;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function handleBeforeSendEvent(a0) { // fn#11691, offset: 0x00db663c, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun11692;
|
|
function _fun11692(a0) { // fn#11692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:109720, offset: 0x00db664c, size: 248 bytes, params: 2, frame: 18
|
|
var r4;
|
|
var exception;
|
|
var value4;
|
|
var addBreadcrumbEventBinding;
|
|
var createBreadcrumbBinding;
|
|
var object2;
|
|
let binding = env0_0;
|
|
if (binding.isEnabled() && isErrorEvent_11683(a0)) {
|
|
binding = env0_0;
|
|
exception = a0.exception;
|
|
r4 = exception == null || exception.values == null || exception.values[0] == null ? undefined : exception.values[0].value;
|
|
if (typeof r4 === 'string') {
|
|
if (r4.match(RegExp('(reactjs\\.org\\/docs\\/error-decoder\\.html\\?invariant=|react\\.dev\\/errors\\/)(418|419|422|423|425)',
|
|
|
|
|
|
''))) {
|
|
value4 = environment.__proto__;
|
|
addBreadcrumbEventBinding = addBreadcrumbEvent;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
object2 = {};
|
|
object2.url = (require(826) /* metro dependency 826 */).getLocationHref();
|
|
addBreadcrumbEventBinding(binding, createBreadcrumbBinding({category: 'replay.hydrate-error',
|
|
data: object2}));
|
|
} else if (r4.match(RegExp('(does not match server-rendered HTML|Hydration failed because)', 'i'))) {
|
|
value4 = environment.__proto__;
|
|
addBreadcrumbEventBinding = addBreadcrumbEvent;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
object2 = {};
|
|
object2.url = (require(826) /* metro dependency 826 */).getLocationHref();
|
|
addBreadcrumbEventBinding(binding, createBreadcrumbBinding({category: 'replay.hydrate-error',
|
|
data: object2}));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function handleBreadcrumbs(a0) { // fn#11693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:110215, offset: 0x00db6744, size: 72 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
let value = Module00826Module;
|
|
value = value.getClient();
|
|
if (value) {
|
|
value.on('beforeAddBreadcrumb', _fun11694);
|
|
}
|
|
function _fun11694(a0) { // fn#11694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:110302, offset: 0x00db678c, size: 27 bytes, params: 2, frame: 13
|
|
beforeAddBreadcrumb(env0_0, a0);
|
|
function beforeAddBreadcrumb(a0, a1) { // fn#11695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:110321, offset: 0x00db67a7, size: 67 bytes, params: 3, frame: 14
|
|
var environment;
|
|
var value;
|
|
var value2;
|
|
if (a0.isEnabled()) {
|
|
value = environment.__proto__.__proto__;
|
|
if (isBreadcrumbWithCategory(a1)) {
|
|
value2 = ((a0) => {
|
|
if (isBreadcrumbWithCategory(a0)) {
|
|
if (['fetch', 'xhr', 'sentry.event', 'sentry.transaction'].includes(a0.category)) {
|
|
return null;
|
|
}
|
|
if (a0.category.startsWith('ui.')) {
|
|
return null;
|
|
}
|
|
if (a0.category === 'console') {
|
|
return _fun11697(a0);
|
|
}
|
|
return createBreadcrumb(a0);
|
|
}
|
|
return null;
|
|
})(a1);
|
|
if (value2) {
|
|
addBreadcrumbEvent(a0, value2);
|
|
}
|
|
return undefined;
|
|
}
|
|
}
|
|
function normalizeBreadcrumb(a0) { // fn#11696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:110416, owner: beforeAddBreadcrumb.normalizeBreadcrumb, offset: 0x00db67ea, size: 115 bytes, params: 2, frame: 14
|
|
var items2;
|
|
var includes;
|
|
var category;
|
|
if (isBreadcrumbWithCategory(a0)) {
|
|
items2 = ['fetch', 'xhr', 'sentry.event', 'sentry.transaction'];
|
|
includes = items2.includes;
|
|
category = a0.category;
|
|
if (Reflect.apply(includes, items2, [category])) {
|
|
return null;
|
|
}
|
|
category = a0.category;
|
|
if (category.startsWith('ui.')) {
|
|
return null;
|
|
}
|
|
category = a0.category;
|
|
if (category === 'console') {
|
|
return normalizeConsoleBreadcrumb(a0);
|
|
}
|
|
return createBreadcrumb(a0);
|
|
}
|
|
return null;
|
|
function normalizeConsoleBreadcrumb(a0) { // fn#11697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:110629, owner: beforeAddBreadcrumb.normalizeBreadcrumb.normalizeConsoleBreadcrumb, offset: 0x00db685d, size: 224 bytes, params: 2, frame: 25
|
|
var environment;
|
|
var value2;
|
|
var value3;
|
|
var createBreadcrumbBinding;
|
|
var Object;
|
|
var assign;
|
|
var Object2;
|
|
var value4;
|
|
const arguments = a0.data?.arguments;
|
|
const Array = global.Array;
|
|
if (Array.isArray(arguments)) {
|
|
if (arguments.length === 0) {
|
|
value4 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
return createBreadcrumb(a0);
|
|
}
|
|
var env0_0 = false;
|
|
value2 = arguments.map(_fun11698);
|
|
value3 = environment.__proto__.__proto__.__proto__.__proto__;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
Object2 = global.Object;
|
|
return createBreadcrumbBinding(Reflect.apply(assign, Object, [{}, a0, {data: Object2.assign({}, a0.data,
|
|
{arguments: value2}, env0_0 ? {_meta: {warnings: ['CONSOLE_ARG_TRUNCATED']}} : {})}]));
|
|
}
|
|
return createBreadcrumb(a0);
|
|
function _fun11698(a0) { // fn#11698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:110792, offset: 0x00db693d, size: 303 bytes, params: 2, frame: 19
|
|
var r0;
|
|
var value2;
|
|
var value3;
|
|
var property;
|
|
var moduleValue;
|
|
var value4;
|
|
var JSON;
|
|
var value5;
|
|
var length;
|
|
var binding;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var slice;
|
|
var value9;
|
|
var value10;
|
|
var error;
|
|
var value11;
|
|
let value = a0;
|
|
if (value) {
|
|
value2 = typeof value;
|
|
if (value2 === 'string') {
|
|
length = value.length;
|
|
value11 = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
if (length > env5_13) {
|
|
value = value.slice(0, env5_13);
|
|
value = '' + value + '…';
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
if (value2 !== 'object') {
|
|
return value;
|
|
}
|
|
try {
|
|
value3 = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
property = dependencyMap[9];
|
|
moduleValue = require(property);
|
|
value4 = moduleValue.normalize(value, 7);
|
|
JSON = global.JSON;
|
|
value5 = JSON.stringify(value4);
|
|
length = value5.length;
|
|
binding = env5_13;
|
|
value6 = length > binding;
|
|
if (value6) {
|
|
value7 = environment;
|
|
env0_0 = true;
|
|
JSON = global.JSON;
|
|
value8 = JSON.stringify(value4, null, 2);
|
|
slice = value8.slice;
|
|
binding = env5_13;
|
|
value9 = Reflect.apply(slice, value8, [0, binding]);
|
|
value10 = '' + value9 + '…';
|
|
r0 = value10;
|
|
} else {
|
|
r0 = value4;
|
|
}
|
|
} catch (error) {
|
|
return value;
|
|
}
|
|
return r0;
|
|
}
|
|
return value;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function resetReplayIdOnDynamicSamplingContext() { // fn#11700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:111321, offset: 0x00db6a7c, size: 124 bytes, params: 1, frame: 13
|
|
var value;
|
|
const currentScope = (require(826) /* metro dependency 826 */).getCurrentScope();
|
|
const getPropagationContext = currentScope.getPropagationContext;
|
|
const dsc = Reflect.apply(getPropagationContext, currentScope, []).dsc;
|
|
if (dsc) {
|
|
delete dsc.replay_id;
|
|
}
|
|
const activeSpan = (require(826) /* metro dependency 826 */).getActiveSpan();
|
|
if (activeSpan) {
|
|
value = require(826) /* metro dependency 826 */;
|
|
delete value.getDynamicSamplingContextFromSpan(activeSpan).replay_id;
|
|
}
|
|
}
|
|
|
|
function handleGlobalEventListener(a0) { // fn#11701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:111547, offset: 0x00db6af8, size: 47 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
const Object = global.Object;
|
|
return Object.assign(_fun11702, {id: 'Replay'});
|
|
function _fun11702(a0, a1) { // fn#11702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:111607, offset: 0x00db6b27, size: 635 bytes, params: 3, frame: 22
|
|
var environment;
|
|
var r4;
|
|
var r6;
|
|
var r5;
|
|
var type;
|
|
var value2;
|
|
var isErrorEvent_11683Binding;
|
|
var value3;
|
|
var exception;
|
|
var values;
|
|
var originalException;
|
|
var Object;
|
|
var assign;
|
|
var tags;
|
|
var object;
|
|
var session;
|
|
let binding = env0_0;
|
|
if (binding.isEnabled()) {
|
|
binding = env0_0;
|
|
if (binding.isPaused()) {
|
|
return a0;
|
|
}
|
|
type = a0.type;
|
|
if (type === 'replay_event') {
|
|
delete a0.breadcrumbs;
|
|
return a0;
|
|
}
|
|
value2 = environment.__proto__;
|
|
isErrorEvent_11683Binding = isErrorEvent_11683;
|
|
value3 = undefined;
|
|
if (isErrorEvent_11683Binding(a0)) {
|
|
binding = env0_0;
|
|
if (binding.checkAndHandleExpiredSession()) {
|
|
if (isFeedbackEvent(a0)) {
|
|
binding = env0_0;
|
|
binding.flush();
|
|
a0.contexts.feedback.replay_id = binding.getSessionId();
|
|
((a0, a1) => {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
a0.triggerUserActivity();
|
|
a0.addUpdate(_fun11704);
|
|
})(binding, a0);
|
|
return a0;
|
|
}
|
|
type = a0.type;
|
|
if (type) {
|
|
r4 = type;
|
|
r6 = value3;
|
|
} else {
|
|
exception = a0.exception;
|
|
r4 = exception == null;
|
|
r6 = exception;
|
|
}
|
|
if (r4) {
|
|
r5 = r6;
|
|
} else {
|
|
values = r6.values;
|
|
r4 = values == null;
|
|
r5 = values;
|
|
}
|
|
r4 = !r4 ? !r5.length : r4;
|
|
if (r4) {
|
|
r5 = value3;
|
|
} else {
|
|
originalException = a1.originalException;
|
|
r4 = originalException == null;
|
|
r5 = originalException;
|
|
}
|
|
r4 = !r4 ? !r5.__rrweb__ : r4;
|
|
if (r4) {
|
|
binding = env0_0;
|
|
r4 = binding.recordingMode === 'buffer' && a0.message !== env1_11;
|
|
r4 = r4 && !(a0.exception ? a0.type : !a0.exception);
|
|
r4 = r4 && isSampled(binding.getOptions().errorSampleRate);
|
|
if (r4 || env0_0.recordingMode === 'session') {
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
tags = a0.tags;
|
|
object = {};
|
|
object.replayId = env0_0.getSessionId();
|
|
a0.tags = Reflect.apply(assign, Object, [{}, tags, object]);
|
|
}
|
|
if (r4) {
|
|
if (env0_0.recordingMode === 'buffer') {
|
|
session = env0_0.session;
|
|
if ((session == null ? value3 : session.sampled) === 'buffer') {
|
|
binding = env0_0;
|
|
session = binding.session;
|
|
session.dirty = true;
|
|
if (binding.getOptions().stickySession) {
|
|
saveSession(session);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
binding = env0_0;
|
|
if (binding.getOptions()._experiments.captureExceptions) {
|
|
binding = env0_0;
|
|
r4 = binding.recordingMode === 'buffer' && a0.message !== env1_11;
|
|
r4 = r4 && !(a0.exception ? a0.type : !a0.exception);
|
|
r4 = r4 && isSampled(binding.getOptions().errorSampleRate);
|
|
if (r4 || env0_0.recordingMode === 'session') {
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
tags = a0.tags;
|
|
object = {};
|
|
object.replayId = env0_0.getSessionId();
|
|
a0.tags = Reflect.apply(assign, Object, [{}, tags, object]);
|
|
}
|
|
if (r4) {
|
|
if (env0_0.recordingMode === 'buffer') {
|
|
session = env0_0.session;
|
|
if ((session == null ? value3 : session.sampled) === 'buffer') {
|
|
binding = env0_0;
|
|
session = binding.session;
|
|
session.dirty = true;
|
|
if (binding.getOptions().stickySession) {
|
|
saveSession(session);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
if (env1_69) {
|
|
env1_72.log('Ignoring error from rrweb internals', a0);
|
|
}
|
|
return null;
|
|
}
|
|
resetReplayIdOnDynamicSamplingContext();
|
|
return a0;
|
|
}
|
|
if (isTransactionEvent_11684(a0)) {
|
|
binding = env0_0;
|
|
if (binding.checkAndHandleExpiredSession()) {
|
|
if (isFeedbackEvent(a0)) {
|
|
binding = env0_0;
|
|
binding.flush();
|
|
a0.contexts.feedback.replay_id = binding.getSessionId();
|
|
((a0, a1) => {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
a0.triggerUserActivity();
|
|
a0.addUpdate(_fun11704);
|
|
})(binding, a0);
|
|
return a0;
|
|
}
|
|
type = a0.type;
|
|
if (type) {
|
|
r4 = type;
|
|
r6 = value3;
|
|
} else {
|
|
exception = a0.exception;
|
|
r4 = exception == null;
|
|
r6 = exception;
|
|
}
|
|
if (r4) {
|
|
r5 = r6;
|
|
} else {
|
|
values = r6.values;
|
|
r4 = values == null;
|
|
r5 = values;
|
|
}
|
|
r4 = !r4 ? !r5.length : r4;
|
|
if (r4) {
|
|
r5 = value3;
|
|
} else {
|
|
originalException = a1.originalException;
|
|
r4 = originalException == null;
|
|
r5 = originalException;
|
|
}
|
|
r4 = !r4 ? !r5.__rrweb__ : r4;
|
|
if (r4) {
|
|
binding = env0_0;
|
|
r4 = binding.recordingMode === 'buffer' && a0.message !== env1_11;
|
|
r4 = r4 && !(a0.exception ? a0.type : !a0.exception);
|
|
r4 = r4 && isSampled(binding.getOptions().errorSampleRate);
|
|
if (r4 || env0_0.recordingMode === 'session') {
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
tags = a0.tags;
|
|
object = {};
|
|
object.replayId = env0_0.getSessionId();
|
|
a0.tags = Reflect.apply(assign, Object, [{}, tags, object]);
|
|
}
|
|
if (r4) {
|
|
if (env0_0.recordingMode === 'buffer') {
|
|
session = env0_0.session;
|
|
if ((session == null ? value3 : session.sampled) === 'buffer') {
|
|
binding = env0_0;
|
|
session = binding.session;
|
|
session.dirty = true;
|
|
if (binding.getOptions().stickySession) {
|
|
saveSession(session);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
binding = env0_0;
|
|
if (binding.getOptions()._experiments.captureExceptions) {
|
|
binding = env0_0;
|
|
r4 = binding.recordingMode === 'buffer' && a0.message !== env1_11;
|
|
r4 = r4 && !(a0.exception ? a0.type : !a0.exception);
|
|
r4 = r4 && isSampled(binding.getOptions().errorSampleRate);
|
|
if (r4 || env0_0.recordingMode === 'session') {
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
tags = a0.tags;
|
|
object = {};
|
|
object.replayId = env0_0.getSessionId();
|
|
a0.tags = Reflect.apply(assign, Object, [{}, tags, object]);
|
|
}
|
|
if (r4) {
|
|
if (env0_0.recordingMode === 'buffer') {
|
|
session = env0_0.session;
|
|
if ((session == null ? value3 : session.sampled) === 'buffer') {
|
|
binding = env0_0;
|
|
session = binding.session;
|
|
session.dirty = true;
|
|
if (binding.getOptions().stickySession) {
|
|
saveSession(session);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
if (env1_69) {
|
|
env1_72.log('Ignoring error from rrweb internals', a0);
|
|
}
|
|
return null;
|
|
}
|
|
resetReplayIdOnDynamicSamplingContext();
|
|
return a0;
|
|
}
|
|
if (isFeedbackEvent(a0)) {
|
|
binding = env0_0;
|
|
if (binding.checkAndHandleExpiredSession()) {
|
|
if (isFeedbackEvent(a0)) {
|
|
binding = env0_0;
|
|
binding.flush();
|
|
a0.contexts.feedback.replay_id = binding.getSessionId();
|
|
((a0, a1) => {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
a0.triggerUserActivity();
|
|
a0.addUpdate(_fun11704);
|
|
})(binding, a0);
|
|
return a0;
|
|
}
|
|
type = a0.type;
|
|
if (type) {
|
|
r4 = type;
|
|
r6 = value3;
|
|
} else {
|
|
exception = a0.exception;
|
|
r4 = exception == null;
|
|
r6 = exception;
|
|
}
|
|
if (r4) {
|
|
r5 = r6;
|
|
} else {
|
|
values = r6.values;
|
|
r4 = values == null;
|
|
r5 = values;
|
|
}
|
|
r4 = !r4 ? !r5.length : r4;
|
|
if (r4) {
|
|
r5 = value3;
|
|
} else {
|
|
originalException = a1.originalException;
|
|
r4 = originalException == null;
|
|
r5 = originalException;
|
|
}
|
|
r4 = !r4 ? !r5.__rrweb__ : r4;
|
|
if (r4) {
|
|
binding = env0_0;
|
|
r4 = binding.recordingMode === 'buffer' && a0.message !== env1_11;
|
|
r4 = r4 && !(a0.exception ? a0.type : !a0.exception);
|
|
r4 = r4 && isSampled(binding.getOptions().errorSampleRate);
|
|
if (r4 || env0_0.recordingMode === 'session') {
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
tags = a0.tags;
|
|
object = {};
|
|
object.replayId = env0_0.getSessionId();
|
|
a0.tags = Reflect.apply(assign, Object, [{}, tags, object]);
|
|
}
|
|
if (r4) {
|
|
if (env0_0.recordingMode === 'buffer') {
|
|
session = env0_0.session;
|
|
if ((session == null ? value3 : session.sampled) === 'buffer') {
|
|
binding = env0_0;
|
|
session = binding.session;
|
|
session.dirty = true;
|
|
if (binding.getOptions().stickySession) {
|
|
saveSession(session);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
binding = env0_0;
|
|
if (binding.getOptions()._experiments.captureExceptions) {
|
|
binding = env0_0;
|
|
r4 = binding.recordingMode === 'buffer' && a0.message !== env1_11;
|
|
r4 = r4 && !(a0.exception ? a0.type : !a0.exception);
|
|
r4 = r4 && isSampled(binding.getOptions().errorSampleRate);
|
|
if (r4 || env0_0.recordingMode === 'session') {
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
tags = a0.tags;
|
|
object = {};
|
|
object.replayId = env0_0.getSessionId();
|
|
a0.tags = Reflect.apply(assign, Object, [{}, tags, object]);
|
|
}
|
|
if (r4) {
|
|
if (env0_0.recordingMode === 'buffer') {
|
|
session = env0_0.session;
|
|
if ((session == null ? value3 : session.sampled) === 'buffer') {
|
|
binding = env0_0;
|
|
session = binding.session;
|
|
session.dirty = true;
|
|
if (binding.getOptions().stickySession) {
|
|
saveSession(session);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
if (env1_69) {
|
|
env1_72.log('Ignoring error from rrweb internals', a0);
|
|
}
|
|
return null;
|
|
}
|
|
resetReplayIdOnDynamicSamplingContext();
|
|
return a0;
|
|
}
|
|
}
|
|
return a0;
|
|
function addFeedbackBreadcrumb(a0, a1) { // fn#11703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:112007, offset: 0x00db6da2, size: 46 bytes, params: 3, frame: 11
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
a0.triggerUserActivity();
|
|
a0.addUpdate(_fun11704);
|
|
function _fun11704() { // fn#11704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:112080, offset: 0x00db6dd0, size: 151 bytes, params: 1, frame: 16
|
|
var r0;
|
|
var binding;
|
|
var throttledAddEvent;
|
|
var object;
|
|
var value3;
|
|
let timestamp = require.timestamp;
|
|
if (timestamp) {
|
|
binding = env0_0;
|
|
throttledAddEvent = binding.throttledAddEvent;
|
|
object = {};
|
|
value3 = environment.__proto__.__proto__.__proto__;
|
|
object.type = env3_37.Custom;
|
|
timestamp = require.timestamp;
|
|
object.timestamp = 1000 * timestamp;
|
|
timestamp = require.timestamp;
|
|
object.data = {tag: 'breadcrumb', payload: {'timestamp': null, 'type': 'default', 'category': 'sentry.feedback',
|
|
timestamp: timestamp, data: {feedbackId: require.event_id}}};
|
|
Reflect.apply(throttledAddEvent, binding, [object]);
|
|
r0 = false;
|
|
} else {
|
|
r0 = !timestamp;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function createPerformanceSpans(a0, a1) { // fn#11705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:113036, offset: 0x00db6e67, size: 29 bytes, params: 3, frame: 11
|
|
const env0_0 = a0;
|
|
return a1.map(_fun11706);
|
|
function _fun11706({type, start, end, name, data}) { // fn#11706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:113087, offset: 0x00db6e84, size: 148 bytes, params: 2, frame: 18
|
|
const binding = env0_0;
|
|
const throttledAddEvent = binding.throttledAddEvent;
|
|
let value = environment.__proto__;
|
|
const Custom = env1_37.Custom;
|
|
value = Reflect.apply(throttledAddEvent, binding, [{type: Custom, timestamp: start, data: {tag: 'performanceSpan',
|
|
payload: {op: type, description: name, startTimestamp: start, endTimestamp: end, data: data}}}]);
|
|
return typeof value !== 'string' ? value : global.Promise.resolve(null);
|
|
}
|
|
|
|
}
|
|
|
|
function handleHistorySpanListener(a0) { // fn#11707, offset: 0x00db6f18, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun11708;
|
|
function _fun11708(a0) { // fn#11708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:113393, offset: 0x00db6f28, size: 175 bytes, params: 2, frame: 15
|
|
var from;
|
|
var to;
|
|
var value3;
|
|
var object;
|
|
var urls;
|
|
let binding = object3;
|
|
if (binding.isEnabled()) {
|
|
from = a0.from;
|
|
to = a0.to;
|
|
value3 = global.Date.now() / 1000;
|
|
object = {type: 'navigation.push', start: value3, end: value3, name: to};
|
|
object.data = {previous: from};
|
|
var object3 = object;
|
|
if (object !== null) {
|
|
binding = object3;
|
|
urls = binding.getContext().urls;
|
|
urls.push(object.name);
|
|
binding.triggerUserActivity();
|
|
binding.addUpdate(_fun11709);
|
|
}
|
|
}
|
|
function _fun11709() { // fn#11709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:113647, offset: 0x00db6fd7, size: 41 bytes, params: 1, frame: 13
|
|
createPerformanceSpans(env1_0, [env0_0]);
|
|
return false;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function addNetworkBreadcrumb(a0, a1) { // fn#11710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:113704, offset: 0x00db7000, size: 160 bytes, params: 3, frame: 19
|
|
var r1;
|
|
var name;
|
|
var binding;
|
|
var isSentryRequestUrl;
|
|
var moduleValue;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
let value = a0.isEnabled();
|
|
if (value && a1 !== null) {
|
|
name = a1.name;
|
|
binding = env0_69;
|
|
r1 = binding ? !a0.getOptions()._experiments.traceInternals : !binding;
|
|
if (r1) {
|
|
value = require(826) /* metro dependency 826 */;
|
|
isSentryRequestUrl = value.isSentryRequestUrl;
|
|
moduleValue = require(826) /* metro dependency 826 */;
|
|
value = Reflect.apply(isSentryRequestUrl, value, [name, moduleValue.getClient()]);
|
|
r1 = value;
|
|
}
|
|
if (!r1) {
|
|
a0.addUpdate(_fun11711);
|
|
}
|
|
}
|
|
function _fun11711() { // fn#11711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:113932, offset: 0x00db70a0, size: 38 bytes, params: 1, frame: 13
|
|
createPerformanceSpans(env0_0, [require]);
|
|
return true;
|
|
}
|
|
|
|
}
|
|
|
|
function getBodySize(a0) { // fn#11712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:113987, offset: 0x00db70c6, size: 267 bytes, params: 2, frame: 15
|
|
var TextEncoder;
|
|
var prototype;
|
|
var value;
|
|
var textEncoder;
|
|
var value2;
|
|
var URLSearchParams;
|
|
var value3;
|
|
var FormData;
|
|
var value4;
|
|
var Blob;
|
|
var ArrayBuffer;
|
|
var byteLength;
|
|
var size;
|
|
var value5;
|
|
var property;
|
|
var moduleValue;
|
|
var serializeFormData;
|
|
var value6;
|
|
var encode;
|
|
var length;
|
|
var toString;
|
|
var value7;
|
|
var error;
|
|
reduciblePort52: while (true) {
|
|
exceptionLanding51: while (true) {
|
|
if (a0) {
|
|
TextEncoder = global.TextEncoder;
|
|
prototype = TextEncoder.prototype;
|
|
value = Object.create(prototype, {constructor: {value: TextEncoder}});
|
|
textEncoder = new TextEncoder();
|
|
value = textEncoder instanceof Object ? textEncoder : value;
|
|
try {
|
|
value2 = typeof a0 === 'string';
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
if (value2) {
|
|
try {
|
|
encode = value.encode;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
value = Reflect.apply(encode, value, [a0]);
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
length = value.length;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
return length;
|
|
}
|
|
try {
|
|
URLSearchParams = global.URLSearchParams;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
value3 = a0 instanceof URLSearchParams;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
if (value3) {
|
|
try {
|
|
encode = value.encode;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
toString = a0.toString;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(toString, a0, []);
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
value = Reflect.apply(encode, value, [value7]);
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
length = value.length;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
return length;
|
|
}
|
|
try {
|
|
FormData = global.FormData;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
value4 = a0 instanceof FormData;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
if (value4) {
|
|
value5 = environment;
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
property = dependencyMap[10];
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
moduleValue = require(property);
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
serializeFormData = moduleValue.serializeFormData;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
value6 = Reflect.apply(serializeFormData, moduleValue, [a0]);
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
encode = value.encode;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
value = Reflect.apply(encode, value, [value6]);
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
length = value.length;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
return length;
|
|
}
|
|
try {
|
|
Blob = global.Blob;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
value = a0 instanceof Blob;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
if (value) {
|
|
try {
|
|
size = a0.size;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
return size;
|
|
}
|
|
try {
|
|
ArrayBuffer = global.ArrayBuffer;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
value = a0 instanceof ArrayBuffer;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
if (value) {
|
|
try {
|
|
byteLength = a0.byteLength;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
return byteLength;
|
|
}
|
|
break reduciblePort52;
|
|
}
|
|
break reduciblePort52;
|
|
}
|
|
break reduciblePort52;
|
|
}
|
|
}
|
|
|
|
function mergeWarning(a0, a1) { // fn#11714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:114433, offset: 0x00db7201, size: 137 bytes, params: 3, frame: 17
|
|
var r7;
|
|
var items2;
|
|
var Object;
|
|
var value;
|
|
if (a0) {
|
|
Object = global.Object;
|
|
value = Object.assign({}, a0._meta);
|
|
r7 = value.warnings || [];
|
|
items2 = [];
|
|
value.warnings = items2.concat(Module00065Module(r7), [a1]);
|
|
a0._meta = value;
|
|
return a0;
|
|
}
|
|
return {headers: {}, size: undefined, _meta: {warnings: [a1]}};
|
|
}
|
|
|
|
function buildNetworkRequestOrResponse(a0, a1, a2) { // fn#11717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:114936, offset: 0x00db7325, size: 136 bytes, params: 4, frame: 13
|
|
var object;
|
|
var value;
|
|
var body;
|
|
var warnings;
|
|
if (a1) {
|
|
if (a1) {
|
|
object = {headers: a0, size: a1};
|
|
if (a2) {
|
|
value = normalizeNetworkBody(a2);
|
|
body = value.body;
|
|
warnings = value.warnings;
|
|
object.body = body;
|
|
value = warnings != null;
|
|
if (value && warnings.length) {
|
|
object._meta = {warnings: warnings};
|
|
}
|
|
return object;
|
|
}
|
|
return object;
|
|
}
|
|
return {headers: a0};
|
|
}
|
|
const Object = global.Object;
|
|
if (Object.keys(a0).length !== 0) {
|
|
if (a1) {
|
|
object = {headers: a0, size: a1};
|
|
if (a2) {
|
|
value = normalizeNetworkBody(a2);
|
|
body = value.body;
|
|
warnings = value.warnings;
|
|
object.body = body;
|
|
value = warnings != null;
|
|
if (value && warnings.length) {
|
|
object._meta = {warnings: warnings};
|
|
}
|
|
return object;
|
|
}
|
|
return object;
|
|
}
|
|
return {headers: a0};
|
|
}
|
|
function normalizeNetworkBody(a0) { // fn#11718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:115097, owner: buildNetworkRequestOrResponse.normalizeNetworkBody, offset: 0x00db73ad, size: 273 bytes, params: 2, frame: 17
|
|
var r0;
|
|
var length;
|
|
var value;
|
|
var value2;
|
|
var property;
|
|
var property2;
|
|
var object;
|
|
var JSON;
|
|
var error;
|
|
if (a0) {
|
|
if (typeof a0 !== 'string') {
|
|
return {body: a0};
|
|
}
|
|
length = a0.length;
|
|
value = environment.__proto__;
|
|
value2 = length > env1_12;
|
|
property = a0[0];
|
|
length = a0.length;
|
|
property2 = a0[length - 1];
|
|
r0 = property === '[' && property2 === ']';
|
|
r0 = !r0 ? property === '{' && property2 === '}' : r0;
|
|
if (value2) {
|
|
value = a0.slice(0, env1_12);
|
|
object = {};
|
|
if (r0) {
|
|
object.body = value;
|
|
object.warnings = ['MAYBE_JSON_TRUNCATED'];
|
|
} else {
|
|
object.body = '' + value + '…';
|
|
object.warnings = ['TEXT_TRUNCATED'];
|
|
}
|
|
return object;
|
|
}
|
|
if (r0) {
|
|
try {
|
|
object = {};
|
|
JSON = global.JSON;
|
|
value = JSON.parse(a0);
|
|
object.body = value;
|
|
} catch (error) {
|
|
return {body: a0};
|
|
}
|
|
return object;
|
|
}
|
|
}
|
|
return {body: a0};
|
|
}
|
|
|
|
}
|
|
|
|
function getAllowedHeaders(a0, a1) { // fn#11719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:115563, offset: 0x00db74be, size: 56 bytes, params: 3, frame: 13
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const Object = global.Object;
|
|
return Object.entries(a0).reduce(_fun11720, {});
|
|
function _fun11720(a0, a1) { // fn#11720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:115628, offset: 0x00db74f6, size: 84 bytes, params: 3, frame: 16
|
|
let value = environment.__proto__;
|
|
value = env1_6(a1, 2);
|
|
const property = value[0];
|
|
const property2 = value[1];
|
|
value = property.toLowerCase();
|
|
if (require.includes(value) && env0_0[property]) {
|
|
a0[value] = property2;
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
}
|
|
|
|
function urlMatches(a0, a1) { // fn#11721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:115732, offset: 0x00db754a, size: 57 bytes, params: 3, frame: 14
|
|
return (Module00826Module).stringMatchesSomePattern(getFullUrl(a0), a1);
|
|
function getFullUrl(a0) { // fn#11722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:115763, owner: urlMatches.getFullUrl, offset: 0x00db7583, size: 321 bytes, params: 2, frame: 16
|
|
const GLOBAL_OBJ = (Module00826Module).GLOBAL_OBJ;
|
|
const r5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : GLOBAL_OBJ.document.baseURI;
|
|
let startsWith = a0.startsWith;
|
|
if (Reflect.apply(startsWith, a0, ['http://'])) {
|
|
return a0;
|
|
}
|
|
if (a0.startsWith('https://')) {
|
|
return a0;
|
|
}
|
|
startsWith = a0.startsWith;
|
|
const value = environment.__proto__;
|
|
let origin = GLOBAL_OBJ.location.origin;
|
|
if (Reflect.apply(startsWith, a0, [origin])) {
|
|
return a0;
|
|
}
|
|
let URL = global.URL;
|
|
let uRL = new URL(a0);
|
|
origin = uRL.origin;
|
|
URL = global.URL;
|
|
const value2 = Object.create(URL.prototype, {constructor: {value: URL}});
|
|
uRL = new URL();
|
|
if (origin !== (uRL instanceof Object ? uRL : value2).origin) {
|
|
return a0;
|
|
}
|
|
const href = uRL.href;
|
|
if (!a0.endsWith('/')) {
|
|
if (href.endsWith('/')) {
|
|
return href.slice(0, -1);
|
|
}
|
|
}
|
|
return href;
|
|
}
|
|
|
|
}
|
|
|
|
function _captureFetchBreadcrumbToReplay() { // fn#11723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:116184, offset: 0x00db76c4, size: 47 bytes, params: 1, frame: 14
|
|
return env0_2(_fun11725).apply(this, arguments);
|
|
function* _fun11725(a0, a1, a2) { // fn#11725, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:116269, offset: 0x00db76fc, size: 139 bytes, params: 4, frame: 18
|
|
var environment;
|
|
var _prepareFetchData2;
|
|
var value3;
|
|
var binding;
|
|
var replay;
|
|
var error;
|
|
let value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to capture fetch breadcrumb');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
_prepareFetchData2 = _prepareFetchData;
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to capture fetch breadcrumb');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
value = _prepareFetchData2(a0, a1, a2);
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to capture fetch breadcrumb');
|
|
}
|
|
return undefined;
|
|
}
|
|
yield value;
|
|
try {
|
|
value = undefined;
|
|
value3 = false;
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to capture fetch breadcrumb');
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value3) {
|
|
return value;
|
|
}
|
|
try {
|
|
binding = env2_209;
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to capture fetch breadcrumb');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
value = binding('resource.fetch', value);
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to capture fetch breadcrumb');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_205;
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to capture fetch breadcrumb');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
replay = a2.replay;
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to capture fetch breadcrumb');
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding(replay, value);
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to capture fetch breadcrumb');
|
|
}
|
|
}
|
|
function _prepareFetchData(a0, a1, a2) { // fn#11726, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:116302, offset: 0x00db7787, size: 29 bytes, params: 4, frame: 13
|
|
return env3_215.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _prepareFetchData2() { // fn#11727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:116599, offset: 0x00db77a4, size: 47 bytes, params: 1, frame: 14
|
|
return env0_2(_fun11729).apply(this, arguments);
|
|
function* _fun11729({data}, a1, a2) { // fn#11729, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:116658, offset: 0x00db77dc, size: 263 bytes, params: 4, frame: 27
|
|
var environment;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
const Date = global.Date;
|
|
value = Date.now();
|
|
const startTimestamp = a1.startTimestamp;
|
|
const r8 = startTimestamp !== undefined ? startTimestamp : value;
|
|
const endTimestamp = a1.endTimestamp;
|
|
const r7 = endTimestamp !== undefined ? endTimestamp : value;
|
|
const url = data.url;
|
|
const method = data.method;
|
|
const status_code = data.status_code;
|
|
const r4 = status_code === undefined ? 0 : status_code;
|
|
const request_body_size = data.request_body_size;
|
|
const response_body_size = data.response_body_size;
|
|
value = environment.__proto__.__proto__;
|
|
const r9 = env2_213(url, a2.networkDetailAllowUrls) && !env2_213(url, a2.networkDetailDenyUrls);
|
|
const r3 = r9 ? _getRequestInfo(a2, a1.input, request_body_size) : env2_210(request_body_size);
|
|
yield _getResponseInfo(r9, a2, a1.response, response_body_size);
|
|
value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
return {startTimestamp: r8, endTimestamp: r7, url: url, method: method, statusCode: r4, request: r3,
|
|
response: value};
|
|
function _getRequestInfo({networkCaptureBodies, networkRequestHeaders}, a1, a2) { // fn#11730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:116953, offset: 0x00db78e3, size: 249 bytes, params: 4, frame: 20
|
|
var r0;
|
|
var r5;
|
|
var value;
|
|
var binding;
|
|
var binding2;
|
|
var value6;
|
|
var property;
|
|
var property2;
|
|
var value7;
|
|
if (a1) {
|
|
if (a1.length !== 1) {
|
|
if (a1.length === 2) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
value = env3_219(a1[1], networkRequestHeaders);
|
|
r0 = value;
|
|
} else {
|
|
r0 = {};
|
|
}
|
|
} else if (typeof a1[0] !== 'string') {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
value = env3_219(a1[0], networkRequestHeaders);
|
|
r0 = value;
|
|
} else if (a1.length === 2) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
value = env3_219(a1[1], networkRequestHeaders);
|
|
r0 = value;
|
|
} else {
|
|
r0 = {};
|
|
}
|
|
r5 = r0;
|
|
} else {
|
|
r5 = {};
|
|
}
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
if (networkCaptureBodies) {
|
|
binding = env3_0;
|
|
binding2 = env3_1;
|
|
value6 = env3_6(binding(binding2[10]).getBodyString(binding(binding2[10]).getFetchRequestArgBody(a1), env3_72),
|
|
2);
|
|
property = value6[0];
|
|
property2 = value6[1];
|
|
value7 = env3_211(r5, a2, property);
|
|
if (property2) {
|
|
return env3_208(value7, property2);
|
|
}
|
|
return value7;
|
|
}
|
|
return env3_211(r5, a2, undefined);
|
|
}
|
|
|
|
function _getResponseInfo(a0, a1, a2, a3) { // fn#11731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:117513, offset: 0x00db79dc, size: 29 bytes, params: 5, frame: 13
|
|
return env3_216.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _getResponseInfo2() { // fn#11732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:117747, offset: 0x00db79f9, size: 47 bytes, params: 1, frame: 14
|
|
return env0_2(_fun11734).apply(this, arguments);
|
|
function* _fun11734(a0, {networkCaptureBodies, networkResponseHeaders}, a2, a3) { // fn#11734, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:117804, offset: 0x00db7a31, size: 393 bytes, params: 5, frame: 25
|
|
var environment;
|
|
var r2;
|
|
var r11;
|
|
var r9;
|
|
var r4;
|
|
var object;
|
|
var binding;
|
|
var headers;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var property;
|
|
var property2;
|
|
var responseBodySize;
|
|
var captureDetails;
|
|
var value7;
|
|
var length;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var error;
|
|
var exception;
|
|
var value12;
|
|
let value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
if (!a0) {
|
|
reducibleJoin4: while (true) {
|
|
if (a3 !== undefined) {
|
|
value = environment.__proto__.__proto__;
|
|
return env2_210(a3);
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
}
|
|
if (a2) {
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_218;
|
|
headers = a2.headers;
|
|
value = binding(headers, networkResponseHeaders);
|
|
r2 = value;
|
|
} else {
|
|
r2 = {};
|
|
}
|
|
if (a2) {
|
|
reducibleJoin10: while (true) {
|
|
reducibleJoin12: while (true) {
|
|
if (networkCaptureBodies) {
|
|
value = undefined;
|
|
yield _parseFetchResponseBody(a2);
|
|
break reducibleJoin12;
|
|
}
|
|
if (a3 === undefined) {
|
|
value = undefined;
|
|
yield _parseFetchResponseBody(a2);
|
|
break reducibleJoin12;
|
|
}
|
|
break reducibleJoin10;
|
|
}
|
|
value3 = undefined;
|
|
value4 = false;
|
|
if (value4) {
|
|
return value3;
|
|
}
|
|
value5 = environment.__proto__.__proto__;
|
|
value6 = env2_6(value3, 2);
|
|
property = value6[0];
|
|
property2 = value6[1];
|
|
object = {networkCaptureBodies: networkCaptureBodies, responseBodySize: a3, captureDetails: a0,
|
|
headers: r2};
|
|
networkCaptureBodies = object.networkCaptureBodies;
|
|
responseBodySize = object.responseBodySize;
|
|
captureDetails = object.captureDetails;
|
|
headers = object.headers;
|
|
reducibleJoin21: while (true) {
|
|
reduciblePort38: while (true) {
|
|
exceptionLanding35: while (true) {
|
|
try {
|
|
value7 = property == null;
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
reducibleJoin25: while (true) {
|
|
reducibleJoin21: while (true) {
|
|
if (value7) {
|
|
break reducibleJoin21;
|
|
}
|
|
try {
|
|
length = property.length;
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
if (length) {
|
|
try {
|
|
value8 = value === responseBodySize;
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
if (value8) {
|
|
try {
|
|
binding = env2_206;
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
value9 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
r11 = value9;
|
|
break reducibleJoin25;
|
|
}
|
|
break reducibleJoin21;
|
|
}
|
|
break reducibleJoin21;
|
|
}
|
|
r11 = responseBodySize;
|
|
break reducibleJoin25;
|
|
}
|
|
if (captureDetails) {
|
|
try {
|
|
binding = env2_211;
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
reducibleJoin33: while (true) {
|
|
if (networkCaptureBodies) {
|
|
r9 = property;
|
|
break reducibleJoin33;
|
|
}
|
|
r9 = value;
|
|
break reducibleJoin33;
|
|
}
|
|
try {
|
|
value11 = binding(headers, r11, r9);
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
r4 = value11;
|
|
} else {
|
|
try {
|
|
binding = env2_210;
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
value10 = binding(r11);
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
r4 = value10;
|
|
}
|
|
break reduciblePort38;
|
|
}
|
|
reducibleJoin37: while (true) {
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
exception = binding.exception;
|
|
Reflect.apply(exception, binding, [error, 'Failed to serialize response body']);
|
|
break reducibleJoin37;
|
|
}
|
|
break reducibleJoin37;
|
|
}
|
|
value12 = env2_211(headers, responseBodySize, value);
|
|
r4 = value12;
|
|
break reduciblePort38;
|
|
}
|
|
reducibleJoin40: while (true) {
|
|
if (property2) {
|
|
value = env2_208(r4, property2);
|
|
r2 = value;
|
|
break reducibleJoin40;
|
|
}
|
|
r2 = r4;
|
|
break reducibleJoin40;
|
|
}
|
|
return r2;
|
|
}
|
|
r11 = responseBodySize;
|
|
if (captureDetails) {
|
|
try {
|
|
binding = env2_211;
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
reducibleJoin33: while (true) {
|
|
if (networkCaptureBodies) {
|
|
r9 = property;
|
|
break reducibleJoin33;
|
|
}
|
|
r9 = value;
|
|
break reducibleJoin33;
|
|
}
|
|
try {
|
|
value11 = binding(headers, r11, r9);
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
r4 = value11;
|
|
} else {
|
|
try {
|
|
binding = env2_210;
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
value10 = binding(r11);
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
r4 = value10;
|
|
}
|
|
reducibleJoin40: while (true) {
|
|
if (property2) {
|
|
value = env2_208(r4, property2);
|
|
r2 = value;
|
|
break reducibleJoin40;
|
|
}
|
|
r2 = r4;
|
|
break reducibleJoin40;
|
|
}
|
|
return r2;
|
|
}
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
return env2_211(r2, a3, undefined);
|
|
function _parseFetchResponseBody(a0) { // fn#11735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:118065, offset: 0x00db7bba, size: 29 bytes, params: 2, frame: 13
|
|
return env3_217.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _parseFetchResponseBody2() { // fn#11736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:118709, offset: 0x00db7bd7, size: 47 bytes, params: 1, frame: 14
|
|
return env0_2(_fun11738).apply(this, arguments);
|
|
function* _fun11738(a0) { // fn#11738, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:118780, offset: 0x00db7c0f, size: 304 bytes, params: 2, frame: 18
|
|
var environment;
|
|
var r4;
|
|
var items2;
|
|
var value3;
|
|
var error;
|
|
var value4;
|
|
var binding;
|
|
var items3;
|
|
var closure;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var Error;
|
|
var message;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = undefined;
|
|
try {
|
|
value3 = a0.clone();
|
|
r4 = value3;
|
|
} catch (error) {
|
|
value4 = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to clone response body');
|
|
r4 = value;
|
|
} else {
|
|
r4 = value;
|
|
}
|
|
}
|
|
if (r4) {
|
|
try {
|
|
} catch (error) {
|
|
Error = global.Error;
|
|
if (error instanceof Error) {
|
|
message = error.message;
|
|
value8 = message.indexOf('Timeout');
|
|
if (value8 > -1) {
|
|
value10 = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.warn('Parsing text body from response timed out');
|
|
}
|
|
items2 = [value, 'BODY_PARSE_TIMEOUT'];
|
|
} else {
|
|
value9 = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to get text body from response');
|
|
}
|
|
items2 = [value, 'BODY_PARSE_ERROR'];
|
|
}
|
|
} else {
|
|
value9 = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to get text body from response');
|
|
}
|
|
items2 = [value, 'BODY_PARSE_ERROR'];
|
|
}
|
|
return items2;
|
|
}
|
|
try {
|
|
closure = function(a0) {
|
|
var env0_0 = a0;
|
|
var Promise = global.Promise;
|
|
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
var value2 = new Promise(_fun11740);
|
|
return value2 instanceof Object ? value2 : value;
|
|
};
|
|
} catch (error) {
|
|
Error = global.Error;
|
|
if (error instanceof Error) {
|
|
message = error.message;
|
|
value8 = message.indexOf('Timeout');
|
|
if (value8 > -1) {
|
|
value10 = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.warn('Parsing text body from response timed out');
|
|
}
|
|
items2 = [value, 'BODY_PARSE_TIMEOUT'];
|
|
} else {
|
|
value9 = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to get text body from response');
|
|
}
|
|
items2 = [value, 'BODY_PARSE_ERROR'];
|
|
}
|
|
} else {
|
|
value9 = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to get text body from response');
|
|
}
|
|
items2 = [value, 'BODY_PARSE_ERROR'];
|
|
}
|
|
return items2;
|
|
}
|
|
try {
|
|
value5 = closure(r4);
|
|
} catch (error) {
|
|
Error = global.Error;
|
|
if (error instanceof Error) {
|
|
message = error.message;
|
|
value8 = message.indexOf('Timeout');
|
|
if (value8 > -1) {
|
|
value10 = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.warn('Parsing text body from response timed out');
|
|
}
|
|
items2 = [value, 'BODY_PARSE_TIMEOUT'];
|
|
} else {
|
|
value9 = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to get text body from response');
|
|
}
|
|
items2 = [value, 'BODY_PARSE_ERROR'];
|
|
}
|
|
} else {
|
|
value9 = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to get text body from response');
|
|
}
|
|
items2 = [value, 'BODY_PARSE_ERROR'];
|
|
}
|
|
return items2;
|
|
}
|
|
yield value5;
|
|
try {
|
|
value6 = undefined;
|
|
value7 = false;
|
|
} catch (error) {
|
|
Error = global.Error;
|
|
if (error instanceof Error) {
|
|
message = error.message;
|
|
value8 = message.indexOf('Timeout');
|
|
if (value8 > -1) {
|
|
value10 = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.warn('Parsing text body from response timed out');
|
|
}
|
|
items2 = [value, 'BODY_PARSE_TIMEOUT'];
|
|
} else {
|
|
value9 = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to get text body from response');
|
|
}
|
|
items2 = [value, 'BODY_PARSE_ERROR'];
|
|
}
|
|
} else {
|
|
value9 = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to get text body from response');
|
|
}
|
|
items2 = [value, 'BODY_PARSE_ERROR'];
|
|
}
|
|
return items2;
|
|
}
|
|
if (value7) {
|
|
return value6;
|
|
}
|
|
try {
|
|
items3 = [];
|
|
} catch (error) {
|
|
Error = global.Error;
|
|
if (error instanceof Error) {
|
|
message = error.message;
|
|
value8 = message.indexOf('Timeout');
|
|
if (value8 > -1) {
|
|
value10 = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.warn('Parsing text body from response timed out');
|
|
}
|
|
items2 = [value, 'BODY_PARSE_TIMEOUT'];
|
|
} else {
|
|
value9 = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to get text body from response');
|
|
}
|
|
items2 = [value, 'BODY_PARSE_ERROR'];
|
|
}
|
|
} else {
|
|
value9 = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to get text body from response');
|
|
}
|
|
items2 = [value, 'BODY_PARSE_ERROR'];
|
|
}
|
|
return items2;
|
|
}
|
|
try {
|
|
items3[0] = value6;
|
|
} catch (error) {
|
|
Error = global.Error;
|
|
if (error instanceof Error) {
|
|
message = error.message;
|
|
value8 = message.indexOf('Timeout');
|
|
if (value8 > -1) {
|
|
value10 = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.warn('Parsing text body from response timed out');
|
|
}
|
|
items2 = [value, 'BODY_PARSE_TIMEOUT'];
|
|
} else {
|
|
value9 = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to get text body from response');
|
|
}
|
|
items2 = [value, 'BODY_PARSE_ERROR'];
|
|
}
|
|
} else {
|
|
value9 = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to get text body from response');
|
|
}
|
|
items2 = [value, 'BODY_PARSE_ERROR'];
|
|
}
|
|
return items2;
|
|
}
|
|
return items3;
|
|
}
|
|
return [value, 'BODY_PARSE_ERROR'];
|
|
function _tryGetResponseText(a0) { // fn#11739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:118972, offset: 0x00db7d3f, size: 44 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
const Promise = global.Promise;
|
|
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
const promise = new Promise(_fun11740);
|
|
return promise instanceof Object ? promise : value;
|
|
function _fun11740(a0, a1) { // fn#11740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:119024, offset: 0x00db7d6b, size: 123 bytes, params: 3, frame: 15
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
let value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
const env0_2 = env4_0(env4_1[10]).setTimeout(_fun11741, 500);
|
|
value = _getResponseText(env0_0);
|
|
value = value.then(_fun11743, function(a0) {
|
|
return require(a0);
|
|
});
|
|
value.finally(_fun11745);
|
|
function _fun11741() { // fn#11741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:119065, offset: 0x00db7de6, size: 50 bytes, params: 1, frame: 12
|
|
const Error = global.Error;
|
|
return require(new Error('Timeout while trying to read response body'));
|
|
}
|
|
|
|
function _getResponseText(a0) { // fn#11742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:119150, offset: 0x00db7e18, size: 29 bytes, params: 2, frame: 13
|
|
return env5_220.apply(this, arguments);
|
|
}
|
|
|
|
function _fun11743(a0) { // fn#11743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:119237, offset: 0x00c3fb7a, size: 19 bytes, params: 2, frame: 11
|
|
return env0_0(a0);
|
|
}
|
|
|
|
function _fun11745() { // fn#11745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:119300, offset: 0x00db7e48, size: 24 bytes, params: 1, frame: 11
|
|
return global.clearTimeout(env0_2);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function getAllHeaders(a0, a1) { // fn#11746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:119652, offset: 0x00db7e60, size: 35 bytes, params: 3, frame: 12
|
|
const env0_0 = a0;
|
|
a1.forEach(_fun11747);
|
|
return {};
|
|
function _fun11747(a0) { // fn#11747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:119707, offset: 0x00db7e83, size: 49 bytes, params: 2, frame: 12
|
|
var binding2;
|
|
let binding = env0_0;
|
|
const get = binding.get;
|
|
if (Reflect.apply(get, binding, [a0])) {
|
|
binding = env0_1;
|
|
binding2 = env0_0;
|
|
binding[a0] = binding2.get(a0);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function getHeadersFromOptions(a0, a1) { // fn#11748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:119750, offset: 0x00db7eb4, size: 101 bytes, params: 3, frame: 15
|
|
var headers;
|
|
if (a0) {
|
|
headers = a0.headers;
|
|
return headers ? headers instanceof global.Headers ? getAllHeaders(headers,
|
|
a1) : global.Array.isArray(headers) ? {} : getAllowedHeaders(headers, a1) : {};
|
|
}
|
|
return {};
|
|
}
|
|
|
|
function _getResponseText2() { // fn#11749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:119912, offset: 0x00db7f19, size: 47 bytes, params: 1, frame: 14
|
|
return env0_2(_fun11751).apply(this, arguments);
|
|
}
|
|
|
|
function _captureXhrBreadcrumbToReplay() { // fn#11752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:120030, offset: 0x00db7f77, size: 47 bytes, params: 1, frame: 14
|
|
return env0_2(_fun11754).apply(this, arguments);
|
|
function* _fun11754(a0, a1, a2) { // fn#11754, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:120111, offset: 0x00db7faf, size: 120 bytes, params: 4, frame: 18
|
|
var environment;
|
|
var _prepareXhrData2;
|
|
var value3;
|
|
var binding;
|
|
var replay;
|
|
var error;
|
|
let value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
try {
|
|
_prepareXhrData2 = _prepareXhrData;
|
|
value = _prepareXhrData2(a0, a1, a2);
|
|
value3 = environment.__proto__.__proto__;
|
|
binding = env2_209;
|
|
value = binding('resource.xhr', value);
|
|
binding = env2_205;
|
|
replay = a2.replay;
|
|
binding(replay, value);
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to capture xhr breadcrumb');
|
|
}
|
|
}
|
|
function _prepareXhrData({data}, {startTimestamp, endTimestamp, input, xhr}, a2) { // fn#11755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:120138, offset: 0x00db8027, size: 542 bytes, params: 4, frame: 29
|
|
var environment;
|
|
var r14;
|
|
var r9;
|
|
var value2;
|
|
var binding;
|
|
var property;
|
|
var object;
|
|
var value5;
|
|
var networkCaptureBodies;
|
|
var value8;
|
|
var property2;
|
|
var value10;
|
|
var property3;
|
|
var property4;
|
|
var value11;
|
|
const Date = global.Date;
|
|
let value = Date.now();
|
|
const r8 = startTimestamp !== undefined ? startTimestamp : value;
|
|
const r7 = endTimestamp !== undefined ? endTimestamp : value;
|
|
const url = data.url;
|
|
const method = data.method;
|
|
const status_code = data.status_code;
|
|
const r1 = status_code === undefined ? 0 : status_code;
|
|
const request_body_size = data.request_body_size;
|
|
const response_body_size = data.response_body_size;
|
|
if (url) {
|
|
if (xhr) {
|
|
value2 = environment.__proto__.__proto__.__proto__;
|
|
binding = env3_213;
|
|
if (binding(url, a2.networkDetailAllowUrls)) {
|
|
binding = env3_213;
|
|
if (binding(url, a2.networkDetailDenyUrls)) {
|
|
object = {startTimestamp: r8, endTimestamp: r7, url: url, method: method, statusCode: r1};
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
binding = env3_210;
|
|
object.request = binding(request_body_size);
|
|
object.response = binding(response_body_size);
|
|
return object;
|
|
}
|
|
binding = env3_0;
|
|
property = xhr[binding(env3_1[10]).SENTRY_XHR_DATA_KEY];
|
|
r14 = property ? env3_212(property.request_headers, a2.networkRequestHeaders) : {};
|
|
binding = env3_212;
|
|
value5 = binding(env3_0(env3_1[10]).parseXhrResponseHeaders(xhr), a2.networkResponseHeaders);
|
|
networkCaptureBodies = a2.networkCaptureBodies;
|
|
value8 = env3_6(networkCaptureBodies ? env3_0(env3_1[10]).getBodyString(input, env3_72) : [undefined],
|
|
2);
|
|
property = value8[value];
|
|
property2 = value8[1];
|
|
networkCaptureBodies = a2.networkCaptureBodies;
|
|
value10 = env3_6(networkCaptureBodies ? _getXhrResponseBody(xhr) : [undefined], 2);
|
|
property3 = value10[value];
|
|
property4 = value10[1];
|
|
binding = env3_211;
|
|
value = binding(r14, request_body_size, property);
|
|
value11 = binding(value5, response_body_size, property3);
|
|
object = {startTimestamp: r8, endTimestamp: r7, url: url, method: method, statusCode: r1};
|
|
if (property2) {
|
|
value = env3_208(value, property2);
|
|
r9 = value;
|
|
} else {
|
|
r9 = value;
|
|
}
|
|
object.request = r9;
|
|
r9 = property4 ? env3_208(value11, property4) : value11;
|
|
object.response = r9;
|
|
return object;
|
|
}
|
|
object = {startTimestamp: r8, endTimestamp: r7, url: url, method: method, statusCode: r1};
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
binding = env3_210;
|
|
object.request = binding(request_body_size);
|
|
object.response = binding(response_body_size);
|
|
return object;
|
|
}
|
|
object = {startTimestamp: r8, endTimestamp: r7, url: url, method: method, statusCode: r1};
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
binding = env3_210;
|
|
object.request = binding(request_body_size);
|
|
object.response = binding(response_body_size);
|
|
return object;
|
|
}
|
|
return null;
|
|
function _getXhrResponseBody(a0) { // fn#11756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:120950, owner: _prepareXhrData._getXhrResponseBody, offset: 0x00db8245, size: 435 bytes, params: 2, frame: 19
|
|
var r1;
|
|
var items10;
|
|
var responseText;
|
|
var items2;
|
|
var error;
|
|
var push;
|
|
var response;
|
|
var responseType;
|
|
var value;
|
|
var value2;
|
|
var Document;
|
|
var value3;
|
|
var value4;
|
|
var items3;
|
|
var binding;
|
|
var log;
|
|
var items4;
|
|
var JSON;
|
|
var stringify;
|
|
var items5;
|
|
var body;
|
|
var outerHTML;
|
|
var items6;
|
|
var items7;
|
|
var exception;
|
|
var items8;
|
|
var warn;
|
|
var apply;
|
|
var items9;
|
|
exceptionSkip71: while (true) {
|
|
exceptionLanding71: while (true) {
|
|
exceptionSkip56: while (true) {
|
|
exceptionLanding56: while (true) {
|
|
exceptionSkip6: while (true) {
|
|
exceptionLanding6: while (true) {
|
|
items10 = [];
|
|
try {
|
|
responseText = a0.responseText;
|
|
} catch (error) {
|
|
break exceptionLanding6;
|
|
}
|
|
try {
|
|
items2 = [];
|
|
} catch (error) {
|
|
break exceptionLanding6;
|
|
}
|
|
try {
|
|
items2[0] = responseText;
|
|
} catch (error) {
|
|
break exceptionLanding6;
|
|
}
|
|
return items2;
|
|
break exceptionSkip6;
|
|
}
|
|
push = items10.push;
|
|
Reflect.apply(push, items10, [error]);
|
|
try {
|
|
response = a0.response;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
responseType = a0.responseType;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
value = typeof response;
|
|
try {
|
|
try {
|
|
value2 = value === 'string';
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
if (value2) {
|
|
try {
|
|
try {
|
|
items7 = [];
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
try {
|
|
items7[0] = response;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
return items7;
|
|
}
|
|
try {
|
|
try {
|
|
Document = global.Document;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
try {
|
|
value3 = response instanceof Document;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
if (value3) {
|
|
try {
|
|
try {
|
|
body = response.body;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
try {
|
|
outerHTML = body.outerHTML;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
try {
|
|
items6 = [];
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
try {
|
|
items6[0] = outerHTML;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
return items6;
|
|
}
|
|
try {
|
|
try {
|
|
value4 = responseType !== 'json';
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
if (value4) {
|
|
if (response) {
|
|
value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
try {
|
|
binding = env4_69;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
if (binding) {
|
|
try {
|
|
binding = env4_72;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
log = binding.log;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
Reflect.apply(log, binding, ['Skipping network body because of body type',
|
|
response]);
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
items4 = [];
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
items4[0] = undefined;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
items4[1] = 'UNPARSEABLE_BODY_TYPE';
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
return items4;
|
|
}
|
|
try {
|
|
items4 = [];
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
items4[0] = undefined;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
items4[1] = 'UNPARSEABLE_BODY_TYPE';
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
return items4;
|
|
}
|
|
try {
|
|
try {
|
|
items3 = [];
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
try {
|
|
items3[0] = undefined;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
return items3;
|
|
}
|
|
if (response) {
|
|
try {
|
|
try {
|
|
value = value === 'object';
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
if (value) {
|
|
try {
|
|
try {
|
|
JSON = global.JSON;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
try {
|
|
stringify = JSON.stringify;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
try {
|
|
value = Reflect.apply(stringify, JSON, [response]);
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
try {
|
|
items5 = [];
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
try {
|
|
items5[0] = value;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
return items5;
|
|
}
|
|
if (response) {
|
|
value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
try {
|
|
binding = env4_69;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
if (binding) {
|
|
try {
|
|
binding = env4_72;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
log = binding.log;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
Reflect.apply(log, binding, ['Skipping network body because of body type',
|
|
response]);
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
items4 = [];
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
items4[0] = undefined;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
items4[1] = 'UNPARSEABLE_BODY_TYPE';
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
return items4;
|
|
}
|
|
try {
|
|
items4 = [];
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
items4[0] = undefined;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
items4[1] = 'UNPARSEABLE_BODY_TYPE';
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
return items4;
|
|
}
|
|
try {
|
|
try {
|
|
items3 = [];
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
try {
|
|
items3[0] = undefined;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
return items3;
|
|
}
|
|
if (response) {
|
|
value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
try {
|
|
binding = env4_69;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
if (binding) {
|
|
try {
|
|
binding = env4_72;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
log = binding.log;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
Reflect.apply(log, binding, ['Skipping network body because of body type',
|
|
response]);
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
items4 = [];
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
items4[0] = undefined;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
items4[1] = 'UNPARSEABLE_BODY_TYPE';
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
return items4;
|
|
}
|
|
try {
|
|
items4 = [];
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
items4[0] = undefined;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
items4[1] = 'UNPARSEABLE_BODY_TYPE';
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
return items4;
|
|
}
|
|
try {
|
|
try {
|
|
items3 = [];
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
try {
|
|
items3[0] = undefined;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
r1 = items3;
|
|
return r1;
|
|
break exceptionSkip6;
|
|
}
|
|
break exceptionSkip56;
|
|
}
|
|
value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
try {
|
|
binding = env4_69;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
if (binding) {
|
|
try {
|
|
binding = env4_72;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
exception = binding.exception;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
Reflect.apply(exception, binding, [error, 'Failed to serialize body', response]);
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
items8 = [];
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
items8[0] = undefined;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
items8[1] = 'BODY_PARSE_ERROR';
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
return items8;
|
|
}
|
|
try {
|
|
items8 = [];
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
items8[0] = undefined;
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
try {
|
|
items8[1] = 'BODY_PARSE_ERROR';
|
|
} catch (error) {
|
|
break exceptionLanding71;
|
|
}
|
|
r1 = items8;
|
|
return r1;
|
|
break exceptionSkip56;
|
|
}
|
|
break exceptionSkip71;
|
|
}
|
|
push = items10.push;
|
|
Reflect.apply(push, items10, [error]);
|
|
value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
if (env4_69) {
|
|
warn = env4_72.warn;
|
|
apply = warn.apply;
|
|
binding = env4_72;
|
|
items9 = ['Failed to get xhr response body'];
|
|
Reflect.apply(apply, warn, [binding, items9.concat(items10)]);
|
|
return [undefined];
|
|
}
|
|
return [undefined];
|
|
break exceptionSkip71;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function enrichXhrBreadcrumb(a0, {xhr, input}) { // fn#11757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:122025, offset: 0x00db83f8, size: 200 bytes, params: 3, frame: 19
|
|
var r1;
|
|
var value;
|
|
var getBodySizeBinding;
|
|
var value2;
|
|
var bodySizeBinding;
|
|
var response;
|
|
var JSON;
|
|
var error;
|
|
if (xhr) {
|
|
value = environment;
|
|
getBodySizeBinding = getBodySize;
|
|
value2 = undefined;
|
|
bodySizeBinding = getBodySizeBinding(input);
|
|
if (xhr.getResponseHeader('content-length')) {
|
|
r1 = parseContentLengthHeader(xhr.getResponseHeader('content-length'));
|
|
} else {
|
|
response = xhr.response;
|
|
try {
|
|
getBodySizeBinding = getBodySize;
|
|
value = xhr.responseType !== 'json';
|
|
if (value) {
|
|
r1 = response;
|
|
} else if (response) {
|
|
if (typeof response === 'object') {
|
|
JSON = global.JSON;
|
|
r1 = JSON.stringify(response);
|
|
} else {
|
|
r1 = response;
|
|
}
|
|
} else {
|
|
r1 = response;
|
|
}
|
|
value = getBodySizeBinding(r1);
|
|
r1 = value;
|
|
} catch (error) {
|
|
r1 = value2;
|
|
}
|
|
}
|
|
if (value2 !== bodySizeBinding) {
|
|
a0.data.request_body_size = bodySizeBinding;
|
|
}
|
|
if (value2 !== r1) {
|
|
a0.data.response_body_size = r1;
|
|
}
|
|
}
|
|
}
|
|
|
|
function handleNetworkBreadcrumbs(a0) { // fn#11758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:122446, offset: 0x00db84c0, size: 159 bytes, params: 2, frame: 16
|
|
var options;
|
|
var object;
|
|
var networkDetailAllowUrls;
|
|
var networkDetailDenyUrls;
|
|
var networkCaptureBodies;
|
|
var networkRequestHeaders;
|
|
var networkResponseHeaders;
|
|
var closure;
|
|
var error;
|
|
let value = Module00826Module;
|
|
value = value.getClient();
|
|
try {
|
|
options = a0.getOptions();
|
|
object = {replay: a0};
|
|
networkDetailAllowUrls = options.networkDetailAllowUrls;
|
|
object.networkDetailAllowUrls = networkDetailAllowUrls;
|
|
networkDetailDenyUrls = options.networkDetailDenyUrls;
|
|
object.networkDetailDenyUrls = networkDetailDenyUrls;
|
|
networkCaptureBodies = options.networkCaptureBodies;
|
|
object.networkCaptureBodies = networkCaptureBodies;
|
|
networkRequestHeaders = options.networkRequestHeaders;
|
|
object.networkRequestHeaders = networkRequestHeaders;
|
|
networkResponseHeaders = options.networkResponseHeaders;
|
|
object.networkResponseHeaders = networkResponseHeaders;
|
|
var env0_0 = object;
|
|
if (value) {
|
|
closure = _fun11759;
|
|
value.on('beforeAddBreadcrumb', closure);
|
|
}
|
|
} catch (error) {
|
|
}
|
|
function _fun11759(a0, a1) { // fn#11759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:122810, offset: 0x00db855f, size: 31 bytes, params: 3, frame: 15
|
|
beforeAddNetworkBreadcrumb(env0_0, a0, a1);
|
|
function beforeAddNetworkBreadcrumb(a0, a1, a2) { // fn#11760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:122831, offset: 0x00db857e, size: 348 bytes, params: 4, frame: 24
|
|
var environment;
|
|
var xhr;
|
|
var r5;
|
|
var response;
|
|
var r7;
|
|
var category;
|
|
var value;
|
|
var value2;
|
|
var closure;
|
|
var value3;
|
|
var input;
|
|
var getBodySizeBinding;
|
|
var value4;
|
|
var property;
|
|
var moduleValue;
|
|
var fetchRequestArgBody;
|
|
var bodySizeBinding;
|
|
var parseContentLengthHeaderBinding;
|
|
var headers;
|
|
var error;
|
|
var binding;
|
|
let data = a1.data;
|
|
if (data) {
|
|
try {
|
|
category = a1.category;
|
|
value = category === 'xhr';
|
|
if (value) {
|
|
value = a2 == null;
|
|
value2 = undefined;
|
|
xhr = value ? value2 : a2.xhr;
|
|
r5 = xhr;
|
|
} else {
|
|
r5 = value;
|
|
}
|
|
if (r5) {
|
|
value = environment.__proto__.__proto__;
|
|
enrichXhrBreadcrumb(a1, a2);
|
|
closure = function(a0, a1, a2) {
|
|
return _captureXhrBreadcrumbToReplay.apply(this, arguments);
|
|
};
|
|
closure(a1, a2, a0);
|
|
}
|
|
category = a1.category;
|
|
value = category === 'fetch';
|
|
if (value) {
|
|
value = a2 == null;
|
|
value3 = undefined;
|
|
response = value ? value3 : a2.response;
|
|
r5 = response;
|
|
} else {
|
|
r5 = value;
|
|
}
|
|
if (r5) {
|
|
input = a2.input;
|
|
response = a2.response;
|
|
value = environment.__proto__.__proto__;
|
|
getBodySizeBinding = getBodySize;
|
|
value4 = undefined;
|
|
if (input) {
|
|
property = dependencyMap[10];
|
|
moduleValue = require(property);
|
|
fetchRequestArgBody = moduleValue.getFetchRequestArgBody(input);
|
|
r7 = fetchRequestArgBody;
|
|
} else {
|
|
r7 = value4;
|
|
}
|
|
bodySizeBinding = getBodySizeBinding(r7);
|
|
if (response) {
|
|
parseContentLengthHeaderBinding = parseContentLengthHeader;
|
|
headers = response.headers;
|
|
value = headers.get('content-length');
|
|
value = parseContentLengthHeaderBinding(value);
|
|
r7 = value;
|
|
} else {
|
|
r7 = value4;
|
|
}
|
|
value = value4 === bodySizeBinding;
|
|
if (!value) {
|
|
data = a1.data;
|
|
data.request_body_size = bodySizeBinding;
|
|
}
|
|
value = value4 === r7;
|
|
if (!value) {
|
|
data = a1.data;
|
|
data.response_body_size = r7;
|
|
}
|
|
closure = captureFetchBreadcrumbToReplay;
|
|
closure(a1, a2, a0);
|
|
}
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Error when enriching network breadcrumb');
|
|
}
|
|
}
|
|
}
|
|
function captureFetchBreadcrumbToReplay(a0, a1, a2) { // fn#11762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:123560, owner: beforeAddNetworkBreadcrumb.captureFetchBreadcrumbToReplay, offset: 0x00db86f7, size: 29 bytes, params: 4, frame: 13
|
|
return _captureFetchBreadcrumbToReplay.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _addMemoryEntry() { // fn#11763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:123771, offset: 0x00db8714, size: 47 bytes, params: 1, frame: 14
|
|
return env0_2(_fun11765).apply(this, arguments);
|
|
function* _fun11765(a0) { // fn#11765, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:123824, offset: 0x00db874c, size: 201 bytes, params: 2, frame: 21
|
|
var Promise;
|
|
var all;
|
|
var binding;
|
|
var binding2;
|
|
var binding3;
|
|
var property;
|
|
var GLOBAL_OBJ;
|
|
var performance;
|
|
var memory;
|
|
var jsHeapSizeLimit;
|
|
var totalJSHeapSize;
|
|
var usedJSHeapSize;
|
|
var Date;
|
|
var error;
|
|
let value = undefined;
|
|
if (true) {
|
|
try {
|
|
Promise = global.Promise;
|
|
all = Promise.all;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_203;
|
|
binding2 = env2_0;
|
|
binding3 = env2_1;
|
|
property = binding3[9];
|
|
value = binding2(property);
|
|
GLOBAL_OBJ = value.GLOBAL_OBJ;
|
|
performance = GLOBAL_OBJ.performance;
|
|
memory = performance.memory;
|
|
jsHeapSizeLimit = memory.jsHeapSizeLimit;
|
|
totalJSHeapSize = memory.totalJSHeapSize;
|
|
usedJSHeapSize = memory.usedJSHeapSize;
|
|
Date = global.Date;
|
|
value = Date.now();
|
|
value /= 1000;
|
|
value = binding(a0, [{'type': 'memory', 'name': 'memory', start: value, end: value,
|
|
data: {memory: {jsHeapSizeLimit: jsHeapSizeLimit, totalJSHeapSize: totalJSHeapSize,
|
|
usedJSHeapSize: usedJSHeapSize}}}]);
|
|
value = Reflect.apply(all, Promise, [value]);
|
|
} catch (error) {
|
|
return [];
|
|
}
|
|
}
|
|
return value;
|
|
}
|
|
|
|
}
|
|
|
|
function getHandleRecordingEmit(a0) { // fn#11766, offset: 0x00db8815, size: 22 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun11767;
|
|
function _fun11767(a0, a1) { // fn#11767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:124265, offset: 0x00db882b, size: 146 bytes, params: 3, frame: 16
|
|
var environment;
|
|
var r2;
|
|
let value = a1;
|
|
const env0_0 = a0;
|
|
const binding = env0_0;
|
|
if (binding.checkAndHandleExpiredSession()) {
|
|
r2 = value || !env0_1;
|
|
if (env0_0.clickDetector) {
|
|
value = environment.__proto__;
|
|
updateClickDetectorForRecordingEvent(env0_0.clickDetector, a0);
|
|
}
|
|
env0_0.addUpdate(_fun11768);
|
|
} else {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
env1_72.warn('Received replay event after session expired.');
|
|
}
|
|
}
|
|
function _fun11768() { // fn#11768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:124419, offset: 0x00db88bd, size: 361 bytes, params: 1, frame: 20
|
|
var session;
|
|
var earliestTimestamp;
|
|
var log;
|
|
var Date;
|
|
var value7;
|
|
var date;
|
|
if (env1_0.recordingMode === 'buffer' && env0_1) {
|
|
env1_0.setInitialState();
|
|
}
|
|
const addEventSyncBinding = addEventSync;
|
|
let binding = env1_0;
|
|
if (addEventSyncBinding(binding, env0_0, env0_1)) {
|
|
if (env0_1) {
|
|
binding = env1_0;
|
|
session = binding.session;
|
|
addSettingsEvent(binding, env0_1);
|
|
if (binding.recordingMode === 'buffer') {
|
|
if (session) {
|
|
if (env1_0.eventBuffer) {
|
|
if (!session.dirty) {
|
|
earliestTimestamp = env1_0.eventBuffer.getEarliestTimestamp();
|
|
if (earliestTimestamp) {
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
log = binding.log;
|
|
Date = global.Date;
|
|
value7 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
date = new Date();
|
|
Reflect.apply(log, binding,
|
|
['Updating session start time to earliest event in buffer to ' + (date instanceof Object ? date : value7)]);
|
|
}
|
|
session.started = earliestTimestamp;
|
|
binding = env1_0;
|
|
if (binding.getOptions().stickySession) {
|
|
saveSession(session);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (!(session != null && session.previousSessionId)) {
|
|
if (env1_0.recordingMode === 'session') {
|
|
env1_0.flush();
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
return true;
|
|
function addSettingsEvent(a0, a1) { // fn#11769, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:124548, offset: 0x00db8a26, size: 341 bytes, params: 3, frame: 20
|
|
var value;
|
|
var addEventSyncBinding;
|
|
var options;
|
|
var object;
|
|
var object3;
|
|
var eventBuffer;
|
|
var length;
|
|
if (a1) {
|
|
if (a0.session) {
|
|
if (a0.session.segmentId !== 0) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
addEventSyncBinding = addEventSync;
|
|
options = a0.getOptions();
|
|
object = {};
|
|
object.type = env3_37.Custom;
|
|
object.timestamp = global.Date.now();
|
|
object3 = {};
|
|
object3.shouldRecordCanvas = a0.isRecordingCanvas();
|
|
object3.sessionSampleRate = options.sessionSampleRate;
|
|
object3.errorSampleRate = options.errorSampleRate;
|
|
object3.useCompressionOption = options.useCompression;
|
|
object3.blockAllMedia = options.blockAllMedia;
|
|
object3.maskAllText = options.maskAllText;
|
|
object3.maskAllInputs = options.maskAllInputs;
|
|
eventBuffer = a0.eventBuffer;
|
|
value = !!eventBuffer;
|
|
object3.useCompression = eventBuffer ? a0.eventBuffer.type === 'worker' : value;
|
|
length = options.networkDetailAllowUrls.length;
|
|
object3.networkDetailHasUrls = length > 0;
|
|
object3.networkCaptureBodies = options.networkCaptureBodies;
|
|
length = options.networkRequestHeaders.length;
|
|
object3.networkRequestHasHeaders = length > 0;
|
|
length = options.networkResponseHeaders.length;
|
|
object3.networkResponseHasHeaders = length > 0;
|
|
object.data = {tag: 'options', payload: object3};
|
|
addEventSyncBinding(a0, object, false);
|
|
return undefined;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _prepareReplayEvent() { // fn#11770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:125697, offset: 0x00db8b7b, size: 47 bytes, params: 1, frame: 14
|
|
return env0_2(_fun11772).apply(this, arguments);
|
|
function* _fun11772({client, scope, replayId, event}) { // fn#11772, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:125758, offset: 0x00db8bb3, size: 417 bytes, params: 2, frame: 25
|
|
var r1;
|
|
var platform;
|
|
var sdk;
|
|
var r2;
|
|
var name;
|
|
var version;
|
|
var Array;
|
|
var Object;
|
|
var sdkMetadata;
|
|
var settings;
|
|
var assign;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
const object = {event_id: replayId};
|
|
const _integrations = client._integrations;
|
|
value = undefined;
|
|
if (typeof _integrations !== 'object') {
|
|
r1 = value;
|
|
} else if (client._integrations === null) {
|
|
r1 = value;
|
|
} else {
|
|
Array = global.Array;
|
|
if (Array.isArray(client._integrations)) {
|
|
r1 = value;
|
|
} else {
|
|
Object = global.Object;
|
|
r1 = Object.keys(client._integrations);
|
|
}
|
|
}
|
|
object.integrations = r1;
|
|
client.emit('preprocessEvent', event, object);
|
|
const binding = env2_0;
|
|
const binding2 = env2_1;
|
|
const value5 = binding(binding2[9]);
|
|
const prepareEvent = value5.prepareEvent;
|
|
const options = client.getOptions();
|
|
const value7 = binding(binding2[9]);
|
|
const getIsolationScope = value7.getIsolationScope;
|
|
yield Reflect.apply(prepareEvent, value5, [options, event, object, scope, client, Reflect.apply(getIsolationScope,
|
|
value7, [])]);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (undefined) {
|
|
client.emit('postprocessEvent', undefined, object);
|
|
platform = undefined.platform;
|
|
platform = !platform ? 'javascript' : platform;
|
|
undefined.platform = platform;
|
|
sdkMetadata = client.getSdkMetadata();
|
|
sdk = sdkMetadata == null ? value : sdkMetadata.sdk;
|
|
r2 = sdk || ({});
|
|
name = r2.name;
|
|
version = r2.version;
|
|
settings = r2.settings;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
sdk = undefined.sdk;
|
|
name = !name ? 'sentry.javascript.unknown' : name;
|
|
version = !version ? '0.0.0' : version;
|
|
undefined.sdk = Reflect.apply(assign, Object, [{}, sdk, {name: name, version: version, settings: settings}]);
|
|
return undefined;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
}
|
|
|
|
function _sendReplayRequest() { // fn#11773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:126393, offset: 0x00db8d54, size: 47 bytes, params: 1, frame: 14
|
|
return env0_2(_fun11775).apply(this, arguments);
|
|
function* _fun11775({recordingData, replayId, segmentId, eventContext, timestamp, session}) { // fn#11775, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:126452, offset: 0x00db8d8c, size: 1115 bytes, params: 2, frame: 38
|
|
var r17;
|
|
var length;
|
|
var TextEncoder;
|
|
var prototype;
|
|
var value5;
|
|
var textEncoder;
|
|
var value7;
|
|
var Uint8Array;
|
|
var value8;
|
|
var value9;
|
|
var uint8Array;
|
|
var value10;
|
|
var set;
|
|
var value19;
|
|
var tunnel;
|
|
var binding3;
|
|
var value21;
|
|
var createEnvelope;
|
|
var value22;
|
|
var createEventEnvelopeHeaders;
|
|
var value23;
|
|
var eventEnvelopeHeaders;
|
|
var value24;
|
|
var value25;
|
|
var envelope;
|
|
var send;
|
|
var value26;
|
|
var value27;
|
|
var value28;
|
|
var statusCode;
|
|
var binding4;
|
|
var value30;
|
|
var error;
|
|
var Error;
|
|
var error2;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = undefined;
|
|
let object = {recordingData: recordingData};
|
|
object.headers = {segment_id: segmentId};
|
|
recordingData = object.recordingData;
|
|
const headers = object.headers;
|
|
const JSON = global.JSON;
|
|
const value4 = '' + JSON.stringify(headers) + '\n';
|
|
if (typeof recordingData === 'string') {
|
|
r17 = '' + value4 + recordingData;
|
|
} else {
|
|
TextEncoder = global.TextEncoder;
|
|
prototype = TextEncoder.prototype;
|
|
value5 = Object.create(prototype, {constructor: {value: TextEncoder}});
|
|
textEncoder = new TextEncoder();
|
|
value7 = (textEncoder instanceof Object ? textEncoder : value5).encode(value4);
|
|
Uint8Array = global.Uint8Array;
|
|
length = value7.length;
|
|
value8 = length + recordingData.length;
|
|
prototype = Uint8Array.prototype;
|
|
value9 = Object.create(prototype, {constructor: {value: Uint8Array}});
|
|
uint8Array = new Uint8Array();
|
|
value10 = uint8Array instanceof Object ? uint8Array : value9;
|
|
value10.set(value7);
|
|
set = value10.set;
|
|
length = value7.length;
|
|
Reflect.apply(set, value10, [recordingData, length]);
|
|
r17 = value10;
|
|
}
|
|
const urls = eventContext.urls;
|
|
const errorIds = eventContext.errorIds;
|
|
const traceIds = eventContext.traceIds;
|
|
const initialTimestamp = eventContext.initialTimestamp;
|
|
let binding = env2_0;
|
|
const binding2 = env2_1;
|
|
const client = binding(binding2[9]).getClient();
|
|
const currentScope = binding(binding2[9]).getCurrentScope();
|
|
const r16 = client == null ? value : client.getTransport();
|
|
const r21 = client == null ? value : client.getDsn();
|
|
if (client) {
|
|
if (r16) {
|
|
if (r21) {
|
|
if (session.sampled) {
|
|
object = {type: 'replay_event',
|
|
replay_start_timestamp: initialTimestamp / 1000, timestamp: timestamp / 1000,
|
|
error_ids: errorIds, trace_ids: traceIds, urls: urls, replay_id: replayId,
|
|
segment_id: segmentId};
|
|
object.replay_type = session.sampled;
|
|
yield prepareReplayEvent({scope: currentScope, client: client, replayId: replayId, event: object});
|
|
value19 = undefined;
|
|
if (false) {
|
|
return value19;
|
|
}
|
|
if (value19) {
|
|
delete value19.sdkProcessingMetadata;
|
|
tunnel = client.getOptions().tunnel;
|
|
binding = env2_0;
|
|
binding3 = env2_1;
|
|
value21 = binding(binding3[9]);
|
|
createEnvelope = value21.createEnvelope;
|
|
value22 = binding(binding3[9]);
|
|
createEventEnvelopeHeaders = value22.createEventEnvelopeHeaders;
|
|
value23 = binding(binding3[9]);
|
|
eventEnvelopeHeaders = Reflect.apply(createEventEnvelopeHeaders, value22, [value19,
|
|
value23.getSdkMetadataForEnvelopeHeader(value19), tunnel, r21]);
|
|
object = {type: 'replay_event'};
|
|
object = [[object, value19]];
|
|
if (typeof r17 === 'string') {
|
|
TextEncoder = global.TextEncoder;
|
|
prototype = TextEncoder.prototype;
|
|
value24 = Object.create(prototype, {constructor: {value: TextEncoder}});
|
|
textEncoder = new TextEncoder();
|
|
value25 = textEncoder instanceof Object ? textEncoder : value24;
|
|
length = value25.encode(r17).length;
|
|
} else {
|
|
length = r17.length;
|
|
}
|
|
object[1] = [{type: 'replay_recording', length: length}, r17];
|
|
envelope = Reflect.apply(createEnvelope, value21, [eventEnvelopeHeaders, object]);
|
|
try {
|
|
send = r16.send;
|
|
} catch (error) {
|
|
Error = global.Error;
|
|
binding = env2_11;
|
|
prototype = Error.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Error}});
|
|
error2 = new Error(binding);
|
|
value = error2 instanceof Object ? error2 : value;
|
|
try {
|
|
value.cause = error;
|
|
} catch (error) {
|
|
}
|
|
throw value;
|
|
}
|
|
try {
|
|
value26 = Reflect.apply(send, r16, [envelope]);
|
|
} catch (error) {
|
|
Error = global.Error;
|
|
binding = env2_11;
|
|
prototype = Error.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Error}});
|
|
error2 = new Error(binding);
|
|
value = error2 instanceof Object ? error2 : value;
|
|
try {
|
|
value.cause = error;
|
|
} catch (error) {
|
|
}
|
|
throw value;
|
|
}
|
|
yield value26;
|
|
try {
|
|
value27 = undefined;
|
|
value28 = false;
|
|
} catch (error) {
|
|
Error = global.Error;
|
|
binding = env2_11;
|
|
prototype = Error.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Error}});
|
|
error2 = new Error(binding);
|
|
value = error2 instanceof Object ? error2 : value;
|
|
try {
|
|
value.cause = error;
|
|
} catch (error) {
|
|
}
|
|
throw value;
|
|
}
|
|
if (value28) {
|
|
return value27;
|
|
}
|
|
statusCode = value27.statusCode;
|
|
if (typeof statusCode !== 'number') {
|
|
binding = env2_0;
|
|
binding4 = env2_1;
|
|
value30 = binding(binding4[9]).updateRateLimits({}, value27);
|
|
value = binding(binding4[9]);
|
|
if (value.isRateLimited(value30, 'replay')) {
|
|
throw new env2_80();
|
|
}
|
|
return value27;
|
|
}
|
|
statusCode = value27.statusCode;
|
|
if (statusCode < 200) {
|
|
binding = env2_79;
|
|
statusCode = value27.statusCode;
|
|
throw new binding();
|
|
}
|
|
statusCode = value27.statusCode;
|
|
if (statusCode >= 300) {
|
|
binding = env2_79;
|
|
statusCode = value27.statusCode;
|
|
throw new binding();
|
|
}
|
|
binding = env2_0;
|
|
binding4 = env2_1;
|
|
value30 = binding(binding4[9]).updateRateLimits({}, value27);
|
|
value = binding(binding4[9]);
|
|
if (value.isRateLimited(value30, 'replay')) {
|
|
throw new env2_80();
|
|
}
|
|
return value27;
|
|
}
|
|
client.recordDroppedEvent('event_processor', 'replay');
|
|
if (env2_69) {
|
|
env2_72.log('An event processor returned `null`, will not send event.');
|
|
}
|
|
return global.Promise.resolve({});
|
|
}
|
|
return global.Promise.resolve({});
|
|
}
|
|
return global.Promise.resolve({});
|
|
}
|
|
return global.Promise.resolve({});
|
|
}
|
|
const Promise = global.Promise;
|
|
return Promise.resolve({});
|
|
function prepareReplayEvent(a0) { // fn#11776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:127223, offset: 0x00db91e7, size: 29 bytes, params: 2, frame: 13
|
|
return env3_226.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _sendReplay() { // fn#11778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:128720, offset: 0x00db9221, size: 47 bytes, params: 1, frame: 14
|
|
return env0_2(_fun11780).apply(this, arguments);
|
|
function* _fun11780(a0) { // fn#11780, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:128765, offset: 0x00db9259, size: 415 bytes, params: 2, frame: 21
|
|
var environment;
|
|
var r7;
|
|
var closure;
|
|
var value3;
|
|
var error;
|
|
var binding;
|
|
var value4;
|
|
var setContext;
|
|
var count;
|
|
var interval;
|
|
var Promise;
|
|
var prototype;
|
|
var promise;
|
|
var Error;
|
|
var error2;
|
|
let value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
const env0_0 = a0;
|
|
if (arguments.length > 1) {
|
|
if (arguments[1] !== undefined) {
|
|
value = arguments[1];
|
|
r7 = value;
|
|
} else {
|
|
r7 = {'count': 0, 'interval': 5000};
|
|
}
|
|
} else {
|
|
r7 = {'count': 0, 'interval': 5000};
|
|
}
|
|
const recordingData = a0.recordingData;
|
|
const onError = a0.onError;
|
|
if (recordingData.length) {
|
|
try {
|
|
closure = sendReplayRequest;
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__;
|
|
if (error instanceof env2_79) {
|
|
throw error;
|
|
}
|
|
if (error instanceof env2_80) {
|
|
throw error;
|
|
}
|
|
binding = env2_0;
|
|
value4 = binding(env2_1[9]);
|
|
setContext = value4.setContext;
|
|
count = r7.count;
|
|
Reflect.apply(setContext, value4, ['Replays', {_retryCount: count}]);
|
|
if (onError) {
|
|
onError(error);
|
|
}
|
|
count = r7.count;
|
|
if (count >= 3) {
|
|
Error = global.Error;
|
|
binding = env2_11;
|
|
error2 = new Error('' + binding + ' - max retries exceeded');
|
|
try {
|
|
error2.cause = error;
|
|
} catch (error) {
|
|
}
|
|
throw error2;
|
|
}
|
|
interval = r7.interval;
|
|
count = r7.count;
|
|
value = typeof count === 'bigint' ? count + 1n : +count + 1;
|
|
r7.count = value;
|
|
r7.interval = interval * value;
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun11782;
|
|
promise = new Promise();
|
|
return promise instanceof Object ? promise : value;
|
|
}
|
|
try {
|
|
value = closure(a0);
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__;
|
|
if (error instanceof env2_79) {
|
|
throw error;
|
|
}
|
|
if (error instanceof env2_80) {
|
|
throw error;
|
|
}
|
|
binding = env2_0;
|
|
value4 = binding(env2_1[9]);
|
|
setContext = value4.setContext;
|
|
count = r7.count;
|
|
Reflect.apply(setContext, value4, ['Replays', {_retryCount: count}]);
|
|
if (onError) {
|
|
onError(error);
|
|
}
|
|
count = r7.count;
|
|
if (count >= 3) {
|
|
Error = global.Error;
|
|
binding = env2_11;
|
|
error2 = new Error('' + binding + ' - max retries exceeded');
|
|
try {
|
|
error2.cause = error;
|
|
} catch (error) {
|
|
}
|
|
throw error2;
|
|
}
|
|
interval = r7.interval;
|
|
count = r7.count;
|
|
value = typeof count === 'bigint' ? count + 1n : +count + 1;
|
|
r7.count = value;
|
|
r7.interval = interval * value;
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun11782;
|
|
promise = new Promise();
|
|
return promise instanceof Object ? promise : value;
|
|
}
|
|
yield value;
|
|
try {
|
|
value = undefined;
|
|
value3 = false;
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__;
|
|
if (error instanceof env2_79) {
|
|
throw error;
|
|
}
|
|
if (error instanceof env2_80) {
|
|
throw error;
|
|
}
|
|
binding = env2_0;
|
|
value4 = binding(env2_1[9]);
|
|
setContext = value4.setContext;
|
|
count = r7.count;
|
|
Reflect.apply(setContext, value4, ['Replays', {_retryCount: count}]);
|
|
if (onError) {
|
|
onError(error);
|
|
}
|
|
count = r7.count;
|
|
if (count >= 3) {
|
|
Error = global.Error;
|
|
binding = env2_11;
|
|
error2 = new Error('' + binding + ' - max retries exceeded');
|
|
try {
|
|
error2.cause = error;
|
|
} catch (error) {
|
|
}
|
|
throw error2;
|
|
}
|
|
interval = r7.interval;
|
|
count = r7.count;
|
|
value = typeof count === 'bigint' ? count + 1n : +count + 1;
|
|
r7.count = value;
|
|
r7.interval = interval * value;
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Promise}});
|
|
closure = _fun11782;
|
|
promise = new Promise();
|
|
return promise instanceof Object ? promise : value;
|
|
}
|
|
if (value3) {
|
|
return value;
|
|
}
|
|
return true;
|
|
}
|
|
function sendReplayRequest(a0) { // fn#11781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:128921, offset: 0x00db93f8, size: 29 bytes, params: 2, frame: 13
|
|
return env3_227.apply(this, arguments);
|
|
}
|
|
|
|
function _fun11782(a0, a1) { // fn#11782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:129255, offset: 0x00db9415, size: 81 bytes, params: 3, frame: 14
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const value = environment.__proto__.__proto__.__proto__;
|
|
const value2 = env3_0(env3_1[10]);
|
|
value2.setTimeout(env3_2(_fun11784), env0_1.interval);
|
|
function* _fun11784() { // fn#11784, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:129292, offset: 0x00db946f, size: 86 bytes, params: 1, frame: 14
|
|
var binding;
|
|
var binding2;
|
|
var binding3;
|
|
var value3;
|
|
var error;
|
|
if (true) {
|
|
value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
|
try {
|
|
binding = env5_228;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
env1_1(error);
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
try {
|
|
binding2 = env2_0;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
env1_1(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding3 = env2_1;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
env1_1(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value = binding(binding2, binding3);
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
env1_1(error);
|
|
return undefined;
|
|
}
|
|
yield value;
|
|
try {
|
|
value = undefined;
|
|
value3 = false;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
env1_1(error);
|
|
return undefined;
|
|
}
|
|
if (value3) {
|
|
return value;
|
|
}
|
|
value = environment.__proto__;
|
|
try {
|
|
binding = env1_0;
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
env1_1(error);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding(true);
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
env1_1(error);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function throttle_11785(a0, a1, a2) { // fn#11785, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:129428, offset: 0x00db94c5, size: 71 bytes, params: 4, frame: 10
|
|
const env0_0 = a0;
|
|
const Map = global.Map;
|
|
const map = new Map();
|
|
return _fun11786;
|
|
function _fun11786() { // fn#11786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:129479, offset: 0x00db950c, size: 174 bytes, params: 1, frame: 17
|
|
const Math = global.Math;
|
|
const floor = Math.floor;
|
|
const Date = global.Date;
|
|
let value = Date.now();
|
|
value = Reflect.apply(floor, Math, [value / 1000]);
|
|
_cleanup(value);
|
|
if (_getTotalCount() >= env0_1) {
|
|
return env0_4 ? '__SKIPPED' : env1_81;
|
|
}
|
|
env0_3.set(value, (env0_3.get(value) || 0) + 1);
|
|
return env0_0.apply(undefined, arguments);
|
|
function _cleanup(a0) { // fn#11787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:129526, offset: 0x00db95ba, size: 43 bytes, params: 2, frame: 12
|
|
const env0_0 = a0 - env1_2;
|
|
env1_3.forEach(_fun11788);
|
|
function _fun11788(a0, a1) { // fn#11788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:129568, offset: 0x00db95e5, size: 35 bytes, params: 3, frame: 11
|
|
if (a1 < env0_0) {
|
|
value = environment.__proto__.__proto__;
|
|
env2_3.delete(a1);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _getTotalCount() { // fn#11789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:129606, offset: 0x00db9608, size: 53 bytes, params: 1, frame: 13
|
|
var environment;
|
|
let value = environment.__proto__.__proto__;
|
|
const binding = env2_7;
|
|
value = environment.__proto__;
|
|
value = env1_3.values();
|
|
value = binding(value);
|
|
return value.reduce(function(a0, a1) {
|
|
return a0 + a1;
|
|
}, 0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function getOption(a0, a1) { // fn#11791, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:147750, offset: 0x00db963d, size: 60 bytes, params: 3, frame: 15
|
|
const items2 = [];
|
|
return items2.concat(Module00065Module(a0), Module00065Module(a1)).join(',');
|
|
}
|
|
|
|
function _getMergedNetworkHeaders(a0) { // fn#11792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:153813, offset: 0x00db9679, size: 55 bytes, params: 2, frame: 16
|
|
return [].concat(env0_84, Module00065Module(a0.map(function(a0) {
|
|
return a0.toLowerCase();
|
|
})));
|
|
}
|
|
|
|
function __publicField$1(a0, a1, a2) { // fn#11794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:641, offset: 0x00db96b0, size: 74 bytes, params: 4, frame: 16
|
|
var r4;
|
|
var r0;
|
|
let value = a1;
|
|
const value2 = a2;
|
|
if (typeof value === 'symbol') {
|
|
r4 = value;
|
|
} else {
|
|
value = String(value);
|
|
r4 = value;
|
|
}
|
|
if (r4 in a0) {
|
|
r0 = defineProperty(a0, r4, {'enumerable': true, 'configurable': true, 'writable': true, value: value2});
|
|
} else {
|
|
a0[r4] = value2;
|
|
r0 = value2;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun11795() { // fn#11795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:2597, offset: 0x00db96fa, size: 264 bytes, params: 1, frame: 15
|
|
return CreateClassModule(Mirror, [{key: 'getId', value: function(a0) {
|
|
var r1;
|
|
var value;
|
|
if (a0) {
|
|
value = this.getMeta(a0);
|
|
r1 = value?.id;
|
|
value = -1;
|
|
return r1 ?? value;
|
|
}
|
|
return -1;
|
|
}}, {key: 'getNode', value: function(a0) {
|
|
return this.idNodeMap.get(a0) || null;
|
|
}}, {key: 'getIds', value: function() {
|
|
var Array = global.Array;
|
|
return Array.from(this.idNodeMap.keys());
|
|
}}, {key: 'getMeta', value: function(a0) {
|
|
return this.nodeMetaMap.get(a0) || null;
|
|
}}, {key: 'removeNodeFromMap', value: function(a0) {
|
|
var env0_0 = this;
|
|
this.idNodeMap.delete(this.getId(a0));
|
|
if (a0.childNodes) {
|
|
a0.childNodes.forEach(_fun11802);
|
|
}
|
|
}}, {key: 'has', value: function(a0) {
|
|
return this.idNodeMap.has(a0);
|
|
}}, {key: 'hasNode', value: function(a0) {
|
|
return this.nodeMetaMap.has(a0);
|
|
}}, {key: 'add', value: function(a0, a1) {
|
|
this.idNodeMap.set(a1.id, a0);
|
|
this.nodeMetaMap.set(a0, a1);
|
|
}}, {key: 'replace', value: function(a0, a1) {
|
|
var value = this.getNode(a0);
|
|
if (value) {
|
|
value = this.nodeMetaMap.get(value);
|
|
if (value) {
|
|
this.nodeMetaMap.set(a1, value);
|
|
}
|
|
}
|
|
this.idNodeMap.set(a0, a1);
|
|
}}, {key: 'reset', value: function() {
|
|
this.idNodeMap = new global.Map();
|
|
this.nodeMetaMap = new global.WeakMap();
|
|
}}]);
|
|
function Mirror() { // fn#11796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:2631, offset: 0x00db9802, size: 111 bytes, params: 1, frame: 17
|
|
const value = environment.__proto__;
|
|
env1_8(this, Mirror);
|
|
let __publicField$1Binding = __publicField$1;
|
|
const Map = global.Map;
|
|
const value3 = Object.create(Map.prototype, {constructor: {value: Map}});
|
|
const map = new Map();
|
|
__publicField$1Binding(this, 'idNodeMap', map instanceof Object ? map : value3);
|
|
__publicField$1Binding = __publicField$1;
|
|
const WeakMap = global.WeakMap;
|
|
__publicField$1Binding(this, 'nodeMetaMap', new WeakMap());
|
|
}
|
|
|
|
function value_11801(a0) { // fn#11801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:3123, offset: 0x00db990f, size: 73 bytes, params: 2, frame: 13
|
|
this.idNodeMap.delete(this.getId(a0));
|
|
if (a0.childNodes) {
|
|
a0.childNodes.forEach(_fun11802);
|
|
}
|
|
function _fun11802(a0) { // fn#11802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:3241, offset: 0x00db9958, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0.removeNodeFromMap(a0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function getId() { // fn#11808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:22727, offset: 0x00db9a6c, size: 33 bytes, params: 1, frame: 11
|
|
global.console.error(env0_33);
|
|
return -1;
|
|
}
|
|
|
|
function getNode() { // fn#11809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:22780, offset: 0x00db9a8d, size: 29 bytes, params: 1, frame: 11
|
|
global.console.error(env0_33);
|
|
return null;
|
|
}
|
|
|
|
function removeNodeFromMap() { // fn#11810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:22847, offset: 0x00db9aaa, size: 29 bytes, params: 1, frame: 11
|
|
global.console.error(env0_33);
|
|
}
|
|
|
|
function has_11811() { // fn#11811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:22898, offset: 0x00db9ac7, size: 29 bytes, params: 1, frame: 11
|
|
global.console.error(env0_33);
|
|
return false;
|
|
}
|
|
|
|
function reset_11812() { // fn#11812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:22947, offset: 0x00db9aaa, size: 29 bytes, params: 1, frame: 11
|
|
global.console.error(env0_33);
|
|
}
|
|
|
|
function get_11813(a0, a1, a2) { // fn#11813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:24150, offset: 0x00db9ae4, size: 64 bytes, params: 4, frame: 15
|
|
if (a1 === 'map') {
|
|
global.console.error(env0_33);
|
|
}
|
|
const Reflect = global.Reflect;
|
|
return Reflect.get(a0, a1, a2);
|
|
}
|
|
|
|
function _fun11815() { // fn#11815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:26312, offset: 0x00db9b4c, size: 174 bytes, params: 1, frame: 15
|
|
return CreateClassModule(StyleSheetMirror, [{key: 'getId', value: function(a0) {
|
|
return this.styleIDMap.get(a0) ?? -1;
|
|
}}, {key: 'has', value: function(a0) {
|
|
return this.styleIDMap.has(a0);
|
|
}}, {key: 'add', value: function(a0, a1) {
|
|
var r0;
|
|
var property;
|
|
var value = a1;
|
|
if (this.has(a0)) {
|
|
r0 = this.getId(a0);
|
|
} else {
|
|
if (value !== undefined) {
|
|
r0 = value;
|
|
} else {
|
|
property = this.id;
|
|
value = typeof property === 'bigint' ? property : +property;
|
|
this.id = typeof value === 'bigint' ? value + 1n : +value + 1;
|
|
r0 = value;
|
|
}
|
|
property = this.styleIDMap;
|
|
property.set(a0, r0);
|
|
property = this.idStyleMap;
|
|
property.set(r0, a0);
|
|
}
|
|
return r0;
|
|
}}, {key: 'getStyle', value: function(a0) {
|
|
return this.idStyleMap.get(a0) || null;
|
|
}}, {key: 'reset', value: function() {
|
|
this.styleIDMap = new global.WeakMap();
|
|
this.idStyleMap = new global.Map();
|
|
this.id = 1;
|
|
}}, {key: 'generateId', value: function() {
|
|
var id = this.id;
|
|
var value = typeof id === 'bigint' ? id : +id;
|
|
this.id = typeof value === 'bigint' ? value + 1n : +value + 1;
|
|
return value;
|
|
}}]);
|
|
function StyleSheetMirror() { // fn#11816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:26346, offset: 0x00db9bfa, size: 102 bytes, params: 1, frame: 14
|
|
const value = environment.__proto__;
|
|
env1_8(this, StyleSheetMirror);
|
|
this.id = 1;
|
|
const WeakMap = global.WeakMap;
|
|
this.styleIDMap = new WeakMap();
|
|
const Map = global.Map;
|
|
this.idStyleMap = new Map();
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11823() { // fn#11823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:29425, offset: 0x00db9d88, size: 101 bytes, params: 1, frame: 15
|
|
return CreateClassModule(DoubleLinkedList, [{key: 'get', value: function(a0) {
|
|
var r1;
|
|
var r4;
|
|
var r6;
|
|
var r0;
|
|
var property;
|
|
var value;
|
|
if (a0 >= this.length) {
|
|
throw new global.Error('Position outside of list range');
|
|
}
|
|
property = this.head;
|
|
value = 0;
|
|
var value2 = null;
|
|
if (value < a0) {
|
|
r1 = property;
|
|
r4 = value;
|
|
while (true) {
|
|
value = undefined;
|
|
if (value2 == r1) {
|
|
r6 = value;
|
|
} else {
|
|
property = r1.next;
|
|
r6 = property;
|
|
}
|
|
if (r6) {
|
|
continue;
|
|
}
|
|
r6 = value2;
|
|
continue;
|
|
value = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
if (value < a0) {
|
|
r1 = r6;
|
|
r4 = value;
|
|
continue;
|
|
}
|
|
r0 = r6;
|
|
break;
|
|
}
|
|
} else {
|
|
r0 = property;
|
|
}
|
|
return r0;
|
|
}}, {key: 'addNode', value: value_11826}, {key: 'removeNode', value: value_11827}]);
|
|
function DoubleLinkedList() { // fn#11824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:29459, offset: 0x00db9ded, size: 49 bytes, params: 1, frame: 13
|
|
env1_8(this, DoubleLinkedList);
|
|
this.length = 0;
|
|
this.head = null;
|
|
this.tail = null;
|
|
}
|
|
|
|
function value_11826(a0) { // fn#11826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:29767, offset: 0x00db9e87, size: 334 bytes, params: 2, frame: 15
|
|
var value;
|
|
var isNodeInLinkedListBinding;
|
|
var nextSibling;
|
|
var __ln;
|
|
var previous;
|
|
var head;
|
|
var next;
|
|
const object = {'value': null, 'previous': null, 'next': null};
|
|
object.value = a0;
|
|
a0.__ln = object;
|
|
let previousSibling = a0.previousSibling;
|
|
if (previousSibling) {
|
|
value = environment.__proto__;
|
|
isNodeInLinkedListBinding = isNodeInLinkedList;
|
|
previousSibling = a0.previousSibling;
|
|
if (isNodeInLinkedListBinding(previousSibling)) {
|
|
previousSibling = a0.previousSibling;
|
|
__ln = previousSibling.__ln;
|
|
next = __ln.next;
|
|
object.next = next;
|
|
previousSibling = a0.previousSibling;
|
|
__ln = previousSibling.__ln;
|
|
object.previous = __ln;
|
|
previousSibling = a0.previousSibling;
|
|
__ln = previousSibling.__ln;
|
|
__ln.next = object;
|
|
if (next) {
|
|
next.previous = object;
|
|
}
|
|
} else {
|
|
nextSibling = a0.nextSibling;
|
|
if (nextSibling) {
|
|
value = environment.__proto__;
|
|
isNodeInLinkedListBinding = isNodeInLinkedList;
|
|
nextSibling = a0.nextSibling;
|
|
if (isNodeInLinkedListBinding(nextSibling)) {
|
|
nextSibling = a0.nextSibling;
|
|
__ln = nextSibling.__ln;
|
|
previous = __ln.previous;
|
|
if (previous) {
|
|
nextSibling = a0.nextSibling;
|
|
__ln = nextSibling.__ln;
|
|
previous = __ln.previous;
|
|
object.previous = previous;
|
|
nextSibling = a0.nextSibling;
|
|
__ln = nextSibling.__ln;
|
|
object.next = __ln;
|
|
nextSibling = a0.nextSibling;
|
|
__ln = nextSibling.__ln;
|
|
__ln.previous = object;
|
|
if (previous) {
|
|
previous.next = object;
|
|
}
|
|
} else {
|
|
head = this.head;
|
|
if (head) {
|
|
this.head.previous = object;
|
|
}
|
|
head = this.head;
|
|
object.next = head;
|
|
this.head = object;
|
|
}
|
|
} else {
|
|
head = this.head;
|
|
if (head) {
|
|
this.head.previous = object;
|
|
}
|
|
head = this.head;
|
|
object.next = head;
|
|
this.head = object;
|
|
}
|
|
} else {
|
|
head = this.head;
|
|
if (head) {
|
|
this.head.previous = object;
|
|
}
|
|
head = this.head;
|
|
object.next = head;
|
|
this.head = object;
|
|
}
|
|
}
|
|
} else {
|
|
nextSibling = a0.nextSibling;
|
|
if (nextSibling) {
|
|
value = environment.__proto__;
|
|
isNodeInLinkedListBinding = isNodeInLinkedList;
|
|
nextSibling = a0.nextSibling;
|
|
if (isNodeInLinkedListBinding(nextSibling)) {
|
|
nextSibling = a0.nextSibling;
|
|
__ln = nextSibling.__ln;
|
|
previous = __ln.previous;
|
|
if (previous) {
|
|
nextSibling = a0.nextSibling;
|
|
__ln = nextSibling.__ln;
|
|
previous = __ln.previous;
|
|
object.previous = previous;
|
|
nextSibling = a0.nextSibling;
|
|
__ln = nextSibling.__ln;
|
|
object.next = __ln;
|
|
nextSibling = a0.nextSibling;
|
|
__ln = nextSibling.__ln;
|
|
__ln.previous = object;
|
|
if (previous) {
|
|
previous.next = object;
|
|
}
|
|
} else {
|
|
head = this.head;
|
|
if (head) {
|
|
this.head.previous = object;
|
|
}
|
|
head = this.head;
|
|
object.next = head;
|
|
this.head = object;
|
|
}
|
|
} else {
|
|
head = this.head;
|
|
if (head) {
|
|
this.head.previous = object;
|
|
}
|
|
head = this.head;
|
|
object.next = head;
|
|
this.head = object;
|
|
}
|
|
} else {
|
|
head = this.head;
|
|
if (head) {
|
|
this.head.previous = object;
|
|
}
|
|
head = this.head;
|
|
object.next = head;
|
|
this.head = object;
|
|
}
|
|
}
|
|
if (object.next === null) {
|
|
this.tail = object;
|
|
}
|
|
const length = this.length;
|
|
this.length = typeof length === 'bigint' ? length + 1n : +length + 1;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11829() { // fn#11829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:30659, offset: 0x00dba09e, size: 193 bytes, params: 1, frame: 15
|
|
return CreateClassModule(MutationBuffer, [{key: 'init', value: function(a0) {
|
|
var env0_0 = a0;
|
|
var env0_1 = this;
|
|
['mutationCb', 'blockClass', 'blockSelector', 'unblockSelector', 'maskAllText', 'maskTextClass',
|
|
'unmaskTextClass',
|
|
'maskTextSelector', 'unmaskTextSelector', 'inlineStylesheet', 'maskInputOptions', 'maskAttributeFn',
|
|
'maskTextFn', 'maskInputFn', 'keepIframeSrcFn', 'recordCanvas', 'inlineImages', 'slimDOMOptions',
|
|
'dataURLOptions', 'doc', 'mirror', 'iframeManager', 'stylesheetManager', 'shadowDomManager',
|
|
'canvasManager',
|
|
'processedNodeManager', 'ignoreCSSAttributes'].forEach(_fun11852);
|
|
}}, {key: 'freeze', value: function() {
|
|
this.frozen = true;
|
|
this.canvasManager.freeze();
|
|
}}, {key: 'unfreeze', value: function() {
|
|
this.frozen = false;
|
|
this.canvasManager.unfreeze();
|
|
this.emit();
|
|
}}, {key: 'isFrozen', value: function() {
|
|
return this.frozen;
|
|
}}, {key: 'lock', value: function() {
|
|
this.locked = true;
|
|
this.canvasManager.lock();
|
|
}}, {key: 'unlock', value: function() {
|
|
this.locked = false;
|
|
this.canvasManager.unlock();
|
|
this.emit();
|
|
}}, {key: 'reset', value: function() {
|
|
this.shadowDomManager.reset();
|
|
this.canvasManager.reset();
|
|
}}]);
|
|
function MutationBuffer() { // fn#11830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:30693, offset: 0x00dba15f, size: 269 bytes, params: 1, frame: 15
|
|
var environment;
|
|
const value = environment.__proto__;
|
|
env1_8(this, MutationBuffer);
|
|
this.frozen = false;
|
|
this.locked = false;
|
|
this.texts = [];
|
|
this.attributes = [];
|
|
const WeakMap = global.WeakMap;
|
|
this.attributeMap = new WeakMap();
|
|
this.removes = [];
|
|
this.mapRemoves = [];
|
|
this.movedMap = {};
|
|
let Set = global.Set;
|
|
this.addedSet = new Set();
|
|
Set = global.Set;
|
|
this.movedSet = new Set();
|
|
Set = global.Set;
|
|
this.droppedSet = new Set();
|
|
this.processMutations = processMutations;
|
|
this.emit = emit_11832;
|
|
this.processMutation = processMutation;
|
|
this.genAdds = genAdds;
|
|
function processMutations(a0) { // fn#11831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:30988, owner: MutationBuffer.processMutations, offset: 0x00dba26c, size: 40 bytes, params: 2, frame: 12
|
|
const forEach = a0.forEach;
|
|
const binding = env0_0;
|
|
Reflect.apply(forEach, a0, [binding.processMutation]);
|
|
binding.emit();
|
|
}
|
|
|
|
function MutationBufferEmit() { // fn#11832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:31049, owner: MutationBuffer.emit, offset: 0x00dba294, size: 1355 bytes, params: 1, frame: 42
|
|
var environment;
|
|
var r5;
|
|
var r10;
|
|
var previous;
|
|
var r17;
|
|
var r24;
|
|
var r23;
|
|
var r3;
|
|
var length;
|
|
var value;
|
|
var frozen;
|
|
var locked;
|
|
var items2;
|
|
var Set;
|
|
var prototype;
|
|
var value2;
|
|
var set;
|
|
var value3;
|
|
var value4;
|
|
var binding;
|
|
var value5;
|
|
var binding2;
|
|
var value7;
|
|
var getNextId2;
|
|
var pushAdd2;
|
|
var mapRemoves;
|
|
var mirror;
|
|
var removeNodeFromMap;
|
|
var shift;
|
|
var movedSet;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var isParentRemovedBinding;
|
|
var removes;
|
|
var isParentRemoved2;
|
|
var has;
|
|
var parentNode;
|
|
var value8;
|
|
var value9;
|
|
var error;
|
|
var addedSet;
|
|
var iterator3;
|
|
var item3;
|
|
var isAncestorInSetBinding;
|
|
var droppedSet;
|
|
var isAncestorInSet2;
|
|
var isParentRemoved3;
|
|
var isAncestorInSet3;
|
|
var add;
|
|
var value10;
|
|
var getId;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var nextId2;
|
|
var value15;
|
|
var value16;
|
|
var tail;
|
|
var value17;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var nodeType;
|
|
var Node;
|
|
var DOCUMENT_FRAGMENT_NODE;
|
|
var host;
|
|
var head;
|
|
var removeNode;
|
|
var value21;
|
|
var value22;
|
|
var value23;
|
|
var object;
|
|
var texts;
|
|
var map;
|
|
var value24;
|
|
var filter;
|
|
var value25;
|
|
var attributes;
|
|
var value26;
|
|
var value27;
|
|
var adds;
|
|
var WeakMap;
|
|
var weakMap;
|
|
var mutationCb;
|
|
exceptionSkip56: while (true) {
|
|
exceptionLanding56: while (true) {
|
|
exceptionSkip23: while (true) {
|
|
exceptionLanding23: while (true) {
|
|
value = environment;
|
|
frozen = items3.frozen;
|
|
reducibleJoin83: while (true) {
|
|
if (frozen) {
|
|
break reducibleJoin83;
|
|
}
|
|
locked = items3.locked;
|
|
if (locked) {
|
|
break reducibleJoin83;
|
|
}
|
|
items2 = [];
|
|
var items3 = items2;
|
|
Set = global.Set;
|
|
prototype = Set.prototype;
|
|
value2 = Object.create(prototype, {constructor: {value: Set}});
|
|
set = new Set();
|
|
value3 = set instanceof Object ? set : value2;
|
|
var env0_1 = value3;
|
|
value4 = environment.__proto__.__proto__;
|
|
binding = env2_43;
|
|
prototype = binding.prototype;
|
|
value5 = Object.create(prototype, {constructor: {value: binding}});
|
|
binding2 = new binding();
|
|
value7 = binding2 instanceof Object ? binding2 : value5;
|
|
var env0_2 = value7;
|
|
getNextId2 = getNextId;
|
|
var getNextId = getNextId2;
|
|
pushAdd2 = pushAdd;
|
|
mapRemoves = items3.mapRemoves;
|
|
length = mapRemoves.length;
|
|
if (length) {
|
|
reducibleLoop3: while (true) {
|
|
binding = items3;
|
|
mirror = binding.mirror;
|
|
removeNodeFromMap = mirror.removeNodeFromMap;
|
|
mapRemoves = binding.mapRemoves;
|
|
shift = mapRemoves.shift;
|
|
Reflect.apply(removeNodeFromMap, mirror, [Reflect.apply(shift, mapRemoves, [])]);
|
|
mapRemoves = binding.mapRemoves;
|
|
length = mapRemoves.length;
|
|
if (length) {
|
|
continue reducibleLoop3;
|
|
}
|
|
break reducibleLoop3;
|
|
}
|
|
}
|
|
movedSet = items3.movedSet;
|
|
iterator = movedSet[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
r5 = iterator;
|
|
reducibleLoop5: while (true) {
|
|
item2 = Reflect.apply(iterator2, r5, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r5;
|
|
if (item2 === undefined) {
|
|
break reducibleLoop5;
|
|
}
|
|
try {
|
|
isParentRemovedBinding = isParentRemoved;
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
binding = items3;
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
removes = binding.removes;
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
mirror = binding.mirror;
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
isParentRemoved2 = isParentRemovedBinding(removes, item, mirror);
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
reducibleJoin20: while (true) {
|
|
if (isParentRemoved2) {
|
|
try {
|
|
binding = items3;
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
movedSet = binding.movedSet;
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
has = movedSet.has;
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
parentNode = item.parentNode;
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
try {
|
|
value8 = Reflect.apply(has, movedSet, [parentNode]);
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
value9 = !value8;
|
|
r10 = value9;
|
|
break reducibleJoin20;
|
|
}
|
|
r10 = isParentRemoved2;
|
|
break reducibleJoin20;
|
|
}
|
|
if (r10) {
|
|
r5 = item2;
|
|
continue reducibleLoop5;
|
|
}
|
|
try {
|
|
pushAdd2(item);
|
|
} catch (error) {
|
|
break exceptionLanding23;
|
|
}
|
|
r5 = item2;
|
|
continue reducibleLoop5;
|
|
}
|
|
addedSet = items3.addedSet;
|
|
iterator = addedSet[Symbol.iterator]();
|
|
iterator3 = iterator.next;
|
|
r5 = iterator;
|
|
reducibleLoop25: while (true) {
|
|
item3 = Reflect.apply(iterator3, r5, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : r5;
|
|
if (item3 === undefined) {
|
|
break reducibleLoop25;
|
|
}
|
|
try {
|
|
isAncestorInSetBinding = isAncestorInSet;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
try {
|
|
binding = items3;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
try {
|
|
droppedSet = binding.droppedSet;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
try {
|
|
isAncestorInSet2 = isAncestorInSetBinding(droppedSet, item);
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
if (!isAncestorInSet2) {
|
|
try {
|
|
isParentRemovedBinding = isParentRemoved;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
try {
|
|
binding = items3;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
try {
|
|
removes = binding.removes;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
try {
|
|
mirror = binding.mirror;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
try {
|
|
isParentRemoved3 = isParentRemovedBinding(removes, item, mirror);
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
reducibleJoin42: while (true) {
|
|
if (isParentRemoved3) {
|
|
break reducibleJoin42;
|
|
}
|
|
try {
|
|
pushAdd2(item);
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
r5 = item3;
|
|
continue reducibleLoop25;
|
|
}
|
|
}
|
|
try {
|
|
isAncestorInSetBinding = isAncestorInSet;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
try {
|
|
binding = items3;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
try {
|
|
movedSet = binding.movedSet;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
try {
|
|
isAncestorInSet3 = isAncestorInSetBinding(movedSet, item);
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
if (isAncestorInSet3) {
|
|
try {
|
|
pushAdd2(item);
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
r5 = item3;
|
|
continue reducibleLoop25;
|
|
}
|
|
try {
|
|
binding = items3;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
try {
|
|
droppedSet = binding.droppedSet;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
try {
|
|
add = droppedSet.add;
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
try {
|
|
Reflect.apply(add, droppedSet, [item]);
|
|
} catch (error) {
|
|
break exceptionLanding56;
|
|
}
|
|
r5 = item3;
|
|
continue reducibleLoop25;
|
|
}
|
|
length = value7.length;
|
|
value10 = null;
|
|
if (length) {
|
|
previous = value10;
|
|
reducibleLoop58: while (true) {
|
|
reducibleJoin62: while (true) {
|
|
if (previous) {
|
|
mirror = items3.mirror;
|
|
getId = mirror.getId;
|
|
value11 = previous.value;
|
|
parentNode = value11.parentNode;
|
|
value12 = Reflect.apply(getId, mirror, [parentNode]);
|
|
value13 = previous.value;
|
|
nextId2 = getNextId2(value13);
|
|
value15 = value12 !== -1;
|
|
reducibleJoin61: while (true) {
|
|
if (value15) {
|
|
value16 = nextId2 !== -1;
|
|
r17 = value16;
|
|
break reducibleJoin61;
|
|
}
|
|
r17 = value15;
|
|
break reducibleJoin61;
|
|
}
|
|
if (r17) {
|
|
r24 = previous;
|
|
break reducibleJoin62;
|
|
}
|
|
r24 = value10;
|
|
break reducibleJoin62;
|
|
}
|
|
r24 = value10;
|
|
break reducibleJoin62;
|
|
}
|
|
reducibleJoin71: while (true) {
|
|
if (r24) {
|
|
r3 = r24;
|
|
break reducibleJoin71;
|
|
}
|
|
tail = value7.tail;
|
|
if (!tail) {
|
|
r3 = r24;
|
|
break reducibleJoin71;
|
|
}
|
|
r23 = tail;
|
|
reducibleLoop64: while (true) {
|
|
previous = r23.previous;
|
|
if (r23) {
|
|
mirror = items3.mirror;
|
|
getId = mirror.getId;
|
|
value17 = r23.value;
|
|
parentNode = value17.parentNode;
|
|
value18 = Reflect.apply(getId, mirror, [parentNode]);
|
|
value19 = r23.value;
|
|
reducibleJoin70: while (true) {
|
|
if (getNextId2(value19) === -1) {
|
|
break reducibleJoin70;
|
|
}
|
|
if (value18 !== -1) {
|
|
r3 = r23;
|
|
break reducibleJoin71;
|
|
}
|
|
value20 = r23.value;
|
|
parentNode = value20.parentNode;
|
|
if (parentNode) {
|
|
parentNode = value20.parentNode;
|
|
nodeType = parentNode.nodeType;
|
|
Node = global.Node;
|
|
DOCUMENT_FRAGMENT_NODE = Node.DOCUMENT_FRAGMENT_NODE;
|
|
if (nodeType !== DOCUMENT_FRAGMENT_NODE) {
|
|
break reducibleJoin70;
|
|
}
|
|
parentNode = value20.parentNode;
|
|
host = parentNode.host;
|
|
mirror = items3.mirror;
|
|
getId = mirror.getId;
|
|
if (Reflect.apply(getId, mirror, [host]) !== -1) {
|
|
r3 = r23;
|
|
break reducibleJoin71;
|
|
}
|
|
break reducibleJoin70;
|
|
}
|
|
break reducibleJoin70;
|
|
}
|
|
}
|
|
if (previous) {
|
|
r23 = previous;
|
|
continue reducibleLoop64;
|
|
}
|
|
r3 = r24;
|
|
break reducibleJoin71;
|
|
}
|
|
}
|
|
if (r3) {
|
|
previous = r3.previous;
|
|
removeNode = value7.removeNode;
|
|
value22 = r3.value;
|
|
Reflect.apply(removeNode, value7, [value22]);
|
|
value23 = r3.value;
|
|
pushAdd2(value23);
|
|
length = value7.length;
|
|
if (length) {
|
|
continue reducibleLoop58;
|
|
}
|
|
break reducibleLoop58;
|
|
}
|
|
head = value7.head;
|
|
if (head) {
|
|
reducibleLoop73: while (true) {
|
|
removeNode = value7.removeNode;
|
|
head = value7.head;
|
|
value21 = head.value;
|
|
Reflect.apply(removeNode, value7, [value21]);
|
|
head = value7.head;
|
|
if (head) {
|
|
continue reducibleLoop73;
|
|
}
|
|
break reducibleLoop73;
|
|
}
|
|
}
|
|
break reducibleLoop58;
|
|
}
|
|
}
|
|
object = {};
|
|
binding = items3;
|
|
texts = binding.texts;
|
|
map = texts.map;
|
|
value24 = Reflect.apply(map, texts, [_fun11839]);
|
|
filter = value24.filter;
|
|
value25 = Reflect.apply(filter, value24, [_fun11840]);
|
|
filter = value25.filter;
|
|
object.texts = Reflect.apply(filter, value25, [_fun11841]);
|
|
attributes = binding.attributes;
|
|
map = attributes.map;
|
|
value26 = Reflect.apply(map, attributes, [_fun11842]);
|
|
filter = value26.filter;
|
|
value27 = Reflect.apply(filter, value26, [_fun11843]);
|
|
filter = value27.filter;
|
|
object.attributes = Reflect.apply(filter, value27, [_fun11844]);
|
|
removes = binding.removes;
|
|
object.removes = removes;
|
|
object.adds = items2;
|
|
texts = object.texts;
|
|
length = texts.length;
|
|
reducibleJoin77: while (true) {
|
|
if (length) {
|
|
break reducibleJoin77;
|
|
}
|
|
attributes = object.attributes;
|
|
length = attributes.length;
|
|
break reducibleJoin77;
|
|
}
|
|
reducibleJoin79: while (true) {
|
|
if (length) {
|
|
break reducibleJoin79;
|
|
}
|
|
removes = object.removes;
|
|
length = removes.length;
|
|
break reducibleJoin79;
|
|
}
|
|
reducibleJoin81: while (true) {
|
|
if (length) {
|
|
break reducibleJoin81;
|
|
}
|
|
adds = object.adds;
|
|
length = adds.length;
|
|
break reducibleJoin81;
|
|
}
|
|
if (length) {
|
|
binding = items3;
|
|
binding.texts = [];
|
|
binding.attributes = [];
|
|
WeakMap = global.WeakMap;
|
|
prototype = WeakMap.prototype;
|
|
value = Object.create(prototype, {constructor: {value: WeakMap}});
|
|
weakMap = new WeakMap();
|
|
value = weakMap instanceof Object ? weakMap : value;
|
|
binding.attributeMap = value;
|
|
binding.removes = [];
|
|
Set = global.Set;
|
|
prototype = Set.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Set}});
|
|
set = new Set();
|
|
value = set instanceof Object ? set : value;
|
|
binding.addedSet = value;
|
|
Set = global.Set;
|
|
prototype = Set.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Set}});
|
|
set = new Set();
|
|
value = set instanceof Object ? set : value;
|
|
binding.movedSet = value;
|
|
Set = global.Set;
|
|
prototype = Set.prototype;
|
|
value = Object.create(prototype, {constructor: {value: Set}});
|
|
set = new Set();
|
|
value = set instanceof Object ? set : value;
|
|
binding.droppedSet = value;
|
|
binding.movedMap = {};
|
|
mutationCb = binding.mutationCb;
|
|
Reflect.apply(mutationCb, binding, [object]);
|
|
break reducibleJoin83;
|
|
}
|
|
break reducibleJoin83;
|
|
}
|
|
return undefined;
|
|
break exceptionSkip23;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip23;
|
|
}
|
|
break exceptionSkip56;
|
|
}
|
|
try {
|
|
item3.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip56;
|
|
}
|
|
function getNextId(a0) { // fn#11833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:31118, owner: MutationBuffer.emit.getNextId, offset: 0x00dba7df, size: 60 bytes, params: 2, frame: 15
|
|
var r4;
|
|
var r0;
|
|
var nextSibling;
|
|
var mirror;
|
|
let value = a0;
|
|
let r3 = value;
|
|
while (true) {
|
|
if (r3) {
|
|
nextSibling = r3.nextSibling;
|
|
r4 = nextSibling;
|
|
} else {
|
|
r4 = r3;
|
|
}
|
|
if (!r4) {
|
|
r0 = r4;
|
|
continue;
|
|
}
|
|
mirror = env1_0.mirror;
|
|
value = mirror.getId(r4);
|
|
r0 = value;
|
|
if (r0 === -2) {
|
|
r3 = r4;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function pushAdd(a0) { // fn#11834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:31219, owner: MutationBuffer.emit.pushAdd, offset: 0x00dba81b, size: 499 bytes, params: 2, frame: 20
|
|
var environment;
|
|
var r7;
|
|
var value;
|
|
var isShadowRoot2;
|
|
var value2;
|
|
var mirror;
|
|
var getId;
|
|
var nextId;
|
|
var serializeNodeWithIdBinding;
|
|
var binding;
|
|
if (a0.parentNode) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
if (inDom(a0)) {
|
|
isShadowRoot2 = isShadowRoot(a0.parentNode);
|
|
value2 = environment.__proto__;
|
|
mirror = env1_0.mirror;
|
|
getId = mirror.getId;
|
|
r7 = isShadowRoot2 ? Reflect.apply(getId, mirror, [getShadowHost(a0)]) : Reflect.apply(getId, mirror,
|
|
[a0.parentNode]);
|
|
nextId = getNextId(a0);
|
|
if (r7 === -1) {
|
|
return env0_2.addNode(a0);
|
|
}
|
|
if (nextId === -1) {
|
|
return env0_2.addNode(a0);
|
|
}
|
|
serializeNodeWithIdBinding = serializeNodeWithId;
|
|
binding = env1_0;
|
|
mirror = binding.mirror;
|
|
value = serializeNodeWithIdBinding(a0, {doc: binding.doc, mirror: mirror, blockClass: binding.blockClass,
|
|
blockSelector: binding.blockSelector, maskAllText: binding.maskAllText,
|
|
unblockSelector: binding.unblockSelector, maskTextClass: binding.maskTextClass,
|
|
unmaskTextClass: binding.unmaskTextClass, maskTextSelector: binding.maskTextSelector,
|
|
unmaskTextSelector: binding.unmaskTextSelector, skipChild: true, newlyAddedElement: true,
|
|
inlineStylesheet: binding.inlineStylesheet, maskInputOptions: binding.maskInputOptions,
|
|
maskAttributeFn: binding.maskAttributeFn, maskTextFn: binding.maskTextFn,
|
|
maskInputFn: binding.maskInputFn,
|
|
slimDOMOptions: binding.slimDOMOptions, dataURLOptions: binding.dataURLOptions,
|
|
recordCanvas: binding.recordCanvas, inlineImages: binding.inlineImages, onSerialize: onSerialize_11835,
|
|
onIframeLoad: onIframeLoad_11836, onStylesheetLoad: onStylesheetLoad_11837,
|
|
onBlockedImageLoad: onBlockedImageLoad_11838, ignoreCSSAttributes: binding.ignoreCSSAttributes});
|
|
if (value) {
|
|
binding = a0;
|
|
binding.push({parentId: r7, nextId: nextId, node: value});
|
|
binding = env0_1;
|
|
binding.add(value.id);
|
|
}
|
|
return undefined;
|
|
}
|
|
}
|
|
function pushAddOnSerialize(a0) { // fn#11835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:32037, owner: MutationBuffer.emit.pushAdd.onSerialize, offset: 0x00dbaa0e, size: 201 bytes, params: 2, frame: 22
|
|
var r3;
|
|
var isBlockedBinding;
|
|
var binding;
|
|
var shadowDomManager;
|
|
const isSerializedIframe2 = isSerializedIframe(a0, env2_0.mirror);
|
|
if (isSerializedIframe2) {
|
|
isBlockedBinding = isBlocked;
|
|
binding = env2_0;
|
|
r3 = !isBlockedBinding(a0, binding.blockClass, binding.blockSelector, binding.unblockSelector, false);
|
|
} else {
|
|
r3 = isSerializedIframe2;
|
|
}
|
|
if (r3) {
|
|
env2_0.iframeManager.addIframe(a0);
|
|
}
|
|
if (isSerializedStylesheet(a0, env2_0.mirror)) {
|
|
env2_0.stylesheetManager.trackLinkElement(a0);
|
|
}
|
|
if (hasShadowRoot(env0_0)) {
|
|
binding = env2_0;
|
|
shadowDomManager = binding.shadowDomManager;
|
|
shadowDomManager.addShadowRoot(env0_0.shadowRoot, binding.doc);
|
|
}
|
|
}
|
|
|
|
function pushAddOnIframeLoad(a0, a1) { // fn#11836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:32348, owner: MutationBuffer.emit.pushAdd.onIframeLoad, offset: 0x00dbaad7, size: 135 bytes, params: 3, frame: 20
|
|
var canvasManager;
|
|
const isBlockedBinding = isBlocked;
|
|
const binding = env2_0;
|
|
if (!isBlockedBinding(a0, binding.blockClass, binding.blockSelector, binding.unblockSelector, false)) {
|
|
env2_0.iframeManager.attachIframe(a0, a1);
|
|
if (a0.contentWindow) {
|
|
canvasManager = env2_0.canvasManager;
|
|
canvasManager.addWindow(a0.contentWindow);
|
|
}
|
|
env2_0.shadowDomManager.observeAttachShadow(a0);
|
|
}
|
|
}
|
|
|
|
function pushAddOnStylesheetLoad(a0, a1) { // fn#11837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:32595, owner: MutationBuffer.emit.pushAdd.onStylesheetLoad, offset: 0x00dbab5e, size: 35 bytes, params: 3, frame: 13
|
|
env2_0.stylesheetManager.attachLinkElement(a0, a1);
|
|
}
|
|
|
|
function pushAddOnBlockedImageLoad(a0, {id}, {width, height}) { // fn#11838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:32689, owner: MutationBuffer.emit.pushAdd.onBlockedImageLoad, offset: 0x00dbab81, size: 156 bytes, params: 4, frame: 21
|
|
env2_0.mutationCb({adds: [], removes: [], texts: [], attributes: [{id: id,
|
|
attributes: {style: {width: '' + width + 'px', height: '' + height + 'px'}}}]});
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11839({node, value}) { // fn#11839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:33829, offset: 0x00dbac1d, size: 50 bytes, params: 2, frame: 13
|
|
const object = {};
|
|
const __proto__ = environment.__proto__;
|
|
object.id = env1_0.mirror.getId(node);
|
|
object.value = __proto__;
|
|
return object;
|
|
}
|
|
|
|
function _fun11840({id}) { // fn#11840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:33900, offset: 0x00dbac4f, size: 30 bytes, params: 2, frame: 11
|
|
const binding = env0_1;
|
|
return !binding.has(id);
|
|
}
|
|
|
|
function _fun11841({id}) { // fn#11841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:33942, offset: 0x00dbac6d, size: 33 bytes, params: 2, frame: 11
|
|
return env1_0.mirror.has(id);
|
|
}
|
|
|
|
function _fun11842(a0) { // fn#11842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:34012, offset: 0x00dbac8e, size: 205 bytes, params: 2, frame: 15
|
|
var r0;
|
|
var JSON;
|
|
var value;
|
|
var value2;
|
|
var length;
|
|
var value3;
|
|
var split;
|
|
const attributes = a0.attributes;
|
|
let style = attributes.style;
|
|
if (typeof style === 'string') {
|
|
JSON = global.JSON;
|
|
value = JSON.stringify(a0.styleDiff);
|
|
JSON = global.JSON;
|
|
value2 = JSON.stringify(a0._unchangedStyles);
|
|
length = value.length;
|
|
style = attributes.style;
|
|
value3 = length < style.length;
|
|
if (value3) {
|
|
value += value2;
|
|
split = value.split;
|
|
length = Reflect.apply(split, value, ['var(']).length;
|
|
style = attributes.style;
|
|
split = style.split;
|
|
value = length === Reflect.apply(split, style, ['var(']).length;
|
|
r0 = value;
|
|
} else {
|
|
r0 = value3;
|
|
}
|
|
if (r0) {
|
|
attributes.style = a0.styleDiff;
|
|
}
|
|
}
|
|
value = environment.__proto__;
|
|
const mirror = env1_0.mirror;
|
|
const getId = mirror.getId;
|
|
return {id: Reflect.apply(getId, mirror, [a0.node]), attributes: attributes};
|
|
}
|
|
|
|
function _fun11843({id}) { // fn#11843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:34307, offset: 0x00dbac4f, size: 30 bytes, params: 2, frame: 11
|
|
const binding = env0_1;
|
|
return !binding.has(id);
|
|
}
|
|
|
|
function _fun11844({id}) { // fn#11844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:34349, offset: 0x00dbac6d, size: 33 bytes, params: 2, frame: 11
|
|
return env1_0.mirror.has(id);
|
|
}
|
|
|
|
}
|
|
|
|
function processMutation(a0) { // fn#11845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:34669, owner: MutationBuffer.processMutation, offset: 0x00dbad5b, size: 1526 bytes, params: 2, frame: 38
|
|
var environment;
|
|
var r20;
|
|
var r2;
|
|
var r9;
|
|
var r3;
|
|
var oldValue;
|
|
var r12;
|
|
var r16;
|
|
var r1;
|
|
var r6;
|
|
var r5;
|
|
var value;
|
|
var isIgnored_11481Binding;
|
|
var target;
|
|
var value2;
|
|
var mirror;
|
|
var type;
|
|
var isBlockedBinding;
|
|
var binding;
|
|
var blockClass;
|
|
var blockSelector;
|
|
var unblockSelector;
|
|
var addedNodes;
|
|
var forEach;
|
|
var removedNodes;
|
|
var attributeName;
|
|
var target2;
|
|
var getAttribute;
|
|
var value3;
|
|
var inputType;
|
|
var tagName;
|
|
var inputValue;
|
|
var shouldMaskInputBinding;
|
|
var object;
|
|
var maskInputOptions;
|
|
var shouldMaskInput2;
|
|
var maskInputValueBinding;
|
|
var needMaskingTextBinding;
|
|
var target3;
|
|
var maskTextClass;
|
|
var maskTextSelector;
|
|
var unmaskTextClass;
|
|
var unmaskTextSelector;
|
|
var maskInputFn;
|
|
var value6;
|
|
var target4;
|
|
var attributeMap;
|
|
var get;
|
|
var target5;
|
|
var value7;
|
|
var keepIframeSrcFn;
|
|
var iFrameContentDocument;
|
|
var value9;
|
|
var target6;
|
|
var attributes;
|
|
var push;
|
|
var set;
|
|
var target7;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var toLowerCase2;
|
|
var value13;
|
|
var value14;
|
|
var setAttribute;
|
|
var ignoreAttributeBinding;
|
|
var transformAttributeBinding;
|
|
var doc;
|
|
var toLowerCaseBinding;
|
|
var value15;
|
|
var maskAttributeFn;
|
|
var unattachedDoc;
|
|
var document;
|
|
var implementation;
|
|
var createHTMLDocument;
|
|
var error;
|
|
var createElement;
|
|
var Array;
|
|
var from;
|
|
var style;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var getPropertyValue;
|
|
var value16;
|
|
var getPropertyPriority;
|
|
var value17;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var _unchangedStyles;
|
|
var styleDiff;
|
|
var value22;
|
|
var iterator3;
|
|
var item3;
|
|
var textContent;
|
|
var isBlocked2;
|
|
var value23;
|
|
var texts;
|
|
var maskAllText;
|
|
var maskTextFn;
|
|
var replace;
|
|
var closestElementOfNode$1Binding;
|
|
exceptionLanding93: while (true) {
|
|
exceptionLanding81: while (true) {
|
|
var env0_0 = a0;
|
|
value = environment.__proto__.__proto__;
|
|
isIgnored_11481Binding = isIgnored_11481;
|
|
target = a0.target;
|
|
value2 = environment;
|
|
mirror = env0_0.mirror;
|
|
if (!isIgnored_11481Binding(target, mirror)) {
|
|
type = a0.type;
|
|
if (type === 'characterData') {
|
|
target = a0.target;
|
|
textContent = target.textContent;
|
|
isBlockedBinding = isBlocked;
|
|
target = a0.target;
|
|
binding = env0_0;
|
|
blockClass = binding.blockClass;
|
|
blockSelector = binding.blockSelector;
|
|
unblockSelector = binding.unblockSelector;
|
|
isBlocked2 = isBlockedBinding(target, blockClass, blockSelector, unblockSelector, false);
|
|
reducibleJoin97: while (true) {
|
|
if (isBlocked2) {
|
|
r1 = isBlocked2;
|
|
break reducibleJoin97;
|
|
}
|
|
oldValue = a0.oldValue;
|
|
value23 = textContent === oldValue;
|
|
r1 = value23;
|
|
break reducibleJoin97;
|
|
}
|
|
reducibleJoin105: while (true) {
|
|
if (r1) {
|
|
break reducibleJoin105;
|
|
}
|
|
binding = env0_0;
|
|
texts = binding.texts;
|
|
push = texts.push;
|
|
needMaskingTextBinding = needMaskingText;
|
|
target = a0.target;
|
|
maskTextClass = binding.maskTextClass;
|
|
maskTextSelector = binding.maskTextSelector;
|
|
unmaskTextClass = binding.unmaskTextClass;
|
|
unmaskTextSelector = binding.unmaskTextSelector;
|
|
maskAllText = binding.maskAllText;
|
|
reducibleJoin104: while (true) {
|
|
if (needMaskingTextBinding(target, maskTextClass, maskTextSelector, unmaskTextClass,
|
|
unmaskTextSelector,
|
|
maskAllText)) {
|
|
if (textContent) {
|
|
maskTextFn = env0_0.maskTextFn;
|
|
if (maskTextFn) {
|
|
binding = env0_0;
|
|
maskTextFn = binding.maskTextFn;
|
|
closestElementOfNode$1Binding = closestElementOfNode$1;
|
|
target = a0.target;
|
|
value = Reflect.apply(maskTextFn, binding, [textContent,
|
|
closestElementOfNode$1Binding(target)]);
|
|
r6 = value;
|
|
} else {
|
|
replace = textContent.replace;
|
|
value = Reflect.apply(replace, textContent, [RegExp('[\\S]', 'g'), '*']);
|
|
r6 = value;
|
|
}
|
|
r5 = r6;
|
|
break reducibleJoin104;
|
|
}
|
|
r5 = textContent;
|
|
break reducibleJoin104;
|
|
}
|
|
r5 = textContent;
|
|
break reducibleJoin104;
|
|
}
|
|
target = a0.target;
|
|
Reflect.apply(push, texts, [{value: r5, node: target}]);
|
|
break reducibleJoin105;
|
|
}
|
|
} else if (type === 'attributes') {
|
|
target = a0.target;
|
|
attributeName = a0.attributeName;
|
|
target2 = a0.target;
|
|
getAttribute = target2.getAttribute;
|
|
value3 = Reflect.apply(getAttribute, target2, [attributeName]);
|
|
reducibleJoin9: while (true) {
|
|
if (attributeName !== 'value') {
|
|
r20 = value3;
|
|
break reducibleJoin9;
|
|
}
|
|
inputType = getInputType(target);
|
|
tagName = target.tagName;
|
|
inputValue = getInputValue(target, tagName, inputType);
|
|
shouldMaskInputBinding = shouldMaskInput;
|
|
binding = env0_0;
|
|
maskInputOptions = binding.maskInputOptions;
|
|
shouldMaskInput2 = shouldMaskInputBinding({maskInputOptions: maskInputOptions, tagName: tagName,
|
|
type: inputType});
|
|
maskInputValueBinding = maskInputValue;
|
|
object = {};
|
|
needMaskingTextBinding = needMaskingText;
|
|
target3 = a0.target;
|
|
maskTextClass = binding.maskTextClass;
|
|
maskTextSelector = binding.maskTextSelector;
|
|
unmaskTextClass = binding.unmaskTextClass;
|
|
unmaskTextSelector = binding.unmaskTextSelector;
|
|
object.isMasked = needMaskingTextBinding(target3, maskTextClass, maskTextSelector,
|
|
unmaskTextClass,
|
|
unmaskTextSelector, shouldMaskInput2);
|
|
object.element = target;
|
|
object.value = inputValue;
|
|
maskInputFn = binding.maskInputFn;
|
|
object.maskInputFn = maskInputFn;
|
|
value6 = maskInputValueBinding(object);
|
|
r20 = value6;
|
|
break reducibleJoin9;
|
|
}
|
|
isBlockedBinding = isBlocked;
|
|
target4 = a0.target;
|
|
binding = env0_0;
|
|
blockClass = binding.blockClass;
|
|
blockSelector = binding.blockSelector;
|
|
unblockSelector = binding.unblockSelector;
|
|
reducibleJoin105: while (true) {
|
|
reducibleJoin94: while (true) {
|
|
if (isBlockedBinding(target4, blockClass, blockSelector, unblockSelector, false)) {
|
|
break reducibleJoin94;
|
|
}
|
|
oldValue = a0.oldValue;
|
|
if (r20 === oldValue) {
|
|
break reducibleJoin94;
|
|
}
|
|
attributeMap = env0_0.attributeMap;
|
|
get = attributeMap.get;
|
|
target5 = a0.target;
|
|
value7 = Reflect.apply(get, attributeMap, [target5]);
|
|
tagName = target.tagName;
|
|
if (tagName !== 'IFRAME') {
|
|
r2 = attributeName;
|
|
} else {
|
|
reducibleJoin16: while (true) {
|
|
if (attributeName !== 'src') {
|
|
r2 = attributeName;
|
|
break reducibleJoin16;
|
|
}
|
|
binding = env0_0;
|
|
keepIframeSrcFn = binding.keepIframeSrcFn;
|
|
if (Reflect.apply(keepIframeSrcFn, binding, [r20])) {
|
|
r2 = attributeName;
|
|
break reducibleJoin16;
|
|
}
|
|
iFrameContentDocument = getIFrameContentDocument(target);
|
|
value9 = 'rr_src';
|
|
if (iFrameContentDocument) {
|
|
return undefined;
|
|
}
|
|
r2 = value9;
|
|
break reducibleJoin16;
|
|
}
|
|
}
|
|
reducibleJoin18: while (true) {
|
|
if (value7) {
|
|
r9 = value7;
|
|
break reducibleJoin18;
|
|
}
|
|
object = {};
|
|
target6 = a0.target;
|
|
object.node = target6;
|
|
object.attributes = {};
|
|
object.styleDiff = {};
|
|
object._unchangedStyles = {};
|
|
binding = env0_0;
|
|
attributes = binding.attributes;
|
|
push = attributes.push;
|
|
Reflect.apply(push, attributes, [object]);
|
|
attributeMap = binding.attributeMap;
|
|
set = attributeMap.set;
|
|
target7 = a0.target;
|
|
Reflect.apply(set, attributeMap, [target7, object]);
|
|
r9 = object;
|
|
break reducibleJoin18;
|
|
}
|
|
value10 = r2 === 'type';
|
|
reducibleJoin20: while (true) {
|
|
if (value10) {
|
|
tagName = target.tagName;
|
|
value11 = tagName === 'INPUT';
|
|
r3 = value11;
|
|
break reducibleJoin20;
|
|
}
|
|
r3 = value10;
|
|
break reducibleJoin20;
|
|
}
|
|
reducibleJoin24: while (true) {
|
|
if (r3) {
|
|
oldValue = a0.oldValue;
|
|
reducibleJoin23: while (true) {
|
|
if (oldValue) {
|
|
break reducibleJoin23;
|
|
}
|
|
value12 = '';
|
|
oldValue = value12;
|
|
break reducibleJoin23;
|
|
}
|
|
toLowerCase2 = oldValue.toLowerCase;
|
|
value13 = Reflect.apply(toLowerCase2, oldValue, []);
|
|
value14 = value13 === 'password';
|
|
r3 = value14;
|
|
break reducibleJoin24;
|
|
}
|
|
break reducibleJoin24;
|
|
}
|
|
reducibleJoin26: while (true) {
|
|
if (r3) {
|
|
setAttribute = target.setAttribute;
|
|
Reflect.apply(setAttribute, target, ['data-rr-is-password', 'true']);
|
|
break reducibleJoin26;
|
|
}
|
|
break reducibleJoin26;
|
|
}
|
|
ignoreAttributeBinding = ignoreAttribute;
|
|
tagName = target.tagName;
|
|
if (ignoreAttributeBinding(tagName, r2)) {
|
|
break reducibleJoin105;
|
|
}
|
|
attributes = r9.attributes;
|
|
transformAttributeBinding = transformAttribute;
|
|
binding = env0_0;
|
|
doc = binding.doc;
|
|
toLowerCaseBinding = toLowerCase;
|
|
tagName = target.tagName;
|
|
value = toLowerCaseBinding(tagName);
|
|
value15 = toLowerCaseBinding(r2);
|
|
maskAttributeFn = binding.maskAttributeFn;
|
|
attributes[r2] = transformAttributeBinding(doc, value, value15, r20, target,
|
|
maskAttributeFn);
|
|
if (r2 === 'style') {
|
|
reducibleJoin38: while (true) {
|
|
reduciblePort37: while (true) {
|
|
exceptionLanding36: while (true) {
|
|
unattachedDoc = env0_0.unattachedDoc;
|
|
if (unattachedDoc) {
|
|
break reduciblePort37;
|
|
}
|
|
try {
|
|
binding = env0_0;
|
|
} catch (error) {
|
|
break exceptionLanding36;
|
|
}
|
|
try {
|
|
document = global.document;
|
|
} catch (error) {
|
|
break exceptionLanding36;
|
|
}
|
|
try {
|
|
implementation = document.implementation;
|
|
} catch (error) {
|
|
break exceptionLanding36;
|
|
}
|
|
try {
|
|
createHTMLDocument = implementation.createHTMLDocument;
|
|
} catch (error) {
|
|
break exceptionLanding36;
|
|
}
|
|
try {
|
|
value = Reflect.apply(createHTMLDocument, implementation, []);
|
|
} catch (error) {
|
|
break exceptionLanding36;
|
|
}
|
|
try {
|
|
binding.unattachedDoc = value;
|
|
} catch (error) {
|
|
break exceptionLanding36;
|
|
}
|
|
break reduciblePort37;
|
|
}
|
|
binding = env0_0;
|
|
doc = binding.doc;
|
|
binding.unattachedDoc = doc;
|
|
break reduciblePort37;
|
|
}
|
|
unattachedDoc = env0_0.unattachedDoc;
|
|
createElement = unattachedDoc.createElement;
|
|
value = Reflect.apply(createElement, unattachedDoc, ['span']);
|
|
oldValue = a0.oldValue;
|
|
reducibleJoin39: while (true) {
|
|
if (oldValue) {
|
|
break reducibleJoin38;
|
|
}
|
|
break reducibleJoin39;
|
|
}
|
|
Array = global.Array;
|
|
from = Array.from;
|
|
style = target.style;
|
|
iterator = Reflect.apply(from, Array, [style])[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
r12 = iterator;
|
|
reducibleLoop40: while (true) {
|
|
item2 = Reflect.apply(iterator2, r12, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r12;
|
|
if (item2 === undefined) {
|
|
break reducibleLoop40;
|
|
}
|
|
try {
|
|
style = target.style;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
getPropertyValue = style.getPropertyValue;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
value16 = Reflect.apply(getPropertyValue, style, [item]);
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
style = target.style;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
getPropertyPriority = style.getPropertyPriority;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
value17 = Reflect.apply(getPropertyPriority, style, [item]);
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
style = value.style;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
getPropertyValue = style.getPropertyValue;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
value18 = Reflect.apply(getPropertyValue, style, [item]);
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
value19 = value16 !== value18;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
if (!value19) {
|
|
try {
|
|
style = value.style;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
getPropertyPriority = style.getPropertyPriority;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
value20 = Reflect.apply(getPropertyPriority, style, [item]);
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
value21 = value17 !== value20;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
reducibleJoin69: while (true) {
|
|
if (value21) {
|
|
break reducibleJoin69;
|
|
}
|
|
try {
|
|
_unchangedStyles = r9._unchangedStyles;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
object = [];
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
object[0] = value16;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
object[1] = value17;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
_unchangedStyles[item] = object;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
r12 = item2;
|
|
continue reducibleLoop40;
|
|
}
|
|
}
|
|
try {
|
|
styleDiff = r9.styleDiff;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
value22 = value17 === '';
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
if (value22) {
|
|
r16 = value16;
|
|
} else {
|
|
try {
|
|
object = [];
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
object[0] = value16;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
object[1] = value17;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
r16 = object;
|
|
}
|
|
try {
|
|
styleDiff[item] = r16;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
r12 = item2;
|
|
continue reducibleLoop40;
|
|
}
|
|
Array = global.Array;
|
|
from = Array.from;
|
|
style = value.style;
|
|
iterator = Reflect.apply(from, Array, [style])[Symbol.iterator]();
|
|
iterator3 = iterator.next;
|
|
r2 = iterator;
|
|
reducibleLoop83: while (true) {
|
|
item3 = Reflect.apply(iterator3, r2, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : r2;
|
|
if (item3 === undefined) {
|
|
break reducibleJoin105;
|
|
}
|
|
try {
|
|
style = target.style;
|
|
} catch (error) {
|
|
break exceptionLanding93;
|
|
}
|
|
try {
|
|
getPropertyValue = style.getPropertyValue;
|
|
} catch (error) {
|
|
break exceptionLanding93;
|
|
}
|
|
try {
|
|
value = Reflect.apply(getPropertyValue, style, [item]);
|
|
} catch (error) {
|
|
break exceptionLanding93;
|
|
}
|
|
try {
|
|
value = value !== '';
|
|
} catch (error) {
|
|
break exceptionLanding93;
|
|
}
|
|
if (value) {
|
|
r2 = item3;
|
|
continue reducibleLoop83;
|
|
}
|
|
try {
|
|
styleDiff = r9.styleDiff;
|
|
} catch (error) {
|
|
break exceptionLanding93;
|
|
}
|
|
try {
|
|
styleDiff[item] = false;
|
|
} catch (error) {
|
|
break exceptionLanding93;
|
|
}
|
|
r2 = item3;
|
|
continue reducibleLoop83;
|
|
}
|
|
return undefined;
|
|
}
|
|
setAttribute = value.setAttribute;
|
|
oldValue = a0.oldValue;
|
|
Reflect.apply(setAttribute, value, ['style', oldValue]);
|
|
Array = global.Array;
|
|
from = Array.from;
|
|
style = target.style;
|
|
iterator = Reflect.apply(from, Array, [style])[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
r12 = iterator;
|
|
reducibleLoop40: while (true) {
|
|
item2 = Reflect.apply(iterator2, r12, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r12;
|
|
if (item2 === undefined) {
|
|
break reducibleLoop40;
|
|
}
|
|
try {
|
|
style = target.style;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
getPropertyValue = style.getPropertyValue;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
value16 = Reflect.apply(getPropertyValue, style, [item]);
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
style = target.style;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
getPropertyPriority = style.getPropertyPriority;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
value17 = Reflect.apply(getPropertyPriority, style, [item]);
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
style = value.style;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
getPropertyValue = style.getPropertyValue;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
value18 = Reflect.apply(getPropertyValue, style, [item]);
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
value19 = value16 !== value18;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
if (!value19) {
|
|
try {
|
|
style = value.style;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
getPropertyPriority = style.getPropertyPriority;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
value20 = Reflect.apply(getPropertyPriority, style, [item]);
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
value21 = value17 !== value20;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
reducibleJoin69: while (true) {
|
|
if (value21) {
|
|
break reducibleJoin69;
|
|
}
|
|
try {
|
|
_unchangedStyles = r9._unchangedStyles;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
object = [];
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
object[0] = value16;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
object[1] = value17;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
_unchangedStyles[item] = object;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
r12 = item2;
|
|
continue reducibleLoop40;
|
|
}
|
|
}
|
|
try {
|
|
styleDiff = r9.styleDiff;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
value22 = value17 === '';
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
if (value22) {
|
|
r16 = value16;
|
|
} else {
|
|
try {
|
|
object = [];
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
object[0] = value16;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
try {
|
|
object[1] = value17;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
r16 = object;
|
|
}
|
|
try {
|
|
styleDiff[item] = r16;
|
|
} catch (error) {
|
|
break exceptionLanding81;
|
|
}
|
|
r12 = item2;
|
|
continue reducibleLoop40;
|
|
}
|
|
Array = global.Array;
|
|
from = Array.from;
|
|
style = value.style;
|
|
iterator = Reflect.apply(from, Array, [style])[Symbol.iterator]();
|
|
iterator3 = iterator.next;
|
|
r2 = iterator;
|
|
reducibleLoop83: while (true) {
|
|
item3 = Reflect.apply(iterator3, r2, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : r2;
|
|
if (item3 === undefined) {
|
|
break reducibleJoin105;
|
|
}
|
|
try {
|
|
style = target.style;
|
|
} catch (error) {
|
|
break exceptionLanding93;
|
|
}
|
|
try {
|
|
getPropertyValue = style.getPropertyValue;
|
|
} catch (error) {
|
|
break exceptionLanding93;
|
|
}
|
|
try {
|
|
value = Reflect.apply(getPropertyValue, style, [item]);
|
|
} catch (error) {
|
|
break exceptionLanding93;
|
|
}
|
|
try {
|
|
value = value !== '';
|
|
} catch (error) {
|
|
break exceptionLanding93;
|
|
}
|
|
if (value) {
|
|
r2 = item3;
|
|
continue reducibleLoop83;
|
|
}
|
|
try {
|
|
styleDiff = r9.styleDiff;
|
|
} catch (error) {
|
|
break exceptionLanding93;
|
|
}
|
|
try {
|
|
styleDiff[item] = false;
|
|
} catch (error) {
|
|
break exceptionLanding93;
|
|
}
|
|
r2 = item3;
|
|
continue reducibleLoop83;
|
|
}
|
|
return undefined;
|
|
}
|
|
break reducibleJoin105;
|
|
}
|
|
return undefined;
|
|
}
|
|
} else {
|
|
reducibleJoin105: while (true) {
|
|
if (type !== 'childList') {
|
|
break reducibleJoin105;
|
|
}
|
|
isBlockedBinding = isBlocked;
|
|
target = a0.target;
|
|
binding = env0_0;
|
|
blockClass = binding.blockClass;
|
|
blockSelector = binding.blockSelector;
|
|
unblockSelector = binding.unblockSelector;
|
|
if (isBlockedBinding(target, blockClass, blockSelector, unblockSelector, true)) {
|
|
return undefined;
|
|
}
|
|
addedNodes = a0.addedNodes;
|
|
forEach = addedNodes.forEach;
|
|
Reflect.apply(forEach, addedNodes, [_fun11846]);
|
|
removedNodes = a0.removedNodes;
|
|
forEach = removedNodes.forEach;
|
|
Reflect.apply(forEach, removedNodes, [_fun11847]);
|
|
break reducibleJoin105;
|
|
}
|
|
}
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
item3.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
function _fun11846(a0) { // fn#11846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:36793, offset: 0x00dbb351, size: 37 bytes, params: 2, frame: 13
|
|
const binding = env1_0;
|
|
return binding.genAdds(a0, env0_0.target);
|
|
}
|
|
|
|
function _fun11847(a0) { // fn#11847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:36861, offset: 0x00dbb376, size: 542 bytes, params: 2, frame: 25
|
|
var r8;
|
|
var addedSet;
|
|
var movedSet;
|
|
var removes;
|
|
var push;
|
|
var object;
|
|
var isShadowRoot3;
|
|
var deepDeleteBinding;
|
|
let mirror = env1_0.mirror;
|
|
let getId = mirror.getId;
|
|
const value2 = Reflect.apply(getId, mirror, [a0]);
|
|
const isShadowRootBinding = isShadowRoot;
|
|
let target = env0_0.target;
|
|
const value5 = undefined;
|
|
const isShadowRoot2 = isShadowRootBinding(target);
|
|
mirror = env1_0.mirror;
|
|
getId = mirror.getId;
|
|
target = env0_0.target;
|
|
const r9 = isShadowRoot2 ? Reflect.apply(getId, mirror, [target.host]) : Reflect.apply(getId, mirror, [target]);
|
|
const isBlockedBinding = isBlocked;
|
|
target = env0_0.target;
|
|
let binding = env1_0;
|
|
let r4 = isBlockedBinding(target, binding.blockClass, binding.blockSelector, binding.unblockSelector,
|
|
false) || isIgnored_11481(a0, env1_0.mirror);
|
|
r4 = !r4 ? !(env1_0.mirror.getId(a0) !== -1) : r4;
|
|
if (!r4) {
|
|
addedSet = env1_0.addedSet;
|
|
if (addedSet.has(a0)) {
|
|
deepDeleteBinding = deepDelete;
|
|
binding = env1_0;
|
|
deepDeleteBinding(binding.addedSet, a0);
|
|
binding.droppedSet.add(a0);
|
|
} else {
|
|
addedSet = env1_0.addedSet;
|
|
r4 = addedSet.has(env0_0.target) && value2 === -1;
|
|
r4 = !r4 ? isAncestorRemoved(env0_0.target, env1_0.mirror) : r4;
|
|
if (!r4) {
|
|
movedSet = env1_0.movedSet;
|
|
if (movedSet.has(a0)) {
|
|
if (env1_0.movedMap[moveKey(value2, r9)]) {
|
|
deepDelete(env1_0.movedSet, a0);
|
|
} else {
|
|
removes = env1_0.removes;
|
|
push = removes.push;
|
|
object = {parentId: r9, id: value2};
|
|
isShadowRoot3 = isShadowRoot(env0_0.target);
|
|
r8 = isShadowRoot3 ? !isNativeShadowDom(env0_0.target) : !isShadowRoot3;
|
|
object.isShadow = r8 ? value5 : !r8;
|
|
Reflect.apply(push, removes, [object]);
|
|
}
|
|
} else {
|
|
removes = env1_0.removes;
|
|
push = removes.push;
|
|
object = {parentId: r9, id: value2};
|
|
isShadowRoot3 = isShadowRoot(env0_0.target);
|
|
r8 = isShadowRoot3 ? !isNativeShadowDom(env0_0.target) : !isShadowRoot3;
|
|
object.isShadow = r8 ? value5 : !r8;
|
|
Reflect.apply(push, removes, [object]);
|
|
}
|
|
}
|
|
}
|
|
env1_0.mapRemoves.push(a0);
|
|
}
|
|
return value5;
|
|
}
|
|
|
|
}
|
|
|
|
function genAdds(a0, a1) { // fn#11848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:37486, owner: MutationBuffer.genAdds, offset: 0x00dbb594, size: 450 bytes, params: 3, frame: 22
|
|
var environment;
|
|
var r3;
|
|
var r7;
|
|
var value3;
|
|
var isIgnored_11481Binding;
|
|
var movedMap;
|
|
var moveKeyBinding;
|
|
var isBlockedBinding;
|
|
let value = a1;
|
|
const env0_0 = a0;
|
|
let binding = env0_0;
|
|
const processedNodeManager = binding.processedNodeManager;
|
|
if (!processedNodeManager.inOtherBuffer(a0, binding)) {
|
|
var addedSet = env0_0.addedSet;
|
|
var has = addedSet.has;
|
|
if (Reflect.apply(has, addedSet, [a0])) {
|
|
return undefined;
|
|
}
|
|
var movedSet = env0_0.movedSet;
|
|
has = movedSet.has;
|
|
if (Reflect.apply(has, movedSet, [a0])) {
|
|
return undefined;
|
|
}
|
|
var mirror = env0_0.mirror;
|
|
if (mirror.hasNode(a0)) {
|
|
value3 = environment.__proto__.__proto__;
|
|
isIgnored_11481Binding = isIgnored_11481;
|
|
mirror = env0_0.mirror;
|
|
if (isIgnored_11481Binding(a0, mirror)) {
|
|
return undefined;
|
|
}
|
|
env0_0.movedSet.add(a0);
|
|
r3 = value && env0_0.mirror.hasNode(value);
|
|
if (r3) {
|
|
value = env0_0.mirror.getId(value);
|
|
r7 = value;
|
|
} else {
|
|
r7 = null;
|
|
}
|
|
r3 = r7 && r7 !== -1;
|
|
if (r3) {
|
|
binding = env0_0;
|
|
movedMap = binding.movedMap;
|
|
moveKeyBinding = moveKey;
|
|
mirror = binding.mirror;
|
|
movedMap[moveKeyBinding(mirror.getId(a0), r7)] = true;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
isBlockedBinding = isBlocked;
|
|
binding = env0_0;
|
|
if (!isBlockedBinding(a0, binding.blockClass, binding.blockSelector, binding.unblockSelector, false)) {
|
|
if (a0.childNodes) {
|
|
a0.childNodes.forEach(_fun11849);
|
|
}
|
|
if (hasShadowRoot(a0)) {
|
|
a0.shadowRoot.childNodes.forEach(_fun11850);
|
|
}
|
|
}
|
|
return undefined;
|
|
}
|
|
binding = env0_0;
|
|
addedSet = binding.addedSet;
|
|
addedSet.add(a0);
|
|
binding.droppedSet.delete(a0);
|
|
value = environment.__proto__.__proto__;
|
|
isBlockedBinding = isBlocked;
|
|
binding = env0_0;
|
|
if (!isBlockedBinding(a0, binding.blockClass, binding.blockSelector, binding.unblockSelector, false)) {
|
|
if (a0.childNodes) {
|
|
a0.childNodes.forEach(_fun11849);
|
|
}
|
|
if (hasShadowRoot(a0)) {
|
|
a0.shadowRoot.childNodes.forEach(_fun11850);
|
|
}
|
|
}
|
|
}
|
|
function _fun11849(a0) { // fn#11849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:37916, offset: 0x00dbb756, size: 23 bytes, params: 2, frame: 11
|
|
return env1_0.genAdds(a0);
|
|
}
|
|
|
|
function _fun11850(a0) { // fn#11850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:38002, offset: 0x00dbb76d, size: 50 bytes, params: 2, frame: 13
|
|
const binding = env1_0;
|
|
binding.processedNodeManager.add(a0, binding);
|
|
binding.genAdds(a0, env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function value_11851(a0) { // fn#11851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:38088, offset: 0x00dbb79f, size: 45 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
['mutationCb', 'blockClass', 'blockSelector', 'unblockSelector', 'maskAllText', 'maskTextClass', 'unmaskTextClass',
|
|
'maskTextSelector', 'unmaskTextSelector', 'inlineStylesheet', 'maskInputOptions', 'maskAttributeFn',
|
|
'maskTextFn', 'maskInputFn', 'keepIframeSrcFn', 'recordCanvas', 'inlineImages', 'slimDOMOptions',
|
|
'dataURLOptions', 'doc', 'mirror', 'iframeManager', 'stylesheetManager', 'shadowDomManager', 'canvasManager',
|
|
'processedNodeManager', 'ignoreCSSAttributes'].forEach(_fun11852);
|
|
function _fun11852(a0) { // fn#11852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:38571, offset: 0x00dbb7cc, size: 26 bytes, params: 2, frame: 3
|
|
env0_1[a0] = env0_0[a0];
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function callbackWrapper(a0) { // fn#11859, offset: 0x00dbb8a8, size: 28 bytes, params: 2, frame: 3
|
|
const env0_0 = a0;
|
|
if (env0_42) {
|
|
return rrwebWrapped;
|
|
}
|
|
return a0;
|
|
function rrwebWrapped() { // fn#11860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:39717, owner: callbackWrapper.rrwebWrapped, offset: 0x00dbb8c4, size: 67 bytes, params: 1, frame: 15
|
|
var environment;
|
|
var value;
|
|
var binding;
|
|
var error;
|
|
try {
|
|
value = environment;
|
|
binding = env0_0;
|
|
value = binding.apply(undefined, arguments);
|
|
} catch (error) {
|
|
value = environment.__proto__;
|
|
if (env1_42) {
|
|
value = env1_42(error);
|
|
if (value === true) {
|
|
return function() {
|
|
};
|
|
}
|
|
throw error;
|
|
}
|
|
throw error;
|
|
}
|
|
return value;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11862() { // fn#11862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:53902, offset: 0x00dbb907, size: 199 bytes, params: 1, frame: 15
|
|
return CreateClassModule(CrossOriginIframeMirror, [{key: 'getId', value: function(a0, a1, a2, a3) {
|
|
var r5;
|
|
var r3;
|
|
var r0;
|
|
var value = a2;
|
|
var value2 = a3;
|
|
r5 = value || this.getIdToRemoteIdMap(a0);
|
|
r3 = value2 || this.getRemoteIdToIdMap(a0);
|
|
value = r5.get(a1);
|
|
if (value) {
|
|
r0 = value;
|
|
} else {
|
|
value = this.generateIdFn();
|
|
r5.set(a1, value);
|
|
r3.set(value, a1);
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}}, {key: 'getIds', value: function(a0, a1) {
|
|
var env0_0 = a0;
|
|
var env0_1 = this;
|
|
var env0_2 = this.getIdToRemoteIdMap(a0);
|
|
var env0_3 = this.getRemoteIdToIdMap(a0);
|
|
return a1.map(_fun11866);
|
|
}}, {key: 'getRemoteId', value: function(a0, a1, a2) {
|
|
var r2;
|
|
r2 = a2 || this.getRemoteIdToIdMap(a0);
|
|
if (typeof a1 !== 'number') {
|
|
return a1;
|
|
}
|
|
return r2.get(a1) || -1;
|
|
}}, {key: 'getRemoteIds', value: function(a0, a1) {
|
|
var env0_0 = a0;
|
|
var env0_1 = this;
|
|
var env0_2 = this.getRemoteIdToIdMap(a0);
|
|
return a1.map(_fun11869);
|
|
}}, {key: 'reset', value: function(a0) {
|
|
var property;
|
|
if (a0) {
|
|
property = this.iframeIdToRemoteIdMap;
|
|
property.delete(a0);
|
|
property = this.iframeRemoteIdToIdMap;
|
|
property.delete(a0);
|
|
} else {
|
|
property = global.WeakMap;
|
|
this.iframeIdToRemoteIdMap = new property();
|
|
property = global.WeakMap;
|
|
this.iframeRemoteIdToIdMap = new property();
|
|
}
|
|
}}, {key: 'getIdToRemoteIdMap', value: function(a0) {
|
|
var r0;
|
|
var value2;
|
|
var property = this.iframeIdToRemoteIdMap;
|
|
var value = property.get(a0);
|
|
if (value) {
|
|
r0 = value;
|
|
} else {
|
|
property = global.Map;
|
|
value2 = new property();
|
|
property = this.iframeIdToRemoteIdMap;
|
|
property.set(a0, value2);
|
|
r0 = value2;
|
|
}
|
|
return r0;
|
|
}}, {key: 'getRemoteIdToIdMap', value: function(a0) {
|
|
var r0;
|
|
var value2;
|
|
var property = this.iframeRemoteIdToIdMap;
|
|
var value = property.get(a0);
|
|
if (value) {
|
|
r0 = value;
|
|
} else {
|
|
property = global.Map;
|
|
value2 = new property();
|
|
property = this.iframeRemoteIdToIdMap;
|
|
property.set(a0, value2);
|
|
r0 = value2;
|
|
}
|
|
return r0;
|
|
}}]);
|
|
function CrossOriginIframeMirror(a0) { // fn#11863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:53936, offset: 0x00dbb9ce, size: 102 bytes, params: 2, frame: 14
|
|
const value = environment.__proto__;
|
|
env1_8(this, CrossOriginIframeMirror);
|
|
this.generateIdFn = a0;
|
|
let WeakMap = global.WeakMap;
|
|
this.iframeIdToRemoteIdMap = new WeakMap();
|
|
WeakMap = global.WeakMap;
|
|
this.iframeRemoteIdToIdMap = new WeakMap();
|
|
}
|
|
|
|
function value_11865(a0, a1) { // fn#11865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:54307, offset: 0x00dbba91, size: 66 bytes, params: 3, frame: 13
|
|
const env0_0 = a0;
|
|
const env0_2 = this.getIdToRemoteIdMap(a0);
|
|
const env0_3 = this.getRemoteIdToIdMap(a0);
|
|
return a1.map(_fun11866);
|
|
function _fun11866(a0) { // fn#11866, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:54411, offset: 0x00dbbad3, size: 37 bytes, params: 2, frame: 17
|
|
return env0_1.getId(env0_0, a0, env0_2, env0_3);
|
|
}
|
|
|
|
}
|
|
|
|
function value_11868(a0, a1) { // fn#11868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:54628, offset: 0x00dbbb34, size: 51 bytes, params: 3, frame: 13
|
|
const env0_0 = a0;
|
|
const env0_2 = this.getRemoteIdToIdMap(a0);
|
|
return a1.map(_fun11869);
|
|
function _fun11869(a0) { // fn#11869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:54709, offset: 0x00dbbb67, size: 35 bytes, params: 2, frame: 15
|
|
return env0_1.getRemoteId(env0_0, a0, env0_2);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11873() { // fn#11873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:55302, offset: 0x00dbbc93, size: 103 bytes, params: 1, frame: 15
|
|
return CreateClassModule(IframeManagerNoop, [{key: 'addIframe', value: function() {
|
|
}}, {key: 'addLoadListener', value: function() {
|
|
}}, {key: 'attachIframe', value: function() {
|
|
}}]);
|
|
function IframeManagerNoop() { // fn#11874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:55336, offset: 0x00dbbcfa, size: 95 bytes, params: 1, frame: 14
|
|
const value = environment.__proto__;
|
|
env1_8(this, IframeManagerNoop);
|
|
this.crossOriginIframeMirror = new env1_50(genId);
|
|
const WeakMap = global.WeakMap;
|
|
this.crossOriginIframeRootIdMap = new WeakMap();
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11878() { // fn#11878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:55648, offset: 0x00dbbd59, size: 266 bytes, params: 1, frame: 15
|
|
return CreateClassModule(IframeManager, [{key: 'addIframe', value: function(a0) {
|
|
this.iframes.set(a0, true);
|
|
if (a0.contentWindow) {
|
|
this.crossOriginIframeMap.set(a0.contentWindow, a0);
|
|
}
|
|
}}, {key: 'addLoadListener', value: function(a0) {
|
|
this.loadListener = a0;
|
|
}}, {key: 'attachIframe', value: value_11882}, {key: 'handleMessage', value: value_11883},
|
|
{key: 'transformCrossOriginEvent', value: value_11884}, {key: 'replace', value: value_11892},
|
|
{key: 'replaceIds', value: function(a0, a1, a2) {
|
|
return this.replace(this.crossOriginIframeMirror, a0, a1, a2);
|
|
}}, {key: 'replaceStyleIds', value: function(a0, a1, a2) {
|
|
return this.replace(this.crossOriginIframeStyleMirror, a0, a1, a2);
|
|
}}, {key: 'replaceIdOnNode', value: function(a0, a1) {
|
|
var env0_0 = a1;
|
|
var env0_1 = this;
|
|
this.replaceIds(a0, a1, ['id', 'rootId']);
|
|
if ('childNodes' in a0) {
|
|
a0.childNodes.forEach(_fun11896);
|
|
}
|
|
}}, {key: 'patchRootIdOnNode', value: value_11897}]);
|
|
function IframeManager({mutationCb, wrappedEmit, stylesheetManager, recordCrossOriginIframes, mirror}) { // fn#11879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:55682, offset: 0x00dbbe63, size: 341 bytes, params: 2, frame: 17
|
|
var window;
|
|
let value = environment.__proto__;
|
|
let binding = env1_8;
|
|
binding(this, IframeManager);
|
|
let WeakMap = global.WeakMap;
|
|
const value3 = Object.create(WeakMap.prototype, {constructor: {value: WeakMap}});
|
|
let weakMap = new WeakMap();
|
|
this.iframes = weakMap instanceof Object ? weakMap : value3;
|
|
WeakMap = global.WeakMap;
|
|
const value5 = Object.create(WeakMap.prototype, {constructor: {value: WeakMap}});
|
|
weakMap = new WeakMap();
|
|
this.crossOriginIframeMap = weakMap instanceof Object ? weakMap : value5;
|
|
binding = env1_50;
|
|
const genIdBinding = genId;
|
|
const value7 = Object.create(binding.prototype, {constructor: {value: binding}});
|
|
const binding2 = new binding(genIdBinding);
|
|
this.crossOriginIframeMirror = binding2 instanceof Object ? binding2 : value7;
|
|
WeakMap = global.WeakMap;
|
|
const value10 = Object.create(WeakMap.prototype, {constructor: {value: WeakMap}});
|
|
weakMap = new WeakMap();
|
|
this.crossOriginIframeRootIdMap = weakMap instanceof Object ? weakMap : value10;
|
|
this.mutationCb = mutationCb;
|
|
this.wrappedEmit = wrappedEmit;
|
|
this.stylesheetManager = stylesheetManager;
|
|
this.recordCrossOriginIframes = recordCrossOriginIframes;
|
|
binding = env1_50;
|
|
const generateId = this.stylesheetManager.styleMirror.generateId;
|
|
value = generateId.bind(this.stylesheetManager.styleMirror);
|
|
value = new binding(value);
|
|
this.crossOriginIframeStyleMirror = value;
|
|
this.mirror = mirror;
|
|
if (this.recordCrossOriginIframes) {
|
|
window = global.window;
|
|
window.addEventListener('message', this.handleMessage.bind(this));
|
|
}
|
|
}
|
|
|
|
function value_11882(a0, a1) { // fn#11882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:56530, offset: 0x00dbc005, size: 269 bytes, params: 3, frame: 16
|
|
var contentWindow;
|
|
var adoptedStyleSheets;
|
|
var stylesheetManager;
|
|
var adoptStyleSheets;
|
|
const mutationCb = this.mutationCb;
|
|
const object2 = {};
|
|
let mirror = this.mirror;
|
|
object2.parentId = mirror.getId(a0);
|
|
object2.nextId = null;
|
|
object2.node = a1;
|
|
Reflect.apply(mutationCb, this, [{adds: [object2], removes: [], texts: [], attributes: [], isAttachIframe: true}]);
|
|
if (this.recordCrossOriginIframes) {
|
|
contentWindow = a0.contentWindow;
|
|
if (contentWindow != null) {
|
|
contentWindow.addEventListener('message', this.handleMessage.bind(this));
|
|
}
|
|
}
|
|
const loadListener = this.loadListener;
|
|
if (loadListener != null) {
|
|
loadListener.call(this, a0);
|
|
}
|
|
let value = environment.__proto__;
|
|
value = getIFrameContentDocument(a0);
|
|
if (value && value.adoptedStyleSheets && value.adoptedStyleSheets.length > 0) {
|
|
stylesheetManager = this.stylesheetManager;
|
|
adoptStyleSheets = stylesheetManager.adoptStyleSheets;
|
|
adoptedStyleSheets = value.adoptedStyleSheets;
|
|
mirror = this.mirror;
|
|
Reflect.apply(adoptStyleSheets, stylesheetManager, [adoptedStyleSheets, mirror.getId(value)]);
|
|
}
|
|
}
|
|
|
|
function value_11884(a0, a1) { // fn#11884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:57345, offset: 0x00dbc198, size: 1053 bytes, params: 3, frame: 18
|
|
var data;
|
|
var replaceIds;
|
|
var replaceStyleIds;
|
|
var styles;
|
|
var replaceIdOnNode;
|
|
var node;
|
|
var id;
|
|
var patchRootIdOnNode;
|
|
var object;
|
|
var object2;
|
|
var object3;
|
|
const env0_0 = a0;
|
|
const type = a1.type;
|
|
const FullSnapshot = env1_37.FullSnapshot;
|
|
if (FullSnapshot === type) {
|
|
this.crossOriginIframeMirror.reset(a0);
|
|
this.crossOriginIframeStyleMirror.reset(a0);
|
|
replaceIdOnNode = this.replaceIdOnNode;
|
|
data = a1.data;
|
|
node = data.node;
|
|
Reflect.apply(replaceIdOnNode, this, [node, a0]);
|
|
data = a1.data;
|
|
node = data.node;
|
|
id = node.id;
|
|
this.crossOriginIframeRootIdMap.set(a0, id);
|
|
patchRootIdOnNode = this.patchRootIdOnNode;
|
|
data = a1.data;
|
|
node = data.node;
|
|
Reflect.apply(patchRootIdOnNode, this, [node, id]);
|
|
object = {};
|
|
object.timestamp = a1.timestamp;
|
|
object.type = env1_37.IncrementalSnapshot;
|
|
object2 = {};
|
|
object2.source = env1_38.Mutation;
|
|
object3 = {};
|
|
object3.parentId = this.mirror.getId(a0);
|
|
object3.nextId = null;
|
|
data = a1.data;
|
|
node = data.node;
|
|
object3.node = node;
|
|
object2.adds = [object3];
|
|
object2.removes = [];
|
|
object2.texts = [];
|
|
object2.attributes = [];
|
|
object2.isAttachIframe = true;
|
|
object.data = object2;
|
|
return object;
|
|
}
|
|
const Meta = env1_37.Meta;
|
|
if (Meta !== type) {
|
|
var Load = env1_37.Load;
|
|
if (Load === type) {
|
|
return false;
|
|
}
|
|
var DomContentLoaded = env1_37.DomContentLoaded;
|
|
if (DomContentLoaded === type) {
|
|
return false;
|
|
}
|
|
var Plugin = env1_37.Plugin;
|
|
if (Plugin === type) {
|
|
return a1;
|
|
}
|
|
var Custom = env1_37.Custom;
|
|
if (Custom === type) {
|
|
this.replaceIds(a1.data.payload, a0, ['id', 'parentId', 'previousId', 'nextId']);
|
|
return a1;
|
|
}
|
|
if (env1_37.IncrementalSnapshot !== type) {
|
|
return false;
|
|
}
|
|
data = a1.data;
|
|
var source = data.source;
|
|
if (env1_38.Mutation === source) {
|
|
data = a1.data;
|
|
data.adds.forEach(_fun11885);
|
|
data = a1.data;
|
|
data.removes.forEach(_fun11886);
|
|
data = a1.data;
|
|
data.attributes.forEach(_fun11887);
|
|
data = a1.data;
|
|
data.texts.forEach(_fun11888);
|
|
return a1;
|
|
}
|
|
var Drag = env1_38.Drag;
|
|
if (Drag === source) {
|
|
a1.data.positions.forEach(_fun11889);
|
|
return a1;
|
|
}
|
|
var TouchMove = env1_38.TouchMove;
|
|
if (TouchMove === source) {
|
|
a1.data.positions.forEach(_fun11889);
|
|
return a1;
|
|
}
|
|
var MouseMove = env1_38.MouseMove;
|
|
if (MouseMove === source) {
|
|
a1.data.positions.forEach(_fun11889);
|
|
return a1;
|
|
}
|
|
var ViewportResize = env1_38.ViewportResize;
|
|
if (ViewportResize === source) {
|
|
return false;
|
|
}
|
|
var MediaInteraction = env1_38.MediaInteraction;
|
|
if (MediaInteraction === source) {
|
|
this.replaceIds(a1.data, a0, ['id']);
|
|
return a1;
|
|
}
|
|
var MouseInteraction = env1_38.MouseInteraction;
|
|
if (MouseInteraction === source) {
|
|
this.replaceIds(a1.data, a0, ['id']);
|
|
return a1;
|
|
}
|
|
var Scroll = env1_38.Scroll;
|
|
if (Scroll === source) {
|
|
this.replaceIds(a1.data, a0, ['id']);
|
|
return a1;
|
|
}
|
|
var CanvasMutation = env1_38.CanvasMutation;
|
|
if (CanvasMutation === source) {
|
|
this.replaceIds(a1.data, a0, ['id']);
|
|
return a1;
|
|
}
|
|
var Input = env1_38.Input;
|
|
if (Input === source) {
|
|
this.replaceIds(a1.data, a0, ['id']);
|
|
return a1;
|
|
}
|
|
var StyleSheetRule = env1_38.StyleSheetRule;
|
|
if (StyleSheetRule === source) {
|
|
replaceIds = this.replaceIds;
|
|
data = a1.data;
|
|
Reflect.apply(replaceIds, this, [data, a0, ['id']]);
|
|
replaceStyleIds = this.replaceStyleIds;
|
|
data = a1.data;
|
|
Reflect.apply(replaceStyleIds, this, [data, a0, ['styleId']]);
|
|
return a1;
|
|
}
|
|
var StyleDeclaration = env1_38.StyleDeclaration;
|
|
if (StyleDeclaration === source) {
|
|
replaceIds = this.replaceIds;
|
|
data = a1.data;
|
|
Reflect.apply(replaceIds, this, [data, a0, ['id']]);
|
|
replaceStyleIds = this.replaceStyleIds;
|
|
data = a1.data;
|
|
Reflect.apply(replaceStyleIds, this, [data, a0, ['styleId']]);
|
|
return a1;
|
|
}
|
|
var Font = env1_38.Font;
|
|
if (Font === source) {
|
|
return a1;
|
|
}
|
|
var Selection = env1_38.Selection;
|
|
if (Selection === source) {
|
|
a1.data.ranges.forEach(_fun11890);
|
|
return a1;
|
|
}
|
|
var AdoptedStyleSheet = env1_38.AdoptedStyleSheet;
|
|
if (AdoptedStyleSheet === source) {
|
|
replaceIds = this.replaceIds;
|
|
data = a1.data;
|
|
Reflect.apply(replaceIds, this, [data, a0, ['id']]);
|
|
replaceStyleIds = this.replaceStyleIds;
|
|
data = a1.data;
|
|
Reflect.apply(replaceStyleIds, this, [data, a0, ['styleIds']]);
|
|
data = a1.data;
|
|
styles = data.styles;
|
|
if (styles != null) {
|
|
styles.forEach(_fun11891);
|
|
}
|
|
return a1;
|
|
}
|
|
}
|
|
return false;
|
|
function _fun11885(a0) { // fn#11885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:58121, offset: 0x00dbc5b5, size: 100 bytes, params: 2, frame: 16
|
|
let binding = env0_1;
|
|
const replaceIds = binding.replaceIds;
|
|
const binding2 = env0_0;
|
|
Reflect.apply(replaceIds, binding, [a0, binding2, ['parentId', 'nextId', 'previousId']]);
|
|
binding.replaceIdOnNode(a0.node, binding2);
|
|
const value2 = binding.crossOriginIframeRootIdMap.get(binding2);
|
|
if (value2) {
|
|
binding = env0_1;
|
|
binding.patchRootIdOnNode(a0.node, value2);
|
|
}
|
|
}
|
|
|
|
function _fun11886(a0) { // fn#11886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:58316, offset: 0x00dbc619, size: 39 bytes, params: 2, frame: 15
|
|
const binding = env0_1;
|
|
binding.replaceIds(a0, env0_0, ['parentId', 'id']);
|
|
}
|
|
|
|
function _fun11887(a0) { // fn#11887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:58394, offset: 0x00dbc640, size: 41 bytes, params: 2, frame: 15
|
|
const binding = env0_1;
|
|
binding.replaceIds(a0, env0_0, ['id']);
|
|
}
|
|
|
|
function _fun11888(a0) { // fn#11888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:58456, offset: 0x00dbc640, size: 41 bytes, params: 2, frame: 15
|
|
const binding = env0_1;
|
|
binding.replaceIds(a0, env0_0, ['id']);
|
|
}
|
|
|
|
function _fun11889(a0) { // fn#11889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:58577, offset: 0x00dbc640, size: 41 bytes, params: 2, frame: 15
|
|
const binding = env0_1;
|
|
binding.replaceIds(a0, env0_0, ['id']);
|
|
}
|
|
|
|
function _fun11890(a0) { // fn#11890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:58988, offset: 0x00dbc669, size: 41 bytes, params: 2, frame: 15
|
|
const binding = env0_1;
|
|
binding.replaceIds(a0, env0_0, ['start', 'end']);
|
|
}
|
|
|
|
function _fun11891(a0) { // fn#11891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:59190, offset: 0x00dbc692, size: 41 bytes, params: 2, frame: 15
|
|
const binding = env0_1;
|
|
binding.replaceStyleIds(a0, env0_0, ['styleId']);
|
|
}
|
|
|
|
}
|
|
|
|
function value_11895(a0, a1) { // fn#11895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:59700, offset: 0x00dbc7bc, size: 78 bytes, params: 3, frame: 16
|
|
const env0_0 = a1;
|
|
this.replaceIds(a0, a1, ['id', 'rootId']);
|
|
if ('childNodes' in a0) {
|
|
a0.childNodes.forEach(_fun11896);
|
|
}
|
|
function _fun11896(a0) { // fn#11896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:59818, offset: 0x00dbc80a, size: 30 bytes, params: 2, frame: 13
|
|
env0_1.replaceIdOnNode(a0, require);
|
|
}
|
|
|
|
}
|
|
|
|
function value_11897(a0, a1) { // fn#11897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:59889, offset: 0x00dbc828, size: 95 bytes, params: 3, frame: 13
|
|
var environment;
|
|
const env0_0 = a1;
|
|
const type = a0.type;
|
|
const value = environment.__proto__;
|
|
const Document = env1_18.Document;
|
|
if (!(type === Document || a0.rootId)) {
|
|
a0.rootId = a1;
|
|
}
|
|
if ('childNodes' in a0) {
|
|
a0.childNodes.forEach(_fun11898);
|
|
}
|
|
function _fun11898(a0) { // fn#11898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:60016, offset: 0x00dbc887, size: 30 bytes, params: 2, frame: 13
|
|
env0_1.patchRootIdOnNode(a0, require);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11899() { // fn#11899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:60066, offset: 0x00dbc8a5, size: 124 bytes, params: 1, frame: 15
|
|
return CreateClassModule(ShadowDomManagerNoop, [{key: 'init', value: function() {
|
|
}}, {key: 'addShadowRoot', value: function() {
|
|
}}, {key: 'observeAttachShadow', value: function() {
|
|
}}, {key: 'reset', value: function() {
|
|
}}]);
|
|
function ShadowDomManagerNoop() { // fn#11900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:60100, offset: 0x00dbc921, size: 27 bytes, params: 1, frame: 13
|
|
env1_8(this, ShadowDomManagerNoop);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11905() { // fn#11905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:60370, offset: 0x00dbc93c, size: 147 bytes, params: 1, frame: 15
|
|
return CreateClassModule(ShadowDomManager, [{key: 'init', value: function() {
|
|
this.reset();
|
|
var Element = global.Element;
|
|
this.patchAttachShadow(Element, global.document);
|
|
}}, {key: 'addShadowRoot', value: value_11908}, {key: 'observeAttachShadow', value: value_11911},
|
|
{key: 'patchAttachShadow', value: function(a0, a1) {
|
|
var env0_0 = a1;
|
|
var env0_1 = this;
|
|
this.restoreHandlers.push(patch_11472(a0.prototype, 'attachShadow', _fun11913));
|
|
}}, {key: 'reset', value: function() {
|
|
this.restoreHandlers.forEach(_fun11916);
|
|
this.restoreHandlers = [];
|
|
this.shadowDoms = new global.WeakSet();
|
|
this.bypassOptions.canvasManager.resetShadowRoots();
|
|
}}]);
|
|
function ShadowDomManager({mutationCb, scrollCb, bypassOptions, mirror}) { // fn#11906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:60404, offset: 0x00dbc9cf, size: 132 bytes, params: 2, frame: 14
|
|
const value = environment.__proto__;
|
|
env1_8(this, ShadowDomManager);
|
|
const WeakSet = global.WeakSet;
|
|
this.shadowDoms = new WeakSet();
|
|
this.restoreHandlers = [];
|
|
this.mutationCb = mutationCb;
|
|
this.scrollCb = scrollCb;
|
|
this.bypassOptions = bypassOptions;
|
|
this.mirror = mirror;
|
|
this.init();
|
|
}
|
|
|
|
function value_11908(a0, a1) { // fn#11908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:60752, offset: 0x00dbca7e, size: 296 bytes, params: 3, frame: 23
|
|
var shadowDoms;
|
|
var bypassOptions;
|
|
var initMutationObserverBinding;
|
|
var Object;
|
|
var assign;
|
|
var mirror;
|
|
var restoreHandlers;
|
|
var push;
|
|
var initScrollObserverBinding;
|
|
const env0_0 = a0;
|
|
if (isNativeShadowDom(a0)) {
|
|
shadowDoms = this.shadowDoms;
|
|
if (!shadowDoms.has(a0)) {
|
|
this.shadowDoms.add(a0);
|
|
bypassOptions = this.bypassOptions;
|
|
bypassOptions.canvasManager.addShadowRoot(a0);
|
|
initMutationObserverBinding = initMutationObserver;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
bypassOptions = this.bypassOptions;
|
|
mirror = this.mirror;
|
|
var env0_2 = initMutationObserverBinding(Reflect.apply(assign, Object, [{}, bypassOptions, {doc: a1,
|
|
mutationCb: this.mutationCb, mirror: mirror, shadowDomManager: this}]), a0);
|
|
restoreHandlers = this.restoreHandlers;
|
|
restoreHandlers.push(_fun11909);
|
|
restoreHandlers = this.restoreHandlers;
|
|
push = restoreHandlers.push;
|
|
initScrollObserverBinding = initScrollObserver;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
bypassOptions = this.bypassOptions;
|
|
mirror = this.mirror;
|
|
Reflect.apply(push, restoreHandlers, [initScrollObserverBinding(Reflect.apply(assign, Object, [{},
|
|
bypassOptions,
|
|
{scrollCb: this.scrollCb, doc: a0, mirror: mirror}]))]);
|
|
setTimeout$1(_fun11910, 0);
|
|
}
|
|
}
|
|
function _fun11909() { // fn#11909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:61084, offset: 0x00dbcba6, size: 19 bytes, params: 1, frame: 9
|
|
return env0_2.disconnect();
|
|
}
|
|
|
|
function _fun11910() { // fn#11910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:61268, offset: 0x00dbcbb9, size: 172 bytes, params: 1, frame: 16
|
|
var binding;
|
|
var stylesheetManager;
|
|
var adoptStyleSheets;
|
|
var binding2;
|
|
var mirror;
|
|
let adoptedStyleSheets = env0_0.adoptedStyleSheets;
|
|
if (adoptedStyleSheets && env0_0.adoptedStyleSheets.length > 0) {
|
|
binding = env0_1;
|
|
stylesheetManager = binding.bypassOptions.stylesheetManager;
|
|
adoptStyleSheets = stylesheetManager.adoptStyleSheets;
|
|
binding2 = env0_0;
|
|
adoptedStyleSheets = binding2.adoptedStyleSheets;
|
|
mirror = binding.mirror;
|
|
Reflect.apply(adoptStyleSheets, stylesheetManager, [adoptedStyleSheets, mirror.getId(binding2.host)]);
|
|
}
|
|
binding = env0_1;
|
|
const restoreHandlers = binding.restoreHandlers;
|
|
restoreHandlers.push(initAdoptedStyleSheetObserver({mirror: binding.mirror,
|
|
stylesheetManager: binding.bypassOptions.stylesheetManager}, env0_0));
|
|
}
|
|
|
|
}
|
|
|
|
function value_11911(a0) { // fn#11911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:61596, offset: 0x00dbcc65, size: 67 bytes, params: 2, frame: 15
|
|
var contentWindow;
|
|
var error;
|
|
let value = environment.__proto__;
|
|
const getIFrameContentDocumentBinding = getIFrameContentDocument;
|
|
value = undefined;
|
|
const iFrameContentDocumentBinding = getIFrameContentDocumentBinding(a0);
|
|
try {
|
|
contentWindow = a0.contentWindow;
|
|
} catch (error) {
|
|
contentWindow = value;
|
|
}
|
|
if (iFrameContentDocumentBinding && contentWindow) {
|
|
this.patchAttachShadow(contentWindow.Element, iFrameContentDocumentBinding);
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function value_11912({prototype}, a1) { // fn#11912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:61816, offset: 0x00dbcca8, size: 69 bytes, params: 3, frame: 17
|
|
let env0_0 = a1;
|
|
const restoreHandlers = this.restoreHandlers;
|
|
restoreHandlers.push(patch_11472(prototype, 'attachShadow', function(a0) {
|
|
var env0_0 = a0;
|
|
return _fun11914;
|
|
}));
|
|
function _fun11913(a0) { // fn#11913, offset: 0x00dbcced, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun11914;
|
|
function _fun11914(a0) { // fn#11914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:61938, offset: 0x00dbccfd, size: 81 bytes, params: 2, frame: 14
|
|
var value4;
|
|
let binding = env0_0;
|
|
const value = binding.call(this, a0);
|
|
if (this.shadowRoot && inDom(this)) {
|
|
value4 = environment.__proto__;
|
|
binding = env1_1;
|
|
binding.addShadowRoot(this.shadowRoot, require);
|
|
}
|
|
return value;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function value_11915() { // fn#11915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:62071, offset: 0x00dbcd4e, size: 98 bytes, params: 1, frame: 12
|
|
this.restoreHandlers.forEach(function(a0) {
|
|
var error;
|
|
try {
|
|
a0();
|
|
} catch (error) {
|
|
}
|
|
});
|
|
this.restoreHandlers = [];
|
|
const WeakSet = global.WeakSet;
|
|
this.shadowDoms = new WeakSet();
|
|
this.bypassOptions.canvasManager.resetShadowRoots();
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11917() { // fn#11917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:62444, offset: 0x00dbcdc4, size: 241 bytes, params: 1, frame: 15
|
|
return CreateClassModule(CanvasManagerNoop, [{key: 'reset', value: function() {
|
|
}}, {key: 'freeze', value: function() {
|
|
}}, {key: 'unfreeze', value: function() {
|
|
}}, {key: 'lock', value: function() {
|
|
}}, {key: 'unlock', value: function() {
|
|
}}, {key: 'snapshot', value: function() {
|
|
}}, {key: 'addWindow', value: function() {
|
|
}}, {key: 'addShadowRoot', value: function() {
|
|
}}, {key: 'resetShadowRoots', value: function() {
|
|
}}]);
|
|
function CanvasManagerNoop() { // fn#11918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:62478, offset: 0x00dbc921, size: 27 bytes, params: 1, frame: 13
|
|
env1_8(this, CanvasManagerNoop);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11928() { // fn#11928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:62955, offset: 0x00dbceb5, size: 149 bytes, params: 1, frame: 15
|
|
return CreateClassModule(StylesheetManager, [{key: 'attachLinkElement', value: function(a0, a1) {
|
|
if ('_cssText' in a1.attributes) {
|
|
this.mutationCb({adds: [], removes: [], texts: [], attributes: [{id: a1.id, attributes: a1.attributes}]});
|
|
}
|
|
this.trackLinkElement(a0);
|
|
}}, {key: 'trackLinkElement', value: function(a0) {
|
|
if (!this.trackedLinkElements.has(a0)) {
|
|
this.trackedLinkElements.add(a0);
|
|
this.trackStylesheetInLinkElement(a0);
|
|
}
|
|
}}, {key: 'adoptStyleSheets', value: value_11932}, {key: 'reset', value: function() {
|
|
this.styleMirror.reset();
|
|
this.trackedLinkElements = new global.WeakSet();
|
|
}}, {key: 'trackStylesheetInLinkElement', value: function(a0) {
|
|
}}]);
|
|
function StylesheetManager({mutationCb, adoptedStyleSheetCb}) { // fn#11929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:62989, offset: 0x00dbcf4a, size: 118 bytes, params: 2, frame: 15
|
|
const value = environment.__proto__;
|
|
env1_8(this, StylesheetManager);
|
|
const WeakSet = global.WeakSet;
|
|
const value3 = Object.create(WeakSet.prototype, {constructor: {value: WeakSet}});
|
|
const weakSet = new WeakSet();
|
|
this.trackedLinkElements = weakSet instanceof Object ? weakSet : value3;
|
|
this.styleMirror = new env1_35();
|
|
this.mutationCb = mutationCb;
|
|
this.adoptedStyleSheetCb = adoptedStyleSheetCb;
|
|
}
|
|
|
|
function value_11932(a0, a1) { // fn#11932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:63590, offset: 0x00dbd06e, size: 279 bytes, params: 3, frame: 29
|
|
var r6;
|
|
var r15;
|
|
var r10;
|
|
var length;
|
|
var object;
|
|
var items2;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var styleMirror;
|
|
var has;
|
|
var value;
|
|
var add;
|
|
var push;
|
|
var object2;
|
|
var Array;
|
|
var from;
|
|
var rules;
|
|
var CSSRule;
|
|
var closure;
|
|
var value2;
|
|
var getId;
|
|
var styleIds;
|
|
var error;
|
|
var adoptedStyleSheetCb;
|
|
exceptionSkip35: while (true) {
|
|
exceptionLanding35: while (true) {
|
|
length = a0.length;
|
|
if (length !== 0) {
|
|
object = {id: a1, styleIds: []};
|
|
items2 = [];
|
|
iterator = a0[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
r6 = iterator;
|
|
while (true) {
|
|
item2 = Reflect.apply(iterator2, r6, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r6;
|
|
if (item2 === undefined) {
|
|
break;
|
|
}
|
|
try {
|
|
styleMirror = this.styleMirror;
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
has = styleMirror.has;
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
value = Reflect.apply(has, styleMirror, [item]);
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
styleMirror = this.styleMirror;
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
if (value) {
|
|
try {
|
|
getId = styleMirror.getId;
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
value = Reflect.apply(getId, styleMirror, [item]);
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
r10 = value;
|
|
} else {
|
|
try {
|
|
add = styleMirror.add;
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
value = Reflect.apply(add, styleMirror, [item]);
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
push = items2.push;
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
object2.styleId = value;
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
Array = global.Array;
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
from = Array.from;
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
rules = item.rules;
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
if (rules) {
|
|
r15 = rules;
|
|
continue;
|
|
}
|
|
try {
|
|
CSSRule = global.CSSRule;
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
r15 = CSSRule;
|
|
try {
|
|
closure = function(a0, a1) {
|
|
var object = {};
|
|
object.rule = stringifyRule(a0);
|
|
object.index = a1;
|
|
return object;
|
|
};
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
value2 = Reflect.apply(from, Array, [r15, closure]);
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
object2.rules = value2;
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
Reflect.apply(push, items2, [object2]);
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
r10 = value;
|
|
}
|
|
try {
|
|
styleIds = object.styleIds;
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
push = styleIds.push;
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
try {
|
|
Reflect.apply(push, styleIds, [r10]);
|
|
} catch (error) {
|
|
break exceptionLanding35;
|
|
}
|
|
r6 = item2;
|
|
}
|
|
length = items2.length;
|
|
if (!(length > 0)) {
|
|
continue;
|
|
}
|
|
object.styles = items2;
|
|
adoptedStyleSheetCb = this.adoptedStyleSheetCb;
|
|
Reflect.apply(adoptedStyleSheetCb, this, [object]);
|
|
}
|
|
return undefined;
|
|
break exceptionSkip35;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip35;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11936() { // fn#11936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:64156, offset: 0x00dbd1df, size: 103 bytes, params: 1, frame: 15
|
|
return CreateClassModule(ProcessedNodeManager, [{key: 'inOtherBuffer', value: function(a0, a1) {
|
|
var r0;
|
|
var env0_0 = a1;
|
|
var value = this.nodeMap.get(a0);
|
|
if (value) {
|
|
value = global.Array.from(value);
|
|
value = value.some(_fun11939);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}}, {key: 'add', value: function(a0, a1) {
|
|
var env0_0 = this;
|
|
if (!this.active) {
|
|
this.active = true;
|
|
_fun11941(_fun11942);
|
|
}
|
|
var nodeMap = this.nodeMap;
|
|
nodeMap.set(a0, (this.nodeMap.get(a0) || new global.Set()).add(a1));
|
|
}}, {key: 'destroy', value: function() {
|
|
}}]);
|
|
function ProcessedNodeManager() { // fn#11937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:64190, offset: 0x00dbd246, size: 69 bytes, params: 1, frame: 13
|
|
const value = environment.__proto__;
|
|
env1_8(this, ProcessedNodeManager);
|
|
const WeakMap = global.WeakMap;
|
|
this.nodeMap = new WeakMap();
|
|
this.active = false;
|
|
}
|
|
|
|
function value_11938(a0, a1) { // fn#11938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:64321, offset: 0x00dbd28b, size: 73 bytes, params: 3, frame: 13
|
|
var r0;
|
|
const env0_0 = a1;
|
|
let value = this.nodeMap.get(a0);
|
|
if (value) {
|
|
value = global.Array.from(value);
|
|
value = value.some(function(a0) {
|
|
return a0 !== require;
|
|
});
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
function _fun11939(a0) { // fn#11939, offset: 0x00ce1772, size: 16 bytes, params: 2, frame: 2
|
|
return a0 !== require;
|
|
}
|
|
|
|
}
|
|
|
|
function value_11940(a0, a1) { // fn#11940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:64452, offset: 0x00dbd2d4, size: 127 bytes, params: 3, frame: 15
|
|
if (!this.active) {
|
|
this.active = true;
|
|
value_11940OnRequestAnimationFrame(_fun11942);
|
|
}
|
|
const nodeMap = this.nodeMap;
|
|
const set = nodeMap.set;
|
|
const r5 = this.nodeMap.get(a0) || new global.Set();
|
|
Reflect.apply(set, nodeMap, [a0, r5.add(a1)]);
|
|
function value_11940OnRequestAnimationFrame() { // fn#11941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:64510, owner: value_11940.onRequestAnimationFrame, offset: 0x00dbd353, size: 35 bytes, params: 1, frame: 14
|
|
const value = environment.__proto__.__proto__;
|
|
return getImplementation('requestAnimationFrame').apply(undefined, arguments);
|
|
}
|
|
|
|
function _fun11942() { // fn#11942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:64621, offset: 0x00dbd376, size: 53 bytes, params: 1, frame: 10
|
|
const binding = env0_0;
|
|
const WeakMap = global.WeakMap;
|
|
binding.nodeMap = new WeakMap();
|
|
binding.active = false;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function takeFullSnapshot(a0) { // fn#11945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:76426, offset: 0x00dbd3b7, size: 62 bytes, params: 2, frame: 12
|
|
if (env0_56) {
|
|
env0_56(a0);
|
|
return undefined;
|
|
}
|
|
const Error = global.Error;
|
|
throw new Error('please take full snapshot after start recording');
|
|
}
|
|
|
|
function _fun11946() { // fn#11946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:77939, offset: 0x00dbd3f5, size: 301 bytes, params: 1, frame: 15
|
|
return CreateClassModule(ClickDetector, [{key: 'addListeners', value: function() {
|
|
var env0_0 = this;
|
|
var env0_1 = onWindowOpen(_fun11949);
|
|
this._teardown = _fun11950;
|
|
}}, {key: 'removeListeners', value: function() {
|
|
if (this._teardown) {
|
|
this._teardown();
|
|
}
|
|
if (this._checkClickTimeout) {
|
|
global.clearTimeout(this._checkClickTimeout);
|
|
}
|
|
}}, {key: 'handleClick', value: value_11952}, {key: 'registerMutation', value: value_11954}, {key: 'registerScroll',
|
|
value: value_11955}, {key: 'registerClick', value: value_11956}, {key: '_handleMultiClick',
|
|
value: function(a0) {
|
|
this._getClicks(a0).forEach(_fun11958);
|
|
}}, {key: '_getClicks', value: function(a0) {
|
|
var env0_0 = a0;
|
|
return this._clicks.filter(_fun11960);
|
|
}}, {key: '_checkClicks', value: value_11961}, {key: '_generateBreadcrumbs', value: value_11963},
|
|
{key: '_scheduleCheckClicks', value: value_11964}]);
|
|
function ClickDetector(a0, {timeout, threshold, scrollTimeout, ignoreSelector}) { // fn#11947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:77973, offset: 0x00dbd522, size: 168 bytes, params: 3, frame: 16
|
|
const r1 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : addBreadcrumbEvent;
|
|
const value = environment.__proto__;
|
|
env1_8(this, ClickDetector);
|
|
this._lastMutation = 0;
|
|
this._lastScroll = 0;
|
|
this._clicks = [];
|
|
this._timeout = timeout / 1000;
|
|
this._threshold = threshold / 1000;
|
|
this._scrollTimeout = scrollTimeout / 1000;
|
|
this._replay = a0;
|
|
this._ignoreSelector = ignoreSelector;
|
|
this._addBreadcrumbEvent = r1;
|
|
}
|
|
|
|
function value_11948() { // fn#11948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:78368, offset: 0x00dbd5ca, size: 45 bytes, params: 1, frame: 13
|
|
const env0_1 = onWindowOpen(_fun11949);
|
|
this._teardown = _teardown;
|
|
function _fun11949() { // fn#11949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:78419, offset: 0x00dbd5f7, size: 28 bytes, params: 1, frame: 10
|
|
env0_0._lastMutation = nowInSeconds();
|
|
}
|
|
|
|
function _teardown() { // fn#11950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:78479, owner: value_11948._teardown, offset: 0x00dbd613, size: 43 bytes, params: 1, frame: 11
|
|
env0_1();
|
|
const binding = env0_0;
|
|
binding._clicks = [];
|
|
binding._lastMutation = 0;
|
|
binding._lastScroll = 0;
|
|
}
|
|
|
|
}
|
|
|
|
function value_11952(a0, a1) { // fn#11952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:78723, offset: 0x00dbd676, size: 383 bytes, params: 3, frame: 20
|
|
var r3;
|
|
var object;
|
|
var data;
|
|
var _clicks;
|
|
const _ignoreSelector = this._ignoreSelector;
|
|
const binding = env1_64;
|
|
const value2 = binding.includes(a1.tagName);
|
|
const value3 = true;
|
|
if (value2) {
|
|
if (a1.tagName !== 'INPUT') {
|
|
r3 = a1.tagName !== 'A' ? _ignoreSelector && a1.matches(_ignoreSelector) && value3 : a1.hasAttribute('download') || a1.hasAttribute('target') && a1.getAttribute('target') !== '_self' ? value3 : _ignoreSelector && a1.matches(_ignoreSelector) && value3;
|
|
} else {
|
|
object = ['submit', 'button'];
|
|
r3 = object.includes(a1.getAttribute('type') || '') ? a1.tagName !== 'A' ? _ignoreSelector && a1.matches(_ignoreSelector) && value3 : a1.hasAttribute('download') || a1.hasAttribute('target') && a1.getAttribute('target') !== '_self' ? value3 : _ignoreSelector && a1.matches(_ignoreSelector) && value3 : value3;
|
|
}
|
|
} else {
|
|
r3 = value3;
|
|
}
|
|
if (!r3) {
|
|
data = a0.data;
|
|
r3 = data ? typeof a0.data.nodeId !== 'number' : !data;
|
|
r3 = !r3 ? !a0.timestamp : r3;
|
|
if (!r3) {
|
|
object = {};
|
|
object.timestamp = timestampToS(a0.timestamp);
|
|
object.clickBreadcrumb = a0;
|
|
object.clickCount = 0;
|
|
object.node = a1;
|
|
_clicks = this._clicks;
|
|
if (!_clicks.some(_fun11953)) {
|
|
_clicks = this._clicks;
|
|
_clicks.push(object);
|
|
_clicks = this._clicks;
|
|
if (_clicks.length === 1) {
|
|
this._scheduleCheckClicks();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
function _fun11953(a0) { // fn#11953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:79290, offset: 0x00dbd7f5, size: 77 bytes, params: 2, frame: 13
|
|
var r0;
|
|
var Math;
|
|
const node = a0.node;
|
|
var value;
|
|
const value2 = node === env0_0.node;
|
|
if (value2) {
|
|
Math = global.Math;
|
|
value = Math.abs(a0.timestamp - env0_0.timestamp);
|
|
value = value < 1;
|
|
r0 = value;
|
|
} else {
|
|
r0 = value2;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
function value_11954() { // fn#11954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:79475, offset: 0x00dbd842, size: 67 bytes, params: 1, frame: 13
|
|
const r2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.Date.now();
|
|
const value = environment.__proto__;
|
|
this._lastMutation = timestampToS(r2);
|
|
}
|
|
|
|
function value_11955() { // fn#11955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:79640, offset: 0x00dbd885, size: 67 bytes, params: 1, frame: 13
|
|
const r2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.Date.now();
|
|
const value = environment.__proto__;
|
|
this._lastScroll = timestampToS(r2);
|
|
}
|
|
|
|
function value_11956(a0) { // fn#11956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:79800, offset: 0x00dbd8c8, size: 35 bytes, params: 2, frame: 12
|
|
const value = environment.__proto__;
|
|
this._handleMultiClick(getClosestInteractive(a0));
|
|
}
|
|
|
|
function value_11957(a0) { // fn#11957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:79916, offset: 0x00dbd8eb, size: 40 bytes, params: 2, frame: 11
|
|
this._getClicks(a0).forEach(function(a0) {
|
|
var clickCount = a0.clickCount;
|
|
a0.clickCount = typeof clickCount === 'bigint' ? clickCount + 1n : +clickCount + 1;
|
|
});
|
|
}
|
|
|
|
function value_11959(a0) { // fn#11959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:80030, offset: 0x00dbd929, size: 35 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
return this._clicks.filter(_fun11960);
|
|
function _fun11960({node}) { // fn#11960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:80081, offset: 0x00dbd94c, size: 22 bytes, params: 2, frame: 2
|
|
return node === env0_0;
|
|
}
|
|
|
|
}
|
|
|
|
function value_11961() { // fn#11961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:80142, offset: 0x00dbd962, size: 184 bytes, params: 1, frame: 20
|
|
var environment;
|
|
var indexOf;
|
|
var value2;
|
|
var _generateBreadcrumbs;
|
|
var splice;
|
|
var error;
|
|
var length;
|
|
var _scheduleCheckClicks;
|
|
let value = environment.__proto__;
|
|
const env0_2 = nowInSeconds();
|
|
let _clicks = this._clicks;
|
|
_clicks.forEach(_fun11962);
|
|
const iterator = [][Symbol.iterator]();
|
|
const iterator2 = iterator.next;
|
|
let r3 = iterator;
|
|
let item2 = Reflect.apply(iterator2, r3, []);
|
|
let item = item2.value;
|
|
item2 = item2.done ? undefined : r3;
|
|
reducibleJoin2: while (true) {
|
|
if (item2 === undefined) {
|
|
_clicks = this._clicks;
|
|
length = _clicks.length;
|
|
reducibleJoin18: while (true) {
|
|
if (length) {
|
|
_scheduleCheckClicks = this._scheduleCheckClicks;
|
|
Reflect.apply(_scheduleCheckClicks, this, []);
|
|
break reducibleJoin18;
|
|
}
|
|
break reducibleJoin18;
|
|
}
|
|
return undefined;
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleLoop2: while (true) {
|
|
try {
|
|
_clicks = this._clicks;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
indexOf = _clicks.indexOf;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value = Reflect.apply(indexOf, _clicks, [item]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value2 = value > -1;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
reducibleJoin1: while (true) {
|
|
if (value2) {
|
|
try {
|
|
_generateBreadcrumbs = this._generateBreadcrumbs;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(_generateBreadcrumbs, this, [item]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
_clicks = this._clicks;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
splice = _clicks.splice;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(splice, _clicks, [value, 1]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r3 = item2;
|
|
break reducibleJoin1;
|
|
}
|
|
r3 = item2;
|
|
break reducibleJoin1;
|
|
}
|
|
item2 = Reflect.apply(iterator2, r3, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r3;
|
|
if (item2 === undefined) {
|
|
break reducibleLoop2;
|
|
}
|
|
continue reducibleLoop2;
|
|
}
|
|
reducibleJoin18: while (true) {
|
|
if (this._clicks.length) {
|
|
_scheduleCheckClicks = this._scheduleCheckClicks;
|
|
Reflect.apply(_scheduleCheckClicks, this, []);
|
|
break reducibleJoin18;
|
|
}
|
|
break reducibleJoin18;
|
|
}
|
|
function _fun11962(a0) { // fn#11962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:80234, offset: 0x00dbda1a, size: 216 bytes, params: 2, frame: 12
|
|
if (!a0.mutationAfter && env0_0._lastMutation) {
|
|
a0.mutationAfter = a0.timestamp <= env0_0._lastMutation ? env0_0._lastMutation - a0.timestamp : undefined;
|
|
}
|
|
if (!a0.scrollAfter && env0_0._lastScroll) {
|
|
a0.scrollAfter = a0.timestamp <= env0_0._lastScroll ? env0_0._lastScroll - a0.timestamp : undefined;
|
|
}
|
|
if (a0.timestamp + env0_0._timeout <= env0_2) {
|
|
env0_1.push(a0);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function value_11963(a0) { // fn#11963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:80691, offset: 0x00dbdaf2, size: 507 bytes, params: 2, frame: 23
|
|
var r6;
|
|
var r8;
|
|
var value;
|
|
var object;
|
|
var Object;
|
|
var assign;
|
|
var data;
|
|
var object2;
|
|
const GLOBAL_OBJ = (Module00826Module).GLOBAL_OBJ;
|
|
var Math;
|
|
var min;
|
|
var _timeout;
|
|
var object3;
|
|
var value4;
|
|
const _replay = this._replay;
|
|
const r5 = !(a0.scrollAfter && a0.scrollAfter <= this._scrollTimeout) && !(a0.mutationAfter && a0.mutationAfter <= this._threshold);
|
|
let clickCount = a0.clickCount;
|
|
const clickBreadcrumb = a0.clickBreadcrumb;
|
|
if (r5) {
|
|
Math = global.Math;
|
|
min = Math.min;
|
|
r6 = a0.mutationAfter || this._timeout;
|
|
_timeout = this._timeout;
|
|
value = Reflect.apply(min, Math, [r6, _timeout]);
|
|
value = 1000 * value;
|
|
_timeout = this._timeout;
|
|
r8 = value < 1000 * _timeout ? 'mutation' : 'timeout';
|
|
object = {type: 'default'};
|
|
object.message = clickBreadcrumb.message;
|
|
object.timestamp = clickBreadcrumb.timestamp;
|
|
object.category = 'ui.slowClickDetected';
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
data = clickBreadcrumb.data;
|
|
object3 = {};
|
|
value4 = environment.__proto__;
|
|
object3.url = GLOBAL_OBJ.location.href;
|
|
object3.route = _replay.getCurrentRoute();
|
|
object3.timeAfterClickMs = value;
|
|
object3.endReason = r8;
|
|
clickCount = !clickCount ? 1 : clickCount;
|
|
object3.clickCount = clickCount;
|
|
object.data = Reflect.apply(assign, Object, [{}, data, object3]);
|
|
this._addBreadcrumbEvent(_replay, object);
|
|
} else if (clickCount > 1) {
|
|
object = {type: 'default'};
|
|
object.message = clickBreadcrumb.message;
|
|
object.timestamp = clickBreadcrumb.timestamp;
|
|
object.category = 'ui.multiClick';
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
data = clickBreadcrumb.data;
|
|
object2 = {};
|
|
value = environment.__proto__;
|
|
object2.url = GLOBAL_OBJ.location.href;
|
|
object2.route = _replay.getCurrentRoute();
|
|
object2.clickCount = clickCount;
|
|
object2.metric = true;
|
|
object.data = Reflect.apply(assign, Object, [{}, data, object2]);
|
|
this._addBreadcrumbEvent(_replay, object);
|
|
}
|
|
}
|
|
|
|
function value_11964() { // fn#11964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:81554, offset: 0x00dbdced, size: 94 bytes, params: 1, frame: 15
|
|
var environment;
|
|
if (this._checkClickTimeout) {
|
|
global.clearTimeout(this._checkClickTimeout);
|
|
}
|
|
let value = environment.__proto__;
|
|
value = require(1041) /* metro dependency 1041 */;
|
|
this._checkClickTimeout = value.setTimeout(_fun11965, 1000);
|
|
function _fun11965() { // fn#11965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:81705, offset: 0x00dbdd4b, size: 21 bytes, params: 1, frame: 9
|
|
return env0_0._checkClicks();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function handleDomListener(a0) { // fn#11966, offset: 0x00dbdd60, size: 16 bytes, params: 2, frame: 2
|
|
const env0_0 = a0;
|
|
return _fun11967;
|
|
function _fun11967(a0) { // fn#11967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:83005, offset: 0x00dbdd70, size: 204 bytes, params: 2, frame: 16
|
|
var environment;
|
|
var event;
|
|
var r4;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var clickDetector;
|
|
var value7;
|
|
var value9;
|
|
const binding = env0_0;
|
|
if (binding.isEnabled()) {
|
|
value2 = undefined;
|
|
value3 = handleDom(a0);
|
|
if (value3) {
|
|
value4 = a0.name === 'click';
|
|
event = value4 ? a0.event : value2;
|
|
r4 = value4 && env0_0.clickDetector;
|
|
r4 = r4 && event != null;
|
|
r4 = r4 && event.target;
|
|
r4 = r4 ? event.altKey : !r4;
|
|
r4 = !r4 ? event.metaKey : r4;
|
|
r4 = !r4 ? event.ctrlKey : r4;
|
|
r4 = !r4 ? event.shiftKey : r4;
|
|
if (!r4) {
|
|
clickDetector = env0_0.clickDetector;
|
|
value7 = environment.__proto__;
|
|
clickDetector.handleClick(value3, getClickTargetNode(a0.event));
|
|
}
|
|
value9 = environment.__proto__;
|
|
addBreadcrumbEvent(env0_0, value3);
|
|
}
|
|
}
|
|
function handleDom(a0) { // fn#11968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:83041, offset: 0x00dbde3c, size: 241 bytes, params: 2, frame: 20
|
|
var r7;
|
|
var r3;
|
|
var r1;
|
|
var getTargetNodeBinding;
|
|
var event;
|
|
var getClickTargetNodeBinding;
|
|
var property;
|
|
var htmlTreeAsString;
|
|
var object;
|
|
var error;
|
|
var target;
|
|
var message;
|
|
var createBreadcrumbBinding;
|
|
var Object;
|
|
var assign;
|
|
let name = a0.name;
|
|
let value = null;
|
|
if (name === 'click') {
|
|
try {
|
|
getClickTargetNodeBinding = getClickTargetNode;
|
|
} catch (error) {
|
|
r3 = value;
|
|
value = '<unknown>';
|
|
r1 = value;
|
|
object = {target: r3, message: r1};
|
|
target = object.target;
|
|
message = object.message;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
name = a0.name;
|
|
return createBreadcrumbBinding(Reflect.apply(assign, Object, [{category: 'ui.' + name},
|
|
getBaseDomBreadcrumb(target,
|
|
message)]));
|
|
}
|
|
try {
|
|
event = a0.event;
|
|
} catch (error) {
|
|
r3 = value;
|
|
value = '<unknown>';
|
|
r1 = value;
|
|
object = {target: r3, message: r1};
|
|
target = object.target;
|
|
message = object.message;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
name = a0.name;
|
|
return createBreadcrumbBinding(Reflect.apply(assign, Object, [{category: 'ui.' + name},
|
|
getBaseDomBreadcrumb(target,
|
|
message)]));
|
|
}
|
|
try {
|
|
value = getClickTargetNodeBinding(event);
|
|
r7 = value;
|
|
} catch (error) {
|
|
r3 = value;
|
|
value = '<unknown>';
|
|
r1 = value;
|
|
object = {target: r3, message: r1};
|
|
target = object.target;
|
|
message = object.message;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
name = a0.name;
|
|
return createBreadcrumbBinding(Reflect.apply(assign, Object, [{category: 'ui.' + name},
|
|
getBaseDomBreadcrumb(target,
|
|
message)]));
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
r3 = r7;
|
|
value = '<unknown>';
|
|
r1 = value;
|
|
object = {target: r3, message: r1};
|
|
target = object.target;
|
|
message = object.message;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
name = a0.name;
|
|
return createBreadcrumbBinding(Reflect.apply(assign, Object, [{category: 'ui.' + name},
|
|
getBaseDomBreadcrumb(target,
|
|
message)]));
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
r3 = r7;
|
|
value = '<unknown>';
|
|
r1 = value;
|
|
object = {target: r3, message: r1};
|
|
target = object.target;
|
|
message = object.message;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
name = a0.name;
|
|
return createBreadcrumbBinding(Reflect.apply(assign, Object, [{category: 'ui.' + name},
|
|
getBaseDomBreadcrumb(target,
|
|
message)]));
|
|
}
|
|
try {
|
|
property = dependencyMap[9];
|
|
} catch (error) {
|
|
r3 = r7;
|
|
value = '<unknown>';
|
|
r1 = value;
|
|
object = {target: r3, message: r1};
|
|
target = object.target;
|
|
message = object.message;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
name = a0.name;
|
|
return createBreadcrumbBinding(Reflect.apply(assign, Object, [{category: 'ui.' + name},
|
|
getBaseDomBreadcrumb(target,
|
|
message)]));
|
|
}
|
|
try {
|
|
value = require(property);
|
|
} catch (error) {
|
|
r3 = r7;
|
|
value = '<unknown>';
|
|
r1 = value;
|
|
object = {target: r3, message: r1};
|
|
target = object.target;
|
|
message = object.message;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
name = a0.name;
|
|
return createBreadcrumbBinding(Reflect.apply(assign, Object, [{category: 'ui.' + name},
|
|
getBaseDomBreadcrumb(target,
|
|
message)]));
|
|
}
|
|
try {
|
|
htmlTreeAsString = value.htmlTreeAsString;
|
|
} catch (error) {
|
|
r3 = r7;
|
|
value = '<unknown>';
|
|
r1 = value;
|
|
object = {target: r3, message: r1};
|
|
target = object.target;
|
|
message = object.message;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
name = a0.name;
|
|
return createBreadcrumbBinding(Reflect.apply(assign, Object, [{category: 'ui.' + name},
|
|
getBaseDomBreadcrumb(target,
|
|
message)]));
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
r3 = r7;
|
|
value = '<unknown>';
|
|
r1 = value;
|
|
object = {target: r3, message: r1};
|
|
target = object.target;
|
|
message = object.message;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
name = a0.name;
|
|
return createBreadcrumbBinding(Reflect.apply(assign, Object, [{category: 'ui.' + name},
|
|
getBaseDomBreadcrumb(target,
|
|
message)]));
|
|
}
|
|
try {
|
|
object.maxStringLength = 200;
|
|
} catch (error) {
|
|
r3 = r7;
|
|
value = '<unknown>';
|
|
r1 = value;
|
|
object = {target: r3, message: r1};
|
|
target = object.target;
|
|
message = object.message;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
name = a0.name;
|
|
return createBreadcrumbBinding(Reflect.apply(assign, Object, [{category: 'ui.' + name},
|
|
getBaseDomBreadcrumb(target,
|
|
message)]));
|
|
}
|
|
try {
|
|
value = Reflect.apply(htmlTreeAsString, value, [r7, object]);
|
|
} catch (error) {
|
|
r3 = r7;
|
|
value = '<unknown>';
|
|
r1 = value;
|
|
object = {target: r3, message: r1};
|
|
target = object.target;
|
|
message = object.message;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
name = a0.name;
|
|
return createBreadcrumbBinding(Reflect.apply(assign, Object, [{category: 'ui.' + name},
|
|
getBaseDomBreadcrumb(target,
|
|
message)]));
|
|
}
|
|
r1 = value || '<unknown>';
|
|
r3 = r7;
|
|
} else {
|
|
try {
|
|
getTargetNodeBinding = getTargetNode;
|
|
} catch (error) {
|
|
r3 = value;
|
|
value = '<unknown>';
|
|
r1 = value;
|
|
object = {target: r3, message: r1};
|
|
target = object.target;
|
|
message = object.message;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
name = a0.name;
|
|
return createBreadcrumbBinding(Reflect.apply(assign, Object, [{category: 'ui.' + name},
|
|
getBaseDomBreadcrumb(target,
|
|
message)]));
|
|
}
|
|
try {
|
|
event = a0.event;
|
|
} catch (error) {
|
|
r3 = value;
|
|
value = '<unknown>';
|
|
r1 = value;
|
|
object = {target: r3, message: r1};
|
|
target = object.target;
|
|
message = object.message;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
name = a0.name;
|
|
return createBreadcrumbBinding(Reflect.apply(assign, Object, [{category: 'ui.' + name},
|
|
getBaseDomBreadcrumb(target,
|
|
message)]));
|
|
}
|
|
try {
|
|
value = getTargetNodeBinding(event);
|
|
r7 = value;
|
|
} catch (error) {
|
|
r3 = value;
|
|
value = '<unknown>';
|
|
r1 = value;
|
|
object = {target: r3, message: r1};
|
|
target = object.target;
|
|
message = object.message;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
name = a0.name;
|
|
return createBreadcrumbBinding(Reflect.apply(assign, Object, [{category: 'ui.' + name},
|
|
getBaseDomBreadcrumb(target,
|
|
message)]));
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
r3 = r7;
|
|
value = '<unknown>';
|
|
r1 = value;
|
|
object = {target: r3, message: r1};
|
|
target = object.target;
|
|
message = object.message;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
name = a0.name;
|
|
return createBreadcrumbBinding(Reflect.apply(assign, Object, [{category: 'ui.' + name},
|
|
getBaseDomBreadcrumb(target,
|
|
message)]));
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
r3 = r7;
|
|
value = '<unknown>';
|
|
r1 = value;
|
|
object = {target: r3, message: r1};
|
|
target = object.target;
|
|
message = object.message;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
name = a0.name;
|
|
return createBreadcrumbBinding(Reflect.apply(assign, Object, [{category: 'ui.' + name},
|
|
getBaseDomBreadcrumb(target,
|
|
message)]));
|
|
}
|
|
try {
|
|
property = dependencyMap[9];
|
|
} catch (error) {
|
|
r3 = r7;
|
|
value = '<unknown>';
|
|
r1 = value;
|
|
object = {target: r3, message: r1};
|
|
target = object.target;
|
|
message = object.message;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
name = a0.name;
|
|
return createBreadcrumbBinding(Reflect.apply(assign, Object, [{category: 'ui.' + name},
|
|
getBaseDomBreadcrumb(target,
|
|
message)]));
|
|
}
|
|
try {
|
|
value = require(property);
|
|
} catch (error) {
|
|
r3 = r7;
|
|
value = '<unknown>';
|
|
r1 = value;
|
|
object = {target: r3, message: r1};
|
|
target = object.target;
|
|
message = object.message;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
name = a0.name;
|
|
return createBreadcrumbBinding(Reflect.apply(assign, Object, [{category: 'ui.' + name},
|
|
getBaseDomBreadcrumb(target,
|
|
message)]));
|
|
}
|
|
try {
|
|
htmlTreeAsString = value.htmlTreeAsString;
|
|
} catch (error) {
|
|
r3 = r7;
|
|
value = '<unknown>';
|
|
r1 = value;
|
|
object = {target: r3, message: r1};
|
|
target = object.target;
|
|
message = object.message;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
name = a0.name;
|
|
return createBreadcrumbBinding(Reflect.apply(assign, Object, [{category: 'ui.' + name},
|
|
getBaseDomBreadcrumb(target,
|
|
message)]));
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
r3 = r7;
|
|
value = '<unknown>';
|
|
r1 = value;
|
|
object = {target: r3, message: r1};
|
|
target = object.target;
|
|
message = object.message;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
name = a0.name;
|
|
return createBreadcrumbBinding(Reflect.apply(assign, Object, [{category: 'ui.' + name},
|
|
getBaseDomBreadcrumb(target,
|
|
message)]));
|
|
}
|
|
try {
|
|
object.maxStringLength = 200;
|
|
} catch (error) {
|
|
r3 = r7;
|
|
value = '<unknown>';
|
|
r1 = value;
|
|
object = {target: r3, message: r1};
|
|
target = object.target;
|
|
message = object.message;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
name = a0.name;
|
|
return createBreadcrumbBinding(Reflect.apply(assign, Object, [{category: 'ui.' + name},
|
|
getBaseDomBreadcrumb(target,
|
|
message)]));
|
|
}
|
|
try {
|
|
value = Reflect.apply(htmlTreeAsString, value, [r7, object]);
|
|
} catch (error) {
|
|
r3 = r7;
|
|
value = '<unknown>';
|
|
r1 = value;
|
|
object = {target: r3, message: r1};
|
|
target = object.target;
|
|
message = object.message;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
name = a0.name;
|
|
return createBreadcrumbBinding(Reflect.apply(assign, Object, [{category: 'ui.' + name},
|
|
getBaseDomBreadcrumb(target,
|
|
message)]));
|
|
}
|
|
r1 = value || '<unknown>';
|
|
r3 = r7;
|
|
}
|
|
object = {target: r3, message: r1};
|
|
target = object.target;
|
|
message = object.message;
|
|
createBreadcrumbBinding = createBreadcrumb;
|
|
Object = global.Object;
|
|
return createBreadcrumbBinding(Object.assign({category: 'ui.' + a0.name}, getBaseDomBreadcrumb(target, message)));
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function resource({entryType, initiatorType, name, responseEnd, startTime, decodedBodySize, encodedBodySize, responseStatus, transferSize}) { // fn#11969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:84786, offset: 0x00dbdf2d, size: 175 bytes, params: 2, frame: 23
|
|
let object = ['fetch', 'xmlhttprequest'];
|
|
if (object.includes(initiatorType)) {
|
|
return null;
|
|
}
|
|
object = {type: '' + entryType + '.' + initiatorType};
|
|
const getAbsoluteTime_11655Binding = getAbsoluteTime_11655;
|
|
object.start = getAbsoluteTime_11655Binding(startTime);
|
|
object.end = getAbsoluteTime_11655Binding(responseEnd);
|
|
object.name = name;
|
|
object.data = {size: transferSize, statusCode: responseStatus, decodedBodySize: decodedBodySize,
|
|
encodedBodySize: encodedBodySize};
|
|
return object;
|
|
}
|
|
|
|
function paint({duration, entryType, name, startTime}) { // fn#11970, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:85173, offset: 0x00dbdfdc, size: 67 bytes, params: 2, frame: 14
|
|
const absoluteTime_11655 = getAbsoluteTime_11655(startTime);
|
|
return {type: entryType, name: name, start: absoluteTime_11655, end: absoluteTime_11655 + duration, data: undefined};
|
|
}
|
|
|
|
function navigation({entryType, name, decodedBodySize, duration, domComplete, encodedBodySize, domContentLoadedEventStart, domContentLoadedEventEnd, domInteractive, loadEventStart, loadEventEnd, redirectCount, startTime, transferSize, type}) { // fn#11971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:85335, offset: 0x00dbe01f, size: 229 bytes, params: 2, frame: 29
|
|
if (duration === 0) {
|
|
return null;
|
|
}
|
|
const object = {};
|
|
object.type = '' + entryType + '.' + type;
|
|
const getAbsoluteTime_11655Binding = getAbsoluteTime_11655;
|
|
object.start = getAbsoluteTime_11655Binding(startTime);
|
|
object.end = getAbsoluteTime_11655Binding(domComplete);
|
|
object.name = name;
|
|
object.data = {size: transferSize, decodedBodySize: decodedBodySize, encodedBodySize: encodedBodySize,
|
|
duration: duration, domInteractive: domInteractive, domContentLoadedEventStart: domContentLoadedEventStart,
|
|
domContentLoadedEventEnd: domContentLoadedEventEnd, loadEventStart: loadEventStart, loadEventEnd: loadEventEnd,
|
|
domComplete: domComplete, redirectCount: redirectCount};
|
|
return object;
|
|
}
|
|
|
|
function makeReplayDebugLogger() { // fn#11972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:87468, offset: 0x00dbe104, size: 113 bytes, params: 1, frame: 13
|
|
const object = {exception: function() {
|
|
}, infoTick: function() {
|
|
}, setConfig: function(a0) {
|
|
env0_0 = !!a0.captureExceptions;
|
|
env0_1 = !!a0.traceInternals;
|
|
}};
|
|
const binding = env0_69;
|
|
const binding2 = env0_70;
|
|
const forEach = binding2.forEach;
|
|
if (binding) {
|
|
Reflect.apply(forEach, binding2, [_fun11976]);
|
|
object.exception = exception_11978;
|
|
object.infoTick = infoTick_11979;
|
|
} else {
|
|
Reflect.apply(forEach, binding2, [_fun11981]);
|
|
}
|
|
return object;
|
|
function _fun11976(a0) { // fn#11976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:87684, offset: 0x00dbe19f, size: 29 bytes, params: 2, frame: 3
|
|
const env0_0 = a0;
|
|
env0_2[a0] = _fun11977;
|
|
function _fun11977() { // fn#11977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:87701, offset: 0x00dbe1bc, size: 203 bytes, params: 1, frame: 19
|
|
var r1;
|
|
var value5;
|
|
var _addBreadcrumbBinding;
|
|
var join;
|
|
var value8;
|
|
var severityLevelFromString;
|
|
let value = arguments.length;
|
|
const Array = global.Array;
|
|
const array = new Array(value);
|
|
const value4 = 0;
|
|
if (value4 < value) {
|
|
r1 = value4;
|
|
reducibleLoop1: while (true) {
|
|
array[r1] = arguments[r1];
|
|
value5 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (value5 < value) {
|
|
r1 = value5;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
const debug = (require(826) /* metro dependency 826 */).debug;
|
|
const property = debug[env0_0];
|
|
const apply = property.apply;
|
|
const items2 = [env2_71];
|
|
Reflect.apply(apply, property, [debug, items2.concat(array)]);
|
|
reducibleJoin4: while (true) {
|
|
if (env1_1) {
|
|
_addBreadcrumbBinding = _addBreadcrumb;
|
|
join = array.join;
|
|
value8 = Reflect.apply(join, array, ['']);
|
|
value = require(826) /* metro dependency 826 */;
|
|
severityLevelFromString = value.severityLevelFromString;
|
|
_addBreadcrumbBinding(value8, Reflect.apply(severityLevelFromString, value, [env0_0]));
|
|
break reducibleJoin4;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function makeReplayDebugLoggerException_11978(a0) { // fn#11978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:87912, owner: makeReplayDebugLogger.exception, offset: 0x00dbe287, size: 261 bytes, params: 2, frame: 18
|
|
var r1;
|
|
var value4;
|
|
var value7;
|
|
var value8;
|
|
var error;
|
|
var binding;
|
|
var apply;
|
|
let value = arguments.length;
|
|
const Array = global.Array;
|
|
const value2 = 1;
|
|
reducibleJoin2: while (true) {
|
|
if (value > value2) {
|
|
value4 = value - value2;
|
|
r1 = value4;
|
|
break reducibleJoin2;
|
|
}
|
|
r1 = 0;
|
|
break reducibleJoin2;
|
|
}
|
|
const array = new Array();
|
|
if (value2 < value) {
|
|
r1 = value2;
|
|
reducibleLoop3: while (true) {
|
|
value7 = r1 - value2;
|
|
array[value7] = arguments[r1];
|
|
value8 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (value8 < value) {
|
|
r1 = value8;
|
|
continue reducibleLoop3;
|
|
}
|
|
break reducibleLoop3;
|
|
}
|
|
}
|
|
const length = array.length;
|
|
reducibleJoin6: while (true) {
|
|
if (length) {
|
|
value = environment;
|
|
error = env0_2.error;
|
|
r1 = error;
|
|
break reducibleJoin6;
|
|
}
|
|
r1 = length;
|
|
break reducibleJoin6;
|
|
}
|
|
reducibleJoin8: while (true) {
|
|
if (r1) {
|
|
value = environment;
|
|
binding = env0_2;
|
|
error = binding.error;
|
|
apply = error.apply;
|
|
Reflect.apply(apply, error, [binding, array]);
|
|
break reducibleJoin8;
|
|
}
|
|
break reducibleJoin8;
|
|
}
|
|
value = environment.__proto__;
|
|
(require(826) /* metro dependency 826 */).debug.error(env1_71, a0);
|
|
if (env0_0) {
|
|
(require(826) /* metro dependency 826 */).captureException(a0, {mechanism: {'handled': true,
|
|
'type': 'auto.function.replay.debug'}});
|
|
} else {
|
|
reducibleJoin12: while (true) {
|
|
if (env0_1) {
|
|
_addBreadcrumb(a0, 'error');
|
|
break reducibleJoin12;
|
|
}
|
|
break reducibleJoin12;
|
|
}
|
|
}
|
|
}
|
|
|
|
function makeReplayDebugLoggerInfoTick_11979() { // fn#11979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:88200, owner: makeReplayDebugLogger.infoTick, offset: 0x00dbe38c, size: 167 bytes, params: 1, frame: 19
|
|
var environment;
|
|
var r4;
|
|
var value5;
|
|
var setTimeout;
|
|
let value = arguments.length;
|
|
const Array = global.Array;
|
|
const array = new Array(value);
|
|
const value4 = 0;
|
|
if (value4 < value) {
|
|
r4 = value4;
|
|
reducibleLoop1: while (true) {
|
|
array[r4] = arguments[r4];
|
|
value5 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
if (value5 < value) {
|
|
r4 = value5;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
}
|
|
value = environment.__proto__;
|
|
const debug = (Module00826Module).debug;
|
|
const log = debug.log;
|
|
const apply = log.apply;
|
|
const items2 = [env1_71];
|
|
Reflect.apply(apply, log, [debug, items2.concat(array)]);
|
|
reducibleJoin4: while (true) {
|
|
if (env0_1) {
|
|
setTimeout = global.setTimeout;
|
|
setTimeout(_fun11980, value4);
|
|
break reducibleJoin4;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
function _fun11980() { // fn#11980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:88346, offset: 0x00dbe433, size: 29 bytes, params: 1, frame: 11
|
|
_addBreadcrumb(env0_0[0]);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11981(a0) { // fn#11981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:88404, offset: 0x00dbe450, size: 25 bytes, params: 2, frame: 3
|
|
env0_2[a0] = function() {
|
|
};
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11983(a0) { // fn#11983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:88445, offset: 0x00dbe469, size: 40 bytes, params: 2, frame: 14
|
|
const EventBufferSizeExceededError2 = EventBufferSizeExceededError;
|
|
InheritsModule(EventBufferSizeExceededError2, a0);
|
|
return CreateClassModule(EventBufferSizeExceededError2);
|
|
function EventBufferSizeExceededError() { // fn#11984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:88470, offset: 0x00dbe491, size: 48 bytes, params: 1, frame: 15
|
|
env1_8(this, EventBufferSizeExceededError);
|
|
return _callSuper_11411(this, EventBufferSizeExceededError, ['Event buffer exceeded maximum size of 20000000.']);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11985() { // fn#11985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:88739, offset: 0x00dbe4c1, size: 211 bytes, params: 1, frame: 17
|
|
const EventBufferArray2 = EventBufferArray;
|
|
let env0_0 = env0_2(_fun11991);
|
|
return CreateClassModule(EventBufferArray2, [{key: 'hasEvents', get: function() {
|
|
return this.events.length > 0;
|
|
}}, {key: 'type', get: function() {
|
|
return 'sync';
|
|
}}, {key: 'destroy', value: function() {
|
|
this.events = [];
|
|
}}, {key: 'addEvent', value: value_11992}, {key: 'finish', value: function() {
|
|
var env0_0 = this;
|
|
var Promise = global.Promise;
|
|
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
var value2 = new Promise(_fun11994);
|
|
return value2 instanceof Object ? value2 : value;
|
|
}}, {key: 'clear', value: function() {
|
|
this.events = [];
|
|
this._totalSize = 0;
|
|
this.hasCheckout = false;
|
|
}}, {key: 'getEarliestTimestamp', value: value_11996}]);
|
|
function EventBufferArray() { // fn#11986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:88773, offset: 0x00dbe594, size: 59 bytes, params: 1, frame: 13
|
|
env1_8(this, EventBufferArray);
|
|
this.events = [];
|
|
this._totalSize = 0;
|
|
this.hasCheckout = false;
|
|
this.waitForCheckout = false;
|
|
}
|
|
|
|
function* _fun11991(a0) { // fn#11991, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:89103, offset: 0x00dbe605, size: 120 bytes, params: 2, frame: 14
|
|
if (true) {
|
|
var JSON = global.JSON;
|
|
var length = JSON.stringify(a0).length;
|
|
var _totalSize = this._totalSize;
|
|
this._totalSize = _totalSize + length;
|
|
_totalSize = this._totalSize;
|
|
value = environment.__proto__.__proto__;
|
|
if (_totalSize > env2_14) {
|
|
throw new env2_73();
|
|
}
|
|
this.events.push(a0);
|
|
}
|
|
}
|
|
|
|
function value_11992(a0) { // fn#11992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:89223, offset: 0x00c3945f, size: 30 bytes, params: 2, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
function value_11993() { // fn#11993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:89298, offset: 0x00dbe67d, size: 44 bytes, params: 1, frame: 11
|
|
const Promise = global.Promise;
|
|
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
const promise = new Promise(_fun11994);
|
|
return promise instanceof Object ? promise : value;
|
|
function _fun11994(a0) { // fn#11994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:89347, offset: 0x00dbe6a9, size: 54 bytes, params: 2, frame: 11
|
|
const binding = env0_0;
|
|
const events = binding.events;
|
|
binding.clear();
|
|
const JSON = global.JSON;
|
|
a0(JSON.stringify(events));
|
|
}
|
|
|
|
}
|
|
|
|
function value_11996() { // fn#11996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:89535, offset: 0x00dbe700, size: 63 bytes, params: 1, frame: 12
|
|
var environment;
|
|
var r0;
|
|
let value = this.events.map(function(a0) {
|
|
return a0.timestamp;
|
|
});
|
|
value = value.sort();
|
|
const property = value[0];
|
|
value = null;
|
|
if (property) {
|
|
value = environment.__proto__;
|
|
value = timestampToMs(property);
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11998() { // fn#11998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:89681, offset: 0x00dbe74a, size: 126 bytes, params: 1, frame: 15
|
|
return CreateClassModule(WorkerHandler, [{key: 'ensureReady', value: function() {
|
|
var env0_0 = this;
|
|
if (!this._ensureReadyPromise) {
|
|
this._ensureReadyPromise = new global.Promise(_fun12001);
|
|
}
|
|
return this._ensureReadyPromise;
|
|
}}, {key: 'destroy', value: value_12004}, {key: 'postMessage', value: function(a0, a1) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
var env0_2 = this;
|
|
var env0_3 = this._getAndIncrementId();
|
|
var Promise = global.Promise;
|
|
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
var value2 = new Promise(_fun12006);
|
|
return value2 instanceof Object ? value2 : value;
|
|
}}, {key: '_getAndIncrementId', value: function() {
|
|
var _id = this._id;
|
|
var value = typeof _id === 'bigint' ? _id : +_id;
|
|
this._id = typeof value === 'bigint' ? value + 1n : +value + 1;
|
|
return value;
|
|
}}]);
|
|
function WorkerHandler(a0) { // fn#11999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:89715, offset: 0x00dbe7c8, size: 44 bytes, params: 2, frame: 13
|
|
env1_8(this, WorkerHandler);
|
|
this._worker = a0;
|
|
this._id = 0;
|
|
}
|
|
|
|
function value_12000() { // fn#12000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:89817, offset: 0x00dbe7f4, size: 65 bytes, params: 1, frame: 12
|
|
if (!this._ensureReadyPromise) {
|
|
this._ensureReadyPromise = new global.Promise(_fun12001);
|
|
}
|
|
return this._ensureReadyPromise;
|
|
function _fun12001(a0, a1) { // fn#12001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:89923, offset: 0x00dbe835, size: 99 bytes, params: 3, frame: 18
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const binding = env0_0;
|
|
binding._worker.addEventListener('message', _fun12002, {once: true});
|
|
binding._worker.addEventListener('error', function(a0) {
|
|
require(a0);
|
|
}, {once: true});
|
|
function _fun12002({data}) { // fn#12002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:89975, offset: 0x00dbe898, size: 46 bytes, params: 2, frame: 10
|
|
if (data.success) {
|
|
env0_0();
|
|
} else {
|
|
require();
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function value_12004() { // fn#12004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:90141, offset: 0x00dbe8c6, size: 54 bytes, params: 1, frame: 11
|
|
if (env1_69) {
|
|
env1_72.log('Destroying compression worker');
|
|
}
|
|
this._worker.terminate();
|
|
}
|
|
|
|
function value_12005(a0, a1) { // fn#12005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:90256, offset: 0x00dbe8fc, size: 74 bytes, params: 3, frame: 11
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_3 = this._getAndIncrementId();
|
|
const Promise = global.Promise;
|
|
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
const promise = new Promise(_fun12006);
|
|
return promise instanceof Object ? promise : value;
|
|
function _fun12006(a0, a1) { // fn#12006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:90341, offset: 0x00dbe946, size: 103 bytes, params: 3, frame: 15
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const listener2 = listener;
|
|
const binding = env0_2;
|
|
binding._worker.addEventListener('message', listener2);
|
|
binding._worker.postMessage({id: env0_3, method: env0_0, arg: require});
|
|
function listener({data}) { // fn#12007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:90361, offset: 0x00dbe9ad, size: 193 bytes, params: 2, frame: 15
|
|
var binding;
|
|
const method = data.method;
|
|
const value = environment.__proto__;
|
|
if (method === env1_0) {
|
|
if (data.id !== env1_3) {
|
|
return undefined;
|
|
}
|
|
var _worker = env1_2._worker;
|
|
_worker.removeEventListener('message', listener);
|
|
if (data.success) {
|
|
env0_0(data.response);
|
|
return undefined;
|
|
}
|
|
if (env3_69) {
|
|
binding = env3_72;
|
|
binding.error('Error in compression worker: ', data.response);
|
|
}
|
|
var Error = global.Error;
|
|
require(new Error('Error in compression worker'));
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun12009() { // fn#12009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:90788, offset: 0x00dbea85, size: 284 bytes, params: 1, frame: 17
|
|
const EventBufferCompressionWorker2 = EventBufferCompressionWorker;
|
|
const items2 = [{key: 'hasEvents', get: function() {
|
|
return !!this._earliestTimestamp;
|
|
}}];
|
|
items2[1] = {key: 'type', get: function() {
|
|
return 'worker';
|
|
}};
|
|
items2[2] = {key: 'ensureReady', value: function() {
|
|
return this._worker.ensureReady();
|
|
}};
|
|
items2[3] = {key: 'destroy', value: function() {
|
|
this._worker.destroy();
|
|
}};
|
|
items2[4] = {key: 'addEvent', value: value_12015};
|
|
items2[5] = {key: 'finish', value: function() {
|
|
return this._finishRequest();
|
|
}};
|
|
items2[6] = {key: 'clear', value: function() {
|
|
this._earliestTimestamp = null;
|
|
this._totalSize = 0;
|
|
this.hasCheckout = false;
|
|
this._worker.postMessage('clear').then(null, _fun12018);
|
|
}};
|
|
items2[7] = {key: 'getEarliestTimestamp', value: function() {
|
|
return this._earliestTimestamp;
|
|
}};
|
|
items2[8] = {key: '_sendEventToWorker', value: function(a0) {
|
|
return this._worker.postMessage('addEvent', a0);
|
|
}};
|
|
const env0_0 = env0_2(_fun12022);
|
|
items2[9] = {key: '_finishRequest', value: value_12023};
|
|
return CreateClassModule(EventBufferCompressionWorker2, items2);
|
|
function EventBufferCompressionWorker(a0) { // fn#12010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:90822, offset: 0x00dbeba1, size: 90 bytes, params: 2, frame: 14
|
|
const value = environment.__proto__;
|
|
env1_8(this, EventBufferCompressionWorker);
|
|
this._worker = new env1_75(a0);
|
|
this._earliestTimestamp = null;
|
|
this._totalSize = 0;
|
|
this.hasCheckout = false;
|
|
this.waitForCheckout = false;
|
|
}
|
|
|
|
function value_12015(a0) { // fn#12015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:91306, offset: 0x00dbec3e, size: 169 bytes, params: 2, frame: 14
|
|
var r0;
|
|
var Promise;
|
|
var reject;
|
|
var value6;
|
|
const value = environment.__proto__;
|
|
const value2 = timestampToMs(a0.timestamp);
|
|
const _earliestTimestamp = this._earliestTimestamp;
|
|
if (_earliestTimestamp ? value2 < this._earliestTimestamp : !_earliestTimestamp) {
|
|
this._earliestTimestamp = value2;
|
|
}
|
|
const JSON = global.JSON;
|
|
const value5 = JSON.stringify(a0);
|
|
this._totalSize = this._totalSize + value5.length;
|
|
if (this._totalSize > env1_14) {
|
|
Promise = global.Promise;
|
|
reject = Promise.reject;
|
|
value6 = new env1_73();
|
|
value6 = Reflect.apply(reject, Promise, [value6]);
|
|
r0 = value6;
|
|
} else {
|
|
r0 = this._sendEventToWorker(value5);
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function value_12017() { // fn#12017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:91658, offset: 0x00dbecf8, size: 70 bytes, params: 1, frame: 13
|
|
this._earliestTimestamp = null;
|
|
this._totalSize = 0;
|
|
this.hasCheckout = false;
|
|
this._worker.postMessage('clear').then(null, _fun12018);
|
|
function _fun12018(a0) { // fn#12018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:91787, offset: 0x00dbed3e, size: 40 bytes, params: 2, frame: 14
|
|
if (env2_69) {
|
|
env2_72.exception(a0, 'Sending "clear" message to worker failed', a0);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function value_12023() { // fn#12023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:92231, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun12024() { // fn#12024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:92305, offset: 0x00dbedda, size: 386 bytes, params: 1, frame: 18
|
|
const EventBufferProxy2 = EventBufferProxy;
|
|
const items2 = [{key: 'waitForCheckout', get: function() {
|
|
return this._used.waitForCheckout;
|
|
}, set: function(a0) {
|
|
this._used.waitForCheckout = a0;
|
|
}}];
|
|
items2[1] = {key: 'type', get: function() {
|
|
return this._used.type;
|
|
}};
|
|
items2[2] = {key: 'hasEvents', get: function() {
|
|
return this._used.hasEvents;
|
|
}};
|
|
items2[3] = {key: 'hasCheckout', get: function() {
|
|
return this._used.hasCheckout;
|
|
}, set: function(a0) {
|
|
this._used.hasCheckout = a0;
|
|
}};
|
|
items2[4] = {key: 'destroy', value: function() {
|
|
this._fallback.destroy();
|
|
this._compression.destroy();
|
|
}};
|
|
items2[5] = {key: 'clear', value: function() {
|
|
return this._used.clear();
|
|
}};
|
|
items2[6] = {key: 'getEarliestTimestamp', value: function() {
|
|
return this._used.getEarliestTimestamp();
|
|
}};
|
|
items2[7] = {key: 'addEvent', value: function(a0) {
|
|
return this._used.addEvent(a0);
|
|
}};
|
|
const env0_2Binding = env0_2(_fun12037);
|
|
items2[8] = {key: 'finish', value: value_12038};
|
|
items2[9] = {key: 'ensureWorkerIsLoaded', value: function() {
|
|
return this._ensureWorkerIsLoadedPromise;
|
|
}};
|
|
const env0_1 = env0_2Binding(_fun12041);
|
|
items2[10] = {key: '_ensureWorkerIsLoaded', value: value_12042};
|
|
const env0_0 = env0_2Binding(_fun12044);
|
|
items2[11] = {key: '_switchToCompressionWorker', value: value_12045};
|
|
return CreateClassModule(EventBufferProxy2, items2);
|
|
function EventBufferProxy(a0) { // fn#12025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:92339, offset: 0x00dbef5c, size: 120 bytes, params: 2, frame: 14
|
|
const value = environment.__proto__;
|
|
let binding = env1_8;
|
|
binding(this, EventBufferProxy);
|
|
binding = env1_74;
|
|
const value3 = Object.create(binding.prototype, {constructor: {value: binding}});
|
|
const binding2 = new binding();
|
|
this._fallback = binding2 instanceof Object ? binding2 : value3;
|
|
this._compression = new env1_76(a0);
|
|
this._used = this._fallback;
|
|
this._ensureWorkerIsLoadedPromise = this._ensureWorkerIsLoaded();
|
|
}
|
|
|
|
function value_12038() { // fn#12038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:93346, offset: 0x00d6b059, size: 30 bytes, params: 1, frame: 13
|
|
return env0_2.apply(this, arguments);
|
|
}
|
|
|
|
function* _fun12041() { // fn#12041, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:93548, offset: 0x00dbf103, size: 117 bytes, params: 1, frame: 15
|
|
var _compression;
|
|
var ensureReady;
|
|
var value3;
|
|
var error;
|
|
var binding;
|
|
let value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
try {
|
|
_compression = this._compression;
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to load the compression worker, falling back to simple buffer');
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
ensureReady = _compression.ensureReady;
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to load the compression worker, falling back to simple buffer');
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
value = Reflect.apply(ensureReady, _compression, []);
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to load the compression worker, falling back to simple buffer');
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
yield value;
|
|
try {
|
|
value = undefined;
|
|
value3 = false;
|
|
} catch (error) {
|
|
value = environment.__proto__.__proto__;
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
binding.exception(error, 'Failed to load the compression worker, falling back to simple buffer');
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
if (value3) {
|
|
return value;
|
|
}
|
|
yield this._switchToCompressionWorker();
|
|
if (false) {
|
|
}
|
|
}
|
|
|
|
function value_12042() { // fn#12042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:93758, offset: 0x00c3b2ba, size: 30 bytes, params: 1, frame: 13
|
|
return env0_1.apply(this, arguments);
|
|
}
|
|
|
|
function* _fun12044() { // fn#12044, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:93871, offset: 0x00dbf181, size: 234 bytes, params: 1, frame: 23
|
|
var r8;
|
|
var value;
|
|
var value2;
|
|
var _fallback;
|
|
var events;
|
|
var hasCheckout;
|
|
var waitForCheckout;
|
|
var items2;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var push;
|
|
var _compression;
|
|
var addEvent;
|
|
var error;
|
|
var Promise;
|
|
var all;
|
|
var value3;
|
|
var clear;
|
|
var binding;
|
|
var exception;
|
|
exceptionLanding9: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
_fallback = this._fallback;
|
|
events = _fallback.events;
|
|
hasCheckout = _fallback.hasCheckout;
|
|
waitForCheckout = _fallback.waitForCheckout;
|
|
items2 = [];
|
|
iterator = events[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
r8 = iterator;
|
|
reducibleLoop2: while (true) {
|
|
item2 = Reflect.apply(iterator2, r8, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r8;
|
|
if (item2 === undefined) {
|
|
break reducibleLoop2;
|
|
}
|
|
try {
|
|
push = items2.push;
|
|
} catch (error) {
|
|
break exceptionLanding9;
|
|
}
|
|
try {
|
|
_compression = this._compression;
|
|
} catch (error) {
|
|
break exceptionLanding9;
|
|
}
|
|
try {
|
|
addEvent = _compression.addEvent;
|
|
} catch (error) {
|
|
break exceptionLanding9;
|
|
}
|
|
try {
|
|
value = Reflect.apply(addEvent, _compression, [item]);
|
|
} catch (error) {
|
|
break exceptionLanding9;
|
|
}
|
|
try {
|
|
Reflect.apply(push, items2, [value]);
|
|
} catch (error) {
|
|
break exceptionLanding9;
|
|
}
|
|
r8 = item2;
|
|
continue reducibleLoop2;
|
|
}
|
|
_compression = this._compression;
|
|
_compression.hasCheckout = hasCheckout;
|
|
_compression = this._compression;
|
|
_compression.waitForCheckout = waitForCheckout;
|
|
_compression = this._compression;
|
|
this._used = _compression;
|
|
reducibleJoin13: while (true) {
|
|
reduciblePort24: while (true) {
|
|
exceptionLanding22: while (true) {
|
|
try {
|
|
Promise = global.Promise;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
break reducibleJoin13;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
reducibleJoin24: while (true) {
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
exception = binding.exception;
|
|
Reflect.apply(exception, binding, [error, 'Failed to add events when switching buffers.']);
|
|
break reducibleJoin24;
|
|
}
|
|
break reducibleJoin24;
|
|
}
|
|
break reduciblePort24;
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
all = Promise.all;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
try {
|
|
value = Reflect.apply(all, Promise, [items2]);
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
yield value;
|
|
try {
|
|
value = undefined;
|
|
value3 = false;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
if (value3) {
|
|
return value;
|
|
}
|
|
try {
|
|
_fallback = this._fallback;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
try {
|
|
clear = _fallback.clear;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
try {
|
|
Reflect.apply(clear, _fallback, []);
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
return undefined;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
|
|
function value_12045() { // fn#12045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:94234, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun12046(a0) { // fn#12046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:128179, offset: 0x00dbf26b, size: 40 bytes, params: 2, frame: 14
|
|
const TransportStatusCodeError2 = TransportStatusCodeError;
|
|
InheritsModule(TransportStatusCodeError2, a0);
|
|
return CreateClassModule(TransportStatusCodeError2);
|
|
function TransportStatusCodeError(a0) { // fn#12047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:128204, offset: 0x00dbf293, size: 73 bytes, params: 2, frame: 17
|
|
const value = environment.__proto__;
|
|
env1_8(this, TransportStatusCodeError);
|
|
return _callSuper_11411(this, TransportStatusCodeError, ['Transport returned status code ' + a0]);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun12048(a0) { // fn#12048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:128442, offset: 0x00dbf2dc, size: 40 bytes, params: 2, frame: 14
|
|
const RateLimitError2 = RateLimitError;
|
|
InheritsModule(RateLimitError2, a0);
|
|
return CreateClassModule(RateLimitError2);
|
|
function RateLimitError(a0) { // fn#12049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:128467, offset: 0x00dbf304, size: 59 bytes, params: 2, frame: 15
|
|
let value = environment.__proto__;
|
|
env1_8(this, RateLimitError);
|
|
value = _callSuper_11411(this, RateLimitError, ['Rate limit hit']);
|
|
value.rateLimits = a0;
|
|
return value;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun12050() { // fn#12050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:129812, offset: 0x00dbf33f, size: 1204 bytes, params: 1, frame: 18
|
|
const ReplayContainer2 = ReplayContainer;
|
|
const items2 = [{key: 'getContext', value: function() {
|
|
return this._context;
|
|
}}];
|
|
items2[1] = {key: 'isEnabled', value: function() {
|
|
return this._isEnabled;
|
|
}};
|
|
items2[2] = {key: 'isPaused', value: function() {
|
|
return this._isPaused;
|
|
}};
|
|
items2[3] = {key: 'isRecordingCanvas', value: function() {
|
|
var Boolean = global.Boolean;
|
|
return Boolean(this._canvas);
|
|
}};
|
|
items2[4] = {key: 'getOptions', value: function() {
|
|
return this._options;
|
|
}};
|
|
items2[5] = {key: 'handleException', value: value_12063};
|
|
items2[6] = {key: 'initializeSampling', value: value_12064};
|
|
items2[7] = {key: 'start', value: value_12065};
|
|
items2[8] = {key: 'startBuffering', value: value_12066};
|
|
items2[9] = {key: 'startRecording', value: value_12067};
|
|
items2[10] = {key: 'stopRecording', value: function() {
|
|
var _stopRecording;
|
|
var error;
|
|
try {
|
|
_stopRecording = this._stopRecording;
|
|
if (_stopRecording) {
|
|
this._stopRecording();
|
|
this._stopRecording = undefined;
|
|
}
|
|
} catch (error) {
|
|
this.handleException(error);
|
|
return false;
|
|
}
|
|
return true;
|
|
}};
|
|
const env0_4 = env0_2Binding(_fun12070);
|
|
items2[11] = {key: 'stop', value: value_12071};
|
|
items2[12] = {key: 'pause', value: value_12072};
|
|
items2[13] = {key: 'resume', value: value_12073};
|
|
const env0_3 = env0_2Binding(_fun12075);
|
|
items2[14] = {key: 'sendBufferedReplayOrFlush', value: value_12076};
|
|
items2[15] = {key: 'addUpdate', value: function(a0) {
|
|
if (this.recordingMode !== 'buffer' && this._isEnabled && a0() !== true) {
|
|
this._debouncedFlush();
|
|
}
|
|
}};
|
|
items2[16] = {key: 'triggerUserActivity', value: function() {
|
|
this._updateUserActivity();
|
|
if (this._stopRecording) {
|
|
this.checkAndHandleExpiredSession();
|
|
this._updateSessionActivity();
|
|
} else if (this._checkSession()) {
|
|
this.resume();
|
|
return undefined;
|
|
}
|
|
}};
|
|
items2[17] = {key: 'updateUserActivity', value: function() {
|
|
this._updateUserActivity();
|
|
this._updateSessionActivity();
|
|
}};
|
|
items2[18] = {key: 'conditionalFlush', value: function() {
|
|
return this.recordingMode === 'buffer' ? global.Promise.resolve() : this.flushImmediate();
|
|
}};
|
|
items2[19] = {key: 'flush', value: function() {
|
|
return this._debouncedFlush();
|
|
}};
|
|
items2[20] = {key: 'flushImmediate', value: function() {
|
|
this._debouncedFlush();
|
|
return this._debouncedFlush.flush();
|
|
}};
|
|
items2[21] = {key: 'cancelFlush', value: function() {
|
|
this._debouncedFlush.cancel();
|
|
}};
|
|
items2[22] = {key: 'getSessionId', value: function(a0) {
|
|
var property;
|
|
var value;
|
|
if (a0) {
|
|
property = this.session;
|
|
value = undefined;
|
|
if ((property == null ? value : property.sampled) !== false) {
|
|
return this.session?.id;
|
|
}
|
|
return value;
|
|
}
|
|
return this.session?.id;
|
|
}};
|
|
items2[23] = {key: 'checkAndHandleExpiredSession', value: value_12085};
|
|
items2[24] = {key: 'setInitialState', value: value_12086};
|
|
items2[25] = {key: 'throttledAddEvent', value: value_12087};
|
|
items2[26] = {key: 'getCurrentRoute', value: value_12089};
|
|
items2[27] = {key: '_initializeRecording', value: value_12090};
|
|
items2[28] = {key: '_initializeSessionForSampling', value: value_12091};
|
|
items2[29] = {key: '_checkSession', value: value_12092};
|
|
var env0_2Binding = env0_2(_fun12094);
|
|
items2[30] = {key: '_refreshSession', value: value_12095};
|
|
items2[31] = {key: '_addListeners', value: value_12096};
|
|
items2[32] = {key: '_removeListeners', value: value_12113};
|
|
items2[33] = {key: '_doChangeToBackgroundTasks', value: value_12114};
|
|
items2[34] = {key: '_doChangeToForegroundTasks', value: value_12115};
|
|
items2[35] = {key: '_updateUserActivity', value: function() {
|
|
this._lastActivity = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.Date.now();
|
|
}};
|
|
items2[36] = {key: '_updateSessionActivity', value: function() {
|
|
if (this.session) {
|
|
this.session.lastActivity = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : global.Date.now();
|
|
this._maybeSaveSession();
|
|
}
|
|
}};
|
|
items2[37] = {key: '_createCustomBreadcrumb', value: function(a0) {
|
|
var env0_0 = a0;
|
|
var env0_1 = this;
|
|
this.addUpdate(_fun12119);
|
|
}};
|
|
items2[38] = {key: '_addPerformanceEntries', value: value_12120};
|
|
items2[39] = {key: '_clearContext', value: function() {
|
|
this._context.errorIds.clear();
|
|
this._context.traceIds.clear();
|
|
this._context.urls = [];
|
|
}};
|
|
items2[40] = {key: '_updateInitialTimestampFromEventBuffer', value: function() {
|
|
var value;
|
|
var session = this.session;
|
|
var eventBuffer = this.eventBuffer;
|
|
if (session) {
|
|
if (eventBuffer) {
|
|
if (!this._requiresManualStart) {
|
|
if (!session.segmentId) {
|
|
value = eventBuffer.getEarliestTimestamp();
|
|
if (value && value < this._context.initialTimestamp) {
|
|
this._context.initialTimestamp = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}};
|
|
items2[41] = {key: '_popEventContext', value: value_12124};
|
|
let env0_1 = env0_2Binding(_fun12126);
|
|
items2[42] = {key: '_runFlush', value: value_12129};
|
|
let env0_0 = env0_2Binding(_fun12131);
|
|
items2[43] = {key: '_flush', value: value_12132};
|
|
items2[44] = {key: '_maybeSaveSession', value: value_12133};
|
|
items2[45] = {key: '_onMutationHandler', value: value_12134};
|
|
return CreateClassModule(ReplayContainer2, items2);
|
|
function ReplayContainer({options, recordingOptions}) { // fn#12051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:129846, offset: 0x00dbf7f3, size: 663 bytes, params: 2, frame: 27
|
|
var r7;
|
|
var value12;
|
|
var binding2;
|
|
var _experiments;
|
|
let binding = env1_8;
|
|
binding(this, ReplayContainer);
|
|
this.eventBuffer = null;
|
|
this.performanceEntries = [];
|
|
this.replayPerformanceEntries = [];
|
|
this.recordingMode = 'session';
|
|
this.timeouts = {'sessionIdlePause': 300000, 'sessionIdleExpire': 900000};
|
|
let Date = global.Date;
|
|
this._lastActivity = Date.now();
|
|
this._isEnabled = false;
|
|
this._isPaused = false;
|
|
this._requiresManualStart = false;
|
|
this._hasInitializedCoreListeners = false;
|
|
let object = {};
|
|
let Set = global.Set;
|
|
const value4 = Object.create(Set.prototype, {constructor: {value: Set}});
|
|
let set = new Set();
|
|
object.errorIds = set instanceof Object ? set : value4;
|
|
Set = global.Set;
|
|
const value6 = Object.create(Set.prototype, {constructor: {value: Set}});
|
|
set = new Set();
|
|
object.traceIds = set instanceof Object ? set : value6;
|
|
object.urls = [];
|
|
Date = global.Date;
|
|
object.initialTimestamp = Date.now();
|
|
const value8 = '';
|
|
object.initialUrl = value8;
|
|
this._context = object;
|
|
this._recordingOptions = recordingOptions;
|
|
this._options = options;
|
|
const flushMinDelay = this._options.flushMinDelay;
|
|
object = {};
|
|
object.maxWait = this._options.flushMaxDelay;
|
|
const debounce = Module00826Module.debounce;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const object2 = {};
|
|
object2.setTimeoutImpl = (require(1041) /* metro dependency 1041 */).setTimeout;
|
|
this._debouncedFlush = Reflect.apply(debounce, Module00826Module, [_fun12052, flushMinDelay, Reflect.apply(assign, Object,
|
|
[{}, object, object2])]);
|
|
this._throttledAddEvent = throttle_11785(_fun12053, 300, 5);
|
|
const {slowClickTimeout, slowClickIgnoreSelectors} = this.getOptions();
|
|
if (slowClickTimeout) {
|
|
object = {};
|
|
object.threshold = global.Math.min(3000, slowClickTimeout);
|
|
object.timeout = slowClickTimeout;
|
|
object.scrollTimeout = 300;
|
|
object.ignoreSelector = slowClickIgnoreSelectors ? slowClickIgnoreSelectors.join(',') : value8;
|
|
r7 = object;
|
|
} else {
|
|
r7 = undefined;
|
|
}
|
|
if (r7) {
|
|
binding = env1_63;
|
|
value12 = Object.create(binding.prototype, {constructor: {value: binding}});
|
|
binding2 = new binding(this);
|
|
this.clickDetector = binding2 instanceof Object ? binding2 : value12;
|
|
}
|
|
if (env1_69) {
|
|
_experiments = options._experiments;
|
|
env1_72.setConfig({captureExceptions: !!_experiments.captureExceptions,
|
|
traceInternals: !!_experiments.traceInternals});
|
|
}
|
|
this._handleVisibilityChange = _handleVisibilityChange;
|
|
this._handleWindowBlur = _handleWindowBlur;
|
|
this._handleWindowFocus = _handleWindowFocus;
|
|
this._handleKeyboardEvent = _handleKeyboardEvent;
|
|
function _fun12052() { // fn#12052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:130520, offset: 0x00dbfa8a, size: 19 bytes, params: 1, frame: 9
|
|
return env0_0._flush();
|
|
}
|
|
|
|
function _fun12053(a0, a1) { // fn#12053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:130652, offset: 0x00dbfa9d, size: 66 bytes, params: 3, frame: 17
|
|
const binding = env0_0;
|
|
const value = environment.__proto__.__proto__;
|
|
return shouldAddEvent(binding, a0) ? _addEvent(binding, a0, a1) : global.Promise.resolve(null);
|
|
}
|
|
|
|
function _handleVisibilityChange() { // fn#12054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:131140, owner: ReplayContainer._handleVisibilityChange, offset: 0x00dbfadf, size: 89 bytes, params: 1, frame: 11
|
|
const GLOBAL_OBJ = (Module00826Module).GLOBAL_OBJ;
|
|
if (GLOBAL_OBJ.document.visibilityState === 'visible') {
|
|
env0_0._doChangeToForegroundTasks();
|
|
} else {
|
|
env0_0._doChangeToBackgroundTasks();
|
|
}
|
|
}
|
|
|
|
function _handleWindowBlur() { // fn#12055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:131293, owner: ReplayContainer._handleWindowBlur, offset: 0x00dbfb38, size: 46 bytes, params: 1, frame: 12
|
|
const value = environment.__proto__.__proto__;
|
|
env0_0._doChangeToBackgroundTasks(createBreadcrumb({category: 'ui.blur'}));
|
|
}
|
|
|
|
function _handleWindowFocus() { // fn#12056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:131406, owner: ReplayContainer._handleWindowFocus, offset: 0x00dbfb66, size: 46 bytes, params: 1, frame: 12
|
|
const value = environment.__proto__.__proto__;
|
|
env0_0._doChangeToForegroundTasks(createBreadcrumb({category: 'ui.focus'}));
|
|
}
|
|
|
|
function _handleKeyboardEvent(a0) { // fn#12057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:131522, owner: ReplayContainer._handleKeyboardEvent, offset: 0x00dbfb94, size: 27 bytes, params: 2, frame: 13
|
|
handleKeyboardEvent(env0_0, a0);
|
|
}
|
|
|
|
}
|
|
|
|
function value_12063(a0) { // fn#12063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:131956, offset: 0x00dbfbea, size: 67 bytes, params: 2, frame: 12
|
|
if (env1_69) {
|
|
env1_72.exception(a0);
|
|
}
|
|
if (this._options.onError) {
|
|
this._options.onError(a0);
|
|
}
|
|
}
|
|
|
|
function value_12064(a0) { // fn#12064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:132086, offset: 0x00dbfc2d, size: 290 bytes, params: 2, frame: 16
|
|
var binding;
|
|
var sampled;
|
|
var value2;
|
|
const {errorSampleRate, sessionSampleRate} = this._options;
|
|
let value = errorSampleRate <= 0;
|
|
const r0 = value && sessionSampleRate <= 0;
|
|
this._requiresManualStart = r0;
|
|
if (!r0) {
|
|
this._initializeSessionForSampling(a0);
|
|
if (this.session) {
|
|
sampled = this.session.sampled;
|
|
if (sampled !== false) {
|
|
sampled = this.session.sampled;
|
|
value = 'session';
|
|
value2 = 'buffer';
|
|
this.recordingMode = value2 !== sampled || this.session.segmentId !== 0 ? value : value2;
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.infoTick('Starting replay in ' + this.recordingMode + ' mode');
|
|
}
|
|
this._initializeRecording();
|
|
}
|
|
} else {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
binding = env1_72;
|
|
binding.exception(new global.Error('Unable to initialize and create session'));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function value_12065() { // fn#12065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:132588, offset: 0x00dbfd4f, size: 268 bytes, params: 1, frame: 14
|
|
var value;
|
|
var loadOrCreateSessionBinding;
|
|
var object;
|
|
var _options;
|
|
if (this._isEnabled) {
|
|
if (this.recordingMode === 'session') {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
env1_72.log('Recording is already in progress');
|
|
}
|
|
} else if (this._isEnabled) {
|
|
if (this.recordingMode === 'buffer') {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
env1_72.log('Buffering is in progress, call `flush()` to save the replay');
|
|
}
|
|
} else {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
env1_72.infoTick('Starting replay in session mode');
|
|
}
|
|
this._updateUserActivity();
|
|
loadOrCreateSessionBinding = loadOrCreateSession;
|
|
object = {};
|
|
_options = this._options;
|
|
object.maxReplayDuration = _options.maxReplayDuration;
|
|
object.sessionIdleExpire = this.timeouts.sessionIdleExpire;
|
|
_options = this._options;
|
|
this.session = loadOrCreateSessionBinding(object, {'stickySession': null, 'sessionSampleRate': 1,
|
|
'allowBuffering': false, stickySession: _options.stickySession});
|
|
this.recordingMode = 'session';
|
|
this._initializeRecording();
|
|
}
|
|
} else {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
env1_72.infoTick('Starting replay in session mode');
|
|
}
|
|
this._updateUserActivity();
|
|
loadOrCreateSessionBinding = loadOrCreateSession;
|
|
object = {};
|
|
_options = this._options;
|
|
object.maxReplayDuration = _options.maxReplayDuration;
|
|
object.sessionIdleExpire = this.timeouts.sessionIdleExpire;
|
|
_options = this._options;
|
|
this.session = loadOrCreateSessionBinding(object, {'stickySession': null, 'sessionSampleRate': 1,
|
|
'allowBuffering': false, stickySession: _options.stickySession});
|
|
this.recordingMode = 'session';
|
|
this._initializeRecording();
|
|
}
|
|
} else if (this._isEnabled) {
|
|
if (this.recordingMode === 'buffer') {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
env1_72.log('Buffering is in progress, call `flush()` to save the replay');
|
|
}
|
|
} else {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
env1_72.infoTick('Starting replay in session mode');
|
|
}
|
|
this._updateUserActivity();
|
|
loadOrCreateSessionBinding = loadOrCreateSession;
|
|
object = {};
|
|
_options = this._options;
|
|
object.maxReplayDuration = _options.maxReplayDuration;
|
|
object.sessionIdleExpire = this.timeouts.sessionIdleExpire;
|
|
_options = this._options;
|
|
this.session = loadOrCreateSessionBinding(object, {'stickySession': null, 'sessionSampleRate': 1,
|
|
'allowBuffering': false, stickySession: _options.stickySession});
|
|
this.recordingMode = 'session';
|
|
this._initializeRecording();
|
|
}
|
|
} else {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
env1_72.infoTick('Starting replay in session mode');
|
|
}
|
|
this._updateUserActivity();
|
|
loadOrCreateSessionBinding = loadOrCreateSession;
|
|
object = {};
|
|
_options = this._options;
|
|
object.maxReplayDuration = _options.maxReplayDuration;
|
|
object.sessionIdleExpire = this.timeouts.sessionIdleExpire;
|
|
_options = this._options;
|
|
this.session = loadOrCreateSessionBinding(object, {'stickySession': null, 'sessionSampleRate': 1,
|
|
'allowBuffering': false, stickySession: _options.stickySession});
|
|
this.recordingMode = 'session';
|
|
this._initializeRecording();
|
|
}
|
|
}
|
|
|
|
function value_12066() { // fn#12066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:133229, offset: 0x00dbfe5b, size: 182 bytes, params: 1, frame: 16
|
|
var loadOrCreateSessionBinding;
|
|
var object;
|
|
var _options;
|
|
const _isEnabled = this._isEnabled;
|
|
const binding = env1_69;
|
|
if (_isEnabled) {
|
|
if (binding) {
|
|
env1_72.log('Buffering is in progress, call `flush()` to save the replay');
|
|
}
|
|
} else {
|
|
if (binding) {
|
|
env1_72.infoTick('Starting replay in buffer mode');
|
|
}
|
|
loadOrCreateSessionBinding = loadOrCreateSession;
|
|
object = {};
|
|
object.sessionIdleExpire = this.timeouts.sessionIdleExpire;
|
|
_options = this._options;
|
|
object.maxReplayDuration = _options.maxReplayDuration;
|
|
_options = this._options;
|
|
this.session = loadOrCreateSessionBinding(object, {'stickySession': null, 'sessionSampleRate': 0,
|
|
'allowBuffering': true, stickySession: _options.stickySession});
|
|
this.recordingMode = 'buffer';
|
|
this._initializeRecording();
|
|
}
|
|
}
|
|
|
|
function value_12067() { // fn#12067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:133716, offset: 0x00dbff11, size: 507 bytes, params: 1, frame: 31
|
|
var r4;
|
|
var r8;
|
|
var userAgent;
|
|
var r13;
|
|
var maxTouchPoints;
|
|
var r6;
|
|
var _canvas;
|
|
var value2;
|
|
var recordBinding;
|
|
var Object;
|
|
var assign;
|
|
var _recordingOptions;
|
|
var recordingMode;
|
|
var value3;
|
|
var _options;
|
|
var _experiments;
|
|
var continuousCheckout;
|
|
var object;
|
|
var Math;
|
|
var max;
|
|
var value4;
|
|
var handleRecordingEmit;
|
|
var regexp;
|
|
var test;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var _onMutationHandler;
|
|
var value16;
|
|
var recordCanvas;
|
|
var getCanvasManager;
|
|
var sampling;
|
|
var dataURLOptions;
|
|
var value17;
|
|
var value18;
|
|
var error;
|
|
const value = undefined;
|
|
try {
|
|
_canvas = this._canvas;
|
|
value2 = environment.__proto__;
|
|
recordBinding = record;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
_recordingOptions = this._recordingOptions;
|
|
recordingMode = this.recordingMode;
|
|
value3 = recordingMode === 'buffer';
|
|
if (value3) {
|
|
r8 = {checkoutEveryNms: 60000};
|
|
} else {
|
|
_options = this._options;
|
|
_experiments = _options._experiments;
|
|
continuousCheckout = _experiments.continuousCheckout;
|
|
if (continuousCheckout) {
|
|
Math = global.Math;
|
|
max = Math.max;
|
|
_options = this._options;
|
|
_experiments = _options._experiments;
|
|
continuousCheckout = _experiments.continuousCheckout;
|
|
value4 = Reflect.apply(max, Math, [360000, continuousCheckout]);
|
|
r4 = {checkoutEveryNms: value4};
|
|
} else {
|
|
r4 = continuousCheckout;
|
|
}
|
|
r8 = r4;
|
|
}
|
|
object = {};
|
|
handleRecordingEmit = getHandleRecordingEmit(this);
|
|
object.emit = handleRecordingEmit;
|
|
regexp = RegExp('iPhone|iPad|iPod', 'i');
|
|
test = regexp.test;
|
|
value6 = navigator == null;
|
|
userAgent = value6 ? value : navigator.userAgent;
|
|
value7 = userAgent != null;
|
|
value8 = '';
|
|
r4 = value7 ? userAgent : value8;
|
|
value9 = Reflect.apply(test, regexp, [r4]);
|
|
if (value9) {
|
|
r6 = {sampling: {mousemove: false}};
|
|
} else {
|
|
regexp = RegExp('Macintosh', 'i');
|
|
test = regexp.test;
|
|
value10 = navigator == null;
|
|
userAgent = value10 ? value : navigator.userAgent;
|
|
value11 = userAgent != null;
|
|
r13 = value11 ? userAgent : value8;
|
|
value12 = Reflect.apply(test, regexp, [r13]);
|
|
if (value12) {
|
|
value13 = navigator == null;
|
|
if (value13) {
|
|
r6 = {};
|
|
} else {
|
|
maxTouchPoints = navigator.maxTouchPoints;
|
|
if (maxTouchPoints) {
|
|
value14 = navigator == null;
|
|
maxTouchPoints = value14 ? value : navigator.maxTouchPoints;
|
|
value15 = maxTouchPoints > 1;
|
|
r6 = value15 ? {sampling: {mousemove: false}} : {};
|
|
} else {
|
|
r6 = {};
|
|
}
|
|
}
|
|
} else {
|
|
r6 = {};
|
|
}
|
|
}
|
|
_onMutationHandler = this._onMutationHandler;
|
|
value16 = _onMutationHandler.bind(this);
|
|
if (_canvas) {
|
|
recordCanvas = _canvas.recordCanvas;
|
|
getCanvasManager = _canvas.getCanvasManager;
|
|
sampling = _canvas.sampling;
|
|
dataURLOptions = _canvas.dataURLOptions;
|
|
r4 = {recordCanvas: recordCanvas, getCanvasManager: getCanvasManager, sampling: sampling,
|
|
dataURLOptions: dataURLOptions};
|
|
} else {
|
|
r4 = {};
|
|
}
|
|
value17 = Reflect.apply(assign, Object, [{}, _recordingOptions, r8, object, r6, {onMutation: value16}, r4]);
|
|
value18 = recordBinding(value17);
|
|
this._stopRecording = value18;
|
|
} catch (error) {
|
|
this.handleException(error);
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function* _fun12070() { // fn#12070, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:134752, offset: 0x00dc0148, size: 319 bytes, params: 1, frame: 20
|
|
var r3;
|
|
var r9;
|
|
var object;
|
|
var reason;
|
|
var _isEnabled;
|
|
var binding;
|
|
var log;
|
|
var value3;
|
|
var HermesInternal;
|
|
var concat;
|
|
var value4;
|
|
var value5;
|
|
var _removeListeners;
|
|
var stopRecording;
|
|
var _debouncedFlush;
|
|
var cancel;
|
|
var _flush;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var eventBuffer;
|
|
var value9;
|
|
var destroy;
|
|
var error;
|
|
var handleException;
|
|
let value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
reducibleJoin5: while (true) {
|
|
reducibleJoin3: while (true) {
|
|
if (arguments.length > 0) {
|
|
if (arguments[0] !== undefined) {
|
|
value = arguments[0];
|
|
r3 = value;
|
|
break reducibleJoin5;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
r3 = {};
|
|
break reducibleJoin5;
|
|
}
|
|
const forceFlush = r3.forceFlush;
|
|
value = forceFlush !== undefined;
|
|
reduciblePort51: while (true) {
|
|
exceptionLanding50: while (true) {
|
|
reason = r3.reason;
|
|
_isEnabled = this._isEnabled;
|
|
if (_isEnabled) {
|
|
this._isEnabled = false;
|
|
this.recordingMode = 'buffer';
|
|
value = environment.__proto__.__proto__;
|
|
try {
|
|
binding = env2_69;
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
reducibleJoin22: while (true) {
|
|
if (binding) {
|
|
try {
|
|
binding = env2_72;
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
try {
|
|
log = binding.log;
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
value3 = '';
|
|
reducibleJoin19: while (true) {
|
|
if (reason) {
|
|
try {
|
|
HermesInternal = global.HermesInternal;
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
try {
|
|
concat = HermesInternal.concat;
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
try {
|
|
value4 = ' triggered by ' + reason;
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
r9 = value4;
|
|
break reducibleJoin19;
|
|
}
|
|
r9 = value3;
|
|
break reducibleJoin19;
|
|
}
|
|
try {
|
|
value5 = 'Stopping Replay' + r9;
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
try {
|
|
Reflect.apply(log, binding, [value5]);
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
break reducibleJoin22;
|
|
}
|
|
break reducibleJoin22;
|
|
}
|
|
try {
|
|
binding = env2_201;
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
try {
|
|
binding();
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
try {
|
|
_removeListeners = this._removeListeners;
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
try {
|
|
Reflect.apply(_removeListeners, this, []);
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
try {
|
|
stopRecording = this.stopRecording;
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
try {
|
|
Reflect.apply(stopRecording, this, []);
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
try {
|
|
_debouncedFlush = this._debouncedFlush;
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
try {
|
|
cancel = _debouncedFlush.cancel;
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
try {
|
|
Reflect.apply(cancel, _debouncedFlush, []);
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
if (value && forceFlush) {
|
|
try {
|
|
_flush = this._flush;
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
try {
|
|
object.force = true;
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
try {
|
|
value6 = Reflect.apply(_flush, this, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
yield value6;
|
|
try {
|
|
value7 = undefined;
|
|
value8 = false;
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
reducibleJoin40: while (true) {
|
|
if (value8) {
|
|
return value7;
|
|
}
|
|
break reducibleJoin40;
|
|
}
|
|
}
|
|
try {
|
|
eventBuffer = this.eventBuffer;
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
try {
|
|
value9 = eventBuffer == null;
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
reducibleJoin46: while (true) {
|
|
if (value9) {
|
|
break reducibleJoin46;
|
|
}
|
|
try {
|
|
destroy = eventBuffer.destroy;
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
try {
|
|
Reflect.apply(destroy, eventBuffer, []);
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
break reducibleJoin46;
|
|
}
|
|
try {
|
|
this.eventBuffer = null;
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
try {
|
|
binding = env2_181;
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
try {
|
|
binding(this);
|
|
} catch (error) {
|
|
break exceptionLanding50;
|
|
}
|
|
break reduciblePort51;
|
|
}
|
|
break reduciblePort51;
|
|
}
|
|
handleException = this.handleException;
|
|
Reflect.apply(handleException, this, [error]);
|
|
break reduciblePort51;
|
|
}
|
|
}
|
|
|
|
function value_12071() { // fn#12071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:135274, offset: 0x00d8febd, size: 30 bytes, params: 1, frame: 13
|
|
return env0_4.apply(this, arguments);
|
|
}
|
|
|
|
function value_12072() { // fn#12072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:135343, offset: 0x00dc0287, size: 65 bytes, params: 1, frame: 11
|
|
var value;
|
|
if (!this._isPaused) {
|
|
this._isPaused = true;
|
|
this.stopRecording();
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
env1_72.log('Pausing replay');
|
|
}
|
|
}
|
|
}
|
|
|
|
function value_12073() { // fn#12073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:135468, offset: 0x00dc02c8, size: 78 bytes, params: 1, frame: 11
|
|
var value;
|
|
if (this._isPaused && this._checkSession()) {
|
|
this._isPaused = false;
|
|
this.startRecording();
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
env1_72.log('Resuming replay');
|
|
}
|
|
}
|
|
}
|
|
|
|
function* _fun12075() { // fn#12075, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:135643, offset: 0x00dc031f, size: 270 bytes, params: 1, frame: 17
|
|
if (true) {
|
|
var continueRecording = (arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}).continueRecording;
|
|
value = continueRecording === undefined;
|
|
var r6 = value || continueRecording;
|
|
if (this.recordingMode === 'session') {
|
|
return this.flushImmediate();
|
|
}
|
|
var Date = global.Date;
|
|
value = Date.now();
|
|
if (env2_69) {
|
|
env2_72.log('Converting buffer to session');
|
|
}
|
|
yield this.flushImmediate();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
r6 = r6 && this.stopRecording();
|
|
r6 = r6 && this.recordingMode !== 'session';
|
|
if (r6) {
|
|
this.recordingMode = 'session';
|
|
if (this.session) {
|
|
this.session.dirty = false;
|
|
this._updateUserActivity(value);
|
|
this._updateSessionActivity(value);
|
|
this._maybeSaveSession();
|
|
}
|
|
this.startRecording();
|
|
}
|
|
}
|
|
}
|
|
|
|
function value_12076() { // fn#12076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:136149, offset: 0x00d6afe6, size: 30 bytes, params: 1, frame: 13
|
|
return env0_3.apply(this, arguments);
|
|
}
|
|
|
|
function value_12085() { // fn#12085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:137309, offset: 0x00dc0585, size: 107 bytes, params: 1, frame: 14
|
|
var value;
|
|
if (this._lastActivity) {
|
|
value = environment.__proto__;
|
|
if (isExpired(this._lastActivity, this.timeouts.sessionIdlePause)) {
|
|
if (this.session) {
|
|
if (this.session.sampled === 'session') {
|
|
this.pause();
|
|
return undefined;
|
|
}
|
|
return !!this._checkSession();
|
|
}
|
|
return !!this._checkSession();
|
|
}
|
|
}
|
|
return !!this._checkSession();
|
|
}
|
|
|
|
function value_12086() { // fn#12086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:137557, offset: 0x00dc05f0, size: 256 bytes, params: 1, frame: 21
|
|
let value = environment.__proto__;
|
|
const GLOBAL_OBJ = (Module00826Module).GLOBAL_OBJ;
|
|
value = '' + GLOBAL_OBJ.location.pathname + GLOBAL_OBJ.location.hash + GLOBAL_OBJ.location.search;
|
|
value = '' + GLOBAL_OBJ.location.origin + value;
|
|
this.performanceEntries = [];
|
|
this.replayPerformanceEntries = [];
|
|
this._clearContext();
|
|
let _context = this._context;
|
|
_context.initialUrl = value;
|
|
_context = this._context;
|
|
const Date = global.Date;
|
|
_context.initialTimestamp = Date.now();
|
|
this._context.urls.push(value);
|
|
}
|
|
|
|
function value_12087(a0, a1) { // fn#12087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:137960, offset: 0x00dc06f0, size: 83 bytes, params: 3, frame: 15
|
|
const value = this._throttledAddEvent(a0, a1);
|
|
if (value === env1_81) {
|
|
var env0_1 = createBreadcrumb({category: 'replay.throttled'});
|
|
this.addUpdate(_fun12088);
|
|
}
|
|
return value;
|
|
function _fun12088() { // fn#12088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:138115, offset: 0x00dc0743, size: 84 bytes, params: 1, frame: 15
|
|
const addEventSyncBinding = addEventSync;
|
|
const binding = env0_0;
|
|
let timestamp = env0_1.timestamp;
|
|
timestamp = !timestamp ? 0 : timestamp;
|
|
return !addEventSyncBinding(binding, {type: 5, timestamp: timestamp, data: {'tag': 'breadcrumb', 'payload': null,
|
|
'metric': true, payload: env0_1}});
|
|
}
|
|
|
|
}
|
|
|
|
function value_12089() { // fn#12089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:138270, offset: 0x00dc0797, size: 242 bytes, params: 1, frame: 15
|
|
var r3;
|
|
var r2;
|
|
var r5;
|
|
var value;
|
|
var items2;
|
|
const lastActiveSpan = this.lastActiveSpan;
|
|
if (lastActiveSpan) {
|
|
r3 = lastActiveSpan;
|
|
} else {
|
|
value = environment.__proto__;
|
|
value = require(826) /* metro dependency 826 */;
|
|
value = value.getActiveSpan();
|
|
r3 = value;
|
|
}
|
|
if (r3) {
|
|
value = environment.__proto__;
|
|
value = require(826) /* metro dependency 826 */;
|
|
value = value.getRootSpan(r3);
|
|
r2 = value;
|
|
} else {
|
|
r2 = r3;
|
|
}
|
|
if (r2) {
|
|
value = environment.__proto__;
|
|
value = require(826) /* metro dependency 826 */;
|
|
r5 = value.spanToJSON(r2).data;
|
|
} else {
|
|
r5 = r2;
|
|
}
|
|
r5 = !r5 ? {} : r5;
|
|
value = environment.__proto__;
|
|
const SEMANTIC_ATTRIBUTE_SENTRY_SOURCE = (require(826) /* metro dependency 826 */).SEMANTIC_ATTRIBUTE_SENTRY_SOURCE;
|
|
const property = r5[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];
|
|
if (r2) {
|
|
if (property) {
|
|
items2 = ['route', 'custom'];
|
|
if (items2.includes(property)) {
|
|
value = require(826) /* metro dependency 826 */;
|
|
return value.spanToJSON(r2).description;
|
|
}
|
|
return undefined;
|
|
}
|
|
}
|
|
}
|
|
|
|
function value_12090() { // fn#12090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:138573, offset: 0x00dc0889, size: 129 bytes, params: 1, frame: 12
|
|
this.setInitialState();
|
|
this._updateSessionActivity();
|
|
const createEventBufferBinding = createEventBuffer;
|
|
const useCompression = this._options.useCompression;
|
|
this.eventBuffer = createEventBufferBinding({useCompression: useCompression, workerUrl: this._options.workerUrl});
|
|
this._removeListeners();
|
|
this._addListeners();
|
|
this._isEnabled = true;
|
|
this._isPaused = false;
|
|
this.startRecording();
|
|
}
|
|
|
|
function value_12091(a0) { // fn#12091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:138923, offset: 0x00dc090a, size: 129 bytes, params: 2, frame: 15
|
|
this.session = loadOrCreateSession({sessionIdleExpire: this.timeouts.sessionIdleExpire,
|
|
maxReplayDuration: this._options.maxReplayDuration, previousSessionId: a0},
|
|
{stickySession: this._options.stickySession, sessionSampleRate: this._options.sessionSampleRate,
|
|
allowBuffering: this._options.errorSampleRate > 0});
|
|
}
|
|
|
|
function value_12092() { // fn#12092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:139303, offset: 0x00dc098b, size: 96 bytes, params: 1, frame: 14
|
|
var r0;
|
|
var value;
|
|
let session = this.session;
|
|
if (session) {
|
|
session = this.session;
|
|
value = environment.__proto__;
|
|
value = shouldRefreshSession(session, {sessionIdleExpire: this.timeouts.sessionIdleExpire,
|
|
maxReplayDuration: this._options.maxReplayDuration});
|
|
if (value) {
|
|
this._refreshSession(session);
|
|
r0 = false;
|
|
} else {
|
|
r0 = !value;
|
|
}
|
|
return r0;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
function value_12095(a0) { // fn#12095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:139682, offset: 0x00d6b059, size: 30 bytes, params: 2, frame: 13
|
|
return env0_2.apply(this, arguments);
|
|
}
|
|
|
|
function value_12096() { // fn#12096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:139771, offset: 0x00dc0a47, size: 268 bytes, params: 1, frame: 19
|
|
var environment;
|
|
var value;
|
|
var property;
|
|
var GLOBAL_OBJ;
|
|
var document;
|
|
var addEventListener;
|
|
var _handleVisibilityChange;
|
|
var _handleWindowBlur;
|
|
var _handleWindowFocus;
|
|
var _handleKeyboardEvent;
|
|
var clickDetector;
|
|
var _hasInitializedCoreListeners;
|
|
var addGlobalListeners2;
|
|
var error;
|
|
try {
|
|
value = environment.__proto__;
|
|
property = dependencyMap[9];
|
|
value = require(property);
|
|
GLOBAL_OBJ = value.GLOBAL_OBJ;
|
|
document = GLOBAL_OBJ.document;
|
|
addEventListener = document.addEventListener;
|
|
_handleVisibilityChange = this._handleVisibilityChange;
|
|
Reflect.apply(addEventListener, document, ['visibilitychange', _handleVisibilityChange]);
|
|
property = dependencyMap[9];
|
|
value = require(property);
|
|
GLOBAL_OBJ = value.GLOBAL_OBJ;
|
|
addEventListener = GLOBAL_OBJ.addEventListener;
|
|
_handleWindowBlur = this._handleWindowBlur;
|
|
Reflect.apply(addEventListener, GLOBAL_OBJ, ['blur', _handleWindowBlur]);
|
|
property = dependencyMap[9];
|
|
value = require(property);
|
|
GLOBAL_OBJ = value.GLOBAL_OBJ;
|
|
addEventListener = GLOBAL_OBJ.addEventListener;
|
|
_handleWindowFocus = this._handleWindowFocus;
|
|
Reflect.apply(addEventListener, GLOBAL_OBJ, ['focus', _handleWindowFocus]);
|
|
property = dependencyMap[9];
|
|
value = require(property);
|
|
GLOBAL_OBJ = value.GLOBAL_OBJ;
|
|
addEventListener = GLOBAL_OBJ.addEventListener;
|
|
_handleKeyboardEvent = this._handleKeyboardEvent;
|
|
Reflect.apply(addEventListener, GLOBAL_OBJ, ['keydown', _handleKeyboardEvent]);
|
|
clickDetector = this.clickDetector;
|
|
if (clickDetector) {
|
|
clickDetector = this.clickDetector;
|
|
clickDetector.addListeners();
|
|
}
|
|
_hasInitializedCoreListeners = this._hasInitializedCoreListeners;
|
|
if (!_hasInitializedCoreListeners) {
|
|
addGlobalListeners2 = addGlobalListeners;
|
|
addGlobalListeners2(this);
|
|
this._hasInitializedCoreListeners = true;
|
|
}
|
|
} catch (error) {
|
|
this.handleException(error);
|
|
}
|
|
this._performanceCleanupCallback = setupPerformanceObserver(this);
|
|
function addGlobalListeners(a0) { // fn#12097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:140194, owner: value_12096.addGlobalListeners, offset: 0x00dc0b53, size: 342 bytes, params: 2, frame: 21
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const value = environment.__proto__.__proto__;
|
|
const client = (Module00826Module).getClient();
|
|
moduleValue22.addClickKeypressInstrumentationHandler(handleDomListener(a0));
|
|
moduleValue22.addHistoryInstrumentationHandler(handleHistorySpanListener(a0));
|
|
handleBreadcrumbs(a0);
|
|
handleNetworkBreadcrumbs(a0);
|
|
(Module00826Module).addEventProcessor(handleGlobalEventListener(a0));
|
|
if (client) {
|
|
client.on('beforeSendEvent', handleBeforeSendEvent(a0));
|
|
client.on('afterSendEvent', handleAfterSendEvent(a0));
|
|
client.on('createDsc', _fun12098);
|
|
client.on('spanStart', _fun12099);
|
|
client.on('spanEnd', _fun12100);
|
|
client.on('beforeSendFeedback', _fun12101());
|
|
client.on('openFeedbackWidget', env2_2(_fun12106));
|
|
}
|
|
function _fun12098(a0) { // fn#12098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:140609, offset: 0x00dc0ca9, size: 91 bytes, params: 2, frame: 12
|
|
const sessionId = env0_0.getSessionId();
|
|
if (sessionId && env0_0.isEnabled() && env0_0.recordingMode === 'session' && env0_0.checkAndHandleExpiredSession()) {
|
|
a0.replay_id = sessionId;
|
|
}
|
|
}
|
|
|
|
function _fun12099(a0) { // fn#12099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:140762, offset: 0x00dc0d04, size: 20 bytes, params: 2, frame: 2
|
|
env0_0.lastActiveSpan = a0;
|
|
}
|
|
|
|
function _fun12100(a0) { // fn#12100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:140812, offset: 0x00dc0d04, size: 20 bytes, params: 2, frame: 2
|
|
env0_0.lastActiveSpan = a0;
|
|
}
|
|
|
|
function _fun12101() { // fn#12101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:140872, offset: 0x00dc0d18, size: 32 bytes, params: 1, frame: 12
|
|
const env0_0 = env3_2(_fun12103);
|
|
return _fun12104;
|
|
function* _fun12103(a0, a1) { // fn#12103, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:140892, offset: 0x00dc0d41, size: 179 bytes, params: 3, frame: 16
|
|
var r6;
|
|
var contexts;
|
|
var feedback;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
let binding = env2_0;
|
|
const sessionId = binding.getSessionId();
|
|
let r5 = a1 != null && a1.includeReplay && env2_0.isEnabled() && sessionId;
|
|
const value5 = undefined;
|
|
if (r5) {
|
|
contexts = a0.contexts;
|
|
r5 = contexts != null;
|
|
r6 = contexts;
|
|
} else {
|
|
r6 = value5;
|
|
}
|
|
r5 = r5 && r6.feedback;
|
|
if (r5) {
|
|
contexts = a0.contexts;
|
|
feedback = contexts.feedback;
|
|
if (feedback.source !== 'api') {
|
|
a0.contexts.feedback.replay_id = sessionId;
|
|
return value5;
|
|
}
|
|
binding = env2_0;
|
|
yield binding.sendBufferedReplayOrFlush();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
contexts = a0.contexts;
|
|
feedback = contexts.feedback;
|
|
feedback.replay_id = sessionId;
|
|
}
|
|
return value5;
|
|
}
|
|
|
|
function _fun12104(a0, a1) { // fn#12104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:141128, offset: 0x00c3945f, size: 30 bytes, params: 3, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
function* _fun12106() { // fn#12106, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:141207, offset: 0x00dc0dfd, size: 45 bytes, params: 1, frame: 10
|
|
if (true) {
|
|
value = environment.__proto__;
|
|
var binding = env1_0;
|
|
yield binding.sendBufferedReplayOrFlush();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function setupPerformanceObserver(a0) { // fn#12107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:141371, owner: value_12096.setupPerformanceObserver, offset: 0x00dc0e2a, size: 189 bytes, params: 2, frame: 24
|
|
const env0_0 = a0;
|
|
const onEntries = function({entries}) {
|
|
entries.forEach(addPerformanceEntry);
|
|
};
|
|
const items2 = [];
|
|
['navigation', 'paint', 'resource'].forEach(_fun12110);
|
|
const push = items2.push;
|
|
const addLcpInstrumentationHandler = moduleValue22.addLcpInstrumentationHandler;
|
|
const webVitalHandlerBinding = webVitalHandler;
|
|
const value2 = Reflect.apply(addLcpInstrumentationHandler, moduleValue22,
|
|
[webVitalHandlerBinding(getLargestContentfulPaint, a0)]);
|
|
const value3 = moduleValue22.addClsInstrumentationHandler(webVitalHandlerBinding(getCumulativeLayoutShift, a0));
|
|
Reflect.apply(push, items2, [value2, value3,
|
|
moduleValue22.addInpInstrumentationHandler(webVitalHandlerBinding(getInteractionToNextPaint, a0))]);
|
|
return _fun12111;
|
|
function addPerformanceEntry(a0) { // fn#12108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:141408, owner: value_12096.setupPerformanceObserver.addPerformanceEntry, offset: 0x00dc0ee7, size: 53 bytes, params: 2, frame: 12
|
|
const performanceEntries = env0_0.performanceEntries;
|
|
if (!performanceEntries.includes(a0)) {
|
|
env0_0.performanceEntries.push(a0);
|
|
}
|
|
}
|
|
|
|
function _fun12110(a0) { // fn#12110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:141622, offset: 0x00dc0f3a, size: 63 bytes, params: 2, frame: 16
|
|
const binding = env0_1;
|
|
const push = binding.push;
|
|
Reflect.apply(push, binding, [moduleValue22.addPerformanceInstrumentationHandler(a0, onEntries)]);
|
|
}
|
|
|
|
function _fun12111() { // fn#12111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:141963, offset: 0x00dc0f79, size: 28 bytes, params: 1, frame: 11
|
|
env0_1.forEach(function(a0) {
|
|
return a0();
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function value_12113() { // fn#12113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:142051, offset: 0x00dc0f95, size: 240 bytes, params: 1, frame: 18
|
|
var value;
|
|
var property;
|
|
var GLOBAL_OBJ;
|
|
var document;
|
|
var removeEventListener;
|
|
var _handleVisibilityChange;
|
|
var _handleWindowBlur;
|
|
var _handleWindowFocus;
|
|
var _handleKeyboardEvent;
|
|
var clickDetector;
|
|
var _performanceCleanupCallback;
|
|
var error;
|
|
try {
|
|
value = environment.__proto__;
|
|
property = dependencyMap[9];
|
|
value = require(property);
|
|
GLOBAL_OBJ = value.GLOBAL_OBJ;
|
|
document = GLOBAL_OBJ.document;
|
|
removeEventListener = document.removeEventListener;
|
|
_handleVisibilityChange = this._handleVisibilityChange;
|
|
Reflect.apply(removeEventListener, document, ['visibilitychange', _handleVisibilityChange]);
|
|
property = dependencyMap[9];
|
|
value = require(property);
|
|
GLOBAL_OBJ = value.GLOBAL_OBJ;
|
|
removeEventListener = GLOBAL_OBJ.removeEventListener;
|
|
_handleWindowBlur = this._handleWindowBlur;
|
|
Reflect.apply(removeEventListener, GLOBAL_OBJ, ['blur', _handleWindowBlur]);
|
|
property = dependencyMap[9];
|
|
value = require(property);
|
|
GLOBAL_OBJ = value.GLOBAL_OBJ;
|
|
removeEventListener = GLOBAL_OBJ.removeEventListener;
|
|
_handleWindowFocus = this._handleWindowFocus;
|
|
Reflect.apply(removeEventListener, GLOBAL_OBJ, ['focus', _handleWindowFocus]);
|
|
property = dependencyMap[9];
|
|
value = require(property);
|
|
GLOBAL_OBJ = value.GLOBAL_OBJ;
|
|
removeEventListener = GLOBAL_OBJ.removeEventListener;
|
|
_handleKeyboardEvent = this._handleKeyboardEvent;
|
|
Reflect.apply(removeEventListener, GLOBAL_OBJ, ['keydown', _handleKeyboardEvent]);
|
|
clickDetector = this.clickDetector;
|
|
if (clickDetector) {
|
|
clickDetector = this.clickDetector;
|
|
clickDetector.removeListeners();
|
|
}
|
|
_performanceCleanupCallback = this._performanceCleanupCallback;
|
|
if (_performanceCleanupCallback) {
|
|
this._performanceCleanupCallback();
|
|
}
|
|
} catch (error) {
|
|
this.handleException(error);
|
|
}
|
|
}
|
|
|
|
function value_12114(a0) { // fn#12114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:142600, offset: 0x00dc1085, size: 105 bytes, params: 2, frame: 15
|
|
var value;
|
|
var isSessionExpiredBinding;
|
|
var object;
|
|
let session = this.session;
|
|
if (session) {
|
|
value = environment.__proto__;
|
|
isSessionExpiredBinding = isSessionExpired;
|
|
session = this.session;
|
|
object = {};
|
|
object.maxReplayDuration = this._options.maxReplayDuration;
|
|
object.sessionIdleExpire = this.timeouts.sessionIdleExpire;
|
|
if (!isSessionExpiredBinding(session, object)) {
|
|
if (a0) {
|
|
this._createCustomBreadcrumb(a0);
|
|
}
|
|
this.conditionalFlush();
|
|
}
|
|
}
|
|
}
|
|
|
|
function value_12115(a0) { // fn#12115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:142892, offset: 0x00dc10ee, size: 79 bytes, params: 2, frame: 13
|
|
var value;
|
|
if (this.session) {
|
|
if (this.checkAndHandleExpiredSession()) {
|
|
if (a0) {
|
|
this._createCustomBreadcrumb(a0);
|
|
}
|
|
} else {
|
|
value = environment.__proto__;
|
|
if (env1_69) {
|
|
env1_72.log('Document has become active, but session has expired');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function value_12118(a0) { // fn#12118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:143495, offset: 0x00dc11c4, size: 36 bytes, params: 2, frame: 11
|
|
const env0_0 = a0;
|
|
this.addUpdate(_fun12119);
|
|
function _fun12119() { // fn#12119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:143558, offset: 0x00dc11e8, size: 86 bytes, params: 1, frame: 14
|
|
const binding = env0_1;
|
|
const throttledAddEvent = binding.throttledAddEvent;
|
|
const Custom = env2_37.Custom;
|
|
let timestamp = env0_0.timestamp;
|
|
timestamp = !timestamp ? 0 : timestamp;
|
|
Reflect.apply(throttledAddEvent, binding, [{type: Custom, timestamp: timestamp, data: {tag: 'breadcrumb',
|
|
payload: env0_0}}]);
|
|
}
|
|
|
|
}
|
|
|
|
function value_12120() { // fn#12120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:143706, offset: 0x00dc123e, size: 166 bytes, params: 1, frame: 17
|
|
const performanceEntries = this.performanceEntries;
|
|
const value2 = performanceEntries.map(createPerformanceEntry);
|
|
const filter = value2.filter;
|
|
const Boolean = global.Boolean;
|
|
const value3 = Reflect.apply(filter, value2, [Boolean]);
|
|
const value4 = value3.concat(this.replayPerformanceEntries);
|
|
this.performanceEntries = [];
|
|
this.replayPerformanceEntries = [];
|
|
const r4 = this._requiresManualStart ? value4.filter(_fun12121) : value4;
|
|
const Promise = global.Promise;
|
|
return Promise.all(createPerformanceSpans(this, r4));
|
|
function _fun12121({start}) { // fn#12121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:144043, offset: 0x00dc12e4, size: 21 bytes, params: 2, frame: 2
|
|
return start >= env0_0;
|
|
}
|
|
|
|
}
|
|
|
|
function* _fun12126() { // fn#12126, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:144887, offset: 0x00dc1427, size: 610 bytes, params: 1, frame: 25
|
|
var environment;
|
|
var r7;
|
|
var getSessionId;
|
|
var session;
|
|
var eventBuffer;
|
|
var binding;
|
|
var error;
|
|
var _addPerformanceEntries;
|
|
var value3;
|
|
var value4;
|
|
var hasEvents;
|
|
var value5;
|
|
var value6;
|
|
var _updateInitialTimestampFromEventBuffer;
|
|
var Date;
|
|
var now;
|
|
var value7;
|
|
var _context;
|
|
var initialTimestamp;
|
|
var value8;
|
|
var _options;
|
|
var maxReplayDuration;
|
|
var value9;
|
|
var value10;
|
|
var _popEventContext;
|
|
var value11;
|
|
var segmentId;
|
|
var value12;
|
|
var value13;
|
|
var _maybeSaveSession;
|
|
var finish;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var value17;
|
|
var object;
|
|
var onError_121282;
|
|
var value18;
|
|
var Error;
|
|
var prototype;
|
|
var handleException;
|
|
var stop;
|
|
var value19;
|
|
var getClient;
|
|
var value20;
|
|
var recordDroppedEvent;
|
|
let value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
reduciblePort74: while (true) {
|
|
exceptionLanding70: while (true) {
|
|
var env0_0 = this;
|
|
getSessionId = this.getSessionId;
|
|
value = Reflect.apply(getSessionId, this, []);
|
|
session = this.session;
|
|
if (!session) {
|
|
break reducibleJoin4;
|
|
}
|
|
eventBuffer = this.eventBuffer;
|
|
if (!eventBuffer) {
|
|
break reducibleJoin4;
|
|
}
|
|
if (!value) {
|
|
break reducibleJoin4;
|
|
}
|
|
_addPerformanceEntries = this._addPerformanceEntries;
|
|
yield Reflect.apply(_addPerformanceEntries, this, []);
|
|
value3 = undefined;
|
|
value4 = false;
|
|
if (value4) {
|
|
return value3;
|
|
}
|
|
eventBuffer = this.eventBuffer;
|
|
if (eventBuffer == null) {
|
|
break reduciblePort74;
|
|
}
|
|
hasEvents = eventBuffer.hasEvents;
|
|
if (!hasEvents) {
|
|
break reduciblePort74;
|
|
}
|
|
yield addMemoryEntry(this);
|
|
value5 = undefined;
|
|
value6 = false;
|
|
if (value6) {
|
|
return value5;
|
|
}
|
|
eventBuffer = this.eventBuffer;
|
|
if (!eventBuffer) {
|
|
break reduciblePort74;
|
|
}
|
|
getSessionId = this.getSessionId;
|
|
if (value !== Reflect.apply(getSessionId, this, [])) {
|
|
break reduciblePort74;
|
|
}
|
|
try {
|
|
_updateInitialTimestampFromEventBuffer = this._updateInitialTimestampFromEventBuffer;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
Reflect.apply(_updateInitialTimestampFromEventBuffer, this, []);
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
Date = global.Date;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
now = Date.now;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(now, Date, []);
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
_context = this._context;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
initialTimestamp = _context.initialTimestamp;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
value8 = value7 - initialTimestamp;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
_options = this._options;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
maxReplayDuration = _options.maxReplayDuration;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
value9 = maxReplayDuration + 30000;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
value10 = value8 > value9;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
if (!value10) {
|
|
try {
|
|
_popEventContext = this._popEventContext;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
value11 = Reflect.apply(_popEventContext, this, []);
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
session = this.session;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
segmentId = session.segmentId;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
value12 = typeof segmentId === 'bigint' ? segmentId : +segmentId;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
value13 = typeof value12 === 'bigint' ? value12 + 1n : +value12 + 1;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
session.segmentId = value13;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
_maybeSaveSession = this._maybeSaveSession;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
Reflect.apply(_maybeSaveSession, this, []);
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
eventBuffer = this.eventBuffer;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
finish = eventBuffer.finish;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
value14 = Reflect.apply(finish, eventBuffer, []);
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
yield value14;
|
|
try {
|
|
value15 = undefined;
|
|
value16 = false;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
if (value16) {
|
|
return value15;
|
|
}
|
|
value17 = environment.__proto__.__proto__;
|
|
try {
|
|
binding = env2_228;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
object.replayId = value;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
object.recordingData = value15;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
object.segmentId = value12;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
object.eventContext = value11;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
session = this.session;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
object.session = session;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
object.timestamp = value7;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
onError_121282 = onError_12128;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
object.onError = onError_121282;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
value = binding(object);
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
yield value;
|
|
try {
|
|
value = undefined;
|
|
value18 = false;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
if (value18) {
|
|
return value;
|
|
}
|
|
break reduciblePort74;
|
|
}
|
|
try {
|
|
Error = global.Error;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
prototype = Error.prototype;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
error = new Error('Session is too long, not sending replay');
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
value = error instanceof Object ? error : value;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
try {
|
|
throw value;
|
|
} catch (error) {
|
|
break exceptionLanding70;
|
|
}
|
|
}
|
|
handleException = this.handleException;
|
|
Reflect.apply(handleException, this, [error]);
|
|
stop = this.stop;
|
|
Reflect.apply(stop, this, [{reason: 'sendReplay'}]);
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value19 = binding(env2_1[9]);
|
|
getClient = value19.getClient;
|
|
value20 = Reflect.apply(getClient, value19, []);
|
|
reducibleJoin74: while (true) {
|
|
if (value20) {
|
|
value = 'send_error';
|
|
reducibleJoin73: while (true) {
|
|
if (error instanceof env2_80) {
|
|
value = 'ratelimit_backoff';
|
|
r7 = value;
|
|
break reducibleJoin73;
|
|
}
|
|
r7 = value;
|
|
break reducibleJoin73;
|
|
}
|
|
recordDroppedEvent = value20.recordDroppedEvent;
|
|
Reflect.apply(recordDroppedEvent, value20, [r7, 'replay']);
|
|
break reducibleJoin74;
|
|
}
|
|
break reducibleJoin74;
|
|
}
|
|
break reduciblePort74;
|
|
}
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
reducibleJoin74: while (true) {
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
error = binding.error;
|
|
Reflect.apply(error, binding, ['No session or eventBuffer found to flush.']);
|
|
break reducibleJoin74;
|
|
}
|
|
break reducibleJoin74;
|
|
}
|
|
function addMemoryEntry(a0) { // fn#12127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:145059, offset: 0x00dc1689, size: 30 bytes, params: 2, frame: 13
|
|
return env3_224.apply(this, arguments);
|
|
}
|
|
|
|
function onError_12128(a0) { // fn#12128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:145612, offset: 0x00dc16a7, size: 23 bytes, params: 2, frame: 11
|
|
return env0_0.handleException(a0);
|
|
}
|
|
|
|
}
|
|
|
|
function value_12129() { // fn#12129, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:145917, offset: 0x00c3b2ba, size: 30 bytes, params: 1, frame: 13
|
|
return env0_1.apply(this, arguments);
|
|
}
|
|
|
|
function* _fun12131() { // fn#12131, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:145998, offset: 0x00dc16c7, size: 581 bytes, params: 1, frame: 22
|
|
var r1;
|
|
var r4;
|
|
var r9;
|
|
var value;
|
|
var value2;
|
|
var force;
|
|
var _isEnabled;
|
|
var checkAndHandleExpiredSession;
|
|
var binding;
|
|
var error;
|
|
var session;
|
|
var started;
|
|
var Date;
|
|
var now;
|
|
var _debouncedFlush;
|
|
var cancel;
|
|
var _options;
|
|
var minReplayDuration;
|
|
var value3;
|
|
var maxReplayDuration;
|
|
var value4;
|
|
var eventBuffer;
|
|
var segmentId;
|
|
var hasCheckout;
|
|
var log;
|
|
var _flushLock;
|
|
var _flushLock2;
|
|
var _runFlush;
|
|
var _flushLock3;
|
|
var value5;
|
|
var handleException;
|
|
var value6;
|
|
var Math;
|
|
var floor;
|
|
var value7;
|
|
var value8;
|
|
var HermesInternal;
|
|
var concat;
|
|
exceptionLanding38: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
reducibleJoin5: while (true) {
|
|
reducibleJoin3: while (true) {
|
|
if (arguments.length > 0) {
|
|
if (arguments[0] !== undefined) {
|
|
value = arguments[0];
|
|
r1 = value;
|
|
break reducibleJoin5;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
break reducibleJoin3;
|
|
}
|
|
r1 = {};
|
|
break reducibleJoin5;
|
|
}
|
|
force = r1.force;
|
|
value = force !== undefined;
|
|
r1 = value && force;
|
|
_isEnabled = this._isEnabled;
|
|
if (!_isEnabled) {
|
|
reducibleJoin8: while (true) {
|
|
if (!r1) {
|
|
return undefined;
|
|
}
|
|
break reducibleJoin8;
|
|
}
|
|
}
|
|
checkAndHandleExpiredSession = this.checkAndHandleExpiredSession;
|
|
if (Reflect.apply(checkAndHandleExpiredSession, this, [])) {
|
|
session = this.session;
|
|
reducibleJoin37: while (true) {
|
|
if (session) {
|
|
session = this.session;
|
|
started = session.started;
|
|
Date = global.Date;
|
|
now = Date.now;
|
|
value = Reflect.apply(now, Date, []) - started;
|
|
_debouncedFlush = this._debouncedFlush;
|
|
cancel = _debouncedFlush.cancel;
|
|
Reflect.apply(cancel, _debouncedFlush, []);
|
|
_options = this._options;
|
|
minReplayDuration = _options.minReplayDuration;
|
|
value3 = value < minReplayDuration;
|
|
_options = this._options;
|
|
maxReplayDuration = _options.maxReplayDuration;
|
|
value4 = maxReplayDuration + 5000;
|
|
if (!value3) {
|
|
reducibleJoin41: while (true) {
|
|
if (value > value4) {
|
|
break reducibleJoin41;
|
|
}
|
|
eventBuffer = this.eventBuffer;
|
|
reducibleJoin16: while (true) {
|
|
if (eventBuffer) {
|
|
session = this.session;
|
|
segmentId = session.segmentId;
|
|
value = segmentId === 0;
|
|
r4 = value;
|
|
break reducibleJoin16;
|
|
}
|
|
r4 = eventBuffer;
|
|
break reducibleJoin16;
|
|
}
|
|
reducibleJoin18: while (true) {
|
|
if (r4) {
|
|
hasCheckout = eventBuffer.hasCheckout;
|
|
value = !hasCheckout;
|
|
r4 = value;
|
|
break reducibleJoin18;
|
|
}
|
|
break reducibleJoin18;
|
|
}
|
|
reducibleJoin20: while (true) {
|
|
if (r4) {
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_69;
|
|
r4 = binding;
|
|
break reducibleJoin20;
|
|
}
|
|
break reducibleJoin20;
|
|
}
|
|
reducibleJoin22: while (true) {
|
|
if (r4) {
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_72;
|
|
log = binding.log;
|
|
Reflect.apply(log, binding, ['Flushing initial segment without checkout.']);
|
|
break reducibleJoin22;
|
|
}
|
|
break reducibleJoin22;
|
|
}
|
|
_flushLock = this._flushLock;
|
|
_flushLock2 = this._flushLock;
|
|
reducibleJoin24: while (true) {
|
|
if (_flushLock2) {
|
|
break reducibleJoin24;
|
|
}
|
|
_runFlush = this._runFlush;
|
|
this._flushLock = Reflect.apply(_runFlush, this, []);
|
|
break reducibleJoin24;
|
|
}
|
|
reducibleJoin25: while (true) {
|
|
reduciblePort35: while (true) {
|
|
exceptionLanding32: while (true) {
|
|
try {
|
|
try {
|
|
_flushLock3 = this._flushLock;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
break reducibleJoin25;
|
|
}
|
|
try {
|
|
handleException = this.handleException;
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
try {
|
|
Reflect.apply(handleException, this, [error]);
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
break reduciblePort35;
|
|
}
|
|
this._flushLock = undefined;
|
|
if (_flushLock) {
|
|
_debouncedFlush = this._debouncedFlush;
|
|
Reflect.apply(_debouncedFlush, this, []);
|
|
break reducibleJoin37;
|
|
}
|
|
break reducibleJoin37;
|
|
}
|
|
yield _flushLock3;
|
|
try {
|
|
try {
|
|
value = undefined;
|
|
value5 = false;
|
|
} catch (error) {
|
|
break exceptionLanding32;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding38;
|
|
}
|
|
if (value5) {
|
|
this._flushLock = undefined;
|
|
reducibleJoin31: while (true) {
|
|
if (_flushLock) {
|
|
_debouncedFlush = this._debouncedFlush;
|
|
Reflect.apply(_debouncedFlush, this, []);
|
|
break reducibleJoin31;
|
|
}
|
|
break reducibleJoin31;
|
|
}
|
|
return value;
|
|
}
|
|
this._flushLock = undefined;
|
|
if (_flushLock) {
|
|
_debouncedFlush = this._debouncedFlush;
|
|
Reflect.apply(_debouncedFlush, this, []);
|
|
break reducibleJoin37;
|
|
}
|
|
break reducibleJoin37;
|
|
}
|
|
}
|
|
value6 = environment.__proto__.__proto__;
|
|
reducibleJoin45: while (true) {
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
log = binding.log;
|
|
Math = global.Math;
|
|
floor = Math.floor;
|
|
value = Reflect.apply(floor, Math, [value / 1000]);
|
|
value7 = 'long';
|
|
reducibleJoin44: while (true) {
|
|
if (value3) {
|
|
value8 = 'short';
|
|
r9 = value8;
|
|
break reducibleJoin44;
|
|
}
|
|
r9 = value7;
|
|
break reducibleJoin44;
|
|
}
|
|
HermesInternal = global.HermesInternal;
|
|
concat = HermesInternal.concat;
|
|
Reflect.apply(log, binding,
|
|
['Session duration (' + value + 's) is too ' + r9 + ', not sending replay.']);
|
|
break reducibleJoin45;
|
|
}
|
|
break reducibleJoin45;
|
|
}
|
|
reducibleJoin47: while (true) {
|
|
if (value3) {
|
|
_debouncedFlush = this._debouncedFlush;
|
|
Reflect.apply(_debouncedFlush, this, []);
|
|
break reducibleJoin47;
|
|
}
|
|
break reducibleJoin47;
|
|
}
|
|
return undefined;
|
|
}
|
|
break reducibleJoin37;
|
|
}
|
|
} else {
|
|
value = environment.__proto__.__proto__;
|
|
reducibleJoin37: while (true) {
|
|
if (env2_69) {
|
|
binding = env2_72;
|
|
error = binding.error;
|
|
Reflect.apply(error, binding, ['Attempting to finish replay event after session expired.']);
|
|
break reducibleJoin37;
|
|
}
|
|
break reducibleJoin37;
|
|
}
|
|
}
|
|
return undefined;
|
|
}
|
|
this._flushLock = undefined;
|
|
if (_flushLock) {
|
|
this._debouncedFlush();
|
|
throw error;
|
|
}
|
|
throw error;
|
|
}
|
|
|
|
function value_12132() { // fn#12132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:146881, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
function value_12133() { // fn#12133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:146964, offset: 0x00dc190c, size: 51 bytes, params: 1, frame: 11
|
|
var value;
|
|
if (this.session && this._options.stickySession) {
|
|
value = environment.__proto__;
|
|
saveSession(this.session);
|
|
}
|
|
}
|
|
|
|
function value_12134(a0) { // fn#12134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:147096, offset: 0x00dc193f, size: 220 bytes, params: 2, frame: 14
|
|
var environment;
|
|
var r0;
|
|
var length;
|
|
var mutationLimit;
|
|
var value;
|
|
let _options = this._options;
|
|
const ignoreMutations = _options._experiments.ignoreMutations;
|
|
if (ignoreMutations == null) {
|
|
length = a0.length;
|
|
_options = this._options;
|
|
mutationLimit = _options.mutationLimit;
|
|
r0 = mutationLimit && length > mutationLimit;
|
|
_options = this._options;
|
|
if (length > _options.mutationBreadcrumbLimit) {
|
|
value = environment.__proto__;
|
|
value = createBreadcrumb({category: 'replay.mutations', data: {count: length, limit: r0}});
|
|
this._createCustomBreadcrumb(value);
|
|
} else if (r0) {
|
|
value = environment.__proto__;
|
|
value = createBreadcrumb({category: 'replay.mutations', data: {count: length, limit: r0}});
|
|
this._createCustomBreadcrumb(value);
|
|
}
|
|
value = !r0;
|
|
if (r0) {
|
|
this.stop({reason: 'mutationLimit', forceFlush: this.recordingMode === 'session'});
|
|
r0 = false;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
length = ignoreMutations.length;
|
|
if (length) {
|
|
if (a0.some(function({target}) {
|
|
var r1;
|
|
var r3;
|
|
var nodeType;
|
|
var ELEMENT_NODE;
|
|
var value2;
|
|
var error;
|
|
var value = null;
|
|
if (target) {
|
|
try {
|
|
nodeType = target.nodeType;
|
|
ELEMENT_NODE = target.ELEMENT_NODE;
|
|
value2 = nodeType === ELEMENT_NODE;
|
|
if (value2) {
|
|
r1 = target;
|
|
} else {
|
|
target = target.parentElement;
|
|
r1 = target;
|
|
}
|
|
r3 = r1;
|
|
} catch (error) {
|
|
r3 = value;
|
|
}
|
|
} else {
|
|
r3 = value;
|
|
}
|
|
var value4 = ignoreMutations.join(',');
|
|
value = undefined;
|
|
return value == r3 ? value : r3.matches(value4);
|
|
})) {
|
|
return false;
|
|
}
|
|
length = a0.length;
|
|
_options = this._options;
|
|
mutationLimit = _options.mutationLimit;
|
|
r0 = mutationLimit && length > mutationLimit;
|
|
_options = this._options;
|
|
if (length > _options.mutationBreadcrumbLimit) {
|
|
value = environment.__proto__;
|
|
value = createBreadcrumb({category: 'replay.mutations', data: {count: length, limit: r0}});
|
|
this._createCustomBreadcrumb(value);
|
|
} else if (r0) {
|
|
value = environment.__proto__;
|
|
value = createBreadcrumb({category: 'replay.mutations', data: {count: length, limit: r0}});
|
|
this._createCustomBreadcrumb(value);
|
|
}
|
|
value = !r0;
|
|
if (r0) {
|
|
this.stop({reason: 'mutationLimit', forceFlush: this.recordingMode === 'session'});
|
|
r0 = false;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
length = a0.length;
|
|
mutationLimit = this._options.mutationLimit;
|
|
r0 = mutationLimit && length > mutationLimit;
|
|
if (length > this._options.mutationBreadcrumbLimit) {
|
|
value = environment.__proto__;
|
|
value = createBreadcrumb({category: 'replay.mutations', data: {count: length, limit: r0}});
|
|
this._createCustomBreadcrumb(value);
|
|
} else if (r0) {
|
|
value = environment.__proto__;
|
|
value = createBreadcrumb({category: 'replay.mutations', data: {count: length, limit: r0}});
|
|
this._createCustomBreadcrumb(value);
|
|
}
|
|
if (r0) {
|
|
this.stop({reason: 'mutationLimit', forceFlush: this.recordingMode === 'session'});
|
|
r0 = false;
|
|
} else {
|
|
r0 = !r0;
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
function _fun12136() { // fn#12136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:148027, offset: 0x00dc1a83, size: 298 bytes, params: 1, frame: 15
|
|
return CreateClassModule(Replay, [{key: '_isInitialized', get: get_12140, set: function(a0) {
|
|
env1_86 = a0;
|
|
}}, {key: 'afterAllSetup', value: value_12142}, {key: 'start', value: function() {
|
|
if (this._replay) {
|
|
this._replay.start();
|
|
}
|
|
}}, {key: 'startBuffering', value: function() {
|
|
if (this._replay) {
|
|
this._replay.startBuffering();
|
|
}
|
|
}}, {key: 'stop', value: function() {
|
|
return this._replay ? this._replay.stop({forceFlush: this._replay.recordingMode === 'session'}) : global.Promise.resolve();
|
|
}}, {key: 'flush', value: function(a0) {
|
|
var r1;
|
|
var r0;
|
|
var property;
|
|
var value;
|
|
if (this._replay) {
|
|
property = this._replay;
|
|
value = property.isEnabled();
|
|
property = this._replay;
|
|
if (value) {
|
|
r1 = property.sendBufferedReplayOrFlush(a0);
|
|
} else {
|
|
property.start();
|
|
property = global.Promise;
|
|
r1 = property.resolve();
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
r0 = global.Promise.resolve();
|
|
}
|
|
return r0;
|
|
}}, {key: 'getReplayId', value: function(a0) {
|
|
var _replay = this._replay;
|
|
if (_replay != null) {
|
|
if (_replay.isEnabled()) {
|
|
return this._replay.getSessionId(a0);
|
|
}
|
|
}
|
|
}}, {key: 'getRecordingMode', value: function() {
|
|
var _replay = this._replay;
|
|
if (_replay != null) {
|
|
if (_replay.isEnabled()) {
|
|
return this._replay.recordingMode;
|
|
}
|
|
}
|
|
}}, {key: '_initialize', value: function(a0) {
|
|
if (this._replay) {
|
|
this._maybeLoadFromReplayCanvasIntegration(a0);
|
|
this._replay.initializeSampling();
|
|
}
|
|
}}, {key: '_setup', value: value_12152}, {key: '_maybeLoadFromReplayCanvasIntegration', value: function(a0) {
|
|
var property;
|
|
var value;
|
|
var error;
|
|
try {
|
|
property = a0.getIntegrationByName;
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
try {
|
|
value = Reflect.apply(property, a0, ['ReplayCanvas']);
|
|
} catch (error) {
|
|
return undefined;
|
|
}
|
|
if (value) {
|
|
try {
|
|
property = this._replay;
|
|
value = value.getOptions();
|
|
property._canvas = value;
|
|
} catch (error) {
|
|
}
|
|
}
|
|
}}]);
|
|
function Replay() { // fn#12137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:148061, offset: 0x00dc1bad, size: 1226 bytes, params: 1, frame: 47
|
|
var environment;
|
|
var _recordingOptions;
|
|
var Set;
|
|
var value4;
|
|
var set;
|
|
const r0 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
const flushMinDelay = r0.flushMinDelay;
|
|
const r27 = flushMinDelay === undefined ? 5000 : flushMinDelay;
|
|
const flushMaxDelay = r0.flushMaxDelay;
|
|
const r26 = flushMaxDelay === undefined ? 5500 : flushMaxDelay;
|
|
const minReplayDuration = r0.minReplayDuration;
|
|
const r30 = minReplayDuration === undefined ? 4999 : minReplayDuration;
|
|
const maxReplayDuration = r0.maxReplayDuration;
|
|
const r29 = maxReplayDuration !== undefined ? maxReplayDuration : env1_15;
|
|
const stickySession = r0.stickySession;
|
|
const r25 = stickySession === undefined || stickySession;
|
|
const useCompression = r0.useCompression;
|
|
const r24 = useCompression === undefined || useCompression;
|
|
const workerUrl = r0.workerUrl;
|
|
const _experiments = r0._experiments;
|
|
const r6 = _experiments !== undefined ? _experiments : {};
|
|
const maskAllText = r0.maskAllText;
|
|
const r20 = maskAllText === undefined || maskAllText;
|
|
const maskAllInputs = r0.maskAllInputs;
|
|
const r21 = maskAllInputs === undefined || maskAllInputs;
|
|
const blockAllMedia = r0.blockAllMedia;
|
|
const r22 = blockAllMedia === undefined || blockAllMedia;
|
|
const mutationBreadcrumbLimit = r0.mutationBreadcrumbLimit;
|
|
const r19 = mutationBreadcrumbLimit === undefined ? 750 : mutationBreadcrumbLimit;
|
|
const mutationLimit = r0.mutationLimit;
|
|
const r18 = mutationLimit === undefined ? 10000 : mutationLimit;
|
|
const slowClickTimeout = r0.slowClickTimeout;
|
|
const r17 = slowClickTimeout === undefined ? 7000 : slowClickTimeout;
|
|
const slowClickIgnoreSelectors = r0.slowClickIgnoreSelectors;
|
|
const r16 = slowClickIgnoreSelectors !== undefined ? slowClickIgnoreSelectors : [];
|
|
const networkDetailAllowUrls = r0.networkDetailAllowUrls;
|
|
const r15 = networkDetailAllowUrls !== undefined ? networkDetailAllowUrls : [];
|
|
const networkDetailDenyUrls = r0.networkDetailDenyUrls;
|
|
const r14 = networkDetailDenyUrls !== undefined ? networkDetailDenyUrls : [];
|
|
const networkCaptureBodies = r0.networkCaptureBodies;
|
|
const r11 = networkCaptureBodies === undefined || networkCaptureBodies;
|
|
const networkRequestHeaders = r0.networkRequestHeaders;
|
|
const r13 = networkRequestHeaders !== undefined ? networkRequestHeaders : [];
|
|
const networkResponseHeaders = r0.networkResponseHeaders;
|
|
const r12 = networkResponseHeaders !== undefined ? networkResponseHeaders : [];
|
|
let mask = r0.mask;
|
|
const r33 = mask !== undefined ? mask : [];
|
|
const maskAttributes = r0.maskAttributes;
|
|
let r2 = maskAttributes !== undefined ? maskAttributes : ['title', 'placeholder', 'aria-label'];
|
|
let unmask = r0.unmask;
|
|
const r32 = unmask !== undefined ? unmask : [];
|
|
let block = r0.block;
|
|
const r31 = block !== undefined ? block : [];
|
|
let unblock = r0.unblock;
|
|
const r28 = unblock !== undefined ? unblock : [];
|
|
let ignore = r0.ignore;
|
|
r2 = ignore !== undefined ? ignore : [];
|
|
const maskFn = r0.maskFn;
|
|
const beforeAddRecordingEvent = r0.beforeAddRecordingEvent;
|
|
const beforeErrorSampling = r0.beforeErrorSampling;
|
|
const onError = r0.onError;
|
|
const attachRawBodyFromRequest = r0.attachRawBodyFromRequest;
|
|
const r7 = attachRawBodyFromRequest !== undefined && attachRawBodyFromRequest;
|
|
value = environment.__proto__;
|
|
env1_8(this, Replay);
|
|
this.name = 'Replay';
|
|
let object = {mask: r33, unmask: r32, block: r31, unblock: r28, ignore: r2};
|
|
mask = object.mask;
|
|
unmask = object.unmask;
|
|
block = object.block;
|
|
unblock = object.unblock;
|
|
ignore = object.ignore;
|
|
object = {};
|
|
const getOptionBinding = getOption;
|
|
object.maskTextSelector = getOptionBinding(mask, ['.sentry-mask', '[data-sentry-mask]']);
|
|
object.unmaskTextSelector = getOptionBinding(unmask, []);
|
|
const items2 = ['.sentry-block', '[data-sentry-block]'];
|
|
object.blockSelector = getOptionBinding(block, items2.concat(['base', 'iframe[srcdoc]:not([src])']));
|
|
object.unblockSelector = getOptionBinding(unblock, []);
|
|
object.ignoreSelector = getOptionBinding(ignore, ['.sentry-ignore', '[data-sentry-ignore]', 'input[type="file"]']);
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const object2 = {maskAllInputs: r21, maskAllText: r20};
|
|
object2.maskInputOptions = {password: true};
|
|
object2.maskTextFn = maskFn;
|
|
object2.maskInputFn = maskFn;
|
|
object2.maskAttributeFn = maskAttributeFn;
|
|
const object4 = {'slimDOMOptions': 'all', 'inlineStylesheet': true, 'inlineImages': false, 'collectFonts': true};
|
|
object4.errorHandler = function(a0) {
|
|
var error;
|
|
try {
|
|
a0.__rrweb__ = true;
|
|
} catch (error) {
|
|
}
|
|
};
|
|
const Boolean = global.Boolean;
|
|
object4.recordCrossOriginIframes = Boolean(r6.recordCrossOriginIframes);
|
|
this._recordingOptions = Reflect.apply(assign, Object, [object2, object, object4]);
|
|
object = {flushMinDelay: r27, flushMaxDelay: r26};
|
|
let Math = global.Math;
|
|
object.minReplayDuration = Math.min(r30, 50000);
|
|
Math = global.Math;
|
|
object.maxReplayDuration = Math.min(r29, env1_15);
|
|
object.stickySession = r25;
|
|
object.useCompression = r24;
|
|
object.workerUrl = workerUrl;
|
|
object.blockAllMedia = r22;
|
|
object.maskAllInputs = r21;
|
|
object.maskAllText = r20;
|
|
object.mutationBreadcrumbLimit = r19;
|
|
object.mutationLimit = r18;
|
|
object.slowClickTimeout = r17;
|
|
object.slowClickIgnoreSelectors = r16;
|
|
object.networkDetailAllowUrls = r15;
|
|
object.networkDetailDenyUrls = r14;
|
|
object.networkCaptureBodies = r11;
|
|
const _getMergedNetworkHeadersBinding = _getMergedNetworkHeaders;
|
|
object.networkRequestHeaders = _getMergedNetworkHeadersBinding(r13);
|
|
object.networkResponseHeaders = _getMergedNetworkHeadersBinding(r12);
|
|
object.beforeAddRecordingEvent = beforeAddRecordingEvent;
|
|
object.beforeErrorSampling = beforeErrorSampling;
|
|
object.onError = onError;
|
|
object.attachRawBodyFromRequest = r7;
|
|
object._experiments = r6;
|
|
this._initialOptions = object;
|
|
if (this._initialOptions.blockAllMedia) {
|
|
_recordingOptions = this._recordingOptions;
|
|
_recordingOptions.blockSelector = this._recordingOptions.blockSelector ? '' + this._recordingOptions.blockSelector + ',' + env1_83 : env1_83;
|
|
_recordingOptions = this._recordingOptions;
|
|
Set = global.Set;
|
|
value4 = Object.create(Set.prototype, {constructor: {value: Set}});
|
|
set = new Set(['background-image']);
|
|
_recordingOptions.ignoreCSSAttributes = set instanceof Object ? set : value4;
|
|
}
|
|
if (this._isInitialized) {
|
|
value = require(826) /* metro dependency 826 */;
|
|
if (value.isBrowser()) {
|
|
throw new global.Error('Multiple Sentry Session Replay instances are not supported');
|
|
}
|
|
}
|
|
this._isInitialized = true;
|
|
function maskAttributeFn(a0, a1, a2) { // fn#12138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:149924, owner: Replay.maskAttributeFn, offset: 0x00dc2077, size: 260 bytes, params: 4, frame: 18
|
|
var r2;
|
|
var r1;
|
|
var r0;
|
|
let object = {};
|
|
object.maskAttributes = env0_1;
|
|
object.maskAllText = env0_0;
|
|
object.privacyOptions = env0_2;
|
|
object.key = a0;
|
|
object.value = a1;
|
|
object.el = a2;
|
|
const el = object.el;
|
|
const key = object.key;
|
|
const maskAttributes = object.maskAttributes;
|
|
const maskAllText = object.maskAllText;
|
|
const privacyOptions = object.privacyOptions;
|
|
let value = object.value;
|
|
if (maskAllText) {
|
|
if (privacyOptions.unmaskTextSelector) {
|
|
if (el.matches(privacyOptions.unmaskTextSelector)) {
|
|
r1 = value;
|
|
} else {
|
|
if (maskAttributes.includes(key)) {
|
|
value = value.replace(RegExp('[\\S]', 'g'), '*');
|
|
r2 = value;
|
|
} else if (key !== 'value') {
|
|
r2 = value;
|
|
} else if (el.tagName !== 'INPUT') {
|
|
r2 = value;
|
|
} else {
|
|
object = ['submit', 'button'];
|
|
if (object.includes(el.getAttribute('type') || '')) {
|
|
value = value.replace(RegExp('[\\S]', 'g'), '*');
|
|
r2 = value;
|
|
} else {
|
|
r2 = value;
|
|
}
|
|
}
|
|
r1 = r2;
|
|
}
|
|
} else {
|
|
if (maskAttributes.includes(key)) {
|
|
value = value.replace(RegExp('[\\S]', 'g'), '*');
|
|
r2 = value;
|
|
} else if (key !== 'value') {
|
|
r2 = value;
|
|
} else if (el.tagName !== 'INPUT') {
|
|
r2 = value;
|
|
} else {
|
|
object = ['submit', 'button'];
|
|
if (object.includes(el.getAttribute('type') || '')) {
|
|
value = value.replace(RegExp('[\\S]', 'g'), '*');
|
|
r2 = value;
|
|
} else {
|
|
r2 = value;
|
|
}
|
|
}
|
|
r1 = r2;
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
}
|
|
|
|
function get_12140() { // fn#12140, offset: 0x00dc2191, size: 9 bytes, params: 1, frame: 1
|
|
return env1_86;
|
|
}
|
|
|
|
function value_12142(a0) { // fn#12142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:151617, offset: 0x00dc21a8, size: 108 bytes, params: 2, frame: 13
|
|
var environment;
|
|
let value = environment.__proto__;
|
|
value = require(826) /* metro dependency 826 */;
|
|
value = value.isBrowser();
|
|
if (value && !this._replay) {
|
|
if (this._initialOptions.attachRawBodyFromRequest) {
|
|
_INTERNAL_instrumentRequestInterface();
|
|
}
|
|
this._setup(a0);
|
|
this._initialize(a0);
|
|
}
|
|
function _INTERNAL_instrumentRequestInterface() { // fn#12143, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:151727, owner: value_12142._INTERNAL_instrumentRequestInterface, offset: 0x00dc2214, size: 108 bytes, params: 1, frame: 14
|
|
var environment;
|
|
var value;
|
|
var Request_121442;
|
|
var prototype;
|
|
var property;
|
|
var moduleValue;
|
|
var GLOBAL_OBJ;
|
|
var error;
|
|
const Request = global.Request;
|
|
if (typeof Request !== 'undefined') {
|
|
value = environment.__proto__.__proto__;
|
|
if (!env2_87) {
|
|
try {
|
|
Request_121442 = Request_12144;
|
|
prototype = global.Request.prototype;
|
|
Request_121442.prototype = prototype;
|
|
property = dependencyMap[9];
|
|
moduleValue = require(property);
|
|
GLOBAL_OBJ = moduleValue.GLOBAL_OBJ;
|
|
GLOBAL_OBJ.Request = Request_121442;
|
|
env2_87 = true;
|
|
} catch (error) {
|
|
}
|
|
}
|
|
}
|
|
function _INTERNAL_instrumentRequestInterfaceRequest(a0, a1) { // fn#12144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:151836, owner: value_12142._INTERNAL_instrumentRequestInterface.Request, offset: 0x00dc2280, size: 74 bytes, params: 3, frame: 14
|
|
var value3;
|
|
const request = new Request(a0, a1);
|
|
if (a1?.body != null) {
|
|
value3 = environment.__proto__.__proto__.__proto__;
|
|
request[env3_85] = a1.body;
|
|
}
|
|
return request;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function value_12152(a0) { // fn#12152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:152994, offset: 0x00dc2451, size: 82 bytes, params: 2, frame: 14
|
|
this._replay = new env1_82({options: loadReplayOptionsFromClient(this._initialOptions, a0),
|
|
recordingOptions: this._recordingOptions});
|
|
function loadReplayOptionsFromClient(a0, a1) { // fn#12153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:153019, owner: value_12152.loadReplayOptionsFromClient, offset: 0x00dc24a3, size: 186 bytes, params: 3, frame: 19
|
|
let value = a1.getOptions();
|
|
const Object = global.Object;
|
|
const value2 = Object.assign({'sessionSampleRate': 0, 'errorSampleRate': 0}, a0);
|
|
const sampleRate = Module00826Module.parseSampleRate(value.replaysSessionSampleRate);
|
|
value = Module00826Module.parseSampleRate(value.replaysOnErrorSampleRate);
|
|
if (sampleRate == null && value == null) {
|
|
Module00826Module.consoleSandbox(function() {
|
|
global.console.warn('Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.');
|
|
});
|
|
}
|
|
if (sampleRate != null) {
|
|
value2.sessionSampleRate = sampleRate;
|
|
}
|
|
if (value != null) {
|
|
value2.errorSampleRate = value;
|
|
}
|
|
return value2;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function getReplay() { // fn#12156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:153930, offset: 0x00dc25be, size: 63 bytes, params: 1, frame: 12
|
|
const value = undefined;
|
|
const client = (Module00826Module).getClient();
|
|
return client == null ? value : client.getIntegrationByName('Replay');
|
|
}
|
|
|
|
function replayIntegration(a0) { // fn#12157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:154053, offset: 0x00dc25fd, size: 32 bytes, params: 2, frame: 11
|
|
const binding = env0_88;
|
|
const value = Object.create(binding.prototype, {constructor: {value: binding}});
|
|
const binding2 = new binding(a0);
|
|
return binding2 instanceof Object ? binding2 : value;
|
|
}
|
|
|
|
}
|
|
|
|
function extractFileExtension(a0, a1) { // fn#11425, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:4448, offset: 0x00dad353, size: 155 bytes, params: 3, frame: 19
|
|
var r5;
|
|
var URL;
|
|
var value2;
|
|
var value3;
|
|
var window;
|
|
var location;
|
|
var href;
|
|
var prototype;
|
|
var value4;
|
|
var uRL;
|
|
var value5;
|
|
var error;
|
|
const value = undefined;
|
|
try {
|
|
URL = global.URL;
|
|
value2 = null;
|
|
value3 = value2 != value;
|
|
if (value3) {
|
|
r5 = value;
|
|
} else {
|
|
window = global.window;
|
|
location = window.location;
|
|
href = location.href;
|
|
r5 = href;
|
|
}
|
|
prototype = URL.prototype;
|
|
value4 = Object.create(prototype, {constructor: {value: URL}});
|
|
uRL = new URL(a0);
|
|
value5 = uRL instanceof Object ? uRL : value4;
|
|
} catch (error) {
|
|
return null;
|
|
}
|
|
const value6 = value5.pathname.match(RegExp('\\.([0-9a-z]+)(?:$)', 'i'));
|
|
const r2 = value2 == value6 ? value : value6[1];
|
|
return value2 != r2 ? r2 : value2;
|
|
}
|
|
|
|
function getWindowScroll(a0) { // fn#11476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:24242, offset: 0x00db04f4, size: 339 bytes, params: 2, frame: 9
|
|
var r1;
|
|
var pageXOffset;
|
|
var value;
|
|
var pageYOffset;
|
|
const document = a0.document;
|
|
const object = {};
|
|
if (document.scrollingElement) {
|
|
r1 = document.scrollingElement.scrollLeft;
|
|
} else {
|
|
pageXOffset = a0.pageXOffset;
|
|
value = undefined;
|
|
if (value !== pageXOffset) {
|
|
r1 = a0.pageXOffset;
|
|
} else {
|
|
r1 = (document == null ? value : document.documentElement.scrollLeft) || (document == null || document.body == null || document.body.parentElement == null ? value : document.body.parentElement.scrollLeft);
|
|
r1 = !r1 ? document == null || document.body == null ? value : document.body.scrollLeft : r1;
|
|
r1 = !r1 ? 0 : r1;
|
|
}
|
|
}
|
|
object.left = r1;
|
|
if (document.scrollingElement) {
|
|
r1 = document.scrollingElement.scrollTop;
|
|
} else {
|
|
pageYOffset = a0.pageYOffset;
|
|
value = undefined;
|
|
if (value !== pageYOffset) {
|
|
r1 = a0.pageYOffset;
|
|
} else {
|
|
r1 = (document == null ? value : document.documentElement.scrollTop) || (document == null || document.body == null || document.body.parentElement == null ? value : document.body.parentElement.scrollTop);
|
|
r1 = !r1 ? document == null || document.body == null ? value : document.body.scrollTop : r1;
|
|
r1 = !r1 ? 0 : r1;
|
|
}
|
|
}
|
|
object.top = r1;
|
|
return object;
|
|
}
|
|
|
|
function _fun11532() { // fn#11532, offset: 0x00c37b63, size: 4 bytes, params: 1, frame: 1
|
|
}
|
|
|
|
function _fun11582() { // fn#11582, offset: 0x00c37b63, size: 4 bytes, params: 1, frame: 1
|
|
}
|
|
|
|
function _fun11590() { // fn#11590, offset: 0x00c37b63, size: 4 bytes, params: 1, frame: 1
|
|
}
|
|
|
|
function _fun11609(a0) { // fn#11609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:73473, offset: 0x00db4887, size: 15 bytes, params: 2, frame: 9
|
|
return a0.unlock();
|
|
}
|
|
|
|
function* _fun11751(a0) { // fn#11751, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:119969, offset: 0x00db7f51, size: 38 bytes, params: 2, frame: 10
|
|
if (true) {
|
|
yield a0.text();
|
|
}
|
|
}
|
|
|
|
function value_11827(a0) { // fn#11827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:30363, offset: 0x00db9fd5, size: 165 bytes, params: 2, frame: 5
|
|
var previous;
|
|
var next;
|
|
var length;
|
|
let __ln = a0.__ln;
|
|
if (this.head) {
|
|
previous = __ln.previous;
|
|
if (previous) {
|
|
previous = __ln.previous;
|
|
next = __ln.next;
|
|
previous.next = next;
|
|
next = __ln.next;
|
|
if (next) {
|
|
__ln.next.previous = __ln.previous;
|
|
} else {
|
|
this.tail = __ln.previous;
|
|
}
|
|
} else {
|
|
this.head = __ln.next;
|
|
if (this.head) {
|
|
this.head.previous = null;
|
|
} else {
|
|
this.tail = null;
|
|
}
|
|
}
|
|
__ln = a0.__ln;
|
|
if (__ln) {
|
|
delete a0.__ln;
|
|
}
|
|
length = this.length;
|
|
this.length = typeof length === 'bigint' ? length - 1n : +length - 1;
|
|
}
|
|
}
|
|
|
|
function value_11883(a0) { // fn#11883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:57060, offset: 0x00dbc112, size: 134 bytes, params: 2, frame: 14
|
|
var crossOriginIframeMap;
|
|
var value;
|
|
if (a0.data.type === 'rrweb') {
|
|
if (a0.origin === a0.data.origin) {
|
|
if (a0.source) {
|
|
crossOriginIframeMap = this.crossOriginIframeMap;
|
|
value = crossOriginIframeMap.get(a0.source);
|
|
if (value) {
|
|
value = this.transformCrossOriginEvent(value, a0.data.event);
|
|
if (value) {
|
|
this.wrappedEmit(value, a0.data.isCheckout);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function value_11892(a0, a1, a2, a3) { // fn#11892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:59275, offset: 0x00dbc6bb, size: 193 bytes, params: 5, frame: 24
|
|
var r9;
|
|
var Array;
|
|
var isArray;
|
|
var property;
|
|
var value;
|
|
var getId;
|
|
var getIds;
|
|
var error;
|
|
const iterator = a3[Symbol.iterator]();
|
|
const iterator2 = iterator.next;
|
|
let r2 = iterator;
|
|
let item2 = Reflect.apply(iterator2, r2, []);
|
|
let item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
reducibleJoin2: while (true) {
|
|
if (item2 === undefined) {
|
|
return a1;
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleLoop2: while (true) {
|
|
try {
|
|
Array = global.Array;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
isArray = Array.isArray;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = a1[item];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value = Reflect.apply(isArray, Array, [property]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
reducibleJoin12: while (true) {
|
|
if (value) {
|
|
r9 = value;
|
|
break reducibleJoin12;
|
|
}
|
|
try {
|
|
property = a1[item];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
value = typeof property === 'number';
|
|
r9 = value;
|
|
break reducibleJoin12;
|
|
}
|
|
reducibleJoin1: while (true) {
|
|
if (r9) {
|
|
try {
|
|
Array = global.Array;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
isArray = Array.isArray;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = a1[item];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value = Reflect.apply(isArray, Array, [property]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (value) {
|
|
try {
|
|
getIds = a0.getIds;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = a1[item];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value = Reflect.apply(getIds, a0, [a2, property]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
a1[item] = value;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r2 = item2;
|
|
break reducibleJoin1;
|
|
}
|
|
try {
|
|
getId = a0.getId;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = a1[item];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value = Reflect.apply(getId, a0, [a2, property]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
a1[item] = value;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r2 = item2;
|
|
break reducibleJoin1;
|
|
}
|
|
r2 = item2;
|
|
break reducibleJoin1;
|
|
}
|
|
item2 = Reflect.apply(iterator2, r2, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
if (item2 === undefined) {
|
|
break reducibleLoop2;
|
|
}
|
|
continue reducibleLoop2;
|
|
}
|
|
return a1;
|
|
}
|
|
|
|
function _fun11916(a0) { // fn#11916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:62118, offset: 0x00dbcdb0, size: 20 bytes, params: 2, frame: 9
|
|
var error;
|
|
try {
|
|
a0();
|
|
} catch (error) {
|
|
}
|
|
}
|
|
|
|
function _fun11958(a0) { // fn#11958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:79974, offset: 0x00dbd913, size: 22 bytes, params: 2, frame: 2
|
|
const clickCount = a0.clickCount;
|
|
a0.clickCount = typeof clickCount === 'bigint' ? clickCount + 1n : +clickCount + 1;
|
|
}
|
|
|
|
function* _fun12022() { // fn#12022, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:92113, offset: 0x00dbed98, size: 66 bytes, params: 1, frame: 13
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
const _worker = this._worker;
|
|
yield _worker.postMessage('finish');
|
|
value = undefined;
|
|
if (true) {
|
|
this._earliestTimestamp = null;
|
|
this._totalSize = 0;
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function* _fun12037() { // fn#12037, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:93270, offset: 0x00dbf0b6, size: 57 bytes, params: 1, frame: 11
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
yield this.ensureWorkerIsLoaded();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
return this._used.finish();
|
|
}
|
|
|
|
function* _fun12094(a0) { // fn#12094, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:139573, offset: 0x00dc09f4, size: 83 bytes, params: 2, frame: 13
|
|
if (true) {
|
|
if (this._isEnabled) {
|
|
yield this.stop({reason: 'refresh session'});
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
this.initializeSampling(a0.id);
|
|
}
|
|
}
|
|
}
|
|
|
|
function value_12124() { // fn#12124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1223:144594, offset: 0x00dc1396, size: 136 bytes, params: 1, frame: 14
|
|
const object = {};
|
|
object.initialTimestamp = this._context.initialTimestamp;
|
|
object.initialUrl = this._context.initialUrl;
|
|
let Array = global.Array;
|
|
object.errorIds = Array.from(this._context.errorIds);
|
|
Array = global.Array;
|
|
object.traceIds = Array.from(this._context.traceIds);
|
|
object.urls = this._context.urls;
|
|
this._clearContext();
|
|
return object;
|
|
}
|
|
|
|
global.__d(_fun11410, 1096, [5, 15, 17, 18, 162, 57, 65, 6, 7, 826,
|
|
1041]) /* metro module 1096, dependencies: [5, 15, 17, 18, 162, 57, 65, 6, 7, 826, 1041] */;
|