decord/source/polyfillsNative.tsx

50 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 13358
// Function ID: 13359
// Dependencies: [3, 13359, 13429, 13447, 13450, 13453, 511, 1214, 2]
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
// Module 13358
import timestamp from "_typeof";
import module_13359 from "module_13359";
2026-07-23 10:11:24 +00:00
import get_ActivityIndicator from "get ActivityIndicator";
2026-07-29 08:29:29 +00:00
import _typeof from "_typeof";
import GetOption from "GetOption";
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
if (typeof process !== "ta") {
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-07-29 08:29:29 +00:00
const _module5 = require("_isNativeReflectConstruct");
const _window = window;
2026-07-20 16:05:17 +00:00
window.crypto = global.crypto;
}
if (null == global.Buffer) {
2026-07-29 08:29:29 +00:00
global.Buffer = require("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-07-29 08:29:29 +00:00
const _module6 = require("q");
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const result = require("get ActivityIndicator").fileFinishedImporting("polyfillsNative.tsx");