2026-07-20 16:05:17 +00:00
// Module ID: 1612
2026-07-25 08:10:48 +00:00
// Function ID: 17894
2026-07-20 16:05:17 +00:00
// Name: isPlainJSObject
2026-07-23 10:11:24 +00:00
// Dependencies: [57, 1585, 1613, 1593, 1607, 1598, 1586]
2026-07-20 16:05:17 +00:00
// Module 1612 (isPlainJSObject)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray" ;
import isJest from "isJest" ;
const require = arg1 ;
2026-07-20 16:05:17 +00:00
function isPlainJSObject ( _ _workletContextObjectFactory ) {
return Object . getPrototypeOf ( _ _workletContextObjectFactory ) === Object . prototype ;
}
function freezeObjectInDev ( arg0 ) {
}
2026-07-23 10:11:24 +00:00
isJest = isJest . shouldBeUseWeb ( ) ;
2026-07-20 16:05:17 +00:00
let closure _5 = { code : "function isHostObject_Pnpm_shareablesTs1(value){const{MAGIC_KEY}=this.__closure;return MAGIC_KEY in value;}" } ;
2026-07-23 10:11:24 +00:00
let closure _6 = ( ( ) => {
2026-07-20 16:05:17 +00:00
function isHostObject ( arg0 ) {
return "REANIMATED_MAGIC_KEY" in arg0 ;
}
isHostObject . _ _closure = { MAGIC _KEY : "REANIMATED_MAGIC_KEY" } ;
isHostObject . _ _workletHash = 10372729533958 ;
isHostObject . _ _initData = closure _5 ;
return isHostObject ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
2026-07-20 16:05:17 +00:00
/* worklet (recovered source) */ 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.' ) ; } } ) ; }
pnpm _shareablesTs2 . _ _closure = { } ;
pnpm _shareablesTs2 . _ _workletHash = 15880119471501 ;
pnpm _shareablesTs2 . _ _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 : pnpm _shareablesTs2 } ;
2026-07-23 10:11:24 +00:00
let closure _9 = [ "Int8Array" , "Uint8Array" , "Uint8ClampedArray" , "Int16Array" , "Uint16Array" , "Int32Array" , "Uint32Array" , "Float32Array" , "Float64Array" , "BigInt64Array" , "BigUint64Array" , "DataView" ] ;
let tmp3 = isJest ? ( function makeShareableCloneRecursiveWeb ( arg0 ) {
2026-07-20 16:05:17 +00:00
return arg0 ;
2026-07-23 10:11:24 +00:00
} ) : ( function makeShareableCloneRecursiveNative ( _ _workletContextObjectFactory ) {
let tmp49 ;
let tmp51 ;
let tmp80 ;
let tmp82 ;
const tmp2 = arguments . length > 1 && undefined !== arguments [ 1 ] && arguments [ 1 ] ;
2026-07-20 16:05:17 +00:00
let num = 0 ;
if ( arguments . length > 2 ) {
num = 0 ;
if ( undefined !== arguments [ 2 ] ) {
num = arguments [ 2 ] ;
}
}
if ( num >= 30 ) {
if ( 30 === num ) {
2026-07-23 10:11:24 +00:00
let c7 = _ _workletContextObjectFactory ;
} else if ( _ _workletContextObjectFactory === c7 ) {
let ReanimatedError = require ( 1593 ) /* processStack */ . ReanimatedError ;
let prototype = ReanimatedError . prototype ;
let reanimatedError = new ReanimatedError ( "Trying to convert a cyclic object to a shareable. This is not supported." ) ;
2026-07-20 16:05:17 +00:00
throw reanimatedError ;
}
} else {
2026-07-23 10:11:24 +00:00
c7 = undefined ;
2026-07-20 16:05:17 +00:00
}
if ( "object" === typeof _ _workletContextObjectFactory ) {
if ( null !== _ _workletContextObjectFactory ) {
2026-07-23 10:11:24 +00:00
let shareableClone1 = require ;
2026-07-20 16:05:17 +00:00
shareableClone1 = dependencyMap ;
2026-07-23 10:11:24 +00:00
const shareableMappingCache12 = require ( 1613 ) /* weakMap */ . shareableMappingCache ;
2026-07-20 16:05:17 +00:00
let value = shareableMappingCache12 . get ( _ _workletContextObjectFactory ) ;
2026-07-23 10:11:24 +00:00
if ( value === require ( 1613 ) /* weakMap */ . shareableMappingFlag ) {
2026-07-20 16:05:17 +00:00
value = _ _workletContextObjectFactory ;
}
if ( undefined !== value ) {
return value ;
} else {
shareableClone1 = globalThis ;
const _Array = Array ;
if ( Array . isArray ( _ _workletContextObjectFactory ) ) {
2026-07-23 10:11:24 +00:00
let shareableClone = ( function cloneArray ( arr , arg1 , arg2 ) {
let closure _0 = arg1 ;
let closure _1 = arg2 ;
const mapped = arr . map ( ( arg0 ) => outer2 _10 ( arg0 , closure _0 , closure _1 + 1 ) ) ;
const WorkletsModule = outer1 _1 ( outer1 _2 [ 5 ] ) . WorkletsModule ;
const shareableClone = WorkletsModule . makeShareableClone ( mapped , arg1 , arr ) ;
const shareableMappingCache = outer1 _1 ( outer1 _2 [ 2 ] ) . shareableMappingCache ;
2026-07-20 16:05:17 +00:00
const result = shareableMappingCache . set ( arr , shareableClone ) ;
2026-07-23 10:11:24 +00:00
const shareableMappingCache2 = outer1 _1 ( outer1 _2 [ 2 ] ) . shareableMappingCache ;
2026-07-20 16:05:17 +00:00
const result1 = shareableMappingCache2 . set ( shareableClone ) ;
2026-07-23 10:11:24 +00:00
outer1 _20 ( undefined ) ;
2026-07-20 16:05:17 +00:00
return shareableClone ;
2026-07-23 10:11:24 +00:00
} ) ( _ _workletContextObjectFactory , tmp2 , num ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
if ( tmp11 ) {
let obj = require ( 1607 ) /* isWorkletFunction */ ;
2026-07-20 16:05:17 +00:00
if ( ! obj . isWorkletFunction ( _ _workletContextObjectFactory ) ) {
2026-07-23 10:11:24 +00:00
let WorkletsModule = require ( 1598 ) /* WorkletsModule */ . WorkletsModule ;
shareableClone = WorkletsModule . makeShareableClone ( _ _workletContextObjectFactory , tmp2 , _ _workletContextObjectFactory ) ;
let shareableMappingCache = require ( 1613 ) /* weakMap */ . shareableMappingCache ;
let result = shareableMappingCache . set ( _ _workletContextObjectFactory , shareableClone ) ;
let shareableMappingCache2 = require ( 1613 ) /* weakMap */ . shareableMappingCache ;
let result1 = shareableMappingCache2 . set ( shareableClone ) ;
2026-07-20 16:05:17 +00:00
freezeObjectInDev ( undefined ) ;
}
}
if ( callback2 ( _ _workletContextObjectFactory ) ) {
2026-07-23 10:11:24 +00:00
shareableClone1 = dependencyMap ;
const WorkletsModule5 = require ( 1598 ) /* WorkletsModule */ . WorkletsModule ;
shareableClone1 = WorkletsModule5 . makeShareableClone ( _ _workletContextObjectFactory , tmp2 , _ _workletContextObjectFactory ) ;
const shareableMappingCache10 = require ( 1613 ) /* weakMap */ . shareableMappingCache ;
2026-07-20 16:05:17 +00:00
shareableClone1 = shareableMappingCache10 . set ( _ _workletContextObjectFactory , shareableClone1 ) ;
2026-07-23 10:11:24 +00:00
const shareableMappingCache11 = require ( 1613 ) /* weakMap */ . shareableMappingCache ;
2026-07-20 16:05:17 +00:00
shareableClone1 = shareableMappingCache11 . set ( shareableClone1 ) ;
2026-07-23 10:11:24 +00:00
let tmp31 = shareableClone1 ;
2026-07-20 16:05:17 +00:00
} else {
if ( isPlainJSObject ( _ _workletContextObjectFactory ) ) {
if ( _ _workletContextObjectFactory . _ _workletContextObjectFactory ) {
2026-07-23 10:11:24 +00:00
tmp31 = ( function cloneContextObject ( _ _workletContextObjectFactory ) {
2026-07-20 16:05:17 +00:00
_ _workletContextObjectFactory = _ _workletContextObjectFactory . _ _workletContextObjectFactory ;
/* worklet (recovered source) */ function pnpm _shareablesTs3 ( ) { const { workletContextObjectFactory } = this . _ _closure ; return workletContextObjectFactory ( ) ; }
pnpm _shareablesTs3 . _ _closure = { workletContextObjectFactory : _ _workletContextObjectFactory } ;
pnpm _shareablesTs3 . _ _workletHash = 16264240301234 ;
2026-07-23 10:11:24 +00:00
pnpm _shareablesTs3 . _ _initData = outer1 _11 ;
const tmp = outer1 _10 ( { _ _init : pnpm _shareablesTs3 } ) ;
const shareableMappingCache = outer1 _1 ( outer1 _2 [ 2 ] ) . shareableMappingCache ;
2026-07-20 16:05:17 +00:00
const result = shareableMappingCache . set ( _ _workletContextObjectFactory , tmp ) ;
return tmp ;
2026-07-23 10:11:24 +00:00
} ) ( _ _workletContextObjectFactory ) ;
2026-07-20 16:05:17 +00:00
}
}
if ( isPlainJSObject ( _ _workletContextObjectFactory ) ) {
if ( obj2 . isWorkletFunction ( _ _workletContextObjectFactory ) ) {
if ( _ _workletContextObjectFactory . _ _stackDetails ) {
2026-07-23 10:11:24 +00:00
delete tmp . _ _stackDetails ;
2026-07-20 16:05:17 +00:00
}
obj = { _ _initData : tmp3 ( _ _workletContextObjectFactory . _ _initData , true , num + 1 ) } ;
const _Object2 = Object ;
const entries = Object . entries ( _ _workletContextObjectFactory ) ;
2026-07-23 10:11:24 +00:00
const tmp75 = entries [ Symbol . iterator ] ( ) ;
while ( tmp75 !== undefined ) {
let tmp78 = callback ;
let tmp79 = callback ( tmp76 , 2 ) ;
[ tmp80 , tmp82 ] = tmp79 ;
let tmp83 = "__initData" === tmp80 ;
let tmp84 = tmp83 ;
let tmp81 = tmp80 ;
if ( tmp83 ) {
2026-07-20 16:05:17 +00:00
let tmp85 = obj ;
2026-07-23 10:11:24 +00:00
tmp84 = undefined !== tmp70 . _ _initData ;
}
if ( ! tmp84 ) {
let tmp86 = obj ;
let tmp87 = tmp80 ;
let tmp88 = tmp3 ;
let tmp89 = tmp82 ;
let tmp90 = tmp2 ;
let tmp91 = num ;
tmp70 [ tmp81 ] = tmp3 ( tmp82 , tmp68 , tmp69 + 1 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const WorkletsModule4 = require ( 1598 ) /* WorkletsModule */ . WorkletsModule ;
2026-07-20 16:05:17 +00:00
const shareableClone2 = WorkletsModule4 . makeShareableClone ( obj , true , _ _workletContextObjectFactory ) ;
2026-07-23 10:11:24 +00:00
const shareableMappingCache8 = require ( 1613 ) /* weakMap */ . shareableMappingCache ;
2026-07-20 16:05:17 +00:00
const result2 = shareableMappingCache8 . set ( _ _workletContextObjectFactory , shareableClone2 ) ;
2026-07-23 10:11:24 +00:00
const shareableMappingCache9 = require ( 1613 ) /* weakMap */ . shareableMappingCache ;
2026-07-20 16:05:17 +00:00
const result3 = shareableMappingCache9 . set ( shareableClone2 ) ;
freezeObjectInDev ( undefined ) ;
2026-07-23 10:11:24 +00:00
tmp31 = shareableClone2 ;
tmp68 = tmp2 ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
obj2 = require ( 1607 ) /* isWorkletFunction */ ;
2026-07-20 16:05:17 +00:00
}
if ( ! isPlainJSObject ( _ _workletContextObjectFactory ) ) {
2026-07-23 10:11:24 +00:00
if ( ! tmp11 ) {
2026-07-20 16:05:17 +00:00
const _RegExp = RegExp ;
if ( _ _workletContextObjectFactory instanceof RegExp ) {
2026-07-23 10:11:24 +00:00
tmp31 = ( function cloneRegExp ( source ) {
2026-07-20 16:05:17 +00:00
source = source . source ;
const flags = source . flags ;
/* worklet (recovered source) */ function pnpm _shareablesTs4 ( ) { const { pattern , flags } = this . _ _closure ; return new RegExp ( pattern , flags ) ; }
pnpm _shareablesTs4 . _ _closure = { pattern : source , flags } ;
pnpm _shareablesTs4 . _ _workletHash = 17343605339188 ;
2026-07-23 10:11:24 +00:00
pnpm _shareablesTs4 . _ _initData = outer1 _12 ;
const tmp = outer1 _10 ( { _ _init : pnpm _shareablesTs4 } ) ;
const shareableMappingCache = outer1 _1 ( outer1 _2 [ 2 ] ) . shareableMappingCache ;
2026-07-20 16:05:17 +00:00
const result = shareableMappingCache . set ( source , tmp ) ;
return tmp ;
2026-07-23 10:11:24 +00:00
} ) ( _ _workletContextObjectFactory ) ;
2026-07-20 16:05:17 +00:00
} else {
const _Error = Error ;
if ( _ _workletContextObjectFactory instanceof Error ) {
2026-07-23 10:11:24 +00:00
tmp31 = ( function cloneError ( name ) {
2026-07-20 16:05:17 +00:00
name = name . name ;
const message = name . message ;
const stack = name . stack ;
/* worklet (recovered source) */ function pnpm _shareablesTs5 ( ) { const { name , message , stack } = this . _ _closure ; const error = new Error ( ) ; error . name = name ; error . message = message ; error . stack = stack ; return error ; }
pnpm _shareablesTs5 . _ _closure = { name , message , stack } ;
pnpm _shareablesTs5 . _ _workletHash = 1273124072033 ;
2026-07-23 10:11:24 +00:00
pnpm _shareablesTs5 . _ _initData = outer1 _13 ;
const tmp = outer1 _10 ( { _ _init : pnpm _shareablesTs5 } ) ;
const shareableMappingCache = outer1 _1 ( outer1 _2 [ 2 ] ) . shareableMappingCache ;
2026-07-20 16:05:17 +00:00
const result = shareableMappingCache . set ( name , tmp ) ;
return tmp ;
2026-07-23 10:11:24 +00:00
} ) ( _ _workletContextObjectFactory ) ;
2026-07-20 16:05:17 +00:00
} else {
const _ArrayBuffer = ArrayBuffer ;
if ( _ _workletContextObjectFactory instanceof ArrayBuffer ) {
2026-07-23 10:11:24 +00:00
const WorkletsModule2 = require ( 1598 ) /* WorkletsModule */ . WorkletsModule ;
const shareableClone3 = WorkletsModule2 . makeShareableClone ( _ _workletContextObjectFactory , tmp2 , _ _workletContextObjectFactory ) ;
const shareableMappingCache4 = require ( 1613 ) /* weakMap */ . shareableMappingCache ;
2026-07-20 16:05:17 +00:00
const result4 = shareableMappingCache4 . set ( _ _workletContextObjectFactory , shareableClone3 ) ;
2026-07-23 10:11:24 +00:00
const shareableMappingCache5 = require ( 1613 ) /* weakMap */ . shareableMappingCache ;
2026-07-20 16:05:17 +00:00
const result5 = shareableMappingCache5 . set ( shareableClone3 ) ;
2026-07-23 10:11:24 +00:00
tmp31 = shareableClone3 ;
2026-07-20 16:05:17 +00:00
} else {
const _ArrayBuffer2 = ArrayBuffer ;
if ( ArrayBuffer . isView ( _ _workletContextObjectFactory ) ) {
2026-07-23 10:11:24 +00:00
tmp31 = ( function cloneArrayBufferView ( buffer ) {
2026-07-20 16:05:17 +00:00
buffer = buffer . buffer ;
const name = buffer . constructor . name ;
/* worklet (recovered source) */ 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 ) ; }
2026-07-23 10:11:24 +00:00
pnpm _shareablesTs6 . _ _closure = { VALID _ARRAY _VIEWS _NAMES : outer1 _9 , typeName : name , buffer } ;
2026-07-20 16:05:17 +00:00
pnpm _shareablesTs6 . _ _workletHash = 2440560686150 ;
2026-07-23 10:11:24 +00:00
pnpm _shareablesTs6 . _ _initData = outer1 _14 ;
const tmp = outer1 _10 ( { _ _init : pnpm _shareablesTs6 } ) ;
const shareableMappingCache = outer1 _1 ( outer1 _2 [ 2 ] ) . shareableMappingCache ;
2026-07-20 16:05:17 +00:00
const result = shareableMappingCache . set ( buffer , tmp ) ;
return tmp ;
2026-07-23 10:11:24 +00:00
} ) ( _ _workletContextObjectFactory ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
tmp31 = tmp3 ( closure _8 ) ;
const shareableMappingCache3 = require ( 1613 ) /* weakMap */ . shareableMappingCache ;
const result6 = shareableMappingCache3 . set ( _ _workletContextObjectFactory , tmp31 ) ;
2026-07-20 16:05:17 +00:00
}
}
}
}
}
}
obj = { } ;
const _Object = Object ;
const entries1 = Object . entries ( _ _workletContextObjectFactory ) ;
2026-07-23 10:11:24 +00:00
const tmp44 = entries1 [ Symbol . iterator ] ( ) ;
while ( tmp44 !== undefined ) {
let tmp47 = callback ;
let tmp48 = callback ( tmp45 , 2 ) ;
[ tmp49 , tmp51 ] = tmp48 ;
let tmp52 = "__initData" === tmp49 ;
let tmp53 = tmp52 ;
let tmp50 = tmp49 ;
if ( tmp52 ) {
2026-07-20 16:05:17 +00:00
let tmp54 = obj ;
2026-07-23 10:11:24 +00:00
tmp53 = undefined !== obj . _ _initData ;
}
if ( ! tmp53 ) {
let tmp55 = obj ;
let tmp56 = tmp49 ;
let tmp57 = tmp3 ;
let tmp58 = tmp51 ;
let tmp59 = tmp2 ;
let tmp60 = num ;
obj [ tmp50 ] = tmp3 ( tmp51 , tmp40 , tmp41 + 1 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const WorkletsModule3 = require ( 1598 ) /* WorkletsModule */ . WorkletsModule ;
const shareableClone4 = WorkletsModule3 . makeShareableClone ( obj , tmp2 , _ _workletContextObjectFactory ) ;
const shareableMappingCache6 = require ( 1613 ) /* weakMap */ . shareableMappingCache ;
2026-07-20 16:05:17 +00:00
const result7 = shareableMappingCache6 . set ( _ _workletContextObjectFactory , shareableClone4 ) ;
2026-07-23 10:11:24 +00:00
const shareableMappingCache7 = require ( 1613 ) /* weakMap */ . shareableMappingCache ;
2026-07-20 16:05:17 +00:00
const result8 = shareableMappingCache7 . set ( shareableClone4 ) ;
freezeObjectInDev ( undefined ) ;
2026-07-23 10:11:24 +00:00
tmp31 = shareableClone4 ;
tmp40 = tmp2 ;
tmp41 = num ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
shareableClone1 = tmp31 ;
2026-07-20 16:05:17 +00:00
}
shareableClone1 = shareableClone ;
}
}
}
2026-07-23 10:11:24 +00:00
const WorkletsModule6 = require ( 1598 ) /* WorkletsModule */ . WorkletsModule ;
return WorkletsModule6 . makeShareableClone ( _ _workletContextObjectFactory , tmp2 ) ;
} ) ;
let closure _10 = tmp3 ;
2026-07-20 16:05:17 +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);}" } ;
let closure _15 = { code : "function isRemoteFunction_Pnpm_shareablesTs7(value){return!!value.__remoteFunction;}" } ;
2026-07-23 10:11:24 +00:00
let closure _16 = ( ( ) => {
2026-07-20 16:05:17 +00:00
function isRemoteFunction ( _ _remoteFunction ) {
return _ _remoteFunction . _ _remoteFunction ;
}
isRemoteFunction . _ _closure = { } ;
isRemoteFunction . _ _workletHash = 12817663616448 ;
isRemoteFunction . _ _initData = closure _15 ;
return isRemoteFunction ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
2026-07-20 16:05:17 +00:00
let closure _17 = { 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 _18 = { code : "function pnpm_shareablesTs9(){const{value}=this.__closure;return value;}" } ;
export const makeShareableCloneRecursive = tmp3 ;
2026-07-23 10:11:24 +00:00
export const makeShareableCloneOnUIRecursive = ( ( ) => {
2026-07-20 16:05:17 +00:00
function makeShareableCloneOnUIRecursive ( applyResult ) {
2026-07-23 10:11:24 +00:00
if ( outer1 _4 ) {
2026-07-20 16:05:17 +00:00
return applyResult ;
} else {
function cloneRecursive ( _ _remoteFunction ) {
if ( "object" !== typeof _ _remoteFunction ) {
if ( "function" !== tmp ) {
2026-07-23 10:11:24 +00:00
return outer2 _0 . _makeShareableClone ( _ _remoteFunction , undefined ) ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
if ( outer2 _6 ( _ _remoteFunction ) ) {
return outer2 _0 . _makeShareableClone ( _ _remoteFunction , undefined ) ;
} else if ( outer2 _16 ( _ _remoteFunction ) ) {
2026-07-20 16:05:17 +00:00
return _ _remoteFunction . _ _remoteFunction ;
} else {
const _Array = Array ;
if ( Array . isArray ( _ _remoteFunction ) ) {
2026-07-23 10:11:24 +00:00
return outer2 _0 . _makeShareableClone ( _ _remoteFunction . map ( cloneRecursive ) , undefined ) ;
2026-07-20 16:05:17 +00:00
} else {
const obj = { } ;
const _Object = Object ;
const entries = Object . entries ( _ _remoteFunction ) ;
const tmp8 = entries [ Symbol . iterator ] ( ) ;
while ( tmp8 !== undefined ) {
2026-07-23 10:11:24 +00:00
let tmp11 = outer2 _3 ;
let tmp12 = outer2 _3 ( tmp9 , 2 ) ;
2026-07-20 16:05:17 +00:00
let tmp13 = obj ;
let tmp14 = cloneRecursive ;
obj [ tmp12 [ 0 ] ] = cloneRecursive ( tmp12 [ 1 ] ) ;
2026-07-23 10:11:24 +00:00
continue ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
return outer2 _0 . _makeShareableClone ( obj , _ _remoteFunction ) ;
2026-07-20 16:05:17 +00:00
}
}
}
return cloneRecursive ( applyResult ) ;
}
}
2026-07-23 10:11:24 +00:00
makeShareableCloneOnUIRecursive . _ _closure = { SHOULD _BE _USE _WEB : isJest , isHostObject : closure _6 , isRemoteFunction : closure _16 } ;
2026-07-20 16:05:17 +00:00
makeShareableCloneOnUIRecursive . _ _workletHash = 10912061747670 ;
makeShareableCloneOnUIRecursive . _ _initData = closure _17 ;
return makeShareableCloneOnUIRecursive ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
export const makeShareable = isJest ? ( function makeShareableJS ( arg0 ) {
2026-07-20 16:05:17 +00:00
return arg0 ;
2026-07-23 10:11:24 +00:00
} ) : ( function makeShareableNative ( value ) {
let closure _0 = value ;
const shareableMappingCache = require ( 1613 ) /* weakMap */ . shareableMappingCache ;
2026-07-20 16:05:17 +00:00
if ( shareableMappingCache . get ( value ) ) {
return value ;
} else {
let obj = { } ;
/* worklet (recovered source) */ function pnpm _shareablesTs9 ( ) { const { value } = this . _ _closure ; return value ; }
obj = { value } ;
pnpm _shareablesTs9 . _ _closure = obj ;
pnpm _shareablesTs9 . _ _workletHash = 5731865988281 ;
pnpm _shareablesTs9 . _ _initData = closure _18 ;
obj . _ _init = pnpm _shareablesTs9 ;
2026-07-23 10:11:24 +00:00
tmp3 = tmp3 ( obj ) ;
const shareableMappingCache2 = require ( 1613 ) /* weakMap */ . shareableMappingCache ;
2026-07-20 16:05:17 +00:00
const result = shareableMappingCache2 . set ( value , tmp3 ) ;
return value ;
}
2026-07-23 10:11:24 +00:00
} ) ;