“);return n.inlineElement=o,o}return e.updateStatus(“ready”),e._parseMarkup(i,{},n),i}}});var x,_=function(){x&&t(document.body).removeClass(x)},C=function(){_(),e.req&&e.req.abort()};t.magnificPopup.registerModule(“ajax”,{options:{settings:null,cursor:”mfp-ajax-cur”,tError:’The content could not be loaded.’},proto:{initAjax:function(){e.types.push(“ajax”),x=e.st.ajax.cursor,f(“Close.ajax”,C),f(“BeforeChange.ajax”,C)},getAjax:function(n){x&&t(document.body).addClass(x),e.updateStatus(“loading”);var i=t.extend({url:n.src,success:function(i,r,o){var a={data:i,xhr:o};h(“ParseAjax”,a),e.appendContent(t(a.data),”ajax”),n.finished=!0,_(),e._setFocus(),setTimeout(function(){e.wrap.addClass(“mfp-ready”)},16),e.updateStatus(“ready”),h(“AjaxContentAdded”)},error:function(){_(),n.finished=n.loadError=!0,e.updateStatus(“error”,e.st.ajax.tError.replace(“%url%”,n.src))}},e.st.ajax.settings);return e.req=t.ajax(i),””}}});var S,k=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=e.st.image.titleSrc;if(i){if(t.isFunction(i))return i.call(e,n);if(n.el)return n.el.attr(i)||””}return””};t.magnificPopup.registerModule(“image”,{options:{markup:”,cursor:”mfp-zoom-out-cur”,titleSrc:”title”,verticalFit:!0,tError:’The image could not be loaded.’},proto:{initImage:function(){var n=e.st.image,i=”.image”;e.types.push(“image”),f(“Open”+i,function(){“image”===e.currItem.type&&n.cursor&&t(document.body).addClass(n.cursor)}),f(“Close”+i,function(){n.cursor&&t(document.body).removeClass(n.cursor),l.off(“resize.mfp”)}),f(“Resize”+i,e.resizeImage),e.isLowIE&&f(“AfterChange”,e.resizeImage)},resizeImage:function(){var t=e.currItem;if(t&&t.img&&e.st.image.verticalFit){var n=0;e.isLowIE&&(n=parseInt(t.img.css(“padding-top”),10)+parseInt(t.img.css(“padding-bottom”),10)),t.img.css(“max-height”,e.wH-n)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,S&&clearInterval(S),t.isCheckingImgSize=!1,h(“ImageHasSize”,t),t.imgHidden&&(e.content&&e.content.removeClass(“mfp-loading”),t.imgHidden=!1))},findImageSize:function(t){var n=0,i=t.img[0],r=function(o){S&&clearInterval(S),S=setInterval(function(){if(i.naturalWidth>0)return void e._onImageHasSize(t);n>200&&clearInterval(S),n++,3===n?r(10):40===n?r(50):100===n&&r(500)},o)};r(1)},getImage:function(n,i){var r=0,o=function(){n&&(n.img[0].complete?(n.img.off(“.mfploader”),n===e.currItem&&(e._onImageHasSize(n),e.updateStatus(“ready”)),n.hasSize=!0,n.loaded=!0,h(“ImageLoadComplete”)):(r++,r0?n.hasSize=!0:u.width||(n.hasSize=!1)}return e._parseMarkup(i,{title:k(n),img_replaceWith:n.img},n),e.resizeImage(),n.hasSize?(S&&clearInterval(S),n.loadError?(i.addClass(“mfp-loading”),e.updateStatus(“error”,s.tError.replace(“%url%”,n.src))):(i.removeClass(“mfp-loading”),e.updateStatus(“ready”)),i):(e.updateStatus(“loading”),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass(“mfp-loading”),e.findImageSize(n)),i)}}});var T,E=function(){return void 0===T&&(T=void 0!==document.createElement(“p”).style.MozTransform),T};t.magnificPopup.registerModule(“zoom”,{options:{enabled:!1,easing:”ease-in-out”,duration:300,opener:function(t){return t.is(“img”)?t:t.find(“img”)}},proto:{initZoom:function(){var t,n=e.st.zoom,i=”.zoom”;if(n.enabled&&e.supportsTransition){var r,o,a=n.duration,s=function(t){var e=t.clone().removeAttr(“style”).removeAttr(“class”).addClass(“mfp-animated-image”),i=”all “+n.duration/1e3+”s “+n.easing,r={position:”fixed”,zIndex:9999,left:0,top:0,”-webkit-backface-visibility”:”hidden”},o=”transition”;return r[“-webkit-“+o]=r[“-moz-“+o]=r[“-o-“+o]=r[o]=i,e.css(r),e},c=function(){e.content.css(“visibility”,”visible”)};f(“BuildControls”+i,function(){if(e._allowZoom()){if(clearTimeout(r),e.content.css(“visibility”,”hidden”),!(t=e._getItemToZoom()))return void c();o=s(t),o.css(e._getOffset()),e.wrap.append(o),r=setTimeout(function(){o.css(e._getOffset(!0)),r=setTimeout(function(){c(),setTimeout(function(){o.remove(),t=o=null,h(“ZoomAnimationEnded”)},16)},a)},16)}}),f(“BeforeClose”+i,function(){if(e._allowZoom()){if(clearTimeout(r),e.st.removalDelay=a,!t){if(!(t=e._getItemToZoom()))return;o=s(t)}o.css(e._getOffset(!0)),e.wrap.append(o),e.content.css(“visibility”,”hidden”),setTimeout(function(){o.css(e._getOffset())},16)}}),f(“Close”+i,function(){e._allowZoom()&&(c(),o&&o.remove(),t=null)})}},_allowZoom:function(){return”image”===e.currItem.type},_getItemToZoom:function(){return!!e.currItem.hasSize&&e.currItem.img},_getOffset:function(n){var i;i=n?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem);var r=i.offset(),o=parseInt(i.css(“padding-top”),10),a=parseInt(i.css(“padding-bottom”),10);r.top-=t(window).scrollTop()-o;var s={width:i.width(),height:(u?i.innerHeight():i[0].offsetHeight)-a-o};return E()?s[“-moz-transform”]=s.transform=”translate(“+r.left+”px,”+r.top+”px)”:(s.left=r.left,s.top=r.top),s}}});var O=function(t){if(e.currTemplate.iframe){var n=e.currTemplate.iframe.find(“iframe”);n.length&&(t||(n[0].src=”//about:blank”),e.isIE8&&n.css(“display”,t?”block”:”none”))}};t.magnificPopup.registerModule(“iframe”,{options:{markup:”,srcAction:”iframe_src”,patterns:{youtube:{index:”youtube.com”,id:”v=”,src:”//www.youtube.com/embed/%id%?autoplay=1″},vimeo:{index:”vimeo.com/”,id:”/”,src:”//player.vimeo.com/video/%id%?autoplay=1″},gmaps:{index:”//maps.google.”,src:”%id%&output=embed”}}},proto:{initIframe:function(){e.types.push(“iframe”),f(“BeforeChange”,function(t,e,n){e!==n&&(“iframe”===e?O():”iframe”===n&&O(!0))}),f(“Close.iframe”,function(){O()})},getIframe:function(n,i){var r=n.src,o=e.st.iframe;t.each(o.patterns,function(){if(r.indexOf(this.index)>-1)return this.id&&(r=”string”==typeof this.id?r.substr(r.lastIndexOf(this.id)+this.id.length,r.length):this.id.call(this,r)),r=this.src.replace(“%id%”,r),!1});var a={};return o.srcAction&&(a[o.srcAction]=r),e._parseMarkup(i,a,n),e.updateStatus(“ready”),i}}});var A=function(t){var n=e.items.length;return t>n-1?t-n:t’,preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:”Previous (Left arrow key)”,tNext:”Next (Right arrow key)”,tCounter:”%curr% of %total%”},proto:{initGallery:function(){var n=e.st.gallery,i=”.mfp-gallery”;if(e.direction=!0,!n||!n.enabled)return!1;a+=” mfp-gallery”,f(“Open”+i,function(){n.navigateByImgClick&&e.wrap.on(“click”+i,”.mfp-img”,function(){if(e.items.length>1)return e.next(),!1}),r.on(“keydown”+i,function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()})}),f(“UpdateStatus”+i,function(t,n){n.text&&(n.text=j(n.text,e.currItem.index,e.items.length))}),f(“MarkupParse”+i,function(t,i,r,o){var a=e.items.length;r.counter=a>1?j(n.tCounter,o.index,a):””}),f(“BuildControls”+i,function(){if(e.items.length>1&&n.arrows&&!e.arrowLeft){var i=n.arrowMarkup,r=e.arrowLeft=t(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,”left”)).addClass(“mfp-prevent-close”),o=e.arrowRight=t(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,”right”)).addClass(“mfp-prevent-close”);r.click(function(){e.prev()}),o.click(function(){e.next()}),e.container.append(r.add(o))}}),f(“Change”+i,function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout(function(){e.preloadNearbyImages(),e._preloadTimeout=null},16)}),f(“Close”+i,function(){r.off(i),e.wrap.off(“click”+i),e.arrowRight=e.arrowLeft=null})},next:function(){e.direction=!0,e.index=A(e.index+1),e.updateItemHTML()},prev:function(){e.direction=!1,e.index=A(e.index-1),e.updateItemHTML()},goTo:function(t){e.direction=t>=e.index,e.index=t,e.updateItemHTML()},preloadNearbyImages:function(){var t,n=e.st.gallery.preload,i=Math.min(n[0],e.items.length),r=Math.min(n[1],e.items.length);for(t=1;t’).on(“load.mfploader”,function(){i.hasSize=!0}).on(“error.mfploader”,function(){i.hasSize=!0,i.loadError=!0,h(“LazyLoadError”,i)}).attr(“src”,i.src)),i.preloaded=!0}}}});t.magnificPopup.registerModule(“retina”,{options:{replaceSrc:function(t){return t.src.replace(/.w+$/,function(t){return”@2x”+t})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var t=e.st.retina,n=t.ratio;n=isNaN(n)?n():n,n>1&&(f(“ImageHasSize.retina”,function(t,e){e.img.css({“max-width”:e.img[0].naturalWidth/n,width:”100%”})}),f(“ElementParse.retina”,function(e,i){i.src=t.replaceSrc(i,n)}))}}}}),m()})}).call(e,n(1))},function(t,e,n){var i,r,o;!function(a){r=[n(1)],i=a,void 0!==(o=”function”==typeof i?i.apply(e,r):i)&&(t.exports=o)}(function(e){!function(i){var r=n(93),o=void 0!==t&&t.exports,a=”https:”==document.location.protocol?”https:”:”http:”;r||(o?n(130)(e):e.event.special.mousewheel||e(“head”).append(decodeURI(“%3Cscript src=”+a+”//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js%3E%3C/script%3E”))),function(){var t,n=”mCustomScrollbar”,i={setTop:0,setLeft:0,axis:”y”,scrollbarPosition:”inside”,scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:”auto”,axis:”y”,deltaFactor:”auto”,disableOver:[“select”,”option”,”keygen”,”datalist”,”textarea”]},scrollButtons:{scrollType:”stepless”,scrollAmount:”auto”},keyboard:{enable:!0,scrollType:”stepless”,scrollAmount:”auto”},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:”input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable=’true’]”,updateOnContentResize:!0,updateOnImageLoad:”auto”,autoUpdateTimeout:60},theme:”light”,callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},r=0,o={},a=window.attachEvent&&!window.addEventListener?1:0,s=!1,c=[“mCSB_dragger_onDrag”,”mCSB_scrollTools_onDrag”,”mCS_img_loaded”,”mCS_disabled”,”mCS_destroyed”,”mCS_no_scrollbar”,”mCS-autoHide”,”mCS-dir-rtl”,”mCS_no_scrollbar_y”,”mCS_no_scrollbar_x”,”mCS_y_hidden”,”mCS_x_hidden”,”mCSB_draggerContainer”,”mCSB_buttonUp”,”mCSB_buttonDown”,”mCSB_buttonLeft”,”mCSB_buttonRight”],u={init:function(t){var t=e.extend(!0,{},i,t),n=l.call(this);if(t.live){var a=t.liveSelector||this.selector||”.mCustomScrollbar”,s=e(a);if(“off”===t.live)return void d(a);o[a]=setTimeout(function(){s.mCustomScrollbar(t),”once”===t.live&&s.length&&d(a)},500)}else d(a);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?”x”:h(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertias[0].parent().height()?C.call(this):(G(t,u[0].toString(),{dir:”y”,dur:0,overwrite:”none”}),i.contentReset.y=null):(C.call(this),”y”===r.axis?k.call(this):”yx”===r.axis&&i.overflowed[1]&&G(t,u[1].toString(),{dir:”x”,dur:0,overwrite:”none”}))),”y”!==r.axis&&(i.overflowed[1]?s[1].width()>s[1].parent().width()?C.call(this):(G(t,u[1].toString(),{dir:”x”,dur:0,overwrite:”none”}),i.contentReset.x=null):(C.call(this),”x”===r.axis?k.call(this):”yx”===r.axis&&i.overflowed[0]&&G(t,u[0].toString(),{dir:”y”,dur:0,overwrite:”none”}))),n&&i&&(2===n&&r.callbacks.onImageLoad&&”function”==typeof r.callbacks.onImageLoad?r.callbacks.onImageLoad.call(this):3===n&&r.callbacks.onSelectorChange&&”function”==typeof r.callbacks.onSelectorChange?r.callbacks.onSelectorChange.call(this):r.callbacks.onUpdate&&”function”==typeof r.callbacks.onUpdate&&r.callbacks.onUpdate.call(this)),H.call(this)}})},scrollTo:function(t,n){if(void 0!==t&&null!=t){var i=l.call(this);return e(i).each(function(){var i=e(this);if(i.data(“mCS”)){var r=i.data(“mCS”),o=r.opt,a={trigger:”external”,scrollInertia:o.scrollInertia,scrollEasing:”mcsEaseInOut”,moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},s=e.extend(!0,{},a,n),c=q.call(this,t),u=s.scrollInertia>0&&s.scrollInertia-1)&&t.autoDraggerLength,t.autoExpandScrollbar=!(e.inArray(t.theme,i)>-1)&&t.autoExpandScrollbar,t.scrollButtons.enable=!(e.inArray(t.theme,r)>-1)&&t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,o)>-1||t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,a)>-1?”outside”:t.scrollbarPosition},d=function(t){o[t]&&(clearTimeout(o[t]),K(o,t))},h=function(t){return”yx”===t||”xy”===t||”auto”===t?”yx”:”x”===t||”horizontal”===t?”x”:”y”},p=function(t){return”stepped”===t||”pixels”===t||”step”===t||”click”===t?”stepped”:”stepless”},m=function(){var t=e(this),i=t.data(“mCS”),r=i.opt,o=r.autoExpandScrollbar?” “+c[1]+”_expand”:””,a=[“”,””],s=”yx”===r.axis?”mCSB_vertical_horizontal”:”x”===r.axis?”mCSB_horizontal”:”mCSB_vertical”,u=”yx”===r.axis?a[0]+a[1]:”x”===r.axis?a[1]:a[0],l=”yx”===r.axis?””:””,f=r.autoHideScrollbar?” “+c[6]:””,d=”x”!==r.axis&&”rtl”===i.langDir?” “+c[7]:””;r.setWidth&&t.css(“width”,r.setWidth),r.setHeight&&t.css(“height”,r.setHeight),r.setLeft=”y”!==r.axis&&”rtl”===i.langDir?”989999px”:r.setLeft,t.addClass(n+” _mCS_”+i.idx+f+d).wrapInner(“”);var h=e(“#mCSB_”+i.idx),p=e(“#mCSB_”+i.idx+”_container”);”y”===r.axis||r.advanced.autoExpandHorizontalScroll||p.css(“width”,g(p)),”outside”===r.scrollbarPosition?(“static”===t.css(“position”)&&t.css(“position”,”relative”),t.css(“overflow”,”visible”),h.addClass(“mCSB_outside”).after(u)):(h.addClass(“mCSB_inside”).append(u),p.wrap(l)),y.call(this);var m=[e(“#mCSB_”+i.idx+”_dragger_vertical”),e(“#mCSB_”+i.idx+”_dragger_horizontal”)];m[0].css(“min-height”,m[0].height()),m[1].css(“min-width”,m[1].width())},g=function(t){var n=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return e(this).outerWidth(!0)}).get())],i=t.parent().width();return n[0]>i?n[0]:n[1]>i?n[1]:”100%”},v=function(){var t=e(this),n=t.data(“mCS”),i=n.opt,r=e(“#mCSB_”+n.idx+”_container”);if(i.advanced.autoExpandHorizontalScroll&&”y”!==i.axis){r.css({width:”auto”,”min-width”:0,”overflow-x”:”scroll”});var o=Math.ceil(r[0].scrollWidth);3===i.advanced.autoExpandHorizontalScroll||2!==i.advanced.autoExpandHorizontalScroll&&o>r.parent().width()?r.css({width:o,”min-width”:”100%”,”overflow-x”:”inherit”}):r.css({“overflow-x”:”inherit”,position:”absolute”}).wrap(“”).css({width:Math.ceil(r[0].getBoundingClientRect().right+.4)-Math.floor(r[0].getBoundingClientRect().left),”min-width”:”100%”,position:”relative”}).unwrap()}},y=function(){var t=e(this),n=t.data(“mCS”),i=n.opt,r=e(“.mCSB_”+n.idx+”_scrollbar:first”),o=tt(i.scrollButtons.tabindex)?”tabindex='”+i.scrollButtons.tabindex+”‘”:””,a=[“”,””,””,””],s=[“x”===i.axis?a[2]:a[0],”x”===i.axis?a[3]:a[1],a[2],a[3]];i.scrollButtons.enable&&r.prepend(s[0]).append(s[1]).next(“.mCSB_scrollTools”).prepend(s[2]).append(s[3])},w=function(){var t=e(this),n=t.data(“mCS”),i=e(“#mCSB_”+n.idx),r=e(“#mCSB_”+n.idx+”_container”),o=[e(“#mCSB_”+n.idx+”_dragger_vertical”),e(“#mCSB_”+n.idx+”_dragger_horizontal”)],s=[i.height()/r.outerHeight(!1),i.width()/r.outerWidth(!1)],c=[parseInt(o[0].css(“min-height”)),Math.round(s[0]*o[0].parent().height()),parseInt(o[1].css(“min-width”)),Math.round(s[1]*o[1].parent().width())],u=a&&c[1]o&&(o=s),c>a&&(a=c),[o>i.height(),a>i.width()]},C=function(){var t=e(this),n=t.data(“mCS”),i=n.opt,r=e(“#mCSB_”+n.idx),o=e(“#mCSB_”+n.idx+”_container”),a=[e(“#mCSB_”+n.idx+”_dragger_vertical”),e(“#mCSB_”+n.idx+”_dragger_horizontal”)];if(V(t),(“x”!==i.axis&&!n.overflowed[0]||”y”===i.axis&&n.overflowed[0])&&(a[0].add(o).css(“top”,0),G(t,”_resetY”)),”y”!==i.axis&&!n.overflowed[1]||”x”===i.axis&&n.overflowed[1]){var s=dx=0;”rtl”===n.langDir&&(s=r.width()-o.outerWidth(!1),dx=Math.abs(s/n.scrollRatio.x)),o.css(“left”,s),a[1].css(“left”,dx),G(t,”_resetX”)}},S=function(){function t(){o=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(o),P.call(n[0])):t()},100)}var n=e(this),i=n.data(“mCS”),r=i.opt;if(!i.bindEvents){if(O.call(this),r.contentTouchScroll&&A.call(this),j.call(this),r.mouseWheel.enable){var o;t()}N.call(this),z.call(this),r.advanced.autoScrollOnFocus&&R.call(this),r.scrollButtons.enable&&B.call(this),r.keyboard.enable&&F.call(this),i.bindEvents=!0}},k=function(){var t=e(this),n=t.data(“mCS”),i=n.opt,r=”mCS_”+n.idx,o=”.mCSB_”+n.idx+”_scrollbar”,a=e(“#mCSB_”+n.idx+”,#mCSB_”+n.idx+”_container,#mCSB_”+n.idx+”_container_wrapper,”+o+” .”+c[12]+”,#mCSB_”+n.idx+”_dragger_vertical,#mCSB_”+n.idx+”_dragger_horizontal,”+o+”>a”),s=e(“#mCSB_”+n.idx+”_container”);i.advanced.releaseDraggableSelectors&&a.add(e(i.advanced.releaseDraggableSelectors)),i.advanced.extraDraggableSelectors&&a.add(e(i.advanced.extraDraggableSelectors)),n.bindEvents&&(e(document).add(e(!I()||top.document)).unbind(“.”+r),a.each(function(){e(this).unbind(“.”+r)}),clearTimeout(t[0]._focusTimeout),K(t[0],”_focusTimeout”),clearTimeout(n.sequential.step),K(n.sequential,”step”),clearTimeout(s[0].onCompleteTimeout),K(s[0],”onCompleteTimeout”),n.bindEvents=!1)},T=function(t){var n=e(this),i=n.data(“mCS”),r=i.opt,o=e(“#mCSB_”+i.idx+”_container_wrapper”),a=o.length?o:e(“#mCSB_”+i.idx+”_container”),s=[e(“#mCSB_”+i.idx+”_scrollbar_vertical”),e(“#mCSB_”+i.idx+”_scrollbar_horizontal”)],u=[s[0].find(“.mCSB_dragger”),s[1].find(“.mCSB_dragger”)];”x”!==r.axis&&(i.overflowed[0]&&!t?(s[0].add(u[0]).add(s[0].children(“a”)).css(“display”,”block”),a.removeClass(c[8]+” “+c[10])):(r.alwaysShowScrollbar?(2!==r.alwaysShowScrollbar&&u[0].css(“display”,”none”),a.removeClass(c[10])):(s[0].css(“display”,”none”),a.addClass(c[10])),a.addClass(c[8]))),”y”!==r.axis&&(i.overflowed[1]&&!t?(s[1].add(u[1]).add(s[1].children(“a”)).css(“display”,”block”),a.removeClass(c[9]+” “+c[11])):(r.alwaysShowScrollbar?(2!==r.alwaysShowScrollbar&&u[1].css(“display”,”none”),a.removeClass(c[11])):(s[1].css(“display”,”none”),a.addClass(c[11])),a.addClass(c[9]))),i.overflowed[0]||i.overflowed[1]?n.removeClass(c[5]):n.addClass(c[5])},E=function(t){var n=t.type,i=t.target.ownerDocument!==document&&null!==frameElement?[e(frameElement).offset().top,e(frameElement).offset().left]:null,r=I()&&t.target.ownerDocument!==top.document&&null!==frameElement?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(n){case”pointerdown”:case”MSPointerDown”:case”pointermove”:case”MSPointerMove”:case”pointerup”:case”MSPointerUp”:return i?[t.originalEvent.pageY-i[0]+r[0],t.originalEvent.pageX-i[1]+r[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case”touchstart”:case”touchmove”:case”touchend”:var o=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],a=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[o.screenY,o.screenX,a>1]:[o.pageY,o.pageX,a>1];default:return i?[t.pageY-i[0]+r[0],t.pageX-i[1]+r[1],!1]:[t.pageY,t.pageX,!1]}},O=function(){function t(t,e,i,r){if(d[0].idleTimer=u.scrollInertia0&&f
0&&(i=l,r=f),x(n,”active”,u.autoExpandScrollbar)}}).bind(“touchmove.”+l,function(e){e.stopImmediatePropagation(),e.preventDefault();var o=n.offset(),a=E(e)[0]-o.top,s=E(e)[1]-o.left;t(i,r,a,s)}),e(document).add(m).bind(“mousemove.”+l+” pointermove.”+l+” MSPointerMove.”+l,function(e){if(n){var o=n.offset(),a=E(e)[0]-o.top,s=E(e)[1]-o.left;if(i===a&&r===s)return;t(i,r,a,s)}}).add(p).bind(“mouseup.”+l+” touchend.”+l+” pointerup.”+l+” MSPointerUp.”+l,function(t){n&&(x(n,”active”,u.autoExpandScrollbar),n=null),s=!1,a&&(document.onselectstart=null),L.call(d,!0)})},A=function(){function n(e){if(!Q(e)||s||E(e)[2])return void(t=0);t=1,x=0,_=0,u=1,C.removeClass(“mCS_touch_action”);var n=A.offset();l=E(e)[0]-n.top,f=E(e)[1]-n.left,N=[E(e)[0],E(e)[1]]}function i(t){if(Q(t)&&!s&&!E(t)[2]&&(k.documentTouchScroll||t.preventDefault(),t.stopImmediatePropagation(),(!_||x)&&u)){m=Y();var e=O.offset(),n=E(t)[0]-e.top,i=E(t)[1]-e.left;if(P.push(n),M.push(i),N[2]=Math.abs(E(t)[0]-N[0]),N[3]=Math.abs(E(t)[1]-N[1]),S.overflowed[0])var r=j[0].parent().height()-j[0].height(),o=l-n>0&&n-l>-r*S.scrollRatio.y&&(2*N[3]0&&i-f>-a*S.scrollRatio.x&&(2*N[2]30)){y=1e3/(g-p);var r=yC?w[0]:0,w[1]=l[1]>C?w[1]:0,S.overflowed[0]&&c(w[0],b[0],”mcsEaseOut”,”y”,D,!1),S.overflowed[1]&&c(w[1],b[1],”mcsEaseOut”,”x”,D,!1)}}}function a(t,e){var n=[1.5*e,2*e,e/1.5,e/2];return t>90?e>4?n[0]:n[3]:t>60?e>3?n[3]:n[2]:t>30?e>8?n[1]:e>6?n[0]:e>4?e:n[2]:e>8?e:n[3]}function c(t,e,n,i,r,o){t&&G(C,t.toString(),{dur:e,scrollEasing:n,dir:i,overwrite:r,drag:o})}var u,l,f,d,h,p,m,g,v,y,w,b,x,_,C=e(this),S=C.data(“mCS”),k=S.opt,T=”mCS_”+S.idx,O=e(“#mCSB_”+S.idx),A=e(“#mCSB_”+S.idx+”_container”),j=[e(“#mCSB_”+S.idx+”_dragger_vertical”),e(“#mCSB_”+S.idx+”_dragger_horizontal”)],P=[],M=[],L=0,D=”yx”===k.axis?”none”:”all”,N=[],R=A.find(“iframe”),z=[“touchstart.”+T+” pointerdown.”+T+” MSPointerDown.”+T,”touchmove.”+T+” pointermove.”+T+” MSPointerMove.”+T,”touchend.”+T+” pointerup.”+T+” MSPointerUp.”+T],B=void 0!==document.body.style.touchAction&&””!==document.body.style.touchAction;A.bind(z[0],function(t){n(t)}).bind(z[1],function(t){i(t)}),O.bind(z[0],function(t){r(t)}).bind(z[2],function(t){o(t)}),R.length&&R.each(function(){e(this).bind(“load”,function(){I(this)&&e(this.contentDocument||this.contentWindow.document).bind(z[0],function(t){n(t),r(t)}).bind(z[1],function(t){i(t)}).bind(z[2],function(t){o(t)})})})},j=function(){function n(){return window.getSelection?window.getSelection().toString():document.selection&&”Control”!=document.selection.type?document.selection.createRange().text:0}function i(t,e,n){u.type=n&&r?”stepped”:”stepless”,u.scrollAmount=10,$(o,t,e,”mcsLinearOut”,n?60:null)}var r,o=e(this),a=o.data(“mCS”),c=a.opt,u=a.sequential,l=”mCS_”+a.idx,f=e(“#mCSB_”+a.idx+”_container”),d=f.parent();f.bind(“mousedown.”+l,function(e){t||r||(r=1,s=!0)}).add(document).bind(“mousemove.”+l,function(e){if(!t&&r&&n()){var o=f.offset(),s=E(e)[0]-o.top+f[0].offsetTop,l=E(e)[1]-o.left+f[0].offsetLeft;s>0&&s0&&ld.height()&&i(“on”,40)),”y”!==c.axis&&a.overflowed[1]&&(ld.width()&&i(“on”,39)))}}).bind(“mouseup.”+l+” dragend.”+l,function(e){t||(r&&(r=0,i(“off”,null)),s=!1)})},P=function(){function t(t,o){if(V(n),!D(n,t.target)){var u=”auto”!==r.mouseWheel.deltaFactor?parseInt(r.mouseWheel.deltaFactor):a&&t.deltaFactor=s.width()?.9*s.width():d[0],p=Math.abs(e(“#mCSB_”+i.idx+”_container”)[0].offsetLeft),m=c[1][0].offsetLeft,g=c[1].parent().width()-c[1].width(),v=”y”===r.mouseWheel.axis?t.deltaY||o:t.deltaX;else var f=”y”,d=[Math.round(u*i.scrollRatio.y),parseInt(r.mouseWheel.scrollAmount)],h=”auto”!==r.mouseWheel.scrollAmount?d[1]:d[0]>=s.height()?.9*s.height():d[0],p=Math.abs(e(“#mCSB_”+i.idx+”_container”)[0].offsetTop),m=c[0][0].offsetTop,g=c[0].parent().height()-c[0].height(),v=t.deltaY||o;”y”===f&&!i.overflowed[0]||”x”===f&&!i.overflowed[1]||((r.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(v=-v),r.mouseWheel.normalizeDelta&&(v=v0&&0!==m||v-1&&!(e.inArray(i,o)>-1&&!e(n).is(“:focus”))},N=function(){var t,n=e(this),i=n.data(“mCS”),r=”mCS_”+i.idx,o=e(“#mCSB_”+i.idx+”_container”),a=o.parent(),u=e(“.mCSB_”+i.idx+”_scrollbar .”+c[12]);u.bind(“mousedown.”+r+” touchstart.”+r+” pointerdown.”+r+” MSPointerDown.”+r,function(n){s=!0,e(n.target).hasClass(“mCSB_dragger”)||(t=1)}).bind(“touchend.”+r+” pointerup.”+r+” MSPointerUp.”+r,function(t){s=!1}).bind(“click.”+r,function(r){if(t&&(t=0,e(r.target).hasClass(c[12])||e(r.target).hasClass(“mCSB_draggerRail”))){V(n);var s=e(this),u=s.find(“.mCSB_dragger”);if(s.parent(“.mCSB_scrollTools_horizontal”).length>0){if(!i.overflowed[1])return;var l=”x”,f=r.pageX>u.offset().left?-1:1,d=Math.abs(o[0].offsetLeft)-f*(.9*a.width())}else{if(!i.overflowed[0])return;var l=”y”,f=r.pageY>u.offset().top?-1:1,d=Math.abs(o[0].offsetTop)-f*(.9*a.height())}G(n,d.toString(),{dir:l,scrollEasing:”mcsEaseInOut”})}})},R=function(){var t=e(this),n=t.data(“mCS”),i=n.opt,r=”mCS_”+n.idx,o=e(“#mCSB_”+n.idx+”_container”),a=o.parent();o.bind(“focusin.”+r,function(n){var r=e(document.activeElement),s=o.find(“.mCustomScrollBox”).length;r.is(i.advanced.autoScrollOnFocus)&&(V(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=s?17*s:0,t[0]._focusTimeout=setTimeout(function(){var e=[et(r)[0],et(r)[1]],n=[o[0].offsetTop,o[0].offsetLeft],s=[n[0]+e[0]>=0&&n[0]+e[0]=0&&n[0]+e[1]a”).bind(“contextmenu.”+o,function(t){t.preventDefault()}).bind(“mousedown.”+o+” touchstart.”+o+” pointerdown.”+o+” MSPointerDown.”+o+” mouseup.”+o+” touchend.”+o+” pointerup.”+o+” MSPointerUp.”+o+” mouseout.”+o+” pointerout.”+o+” MSPointerOut.”+o+” click.”+o,function(o){function a(e,n){r.scrollAmount=i.scrollButtons.scrollAmount,$(t,e,n)}if(o.preventDefault(),J(o)){var c=e(this).attr(“class”);switch(r.type=i.scrollButtons.scrollType,o.type){case”mousedown”:case”touchstart”:case”pointerdown”:case”MSPointerDown”:if(“stepped”===r.type)return;s=!0,n.tweenRunning=!1,a(“on”,c);break;case”mouseup”:case”touchend”:case”pointerup”:case”MSPointerUp”:case”mouseout”:case”pointerout”:case”MSPointerOut”:if(“stepped”===r.type)return;s=!1,r.dir&&a(“off”,c);break;case”click”:if(“stepped”!==r.type||n.tweenRunning)return;a(“on”,c)}}})},F=function(){function t(t){function a(t,e){o.type=r.keyboard.scrollType,o.scrollAmount=r.keyboard.scrollAmount,”stepped”===o.type&&i.tweenRunning||$(n,t,e)}switch(t.type){case”blur”:i.tweenRunning&&o.dir&&a(“off”,null);break;case”keydown”:case”keyup”:var s=t.keyCode?t.keyCode:t.which,f=”on”;if(“x”!==r.axis&&(38===s||40===s)||”y”!==r.axis&&(37===s||39===s)){if((38===s||40===s)&&!i.overflowed[0]||(37===s||39===s)&&!i.overflowed[1])return;”keyup”===t.type&&(f=”off”),e(document.activeElement).is(l)||(t.preventDefault(),t.stopImmediatePropagation(),a(f,s))}else if(33===s||34===s){if((i.overflowed[0]||i.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),”keyup”===t.type){V(n);var d=34===s?-1:1;if(“x”===r.axis||”yx”===r.axis&&i.overflowed[1]&&!i.overflowed[0])var h=”x”,p=Math.abs(c[0].offsetLeft)-d*(.9*u.width());else var h=”y”,p=Math.abs(c[0].offsetTop)-d*(.9*u.height());G(n,p.toString(),{dir:h,scrollEasing:”mcsEaseInOut”})}}else if((35===s||36===s)&&!e(document.activeElement).is(l)&&((i.overflowed[0]||i.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),”keyup”===t.type)){if(“x”===r.axis||”yx”===r.axis&&i.overflowed[1]&&!i.overflowed[0])var h=”x”,p=35===s?Math.abs(u.width()-c.outerWidth(!1)):0;else var h=”y”,p=35===s?Math.abs(u.height()-c.outerHeight(!1)):0;G(n,p.toString(),{dir:h,scrollEasing:”mcsEaseInOut”})}}}var n=e(this),i=n.data(“mCS”),r=i.opt,o=i.sequential,a=”mCS_”+i.idx,s=e(“#mCSB_”+i.idx),c=e(“#mCSB_”+i.idx+”_container”),u=c.parent(),l=”input,textarea,select,datalist,keygen,[contenteditable=’true’]”,f=c.find(“iframe”),d=[“blur.”+a+” keydown.”+a+” keyup.”+a];f.length&&f.each(function(){e(this).bind(“load”,function(){I(this)&&e(this.contentDocument||this.contentWindow.document).bind(d[0],function(e){t(e)})})}),s.attr(“tabindex”,”0″).bind(d[0],function(e){t(e)})},$=function(t,n,i,r,o){function a(e){u.snapAmount&&(l.scrollAmount=u.snapAmount instanceof Array?”x”===l.dir[0]?u.snapAmount[1]:u.snapAmount[0]:u.snapAmount);var n=”stepped”!==l.type,i=o||(e?n?h/1.5:p:1e3/60),c=e?n?7.5:40:2.5,d=[Math.abs(f[0].offsetTop),Math.abs(f[0].offsetLeft)],m=[s.scrollRatio.y>10?10:s.scrollRatio.y,s.scrollRatio.x>10?10:s.scrollRatio.x],g=”x”===l.dir[0]?d[1]+l.dir[1]*(m[1]*c):d[0]+l.dir[1]*(m[0]*c),v=”x”===l.dir[0]?d[1]+l.dir[1]*parseInt(l.scrollAmount):d[0]+l.dir[1]*parseInt(l.scrollAmount),y=”auto”!==l.scrollAmount?v:g,w=r||(e?n?”mcsLinearOut”:”mcsEaseInOut”:”mcsLinear”),b=!!e;if(e&&i1?[t[0],t[1]]:”x”===n.axis?[null,t[0]]:[t[0],null]:(i[0]=t.y?t.y:t.x||”x”===n.axis?null:t,i[1]=t.x?t.x:t.y||”y”===n.axis?null:t),”function”==typeof i[0]&&(i[0]=i[0]()),”function”==typeof i[1]&&(i[1]=i[1]()),i},W=function(t,n){if(null!=t&&void 0!==t){var i=e(this),r=i.data(“mCS”),o=r.opt,a=e(“#mCSB_”+r.idx+”_container”),s=a.parent(),c=typeof t;n||(n=”x”===o.axis?”x”:”y”);var l=”x”===n?a.outerWidth(!1)-s.width():a.outerHeight(!1)-s.height(),f=”x”===n?a[0].offsetLeft:a[0].offsetTop,d=”x”===n?”left”:”top”;switch(c){case”function”:return t();case”object”:var h=t.jquery?t:e(t);if(!h.length)return;return”x”===n?et(h)[1]:et(h)[0];case”string”:case”number”:if(tt(t))return Math.abs(t);if(-1!==t.indexOf(“%”))return Math.abs(l*parseInt(t)/100);if(-1!==t.indexOf(“-=”))return Math.abs(f-parseInt(t.split(“-=”)[1]));if(-1!==t.indexOf(“+=”)){var p=f+parseInt(t.split(“+=”)[1]);return p>=0?0:Math.abs(p)}if(-1!==t.indexOf(“px”)&&tt(t.split(“px”)[0]))return Math.abs(t.split(“px”)[0]);if(“top”===t||”left”===t)return 0;if(“bottom”===t)return Math.abs(s.height()-a.outerHeight(!1));if(“right”===t)return Math.abs(s.width()-a.outerWidth(!1));if(“first”===t||”last”===t){var h=a.find(“:”+t);return”x”===n?et(h)[1]:et(h)[0]}return e(t).length?”x”===n?et(e(t))[1]:et(e(t))[0]:(a.css(d,t),void u.update.call(null,i[0]))}}},H=function(t){function n(){if(clearTimeout(f[0].autoUpdate),0===a.parents(“html”).length)return void(a=null);f[0].autoUpdate=setTimeout(function(){return l.advanced.updateOnSelectorChange&&(s.poll.change.n=r(),s.poll.change.n!==s.poll.change.o)?(s.poll.change.o=s.poll.change.n,void o(3)):l.advanced.updateOnContentResize&&(s.poll.size.n=a[0].scrollHeight+a[0].scrollWidth+f[0].offsetHeight+a[0].offsetHeight+a[0].offsetWidth,s.poll.size.n!==s.poll.size.o)?(s.poll.size.o=s.poll.size.n,void o(1)):!l.advanced.updateOnImageLoad||”auto”===l.advanced.updateOnImageLoad&&”y”===l.axis||(s.poll.img.n=f.find(“img”).length,s.poll.img.n===s.poll.img.o)?void((l.advanced.updateOnSelectorChange||l.advanced.updateOnContentResize||l.advanced.updateOnImageLoad)&&n()):(s.poll.img.o=s.poll.img.n,void f.find(“img”).each(function(){i(this)}))},l.advanced.autoUpdateTimeout)}function i(t){function n(){this.onload=null,e(t).addClass(c[2]),o(2)}if(e(t).hasClass(c[2]))return void o();var i=new Image;i.onload=function(t,e){return function(){return e.apply(t,arguments)}}(i,n),i.src=t.src}function r(){!0===l.advanced.updateOnSelectorChange&&(l.advanced.updateOnSelectorChange=”*”);var t=0,e=f.find(l.advanced.updateOnSelectorChange);return l.advanced.updateOnSelectorChange&&e.length>0&&e.each(function(){t+=this.offsetHeight+this.offsetWidth}),t}function o(t){clearTimeout(f[0].autoUpdate),u.update.call(null,a[0],t)}var a=e(this),s=a.data(“mCS”),l=s.opt,f=e(“#mCSB_”+s.idx+”_container”);if(t)return clearTimeout(f[0].autoUpdate),void K(f[0],”autoUpdate”);n()},U=function(t,e,n){return Math.round(t/e)*e-n},V=function(t){var n=t.data(“mCS”);e(“#mCSB_”+n.idx+”_container,#mCSB_”+n.idx+”_container_wrapper,#mCSB_”+n.idx+”_dragger_vertical,#mCSB_”+n.idx+”_dragger_horizontal”).each(function(){Z.call(this)})},G=function(t,n,i){function r(t){return s&&c.callbacks[t]&&”function”==typeof c.callbacks[t]}function o(){return[c.callbacks.alwaysTriggerOffsets||w>=b[0]+C,c.callbacks.alwaysTriggerOffsets||w0?C/s.scrollRatio.x:0,T=S>0?S/s.scrollRatio.x:0;break;case”y”:var v=e(“#mCSB_”+s.idx+”_dragger_vertical”),y=”top”,w=d[0].offsetTop,b=[f.height()-d.outerHeight(!1),v.parent().height()-v.height()],_=[n,0===n?0:n/s.scrollRatio.y],C=p[0],S=m[0],k=C>0?C/s.scrollRatio.y:0,T=S>0?S/s.scrollRatio.y:0}_[1]=b[1]?_=[b[0],b[1]]:_[0]=-_[0],t[0].mcs||(a(),r(“onInit”)&&c.callbacks.onInit.call(t[0])),clearTimeout(d[0].onCompleteTimeout),X(v[0],y,Math.round(_[1]),l[1],i.scrollEasing),!s.tweenRunning&&(0===w&&_[0]>=0||w===b[0]&&_[0]=b[1]-k&&s.cbOffsets[0]&&(a(),c.callbacks.onTotalScroll.call(t[0])),r(“onTotalScrollBack”)&&_[1]=w.time&&(w.time=g>w.time?g+l-(g-w.time):g+l-1,w.time0?(w.currVal=u(w.time,v,b,i,r),y[e]=Math.round(w.currVal)+”px”):y[e]=n+”px”,h.call()}function u(t,e,n,i,r){switch(r){case”linear”:case”mcsLinear”:return n*t/i+e;case”mcsLinearOut”:return t/=i,t–,n*Math.sqrt(1-t*t)+e;case”easeInOutSmooth”:return(t/=i/2)=0&&i[0]+et(r)[0]=0&&i[1]+et(r)[1]=0&&a[1]-o[1]*s[1][0]=0},mcsOverflow:e.expr[“:”].mcsOverflow||function(t){var n=e(t).data(“mCS”);if(n)return n.overflowed[0]||n.overflowed[1]}})})}()}()})},function(t,e,n){“use strict”;function i(t){if(null===t||void 0===t)throw new TypeError(“Object.assign cannot be called with null or undefined”);return Object(t)}var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String(“abc”);if(t[5]=”de”,”5″===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n1||t.items.merge,o[i]=r?e*n:this._items[i].width();this._widths=o}},{filter:[“items”,”settings”],run:function(){var e=[],n=this._items,i=this.settings,r=Math.max(2*i.items,4),o=2*Math.ceil(n.length/2),a=i.loop&&n.length?i.rewind?r:Math.max(r,o):0,s=””,c=””;for(a/=2;a–;)e.push(this.normalize(e.length/2,!0)),s+=n[e[e.length-1]][0].outerHTML,e.push(this.normalize(n.length-1-(e.length-1)/2,!0)),c=n[e[e.length-1]][0].outerHTML+c;this._clones=e,t(s).addClass(“cloned”).appendTo(this.$stage),t(c).addClass(“cloned”).prependTo(this.$stage)}},{filter:[“width”,”items”,”settings”],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,n=-1,i=0,r=0,o=[];++n”,s)||this.op(e,””,s))&&c.push(n);this.$stage.children(“.active”).removeClass(“active”),this.$stage.children(“:eq(“+c.join(“), :eq(“)+”)”).addClass(“active”),this.settings.center&&(this.$stage.children(“.center”).removeClass(“center”),this.$stage.children().eq(this.current()).addClass(“center”))}}],o.prototype.initialize=function(){if(this.enter(“initializing”),this.trigger(“initialize”),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is(“pre-loading”)){var e,n,i;e=this.$element.find(“img”),n=this.settings.nestedItemSelector?”.”+this.settings.nestedItemSelector:void 0,i=this.$element.children(n).width(),e.length&&i’).wrap(”),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(“:visible”)?this.refresh():this.invalidate(“width”),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave(“initializing”),this.trigger(“initialized”)},o.prototype.setup=function(){var e=this.viewport(),n=this.options.responsive,i=-1,r=null;n?(t.each(n,function(t){ti&&(i=Number(t))}),r=t.extend({},this.options,n[i]),delete r.responsive,r.responsiveClass&&this.$element.attr(“class”,this.$element.attr(“class”).replace(new RegExp(“(“+this.options.responsiveClass+”-)\S+\s”,”g”),”$1″+i))):r=t.extend({},this.options),null!==this.settings&&this._breakpoint===i||(this.trigger(“change”,{property:{name:”settings”,value:r}}),this._breakpoint=i,this.settings=r,this.invalidate(“settings”),this.trigger(“changed”,{property:{name:”settings”,value:this.settings}}))},o.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},o.prototype.prepare=function(e){var n=this.trigger(“prepare”,{content:e});return n.data||(n.data=t(“”).addClass(this.options.itemClass).append(e)),this.trigger(“prepared”,{content:n.data}),n.data},o.prototype.update=function(){for(var e=0,n=this._pipe.length,i=t.proxy(function(t){return this[t]},this._invalidated),r={};e0)&&this._pipe[e].run(r),e++;this._invalidated={},!this.is(“valid”)&&this.enter(“valid”)},o.prototype.width=function(t){switch(t=t||o.Width.Default){case o.Width.Inner:case o.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},o.prototype.refresh=function(){this.enter(“refreshing”),this.trigger(“refresh”),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave(“refreshing”),this.trigger(“refreshed”)},o.prototype.onThrottledResize=function(){n.clearTimeout(this.resizeTimer),this.resizeTimer=n.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},o.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.$element.is(“:visible”)&&(this.enter(“resizing”),this.trigger(“resize”).isDefaultPrevented()?(this.leave(“resizing”),!1):(this.invalidate(“width”),this.refresh(),this.leave(“resizing”),void this.trigger(“resized”)))))},o.prototype.registerEventHandlers=function(){t.support.transition&&this.$stage.on(t.support.transition.end+”.owl.core”,t.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(n,”resize”,this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on(“mousedown.owl.core”,t.proxy(this.onDragStart,this)),this.$stage.on(“dragstart.owl.core selectstart.owl.core”,function(){return!1})),this.settings.touchDrag&&(this.$stage.on(“touchstart.owl.core”,t.proxy(this.onDragStart,this)),this.$stage.on(“touchcancel.owl.core”,t.proxy(this.onDragEnd,this)))},o.prototype.onDragStart=function(e){var n=null;3!==e.which&&(t.support.transform?(n=this.$stage.css(“transform”).replace(/.*(|)| /g,””).split(“,”),n={x:n[16===n.length?12:4],y:n[16===n.length?13:5]}):(n=this.$stage.position(),n={x:this.settings.rtl?n.left+this.$stage.width()-this.width()+this.settings.margin:n.left,y:n.top}),this.is(“animating”)&&(t.support.transform?this.animate(n.x):this.$stage.stop(),this.invalidate(“position”)),this.$element.toggleClass(this.options.grabClass,”mousedown”===e.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=t(e.target),this._drag.stage.start=n,this._drag.stage.current=n,this._drag.pointer=this.pointer(e),t(i).on(“mouseup.owl.core touchend.owl.core”,t.proxy(this.onDragEnd,this)),t(i).one(“mousemove.owl.core touchmove.owl.core”,t.proxy(function(e){var n=this.difference(this._drag.pointer,this.pointer(e));t(i).on(“mousemove.owl.core touchmove.owl.core”,t.proxy(this.onDragMove,this)),Math.abs(n.x)0^this.settings.rtl?”left”:”right”;t(i).off(“.owl.core”),this.$element.removeClass(this.options.grabClass),(0!==n.x&&this.is(“dragging”)||!this.is(“valid”))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(r.x,0!==n.x?o:this._drag.direction)),this.invalidate(“position”),this.update(),this._drag.direction=o,(Math.abs(n.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one(“click.owl.core”,function(){return!1})),this.is(“dragging”)&&(this.leave(“dragging”),this.trigger(“dragged”))},o.prototype.closest=function(e,n){var i=-1,r=this.width(),o=this.coordinates();return this.settings.freeDrag||t.each(o,t.proxy(function(t,a){return”left”===n&&e>a-30&&ea-r-30&&e”,o[t+1]||a-r)&&(i=”left”===n?t+1:t),-1===i},this)),this.settings.loop||(this.op(e,”>”,o[this.minimum()])?i=e=this.minimum():this.op(e,”0;this.is(“animating”)&&this.onTransitionEnd(),n&&(this.enter(“animating”),this.trigger(“translate”)),t.support.transform3d&&t.support.transition?this.$stage.css({transform:”translate3d(“+e+”px,0px,0px)”,transition:this.speed()/1e3+”s”}):n?this.$stage.animate({left:e+”px”},this.speed(),this.settings.fallbackEasing,t.proxy(this.onTransitionEnd,this)):this.$stage.css({left:e+”px”})},o.prototype.is=function(t){return this._states.current[t]&&this._states.current[t]>0},o.prototype.current=function(t){if(void 0===t)return this._current;if(0!==this._items.length){if(t=this.normalize(t),this._current!==t){var e=this.trigger(“change”,{property:{name:”position”,value:t}});void 0!==e.data&&(t=this.normalize(e.data)),this._current=t,this.invalidate(“position”),this.trigger(“changed”,{property:{name:”position”,value:this._current}})}return this._current}},o.prototype.invalidate=function(e){return”string”===t.type(e)&&(this._invalidated[e]=!0,this.is(“valid”)&&this.leave(“valid”)),t.map(this._invalidated,function(t,e){return e})},o.prototype.reset=function(t){void 0!==(t=this.normalize(t))&&(this._speed=0,this._current=t,this.suppress([“translate”,”translated”]),this.animate(this.coordinates(t)),this.release([“translate”,”translated”]))},o.prototype.normalize=function(t,e){var n=this._items.length,i=e?0:this._clones.length;return!this.isNumeric(t)||n=n+i)&&(t=((t-i/2)%n+n)%n+i/2),t},o.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},o.prototype.maximum=function(t){var e,n=this.settings,i=this._coordinates.length,r=Math.abs(this._coordinates[i-1])-this._width,o=-1;if(n.loop)i=this._clones.length/2+this._items.length-1;else if(n.autoWidth||n.merge)for(;i-o>1;)Math.abs(this._coordinates[e=i+o>>1])0)-(ra/2&&(r+=-1*o*a),t=n+r,(i=((t-s)%a+a)%a+s)!==t&&i-r0&&(n=i-r,t=i,this.reset(n))):this.settings.rewind?(c+=1,t=(t%c+c)%c):t=Math.max(s,Math.min(c,t)),this.speed(this.duration(n,t,e)),this.current(t),this.$element.is(“:visible”)&&this.update()},o.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},o.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},o.prototype.onTransitionEnd=function(t){if(void 0!==t&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave(“animating”),this.trigger(“translated”)},o.prototype.viewport=function(){var e;if(this.options.responsiveBaseElement!==n)e=t(this.options.responsiveBaseElement).width();else if(n.innerWidth)e=n.innerWidth;else{if(!i.documentElement||!i.documentElement.clientWidth)throw”Can not detect viewport width.”;e=i.documentElement.clientWidth}return e},o.prototype.replace=function(n){this.$stage.empty(),this._items=[],n&&(n=n instanceof e?n:t(n)),this.settings.nestedItemSelector&&(n=n.find(“.”+this.settings.nestedItemSelector)),n.filter(function(){return 1===this.nodeType}).each(t.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find(“[data-merge]”).andSelf(“[data-merge]”).attr(“data-merge”)||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate(“items”)},o.prototype.add=function(n,i){var r=this.relative(this._current);i=void 0===i?this._items.length:this.normalize(i,!0),n=n instanceof e?n:t(n),this.trigger(“add”,{content:n,position:i}),n=this.prepare(n),0===this._items.length||i===this._items.length?(0===this._items.length&&this.$stage.append(n),0!==this._items.length&&this._items[i-1].after(n),this._items.push(n),this._mergers.push(1*n.find(“[data-merge]”).andSelf(“[data-merge]”).attr(“data-merge”)||1)):(this._items[i].before(n),this._items.splice(i,0,n),this._mergers.splice(i,0,1*n.find(“[data-merge]”).andSelf(“[data-merge]”).attr(“data-merge”)||1)),this._items[r]&&this.reset(this._items[r].index()),this.invalidate(“items”),this.trigger(“added”,{content:n,position:i})},o.prototype.remove=function(t){void 0!==(t=this.normalize(t,!0))&&(this.trigger(“remove”,{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate(“items”),this.trigger(“removed”,{content:null,position:t}))},o.prototype.preloadAutoWidthImages=function(e){e.each(t.proxy(function(e,n){this.enter(“pre-loading”),n=t(n),t(new Image).one(“load”,t.proxy(function(t){n.attr(“src”,t.target.src),n.css(“opacity”,1),this.leave(“pre-loading”),!this.is(“pre-loading”)&&!this.is(“initializing”)&&this.refresh()},this)).attr(“src”,n.attr(“src”)||n.attr(“data-src”)||n.attr(“data-src-retina”))},this))},o.prototype.destroy=function(){this.$element.off(“.owl.core”),this.$stage.off(“.owl.core”),t(i).off(“.owl.core”),!1!==this.settings.responsive&&(n.clearTimeout(this.resizeTimer),this.off(n,”resize”,this._handlers.onThrottledResize));for(var e in this._plugins)this._plugins[e].destroy();this.$stage.children(“.cloned”).remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr(“class”,this.$element.attr(“class”).replace(new RegExp(this.options.responsiveClass+”-\S+\s”,”g”),””)).removeData(“owl.carousel”)},o.prototype.op=function(t,e,n){var i=this.settings.rtl;switch(e){case”n:t”:return i?tn;case”>=”:return i?t=n;case”=n:t-1:n.apply(this,arguments)},t.event.special[e.name].owl=!0}}else e.type===o.Type.State&&(this._states.tags[e.name]?this._states.tags[e.name]=this._states.tags[e.name].concat(e.tags):this._states.tags[e.name]=e.tags,this._states.tags[e.name]=t.grep(this._states.tags[e.name],t.proxy(function(n,i){return t.inArray(n,this._states.tags[e.name])===i},this)))},o.prototype.suppress=function(e){t.each(e,t.proxy(function(t,e){this._supress[e]=!0},this))},o.prototype.release=function(e){t.each(e,t.proxy(function(t,e){delete this._supress[e]},this))},o.prototype.pointer=function(t){var e={x:null,y:null};return t=t.originalEvent||t||n.event,t=t.touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,t.pageX?(e.x=t.pageX,e.y=t.pageY):(e.x=t.clientX,e.y=t.clientY),e},o.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},o.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},t.fn.owlCarousel=function(e){var n=Array.prototype.slice.call(arguments,1);return this.each(function(){var i=t(this),r=i.data(“owl.carousel”);r||(r=new o(this,”object”==typeof e&&e),i.data(“owl.carousel”,r),t.each([“next”,”prev”,”to”,”destroy”,”refresh”,”replace”,”add”,”remove”],function(e,n){r.register({type:o.Type.Event,name:n}),r.$element.on(n+”.owl.carousel.core”,t.proxy(function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([n]),r[n].apply(this,[].slice.call(arguments,1)),this.release([n]))},r))})),”string”==typeof e&&”_”!==e.charAt(0)&&r[e].apply(r,n)})},t.fn.owlCarousel.Constructor=o}(window.Zepto||t,window,document),function(t,e,n,i){var r=function(e){this._core=e,this._interval=null,this._visible=null,this._handlers={“initialized.owl.carousel”:t.proxy(function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=t.extend({},r.Defaults,this._core.options),this._core.$element.on(this._handlers)};r.Defaults={autoRefresh:!0,autoRefreshInterval:500},r.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(“:visible”),this._interval=e.setInterval(t.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},r.prototype.refresh=function(){this._core.$element.is(“:visible”)!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass(“owl-hidden”,!this._visible),this._visible&&this._core.invalidate(“width”)&&this._core.refresh())},r.prototype.destroy=function(){var t,n;e.clearInterval(this._interval);for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(n in Object.getOwnPropertyNames(this))”function”!=typeof this[n]&&(this[n]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoRefresh=r}(window.Zepto||t,window,document),function(t,e,n,i){var r=function(e){this._core=e,this._loaded=[],this._handlers={“initialized.owl.carousel change.owl.carousel resized.owl.carousel”:t.proxy(function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&”position”==e.property.name||”initialized”==e.type))for(var n=this._core.settings,i=n.center&&Math.ceil(n.items/2)||n.items,r=n.center&&-1*i||0,o=(e.property&&void 0!==e.property.value?e.property.value:this._core.current())+r,a=this._core.clones().length,s=t.proxy(function(t,e){this.load(e)},this);r++-1||(r.each(t.proxy(function(n,i){var r,o=t(i),a=e.devicePixelRatio>1&&o.attr(“data-src-retina”)||o.attr(“data-src”);this._core.trigger(“load”,{element:o,url:a},”lazy”),o.is(“img”)?o.one(“load.owl.lazy”,t.proxy(function(){o.css(“opacity”,1),this._core.trigger(“loaded”,{element:o,url:a},”lazy”)},this)).attr(“src”,a):(r=new Image,r.onload=t.proxy(function(){o.css({“background-image”:”url(“+a+”)”,opacity:”1″}),this._core.trigger(“loaded”,{element:o,url:a},”lazy”)},this),r.src=a)},this)),this._loaded.push(i.get(0)))},r.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))”function”!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=r}(window.Zepto||t,window,document),function(t,e,n,i){var r=function(e){this._core=e,this._handlers={“initialized.owl.carousel refreshed.owl.carousel”:t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&this.update()},this),”changed.owl.carousel”:t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&”position”==t.property.name&&this.update()},this),”loaded.owl.lazy”:t.proxy(function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest(“.”+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=t.extend({},r.Defaults,this._core.options),this._core.$element.on(this._handlers)};r.Defaults={autoHeight:!1,autoHeightClass:”owl-height”},r.prototype.update=function(){var e=this._core._current,n=e+this._core.settings.items,i=this._core.$stage.children().toArray().slice(e,n),r=[],o=0;t.each(i,function(e,n){r.push(t(n).height())}),o=Math.max.apply(null,r),this._core.$stage.parent().height(o).addClass(this._core.settings.autoHeightClass)},r.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))”function”!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoHeight=r}(window.Zepto||t,window,document),function(t,e,n,i){var r=function(e){this._core=e,this._videos={},this._playing=null,this._handlers={“initialized.owl.carousel”:t.proxy(function(t){t.namespace&&this._core.register({type:”state”,name:”playing”,tags:[“interacting”]})},this),”resize.owl.carousel”:t.proxy(function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()},this),”refreshed.owl.carousel”:t.proxy(function(t){t.namespace&&this._core.is(“resizing”)&&this._core.$stage.find(“.cloned .owl-video-frame”).remove()},this),”changed.owl.carousel”:t.proxy(function(t){t.namespace&&”position”===t.property.name&&this._playing&&this.stop()},this),”prepared.owl.carousel”:t.proxy(function(e){if(e.namespace){var n=t(e.content).find(“.owl-video”);n.length&&(n.css(“display”,”none”),this.fetch(n,t(e.content)))}},this)},this._core.options=t.extend({},r.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on(“click.owl.video”,”.owl-video-play-icon”,t.proxy(function(t){this.play(t)},this))};r.Defaults={video:!1,videoHeight:!1,videoWidth:!1},r.prototype.fetch=function(t,e){var n=function(){return t.attr(“data-vimeo-id”)?”vimeo”:t.attr(“data-vzaar-id”)?”vzaar”:”youtube”}(),i=t.attr(“data-vimeo-id”)||t.attr(“data-youtube-id”)||t.attr(“data-vzaar-id”),r=t.attr(“data-width”)||this._core.settings.videoWidth,o=t.attr(“data-height”)||this._core.settings.videoHeight,a=t.attr(“href”);if(!a)throw new Error(“Missing video URL.”);if(i=a.match(/(http:|https:|)//(player.|www.|app.)?(vimeo.com|youtu(be.com|.be|be.googleapis.com)|vzaar.com)/(video/|videos/|embed/|channels/.+/|groups/.+/|watch?v=|v/)?([A-Za-z0-9._%-]*)(&S+)?/),i[3].indexOf(“youtu”)>-1)n=”youtube”;else if(i[3].indexOf(“vimeo”)>-1)n=”vimeo”;else{if(!(i[3].indexOf(“vzaar”)>-1))throw new Error(“Video URL not supported.”);n=”vzaar”}i=i[6],this._videos[a]={type:n,id:i,width:r,height:o},e.attr(“data-video”,a),this.thumbnail(t,this._videos[a])},r.prototype.thumbnail=function(e,n){var i,r,o,a=n.width&&n.height?’style=”width:’+n.width+”px;height:”+n.height+’px;”‘:””,s=e.find(“img”),c=”src”,u=””,l=this._core.settings,f=function(t){r=”,i=l.lazyLoad?”:”,e.after(i),e.after(r)};if(e.wrap(‘”),this._core.settings.lazyLoad&&(c=”data-src”,u=”owl-lazy”),s.length)return f(s.attr(c)),s.remove(),!1;”youtube”===n.type?(o=”//img.youtube.com/vi/”+n.id+”/hqdefault.jpg”,f(o)):”vimeo”===n.type?t.ajax({type:”GET”,url:”//vimeo.com/api/v2/video/”+n.id+”.json”,jsonp:”callback”,dataType:”jsonp”,success:function(t){o=t[0].thumbnail_large,f(o)}}):”vzaar”===n.type&&t.ajax({type:”GET”,url:”//vzaar.com/api/videos/”+n.id+”.json”,jsonp:”callback”,dataType:”jsonp”,success:function(t){o=t.framegrab_url,f(o)}})},r.prototype.stop=function(){this._core.trigger(“stop”,null,”video”),this._playing.find(“.owl-video-frame”).remove(),this._playing.removeClass(“owl-video-playing”),this._playing=null,this._core.leave(“playing”),this._core.trigger(“stopped”,null,”video”)},r.prototype.play=function(e){var n,i=t(e.target),r=i.closest(“.”+this._core.settings.itemClass),o=this._videos[r.attr(“data-video”)],a=o.width||”100%”,s=o.height||this._core.$stage.height();this._playing||(this._core.enter(“playing”),this._core.trigger(“play”,null,”video”),r=this._core.items(this._core.relative(r.index())),this._core.reset(r.index()),”youtube”===o.type?n=’‘:”vimeo”===o.type?n=’‘:”vzaar”===o.type&&(n=’‘),t(‘
‘+n+”
“).insertAfter(r.find(“.owl-video”)),this._playing=r.addClass(“owl-video-playing”))},r.prototype.isInFullScreen=function(){var e=n.fullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement;return e&&t(e).parent().hasClass(“owl-video-frame”)},r.prototype.destroy=function(){var t,e;this._core.$element.off(“click.owl.video”);for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))”function”!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=r}(window.Zepto||t,window,document),function(t,e,n,i){var r=function(e){this.core=e,this.core.options=t.extend({},r.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={“change.owl.carousel”:t.proxy(function(t){t.namespace&&”position”==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),”drag.owl.carousel dragged.owl.carousel translated.owl.carousel”:t.proxy(function(t){t.namespace&&(this.swapping=”translated”==t.type)},this),”translate.owl.carousel”:t.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};r.Defaults={animateOut:!1,animateIn:!1},r.prototype.swap=function(){if(1===this.core.settings.items&&t.support.animation&&t.support.transition){this.core.speed(0);var e,n=t.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),r=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,a=this.core.settings.animateOut;this.core.current()!==this.previous&&(a&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.one(t.support.animation.end,n).css({left:e+”px”}).addClass(“animated owl-animated-out”).addClass(a)),o&&r.one(t.support.animation.end,n).addClass(“animated owl-animated-in”).addClass(o))}},r.prototype.clear=function(e){t(e.target).css({left:””}).removeClass(“animated owl-animated-out owl-animated-in”).removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},r.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))”function”!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=r}(window.Zepto||t,window,document),function(t,e,n,i){var r=function(e){this._core=e,this._timeout=null,this._paused=!1,this._handlers={“changed.owl.carousel”:t.proxy(function(t){t.namespace&&”settings”===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&”position”===t.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),”initialized.owl.carousel”:t.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),”play.owl.autoplay”:t.proxy(function(t,e,n){t.namespace&&this.play(e,n)},this),”stop.owl.autoplay”:t.proxy(function(t){t.namespace&&this.stop()},this),”mouseover.owl.autoplay”:t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is(“rotating”)&&this.pause()},this),”mouseleave.owl.autoplay”:t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is(“rotating”)&&this.play()},this),”touchstart.owl.core”:t.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is(“rotating”)&&this.pause()},this),”touchend.owl.core”:t.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=t.extend({},r.Defaults,this._core.options)};r.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},r.prototype.play=function(t,e){this._paused=!1,this._core.is(“rotating”)||(this._core.enter(“rotating”),this._setAutoPlayInterval())},r.prototype._getNextTimeout=function(i,r){return this._timeout&&e.clearTimeout(this._timeout),e.setTimeout(t.proxy(function(){this._paused||this._core.is(“busy”)||this._core.is(“interacting”)||n.hidden||this._core.next(r||this._core.settings.autoplaySpeed)},this),i||this._core.settings.autoplayTimeout)},r.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},r.prototype.stop=function(){this._core.is(“rotating”)&&(e.clearTimeout(this._timeout),this._core.leave(“rotating”))},r.prototype.pause=function(){this._core.is(“rotating”)&&(this._paused=!0)},r.prototype.destroy=function(){var t,e;this.stop();for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))”function”!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=r}(window.Zepto||t,window,document),function(t,e,n,i){“use strict”;var r=function(e){this._core=e,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={“prepared.owl.carousel”:t.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push(‘
‘+t(e.content).find(“[data-dot]”).addBack(“[data-dot]”).attr(“data-dot”)+”
“)},this),”added.owl.carousel”:t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),”remove.owl.carousel”:t.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),”changed.owl.carousel”:t.proxy(function(t){t.namespace&&”position”==t.property.name&&this.draw()},this),”initialized.owl.carousel”:t.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger(“initialize”,null,”navigation”),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger(“initialized”,null,”navigation”))},this),”refreshed.owl.carousel”:t.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger(“refresh”,null,”navigation”),this.update(),this.draw(),this._core.trigger(“refreshed”,null,”navigation”))},this)},this._core.options=t.extend({},r.Defaults,this._core.options),this.$element.on(this._handlers)};r.Defaults={nav:!1,navText:[“prev”,”next”],navSpeed:!1,navElement:”div”,navContainer:!1,navContainerClass:”owl-nav”,navClass:[“owl-prev”,”owl-next”],slideBy:1,dotClass:”owl-dot”,dotsClass:”owl-dots”,dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},r.prototype.initialize=function(){var e,n=this._core.settings;this._controls.$relative=(n.navContainer?t(n.navContainer):t(“”).addClass(n.navContainerClass).appendTo(this.$element)).addClass(“disabled”),this._controls.$previous=t(“”).addClass(n.navClass[0]).html(n.navText[0]).prependTo(this._controls.$relative).on(“click”,t.proxy(function(t){this.prev(n.navSpeed)},this)),this._controls.$next=t(“”).addClass(n.navClass[1]).html(n.navText[1]).appendTo(this._controls.$relative).on(“click”,t.proxy(function(t){this.next(n.navSpeed)},this)),n.dotsData||(this._templates=[t(“”).addClass(n.dotClass).append(t(“”)).prop(“outerHTML”)]),this._controls.$absolute=(n.dotsContainer?t(n.dotsContainer):t(“”).addClass(n.dotsClass).appendTo(this.$element)).addClass(“disabled”),this._controls.$absolute.on(“click”,”div”,t.proxy(function(e){var i=t(e.target).parent().is(this._controls.$absolute)?t(e.target).index():t(e.target).parent().index();e.preventDefault(),this.to(i,n.dotsSpeed)},this));for(e in this._overrides)this._core[e]=t.proxy(this[e],this)},r.prototype.destroy=function(){var t,e,n,i;for(t in this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)this._controls[e].remove();for(i in this.overides)this._core[i]=this._overrides[i];for(n in Object.getOwnPropertyNames(this))”function”!=typeof this[n]&&(this[n]=null)},r.prototype.update=function(){var t,e,n,i=this._core.clones().length/2,r=i+this._core.items().length,o=this._core.maximum(!0),a=this._core.settings,s=a.center||a.autoWidth||a.dotsData?1:a.dotsEach||a.items;if(“page”!==a.slideBy&&(a.slideBy=Math.min(a.slideBy,a.items)),a.dots||”page”==a.slideBy)for(this._pages=[],t=i,e=0,n=0;t=s||0===e){if(this._pages.push({start:Math.min(o,t-i),end:t-i+s-1}),Math.min(o,t-i)===o)break;e=0,++n}e+=this._core.mergers(this._core.relative(t))}},r.prototype.draw=function(){var e,n=this._core.settings,i=this._core.items().length=this._core.maximum(!0))),this._controls.$absolute.toggleClass(“disabled”,!n.dots||i),n.dots&&(e=this._pages.length-this._controls.$absolute.children().length,n.dotsData&&0!==e?this._controls.$absolute.html(this._templates.join(“”)):e>0?this._controls.$absolute.append(new Array(e+1).join(this._templates[0])):e=e},this)).pop()},r.prototype.getPosition=function(e){var n,i,r=this._core.settings;return”page”==r.slideBy?(n=t.inArray(this.current(),this._pages),i=this._pages.length,e?++n:–n,n=this._pages[(n%i+i)%i].start):(n=this._core.relative(this._core.current()),i=this._core.items().length,e?n+=r.slideBy:n-=r.slideBy),n},r.prototype.next=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},r.prototype.prev=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},r.prototype.to=function(e,n,i){var r;!i&&this._pages.length?(r=this._pages.length,t.proxy(this._overrides.to,this._core)(this._pages[(e%r+r)%r].start,n)):t.proxy(this._overrides.to,this._core)(e,n)},t.fn.owlCarousel.Constructor.Plugins.Navigation=r}(window.Zepto||t,window,document),function(t,e,n,i){“use strict”;var r=function(n){this._core=n,this._hashes={},this.$element=this._core.$element,this._handlers={“initialized.owl.carousel”:t.proxy(function(n){n.namespace&&”URLHash”===this._core.settings.startPosition&&t(e).trigger(“hashchange.owl.navigation”)},this),”prepared.owl.carousel”:t.proxy(function(e){if(e.namespace){var n=t(e.content).find(“[data-hash]”).addBack(“[data-hash]”).attr(“data-hash”);if(!n)return;this._hashes[n]=e.content}},this),”changed.owl.carousel”:t.proxy(function(n){if(n.namespace&&”position”===n.property.name){var i=this._core.items(this._core.relative(this._core.current())),r=t.map(this._hashes,function(t,e){return t===i?e:null}).join();if(!r||e.location.hash.slice(1)===r)return;e.location.hash=r}},this)},this._core.options=t.extend({},r.Defaults,this._core.options),this.$element.on(this._handlers),t(e).on(“hashchange.owl.navigation”,t.proxy(function(t){var n=e.location.hash.substring(1),i=this._core.$stage.children(),r=this._hashes[n]&&i.index(this._hashes[n]);void 0!==r&&r!==this._core.current()&&this._core.to(this._core.relative(r),!1,!0)},this))};r.Defaults={URLhashListener:!1},r.prototype.destroy=function(){var n,i;t(e).off(“hashchange.owl.navigation”);for(n in this._handlers)this._core.$element.off(n,this._handlers[n]);for(i in Object.getOwnPropertyNames(this))”function”!=typeof this[i]&&(this[i]=null)},t.fn.owlCarousel.Constructor.Plugins.Hash=r}(window.Zepto||t,window,document),function(t,e,n,i){function r(e,n){var r=!1,o=e.charAt(0).toUpperCase()+e.slice(1);return t.each((e+” “+s.join(o+” “)+o).split(” “),function(t,e){if(a[e]!==i)return r=!n||e,!1}),r}function o(t){return r(t,!0)}var a=t(“”).get(0).style,s=”Webkit Moz O ms”.split(” “),c={transition:{end:{WebkitTransition:”webkitTransitionEnd”,MozTransition:”transitionend”,OTransition:”oTransitionEnd”,transition:”transitionend”}},animation:{end:{WebkitAnimation:”webkitAnimationEnd”,MozAnimation:”animationend”,OAnimation:”oAnimationEnd”,animation:”animationend”}}},u={csstransforms:function(){return!!r(“transform”)},csstransforms3d:function(){return!!r(“perspective”)},csstransitions:function(){return!!r(“transition”)},cssanimations:function(){return!!r(“animation”)}};u.csstransitions()&&(t.support.transition=new String(o(“transition”)),t.support.transition.end=c.transition.end[t.support.transition]),u.cssanimations()&&(t.support.animation=new String(o(“animation”)),t.support.animation.end=c.animation.end[t.support.animation]),u.csstransforms()&&(t.support.transform=new String(o(“transform”)),t.support.transform3d=u.csstransforms3d())}(window.Zepto||t,window,document)}).call(e,n(1),n(1))},function(t,e,n){“use strict”;function i(t){switch(t.arrayFormat){case”index”:return function(e,n,i){return null===n?[o(e,t),”[“,i,”]”].join(“”):[o(e,t),”[“,o(i,t),”]=”,o(n,t)].join(“”)};case”bracket”:return function(e,n){return null===n?o(e,t):[o(e,t),”[]=”,o(n,t)].join(“”)};default:return function(e,n){return null===n?o(e,t):[o(e,t),”=”,o(n,t)].join(“”)}}}function r(t){var e;switch(t.arrayFormat){case”index”:return function(t,n,i){if(e=/[(d*)]$/.exec(t),t=t.replace(/[d*]$/,””),!e)return void(i[t]=n);void 0===i[t]&&(i[t]={}),i[t][e[1]]=n};case”bracket”:return function(t,n,i){return e=/([])$/.exec(t),t=t.replace(/[]$/,””),e?void 0===i[t]?void(i[t]=[n]):void(i[t]=[].concat(i[t],n)):void(i[t]=n)};default:return function(t,e,n){if(void 0===n[t])return void(n[t]=e);n[t]=[].concat(n[t],e)}}}function o(t,e){return e.encode?e.strict?u(t):encodeURIComponent(t):t}function a(t){return Array.isArray(t)?t.sort():”object”==typeof t?a(Object.keys(t)).sort(function(t,e){return Number(t)-Number(e)}).map(function(e){return t[e]}):t}function s(t){var e=t.indexOf(“?”);return-1===e?””:t.slice(e+1)}function c(t,e){e=l({arrayFormat:”none”},e);var n=r(e),i=Object.create(null);return”string”!=typeof t?i:(t=t.trim().replace(/^[?#&]/,””))?(t.split(“&”).forEach(function(t){var e=t.replace(/+/g,” “).split(“=”),r=e.shift(),o=e.length>0?e.join(“=”):void 0;o=void 0===o?null:f(o),n(f(r),o,i)}),Object.keys(i).sort().reduce(function(t,e){var n=i[e];return Boolean(n)&&”object”==typeof n&&!Array.isArray(n)?t[e]=a(n):t[e]=n,t},Object.create(null))):i}var u=n(368),l=n(364),f=n(324);e.extract=s,e.parse=c,e.stringify=function(t,e){e=l({encode:!0,strict:!0,arrayFormat:”none”},e),!1===e.sort&&(e.sort=function(){});var n=i(e);return t?Object.keys(t).sort(e.sort).map(function(i){var r=t[i];if(void 0===r)return””;if(null===r)return o(i,e);if(Array.isArray(r)){var a=[];return r.slice().forEach(function(t){void 0!==t&&a.push(n(i,t,a.length))}),a.join(“&”)}return o(i,e)+”=”+o(r,e)}).filter(function(t){return t.length>0}).join(“&”):””},e.parseUrl=function(t,e){return{url:t.split(“?”)[0]||””,query:c(s(t),e)}}},function(t,e,n){(function(t,e){!function(t,n){“use strict”;function i(t){“function”!=typeof t&&(t=new Function(“”+t));for(var e=new Array(arguments.length-1),n=0;n=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(367),e.setImmediate=”undefined”!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate=”undefined”!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(e,n(44))},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,”loaded”,{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,”id”,{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,”exports”,{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,n){var i,r,o;!function(n,a){r=[t,e],i=a,void 0!==(o=”function”==typeof i?i.apply(e,r):i)&&(t.exports=o)}(0,function(t,e){“use strict”;function n(t,e){if(!(t instanceof e))throw new TypeError(“Cannot call a class as a function”)}function i(t,e){return e.indexOf(t)>=0}function r(t,e){for(var n in e)if(null==t[n]){var i=e[n];t[n]=i}return t}function o(t){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)}function a(t){var e=!(arguments.length=0){var e=t.target||t.srcElement;e.className=e.className.replace(this.config.animateClass,””).trim()}}},{key:”customStyle”,value:function(t,e,n,i,r){return e&&this.cacheAnimationName(t),t.style.visibility=e?”hidden”:”visible”,n&&this.vendorSet(t.style,{animationDuration:n}),i&&this.vendorSet(t.style,{animationDelay:i}),r&&this.vendorSet(t.style,{animationIterationCount:r}),this.vendorSet(t.style,{animationName:e?”none”:this.cachedAnimationName(t)}),t}},{key:”vendorSet”,value:function(t,e){for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];t[“”+n]=i;for(var r=0;r=n}},{key:”disabled”,value:function(){return!this.config.mobile&&o(navigator.userAgent)}}]),t}();e.default=v,t.exports=e.default})}]);
dropWidth auto set 100%) dropType: ‘imageRight’, // Type of Dropdown MegaMenu content: imageLeft, imageRight, noImage cateAreaWidth: ‘65%’, // width of categories area imageAreaWidth: ‘35%’, // width of images area cateColumns: 3, // columns of categories area – max 5 columns bottomCates: ‘‘, // contents for images column (HTML supported) images: ‘
‘ }); //Position #2 menuItem(2).HaloMegaMenu({ dropAlign: ‘fullWidth’, // Dropdown MegaMenu Alignment: left, right, center, fullWidth dropWidth: ‘800px’, // Width of Dropdown MegaMenu (if dropAlign: fullWidth => dropWidth auto set 100%) dropType: ‘imageRight’, // Type of Dropdown MegaMenu content: imageLeft, imageRight, noImage cateAreaWidth: ‘65%’, // width of categories area imageAreaWidth: ‘35%’, // width of images area cateColumns: 3, // columns of categories area – max 5 columns bottomCates: ‘‘, // contents for images column (HTML supported) images: ‘
- Additional Information
‘ }); //Position #3 menuItem(3).HaloMegaMenu({ dropAlign: ‘fullWidth’, // Dropdown MegaMenu Alignment: left, right, center, fullWidth dropWidth: ‘800px’, // Width of Dropdown MegaMenu (if dropAlign: fullWidth => dropWidth auto set 100%) dropType: ‘imageRight’, // Type of Dropdown MegaMenu content: imageLeft, imageRight, noImage cateAreaWidth: ‘65%’, // width of categories area imageAreaWidth: ‘35%’, // width of images area cateColumns: 3, // columns of categories area – max 5 columns bottomCates: ‘‘, // contents for images column (HTML supported) images: ‘
- Additional Information
‘ }); //Position #4 menuItem(4).HaloMegaMenu({ dropAlign: ‘fullWidth’, // Dropdown MegaMenu Alignment: left, right, center, fullWidth dropWidth: ‘800px’, // Width of Dropdown MegaMenu (if dropAlign: fullWidth => dropWidth auto set 100%) dropType: ‘imageRight’, // Type of Dropdown MegaMenu content: imageLeft, imageRight, noImage cateAreaWidth: ‘75%’, // width of categories area imageAreaWidth: ‘25%’, // width of images area cateColumns: 4, // columns of categories area – max 5 columns // contents for images column (HTML supported) images: ‘
- Top Rated
- Additional Information
‘ }); //Position #5 menuItem(5).HaloMegaMenu({ dropAlign: ‘fullWidth’, // Dropdown MegaMenu Alignment: left, right, center, fullWidth dropWidth: ‘800px’, // Width of Dropdown MegaMenu (if dropAlign: fullWidth => dropWidth auto set 100%) dropType: ‘imageRight’, // Type of Dropdown MegaMenu content: imageLeft, imageRight, noImage cateAreaWidth: ‘100%’, // width of categories area imageAreaWidth: ‘0%’, // width of images area cateColumns: 5, // columns of categories area – max 5 columns // contents for images column (HTML supported) images: ” }); //Position #6 menuItem(6).HaloMegaMenu({ dropAlign: ‘fullWidth’, // Dropdown MegaMenu Alignment: left, right, center, fullWidth dropWidth: ‘800px’, // Width of Dropdown MegaMenu (if dropAlign: fullWidth => dropWidth auto set 100%) dropType: ‘imageRight’, // Type of Dropdown MegaMenu content: imageLeft, imageRight, noImage cateAreaWidth: ‘75%’, // width of categories area imageAreaWidth: ‘25%’, // width of images area cateColumns: 4, // columns of categories area – max 5 columns // contents for images column (HTML supported) images: ” }); //Position #6 menuItem(7).HaloMegaMenu({ dropAlign: ‘fullWidth’, // Dropdown MegaMenu Alignment: left, right, center, fullWidth dropWidth: ‘800px’, // Width of Dropdown MegaMenu (if dropAlign: fullWidth => dropWidth auto set 100%) dropType: ‘imageRight’, // Type of Dropdown MegaMenu content: imageLeft, imageRight, noImage cateAreaWidth: ‘75%’, // width of categories area imageAreaWidth: ‘25%’, // width of images area cateColumns: 4, // columns of categories area – max 5 columns // contents for images column (HTML supported) images: ‘
- Additional Information
‘ }); //Position #7 menuItem(8).HaloMegaMenu({ dropAlign: ‘fullWidth’, // Dropdown MegaMenu Alignment: left, right, center, fullWidth dropWidth: ‘800px’, // Width of Dropdown MegaMenu (if dropAlign: fullWidth => dropWidth auto set 100%) dropType: ‘imageRight’, // Type of Dropdown MegaMenu content: imageLeft, imageRight, noImage cateAreaWidth: ‘100%’, // width of categories area imageAreaWidth: ‘0%’, // width of images area cateColumns: 4, // columns of categories area – max 5 columns // contents for images column (HTML supported) images: ” }); }); nav > ul’).html()); $(‘#mobile-categories ul’).css(‘max-height’, screen.height); $(‘#mobile-categories ul li’).has(‘ul li’).addClass(‘hasSub’).prepend(”); $(‘#mobile-categories ul li.hasSub > span’).click(function() { if ($(this).hasClass(‘toggle-expand’)) { $(this).siblings(‘.subMegaMenu’).addClass(‘sub-expand’); $(this).parent().addClass(‘expanded’); $(this).attr(‘class’, ‘toggle-close’); } else if ($(this).hasClass(‘toggle-close’)) { $(this).siblings(‘.subMegaMenu’).removeClass(‘sub-expand’); $(this).parent().removeClass(‘expanded’); $(this).attr(‘class’, ‘toggle-expand’); } }); }); ]]> { const origOpen = XMLHttpRequest.prototype.open; const origFetch = window.fetch; window.fetch = async (url, data) => { return origFetch(url, data) .then(response => { if (url && url.includes(‘/api/storefront/checkouts’) || url.includes(‘/api/storefront/carts’)) { response.clone().text().then(function(data) { const json = JSON.parse(data); if (json.length) { json[0].id && forceUpdateCheckout(json[0].id); } else { json.id && forceUpdateCheckout(json.id); } }); } else if (url && url.includes(‘/cart/add’) || url.includes(‘/cart/update’)) { window.fetch(‘/api/storefront/carts’) .then(response => response.json().then(json => { json.length && json[0].id && forceUpdateCheckout(json[0].id); })); } return response; }); } XMLHttpRequest.prototype.open = function() { this.addEventListener(‘load’, function() { const url = this.responseURL; if (url && url.includes(‘/api/storefront/checkouts’) || url.includes(‘/api/storefront/carts’)) { const json = JSON.parse(this.responseText); if (json.length) { json[0].id && forceUpdateCheckout(json[0].id); } else { json.id && forceUpdateCheckout(json.id); } } else if (url && url.includes(‘/cart/add’) || url.includes(‘/cart/update’)) { window.fetch(‘/api/storefront/carts’) .then(response => response.json().then(json => { json.length && json[0].id && forceUpdateCheckout(json[0].id); })); } }); origOpen.apply(this, arguments); }; function getCookie(cname) { var name = cname + “=”; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(‘;’); for (var i = 0; i { return origFetch(url, data) .then(response => { if (url && url.includes(‘/api/storefront/checkouts’) || url.includes(‘/api/storefront/carts’)) { response.clone().text().then(function(data) { const json = JSON.parse(data); if (json.length) { json[0].id && forceUpdateCheckout(json[0].id); } else { json.id && forceUpdateCheckout(json.id); } }); } else if (url && url.includes(‘/cart/add’) || url.includes(‘/cart/update’)) { window.fetch(‘/api/storefront/carts’) .then(response => response.json().then(json => { json.length && json[0].id && forceUpdateCheckout(json[0].id); })); } return response; }); } setInterval(() => { XMLHttpRequest.prototype.open = function() { this.addEventListener(‘load’, function() { const url = this.responseURL; if (url && url.includes(‘/api/storefront/checkouts’) || url.includes(‘/api/storefront/carts’)) { const json = JSON.parse(this.responseText); if (json.length) { json[0].id && forceUpdateCheckout(json[0].id); } else { json.id && forceUpdateCheckout(json.id); } } else if (url && url.includes(‘/cart/add’) || url.includes(‘/cart/update’)) { window.fetch(‘/api/storefront/carts’) .then(response => response.json().then(json => { json.length && json[0].id && forceUpdateCheckout(json[0].id); })); } }); origOpen.apply(this, arguments); }; }, 100); function getCookie(cname) { var name = cname + “=”; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(‘;’); for (var i = 0; i { $.get(‘/api/storefront/carts’, function(cart_data) { if (cart_data && cart_data.length > 0) { cart_id = cart_data[0][‘id’]; cart_items = cart_data[0][“lineItems”][“physicalItems”].concat(cart_data[0][“lineItems”][“digitalItems”].concat(cart_data[0][“lineItems”][“customItems”])); req_data.products_in_cart = cart_items.map(x => x.productId) req_data.cartValue = cart_data[0][‘baseAmount’] req_data.qtyCart = getQtyCart(cart_items) if (position == 2) { req_data.trigger_product_ids = cart_items.map(x => x.productId) localStorage.setItem(‘cart_items’, req_data.trigger_product_ids) localStorage.setItem(‘cartValue’, req_data.cartValue) localStorage.setItem(‘qtyCart’, req_data.qtyCart) if (localStorage.getItem(‘offer_showed_before_co’)) { return false } } if (position == 4) { req_data.trigger_product_ids = cart_items.map(x => x.productId) if (localStorage.getItem(‘offer_showed_in_cart’)) { return false } } } localStorage.removeItem(‘offer_showed_before_co’); localStorage.removeItem(‘offer_showed_in_cart’); if (position == 3 && localStorage.getItem(‘cart_items’)) { req_data.trigger_product_ids = localStorage.getItem(‘cart_items’).split(“,”) req_data.products_in_cart = req_data.trigger_product_ids.slice() req_data.cartValue = localStorage.getItem(‘cartValue’) req_data.qtyCart = localStorage.getItem(‘qtyCart’) localStorage.removeItem(‘cart_items’) localStorage.removeItem(‘cartValue’) localStorage.removeItem(‘qtyCart’) } // dest_currency_code = $(‘#currencySelection strong’).parent().attr(‘data-currency-code’) dest_currency_code = $(‘.body’).attr(‘data-currency-code’) console.log(dest_currency_code) if (typeof dest_currency_code !== “undefined” && dest_currency_code !== base_currency_code) { req_data.currency_code = dest_currency_code localStorage.setItem(‘dest_currency_code’, dest_currency_code) } else if (typeof dest_currency_code !== “undefined” && dest_currency_code === base_currency_code) { dest_currency_code = base_currency_code localStorage.setItem(‘dest_currency_code’, dest_currency_code) } else { if (localStorage.getItem(‘dest_currency_code’) && localStorage.getItem(‘dest_currency_code’) !== base_currency_code) { dest_currency_code = localStorage.getItem(‘dest_currency_code’) req_data.currency_code = dest_currency_code } else { dest_currency_code = base_currency_code } } if (req_data.trigger_product_ids.length
Source