import{n as e}from"./rolldown-runtime-CMxvf4Kt.js";import{Tt as t,bi as n,di as r,fi as i,wt as a,yi as o}from"./ws-JRT2XE7Y.js";async function s(){let e=await r.getJSON(`library/songs`);if(!e||!Array.isArray(e)){console.warn(`[shuffle-library] Library songs data is not an array or empty`),e&&r.del(`library/songs`);return}let i=e;if(i.length===0)return;let a=t(),o=n();await a.setQueueFromItems(i,0,{shuffle:!0,play:!0,containerContext:{type:`songs`,id:`library-songs`,name:o.getString(`term.songs`),artwork:void 0,isManuallyQueued:!1}})}var c=e((()=>{i(),a(),o()}));export{s as n,c as t};