!function(l){l.extend({tablesorter:new function(){function e(c){"undefined"!==typeof console&&"undefined"!==typeof console.log?console.log(c):alert(c)}function q(c,d){e(c+" ("+((new Date).getTime()-d.getTime())+"ms)")}function h(c,d,a){if(!d)return"";var b=c.config,n=b.textExtraction,f="",f="simple"===n?b.supportsTextContent?d.textContent:l(d).text():"function"===typeof n?n(d,c,a):"object"===typeof n&&n.hasOwnProperty(a)?n[a](d,c,a):b.supportsTextContent?d.textContent:l(d).text();return l.trim(f)}
function u(c){var d=c.config,a=d.$tbodies,b,n,f,k,l,p,m="";if(0===a.length)return d.debug?e("*Empty table!* Not building a parser cache"):"";a=a[0].rows;if(a[0])for(b=[],n=a[0].cells.length,f=0;f<n;f++){k=d.$headers.filter(":not([colspan])");k=k.add(d.$headers.filter('[colspan="1"]')).filter('[data-column="'+f+'"]:last');l=d.headers[f];p=g.getParserById(g.getData(k,l,"sorter"));d.empties[f]=g.getData(k,l,"empty")||d.emptyTo||(d.emptyToBottom?"bottom":"top");d.strings[f]=g.getData(k,l,"string")||d.stringTo||
"max";if(!p)a:{k=c;l=a;p=-1;for(var q=f,s=void 0,t=g.parsers.length,v=!1,z="",s=!0;""===z&&s;)p++,l[p]?(v=l[p].cells[q],z=h(k,v,q),k.config.debug&&e("Checking if value was empty on row "+p+", column: "+q+": "+z)):s=!1;for(s=1;s<t;s++)if(g.parsers[s].is(z,k,v)){p=g.parsers[s];break a}p=g.parsers[0]}d.debug&&(m+="column:"+f+"; parser:"+p.id+"; string:"+d.strings[f]+"; empty: "+d.empties[f]+"\n");b.push(p)}d.debug&&e(m);return b}function w(c){var d=c.tBodies,a=c.config,b,n,f=a.parsers,k,A,p,m,y,s,t,
v=[];a.cache={};if(!f)return a.debug?e("*Empty table!* Not building a cache"):"";a.debug&&(t=new Date);a.showProcessing&&g.isProcessing(c,!0);for(m=0;m<d.length;m++)if(a.cache[m]={row:[],normalized:[]},!l(d[m]).hasClass(a.cssInfoBlock)){b=d[m]&&d[m].rows.length||0;n=d[m].rows[0]&&d[m].rows[0].cells.length||0;for(A=0;A<b;++A)if(y=l(d[m].rows[A]),s=[],y.hasClass(a.cssChildRow))a.cache[m].row[a.cache[m].row.length-1]=a.cache[m].row[a.cache[m].row.length-1].add(y);else{a.cache[m].row.push(y);for(p=0;p<
n;++p)k=h(c,y[0].cells[p],p),k=f[p].format(k,c,y[0].cells[p],p),s.push(k),"numeric"===(f[p].type||"").toLowerCase()&&(v[p]=Math.max(Math.abs(k),v[p]||0));s.push(a.cache[m].normalized.length);a.cache[m].normalized.push(s)}a.cache[m].colMax=v}a.showProcessing&&g.isProcessing(c);a.debug&&q("Building cache for "+b+" rows",t)}function x(c,d){var a=c.config,b=c.tBodies,n=[],f=a.cache,k,e,p,m,y,s,t,v,z,h,r;if(f[0]){a.debug&&(r=new Date);for(v=0;v<b.length;v++)if(k=l(b[v]),!k.hasClass(a.cssInfoBlock)){y=
g.processTbody(c,k,!0);k=f[v].row;e=f[v].normalized;m=(p=e.length)?e[0].length-1:0;for(s=0;s<p;s++)if(h=e[s][m],n.push(k[h]),!a.appender||!a.removeRows)for(z=k[h].length,t=0;t<z;t++)y.append(k[h][t]);g.processTbody(c,y,!1)}a.appender&&a.appender(c,n);a.debug&&q("Rebuilt table",r);d||g.applyWidget(c);l(c).trigger("sortEnd",c)}}function C(c){var d=[],a={};c=l(c).find("thead:eq(0), tfoot").children("tr");var b,n,f,k,g,e,m,q,h,t;for(b=0;b<c.length;b++)for(g=c[b].cells,n=0;n<g.length;n++){k=g[n];e=k.parentNode.rowIndex;
m=e+"-"+k.cellIndex;q=k.rowSpan||1;h=k.colSpan||1;"undefined"===typeof d[e]&&(d[e]=[]);for(f=0;f<d[e].length+1;f++)if("undefined"===typeof d[e][f]){t=f;break}a[m]=t;l(k).attr({"data-column":t});for(f=e;f<e+q;f++)for("undefined"===typeof d[f]&&(d[f]=[]),m=d[f],k=t;k<t+h;k++)m[k]="x"}return a}function D(c){var d=C(c),a,b,n,f,k,A,p,m,h=c.config;h.headerList=[];h.headerContent=[];h.debug&&(p=new Date);f=h.cssIcon?'<i class="'+h.cssIcon+'"></i>':"";m=l(c).find(h.selectorHeaders).each(function(c){b=l(this);
a=h.headers[c];h.headerContent[c]=this.innerHTML;k=h.headerTemplate.replace(/\{content\}/g,this.innerHTML).replace(/\{icon\}/g,f);h.onRenderTemplate&&(n=h.onRenderTemplate.apply(b,[c,k]))&&"string"===typeof n&&(k=n);this.innerHTML='<div class="tablesorter-header-inner">'+k+"</div>";h.onRenderHeader&&h.onRenderHeader.apply(b,[c]);this.column=d[this.parentNode.rowIndex+"-"+this.cellIndex];var e=g.getData(b,a,"sortInitialOrder")||h.sortInitialOrder;this.order=/^d/i.test(e)||1===e?[1,0,2]:[0,1,2];this.count=
-1;"false"===g.getData(b,a,"sorter")?(this.sortDisabled=!0,b.addClass("sorter-false")):b.removeClass("sorter-false");this.lockedOrder=!1;A=g.getData(b,a,"lockedOrder")||!1;"undefined"!==typeof A&&!1!==A&&(this.order=this.lockedOrder=/^d/i.test(A)||1===A?[1,1,1]:[0,0,0]);b.addClass((this.sortDisabled?"sorter-false ":" ")+h.cssHeader);h.headerList[c]=this;b.parent().addClass(h.cssHeaderRow)});c.config.debug&&(q("Built headers:",p),e(m));return m}function B(c){var d,a,b,n=c.config,f=n.sortList,e=[n.cssAsc,
n.cssDesc],g=l(c).find("tfoot tr").children().removeClass(e.join(" "));n.$headers.removeClass(e.join(" "));b=f.length;for(d=0;d<b;d++)if(2!==f[d][1]&&(c=n.$headers.not(".sorter-false").filter('[data-column="'+f[d][0]+'"]'+(1===b?":last":"")),c.length))for(a=0;a<c.length;a++)c[a].sortDisabled||(c.eq(a).addClass(e[f[d][1]]),g.length&&g.filter('[data-column="'+f[d][0]+'"]').eq(a).addClass(e[f[d][1]]))}function F(c){if(c.config.widthFixed&&0===l(c).find("colgroup").length){var d=l("<colgroup>"),a=l(c).width();
l("tr:first td",c.tBodies[0]).each(function(){d.append(l("<col>").css("width",parseInt(l(this).width()/a*1E3,10)/10+"%"))});l(c).prepend(d)}}function E(c,d){var a,b,e,f=c.config,g=d||f.sortList;f.sortList=[];l.each(g,function(d,c){a=[parseInt(c[0],10),parseInt(c[1],10)];if(e=f.headerList[a[0]])f.sortList.push(a),b=l.inArray(a[1],e.order),e.count=0<=b?b:a[1]%(f.sortReset?3:2)})}function G(c){var d=0,a=c.config,b=a.sortList,e=b.length,f=c.tBodies.length,g,h,p,m,r,s,t,v,z;if(!a.serverSideSorting&&a.cache[0]){a.debug&&
(g=new Date);for(p=0;p<f;p++)r=a.cache[p].colMax,z=(s=a.cache[p].normalized)&&s[0]?s[0].length-1:0,s.sort(function(f,g){for(h=0;h<e;h++){m=b[h][0];v=b[h][1];t=/n/i.test(a.parsers&&a.parsers[m]?a.parsers[m].type||"":"")?"Numeric":"Text";t+=0===v?"":"Desc";/Numeric/.test(t)&&a.strings[m]&&(d="boolean"===typeof a.string[a.strings[m]]?(0===v?1:-1)*(a.string[a.strings[m]]?-1:1):a.strings[m]?a.string[a.strings[m]]||0:0);var k=l.tablesorter["sort"+t](c,f[m],g[m],m,r[m],d);if(k)return k}return f[z]-g[z]});
a.debug&&q("Sorting on "+b.toString()+" and dir "+v+" time",g)}}function I(c,d){c.trigger("updateComplete");"function"===typeof d&&d(c[0])}function H(c,d,a){!1!==d?c.trigger("sorton",[c[0].config.sortList,function(){I(c,a)}]):I(c,a)}var g=this;g.version="2.7.3";g.parsers=[];g.widgets=[];g.defaults={theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",
usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",textExtraction:"simple",textSorter:null,widgets:[],widgetOptions:{zebra:["even","odd"]},initWidgets:!0,initialized:null,tableClass:"tablesorter",cssAsc:"tablesorter-headerAsc",cssChildRow:"tablesorter-childRow",cssDesc:"tablesorter-headerDesc",cssHeader:"tablesorter-header",cssHeaderRow:"tablesorter-headerRow",
cssIcon:"tablesorter-icon",cssInfoBlock:"tablesorter-infoOnly",cssProcessing:"tablesorter-processing",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]};g.benchmark=q;g.construct=function(c){return this.each(function(){if(!this.tHead||0===this.tBodies.length||!0===this.hasInitialized)return this.config.debug?e("stopping initialization! No thead, tbody or tablesorter has already been initialized"):"";var d=
l(this),a=this,b,n,f,k="",q,p,m,y,s=l.metadata;a.hasInitialized=!1;a.config={};b=l.extend(!0,a.config,g.defaults,c);l.data(a,"tablesorter",b);b.debug&&l.data(a,"startoveralltimer",new Date);b.supportsTextContent="x"===l("<span>x</span>")[0].textContent;b.supportsDataObject=1.4<=parseFloat(l.fn.jquery);b.string={max:1,min:-1,"max+":1,"max-":-1,zero:0,none:0,"null":0,top:!0,bottom:!1};/tablesorter\-/.test(d.attr("class"))||(k=""!==b.theme?" tablesorter-"+b.theme:"");b.$table=d.addClass(b.tableClass+
k);b.$tbodies=d.children("tbody:not(."+b.cssInfoBlock+")");b.$headers=D(a);b.parsers=u(a);b.delayInit||w(a);b.$headers.find("*").andSelf().filter(b.selectorSort).unbind("mousedown.tablesorter mouseup.tablesorter").bind("mousedown.tablesorter mouseup.tablesorter",function(c,e){var h=(this.tagName.match("TH|TD")?l(this):l(this).parents("th, td").filter(":last"))[0];if(1!==(c.which||c.button))return!1;if("mousedown"===c.type)return y=(new Date).getTime(),"INPUT"===c.target.tagName?"":!b.cancelSelection;
if(!0!==e&&250<(new Date).getTime()-y)return!1;b.delayInit&&!b.cache&&w(a);if(!h.sortDisabled){d.trigger("sortStart",a);k=!c[b.sortMultiSortKey];h.count=c[b.sortResetKey]?2:(h.count+1)%(b.sortReset?3:2);b.sortRestart&&(n=h,b.$headers.each(function(){this===n||!k&&l(this).is("."+b.cssDesc+",."+b.cssAsc)||(this.count=-1)}));n=h.column;if(k){b.sortList=[];if(null!==b.sortForce)for(q=b.sortForce,f=0;f<q.length;f++)q[f][0]!==n&&b.sortList.push(q[f]);m=h.order[h.count];if(2>m&&(b.sortList.push([n,m]),1<
h.colSpan))for(f=1;f<h.colSpan;f++)b.sortList.push([n+f,m])}else if(b.sortAppend&&1<b.sortList.length&&g.isValueInArray(b.sortAppend[0][0],b.sortList)&&b.sortList.pop(),g.isValueInArray(n,b.sortList))for(f=0;f<b.sortList.length;f++)p=b.sortList[f],m=b.headerList[p[0]],p[0]===n&&(p[1]=m.order[m.count],2===p[1]&&(b.sortList.splice(f,1),m.count=-1));else if(m=h.order[h.count],2>m&&(b.sortList.push([n,m]),1<h.colSpan))for(f=1;f<h.colSpan;f++)b.sortList.push([n+f,m]);if(null!==b.sortAppend)for(q=b.sortAppend,
f=0;f<q.length;f++)q[f][0]!==n&&b.sortList.push(q[f]);d.trigger("sortBegin",a);setTimeout(function(){B(a);G(a);x(a)},1)}});b.cancelSelection&&b.$headers.each(function(){this.onselectstart=function(){return!1}});d.unbind("sortReset update updateCell addRows sorton appendCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave").bind("sortReset",function(){b.sortList=[];B(a);G(a);x(a)}).bind("update",function(c,f,e){l(b.selectorRemove,a).remove();b.parsers=u(a);w(a);H(d,f,e)}).bind("updateCell",
function(c,f,e,g){var n,k,m;n=d.find("tbody");c=n.index(l(f).parents("tbody").filter(":last"));var q=l(f).parents("tr").filter(":last");f=l(f)[0];n.length&&0<=c&&(k=n.eq(c).find("tr").index(q),m=f.cellIndex,n=a.config.cache[c].normalized[k].length-1,a.config.cache[c].row[a.config.cache[c].normalized[k][n]]=q,a.config.cache[c].normalized[k][m]=b.parsers[m].format(h(a,f,m),a,f,m),H(d,e,g))}).bind("addRows",function(c,e,g,n){var k=e.filter("tr").length,l=[],m=e[0].cells.length,q=d.find("tbody").index(e.closest("tbody"));
b.parsers||(b.parsers=u(a));for(c=0;c<k;c++){for(f=0;f<m;f++)l[f]=b.parsers[f].format(h(a,e[c].cells[f],f),a,e[c].cells[f],f);l.push(b.cache[q].row.length);b.cache[q].row.push([e[c]]);b.cache[q].normalized.push(l);l=[]}H(d,g,n)}).bind("sorton",function(c,b,f,e){d.trigger("sortStart",this);E(a,b);B(a);G(a);x(a,e);"function"===typeof f&&f(a)}).bind("appendCache",function(c,b,d){x(a,d);"function"===typeof b&&b(a)}).bind("applyWidgetId",function(c,d){g.getWidgetById(d).format(a,b,b.widgetOptions)}).bind("applyWidgets",
function(c,b){g.applyWidget(a,b)}).bind("refreshWidgets",function(b,c,d){g.refreshWidgets(a,c,d)}).bind("destroy",function(c,b,d){g.destroy(a,b,d)});b.supportsDataObject&&"undefined"!==typeof d.data().sortlist?b.sortList=d.data().sortlist:s&&d.metadata()&&d.metadata().sortlist&&(b.sortList=d.metadata().sortlist);g.applyWidget(a,!0);0<b.sortList.length?d.trigger("sorton",[b.sortList,{},!b.initWidgets]):b.initWidgets&&g.applyWidget(a);F(a);b.showProcessing&&d.unbind("sortBegin sortEnd").bind("sortBegin sortEnd",
function(b){g.isProcessing(a,"sortBegin"===b.type)});a.hasInitialized=!0;b.debug&&g.benchmark("Overall initialization time",l.data(a,"startoveralltimer"));d.trigger("tablesorter-initialized",a);"function"===typeof b.initialized&&b.initialized(a)})};g.isProcessing=function(c,d,a){var b=c.config;c=a||l(c).find("."+b.cssHeader);d?(0<b.sortList.length&&(c=c.filter(function(){return this.sortDisabled?!1:g.isValueInArray(parseFloat(l(this).attr("data-column")),b.sortList)})),c.addClass(b.cssProcessing)):
c.removeClass(b.cssProcessing)};g.processTbody=function(c,d,a){if(a)return d.before('<span class="tablesorter-savemyplace"/>'),c=l.fn.detach?d.detach():d.remove();c=l(c).find("span.tablesorter-savemyplace");d.insertAfter(c);c.remove()};g.clearTableBody=function(c){c.config.$tbodies.empty()};g.destroy=function(c,d,a){if(c.hasInitialized){g.refreshWidgets(c,!0,!0);var b=l(c),e=c.config,f=b.find("thead:first"),k=f.find("tr."+e.cssHeaderRow).removeClass(e.cssHeaderRow),h=b.find("tfoot:first > tr").children("th, td");
f.find("tr").not(k).remove();b.removeData("tablesorter").unbind("sortReset update updateCell addRows sorton appendCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave");e.$headers.add(h).removeClass(e.cssHeader+" "+e.cssAsc+" "+e.cssDesc).removeAttr("data-column");k.find(e.selectorSort).unbind("mousedown.tablesorter mouseup.tablesorter");k.children().each(function(a){l(this).html(e.headerContent[a])});!1!==d&&b.removeClass(e.tableClass+" tablesorter-"+e.theme);c.hasInitialized=
!1;"function"===typeof a&&a(c)}};g.regex=[/(^-?[0-9]+(\.?[0-9]*)[df]?e?[0-9]?$|^0x[0-9a-f]+$|[0-9]+)/gi,/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,/^0x[0-9a-f]+$/i];g.sortText=function(c,d,a,b){if(d===a)return 0;var e=c.config,f=e.string[e.empties[b]||e.emptyTo],k=g.regex;if(""===d&&0!==f)return"boolean"===typeof f?f?-1:1:-f||-1;if(""===a&&0!==f)return"boolean"===typeof f?f?1:-1:f||1;if("function"===typeof e.textSorter)return e.textSorter(d,
a,c,b);c=d.replace(k[0],"\\0$1\\0").replace(/\\0$/,"").replace(/^\\0/,"").split("\\0");b=a.replace(k[0],"\\0$1\\0").replace(/\\0$/,"").replace(/^\\0/,"").split("\\0");d=parseInt(d.match(k[2]),16)||1!==c.length&&d.match(k[1])&&Date.parse(d);if(a=parseInt(a.match(k[2]),16)||d&&a.match(k[1])&&Date.parse(a)||null){if(d<a)return-1;if(d>a)return 1}e=Math.max(c.length,b.length);for(d=0;d<e;d++){a=isNaN(c[d])?c[d]||0:parseFloat(c[d])||0;k=isNaN(b[d])?b[d]||0:parseFloat(b[d])||0;if(isNaN(a)!==isNaN(k))return isNaN(a)?
1:-1;typeof a!==typeof k&&(a+="",k+="");if(a<k)return-1;if(a>k)return 1}return 0};g.sortTextDesc=function(c,d,a,b){if(d===a)return 0;var e=c.config,f=e.string[e.empties[b]||e.emptyTo];return""===d&&0!==f?"boolean"===typeof f?f?-1:1:f||1:""===a&&0!==f?"boolean"===typeof f?f?1:-1:-f||-1:"function"===typeof e.textSorter?e.textSorter(a,d,c,b):g.sortText(c,a,d)};g.getTextValue=function(c,d,a){if(d){var b=c.length,e=d+a;for(d=0;d<b;d++)e+=c.charCodeAt(d);return a*e}return 0};g.sortNumeric=function(c,d,
a,b,e,f){if(d===a)return 0;c=c.config;b=c.string[c.empties[b]||c.emptyTo];if(""===d&&0!==b)return"boolean"===typeof b?b?-1:1:-b||-1;if(""===a&&0!==b)return"boolean"===typeof b?b?1:-1:b||1;isNaN(d)&&(d=g.getTextValue(d,e,f));isNaN(a)&&(a=g.getTextValue(a,e,f));return d-a};g.sortNumericDesc=function(c,d,a,b,e,f){if(d===a)return 0;c=c.config;b=c.string[c.empties[b]||c.emptyTo];if(""===d&&0!==b)return"boolean"===typeof b?b?-1:1:b||1;if(""===a&&0!==b)return"boolean"===typeof b?b?1:-1:-b||-1;isNaN(d)&&
(d=g.getTextValue(d,e,f));isNaN(a)&&(a=g.getTextValue(a,e,f));return a-d};g.characterEquivalents={a:"\u00e1\u00e0\u00e2\u00e3\u00e4\u0105\u00e5",A:"\u00c1\u00c0\u00c2\u00c3\u00c4\u0104\u00c5",c:"\u00e7\u0107\u010d",C:"\u00c7\u0106\u010c",e:"\u00e9\u00e8\u00ea\u00eb\u011b\u0119",E:"\u00c9\u00c8\u00ca\u00cb\u011a\u0118",i:"\u00ed\u00ec\u0130\u00ee\u00ef\u0131",I:"\u00cd\u00cc\u0130\u00ce\u00cf",o:"\u00f3\u00f2\u00f4\u00f5\u00f6",O:"\u00d3\u00d2\u00d4\u00d5\u00d6",ss:"\u00df",SS:"\u1e9e",u:"\u00fa\u00f9\u00fb\u00fc\u016f",
U:"\u00da\u00d9\u00db\u00dc\u016e"};g.replaceAccents=function(c){var d,a="[",b=g.characterEquivalents;if(!g.characterRegex){g.characterRegexArray={};for(d in b)"string"===typeof d&&(a+=b[d],g.characterRegexArray[d]=RegExp("["+b[d]+"]","g"));g.characterRegex=RegExp(a+"]")}if(g.characterRegex.test(c))for(d in b)"string"===typeof d&&(c=c.replace(g.characterRegexArray[d],d));return c};g.isValueInArray=function(c,d){var a,b=d.length;for(a=0;a<b;a++)if(d[a][0]===c)return!0;return!1};g.addParser=function(c){var d,
a=g.parsers.length,b=!0;for(d=0;d<a;d++)g.parsers[d].id.toLowerCase()===c.id.toLowerCase()&&(b=!1);b&&g.parsers.push(c)};g.getParserById=function(c){var d,a=g.parsers.length;for(d=0;d<a;d++)if(g.parsers[d].id.toLowerCase()===c.toString().toLowerCase())return g.parsers[d];return!1};g.addWidget=function(c){g.widgets.push(c)};g.getWidgetById=function(c){var d,a,b=g.widgets.length;for(d=0;d<b;d++)if((a=g.widgets[d])&&a.hasOwnProperty("id")&&a.id.toLowerCase()===c.toLowerCase())return a};g.applyWidget=
function(c,d){var a=c.config,b=a.widgetOptions,e=a.widgets.sort().reverse(),f,k,h,p=e.length;k=l.inArray("zebra",a.widgets);0<=k&&(a.widgets.splice(k,1),a.widgets.push("zebra"));a.debug&&(f=new Date);for(k=0;k<p;k++)(h=g.getWidgetById(e[k]))&&(!0===d&&h.hasOwnProperty("init")?h.init(c,h,a,b):!d&&h.hasOwnProperty("format")&&h.format(c,a,b));a.debug&&q("Completed "+(!0===d?"initializing":"applying")+" widgets",f)};g.refreshWidgets=function(c,d,a){var b,h=c.config,f=h.widgets,k=g.widgets,q=k.length;
for(b=0;b<q;b++)k[b]&&k[b].id&&(d||0>l.inArray(k[b].id,f))&&(h.debug&&e("Refeshing widgets: Removing "+k[b].id),k[b].hasOwnProperty("remove")&&k[b].remove(c,h,h.widgetOptions));!0!==a&&g.applyWidget(c,d)};g.getData=function(c,d,a){var b="";c=l(c);var e,f;if(!c.length)return"";e=l.metadata?c.metadata():!1;f=" "+(c.attr("class")||"");"undefined"!==typeof c.data(a)||"undefined"!==typeof c.data(a.toLowerCase())?b+=c.data(a)||c.data(a.toLowerCase()):e&&"undefined"!==typeof e[a]?b+=e[a]:d&&"undefined"!==
typeof d[a]?b+=d[a]:" "!==f&&f.match(" "+a+"-")&&(b=f.match(RegExp(" "+a+"-(\\w+)"))[1]||"");return l.trim(b)};g.formatFloat=function(c,d){if("string"!==typeof c||""===c)return c;var a;c=(d&&d.config?!1!==d.config.usNumberFormat:"undefined"!==typeof d?d:1)?c.replace(/,/g,""):c.replace(/[\s|\.]/g,"").replace(/,/g,".");/^\s*\([.\d]+\)/.test(c)&&(c=c.replace(/^\s*\(/,"-").replace(/\)/,""));a=parseFloat(c);return isNaN(a)?l.trim(c):a};g.isDigit=function(c){return isNaN(c)?/^[\-+(]?\d+[)]?$/.test(c.toString().replace(/[,.'"\s]/g,
"")):!0}}});var h=l.tablesorter;l.fn.extend({tablesorter:h.construct});h.addParser({id:"text",is:function(e,h,l){return!0},format:function(e,q,r,u){q=q.config;e=l.trim(q.ignoreCase?e.toLocaleLowerCase():e);return q.sortLocaleCompare?h.replaceAccents(e):e},type:"text"});h.addParser({id:"currency",is:function(e){return/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test(e)},format:function(e,l){return h.formatFloat(e.replace(/[^\w,. \-()]/g,""),l)},type:"numeric"});
h.addParser({id:"ipAddress",is:function(e){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(e)},format:function(e,l){var r,u=e.split("."),w="",x=u.length;for(r=0;r<x;r++)w+=("00"+u[r]).slice(-3);return h.formatFloat(w,l)},type:"numeric"});h.addParser({id:"url",is:function(e){return/^(https?|ftp|file):\/\//.test(e)},format:function(e){return l.trim(e.replace(/(https?|ftp|file):\/\//,""))},type:"text"});h.addParser({id:"isoDate",is:function(e){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(e)},
format:function(e,l){return h.formatFloat(""!==e?(new Date(e.replace(/-/g,"/"))).getTime()||"":"",l)},type:"numeric"});h.addParser({id:"percent",is:function(e){return/(\d\s?%|%\s?\d)/.test(e)},format:function(e,l){return h.formatFloat(e.replace(/%/g,""),l)},type:"numeric"});h.addParser({id:"usLongDate",is:function(e){return/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i.test(e)},format:function(e,l){return h.formatFloat((new Date(e.replace(/(\S)([AP]M)$/i,"$1 $2"))).getTime()||
"",l)},type:"numeric"});h.addParser({id:"shortDate",is:function(e){return/^(\d{1,2}|\d{4})[\/\-\,\.\s+]\d{1,2}[\/\-\.\,\s+](\d{1,2}|\d{4})$/.test(e)},format:function(e,l,r,u){r=l.config;var w=r.headerList[u],x=w.shortDateFormat;"undefined"===typeof x&&(x=w.shortDateFormat=h.getData(w,r.headers[u],"dateFormat")||r.dateFormat);e=e.replace(/\s+/g," ").replace(/[\-|\.|\,]/g,"/");"mmddyyyy"===x?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===x?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,
"$3/$2/$1"):"yyyymmdd"===x&&(e=e.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"));return h.formatFloat((new Date(e)).getTime()||"",l)},type:"numeric"});h.addParser({id:"time",is:function(e){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(e)},format:function(e,l){return h.formatFloat((new Date("2000/01/01 "+e.replace(/(\S)([AP]M)$/i,"$1 $2"))).getTime()||"",l)},type:"numeric"});h.addParser({id:"digit",is:function(e){return h.isDigit(e)},format:function(e,l){return h.formatFloat(e.replace(/[^\w,. \-()]/g,
""),l)},type:"numeric"});h.addParser({id:"metadata",is:function(e){return!1},format:function(e,h,r){e=h.config;e=e.parserMetadataName?e.parserMetadataName:"sortValue";return l(r).metadata()[e]},type:"numeric"});h.addWidget({id:"zebra",format:function(e,q,r){var u,w,x,C,D,B,F=RegExp(q.cssChildRow,"i"),E=q.$tbodies;q.debug&&(D=new Date);for(e=0;e<E.length;e++)u=E.eq(e),B=u.children("tr").length,1<B&&(x=0,u=u.children("tr:visible"),u.each(function(){w=l(this);F.test(this.className)||x++;C=0===x%2;w.removeClass(r.zebra[C?
1:0]).addClass(r.zebra[C?0:1])}));q.debug&&h.benchmark("Applying Zebra widget",D)},remove:function(e,h,r){var u;r=h.$tbodies;var w=(h.widgetOptions.zebra||["even","odd"]).join(" ");for(h=0;h<r.length;h++)u=l.tablesorter.processTbody(e,r.eq(h),!0),u.children().removeClass(w),l.tablesorter.processTbody(e,u,!1)}})}(jQuery);