import a0_0x4251af,{calculate_target_state,calculate_active_state,get_sync_mode_config,clamp_to_boundary,sanitize_and_sort_script,check_latch,resolve_seek_event,resolve_play_event,detect_heartbeat_crossing,build_seek_instructions}from'./core_engine/pkg/core_engine.js';let isWasmReady=![];export const WasmEngine={async 'init'(){!isWasmReady&&(await a0_0x4251af(),isWasmReady=!![],console['log']('WASM\x20Secret\x20Engine\x20Online'));},'__d4e1a_detectPlaybackStallEvent'(_0x380b5e,_0x19c13d,_0x361997,_0x391c7b=0x1){const _0x5517a9=calculate_target_state(_0x380b5e,_0x19c13d,JSON['stringify'](_0x361997||[]),_0x391c7b);return JSON['parse'](_0x5517a9);},'__d4e1a_dispatchPlaybackControlCommand'(_0x16eed1,_0x2019f4,_0x42bac6){const _0x2fae8a=calculate_active_state(_0x16eed1,_0x2019f4,JSON['stringify'](_0x42bac6||[]));return JSON['parse'](_0x2fae8a);},'__d4e1a_applyPlaybackRateAdjustment'(_0x34f7cd,_0x261c7f=''){const _0x4f5b91=get_sync_mode_config(_0x34f7cd,_0x261c7f);return JSON['parse'](_0x4f5b91);},'__d4e1a_finalizeSeekResolution'(_0x4b1a45,_0x55950f,_0x42b0df){const _0x3c5b7b=clamp_to_boundary(_0x4b1a45,_0x55950f,JSON['stringify'](_0x42b0df||[]));return JSON['parse'](_0x3c5b7b);},'__d4e1a_reconcilePlaybackTimelines'(_0xe2aab9,_0x27a063=null){const _0x4c877b=sanitize_and_sort_script(JSON['stringify'](_0xe2aab9||[]),_0x27a063);return JSON['parse'](_0x4c877b);},'__d4e1a_evaluateBufferingCondition'(_0x2fb3e4,_0x4a4ab1,_0x3e46f4){const _0x2b836c=check_latch(_0x2fb3e4,_0x4a4ab1,JSON['stringify'](_0x3e46f4||{}));return JSON['parse'](_0x2b836c);},'__d4e1a_calculateBufferingThreshold'(_0x8367cb,_0x75e0fc,_0x5f21d6,_0x19358a,_0x5f0650=0x1){const _0x362564=resolve_seek_event(_0x8367cb,_0x75e0fc,_0x5f21d6,JSON['stringify'](_0x19358a||[]),_0x5f0650);return JSON['parse'](_0x362564);},'__d4e1a_processPlaybackIntentSignal'(_0x500bcc,_0x5be252,_0x1820b4,_0x8a5129=0x1){const _0x4938ff=resolve_play_event(_0x500bcc,_0x5be252,JSON['stringify'](_0x1820b4||[]),_0x8a5129);return JSON['parse'](_0x4938ff);},'__d4e1a_initiateSeekOperation'(_0x2caddd,_0x3a2fd2,_0x15ae3e,_0x1ea429,_0x28b31e=0x1){const _0x210001=detect_heartbeat_crossing(_0x2caddd,_0x3a2fd2,_0x15ae3e,JSON['stringify'](_0x1ea429||[]),_0x28b31e);return JSON['parse'](_0x210001);},'__d4e1a_schedulePlaybackResync'(_0x28000b,_0x15aee2,_0x4f188b,_0x3555a7='__c6d4e_captureCounterpartSessionContext'){const _0x394de1=build_seek_instructions(_0x28000b,_0x15aee2,_0x4f188b,_0x3555a7);return JSON['parse'](_0x394de1);}};