decord/source/polyfillsNative.tsx

54 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-09-03 10:05:34 +00:00
// Module ID: 14187
// Function ID: 14188
// Dependencies: [3, 14188, 14258, 14276, 14279, 14282, 508, 1211, 2]
2026-07-23 10:11:24 +00:00
2026-09-03 10:05:34 +00:00
// Module 14187
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-09-02 09:53:35 +00:00
import Buffer from "Buffer" /* 508 */;
import q from "q" /* 1211 */;
2026-09-03 10:05:34 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct" /* 14282 */;
2026-08-24 06:08:38 +00:00
import timestamp from "timestamp" /* 3 */;
2026-09-03 10:05:34 +00:00
import module_14188 from "module_14188" /* 14188 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 14258 */;
import _typeof from "_typeof" /* 14276 */;
import GetOption from "GetOption" /* 14279 */;
2026-07-20 16:05:17 +00:00
2026-08-04 21:03:28 +00:00
if (typeof process === "undefined") {
2026-07-29 08:29:29 +00:00
const _window3 = window;
2026-07-20 16:05:17 +00:00
window.process = {};
}
window.process.nextTick = setImmediate;
if (null == global.location) {
2026-07-23 10:11:24 +00:00
global.location = { protocol: "https:", host: "discord.com" };
2026-07-20 16:05:17 +00:00
}
if (!global.self) {
global.self = global;
}
if (null == window.crypto) {
2026-08-24 06:08:38 +00:00
const _module5 = _isNativeReflectConstruct;
2026-07-29 08:29:29 +00:00
const _window = window;
2026-07-20 16:05:17 +00:00
window.crypto = global.crypto;
}
if (null == global.Buffer) {
2026-08-24 06:08:38 +00:00
global.Buffer = Buffer.Buffer;
2026-07-20 16:05:17 +00:00
}
if (null == global.__reanimatedWorkletInit) {
global.__reanimatedWorkletInit = () => {
};
}
const fn = function() {
return Array.from(this);
};
Map.prototype.toJSON = fn;
Set.prototype.toJSON = fn;
let tmp7 = null != window.TextEncoder;
if (tmp7) {
2026-07-29 08:29:29 +00:00
const _window2 = window;
2026-07-20 16:05:17 +00:00
tmp7 = null != window.TextDecoder;
}
if (!tmp7) {
2026-08-24 06:08:38 +00:00
const _module6 = q;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("polyfillsNative.tsx");