(function (I) { I.esc = function (s) { return String(s).replace(/&/g, '&').replace(//g, '>'); }; I.downloadBlob = function (blob, name) { const a = document.createElement('a'); a.href = URL.createObjectURL(blob); a.download = name; a.click(); URL.revokeObjectURL(a.href); }; I.formatDate = function (d) { if (!d || d.length !== 8) return d || '-'; return d.substring(6, 8) + '.' + d.substring(4, 6) + '.' + d.substring(0, 4); }; })(window.App.Infrastructure);