(self.webpackChunkwebhelp=self.webpackChunkwebhelp||[]).push([["jquery-bootpag"],{1665:(a,s,t)=>{var l,i=t(4796);l=i,window,l.fn.bootpag=function(a){function s(a,s){s=parseInt(s,10);var r,n=0==e.maxVisible?1:e.maxVisible,o=1==e.maxVisible?0:1,p=Math.floor((s-1)/n)*n,f=a.find("li");if(e.page=s=0>s?0:s>e.total?e.total:s,f.removeClass(e.activeClass),r=1>s-1?1:e.leaps&&s-1>=e.maxVisible?Math.floor((s-1)/n)*n:s-1,e.firstLastUse&&f.first().toggleClass(e.disabledClass,1===s),n=f.first(),e.firstLastUse&&(n=n.next()),n.toggleClass(e.disabledClass,1===s).attr("data-lp",r).find("a").attr("href",t(r)),o=1==e.maxVisible?0:1,r=s+1>e.total?e.total:e.leaps&&s+1<e.total-e.maxVisible?p+e.maxVisible+o:s+1,n=f.last(),e.firstLastUse&&(n=n.prev()),n.toggleClass(e.disabledClass,s===e.total).attr("data-lp",r).find("a").attr("href",t(r)),f.last().toggleClass(e.disabledClass,s===e.total),n=f.filter("[data-lp="+s+"]"),o="."+[e.nextClass,e.prevClass,e.firstClass,e.lastClass].join(",."),!n.not(o).length){var d=s<=p?-e.maxVisible:0;f.not(o).each(function(a){r=a+1+p+d,l(this).attr("data-lp",r).toggle(r<=e.total).find("a").html(r).attr("href",t(r))}),n=f.filter("[data-lp="+s+"]")}n.not(o).addClass(e.activeClass),i.data("settings",e)}function t(a){return e.href.replace(e.hrefVariable,a)}var i=this,e=l.extend({total:0,page:1,maxVisible:null,leaps:!0,href:"javascript:void(0);",hrefVariable:"{{number}}",next:"&raquo;",prev:"&laquo;",firstLastUse:!1,first:'<span aria-hidden="true">&larr;</span>',last:'<span aria-hidden="true">&rarr;</span>',wrapClass:"pagination",activeClass:"active",disabledClass:"disabled",nextClass:"next",prevClass:"prev",lastClass:"last",firstClass:"first"},i.data("settings")||{},a||{});return 0>=e.total?this:(l.isNumeric(e.maxVisible)||e.maxVisible||(e.maxVisible=parseInt(e.total,10)),i.data("settings",e),this.each(function(){var a,r,n=l(this);for(a=['<ul class="',e.wrapClass,' bootpag">'],e.firstLastUse&&(a=a.concat(['<li data-lp="1" class="',e.firstClass,'"><a href="',t(1),'">',e.first,"</a></li>"])),e.prev&&(a=a.concat(['<li data-lp="1" class="',e.prevClass,'"><a href="',t(1),'">',e.prev,"</a></li>"])),r=1;r<=Math.min(e.total,e.maxVisible);r++)a=a.concat(['<li data-lp="',r,'"><a href="',t(r),'">',r,"</a></li>"]);e.next&&(r=e.leaps&&e.total>e.maxVisible?Math.min(e.maxVisible+1,e.total):2,a=a.concat(['<li data-lp="',r,'" class="',e.nextClass,'"><a href="',t(r),'">',e.next,"</a></li>"])),e.firstLastUse&&(a=a.concat(['<li data-lp="',e.total,'" class="last"><a href="',t(e.total),'">',e.last,"</a></li>"])),a.push("</ul>"),n.find("ul.bootpag").remove(),n.append(a.join("")),a=n.find("ul.bootpag"),n.find("li").click(function(){var a=l(this);if(!a.hasClass(e.disabledClass)&&!a.hasClass(e.activeClass)){var t=parseInt(a.attr("data-lp"),10);i.find("ul.bootpag").each(function(){s(l(this),t)}),i.trigger("page",t)}}),s(a,e.page)}))}}}]);
//