);

    function activaTab(tabName, container = document) {
        var tabLink = $(container).find('.nav-tabs .nav-link[data-tab-name="' + tabName + '"]');
        if (tabLink.length) {
            tabLink.tab('show');
            tabLink.trigger('click'); // Explicitly trigger the click event
        }
    }

    function scrollToAnchor(anchorId) {
        var element = $('[data-anchor-id="' + anchorId + '"]');
        if (element.length) {
            $('html, body').animate({
                scrollTop: 