+function($){'use strict';$.fn.historyTabs=function(){var that=this;window.addEventListener('popstate',function(event){if(event.state){$(that).filter('[href="'+event.state.url+'"]').tab('show');}});return this.each(function(index,element){$(element).on('shown.bs.tab',function(){var stateObject={'url':$(this).attr('href')};if(window.location.hash&&stateObject.url!==window.location.hash){window.history.pushState(stateObject,document.title,window.location.pathname+((window.location.search.length>0)?window.location.search:'')+$(this).attr('href'));}else{window.history.replaceState(stateObject,document.title,window.location.pathname+((window.location.search.length>0)?window.location.search:'')+$(this).attr('href'));}});if(!window.location.hash&&$(element).is('.active')){$(element).tab('show');}else if($(this).attr('href')===window.location.hash){$(element).tab('show');}});};}(jQuery);