1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-19 12:52:11 +01:00

Update: The dt-api rows().every(), dt-api columns().every() and dt-api cells().every() methods are now passed index and loop counter parameters

This commit is contained in:
Allan Jardine 2015-06-03 17:07:55 +01:00
parent d95820dd2a
commit 759ea3d733
3 changed files with 38 additions and 26 deletions

View File

@ -1 +1 @@
a10e9abed459d124241b2825c70fbf86d373273b 31f7be75d548e184652e079bfb3c05d15777d580

View File

@ -9117,9 +9117,21 @@
// Add the `every()` method for rows, columns and cells in a compact form // Add the `every()` method for rows, columns and cells in a compact form
$.each( [ 'column', 'row', 'cell' ], function ( i, type ) { $.each( [ 'column', 'row', 'cell' ], function ( i, type ) {
_api_register( type+'s().every()', function ( fn ) { _api_register( type+'s().every()', function ( fn ) {
return this.iterator( type, function ( settings, idx, idx2 ) { return this.iterator( type, function ( settings, arg1, arg2, arg3, arg4 ) {
// idx2 is undefined for rows and columns. // Rows and columns:
fn.call( new _Api( settings )[ type ]( idx, idx2 ) ); // arg1 - index
// arg2 - table counter
// arg3 - loop counter
// arg4 - undefined
// Cells:
// arg1 - row index
// arg2 - column index
// arg3 - table counter
// arg4 - loop counter
fn.call(
new _Api( settings )[ type ]( arg1, type==='cell' ? arg2 : undefined ),
arg1, arg2, arg3, arg4
);
} ); } );
} ); } );
} ); } );

View File

