2026-08-15 05:55:55 +00:00
// Module ID: 1684
// Function ID: 1685
2026-07-29 08:29:29 +00:00
// Name: freezeObjectInDev
2026-08-15 05:55:55 +00:00
// Dependencies: [32, 1657, 1685, 1665, 1679, 1670, 1658]
2026-07-29 08:29:29 +00:00
// Exports: makeShareableCloneOnUIRecursive
2026-08-15 05:55:55 +00:00
// Module 1684 (freezeObjectInDev)
2026-08-24 06:08:38 +00:00
import weakMap from "weakMap" /* 1685 */ ;
import closure _3 from "_slicedToArray" /* 32 */ ;
import isJest from "isJest" /* 1657 */ ;
2026-07-29 08:29:29 +00:00
2026-08-24 06:08:38 +00:00
require = arg1 ;
2026-07-29 08:29:29 +00:00
function freezeObjectInDev ( arg0 ) {
}
isJest = isJest . shouldBeUseWeb ( ) ;
const REANIMATED _MAGIC _KEY = "REANIMATED_MAGIC_KEY" ;
function isHostObject ( arg0 ) {
return REANIMATED _MAGIC _KEY in arg0 ;
}
isHostObject . _ _closure = { MAGIC _KEY : "REANIMATED_MAGIC_KEY" } ;
isHostObject . _ _workletHash = 10372729533958 ;
isHostObject . _ _initData = { code : "function isHostObject_Pnpm_shareablesTs1(value){const{MAGIC_KEY}=this.__closure;return MAGIC_KEY in value;}" } ;
let fn = function u ( ) {
const proxy = new Proxy ( { } , {
get ( arg0 , arg1 ) {
if ( "_isReanimatedSharedValue" !== arg1 ) {
if ( "__remoteFunction" !== arg1 ) {
const _String = String ;
const _HermesInternal = HermesInternal ;
2026-08-15 05:55:55 +00:00
const reanimatedError = new callback ( 1665 ) . ReanimatedError ( "Trying to access property `" + String ( arg1 ) + "` of an object which cannot be sent to the UI runtime." ) ;
2026-07-29 08:29:29 +00:00
throw reanimatedError ;
}
}
return false ;
} ,
set ( ) {
2026-08-15 05:55:55 +00:00
const reanimatedError = new callback ( 1665 ) . ReanimatedError ( "Trying to write to an object which cannot be sent to the UI runtime." ) ;
2026-07-29 08:29:29 +00:00
throw reanimatedError ;
}
} ) ;
return proxy ;
} ;
fn . _ _closure = { } ;
fn . _ _workletHash = 15880119471501 ;
fn . _ _initData = { code : "function pnpm_shareablesTs2(){return new Proxy({},{get:function(_,prop){if(prop==='_isReanimatedSharedValue'||prop==='__remoteFunction'){return false;}throw new ReanimatedError(\"Trying to access property `\"+String(prop)+\"` of an object which cannot be sent to the UI runtime.\");},set:function(){throw new ReanimatedError('Trying to write to an object which cannot be sent to the UI runtime.');}});}" } ;
let closure _8 = { _ _init : fn } ;
let closure _9 = [ "Int8Array" , "Uint8Array" , "Uint8ClampedArray" , "Int16Array" , "Uint16Array" , "Int32Array" , "Uint32Array" , "Float32Array" , "Float64Array" , "BigInt64Array" , "BigUint64Array" , "DataView" ] ;
const tmp3 = isJest ? ( function makeShareableCloneRecursiveWeb ( arg0 ) {
return arg0 ;
2026-08-08 06:10:11 +00:00
} ) : ( function makeShareableCloneRecursiveNative ( onUpdate , flag ) {
2026-07-29 08:29:29 +00:00
if ( flag === undefined ) {
flag = false ;
}
let num = arg2 ;
if ( arg2 === undefined ) {
num = 0 ;
}
if ( num >= 30 ) {
if ( 30 === num ) {
2026-08-24 06:08:38 +00:00
c7 = onUpdate ;
2026-08-08 06:10:11 +00:00
} else if ( onUpdate === c7 ) {
2026-07-29 08:29:29 +00:00
let reanimatedError = new name ( stack [ 3 ] ) . ReanimatedError ( "Trying to convert a cyclic object to a shareable. This is not supported." ) ;
throw reanimatedError ;
}
} else {
c7 = undefined ;
}
2026-08-08 06:10:11 +00:00
if ( typeof onUpdate === "object" ) {
if ( null !== onUpdate ) {
2026-07-29 08:29:29 +00:00
let shareableMappingCache13 = name ;
let result = stack ;
const shareableMappingCache14 = name ( stack [ 2 ] ) . shareableMappingCache ;
2026-08-08 06:10:11 +00:00
let value = shareableMappingCache14 . get ( onUpdate ) ;
2026-07-29 08:29:29 +00:00
if ( value === name ( stack [ 2 ] ) . shareableMappingFlag ) {
2026-08-08 06:10:11 +00:00
value = onUpdate ;
2026-07-29 08:29:29 +00:00
}
if ( undefined !== value ) {
return value ;
} else {
const _Array = Array ;
2026-08-08 06:10:11 +00:00
if ( Array . isArray ( onUpdate ) ) {
2026-07-29 08:29:29 +00:00
let buffer = flag ;
name = num ;
2026-08-24 06:08:38 +00:00
const mapped = onUpdate . map ( ( arg0 ) => closure _1 _10 ( arg0 , buffer , name + 1 ) ) ;
2026-07-29 08:29:29 +00:00
const WorkletsModule4 = shareableMappingCache13 ( result [ 5 ] ) . WorkletsModule ;
2026-08-08 06:10:11 +00:00
let shareableClone = WorkletsModule4 . makeShareableClone ( mapped , flag , onUpdate ) ;
2026-07-29 08:29:29 +00:00
const shareableMappingCache12 = shareableMappingCache13 ( result [ 2 ] ) . shareableMappingCache ;
2026-08-08 06:10:11 +00:00
num = shareableMappingCache12 . set ( onUpdate , shareableClone ) ;
2026-07-29 08:29:29 +00:00
shareableMappingCache13 = shareableMappingCache13 ( result [ 2 ] ) . shareableMappingCache ;
result = shareableMappingCache13 . set ( shareableClone ) ;
let shareableClone1 = shareableClone ;
} else {
2026-08-08 06:10:11 +00:00
if ( typeof onUpdate === "function" ) {
2026-07-29 08:29:29 +00:00
let result1 = shareableMappingCache13 ( result [ 4 ] ) ;
2026-08-08 06:10:11 +00:00
if ( ! result1 . isWorkletFunction ( onUpdate ) ) {
2026-07-29 08:29:29 +00:00
let WorkletsModule = shareableMappingCache13 ( result [ 5 ] ) . WorkletsModule ;
2026-08-08 06:10:11 +00:00
shareableClone1 = WorkletsModule . makeShareableClone ( onUpdate , flag , onUpdate ) ;
2026-07-29 08:29:29 +00:00
let shareableMappingCache = shareableMappingCache13 ( result [ 2 ] ) . shareableMappingCache ;
2026-08-08 06:10:11 +00:00
const result2 = shareableMappingCache . set ( onUpdate , shareableClone1 ) ;
2026-07-29 08:29:29 +00:00
let shareableMappingCache2 = shareableMappingCache13 ( result [ 2 ] ) . shareableMappingCache ;
const result3 = shareableMappingCache2 . set ( shareableClone1 ) ;
}
}
2026-08-04 21:03:28 +00:00
if ( typeof isHostObject !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
2026-08-08 06:10:11 +00:00
if ( REANIMATED _MAGIC _KEY in onUpdate ) {
2026-07-29 08:29:29 +00:00
const WorkletsModule3 = shareableMappingCache13 ( result [ 5 ] ) . WorkletsModule ;
2026-08-08 06:10:11 +00:00
const shareableClone2 = WorkletsModule3 . makeShareableClone ( onUpdate , flag , onUpdate ) ;
2026-07-29 08:29:29 +00:00
const shareableMappingCache10 = shareableMappingCache13 ( result [ 2 ] ) . shareableMappingCache ;
2026-08-08 06:10:11 +00:00
const result4 = shareableMappingCache10 . set ( onUpdate , shareableClone2 ) ;
2026-07-29 08:29:29 +00:00
const shareableMappingCache11 = shareableMappingCache13 ( result [ 2 ] ) . shareableMappingCache ;
const result5 = shareableMappingCache11 . set ( shareableClone2 ) ;
let tmp17 = shareableClone2 ;
} else {
const _Object = Object ;
const _Object2 = Object ;
2026-08-08 06:10:11 +00:00
if ( Object . getPrototypeOf ( onUpdate ) === Object . prototype ) {
if ( onUpdate . _ _workletContextObjectFactory ) {
const _ _workletContextObjectFactory = onUpdate . _ _workletContextObjectFactory ;
2026-07-29 08:29:29 +00:00
buffer = _ _workletContextObjectFactory ;
let obj = { _ _init : null } ;
const fn4 = function c ( ) {
return buffer ( ) ;
} ;
obj = { workletContextObjectFactory : null } ;
obj [ 0 ] = _ _workletContextObjectFactory ;
fn4 . _ _closure = obj ;
fn4 . _ _workletHash = 16264240301234 ;
fn4 . _ _initData = closure _11 ;
obj [ 0 ] = fn4 ;
2026-08-24 06:08:38 +00:00
const tmp37 = callback ( obj ) ;
2026-07-29 08:29:29 +00:00
const shareableMappingCache9 = shareableMappingCache13 ( result [ 2 ] ) . shareableMappingCache ;
2026-08-08 06:10:11 +00:00
const result6 = shareableMappingCache9 . set ( onUpdate , tmp37 ) ;
2026-07-29 08:29:29 +00:00
tmp17 = tmp37 ;
}
}
const _Object3 = Object ;
const _Object4 = Object ;
2026-08-08 06:10:11 +00:00
if ( Object . getPrototypeOf ( onUpdate ) === Object . prototype ) {
2026-07-29 08:29:29 +00:00
const result7 = shareableMappingCache13 ( result [ 4 ] ) ;
2026-08-08 06:10:11 +00:00
if ( result7 . isWorkletFunction ( onUpdate ) ) {
2026-07-29 08:29:29 +00:00
tmp17 = ( function cloneWorklet ( _ _stackDetails , flag , arg2 ) {
if ( _ _stackDetails . _ _stackDetails ) {
delete tmp2 [ tmp ] ;
}
const obj = { _ _initData : callback2 ( _ _stackDetails . _ _initData , true , arg2 + 1 ) } ;
const entries = Object . entries ( _ _stackDetails ) ;
while ( tmp4 !== undefined ) {
let tmp6 = callback ;
let tmp7 = callback ( tmp5 , 2 ) ;
[ tmp8 , tmp10 ] = tmp7 ;
let tmp11 = "__initData" === tmp8 ;
let tmp9 = tmp8 ;
if ( tmp11 ) {
tmp11 = undefined !== obj . _ _initData ;
}
if ( ! tmp11 ) {
let tmp12 = tmp8 ;
let tmp13 = callback2 ;
let tmp14 = tmp10 ;
obj [ tmp9 ] = callback2 ( tmp10 , flag , arg2 + 1 ) ;
}
continue ;
}
const WorkletsModule = name ( stack [ 5 ] ) . WorkletsModule ;
const shareableClone = WorkletsModule . makeShareableClone ( obj , true , _ _stackDetails ) ;
const shareableMappingCache = name ( stack [ 2 ] ) . shareableMappingCache ;
const result = shareableMappingCache . set ( _ _stackDetails , shareableClone ) ;
const shareableMappingCache2 = name ( stack [ 2 ] ) . shareableMappingCache ;
const result1 = shareableMappingCache2 . set ( shareableClone ) ;
callback3 ( 0 ) ;
return shareableClone ;
2026-08-08 06:10:11 +00:00
} ) ( onUpdate , flag , num ) ;
2026-07-29 08:29:29 +00:00
}
}
const _Object5 = Object ;
const _Object6 = Object ;
2026-08-08 06:10:11 +00:00
if ( Object . getPrototypeOf ( onUpdate ) !== Object . prototype ) {
if ( typeof onUpdate !== "function" ) {
2026-07-29 08:29:29 +00:00
const _RegExp = RegExp ;
2026-08-08 06:10:11 +00:00
if ( onUpdate instanceof RegExp ) {
const source = onUpdate . source ;
2026-07-29 08:29:29 +00:00
buffer = source ;
2026-08-08 06:10:11 +00:00
const flags = onUpdate . flags ;
2026-07-29 08:29:29 +00:00
name = flags ;
2026-08-24 06:08:38 +00:00
obj1 = { _ _init : null } ;
2026-07-29 08:29:29 +00:00
const fn3 = function s ( ) {
const regExp = new RegExp ( buffer , name ) ;
return regExp ;
} ;
const obj2 = { pattern : null , flags : null } ;
obj2 [ 0 ] = source ;
obj2 [ 1 ] = flags ;
fn3 . _ _closure = obj2 ;
fn3 . _ _workletHash = 17343605339188 ;
fn3 . _ _initData = closure _12 ;
obj1 [ 0 ] = fn3 ;
2026-08-24 06:08:38 +00:00
const tmp33 = callback ( obj1 ) ;
2026-07-29 08:29:29 +00:00
const shareableMappingCache8 = shareableMappingCache13 ( result [ 2 ] ) . shareableMappingCache ;
2026-08-08 06:10:11 +00:00
const result8 = shareableMappingCache8 . set ( onUpdate , tmp33 ) ;
2026-07-29 08:29:29 +00:00
tmp17 = tmp33 ;
} else {
const _Error = Error ;
2026-08-08 06:10:11 +00:00
if ( onUpdate instanceof Error ) {
const name2 = onUpdate . name ;
2026-07-29 08:29:29 +00:00
buffer = name2 ;
2026-08-08 06:10:11 +00:00
const message = onUpdate . message ;
2026-07-29 08:29:29 +00:00
name = message ;
2026-08-08 06:10:11 +00:00
stack = onUpdate . stack ;
2026-07-29 08:29:29 +00:00
const obj3 = { _ _init : null } ;
const fn2 = function u ( ) {
2026-08-24 06:08:38 +00:00
error = new Error ( ) ;
2026-07-29 08:29:29 +00:00
error . name = buffer ;
error . message = name ;
error . stack = stack ;
return error ;
} ;
const obj4 = { name : null , message : null , stack : null } ;
obj4 [ 0 ] = name2 ;
obj4 [ 1 ] = message ;
obj4 [ 2 ] = stack ;
fn2 . _ _closure = obj4 ;
fn2 . _ _workletHash = 1273124072033 ;
fn2 . _ _initData = closure _13 ;
obj3 [ 0 ] = fn2 ;
2026-08-24 06:08:38 +00:00
const tmp29 = callback ( obj3 ) ;
2026-07-29 08:29:29 +00:00
const shareableMappingCache7 = shareableMappingCache13 ( result [ 2 ] ) . shareableMappingCache ;
2026-08-08 06:10:11 +00:00
const result9 = shareableMappingCache7 . set ( onUpdate , tmp29 ) ;
2026-07-29 08:29:29 +00:00
tmp17 = tmp29 ;
} else {
const _ArrayBuffer = ArrayBuffer ;
2026-08-08 06:10:11 +00:00
if ( onUpdate instanceof ArrayBuffer ) {
2026-07-29 08:29:29 +00:00
const WorkletsModule2 = shareableMappingCache13 ( result [ 5 ] ) . WorkletsModule ;
2026-08-08 06:10:11 +00:00
const shareableClone3 = WorkletsModule2 . makeShareableClone ( onUpdate , flag , onUpdate ) ;
2026-07-29 08:29:29 +00:00
const shareableMappingCache5 = shareableMappingCache13 ( result [ 2 ] ) . shareableMappingCache ;
2026-08-08 06:10:11 +00:00
const result10 = shareableMappingCache5 . set ( onUpdate , shareableClone3 ) ;
2026-07-29 08:29:29 +00:00
const shareableMappingCache6 = shareableMappingCache13 ( result [ 2 ] ) . shareableMappingCache ;
const result11 = shareableMappingCache6 . set ( shareableClone3 ) ;
tmp17 = shareableClone3 ;
} else {
const _ArrayBuffer2 = ArrayBuffer ;
2026-08-08 06:10:11 +00:00
if ( ArrayBuffer . isView ( onUpdate ) ) {
buffer = onUpdate . buffer ;
name = onUpdate . constructor . name ;
2026-07-29 08:29:29 +00:00
const obj5 = { _ _init : null } ;
2026-08-08 06:10:11 +00:00
const fn = function s ( ) {
2026-08-24 06:08:38 +00:00
if ( closure _1 _9 . includes ( name ) ) {
2026-07-29 08:29:29 +00:00
let tmp10 = buffer [ tmp ] ;
if ( undefined === tmp10 ) {
const _HermesInternal2 = HermesInternal ;
const reanimatedError = new name ( stack [ 3 ] ) . ReanimatedError ( "[Reanimated] Constructor for `" + tmp + "` not found." ) ;
throw reanimatedError ;
} else {
tmp10 = new tmp10 ( buffer ) ;
return tmp10 ;
}
} else {
const _HermesInternal = HermesInternal ;
const reanimatedError1 = new name ( stack [ 3 ] ) . ReanimatedError ( "[Reanimated] Invalid array view name `" + tmp + "`." ) ;
throw reanimatedError1 ;
}
} ;
const obj6 = { VALID _ARRAY _VIEWS _NAMES : null , typeName : null , buffer : null } ;
obj6 [ 0 ] = closure _9 ;
obj6 [ 1 ] = name ;
obj6 [ 2 ] = buffer ;
fn . _ _closure = obj6 ;
fn . _ _workletHash = 2440560686150 ;
fn . _ _initData = closure _14 ;
obj5 [ 0 ] = fn ;
2026-08-24 06:08:38 +00:00
const tmp22 = callback ( obj5 ) ;
2026-07-29 08:29:29 +00:00
const shareableMappingCache4 = shareableMappingCache13 ( result [ 2 ] ) . shareableMappingCache ;
2026-08-08 06:10:11 +00:00
const result12 = shareableMappingCache4 . set ( onUpdate , tmp22 ) ;
2026-07-29 08:29:29 +00:00
tmp17 = tmp22 ;
} else {
2026-08-24 06:08:38 +00:00
tmp17 = callback ( closure _8 ) ;
2026-07-29 08:29:29 +00:00
const shareableMappingCache3 = shareableMappingCache13 ( result [ 2 ] ) . shareableMappingCache ;
2026-08-08 06:10:11 +00:00
const result13 = shareableMappingCache3 . set ( onUpdate , tmp17 ) ;
2026-07-29 08:29:29 +00:00
}
}
}
}
}
}
2026-08-08 06:10:11 +00:00
tmp17 = ( function clonePlainJSObject ( onUpdate , flag , arg2 ) {
2026-07-29 08:29:29 +00:00
const obj = { } ;
2026-08-08 06:10:11 +00:00
const entries = Object . entries ( onUpdate ) ;
2026-07-29 08:29:29 +00:00
while ( tmp2 !== undefined ) {
let tmp4 = callback ;
let tmp5 = callback ( tmp3 , 2 ) ;
[ tmp6 , tmp8 ] = tmp5 ;
let tmp9 = "__initData" === tmp6 ;
let tmp7 = tmp6 ;
if ( tmp9 ) {
tmp9 = undefined !== obj . _ _initData ;
}
if ( ! tmp9 ) {
let tmp10 = tmp6 ;
let tmp11 = callback2 ;
let tmp12 = tmp8 ;
obj [ tmp7 ] = callback2 ( tmp8 , flag , arg2 + 1 ) ;
}
continue ;
}
const WorkletsModule = name ( stack [ 5 ] ) . WorkletsModule ;
2026-08-08 06:10:11 +00:00
const shareableClone = WorkletsModule . makeShareableClone ( obj , flag , onUpdate ) ;
2026-07-29 08:29:29 +00:00
const shareableMappingCache = name ( stack [ 2 ] ) . shareableMappingCache ;
2026-08-08 06:10:11 +00:00
const result = shareableMappingCache . set ( onUpdate , shareableClone ) ;
2026-07-29 08:29:29 +00:00
const shareableMappingCache2 = name ( stack [ 2 ] ) . shareableMappingCache ;
const result1 = shareableMappingCache2 . set ( shareableClone ) ;
callback3 ( 0 ) ;
return shareableClone ;
2026-08-08 06:10:11 +00:00
} ) ( onUpdate , flag , num ) ;
2026-07-29 08:29:29 +00:00
}
}
}
}
}
const WorkletsModule5 = name ( stack [ 5 ] ) . WorkletsModule ;
2026-08-08 06:10:11 +00:00
return WorkletsModule5 . makeShareableClone ( onUpdate , flag ) ;
2026-07-29 08:29:29 +00:00
} ) ;
2026-08-24 06:08:38 +00:00
let closure _10 = tmp3 ;
2026-07-29 08:29:29 +00:00
let closure _11 = { code : "function pnpm_shareablesTs3(){const{workletContextObjectFactory}=this.__closure;return workletContextObjectFactory();}" } ;
let closure _12 = { code : "function pnpm_shareablesTs4(){const{pattern,flags}=this.__closure;return new RegExp(pattern,flags);}" } ;
let closure _13 = { code : "function pnpm_shareablesTs5(){const{name,message,stack}=this.__closure;const error=new Error();error.name=name;error.message=message;error.stack=stack;return error;}" } ;
let closure _14 = { code : "function pnpm_shareablesTs6(){const{VALID_ARRAY_VIEWS_NAMES,typeName,buffer}=this.__closure;if(!VALID_ARRAY_VIEWS_NAMES.includes(typeName)){throw new ReanimatedError(\"[Reanimated] Invalid array view name `\"+typeName+\"`.\");}const constructor=global[typeName];if(constructor===undefined){throw new ReanimatedError(\"[Reanimated] Constructor for `\"+typeName+\"` not found.\");}return new constructor(buffer);}" } ;
function isRemoteFunction ( _ _remoteFunction ) {
return _ _remoteFunction . _ _remoteFunction ;
}
isRemoteFunction . _ _closure = { } ;
isRemoteFunction . _ _workletHash = 12817663616448 ;
isRemoteFunction . _ _initData = { code : "function isRemoteFunction_Pnpm_shareablesTs7(value){return!!value.__remoteFunction;}" } ;
function makeShareableCloneOnUIRecursive ( fn ) {
if ( isJest ) {
return fn ;
} else {
2026-08-04 21:03:28 +00:00
function cloneRecursive ( fn ) {
if ( typeof fn !== "object" ) {
if ( typeof fn !== "function" ) {
return cloneRecursive . _makeShareableClone ( fn , undefined ) ;
2026-07-29 08:29:29 +00:00
}
}
2026-08-24 06:08:38 +00:00
if ( closure _1 _6 ( fn ) ) {
2026-08-04 21:03:28 +00:00
return cloneRecursive . _makeShareableClone ( fn , undefined ) ;
2026-08-24 06:08:38 +00:00
} else if ( closure _1 _15 ( fn ) ) {
2026-08-04 21:03:28 +00:00
return fn . _ _remoteFunction ;
2026-07-29 08:29:29 +00:00
} else {
const _Array = Array ;
2026-08-04 21:03:28 +00:00
if ( Array . isArray ( fn ) ) {
return cloneRecursive . _makeShareableClone ( fn . map ( cloneRecursive ) , undefined ) ;
2026-07-29 08:29:29 +00:00
} else {
const obj = { } ;
const _Object = Object ;
2026-08-04 21:03:28 +00:00
const entries = Object . entries ( fn ) ;
2026-07-29 08:29:29 +00:00
const tmp5 = entries [ Symbol . iterator ] ( ) ;
while ( tmp5 !== undefined ) {
2026-08-24 06:08:38 +00:00
let tmp9 = closure _1 _3 ;
let tmp10 = closure _1 _3 ( tmp7 , 2 ) ;
2026-07-29 08:29:29 +00:00
let tmp11 = cloneRecursive ;
obj [ tmp10 [ 0 ] ] = cloneRecursive ( tmp10 [ 1 ] ) ;
continue ;
}
2026-08-04 21:03:28 +00:00
return cloneRecursive . _makeShareableClone ( obj , fn ) ;
2026-07-29 08:29:29 +00:00
}
}
}
return cloneRecursive ( fn ) ;
}
}
makeShareableCloneOnUIRecursive . _ _closure = { SHOULD _BE _USE _WEB : isJest , isHostObject , isRemoteFunction } ;
makeShareableCloneOnUIRecursive . _ _workletHash = 10912061747670 ;
makeShareableCloneOnUIRecursive . _ _initData = { code : "function makeShareableCloneOnUIRecursive_Pnpm_shareablesTs8(value){const{SHOULD_BE_USE_WEB,isHostObject,isRemoteFunction}=this.__closure;if(SHOULD_BE_USE_WEB){return value;}function cloneRecursive(value){if(typeof value==='object'&&value!==null||typeof value==='function'){if(isHostObject(value)){return global._makeShareableClone(value,undefined);}if(isRemoteFunction(value)){return value.__remoteFunction;}if(Array.isArray(value)){return global._makeShareableClone(value.map(cloneRecursive),undefined);}const toAdapt={};for(const[key,element]of Object.entries(value)){toAdapt[key]=cloneRecursive(element);}return global._makeShareableClone(toAdapt,value);}return global._makeShareableClone(value,undefined);}return cloneRecursive(value);}" } ;
let closure _17 = { code : "function pnpm_shareablesTs9(){const{value}=this.__closure;return value;}" } ;
export const makeShareableCloneRecursive = tmp3 ;
export { makeShareableCloneOnUIRecursive } ;
export const makeShareable = isJest ? ( function makeShareableJS ( arg0 ) {
return arg0 ;
} ) : ( function makeShareableNative ( arg0 ) {
2026-08-24 06:08:38 +00:00
closure _0 = arg0 ;
const shareableMappingCache = weakMap . shareableMappingCache ;
2026-07-29 08:29:29 +00:00
if ( shareableMappingCache . get ( arg0 ) ) {
return arg0 ;
} else {
let obj = { _ _init : null } ;
const fn = function n ( ) {
return closure _0 ;
} ;
obj = { value : null } ;
obj [ 0 ] = arg0 ;
fn . _ _closure = obj ;
fn . _ _workletHash = 5731865988281 ;
fn . _ _initData = closure _17 ;
obj [ 0 ] = fn ;
2026-08-24 06:08:38 +00:00
const shareableMappingCache2 = weakMap . shareableMappingCache ;
const result = shareableMappingCache2 . set ( arg0 , callback ( obj ) ) ;
2026-07-29 08:29:29 +00:00
return arg0 ;
}
2026-08-24 06:08:38 +00:00
const tmp = require ;
2026-07-29 08:29:29 +00:00
} ) ;