function ForceList(Item) { return (Array.isArray(Item) ? Item : [Item]); }; function RndId() { return `${Date.now()}${Math.random() + Math.random()}`; }; function UrlBase(Url) { var Lower = Url.toLowerCase(); var Domain = UrlDomain(Url); if (Lower.startsWith('http://')) return `http://${Domain}`; else if (Lower.startsWith('https://')) return `https://${Domain}`; else return `//${Domain}`; }; function UrlDomain(Url) { return Url.split('//')[1].split('/')[0]; }; function LogDebug(Data, Status) { if (Debug) { if (!Status) { Status = 'l'; }; for (var i=0; i