/*! DataTables 2.0.0-dev
 * © SpryMedia Ltd - datatables.net/license
 */
import jQuery from"jquery";var _ext,_Api,_api_register,_api_registerPlural,$=jQuery,DataTable=function(e,D){var v,y,T;return DataTable.factory(e,D)?DataTable:this instanceof DataTable?$(e).DataTable(D):(y=void 0===(D=e),T=(v=this).length,y&&(D={}),this.oApi=this.internal=_ext.internal,this.api=function(){return new _Api(this)},this.each(function(){var n=1<T?_fnExtend({},D,!0):D,a=0,e=this.getAttribute("id"),r=!1,t=DataTable.defaults,i=$(this);if("table"!=this.nodeName.toLowerCase())_fnLog(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{$(this).trigger("options.dt",n),_fnCompatOpts(t),_fnCompatCols(t.column),_fnCamelToHungarian(t,t,!0),_fnCamelToHungarian(t.column,t.column,!0),_fnCamelToHungarian(t,$.extend(n,i.data()),!0);for(var l=DataTable.settings,a=0,o=l.length;a<o;a++){var s=l[a];if(s.nTable==this||s.nTHead&&s.nTHead.parentNode==this||s.nTFoot&&s.nTFoot.parentNode==this){var u=(void 0!==n.bRetrieve?n:t).bRetrieve,c=(void 0!==n.bDestroy?n:t).bDestroy;if(y||u)return s.oInstance;if(c){new DataTable.Api(s).destroy();break}return void _fnLog(s,0,"Cannot reinitialise DataTable",3)}if(s.sTableId==this.id){l.splice(a,1);break}}null!==e&&""!==e||(e="DataTables_Table_"+DataTable.ext._unique++,this.id=e);var d=$.extend(!0,{},DataTable.models.oSettings,{sDestroyWidth:i[0].style.width,sInstance:e,sTableId:e}),f=(d.nTable=this,d.oApi=v.internal,d.oInit=n,l.push(d),d.api=new _Api(d),d.oInstance=1===v.length?v:i.dataTable(),_fnCompatOpts(n),n.aLengthMenu&&!n.iDisplayLength&&(n.iDisplayLength=Array.isArray(n.aLengthMenu[0])?n.aLengthMenu[0][0]:$.isPlainObject(n.aLengthMenu[0])?n.aLengthMenu[0].value:n.aLengthMenu[0]),n=_fnExtend($.extend(!0,{},t),n),_fnMap(d.oFeatures,n,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),_fnMap(d,n,["ajax","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","iStateDuration","bSortCellsTop","iTabIndex","sDom","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId","caption","layout",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),_fnMap(d.oScroll,n,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),_fnMap(d.oLanguage,n,"fnInfoCallback"),_fnCallbackReg(d,"aoDrawCallback",n.fnDrawCallback),_fnCallbackReg(d,"aoStateSaveParams",n.fnStateSaveParams),_fnCallbackReg(d,"aoStateLoadParams",n.fnStateLoadParams),_fnCallbackReg(d,"aoStateLoaded",n.fnStateLoaded),_fnCallbackReg(d,"aoRowCallback",n.fnRowCallback),_fnCallbackReg(d,"aoRowCreatedCallback",n.fnCreatedRow),_fnCallbackReg(d,"aoHeaderCallback",n.fnHeaderCallback),_fnCallbackReg(d,"aoFooterCallback",n.fnFooterCallback),_fnCallbackReg(d,"aoInitComplete",n.fnInitComplete),_fnCallbackReg(d,"aoPreDrawCallback",n.fnPreDrawCallback),d.rowIdFn=_fnGetObjectDataFn(n.rowId),_fnBrowserDetect(d),d.oClasses),_=($.extend(f,DataTable.ext.classes,n.oClasses),i.addClass(f.table),d.oFeatures.bPaginate||(n.iDisplayStart=0),void 0===d.iInitDisplayStart&&(d.iInitDisplayStart=n.iDisplayStart,d._iDisplayStart=n.iDisplayStart),d.oLanguage),p=($.extend(!0,_,n.oLanguage),_.sUrl?($.ajax({dataType:"json",url:_.sUrl,success:function(e){_fnCamelToHungarian(t.oLanguage,e),$.extend(!0,_,e,d.oInit.oLanguage),_fnCallbackFire(d,null,"i18n",[d]),_fnInitialise(d)},error:function(){_fnLog(d,0,"i18n file loading error",21),_fnInitialise(d)}}),r=!0):_fnCallbackFire(d,null,"i18n",[d]),[]),h=this.getElementsByTagName("thead"),e=_fnDetectHeader(d,h[0]);if(n.aoColumns)p=n.aoColumns;else if(e.length)for(o=e[a=0].length;a<o;a++)p.push(null);for(a=0,o=p.length;a<o;a++)_fnAddColumn(d);_fnApplyColumnDefs(d,n.aoColumnDefs,p,e,function(e,t){_fnColumnOptions(d,e,t)});function g(){if(void 0===n.aaSorting){var e=d.aaSorting;for(a=0,o=e.length;a<o;a++)e[a][1]=d.aoColumns[a].asSorting[0]}_fnSortingClasses(d),_fnCallbackReg(d,"aoDrawCallback",function(){(d.bSorted||"ssp"===_fnDataSource(d)||b.bDeferRender)&&_fnSortingClasses(d)});var t=i.children("caption"),t=(d.caption&&(t=0===t.length?$("<caption/>").appendTo(i):t).html(d.caption),t.length&&(t[0]._captionSide=t.css("caption-side"),d.captionNode=t[0]),0===h.length&&(h=$("<thead/>").appendTo(i)),d.nTHead=h[0],$("tr",h).addClass(f.thead.row),i.children("tbody")),t=(0===t.length&&(t=$("<tbody/>").insertAfter(h)),d.nTBody=t[0],i.children("tfoot"));if(0===t.length&&(t=$("<tfoot/>").appendTo(i)),d.nTFoot=t[0],$("tr",t).addClass(f.tfoot.row),n.aaData)for(a=0;a<n.aaData.length;a++)_fnAddData(d,n.aaData[a]);else"dom"==_fnDataSource(d)&&_fnAddTr(d,$(d.nTBody).children("tr"));d.aiDisplay=d.aiDisplayMaster.slice(),!(d.bInitialised=!0)===r&&_fnInitialise(d)}var m,e=i.children("tbody").find("tr").eq(0),b=(e.length&&(m=function(e,t){return null!==e.getAttribute("data-"+t)?t:null},$(e[0]).children("th, td").each(function(e,t){var n,a=d.aoColumns[e];a||_fnLog(d,0,"Incorrect column count",18),a.mData===e&&(n=m(t,"sort")||m(t,"order"),t=m(t,"filter")||m(t,"search"),null===n&&null===t||(a.mData={_:e+".display",sort:null!==n?e+".@data-"+n:void 0,type:null!==n?e+".@data-"+n:void 0,filter:null!==t?e+".@data-"+t:void 0},a._isArrayHost=!0,_fnColumnOptions(d,e)))})),d.oFeatures);_fnCallbackReg(d,"aoDrawCallback",_fnSaveState),n.bStateSave?(b.bStateSave=!0,_fnLoadState(d,n,g)):g()}}),v=null,this)},_re_dic=(DataTable.ext=_ext={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],features:{},search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{className:{},detect:[],render:{},search:{},order:{}},_unique:0,fnVersionCheck:DataTable.fnVersionCheck,iApiIndex:0,sVersion:DataTable.version},$.extend(_ext,{afnFiltering:_ext.search,aTypes:_ext.type.detect,ofnSearch:_ext.type.search,oSort:_ext.type.order,afnSortData:_ext.order,aoFeatures:_ext.feature,oApi:_ext.internal,oStdClasses:_ext.classes,oPagination:_ext.pager}),$.extend(DataTable.ext.classes,{container:"dt-container",empty:{row:"dt-empty"},info:{container:"dt-info"},length:{container:"dt-length",select:"dt-input"},order:{canAsc:"dt-orderable-asc",canDesc:"dt-orderable-desc",isAsc:"dt-ordering-asc",isDesc:"dt-ordering-desc",none:"dt-orderable-none",position:"sorting_"},processing:{container:"dt-processing"},scrolling:{body:"dt-scroll-body",container:"dataTables_scroll",footer:{self:"dt-scroll-foot",inner:"dt-scroll-footInner"},header:{self:"dt-scroll-head",inner:"dt-scroll-headInner"}},search:{container:"dt-search",input:"dt-input"},table:"dataTable",tbody:{cell:"",row:""},thead:{cell:"",row:""},tfoot:{cell:"",row:""},paging:{active:"current",button:"dt-paging-button",container:"dt-paging",disabled:"disabled"}}),{}),_re_new_lines=/[\r\n\u2028]/g,_re_html=/<.*?>/g,_re_date=/^\d{2,4}[./-]\d{1,2}[./-]\d{1,2}([T ]{1}\d{1,2}[:.]\d{2}([.:]\d{2})?)?$/,_re_escape_regex=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),_re_formatted_numeric=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,_empty=function(e){return!e||!0===e||"-"===e},_intVal=function(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null},_numToDecimal=function(e,t){return _re_dic[t]||(_re_dic[t]=new RegExp(_fnEscapeRegex(t),"g")),"string"==typeof e&&"."!==t?e.replace(/\./g,"").replace(_re_dic[t],"."):e},_isNumber=function(e,t,n){var a=typeof e,r="string"==a;return"number"==a||"bigint"==a||!!_empty(e)||(t&&r&&(e=_numToDecimal(e,t)),n&&r&&(e=e.replace(_re_formatted_numeric,"")),!isNaN(parseFloat(e))&&isFinite(e))},_isHtml=function(e){return _empty(e)||"string"==typeof e},_htmlNumeric=function(e,t,n){return!!_empty(e)||("string"!=typeof e||!e.match(/<(input|select)/i))&&_isHtml(e)&&!!_isNumber(_stripHtml(e),t,n)||null},_pluck=function(e,t,n){var a=[],r=0,i=e.length;if(void 0!==n)for(;r<i;r++)e[r]&&e[r][t]&&a.push(e[r][t][n]);else for(;r<i;r++)e[r]&&a.push(e[r][t]);return a},_pluck_order=function(e,t,n,a){var r=[],i=0,l=t.length;if(void 0!==a)for(;i<l;i++)e[t[i]][n]&&r.push(e[t[i]][n][a]);else for(;i<l;i++)r.push(e[t[i]][n]);return r},_range=function(e,t){var n,a=[];void 0===t?(t=0,n=e):(n=t,t=e);for(var r=t;r<n;r++)a.push(r);return a},_removeEmpty=function(e){for(var t=[],n=0,a=e.length;n<a;n++)e[n]&&t.push(e[n]);return t},_stripHtml=function(e){return e.replace(_re_html,"").replace(/<script/i,"")},_escapeHtml=function(e){return"string"==typeof(e=Array.isArray(e)?e.join(","):e)?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):e},_normalize=function(e,t){var n;return"string"!=typeof e?e:(n=e.normalize("NFD")).length!==e.length?(!0===t?e+" ":"")+n.replace(/[\u0300-\u036f]/g,""):n},_areAllUnique=function(e){if(!(e.length<2))for(var t=e.slice().sort(),n=t[0],a=1,r=t.length;a<r;a++){if(t[a]===n)return!1;n=t[a]}return!0},_unique=function(e){if(Array.from&&Set)return Array.from(new Set(e));if(_areAllUnique(e))return e.slice();var t,n,a,r=[],i=e.length,l=0;e:for(n=0;n<i;n++){for(t=e[n],a=0;a<l;a++)if(r[a]===t)continue e;r.push(t),l++}return r},_flatten=function(e,t){if(Array.isArray(t))for(var n=0;n<t.length;n++)_flatten(e,t[n]);else e.push(t);return e};function _addClass(t,e){e&&e.split(" ").forEach(function(e){e&&t.classList.add(e)})}function _fnHungarianMap(t){var n,a,r={};$.each(t,function(e){(n=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(n[1]+" ")&&(a=e.replace(n[0],n[2].toLowerCase()),r[a]=e,"o"===n[1])&&_fnHungarianMap(t[e])}),t._hungarianMap=r}function _fnCamelToHungarian(t,n,a){var r;t._hungarianMap||_fnHungarianMap(t),$.each(n,function(e){void 0===(r=t._hungarianMap[e])||!a&&void 0!==n[r]||("o"===r.charAt(0)?(n[r]||(n[r]={}),$.extend(!0,n[r],n[e]),_fnCamelToHungarian(t[r],n[r],a)):n[r]=n[e])})}DataTable.util={diacritics:function(e,t){if("function"!=typeof e)return _normalize(e,t);_normalize=e},throttle:function(a,e){var r,i,l=void 0!==e?e:200;return function(){var e=this,t=+new Date,n=arguments;r&&t<r+l?(clearTimeout(i),i=setTimeout(function(){r=void 0,a.apply(e,n)},l)):(r=t,a.apply(e,n))}},escapeRegex:function(e){return e.replace(_re_escape_regex,"\\$1")},set:function(a){var f;return $.isPlainObject(a)?DataTable.util.set(a._):null===a?function(){}:"function"==typeof a?function(e,t,n){a(e,"set",t,n)}:"string"!=typeof a||-1===a.indexOf(".")&&-1===a.indexOf("[")&&-1===a.indexOf("(")?function(e,t){e[a]=t}:(f=function(e,t,n){for(var a,r,i,l,o=_fnSplitObjNotation(n),n=o[o.length-1],s=0,u=o.length-1;s<u;s++){if("__proto__"===o[s]||"constructor"===o[s])throw new Error("Cannot set prototype values");if(a=o[s].match(__reArray),r=o[s].match(__reFn),a){if(o[s]=o[s].replace(__reArray,""),e[o[s]]=[],(a=o.slice()).splice(0,s+1),l=a.join("."),Array.isArray(t))for(var c=0,d=t.length;c<d;c++)f(i={},t[c],l),e[o[s]].push(i);else e[o[s]]=t;return}r&&(o[s]=o[s].replace(__reFn,""),e=e[o[s]](t)),null!==e[o[s]]&&void 0!==e[o[s]]||(e[o[s]]={}),e=e[o[s]]}n.match(__reFn)?e[n.replace(__reFn,"")](t):e[n.replace(__reArray,"")]=t},function(e,t){return f(e,t,a)})},get:function(r){var i,f;return $.isPlainObject(r)?(i={},$.each(r,function(e,t){t&&(i[e]=DataTable.util.get(t))}),function(e,t,n,a){var r=i[t]||i._;return void 0!==r?r(e,t,n,a):e}):null===r?function(e){return e}:"function"==typeof r?function(e,t,n,a){return r(e,t,n,a)}:"string"!=typeof r||-1===r.indexOf(".")&&-1===r.indexOf("[")&&-1===r.indexOf("(")?function(e){return e[r]}:(f=function(e,t,n){var a,r,i;if(""!==n)for(var l=_fnSplitObjNotation(n),o=0,s=l.length;o<s;o++){if(d=l[o].match(__reArray),a=l[o].match(__reFn),d){if(l[o]=l[o].replace(__reArray,""),""!==l[o]&&(e=e[l[o]]),r=[],l.splice(0,o+1),i=l.join("."),Array.isArray(e))for(var u=0,c=e.length;u<c;u++)r.push(f(e[u],t,i));var d=d[0].substring(1,d[0].length-1);e=""===d?r:r.join(d);break}if(a)l[o]=l[o].replace(__reFn,""),e=e[l[o]]();else{if(null===e||null===e[l[o]])return null;if(void 0===e||void 0===e[l[o]])return;e=e[l[o]]}}return e},function(e,t){return f(e,t,r)})},stripHtml:function(e){var t=typeof e;if("function"!=t)return"string"==t?_stripHtml(e):e;_stripHtml=e},escapeHtml:function(e){var t=typeof e;if("function"!=t)return"string"==t||Array.isArray(e)?_escapeHtml(e):e;_escapeHtml=e},unique:_unique};var _fnCompatMap=function(e,t,n){void 0!==e[t]&&(e[n]=e[t])};function _fnCompatOpts(e){_fnCompatMap(e,"ordering","bSort"),_fnCompatMap(e,"orderMulti","bSortMulti"),_fnCompatMap(e,"orderClasses","bSortClasses"),_fnCompatMap(e,"orderCellsTop","bSortCellsTop"),_fnCompatMap(e,"order","aaSorting"),_fnCompatMap(e,"orderFixed","aaSortingFixed"),_fnCompatMap(e,"paging","bPaginate"),_fnCompatMap(e,"pagingType","sPaginationType"),_fnCompatMap(e,"pageLength","iDisplayLength"),_fnCompatMap(e,"searching","bFilter"),"boolean"==typeof e.sScrollX&&(e.sScrollX=e.sScrollX?"100%":""),"boolean"==typeof e.scrollX&&(e.scrollX=e.scrollX?"100%":"");var t=e.aoSearchCols;if(t)for(var n=0,a=t.length;n<a;n++)t[n]&&_fnCamelToHungarian(DataTable.models.oSearch,t[n]);e.serverSide&&!e.searchDelay&&(e.searchDelay=400)}function _fnCompatCols(e){_fnCompatMap(e,"orderable","bSortable"),_fnCompatMap(e,"orderData","aDataSort"),_fnCompatMap(e,"orderSequence","asSorting"),_fnCompatMap(e,"orderDataType","sortDataType");var t=e.aDataSort;"number"!=typeof t||Array.isArray(t)||(e.aDataSort=[t])}function _fnBrowserDetect(e){var t,n,a,r;DataTable.__browser||(DataTable.__browser=t={},r=(a=(n=$("<div/>").css({position:"fixed",top:0,left:-1*window.pageXOffset,height:1,width:1,overflow:"hidden"}).append($("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append($("<div/>").css({width:"100%",height:10}))).appendTo("body")).children()).children(),t.barWidth=a[0].offsetWidth-a[0].clientWidth,t.bScrollbarLeft=1!==Math.round(r.offset().left),n.remove()),$.extend(e.oBrowser,DataTable.__browser),e.oScroll.iBarWidth=DataTable.__browser.barWidth}function _fnAddColumn(e){var t=DataTable.defaults.column,n=e.aoColumns.length,t=$.extend({},DataTable.models.oColumn,t,{aDataSort:t.aDataSort||[n],mData:t.mData||n,idx:n,searchFixed:{}}),t=(e.aoColumns.push(t),e.aoPreSearchCols);t[n]=$.extend({},DataTable.models.oSearch,t[n])}function _fnColumnOptions(e,t,n){function a(e){return"string"==typeof e&&-1!==e.indexOf("@")}var r=e.aoColumns[t],i=(null!=n&&(_fnCompatCols(n),_fnCamelToHungarian(DataTable.defaults.column,n,!0),void 0===n.mDataProp||n.mData||(n.mData=n.mDataProp),n.sType&&(r._sManualType=n.sType),n.className&&!n.sClass&&(n.sClass=n.className),t=r.sClass,$.extend(r,n),_fnMap(r,n,"sWidth","sWidthOrig"),t!==r.sClass&&(r.sClass=t+" "+r.sClass),void 0!==n.iDataSort&&(r.aDataSort=[n.iDataSort]),_fnMap(r,n,"aDataSort")),r.mData),l=_fnGetObjectDataFn(i);r.mRender&&$.isArray(r.mRender)&&(n=(t=r.mRender.slice()).shift(),r.mRender=DataTable.render[n].apply(window,t)),r._render=r.mRender?_fnGetObjectDataFn(r.mRender):null;r._bAttrSrc=$.isPlainObject(i)&&(a(i.sort)||a(i.type)||a(i.filter)),r._setter=null,r.fnGetData=function(e,t,n){var a=l(e,t,void 0,n);return r._render&&t?r._render(a,t,e,n):a},r.fnSetData=function(e,t,n){return _fnSetObjectDataFn(i)(e,t,n)},"number"==typeof i||r._isArrayHost||(e._rowReadObject=!0),e.oFeatures.bSort||(r.bSortable=!1)}function _fnAdjustColumnSizing(e){_fnCalculateColumnWidths(e),_fnColumnSizes(e);var t=e.oScroll;""===t.sY&&""===t.sX||_fnScrollDraw(e),_fnCallbackFire(e,null,"column-sizing",[e])}function _fnColumnSizes(t,e){$(e||t.nTHead).find("th, td").each(function(){var e=_fnColumnsSumWidth(t,this,!1,!1);e&&(this.style.width=e)})}function _fnVisibleToColumnIndex(e,t){e=_fnGetColumns(e,"bVisible");return"number"==typeof e[t]?e[t]:null}function _fnColumnIndexToVisible(e,t){e=_fnGetColumns(e,"bVisible").indexOf(t);return-1!==e?e:null}function _fnVisbleColumns(e){var t=e.aoHeader,n=e.aoColumns,a=0;if(t.length)for(var r=0,i=t[0].length;r<i;r++)n[r].bVisible&&"none"!==$(t[0][r].cell).css("display")&&a++;return a}function _fnGetColumns(e,n){var a=[];return e.aoColumns.map(function(e,t){e[n]&&a.push(t)}),a}function _fnColumnTypes(e){for(var t,n,a,r,i,l,o,s=e.aoColumns,u=e.aoData,c=DataTable.ext.type.detect,d=0,f=s.length;d<f;d++){if(o=[],!(i=s[d]).sType&&i._sManualType)i.sType=i._sManualType;else if(!i.sType){for(t=0,n=c.length;t<n;t++){for(a=0,r=u.length;a<r;a++)if(u[a]){if(void 0===o[a]&&(o[a]=_fnGetCellData(e,a,d,"type")),!(l=c[t](o[a],e))&&t!==c.length-1)break;if("html"===l&&!_empty(o[a]))break}if(l){i.sType=l;break}}i.sType||(i.sType="string")}var _=_ext.type.className[i.sType],_=(_&&(_columnAutoClass(e.aoHeader,d,_),_columnAutoClass(e.aoFooter,d,_)),_ext.type.render[i.sType]);_&&!i._render&&(i._render=DataTable.util.get(_),_columnAutoRender(e,d))}}function _columnAutoRender(e,t){for(var n,a=e.aoData,r=0;r<a.length;r++)a[r].nTr&&(n=_fnGetCellData(e,r,t,"display"),a[r].displayData[t]=n,_fnWriteCell(a[r].anCells[t],n))}function _columnAutoClass(e,t,n){e.forEach(function(e){e[t].unique&&_addClass(e[t].cell,n)})}function _fnApplyColumnDefs(e,t,n,a,r){var i,l,o,s,u=e.aoColumns;if(t)for(i=t.length-1;0<=i;i--)for(var c,d=void 0!==(c=t[i]).target?c.target:void 0!==c.targets?c.targets:c.aTargets,f=0,_=(d=Array.isArray(d)?d:[d]).length;f<_;f++){var p=d[f];if("number"==typeof p&&0<=p){for(;u.length<=p;)_fnAddColumn(e);r(p,c)}else if("number"==typeof p&&p<0)r(u.length+p,c);else if("string"==typeof p)for(o=0,s=u.length;o<s;o++)a.forEach(function(e){e=$(e[o].cell);"_all"!==(p=p.match(/^[a-z][\w-]*$/i)?"."+p:p)&&!e.is(p)||r(o,c)})}if(n)for(i=0,l=n.length;i<l;i++)r(i,n[i])}function _fnColumnsSumWidth(e,t,n,a){$.isArray(t)||(t=_fnColumnsFromHeader(t));for(var r,i=0,l=e.aoColumns,o=0,s=t.length;o<s;o++){var u=l[t[o]],c=n?u.sWidthOrig:u.sWidth;if(a||!1!==u.bVisible){if(null==c)return null;"number"==typeof c?(r="px",i+=c):(u=c.match(/([\d]+)([^\d]*)/))&&(i+=+u[1],r=3===u.length?u[2]:"px")}}return i+r}function _fnCellsFromLayout(e){for(var t=[],n=0,a=e.length;n<a;n++)for(var r=0,i=e[n].length;r<i;r++)t.push(e[n][r].cell);return _unique(t)}function _fnColumnsFromHeader(e){e=$(e).closest("[data-dt-column]").attr("data-dt-column");return e?e.split(",").map(function(e){return+e}):[]}function _fnAddData(e,t,n,a){for(var r=e.aoData.length,i=$.extend(!0,{},DataTable.models.oRow,{src:n?"dom":"data",idx:r}),l=(i._aData=t,e.aoData.push(i),e.aoColumns),o=0,s=l.length;o<s;o++)l[o].sType=null;e.aiDisplayMaster.push(r);t=e.rowIdFn(t);return void 0!==t&&(e.aIds[t]=i),!n&&e.oFeatures.bDeferRender||_fnCreateTr(e,r,n,a),r}function _fnAddTr(n,e){var a;return(e=e instanceof $?e:$(e)).map(function(e,t){return a=_fnGetRowElements(n,t),_fnAddData(n,a.data,t,a.cells)})}function _fnGetCellData(e,t,n,a){"search"===a?a="filter":"order"===a&&(a="sort");var r=e.iDraw,i=e.aoColumns[n],l=e.aoData[t]._aData,o=i.sDefaultContent,s=i.fnGetData(l,a,{settings:e,row:t,col:n});if(void 0===(s="display"!==a&&s&&"object"==typeof s&&s.nodeName?s.innerHTML:s))return e.iDrawError!=r&&null===o&&(_fnLog(e,0,"Requested unknown parameter "+("function"==typeof i.mData?"{function}":"'"+i.mData+"'")+" for row "+t+", column "+n,4),e.iDrawError=r),o;if(s!==l&&null!==s||null===o||void 0===a){if("function"==typeof s)return s.call(l)}else s=o;return null===s&&"display"===a?"":"filter"===a&&(t=DataTable.ext.type.search)[i.sType]?t[i.sType](s):s}function _fnSetCellData(e,t,n,a){var r=e.aoColumns[n],i=e.aoData[t]._aData;r.fnSetData(i,a,{settings:e,row:t,col:n})}function _fnWriteCell(e,t){t&&"object"==typeof t&&t.nodeName?$(e).empty().append(t):e.innerHTML=t}var __reArray=/\[.*?\]$/,__reFn=/\(\)$/;function _fnSplitObjNotation(e){return(e.match(/(\\.|[^.])+/g)||[""]).map(function(e){return e.replace(/\\\./g,".")})}var _fnGetObjectDataFn=DataTable.util.get,_fnSetObjectDataFn=DataTable.util.set;function _fnGetDataMaster(e){return _pluck(e.aoData,"_aData")}function _fnClearTable(e){e.aoData.length=0,e.aiDisplayMaster.length=0,e.aiDisplay.length=0,e.aIds={}}function _fnInvalidate(e,t,n,a){var r,i,l=e.aoData[t];if(l._aSortData=null,l._aFilterData=null,l.displayData=null,"dom"!==n&&(n&&"auto"!==n||"dom"!==l.src)){var o=l.anCells,s=_fnGetRowDisplay(e,t);if(o)if(void 0!==a)_fnWriteCell(o[a],s[a]);else for(r=0,i=o.length;r<i;r++)_fnWriteCell(o[r],s[r])}else l._aData=_fnGetRowElements(e,l,a,void 0===a?void 0:l._aData).data;var u=e.aoColumns;if(void 0!==a)u[a].sType=null,u[a].maxLenString=null;else{for(r=0,i=u.length;r<i;r++)u[r].sType=null,u[r].maxLenString=null;_fnRowAttributes(e,l)}}function _fnGetRowElements(e,t,n,a){function r(e,t){var n;"string"==typeof e&&-1!==(n=e.indexOf("@"))&&(n=e.substring(n+1),_fnSetObjectDataFn(e)(a,t.getAttribute(n)))}function i(e){void 0!==n&&n!==d||(o=f[d],s=e.innerHTML.trim(),o&&o._bAttrSrc?(_fnSetObjectDataFn(o.mData._)(a,s),r(o.mData.sort,e),r(o.mData.type,e),r(o.mData.filter,e)):_?(o._setter||(o._setter=_fnSetObjectDataFn(o.mData)),o._setter(a,s)):a[d]=s),d++}var l,o,s,u=[],c=t.firstChild,d=0,f=e.aoColumns,_=e._rowReadObject;a=void 0!==a?a:_?{}:[];if(c)for(;c;)"TD"!=(l=c.nodeName.toUpperCase())&&"TH"!=l||(i(c),u.push(c)),c=c.nextSibling;else for(var p=0,h=(u=t.anCells).length;p<h;p++)i(u[p]);var t=t.firstChild?t:t.nTr;return t&&(t=t.getAttribute("id"))&&_fnSetObjectDataFn(e.rowId)(a,t),{data:a,cells:u}}function _fnGetRowDisplay(e,t){var n=e.aoData[t],a=e.aoColumns;if(!n.displayData){n.displayData=[];for(var r=0,i=a.length;r<i;r++)n.displayData.push(_fnGetCellData(e,t,r,"display"))}return n.displayData}function _fnCreateTr(e,t,n,a){var r,i,l,o,s,u,c=e.aoData[t],d=c._aData,f=[],_=e.oClasses.tbody.row;if(null===c.nTr){for(r=n||document.createElement("tr"),c.nTr=r,c.anCells=f,_addClass(r,_),r._DT_RowIndex=t,_fnRowAttributes(e,c),o=0,s=e.aoColumns.length;o<s;o++){l=e.aoColumns[o],(i=(u=!n)?document.createElement(l.sCellType):a[o])||_fnLog(e,0,"Incorrect column count",18),i._DT_CellIndex={row:t,column:o},f.push(i);var p=_fnGetRowDisplay(e,t);!u&&(!l.mRender&&l.mData===o||$.isPlainObject(l.mData)&&l.mData._===o+".display")||_fnWriteCell(i,p[o]),l.bVisible&&!n?r.appendChild(i):!l.bVisible&&n&&i.parentNode.removeChild(i),l.fnCreatedCell&&l.fnCreatedCell.call(e.oInstance,i,_fnGetCellData(e,t,o),d,t,o)}_fnCallbackFire(e,"aoRowCreatedCallback",null,[r,d,t,f])}else _addClass(c.nTr,_)}function _fnRowAttributes(e,t){var n=t.nTr,a=t._aData;n&&((e=e.rowIdFn(a))&&(n.id=e),a.DT_RowClass&&(e=a.DT_RowClass.split(" "),t.__rowc=t.__rowc?_unique(t.__rowc.concat(e)):e,$(n).removeClass(t.__rowc.join(" ")).addClass(a.DT_RowClass)),a.DT_RowAttr&&$(n).attr(a.DT_RowAttr),a.DT_RowData)&&$(n).data(a.DT_RowData)}function _fnBuildHead(e,t){var n,a,r,i=e.oClasses,l=e.aoColumns,o="header"===t?e.nTHead:e.nTFoot,s="header"===t?"sTitle":t;if(o){if(0===$("th, td",o).length&&_pluck(e.aoColumns,s).join(""))for(r=$("<tr/>").appendTo(o),n=0,a=l.length;n<a;n++)$("<th/>").html(l[n][s]).appendTo(r);var u=_fnDetectHeader(e,o,!0);"header"===t?e.aoHeader=u:e.aoFooter=u,$(o).children("tr").attr("role","row"),$(o).children("tr").children("th, td").each(function(){_fnRenderer(e,t)(e,$(this),i)})}}function _fnDrawHead(e,t,n){var a,r,i,l,o,s,u,c,d,f=[],_=[],p=e.aoColumns.length;if(t){for(void 0===n&&(n=!1),a=0,r=t.length;a<r;a++){for(f[a]=t[a].slice(),f[a].row=t[a].row,i=p-1;0<=i;i--)e.aoColumns[i].bVisible||n||f[a].splice(i,1);_.push([])}for(a=0,r=f.length;a<r;a++){if(u=f[a].row)for(;s=u.firstChild;)u.removeChild(s);for(i=0,l=f[a].length;i<l;i++)if(d=c=1,void 0===_[a][i]){for(u.appendChild(f[a][i].cell),_[a][i]=1;void 0!==f[a+c]&&f[a][i].cell==f[a+c][i].cell;)_[a+c][i]=1,c++;for(;void 0!==f[a][i+d]&&f[a][i].cell==f[a][i+d].cell;){for(o=0;o<c;o++)_[a+o][i+d]=1;d++}$(f[a][i].cell).attr("rowspan",c).attr("colspan",d)}}}}function _fnDraw(e,t){if(_fnStart(e),-1!==_fnCallbackFire(e,"aoPreDrawCallback","preDraw",[e]).indexOf(!1))_fnProcessingDisplay(e,!1);else{var n=[],a=0,r=e.oLanguage,i="ssp"==_fnDataSource(e),l=e.aiDisplay,o=e._iDisplayStart,s=e.fnDisplayEnd(),u=e.aoColumns;if(e.bDrawing=!0,i){if(!e.bDestroying&&!t)return void _fnAjaxUpdate(e)}else e.iDraw++;if(0!==l.length)for(var c=i?e.aoData.length:s,d=i?0:o;d<c;d++){for(var f=l[d],_=e.aoData[f],p=(null===_.nTr&&_fnCreateTr(e,f),_.nTr),h=0;h<u.length;h++){var g=u[h],m=_.anCells[h];_addClass(m,_ext.type.className[g.sType]),_addClass(m,g.sClass),_addClass(m,e.oClasses.tbody.cell)}_fnCallbackFire(e,"aoRowCallback",null,[p,_._aData,a,d,f]),n.push(p),a++}else{t=r.sZeroRecords;1==e.iDraw&&"ajax"==_fnDataSource(e)?t=r.sLoadingRecords:r.sEmptyTable&&0===e.fnRecordsTotal()&&(t=r.sEmptyTable),n[0]=$("<tr/>").append($("<td />",{colSpan:_fnVisbleColumns(e),class:e.oClasses.empty.row}).html(t))[0]}_fnCallbackFire(e,"aoHeaderCallback","header",[$(e.nTHead).children("tr")[0],_fnGetDataMaster(e),o,s,l]),_fnCallbackFire(e,"aoFooterCallback","footer",[$(e.nTFoot).children("tr")[0],_fnGetDataMaster(e),o,s,l]);i=$(e.nTBody);i.children().detach(),i.append($(n)),_fnCallbackFire(e,"aoDrawCallback","draw",[e],!0),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}}function _fnReDraw(e,t,n){var a=e.oFeatures,r=a.bSort,a=a.bFilter;void 0!==n&&!0!==n||(r&&_fnSort(e),a?_fnFilterComplete(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice()),!0!==t&&(e._iDisplayStart=0),e._drawHold=t,_fnDraw(e),e._drawHold=!1}function _layoutArray(e,t,n){for(var a={},r=($.each(t,function(e,t){var n;null===t||(e=e.replace(/([A-Z])/g," $1").split(" "),a[e[0]]||(a[e[0]]={}),n=1===e.length?"full":e[1].toLowerCase(),e=a[e[0]],$.isPlainObject(t)?t.contents?e[n]=t:e[n]={contents:Object.keys(t).map(function(e){return{feature:e,opts:t[e]}})}:e[n]={contents:t},$.isArray(e[n].contents))||(e[n].contents=[e[n].contents])}),Object.keys(a).map(function(e){return 0!==e.indexOf(n)?null:{name:e,val:a[e]}}).filter(function(e){return null!==e})),i=(r.sort(function(e,t){e=+e.name.replace(/[^0-9]/g,"");return+t.name.replace(/[^0-9]/g,"")-e}),"bottom"===n&&r.reverse(),[]),l=0,o=r.length;l<o;l++)r[l].val.full&&(i.push({full:r[l].val.full}),_layoutResolve(e,i[i.length-1]),delete r[l].val.full),Object.keys(r[l].val).length&&(i.push(r[l].val),_layoutResolve(e,i[i.length-1]));return i}function _layoutResolve(i,l){function o(e,t){return _ext.features[e]||_fnLog(i,0,"Unknown feature: "+e),_ext.features[e].apply(this,[i,t])}$.each(l,function(e){for(var t,n=l[e].contents,a=0,r=n.length;a<r;a++)n[a]&&("string"==typeof n[a]?n[a]=o(n[a],null):$.isPlainObject(n[a])?n[a]=o(n[a].feature,n[a].opts):"function"==typeof n[a].node?n[a]=n[a].node(i):"function"==typeof n[a]&&(t=n[a](i),n[a]="function"==typeof t.node?t.node():t))})}function _fnAddOptionsHtml(t){var e=t.oClasses,n=$(t.nTable),a=_layoutArray(t,t.layout,"top"),r=_layoutArray(t,t.layout,"bottom"),i=_fnRenderer(t,"layout"),l=$("<div/>").attr({id:t.sTableId+"_wrapper",class:e.container}).insertBefore(n);t.nTableWrapper=l[0],t.sDom?_fnLayoutDom(t,t.sDom,l):(a.forEach(function(e){i(t,l,e)}),i(t,l,{full:{table:!0,contents:[_fnFeatureHtmlTable(t)]}}),r.forEach(function(e){i(t,l,e)})),_processingHtml(t)}function _fnLayoutDom(t,e,n){for(var a=e.match(/(".*?")|('.*?')|./g),r=0;r<a.length;r++){var i,l,o,s,u,c=null;"<"==(u=a[r])?(o=$("<div/>"),"'"!=(s=a[r+1])[0]&&'"'!=s[0]||(-1!=(i=s.replace(/['"]/g,s="")).indexOf(".")?(s=(l=i.split("."))[0],l=l[1]):"#"==i[0]?s=i:l=i,o.attr("id",s.substring(1)).addClass(l),r++),n.append(o),n=o):">"==u?n=n.parent():"t"==u?c=_fnFeatureHtmlTable(t):DataTable.ext.feature.forEach(function(e){u==e.cFeature&&(c=e.fnInit(t))}),c&&n.append(c)}}function _fnDetectHeader(e,t,n){for(var a,r,i,l,o,s,u=e.aoColumns,c=$(t).children("tr"),d=[],f=0,_=c.length;f<_;f++)d.push([]);for(f=0,_=c.length;f<_;f++)for(r=(a=c[f]).firstChild;r;){if("TD"==r.nodeName.toUpperCase()||"TH"==r.nodeName.toUpperCase()){var p,h,g,m,b,D=[];for(m=(m=+r.getAttribute("colspan"))&&0!=m&&1!=m?m:1,b=(b=+r.getAttribute("rowspan"))&&0!=b&&1!=b?b:1,o=function(e,t,n){for(var a=e[t];a[n];)n++;return n}(d,f,0),s=1==m,n&&s&&(_fnColumnOptions(e,o,$(r).data()),p=u[o],h=r.getAttribute("width")||null,(g=r.style.width.match(/width:\s*(\d+[pxem%]+)/))&&(h=g[1]),p.sWidthOrig=p.sWidth||h,"thead"===t.nodeName.toLowerCase()?(null===p.sTitle||p.autoTitle||(r.innerHTML=p.sTitle),!p.sTitle&&s&&(p.sTitle=r.innerHTML.replace(/<.*?>/g,""),p.autoTitle=!0)):p.footer&&(r.innerHTML=p.footer),0===$("span.dt-column-title",r).length&&$("<span>").addClass("dt-column-title").append(r.childNodes).appendTo(r),p.className&&$(r).addClass(p.className),p.ariaTitle||(p.ariaTitle=$(r).attr("aria-label")||p.sTitle)),l=0;l<m;l++){for(i=0;i<b;i++)d[f+i][o+l]={cell:r,unique:s},d[f+i].row=a;D.push(o+l)}r.setAttribute("data-dt-column",_unique(D).join(","))}r=r.nextSibling}return d}function _fnStart(e){var t="ssp"==_fnDataSource(e),n=e.iInitDisplayStart;void 0!==n&&-1!==n&&(e._iDisplayStart=!t&&n>=e.fnRecordsDisplay()?0:n,e.iInitDisplayStart=-1)}function _fnBuildAjax(n,e,a){function t(e){var t=n.jqXHR?n.jqXHR.status:null;(null===e||"number"==typeof t&&204==t)&&_fnAjaxDataSrc(n,e={},[]),(t=e.error||e.sError)&&_fnLog(n,0,t),n.json=e,_fnCallbackFire(n,null,"xhr",[n,e,n.jqXHR]),a(e)}var r,i=n.ajax,l=n.oInstance,o=($.isPlainObject(i)&&i.data&&(o="function"==typeof(r=i.data)?r(e,n):r,e="function"==typeof r&&o?o:$.extend(!0,e,o),delete i.data),{url:"string"==typeof i?i:"",data:e,success:t,dataType:"json",cache:!1,type:n.sServerMethod,error:function(e,t){-1===_fnCallbackFire(n,null,"xhr",[n,null,n.jqXHR]).indexOf(!0)&&("parsererror"==t?_fnLog(n,0,"Invalid JSON response",1):4===e.readyState&&_fnLog(n,0,"Ajax error",7)),_fnProcessingDisplay(n,!1)}});$.isPlainObject(i)&&$.extend(o,i),n.oAjaxData=e,_fnCallbackFire(n,null,"preXhr",[n,e,o]),"function"==typeof i?n.jqXHR=i.call(l,e,t,n):""===i.url?t({}):(n.jqXHR=$.ajax(o),r&&(i.data=r))}function _fnAjaxUpdate(t){t.iDraw++,_fnProcessingDisplay(t,!0),_fnBuildAjax(t,_fnAjaxParameters(t),function(e){_fnAjaxUpdateDraw(t,e)})}function _fnAjaxParameters(t){function n(e,t){return"function"==typeof a[e][t]?"function":a[e][t]}var a=t.aoColumns,e=t.oFeatures,r=t.oPreviousSearch,i=t.aoPreSearchCols;return{draw:t.iDraw,columns:a.map(function(t,e){return{data:n(e,"mData"),name:t.sName,searchable:t.bSearchable,orderable:t.bSortable,search:{value:i[e].search,regex:i[e].regex,fixed:Object.keys(t.searchFixed).map(function(e){return{name:e,term:t.searchFixed[e].toString()}})}}}),order:_fnSortFlatten(t).map(function(e){return{column:e.col,dir:e.dir,name:n(e.col,"sName")}}),start:t._iDisplayStart,length:e.bPaginate?t._iDisplayLength:-1,search:{value:r.search,regex:r.regex,fixed:Object.keys(t.searchFixed).map(function(e){return{name:e,term:t.searchFixed[e].toString()}})}}}function _fnAjaxUpdateDraw(e,t){var n=_fnAjaxDataSrc(e,t),a=_fnAjaxDataSrcParam(e,"draw",t),r=_fnAjaxDataSrcParam(e,"recordsTotal",t),t=_fnAjaxDataSrcParam(e,"recordsFiltered",t);if(void 0!==a){if(+a<e.iDraw)return;e.iDraw=+a}n=n||[],_fnClearTable(e),e._iRecordsTotal=parseInt(r,10),e._iRecordsDisplay=parseInt(t,10);for(var i=0,l=n.length;i<l;i++)_fnAddData(e,n[i]);e.aiDisplay=e.aiDisplayMaster.slice(),_fnDraw(e,!0),_fnInitComplete(e),_fnProcessingDisplay(e,!1)}function _fnAjaxDataSrc(e,t,n){var a="data";if($.isPlainObject(e.ajax)&&void 0!==e.ajax.dataSrc&&("string"==typeof(e=e.ajax.dataSrc)||"function"==typeof e?a=e:void 0!==e.data&&(a=e.data)),!n)return"data"===a?t.aaData||t[a]:""!==a?_fnGetObjectDataFn(a)(t):t;_fnSetObjectDataFn(a)(t,n)}function _fnAjaxDataSrcParam(e,t,n){var e=$.isPlainObject(e.ajax)?e.ajax.dataSrc:null;return e&&e[t]?_fnGetObjectDataFn(e[t])(n):(e="","draw"===t?e="sEcho":"recordsTotal"===t?e="iTotalRecords":"recordsFiltered"===t&&(e="iTotalDisplayRecords"),void 0!==n[e]?n[e]:n[t])}function _fnFilterComplete(n,e){var t=n.aoPreSearchCols;if(_fnColumnTypes(n),"ssp"!=_fnDataSource(n)){_fnFilterData(n),n.aiDisplay=n.aiDisplayMaster.slice(),_fnFilter(n.aiDisplay,n,e.search,e),$.each(n.searchFixed,function(e,t){_fnFilter(n.aiDisplay,n,t,{})});for(var a=0;a<t.length;a++){var r=t[a];_fnFilter(n.aiDisplay,n,r.search,r,a),$.each(n.aoColumns[a].searchFixed,function(e,t){_fnFilter(n.aiDisplay,n,t,{},a)})}_fnFilterCustom(n)}n.bFiltered=!0,_fnCallbackFire(n,null,"search",[n])}function _fnFilterCustom(e){for(var t,n,a=DataTable.ext.search,r=e.aiDisplay,i=0,l=a.length;i<l;i++){for(var o=[],s=0,u=r.length;s<u;s++)n=r[s],t=e.aoData[n],a[i](e,t._aFilterData,n,t._aData,s)&&o.push(n);r.length=0,r.push.apply(r,o)}}function _fnFilter(e,t,n,a,r){if(""!==n)for(var i=0,l="function"==typeof n?n:null,o=n instanceof RegExp?n:l?null:_fnFilterCreateSearch(n,a);i<e.length;){var s=t.aoData[e[i]],u=void 0===r?s._sFilterRow:s._aFilterData[r];(l&&!l(u,s._aData,r)||o&&!o.test(u))&&(e.splice(i,1),i--),i++}}function _fnFilterCreateSearch(e,t){var n,a,r,i=[],t=$.extend({},{boundary:!1,caseInsensitive:!0,exact:!1,regex:!1,smart:!0},t);return"string"!=typeof e&&(e=e.toString()),t.exact?new RegExp("^"+_fnEscapeRegex(e)+"$",t.caseInsensitive?"i":""):(e=t.regex?e:_fnEscapeRegex(e),t.smart&&(n=(e.match(/!?["\u201C][^"\u201D]+["\u201D]|[^ ]+/g)||[""]).map(function(e){var t,n=!1;return"!"===e.charAt(0)&&(n=!0,e=e.substring(1)),'"'===e.charAt(0)?e=(t=e.match(/^"(.*)"$/))?t[1]:e:"“"===e.charAt(0)&&(e=(t=e.match(/^\u201C(.*)\u201D$/))?t[1]:e),n&&(1<e.length&&i.push("(?!"+e+")"),e=""),e.replace('"',"")}),a=i.length?i.join(""):"",e="^(?=.*?"+(r=t.boundary?"\\b":"")+n.join(")(?=.*?"+r)+")("+a+".)*$"),new RegExp(e,t.caseInsensitive?"i":""))}var _fnEscapeRegex=DataTable.util.escapeRegex,__filter_div=$("<div>")[0],__filter_div_textContent=void 0!==__filter_div.textContent;function _fnFilterData(e){for(var t,n,a,r,i,l=e.aoColumns,o=e.aoData,s=!1,u=0;u<o.length;u++)if(o[u]&&!(i=o[u])._aFilterData){for(a=[],t=0,n=l.length;t<n;t++)l[t].bSearchable?"string"!=typeof(r=null===(r=_fnGetCellData(e,u,t,"filter"))?"":r)&&r.toString&&(r=r.toString()):r="",r.indexOf&&-1!==r.indexOf("&")&&(__filter_div.innerHTML=r,r=__filter_div_textContent?__filter_div.textContent:__filter_div.innerText),r.replace&&(r=r.replace(/[\r\n\u2028]/g,"")),a.push(r);i._aFilterData=a,i._sFilterRow=a.join("  "),s=!0}return s}function _fnInitialise(n){var a,e,r=n.iInitDisplayStart;n.bInitialised?(_fnBuildHead(n,"header"),_fnBuildHead(n,"footer"),_fnDrawHead(n,n.aoHeader),_fnDrawHead(n,n.aoFooter),_fnAddOptionsHtml(n),_fnSortInit(n),_fnProcessingDisplay(n,!0),_fnCallbackFire(n,null,"preInit",[n],!0),_fnReDraw(n),"ssp"!=(e=_fnDataSource(n))&&("ajax"==e?_fnBuildAjax(n,{},function(e){var t=_fnAjaxDataSrc(n,e);for(a=0;a<t.length;a++)_fnAddData(n,t[a]);n.iInitDisplayStart=r,_fnReDraw(n),_fnProcessingDisplay(n,!1),_fnInitComplete(n)},n):(_fnInitComplete(n),_fnProcessingDisplay(n,!1)))):setTimeout(function(){_fnInitialise(n)},200)}function _fnInitComplete(e){var t;e._bInitComplete||(t=[e,e.json],e._bInitComplete=!0,_fnAdjustColumnSizing(e),_fnCallbackFire(e,null,"plugin-init",t,!0),_fnCallbackFire(e,"aoInitComplete","init",t,!0))}function _fnLengthChange(e,t){t=parseInt(t,10);e._iDisplayLength=t,_fnLengthOverflow(e),_fnCallbackFire(e,null,"length",[e,t])}function _fnPageChange(e,t,n){var a=e._iDisplayStart,r=e._iDisplayLength,i=e.fnRecordsDisplay();if(0===i||-1===r)a=0;else if("number"==typeof t)i<(a=t*r)&&(a=0);else if("first"==t)a=0;else if("previous"==t)(a=0<=r?a-r:0)<0&&(a=0);else if("next"==t)a+r<i&&(a+=r);else if("last"==t)a=Math.floor((i-1)/r)*r;else{if("ellipsis"===t)return;_fnLog(e,0,"Unknown paging action: "+t,5)}i=e._iDisplayStart!==a;return e._iDisplayStart=a,_fnCallbackFire(e,null,i?"page":"page-nc",[e]),i&&n&&_fnDraw(e),i}function _processingHtml(e){var a,t=e.nTable;e.oFeatures.bProcessing&&(a=$("<div/>",{id:e.sTableId+"_processing",class:e.oClasses.processing.container,role:"status"}).html(e.oLanguage.sProcessing).append("<div><div></div><div></div><div></div><div></div></div>").insertBefore(t),$(t).on("processing.dt.DT",function(e,t,n){a.css("display",n?"block":"none")}))}function _fnProcessingDisplay(e,t){_fnCallbackFire(e,null,"processing",[e,t])}function _fnFeatureHtmlTable(e){var t,n,a,r,i,l,o,s,u,c,d,f,_=$(e.nTable),p=e.oScroll;return""===p.sX&&""===p.sY?e.nTable:(d=p.sX,t=p.sY,n=e.oClasses.scrolling,r=(a=e.captionNode)?a._captionSide:null,s=$(_[0].cloneNode(!1)),i=$(_[0].cloneNode(!1)),u=function(e){return e?_fnStringToCss(e):null},(l=_.children("tfoot")).length||(l=null),s=$(o="<div/>",{class:n.container}).append($(o,{class:n.header.self}).css({overflow:"hidden",position:"relative",border:0,width:d?u(d):"100%"}).append($(o,{class:n.header.inner}).css({"box-sizing":"content-box",width:p.sXInner||"100%"}).append(s.removeAttr("id").css("margin-left",0).append("top"===r?a:null).append(_.children("thead"))))).append($(o,{class:n.body}).css({position:"relative",overflow:"auto",width:u(d)}).append(_)),l&&s.append($(o,{class:n.footer.self}).css({overflow:"hidden",border:0,width:d?u(d):"100%"}).append($(o,{class:n.footer.inner}).append(i.removeAttr("id").css("margin-left",0).append("bottom"===r?a:null).append(_.children("tfoot"))))),u=s.children(),c=u[0],d=u[1],f=l?u[2]:null,$(d).on("scroll.DT",function(){var e=this.scrollLeft;c.scrollLeft=e,l&&(f.scrollLeft=e)}),$(d).css("max-height",t),p.bCollapse||$(d).css("height",t),e.nScrollHead=c,e.nScrollBody=d,e.nScrollFoot=f,e.aoDrawCallback.push(_fnScrollDraw),s[0])}function _fnScrollDraw(e){function t(e){(e=e.style).paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0}var n,a,r,i,l=e.oScroll,o=l.sX,s=l.sXInner,l=l.iBarWidth,u=$(e.nScrollHead),c=u[0].style,d=u.children("div"),f=d[0].style,d=d.children("table"),_=e.nScrollBody,p=$(_),h=_.style,g=$(e.nScrollFoot).children("div"),m=g.children("table"),b=$(e.nTHead),D=$(e.nTable),v=D[0].style,y=e.nTFoot?$(e.nTFoot):null,T=e.oBrowser,C=[],S=[],x=[],w=[],A=_.scrollHeight>_.clientHeight;e.scrollBarVis!==A&&void 0!==e.scrollBarVis?(e.scrollBarVis=A,_fnAdjustColumnSizing(e)):(e.scrollBarVis=A,D.children("thead, tfoot").remove(),y&&(A=y.clone().prependTo(D),n=y.find("tr"),r=A.find("tr"),A.find("[id]").removeAttr("id")),A=b.clone().prependTo(D),b=b.find("tr"),a=A.find("tr"),A.find("th, td").removeAttr("tabindex"),A.find("[id]").removeAttr("id"),o||(h.width="100%",u[0].style.width="100%"),_fnColumnSizes(e,A),y&&_fnApplyToChildren(function(e){e.style.width=""},r),u=D.outerWidth(),""===o?(v.width="100%",u=D.outerWidth()):""!==s&&(v.width=_fnStringToCss(s),u=D.outerWidth()),_fnApplyToChildren(t,a),_fnApplyToChildren(function(e){var t=window.getComputedStyle?window.getComputedStyle(e).width:_fnStringToCss($(e).width());x.push(e.innerHTML),C.push(t)},a),_fnApplyToChildren(function(e,t){e.style.width=C[t]},b),$(a).css("height",0),y&&(_fnApplyToChildren(t,r),_fnApplyToChildren(function(e){w.push(e.innerHTML),S.push(_fnStringToCss($(e).css("width")))},r),_fnApplyToChildren(function(e,t){e.style.width=S[t]},n),$(r).height(0)),_fnApplyToChildren(function(e,t){e.innerHTML='<div class="dataTables_sizing">'+x[t]+"</div>",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=C[t]},a),y&&_fnApplyToChildren(function(e,t){e.innerHTML='<div class="dataTables_sizing">'+w[t]+"</div>",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=S[t]},r),Math.round(D.outerWidth())<Math.round(u)?(i=_.scrollHeight>_.offsetHeight||"scroll"==p.css("overflow-y")?u+l:u,""!==o&&""===s||_fnLog(e,1,"Possible column misalignment",6)):i="100%",h.width=_fnStringToCss(i),c.width=_fnStringToCss(i),y&&(e.nScrollFoot.style.width=_fnStringToCss(i)),A=D.outerWidth(),d[0].style.width=_fnStringToCss(A),f.width=_fnStringToCss(A),v=Math.floor(D.height())>_.clientHeight||"scroll"==p.css("overflow-y"),f[b="padding"+(T.bScrollbarLeft?"Left":"Right")]=v?l+"px":"0px",y&&(m[0].style.width=_fnStringToCss(A),g[0].style.width=_fnStringToCss(A),g[0].style[b]=v?l+"px":"0px"),D.children("colgroup").insertBefore(D.children("thead")),p.trigger("scroll"),!e.bSorted&&!e.bFiltered||e._drawHold||(_.scrollTop=0))}function _fnApplyToChildren(e,t,n){for(var a,r,i=0,l=0,o=t.length;l<o;){for(a=t[l].firstChild,r=n?n[l].firstChild:null;a;)1===a.nodeType&&(n?e(a,r,i):e(a,i),i++),a=a.nextSibling,r=n?r.nextSibling:null;l++}}function _fnCalculateColumnWidths(t){if(t.oFeatures.bAutoWidth){var e=t.nTable,n=t.aoColumns,a=t.oScroll,r=a.sY,i=a.sX,a=a.sXInner,l=_fnGetColumns(t,"bVisible"),o=e.getAttribute("width"),s=e.parentNode,u=e.style.width,u=(u&&-1!==u.indexOf("%")&&(o=u),_fnCallbackFire(t,null,"column-calc",{visible:l},!1),$(e.cloneNode()).css("visibility","hidden").removeAttr("id")),c=(u.append("<tbody>"),$("<tr/>").appendTo(u.find("tbody")));for(u.append($(t.nTHead).clone()).append($(t.nTFoot).clone()),u.find("tfoot th, tfoot td").css("width",""),u.find("thead th, thead td").each(function(){var e=_fnColumnsSumWidth(t,this,!0,!1);e?(this.style.width=e,i&&$(this).append($("<div/>").css({width:d.sWidthOrig,margin:0,padding:0,border:0,height:1}))):this.style.width=""}),b=0;b<l.length;b++){var d=n[f=l[b]],f=_fnGetMaxLenString(t,f),_=_ext.type.className[d.sType],p=f+d.sContentPadding,f=-1===f.indexOf("<")?document.createTextNode(p):p;$("<td/>").addClass(_).addClass(d.sClass).append(f).appendTo(c)}$("[name]",u).removeAttr("name");for(var h=$("<div/>").css(i||r?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(u).appendTo(s),g=(i&&a?u.width(a):i?(u.css("width","auto"),u.removeAttr("width"),u.width()<s.clientWidth&&o&&u.width(s.clientWidth)):r?u.width(s.clientWidth):o&&u.width(o),0),m=u.find("tbody tr").eq(0).children(),b=0;b<l.length;b++){var D=Math.ceil(m[b].getBoundingClientRect().width);g+=D,n[l[b]].sWidth=_fnStringToCss(D)}e.style.width=_fnStringToCss(g),h.remove(),o&&(e.style.width=_fnStringToCss(o)),!o&&!i||t._reszEvt||($(window).on("resize.DT-"+t.sInstance,_fnThrottle(function(){t.bDestroying||_fnAdjustColumnSizing(t)})),t._reszEvt=!0)}}var _fnThrottle=DataTable.util.throttle;function _fnGetMaxLenString(e,t){var n=e.aoColumns[t];if(!n.maxLenString){for(var a="",r=-1,i=0,l=e.aiDisplayMaster.length;i<l;i++){var o,s=_fnGetRowDisplay(e,e.aiDisplayMaster[i])[t],s=(s=s&&"object"==typeof s&&s.nodeType?s.innerHTML:s+"").replace(/id=".*?"/g,"").replace(/name=".*?"/g,"");(o=_stripHtml(s).replace(/&nbsp;/g," ")).length>r&&(a=s,r=o.length)}n.maxLenString=a}return n.maxLenString}function _fnStringToCss(e){return null===e?"0px":"number"==typeof e?e<0?"0px":e+"px":e.match(/\d$/)?e+"px":e}function _fnSortInit(e){var t=e.nTHead,n=t.querySelectorAll("tr"),a=e.bSortCellsTop,a=(!0===a?t=n[0]:!1===a&&(t=n[n.length-1]),':not([data-dt-order="disable"]):not([data-dt-order="icon-only"])'),n=(_fnSortAttachListener(e,t,"tr"+a+" th"+a+", tr"+a+" td"+a),[]);_fnSortResolve(e,n,e.aaSorting),e.aaSorting=n}function _fnSortAttachListener(i,e,t,n,l){_fnBindAction(e,t,function(a){var r=void 0===n?_fnColumnsFromHeader(a.target):[n];r.length&&(_fnProcessingDisplay(i,!0),setTimeout(function(){for(var e=0,t=r.length;e<t;e++){var n=a.shiftKey||0<e;_fnSortAdd(i,r[e],n)}_fnSort(i),_fnSortDisplay(i),_fnReDraw(i,!1,!1),_fnProcessingDisplay(i,!1),l&&l()},0))})}function _fnSortDisplay(e){var t=e.aiDisplay,n=e.aiDisplayMaster;t.sort(function(e,t){return n.indexOf(e)-n.indexOf(t)})}function _fnSortResolve(n,a,e){function t(e){var t;$.isPlainObject(e)?void 0!==e.idx?a.push([e.idx,e.dir]):e.name&&-1!==(t=_pluck(n.aoColumns,"sName").indexOf(e.name))&&a.push([t,e.dir]):a.push(e)}if($.isPlainObject(e))t(e);else if(e.length&&"number"==typeof e[0])t(e);else if(e.length)for(var r=0;r<e.length;r++)t(e[r])}function _fnSortFlatten(e){var t,n,a,r,i,l,o,s=[],u=DataTable.ext.type.order,c=e.aoColumns,d=e.aaSortingFixed,f=$.isPlainObject(d),_=[];if(e.oFeatures.bSort)for(Array.isArray(d)&&_fnSortResolve(e,_,d),f&&d.pre&&_fnSortResolve(e,_,d.pre),_fnSortResolve(e,_,e.aaSorting),f&&d.post&&_fnSortResolve(e,_,d.post),t=0;t<_.length;t++)if(c[o=_[t][0]])for(n=0,a=(r=c[o].aDataSort).length;n<a;n++)l=c[i=r[n]].sType||"string",void 0===_[t]._idx&&(_[t]._idx=c[i].asSorting.indexOf(_[t][1])),_[t][1]&&s.push({src:o,col:i,dir:_[t][1],index:_[t]._idx,type:l,formatter:u[l+"-pre"],sorter:u[l+"-"+_[t][1]]});return s}function _fnSort(e,t,n){var a,r,i,l,c,d=[],o=DataTable.ext.type.order,f=e.aoData,s=e.aiDisplayMaster;for(_fnColumnTypes(e),void 0!==t?(l=e.aoColumns[t],c=[{src:t,col:t,dir:n,index:0,type:l.sType,formatter:o[l.sType+"-pre"],sorter:o[l.sType+"-"+n]}],s=s.slice()):c=_fnSortFlatten(e),a=0,r=c.length;a<r;a++)_fnSortData(e,c[a].col);if("ssp"!=_fnDataSource(e)&&0!==c.length){for(a=0,i=s.length;a<i;a++)d[a]=a;c.length&&"desc"===c[0].dir&&d.reverse(),s.sort(function(e,t){for(var n,a,r,i,l=c.length,o=f[e]._aSortData,s=f[t]._aSortData,u=0;u<l;u++)if(n=o[(i=c[u]).col],a=s[i.col],i.sorter){if(0!==(r=i.sorter(n,a)))return r}else if(0!==(r=n<a?-1:a<n?1:0))return"asc"===i.dir?r:-r;return(n=d[e])<(a=d[t])?-1:a<n?1:0})}else 0===c.length&&s.sort();return void 0===t&&(e.bSorted=!0,_fnCallbackFire(e,null,"order",[e,c])),s}function _fnSortAdd(e,t,n){function a(e,t){var n=e._idx;return(n=void 0===n?o.indexOf(e[1]):n)+1<o.length?n+1:t?null:0}var r,i=e.aoColumns[t],l=e.aaSorting,o=i.asSorting;i.bSortable&&("number"==typeof l[0]&&(l=e.aaSorting=[l]),n&&e.oFeatures.bSortMulti?-1!==(i=_pluck(l,"0").indexOf(t))?null===(r=null===(r=a(l[i],!0))&&1===l.length?0:r)?l.splice(i,1):(l[i][1]=o[r],l[i]._idx=r):(l.push([t,o[0],0]),l[l.length-1]._idx=0):l.length&&l[0][0]==t?(r=a(l[0]),l.length=1,l[0][1]=o[r],l[0]._idx=r):(l.length=0,l.push([t,o[0]]),l[0]._idx=0))}function _fnSortingClasses(e){var t,n,a,r=e.aLastSort,i=e.oClasses.order.position,l=_fnSortFlatten(e),o=e.oFeatures;if(o.bSort&&o.bSortClasses){for(t=0,n=r.length;t<n;t++)a=r[t].src,$(_pluck(e.aoData,"anCells",a)).removeClass(i+(t<2?t+1:3));for(t=0,n=l.length;t<n;t++)a=l[t].src,$(_pluck(e.aoData,"anCells",a)).addClass(i+(t<2?t+1:3))}e.aLastSort=l}function _fnSortData(e,t){for(var n,a,r,i=e.aoColumns[t],l=DataTable.ext.order[i.sSortDataType],o=(l&&(n=l.call(e.oInstance,e,t,_fnColumnIndexToVisible(e,t))),DataTable.ext.type.order[i.sType+"-pre"]),s=e.aoData,u=0;u<s.length;u++)s[u]&&((a=s[u])._aSortData||(a._aSortData=[]),a._aSortData[t]&&!l||(r=l?n[u]:_fnGetCellData(e,u,t,"sort"),a._aSortData[t]=o?o(r,e):r))}function _fnSaveState(n){var e;n._bLoadingState||(e={time:+new Date,start:n._iDisplayStart,length:n._iDisplayLength,order:$.extend(!0,[],n.aaSorting),search:$.extend({},n.oPreviousSearch),columns:n.aoColumns.map(function(e,t){return{visible:e.bVisible,search:$.extend({},n.aoPreSearchCols[t])}})},n.oSavedState=e,_fnCallbackFire(n,"aoStateSaveParams","stateSaveParams",[n,e]),n.oFeatures.bStateSave&&!n.bDestroying&&n.fnStateSaveCallback.call(n.oInstance,n,e))}function _fnLoadState(t,e,n){var a;if(t.oFeatures.bStateSave)return void 0!==(a=t.fnStateLoadCallback.call(t.oInstance,t,function(e){_fnImplementState(t,e,n)}))&&_fnImplementState(t,a,n),!0;n()}function _fnImplementState(n,e,t){var a,r,i=n.aoColumns,l=(n._bLoadingState=!0,n._bInitComplete?new DataTable.Api(n):null);if(e&&e.time){var o=n.iStateDuration;if(0<o&&e.time<+new Date-1e3*o)n._bLoadingState=!1;else if(-1!==_fnCallbackFire(n,"aoStateLoadParams","stateLoadParams",[n,e]).indexOf(!1))n._bLoadingState=!1;else if(e.columns&&i.length!==e.columns.length)n._bLoadingState=!1;else{if(n.oLoadedState=$.extend(!0,{},e),void 0!==e.length&&(l?l.page.len(e.length):n._iDisplayLength=e.length),void 0!==e.start&&(null===l?(n._iDisplayStart=e.start,n.iInitDisplayStart=e.start):_fnPageChange(n,e.start/n._iDisplayLength)),void 0!==e.order&&(n.aaSorting=[],$.each(e.order,function(e,t){n.aaSorting.push(t[0]>=i.length?[0,t[1]]:t)})),void 0!==e.search&&$.extend(n.oPreviousSearch,e.search),e.columns){for(a=0,r=e.columns.length;a<r;a++){var s=e.columns[a];void 0!==s.visible&&(l?l.column(a).visible(s.visible,!1):i[a].bVisible=s.visible),void 0!==s.search&&$.extend(n.aoPreSearchCols[a],s.search)}l&&l.columns.adjust()}n._bLoadingState=!1,_fnCallbackFire(n,"aoStateLoaded","stateLoaded",[n,e])}}else n._bLoadingState=!1;t()}function _fnLog(e,t,n,a){if(n="DataTables warning: "+(e?"table id="+e.sTableId+" - ":"")+n,a&&(n+=". For more information about this error, please see http://datatables.net/tn/"+a),t)window.console&&console.log&&console.log(n);else{t=DataTable.ext,t=t.sErrMode||t.errMode;if(e&&_fnCallbackFire(e,null,"dt-error",[e,a,n],!0),"alert"==t)alert(n);else{if("throw"==t)throw new Error(n);"function"==typeof t&&t(e,a,n)}}}function _fnMap(n,a,e,t){Array.isArray(e)?$.each(e,function(e,t){Array.isArray(t)?_fnMap(n,a,t[0],t[1]):_fnMap(n,a,t)}):(void 0===t&&(t=e),void 0!==a[e]&&(n[t]=a[e]))}function _fnExtend(e,t,n){var a,r;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(a=t[r],$.isPlainObject(a)?($.isPlainObject(e[r])||(e[r]={}),$.extend(!0,e[r],a)):n&&"data"!==r&&"aaData"!==r&&Array.isArray(a)?e[r]=a.slice():e[r]=a);return e}function _fnBindAction(t,e,n){$(t).on("click.DT",e,function(e){$(t).trigger("blur"),n(e)}).on("keypress.DT",e,function(e){13===e.which&&(e.preventDefault(),n(e))}).on("selectstart.DT",e,function(){return!1})}function _fnCallbackReg(e,t,n){n&&e[t].push(n)}function _fnCallbackFire(t,e,n,a,r){var i=[];return e&&(i=t[e].slice().reverse().map(function(e){return e.apply(t.oInstance,a)})),null!==n&&(e=$.Event(n+".dt"),n=$(t.nTable),e.dt=t.api,n[r?"trigger":"triggerHandler"](e,a),r&&0===n.parents("body").length&&$("body").trigger(e,a),i.push(e.result)),i}function _fnLengthOverflow(e){var t=e._iDisplayStart,n=e.fnDisplayEnd(),a=e._iDisplayLength;n<=t&&(t=n-a),t-=t%a,e._iDisplayStart=t=-1===a||t<0?0:t}function _fnRenderer(e,t){var e=e.renderer,n=DataTable.ext.renderer[t];return $.isPlainObject(e)&&e[t]?n[e[t]]||n._:"string"==typeof e&&n[e]||n._}function _fnDataSource(e){return e.oFeatures.bServerSide?"ssp":e.ajax?"ajax":"dom"}function _fnMacros(e,t,n){var a=e.fnFormatNumber,r=e._iDisplayStart+1,i=e._iDisplayLength,l=e.fnRecordsDisplay(),o=e.fnRecordsTotal(),s=-1===i;return t.replace(/_START_/g,a.call(e,r)).replace(/_END_/g,a.call(e,e.fnDisplayEnd())).replace(/_MAX_/g,a.call(e,o)).replace(/_TOTAL_/g,a.call(e,l)).replace(/_PAGE_/g,a.call(e,s?1:Math.ceil(r/i))).replace(/_PAGES_/g,a.call(e,s?1:Math.ceil(l/i))).replace(/_ENTRIES_/g,e.api.i18n("entries","",n)).replace(/_ENTRIES-MAX_/g,e.api.i18n("entries","",o)).replace(/_ENTRIES-TOTAL_/g,e.api.i18n("entries","",l))}var __apiStruct=[],__arrayProto=Array.prototype,_toSettings=function(e){var t,n,a=DataTable.settings,r=_pluck(a,"nTable");return e?e.nTable&&e.oApi?[e]:e.nodeName&&"table"===e.nodeName.toLowerCase()?-1!==(t=r.indexOf(e))?[a[t]]:null:e&&"function"==typeof e.settings?e.settings().toArray():("string"==typeof e?n=$(e).get():e instanceof $&&(n=e.get()),n?a.filter(function(e,t){return n.includes(r[t])}):void 0):[]};function _api_scope(t,n,a){return function(){var e=n.apply(t||this,arguments);return _Api.extend(e,e,a.methodExt),e}}function _api_find(e,t){for(var n=0,a=e.length;n<a;n++)if(e[n].name===t)return e[n];return null}_Api=function(e,t){if(!(this instanceof _Api))return new _Api(e,t);function n(e){(e=_toSettings(e))&&a.push.apply(a,e)}var a=[];if(Array.isArray(e))for(var r=0,i=e.length;r<i;r++)n(e[r]);else n(e);this.context=1<a.length?_unique(a):a,t&&this.push.apply(this,t),this.selector={rows:null,cols:null,opts:null},_Api.extend(this,this,__apiStruct)},DataTable.Api=_Api,$.extend(_Api.prototype,{any:function(){return 0!==this.count()},context:[],count:function(){return this.flatten().length},each:function(e){for(var t=0,n=this.length;t<n;t++)e.call(this,this[t],t,this);return this},eq:function(e){var t=this.context;return t.length>e?new _Api(t[e],this[e]):null},filter:function(e){e=__arrayProto.filter.call(this,e,this);return new _Api(this.context,e)},flatten:function(){var e=[];return new _Api(this.context,e.concat.apply(e,this.toArray()))},get:function(e){return this[e]},join:__arrayProto.join,includes:function(e){return-1!==this.indexOf(e)},indexOf:__arrayProto.indexOf,iterator:function(e,t,n,a){var r,i,l,o,s,u,c,d,f=[],_=this.context,p=this.selector;for("string"==typeof e&&(a=n,n=t,t=e,e=!1),i=0,l=_.length;i<l;i++){var h=new _Api(_[i]);if("table"===t)void 0!==(r=n.call(h,_[i],i))&&f.push(r);else if("columns"===t||"rows"===t)void 0!==(r=n.call(h,_[i],this[i],i))&&f.push(r);else if("every"===t||"column"===t||"column-rows"===t||"row"===t||"cell"===t)for(c=this[i],"column-rows"===t&&(u=_selector_row_indexes(_[i],p.opts)),o=0,s=c.length;o<s;o++)d=c[o],void 0!==(r="cell"===t?n.call(h,_[i],d.row,d.column,i,o):n.call(h,_[i],d,i,o,u))&&f.push(r)}return f.length||a?((e=(a=new _Api(_,e?f.concat.apply([],f):f)).selector).rows=p.rows,e.cols=p.cols,e.opts=p.opts,a):this},lastIndexOf:__arrayProto.lastIndexOf,length:0,map:function(e){e=__arrayProto.map.call(this,e,this);return new _Api(this.context,e)},pluck:function(e){var t=DataTable.util.get(e);return this.map(function(e){return t(e)})},pop:__arrayProto.pop,push:__arrayProto.push,reduce:__arrayProto.reduce,reduceRight:__arrayProto.reduceRight,reverse:__arrayProto.reverse,selector:null,shift:__arrayProto.shift,slice:function(){return new _Api(this.context,this)},sort:__arrayProto.sort,splice:__arrayProto.splice,toArray:function(){return __arrayProto.slice.call(this)},to$:function(){return $(this)},toJQuery:function(){return $(this)},unique:function(){return new _Api(this.context,_unique(this.toArray()))},unshift:__arrayProto.unshift}),window.__apiStruct=__apiStruct,_Api.extend=function(e,t,n){if(n.length&&t&&(t instanceof _Api||t.__dt_wrapper))for(var a,r=0,i=n.length;r<i;r++)t[(a=n[r]).name]="function"===a.type?_api_scope(e,a.val,a):"object"===a.type?{}:a.val,t[a.name].__dt_wrapper=!0,_Api.extend(e,t[a.name],a.propExt)},_Api.register=_api_register=function(e,t){if(Array.isArray(e))for(var n=0,a=e.length;n<a;n++)_Api.register(e[n],t);else for(var r=e.split("."),i=__apiStruct,l=0,o=r.length;l<o;l++){var s,u,c=_api_find(i,u=(s=-1!==r[l].indexOf("()"))?r[l].replace("()",""):r[l]);c||i.push(c={name:u,val:{},methodExt:[],propExt:[],type:"object"}),l===o-1?(c.val=t,c.type="function"==typeof t?"function":$.isPlainObject(t)?"object":"other"):i=s?c.methodExt:c.propExt}},_Api.registerPlural=_api_registerPlural=function(e,t,n){_Api.register(e,n),_Api.register(t,function(){var e=n.apply(this,arguments);return e===this?this:e instanceof _Api?e.length?Array.isArray(e[0])?new _Api(e.context,e[0]):e[0]:void 0:e})};var __table_selector=function(e,t){var n,a;return Array.isArray(e)?(n=[],e.forEach(function(e){e=__table_selector(e,t);n.push.apply(n,e)}),n.filter(function(e){return e})):"number"==typeof e?[t[e]]:(a=t.map(function(e){return e.nTable}),$(a).filter(e).map(function(){var e=a.indexOf(this);return t[e]}).toArray())},__reload=(_api_register("tables()",function(e){return null!=e?new _Api(__table_selector(e,this.context)):this}),_api_register("table()",function(e){var e=this.tables(e),t=e.context;return t.length?new _Api(t[0]):e}),_api_registerPlural("tables().nodes()","table().node()",function(){return this.iterator("table",function(e){return e.nTable},1)}),_api_registerPlural("tables().body()","table().body()",function(){return this.iterator("table",function(e){return e.nTBody},1)}),_api_registerPlural("tables().header()","table().header()",function(){return this.iterator("table",function(e){return e.nTHead},1)}),_api_registerPlural("tables().footer()","table().footer()",function(){return this.iterator("table",function(e){return e.nTFoot},1)}),_api_registerPlural("tables().containers()","table().container()",function(){return this.iterator("table",function(e){return e.nTableWrapper},1)}),_api_register("caption()",function(r,i){var e,t=this.context;return void 0===r?(e=t[0].captionNode)&&t.length?e.innerHTML:null:this.iterator("table",function(e){var t=$(e.nTable),n=$(e.captionNode),a=$(e.nTableWrapper);n.length||(n=$("<caption/>").html(r),e.captionNode=n[0],i)||(t.prepend(n),i=n.css("caption-side")),n.html(r),i&&(n.css("caption-side",i),n[0]._captionSide=i),(a.find("div.dataTables_scroll").length?(e="top"===i?"Head":"Foot",a.find("div.dataTables_scroll"+e+" table")):t).prepend(n)},1)}),_api_register("caption.node()",function(){var e=this.context;return e.length?e[0].captionNode:null}),_api_register("draw()",function(t){return this.iterator("table",function(e){"page"===t?_fnDraw(e):_fnReDraw(e,!1===(t="string"==typeof t?"full-hold"!==t:t))})}),_api_register("page()",function(t){return void 0===t?this.page.info().page:this.iterator("table",function(e){_fnPageChange(e,t)})}),_api_register("page.info()",function(){var e,t,n,a,r;if(0!==this.context.length)return t=(e=this.context[0])._iDisplayStart,n=e.oFeatures.bPaginate?e._iDisplayLength:-1,a=e.fnRecordsDisplay(),{page:(r=-1===n)?0:Math.floor(t/n),pages:r?1:Math.ceil(a/n),start:t,end:e.fnDisplayEnd(),length:n,recordsTotal:e.fnRecordsTotal(),recordsDisplay:a,serverSide:"ssp"===_fnDataSource(e)}}),_api_register("page.len()",function(t){return void 0===t?0!==this.context.length?this.context[0]._iDisplayLength:void 0:this.iterator("table",function(e){_fnLengthChange(e,t)})}),function(r,i,e){var t,n;e&&(t=new _Api(r)).one("draw",function(){e(t.ajax.json())}),"ssp"==_fnDataSource(r)?_fnReDraw(r,i):(_fnProcessingDisplay(r,!0),(n=r.jqXHR)&&4!==n.readyState&&n.abort(),_fnBuildAjax(r,{},function(e){_fnClearTable(r);for(var t=_fnAjaxDataSrc(r,e),n=0,a=t.length;n<a;n++)_fnAddData(r,t[n]);_fnReDraw(r,i),_fnInitComplete(r),_fnProcessingDisplay(r,!1)}))}),_selector_run=(_api_register("ajax.json()",function(){var e=this.context;if(0<e.length)return e[0].json}),_api_register("ajax.params()",function(){var e=this.context;if(0<e.length)return e[0].oAjaxData}),_api_register("ajax.reload()",function(t,n){return this.iterator("table",function(e){__reload(e,!1===n,t)})}),_api_register("ajax.url()",function(t){var e=this.context;return void 0===t?0===e.length?void 0:(e=e[0],$.isPlainObject(e.ajax)?e.ajax.url:e.ajax):this.iterator("table",function(e){$.isPlainObject(e.ajax)?e.ajax.url=t:e.ajax=t})}),_api_register("ajax.url().load()",function(t,n){return this.iterator("table",function(e){__reload(e,!1===n,t)})}),function(e,t,n,a,r){for(var i,l,o,s,u=[],c=typeof t,d=0,f=(t=t&&"string"!=c&&"function"!=c&&void 0!==t.length?t:[t]).length;d<f;d++)for(o=0,s=(l=t[d]&&t[d].split&&!t[d].match(/[[(:]/)?t[d].split(","):[t[d]]).length;o<s;o++)(i=(i=n("string"==typeof l[o]?l[o].trim():l[o])).filter(function(e){return null!=e}))&&i.length&&(u=u.concat(i));var _=_ext.selector[e];if(_.length)for(d=0,f=_.length;d<f;d++)u=_[d](a,r,u);return _unique(u)}),_selector_opts=function(e){return(e=e||{}).filter&&void 0===e.search&&(e.search=e.filter),$.extend({search:"none",order:"current",page:"all"},e)},_selector_first=function(e){var t=new _Api(e.context[0]);return e.length&&t.push(e[0]),t.selector=e.selector,t.length&&1<t[0].length&&t[0].splice(1),t},_selector_row_indexes=function(e,t){var n,a=[],r=e.aiDisplay,i=e.aiDisplayMaster,l=t.search,o=t.order,t=t.page;if("ssp"==_fnDataSource(e))return"removed"===l?[]:_range(0,i.length);if("current"==t)for(u=e._iDisplayStart,c=e.fnDisplayEnd();u<c;u++)a.push(r[u]);else if("current"==o||"applied"==o){if("none"==l)a=i.slice();else if("applied"==l)a=r.slice();else if("removed"==l){for(var s={},u=0,c=r.length;u<c;u++)s[r[u]]=null;i.forEach(function(e){Object.prototype.hasOwnProperty.call(s,e)||a.push(e)})}}else if("index"==o||"original"==o)for(u=0,c=e.aoData.length;u<c;u++)e.aoData[u]&&("none"==l||-1===(n=r.indexOf(u))&&"removed"==l||0<=n&&"applied"==l)&&a.push(u);else if("number"==typeof o){var d=_fnSort(e,o,"asc");if("none"===l)a=d;else for(u=0;u<d.length;u++)(-1===(n=r.indexOf(d[u]))&&"removed"==l||0<=n&&"applied"==l)&&a.push(d[u])}return a},__row_selector=function(r,e,i){var l,n,e=_selector_run("row",e,function(n){var e=_intVal(n),a=r.aoData;if(null!==e&&!i)return[e];if(l=l||_selector_row_indexes(r,i),null!==e&&-1!==l.indexOf(e))return[e];if(null==n||""===n)return l;if("function"==typeof n)return l.map(function(e){var t=a[e];return n(e,t._aData,t.nTr)?e:null});if(n.nodeName)return e=n._DT_RowIndex,t=n._DT_CellIndex,void 0!==e?a[e]&&a[e].nTr===n?[e]:[]:t?a[t.row]&&a[t.row].nTr===n.parentNode?[t.row]:[]:(e=$(n).closest("*[data-dt-row]")).length?[e.data("dt-row")]:[];if("string"==typeof n&&"#"===n.charAt(0)){var t=r.aIds[n.replace(/^#/,"")];if(void 0!==t)return[t.idx]}e=_removeEmpty(_pluck_order(r.aoData,l,"nTr"));return $(e).filter(n).map(function(){return this._DT_RowIndex}).toArray()},r,i);return"current"!==i.order&&"applied"!==i.order||(n=r.aiDisplayMaster,e.sort(function(e,t){return n.indexOf(e)-n.indexOf(t)})),e},__details_add=(_api_register("rows()",function(t,n){void 0===t?t="":$.isPlainObject(t)&&(n=t,t=""),n=_selector_opts(n);var e=this.iterator("table",function(e){return __row_selector(e,t,n)},1);return e.selector.rows=t,e.selector.opts=n,e}),_api_register("rows().nodes()",function(){return this.iterator("row",function(e,t){return e.aoData[t].nTr||void 0},1)}),_api_register("rows().data()",function(){return this.iterator(!0,"rows",function(e,t){return _pluck_order(e.aoData,t,"_aData")},1)}),_api_registerPlural("rows().cache()","row().cache()",function(n){return this.iterator("row",function(e,t){e=e.aoData[t];return"search"===n?e._aFilterData:e._aSortData},1)}),_api_registerPlural("rows().invalidate()","row().invalidate()",function(n){return this.iterator("row",function(e,t){_fnInvalidate(e,t,n)})}),_api_registerPlural("rows().indexes()","row().index()",function(){return this.iterator("row",function(e,t){return t},1)}),_api_registerPlural("rows().ids()","row().id()",function(e){for(var t=[],n=this.context,a=0,r=n.length;a<r;a++)for(var i=0,l=this[a].length;i<l;i++){var o=n[a].rowIdFn(n[a].aoData[this[a][i]]._aData);t.push((!0===e?"#":"")+o)}return new _Api(n,t)}),_api_registerPlural("rows().remove()","row().remove()",function(){return this.iterator("row",function(e,t){var n=e.aoData,a=n[t],r=e.aiDisplayMaster.indexOf(t),r=(-1!==r&&e.aiDisplayMaster.splice(r,1),-1!==(r=e.aiDisplay.indexOf(t))&&e.aiDisplay.splice(r,1),0<e._iRecordsDisplay&&e._iRecordsDisplay--,_fnLengthOverflow(e),e.rowIdFn(a._aData));void 0!==r&&delete e.aIds[r],n[t]=null}),this}),_api_register("rows.add()",function(i){var e=this.iterator("table",function(e){for(var t,n=[],a=0,r=i.length;a<r;a++)(t=i[a]).nodeName&&"TR"===t.nodeName.toUpperCase()?n.push(_fnAddTr(e,t)[0]):n.push(_fnAddData(e,t));return n},1),t=this.rows(-1);return t.pop(),t.push.apply(t,e),t}),_api_register("row()",function(e,t){return _selector_first(this.rows(e,t))}),_api_register("row().data()",function(e){var t,n=this.context;return void 0===e?n.length&&this.length&&this[0].length?n[0].aoData[this[0]]._aData:void 0:((t=n[0].aoData[this[0]])._aData=e,Array.isArray(e)&&t.nTr&&t.nTr.id&&_fnSetObjectDataFn(n[0].rowId)(e,t.nTr.id),_fnInvalidate(n[0],this[0],"data"),this)}),_api_register("row().node()",function(){var e=this.context;return e.length&&this.length&&this[0].length&&e[0].aoData[this[0]].nTr||null}),_api_register("row.add()",function(t){t instanceof $&&t.length&&(t=t[0]);var e=this.iterator("table",function(e){return t.nodeName&&"TR"===t.nodeName.toUpperCase()?_fnAddTr(e,t)[0]:_fnAddData(e,t)});return this.row(e[0])}),$(document).on("plugin-init.dt",function(e,t){var n=new _Api(t),a="on-plugin-init",r="stateSaveParams."+a,i="destroy. "+a,a=(n.on(r,function(e,t,n){for(var a=t.rowIdFn,r=t.aiDisplayMaster,i=[],l=0;l<r.length;l++){var o=r[l],o=t.aoData[o];o._detailsShow&&i.push("#"+a(o._aData))}n.childRows=i}),n.on(i,function(){n.off(r+" "+i)}),n.state.loaded());a&&a.childRows&&n.rows(a.childRows.map(function(e){return e.replace(/:/g,"\\:")})).every(function(){_fnCallbackFire(t,null,"requestChild",[this])})}),function(i,l,e,t){function o(e,t){var n;if(Array.isArray(e)||e instanceof $)for(var a=0,r=e.length;a<r;a++)o(e[a],t);else e.nodeName&&"tr"===e.nodeName.toLowerCase()?(e.setAttribute("data-dt-row",l.idx),s.push(e)):(n=$("<tr><td></td></tr>").attr("data-dt-row",l.idx).addClass(t),$("td",n).addClass(t).html(e)[0].colSpan=_fnVisbleColumns(i),s.push(n[0]))}var s=[];o(e,t),l._details&&l._details.detach(),l._details=$(s),l._detailsShow&&l._details.insertAfter(l.nTr)}),__details_state=DataTable.util.throttle(function(e){_fnSaveState(e[0])},500),__details_remove=function(e,t){var n=e.context;n.length&&(t=n[0].aoData[void 0!==t?t:e[0]])&&t._details&&(t._details.remove(),t._detailsShow=void 0,t._details=void 0,$(t.nTr).removeClass("dt-hasChild"),__details_state(n))},__details_display=function(e,t){var n,a=e.context;a.length&&e.length&&(n=a[0].aoData[e[0]])._details&&((n._detailsShow=t)?(n._details.insertAfter(n.nTr),$(n.nTr).addClass("dt-hasChild")):(n._details.detach(),$(n.nTr).removeClass("dt-hasChild")),_fnCallbackFire(a[0],null,"childRow",[t,e.row(e[0])]),__details_events(a[0]),__details_state(a))},__details_events=function(l){var r=new _Api(l),e=".dt.DT_details",t="draw"+e,n="column-sizing"+e,e="destroy"+e,o=l.aoData;r.off(t+" "+n+" "+e),0<_pluck(o,"_details").length&&(r.on(t,function(e,t){l===t&&r.rows({page:"current"}).eq(0).each(function(e){e=o[e];e._detailsShow&&e._details.insertAfter(e.nTr)})}),r.on(n,function(e,t){if(l===t)for(var n,a=_fnVisbleColumns(t),r=0,i=o.length;r<i;r++)(n=o[r])._details&&n._details.children("td[colspan]").attr("colspan",a)}),r.on(e,function(e,t){if(l===t)for(var n=0,a=o.length;n<a;n++)o[n]._details&&__details_remove(r,n)}))},_emp="",_child_obj=_emp+"row().child",_child_mth=_child_obj+"()",__re_column_selector=(_api_register(_child_mth,function(e,t){var n=this.context;return void 0===e?n.length&&this.length?n[0].aoData[this[0]]._details:void 0:(!0===e?this.child.show():!1===e?__details_remove(this):n.length&&this.length&&__details_add(n[0],n[0].aoData[this[0]],e,t),this)}),_api_register([_child_obj+".show()",_child_mth+".show()"],function(){return __details_display(this,!0),this}),_api_register([_child_obj+".hide()",_child_mth+".hide()"],function(){return __details_display(this,!1),this}),_api_register([_child_obj+".remove()",_child_mth+".remove()"],function(){return __details_remove(this),this}),_api_register(_child_obj+".isShown()",function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]]._detailsShow||!1}),/^([^:]+):(name|title|visIdx|visible)$/),__columnData=function(e,t,n,a,r,i){for(var l=[],o=0,s=r.length;o<s;o++)l.push(_fnGetCellData(e,r[o],t,i));return l},__column_selector=function(l,e,o){var s=l.aoColumns,u=_pluck(s,"sName"),c=_pluck(s,"sTitle"),d=_fnCellsFromLayout(l.aoHeader);return _selector_run("column",e,function(n){var a,e=_intVal(n);if(""===n)return _range(s.length);if(null!==e)return[0<=e?e:s.length+e];if("function"==typeof n)return a=_selector_row_indexes(l,o),s.map(function(e,t){return n(t,__columnData(l,t,0,0,a))?t:null});var r="string"==typeof n?n.match(__re_column_selector):"";if(r)switch(r[2]){case"visIdx":case"visible":var t,i=parseInt(r[1],10);return i<0?[(t=s.map(function(e,t){return e.bVisible?t:null}))[t.length+i]]:[_fnVisibleToColumnIndex(l,i)];case"name":return u.map(function(e,t){return e===r[1]?t:null});case"title":return c.map(function(e,t){return e===r[1]?t:null});default:return[]}return n.nodeName&&n._DT_CellIndex?[n._DT_CellIndex.column]:(e=$(d).filter(n).map(function(){return _fnColumnsFromHeader(this)}).toArray()).length||!n.nodeName?e:(e=$(n).closest("*[data-dt-column]")).length?[e.data("dt-column")]:[]},l,o)},__setColumnVis=function(e,t,n){var a,r,i=e.aoColumns,l=i[t],o=e.aoData;if(void 0===n)return l.bVisible;if(l.bVisible===n)return!1;if(n)for(var s=_pluck(i,"bVisible").indexOf(!0,t+1),u=0,c=o.length;u<c;u++)r=o[u].nTr,a=o[u].anCells,r&&r.insertBefore(a[t],a[s]||null);else $(_pluck(e.aoData,"anCells",t)).detach();return l.bVisible=n,!0},__cell_selector=(_api_register("columns()",function(t,n){void 0===t?t="":$.isPlainObject(t)&&(n=t,t=""),n=_selector_opts(n);var e=this.iterator("table",function(e){return __column_selector(e,t,n)},1);return e.selector.cols=t,e.selector.opts=n,e}),_api_registerPlural("columns().header()","column().header()",function(a){return this.iterator("column",function(e,t){var n=e.aoHeader;return n[void 0!==a?a:e.bSortCellsTop?0:n.length-1][t].cell},1)}),_api_registerPlural("columns().footer()","column().footer()",function(n){return this.iterator("column",function(e,t){return e.aoFooter.length?e.aoFooter[void 0!==n?n:0][t].cell:null},1)}),_api_registerPlural("columns().data()","column().data()",function(){return this.iterator("column-rows",__columnData,1)}),_api_registerPlural("columns().render()","column().render()",function(i){return this.iterator("column-rows",function(e,t,n,a,r){return __columnData(e,t,n,a,r,i)},1)}),_api_registerPlural("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].mData},1)}),_api_registerPlural("columns().cache()","column().cache()",function(i){return this.iterator("column-rows",function(e,t,n,a,r){return _pluck_order(e.aoData,r,"search"===i?"_aFilterData":"_aSortData",t)},1)}),_api_registerPlural("columns().init()","column().init()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t]},1)}),_api_registerPlural("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(e,t,n,a,r){return _pluck_order(e.aoData,r,"anCells",t)},1)}),_api_registerPlural("columns().titles()","column().title()",function(n,a){return this.iterator("column",function(e,t){"number"==typeof n&&(a=n,n=void 0);t=$("span.dt-column-title",this.column(t).header(a));return void 0!==n?(t.html(n),this):t.html()},1)}),_api_registerPlural("columns().types()","column().type()",function(){return this.iterator("column",function(e,t){t=e.aoColumns[t].sType;return t||_fnColumnTypes(e),t},1)}),_api_registerPlural("columns().visible()","column().visible()",function(n,a){var t=this,r=[],e=this.iterator("column",function(e,t){if(void 0===n)return e.aoColumns[t].bVisible;__setColumnVis(e,t,n)&&r.push(t)});return void 0!==n&&this.iterator("table",function(e){_fnDrawHead(e,e.aoHeader),_fnDrawHead(e,e.aoFooter),e.aiDisplay.length||$(e.nTBody).find("td[colspan]").attr("colspan",_fnVisbleColumns(e)),_fnSaveState(e),t.iterator("column",function(e,t){r.includes(t)&&_fnCallbackFire(e,null,"column-visibility",[e,t,n,a])}),void 0!==a&&!a||t.columns.adjust()}),e}),_api_registerPlural("columns().widths()","column().width()",function(){return this.length&&this.cells(":eq(0)",this[0],{page:"current"}).nodes().reduce(function(e,t){return e+$(t).outerWidth()},0)||null}),_api_registerPlural("columns().indexes()","column().index()",function(n){return this.iterator("column",function(e,t){return"visible"===n?_fnColumnIndexToVisible(e,t):t},1)}),_api_register("columns.adjust()",function(){return this.iterator("table",function(e){_fnAdjustColumnSizing(e)},1)}),_api_register("column.index()",function(e,t){var n;if(0!==this.context.length)return n=this.context[0],"fromVisible"===e||"toData"===e?_fnVisibleToColumnIndex(n,t):"fromData"===e||"toVisible"===e?_fnColumnIndexToVisible(n,t):void 0}),_api_register("column()",function(e,t){return _selector_first(this.columns(e,t))}),function(a,e,t){var r,i,l,o,s,u,c,d=a.aoData,f=_selector_row_indexes(a,t),n=_removeEmpty(_pluck_order(d,f,"anCells")),_=$(_flatten([],n)),p=a.aoColumns.length;return _selector_run("cell",e,function(e){var t,n="function"==typeof e;if(null==e||n){for(i=[],l=0,o=f.length;l<o;l++)for(r=f[l],s=0;s<p;s++)u={row:r,column:s},(!n||(c=d[r],e(u,_fnGetCellData(a,r,s),c.anCells?c.anCells[s]:null)))&&i.push(u);return i}return $.isPlainObject(e)?void 0!==e.column&&void 0!==e.row&&-1!==f.indexOf(e.row)?[e]:[]:(t=_.filter(e).map(function(e,t){return{row:t._DT_CellIndex.row,column:t._DT_CellIndex.column}}).toArray()).length||!e.nodeName?t:(c=$(e).closest("*[data-dt-row]")).length?[{row:c.data("dt-row"),column:c.data("dt-column")}]:[]},a,t)}),extPagination=(_api_register("cells()",function(t,e,n){var a,r,i,l,o,s,u;return $.isPlainObject(t)&&(void 0===t.row?(n=t,t=null):(n=e,e=null)),$.isPlainObject(e)&&(n=e,e=null),null==e?this.iterator("table",function(e){return __cell_selector(e,t,_selector_opts(n))}):(u=n?{page:n.page,order:n.order,search:n.search}:{},a=this.columns(e,u),r=this.rows(t,u),u=this.iterator("table",function(e,t){var n=[];for(i=0,l=r[t].length;i<l;i++)for(o=0,s=a[t].length;o<s;o++)n.push({row:r[t][i],column:a[t][o]});return n},1),u=n&&n.selected?this.cells(u,n):u,$.extend(u.selector,{cols:e,rows:t,opts:n}),u)}),_api_registerPlural("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(e,t,n){e=e.aoData[t];return e&&e.anCells?e.anCells[n]:void 0},1)}),_api_register("cells().data()",function(){return this.iterator("cell",function(e,t,n){return _fnGetCellData(e,t,n)},1)}),_api_registerPlural("cells().cache()","cell().cache()",function(a){return a="search"===a?"_aFilterData":"_aSortData",this.iterator("cell",function(e,t,n){return e.aoData[t][a][n]},1)}),_api_registerPlural("cells().render()","cell().render()",function(a){return this.iterator("cell",function(e,t,n){return _fnGetCellData(e,t,n,a)},1)}),_api_registerPlural("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(e,t,n){return{row:t,column:n,columnVisible:_fnColumnIndexToVisible(e,n)}},1)}),_api_registerPlural("cells().invalidate()","cell().invalidate()",function(a){return this.iterator("cell",function(e,t,n){_fnInvalidate(e,t,a,n)})}),_api_register("cell()",function(e,t,n){return _selector_first(this.cells(e,t,n))}),_api_register("cell().data()",function(e){var t=this.context,n=this[0];return void 0===e?t.length&&n.length?_fnGetCellData(t[0],n[0].row,n[0].column):void 0:(_fnSetCellData(t[0],n[0].row,n[0].column,e),_fnInvalidate(t[0],n[0].row,"data",n[0].column),this)}),_api_register("order()",function(t,e){var n=this.context,a=Array.prototype.slice.call(arguments);return void 0===t?0!==n.length?n[0].aaSorting:void 0:("number"==typeof t?t=[[t,e]]:1<a.length&&(t=a),this.iterator("table",function(e){e.aaSorting=Array.isArray(t)?t.slice():t}))}),_api_register("order.listener()",function(t,n,a){return this.iterator("table",function(e){_fnSortAttachListener(e,t,{},n,a)})}),_api_register("order.fixed()",function(t){var e;return t?this.iterator("table",function(e){e.aaSortingFixed=$.extend(!0,{},t)}):(e=(e=this.context).length?e[0].aaSortingFixed:void 0,Array.isArray(e)?{pre:e}:e)}),_api_register(["columns().order()","column().order()"],function(n){var a=this;return n?this.iterator("table",function(e,t){e.aaSorting=a[t].map(function(e){return[e,n]})}):this.iterator("column",function(e,t){for(var n=_fnSortFlatten(e),a=0,r=n.length;a<r;a++)if(n[a].col===t)return n[a].dir;return null},1)}),_api_registerPlural("columns().orderable()","column().orderable()",function(n){return this.iterator("column",function(e,t){e=e.aoColumns[t];return n?e.asSorting:e.bSortable},1)}),_api_register("processing()",function(t){return this.iterator("table",function(e){_fnProcessingDisplay(e,t)})}),_api_register("search()",function(t,n,a,r){var e=this.context;return void 0===t?0!==e.length?e[0].oPreviousSearch.search:void 0:this.iterator("table",function(e){e.oFeatures.bFilter&&_fnFilterComplete(e,"object"==typeof n?$.extend(e.oPreviousSearch,n,{search:t}):$.extend(e.oPreviousSearch,{search:t,regex:null!==n&&n,smart:null===a||a,caseInsensitive:null===r||r}))})}),_api_register("search.fixed()",function(t,n){var e=this.iterator(!0,"table",function(e){e=e.searchFixed;return t?void 0===n?e[t]:(null===n?delete e[t]:e[t]=n,this):Object.keys(e)});return void 0!==t&&void 0===n?e[0]:e}),_api_registerPlural("columns().search()","column().search()",function(a,r,i,l){return this.iterator("column",function(e,t){var n=e.aoPreSearchCols;if(void 0===a)return n[t].search;e.oFeatures.bFilter&&("object"==typeof r?$.extend(n[t],r,{search:a}):$.extend(n[t],{search:a,regex:null!==r&&r,smart:null===i||i,caseInsensitive:null===l||l}),_fnFilterComplete(e,e.oPreviousSearch))})}),_api_register(["columns().search.fixed()","column().search.fixed()"],function(n,a){var e=this.iterator(!0,"column",function(e,t){e=e.aoColumns[t].searchFixed;return n?void 0===a?e[n]:(null===a?delete e[n]:e[n]=a,this):Object.keys(e)});return void 0!==n&&void 0===a?e[0]:e}),_api_register("state()",function(e,t){var n;return e?(n=$.extend(!0,{},e),this.iterator("table",function(e){!1!==t&&(n.time=+new Date+100),_fnImplementState(e,n,function(){})})):this.context.length?this.context[0].oSavedState:null}),_api_register("state.clear()",function(){return this.iterator("table",function(e){e.fnStateSaveCallback.call(e.oInstance,e,{})})}),_api_register("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),_api_register("state.save()",function(){return this.iterator("table",function(e){_fnSaveState(e)})}),DataTable.use=function(e,t){"lib"===t||e.fn?$=e:"win"==t||e.document?(window=e,document=e.document):"datetime"!==t&&"DateTime"!==e.type||(DataTable.DateTime=e)},DataTable.factory=function(e,t){var n=!1;return e&&e.document&&(window=e,document=e.document),t&&t.fn&&t.fn.jquery&&($=t,n=!0),n},DataTable.versionCheck=function(e,t){for(var n,a,r=(t||DataTable.version).split("."),i=e.split("."),l=0,o=i.length;l<o;l++)if((n=parseInt(r[l],10)||0)!==(a=parseInt(i[l],10)||0))return a<n;return!0},DataTable.isDataTable=function(e){var r=$(e).get(0),i=!1;return e instanceof DataTable.Api||($.each(DataTable.settings,function(e,t){var n=t.nScrollHead?$("table",t.nScrollHead)[0]:null,a=t.nScrollFoot?$("table",t.nScrollFoot)[0]:null;t.nTable!==r&&n!==r&&a!==r||(i=!0)}),i)},DataTable.tables=function(t){var e=!1,n=($.isPlainObject(t)&&(e=t.api,t=t.visible),DataTable.settings.filter(function(e){return!(t&&!$(e.nTable).is(":visible"))}).map(function(e){return e.nTable}));return e?new _Api(n):n},DataTable.camelToHungarian=_fnCamelToHungarian,_api_register("$()",function(e,t){t=this.rows(t).nodes(),t=$(t);return $([].concat(t.filter(e).toArray(),t.find(e).toArray()))}),$.each(["on","one","off"],function(e,n){_api_register(n+"()",function(){var e=Array.prototype.slice.call(arguments),t=(e[0]=e[0].split(/\s/).map(function(e){return e.match(/\.dt\b/)?e:e+".dt"}).join(" "),$(this.tables().nodes()));return t[n].apply(t,e),this})}),_api_register("clear()",function(){return this.iterator("table",function(e){_fnClearTable(e)})}),_api_register("settings()",function(){return new _Api(this.context,this.context)}),_api_register("init()",function(){var e=this.context;return e.length?e[0].oInit:null}),_api_register("data()",function(){return this.iterator("table",function(e){return _pluck(e.aoData,"_aData")}).flatten()}),_api_register("trigger()",function(t,n,a){return this.iterator("table",function(e){return _fnCallbackFire(e,null,t,n,a)}).flatten()}),_api_register("destroy()",function(c){return c=c||!1,this.iterator("table",function(e){var t=e.oClasses,n=e.nTable,a=e.nTBody,r=e.nTHead,i=e.nTFoot,l=$(n),a=$(a),o=$(e.nTableWrapper),s=e.aoData.map(function(e){return e?e.nTr:null}),u=t.order,i=(e.bDestroying=!0,_fnCallbackFire(e,"aoDestroyCallback","destroy",[e],!0),c||new _Api(e).columns().visible(!0),o.off(".DT").find(":not(tbody *)").off(".DT"),$(window).off(".DT-"+e.sInstance),n!=r.parentNode&&(l.children("thead").detach(),l.append(r)),i&&n!=i.parentNode&&(l.children("tfoot").detach(),l.append(i)),e.aaSorting=[],e.aaSortingFixed=[],_fnSortingClasses(e),$("th, td",r).removeClass(u.canAsc+" "+u.canDesc+" "+u.isAsc+" "+u.isDesc).css("width",""),a.children().detach(),a.append(s),e.nTableWrapper.parentNode),r=e.nTableWrapper.nextSibling,u=c?"remove":"detach",a=(l[u](),o[u](),!c&&i&&(i.insertBefore(n,r),l.css("width",e.sDestroyWidth).removeClass(t.table)),DataTable.settings.indexOf(e));-1!==a&&DataTable.settings.splice(a,1)})}),$.each(["column","row","cell"],function(e,s){_api_register(s+"s().every()",function(a){var r,i=this.selector.opts,l=this,o=0;return this.iterator("every",function(e,t,n){r=l[s](t,i),"cell"===s?a.call(r,r[0][0].row,r[0][0].column,n,o):a.call(r,t,n,o),o++})})}),_api_register("i18n()",function(e,t,n){var a=this.context[0],e=_fnGetObjectDataFn(e)(a.oLanguage);return"string"==typeof(e=$.isPlainObject(e=void 0===e?t:e)?void 0!==n&&void 0!==e[n]?e[n]:e._:e)?e.replace("%d",n):e}),DataTable.version="2.0.0-dev",DataTable.settings=[],DataTable.models={},DataTable.models.oSearch={caseInsensitive:!0,search:"",regex:!1,smart:!0,return:!1},DataTable.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,src:null,idx:-1,displayData:null},DataTable.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,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null,maxLenString:null,searchFixed:null},DataTable.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],bAutoWidth:!0,bDeferRender:!0,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:null,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnStateLoadCallback:function(e){try{return JSON.parse((-1===e.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+e.sInstance+"_"+location.pathname))}catch(e){return{}}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(e,t){try{(-1===e.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+e.sInstance+"_"+location.pathname,JSON.stringify(t))}catch(e){}},fnStateSaveParams:null,iStateDuration:7200,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{orderable:": Activate to sort",orderableReverse:": Activate to invert sorting",orderableRemove:": Activate to remove sorting",paginate:{first:"First",last:"Last",next:"Next",previous:"Previous"}},oPaginate:{sFirst:"«",sLast:"»",sNext:"›",sPrevious:"‹"},entries:{_:"entries",1:"entry"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ _ENTRIES-TOTAL_",sInfoEmpty:"Showing 0 to 0 of 0 _ENTRIES-TOTAL_",sInfoFiltered:"(filtered from _MAX_ total _ENTRIES-MAX_)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"_MENU_ _ENTRIES_ per page",sLoadingRecords:"Loading...",sProcessing:"",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:$.extend({},DataTable.models.oSearch),layout:{topStart:"pageLength",topEnd:"search",bottomStart:"info",bottomEnd:"paging"},sDom:null,searchDelay:null,sPaginationType:"full_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId",caption:null},_fnHungarianMap(DataTable.defaults),DataTable.defaults.column={aDataSort:null,iDataSort:-1,ariaTitle:"",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},_fnHungarianMap(DataTable.defaults.column),DataTable.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:!0,bLengthChange:!0,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:{bScrollbarLeft:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},searchFixed:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",pagingControls:0,iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,bAjaxDataGet:!0,jqXHR:null,json:void 0,oAjaxData:void 0,sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==_fnDataSource(this)?+this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==_fnDataSource(this)?+this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var e=this._iDisplayLength,t=this._iDisplayStart,n=t+e,a=this.aiDisplay.length,r=this.oFeatures,i=r.bPaginate;return r.bServerSide?!1===i||-1===e?t+a:Math.min(t+e,this._iRecordsDisplay):!i||a<n||-1===e?a:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null,caption:"",captionNode:null},DataTable.ext=_ext={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],features:{},search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{className:{},detect:[],render:{},search:{},order:{}},_unique:0,fnVersionCheck:DataTable.fnVersionCheck,iApiIndex:0,sVersion:DataTable.version},$.extend(_ext,{afnFiltering:_ext.search,aTypes:_ext.type.detect,ofnSearch:_ext.type.search,oSort:_ext.type.order,afnSortData:_ext.order,aoFeatures:_ext.feature,oApi:_ext.internal,oStdClasses:_ext.classes,oPagination:_ext.pager}),$.extend(DataTable.ext.classes,{container:"dt-container",empty:{row:"dt-empty"},info:{container:"dt-info"},length:{container:"dt-length",select:"dt-input"},order:{canAsc:"dt-orderable-asc",canDesc:"dt-orderable-desc",isAsc:"dt-ordering-asc",isDesc:"dt-ordering-desc",none:"dt-orderable-none",position:"sorting_"},processing:{container:"dt-processing"},scrolling:{body:"dt-scroll-body",container:"dataTables_scroll",footer:{self:"dt-scroll-foot",inner:"dt-scroll-footInner"},header:{self:"dt-scroll-head",inner:"dt-scroll-headInner"}},search:{container:"dt-search",input:"dt-input"},table:"dataTable",tbody:{cell:"",row:""},thead:{cell:"",row:""},tfoot:{cell:"",row:""},paging:{active:"current",button:"dt-paging-button",container:"dt-paging",disabled:"disabled"}}),DataTable.ext.pager),_filterString=($.extend(extPagination,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(){return["numbers"]},simple_numbers:function(){return["previous","numbers","next"]},full_numbers:function(){return["first","previous","numbers","next","last"]},first_last:function(){return["first","last"]},first_last_numbers:function(){return["first","numbers","last"]},_numbers:_pagingNumbers,numbers_length:7}),$.extend(!0,DataTable.ext.renderer,{pagingButton:{_:function(e,t,n,a,r){var e=e.oClasses.paging,i=[e.button];return a&&i.push(e.active),r&&i.push(e.disabled),{display:a="ellipsis"===t?$('<span class="ellipsis"></span>').html(n)[0]:$("<button>",{class:i.join(" "),role:"link",type:"button"}).html(n),clicker:a}}},pagingContainer:{_:function(e,t){return t}}}),function(t,n){return function(e){return _empty(e)||"string"!=typeof e||(e=e.replace(_re_new_lines," "),t&&(e=_stripHtml(e)),n&&(e=_normalize(e,!0))),e}});function __mldFnName(e){return e.replace(/[\W]/g,"_")}function __mld(e,t,n,a,r){return window.moment?e[t](r):window.luxon?e[n](r):a?e[a](r):e}var __mlWarning=!1;function __mldObj(e,t,n){var a;if(window.moment){if(!(a=window.moment.utc(e,t,n,!0)).isValid())return null}else if(window.luxon){if(!(a=t&&"string"==typeof e?window.luxon.DateTime.fromFormat(e,t):window.luxon.DateTime.fromISO(e)).isValid)return null;a.setLocale(n)}else t?(__mlWarning||alert("DataTables warning: Formatted date without Moment.js or Luxon - https://datatables.net/tn/17"),__mlWarning=!0):a=new Date(e);return a}function __mlHelper(s){return function(a,r,i,l){0===arguments.length?(i="en",a=r=null):1===arguments.length?(i="en",r=a,a=null):2===arguments.length&&(i=r,r=a,a=null);var o="datetime"+(r?"-"+__mldFnName(r):"");return DataTable.ext.type.order[o]||DataTable.type(o,{detect:function(e){return e===o&&o},order:{pre:function(e){return e.valueOf()}},className:"dt-right"}),function(e,t){var n;return null==e&&(e="--now"===l?(n=new Date,new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds()))):""),"type"===t?o:""===e?"sort"!==t?"":__mldObj("0000-01-01 00:00:00",null,i):!(null===r||a!==r||"sort"===t||"type"===t||e instanceof Date)||null===(n=__mldObj(e,a,i))?e:"sort"===t?n:(e=null===r?__mld(n,"toDate","toJSDate","")[s]():__mld(n,"format","toFormat","toISOString",r),"display"===t?_escapeHtml(e):e)}}}var __thousands=",",__decimal=".";if(void 0!==window.Intl)try{for(var num=(new Intl.NumberFormat).formatToParts(100000.1),i=0;i<num.length;i++)"group"===num[i].type?__thousands=num[i].value:"decimal"===num[i].type&&(__decimal=num[i].value)}catch(e){}DataTable.datetime=function(n,a){var r="datetime-detect-"+__mldFnName(n);a=a||"en",DataTable.ext.type.order[r]||DataTable.type(r,{detect:function(e){var t=__mldObj(e,n,a);return!(""!==e&&!t)&&r},order:{pre:function(e){return __mldObj(e,n,a)||0}},className:"dt-right"})},DataTable.render={date:__mlHelper("toLocaleDateString"),datetime:__mlHelper("toLocaleString"),time:__mlHelper("toLocaleTimeString"),number:function(r,i,l,o,s){return null==r&&(r=__thousands),null==i&&(i=__decimal),{display:function(e){if("number"!=typeof e&&"string"!=typeof e)return e;if(""===e||null===e)return e;var t=e<0?"-":"",n=parseFloat(e),a=Math.abs(n);if(1e11<=a||a<1e-4&&0!==a)return(a=n.toExponential(l).split(/e\+?/))[0]+" x 10<sup>"+a[1]+"</sup>";if(isNaN(n))return _escapeHtml(e);n=n.toFixed(l),e=Math.abs(n);a=parseInt(e,10),n=l?i+(e-a).toFixed(l).substring(2):"";return(t=0===a&&0===parseFloat(n)?"":t)+(o||"")+a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,r)+n+(s||"")}}},text:function(){return{display:_escapeHtml,filter:_escapeHtml}}};var _extTypes=DataTable.ext.type,__numericReplace=(DataTable.type=function(a,e,t){if(!e)return{className:_extTypes.className[a],detect:_extTypes.detect.find(function(e){return e.name===a}),order:{pre:_extTypes.order[a+"-pre"],asc:_extTypes.order[a+"-asc"],desc:_extTypes.order[a+"-desc"]},render:_extTypes.render[a],search:_extTypes.search[a]};function n(e,t){_extTypes[e][a]=t}function r(n){function e(e,t){return!0===(e=n(e,t))?a:e}Object.defineProperty(e,"name",{value:a});var t=_extTypes.detect.findIndex(function(e){return e.name===a});-1===t?_extTypes.detect.unshift(e):_extTypes.detect.splice(t,1,e)}function i(e){_extTypes.order[a+"-pre"]=e.pre,_extTypes.order[a+"-asc"]=e.asc,_extTypes.order[a+"-desc"]=e.desc}t||(t=e,e=null),"className"===e?n("className",t):"detect"===e?r(t):"order"===e?i(t):"render"===e?n("render",t):"search"===e?n("search",t):e||(t.className&&n("className",t.className),void 0!==t.detect&&r(t.detect),t.order&&i(t.order),void 0!==t.render&&n("render",t.render),void 0!==t.search&&n("search",t.search))},DataTable.types=function(){return _extTypes.detect.map(function(e){return e.name})},DataTable.type("string",{detect:function(){return"string"},order:{pre:function(e){return _empty(e)?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""}},search:_filterString(!1,!0)}),DataTable.type("html",{detect:function(e){return _empty(e)||"string"==typeof e&&-1!==e.indexOf("<")?"html":null},order:{pre:function(e){return _empty(e)?"":e.replace?_stripHtml(e).trim().toLowerCase():e+""}},search:_filterString(!0,!0)}),DataTable.type("date",{className:"dt-type-date",detect:function(e){var t;return(!e||e instanceof Date||_re_date.test(e))&&(null!==(t=Date.parse(e))&&!isNaN(t)||_empty(e))?"date":null},order:{pre:function(e){e=Date.parse(e);return isNaN(e)?-1/0:e}}}),DataTable.type("html-num-fmt",{className:"dt-type-numeric",detect:function(e,t){t=t.oLanguage.sDecimal;return _htmlNumeric(e,t,!0)?"html-num-fmt":null},order:{pre:function(e,t){t=t.oLanguage.sDecimal;return __numericReplace(e,t,_re_html,_re_formatted_numeric)}},search:_filterString(!0,!0)}),DataTable.type("html-num",{className:"dt-type-numeric",detect:function(e,t){t=t.oLanguage.sDecimal;return _htmlNumeric(e,t)?"html-num":null},order:{pre:function(e,t){t=t.oLanguage.sDecimal;return __numericReplace(e,t,_re_html)}},search:_filterString(!0,!0)}),DataTable.type("num-fmt",{className:"dt-type-numeric",detect:function(e,t){t=t.oLanguage.sDecimal;return _isNumber(e,t,!0)?"num-fmt":null},order:{pre:function(e,t){t=t.oLanguage.sDecimal;return __numericReplace(e,t,_re_formatted_numeric)}}}),DataTable.type("num",{className:"dt-type-numeric",detect:function(e,t){t=t.oLanguage.sDecimal;return _isNumber(e,t)?"num":null},order:{pre:function(e,t){t=t.oLanguage.sDecimal;return __numericReplace(e,t)}}}),function(e,t,n,a){var r;return 0===e||e&&"-"!==e?"number"==(r=typeof e)||"bigint"==r?e:+(e=(e=t?_numToDecimal(e,t):e).replace&&(n&&(e=e.replace(n,"")),a)?e.replace(a,""):e):-1/0});function _fnUpdateInfo(e,t,n){var a=e._iDisplayStart+1,r=e.fnDisplayEnd(),i=e.fnRecordsTotal(),l=e.fnRecordsDisplay(),o=l?t.text:t.empty;l!==i&&(o+=" "+t.search),o=_fnMacros(e,o+=t.postfix),t.callback&&(o=t.callback.call(e.oInstance,e,a,r,i,l,o)),n.html(o),_fnCallbackFire(e,null,"info",[e,n[0],o])}$.extend(!0,DataTable.ext.renderer,{footer:{_:function(e,t,n){t.addClass(n.tfoot.cell)}},header:{_:function(d,f,_){f.addClass(_.thead.cell),d.oFeatures.bSort||f.addClass(_.order.none);var e=d.bSortCellsTop,t=f.closest("thead").find("tr"),n=f.parent().index();"disable"===f.attr("data-dt-order")||"disable"===f.parent().attr("data-dt-order")||!0===e&&0!==n||!1===e&&n!==t.length-1||$(d.nTable).on("order.dt.DT",function(e,t,n){var a,r,i,l,o,s,u,c;d===t&&(c=_.order,u=t.api.columns(f),a=d.aoColumns[u.flatten()[0]],r=u.orderable().includes(!0),i="",l=u.indexes(),s=u.orderable(!0).flatten(),o=n.map(function(e){return e.col}).join(","),f.attr("tabindex",0).removeClass(c.isAsc+" "+c.isDesc).toggleClass(c.none,!r).toggleClass(c.canAsc,r&&s.includes("asc")).toggleClass(c.canDesc,r&&s.includes("desc")),-1!==(s=o.indexOf(l.toArray().join(",")))&&(u=u.order(),f.addClass(u.includes("asc")?c.isAsc:""+u.includes("desc")?c.isDesc:"")),0===s&&o.length===l.count()?(u=n[0],c=a.asSorting,f.attr("aria-sort","asc"===u.dir?"ascending":"descending"),i=c[u.index+1]?"Reverse":"Remove"):f.removeAttr("aria-sort"),f.attr("aria-label",r?a.ariaTitle+t.api.i18n("oAria.orderable"+i):a.ariaTitle),r)&&f.find(".dt-column-title").attr("role","button")})}},layout:{_:function(e,t,n){var a=$("<div/>").addClass("dt-layout-row").appendTo(t);$.each(n,function(e,t){e=t.table?"":"dt-"+e+" ";$("<div/>").attr({id:t.id||null,class:"dt-layout-cell "+e+(t.className||"")}).append(t.contents).appendTo(a)})}}}),$.extend(DataTable.ext.internal,{_fnGetCellData:_fnGetCellData,api:function(){return new _Api(this)}}),DataTable.feature={},DataTable.feature.register=function(e,t,n){DataTable.ext.features[e]=t,n&&_ext.feature.push({cFeature:n,fnInit:t})},DataTable.feature.register("info",function(e,t){var n,a,r;return e.oFeatures.bInfo?(n=e.oLanguage,a=e.sTableId,r=$("<div/>",{class:e.oClasses.info.container}),t=$.extend({callback:n.fnInfoCallback,empty:n.sInfoEmpty,postfix:n.sInfoPostFix,search:n.sInfoFiltered,text:n.sInfo},t),e.aoDrawCallback.push(function(e){_fnUpdateInfo(e,t,r)}),$("#"+a+"_info",e.nWrapper).length||(r.attr({"aria-live":"polite",id:a+"_info",role:"status"}),$(e.nTable).attr("aria-describedby",a+"_info")),r):null},"i");var __searchCounter=0;function _pagingDraw(t,e,n){if(t._bInitComplete){for(var a=DataTable.ext.pager[n.type],r=t.oLanguage.oAria.paginate||{},i=t._iDisplayStart,l=t._iDisplayLength,o=t.fnRecordsDisplay(),s=-1===l,u=s?0:Math.ceil(i/l),c=s?1:Math.ceil(o/l),d=a().map(function(e){return"numbers"===e?_pagingNumbers(u,c,n.numbers):e}).flat(),f=[],_=0;_<d.length;_++){var p=d[_],h=_pagingButtonInfo(t,p,u,c),g=_fnRenderer(t,"pagingButton")(t,p,h.display,h.active,h.disabled);$(g.clicker).attr({"aria-controls":t.sTableId,"aria-disabled":h.disabled?"true":null,"aria-current":h.active?"page":null,"aria-label":r[p],"data-dt-idx":p,tabIndex:h.disabled?-1:t.iTabIndex}),"number"!=typeof p&&$(g.clicker).addClass(p),_fnBindAction(g.clicker,{action:p},function(e){e.preventDefault(),_fnPageChange(t,e.data.action,!0)}),f.push(g.display)}i=_fnRenderer(t,"pagingContainer")(t,f),s=e.find(document.activeElement).data("dt-idx");e.empty().append(i),void 0!==s&&e.find("[data-dt-idx="+s+"]").trigger("focus"),f.length&&1<n.numbers&&$(e).outerHeight()>=2*$(f[0]).outerHeight()-10&&_pagingDraw(t,e,$.extend({},n,{numbers:n.numbers-2}))}}function _pagingButtonInfo(e,t,n,a){var r=e.oLanguage.oPaginate,i={display:"",active:!1,disabled:!1};switch(t){case"ellipsis":i.display="&#x2026;",i.disabled=!0;break;case"first":i.display=r.sFirst,0===n&&(i.disabled=!0);break;case"previous":i.display=r.sPrevious,0===n&&(i.disabled=!0);break;case"next":i.display=r.sNext,0!==a&&n!==a-1||(i.disabled=!0);break;case"last":i.display=r.sLast,0!==a&&n!==a-1||(i.disabled=!0);break;default:"number"==typeof t&&(i.display=e.fnFormatNumber(t+1),n===t)&&(i.active=!0)}return i}function _pagingNumbers(e,t,n){var a=[],r=Math.floor(n/2);return t<=n?a=_range(0,t):1===n?a=[e]:3===n?e<=1?a=[0,1,"ellipsis"]:t-2<=e?(a=_range(t-2,t)).unshift("ellipsis"):a=["ellipsis",e,"ellipsis"]:e<=r?(a=_range(0,n-2)).push("ellipsis",t-1):(t-1-r<=e?a=_range(t-(n-2),t):((a=_range(e-r+2,e+r-1)).push("ellipsis",t-1),a)).unshift(0,"ellipsis"),a}DataTable.feature.register("search",function(n,e){var t,a,r,i,l,o,s,u,c,d;return n.oFeatures.bFilter?(t=n.oClasses.search,a=n.sTableId,c=n.oLanguage,r=n.oPreviousSearch,i='<input type="search" class="'+t.input+'"/>',-1===(e=$.extend({placeholder:c.sSearchPlaceholder,text:c.sSearch},e)).text.indexOf("_INPUT_")&&(e.text+="_INPUT_"),e.text=_fnMacros(n,e.text),c=e.text.match(/_INPUT_$/),s=e.text.match(/^_INPUT_/),l=e.text.replace(/_INPUT_/,""),o="<label>"+e.text+"</label>",s?o="_INPUT_<label>"+l+"</label>":c&&(o="<label>"+l+"</label>_INPUT_"),(s=$("<div>").addClass(t.container).append(o.replace(/_INPUT_/,i))).find("label").attr("for","dt-search-"+__searchCounter),s.find("input").attr("id","dt-search-"+__searchCounter),__searchCounter++,u=function(e){var t=this.value;r.return&&"Enter"!==e.key||t!=r.search&&(r.search=t,_fnFilterComplete(n,r),n._iDisplayStart=0,_fnDraw(n))},c=null!==n.searchDelay?n.searchDelay:0,d=$("input",s).val(r.search).attr("placeholder",e.placeholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",c?_fnThrottle(u,c):u).on("mouseup.DT",function(e){setTimeout(function(){u.call(d[0],e)},10)}).on("keypress.DT",function(e){if(13==e.keyCode)return!1}).attr("aria-controls",a),$(n.nTable).on("search.dt.DT",function(e,t){n===t&&d[0]!==document.activeElement&&d.val("function"!=typeof r.search?r.search:"")}),s):null},"f"),DataTable.feature.register("paging",function(e,t){if(!e.oFeatures.bPaginate)return null;t=$.extend({numbers:DataTable.ext.pager.numbers_length,type:e.sPaginationType},t);function n(){_pagingDraw(e,a,t)}var a=$("<div/>").addClass(e.oClasses.paging.container+" paging_"+t.type);return e.aoDrawCallback.push(n),$(e.nTable).on("column-sizing.dt.DT",n),a},"p");var __lengthCounter=0;DataTable.feature.register("pageLength",function(a,e){var t=a.oFeatures;if(!t.bPaginate||!t.bLengthChange)return null;e=$.extend({menu:a.aLengthMenu,text:a.oLanguage.sLengthMenu},e);var t=a.oClasses.length,n=a.sTableId,r=e.menu,i=[],l=[];if(Array.isArray(r[0]))i=r[0],l=r[1];else for(p=0;p<r.length;p++)$.isPlainObject(r[p])?(i.push(r[p].value),l.push(r[p].label)):(i.push(r[p]),l.push(r[p]));function o(t){f.forEach(function(e){e.el.textContent=_fnMacros(a,e.text,t)})}for(var s=e.text.match(/_MENU_$/),u=e.text.match(/^_MENU_/),c=e.text.replace(/_MENU_/,""),e="<label>"+e.text+"</label>",d=(u?e="_MENU_<label>"+c+"</label>":s&&(e="<label>"+c+"</label>_MENU_"),$("<div/>").addClass(t.container).append(e.replace("_MENU_","<span></span>"))),f=[],_=(d.find("label")[0].childNodes.forEach(function(e){e.nodeType===Node.TEXT_NODE&&f.push({el:e,text:e.textContent})}),$("<select/>",{name:n+"_length","aria-controls":n,class:t.select})),p=0;p<i.length;p++)_[0][p]=new Option("number"==typeof l[p]?a.fnFormatNumber(l[p]):l[p],i[p]);return d.find("label").attr("for","dt-length-"+__lengthCounter),_.attr("id","dt-length-"+__lengthCounter),__lengthCounter++,d.find("span").replaceWith(_),$("select",d).val(a._iDisplayLength).on("change.DT",function(){_fnLengthChange(a,$(this).val()),_fnDraw(a)}),$(a.nTable).on("length.dt.DT",function(e,t,n){a===t&&($("select",d).val(n),o(n))}),o(a._iDisplayLength),d},"l"),(($.fn.dataTable=DataTable).$=$).fn.dataTableSettings=DataTable.settings,$.fn.dataTableExt=DataTable.ext,$.fn.DataTable=function(e){return $(this).dataTable(e).api()},$.each(DataTable,function(e,t){$.fn.DataTable[e]=t});export default DataTable;