!function(t){"use strict";var a=function(a){this.element=t(a)};a.prototype.show=function(){var a=this.element,e=a.closest("ul:not(.dropdown-menu)"),n=a.data("target");if(n||(n=(n=a.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),!a.parent("li").hasClass("active")){var s=e.find(".active:last a")[0],i=t.Event("show.bs.tab",{relatedTarget:s});if(a.trigger(i),!i.isDefaultPrevented()){var o=t(document).find(n);this.activate(a.parent("li"),e),this.activate(o,o.parent(),function(){a.trigger({type:"shown.bs.tab",relatedTarget:s})})}}},a.prototype.toggle=function(){const a=this.element;let e=a.data("target");e||(e=a.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,"")),a.parent("li").toggleClass("active");t(document).find(e).toggleClass("active fade in")},a.prototype.activate=function(a,e,n){var s=e.find("> .active"),i=n&&t.support.transition&&s.hasClass("fade");function o(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),a.addClass("active"),a.parent(".nav-tabs").length&&a.parents(".fusion-tabs").find(".nav").find('a[href="'+a.find("a").attr("href")+'"]').parent().addClass("active"),i?(a[0].offsetWidth,a.addClass("in")):a.removeClass("fade"),a.parent(".dropdown-menu")&&a.closest("li.dropdown").addClass("active"),a.parents(".fusion-builder-live-editor").length&&void 0!==a.attr("id")&&a.parents(".fusion-tabs").find('.tab-link[href="#'+a.attr("id")+'"]').parents("li").addClass("active"),n&&n()}i?s.one(t.support.transition.end,o).emulateTransitionEnd(150):o(),s.removeClass("in")};var e=t.fn.tab;t.fn.tab=function(e){return this.each(function(){var n=t(this),s=n.data("bs.tab");s||n.data("bs.tab",s=new a(this)),"string"==typeof e&&s[e]()})},t.fn.tab.Constructor=a,t.fn.tab.noConflict=function(){return t.fn.tab=e,this},t(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(a){a.preventDefault();const e=t(this).parents(".fusion-tabs");e.length&&e.hasClass("mobile-mode-toggle")&&t(this).parents(".nav").hasClass("fusion-mobile-tab-nav")?t(this).tab("toggle"):t(this).tab("show")})}(jQuery);