152 lines
10 KiB
JavaScript
152 lines
10 KiB
JavaScript
/* Metro module 1660; source: unknown; dependencies: [1613, 1618, 1640, 1621, 1614, 1612, 1635] */
|
|
import * as Module01612Module from './module-01612.js'; /* Metro dependency 1612 */
|
|
import * as Module01613Module from './module-01613.js'; /* Metro dependency 1613 */
|
|
import * as ReanimatedModuleModule from './module-01618-ReanimatedModule.js'; /* Metro dependency 1618 */
|
|
import * as Module01621Module from './module-01621.js'; /* Metro dependency 1621 */
|
|
import * as MakeShareableModule from './module-01640-makeShareable.js'; /* Metro dependency 1640 */
|
|
|
|
function _fun18248(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#18248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1787:6, offset: 0x00e83d83, size: 177 bytes, params: 8, frame: 18
|
|
const env0_1 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = (Module01613Module).shouldBeUseWeb();
|
|
object = {code: 'function pnpm_runtimesTs1(){const{registerReanimatedError,registerLoggerConfig,config,setupCallGuard,setupConsole,initializer}=this.__closure;var _initializer;registerReanimatedError();registerLoggerConfig(config);setupCallGuard();setupConsole();(_initializer=initializer)===null||_initializer===void 0||_initializer();}'};
|
|
object = {code: "function runOnRuntime_Pnpm_runtimesTs2(workletRuntime,worklet){const{__DEV__,SHOULD_BE_USE_WEB,isWorkletFunction,makeShareableCloneOnUIRecursive,ReanimatedModule,makeShareableCloneRecursive}=this.__closure;if(__DEV__&&!SHOULD_BE_USE_WEB&&!isWorkletFunction(worklet)){throw new ReanimatedError('The function passed to `runOnRuntime` is not a worklet.'+(_WORKLET?' Please make sure that `processNestedWorklets` option in Reanimated Babel plugin is enabled.':''));}if(_WORKLET){return function(...args){return global._scheduleOnRuntime(workletRuntime,makeShareableCloneOnUIRecursive(function(){'worklet';worklet(...args);}));};}return function(...args){return ReanimatedModule.scheduleOnRuntime(workletRuntime,makeShareableCloneRecursive(function(){'worklet';worklet(...args);}));};}"};
|
|
object = {code: 'function pnpm_runtimesTs3(){const{worklet,args}=this.__closure;worklet(...args);}'};
|
|
object = {code: 'function pnpm_runtimesTs4(){const{worklet,args}=this.__closure;worklet(...args);}'};
|
|
value = _fun18249();
|
|
exports.createWorkletRuntime = createWorkletRuntime;
|
|
exports.runOnRuntime = value;
|
|
function _fun18249() { // fn#18249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1787:1439, offset: 0x00e83e34, size: 161 bytes, params: 1, frame: 16
|
|
const closure = function(a0, a1) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
return global._WORKLET ? _fun18251 : _fun18253;
|
|
};
|
|
const object = {__DEV__: false};
|
|
object.SHOULD_BE_USE_WEB = env0_3;
|
|
object.isWorkletFunction = (require(1635) /* metro dependency 1635 */).isWorkletFunction;
|
|
object.makeShareableCloneOnUIRecursive = (require(1640) /* metro dependency 1640 */).makeShareableCloneOnUIRecursive;
|
|
const ReanimatedModule = (ReanimatedModuleModule).ReanimatedModule;
|
|
object.ReanimatedModule = ReanimatedModule;
|
|
object.makeShareableCloneRecursive = (require(1640) /* metro dependency 1640 */).makeShareableCloneRecursive;
|
|
closure.__closure = object;
|
|
closure.__workletHash = 14671185280560;
|
|
closure.__initData = env0_5;
|
|
return closure;
|
|
function runOnRuntime(a0, a1) { // fn#18250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1787:1456, offset: 0x00e83ed5, size: 41 bytes, params: 3, frame: 3
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
return global._WORKLET ? _fun18251 : _fun18253;
|
|
function _fun18251() { // fn#18251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1787:1499, offset: 0x00e83efe, size: 180 bytes, params: 1, frame: 20
|
|
var environment;
|
|
var r1;
|
|
var value5;
|
|
let value = arguments.length;
|
|
const Array = global.Array;
|
|
const array = new Array(value);
|
|
const array2 = array;
|
|
const value4 = 0;
|
|
if (value4 < value) {
|
|
for (r1 = value4; true; r1 = value5) {
|
|
array[r1] = arguments[r1];
|
|
value5 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (!(value5 < value)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
const binding = env2_0;
|
|
const _scheduleOnRuntime = binding._scheduleOnRuntime;
|
|
const binding2 = array2;
|
|
const makeShareableCloneOnUIRecursive = MakeShareableModule.makeShareableCloneOnUIRecursive;
|
|
const pnpm_runtimesTs32 = pnpm_runtimesTs3;
|
|
pnpm_runtimesTs32.__closure = {worklet: require, args: array};
|
|
pnpm_runtimesTs32.__workletHash = 1376644884193;
|
|
pnpm_runtimesTs32.__initData = env2_6;
|
|
return Reflect.apply(_scheduleOnRuntime, binding, [binding2, Reflect.apply(makeShareableCloneOnUIRecursive,
|
|
MakeShareableModule, [pnpm_runtimesTs32])]);
|
|
function pnpm_runtimesTs3() { // fn#18252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1787:1656, offset: 0x00e83fb2, size: 29 bytes, params: 1, frame: 13
|
|
require.apply(undefined, env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun18253() { // fn#18253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1787:1790, offset: 0x00e83fcf, size: 194 bytes, params: 1, frame: 20
|
|
var environment;
|
|
var r1;
|
|
var value5;
|
|
let value = arguments.length;
|
|
const Array = global.Array;
|
|
const array = new Array(value);
|
|
const array2 = array;
|
|
const value4 = 0;
|
|
if (value4 < value) {
|
|
for (r1 = value4; true; r1 = value5) {
|
|
array[r1] = arguments[r1];
|
|
value5 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (!(value5 < value)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
const ReanimatedModule = (ReanimatedModuleModule).ReanimatedModule;
|
|
const scheduleOnRuntime = ReanimatedModule.scheduleOnRuntime;
|
|
const binding = array2;
|
|
const makeShareableCloneRecursive = MakeShareableModule.makeShareableCloneRecursive;
|
|
const pnpm_runtimesTs42 = pnpm_runtimesTs4;
|
|
pnpm_runtimesTs42.__closure = {worklet: require, args: array};
|
|
pnpm_runtimesTs42.__workletHash = 10918069222950;
|
|
pnpm_runtimesTs42.__initData = env2_7;
|
|
return Reflect.apply(scheduleOnRuntime, ReanimatedModule, [binding, Reflect.apply(makeShareableCloneRecursive,
|
|
MakeShareableModule, [pnpm_runtimesTs42])]);
|
|
function pnpm_runtimesTs4() { // fn#18254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1787:1965, offset: 0x00e83fb2, size: 29 bytes, params: 1, frame: 13
|
|
require.apply(undefined, env0_0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function createWorkletRuntime(a0, a1) { // fn#18255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1787:2447, offset: 0x00e84091, size: 232 bytes, params: 3, frame: 22
|
|
const env0_0 = a1;
|
|
const __reanimatedLoggerConfig = global.__reanimatedLoggerConfig;
|
|
const ReanimatedModule = (ReanimatedModuleModule).ReanimatedModule;
|
|
const createWorkletRuntime = ReanimatedModule.createWorkletRuntime;
|
|
const makeShareableCloneRecursive = MakeShareableModule.makeShareableCloneRecursive;
|
|
const pnpm_runtimesTs12 = pnpm_runtimesTs1;
|
|
const object = {};
|
|
object.registerReanimatedError = (require(1621) /* metro dependency 1621 */).registerReanimatedError;
|
|
object.registerLoggerConfig = (require(1614) /* metro dependency 1614 */).registerLoggerConfig;
|
|
object.config = __reanimatedLoggerConfig;
|
|
object.setupCallGuard = (require(1612) /* metro dependency 1612 */).setupCallGuard;
|
|
object.setupConsole = (require(1612) /* metro dependency 1612 */).setupConsole;
|
|
object.initializer = a1;
|
|
pnpm_runtimesTs12.__closure = object;
|
|
pnpm_runtimesTs12.__workletHash = 8531807001072;
|
|
pnpm_runtimesTs12.__initData = env0_4;
|
|
return Reflect.apply(createWorkletRuntime, ReanimatedModule, [a0, Reflect.apply(makeShareableCloneRecursive,
|
|
MakeShareableModule, [pnpm_runtimesTs12])]);
|
|
function pnpm_runtimesTs1() { // fn#18256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1787:2610, owner: createWorkletRuntime.pnpm_runtimesTs1, offset: 0x00e84179, size: 126 bytes, params: 1, frame: 15
|
|
let value = environment.__proto__;
|
|
(Module01621Module).registerReanimatedError();
|
|
value = require(1614) /* metro dependency 1614 */;
|
|
value.registerLoggerConfig(__reanimatedLoggerConfig);
|
|
(Module01612Module).setupCallGuard();
|
|
(Module01612Module).setupConsole();
|
|
if (require != null) {
|
|
require();
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun18248, 1660, [1613, 1618, 1640, 1621, 1614, 1612,
|
|
1635]) /* metro module 1660, dependencies: [1613, 1618, 1640, 1621, 1614, 1612, 1635] */;
|