const dataModel=function(){function fetchInstantServers(){return fetch(dataModelGlobal.endpointInstants).then((response=>response.json())).then((data=>{const newArray=data.filter((item=>item.location==="Bucharest, EU"));const availableInstantServers=newArray.length;const countElementUI=document.querySelector("#dedicated-servers span");countElementUI.textContent=availableInstantServers;const random1=newArray.filter((item=>item.type.startsWith("M")));const random2=newArray.filter((item=>item.type==="D103"));const random3=newArray.filter((item=>{if(item.type==="D157"){return item}else if(item.type==="D156"){return item}else if(item.type==="D105"){return item}else if(item.type==="D104"){return item}}));const randomElement1=random1[dataModelGlobal.random(dataModelGlobal.random0,random1.length-1)];const randomElement2=random2[dataModelGlobal.random(0,random2.length-1)];const randomElement3=random3[dataModelGlobal.random(0,random3.length-1)];const randomArray=[randomElement1,randomElement2,randomElement3].filter((item=>item));return randomArray})).catch((error=>console.error(error)))}return{fetchInstantServers:fetchInstantServers}}();