!function(a){"function"==typeofdefine&&define.amd?define(["jquery"],a):"object"==typeofmodule&&"object"==typeofmodule.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){returnfunction(a){"use strict";a.extend({tablesorter:newfunction(){functionb(){vara=arguments[0],b=arguments.length>1?Array.prototype.slice.call(arguments):a;"undefined"!=typeofconsole&&"undefined"!=typeofconsole.log?console[/error/i.test(a)?"error":/warn/i.test(a)?"warn":"log"](b):alert(b)}functionc(a,c){b(a+" ("+((newDate).getTime()-c.getTime())+"ms)")}functiond(a){for(varbina)return!1;return!0}functione(c,d,e,f){for(varg,h,i=c.config,j=v.parsers.length,k=!1,l="",m=!0;""===l&&m;)e++,d[e]?(k=d[e].cells[f],l=v.getElementText(i,k,f),h=a(k),c.config.debug&&b("Checking if value was empty on row "+e+", column: "+f+': "'+l+'"')):m=!1;for(;--j>=0;)if(g=v.parsers[j],g&&"text"!==g.id&&g.is&&g.is(l,c,k,h))returng;returnv.getParserById("text")}functionf(a,b,c,d){"undefined"==typeofd&&(d=v.getElementText(a,b,c));vare=""+d,f=a.parsers[c],g=a.extractors[c];returnf&&(g&&"function"==typeofg.format&&(d=g.format(d,a.table,b,c)),e="no-parser"===f.id?"":f.format(""+d,a.table,b,c),a.ignoreCase&&"string"==typeofe&&(e=e.toLowerCase())),e}functiong(a){vard,f,g,h,i,j,k,l,m,n,o=a.config,p=o.$tbodies=o.$table.children("tbody:not(."+o.cssInfoBlock+")"),q=0,r="",s=p.length;if(0===s)returno.debug?b("Warning: *Empty table!* Not building a parser cache"):"";for(o.debug&&(n=newDate,b("Detecting parsers for each column")),f={extractors:[],parsers:[]};s>q;){if(d=p[q].rows,d.length)for(g=o.columns,h=0;g>h;h++)i=o.$headerIndexed[h],j=v.getColumnData(a,o.headers,h),m=v.getParserById(v.getData(i,j,"extractor")),l=v.getParserById(v.getData(i,j,"sorter")),k="false"===v.getData(i,j,"parser"),o.empties[h]=(v.getData(i,j,"empty")||o.emptyTo||(o.emptyToBottom?"bottom":"top")).toLowerCase(),o.strings[h]=(v.getData(i,j,"string")||o.stringTo||"max").toLowerCase(),k&&(l=v.getParserById("no-parser")),m||(m=!1),l||(l=e(a,d,-1,h)),o.debug&&(r+="column:"+h+"; extractor:"+m.id+"; parser:"+l.id+"; string:"+o.strings[h]+"; empty: "+o.empties[h]+"\n"),f.parsers[h]=l,f.extractors[h]=m;q+=f.parsers.length?s:1}o.debug&&(b(r?r:"No parsers detected"),c("Completed detecting parsers",n)),o.parsers=f.parsers,o.extractors=f.extractors}functionh(d){vare,g,h,i,j,k,l,m,n,o,p,q,r,s=d.config,t=s.$tbodies,u=s.parsers;if(s.cache={},s.totalRows=0,!u)returns.debug?b("Warning: *Empty table!* Not building a cache"):"";for(s.debug&&(n=newDate),s.showProcessing&&v.isProcessing(d,!0),k=0;k<t.length;k++){for(r=[],e=s.cache[k]={normalized:[]},o=t[k]&&t[k].rows.length||0,i=0;o>i;++i)if(p={child:[],raw:[]},l=a(t[k].rows[i]),m=[],l.hasClass(s.cssChildRow)&&0!==i)for(g=e.normalized.length-1,q=e.normalized[g][s.columns],q.$row=q.$row.add(l),l.prev().hasClass(s.cssChildRow)||l.prev().addClass(v.css.cssHasChild),h=l.children("th, td"),g=q.child.length,q.child[g]=[],j=0;j<s.columns;j++)q.child[g][j]=f(s,h[j],j);else{for(p.$row=l,p.order=i,j=0;j<s.columns;++j)"undefined"!=typeofu[j]?(g=v.getElementText(s,l[0].cells[j],j),p.raw.push(g),h=f(s,l[0].cells[j],j,g),m.push(h),"numeric"===(u[j].type||"").toLowerCase()&&(r[j]=Math.max(Math.abs(h)||0,r[j]||0))):s.debug&&b("No parser found for cell:",l[0].cells[j],"does it have a header?");m[s.columns]=p,e.normalized.push(m)}e.colMax=r,s.totalRows+=e.normalized.length}s.showProcessing&&v.isProcessing(d),s.debug&&c("Building cache for "+o+" rows",n)}functioni(a,b){vare,f,g,h,i,j,k,l=a.config,m=l.widgetOptions,n=l.$tbodies,o=[],p=l.cache;if(d(p))returnl.appender?l.appender(a,o):a.isUpdating?l.$table.trigger("updateComplete",a):"";for(l.debug&&(k=newDate),j=0;j<n.length;j++)if(g=n.eq(j),g.length){for(h=v.processTbody(a,g,!0),e=p[j].normalized,f=e.length,i=0;f>i;i++)o.push(e[i][l.columns].$row),l.appender&&(!l.pager||l.pager.removeRows&&m.pager_removeRows||l.pager.ajax)||h.append(e[i][l.columns].$row);v.processTbody(a,h,!1)}l.appender&&l.appender(a,o),l.debug&&c("Rebuilt table",k),b||l.appender||v.applyWidget(a),a.isUpdating&&l.$table.trigger("updateComp