@ -50,12 +50,12 @@ b)[0],f=a.aanFeatures;d||c.fnInit(a,b,e);f.p||(b.id=a.sTableId+"_paginate",a.aoD
(d=0)):"first"==b?d=0:"previous"==b?(d=0<=e?d-e:0,0>d&&(d=0)):"next"==b?d+e<f&&(d+=e):"last"==b?d=Math.floor((f-1)/e)*e:I(a,0,"Unknown paging action: "+b,5);b=a._iDisplayStart!==d;a._iDisplayStart=d;b&&(v(a,null,"page",[a]),c&&N(a));return b}function qb(a){return g("<div/>",{id:!a.aanFeatures.r?a.sTableId+"_processing":null,"class":a.oClasses.sProcessing}).html(a.oLanguage.sProcessing).insertBefore(a.nTable)[0]}function C(a,b){a.oFeatures.bProcessing&&g(a.aanFeatures.r).css("display",b?"block":"none"); (d=0)):"first"==b?d=0:"previous"==b?(d=0<=e?d-e:0,0>d&&(d=0)):"next"==b?d+e<f&&(d+=e):"last"==b?d=Math.floor((f-1)/e)*e:I(a,0,"Unknown paging action: "+b,5);b=a._iDisplayStart!==d;a._iDisplayStart=d;b&&(v(a,null,"page",[a]),c&&N(a));return b}function qb(a){return g("<div/>",{id:!a.aanFeatures.r?a.sTableId+"_processing":null,"class":a.oClasses.sProcessing}).html(a.oLanguage.sProcessing).insertBefore(a.nTable)[0]}function C(a,b){a.oFeatures.bProcessing&&g(a.aanFeatures.r).css("display",b?"block":"none");
v(a,null,"processing",[a,b])}function rb(a){var b=g(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,f=a.oClasses,h=b.children("caption"),j=h.length?h[0]._captionSide:null,i=g(b[0].cloneNode(!1)),o=g(b[0].cloneNode(!1)),l=b.children("tfoot");c.sX&&"100%"===b.attr("width")&&b.removeAttr("width");l.length||(l=null);c=g("<div/>",{"class":f.sScrollWrapper}).append(g("<div/>",{"class":f.sScrollHead}).css({overflow:"hidden",position:"relative",border:0, v(a,null,"processing",[a,b])}function rb(a){var b=g(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,f=a.oClasses,h=b.children("caption"),j=h.length?h[0]._captionSide:null,i=g(b[0].cloneNode(!1)),o=g(b[0].cloneNode(!1)),l=b.children("tfoot");c.sX&&"100%"===b.attr("width")&&b.removeAttr("width");l.length||(l=null);c=g("<div/>",{"class":f.sScrollWrapper}).append(g("<div/>",{"class":f.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,
width:d?!d?null:t(d):"100%"}).append(g("<div/>",{"class":f.sScrollHeadInner}).css({"box-sizing":"content-box",width:c.sXInner||"100%"}).append(i.removeAttr("id").css("margin-left",0).append("top"===j?h:null).append(b.children("thead"))))).append(g("<div/>",{"class":f.sScrollBody}).css({overflow:"auto",height:!e?null:t(e),width:!d?null:t(d)}).append(b));l&&c.append(g("<div/>",{"class":f.sScrollFoot}).css({overflow:"hidden",border:0,width:d?!d?null:t(d):"100%"}).append(g("<div/>",{"class":f.sScrollFootInner}).append(o.removeAttr("id").css("margin-left", width:d?!d?null:t(d):"100%"}).append(g("<div/>",{"class":f.sScrollHeadInner}).css({"box-sizing":"content-box",width:c.sXInner||"100%"}).append(i.removeAttr("id").css("margin-left",0).append("top"===j?h:null).append(b.children("thead"))))).append(g("<div/>",{"class":f.sScrollBody}).css({overflow:"auto",height:!e?null:t(e),width:!d?null:t(d)}).append(b));l&&c.append(g("<div/>",{"class":f.sScrollFoot}).css({overflow:"hidden",border:0,width:d?!d?null:t(d):"100%"}).append(g("<div/>",{"class":f.sScrollFootInner}).append(o.removeAttr("id").css("margin-left",
0).append("bottom"===j?h:null).append(b.children("tfoot")))));var b=c.children(),q=b[0],f=b[1],k=l?b[2]:null;if(d)g(f).on("scroll.DT",function(){var a=this.scrollLeft;q.scrollLeft=a;l&&(k.scrollLeft=a)});a.nScrollHead=q;a.nScrollBody=f;a.nScrollFoot=k;a.aoDrawCallback.push({fn:Z,sName:"scrolling"});return c[0]}function Z(a){var b=a.oScroll,c=b.sX,d=b.sXInner,e=b.sY,f=b.iBarWidth,h=g(a.nScrollHead),j=h[0].style,i=h.children("div"),o=i[0].style,l=i.children("table"),i=a.nScrollBody,q=g(i),k=i.style, 0).append("bottom"===j?h:null).append(b.children("tfoot")))));var b=c.children(),q=b[0],f=b[1],k=l?b[2]:null;if(d)g(f).on("scroll.DT",function(){var a=this.scrollLeft;q.scrollLeft=a;l&&(k.scrollLeft=a)});a.nScrollHead=q;a.nScrollBody=f;a.nScrollFoot=k;a.aoDrawCallback.push({fn:Z,sName:"scrolling"});return c[0]}function Z(a){var b=a.oScroll,c=b.sX,d=b.sXInner,e=b.sY,f=b.iBarWidth,h=g(a.nScrollHead),j=h[0].style,i=h.children("div"),o=i[0].style,l=i.children("table"),i=a.nScrollBody,k=g(i),r=i.style,
m=g(a.nScrollFoot).children("div"),n=m.children("table"),p=g(a.nTHead),s=g(a.nTable),v=s[0],P=v.style,L=a.nTFoot?g(a.nTFoot):null,ia=a.oBrowser,u=ia.bScrollOversize,y,M,x,w,z,A=[],B=[],C=[],D,E=function(a){a=a.style;a.paddingTop="0";a.paddingBottom="0";a.borderTopWidth="0";a.borderBottomWidth="0";a.height=0};s.children("thead, tfoot").remove();z=p.clone().prependTo(s);y=p.find("tr");x=z.find("tr");z.find("th, td").removeAttr("tabindex");L&&(w=L.clone().prependTo(s),M=L.find("tr"),w=w.find("tr")); m=g(a.nScrollFoot).children("div"),n=m.children("table"),p=g(a.nTHead),s=g(a.nTable),v=s[0],P=v.style,L=a.nTFoot?g(a.nTFoot):null,ia=a.oBrowser,u=ia.bScrollOversize,y,M,x,w,z,A=[],B=[],C=[],D,E=function(a){a=a.style;a.paddingTop="0";a.paddingBottom="0";a.borderTopWidth="0";a.borderBottomWidth="0";a.height=0};s.children("thead, tfoot").remove();z=p.clone().prependTo(s);y=p.find("tr");x=z.find("tr");z.find("th, td").removeAttr("tabindex");L&&(w=L.clone().prependTo(s),M=L.find("tr"),w=w.find("tr"));
c||(k.width="100%",h[0].style.width="100%");g.each(ra(a,z),function(b,c){D=ma(a,b);c.style.width=a.aoColumns[D].sWidth});L&&G(function(a){a.style.width=""},w);b.bCollapse&&""!==e&&(k.height=q[0].offsetHeight+p[0].offsetHeight+"px");h=s.outerWidth();if(""===c){if(P.width="100%",u&&(s.find("tbody").height()>i.offsetHeight||"scroll"==q.css("overflow-y")))P.width=t(s.outerWidth()-f)}else""!==d?P.width=t(d):h==q.width()&&q.height()<s.height()?(P.width=t(h-f),s.outerWidth()>h-f&&(P.width=t(h))):P.width= c||(r.width="100%",h[0].style.width="100%");g.each(ra(a,z),function(b,c){D=ma(a,b);c.style.width=a.aoColumns[D].sWidth});L&&G(function(a){a.style.width=""},w);b.bCollapse&&""!==e&&(r.height=k[0].offsetHeight+p[0].offsetHeight+"px");h=s.outerWidth();if(""===c){if(P.width="100%",u&&(s.find("tbody").height()>i.offsetHeight||"scroll"==k.css("overflow-y")))P.width=t(s.outerWidth()-f)}else""!==d?P.width=t(d):h==k.width()&&k.height()<s.height()?(P.width=t(h-f),s.outerWidth()>h-f&&(P.width=t(h))):P.width=
t(h);h=s.outerWidth();G(E,x);G(function(a){C.push(a.innerHTML);A.push(t(g(a).css("width")))},x);G(function(a,b){a.style.width=A[b]},y);g(x).height(0);L&&(G(E,w),G(function(a){B.push(t(g(a).css("width")))},w),G(function(a,b){a.style.width=B[b]},M),g(w).height(0));G(function(a,b){a.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+C[b]+"</div>";a.style.width=A[b]},x);L&&G(function(a,b){a.innerHTML="";a.style.width=B[b]},w);if(s.outerWidth()<h){M=i.scrollHeight>i.offsetHeight|| t(h);h=s.outerWidth();G(E,x);G(function(a){C.push(a.innerHTML);A.push(t(g(a).css("width")))},x);G(function(a,b){a.style.width=A[b]},y);g(x).height(0);L&&(G(E,w),G(function(a){B.push(t(g(a).css("width")))},w),G(function(a,b){a.style.width=B[b]},M),g(w).height(0));G(function(a,b){a.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+C[b]+"</div>";a.style.width=A[b]},x);L&&G(function(a,b){a.innerHTML="";a.style.width=B[b]},w);if(s.outerWidth()<h){M=i.scrollHeight>i.offsetHeight||
"scroll"==q.css("overflow-y")?h+f:h;if(u&&(i.scrollHeight>i.offsetHeight||"scroll"==q.css("overflow-y")))P.width=t(M-f);(""===c||""!==d)&&I(a,1,"Possible column misalignment",6)}else M="100%";k.width=t(M);j.width=t(M);L&&(a.nScrollFoot.style.width=t(M));!e&&u&&(k.height=t(v.offsetHeight+f));e&&b.bCollapse&&(k.height=t(e),b=c&&v.offsetWidth>i.offsetWidth?f:0,v.offsetHeight<i.offsetHeight&&(k.height=t(v.offsetHeight+b)));b=s.outerWidth();l[0].style.width=t(b);o.width=t(b);l=s.height()>i.clientHeight|| "scroll"==k.css("overflow-y")?h+f:h;if(u&&(i.scrollHeight>i.offsetHeight||"scroll"==k.css("overflow-y")))P.width=t(M-f);(""===c||""!==d)&&I(a,1,"Possible column misalignment",6)}else M="100%";r.width=t(M);j.width=t(M);L&&(a.nScrollFoot.style.width=t(M));!e&&u&&(r.height=t(v.offsetHeight+f));e&&b.bCollapse&&(r.height=t(e),b=c&&v.offsetWidth>i.offsetWidth?f:0,v.offsetHeight<i.offsetHeight&&(r.height=t(v.offsetHeight+b)));b=s.outerWidth();l[0].style.width=t(b);o.width=t(b);l=s.height()>i.clientHeight||
"scroll"==q.css("overflow-y");ia="padding"+(ia.bScrollbarLeft?"Left":"Right");o[ia]=l?f+"px":"0px";L&&(n[0].style.width=t(b),m[0].style.width=t(b),m[0].style[ia]=l?f+"px":"0px");q.scroll();if((a.bSorted||a.bFiltered)&&!a._drawHold)i.scrollTop=0}function G(a,b,c){for(var d=0,e=0,f=b.length,h,j;e<f;){h=b[e].firstChild;for(j=c?c[e].firstChild:null;h;)1===h.nodeType&&(c?a(h,j,d):a(h,d),d++),h=h.nextSibling,j=c?j.nextSibling:null;e++}}function Ia(a){var b=a.nTable,c=a.aoColumns,d=a.oScroll,e=d.sY,f=d.sX, "scroll"==k.css("overflow-y");ia="padding"+(ia.bScrollbarLeft?"Left":"Right");o[ia]=l?f+"px":"0px";L&&(n[0].style.width=t(b),m[0].style.width=t(b),m[0].style[ia]=l?f+"px":"0px");k.scroll();if((a.bSorted||a.bFiltered)&&!a._drawHold)i.scrollTop=0}function G(a,b,c){for(var d=0,e=0,f=b.length,h,j;e<f;){h=b[e].firstChild;for(j=c?c[e].firstChild:null;h;)1===h.nodeType&&(c?a(h,j,d):a(h,d),d++),h=h.nextSibling,j=c?j.nextSibling:null;e++}}function Ia(a){var b=a.nTable,c=a.aoColumns,d=a.oScroll,e=d.sY,f=d.sX,
h=d.sXInner,j=c.length,i=$(a,"bVisible"),o=g("th",a.nTHead),l=b.getAttribute("width"),k=b.parentNode,r=!1,m,n,d=a.oBrowser.bScrollOversize;(m=b.style.width)&&-1!==m.indexOf("%")&&(l=m);for(m=0;m<i.length;m++)n=c[i[m]],null!==n.sWidth&&(n.sWidth=Eb(n.sWidthOrig,k),r=!0);if(d||!r&&!f&&!e&&j==ba(a)&&j==o.length)for(m=0;m<j;m++)c[m].sWidth=t(o.eq(m).width());else{j=g(b).clone().css("visibility","hidden").removeAttr("id");j.find("tbody tr").remove();var p=g("<tr/>").appendTo(j.find("tbody"));j.find("thead, tfoot").remove(); h=d.sXInner,j=c.length,i=$(a,"bVisible"),o=g("th",a.nTHead),l=b.getAttribute("width"),k=b.parentNode,r=!1,m,n,d=a.oBrowser.bScrollOversize;(m=b.style.width)&&-1!==m.indexOf("%")&&(l=m);for(m=0;m<i.length;m++)n=c[i[m]],null!==n.sWidth&&(n.sWidth=Eb(n.sWidthOrig,k),r=!0);if(d||!r&&!f&&!e&&j==ba(a)&&j==o.length)for(m=0;m<j;m++)c[m].sWidth=t(o.eq(m).width());else{j=g(b).clone().css("visibility","hidden").removeAttr("id");j.find("tbody tr").remove();var p=g("<tr/>").appendTo(j.find("tbody"));j.find("thead, tfoot").remove();
j.append(g(a.nTHead).clone()).append(g(a.nTFoot).clone());j.find("tfoot th, tfoot td").css("width","");o=ra(a,j.find("thead")[0]);for(m=0;m<i.length;m++)n=c[i[m]],o[m].style.width=null!==n.sWidthOrig&&""!==n.sWidthOrig?t(n.sWidthOrig):"";if(a.aoData.length)for(m=0;m<i.length;m++)r=i[m],n=c[r],g(Fb(a,r)).clone(!1).append(n.sContentPadding).appendTo(p);j.appendTo(k);f&&h?j.width(h):f?(j.css("width","auto"),j.width()<k.offsetWidth&&j.width(k.offsetWidth)):e?j.width(k.offsetWidth):l&&j.width(l);Gb(a, j.append(g(a.nTHead).clone()).append(g(a.nTFoot).clone());j.find("tfoot th, tfoot td").css("width","");o=ra(a,j.find("thead")[0]);for(m=0;m<i.length;m++)n=c[i[m]],o[m].style.width=null!==n.sWidthOrig&&""!==n.sWidthOrig?t(n.sWidthOrig):"";if(a.aoData.length)for(m=0;m<i.length;m++)r=i[m],n=c[r],g(Fb(a,r)).clone(!1).append(n.sContentPadding).appendTo(p);j.appendTo(k);f&&h?j.width(h):f?(j.css("width","auto"),j.width()<k.offsetWidth&&j.width(k.offsetWidth)):e?j.width(k.offsetWidth):l&&j.width(l);Gb(a,
j[0]);if(f){for(m=h=0;m<i.length;m++)n=c[i[m]],e=g(o[m]).outerWidth(),h+=null===n.sWidthOrig?e:parseInt(n.sWidth,10)+e-g(o[m]).width();j.width(t(h));b.style.width=t(h)}for(m=0;m<i.length;m++)if(n=c[i[m]],e=g(o[m]).width())n.sWidth=t(e);b.style.width=t(j.css("width"));j.remove()}l&&(b.style.width=t(l));if((l||f)&&!a._reszEvt)b=function(){g(Ga).bind("resize.DT-"+a.sInstance,va(function(){Y(a)}))},d?setTimeout(b,1E3):b(),a._reszEvt=!0}function va(a,b){var c=b!==k?b:200,d,e;return function(){var b=this, j[0]);if(f){for(m=h=0;m<i.length;m++)n=c[i[m]],e=g(o[m]).outerWidth(),h+=null===n.sWidthOrig?e:parseInt(n.sWidth,10)+e-g(o[m]).width();j.width(t(h));b.style.width=t(h)}for(m=0;m<i.length;m++)if(n=c[i[m]],e=g(o[m]).width())n.sWidth=t(e);b.style.width=t(j.css("width"));j.remove()}l&&(b.style.width=t(l));if((l||f)&&!a._reszEvt)b=function(){g(Ga).bind("resize.DT-"+a.sInstance,va(function(){Y(a)}))},d?setTimeout(b,1E3):b(),a._reszEvt=!0}function va(a,b){var c=b!==k?b:200,d,e;return function(){var b=this,
@ -129,25 +129,25 @@ b,bSmart:null===c?!0:c,bCaseInsensitive:null===d?!0:d}),1)})});u("columns().sear
function(a){a.fnStateSaveCallback.call(a.oInstance,a,{})})});p("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null});p("state.save()",function(){return this.iterator("table",function(a){za(a)})});m.versionCheck=m.fnVersionCheck=function(a){for(var b=m.version.split("."),a=a.split("."),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};m.isDataTable=m.fnIsDataTable=function(a){var b=g(a).get(0),c=!1;g.each(m.settings, function(a){a.fnStateSaveCallback.call(a.oInstance,a,{})})});p("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null});p("state.save()",function(){return this.iterator("table",function(a){za(a)})});m.versionCheck=m.fnVersionCheck=function(a){for(var b=m.version.split("."),a=a.split("."),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};m.isDataTable=m.fnIsDataTable=function(a){var b=g(a).get(0),c=!1;g.each(m.settings,
function(a,e){var f=e.nScrollHead?g("table",e.nScrollHead)[0]:null,h=e.nScrollFoot?g("table",e.nScrollFoot)[0]:null;if(e.nTable===b||f===b||h===b)c=!0});return c};m.tables=m.fnTables=function(a){return g.map(m.settings,function(b){if(!a||a&&g(b.nTable).is(":visible"))return b.nTable})};m.util={throttle:va,escapeRegex:wa};m.camelToHungarian=H;p("$()",function(a,b){var c=this.rows(b).nodes(),c=g(c);return g([].concat(c.filter(a).toArray(),c.find(a).toArray()))});g.each(["on","one","off"],function(a, function(a,e){var f=e.nScrollHead?g("table",e.nScrollHead)[0]:null,h=e.nScrollFoot?g("table",e.nScrollFoot)[0]:null;if(e.nTable===b||f===b||h===b)c=!0});return c};m.tables=m.fnTables=function(a){return g.map(m.settings,function(b){if(!a||a&&g(b.nTable).is(":visible"))return b.nTable})};m.util={throttle:va,escapeRegex:wa};m.camelToHungarian=H;p("$()",function(a,b){var c=this.rows(b).nodes(),c=g(c);return g([].concat(c.filter(a).toArray(),c.find(a).toArray()))});g.each(["on","one","off"],function(a,
b){p(b+"()",function(){var a=Array.prototype.slice.call(arguments);a[0].match(/\.dt\b/)||(a[0]+=".dt");var d=g(this.tables().nodes());d[b].apply(d,a);return this})});p("clear()",function(){return this.iterator("table",function(a){pa(a)})});p("settings()",function(){return new s(this.context,this.context)});p("init()",function(){var a=this.context;return a.length?a[0].oInit:null});p("data()",function(){return this.iterator("table",function(a){return D(a.aoData,"_aData")}).flatten()});p("destroy()", b){p(b+"()",function(){var a=Array.prototype.slice.call(arguments);a[0].match(/\.dt\b/)||(a[0]+=".dt");var d=g(this.tables().nodes());d[b].apply(d,a);return this})});p("clear()",function(){return this.iterator("table",function(a){pa(a)})});p("settings()",function(){return new s(this.context,this.context)});p("init()",function(){var a=this.context;return a.length?a[0].oInit:null});p("data()",function(){return this.iterator("table",function(a){return D(a.aoData,"_aData")}).flatten()});p("destroy()",
function(a){a=a||!1;return this.iterator("table",function(b){var c=b.nTableWrapper.parentNode,d=b.oClasses,e=b.nTable,f=b.nTBody,h=b.nTHead,j=b.nTFoot,i=g(e),f=g(f),k=g(b.nTableWrapper),l=g.map(b.aoData,function(a){return a.nTr}),q;b.bDestroying=!0;v(b,"aoDestroyCallback","destroy",[b]);a||(new s(b)).columns().visible(!0);k.unbind(".DT").find(":not(tbody *)").unbind(".DT");g(Ga).unbind(".DT-"+b.sInstance);e!=h.parentNode&&(i.children("thead").detach(),i.append(h));j&&e!=j.parentNode&&(i.children("tfoot").detach(), function(a){a=a||!1;return this.iterator("table",function(b){var c=b.nTableWrapper.parentNode,d=b.oClasses,e=b.nTable,f=b.nTBody,h=b.nTHead,j=b.nTFoot,i=g(e),f=g(f),k=g(b.nTableWrapper),l=g.map(b.aoData,function(a){return a.nTr}),p;b.bDestroying=!0;v(b,"aoDestroyCallback","destroy",[b]);a||(new s(b)).columns().visible(!0);k.unbind(".DT").find(":not(tbody *)").unbind(".DT");g(Ga).unbind(".DT-"+b.sInstance);e!=h.parentNode&&(i.children("thead").detach(),i.append(h));j&&e!=j.parentNode&&(i.children("tfoot").detach(),
i.append(j));i.detach();k.detach();b.aaSorting=[];b.aaSortingFixed=[];ya(b);g(l).removeClass(b.asStripeClasses.join(" "));g("th, td",h).removeClass(d.sSortable+" "+d.sSortableAsc+" "+d.sSortableDesc+" "+d.sSortableNone);b.bJUI&&(g("th span."+d.sSortIcon+", td span."+d.sSortIcon,h).detach(),g("th, td",h).each(function(){var a=g("div."+d.sSortJUIWrapper,this);g(this).append(a.contents());a.detach()}));!a&&c&&c.insertBefore(e,b.nTableReinsertBefore);f.children().detach();f.append(l);i.css("width",b.sDestroyWidth).removeClass(d.sTable); i.append(j));i.detach();k.detach();b.aaSorting=[];b.aaSortingFixed=[];ya(b);g(l).removeClass(b.asStripeClasses.join(" "));g("th, td",h).removeClass(d.sSortable+" "+d.sSortableAsc+" "+d.sSortableDesc+" "+d.sSortableNone);b.bJUI&&(g("th span."+d.sSortIcon+", td span."+d.sSortIcon,h).detach(),g("th, td",h).each(function(){var a=g("div."+d.sSortJUIWrapper,this);g(this).append(a.contents());a.detach()}));!a&&c&&c.insertBefore(e,b.nTableReinsertBefore);f.children().detach();f.append(l);i.css("width",b.sDestroyWidth).removeClass(d.sTable);
(q=b.asDestroyStripes.length)&&f.children().each(function(a){g(this).addClass(b.asDestroyStripes[a%q])});c=g.inArray(b,m.settings);-1!==c&&m.settings.splice(c,1)})});g.each(["column","row","cell"],function(a,b){p(b+"s().every()",function(a){return this.iterator(b,function(d,e,f){a.call((new s(d))[b](e,f))})})});p("i18n()",function(a,b,c){var d=this.context[0],a=S(a)(d.oLanguage);a===k&&(a=b);c!==k&&g.isPlainObject(a)&&(a=a[c]!==k?a[c]:a._);return a.replace("%d",c)});m.version="1.10.8-dev";m.settings= (p=b.asDestroyStripes.length)&&f.children().each(function(a){g(this).addClass(b.asDestroyStripes[a%p])});c=g.inArray(b,m.settings);-1!==c&&m.settings.splice(c,1)})});g.each(["column","row","cell"],function(a,b){p(b+"s().every()",function(a){return this.iterator(b,function(d,e,f,g,j){a.call((new s(d))[b](e,"cell"===b?f:k),e,f,g,j)})})});p("i18n()",function(a,b,c){var d=this.context[0],a=S(a)(d.oLanguage);a===k&&(a=b);c!==k&&g.isPlainObject(a)&&(a=a[c]!==k?a[c]:a._);return a.replace("%d",c)});m.version=
[];m.models={};m.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0};m.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null};m.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", "1.10.8-dev";m.settings=[];m.models={};m.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0};m.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null};m.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,
sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null};m.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, sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null};m.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,
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, 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){}},
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"}, 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",
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:g.extend({},m.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null, 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:g.extend({},m.models.oSearch),sAjaxDataProp:"data",
sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null};X(m.defaults);m.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};X(m.defaults.column);m.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null, sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null};X(m.defaults);m.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};X(m.defaults.column);m.models.oSettings={oFeatures:{bAutoWidth: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},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[], 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},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,
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, 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,
bAjaxDataGet:!0,jqXHR:null,json:k,oAjaxData:k,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"==B(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==B(this)?1*this._iRecordsDisplay: sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:k,oAjaxData:k,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"==B(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==B(this)?
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:{}};m.ext=y={buttons:{},classes:{},errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{}, 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:{}};m.ext=y={buttons:{},classes:{},errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},
header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:m.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:m.version};g.extend(y,{afnFiltering:y.search,aTypes:y.type.detect,ofnSearch:y.type.search,oSort:y.type.order,afnSortData:y.order,aoFeatures:y.feature,oApi:y.internal,oStdClasses:y.classes,oPagination:y.pager});g.extend(m.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd", pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:m.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:m.version};g.extend(y,{afnFiltering:y.search,aTypes:y.type.detect,ofnSearch:y.type.search,oSort:y.type.order,afnSortData:y.order,aoFeatures:y.feature,oApi:y.internal,oStdClasses:y.classes,oPagination:y.pager});g.extend(m.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",
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", 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",
sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Fa="",Fa="",F=Fa+"ui-state-default",ka=Fa+"css_right ui-icon ui-icon-",Yb=Fa+"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix";g.extend(m.ext.oJUIClasses, 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 Fa="",Fa="",F=Fa+"ui-state-default",ka=Fa+"css_right ui-icon ui-icon-",Yb=Fa+"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix";
m.ext.classes,{sPageButton:"fg-button ui-button "+F,sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:F+" sorting_asc",sSortDesc:F+" sorting_desc",sSortable:F+" sorting",sSortableAsc:F+" sorting_asc_disabled",sSortableDesc:F+" sorting_desc_disabled",sSortableNone:F+" sorting_disabled",sSortJUIAsc:ka+"triangle-1-n",sSortJUIDesc:ka+"triangle-1-s",sSortJUI:ka+"carat-2-n-s", g.extend(m.ext.oJUIClasses,m.ext.classes,{sPageButton:"fg-button ui-button "+F,sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:F+" sorting_asc",sSortDesc:F+" sorting_desc",sSortable:F+" sorting",sSortableAsc:F+" sorting_asc_disabled",sSortableDesc:F+" sorting_desc_disabled",sSortableNone:F+" sorting_disabled",sSortJUIAsc:ka+"triangle-1-n",sSortJUIDesc:ka+"triangle-1-s",
sSortJUIAscAllowed:ka+"carat-1-n",sSortJUIDescAllowed:ka+"carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead "+F,sScrollFoot:"dataTables_scrollFoot "+F,sHeaderTH:F,sFooterTH:F,sJUIHeader:Yb+" ui-corner-tl ui-corner-tr",sJUIFooter:Yb+" ui-corner-bl ui-corner-br"});var Nb=m.ext.pager;g.extend(Nb,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(a,b){return[Ba(a, sSortJUI:ka+"carat-2-n-s",sSortJUIAscAllowed:ka+"carat-1-n",sSortJUIDescAllowed:ka+"carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead "+F,sScrollFoot:"dataTables_scrollFoot "+F,sHeaderTH:F,sFooterTH:F,sJUIHeader:Yb+" ui-corner-tl ui-corner-tr",sJUIFooter:Yb+" ui-corner-bl ui-corner-br"});var Nb=m.ext.pager;g.extend(Nb,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(a,
b)]},simple_numbers:function(a,b){return["previous",Ba(a,b),"next"]},full_numbers:function(a,b){return["first","previous",Ba(a,b),"next","last"]},_numbers:Ba,numbers_length:7});g.extend(!0,m.ext.renderer,{pageButton:{_:function(a,b,c,d,e,f){var h=a.oClasses,j=a.oLanguage.oPaginate,i,k,l=0,m=function(b,d){var p,r,s,t,u=function(b){Va(a,b.data.action,true)};p=0;for(r=d.length;p<r;p++){t=d[p];if(g.isArray(t)){s=g("<"+(t.DT_el||"div")+"/>").appendTo(b);m(s,t)}else{i=null;k="";switch(t){case "ellipsis":b.append('<span class="ellipsis">&#x2026;</span>'); b){return[Ba(a,b)]},simple_numbers:function(a,b){return["previous",Ba(a,b),"next"]},full_numbers:function(a,b){return["first","previous",Ba(a,b),"next","last"]},_numbers:Ba,numbers_length:7});g.extend(!0,m.ext.renderer,{pageButton:{_:function(a,b,c,d,e,f){var h=a.oClasses,j=a.oLanguage.oPaginate,i,k,l=0,m=function(b,d){var p,r,s,t,u=function(b){Va(a,b.data.action,true)};p=0;for(r=d.length;p<r;p++){t=d[p];if(g.isArray(t)){s=g("<"+(t.DT_el||"div")+"/>").appendTo(b);m(s,t)}else{i=null;k="";switch(t){case "ellipsis":b.append('<span class="ellipsis">&#x2026;</span>');
break;case "first":i=j.sFirst;k=t+(e>0?"":" "+h.sPageButtonDisabled);break;case "previous":i=j.sPrevious;k=t+(e>0?"":" "+h.sPageButtonDisabled);break;case "next":i=j.sNext;k=t+(e<f-1?"":" "+h.sPageButtonDisabled);break;case "last":i=j.sLast;k=t+(e<f-1?"":" "+h.sPageButtonDisabled);break;default:i=t+1;k=e===t?h.sPageButtonActive:""}if(i!==null){s=g("<a>",{"class":h.sPageButton+" "+k,"aria-controls":a.sTableId,"data-dt-idx":l,tabindex:a.iTabIndex,id:c===0&&typeof t==="string"?a.sTableId+"_"+t:null}).html(i).appendTo(b); break;case "first":i=j.sFirst;k=t+(e>0?"":" "+h.sPageButtonDisabled);break;case "previous":i=j.sPrevious;k=t+(e>0?"":" "+h.sPageButtonDisabled);break;case "next":i=j.sNext;k=t+(e<f-1?"":" "+h.sPageButtonDisabled);break;case "last":i=j.sLast;k=t+(e<f-1?"":" "+h.sPageButtonDisabled);break;default:i=t+1;k=e===t?h.sPageButtonActive:""}if(i!==null){s=g("<a>",{"class":h.sPageButton+" "+k,"aria-controls":a.sTableId,"data-dt-idx":l,tabindex:a.iTabIndex,id:c===0&&typeof t==="string"?a.sTableId+"_"+t:null}).html(i).appendTo(b);
Xa(s,{action:t},u);l++}}}},p;try{p=g(R.activeElement).data("dt-idx")}catch(s){}m(g(b).empty(),d);p&&g(b).find("[data-dt-idx="+p+"]").focus()}}});g.extend(m.ext.type.detect,[function(a,b){var c=b.oLanguage.sDecimal;return $a(a,c)?"num"+c:null},function(a){if(a&&!(a instanceof Date)&&(!bc.test(a)||!cc.test(a)))return null;var b=Date.parse(a);return null!==b&&!isNaN(b)||J(a)?"date":null},function(a,b){var c=b.oLanguage.sDecimal;return $a(a,c,!0)?"num-fmt"+c:null},function(a,b){var c=b.oLanguage.sDecimal; Xa(s,{action:t},u);l++}}}},p;try{p=g(R.activeElement).data("dt-idx")}catch(s){}m(g(b).empty(),d);p&&g(b).find("[data-dt-idx="+p+"]").focus()}}});g.extend(m.ext.type.detect,[function(a,b){var c=b.oLanguage.sDecimal;return $a(a,c)?"num"+c:null},function(a){if(a&&!(a instanceof Date)&&(!bc.test(a)||!cc.test(a)))return null;var b=Date.parse(a);return null!==b&&!isNaN(b)||J(a)?"date":null},function(a,b){var c=b.oLanguage.sDecimal;return $a(a,c,!0)?"num-fmt"+c:null},function(a,b){var c=b.oLanguage.sDecimal;
return Sb(a,c)?"html-num"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Sb(a,c,!0)?"html-num-fmt"+c:null},function(a){return J(a)||"string"===typeof a&&-1!==a.indexOf("<")?"html":null}]);g.extend(m.ext.type.search,{html:function(a){return J(a)?a:"string"===typeof a?a.replace(Pb," ").replace(Da,""):""},string:function(a){return J(a)?a:"string"===typeof a?a.replace(Pb," "):a}});var Ca=function(a,b,c,d){if(0!==a&&(!a||"-"===a))return-Infinity;b&&(a=Rb(a,b));a.replace&&(c&&(a=a.replace(c,"")), return Sb(a,c)?"html-num"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Sb(a,c,!0)?"html-num-fmt"+c:null},function(a){return J(a)||"string"===typeof a&&-1!==a.indexOf("<")?"html":null}]);g.extend(m.ext.type.search,{html:function(a){return J(a)?a:"string"===typeof a?a.replace(Pb," ").replace(Da,""):""},string:function(a){return J(a)?a:"string"===typeof a?a.replace(Pb," "):a}});var Ca=function(a,b,c,d){if(0!==a&&(!a||"-"===a))return-Infinity;b&&(a=Rb(a,b));a.replace&&(c&&(a=a.replace(c,"")),