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