/*!
   Copyright 2008-2019 SpryMedia Ltd.

 This source file is free software, available under the following license:
   MIT license - http://datatables.net/license

 This source file is distributed in the hope that it will be useful, but
 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.

 For details please refer to: http://www.datatables.net
 DataTables 1.10.20
 ©2008-2019 SpryMedia Ltd - datatables.net/license
*/
var $jscomp;($jscomp=$jscomp||{}).scope={},$jscomp.findInternal=function(t,e,n){t instanceof String&&(t=String(t));for(var a=t.length,s=0;s<a;s++){var r=t[s];if(e.call(n,r,s,t))return{i:s,v:r}}return{i:-1,v:void 0}},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},$jscomp.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:"undefined"!=typeof global&&null!=global?global:t},$jscomp.global=$jscomp.getGlobal(this),$jscomp.polyfill=function(t,e,n,a){if(e){for(n=$jscomp.global,t=t.split("."),a=0;a<t.length-1;a++){var s=t[a];s in n||(n[s]={}),n=n[s]}(e=e(a=n[t=t[t.length-1]]))!=a&&null!=e&&$jscomp.defineProperty(n,t,{configurable:!0,writable:!0,value:e})}},$jscomp.polyfill("Array.prototype.find",(function(t){return t||function(t,e){return $jscomp.findInternal(this,t,e).v}}),"es6","es3"),function(t){"function"==typeof define&&define.amd?define(["jquery"],(function(e){return t(e,window,document)})):"object"==typeof exports?module.exports=function(e,n){return e||(e=window),n||(n="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(n,e,e.document)}:t(jQuery,window,document)}((function(t,e,n,a){function s(e){var n,a,r={};t.each(e,(function(t,o){(n=t.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(n[1]+" ")&&(a=t.replace(n[0],n[2].toLowerCase()),r[a]=t,"o"===n[1]&&s(e[t]))})),e._hungarianMap=r}function r(e,n,o){var i;e._hungarianMap||s(e),t.each(n,(function(s,l){(i=e._hungarianMap[s])===a||!o&&n[i]!==a||("o"===i.charAt(0)?(n[i]||(n[i]={}),t.extend(!0,n[i],n[s]),r(e[i],n[i],o)):n[i]=n[s])}))}function o(t){var e=qt.defaults.oLanguage,n=e.sDecimal;if(n&&Ht(n),t){var a=t.sZeroRecords;!t.sEmptyTable&&a&&"No data available in table"===e.sEmptyTable&&It(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&a&&"Loading..."===e.sLoadingRecords&&It(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands),(t=t.sDecimal)&&n!==t&&Ht(t)}}function i(t){if(le(t,"ordering","bSort"),le(t,"orderMulti","bSortMulti"),le(t,"orderClasses","bSortClasses"),le(t,"orderCellsTop","bSortCellsTop"),le(t,"order","aaSorting"),le(t,"orderFixed","aaSortingFixed"),le(t,"paging","bPaginate"),le(t,"pagingType","sPaginationType"),le(t,"pageLength","iDisplayLength"),le(t,"searching","bFilter"),"boolean"==typeof t.sScrollX&&(t.sScrollX=t.sScrollX?"100%":""),"boolean"==typeof t.scrollX&&(t.scrollX=t.scrollX?"100%":""),t=t.aoSearchCols)for(var e=0,n=t.length;e<n;e++)t[e]&&r(qt.models.oSearch,t[e])}function l(e){le(e,"orderable","bSortable"),le(e,"orderData","aDataSort"),le(e,"orderSequence","asSorting"),le(e,"orderDataType","sortDataType");var n=e.aDataSort;"number"!=typeof n||t.isArray(n)||(e.aDataSort=[n])}function c(n){if(!qt.__browser){var a={};qt.__browser=a;var s=t("<div/>").css({position:"fixed",top:0,left:-1*t(e).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(t("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(t("<div/>").css({width:"100%",height:10}))).appendTo("body"),r=s.children(),o=r.children();a.barWidth=r[0].offsetWidth-r[0].clientWidth,a.bScrollOversize=100===o[0].offsetWidth&&100!==r[0].clientWidth,a.bScrollbarLeft=1!==Math.round(o.offset().left),a.bBounding=!!s[0].getBoundingClientRect().width,s.remove()}t.extend(n.oBrowser,qt.__browser),n.oScroll.iBarWidth=qt.__browser.barWidth}function u(t,e,n,s,r,o){var i=!1;if(n!==a){var l=n;i=!0}for(;s!==r;)t.hasOwnProperty(s)&&(l=i?e(l,t[s],s,t):t[s],i=!0,s+=o);return l}function d(e,a){var s=qt.defaults.column,r=e.aoColumns.length;s=t.extend({},qt.models.oColumn,s,{nTh:a||n.createElement("th"),sTitle:s.sTitle?s.sTitle:a?a.innerHTML:"",aDataSort:s.aDataSort?s.aDataSort:[r],mData:s.mData?s.mData:r,idx:r}),e.aoColumns.push(s),(s=e.aoPreSearchCols)[r]=t.extend({},qt.models.oSearch,s[r]),h(e,r,t(a).data())}function h(e,n,s){n=e.aoColumns[n];var o=e.oClasses,i=t(n.nTh);if(!n.sWidthOrig){n.sWidthOrig=i.attr("width")||null;var c=(i.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);c&&(n.sWidthOrig=c[1])}s!==a&&null!==s&&(l(s),r(qt.defaults.column,s,!0),s.mDataProp===a||s.mData||(s.mData=s.mDataProp),s.sType&&(n._sManualType=s.sType),s.className&&!s.sClass&&(s.sClass=s.className),s.sClass&&i.addClass(s.sClass),t.extend(n,s),It(n,s,"sWidth","sWidthOrig"),s.iDataSort!==a&&(n.aDataSort=[s.iDataSort]),It(n,s,"aDataSort"));var u=n.mData,d=x(u),h=n.mRender?x(n.mRender):null;s=function(t){return"string"==typeof t&&-1!==t.indexOf("@")},n._bAttrSrc=t.isPlainObject(u)&&(s(u.sort)||s(u.type)||s(u.filter)),n._setter=null,n.fnGetData=function(t,e,n){var s=d(t,e,a,n);return h&&e?h(s,e,t,n):s},n.fnSetData=function(t,e,n){return T(u)(t,e,n)},"number"!=typeof u&&(e._rowReadObject=!0),e.oFeatures.bSort||(n.bSortable=!1,i.addClass(o.sSortableNone)),e=-1!==t.inArray("asc",n.asSorting),s=-1!==t.inArray("desc",n.asSorting),n.bSortable&&(e||s)?e&&!s?(n.sSortingClass=o.sSortableAsc,n.sSortingClassJUI=o.sSortJUIAscAllowed):!e&&s?(n.sSortingClass=o.sSortableDesc,n.sSortingClassJUI=o.sSortJUIDescAllowed):(n.sSortingClass=o.sSortable,n.sSortingClassJUI=o.sSortJUI):(n.sSortingClass=o.sSortableNone,n.sSortingClassJUI="")}function f(t){if(!1!==t.oFeatures.bAutoWidth){var e=t.aoColumns;gt(t);for(var n=0,a=e.length;n<a;n++)e[n].nTh.style.width=e[n].sWidth}""===(e=t.oScroll).sY&&""===e.sX||ft(t),Ot(t,null,"column-sizing",[t])}function p(t,e){return"number"==typeof(t=b(t,"bVisible"))[e]?t[e]:null}function g(e,n){return e=b(e,"bVisible"),-1!==(n=t.inArray(n,e))?n:null}function m(e){var n=0;return t.each(e.aoColumns,(function(e,a){a.bVisible&&"none"!==t(a.nTh).css("display")&&n++})),n}function b(e,n){var a=[];return t.map(e.aoColumns,(function(t,e){t[n]&&a.push(e)})),a}function v(t){var e,n,s,r=t.aoColumns,o=t.aoData,i=qt.ext.type.detect,l=0;for(e=r.length;l<e;l++){var c=r[l],u=[];if(!c.sType&&c._sManualType)c.sType=c._sManualType;else if(!c.sType){var d=0;for(n=i.length;d<n;d++){var h=0;for(s=o.length;h<s;h++){u[h]===a&&(u[h]=_(t,h,l,"type"));var f=i[d](u[h],t);if(!f&&d!==i.length-1)break;if("html"===f)break}if(f){c.sType=f;break}}c.sType||(c.sType="string")}}}function y(e,n,s,r){var o,i,l,c=e.aoColumns;if(n)for(o=n.length-1;0<=o;o--){var u=n[o],h=u.targets!==a?u.targets:u.aTargets;t.isArray(h)||(h=[h]);var f=0;for(i=h.length;f<i;f++)if("number"==typeof h[f]&&0<=h[f]){for(;c.length<=h[f];)d(e);r(h[f],u)}else if("number"==typeof h[f]&&0>h[f])r(c.length+h[f],u);else if("string"==typeof h[f]){var p=0;for(l=c.length;p<l;p++)("_all"==h[f]||t(c[p].nTh).hasClass(h[f]))&&r(p,u)}}if(s)for(o=0,e=s.length;o<e;o++)r(o,s[o])}function S(e,n,s,r){var o=e.aoData.length,i=t.extend(!0,{},qt.models.oRow,{src:s?"dom":"data",idx:o});i._aData=n,e.aoData.push(i);for(var l=e.aoColumns,c=0,u=l.length;c<u;c++)l[c].sType=null;return e.aiDisplayMaster.push(o),(n=e.rowIdFn(n))!==a&&(e.aIds[n]=i),!s&&e.oFeatures.bDeferRender||F(e,o,s,r),o}function w(e,n){var a;return n instanceof t||(n=t(n)),n.map((function(t,n){return a=I(e,n),S(e,a.data,n,a.cells)}))}function _(t,e,n,s){var r=t.iDraw,o=t.aoColumns[n],i=t.aoData[e]._aData,l=o.sDefaultContent,c=o.fnGetData(i,s,{settings:t,row:e,col:n});if(c===a)return t.iDrawError!=r&&null===l&&(At(t,0,"Requested unknown parameter "+("function"==typeof o.mData?"{function}":"'"+o.mData+"'")+" for row "+e+", column "+n,4),t.iDrawError=r),l;if(c!==i&&null!==c||null===l||s===a){if("function"==typeof c)return c.call(i)}else c=l;return null===c&&"display"==s?"":c}function D(t,e,n,a){t.aoColumns[n].fnSetData(t.aoData[e]._aData,a,{settings:t,row:e,col:n})}function C(e){return t.map(e.match(/(\\.|[^\.])+/g)||[""],(function(t){return t.replace(/\\\./g,".")}))}function x(e){if(t.isPlainObject(e)){var n={};return t.each(e,(function(t,e){e&&(n[t]=x(e))})),function(t,e,s,r){var o=n[e]||n._;return o!==a?o(t,e,s,r):t}}if(null===e)return function(t){return t};if("function"==typeof e)return function(t,n,a,s){return e(t,n,a,s)};if("string"!=typeof e||-1===e.indexOf(".")&&-1===e.indexOf("[")&&-1===e.indexOf("("))return function(t,n){return t[e]};var s=function(e,n,r){if(""!==r)for(var o=C(r),i=0,l=o.length;i<l;i++){r=o[i].match(ce);var c=o[i].match(ue);if(r){if(o[i]=o[i].replace(ce,""),""!==o[i]&&(e=e[o[i]]),c=[],o.splice(0,i+1),o=o.join("."),t.isArray(e))for(i=0,l=e.length;i<l;i++)c.push(s(e[i],n,o));e=""===(e=r[0].substring(1,r[0].length-1))?c:c.join(e);break}if(c)o[i]=o[i].replace(ue,""),e=e[o[i]]();else{if(null===e||e[o[i]]===a)return a;e=e[o[i]]}}return e};return function(t,n){return s(t,n,e)}}function T(e){if(t.isPlainObject(e))return T(e._);if(null===e)return function(){};if("function"==typeof e)return function(t,n,a){e(t,"set",n,a)};if("string"!=typeof e||-1===e.indexOf(".")&&-1===e.indexOf("[")&&-1===e.indexOf("("))return function(t,n){t[e]=n};var n=function(e,s,r){for(var o,i,l=(r=C(r))[r.length-1],c=0,u=r.length-1;c<u;c++){if(o=r[c].match(ce),i=r[c].match(ue),o){if(r[c]=r[c].replace(ce,""),e[r[c]]=[],(l=r.slice()).splice(0,c+1),o=l.join("."),t.isArray(s))for(i=0,u=s.length;i<u;i++)n(l={},s[i],o),e[r[c]].push(l);else e[r[c]]=s;return}i&&(r[c]=r[c].replace(ue,""),e=e[r[c]](s)),null!==e[r[c]]&&e[r[c]]!==a||(e[r[c]]={}),e=e[r[c]]}l.match(ue)?e[l.replace(ue,"")](s):e[l.replace(ce,"")]=s};return function(t,a){return n(t,a,e)}}function P(t){return ae(t.aoData,"_aData")}function $(t){t.aoData.length=0,t.aiDisplayMaster.length=0,t.aiDisplay.length=0,t.aIds={}}function j(t,e,n){for(var s=-1,r=0,o=t.length;r<o;r++)t[r]==e?s=r:t[r]>e&&t[r]--;-1!=s&&n===a&&t.splice(s,1)}function A(t,e,n,s){var r,o=t.aoData[e],i=function(n,a){for(;n.childNodes.length;)n.removeChild(n.firstChild);n.innerHTML=_(t,e,a,"display")};if("dom"!==n&&(n&&"auto"!==n||"dom"!==o.src)){var l=o.anCells;if(l)if(s!==a)i(l[s],s);else for(n=0,r=l.length;n<r;n++)i(l[n],n)}else o._aData=I(t,o,s,s===a?a:o._aData).data;if(o._aSortData=null,o._aFilterData=null,i=t.aoColumns,s!==a)i[s].sType=null;else{for(n=0,r=i.length;n<r;n++)i[n].sType=null;R(t,o)}}function I(e,n,s,r){var o,i,l=[],c=n.firstChild,u=0,d=e.aoColumns,h=e._rowReadObject;r=r!==a?r:h?{}:[];var f=function(t,e){if("string"==typeof t){var n=t.indexOf("@");-1!==n&&(n=t.substring(n+1),T(t)(r,e.getAttribute(n)))}},p=function(e){s!==a&&s!==u||(o=d[u],i=t.trim(e.innerHTML),o&&o._bAttrSrc?(T(o.mData._)(r,i),f(o.mData.sort,e),f(o.mData.type,e),f(o.mData.filter,e)):h?(o._setter||(o._setter=T(o.mData)),o._setter(r,i)):r[u]=i),u++};if(c)for(;c;){var g=c.nodeName.toUpperCase();"TD"!=g&&"TH"!=g||(p(c),l.push(c)),c=c.nextSibling}else for(c=0,g=(l=n.anCells).length;c<g;c++)p(l[c]);return(n=n.firstChild?n:n.nTr)&&(n=n.getAttribute("id"))&&T(e.rowId)(r,n),{data:r,cells:l}}function F(e,a,s,r){var o,i,l=e.aoData[a],c=l._aData,u=[];if(null===l.nTr){var d=s||n.createElement("tr");l.nTr=d,l.anCells=u,d._DT_RowIndex=a,R(e,l);var h=0;for(o=e.aoColumns.length;h<o;h++){var f=e.aoColumns[h],p=(i=!s)?n.createElement(f.sCellType):r[h];p._DT_CellIndex={row:a,column:h},u.push(p),!i&&(s&&!f.mRender&&f.mData===h||t.isPlainObject(f.mData)&&f.mData._===h+".display")||(p.innerHTML=_(e,a,h,"display")),f.sClass&&(p.className+=" "+f.sClass),f.bVisible&&!s?d.appendChild(p):!f.bVisible&&s&&p.parentNode.removeChild(p),f.fnCreatedCell&&f.fnCreatedCell.call(e.oInstance,p,_(e,a,h),c,a,h)}Ot(e,"aoRowCreatedCallback",null,[d,c,a,u])}l.nTr.setAttribute("role","row")}function R(e,n){var a=n.nTr,s=n._aData;a&&((e=e.rowIdFn(s))&&(a.id=e),s.DT_RowClass&&(e=s.DT_RowClass.split(" "),n.__rowc=n.__rowc?ie(n.__rowc.concat(e)):e,t(a).removeClass(n.__rowc.join(" ")).addClass(s.DT_RowClass)),s.DT_RowAttr&&t(a).attr(s.DT_RowAttr),s.DT_RowData&&t(a).data(s.DT_RowData))}function L(e){var n,a,s=e.nTHead,r=e.nTFoot,o=0===t("th, td",s).length,i=e.oClasses,l=e.aoColumns;o&&(a=t("<tr/>").appendTo(s));var c=0;for(n=l.length;c<n;c++){var u=l[c],d=t(u.nTh).addClass(u.sClass);o&&d.appendTo(a),e.oFeatures.bSort&&(d.addClass(u.sSortingClass),!1!==u.bSortable&&(d.attr("tabindex",e.iTabIndex).attr("aria-controls",e.sTableId),Ct(e,u.nTh,c))),u.sTitle!=d[0].innerHTML&&d.html(u.sTitle),Mt(e,"header")(e,d,u,i)}if(o&&k(e.aoHeader,s),t(s).find(">tr").attr("role","row"),t(s).find(">tr>th, >tr>td").addClass(i.sHeaderTH),t(r).find(">tr>th, >tr>td").addClass(i.sFooterTH),null!==r)for(c=0,n=(e=e.aoFooter[0]).length;c<n;c++)(u=l[c]).nTf=e[c].cell,u.sClass&&t(u.nTf).addClass(u.sClass)}function O(e,n,s){var r,o,i=[],l=[],c=e.aoColumns.length;if(n){s===a&&(s=!1);var u=0;for(r=n.length;u<r;u++){for(i[u]=n[u].slice(),i[u].nTr=n[u].nTr,o=c-1;0<=o;o--)e.aoColumns[o].bVisible||s||i[u].splice(o,1);l.push([])}for(u=0,r=i.length;u<r;u++){if(e=i[u].nTr)for(;o=e.firstChild;)e.removeChild(o);for(o=0,n=i[u].length;o<n;o++){var d=c=1;if(l[u][o]===a){for(e.appendChild(i[u][o].cell),l[u][o]=1;i[u+c]!==a&&i[u][o].cell==i[u+c][o].cell;)l[u+c][o]=1,c++;for(;i[u][o+d]!==a&&i[u][o].cell==i[u][o+d].cell;){for(s=0;s<c;s++)l[u+s][o+d]=1;d++}t(i[u][o].cell).attr("rowspan",c).attr("colspan",d)}}}}}function E(e){var n=Ot(e,"aoPreDrawCallback","preDraw",[e]);if(-1!==t.inArray(!1,n))dt(e,!1);else{n=[];var s=0,r=e.asStripeClasses,o=r.length,i=e.oLanguage,l=e.iInitDisplayStart,c="ssp"==Nt(e),u=e.aiDisplay;e.bDrawing=!0,l!==a&&-1!==l&&(e._iDisplayStart=c?l:l>=e.fnRecordsDisplay()?0:l,e.iInitDisplayStart=-1),l=e._iDisplayStart;var d=e.fnDisplayEnd();if(e.bDeferLoading)e.bDeferLoading=!1,e.iDraw++,dt(e,!1);else if(c){if(!e.bDestroying&&!W(e))return}else e.iDraw++;if(0!==u.length)for(i=c?e.aoData.length:d,c=c?0:l;c<i;c++){var h=u[c],f=e.aoData[h];null===f.nTr&&F(e,h);var p=f.nTr;if(0!==o){var g=r[s%o];f._sRowStripe!=g&&(t(p).removeClass(f._sRowStripe).addClass(g),f._sRowStripe=g)}Ot(e,"aoRowCallback",null,[p,f._aData,s,c,h]),n.push(p),s++}else s=i.sZeroRecords,1==e.iDraw&&"ajax"==Nt(e)?s=i.sLoadingRecords:i.sEmptyTable&&0===e.fnRecordsTotal()&&(s=i.sEmptyTable),n[0]=t("<tr/>",{class:o?r[0]:""}).append(t("<td />",{valign:"top",colSpan:m(e),class:e.oClasses.sRowEmpty}).html(s))[0];Ot(e,"aoHeaderCallback","header",[t(e.nTHead).children("tr")[0],P(e),l,d,u]),Ot(e,"aoFooterCallback","footer",[t(e.nTFoot).children("tr")[0],P(e),l,d,u]),(r=t(e.nTBody)).children().detach(),r.append(t(n)),Ot(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}}function M(t,e){var n=t.oFeatures,a=n.bFilter;n.bSort&&wt(t),a?G(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,E(t),t._drawHold=!1}function N(e){var n=e.oClasses,a=t(e.nTable);a=t("<div/>").insertBefore(a);var s=e.oFeatures,r=t("<div/>",{id:e.sTableId+"_wrapper",class:n.sWrapper+(e.nTFoot?"":" "+n.sNoFooter)});e.nHolding=a[0],e.nTableWrapper=r[0],e.nTableReinsertBefore=e.nTable.nextSibling;for(var o,i,l,c,u,d,h=e.sDom.split(""),f=0;f<h.length;f++){if(o=null,"<"==(i=h[f])){if(l=t("<div/>")[0],"'"==(c=h[f+1])||'"'==c){for(u="",d=2;h[f+d]!=c;)u+=h[f+d],d++;"H"==u?u=n.sJUIHeader:"F"==u&&(u=n.sJUIFooter),-1!=u.indexOf(".")?(c=u.split("."),l.id=c[0].substr(1,c[0].length-1),l.className=c[1]):"#"==u.charAt(0)?l.id=u.substr(1,u.length-1):l.className=u,f+=d}r.append(l),r=t(l)}else if(">"==i)r=r.parent();else if("l"==i&&s.bPaginate&&s.bLengthChange)o=it(e);else if("f"==i&&s.bFilter)o=X(e);else if("r"==i&&s.bProcessing)o=ut(e);else if("t"==i)o=ht(e);else if("i"==i&&s.bInfo)o=et(e);else if("p"==i&&s.bPaginate)o=lt(e);else if(0!==qt.ext.feature.length)for(d=0,c=(l=qt.ext.feature).length;d<c;d++)if(i==l[d].cFeature){o=l[d].fnInit(e);break}o&&((l=e.aanFeatures)[i]||(l[i]=[]),l[i].push(o),r.append(o))}a.replaceWith(r),e.nHolding=null}function k(e,n){var a,s,r;n=t(n).children("tr"),e.splice(0,e.length);var o=0;for(r=n.length;o<r;o++)e.push([]);for(o=0,r=n.length;o<r;o++){var i=n[o];for(a=i.firstChild;a;){if("TD"==a.nodeName.toUpperCase()||"TH"==a.nodeName.toUpperCase()){var l=1*a.getAttribute("colspan"),c=1*a.getAttribute("rowspan");l=l&&0!==l&&1!==l?l:1,c=c&&0!==c&&1!==c?c:1;var u=0;for(s=e[o];s[u];)u++;var d=u,h=1===l;for(s=0;s<l;s++)for(u=0;u<c;u++)e[o+u][d+s]={cell:a,unique:h},e[o+u].nTr=i}a=a.nextSibling}}}function H(t,e,n){var a=[];n||(n=t.aoHeader,e&&k(n=[],e)),e=0;for(var s=n.length;e<s;e++)for(var r=0,o=n[e].length;r<o;r++)!n[e][r].unique||a[r]&&t.bSortCellsTop||(a[r]=n[e][r].cell);return a}function B(e,n,a){if(Ot(e,"aoServerParams","serverParams",[n]),n&&t.isArray(n)){var s={},r=/(.*?)\[\]$/;t.each(n,(function(t,e){(t=e.name.match(r))?(t=t[0],s[t]||(s[t]=[]),s[t].push(e.value)):s[e.name]=e.value})),n=s}var o=e.ajax,i=e.oInstance,l=function(t){Ot(e,null,"xhr",[e,t,e.jqXHR]),a(t)};if(t.isPlainObject(o)&&o.data){var c=o.data,u="function"==typeof c?c(n,e):c;n="function"==typeof c&&u?u:t.extend(!0,n,u),delete o.data}u={data:n,success:function(t){var n=t.error||t.sError;n&&At(e,0,n),e.json=t,l(t)},dataType:"json",cache:!1,type:e.sServerMethod,error:function(n,a,s){s=Ot(e,null,"xhr",[e,null,e.jqXHR]),-1===t.inArray(!0,s)&&("parsererror"==a?At(e,0,"Invalid JSON response",1):4===n.readyState&&At(e,0,"Ajax error",7)),dt(e,!1)}},e.oAjaxData=n,Ot(e,null,"preXhr",[e,n]),e.fnServerData?e.fnServerData.call(i,e.sAjaxSource,t.map(n,(function(t,e){return{name:e,value:t}})),l,e):e.sAjaxSource||"string"==typeof o?e.jqXHR=t.ajax(t.extend(u,{url:o||e.sAjaxSource})):"function"==typeof o?e.jqXHR=o.call(i,n,l,e):(e.jqXHR=t.ajax(t.extend(u,o)),o.data=c)}function W(t){return!t.bAjaxDataGet||(t.iDraw++,dt(t,!0),B(t,U(t),(function(e){V(t,e)})),!1)}function U(e){var n=e.aoColumns,a=n.length,s=e.oFeatures,r=e.oPreviousSearch,o=e.aoPreSearchCols,i=[],l=St(e),c=e._iDisplayStart,u=!1!==s.bPaginate?e._iDisplayLength:-1,d=function(t,e){i.push({name:t,value:e})};d("sEcho",e.iDraw),d("iColumns",a),d("sColumns",ae(n,"sName").join(",")),d("iDisplayStart",c),d("iDisplayLength",u);var h={draw:e.iDraw,columns:[],order:[],start:c,length:u,search:{value:r.sSearch,regex:r.bRegex}};for(c=0;c<a;c++){var f=n[c],p=o[c];u="function"==typeof f.mData?"function":f.mData,h.columns.push({data:u,name:f.sName,searchable:f.bSearchable,orderable:f.bSortable,search:{value:p.sSearch,regex:p.bRegex}}),d("mDataProp_"+c,u),s.bFilter&&(d("sSearch_"+c,p.sSearch),d("bRegex_"+c,p.bRegex),d("bSearchable_"+c,f.bSearchable)),s.bSort&&d("bSortable_"+c,f.bSortable)}return s.bFilter&&(d("sSearch",r.sSearch),d("bRegex",r.bRegex)),s.bSort&&(t.each(l,(function(t,e){h.order.push({column:e.col,dir:e.dir}),d("iSortCol_"+t,e.col),d("sSortDir_"+t,e.dir)})),d("iSortingCols",l.length)),null===(n=qt.ext.legacy.ajax)?e.sAjaxSource?i:h:n?i:h}function V(t,e){var n=function(t,n){return e[t]!==a?e[t]:e[n]},s=q(t,e),r=n("sEcho","draw"),o=n("iTotalRecords","recordsTotal");if(n=n("iTotalDisplayRecords","recordsFiltered"),r){if(1*r<t.iDraw)return;t.iDraw=1*r}for($(t),t._iRecordsTotal=parseInt(o,10),t._iRecordsDisplay=parseInt(n,10),r=0,o=s.length;r<o;r++)S(t,s[r]);t.aiDisplay=t.aiDisplayMaster.slice(),t.bAjaxDataGet=!1,E(t),t._bInitComplete||rt(t,e),t.bAjaxDataGet=!0,dt(t,!1)}function q(e,n){return"data"===(e=t.isPlainObject(e.ajax)&&e.ajax.dataSrc!==a?e.ajax.dataSrc:e.sAjaxDataProp)?n.aaData||n[e]:""!==e?x(e)(n):n}function X(e){var a=e.oClasses,s=e.sTableId,r=e.oLanguage,o=e.oPreviousSearch,i=e.aanFeatures,l='<input type="search" class="'+a.sFilterInput+'"/>',c=r.sSearch;c=c.match(/_INPUT_/)?c.replace("_INPUT_",l):c+l,a=t("<div/>",{id:i.f?null:s+"_filter",class:a.sFilter}).append(t("<label/>").append(c)),i=function(){var t=this.value?this.value:"";t!=o.sSearch&&(G(e,{sSearch:t,bRegex:o.bRegex,bSmart:o.bSmart,bCaseInsensitive:o.bCaseInsensitive}),e._iDisplayStart=0,E(e))},l=null!==e.searchDelay?e.searchDelay:"ssp"===Nt(e)?400:0;var u=t("input",a).val(o.sSearch).attr("placeholder",r.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",l?ge(i,l):i).on("keypress.DT",(function(t){if(13==t.keyCode)return!1})).attr("aria-controls",s);return t(e.nTable).on("search.dt.DT",(function(t,a){if(e===a)try{u[0]!==n.activeElement&&u.val(o.sSearch)}catch(t){}})),a[0]}function G(t,e,n){var s=t.oPreviousSearch,r=t.aoPreSearchCols,o=function(t){s.sSearch=t.sSearch,s.bRegex=t.bRegex,s.bSmart=t.bSmart,s.bCaseInsensitive=t.bCaseInsensitive},i=function(t){return t.bEscapeRegex!==a?!t.bEscapeRegex:t.bRegex};if(v(t),"ssp"!=Nt(t)){for(Y(t,e.sSearch,n,i(e),e.bSmart,e.bCaseInsensitive),o(e),e=0;e<r.length;e++)J(t,r[e].sSearch,e,i(r[e]),r[e].bSmart,r[e].bCaseInsensitive);z(t)}else o(e);t.bFiltered=!0,Ot(t,null,"search",[t])}function z(e){for(var n,a,s=qt.ext.search,r=e.aiDisplay,o=0,i=s.length;o<i;o++){for(var l=[],c=0,u=r.length;c<u;c++)a=r[c],n=e.aoData[a],s[o](e,n._aFilterData,a,n._aData,c)&&l.push(a);r.length=0,t.merge(r,l)}}function J(t,e,n,a,s,r){if(""!==e){var o=[],i=t.aiDisplay;for(a=Z(e,a,s,r),s=0;s<i.length;s++)e=t.aoData[i[s]]._aFilterData[n],a.test(e)&&o.push(i[s]);t.aiDisplay=o}}function Y(t,e,n,a,s,r){s=Z(e,a,s,r);var o=t.oPreviousSearch.sSearch,i=t.aiDisplayMaster;r=[],0!==qt.ext.search.length&&(n=!0);var l=K(t);if(0>=e.length)t.aiDisplay=i.slice();else{for((l||n||a||o.length>e.length||0!==e.indexOf(o)||t.bSorted)&&(t.aiDisplay=i.slice()),e=t.aiDisplay,n=0;n<e.length;n++)s.test(t.aoData[e[n]]._sFilterRow)&&r.push(e[n]);t.aiDisplay=r}}function Z(e,n,a,s){return e=n?e:de(e),a&&(e="^(?=.*?"+t.map(e.match(/"[^"]+"|[^ ]+/g)||[""],(function(t){if('"'===t.charAt(0)){var e=t.match(/^"(.*)"$/);t=e?e[1]:t}return t.replace('"',"")})).join(")(?=.*?")+").*$"),new RegExp(e,s?"i":"")}function K(t){var e,n,a=t.aoColumns,s=qt.ext.type.search,r=!1,o=0;for(e=t.aoData.length;o<e;o++){var i=t.aoData[o];if(!i._aFilterData){var l=[],c=0;for(n=a.length;c<n;c++){if((r=a[c]).bSearchable){var u=_(t,o,c,"filter");s[r.sType]&&(u=s[r.sType](u)),null===u&&(u=""),"string"!=typeof u&&u.toString&&(u=u.toString())}else u="";u.indexOf&&-1!==u.indexOf("&")&&(he.innerHTML=u,u=fe?he.textContent:he.innerText),u.replace&&(u=u.replace(/[\r\n\u2028]/g,"")),l.push(u)}i._aFilterData=l,i._sFilterRow=l.join("  "),r=!0}}return r}function Q(t){return{search:t.sSearch,smart:t.bSmart,regex:t.bRegex,caseInsensitive:t.bCaseInsensitive}}function tt(t){return{sSearch:t.search,bSmart:t.smart,bRegex:t.regex,bCaseInsensitive:t.caseInsensitive}}function et(e){var n=e.sTableId,a=e.aanFeatures.i,s=t("<div/>",{class:e.oClasses.sInfo,id:a?null:n+"_info"});return a||(e.aoDrawCallback.push({fn:nt,sName:"information"}),s.attr("role","status").attr("aria-live","polite"),t(e.nTable).attr("aria-describedby",n+"_info")),s[0]}function nt(e){var n=e.aanFeatures.i;if(0!==n.length){var a=e.oLanguage,s=e._iDisplayStart+1,r=e.fnDisplayEnd(),o=e.fnRecordsTotal(),i=e.fnRecordsDisplay(),l=i?a.sInfo:a.sInfoEmpty;i!==o&&(l+=" "+a.sInfoFiltered),l=at(e,l+=a.sInfoPostFix),null!==(a=a.fnInfoCallback)&&(l=a.call(e.oInstance,e,s,r,o,i,l)),t(n).html(l)}}function at(t,e){var n=t.fnFormatNumber,a=t._iDisplayStart+1,s=t._iDisplayLength,r=t.fnRecordsDisplay(),o=-1===s;return e.replace(/_START_/g,n.call(t,a)).replace(/_END_/g,n.call(t,t.fnDisplayEnd())).replace(/_MAX_/g,n.call(t,t.fnRecordsTotal())).replace(/_TOTAL_/g,n.call(t,r)).replace(/_PAGE_/g,n.call(t,o?1:Math.ceil(a/s))).replace(/_PAGES_/g,n.call(t,o?1:Math.ceil(r/s)))}function st(t){var e=t.iInitDisplayStart,n=t.aoColumns,a=t.oFeatures,s=t.bDeferLoading;if(t.bInitialised){N(t),L(t),O(t,t.aoHeader),O(t,t.aoFooter),dt(t,!0),a.bAutoWidth&>(t);var r=0;for(a=n.length;r<a;r++){var o=n[r];o.sWidth&&(o.nTh.style.width=yt(o.sWidth))}Ot(t,null,"preInit",[t]),M(t),("ssp"!=(n=Nt(t))||s)&&("ajax"==n?B(t,[],(function(n){var a=q(t,n);for(r=0;r<a.length;r++)S(t,a[r]);t.iInitDisplayStart=e,M(t),dt(t,!1),rt(t,n)})):(dt(t,!1),rt(t)))}else setTimeout((function(){st(t)}),200)}function rt(t,e){t._bInitComplete=!0,(e||t.oInit.aaData)&&f(t),Ot(t,null,"plugin-init",[t,e]),Ot(t,"aoInitComplete","init",[t,e])}function ot(t,e){e=parseInt(e,10),t._iDisplayLength=e,Et(t),Ot(t,null,"length",[t,e])}function it(e){var n=e.oClasses,a=e.sTableId,s=e.aLengthMenu,r=t.isArray(s[0]),o=r?s[0]:s;s=r?s[1]:s,r=t("<select/>",{name:a+"_length","aria-controls":a,class:n.sLengthSelect});for(var i=0,l=o.length;i<l;i++)r[0][i]=new Option("number"==typeof s[i]?e.fnFormatNumber(s[i]):s[i],o[i]);var c=t("<div><label/></div>").addClass(n.sLength);return e.aanFeatures.l||(c[0].id=a+"_length"),c.children().append(e.oLanguage.sLengthMenu.replace("_MENU_",r[0].outerHTML)),t("select",c).val(e._iDisplayLength).on("change.DT",(function(n){ot(e,t(this).val()),E(e)})),t(e.nTable).on("length.dt.DT",(function(n,a,s){e===a&&t("select",c).val(s)})),c[0]}function lt(e){var n=e.sPaginationType,a=qt.ext.pager[n],s="function"==typeof a,r=function(t){E(t)};n=t("<div/>").addClass(e.oClasses.sPaging+n)[0];var o=e.aanFeatures;return s||a.fnInit(e,n,r),o.p||(n.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(t){if(s){var e,n=t._iDisplayStart,i=t._iDisplayLength,l=t.fnRecordsDisplay(),c=-1===i;for(n=c?0:Math.ceil(n/i),i=c?1:Math.ceil(l/i),l=a(n,i),c=0,e=o.p.length;c<e;c++)Mt(t,"pageButton")(t,o.p[c],c,l,n,i)}else a.fnUpdate(t,r)},sName:"pagination"})),n}function ct(t,e,n){var a=t._iDisplayStart,s=t._iDisplayLength,r=t.fnRecordsDisplay();return 0===r||-1===s?a=0:"number"==typeof e?(a=e*s)>r&&(a=0):"first"==e?a=0:"previous"==e?0>(a=0<=s?a-s:0)&&(a=0):"next"==e?a+s<r&&(a+=s):"last"==e?a=Math.floor((r-1)/s)*s:At(t,0,"Unknown paging action: "+e,5),e=t._iDisplayStart!==a,t._iDisplayStart=a,e&&(Ot(t,null,"page",[t]),n&&E(t)),e}function ut(e){return t("<div/>",{id:e.aanFeatures.r?null:e.sTableId+"_processing",class:e.oClasses.sProcessing}).html(e.oLanguage.sProcessing).insertBefore(e.nTable)[0]}function dt(e,n){e.oFeatures.bProcessing&&t(e.aanFeatures.r).css("display",n?"block":"none"),Ot(e,null,"processing",[e,n])}function ht(e){var n=t(e.nTable);n.attr("role","grid");var a=e.oScroll;if(""===a.sX&&""===a.sY)return e.nTable;var s=a.sX,r=a.sY,o=e.oClasses,i=n.children("caption"),l=i.length?i[0]._captionSide:null,c=t(n[0].cloneNode(!1)),u=t(n[0].cloneNode(!1)),d=n.children("tfoot");d.length||(d=null),c=t("<div/>",{class:o.sScrollWrapper}).append(t("<div/>",{class:o.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:s?s?yt(s):null:"100%"}).append(t("<div/>",{class:o.sScrollHeadInner}).css({"box-sizing":"content-box",width:a.sXInner||"100%"}).append(c.removeAttr("id").css("margin-left",0).append("top"===l?i:null).append(n.children("thead"))))).append(t("<div/>",{class:o.sScrollBody}).css({position:"relative",overflow:"auto",width:s?yt(s):null}).append(n)),d&&c.append(t("<div/>",{class:o.sScrollFoot}).css({overflow:"hidden",border:0,width:s?s?yt(s):null:"100%"}).append(t("<div/>",{class:o.sScrollFootInner}).append(u.removeAttr("id").css("margin-left",0).append("bottom"===l?i:null).append(n.children("tfoot")))));var h=(n=c.children())[0];o=n[1];var f=d?n[2]:null;return s&&t(o).on("scroll.DT",(function(t){t=this.scrollLeft,h.scrollLeft=t,d&&(f.scrollLeft=t)})),t(o).css(r&&a.bCollapse?"max-height":"height",r),e.nScrollHead=h,e.nScrollBody=o,e.nScrollFoot=f,e.aoDrawCallback.push({fn:ft,sName:"scrolling"}),c[0]}function ft(e){var n=e.oScroll,s=n.sX,r=n.sXInner,o=n.sY;n=n.iBarWidth;var i=t(e.nScrollHead),l=i[0].style,c=i.children("div"),u=c[0].style,d=c.children("table");c=e.nScrollBody;var h,g=t(c),m=c.style,b=t(e.nScrollFoot).children("div"),v=b.children("table"),y=t(e.nTHead),S=t(e.nTable),w=S[0],_=w.style,D=e.nTFoot?t(e.nTFoot):null,C=e.oBrowser,x=C.bScrollOversize,T=ae(e.aoColumns,"nTh"),P=[],$=[],j=[],A=[],I=function(t){(t=t.style).paddingTop="0",t.paddingBottom="0",t.borderTopWidth="0",t.borderBottomWidth="0",t.height=0},F=c.scrollHeight>c.clientHeight;if(e.scrollBarVis!==F&&e.scrollBarVis!==a)e.scrollBarVis=F,f(e);else{if(e.scrollBarVis=F,S.children("thead, tfoot").remove(),D){var R=D.clone().prependTo(S),L=D.find("tr");R=R.find("tr")}var O=y.clone().prependTo(S);y=y.find("tr"),F=O.find("tr"),O.find("th, td").removeAttr("tabindex"),s||(m.width="100%",i[0].style.width="100%"),t.each(H(e,O),(function(t,n){h=p(e,t),n.style.width=e.aoColumns[h].sWidth})),D&&pt((function(t){t.style.width=""}),R),i=S.outerWidth(),""===s?(_.width="100%",x&&(S.find("tbody").height()>c.offsetHeight||"scroll"==g.css("overflow-y"))&&(_.width=yt(S.outerWidth()-n)),i=S.outerWidth()):""!==r&&(_.width=yt(r),i=S.outerWidth()),pt(I,F),pt((function(e){j.push(e.innerHTML),P.push(yt(t(e).css("width")))}),F),pt((function(e,n){-1!==t.inArray(e,T)&&(e.style.width=P[n])}),y),t(F).height(0),D&&(pt(I,R),pt((function(e){A.push(e.innerHTML),$.push(yt(t(e).css("width")))}),R),pt((function(t,e){t.style.width=$[e]}),L),t(R).height(0)),pt((function(t,e){t.innerHTML='<div class="dataTables_sizing">'+j[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=P[e]}),F),D&&pt((function(t,e){t.innerHTML='<div class="dataTables_sizing">'+A[e]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=$[e]}),R),S.outerWidth()<i?(L=c.scrollHeight>c.offsetHeight||"scroll"==g.css("overflow-y")?i+n:i,x&&(c.scrollHeight>c.offsetHeight||"scroll"==g.css("overflow-y"))&&(_.width=yt(L-n)),""!==s&&""===r||At(e,1,"Possible column misalignment",6)):L="100%",m.width=yt(L),l.width=yt(L),D&&(e.nScrollFoot.style.width=yt(L)),!o&&x&&(m.height=yt(w.offsetHeight+n)),s=S.outerWidth(),d[0].style.width=yt(s),u.width=yt(s),r=S.height()>c.clientHeight||"scroll"==g.css("overflow-y"),u[o="padding"+(C.bScrollbarLeft?"Left":"Right")]=r?n+"px":"0px",D&&(v[0].style.width=yt(s),b[0].style.width=yt(s),b[0].style[o]=r?n+"px":"0px"),S.children("colgroup").insertBefore(S.children("thead")),g.trigger("scroll"),!e.bSorted&&!e.bFiltered||e._drawHold||(c.scrollTop=0)}}function pt(t,e,n){for(var a,s,r=0,o=0,i=e.length;o<i;){for(a=e[o].firstChild,s=n?n[o].firstChild:null;a;)1===a.nodeType&&(n?t(a,s,r):t(a,r),r++),a=a.nextSibling,s=n?s.nextSibling:null;o++}}function gt(n){var a,s=n.nTable,r=n.aoColumns,o=n.oScroll,i=o.sY,l=o.sX,c=o.sXInner,u=r.length,d=b(n,"bVisible"),h=t("th",n.nTHead),g=s.getAttribute("width"),v=s.parentNode,y=!1,S=n.oBrowser;for(o=S.bScrollOversize,(a=s.style.width)&&-1!==a.indexOf("%")&&(g=a),a=0;a<d.length;a++){var w=r[d[a]];null!==w.sWidth&&(w.sWidth=mt(w.sWidthOrig,v),y=!0)}if(o||!y&&!l&&!i&&u==m(n)&&u==h.length)for(a=0;a<u;a++)null!==(d=p(n,a))&&(r[d].sWidth=yt(h.eq(a).width()));else{(u=t(s).clone().css("visibility","hidden").removeAttr("id")).find("tbody tr").remove();var _=t("<tr/>").appendTo(u.find("tbody"));for(u.find("thead, tfoot").remove(),u.append(t(n.nTHead).clone()).append(t(n.nTFoot).clone()),u.find("tfoot th, tfoot td").css("width",""),h=H(n,u.find("thead")[0]),a=0;a<d.length;a++)w=r[d[a]],h[a].style.width=null!==w.sWidthOrig&&""!==w.sWidthOrig?yt(w.sWidthOrig):"",w.sWidthOrig&&l&&t(h[a]).append(t("<div/>").css({width:w.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(n.aoData.length)for(a=0;a<d.length;a++)w=r[y=d[a]],t(bt(n,y)).clone(!1).append(w.sContentPadding).appendTo(_);for(t("[name]",u).removeAttr("name"),w=t("<div/>").css(l||i?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(u).appendTo(v),l&&c?u.width(c):l?(u.css("width","auto"),u.removeAttr("width"),u.width()<v.clientWidth&&g&&u.width(v.clientWidth)):i?u.width(v.clientWidth):g&&u.width(g),a=i=0;a<d.length;a++)c=(v=t(h[a])).outerWidth()-v.width(),i+=v=S.bBounding?Math.ceil(h[a].getBoundingClientRect().width):v.outerWidth(),r[d[a]].sWidth=yt(v-c);s.style.width=yt(i),w.remove()}g&&(s.style.width=yt(g)),!g&&!l||n._reszEvt||(s=function(){t(e).on("resize.DT-"+n.sInstance,ge((function(){f(n)})))},o?setTimeout(s,1e3):s(),n._reszEvt=!0)}function mt(e,a){return e?(a=(e=t("<div/>").css("width",yt(e)).appendTo(a||n.body))[0].offsetWidth,e.remove(),a):0}function bt(e,n){var a=vt(e,n);if(0>a)return null;var s=e.aoData[a];return s.nTr?s.anCells[n]:t("<td/>").html(_(e,a,n,"display"))[0]}function vt(t,e){for(var n,a=-1,s=-1,r=0,o=t.aoData.length;r<o;r++)(n=(n=(n=_(t,r,e,"display")+"").replace(pe,"")).replace(/ /g," ")).length>a&&(a=n.length,s=r);return s}function yt(t){return null===t?"0px":"number"==typeof t?0>t?"0px":t+"px":t.match(/\d$/)?t+"px":t}function St(e){var n=[],s=e.aoColumns,r=e.aaSortingFixed,o=t.isPlainObject(r),i=[],l=function(e){e.length&&!t.isArray(e[0])?i.push(e):t.merge(i,e)};for(t.isArray(r)&&l(r),o&&r.pre&&l(r.pre),l(e.aaSorting),o&&r.post&&l(r.post),e=0;e<i.length;e++){var c=i[e][0];for(r=0,o=(l=s[c].aDataSort).length;r<o;r++){var u=l[r],d=s[u].sType||"string";i[e]._idx===a&&(i[e]._idx=t.inArray(i[e][1],s[u].asSorting)),n.push({src:c,col:u,dir:i[e][1],index:i[e]._idx,type:d,formatter:qt.ext.type.order[d+"-pre"]})}}return n}function wt(t){var e,n=[],a=qt.ext.type.order,s=t.aoData,r=0,o=t.aiDisplayMaster;v(t);var i=St(t),l=0;for(e=i.length;l<e;l++){var c=i[l];c.formatter&&r++,Tt(t,c.col)}if("ssp"!=Nt(t)&&0!==i.length){for(l=0,e=o.length;l<e;l++)n[o[l]]=l;r===i.length?o.sort((function(t,e){var a,r=i.length,o=s[t]._aSortData,l=s[e]._aSortData;for(a=0;a<r;a++){var c=i[a],u=o[c.col],d=l[c.col];if(0!==(u=u<d?-1:u>d?1:0))return"asc"===c.dir?u:-u}return(u=n[t])<(d=n[e])?-1:u>d?1:0})):o.sort((function(t,e){var r,o=i.length,l=s[t]._aSortData,c=s[e]._aSortData;for(r=0;r<o;r++){var u=i[r],d=l[u.col],h=c[u.col];if(0!==(d=(u=a[u.type+"-"+u.dir]||a["string-"+u.dir])(d,h)))return d}return(d=n[t])<(h=n[e])?-1:d>h?1:0}))}t.bSorted=!0}function _t(t){var e=t.aoColumns,n=St(t);t=t.oLanguage.oAria;for(var a=0,s=e.length;a<s;a++){var r=e[a],o=r.asSorting,i=r.sTitle.replace(/<.*?>/g,""),l=r.nTh;l.removeAttribute("aria-sort"),r.bSortable&&(0<n.length&&n[0].col==a?(l.setAttribute("aria-sort","asc"==n[0].dir?"ascending":"descending"),r=o[n[0].index+1]||o[0]):r=o[0],i+="asc"===r?t.sSortAscending:t.sSortDescending),l.setAttribute("aria-label",i)}}function Dt(e,n,s,r){var o=e.aaSorting,i=e.aoColumns[n].asSorting,l=function(e,n){var s=e._idx;return s===a&&(s=t.inArray(e[1],i)),s+1<i.length?s+1:n?null:0};"number"==typeof o[0]&&(o=e.aaSorting=[o]),s&&e.oFeatures.bSortMulti?-1!==(s=t.inArray(n,ae(o,"0")))?(null===(n=l(o[s],!0))&&1===o.length&&(n=0),null===n?o.splice(s,1):(o[s][1]=i[n],o[s]._idx=n)):(o.push([n,i[0],0]),o[o.length-1]._idx=0):o.length&&o[0][0]==n?(n=l(o[0]),o.length=1,o[0][1]=i[n],o[0]._idx=n):(o.length=0,o.push([n,i[0]]),o[0]._idx=0),M(e),"function"==typeof r&&r(e)}function Ct(t,e,n,a){var s=t.aoColumns[n];Rt(e,{},(function(e){!1!==s.bSortable&&(t.oFeatures.bProcessing?(dt(t,!0),setTimeout((function(){Dt(t,n,e.shiftKey,a),"ssp"!==Nt(t)&&dt(t,!1)}),0)):Dt(t,n,e.shiftKey,a))}))}function xt(e){var n,a=e.aLastSort,s=e.oClasses.sSortColumn,r=St(e),o=e.oFeatures;if(o.bSort&&o.bSortClasses){for(o=0,n=a.length;o<n;o++){var i=a[o].src;t(ae(e.aoData,"anCells",i)).removeClass(s+(2>o?o+1:3))}for(o=0,n=r.length;o<n;o++)i=r[o].src,t(ae(e.aoData,"anCells",i)).addClass(s+(2>o?o+1:3))}e.aLastSort=r}function Tt(t,e){var n,a=t.aoColumns[e],s=qt.ext.order[a.sSortDataType];s&&(n=s.call(t.oInstance,t,e,g(t,e)));for(var r,o=qt.ext.type.order[a.sType+"-pre"],i=0,l=t.aoData.length;i<l;i++)(a=t.aoData[i])._aSortData||(a._aSortData=[]),(!a._aSortData[e]||s)&&(r=s?n[i]:_(t,i,e,"sort"),a._aSortData[e]=o?o(r):r)}function Pt(e){if(e.oFeatures.bStateSave&&!e.bDestroying){var n={time:+new Date,start:e._iDisplayStart,length:e._iDisplayLength,order:t.extend(!0,[],e.aaSorting),search:Q(e.oPreviousSearch),columns:t.map(e.aoColumns,(function(t,n){return{visible:t.bVisible,search:Q(e.aoPreSearchCols[n])}}))};Ot(e,"aoStateSaveParams","stateSaveParams",[e,n]),e.oSavedState=n,e.fnStateSaveCallback.call(e.oInstance,e,n)}}function $t(e,n,s){var r,o,i=e.aoColumns;if(n=function(n){if(n&&n.time){var l=Ot(e,"aoStateLoadParams","stateLoadParams",[e,n]);if(-1===t.inArray(!1,l)&&!(0<(l=e.iStateDuration)&&n.time<+new Date-1e3*l||n.columns&&i.length!==n.columns.length)){if(e.oLoadedState=t.extend(!0,{},n),n.start!==a&&(e._iDisplayStart=n.start,e.iInitDisplayStart=n.start),n.length!==a&&(e._iDisplayLength=n.length),n.order!==a&&(e.aaSorting=[],t.each(n.order,(function(t,n){e.aaSorting.push(n[0]>=i.length?[0,n[1]]:n)}))),n.search!==a&&t.extend(e.oPreviousSearch,tt(n.search)),n.columns)for(r=0,o=n.columns.length;r<o;r++)(l=n.columns[r]).visible!==a&&(i[r].bVisible=l.visible),l.search!==a&&t.extend(e.aoPreSearchCols[r],tt(l.search));Ot(e,"aoStateLoaded","stateLoaded",[e,n])}}s()},e.oFeatures.bStateSave){var l=e.fnStateLoadCallback.call(e.oInstance,e,n);l!==a&&n(l)}else s()}function jt(e){var n=qt.settings;return-1!==(e=t.inArray(e,ae(n,"nTable")))?n[e]:null}function At(t,n,a,s){if(a="DataTables warning: "+(t?"table id="+t.sTableId+" - ":"")+a,s&&(a+=". For more information about this error, please see http://datatables.net/tn/"+s),n)e.console&&console.log&&console.log(a);else if(n=(n=qt.ext).sErrMode||n.errMode,t&&Ot(t,null,"error",[t,s,a]),"alert"==n)alert(a);else{if("throw"==n)throw Error(a);"function"==typeof n&&n(t,s,a)}}function It(e,n,s,r){t.isArray(s)?t.each(s,(function(a,s){t.isArray(s)?It(e,n,s[0],s[1]):It(e,n,s)})):(r===a&&(r=s),n[s]!==a&&(e[r]=n[s]))}function Ft(e,n,a){var s;for(s in n)if(n.hasOwnProperty(s)){var r=n[s];t.isPlainObject(r)?(t.isPlainObject(e[s])||(e[s]={}),t.extend(!0,e[s],r)):a&&"data"!==s&&"aaData"!==s&&t.isArray(r)?e[s]=r.slice():e[s]=r}return e}function Rt(e,n,a){t(e).on("click.DT",n,(function(n){t(e).blur(),a(n)})).on("keypress.DT",n,(function(t){13===t.which&&(t.preventDefault(),a(t))})).on("selectstart.DT",(function(){return!1}))}function Lt(t,e,n,a){n&&t[e].push({fn:n,sName:a})}function Ot(e,n,a,s){var r=[];return n&&(r=t.map(e[n].slice().reverse(),(function(t,n){return t.fn.apply(e.oInstance,s)}))),null!==a&&(n=t.Event(a+".dt"),t(e.nTable).trigger(n,s),r.push(n.result)),r}function Et(t){var e=t._iDisplayStart,n=t.fnDisplayEnd(),a=t._iDisplayLength;e>=n&&(e=n-a),e-=e%a,(-1===a||0>e)&&(e=0),t._iDisplayStart=e}function Mt(e,n){e=e.renderer;var a=qt.ext.renderer[n];return t.isPlainObject(e)&&e[n]?a[e[n]]||a._:"string"==typeof e&&a[e]||a._}function Nt(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}function kt(t,e){var n=je.numbers_length,a=Math.floor(n/2);return e<=n?t=re(0,e):t<=a?((t=re(0,n-2)).push("ellipsis"),t.push(e-1)):(t>=e-1-a?t=re(e-(n-2),e):((t=re(t-a+2,t+a-1)).push("ellipsis"),t.push(e-1)),t.splice(0,0,"ellipsis"),t.splice(0,0,0)),t.DT_el="span",t}function Ht(e){t.each({num:function(t){return Ae(t,e)},"num-fmt":function(t){return Ae(t,e,Zt)},"html-num":function(t){return Ae(t,e,zt)},"html-num-fmt":function(t){return Ae(t,e,zt,Zt)}},(function(t,n){Wt.type.order[t+e+"-pre"]=n,t.match(/^html\-/)&&(Wt.type.search[t+e]=Wt.type.search.html)}))}function Bt(t){return function(){var e=[jt(this[qt.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return qt.ext.internal[t].apply(this,e)}}var Wt,Ut,Vt,qt=function(e){this.$=function(t,e){return this.api(!0).$(t,e)},this._=function(t,e){return this.api(!0).rows(t,e).data()},this.api=function(t){return new ve(t?jt(this[Wt.iApiIndex]):this)},this.fnAddData=function(e,n){var s=this.api(!0);return e=t.isArray(e)&&(t.isArray(e[0])||t.isPlainObject(e[0]))?s.rows.add(e):s.row.add(e),(n===a||n)&&s.draw(),e.flatten().toArray()},this.fnAdjustColumnSizing=function(t){var e=this.api(!0).columns.adjust(),n=e.settings()[0],s=n.oScroll;t===a||t?e.draw(!1):(""!==s.sX||""!==s.sY)&&ft(n)},this.fnClearTable=function(t){var e=this.api(!0).clear();(t===a||t)&&e.draw()},this.fnClose=function(t){this.api(!0).row(t).child.hide()},this.fnDeleteRow=function(t,e,n){var s=this.api(!0),r=(t=s.rows(t)).settings()[0],o=r.aoData[t[0][0]];return t.remove(),e&&e.call(this,r,o),(n===a||n)&&s.draw(),o},this.fnDestroy=function(t){this.api(!0).destroy(t)},this.fnDraw=function(t){this.api(!0).draw(t)},this.fnFilter=function(t,e,n,s,r,o){r=this.api(!0),null===e||e===a?r.search(t,n,s,o):r.column(e).search(t,n,s,o),r.draw()},this.fnGetData=function(t,e){var n=this.api(!0);if(t!==a){var s=t.nodeName?t.nodeName.toLowerCase():"";return e!==a||"td"==s||"th"==s?n.cell(t,e).data():n.row(t).data()||null}return n.data().toArray()},this.fnGetNodes=function(t){var e=this.api(!0);return t!==a?e.row(t).node():e.rows().nodes().flatten().toArray()},this.fnGetPosition=function(t){var e=this.api(!0),n=t.nodeName.toUpperCase();return"TR"==n?e.row(t).index():"TD"==n||"TH"==n?[(t=e.cell(t).index()).row,t.columnVisible,t.column]:null},this.fnIsOpen=function(t){return this.api(!0).row(t).child.isShown()},this.fnOpen=function(t,e,n){return this.api(!0).row(t).child(e,n).show().child()[0]},this.fnPageChange=function(t,e){t=this.api(!0).page(t),(e===a||e)&&t.draw(!1)},this.fnSetColumnVis=function(t,e,n){t=this.api(!0).column(t).visible(e),(n===a||n)&&t.columns.adjust().draw()},this.fnSettings=function(){return jt(this[Wt.iApiIndex])},this.fnSort=function(t){this.api(!0).order(t).draw()},this.fnSortListener=function(t,e,n){this.api(!0).order.listener(t,e,n)},this.fnUpdate=function(t,e,n,s,r){var o=this.api(!0);return n===a||null===n?o.row(e).data(t):o.cell(e,n).data(t),(r===a||r)&&o.columns.adjust(),(s===a||s)&&o.draw(),0},this.fnVersionCheck=Wt.fnVersionCheck;var n=this,s=e===a,u=this.length;for(var f in s&&(e={}),this.oApi=this.internal=Wt.internal,qt.ext.internal)f&&(this[f]=Bt(f));return this.each((function(){var f,p={},g=1<u?Ft(p,e,!0):e,m=0;p=this.getAttribute("id");var b=!1,v=qt.defaults,_=t(this);if("table"!=this.nodeName.toLowerCase())At(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{i(v),l(v.column),r(v,v,!0),r(v.column,v.column,!0),r(v,t.extend(g,_.data()),!0);var D=qt.settings;for(m=0,f=D.length;m<f;m++){var C=D[m];if(C.nTable==this||C.nTHead&&C.nTHead.parentNode==this||C.nTFoot&&C.nTFoot.parentNode==this){var T=g.bRetrieve!==a?g.bRetrieve:v.bRetrieve;if(s||T)return C.oInstance;if(g.bDestroy!==a?g.bDestroy:v.bDestroy){C.oInstance.fnDestroy();break}return void At(C,0,"Cannot reinitialise DataTable",3)}if(C.sTableId==this.id){D.splice(m,1);break}}null!==p&&""!==p||(this.id=p="DataTables_Table_"+qt.ext._unique++);var P=t.extend(!0,{},qt.models.oSettings,{sDestroyWidth:_[0].style.width,sInstance:p,sTableId:p});P.nTable=this,P.oApi=n.internal,P.oInit=g,D.push(P),P.oInstance=1===n.length?n:_.dataTable(),i(g),o(g.oLanguage),g.aLengthMenu&&!g.iDisplayLength&&(g.iDisplayLength=t.isArray(g.aLengthMenu[0])?g.aLengthMenu[0][0]:g.aLengthMenu[0]),g=Ft(t.extend(!0,{},v),g),It(P.oFeatures,g,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" ")),It(P,g,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),It(P.oScroll,g,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),It(P.oLanguage,g,"fnInfoCallback"),Lt(P,"aoDrawCallback",g.fnDrawCallback,"user"),Lt(P,"aoServerParams",g.fnServerParams,"user"),Lt(P,"aoStateSaveParams",g.fnStateSaveParams,"user"),Lt(P,"aoStateLoadParams",g.fnStateLoadParams,"user"),Lt(P,"aoStateLoaded",g.fnStateLoaded,"user"),Lt(P,"aoRowCallback",g.fnRowCallback,"user"),Lt(P,"aoRowCreatedCallback",g.fnCreatedRow,"user"),Lt(P,"aoHeaderCallback",g.fnHeaderCallback,"user"),Lt(P,"aoFooterCallback",g.fnFooterCallback,"user"),Lt(P,"aoInitComplete",g.fnInitComplete,"user"),Lt(P,"aoPreDrawCallback",g.fnPreDrawCallback,"user"),P.rowIdFn=x(g.rowId),c(P);var $=P.oClasses;t.extend($,qt.ext.classes,g.oClasses),_.addClass($.sTable),P.iInitDisplayStart===a&&(P.iInitDisplayStart=g.iDisplayStart,P._iDisplayStart=g.iDisplayStart),null!==g.iDeferLoading&&(P.bDeferLoading=!0,p=t.isArray(g.iDeferLoading),P._iRecordsDisplay=p?g.iDeferLoading[0]:g.iDeferLoading,P._iRecordsTotal=p?g.iDeferLoading[1]:g.iDeferLoading);var j=P.oLanguage;t.extend(!0,j,g.oLanguage),j.sUrl&&(t.ajax({dataType:"json",url:j.sUrl,success:function(e){o(e),r(v.oLanguage,e),t.extend(!0,j,e),st(P)},error:function(){st(P)}}),b=!0),null===g.asStripeClasses&&(P.asStripeClasses=[$.sStripeOdd,$.sStripeEven]),p=P.asStripeClasses;var A=_.children("tbody").find("tr").eq(0);if(-1!==t.inArray(!0,t.map(p,(function(t,e){return A.hasClass(t)})))&&(t("tbody tr",this).removeClass(p.join(" ")),P.asDestroyStripes=p.slice()),p=[],0!==(D=this.getElementsByTagName("thead")).length&&(k(P.aoHeader,D[0]),p=H(P)),null===g.aoColumns)for(D=[],m=0,f=p.length;m<f;m++)D.push(null);else D=g.aoColumns;for(m=0,f=D.length;m<f;m++)d(P,p?p[m]:null);if(y(P,g.aoColumnDefs,D,(function(t,e){h(P,t,e)})),A.length){var I=function(t,e){return null!==t.getAttribute("data-"+e)?e:null};t(A[0]).children("th, td").each((function(t,e){var n=P.aoColumns[t];if(n.mData===t){var s=I(e,"sort")||I(e,"order");e=I(e,"filter")||I(e,"search"),null===s&&null===e||(n.mData={_:t+".display",sort:null!==s?t+".@data-"+s:a,type:null!==s?t+".@data-"+s:a,filter:null!==e?t+".@data-"+e:a},h(P,t))}}))}var F=P.oFeatures;p=function(){if(g.aaSorting===a){var e=P.aaSorting;for(m=0,f=e.length;m<f;m++)e[m][1]=P.aoColumns[m].asSorting[0]}xt(P),F.bSort&&Lt(P,"aoDrawCallback",(function(){if(P.bSorted){var e=St(P),n={};t.each(e,(function(t,e){n[e.src]=e.dir})),Ot(P,null,"order",[P,e,n]),_t(P)}})),Lt(P,"aoDrawCallback",(function(){(P.bSorted||"ssp"===Nt(P)||F.bDeferRender)&&xt(P)}),"sc"),e=_.children("caption").each((function(){this._captionSide=t(this).css("caption-side")}));var n=_.children("thead");if(0===n.length&&(n=t("<thead/>").appendTo(_)),P.nTHead=n[0],0===(n=_.children("tbody")).length&&(n=t("<tbody/>").appendTo(_)),P.nTBody=n[0],0===(n=_.children("tfoot")).length&&0<e.length&&(""!==P.oScroll.sX||""!==P.oScroll.sY)&&(n=t("<tfoot/>").appendTo(_)),0===n.length||0===n.children().length?_.addClass($.sNoFooter):0<n.length&&(P.nTFoot=n[0],k(P.aoFooter,P.nTFoot)),g.aaData)for(m=0;m<g.aaData.length;m++)S(P,g.aaData[m]);else(P.bDeferLoading||"dom"==Nt(P))&&w(P,t(P.nTBody).children("tr"));P.aiDisplay=P.aiDisplayMaster.slice(),P.bInitialised=!0,!1===b&&st(P)},g.bStateSave?(F.bStateSave=!0,Lt(P,"aoDrawCallback",Pt,"state_save"),$t(P,g,p)):p()}})),n=null,this},Xt={},Gt=/[\r\n\u2028]/g,zt=/<.*?>/g,Jt=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,Yt=/(\/|\.|\*|\+|\?|\||\(|\)|\[|\]|\{|\}|\\|\$|\^|\-)/g,Zt=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,Kt=function(t){return!t||!0===t||"-"===t},Qt=function(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null},te=function(t,e){return Xt[e]||(Xt[e]=new RegExp(de(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(Xt[e],"."):t},ee=function(t,e,n){var a="string"==typeof t;return!!Kt(t)||(e&&a&&(t=te(t,e)),n&&a&&(t=t.replace(Zt,"")),!isNaN(parseFloat(t))&&isFinite(t))},ne=function(t,e,n){return!!Kt(t)||((Kt(t)||"string"==typeof t)&&!!ee(t.replace(zt,""),e,n)||null)},ae=function(t,e,n){var s=[],r=0,o=t.length;if(n!==a)for(;r<o;r++)t[r]&&t[r][e]&&s.push(t[r][e][n]);else for(;r<o;r++)t[r]&&s.push(t[r][e]);return s},se=function(t,e,n,s){var r=[],o=0,i=e.length;if(s!==a)for(;o<i;o++)t[e[o]][n]&&r.push(t[e[o]][n][s]);else for(;o<i;o++)r.push(t[e[o]][n]);return r},re=function(t,e){var n=[];if(e===a){e=0;var s=t}else s=e,e=t;for(t=e;t<s;t++)n.push(t);return n},oe=function(t){for(var e=[],n=0,a=t.length;n<a;n++)t[n]&&e.push(t[n]);return e},ie=function(t){t:{if(!(2>t.length))for(var e=t.slice().sort(),n=e[0],a=1,s=e.length;a<s;a++){if(e[a]===n){e=!1;break t}n=e[a]}e=!0}if(e)return t.slice();e=[],s=t.length;var r,o=0;a=0;t:for(;a<s;a++){for(n=t[a],r=0;r<o;r++)if(e[r]===n)continue t;e.push(n),o++}return e};qt.util={throttle:function(t,e){var n,s,r=e!==a?e:200;return function(){var e=this,o=+new Date,i=arguments;n&&o<n+r?(clearTimeout(s),s=setTimeout((function(){n=a,t.apply(e,i)}),r)):(n=o,t.apply(e,i))}},escapeRegex:function(t){return t.replace(Yt,"\\$1")}};var le=function(t,e,n){t[e]!==a&&(t[n]=t[e])},ce=/\[.*?\]$/,ue=/\(\)$/,de=qt.util.escapeRegex,he=t("<div>")[0],fe=he.textContent!==a,pe=/<.*?>/g,ge=qt.util.throttle,me=[],be=Array.prototype,ve=function(e,n){if(!(this instanceof ve))return new ve(e,n);var a=[],s=function(e){(e=function(e){var n,a=qt.settings,s=t.map(a,(function(t,e){return t.nTable}));if(!e)return[];if(e.nTable&&e.oApi)return[e];if(e.nodeName&&"table"===e.nodeName.toLowerCase()){var r=t.inArray(e,s);return-1!==r?[a[r]]:null}return e&&"function"==typeof e.settings?e.settings().toArray():("string"==typeof e?n=t(e):e instanceof t&&(n=e),n?n.map((function(e){return-1!==(r=t.inArray(this,s))?a[r]:null})).toArray():void 0)}(e))&&a.push.apply(a,e)};if(t.isArray(e))for(var r=0,o=e.length;r<o;r++)s(e[r]);else s(e);this.context=ie(a),n&&t.merge(this,n),this.selector={rows:null,cols:null,opts:null},ve.extend(this,this,me)};qt.Api=ve,t.extend(ve.prototype,{any:function(){return 0!==this.count()},concat:be.concat,context:[],count:function(){return this.flatten().length},each:function(t){for(var e=0,n=this.length;e<n;e++)t.call(this,this[e],e,this);return this},eq:function(t){var e=this.context;return e.length>t?new ve(e[t],this[t]):null},filter:function(t){var e=[];if(be.filter)e=be.filter.call(this,t,this);else for(var n=0,a=this.length;n<a;n++)t.call(this,this[n],n,this)&&e.push(this[n]);return new ve(this.context,e)},flatten:function(){var t=[];return new ve(this.context,t.concat.apply(t,this.toArray()))},join:be.join,indexOf:be.indexOf||function(t,e){e=e||0;for(var n=this.length;e<n;e++)if(this[e]===t)return e;return-1},iterator:function(t,e,n,s){var r,o,i,l=[],c=this.context,u=this.selector;"string"==typeof t&&(s=n,n=e,e=t,t=!1);var d=0;for(r=c.length;d<r;d++){var h=new ve(c[d]);if("table"===e){var f=n.call(h,c[d],d);f!==a&&l.push(f)}else if("columns"===e||"rows"===e)(f=n.call(h,c[d],this[d],d))!==a&&l.push(f);else if("column"===e||"column-rows"===e||"row"===e||"cell"===e){var p=this[d];"column-rows"===e&&(i=De(c[d],u.opts));var g=0;for(o=p.length;g<o;g++)f=p[g],(f="cell"===e?n.call(h,c[d],f.row,f.column,d,g):n.call(h,c[d],f,d,g,i))!==a&&l.push(f)}}return l.length||s?((e=(t=new ve(c,t?l.concat.apply([],l):l)).selector).rows=u.rows,e.cols=u.cols,e.opts=u.opts,t):this},lastIndexOf:be.lastIndexOf||function(t,e){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(t){var e=[];if(be.map)e=be.map.call(this,t,this);else for(var n=0,a=this.length;n<a;n++)e.push(t.call(this,this[n],n));return new ve(this.context,e)},pluck:function(t){return this.map((function(e){return e[t]}))},pop:be.pop,push:be.push,reduce:be.reduce||function(t,e){return u(this,t,e,0,this.length,1)},reduceRight:be.reduceRight||function(t,e){return u(this,t,e,this.length-1,-1,-1)},reverse:be.reverse,selector:null,shift:be.shift,slice:function(){return new ve(this.context,this)},sort:be.sort,splice:be.splice,toArray:function(){return be.slice.call(this)},to$:function(){return t(this)},toJQuery:function(){return t(this)},unique:function(){return new ve(this.context,ie(this))},unshift:be.unshift}),ve.extend=function(t,e,n){if(n.length&&e&&(e instanceof ve||e.__dt_wrapper)){var a,s=function(t,e,n){return function(){var a=e.apply(t,arguments);return ve.extend(a,a,n.methodExt),a}},r=0;for(a=n.length;r<a;r++){var o=n[r];e[o.name]="function"===o.type?s(t,o.val,o):"object"===o.type?{}:o.val,e[o.name].__dt_wrapper=!0,ve.extend(t,e[o.name],o.propExt)}}},ve.register=Ut=function(e,n){if(t.isArray(e))for(var a=0,s=e.length;a<s;a++)ve.register(e[a],n);else{s=e.split(".");var r,o=me;for(e=0,a=s.length;e<a;e++){var i=(r=-1!==s[e].indexOf("()"))?s[e].replace("()",""):s[e];t:{for(var l=0,c=o.length;l<c;l++)if(o[l].name===i){l=o[l];break t}l=null}l||(l={name:i,val:{},methodExt:[],propExt:[],type:"object"},o.push(l)),e===a-1?(l.val=n,l.type="function"==typeof n?"function":t.isPlainObject(n)?"object":"other"):o=r?l.methodExt:l.propExt}}},ve.registerPlural=Vt=function(e,n,s){ve.register(e,s),ve.register(n,(function(){var e=s.apply(this,arguments);return e===this?this:e instanceof ve?e.length?t.isArray(e[0])?new ve(e.context,e[0]):e[0]:a:e}))};Ut("tables()",(function(e){return e?new ve(function(e,n){if("number"==typeof e)return[n[e]];var a=t.map(n,(function(t,e){return t.nTable}));return t(a).filter(e).map((function(e){return e=t.inArray(this,a),n[e]})).toArray()}(e,this.context)):this})),Ut("table()",(function(t){var e=(t=this.tables(t)).context;return e.length?new ve(e[0]):t})),Vt("tables().nodes()","table().node()",(function(){return this.iterator("table",(function(t){return t.nTable}),1)})),Vt("tables().body()","table().body()",(function(){return this.iterator("table",(function(t){return t.nTBody}),1)})),Vt("tables().header()","table().header()",(function(){return this.iterator("table",(function(t){return t.nTHead}),1)})),Vt("tables().footer()","table().footer()",(function(){return this.iterator("table",(function(t){return t.nTFoot}),1)})),Vt("tables().containers()","table().container()",(function(){return this.iterator("table",(function(t){return t.nTableWrapper}),1)})),Ut("draw()",(function(t){return this.iterator("table",(function(e){"page"===t?E(e):("string"==typeof t&&(t="full-hold"!==t),M(e,!1===t))}))})),Ut("page()",(function(t){return t===a?this.page.info().page:this.iterator("table",(function(e){ct(e,t)}))})),Ut("page.info()",(function(t){if(0===this.context.length)return a;var e=(t=this.context[0])._iDisplayStart,n=t.oFeatures.bPaginate?t._iDisplayLength:-1,s=t.fnRecordsDisplay(),r=-1===n;return{page:r?0:Math.floor(e/n),pages:r?1:Math.ceil(s/n),start:e,end:t.fnDisplayEnd(),length:n,recordsTotal:t.fnRecordsTotal(),recordsDisplay:s,serverSide:"ssp"===Nt(t)}})),Ut("page.len()",(function(t){return t===a?0!==this.context.length?this.context[0]._iDisplayLength:a:this.iterator("table",(function(e){ot(e,t)}))}));var ye=function(t,e,n){if(n){var a=new ve(t);a.one("draw",(function(){n(a.ajax.json())}))}if("ssp"==Nt(t))M(t,e);else{dt(t,!0);var s=t.jqXHR;s&&4!==s.readyState&&s.abort(),B(t,[],(function(n){$(t);for(var a=0,s=(n=q(t,n)).length;a<s;a++)S(t,n[a]);M(t,e),dt(t,!1)}))}};Ut("ajax.json()",(function(){var t=this.context;if(0<t.length)return t[0].json})),Ut("ajax.params()",(function(){var t=this.context;if(0<t.length)return t[0].oAjaxData})),Ut("ajax.reload()",(function(t,e){return this.iterator("table",(function(n){ye(n,!1===e,t)}))})),Ut("ajax.url()",(function(e){var n=this.context;return e===a?0===n.length?a:(n=n[0]).ajax?t.isPlainObject(n.ajax)?n.ajax.url:n.ajax:n.sAjaxSource:this.iterator("table",(function(n){t.isPlainObject(n.ajax)?n.ajax.url=e:n.ajax=e}))})),Ut("ajax.url().load()",(function(t,e){return this.iterator("table",(function(n){ye(n,!1===e,t)}))}));var Se=function(e,n,s,r,o){var i,l,c,u=[],d=typeof n;for(n&&"string"!==d&&"function"!==d&&n.length!==a||(n=[n]),d=0,l=n.length;d<l;d++){var h=n[d]&&n[d].split&&!n[d].match(/[\[\(:]/)?n[d].split(","):[n[d]],f=0;for(c=h.length;f<c;f++)(i=s("string"==typeof h[f]?t.trim(h[f]):h[f]))&&i.length&&(u=u.concat(i))}if((e=Wt.selector[e]).length)for(d=0,l=e.length;d<l;d++)u=e[d](r,o,u);return ie(u)},we=function(e){return e||(e={}),e.filter&&e.search===a&&(e.search=e.filter),t.extend({search:"none",order:"current",page:"all"},e)},_e=function(t){for(var e=0,n=t.length;e<n;e++)if(0<t[e].length)return t[0]=t[e],t[0].length=1,t.length=1,t.context=[t.context[e]],t;return t.length=0,t},De=function(e,n){var a=[],s=e.aiDisplay,r=e.aiDisplayMaster,o=n.search,i=n.order;if(n=n.page,"ssp"==Nt(e))return"removed"===o?[]:re(0,r.length);if("current"==n)for(i=e._iDisplayStart,e=e.fnDisplayEnd();i<e;i++)a.push(s[i]);else if("current"==i||"applied"==i){if("none"==o)a=r.slice();else if("applied"==o)a=s.slice();else if("removed"==o){var l={};for(i=0,e=s.length;i<e;i++)l[s[i]]=null;a=t.map(r,(function(t){return l.hasOwnProperty(t)?null:t}))}}else if("index"==i||"original"==i)for(i=0,e=e.aoData.length;i<e;i++)"none"==o?a.push(i):(-1===(r=t.inArray(i,s))&&"removed"==o||0<=r&&"applied"==o)&&a.push(i);return a};Ut("rows()",(function(e,n){e===a?e="":t.isPlainObject(e)&&(n=e,e=""),n=we(n);var s=this.iterator("table",(function(s){return function(e,n,s){var r;return Se("row",n,(function(n){var o=Qt(n),i=e.aoData;if(null!==o&&!s)return[o];if(r||(r=De(e,s)),null!==o&&-1!==t.inArray(o,r))return[o];if(null===n||n===a||""===n)return r;if("function"==typeof n)return t.map(r,(function(t){var e=i[t];return n(t,e._aData,e.nTr)?t:null}));if(n.nodeName){o=n._DT_RowIndex;var l=n._DT_CellIndex;return o!==a?i[o]&&i[o].nTr===n?[o]:[]:l?i[l.row]&&i[l.row].nTr===n.parentNode?[l.row]:[]:(o=t(n).closest("*[data-dt-row]")).length?[o.data("dt-row")]:[]}return"string"==typeof n&&"#"===n.charAt(0)&&(o=e.aIds[n.replace(/^#/,"")])!==a?[o.idx]:(o=oe(se(e.aoData,r,"nTr")),t(o).filter(n).map((function(){return this._DT_RowIndex})).toArray())}),e,s)}(s,e,n)}),1);return s.selector.rows=e,s.selector.opts=n,s})),Ut("rows().nodes()",(function(){return this.iterator("row",(function(t,e){return t.aoData[e].nTr||a}),1)})),Ut("rows().data()",(function(){return this.iterator(!0,"rows",(function(t,e){return se(t.aoData,e,"_aData")}),1)})),Vt("rows().cache()","row().cache()",(function(t){return this.iterator("row",(function(e,n){return e=e.aoData[n],"search"===t?e._aFilterData:e._aSortData}),1)})),Vt("rows().invalidate()","row().invalidate()",(function(t){return this.iterator("row",(function(e,n){A(e,n,t)}))})),Vt("rows().indexes()","row().index()",(function(){return this.iterator("row",(function(t,e){return e}),1)})),Vt("rows().ids()","row().id()",(function(t){for(var e=[],n=this.context,a=0,s=n.length;a<s;a++)for(var r=0,o=this[a].length;r<o;r++){var i=n[a].rowIdFn(n[a].aoData[this[a][r]]._aData);e.push((!0===t?"#":"")+i)}return new ve(n,e)})),Vt("rows().remove()","row().remove()",(function(){var t=this;return this.iterator("row",(function(e,n,s){var r,o,i=e.aoData,l=i[n];i.splice(n,1);var c=0;for(r=i.length;c<r;c++){var u=i[c],d=u.anCells;if(null!==u.nTr&&(u.nTr._DT_RowIndex=c),null!==d)for(u=0,o=d.length;u<o;u++)d[u]._DT_CellIndex.row=c}j(e.aiDisplayMaster,n),j(e.aiDisplay,n),j(t[s],n,!1),0<e._iRecordsDisplay&&e._iRecordsDisplay--,Et(e),(n=e.rowIdFn(l._aData))!==a&&delete e.aIds[n]})),this.iterator("table",(function(t){for(var e=0,n=t.aoData.length;e<n;e++)t.aoData[e].idx=e})),this})),Ut("rows.add()",(function(e){var n=this.iterator("table",(function(t){var n,a=[],s=0;for(n=e.length;s<n;s++){var r=e[s];r.nodeName&&"TR"===r.nodeName.toUpperCase()?a.push(w(t,r)[0]):a.push(S(t,r))}return a}),1),a=this.rows(-1);return a.pop(),t.merge(a,n),a})),Ut("row()",(function(t,e){return _e(this.rows(t,e))})),Ut("row().data()",(function(e){var n=this.context;if(e===a)return n.length&&this.length?n[0].aoData[this[0]]._aData:a;var s=n[0].aoData[this[0]];return s._aData=e,t.isArray(e)&&s.nTr.id&&T(n[0].rowId)(e,s.nTr.id),A(n[0],this[0],"data"),this})),Ut("row().node()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]].nTr||null})),Ut("row.add()",(function(e){e instanceof t&&e.length&&(e=e[0]);var n=this.iterator("table",(function(t){return e.nodeName&&"TR"===e.nodeName.toUpperCase()?w(t,e)[0]:S(t,e)}));return this.row(n[0])}));var Ce=function(t,e){var n=t.context;n.length&&(t=n[0].aoData[e!==a?e:t[0]])&&t._details&&(t._details.remove(),t._detailsShow=a,t._details=a)},xe=function(t,e){var n=t.context;n.length&&t.length&&((t=n[0].aoData[t[0]])._details&&((t._detailsShow=e)?t._details.insertAfter(t.nTr):t._details.detach(),Te(n[0])))},Te=function(t){var e=new ve(t),n=t.aoData;e.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details"),0<ae(n,"_details").length&&(e.on("draw.dt.DT_details",(function(a,s){t===s&&e.rows({page:"current"}).eq(0).each((function(t){(t=n[t])._detailsShow&&t._details.insertAfter(t.nTr)}))})),e.on("column-visibility.dt.DT_details",(function(e,a,s,r){if(t===a)for(a=m(a),s=0,r=n.length;s<r;s++)(e=n[s])._details&&e._details.children("td[colspan]").attr("colspan",a)})),e.on("destroy.dt.DT_details",(function(a,s){if(t===s)for(a=0,s=n.length;a<s;a++)n[a]._details&&Ce(e,a)})))};Ut("row().child()",(function(e,n){var s=this.context;return e===a?s.length&&this.length?s[0].aoData[this[0]]._details:a:(!0===e?this.child.show():!1===e?Ce(this):s.length&&this.length&&function(e,n,a,s){var r=[],o=function(n,a){if(t.isArray(n)||n instanceof t)for(var s=0,i=n.length;s<i;s++)o(n[s],a);else n.nodeName&&"tr"===n.nodeName.toLowerCase()?r.push(n):(s=t("<tr><td/></tr>").addClass(a),t("td",s).addClass(a).html(n)[0].colSpan=m(e),r.push(s[0]))};o(a,s),n._details&&n._details.detach(),n._details=t(r),n._detailsShow&&n._details.insertAfter(n.nTr)}(s[0],s[0].aoData[this[0]],e,n),this)})),Ut(["row().child.show()","row().child().show()"],(function(t){return xe(this,!0),this})),Ut(["row().child.hide()","row().child().hide()"],(function(){return xe(this,!1),this})),Ut(["row().child.remove()","row().child().remove()"],(function(){return Ce(this),this})),Ut("row().child.isShown()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]]._detailsShow||!1}));var Pe=/^([^:]+):(name|visIdx|visible)$/,$e=function(t,e,n,a,s){n=[],a=0;for(var r=s.length;a<r;a++)n.push(_(t,s[a],e));return n};Ut("columns()",(function(e,n){e===a?e="":t.isPlainObject(e)&&(n=e,e=""),n=we(n);var s=this.iterator("table",(function(a){return function(e,n,a){var s=e.aoColumns,r=ae(s,"sName"),o=ae(s,"nTh");return Se("column",n,(function(n){var i=Qt(n);if(""===n)return re(s.length);if(null!==i)return[0<=i?i:s.length+i];if("function"==typeof n){var l=De(e,a);return t.map(s,(function(t,a){return n(a,$e(e,a,0,0,l),o[a])?a:null}))}var c="string"==typeof n?n.match(Pe):"";if(c)switch(c[2]){case"visIdx":case"visible":if(0>(i=parseInt(c[1],10))){var u=t.map(s,(function(t,e){return t.bVisible?e:null}));return[u[u.length+i]]}return[p(e,i)];case"name":return t.map(r,(function(t,e){return t===c[1]?e:null}));default:return[]}return n.nodeName&&n._DT_CellIndex?[n._DT_CellIndex.column]:(i=t(o).filter(n).map((function(){return t.inArray(this,o)})).toArray()).length||!n.nodeName?i:(i=t(n).closest("*[data-dt-column]")).length?[i.data("dt-column")]:[]}),e,a)}(a,e,n)}),1);return s.selector.cols=e,s.selector.opts=n,s})),Vt("columns().header()","column().header()",(function(t,e){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTh}),1)})),Vt("columns().footer()","column().footer()",(function(t,e){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTf}),1)})),Vt("columns().data()","column().data()",(function(){return this.iterator("column-rows",$e,1)})),Vt("columns().dataSrc()","column().dataSrc()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].mData}),1)})),Vt("columns().cache()","column().cache()",(function(t){return this.iterator("column-rows",(function(e,n,a,s,r){return se(e.aoData,r,"search"===t?"_aFilterData":"_aSortData",n)}),1)})),Vt("columns().nodes()","column().nodes()",(function(){return this.iterator("column-rows",(function(t,e,n,a,s){return se(t.aoData,s,"anCells",e)}),1)})),Vt("columns().visible()","column().visible()",(function(e,n){var s=this,r=this.iterator("column",(function(n,s){if(e===a)return n.aoColumns[s].bVisible;var r,o=n.aoColumns,i=o[s],l=n.aoData;if(e!==a&&i.bVisible!==e){if(e){var c=t.inArray(!0,ae(o,"bVisible"),s+1);for(o=0,r=l.length;o<r;o++){var u=l[o].nTr;n=l[o].anCells,u&&u.insertBefore(n[s],n[c]||null)}}else t(ae(n.aoData,"anCells",s)).detach();i.bVisible=e}}));return e!==a&&this.iterator("table",(function(r){O(r,r.aoHeader),O(r,r.aoFooter),r.aiDisplay.length||t(r.nTBody).find("td[colspan]").attr("colspan",m(r)),Pt(r),s.iterator("column",(function(t,a){Ot(t,null,"column-visibility",[t,a,e,n])})),(n===a||n)&&s.columns.adjust()})),r})),Vt("columns().indexes()","column().index()",(function(t){return this.iterator("column",(function(e,n){return"visible"===t?g(e,n):n}),1)})),Ut("columns.adjust()",(function(){return this.iterator("table",(function(t){f(t)}),1)})),Ut("column.index()",(function(t,e){if(0!==this.context.length){var n=this.context[0];if("fromVisible"===t||"toData"===t)return p(n,e);if("fromData"===t||"toVisible"===t)return g(n,e)}})),Ut("column()",(function(t,e){return _e(this.columns(t,e))}));Ut("cells()",(function(e,n,s){if(t.isPlainObject(e)&&(e.row===a?(s=e,e=null):(s=n,n=null)),t.isPlainObject(n)&&(s=n,n=null),null===n||n===a)return this.iterator("table",(function(n){return function(e,n,s){var r,o,i,l,c,u,d,h=e.aoData,f=De(e,s),p=oe(se(h,f,"anCells")),g=t([].concat.apply([],p)),m=e.aoColumns.length;return Se("cell",n,(function(n){var s="function"==typeof n;if(null===n||n===a||s){for(o=[],i=0,l=f.length;i<l;i++)for(r=f[i],c=0;c<m;c++)u={row:r,column:c},s?(d=h[r],n(u,_(e,r,c),d.anCells?d.anCells[c]:null)&&o.push(u)):o.push(u);return o}return t.isPlainObject(n)?n.column!==a&&n.row!==a&&-1!==t.inArray(n.row,f)?[n]:[]:(s=g.filter(n).map((function(t,e){return{row:e._DT_CellIndex.row,column:e._DT_CellIndex.column}})).toArray()).length||!n.nodeName?s:(d=t(n).closest("*[data-dt-row]")).length?[{row:d.data("dt-row"),column:d.data("dt-column")}]:[]}),e,s)}(n,e,we(s))}));var r,o,i,l,c=s?{page:s.page,order:s.order,search:s.search}:{},u=this.columns(n,c),d=this.rows(e,c);return c=this.iterator("table",(function(t,e){for(t=[],r=0,o=d[e].length;r<o;r++)for(i=0,l=u[e].length;i<l;i++)t.push({row:d[e][r],column:u[e][i]});return t}),1),c=s&&s.selected?this.cells(c,s):c,t.extend(c.selector,{cols:n,rows:e,opts:s}),c})),Vt("cells().nodes()","cell().node()",(function(){return this.iterator("cell",(function(t,e,n){return(t=t.aoData[e])&&t.anCells?t.anCells[n]:a}),1)})),Ut("cells().data()",(function(){return this.iterator("cell",(function(t,e,n){return _(t,e,n)}),1)})),Vt("cells().cache()","cell().cache()",(function(t){return t="search"===t?"_aFilterData":"_aSortData",this.iterator("cell",(function(e,n,a){return e.aoData[n][t][a]}),1)})),Vt("cells().render()","cell().render()",(function(t){return this.iterator("cell",(function(e,n,a){return _(e,n,a,t)}),1)})),Vt("cells().indexes()","cell().index()",(function(){return this.iterator("cell",(function(t,e,n){return{row:e,column:n,columnVisible:g(t,n)}}),1)})),Vt("cells().invalidate()","cell().invalidate()",(function(t){return this.iterator("cell",(function(e,n,a){A(e,n,t,a)}))})),Ut("cell()",(function(t,e,n){return _e(this.cells(t,e,n))})),Ut("cell().data()",(function(t){var e=this.context,n=this[0];return t===a?e.length&&n.length?_(e[0],n[0].row,n[0].column):a:(D(e[0],n[0].row,n[0].column,t),A(e[0],n[0].row,"data",n[0].column),this)})),Ut("order()",(function(e,n){var s=this.context;return e===a?0!==s.length?s[0].aaSorting:a:("number"==typeof e?e=[[e,n]]:e.length&&!t.isArray(e[0])&&(e=Array.prototype.slice.call(arguments)),this.iterator("table",(function(t){t.aaSorting=e.slice()})))})),Ut("order.listener()",(function(t,e,n){return this.iterator("table",(function(a){Ct(a,t,e,n)}))})),Ut("order.fixed()",(function(e){if(!e){var n=this.context;return n=n.length?n[0].aaSortingFixed:a,t.isArray(n)?{pre:n}:n}return this.iterator("table",(function(n){n.aaSortingFixed=t.extend(!0,{},e)}))})),Ut(["columns().order()","column().order()"],(function(e){var n=this;return this.iterator("table",(function(a,s){var r=[];t.each(n[s],(function(t,n){r.push([n,e])})),a.aaSorting=r}))})),Ut("search()",(function(e,n,s,r){var o=this.context;return e===a?0!==o.length?o[0].oPreviousSearch.sSearch:a:this.iterator("table",(function(a){a.oFeatures.bFilter&&G(a,t.extend({},a.oPreviousSearch,{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===s||s,bCaseInsensitive:null===r||r}),1)}))})),Vt("columns().search()","column().search()",(function(e,n,s,r){return this.iterator("column",(function(o,i){var l=o.aoPreSearchCols;if(e===a)return l[i].sSearch;o.oFeatures.bFilter&&(t.extend(l[i],{sSearch:e+"",bRegex:null!==n&&n,bSmart:null===s||s,bCaseInsensitive:null===r||r}),G(o,o.oPreviousSearch,1))}))})),Ut("state()",(function(){return this.context.length?this.context[0].oSavedState:null})),Ut("state.clear()",(function(){return this.iterator("table",(function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})}))})),Ut("state.loaded()",(function(){return this.context.length?this.context[0].oLoadedState:null})),Ut("state.save()",(function(){return this.iterator("table",(function(t){Pt(t)}))})),qt.versionCheck=qt.fnVersionCheck=function(t){for(var e,n,a=qt.version.split("."),s=0,r=(t=t.split(".")).length;s<r;s++)if((e=parseInt(a[s],10)||0)!==(n=parseInt(t[s],10)||0))return e>n;return!0},qt.isDataTable=qt.fnIsDataTable=function(e){var n=t(e).get(0),a=!1;return e instanceof qt.Api||(t.each(qt.settings,(function(e,s){e=s.nScrollHead?t("table",s.nScrollHead)[0]:null;var r=s.nScrollFoot?t("table",s.nScrollFoot)[0]:null;s.nTable!==n&&e!==n&&r!==n||(a=!0)})),a)},qt.tables=qt.fnTables=function(e){var n=!1;t.isPlainObject(e)&&(n=e.api,e=e.visible);var a=t.map(qt.settings,(function(n){if(!e||e&&t(n.nTable).is(":visible"))return n.nTable}));return n?new ve(a):a},qt.camelToHungarian=r,Ut("$()",(function(e,n){return n=this.rows(n).nodes(),n=t(n),t([].concat(n.filter(e).toArray(),n.find(e).toArray()))})),t.each(["on","one","off"],(function(e,n){Ut(n+"()",(function(){var e=Array.prototype.slice.call(arguments);e[0]=t.map(e[0].split(/\s/),(function(t){return t.match(/\.dt\b/)?t:t+".dt"})).join(" ");var a=t(this.tables().nodes());return a[n].apply(a,e),this}))})),Ut("clear()",(function(){return this.iterator("table",(function(t){$(t)}))})),Ut("settings()",(function(){return new ve(this.context,this.context)})),Ut("init()",(function(){var t=this.context;return t.length?t[0].oInit:null})),Ut("data()",(function(){return this.iterator("table",(function(t){return ae(t.aoData,"_aData")})).flatten()})),Ut("destroy()",(function(n){return n=n||!1,this.iterator("table",(function(a){var s=a.nTableWrapper.parentNode,r=a.oClasses,o=a.nTable,i=a.nTBody,l=a.nTHead,c=a.nTFoot,u=t(o);i=t(i);var d,h=t(a.nTableWrapper),f=t.map(a.aoData,(function(t){return t.nTr}));a.bDestroying=!0,Ot(a,"aoDestroyCallback","destroy",[a]),n||new ve(a).columns().visible(!0),h.off(".DT").find(":not(tbody *)").off(".DT"),t(e).off(".DT-"+a.sInstance),o!=l.parentNode&&(u.children("thead").detach(),u.append(l)),c&&o!=c.parentNode&&(u.children("tfoot").detach(),u.append(c)),a.aaSorting=[],a.aaSortingFixed=[],xt(a),t(f).removeClass(a.asStripeClasses.join(" ")),t("th, td",l).removeClass(r.sSortable+" "+r.sSortableAsc+" "+r.sSortableDesc+" "+r.sSortableNone),i.children().detach(),i.append(f),u[l=n?"remove":"detach"](),h[l](),!n&&s&&(s.insertBefore(o,a.nTableReinsertBefore),u.css("width",a.sDestroyWidth).removeClass(r.sTable),(d=a.asDestroyStripes.length)&&i.children().each((function(e){t(this).addClass(a.asDestroyStripes[e%d])}))),-1!==(s=t.inArray(a,qt.settings))&&qt.settings.splice(s,1)}))})),t.each(["column","row","cell"],(function(t,e){Ut(e+"s().every()",(function(t){var n=this.selector.opts,s=this;return this.iterator(e,(function(r,o,i,l,c){t.call(s[e](o,"cell"===e?i:n,"cell"===e?n:a),o,i,l,c)}))}))})),Ut("i18n()",(function(e,n,s){var r=this.context[0];return(e=x(e)(r.oLanguage))===a&&(e=n),s!==a&&t.isPlainObject(e)&&(e=e[s]!==a?e[s]:e._),e.replace("%d",s)})),qt.version="1.10.20",qt.settings=[],qt.models={},qt.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},qt.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},qt.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},qt.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(t){try{return JSON.parse((-1===t.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+t.sInstance+"_"+location.pathname))}catch(t){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(t,e){try{(-1===t.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+t.sInstance+"_"+location.pathname,JSON.stringify(e))}catch(t){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:Drupal.t(": activate to sort column ascending"),sSortDescending:Drupal.t(": activate to sort column descending")},oPaginate:{sFirst:Drupal.t("First"),sLast:Drupal.t("Last"),sNext:Drupal.t("Next"),sPrevious:Drupal.t("Previous")},sEmptyTable:Drupal.t("No data available in table"),sInfo:Drupal.t("Showing _START_ to _END_ of _TOTAL_ entries"),sInfoEmpty:Drupal.t("Showing 0 to 0 of 0 entries"),sInfoFiltered:Drupal.t("(filtered from _MAX_ total entries)"),sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:Drupal.t("Show _MENU_ entries"),sLoadingRecords:Drupal.t("Loading..."),sProcessing:Drupal.t("Processing..."),sSearch:Drupal.t("Search:"),sSearchPlaceholder:"",sUrl:"",sZeroRecords:Drupal.t("No matching records found")},oSearch:t.extend({},qt.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},s(qt.defaults),qt.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},s(qt.defaults.column),qt.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:a,oAjaxData:a,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Nt(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Nt(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var t=this._iDisplayLength,e=this._iDisplayStart,n=e+t,a=this.aiDisplay.length,s=this.oFeatures,r=s.bPaginate;return s.bServerSide?!1===r||-1===t?e+a:Math.min(e+t,this._iRecordsDisplay):!r||n>a||-1===t?a:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},qt.ext=Wt={buttons:{},classes:{},build:"dt/dt-1.10.20/af-2.3.4/sp-1.0.1",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:qt.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:qt.version},t.extend(Wt,{afnFiltering:Wt.search,aTypes:Wt.type.detect,ofnSearch:Wt.type.search,oSort:Wt.type.order,afnSortData:Wt.order,aoFeatures:Wt.feature,oApi:Wt.internal,oStdClasses:Wt.classes,oPagination:Wt.pager}),t.extend(qt.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var je=qt.ext.pager;t.extend(je,{simple:function(t,e){return["previous","next"]},full:function(t,e){return["first","previous","next","last"]},numbers:function(t,e){return[kt(t,e)]},simple_numbers:function(t,e){return["previous",kt(t,e),"next"]},full_numbers:function(t,e){return["first","previous",kt(t,e),"next","last"]},first_last_numbers:function(t,e){return["first",kt(t,e),"last"]},_numbers:kt,numbers_length:7}),t.extend(!0,qt.ext.renderer,{pageButton:{_:function(e,s,r,o,i,l){var c,u,d=e.oClasses,h=e.oLanguage.oPaginate,f=e.oLanguage.oAria.paginate||{},p=0,g=function(n,a){var s,o=d.sPageButtonDisabled,m=function(t){ct(e,t.data.action,!0)},b=0;for(s=a.length;b<s;b++){var v=a[b];if(t.isArray(v)){var y=t("<"+(v.DT_el||"div")+"/>").appendTo(n);g(y,v)}else{switch(c=null,u=v,y=e.iTabIndex,v){case"ellipsis":n.append('<span class="ellipsis">...</span>');break;case"first":c=h.sFirst,0===i&&(y=-1,u+=" "+o);break;case"previous":c=h.sPrevious,0===i&&(y=-1,u+=" "+o);break;case"next":c=h.sNext,i===l-1&&(y=-1,u+=" "+o);break;case"last":c=h.sLast,i===l-1&&(y=-1,u+=" "+o);break;default:c=v+1,u=i===v?d.sPageButtonActive:""}null!==c&&(Rt(y=t("<a>",{class:d.sPageButton+" "+u,"aria-controls":e.sTableId,"aria-label":f[v],"data-dt-idx":p,tabindex:y,id:0===r&&"string"==typeof v?e.sTableId+"_"+v:null}).html(c).appendTo(n),{action:v},m),p++)}}};try{var m=t(s).find(n.activeElement).data("dt-idx")}catch(t){}g(t(s).empty(),o),m!==a&&t(s).find("[data-dt-idx="+m+"]").focus()}}}),t.extend(qt.ext.type.detect,[function(t,e){return e=e.oLanguage.sDecimal,ee(t,e)?"num"+e:null},function(t,e){return(!t||t instanceof Date||Jt.test(t))&&(null!==(e=Date.parse(t))&&!isNaN(e)||Kt(t))?"date":null},function(t,e){return e=e.oLanguage.sDecimal,ee(t,e,!0)?"num-fmt"+e:null},function(t,e){return e=e.oLanguage.sDecimal,ne(t,e)?"html-num"+e:null},function(t,e){return e=e.oLanguage.sDecimal,ne(t,e,!0)?"html-num-fmt"+e:null},function(t,e){return Kt(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),t.extend(qt.ext.type.search,{html:function(t){return Kt(t)?t:"string"==typeof t?t.replace(Gt," ").replace(zt,""):""},string:function(t){return Kt(t)?t:"string"==typeof t?t.replace(Gt," "):t}});var Ae=function(t,e,n,a){return 0===t||t&&"-"!==t?(e&&(t=te(t,e)),t.replace&&(n&&(t=t.replace(n,"")),a&&(t=t.replace(a,""))),1*t):-1/0};t.extend(Wt.type.order,{"date-pre":function(t){return t=Date.parse(t),isNaN(t)?-1/0:t},"html-pre":function(t){return Kt(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return Kt(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return t<e?-1:t>e?1:0},"string-desc":function(t,e){return t<e?1:t>e?-1:0}}),Ht(""),t.extend(!0,qt.ext.renderer,{header:{_:function(e,n,a,s){t(e.nTable).on("order.dt.DT",(function(t,r,o,i){e===r&&(t=a.idx,n.removeClass(a.sSortingClass+" "+s.sSortAsc+" "+s.sSortDesc).addClass("asc"==i[t]?s.sSortAsc:"desc"==i[t]?s.sSortDesc:a.sSortingClass))}))},jqueryui:function(e,n,a,s){t("<div/>").addClass(s.sSortJUIWrapper).append(n.contents()).append(t("<span/>").addClass(s.sSortIcon+" "+a.sSortingClassJUI)).appendTo(n),t(e.nTable).on("order.dt.DT",(function(t,r,o,i){e===r&&(t=a.idx,n.removeClass(s.sSortAsc+" "+s.sSortDesc).addClass("asc"==i[t]?s.sSortAsc:"desc"==i[t]?s.sSortDesc:a.sSortingClass),n.find("span."+s.sSortIcon).removeClass(s.sSortJUIAsc+" "+s.sSortJUIDesc+" "+s.sSortJUI+" "+s.sSortJUIAscAllowed+" "+s.sSortJUIDescAllowed).addClass("asc"==i[t]?s.sSortJUIAsc:"desc"==i[t]?s.sSortJUIDesc:a.sSortingClassJUI))}))}}});var Ie=function(t){return"string"==typeof t?t.replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):t};return qt.render={number:function(t,e,n,a,s){return{display:function(r){if("number"!=typeof r&&"string"!=typeof r)return r;var o=0>r?"-":"",i=parseFloat(r);return isNaN(i)?Ie(r):(i=i.toFixed(n),r=Math.abs(i),i=parseInt(r,10),r=n?e+(r-i).toFixed(n).substring(2):"",o+(a||"")+i.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t)+r+(s||""))}}},text:function(){return{display:Ie,filter:Ie}}},t.extend(qt.ext.internal,{_fnExternApiFunc:Bt,_fnBuildAjax:B,_fnAjaxUpdate:W,_fnAjaxParameters:U,_fnAjaxUpdateDraw:V,_fnAjaxDataSrc:q,_fnAddColumn:d,_fnColumnOptions:h,_fnAdjustColumnSizing:f,_fnVisibleToColumnIndex:p,_fnColumnIndexToVisible:g,_fnVisbleColumns:m,_fnGetColumns:b,_fnColumnTypes:v,_fnApplyColumnDefs:y,_fnHungarianMap:s,_fnCamelToHungarian:r,_fnLanguageCompat:o,_fnBrowserDetect:c,_fnAddData:S,_fnAddTr:w,_fnNodeToDataIndex:function(t,e){return e._DT_RowIndex!==a?e._DT_RowIndex:null},_fnNodeToColumnIndex:function(e,n,a){return t.inArray(a,e.aoData[n].anCells)},_fnGetCellData:_,_fnSetCellData:D,_fnSplitObjNotation:C,_fnGetObjectDataFn:x,_fnSetObjectDataFn:T,_fnGetDataMaster:P,_fnClearTable:$,_fnDeleteIndex:j,_fnInvalidate:A,_fnGetRowElements:I,_fnCreateTr:F,_fnBuildHead:L,_fnDrawHead:O,_fnDraw:E,_fnReDraw:M,_fnAddOptionsHtml:N,_fnDetectHeader:k,_fnGetUniqueThs:H,_fnFeatureHtmlFilter:X,_fnFilterComplete:G,_fnFilterCustom:z,_fnFilterColumn:J,_fnFilter:Y,_fnFilterCreateSearch:Z,_fnEscapeRegex:de,_fnFilterData:K,_fnFeatureHtmlInfo:et,_fnUpdateInfo:nt,_fnInfoMacros:at,_fnInitialise:st,_fnInitComplete:rt,_fnLengthChange:ot,_fnFeatureHtmlLength:it,_fnFeatureHtmlPaginate:lt,_fnPageChange:ct,_fnFeatureHtmlProcessing:ut,_fnProcessingDisplay:dt,_fnFeatureHtmlTable:ht,_fnScrollDraw:ft,_fnApplyToChildren:pt,_fnCalculateColumnWidths:gt,_fnThrottle:ge,_fnConvertToWidth:mt,_fnGetWidestNode:bt,_fnGetMaxLenString:vt,_fnStringToCss:yt,_fnSortFlatten:St,_fnSort:wt,_fnSortAria:_t,_fnSortListener:Dt,_fnSortAttachListener:Ct,_fnSortingClasses:xt,_fnSortData:Tt,_fnSaveState:Pt,_fnLoadState:$t,_fnSettingsFromNode:jt,_fnLog:At,_fnMap:It,_fnBindAction:Rt,_fnCallbackReg:Lt,_fnCallbackFire:Ot,_fnLengthOverflow:Et,_fnRenderer:Mt,_fnDataSource:Nt,_fnRowAttributes:R,_fnExtend:Ft,_fnCalculateEnd:function(){}}),t.fn.dataTable=qt,qt.$=t,t.fn.dataTableSettings=qt.settings,t.fn.dataTableExt=qt.ext,t.fn.DataTable=function(e){return t(this).dataTable(e).api()},t.each(qt,(function(e,n){t.fn.DataTable[e]=n})),t.fn.dataTable})),($jscomp=$jscomp||{}).scope={},$jscomp.arrayIteratorImpl=function(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}},$jscomp.arrayIterator=function(t){return{next:$jscomp.arrayIteratorImpl(t)}},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},$jscomp.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:"undefined"!=typeof global&&null!=global?global:t},$jscomp.global=$jscomp.getGlobal(this),$jscomp.SYMBOL_PREFIX="jscomp_symbol_",$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){},$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)},$jscomp.SymbolClass=function(t,e){this.$jscomp$symbol$id_=t,$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:e})},$jscomp.SymbolClass.prototype.toString=function(){return this.$jscomp$symbol$id_},$jscomp.Symbol=function(){var t=0;return function e(n){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new $jscomp.SymbolClass($jscomp.SYMBOL_PREFIX+(n||"")+"_"+t++,n)}}(),$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var t=$jscomp.global.Symbol.iterator;t||(t=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("Symbol.iterator")),"function"!=typeof Array.prototype[t]&&$jscomp.defineProperty(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}}),$jscomp.initSymbolIterator=function(){}},$jscomp.initSymbolAsyncIterator=function(){$jscomp.initSymbol();var t=$jscomp.global.Symbol.asyncIterator;t||(t=$jscomp.global.Symbol.asyncIterator=$jscomp.global.Symbol("Symbol.asyncIterator")),$jscomp.initSymbolAsyncIterator=function(){}},$jscomp.iteratorPrototype=function(t){return $jscomp.initSymbolIterator(),(t={next:t})[$jscomp.global.Symbol.iterator]=function(){return this},t},$jscomp.iteratorFromArray=function(t,e){$jscomp.initSymbolIterator(),t instanceof String&&(t+="");var n=0,a={next:function(){if(n<t.length){var s=n++;return{value:e(s,t[s]),done:!1}}return a.next=function(){return{done:!0,value:void 0}},a.next()}};return a[Symbol.iterator]=function(){return a},a},$jscomp.polyfill=function(t,e,n,a){if(e){for(n=$jscomp.global,t=t.split("."),a=0;a<t.length-1;a++){var s=t[a];s in n||(n[s]={}),n=n[s]}(e=e(a=n[t=t[t.length-1]]))!=a&&null!=e&&$jscomp.defineProperty(n,t,{configurable:!0,writable:!0,value:e})}},$jscomp.polyfill("Array.prototype.keys",(function(t){return t||function(){return $jscomp.iteratorFromArray(this,(function(t){return t}))}}),"es6","es3"),function(t){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],(function(e){return t(e,window,document)})):"object"==typeof exports?module.exports=function(e,n){return e||(e=window),n&&n.fn.dataTable||(n=require("datatables.net")(e,n).$),t(n,e,e.document)}:t(jQuery,window,document)}((function(t,e,n,a){var s=t.fn.dataTable,r=0,o=function(e,n){if(!s.versionCheck||!s.versionCheck("1.10.8"))throw"Warning: AutoFill requires DataTables 1.10.8 or greater";this.c=t.extend(!0,{},s.defaults.autoFill,o.defaults,n),this.s={dt:new s.Api(e),namespace:".autoFill"+r++,scroll:{},scrollInterval:null,handle:{height:0,width:0},enabled:!1},this.dom={handle:t('<div class="dt-autofill-handle"/>'),select:{top:t('<div class="dt-autofill-select top"/>'),right:t('<div class="dt-autofill-select right"/>'),bottom:t('<div class="dt-autofill-select bottom"/>'),left:t('<div class="dt-autofill-select left"/>')},background:t('<div class="dt-autofill-background"/>'),list:t('<div class="dt-autofill-list">'+this.s.dt.i18n("autoFill.info","")+"<ul/></div>"),dtScroll:null,offsetParent:null},this._constructor()};t.extend(o.prototype,{enabled:function(){return this.s.enabled},enable:function(t){var e=this;return!1===t?this.disable():(this.s.enabled=!0,this._focusListener(),this.dom.handle.on("mousedown",(function(t){return e._mousedown(t),!1})),this)},disable:function(){return this.s.enabled=!1,this._focusListenerRemove(),this},_constructor:function(){var e=this,n=this.s.dt,a=t("div.dataTables_scrollBody",this.s.dt.table().container());n.settings()[0].autoFill=this,a.length&&(this.dom.dtScroll=a,"static"===a.css("position")&&a.css("position","relative")),!1!==this.c.enable&&this.enable(),n.on("destroy.autoFill",(function(){e._focusListenerRemove()}))},_attach:function(e){var n=this.s.dt,a=n.cell(e).index(),s=this.dom.handle,r=this.s.handle;a&&-1!==n.columns(this.c.columns).indexes().indexOf(a.column)?(this.dom.offsetParent||(this.dom.offsetParent=t(n.table().node()).offsetParent()),r.height&&r.width||(s.appendTo("body"),r.height=s.outerHeight(),r.width=s.outerWidth()),n=this._getPosition(e,this.dom.offsetParent),this.dom.attachedTo=e,s.css({top:n.top+e.offsetHeight-r.height,left:n.left+e.offsetWidth-r.width}).appendTo(this.dom.offsetParent)):this._detach()},_actionSelector:function(e){var n=this,a=this.s.dt,s=o.actions,r=[];if(t.each(s,(function(t,n){n.available(a,e)&&r.push(t)})),1===r.length&&!1===this.c.alwaysAsk){var i=s[r[0]].execute(a,e);this._update(i,e)}else{var l=this.dom.list.children("ul").empty();r.push("cancel"),t.each(r,(function(r,i){l.append(t("<li/>").append('<div class="dt-autofill-question">'+s[i].option(a,e)+"<div>").append(t('<div class="dt-autofill-button">').append(t('<button class="'+o.classes.btn+'">'+a.i18n("autoFill.button",">")+"</button>").on("click",(function(){var r=s[i].execute(a,e,t(this).closest("li"));n._update(r,e),n.dom.background.remove(),n.dom.list.remove()})))))})),this.dom.background.appendTo("body"),this.dom.list.appendTo("body"),this.dom.list.css("margin-top",this.dom.list.outerHeight()/2*-1)}},_detach:function(){this.dom.attachedTo=null,this.dom.handle.detach()},_drawSelection:function(e,n){var a=this.s.dt;n=this.s.start;var s=t(this.dom.start),r={row:this.c.vertical?a.rows({page:"current"}).nodes().indexOf(e.parentNode):n.row,column:this.c.horizontal?t(e).index():n.column};e=a.column.index("toData",r.column);var o=a.row(":eq("+r.row+")",{page:"current"});if(o=t(a.cell(o.index(),e).node()),a.cell(o).any()&&-1!==a.columns(this.c.columns).indexes().indexOf(e)){this.s.end=r,a=n.row<r.row?s:o;var i=n.row<r.row?o:s;e=n.column<r.column?s:o,s=n.column<r.column?o:s,a=this._getPosition(a.get(0)).top,e=this._getPosition(e.get(0)).left,n=this._getPosition(i.get(0)).top+i.outerHeight()-a,s=this._getPosition(s.get(0)).left+s.outerWidth()-e,(r=this.dom.select).top.css({top:a,left:e,width:s}),r.left.css({top:a,left:e,height:n}),r.bottom.css({top:a+n,left:e,width:s}),r.right.css({top:a,left:e+s,height:n})}},_editor:function(t){var e=this.s.dt,n=this.c.editor;if(n){for(var s={},r=[],o=n.fields(),i=0,l=t.length;i<l;i++)for(var c=0,u=t[i].length;c<u;c++){var d=t[i][c],h=e.settings()[0].aoColumns[d.index.column],f=h.editField;if(f===a){h=h.mData;for(var p=0,g=o.length;p<g;p++){var m=n.field(o[p]);if(m.dataSrc()===h){f=m.name();break}}}if(!f)throw"Could not automatically determine field data. Please see https://datatables.net/tn/11";s[f]||(s[f]={}),h=e.row(d.index.row).id(),s[f][h]=d.set,r.push(d.index)}n.bubble(r,!1).multiSet(s).submit()}},_emitEvent:function(e,n){this.s.dt.iterator("table",(function(a,s){t(a.nTable).triggerHandler(e+".dt",n)}))},_focusListener:function(){var e=this,a=this.s.dt,s=this.s.namespace,r=null!==this.c.focus?this.c.focus:a.init().keys||a.settings()[0].keytable?"focus":"hover";"focus"===r?a.on("key-focus.autoFill",(function(t,n,a){e._attach(a.node())})).on("key-blur.autoFill",(function(t,n,a){e._detach()})):"click"===r?(t(a.table().body()).on("click"+s,"td, th",(function(t){e._attach(this)})),t(n.body).on("click"+s,(function(n){t(n.target).parents().filter(a.table().body()).length||e._detach()}))):t(a.table().body()).on("mouseenter"+s,"td, th",(function(t){e._attach(this)})).on("mouseleave"+s,(function(n){t(n.relatedTarget).hasClass("dt-autofill-handle")||e._detach()}))},_focusListenerRemove:function(){var e=this.s.dt;e.off(".autoFill"),t(e.table().body()).off(this.s.namespace),t(n.body).off(this.s.namespace)},_getPosition:function(e,n){var a=0,s=0;n||(n=t(t(this.s.dt.table().node())[0].offsetParent));do{var r=e.offsetTop,o=e.offsetLeft,i=t(e.offsetParent);if(a+=r+1*parseInt(i.css("border-top-width")),s+=o+1*parseInt(i.css("border-left-width")),"body"===e.nodeName.toLowerCase())break;e=i.get(0)}while(i.get(0)!==n.get(0));return{top:a,left:s}},_mousedown:function(a){var s=this,r=this.s.dt;this.dom.start=this.dom.attachedTo,this.s.start={row:r.rows({page:"current"}).nodes().indexOf(t(this.dom.start).parent()[0]),column:t(this.dom.start).index()},t(n.body).on("mousemove.autoFill",(function(t){s._mousemove(t)})).on("mouseup.autoFill",(function(t){s._mouseup(t)}));var o=this.dom.select;r=t(r.table().node()).offsetParent(),o.top.appendTo(r),o.left.appendTo(r),o.right.appendTo(r),o.bottom.appendTo(r),this._drawSelection(this.dom.start,a),this.dom.handle.css("display","none"),a=this.dom.dtScroll,this.s.scroll={windowHeight:t(e).height(),windowWidth:t(e).width(),dtTop:a?a.offset().top:null,dtLeft:a?a.offset().left:null,dtHeight:a?a.outerHeight():null,dtWidth:a?a.outerWidth():null}},_mousemove:function(t){var e=t.target.nodeName.toLowerCase();"td"!==e&&"th"!==e||(this._drawSelection(t.target,t),this._shiftScroll(t))},_mouseup:function(e){t(n.body).off(".autoFill");var s=this,r=this.s.dt,o=this.dom.select;o.top.remove(),o.left.remove(),o.right.remove(),o.bottom.remove(),this.dom.handle.css("display","block"),o=this.s.start;var i=this.s.end;if(o.row!==i.row||o.column!==i.column){var l=r.cell(":eq("+o.row+")",o.column+":visible",{page:"current"});if(t("div.DTE",l.node()).length){var c=r.editor();c.on("submitSuccess.dtaf close.dtaf",(function(){c.off(".dtaf"),setTimeout((function(){s._mouseup(e)}),100)})).on("submitComplete.dtaf preSubmitCancelled.dtaf close.dtaf",(function(){c.off(".dtaf")})),c.submit()}else{var u=this._range(o.row,i.row);o=this._range(o.column,i.column),i=[];for(var d=r.settings()[0],h=d.aoColumns,f=r.columns(this.c.columns).indexes(),p=0;p<u.length;p++)i.push(t.map(o,(function(t){var e=r.row(":eq("+u[p]+")",{page:"current"});t=r.cell(e.index(),t+":visible"),e=t.data();var n=t.index(),s=h[n.column].editField;if(s!==a&&(e=d.oApi._fnGetObjectDataFn(s)(r.row(n.row).data())),-1!==f.indexOf(n.column))return{cell:t,data:e,label:t.data(),index:n}})));this._actionSelector(i),clearInterval(this.s.scrollInterval),this.s.scrollInterval=null}}},_range:function(t,e){var n=[];if(t<=e)for(;t<=e;t++)n.push(t);else for(;t>=e;t--)n.push(t);return n},_shiftScroll:function(t){var e,a,s,r,o=this,i=this.s.scroll,l=!1,c=t.pageY-n.body.scrollTop,u=t.pageX-n.body.scrollLeft;65>c?e=-5:c>i.windowHeight-65&&(e=5),65>u?a=-5:u>i.windowWidth-65&&(a=5),null!==i.dtTop&&t.pageY<i.dtTop+65?s=-5:null!==i.dtTop&&t.pageY>i.dtTop+i.dtHeight-65&&(s=5),null!==i.dtLeft&&t.pageX<i.dtLeft+65?r=-5:null!==i.dtLeft&&t.pageX>i.dtLeft+i.dtWidth-65&&(r=5),e||a||s||r?(i.windowVert=e,i.windowHoriz=a,i.dtVert=s,i.dtHoriz=r,l=!0):this.s.scrollInterval&&(clearInterval(this.s.scrollInterval),this.s.scrollInterval=null),!this.s.scrollInterval&&l&&(this.s.scrollInterval=setInterval((function(){if(i.windowVert&&(n.body.scrollTop+=i.windowVert),i.windowHoriz&&(n.body.scrollLeft+=i.windowHoriz),i.dtVert||i.dtHoriz){var t=o.dom.dtScroll[0];i.dtVert&&(t.scrollTop+=i.dtVert),i.dtHoriz&&(t.scrollLeft+=i.dtHoriz)}}),20))},_update:function(t,e){if(!1!==t){var n=(t=this.s.dt).columns(this.c.columns).indexes();if(this._emitEvent("preAutoFill",[t,e]),this._editor(e),null!==this.c.update?this.c.update:!this.c.editor){for(var a=0,s=e.length;a<s;a++)for(var r=0,o=e[a].length;r<o;r++){var i=e[a][r];-1!==n.indexOf(i.index.column)&&i.cell.data(i.set)}t.draw(!1)}this._emitEvent("autoFill",[t,e])}}}),o.actions={increment:{available:function(t,e){return t=e[0][0].label,!isNaN(t-parseFloat(t))},option:function(t,e){return t.i18n("autoFill.increment",'Increment / decrement each cell by: <input type="number" value="1">')},execute:function(e,n,a){e=1*n[0][0].data,a=1*t("input",a).val();for(var s=0,r=n.length;s<r;s++)for(var o=0,i=n[s].length;o<i;o++)n[s][o].set=e,e+=a}},fill:{available:function(t,e){return!0},option:function(t,e){return t.i18n("autoFill.fill","Fill all cells with <i>"+e[0][0].label+"</i>")},execute:function(t,e,n){t=e[0][0].data,n=0;for(var a=e.length;n<a;n++)for(var s=0,r=e[n].length;s<r;s++)e[n][s].set=t}},fillHorizontal:{available:function(t,e){return 1<e.length&&1<e[0].length},option:function(t,e){return t.i18n("autoFill.fillHorizontal","Fill cells horizontally")},execute:function(t,e,n){for(t=0,n=e.length;t<n;t++)for(var a=0,s=e[t].length;a<s;a++)e[t][a].set=e[t][0].data}},fillVertical:{available:function(t,e){return 1<e.length&&1<e[0].length},option:function(t,e){return t.i18n("autoFill.fillVertical","Fill cells vertically")},execute:function(t,e,n){for(t=0,n=e.length;t<n;t++)for(var a=0,s=e[t].length;a<s;a++)e[t][a].set=e[0][a].data}},cancel:{available:function(){return!1},option:function(t){return t.i18n("autoFill.cancel","Cancel")},execute:function(){return!1}}},o.version="2.3.4",o.defaults={alwaysAsk:!1,focus:null,columns:"",enable:!0,update:null,editor:null,vertical:!0,horizontal:!0},o.classes={btn:"btn"};var i=t.fn.dataTable.Api;return i.register("autoFill()",(function(){return this})),i.register("autoFill().enabled()",(function(){var t=this.context[0];return!!t.autoFill&&t.autoFill.enabled()})),i.register("autoFill().enable()",(function(t){return this.iterator("table",(function(e){e.autoFill&&e.autoFill.enable(t)}))})),i.register("autoFill().disable()",(function(){return this.iterator("table",(function(t){t.autoFill&&t.autoFill.disable()}))})),t(n).on("preInit.dt.autofill",(function(e,n,a){"dt"===e.namespace&&(e=n.oInit.autoFill,a=s.defaults.autoFill,e||a)&&(a=t.extend({},e,a),!1!==e&&new o(n,a))})),s.AutoFill=o,s.AutoFill=o})),($jscomp=$jscomp||{}).scope={},$jscomp.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:"undefined"!=typeof global&&null!=global?global:t},$jscomp.global=$jscomp.getGlobal(this),$jscomp.checkEs6ConformanceViaProxy=function(){try{var t={},e=Object.create(new $jscomp.global.Proxy(t,{get:function(n,a,s){return n==t&&"q"==a&&s==e}}));return!0===e.q}catch(t){return!1}},$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1,$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy(),$jscomp.arrayIteratorImpl=function(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}},$jscomp.arrayIterator=function(t){return{next:$jscomp.arrayIteratorImpl(t)}},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},$jscomp.SYMBOL_PREFIX="jscomp_symbol_",$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){},$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)},$jscomp.SymbolClass=function(t,e){this.$jscomp$symbol$id_=t,$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:e})},$jscomp.SymbolClass.prototype.toString=function(){return this.$jscomp$symbol$id_},$jscomp.Symbol=function(){var t=0;return function e(n){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new $jscomp.SymbolClass($jscomp.SYMBOL_PREFIX+(n||"")+"_"+t++,n)}}(),$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var t=$jscomp.global.Symbol.iterator;t||(t=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("Symbol.iterator")),"function"!=typeof Array.prototype[t]&&$jscomp.defineProperty(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}}),$jscomp.initSymbolIterator=function(){}},$jscomp.initSymbolAsyncIterator=function(){$jscomp.initSymbol();var t=$jscomp.global.Symbol.asyncIterator;t||(t=$jscomp.global.Symbol.asyncIterator=$jscomp.global.Symbol("Symbol.asyncIterator")),$jscomp.initSymbolAsyncIterator=function(){}},$jscomp.iteratorPrototype=function(t){return $jscomp.initSymbolIterator(),(t={next:t})[$jscomp.global.Symbol.iterator]=function(){return this},t},$jscomp.makeIterator=function(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):$jscomp.arrayIterator(t)},$jscomp.owns=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},$jscomp.polyfill=function(t,e,n,a){if(e){for(n=$jscomp.global,t=t.split("."),a=0;a<t.length-1;a++){var s=t[a];s in n||(n[s]={}),n=n[s]}(e=e(a=n[t=t[t.length-1]]))!=a&&null!=e&&$jscomp.defineProperty(n,t,{configurable:!0,writable:!0,value:e})}},$jscomp.polyfill("WeakMap",(function(t){function e(){}function n(t){if(!$jscomp.owns(t,s)){var n=new e;$jscomp.defineProperty(t,s,{value:n})}}function a(t){var a=Object[t];a&&(Object[t]=function(t){return t instanceof e?t:(n(t),a(t))})}if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(t&&$jscomp.ES6_CONFORMANCE)return t}else if(function(){if(!t||!Object.seal)return!1;try{var e=Object.seal({}),n=Object.seal({}),a=new t([[e,2],[n,3]]);return 2==a.get(e)&&3==a.get(n)&&(a.delete(e),a.set(n,4),!a.has(e)&&4==a.get(n))}catch(t){return!1}}())return t;var s="$jscomp_hidden_"+Math.random();a("freeze"),a("preventExtensions"),a("seal");var r=0,o=function(t){if(this.id_=(r+=Math.random()+1).toString(),t){t=$jscomp.makeIterator(t);for(var e;!(e=t.next()).done;)e=e.value,this.set(e[0],e[1])}};return o.prototype.set=function(t,e){if(n(t),!$jscomp.owns(t,s))throw Error("WeakMap key fail: "+t);return t[s][this.id_]=e,this},o.prototype.get=function(t){return $jscomp.owns(t,s)?t[s][this.id_]:void 0},o.prototype.has=function(t){return $jscomp.owns(t,s)&&$jscomp.owns(t[s],this.id_)},o.prototype.delete=function(t){return!(!$jscomp.owns(t,s)||!$jscomp.owns(t[s],this.id_))&&delete t[s][this.id_]},o}),"es6","es3"),$jscomp.MapEntry=function(){},$jscomp.polyfill("Map",(function(t){if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(t&&$jscomp.ES6_CONFORMANCE)return t}else if(function(){if($jscomp.ASSUME_NO_NATIVE_MAP||!t||"function"!=typeof t||!t.prototype.entries||"function"!=typeof Object.seal)return!1;try{var e=Object.seal({x:4}),n=new t($jscomp.makeIterator([[e,"s"]]));if("s"!=n.get(e)||1!=n.size||n.get({x:4})||n.set({x:4},"t")!=n||2!=n.size)return!1;var a=n.entries(),s=a.next();return!s.done&&s.value[0]==e&&"s"==s.value[1]&&!((s=a.next()).done||4!=s.value[0].x||"t"!=s.value[1]||!a.next().done)}catch(t){return!1}}())return t;$jscomp.initSymbolIterator();var e=new WeakMap,n=function(t){if(this.data_={},this.head_=r(),this.size=0,t){t=$jscomp.makeIterator(t);for(var e;!(e=t.next()).done;)e=e.value,this.set(e[0],e[1])}};n.prototype.set=function(t,e){var n=a(this,t=0===t?0:t);return n.list||(n.list=this.data_[n.id]=[]),n.entry?n.entry.value=e:(n.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:t,value:e},n.list.push(n.entry),this.head_.previous.next=n.entry,this.head_.previous=n.entry,this.size++),this},n.prototype.delete=function(t){return!(!(t=a(this,t)).entry||!t.list)&&(t.list.splice(t.index,1),t.list.length||delete this.data_[t.id],t.entry.previous.next=t.entry.next,t.entry.next.previous=t.entry.previous,t.entry.head=null,this.size--,!0)},n.prototype.clear=function(){this.data_={},this.head_=this.head_.previous=r(),this.size=0},n.prototype.has=function(t){return!!a(this,t).entry},n.prototype.get=function(t){return(t=a(this,t).entry)&&t.value},n.prototype.entries=function(){return s(this,(function(t){return[t.key,t.value]}))},n.prototype.keys=function(){return s(this,(function(t){return t.key}))},n.prototype.values=function(){return s(this,(function(t){return t.value}))},n.prototype.forEach=function(t,e){for(var n,a=this.entries();!(n=a.next()).done;)n=n.value,t.call(e,n[1],n[0],this)},n.prototype[Symbol.iterator]=n.prototype.entries;var a=function(t,n){var a,s=(a=n)&&typeof a;if("object"==s||"function"==s?e.has(a)?a=e.get(a):(s=""+ ++o,e.set(a,s),a=s):a="p_"+a,(s=t.data_[a])&&$jscomp.owns(t.data_,a))for(t=0;t<s.length;t++){var r=s[t];if(n!=n&&r.key!=r.key||n===r.key)return{id:a,list:s,index:t,entry:r}}return{id:a,list:s,index:-1,entry:void 0}},s=function(t,e){var n=t.head_;return $jscomp.iteratorPrototype((function(){if(n){for(;n.head!=t.head_;)n=n.previous;for(;n.next!=n.head;)return n=n.next,{done:!1,value:e(n)};n=null}return{done:!0,value:void 0}}))},r=function(){var t={};return t.previous=t.next=t.head=t},o=0;return n}),"es6","es3"),$jscomp.findInternal=function(t,e,n){t instanceof String&&(t=String(t));for(var a=t.length,s=0;s<a;s++){var r=t[s];if(e.call(n,r,s,t))return{i:s,v:r}}return{i:-1,v:void 0}},$jscomp.polyfill("Array.prototype.find",(function(t){return t||function(t,e){return $jscomp.findInternal(this,t,e).v}}),"es6","es3"),$jscomp.iteratorFromArray=function(t,e){$jscomp.initSymbolIterator(),t instanceof String&&(t+="");var n=0,a={next:function(){if(n<t.length){var s=n++;return{value:e(s,t[s]),done:!1}}return a.next=function(){return{done:!0,value:void 0}},a.next()}};return a[Symbol.iterator]=function(){return a},a},$jscomp.polyfill("Array.prototype.keys",(function(t){return t||function(){return $jscomp.iteratorFromArray(this,(function(t){return t}))}}),"es6","es3"),$jscomp.polyfill("Array.prototype.findIndex",(function(t){return t||function(t,e){return $jscomp.findInternal(this,t,e).i}}),"es6","es3"),function(){var t=$.fn.dataTable,e=function(){function e(n,a,s,r,o,i){var l=this;if(void 0===i&&(i=null),!t||!t.versionCheck||!t.versionCheck("1.10.0"))throw Error("SearchPane requires DataTables 1.10 or newer");if(!t.select)throw Error("SearchPane requires Select");n=new t.Api(n),this.classes=$.extend(!0,{},e.classes),this.c=$.extend(!0,{},e.defaults,a),this.customPaneSettings=i,this.s={cascadeRegen:!1,clearing:!1,colOpts:[],deselect:!1,displayed:!1,dt:n,dtPane:void 0,filteringActive:!1,index:s,indexes:[],lastSelect:!1,redraw:!1,rowData:{arrayFilter:[],arrayOriginal:[],arrayTotals:[],bins:{},binsOriginal:{},binsTotal:{},filterMap:new Map},searchFunction:void 0,selectPresent:!1,updating:!1},a=n.columns().eq(0).toArray().length,this.colExists=this.s.index<a,this.c.layout=r,a=parseInt(r.split("-")[1],10),this.dom={buttonGroup:$("<div/>").addClass(this.classes.buttonGroup),clear:$('<button type="button">×</button>').addClass(this.classes.dull).addClass(this.classes.paneButton).addClass(this.classes.clearButton),container:$("<div/>").addClass(this.classes.container).addClass(this.classes.layout+(7>a?r:r.split("-")[0]+"-6")),countButton:$('<button type="button"></button>').addClass(this.classes.paneButton).addClass(this.classes.countButton),dtP:$("<table><thead><tr><th>"+(this.colExists?$(n.column(this.colExists?this.s.index:0).header()).text():this.customPaneSettings.header||"Custom Pane")+"</th><th/></tr></thead></table>"),lower:$("<div/>").addClass(this.classes.subRow2).addClass(this.classes.narrowButton),nameButton:$('<button type="button"></button>').addClass(this.classes.paneButton).addClass(this.classes.nameButton),searchBox:$("<input/>").addClass(this.classes.paneInputButton).addClass(this.classes.search),searchButton:$('<button type = "button" class="'+this.classes.searchIcon+'"></button>').addClass(this.classes.paneButton),searchCont:$("<div/>").addClass(this.classes.searchCont),searchLabelCont:$("<div/>").addClass(this.classes.searchLabelCont),topRow:$("<div/>").addClass(this.classes.topRow),upper:$("<div/>").addClass(this.classes.subRow1).addClass(this.classes.narrowSearch)},this.s.displayed=!1,n=this.s.dt,this.selections=[],this.s.colOpts=this.colExists?this._getOptions():this._getBonusOptions();var c=this.s.colOpts;r=$('<button type="button">X</button>').addClass(this.classes.paneButton),$(r).text(n.i18n("searchPanes.clearPane","X")),this.dom.container.addClass(c.className),this.dom.container.addClass(null!==this.customPaneSettings&&void 0!==this.customPaneSettings.className?this.customPaneSettings.className:""),$(o).append(this.dom.container);var u=n.table(0).node();return this.s.searchFunction=function(t,e,n,a){return 0===l.selections.length||t.nTable!==u||(t="",l.colExists&&(t=e[l.s.index],"filter"!==c.orthogonal.filter&&((t=l.s.rowData.filterMap.get(n))instanceof $.fn.dataTable.Api&&(t=t.toArray()))),l._search(t,n))},$.fn.dataTable.ext.search.push(this.s.searchFunction),this.c.clear&&$(r).on("click",(function(){l.dom.container.find(l.classes.search).each((function(){$(this).val(""),$(this).trigger("input")})),l.clearPane()})),n.on("draw.dtsp",(function(){l._adjustTopRow()})),$(window).on("resize.dtsp",t.util.throttle((function(){l._adjustTopRow()}))),n.on("column-reorder.dtsp",(function(t,e,n){l.s.index=n.mapping[l.s.index]})),this}return e.prototype.clearData=function(){this.s.rowData={arrayFilter:[],arrayOriginal:[],arrayTotals:[],bins:{},binsOriginal:{},binsTotal:{},filterMap:new Map}},e.prototype.clearPane=function(){return this.s.dtPane.rows({selected:!0}).deselect(),this.updateTable(),this},e.prototype.destroy=function(){$(this.s.dtPane).off(".dtsp"),$(this.s.dt).off(".dtsp"),$(this.dom.nameButton).off(".dtsp"),$(this.dom.countButton).off(".dtsp"),$(this.dom.clear).off(".dtsp"),$(this.dom.searchButton).off(".dtsp"),$(this.dom.container).remove();for(var t=$.fn.dataTable.ext.search.indexOf(this.s.searchFunction);-1!==t;)$.fn.dataTable.ext.search.splice(t,1),t=$.fn.dataTable.ext.search.indexOf(this.s.searchFunction);void 0!==this.s.dtPane&&this.s.dtPane.destroy()},e.prototype.getPaneCount=function(){return void 0!==this.s.dtPane?this.s.dtPane.rows({selected:!0}).data().toArray().length:0},e.prototype.rebuildPane=function(){return this.clearData(),void 0!==this.s.dtPane&&this.s.dtPane.clear().destroy(),this.dom.container.removeClass(this.classes.hidden),this.s.displayed=!1,this._buildPane(),this},e.prototype.removePane=function(){this.s.displayed=!1,$(this.dom.container).hide()},e.prototype.setCascadeRegen=function(t){this.s.cascadeRegen=t},e.prototype.setClear=function(t){this.s.clearing=t},e.prototype.updatePane=function(t){void 0===t&&(t=!1),this.s.updating=!0,this._updateCommon(t),this.s.updating=!1},e.prototype.updateTable=function(){this.selections=this.s.dtPane.rows({selected:!0}).data().toArray(),this._searchExtras(),(this.c.cascadePanes||this.c.viewTotal)&&this.updatePane()},e.prototype._addOption=function(e,n,a,s,r,o){if(Array.isArray(e)||e instanceof t.Api){if(e instanceof t.Api&&(e=e.toArray(),n=n.toArray()),e.length!==n.length)throw Error("display and filter not the same length");for(var i=0;i<e.length;i++)o[e[i]]?o[e[i]]++:(o[e[i]]=1,r.push({display:n[i],filter:e[i],sort:a,type:s}))}else"string"==typeof this.s.colOpts.orthogonal?o[e]?o[e]++:(o[e]=1,r.push({display:n,filter:e,sort:a,type:s})):r.push({display:n,filter:e,sort:a,type:s})},e.prototype._addRow=function(t,e,n,a,s,r){for(var o,i=0,l=this.s.indexes;i<l.length;i++){var c=l[i];c.filter===e&&(o=c.index)}return void 0===o&&(o=this.s.indexes.length,this.s.indexes.push({filter:e,index:o})),this.s.dtPane.row.add({display:""!==t?t:this.c.emptyMessage,filter:e,index:o,shown:n,sort:""!==s?s:this.c.emptyMessage,total:a,type:r})},e.prototype._adjustTopRow=function(){var t=this.dom.container.find("."+this.classes.subRowsContainer),e=this.dom.container.find(".dtsp-subRow1"),n=this.dom.container.find(".dtsp-subRow2"),a=this.dom.container.find("."+this.classes.topRow);(252>$(t[0]).width()||252>$(a[0]).width())&&0!==$(t[0]).width()?($(t[0]).addClass(this.classes.narrow),$(e[0]).addClass(this.classes.narrowSub).removeClass(this.classes.narrowSearch),$(n[0]).addClass(this.classes.narrowSub).removeClass(this.classes.narrowButton)):($(t[0]).removeClass(this.classes.narrow),$(e[0]).removeClass(this.classes.narrowSub).addClass(this.classes.narrowSearch),$(n[0]).removeClass(this.classes.narrowSub).addClass(this.classes.narrowButton))},e.prototype._buildPane=function(){var e=this;this.selections=[];var n,a=this.s.dt,s=a.column(this.colExists?this.s.index:0),r=this.s.colOpts,o=this.s.rowData,i=a.i18n("searchPanes.count","{total}"),l=a.i18n("searchPanes.countFiltered","{shown} ({total})"),c=a.state.loaded();if(this.colExists){var u=-1;if(c&&c.searchPanes&&c.searchPanes.panes)for(var d=0;d<c.searchPanes.panes.length;d++)if(c.searchPanes.panes[d].id===this.s.index){u=d;break}if((!1===r.show||void 0!==r.show&&!0!==r.show)&&-1===u)return this.dom.container.addClass(this.classes.hidden),this.s.displayed=!1;if(!0!==r.show&&-1===u||(this.s.displayed=!0),0===o.arrayFilter.length)if(this._populatePane(),c&&c.searchPanes&&c.searchPanes.panes){if(-1===u)return this.dom.container.addClass(this.classes.hidden),void(this.s.displayed=!1);o.binsOriginal=c.searchPanes.panes[u].bins,o.arrayOriginal=c.searchPanes.panes[u].arrayFilter}else o.arrayOriginal=o.arrayFilter,o.binsOriginal=o.bins;if(d=Object.keys(o.binsOriginal).length,u=this._uniqueRatio(d,a.rows()[0].length),!1===this.s.displayed&&((void 0===r.show&&null===r.threshold?u>this.c.threshold:u>r.threshold)||!0!==r.show&&1>=d))return this.dom.container.addClass(this.classes.hidden),void(this.s.displayed=!1);this.c.viewTotal&&0===o.arrayTotals.length?this._detailsPane():o.binsTotal=o.bins,this.dom.container.addClass(this.classes.show)}if(this.s.displayed=!0,this._displayPane(),this.dom.dtP.on("stateLoadParams.dt",(function(t,e,n){$.isEmptyObject(a.state.loaded())&&$.each(n,(function(t,e){delete n[t]}))})),d=$.fn.dataTable.ext.errMode,$.fn.dataTable.ext.errMode="none",u=t.Scroller,this.s.dtPane=$(this.dom.dtP).DataTable($.extend(!0,{dom:"t",columnDefs:[{className:"dtsp-nameColumn",data:"display",render:function(t,n,a){if("sort"===n)return a.sort;if("type"===n)return a.type;var s;for(s=(s=e.s.filteringActive&&e.c.viewTotal?l.replace(/{total}/,a.total):i.replace(/{total}/,a.total)).replace(/{shown}/,a.shown);-1!==s.indexOf("{total}");)s=s.replace(/{total}/,a.total);for(;-1!==s.indexOf("{shown}");)s=s.replace(/{shown}/,a.shown);return n='<span class="'+e.classes.pill+'">'+s+"</span>",(e.c.hideCount||r.hideCount)&&(n=""),e.c.dataLength&&t.length>e.c.dataLength?'<span class="'+e.classes.name+'">'+t.substr(0,e.c.dataLength)+"...</span>"+n:'<span class="'+e.classes.name+'">'+t+"</span>"+n},targets:0,type:void 0!==a.settings()[0].aoColumns[this.s.index]?a.settings()[0].aoColumns[this.s.index]._sManualType:null},{className:"dtsp-countColumn "+this.classes.badgePill,data:"total",targets:1,visible:!1}],deferRender:!0,info:!1,paging:!!u,scrollY:"200px",scroller:!!u,select:!0,stateSave:!!a.settings()[0].oFeatures.bStateSave},this.c.dtOpts,void 0!==r?r.dtOpts:{},null!==this.customPaneSettings&&void 0!==this.customPaneSettings.dtOpts?this.customPaneSettings.dtOpts:{})),$(this.dom.dtP).addClass(this.classes.table),$(this.dom.searchBox).attr("placeholder",void 0!==r.header?r.header:this.colExists?a.settings()[0].aoColumns[this.s.index].sTitle:this.customPaneSettings.header||"Custom Pane"),$.fn.dataTable.select.init(this.s.dtPane),$.fn.dataTable.ext.errMode=d,this.colExists){s=(s=s.search())?s.substr(1,s.length-2).split("|"):[];var h=0;for(o.arrayFilter.forEach((function(t){""===t.filter&&h++})),d=0,s=o.arrayFilter.length;d<s;d++)!o.arrayFilter[d]||void 0===o.bins[o.arrayFilter[d].filter]&&this.c.cascadePanes?this._addRow(this.c.emptyMessage,h,h,this.c.emptyMessage,this.c.emptyMessage,this.c.emptyMessage):(u=this._addRow(o.arrayFilter[d].display,o.arrayFilter[d].filter,o.bins[o.arrayFilter[d].filter],o.binsTotal[o.arrayFilter[d].filter],o.arrayFilter[d].sort,o.arrayFilter[d].type),void 0!==r.preSelect&&-1!==r.preSelect.indexOf(o.arrayFilter[d].filter)&&u.select())}if((void 0!==r.options||null!==this.customPaneSettings&&void 0!==this.customPaneSettings.options)&&this._getComparisonRows(),t.select.init(this.s.dtPane),this.s.dtPane.draw(),this.s.dtPane.on("select.dtsp",(function(){clearTimeout(n),$(e.dom.clear).removeClass(e.classes.dull),e.s.selectPresent=!0,e.s.updating||e._makeSelection(),e.s.selectPresent=!1})),this.s.dt.on("stateSaveParams.dtsp",(function(t,n,a){if($.isEmptyObject(a))e.s.dtPane.state.clear();else{if(t=[],void 0!==e.s.dtPane){t=e.s.dtPane.rows({selected:!0}).data().map((function(t){return t.filter.toString()})).toArray();var s=$(e.dom.searchBox).val(),r=e.s.dtPane.order(),i=o.binsOriginal,l=o.arrayOriginal}void 0===a.searchPanes&&(a.searchPanes={}),void 0===a.searchPanes.panes&&(a.searchPanes.panes=[]),a.searchPanes.panes.push({arrayFilter:l,bins:i,id:e.s.index,order:r,searchTerm:s,selected:t})}})),c&&c.searchPanes&&c.searchPanes.panes)for(this.c.cascadePanes||this._reloadSelect(c),s=0,c=c.searchPanes.panes;s<c.length;s++)(d=c[s]).id===this.s.index&&($(this.dom.searchBox).val(d.searchTerm),this.s.dt.order(d.order));return this.s.dtPane.on("user-select.dtsp",(function(t,e,n,a,s){s.stopPropagation()})),$(this.dom.nameButton).on("click.dtsp",(function(){var t=e.s.dtPane.order()[0][1];e.s.dtPane.order([0,"asc"===t?"desc":"asc"]).draw()})),$(this.dom.countButton).on("click.dtsp",(function(){var t=e.s.dtPane.order()[0][1];e.s.dtPane.order([1,"asc"===t?"desc":"asc"]).draw()})),$(this.dom.clear).on("click.dtsp",(function(){e.dom.container.find("."+e.classes.search).each((function(){$(this).val(""),$(this).trigger("input")})),e.clearPane()})),$(this.dom.searchButton).on("click.dtsp",(function(){$(e.dom.searchBox).focus()})),$(this.dom.searchBox).on("input.dtsp",(function(){e.s.dtPane.search($(e.dom.searchBox).val()).draw(),e.s.dt.state.save()})),this.s.dtPane.on("deselect.dtsp",(function(){n=setTimeout((function(){e.s.deselect=!0,0===e.s.dtPane.rows({selected:!0}).data().toArray().length&&$(e.dom.clear).addClass(e.classes.dull),e._makeSelection(),e.s.deselect=!1,e.s.dt.state.save()}),50)})),this.s.dt.state.save(),!0},e.prototype._detailsPane=function(){var t=this,e=this.s.dt;this.s.rowData.arrayTotals=[],this.s.rowData.binsTotal={};var n=this.s.dt.settings()[0];e.rows().every((function(e){t._populatePaneArray(e,t.s.rowData.arrayTotals,n,t.s.rowData.binsTotal)}))},e.prototype._displayPane=function(){var t=this.dom.container,e=this.s.colOpts,n=parseInt(this.c.layout.split("-")[1],10);$(this.dom.topRow).empty(),$(this.dom.dtP).empty(),$(this.dom.topRow).addClass(this.classes.topRow),3<n&&$(this.dom.container).addClass(this.classes.smallGap),$(this.dom.topRow).addClass(this.classes.subRowsContainer),$(this.dom.upper).appendTo(this.dom.topRow),$(this.dom.lower).appendTo(this.dom.topRow),$(this.dom.searchCont).appendTo(this.dom.upper),$(this.dom.buttonGroup).appendTo(this.dom.lower),(!1===this.c.dtOpts.searching||void 0!==e.dtOpts&&!1===e.dtOpts.searching||!this.c.controls||!e.controls||null!==this.customPaneSettings&&void 0!==this.customPaneSettings.dtOpts&&void 0!==this.customPaneSettings.dtOpts.searching&&!this.customPaneSettings.dtOpts.searching)&&$(this.dom.searchBox).attr("disabled","disabled").removeClass(this.classes.paneInputButton).addClass(this.classes.disabledButton),$(this.dom.searchBox).appendTo(this.dom.searchCont),this._searchContSetup(),this.c.clear&&this.c.controls&&e.controls&&$(this.dom.clear).appendTo(this.dom.buttonGroup),this.c.orderable&&e.orderable&&this.c.controls&&e.controls&&$(this.dom.nameButton).appendTo(this.dom.buttonGroup),!this.c.hideCount&&!e.hideCount&&this.c.orderable&&e.orderable&&this.c.controls&&e.controls&&$(this.dom.countButton).appendTo(this.dom.buttonGroup),$(this.dom.topRow).prependTo(this.dom.container),$(t).append(this.dom.dtP),$(t).show()},e.prototype._findUnique=function(t,e){for(var n=[],a=0;a<e.length;a++){var s=e[a];-1===n.indexOf(s.filter)&&(t.push({display:s.display,filter:s.filter,sort:s.sort,type:s.type}),n.push(s.filter))}},e.prototype._getBonusOptions=function(){return $.extend(!0,{},e.defaults,{orthogonal:{threshold:null},threshold:null},void 0!==this.c?this.c:{})},e.prototype._getComparisonRows=function(){var t=this.s.colOpts;if(void 0!==(t=void 0!==t.options?t.options:null!==this.customPaneSettings&&void 0!==this.customPaneSettings.options?this.customPaneSettings.options:void 0)){var e=this.s.dt.rows({search:"applied"}).data().toArray(),n=this.s.dt.rows({search:"applied"}),a=this.s.dt.rows().data().toArray(),s=this.s.dt.rows(),r=[];this.s.dtPane.clear();for(var o=0;o<t.length;o++){var i=t[o],l=""!==i.label?i.label:this.c.emptyMessage,c=l,u="function"==typeof i.value?i.value:[],d=0,h=l,f=0;if("function"==typeof i.value){for(var p=0;p<e.length;p++)i.value.call(this.s.dt,e[p],n[0][p])&&d++;for(p=0;p<a.length;p++)i.value.call(this.s.dt,a[p],s[0][p])&&f++;"function"!=typeof u&&u.push(i.filter)}(!this.c.cascadePanes||this.c.cascadePanes&&0!==d)&&r.push(this._addRow(c,u,d,f,h,l))}return r}},e.prototype._getOptions=function(){return $.extend(!0,{},e.defaults,{orthogonal:{threshold:null},threshold:null},this.s.dt.settings()[0].aoColumns[this.s.index].searchPanes)},e.prototype._makeSelection=function(){this.updateTable(),this.s.updating=!0,this.s.dt.draw(),this.s.updating=!1},e.prototype._populatePane=function(){var t=this.s.dt;this.s.rowData.arrayFilter=[],this.s.rowData.bins={};var e=this.s.dt.settings()[0],n=0;for(t=!this.c.cascadePanes&&!this.c.viewTotal||this.s.clearing?t.rows().indexes():t.rows({search:"applied"}).indexes();n<t.length;n++)this._populatePaneArray(t[n],this.s.rowData.arrayFilter,e)},e.prototype._populatePaneArray=function(t,e,n,a){void 0===a&&(a=this.s.rowData.bins);var s=this.s.colOpts;if("string"==typeof s.orthogonal)n=n.oApi._fnGetCellData(n,t,this.s.index,s.orthogonal),this.s.rowData.filterMap.set(t,n),this._addOption(n,n,n,n,e,a);else{var r=n.oApi._fnGetCellData(n,t,this.s.index,s.orthogonal.search);this.s.rowData.filterMap.set(t,r),a[r]?a[r]++:(a[r]=1,this._addOption(r,n.oApi._fnGetCellData(n,t,this.s.index,s.orthogonal.display),n.oApi._fnGetCellData(n,t,this.s.index,s.orthogonal.sort),n.oApi._fnGetCellData(n,t,this.s.index,s.orthogonal.type),e,a))}},e.prototype._reloadSelect=function(t){if(void 0!==t){for(var e,n=0;n<t.searchPanes.panes.length;n++)if(t.searchPanes.panes[n].id===this.s.index){e=n;break}if(void 0!==e){var a=(n=this.s.dtPane).rows({order:"index"}).data().map((function(t){return null!==t.filter?t.filter.toString():null})).toArray(),s=0;for(t=t.searchPanes.panes[e].selected;s<t.length;s++){var r=-1;null!==(e=t[s])&&(r=a.indexOf(e.toString())),-1<r&&(n.row(r).select(),this.s.dt.state.save())}}}},e.prototype._search=function(t,e){for(var n=this.s.colOpts,a=this.s.dt,s=0,r=this.selections;s<r.length;s++){var o=r[s];if(Array.isArray(t)){if(-1!==t.indexOf(o.filter))return!0}else if("function"==typeof o.filter){if(o.filter.call(a,a.row(e).data(),e)){if(this.s.redraw||this.updatePane(),"or"===n.combiner)return!0}else if("and"===n.combiner)return!1}else if(t===o.filter)return!0}return"and"===n.combiner},e.prototype._searchContSetup=function(){this.c.controls&&this.s.colOpts.controls&&$(this.dom.searchButton).appendTo(this.dom.searchLabelCont),!1===this.c.dtOpts.searching||!1===this.s.colOpts.dtOpts.searching||null!==this.customPaneSettings&&void 0!==this.customPaneSettings.dtOpts&&void 0!==this.customPaneSettings.dtOpts.searching&&!this.customPaneSettings.dtOpts.searching||$(this.dom.searchLabelCont).appendTo(this.dom.searchCont)},e.prototype._searchExtras=function(){var t=this.s.updating;this.s.updating=!0;var e=this.s.dtPane.rows({selected:!0}).data().pluck("filter").toArray(),n=e.indexOf(this.c.emptyMessage),a=$(this.s.dtPane.table().container());-1<n&&(e[n]=""),0<e.length?a.addClass(this.classes.selected):0===e.length&&a.removeClass(this.classes.selected),this.s.updating=t},e.prototype._uniqueRatio=function(t,e){return 0<e?t/e:1},e.prototype._updateCommon=function(t){if(void 0===t&&(t=!1),!(void 0===this.s.dtPane||this.s.filteringActive&&!this.c.cascadePanes&&!0!==t||!0===this.c.cascadePanes&&!0===this.s.selectPresent||this.s.lastSelect)){var e=this.s.colOpts,n=this.s.dtPane.rows({selected:!0}).data().toArray();t=$(this.s.dtPane.table().node()).parent()[0].scrollTop;var a=this.s.rowData;if(this.s.dtPane.clear(),this.colExists){0===a.arrayFilter.length?this._populatePane():this.c.cascadePanes&&this.s.dt.rows().data().toArray().length===this.s.dt.rows({search:"applied"}).data().toArray().length?(a.arrayFilter=a.arrayOriginal,a.bins=a.binsOriginal):(this.c.viewTotal||this.c.cascadePanes)&&this._populatePane(),this.c.viewTotal?this._detailsPane():a.binsTotal=a.bins,this.c.viewTotal&&!this.c.cascadePanes&&(a.arrayFilter=a.arrayTotals);for(var s=function(t){if(t&&(void 0!==a.bins[t.filter]&&0!==a.bins[t.filter]&&r.c.cascadePanes||!r.c.cascadePanes||r.s.clearing)){var e=r._addRow(t.display,t.filter,r.c.viewTotal?void 0!==a.bins[t.filter]?a.bins[t.filter]:0:a.bins[t.filter],r.c.viewTotal?String(a.binsTotal[t.filter]):a.bins[t.filter],t.sort,t.type),s=n.findIndex((function(e){return e.filter===t.filter}));-1!==s&&(e.select(),n.splice(s,1))}},r=this,o=0,i=a.arrayFilter;o<i.length;o++)s(i[o])}if(void 0!==e.searchPanes&&void 0!==e.searchPanes.options||void 0!==e.options||null!==this.customPaneSettings&&void 0!==this.customPaneSettings.options)for(s=function(t){var e=n.findIndex((function(e){if(e.display===t.data().display)return!0}));-1!==e&&(t.select(),n.splice(e,1))},o=0,i=this._getComparisonRows();o<i.length;o++)s(e=i[o]);for(s=0;s<n.length;s++)e=n[s],(e=this._addRow(e.display,e.filter,0,this.c.viewTotal?e.total:0,e.filter,e.filter)).select();this.s.dtPane.draw(),this.s.dtPane.table().node().parentNode.scrollTop=t}},e.version="1.0.1",e.classes={buttonGroup:"dtsp-buttonGroup",buttonSub:"dtsp-buttonSub",clear:"dtsp-clear",clearAll:"dtsp-clearAll",clearButton:"clearButton",container:"dtsp-searchPane",countButton:"dtsp-countButton",disabledButton:"dtsp-disabledButton",dull:"dtsp-dull",hidden:"dtsp-hidden",hide:"dtsp-hide",layout:"dtsp-",name:"dtsp-name",nameButton:"dtsp-nameButton",narrow:"dtsp-narrow",paneButton:"dtsp-paneButton",paneInputButton:"dtsp-paneInputButton",pill:"dtsp-pill",search:"dtsp-search",searchCont:"dtsp-searchCont",searchIcon:"dtsp-searchIcon",searchLabelCont:"dtsp-searchButtonCont",selected:"dtsp-selected",smallGap:"dtsp-smallGap",subRow1:"dtsp-subRow1",subRow2:"dtsp-subRow2",subRowsContainer:"dtsp-subRowsContainer",title:"dtsp-title",topRow:"dtsp-topRow"},e.defaults={cascadePanes:!1,clear:!0,combiner:"or",controls:!0,container:function(t){return t.table().container()},dataLength:30,dtOpts:{},emptyMessage:"<i>No Data</i>",hideCount:!1,layout:"columns-3",orderable:!0,orthogonal:{display:"display",hideCount:!1,search:"filter",show:void 0,sort:"sort",threshold:.6,type:"type"},preSelect:[],threshold:.6,viewTotal:!1},e}(),n=$.fn.dataTable,a=function(){function t(e,a,s){var r=this;if(void 0===s&&(s=!1),this.regenerating=!1,!n||!n.versionCheck||!n.versionCheck("1.10.0"))throw Error("SearchPane requires DataTables 1.10 or newer");if(!n.select)throw Error("SearchPane requires Select");var o=new n.Api(e);this.classes=$.extend(!0,{},t.classes),this.c=$.extend(!0,{},t.defaults,a),this.dom={clearAll:$('<button type="button">Clear All</button>').addClass(this.classes.clearAll),container:$("<div/>").addClass(this.classes.panes).text(o.i18n("searchPanes.loadMessage","Loading Search Panes...")),emptyMessage:$("<div/>").addClass(this.classes.emptyMessage),options:$("<div/>").addClass(this.classes.container),panes:$("<div/>").addClass(this.classes.container),title:$("<div/>").addClass(this.classes.title),titleRow:$("<div/>").addClass(this.classes.titleRow),wrapper:$("<div/>")},this.s={colOpts:[],dt:o,filterPane:-1,panes:[],selectionList:[],updating:!1},o.settings()[0]._searchPanes=this,this.dom.clearAll.text(o.i18n("searchPanes.clearMessage","Clear All")),this._getState(),this.s.dt.settings()[0]._bInitComplete||s?this._paneDeclare(o,e,a):o.on("preInit.dt",(function(){r._paneDeclare(o,e,a)}))}return t.prototype.clearSelections=function(){this.dom.container.find(this.classes.search).each((function(){$(this).val(""),$(this).trigger("input")}));for(var t=[],e=0,n=this.s.panes;e<n.length;e++){var a=n[e];void 0!==a.s.dtPane&&t.push(a.clearPane())}return this.s.dt.draw(),t},t.prototype.getNode=function(){return this.dom.container},t.prototype.rebuild=function(t){void 0===t&&(t=!1),$(this.dom.emptyMessage).remove();var e=[];this.clearSelections();for(var n=0,a=this.s.panes;n<a.length;n++){var s=a[n];!1!==t&&s.s.index!==t||(s.clearData(),e.push(s.rebuildPane()))}return this._updateFilterCount(),this._attachPaneContainer(),1===e.length?e[0]:e},t.prototype.redrawPanes=function(){var t=this.s.dt;if(!this.s.updating){var e=!0,n=this.s.filterPane;if(t.rows({search:"applied"}).data().toArray().length===t.rows().data().toArray().length)e=!1;else if(this.c.viewTotal)for(var a=0,s=this.s.panes;a<s.length;a++){var r=s[a];if(void 0!==r.s.dtPane){var o=r.s.dtPane.rows({selected:!0}).data().toArray().length;0<o&&-1===n?n=r.s.index:0<o&&(n=null)}}if(s=void 0,a=[],this.regenerating){for(a=0,t=this.s.panes;a<t.length;a++)void 0!==(r=t[a]).s.dtPane&&(s=!0,r.s.filteringActive=!0,(-1!==n&&null!==n&&n===r.s.index||!1===e)&&(s=!1,r.s.filteringActive=!1),r.updatePane(s?e:s));this._updateFilterCount()}else{o=0;for(var i=this.s.panes;o<i.length;o++){if((r=i[o]).s.selectPresent){this.s.selectionList.push({index:r.s.index,rows:r.s.dtPane.rows({selected:!0}).data().toArray(),protect:!1}),t.state.save();break}if(r.s.deselect){s=r.s.index;var l=r.s.dtPane.rows({selected:!0}).data().toArray();0<l.length&&this.s.selectionList.push({index:r.s.index,rows:l,protect:!0})}}if(0<this.s.selectionList.length)for(t=this.s.selectionList[this.s.selectionList.length-1].index,o=0,i=this.s.panes;o<i.length;o++)(r=i[o]).s.lastSelect=r.s.index===t&&1===this.s.selectionList.length;for(r=0;r<this.s.selectionList.length;r++)if(this.s.selectionList[r].index!==s||!0===this.s.selectionList[r].protect){for(t=!1,o=r+1;o<this.s.selectionList.length;o++)this.s.selectionList[o].index===this.s.selectionList[r].index&&(t=!0);t||(a.push(this.s.selectionList[r]),this.s.selectionList[r].protect=!1)}for(t=0,o=this.s.panes;t<o.length;t++)void 0!==(r=o[t]).s.dtPane&&(s=!0,r.s.filteringActive=!0,(-1!==n&&null!==n&&n===r.s.index||!1===e)&&(s=!1,r.s.filteringActive=!1),r.updatePane(!!s&&e));if(this._updateFilterCount(),0<a.length&&a.length<this.s.selectionList.length)for(this._cascadeRegen(a),t=a[a.length-1].index,n=0,a=this.s.panes;n<a.length;n++)(r=a[n]).s.lastSelect=r.s.index===t&&1===this.s.selectionList.length;else if(0<a.length)for(r=0,a=this.s.panes;r<a.length;r++)void 0!==(t=a[r]).s.dtPane&&(s=!0,t.s.filteringActive=!0,(-1!==n&&null!==n&&n===t.s.index||!1===e)&&(s=!1,t.s.filteringActive=!1),t.updatePane(s?e:s))}e||(this.s.selectionList=[])}},t.prototype._attach=function(){$(this.dom.container).removeClass(this.classes.hide),$(this.dom.titleRow).removeClass(this.classes.hide),$(this.dom.titleRow).remove(),$(this.dom.title).appendTo(this.dom.titleRow),this.c.clear&&$(this.dom.clearAll).appendTo(this.dom.titleRow),$(this.dom.titleRow).appendTo(this.dom.container);for(var t=0,e=this.s.panes;t<e.length;t++)$(e[t].dom.container).appendTo(this.dom.panes);return $(this.dom.panes).appendTo(this.dom.container),0===$("div."+this.classes.container).length&&$(this.dom.container).prependTo(this.s.dt),this.dom.container},t.prototype._attachExtras=function(){return $(this.dom.container).removeClass(this.classes.hide),$(this.dom.titleRow).removeClass(this.classes.hide),$(this.dom.titleRow).remove(),$(this.dom.title).appendTo(this.dom.titleRow),this.c.clear&&$(this.dom.clearAll).appendTo(this.dom.titleRow),$(this.dom.titleRow).appendTo(this.dom.container),this.dom.container},t.prototype._attachMessage=function(){try{var t=this.s.dt.i18n("searchPanes.emptyPanes","No SearchPanes")}catch(e){t=null}if(null!==t)return $(this.dom.container).removeClass(this.classes.hide),$(this.dom.titleRow).addClass(this.classes.hide),$(this.dom.emptyMessage).text(t),this.dom.emptyMessage.appendTo(this.dom.container),this.dom.container;$(this.dom.container).addClass(this.classes.hide),$(this.dom.titleRow).removeClass(this.classes.hide)},t.prototype._attachPaneContainer=function(){for(var t=0,e=this.s.panes;t<e.length;t++)if(!0===e[t].s.displayed)return this._attach();return this._attachMessage()},t.prototype._cascadeRegen=function(t){this.regenerating=!0;var e=-1;1===t.length&&(e=t[0].index);for(var n=0,a=this.s.panes;n<a.length;n++){var s=a[n];s.setCascadeRegen(!0),s.setClear(!0),(void 0!==s.s.dtPane&&s.s.index===e||void 0!==s.s.dtPane)&&s.clearPane(),s.setClear(!1)}for(this._makeCascadeSelections(t),this.s.selectionList=t,t=0,e=this.s.panes;t<e.length;t++)(s=e[t]).setCascadeRegen(!1);this.regenerating=!1},t.prototype._checkMessage=function(){for(var t=0,e=this.s.panes;t<e.length;t++)if(!0===e[t].s.displayed)return;return this._attachMessage()},t.prototype._getState=function(){var t=this.s.dt.state.loaded();t&&t.searchPanes&&void 0!==t.searchPanes.selectionList&&(this.s.selectionList=t.searchPanes.selectionList)},t.prototype._makeCascadeSelections=function(t){for(var e=0;e<t.length;e++)for(var n=t[e],a=function(t){if(t.s.index===n.index&&void 0!==t.s.dtPane){0<t.s.dtPane.rows({selected:!0}).data().toArray().length&&void 0!==t.s.dtPane&&(t.setClear(!0),t.clearPane(),t.setClear(!1));for(var e=function(e){t.s.dtPane.rows().every((function(n){t.s.dtPane.row(n).data().filter===e.filter&&t.s.dtPane.row(n).select()}))},a=0,r=n.rows;a<r.length;a++)e(r[a]);s._updateFilterCount()}},s=this,r=0,o=this.s.panes;r<o.length;r++)a(o[r]);this.s.dt.state.save()},t.prototype._paneDeclare=function(t,n,a){var s=this;t.columns(0<this.c.columns.length?this.c.columns:void 0).eq(0).each((function(t){s.s.panes.push(new e(n,a,t,s.c.layout,s.dom.panes))}));for(var r=t.columns().eq(0).toArray().length,o=this.c.panes.length,i=0;i<o;i++)this.s.panes.push(new e(n,a,r+i,this.c.layout,this.dom.panes,this.c.panes[i]));this.s.dt.settings()[0]._bInitComplete?this._paneStartup(t):this.s.dt.settings()[0].aoInitComplete.push({fn:function(){s._paneStartup(t)}})},t.prototype._paneStartup=function(t){var e=this;500>=this.s.dt.page.info().recordsTotal?this._startup(t):setTimeout((function(){e._startup(t)}),100)},t.prototype._startup=function(t){var e=this;$(this.dom.container).text(""),this._attachExtras(),$(this.dom.container).append(this.dom.panes);for(var n=0,a=this.s.panes;n<a.length;n++)a[n].rebuildPane();this._updateFilterCount(),this._checkMessage(),t.on("draw.dtsps",(function(){e._updateFilterCount(),(e.c.cascadePanes||e.c.viewTotal)&&e.redrawPanes(),e.s.filterPane=-1})),this.s.dt.on("stateSaveParams.dtsp",(function(t,n,a){void 0===a.searchPanes&&(a.searchPanes={}),a.searchPanes.selectionList=e.s.selectionList})),0<this.s.selectionList.length&&this.c.cascadePanes&&this._cascadeRegen(this.s.selectionList),t.columns(0<this.c.columns.length?this.c.columns:void 0).eq(0).each((function(t){if(void 0!==e.s.panes[t]&&void 0!==e.s.panes[t].s.dtPane&&void 0!==e.s.panes[t].s.colOpts.preSelect)for(var n=e.s.panes[t].s.dtPane.rows().data().toArray().length,a=0;a<n;a++)-1!==e.s.panes[t].s.colOpts.preSelect.indexOf(e.s.panes[t].s.dtPane.cell(a,0).data())&&(e.s.panes[t].s.dtPane.row(a).select(),e.s.panes[t].updateTable())})),this._updateFilterCount(),t.on("destroy.dtsps",(function(){for(var n=0,a=e.s.panes;n<a.length;n++)a[n].destroy();t.off(".dtsps"),$(e.dom.clearAll).off(".dtsps"),$(e.dom.container).remove(),e.clearSelections()})),this.c.clear&&$(this.dom.clearAll).on("click.dtsps",(function(){e.clearSelections()})),t.settings()[0]._searchPanes=this},t.prototype._updateFilterCount=function(){for(var t=0,e=0,n=this.s.panes;e<n.length;e++){var a=n[e];void 0!==a.s.dtPane&&(t+=a.getPaneCount())}t=this.s.dt.i18n("searchPanes.title","Filters Active - %d",t),$(this.dom.title).text(t)},t.version="1.0.1",t.classes={clear:"dtsp-clear",clearAll:"dtsp-clearAll",container:"dtsp-searchPanes",emptyMessage:"dtsp-emptyMessage",hide:"dtsp-hidden",panes:"dtsp-panesContainer",search:"dtsp-search",title:"dtsp-title",titleRow:"dtsp-titleRow"},t.defaults={cascadePanes:!1,clear:!0,container:function(t){return t.table().container()},columns:[],layout:"columns-3",panes:[],viewTotal:!1},t}();!function(t){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],(function(e){return t(e,window,document)})):"object"==typeof exports?module.exports=function(e,n){return e||(e=window),n&&n.fn.dataTable||(n=require("datatables.net")(e,n).$),t(n,e,e.document)}:t(window.jQuery,window,document)}((function(t,n,s){function r(t,e){void 0===e&&(e=!1);var n=(t=new o.Api(t)).init().searchPanes||o.defaults.searchPanes;return new a(t,n,e).getNode()}var o=t.fn.dataTable;t.fn.dataTable.SearchPanes=a,t.fn.DataTable.SearchPanes=a,t.fn.dataTable.SearchPane=e,t.fn.DataTable.SearchPane=e,o.Api.register("searchPanes.rebuild()",(function(){return this.iterator("table",(function(){this.searchPanes&&this.searchPanes.rebuild()}))})),o.Api.register("column().paneOptions()",(function(t){return this.iterator("column",(function(e){(e=this.aoColumns[e]).searchPanes||(e.searchPanes={}),e.searchPanes.values=t,this.searchPanes&&this.searchPanes.rebuild()}))})),(n=t.fn.dataTable.Api.register)("searchPanes()",(function(){return this})),n("searchPanes.clearSelections()",(function(){return this.context[0]._searchPanes.clearSelections(),this})),n("searchPanes.rebuildPane()",(function(t){return this.context[0]._searchPanes.rebuild(t),this})),n("searchPanes.container()",(function(){return this.context[0]._searchPanes.getNode()})),t.fn.dataTable.ext.buttons.searchPanesClear={text:"Clear Panes",action:function(t,e,n,a){e.searchPanes.clearSelections()}},t.fn.dataTable.ext.buttons.searchPanes={text:"Search Panes",init:function(e,n,a){var s=new t.fn.dataTable.SearchPanes(e,{filterChanged:function(t){e.button(n).text(e.i18n("searchPanes.collapse",{0:"SearchPanes",_:"SearchPanes (%d)"},t))}}),r=e.i18n("searchPanes.collapse","SearchPanes");e.button(n).text(r),a._panes=s},action:function(t,e,n,a){t.stopPropagation(),this.popover(a._panes.getNode(),{align:"dt-container"}),a._panes.adjust()}},t(s).on("preInit.dt.dtsp",(function(t,e,n){"dt"===t.namespace&&(e.oInit.searchPanes||o.defaults.searchPanes)&&(e._searchPanes||r(e,!0))})),o.ext.feature.push({cFeature:"P",fnInit:r}),o.ext.features&&o.ext.features.register("searchPanes",r)}))}();