From 34a0b66bc2d48223748ed1cf5bc1b305c396bd74 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 26 Jan 2022 19:05:10 +0100 Subject: Adding upstream version 1.33.0. Signed-off-by: Daniel Baumann --- web/gui/dashboard/static/js/6.b58a11c2.chunk.js | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 web/gui/dashboard/static/js/6.b58a11c2.chunk.js (limited to 'web/gui/dashboard/static/js/6.b58a11c2.chunk.js') diff --git a/web/gui/dashboard/static/js/6.b58a11c2.chunk.js b/web/gui/dashboard/static/js/6.b58a11c2.chunk.js new file mode 100644 index 000000000..e12b7d9b3 --- /dev/null +++ b/web/gui/dashboard/static/js/6.b58a11c2.chunk.js @@ -0,0 +1,2 @@ +(this["webpackJsonp@netdata/dashboard"]=this["webpackJsonp@netdata/dashboard"]||[]).push([[6],{512:function(t,i){!function(t){"use strict";var i=null,e=function(t){var i=arguments,e=!0,o=1;return t=t.replace(/%s/g,(function(){var t=i[o++];return"undefined"===typeof t?(e=!1,""):t})),e?t:""},o=function(i,e,o,s){var n="";return t.each(i,(function(t,i){return i[e]!==s||(n=i[o],!1)})),n},s=function(i,e){var o=-1;return t.each(i,(function(t,i){return i.field!==e||(o=t,!1)})),o},n=function(){if(null===i){var e,o,s=t("

").addClass("fixed-table-scroll-inner"),n=t("

").addClass("fixed-table-scroll-outer");n.append(s),t("body").append(n),e=s[0].offsetWidth,n.css("overflow","scroll"),e===(o=s[0].offsetWidth)&&(o=n[0].clientWidth),n.remove(),i=e-o}return i},a=function(i,o,s,n){var a=o;if("string"===typeof o){var r=o.split(".");r.length>1?(a=window,t.each(r,(function(t,i){a=a[i]}))):a=window[o]}return"object"===typeof a?a:"function"===typeof a?a.apply(i,s||[]):!a&&"string"===typeof o&&e.apply(this,[o].concat(s))?e.apply(this,[o].concat(s)):n},r=function(i,e,o){var s=Object.getOwnPropertyNames(i),n=Object.getOwnPropertyNames(e),a="";if(o&&s.length!==n.length)return!1;for(var r=0;r-1&&i[a]!==e[a])return!1;return!0},h=function(t){return"string"===typeof t?t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`"):t},l=function(t){for(var i in t){var e=i.split(/(?=[A-Z])/).join("-").toLowerCase();e!==i&&(t[e]=t[i],delete t[i])}return t},p=function(t,i,e){var o=t;if("string"!==typeof i||t.hasOwnProperty(i))return e?h(t[i]):t[i];var s=i.split(".");for(var n in s)s.hasOwnProperty(n)&&(o=o&&o[s[n]]);return e?h(o):o},c=function(){return!!(navigator.userAgent.indexOf("MSIE ")>0||navigator.userAgent.match(/Trident.*rv\:11\./))},d=function(i,e){this.options=e,this.$el=t(i),this.$el_=this.$el.clone(),this.timeoutId_=0,this.timeoutFooter_=0,this.init()};d.DEFAULTS={classes:"table table-hover",sortClass:void 0,locale:void 0,height:void 0,undefinedText:"-",sortName:void 0,sortOrder:"asc",sortStable:!1,striped:!1,columns:[[]],data:[],totalField:"total",dataField:"rows",method:"get",url:void 0,ajax:void 0,cache:!0,contentType:"application/json",dataType:"json",ajaxOptions:{},queryParams:function(t){return t},queryParamsType:"limit",responseHandler:function(t){return t},pagination:!1,onlyInfoPagination:!1,paginationLoop:!0,sidePagination:"client",totalRows:0,pageNumber:1,pageSize:10,pageList:[10,25,50,100],paginationHAlign:"right",paginationVAlign:"bottom",paginationDetailHAlign:"left",paginationPreText:"‹",paginationNextText:"›",search:!1,searchOnEnterKey:!1,strictSearch:!1,searchAlign:"right",selectItemName:"btSelectItem",showHeader:!0,showFooter:!1,showColumns:!1,showPaginationSwitch:!1,showRefresh:!1,showToggle:!1,buttonsAlign:"right",smartDisplay:!0,escape:!1,minimumCountColumns:1,idField:void 0,uniqueId:void 0,cardView:!1,detailView:!1,detailFormatter:function(t,i){return""},trimOnSearch:!0,clickToSelect:!1,singleSelect:!1,toolbar:void 0,toolbarAlign:"left",checkboxHeader:!0,sortable:!0,silentSort:!0,maintainSelected:!1,searchTimeOut:500,searchText:"",iconSize:void 0,buttonsClass:"default",iconsPrefix:"glyphicon",icons:{paginationSwitchDown:"glyphicon-collapse-down icon-chevron-down",paginationSwitchUp:"glyphicon-collapse-up icon-chevron-up",refresh:"glyphicon-refresh icon-refresh",toggle:"glyphicon-list-alt icon-list-alt",columns:"glyphicon-th icon-th",detailOpen:"glyphicon-plus icon-plus",detailClose:"glyphicon-minus icon-minus"},customSearch:t.noop,customSort:t.noop,rowStyle:function(t,i){return{}},rowAttributes:function(t,i){return{}},footerStyle:function(t,i){return{}},onAll:function(t,i){return!1},onClickCell:function(t,i,e,o){return!1},onDblClickCell:function(t,i,e,o){return!1},onClickRow:function(t,i){return!1},onDblClickRow:function(t,i){return!1},onSort:function(t,i){return!1},onCheck:function(t){return!1},onUncheck:function(t){return!1},onCheckAll:function(t){return!1},onUncheckAll:function(t){return!1},onCheckSome:function(t){return!1},onUncheckSome:function(t){return!1},onLoadSuccess:function(t){return!1},onLoadError:function(t){return!1},onColumnSwitch:function(t,i){return!1},onPageChange:function(t,i){return!1},onSearch:function(t){return!1},onToggle:function(t){return!1},onPreBody:function(t){return!1},onPostBody:function(){return!1},onPostHeader:function(){return!1},onExpandRow:function(t,i,e){return!1},onCollapseRow:function(t,i){return!1},onRefreshOptions:function(t){return!1},onRefresh:function(t){return!1},onResetView:function(){return!1}},(d.LOCALES={})["en-US"]=d.LOCALES.en={formatLoadingMessage:function(){return"Loading, please wait..."},formatRecordsPerPage:function(t){return e("%s rows per page",t)},formatShowingRows:function(t,i,o){return e("Showing %s to %s of %s rows",t,i,o)},formatDetailPagination:function(t){return e("Showing %s rows",t)},formatSearch:function(){return"Search"},formatNoMatches:function(){return"No matching records found"},formatPaginationSwitch:function(){return"Hide/Show pagination"},formatRefresh:function(){return"Refresh"},formatToggle:function(){return"Toggle"},formatColumns:function(){return"Columns"},formatAllRows:function(){return"All"}},t.extend(d.DEFAULTS,d.LOCALES["en-US"]),d.COLUMN_DEFAULTS={radio:!1,checkbox:!1,checkboxEnabled:!0,field:void 0,title:void 0,titleTooltip:void 0,class:void 0,align:void 0,halign:void 0,falign:void 0,valign:void 0,width:void 0,sortable:!1,order:"asc",visible:!0,switchable:!0,clickToSelect:!0,formatter:void 0,footerFormatter:void 0,events:void 0,sorter:void 0,sortName:void 0,cellStyle:void 0,searchable:!0,searchFormatter:!0,cardVisible:!0,escape:!1},d.EVENTS={"all.bs.table":"onAll","click-cell.bs.table":"onClickCell","dbl-click-cell.bs.table":"onDblClickCell","click-row.bs.table":"onClickRow","dbl-click-row.bs.table":"onDblClickRow","sort.bs.table":"onSort","check.bs.table":"onCheck","uncheck.bs.table":"onUncheck","check-all.bs.table":"onCheckAll","uncheck-all.bs.table":"onUncheckAll","check-some.bs.table":"onCheckSome","uncheck-some.bs.table":"onUncheckSome","load-success.bs.table":"onLoadSuccess","load-error.bs.table":"onLoadError","column-switch.bs.table":"onColumnSwitch","page-change.bs.table":"onPageChange","search.bs.table":"onSearch","toggle.bs.table":"onToggle","pre-body.bs.table":"onPreBody","post-body.bs.table":"onPostBody","post-header.bs.table":"onPostHeader","expand-row.bs.table":"onExpandRow","collapse-row.bs.table":"onCollapseRow","refresh-options.bs.table":"onRefreshOptions","reset-view.bs.table":"onResetView","refresh.bs.table":"onRefresh"},d.prototype.init=function(){this.initLocale(),this.initContainer(),this.initTable(),this.initHeader(),this.initData(),this.initHiddenRows(),this.initFooter(),this.initToolbar(),this.initPagination(),this.initBody(),this.initSearchText(),this.initServer()},d.prototype.initLocale=function(){if(this.options.locale){var i=this.options.locale.split(/-|_/);i[0].toLowerCase(),i[1]&&i[1].toUpperCase(),t.fn.bootstrapTable.locales[this.options.locale]?t.extend(this.options,t.fn.bootstrapTable.locales[this.options.locale]):t.fn.bootstrapTable.locales[i.join("-")]?t.extend(this.options,t.fn.bootstrapTable.locales[i.join("-")]):t.fn.bootstrapTable.locales[i[0]]&&t.extend(this.options,t.fn.bootstrapTable.locales[i[0]])}},d.prototype.initContainer=function(){this.$container=t(['
','
',"top"===this.options.paginationVAlign||"both"===this.options.paginationVAlign?'
':"",'
','
','
','
',this.options.formatLoadingMessage(),"
","
",'',"bottom"===this.options.paginationVAlign||"both"===this.options.paginationVAlign?'
':"","
","
"].join("")),this.$container.insertAfter(this.$el),this.$tableContainer=this.$container.find(".fixed-table-container"),this.$tableHeader=this.$container.find(".fixed-table-header"),this.$tableBody=this.$container.find(".fixed-table-body"),this.$tableLoading=this.$container.find(".fixed-table-loading"),this.$tableFooter=this.$container.find(".fixed-table-footer"),this.$toolbar=this.$container.find(".fixed-table-toolbar"),this.$pagination=this.$container.find(".fixed-table-pagination"),this.$tableBody.append(this.$el),this.$container.after('
'),this.$el.addClass(this.options.classes),this.options.striped&&this.$el.addClass("table-striped"),-1!==t.inArray("table-no-bordered",this.options.classes.split(" "))&&this.$tableContainer.addClass("table-no-bordered")},d.prototype.initTable=function(){var i=this,e=[],o=[];if(this.$header=this.$el.find(">thead"),this.$header.length||(this.$header=t("").appendTo(this.$el)),this.$header.find("tr").each((function(){var i=[];t(this).find("th").each((function(){"undefined"!==typeof t(this).data("field")&&t(this).data("field",t(this).data("field")+""),i.push(t.extend({},{title:t(this).html(),class:t(this).attr("class"),titleTooltip:t(this).attr("title"),rowspan:t(this).attr("rowspan")?+t(this).attr("rowspan"):void 0,colspan:t(this).attr("colspan")?+t(this).attr("colspan"):void 0},t(this).data()))})),e.push(i)})),t.isArray(this.options.columns[0])||(this.options.columns=[this.options.columns]),this.options.columns=t.extend(!0,[],e,this.options.columns),this.columns=[],function(i){var e,o,s,n=0,a=[];for(e=0;etbody>tr").each((function(e){var n={};n._id=t(this).attr("id"),n._class=t(this).attr("class"),n._data=l(t(this).data()),t(this).find(">td").each((function(o){for(var a,r,h=t(this),p=+h.attr("colspan")||1,c=+h.attr("rowspan")||1;s[e]&&s[e][o];o++);for(a=o;a"),0===n&&!i.options.cardView&&i.options.detailView&&s.push(e('
',i.options.columns.length)),t.each(a,(function(t,n){var a,r,l="",p="",c=e(' class="%s"',n.class),d=(i.options.sortOrder||n.order,"px"),u=n.width;if(void 0===n.width||i.options.cardView||"string"===typeof n.width&&-1!==n.width.indexOf("%")&&(d="%"),n.width&&"string"===typeof n.width&&(u=n.width.replace("%","").replace("px","")),a=e("text-align: %s; ",n.halign?n.halign:n.align),r=e("text-align: %s; ",n.align),p=e("vertical-align: %s; ",n.valign),p+=e("width: %s; ",!n.checkbox&&!n.radio||u?u?u+d:void 0:"36px"),"undefined"!==typeof n.fieldIndex){if(i.header.fields[n.fieldIndex]=n.field,i.header.styles[n.fieldIndex]=r+p,i.header.classes[n.fieldIndex]=c,i.header.formatters[n.fieldIndex]=n.formatter,i.header.events[n.fieldIndex]=n.events,i.header.sorters[n.fieldIndex]=n.sorter,i.header.sortNames[n.fieldIndex]=n.sortName,i.header.cellStyles[n.fieldIndex]=n.cellStyle,i.header.searchables[n.fieldIndex]=n.searchable,!n.visible)return;if(i.options.cardView&&!n.cardVisible)return;o[n.field]=n}s.push(""),s.push(e('
',i.options.sortable&&n.sortable?"sortable both":"")),l=i.options.escape?h(n.title):n.title,n.checkbox&&(!i.options.singleSelect&&i.options.checkboxHeader&&(l=''),i.header.stateField=n.field),n.radio&&(l="",i.header.stateField=n.field,i.options.singleSelect=!0),s.push(l),s.push("
"),s.push('
'),s.push("
"),s.push("")})),s.push("")})),this.$header.html(s.join("")),this.$header.find("th[data-field]").each((function(i){t(this).data(o[t(this).data("field")])})),this.$container.off("click",".th-inner").on("click",".th-inner",(function(e){var o=t(this);if(i.options.detailView&&o.closest(".bootstrap-table")[0]!==i.$container[0])return!1;i.options.sortable&&o.parent().data().sortable&&i.onSort(e)})),this.$header.children().children().off("keypress").on("keypress",(function(e){i.options.sortable&&t(this).data().sortable&&(13==(e.keyCode||e.which)&&i.onSort(e))})),t(window).off("resize.bootstrap-table"),!this.options.showHeader||this.options.cardView?(this.$header.hide(),this.$tableHeader.hide(),this.$tableLoading.css("top",0)):(this.$header.show(),this.$tableHeader.show(),this.$tableLoading.css("top",this.$header.outerHeight()+1),this.getCaret(),t(window).on("resize.bootstrap-table",t.proxy(this.resetWidth,this))),this.$selectAll=this.$header.find('[name="btSelectAll"]'),this.$selectAll.off("click").on("click",(function(){var e=t(this).prop("checked");i[e?"checkAll":"uncheckAll"](),i.updateSelected()}))},d.prototype.initFooter=function(){!this.options.showFooter||this.options.cardView?this.$tableFooter.hide():this.$tableFooter.show()},d.prototype.initData=function(t,i){this.data="append"===i?this.data.concat(t):"prepend"===i?[].concat(t).concat(this.data):t||this.options.data,this.options.data="append"===i?this.options.data.concat(t):"prepend"===i?[].concat(t).concat(this.options.data):this.data,"server"!==this.options.sidePagination&&this.initSort()},d.prototype.initSort=function(){var i=this,o=this.options.sortName,s="desc"===this.options.sortOrder?-1:1,n=t.inArray(this.options.sortName,this.header.fields),r=0;this.options.customSort===t.noop?-1!==n&&(this.options.sortStable&&t.each(this.data,(function(t,i){i.hasOwnProperty("_position")||(i._position=t)})),this.data.sort((function(e,r){i.header.sortNames[n]&&(o=i.header.sortNames[n]);var h=p(e,o,i.options.escape),l=p(r,o,i.options.escape),c=a(i.header,i.header.sorters[n],[h,l]);return void 0!==c?s*c:(void 0!==h&&null!==h||(h=""),void 0!==l&&null!==l||(l=""),i.options.sortStable&&h===l&&(h=e._position,l=r._position),t.isNumeric(h)&&t.isNumeric(l)?(h=parseFloat(h))<(l=parseFloat(l))?-1*s:s:h===l?0:("string"!==typeof h&&(h=h.toString()),-1===h.localeCompare(l)?-1*s:s))})),void 0!==this.options.sortClass&&(clearTimeout(r),r=setTimeout((function(){i.$el.removeClass(i.options.sortClass);var t=i.$header.find(e('[data-field="%s"]',i.options.sortName).index()+1);i.$el.find(e("tr td:nth-child(%s)",t)).addClass(i.options.sortClass)}),250))):this.options.customSort.apply(this,[this.options.sortName,this.options.sortOrder])},d.prototype.onSort=function(i){var e="keypress"===i.type?t(i.currentTarget):t(i.currentTarget).parent(),o=this.$header.find("th").eq(e.index());this.$header.add(this.$header_).find("span.order").remove(),this.options.sortName===e.data("field")?this.options.sortOrder="asc"===this.options.sortOrder?"desc":"asc":(this.options.sortName=e.data("field"),this.options.sortOrder="asc"===e.data("order")?"desc":"asc"),this.trigger("sort",this.options.sortName,this.options.sortOrder),e.add(o).data("order",this.options.sortOrder),this.getCaret(),"server"!==this.options.sidePagination?(this.initSort(),this.initBody()):this.initServer(this.options.silentSort)},d.prototype.initToolbar=function(){var i,o,s=this,n=[],r=0,h=0;this.$toolbar.find(".bs-bars").children().length&&t("body").append(t(this.options.toolbar)),this.$toolbar.html(""),"string"!==typeof this.options.toolbar&&"object"!==typeof this.options.toolbar||t(e('
',this.options.toolbarAlign)).appendTo(this.$toolbar).append(t(this.options.toolbar)),n=[e('
',this.options.buttonsAlign,this.options.buttonsAlign)],"string"===typeof this.options.icons&&(this.options.icons=a(null,this.options.icons)),this.options.showPaginationSwitch&&n.push(e('"),this.options.showRefresh&&n.push(e('"),this.options.showToggle&&n.push(e('"),this.options.showColumns&&(n.push(e('
',this.options.formatColumns()),'",'","
")),n.push("
"),(this.showToolbar||n.length>2)&&this.$toolbar.append(n.join("")),this.options.showPaginationSwitch&&this.$toolbar.find('button[name="paginationSwitch"]').off("click").on("click",t.proxy(this.togglePagination,this)),this.options.showRefresh&&this.$toolbar.find('button[name="refresh"]').off("click").on("click",t.proxy(this.refresh,this)),this.options.showToggle&&this.$toolbar.find('button[name="toggle"]').off("click").on("click",(function(){s.toggleView()})),this.options.showColumns&&(i=this.$toolbar.find(".keep-open"),h<=this.options.minimumCountColumns&&i.find("input").prop("disabled",!0),i.find("li").off("click").on("click",(function(t){t.stopImmediatePropagation()})),i.find("input").off("click").on("click",(function(){var i=t(this);s.toggleColumn(t(this).val(),i.prop("checked"),!1),s.trigger("column-switch",t(this).data("field"),i.prop("checked"))}))),this.options.search&&((n=[]).push('"),this.$toolbar.append(n.join("")),(o=this.$toolbar.find(".search input")).off("keyup drop blur").on("keyup drop blur",(function(i){s.options.searchOnEnterKey&&13!==i.keyCode||t.inArray(i.keyCode,[37,38,39,40])>-1||(clearTimeout(r),r=setTimeout((function(){s.onSearch(i)}),s.options.searchTimeOut))})),c()&&o.off("mouseup").on("mouseup",(function(t){clearTimeout(r),r=setTimeout((function(){s.onSearch(t)}),s.options.searchTimeOut)})))},d.prototype.onSearch=function(i){var e=t.trim(t(i.currentTarget).val());this.options.trimOnSearch&&t(i.currentTarget).val()!==e&&t(i.currentTarget).val(e),e!==this.searchText&&(this.searchText=e,this.options.searchText=e,this.options.pageNumber=1,this.initSearch(),this.updatePagination(),this.trigger("search",e))},d.prototype.initSearch=function(){var i=this;if("server"!==this.options.sidePagination){if(this.options.customSearch!==t.noop)return void this.options.customSearch.apply(this,[this.searchText]);var e=this.searchText&&(this.options.escape?h(this.searchText):this.searchText).toLowerCase(),o=t.isEmptyObject(this.filterColumns)?null:this.filterColumns;this.data=o?t.grep(this.options.data,(function(i,e){for(var s in o)if(t.isArray(o[s])&&-1===t.inArray(i[s],o[s])||!t.isArray(o[s])&&i[s]!==o[s])return!1;return!0})):this.options.data,this.data=e?t.grep(this.data,(function(o,n){for(var r=0;r-1&&(u=!0)}this.totalPages=1+~~((this.options.totalRows-1)/this.options.pageSize),this.options.totalPages=this.totalPages}if(this.totalPages>0&&this.options.pageNumber>this.totalPages&&(this.options.pageNumber=this.totalPages),this.pageFrom=(this.options.pageNumber-1)*this.options.pageSize+1,this.pageTo=this.options.pageNumber*this.options.pageSize,this.pageTo>this.options.totalRows&&(this.pageTo=this.options.totalRows),d.push('
','',this.options.onlyInfoPagination?this.options.formatDetailPagination(this.options.totalRows):this.options.formatShowingRows(this.pageFrom,this.pageTo,this.options.totalRows),""),!this.options.onlyInfoPagination){d.push('');var m=[e('',"top"===this.options.paginationVAlign||"both"===this.options.paginationVAlign?"dropdown":"dropup"),'",'"),d.push(this.options.formatRecordsPerPage(m.join(""))),d.push(""),d.push("
",'")}this.$pagination.html(d.join("")),this.options.onlyInfoPagination||(n=this.$pagination.find(".page-list a"),a=this.$pagination.find(".page-first"),r=this.$pagination.find(".page-pre"),h=this.$pagination.find(".page-next"),l=this.$pagination.find(".page-last"),p=this.$pagination.find(".page-number"),this.options.smartDisplay&&(this.totalPages<=1&&this.$pagination.find("div.pagination").hide(),(g.length<2||this.options.totalRows<=g[0])&&this.$pagination.find("span.page-list").hide(),this.$pagination[this.getData().length?"show":"hide"]()),this.options.paginationLoop||(1===this.options.pageNumber&&r.addClass("disabled"),this.options.pageNumber===this.totalPages&&h.addClass("disabled")),u&&(this.options.pageSize=this.options.formatAllRows()),n.off("click").on("click",t.proxy(this.onPageListChange,this)),a.off("click").on("click",t.proxy(this.onPageFirst,this)),r.off("click").on("click",t.proxy(this.onPagePre,this)),h.off("click").on("click",t.proxy(this.onPageNext,this)),l.off("click").on("click",t.proxy(this.onPageLast,this)),p.off("click").on("click",t.proxy(this.onPageNumber,this)))}else this.$pagination.hide()},d.prototype.updatePagination=function(i){i&&t(i.currentTarget).hasClass("disabled")||(this.options.maintainSelected||this.resetRows(),this.initPagination(),"server"===this.options.sidePagination?this.initServer():this.initBody(),this.trigger("page-change",this.options.pageNumber,this.options.pageSize))},d.prototype.onPageListChange=function(i){var e=t(i.currentTarget);return e.parent().addClass("active").siblings().removeClass("active"),this.options.pageSize=e.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+e.text(),this.$toolbar.find(".page-size").text(this.options.pageSize),this.updatePagination(i),!1},d.prototype.onPageFirst=function(t){return this.options.pageNumber=1,this.updatePagination(t),!1},d.prototype.onPagePre=function(t){return this.options.pageNumber-1===0?this.options.pageNumber=this.options.totalPages:this.options.pageNumber--,this.updatePagination(t),!1},d.prototype.onPageNext=function(t){return this.options.pageNumber+1>this.options.totalPages?this.options.pageNumber=1:this.options.pageNumber++,this.updatePagination(t),!1},d.prototype.onPageLast=function(t){return this.options.pageNumber=this.totalPages,this.updatePagination(t),!1},d.prototype.onPageNumber=function(i){if(this.options.pageNumber!==+t(i.currentTarget).text())return this.options.pageNumber=+t(i.currentTarget).text(),this.updatePagination(i),!1},d.prototype.initRow=function(i,s,n,r){var l,c=this,d=[],u={},f=[],g="",b={},m=[];if(!(t.inArray(i,this.hiddenRows)>-1)){if((u=a(this.options,this.options.rowStyle,[i,s],u))&&u.css)for(l in u.css)f.push(l+": "+u.css[l]);if(b=a(this.options,this.options.rowAttributes,[i,s],b))for(l in b)m.push(e('%s="%s"',l,h(b[l])));return i._data&&!t.isEmptyObject(i._data)&&t.each(i._data,(function(t,i){"index"!==t&&(g+=e(' data-%s="%s"',t,i))})),d.push(""),this.options.cardView&&d.push(e('
',this.header.fields.length)),!this.options.cardView&&this.options.detailView&&d.push("",'',e('',this.options.iconsPrefix,this.options.icons.detailOpen),"",""),t.each(this.header.fields,(function(n,r){var l="",g=p(i,r,c.options.escape),b="",m="",y={},w="",v=c.header.classes[n],x="",$="",S="",k="",P=c.columns[n];if((!c.fromHtml||"undefined"!==typeof g)&&P.visible&&(!c.options.cardView||P.cardVisible)){if(P.escape&&(g=h(g)),u=e('style="%s"',f.concat(c.header.styles[n]).join("; ")),i["_"+r+"_id"]&&(w=e(' id="%s"',i["_"+r+"_id"])),i["_"+r+"_class"]&&(v=e(' class="%s"',i["_"+r+"_class"])),i["_"+r+"_rowspan"]&&($=e(' rowspan="%s"',i["_"+r+"_rowspan"])),i["_"+r+"_colspan"]&&(S=e(' colspan="%s"',i["_"+r+"_colspan"])),i["_"+r+"_title"]&&(k=e(' title="%s"',i["_"+r+"_title"])),(y=a(c.header,c.header.cellStyles[n],[g,i,s,r],y)).classes&&(v=e(' class="%s"',y.classes)),y.css){var C=[];for(var T in y.css)C.push(T+": "+y.css[T]);u=e('style="%s"',C.concat(c.header.styles[n]).join("; "))}b=a(P,c.header.formatters[n],[g,i,s],g),i["_"+r+"_data"]&&!t.isEmptyObject(i["_"+r+"_data"])&&t.each(i["_"+r+"_data"],(function(t,i){"index"!==t&&(x+=e(' data-%s="%s"',t,i))})),P.checkbox||P.radio?(m=P.checkbox?"checkbox":m,m=P.radio?"radio":m,l=[e(c.options.cardView?'
':'',P.class||""),"",c.header.formatters[n]&&"string"===typeof b?b:"",c.options.cardView?"
":""].join(""),i[c.header.stateField]=!0===b||b&&b.checked):(b="undefined"===typeof b||null===b?c.options.undefinedText:b,l=c.options.cardView?['
',c.options.showHeader?e('%s',u,o(c.columns,"field","title",r)):"",e('%s',b),"
"].join(""):[e("",w,v,u,x,$,S,k),b,""].join(""),c.options.cardView&&c.options.smartDisplay&&""===b&&(l='
')),d.push(l)}})),this.options.cardView&&d.push("
"),d.push(""),d.join(" ")}},d.prototype.initBody=function(i){var o=this,n=this.getData();this.trigger("pre-body",n),this.$body=this.$el.find(">tbody"),this.$body.length||(this.$body=t("").appendTo(this.$el)),this.options.pagination&&"server"!==this.options.sidePagination||(this.pageFrom=1,this.pageTo=n.length);for(var r,h=t(document.createDocumentFragment()),l=this.pageFrom-1;l'+e('%s',this.$header.find("th").length,this.options.formatNoMatches())+""),this.$body.html(h),i||this.scrollTo(0),this.$body.find("> tr[data-index] > td").off("click dblclick").on("click dblclick",(function(i){var n=t(this),a=n.parent(),r=o.data[a.data("index")],h=n[0].cellIndex,l=o.getVisibleFields()[o.options.detailView&&!o.options.cardView?h-1:h],c=o.columns[s(o.columns,l)],d=p(r,l,o.options.escape);if(!n.find(".detail-icon").length&&(o.trigger("click"===i.type?"click-cell":"dbl-click-cell",l,d,r,n),o.trigger("click"===i.type?"click-row":"dbl-click-row",r,a,l),"click"===i.type&&o.options.clickToSelect&&c.clickToSelect)){var u=a.find(e('[name="%s"]',o.options.selectItemName));u.length&&u[0].click()}})),this.$body.find("> tr[data-index] > td > .detail-icon").off("click").on("click",(function(){var i=t(this),s=i.parent().parent(),r=s.data("index"),h=n[r];if(s.next().is("tr.detail-view"))i.find("i").attr("class",e("%s %s",o.options.iconsPrefix,o.options.icons.detailOpen)),o.trigger("collapse-row",r,h),s.next().remove();else{i.find("i").attr("class",e("%s %s",o.options.iconsPrefix,o.options.icons.detailClose)),s.after(e('',s.find("td").length));var l=s.next().find("td"),p=a(o.options,o.options.detailFormatter,[r,h,l],"");1===l.length&&l.append(p),o.trigger("expand-row",r,h,l)}return o.resetView(),!1})),this.$selectItem=this.$body.find(e('[name="%s"]',this.options.selectItemName)),this.$selectItem.off("click").on("click",(function(i){i.stopImmediatePropagation();var e=t(this),s=e.prop("checked"),n=o.data[e.data("index")];o.options.maintainSelected&&t(this).is(":radio")&&t.each(o.options.data,(function(t,i){i[o.header.stateField]=!1})),n[o.header.stateField]=s,o.options.singleSelect&&(o.$selectItem.not(this).each((function(){o.data[t(this).data("index")][o.header.stateField]=!1})),o.$selectItem.filter(":checked").not(this).prop("checked",!1)),o.updateSelected(),o.trigger(s?"check":"uncheck",n,e)})),t.each(this.header.events,(function(i,e){if(e){"string"===typeof e&&(e=a(null,e));var s=o.header.fields[i],n=t.inArray(s,o.getVisibleFields());for(var r in o.options.detailView&&!o.options.cardView&&(n+=1),e)o.$body.find(">tr:not(.no-records-found)").each((function(){var i=t(this),a=i.find(o.options.cardView?".card-view":"td").eq(n),h=r.indexOf(" "),l=r.substring(0,h),p=r.substring(h+1),c=e[r];a.find(p).off(l).on(l,(function(t){var e=i.data("index"),n=o.data[e],a=n[s];c.apply(this,[t,a,n,e])}))}))}})),this.updateSelected(),this.resetView(),this.trigger("post-body",n)},d.prototype.initServer=function(i,e,o){var s,n=this,r={},h={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};this.options.pagination&&(h.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,h.pageNumber=this.options.pageNumber),(o||this.options.url||this.options.ajax)&&("limit"===this.options.queryParamsType&&(h={search:h.searchText,sort:h.sortName,order:h.sortOrder},this.options.pagination&&(h.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1),h.limit=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize)),t.isEmptyObject(this.filterColumnsPartial)||(h.filter=JSON.stringify(this.filterColumnsPartial,null)),r=a(this.options,this.options.queryParams,[h],r),t.extend(r,e||{}),!1!==r&&(i||this.$tableLoading.show(),s=t.extend({},a(null,this.options.ajaxOptions),{type:this.options.method,url:o||this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(r):r,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(t){t=a(n.options,n.options.responseHandler,[t],t),n.load(t),n.trigger("load-success",t),i||n.$tableLoading.hide()},error:function(t){n.trigger("load-error",t.status,t),i||n.$tableLoading.hide()}}),this.options.ajax?a(this,this.options.ajax,[s],null):(this._xhr&&4!==this._xhr.readyState&&this._xhr.abort(),this._xhr=t.ajax(s))))},d.prototype.initSearchText=function(){if(this.options.search&&""!==this.options.searchText){var t=this.$toolbar.find(".search input");t.val(this.options.searchText),this.onSearch({currentTarget:t})}},d.prototype.getCaret=function(){var i=this;t.each(this.$header.find("th"),(function(e,o){t(o).find(".sortable").removeClass("desc asc").addClass(t(o).data("field")===i.options.sortName?i.options.sortOrder:"both")}))},d.prototype.updateSelected=function(){var i=this.$selectItem.filter(":enabled").length&&this.$selectItem.filter(":enabled").length===this.$selectItem.filter(":enabled").filter(":checked").length;this.$selectAll.add(this.$selectAll_).prop("checked",i),this.$selectItem.each((function(){t(this).closest("tr")[t(this).prop("checked")?"addClass":"removeClass"]("selected")}))},d.prototype.updateRows=function(){var i=this;this.$selectItem.each((function(){i.data[t(this).data("index")][i.header.stateField]=t(this).prop("checked")}))},d.prototype.resetRows=function(){var i=this;t.each(this.data,(function(t,e){i.$selectAll.prop("checked",!1),i.$selectItem.prop("checked",!1),i.header.stateField&&(e[i.header.stateField]=!1)})),this.initHiddenRows()},d.prototype.trigger=function(i){var e=Array.prototype.slice.call(arguments,1);i+=".bs.table",this.options[d.EVENTS[i]].apply(this.options,e),this.$el.trigger(t.Event(i),e),this.options.onAll(i,e),this.$el.trigger(t.Event("all.bs.table"),[i,e])},d.prototype.resetHeader=function(){clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(t.proxy(this.fitHeader,this),this.$el.is(":hidden")?100:0)},d.prototype.fitHeader=function(){var i,o,s,a,r=this;if(r.$el.is(":hidden"))r.timeoutId_=setTimeout(t.proxy(r.fitHeader,r),100);else{if(o=(i=this.$tableBody.get(0)).scrollWidth>i.clientWidth&&i.scrollHeight>i.clientHeight+this.$header.outerHeight()?n():0,this.$el.css("margin-top",-this.$header.outerHeight()),(s=t(":focus")).length>0){var h=s.parents("th");if(h.length>0){var l=h.attr("data-field");if(void 0!==l){var p=this.$header.find("[data-field='"+l+"']");p.length>0&&p.find(":input").addClass("focus-temp")}}}this.$header_=this.$header.clone(!0,!0),this.$selectAll_=this.$header_.find('[name="btSelectAll"]'),this.$tableHeader.css({"margin-right":o}).find("table").css("width",this.$el.outerWidth()).html("").attr("class",this.$el.attr("class")).append(this.$header_),(a=t(".focus-temp:visible:eq(0)")).length>0&&(a.focus(),this.$header.find(".focus-temp").removeClass("focus-temp")),this.$header.find("th[data-field]").each((function(i){r.$header_.find(e('th[data-field="%s"]',t(this).data("field"))).data(t(this).data())}));var c=this.getVisibleFields(),d=this.$header_.find("th");this.$body.find(">tr:first-child:not(.no-records-found) > *").each((function(i){var o=t(this),s=i;r.options.detailView&&!r.options.cardView&&(0===i&&r.$header_.find("th.detail").find(".fht-cell").width(o.innerWidth()),s=i-1);var n=r.$header_.find(e('th[data-field="%s"]',c[s]));n.length>1&&(n=t(d[o[0].cellIndex])),n.find(".fht-cell").width(o.innerWidth())})),this.$tableBody.off("scroll").on("scroll",(function(){r.$tableHeader.scrollLeft(t(this).scrollLeft()),r.options.showFooter&&!r.options.cardView&&r.$tableFooter.scrollLeft(t(this).scrollLeft())})),r.trigger("post-header")}},d.prototype.resetFooter=function(){var i=this,o=i.getData(),s=[];this.options.showFooter&&!this.options.cardView&&(!this.options.cardView&&this.options.detailView&&s.push('
 
'),t.each(this.columns,(function(t,n){var r,h,l,p,c=[],d=e(' class="%s"',n.class);if(n.visible&&(!i.options.cardView||n.cardVisible)){if(h=e("text-align: %s; ",n.falign?n.falign:n.align),l=e("vertical-align: %s; ",n.valign),(p=a(null,i.options.footerStyle))&&p.css)for(r in p.css)c.push(r+": "+p.css[r]);s.push(""),s.push('
'),s.push(a(n,n.footerFormatter,[o]," ")||" "),s.push("
"),s.push('
'),s.push(""),s.push("")}})),this.$tableFooter.find("tr").html(s.join("")),this.$tableFooter.show(),clearTimeout(this.timeoutFooter_),this.timeoutFooter_=setTimeout(t.proxy(this.fitFooter,this),this.$el.is(":hidden")?100:0))},d.prototype.fitFooter=function(){var i,e,o;clearTimeout(this.timeoutFooter_),this.$el.is(":hidden")?this.timeoutFooter_=setTimeout(t.proxy(this.fitFooter,this),100):(o=(e=this.$el.css("width"))>this.$tableBody.width()?n():0,this.$tableFooter.css({"margin-right":o}).find("table").css("width",e).attr("class",this.$el.attr("class")),i=this.$tableFooter.find("td"),this.$body.find(">tr:first-child:not(.no-records-found) > *").each((function(e){var o=t(this);i.eq(e).find(".fht-cell").width(o.innerWidth())})))},d.prototype.toggleColumn=function(t,i,o){if(-1!==t&&(this.columns[t].visible=i,this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns)){var s=this.$toolbar.find(".keep-open input").prop("disabled",!1);o&&s.filter(e('[value="%s"]',t)).prop("checked",i),s.filter(":checked").length<=this.options.minimumCountColumns&&s.filter(":checked").prop("disabled",!0)}},d.prototype.getVisibleFields=function(){var i=this,e=[];return t.each(this.header.fields,(function(t,o){i.columns[s(i.columns,o)].visible&&e.push(o)})),e},d.prototype.resetView=function(t){var i=0;if(t&&t.height&&(this.options.height=t.height),this.$selectAll.prop("checked",this.$selectItem.length>0&&this.$selectItem.length===this.$selectItem.filter(":checked").length),this.options.height){var e=this.$toolbar.outerHeight(!0),o=this.$pagination.outerHeight(!0),s=this.options.height-e-o;this.$tableContainer.css("height",s+"px")}if(this.options.cardView)return this.$el.css("margin-top","0"),this.$tableContainer.css("padding-bottom","0"),void this.$tableFooter.hide();this.options.showHeader&&this.options.height?(this.$tableHeader.show(),this.resetHeader(),i+=this.$header.outerHeight()):(this.$tableHeader.hide(),this.trigger("post-header")),this.options.showFooter&&(this.resetFooter(),this.options.height&&(i+=this.$tableFooter.outerHeight()+1)),this.getCaret(),this.$tableContainer.css("padding-bottom",i+"px"),this.trigger("reset-view")},d.prototype.getData=function(i){return!this.searchText&&t.isEmptyObject(this.filterColumns)&&t.isEmptyObject(this.filterColumnsPartial)?i?this.options.data.slice(this.pageFrom-1,this.pageTo):this.options.data:i?this.data.slice(this.pageFrom-1,this.pageTo):this.data},d.prototype.load=function(i){var e=!1;"server"===this.options.sidePagination?(this.options.totalRows=i[this.options.totalField],e=i.fixedScroll,i=i[this.options.dataField]):t.isArray(i)||(e=i.fixedScroll,i=i.data),this.initData(i),this.initSearch(),this.initPagination(),this.initBody(e)},d.prototype.append=function(t){this.initData(t,"append"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)},d.prototype.prepend=function(t){this.initData(t,"prepend"),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)},d.prototype.remove=function(i){var e,o,s=this.options.data.length;if(i.hasOwnProperty("field")&&i.hasOwnProperty("values")){for(e=s-1;e>=0;e--)(o=this.options.data[e]).hasOwnProperty(i.field)&&-1!==t.inArray(o[i.field],i.values)&&(this.options.data.splice(e,1),"server"===this.options.sidePagination&&(this.options.totalRows-=1));s!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}},d.prototype.removeAll=function(){this.options.data.length>0&&(this.options.data.splice(0,this.options.data.length),this.initSearch(),this.initPagination(),this.initBody(!0))},d.prototype.getRowByUniqueId=function(t){var i,e,o,s=this.options.uniqueId,n=null;for(i=this.options.data.length-1;i>=0;i--){if((e=this.options.data[i]).hasOwnProperty(s))o=e[s];else{if(!e._data.hasOwnProperty(s))continue;o=e._data[s]}if("string"===typeof o?t=t.toString():"number"===typeof o&&(Number(o)===o&&o%1===0?t=parseInt(t):o===Number(o)&&0!==o&&(t=parseFloat(t))),o===t){n=e;break}}return n},d.prototype.removeByUniqueId=function(t){var i=this.options.data.length,e=this.getRowByUniqueId(t);e&&this.options.data.splice(this.options.data.indexOf(e),1),i!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initBody(!0))},d.prototype.updateByUniqueId=function(i){var e=this,o=t.isArray(i)?i:[i];t.each(o,(function(i,o){var s;o.hasOwnProperty("id")&&o.hasOwnProperty("row")&&-1!==(s=t.inArray(e.getRowByUniqueId(o.id),e.options.data))&&t.extend(e.options.data[s],o.row)})),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)},d.prototype.insertRow=function(t){t.hasOwnProperty("index")&&t.hasOwnProperty("row")&&(this.data.splice(t.index,0,t.row),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))},d.prototype.updateRow=function(i){var e=this,o=t.isArray(i)?i:[i];t.each(o,(function(i,o){o.hasOwnProperty("index")&&o.hasOwnProperty("row")&&t.extend(e.options.data[o.index],o.row)})),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)},d.prototype.initHiddenRows=function(){this.hiddenRows=[]},d.prototype.showRow=function(t){this.toggleRow(t,!0)},d.prototype.hideRow=function(t){this.toggleRow(t,!1)},d.prototype.toggleRow=function(i,e){var o,s;i.hasOwnProperty("index")?o=this.getData()[i.index]:i.hasOwnProperty("uniqueId")&&(o=this.getRowByUniqueId(i.uniqueId)),o&&(s=t.inArray(o,this.hiddenRows),e||-1!==s?e&&s>-1&&this.hiddenRows.splice(s,1):this.hiddenRows.push(o),this.initBody(!0))},d.prototype.getHiddenRows=function(i){var e=this,o=this.getData(),s=[];return t.each(o,(function(i,o){t.inArray(o,e.hiddenRows)>-1&&s.push(o)})),this.hiddenRows=s,s},d.prototype.mergeCells=function(i){var e,o,s,n=i.index,a=t.inArray(i.field,this.getVisibleFields()),r=i.rowspan||1,h=i.colspan||1,l=this.$body.find(">tr");if(this.options.detailView&&!this.options.cardView&&(a+=1),s=l.eq(n).find(">td").eq(a),!(n<0||a<0||n>=this.data.length)){for(e=n;etd").eq(o).hide();s.attr("rowspan",r).attr("colspan",h).show()}},d.prototype.updateCell=function(t){t.hasOwnProperty("index")&&t.hasOwnProperty("field")&&t.hasOwnProperty("value")&&(this.data[t.index][t.field]=t.value,!1!==t.reinit&&(this.initSort(),this.initBody(!0)))},d.prototype.getOptions=function(){return this.options},d.prototype.getSelections=function(){var i=this;return t.grep(this.options.data,(function(t){return!0===t[i.header.stateField]}))},d.prototype.getAllSelections=function(){var i=this;return t.grep(this.options.data,(function(t){return t[i.header.stateField]}))},d.prototype.checkAll=function(){this.checkAll_(!0)},d.prototype.uncheckAll=function(){this.checkAll_(!1)},d.prototype.checkInvert=function(){var i=this.$selectItem.filter(":enabled"),e=i.filter(":checked");i.each((function(){t(this).prop("checked",!t(this).prop("checked"))})),this.updateRows(),this.updateSelected(),this.trigger("uncheck-some",e),e=this.getSelections(),this.trigger("check-some",e)},d.prototype.checkAll_=function(t){var i;t||(i=this.getSelections()),this.$selectAll.add(this.$selectAll_).prop("checked",t),this.$selectItem.filter(":enabled").prop("checked",t),this.updateRows(),t&&(i=this.getSelections()),this.trigger(t?"check-all":"uncheck-all",i)},d.prototype.check=function(t){this.check_(!0,t)},d.prototype.uncheck=function(t){this.check_(!1,t)},d.prototype.check_=function(t,i){var o=this.$selectItem.filter(e('[data-index="%s"]',i)).prop("checked",t);this.data[i][this.header.stateField]=t,this.updateSelected(),this.trigger(t?"check":"uncheck",this.data[i],o)},d.prototype.checkBy=function(t){this.checkBy_(!0,t)},d.prototype.uncheckBy=function(t){this.checkBy_(!1,t)},d.prototype.checkBy_=function(i,o){if(o.hasOwnProperty("field")&&o.hasOwnProperty("values")){var s=this,n=[];t.each(this.options.data,(function(a,r){if(!r.hasOwnProperty(o.field))return!1;if(-1!==t.inArray(r[o.field],o.values)){var h=s.$selectItem.filter(":enabled").filter(e('[data-index="%s"]',a)).prop("checked",i);r[s.header.stateField]=i,n.push(r),s.trigger(i?"check":"uncheck",r,h)}})),this.updateSelected(),this.trigger(i?"check-some":"uncheck-some",n)}},d.prototype.destroy=function(){this.$el.insertBefore(this.$container),t(this.options.toolbar).insertBefore(this.$el),this.$container.next().remove(),this.$container.remove(),this.$el.html(this.$el_.html()).css("margin-top","0").attr("class",this.$el_.attr("class")||"")},d.prototype.showLoading=function(){this.$tableLoading.show()},d.prototype.hideLoading=function(){this.$tableLoading.hide()},d.prototype.togglePagination=function(){this.options.pagination=!this.options.pagination;var t=this.$toolbar.find('button[name="paginationSwitch"] i');this.options.pagination?t.attr("class",this.options.iconsPrefix+" "+this.options.icons.paginationSwitchDown):t.attr("class",this.options.iconsPrefix+" "+this.options.icons.paginationSwitchUp),this.updatePagination()},d.prototype.refresh=function(t){t&&t.url&&(this.options.url=t.url),t&&t.pageNumber&&(this.options.pageNumber=t.pageNumber),t&&t.pageSize&&(this.options.pageSize=t.pageSize),this.initServer(t&&t.silent,t&&t.query,t&&t.url),this.trigger("refresh",t)},d.prototype.resetWidth=function(){this.options.showHeader&&this.options.height&&this.fitHeader(),this.options.showFooter&&this.fitFooter()},d.prototype.showColumn=function(t){this.toggleColumn(s(this.columns,t),!0,!0)},d.prototype.hideColumn=function(t){this.toggleColumn(s(this.columns,t),!1,!0)},d.prototype.getHiddenColumns=function(){return t.grep(this.columns,(function(t){return!t.visible}))},d.prototype.getVisibleColumns=function(){return t.grep(this.columns,(function(t){return t.visible}))},d.prototype.toggleAllColumns=function(i){if(t.each(this.columns,(function(t,e){this.columns[t].visible=i})),this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns){var e=this.$toolbar.find(".keep-open input").prop("disabled",!1);e.filter(":checked").length<=this.options.minimumCountColumns&&e.filter(":checked").prop("disabled",!0)}},d.prototype.showAllColumns=function(){this.toggleAllColumns(!0)},d.prototype.hideAllColumns=function(){this.toggleAllColumns(!1)},d.prototype.filterBy=function(i){this.filterColumns=t.isEmptyObject(i)?{}:i,this.options.pageNumber=1,this.initSearch(),this.updatePagination()},d.prototype.scrollTo=function(t){if("string"===typeof t&&(t="bottom"===t?this.$tableBody[0].scrollHeight:0),"number"===typeof t&&this.$tableBody.scrollTop(t),"undefined"===typeof t)return this.$tableBody.scrollTop()},d.prototype.getScrollPosition=function(){return this.scrollTo()},d.prototype.selectPage=function(t){t>0&&t<=this.options.totalPages&&(this.options.pageNumber=t,this.updatePagination())},d.prototype.prevPage=function(){this.options.pageNumber>1&&(this.options.pageNumber--,this.updatePagination())},d.prototype.nextPage=function(){this.options.pageNumber tr[data-index="%s"]',i));o.next().is("tr.detail-view")===!t&&o.find("> td > .detail-icon").click()},d.prototype.expandRow=function(t){this.expandRow_(!0,t)},d.prototype.collapseRow=function(t){this.expandRow_(!1,t)},d.prototype.expandAllRows=function(i){if(i){var o=this.$body.find(e('> tr[data-index="%s"]',0)),s=this,n=null,a=!1,r=-1;if(o.next().is("tr.detail-view")?o.next().next().is("tr.detail-view")||(o.next().find(".detail-icon").click(),a=!0):(o.find("> td > .detail-icon").click(),a=!0),a)try{r=setInterval((function(){(n=s.$body.find("tr.detail-view").last().find(".detail-icon")).length>0?n.click():clearInterval(r)}),1)}catch(p){clearInterval(r)}}else for(var h=this.$body.children(),l=0;l