!function(g){g.extend({tablesorter:newfunction(){functionc(){vara=1<arguments.length?Array.prototype.slice.call(arguments):arguments[0];"undefined"!==typeofconsole&&"undefined"!==typeofconsole.log?console.log(a):alert(a)}functionq(a,b){c(a+" ("+((newDate).getTime()-b.getTime())+"ms)")}functionk(a){for(varbina)return!1;return!0}functionp(a,b,d){if(!b)return"";varh=a.config,e=h.textExtraction,n="",n="simple"===e?h.supportsTextContent?b.textContent:g(b).text():"function"===typeofe?e(b,a,d):"object"===typeofe&&e.hasOwnProperty(d)?e[d](b,a,d):h.supportsTextContent?b.textContent:g(b).text();returng.trim(n)}functions(a){varb=a.config,d=b.$tbodies=b.$table.children("tbody:not(."+b.cssInfoBlock+")"),h,e,n,l,v,g,m,x="";if(0===d.length)returnb.debug?c("*Empty table!* Not building a parser cache"):"";b.debug&&(m=newDate,c("Detecting parsers for each column"));d=d[0].rows;if(d[0])for(h=[],e=d[0].cells.length,n=0;n<e;n++){l=b.$headers.filter(":not([colspan])");l=l.add(b.$headers.filter('[colspan="1"]')).filter('[data-column="'+n+'"]:last');v=b.headers[n];g=f.getParserById(f.getData(l,v,"sorter"));b.empties[n]=f.getData(l,v,"empty")||b.emptyTo||(b.emptyToBottom?"bottom":"top");b.strings[n]=f.getData(l,v,"string")||b.stringTo||"max";if(!g)a:{l=a;v=d;g=-1;for(vark=n,u=void0,A=f.parsers.length,r=!1,s="",u=!0;""===s&&u;)g++,v[g]?(r=v[g].cells[k],s=p(l,r,k),l.config.debug&&c("Checking if value was empty on row "+g+", column: "+k+': "'+s+'"')):u=!1;for(;0<=--A;)if((u=f.parsers[A])&&"text"!==u.id&&u.is&&u.is(s,l,r)){g=u;breaka}g=f.getParserById("text")}b.debug&&(x+="column:"+n+"; parser:"+g.id+"; string:"+b.strings[n]+"; empty: "+b.empties[n]+"\n");h.push(g)}b.debug&&(c(x),q("Completed detecting parsers",m));b.parsers=h}functionw(a){varb=a.tBodies,d=a.config,h,e,n=d.parsers,l,v,y,m,x,k,u,A=[];d.cache={};if(!n)returnd.debug?c("*Empty table!* Not building a cache"):"";d.debug&&(u=newDate);d.showProcessing&&f.isProcessing(a,!0);for(m=0;m<b.length;m++)if(d.cache[m]={row:[],normalized:[]},!g(b[m]).hasClass(d.cssInfoBlock)){h=b[m]&&b[m].rows.length||0;e=b[m].rows[0]&&b[m].rows[0].cells.length||0;for(v=0;v<h;++v)if(x=g(b[m].rows[v]),k=[],x.hasClass(d.cssChildRow))d.cache[m].row[d.cache[m].row.length-1]=d.cache[m].row[d.cache[m].row.length-1].add(x);else{d.cache[m].row.push(x);for(y=0;y<e;++y)l=p(a,x[0].cells[y],y),l=n[y].format(l,a,x[0].cells[y],y),k.push(l),"numeric"===(n[y].type||"").toLowerCase()&&(A[y]=Math.max(Math.abs(l)||0,A[y]||0));k.push(d.cache[m].normalized.length);d.cache[m].normalized.push(k)}d.cache[m].colMax=A}d.showProcessing&&f.isProcessing(a);d.debug&&q("Building cache for "+h+" rows",u)}functionz(a,b){vard=a.config,h=d.widgetOptions,e=a.tBodies,n=[],l=d.cache,c,y,m,x,p,u,A,r,s,t,w;if(!k(l)){d.debug&&(w=newDate);for(r=0;r<e.length;r++)if(c=g(e[r]),c.length&&!c.hasClass(d.cssInfoBlock)){p=f.processTbody(a,c,!0);c=l[r].row;y=l[r].normalized;x=(m=y.length)?y[0].length-1:0;for(u=0;u<m;u++)if(t=y[u][x],n.push(c[t]),!d.appender||d.pager&&!(d.pager.removeRows&&h.pager_removeRows||d.pager.ajax))for(s=c[t].length,A=0;A<s;A++)p.append(c[t][A]);f.processTbody(a,p,!1)}d.appender&&d.appender(a,n);d.debug&&q("Rebuilt table",w);b||d.appender||f.applyWidget(a);g(a).trigger("sortEnd",a);g(a).trigger("updateComplete",a)}}functionD(a){varb=[],d={},h=0,e=g(a).find("thead:eq(0), tfoot").children("tr"),n,l,c,f,m,k,q,p,t,r;for(n=0;n<e.length;n++)for(m=e[n].cells,l=0;l<m.length;l++){f=m[l];k=f.parentNode.rowIndex;q=k+"-"+f.cellIndex;p=f.rowSpan||1;t=f.colSpan||1;"undefined"===typeofb[k]&&(b[k]=[]);for(c=0;c<b[k].length+1;c++)if("undefined"===typeofb[k][c]){r=c;break}d[q]=r;h=Math.max(r,h);g(f).attr({"data-column":r});for(c=k;c<k+p;c++)for("undefined"===typeofb[c]&&(b[c]=[]),q=b[c],f=r;f<r+t;f++)q[f]="x"}a.config.columns=h+1;returnd}functionB(a){return/^d/i.test(a)||1===a}functionE(a){varb=D(a),d,h,e,n,l,v,k,m=a.config;m.headerList=[];m.headerContent=[];m.debug&&(k=newDate);n=m.cssIcon?'<i class="'+(m.cssIcon===f.css.icon?f.css.icon:m.cssIcon+" "+f.css.icon)+'"></i>':"";m.$headers=g(a).find(m.selectorHeaders)