(n=>{var o,t,e,i;function a(i,a){var r=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=n(this),e=t.data("vc.tabs");e||(e=new o(t,n.extend(!0,{},a)),t.data("vc.tabs",e)),"string"==typeof i&&e[i].apply(e,r)})}(o=function(t){this.$element=n(t),this.activeClass="vc_active",this.tabSelector="[data-vc-tab]",this.useCacheFlag=void 0,this.$target=void 0,this.selector=void 0,this.$targetTab=void 0,this.$relatedAccordion=void 0,this.$container=void 0}).prototype.isCacheUsed=function(){var t=this;return void 0===this.useCacheFlag&&(this.useCacheFlag=function(){return!1!==t.$element.data("vcUseCache")}()),this.useCacheFlag},o.prototype.getContainer=function(){return this.isCacheUsed()?(void 0===this.$container&&(this.$container=this.findContainer()),this.$container):this.findContainer()},o.prototype.findContainer=function(){var t=this.$element.closest(this.$element.data("vcContainer"));return t=t.length?t:n("body")},o.prototype.getContainerAccordion=function(){return this.getContainer().find("[data-vc-accordion]")},o.prototype.getSelector=function(){var e=this.$element,t=function(){var t=e.data("vcTarget");return t=t||e.attr("href")};return this.isCacheUsed()?(void 0===this.selector&&(this.selector=t()),this.selector):t()},o.prototype.getTarget=function(){var t=this.getSelector();return this.isCacheUsed()?(void 0===this.$target&&(this.$target=this.getContainer().find(t)),this.$target):this.getContainer().find(t)},o.prototype.getRelatedAccordion=function(){var i=this,t=function(){var t=i.getContainerAccordion().filter(function(){var t=n(this),e=t.data("vc.accordion");return void 0===e&&(t.vcAccordion(),e=t.data("vc.accordion")),i.getSelector()===e.getSelector()});if(t.length)return t};return this.isCacheUsed()?(void 0===this.$relatedAccordion&&(this.$relatedAccordion=t()),this.$relatedAccordion):t()},o.prototype.triggerEvent=function(t){"string"==typeof t&&(t=n.Event(t),this.$element.trigger(t))},o.prototype.getTargetTab=function(){var t=this.$element;return this.isCacheUsed()?(void 0===this.$targetTab&&(this.$targetTab=t.closest(this.tabSelector)),this.$targetTab):t.closest(this.tabSelector)},o.prototype.tabClick=function(){this.getRelatedAccordion().trigger("click")},o.prototype.show=function(){this.getTargetTab().hasClass(this.activeClass)||(this.triggerEvent("show.vc.tab"),this.getTargetTab().addClass(this.activeClass))},o.prototype.hide=function(){this.getTargetTab().hasClass(this.activeClass)&&(this.triggerEvent("hide.vc.tab"),this.getTargetTab().removeClass(this.activeClass))},t=n.fn.vcTabs,n.fn.vcTabs=a,n.fn.vcTabs.Constructor=o,n.fn.vcTabs.noConflict=function(){return n.fn.vcTabs=t,this},e=function(t){var e=n(this);t.preventDefault(),a.call(e,"tabClick")},i=function(t){var i=n(t.target).data("vc.accordion");i&&(void 0===i.getRelatedTab&&(i.getRelatedTab=function(){var t=function(){return i.getContainer().find("[data-vc-tabs]").filter(function(){var t=n(this),e=t.data("vc.accordion");return void 0===e&&t.vcAccordion(),(e=t.data("vc.accordion")).getSelector()===i.getSelector()})};return i.isCacheUsed()?(void 0===i.relatedTab&&(i.relatedTab=t()),i.relatedTab):t()}),a.call(i.getRelatedTab(),t.type))},n(document).on("click.vc.tabs.data-api","[data-vc-tabs]",e),n(document).on("show.vc.accordion hide.vc.accordion",i)})(window.jQuery);