Files
discord-decomp/_bundle/Module539.js
T
2026-11-01 12:12:55 +02:00

110 lines
2.8 KiB
JavaScript

// Metro module 539 (f540).
import * as _GetIntrinsic from "./GetIntrinsic";
import * as _callBoundIntrinsic from "./callBoundIntrinsic";
import * as _Module541 from "./Module541";
import * as _inspect_ from "./inspect_";
import * as _Module577 from "./Module577";
let c512_2 = _GetIntrinsic("%WeakMap%", true);
let c512_3 = _callBoundIntrinsic("WeakMap.prototype.get", true);
let c512_4 = _callBoundIntrinsic("WeakMap.prototype.set", true);
let c512_5 = _callBoundIntrinsic("WeakMap.prototype.has", true);
let c512_6 = _callBoundIntrinsic("WeakMap.prototype.delete", true);
module.exports = c512_2 ? function getSideChannelWeakMap() {
let c12365_0, c12365_1, c12365_2;
const r0 = {
assert: function assert(a0) {
if (c12365_2.has(a0)) {
return void 0;
}
throw new _Module541("Side channel does not contain " + _inspect_(a0));
},
delete: function(a0) {
L8: {
L4: {
if (c512_2 && a0) {
if (typeof a0 !== "object" && typeof a0 !== "function") {
break L4;
}
if (c12365_0) {
return c512_6(c12365_0, a0);
}
break L8;
}
}
if (_Module577) {
if (c12365_1) {
return c12365_1.delete(a0);
}
}
}
return false;
},
get: function get(a0) {
let r8;
L9: {
L5: {
if (c512_2 && a0) {
if (typeof a0 !== "object" && typeof a0 !== "function") {
break L5;
}
if (c12365_0) {
r8 = c512_3(c12365_0, a0);
break L9;
}
}
}
r8 = c12365_1 && c12365_1.get(a0);
}
return r8;
},
has: function has(a0) {
let r8;
L9: {
L5: {
if (c512_2 && a0) {
if (typeof a0 !== "object" && typeof a0 !== "function") {
break L5;
}
if (c12365_0) {
r8 = c512_5(c12365_0, a0);
break L9;
}
}
}
r8 = !!c12365_1 && c12365_1.has(a0);
}
return r8;
},
set: function set(a0, a1) {
L11: {
L4: {
if (c512_2 && a0) {
if (typeof a0 !== "object" && typeof a0 !== "function") {
break L4;
}
let r20 = c12365_0;
if (!r20) {
const r23 = new c512_2();
c12365_0 = r23;
r20 = r23;
}
c512_4(r20, a0, a1);
break L11;
}
}
if (_Module577) {
let r14 = c12365_1;
if (!r14) {
const r17 = _Module577();
c12365_1 = r17;
r14 = r17;
}
r14.set(a0, a1);
}
}
}
};
c12365_2 = r0;
return r0;
} : _Module577;