function WaitDefinition(e,t){return new Promise(((n,i)=>{let s=setInterval((()=>{null!=e&&(n(e),clearInterval(s))}),t)}))}const GamesPage={GetRequest:e=>new Promise(((t,n)=>{fetch(e,{method:"GET",mode:"cors"}).then((e=>{e.status>=200&&e.status<=299?e.text().then((e=>{t(e)})):n(new Error)})).catch((e=>n(e)))})),JSONPostRequest:(e,t)=>new Promise(((n,i)=>{fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),mode:"cors"}).then((e=>{e.status>=200&&e.status<=299?e.json().then((e=>{n(e)})):i(new Error)})).catch((e=>i(e)))})),SetElementHTMLFromWeb:async(e,t)=>{let n=await GamesPage.GetRequest(t).catch((e=>{throw e}));e.html(n)},SearchStore:e=>GamesPage.JSONPostRequest("https://dapp.isotopic.io/api/v1/store/search",e),GetThumbnailSrcURL:e=>`https://dapp.isotopic.io/api/v1/store/files/${e}/thumbnail`};GamesPage.SearchStoreFeaturedPromise=GamesPage.SearchStore({special:"featured",limit:6}).catch((e=>{throw e})),GamesPage.SearchStoreRecentPromise=GamesPage.SearchStore({platform:"pc-mobile-web-vr-mac-linux",orderby:"created_at DESC",limit:24,other:"available-not(school_project)"}).catch((e=>{throw e})),GamesPage.SearchStoreRandomPromise=GamesPage.SearchStore({platform:"pc-mobile-web-vr-mac-linux",limit:26,other:"available"}).catch((e=>{throw e})),GamesPage.CountSearchPromise=GamesPage.SearchStore({limit:1}).catch((e=>{throw e}));let storesidebarRes=GamesPage.GetRequest("https://dapp.isotopic.io/games-page/sidebar").catch((e=>{throw e}));$(document).ready((async()=>{const e=$("#games-window-target"),t=($("#store-sidebar"),$("#featured-target"),$("#grid-2")),n=$("#top-games-slideshow");let i=[{img:"https://dapp.isotopic.io/media/igc_4/igc4-winner-banner.png",url:"https://isotopic.io/haunted-bloodlines-isotopic-game-competition-4-winner/",src:"",title:"IGC 4 Winner",text:"Congrats to Haunted Bloodlines for winning the Fourth Isotopic Game Competition!",is_video:!1},{img:"https://dapp.isotopic.io/media/banner-top/isotopic_shorts_banner.jpg",url:"https://isotopic.io/shorts",src:"https://dapp.isotopic.io/media/banner-top/isotopic_shorts.webm",title:"Isotopic Shorts",text:"Watch curated gaming content, and find your next favorite Indie Game by discovering short videos.",is_video:!0,type:"video/webm"},{img:"https://dapp.isotopic.io/media/act-zero/event_header_we_the_refugees.jpg",url:"https://store.isotopic.io/We_The_Refugees_Ticket_to_Europe",src:"",title:"PLAY NOW",text:"An interactive fiction adventure game about refugees. Now on Isotopic!",is_video:!1},{img:"https://dapp.isotopic.io/media/thewake/the-wake-banner.png",url:"https://isotopic.io/game/?game=The_Wake",src:"https://dapp.isotopic.io/media/thewake/the%20wake%20trailer%20-%20isotopic.mp4",title:"The Wake on Isotopic",text:"Play this intense isometric multiplayer role-playing game, download from Isotopic.",is_video:!0},{img:"https://dapp.isotopic.io/api/v1/store/files/The_Shore_Demo/page_images/?index=2",url:"https://isotopic.io/game/?game=THE_SHORE",title:"The Shore on Isotopic",text:"Try this H.P. Lovecraft-inspired psychological horror game. Now LIVE on the store.",src:"https://dapp.isotopic.io/media/the_shore/the_shore-isotopic.webm",is_video:!0},{img:"https://dapp.isotopic.io/media/metanemesis/meta-nemesis-banner-game-map.jpg",url:"https://isotopic.io/game/?game=Meta_Nemesis",title:"Meta Nemesis on Isotopic",text:"Elite 5v5 FPS multiplayer battles, coming soon to Isotopic!",src:"",is_video:!1},{img:"https://dapp.isotopic.io/api/v1/store/files/Astra_Nova/page_images/?index=1",url:"https://isotopic.io/game/?game=Astra_Nova",title:"First true MetaRPG Experience",text:"Check out Astra Nova on the Isotopic Game Store!",src:"https://dapp.isotopic.io/media/astra-nova/astra-nova-isotopic-game store.mp4",is_video:!0},{img:"https://dapp.isotopic.io/media/coe/cards-of-ethernity-isotopic-game-store.png",url:"https://isotopic.io/game/?game=Cards_of_Ethernity",title:"Cards of Ethernity",text:"Play the best blockchain-enabled Card Collecting Game on Isotopic NOW!",src:"https://dapp.isotopic.io/media/coe/Cards-of-ethernity-Teaser-ISOTOPIC.mp4",is_video:!0},{img:"https://dapp.isotopic.io/api/v1/store/files/leptons-vr/page_images/?index=1",url:"https://isotopic.io/leptonsvr-blockchain-vr-game/",title:"IN-GAME REWARDS",text:"All items, skins and weapons are non-fungible tokens that you can take with you to other games in our platform, trade or exchange with other players, and create a unique collection.",src:"https://dapp.isotopic.io/media/LEPTONS_VR_INTRO_low.mp4",is_video:!0}],s=[{img:"https://dapp.isotopic.io/media/banner-top/isotopic_shorts_banner.jpg",url:"https://isotopic.io/shorts",btn_text:"Isotopic Shorts"},{img:"https://dapp.isotopic.io/media/banner-top/FULL_RELEASE-ISOTOPIC-STORE.jpeg",url:"https://isotopic.io/isotopic-game-store-launches-paid-games/",btn_text:"Read More"},{img:"https://dapp.isotopic.io/media/clash-antroll-games/clash-banner.jpg",url:"https://isotopic.io/game/?game=CLASH_HEROES_OF_FERALIA_TERRA",btn_text:"Coming Soon"},{img:"https://dapp.isotopic.io/media/banner-middle/banner-ATLM.jpg",url:"https://isotopic.io/game/?game=Aurora_The_Lost_Medallion",btn_text:"Coming Soon"},{img:"https://dapp.isotopic.io/media/banner-middle/banner-skaramazuzu.jpg",url:"https://isotopic.io/game/?game=Skaramazuru",btn_text:"Coming Soon"},{img:"https://dapp.isotopic.io/media/banner-middle/banner-abtos-covert.jpg",url:"https://isotopic.io/game/?game=Abtos_Covert",btn_text:"Coming Soon"},{img:"https://dapp.isotopic.io/media/OneClick-Publisher-isotopic.jpg",url:"https://isotopic.io/announcing-one-click-publishing-through-unity-editor/",btn_text:"Read More"},{img:"https://dapp.isotopic.io/media/polygon-id-isotopic-game-store.jpg",url:"",btn_text:"Coming Soon"},{img:"https://dapp.isotopic.io/media/isotopic-game-store-download-client.jpg",url:"https://dapp.isotopic.io/downloads/client/IsotopicClient.msi",btn_text:"Download Now"},{img:"https://dapp.isotopic.io/media/coming-soon/fnaf-roaming-coming-soon.png",url:"",btn_text:"Coming Soon"}];const o=(e=1)=>1===e?'':0===e?'':void 0,a=e=>{let t="";t=0==e.price?"FREE":e.price+" $";let n="";return null!=e.discount&&0!=e.discount&&(n=`
-${e.discount}%