import{n as e}from"./rolldown-runtime-DAXXjFlN.js";import{Di as t,Ei as n,Nt as r,Pt as i,Ti as a,ki as o}from"./ws-BfVPV0ME.js";function s(e){try{return e()}catch{return}}function c(){try{let e=n(),t=o().getCurrentProviderStore(),i=s(()=>t.player);return{itemId:s(()=>e.player.nowPlayingId),itemType:s(()=>e.player.nowPlayingType),hasCatalog:s(()=>e.player.nowPlayingHasCatalog),hasPlayParams:s(()=>!!e.player.nowPlayingItem?.attributes?.playParams),isLibrary:s(()=>!!e.player.nowPlayingItem?.attributes?.playParams?.isLibrary),flavor:s(()=>e.player.flavor),bitrate:s(()=>e.player.bitrate),queueLength:s(()=>e.queueItems.length),queuePosition:s(()=>e.queuePosition),shuffle:s(()=>e.player.shuffleMode),repeat:s(()=>e.player.repeatMode),crossfade:{enabled:s(()=>t.crossfadeEnabled),effective:s(()=>t.effectiveCrossfadeEnabled),durationSec:s(()=>t.crossfadeDurationSec),skipEnabled:s(()=>!!r(`audio.crossfade.skipEnabled`))},automix:{enabled:s(()=>t.automixEnabled),effective:s(()=>t.effectiveAutomixEnabled),spectralSeparation:s(()=>t.automixSpectralSeparation),vocalGuard:s(()=>t.automixVocalGuard),tempoAlign:s(()=>t.automixTempoAlign),info:s(()=>t.automixInfo)},autoplay:s(()=>t.autoplayEnabled),isPlaying:s(()=>e.player.isPlaying),currentTime:s(()=>t.currentTime),duration:s(()=>t.duration),nextItemId:s(()=>i?.nextItemId),seamless:{enabled:s(()=>i?.seamlessTransitionsEnabled),armed:s(()=>i?._seamlessArmed),arming:s(()=>i?._seamlessArming),armedFrom:s(()=>i?._seamlessArmedFromItemId),armedNext:s(()=>i?._seamlessArmedNextItemId)},license:{dormant:s(()=>i?._licenseDormant),refreshInFlight:s(()=>!!i?._licenseRefreshInFlight)}}}catch{return null}}e((()=>{i(),a(),t()}))();export{c as collectPlaybackSnapshot};