[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/assets/js/vendor/ -> jquery.tablesorter.min.js (source)

   1  !function(A){"use strict";var L=A.tablesorter={version:"2.31.3",parsers:[],widgets:[],defaults:{theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,resort:!0,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",duplicateSpan:!0,textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,initWidgets:!0,widgetClass:"widget-{name}",widgets:[],widgetOptions:{zebra:["even","odd"]},initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssInfoBlock:"tablesorter-infoOnly",cssNoSort:"tablesorter-noSort",cssIgnoreRow:"tablesorter-ignoreRow",cssIcon:"tablesorter-icon",cssIconNone:"",cssIconAsc:"",cssIconDesc:"",cssIconDisabled:"",pointerClick:"click",pointerDown:"mousedown",pointerUp:"mouseup",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[],globalize:0,imgAttr:0},css:{table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",colgroup:"tablesorter-colgroup",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},language:{sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",sortDisabled:"sorting is disabled",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},regex:{templateContent:/\{content\}/g,templateIcon:/\{icon\}/g,templateName:/\{name\}/i,spaces:/\s+/g,nonWord:/\W/g,formElements:/(input|select|button|textarea)/i,chunk:/(^([+\-]?(?:\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i,comma:/,/g,digitNonUS:/[\s|\.]/g,digitNegativeTest:/^\s*\([.\d]+\)/,digitNegativeReplace:/^\s*\(([.\d]+)\)/,digitTest:/^[\-+(]?\d+[)]?$/,digitReplace:/[,.'"\s]/g},string:{max:1,min:-1,emptymin:1,emptymax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},keyCodes:{enter:13},dates:{},instanceMethods:{},setup:function(t,r){if(t&&t.tHead&&0!==t.tBodies.length&&!0!==t.hasInitialized){var e,s="",o=A(t),a=A.metadata;t.hasInitialized=!1,t.isProcessing=!0,t.config=r,A.data(t,"tablesorter",r),L.debug(r,"core")&&(console[console.group?"group":"log"]("Initializing tablesorter v"+L.version),A.data(t,"startoveralltimer",new Date)),r.supportsDataObject=((e=A.fn.jquery.split("."))[0]=parseInt(e[0],10),1<e[0]||1===e[0]&&4<=parseInt(e[1],10)),r.emptyTo=r.emptyTo.toLowerCase(),r.stringTo=r.stringTo.toLowerCase(),r.last={sortList:[],clickedIndex:-1},/tablesorter\-/.test(o.attr("class"))||(s=""!==r.theme?" tablesorter-"+r.theme:""),r.namespace?r.namespace="."+r.namespace.replace(L.regex.nonWord,""):r.namespace=".tablesorter"+Math.random().toString(16).slice(2),r.table=t,r.$table=o.addClass(L.css.table+" "+r.tableClass+s+" "+r.namespace.slice(1)).attr("role","grid"),r.$headers=o.find(r.selectorHeaders),r.$table.children().children("tr").attr("role","row"),r.$tbodies=o.children("tbody:not(."+r.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),r.$table.children("caption").length&&((s=r.$table.children("caption")[0]).id||(s.id=r.namespace.slice(1)+"caption"),r.$table.attr("aria-labelledby",s.id)),r.widgetInit={},r.textExtraction=r.$table.attr("data-text-extraction")||r.textExtraction||"basic",L.buildHeaders(r),L.fixColumnWidth(t),L.addWidgetFromClass(t),L.applyWidgetOptions(t),L.setupParsers(r),r.totalRows=0,r.debug&&L.validateOptions(r),r.delayInit||L.buildCache(r),L.bindEvents(t,r.$headers,!0),L.bindMethods(r),r.supportsDataObject&&void 0!==o.data().sortlist?r.sortList=o.data().sortlist:a&&o.metadata()&&o.metadata().sortlist&&(r.sortList=o.metadata().sortlist),L.applyWidget(t,!0),0<r.sortList.length?(r.last.sortList=r.sortList,L.sortOn(r,r.sortList,{},!r.initWidgets)):(L.setHeadersCss(r),r.initWidgets&&L.applyWidget(t,!1)),r.showProcessing&&o.unbind("sortBegin"+r.namespace+" sortEnd"+r.namespace).bind("sortBegin"+r.namespace+" sortEnd"+r.namespace,function(e){clearTimeout(r.timerProcessing),L.isProcessing(t),"sortBegin"===e.type&&(r.timerProcessing=setTimeout(function(){L.isProcessing(t,!0)},500))}),t.hasInitialized=!0,t.isProcessing=!1,L.debug(r,"core")&&(console.log("Overall initialization time:"+L.benchmark(A.data(t,"startoveralltimer"))),L.debug(r,"core")&&console.groupEnd&&console.groupEnd()),o.triggerHandler("tablesorter-initialized",t),"function"==typeof r.initialized&&r.initialized(t)}else L.debug(r,"core")&&(t.hasInitialized?console.warn("Stopping initialization. Tablesorter has already been initialized"):console.error("Stopping initialization! No table, thead or tbody",t))},bindMethods:function(r){var e=r.$table,t=r.namespace,s="sortReset update updateRows updateAll updateHeaders addRows updateCell updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(t+" ");e.unbind(s.replace(L.regex.spaces," ")).bind("sortReset"+t,function(e,t){e.stopPropagation(),L.sortReset(this.config,function(e){e.isApplyingWidgets?setTimeout(function(){L.applyWidget(e,"",t)},100):L.applyWidget(e,"",t)})}).bind("updateAll"+t,function(e,t,r){e.stopPropagation(),L.updateAll(this.config,t,r)}).bind("update"+t+" updateRows"+t,function(e,t,r){e.stopPropagation(),L.update(this.config,t,r)}).bind("updateHeaders"+t,function(e,t){e.stopPropagation(),L.updateHeaders(this.config,t)}).bind("updateCell"+t,function(e,t,r,s){e.stopPropagation(),L.updateCell(this.config,t,r,s)}).bind("addRows"+t,function(e,t,r,s){e.stopPropagation(),L.addRows(this.config,t,r,s)}).bind("updateComplete"+t,function(){this.isUpdating=!1}).bind("sorton"+t,function(e,t,r,s){e.stopPropagation(),L.sortOn(this.config,t,r,s)}).bind("appendCache"+t,function(e,t,r){e.stopPropagation(),L.appendCache(this.config,r),A.isFunction(t)&&t(this)}).bind("updateCache"+t,function(e,t,r){e.stopPropagation(),L.updateCache(this.config,t,r)}).bind("applyWidgetId"+t,function(e,t){e.stopPropagation(),L.applyWidgetId(this,t)}).bind("applyWidgets"+t,function(e,t){e.stopPropagation(),L.applyWidget(this,!1,t)}).bind("refreshWidgets"+t,function(e,t,r){e.stopPropagation(),L.refreshWidgets(this,t,r)}).bind("removeWidget"+t,function(e,t,r){e.stopPropagation(),L.removeWidget(this,t,r)}).bind("destroy"+t,function(e,t,r){e.stopPropagation(),L.destroy(this,t,r)}).bind("resetToLoadState"+t,function(e){e.stopPropagation(),L.removeWidget(this,!0,!1);var t=A.extend(!0,{},r.originalSettings);(r=A.extend(!0,{},L.defaults,t)).originalSettings=t,this.hasInitialized=!1,L.setup(this,r)})},bindEvents:function(e,t,r){var s,i=(e=A(e)[0]).config,o=i.namespace,l=null;!0!==r&&(t.addClass(o.slice(1)+"_extra_headers"),(s=L.getClosest(t,"table")).length&&"TABLE"===s[0].nodeName&&s[0]!==e&&A(s[0]).addClass(o.slice(1)+"_extra_table")),s=(i.pointerDown+" "+i.pointerUp+" "+i.pointerClick+" sort keyup ").replace(L.regex.spaces," ").split(" ").join(o+" "),t.find(i.selectorSort).add(t.filter(i.selectorSort)).unbind(s).bind(s,function(e,t){var r,s,o,a=A(e.target),n=" "+e.type+" ";if(!(1!==(e.which||e.button)&&!n.match(" "+i.pointerClick+" | sort | keyup ")||" keyup "===n&&e.which!==L.keyCodes.enter||n.match(" "+i.pointerClick+" ")&&void 0!==e.which||n.match(" "+i.pointerUp+" ")&&l!==e.target&&!0!==t)){if(n.match(" "+i.pointerDown+" "))return l=e.target,void("1"===(o=a.jquery.split("."))[0]&&o[1]<4&&e.preventDefault());if(l=null,r=L.getClosest(A(this),"."+L.css.header),L.regex.formElements.test(e.target.nodeName)||a.hasClass(i.cssNoSort)||0<a.parents("."+i.cssNoSort).length||r.hasClass("sorter-false")||0<a.parents("button").length)return!i.cancelSelection;i.delayInit&&L.isEmptyObject(i.cache)&&L.buildCache(i),i.last.clickedIndex=r.attr("data-column")||r.index(),(s=i.$headerIndexed[i.last.clickedIndex][0])&&!s.sortDisabled&&L.initSort(i,s,e)}}),i.cancelSelection&&t.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},buildHeaders:function(l){var e,d,t,r;for(l.headerList=[],l.headerContent=[],l.sortVars=[],L.debug(l,"core")&&(t=new Date),l.columns=L.computeColumnIndex(l.$table.children("thead, tfoot").children("tr")),d=l.cssIcon?'<i class="'+(l.cssIcon===L.css.icon?L.css.icon:l.cssIcon+" "+L.css.icon)+'"></i>':"",l.$headers=A(A.map(l.$table.find(l.selectorHeaders),function(e,t){var r,s,o,a,n,i=A(e);if(!L.getClosest(i,"tr").hasClass(l.cssIgnoreRow))return/(th|td)/i.test(e.nodeName)||(n=L.getClosest(i,"th, td"),i.attr("data-column",n.attr("data-column"))),r=L.getColumnData(l.table,l.headers,t,!0),l.headerContent[t]=i.html(),""===l.headerTemplate||i.find("."+L.css.headerIn).length||(a=l.headerTemplate.replace(L.regex.templateContent,i.html()).replace(L.regex.templateIcon,i.find("."+L.css.icon).length?"":d),l.onRenderTemplate&&(s=l.onRenderTemplate.apply(i,[t,a]))&&"string"==typeof s&&(a=s),i.html('<div class="'+L.css.headerIn+'">'+a+"</div>")),l.onRenderHeader&&l.onRenderHeader.apply(i,[t,l,l.$table]),o=parseInt(i.attr("data-column"),10),e.column=o,n=L.getOrder(L.getData(i,r,"sortInitialOrder")||l.sortInitialOrder),l.sortVars[o]={count:-1,order:n?l.sortReset?[1,0,2]:[1,0]:l.sortReset?[0,1,2]:[0,1],lockedOrder:!1,sortedBy:""},void 0!==(n=L.getData(i,r,"lockedOrder")||!1)&&!1!==n&&(l.sortVars[o].lockedOrder=!0,l.sortVars[o].order=L.getOrder(n)?[1,1]:[0,0]),l.headerList[t]=e,i.addClass(L.css.header+" "+l.cssHeader),L.getClosest(i,"tr").addClass(L.css.headerRow+" "+l.cssHeaderRow).attr("role","row"),l.tabIndex&&i.attr("tabindex",0),e})),l.$headerIndexed=[],r=0;r<l.columns;r++)L.isEmptyObject(l.sortVars[r])&&(l.sortVars[r]={}),e=l.$headers.filter('[data-column="'+r+'"]'),l.$headerIndexed[r]=e.length?e.not(".sorter-false").length?e.not(".sorter-false").filter(":last"):e.filter(":last"):A();l.$table.find(l.selectorHeaders).attr({scope:"col",role:"columnheader"}),L.updateHeader(l),L.debug(l,"core")&&(console.log("Built headers:"+L.benchmark(t)),console.log(l.$headers))},addInstanceMethods:function(e){A.extend(L.instanceMethods,e)},setupParsers:function(e,t){var r,s,o,a,n,i,l,d,c,g,p,u,f,h,m=e.table,b=0,y=L.debug(e,"core"),w={};if(e.$tbodies=e.$table.children("tbody:not(."+e.cssInfoBlock+")"),0===(h=(f=void 0===t?e.$tbodies:t).length))return y?console.warn("Warning: *Empty table!* Not building a parser cache"):"";for(y&&(u=new Date,console[console.group?"group":"log"]("Detecting parsers for each column")),s={extractors:[],parsers:[]};b<h;){if((r=f[b].rows).length)for(n=0,a=e.columns,i=0;i<a;i++){if((l=e.$headerIndexed[n])&&l.length&&(d=L.getColumnData(m,e.headers,n),p=L.getParserById(L.getData(l,d,"extractor")),g=L.getParserById(L.getData(l,d,"sorter")),c="false"===L.getData(l,d,"parser"),e.empties[n]=(L.getData(l,d,"empty")||e.emptyTo||(e.emptyToBottom?"bottom":"top")).toLowerCase(),e.strings[n]=(L.getData(l,d,"string")||e.stringTo||"max").toLowerCase(),c&&(g=L.getParserById("no-parser")),p=p||!1,g=g||L.detectParserForColumn(e,r,-1,n),y&&(w["("+n+") "+l.text()]={parser:g.id,extractor:p?p.id:"none",string:e.strings[n],empty:e.empties[n]}),s.parsers[n]=g,s.extractors[n]=p,0<(o=l[0].colSpan-1)))for(n+=o,a+=o;0<o+1;)s.parsers[n-o]=g,s.extractors[n-o]=p,o--;n++}b+=s.parsers.length?h:1}y&&(L.isEmptyObject(w)?console.warn("  No parsers detected!"):console[console.table?"table":"log"](w),console.log("Completed detecting parsers"+L.benchmark(u)),console.groupEnd&&console.groupEnd()),e.parsers=s.parsers,e.extractors=s.extractors},addParser:function(e){var t,r=L.parsers.length,s=!0;for(t=0;t<r;t++)L.parsers[t].id.toLowerCase()===e.id.toLowerCase()&&(s=!1);s&&(L.parsers[L.parsers.length]=e)},getParserById:function(e){if("false"==e)return!1;var t,r=L.parsers.length;for(t=0;t<r;t++)if(L.parsers[t].id.toLowerCase()===e.toString().toLowerCase())return L.parsers[t];return!1},detectParserForColumn:function(e,t,r,s){for(var o,a,n,i=L.parsers.length,l=!1,d="",c=L.debug(e,"core"),g=!0;""===d&&g;)(n=t[++r])&&r<50?n.className.indexOf(L.cssIgnoreRow)<0&&(l=t[r].cells[s],d=L.getElementText(e,l,s),a=A(l),c&&console.log("Checking if value was empty on row "+r+", column: "+s+': "'+d+'"')):g=!1;for(;0<=--i;)if((o=L.parsers[i])&&"text"!==o.id&&o.is&&o.is(d,e.table,l,a))return o;return L.getParserById("text")},getElementText:function(e,t,r){if(!t)return"";var s,o=e.textExtraction||"",a=t.jquery?t:A(t);return"string"==typeof o?"basic"===o&&void 0!==(s=a.attr(e.textAttribute))?A.trim(s):A.trim(t.textContent||a.text()):"function"==typeof o?A.trim(o(a[0],e.table,r)):"function"==typeof(s=L.getColumnData(e.table,o,r))?A.trim(s(a[0],e.table,r)):A.trim(a[0].textContent||a.text())},getParsedText:function(e,t,r,s){void 0===s&&(s=L.getElementText(e,t,r));var o=""+s,a=e.parsers[r],n=e.extractors[r];return a&&(n&&"function"==typeof n.format&&(s=n.format(s,e.table,t,r)),o="no-parser"===a.id?"":a.format(""+s,e.table,t,r),e.ignoreCase&&"string"==typeof o&&(o=o.toLowerCase())),o},buildCache:function(e,t,r){var s,o,a,n,i,l,d,c,g,p,u,f,h,m,b,y,w,x,v,C,$,I,D=e.table,R=e.parsers,T=L.debug(e,"core");if(e.$tbodies=e.$table.children("tbody:not(."+e.cssInfoBlock+")"),d=void 0===r?e.$tbodies:r,e.cache={},e.totalRows=0,!R)return T?console.warn("Warning: *Empty table!* Not building a cache"):"";for(T&&(f=new Date),e.showProcessing&&L.isProcessing(D,!0),l=0;l<d.length;l++){for(y=[],s=e.cache[l]={normalized:[]},h=d[l]&&d[l].rows.length||0,n=0;n<h;++n)if(m={child:[],raw:[]},g=[],!(c=A(d[l].rows[n])).hasClass(e.selectorRemove.slice(1)))if(c.hasClass(e.cssChildRow)&&0!==n)for($=s.normalized.length-1,(b=s.normalized[$][e.columns]).$row=b.$row.add(c),c.prev().hasClass(e.cssChildRow)||c.prev().addClass(L.css.cssHasChild),p=c.children("th, td"),$=b.child.length,b.child[$]=[],x=0,C=e.columns,i=0;i<C;i++)(u=p[i])&&(b.child[$][i]=L.getParsedText(e,u,i),0<(w=p[i].colSpan-1)&&(x+=w,C+=w)),x++;else{for(m.$row=c,m.order=n,x=0,C=e.columns,i=0;i<C;++i){if((u=c[0].cells[i])&&x<e.columns&&(!(v=void 0!==R[x])&&T&&console.warn("No parser found for row: "+n+", column: "+i+'; cell containing: "'+A(u).text()+'"; does it have a header?'),o=L.getElementText(e,u,x),m.raw[x]=o,a=L.getParsedText(e,u,x,o),g[x]=a,v&&"numeric"===(R[x].type||"").toLowerCase()&&(y[x]=Math.max(Math.abs(a)||0,y[x]||0)),0<(w=u.colSpan-1))){for(I=0;I<=w;)a=e.duplicateSpan||0===I?a:"string"!=typeof e.textExtraction&&L.getElementText(e,u,x+I)||"",m.raw[x+I]=a,g[x+I]=a,I++;x+=w,C+=w}x++}g[e.columns]=m,s.normalized[s.normalized.length]=g}s.colMax=y,e.totalRows+=s.normalized.length}if(e.showProcessing&&L.isProcessing(D),T){for($=Math.min(5,e.cache[0].normalized.length),console[console.group?"group":"log"]("Building cache for "+e.totalRows+" rows (showing "+$+" rows in log) and "+e.columns+" columns"+L.benchmark(f)),o={},i=0;i<e.columns;i++)for(x=0;x<$;x++)o["row: "+x]||(o["row: "+x]={}),o["row: "+x][e.$headerIndexed[i].text()]=e.cache[0].normalized[x][i];console[console.table?"table":"log"](o),console.groupEnd&&console.groupEnd()}A.isFunction(t)&&t(D)},getColumnText:function(e,t,r,s){var o,a,n,i,l,d,c,g,p,u,f="function"==typeof r,h="all"===t,m={raw:[],parsed:[],$cell:[]},b=(e=A(e)[0]).config;if(!L.isEmptyObject(b)){for(l=b.$tbodies.length,o=0;o<l;o++)for(d=(n=b.cache[o].normalized).length,a=0;a<d;a++)i=n[a],s&&!i[b.columns].$row.is(s)||(u=!0,g=h?i.slice(0,b.columns):i[t],i=i[b.columns],c=h?i.raw:i.raw[t],p=h?i.$row.children():i.$row.children().eq(t),f&&(u=r({tbodyIndex:o,rowIndex:a,parsed:g,raw:c,$row:i.$row,$cell:p})),!1!==u&&(m.parsed[m.parsed.length]=g,m.raw[m.raw.length]=c,m.$cell[m.$cell.length]=p));return m}L.debug(b,"core")&&console.warn("No cache found - aborting getColumnText function!")},setHeadersCss:function(a){function e(e,t){e.removeClass(n).addClass(i[t]).attr("aria-sort",d[t]).find("."+L.css.icon).removeClass(l[2]).addClass(l[t])}var t,r,s=a.sortList,o=s.length,n=L.css.sortNone+" "+a.cssNone,i=[L.css.sortAsc+" "+a.cssAsc,L.css.sortDesc+" "+a.cssDesc],l=[a.cssIconAsc,a.cssIconDesc,a.cssIconNone],d=["ascending","descending"],c=a.$table.find("tfoot tr").children("td, th").add(A(a.namespace+"_extra_headers")).removeClass(i.join(" ")),g=a.$headers.add(A("thead "+a.namespace+"_extra_headers")).removeClass(i.join(" ")).addClass(n).attr("aria-sort","none").find("."+L.css.icon).removeClass(l.join(" ")).end();for(g.not(".sorter-false").find("."+L.css.icon).addClass(l[2]),a.cssIconDisabled&&g.filter(".sorter-false").find("."+L.css.icon).addClass(a.cssIconDisabled),t=0;t<o;t++)if(2!==s[t][1]){if((g=(g=a.$headers.filter(function(e){for(var t=!0,r=a.$headers.eq(e),s=parseInt(r.attr("data-column"),10),o=s+L.getClosest(r,"th, td")[0].colSpan;s<o;s++)t=!!t&&(t||-1<L.isValueInArray(s,a.sortList));return t})).not(".sorter-false").filter('[data-column="'+s[t][0]+'"]'+(1===o?":last":""))).length)for(r=0;r<g.length;r++)g[r].sortDisabled||e(g.eq(r),s[t][1]);c.length&&e(c.filter('[data-column="'+s[t][0]+'"]'),s[t][1])}for(o=a.$headers.length,t=0;t<o;t++)L.setColumnAriaLabel(a,a.$headers.eq(t))},getClosest:function(e,t){return A.fn.closest?e.closest(t):e.is(t)?e:e.parents(t).filter(":first")},setColumnAriaLabel:function(e,t,r){if(t.length){var s=parseInt(t.attr("data-column"),10),o=e.sortVars[s],a=t.hasClass(L.css.sortAsc)?"sortAsc":t.hasClass(L.css.sortDesc)?"sortDesc":"sortNone",n=A.trim(t.text())+": "+L.language[a];t.hasClass("sorter-false")||!1===r?n+=L.language.sortDisabled:(a=(o.count+1)%o.order.length,r=o.order[a],n+=L.language[0===r?"nextAsc":1===r?"nextDesc":"nextNone"]),t.attr("aria-label",n),o.sortedBy?t.attr("data-sortedBy",o.sortedBy):t.removeAttr("data-sortedBy")}},updateHeader:function(e){var t,r,s,o,a=e.table,n=e.$headers.length;for(t=0;t<n;t++)s=e.$headers.eq(t),o=L.getColumnData(a,e.headers,t,!0),r="false"===L.getData(s,o,"sorter")||"false"===L.getData(s,o,"parser"),L.setColumnSort(e,s,r)},setColumnSort:function(e,t,r){var s=e.table.id;t[0].sortDisabled=r,t[r?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+r),e.tabIndex&&(r?t.removeAttr("tabindex"):t.attr("tabindex","0")),s&&(r?t.removeAttr("aria-controls"):t.attr("aria-controls",s))},updateHeaderSortCount:function(e,t){var r,s,o,a,n,i,l,d,c=t||e.sortList,g=c.length;for(e.sortList=[],a=0;a<g;a++)if(l=c[a],(r=parseInt(l[0],10))<e.columns){switch(e.sortVars[r].order||(d=L.getOrder(e.sortInitialOrder)?e.sortReset?[1,0,2]:[1,0]:e.sortReset?[0,1,2]:[0,1],e.sortVars[r].order=d,e.sortVars[r].count=0),d=e.sortVars[r].order,s=(s=(""+l[1]).match(/^(1|d|s|o|n)/))?s[0]:""){case"1":case"d":s=1;break;case"s":s=n||0;break;case"o":s=0===(i=d[(n||0)%d.length])?1:1===i?0:2;break;case"n":s=d[++e.sortVars[r].count%d.length];break;default:s=0}n=0===a?s:n,o=[r,parseInt(s,10)||0],e.sortList[e.sortList.length]=o,s=A.inArray(o[1],d),e.sortVars[r].count=0<=s?s:o[1]%d.length}},updateAll:function(e,t,r){var s=e.table;s.isUpdating=!0,L.refreshWidgets(s,!0,!0),L.buildHeaders(e),L.bindEvents(s,e.$headers,!0),L.bindMethods(e),L.commonUpdate(e,t,r)},update:function(e,t,r){e.table.isUpdating=!0,L.updateHeader(e),L.commonUpdate(e,t,r)},updateHeaders:function(e,t){e.table.isUpdating=!0,L.buildHeaders(e),L.bindEvents(e.table,e.$headers,!0),L.resortComplete(e,t)},updateCell:function(e,t,r,s){if(A(t).closest("tr").hasClass(e.cssChildRow))console.warn('Tablesorter Warning! "updateCell" for child row content has been disabled, use "update" instead');else{if(L.isEmptyObject(e.cache))return L.updateHeader(e),void L.commonUpdate(e,r,s);e.table.isUpdating=!0,e.$table.find(e.selectorRemove).remove();var o,a,n,i,l,d,c=e.$tbodies,g=A(t),p=c.index(L.getClosest(g,"tbody")),u=e.cache[p],f=L.getClosest(g,"tr");if(t=g[0],c.length&&0<=p){if(n=c.eq(p).find("tr").not("."+e.cssChildRow).index(f),l=u.normalized[n],(d=f[0].cells.length)!==e.columns)for(o=!1,a=i=0;a<d;a++)o||f[0].cells[a]===t?o=!0:i+=f[0].cells[a].colSpan;else i=g.index();o=L.getElementText(e,t,i),l[e.columns].raw[i]=o,o=L.getParsedText(e,t,i,o),l[i]=o,"numeric"===(e.parsers[i].type||"").toLowerCase()&&(u.colMax[i]=Math.max(Math.abs(o)||0,u.colMax[i]||0)),!1!==(o="undefined"!==r?r:e.resort)?L.checkResort(e,o,s):L.resortComplete(e,s)}else L.debug(e,"core")&&console.error("updateCell aborted, tbody missing or not within the indicated table"),e.table.isUpdating=!1}},addRows:function(e,t,r,s){var o,a,n,i,l,d,c,g,p,u,f,h,m,b="string"==typeof t&&1===e.$tbodies.length&&/<tr/.test(t||""),y=e.table;if(b)t=A(t),e.$tbodies.append(t);else if(!(t&&t instanceof A&&L.getClosest(t,"table")[0]===e.table))return L.debug(e,"core")&&console.error("addRows method requires (1) a jQuery selector reference to rows that have already been added to the table, or (2) row HTML string to be added to a table with only one tbody"),!1;if(y.isUpdating=!0,L.isEmptyObject(e.cache))L.updateHeader(e),L.commonUpdate(e,r,s);else{for(l=t.filter("tr").attr("role","row").length,n=e.$tbodies.index(t.parents("tbody").filter(":first")),e.parsers&&e.parsers.length||L.setupParsers(e),i=0;i<l;i++){for(p=0,c=t[i].cells.length,g=e.cache[n].normalized.length,f=[],u={child:[],raw:[],$row:t.eq(i),order:g},d=0;d<c;d++)h=t[i].cells[d],o=L.getElementText(e,h,p),u.raw[p]=o,a=L.getParsedText(e,h,p,o),f[p]=a,"numeric"===(e.parsers[p].type||"").toLowerCase()&&(e.cache[n].colMax[p]=Math.max(Math.abs(a)||0,e.cache[n].colMax[p]||0)),0<(m=h.colSpan-1)&&(p+=m),p++;f[e.columns]=u,e.cache[n].normalized[g]=f}L.checkResort(e,r,s)}},updateCache:function(e,t,r){e.parsers&&e.parsers.length||L.setupParsers(e,r),L.buildCache(e,t,r)},appendCache:function(e,t){var r,s,o,a,n,i,l,d=e.table,c=e.$tbodies,g=[],p=e.cache;if(L.isEmptyObject(p))return e.appender?e.appender(d,g):d.isUpdating?e.$table.triggerHandler("updateComplete",d):"";for(L.debug(e,"core")&&(l=new Date),i=0;i<c.length;i++)if((o=c.eq(i)).length){for(a=L.processTbody(d,o,!0),s=(r=p[i].normalized).length,n=0;n<s;n++)g[g.length]=r[n][e.columns].$row,e.appender&&(!e.pager||e.pager.removeRows||e.pager.ajax)||a.append(r[n][e.columns].$row);L.processTbody(d,a,!1)}e.appender&&e.appender(d,g),L.debug(e,"core")&&console.log("Rebuilt table"+L.benchmark(l)),t||e.appender||L.applyWidget(d),d.isUpdating&&e.$table.triggerHandler("updateComplete",d)},commonUpdate:function(e,t,r){e.$table.find(e.selectorRemove).remove(),L.setupParsers(e),L.buildCache(e),L.checkResort(e,t,r)},initSort:function(t,e,r){if(t.table.isUpdating)return setTimeout(function(){L.initSort(t,e,r)},50);var s,o,a,n,i,l,d,c=!r[t.sortMultiSortKey],g=t.table,p=t.$headers.length,u=L.getClosest(A(e),"th, td"),f=parseInt(u.attr("data-column"),10),h="mouseup"===r.type?"user":r.type,m=t.sortVars[f].order;if(u=u[0],t.$table.triggerHandler("sortStart",g),l=(t.sortVars[f].count+1)%m.length,t.sortVars[f].count=r[t.sortResetKey]?2:l,t.sortRestart)for(a=0;a<p;a++)d=t.$headers.eq(a),f!==(l=parseInt(d.attr("data-column"),10))&&(c||d.hasClass(L.css.sortNone))&&(t.sortVars[l].count=-1);if(c){if(A.each(t.sortVars,function(e){t.sortVars[e].sortedBy=""}),t.sortList=[],t.last.sortList=[],null!==t.sortForce)for(s=t.sortForce,o=0;o<s.length;o++)s[o][0]!==f&&(t.sortList[t.sortList.length]=s[o],t.sortVars[s[o][0]].sortedBy="sortForce");if((n=m[t.sortVars[f].count])<2&&(t.sortList[t.sortList.length]=[f,n],t.sortVars[f].sortedBy=h,1<u.colSpan))for(o=1;o<u.colSpan;o++)t.sortList[t.sortList.length]=[f+o,n],t.sortVars[f+o].count=A.inArray(n,m),t.sortVars[f+o].sortedBy=h}else if(t.sortList=A.extend([],t.last.sortList),0<=L.isValueInArray(f,t.sortList))for(t.sortVars[f].sortedBy=h,o=0;o<t.sortList.length;o++)(l=t.sortList[o])[0]===f&&(l[1]=m[t.sortVars[f].count],2===l[1]&&(t.sortList.splice(o,1),t.sortVars[f].count=-1));else if(n=m[t.sortVars[f].count],t.sortVars[f].sortedBy=h,n<2&&(t.sortList[t.sortList.length]=[f,n],1<u.colSpan))for(o=1;o<u.colSpan;o++)t.sortList[t.sortList.length]=[f+o,n],t.sortVars[f+o].count=A.inArray(n,m),t.sortVars[f+o].sortedBy=h;if(t.last.sortList=A.extend([],t.sortList),t.sortList.length&&t.sortAppend&&(s=A.isArray(t.sortAppend)?t.sortAppend:t.sortAppend[t.sortList[0][0]],!L.isEmptyObject(s)))for(o=0;o<s.length;o++)if(s[o][0]!==f&&L.isValueInArray(s[o][0],t.sortList)<0){if(i=(""+(n=s[o][1])).match(/^(a|d|s|o|n)/))switch(l=t.sortList[0][1],i[0]){case"d":n=1;break;case"s":n=l;break;case"o":n=0===l?1:0;break;case"n":n=(l+1)%m.length;break;default:n=0}t.sortList[t.sortList.length]=[s[o][0],n],t.sortVars[s[o][0]].sortedBy="sortAppend"}t.$table.triggerHandler("sortBegin",g),setTimeout(function(){L.setHeadersCss(t),L.multisort(t),L.appendCache(t),t.$table.triggerHandler("sortBeforeEnd",g),t.$table.triggerHandler("sortEnd",g)},1)},multisort:function(d){var e,t,c,r,g=d.table,p=[],u=0,f=d.textSorter||"",h=d.sortList,m=h.length,s=d.$tbodies.length;if(!d.serverSideSorting&&!L.isEmptyObject(d.cache)){if(L.debug(d,"core")&&(t=new Date),"object"==typeof f)for(c=d.columns;c--;)"function"==typeof(r=L.getColumnData(g,f,c))&&(p[c]=r);for(e=0;e<s;e++)c=d.cache[e].colMax,d.cache[e].normalized.sort(function(e,t){var r,s,o,a,n,i,l;for(r=0;r<m;r++){if(o=h[r][0],a=h[r][1],u=0===a,d.sortStable&&e[o]===t[o]&&1===m)return e[d.columns].order-t[d.columns].order;if(n=(s=/n/i.test(L.getSortType(d.parsers,o)))&&d.strings[o]?(s="boolean"==typeof L.string[d.strings[o]]?(u?1:-1)*(L.string[d.strings[o]]?-1:1):d.strings[o]&&L.string[d.strings[o]]||0,d.numberSorter?d.numberSorter(e[o],t[o],u,c[o],g):L["sortNumeric"+(u?"Asc":"Desc")](e[o],t[o],s,c[o],o,d)):(i=u?e:t,l=u?t:e,"function"==typeof f?f(i[o],l[o],u,o,g):"function"==typeof p[o]?p[o](i[o],l[o],u,o,g):L["sortNatural"+(u?"Asc":"Desc")](e[o]||"",t[o]||"",o,d)))return n}return e[d.columns].order-t[d.columns].order});L.debug(d,"core")&&console.log("Applying sort "+h.toString()+L.benchmark(t))}},resortComplete:function(e,t){e.table.isUpdating&&e.$table.triggerHandler("updateComplete",e.table),A.isFunction(t)&&t(e.table)},checkResort:function(e,t,r){var s=A.isArray(t)?t:e.sortList;!1===(void 0===t?e.resort:t)||e.serverSideSorting||e.table.isProcessing?(L.resortComplete(e,r),L.applyWidget(e.table,!1)):s.length?L.sortOn(e,s,function(){L.resortComplete(e,r)},!0):L.sortReset(e,function(){L.resortComplete(e,r),L.applyWidget(e.table,!1)})},sortOn:function(e,t,r,s){var o,a=e.table;for(e.$table.triggerHandler("sortStart",a),o=0;o<e.columns;o++)e.sortVars[o].sortedBy=-1<L.isValueInArray(o,t)?"sorton":"";L.updateHeaderSortCount(e,t),L.setHeadersCss(e),e.delayInit&&L.isEmptyObject(e.cache)&&L.buildCache(e),e.$table.triggerHandler("sortBegin",a),L.multisort(e),L.appendCache(e,s),e.$table.triggerHandler("sortBeforeEnd",a),e.$table.triggerHandler("sortEnd",a),L.applyWidget(a),A.isFunction(r)&&r(a)},sortReset:function(e,t){var r;for(e.sortList=[],r=0;r<e.columns;r++)e.sortVars[r].count=-1,e.sortVars[r].sortedBy="";L.setHeadersCss(e),L.multisort(e),L.appendCache(e),A.isFunction(t)&&t(e.table)},getSortType:function(e,t){return e&&e[t]&&e[t].type||""},getOrder:function(e){return/^d/i.test(e)||1===e},sortNatural:function(e,t){if(e===t)return 0;e=(e||"").toString(),t=(t||"").toString();var r,s,o,a,n,i,l=L.regex;if(l.hex.test(t)){if((r=parseInt(e.match(l.hex),16))<(s=parseInt(t.match(l.hex),16)))return-1;if(s<r)return 1}for(r=e.replace(l.chunk,"\\0$1\\0").replace(l.chunks,"").split("\\0"),s=t.replace(l.chunk,"\\0$1\\0").replace(l.chunks,"").split("\\0"),i=Math.max(r.length,s.length),n=0;n<i;n++){if(o=isNaN(r[n])?r[n]||0:parseFloat(r[n])||0,a=isNaN(s[n])?s[n]||0:parseFloat(s[n])||0,isNaN(o)!==isNaN(a))return isNaN(o)?1:-1;if(typeof o!=typeof a&&(o+="",a+=""),o<a)return-1;if(a<o)return 1}return 0},sortNaturalAsc:function(e,t,r,s){if(e===t)return 0;var o=L.string[s.empties[r]||s.emptyTo];return""===e&&0!==o?"boolean"==typeof o?o?-1:1:-o||-1:""===t&&0!==o?"boolean"==typeof o?o?1:-1:o||1:L.sortNatural(e,t)},sortNaturalDesc:function(e,t,r,s){if(e===t)return 0;var o=L.string[s.empties[r]||s.emptyTo];return""===e&&0!==o?"boolean"==typeof o?o?-1:1:o||1:""===t&&0!==o?"boolean"==typeof o?o?1:-1:-o||-1:L.sortNatural(t,e)},sortText:function(e,t){return t<e?1:e<t?-1:0},getTextValue:function(e,t,r){if(r){var s,o=e?e.length:0,a=r+t;for(s=0;s<o;s++)a+=e.charCodeAt(s);return t*a}return 0},sortNumericAsc:function(e,t,r,s,o,a){if(e===t)return 0;var n=L.string[a.empties[o]||a.emptyTo];return""===e&&0!==n?"boolean"==typeof n?n?-1:1:-n||-1:""===t&&0!==n?"boolean"==typeof n?n?1:-1:n||1:(isNaN(e)&&(e=L.getTextValue(e,r,s)),isNaN(t)&&(t=L.getTextValue(t,r,s)),e-t)},sortNumericDesc:function(e,t,r,s,o,a){if(e===t)return 0;var n=L.string[a.empties[o]||a.emptyTo];return""===e&&0!==n?"boolean"==typeof n?n?-1:1:n||1:""===t&&0!==n?"boolean"==typeof n?n?1:-1:-n||-1:(isNaN(e)&&(e=L.getTextValue(e,r,s)),isNaN(t)&&(t=L.getTextValue(t,r,s)),t-e)},sortNumeric:function(e,t){return e-t},addWidget:function(e){e.id&&!L.isEmptyObject(L.getWidgetById(e.id))&&console.warn('"'+e.id+'" widget was loaded more than once!'),L.widgets[L.widgets.length]=e},hasWidget:function(e,t){return(e=A(e)).length&&e[0].config&&e[0].config.widgetInit[t]||!1},getWidgetById:function(e){var t,r,s=L.widgets.length;for(t=0;t<s;t++)if((r=L.widgets[t])&&r.id&&r.id.toLowerCase()===e.toLowerCase())return r},applyWidgetOptions:function(e){var t,r,s,o=e.config,a=o.widgets.length;if(a)for(t=0;t<a;t++)(r=L.getWidgetById(o.widgets[t]))&&r.options&&(s=A.extend(!0,{},r.options),o.widgetOptions=A.extend(!0,s,o.widgetOptions),A.extend(!0,L.defaults.widgetOptions,r.options))},addWidgetFromClass:function(e){var t,r,s=e.config,o="^"+s.widgetClass.replace(L.regex.templateName,"(\\S+)+")+"$",a=new RegExp(o,"g"),n=(e.className||"").split(L.regex.spaces);if(n.length)for(t=n.length,r=0;r<t;r++)n[r].match(a)&&(s.widgets[s.widgets.length]=n[r].replace(a,"$1"))},applyWidgetId:function(e,t,r){var s,o,a,n=(e=A(e)[0]).config,i=n.widgetOptions,l=L.debug(n,"core"),d=L.getWidgetById(t);d&&(a=d.id,s=!1,A.inArray(a,n.widgets)<0&&(n.widgets[n.widgets.length]=a),l&&(o=new Date),!r&&n.widgetInit[a]||(n.widgetInit[a]=!0,e.hasInitialized&&L.applyWidgetOptions(e),"function"==typeof d.init&&(s=!0,l&&console[console.group?"group":"log"]("Initializing "+a+" widget"),d.init(e,d,n,i))),r||"function"!=typeof d.format||(s=!0,l&&console[console.group?"group":"log"]("Updating "+a+" widget"),d.format(e,n,i,!1)),l&&s&&(console.log("Completed "+(r?"initializing ":"applying ")+a+" widget"+L.benchmark(o)),console.groupEnd&&console.groupEnd()))},applyWidget:function(e,t,r){var s,o,a,n,i,l=(e=A(e)[0]).config,d=L.debug(l,"core"),c=[];if(!1===t||!e.hasInitialized||!e.isApplyingWidgets&&!e.isUpdating){if(d&&(i=new Date),L.addWidgetFromClass(e),clearTimeout(l.timerReady),l.widgets.length){for(e.isApplyingWidgets=!0,l.widgets=A.grep(l.widgets,function(e,t){return A.inArray(e,l.widgets)===t}),o=(a=l.widgets||[]).length,s=0;s<o;s++)(n=L.getWidgetById(a[s]))&&n.id?(n.priority||(n.priority=10),c[s]=n):d&&console.warn('"'+a[s]+'" was enabled, but the widget code has not been loaded!');for(c.sort(function(e,t){return e.priority<t.priority?-1:e.priority===t.priority?0:1}),o=c.length,d&&console[console.group?"group":"log"]("Start "+(t?"initializing":"applying")+" widgets"),s=0;s<o;s++)(n=c[s])&&n.id&&L.applyWidgetId(e,n.id,t);d&&console.groupEnd&&console.groupEnd()}l.timerReady=setTimeout(function(){e.isApplyingWidgets=!1,A.data(e,"lastWidgetApplication",new Date),l.$table.triggerHandler("tablesorter-ready"),t||"function"!=typeof r||r(e),d&&(n=l.widgets.length,console.log("Completed "+(!0===t?"initializing ":"applying ")+n+" widget"+(1!==n?"s":"")+L.benchmark(i)))},10)}},removeWidget:function(e,t,r){var s,o,a,n,i=(e=A(e)[0]).config;if(!0===t)for(t=[],n=L.widgets.length,a=0;a<n;a++)(o=L.widgets[a])&&o.id&&(t[t.length]=o.id);else t=(A.isArray(t)?t.join(","):t||"").toLowerCase().split(/[\s,]+/);for(n=t.length,s=0;s<n;s++)o=L.getWidgetById(t[s]),0<=(a=A.inArray(t[s],i.widgets))&&!0!==r&&i.widgets.splice(a,1),o&&o.remove&&(L.debug(i,"core")&&console.log((r?"Refreshing":"Removing")+' "'+t[s]+'" widget'),o.remove(e,i,i.widgetOptions,r),i.widgetInit[t[s]]=!1);i.$table.triggerHandler("widgetRemoveEnd",e)},refreshWidgets:function(e,t,r){function s(e){A(e).triggerHandler("refreshComplete")}var o,a,n=(e=A(e)[0]).config.widgets,i=L.widgets,l=i.length,d=[];for(o=0;o<l;o++)(a=i[o])&&a.id&&(t||A.inArray(a.id,n)<0)&&(d[d.length]=a.id);L.removeWidget(e,d.join(","),!0),!0!==r?(L.applyWidget(e,t||!1,s),t&&L.applyWidget(e,!1,s)):s(e)},benchmark:function(e){return" ("+((new Date).getTime()-e.getTime())+" ms)"},log:function(){console.log(arguments)},debug:function(e,t){return e&&(!0===e.debug||"string"==typeof e.debug&&-1<e.debug.indexOf(t))},isEmptyObject:function(e){for(var t in e)return!1;return!0},isValueInArray:function(e,t){var r,s=t&&t.length||0;for(r=0;r<s;r++)if(t[r][0]===e)return r;return-1},formatFloat:function(e,t){return"string"!=typeof e||""===e?e:(e=(t&&t.config?!1!==t.config.usNumberFormat:void 0===t||t)?e.replace(L.regex.comma,""):e.replace(L.regex.digitNonUS,"").replace(L.regex.comma,"."),L.regex.digitNegativeTest.test(e)&&(e=e.replace(L.regex.digitNegativeReplace,"-$1")),r=parseFloat(e),isNaN(r)?A.trim(e):r);var r},isDigit:function(e){return isNaN(e)?L.regex.digitTest.test(e.toString().replace(L.regex.digitReplace,"")):""!==e},computeColumnIndex:function(e,t){var r,s,o,a,n,i,l,d,c,g,p=t&&t.columns||0,u=[],f=new Array(p);for(r=0;r<e.length;r++)for(i=e[r].cells,s=0;s<i.length;s++){for(l=r,d=(n=i[s]).rowSpan||1,c=n.colSpan||1,void 0===u[l]&&(u[l]=[]),o=0;o<u[l].length+1;o++)if(void 0===u[l][o]){g=o;break}for(p&&n.cellIndex===g||(n.setAttribute?n.setAttribute("data-column",g):A(n).attr("data-column",g)),o=l;o<l+d;o++)for(void 0===u[o]&&(u[o]=[]),f=u[o],a=g;a<g+c;a++)f[a]="x"}return L.checkColumnCount(e,u,f.length),f.length},checkColumnCount:function(e,t,r){var s,o,a=!0,n=[];for(s=0;s<t.length;s++)if(t[s]&&(o=t[s].length,t[s].length!==r)){a=!1;break}a||(e.each(function(e,t){var r=t.parentElement.nodeName;n.indexOf(r)<0&&n.push(r)}),console.error("Invalid or incorrect number of columns in the "+n.join(" or ")+"; expected "+r+", but found "+o+" columns"))},fixColumnWidth:function(e){var t,r,s,o,a,n=(e=A(e)[0]).config,i=n.$table.children("colgroup");if(i.length&&i.hasClass(L.css.colgroup)&&i.remove(),n.widthFixed&&0===n.$table.children("colgroup").length){for(i=A('<colgroup class="'+L.css.colgroup+'">'),t=n.$table.width(),o=(s=n.$tbodies.find("tr:first").children(":visible")).length,a=0;a<o;a++)r=parseInt(s.eq(a).width()/t*1e3,10)/10+"%",i.append(A("<col>").css("width",r));n.$table.prepend(i)}},getData:function(e,t,r){var s,o,a="",n=A(e);return n.length?(s=!!A.metadata&&n.metadata(),o=" "+(n.attr("class")||""),void 0!==n.data(r)||void 0!==n.data(r.toLowerCase())?a+=n.data(r)||n.data(r.toLowerCase()):s&&void 0!==s[r]?a+=s[r]:t&&void 0!==t[r]?a+=t[r]:" "!==o&&o.match(" "+r+"-")&&(a=o.match(new RegExp("\\s"+r+"-([\\w-]+)"))[1]||""),A.trim(a)):""},getColumnData:function(e,t,r,s,o){if("object"!=typeof t||null===t)return t;var a,n=(e=A(e)[0]).config,i=o||n.$headers,l=n.$headerIndexed&&n.$headerIndexed[r]||i.find('[data-column="'+r+'"]:last');if(void 0!==t[r])return s?t[r]:t[i.index(l)];for(a in t)if("string"==typeof a&&l.filter(a).add(l.find(a)).length)return t[a]},isProcessing:function(e,t,r){var s=(e=A(e))[0].config,o=r||e.find("."+L.css.header);t?(void 0!==r&&0<s.sortList.length&&(o=o.filter(function(){return!this.sortDisabled&&0<=L.isValueInArray(parseFloat(A(this).attr("data-column")),s.sortList)})),e.add(o).addClass(L.css.processing+" "+s.cssProcessing)):e.add(o).removeClass(L.css.processing+" "+s.cssProcessing)},processTbody:function(e,t,r){if(e=A(e)[0],r)return e.isProcessing=!0,t.before('<colgroup class="tablesorter-savemyplace"/>'),A.fn.detach?t.detach():t.remove();var s=A(e).find("colgroup.tablesorter-savemyplace");t.insertAfter(s),s.remove(),e.isProcessing=!1},clearTableBody:function(e){A(e)[0].config.$tbodies.children().detach()},characterEquivalents:{a:"\xe1\xe0\xe2\xe3\xe4\u0105\xe5",A:"\xc1\xc0\xc2\xc3\xc4\u0104\xc5",c:"\xe7\u0107\u010d",C:"\xc7\u0106\u010c",e:"\xe9\xe8\xea\xeb\u011b\u0119",E:"\xc9\xc8\xca\xcb\u011a\u0118",i:"\xed\xec\u0130\xee\xef\u0131",I:"\xcd\xcc\u0130\xce\xcf",o:"\xf3\xf2\xf4\xf5\xf6\u014d",O:"\xd3\xd2\xd4\xd5\xd6\u014c",ss:"\xdf",SS:"\u1e9e",u:"\xfa\xf9\xfb\xfc\u016f",U:"\xda\xd9\xdb\xdc\u016e"},replaceAccents:function(e){var t,r="[",s=L.characterEquivalents;if(!L.characterRegex){for(t in L.characterRegexArray={},s)"string"==typeof t&&(r+=s[t],L.characterRegexArray[t]=new RegExp("["+s[t]+"]","g"));L.characterRegex=new RegExp(r+"]")}if(L.characterRegex.test(e))for(t in s)"string"==typeof t&&(e=e.replace(L.characterRegexArray[t],t));return e},validateOptions:function(e){var t,r,s,o,a="headers sortForce sortList sortAppend widgets".split(" "),n=e.originalSettings;if(n){for(t in L.debug(e,"core")&&(o=new Date),n)if("undefined"===(s=typeof L.defaults[t]))console.warn('Tablesorter Warning! "table.config.'+t+'" option not recognized');else if("object"===s)for(r in n[t])s=L.defaults[t]&&typeof L.defaults[t][r],A.inArray(t,a)<0&&"undefined"===s&&console.warn('Tablesorter Warning! "table.config.'+t+"."+r+'" option not recognized');L.debug(e,"core")&&console.log("validate options time:"+L.benchmark(o))}},restoreHeaders:function(e){var t,r,s=A(e)[0].config,o=s.$table.find(s.selectorHeaders),a=o.length;for(t=0;t<a;t++)(r=o.eq(t)).find("."+L.css.headerIn).length&&r.html(s.headerContent[t])},destroy:function(e,t,r){if((e=A(e)[0]).hasInitialized){L.removeWidget(e,!0,!1);var s,o=A(e),a=e.config,n=o.find("thead:first"),i=n.find("tr."+L.css.headerRow).removeClass(L.css.headerRow+" "+a.cssHeaderRow),l=o.find("tfoot:first > tr").children("th, td");!1===t&&0<=A.inArray("uitheme",a.widgets)&&(o.triggerHandler("applyWidgetId",["uitheme"]),o.triggerHandler("applyWidgetId",["zebra"])),n.find("tr").not(i).remove(),s="sortReset update updateRows updateAll updateHeaders updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets removeWidget destroy mouseup mouseleave "+"keypress sortBegin sortEnd resetToLoadState ".split(" ").join(a.namespace+" "),o.removeData("tablesorter").unbind(s.replace(L.regex.spaces," ")),a.$headers.add(l).removeClass([L.css.header,a.cssHeader,a.cssAsc,a.cssDesc,L.css.sortAsc,L.css.sortDesc,L.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),i.find(a.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(a.namespace+" ").replace(L.regex.spaces," ")),L.restoreHeaders(e),o.toggleClass(L.css.table+" "+a.tableClass+" tablesorter-"+a.theme,!1===t),o.removeClass(a.namespace.slice(1)),e.hasInitialized=!1,delete e.config.cache,"function"==typeof r&&r(e),L.debug(a,"core")&&console.log("tablesorter has been removed")}}};A.fn.tablesorter=function(t){return this.each(function(){var e=A.extend(!0,{},L.defaults,t,L.instanceMethods);e.originalSettings=t,!this.hasInitialized&&L.buildTable&&"TABLE"!==this.nodeName?L.buildTable(this,e):L.setup(this,e)})},window.console&&window.console.log||(L.logs=[],console={},console.log=console.warn=console.error=console.table=function(){var e=1<arguments.length?arguments:arguments[0];L.logs[L.logs.length]={date:Date.now(),log:e}}),L.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),L.addParser({id:"text",is:function(){return!0},format:function(e,t){var r=t.config;return e&&(e=A.trim(r.ignoreCase?e.toLocaleLowerCase():e),e=r.sortLocaleCompare?L.replaceAccents(e):e),e},type:"text"}),L.regex.nondigit=/[^\w,. \-()]/g,L.addParser({id:"digit",is:function(e){return L.isDigit(e)},format:function(e,t){var r=L.formatFloat((e||"").replace(L.regex.nondigit,""),t);return e&&"number"==typeof r?r:e?A.trim(e&&t.config.ignoreCase?e.toLocaleLowerCase():e):e},type:"numeric"}),L.regex.currencyReplace=/[+\-,. ]/g,L.regex.currencyTest=/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/,L.addParser({id:"currency",is:function(e){return e=(e||"").replace(L.regex.currencyReplace,""),L.regex.currencyTest.test(e)},format:function(e,t){var r=L.formatFloat((e||"").replace(L.regex.nondigit,""),t);return e&&"number"==typeof r?r:e?A.trim(e&&t.config.ignoreCase?e.toLocaleLowerCase():e):e},type:"numeric"}),L.regex.urlProtocolTest=/^(https?|ftp|file):\/\//,L.regex.urlProtocolReplace=/(https?|ftp|file):\/\/(www\.)?/,L.addParser({id:"url",is:function(e){return L.regex.urlProtocolTest.test(e)},format:function(e){return e?A.trim(e.replace(L.regex.urlProtocolReplace,"")):e},type:"text"}),L.regex.dash=/-/g,L.regex.isoDate=/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/,L.addParser({id:"isoDate",is:function(e){return L.regex.isoDate.test(e)},format:function(e){var t=e?new Date(e.replace(L.regex.dash,"/")):e;return t instanceof Date&&isFinite(t)?t.getTime():e},type:"numeric"}),L.regex.percent=/%/g,L.regex.percentTest=/(\d\s*?%|%\s*?\d)/,L.addParser({id:"percent",is:function(e){return L.regex.percentTest.test(e)&&e.length<15},format:function(e,t){return e?L.formatFloat(e.replace(L.regex.percent,""),t):e},type:"numeric"}),L.addParser({id:"image",is:function(e,t,r,s){return 0<s.find("img").length},format:function(e,t,r){return A(r).find("img").attr(t.config.imgAttr||"alt")||e},parsed:!0,type:"text"}),L.regex.dateReplace=/(\S)([AP]M)$/i,L.regex.usLongDateTest1=/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i,L.regex.usLongDateTest2=/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i,L.addParser({id:"usLongDate",is:function(e){return L.regex.usLongDateTest1.test(e)||L.regex.usLongDateTest2.test(e)},format:function(e){var t=e?new Date(e.replace(L.regex.dateReplace,"$1 $2")):e;return t instanceof Date&&isFinite(t)?t.getTime():e},type:"numeric"}),L.regex.shortDateTest=/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/,L.regex.shortDateReplace=/[\-.,]/g,L.regex.shortDateXXY=/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,L.regex.shortDateYMD=/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,L.convertFormat=function(e,t){e=(e||"").replace(L.regex.spaces," ").replace(L.regex.shortDateReplace,"/"),"mmddyyyy"===t?e=e.replace(L.regex.shortDateXXY,"$3/$1/$2"):"ddmmyyyy"===t?e=e.replace(L.regex.shortDateXXY,"$3/$2/$1"):"yyyymmdd"===t&&(e=e.replace(L.regex.shortDateYMD,"$1/$2/$3"));var r=new Date(e);return r instanceof Date&&isFinite(r)?r.getTime():""},L.addParser({id:"shortDate",is:function(e){return e=(e||"").replace(L.regex.spaces," ").replace(L.regex.shortDateReplace,"/"),L.regex.shortDateTest.test(e)},format:function(e,t,r,s){if(e){var o=t.config,a=o.$headerIndexed[s],n=a.length&&a.data("dateFormat")||L.getData(a,L.getColumnData(t,o.headers,s),"dateFormat")||o.dateFormat;return a.length&&a.data("dateFormat",n),L.convertFormat(e,n)||e}return e},type:"numeric"}),L.regex.timeTest=/^(0?[1-9]|1[0-2]):([0-5]\d)(\s[AP]M)$|^((?:[01]\d|[2][0-4]):[0-5]\d)$/i,L.regex.timeMatch=/(0?[1-9]|1[0-2]):([0-5]\d)(\s[AP]M)|((?:[01]\d|[2][0-4]):[0-5]\d)/i,L.addParser({id:"time",is:function(e){return L.regex.timeTest.test(e)},format:function(e){var t=(e||"").match(L.regex.timeMatch),r=new Date(e),s=e&&(null!==t?t[0]:"00:00 AM"),o=s?new Date("2000/01/01 "+s.replace(L.regex.dateReplace,"$1 $2")):s;return o instanceof Date&&isFinite(o)?(r instanceof Date&&isFinite(r)?r.getTime():0)?parseFloat(o.getTime()+"."+r.getTime()):o.getTime():e},type:"numeric"}),L.addParser({id:"metadata",is:function(){return!1},format:function(e,t,r){var s=t.config,o=s.parserMetadataName?s.parserMetadataName:"sortValue";return A(r).metadata()[o]},type:"numeric"}),L.addWidget({id:"zebra",priority:90,format:function(e,t,r){var s,o,a,n,i,l,d,c=new RegExp(t.cssChildRow,"i"),g=t.$tbodies.add(A(t.namespace+"_extra_table").children("tbody:not(."+t.cssInfoBlock+")"));for(i=0;i<g.length;i++)for(a=0,d=(s=g.eq(i).children("tr:visible").not(t.selectorRemove)).length,l=0;l<d;l++)o=s.eq(l),c.test(o[0].className)||a++,n=a%2==0,o.removeClass(r.zebra[n?1:0]).addClass(r.zebra[n?0:1])},remove:function(e,t,r,s){if(!s){var o,a,n=t.$tbodies,i=(r.zebra||["even","odd"]).join(" ");for(o=0;o<n.length;o++)(a=L.processTbody(e,n.eq(o),!0)).children().removeClass(i),L.processTbody(e,a,!1)}}})}(jQuery);


Generated: Sat Jul 11 01:01:58 2020 Cross-referenced by PHPXref 0.7.1