function r(n,t){for(var i=0;i=r))return l();h(s)}}function l(){f=!0}function d(){o&&cancelAnimationFrame(o),f=!(o=c=0)}return{start:function(n){n||d(),u=e()-(n?c*t:0),f=!1,h(s)},rewind:function(){u=e(),c=0,i&&i(c)},pause:l,cancel:d,set:function(n){t=n},isPaused:function(){return f}}}function a(n){var t=n;return{set:function(n){t=n},is:function(n){return b(g(n),t)}}}var n="Arrow",Un=n+"Left",qn=n+"Right",s=n+"Up",n=n+"Down",Bn="ttb",l={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[s,qn],ArrowRight:[n,Un]};var Q="role",Jn="tabindex",t="aria-",Kn=t+"controls",Vn=t+"current",Qn=t+"selected",Z=t+"label",Zn=t+"labelledby",$n=t+"hidden",nt=t+"orientation",tt=t+"roledescription",it=t+"live",rt=t+"busy",ut=t+"atomic",ot=[Q,Jn,"disabled",Kn,Vn,Z,Zn,$n,nt,tt],et=_,ct=_+"__track",ft=_+"__list",at=_+"__slide",st=at+"--clone",lt=at+"__container",dt=_+"__arrows",vt=_+"__arrow",ht=vt+"--prev",pt=vt+"--next",gt=_+"__pagination",mt=gt+"__page",yt=_+"__progress"+"__bar",bt=_+"__toggle",wt=_+"__sr",$="is-active",_t="is-prev",xt="is-next",kt="is-visible",Et="is-loading",St="is-focus-in",Lt=[$,kt,_t,xt,Et,St];var At="touchstart mousedown",Ot="touchmove mousemove",Mt="touchend touchcancel mouseup click";var Dt="slide",Pt="loop",zt="fade";function It(u,r,t,o){var e,n=V(u),i=n.on,c=n.emit,f=n.bind,a=u.Components,s=u.root,l=u.options,d=l.isNavigation,v=l.updateOnMove,h=l.i18n,p=l.pagination,g=l.slideFocus,m=a.Direction.resolve,y=M(o,"style"),b=M(o,Z),w=-1o.perPage}}},Layout:function(t,n,i){var r,u,o,e=(a=V(t)).on,c=a.bind,f=a.emit,a=n.Slides,s=n.Direction.resolve,l=(n=n.Elements).root,d=n.track,v=n.list,h=a.getAt,p=a.style;function g(){u=null,r=i.direction===Bn,O(l,"maxWidth",L(i.width)),O(d,s("paddingLeft"),y(!1)),O(d,s("paddingRight"),y(!0)),m()}function m(){var n=j(l);u&&u.width===n.width&&u.height===n.height||(O(d,"height",function(){var n="";r&&(yn(n=b(),"height or heightRatio is missing."),n="calc("+n+" - "+y(!1)+" - "+y(!0)+")");return n}()),p(s("marginRight"),L(i.gap)),p("width",i.autoWidth?null:L(i.fixedWidth)||(r?"":w())),p("height",L(i.fixedHeight)||(r?i.autoHeight?null:w():b()),!0),u=n,f(Cn),o!==(o=t.is(zt)||E()>_())&&f("overflow",o))}function y(n){var t=i.padding,n=s(n?"right":"left");return t&&L(t[n]||(rn(t)?0:t))||"0px"}function b(){return L(i.height||j(v).width*i.heightRatio)}function w(){var n=L(i.gap);return"calc((100%"+(n&&" + "+n)+")/"+(i.perPage||1)+(n&&" - "+n)+")"}function _(){return j(v)[s("width")]}function x(n,t){n=h(n||0);return n?j(n.slide)[s("width")]+(t?0:S()):0}function k(n,t){var i,n=h(n);return n?(n=j(n.slide)[s("right")],i=j(v)[s("left")],Y(n-i)+(t?0:S())):0}function E(){return k(t.length-1,!0)-k(0,!0)+x(0,!0)}function S(){var n=h(0);return n&&parseFloat(O(n.slide,s("marginRight")))||0}return{mount:function(){var n,t,i;g(),c(window,"resize load",(n=R(f,K),function(){i||(i=Hn(t||0,function(){n(),i=null},null,1)).start()})),e([J,B],g),e(K,m)},listSize:_,slideSize:x,sliderSize:E,totalSize:k,getPadding:function(n){return parseFloat(O(d,s("padding"+(n?"Right":"Left"))))||0}}},Clones:function(c,i,f){var t,n=V(c),r=n.on,a=n.emit,s=i.Elements,l=i.Slides,u=i.Direction.resolve,d=[];function o(){if(t=h()){var u=t,o=l.get().slice(),e=o.length;if(e){for(;o.lengthc.Controller.getEnd(),(t<0||i)&&(n=w(n,i)))}return n}(n),O(p,"transform","translate"+v("X")+"("+t+"px)"),n!==t&&f(Yn))}function w(n,t){var i=n-S(t),r=d();return n-=h(r*(_n(Y(i)/r)||1))*(t?1:-1)}function _(){b(E()),e.cancel()}function x(n){for(var t=c.Slides.get(),i=0,r=1/0,u=0;uh(S(!0));return i||n},reposition:m}},Controller:function(u,o,e){var c,f,a,s,n=V(u),t=n.on,i=n.emit,l=o.Move,d=l.getPosition,r=l.getLimit,v=l.toPosition,h=(n=o.Slides).isEnough,p=n.getLength,g=e.compact,m=u.is(Pt),y=u.is(Dt),b=R(S,!1),w=R(S,!0),_=e.start||0,x=_;function k(){f=p(!0),a=e.perMove,s=e.perPage,c=O();var n=H(_,0,g?c:f-1);n!==_&&(_=n,l.reposition())}function E(){c!==O()&&i("ei")}function S(n,t){var i=a||(z()?1:s),i=L(_+i*(n?-1:1),_,!(a||z()));return-1===i&&y&&!xn(d(),r(!n),1)?n?0:c:t?i:A(i)}function L(n,t,i){var r;return h()||z()?((r=function(n){if(y&&"move"===e.trimSpace&&n!==_)for(var t=d();t===v(n,!0)&&kn(n,0,u.length-1,!e.rewind);)n<_?--n:++n;return n}(n))!==n&&(t=n,n=r,i=!1),n<0||c])(\d+)?/)||[],i=r[1],r=r[2],"+"===i||"-"===i?t=L(_+ +(""+i+(+r||1)),_):">"===i?t=r?M(+r):b(!0):"<"===i&&(t=w(!0))):t=m?n:H(n,0,c)}return t}(n)))&&(t||r!==_)&&(P(r),l.move(n,r,x,i))},scroll:function(n,t,i,r){o.Scroll.scroll(n,t,i,function(){var n=A(l.toIndex(d()));P(g?W(n,c):n),r&&r()})},getNext:b,getPrev:w,getAdjacent:S,getEnd:O,setIndex:P,getIndex:function(n){return n?x:_},toIndex:M,toPage:D,toDest:function(n){return n=l.toIndex(n),y?H(n,0,c):n},hasFocus:z,isBusy:I}},Arrows:function(u,n,t){var i,r,o=V(u),e=o.on,c=o.bind,f=o.emit,a=t.classes,s=t.i18n,l=n.Elements,d=n.Controller,v=l.arrows,h=l.track,p=v,g=l.prev,m=l.next,y={};function b(){var n=t.arrows;!n||g&&m||(p=v||T("div",a.arrows),g=k(!0),m=k(!1),i=!0,S(p,[g,m]),v||on(p,h)),g&&m&&(an(y,{prev:g,next:m}),ln(p,n?"":"none"),P(p,r=dt+"--"+t.direction),n&&(e([Mn,B,jn,"ei"],E),c(m,"click",R(x,">")),c(g,"click",R(x,"<")),E(),I([g,m],Kn,h.id),f("arrows:mounted",g,m))),e(J,w)}function w(){_(),b()}function _(){o.destroy(),X(p,r),i?(N(v?[g,m]:p),g=m=null):z([g,m],ot)}function x(n){d.go(n,!0)}function k(n){return hn('