(()=>{var e,t={6942:(e,t)=>{var a;!function(){"use strict";var l={}.hasOwnProperty;function i(){for(var e="",t=0;t{"use strict";const l=window.kadence.icons;var i=a(6942),o=a.n(i);const r=window.lodash,n=window.React;var s=a.n(n);const d=window.ReactJSXRuntime;var c=Object.defineProperty,u=Object.defineProperties,g=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable,b=(e,t,a)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,k=(e,t)=>{for(var a in t||(t={}))h.call(t,a)&&b(e,a,t[a]);if(m)for(var a of m(t))p.call(t,a)&&b(e,a,t[a]);return e},y=(e,t)=>u(e,g(t)),f=(e,t)=>t.filter(e),v=(e,t)=>e.top===t.top?e.leftfunction(e,t){for(let a=0,l=t.length;a((e,t)=>{let a=e.right-e.left>=t.width;if(!e.bottom)return a;let l=e.bottom-e.top>=t.height;return a&&l})(e,t),e))({availableSpots:t,stone:e}),i={left:l.left,top:l.top},o=(({availableSpots:e,optimalSpot:t,containerSize:a,stone:l})=>{let i={right:a,top:t.top+l.height,left:t.left};t.bottom&&(i.bottom=t.bottom);for(let t=0,a=e.length;te!==l),stone:e,containerSize:a}),r=[...t,o],n=(({spots:e,position:t,optimalSpot:a,stone:l})=>e.map((e,i,o)=>{if(e===a)return(({stone:e,position:t,spotsList:a,optimalSpot:l})=>{let i=k({},l);return i.left=t.left+e.width,(e=>e.right-e.left<5||e.bottom&&e.bottom-e.top<5)(i)||(({spotsList:e,usedSpot:t})=>e.some(e=>e!==t&&t.left===e.left))({usedSpot:i,spotsList:a})?null:i})({stone:l,position:t,optimalSpot:a,spotsList:o});let r=(({position:e,spot:t,stone:a})=>{if(e.left>t.left&&t.right>=e.left&&e.top+a.height>t.top){if(t.bottom&&t.bottom{if(e.left+t.width>a.left&&e.top>=a.top){if(a.bottom&&a.bottom((e,t)=>[...t].sort(e))(v,e))(r),{position:i,availableSpots:r}}var w=e=>({fade:`${e}ms opacity ease`,fadeMove:`\n ${e}ms opacity ease,\n ${e}ms top ease,\n ${e}ms left ease\n `,move:`\n ${e}ms top ease,\n ${e}ms left ease\n `}),_=({style:e,position:t,transition:a,transitionDuration:l})=>k(k(y(k({},e),{position:"absolute"}),(e=>e?y(k({},e),{opacity:1}):{opacity:0,top:0,left:0})(t)),(({transition:e,transitionDuration:t})=>e?{transition:w(t)[e]}:null)({transition:a,transitionDuration:l})),C=e=>{var t=e,{children:a,style:l,transition:i=!1,transitionDuration:o=500,transitionStep:r=50}=t,s=((e,t)=>{var a={};for(var l in e)h.call(e,l)&&t.indexOf(l)<0&&(a[l]=e[l]);if(null!=e&&m)for(var l of m(e))t.indexOf(l)<0&&p.call(e,l)&&(a[l]=e[l]);return a})(t,["children","style","transition","transitionDuration","transitionStep"]);let c=(0,n.useRef)([]),u=(0,n.useRef)(null),g=(()=>{let[e,t]=(0,n.useState)(),a=(0,n.useRef)(function(e){let t;return function(...a){t&&clearTimeout(t),t=setTimeout(function(){t=null,e.apply(null,a)},300)}}(t));return(0,n.useEffect)(()=>{let e=()=>{a.current(window.innerWidth)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),e})(),b=(e=>{let[t,a]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let t=new ResizeObserver(e=>{for(let t of e)a(t.contentRect.width)});return e.current&&t.observe(e.current),()=>{t.disconnect()}},[e]),t})(u),{positions:f,containerHeight:v}=(({boxesRefs:e,wrapperRef:t,children:a,windowWidth:l,wrapperWidth:i})=>{let[{positions:o,containerHeight:r,stones:s,availableSpots:d},c]=(0,n.useState)({positions:[],containerHeight:null,stones:[],availableSpots:[]});return(0,n.useEffect)(()=>{var a,l;let i=(e=>e.reduce((e,t)=>{if(!t)return e;let a=t.getBoundingClientRect();return e.push({width:a.width,height:a.height}),e},[]))(e.current),o=null!=(l=null==(a=t.current)?void 0:a.offsetWidth)?l:0;if(null===o)return;let r=(({stones:e,containerSize:t})=>{if(!e.length)return{positions:[],containerHeight:0,availableSpots:[]};let a=0,l=[],i=[{top:0,left:0,right:t}];for(let o of e){let e=x({availableSpots:i,stone:o,containerSize:t}),r=e.position.top+o.height;a{if("object"!=typeof e||!e||!("type"in e))return e;let a={style:_({style:e.props.style,position:f[t],transition:i,transitionDuration:o}),ref:e=>c.current[t]=e};return(0,n.cloneElement)(e,k(k({},e.props),a))})}))};const j=window.kadence.helpers,S=window.kadence.components;function N(e,t){for(var a=0;a-1}function G(e,t){return e.push.apply(e,I(t)),e}function V(e,t,a){e&&K(t,function(t){t&&e.classList[a?"add":"remove"](t)})}function q(e,t){V(e,E(t)?t.split(" "):t,!0)}function X(e,t){K(t,e.appendChild.bind(e))}function Z(e,t){K(e,function(e){var a=(t||e).parentNode;a&&a.insertBefore(e,t)})}function J(e,t){return M(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function Y(e,t){var a=e?T(e.children):[];return t?a.filter(function(e){return J(e,t)}):a}function Q(e,t){return t?Y(e,t)[0]:e.firstElementChild}var ee=Object.keys;function te(e,t,a){return e&&(a?ee(e).reverse():ee(e)).forEach(function(a){"__proto__"!==a&&t(e[a],a)}),e}function ae(e){return T(arguments,1).forEach(function(t){te(t,function(a,l){e[l]=t[l]})}),e}function le(e){return T(arguments,1).forEach(function(t){te(t,function(t,a){D(t)?e[a]=t.slice():A(t)?e[a]=le({},A(e[a])?e[a]:{},t):e[a]=t})}),e}function ie(e,t){K(t||ee(e),function(t){delete e[t]})}function oe(e,t){K(e,function(e){K(t,function(t){e&&e.removeAttribute(t)})})}function re(e,t,a){A(t)?te(t,function(t,a){re(e,a,t)}):K(e,function(e){U(a)||""===a?oe(e,t):e.setAttribute(t,String(a))})}function ne(e,t,a){var l=document.createElement(e);return t&&(E(t)?q(l,t):re(l,t)),a&&X(a,l),l}function se(e,t,a){if(H(a))return getComputedStyle(e)[t];U(a)||(e.style[t]=""+a)}function de(e,t){se(e,"display",t)}function ce(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function ue(e,t){return e.getAttribute(t)}function ge(e,t){return e&&e.classList.contains(t)}function me(e){return e.getBoundingClientRect()}function he(e){K(e,function(e){e&&e.parentNode&&e.parentNode.removeChild(e)})}function pe(e){return Q((new DOMParser).parseFromString(e,"text/html").body)}function be(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function ke(e,t){return e&&e.querySelector(t)}function ye(e,t){return t?T(e.querySelectorAll(t)):[]}function fe(e,t){V(e,t,!1)}function ve(e){return e.timeStamp}function xe(e){return E(e)?e:e?e+"px":""}var we="splide",_e="data-"+we;function Ce(e,t){if(!e)throw new Error("["+we+"] "+(t||""))}var je=Math.min,Se=Math.max,Ne=Math.floor,$e=Math.ceil,Oe=Math.abs;function Te(e,t,a){return Oe(e-t)0)-+(e<0)}function ze(e,t){return K(t,function(t){e=e.replace("%s",""+t)}),e}function Be(e){return e<10?"0"+e:""+e}var Ae={};function De(){var e=[];function t(e,t,a){K(e,function(e){e&&K(t,function(t){t.split(" ").forEach(function(t){var l=t.split(".");a(e,l[0],l[1])})})})}return{bind:function(a,l,i,o){t(a,l,function(t,a,l){var r="addEventListener"in t,n=r?t.removeEventListener.bind(t,a,i,o):t.removeListener.bind(t,i);r?t.addEventListener(a,i,o):t.addListener(i),e.push([t,a,l,i,n])})},unbind:function(a,l,i){t(a,l,function(t,a,l){e=e.filter(function(e){return!!(e[0]!==t||e[1]!==a||e[2]!==l||i&&e[3]!==i)||(e[4](),!1)})})},dispatch:function(e,t,a){var l,i=!0;return"function"==typeof CustomEvent?l=new CustomEvent(t,{bubbles:i,detail:a}):(l=document.createEvent("CustomEvent")).initCustomEvent(t,i,!1,a),e.dispatchEvent(l),l},destroy:function(){e.forEach(function(e){e[4]()}),O(e)}}}var Fe="mounted",Ee="ready",He="move",Ue="moved",Me="click",Ie="active",Ke="inactive",We="visible",Ge="hidden",Ve="refresh",qe="updated",Xe="resize",Ze="resized",Je="drag",Ye="dragging",Qe="dragged",et="scroll",tt="scrolled",at="destroy",lt="arrows:mounted",it="arrows:updated",ot="pagination:mounted",rt="pagination:updated",nt="navigation:mounted",st="autoplay:play",dt="autoplay:playing",ct="autoplay:pause",ut="lazyload:loaded",gt="ei";function mt(e){var t=e?e.event.bus:document.createDocumentFragment(),a=De();return e&&e.event.on(at,a.destroy),ae(a,{bus:t,on:function(e,l){a.bind(t,I(e).join(" "),function(e){l.apply(l,D(e.detail)?e.detail:[])})},off:P(a.unbind,t),emit:function(e){a.dispatch(t,e,T(arguments,1))}})}function ht(e,t,a,l){var i,o,r=Date.now,n=0,s=!0,d=0;function c(){if(!s){if(n=e?je((r()-i)/e,1):1,a&&a(n),n>=1&&(t(),i=r(),l&&++d>=l))return u();o=z(c)}}function u(){s=!0}function g(){o&&cancelAnimationFrame(o),n=0,o=0,s=!0}return{start:function(t){t||g(),i=r()-(t?n*e:0),s=!1,o=z(c)},rewind:function(){i=r(),n=0,a&&a(n)},pause:u,cancel:g,set:function(t){e=t},isPaused:function(){return s}}}var pt="Arrow",bt=pt+"Left",kt=pt+"Right",yt=pt+"Up",ft=pt+"Down",vt="ttb",xt={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[yt,kt],ArrowRight:[ft,bt]},wt="role",_t="tabindex",Ct="aria-",jt=Ct+"controls",St=Ct+"current",Nt=Ct+"selected",$t=Ct+"label",Ot=Ct+"labelledby",Tt=Ct+"hidden",Pt=Ct+"orientation",Lt=Ct+"roledescription",Rt=Ct+"live",zt=Ct+"busy",Bt=Ct+"atomic",At=[wt,_t,"disabled",jt,St,$t,Ot,Tt,Pt,Lt],Dt=we+"__",Ft="is-",Et=we,Ht=Dt+"track",Ut=Dt+"list",Mt=Dt+"slide",It=Mt+"--clone",Kt=Mt+"__container",Wt=Dt+"arrows",Gt=Dt+"arrow",Vt=Gt+"--prev",qt=Gt+"--next",Xt=Dt+"pagination",Zt=Xt+"__page",Jt=Dt+"progress__bar",Yt=Dt+"toggle",Qt=Dt+"sr",ea=Ft+"initialized",ta=Ft+"active",aa=Ft+"prev",la=Ft+"next",ia=Ft+"visible",oa=Ft+"loading",ra=Ft+"focus-in",na=Ft+"overflow",sa=[ta,ia,aa,la,oa,ra,na],da={slide:Mt,clone:It,arrows:Wt,arrow:Gt,prev:Vt,next:qt,pagination:Xt,page:Zt,spinner:Dt+"spinner"},ca="touchstart mousedown",ua="touchmove mousemove",ga="touchend touchcancel mouseup click",ma="slide",ha="loop",pa="fade";var ba=_e+"-interval",ka={passive:!1,capture:!0},ya={Spacebar:" ",Right:kt,Left:bt,Up:yt,Down:ft};function fa(e){return e=E(e)?e:e.key,ya[e]||e}var va="keydown",xa=_e+"-lazy",wa=xa+"-srcset",_a="["+xa+"], ["+wa+"]",Ca=[" ","Enter"],ja=Object.freeze({__proto__:null,Media:function(e,t,a){var l=e.state,i=a.breakpoints||{},o=a.reducedMotion||{},r=De(),n=[];function s(e){e&&r.destroy()}function d(e,t){var a=matchMedia(t);r.bind(a,"change",c),n.push([e,a])}function c(){var t=l.is(7),i=a.direction,o=n.reduce(function(e,t){return le(e,t[1].matches?t[0]:{})},{});ie(a),u(o),a.destroy?e.destroy("completely"===a.destroy):t?(s(!0),e.mount()):i!==a.direction&&e.refresh()}function u(t,i,o){le(a,t),i&&le(Object.getPrototypeOf(a),t),!o&&l.is(1)||e.emit(qe,a)}return{setup:function(){var e="min"===a.mediaQuery;ee(i).sort(function(t,a){return e?+t-+a:+a-+t}).forEach(function(t){d(i[t],"("+(e?"min":"max")+"-width:"+t+"px)")}),d(o,$),c()},destroy:s,reduce:function(e){matchMedia($).matches&&(e?le(a,o):ie(a,ee(o)))},set:u}},Direction:function(e,t,a){return{resolve:function(e,t,l){var i="rtl"!==(l=l||a.direction)||t?l===vt?0:-1:1;return xt[e]&&xt[e][i]||e.replace(/width|left|right/i,function(e,t){var a=xt[e.toLowerCase()][i]||e;return t>0?a.charAt(0).toUpperCase()+a.slice(1):a})},orient:function(e){return e*("rtl"===a.direction?1:-1)}}},Elements:function(e,t,a){var l,i,o,r=mt(e),n=r.on,s=r.bind,d=e.root,c=a.i18n,u={},g=[],m=[],h=[];function p(){var e,t,o;l=y("."+Ht),i=Q(l,"."+Ut),Ce(l&&i,"A track/list element is missing."),G(g,Y(i,"."+Mt+":not(."+It+")")),te({arrows:Wt,pagination:Xt,prev:Vt,next:qt,bar:Jt,toggle:Yt},function(e,t){u[t]=y("."+e)}),ae(u,{root:d,track:l,list:i,slides:g}),t=d.id||""+(e=we)+Be(Ae[e]=(Ae[e]||0)+1),o=a.role,d.id=t,l.id=l.id||t+"-track",i.id=i.id||t+"-list",!ue(d,wt)&&"SECTION"!==d.tagName&&o&&re(d,wt,o),re(d,Lt,c.carousel),re(i,wt,"presentation"),k()}function b(e){var t=At.concat("style");O(g),fe(d,m),fe(l,h),oe([l,i],t),oe(d,e?t:["style",Lt])}function k(){fe(d,m),fe(l,h),m=f(Et),h=f(Ht),q(d,m),q(l,h),re(d,$t,a.label),re(d,Ot,a.labelledby)}function y(e){var t=ke(d,e);return t&&function(e,t){if(F(e.closest))return e.closest(t);for(var a=e;a&&1===a.nodeType&&!J(a,t);)a=a.parentElement;return a}(t,"."+Et)===d?t:void 0}function f(e){return[e+"--"+a.type,e+"--"+a.direction,a.drag&&e+"--draggable",a.isNavigation&&e+"--nav",e===Et&&ta]}return ae(u,{setup:p,mount:function(){n(Ve,b),n(Ve,p),n(qe,k),s(document,ca+" keydown",function(e){o="keydown"===e.type},{capture:!0}),s(d,"focusin",function(){V(d,ra,!!o)})},destroy:b})},Slides:function(e,t,a){var l=mt(e),i=l.on,o=l.emit,r=l.bind,n=t.Elements,s=n.slides,d=n.list,c=[];function u(){s.forEach(function(e,t){m(e,t,-1)})}function g(){p(function(e){e.destroy()}),O(c)}function m(t,a,l){var i=function(e,t,a,l){var i,o=mt(e),r=o.on,n=o.emit,s=o.bind,d=e.Components,c=e.root,u=e.options,g=u.isNavigation,m=u.updateOnMove,h=u.i18n,p=u.pagination,b=u.slideFocus,k=d.Direction.resolve,y=ue(l,"style"),f=ue(l,$t),v=a>-1,x=Q(l,"."+Kt);function w(){var i=e.splides.map(function(e){var a=e.splide.Components.Slides.getAt(t);return a?a.slide.id:""}).join(" ");re(l,$t,ze(h.slideX,(v?a:t)+1)),re(l,jt,i),re(l,wt,b?"button":""),b&&oe(l,Lt)}function _(){i||C()}function C(){if(!i){var a=e.index;(o=j())!==ge(l,ta)&&(V(l,ta,o),re(l,St,g&&o||""),n(o?Ie:Ke,S)),function(){var t=function(){if(e.is(pa))return j();var t=me(d.Elements.track),a=me(l),i=k("left",!0),o=k("right",!0);return Ne(t[i])<=$e(a[i])&&Ne(a[o])<=$e(t[o])}(),a=!t&&(!j()||v);if(e.state.is([4,5])||re(l,Tt,a||""),re(ye(l,u.focusableNodes||""),_t,a?-1:""),b&&re(l,_t,a?-1:0),t!==ge(l,ia)&&(V(l,ia,t),n(t?We:Ge,S)),!t&&document.activeElement===l){var i=d.Slides.getAt(e.index);i&&ce(i.slide)}}(),V(l,aa,t===a-1),V(l,la,t===a+1)}var o}function j(){var l=e.index;return l===t||u.cloneStatus&&l===a}var S={index:t,slideIndex:a,slide:l,container:x,isClone:v,mount:function(){v||(l.id=c.id+"-slide"+Be(t+1),re(l,wt,p?"tabpanel":"group"),re(l,Lt,h.slide),re(l,$t,f||ze(h.slideLabel,[t+1,e.length]))),s(l,"click",P(n,Me,S)),s(l,"keydown",P(n,"sk",S)),r([Ue,"sh",tt],C),r(nt,w),m&&r(He,_)},destroy:function(){i=!0,o.destroy(),fe(l,sa),oe(l,At),re(l,"style",y),re(l,$t,f||"")},update:C,style:function(e,t,a){se(a&&x||l,e,t)},isWithin:function(a,l){var i=Oe(a-t);return v||!u.rewind&&!e.is(ha)||(i=je(i,e.length-i)),i<=l}};return S}(e,a,l,t);i.mount(),c.push(i),c.sort(function(e,t){return e.index-t.index})}function h(e){return e?b(function(e){return!e.isClone}):c}function p(e,t){h(t).forEach(e)}function b(e){return c.filter(F(e)?e:function(t){return E(e)?J(t.slide,e):W(I(e),t.index)})}return{mount:function(){u(),i(Ve,g),i(Ve,u)},destroy:g,update:function(){p(function(e){e.update()})},register:m,get:h,getIn:function(e){var l=t.Controller,i=l.toIndex(e),o=l.hasFocus()?1:a.perPage;return b(function(e){return Pe(e.index,i,i+o-1)})},getAt:function(e){return b(e)[0]},add:function(e,t){K(e,function(e){if(E(e)&&(e=pe(e)),M(e)){var l=s[t];l?Z(e,l):X(d,e),q(e,a.classes.slide),i=e,n=P(o,Xe),c=ye(i,"img"),(u=c.length)?c.forEach(function(e){r(e,"load error",function(){--u||n()})}):n()}var i,n,c,u}),o(Ve)},remove:function(e){he(b(e).map(function(e){return e.slide})),o(Ve)},forEach:p,filter:b,style:function(e,t,a){p(function(l){l.style(e,t,a)})},getLength:function(e){return e?s.length:c.length},isEnough:function(){return c.length>a.perPage}}},Layout:function(e,t,a){var l,i,o,r=mt(e),n=r.on,s=r.bind,d=r.emit,c=t.Slides,u=t.Direction.resolve,g=t.Elements,m=g.root,h=g.track,p=g.list,b=c.getAt,k=c.style;function y(){l=a.direction===vt,se(m,"maxWidth",xe(a.width)),se(h,u("paddingLeft"),v(!1)),se(h,u("paddingRight"),v(!0)),f(!0)}function f(e){var t,r=me(m);(e||i.width!==r.width||i.height!==r.height)&&(se(h,"height",(t="",l&&(Ce(t=x(),"height or heightRatio is missing."),t="calc("+t+" - "+v(!1)+" - "+v(!0)+")"),t)),k(u("marginRight"),xe(a.gap)),k("width",a.autoWidth?null:xe(a.fixedWidth)||(l?"":w())),k("height",xe(a.fixedHeight)||(l?a.autoHeight?null:w():x()),!0),i=r,d(Ze),o!==(o=$())&&(V(m,na,o),d("overflow",o)))}function v(e){var t=a.padding,l=u(e?"right":"left");return t&&xe(t[l]||(A(t)?0:t))||"0px"}function x(){return xe(a.height||me(p).width*a.heightRatio)}function w(){var e=xe(a.gap);return"calc((100%"+(e&&" + "+e)+")/"+(a.perPage||1)+(e&&" - "+e)+")"}function _(){return me(p)[u("width")]}function C(e,t){var a=b(e||0);return a?me(a.slide)[u("width")]+(t?0:N()):0}function j(e,t){var a=b(e);if(a){var l=me(a.slide)[u("right")],i=me(p)[u("left")];return Oe(l-i)+(t?0:N())}return 0}function S(t){return j(e.length-1)-j(0)+C(0,t)}function N(){var e=b(0);return e&&parseFloat(se(e.slide,u("marginRight")))||0}function $(){return e.is(pa)||S(!0)>_()}return{mount:function(){var e,t;y(),s(window,"resize load",(e=P(d,Xe),t=ht(0,e,null,1),function(){t.isPaused()&&t.start()})),n([qe,Ve],y),n(Xe,f)},resize:f,listSize:_,slideSize:C,sliderSize:S,totalSize:j,getPadding:function(e){return parseFloat(se(h,u("padding"+(e?"Right":"Left"))))||0},isOverflow:$}},Clones:function(e,t,a){var l,i=mt(e),o=i.on,r=t.Elements,n=t.Slides,s=t.Direction.resolve,d=[];function c(){o(Ve,u),o([qe,Xe],m),(l=h())&&(function(t){var l=n.get().slice(),i=l.length;if(i){for(;l.lengtht.Controller.getEnd();(l<0||i)&&(a=_(a,i))}return a}(a);se(y,"transform","translate"+p("X")+"("+i+"px)"),a!==i&&r("sh")}}function _(e,t){var a=e-$(t),l=m();return e-b(l*($e(Oe(a)/l)||1))*(t?1:-1)}function C(){w(N(),!0),l.cancel()}function j(e){for(var a=t.Slides.get(),l=0,i=1/0,o=0;oa,s=b(_(N(),o)),o?s>=0:s<=y[p("scrollWidth")]-me(f)[p("width")])&&(C(),w(_(N(),e>a),!0)),n(4),r(He,t,a,e),l.start(t,function(){n(3),r(Ue,t,a,e),i&&i()})},jump:x,translate:w,shift:_,cancel:C,toIndex:j,toPosition:S,getPosition:N,getLimit:$,exceededLimit:function(e,t){t=H(t)?N():t;var a=!0!==e&&b(t)b($(!0));return a||l},reposition:v}},Controller:function(e,t,a){var l,i,o,r,n=mt(e),s=n.on,d=n.emit,c=t.Move,u=c.getPosition,g=c.getLimit,m=c.toPosition,h=t.Slides,p=h.isEnough,b=h.getLength,k=a.omitEnd,y=e.is(ha),f=e.is(ma),v=P(S,!1),x=P(S,!0),w=a.start||0,_=w;function C(){i=b(!0),o=a.perMove,r=a.perPage,l=O();var e=Le(w,0,k?l:i-1);e!==w&&(w=e,c.reposition())}function j(){l!==O()&&d(gt)}function S(e,t){var a=o||(z()?1:r),i=N(w+a*(e?-1:1),w,!(o||z()));return-1===i&&f&&!Te(u(),g(!e),1)?e?0:l:t?i:$(i)}function N(t,n,s){if(p()||z()){var d=function(t){if(f&&"move"===a.trimSpace&&t!==w)for(var l=u();l===m(t,!0)&&Pe(t,0,e.length-1,!a.rewind);)tl?t=o||!Pe(0,t,n,!0)&&!Pe(l,n,t,!0)?y?s?t<0?-(i%r||r):i:t:a.rewind?t<0?l:0:-1:T(L(t)):s&&t!==n&&(t=T(L(n)+(t0;)if(m(i-1,!0)!==m(e,!0)){e++;break}return Le(e,0,i-1)}function T(e){return Le(z()?e:r*e,0,l)}function L(e){return z()?je(e,l):Ne((e>=l?i-1:e)/r)}function R(e){e!==w&&(_=w,w=e)}function z(){return!H(a.focus)||a.isNavigation}function B(){return e.state.is([4,5])&&!!a.waitForTransition}return{mount:function(){C(),s([qe,Ve,gt],C),s(Ze,j)},go:function(e,t,a){if(!B()){var i=function(e){var t=w;if(E(e)){var a=e.match(/([+\-<>])(\d+)?/)||[],i=a[1],o=a[2];"+"===i||"-"===i?t=N(w+ +(""+i+(+o||1)),w):">"===i?t=o?T(+o):v(!0):"<"===i&&(t=x(!0))}else t=y?e:Le(e,0,l);return t}(e),o=$(i);o>-1&&(t||o!==w)&&(R(o),c.move(i,o,_,a))}},scroll:function(e,a,i,o){t.Scroll.scroll(e,a,i,function(){var e=$(c.toIndex(u()));R(k?je(e,l):e),o&&o()})},getNext:v,getPrev:x,getAdjacent:S,getEnd:O,setIndex:R,getIndex:function(e){return e?_:w},toIndex:T,toPage:L,toDest:function(e){var t=c.toIndex(e);return f?Le(t,0,l):t},hasFocus:z,isBusy:B}},Arrows:function(e,t,a){var l,i,o=mt(e),r=o.on,n=o.bind,s=o.emit,d=a.classes,c=a.i18n,u=t.Elements,g=t.Controller,m=u.arrows,h=u.track,p=m,b=u.prev,k=u.next,y={};function f(){var e;!(e=a.arrows)||b&&k||(p=m||ne("div",d.arrows),b=_(!0),k=_(!1),l=!0,X(p,[b,k]),!m&&Z(p,h)),b&&k&&(ae(y,{prev:b,next:k}),de(p,e?"":"none"),q(p,i=Wt+"--"+a.direction),e&&(r([Fe,Ue,Ve,tt,gt],C),n(k,"click",P(w,">")),n(b,"click",P(w,"<")),C(),re([b,k],jt,h.id),s(lt,b,k))),r(qe,v)}function v(){x(),f()}function x(){o.destroy(),fe(p,i),l?(he(m?[b,k]:p),b=k=null):oe([b,k],At)}function w(e){g.go(e,!0)}function _(e){return pe('