1const state=Vue.reactive({fixtures:[],liveFixtures:[],leaguesFixtures:[],countType:[],loading:!0,error:null,leagueFiltered:null,leagueFilteredCheckbox:null,isLoadingFixtures:!1,isLoadingLiveFixtures:!1,isFetched:!1,});async function fetchFixtures(){if(state.isFetched||state.isLoadingFixtures||state.isLoadingLiveFixtures){return} 2state.loading=!0;state.isLoadingFixtures=!0;state.isLoadingLiveFixtures=!0;state.error=null;const currentTime=Date.now();const fixturesLiveUrl=`https://live-api.keovip88.net/storage/livestream/live.json?t=${currentTime}`;const fixturesUrl=`https://live-api.keovip88.net/storage/livestream/all.json?t=${currentTime}`;try{const[fixturesLiveResponse,fixturesResponse]=await Promise.all([fetch(fixturesLiveUrl),fetch(fixturesUrl)]);if(!fixturesLiveResponse.ok){throw new Error('Failed to fetch live fixtures')} 3if(!fixturesResponse.ok){throw new Error('Failed to fetch fixtures')} 4const resultFixturesLiveData=await fixturesLiveResponse.json();const resultFixturesData=await fixturesResponse.json();state.fixtures=resultFixturesData.response;state.liveFixtures=resultFixturesLiveData.response;const combinedFixtures=[...resultFixturesData.response,...resultFixturesLiveData.response];combinedFixtures.forEach((item)=>{const exists=state.leaguesFixtures.some((league)=>league.title===item.league.title);if(!exists){state.leaguesFixtures.push(item.league)}});state.isFetched=!0}catch(err){state.error=err.message}finally{state.loading=!1;state.isLoadingFixtures=!1;state.isLoadingLiveFixtures=!1}} 5async function fetchLiveFixtures(){if(state.isLoadingLiveFixtures)return;state.isLoadingLiveFixtures=!0;try{const currentTime=Date.now();const liveFixturesUrl=`https://live-api.keovip88.net/storage/livestream/live.json?t=${currentTime}`;const response=await fetch(liveFixturesUrl);if(!response.ok){throw new Error('Failed to fetch live fixtures')} 6const data=await response.json();state.liveFixtures=data.response;state.liveFixtures.forEach((item)=>{const exists=state.leaguesFixtures.some((league)=>league.title===item.league.title);if(!exists){state.leaguesFixtures.push(item.league)}})}catch(err){state.error=err.message}finally{state.isLoadingLiveFixtures=!1}} 7fetchFixtures();setInterval(fetchLiveFixtures,10000) 8;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.