"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var tns=function(){Object.keys||(Object.keys=function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}),"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)});var t=window,Tr=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(t){return setTimeout(t,16)},e=window,Or=e.cancelAnimationFrame||e.mozCancelAnimationFrame||function(t){clearTimeout(t)};function Nr(t){for(var e,n,r,o=t||{},i=1,a=arguments.length;i<a;i++)if(null!==(e=arguments[i]))for(n in e)o!==(r=e[n])&&void 0!==r&&(o[n]=r);return o}function Ir(t){return 0<=["true","false"].indexOf(t)?JSON.parse(t):t}function jr(t,e,n,r){if(r)try{t.setItem(e,n)}catch(t){}return n}function Pr(){var t=document,e=t.body;return e||((e=t.createElement("body")).fake=!0),e}var n=document.documentElement;function zr(t){var e="";return t.fake&&(e=n.style.overflow,t.style.background="",t.style.overflow=n.style.overflow="hidden",n.appendChild(t)),e}function Br(t,e){t.fake&&(t.remove(),n.style.overflow=e,n.offsetHeight)}function qr(t,e,n,r){"insertRule"in t?t.insertRule(e+"{"+n+"}",r):t.addRule(e,n,r)}function Dr(t){return("insertRule"in t?t.cssRules:t.rules).length}function Rr(t,e,n){for(var r=0,o=t.length;r<o;r++)e.call(n,t[r],r)}var r="classList"in document.createElement("_"),Hr=r?function(t,e){return t.classList.contains(e)}:function(t,e){return 0<=t.className.indexOf(e)},Gr=r?function(t,e){Hr(t,e)||t.classList.add(e)}:function(t,e){Hr(t,e)||(t.className+=" "+e)},Wr=r?function(t,e){Hr(t,e)&&t.classList.remove(e)}:function(t,e){Hr(t,e)&&(t.className=t.className.replace(e,""))};function Fr(t,e){return t.hasAttribute(e)}function Vr(t,e){return t.getAttribute(e)}function i(t){return void 0!==t.item}function Yr(t,e){if(t=i(t)||t instanceof Array?t:[t],"[object Object]"===Object.prototype.toString.call(e))for(var n=t.length;n--;)for(var r in e)t[n].setAttribute(r,e[r])}function Kr(t,e){t=i(t)||t instanceof Array?t:[t];for(var n=(e=e instanceof Array?e:[e]).length,r=t.length;r--;)for(var o=n;o--;)t[r].removeAttribute(e[o])}function Ur(t){for(var e=[],n=0,r=t.length;n<r;n++)e.push(t[n]);return e}function Jr(t,e){"none"!==t.style.display&&(t.style.display="none")}function Xr(t,e){"none"===t.style.display&&(t.style.display="")}function Qr(t){return"none"!==window.getComputedStyle(t).display}function $r(e){if("string"==typeof e){var n=[e],r=e.charAt(0).toUpperCase()+e.substr(1);["Webkit","Moz","ms","O"].forEach(function(t){"ms"===t&&"transform"!==e||n.push(t+r)}),e=n}for(var t=document.createElement("fakeelement"),o=(e.length,0);o<e.length;o++){var i=e[o];if(void 0!==t.style[i])return i}return!1}function Zr(t,e){var n=!1;return/^Webkit/.test(t)?n="webkit"+e+"End":/^O/.test(t)?n="o"+e+"End":t&&(n=e.toLowerCase()+"end"),n}var o=!1;try{var a=Object.defineProperty({},"passive",{get:function(){o=!0}});window.addEventListener("test",null,a)}catch(t){}var s=!!o&&{passive:!0};function to(t,e,n){for(var r in e){var o=0<=["touchstart","touchmove"].indexOf(r)&&!n&&s;t.addEventListener(r,e[r],o)}}function eo(t,e){for(var n in e){var r=0<=["touchstart","touchmove"].indexOf(n)&&s;t.removeEventListener(n,e[n],r)}}function no(){return{topics:{},on:function(t,e){this.topics[t]=this.topics[t]||[],this.topics[t].push(e)},off:function(t,e){if(this.topics[t])for(var n=0;n<this.topics[t].length;n++)if(this.topics[t][n]===e){this.topics[t].splice(n,1);break}},emit:function(e,n){n.type=e,this.topics[e]&&this.topics[e].forEach(function(t){t(n,e)})}}}var ro=function(O){O=Nr({container:".slider",mode:"carousel",axis:"horizontal",items:1,gutter:0,edgePadding:0,fixedWidth:!1,autoWidth:!1,viewportMax:!1,slideBy:1,center:!1,controls:!0,controlsPosition:"top",controlsText:["prev","next"],controlsContainer:!1,prevButton:!1,nextButton:!1,nav:!0,navPosition:"top",navContainer:!1,navAsThumbnails:!1,arrowKeys:!1,speed:300,autoplay:!1,autoplayPosition:"top",autoplayTimeout:5e3,autoplayDirection:"forward",autoplayText:["start","stop"],autoplayHoverPause:!1,autoplayButton:!1,autoplayButtonOutput:!0,autoplayResetOnVisibility:!0,animateIn:"tns-fadeIn",animateOut:"tns-fadeOut",animateNormal:"tns-normal",animateDelay:!1,loop:!0,rewind:!1,autoHeight:!1,responsive:!1,lazyload:!1,lazyloadSelector:".tns-lazy-img",touch:!0,mouseDrag:!1,swipeAngle:15,nested:!1,preventActionWhenRunning:!1,preventScrollOnTouch:!1,freezable:!0,onInit:!1,useLocalStorage:!0},O||{});var N=document,m=window,o={ENTER:13,SPACE:32,LEFT:37,RIGHT:39},e={},t=O.useLocalStorage;if(t){var n=navigator.userAgent,r=new Date;try{(e=m.localStorage)?(e.setItem(r,r),t=e.getItem(r)==r,e.removeItem(r)):t=!1,t||(e={})}catch(n){t=!1}t&&(e.tnsApp&&e.tnsApp!==n&&["tC","tPL","tMQ","tTf","t3D","tTDu","tTDe","tADu","tADe","tTE","tAE"].forEach(function(t){e.removeItem(t)}),localStorage.tnsApp=n)}var i,a,s,l,c,u,d,g=e.tC?Ir(e.tC):jr(e,"tC",function(){var t=document,e=Pr(),n=zr(e),r=t.createElement("div"),o=!1;e.appendChild(r);try{for(var i,a="(10px * 10)",s=["calc"+a,"-moz-calc"+a,"-webkit-calc"+a],l=0;l<3;l++)if(i=s[l],r.style.width=i,100===r.offsetWidth){o=i.replace(a,"");break}}catch(t){}return e.fake?Br(e,n):r.remove(),o}(),t),y=e.tPL?Ir(e.tPL):jr(e,"tPL",function(){var t,e=document,n=Pr(),r=zr(n),o=e.createElement("div"),i=e.createElement("div"),a="";o.className="tns-t-subp2",i.className="tns-t-ct";for(var s=0;s<70;s++)a+="<div></div>";return i.innerHTML=a,o.appendChild(i),n.appendChild(o),t=Math.abs(o.getBoundingClientRect().left-i.children[67].getBoundingClientRect().left)<2,n.fake?Br(n,r):o.remove(),t}(),t),I=e.tMQ?Ir(e.tMQ):jr(e,"tMQ",(a=document,l=zr(s=Pr()),c=a.createElement("div"),d="@media all and (min-width:1px){.tns-mq-test{position:absolute}}",(u=a.createElement("style")).type="text/css",c.className="tns-mq-test",s.appendChild(u),s.appendChild(c),u.styleSheet?u.styleSheet.cssText=d:u.appendChild(a.createTextNode(d)),i=window.getComputedStyle?window.getComputedStyle(c).position:c.currentStyle.position,s.fake?Br(s,l):c.remove(),"absolute"===i),t),f=e.tTf?Ir(e.tTf):jr(e,"tTf",$r("transform"),t),p=e.t3D?Ir(e.t3D):jr(e,"t3D",function(t){if(!t)return!1;if(!window.getComputedStyle)return!1;var e,n=document,r=Pr(),o=zr(r),i=n.createElement("p"),a=9<t.length?"-"+t.slice(0,-9).toLowerCase()+"-":"";return a+="transform",r.insertBefore(i,null),i.style[t]="translate3d(1px,1px,1px)",e=window.getComputedStyle(i).getPropertyValue(a),r.fake?Br(r,o):i.remove(),void 0!==e&&0<e.length&&"none"!==e}(f),t),b=e.tTDu?Ir(e.tTDu):jr(e,"tTDu",$r("transitionDuration"),t),v=e.tTDe?Ir(e.tTDe):jr(e,"tTDe",$r("transitionDelay"),t),w=e.tADu?Ir(e.tADu):jr(e,"tADu",$r("animationDuration"),t),h=e.tADe?Ir(e.tADe):jr(e,"tADe",$r("animationDelay"),t),x=e.tTE?Ir(e.tTE):jr(e,"tTE",Zr(b,"Transition"),t),_=e.tAE?Ir(e.tAE):jr(e,"tAE",Zr(w,"Animation"),t),L=m.console&&"function"==typeof m.console.warn,E=["container","controlsContainer","prevButton","nextButton","navContainer","autoplayButton"],S={};if(E.forEach(function(t){if("string"==typeof O[t]){var e=O[t],n=N.querySelector(e);if(S[t]=e,!n||!n.nodeName)return void(L&&console.warn("Can't find",O[t]));O[t]=n}}),!(O.container.children.length<1)){var j=O.responsive,P=O.nested,z="carousel"===O.mode;if(j){0 in j&&(O=Nr(O,j[0]),delete j[0]);var k={};for(var M in j){var A=j[M];A="number"==typeof A?{items:A}:A,k[M]=A}j=k,k=null}if(z||function t(e){for(var n in e)z||("slideBy"===n&&(e[n]="page"),"edgePadding"===n&&(e[n]=!1),"autoHeight"===n&&(e[n]=!1)),"responsive"===n&&t(e[n])}(O),!z){O.axis="horizontal",O.slideBy="page",O.edgePadding=!1;var B=O.animateIn,q=O.animateOut,C=O.animateDelay,D=O.animateNormal}var T,R,H="horizontal"===O.axis,G=N.createElement("div"),W=N.createElement("div"),F=O.container,V=F.parentNode,Y=F.outerHTML,K=F.children,U=K.length,J=ln(),X=!1;j&&An(),z&&(F.className+=" tns-vpfix");var Q,$,Z,tt,et,nt,rt,ot=O.autoWidth,it=fn("fixedWidth"),at=fn("edgePadding"),st=fn("gutter"),lt=un(),ct=fn("center"),ut=ot?1:Math.floor(fn("items")),dt=fn("slideBy"),ft=O.viewportMax||O.fixedWidthViewportWidth,pt=fn("arrowKeys"),vt=fn("speed"),ht=O.rewind,mt=!ht&&O.loop,gt=fn("autoHeight"),yt=fn("controls"),bt=fn("controlsText"),wt=fn("nav"),xt=fn("touch"),_t=fn("mouseDrag"),Lt=fn("autoplay"),Et=fn("autoplayTimeout"),St=fn("autoplayText"),kt=fn("autoplayHoverPause"),Mt=fn("autoplayResetOnVisibility"),At=(rt=document.createElement("style"),document.querySelector("head").appendChild(rt),rt.sheet?rt.sheet:rt.styleSheet),Ct=O.lazyload,Tt=(O.lazyloadSelector,[]),Ot=mt?(et=function(){if(ot||it&&!ft)return U-1;var t=it?"fixedWidth":"items",e=[];if((it||O[t]<U)&&e.push(O[t]),j)for(var n in j){var r=j[n][t];r&&(it||r<U)&&e.push(r)}return e.length||e.push(0),Math.ceil(it?ft/Math.min.apply(null,e):Math.max.apply(null,e))}(),nt=z?Math.ceil((5*et-U)/2):4*et-U,nt=Math.max(et,nt),dn("edgePadding")?nt+1:nt):0,Nt=z?U+2*Ot:U+Ot,It=!(!it&&!ot||mt),jt=it?er():null,Pt=!z||!mt,zt=H?"left":"top",Bt="",qt="",Dt=it?function(){return ct&&!mt?U-1:Math.ceil(-jt/(it+st))}:ot?function(){for(var t=Nt;t--;)if(Q[t]>=-jt)return t}:function(){return ct&&z&&!mt?U-1:mt||z?Math.max(0,Nt-Math.ceil(ut)):Nt-1},Rt=on(fn("startIndex")),Ht=Rt,Gt=(rn(),0),Wt=ot?null:Dt(),Ft=O.preventActionWhenRunning,Vt=O.swipeAngle,Yt=!Vt||"?",Kt=!1,Ut=O.onInit,Jt=new no,Xt=" tns-slider tns-"+O.mode,Qt=F.id||(tt=window.tnsId,window.tnsId=tt?tt+1:1,"tns"+window.tnsId),$t=fn("disable"),Zt=!1,te=O.freezable,ee=!(!te||ot)&&Mn(),ne=!1,re={click:ur,keydown:function(t){t=yr(t);var e=[o.LEFT,o.RIGHT].indexOf(t.keyCode);0<=e&&(0===e?Ee.disabled||ur(t,-1):Se.disabled||ur(t,1))}},oe={click:function(t){if(Kt){if(Ft)return;lr()}for(var e=br(t=yr(t));e!==Ce&&!Fr(e,"data-nav");)e=e.parentNode;if(Fr(e,"data-nav")){var n=Ie=Number(Vr(e,"data-nav")),r=it||ot?n*U/Oe:n*ut;cr(fe?n:Math.min(Math.ceil(r),U-1),t),je===n&&(Re&&hr(),Ie=-1)}},keydown:function(t){t=yr(t);var e=N.activeElement;if(Fr(e,"data-nav")){var n=[o.LEFT,o.RIGHT,o.ENTER,o.SPACE].indexOf(t.keyCode),r=Number(Vr(e,"data-nav"));0<=n&&(0===n?0<r&&gr(Ae[r-1]):1===n?r<Oe-1&&gr(Ae[r+1]):cr(Ie=r,t))}}},ie={mouseover:function(){Re&&(fr(),He=!0)},mouseout:function(){He&&(dr(),He=!1)}},ae={visibilitychange:function(){N.hidden?Re&&(fr(),We=!0):We&&(dr(),We=!1)}},se={keydown:function(t){t=yr(t);var e=[o.LEFT,o.RIGHT].indexOf(t.keyCode);0<=e&&ur(t,0===e?-1:1)}},le={touchstart:Lr,touchmove:Er,touchend:Sr,touchcancel:Sr},ce={mousedown:Lr,mousemove:Er,mouseup:Sr,mouseleave:Sr},ue=dn("controls"),de=dn("nav"),fe=!!ot||O.navAsThumbnails,pe=dn("autoplay"),ve=dn("touch"),he=dn("mouseDrag"),me="tns-slide-active",ge="tns-complete",ye={load:function(t){Bn(br(t))},error:function(t){var e;e=br(t),Gr(e,"failed"),qn(e)}},be="force"===O.preventScrollOnTouch;if(ue)var we,xe,_e=O.controlsContainer,Le=O.controlsContainer?O.controlsContainer.outerHTML:"",Ee=O.prevButton,Se=O.nextButton,ke=O.prevButton?O.prevButton.outerHTML:"",Me=O.nextButton?O.nextButton.outerHTML:"";if(de)var Ae,Ce=O.navContainer,Te=O.navContainer?O.navContainer.outerHTML:"",Oe=ot?U:Mr(),Ne=0,Ie=-1,je=sn(),Pe=je,ze="tns-nav-active",Be="Carousel Page ",qe=" (Current Slide)";if(pe)var De,Re,He,Ge,We,Fe="forward"===O.autoplayDirection?1:-1,Ve=O.autoplayButton,Ye=O.autoplayButton?O.autoplayButton.outerHTML:"",Ke=["<span class='tns-visually-hidden'>"," animation</span>"];if(ve||he)var Ue,Je,Xe={},Qe={},$e=!1,Ze=H?function(t,e){return t.x-e.x}:function(t,e){return t.y-e.y};ot||nn($t||ee),f&&(zt=f,Bt="translate",qt=p?(Bt+=H?"3d(":"3d(0px, ",H?", 0px, 0px)":", 0px)"):(Bt+=H?"X(":"Y(",")")),z&&(F.className=F.className.replace("tns-vpfix","")),function(){dn("gutter"),G.className="tns-outer",W.className="tns-inner",G.id=Qt+"-ow",W.id=Qt+"-iw",""===F.id&&(F.id=Qt),Xt+=y||ot?" tns-subpixel":" tns-no-subpixel",Xt+=g?" tns-calc":" tns-no-calc",ot&&(Xt+=" tns-autowidth"),Xt+=" tns-"+O.axis,F.className+=Xt,z?((T=N.createElement("div")).id=Qt+"-mw",T.className="tns-ovh",G.appendChild(T),T.appendChild(W)):G.appendChild(W),gt&&((T||W).className+=" tns-ah");if(V.insertBefore(G,F),W.appendChild(F),Rr(K,function(t,e){Gr(t,"tns-item"),t.id||(t.id=Qt+"-item"+e),!z&&D&&Gr(t,D),Yr(t,{"aria-hidden":"true",tabindex:"-1"})}),Ot){for(var t=N.createDocumentFragment(),e=N.createDocumentFragment(),n=Ot;n--;){var r=n%U,o=K[r].cloneNode(!0);if(Kr(o,"id"),e.insertBefore(o,e.firstChild),z){var i=K[U-1-r].cloneNode(!0);Kr(i,"id"),t.appendChild(i)}}F.insertBefore(t,F.firstChild),F.appendChild(e),K=F.children}}(),function(){if(!z)for(var t=Rt,e=Rt+Math.min(U,ut);t<e;t++){var n=K[t];n.style.left=100*(t-Rt)/ut+"%",Gr(n,B),Wr(n,D)}if(H&&(y||ot?(qr(At,"#"+Qt+" > .tns-item","font-size:"+m.getComputedStyle(K[0]).fontSize+";",Dr(At)),qr(At,"#"+Qt,"font-size:0;",Dr(At))):z&&Rr(K,function(t,e){var n;t.style.marginLeft=(n=e,g?g+"("+100*n+"% / "+Nt+")":100*n/Nt+"%")})),I){if(b){var r=T&&O.autoHeight?yn(O.speed):"";qr(At,"#"+Qt+"-mw",r,Dr(At))}r=pn(O.edgePadding,O.gutter,O.fixedWidth,O.speed,O.autoHeight),qr(At,"#"+Qt+"-iw",r,Dr(At)),z&&(r=H&&!ot?"width:"+vn(O.fixedWidth,O.gutter,O.items)+";":"",b&&(r+=yn(vt)),qr(At,"#"+Qt,r,Dr(At))),r=H&&!ot?hn(O.fixedWidth,O.gutter,O.items):"",O.gutter&&(r+=mn(O.gutter)),z||(b&&(r+=yn(vt)),w&&(r+=bn(vt))),r&&qr(At,"#"+Qt+" > .tns-item",r,Dr(At))}else{Wn(),W.style.cssText=pn(at,st,it,gt),z&&H&&!ot&&(F.style.width=vn(it,st,ut));r=H&&!ot?hn(it,st,ut):"";st&&(r+=mn(st)),r&&qr(At,"#"+Qt+" > .tns-item",r,Dr(At))}if(j&&I)for(var o in j){o=parseInt(o);var i=j[o],a=(r="",""),s="",l="",c="",u=ot?null:fn("items",o),d=fn("fixedWidth",o),f=fn("speed",o),p=fn("edgePadding",o),v=fn("autoHeight",o),h=fn("gutter",o);b&&T&&fn("autoHeight",o)&&"speed"in i&&(a="#"+Qt+"-mw{"+yn(f)+"}"),("edgePadding"in i||"gutter"in i)&&(s="#"+Qt+"-iw{"+pn(p,h,d,f,v)+"}"),z&&H&&!ot&&("fixedWidth"in i||"items"in i||it&&"gutter"in i)&&(l="width:"+vn(d,h,u)+";"),b&&"speed"in i&&(l+=yn(f)),l=l&&"#"+Qt+"{"+l+"}",("fixedWidth"in i||it&&"gutter"in i||!z&&"items"in i)&&(c+=hn(d,h,u)),"gutter"in i&&(c+=mn(h)),!z&&"speed"in i&&(b&&(c+=yn(f)),w&&(c+=bn(f))),(r=a+s+l+(c=c&&"#"+Qt+" > .tns-item{"+c+"}"))&&At.insertRule("@media (min-width: "+o/16+"em) {"+r+"}",At.cssRules.length)}}(),wn();var tn=mt?z?function(){var t=Gt,e=Wt;t+=dt,e-=dt,at?(t+=1,e-=1):it&&(lt+st)%(it+st)&&(e-=1),Ot&&(e<Rt?Rt-=U:Rt<t&&(Rt+=U))}:function(){if(Wt<Rt)for(;Gt+U<=Rt;)Rt-=U;else if(Rt<Gt)for(;Rt<=Wt-U;)Rt+=U}:function(){Rt=Math.max(Gt,Math.min(Wt,Rt))},en=z?function(){var e,n,r,o,t,i,a,s,l,c,u;Zn(F,""),b||!vt?(or(),vt&&Qr(F)||lr()):(e=F,n=zt,r=Bt,o=qt,t=nr(),i=vt,a=lr,s=Math.min(i,10),l=0<=t.indexOf("%")?"%":"px",t=t.replace(l,""),c=Number(e.style[n].replace(r,"").replace(o,"").replace(l,"")),u=(t-c)/i*s,setTimeout(function t(){i-=s,c+=u,e.style[n]=r+c+l+o,0<i?setTimeout(t,s):a()},s)),H||kr()}:function(){Tt=[];var t={};t[x]=t[_]=lr,eo(K[Ht],t),to(K[Rt],t),ir(Ht,B,q,!0),ir(Rt,D,B),x&&_&&vt&&Qr(F)||lr()};return{version:"2.9.2",getInfo:Cr,events:Jt,goTo:cr,play:function(){Lt&&!Re&&(vr(),Ge=!1)},pause:function(){Re&&(hr(),Ge=!0)},isOn:X,updateSliderHeight:Vn,refresh:wn,destroy:function(){if(At.disabled=!0,At.ownerNode&&At.ownerNode.remove(),eo(m,{resize:Sn}),pt&&eo(N,se),_e&&eo(_e,re),Ce&&eo(Ce,oe),eo(F,ie),eo(F,ae),Ve&&eo(Ve,{click:mr}),Lt&&clearInterval(De),z&&x){var t={};t[x]=lr,eo(F,t)}xt&&eo(F,le),_t&&eo(F,ce);var i=[Y,Le,ke,Me,Te,Ye];for(var e in E.forEach(function(t,e){var n="container"===t?G:O[t];if("object"==_typeof(n)){var r=!!n.previousElementSibling&&n.previousElementSibling,o=n.parentNode;n.outerHTML=i[e],O[t]=r?r.nextElementSibling:o.firstElementChild}}),E=B=q=C=D=H=G=W=F=V=Y=K=U=R=J=ot=it=at=st=lt=ut=dt=ft=pt=vt=ht=mt=gt=At=Ct=Q=Tt=Ot=Nt=It=jt=Pt=zt=Bt=qt=Dt=Rt=Ht=Gt=Wt=Vt=Yt=Kt=Ut=Jt=Xt=Qt=$t=Zt=te=ee=ne=re=oe=ie=ae=se=le=ce=ue=de=fe=pe=ve=he=me=ge=ye=$=yt=bt=_e=Le=Ee=Se=we=xe=wt=Ce=Te=Ae=Oe=Ne=Ie=je=Pe=ze=Be=qe=Lt=Et=Fe=St=kt=Ve=Ye=Mt=Ke=De=Re=He=Ge=We=Xe=Qe=Ue=$e=Je=Ze=xt=_t=null,this)"rebuild"!==e&&(this[e]=null);X=!1},rebuild:function(){return ro(Nr(O,S))}}}function nn(t){t&&(yt=wt=xt=_t=pt=Lt=kt=Mt=!1)}function rn(){for(var t=z?Rt-Ot:Rt;t<0;)t+=U;return t%U+1}function on(t){return t=t?Math.max(0,Math.min(mt?U-1:U-ut,t)):0,z?t+Ot:t}function an(t){for(null==t&&(t=Rt),z&&(t-=Ot);t<0;)t+=U;return Math.floor(t%U)}function sn(){var t,e=an();return t=fe?e:it||ot?Math.ceil((e+1)*Oe/U-1):Math.floor(e/ut),!mt&&z&&Rt===Wt&&(t=Oe-1),t}function ln(){return m.innerWidth||N.documentElement.clientWidth||N.body.clientWidth}function cn(t){return"top"===t?"afterbegin":"beforeend"}function un(){var t=at?2*at-st:0;return function t(e){var n,r,o=N.createElement("div");return e.appendChild(o),r=(n=o.getBoundingClientRect()).right-n.left,o.remove(),r||t(e.parentNode)}(V)-t}function dn(t){if(O[t])return!0;if(j)for(var e in j)if(j[e][t])return!0;return!1}function fn(t,e){if(null==e&&(e=J),"items"===t&&it)return Math.floor((lt+st)/(it+st))||1;var n=O[t];if(j)for(var r in j)e>=parseInt(r)&&t in j[r]&&(n=j[r][t]);return"slideBy"===t&&"page"===n&&(n=fn("items")),z||"slideBy"!==t&&"items"!==t||(n=Math.floor(n)),n}function pn(t,e,n,r,o){var i="";if(void 0!==t){var a=t;e&&(a-=e),i=H?"margin: 0 "+a+"px 0 "+t+"px;":"margin: "+t+"px 0 "+a+"px 0;"}else if(e&&!n){var s="-"+e+"px";i="margin: 0 "+(H?s+" 0 0":"0 "+s+" 0")+";"}return!z&&o&&b&&r&&(i+=yn(r)),i}function vn(t,e,n){return t?(t+e)*Nt+"px":g?g+"("+100*Nt+"% / "+n+")":100*Nt/n+"%"}function hn(t,e,n){var r;if(t)r=t+e+"px";else{z||(n=Math.floor(n));var o=z?Nt:n;r=g?g+"(100% / "+o+")":100/o+"%"}return r="width:"+r,"inner"!==P?r+";":r+" !important;"}function mn(t){var e="";return!1!==t&&(e=(H?"padding-":"margin-")+(H?"right":"bottom")+": "+t+"px;"),e}function gn(t,e){var n=t.substring(0,t.length-e).toLowerCase();return n=n&&"-"+n+"-"}function yn(t){return gn(b,18)+"transition-duration:"+t/1e3+"s;"}function bn(t){return gn(w,17)+"animation-duration:"+t/1e3+"s;"}function wn(){if(dn("autoHeight")||ot||!H){var t=F.querySelectorAll("img");Rr(t,function(t){var e=t.src;e&&e.indexOf("data:image")<0?(to(t,ye),t.src="",t.src=e,Gr(t,"loading")):Ct||Bn(t)}),Tr(function(){Hn(Ur(t),function(){$=!0})}),!ot&&H&&(t=Dn(Rt,Math.min(Rt+ut-1,Nt-1))),Ct?xn():Tr(function(){Hn(Ur(t),xn)})}else z&&rr(),Ln(),En()}function xn(){if(ot){var e=mt?Rt:U-1;!function t(){K[e-1].getBoundingClientRect().right.toFixed(2)===K[e].getBoundingClientRect().left.toFixed(2)?_n():setTimeout(function(){t()},16)}()}else _n()}function _n(){H&&!ot||(Yn(),ot?(jt=er(),te&&(ee=Mn()),Wt=Dt(),nn($t||ee)):kr()),z&&rr(),Ln(),En()}function Ln(){if(Kn(),G.insertAdjacentHTML("afterbegin",'<div class="tns-liveregion tns-visually-hidden" aria-live="polite" aria-atomic="true">slide <span class="current">'+jn()+"</span>  of "+U+"</div>"),Z=G.querySelector(".tns-liveregion .current"),pe){var t=Lt?"stop":"start";Ve?Yr(Ve,{"data-action":t}):O.autoplayButtonOutput&&(G.insertAdjacentHTML(cn(O.autoplayPosition),'<button data-action="'+t+'">'+Ke[0]+t+Ke[1]+St[0]+"</button>"),Ve=G.querySelector("[data-action]")),Ve&&to(Ve,{click:mr}),Lt&&(vr(),kt&&to(F,ie),Mt&&to(F,ae))}if(de){if(Ce)Yr(Ce,{"aria-label":"Carousel Pagination"}),Rr(Ae=Ce.children,function(t,e){Yr(t,{"data-nav":e,tabindex:"-1","aria-label":Be+(e+1),"aria-controls":Qt})});else{for(var e="",n=fe?"":'style="display:none"',r=0;r<U;r++)e+='<button data-nav="'+r+'" tabindex="-1" aria-controls="'+Qt+'" '+n+' aria-label="'+Be+(r+1)+'"></button>';e='<div class="tns-nav" aria-label="Carousel Pagination">'+e+"</div>",G.insertAdjacentHTML(cn(O.navPosition),e),Ce=G.querySelector(".tns-nav"),Ae=Ce.children}if(Ar(),b){var o=b.substring(0,b.length-18).toLowerCase(),i="transition: all "+vt/1e3+"s";o&&(i="-"+o+"-"+i),qr(At,"[aria-controls^="+Qt+"-item]",i,Dr(At))}Yr(Ae[je],{"aria-label":Be+(je+1)+qe}),Kr(Ae[je],"tabindex"),Gr(Ae[je],ze),to(Ce,oe)}ue&&(_e||Ee&&Se||(G.insertAdjacentHTML(cn(O.controlsPosition),'<div class="tns-controls" aria-label="Carousel Navigation" tabindex="0"><button data-controls="prev" tabindex="-1" aria-controls="'+Qt+'">'+bt[0]+'</button><button data-controls="next" tabindex="-1" aria-controls="'+Qt+'">'+bt[1]+"</button></div>"),_e=G.querySelector(".tns-controls")),Ee&&Se||(Ee=_e.children[0],Se=_e.children[1]),O.controlsContainer&&Yr(_e,{"aria-label":"Carousel Navigation",tabindex:"0"}),(O.controlsContainer||O.prevButton&&O.nextButton)&&Yr([Ee,Se],{"aria-controls":Qt,tabindex:"-1"}),(O.controlsContainer||O.prevButton&&O.nextButton)&&(Yr(Ee,{"data-controls":"prev"}),Yr(Se,{"data-controls":"next"})),we=Jn(Ee),xe=Jn(Se),$n(),_e?to(_e,re):(to(Ee,re),to(Se,re))),Cn()}function En(){if(z&&x){var t={};t[x]=lr,to(F,t)}xt&&to(F,le,O.preventScrollOnTouch),_t&&to(F,ce),pt&&to(N,se),"inner"===P?Jt.on("outerResized",function(){kn(),Jt.emit("innerLoaded",Cr())}):(j||it||ot||gt||!H)&&to(m,{resize:Sn}),gt&&("outer"===P?Jt.on("innerLoaded",Rn):$t||Rn()),zn(),$t?Nn():ee&&On(),Jt.on("indexChanged",Gn),"inner"===P&&Jt.emit("innerLoaded",Cr()),"function"==typeof Ut&&Ut(Cr()),X=!0}function Sn(t){Tr(function(){kn(yr(t))})}function kn(t){if(X){"outer"===P&&Jt.emit("outerResized",Cr(t)),J=ln();var e,n=R,r=!1;j&&(An(),(e=n!==R)&&Jt.emit("newBreakpointStart",Cr(t)));var o,i,a,s,l=ut,c=$t,u=ee,d=pt,f=yt,p=wt,v=xt,h=_t,m=Lt,g=kt,y=Mt,b=Rt;if(e){var w=it,x=gt,_=bt,L=ct,E=St;if(!I)var S=st,k=at}if(pt=fn("arrowKeys"),yt=fn("controls"),wt=fn("nav"),xt=fn("touch"),ct=fn("center"),_t=fn("mouseDrag"),Lt=fn("autoplay"),kt=fn("autoplayHoverPause"),Mt=fn("autoplayResetOnVisibility"),e&&($t=fn("disable"),it=fn("fixedWidth"),vt=fn("speed"),gt=fn("autoHeight"),bt=fn("controlsText"),St=fn("autoplayText"),Et=fn("autoplayTimeout"),I||(at=fn("edgePadding"),st=fn("gutter"))),nn($t),lt=un(),H&&!ot||$t||(Yn(),H||(kr(),r=!0)),(it||ot)&&(jt=er(),Wt=Dt()),(e||it)&&(ut=fn("items"),dt=fn("slideBy"),(i=ut!==l)&&(it||ot||(Wt=Dt()),tn())),e&&$t!==c&&($t?Nn():function(){if(Zt){if(At.disabled=!1,F.className+=Xt,rr(),mt)for(var t=Ot;t--;)z&&Xr(K[t]),Xr(K[Nt-t-1]);if(!z)for(var e=Rt,n=Rt+U;e<n;e++){var r=K[e],o=e<Rt+ut?B:D;r.style.left=100*(e-Rt)/ut+"%",Gr(r,o)}Tn(),Zt=!1}}()),te&&(e||it||ot)&&(ee=Mn())!==u&&(ee?(or(nr(on(0))),On()):(function(){if(ne){if(at&&I&&(W.style.margin=""),Ot)for(var t="tns-transparent",e=Ot;e--;)z&&Wr(K[e],t),Wr(K[Nt-e-1],t);Tn(),ne=!1}}(),r=!0)),nn($t||ee),Lt||(kt=Mt=!1),pt!==d&&(pt?to(N,se):eo(N,se)),yt!==f&&(yt?_e?Xr(_e):(Ee&&Xr(Ee),Se&&Xr(Se)):_e?Jr(_e):(Ee&&Jr(Ee),Se&&Jr(Se))),wt!==p&&(wt?Xr(Ce):Jr(Ce)),xt!==v&&(xt?to(F,le,O.preventScrollOnTouch):eo(F,le)),_t!==h&&(_t?to(F,ce):eo(F,ce)),Lt!==m&&(Lt?(Ve&&Xr(Ve),Re||Ge||vr()):(Ve&&Jr(Ve),Re&&hr())),kt!==g&&(kt?to(F,ie):eo(F,ie)),Mt!==y&&(Mt?to(N,ae):eo(N,ae)),e){if(it===w&&ct===L||(r=!0),gt!==x&&(gt||(W.style.height="")),yt&&bt!==_&&(Ee.innerHTML=bt[0],Se.innerHTML=bt[1]),Ve&&St!==E){var M=Lt?1:0,A=Ve.innerHTML,C=A.length-E[M].length;A.substring(C)===E[M]&&(Ve.innerHTML=A.substring(0,C)+St[M])}}else ct&&(it||ot)&&(r=!0);if((i||it&&!ot)&&(Oe=Mr(),Ar()),(o=Rt!==b)?(Jt.emit("indexChanged",Cr()),r=!0):i?o||Gn():(it||ot)&&(zn(),Kn(),In()),i&&!z&&function(){for(var t=Rt+Math.min(U,ut),e=Nt;e--;){var n=K[e];Rt<=e&&e<t?(Gr(n,"tns-moving"),n.style.left=100*(e-Rt)/ut+"%",Gr(n,B),Wr(n,D)):n.style.left&&(n.style.left="",Gr(n,D),Wr(n,B)),Wr(n,q)}setTimeout(function(){Rr(K,function(t){Wr(t,"tns-moving")})},300)}(),!$t&&!ee){if(e&&!I&&(gt===autoheightTem&&vt===speedTem||Wn(),at===k&&st===S||(W.style.cssText=pn(at,st,it,vt,gt)),H)){z&&(F.style.width=vn(it,st,ut));var T=hn(it,st,ut)+mn(st);s=Dr(a=At)-1,"deleteRule"in a?a.deleteRule(s):a.removeRule(s),qr(At,"#"+Qt+" > .tns-item",T,Dr(At))}gt&&Rn(),r&&(rr(),Ht=Rt)}e&&Jt.emit("newBreakpointEnd",Cr(t))}}function Mn(){if(!it&&!ot)return U<=(ct?ut-(ut-1)/2:ut);var t=it?(it+st)*U:Q[U],e=at?lt+2*at:lt+st;return ct&&(e-=it?(lt-it)/2:(lt-(Q[Rt+1]-Q[Rt]-st))/2),t<=e}function An(){for(var t in R=0,j)(t=parseInt(t))<=J&&(R=t)}function Cn(){!Lt&&Ve&&Jr(Ve),!wt&&Ce&&Jr(Ce),yt||(_e?Jr(_e):(Ee&&Jr(Ee),Se&&Jr(Se)))}function Tn(){Lt&&Ve&&Xr(Ve),wt&&Ce&&Xr(Ce),yt&&(_e?Xr(_e):(Ee&&Xr(Ee),Se&&Xr(Se)))}function On(){if(!ne){if(at&&(W.style.margin="0px"),Ot)for(var t="tns-transparent",e=Ot;e--;)z&&Gr(K[e],t),Gr(K[Nt-e-1],t);Cn(),ne=!0}}function Nn(){if(!Zt){if(At.disabled=!0,F.className=F.className.replace(Xt.substring(1),""),Kr(F,["style"]),mt)for(var t=Ot;t--;)z&&Jr(K[t]),Jr(K[Nt-t-1]);if(H&&z||Kr(W,["style"]),!z)for(var e=Rt,n=Rt+U;e<n;e++){var r=K[e];Kr(r,["style"]),Wr(r,B),Wr(r,D)}Cn(),Zt=!0}}function In(){var t=jn();Z.innerHTML!==t&&(Z.innerHTML=t)}function jn(){var t=Pn(),e=t[0]+1,n=t[1]+1;return e===n?e+"":e+" to "+n}function Pn(t){null==t&&(t=nr());var n,r,o,i=Rt;if(ct||at?(ot||it)&&(r=-(parseFloat(t)+at),o=r+lt+2*at):ot&&(r=Q[Rt],o=r+lt),ot)Q.forEach(function(t,e){e<Nt&&((ct||at)&&t<=r+.5&&(i=e),.5<=o-t&&(n=e))});else{if(it){var e=it+st;n=ct||at?(i=Math.floor(r/e),Math.ceil(o/e-1)):i+Math.ceil(lt/e)-1}else if(ct||at){var a=ut-1;if(n=ct?(i-=a/2,Rt+a/2):Rt+a,at){var s=at*ut/lt;i-=s,n+=s}i=Math.floor(i),n=Math.ceil(n)}else n=i+ut-1;i=Math.max(i,0),n=Math.min(n,Nt-1)}return[i,n]}function zn(){Ct&&!$t&&Dn.apply(null,Pn()).forEach(function(t){if(!Hr(t,ge)){var e={};e[x]=function(t){t.stopPropagation()},to(t,e),to(t,ye),t.src=Vr(t,"data-src");var n=Vr(t,"data-srcset");n&&(t.srcset=n),Gr(t,"loading")}})}function Bn(t){Gr(t,"loaded"),qn(t)}function qn(t){Gr(t,"tns-complete"),Wr(t,"loading"),eo(t,ye)}function Dn(t,e){for(var n=[];t<=e;)Rr(K[t].querySelectorAll("img"),function(t){n.push(t)}),t++;return n}function Rn(){var t=Dn.apply(null,Pn());Tr(function(){Hn(t,Vn)})}function Hn(n,t){return $?t():(n.forEach(function(t,e){Hr(t,ge)&&n.splice(e,1)}),n.length?void Tr(function(){Hn(n,t)}):t())}function Gn(){zn(),Kn(),In(),$n(),function(){if(wt&&(je=0<=Ie?Ie:sn(),Ie=-1,je!==Pe)){var t=Ae[Pe],e=Ae[je];Yr(t,{tabindex:"-1","aria-label":Be+(Pe+1)}),Wr(t,ze),Yr(e,{"aria-label":Be+(je+1)+qe}),Kr(e,"tabindex"),Gr(e,ze),Pe=je}}()}function Wn(){z&&gt&&(T.style[b]=vt/1e3+"s")}function Fn(t,e){for(var n=[],r=t,o=Math.min(t+e,Nt);r<o;r++)n.push(K[r].offsetHeight);return Math.max.apply(null,n)}function Vn(){var t=gt?Fn(Rt,ut):Fn(Ot,U),e=T||W;e.style.height!==t&&(e.style.height=t+"px")}function Yn(){Q=[0];var n=H?"left":"top",r=H?"right":"bottom",o=K[0].getBoundingClientRect()[n];Rr(K,function(t,e){e&&Q.push(t.getBoundingClientRect()[n]-o),e===Nt-1&&Q.push(t.getBoundingClientRect()[r]-o)})}function Kn(){var t=Pn(),n=t[0],r=t[1];Rr(K,function(t,e){n<=e&&e<=r?Fr(t,"aria-hidden")&&(Kr(t,["aria-hidden","tabindex"]),Gr(t,me)):Fr(t,"aria-hidden")||(Yr(t,{"aria-hidden":"true",tabindex:"-1"}),Wr(t,me))})}function Un(t){return t.nodeName.toLowerCase()}function Jn(t){return"button"===Un(t)}function Xn(t){return"true"===t.getAttribute("aria-disabled")}function Qn(t,e,n){t?e.disabled=n:e.setAttribute("aria-disabled",n.toString())}function $n(){if(yt&&!ht&&!mt){var t=we?Ee.disabled:Xn(Ee),e=xe?Se.disabled:Xn(Se),n=Rt<=Gt,r=!ht&&Wt<=Rt;n&&!t&&Qn(we,Ee,!0),!n&&t&&Qn(we,Ee,!1),r&&!e&&Qn(xe,Se,!0),!r&&e&&Qn(xe,Se,!1)}}function Zn(t,e){b&&(t.style[b]=e)}function tr(t){return null==t&&(t=Rt),ot?(lt-(at?st:0)-(Q[t+1]-Q[t]-st))/2:it?(lt-it)/2:(ut-1)/2}function er(){var t=lt+(at?st:0)-(it?(it+st)*Nt:Q[Nt]);return ct&&!mt&&(t=it?-(it+st)*(Nt-1)-tr():tr(Nt-1)-Q[Nt-1]),0<t&&(t=0),t}function nr(t){var e;if(null==t&&(t=Rt),H&&!ot)if(it)e=-(it+st)*t,ct&&(e+=tr());else{var n=f?Nt:ut;ct&&(t-=tr()),e=100*-t/n}else e=-Q[t],ct&&ot&&(e+=tr());return It&&(e=Math.max(e,jt)),e+(!H||ot||it?"px":"%")}function rr(t){Zn(F,"0s"),or(t)}function or(t){null==t&&(t=nr()),F.style[zt]=Bt+t+qt}function ir(t,e,n,r){var o=t+ut;mt||(o=Math.min(o,Nt));for(var i=t;i<o;i++){var a=K[i];r||(a.style.left=100*(i-Rt)/ut+"%"),C&&v&&(a.style[v]=a.style[h]=C*(i-t)/1e3+"s"),Wr(a,e),Gr(a,n),r&&Tt.push(a)}}function ar(t,e){Pt&&tn(),Rt===Ht&&!e||(Jt.emit("indexChanged",Cr()),Jt.emit("transitionStart",Cr()),gt&&Rn(),Re&&t&&0<=["click","keydown"].indexOf(t.type)&&hr(),Kt=!0,en())}function sr(t){return t.toLowerCase().replace(/-/g,"")}function lr(t){if(z||Kt){if(Jt.emit("transitionEnd",Cr(t)),!z&&0<Tt.length)for(var e=0;e<Tt.length;e++){var n=Tt[e];n.style.left="",h&&v&&(n.style[h]="",n.style[v]=""),Wr(n,q),Gr(n,D)}if(!t||!z&&t.target.parentNode===F||t.target===F&&sr(t.propertyName)===sr(zt)){if(!Pt){var r=Rt;tn(),Rt!==r&&(Jt.emit("indexChanged",Cr()),rr())}"inner"===P&&Jt.emit("innerLoaded",Cr()),Kt=!1,Ht=Rt}}}function cr(t,e){if(!ee)if("prev"===t)ur(e,-1);else if("next"===t)ur(e,1);else{if(Kt){if(Ft)return;lr()}var n=an(),r=0;if("first"===t?r=-n:"last"===t?r=z?U-ut-n:U-1-n:("number"!=typeof t&&(t=parseInt(t)),isNaN(t)||(e||(t=Math.max(0,Math.min(U-1,t))),r=t-n)),!z&&r&&Math.abs(r)<ut){var o=0<r?1:-1;r+=Gt<=Rt+r-U?U*o:2*U*o*-1}Rt+=r,z&&mt&&(Rt<Gt&&(Rt+=U),Wt<Rt&&(Rt-=U)),an(Rt)!==an(Ht)&&ar(e)}}function ur(t,e){if(Kt){if(Ft)return;lr()}var n;if(!e){for(var r=br(t=yr(t));r!==_e&&[Ee,Se].indexOf(r)<0;)r=r.parentNode;var o=[Ee,Se].indexOf(r);0<=o&&(n=!0,e=0===o?-1:1)}if(ht){if(Rt===Gt&&-1===e)return void cr("last",t);if(Rt===Wt&&1===e)return void cr("first",t)}e&&(Rt+=dt*e,ot&&(Rt=Math.floor(Rt)),ar(n||t&&"keydown"===t.type?t:null))}function dr(){De=setInterval(function(){ur(null,Fe)},Et),Re=!0}function fr(){clearInterval(De),Re=!1}function pr(t,e){Yr(Ve,{"data-action":t}),Ve.innerHTML=Ke[0]+t+Ke[1]+e}function vr(){dr(),Ve&&pr("stop",St[1])}function hr(){fr(),Ve&&pr("start",St[0])}function mr(){Ge=Re?(hr(),!0):(vr(),!1)}function gr(t){t.focus()}function yr(t){return wr(t=t||m.event)?t.changedTouches[0]:t}function br(t){return t.target||m.event.srcElement}function wr(t){return 0<=t.type.indexOf("touch")}function xr(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function _r(){return o=Qe.y-Xe.y,i=Qe.x-Xe.x,t=Math.atan2(o,i)*(180/Math.PI),n=!1,90-(e=Vt)<=(r=Math.abs(90-Math.abs(t)))?n="horizontal":r<=e&&(n="vertical"),n===O.axis;var t,e,n,r,o,i}function Lr(t){if(Kt){if(Ft)return;lr()}Lt&&Re&&fr(),$e=!0,Je&&(Or(Je),Je=null);var e=yr(t);Jt.emit(wr(t)?"touchStart":"dragStart",Cr(t)),!wr(t)&&0<=["img","a"].indexOf(Un(br(t)))&&xr(t),Qe.x=Xe.x=e.clientX,Qe.y=Xe.y=e.clientY,z&&(Ue=parseFloat(F.style[zt].replace(Bt,"")),Zn(F,"0s"))}function Er(t){if($e){var e=yr(t);Qe.x=e.clientX,Qe.y=e.clientY,z?Je=Je||Tr(function(){!function t(e){if(Yt){if(Or(Je),$e&&(Je=Tr(function(){t(e)})),"?"===Yt&&(Yt=_r()),Yt){!be&&wr(e)&&(be=!0);try{e.type&&Jt.emit(wr(e)?"touchMove":"dragMove",Cr(e))}catch(t){}var n=Ue,r=Ze(Qe,Xe);if(!H||it||ot)n+=r,n+="px";else n+=f?r*ut*100/((lt+st)*Nt):100*r/(lt+st),n+="%";F.style[zt]=Bt+n+qt}}else $e=!1}(t)}):("?"===Yt&&(Yt=_r()),Yt&&(be=!0)),be&&t.preventDefault()}}function Sr(r){if($e){Je&&(Or(Je),Je=null),z&&Zn(F,""),$e=!1;var t=yr(r);Qe.x=t.clientX,Qe.y=t.clientY;var o=Ze(Qe,Xe);if(Math.abs(o)){if(!wr(r)){var n=br(r);to(n,{click:function t(e){xr(e),eo(n,{click:t})}})}z?Je=Tr(function(){if(H&&!ot){var t=-o*ut/(lt+st);t=0<o?Math.floor(t):Math.ceil(t),Rt+=t}else{var e=-(Ue+o);if(e<=0)Rt=Gt;else if(e>=Q[Nt-1])Rt=Wt;else for(var n=0;n<Nt&&e>=Q[n];)e>Q[Rt=n]&&o<0&&(Rt+=1),n++}ar(r,o),Jt.emit(wr(r)?"touchEnd":"dragEnd",Cr(r))}):Yt&&ur(r,0<o?-1:1)}}"auto"===O.preventScrollOnTouch&&(be=!1),Vt&&(Yt="?"),Lt&&!Re&&dr()}function kr(){(T||W).style.height=Q[Rt+ut]-Q[Rt]+"px"}function Mr(){var t=it?(it+st)*U/lt:U/ut;return Math.min(Math.ceil(t),U)}function Ar(){if(wt&&!fe&&Oe!==Ne){var t=Ne,e=Oe,n=Xr;for(Oe<Ne&&(t=Oe,e=Ne,n=Jr);t<e;)n(Ae[t]),t++;Ne=Oe}}function Cr(t){return{container:F,slideItems:K,navContainer:Ce,navItems:Ae,controlsContainer:_e,hasControls:ue,prevButton:Ee,nextButton:Se,items:ut,slideBy:dt,cloneCount:Ot,slideCount:U,slideCountNew:Nt,index:Rt,indexCached:Ht,displayIndex:rn(),navCurrentIndex:je,navCurrentIndexCached:Pe,pages:Oe,pagesCached:Ne,sheet:At,isOn:X,event:t||{}}}L&&console.warn("No slides found in",O.container)};return ro}();function rating(){var t=document.querySelectorAll("[data-rating-cover]");if(t)for(var e=0;e<t.length;e++){var n=t[e].getAttribute("data-id"),r=t[e].getAttribute("data-type"),o=t[e].querySelector("[data-rating]");s(n,r)?o&&o.classList.add("rated"):a.call(t[e],n,r)}function i(t,e,n,r){this.cover=e,this.id=n,this.type=r,this.stars=t,this.handleEvent=function(t){switch(t.type){case"click":this.sendRate(t.target);var e=this.cover.querySelector("[data-rating]");e&&e.classList.add("rated");for(var n=0;n<this.stars.length;n++)this.stars[n].removeEventListener("click",this,!1)}},this.sendRate=function(t){var e=t.getAttribute("data-rating-item");e&&window.send_ajax&&window.send_ajax("post",window.ajaxactionurl,{action:"rating",rating:e,type:this.type,id:this.id},{cover:this.cover,type:this.type,id:this.id},this.afterRate)},this.afterRate=function(t,e){if(t)try{var n=JSON.parse(t);if(n.status){if(n.params.users){var r=e.cover.querySelector("[data-users]");r&&(r.innerHTML=n.params.users)}if(n.params.average){var o=e.cover.getAttribute("data-rating-count"),i=e.cover.querySelector("[data-average]");i&&o&&(i.style.width=n.params.average*(100/o)+"%")}var a;if(a=window.cache_object.getItem("ratings"))a[e.type]?a[e.type].push(e.id):a[e.type]=[e.id];else(a={})[e.type]=[e.id];window.cache_object.setItem("ratings",a)}}catch(t){}};for(var o=0;o<this.stars.length;o++)this.stars[o].addEventListener("click",this,!1)}function a(t,e){var n=this.querySelectorAll("[data-rating-item]");n&&new i(n,this,t,e)}function s(t,e){var n=window.cache_object.getItem("ratings");return!(!n||!n[e]||-1===n[e].indexOf(t))}}function toggle_class_item(t,e,n){var r=document.querySelectorAll(t);if(r)for(var o=0;o<r.length;o++)r[o].addEventListener("click",i);function i(){var t=get_closest_parent(this,e);t&&n&&t.classList.toggle(n)}}"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),window.cache_object||(window.cache_object={localStorageNameSupported:!1,setItem:function(t,e){if(this.get(),e=JSON.stringify(e),this.localStorageNameSupported)localStorage.setItem(t,e);else{if(!t)return;document.cookie=escape(t)+"="+escape(e)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}},removeItem:function(t){if(this.get(),this.localStorageNameSupported)localStorage.removeItem(t);else{if(!t)return;document.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}},getItem:function(t){if(this.get(),this.localStorageNameSupported){var e=localStorage.getItem(t);return e=JSON.parse(e)}var n=document.cookie.match(new RegExp("(?:^|; )"+t.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));e=n?decodeURIComponent(n[1]):void 0;return e=JSON.parse(e)},get:function(){var t=window.localStorage;try{t.setItem("blop","1"),t.removeItem("blop"),this.localStorageNameSupported=!0}catch(t){this.localStorageNameSupported=!1}}});var optionsSlider={items:5,mouseDrag:!1,nav:!1,slideBy:1,fixedWidth:220,loop:!0,responsive:{320:{items:1,center:!0,fixedWidth:220,slideBy:"page"},400:{items:1,center:!1,fixedWidth:220,slideBy:"page"},545:{items:3,center:!1,fixedWidth:220,slideBy:"page"},900:{items:3,center:!1,fixedWidth:220,slideBy:"page"},1380:{items:5,fixedWidth:220,slideBy:1}}},sliders=document.querySelectorAll(".slots-slider-cover");if(sliders&&0<sliders.length)for(var i=0;i<sliders.length;i++){optionsSlider.container=sliders[i];var prevAll=sliders[i].parentNode.querySelector(".prev"),nextAll=sliders[i].parentNode.querySelector(".next"),controlsContainer=sliders[i].parentNode.querySelector(".next-prev-button");controlsContainer&&(optionsSlider.controlsContainer=controlsContainer),prevAll&&nextAll?(optionsSlider.prevButton=prevAll,optionsSlider.nextButton=nextAll):optionsSlider.controls=!1;var sliderTAll=tns(optionsSlider)}function toggle_class(t,n,r,e,o){var i=document.querySelector(t);i&&i.addEventListener("click",function(t){var e=document.querySelector(n);e&&r&&e.classList.toggle(r);window.lazyLoadInstance&&window.lazyLoadInstance.update()})}function get_closest_parent(t,e){for(var n=t;!n.classList.contains(e)&&"BODY"!=n.tagName;)n=n.parentNode;return n!=t&&n}function load_iframe(t,r,o){var e=document.querySelector(t);e&&e.addEventListener("click",function(){var t=this.getAttribute("data-iframe-link");if(t&&r){var e=get_closest_parent(this,r);if(e){e.classList.add(o);var n=e.querySelector("iframe");n&&(n.src=t)}}})}function adapt(t,e,n,r,o){window.addEventListener("resize",S),n&&"nocover"!=n&&function(){for(var t=document.querySelectorAll("table"),e=t.length-1;0<=e;e--){var n=document.createElement("div");n.classList.add("cover-table"),t[e].parentNode.insertBefore(n,t[e]),n.appendChild(t[e])}}();var i=document.querySelector(".site-cover"),a=document.querySelector("body");var s=[];if(e)for(var l=0;l<e.length;l++){var c=document.querySelectorAll(e[l]);0<c.length&&(s[l]=c)}var u=document.createElement("div");u.classList.add("cover-menu");var d,f,p,v=!1;(d=document.querySelector(".adapt-menu-icon"))||((d=document.createElement("div")).classList.add("adapt-menu-icon"),d.innerHTML='<span class="line-white-menu"></span>\n<span class="line-white-menu"></span>\n<span class="line-white-menu"></span>\n',v=!0);(f=document.querySelector(".icon-menu-bg"))||(f=document.createElement("div")).classList.add("icon-menu-bg");(p=document.querySelector(".menu-close-button"))||((p=document.createElement("div")).innerHTML='<span class="line-white-menu"></span>\n<span class="line-white-menu"></span>\n<span class="line-white-menu"></span>\n',p.classList.add("menu-close-button"));if(r)var h=document.querySelector(r);if(d&&0<s.length&&(v&&(h?h.appendChild(d):a.appendChild(d)),d.addEventListener("click",k),a.appendChild(u)),f&&0<s.length&&a.appendChild(f),p&&u&&(u.appendChild(p),p.addEventListener("click",M)),o&&0<s.length)for(var m=0;m<o.length;m++)o[m].addEventListener("click",M);if(u&&0<s.length)for(var g=0;g<s.length;g++)for(var y=0;y<s[g].length;y++)u.appendChild(s[g][y].cloneNode(!0));for(var b=u.querySelectorAll("*"),w=0;w<b.length;w++)b[w].removeAttribute("id");var x=u.querySelectorAll("a");if(x)for(var _=0;_<x.length;_++)x[_].addEventListener("click",M);var L=u.querySelectorAll(".menu-item-has-children");if(L)for(m=0;m<L.length;m++)L[m].addEventListener("click",E);function E(){this.classList.toggle("open-menu")}function S(){window.innerWidth<t?(d&&d.addEventListener("click",k),f&&f.addEventListener("click",k),p&&p.addEventListener("click",M)):(d&&(d.removeEventListener("click",k),d.classList.remove("activeGamburger")),u&&u.classList.remove("showmenu"),p&&p.removeEventListener("click",M),f&&(f.classList.remove("showbg"),f.removeEventListener("click",k)),a&&(a.classList.remove("overflow-hidden"),a.classList.remove("active-adapt-menu")),i&&i.classList.remove("overflow-hidden"))}function k(){d&&(d.removeEventListener("click",k),d.classList.add("activeGamburger"),d.addEventListener("click",M)),u&&u.classList.add("showmenu"),p&&p.addEventListener("click",M),f&&(f.classList.add("showbg"),f.removeEventListener("click",k),f.addEventListener("click",M)),a&&(a.classList.add("overflow-hidden"),a.classList.add("active-adapt-menu")),i&&i.classList.add("overflow-hidden")}function M(){d&&(d.addEventListener("click",k),d.classList.remove("activeGamburger"),d.removeEventListener("click",M)),f&&(f.classList.remove("showbg"),f.removeEventListener("click",M),f.addEventListener("click",k)),p&&p.removeEventListener("click",M),u&&u.classList.remove("showmenu"),a&&(a.classList.remove("overflow-hidden"),a.classList.remove("active-adapt-menu")),i&&i.classList.remove("overflow-hidden")}S()}function up_button(){var e=document.querySelector(".to-top"),t=document.querySelector("body"),n=!1;e||((e=document.createElement("img")).src="/img/up.png",e.style.opacity="0",e.className="up-button",t.appendChild(e),n=!0);function r(){var n=Date.now(),r=setInterval(function(){var t=Date.now()-n,e=window.pageYOffset||document.documentElement.scrollTop;5e3<=t||e<=0?clearInterval(r):function(t,e,n){if(0<n){var r=n-n*t/(2*e);window.scrollTo(0,Math.floor(r))}}(t,5e3,e)},10)}window.onscroll=function(){var t=window.pageYOffset||document.documentElement.scrollTop;.5*window.innerHeight<t?(n?(e.style.opacity="1",e.style.cursor="pointer"):e.classList.add("show-up-button"),e.addEventListener("click",r)):(e.classList.add("show-up-button"),n?(e.style.opacity="0",e.style.cursor="inherit"):e.classList.remove("show-up-button"),e.removeEventListener("click",r))}}if(function(){if("function"==typeof window.CustomEvent)return;function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}t.prototype=window.Event.prototype,window.CustomEvent=t}(),!window.send_ajax)var send_ajax=function(t,e,n,r,o,i,a){if(!n)return!1;if(a)c=new FormData(a);else if("GET"==t||"get"==t){var s=[];for(var l in n)s.push(l+"="+n[l]);e=e+"?"+(s=s.join("&"))}else{var c=new FormData;for(var u in n)c.hasOwnProperty("set")?c.set(u,n[u]):c.append(u,n[u])}var d=new XMLHttpRequest;d.open(t,e),"POST"==t||"post"==t?d.send(c):d.send(),d.onload=function(){var t=d.responseText;200<=d.status&&d.status<400?t&&o&&(r?o(t,r):o(t)):i&&(r?i(t,r):i(t))},d.onerror=function(){i&&(r?i({},r):i({}))}};function refreshDemo(){var t=document.querySelectorAll(".refresh-game");if(t)for(var e=0;e<t.length;e++)t[e].addEventListener("click",n);function n(){var t=this.closest(".slot-details-iframe");if(t){var e=t.querySelector("iframe");if(e){var n=e.src;e.src="",e.src=n}}}}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _defineProperty(t,e,n){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(t,e){if("object"!=_typeof(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return("string"===e?String:Number)(t);var r=n.call(t,e||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}function _regeneratorRuntime(){_regeneratorRuntime=function(){return a};var c,a={},t=Object.prototype,u=t.hasOwnProperty,s=Object.defineProperty||function(t,e,n){t[e]=n.value},e="function"==typeof Symbol?Symbol:{},o=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",r=e.toStringTag||"@@toStringTag";function i(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{i({},"")}catch(c){i=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),a=new C(r||[]);return s(i,"_invoke",{value:function(i,a,s){var l=f;return function(t,e){if(l===v)throw Error("Generator is already running");if(l===h){if("throw"===t)throw e;return{value:c,done:!0}}for(s.method=t,s.arg=e;;){var n=s.delegate;if(n){var r=k(n,s);if(r){if(r===m)continue;return r}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(l===f)throw l=h,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);l=v;var o=d(i,a,s);if("normal"===o.type){if(l=s.done?h:p,o.arg===m)continue;return{value:o.arg,done:s.done}}"throw"===o.type&&(l=h,s.method="throw",s.arg=o.arg)}}}(t,n,a)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}a.wrap=l;var f="suspendedStart",p="suspendedYield",v="executing",h="completed",m={};function g(){}function y(){}function b(){}var w={};i(w,o,function(){return this});var x=Object.getPrototypeOf,_=x&&x(x(T([])));_&&_!==t&&u.call(_,o)&&(w=_);var L=b.prototype=g.prototype=Object.create(w);function E(t){["next","throw","return"].forEach(function(e){i(t,e,function(t){return this._invoke(e,t)})})}function S(l,c){var e;s(this,"_invoke",{value:function(n,r){function t(){return new c(function(t,e){!function e(t,n,r,o){var i=d(l[t],l,n);if("throw"!==i.type){var a=i.arg,s=a.value;return s&&"object"==_typeof(s)&&u.call(s,"__await")?c.resolve(s.__await).then(function(t){e("next",t,r,o)},function(t){e("throw",t,r,o)}):c.resolve(s).then(function(t){a.value=t,r(a)},function(t){return e("throw",t,r,o)})}o(i.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}})}function k(t,e){var n=e.method,r=t.iterator[n];if(r===c)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=c,k(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=d(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,m;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=c),e.delegate=null,m):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function T(e){if(e||""===e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(u.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=c,t.done=!0,t};return r.next=r}}throw new TypeError(_typeof(e)+" is not iterable")}return s(L,"constructor",{value:y.prototype=b,configurable:!0}),s(b,"constructor",{value:y,configurable:!0}),y.displayName=i(b,r,"GeneratorFunction"),a.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,i(t,r,"GeneratorFunction")),t.prototype=Object.create(L),t},a.awrap=function(t){return{__await:t}},E(S.prototype),i(S.prototype,n,function(){return this}),a.AsyncIterator=S,a.async=function(t,e,n,r,o){void 0===o&&(o=Promise);var i=new S(l(t,e,n,r),o);return a.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},E(L),i(L,r,"Generator"),i(L,o,function(){return this}),i(L,"toString",function(){return"[object Generator]"}),a.keys=function(t){var n=Object(t),r=[];for(var e in n)r.push(e);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=T,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=c,this.done=!1,this.delegate=null,this.method="next",this.arg=c,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&u.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=c)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return i.type="throw",i.arg=n,r.next=t,e&&(r.method="next",r.arg=c),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e],i=o.completion;if("root"===o.tryLoc)return t("end");if(o.tryLoc<=this.prev){var a=u.call(o,"catchLoc"),s=u.call(o,"finallyLoc");if(a&&s){if(this.prev<o.catchLoc)return t(o.catchLoc,!0);if(this.prev<o.finallyLoc)return t(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return t(o.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return t(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&u.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=c),m}},a}function asyncGeneratorStep(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function _asyncToGenerator(s){return function(){var t=this,a=arguments;return new Promise(function(e,n){var r=s.apply(t,a);function o(t){asyncGeneratorStep(r,e,n,o,i,"next",t)}function i(t){asyncGeneratorStep(r,e,n,o,i,"throw",t)}o(void 0)})}}up_button(),adapt("1070",[".menu-block .menu-top"],"cover",'div[class*="header-top-block"]'),load_iframe(".btn-middle","iframe","active-frame"),toggle_class(".full-screen",".slot-details-iframe","full-screen-iframe"),toggle_class(".full-screen",".slot-page","full-screen-iframe-active"),toggle_class(".full-screen",".slot-top","full-screen-iframe-active"),toggle_class(".full-screen-overlay",".slot-description","full-screen-iframe"),toggle_class_item(".fqa-block-title","fqa-block-cover","active"),toggle_class(".search-icon-header",".search-form-block-header","active"),refreshDemo(),rating(),window.addEventListener("load",function(){var t={container:document,elements_selector:".lazy",data_src:"original",load_delay:200,threshold:0,callback_enter:function(t){window.hasOwnProperty("webpSupport")&&window.webpSupport&&t.classList.add("webp-support"),window.hasOwnProperty("jp2Supports")&&!window.webpSupport&&window.jp2Supports&&t.classList.add("jp2-support"),t.classList.contains("webp-support")||t.classList.contains("jp2-support")||t.classList.add("default-support")},callback_error:function(t){"IMG"===t.tagName&&t.setAttribute("src",window.transparent_pixel)}};window.hasOwnProperty("webpSupport")&&window.webpSupport&&(t.data_bg="bg-webp",t.data_bg_multi="bg-multi-webp"),window.hasOwnProperty("jp2Supports")&&!window.webpSupport&&window.jp2Supports&&(t.data_bg="bg-jp2",t.data_bg_multi="bg-multi-jp2"),window.lazyLoadInstance=new LazyLoad(t)}),function(t,e){"object"==("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).LazyLoad=e()}(void 0,function(){function e(){return(e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function l(t){return e({},V,t)}function o(t,e){var n,r="LazyLoad::Initialized",o=new t(e);try{n=new CustomEvent(r,{detail:{instance:o}})}catch(t){(n=document.createEvent("CustomEvent")).initCustomEvent(r,!1,!1,{instance:o})}window.dispatchEvent(n)}function y(t,e){return t.getAttribute("data-"+e)}function x(t){return y(t,"ll-status")}function _(t,e){return n=t,o="data-ll-status",void(null!==(r=e)?n.setAttribute(o,r):n.removeAttribute(o));var n,r,o}function L(t){return _(t,null)}function E(t){return null===x(t)}function a(t){return"native"===x(t)}function S(t,e,n,r){t&&(void 0===r?void 0===n?t(e):t(e,n):t(e,n,r))}function k(t,e){W?t.classList.add(e):t.className+=(t.className?" ":"")+e}function M(t,e){W?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")}function b(t){return t.llTempImage}function A(t,e){if(e){var n=e._observer;n&&n.unobserve(t)}}function C(t,e){t&&(t.loadingCount+=e)}function c(t,e){t&&(t.toLoadCount=e)}function r(t){for(var e,n=[],r=0;e=t.children[r];r+=1)"SOURCE"===e.tagName&&n.push(e);return n}function n(t,e,n){n&&t.setAttribute(e,n)}function i(t,e){t.removeAttribute(e)}function s(t){return!!t.llOriginalAttrs}function u(t){if(!s(t)){var e={};e.src=t.getAttribute("src"),e.srcset=t.getAttribute("srcset"),e.sizes=t.getAttribute("sizes"),t.llOriginalAttrs=e}}function T(t){if(s(t)){var e=t.llOriginalAttrs;n(t,"src",e.src),n(t,"srcset",e.srcset),n(t,"sizes",e.sizes)}}function d(t,e){n(t,"sizes",y(t,e.data_sizes)),n(t,"srcset",y(t,e.data_srcset)),n(t,"src",y(t,e.data_src))}function O(t){i(t,"src"),i(t,"srcset"),i(t,"sizes")}function N(t,e){var n=t.parentNode;n&&"PICTURE"===n.tagName&&r(n).forEach(e)}function f(t,e){var n=Q[t.tagName];n&&n(t,e)}function w(t,e,n){C(n,1),k(t,e.class_loading),_(t,Y),S(e.callback_loading,t,n)}function p(t,e){!e||0<e.loadingCount||0<e.toLoadCount||S(t.callback_finish,e)}function v(t,e,n){t.addEventListener(e,n),t.llEvLisnrs[e]=n}function h(t){return!!t.llEvLisnrs}function I(t){if(h(t)){var e=t.llEvLisnrs;for(var n in e){var r=e[n];o=n,i=r,t.removeEventListener(o,i)}delete t.llEvLisnrs}var o,i}function m(t,e,n){delete t.llTempImage,C(n,-1),n&&(n.toLoadCount-=1),M(t,e.class_loading),e.unobserve_completed&&A(t,n)}function j(n,r,o){var i=b(n)||n;h(i)||function(t){h(t)||(t.llEvLisnrs={});var e="VIDEO"===t.tagName?"loadeddata":"load";v(t,e,function(t){!function(t,e,n,r){var o=a(e);m(e,n,r),k(e,n.class_loaded),_(e,K),S(n.callback_loaded,e,r),o||p(n,r)}(0,n,r,o),I(i)}),v(t,"error",function(t){!function(t,e,n,r){var o=a(e);m(e,n,r),k(e,n.class_error),_(e,J),S(n.callback_error,e,r),o||p(n,r)}(0,n,r,o),I(i)})}(i)}function P(t,e,n){var r,o,i,a;a=t,-1<$.indexOf(a.tagName)?(j(r=t,o=e,i=n),f(r,o),w(r,o,i)):function(t,e,n){var r,o,i,a,s,l,c,u,d,f,p,v,h,m,g;t.llTempImage=document.createElement("IMG"),j(t,e,n),v=n,h=y(f=t,(p=e).data_bg),m=y(f,p.data_bg_hidpi),(g=F&&m?m:h)&&(f.style.backgroundImage='url("'.concat(g,'")'),b(f).setAttribute("src",g),w(f,p,v)),i=n,c=y(r=t,(o=e).data_bg_multi),u=y(r,o.data_bg_multi_hidpi),(d=F&&u?u:c)&&(r.style.backgroundImage=d,l=i,k(a=r,(s=o).class_applied),_(a,U),s.unobserve_completed&&A(a,s),S(s.callback_applied,a,l))}(t,e,n)}function g(t){return t.use_native&&"loading"in HTMLImageElement.prototype}function z(t){return Array.prototype.slice.call(t)}function B(t){return t.container.querySelectorAll(t.elements_selector)}function q(t){return x(t)===J}function D(t,e){return n=t||B(e),z(n).filter(E);var n}function t(t,e){var r,o,n,i,a,s=l(t);this._settings=s,this.loadingCount=0,n=s,i=this,G&&!g(n)&&(i._observer=new IntersectionObserver(function(t){!function(t,b,w){t.forEach(function(t){return(y=t).isIntersecting||0<y.intersectionRatio?(d=t.target,f=t,p=b,v=w,_(d,"entered"),k(d,p.class_entered),M(d,p.class_exited),m=d,g=v,p.unobserve_entered&&A(m,g),S(p.callback_enter,d,f,v),h=d,void(0<=X.indexOf(x(h))||P(d,p,v))):(e=t.target,n=t,r=b,o=w,void(E(e)||(k(e,r.class_exited),i=e,a=n,l=o,(s=r).cancel_on_exit&&x(i)===Y&&"IMG"===i.tagName&&(I(i),N(u=i,function(t){O(t)}),O(u),N(c=i,function(t){T(t)}),T(c),M(i,s.class_loading),C(l,-1),L(i),S(s.callback_cancel,i,a,l)),S(r.callback_exit,e,n,o))));var e,n,r,o,i,a,s,l,c,u,d,f,p,v,h,m,g,y})}(t,n,i)},{root:(a=n).container===document?null:a.container,rootMargin:a.thresholds||a.threshold+"px"})),r=s,o=this,R&&window.addEventListener("online",function(){var e,t,n;t=o,(n=B(e=r),z(n).filter(q)).forEach(function(t){M(t,e.class_error),L(t)}),t.update()}),this.update(e)}var R="undefined"!=typeof window,H=R&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),G=R&&"IntersectionObserver"in window,W=R&&"classList"in document.createElement("p"),F=R&&1<window.devicePixelRatio,V={elements_selector:".lazy",container:H||R?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_entered:"entered",class_exited:"exited",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1},Y="loading",K="loaded",U="applied",J="error",X=[Y,"loaded",U,J],Q={IMG:function(t,e){N(t,function(t){u(t),d(t,e)}),u(t),d(t,e)},IFRAME:function(t,e){n(t,"src",y(t,e.data_src))},VIDEO:function(t,e){r(t).forEach(function(t){n(t,"src",y(t,e.data_src))}),n(t,"poster",y(t,e.data_poster)),n(t,"src",y(t,e.data_src)),t.load()}},$=["IMG","IFRAME","VIDEO"],Z=["IMG","IFRAME"];return t.prototype={update:function(t){var e,n,r,o,i,a=this._settings,s=D(t,a);c(this,s.length),!H&&G?g(a)?(o=a,i=this,s.forEach(function(t){var e,n;-1!==Z.indexOf(t.tagName)&&(t.setAttribute("loading","lazy"),j(e=t,n=o,i),f(e,n),_(e,"native"))}),c(i,0)):(n=s,(e=this._observer).disconnect(),r=e,n.forEach(function(t){r.observe(t)})):this.loadAll(s)},destroy:function(){this._observer&&this._observer.disconnect(),B(this._settings).forEach(function(t){delete t.llOriginalAttrs}),delete this._observer,delete this._settings,delete this.loadingCount,delete this.toLoadCount},loadAll:function(t){var e=this,n=this._settings;D(t,n).forEach(function(t){A(t,e),P(t,n,e)})}},t.load=function(t,e){var n=l(e);P(t,n)},t.resetStatus=function(t){L(t)},R&&function(t,e){if(e)if(e.length)for(var n,r=0;n=e[r];r+=1)o(t,n);else o(t,e)}(t,window.lazyLoadOptions),t});var loadMore={generateUUID:function(){var n=(new Date).getTime(),r="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random();return 0<n?(e=(n+e)%16|0,n=Math.floor(n/16)):(e=(r+e)%16|0,r=Math.floor(r/16)),("x"===t?e:3&e|8).toString(16)})}},buttons=document.querySelectorAll("[data-load-more]");function initLoad(t,e){loadMore.initLoad.call(this,t,e),e.after_init_function&&window.hasOwnProperty(e.after_init_function)&&window[e.after_init_function].call(this,t,e)}function test(t,e){}loadMore.buttons=buttons||!1,loadMore.buttonsConfig={},loadMore.buffer={},loadMore.ajaxactionurl=!!window.ajaxactionurl&&window.ajaxactionurl,loadMore.init=function(){if(this.buttons){for(var t=0;t<this.buttons.length;t++){var e=this.buttons[t].getAttribute("data-load-more-button-id");e||(e=loadMore.generateUUID(),this.buttons[t].setAttribute("data-load-more-button-id",e)),loadMore.prepareConfig.call(this.buttons[t]),this.buttons[t].addEventListener("click",this.load.bind(this.buttons[t]),!1)}document.addEventListener("scroll",this.checkIntoView.bind(this)),window.addEventListener("resize",this.checkIntoView.bind(this))}},loadMore.checkIntoView=function(){for(var o=this,t=function(){var t,e,n=o.buttons[i],r=n.getAttribute("data-load-more-button-id");document.body.contains(n)&&(null!==(t=o.buffer[r])&&void 0!==t&&t.loading||null!==(e=o.buffer[r])&&void 0!==e&&e.data||(o.buffer[r]={loading:!0,data:null},loadMore.fetchToBuffer.call(o.buttons[i]).then(function(t){o.buffer[r].data=t,o.buffer[r].loading=!1})))},i=0;i<this.buttons.length;i++)t()},loadMore.fetchToBuffer=_asyncToGenerator(_regeneratorRuntime().mark(function t(){var e,n,r,o,i,a;return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.getAttribute("data-load-more-button-id"),!(n=loadMore.buttonsConfig[e])){t.next=11;break}for(o in r=new FormData,n.param)r.hasOwnProperty("set")?r.set(o,n.param[o]):r.append(o,n.param[o]);return i=new Request(loadMore.ajaxactionurl,{method:"POST",body:r}),t.next=7,fetch(i);case 7:if((a=t.sent).ok){t.next=10;break}throw new Error("Response status: ".concat(a.status));case 10:return t.abrupt("return",a.text());case 11:case"end":return t.stop()}},t,this)})),loadMore.testMobile=function(){var t=!1;return(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))&&(t=!0),t},loadMore.load=function(){var t=this.getAttribute("data-load-more-button-id"),e=loadMore.buttonsConfig[t],n=e.options,r=e.param,o=loadMore.buffer[t];!o||null!=o&&o.loading||!o.data?loadMore.ajaxactionurl&&n&&r&&(n.loading_progress&&(n.load_default||(n.load_default=n.element.innerHTML),n.element.innerHTML=n.loading_progress),send_ajax("POST",loadMore.ajaxactionurl,r,e,initLoad.bind(this),test)):(n.loading_progress&&(n.load_default||(n.load_default=n.element.innerHTML),n.element.innerHTML=n.loading_progress),initLoad.call(this,o.data,e))},loadMore.prepareConfig=function(){var t={},e={},n=this.getAttribute("data-load-more-button-id");t.element=this,t.language=!!this.getAttribute("data-language")&&this.getAttribute("data-language"),t.template=!!this.getAttribute("data-template")&&this.getAttribute("data-template"),t.mobile=loadMore.testMobile()?"mobile":"desktop",t.args=!!this.getAttribute("data-args")&&this.getAttribute("data-args"),t.max_pages=this.getAttribute("data-max-pages")?this.getAttribute("data-max-pages"):1,t.load_next=!!this.getAttribute("data-load-next")&&this.getAttribute("data-load-next"),t.load_default=!!this.getAttribute("data-load-default")&&this.getAttribute("data-load-default"),t.loading_progress=!!this.getAttribute("data-loading-progress")&&this.getAttribute("data-loading-progress"),t.page=this.getAttribute("data-current-page")?this.getAttribute("data-current-page"):1,t.selector=!!this.getAttribute("data-selector")&&this.getAttribute("data-selector"),t.insert_before=!!this.getAttribute("data-insert-before")&&this.getAttribute("data-insert-before"),t.lazy=!!this.hasAttribute("data-lazy"),t.after_init_function=!!this.hasAttribute("data-after-init-function")&&this.getAttribute("data-after-init-function"),t.insert_conteiner=!!this.hasAttribute("data-insert-container")&&this.getAttribute("data-insert-container"),e.action=this.getAttribute("data-action")?this.getAttribute("data-action"):"loadmore",e.page=t.page,e.args=t.args,e.template=t.template,e.mobile=t.mobile,e.language=t.language,loadMore.buttonsConfig[n]={options:t,param:e}},loadMore.initLoad=function(t,e){var n=this.getAttribute("data-load-more-button-id"),r=document.createElement("div");r.innerHTML=t,r.classList.add("response_container");var o=Number(e.options.page)+1;e.options.element.setAttribute("data-current-page",o),e.options.page=o,e.param.page=o;var i=r.querySelectorAll(e.options.selector),a=e.options.insert_conteiner?this.closest(e.options.insert_conteiner):document,s=(a=a||document).querySelector(e.options.insert_before);if(i)if(s)for(var l=0;l<i.length;l++)s.parentNode.insertBefore(i[l],s),e.options.lazy&&window.lazyLoadInstance&&window.lazyLoadInstance.update(),e.options.lazy&&window.lazyLoadInstanceScr&&window.lazyLoadInstanceScr.update();else if(e.options.element)for(l=0;l<i.length;l++)e.options.element.parentNode.insertBefore(i[l],e.options.element),e.options.lazy&&window.lazyLoadInstance&&window.lazyLoadInstance.update(),e.options.lazy&&window.lazyLoadInstanceScr&&window.lazyLoadInstanceScr.update();r.remove(),+o==+e.options.max_pages?(e.options.element.remove(),delete loadMore.buffer[n]):(loadMore.buffer[n]=_objectSpread(_objectSpread({},loadMore.buffer[n]),{},{loading:!0}),loadMore.fetchToBuffer.call(this).then(function(t){loadMore.buffer[n].data=t,loadMore.buffer[n].loading=!1})),e.options.load_next?e.options.element.innerHTML=e.options.load_next:e.options.load_default&&(e.options.element.innerHTML=e.options.load_default)},loadMore.init();