            let activeTagFilters = [];
            let activeCatalogFilter = 'all';
            let allThematicGroups = [];
            let allTags = [];
            let searchHistory = [];
            const MAX_HISTORY_ITEMS = 10;

            // URLs for the catalogs
            const mainCatalogUrl = 'https://raw.githubusercontent.com/samapriya/ee-catalog-jsons/refs/heads/main/gee_catalog_formatted.json';
            const communityCatalogUrl = 'https://raw.githubusercontent.com/samapriya/ee-catalog-json