/*! tableSorter 2.16+ widgets - updated 8/9/2014 (v2.17.7) */
;(function(k){
var c=k.tablesorter=k.tablesorter||{};
c.themes={bootstrap:{table:"table table-bordered table-striped",caption:"caption",header:"bootstrap-header",footerRow:"",footerCells:"",icons:"",sortNone:"bootstrap-icon-unsorted",sortAsc:"icon-chevron-up glyphicon glyphicon-chevron-up",sortDesc:"icon-chevron-down glyphicon glyphicon-chevron-down",active:"",hover:"",filterRow:"",even:"",odd:""},jui:{table:"ui-widget ui-widget-content ui-corner-all",caption:"ui-widget-content ui-corner-all",header:"ui-widget-header ui-corner-all ui-state-default", footerRow:"",footerCells:"",icons:"ui-icon",sortNone:"ui-icon-carat-2-n-s",sortAsc:"ui-icon-carat-1-n",sortDesc:"ui-icon-carat-1-s",active:"ui-state-active",hover:"ui-state-hover",filterRow:"",even:"ui-widget-content",odd:"ui-state-default"}};k.extend(c.css,{filterRow:"tablesorter-filter-row",filter:"tablesorter-filter",wrapper:"tablesorter-wrapper",resizer:"tablesorter-resizer",sticky:"tablesorter-stickyHeader",stickyVis:"tablesorter-sticky-visible"});
c.storage=function(b,a,d,c){b=k(b)[0];var g, f,e=!1;g={};f=b.config;var l=k(b);b=c&&c.id||l.attr(c&&c.group||"data-table-group")||b.id||k(".tablesorter").index(l);c=c&&c.url||l.attr(c&&c.page||"data-table-page")||f&&f.fixedUrl||window.location.pathname;if("localStorage"in window)try{window.localStorage.setItem("_tmptest","temp"),e=!0,window.localStorage.removeItem("_tmptest")}catch(m){}k.parseJSON&&(e?g=k.parseJSON(localStorage[a]||"{}"):(f=document.cookie.split(/[;\s|=]/),g=k.inArray(a,f)+1,g=0!==g?k.parseJSON(f[g]||"{}"):{}));if((d||""=== d)&&window.JSON&&JSON.hasOwnProperty("stringify"))g[c]||(g[c]={}),g[c][b]=d,e?localStorage[a]=JSON.stringify(g):(d=new Date,d.setTime(d.getTime()+31536E6),document.cookie=a+"="+JSON.stringify(g).replace(/\"/g,'"')+"; expires="+d.toGMTString()+"; path=/");else return g&&g[c]?g[c][b]:""};
c.addHeaderResizeEvent=function(b,a,d){b=k(b)[0];var c;d=k.extend({},{timer:250},d);var g=b.config,f=g.widgetOptions,e=function(a){f.resize_flag=!0;c=[];g.$headers.each(function(){var a=k(this),b=a.data("savedSizes")|| [0,0],d=this.offsetWidth,e=this.offsetHeight;if(d!==b[0]||e!==b[1])a.data("savedSizes",[d,e]),c.push(this)});c.length&&!1!==a&&g.$table.trigger("resize",[c]);f.resize_flag=!1};e(!1);clearInterval(f.resize_timer);if(a)return f.resize_flag=!1;f.resize_timer=setInterval(function(){f.resize_flag||e()},d.timer)};
c.addWidget({id:"uitheme",priority:10,format:function(b,a,d){var h,g,f,e=c.themes;h=a.$table;f=a.$headers;var l=a.theme||"jui",m=e[l]||e.jui,e=m.sortNone+" "+m.sortDesc+" "+m.sortAsc;a.debug&& (g=new Date);h.hasClass("tablesorter-"+l)&&a.theme!==l&&b.hasInitialized||(""!==m.even&&(d.zebra[0]+=" "+m.even),""!==m.odd&&(d.zebra[1]+=" "+m.odd),h.find("caption").addClass(m.caption),b=h.removeClass(""===a.theme?"":"tablesorter-"+a.theme).addClass("tablesorter-"+l+" "+m.table).find("tfoot"),b.length&&b.find("tr").addClass(m.footerRow).children("th, td").addClass(m.footerCells),f.addClass(m.header).not(".sorter-false").bind("mouseenter.tsuitheme mouseleave.tsuitheme",function(a){k(this)["mouseenter"=== a.type?"addClass":"removeClass"](m.hover)}),f.find("."+c.css.wrapper).length||f.wrapInner('
'),a.cssIcon&&f.find("."+c.css.icon).addClass(m.icons),h.hasClass("hasFilters")&&f.find("."+c.css.filterRow).addClass(m.filterRow));for(h=0;h=]/g},types:{regex:function(b,a,d,h){if(c.filter.regex.regex.test(a)){var g;b=c.filter.regex.regex.exec(a);try{g=(new RegExp(b[1],b[2])).test(h)}catch(f){g=!1}return g}return null},operators:function(b,a,d,h,g,f,e,l,m){if(/^[<>]=?/.test(a)){var n;d=e.config;b=c.formatFloat(a.replace(c.filter.regex.operators,""),e);l=d.parsers[f];d=b;if(m[f]||"numeric"=== l.type)n=c.filter.parseFilter(e,k.trim(""+a.replace(c.filter.regex.operators,"")),f,m[f],!0),b="number"!==typeof n||""===n||isNaN(n)?b:n;h=!m[f]&&"numeric"!==l.type||isNaN(b)||"undefined"===typeof g?isNaN(h)?c.formatFloat(h.replace(c.filter.regex.nondigit,""),e):c.formatFloat(h,e):g;/>/.test(a)&&(n=/>=/.test(a)?h>=b:h>b);/k&&(h=d,d=k,k=h);return a>=d&&a<=k||""===d||""===k}return null},wild:function(b,a,d,h,g,f,e,l,m,n){return/[\?|\*]/.test(a)||c.filter.regex.orReplace.test(b)?(b=e.config,a=c.filter.parseFilter(e,a.replace(c.filter.regex.orReplace,"|"),f,m[f]),!b.$headers.filter('[data-column="'+ f+'"]:last').hasClass("filter-match")&&/\|/.test(a)&&(a=k.isArray(n)?"("+a+")":"^("+a+")$"),(new RegExp(a.replace(/\?/g,"\\S{1}").replace(/\*/g,"\\S*"))).test(h)):null},fuzzy:function(b,a,d,h,g,f,e,k,m){if(/^~/.test(a)){b=0;d=h.length;f=c.filter.parseFilter(e,a.slice(1),f,m[f]);for(a=0;a'+(e.data("placeholder")||e.attr("data-placeholder")||d.filter_placeholder.select||"")+"":"",f=n=g,0<=g.indexOf(d.filter_selectSourceSeparator)&&(n=g.split(d.filter_selectSourceSeparator),f=n[1],n=n[0]),h+="");a.$table.find("thead").find("select."+c.css.filter+'[data-column="'+l+'"]').append(h)}c.filter.buildDefault(b, !0);c.filter.bindSearch(b,a.$table.find("."+c.css.filter),!0);d.filter_external&&c.filter.bindSearch(b,d.filter_external);d.filter_hideFilters&&c.filter.hideFilters(b,a);a.showProcessing&&a.$table.bind("filterStart"+a.namespace+"filter filterEnd"+a.namespace+"filter",function(d,f){e=f?a.$table.find("."+c.css.header).filter("[data-column]").filter(function(){return""!==f[k(this).data("column")]}):"";c.isProcessing(b,"filterStart"===d.type,f?e:"")});a.filteredRows=a.totalRows;a.debug&&c.benchmark("Applying Filter widget", p);a.$table.bind("tablesorter-initialized pagerInitialized",function(){var d=this.config.widgetOptions;m=c.filter.setDefaults(b,a,d)||[];m.length&&(a.delayInit&&""===m.join("")||c.setFilters(b,m,!0));a.$table.trigger("filterFomatterUpdate");setTimeout(function(){d.filter_initialized||c.filter.filterInitComplete(a)},100)});a.pager&&a.pager.initialized&&!d.filter_initialized&&(a.$table.trigger("filterFomatterUpdate"),setTimeout(function(){c.filter.filterInitComplete(a)},100))},formatterUpdated:function(b, a){var d=b.closest("table")[0].config.widgetOptions;d.filter_initialized||(d.filter_formatterInit[a]=1)},filterInitComplete:function(b){var a=b.widgetOptions,d=0;k.each(a.filter_formatterInit,function(a,b){1===b&&d++});clearTimeout(a.filter_initTimer);a.filter_initialized||d!==a.filter_formatterCount?a.filter_initialized||(a.filter_initTimer=setTimeout(function(){a.filter_initialized=!0;b.$table.trigger("filterInit",b)},500)):(a.filter_initialized=!0,b.$table.trigger("filterInit",b))},setDefaults:function(b, a,d){var h,g=c.getFilters(b)||[];d.filter_saveFilters&&c.storage&&(h=c.storage(b,"tablesorter-filters")||[],(b=k.isArray(h))&&""===h.join("")||!b||(g=h));if(""===g.join(""))for(b=0;b';for(g=0;g";a.$filters=k(e+"").appendTo(a.$table.children("thead").eq(0)).find("td");for(g=0;g").appendTo(a.$filters.eq(g)):((e=c.getColumnData(b,d.filter_formatter,g))?(d.filter_formatterCount++, (e=e(a.$filters.eq(g),g))&&0===e.length&&(e=a.$filters.eq(g).children("input")),e&&(0===e.parent().length||e.parent().length&&e.parent()[0]!==a.$filters[g])&&a.$filters.eq(g).append(e)):e=k('').appendTo(a.$filters.eq(g)),e&&e.attr("placeholder",f.data("placeholder")||f.attr("data-placeholder")||d.filter_placeholder.search||"")),e&&(f=(k.isArray(d.filter_cssFilter)?"undefined"!==typeof d.filter_cssFilter[g]?d.filter_cssFilter[g]||"":"":d.filter_cssFilter)||"",e.addClass(c.css.filter+ " "+f).attr("data-column",g),h&&(e.attr("placeholder","").addClass("disabled")[0].disabled=!0))},bindSearch:function(b,a,d){b=k(b)[0];a=k(a);if(a.length){var h=b.config,g=h.widgetOptions,f=g.filter_$externalFilters;!0!==d&&(g.filter_$anyMatch=a.filter('[data-column="all"]'),g.filter_$externalFilters=f&&f.length?g.filter_$externalFilters.add(a):a,c.setFilters(b,h.$table.data("lastSearch")||[],!1===d));a.attr("data-lastSearchTime",(new Date).getTime()).unbind(["keypress","keyup","search","change",""].join(h.namespace+ "filter ")).bind("keyup"+h.namespace+"filter",function(a){k(this).attr("data-lastSearchTime",(new Date).getTime());if(27===a.which)this.value="";else if(!1===g.filter_liveSearch||""!==this.value&&("number"===typeof g.filter_liveSearch&&this.value.lengtha.which||37<=a.which&&40>=a.which)))return;c.filter.searching(b,!0,!0)}).bind(["search","change","keypress",""].join(h.namespace+"filter "),function(a){var d=k(this).data("column");if(13===a.which|| "search"===a.type||"change"===a.type&&this.value!==h.lastSearch[d])a.preventDefault(),k(this).attr("data-lastSearchTime",(new Date).getTime()),c.filter.searching(b,!1,!0)})}},searching:function(b,a,d){var h=b.config.widgetOptions;clearTimeout(h.searchTimer);"undefined"===typeof a||!0===a?h.searchTimer=setTimeout(function(){c.filter.checkFilters(b,a,d)},h.filter_liveSearch?h.filter_searchDelay:10):c.filter.checkFilters(b,a,d)},checkFilters:function(b,a,d){var h=b.config,g=h.widgetOptions,f=k.isArray(a), e=f?a:c.getFilters(b,!0),l=(e||[]).join("");if(k.isEmptyObject(h.cache))h.delayInit&&h.pager&&h.pager.initialized&&h.$table.trigger("updateCache",[function(){c.filter.checkFilters(b,!1,d)}]);else if(f&&(c.setFilters(b,e,!1,!0!==d),g.filter_initialized||(h.lastCombinedFilter="")),g.filter_hideFilters&&h.$table.find("."+c.css.filterRow).trigger(""===l?"mouseleave":"mouseenter"),h.lastCombinedFilter!==l||!1===a)if(!1===a&&(h.lastCombinedFilter=null,h.lastSearch=[]),g.filter_initialized&&h.$table.trigger("filterStart", [e]),h.showProcessing)setTimeout(function(){c.filter.findRows(b,e,l);return!1},30);else return c.filter.findRows(b,e,l),!1},hideFilters:function(b,a){var d,h,g;k(b).find("."+c.css.filterRow).addClass("hideme").bind("mouseenter mouseleave",function(b){d=k(this);clearTimeout(g);g=setTimeout(function(){/enter|over/.test(b.type)?d.removeClass("hideme"):k(document.activeElement).closest("tr")[0]!==d[0]&&""===a.lastCombinedFilter&&d.addClass("hideme")},200)}).find("input, select").bind("focus blur",function(b){h= k(this).closest("tr");clearTimeout(g);g=setTimeout(function(){if(""===c.getFilters(a.$table).join(""))h["focus"===b.type?"removeClass":"addClass"]("hideme")},200)})},findRows:function(b,a,d){if(b.config.lastCombinedFilter!==d){var h,g,f,e,l,m,n,p,s,r,t,v,w,x,A,z,B,y,N,C,F,G,I,J,O,D,K,H=c.filter.regex,q=b.config,u=q.widgetOptions,L=q.columns,M=q.$table.children("tbody"),P=["range","notMatch","operators"],E=q.$headers.map(function(a){return q.parsers&&q.parsers[a]&&q.parsers[a].parsed||c.getData&&"parsed"=== c.getData(q.$headers.filter('[data-column="'+a+'"]:last'),c.getColumnData(b,q.headers,a),"filter")||k(this).hasClass("filter-parsed")}).get();q.debug&&(N=new Date);q.filteredRows=0;for(l=q.totalRows=0;l=?\s*-\d)/.test(s)||/(<=?\s*\d)/.test(s))&&!(""!==s&&q.$filters&&q.$filters.eq(r).find("select").length&&!q.$headers.filter('[data-column="'+r+'"]:last').hasClass("filter-match"));n=f.not("."+u.filter_filteredRow).length;z&&0===n&&(z=!1);q.debug&&c.log("Searching through "+ (z&&nk.inArray(a,P)&&(x=d(C,F,I,J,O,L,b,u,E,G),null!==x))return B=x,!1}),null!==B)y=B;else if(u.filter_startsWith)for(y=!1,p=L;!y&&0"))return n;k.isArray(n)?e=n:"object"===k.type(l)&&n&&(e=n(b,a,d))}!1===e&&(e=c.filter.getOptions(b,a,d));e=k.grep(e,function(a,b){return k.inArray(a,e)===b});g.$headers.filter('[data-column="'+a+'"]:last').hasClass("filter-select-nosort")||(k.each(e,function(d,c){f.push({t:c,p:g.parsers&&g.parsers[a].format(c, b,[],a)})}),h=g.textSorter||"",f.sort(function(d,e){var f=d.p.toString(),g=e.p.toString();return k.isFunction(h)?h(f,g,!0,a,b):"object"===typeof h&&h.hasOwnProperty(a)?h[a](f,g,!0,a,b):c.sortNatural?c.sortNatural(f,g):!0}),e=[],k.each(f,function(a,b){e.push(b.t)}));return e},getOptions:function(b,a,d){var c,g,f,e,l=b.config,m=l.widgetOptions,n=l.$table.children("tbody"),p=[];for(c=0;c'+(m.data("placeholder")||m.attr("data-placeholder")||l.filter_placeholder.select||"")+"",n=e.$table.find("thead").find("select."+c.css.filter+'[data-column="'+a+'"]').val();if("undefined"===typeof d||""===d)d=c.filter.getOptionSource(b,a,g);if(k.isArray(d)){for(b=0;b'+f+"":"";d=[]}e=(e.$filters?e.$filters:e.$table.children("thead")).find("."+c.css.filter);l.filter_$externalFilters&&(e=e&&e.length?e.add(l.filter_$externalFilters):l.filter_$externalFilters);a=e.filter('select[data-column="'+a+'"]');a.length&&(a[h?"html":"append"](m),k.isArray(d)||a.append(d).val(n),a.val(n))}},buildDefault:function(b,a){var d,h,g,f=b.config,e=f.widgetOptions,k=f.columns;for(d=0;db.top&&cMath.abs(n.parent().width()-n.width()),v=function(a){if(0!==p&&s){var b=a.pageX-p,c=s.width();s.width(c+b);s.width()!==c&&t&&r.width(r.width()-b);p=a.pageX}},w=function(){c.storage&& s&&r&&(m={},m[s.index()]=s.width(),m[r.index()]=r.width(),s.width(m[s.index()]),r.width(m[r.index()]),!1!==d.resizable&&c.storage(b,"tablesorter-resizable",a.$headers.map(function(){return k(this).width()}).get()));p=0;s=r=null;k(window).trigger("resize")};if(m=c.storage&&!1!==d.resizable?c.storage(b,"tablesorter-resizable"):{})for(e in m)!isNaN(e)&&e');d.resizable_addLastColumn||(f=f.slice(0,-1));g=g?g.add(f):f});g.each(function(){var a=k(this),b=parseInt(a.css("padding-right"),10)+10; a.find("."+c.css.wrapper).append('')}).find("."+c.css.resizer).bind("mousedown",function(b){s=k(b.target).closest("th");var c=a.$headers.filter('[data-column="'+s.attr("data-column")+'"]');1