mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
7 lines
129 KiB
JavaScript
7 lines
129 KiB
JavaScript
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){return function(t){"use strict";var r=t.tablesorter={version:"2.28.4",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:"",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(e,i){if(!e||!e.tHead||0===e.tBodies.length||e.hasInitialized===!0)return void(i.debug&&e.hasInitialized);var a="",s=t(e),l=t.metadata;e.hasInitialized=!1,e.isProcessing=!0,e.config=i,t.data(e,"tablesorter",i),i.debug&&t.data(e,"startoveralltimer",new Date),i.supportsDataObject=function(e){return e[0]=parseInt(e[0],10),e[0]>1||1===e[0]&&parseInt(e[1],10)>=4}(t.fn.jquery.split(".")),i.emptyTo=i.emptyTo.toLowerCase(),i.stringTo=i.stringTo.toLowerCase(),i.last={sortList:[],clickedIndex:-1},/tablesorter\-/.test(s.attr("class"))||(a=""!==i.theme?" tablesorter-"+i.theme:""),i.table=e,i.$table=s.addClass(r.css.table+" "+i.tableClass+a).attr("role","grid"),i.$headers=s.find(i.selectorHeaders),i.namespace?i.namespace="."+i.namespace.replace(r.regex.nonWord,""):i.namespace=".tablesorter"+Math.random().toString(16).slice(2),i.$table.children().children("tr").attr("role","row"),i.$tbodies=s.children("tbody:not(."+i.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),i.$table.children("caption").length&&(a=i.$table.children("caption")[0],a.id||(a.id=i.namespace.slice(1)+"caption"),i.$table.attr("aria-labelledby",a.id)),i.widgetInit={},i.textExtraction=i.$table.attr("data-text-extraction")||i.textExtraction||"basic",r.buildHeaders(i),r.fixColumnWidth(e),r.addWidgetFromClass(e),r.applyWidgetOptions(e),r.setupParsers(i),i.totalRows=0,r.validateOptions(i),i.delayInit||r.buildCache(i),r.bindEvents(e,i.$headers,!0),r.bindMethods(i),i.supportsDataObject&&"undefined"!=typeof s.data().sortlist?i.sortList=s.data().sortlist:l&&s.metadata()&&s.metadata().sortlist&&(i.sortList=s.metadata().sortlist),r.applyWidget(e,!0),i.sortList.length>0?r.sortOn(i,i.sortList,{},!i.initWidgets):(r.setHeadersCss(i),i.initWidgets&&r.applyWidget(e,!1)),i.showProcessing&&s.unbind("sortBegin"+i.namespace+" sortEnd"+i.namespace).bind("sortBegin"+i.namespace+" sortEnd"+i.namespace,function(t){clearTimeout(i.timerProcessing),r.isProcessing(e),"sortBegin"===t.type&&(i.timerProcessing=setTimeout(function(){r.isProcessing(e,!0)},500))}),e.hasInitialized=!0,e.isProcessing=!1,i.debug&&i.debug&&console.groupEnd,s.triggerHandler("tablesorter-initialized",e),"function"==typeof i.initialized&&i.initialized(e)},bindMethods:function(e){var i=e.$table,a=e.namespace,s="sortReset update updateRows updateAll updateHeaders addRows updateCell updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(a+" ");i.unbind(s.replace(r.regex.spaces," ")).bind("sortReset"+a,function(e,t){e.stopPropagation(),r.sortReset(this.config,t)}).bind("updateAll"+a,function(e,t,i){e.stopPropagation(),r.updateAll(this.config,t,i)}).bind("update"+a+" updateRows"+a,function(e,t,i){e.stopPropagation(),r.update(this.config,t,i)}).bind("updateHeaders"+a,function(e,t){e.stopPropagation(),r.updateHeaders(this.config,t)}).bind("updateCell"+a,function(e,t,i,a){e.stopPropagation(),r.updateCell(this.config,t,i,a)}).bind("addRows"+a,function(e,t,i,a){e.stopPropagation(),r.addRows(this.config,t,i,a)}).bind("updateComplete"+a,function(){this.isUpdating=!1}).bind("sorton"+a,function(e,t,i,a){e.stopPropagation(),r.sortOn(this.config,t,i,a)}).bind("appendCache"+a,function(e,i,a){e.stopPropagation(),r.appendCache(this.config,a),t.isFunction(i)&&i(this)}).bind("updateCache"+a,function(e,t,i){e.stopPropagation(),r.updateCache(this.config,t,i)}).bind("applyWidgetId"+a,function(e,t){e.stopPropagation(),r.applyWidgetId(this,t)}).bind("applyWidgets"+a,function(e,t){e.stopPropagation(),r.applyWidget(this,t)}).bind("refreshWidgets"+a,function(e,t,i){e.stopPropagation(),r.refreshWidgets(this,t,i)}).bind("removeWidget"+a,function(e,t,i){e.stopPropagation(),r.removeWidget(this,t,i)}).bind("destroy"+a,function(e,t,i){e.stopPropagation(),r.destroy(this,t,i)}).bind("resetToLoadState"+a,function(i){i.stopPropagation(),r.removeWidget(this,!0,!1);var a=t.extend(!0,{},e.originalSettings);e=t.extend(!0,r.defaults,a),e.originalSettings=a,this.hasInitialized=!1,r.setup(this,e)})},bindEvents:function(e,i,a){e=t(e)[0];var s,l=e.config,n=l.namespace,o=null;a!==!0&&(i.addClass(n.slice(1)+"_extra_headers"),s=t.fn.closest?i.closest("table")[0]:i.parents("table")[0],s&&"TABLE"===s.nodeName&&s!==e&&t(s).addClass(n.slice(1)+"_extra_table")),s=(l.pointerDown+" "+l.pointerUp+" "+l.pointerClick+" sort keyup ").replace(r.regex.spaces," ").split(" ").join(n+" "),i.find(l.selectorSort).add(i.filter(l.selectorSort)).unbind(s).bind(s,function(e,a){var s,n,c,d=t(e.target),f=" "+e.type+" ";if(!(1!==(e.which||e.button)&&!f.match(" "+l.pointerClick+" | sort | keyup ")||" keyup "===f&&e.which!==r.keyCodes.enter||f.match(" "+l.pointerClick+" ")&&"undefined"!=typeof e.which||f.match(" "+l.pointerUp+" ")&&o!==e.target&&a!==!0)){if(f.match(" "+l.pointerDown+" "))return o=e.target,c=d.jquery.split("."),void("1"===c[0]&&c[1]<4&&e.preventDefault());if(o=null,r.regex.formElements.test(e.target.nodeName)||d.hasClass(l.cssNoSort)||d.parents("."+l.cssNoSort).length>0||d.parents("button").length>0)return!l.cancelSelection;l.delayInit&&r.isEmptyObject(l.cache)&&r.buildCache(l),s=t.fn.closest?t(this).closest("th, td"):/TH|TD/.test(this.nodeName)?t(this):t(this).parents("th, td"),c=i.index(s),l.last.clickedIndex=c<0?s.attr("data-column"):c,n=l.$headers[l.last.clickedIndex],n&&!n.sortDisabled&&r.initSort(l,n,e)}}),l.cancelSelection&&i.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},buildHeaders:function(e){var i,a,s,l;for(e.headerList=[],e.headerContent=[],e.sortVars=[],e.debug&&(s=new Date),e.columns=r.computeColumnIndex(e.$table.children("thead, tfoot").children("tr")),a=e.cssIcon?'<i class="'+(e.cssIcon===r.css.icon?r.css.icon:e.cssIcon+" "+r.css.icon)+'"></i>':"",e.$headers=t(t.map(e.$table.find(e.selectorHeaders),function(i,s){var l,n,o,c,d,f=t(i);if(!f.parent().hasClass(e.cssIgnoreRow))return l=r.getColumnData(e.table,e.headers,s,!0),e.headerContent[s]=f.html(),""===e.headerTemplate||f.find("."+r.css.headerIn).length||(c=e.headerTemplate.replace(r.regex.templateContent,f.html()).replace(r.regex.templateIcon,f.find("."+r.css.icon).length?"":a),e.onRenderTemplate&&(n=e.onRenderTemplate.apply(f,[s,c]),n&&"string"==typeof n&&(c=n)),f.html('<div class="'+r.css.headerIn+'">'+c+"</div>")),e.onRenderHeader&&e.onRenderHeader.apply(f,[s,e,e.$table]),o=parseInt(f.attr("data-column"),10),i.column=o,d=r.getOrder(r.getData(f,l,"sortInitialOrder")||e.sortInitialOrder),e.sortVars[o]={count:-1,order:d?e.sortReset?[1,0,2]:[1,0]:e.sortReset?[0,1,2]:[0,1],lockedOrder:!1},d=r.getData(f,l,"lockedOrder")||!1,"undefined"!=typeof d&&d!==!1&&(e.sortVars[o].lockedOrder=!0,e.sortVars[o].order=r.getOrder(d)?[1,1]:[0,0]),e.headerList[s]=i,f.addClass(r.css.header+" "+e.cssHeader).parent().addClass(r.css.headerRow+" "+e.cssHeaderRow).attr("role","row"),e.tabIndex&&f.attr("tabindex",0),i})),e.$headerIndexed=[],l=0;l<e.columns;l++)r.isEmptyObject(e.sortVars[l])&&(e.sortVars[l]={}),i=e.$headers.filter('[data-column="'+l+'"]'),e.$headerIndexed[l]=i.length?i.not(".sorter-false").length?i.not(".sorter-false").filter(":last"):i.filter(":last"):t();e.$table.find(e.selectorHeaders).attr({scope:"col",role:"columnheader"}),r.updateHeader(e),e.debug},addInstanceMethods:function(e){t.extend(r.instanceMethods,e)},setupParsers:function(e,t){var i,a,s,l,n,o,c,d,f,u,p,g,h,m,b=e.table,y=0,w={};if(e.$tbodies=e.$table.children("tbody:not(."+e.cssInfoBlock+")"),h="undefined"==typeof t?e.$tbodies:t,m=h.length,0===m)return e.debug?void 0:"";for(e.debug&&(g=new Date),a={extractors:[],parsers:[]};y<m;){if(i=h[y].rows,i.length)for(n=0,l=e.columns,o=0;o<l;o++){if(c=e.$headerIndexed[n],c&&c.length&&(d=r.getColumnData(b,e.headers,n),p=r.getParserById(r.getData(c,d,"extractor")),u=r.getParserById(r.getData(c,d,"sorter")),f="false"===r.getData(c,d,"parser"),e.empties[n]=(r.getData(c,d,"empty")||e.emptyTo||(e.emptyToBottom?"bottom":"top")).toLowerCase(),e.strings[n]=(r.getData(c,d,"string")||e.stringTo||"max").toLowerCase(),f&&(u=r.getParserById("no-parser")),p||(p=!1),u||(u=r.detectParserForColumn(e,i,-1,n)),e.debug&&(w["("+n+") "+c.text()]={parser:u.id,extractor:p?p.id:"none",string:e.strings[n],empty:e.empties[n]}),a.parsers[n]=u,a.extractors[n]=p,s=c[0].colSpan-1,s>0))for(n+=s,l+=s;s+1>0;)a.parsers[n-s]=u,a.extractors[n-s]=p,s--;n++}y+=a.parsers.length?m:1}e.debug&&(!r.isEmptyObject(w),console.groupEnd),e.parsers=a.parsers,e.extractors=a.extractors},addParser:function(e){var t,i=r.parsers.length,a=!0;for(t=0;t<i;t++)r.parsers[t].id.toLowerCase()===e.id.toLowerCase()&&(a=!1);a&&(r.parsers[r.parsers.length]=e)},getParserById:function(e){if("false"==e)return!1;var t,i=r.parsers.length;for(t=0;t<i;t++)if(r.parsers[t].id.toLowerCase()===e.toString().toLowerCase())return r.parsers[t];return!1},detectParserForColumn:function(e,i,a,s){for(var l,n,o,c=r.parsers.length,d=!1,f="",u=!0;""===f&&u;)a++,o=i[a],o&&a<50?o.className.indexOf(r.cssIgnoreRow)<0&&(d=i[a].cells[s],f=r.getElementText(e,d,s),n=t(d),e.debug):u=!1;for(;--c>=0;)if(l=r.parsers[c],l&&"text"!==l.id&&l.is&&l.is(f,e.table,d,n))return l;return r.getParserById("text")},getElementText:function(e,i,a){if(!i)return"";var s,l=e.textExtraction||"",n=i.jquery?i:t(i);return"string"==typeof l?"basic"===l&&"undefined"!=typeof(s=n.attr(e.textAttribute))?t.trim(s):t.trim(i.textContent||n.text()):"function"==typeof l?t.trim(l(n[0],e.table,a)):"function"==typeof(s=r.getColumnData(e.table,l,a))?t.trim(s(n[0],e.table,a)):t.trim(n[0].textContent||n.text())},getParsedText:function(e,t,i,a){"undefined"==typeof a&&(a=r.getElementText(e,t,i));var s=""+a,l=e.parsers[i],n=e.extractors[i];return l&&(n&&"function"==typeof n.format&&(a=n.format(a,e.table,t,i)),s="no-parser"===l.id?"":l.format(""+a,e.table,t,i),e.ignoreCase&&"string"==typeof s&&(s=s.toLowerCase())),s},buildCache:function(e,i,a){var s,l,n,o,c,d,f,u,p,g,h,m,b,y,w,v,_,x,C,$,S,F,R=e.table,T=e.parsers;if(e.$tbodies=e.$table.children("tbody:not(."+e.cssInfoBlock+")"),f="undefined"==typeof a?e.$tbodies:a,e.cache={},e.totalRows=0,!T)return e.debug?void 0:"";for(e.debug&&(m=new Date),e.showProcessing&&r.isProcessing(R,!0),d=0;d<f.length;d++){for(v=[],s=e.cache[d]={normalized:[]},b=f[d]&&f[d].rows.length||0,o=0;o<b;++o)if(y={child:[],raw:[]},u=t(f[d].rows[o]),p=[],!u.hasClass(e.selectorRemove.slice(1)))if(u.hasClass(e.cssChildRow)&&0!==o)for(S=s.normalized.length-1,w=s.normalized[S][e.columns],w.$row=w.$row.add(u),u.prev().hasClass(e.cssChildRow)||u.prev().addClass(r.css.cssHasChild),g=u.children("th, td"),S=w.child.length,w.child[S]=[],x=0,$=e.columns,c=0;c<$;c++)h=g[c],h&&(w.child[S][c]=r.getParsedText(e,h,c),_=g[c].colSpan-1,_>0&&(x+=_,$+=_)),x++;else{for(y.$row=u,y.order=o,x=0,$=e.columns,c=0;c<$;++c){if(h=u[0].cells[c],h&&x<e.columns&&(C="undefined"!=typeof T[x],!C&&e.debug,l=r.getElementText(e,h,x),y.raw[x]=l,n=r.getParsedText(e,h,x,l),p[x]=n,C&&"numeric"===(T[x].type||"").toLowerCase()&&(v[x]=Math.max(Math.abs(n)||0,v[x]||0)),_=h.colSpan-1,_>0)){for(F=0;F<=_;)n=e.duplicateSpan||0===F?l:"string"!=typeof e.textExtraction?r.getElementText(e,h,x+F)||"":"",y.raw[x+F]=n,p[x+F]=n,F++;x+=_,$+=_}x++}p[e.columns]=y,s.normalized[s.normalized.length]=p}s.colMax=v,e.totalRows+=s.normalized.length}if(e.showProcessing&&r.isProcessing(R),e.debug){for(S=Math.min(5,e.cache[0].normalized.length),l={},c=0;c<e.columns;c++)for(x=0;x<S;x++)l["row: "+x]||(l["row: "+x]={}),l["row: "+x][e.$headerIndexed[c].text()]=e.cache[0].normalized[x][c];console.groupEnd}t.isFunction(i)&&i(R)},getColumnText:function(e,i,a,s){e=t(e)[0];var l,n,o,c,d,f,u,p,g,h,m="function"==typeof a,b="all"===i,y={raw:[],parsed:[],$cell:[]},w=e.config;if(!r.isEmptyObject(w)){for(d=w.$tbodies.length,l=0;l<d;l++)for(o=w.cache[l].normalized,f=o.length,n=0;n<f;n++)c=o[n],s&&!c[w.columns].$row.is(s)||(h=!0,p=b?c.slice(0,w.columns):c[i],c=c[w.columns],u=b?c.raw:c.raw[i],g=b?c.$row.children():c.$row.children().eq(i),m&&(h=a({tbodyIndex:l,rowIndex:n,parsed:p,raw:u,$row:c.$row,$cell:g})),h!==!1&&(y.parsed[y.parsed.length]=p,y.raw[y.raw.length]=u,y.$cell[y.$cell.length]=g));return y}w.debug},setHeadersCss:function(e){var i,a,s,l=e.sortList,n=l.length,o=r.css.sortNone+" "+e.cssNone,c=[r.css.sortAsc+" "+e.cssAsc,r.css.sortDesc+" "+e.cssDesc],d=[e.cssIconAsc,e.cssIconDesc,e.cssIconNone],f=["ascending","descending"],u=e.$table.find("tfoot tr").children("td, th").add(t(e.namespace+"_extra_headers")).removeClass(c.join(" "));for(e.$headers.add(t("thead "+e.namespace+"_extra_headers")).removeClass(c.join(" ")).addClass(o).attr("aria-sort","none").find("."+r.css.icon).removeClass(d.join(" ")).addClass(d[2]),a=0;a<n;a++)if(2!==l[a][1]&&(i=e.$headers.filter(function(t){for(var i=!0,a=e.$headers.eq(t),s=parseInt(a.attr("data-column"),10),l=s+e.$headers[t].colSpan;s<l;s++)i=!!i&&(i||r.isValueInArray(s,e.sortList)>-1);return i}),i=i.not(".sorter-false").filter('[data-column="'+l[a][0]+'"]'+(1===n?":last":"")),i.length)){for(s=0;s<i.length;s++)i[s].sortDisabled||i.eq(s).removeClass(o).addClass(c[l[a][1]]).attr("aria-sort",f[l[a][1]]).find("."+r.css.icon).removeClass(d[2]).addClass(d[l[a][1]]);u.length&&u.filter('[data-column="'+l[a][0]+'"]').removeClass(o).addClass(c[l[a][1]])}for(n=e.$headers.length,a=0;a<n;a++)r.setColumnAriaLabel(e,e.$headers.eq(a))},setColumnAriaLabel:function(e,i,a){if(i.length){var s=parseInt(i.attr("data-column"),10),l=e.sortVars[s],n=i.hasClass(r.css.sortAsc)?"sortAsc":i.hasClass(r.css.sortDesc)?"sortDesc":"sortNone",o=t.trim(i.text())+": "+r.language[n];i.hasClass("sorter-false")||a===!1?o+=r.language.sortDisabled:(n=(l.count+1)%l.order.length,a=l.order[n],o+=r.language[0===a?"nextAsc":1===a?"nextDesc":"nextNone"]),i.attr("aria-label",o)}},updateHeader:function(e){var t,i,a,s,l=e.table,n=e.$headers.length;for(t=0;t<n;t++)a=e.$headers.eq(t),s=r.getColumnData(l,e.headers,t,!0),i="false"===r.getData(a,s,"sorter")||"false"===r.getData(a,s,"parser"),r.setColumnSort(e,a,i)},setColumnSort:function(e,t,r){var i=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")),i&&(r?t.removeAttr("aria-controls"):t.attr("aria-controls",i))},updateHeaderSortCount:function(e,i){var a,s,l,n,o,c,d,f,u=i||e.sortList,p=u.length;for(e.sortList=[],n=0;n<p;n++)if(d=u[n],a=parseInt(d[0],10),a<e.columns){switch(e.sortVars[a].order||(f=r.getOrder(e.sortInitialOrder)?e.sortReset?[1,0,2]:[1,0]:e.sortReset?[0,1,2]:[0,1],e.sortVars[a].order=f,e.sortVars[a].count=0),f=e.sortVars[a].order,s=(""+d[1]).match(/^(1|d|s|o|n)/),s=s?s[0]:""){case"1":case"d":s=1;break;case"s":s=o||0;break;case"o":c=f[(o||0)%f.length],s=0===c?1:1===c?0:2;break;case"n":s=f[++e.sortVars[a].count%f.length];break;default:s=0}o=0===n?s:o,l=[a,parseInt(s,10)||0],e.sortList[e.sortList.length]=l,s=t.inArray(l[1],f),e.sortVars[a].count=s>=0?s:l[1]%f.length}},updateAll:function(e,t,i){var a=e.table;a.isUpdating=!0,r.refreshWidgets(a,!0,!0),r.buildHeaders(e),r.bindEvents(a,e.$headers,!0),r.bindMethods(e),r.commonUpdate(e,t,i)},update:function(e,t,i){var a=e.table;a.isUpdating=!0,r.updateHeader(e),r.commonUpdate(e,t,i)},updateHeaders:function(e,t){e.table.isUpdating=!0,r.buildHeaders(e),r.bindEvents(e.table,e.$headers,!0),r.resortComplete(e,t)},updateCell:function(e,i,a,s){if(r.isEmptyObject(e.cache))return r.updateHeader(e),void r.commonUpdate(e,a,s);e.table.isUpdating=!0,e.$table.find(e.selectorRemove).remove();var l,n,o,c,d,f,u=e.$tbodies,p=t(i),g=u.index(t.fn.closest?p.closest("tbody"):p.parents("tbody").filter(":first")),h=e.cache[g],m=t.fn.closest?p.closest("tr"):p.parents("tr").filter(":first");if(i=p[0],u.length&&g>=0){if(o=u.eq(g).find("tr").index(m),d=h.normalized[o],f=m[0].cells.length,f!==e.columns)for(c=0,l=!1,n=0;n<f;n++)l||m[0].cells[n]===i?l=!0:c+=m[0].cells[n].colSpan;else c=p.index();l=r.getElementText(e,i,c),d[e.columns].raw[c]=l,l=r.getParsedText(e,i,c,l),d[c]=l,d[e.columns].$row=m,"numeric"===(e.parsers[c].type||"").toLowerCase()&&(h.colMax[c]=Math.max(Math.abs(l)||0,h.colMax[c]||0)),l="undefined"!==a?a:e.resort,l!==!1?r.checkResort(e,l,s):r.resortComplete(e,s)}else e.debug,e.table.isUpdating=!1},addRows:function(i,a,s,l){var n,o,c,d,f,u,p,g,h,m,b,y,w,v="string"==typeof a&&1===i.$tbodies.length&&/<tr/.test(a||""),_=i.table;if(v)a=t(a),i.$tbodies.append(a);else if(!(a&&a instanceof e&&(t.fn.closest?a.closest("table")[0]:a.parents("table")[0])===i.table))return i.debug,!1;if(_.isUpdating=!0,r.isEmptyObject(i.cache))r.updateHeader(i),r.commonUpdate(i,s,l);else{for(f=a.filter("tr").attr("role","row").length,c=i.$tbodies.index(a.parents("tbody").filter(":first")),i.parsers&&i.parsers.length||r.setupParsers(i),d=0;d<f;d++){for(h=0,p=a[d].cells.length,g=i.cache[c].normalized.length,b=[],m={child:[],raw:[],$row:a.eq(d),order:g},u=0;u<p;u++)y=a[d].cells[u],n=r.getElementText(i,y,h),m.raw[h]=n,o=r.getParsedText(i,y,h,n),b[h]=o,"numeric"===(i.parsers[h].type||"").toLowerCase()&&(i.cache[c].colMax[h]=Math.max(Math.abs(o)||0,i.cache[c].colMax[h]||0)),w=y.colSpan-1,w>0&&(h+=w),h++;b[i.columns]=m,i.cache[c].normalized[g]=b}r.checkResort(i,s,l)}},updateCache:function(e,t,i){e.parsers&&e.parsers.length||r.setupParsers(e,i),r.buildCache(e,t,i)},appendCache:function(e,t){var i,a,s,l,n,o,c,d=e.table,f=e.widgetOptions,u=e.$tbodies,p=[],g=e.cache;if(r.isEmptyObject(g))return e.appender?e.appender(d,p):d.isUpdating?e.$table.triggerHandler("updateComplete",d):"";for(e.debug&&(c=new Date),o=0;o<u.length;o++)if(s=u.eq(o),s.length){for(l=r.processTbody(d,s,!0),i=g[o].normalized,a=i.length,n=0;n<a;n++)p[p.length]=i[n][e.columns].$row,e.appender&&(!e.pager||e.pager.removeRows&&f.pager_removeRows||e.pager.ajax)||l.append(i[n][e.columns].$row);r.processTbody(d,l,!1)}e.appender&&e.appender(d,p),e.debug,t||e.appender||r.applyWidget(d),d.isUpdating&&e.$table.triggerHandler("updateComplete",d)},commonUpdate:function(e,t,i){e.$table.find(e.selectorRemove).remove(),r.setupParsers(e),r.buildCache(e),r.checkResort(e,t,i)},initSort:function(e,i,a){if(e.table.isUpdating)return setTimeout(function(){r.initSort(e,i,a)},50);var s,l,n,o,c,d,f,u=!a[e.sortMultiSortKey],p=e.table,g=e.$headers.length,h=parseInt(t(i).attr("data-column"),10),m=e.sortVars[h].order;if(e.$table.triggerHandler("sortStart",p),d=(e.sortVars[h].count+1)%m.length,e.sortVars[h].count=a[e.sortResetKey]?2:d,e.sortRestart)for(n=0;n<g;n++)f=e.$headers.eq(n),d=parseInt(f.attr("data-column"),10),h!==d&&(u||f.hasClass(r.css.sortNone))&&(e.sortVars[d].count=-1);if(u){if(e.sortList=[],e.last.sortList=[],null!==e.sortForce)for(s=e.sortForce,l=0;l<s.length;l++)s[l][0]!==h&&(e.sortList[e.sortList.length]=s[l]);if(o=m[e.sortVars[h].count],o<2&&(e.sortList[e.sortList.length]=[h,o],i.colSpan>1))for(l=1;l<i.colSpan;l++)e.sortList[e.sortList.length]=[h+l,o],e.sortVars[h+l].count=t.inArray(o,m)}else if(e.sortList=t.extend([],e.last.sortList),r.isValueInArray(h,e.sortList)>=0)for(l=0;l<e.sortList.length;l++)d=e.sortList[l],d[0]===h&&(d[1]=m[e.sortVars[h].count],2===d[1]&&(e.sortList.splice(l,1),e.sortVars[h].count=-1));else if(o=m[e.sortVars[h].count],o<2&&(e.sortList[e.sortList.length]=[h,o],i.colSpan>1))for(l=1;l<i.colSpan;l++)e.sortList[e.sortList.length]=[h+l,o],e.sortVars[h+l].count=t.inArray(o,m);if(e.last.sortList=t.extend([],e.sortList),e.sortList.length&&e.sortAppend&&(s=t.isArray(e.sortAppend)?e.sortAppend:e.sortAppend[e.sortList[0][0]],!r.isEmptyObject(s)))for(l=0;l<s.length;l++)if(s[l][0]!==h&&r.isValueInArray(s[l][0],e.sortList)<0){if(o=s[l][1],c=(""+o).match(/^(a|d|s|o|n)/))switch(d=e.sortList[0][1],c[0]){case"d":o=1;break;case"s":o=d;break;case"o":o=0===d?1:0;break;case"n":o=(d+1)%m.length;break;default:o=0}e.sortList[e.sortList.length]=[s[l][0],o]}e.$table.triggerHandler("sortBegin",p),setTimeout(function(){r.setHeadersCss(e),r.multisort(e),r.appendCache(e),e.$table.triggerHandler("sortBeforeEnd",p),e.$table.triggerHandler("sortEnd",p)},1)},multisort:function(e){var t,i,a,s,l,n=e.table,o=[],c=0,d=e.textSorter||"",f=e.sortList,u=f.length,p=e.$tbodies.length;if(!e.serverSideSorting&&!r.isEmptyObject(e.cache)){if(e.debug&&(i=new Date),"object"==typeof d)for(a=e.columns;a--;)l=r.getColumnData(n,d,a),"function"==typeof l&&(o[a]=l);for(t=0;t<p;t++)a=e.cache[t].colMax,s=e.cache[t].normalized,s.sort(function(t,i){var s,l,p,g,h,m,b;for(s=0;s<u;s++){if(p=f[s][0],g=f[s][1],c=0===g,e.sortStable&&t[p]===i[p]&&1===u)return t[e.columns].order-i[e.columns].order;if(l=/n/i.test(r.getSortType(e.parsers,p)),l&&e.strings[p]?(l="boolean"==typeof r.string[e.strings[p]]?(c?1:-1)*(r.string[e.strings[p]]?-1:1):e.strings[p]?r.string[e.strings[p]]||0:0,h=e.numberSorter?e.numberSorter(t[p],i[p],c,a[p],n):r["sortNumeric"+(c?"Asc":"Desc")](t[p],i[p],l,a[p],p,e)):(m=c?t:i,b=c?i:t,h="function"==typeof d?d(m[p],b[p],c,p,n):"function"==typeof o[p]?o[p](m[p],b[p],c,p,n):r["sortNatural"+(c?"Asc":"Desc")](t[p],i[p],p,e)),h)return h}return t[e.columns].order-i[e.columns].order});e.debug}},resortComplete:function(e,r){e.table.isUpdating&&e.$table.triggerHandler("updateComplete",e.table),t.isFunction(r)&&r(e.table)},checkResort:function(e,i,a){var s=t.isArray(i)?i:e.sortList,l="undefined"==typeof i?e.resort:i;l===!1||e.serverSideSorting||e.table.isProcessing?(r.resortComplete(e,a),r.applyWidget(e.table,!1)):s.length?r.sortOn(e,s,function(){r.resortComplete(e,a)},!0):r.sortReset(e,function(){r.resortComplete(e,a),r.applyWidget(e.table,!1)})},sortOn:function(e,i,a,s){var l=e.table;e.$table.triggerHandler("sortStart",l),r.updateHeaderSortCount(e,i),r.setHeadersCss(e),e.delayInit&&r.isEmptyObject(e.cache)&&r.buildCache(e),e.$table.triggerHandler("sortBegin",l),r.multisort(e),r.appendCache(e,s),e.$table.triggerHandler("sortBeforeEnd",l),e.$table.triggerHandler("sortEnd",l),r.applyWidget(l),t.isFunction(a)&&a(l)},sortReset:function(e,i){e.sortList=[],r.setHeadersCss(e),r.multisort(e),r.appendCache(e),t.isFunction(i)&&i(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;var i,a,s,l,n,o,c=r.regex;if(c.hex.test(t)){if(i=parseInt((e||"").match(c.hex),16),a=parseInt((t||"").match(c.hex),16),i<a)return-1;if(i>a)return 1}for(i=(e||"").replace(c.chunk,"\\0$1\\0").replace(c.chunks,"").split("\\0"),a=(t||"").replace(c.chunk,"\\0$1\\0").replace(c.chunks,"").split("\\0"),o=Math.max(i.length,a.length),n=0;n<o;n++){if(s=isNaN(i[n])?i[n]||0:parseFloat(i[n])||0,l=isNaN(a[n])?a[n]||0:parseFloat(a[n])||0,isNaN(s)!==isNaN(l))return isNaN(s)?1:-1;if(typeof s!=typeof l&&(s+="",l+=""),s<l)return-1;if(s>l)return 1}return 0},sortNaturalAsc:function(e,t,i,a){if(e===t)return 0;var s=r.string[a.empties[i]||a.emptyTo];return""===e&&0!==s?"boolean"==typeof s?s?-1:1:-s||-1:""===t&&0!==s?"boolean"==typeof s?s?1:-1:s||1:r.sortNatural(e,t)},sortNaturalDesc:function(e,t,i,a){if(e===t)return 0;var s=r.string[a.empties[i]||a.emptyTo];return""===e&&0!==s?"boolean"==typeof s?s?-1:1:s||1:""===t&&0!==s?"boolean"==typeof s?s?1:-1:-s||-1:r.sortNatural(t,e)},sortText:function(e,t){return e>t?1:e<t?-1:0},getTextValue:function(e,t,r){if(r){var i,a=e?e.length:0,s=r+t;for(i=0;i<a;i++)s+=e.charCodeAt(i);return t*s}return 0},sortNumericAsc:function(e,t,i,a,s,l){if(e===t)return 0;var n=r.string[l.empties[s]||l.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=r.getTextValue(e,i,a)),isNaN(t)&&(t=r.getTextValue(t,i,a)),e-t)},sortNumericDesc:function(e,t,i,a,s,l){if(e===t)return 0;var n=r.string[l.empties[s]||l.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=r.getTextValue(e,i,a)),isNaN(t)&&(t=r.getTextValue(t,i,a)),t-e)},sortNumeric:function(e,t){return e-t},addWidget:function(e){e.id&&!r.isEmptyObject(r.getWidgetById(e.id)),r.widgets[r.widgets.length]=e},hasWidget:function(e,r){return e=t(e),e.length&&e[0].config&&e[0].config.widgetInit[r]||!1},getWidgetById:function(e){var t,i,a=r.widgets.length;for(t=0;t<a;t++)if(i=r.widgets[t],i&&i.id&&i.id.toLowerCase()===e.toLowerCase())return i},applyWidgetOptions:function(e){var i,a,s=e.config,l=s.widgets.length;if(l)for(i=0;i<l;i++)a=r.getWidgetById(s.widgets[i]),a&&a.options&&(s.widgetOptions=t.extend(!0,{},a.options,s.widgetOptions),t.extend(!0,r.defaults.widgetOptions,a.options))},addWidgetFromClass:function(e){var t,i,a=e.config,s="^"+a.widgetClass.replace(r.regex.templateName,"(\\S+)+")+"$",l=new RegExp(s,"g"),n=(e.className||"").split(r.regex.spaces);if(n.length)for(t=n.length,i=0;i<t;i++)n[i].match(l)&&(a.widgets[a.widgets.length]=n[i].replace(l,"$1"))},applyWidgetId:function(e,i,a){e=t(e)[0];var s,l,n,o=e.config,c=o.widgetOptions,d=r.getWidgetById(i);d&&(n=d.id,s=!1,t.inArray(n,o.widgets)<0&&(o.widgets[o.widgets.length]=n),o.debug&&(l=new Date),!a&&o.widgetInit[n]||(o.widgetInit[n]=!0,e.hasInitialized&&r.applyWidgetOptions(e),"function"==typeof d.init&&(s=!0,o.debug,d.init(e,d,o,c))),a||"function"!=typeof d.format||(s=!0,o.debug,d.format(e,o,c,!1)),o.debug&&s&&console.groupEnd)},applyWidget:function(e,i,a){e=t(e)[0];var s,l,n,o,c,d=e.config,f=[];if(i===!1||!e.hasInitialized||!e.isApplyingWidgets&&!e.isUpdating){if(d.debug&&(c=new Date),r.addWidgetFromClass(e),clearTimeout(d.timerReady),d.widgets.length){for(e.isApplyingWidgets=!0,d.widgets=t.grep(d.widgets,function(e,r){return t.inArray(e,d.widgets)===r}),n=d.widgets||[],l=n.length,s=0;s<l;s++)o=r.getWidgetById(n[s]),o&&o.id?(o.priority||(o.priority=10),f[s]=o):d.debug;for(f.sort(function(e,t){return e.priority<t.priority?-1:e.priority===t.priority?0:1}),l=f.length,d.debug,s=0;s<l;s++)o=f[s],o&&o.id&&r.applyWidgetId(e,o.id,i);d.debug&&console.groupEnd,i||"function"!=typeof a||a(e)}d.timerReady=setTimeout(function(){e.isApplyingWidgets=!1,t.data(e,"lastWidgetApplication",new Date),d.$table.triggerHandler("tablesorter-ready")},10),d.debug&&(o=d.widgets.length)}},removeWidget:function(e,i,a){e=t(e)[0];var s,l,n,o,c=e.config;if(i===!0)for(i=[],o=r.widgets.length,n=0;n<o;n++)l=r.widgets[n],l&&l.id&&(i[i.length]=l.id);else i=(t.isArray(i)?i.join(","):i||"").toLowerCase().split(/[\s,]+/);for(o=i.length,s=0;s<o;s++)l=r.getWidgetById(i[s]),n=t.inArray(i[s],c.widgets),n>=0&&a!==!0&&c.widgets.splice(n,1),l&&l.remove&&(c.debug,l.remove(e,c,c.widgetOptions,a),c.widgetInit[i[s]]=!1)},refreshWidgets:function(e,i,a){e=t(e)[0];var s,l,n=e.config,o=n.widgets,c=r.widgets,d=c.length,f=[],u=function(e){t(e).triggerHandler("refreshComplete")};for(s=0;s<d;s++)l=c[s],l&&l.id&&(i||t.inArray(l.id,o)<0)&&(f[f.length]=l.id);r.removeWidget(e,f.join(","),!0),a!==!0?(r.applyWidget(e,i||!1,u),i&&r.applyWidget(e,!1,u)):u(e)},benchmark:function(e){return" ("+((new Date).getTime()-e.getTime())+" ms)"},log:function(){},isEmptyObject:function(e){for(var t in e)return!1;return!0},isValueInArray:function(e,t){var r,i=t&&t.length||0;for(r=0;r<i;r++)if(t[r][0]===e)return r;return-1},formatFloat:function(e,i){if("string"!=typeof e||""===e)return e;var a,s=i&&i.config?i.config.usNumberFormat!==!1:"undefined"==typeof i||i;return e=s?e.replace(r.regex.comma,""):e.replace(r.regex.digitNonUS,"").replace(r.regex.comma,"."),r.regex.digitNegativeTest.test(e)&&(e=e.replace(r.regex.digitNegativeReplace,"-$1")),a=parseFloat(e),isNaN(a)?t.trim(e):a},isDigit:function(e){return isNaN(e)?r.regex.digitTest.test(e.toString().replace(r.regex.digitReplace,"")):""!==e},computeColumnIndex:function(e,r){var i,a,s,l,n,o,c,d,f,u,p=r&&r.columns||0,g=[],h=new Array(p);for(i=0;i<e.length;i++)for(o=e[i].cells,a=0;a<o.length;a++){for(n=o[a],c=n.parentNode.rowIndex,d=n.rowSpan||1,f=n.colSpan||1,"undefined"==typeof g[c]&&(g[c]=[]),s=0;s<g[c].length+1;s++)if("undefined"==typeof g[c][s]){u=s;break}for(p&&n.cellIndex===u||(n.setAttribute?n.setAttribute("data-column",u):t(n).attr("data-column",u)),s=c;s<c+d;s++)for("undefined"==typeof g[s]&&(g[s]=[]),h=g[s],l=u;l<u+f;l++)h[l]="x"}return h.length},fixColumnWidth:function(e){e=t(e)[0];var i,a,s,l,n,o=e.config,c=o.$table.children("colgroup");if(c.length&&c.hasClass(r.css.colgroup)&&c.remove(),o.widthFixed&&0===o.$table.children("colgroup").length){for(c=t('<colgroup class="'+r.css.colgroup+'">'),i=o.$table.width(),s=o.$tbodies.find("tr:first").children(":visible"),l=s.length,n=0;n<l;n++)a=parseInt(s.eq(n).width()/i*1e3,10)/10+"%",c.append(t("<col>").css("width",a));o.$table.prepend(c)}},getData:function(e,r,i){var a,s,l="",n=t(e);return n.length?(a=!!t.metadata&&n.metadata(),s=" "+(n.attr("class")||""),"undefined"!=typeof n.data(i)||"undefined"!=typeof n.data(i.toLowerCase())?l+=n.data(i)||n.data(i.toLowerCase()):a&&"undefined"!=typeof a[i]?l+=a[i]:r&&"undefined"!=typeof r[i]?l+=r[i]:" "!==s&&s.match(" "+i+"-")&&(l=s.match(new RegExp("\\s"+i+"-([\\w-]+)"))[1]||""),t.trim(l)):""},getColumnData:function(e,r,i,a,s){if("object"!=typeof r||null===r)return r;e=t(e)[0];var l,n,o=e.config,c=s||o.$headers,d=o.$headerIndexed&&o.$headerIndexed[i]||c.filter('[data-column="'+i+'"]:last');if("undefined"!=typeof r[i])return a?r[i]:r[c.index(d)];for(n in r)if("string"==typeof n&&(l=d.filter(n).add(d.find(n)),l.length))return r[n]},isProcessing:function(e,i,a){e=t(e);var s=e[0].config,l=a||e.find("."+r.css.header);i?("undefined"!=typeof a&&s.sortList.length>0&&(l=l.filter(function(){return!this.sortDisabled&&r.isValueInArray(parseFloat(t(this).attr("data-column")),s.sortList)>=0;
|
||
})),e.add(l).addClass(r.css.processing+" "+s.cssProcessing)):e.add(l).removeClass(r.css.processing+" "+s.cssProcessing)},processTbody:function(e,r,i){if(e=t(e)[0],i)return e.isProcessing=!0,r.before('<colgroup class="tablesorter-savemyplace"/>'),t.fn.detach?r.detach():r.remove();var a=t(e).find("colgroup.tablesorter-savemyplace");r.insertAfter(a),a.remove(),e.isProcessing=!1},clearTableBody:function(e){t(e)[0].config.$tbodies.children().detach()},characterEquivalents:{a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõöō",O:"ÓÒÔÕÖŌ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},replaceAccents:function(e){var t,i="[",a=r.characterEquivalents;if(!r.characterRegex){r.characterRegexArray={};for(t in a)"string"==typeof t&&(i+=a[t],r.characterRegexArray[t]=new RegExp("["+a[t]+"]","g"));r.characterRegex=new RegExp(i+"]")}if(r.characterRegex.test(e))for(t in a)"string"==typeof t&&(e=e.replace(r.characterRegexArray[t],t));return e},validateOptions:function(e){var i,a,s,l,n="headers sortForce sortList sortAppend widgets".split(" "),o=e.originalSettings;if(o){e.debug&&(l=new Date);for(i in o)if(s=typeof r.defaults[i],"undefined"===s);else if("object"===s)for(a in o[i])s=r.defaults[i]&&typeof r.defaults[i][a],t.inArray(i,n)<0&&"undefined"===s;e.debug}},restoreHeaders:function(e){var i,a,s=t(e)[0].config,l=s.$table.find(s.selectorHeaders),n=l.length;for(i=0;i<n;i++)a=l.eq(i),a.find("."+r.css.headerIn).length&&a.html(s.headerContent[i])},destroy:function(e,i,a){if(e=t(e)[0],e.hasInitialized){r.removeWidget(e,!0,!1);var s,l=t(e),n=e.config,o=(n.debug,l.find("thead:first")),c=o.find("tr."+r.css.headerRow).removeClass(r.css.headerRow+" "+n.cssHeaderRow),d=l.find("tfoot:first > tr").children("th, td");i===!1&&t.inArray("uitheme",n.widgets)>=0&&(l.triggerHandler("applyWidgetId",["uitheme"]),l.triggerHandler("applyWidgetId",["zebra"])),o.find("tr").not(c).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(n.namespace+" "),l.removeData("tablesorter").unbind(s.replace(r.regex.spaces," ")),n.$headers.add(d).removeClass([r.css.header,n.cssHeader,n.cssAsc,n.cssDesc,r.css.sortAsc,r.css.sortDesc,r.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),c.find(n.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(n.namespace+" ").replace(r.regex.spaces," ")),r.restoreHeaders(e),l.toggleClass(r.css.table+" "+n.tableClass+" tablesorter-"+n.theme,i===!1),e.hasInitialized=!1,delete e.config.cache,"function"==typeof a&&a(e)}}};t.fn.tablesorter=function(e){return this.each(function(){var i=this,a=t.extend(!0,{},r.defaults,e,r.instanceMethods);a.originalSettings=e,!i.hasInitialized&&r.buildTable&&"TABLE"!==this.nodeName?r.buildTable(i,a):r.setup(i,a)})},window.console&&window.console.log||(r.logs=[],console={},console.log=console.warn=console.error=console.table=function(){var e=arguments.length>1?arguments:arguments[0];r.logs[r.logs.length]={date:Date.now(),log:e}}),r.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),r.addParser({id:"text",is:function(){return!0},format:function(e,i){var a=i.config;return e&&(e=t.trim(a.ignoreCase?e.toLocaleLowerCase():e),e=a.sortLocaleCompare?r.replaceAccents(e):e),e},type:"text"}),r.regex.nondigit=/[^\w,. \-()]/g,r.addParser({id:"digit",is:function(e){return r.isDigit(e)},format:function(e,i){var a=r.formatFloat((e||"").replace(r.regex.nondigit,""),i);return e&&"number"==typeof a?a:e?t.trim(e&&i.config.ignoreCase?e.toLocaleLowerCase():e):e},type:"numeric"}),r.regex.currencyReplace=/[+\-,. ]/g,r.regex.currencyTest=/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/,r.addParser({id:"currency",is:function(e){return e=(e||"").replace(r.regex.currencyReplace,""),r.regex.currencyTest.test(e)},format:function(e,i){var a=r.formatFloat((e||"").replace(r.regex.nondigit,""),i);return e&&"number"==typeof a?a:e?t.trim(e&&i.config.ignoreCase?e.toLocaleLowerCase():e):e},type:"numeric"}),r.regex.urlProtocolTest=/^(https?|ftp|file):\/\//,r.regex.urlProtocolReplace=/(https?|ftp|file):\/\/(www\.)?/,r.addParser({id:"url",is:function(e){return r.regex.urlProtocolTest.test(e)},format:function(e){return e?t.trim(e.replace(r.regex.urlProtocolReplace,"")):e},type:"text"}),r.regex.dash=/-/g,r.regex.isoDate=/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/,r.addParser({id:"isoDate",is:function(e){return r.regex.isoDate.test(e)},format:function(e,t){var i=e?new Date(e.replace(r.regex.dash,"/")):e;return i instanceof Date&&isFinite(i)?i.getTime():e},type:"numeric"}),r.regex.percent=/%/g,r.regex.percentTest=/(\d\s*?%|%\s*?\d)/,r.addParser({id:"percent",is:function(e){return r.regex.percentTest.test(e)&&e.length<15},format:function(e,t){return e?r.formatFloat(e.replace(r.regex.percent,""),t):e},type:"numeric"}),r.addParser({id:"image",is:function(e,t,r,i){return i.find("img").length>0},format:function(e,r,i){return t(i).find("img").attr(r.config.imgAttr||"alt")||e},parsed:!0,type:"text"}),r.regex.dateReplace=/(\S)([AP]M)$/i,r.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,r.regex.usLongDateTest2=/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i,r.addParser({id:"usLongDate",is:function(e){return r.regex.usLongDateTest1.test(e)||r.regex.usLongDateTest2.test(e)},format:function(e,t){var i=e?new Date(e.replace(r.regex.dateReplace,"$1 $2")):e;return i instanceof Date&&isFinite(i)?i.getTime():e},type:"numeric"}),r.regex.shortDateTest=/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/,r.regex.shortDateReplace=/[\-.,]/g,r.regex.shortDateXXY=/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,r.regex.shortDateYMD=/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,r.convertFormat=function(e,t){e=(e||"").replace(r.regex.spaces," ").replace(r.regex.shortDateReplace,"/"),"mmddyyyy"===t?e=e.replace(r.regex.shortDateXXY,"$3/$1/$2"):"ddmmyyyy"===t?e=e.replace(r.regex.shortDateXXY,"$3/$2/$1"):"yyyymmdd"===t&&(e=e.replace(r.regex.shortDateYMD,"$1/$2/$3"));var i=new Date(e);return i instanceof Date&&isFinite(i)?i.getTime():""},r.addParser({id:"shortDate",is:function(e){return e=(e||"").replace(r.regex.spaces," ").replace(r.regex.shortDateReplace,"/"),r.regex.shortDateTest.test(e)},format:function(e,t,i,a){if(e){var s=t.config,l=s.$headerIndexed[a],n=l.length&&l.data("dateFormat")||r.getData(l,r.getColumnData(t,s.headers,a),"dateFormat")||s.dateFormat;return l.length&&l.data("dateFormat",n),r.convertFormat(e,n)||e}return e},type:"numeric"}),r.regex.timeTest=/^(0?[1-9]|1[0-2]):([0-5]\d)(\s[AP]M)$|^((?:[01]\d|[2][0-4]):[0-5]\d)$/i,r.regex.timeMatch=/(0?[1-9]|1[0-2]):([0-5]\d)(\s[AP]M)|((?:[01]\d|[2][0-4]):[0-5]\d)/i,r.addParser({id:"time",is:function(e){return r.regex.timeTest.test(e)},format:function(e,t){var i,a=(e||"").match(r.regex.timeMatch),s=new Date(e),l=e&&(null!==a?a[0]:"00:00 AM"),n=l?new Date("2000/01/01 "+l.replace(r.regex.dateReplace,"$1 $2")):l;return n instanceof Date&&isFinite(n)?(i=s instanceof Date&&isFinite(s)?s.getTime():0,i?parseFloat(n.getTime()+"."+s.getTime()):n.getTime()):e},type:"numeric"}),r.addParser({id:"metadata",is:function(){return!1},format:function(e,r,i){var a=r.config,s=a.parserMetadataName?a.parserMetadataName:"sortValue";return t(i).metadata()[s]},type:"numeric"}),r.addWidget({id:"zebra",priority:90,format:function(e,r,i){var a,s,l,n,o,c,d,f=new RegExp(r.cssChildRow,"i"),u=r.$tbodies.add(t(r.namespace+"_extra_table").children("tbody:not(."+r.cssInfoBlock+")"));for(o=0;o<u.length;o++)for(l=0,a=u.eq(o).children("tr:visible").not(r.selectorRemove),d=a.length,c=0;c<d;c++)s=a.eq(c),f.test(s[0].className)||l++,n=l%2===0,s.removeClass(i.zebra[n?1:0]).addClass(i.zebra[n?0:1])},remove:function(e,t,i,a){if(!a){var s,l,n=t.$tbodies,o=(i.zebra||["even","odd"]).join(" ");for(s=0;s<n.length;s++)l=r.processTbody(e,n.eq(s),!0),l.children().removeClass(o),r.processTbody(e,l,!1)}}})}(e),function(e,t,r){"use strict";var i=e.tablesorter||{};i.storage=function(a,s,l,n){a=e(a)[0];var o,c,d,f=!1,u={},p=a.config,g=p&&p.widgetOptions,h=n&&n.useSessionStorage||g&&g.storage_useSessionStorage?"sessionStorage":"localStorage",m=e(a),b=n&&n.id||m.attr(n&&n.group||g&&g.storage_group||"data-table-group")||g&&g.storage_tableId||a.id||e(".tablesorter").index(m),y=n&&n.url||m.attr(n&&n.page||g&&g.storage_page||"data-table-page")||g&&g.storage_fixedUrl||p&&p.fixedUrl||t.location.pathname;if(e.extend(!0,i.defaults,{fixedUrl:"",widgetOptions:{storage_fixedUrl:"",storage_group:"",storage_page:"",storage_tableId:"",storage_useSessionStorage:""}}),h in t)try{t[h].setItem("_tmptest","temp"),f=!0,t[h].removeItem("_tmptest")}catch(w){p&&p.debug}return e.parseJSON&&(f?u=e.parseJSON(t[h][s]||"null")||{}:(c=r.cookie.split(/[;\s|=]/),o=e.inArray(s,c)+1,u=0!==o?e.parseJSON(c[o]||"null")||{}:{})),"undefined"!=typeof l&&t.JSON&&JSON.hasOwnProperty("stringify")?(u[y]||(u[y]={}),u[y][b]=l,f?t[h][s]=JSON.stringify(u):(d=new Date,d.setTime(d.getTime()+31536e6),r.cookie=s+"="+JSON.stringify(u).replace(/\"/g,'"')+"; expires="+d.toGMTString()+"; path=/"),void 0):u&&u[y]?u[y][b]:""}}(e,window,document),function(e){"use strict";var t=e.tablesorter||{};t.themes={bootstrap:{table:"table table-bordered table-striped",caption:"caption",header:"bootstrap-header",sortNone:"",sortAsc:"",sortDesc:"",active:"",hover:"",icons:"",iconSortNone:"bootstrap-icon-unsorted",iconSortAsc:"icon-chevron-up glyphicon glyphicon-chevron-up",iconSortDesc:"icon-chevron-down glyphicon glyphicon-chevron-down",filterRow:"",footerRow:"",footerCells:"",even:"",odd:""},jui:{table:"ui-widget ui-widget-content ui-corner-all",caption:"ui-widget-content",header:"ui-widget-header ui-corner-all ui-state-default",sortNone:"",sortAsc:"",sortDesc:"",active:"ui-state-active",hover:"ui-state-hover",icons:"ui-icon",iconSortNone:"ui-icon-carat-2-n-s ui-icon-caret-2-n-s",iconSortAsc:"ui-icon-carat-1-n ui-icon-caret-1-n",iconSortDesc:"ui-icon-carat-1-s ui-icon-caret-1-s",filterRow:"",footerRow:"",footerCells:"",even:"ui-widget-content",odd:"ui-state-default"}},e.extend(t.css,{wrapper:"tablesorter-wrapper"}),t.addWidget({id:"uitheme",priority:10,format:function(r,i,a){var s,l,n,o,c,d,f,u,p,g,h,m,b,y=t.themes,w=i.$table.add(e(i.namespace+"_extra_table")),v=i.$headers.add(e(i.namespace+"_extra_headers")),_=i.theme||"jui",x=y[_]||{},C=e.trim([x.sortNone,x.sortDesc,x.sortAsc,x.active].join(" ")),$=e.trim([x.iconSortNone,x.iconSortDesc,x.iconSortAsc].join(" "));for(i.debug&&(c=new Date),w.hasClass("tablesorter-"+_)&&i.theme===i.appliedTheme&&a.uitheme_applied||(a.uitheme_applied=!0,g=y[i.appliedTheme]||{},b=!e.isEmptyObject(g),h=b?[g.sortNone,g.sortDesc,g.sortAsc,g.active].join(" "):"",m=b?[g.iconSortNone,g.iconSortDesc,g.iconSortAsc].join(" "):"",b&&(a.zebra[0]=e.trim(" "+a.zebra[0].replace(" "+g.even,"")),a.zebra[1]=e.trim(" "+a.zebra[1].replace(" "+g.odd,"")),i.$tbodies.children().removeClass([g.even,g.odd].join(" "))),x.even&&(a.zebra[0]+=" "+x.even),x.odd&&(a.zebra[1]+=" "+x.odd),w.children("caption").removeClass(g.caption||"").addClass(x.caption),u=w.removeClass((i.appliedTheme?"tablesorter-"+(i.appliedTheme||""):"")+" "+(g.table||"")).addClass("tablesorter-"+_+" "+(x.table||"")).children("tfoot"),i.appliedTheme=i.theme,u.length&&u.children("tr").removeClass(g.footerRow||"").addClass(x.footerRow).children("th, td").removeClass(g.footerCells||"").addClass(x.footerCells),v.removeClass((b?[g.header,g.hover,h].join(" "):"")||"").addClass(x.header).not(".sorter-false").unbind("mouseenter.tsuitheme mouseleave.tsuitheme").bind("mouseenter.tsuitheme mouseleave.tsuitheme",function(t){e(this)["mouseenter"===t.type?"addClass":"removeClass"](x.hover||"")}),v.each(function(){var r=e(this);r.find("."+t.css.wrapper).length||r.wrapInner('<div class="'+t.css.wrapper+'" style="position:relative;height:100%;width:100%"></div>')}),i.cssIcon&&v.find("."+t.css.icon).removeClass(b?[g.icons,m].join(" "):"").addClass(x.icons||""),t.hasWidget(i.table,"filter")&&(l=function(){w.children("thead").children("."+t.css.filterRow).removeClass(b?g.filterRow||"":"").addClass(x.filterRow||"")},a.filter_initialized?l():w.one("filterInit",function(){l()}))),s=0;s<i.columns;s++)d=i.$headers.add(e(i.namespace+"_extra_headers")).not(".sorter-false").filter('[data-column="'+s+'"]'),f=t.css.icon?d.find("."+t.css.icon):e(),p=v.not(".sorter-false").filter('[data-column="'+s+'"]:last'),p.length&&(d.removeClass(C),f.removeClass($),p[0].sortDisabled?f.removeClass(x.icons||""):(n=x.sortNone,o=x.iconSortNone,p.hasClass(t.css.sortAsc)?(n=[x.sortAsc,x.active].join(" "),o=x.iconSortAsc):p.hasClass(t.css.sortDesc)&&(n=[x.sortDesc,x.active].join(" "),o=x.iconSortDesc),d.addClass(n),f.addClass(o||"")));i.debug},remove:function(e,r,i,a){if(i.uitheme_applied){var s=r.$table,l=r.appliedTheme||"jui",n=t.themes[l]||t.themes.jui,o=s.children("thead").children(),c=n.sortNone+" "+n.sortDesc+" "+n.sortAsc,d=n.iconSortNone+" "+n.iconSortDesc+" "+n.iconSortAsc;s.removeClass("tablesorter-"+l+" "+n.table),i.uitheme_applied=!1,a||(s.find(t.css.header).removeClass(n.header),o.unbind("mouseenter.tsuitheme mouseleave.tsuitheme").removeClass(n.hover+" "+c+" "+n.active).filter("."+t.css.filterRow).removeClass(n.filterRow),o.find("."+t.css.icon).removeClass(n.icons+" "+d))}}})}(e),function(e){"use strict";var t=e.tablesorter||{};t.addWidget({id:"columns",priority:30,options:{columns:["primary","secondary","tertiary"]},format:function(r,i,a){var s,l,n,o,c,d,f,u,p=i.$table,g=i.$tbodies,h=i.sortList,m=h.length,b=a&&a.columns||["primary","secondary","tertiary"],y=b.length-1;for(f=b.join(" "),l=0;l<g.length;l++)s=t.processTbody(r,g.eq(l),!0),n=s.children("tr"),n.each(function(){if(c=e(this),"none"!==this.style.display&&(d=c.children().removeClass(f),h&&h[0]&&(d.eq(h[0][0]).addClass(b[0]),m>1)))for(u=1;u<m;u++)d.eq(h[u][0]).addClass(b[u]||b[y])}),t.processTbody(r,s,!1);if(o=a.columns_thead!==!1?["thead tr"]:[],a.columns_tfoot!==!1&&o.push("tfoot tr"),o.length&&(n=p.find(o.join(",")).children().removeClass(f),m))for(u=0;u<m;u++)n.filter('[data-column="'+h[u][0]+'"]').addClass(b[u]||b[y])},remove:function(r,i,a){var s,l,n=i.$tbodies,o=(a.columns||["primary","secondary","tertiary"]).join(" ");for(i.$headers.removeClass(o),i.$table.children("tfoot").children("tr").children("th, td").removeClass(o),s=0;s<n.length;s++)l=t.processTbody(r,n.eq(s),!0),l.children("tr").each(function(){e(this).children().removeClass(o)}),t.processTbody(r,l,!1)}})}(e),function(e){"use strict";var t,r,i=e.tablesorter||{},a=i.css,s=i.keyCodes;e.extend(a,{filterRow:"tablesorter-filter-row",filter:"tablesorter-filter",filterDisabled:"disabled",filterRowHide:"hideme"}),e.extend(s,{backSpace:8,escape:27,space:32,left:37,down:40}),i.addWidget({id:"filter",priority:50,options:{filter_cellFilter:"",filter_childRows:!1,filter_childByColumn:!1,filter_childWithSibs:!0,filter_columnAnyMatch:!0,filter_columnFilters:!0,filter_cssFilter:"",filter_defaultAttrib:"data-value",filter_defaultFilter:{},filter_excludeFilter:{},filter_external:"",filter_filteredRow:"filtered",filter_formatter:null,filter_functions:null,filter_hideEmpty:!0,filter_hideFilters:!1,filter_ignoreCase:!0,filter_liveSearch:!0,filter_matchType:{input:"exact",select:"exact"},filter_onlyAvail:"filter-onlyAvail",filter_placeholder:{search:"",select:""},filter_reset:null,filter_resetOnEsc:!0,filter_saveFilters:!1,filter_searchDelay:300,filter_searchFiltered:!0,filter_selectSource:null,filter_selectSourceSeparator:"|",filter_serversideFiltering:!1,filter_startsWith:!1,filter_useParsedData:!1},format:function(e,r,i){r.$table.hasClass("hasFilters")||t.init(e,r,i)},remove:function(t,r,s,l){var n,o,c=r.$table,d=r.$tbodies,f="addRows updateCell update updateRows updateComplete appendCache filterReset filterEnd search ".split(" ").join(r.namespace+"filter ");if(c.removeClass("hasFilters").unbind(f.replace(i.regex.spaces," ")).find("."+a.filterRow).remove(),s.filter_initialized=!1,!l){for(n=0;n<d.length;n++)o=i.processTbody(t,d.eq(n),!0),o.children().removeClass(s.filter_filteredRow).show(),i.processTbody(t,o,!1);s.filter_reset&&e(document).undelegate(s.filter_reset,"click"+r.namespace+"filter")}}}),t=i.filter={regex:{regex:/^\/((?:\\\/|[^\/])+)\/([migyu]{0,5})?$/,child:/tablesorter-childRow/,filtered:/filtered/,type:/undefined|number/,exact:/(^[\"\'=]+)|([\"\'=]+$)/g,operators:/[<>=]/g,query:"(q|query)",wild01:/\?/g,wild0More:/\*/g,quote:/\"/g,isNeg1:/(>=?\s*-\d)/,isNeg2:/(<=?\s*\d)/},types:{or:function(i,a,s){if((r.orTest.test(a.iFilter)||r.orSplit.test(a.filter))&&!r.regex.test(a.filter)){var l,n,o,c,d=e.extend({},a),f=a.filter.split(r.orSplit),u=a.iFilter.split(r.orSplit),p=f.length;for(l=0;l<p;l++){d.nestedFilters=!0,d.filter=""+(t.parseFilter(i,f[l],a)||""),d.iFilter=""+(t.parseFilter(i,u[l],a)||""),o="("+(t.parseFilter(i,d.filter,a)||"")+")";try{if(c=new RegExp(a.isMatch?o:"^"+o+"$",i.widgetOptions.filter_ignoreCase?"i":""),n=c.test(d.exact)||t.processTypes(i,d,s))return n}catch(g){return null}}return n||!1}return null},and:function(i,a,s){if(r.andTest.test(a.filter)){var l,n,o,c,d,f=e.extend({},a),u=a.filter.split(r.andSplit),p=a.iFilter.split(r.andSplit),g=u.length;for(l=0;l<g;l++){f.nestedFilters=!0,f.filter=""+(t.parseFilter(i,u[l],a)||""),f.iFilter=""+(t.parseFilter(i,p[l],a)||""),c=("("+(t.parseFilter(i,f.filter,a)||"")+")").replace(r.wild01,"\\S{1}").replace(r.wild0More,"\\S*");try{d=new RegExp(a.isMatch?c:"^"+c+"$",i.widgetOptions.filter_ignoreCase?"i":""),o=d.test(f.exact)||t.processTypes(i,f,s),n=0===l?o:n&&o}catch(h){return null}}return n||!1}return null},regex:function(e,t){if(r.regex.test(t.filter)){var i,a=t.filter_regexCache[t.index]||r.regex.exec(t.filter),s=a instanceof RegExp;try{s||(t.filter_regexCache[t.index]=a=new RegExp(a[1],a[2])),i=a.test(t.exact)}catch(l){i=!1}return i}return null},operators:function(a,s){if(r.operTest.test(s.iFilter)&&""!==s.iExact){var l,n,o,c=a.table,d=s.parsed[s.index],f=i.formatFloat(s.iFilter.replace(r.operators,""),c),u=a.parsers[s.index]||{},p=f;return(d||"numeric"===u.type)&&(o=e.trim(""+s.iFilter.replace(r.operators,"")),n=t.parseFilter(a,o,s,!0),f="number"!=typeof n||""===n||isNaN(n)?f:n),!d&&"numeric"!==u.type||isNaN(f)||"undefined"==typeof s.cache?(o=isNaN(s.iExact)?s.iExact.replace(i.regex.nondigit,""):s.iExact,l=i.formatFloat(o,c)):l=s.cache,r.gtTest.test(s.iFilter)?n=r.gteTest.test(s.iFilter)?l>=f:l>f:r.ltTest.test(s.iFilter)&&(n=r.lteTest.test(s.iFilter)?l<=f:l<f),n||""!==p||(n=!0),n}return null},notMatch:function(i,a){if(r.notTest.test(a.iFilter)){var s,l=a.iFilter.replace("!",""),n=t.parseFilter(i,l,a)||"";return r.exact.test(n)?(n=n.replace(r.exact,""),""===n||e.trim(n)!==a.iExact):(s=a.iExact.search(e.trim(n)),""===n||(a.anyMatch?s<0:!(i.widgetOptions.filter_startsWith?0===s:s>=0)))}return null},exact:function(i,a){if(r.exact.test(a.iFilter)){var s=a.iFilter.replace(r.exact,""),l=t.parseFilter(i,s,a)||"";return a.anyMatch?e.inArray(l,a.rowArray)>=0:l==a.iExact}return null},range:function(e,a){if(r.toTest.test(a.iFilter)){var s,l,n,o,c=e.table,d=a.index,f=a.parsed[d],u=a.iFilter.split(r.toSplit);return l=u[0].replace(i.regex.nondigit,"")||"",n=i.formatFloat(t.parseFilter(e,l,a),c),l=u[1].replace(i.regex.nondigit,"")||"",o=i.formatFloat(t.parseFilter(e,l,a),c),(f||"numeric"===e.parsers[d].type)&&(s=e.parsers[d].format(""+u[0],c,e.$headers.eq(d),d),n=""===s||isNaN(s)?n:s,s=e.parsers[d].format(""+u[1],c,e.$headers.eq(d),d),o=""===s||isNaN(s)?o:s),!f&&"numeric"!==e.parsers[d].type||isNaN(n)||isNaN(o)?(l=isNaN(a.iExact)?a.iExact.replace(i.regex.nondigit,""):a.iExact,s=i.formatFloat(l,c)):s=a.cache,n>o&&(l=n,n=o,o=l),s>=n&&s<=o||""===n||""===o}return null},wild:function(e,i){if(r.wildOrTest.test(i.iFilter)){var a=""+(t.parseFilter(e,i.iFilter,i)||"");!r.wildTest.test(a)&&i.nestedFilters&&(a=i.isMatch?a:"^("+a+")$");try{return new RegExp(a.replace(r.wild01,"\\S{1}").replace(r.wild0More,"\\S*"),e.widgetOptions.filter_ignoreCase?"i":"").test(i.exact)}catch(s){return null}}return null},fuzzy:function(e,i){if(r.fuzzyTest.test(i.iFilter)){var a,s=0,l=i.iExact.length,n=i.iFilter.slice(1),o=t.parseFilter(e,n,i)||"";for(a=0;a<l;a++)i.iExact[a]===o[s]&&(s+=1);return s===o.length}return null}},init:function(s){i.language=e.extend(!0,{},{to:"to",or:"or",and:"and"},i.language);var l,n,o,c,d,f,u,p,g=s.config,h=g.widgetOptions;if(g.$table.addClass("hasFilters"),g.lastSearch=[],h.filter_searchTimer=null,h.filter_initTimer=null,h.filter_formatterCount=0,h.filter_formatterInit=[],h.filter_anyColumnSelector='[data-column="all"],[data-column="any"]',h.filter_multipleColumnSelector='[data-column*="-"],[data-column*=","]',f="\\{"+r.query+"\\}",e.extend(r,{child:new RegExp(g.cssChildRow),filtered:new RegExp(h.filter_filteredRow),alreadyFiltered:new RegExp("(\\s+("+i.language.or+"|-|"+i.language.to+")\\s+)","i"),toTest:new RegExp("\\s+(-|"+i.language.to+")\\s+","i"),toSplit:new RegExp("(?:\\s+(?:-|"+i.language.to+")\\s+)","gi"),andTest:new RegExp("\\s+("+i.language.and+"|&&)\\s+","i"),andSplit:new RegExp("(?:\\s+(?:"+i.language.and+"|&&)\\s+)","gi"),orTest:new RegExp("(\\||\\s+"+i.language.or+"\\s+)","i"),orSplit:new RegExp("(?:\\s+(?:"+i.language.or+")\\s+|\\|)","gi"),iQuery:new RegExp(f,"i"),igQuery:new RegExp(f,"ig"),operTest:/^[<>]=?/,gtTest:/>/,gteTest:/>=/,ltTest:/</,lteTest:/<=/,notTest:/^\!/,wildOrTest:/[\?\*\|]/,wildTest:/\?\*/,fuzzyTest:/^~/,exactTest:/[=\"\|!]/}),f=g.$headers.filter(".filter-false, .parser-false").length,h.filter_columnFilters!==!1&&f!==g.$headers.length&&t.buildRow(s,g,h),o="addRows updateCell update updateRows updateComplete appendCache filterReset "+"filterResetSaved filterEnd search ".split(" ").join(g.namespace+"filter "),g.$table.bind(o,function(r,l){return f=h.filter_hideEmpty&&e.isEmptyObject(g.cache)&&!(g.delayInit&&"appendCache"===r.type),g.$table.find("."+a.filterRow).toggleClass(h.filter_filteredRow,f),/(search|filter)/.test(r.type)||(r.stopPropagation(),t.buildDefault(s,!0)),"filterReset"===r.type?(g.$table.find("."+a.filter).add(h.filter_$externalFilters).val(""),t.searching(s,[])):"filterResetSaved"===r.type?i.storage(s,"tablesorter-filters",""):"filterEnd"===r.type?t.buildDefault(s,!0):(l="search"===r.type?l:"updateComplete"===r.type?g.$table.data("lastSearch"):"",/(update|add)/.test(r.type)&&"updateComplete"!==r.type&&(g.lastCombinedFilter=null,g.lastSearch=[],setTimeout(function(){g.$table.triggerHandler("filterFomatterUpdate")},100)),t.searching(s,l,!0)),!1}),h.filter_reset&&(h.filter_reset instanceof e?h.filter_reset.click(function(){g.$table.triggerHandler("filterReset")}):e(h.filter_reset).length&&e(document).undelegate(h.filter_reset,"click"+g.namespace+"filter").delegate(h.filter_reset,"click"+g.namespace+"filter",function(){g.$table.triggerHandler("filterReset")})),h.filter_functions)for(d=0;d<g.columns;d++)if(u=i.getColumnData(s,h.filter_functions,d))if(c=g.$headerIndexed[d].removeClass("filter-select"),p=!(c.hasClass("filter-false")||c.hasClass("parser-false")),l="",u===!0&&p)t.buildSelect(s,d);else if("object"==typeof u&&p){for(n in u)"string"==typeof n&&(l+=""===l?'<option value="">'+(c.data("placeholder")||c.attr("data-placeholder")||h.filter_placeholder.select||"")+"</option>":"",f=n,o=n,n.indexOf(h.filter_selectSourceSeparator)>=0&&(f=n.split(h.filter_selectSourceSeparator),o=f[1],f=f[0]),l+="<option "+(o===f?"":'data-function-name="'+n+'" ')+'value="'+f+'">'+o+"</option>");g.$table.find("thead").find("select."+a.filter+'[data-column="'+d+'"]').append(l),o=h.filter_selectSource,u="function"==typeof o||i.getColumnData(s,o,d),u&&t.buildSelect(g.table,d,"",!0,c.hasClass(h.filter_onlyAvail))}t.buildDefault(s,!0),t.bindSearch(s,g.$table.find("."+a.filter),!0),h.filter_external&&t.bindSearch(s,h.filter_external),h.filter_hideFilters&&t.hideFilters(g),g.showProcessing&&(o="filterStart filterEnd ".split(" ").join(g.namespace+"filter "),g.$table.unbind(o.replace(i.regex.spaces," ")).bind(o,function(t,r){c=r?g.$table.find("."+a.header).filter("[data-column]").filter(function(){return""!==r[e(this).data("column")]}):"",i.isProcessing(s,"filterStart"===t.type,r?c:"")})),g.filteredRows=g.totalRows,o="tablesorter-initialized pagerBeforeInitialized ".split(" ").join(g.namespace+"filter "),g.$table.unbind(o.replace(i.regex.spaces," ")).bind(o,function(){t.completeInit(this)}),g.pager&&g.pager.initialized&&!h.filter_initialized?(g.$table.triggerHandler("filterFomatterUpdate"),setTimeout(function(){t.filterInitComplete(g)},100)):h.filter_initialized||t.completeInit(s)},completeInit:function(e){var r=e.config,a=r.widgetOptions,s=t.setDefaults(e,r,a)||[];s.length&&(r.delayInit&&""===s.join("")||i.setFilters(e,s,!0)),r.$table.triggerHandler("filterFomatterUpdate"),setTimeout(function(){a.filter_initialized||t.filterInitComplete(r)},100)},formatterUpdated:function(e,t){var r=e&&e.closest("table")[0].config.widgetOptions;r&&!r.filter_initialized&&(r.filter_formatterInit[t]=1)},filterInitComplete:function(r){var i,a,s=r.widgetOptions,l=0,n=function(){s.filter_initialized=!0,r.lastSearch=r.$table.data("lastSearch"),r.$table.triggerHandler("filterInit",r),t.findRows(r.table,r.lastSearch||[])};if(e.isEmptyObject(s.filter_formatter))n();else{for(a=s.filter_formatterInit.length,i=0;i<a;i++)1===s.filter_formatterInit[i]&&l++;clearTimeout(s.filter_initTimer),s.filter_initialized||l!==s.filter_formatterCount?s.filter_initialized||(s.filter_initTimer=setTimeout(function(){n()},500)):n()}},processFilters:function(e,t){var r,i=[],a=t?encodeURIComponent:decodeURIComponent,s=e.length;for(r=0;r<s;r++)e[r]&&(i[r]=a(e[r]));return i},setDefaults:function(r,a,s){var l,n,o,c,d,f=i.getFilters(r)||[];if(s.filter_saveFilters&&i.storage&&(n=i.storage(r,"tablesorter-filters")||[],l=e.isArray(n),l&&""===n.join("")||!l||(f=t.processFilters(n))),""===f.join(""))for(d=a.$headers.add(s.filter_$externalFilters).filter("["+s.filter_defaultAttrib+"]"),o=0;o<=a.columns;o++)c=o===a.columns?"all":o,f[o]=d.filter('[data-column="'+c+'"]').attr(s.filter_defaultAttrib)||f[o]||"";return a.$table.data("lastSearch",f),f},parseFilter:function(e,t,r,i){return i||r.parsed[r.index]?e.parsers[r.index].format(t,e.table,[],r.index):t},buildRow:function(r,s,l){var n,o,c,d,f,u,p,g,h,m=l.filter_cellFilter,b=s.columns,y=e.isArray(m),w='<tr role="row" class="'+a.filterRow+" "+s.cssIgnoreRow+'">';for(c=0;c<b;c++)s.$headerIndexed[c].length&&(h=s.$headerIndexed[c]&&s.$headerIndexed[c][0].colSpan||0,w+=h>1?'<td data-column="'+c+"-"+(c+h-1)+'" colspan="'+h+'"':'<td data-column="'+c+'"',w+=y?m[c]?' class="'+m[c]+'"':"":""!==m?' class="'+m+'"':"",w+="></td>");for(s.$filters=e(w+="</tr>").appendTo(s.$table.children("thead").eq(0)).children("td"),c=0;c<b;c++)u=!1,d=s.$headerIndexed[c],d&&d.length&&(n=t.getColumnElm(s,s.$filters,c),g=i.getColumnData(r,l.filter_functions,c),f=l.filter_functions&&g&&"function"!=typeof g||d.hasClass("filter-select"),o=i.getColumnData(r,s.headers,c),u="false"===i.getData(d[0],o,"filter")||"false"===i.getData(d[0],o,"parser"),f?w=e("<select>").appendTo(n):(g=i.getColumnData(r,l.filter_formatter,c),g?(l.filter_formatterCount++,w=g(n,c),w&&0===w.length&&(w=n.children("input")),w&&(0===w.parent().length||w.parent().length&&w.parent()[0]!==n[0])&&n.append(w)):w=e('<input type="search">').appendTo(n),w&&(h=d.data("placeholder")||d.attr("data-placeholder")||l.filter_placeholder.search||"",w.attr("placeholder",h))),w&&(p=(e.isArray(l.filter_cssFilter)?"undefined"!=typeof l.filter_cssFilter[c]?l.filter_cssFilter[c]||"":"":l.filter_cssFilter)||"",w.addClass(a.filter+" "+p).attr("data-column",n.attr("data-column")),u&&(w.attr("placeholder","").addClass(a.filterDisabled)[0].disabled=!0)))},bindSearch:function(r,a,l){if(r=e(r)[0],a=e(a),a.length){var n,o=r.config,c=o.widgetOptions,d=o.namespace+"filter",f=c.filter_$externalFilters;l!==!0&&(n=c.filter_anyColumnSelector+","+c.filter_multipleColumnSelector,c.filter_$anyMatch=a.filter(n),f&&f.length?c.filter_$externalFilters=c.filter_$externalFilters.add(a):c.filter_$externalFilters=a,i.setFilters(r,o.$table.data("lastSearch")||[],l===!1)),n="keypress keyup keydown search change input ".split(" ").join(d+" "),a.attr("data-lastSearchTime",(new Date).getTime()).unbind(n.replace(i.regex.spaces," ")).bind("keydown"+d,function(e){if(e.which===s.escape&&!r.config.widgetOptions.filter_resetOnEsc)return!1}).bind("keyup"+d,function(a){c=r.config.widgetOptions;var l=parseInt(e(this).attr("data-column"),10),n="boolean"==typeof c.filter_liveSearch?c.filter_liveSearch:i.getColumnData(r,c.filter_liveSearch,l);if("undefined"==typeof n&&(n=c.filter_liveSearch.fallback||!1),e(this).attr("data-lastSearchTime",(new Date).getTime()),a.which===s.escape)this.value=c.filter_resetOnEsc?"":o.lastSearch[l];else{if(n===!1)return;if(""!==this.value&&("number"==typeof n&&this.value.length<n||a.which!==s.enter&&a.which!==s.backSpace&&(a.which<s.space||a.which>=s.left&&a.which<=s.down)))return}t.searching(r,!0,!0,l)}).bind("search change keypress input ".split(" ").join(d+" "),function(a){var l=parseInt(e(this).attr("data-column"),10),n="boolean"==typeof c.filter_liveSearch?c.filter_liveSearch:i.getColumnData(r,c.filter_liveSearch,l);!r.config.widgetOptions.filter_initialized||a.which!==s.enter&&"search"!==a.type&&("change"!==a.type&&"input"!==a.type||n!==!0||this.value===o.lastSearch[l])||(a.preventDefault(),e(this).attr("data-lastSearchTime",(new Date).getTime()),t.searching(r,"keypress"!==a.type,!0,l))})}},searching:function(e,r,a,s){var l,n=e.config.widgetOptions;"undefined"==typeof s?l=!1:(l="boolean"==typeof n.filter_liveSearch?n.filter_liveSearch:i.getColumnData(e,n.filter_liveSearch,s),"undefined"==typeof l&&(l=n.filter_liveSearch.fallback||!1)),clearTimeout(n.filter_searchTimer),"undefined"==typeof r||r===!0?n.filter_searchTimer=setTimeout(function(){t.checkFilters(e,r,a)},l?n.filter_searchDelay:10):t.checkFilters(e,r,a)},checkFilters:function(r,s,l){var n=r.config,o=n.widgetOptions,c=e.isArray(s),d=c?s:i.getFilters(r,!0),f=(d||[]).join("");return e.isEmptyObject(n.cache)?void(n.delayInit&&(!n.pager||n.pager&&n.pager.initialized)&&i.updateCache(n,function(){t.checkFilters(r,!1,l)})):(c&&(i.setFilters(r,d,!1,l!==!0),o.filter_initialized||(n.lastCombinedFilter="")),o.filter_hideFilters&&n.$table.find("."+a.filterRow).triggerHandler(t.hideFiltersCheck(n)?"mouseleave":"mouseenter"),n.lastCombinedFilter!==f||s===!1?(s===!1&&(n.lastCombinedFilter=null,n.lastSearch=[]),d=d||[],d=Array.prototype.map?d.map(String):d.join("<22>").split("<22>"),o.filter_initialized&&n.$table.triggerHandler("filterStart",[d]),n.showProcessing?void setTimeout(function(){return t.findRows(r,d,f),!1},30):(t.findRows(r,d,f),!1)):void 0)},hideFiltersCheck:function(e){if("function"==typeof e.widgetOptions.filter_hideFilters){var t=e.widgetOptions.filter_hideFilters(e);if("boolean"==typeof t)return t}return""===i.getFilters(e.$table).join("")},hideFilters:function(r,i){var s;(i||r.$table).find("."+a.filterRow).addClass(a.filterRowHide).bind("mouseenter mouseleave",function(i){var l=i,n=e(this);clearTimeout(s),s=setTimeout(function(){/enter|over/.test(l.type)?n.removeClass(a.filterRowHide):e(document.activeElement).closest("tr")[0]!==n[0]&&n.toggleClass(a.filterRowHide,t.hideFiltersCheck(r))},200)}).find("input, select").bind("focus blur",function(i){var l=i,n=e(this).closest("tr");clearTimeout(s),s=setTimeout(function(){clearTimeout(s),n.toggleClass(a.filterRowHide,t.hideFiltersCheck(r)&&"focus"!==l.type)},200)})},defaultFilter:function(t,i){if(""===t)return t;var a=r.iQuery,s=i.match(r.igQuery).length,l=s>1?e.trim(t).split(/\s/):[e.trim(t)],n=l.length-1,o=0,c=i;for(n<1&&s>1&&(l[1]=l[0]);a.test(c);)c=c.replace(a,l[o++]||""),a.test(c)&&o<n&&""!==(l[o]||"")&&(c=i.replace(a,c));return c},getLatestSearch:function(t){return t?t.sort(function(t,r){return e(r).attr("data-lastSearchTime")-e(t).attr("data-lastSearchTime")}):t||e()},findRange:function(e,t,r){
|
||
var i,a,s,l,n,o,c,d,f,u=[];if(/^[0-9]+$/.test(t))return[parseInt(t,10)];if(!r&&/-/.test(t))for(a=t.match(/(\d+)\s*-\s*(\d+)/g),f=a?a.length:0,d=0;d<f;d++){for(s=a[d].split(/\s*-\s*/),l=parseInt(s[0],10)||0,n=parseInt(s[1],10)||e.columns-1,l>n&&(i=l,l=n,n=i),n>=e.columns&&(n=e.columns-1);l<=n;l++)u[u.length]=l;t=t.replace(a[d],"")}if(!r&&/,/.test(t))for(o=t.split(/\s*,\s*/),f=o.length,c=0;c<f;c++)""!==o[c]&&(d=parseInt(o[c],10),d<e.columns&&(u[u.length]=d));if(!u.length)for(d=0;d<e.columns;d++)u[u.length]=d;return u},getColumnElm:function(r,i,a){return i.filter(function(){var i=t.findRange(r,e(this).attr("data-column"));return e.inArray(a,i)>-1})},multipleColumns:function(r,i){var a=r.widgetOptions,s=a.filter_initialized||!i.filter(a.filter_anyColumnSelector).length,l=e.trim(t.getLatestSearch(i).attr("data-column")||"");return t.findRange(r,l,!s)},processTypes:function(r,i,a){var s,l=null,n=null;for(s in t.types)e.inArray(s,a.excludeMatch)<0&&null===n&&(n=t.types[s](r,i,a),null!==n&&(l=n));return l},matchType:function(e,t){var r,i=e.widgetOptions,s=e.$headerIndexed[t];return s.hasClass("filter-exact")?r=!1:s.hasClass("filter-match")?r=!0:(i.filter_columnFilters?s=e.$filters.find("."+a.filter).add(i.filter_$externalFilters).filter('[data-column="'+t+'"]'):i.filter_$externalFilters&&(s=i.filter_$externalFilters.filter('[data-column="'+t+'"]')),r=!!s.length&&"match"===e.widgetOptions.filter_matchType[(s[0].nodeName||"").toLowerCase()]),r},processRow:function(a,s,l){var n,o,c,d,f,u=a.widgetOptions,p=!0,g=u.filter_$anyMatch&&u.filter_$anyMatch.length,h=u.filter_$anyMatch&&u.filter_$anyMatch.length?t.multipleColumns(a,u.filter_$anyMatch):[];if(s.$cells=s.$row.children(),s.anyMatchFlag&&h.length>1||s.anyMatchFilter&&!g){if(s.anyMatch=!0,s.isMatch=!0,s.rowArray=s.$cells.map(function(t){if(e.inArray(t,h)>-1||s.anyMatchFilter&&!g)return s.parsed[t]?f=s.cacheArray[t]:(f=s.rawArray[t],f=e.trim(u.filter_ignoreCase?f.toLowerCase():f),a.sortLocaleCompare&&(f=i.replaceAccents(f))),f}).get(),s.filter=s.anyMatchFilter,s.iFilter=s.iAnyMatchFilter,s.exact=s.rowArray.join(" "),s.iExact=u.filter_ignoreCase?s.exact.toLowerCase():s.exact,s.cache=s.cacheArray.slice(0,-1).join(" "),l.excludeMatch=l.noAnyMatch,o=t.processTypes(a,s,l),null!==o)p=o;else if(u.filter_startsWith)for(p=!1,h=Math.min(a.columns,s.rowArray.length);!p&&h>0;)h--,p=p||0===s.rowArray[h].indexOf(s.iFilter);else p=(s.iExact+s.childRowText).indexOf(s.iFilter)>=0;if(s.anyMatch=!1,s.filters.join("")===s.filter)return p}for(h=0;h<a.columns;h++)s.filter=s.filters[h],s.index=h,l.excludeMatch=l.excludeFilter[h],s.filter&&(s.cache=s.cacheArray[h],n=s.parsed[h]?s.cache:s.rawArray[h]||"",s.exact=a.sortLocaleCompare?i.replaceAccents(n):n,s.iExact=!r.type.test(typeof s.exact)&&u.filter_ignoreCase?s.exact.toLowerCase():s.exact,s.isMatch=t.matchType(a,h),n=p,d=u.filter_columnFilters?a.$filters.add(u.filter_$externalFilters).filter('[data-column="'+h+'"]').find("select option:selected").attr("data-function-name")||"":"",a.sortLocaleCompare&&(s.filter=i.replaceAccents(s.filter)),u.filter_defaultFilter&&r.iQuery.test(l.defaultColFilter[h])&&(s.filter=t.defaultFilter(s.filter,l.defaultColFilter[h])),s.iFilter=u.filter_ignoreCase?(s.filter||"").toLowerCase():s.filter,c=l.functions[h],o=null,c&&(c===!0?o=s.isMatch?(""+s.iExact).search(s.iFilter)>=0:s.filter===s.exact:"function"==typeof c?o=c(s.exact,s.cache,s.filter,h,s.$row,a,s):"function"==typeof c[d||s.filter]&&(f=d||s.filter,o=c[f](s.exact,s.cache,s.filter,h,s.$row,a,s))),null===o?(o=t.processTypes(a,s,l),null!==o?n=o:(f=(s.iExact+s.childRowText).indexOf(t.parseFilter(a,s.iFilter,s)),n=!u.filter_startsWith&&f>=0||u.filter_startsWith&&0===f)):n=o,p=!!n&&p);return p},findRows:function(a,s,l){if(a.config.lastCombinedFilter!==l&&a.config.widgetOptions.filter_initialized){var n,o,c,d,f,u,p,g,h,m,b,y,w,v,_,x,C,$,S,F,R,T,z,I,A=e.extend([],s),D=a.config,k=D.widgetOptions,O={anyMatch:!1,filters:s,filter_regexCache:[]},E={noAnyMatch:["range","operators"],functions:[],excludeFilter:[],defaultColFilter:[],defaultAnyFilter:i.getColumnData(a,k.filter_defaultFilter,D.columns,!0)||""};for(O.parsed=[],h=0;h<D.columns;h++)O.parsed[h]=k.filter_useParsedData||D.parsers&&D.parsers[h]&&D.parsers[h].parsed||i.getData&&"parsed"===i.getData(D.$headerIndexed[h],i.getColumnData(a,D.headers,h),"filter")||D.$headerIndexed[h].hasClass("filter-parsed"),E.functions[h]=i.getColumnData(a,k.filter_functions,h)||D.$headerIndexed[h].hasClass("filter-select"),E.defaultColFilter[h]=i.getColumnData(a,k.filter_defaultFilter,h)||"",E.excludeFilter[h]=(i.getColumnData(a,k.filter_excludeFilter,h,!0)||"").split(/\s+/);for(D.debug&&(_=new Date),D.filteredRows=0,D.totalRows=0,l=(A||[]).join(""),p=0;p<D.$tbodies.length;p++){if(g=i.processTbody(a,D.$tbodies.eq(p),!0),h=D.columns,o=D.cache[p].normalized,d=e(e.map(o,function(e){return e[h].$row.get()})),""===l||k.filter_serversideFiltering)d.removeClass(k.filter_filteredRow).not("."+D.cssChildRow).css("display","");else{if(d=d.not("."+D.cssChildRow),n=d.length,(k.filter_$anyMatch&&k.filter_$anyMatch.length||"undefined"!=typeof s[D.columns])&&(O.anyMatchFlag=!0,O.anyMatchFilter=""+(s[D.columns]||k.filter_$anyMatch&&t.getLatestSearch(k.filter_$anyMatch).val()||""),k.filter_columnAnyMatch)){for(F=O.anyMatchFilter.split(r.andSplit),R=!1,C=0;C<F.length;C++)T=F[C].split(":"),T.length>1&&(isNaN(T[0])?e.each(D.headerContent,function(e,t){t.toLowerCase().indexOf(T[0])>-1&&(z=e,s[z]=T[1])}):z=parseInt(T[0],10)-1,z>=0&&z<D.columns&&(s[z]=T[1],F.splice(C,1),C--,R=!0));R&&(O.anyMatchFilter=F.join(" && "))}if(S=k.filter_searchFiltered,y=D.lastSearch||D.$table.data("lastSearch")||[],S)for(C=0;C<h+1;C++)x=s[C]||"",S||(C=h),S=S&&y.length&&0===x.indexOf(y[C]||"")&&!r.alreadyFiltered.test(x)&&!r.exactTest.test(x)&&!(r.isNeg1.test(x)||r.isNeg2.test(x))&&!(""!==x&&D.$filters&&D.$filters.filter('[data-column="'+C+'"]').find("select").length&&!t.matchType(D,C));for($=d.not("."+k.filter_filteredRow).length,S&&0===$&&(S=!1),D.debug,O.anyMatchFlag&&(D.sortLocaleCompare&&(O.anyMatchFilter=i.replaceAccents(O.anyMatchFilter)),k.filter_defaultFilter&&r.iQuery.test(E.defaultAnyFilter)&&(O.anyMatchFilter=t.defaultFilter(O.anyMatchFilter,E.defaultAnyFilter),S=!1),O.iAnyMatchFilter=k.filter_ignoreCase&&D.ignoreCase?O.anyMatchFilter.toLowerCase():O.anyMatchFilter),u=0;u<n;u++)if(I=d[u].className,m=u&&r.child.test(I),!(m||S&&r.filtered.test(I))){if(O.$row=d.eq(u),O.rowIndex=u,O.cacheArray=o[u],c=O.cacheArray[D.columns],O.rawArray=c.raw,O.childRowText="",!k.filter_childByColumn){for(I="",b=c.child,C=0;C<b.length;C++)I+=" "+b[C].join(" ")||"";O.childRowText=k.filter_childRows?k.filter_ignoreCase?I.toLowerCase():I:""}if(w=!1,v=t.processRow(D,O,E),f=c.$row,x=!!v,b=c.$row.filter(":gt(0)"),k.filter_childRows&&b.length){if(k.filter_childByColumn)for(k.filter_childWithSibs||(b.addClass(k.filter_filteredRow),f=f.eq(0)),C=0;C<b.length;C++)O.$row=b.eq(C),O.cacheArray=c.child[C],O.rawArray=O.cacheArray,x=t.processRow(D,O,E),w=w||x,!k.filter_childWithSibs&&x&&b.eq(C).removeClass(k.filter_filteredRow);w=w||v}else w=x;f.toggleClass(k.filter_filteredRow,!w)[0].display=w?"":"none"}}D.filteredRows+=d.not("."+k.filter_filteredRow).length,D.totalRows+=d.length,i.processTbody(a,g,!1)}D.lastCombinedFilter=l,D.lastSearch=A,D.$table.data("lastSearch",A),k.filter_saveFilters&&i.storage&&i.storage(a,"tablesorter-filters",t.processFilters(A,!0)),D.debug,k.filter_initialized&&(D.$table.triggerHandler("filterBeforeEnd",D),D.$table.triggerHandler("filterEnd",D)),setTimeout(function(){i.applyWidget(D.table)},0)}},getOptionSource:function(r,a,s){r=e(r)[0];var l=r.config,n=l.widgetOptions,o=!1,c=n.filter_selectSource,d=l.$table.data("lastSearch")||[],f="function"==typeof c||i.getColumnData(r,c,a);if(s&&""!==d[a]&&(s=!1),f===!0)o=c(r,a,s);else{if(f instanceof e||"string"===e.type(f)&&f.indexOf("</option>")>=0)return f;e.isArray(f)?o=f:"object"===e.type(c)&&f&&(o=f(r,a,s))}return o===!1&&(o=t.getOptions(r,a,s)),t.processOptions(r,a,o)},processOptions:function(t,r,a){if(!e.isArray(a))return!1;t=e(t)[0];var s,l,n,o,c,d,f=t.config,u="undefined"!=typeof r&&null!==r&&r>=0&&r<f.columns,p=!!u&&f.$headerIndexed[r].hasClass("filter-select-sort-desc"),g=[];if(a=e.grep(a,function(t,r){return!!t.text||e.inArray(t,a)===r}),u&&f.$headerIndexed[r].hasClass("filter-select-nosort"))return a;for(o=a.length,n=0;n<o;n++)l=a[n],d=l.text?l.text:l,c=(u&&f.parsers&&f.parsers.length&&f.parsers[r].format(d,t,[],r)||d).toString(),c=f.widgetOptions.filter_ignoreCase?c.toLowerCase():c,l.text?(l.parsed=c,g[g.length]=l):g[g.length]={text:l,parsed:c};for(s=f.textSorter||"",g.sort(function(e,a){var l=p?a.parsed:e.parsed,n=p?e.parsed:a.parsed;return u&&"function"==typeof s?s(l,n,!0,r,t):u&&"object"==typeof s&&s.hasOwnProperty(r)?s[r](l,n,!0,r,t):!i.sortNatural||i.sortNatural(l,n)}),a=[],o=g.length,n=0;n<o;n++)a[a.length]=g[n];return a},getOptions:function(t,r,a){t=e(t)[0];var s,l,n,o,c,d,f,u,p=t.config,g=p.widgetOptions,h=[];for(l=0;l<p.$tbodies.length;l++)for(c=p.cache[l],n=p.cache[l].normalized.length,s=0;s<n;s++)if(o=c.row?c.row[s]:c.normalized[s][p.columns].$row[0],!a||!o.className.match(g.filter_filteredRow))if(g.filter_useParsedData||p.parsers[r].parsed||p.$headerIndexed[r].hasClass("filter-parsed")){if(h[h.length]=""+c.normalized[s][r],g.filter_childRows&&g.filter_childByColumn)for(u=c.normalized[s][p.columns].$row.length-1,d=0;d<u;d++)h[h.length]=""+c.normalized[s][p.columns].child[d][r]}else if(h[h.length]=c.normalized[s][p.columns].raw[r],g.filter_childRows&&g.filter_childByColumn)for(u=c.normalized[s][p.columns].$row.length,d=1;d<u;d++)f=c.normalized[s][p.columns].$row.eq(d).children().eq(r),h[h.length]=""+i.getElementText(p,f,r);return h},buildSelect:function(i,s,l,n,o){if(i=e(i)[0],s=parseInt(s,10),i.config.cache&&!e.isEmptyObject(i.config.cache)){var c,d,f,u,p,g,h,m=i.config,b=m.widgetOptions,y=m.$headerIndexed[s],w='<option value="">'+(y.data("placeholder")||y.attr("data-placeholder")||b.filter_placeholder.select||"")+"</option>",v=m.$table.find("thead").find("select."+a.filter+'[data-column="'+s+'"]').val();if("undefined"!=typeof l&&""!==l||(l=t.getOptionSource(i,s,o)),e.isArray(l)){for(c=0;c<l.length;c++)if(h=l[c],h.text){h["data-function-name"]="undefined"==typeof h.value?h.text:h.value,w+="<option";for(d in h)h.hasOwnProperty(d)&&"text"!==d&&(w+=" "+d+'="'+h[d]+'"');h.value||(w+=' value="'+h.text+'"'),w+=">"+h.text+"</option>"}else""+h!="[object Object]"&&(f=h=(""+h).replace(r.quote,"""),d=f,f.indexOf(b.filter_selectSourceSeparator)>=0&&(u=f.split(b.filter_selectSourceSeparator),d=u[0],f=u[1]),w+=""!==h?"<option "+(d===f?"":'data-function-name="'+h+'" ')+'value="'+d+'">'+f+"</option>":"");l=[]}p=(m.$filters?m.$filters:m.$table.children("thead")).find("."+a.filter),b.filter_$externalFilters&&(p=p&&p.length?p.add(b.filter_$externalFilters):b.filter_$externalFilters),g=p.filter('select[data-column="'+s+'"]'),g.length&&(g[n?"html":"append"](w),e.isArray(l)||g.append(l).val(v),g.val(v))}},buildDefault:function(e,r){var a,s,l,n=e.config,o=n.widgetOptions,c=n.columns;for(a=0;a<c;a++)s=n.$headerIndexed[a],l=!(s.hasClass("filter-false")||s.hasClass("parser-false")),(s.hasClass("filter-select")||i.getColumnData(e,o.filter_functions,a)===!0)&&l&&t.buildSelect(e,a,"",r,s.hasClass(o.filter_onlyAvail))}},r=t.regex,i.getFilters=function(r,i,s,l){var n,o,c,d,f=[],u=r?e(r)[0].config:"",p=u?u.widgetOptions:"";if(i!==!0&&p&&!p.filter_columnFilters||e.isArray(s)&&s.join("")===u.lastCombinedFilter)return e(r).data("lastSearch");if(u&&(u.$filters&&(o=u.$filters.find("."+a.filter)),p.filter_$externalFilters&&(o=o&&o.length?o.add(p.filter_$externalFilters):p.filter_$externalFilters),o&&o.length))for(f=s||[],n=0;n<u.columns+1;n++)d=n===u.columns?p.filter_anyColumnSelector+","+p.filter_multipleColumnSelector:'[data-column="'+n+'"]',c=o.filter(d),c.length&&(c=t.getLatestSearch(c),e.isArray(s)?(l&&c.length>1&&(c=c.slice(1)),n===u.columns&&(d=c.filter(p.filter_anyColumnSelector),c=d.length?d:c),c.val(s[n]).trigger("change"+u.namespace)):(f[n]=c.val()||"",n===u.columns?c.slice(1).filter('[data-column*="'+c.attr("data-column")+'"]').val(f[n]):c.slice(1).val(f[n])),n===u.columns&&c.length&&(p.filter_$anyMatch=c));return f},i.setFilters=function(r,a,s,l){var n=r?e(r)[0].config:"",o=i.getFilters(r,!0,a,l);return"undefined"==typeof s&&(s=!0),n&&s&&(n.lastCombinedFilter=null,n.lastSearch=[],t.searching(n.table,a,l),n.$table.triggerHandler("filterFomatterUpdate")),0!==o.length}}(e),function(e,t){"use strict";var r=e.tablesorter||{};e.extend(r.css,{sticky:"tablesorter-stickyHeader",stickyVis:"tablesorter-sticky-visible",stickyHide:"tablesorter-sticky-hidden",stickyWrap:"tablesorter-sticky-wrapper"}),r.addHeaderResizeEvent=function(t,r,i){if(t=e(t)[0],t.config){var a={timer:250},s=e.extend({},a,i),l=t.config,n=l.widgetOptions,o=function(e){var t,r,i,a,s,o,c=l.$headers.length;for(n.resize_flag=!0,r=[],t=0;t<c;t++)i=l.$headers.eq(t),a=i.data("savedSizes")||[0,0],s=i[0].offsetWidth,o=i[0].offsetHeight,s===a[0]&&o===a[1]||(i.data("savedSizes",[s,o]),r.push(i[0]));r.length&&e!==!1&&l.$table.triggerHandler("resize",[r]),n.resize_flag=!1};if(clearInterval(n.resize_timer),r)return n.resize_flag=!1,!1;o(!1),n.resize_timer=setInterval(function(){n.resize_flag||o()},s.timer)}},r.addWidget({id:"stickyHeaders",priority:54,options:{stickyHeaders:"",stickyHeaders_appendTo:null,stickyHeaders_attachTo:null,stickyHeaders_xScroll:null,stickyHeaders_yScroll:null,stickyHeaders_offset:0,stickyHeaders_filteredToTop:!0,stickyHeaders_cloneId:"-sticky",stickyHeaders_addResizeEvent:!0,stickyHeaders_includeCaption:!0,stickyHeaders_zIndex:2},format:function(i,a,s){if(!(a.$table.hasClass("hasStickyHeaders")||e.inArray("filter",a.widgets)>=0&&!a.$table.hasClass("hasFilters"))){var l,n,o,c,d=a.$table,f=e(s.stickyHeaders_attachTo),u=a.namespace+"stickyheaders ",p=e(s.stickyHeaders_yScroll||s.stickyHeaders_attachTo||t),g=e(s.stickyHeaders_xScroll||s.stickyHeaders_attachTo||t),h=d.children("thead:first"),m=h.children("tr").not(".sticky-false").children(),b=d.children("tfoot"),y=isNaN(s.stickyHeaders_offset)?e(s.stickyHeaders_offset):"",w=y.length?y.height()||0:parseInt(s.stickyHeaders_offset,10)||0,v=d.parent().closest("."+r.css.table).hasClass("hasStickyHeaders")?d.parent().closest("table.tablesorter")[0].config.widgetOptions.$sticky.parent():[],_=v.length?v.height():0,x=s.$sticky=d.clone().addClass("containsStickyHeaders "+r.css.sticky+" "+s.stickyHeaders+" "+a.namespace.slice(1)+"_extra_table").wrap('<div class="'+r.css.stickyWrap+'">'),C=x.parent().addClass(r.css.stickyHide).css({position:f.length?"absolute":"fixed",padding:parseInt(x.parent().parent().css("padding-left"),10),top:w+_,left:0,visibility:"hidden",zIndex:s.stickyHeaders_zIndex||2}),$=x.children("thead:first"),S="",F=0,R=function(e,r){var i,a,s,l,n,o=e.filter(":visible"),c=o.length;for(i=0;i<c;i++)l=r.filter(":visible").eq(i),n=o.eq(i),"border-box"===n.css("box-sizing")?a=n.outerWidth():"collapse"===l.css("border-collapse")?t.getComputedStyle?a=parseFloat(t.getComputedStyle(n[0],null).width):(s=parseFloat(n.css("border-width")),a=n.outerWidth()-parseFloat(n.css("padding-left"))-parseFloat(n.css("padding-right"))-s):a=n.width(),l.css({width:a,"min-width":a,"max-width":a})},T=function(){w=y.length?y.height()||0:parseInt(s.stickyHeaders_offset,10)||0,F=0,C.css({left:f.length?parseInt(f.css("padding-left"),10)||0:d.offset().left-parseInt(d.css("margin-left"),10)-g.scrollLeft()-F,width:d.outerWidth()}),R(d,x),R(m,c)},z=function(t){if(d.is(":visible")){_=v.length?v.offset().top-p.scrollTop()+v.height():0;var i=d.offset(),a=e.isWindow(p[0]),l=e.isWindow(g[0]),n=f.length?a?p.scrollTop():p.offset().top:p.scrollTop(),o=s.stickyHeaders_includeCaption?0:d.children("caption").height()||0,c=n+w+_-o,u=d.height()-(C.height()+(b.height()||0))-o,h=c>i.top&&c<i.top+u?"visible":"hidden",m={visibility:h};f.length&&(m.top=a?c-f.offset().top:f.scrollTop()),l&&(m.left=d.offset().left-parseInt(d.css("margin-left"),10)-g.scrollLeft()-F),v.length&&(m.top=(m.top||0)+w+_),C.removeClass(r.css.stickyVis+" "+r.css.stickyHide).addClass("visible"===h?r.css.stickyVis:r.css.stickyHide).css(m),(h!==S||t)&&(T(),S=h)}};if(f.length&&!f.css("position")&&f.css("position","relative"),x.attr("id")&&(x[0].id+=s.stickyHeaders_cloneId),x.find("thead:gt(0), tr.sticky-false").hide(),x.find("tbody, tfoot").remove(),x.find("caption").toggle(s.stickyHeaders_includeCaption),c=$.children().children(),x.css({height:0,width:0,margin:0}),c.find("."+r.css.resizer).remove(),d.addClass("hasStickyHeaders").bind("pagerComplete"+u,function(){T()}),r.bindEvents(i,$.children().children("."+r.css.header)),s.stickyHeaders_appendTo?e(s.stickyHeaders_appendTo).append(C):d.after(C),a.onRenderHeader)for(o=$.children("tr").children(),n=o.length,l=0;l<n;l++)a.onRenderHeader.apply(o.eq(l),[l,a,x]);g.add(p).unbind("scroll resize ".split(" ").join(u).replace(/\s+/g," ")).bind("scroll resize ".split(" ").join(u),function(e){z("resize"===e.type)}),a.$table.unbind("stickyHeadersUpdate"+u).bind("stickyHeadersUpdate"+u,function(){z(!0)}),s.stickyHeaders_addResizeEvent&&r.addHeaderResizeEvent(i),d.hasClass("hasFilters")&&s.filter_columnFilters&&(d.bind("filterEnd"+u,function(){var i=e(document.activeElement).closest("td"),l=i.parent().children().index(i);C.hasClass(r.css.stickyVis)&&s.stickyHeaders_filteredToTop&&(t.scrollTo(0,d.position().top),l>=0&&a.$filters&&a.$filters.eq(l).find("a, select, input").filter(":visible").focus())}),r.filter.bindSearch(d,c.find("."+r.css.filter)),s.filter_hideFilters&&r.filter.hideFilters(a,x)),s.stickyHeaders_addResizeEvent&&d.bind("resize"+a.namespace+"stickyheaders",function(){T()}),d.triggerHandler("stickyHeadersInit")}},remove:function(i,a,s){var l=a.namespace+"stickyheaders ";a.$table.removeClass("hasStickyHeaders").unbind("pagerComplete resize filterEnd stickyHeadersUpdate ".split(" ").join(l).replace(/\s+/g," ")).next("."+r.css.stickyWrap).remove(),s.$sticky&&s.$sticky.length&&s.$sticky.remove(),e(t).add(s.stickyHeaders_xScroll).add(s.stickyHeaders_yScroll).add(s.stickyHeaders_attachTo).unbind("scroll resize ".split(" ").join(l).replace(/\s+/g," ")),r.addHeaderResizeEvent(i,!0)}})}(e,window),function(e,t){"use strict";var r=e.tablesorter||{};e.extend(r.css,{resizableContainer:"tablesorter-resizable-container",resizableHandle:"tablesorter-resizable-handle",resizableNoSelect:"tablesorter-disableSelection",resizableStorage:"tablesorter-resizable"}),e(function(){var t="<style>body."+r.css.resizableNoSelect+" { -ms-user-select: none; -moz-user-select: -moz-none;-khtml-user-select: none; -webkit-user-select: none; user-select: none; }."+r.css.resizableContainer+" { position: relative; height: 1px; }."+r.css.resizableHandle+" { position: absolute; display: inline-block; width: 8px;top: 1px; cursor: ew-resize; z-index: 3; user-select: none; -moz-user-select: none; }</style>";e("head").append(t)}),r.resizable={init:function(t,i){if(!t.$table.hasClass("hasResizable")){t.$table.addClass("hasResizable");var a,s,l,n,o,c=t.$table,d=c.parent(),f=parseInt(c.css("margin-top"),10),u=i.resizable_vars={useStorage:r.storage&&i.resizable!==!1,$wrap:d,mouseXPosition:0,$target:null,$next:null,overflow:"auto"===d.css("overflow")||"scroll"===d.css("overflow")||"auto"===d.css("overflow-x")||"scroll"===d.css("overflow-x"),storedSizes:[]};for(r.resizableReset(t.table,!0),u.tableWidth=c.width(),u.fullWidth=Math.abs(d.width()-u.tableWidth)<20,u.useStorage&&u.overflow&&(r.storage(t.table,"tablesorter-table-original-css-width",u.tableWidth),o=r.storage(t.table,"tablesorter-table-resized-width")||"auto",r.resizable.setWidth(c,o,!0)),i.resizable_vars.storedSizes=n=(u.useStorage?r.storage(t.table,r.css.resizableStorage):[])||[],r.resizable.setWidths(t,i,n),r.resizable.updateStoredSizes(t,i),i.$resizable_container=e('<div class="'+r.css.resizableContainer+'">').css({top:f}).insertBefore(c),l=0;l<t.columns;l++)s=t.$headerIndexed[l],o=r.getColumnData(t.table,t.headers,l),a="false"===r.getData(s,o,"resizable"),a||e('<div class="'+r.css.resizableHandle+'">').appendTo(i.$resizable_container).attr({"data-column":l,unselectable:"on"}).data("header",s).bind("selectstart",!1);r.resizable.bindings(t,i)}},updateStoredSizes:function(e,t){var r,i,a=e.columns,s=t.resizable_vars;for(s.storedSizes=[],r=0;r<a;r++)i=e.$headerIndexed[r],s.storedSizes[r]=i.is(":visible")?i.width():0},setWidth:function(e,t,r){e.css({width:t,"min-width":r?t:"","max-width":r?t:""})},setWidths:function(t,i,a){var s,l,n=i.resizable_vars,o=e(t.namespace+"_extra_headers"),c=t.$table.children("colgroup").children("col");if(a=a||n.storedSizes||[],a.length){for(s=0;s<t.columns;s++)r.resizable.setWidth(t.$headerIndexed[s],a[s],n.overflow),o.length&&(l=o.eq(s).add(c.eq(s)),r.resizable.setWidth(l,a[s],n.overflow));l=e(t.namespace+"_extra_table"),l.length&&!r.hasWidget(t.table,"scroller")&&r.resizable.setWidth(l,t.$table.outerWidth(),n.overflow)}},setHandlePosition:function(t,i){var a,s=t.$table.height(),l=i.$resizable_container.children(),n=Math.floor(l.width()/2);r.hasWidget(t.table,"scroller")&&(s=0,t.$table.closest("."+r.css.scrollerWrap).children().each(function(){var t=e(this);s+=t.filter('[style*="height"]').length?t.height():t.children("table").height()})),a=t.$table.position().left,l.each(function(){var r=e(this),l=parseInt(r.attr("data-column"),10),o=t.columns-1,c=r.data("header");c&&(c.is(":visible")?(l<o||l===o&&i.resizable_addLastColumn)&&r.css({display:"inline-block",height:s,left:c.position().left-a+c.outerWidth()-n}):r.hide())})},toggleTextSelection:function(t,i,a){var s=t.namespace+"tsresize";i.resizable_vars.disabled=a,e("body").toggleClass(r.css.resizableNoSelect,a),a?e("body").attr("unselectable","on").bind("selectstart"+s,!1):e("body").removeAttr("unselectable").unbind("selectstart"+s)},bindings:function(i,a){var s=i.namespace+"tsresize";a.$resizable_container.children().bind("mousedown",function(t){var s,l=a.resizable_vars,n=e(i.namespace+"_extra_headers"),o=e(t.target).data("header");s=parseInt(o.attr("data-column"),10),l.$target=o=o.add(n.filter('[data-column="'+s+'"]')),l.target=s,l.$next=t.shiftKey||a.resizable_targetLast?o.parent().children().not(".resizable-false").filter(":last"):o.nextAll(":not(.resizable-false)").eq(0),s=parseInt(l.$next.attr("data-column"),10),l.$next=l.$next.add(n.filter('[data-column="'+s+'"]')),l.next=s,l.mouseXPosition=t.pageX,r.resizable.updateStoredSizes(i,a),r.resizable.toggleTextSelection(i,a,!0)}),e(document).bind("mousemove"+s,function(e){var t=a.resizable_vars;t.disabled&&0!==t.mouseXPosition&&t.$target&&(a.resizable_throttle?(clearTimeout(t.timer),t.timer=setTimeout(function(){r.resizable.mouseMove(i,a,e)},isNaN(a.resizable_throttle)?5:a.resizable_throttle)):r.resizable.mouseMove(i,a,e))}).bind("mouseup"+s,function(){a.resizable_vars.disabled&&(r.resizable.toggleTextSelection(i,a,!1),r.resizable.stopResize(i,a),r.resizable.setHandlePosition(i,a))}),e(t).bind("resize"+s+" resizeEnd"+s,function(){r.resizable.setHandlePosition(i,a)}),i.$table.bind("columnUpdate"+s+" pagerComplete"+s,function(){r.resizable.setHandlePosition(i,a)}).find("thead:first").add(e(i.namespace+"_extra_table").find("thead:first")).bind("contextmenu"+s,function(){var e=0===a.resizable_vars.storedSizes.length;return r.resizableReset(i.table),r.resizable.setHandlePosition(i,a),a.resizable_vars.storedSizes=[],e})},mouseMove:function(t,i,a){if(0!==i.resizable_vars.mouseXPosition&&i.resizable_vars.$target){var s,l=0,n=i.resizable_vars,o=n.$next,c=n.storedSizes[n.target],d=a.pageX-n.mouseXPosition;if(n.overflow){if(c+d>0){for(n.storedSizes[n.target]+=d,r.resizable.setWidth(n.$target,n.storedSizes[n.target],!0),s=0;s<t.columns;s++)l+=n.storedSizes[s];r.resizable.setWidth(t.$table.add(e(t.namespace+"_extra_table")),l)}o.length||(n.$wrap[0].scrollLeft=t.$table.width())}else n.fullWidth?(n.storedSizes[n.target]+=d,n.storedSizes[n.next]-=d,r.resizable.setWidths(t,i)):(n.storedSizes[n.target]+=d,r.resizable.setWidths(t,i));n.mouseXPosition=a.pageX,t.$table.triggerHandler("stickyHeadersUpdate")}},stopResize:function(e,t){var i=t.resizable_vars;r.resizable.updateStoredSizes(e,t),i.useStorage&&(r.storage(e.table,r.css.resizableStorage,i.storedSizes),r.storage(e.table,"tablesorter-table-resized-width",e.$table.width())),i.mouseXPosition=0,i.$target=i.$next=null,e.$table.triggerHandler("stickyHeadersUpdate")}},r.addWidget({id:"resizable",priority:40,options:{resizable:!0,resizable_addLastColumn:!1,resizable_widths:[],resizable_throttle:!1,resizable_targetLast:!1,resizable_fullWidth:null},init:function(e,t,i,a){r.resizable.init(i,a)},format:function(e,t,i){r.resizable.setHandlePosition(t,i)},remove:function(t,i,a,s){if(a.$resizable_container){var l=i.namespace+"tsresize";i.$table.add(e(i.namespace+"_extra_table")).removeClass("hasResizable").children("thead").unbind("contextmenu"+l),a.$resizable_container.remove(),r.resizable.toggleTextSelection(i,a,!1),r.resizableReset(t,s),e(document).unbind("mousemove"+l+" mouseup"+l)}}}),r.resizableReset=function(t,i){e(t).each(function(){var e,a,s=this.config,l=s&&s.widgetOptions,n=l.resizable_vars;if(t&&s&&s.$headerIndexed.length){for(n.overflow&&n.tableWidth&&(r.resizable.setWidth(s.$table,n.tableWidth,!0),n.useStorage&&r.storage(t,"tablesorter-table-resized-width","auto")),e=0;e<s.columns;e++)a=s.$headerIndexed[e],l.resizable_widths&&l.resizable_widths[e]?r.resizable.setWidth(a,l.resizable_widths[e],n.overflow):a.hasClass("resizable-false")||r.resizable.setWidth(a,"",n.overflow);s.$table.triggerHandler("stickyHeadersUpdate"),r.storage&&!i&&r.storage(this,r.css.resizableStorage,{})}})}}(e,window),function(e){"use strict";var t=e.tablesorter||{};t.addWidget({id:"saveSort",priority:20,options:{saveSort:!0},init:function(e,t,r,i){t.format(e,r,i,!0)},format:function(r,i,a,s){var l,n,o=i.$table,c=a.saveSort!==!1,d={sortList:i.sortList};i.debug&&(n=new Date),o.hasClass("hasSaveSort")?c&&r.hasInitialized&&t.storage&&(t.storage(r,"tablesorter-savesort",d),i.debug):(o.addClass("hasSaveSort"),d="",t.storage&&(l=t.storage(r,"tablesorter-savesort"),d=l&&l.hasOwnProperty("sortList")&&e.isArray(l.sortList)?l.sortList:"",i.debug,o.bind("saveSortReset",function(e){e.stopPropagation(),t.storage(r,"tablesorter-savesort","")})),s&&d&&d.length>0?i.sortList=d:r.hasInitialized&&d&&d.length>0&&t.sortOn(i,d))},remove:function(e,r){r.$table.removeClass("hasSaveSort"),t.storage&&t.storage(e,"tablesorter-savesort","")}})}(e),e.tablesorter}),!function(e){"use strict";var t=e.tablesorter,r=t.grouping={types:{number:function(e,r,i,a){var s,l=r.hasClass(t.css.sortAsc);return a>1&&""!==i?(s=l?Math.floor(parseFloat(i)/a)*a:Math.ceil(parseFloat(i)/a)*a,s+=" - "+(s+(a-1)*(l?1:-1))):s=parseFloat(i)||i,s},separator:function(t,r,i,a){var s=(i+"").split(t.widgetOptions.group_separator);return e.trim(s[a-1]||"")},text:function(e,t,r){return r},word:function(e,t,r,i){var a=(r+" ").match(/\w+/g)||[];return a[i-1]||""},letter:function(e,t,r,i){return r?(r+" ").substring(0,i):""},date:function(e,t,i,a,s){var l,n,o=e.widgetOptions,c=new Date(i||"");return c instanceof Date&&isFinite(c)?(l=c.getFullYear(),n=r.findMonth(o,c.getMonth()),"year"===a?l:"month"===a?n:"monthyear"===a?n+" "+l:"day"===a?n+" "+c.getDate():"week"===a?r.findWeek(o,c.getDay()):"time"===a?r.findTime(o,c):"hour"===a?r.findTime(o,c,"hour"):o.group_dateString(c,e,t)):o.group_dateInvalid}},findMonth:function(e,t){return e.group_months[t+(""===(e.group_months[0]||"")?1:0)]},findWeek:function(t,r){if(e.isArray(t.group_week))return t.group_week[r];if(!e.isEmptyObject(t.group_week)){var i=["sun","mon","tue","wed","thu","fri","sat"];return t.group_week[i[r]]}},findTime:function(e,t,r){var i,a=e.group_time.am&&e.group_time.pm,s=t.getHours(),l=s>=12?1:0,n=e.group_time24Hour&&s>12?s-12:e.group_time24Hour&&0===s?s+12:s,o=("00"+n).slice(-2),c=("00"+t.getMinutes()).slice(-2);return i=e.group_time[a?["am","pm"][l]:l],"hour"===r?o:o+":"+c+(e.group_time24Hour?"":" "+(i||""))},update:function(t){if(!e.isEmptyObject(t.config.cache)){var i=t.config,a=i.widgetOptions,s="undefined"!=typeof i.sortList[0],l={},n=e.isArray(a.group_forceColumn)&&"undefined"!=typeof a.group_forceColumn[0]?a.group_enforceSort&&!s?-1:a.group_forceColumn[0]:s?i.sortList[0][0]:-1;i.$table.find("tr.group-hidden").removeClass("group-hidden").end().find("tr.group-header").remove(),a.group_collapsible&&i.$table.data("pagerSavedHeight",0),n>=0&&n<i.columns&&!i.$headerIndexed[n].hasClass("group-false")&&(a.group_collapsedGroup="",a.group_collapsedGroups={},l.column=n,l.groupClass=(i.$headerIndexed[n].attr("class")||"").match(/(group-\w+(-\w+)?)/g),l.grouping=l.groupClass?l.groupClass[0].split("-"):["group","letter",1],l.savedGroup=r.saveCurrentGrouping(i,a,l),r.findColumnGroups(i,a,l),r.processHeaders(i,a,l),i.$table.triggerHandler(a.group_complete))}},processHeaders:function(t,r,i){var a,s,l,n,o,c,d=t.$table.find("tr.group-header"),f=d.length;for(d.bind("selectstart",!1),a=0;a<f;a++)c=d.eq(a),o=c.nextUntil("tr.group-header").filter(":visible"),(r.group_count||e.isFunction(r.group_callback))&&(l=c.find(".group-count"),l.length&&(r.group_count&&l.html(r.group_count.toString().replace(/\{num\}/g,o.length)),e.isFunction(r.group_callback)&&r.group_callback(c.find("td"),o,i.column,t.table))),r.group_saveGroups&&!e.isEmptyObject(r.group_collapsedGroups)&&r.group_collapsedGroups[r.group_collapsedGroup].length?(n=c.find(".group-name").text().toLowerCase()+c.attr("data-group-index"),s=e.inArray(n,r.group_collapsedGroups[r.group_collapsedGroup])>-1,c.toggleClass("collapsed",s),o.toggleClass("group-hidden",s)):r.group_collapsed&&r.group_collapsible&&(c.addClass("collapsed"),o.addClass("group-hidden"))},groupHeaderHTML:function(e,t,r){var i=(r.currentGroup||"").toString().replace(/</g,"<").replace(/>/g,">");return'<tr class="group-header '+e.selectorRemove.slice(1)+'" unselectable="on" '+(e.tabIndex?'tabindex="0" ':"")+'data-group-index="'+r.groupIndex+'"><td colspan="'+e.columns+'">'+(t.group_collapsible?"<i/>":"")+'<span class="group-name">'+i+'</span><span class="group-count"></span></td></tr>'},saveCurrentGrouping:function(e,r,i){var a,s,l=!1;return r.group_collapsible&&r.group_saveGroups&&(r.group_collapsedGroups=t.storage&&t.storage(e.table,"tablesorter-groups")||{},s="dir"+e.sortList[0][1],a=r.group_collapsedGroup=""+e.sortList[0][0]+s+i.grouping.join(""),r.group_collapsedGroups[a]?l=!0:r.group_collapsedGroups[a]=[]),l},findColumnGroups:function(e,i,a){var s,l,n,o,c,d=t.hasWidget(e.table,"pager"),f=e.pager||{};for(a.groupIndex=0,s=0;s<e.$tbodies.length;s++)for(l=e.cache[s].normalized,a.group=c,n=d&&!f.ajax?f.startRow-1:0,o=d?f.endRow-(f.ajax?f.startRow:0):l.length;n<o;n++)a.rowData=l[n],a.rowData&&(a.$row=a.rowData[e.columns].$row,a.$row.is(":visible")&&r.types[a.grouping[1]]&&r.insertGroupHeader(e,i,a))},insertGroupHeader:function(t,i,a){var s=t.$headerIndexed[a.column],l=a.rowData[a.column],n=/date/.test(a.groupClass)?a.grouping[2]:parseInt(a.grouping[2]||1,10)||1;a.currentGroup=a.rowData?r.types[a.grouping[1]](t,s,l,n,a.group):a.currentGroup,a.group!==a.currentGroup&&(a.group=a.currentGroup,e.isFunction(i.group_formatter)&&(a.currentGroup=i.group_formatter((a.group||"").toString(),a.column,t.table,t,i,a)||a.group),a.$row.first().before(r.groupHeaderHTML(t,i,a)),i.group_saveGroups&&!a.savedGroup&&i.group_collapsed&&i.group_collapsible&&i.group_collapsedGroups[i.group_collapsedGroup].push(a.currentGroup+a.groupIndex),a.groupIndex++)},bindEvents:function(i,a,s){s.group_collapsible&&(s.group_collapsedGroups=[],a.$table.on("click toggleGroup keyup","tr.group-header",function(r){if(r.stopPropagation(),"keyup"!==r.type||13===r.which){var l,n,o,c=e(this),d=c.find(".group-name").text().toLowerCase()+c.attr("data-group-index");!r.shiftKey||"click"!==r.type&&"keyup"!==r.type||c.siblings(".group-header").trigger("toggleGroup"),c.toggleClass("collapsed"),c.nextUntil("tr.group-header").toggleClass("group-hidden",c.hasClass("collapsed")),l=c.hasClass("collapsed"),!l&&t.hasWidget(a.$table,"zebra")&&t.applyWidgetId(a.$table,"zebra"),
|
||
s.group_saveGroups&&t.storage&&(n=a.$table.find(".group-header"),s.group_collapsedGroups[s.group_collapsedGroup]||(s.group_collapsedGroups[s.group_collapsedGroup]=[]),l&&s.group_collapsedGroup?s.group_collapsedGroups[s.group_collapsedGroup].push(d):s.group_collapsedGroup&&(o=e.inArray(d,s.group_collapsedGroups[s.group_collapsedGroup]),o>-1&&s.group_collapsedGroups[s.group_collapsedGroup].splice(o,1)),t.storage(i,"tablesorter-groups",s.group_collapsedGroups))}})),e(s.group_saveReset).on("click",function(){r.clearSavedGroups(i)}),a.$table.on("pagerChange.tsgrouping",function(){r.update(i)})},clearSavedGroups:function(e){e&&t.storage&&(t.storage(e,"tablesorter-groups",""),r.update(e))}};t.addWidget({id:"group",priority:100,options:{group_collapsible:!0,group_collapsed:!1,group_saveGroups:!0,group_saveReset:null,group_count:" ({num})",group_separator:"-",group_formatter:null,group_callback:null,group_complete:"groupingComplete",group_forceColumn:[],group_enforceSort:!0,group_checkbox:["checked","unchecked"],group_months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],group_week:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],group_time:["AM","PM"],group_time24Hour:!1,group_dateInvalid:"Invalid Date",group_dateString:function(e){return e.toLocaleString()}},init:function(e,t,i,a){r.bindEvents(e,i,a)},format:function(e,t,i){r.update(e)},remove:function(e,t,r){t.$table.off("click","tr.group-header").off("pagerChange.tsgrouping").find(".group-hidden").removeClass("group-hidden").end().find("tr.group-header").remove()}})}(jQuery),!function(e){"use strict";var t=e.tablesorter||{};t.themes={bootstrap:{table:"table table-bordered table-striped",caption:"caption",header:"bootstrap-header",sortNone:"",sortAsc:"",sortDesc:"",active:"",hover:"",icons:"",iconSortNone:"bootstrap-icon-unsorted",iconSortAsc:"icon-chevron-up glyphicon glyphicon-chevron-up",iconSortDesc:"icon-chevron-down glyphicon glyphicon-chevron-down",filterRow:"",footerRow:"",footerCells:"",even:"",odd:""},jui:{table:"ui-widget ui-widget-content ui-corner-all",caption:"ui-widget-content",header:"ui-widget-header ui-corner-all ui-state-default",sortNone:"",sortAsc:"",sortDesc:"",active:"ui-state-active",hover:"ui-state-hover",icons:"ui-icon",iconSortNone:"ui-icon-carat-2-n-s ui-icon-caret-2-n-s",iconSortAsc:"ui-icon-carat-1-n ui-icon-caret-1-n",iconSortDesc:"ui-icon-carat-1-s ui-icon-caret-1-s",filterRow:"",footerRow:"",footerCells:"",even:"ui-widget-content",odd:"ui-state-default"}},e.extend(t.css,{wrapper:"tablesorter-wrapper"}),t.addWidget({id:"uitheme",priority:10,format:function(r,i,a){var s,l,n,o,c,d,f,u,p,g,h,m,b,y=t.themes,w=i.$table.add(e(i.namespace+"_extra_table")),v=i.$headers.add(e(i.namespace+"_extra_headers")),_=i.theme||"jui",x=y[_]||{},C=e.trim([x.sortNone,x.sortDesc,x.sortAsc,x.active].join(" ")),$=e.trim([x.iconSortNone,x.iconSortDesc,x.iconSortAsc].join(" "));for(i.debug&&(c=new Date),w.hasClass("tablesorter-"+_)&&i.theme===i.appliedTheme&&a.uitheme_applied||(a.uitheme_applied=!0,g=y[i.appliedTheme]||{},b=!e.isEmptyObject(g),h=b?[g.sortNone,g.sortDesc,g.sortAsc,g.active].join(" "):"",m=b?[g.iconSortNone,g.iconSortDesc,g.iconSortAsc].join(" "):"",b&&(a.zebra[0]=e.trim(" "+a.zebra[0].replace(" "+g.even,"")),a.zebra[1]=e.trim(" "+a.zebra[1].replace(" "+g.odd,"")),i.$tbodies.children().removeClass([g.even,g.odd].join(" "))),x.even&&(a.zebra[0]+=" "+x.even),x.odd&&(a.zebra[1]+=" "+x.odd),w.children("caption").removeClass(g.caption||"").addClass(x.caption),u=w.removeClass((i.appliedTheme?"tablesorter-"+(i.appliedTheme||""):"")+" "+(g.table||"")).addClass("tablesorter-"+_+" "+(x.table||"")).children("tfoot"),i.appliedTheme=i.theme,u.length&&u.children("tr").removeClass(g.footerRow||"").addClass(x.footerRow).children("th, td").removeClass(g.footerCells||"").addClass(x.footerCells),v.removeClass((b?[g.header,g.hover,h].join(" "):"")||"").addClass(x.header).not(".sorter-false").unbind("mouseenter.tsuitheme mouseleave.tsuitheme").bind("mouseenter.tsuitheme mouseleave.tsuitheme",function(t){e(this)["mouseenter"===t.type?"addClass":"removeClass"](x.hover||"")}),v.each(function(){var r=e(this);r.find("."+t.css.wrapper).length||r.wrapInner('<div class="'+t.css.wrapper+'" style="position:relative;height:100%;width:100%"></div>')}),i.cssIcon&&v.find("."+t.css.icon).removeClass(b?[g.icons,m].join(" "):"").addClass(x.icons||""),t.hasWidget(i.table,"filter")&&(l=function(){w.children("thead").children("."+t.css.filterRow).removeClass(b?g.filterRow||"":"").addClass(x.filterRow||"")},a.filter_initialized?l():w.one("filterInit",function(){l()}))),s=0;s<i.columns;s++)d=i.$headers.add(e(i.namespace+"_extra_headers")).not(".sorter-false").filter('[data-column="'+s+'"]'),f=t.css.icon?d.find("."+t.css.icon):e(),p=v.not(".sorter-false").filter('[data-column="'+s+'"]:last'),p.length&&(d.removeClass(C),f.removeClass($),p[0].sortDisabled?f.removeClass(x.icons||""):(n=x.sortNone,o=x.iconSortNone,p.hasClass(t.css.sortAsc)?(n=[x.sortAsc,x.active].join(" "),o=x.iconSortAsc):p.hasClass(t.css.sortDesc)&&(n=[x.sortDesc,x.active].join(" "),o=x.iconSortDesc),d.addClass(n),f.addClass(o||"")));i.debug&&void 0},remove:function(e,r,i,a){if(i.uitheme_applied){var s=r.$table,l=r.appliedTheme||"jui",n=t.themes[l]||t.themes.jui,o=s.children("thead").children(),c=n.sortNone+" "+n.sortDesc+" "+n.sortAsc,d=n.iconSortNone+" "+n.iconSortDesc+" "+n.iconSortAsc;s.removeClass("tablesorter-"+l+" "+n.table),i.uitheme_applied=!1,a||(s.find(t.css.header).removeClass(n.header),o.unbind("mouseenter.tsuitheme mouseleave.tsuitheme").removeClass(n.hover+" "+c+" "+n.active).filter("."+t.css.filterRow).removeClass(n.filterRow),o.find("."+t.css.icon).removeClass(n.icons+" "+d))}}})}(jQuery),!function(e){"use strict";var t,r,i=e.tablesorter||{},a=i.css,s=i.keyCodes;e.extend(a,{filterRow:"tablesorter-filter-row",filter:"tablesorter-filter",filterDisabled:"disabled",filterRowHide:"hideme"}),e.extend(s,{backSpace:8,escape:27,space:32,left:37,down:40}),i.addWidget({id:"filter",priority:50,options:{filter_cellFilter:"",filter_childRows:!1,filter_childByColumn:!1,filter_childWithSibs:!0,filter_columnAnyMatch:!0,filter_columnFilters:!0,filter_cssFilter:"",filter_defaultAttrib:"data-value",filter_defaultFilter:{},filter_excludeFilter:{},filter_external:"",filter_filteredRow:"filtered",filter_formatter:null,filter_functions:null,filter_hideEmpty:!0,filter_hideFilters:!1,filter_ignoreCase:!0,filter_liveSearch:!0,filter_matchType:{input:"exact",select:"exact"},filter_onlyAvail:"filter-onlyAvail",filter_placeholder:{search:"",select:""},filter_reset:null,filter_resetOnEsc:!0,filter_saveFilters:!1,filter_searchDelay:300,filter_searchFiltered:!0,filter_selectSource:null,filter_selectSourceSeparator:"|",filter_serversideFiltering:!1,filter_startsWith:!1,filter_useParsedData:!1},format:function(e,r,i){r.$table.hasClass("hasFilters")||t.init(e,r,i)},remove:function(t,r,s,l){var n,o,c=r.$table,d=r.$tbodies,f="addRows updateCell update updateRows updateComplete appendCache filterReset filterEnd search ".split(" ").join(r.namespace+"filter ");if(c.removeClass("hasFilters").unbind(f.replace(i.regex.spaces," ")).find("."+a.filterRow).remove(),s.filter_initialized=!1,!l){for(n=0;n<d.length;n++)o=i.processTbody(t,d.eq(n),!0),o.children().removeClass(s.filter_filteredRow).show(),i.processTbody(t,o,!1);s.filter_reset&&e(document).undelegate(s.filter_reset,"click"+r.namespace+"filter")}}}),t=i.filter={regex:{regex:/^\/((?:\\\/|[^\/])+)\/([migyu]{0,5})?$/,child:/tablesorter-childRow/,filtered:/filtered/,type:/undefined|number/,exact:/(^[\"\'=]+)|([\"\'=]+$)/g,operators:/[<>=]/g,query:"(q|query)",wild01:/\?/g,wild0More:/\*/g,quote:/\"/g,isNeg1:/(>=?\s*-\d)/,isNeg2:/(<=?\s*\d)/},types:{or:function(e,i,a){if((r.orTest.test(i.iFilter)||r.orSplit.test(i.filter))&&!r.regex.test(i.filter)){var s,l,n,o,c=p.extend({},i),d=i.filter.split(r.orSplit),f=i.iFilter.split(r.orSplit),u=d.length;for(s=0;s<u;s++){c.nestedFilters=!0,c.filter=""+(t.parseFilter(e,d[s],i)||""),c.iFilter=""+(t.parseFilter(e,f[s],i)||""),n="("+(t.parseFilter(e,c.filter,i)||"")+")";try{if(o=new RegExp(i.isMatch?n:"^"+n+"$",e.widgetOptions.filter_ignoreCase?"i":""),l=o.test(c.exact)||t.processTypes(e,c,a))return l}catch(p){return null}}return l||!1}return null},and:function(e,i,a){if(r.andTest.test(i.filter)){var s,l,n,o,c,d=g.extend({},i),f=i.filter.split(r.andSplit),u=i.iFilter.split(r.andSplit),p=f.length;for(s=0;s<p;s++){d.nestedFilters=!0,d.filter=""+(t.parseFilter(e,f[s],i)||""),d.iFilter=""+(t.parseFilter(e,u[s],i)||""),o=("("+(t.parseFilter(e,d.filter,i)||"")+")").replace(r.wild01,"\\S{1}").replace(r.wild0More,"\\S*");try{c=new RegExp(i.isMatch?o:"^"+o+"$",e.widgetOptions.filter_ignoreCase?"i":""),n=c.test(d.exact)||t.processTypes(e,d,a),l=0===s?n:l&&n}catch(g){return null}}return l||!1}return null},regex:function(e,t){if(r.regex.test(t.filter)){var i,a=t.filter_regexCache[t.index]||r.regex.exec(t.filter),s=a instanceof RegExp;try{s||(t.filter_regexCache[t.index]=a=new RegExp(a[1],a[2])),i=a.test(t.exact)}catch(e){i=!1}return i}return null},operators:function(a,s){if(r.operTest.test(s.iFilter)&&""!==s.iExact){var l,n,o,c=a.table,d=s.parsed[s.index],f=i.formatFloat(s.iFilter.replace(r.operators,""),c),u=a.parsers[s.index]||{},p=f;return(d||"numeric"===u.type)&&(o=e.trim(""+s.iFilter.replace(r.operators,"")),n=t.parseFilter(a,o,s,!0),f="number"!=typeof n||""===n||isNaN(n)?f:n),!d&&"numeric"!==u.type||isNaN(f)||"undefined"==typeof s.cache?(o=isNaN(s.iExact)?s.iExact.replace(i.regex.nondigit,""):s.iExact,l=i.formatFloat(o,c)):l=s.cache,r.gtTest.test(s.iFilter)?n=r.gteTest.test(s.iFilter)?l>=f:l>f:r.ltTest.test(s.iFilter)&&(n=r.lteTest.test(s.iFilter)?l<=f:l<f),n||""!==p||(n=!0),n}return null},notMatch:function(i,a){if(r.notTest.test(a.iFilter)){var s,l=a.iFilter.replace("!",""),n=t.parseFilter(i,l,a)||"";return r.exact.test(n)?(n=n.replace(r.exact,""),""===n||e.trim(n)!==a.iExact):(s=a.iExact.search(e.trim(n)),""===n||(a.anyMatch?s<0:!(i.widgetOptions.filter_startsWith?0===s:s>=0)))}return null},exact:function(i,a){if(r.exact.test(a.iFilter)){var s=a.iFilter.replace(r.exact,""),l=t.parseFilter(i,s,a)||"";return a.anyMatch?e.inArray(l,a.rowArray)>=0:l==a.iExact}return null},range:function(e,a){if(r.toTest.test(a.iFilter)){var s,l,n,o,c=e.table,d=a.index,f=a.parsed[d],u=a.iFilter.split(r.toSplit);return l=u[0].replace(i.regex.nondigit,"")||"",n=i.formatFloat(t.parseFilter(e,l,a),c),l=u[1].replace(i.regex.nondigit,"")||"",o=i.formatFloat(t.parseFilter(e,l,a),c),(f||"numeric"===e.parsers[d].type)&&(s=e.parsers[d].format(""+u[0],c,e.$headers.eq(d),d),n=""===s||isNaN(s)?n:s,s=e.parsers[d].format(""+u[1],c,e.$headers.eq(d),d),o=""===s||isNaN(s)?o:s),!f&&"numeric"!==e.parsers[d].type||isNaN(n)||isNaN(o)?(l=isNaN(a.iExact)?a.iExact.replace(i.regex.nondigit,""):a.iExact,s=i.formatFloat(l,c)):s=a.cache,n>o&&(l=n,n=o,o=l),s>=n&&s<=o||""===n||""===o}return null},wild:function(e,i){if(r.wildOrTest.test(i.iFilter)){var a=""+(t.parseFilter(e,i.iFilter,i)||"");!r.wildTest.test(a)&&i.nestedFilters&&(a=i.isMatch?a:"^("+a+")$");try{return new RegExp(a.replace(r.wild01,"\\S{1}").replace(r.wild0More,"\\S*"),e.widgetOptions.filter_ignoreCase?"i":"").test(i.exact)}catch(e){return null}}return null},fuzzy:function(e,i){if(r.fuzzyTest.test(i.iFilter)){var a,s=0,l=i.iExact.length,n=i.iFilter.slice(1),o=t.parseFilter(e,n,i)||"";for(a=0;a<l;a++)i.iExact[a]===o[s]&&(s+=1);return s===o.length}return null}},init:function(s){i.language=e.extend(!0,{},{to:"to",or:"or",and:"and"},i.language);var l,n,o,c,d,f,u,p,g=s.config,h=g.widgetOptions;if(g.$table.addClass("hasFilters"),g.lastSearch=[],h.filter_searchTimer=null,h.filter_initTimer=null,h.filter_formatterCount=0,h.filter_formatterInit=[],h.filter_anyColumnSelector='[data-column="all"],[data-column="any"]',h.filter_multipleColumnSelector='[data-column*="-"],[data-column*=","]',f="\\{"+r.query+"\\}",e.extend(r,{child:new RegExp(g.cssChildRow),filtered:new RegExp(h.filter_filteredRow),alreadyFiltered:new RegExp("(\\s+("+i.language.or+"|-|"+i.language.to+")\\s+)","i"),toTest:new RegExp("\\s+(-|"+i.language.to+")\\s+","i"),toSplit:new RegExp("(?:\\s+(?:-|"+i.language.to+")\\s+)","gi"),andTest:new RegExp("\\s+("+i.language.and+"|&&)\\s+","i"),andSplit:new RegExp("(?:\\s+(?:"+i.language.and+"|&&)\\s+)","gi"),orTest:new RegExp("(\\||\\s+"+i.language.or+"\\s+)","i"),orSplit:new RegExp("(?:\\s+(?:"+i.language.or+")\\s+|\\|)","gi"),iQuery:new RegExp(f,"i"),igQuery:new RegExp(f,"ig"),operTest:/^[<>]=?/,gtTest:/>/,gteTest:/>=/,ltTest:/</,lteTest:/<=/,notTest:/^\!/,wildOrTest:/[\?\*\|]/,wildTest:/\?\*/,fuzzyTest:/^~/,exactTest:/[=\"\|!]/}),f=g.$headers.filter(".filter-false, .parser-false").length,h.filter_columnFilters!==!1&&f!==g.$headers.length&&t.buildRow(s,g,h),o="addRows updateCell update updateRows updateComplete appendCache filterReset "+"filterResetSaved filterEnd search ".split(" ").join(g.namespace+"filter "),g.$table.bind(o,function(r,l){return f=h.filter_hideEmpty&&e.isEmptyObject(g.cache)&&!(g.delayInit&&"appendCache"===r.type),g.$table.find("."+a.filterRow).toggleClass(h.filter_filteredRow,f),/(search|filter)/.test(r.type)||(r.stopPropagation(),t.buildDefault(s,!0)),"filterReset"===r.type?(g.$table.find("."+a.filter).add(h.filter_$externalFilters).val(""),t.searching(s,[])):"filterResetSaved"===r.type?i.storage(s,"tablesorter-filters",""):"filterEnd"===r.type?t.buildDefault(s,!0):(l="search"===r.type?l:"updateComplete"===r.type?g.$table.data("lastSearch"):"",/(update|add)/.test(r.type)&&"updateComplete"!==r.type&&(g.lastCombinedFilter=null,g.lastSearch=[],setTimeout(function(){g.$table.triggerHandler("filterFomatterUpdate")},100)),t.searching(s,l,!0)),!1}),h.filter_reset&&(h.filter_reset instanceof e?h.filter_reset.click(function(){g.$table.triggerHandler("filterReset")}):e(h.filter_reset).length&&e(document).undelegate(h.filter_reset,"click"+g.namespace+"filter").delegate(h.filter_reset,"click"+g.namespace+"filter",function(){g.$table.triggerHandler("filterReset")})),h.filter_functions)for(d=0;d<g.columns;d++)if(u=i.getColumnData(s,h.filter_functions,d))if(c=g.$headerIndexed[d].removeClass("filter-select"),p=!(c.hasClass("filter-false")||c.hasClass("parser-false")),l="",u===!0&&p)t.buildSelect(s,d);else if("object"==typeof u&&p){for(n in u)"string"==typeof n&&(l+=""===l?'<option value="">'+(c.data("placeholder")||c.attr("data-placeholder")||h.filter_placeholder.select||"")+"</option>":"",f=n,o=n,n.indexOf(h.filter_selectSourceSeparator)>=0&&(f=n.split(h.filter_selectSourceSeparator),o=f[1],f=f[0]),l+="<option "+(o===f?"":'data-function-name="'+n+'" ')+'value="'+f+'">'+o+"</option>");g.$table.find("thead").find("select."+a.filter+'[data-column="'+d+'"]').append(l),o=h.filter_selectSource,u="function"==typeof o||i.getColumnData(s,o,d),u&&t.buildSelect(g.table,d,"",!0,c.hasClass(h.filter_onlyAvail))}t.buildDefault(s,!0),t.bindSearch(s,g.$table.find("."+a.filter),!0),h.filter_external&&t.bindSearch(s,h.filter_external),h.filter_hideFilters&&t.hideFilters(g),g.showProcessing&&(o="filterStart filterEnd ".split(" ").join(g.namespace+"filter "),g.$table.unbind(o.replace(i.regex.spaces," ")).bind(o,function(t,r){c=r?g.$table.find("."+a.header).filter("[data-column]").filter(function(){return""!==r[e(this).data("column")]}):"",i.isProcessing(s,"filterStart"===t.type,r?c:"")})),g.filteredRows=g.totalRows,o="tablesorter-initialized pagerBeforeInitialized ".split(" ").join(g.namespace+"filter "),g.$table.unbind(o.replace(i.regex.spaces," ")).bind(o,function(){t.completeInit(this)}),g.pager&&g.pager.initialized&&!h.filter_initialized?(g.$table.triggerHandler("filterFomatterUpdate"),setTimeout(function(){t.filterInitComplete(g)},100)):h.filter_initialized||t.completeInit(s)},completeInit:function(e){var r=e.config,a=r.widgetOptions,s=t.setDefaults(e,r,a)||[];s.length&&(r.delayInit&&""===s.join("")||i.setFilters(e,s,!0)),r.$table.triggerHandler("filterFomatterUpdate"),setTimeout(function(){a.filter_initialized||t.filterInitComplete(r)},100)},formatterUpdated:function(e,t){var r=e&&e.closest("table")[0].config.widgetOptions;r&&!r.filter_initialized&&(r.filter_formatterInit[t]=1)},filterInitComplete:function(r){var i,a,s=r.widgetOptions,l=0,n=function(){s.filter_initialized=!0,r.lastSearch=r.$table.data("lastSearch"),r.$table.triggerHandler("filterInit",r),t.findRows(r.table,r.lastSearch||[])};if(e.isEmptyObject(s.filter_formatter))n();else{for(a=s.filter_formatterInit.length,i=0;i<a;i++)1===s.filter_formatterInit[i]&&l++;clearTimeout(s.filter_initTimer),s.filter_initialized||l!==s.filter_formatterCount?s.filter_initialized||(s.filter_initTimer=setTimeout(function(){n()},500)):n()}},processFilters:function(e,t){var r,i=[],a=t?encodeURIComponent:decodeURIComponent,s=e.length;for(r=0;r<s;r++)e[r]&&(i[r]=a(e[r]));return i},setDefaults:function(r,a,s){var l,n,o,c,d,f=i.getFilters(r)||[];if(s.filter_saveFilters&&i.storage&&(n=i.storage(r,"tablesorter-filters")||[],l=e.isArray(n),l&&""===n.join("")||!l||(f=t.processFilters(n))),""===f.join(""))for(d=a.$headers.add(s.filter_$externalFilters).filter("["+s.filter_defaultAttrib+"]"),o=0;o<=a.columns;o++)c=o===a.columns?"all":o,f[o]=d.filter('[data-column="'+c+'"]').attr(s.filter_defaultAttrib)||f[o]||"";return a.$table.data("lastSearch",f),f},parseFilter:function(e,t,r,i){return i||r.parsed[r.index]?e.parsers[r.index].format(t,e.table,[],r.index):t},buildRow:function(r,s,l){var n,o,c,d,f,u,p,g,h,m=l.filter_cellFilter,b=s.columns,y=e.isArray(m),w='<tr role="row" class="'+a.filterRow+" "+s.cssIgnoreRow+'">';for(c=0;c<b;c++)s.$headerIndexed[c].length&&(h=s.$headerIndexed[c]&&s.$headerIndexed[c][0].colSpan||0,w+=h>1?'<td data-column="'+c+"-"+(c+h-1)+'" colspan="'+h+'"':'<td data-column="'+c+'"',w+=y?m[c]?' class="'+m[c]+'"':"":""!==m?' class="'+m+'"':"",w+="></td>");for(s.$filters=e(w+="</tr>").appendTo(s.$table.children("thead").eq(0)).children("td"),c=0;c<b;c++)u=!1,d=s.$headerIndexed[c],d&&d.length&&(n=t.getColumnElm(s,s.$filters,c),g=i.getColumnData(r,l.filter_functions,c),f=l.filter_functions&&g&&"function"!=typeof g||d.hasClass("filter-select"),o=i.getColumnData(r,s.headers,c),u="false"===i.getData(d[0],o,"filter")||"false"===i.getData(d[0],o,"parser"),f?w=e("<select>").appendTo(n):(g=i.getColumnData(r,l.filter_formatter,c),g?(l.filter_formatterCount++,w=g(n,c),w&&0===w.length&&(w=n.children("input")),w&&(0===w.parent().length||w.parent().length&&w.parent()[0]!==n[0])&&n.append(w)):w=e('<input type="search">').appendTo(n),w&&(h=d.data("placeholder")||d.attr("data-placeholder")||l.filter_placeholder.search||"",w.attr("placeholder",h))),w&&(p=(e.isArray(l.filter_cssFilter)?"undefined"!=typeof l.filter_cssFilter[c]?l.filter_cssFilter[c]||"":"":l.filter_cssFilter)||"",w.addClass(a.filter+" "+p).attr("data-column",n.attr("data-column")),u&&(w.attr("placeholder","").addClass(a.filterDisabled)[0].disabled=!0)))},bindSearch:function(r,a,l){if(r=e(r)[0],a=e(a),a.length){var n,o=r.config,c=o.widgetOptions,d=o.namespace+"filter",f=c.filter_$externalFilters;l!==!0&&(n=c.filter_anyColumnSelector+","+c.filter_multipleColumnSelector,c.filter_$anyMatch=a.filter(n),f&&f.length?c.filter_$externalFilters=c.filter_$externalFilters.add(a):c.filter_$externalFilters=a,i.setFilters(r,o.$table.data("lastSearch")||[],l===!1)),n="keypress keyup keydown search change input ".split(" ").join(d+" "),a.attr("data-lastSearchTime",(new Date).getTime()).unbind(n.replace(i.regex.spaces," ")).bind("keydown"+d,function(e){if(e.which===s.escape&&!r.config.widgetOptions.filter_resetOnEsc)return!1}).bind("keyup"+d,function(a){c=r.config.widgetOptions;var l=parseInt(e(this).attr("data-column"),10),n="boolean"==typeof c.filter_liveSearch?c.filter_liveSearch:i.getColumnData(r,c.filter_liveSearch,l);if("undefined"==typeof n&&(n=c.filter_liveSearch.fallback||!1),e(this).attr("data-lastSearchTime",(new Date).getTime()),a.which===s.escape)this.value=c.filter_resetOnEsc?"":o.lastSearch[l];else{if(n===!1)return;if(""!==this.value&&("number"==typeof n&&this.value.length<n||a.which!==s.enter&&a.which!==s.backSpace&&(a.which<s.space||a.which>=s.left&&a.which<=s.down)))return}t.searching(r,!0,!0,l)}).bind("search change keypress input ".split(" ").join(d+" "),function(a){var l=parseInt(e(this).attr("data-column"),10),n="boolean"==typeof c.filter_liveSearch?c.filter_liveSearch:i.getColumnData(r,c.filter_liveSearch,l);!r.config.widgetOptions.filter_initialized||a.which!==s.enter&&"search"!==a.type&&("change"!==a.type&&"input"!==a.type||n!==!0||this.value===o.lastSearch[l])||(a.preventDefault(),e(this).attr("data-lastSearchTime",(new Date).getTime()),t.searching(r,"keypress"!==a.type,!0,l))})}},searching:function(e,r,a,s){var l,n=e.config.widgetOptions;"undefined"==typeof s?l=!1:(l="boolean"==typeof n.filter_liveSearch?n.filter_liveSearch:i.getColumnData(e,n.filter_liveSearch,s),"undefined"==typeof l&&(l=n.filter_liveSearch.fallback||!1)),clearTimeout(n.filter_searchTimer),"undefined"==typeof r||r===!0?n.filter_searchTimer=setTimeout(function(){t.checkFilters(e,r,a)},l?n.filter_searchDelay:10):t.checkFilters(e,r,a)},checkFilters:function(r,s,l){var n=r.config,o=n.widgetOptions,c=e.isArray(s),d=c?s:i.getFilters(r,!0),f=(d||[]).join("");return e.isEmptyObject(n.cache)?void(n.delayInit&&(!n.pager||n.pager&&n.pager.initialized)&&i.updateCache(n,function(){t.checkFilters(r,!1,l)})):(c&&(i.setFilters(r,d,!1,l!==!0),o.filter_initialized||(n.lastCombinedFilter="")),o.filter_hideFilters&&n.$table.find("."+a.filterRow).triggerHandler(t.hideFiltersCheck(n)?"mouseleave":"mouseenter"),n.lastCombinedFilter!==f||s===!1?(s===!1&&(n.lastCombinedFilter=null,n.lastSearch=[]),d=d||[],d=Array.prototype.map?d.map(String):d.join("<22>").split("<22>"),o.filter_initialized&&n.$table.triggerHandler("filterStart",[d]),n.showProcessing?void setTimeout(function(){return t.findRows(r,d,f),!1},30):(t.findRows(r,d,f),!1)):void 0)},hideFiltersCheck:function(e){if("function"==typeof e.widgetOptions.filter_hideFilters){var t=e.widgetOptions.filter_hideFilters(e);if("boolean"==typeof t)return t}return""===i.getFilters(e.$table).join("")},hideFilters:function(r,i){var s;(i||r.$table).find("."+a.filterRow).addClass(a.filterRowHide).bind("mouseenter mouseleave",function(i){var l=i,n=e(this);clearTimeout(s),s=setTimeout(function(){/enter|over/.test(l.type)?n.removeClass(a.filterRowHide):e(document.activeElement).closest("tr")[0]!==n[0]&&n.toggleClass(a.filterRowHide,t.hideFiltersCheck(r))},200)}).find("input, select").bind("focus blur",function(i){var l=i,n=e(this).closest("tr");clearTimeout(s),s=setTimeout(function(){clearTimeout(s),n.toggleClass(a.filterRowHide,t.hideFiltersCheck(r)&&"focus"!==l.type)},200)})},defaultFilter:function(t,i){if(""===t)return t;var a=r.iQuery,s=i.match(r.igQuery).length,l=s>1?e.trim(t).split(/\s/):[e.trim(t)],n=l.length-1,o=0,c=i;for(n<1&&s>1&&(l[1]=l[0]);a.test(c);)c=c.replace(a,l[o++]||""),a.test(c)&&o<n&&""!==(l[o]||"")&&(c=i.replace(a,c));return c},getLatestSearch:function(t){return t?t.sort(function(t,r){return e(r).attr("data-lastSearchTime")-e(t).attr("data-lastSearchTime")}):t||e()},findRange:function(e,t,r){var i,a,s,l,n,o,c,d,f,u=[];if(/^[0-9]+$/.test(t))return[parseInt(t,10)];if(!r&&/-/.test(t))for(a=t.match(/(\d+)\s*-\s*(\d+)/g),f=a?a.length:0,d=0;d<f;d++){for(s=a[d].split(/\s*-\s*/),l=parseInt(s[0],10)||0,n=parseInt(s[1],10)||e.columns-1,l>n&&(i=l,l=n,n=i),n>=e.columns&&(n=e.columns-1);l<=n;l++)u[u.length]=l;t=t.replace(a[d],"")}if(!r&&/,/.test(t))for(o=t.split(/\s*,\s*/),f=o.length,c=0;c<f;c++)""!==o[c]&&(d=parseInt(o[c],10),d<e.columns&&(u[u.length]=d));if(!u.length)for(d=0;d<e.columns;d++)u[u.length]=d;return u},getColumnElm:function(r,i,a){return i.filter(function(){var i=t.findRange(r,e(this).attr("data-column"));return e.inArray(a,i)>-1})},multipleColumns:function(r,i){var a=r.widgetOptions,s=a.filter_initialized||!i.filter(a.filter_anyColumnSelector).length,l=e.trim(t.getLatestSearch(i).attr("data-column")||"");return t.findRange(r,l,!s)},processTypes:function(r,i,a){var s,l=null,n=null;for(s in t.types)e.inArray(s,a.excludeMatch)<0&&null===n&&(n=t.types[s](r,i,a),null!==n&&(l=n));return l},matchType:function(e,t){var r,i=e.widgetOptions,s=e.$headerIndexed[t];return s.hasClass("filter-exact")?r=!1:s.hasClass("filter-match")?r=!0:(i.filter_columnFilters?s=e.$filters.find("."+a.filter).add(i.filter_$externalFilters).filter('[data-column="'+t+'"]'):i.filter_$externalFilters&&(s=i.filter_$externalFilters.filter('[data-column="'+t+'"]')),r=!!s.length&&"match"===e.widgetOptions.filter_matchType[(s[0].nodeName||"").toLowerCase()]),r},processRow:function(a,s,l){var n,o,c,d,f,u=a.widgetOptions,p=!0,g=u.filter_$anyMatch&&u.filter_$anyMatch.length,h=u.filter_$anyMatch&&u.filter_$anyMatch.length?t.multipleColumns(a,u.filter_$anyMatch):[];if(s.$cells=s.$row.children(),s.anyMatchFlag&&h.length>1||s.anyMatchFilter&&!g){if(s.anyMatch=!0,s.isMatch=!0,s.rowArray=s.$cells.map(function(t){if(e.inArray(t,h)>-1||s.anyMatchFilter&&!g)return s.parsed[t]?f=s.cacheArray[t]:(f=s.rawArray[t],f=e.trim(u.filter_ignoreCase?f.toLowerCase():f),a.sortLocaleCompare&&(f=i.replaceAccents(f))),f}).get(),s.filter=s.anyMatchFilter,s.iFilter=s.iAnyMatchFilter,s.exact=s.rowArray.join(" "),s.iExact=u.filter_ignoreCase?s.exact.toLowerCase():s.exact,s.cache=s.cacheArray.slice(0,-1).join(" "),l.excludeMatch=l.noAnyMatch,o=t.processTypes(a,s,l),null!==o)p=o;else if(u.filter_startsWith)for(p=!1,h=Math.min(a.columns,s.rowArray.length);!p&&h>0;)h--,p=p||0===s.rowArray[h].indexOf(s.iFilter);else p=(s.iExact+s.childRowText).indexOf(s.iFilter)>=0;if(s.anyMatch=!1,s.filters.join("")===s.filter)return p}for(h=0;h<a.columns;h++)s.filter=s.filters[h],s.index=h,l.excludeMatch=l.excludeFilter[h],s.filter&&(s.cache=s.cacheArray[h],n=s.parsed[h]?s.cache:s.rawArray[h]||"",s.exact=a.sortLocaleCompare?i.replaceAccents(n):n,s.iExact=!r.type.test(typeof s.exact)&&u.filter_ignoreCase?s.exact.toLowerCase():s.exact,s.isMatch=t.matchType(a,h),n=p,d=u.filter_columnFilters?a.$filters.add(u.filter_$externalFilters).filter('[data-column="'+h+'"]').find("select option:selected").attr("data-function-name")||"":"",a.sortLocaleCompare&&(s.filter=i.replaceAccents(s.filter)),u.filter_defaultFilter&&r.iQuery.test(l.defaultColFilter[h])&&(s.filter=t.defaultFilter(s.filter,l.defaultColFilter[h])),s.iFilter=u.filter_ignoreCase?(s.filter||"").toLowerCase():s.filter,c=l.functions[h],o=null,c&&(c===!0?o=s.isMatch?(""+s.iExact).search(s.iFilter)>=0:s.filter===s.exact:"function"==typeof c?o=c(s.exact,s.cache,s.filter,h,s.$row,a,s):"function"==typeof c[d||s.filter]&&(f=d||s.filter,o=c[f](s.exact,s.cache,s.filter,h,s.$row,a,s))),null===o?(o=t.processTypes(a,s,l),null!==o?n=o:(f=(s.iExact+s.childRowText).indexOf(t.parseFilter(a,s.iFilter,s)),n=!u.filter_startsWith&&f>=0||u.filter_startsWith&&0===f)):n=o,p=!!n&&p);return p},findRows:function(a,s,l){if(a.config.lastCombinedFilter!==l&&a.config.widgetOptions.filter_initialized){var n,o,c,d,f,u,p,g,h,m,b,y,w,v,_,x,C,$,S,F,R,T,z,I,A=e.extend([],s),D=a.config,k=D.widgetOptions,O={anyMatch:!1,filters:s,filter_regexCache:[]},E={noAnyMatch:["range","operators"],functions:[],excludeFilter:[],defaultColFilter:[],defaultAnyFilter:i.getColumnData(a,k.filter_defaultFilter,D.columns,!0)||""};for(O.parsed=[],h=0;h<D.columns;h++)O.parsed[h]=k.filter_useParsedData||D.parsers&&D.parsers[h]&&D.parsers[h].parsed||i.getData&&"parsed"===i.getData(D.$headerIndexed[h],i.getColumnData(a,D.headers,h),"filter")||D.$headerIndexed[h].hasClass("filter-parsed"),E.functions[h]=i.getColumnData(a,k.filter_functions,h)||D.$headerIndexed[h].hasClass("filter-select"),E.defaultColFilter[h]=i.getColumnData(a,k.filter_defaultFilter,h)||"",E.excludeFilter[h]=(i.getColumnData(a,k.filter_excludeFilter,h,!0)||"").split(/\s+/);for(D.debug&&(_=new Date),D.filteredRows=0,D.totalRows=0,l=(A||[]).join(""),p=0;p<D.$tbodies.length;p++){if(g=i.processTbody(a,D.$tbodies.eq(p),!0),h=D.columns,o=D.cache[p].normalized,d=e(e.map(o,function(e){return e[h].$row.get()})),""===l||k.filter_serversideFiltering)d.removeClass(k.filter_filteredRow).not("."+D.cssChildRow).css("display","");else{if(d=d.not("."+D.cssChildRow),n=d.length,(k.filter_$anyMatch&&k.filter_$anyMatch.length||"undefined"!=typeof s[D.columns])&&(O.anyMatchFlag=!0,O.anyMatchFilter=""+(s[D.columns]||k.filter_$anyMatch&&t.getLatestSearch(k.filter_$anyMatch).val()||""),k.filter_columnAnyMatch)){for(F=O.anyMatchFilter.split(r.andSplit),R=!1,C=0;C<F.length;C++)T=F[C].split(":"),T.length>1&&(isNaN(T[0])?e.each(D.headerContent,function(e,t){t.toLowerCase().indexOf(T[0])>-1&&(z=e,s[z]=T[1])}):z=parseInt(T[0],10)-1,z>=0&&z<D.columns&&(s[z]=T[1],F.splice(C,1),C--,R=!0));R&&(O.anyMatchFilter=F.join(" && "))}if(S=k.filter_searchFiltered,y=D.lastSearch||D.$table.data("lastSearch")||[],S)for(C=0;C<h+1;C++)x=s[C]||"",S||(C=h),S=S&&y.length&&0===x.indexOf(y[C]||"")&&!r.alreadyFiltered.test(x)&&!r.exactTest.test(x)&&!(r.isNeg1.test(x)||r.isNeg2.test(x))&&!(""!==x&&D.$filters&&D.$filters.filter('[data-column="'+C+'"]').find("select").length&&!t.matchType(D,C));for($=d.not("."+k.filter_filteredRow).length,S&&0===$&&(S=!1),D.debug&&void 0,O.anyMatchFlag&&(D.sortLocaleCompare&&(O.anyMatchFilter=i.replaceAccents(O.anyMatchFilter)),k.filter_defaultFilter&&r.iQuery.test(E.defaultAnyFilter)&&(O.anyMatchFilter=t.defaultFilter(O.anyMatchFilter,E.defaultAnyFilter),S=!1),O.iAnyMatchFilter=k.filter_ignoreCase&&D.ignoreCase?O.anyMatchFilter.toLowerCase():O.anyMatchFilter),u=0;u<n;u++)if(I=d[u].className,m=u&&r.child.test(I),!(m||S&&r.filtered.test(I))){if(O.$row=d.eq(u),O.rowIndex=u,O.cacheArray=o[u],c=O.cacheArray[D.columns],O.rawArray=c.raw,O.childRowText="",!k.filter_childByColumn){for(I="",b=c.child,C=0;C<b.length;C++)I+=" "+b[C].join(" ")||"";O.childRowText=k.filter_childRows?k.filter_ignoreCase?I.toLowerCase():I:""}if(w=!1,v=t.processRow(D,O,E),f=c.$row,x=!!v,b=c.$row.filter(":gt(0)"),k.filter_childRows&&b.length){if(k.filter_childByColumn)for(k.filter_childWithSibs||(b.addClass(k.filter_filteredRow),f=f.eq(0)),C=0;C<b.length;C++)O.$row=b.eq(C),O.cacheArray=c.child[C],O.rawArray=O.cacheArray,x=t.processRow(D,O,E),w=w||x,!k.filter_childWithSibs&&x&&b.eq(C).removeClass(k.filter_filteredRow);w=w||v}else w=x;f.toggleClass(k.filter_filteredRow,!w)[0].display=w?"":"none"}}D.filteredRows+=d.not("."+k.filter_filteredRow).length,D.totalRows+=d.length,i.processTbody(a,g,!1)}D.lastCombinedFilter=l,D.lastSearch=A,D.$table.data("lastSearch",A),k.filter_saveFilters&&i.storage&&i.storage(a,"tablesorter-filters",t.processFilters(A,!0)),D.debug&&void 0,k.filter_initialized&&(D.$table.triggerHandler("filterBeforeEnd",D),D.$table.triggerHandler("filterEnd",D)),setTimeout(function(){i.applyWidget(D.table)},0)}},getOptionSource:function(r,a,s){r=e(r)[0];var l=r.config,n=l.widgetOptions,o=!1,c=n.filter_selectSource,d=l.$table.data("lastSearch")||[],f="function"==typeof c||i.getColumnData(r,c,a);if(s&&""!==d[a]&&(s=!1),f===!0)o=c(r,a,s);else{if(f instanceof e||"string"===e.type(f)&&f.indexOf("</option>")>=0)return f;e.isArray(f)?o=f:"object"===e.type(c)&&f&&(o=f(r,a,s))}return o===!1&&(o=t.getOptions(r,a,s)),t.processOptions(r,a,o)},processOptions:function(t,r,a){if(!e.isArray(a))return!1;t=e(t)[0];var s,l,n,o,c,d,f=t.config,u="undefined"!=typeof r&&null!==r&&r>=0&&r<f.columns,p=!!u&&f.$headerIndexed[r].hasClass("filter-select-sort-desc"),g=[];if(a=e.grep(a,function(t,r){return!!t.text||e.inArray(t,a)===r}),u&&f.$headerIndexed[r].hasClass("filter-select-nosort"))return a;for(o=a.length,n=0;n<o;n++)l=a[n],d=l.text?l.text:l,c=(u&&f.parsers&&f.parsers.length&&f.parsers[r].format(d,t,[],r)||d).toString(),c=f.widgetOptions.filter_ignoreCase?c.toLowerCase():c,l.text?(l.parsed=c,g[g.length]=l):g[g.length]={text:l,parsed:c};for(s=f.textSorter||"",g.sort(function(e,a){var l=p?a.parsed:e.parsed,n=p?e.parsed:a.parsed;return u&&"function"==typeof s?s(l,n,!0,r,t):u&&"object"==typeof s&&s.hasOwnProperty(r)?s[r](l,n,!0,r,t):!i.sortNatural||i.sortNatural(l,n)}),a=[],o=g.length,n=0;n<o;n++)a[a.length]=g[n];
|
||
return a},getOptions:function(t,r,a){t=e(t)[0];var s,l,n,o,c,d,f,u,p=t.config,g=p.widgetOptions,h=[];for(l=0;l<p.$tbodies.length;l++)for(c=p.cache[l],n=p.cache[l].normalized.length,s=0;s<n;s++)if(o=c.row?c.row[s]:c.normalized[s][p.columns].$row[0],!a||!o.className.match(g.filter_filteredRow))if(g.filter_useParsedData||p.parsers[r].parsed||p.$headerIndexed[r].hasClass("filter-parsed")){if(h[h.length]=""+c.normalized[s][r],g.filter_childRows&&g.filter_childByColumn)for(u=c.normalized[s][p.columns].$row.length-1,d=0;d<u;d++)h[h.length]=""+c.normalized[s][p.columns].child[d][r]}else if(h[h.length]=c.normalized[s][p.columns].raw[r],g.filter_childRows&&g.filter_childByColumn)for(u=c.normalized[s][p.columns].$row.length,d=1;d<u;d++)f=c.normalized[s][p.columns].$row.eq(d).children().eq(r),h[h.length]=""+i.getElementText(p,f,r);return h},buildSelect:function(i,s,l,n,o){if(i=e(i)[0],s=parseInt(s,10),i.config.cache&&!e.isEmptyObject(i.config.cache)){var c,d,f,u,p,g,h,m=i.config,b=m.widgetOptions,y=m.$headerIndexed[s],w='<option value="">'+(y.data("placeholder")||y.attr("data-placeholder")||b.filter_placeholder.select||"")+"</option>",v=m.$table.find("thead").find("select."+a.filter+'[data-column="'+s+'"]').val();if("undefined"!=typeof l&&""!==l||(l=t.getOptionSource(i,s,o)),e.isArray(l)){for(c=0;c<l.length;c++)if(h=l[c],h.text){h["data-function-name"]="undefined"==typeof h.value?h.text:h.value,w+="<option";for(d in h)h.hasOwnProperty(d)&&"text"!==d&&(w+=" "+d+'="'+h[d]+'"');h.value||(w+=' value="'+h.text+'"'),w+=">"+h.text+"</option>"}else""+h!="[object Object]"&&(f=h=(""+h).replace(r.quote,"""),d=f,f.indexOf(b.filter_selectSourceSeparator)>=0&&(u=f.split(b.filter_selectSourceSeparator),d=u[0],f=u[1]),w+=""!==h?"<option "+(d===f?"":'data-function-name="'+h+'" ')+'value="'+d+'">'+f+"</option>":"");l=[]}p=(m.$filters?m.$filters:m.$table.children("thead")).find("."+a.filter),b.filter_$externalFilters&&(p=p&&p.length?p.add(b.filter_$externalFilters):b.filter_$externalFilters),g=p.filter('select[data-column="'+s+'"]'),g.length&&(g[n?"html":"append"](w),e.isArray(l)||g.append(l).val(v),g.val(v))}},buildDefault:function(e,r){var a,s,l,n=e.config,o=n.widgetOptions,c=n.columns;for(a=0;a<c;a++)s=n.$headerIndexed[a],l=!(s.hasClass("filter-false")||s.hasClass("parser-false")),(s.hasClass("filter-select")||i.getColumnData(e,o.filter_functions,a)===!0)&&l&&t.buildSelect(e,a,"",r,s.hasClass(o.filter_onlyAvail))}},r=t.regex,i.getFilters=function(r,i,s,l){var n,o,c,d,f=[],u=r?e(r)[0].config:"",p=u?u.widgetOptions:"";if(i!==!0&&p&&!p.filter_columnFilters||e.isArray(s)&&s.join("")===u.lastCombinedFilter)return e(r).data("lastSearch");if(u&&(u.$filters&&(o=u.$filters.find("."+a.filter)),p.filter_$externalFilters&&(o=o&&o.length?o.add(p.filter_$externalFilters):p.filter_$externalFilters),o&&o.length))for(f=s||[],n=0;n<u.columns+1;n++)d=n===u.columns?p.filter_anyColumnSelector+","+p.filter_multipleColumnSelector:'[data-column="'+n+'"]',c=o.filter(d),c.length&&(c=t.getLatestSearch(c),e.isArray(s)?(l&&c.length>1&&(c=c.slice(1)),n===u.columns&&(d=c.filter(p.filter_anyColumnSelector),c=d.length?d:c),c.val(s[n]).trigger("change"+u.namespace)):(f[n]=c.val()||"",n===u.columns?c.slice(1).filter('[data-column*="'+c.attr("data-column")+'"]').val(f[n]):c.slice(1).val(f[n])),n===u.columns&&c.length&&(p.filter_$anyMatch=c));return f},i.setFilters=function(r,a,s,l){var n=r?e(r)[0].config:"",o=i.getFilters(r,!0,a,l);return"undefined"==typeof s&&(s=!0),n&&s&&(n.lastCombinedFilter=null,n.lastSearch=[],t.searching(n.table,a,l),n.$table.triggerHandler("filterFomatterUpdate")),0!==o.length}}(jQuery);
|
||
//# sourceMappingURL=tablesorter.min.js.map
|