1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-12-12 00:08:48 +01:00
DataTables/media/js/jquery.dataTables.min.js

181 lines
83 KiB
JavaScript
Raw Normal View History

2016-02-04 16:46:23 +01:00
/*!
Copyright 2008-2016 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
2016-12-06 16:15:00 +01:00
DataTables 1.10.13
©2008-2016 SpryMedia Ltd - datatables.net/license
2016-02-04 16:46:23 +01:00
*/
var $jscomp={scope:{},findInternal:function(f,A,x){f instanceof String&&(f=String(f));for(var m=f.length,E=0;E<m;E++){var K=f[E];if(A.call(x,K,E,f))return{i:E,v:K}}return{i:-1,v:void 0}}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(f,A,x){if(x.get||x.set)throw new TypeError("ES3 does not support getters and setters.");f!=Array.prototype&&f!=Object.prototype&&(f[A]=x.value)};
$jscomp.getGlobal=function(f){return"undefined"!=typeof window&&window===f?f:"undefined"!=typeof global&&null!=global?global:f};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(f,A,x,m){if(A){x=$jscomp.global;f=f.split(".");for(m=0;m<f.length-1;m++){var E=f[m];E in x||(x[E]={});x=x[E]}f=f[f.length-1];m=x[f];A=A(m);A!=m&&null!=A&&$jscomp.defineProperty(x,f,{configurable:!0,writable:!0,value:A})}};
$jscomp.polyfill("Array.prototype.find",function(f){return f?f:function(f,x){return $jscomp.findInternal(this,f,x).v}},"es6-impl","es3");
(function(f){"function"===typeof define&&define.amd?define(["jquery"],function(A){return f(A,window,document)}):"object"===typeof exports?module.exports=function(A,x){A||(A=window);x||(x="undefined"!==typeof window?require("jquery"):require("jquery")(A));return f(x,A,A.document)}:f(jQuery,window,document)})(function(f,A,x,m){function E(a){var b,c,d={};f.each(a,function(e,h){(b=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(b[1]+" ")&&(c=e.replace(b[0],b[2].toLowerCase()),
d[c]=e,"o"===b[1]&&E(a[e]))});a._hungarianMap=d}function K(a,b,c){a._hungarianMap||E(a);var d;f.each(b,function(e,h){d=a._hungarianMap[e];d===m||!c&&b[d]!==m||("o"===d.charAt(0)?(b[d]||(b[d]={}),f.extend(!0,b[d],b[e]),K(a[d],b[d],c)):b[d]=b[e])})}function Ea(a){var b=q.defaults.oLanguage,c=a.sZeroRecords;!a.sEmptyTable&&c&&"No data available in table"===b.sEmptyTable&&M(a,a,"sZeroRecords","sEmptyTable");!a.sLoadingRecords&&c&&"Loading..."===b.sLoadingRecords&&M(a,a,"sZeroRecords","sLoadingRecords");
a.sInfoThousands&&(a.sThousands=a.sInfoThousands);(a=a.sDecimal)&&db(a)}function eb(a){H(a,"ordering","bSort");H(a,"orderMulti","bSortMulti");H(a,"orderClasses","bSortClasses");H(a,"orderCellsTop","bSortCellsTop");H(a,"order","aaSorting");H(a,"orderFixed","aaSortingFixed");H(a,"paging","bPaginate");H(a,"pagingType","sPaginationType");H(a,"pageLength","iDisplayLength");H(a,"searching","bFilter");"boolean"===typeof a.sScrollX&&(a.sScrollX=a.sScrollX?"100%":"");"boolean"===typeof a.scrollX&&(a.scrollX=
a.scrollX?"100%":"");if(a=a.aoSearchCols)for(var b=0,c=a.length;b<c;b++)a[b]&&K(q.models.oSearch,a[b])}function fb(a){H(a,"orderable","bSortable");H(a,"orderData","aDataSort");H(a,"orderSequence","asSorting");H(a,"orderDataType","sortDataType");var b=a.aDataSort;"number"!==typeof b||f.isArray(b)||(a.aDataSort=[b])}function gb(a){if(!q.__browser){var b={};q.__browser=b;var c=f("<div/>").css({position:"fixed",top:0,left:-1*f(A).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(f("<div/>").css({position:"absolute",
top:1,left:1,width:100,overflow:"scroll"}).append(f("<div/>").css({width:"100%",height:10}))).appendTo("body"),d=c.children(),e=d.children();b.barWidth=d[0].offsetWidth-d[0].clientWidth;b.bScrollOversize=100===e[0].offsetWidth&&100!==d[0].clientWidth;b.bScrollbarLeft=1!==Math.round(e.offset().left);b.bBounding=c[0].getBoundingClientRect().width?!0:!1;c.remove()}f.extend(a.oBrowser,q.__browser);a.oScroll.iBarWidth=q.__browser.barWidth}function hb(a,b,c,d,e,h){var g,k=!1;c!==m&&(g=c,k=!0);for(;d!==
e;)a.hasOwnProperty(d)&&(g=k?b(g,a[d],d,a):a[d],k=!0,d+=h);return g}function Fa(a,b){var c=q.defaults.column,d=a.aoColumns.length,c=f.extend({},q.models.oColumn,c,{nTh:b?b:x.createElement("th"),sTitle:c.sTitle?c.sTitle:b?b.innerHTML:"",aDataSort:c.aDataSort?c.aDataSort:[d],mData:c.mData?c.mData:d,idx:d});a.aoColumns.push(c);c=a.aoPreSearchCols;c[d]=f.extend({},q.models.oSearch,c[d]);la(a,d,f(b).data())}function la(a,b,c){b=a.aoColumns[b];var d=a.oClasses,e=f(b.nTh);if(!b.sWidthOrig){b.sWidthOrig=
e.attr("width")||null;var h=(e.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);h&&(b.sWidthOrig=h[1])}c!==m&&null!==c&&(fb(c),K(q.defaults.column,c),c.mDataProp===m||c.mData||(c.mData=c.mDataProp),c.sType&&(b._sManualType=c.sType),c.className&&!c.sClass&&(c.sClass=c.className),f.extend(b,c),M(b,c,"sWidth","sWidthOrig"),c.iDataSort!==m&&(b.aDataSort=[c.iDataSort]),M(b,c,"aDataSort"));var g=b.mData,k=T(g),l=b.mRender?T(b.mRender):null;c=function(a){return"string"===typeof a&&-1!==a.indexOf("@")};
b._bAttrSrc=f.isPlainObject(g)&&(c(g.sort)||c(g.type)||c(g.filter));b._setter=null;b.fnGetData=function(a,b,c){var d=k(a,b,m,c);return l&&b?l(d,b,a,c):d};b.fnSetData=function(a,b,c){return U(g)(a,b,c)};"number"!==typeof g&&(a._rowReadObject=!0);a.oFeatures.bSort||(b.bSortable=!1,e.addClass(d.sSortableNone));a=-1!==f.inArray("asc",b.asSorting);c=-1!==f.inArray("desc",b.asSorting);b.bSortable&&(a||c)?a&&!c?(b.sSortingClass=d.sSortableAsc,b.sSortingClassJUI=d.sSortJUIAscAllowed):!a&&c?(b.sSortingClass=
d.sSortableDesc,b.sSortingClassJUI=d.sSortJUIDescAllowed):(b.sSortingClass=d.sSortable,b.sSortingClassJUI=d.sSortJUI):(b.sSortingClass=d.sSortableNone,b.sSortingClassJUI="")}function Z(a){if(!1!==a.oFeatures.bAutoWidth){var b=a.aoColumns;Ga(a);for(var c=0,d=b.length;c<d;c++)b[c].nTh.style.width=b[c].sWidth}b=a.oScroll;""===b.sY&&""===b.sX||ma(a);y(a,null,"column-sizing",[a])}function aa(a,b){var c=na(a,"bVisible");return"number"===typeof c[b]?c[b]:null}function ba(a,b){var c=na(a,"bVisible"),c=f.inArray(b,
c);return-1!==c?c:null}function ca(a){var b=0;f.each(a.aoColumns,function(a,d){d.bVisible&&"none"!==f(d.nTh).css("display")&&b++});return b}function na(a,b){var c=[];f.map(a.aoColumns,function(a,e){a[b]&&c.push(e)});return c}function Ha(a){var b=a.aoColumns,c=a.aoData,d=q.ext.type.detect,e,h,g,k,l,f,n,v,u;e=0;for(h=b.length;e<h;e++)if(n=b[e],u=[],!n.sType&&n._sManualType)n.sType=n._sManualType;else if(!n.sType){g=0;for(k=d.length;g<k;g++){l=0;for(f=c.length;l<f;l++){u[l]===m&&(u[l]=I(a,l,e,"type"));
v=d[g](u[l],a);if(!v&&g!==d.length-1)break;if("html"===v)break}if(v){n.sType=v;break}}n.sType||(n.sType="string")}}function ib(a,b,c,d){var e,h,g,k,l,p,n=a.aoColumns;if(b)for(e=b.length-1;0<=e;e--){p=b[e];var v=p.targets!==m?p.targets:p.aTargets;f.isArray(v)||(v=[v]);h=0;for(g=v.length;h<g;h++)if("number"===typeof v[h]&&0<=v[h]){for(;n.length<=v[h];)Fa(a);d(v[h],p)}else if("number"===typeof v[h]&&0>v[h])d(n.length+v[h],p);else if("string"===typeof v[h])for(k=0,l=n.length;k<l;k++)("_all"==v[h]||f(n[k].nTh).hasClass(v[h]))&&
d(k,p)}if(c)for(e=0,a=c.length;e<a;e++)d(e,c[e])}function Q(a,b,c,d){var e=a.aoData.length,h=f.extend(!0,{},q.models.oRow,{src:c?"dom":"data",idx:e});h._aData=b;a.aoData.push(h);for(var g=a.aoColumns,k=0,l=g.length;k<l;k++)g[k].sType=null;a.aiDisplayMaster.push(e);b=a.rowIdFn(b);b!==m&&(a.aIds[b]=h);!c&&a.oFeatures.bDeferRender||Ia(a,e,c,d);return e}function oa(a,b){var c;b instanceof f||(b=f(b));return b.map(function(b,e){c=Ja(a,e);return Q(a,c.data,e,c.cells)})}function I(a,b,c,d){var e=a.iDraw,
h=a.aoColumns[c],g=a.aoData[b]._aData,k=h.sDefaultContent,f=h.fnGetData(g,d,{settings:a,row:b,col:c});if(f===m)return a.iDrawError!=e&&null===k&&(O(a,0,"Requested unknown parameter "+("function"==typeof h.mData?"{function}":"'"+h.mData+"'")+" for row "+b+", column "+c,4),a.iDrawError=e),k;if((f===g||null===f)&&null!==k&&d!==m)f=k;else if("function"===typeof f)return f.call(g);return null===f&&"display"==d?"":f}function jb(a,b,c,d){a.aoColumns[c].fnSetData(a.aoData[b]._aData,d,{settings:a,row:b,col:c})}
function Ka(a){return f.map(a.match(/(\\.|[^\.])+/g)||[""],function(a){return a.replace(/\\\./g,".")})}function T(a){if(f.isPlainObject(a)){var b={};f.each(a,function(a,c){c&&(b[a]=T(c))});return function(a,c,h,g){var d=b[c]||b._;return d!==m?d(a,c,h,g):a}}if(null===a)return function(a){return a};if("function"===typeof a)return function(b,c,h,g){return a(b,c,h,g)};if("string"!==typeof a||-1===a.indexOf(".")&&-1===a.indexOf("[")&&-1===a.indexOf("("))return function(b,c){return b[a]};var c=function(a,
b,h){var d,e;if(""!==h){e=Ka(h);for(var l=0,p=e.length;l<p;l++){h=e[l].match(da);d=e[l].match(W);if(h){e[l]=e[l].replace(da,"");""!==e[l]&&(a=a[e[l]]);d=[];e.splice(0,l+1);e=e.join(".");if(f.isArray(a))for(l=0,p=a.length;l<p;l++)d.push(c(a[l],b,e));a=h[0].substring(1,h[0].length-1);a=""===a?d:d.join(a);break}else if(d){e[l]=e[l].replace(W,"");a=a[e[l]]();continue}if(null===a||a[e[l]]===m)return m;a=a[e[l]]}}return a};return function(b,e){return c(b,e,a)}}function U(a){if(f.isPlainObject(a))return U(a._);
if(null===a)return function(){};if("function"===typeof a)return function(b,d,e){a(b,"set",d,e)};if("string"!==typeof a||-1===a.indexOf(".")&&-1===a.indexOf("[")&&-1===a.indexOf("("))return function(b,d){b[a]=d};var b=function(a,d,e){e=Ka(e);var c;c=e[e.length-1];for(var g,k,l=0,p=e.length-1;l<p;l++){g=e[l].match(da);k=e[l].match(W);if(g){e[l]=e[l].replace(da,"");a[e[l]]=[];c=e.slice();c.splice(0,l+1);g=c.join(".");if(f.isArray(d))for(k=0,p=d.length;k<p;k++)c={},b(c,d[k],g),a[e[l]].push(c);else a[e[l]]=
d;return}k&&(e[l]=e[l].replace(W,""),a=a[e[l]](d));if(null===a[e[l]]||a[e[l]]===m)a[e[l]]={};a=a[e[l]]}if(c.match(W))a[c.replace(W,"")](d);else a[c.replace(da,"")]=d};return function(c,d){return b(c,d,a)}}function La(a){return L(a.aoData,"_aData")}function pa(a){a.aoData.length=0;a.aiDisplayMaster.length=0;a.aiDisplay.length=0;a.aIds={}}function qa(a,b,c){for(var d=-1,e=0,h=a.length;e<h;e++)a[e]==b?d=e:a[e]>b&&a[e]--; -1!=d&&c===m&&a.splice(d,1)}function ea(a,b,c,d){var e=a.aoData[b],h,g=function(c,
d){for(;c.childNodes.length;)c.removeChild(c.firstChild);c.innerHTML=I(a,b,d,"display")};if("dom"!==c&&(c&&"auto"!==c||"dom"!==e.src)){var k=e.anCells;if(k)if(d!==m)g(k[d],d);else for(c=0,h=k.length;c<h;c++)g(k[c],c)}else e._aData=Ja(a,e,d,d===m?m:e._aData).data;e._aSortData=null;e._aFilterData=null;g=a.aoColumns;if(d!==m)g[d].sType=null;else{c=0;for(h=g.length;c<h;c++)g[c].sType=null;Ma(a,e)}}function Ja(a,b,c,d){var e=[],h=b.firstChild,g,k,l=0,p,n=a.aoColumns,v=a._rowReadObject;d=d!==m?d:v?{}:[];
var u=function(a,b){if("string"===typeof a){var c=a.indexOf("@");-1!==c&&(c=a.substring(c+1),U(a)(d,b.getAttribute(c)))}},q=function(a){if(c===m||c===l)k=n[l],p=f.trim(a.innerHTML),k&&k._bAttrSrc?(U(k.mData._)(d,p),u(k.mData.sort,a),u(k.mData.type,a),u(k.mData.filter,a)):v?(k._setter||(k._setter=U(k.mData)),k._setter(d,p)):d[l]=p;l++};if(h)for(;h;){g=h.nodeName.toUpperCase();if("TD"==g||"TH"==g)q(h),e.push(h);h=h.nextSibling}else for(e=b.anCells,h=0,g=e.length;h<g;h++)q(e[h]);(b=b.firstChild?b:b.nTr)&&
(b=b.getAttribute("id"))&&U(a.rowId)(d,b);return{data:d,cells:e}}function Ia(a,b,c,d){var e=a.aoData[b],h=e._aData,g=[],k,l,p,n,v;if(null===e.nTr){k=c||x.createElement("tr");e.nTr=k;e.anCells=g;k._DT_RowIndex=b;Ma(a,e);n=0;for(v=a.aoColumns.length;n<v;n++)p=a.aoColumns[n],l=c?d[n]:x.createElement(p.sCellType),l._DT_CellIndex={row:b,column:n},g.push(l),c&&!p.mRender&&p.mData===n||f.isPlainObject(p.mData)&&p.mData._===n+".display"||(l.innerHTML=I(a,b,n,"display")),p.sClass&&(l.className+=" "+p.sClass),
p.bVisible&&!c?k.appendChild(l):!p.bVisible&&c&&l.parentNode.removeChild(l),p.fnCreatedCell&&p.fnCreatedCell.call(a.oInstance,l,I(a,b,n),h,b,n);y(a,"aoRowCreatedCallback",null,[k,h,b])}e.nTr.setAttribute("role","row")}function Ma(a,b){var c=b.nTr,d=b._aData;if(c){var e=a.rowIdFn(d);e&&(c.id=e);d.DT_RowClass&&(e=d.DT_RowClass.split(" "),b.__rowc=b.__rowc?sa(b.__rowc.concat(e)):e,f(c).removeClass(b.__rowc.join(" ")).addClass(d.DT_RowClass));d.DT_RowAttr&&f(c).attr(d.DT_RowAttr);d.DT_RowData&&f(c).data(d.DT_RowData)}}
function kb(a){var b,c,d,e,h,g=a.nTHead,k=a.nTFoot,l=0===f("th, td",g).length,p=a.oClasses,n=a.aoColumns;l&&(e=f("<tr/>").appendTo(g));b=0;for(c=n.length;b<c;b++)h=n[b],d=f(h.nTh).addClass(h.sClass),l&&d.appendTo(e),a.oFeatures.bSort&&(d.addClass(h.sSortingClass),!1!==h.bSortable&&(d.attr("tabindex",a.iTabIndex).attr("aria-controls",a.sTableId),Na(a,h.nTh,b))),h.sTitle!=d[0].innerHTML&&d.html(h.sTitle),Oa(a,"header")(a,d,h,p);l&&fa(a.aoHeader,g);f(g).find(">tr").attr("role","row");f(g).find(">tr>th, >tr>td").addClass(p.sHeaderTH);
f(k).find(">tr>th, >tr>td").addClass(p.sFooterTH);if(null!==k)for(a=a.aoFooter[0],b=0,c=a.length;b<c;b++)h=n[b],h.nTf=a[b].cell,h.sClass&&f(h.nTf).addClass(h.sClass)}function ga(a,b,c){var d,e,h,g=[],k=[],l=a.aoColumns.length,p;if(b){c===m&&(c=!1);d=0;for(e=b.length;d<e;d++){g[d]=b[d].slice();g[d].nTr=b[d].nTr;for(h=l-1;0<=h;h--)a.aoColumns[h].bVisible||c||g[d].splice(h,1);k.push([])}d=0;for(e=g.length;d<e;d++){if(a=g[d].nTr)for(;h=a.firstChild;)a.removeChild(h);h=0;for(b=g[d].length;h<b;h++)if(p=
l=1,k[d][h]===m){a.appendChild(g[d][h].cell);for(k[d][h]=1;g[d+l]!==m&&g[d][h].cell==g[d+l][h].cell;)k[d+l][h]=1,l++;for(;g[d][h+p]!==m&&g[d][h].cell==g[d][h+p].cell;){for(c=0;c<l;c++)k[d+c][h+p]=1;p++}f(g[d][h].cell).attr("rowspan",l).attr("colspan",p)}}}}function R(a){var b=y(a,"aoPreDrawCallback","preDraw",[a]);if(-1!==f.inArray(!1,b))J(a,!1);else{var b=[],c=0,d=a.asStripeClasses,e=d.length,h=a.oLanguage,g=a.iInitDisplayStart,k="ssp"==F(a),l=a.aiDisplay;a.bDrawing=!0;g!==m&&-1!==g&&(a._iDisplayStart=
k?g:g>=a.fnRecordsDisplay()?0:g,a.iInitDisplayStart=-1);var g=a._iDisplayStart,p=a.fnDisplayEnd();if(a.bDeferLoading)a.bDeferLoading=!1,a.iDraw++,J(a,!1);else if(!k)a.iDraw++;else if(!a.bDestroying&&!lb(a))return;if(0!==l.length)for(h=k?a.aoData.length:p,k=k?0:g;k<h;k++){var n=l[k],v=a.aoData[n];null===v.nTr&&Ia(a,n);n=v.nTr;if(0!==e){var u=d[c%e];v._sRowStripe!=u&&(f(n).removeClass(v._sRowStripe).addClass(u),v._sRowStripe=u)}y(a,"aoRowCallback",null,[n,v._aData,c,k]);b.push(n);c++}else c=h.sZeroRecords,
1==a.iDraw&&"ajax"==F(a)?c=h.sLoadingRecords:h.sEmptyTable&&0===a.fnRecordsTotal()&&(c=h.sEmptyTable),b[0]=f("<tr/>",{"class":e?d[0]:""}).append(f("<td />",{valign:"top",colSpan:ca(a),"class":a.oClasses.sRowEmpty}).html(c))[0];y(a,"aoHeaderCallback","header",[f(a.nTHead).children("tr")[0],La(a),g,p,l]);y(a,"aoFooterCallback","footer",[f(a.nTFoot).children("tr")[0],La(a),g,p,l]);d=f(a.nTBody);d.children().detach();d.append(f(b));y(a,"aoDrawCallback","draw",[a]);a.bSorted=!1;a.bFiltered=!1;a.bDrawing=
!1}}function V(a,b){var c=a.oFeatures,d=c.bFilter;c.bSort&&mb(a);d?ha(a,a.oPreviousSearch):a.aiDisplay=a.aiDisplayMaster.slice();!0!==b&&(a._iDisplayStart=0);a._drawHold=b;R(a);a._drawHold=!1}function nb(a){var b=a.oClasses,c=f(a.nTable),c=f("<div/>").insertBefore(c),d=a.oFeatures,e=f("<div/>",{id:a.sTableId+"_wrapper","class":b.sWrapper+(a.nTFoot?"":" "+b.sNoFooter)});a.nHolding=c[0];a.nTableWrapper=e[0];a.nTableReinsertBefore=a.nTable.nextSibling;for(var h=a.sDom.split(""),g,k,l,p,n,v,m=0;m<h.length;m++){g=
null;k=h[m];if("<"==k){l=f("<div/>")[0];p=h[m+1];if("'"==p||'"'==p){n="";for(v=2;h[m+v]!=p;)n+=h[m+v],v++;"H"==n?n=b.sJUIHeader:"F"==n&&(n=b.sJUIFooter);-1!=n.indexOf(".")?(p=n.split("."),l.id=p[0].substr(1,p[0].length-1),l.className=p[1]):"#"==n.charAt(0)?l.id=n.substr(1,n.length-1):l.className=n;m+=v}e.append(l);e=f(l)}else if(">"==k)e=e.parent();else if("l"==k&&d.bPaginate&&d.bLengthChange)g=ob(a);else if("f"==k&&d.bFilter)g=pb(a);else if("r"==k&&d.bProcessing)g=qb(a);else if("t"==k)g=rb(a);else if("i"==
k&&d.bInfo)g=sb(a);else if("p"==k&&d.bPaginate)g=tb(a);else if(0!==q.ext.feature.length)for(l=q.ext.feature,v=0,p=l.length;v<p;v++)if(k==l[v].cFeature){g=l[v].fnInit(a);break}g&&(l=a.aanFeatures,l[k]||(l[k]=[]),l[k].push(g),e.append(g))}c.replaceWith(e);a.nHolding=null}function fa(a,b){var c=f(b).children("tr"),d,e,h,g,k,l,p,n,m,u;a.splice(0,a.length);h=0;for(l=c.length;h<l;h++)a.push([]);h=0;for(l=c.length;h<l;h++)for(d=c[h],e=d.firstChild;e;){if("TD"==e.nodeName.toUpperCase()||"TH"==e.nodeName.toUpperCase()){n=
1*e.getAttribute("colspan");m=1*e.getAttribute("rowspan");n=n&&0!==n&&1!==n?n:1;m=m&&0!==m&&1!==m?m:1;g=0;for(k=a[h];k[g];)g++;p=g;u=1===n?!0:!1;for(k=0;k<n;k++)for(g=0;g<m;g++)a[h+g][p+k]={cell:e,unique:u},a[h+g].nTr=d}e=e.nextSibling}}function ta(a,b,c){var d=[];c||(c=a.aoHeader,b&&(c=[],fa(c,b)));b=0;for(var e=c.length;b<e;b++)for(var h=0,g=c[b].length;h<g;h++)!c[b][h].unique||d[h]&&a.bSortCellsTop||(d[h]=c[b][h].cell);return d}function ua(a,b,c){y(a,"aoServerParams","serverParams",[b]);if(b&&
f.isArray(b)){var d={},e=/(.*?)\[\]$/;f.each(b,function(a,b){var c=b.name.match(e);c?(c=c[0],d[c]||(d[c]=[]),d[c].push(b.value)):d[b.name]=b.value});b=d}var h,g=a.ajax,k=a.oInstance,l=function(b){y(a,null,"xhr",[a,b,a.jqXHR]);c(b)};if(f.isPlainObject(g)&&g.data){h=g.data;var p=f.isFunction(h)?h(b,a):h;b=f.isFunction(h)&&p?p:f.extend(!0,b,p);delete g.data}p={data:b,success:function(b){var c=b.error||b.sError;c&&O(a,0,c);a.json=b;l(b)},dataType:"json",cache:!1,type:a.sServerMethod,error:function(b,
c,d){d=y(a,null,"xhr",[a,null,a.jqXHR]);-1===f.inArray(!0,d)&&("parsererror"==c?O(a,0,"Invalid JSON response",1):4===b.readyState&&O(a,0,"Ajax error",7));J(a,!1)}};a.oAjaxData=b;y(a,null,"preXhr",[a,b]);a.fnServerData?a.fnServerData.call(k,a.sAjaxSource,f.map(b,function(a,b){return{name:b,value:a}}),l,a):a.sAjaxSource||"string"===typeof g?a.jqXHR=f.ajax(f.extend(p,{url:g||a.sAjaxSource})):f.isFunction(g)?a.jqXHR=g.call(k,b,l,a):(a.jqXHR=f.ajax(f.extend(p,g)),g.data=h)}function lb(a){return a.bAjaxDataGet?
(a.iDraw++,J(a,!0),ua(a,ub(a),function(b){vb(a,b)}),!1):!0}function ub(a){var b=a.aoColumns,c=b.length,d=a.oFeatures,e=a.oPreviousSearch,h=a.aoPreSearchCols,g,k=[],l,p,n,m=X(a);g=a._iDisplayStart;l=!1!==d.bPaginate?a._iDisplayLength:-1;var u=function(a,b){k.push({name:a,value:b})};u("sEcho",a.iDraw);u("iColumns",c);u("sColumns",L(b,"sName").join(","));u("iDisplayStart",g);u("iDisplayLength",l);var ra={draw:a.iDraw,columns:[],order:[],start:g,length:l,search:{value:e.sSearch,regex:e.bRegex}};for(g=
0;g<c;g++)p=b[g],n=h[g],l="function"==typeof p.mData?"function":p.mData,ra.columns.push({data:l,name:p.sName,searchable:p.bSearchable,orderable:p.bSortable,search:{value:n.sSearch,regex:n.bRegex}}),u("mDataProp_"+g,l),d.bFilter&&(u("sSearch_"+g,n.sSearch),u("bRegex_"+g,n.bRegex),u("bSearchable_"+g,p.bSearchable)),d.bSort&&u("bSortable_"+g,p.bSortable);d.bFilter&&(u("sSearch",e.sSearch),u("bRegex",e.bRegex));d.bSort&&(f.each(m,function(a,b){ra.order.push({column:b.col,dir:b.dir});u("iSortCol_"+a,b.col);
u("sSortDir_"+a,b.dir)}),u("iSortingCols",m.length));b=q.ext.legacy.ajax;return null===b?a.sAjaxSource?k:ra:b?k:ra}function vb(a,b){var c=function(a,c){return b[a]!==m?b[a]:b[c]},d=va(a,b),e=c("sEcho","draw"),h=c("iTotalRecords","recordsTotal"),c=c("iTotalDisplayRecords","recordsFiltered");if(e){if(1*e<a.iDraw)return;a.iDraw=1*e}pa(a);a._iRecordsTotal=parseInt(h,10);a._iRecordsDisplay=parseInt(c,10);e=0;for(h=d.length;e<h;e++)Q(a,d[e]);a.aiDisplay=a.aiDisplayMaster.slice();a.bAjaxDataGet=!1;R(a);
a._bInitComplete||wa(a,b);a.bAjaxDataGet=!0;J(a,!1)}function va(a,b){var c=f.isPlainObject(a.ajax)&&a.ajax.dataSrc!==m?a.ajax.dataSrc:a.sAjaxDataProp;return"data"===c?b.aaData||b[c]:""!==c?T(c)(b):b}function pb(a){var b=a.oClasses,c=a.sTableId,d=a.oLanguage,e=a.oPreviousSearch,h=a.aanFeatures,g='<input type="search" class="'+b.sFilterInput+'"/>',k=d.sSearch,k=k.match(/_INPUT_/)?k.replace("_INPUT_",g):k+g,b=f("<div/>",{id:h.f?null:c+"_filter","class":b.sFilter}).append(f("<label/>").append(k)),h=function(){var b=
this.value?this.value:"";b!=e.sSearch&&(ha(a,{sSearch:b,bRegex:e.bRegex,bSmart:e.bSmart,bCaseInsensitive:e.bCaseInsensitive}),a._iDisplayStart=0,R(a))},g=null!==a.searchDelay?a.searchDelay:"ssp"===F(a)?400:0,l=f("input",b).val(e.sSearch).attr("placeholder",d.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",g?Pa(h,g):h).on("keypress.DT",function(a){if(13==a.keyCode)return!1}).attr("aria-controls",c);f(a.nTable).on("search.dt.DT",function(b,c){if(a===c)try{l[0]!==x.activeElement&&
l.val(e.sSearch)}catch(v){}});return b[0]}function ha(a,b,c){var d=a.oPreviousSearch,e=a.aoPreSearchCols,h=function(a){d.sSearch=a.sSearch;d.bRegex=a.bRegex;d.bSmart=a.bSmart;d.bCaseInsensitive=a.bCaseInsensitive},g=function(a){return a.bEscapeRegex!==m?!a.bEscapeRegex:a.bRegex};Ha(a);if("ssp"!=F(a)){wb(a,b.sSearch,c,g(b),b.bSmart,b.bCaseInsensitive);h(b);for(b=0;b<e.length;b++)xb(a,e[b].sSearch,b,g(e[b]),e[b].bSmart,e[b].bCaseInsensitive);yb(a)}else h(b);a.bFiltered=!0;y(a,null,"search",[a])}function yb(a){for(var b=
q.ext.search,c=a.aiDisplay,d,e,h=0,g=b.length;h<g;h++){for(var k=[],l=0,p=c.length;l<p;l++)e=c[l],d=a.aoData[e],b[h](a,d._aFilterData,e,d._aData,l)&&k.push(e);c.length=0;f.merge(c,k)}}function xb(a,b,c,d,e,h){if(""!==b){var g=[],k=a.aiDisplay;d=Qa(b,d,e,h);for(e=0;e<k.length;e++)b=a.aoData[k[e]]._aFilterData[c],d.test(b)&&g.push(k[e]);a.aiDisplay=g}}function wb(a,b,c,d,e,h){d=Qa(b,d,e,h);h=a.oPreviousSearch.sSearch;var g=a.aiDisplayMaster,k;e=[];0!==q.ext.search.length&&(c=!0);k=zb(a);if(0>=b.length)a.aiDisplay=
g.slice();else{if(k||c||h.length>b.length||0!==b.indexOf(h)||a.bSorted)a.aiDisplay=g.slice();b=a.aiDisplay;for(c=0;c<b.length;c++)d.test(a.aoData[b[c]]._sFilterRow)&&e.push(b[c]);a.aiDisplay=e}}function Qa(a,b,c,d){a=b?a:Ra(a);c&&(a="^(?=.*?"+f.map(a.match(/"[^"]+"|[^ ]+/g)||[""],function(a){if('"'===a.charAt(0)){var b=a.match(/^"(.*)"$/);a=b?b[1]:a}return a.replace('"',"")}).join(")(?=.*?")+").*$");return new RegExp(a,d?"i":"")}function zb(a){var b=a.aoColumns,c,d,e,h,g,k,f,p,n=q.ext.type.search;
c=!1;d=0;for(h=a.aoData.length;d<h;d++)if(p=a.aoData[d],!p._aFilterData){k=[];e=0;for(g=b.length;e<g;e++)c=b[e],c.bSearchable?(f=I(a,d,e,"filter"),n[c.sType]&&(f=n[c.sType](f)),null===f&&(f=""),"string"!==typeof f&&f.toString&&(f=f.toString())):f="",f.indexOf&&-1!==f.indexOf("&")&&(xa.innerHTML=f,f=Xb?xa.textContent:xa.innerText),f.replace&&(f=f.replace(/[\r\n]/g,"")),k.push(f);p._aFilterData=k;p._sFilterRow=k.join(" ");c=!0}return c}function Ab(a){return{search:a.sSearch,smart:a.bSmart,regex:a.bRegex,
caseInsensitive:a.bCaseInsensitive}}function Bb(a){return{sSearch:a.search,bSmart:a.smart,bRegex:a.regex,bCaseInsensitive:a.caseInsensitive}}function sb(a){var b=a.sTableId,c=a.aanFeatures.i,d=f("<div/>",{"class":a.oClasses.sInfo,id:c?null:b+"_info"});c||(a.aoDrawCallback.push({fn:Cb,sName:"information"}),d.attr("role","status").attr("aria-live","polite"),f(a.nTable).attr("aria-describedby",b+"_info"));return d[0]}function Cb(a){var b=a.aanFeatures.i;if(0!==b.length){var c=a.oLanguage,d=a._iDisplayStart+
1,e=a.fnDisplayEnd(),h=a.fnRecordsTotal(),g=a.fnRecordsDisplay(),k=g?c.sInfo:c.sInfoEmpty;g!==h&&(k+=" "+c.sInfoFiltered);k+=c.sInfoPostFix;k=Db(a,k);c=c.fnInfoCallback;null!==c&&(k=c.call(a.oInstance,a,d,e,h,g,k));f(b).html(k)}}function Db(a,b){var c=a.fnFormatNumber,d=a._iDisplayStart+1,e=a._iDisplayLength,h=a.fnRecordsDisplay(),g=-1===e;return b.replace(/_START_/g,c.call(a,d)).replace(/_END_/g,c.call(a,a.fnDisplayEnd())).replace(/_MAX_/g,c.call(a,a.fnRecordsTotal())).replace(/_TOTAL_/g,c.call(a,
h)).replace(/_PAGE_/g,c.call(a,g?1:Math.ceil(d/e))).replace(/_PAGES_/g,c.call(a,g?1:Math.ceil(h/e)))}function ia(a){var b,c,d=a.iInitDisplayStart,e=a.aoColumns,h;c=a.oFeatures;var g=a.bDeferLoading;if(a.bInitialised){nb(a);kb(a);ga(a,a.aoHeader);ga(a,a.aoFooter);J(a,!0);c.bAutoWidth&&Ga(a);b=0;for(c=e.length;b<c;b++)h=e[b],h.sWidth&&(h.nTh.style.width=D(h.sWidth));y(a,null,"preInit",[a]);V(a);e=F(a);if("ssp"!=e||g)"ajax"==e?ua(a,[],function(c){var h=va(a,c);for(b=0;b<h.length;b++)Q(a,h[b]);a.iInitDisplayStart=
d;V(a);J(a,!1);wa(a,c)},a):(J(a,!1),wa(a))}else setTimeout(function(){ia(a)},200)}function wa(a,b){a._bInitComplete=!0;(b||a.oInit.aaData)&&Z(a);y(a,null,"plugin-init",[a,b]);y(a,"aoInitComplete","init",[a,b])}function Sa(a,b){var c=parseInt(b,10);a._iDisplayLength=c;Ta(a);y(a,null,"length",[a,c])}function ob(a){for(var b=a.oClasses,c=a.sTableId,d=a.aLengthMenu,e=f.isArray(d[0]),h=e?d[0]:d,d=e?d[1]:d,e=f("<select/>",{name:c+"_length","aria-controls":c,"class":b.sLengthSelect}),g=0,k=h.length;g<k;g++)e[0][g]=
new Option(d[g],h[g]);var l=f("<div><label/></div>").addClass(b.sLength);a.aanFeatures.l||(l[0].id=c+"_length");l.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",e[0].outerHTML));f("select",l).val(a._iDisplayLength).on("change.DT",function(b){Sa(a,f(this).val());R(a)});f(a.nTable).on("length.dt.DT",function(b,c,d){a===c&&f("select",l).val(d)});return l[0]}function tb(a){var b=a.sPaginationType,c=q.ext.pager[b],d="function"===typeof c,e=function(a){R(a)},b=f("<div/>").addClass(a.oClasses.sPaging+
b)[0],h=a.aanFeatures;d||c.fnInit(a,b,e);h.p||(b.id=a.sTableId+"_paginate",a.aoDrawCallback.push({fn:function(a){if(d){var b=a._iDisplayStart,g=a._iDisplayLength,f=a.fnRecordsDisplay(),n=-1===g,b=n?0:Math.ceil(b/g),g=n?1:Math.ceil(f/g),f=c(b,g),m,n=0;for(m=h.p.length;n<m;n++)Oa(a,"pageButton")(a,h.p[n],n,f,b,g)}else c.fnUpdate(a,e)},sName:"pagination"}));return b}function Ua(a,b,c){var d=a._iDisplayStart,e=a._iDisplayLength,h=a.fnRecordsDisplay();0===h||-1===e?d=0:"number"===typeof b?(d=b*e,d>h&&
(d=0)):"first"==b?d=0:"previous"==b?(d=0<=e?d-e:0,0>d&&(d=0)):"next"==b?d+e<h&&(d+=e):"last"==b?d=Math.floor((h-1)/e)*e:O(a,0,"Unknown paging action: "+b,5);b=a._iDisplayStart!==d;a._iDisplayStart=d;b&&(y(a,null,"page",[a]),c&&R(a));return b}function qb(a){return f("<div/>",{id:a.aanFeatures.r?null:a.sTableId+"_processing","class":a.oClasses.sProcessing}).html(a.oLanguage.sProcessing).insertBefore(a.nTable)[0]}function J(a,b){a.oFeatures.bProcessing&&f(a.aanFeatures.r).css("display",b?"block":"none");
y(a,null,"processing",[a,b])}function rb(a){var b=f(a.nTable);b.attr("role","grid");var c=a.oScroll;if(""===c.sX&&""===c.sY)return a.nTable;var d=c.sX,e=c.sY,h=a.oClasses,g=b.children("caption"),k=g.length?g[0]._captionSide:null,l=f(b[0].cloneNode(!1)),p=f(b[0].cloneNode(!1)),n=b.children("tfoot");n.length||(n=null);l=f("<div/>",{"class":h.sScrollWrapper}).append(f("<div/>",{"class":h.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:d?d?D(d):null:"100%"}).append(f("<div/>",
{"class":h.sScrollHeadInner}).css({"box-sizing":"content-box",width:c.sXInner||"100%"}).append(l.removeAttr("id").css("margin-left",0).append("top"===k?g:null).append(b.children("thead"))))).append(f("<div/>",{"class":h.sScrollBody}).css({position:"relative",overflow:"auto",width:d?D(d):null}).append(b));n&&l.append(f("<div/>",{"class":h.sScrollFoot}).css({overflow:"hidden",border:0,width:d?d?D(d):null:"100%"}).append(f("<div/>",{"class":h.sScrollFootInner}).append(p.removeAttr("id").css("margin-left",
0).append("bottom"===k?g:null).append(b.children("tfoot")))));var b=l.children(),m=b[0],h=b[1],u=n?b[2]:null;if(d)f(h).on("scroll.DT",function(a){a=this.scrollLeft;m.scrollLeft=a;n&&(u.scrollLeft=a)});f(h).css(e&&c.bCollapse?"max-height":"height",e);a.nScrollHead=m;a.nScrollBody=h;a.nScrollFoot=u;a.aoDrawCallback.push({fn:ma,sName:"scrolling"});return l[0]}function ma(a){var b=a.oScroll,c=b.sX,d=b.sXInner,e=b.sY,b=b.iBarWidth,h=f(a.nScrollHead),g=h[0].style,k=h.children("div"),l=k[0].style,p=k.children("table"),
k=a.nScrollBody,n=f(k),v=k.style,u=f(a.nScrollFoot).children("div"),q=u.children("table"),t=f(a.nTHead),r=f(a.nTable),w=r[0],x=w.style,y=a.nTFoot?f(a.nTFoot):null,B=a.oBrowser,A=B.bScrollOversize,Yb=L(a.aoColumns,"nTh"),S,z,C,E,F=[],G=[],H=[],I=[],J,K=function(a){a=a.style;a.paddingTop="0";a.paddingBottom="0";a.borderTopWidth="0";a.borderBottomWidth="0";a.height=0};z=k.scrollHeight>k.clientHeight;a.scrollBarVis!==z&&a.scrollBarVis!==m?(a.scrollBarVis=z,Z(a)):(a.scrollBarVis=z,r.children("thead, tfoot").remove(),
y&&(C=y.clone().prependTo(r),S=y.find("tr"),C=C.find("tr")),E=t.clone().prependTo(r),t=t.find("tr"),z=E.find("tr"),E.find("th, td").removeAttr("tabindex"),c||(v.width="100%",h[0].style.width="100%"),f.each(ta(a,E),function(b,c){J=aa(a,b);c.style.width=a.aoColumns[J].sWidth}),y&&N(function(a){a.style.width=""},C),h=r.outerWidth(),""===c?(x.width="100%",A&&(r.find("tbody").height()>k.offsetHeight||"scroll"==n.css("overflow-y"))&&(x.width=D(r.outerWidth()-b)),h=r.outerWidth()):""!==d&&(x.width=D(d),
h=r.outerWidth()),N(K,z),N(function(a){H.push(a.innerHTML);F.push(D(f(a).css("width")))},z),N(function(a,b){-1!==f.inArray(a,Yb)&&(a.style.width=F[b])},t),f(z).height(0),y&&(N(K,C),N(function(a){I.push(a.innerHTML);G.push(D(f(a).css("width")))},C),N(function(a,b){a.style.width=G[b]},S),f(C).height(0)),N(function(a,b){a.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+H[b]+"</div>";a.style.width=F[b]},z),y&&N(function(a,b){a.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+
I[b]+"</div>";a.style.width=G[b]},C),r.outerWidth()<h?(S=k.scrollHeight>k.offsetHeight||"scroll"==n.css("overflow-y")?h+b:h,A&&(k.scrollHeight>k.offsetHeight||"scroll"==n.css("overflow-y"))&&(x.width=D(S-b)),""!==c&&""===d||O(a,1,"Possible column misalignment",6)):S="100%",v.width=D(S),g.width=D(S),y&&(a.nScrollFoot.style.width=D(S)),!e&&A&&(v.height=D(w.offsetHeight+b)),c=r.outerWidth(),p[0].style.width=D(c),l.width=D(c),d=r.height()>k.clientHeight||"scroll"==n.css("overflow-y"),e="padding"+(B.bScrollbarLeft?
2017-04-05 16:36:18 +02:00
"Left":"Right"),l[e]=d?b+"px":"0px",y&&(q[0].style.width=D(c),u[0].style.width=D(c),u[0].style[e]=d?b+"px":"0px"),r.children("colgroup").insertBefore(r.children("thead")),n.scroll(),!a.bSorted&&!a.bFiltered||a._drawHold||(k.scrollTop=0))}function N(a,b,c){for(var d=0,e=0,h=b.length,g,k;e<h;){g=b[e].firstChild;for(k=c?c[e].firstChild:null;g;)1===g.nodeType&&(c?a(g,k,d):a(g,d),d++),g=g.nextSibling,k=c?k.nextSibling:null;e++}}function Ga(a){var b=a.nTable,c=a.aoColumns,d=a.oScroll,e=d.sY,h=d.sX,g=d.sXInner,
k=c.length,l=na(a,"bVisible"),p=f("th",a.nTHead),n=b.getAttribute("width"),m=b.parentNode,u=!1,q,t,r=a.oBrowser,d=r.bScrollOversize;(q=b.style.width)&&-1!==q.indexOf("%")&&(n=q);for(q=0;q<l.length;q++)t=c[l[q]],null!==t.sWidth&&(t.sWidth=Eb(t.sWidthOrig,m),u=!0);if(d||!u&&!h&&!e&&k==ca(a)&&k==p.length)for(q=0;q<k;q++)l=aa(a,q),null!==l&&(c[l].sWidth=D(p.eq(q).width()));else{k=f(b).clone().css("visibility","hidden").removeAttr("id");k.find("tbody tr").remove();var w=f("<tr/>").appendTo(k.find("tbody"));
k.find("thead, tfoot").remove();k.append(f(a.nTHead).clone()).append(f(a.nTFoot).clone());k.find("tfoot th, tfoot td").css("width","");p=ta(a,k.find("thead")[0]);for(q=0;q<l.length;q++)t=c[l[q]],p[q].style.width=null!==t.sWidthOrig&&""!==t.sWidthOrig?D(t.sWidthOrig):"",t.sWidthOrig&&h&&f(p[q]).append(f("<div/>").css({width:t.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(a.aoData.length)for(q=0;q<l.length;q++)u=l[q],t=c[u],f(Fb(a,u)).clone(!1).append(t.sContentPadding).appendTo(w);f("[name]",
k).removeAttr("name");t=f("<div/>").css(h||e?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(k).appendTo(m);h&&g?k.width(g):h?(k.css("width","auto"),k.removeAttr("width"),k.width()<m.clientWidth&&n&&k.width(m.clientWidth)):e?k.width(m.clientWidth):n&&k.width(n);for(q=e=0;q<l.length;q++)m=f(p[q]),g=m.outerWidth()-m.width(),m=r.bBounding?Math.ceil(p[q].getBoundingClientRect().width):m.outerWidth(),e+=m,c[l[q]].sWidth=D(m-g);b.style.width=D(e);t.remove()}n&&(b.style.width=
D(n));!n&&!h||a._reszEvt||(b=function(){f(A).on("resize.DT-"+a.sInstance,Pa(function(){Z(a)}))},d?setTimeout(b,1E3):b(),a._reszEvt=!0)}function Eb(a,b){if(!a)return 0;var c=f("<div/>").css("width",D(a)).appendTo(b||x.body),d=c[0].offsetWidth;c.remove();return d}function Fb(a,b){var c=Gb(a,b);if(0>c)return null;var d=a.aoData[c];return d.nTr?d.anCells[b]:f("<td/>").html(I(a,c,b,"display"))[0]}function Gb(a,b){for(var c,d=-1,e=-1,h=0,g=a.aoData.length;h<g;h++)c=I(a,h,b,"display")+"",c=c.replace(Zb,
""),c=c.replace(/&nbsp;/g," "),c.length>d&&(d=c.length,e=h);return e}function D(a){return null===a?"0px":"number"==typeof a?0>a?"0px":a+"px":a.match(/\d$/)?a+"px":a}function X(a){var b,c,d=[],e=a.aoColumns,h,g,k,l;b=a.aaSortingFixed;c=f.isPlainObject(b);var p=[];h=function(a){a.length&&!f.isArray(a[0])?p.push(a):f.merge(p,a)};f.isArray(b)&&h(b);c&&b.pre&&h(b.pre);h(a.aaSorting);c&&b.post&&h(b.post);for(a=0;a<p.length;a++)for(l=p[a][0],h=e[l].aDataSort,b=0,c=h.length;b<c;b++)g=h[b],k=e[g].sType||"string",
2017-04-05 16:36:18 +02:00
p[a]._idx===m&&(p[a]._idx=f.inArray(p[a][1],e[g].asSorting)),d.push({src:l,col:g,dir:p[a][1],index:p[a]._idx,type:k,formatter:q.ext.type.order[k+"-pre"]});return d}function mb(a){var b,c,d=[],e=q.ext.type.order,h=a.aoData,g=0,k,f=a.aiDisplayMaster,p;Ha(a);p=X(a);b=0;for(c=p.length;b<c;b++)k=p[b],k.formatter&&g++,Hb(a,k.col);if("ssp"!=F(a)&&0!==p.length){b=0;for(c=f.length;b<c;b++)d[f[b]]=b;g===p.length?f.sort(function(a,b){var c,e,g,f,k=p.length,l=h[a]._aSortData,n=h[b]._aSortData;for(g=0;g<k;g++)if(f=
p[g],c=l[f.col],e=n[f.col],c=c<e?-1:c>e?1:0,0!==c)return"asc"===f.dir?c:-c;c=d[a];e=d[b];return c<e?-1:c>e?1:0}):f.sort(function(a,b){var c,g,f,k,l=p.length,n=h[a]._aSortData,m=h[b]._aSortData;for(f=0;f<l;f++)if(k=p[f],c=n[k.col],g=m[k.col],k=e[k.type+"-"+k.dir]||e["string-"+k.dir],c=k(c,g),0!==c)return c;c=d[a];g=d[b];return c<g?-1:c>g?1:0})}a.bSorted=!0}function Ib(a){var b,c,d=a.aoColumns,e=X(a);a=a.oLanguage.oAria;for(var h=0,g=d.length;h<g;h++){c=d[h];var f=c.asSorting;b=c.sTitle.replace(/<.*?>/g,
"");var l=c.nTh;l.removeAttribute("aria-sort");c.bSortable&&(0<e.length&&e[0].col==h?(l.setAttribute("aria-sort","asc"==e[0].dir?"ascending":"descending"),c=f[e[0].index+1]||f[0]):c=f[0],b+="asc"===c?a.sSortAscending:a.sSortDescending);l.setAttribute("aria-label",b)}}function Va(a,b,c,d){var e=a.aaSorting,h=a.aoColumns[b].asSorting,g=function(a,b){var c=a._idx;c===m&&(c=f.inArray(a[1],h));return c+1<h.length?c+1:b?null:0};"number"===typeof e[0]&&(e=a.aaSorting=[e]);c&&a.oFeatures.bSortMulti?(c=f.inArray(b,
L(e,"0")),-1!==c?(b=g(e[c],!0),null===b&&1===e.length&&(b=0),null===b?e.splice(c,1):(e[c][1]=h[b],e[c]._idx=b)):(e.push([b,h[0],0]),e[e.length-1]._idx=0)):e.length&&e[0][0]==b?(b=g(e[0]),e.length=1,e[0][1]=h[b],e[0]._idx=b):(e.length=0,e.push([b,h[0]]),e[0]._idx=0);V(a);"function"==typeof d&&d(a)}function Na(a,b,c,d){var e=a.aoColumns[c];Wa(b,{},function(b){!1!==e.bSortable&&(a.oFeatures.bProcessing?(J(a,!0),setTimeout(function(){Va(a,c,b.shiftKey,d);"ssp"!==F(a)&&J(a,!1)},0)):Va(a,c,b.shiftKey,d))})}
function ya(a){var b=a.aLastSort,c=a.oClasses.sSortColumn,d=X(a),e=a.oFeatures,h,g;if(e.bSort&&e.bSortClasses){e=0;for(h=b.length;e<h;e++)g=b[e].src,f(L(a.aoData,"anCells",g)).removeClass(c+(2>e?e+1:3));e=0;for(h=d.length;e<h;e++)g=d[e].src,f(L(a.aoData,"anCells",g)).addClass(c+(2>e?e+1:3))}a.aLastSort=d}function Hb(a,b){var c=a.aoColumns[b],d=q.ext.order[c.sSortDataType],e;d&&(e=d.call(a.oInstance,a,b,ba(a,b)));for(var h,g=q.ext.type.order[c.sType+"-pre"],f=0,l=a.aoData.length;f<l;f++)if(c=a.aoData[f],
c._aSortData||(c._aSortData=[]),!c._aSortData[b]||d)h=d?e[f]:I(a,f,b,"sort"),c._aSortData[b]=g?g(h):h}function za(a){if(a.oFeatures.bStateSave&&!a.bDestroying){var b={time:+new Date,start:a._iDisplayStart,length:a._iDisplayLength,order:f.extend(!0,[],a.aaSorting),search:Ab(a.oPreviousSearch),columns:f.map(a.aoColumns,function(b,d){return{visible:b.bVisible,search:Ab(a.aoPreSearchCols[d])}})};y(a,"aoStateSaveParams","stateSaveParams",[a,b]);a.oSavedState=b;a.fnStateSaveCallback.call(a.oInstance,a,
2017-04-05 16:36:18 +02:00
b)}}function Jb(a,b,c){var d,e,h=a.aoColumns;b=function(b){if(b&&b.time){var g=y(a,"aoStateLoadParams","stateLoadParams",[a,b]);if(-1===f.inArray(!1,g)&&(g=a.iStateDuration,!(0<g&&b.time<+new Date-1E3*g||b.columns&&h.length!==b.columns.length))){a.oLoadedState=f.extend(!0,{},b);b.start!==m&&(a._iDisplayStart=b.start,a.iInitDisplayStart=b.start);b.length!==m&&(a._iDisplayLength=b.length);b.order!==m&&(a.aaSorting=[],f.each(b.order,function(b,c){a.aaSorting.push(c[0]>=h.length?[0,c[1]]:c)}));b.search!==
m&&f.extend(a.oPreviousSearch,Bb(b.search));if(b.columns)for(d=0,e=b.columns.length;d<e;d++)g=b.columns[d],g.visible!==m&&(h[d].bVisible=g.visible),g.search!==m&&f.extend(a.aoPreSearchCols[d],Bb(g.search));y(a,"aoStateLoaded","stateLoaded",[a,b])}}c()};if(a.oFeatures.bStateSave){var g=a.fnStateLoadCallback.call(a.oInstance,a,b);g!==m&&b(g)}else c()}function Aa(a){var b=q.settings;a=f.inArray(a,L(b,"nTable"));return-1!==a?b[a]:null}function O(a,b,c,d){c="DataTables warning: "+(a?"table id="+a.sTableId+
" - ":"")+c;d&&(c+=". For more information about this error, please see http://datatables.net/tn/"+d);if(b)A.console&&console.log&&console.log(c);else if(b=q.ext,b=b.sErrMode||b.errMode,a&&y(a,null,"error",[a,d,c]),"alert"==b)alert(c);else{if("throw"==b)throw Error(c);"function"==typeof b&&b(a,d,c)}}function M(a,b,c,d){f.isArray(c)?f.each(c,function(c,d){f.isArray(d)?M(a,b,d[0],d[1]):M(a,b,d)}):(d===m&&(d=c),b[c]!==m&&(a[d]=b[c]))}function Kb(a,b,c){var d,e;for(e in b)b.hasOwnProperty(e)&&(d=b[e],
f.isPlainObject(d)?(f.isPlainObject(a[e])||(a[e]={}),f.extend(!0,a[e],d)):c&&"data"!==e&&"aaData"!==e&&f.isArray(d)?a[e]=d.slice():a[e]=d);return a}function Wa(a,b,c){f(a).on("click.DT",b,function(b){a.blur();c(b)}).on("keypress.DT",b,function(a){13===a.which&&(a.preventDefault(),c(a))}).on("selectstart.DT",function(){return!1})}function G(a,b,c,d){c&&a[b].push({fn:c,sName:d})}function y(a,b,c,d){var e=[];b&&(e=f.map(a[b].slice().reverse(),function(b,c){return b.fn.apply(a.oInstance,d)}));null!==
c&&(b=f.Event(c+".dt"),f(a.nTable).trigger(b,d),e.push(b.result));return e}function Ta(a){var b=a._iDisplayStart,c=a.fnDisplayEnd(),d=a._iDisplayLength;b>=c&&(b=c-d);b-=b%d;if(-1===d||0>b)b=0;a._iDisplayStart=b}function Oa(a,b){var c=a.renderer,d=q.ext.renderer[b];return f.isPlainObject(c)&&c[b]?d[c[b]]||d._:"string"===typeof c?d[c]||d._:d._}function F(a){return a.oFeatures.bServerSide?"ssp":a.ajax||a.sAjaxSource?"ajax":"dom"}function ja(a,b){var c;c=Lb.numbers_length;var d=Math.floor(c/2);b<=c?c=
Y(0,b):a<=d?(c=Y(0,c-2),c.push("ellipsis"),c.push(b-1)):(a>=b-1-d?c=Y(b-(c-2),b):(c=Y(a-d+2,a+d-1),c.push("ellipsis"),c.push(b-1)),c.splice(0,0,"ellipsis"),c.splice(0,0,0));c.DT_el="span";return c}function db(a){f.each({num:function(b){return Ba(b,a)},"num-fmt":function(b){return Ba(b,a,Xa)},"html-num":function(b){return Ba(b,a,Ca)},"html-num-fmt":function(b){return Ba(b,a,Ca,Xa)}},function(b,c){z.type.order[b+a+"-pre"]=c;b.match(/^html\-/)&&(z.type.search[b+a]=z.type.search.html)})}function Mb(a){return function(){var b=
[Aa(this[q.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return q.ext.internal[a].apply(this,b)}}var q=function(a){this.$=function(a,b){return this.api(!0).$(a,b)};this._=function(a,b){return this.api(!0).rows(a,b).data()};this.api=function(a){return a?new w(Aa(this[z.iApiIndex])):new w(this)};this.fnAddData=function(a,b){var c=this.api(!0),d=f.isArray(a)&&(f.isArray(a[0])||f.isPlainObject(a[0]))?c.rows.add(a):c.row.add(a);(b===m||b)&&c.draw();return d.flatten().toArray()};this.fnAdjustColumnSizing=
function(a){var b=this.api(!0).columns.adjust(),c=b.settings()[0],d=c.oScroll;a===m||a?b.draw(!1):""===d.sX&&""===d.sY||ma(c)};this.fnClearTable=function(a){var b=this.api(!0).clear();(a===m||a)&&b.draw()};this.fnClose=function(a){this.api(!0).row(a).child.hide()};this.fnDeleteRow=function(a,b,c){var d=this.api(!0);a=d.rows(a);var e=a.settings()[0],h=e.aoData[a[0][0]];a.remove();b&&b.call(this,e,h);(c===m||c)&&d.draw();return h};this.fnDestroy=function(a){this.api(!0).destroy(a)};this.fnDraw=function(a){this.api(!0).draw(a)};
this.fnFilter=function(a,b,c,d,e,f){e=this.api(!0);null===b||b===m?e.search(a,c,d,f):e.column(b).search(a,c,d,f);e.draw()};this.fnGetData=function(a,b){var c=this.api(!0);if(a!==m){var d=a.nodeName?a.nodeName.toLowerCase():"";return b!==m||"td"==d||"th"==d?c.cell(a,b).data():c.row(a).data()||null}return c.data().toArray()};this.fnGetNodes=function(a){var b=this.api(!0);return a!==m?b.row(a).node():b.rows().nodes().flatten().toArray()};this.fnGetPosition=function(a){var b=this.api(!0),c=a.nodeName.toUpperCase();
return"TR"==c?b.row(a).index():"TD"==c||"TH"==c?(a=b.cell(a).index(),[a.row,a.columnVisible,a.column]):null};this.fnIsOpen=function(a){return this.api(!0).row(a).child.isShown()};this.fnOpen=function(a,b,c){return this.api(!0).row(a).child(b,c).show().child()[0]};this.fnPageChange=function(a,b){var c=this.api(!0).page(a);(b===m||b)&&c.draw(!1)};this.fnSetColumnVis=function(a,b,c){a=this.api(!0).column(a).visible(b);(c===m||c)&&a.columns.adjust().draw()};this.fnSettings=function(){return Aa(this[z.iApiIndex])};
this.fnSort=function(a){this.api(!0).order(a).draw()};this.fnSortListener=function(a,b,c){this.api(!0).order.listener(a,b,c)};this.fnUpdate=function(a,b,c,d,e){var h=this.api(!0);c===m||null===c?h.row(b).data(a):h.cell(b,c).data(a);(e===m||e)&&h.columns.adjust();(d===m||d)&&h.draw();return 0};this.fnVersionCheck=z.fnVersionCheck;var b=this,c=a===m,d=this.length;c&&(a={});this.oApi=this.internal=z.internal;for(var e in q.ext.internal)e&&(this[e]=Mb(e));this.each(function(){var e={},g=1<d?Kb(e,a,!0):
a,k=0,l,e=this.getAttribute("id"),p=!1,n=q.defaults,v=f(this);if("table"!=this.nodeName.toLowerCase())O(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{eb(n);fb(n.column);K(n,n,!0);K(n.column,n.column,!0);K(n,f.extend(g,v.data()));var u=q.settings,k=0;for(l=u.length;k<l;k++){var t=u[k];if(t.nTable==this||t.nTHead.parentNode==this||t.nTFoot&&t.nTFoot.parentNode==this){var w=g.bRetrieve!==m?g.bRetrieve:n.bRetrieve;if(c||w)return t.oInstance;if(g.bDestroy!==m?g.bDestroy:n.bDestroy){t.oInstance.fnDestroy();
break}else{O(t,0,"Cannot reinitialise DataTable",3);return}}if(t.sTableId==this.id){u.splice(k,1);break}}if(null===e||""===e)this.id=e="DataTables_Table_"+q.ext._unique++;var r=f.extend(!0,{},q.models.oSettings,{sDestroyWidth:v[0].style.width,sInstance:e,sTableId:e});r.nTable=this;r.oApi=b.internal;r.oInit=g;u.push(r);r.oInstance=1===b.length?b:v.dataTable();eb(g);g.oLanguage&&Ea(g.oLanguage);g.aLengthMenu&&!g.iDisplayLength&&(g.iDisplayLength=f.isArray(g.aLengthMenu[0])?g.aLengthMenu[0][0]:g.aLengthMenu[0]);
g=Kb(f.extend(!0,{},n),g);M(r.oFeatures,g,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" "));M(r,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"],["bJQueryUI","bJUI"]]);M(r.oScroll,g,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]);M(r.oLanguage,g,"fnInfoCallback");G(r,"aoDrawCallback",g.fnDrawCallback,"user");G(r,"aoServerParams",g.fnServerParams,"user");G(r,"aoStateSaveParams",g.fnStateSaveParams,"user");G(r,"aoStateLoadParams",g.fnStateLoadParams,"user");G(r,"aoStateLoaded",g.fnStateLoaded,
"user");G(r,"aoRowCallback",g.fnRowCallback,"user");G(r,"aoRowCreatedCallback",g.fnCreatedRow,"user");G(r,"aoHeaderCallback",g.fnHeaderCallback,"user");G(r,"aoFooterCallback",g.fnFooterCallback,"user");G(r,"aoInitComplete",g.fnInitComplete,"user");G(r,"aoPreDrawCallback",g.fnPreDrawCallback,"user");r.rowIdFn=T(g.rowId);gb(r);var x=r.oClasses;g.bJQueryUI?(f.extend(x,q.ext.oJUIClasses,g.oClasses),g.sDom===n.sDom&&"lfrtip"===n.sDom&&(r.sDom='<"H"lfr>t<"F"ip>'),r.renderer)?f.isPlainObject(r.renderer)&&
!r.renderer.header&&(r.renderer.header="jqueryui"):r.renderer="jqueryui":f.extend(x,q.ext.classes,g.oClasses);v.addClass(x.sTable);r.iInitDisplayStart===m&&(r.iInitDisplayStart=g.iDisplayStart,r._iDisplayStart=g.iDisplayStart);null!==g.iDeferLoading&&(r.bDeferLoading=!0,e=f.isArray(g.iDeferLoading),r._iRecordsDisplay=e?g.iDeferLoading[0]:g.iDeferLoading,r._iRecordsTotal=e?g.iDeferLoading[1]:g.iDeferLoading);var z=r.oLanguage;f.extend(!0,z,g.oLanguage);z.sUrl&&(f.ajax({dataType:"json",url:z.sUrl,success:function(a){Ea(a);
K(n.oLanguage,a);f.extend(!0,z,a);ia(r)},error:function(){ia(r)}}),p=!0);null===g.asStripeClasses&&(r.asStripeClasses=[x.sStripeOdd,x.sStripeEven]);var e=r.asStripeClasses,B=v.children("tbody").find("tr").eq(0);-1!==f.inArray(!0,f.map(e,function(a,b){return B.hasClass(a)}))&&(f("tbody tr",this).removeClass(e.join(" ")),r.asDestroyStripes=e.slice());e=[];u=this.getElementsByTagName("thead");0!==u.length&&(fa(r.aoHeader,u[0]),e=ta(r));if(null===g.aoColumns)for(u=[],k=0,l=e.length;k<l;k++)u.push(null);
else u=g.aoColumns;k=0;for(l=u.length;k<l;k++)Fa(r,e?e[k]:null);ib(r,g.aoColumnDefs,u,function(a,b){la(r,a,b)});if(B.length){var A=function(a,b){return null!==a.getAttribute("data-"+b)?b:null};f(B[0]).children("th, td").each(function(a,b){var c=r.aoColumns[a];if(c.mData===a){var d=A(b,"sort")||A(b,"order"),e=A(b,"filter")||A(b,"search");if(null!==d||null!==e)c.mData={_:a+".display",sort:null!==d?a+".@data-"+d:m,type:null!==d?a+".@data-"+d:m,filter:null!==e?a+".@data-"+e:m},la(r,a)}})}var C=r.oFeatures,
e=function(){if(g.aaSorting===m){var a=r.aaSorting;k=0;for(l=a.length;k<l;k++)a[k][1]=r.aoColumns[k].asSorting[0]}ya(r);C.bSort&&G(r,"aoDrawCallback",function(){if(r.bSorted){var a=X(r),b={};f.each(a,function(a,c){b[c.src]=c.dir});y(r,null,"order",[r,a,b]);Ib(r)}});G(r,"aoDrawCallback",function(){(r.bSorted||"ssp"===F(r)||C.bDeferRender)&&ya(r)},"sc");var a=v.children("caption").each(function(){this._captionSide=f(this).css("caption-side")}),b=v.children("thead");0===b.length&&(b=f("<thead/>").appendTo(v));
r.nTHead=b[0];b=v.children("tbody");0===b.length&&(b=f("<tbody/>").appendTo(v));r.nTBody=b[0];b=v.children("tfoot");0===b.length&&0<a.length&&(""!==r.oScroll.sX||""!==r.oScroll.sY)&&(b=f("<tfoot/>").appendTo(v));0===b.length||0===b.children().length?v.addClass(x.sNoFooter):0<b.length&&(r.nTFoot=b[0],fa(r.aoFooter,r.nTFoot));if(g.aaData)for(k=0;k<g.aaData.length;k++)Q(r,g.aaData[k]);else(r.bDeferLoading||"dom"==F(r))&&oa(r,f(r.nTBody).children("tr"));r.aiDisplay=r.aiDisplayMaster.slice();r.bInitialised=
!0;!1===p&&ia(r)};g.bStateSave?(C.bStateSave=!0,G(r,"aoDrawCallback",za,"state_save"),Jb(r,g,e)):e()}});b=null;return this},z,w,t,B,Ya={},Nb=/[\r\n]/g,Ca=/<.*?>/g,$b=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,ac=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Xa=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfk]/gi,P=function(a){return a&&!0!==a&&"-"!==a?!1:!0},Ob=function(a){var b=parseInt(a,10);return!isNaN(b)&&isFinite(a)?b:null},
Pb=function(a,b){Ya[b]||(Ya[b]=new RegExp(Ra(b),"g"));return"string"===typeof a&&"."!==b?a.replace(/\./g,"").replace(Ya[b],"."):a},Za=function(a,b,c){var d="string"===typeof a;if(P(a))return!0;b&&d&&(a=Pb(a,b));c&&d&&(a=a.replace(Xa,""));return!isNaN(parseFloat(a))&&isFinite(a)},Qb=function(a,b,c){return P(a)?!0:P(a)||"string"===typeof a?Za(a.replace(Ca,""),b,c)?!0:null:null},L=function(a,b,c){var d=[],e=0,h=a.length;if(c!==m)for(;e<h;e++)a[e]&&a[e][b]&&d.push(a[e][b][c]);else for(;e<h;e++)a[e]&&
d.push(a[e][b]);return d},ka=function(a,b,c,d){var e=[],h=0,g=b.length;if(d!==m)for(;h<g;h++)a[b[h]][c]&&e.push(a[b[h]][c][d]);else for(;h<g;h++)e.push(a[b[h]][c]);return e},Y=function(a,b){var c=[],d;b===m?(b=0,d=a):(d=b,b=a);for(var e=b;e<d;e++)c.push(e);return c},Rb=function(a){for(var b=[],c=0,d=a.length;c<d;c++)a[c]&&b.push(a[c]);return b},sa=function(a){var b=[],c,d,e=a.length,h,g=0;d=0;a:for(;d<e;d++){c=a[d];for(h=0;h<g;h++)if(b[h]===c)continue a;b.push(c);g++}return b};q.util={throttle:function(a,
b){var c=b!==m?b:200,d,e;return function(){var b=this,g=+new Date,f=arguments;d&&g<d+c?(clearTimeout(e),e=setTimeout(function(){d=m;a.apply(b,f)},c)):(d=g,a.apply(b,f))}},escapeRegex:function(a){return a.replace(ac,"\\$1")}};var H=function(a,b,c){a[b]!==m&&(a[c]=a[b])},da=/\[.*?\]$/,W=/\(\)$/,Ra=q.util.escapeRegex,xa=f("<div>")[0],Xb=xa.textContent!==m,Zb=/<.*?>/g,Pa=q.util.throttle,Sb=[],C=Array.prototype,bc=function(a){var b,c,d=q.settings,e=f.map(d,function(a,b){return a.nTable});if(a){if(a.nTable&&
a.oApi)return[a];if(a.nodeName&&"table"===a.nodeName.toLowerCase())return b=f.inArray(a,e),-1!==b?[d[b]]:null;if(a&&"function"===typeof a.settings)return a.settings().toArray();"string"===typeof a?c=f(a):a instanceof f&&(c=a)}else return[];if(c)return c.map(function(a){b=f.inArray(this,e);return-1!==b?d[b]:null}).toArray()};w=function(a,b){if(!(this instanceof w))return new w(a,b);var c=[],d=function(a){(a=bc(a))&&(c=c.concat(a))};if(f.isArray(a))for(var e=0,h=a.length;e<h;e++)d(a[e]);else d(a);this.context=
sa(c);b&&f.merge(this,b);this.selector={rows:null,cols:null,opts:null};w.extend(this,this,Sb)};q.Api=w;f.extend(w.prototype,{any:function(){return 0!==this.count()},concat:C.concat,context:[],count:function(){return this.flatten().length},each:function(a){for(var b=0,c=this.length;b<c;b++)a.call(this,this[b],b,this);return this},eq:function(a){var b=this.context;return b.length>a?new w(b[a],this[a]):null},filter:function(a){var b=[];if(C.filter)b=C.filter.call(this,a,this);else for(var c=0,d=this.length;c<
d;c++)a.call(this,this[c],c,this)&&b.push(this[c]);return new w(this.context,b)},flatten:function(){var a=[];return new w(this.context,a.concat.apply(a,this.toArray()))},join:C.join,indexOf:C.indexOf||function(a,b){for(var c=b||0,d=this.length;c<d;c++)if(this[c]===a)return c;return-1},iterator:function(a,b,c,d){var e=[],h,g,f,l,p,n=this.context,q,u,t=this.selector;"string"===typeof a&&(d=c,c=b,b=a,a=!1);g=0;for(f=n.length;g<f;g++){var x=new w(n[g]);if("table"===b)h=c.call(x,n[g],g),h!==m&&e.push(h);
else if("columns"===b||"rows"===b)h=c.call(x,n[g],this[g],g),h!==m&&e.push(h);else if("column"===b||"column-rows"===b||"row"===b||"cell"===b)for(u=this[g],"column-rows"===b&&(q=Da(n[g],t.opts)),l=0,p=u.length;l<p;l++)h=u[l],h="cell"===b?c.call(x,n[g],h.row,h.column,g,l):c.call(x,n[g],h,g,l,q),h!==m&&e.push(h)}return e.length||d?(a=new w(n,a?e.concat.apply([],e):e),b=a.selector,b.rows=t.rows,b.cols=t.cols,b.opts=t.opts,a):this},lastIndexOf:C.lastIndexOf||function(a,b){return this.indexOf.apply(this.toArray.reverse(),
arguments)},length:0,map:function(a){var b=[];if(C.map)b=C.map.call(this,a,this);else for(var c=0,d=this.length;c<d;c++)b.push(a.call(this,this[c],c));return new w(this.context,b)},pluck:function(a){return this.map(function(b){return b[a]})},pop:C.pop,push:C.push,reduce:C.reduce||function(a,b){return hb(this,a,b,0,this.length,1)},reduceRight:C.reduceRight||function(a,b){return hb(this,a,b,this.length-1,-1,-1)},reverse:C.reverse,selector:null,shift:C.shift,sort:C.sort,splice:C.splice,toArray:function(){return C.slice.call(this)},
to$:function(){return f(this)},toJQuery:function(){return f(this)},unique:function(){return new w(this.context,sa(this))},unshift:C.unshift});w.extend=function(a,b,c){if(c.length&&b&&(b instanceof w||b.__dt_wrapper)){var d,e,h,g=function(a,b,c){return function(){var d=b.apply(a,arguments);w.extend(d,d,c.methodExt);return d}};d=0;for(e=c.length;d<e;d++)h=c[d],b[h.name]="function"===typeof h.val?g(a,h.val,h):f.isPlainObject(h.val)?{}:h.val,b[h.name].__dt_wrapper=!0,w.extend(a,b[h.name],h.propExt)}};
w.register=t=function(a,b){if(f.isArray(a))for(var c=0,d=a.length;c<d;c++)w.register(a[c],b);else for(var e=a.split("."),h=Sb,g,k,c=0,d=e.length;c<d;c++){g=(k=-1!==e[c].indexOf("()"))?e[c].replace("()",""):e[c];var l;a:{l=0;for(var m=h.length;l<m;l++)if(h[l].name===g){l=h[l];break a}l=null}l||(l={name:g,val:{},methodExt:[],propExt:[]},h.push(l));c===d-1?l.val=b:h=k?l.methodExt:l.propExt}};w.registerPlural=B=function(a,b,c){w.register(a,c);w.register(b,function(){var a=c.apply(this,arguments);return a===
this?this:a instanceof w?a.length?f.isArray(a[0])?new w(a.context,a[0]):a[0]:m:a})};var cc=function(a,b){if("number"===typeof a)return[b[a]];var c=f.map(b,function(a,b){return a.nTable});return f(c).filter(a).map(function(a){a=f.inArray(this,c);return b[a]}).toArray()};t("tables()",function(a){return a?new w(cc(a,this.context)):this});t("table()",function(a){a=this.tables(a);var b=a.context;return b.length?new w(b[0]):a});B("tables().nodes()","table().node()",function(){return this.iterator("table",
function(a){return a.nTable},1)});B("tables().body()","table().body()",function(){return this.iterator("table",function(a){return a.nTBody},1)});B("tables().header()","table().header()",function(){return this.iterator("table",function(a){return a.nTHead},1)});B("tables().footer()","table().footer()",function(){return this.iterator("table",function(a){return a.nTFoot},1)});B("tables().containers()","table().container()",function(){return this.iterator("table",function(a){return a.nTableWrapper},1)});
t("draw()",function(a){return this.iterator("table",function(b){"page"===a?R(b):("string"===typeof a&&(a="full-hold"===a?!1:!0),V(b,!1===a))})});t("page()",function(a){return a===m?this.page.info().page:this.iterator("table",function(b){Ua(b,a)})});t("page.info()",function(a){if(0===this.context.length)return m;a=this.context[0];var b=a._iDisplayStart,c=a.oFeatures.bPaginate?a._iDisplayLength:-1,d=a.fnRecordsDisplay(),e=-1===c;return{page:e?0:Math.floor(b/c),pages:e?1:Math.ceil(d/c),start:b,end:a.fnDisplayEnd(),
length:c,recordsTotal:a.fnRecordsTotal(),recordsDisplay:d,serverSide:"ssp"===F(a)}});t("page.len()",function(a){return a===m?0!==this.context.length?this.context[0]._iDisplayLength:m:this.iterator("table",function(b){Sa(b,a)})});var Tb=function(a,b,c){if(c){var d=new w(a);d.one("draw",function(){c(d.ajax.json())})}if("ssp"==F(a))V(a,b);else{J(a,!0);var e=a.jqXHR;e&&4!==e.readyState&&e.abort();ua(a,[],function(c){pa(a);c=va(a,c);for(var d=0,e=c.length;d<e;d++)Q(a,c[d]);V(a,b);J(a,!1)})}};t("ajax.json()",
function(){var a=this.context;if(0<a.length)return a[0].json});t("ajax.params()",function(){var a=this.context;if(0<a.length)return a[0].oAjaxData});t("ajax.reload()",function(a,b){return this.iterator("table",function(c){Tb(c,!1===b,a)})});t("ajax.url()",function(a){var b=this.context;if(a===m){if(0===b.length)return m;b=b[0];return b.ajax?f.isPlainObject(b.ajax)?b.ajax.url:b.ajax:b.sAjaxSource}return this.iterator("table",function(b){f.isPlainObject(b.ajax)?b.ajax.url=a:b.ajax=a})});t("ajax.url().load()",
function(a,b){return this.iterator("table",function(c){Tb(c,!1===b,a)})});var $a=function(a,b,c,d,e){var h=[],g,k,l,p,n,q;l=typeof b;b&&"string"!==l&&"function"!==l&&b.length!==m||(b=[b]);l=0;for(p=b.length;l<p;l++)for(k=b[l]&&b[l].split&&!b[l].match(/[\[\(:]/)?b[l].split(","):[b[l]],n=0,q=k.length;n<q;n++)(g=c("string"===typeof k[n]?f.trim(k[n]):k[n]))&&g.length&&(h=h.concat(g));a=z.selector[a];if(a.length)for(l=0,p=a.length;l<p;l++)h=a[l](d,e,h);return sa(h)},ab=function(a){a||(a={});a.filter&&
a.search===m&&(a.search=a.filter);return f.extend({search:"none",order:"current",page:"all"},a)},bb=function(a){for(var b=0,c=a.length;b<c;b++)if(0<a[b].length)return a[0]=a[b],a[0].length=1,a.length=1,a.context=[a.context[b]],a;a.length=0;return a},Da=function(a,b){var c,d,e,h=[],g=a.aiDisplay;c=a.aiDisplayMaster;var k=b.search;d=b.order;e=b.page;if("ssp"==F(a))return"removed"===k?[]:Y(0,c.length);if("current"==e)for(c=a._iDisplayStart,d=a.fnDisplayEnd();c<d;c++)h.push(g[c]);else if("current"==d||
"applied"==d)h="none"==k?c.slice():"applied"==k?g.slice():f.map(c,function(a,b){return-1===f.inArray(a,g)?a:null});else if("index"==d||"original"==d)for(c=0,d=a.aoData.length;c<d;c++)"none"==k?h.push(c):(e=f.inArray(c,g),(-1===e&&"removed"==k||0<=e&&"applied"==k)&&h.push(c));return h},dc=function(a,b,c){var d;return $a("row",b,function(b){var e=Ob(b);if(null!==e&&!c)return[e];d||(d=Da(a,c));if(null!==e&&-1!==f.inArray(e,d))return[e];if(null===b||b===m||""===b)return d;if("function"===typeof b)return f.map(d,
function(c){var d=a.aoData[c];return b(c,d._aData,d.nTr)?c:null});e=Rb(ka(a.aoData,d,"nTr"));if(b.nodeName){if(b._DT_RowIndex!==m)return[b._DT_RowIndex];if(b._DT_CellIndex)return[b._DT_CellIndex.row];e=f(b).closest("*[data-dt-row]");return e.length?[e.data("dt-row")]:[]}if("string"===typeof b&&"#"===b.charAt(0)){var g=a.aIds[b.replace(/^#/,"")];if(g!==m)return[g.idx]}return f(e).filter(b).map(function(){return this._DT_RowIndex}).toArray()},a,c)};t("rows()",function(a,b){a===m?a="":f.isPlainObject(a)&&
(b=a,a="");b=ab(b);var c=this.iterator("table",function(c){return dc(c,a,b)},1);c.selector.rows=a;c.selector.opts=b;return c});t("rows().nodes()",function(){return this.iterator("row",function(a,b){return a.aoData[b].nTr||m},1)});t("rows().data()",function(){return this.iterator(!0,"rows",function(a,b){return ka(a.aoData,b,"_aData")},1)});B("rows().cache()","row().cache()",function(a){return this.iterator("row",function(b,c){var d=b.aoData[c];return"search"===a?d._aFilterData:d._aSortData},1)});B("rows().invalidate()",
"row().invalidate()",function(a){return this.iterator("row",function(b,c){ea(b,c,a)})});B("rows().indexes()","row().index()",function(){return this.iterator("row",function(a,b){return b},1)});B("rows().ids()","row().id()",function(a){for(var b=[],c=this.context,d=0,e=c.length;d<e;d++)for(var h=0,g=this[d].length;h<g;h++){var f=c[d].rowIdFn(c[d].aoData[this[d][h]]._aData);b.push((!0===a?"#":"")+f)}return new w(c,b)});B("rows().remove()","row().remove()",function(){var a=this;this.iterator("row",function(b,
c,d){var e=b.aoData,h=e[c],g,f,l,p,n;e.splice(c,1);g=0;for(f=e.length;g<f;g++)if(l=e[g],n=l.anCells,null!==l.nTr&&(l.nTr._DT_RowIndex=g),null!==n)for(l=0,p=n.length;l<p;l++)n[l]._DT_CellIndex.row=g;qa(b.aiDisplayMaster,c);qa(b.aiDisplay,c);qa(a[d],c,!1);Ta(b);c=b.rowIdFn(h._aData);c!==m&&delete b.aIds[c]});this.iterator("table",function(a){for(var b=0,d=a.aoData.length;b<d;b++)a.aoData[b].idx=b});return this});t("rows.add()",function(a){var b=this.iterator("table",function(b){var c,d,g,f=[];d=0;for(g=
a.length;d<g;d++)c=a[d],c.nodeName&&"TR"===c.nodeName.toUpperCase()?f.push(oa(b,c)[0]):f.push(Q(b,c));return f},1),c=this.rows(-1);c.pop();f.merge(c,b);return c});t("row()",function(a,b){return bb(this.rows(a,b))});t("row().data()",function(a){var b=this.context;if(a===m)return b.length&&this.length?b[0].aoData[this[0]]._aData:m;b[0].aoData[this[0]]._aData=a;ea(b[0],this[0],"data");return this});t("row().node()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]].nTr||
null:null});t("row.add()",function(a){a instanceof f&&a.length&&(a=a[0]);var b=this.iterator("table",function(b){return a.nodeName&&"TR"===a.nodeName.toUpperCase()?oa(b,a)[0]:Q(b,a)});return this.row(b[0])});var ec=function(a,b,c,d){var e=[],h=function(b,c){if(f.isArray(b)||b instanceof f)for(var d=0,g=b.length;d<g;d++)h(b[d],c);else b.nodeName&&"tr"===b.nodeName.toLowerCase()?e.push(b):(d=f("<tr><td/></tr>").addClass(c),f("td",d).addClass(c).html(b)[0].colSpan=ca(a),e.push(d[0]))};h(c,d);b._details&&
b._details.detach();b._details=f(e);b._detailsShow&&b._details.insertAfter(b.nTr)},cb=function(a,b){var c=a.context;c.length&&(c=c[0].aoData[b!==m?b:a[0]])&&c._details&&(c._details.remove(),c._detailsShow=m,c._details=m)},Ub=function(a,b){var c=a.context;if(c.length&&a.length){var d=c[0].aoData[a[0]];d._details&&((d._detailsShow=b)?d._details.insertAfter(d.nTr):d._details.detach(),fc(c[0]))}},fc=function(a){var b=new w(a),c=a.aoData;b.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details");
2017-04-05 16:36:18 +02:00
0<L(c,"_details").length&&(b.on("draw.dt.DT_details",function(d,e){a===e&&b.rows({page:"current"}).eq(0).each(function(a){a=c[a];a._detailsShow&&a._details.insertAfter(a.nTr)})}),b.on("column-visibility.dt.DT_details",function(b,e,h,g){if(a===e)for(e=ca(e),h=0,g=c.length;h<g;h++)b=c[h],b._details&&b._details.children("td[colspan]").attr("colspan",e)}),b.on("destroy.dt.DT_details",function(d,e){if(a===e)for(var h=0,g=c.length;h<g;h++)c[h]._details&&cb(b,h)}))};t("row().child()",function(a,b){var c=
this.context;if(a===m)return c.length&&this.length?c[0].aoData[this[0]]._details:m;!0===a?this.child.show():!1===a?cb(this):c.length&&this.length&&ec(c[0],c[0].aoData[this[0]],a,b);return this});t(["row().child.show()","row().child().show()"],function(a){Ub(this,!0);return this});t(["row().child.hide()","row().child().hide()"],function(){Ub(this,!1);return this});t(["row().child.remove()","row().child().remove()"],function(){cb(this);return this});t("row().child.isShown()",function(){var a=this.context;
2017-04-05 16:36:18 +02:00
return a.length&&this.length?a[0].aoData[this[0]]._detailsShow||!1:!1});var gc=/^([^:]+):(name|visIdx|visible)$/,Vb=function(a,b,c,d,e){c=[];d=0;for(var h=e.length;d<h;d++)c.push(I(a,e[d],b));return c},hc=function(a,b,c){var d=a.aoColumns,e=L(d,"sName"),h=L(d,"nTh");return $a("column",b,function(b){var g=Ob(b);if(""===b)return Y(d.length);if(null!==g)return[0<=g?g:d.length+g];if("function"===typeof b){var l=Da(a,c);return f.map(d,function(c,d){return b(d,Vb(a,d,0,0,l),h[d])?d:null})}var m="string"===
typeof b?b.match(gc):"";if(m)switch(m[2]){case "visIdx":case "visible":g=parseInt(m[1],10);if(0>g){var n=f.map(d,function(a,b){return a.bVisible?b:null});return[n[n.length+g]]}return[aa(a,g)];case "name":return f.map(e,function(a,b){return a===m[1]?b:null});default:return[]}if(b.nodeName&&b._DT_CellIndex)return[b._DT_CellIndex.column];g=f(h).filter(b).map(function(){return f.inArray(this,h)}).toArray();if(g.length||!b.nodeName)return g;g=f(b).closest("*[data-dt-column]");return g.length?[g.data("dt-column")]:
[]},a,c)};t("columns()",function(a,b){a===m?a="":f.isPlainObject(a)&&(b=a,a="");b=ab(b);var c=this.iterator("table",function(c){return hc(c,a,b)},1);c.selector.cols=a;c.selector.opts=b;return c});B("columns().header()","column().header()",function(a,b){return this.iterator("column",function(a,b){return a.aoColumns[b].nTh},1)});B("columns().footer()","column().footer()",function(a,b){return this.iterator("column",function(a,b){return a.aoColumns[b].nTf},1)});B("columns().data()","column().data()",
2017-04-05 16:36:18 +02:00
function(){return this.iterator("column-rows",Vb,1)});B("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].mData},1)});B("columns().cache()","column().cache()",function(a){return this.iterator("column-rows",function(b,c,d,e,h){return ka(b.aoData,h,"search"===a?"_aFilterData":"_aSortData",c)},1)});B("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(a,b,c,d,e){return ka(a.aoData,e,"anCells",
b)},1)});B("columns().visible()","column().visible()",function(a,b){var c=this.iterator("column",function(b,c){if(a===m)return b.aoColumns[c].bVisible;var d=b.aoColumns,e=d[c],k=b.aoData,l,p,n;if(a!==m&&e.bVisible!==a){if(a){var q=f.inArray(!0,L(d,"bVisible"),c+1);l=0;for(p=k.length;l<p;l++)n=k[l].nTr,d=k[l].anCells,n&&n.insertBefore(d[c],d[q]||null)}else f(L(b.aoData,"anCells",c)).detach();e.bVisible=a;ga(b,b.aoHeader);ga(b,b.aoFooter);za(b)}});a!==m&&(this.iterator("column",function(c,e){y(c,null,
"column-visibility",[c,e,a,b])}),(b===m||b)&&this.columns.adjust());return c});B("columns().indexes()","column().index()",function(a){return this.iterator("column",function(b,c){return"visible"===a?ba(b,c):c},1)});t("columns.adjust()",function(){return this.iterator("table",function(a){Z(a)},1)});t("column.index()",function(a,b){if(0!==this.context.length){var c=this.context[0];if("fromVisible"===a||"toData"===a)return aa(c,b);if("fromData"===a||"toVisible"===a)return ba(c,b)}});t("column()",function(a,
b){return bb(this.columns(a,b))});var ic=function(a,b,c){var d=a.aoData,e=Da(a,c),h=Rb(ka(d,e,"anCells")),g=f([].concat.apply([],h)),k,l=a.aoColumns.length,p,n,q,t,x,w;return $a("cell",b,function(b){var c="function"===typeof b;if(null===b||b===m||c){p=[];n=0;for(q=e.length;n<q;n++)for(k=e[n],t=0;t<l;t++)x={row:k,column:t},c?(w=d[k],b(x,I(a,k,t),w.anCells?w.anCells[t]:null)&&p.push(x)):p.push(x);return p}if(f.isPlainObject(b))return[b];c=g.filter(b).map(function(a,b){return{row:b._DT_CellIndex.row,
column:b._DT_CellIndex.column}}).toArray();if(c.length||!b.nodeName)return c;w=f(b).closest("*[data-dt-row]");return w.length?[{row:w.data("dt-row"),column:w.data("dt-column")}]:[]},a,c)};t("cells()",function(a,b,c){f.isPlainObject(a)&&(a.row===m?(c=a,a=null):(c=b,b=null));f.isPlainObject(b)&&(c=b,b=null);if(null===b||b===m)return this.iterator("table",function(b){return ic(b,a,ab(c))});var d=this.columns(b,c),e=this.rows(a,c),h,g,k,l,p,n=this.iterator("table",function(a,b){h=[];g=0;for(k=e[b].length;g<
k;g++)for(l=0,p=d[b].length;l<p;l++)h.push({row:e[b][g],column:d[b][l]});return h},1);f.extend(n.selector,{cols:b,rows:a,opts:c});return n});B("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(a,b,c){return(a=a.aoData[b])&&a.anCells?a.anCells[c]:m},1)});t("cells().data()",function(){return this.iterator("cell",function(a,b,c){return I(a,b,c)},1)});B("cells().cache()","cell().cache()",function(a){a="search"===a?"_aFilterData":"_aSortData";return this.iterator("cell",
function(b,c,d){return b.aoData[c][a][d]},1)});B("cells().render()","cell().render()",function(a){return this.iterator("cell",function(b,c,d){return I(b,c,d,a)},1)});B("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(a,b,c){return{row:b,column:c,columnVisible:ba(a,c)}},1)});B("cells().invalidate()","cell().invalidate()",function(a){return this.iterator("cell",function(b,c,d){ea(b,c,a,d)})});t("cell()",function(a,b,c){return bb(this.cells(a,b,c))});t("cell().data()",
function(a){var b=this.context,c=this[0];if(a===m)return b.length&&c.length?I(b[0],c[0].row,c[0].column):m;jb(b[0],c[0].row,c[0].column,a);ea(b[0],c[0].row,"data",c[0].column);return this});t("order()",function(a,b){var c=this.context;if(a===m)return 0!==c.length?c[0].aaSorting:m;"number"===typeof a?a=[[a,b]]:a.length&&!f.isArray(a[0])&&(a=Array.prototype.slice.call(arguments));return this.iterator("table",function(b){b.aaSorting=a.slice()})});t("order.listener()",function(a,b,c){return this.iterator("table",
function(d){Na(d,a,b,c)})});t("order.fixed()",function(a){if(!a){var b=this.context,b=b.length?b[0].aaSortingFixed:m;return f.isArray(b)?{pre:b}:b}return this.iterator("table",function(b){b.aaSortingFixed=f.extend(!0,{},a)})});t(["columns().order()","column().order()"],function(a){var b=this;return this.iterator("table",function(c,d){var e=[];f.each(b[d],function(b,c){e.push([c,a])});c.aaSorting=e})});t("search()",function(a,b,c,d){var e=this.context;return a===m?0!==e.length?e[0].oPreviousSearch.sSearch:
m:this.iterator("table",function(e){e.oFeatures.bFilter&&ha(e,f.extend({},e.oPreviousSearch,{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===c?!0:c,bCaseInsensitive:null===d?!0:d}),1)})});B("columns().search()","column().search()",function(a,b,c,d){return this.iterator("column",function(e,h){var g=e.aoPreSearchCols;if(a===m)return g[h].sSearch;e.oFeatures.bFilter&&(f.extend(g[h],{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===c?!0:c,bCaseInsensitive:null===d?!0:d}),ha(e,e.oPreviousSearch,1))})});
t("state()",function(){return this.context.length?this.context[0].oSavedState:null});t("state.clear()",function(){return this.iterator("table",function(a){a.fnStateSaveCallback.call(a.oInstance,a,{})})});t("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null});t("state.save()",function(){return this.iterator("table",function(a){za(a)})});q.versionCheck=q.fnVersionCheck=function(a){var b=q.version.split(".");a=a.split(".");for(var c,d,e=0,f=a.length;e<f;e++)if(c=
parseInt(b[e],10)||0,d=parseInt(a[e],10)||0,c!==d)return c>d;return!0};q.isDataTable=q.fnIsDataTable=function(a){var b=f(a).get(0),c=!1;if(a instanceof q.Api)return!0;f.each(q.settings,function(a,e){var d=e.nScrollHead?f("table",e.nScrollHead)[0]:null,g=e.nScrollFoot?f("table",e.nScrollFoot)[0]:null;if(e.nTable===b||d===b||g===b)c=!0});return c};q.tables=q.fnTables=function(a){var b=!1;f.isPlainObject(a)&&(b=a.api,a=a.visible);var c=f.map(q.settings,function(b){if(!a||a&&f(b.nTable).is(":visible"))return b.nTable});
return b?new w(c):c};q.camelToHungarian=K;t("$()",function(a,b){var c=this.rows(b).nodes(),c=f(c);return f([].concat(c.filter(a).toArray(),c.find(a).toArray()))});f.each(["on","one","off"],function(a,b){t(b+"()",function(){var a=Array.prototype.slice.call(arguments);a[0]=f.map(a[0].split(/\s/),function(a){return a.match(/\.dt\b/)?a:a+".dt"}).join(" ");var d=f(this.tables().nodes());d[b].apply(d,a);return this})});t("clear()",function(){return this.iterator("table",function(a){pa(a)})});t("settings()",
function(){return new w(this.context,this.context)});t("init()",function(){var a=this.context;return a.length?a[0].oInit:null});t("data()",function(){return this.iterator("table",function(a){return L(a.aoData,"_aData")}).flatten()});t("destroy()",function(a){a=a||!1;return this.iterator("table",function(b){var c=b.nTableWrapper.parentNode,d=b.oClasses,e=b.nTable,h=b.nTBody,g=b.nTHead,k=b.nTFoot,l=f(e),h=f(h),m=f(b.nTableWrapper),n=f.map(b.aoData,function(a){return a.nTr}),t;b.bDestroying=!0;y(b,"aoDestroyCallback",
"destroy",[b]);a||(new w(b)).columns().visible(!0);m.off(".DT").find(":not(tbody *)").off(".DT");f(A).off(".DT-"+b.sInstance);e!=g.parentNode&&(l.children("thead").detach(),l.append(g));k&&e!=k.parentNode&&(l.children("tfoot").detach(),l.append(k));b.aaSorting=[];b.aaSortingFixed=[];ya(b);f(n).removeClass(b.asStripeClasses.join(" "));f("th, td",g).removeClass(d.sSortable+" "+d.sSortableAsc+" "+d.sSortableDesc+" "+d.sSortableNone);b.bJUI&&(f("th span."+d.sSortIcon+", td span."+d.sSortIcon,g).detach(),
f("th, td",g).each(function(){var a=f("div."+d.sSortJUIWrapper,this);f(this).append(a.contents());a.detach()}));h.children().detach();h.append(n);g=a?"remove":"detach";l[g]();m[g]();!a&&c&&(c.insertBefore(e,b.nTableReinsertBefore),l.css("width",b.sDestroyWidth).removeClass(d.sTable),(t=b.asDestroyStripes.length)&&h.children().each(function(a){f(this).addClass(b.asDestroyStripes[a%t])}));c=f.inArray(b,q.settings);-1!==c&&q.settings.splice(c,1)})});f.each(["column","row","cell"],function(a,b){t(b+"s().every()",
function(a){var c=this.selector.opts,e=this;return this.iterator(b,function(d,f,k,l,p){a.call(e[b](f,"cell"===b?k:c,"cell"===b?c:m),f,k,l,p)})})});t("i18n()",function(a,b,c){var d=this.context[0];a=T(a)(d.oLanguage);a===m&&(a=b);c!==m&&f.isPlainObject(a)&&(a=a[c]!==m?a[c]:a._);return a.replace("%d",c)});q.version="1.10.13";q.settings=[];q.models={};q.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0};q.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,
_sFilterRow:null,_sRowStripe:"",src:null,idx:-1};q.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};q.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,bJQueryUI:!1,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(a){return a.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(a){try{return JSON.parse((-1===a.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+a.sInstance+"_"+location.pathname))}catch(b){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(a,b){try{(-1===a.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+a.sInstance+"_"+location.pathname,
JSON.stringify(b))}catch(c){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",
sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:f.extend({},q.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"};E(q.defaults);q.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};E(q.defaults.column);q.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:m,oAjaxData:m,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,
iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==F(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==F(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var a=this._iDisplayLength,b=this._iDisplayStart,c=b+a,d=this.aiDisplay.length,e=
this.oFeatures,f=e.bPaginate;return e.bServerSide?!1===f||-1===a?b+d:Math.min(b+a,this._iRecordsDisplay):!f||c>d||-1===a?d:c},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null};q.ext=z={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,
fnVersionCheck:q.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:q.version};f.extend(z,{afnFiltering:z.search,aTypes:z.type.detect,ofnSearch:z.type.search,oSort:z.type.order,afnSortData:z.order,aoFeatures:z.feature,oApi:z.internal,oStdClasses:z.classes,oPagination:z.pager});f.extend(q.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:""});f.extend(q.ext.oJUIClasses,q.ext.classes,{sPageButton:"fg-button ui-button ui-state-default",sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",
sSortAsc:"ui-state-default sorting_asc",sSortDesc:"ui-state-default sorting_desc",sSortable:"ui-state-default sorting",sSortableAsc:"ui-state-default sorting_asc_disabled",sSortableDesc:"ui-state-default sorting_desc_disabled",sSortableNone:"ui-state-default sorting_disabled",sSortJUIAsc:"css_right ui-icon ui-icon-triangle-1-n",sSortJUIDesc:"css_right ui-icon ui-icon-triangle-1-s",sSortJUI:"css_right ui-icon ui-icon-carat-2-n-s",sSortJUIAscAllowed:"css_right ui-icon ui-icon-carat-1-n",sSortJUIDescAllowed:"css_right ui-icon ui-icon-carat-1-s",
sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead ui-state-default",sScrollFoot:"dataTables_scrollFoot ui-state-default",sHeaderTH:"ui-state-default",sFooterTH:"ui-state-default",sJUIHeader:"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix ui-corner-tl ui-corner-tr",sJUIFooter:"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix ui-corner-bl ui-corner-br"});var Lb=q.ext.pager;f.extend(Lb,{simple:function(a,b){return["previous",
"next"]},full:function(a,b){return["first","previous","next","last"]},numbers:function(a,b){return[ja(a,b)]},simple_numbers:function(a,b){return["previous",ja(a,b),"next"]},full_numbers:function(a,b){return["first","previous",ja(a,b),"next","last"]},first_last_numbers:function(a,b){return["first",ja(a,b),"last"]},_numbers:ja,numbers_length:7});f.extend(!0,q.ext.renderer,{pageButton:{_:function(a,b,c,d,e,h){var g=a.oClasses,k=a.oLanguage.oPaginate,l=a.oLanguage.oAria.paginate||{},p,n,q=0,t=function(b,
d){var m,r,v,u,w=function(b){Ua(a,b.data.action,!0)};m=0;for(r=d.length;m<r;m++)if(u=d[m],f.isArray(u))v=f("<"+(u.DT_el||"div")+"/>").appendTo(b),t(v,u);else{p=null;n="";switch(u){case "ellipsis":b.append('<span class="ellipsis">&#x2026;</span>');break;case "first":p=k.sFirst;n=u+(0<e?"":" "+g.sPageButtonDisabled);break;case "previous":p=k.sPrevious;n=u+(0<e?"":" "+g.sPageButtonDisabled);break;case "next":p=k.sNext;n=u+(e<h-1?"":" "+g.sPageButtonDisabled);break;case "last":p=k.sLast;n=u+(e<h-1?"":
" "+g.sPageButtonDisabled);break;default:p=u+1,n=e===u?g.sPageButtonActive:""}null!==p&&(v=f("<a>",{"class":g.sPageButton+" "+n,"aria-controls":a.sTableId,"aria-label":l[u],"data-dt-idx":q,tabindex:a.iTabIndex,id:0===c&&"string"===typeof u?a.sTableId+"_"+u:null}).html(p).appendTo(b),Wa(v,{action:u},w),q++)}},w;try{w=f(b).find(x.activeElement).data("dt-idx")}catch(jc){}t(f(b).empty(),d);w!==m&&f(b).find("[data-dt-idx="+w+"]").focus()}}});f.extend(q.ext.type.detect,[function(a,b){var c=b.oLanguage.sDecimal;
return Za(a,c)?"num"+c:null},function(a,b){if(a&&!(a instanceof Date)&&!$b.test(a))return null;var c=Date.parse(a);return null!==c&&!isNaN(c)||P(a)?"date":null},function(a,b){var c=b.oLanguage.sDecimal;return Za(a,c,!0)?"num-fmt"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Qb(a,c)?"html-num"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Qb(a,c,!0)?"html-num-fmt"+c:null},function(a,b){return P(a)||"string"===typeof a&&-1!==a.indexOf("<")?"html":null}]);f.extend(q.ext.type.search,
{html:function(a){return P(a)?a:"string"===typeof a?a.replace(Nb," ").replace(Ca,""):""},string:function(a){return P(a)?a:"string"===typeof a?a.replace(Nb," "):a}});var Ba=function(a,b,c,d){if(0!==a&&(!a||"-"===a))return-Infinity;b&&(a=Pb(a,b));a.replace&&(c&&(a=a.replace(c,"")),d&&(a=a.replace(d,"")));return 1*a};f.extend(z.type.order,{"date-pre":function(a){return Date.parse(a)||-Infinity},"html-pre":function(a){return P(a)?"":a.replace?a.replace(/<.*?>/g,"").toLowerCase():a+""},"string-pre":function(a){return P(a)?
"":"string"===typeof a?a.toLowerCase():a.toString?a.toString():""},"string-asc":function(a,b){return a<b?-1:a>b?1:0},"string-desc":function(a,b){return a<b?1:a>b?-1:0}});db("");f.extend(!0,q.ext.renderer,{header:{_:function(a,b,c,d){f(a.nTable).on("order.dt.DT",function(e,f,g,k){a===f&&(e=c.idx,b.removeClass(c.sSortingClass+" "+d.sSortAsc+" "+d.sSortDesc).addClass("asc"==k[e]?d.sSortAsc:"desc"==k[e]?d.sSortDesc:c.sSortingClass))})},jqueryui:function(a,b,c,d){f("<div/>").addClass(d.sSortJUIWrapper).append(b.contents()).append(f("<span/>").addClass(d.sSortIcon+
" "+c.sSortingClassJUI)).appendTo(b);f(a.nTable).on("order.dt.DT",function(e,f,g,k){a===f&&(e=c.idx,b.removeClass(d.sSortAsc+" "+d.sSortDesc).addClass("asc"==k[e]?d.sSortAsc:"desc"==k[e]?d.sSortDesc:c.sSortingClass),b.find("span."+d.sSortIcon).removeClass(d.sSortJUIAsc+" "+d.sSortJUIDesc+" "+d.sSortJUI+" "+d.sSortJUIAscAllowed+" "+d.sSortJUIDescAllowed).addClass("asc"==k[e]?d.sSortJUIAsc:"desc"==k[e]?d.sSortJUIDesc:c.sSortingClassJUI))})}}});var Wb=function(a){return"string"===typeof a?a.replace(/</g,
"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):a};q.render={number:function(a,b,c,d,e){return{display:function(f){if("number"!==typeof f&&"string"!==typeof f)return f;var g=0>f?"-":"",h=parseFloat(f);if(isNaN(h))return Wb(f);h=h.toFixed(c);f=Math.abs(h);h=parseInt(f,10);f=c?b+(f-h).toFixed(c).substring(2):"";return g+(d||"")+h.toString().replace(/\B(?=(\d{3})+(?!\d))/g,a)+f+(e||"")}}},text:function(){return{display:Wb}}};f.extend(q.ext.internal,{_fnExternApiFunc:Mb,_fnBuildAjax:ua,_fnAjaxUpdate:lb,
_fnAjaxParameters:ub,_fnAjaxUpdateDraw:vb,_fnAjaxDataSrc:va,_fnAddColumn:Fa,_fnColumnOptions:la,_fnAdjustColumnSizing:Z,_fnVisibleToColumnIndex:aa,_fnColumnIndexToVisible:ba,_fnVisbleColumns:ca,_fnGetColumns:na,_fnColumnTypes:Ha,_fnApplyColumnDefs:ib,_fnHungarianMap:E,_fnCamelToHungarian:K,_fnLanguageCompat:Ea,_fnBrowserDetect:gb,_fnAddData:Q,_fnAddTr:oa,_fnNodeToDataIndex:function(a,b){return b._DT_RowIndex!==m?b._DT_RowIndex:null},_fnNodeToColumnIndex:function(a,b,c){return f.inArray(c,a.aoData[b].anCells)},
_fnGetCellData:I,_fnSetCellData:jb,_fnSplitObjNotation:Ka,_fnGetObjectDataFn:T,_fnSetObjectDataFn:U,_fnGetDataMaster:La,_fnClearTable:pa,_fnDeleteIndex:qa,_fnInvalidate:ea,_fnGetRowElements:Ja,_fnCreateTr:Ia,_fnBuildHead:kb,_fnDrawHead:ga,_fnDraw:R,_fnReDraw:V,_fnAddOptionsHtml:nb,_fnDetectHeader:fa,_fnGetUniqueThs:ta,_fnFeatureHtmlFilter:pb,_fnFilterComplete:ha,_fnFilterCustom:yb,_fnFilterColumn:xb,_fnFilter:wb,_fnFilterCreateSearch:Qa,_fnEscapeRegex:Ra,_fnFilterData:zb,_fnFeatureHtmlInfo:sb,_fnUpdateInfo:Cb,
_fnInfoMacros:Db,_fnInitialise:ia,_fnInitComplete:wa,_fnLengthChange:Sa,_fnFeatureHtmlLength:ob,_fnFeatureHtmlPaginate:tb,_fnPageChange:Ua,_fnFeatureHtmlProcessing:qb,_fnProcessingDisplay:J,_fnFeatureHtmlTable:rb,_fnScrollDraw:ma,_fnApplyToChildren:N,_fnCalculateColumnWidths:Ga,_fnThrottle:Pa,_fnConvertToWidth:Eb,_fnGetWidestNode:Fb,_fnGetMaxLenString:Gb,_fnStringToCss:D,_fnSortFlatten:X,_fnSort:mb,_fnSortAria:Ib,_fnSortListener:Va,_fnSortAttachListener:Na,_fnSortingClasses:ya,_fnSortData:Hb,_fnSaveState:za,
_fnLoadState:Jb,_fnSettingsFromNode:Aa,_fnLog:O,_fnMap:M,_fnBindAction:Wa,_fnCallbackReg:G,_fnCallbackFire:y,_fnLengthOverflow:Ta,_fnRenderer:Oa,_fnDataSource:F,_fnRowAttributes:Ma,_fnCalculateEnd:function(){}});f.fn.dataTable=q;q.$=f;f.fn.dataTableSettings=q.settings;f.fn.dataTableExt=q.ext;f.fn.DataTable=function(a){return f(this).dataTable(a).api()};f.each(q,function(a,b){f.fn.DataTable[a]=b});return f.fn.dataTable});