!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?'':"",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('
'+c+"
")),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;l0))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=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;d0&&(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&&x0)){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-1);return i}),i=i.not(".sorter-false").filter('[data-column="'+l[a][0]+'"]'+(1===n?":last":"")),i.length)){for(s=0;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;n0&&(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;o1))for(l=1;l=0)for(l=0;l1))for(l=1;la)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;nl)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=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'),i=o.$table.width(),s=o.$tbodies.find("tr:first").children(":visible"),l=s.length,n=0;n").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(''),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 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')}),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;s1)))for(u=1;u=]/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=f:l>f:r.ltTest.test(s.iFilter)&&(n=r.lteTest.test(s.iFilter)?l<=f:l=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]=?/,gtTest:/>/,gteTest:/>=/,ltTest:/'+(c.data("placeholder")||c.attr("data-placeholder")||h.filter_placeholder.select||"")+"":"",f=n,o=n,n.indexOf(h.filter_selectSourceSeparator)>=0&&(f=n.split(h.filter_selectSourceSeparator),o=f[1],f=f[0]),l+="");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';for(c=0;c1?'").appendTo(s.$table.children("thead").eq(0)).children("td"),c=0;c").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('').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=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("�").split("�"),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)&&on&&(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-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=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;h1&&(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")>=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'+(y.data("placeholder")||y.attr("data-placeholder")||b.filter_placeholder.select||"")+"",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"}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?"":"");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;a1&&(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=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('
'),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;ii.top&&c=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="";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('
').css({top:f}).insertBefore(c),l=0;l').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;r0){for(n.storedSizes[n.target]+=d,r.resizable.setWidth(n.$target,n.storedSizes[n.target],!0),s=0;s0?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-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,">");return''+(t.group_collapsible?"":"")+''+i+''},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-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('
')}),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=]/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=f:l>f:r.ltTest.test(s.iFilter)&&(n=r.lteTest.test(s.iFilter)?l<=f:l=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]=?/,gtTest:/>/,gteTest:/>=/,ltTest:/'+(c.data("placeholder")||c.attr("data-placeholder")||h.filter_placeholder.select||"")+"":"",f=n,o=n,n.indexOf(h.filter_selectSourceSeparator)>=0&&(f=n.split(h.filter_selectSourceSeparator),o=f[1],f=f[0]),l+="");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';for(c=0;c1?'").appendTo(s.$table.children("thead").eq(0)).children("td"),c=0;c").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('').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=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("�").split("�"),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)&&on&&(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-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=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;h1&&(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")>=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'+(y.data("placeholder")||y.attr("data-placeholder")||b.filter_placeholder.select||"")+"",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"}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?"":"");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;a1&&(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