!function(f){f.extend({tablesorter:newfunction(){functiond(c){"undefined"!==typeofconsole&&"undefined"!==typeofconsole.log?console.log(c):alert(c)}functionw(c,b){d(c+" ("+((newDate).getTime()-b.getTime())+"ms)")}functionr(c,b,a){if(!b)return"";vare=c.config,d=e.textExtraction,m="",m="simple"===d?e.supportsTextContent?b.textContent:f(b).text():"function"===typeofd?d(b,c,a):"object"===typeofd&&d.hasOwnProperty(a)?d[a](b,c,a):e.supportsTextContent?b.textContent:f(b).text();returnf.trim(m)}functionj(c){varb=c.config,a=b.$tbodies=b.$table.children("tbody:not(."+b.cssInfoBlock+")"),e,t,m,p,k,n,h="";if(0===a.length)returnb.debug?d("*Empty table!* Not building a parser cache"):"";a=a[0].rows;if(a[0]){e=[];t=a[0].cells.length;for(m=0;m<t;m++){p=b.$headers.filter(":not([colspan])");p=p.add(b.$headers.filter('[colspan="1"]')).filter('[data-column="'+m+'"]:last');k=b.headers[m];n=g.getParserById(g.getData(p,k,"sorter"));b.empties[m]=g.getData(p,k,"empty")||b.emptyTo||(b.emptyToBottom?"bottom":"top");b.strings[m]=g.getData(p,k,"string")||b.stringTo||"max";if(!n)a:{p=c;k=a;n=-1;for(varf=m,l=void0,w=g.parsers.length,F=!1,C="",l=!0;""===C&&l;)n++,k[n]?(F=k[n].cells[f],C=r(p,F,f),p.config.debug&&d("Checking if value was empty on row "+n+", column: "+f+': "'+C+'"')):l=!1;for(;0<=--w;)if((l=g.parsers[w])&&"text"!==l.id&&l.is&&l.is(C,p,F)){n=l;breaka}n=g.getParserById("text")}b.debug&&(h+="column:"+m+"; parser:"+n.id+"; string:"+b.strings[m]+"; empty: "+b.empties[m]+"\n");e.push(n)}}b.debug&&d(h);b.parsers=e}functions(c){varb=c.tBodies,a=c.config,e,t,m=a.parsers,p,k,n,h,q,l,G,j=[];a.cache={};if(!m)returna.debug?d("*Empty table!* Not building a cache"):"";a.debug&&(G=newDate);a.showProcessing&&g.isProcessing(c,!0);for(h=0;h<b.length;h++)if(a.cache[h]={row:[],normalized:[]},!f(b[h]).hasClass(a.cssInfoBlock)){e=b[h]&&b[h].rows.length||0;t=b[h].rows[0]&&b[h].rows[0].cells.length||0;for(k=0;k<e;++k)if(q=f(b[h].rows[k]),l=[],q.hasClass(a.cssChildRow))a.cache[h].row[a.cache[h].row.length-1]=a.cache[h].row[a.cache[h].row.length-1].add(q);else{a.cache[h].row.push(q);for(n=0;n<t;++n)if(p=r(c,q[0].cells[n],n),p=m[n].format(p,c,q[0].cells[n],n),l.push(p),"numeric"===(m[n].type||"").toLowerCase())j[n]=Math.max(Math.abs(p),j[n]||0);l.push(a.cache[h].normalized.length);a.cache[h].normalized.push(l)}a.cache[h].colMax=j}a.showProcessing&&g.isProcessing(c);a.debug&&w("Building cache for "+e+" rows",G)}functionv(c,b){vara=c.config,e=c.tBodies,d=[],m=a.cache,p,k,n,h,q,l,j,r,C,s,v;if(m[0]){a.debug&&(v=newDate);for(r=0;r<e.length;r++)if(p=f(e[r]),p.length&&!p.hasClass(a.cssInfoBlock)){q=g.processTbody(c,p,!0);p=m[r].row;k=m[r].normalized;h=(n=k.length)?k[0].length-1:0;for(l=0;l<n;l++)if(s=k[l][h],d.push(p[s]),!a.appender||!a.removeRows){C=p[s].length;for(j=0;j<C;j++)q.append(p[s][j])}g.processTbody(c,q,!1)}a.appender&&a.appender(c,d);a.debug&&w("Rebuilt table",v);b||g.applyWidget(c);f(c).trigger("sortEnd",c)}}functionz(c){varb=[],a={},e=0,t=f(c).find("thead:eq(0), tfoot").children("tr"),m,p,k,n,h,q,l,j,r,s;for(m=0;m<t.length;m++){h=t[m].cells;for(p=0;p<h.length;p++){n=h[p];q=n.parentNode.rowIndex;l=q+"-"+n.cellIndex;j=n.rowSpan||1;r=n.colSpan||1;"undefined"===typeofb[q]&&(b[q]=[]);for(k=0;k<b[q].length+1;k++)if("undefined"===typeofb[q][k]){s=k;break}a[l]=s;e=Math.max(s,e);f(n).attr({"data-column":s});for(k=q;k<q+j;k++){"undefined"===typeofb[k]&&(b[k]=[]);l=b[k];for(n=s;n<s+r;n++)l[n]="x"}}}c.config.columns=e;varv,u,z,B,A,y,D,x=c.config;x.headerList=[];x.headerContent=[];x.debug&&(D=newDate);B=x.cssIcon?'<i class="'+x.cssIcon+'"></i>':"";x.$headers=f(c).find(x.selectorHeaders).each(function(c){u=f(this);v=x.headers[c];x.headerContent[c]=this.innerHTML;A=x.headerTemplate.replace(/\{content\}/g,this.innerHTML).replace(/\{icon\}/g,B);x.onRenderTemplate&&(z=x.onRenderTemplate.apply(u,[c,A]))&&"string"===typeofz&&(A=z);this.innerHTML='<div class="tablesorter-header-inner">'+A+"</div>";x.onRenderHeader&&x.onRenderHeader.apply(u,[c]);this.column=a[this.parentNode.rowIndex+"-"+this.cellIndex];varb=g.getData(u,v,"sortInitialOrder"