decord/source/polyfillsNative.tsx

54 lines
1.4 KiB
TypeScript
Raw Normal View History

// Module ID: 14296
// Function ID: 14297
// Dependencies: [3, 14297, 14367, 14385, 14388, 14391, 1253, 1238, 2]
2026-07-23 10:11:24 +00:00
// Module 14296
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import q from "q" /* 1238 */;
import Buffer from "Buffer" /* 1253 */;
import _isNativeReflectConstruct from "_isNativeReflectConstruct" /* 14391 */;
2026-08-24 06:08:38 +00:00
import timestamp from "timestamp" /* 3 */;
import module_14297 from "module_14297" /* 14297 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 14367 */;
import _typeof from "_typeof" /* 14385 */;
import GetOption from "GetOption" /* 14388 */;
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");