
/*! PhotoSwipe Default UI - 4.1.1 - 2015-12-24
* http://photoswipe.com
* Copyright (c) 2015 Dmitry Semenov; */
!function(a,b){"function"==typeof define&&define.amd?define(b):"object"==typeof exports?module.exports=b():a.PhotoSwipeUI_Default=b()}(this,function(){"use strict";var a=function(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v=this,w=!1,x=!0,y=!0,z={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(a,b){return a.title?(b.children[0].innerHTML=a.title,!0):(b.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return a.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return a.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},A=function(a){if(r)return!0;a=a||window.event,q.timeToIdle&&q.mouseUsed&&!k&&K();for(var c,d,e=a.target||a.srcElement,f=e.getAttribute("class")||"",g=0;g<S.length;g++)c=S[g],c.onTap&&f.indexOf("pswp__"+c.name)>-1&&(c.onTap(),d=!0);if(d){a.stopPropagation&&a.stopPropagation(),r=!0;var h=b.features.isOldAndroid?600:30;s=setTimeout(function(){r=!1},h)}},B=function(){return!a.likelyTouchDevice||q.mouseUsed||screen.width>q.fitControlsWidth},C=function(a,c,d){b[(d?"add":"remove")+"Class"](a,"pswp__"+c)},D=function(){var a=1===q.getNumItemsFn();a!==p&&(C(d,"ui--one-slide",a),p=a)},E=function(){C(i,"share-modal--hidden",y)},F=function(){return y=!y,y?(b.removeClass(i,"pswp__share-modal--fade-in"),setTimeout(function(){y&&E()},300)):(E(),setTimeout(function(){y||b.addClass(i,"pswp__share-modal--fade-in")},30)),y||H(),!1},G=function(b){b=b||window.event;var c=b.target||b.srcElement;return a.shout("shareLinkClick",b,c),c.href?c.hasAttribute("download")?!0:(window.open(c.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),y||F(),!1):!1},H=function(){for(var a,b,c,d,e,f="",g=0;g<q.shareButtons.length;g++)a=q.shareButtons[g],c=q.getImageURLForShare(a),d=q.getPageURLForShare(a),e=q.getTextForShare(a),b=a.url.replace("{{url}}",encodeURIComponent(d)).replace("{{image_url}}",encodeURIComponent(c)).replace("{{raw_image_url}}",c).replace("{{text}}",encodeURIComponent(e)),f+='<a href="'+b+'" target="_blank" class="pswp__share--'+a.id+'"'+(a.download?"download":"")+">"+a.label+"</a>",q.parseShareButtonOut&&(f=q.parseShareButtonOut(a,f));i.children[0].innerHTML=f,i.children[0].onclick=G},I=function(a){for(var c=0;c<q.closeElClasses.length;c++)if(b.hasClass(a,"pswp__"+q.closeElClasses[c]))return!0},J=0,K=function(){clearTimeout(u),J=0,k&&v.setIdle(!1)},L=function(a){a=a?a:window.event;var b=a.relatedTarget||a.toElement;b&&"HTML"!==b.nodeName||(clearTimeout(u),u=setTimeout(function(){v.setIdle(!0)},q.timeToIdleOutside))},M=function(){q.fullscreenEl&&!b.features.isOldAndroid&&(c||(c=v.getFullscreenAPI()),c?(b.bind(document,c.eventK,v.updateFullscreen),v.updateFullscreen(),b.addClass(a.template,"pswp--supports-fs")):b.removeClass(a.template,"pswp--supports-fs"))},N=function(){q.preloaderEl&&(O(!0),l("beforeChange",function(){clearTimeout(o),o=setTimeout(function(){a.currItem&&a.currItem.loading?(!a.allowProgressiveImg()||a.currItem.img&&!a.currItem.img.naturalWidth)&&O(!1):O(!0)},q.loadingIndicatorDelay)}),l("imageLoadComplete",function(b,c){a.currItem===c&&O(!0)}))},O=function(a){n!==a&&(C(m,"preloader--active",!a),n=a)},P=function(a){var c=a.vGap;if(B()){var g=q.barsSize;if(q.captionEl&&"auto"===g.bottom)if(f||(f=b.createEl("pswp__caption pswp__caption--fake"),f.appendChild(b.createEl("pswp__caption__center")),d.insertBefore(f,e),b.addClass(d,"pswp__ui--fit")),q.addCaptionHTMLFn(a,f,!0)){var h=f.clientHeight;c.bottom=parseInt(h,10)||44}else c.bottom=g.top;else c.bottom="auto"===g.bottom?0:g.bottom;c.top=g.top}else c.top=c.bottom=0},Q=function(){q.timeToIdle&&l("mouseUsed",function(){b.bind(document,"mousemove",K),b.bind(document,"mouseout",L),t=setInterval(function(){J++,2===J&&v.setIdle(!0)},q.timeToIdle/2)})},R=function(){l("onVerticalDrag",function(a){x&&.95>a?v.hideControls():!x&&a>=.95&&v.showControls()});var a;l("onPinchClose",function(b){x&&.9>b?(v.hideControls(),a=!0):a&&!x&&b>.9&&v.showControls()}),l("zoomGestureEnded",function(){a=!1,a&&!x&&v.showControls()})},S=[{name:"caption",option:"captionEl",onInit:function(a){e=a}},{name:"share-modal",option:"shareEl",onInit:function(a){i=a},onTap:function(){F()}},{name:"button--share",option:"shareEl",onInit:function(a){h=a},onTap:function(){F()}},{name:"button--zoom",option:"zoomEl",onTap:a.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(a){g=a}},{name:"button--close",option:"closeEl",onTap:a.close},{name:"button--arrow--left",option:"arrowEl",onTap:a.prev},{name:"button--arrow--right",option:"arrowEl",onTap:a.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){c.isFullscreen()?c.exit():c.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(a){m=a}}],T=function(){var a,c,e,f=function(d){if(d)for(var f=d.length,g=0;f>g;g++){a=d[g],c=a.className;for(var h=0;h<S.length;h++)e=S[h],c.indexOf("pswp__"+e.name)>-1&&(q[e.option]?(b.removeClass(a,"pswp__element--disabled"),e.onInit&&e.onInit(a)):b.addClass(a,"pswp__element--disabled"))}};f(d.children);var g=b.getChildByClass(d,"pswp__top-bar");g&&f(g.children)};v.init=function(){b.extend(a.options,z,!0),q=a.options,d=b.getChildByClass(a.scrollWrap,"pswp__ui"),l=a.listen,R(),l("beforeChange",v.update),l("doubleTap",function(b){var c=a.currItem.initialZoomLevel;a.getZoomLevel()!==c?a.zoomTo(c,b,333):a.zoomTo(q.getDoubleTapZoom(!1,a.currItem),b,333)}),l("preventDragEvent",function(a,b,c){var d=a.target||a.srcElement;d&&d.getAttribute("class")&&a.type.indexOf("mouse")>-1&&(d.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(d.tagName))&&(c.prevent=!1)}),l("bindEvents",function(){b.bind(d,"pswpTap click",A),b.bind(a.scrollWrap,"pswpTap",v.onGlobalTap),a.likelyTouchDevice||b.bind(a.scrollWrap,"mouseover",v.onMouseOver)}),l("unbindEvents",function(){y||F(),t&&clearInterval(t),b.unbind(document,"mouseout",L),b.unbind(document,"mousemove",K),b.unbind(d,"pswpTap click",A),b.unbind(a.scrollWrap,"pswpTap",v.onGlobalTap),b.unbind(a.scrollWrap,"mouseover",v.onMouseOver),c&&(b.unbind(document,c.eventK,v.updateFullscreen),c.isFullscreen()&&(q.hideAnimationDuration=0,c.exit()),c=null)}),l("destroy",function(){q.captionEl&&(f&&d.removeChild(f),b.removeClass(e,"pswp__caption--empty")),i&&(i.children[0].onclick=null),b.removeClass(d,"pswp__ui--over-close"),b.addClass(d,"pswp__ui--hidden"),v.setIdle(!1)}),q.showAnimationDuration||b.removeClass(d,"pswp__ui--hidden"),l("initialZoomIn",function(){q.showAnimationDuration&&b.removeClass(d,"pswp__ui--hidden")}),l("initialZoomOut",function(){b.addClass(d,"pswp__ui--hidden")}),l("parseVerticalMargin",P),T(),q.shareEl&&h&&i&&(y=!0),D(),Q(),M(),N()},v.setIdle=function(a){k=a,C(d,"ui--idle",a)},v.update=function(){x&&a.currItem?(v.updateIndexIndicator(),q.captionEl&&(q.addCaptionHTMLFn(a.currItem,e),C(e,"caption--empty",!a.currItem.title)),w=!0):w=!1,y||F(),D()},v.updateFullscreen=function(d){d&&setTimeout(function(){a.setScrollOffset(0,b.getScrollY())},50),b[(c.isFullscreen()?"add":"remove")+"Class"](a.template,"pswp--fs")},v.updateIndexIndicator=function(){q.counterEl&&(g.innerHTML=a.getCurrentIndex()+1+q.indexIndicatorSep+q.getNumItemsFn())},v.onGlobalTap=function(c){c=c||window.event;var d=c.target||c.srcElement;if(!r)if(c.detail&&"mouse"===c.detail.pointerType){if(I(d))return void a.close();b.hasClass(d,"pswp__img")&&(1===a.getZoomLevel()&&a.getZoomLevel()<=a.currItem.fitRatio?q.clickToCloseNonZoomable&&a.close():a.toggleDesktopZoom(c.detail.releasePoint))}else if(q.tapToToggleControls&&(x?v.hideControls():v.showControls()),q.tapToClose&&(b.hasClass(d,"pswp__img")||I(d)))return void a.close()},v.onMouseOver=function(a){a=a||window.event;var b=a.target||a.srcElement;C(d,"ui--over-close",I(b))},v.hideControls=function(){b.addClass(d,"pswp__ui--hidden"),x=!1},v.showControls=function(){x=!0,w||v.update(),b.removeClass(d,"pswp__ui--hidden")},v.supportsFullscreen=function(){var a=document;return!!(a.exitFullscreen||a.mozCancelFullScreen||a.webkitExitFullscreen||a.msExitFullscreen)},v.getFullscreenAPI=function(){var b,c=document.documentElement,d="fullscreenchange";return c.requestFullscreen?b={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:d}:c.mozRequestFullScreen?b={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+d}:c.webkitRequestFullscreen?b={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+d}:c.msRequestFullscreen&&(b={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),b&&(b.enter=function(){return j=q.closeOnScroll,q.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK?a.template[this.enterK]():void a.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},b.exit=function(){return q.closeOnScroll=j,document[this.exitK]()},b.isFullscreen=function(){return document[this.elementK]}),b}};return a});



/*! jQuery UI - v1.13.3 - 2024-04-26
* https://jqueryui.com
* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";var t,e,i,n,W,C,o,s,r,l,a,h,u;function E(t,e,i){return[parseFloat(t[0])*(a.test(t[0])?e/100:1),parseFloat(t[1])*(a.test(t[1])?i/100:1)]}function L(t,e){return parseInt(x.css(t,e),10)||0}function N(t){return null!=t&&t===t.window}x.ui=x.ui||{},x.ui.version="1.13.3",
/*!
 * jQuery UI :data 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.extend(x.expr.pseudos,{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,i){return!!x.data(t,i[3])}}),
/*!
 * jQuery UI Disable Selection 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),
/*!
 * jQuery UI Focusable 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.ui.focusable=function(t,e){var i,n,o,s=t.nodeName.toLowerCase();return"area"===s?(o=(i=t.parentNode).name,!(!t.href||!o||"map"!==i.nodeName.toLowerCase())&&0<(i=x("img[usemap='#"+o+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(n=!t.disabled)&&(o=x(t).closest("fieldset")[0])&&(n=!o.disabled):n="a"===s&&t.href||e,n&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}(x(t)))},x.extend(x.expr.pseudos,{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)},
/*!
 * jQuery UI Form Reset Mixin 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),
/*!
 * jQuery UI Support for jQuery core 1.8.x and newer 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 *
 */
x.expr.pseudos||(x.expr.pseudos=x.expr[":"]),x.uniqueSort||(x.uniqueSort=x.unique),x.escapeSelector||(e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,i=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},x.escapeSelector=function(t){return(t+"").replace(e,i)}),x.fn.even&&x.fn.odd||x.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}),
/*!
 * jQuery UI Keycode 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},
/*!
 * jQuery UI Labels 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+x.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},x.ui.plugin={add:function(t,e,i){var n,o=x.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o<s.length;o++)t.options[s[o][0]]&&s[o][1].apply(t.element,i)}},
/*!
 * jQuery UI Position 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 *
 * https://api.jqueryui.com/position/
 */
W=Math.max,C=Math.abs,o=/left|center|right/,s=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,a=/%$/,h=x.fn.position,x.position={scrollbarWidth:function(){var t,e,i;return void 0!==n?n:(i=(e=x("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),i=N(e[0]),n=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:n,offset:!i&&!n?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(f){var c,d,p,g,m,v,y,w,b,_,t,e;return f&&f.of?(v="string"==typeof(f=x.extend({},f)).of?x(document).find(f.of):x(f.of),y=x.position.getWithinInfo(f.within),w=x.position.getScrollInfo(y),b=(f.collision||"flip").split(" "),_={},e=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:N(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()},v[0].preventDefault&&(f.at="left top"),d=e.width,p=e.height,m=x.extend({},g=e.offset),x.each(["my","at"],function(){var t,e,i=(f[this]||"").split(" ");(i=1===i.length?o.test(i[0])?i.concat(["center"]):s.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=o.test(i[0])?i[0]:"center",i[1]=s.test(i[1])?i[1]:"center",t=r.exec(i[0]),e=r.exec(i[1]),_[this]=[t?t[0]:0,e?e[0]:0],f[this]=[l.exec(i[0])[0],l.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===f.at[0]?m.left+=d:"center"===f.at[0]&&(m.left+=d/2),"bottom"===f.at[1]?m.top+=p:"center"===f.at[1]&&(m.top+=p/2),c=E(_.at,d,p),m.left+=c[0],m.top+=c[1],this.each(function(){var i,t,r=x(this),l=r.outerWidth(),a=r.outerHeight(),e=L(this,"marginLeft"),n=L(this,"marginTop"),o=l+e+L(this,"marginRight")+w.width,s=a+n+L(this,"marginBottom")+w.height,h=x.extend({},m),u=E(_.my,r.outerWidth(),r.outerHeight());"right"===f.my[0]?h.left-=l:"center"===f.my[0]&&(h.left-=l/2),"bottom"===f.my[1]?h.top-=a:"center"===f.my[1]&&(h.top-=a/2),h.left+=u[0],h.top+=u[1],i={marginLeft:e,marginTop:n},x.each(["left","top"],function(t,e){x.ui.position[b[t]]&&x.ui.position[b[t]][e](h,{targetWidth:d,targetHeight:p,elemWidth:l,elemHeight:a,collisionPosition:i,collisionWidth:o,collisionHeight:s,offset:[c[0]+u[0],c[1]+u[1]],my:f.my,at:f.at,within:y,elem:r})}),f.using&&(t=function(t){var e=g.left-h.left,i=e+d-l,n=g.top-h.top,o=n+p-a,s={target:{element:v,left:g.left,top:g.top,width:d,height:p},element:{element:r,left:h.left,top:h.top,width:l,height:a},horizontal:i<0?"left":0<e?"right":"center",vertical:o<0?"top":0<n?"bottom":"middle"};d<l&&C(e+i)<d&&(s.horizontal="center"),p<a&&C(n+o)<p&&(s.vertical="middle"),W(C(e),C(i))>W(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):h.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;e.collisionWidth>n?0<r&&l<=0?(i=t.left+r+e.collisionWidth-n-o,t.left+=r-i):t.left=!(0<l&&r<=0)&&l<r?o+n-e.collisionWidth:o:0<r?t.left+=r:0<l?t.left-=l:t.left=W(t.left-s,t.left)},top:function(t,e){var i,n=e.within,n=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,s=t.top-e.collisionPosition.marginTop,r=n-s,l=s+e.collisionHeight-o-n;e.collisionHeight>o?0<r&&l<=0?(i=t.top+r+e.collisionHeight-o-n,t.top+=r-i):t.top=!(0<l&&r<=0)&&l<r?n+o-e.collisionHeight:n:0<r?t.top+=r:0<l?t.top-=l:t.top=W(t.top-s,t.top)}},flip:{left:function(t,e){var i=e.within,n=i.offset.left+i.scrollLeft,o=i.width,i=i.isWindow?i.scrollLeft:i.offset.left,s=t.left-e.collisionPosition.marginLeft,r=s-i,s=s+e.collisionWidth-o-i,l="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,a="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,h=-2*e.offset[0];r<0?((o=t.left+l+a+h+e.collisionWidth-o-n)<0||o<C(r))&&(t.left+=l+a+h):0<s&&(0<(n=t.left-e.collisionPosition.marginLeft+l+a+h-i)||C(n)<s)&&(t.left+=l+a+h)},top:function(t,e){var i=e.within,n=i.offset.top+i.scrollTop,o=i.height,i=i.isWindow?i.scrollTop:i.offset.top,s=t.top-e.collisionPosition.marginTop,r=s-i,s=s+e.collisionHeight-o-i,l="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,a="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,h=-2*e.offset[1];r<0?((o=t.top+l+a+h+e.collisionHeight-o-n)<0||o<C(r))&&(t.top+=l+a+h):0<s&&(0<(n=t.top-e.collisionPosition.marginTop+l+a+h-i)||C(n)<s)&&(t.top+=l+a+h)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}},x.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return i=(i=i||e.body).nodeName?i:e.body},x.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&x(t).trigger("blur")},
/*!
 * jQuery UI Scroll Parent 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=x(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:x(this[0].ownerDocument||document)},
/*!
 * jQuery UI Tabbable 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.extend(x.expr.pseudos,{tabbable:function(t){var e=x.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&x.ui.focusable(t,i)}}),
/*!
 * jQuery UI Unique ID 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
x.fn.extend({uniqueId:(u=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++u)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}});
/*!
 * jQuery UI Widget 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
var f,c=0,d=Array.prototype.hasOwnProperty,p=Array.prototype.slice;x.cleanData=(f=x.cleanData,function(t){for(var e,i,n=0;null!=(i=t[n]);n++)(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove");f(t)}),x.widget=function(t,i,e){var n,o,s,r={},l=t.split(".")[0],a=l+"-"+(t=t.split(".")[1]);return e||(e=i,i=x.Widget),Array.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr.pseudos[a.toLowerCase()]=function(t){return!!x.data(t,a)},x[l]=x[l]||{},n=x[l][t],o=x[l][t]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},x.extend(o,n,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(s=new i).options=x.widget.extend({},s.options),x.each(e,function(e,n){function o(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}r[e]="function"!=typeof n?n:function(){var t,e=this._super,i=this._superApply;return this._super=o,this._superApply=s,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}}),o.prototype=x.widget.extend(s,{widgetEventPrefix:n&&s.widgetEventPrefix||t},r,{constructor:o,namespace:l,widgetName:t,widgetFullName:a}),n?(x.each(n._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,o,e._proto)}),delete n._childConstructors):i._childConstructors.push(o),x.widget.bridge(t,o),o},x.widget.extend=function(t){for(var e,i,n=p.call(arguments,1),o=0,s=n.length;o<s;o++)for(e in n[o])i=n[o][e],d.call(n[o],e)&&void 0!==i&&(x.isPlainObject(i)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],i):x.widget.extend({},i):t[e]=i);return t},x.widget.bridge=function(s,e){var r=e.prototype.widgetFullName||s;x.fn[s]=function(i){var t="string"==typeof i,n=p.call(arguments,1),o=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=x.data(this,r);return"instance"===i?(o=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?x.error("no such method '"+i+"' for "+s+" widget instance"):(t=e[i].apply(e,n))!==e&&void 0!==t?(o=t&&t.jquery?o.pushStack(t.get()):t,!1):void 0:x.error("cannot call methods on "+s+" prior to initialization; attempted to call method '"+i+"'")}):o=void 0:(n.length&&(i=x.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=x.data(this,r);t?(t.option(i||{}),t._init&&t._init()):x.data(this,r,new e(i,this))})),o}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o<i.length-1;o++)n[i[o]]=n[i[o]]||{},n=n[i[o]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=e}return this._setOptions(s),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(i=x(n.get()),this._removeClass(n,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(o){var s=[],r=this;function t(t,e){for(var i,n=0;n<t.length;n++)i=r.classesElementLookup[t[n]]||x(),i=o.add?(function(){var i=[];o.element.each(function(t,e){x.map(r.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),r._on(x(i),{remove:"_untrackClassesElement"})}(),x(x.uniqueSort(i.get().concat(o.element.get())))):x(i.not(o.element).get()),r.classesElementLookup[t[n]]=i,s.push(t[n]),e&&o.classes[t[n]]&&s.push(o.classes[t[n]])}return(o=x.extend({element:this.element,classes:this.options.classes||{}},o)).keys&&t(o.keys.match(/\S+/g)||[],!0),o.extra&&t(o.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(i){var n=this;x.each(n.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(n.classesElementLookup[t]=x(e.not(i.target).get()))}),this._off(x(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){var o="string"==typeof t||null===t,e={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:n="boolean"==typeof n?n:i};return e.element.toggleClass(this._classes(e),n),this},_on:function(o,s,t){var r,l=this;"boolean"!=typeof o&&(t=s,s=o,o=!1),t?(s=r=x(s),this.bindings=this.bindings.add(s)):(t=s,s=this.element,r=this.widget()),x.each(t,function(t,e){function i(){if(o||!0!==l.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?l[e]:e).apply(l,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var t=t.match(/^([\w:-]*)\s*(.*)$/),n=t[1]+l.eventNamespace,t=t[2];t?r.on(n,t,i):s.on(n,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var n,o,s=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],o=e.originalEvent)for(n in o)n in e||(e[n]=o[n]);return this.element.trigger(e,i),!("function"==typeof s&&!1===s.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(s,r){x.Widget.prototype["_"+s]=function(e,t,i){var n,o=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:s;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),n=!x.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),n&&x.effects&&x.effects.effect[o]?e[s](t):o!==s&&e[o]?e[o](t.duration,t.easing,i):e.queue(function(t){x(this)[s](),i&&i.call(e[0]),t()})}})});



/*!
 * jQuery UI Tooltip 1.13.3
 * https://jqueryui.com
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license.
 * https://jquery.org/license
 */
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","../keycode","../position","../unique-id","../version","../widget"],t):t(jQuery)}(function(r){"use strict";return r.widget("ui.tooltip",{version:"1.13.3",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=r(this).attr("title");return r("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,i){var e=(t.attr("aria-describedby")||"").split(/\s+/);e.push(i),t.data("ui-tooltip-id",i).attr("aria-describedby",String.prototype.trim.call(e.join(" ")))},_removeDescribedBy:function(t){var i=t.data("ui-tooltip-id"),e=(t.attr("aria-describedby")||"").split(/\s+/),i=r.inArray(i,e);-1!==i&&e.splice(i,1),t.removeData("ui-tooltip-id"),(e=String.prototype.trim.call(e.join(" ")))?t.attr("aria-describedby",e):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=r("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=r([])},_setOption:function(t,i){var e=this;this._super(t,i),"content"===t&&r.each(this.tooltips,function(t,i){e._updateContent(i.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var o=this;r.each(this.tooltips,function(t,i){var e=r.Event("blur");e.target=e.currentTarget=i.element[0],o.close(e,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=r(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var t=r(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))}),this.disabledTitles=r([])},open:function(t){var e=this,i=r(t?t.target:this.element).closest(this.options.items);i.length&&!i.data("ui-tooltip-id")&&(i.attr("title")&&i.data("ui-tooltip-title",i.attr("title")),i.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&i.parents().each(function(){var t,i=r(this);i.data("ui-tooltip-open")&&((t=r.Event("blur")).target=t.currentTarget=this,e.close(t,!0)),i.attr("title")&&(i.uniqueId(),e.parents[this.id]={element:this,title:i.attr("title")},i.attr("title",""))}),this._registerCloseHandlers(t,i),this._updateContent(i,t))},_updateContent:function(i,e){var t=this.options.content,o=this,n=e?e.type:null;if("string"==typeof t||t.nodeType||t.jquery)return this._open(e,i,t);(t=t.call(i[0],function(t){o._delay(function(){i.data("ui-tooltip-open")&&(e&&(e.type=n),this._open(e,i,t))})}))&&this._open(e,i,t)},_open:function(t,i,e){var o,n,s,l=r.extend({},this.options.position);function a(t){l.of=t,o.is(":hidden")||o.position(l)}e&&((s=this._find(i))?s.tooltip.find(".ui-tooltip-content").html(e):(i.is("[title]")&&(t&&"mouseover"===t.type?i.attr("title",""):i.removeAttr("title")),s=this._tooltip(i),o=s.tooltip,this._addDescribedBy(i,o.attr("id")),o.find(".ui-tooltip-content").html(e),this.liveRegion.children().hide(),(s=r("<div>").html(o.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),s.removeAttr("id").find("[id]").removeAttr("id"),s.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:a}),a(t)):o.position(r.extend({of:i},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(n=this.delayedShow=setInterval(function(){o.is(":visible")&&(a(l.of),clearInterval(n))},13)),this._trigger("open",t,{tooltip:o})))},_registerCloseHandlers:function(t,i){var e={keyup:function(t){t.keyCode===r.ui.keyCode.ESCAPE&&((t=r.Event(t)).currentTarget=i[0],this.close(t,!0))}};i[0]!==this.element[0]&&(e.remove=function(){var t=this._find(i);t&&this._removeTooltip(t.tooltip)}),t&&"mouseover"!==t.type||(e.mouseleave="close"),t&&"focusin"!==t.type||(e.focusout="close"),this._on(!0,i,e)},close:function(t){var i,e=this,o=r(t?t.currentTarget:this.element),n=this._find(o);n?(i=n.tooltip,n.closing||(clearInterval(this.delayedShow),o.data("ui-tooltip-title")&&!o.attr("title")&&o.attr("title",o.data("ui-tooltip-title")),this._removeDescribedBy(o),n.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,function(){e._removeTooltip(r(this))}),o.removeData("ui-tooltip-open"),this._off(o,"mouseleave focusout keyup"),o[0]!==this.element[0]&&this._off(o,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&r.each(this.parents,function(t,i){r(i.element).attr("title",i.title),delete e.parents[t]}),n.closing=!0,this._trigger("close",t,{tooltip:i}),n.hiding)||(n.closing=!1)):o.removeData("ui-tooltip-open")},_tooltip:function(t){var i=r("<div>").attr("role","tooltip"),e=r("<div>").appendTo(i),o=i.uniqueId().attr("id");return this._addClass(e,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(t)),this.tooltips[o]={element:t,tooltip:i}},_find:function(t){t=t.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(t){clearInterval(this.delayedShow),t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){t=t.closest(".ui-front, dialog");return t=t.length?t:this.document[0].body},_destroy:function(){var o=this;r.each(this.tooltips,function(t,i){var e=r.Event("blur"),i=i.element;e.target=e.currentTarget=i[0],o.close(e,!0),r("#"+t).remove(),i.data("ui-tooltip-title")&&(i.attr("title")||i.attr("title",i.data("ui-tooltip-title")),i.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==r.uiBackCompat&&r.widget("ui.tooltip",r.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}}),r.ui.tooltip});



/*! This file is auto-generated */
/*!
 * imagesLoaded PACKAGED v5.0.0
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
/*!
 * imagesLoaded v5.0.0
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));



/*! Lazy Load 1.9.7 - MIT license - Copyright 2010-2015 Mika Tuupola */
!function(a,b,c,d){var e=a(b);a.fn.lazyload=function(f){function g(){var b=0;i.each(function(){var c=a(this);if(!j.skip_invisible||c.is(":visible"))if(a.abovethetop(this,j)||a.leftofbegin(this,j));else if(a.belowthefold(this,j)||a.rightoffold(this,j)){if(++b>j.failure_limit)return!1}else c.trigger("appear"),b=0})}var h,i=this,j={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:b,data_attribute:"original",skip_invisible:!1,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};return f&&(d!==f.failurelimit&&(f.failure_limit=f.failurelimit,delete f.failurelimit),d!==f.effectspeed&&(f.effect_speed=f.effectspeed,delete f.effectspeed),a.extend(j,f)),h=j.container===d||j.container===b?e:a(j.container),0===j.event.indexOf("scroll")&&h.bind(j.event,function(){return g()}),this.each(function(){var b=this,c=a(b);b.loaded=!1,(c.attr("src")===d||c.attr("src")===!1)&&c.is("img")&&c.attr("src",j.placeholder),c.one("appear",function(){if(!this.loaded){if(j.appear){var d=i.length;j.appear.call(b,d,j)}a("<img />").bind("load",function(){var d=c.attr("data-"+j.data_attribute);c.hide(),c.is("img")?c.attr("src",d):c.css("background-image","url('"+d+"')"),c[j.effect](j.effect_speed),b.loaded=!0;var e=a.grep(i,function(a){return!a.loaded});if(i=a(e),j.load){var f=i.length;j.load.call(b,f,j)}}).attr("src",c.attr("data-"+j.data_attribute))}}),0!==j.event.indexOf("scroll")&&c.bind(j.event,function(){b.loaded||c.trigger("appear")})}),e.bind("resize",function(){g()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&e.bind("pageshow",function(b){b.originalEvent&&b.originalEvent.persisted&&i.each(function(){a(this).trigger("appear")})}),a(c).ready(function(){g()}),this},a.belowthefold=function(c,f){var g;return g=f.container===d||f.container===b?(b.innerHeight?b.innerHeight:e.height())+e.scrollTop():a(f.container).offset().top+a(f.container).height(),g<=a(c).offset().top-f.threshold},a.rightoffold=function(c,f){var g;return g=f.container===d||f.container===b?e.width()+e.scrollLeft():a(f.container).offset().left+a(f.container).width(),g<=a(c).offset().left-f.threshold},a.abovethetop=function(c,f){var g;return g=f.container===d||f.container===b?e.scrollTop():a(f.container).offset().top,g>=a(c).offset().top+f.threshold+a(c).height()},a.leftofbegin=function(c,f){var g;return g=f.container===d||f.container===b?e.scrollLeft():a(f.container).offset().left,g>=a(c).offset().left+f.threshold+a(c).width()},a.inviewport=function(b,c){return!(a.rightoffold(b,c)||a.leftofbegin(b,c)||a.belowthefold(b,c)||a.abovethetop(b,c))},a.extend(a.expr[":"],{"below-the-fold":function(b){return a.belowthefold(b,{threshold:0})},"above-the-top":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-screen":function(b){return a.rightoffold(b,{threshold:0})},"left-of-screen":function(b){return!a.rightoffold(b,{threshold:0})},"in-viewport":function(b){return a.inviewport(b,{threshold:0})},"above-the-fold":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-fold":function(b){return a.rightoffold(b,{threshold:0})},"left-of-fold":function(b){return!a.rightoffold(b,{threshold:0})}})}(jQuery,window,document);



/*!
* FitVids 1.1
*
* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
*
*/
;(function($){'use strict';$.fn.fitVids=function(options){var settings={customSelector:null,ignore:null};if(!document.getElementById('fit-vids-style')){var head=document.head||document.getElementsByTagName('head')[0];var css='.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}';var div=document.createElement("div");div.innerHTML='<p>x</p><style id="fit-vids-style">'+css+'</style>';head.appendChild(div.childNodes[1])}
if(options){$.extend(settings,options)}
return this.each(function(){var selectors=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]','object','embed'];if(settings.customSelector){selectors.push(settings.customSelector)}
var ignoreList='.fitvidsignore';if(settings.ignore){ignoreList=ignoreList+', '+settings.ignore}
var $allVideos=$(this).find(selectors.join(','));$allVideos=$allVideos.not('object object');$allVideos=$allVideos.not(ignoreList);$allVideos.each(function(count){var $this=$(this);if($this.parents(ignoreList).length>0){return}
if(this.tagName.toLowerCase()==='embed'&&$this.parent('object').length||$this.parent('.fluid-width-video-wrapper').length){return}
if((!$this.css('height')&&!$this.css('width'))&&(isNaN($this.attr('height'))||isNaN($this.attr('width')))){$this.attr('height',9);$this.attr('width',16)}
var height=(this.tagName.toLowerCase()==='object'||($this.attr('height')&&!isNaN(parseInt($this.attr('height'),10))))?parseInt($this.attr('height'),10):$this.height(),width=!isNaN(parseInt($this.attr('width'),10))?parseInt($this.attr('width'),10):$this.width(),aspectRatio=height/width;if(!$this.attr('id')){var videoID='fitvid'+count;$this.attr('id',videoID)}
$this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top',(aspectRatio*100)+'%');$this.removeAttr('height').removeAttr('width')})})}})(window.jQuery||window.Zepto);



/*
 * @author  Mudit Ameta
 * @license https://github.com/zeusdeux/isInViewport/blob/master/license.md MIT
 */
!function(a,b){function c(b){var c,d=a("<div></div>").css({width:"100%"});return b.append(d),c=b.width()-d.width(),d.remove(),c}function d(e,f){var g=e.getBoundingClientRect(),h=g.top,i=g.bottom,j=g.left,k=g.right,l=a.extend({tolerance:0,viewport:b},f),m=!1,n=l.viewport.jquery?l.viewport:a(l.viewport);n.length||(console.warn("isInViewport: The viewport selector you have provided matches no element on page."),console.warn("isInViewport: Defaulting to viewport as window"),n=a(b));var o=n.height(),p=n.width(),q=n[0].toString();if(n[0]!==b&&"[object Window]"!==q&&"[object DOMWindow]"!==q){var r=n[0].getBoundingClientRect();h-=r.top,i-=r.top,j-=r.left,k-=r.left,d.scrollBarWidth=d.scrollBarWidth||c(n),p-=d.scrollBarWidth}return l.tolerance=~~Math.round(parseFloat(l.tolerance)),l.tolerance<0&&(l.tolerance=o+l.tolerance),0>=k||j>=p?m:m=l.tolerance?h<=l.tolerance&&i>=l.tolerance:i>0&&o>=h}String.prototype.hasOwnProperty("trim")||(String.prototype.trim=function(){return this.replace(/^\s*(.*?)\s*$/,"$1")});var e=function(b){if(1===arguments.length&&"function"==typeof b&&(b=[b]),!(b instanceof Array))throw new SyntaxError("isInViewport: Argument(s) passed to .do/.run should be a function or an array of functions");for(var c=0;c<b.length;c++)if("function"==typeof b[c])for(var d=0;d<this.length;d++)b[c].call(a(this[d]));else console.warn("isInViewport: Argument(s) passed to .do/.run should be a function or an array of functions"),console.warn("isInViewport: Ignoring non-function values in array and moving on");return this};a.fn["do"]=function(a){return console.warn("isInViewport: .do is deprecated as it causes issues in IE and some browsers since it's a reserved word. Use $.fn.run instead i.e., $(el).run(fn)."),e(a)},a.fn.run=e;var f=function(b){if(b){var c=b.split(",");return 1===c.length&&isNaN(c[0])&&(c[1]=c[0],c[0]=void 0),{tolerance:c[0]?c[0].trim():void 0,viewport:c[1]?a(c[1].trim()):void 0}}return{}};a.extend(a.expr[":"],{"in-viewport":a.expr.createPseudo?a.expr.createPseudo(function(a){return function(b){return d(b,f(a))}}):function(a,b,c){return d(a,f(c[3]))}}),a.fn.isInViewport=function(a){return this.filter(function(b,c){return d(c,a)})}}(jQuery,window);



(function($){$.fn.mf_countdown=function(){return this.each(function(){var $this=$(this),diff=$this.data('expire');var updateClock=function(distance){var days=Math.floor(distance/(60*60*24));var hours=Math.floor((distance%(60*60*24))/(60*60));var minutes=Math.floor((distance%(60*60))/(60));var seconds=Math.floor(distance%60);$this.html('<span class="days timer"><span class="digits">'+(days<10?'0':'')+days+'</span><span class="text">'+martfuryData.days+'</span></span>'+'<span class="divider">:</span>'+'<span class="hours timer"><span class="digits">'+(hours<10?'0':'')+hours+'</span><span class="text">'+martfuryData.hours+'</span></span>'+'<span class="divider">:</span>'+'<span class="minutes timer"><span class="digits">'+(minutes<10?'0':'')+minutes+'</span><span class="text">'+martfuryData.minutes+'</span></span>'+'<span class="divider">:</span>'+'<span class="seconds timer"><span class="digits">'+(seconds<10?'0':'')+seconds+'</span><span class="text">'+martfuryData.seconds+'</span></span>')};updateClock(diff);var countdown=setInterval(function(){diff=diff-1;updateClock(diff);if(diff<0){clearInterval(countdown)}},1000)})};$(function(){$('.martfury-countdown').mf_countdown()})})(jQuery);



/*!
 * jquery.counterup.js 1.0
 *
 * Copyright 2013, Benjamin Intal http://gambit.ph @bfintal
 * Released under the GPL v2 License
 *
 * Date: Nov 26, 2013
 */
(function( $ ){
	"use strict";

	$.fn.counterUp = function( options ) {

		// Defaults
		var settings = $.extend({
			'time': 400,
			'delay': 10
		}, options);

		return this.each(function(){

			// Store the object
			var $this = $(this);
			var $settings = settings;

			var counterUpper = function() {
				var nums = [];
				var divisions = $settings.time / $settings.delay;
				var num = $this.text();
				var isComma = /[0-9]+,[0-9]+/.test(num);
				num = num.replace(/,/g, '');
				var isInt = /^[0-9]+$/.test(num);
				var isFloat = /^[0-9]+\.[0-9]+$/.test(num);
				var decimalPlaces = isFloat ? (num.split('.')[1] || []).length : 0;

				// Generate list of incremental numbers to display
				for (var i = divisions; i >= 1; i--) {

					// Preserve as int if input was int
					var newNum = parseInt(num / divisions * i);

					// Preserve float if input was float
					if (isFloat) {
						newNum = parseFloat(num / divisions * i).toFixed(decimalPlaces);
					}

					// Preserve commas if input had commas
					if (isComma) {
						while (/(\d+)(\d{3})/.test(newNum.toString())) {
							newNum = newNum.toString().replace(/(\d+)(\d{3})/, '$1'+','+'$2');
						}
					}

					nums.unshift(newNum);
				}

				$this.data('counterup-nums', nums);
				$this.text('0');

				// Updates the number until we're done
				var f = function() {
					$this.text($this.data('counterup-nums').shift());
					if ($this.data('counterup-nums').length) {
						setTimeout($this.data('counterup-func'), $settings.delay);
					} else {
						delete $this.data('counterup-nums');
						$this.data('counterup-nums', null);
						$this.data('counterup-func', null);
					}
				};
				$this.data('counterup-func', f);

				// Start the count up
				setTimeout($this.data('counterup-func'), $settings.delay);
			};

			// Perform counts when the element gets into view
			$this.waypoint(counterUpper, { offset: '100%', triggerOnce: true });
		});

	};

})( jQuery );



!function(D){D.fn.extend({slimScroll:function(E){var R=D.extend({width:"auto",height:"250px",size:"6px",color:"#666",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!0,disableFadeOut:!1,railVisible:!0,railColor:"#ccc",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},E);return this.each(function(){var s,e,o,i,a,r,l,n,c="<div></div>",u=30,h=!1,d=D(this);if(d.parent().hasClass(R.wrapperClass)){var p=d.scrollTop();if(m=d.siblings("."+R.barClass),v=d.siblings("."+R.railClass),C(),D.isPlainObject(E)){var g=E.height;if(d.parent().css("max-height",g),d.css("max-height",g),"scrollTo"in E)p=parseInt(R.scrollTo);else if("scrollBy"in E)p+=parseInt(R.scrollBy);else if("destroy"in E)return m.remove(),v.remove(),void d.unwrap();y(p,!1,!0)}}else if(!(D.isPlainObject(E)&&"destroy"in E)){R.height="auto"==R.height?d.parent().height():R.height;var f=D(c).addClass(R.wrapperClass).css({position:"relative",overflow:"hidden",width:R.width,"max-height":R.height});d.css({overflow:"hidden",width:R.width,"max-height":R.height});var b,v=D(c).addClass(R.railClass).css({width:R.size,height:"100%",position:"absolute",top:0,display:R.alwaysVisible&&R.railVisible?"block":"none","border-radius":R.railBorderRadius,background:R.railColor,opacity:R.railOpacity,zIndex:90}),m=D(c).addClass(R.barClass).css({background:R.color,width:R.size,position:"absolute",top:0,opacity:R.opacity,display:R.alwaysVisible?"block":"none","border-radius":R.borderRadius,BorderRadius:R.borderRadius,MozBorderRadius:R.borderRadius,WebkitBorderRadius:R.borderRadius,zIndex:99}),w="right"==R.position?{right:R.distance}:{left:R.distance};v.css(w),m.css(w),d.wrap(f),d.parent().append(m),d.parent().append(v),R.railDraggable&&m.bind("mousedown",function(e){var i=D(document);return o=!0,t=parseFloat(m.css("top")),pageY=e.pageY,i.bind("mousemove.slimscroll",function(e){currTop=t+e.pageY-pageY,m.css("top",currTop),y(0,m.position().top,!1)}),i.bind("mouseup.slimscroll",function(e){o=!1,S(),i.unbind(".slimscroll")}),!1}).bind("selectstart.slimscroll",function(e){return e.stopPropagation(),e.preventDefault(),!1}),v.hover(function(){H()},function(){S()}),m.hover(function(){e=!0},function(){e=!1}),d.hover(function(){s=!0,H(),S()},function(){s=!1,S()}),d.bind("touchstart",function(e,t){e.originalEvent.touches.length&&(a=e.originalEvent.touches[0].pageY)}),d.bind("touchmove",function(e){(h||e.originalEvent.preventDefault(),e.originalEvent.touches.length)&&(y((a-e.originalEvent.touches[0].pageY)/R.touchScrollStep,!0),a=e.originalEvent.touches[0].pageY)}),C(),"bottom"===R.start?(m.css({top:d.outerHeight()-m.outerHeight()}),y(0,!0)):"top"!==R.start&&(y(D(R.start).position().top,null,!0),R.alwaysVisible||m.hide()),b=this,window.addEventListener?(b.addEventListener("DOMMouseScroll",x,!1),b.addEventListener("mousewheel",x,!1)):document.attachEvent("onmousewheel",x)}function x(e){if(s){var t=0;(e=e||window.event).wheelDelta&&(t=-e.wheelDelta/120),e.detail&&(t=e.detail/3);var i=e.target||e.srcTarget||e.srcElement;D(i).closest("."+R.wrapperClass).is(d.parent())&&y(t,!0),e.preventDefault&&!h&&e.preventDefault(),h||(e.returnValue=!1)}}function y(e,t,i){h=!1;var s=e,o=d.outerHeight()-m.outerHeight();if(t&&(s=parseInt(m.css("top"))+e*parseInt(R.wheelStep)/100*m.outerHeight(),s=Math.min(Math.max(s,0),o),s=0<e?Math.ceil(s):Math.floor(s),m.css({top:s+"px"})),s=(l=parseInt(m.css("top"))/(d.outerHeight()-m.outerHeight()))*(d[0].scrollHeight-d.outerHeight()),i){var a=(s=e)/d[0].scrollHeight*d.outerHeight();a=Math.min(Math.max(a,0),o),m.css({top:a+"px"})}d.scrollTop(s),d.trigger("slimscrolling",~~s),H(),S()}function C(){r=Math.max(d.outerHeight()/d[0].scrollHeight*d.outerHeight(),u),m.css({height:r+"px"});var e=r==d.outerHeight()?"none":"block";m.css({display:e})}function H(){if(C(),clearTimeout(i),l==~~l){if(h=R.allowPageScroll,n!=l){var e=0==~~l?"top":"bottom";d.trigger("slimscroll",e)}}else h=!1;n=l,r>=d.outerHeight()?h=!0:(m.stop(!0,!0).fadeIn("fast"),R.railVisible&&v.stop(!0,!0).fadeIn("fast"))}function S(){R.alwaysVisible||(i=setTimeout(function(){R.disableFadeOut&&s||e||o||(m.fadeOut("slow"),v.fadeOut("slow"))},1e3))}}),this}}),D.fn.extend({slimscroll:D.fn.slimScroll})}(jQuery);



(function($){$.fn.mrtabs=function(){return this.each(function(){var $element=$(this),$nav=$element.find('.tabs-nav'),$tabs=$nav.find('a'),$panels=$element.find('.tabs-panel');$tabs.filter(':first').addClass('active');$nav.find('li').filter(':first').addClass('active');$panels.filter(':first').addClass('active');$tabs.on('click',function(e){e.preventDefault();var $tab=$(this),index=$tab.parent().index(),$panels=$element.find('.tabs-panel');if($tab.hasClass('active')){return}
$tabs.removeClass('active');$tab.addClass('active');$nav.find('li').removeClass('active');$tab.closest('li').addClass('active');$panels.removeClass('active');$panels.filter(':eq('+index+')').addClass('active');$(document.body).trigger('martfury_after_tab_clicked')})})};$(function(){$('.martfury-tabs').mrtabs()})})(jQuery);



/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
 * @license MIT */
;(function(root,factory){if(typeof define==='function'&&define.amd){define(factory)}else if(typeof exports==='object'){module.exports=factory()}else{root.NProgress=factory()}})(this,function(){var NProgress={};NProgress.version='0.2.0';var Settings=NProgress.settings={minimum:0.08,easing:'linear',positionUsing:'',speed:200,trickle:!0,trickleSpeed:200,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:'body',template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};NProgress.configure=function(options){var key,value;for(key in options){value=options[key];if(value!==undefined&&options.hasOwnProperty(key))Settings[key]=value}
return this};NProgress.status=null;NProgress.set=function(n){var started=NProgress.isStarted();n=clamp(n,Settings.minimum,1);NProgress.status=(n===1?null:n);var progress=NProgress.render(!started),bar=progress.querySelector(Settings.barSelector),speed=Settings.speed,ease=Settings.easing;progress.offsetWidth;queue(function(next){if(Settings.positionUsing==='')Settings.positionUsing=NProgress.getPositioningCSS();css(bar,barPositionCSS(n,speed,ease));if(n===1){css(progress,{transition:'none',opacity:1});progress.offsetWidth;setTimeout(function(){css(progress,{transition:'all '+speed+'ms linear',opacity:0});setTimeout(function(){NProgress.remove();next()},speed)},speed)}else{setTimeout(next,speed)}});return this};NProgress.isStarted=function(){return typeof NProgress.status==='number'};NProgress.start=function(){if(!NProgress.status)NProgress.set(0);var work=function(){setTimeout(function(){if(!NProgress.status)return;NProgress.trickle();work()},Settings.trickleSpeed)};if(Settings.trickle)work();return this};NProgress.done=function(force){if(!force&&!NProgress.status)return this;return NProgress.inc(0.3+0.5*Math.random()).set(1)};NProgress.inc=function(amount){var n=NProgress.status;if(!n){return NProgress.start()}else if(n>1){return}else{if(typeof amount!=='number'){if(n>=0&&n<0.2){amount=0.1}else if(n>=0.2&&n<0.5){amount=0.04}else if(n>=0.5&&n<0.8){amount=0.02}else if(n>=0.8&&n<0.99){amount=0.005}else{amount=0}}
n=clamp(n+amount,0,0.994);return NProgress.set(n)}};NProgress.trickle=function(){return NProgress.inc()};(function(){var initial=0,current=0;NProgress.promise=function($promise){if(!$promise||$promise.state()==="resolved"){return this}
if(current===0){NProgress.start()}
initial++;current++;$promise.always(function(){current--;if(current===0){initial=0;NProgress.done()}else{NProgress.set((initial-current)/initial)}});return this}})();NProgress.render=function(fromStart){if(NProgress.isRendered())return document.getElementById('nprogress');addClass(document.documentElement,'nprogress-busy');var progress=document.createElement('div');progress.id='nprogress';progress.innerHTML=Settings.template;var bar=progress.querySelector(Settings.barSelector),perc=fromStart?'-100':toBarPerc(NProgress.status||0),parent=document.querySelector(Settings.parent),spinner;css(bar,{transition:'all 0 linear',transform:'translate3d('+perc+'%,0,0)'});if(!Settings.showSpinner){spinner=progress.querySelector(Settings.spinnerSelector);spinner&&removeElement(spinner)}
if(parent!=document.body){addClass(parent,'nprogress-custom-parent')}
parent.appendChild(progress);return progress};NProgress.remove=function(){removeClass(document.documentElement,'nprogress-busy');removeClass(document.querySelector(Settings.parent),'nprogress-custom-parent');var progress=document.getElementById('nprogress');progress&&removeElement(progress)};NProgress.isRendered=function(){return!!document.getElementById('nprogress')};NProgress.getPositioningCSS=function(){var bodyStyle=document.body.style;var vendorPrefix=('WebkitTransform' in bodyStyle)?'Webkit':('MozTransform' in bodyStyle)?'Moz':('msTransform' in bodyStyle)?'ms':('OTransform' in bodyStyle)?'O':'';if(vendorPrefix+'Perspective' in bodyStyle){return'translate3d'}else if(vendorPrefix+'Transform' in bodyStyle){return'translate'}else{return'margin'}};function clamp(n,min,max){if(n<min)return min;if(n>max)return max;return n}
function toBarPerc(n){return(-1+n)*100}
function barPositionCSS(n,speed,ease){var barCSS;if(Settings.positionUsing==='translate3d'){barCSS={transform:'translate3d('+toBarPerc(n)+'%,0,0)'}}else if(Settings.positionUsing==='translate'){barCSS={transform:'translate('+toBarPerc(n)+'%,0)'}}else{barCSS={'margin-left':toBarPerc(n)+'%'}}
barCSS.transition='all '+speed+'ms '+ease;return barCSS}
var queue=(function(){var pending=[];function next(){var fn=pending.shift();if(fn){fn(next)}}
return function(fn){pending.push(fn);if(pending.length==1)next();}})();var css=(function(){var cssPrefixes=['Webkit','O','Moz','ms'],cssProps={};function camelCase(string){return string.replace(/^-ms-/,'ms-').replace(/-([\da-z])/gi,function(match,letter){return letter.toUpperCase()})}
function getVendorProp(name){var style=document.body.style;if(name in style)return name;var i=cssPrefixes.length,capName=name.charAt(0).toUpperCase()+name.slice(1),vendorName;while(i--){vendorName=cssPrefixes[i]+capName;if(vendorName in style)return vendorName}
return name}
function getStyleProp(name){name=camelCase(name);return cssProps[name]||(cssProps[name]=getVendorProp(name))}
function applyCss(element,prop,value){prop=getStyleProp(prop);element.style[prop]=value}
return function(element,properties){var args=arguments,prop,value;if(args.length==2){for(prop in properties){value=properties[prop];if(value!==undefined&&properties.hasOwnProperty(prop))applyCss(element,prop,value);}}else{applyCss(element,args[1],args[2])}}})();function hasClass(element,name){var list=typeof element=='string'?element:classList(element);return list.indexOf(' '+name+' ')>=0}
function addClass(element,name){var oldList=classList(element),newList=oldList+name;if(hasClass(oldList,name))return;element.className=newList.substring(1)}
function removeClass(element,name){var oldList=classList(element),newList;if(!hasClass(element,name))return;newList=oldList.replace(' '+name+' ',' ');element.className=newList.substring(1,newList.length-1)}
function classList(element){return(' '+(element&&element.className||'')+' ').replace(/\s+/gi,' ')}
function removeElement(element){element&&element.parentNode&&element.parentNode.removeChild(element)}
return NProgress});



/*
     _ _      _       _
 ___| (_) ___| | __  (_)___
/ __| | |/ __| |/ /  | / __|
\__ \ | | (__|   < _ | \__ \
|___/_|_|\___|_|\_(_)/ |___/
                   |__/

 Version: 1.6.0
  Author: Ken Wheeler
 Website: http://kenwheeler.github.io
    Docs: http://kenwheeler.github.io/slick
    Repo: http://github.com/kenwheeler/slick
  Issues: http://github.com/kenwheeler/slick/issues

 */
!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";var b=window.Slick||{};b=function(){function c(c,d){var f,e=this;e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(c),appendDots:a(c),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(b,c){return a('<button type="button" data-role="none" role="button" tabindex="0" />').text(c+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},e.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},a.extend(e,e.initials),e.activeBreakpoint=null,e.animType=null,e.animProp=null,e.breakpoints=[],e.breakpointSettings=[],e.cssTransitions=!1,e.focussed=!1,e.interrupted=!1,e.hidden="hidden",e.paused=!0,e.positionProp=null,e.respondTo=null,e.rowCount=1,e.shouldClick=!0,e.$slider=a(c),e.$slidesCache=null,e.transformType=null,e.transitionType=null,e.visibilityChange="visibilitychange",e.windowWidth=0,e.windowTimer=null,f=a(c).data("slick")||{},e.options=a.extend({},e.defaults,d,f),e.currentSlide=e.options.initialSlide,e.originalSettings=e.options,"undefined"!=typeof document.mozHidden?(e.hidden="mozHidden",e.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(e.hidden="webkitHidden",e.visibilityChange="webkitvisibilitychange"),e.autoPlay=a.proxy(e.autoPlay,e),e.autoPlayClear=a.proxy(e.autoPlayClear,e),e.autoPlayIterator=a.proxy(e.autoPlayIterator,e),e.changeSlide=a.proxy(e.changeSlide,e),e.clickHandler=a.proxy(e.clickHandler,e),e.selectHandler=a.proxy(e.selectHandler,e),e.setPosition=a.proxy(e.setPosition,e),e.swipeHandler=a.proxy(e.swipeHandler,e),e.dragHandler=a.proxy(e.dragHandler,e),e.keyHandler=a.proxy(e.keyHandler,e),e.instanceUid=b++,e.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,e.registerBreakpoints(),e.init(!0)}var b=0;return c}(),b.prototype.activateADA=function(){var a=this;a.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},b.prototype.addSlide=b.prototype.slickAdd=function(b,c,d){var e=this;if("boolean"==typeof c)d=c,c=null;else if(0>c||c>=e.slideCount)return!1;e.unload(),"number"==typeof c?0===c&&0===e.$slides.length?a(b).appendTo(e.$slideTrack):d?a(b).insertBefore(e.$slides.eq(c)):a(b).insertAfter(e.$slides.eq(c)):d===!0?a(b).prependTo(e.$slideTrack):a(b).appendTo(e.$slideTrack),e.$slides=e.$slideTrack.children(this.options.slide),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.append(e.$slides),e.$slides.each(function(b,c){a(c).attr("data-slick-index",b)}),e.$slidesCache=e.$slides,e.reinit()},b.prototype.animateHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.animate({height:b},a.options.speed)}},b.prototype.animateSlide=function(b,c){var d={},e=this;e.animateHeight(),e.options.rtl===!0&&e.options.vertical===!1&&(b=-b),e.transformsEnabled===!1?e.options.vertical===!1?e.$slideTrack.animate({left:b},e.options.speed,e.options.easing,c):e.$slideTrack.animate({top:b},e.options.speed,e.options.easing,c):e.cssTransitions===!1?(e.options.rtl===!0&&(e.currentLeft=-e.currentLeft),a({animStart:e.currentLeft}).animate({animStart:b},{duration:e.options.speed,easing:e.options.easing,step:function(a){a=Math.ceil(a),e.options.vertical===!1?(d[e.animType]="translate("+a+"px, 0px)",e.$slideTrack.css(d)):(d[e.animType]="translate(0px,"+a+"px)",e.$slideTrack.css(d))},complete:function(){c&&c.call()}})):(e.applyTransition(),b=Math.ceil(b),e.options.vertical===!1?d[e.animType]="translate3d("+b+"px, 0px, 0px)":d[e.animType]="translate3d(0px,"+b+"px, 0px)",e.$slideTrack.css(d),c&&setTimeout(function(){e.disableTransition(),c.call()},e.options.speed))},b.prototype.getNavTarget=function(){var b=this,c=b.options.asNavFor;return c&&null!==c&&(c=a(c).not(b.$slider)),c},b.prototype.asNavFor=function(b){var c=this,d=c.getNavTarget();null!==d&&"object"==typeof d&&d.each(function(){var c=a(this).slick("getSlick");c.unslicked||c.slideHandler(b,!0)})},b.prototype.applyTransition=function(a){var b=this,c={};b.options.fade===!1?c[b.transitionType]=b.transformType+" "+b.options.speed+"ms "+b.options.cssEase:c[b.transitionType]="opacity "+b.options.speed+"ms "+b.options.cssEase,b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.autoPlay=function(){var a=this;a.autoPlayClear(),a.slideCount>a.options.slidesToShow&&(a.autoPlayTimer=setInterval(a.autoPlayIterator,a.options.autoplaySpeed))},b.prototype.autoPlayClear=function(){var a=this;a.autoPlayTimer&&clearInterval(a.autoPlayTimer)},b.prototype.autoPlayIterator=function(){var a=this,b=a.currentSlide+a.options.slidesToScroll;a.paused||a.interrupted||a.focussed||(a.options.infinite===!1&&(1===a.direction&&a.currentSlide+1===a.slideCount-1?a.direction=0:0===a.direction&&(b=a.currentSlide-a.options.slidesToScroll,a.currentSlide-1===0&&(a.direction=1))),a.slideHandler(b))},b.prototype.buildArrows=function(){var b=this;b.options.arrows===!0&&(b.$prevArrow=a(b.options.prevArrow).addClass("slick-arrow"),b.$nextArrow=a(b.options.nextArrow).addClass("slick-arrow"),b.slideCount>b.options.slidesToShow?(b.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),b.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.prependTo(b.options.appendArrows),b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.appendTo(b.options.appendArrows),b.options.infinite!==!0&&b.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):b.$prevArrow.add(b.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},b.prototype.buildDots=function(){var c,d,b=this;if(b.options.dots===!0&&b.slideCount>b.options.slidesToShow){for(b.$slider.addClass("slick-dotted"),d=a("<ul />").addClass(b.options.dotsClass),c=0;c<=b.getDotCount();c+=1)d.append(a("<li />").append(b.options.customPaging.call(this,b,c)));b.$dots=d.appendTo(b.options.appendDots),b.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},b.prototype.buildOut=function(){var b=this;b.$slides=b.$slider.children(b.options.slide+":not(.slick-cloned)").addClass("slick-slide"),b.slideCount=b.$slides.length,b.$slides.each(function(b,c){a(c).attr("data-slick-index",b).data("originalStyling",a(c).attr("style")||"")}),b.$slider.addClass("slick-slider"),b.$slideTrack=0===b.slideCount?a('<div class="slick-track"/>').appendTo(b.$slider):b.$slides.wrapAll('<div class="slick-track"/>').parent(),b.$list=b.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),b.$slideTrack.css("opacity",0),(b.options.centerMode===!0||b.options.swipeToSlide===!0)&&(b.options.slidesToScroll=1),a("img[data-lazy]",b.$slider).not("[src]").addClass("slick-loading"),b.setupInfinite(),b.buildArrows(),b.buildDots(),b.updateDots(),b.setSlideClasses("number"==typeof b.currentSlide?b.currentSlide:0),b.options.draggable===!0&&b.$list.addClass("draggable")},b.prototype.buildRows=function(){var b,c,d,e,f,g,h,a=this;if(e=document.createDocumentFragment(),g=a.$slider.children(),a.options.rows>1){for(h=a.options.slidesPerRow*a.options.rows,f=Math.ceil(g.length/h),b=0;f>b;b++){var i=document.createElement("div");for(c=0;c<a.options.rows;c++){var j=document.createElement("div");for(d=0;d<a.options.slidesPerRow;d++){var k=b*h+(c*a.options.slidesPerRow+d);g.get(k)&&j.appendChild(g.get(k))}i.appendChild(j)}e.appendChild(i)}a.$slider.empty().append(e),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},b.prototype.checkResponsive=function(b,c){var e,f,g,d=this,h=!1,i=d.$slider.width(),j=window.innerWidth||a(window).width();if("window"===d.respondTo?g=j:"slider"===d.respondTo?g=i:"min"===d.respondTo&&(g=Math.min(j,i)),d.options.responsive&&d.options.responsive.length&&null!==d.options.responsive){f=null;for(e in d.breakpoints)d.breakpoints.hasOwnProperty(e)&&(d.originalSettings.mobileFirst===!1?g<d.breakpoints[e]&&(f=d.breakpoints[e]):g>d.breakpoints[e]&&(f=d.breakpoints[e]));null!==f?null!==d.activeBreakpoint?(f!==d.activeBreakpoint||c)&&(d.activeBreakpoint=f,"unslick"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):(d.activeBreakpoint=f,"unslick"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):null!==d.activeBreakpoint&&(d.activeBreakpoint=null,d.options=d.originalSettings,b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b),h=f),b||h===!1||d.$slider.trigger("breakpoint",[d,h])}},b.prototype.changeSlide=function(b,c){var f,g,h,d=this,e=a(b.currentTarget);switch(e.is("a")&&b.preventDefault(),e.is("li")||(e=e.closest("li")),h=d.slideCount%d.options.slidesToScroll!==0,f=h?0:(d.slideCount-d.currentSlide)%d.options.slidesToScroll,b.data.message){case"previous":g=0===f?d.options.slidesToScroll:d.options.slidesToShow-f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide-g,!1,c);break;case"next":g=0===f?d.options.slidesToScroll:f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide+g,!1,c);break;case"index":var i=0===b.data.index?0:b.data.index||e.index()*d.options.slidesToScroll;d.slideHandler(d.checkNavigable(i),!1,c),e.children().trigger("focus");break;default:return}},b.prototype.checkNavigable=function(a){var c,d,b=this;if(c=b.getNavigableIndexes(),d=0,a>c[c.length-1])a=c[c.length-1];else for(var e in c){if(a<c[e]){a=d;break}d=c[e]}return a},b.prototype.cleanUpEvents=function(){var b=this;b.options.dots&&null!==b.$dots&&a("li",b.$dots).off("click.slick",b.changeSlide).off("mouseenter.slick",a.proxy(b.interrupt,b,!0)).off("mouseleave.slick",a.proxy(b.interrupt,b,!1)),b.$slider.off("focus.slick blur.slick"),b.options.arrows===!0&&b.slideCount>b.options.slidesToShow&&(b.$prevArrow&&b.$prevArrow.off("click.slick",b.changeSlide),b.$nextArrow&&b.$nextArrow.off("click.slick",b.changeSlide)),b.$list.off("touchstart.slick mousedown.slick",b.swipeHandler),b.$list.off("touchmove.slick mousemove.slick",b.swipeHandler),b.$list.off("touchend.slick mouseup.slick",b.swipeHandler),b.$list.off("touchcancel.slick mouseleave.slick",b.swipeHandler),b.$list.off("click.slick",b.clickHandler),a(document).off(b.visibilityChange,b.visibility),b.cleanUpSlideEvents(),b.options.accessibility===!0&&b.$list.off("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().off("click.slick",b.selectHandler),a(window).off("orientationchange.slick.slick-"+b.instanceUid,b.orientationChange),a(window).off("resize.slick.slick-"+b.instanceUid,b.resize),a("[draggable!=true]",b.$slideTrack).off("dragstart",b.preventDefault),a(window).off("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).off("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.cleanUpSlideEvents=function(){var b=this;b.$list.off("mouseenter.slick",a.proxy(b.interrupt,b,!0)),b.$list.off("mouseleave.slick",a.proxy(b.interrupt,b,!1))},b.prototype.cleanUpRows=function(){var b,a=this;a.options.rows>1&&(b=a.$slides.children().children(),b.removeAttr("style"),a.$slider.empty().append(b))},b.prototype.clickHandler=function(a){var b=this;b.shouldClick===!1&&(a.stopImmediatePropagation(),a.stopPropagation(),a.preventDefault())},b.prototype.destroy=function(b){var c=this;c.autoPlayClear(),c.touchObject={},c.cleanUpEvents(),a(".slick-cloned",c.$slider).detach(),c.$dots&&c.$dots.remove(),c.$prevArrow&&c.$prevArrow.length&&(c.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.prevArrow)&&c.$prevArrow.remove()),c.$nextArrow&&c.$nextArrow.length&&(c.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.nextArrow)&&c.$nextArrow.remove()),c.$slides&&(c.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){a(this).attr("style",a(this).data("originalStyling"))}),c.$slideTrack.children(this.options.slide).detach(),c.$slideTrack.detach(),c.$list.detach(),c.$slider.append(c.$slides)),c.cleanUpRows(),c.$slider.removeClass("slick-slider"),c.$slider.removeClass("slick-initialized"),c.$slider.removeClass("slick-dotted"),c.unslicked=!0,b||c.$slider.trigger("destroy",[c])},b.prototype.disableTransition=function(a){var b=this,c={};c[b.transitionType]="",b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.fadeSlide=function(a,b){var c=this;c.cssTransitions===!1?(c.$slides.eq(a).css({zIndex:c.options.zIndex}),c.$slides.eq(a).animate({opacity:1},c.options.speed,c.options.easing,b)):(c.applyTransition(a),c.$slides.eq(a).css({opacity:1,zIndex:c.options.zIndex}),b&&setTimeout(function(){c.disableTransition(a),b.call()},c.options.speed))},b.prototype.fadeSlideOut=function(a){var b=this;b.cssTransitions===!1?b.$slides.eq(a).animate({opacity:0,zIndex:b.options.zIndex-2},b.options.speed,b.options.easing):(b.applyTransition(a),b.$slides.eq(a).css({opacity:0,zIndex:b.options.zIndex-2}))},b.prototype.filterSlides=b.prototype.slickFilter=function(a){var b=this;null!==a&&(b.$slidesCache=b.$slides,b.unload(),b.$slideTrack.children(this.options.slide).detach(),b.$slidesCache.filter(a).appendTo(b.$slideTrack),b.reinit())},b.prototype.focusHandler=function(){var b=this;b.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(c){c.stopImmediatePropagation();var d=a(this);setTimeout(function(){b.options.pauseOnFocus&&(b.focussed=d.is(":focus"),b.autoPlay())},0)})},b.prototype.getCurrent=b.prototype.slickCurrentSlide=function(){var a=this;return a.currentSlide},b.prototype.getDotCount=function(){var a=this,b=0,c=0,d=0;if(a.options.infinite===!0)for(;b<a.slideCount;)++d,b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else if(a.options.centerMode===!0)d=a.slideCount;else if(a.options.asNavFor)for(;b<a.slideCount;)++d,b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else d=1+Math.ceil((a.slideCount-a.options.slidesToShow)/a.options.slidesToScroll);return d-1},b.prototype.getLeft=function(a){var c,d,f,b=this,e=0;return b.slideOffset=0,d=b.$slides.first().outerHeight(!0),b.options.infinite===!0?(b.slideCount>b.options.slidesToShow&&(b.slideOffset=b.slideWidth*b.options.slidesToShow*-1,e=d*b.options.slidesToShow*-1),b.slideCount%b.options.slidesToScroll!==0&&a+b.options.slidesToScroll>b.slideCount&&b.slideCount>b.options.slidesToShow&&(a>b.slideCount?(b.slideOffset=(b.options.slidesToShow-(a-b.slideCount))*b.slideWidth*-1,e=(b.options.slidesToShow-(a-b.slideCount))*d*-1):(b.slideOffset=b.slideCount%b.options.slidesToScroll*b.slideWidth*-1,e=b.slideCount%b.options.slidesToScroll*d*-1))):a+b.options.slidesToShow>b.slideCount&&(b.slideOffset=(a+b.options.slidesToShow-b.slideCount)*b.slideWidth,e=(a+b.options.slidesToShow-b.slideCount)*d),b.slideCount<=b.options.slidesToShow&&(b.slideOffset=0,e=0),b.options.centerMode===!0&&b.options.infinite===!0?b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)-b.slideWidth:b.options.centerMode===!0&&(b.slideOffset=0,b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)),c=b.options.vertical===!1?a*b.slideWidth*-1+b.slideOffset:a*d*-1+e,b.options.variableWidth===!0&&(f=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow),c=b.options.rtl===!0?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,b.options.centerMode===!0&&(f=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow+1),c=b.options.rtl===!0?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,c+=(b.$list.width()-f.outerWidth())/2)),c},b.prototype.getOption=b.prototype.slickGetOption=function(a){var b=this;return b.options[a]},b.prototype.getNavigableIndexes=function(){var e,a=this,b=0,c=0,d=[];for(a.options.infinite===!1?e=a.slideCount:(b=-1*a.options.slidesToScroll,c=-1*a.options.slidesToScroll,e=2*a.slideCount);e>b;)d.push(b),b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;return d},b.prototype.getSlick=function(){return this},b.prototype.getSlideCount=function(){var c,d,e,b=this;return e=b.options.centerMode===!0?b.slideWidth*Math.floor(b.options.slidesToShow/2):0,b.options.swipeToSlide===!0?(b.$slideTrack.find(".slick-slide").each(function(c,f){return f.offsetLeft-e+a(f).outerWidth()/2>-1*b.swipeLeft?(d=f,!1):void 0}),c=Math.abs(a(d).attr("data-slick-index")-b.currentSlide)||1):b.options.slidesToScroll},b.prototype.goTo=b.prototype.slickGoTo=function(a,b){var c=this;c.changeSlide({data:{message:"index",index:parseInt(a)}},b)},b.prototype.init=function(b){var c=this;a(c.$slider).hasClass("slick-initialized")||(a(c.$slider).addClass("slick-initialized"),c.buildRows(),c.buildOut(),c.setProps(),c.startLoad(),c.loadSlider(),c.initializeEvents(),c.updateArrows(),c.updateDots(),c.checkResponsive(!0),c.focusHandler()),b&&c.$slider.trigger("init",[c]),c.options.accessibility===!0&&c.initADA(),c.options.autoplay&&(c.paused=!1,c.autoPlay())},b.prototype.initADA=function(){var b=this;b.$slides.add(b.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),b.$slideTrack.attr("role","listbox"),b.$slides.not(b.$slideTrack.find(".slick-cloned")).each(function(c){a(this).attr({role:"option","aria-describedby":"slick-slide"+b.instanceUid+c})}),null!==b.$dots&&b.$dots.attr("role","tablist").find("li").each(function(c){a(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+b.instanceUid+c,id:"slick-slide"+b.instanceUid+c})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),b.activateADA()},b.prototype.initArrowEvents=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},a.changeSlide),a.$nextArrow.off("click.slick").on("click.slick",{message:"next"},a.changeSlide))},b.prototype.initDotEvents=function(){var b=this;b.options.dots===!0&&b.slideCount>b.options.slidesToShow&&a("li",b.$dots).on("click.slick",{message:"index"},b.changeSlide),b.options.dots===!0&&b.options.pauseOnDotsHover===!0&&a("li",b.$dots).on("mouseenter.slick",a.proxy(b.interrupt,b,!0)).on("mouseleave.slick",a.proxy(b.interrupt,b,!1))},b.prototype.initSlideEvents=function(){var b=this;b.options.pauseOnHover&&(b.$list.on("mouseenter.slick",a.proxy(b.interrupt,b,!0)),b.$list.on("mouseleave.slick",a.proxy(b.interrupt,b,!1)))},b.prototype.initializeEvents=function(){var b=this;b.initArrowEvents(),b.initDotEvents(),b.initSlideEvents(),b.$list.on("touchstart.slick mousedown.slick",{action:"start"},b.swipeHandler),b.$list.on("touchmove.slick mousemove.slick",{action:"move"},b.swipeHandler),b.$list.on("touchend.slick mouseup.slick",{action:"end"},b.swipeHandler),b.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},b.swipeHandler),b.$list.on("click.slick",b.clickHandler),a(document).on(b.visibilityChange,a.proxy(b.visibility,b)),b.options.accessibility===!0&&b.$list.on("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),a(window).on("orientationchange.slick.slick-"+b.instanceUid,a.proxy(b.orientationChange,b)),a(window).on("resize.slick.slick-"+b.instanceUid,a.proxy(b.resize,b)),a("[draggable!=true]",b.$slideTrack).on("dragstart",b.preventDefault),a(window).on("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).on("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.initUI=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.show(),a.$nextArrow.show()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.show()},b.prototype.keyHandler=function(a){var b=this;a.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===a.keyCode&&b.options.accessibility===!0?b.changeSlide({data:{message:b.options.rtl===!0?"next":"previous"}}):39===a.keyCode&&b.options.accessibility===!0&&b.changeSlide({data:{message:b.options.rtl===!0?"previous":"next"}}))},b.prototype.lazyLoad=function(){function g(c){a("img[data-lazy]",c).each(function(){var c=a(this),d=a(this).attr("data-lazy"),e=document.createElement("img");e.onload=function(){c.animate({opacity:0},100,function(){c.attr("src",d).animate({opacity:1},200,function(){c.removeAttr("data-lazy").removeClass("slick-loading")}),b.$slider.trigger("lazyLoaded",[b,c,d])})},e.onerror=function(){c.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),b.$slider.trigger("lazyLoadError",[b,c,d])},e.src=d})}var c,d,e,f,b=this;b.options.centerMode===!0?b.options.infinite===!0?(e=b.currentSlide+(b.options.slidesToShow/2+1),f=e+b.options.slidesToShow+2):(e=Math.max(0,b.currentSlide-(b.options.slidesToShow/2+1)),f=2+(b.options.slidesToShow/2+1)+b.currentSlide):(e=b.options.infinite?b.options.slidesToShow+b.currentSlide:b.currentSlide,f=Math.ceil(e+b.options.slidesToShow),b.options.fade===!0&&(e>0&&e--,f<=b.slideCount&&f++)),c=b.$slider.find(".slick-slide").slice(e,f),g(c),b.slideCount<=b.options.slidesToShow?(d=b.$slider.find(".slick-slide"),g(d)):b.currentSlide>=b.slideCount-b.options.slidesToShow?(d=b.$slider.find(".slick-cloned").slice(0,b.options.slidesToShow),g(d)):0===b.currentSlide&&(d=b.$slider.find(".slick-cloned").slice(-1*b.options.slidesToShow),g(d))},b.prototype.loadSlider=function(){var a=this;a.setPosition(),a.$slideTrack.css({opacity:1}),a.$slider.removeClass("slick-loading"),a.initUI(),"progressive"===a.options.lazyLoad&&a.progressiveLazyLoad()},b.prototype.next=b.prototype.slickNext=function(){var a=this;a.changeSlide({data:{message:"next"}})},b.prototype.orientationChange=function(){var a=this;a.checkResponsive(),a.setPosition()},b.prototype.pause=b.prototype.slickPause=function(){var a=this;a.autoPlayClear(),a.paused=!0},b.prototype.play=b.prototype.slickPlay=function(){var a=this;a.autoPlay(),a.options.autoplay=!0,a.paused=!1,a.focussed=!1,a.interrupted=!1},b.prototype.postSlide=function(a){var b=this;b.unslicked||(b.$slider.trigger("afterChange",[b,a]),b.animating=!1,b.setPosition(),b.swipeLeft=null,b.options.autoplay&&b.autoPlay(),b.options.accessibility===!0&&b.initADA())},b.prototype.prev=b.prototype.slickPrev=function(){var a=this;a.changeSlide({data:{message:"previous"}})},b.prototype.preventDefault=function(a){a.preventDefault()},b.prototype.progressiveLazyLoad=function(b){b=b||1;var e,f,g,c=this,d=a("img[data-lazy]",c.$slider);d.length?(e=d.first(),f=e.attr("data-lazy"),g=document.createElement("img"),g.onload=function(){e.attr("src",f).removeAttr("data-lazy").removeClass("slick-loading"),c.options.adaptiveHeight===!0&&c.setPosition(),c.$slider.trigger("lazyLoaded",[c,e,f]),c.progressiveLazyLoad()},g.onerror=function(){3>b?setTimeout(function(){c.progressiveLazyLoad(b+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),c.$slider.trigger("lazyLoadError",[c,e,f]),c.progressiveLazyLoad())},g.src=f):c.$slider.trigger("allImagesLoaded",[c])},b.prototype.refresh=function(b){var d,e,c=this;e=c.slideCount-c.options.slidesToShow,!c.options.infinite&&c.currentSlide>e&&(c.currentSlide=e),c.slideCount<=c.options.slidesToShow&&(c.currentSlide=0),d=c.currentSlide,c.destroy(!0),a.extend(c,c.initials,{currentSlide:d}),c.init(),b||c.changeSlide({data:{message:"index",index:d}},!1)},b.prototype.registerBreakpoints=function(){var c,d,e,b=this,f=b.options.responsive||null;if("array"===a.type(f)&&f.length){b.respondTo=b.options.respondTo||"window";for(c in f)if(e=b.breakpoints.length-1,d=f[c].breakpoint,f.hasOwnProperty(c)){for(;e>=0;)b.breakpoints[e]&&b.breakpoints[e]===d&&b.breakpoints.splice(e,1),e--;b.breakpoints.push(d),b.breakpointSettings[d]=f[c].settings}b.breakpoints.sort(function(a,c){return b.options.mobileFirst?a-c:c-a})}},b.prototype.reinit=function(){var b=this;b.$slides=b.$slideTrack.children(b.options.slide).addClass("slick-slide"),b.slideCount=b.$slides.length,b.currentSlide>=b.slideCount&&0!==b.currentSlide&&(b.currentSlide=b.currentSlide-b.options.slidesToScroll),b.slideCount<=b.options.slidesToShow&&(b.currentSlide=0),b.registerBreakpoints(),b.setProps(),b.setupInfinite(),b.buildArrows(),b.updateArrows(),b.initArrowEvents(),b.buildDots(),b.updateDots(),b.initDotEvents(),b.cleanUpSlideEvents(),b.initSlideEvents(),b.checkResponsive(!1,!0),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),b.setSlideClasses("number"==typeof b.currentSlide?b.currentSlide:0),b.setPosition(),b.focusHandler(),b.paused=!b.options.autoplay,b.autoPlay(),b.$slider.trigger("reInit",[b])},b.prototype.resize=function(){var b=this;a(window).width()!==b.windowWidth&&(clearTimeout(b.windowDelay),b.windowDelay=window.setTimeout(function(){b.windowWidth=a(window).width(),b.checkResponsive(),b.unslicked||b.setPosition()},50))},b.prototype.removeSlide=b.prototype.slickRemove=function(a,b,c){var d=this;return"boolean"==typeof a?(b=a,a=b===!0?0:d.slideCount-1):a=b===!0?--a:a,d.slideCount<1||0>a||a>d.slideCount-1?!1:(d.unload(),c===!0?d.$slideTrack.children().remove():d.$slideTrack.children(this.options.slide).eq(a).remove(),d.$slides=d.$slideTrack.children(this.options.slide),d.$slideTrack.children(this.options.slide).detach(),d.$slideTrack.append(d.$slides),d.$slidesCache=d.$slides,void d.reinit())},b.prototype.setCSS=function(a){var d,e,b=this,c={};b.options.rtl===!0&&(a=-a),d="left"==b.positionProp?Math.ceil(a)+"px":"0px",e="top"==b.positionProp?Math.ceil(a)+"px":"0px",c[b.positionProp]=a,b.transformsEnabled===!1?b.$slideTrack.css(c):(c={},b.cssTransitions===!1?(c[b.animType]="translate("+d+", "+e+")",b.$slideTrack.css(c)):(c[b.animType]="translate3d("+d+", "+e+", 0px)",b.$slideTrack.css(c)))},b.prototype.setDimensions=function(){var a=this;a.options.vertical===!1?a.options.centerMode===!0&&a.$list.css({padding:"0px "+a.options.centerPadding}):(a.$list.height(a.$slides.first().outerHeight(!0)*a.options.slidesToShow),a.options.centerMode===!0&&a.$list.css({padding:a.options.centerPadding+" 0px"})),a.listWidth=a.$list.width(),a.listHeight=a.$list.height(),a.options.vertical===!1&&a.options.variableWidth===!1?(a.slideWidth=Math.ceil(a.listWidth/a.options.slidesToShow),a.$slideTrack.width(Math.ceil(a.slideWidth*a.$slideTrack.children(".slick-slide").length))):a.options.variableWidth===!0?a.$slideTrack.width(5e3*a.slideCount):(a.slideWidth=Math.ceil(a.listWidth),a.$slideTrack.height(Math.ceil(a.$slides.first().outerHeight(!0)*a.$slideTrack.children(".slick-slide").length)));var b=a.$slides.first().outerWidth(!0)-a.$slides.first().width();a.options.variableWidth===!1&&a.$slideTrack.children(".slick-slide").width(a.slideWidth-b)},b.prototype.setFade=function(){var c,b=this;b.$slides.each(function(d,e){c=b.slideWidth*d*-1,b.options.rtl===!0?a(e).css({position:"relative",right:c,top:0,zIndex:b.options.zIndex-2,opacity:0}):a(e).css({position:"relative",left:c,top:0,zIndex:b.options.zIndex-2,opacity:0})}),b.$slides.eq(b.currentSlide).css({zIndex:b.options.zIndex-1,opacity:1})},b.prototype.setHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.css("height",b)}},b.prototype.setOption=b.prototype.slickSetOption=function(){var c,d,e,f,h,b=this,g=!1;if("object"===a.type(arguments[0])?(e=arguments[0],g=arguments[1],h="multiple"):"string"===a.type(arguments[0])&&(e=arguments[0],f=arguments[1],g=arguments[2],"responsive"===arguments[0]&&"array"===a.type(arguments[1])?h="responsive":"undefined"!=typeof arguments[1]&&(h="single")),"single"===h)b.options[e]=f;else if("multiple"===h)a.each(e,function(a,c){b.options[a]=c});else if("responsive"===h)for(d in f)if("array"!==a.type(b.options.responsive))b.options.responsive=[f[d]];else{for(c=b.options.responsive.length-1;c>=0;)b.options.responsive[c].breakpoint===f[d].breakpoint&&b.options.responsive.splice(c,1),c--;b.options.responsive.push(f[d])}g&&(b.unload(),b.reinit())},b.prototype.setPosition=function(){var a=this;a.setDimensions(),a.setHeight(),a.options.fade===!1?a.setCSS(a.getLeft(a.currentSlide)):a.setFade(),a.$slider.trigger("setPosition",[a])},b.prototype.setProps=function(){var a=this,b=document.body.style;a.positionProp=a.options.vertical===!0?"top":"left","top"===a.positionProp?a.$slider.addClass("slick-vertical"):a.$slider.removeClass("slick-vertical"),(void 0!==b.WebkitTransition||void 0!==b.MozTransition||void 0!==b.msTransition)&&a.options.useCSS===!0&&(a.cssTransitions=!0),a.options.fade&&("number"==typeof a.options.zIndex?a.options.zIndex<3&&(a.options.zIndex=3):a.options.zIndex=a.defaults.zIndex),void 0!==b.OTransform&&(a.animType="OTransform",a.transformType="-o-transform",a.transitionType="OTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.MozTransform&&(a.animType="MozTransform",a.transformType="-moz-transform",a.transitionType="MozTransition",void 0===b.perspectiveProperty&&void 0===b.MozPerspective&&(a.animType=!1)),void 0!==b.webkitTransform&&(a.animType="webkitTransform",a.transformType="-webkit-transform",a.transitionType="webkitTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.msTransform&&(a.animType="msTransform",a.transformType="-ms-transform",a.transitionType="msTransition",void 0===b.msTransform&&(a.animType=!1)),void 0!==b.transform&&a.animType!==!1&&(a.animType="transform",a.transformType="transform",a.transitionType="transition"),a.transformsEnabled=a.options.useTransform&&null!==a.animType&&a.animType!==!1},b.prototype.setSlideClasses=function(a){var c,d,e,f,b=this;d=b.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),b.$slides.eq(a).addClass("slick-current"),b.options.centerMode===!0?(c=Math.floor(b.options.slidesToShow/2),b.options.infinite===!0&&(a>=c&&a<=b.slideCount-1-c?b.$slides.slice(a-c,a+c+1).addClass("slick-active").attr("aria-hidden","false"):(e=b.options.slidesToShow+a,
d.slice(e-c+1,e+c+2).addClass("slick-active").attr("aria-hidden","false")),0===a?d.eq(d.length-1-b.options.slidesToShow).addClass("slick-center"):a===b.slideCount-1&&d.eq(b.options.slidesToShow).addClass("slick-center")),b.$slides.eq(a).addClass("slick-center")):a>=0&&a<=b.slideCount-b.options.slidesToShow?b.$slides.slice(a,a+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):d.length<=b.options.slidesToShow?d.addClass("slick-active").attr("aria-hidden","false"):(f=b.slideCount%b.options.slidesToShow,e=b.options.infinite===!0?b.options.slidesToShow+a:a,b.options.slidesToShow==b.options.slidesToScroll&&b.slideCount-a<b.options.slidesToShow?d.slice(e-(b.options.slidesToShow-f),e+f).addClass("slick-active").attr("aria-hidden","false"):d.slice(e,e+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===b.options.lazyLoad&&b.lazyLoad()},b.prototype.setupInfinite=function(){var c,d,e,b=this;if(b.options.fade===!0&&(b.options.centerMode=!1),b.options.infinite===!0&&b.options.fade===!1&&(d=null,b.slideCount>b.options.slidesToShow)){for(e=b.options.centerMode===!0?b.options.slidesToShow+1:b.options.slidesToShow,c=b.slideCount;c>b.slideCount-e;c-=1)d=c-1,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d-b.slideCount).prependTo(b.$slideTrack).addClass("slick-cloned");for(c=0;e>c;c+=1)d=c,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d+b.slideCount).appendTo(b.$slideTrack).addClass("slick-cloned");b.$slideTrack.find(".slick-cloned").find("[id]").each(function(){a(this).attr("id","")})}},b.prototype.interrupt=function(a){var b=this;a||b.autoPlay(),b.interrupted=a},b.prototype.selectHandler=function(b){var c=this,d=a(b.target).is(".slick-slide")?a(b.target):a(b.target).parents(".slick-slide"),e=parseInt(d.attr("data-slick-index"));return e||(e=0),c.slideCount<=c.options.slidesToShow?(c.setSlideClasses(e),void c.asNavFor(e)):void c.slideHandler(e)},b.prototype.slideHandler=function(a,b,c){var d,e,f,g,j,h=null,i=this;return b=b||!1,i.animating===!0&&i.options.waitForAnimate===!0||i.options.fade===!0&&i.currentSlide===a||i.slideCount<=i.options.slidesToShow?void 0:(b===!1&&i.asNavFor(a),d=a,h=i.getLeft(d),g=i.getLeft(i.currentSlide),i.currentLeft=null===i.swipeLeft?g:i.swipeLeft,i.options.infinite===!1&&i.options.centerMode===!1&&(0>a||a>i.getDotCount()*i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):i.options.infinite===!1&&i.options.centerMode===!0&&(0>a||a>i.slideCount-i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):(i.options.autoplay&&clearInterval(i.autoPlayTimer),e=0>d?i.slideCount%i.options.slidesToScroll!==0?i.slideCount-i.slideCount%i.options.slidesToScroll:i.slideCount+d:d>=i.slideCount?i.slideCount%i.options.slidesToScroll!==0?0:d-i.slideCount:d,i.animating=!0,i.$slider.trigger("beforeChange",[i,i.currentSlide,e]),f=i.currentSlide,i.currentSlide=e,i.setSlideClasses(i.currentSlide),i.options.asNavFor&&(j=i.getNavTarget(),j=j.slick("getSlick"),j.slideCount<=j.options.slidesToShow&&j.setSlideClasses(i.currentSlide)),i.updateDots(),i.updateArrows(),i.options.fade===!0?(c!==!0?(i.fadeSlideOut(f),i.fadeSlide(e,function(){i.postSlide(e)})):i.postSlide(e),void i.animateHeight()):void(c!==!0?i.animateSlide(h,function(){i.postSlide(e)}):i.postSlide(e))))},b.prototype.startLoad=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.hide(),a.$nextArrow.hide()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.hide(),a.$slider.addClass("slick-loading")},b.prototype.swipeDirection=function(){var a,b,c,d,e=this;return a=e.touchObject.startX-e.touchObject.curX,b=e.touchObject.startY-e.touchObject.curY,c=Math.atan2(b,a),d=Math.round(180*c/Math.PI),0>d&&(d=360-Math.abs(d)),45>=d&&d>=0?e.options.rtl===!1?"left":"right":360>=d&&d>=315?e.options.rtl===!1?"left":"right":d>=135&&225>=d?e.options.rtl===!1?"right":"left":e.options.verticalSwiping===!0?d>=35&&135>=d?"down":"up":"vertical"},b.prototype.swipeEnd=function(a){var c,d,b=this;if(b.dragging=!1,b.interrupted=!1,b.shouldClick=b.touchObject.swipeLength>10?!1:!0,void 0===b.touchObject.curX)return!1;if(b.touchObject.edgeHit===!0&&b.$slider.trigger("edge",[b,b.swipeDirection()]),b.touchObject.swipeLength>=b.touchObject.minSwipe){switch(d=b.swipeDirection()){case"left":case"down":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide+b.getSlideCount()):b.currentSlide+b.getSlideCount(),b.currentDirection=0;break;case"right":case"up":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide-b.getSlideCount()):b.currentSlide-b.getSlideCount(),b.currentDirection=1}"vertical"!=d&&(b.slideHandler(c),b.touchObject={},b.$slider.trigger("swipe",[b,d]))}else b.touchObject.startX!==b.touchObject.curX&&(b.slideHandler(b.currentSlide),b.touchObject={})},b.prototype.swipeHandler=function(a){var b=this;if(!(b.options.swipe===!1||"ontouchend"in document&&b.options.swipe===!1||b.options.draggable===!1&&-1!==a.type.indexOf("mouse")))switch(b.touchObject.fingerCount=a.originalEvent&&void 0!==a.originalEvent.touches?a.originalEvent.touches.length:1,b.touchObject.minSwipe=b.listWidth/b.options.touchThreshold,b.options.verticalSwiping===!0&&(b.touchObject.minSwipe=b.listHeight/b.options.touchThreshold),a.data.action){case"start":b.swipeStart(a);break;case"move":b.swipeMove(a);break;case"end":b.swipeEnd(a)}},b.prototype.swipeMove=function(a){var d,e,f,g,h,b=this;return h=void 0!==a.originalEvent?a.originalEvent.touches:null,!b.dragging||h&&1!==h.length?!1:(d=b.getLeft(b.currentSlide),b.touchObject.curX=void 0!==h?h[0].pageX:a.clientX,b.touchObject.curY=void 0!==h?h[0].pageY:a.clientY,b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curX-b.touchObject.startX,2))),b.options.verticalSwiping===!0&&(b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curY-b.touchObject.startY,2)))),e=b.swipeDirection(),"vertical"!==e?(void 0!==a.originalEvent&&b.touchObject.swipeLength>4&&a.preventDefault(),g=(b.options.rtl===!1?1:-1)*(b.touchObject.curX>b.touchObject.startX?1:-1),b.options.verticalSwiping===!0&&(g=b.touchObject.curY>b.touchObject.startY?1:-1),f=b.touchObject.swipeLength,b.touchObject.edgeHit=!1,b.options.infinite===!1&&(0===b.currentSlide&&"right"===e||b.currentSlide>=b.getDotCount()&&"left"===e)&&(f=b.touchObject.swipeLength*b.options.edgeFriction,b.touchObject.edgeHit=!0),b.options.vertical===!1?b.swipeLeft=d+f*g:b.swipeLeft=d+f*(b.$list.height()/b.listWidth)*g,b.options.verticalSwiping===!0&&(b.swipeLeft=d+f*g),b.options.fade===!0||b.options.touchMove===!1?!1:b.animating===!0?(b.swipeLeft=null,!1):void b.setCSS(b.swipeLeft)):void 0)},b.prototype.swipeStart=function(a){var c,b=this;return b.interrupted=!0,1!==b.touchObject.fingerCount||b.slideCount<=b.options.slidesToShow?(b.touchObject={},!1):(void 0!==a.originalEvent&&void 0!==a.originalEvent.touches&&(c=a.originalEvent.touches[0]),b.touchObject.startX=b.touchObject.curX=void 0!==c?c.pageX:a.clientX,b.touchObject.startY=b.touchObject.curY=void 0!==c?c.pageY:a.clientY,void(b.dragging=!0))},b.prototype.unfilterSlides=b.prototype.slickUnfilter=function(){var a=this;null!==a.$slidesCache&&(a.unload(),a.$slideTrack.children(this.options.slide).detach(),a.$slidesCache.appendTo(a.$slideTrack),a.reinit())},b.prototype.unload=function(){var b=this;a(".slick-cloned",b.$slider).remove(),b.$dots&&b.$dots.remove(),b.$prevArrow&&b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.remove(),b.$nextArrow&&b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.remove(),b.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},b.prototype.unslick=function(a){var b=this;b.$slider.trigger("unslick",[b,a]),b.destroy()},b.prototype.updateArrows=function(){var b,a=this;b=Math.floor(a.options.slidesToShow/2),a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&!a.options.infinite&&(a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===a.currentSlide?(a.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):a.currentSlide>=a.slideCount-a.options.slidesToShow&&a.options.centerMode===!1?(a.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):a.currentSlide>=a.slideCount-1&&a.options.centerMode===!0&&(a.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},b.prototype.updateDots=function(){var a=this;null!==a.$dots&&(a.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),a.$dots.find("li").eq(Math.floor(a.currentSlide/a.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},b.prototype.visibility=function(){var a=this;a.options.autoplay&&(document[a.hidden]?a.interrupted=!0:a.interrupted=!1)},a.fn.slick=function(){var f,g,a=this,c=arguments[0],d=Array.prototype.slice.call(arguments,1),e=a.length;for(f=0;e>f;f++)if("object"==typeof c||"undefined"==typeof c?a[f].slick=new b(a[f],c):g=a[f].slick[c].apply(a[f].slick,d),"undefined"!=typeof g)return g;return a}});



(function(e){typeof define=="function"&&define.amd?define(["jquery"],e):typeof module=="object"&&module.exports?module.exports=function(t,n){return n===undefined&&(typeof window!="undefined"?n=require("jquery"):n=require("jquery")(t)),e(n),n}:e(jQuery)})(function(e){function A(t,n,i){typeof i=="string"&&(i={className:i}),this.options=E(w,e.isPlainObject(i)?i:{}),this.loadHTML(),this.wrapper=e(h.html),this.options.clickToHide&&this.wrapper.addClass(r+"-hidable"),this.wrapper.data(r,this),this.arrow=this.wrapper.find("."+r+"-arrow"),this.container=this.wrapper.find("."+r+"-container"),this.container.append(this.userContainer),t&&t.length&&(this.elementType=t.attr("type"),this.originalElement=t,this.elem=N(t),this.elem.data(r,this),this.elem.before(this.wrapper)),this.container.hide(),this.run(n)}var t=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},n="notify",r=n+"js",i=n+"!blank",s={t:"top",m:"middle",b:"bottom",l:"left",c:"center",r:"right"},o=["l","c","r"],u=["t","m","b"],a=["t","b","l","r"],f={t:"b",m:null,b:"t",l:"r",c:null,r:"l"},l=function(t){var n;return n=[],e.each(t.split(/\W+/),function(e,t){var r;r=t.toLowerCase().charAt(0);if(s[r])return n.push(r)}),n},c={},h={name:"core",html:'<div class="'+r+'-wrapper">\n	<div class="'+r+'-arrow"></div>\n	<div class="'+r+'-container"></div>\n</div>',css:"."+r+"-corner {\n	position: fixed;\n	margin: 5px;\n	z-index: 1050;\n}\n\n."+r+"-corner ."+r+"-wrapper,\n."+r+"-corner ."+r+"-container {\n	position: relative;\n	display: block;\n	height: inherit;\n	width: inherit;\n	margin: 3px;\n}\n\n."+r+"-wrapper {\n	z-index: 1;\n	position: absolute;\n	display: inline-block;\n	height: 0;\n	width: 0;\n}\n\n."+r+"-container {\n	display: none;\n	z-index: 1;\n	position: absolute;\n}\n\n."+r+"-hidable {\n	cursor: pointer;\n}\n\n[data-notify-text],[data-notify-html] {\n	position: relative;\n}\n\n."+r+"-arrow {\n	position: absolute;\n	z-index: 2;\n	width: 0;\n	height: 0;\n}"},p={"border-radius":["-webkit-","-moz-"]},d=function(e){return c[e]},v=function(e){if(!e)throw"Missing Style name";c[e]&&delete c[e]},m=function(t,i){if(!t)throw"Missing Style name";if(!i)throw"Missing Style definition";if(!i.html)throw"Missing Style HTML";var s=c[t];s&&s.cssElem&&(window.console&&console.warn(n+": overwriting style '"+t+"'"),c[t].cssElem.remove()),i.name=t,c[t]=i;var o="";i.classes&&e.each(i.classes,function(t,n){return o+="."+r+"-"+i.name+"-"+t+" {\n",e.each(n,function(t,n){return p[t]&&e.each(p[t],function(e,r){return o+="	"+r+t+": "+n+";\n"}),o+="	"+t+": "+n+";\n"}),o+="}\n"}),i.css&&(o+="/* styles for "+i.name+" */\n"+i.css),o&&(i.cssElem=g(o),i.cssElem.attr("id","notify-"+i.name));var u={},a=e(i.html);y("html",a,u),y("text",a,u),i.fields=u},g=function(t){var n,r,i;r=x("style"),r.attr("type","text/css"),e("head").append(r);try{r.html(t)}catch(s){r[0].styleSheet.cssText=t}return r},y=function(t,n,r){var s;return t!=="html"&&(t="text"),s="data-notify-"+t,b(n,"["+s+"]").each(function(){var n;n=e(this).attr(s),n||(n=i),r[n]=t})},b=function(e,t){return e.is(t)?e:e.find(t)},w={clickToHide:!0,autoHide:!0,autoHideDelay:5e3,arrowShow:!0,arrowSize:5,breakNewLines:!0,elementPosition:"bottom",globalPosition:"top right",style:"bootstrap",className:"error",showAnimation:"slideDown",showDuration:400,hideAnimation:"slideUp",hideDuration:200,gap:5},E=function(t,n){var r;return r=function(){},r.prototype=t,e.extend(!0,new r,n)},S=function(t){return e.extend(w,t)},x=function(t){return e("<"+t+"></"+t+">")},T={},N=function(t){var n;return t.is("[type=radio]")&&(n=t.parents("form:first").find("[type=radio]").filter(function(n,r){return e(r).attr("name")===t.attr("name")}),t=n.first()),t},C=function(e,t,n){var r,i;if(typeof n=="string")n=parseInt(n,10);else if(typeof n!="number")return;if(isNaN(n))return;return r=s[f[t.charAt(0)]],i=t,e[r]!==undefined&&(t=s[r.charAt(0)],n=-n),e[t]===undefined?e[t]=n:e[t]+=n,null},k=function(e,t,n){if(e==="l"||e==="t")return 0;if(e==="c"||e==="m")return n/2-t/2;if(e==="r"||e==="b")return n-t;throw"Invalid alignment"},L=function(e){return L.e=L.e||x("div"),L.e.text(e).html()};A.prototype.loadHTML=function(){var t;t=this.getStyle(),this.userContainer=e(t.html),this.userFields=t.fields},A.prototype.show=function(e,t){var n,r,i,s,o;r=function(n){return function(){!e&&!n.elem&&n.destroy();if(t)return t()}}(this),o=this.container.parent().parents(":hidden").length>0,i=this.container.add(this.arrow),n=[];if(o&&e)s="show";else if(o&&!e)s="hide";else if(!o&&e)s=this.options.showAnimation,n.push(this.options.showDuration);else{if(!!o||!!e)return r();s=this.options.hideAnimation,n.push(this.options.hideDuration)}return n.push(r),i[s].apply(i,n)},A.prototype.setGlobalPosition=function(){var t=this.getPosition(),n=t[0],i=t[1],o=s[n],u=s[i],a=n+"|"+i,f=T[a];if(!f||!document.body.contains(f[0])){f=T[a]=x("div");var l={};l[o]=0,u==="middle"?l.top="45%":u==="center"?l.left="45%":l[u]=0,f.css(l).addClass(r+"-corner"),e("body").append(f)}return f.prepend(this.wrapper)},A.prototype.setElementPosition=function(){var n,r,i,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T,N,L,A,O,M,_,D,P,H,B,j;H=this.getPosition(),_=H[0],O=H[1],M=H[2],g=this.elem.position(),d=this.elem.outerHeight(),y=this.elem.outerWidth(),v=this.elem.innerHeight(),m=this.elem.innerWidth(),j=this.wrapper.position(),c=this.container.height(),h=this.container.width(),T=s[_],L=f[_],A=s[L],p={},p[A]=_==="b"?d:_==="r"?y:0,C(p,"top",g.top-j.top),C(p,"left",g.left-j.left),B=["top","left"];for(w=0,S=B.length;w<S;w++)D=B[w],N=parseInt(this.elem.css("margin-"+D),10),N&&C(p,D,N);b=Math.max(0,this.options.gap-(this.options.arrowShow?i:0)),C(p,A,b);if(!this.options.arrowShow)this.arrow.hide();else{i=this.options.arrowSize,r=e.extend({},p),n=this.userContainer.css("border-color")||this.userContainer.css("border-top-color")||this.userContainer.css("background-color")||"white";for(E=0,x=a.length;E<x;E++){D=a[E],P=s[D];if(D===L)continue;l=P===T?n:"transparent",r["border-"+P]=i+"px solid "+l}C(p,s[L],i),t.call(a,O)>=0&&C(r,s[O],i*2)}t.call(u,_)>=0?(C(p,"left",k(O,h,y)),r&&C(r,"left",k(O,i,m))):t.call(o,_)>=0&&(C(p,"top",k(O,c,d)),r&&C(r,"top",k(O,i,v))),this.container.is(":visible")&&(p.display="block"),this.container.removeAttr("style").css(p);if(r)return this.arrow.removeAttr("style").css(r)},A.prototype.getPosition=function(){var e,n,r,i,s,f,c,h;h=this.options.position||(this.elem?this.options.elementPosition:this.options.globalPosition),e=l(h),e.length===0&&(e[0]="b");if(n=e[0],t.call(a,n)<0)throw"Must be one of ["+a+"]";if(e.length===1||(r=e[0],t.call(u,r)>=0)&&(i=e[1],t.call(o,i)<0)||(s=e[0],t.call(o,s)>=0)&&(f=e[1],t.call(u,f)<0))e[1]=(c=e[0],t.call(o,c)>=0)?"m":"l";return e.length===2&&(e[2]=e[1]),e},A.prototype.getStyle=function(e){var t;e||(e=this.options.style),e||(e="default"),t=c[e];if(!t)throw"Missing style: "+e;return t},A.prototype.updateClasses=function(){var t,n;return t=["base"],e.isArray(this.options.className)?t=t.concat(this.options.className):this.options.className&&t.push(this.options.className),n=this.getStyle(),t=e.map(t,function(e){return r+"-"+n.name+"-"+e}).join(" "),this.userContainer.attr("class",t)},A.prototype.run=function(t,n){var r,s,o,u,a;e.isPlainObject(n)?e.extend(this.options,n):e.type(n)==="string"&&(this.options.className=n);if(this.container&&!t){this.show(!1);return}if(!this.container&&!t)return;s={},e.isPlainObject(t)?s=t:s[i]=t;for(o in s){r=s[o],u=this.userFields[o];if(!u)continue;u==="text"&&(r=L(r),this.options.breakNewLines&&(r=r.replace(/\n/g,"<br/>"))),a=o===i?"":"="+o,b(this.userContainer,"[data-notify-"+u+a+"]").html(r)}this.updateClasses(),this.elem?this.setElementPosition():this.setGlobalPosition(),this.show(!0),this.options.autoHide&&(clearTimeout(this.autohideTimer),this.autohideTimer=setTimeout(this.show.bind(this,!1),this.options.autoHideDelay))},A.prototype.destroy=function(){this.wrapper.data(r,null),this.wrapper.remove()},e[n]=function(t,r,i){return t&&t.nodeName||t.jquery?e(t)[n](r,i):(i=r,r=t,new A(null,r,i)),t},e.fn[n]=function(t,n){return e(this).each(function(){var i=N(e(this)).data(r);i&&i.destroy();var s=new A(e(this),t,n)}),this},e.extend(e[n],{defaults:S,addStyle:m,removeStyle:v,pluginOptions:w,getStyle:d,insertCSS:g}),m("bootstrap",{html:"<div>\n<span data-notify-text></span>\n</div>",classes:{base:{"font-weight":"bold",padding:"8px 15px 8px 14px","text-shadow":"0 1px 0 rgba(255, 255, 255, 0.5)","background-color":"#fcf8e3",border:"1px solid #fbeed5","border-radius":"4px","white-space":"nowrap","padding-left":"25px","background-repeat":"no-repeat","background-position":"3px 7px"},error:{color:"#B94A48","background-color":"#F2DEDE","border-color":"#EED3D7","background-image":"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAtRJREFUeNqkVc1u00AQHq+dOD+0poIQfkIjalW0SEGqRMuRnHos3DjwAH0ArlyQeANOOSMeAA5VjyBxKBQhgSpVUKKQNGloFdw4cWw2jtfMOna6JOUArDTazXi/b3dm55socPqQhFka++aHBsI8GsopRJERNFlY88FCEk9Yiwf8RhgRyaHFQpPHCDmZG5oX2ui2yilkcTT1AcDsbYC1NMAyOi7zTX2Agx7A9luAl88BauiiQ/cJaZQfIpAlngDcvZZMrl8vFPK5+XktrWlx3/ehZ5r9+t6e+WVnp1pxnNIjgBe4/6dAysQc8dsmHwPcW9C0h3fW1hans1ltwJhy0GxK7XZbUlMp5Ww2eyan6+ft/f2FAqXGK4CvQk5HueFz7D6GOZtIrK+srupdx1GRBBqNBtzc2AiMr7nPplRdKhb1q6q6zjFhrklEFOUutoQ50xcX86ZlqaZpQrfbBdu2R6/G19zX6XSgh6RX5ubyHCM8nqSID6ICrGiZjGYYxojEsiw4PDwMSL5VKsC8Yf4VRYFzMzMaxwjlJSlCyAQ9l0CW44PBADzXhe7xMdi9HtTrdYjFYkDQL0cn4Xdq2/EAE+InCnvADTf2eah4Sx9vExQjkqXT6aAERICMewd/UAp/IeYANM2joxt+q5VI+ieq2i0Wg3l6DNzHwTERPgo1ko7XBXj3vdlsT2F+UuhIhYkp7u7CarkcrFOCtR3H5JiwbAIeImjT/YQKKBtGjRFCU5IUgFRe7fF4cCNVIPMYo3VKqxwjyNAXNepuopyqnld602qVsfRpEkkz+GFL1wPj6ySXBpJtWVa5xlhpcyhBNwpZHmtX8AGgfIExo0ZpzkWVTBGiXCSEaHh62/PoR0p/vHaczxXGnj4bSo+G78lELU80h1uogBwWLf5YlsPmgDEd4M236xjm+8nm4IuE/9u+/PH2JXZfbwz4zw1WbO+SQPpXfwG/BBgAhCNZiSb/pOQAAAAASUVORK5CYII=)"},success:{color:"#468847","background-color":"#DFF0D8","border-color":"#D6E9C6","background-image":"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAutJREFUeNq0lctPE0Ecx38zu/RFS1EryqtgJFA08YCiMZIAQQ4eRG8eDGdPJiYeTIwHTfwPiAcvXIwXLwoXPaDxkWgQ6islKlJLSQWLUraPLTv7Gme32zoF9KSTfLO7v53vZ3d/M7/fIth+IO6INt2jjoA7bjHCJoAlzCRw59YwHYjBnfMPqAKWQYKjGkfCJqAF0xwZjipQtA3MxeSG87VhOOYegVrUCy7UZM9S6TLIdAamySTclZdYhFhRHloGYg7mgZv1Zzztvgud7V1tbQ2twYA34LJmF4p5dXF1KTufnE+SxeJtuCZNsLDCQU0+RyKTF27Unw101l8e6hns3u0PBalORVVVkcaEKBJDgV3+cGM4tKKmI+ohlIGnygKX00rSBfszz/n2uXv81wd6+rt1orsZCHRdr1Imk2F2Kob3hutSxW8thsd8AXNaln9D7CTfA6O+0UgkMuwVvEFFUbbAcrkcTA8+AtOk8E6KiQiDmMFSDqZItAzEVQviRkdDdaFgPp8HSZKAEAL5Qh7Sq2lIJBJwv2scUqkUnKoZgNhcDKhKg5aH+1IkcouCAdFGAQsuWZYhOjwFHQ96oagWgRoUov1T9kRBEODAwxM2QtEUl+Wp+Ln9VRo6BcMw4ErHRYjH4/B26AlQoQQTRdHWwcd9AH57+UAXddvDD37DmrBBV34WfqiXPl61g+vr6xA9zsGeM9gOdsNXkgpEtTwVvwOklXLKm6+/p5ezwk4B+j6droBs2CsGa/gNs6RIxazl4Tc25mpTgw/apPR1LYlNRFAzgsOxkyXYLIM1V8NMwyAkJSctD1eGVKiq5wWjSPdjmeTkiKvVW4f2YPHWl3GAVq6ymcyCTgovM3FzyRiDe2TaKcEKsLpJvNHjZgPNqEtyi6mZIm4SRFyLMUsONSSdkPeFtY1n0mczoY3BHTLhwPRy9/lzcziCw9ACI+yql0VLzcGAZbYSM5CCSZg1/9oc/nn7+i8N9p/8An4JMADxhH+xHfuiKwAAAABJRU5ErkJggg==)"},info:{color:"#3A87AD","background-color":"#D9EDF7","border-color":"#BCE8F1","background-image":"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QYFAhkSsdes/QAAA8dJREFUOMvVlGtMW2UYx//POaWHXg6lLaW0ypAtw1UCgbniNOLcVOLmAjHZolOYlxmTGXVZdAnRfXQm+7SoU4mXaOaiZsEpC9FkiQs6Z6bdCnNYruM6KNBw6YWewzl9z+sHImEWv+vz7XmT95f/+3/+7wP814v+efDOV3/SoX3lHAA+6ODeUFfMfjOWMADgdk+eEKz0pF7aQdMAcOKLLjrcVMVX3xdWN29/GhYP7SvnP0cWfS8caSkfHZsPE9Fgnt02JNutQ0QYHB2dDz9/pKX8QjjuO9xUxd/66HdxTeCHZ3rojQObGQBcuNjfplkD3b19Y/6MrimSaKgSMmpGU5WevmE/swa6Oy73tQHA0Rdr2Mmv/6A1n9w9suQ7097Z9lM4FlTgTDrzZTu4StXVfpiI48rVcUDM5cmEksrFnHxfpTtU/3BFQzCQF/2bYVoNbH7zmItbSoMj40JSzmMyX5qDvriA7QdrIIpA+3cdsMpu0nXI8cV0MtKXCPZev+gCEM1S2NHPvWfP/hL+7FSr3+0p5RBEyhEN5JCKYr8XnASMT0xBNyzQGQeI8fjsGD39RMPk7se2bd5ZtTyoFYXftF6y37gx7NeUtJJOTFlAHDZLDuILU3j3+H5oOrD3yWbIztugaAzgnBKJuBLpGfQrS8wO4FZgV+c1IxaLgWVU0tMLEETCos4xMzEIv9cJXQcyagIwigDGwJgOAtHAwAhisQUjy0ORGERiELgG4iakkzo4MYAxcM5hAMi1WWG1yYCJIcMUaBkVRLdGeSU2995TLWzcUAzONJ7J6FBVBYIggMzmFbvdBV44Corg8vjhzC+EJEl8U1kJtgYrhCzgc/vvTwXKSib1paRFVRVORDAJAsw5FuTaJEhWM2SHB3mOAlhkNxwuLzeJsGwqWzf5TFNdKgtY5qHp6ZFf67Y/sAVadCaVY5YACDDb3Oi4NIjLnWMw2QthCBIsVhsUTU9tvXsjeq9+X1d75/KEs4LNOfcdf/+HthMnvwxOD0wmHaXr7ZItn2wuH2SnBzbZAbPJwpPx+VQuzcm7dgRCB57a1uBzUDRL4bfnI0RE0eaXd9W89mpjqHZnUI5Hh2l2dkZZUhOqpi2qSmpOmZ64Tuu9qlz/SEXo6MEHa3wOip46F1n7633eekV8ds8Wxjn37Wl63VVa+ej5oeEZ/82ZBETJjpJ1Rbij2D3Z/1trXUvLsblCK0XfOx0SX2kMsn9dX+d+7Kf6h8o4AIykuffjT8L20LU+w4AZd5VvEPY+XpWqLV327HR7DzXuDnD8r+ovkBehJ8i+y8YAAAAASUVORK5CYII=)"},warn:{color:"#C09853","background-color":"#FCF8E3","border-color":"#FBEED5","background-image":"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAABJlBMVEXr6eb/2oD/wi7/xjr/0mP/ykf/tQD/vBj/3o7/uQ//vyL/twebhgD/4pzX1K3z8e349vK6tHCilCWbiQymn0jGworr6dXQza3HxcKkn1vWvV/5uRfk4dXZ1bD18+/52YebiAmyr5S9mhCzrWq5t6ufjRH54aLs0oS+qD751XqPhAybhwXsujG3sm+Zk0PTwG6Shg+PhhObhwOPgQL4zV2nlyrf27uLfgCPhRHu7OmLgAafkyiWkD3l49ibiAfTs0C+lgCniwD4sgDJxqOilzDWowWFfAH08uebig6qpFHBvH/aw26FfQTQzsvy8OyEfz20r3jAvaKbhgG9q0nc2LbZxXanoUu/u5WSggCtp1anpJKdmFz/zlX/1nGJiYmuq5Dx7+sAAADoPUZSAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfdBgUBGhh4aah5AAAAlklEQVQY02NgoBIIE8EUcwn1FkIXM1Tj5dDUQhPU502Mi7XXQxGz5uVIjGOJUUUW81HnYEyMi2HVcUOICQZzMMYmxrEyMylJwgUt5BljWRLjmJm4pI1hYp5SQLGYxDgmLnZOVxuooClIDKgXKMbN5ggV1ACLJcaBxNgcoiGCBiZwdWxOETBDrTyEFey0jYJ4eHjMGWgEAIpRFRCUt08qAAAAAElFTkSuQmCC)"}}}),e(function(){g(h.css).attr("id","core-notify"),e(document).on("click","."+r+"-hidable",function(t){e(this).trigger("notify-hide")}),e(document).on("notify-hide","."+r+"-wrapper",function(t){var n=e(this).data(r);n&&n.show(!1)})})});



(function(m){"use strict";var h=h||{};h.init=function(){h.$body=m(document.body),h.$window=m(window),h.$header=m("#site-header");this.preLoader();this.newLetterPopup();this.stickyHeader();this.productSearchLabel();this.headerMenu();this.megaMenu();this.instanceSearch();this.topPromotion();this.mobileMenu();this.userMobileMenu();this.headerIE();this.headerRecentlyProducts();this.pageHeaderParallax();this.postEntryFormat();this.singleEntryFormat();this.blogLoadingAjax();this.relatedPost();this.blogLayout();this.lazyLoad();this.backToTop();this.catalogBanners();this.productsTopCarousel();this.collapseTheFilter();this.productCategoriesWidget();this.toolTipIcon();this.searchLayeredNav();this.productAttribute();this.shopView();this.addWishlist();this.addCompare();this.productQuickView();this.variationImagesCarousel();this.productTopCategories();this.filterAjax();this.catalogOpenCartMini();this.productsLoadInfinite();this.hoverProductTabs();this.productQuantity();this.productThumbnail();this.productVideo();this.productGallery();this.productDegree();this.singleProductCarousel();this.fbtProduct();this.fbtAddToCartAjax();this.fbtAddToWishlistAjax();this.instagramCarousel();this.productVatiation();this.productVariationVideo();this.addToCartAjax();this.stickyProductInfo();this.loginTabs();this.buyNow();this.wooTabToggle();this.productMultiVendors();this.recentlyFooterViewedProducts();this.cartQuantity();this.filterOnMobile();this.navigationMobile();this.footerDropdown();this.catalogSorting();this.historyBack();this.wcfm();m(document.body).on("martfury_get_products_ajax_success",function(){h.toolTipIcon();m(document.body).trigger("yith_wcwl_init")})};h.isIEVersion=function(){var e=window.navigator.userAgent;var t=false;var i=e.indexOf("MSIE ");if(i>0){t=parseInt(e.substring(i+5,e.indexOf(".",i)),10)}var a=e.indexOf("Trident/");if(a>0){var o=e.indexOf("rv:");t=parseInt(e.substring(o+3,e.indexOf(".",o)),10)}return t};h.headerIE=function(){var e=h.isIEVersion();if(!e){return}var t=h.$header.find(".header-extras"),i=t.find(".product-extra-search"),a=t.find(".extras-menu");var o=t.width(),r=a.outerWidth(true),n="60%";n=88-r/o*100+"%";i.width(n)};h.preLoader=function(){if(!h.$body.hasClass("mf-preloader")){return}if(h.$body.hasClass("elementor-editor-active")){m("#martfury-preloader").addClass("fade-in");return}NProgress.start();h.$window.on("load",function(){NProgress.done();m("#martfury-preloader").addClass("fade-in")})};h.stickyHeader=function(){if(!h.$body.hasClass("sticky-header")){return}var e=0,t=h.$header.find(".header-main"),i=t.outerHeight()-18,a=m("#top-promotion"),o=a.length>0?a.outerHeight(true):0,r=m("#topbar"),n=r.length>0?r.outerHeight(true):0,s=h.$header.outerHeight(true),l=h.$body.outerHeight(true);e=n+o+s;if(l<=e+h.$window.height()){return}h.$window.on("scroll",function(){if(a.length>0&&a.hasClass("invisible")){e=s+n}if(h.$window.scrollTop()>e){h.$header.addClass("minimized");h.$header.css({"padding-top":i})}else{h.$header.removeClass("minimized");h.$header.removeAttr("style")}})};h.topPromotion=function(){var t=m("#top-promotion");if(t.length<1){return}t.on("click",".close",function(e){e.preventDefault();t.slideUp().addClass("invisible")})};h.mobileMenu=function(){var t=m("#mf-els-modal-mobile").find(".primary-mobile-nav");if(!h.$body.hasClass("mobile-version")){t=m("#primary-mobile-nav")}h.$header.on("click","#mf-toggle-menu",function(e){e.preventDefault();h.$body.toggleClass("display-mobile-menu");t.find("li").removeClass("active")});t.find(".menu .menu-item-has-children > a").prepend('<span class="toggle-menu-children"><i class="icon-plus"></i> </span>');t.find("li.menu-item").removeClass("active");if(h.$body.hasClass("submenus-mobile-icon")){t.on("click",".toggle-menu-children",function(e){e.preventDefault();i(m(this))})}else{t.on("click",".menu-item-has-children > a",function(e){e.preventDefault();i(m(this))})}function i(e){e.closest("li").siblings().find("ul").slideUp();e.closest("li").siblings().removeClass("active");e.closest("li").siblings().find("li").removeClass("active");e.closest("li").children("ul").slideToggle();e.closest("li").toggleClass("active")}t.on("click",".close-canvas-mobile-panel",function(e){e.preventDefault();h.$body.removeClass("display-mobile-menu")});m("#mf-off-canvas-layer").on("click",function(e){e.preventDefault();h.$body.removeClass("display-mobile-menu mb-filter-active mf-filter-active");m("#navigation-mobile_cat").removeClass("active");m("#mf-navigation-mobile").find(".navigation-mobile_search").removeClass("active");m("#mf-navigation-mobile").find(".navigation-mobile_cart").removeClass("active")});h.$window.on("resize",function(){if(h.$window.width()>1200){h.$body.removeClass("display-mobile-menu")}})};h.navigationMobile=function(){var i=m("#mf-els-modal-mobile"),a=m("#mf-search-mobile"),t=m("#primary-mobile-nav"),o=m("#mf-category-mobile-nav"),r=m("#mf-cart-mobile"),n=i.find(".mf-els-item");m("#mf-navigation-mobile").on("click",".navigation-mobile_cat",function(e){e.preventDefault();var t=m(this);t.closest(".navigation-list").find(".navigation-mobile_search, .navigation-mobile_cart").removeClass("active");s(t,o)});m("#mf-navigation-mobile").on("click",".navigation-mobile_search",function(e){e.preventDefault();var t=m(this);t.closest(".navigation-list").find(".navigation-mobile_cat, .navigation-mobile_cart").removeClass("active");s(t,a)});h.$header.on("click","#site-header-category--mobile",function(e){e.preventDefault();n.removeClass("current");t.addClass("current");i.addClass("open");h.$body.addClass("navigation-mobile-active")});m("#mf-off-canvas-layer").on("click",function(e){e.preventDefault();h.$body.removeClass("navigation-mobile-active");i.removeClass("open");o.removeClass("current")});r.on("click",".close-cart-mobile",function(e){e.preventDefault();h.$body.removeClass("navigation-mobile-active");i.removeClass("open");r.removeClass("current");m("#mf-navigation-mobile").find(".navigation-mobile_cart").removeClass("active")});i.find(".primary-mobile-nav").on("click",".close-mobile-nav",function(e){e.preventDefault();h.$body.removeClass("navigation-mobile-active");i.removeClass("open");m("#navigation-mobile_cat").removeClass("active")});if(h.$body.hasClass("cart-panel-mobile")){m("#mf-navigation-mobile").on("click",".navigation-mobile_cart",function(e){e.preventDefault();var t=m(this);t.closest(".navigation-list").find(".navigation-mobile_search, .navigation-mobile_cat").removeClass("active");s(t,r)});h.$header.on("click","#icon-cart-contents",function(e){e.preventDefault();n.removeClass("current");r.addClass("current");i.addClass("open");m("#mf-navigation-mobile").find(".navigation-mobile_cart").addClass("active");h.$body.addClass("navigation-mobile-active")})}function s(e,t){i.removeClass("open");h.$body.removeClass("navigation-mobile-active");n.removeClass("current");t.addClass("current");if(e.hasClass("active")){i.removeClass("open");e.removeClass("active");h.$body.removeClass("navigation-mobile-active")}else{i.addClass("open");e.addClass("active");h.$body.addClass("navigation-mobile-active")}}};h.userMobileMenu=function(){var e=m("#primary-user-nav");if(e.length<1){return}h.$window.on("resize",function(){if(h.$window.width()<1200){h.$body.addClass("canvas-menu-mobile")}else{h.$body.removeClass("canvas-menu-mobile")}}).trigger("resize");h.$header.find(".menu-item-account.logined").on("click","a",function(e){if(h.$body.hasClass("canvas-menu-mobile")){e.preventDefault();h.$body.toggleClass("display-user-mobile")}});e.on("click",".close-canvas-mobile-panel",function(e){e.preventDefault();h.$body.removeClass("display-user-mobile")});m("#mf-off-canvas-layer").on("click",function(e){e.preventDefault();h.$body.removeClass("display-user-mobile")})};h.newLetterPopup=function(){var t=m("#mf-newsletter-popup"),i=parseInt(martfuryData.nl_days),e=parseInt(martfuryData.nl_seconds);if(i>0&&document.cookie.match(/^(.*;)?\s*mf_newletter\s*=\s*[^;]+(.*)?$/)){return}if(t.length<1){return}h.$window.on("load",function(){setTimeout(function(){t.addClass("open")},e*1e3)});t.on("click",".close-modal",function(e){e.preventDefault();a(i);t.removeClass("open");t.fadeOut()});t.on("click",".n-close",function(e){e.preventDefault();a(30);t.removeClass("open");t.fadeOut()});t.find(".mc4wp-form").submit(function(){a(i)});t.find(".formkit-form").submit(function(){a(i)});function a(e){var t=new Date,i=t.getTime();t.setTime(t.getTime()+e*24*60*60*1e3);document.cookie="mf_newletter="+i+";expires="+t.toGMTString()+";path=/"}};h.backToTop=function(){var e=m("#scroll-top");h.$window.scroll(function(){if(h.$window.scrollTop()>h.$window.height()){e.addClass("show-scroll")}else{e.removeClass("show-scroll")}});e.on("click",function(e){e.preventDefault();m("html, body").stop().animate({scrollTop:0},800)})};h.headerMenu=function(){if(h.$header.hasClass("header-department-bot")){return}if(h.$header.find(".products-cats-menu").length<1){return}var e=h.$header.find(".products-cats-menu").position().left;if(martfuryData.direction==="true"){var t=h.$header.find(".header-logo").width(),i=h.$header.find(".products-cats-menu").width(),a=t-e-i+15;h.$header.find(".toggle-product-cats").css({right:a*-1})}else{h.$header.find(".toggle-product-cats").css({left:e*-1})}};h.megaMenu=function(){h.$header.find(".primary-nav .menu-item.is-mega-menu").each(function(){var e=m(this).children(".dropdown-submenu").width(),t=m(this).closest(".col-header-menu").width(),i=m(this).outerWidth(),a=m(this).position().left+i/2,o=t-m(this).position().left+i/2,r=a-e/2,n=o-e/2;if(n<0){m(this).removeClass("has-width").addClass("align-right")}else if(r<0){m(this).removeClass("has-width").addClass("align-left")}})};h.productSearchLabel=function(){h.$header.on("change","#header-search-product-cat",function(){var e=m(this).find("option:selected").text().trim();h.$header.find(".product-cat-label").html(e)});h.$header.find(".products-search").submit(function(){if(m(this).find("#header-search-product-cat").val()=="0"){m(this).find("#header-search-product-cat").removeAttr("name")}})};h.postEntryFormat=function(){if(!h.$body.hasClass("mf-blog-page")){return}var e=m(".blog-wapper").find(".entry-format");e.find(".slides").not(".slick-initialized").slick({rtl:martfuryData.direction==="true",slidesToShow:1,slidesToScroll:1,infinite:false,prevArrow:'<span class="ion-ios-arrow-left slick-prev-arrow"></span>',nextArrow:'<span class="ion-ios-arrow-right slick-next-arrow"></span>'});m(".blog-wapper").find(".entry-format").fitVids({customSelector:"iframe, video"})};h.toolTipIcon=function(){m(".catalog-sidebar").find("[data-rel=tooltip]").tooltip({classes:{"ui-tooltip":"martfury-tooltip"},tooltipClass:"martfury-tooltip",position:{my:"center bottom",at:"center top-13"},create:function(){m(".ui-helper-hidden-accessible").remove()}});e();m(document).on("yith_wcwl_fragments_loaded",function(){e()});m(document.body).on("removed_from_wishlist",function(){e()});m(document.body).on("added_to_wishlist",function(){e()});function e(){m(".mf-product-thumbnail, .mf-single-product:not(.mf-product-layout-3)").find("[data-rel=tooltip]").tooltip({classes:{"ui-tooltip":"martfury-tooltip"},tooltipClass:"martfury-tooltip",position:{my:"center bottom",at:"center top-13"},create:function(){m(".ui-helper-hidden-accessible").remove()}})}m(".mf-product-thumbnail, .mf-single-product:not(.mf-product-layout-3)").find(".compare").tooltip({content:function(){return m(this).html()},classes:{"ui-tooltip":"martfury-tooltip"},tooltipClass:"martfury-tooltip",position:{my:"center bottom",at:"center top-13"},create:function(){m(".ui-helper-hidden-accessible").remove()}});m(document.body).on("added_to_cart",function(){m(".mf-product-thumbnail").find(".added_to_cart").tooltip({offsetTop:-15,content:function(){return m(this).html()},classes:{"ui-tooltip":"martfury-tooltip"},tooltipClass:"martfury-tooltip",position:{my:"center bottom",at:"center top-13"},create:function(){m(".ui-helper-hidden-accessible").remove()}})})};h.variationImagesCarousel=function(){var e=m(".woocommerce ul.products li.product").find(".mf-attr-swatches-slick");e.not(".slick-initialized").slick({rtl:martfuryData.direction==="true",slidesToShow:3,slidesToScroll:3,infinite:false,prevArrow:'<span class="icon-chevron-left slick-prev-arrow"></span>',nextArrow:'<span class="icon-chevron-right  slick-next-arrow"></span>'})};h.addWishlist=function(){h.$body.on("click","a.add_to_wishlist",function(){m(this).addClass("loading")});h.$body.on("added_to_wishlist removed_from_wishlist cart_page_refreshed",function(){var e=martfuryData.wc_ajax_url.toString().replace("%%endpoint%%","update_wishlist_count");m.post(e,function(e){h.$header.find(".menu-item-wishlist .mini-item-counter").html(e)})});m(document).on("yith_wcwl_fragments_loaded",function(){if(!h.$body.hasClass("single-product")){return}if(h.$body.find("#mf-product-fbt").length<0){return}h.$body.find("#mf-product-fbt").find("a.add_to_wishlist").addClass("fbt-wishlist")});var o=0;h.$body.on("added_to_wishlist",function(e,t){e.preventDefault();m("ul.products li.product .yith-wcwl-add-button a").removeClass("loading");if(h.$body.hasClass("single-product")){if(t.hasClass("fbt-wishlist")){return}}var i=parseInt(t.data("product-id"));if(i==o){return}o=i;var a=t.data("product-title");h.addedToWishlistNotice("",a,false,"success")})};h.addedToWishlistNotice=function(e,t,i,a,o){if(typeof martfuryData.added_to_wishlist_notice==="undefined"||!m.fn.notify){return}if(o){t+=" "+martfuryData.added_to_wishlist_notice.added_to_wishlist_texts}else{t+=" "+martfuryData.added_to_wishlist_notice.added_to_wishlist_text}e+='<a href="'+martfuryData.added_to_wishlist_notice.wishlist_view_link+'" class="btn-button">'+martfuryData.added_to_wishlist_notice.wishlist_view_text+"</a>";if(i){e='<div class="message-box">'+e+"</div>"}m.notify.addStyle("martfury",{html:'<div><i class="icon-checkmark-circle message-icon"></i><span data-notify-text/>'+e+'<span class="close icon-cross2"></span> </div>'});m.notify(t,{autoHideDelay:martfuryData.added_to_wishlist_notice.wishlist_notice_auto_hide,className:a,style:"martfury",showAnimation:"fadeIn",hideAnimation:"fadeOut"})};h.addCompare=function(){h.$body.on("click","a.compare:not(.added)",function(e){e.preventDefault();var t=m(this);t.addClass("loading");t.closest(".product-inner").find(".compare:not(.loading)").trigger("click");var i=false;if(m(this).hasClass("added")){i=true}if(i===false){var a=h.$header.find("#mini-compare-counter").html();a=parseInt(a,10)+1;setTimeout(function(){h.$header.find("#mini-compare-counter").html(a);t.removeClass("loading")},2e3)}else{t.removeClass("loading")}});m(document).find(".compare-list").on("click",".remove a",function(e){e.preventDefault();var t=m("#mini-compare-counter",window.parent.document).html();t=parseInt(t,10)-1;if(t<0){t=0}m("#mini-compare-counter",window.parent.document).html(t)});m(document).find("#yith-woocompare").on("click",".yith_woocompare_clear",function(e){e.preventDefault();m("#mini-compare-counter",window.parent.document).html(0)});m(".yith-woocompare-widget").on("click","li a.remove",function(e){e.preventDefault();var t=$header.find("#mini-compare-counter").html();t=parseInt(t,10)-1;if(t<0){t=0}setTimeout(function(){$header.find("#mini-compare-counter").html(t)},2e3)});m(".yith-woocompare-widget").on("click","a.clear-all",function(e){e.preventDefault();setTimeout(function(){$header.find("#mini-compare-counter").html("0")},2e3)})};h.productQuantity=function(){h.$body.on("click",".quantity .increase, .quantity .decrease",function(e){e.preventDefault();var t=m(this),i=t.siblings(".qty"),a=0,o=parseFloat(i.attr("min")),r=parseFloat(i.attr("max")),n=parseFloat(i.attr("step"));if(i.val()!==""){a=parseFloat(i.val())}else if(i.attr("placeholder")!==""){a=parseFloat(i.attr("placeholder"))}o=o?o:0;r=r?r:a+1;if(t.hasClass("decrease")&&a>o){i.val(a-n);i.trigger("change")}if(t.hasClass("increase")&&a<r){i.val(a+n);i.trigger("change")}})};h.productThumbnail=function(){var i=m(".woocommerce-product-gallery");var a=i.find(".woocommerce-product-gallery__image.mf-product-video");var o=i.find(".flex-control-thumbs");h.$window.on("load",function(){m(".woocommerce-product-gallery").find(".woocommerce-product-gallery__image").each(function(){if(m(this).find("img").hasClass("lazy")){var e=m(this).find("img").data("original");m(this).find("img").attr("src",e)}})});i.imagesLoaded(function(){setTimeout(function(){if(a.length>0){m(".woocommerce-product-gallery").addClass("has-video");if(m(".woocommerce-product-gallery").hasClass("video-first")){o.find("li").first().append('<i class="i-video ion-play"></i>')}else{o.find("li").last().append('<i class="i-video ion-play"></i>')}}if(h.$body.hasClass("mobile-version")){return}if(o.length<1){return}var e=i.data("columns");var t=o.find("li").length;if(t>e){if(!m(".mf-single-product").hasClass("mf-product-sidebar")){o.not(".slick-initialized").slick({slidesToShow:e,slidesToScroll:1,focusOnSelect:true,vertical:true,infinite:false,prevArrow:'<span class="icon-chevron-up slick-prev-arrow"></span>',nextArrow:'<span class="icon-chevron-down slick-next-arrow"></span>',responsive:[{breakpoint:768,settings:{slidesToShow:4}},{breakpoint:480,settings:{slidesToShow:3}}]});o.find("li.slick-current").trigger("click")}else{o.not(".slick-initialized").slick({slidesToShow:e,focusOnSelect:true,slidesToScroll:1,infinite:false,prevArrow:'<span class="icon-chevron-left slick-prev-arrow"></span>',nextArrow:'<span class="icon-chevron-right slick-next-arrow"></span>'})}}else{o.addClass("no-slick")}},100)})};h.productVideo=function(){var o=m(".woocommerce-product-gallery");var e=o.find(".woocommerce-product-gallery__image.mf-product-video");var t=o.find(".flex-control-thumbs");if(e.length<1){return}var r=false,n=false;t.on("click","li",function(){var e=o.find(".mf-product-video");var t=m(this).siblings().length;n=true;if(m(this).index()==t){n=false;r=false}if(!r&&n){var i=e.find("iframe"),a=e.find("video.wp-video-shortcode");if(i.length>0){i.attr("src",i.attr("src"))}if(a.length>0){a[0].pause()}r=true}return false});t.find("li").on("click",".i-video",function(e){e.preventDefault();m(this).closest("li").find("img").trigger("click")})};h.productGallery=function(){var e=m(".woocommerce-product-gallery");if(typeof martfuryData.product_gallery==="undefined"||martfuryData.product_gallery!="1"){e.on("click",".woocommerce-product-gallery__image",function(e){e.preventDefault()});return}if(!e.length){return}e.find(".woocommerce-product-gallery__image").on("mouseenter",function(){m(this).closest(".woocommerce-product-gallery").find(".ms-image-view").removeClass("hide");m(this).closest(".woocommerce-product-gallery").find(".ms-image-zoom").addClass("hide")});e.find(".woocommerce-product-gallery__image").on("mouseleave",function(){m(this).closest(".woocommerce-product-gallery").find(".ms-image-view").addClass("hide");m(this).closest(".woocommerce-product-gallery").find(".ms-image-zoom").removeClass("hide")});e.on("click",".woocommerce-product-gallery__image",function(e){e.preventDefault();if(m(this).hasClass("mf-product-video")){return false}var t=[];var i=m(this).closest(".woocommerce-product-gallery").find(".woocommerce-product-gallery__wrapper").children(".woocommerce-product-gallery__image");i.each(function(){var e=m(this);if(e.hasClass("mf-product-video")){t.push({html:e.find(".mf-video-content").html(),w:1e3,h:1e3})}else{t.push({src:e.children("a").attr("href"),w:e.find("img").attr("data-large_image_width"),h:e.find("img").attr("data-large_image_height")})}});var a=i.index(m(this)),o={index:a,bgOpacity:.85,showHideOpacity:true,mainClass:"pswp--minimal-dark",barsSize:{top:0,bottom:0},captionEl:false,fullscreenEl:false,shareEl:false,tapToClose:true,tapToToggleControls:false};var r=new PhotoSwipe(document.getElementById("pswp"),window.PhotoSwipeUI_Default,t,o);r.init();r.listen("close",function(){m(".mf-video-wrapper").find("iframe").each(function(){m(this).attr("src",m(this).attr("src"))});m(".mf-video-wrapper").find("video").each(function(){m(this)[0].pause()})})})};h.productDegree=function(){if(typeof martfuryData.product_degree==="undefined"){return}var e=m(".woocommerce-product-gallery .product-degree-images");if(e.length<1){return}if(martfuryData.product_degree.length<1){return}var o="",r=m("#product-degree-pswp");e.on("click",function(e){e.preventDefault();h.openModal(r);if(r.hasClass("init")){return}r.addClass("init");var t=martfuryData.product_degree.split(","),i=[];for(var a=0;a<t.length;a++){i.push(t[a])}o=r.find(".mf-product-gallery-degree").ThreeSixty({totalFrames:i.length,endFrame:i.length,currentFrame:1,imgList:r.find(".product-degree-images"),progress:".mf-gallery-degree-spinner",imgArray:i,height:500,width:830,navigation:true});r.find(".product-degree-images").imagesLoaded(function(){r.find(".nav_bar").removeClass("hide")});r.on("click",".degree-pswp-close, .degree-pswp-bg",function(){o.stop();m(this).removeClass("play")})});r.on("click",".degree-pswp-close, .degree-pswp-bg",function(){h.closeModal(r)})};h.cartQuantity=function(){if(!h.$body.hasClass("woocommerce-cart")){return}if(martfuryData.quantity_ajax!="1"){return}h.$body.on("click",".quantity .increase, .quantity .decrease",function(e){e.preventDefault();h.$body.find('button[name="update_cart"]').trigger("click")});h.$body.on("keyup",".quantity .qty",function(e){e.preventDefault();h.$body.find('button[name="update_cart"]').trigger("click")})};h.openModal=function(e){e.fadeIn();e.addClass("open")};h.closeModal=function(e){e.fadeOut(function(){m(this).removeClass("open")})};h.hoverProductTabs=function(){var e,t,i,a,o,r=m(".mf-single-product .woocommerce-tabs").find("ul.wc-tabs");if(r.length<1){return}r.append('<li id="tl-wc-tab" class="tl-wc-tab"></li>');var n=m("#tl-wc-tab");o=r.children("li.active").outerWidth();n.width(o).css("left",r.children("li.active").position().left).data("origLeft",n.position().left).data("origWidth",n.width());a=n.data("origWidth");r.children("li").on("mouseenter",function(){e=m(this);i=e.outerWidth();t=e.position().left;n.stop().animate({left:t,width:i})});r.children("li").on("mouseleave",function(){n.stop().animate({left:n.data("origLeft"),width:a})});r.on("click","li",function(){e=m(this);a=i=e.outerWidth();t=e.position().left;n.stop().animate({left:t,width:i});n.data("origLeft",t).data("origWidth",i)})};h.searchLayeredNav=function(){var e=m(".mf-widget-layered-nav");if(e.length<1){return}e.find(".mf-widget-layered-nav-scroll").each(function(){var e=m(this).data("height");if(m(this).height()>parseInt(e)){m(this).slimScroll({height:e,railVisible:true,alwaysVisible:true,size:"6px",color:"#666",railColor:"#ccc",railOpacity:1})}});e.on("keyup",".mf-input-search-nav",function(e){var t=false;if(typeof e.which=="undefined"){t=true}else if(typeof e.which=="number"&&e.which>0){t=!e.ctrlKey&&!e.metaKey&&!e.altKey}if(!t){return}var i=m(this).val();if(typeof i==="number"){i=""+i}var a=i.toUpperCase(),o=m(this).closest(".mf-widget-layered-nav"),r=o.find(".woocommerce-widget-layered-nav-list"),n=r.children(".wc-layered-nav-term");n.each(function(){var e=m(this).find("a").data("title");if(typeof e==="number"){e=""+e}e=e.toUpperCase();if(e.indexOf(a)>-1){m(this).show()}else{m(this).hide()}});var s=r.data("height");if(r.height()<parseInt(s)){o.addClass("no-scroll")}else{o.removeClass("no-scroll")}})};h.instanceSearch=function(){if(martfuryData.ajax_search!="1"){return}var c=null,d={},i=h.$body.find("form.products-search");i.on("keyup",".search-field",function(e){var t=false;if(typeof e.which=="undefined"){t=true}else if(typeof e.which=="number"&&e.which>0){t=!e.ctrlKey&&!e.metaKey&&!e.altKey}if(!t){return}if(c){c.abort()}var i=m(this).closest(".products-search"),a=i.find("input.search-field");if(a.val().length<2){i.removeClass("searching searched actived found-products found-no-product invalid-length")}o(i)}).on("change","#header-search-product-cat",function(){if(c){c.abort()}var e=m(this).closest(".products-search");o(e)}).on("focusout",".search-field",function(){var e=m(this).closest(".products-search"),t=e.find("input.search-field");if(t.val().length<2){e.removeClass("searching searched actived found-products found-no-product invalid-length")}});m(document).on("click",function(e){if(!i.hasClass("actived")){return}var t=e.target;if(m(t).closest(".products-search").length<1){i.removeClass("searching searched actived found-products found-no-product invalid-length")}});function o(i){var e=i.find("input.search-field"),t=e.val(),a=0,o=i.find(".search-results");if(i.find("#header-search-product-cat").length>0){a=i.find("#header-search-product-cat").val()}if(t.trim().length<2){i.removeClass("searching found-products found-no-product").addClass("invalid-length");return}i.removeClass("found-products found-no-product").addClass("searching");var r=t+a;if(r in d){var n=d[r];i.removeClass("searching");i.addClass("found-products");o.html(n.products);m(document.body).trigger("martfury_ajax_search_request_success",[o]);i.removeClass("invalid-length");i.addClass("searched actived")}else{var s={term:t,nonce:martfuryData.nonce,cat:a,search_type:martfuryData.search_content_type},l=martfuryData.wc_ajax_url.toString().replace("%%endpoint%%","martfury_search_products");c=m.post(l,s,function(e){var t=e.data;f(i,o,t,r)})}}function f(e,t,i,a){e.removeClass("searching");e.addClass("found-products");t.html(i);e.removeClass("invalid-length");m(document.body).trigger("martfury_ajax_search_request_success",[t]);d[a]={found:true,products:i};e.addClass("searched actived")}};h.singleEntryFormat=function(){if(!h.$body.hasClass("single-post")){return}var e=m("#mf-single-entry-format");e.find(".slides").not(".slick-initialized").slick({rtl:martfuryData.direction==="true",slidesToShow:1,slidesToScroll:1,infinite:false,prevArrow:'<span class="ion-ios-arrow-left slick-prev-arrow"></span>',nextArrow:'<span class="ion-ios-arrow-right slick-next-arrow"></span>'});e.fitVids({customSelector:"iframe, video"})};h.blogLayout=function(){if(!h.$body.hasClass("blog-layout-masonry")){return}h.$body.imagesLoaded(function(){h.$body.find(".mf-post-list").isotope({itemSelector:".blog-wapper",layoutMode:"masonry"})})};h.relatedPost=function(){if(!h.$body.hasClass("single-post")){return}var e=m("#mf-related-posts").find(".related-posts-list");e.not(".slick-initialized").slick({rtl:martfuryData.direction==="true",slidesToShow:3,slidesToScroll:1,dots:true,infinite:false,arrows:false,responsive:[{breakpoint:768,settings:{slidesToShow:2}},{breakpoint:480,settings:{slidesToShow:1}}]});e.on("afterChange",function(){h.lazyLoad()})};h.blogLoadingAjax=function(){h.$window.on("scroll",function(){if(h.$body.find("#mf-infinite-loading").is(":in-viewport")){h.$body.find("#mf-infinite-loading").trigger("click")}}).trigger("scroll");h.$body.on("click","#mf-infinite-loading",function(e){e.preventDefault();if(m(this).data("requestRunning")){return}m(this).data("requestRunning",true);var a=h.$body.find(".mf-post-list"),o=m(this).parents(".navigation");m.get(m(this).closest(".page-numbers").attr("href"),function(e){var t=m(e).find(".mf-post-list").children(".blog-wapper"),i=m(e).find(".navigation").html();o.html(i);a.append(t);o.find("a").data("requestRunning",false);h.lazyLoad();h.postEntryFormat()})})};h.pageHeaderParallax=function(){if(!m(".page-header").hasClass("page-header-sliders")){return}var e=m(".page-header-sliders"),t=e.data("speed"),i=e.data("auto");e.find("ul").not(".slick-initialized").slick({rtl:martfuryData.direction==="true",slidesToShow:1,slidesToScroll:1,infinite:true,autoplaySpeed:t,autoplay:i,arrows:false});e.on("click",".slick-prev-arrow",function(){e.find("ul").slick("slickPrev")});e.on("click",".slick-next-arrow",function(){e.find("ul").slick("slickNext")})};h.lazyLoad=function(){h.$body.find("img.lazy").lazyload({load:function(){m(this).removeClass("lazy")}});h.$window.on("load",function(){m(".mf-products-list-carousel").find("img.lazy").lazyload({load:function(){m(this).removeClass("lazy")}}).trigger("appear")})};h.recentlyFooterViewedProducts=function(){e();t();function e(){var e=m("#footer-recently-viewed");if(e.length<1){return}if(!e.hasClass("load-ajax")){h.recentlyViewedCarousel(e);h.lazyLoad()}else{o(e)}}function t(){var e=m("#footer-history-products"),t=true,i=m("#footer-bot-recently-viewed"),a=m("#mf-off-canvas-layer");if(e.length<1){return}e.on("click",".recently-title",function(e){e.preventDefault();i.addClass("load-ajax");a.toggleClass("opened");i.slideToggle(400,function(){if(t){o(i);t=false}});m(this).toggleClass("active")});a.on("click",function(){a.removeClass("opened");e.find(".recently-title").removeClass("active");i.slideUp(400)})}function o(t){if(t.length<1){return}if(!t.hasClass("load-ajax")){return}if(t.hasClass("loaded")){return}var e={nonce:martfuryData.nonce},i=martfuryData.wc_ajax_url.toString().replace("%%endpoint%%","martfury_footer_recently_viewed");m.post(i,e,function(e){t.html(e.data);if(t.find(".product-list").hasClass("no-products")){t.addClass("no-products")}h.lazyLoad();h.recentlyViewedCarousel(t);t.addClass("loaded")})}};h.headerRecentlyProducts=function(){var e=m("#header-recently-viewed");if(e.length<1){return}if(!e.hasClass("load-ajax")){h.recentlyViewedCarousel(e);h.lazyLoad()}else{t(e)}function t(t){var e={nonce:martfuryData.nonce},i=martfuryData.wc_ajax_url.toString().replace("%%endpoint%%","martfury_header_recently_viewed");m.post(i,e,function(e){t.html(e.data);if(t.find(".product-list").hasClass("no-products")){t.addClass("no-products")}h.lazyLoad();h.recentlyViewedCarousel(t)})}};h.recentlyViewedCarousel=function(e){var t=e.find(".product-list");if(t.hasClass("no-products")){return}var i=parseInt(e.data("columns"));t.not(".slick-initialized").slick({rtl:martfuryData.direction==="true",slidesToShow:i,slidesToScroll:i,arrows:true,infinite:false,dots:true,prevArrow:'<span class="ion-ios-arrow-left slick-prev-arrow"></span>',nextArrow:'<span class="ion-ios-arrow-right slick-next-arrow"></span>',responsive:[{breakpoint:1500,settings:{slidesToShow:parseInt(i)>8?8:i,slidesToScroll:parseInt(i)>8?8:i}},{breakpoint:1200,settings:{slidesToShow:6,slidesToScroll:6}},{breakpoint:800,settings:{slidesToShow:4,slidesToScroll:4}},{breakpoint:600,settings:{slidesToShow:3,slidesToScroll:3}}]});t.on("afterChange",function(){h.lazyLoad()})};h.catalogBanners=function(){var e=m("#mf-catalog-banners");if(e.length<=0){return}var t=e.data("columns"),i=e.data("autoplay"),a=false,o=1e3;if(i>0){a=true;o=i;i=true}else{i=false}e.not(".slick-initialized").slick({rtl:martfuryData.direction==="true",slidesToShow:1,slidesToScroll:1,autoplaySpeed:o,autoplay:i,infinite:a,prevArrow:'<span class="icon-chevron-left slick-prev-arrow"></span>',nextArrow:'<span class="icon-chevron-right slick-next-arrow"></span>'});e.on("afterChange",function(){h.lazyLoad()})};h.productsTopCarousel=function(){var e=m(".mf-products-top-carousel");if(e.length<=0){return}e.each(function(){var e=m(this).data("columns"),t=m(this).data("autoplay"),i=false,a=1e3;if(t>0){i=true;a=t;t=true}else{t=false}m(this).find("ul.products").not(".slick-initialized").slick({rtl:martfuryData.direction==="true",slidesToShow:e,slidesToScroll:e,autoplaySpeed:a,autoplay:t,infinite:i,dots:true,prevArrow:m(this).find(".slick-prev-arrow"),nextArrow:m(this).find(".slick-next-arrow"),responsive:[{breakpoint:992,settings:{slidesToShow:parseInt(e)>3?3:e,slidesToScroll:parseInt(e)>3?3:e}},{breakpoint:767,settings:{slidesToShow:2,slidesToScroll:2}}]});m(this).on("afterChange",function(){h.lazyLoad()})})};h.collapseTheFilter=function(){if(typeof martfuryData.collapse_catalog_filter==="undefined"){return}var e=m(".catalog-sidebar .widget");e.each(function(){var e=m(this);if(e.length<=0){return}if(martfuryData.collapse_catalog_filter.status=="close"){e.find(".widget-title").siblings().addClass("closed");e.find(".widget-title").addClass("non-active")}else{e.find(".widget-title").addClass("active")}e.on("click",".widget-title",function(e){e.preventDefault();m(this).siblings().slideToggle();m(this).siblings().toggleClass("opened");m(this).toggleClass("active no-active")});h.searchLayeredNav()})};h.wooTabToggle=function(){if(typeof martfuryData.product_collapse_tab==="undefined"){return}var e=m(".mf-woo-tabs .mf-Tabs-panel");e.each(function(){var e=m(this),t=e.attr("id"),i=m("#"+t).find(".tab-title");if(martfuryData.product_collapse_tab.status=="close"){i.siblings(".tab-content-wrapper").addClass("closed")}else{i.addClass("active")}i.on("click",function(e){e.preventDefault();m(this).siblings(".tab-content-wrapper").slideToggle().toggleClass("opened");m(this).toggleClass("active")})})};h.productCategoriesWidget=function(){var e=m(".mf_widget_product_categories, .wcv.widget_product_categories");if(e.length<=0){return}e.find("ul.children").closest("li").prepend('<span class="cat-menu-close"><i class="icon-chevron-down"></i> </span>');e.find("li.current-cat-parent, li.current-cat, li.current-cat-ancestor").addClass("opened").children(".children").show();e.on("click",".cat-menu-close",function(e){e.preventDefault();m(this).closest("li").children(".children").slideToggle();m(this).closest("li").toggleClass("opened")})};h.productTopCategories=function(){var e=m(".mf-catalog-top-categories");if(e.length<=0){return}e.on("click",".cat-menu-close",function(e){e.preventDefault();m(this).closest("li").children(".sub-categories").slideToggle();m(this).closest("li").toggleClass("opened")})};h.productAttribute=function(){var r="",n="";h.$body.on("mouseover",".mf-swatch-image",function(e){e.preventDefault();var t=m(this).closest("li.product").find(".mf-product-thumbnail"),i=t.find("img");r=i.attr("src");n=i.attr("srcset");var a=m(this).find("img").attr("src"),o=m(this).find("img").attr("srcset");i.attr("src",a);if(o){i.attr("srcset",o)}}).on("mouseout",".mf-swatch-image",function(e){e.preventDefault();var t=m(this).closest("li.product").find(".mf-product-thumbnail"),i=t.find("img");if(r){i.attr("src",r)}if(n){i.attr("srcset",n)}});h.$body.on("mouseover",".mf-attr-swatches",function(e){e.preventDefault();var t=m(this).closest("li.product").find(".mf-product-thumbnail");t.addClass("hover-swatch")}).on("mouseout",".mf-attr-swatches",function(e){e.preventDefault();var t=m(this).closest("li.product").find(".mf-product-thumbnail");t.removeClass("hover-swatch")})};h.shopView=function(){h.$body.on("click",".mf-shop-view",function(e){e.preventDefault();var t=m(this),i=t.data("view");if(t.hasClass("current")){return}h.$body.find(".mf-shop-view").removeClass("current");t.addClass("current");h.$body.removeClass("shop-view-grid shop-view-list").addClass("shop-view-"+i);document.cookie="shop_view="+i+";domain="+window.location.host+";path=/";m(document.body).trigger("martfury_shop_view_after_change")});m(document.body).on("martfury_shop_view_after_change",function(){h.lazyLoad()})};h.singleProductCarousel=function(){var e=h.$body.find(".up-sells ul.products"),t=h.$body.find(".related.products ul.products");if(e.length<=0&&t.length<=0){return}var i=e.closest(".up-sells").data("columns");e.not(".slick-initialized").slick({rtl:martfuryData.direction==="true",slidesToShow:parseInt(i),slidesToScroll:parseInt(i),arrows:true,dots:true,infinite:false,prevArrow:'<span class="icon-chevron-left slick-prev-arrow"></span>',nextArrow:'<span class="icon-chevron-right slick-next-arrow"></span>',responsive:[{breakpoint:1366,settings:{slidesToShow:parseInt(i)>5?5:parseInt(i),slidesToScroll:parseInt(i)>5?5:parseInt(i)}},{breakpoint:1200,settings:{slidesToShow:parseInt(i)>4?4:parseInt(i),slidesToScroll:parseInt(i)>4?4:parseInt(i)}},{breakpoint:992,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:767,settings:{slidesToShow:2,slidesToScroll:2}}]});e.on("afterChange",function(){h.lazyLoad()});var a=t.closest(".related").data("columns");t.not(".slick-initialized").slick({rtl:martfuryData.direction==="true",slidesToShow:parseInt(a),slidesToScroll:parseInt(a),arrows:true,dots:true,infinite:false,prevArrow:'<span class="icon-chevron-left slick-prev-arrow"></span>',nextArrow:'<span class="icon-chevron-right slick-next-arrow"></span>',responsive:[{breakpoint:1366,settings:{slidesToShow:parseInt(a)>5?5:parseInt(a),slidesToScroll:parseInt(a)>5?5:parseInt(a)}},{breakpoint:1200,settings:{slidesToShow:parseInt(a)>4?4:parseInt(a),slidesToScroll:parseInt(a)>4?4:parseInt(a)}},{breakpoint:992,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:767,settings:{slidesToShow:2,slidesToScroll:2}}]});t.on("afterChange",function(){h.lazyLoad()})};h.fbtProduct=function(){if(!h.$body.hasClass("single-product")){return}var o=m("#mf-product-fbt");if(o.length<=0){return}var r=o.find(".mf-total-price .woocommerce-Price-amount"),n=o.find(".mf_add_to_cart_button"),s=parseFloat(o.find("#mf-data_price").data("price")),l=martfuryData.currency_param.currency_symbol,c=martfuryData.currency_param.thousand_sep,d=martfuryData.currency_param.decimal_sep,f=martfuryData.currency_param.price_decimals,u=martfuryData.currency_param.currency_pos;o.find(".products-list").on("click","a",function(e){e.preventDefault();var t=m(this).data("id");m(this).closest("li").toggleClass("uncheck");var i=parseFloat(m(this).closest("li").find(".s-price").data("price"));if(m(this).closest("li").hasClass("uncheck")){o.find("#fbt-product-"+t).addClass("un-active");s-=i}else{o.find("#fbt-product-"+t).removeClass("un-active");s+=i}var a="0";o.find(".products-list li").each(function(){if(!m(this).hasClass("uncheck")){a+=","+m(this).find("a").data("id")}});n.attr("value",a);r.html(p(s))});function p(e){var t=e;if(parseInt(f)>0){e=e.toFixed(f)+"";var i=e.split(".");var a=i[0],o=i.length>1?d+i[1]:"";var r=/(\d+)(\d{3})/;while(r.test(a)){a=a.replace(r,"$1"+c+"$2")}t=a+o}switch(u){case"left":return l+t;break;case"right":return t+l;break;case"left_space":return l+" "+t;break;case"right_space":return t+" "+l;break}}};h.fbtAddToCartAjax=function(){if(!h.$body.hasClass("single-product")){return}var e=m("#mf-product-fbt");if(e.length<=0){return}e.on("click",".mf_add_to_cart_button.ajax_add_to_cart",function(e){e.preventDefault();var t=m(this);t.addClass("loading");var i=window.location.href,a="",o=0,r=m("#mf-product-fbt");r.find(".products-list li").each(function(){if(!m(this).hasClass("uncheck")){if(o>0){a+=","}a+=" "+m(this).find("a").data("title");o++}});var n={nonce:martfuryData.nonce,product_ids:t.attr("value")},s=martfuryData.wc_ajax_url.toString().replace("%%endpoint%%","martfury_fbt_add_to_cart");m.post(s,n,function(e){if(typeof wc_add_to_cart_params!=="undefined"){if(wc_add_to_cart_params.cart_redirect_after_add==="yes"){window.location=wc_add_to_cart_params.cart_url;return}}m(document.body).trigger("updated_wc_div");m(document.body).on("wc_fragments_refreshed",function(){t.removeClass("loading")});h.addedToCartNotice("",a,false,"success",true)})})};h.fbtAddToWishlistAjax=function(){if(!h.$body.hasClass("single-product")){return}var o=m("#mf-product-fbt"),r=0;if(o.length<=0){return}var n=s();if(n.length==0){o.find(".btn-view-to-wishlist").addClass("showed");o.find(".btn-add-to-wishlist").addClass("hided")}o.on("click",".btn-add-to-wishlist",function(e){e.preventDefault();var t=m(this);n=s();if(n.length==0){return}var i="",a=0;o.find(".products-list li").each(function(){if(!m(this).hasClass("uncheck")){if(a>0){i+=","}i+=" "+m(this).find("a").data("title");a++}});t.addClass("loading");l(n[r]);h.$body.on("added_to_wishlist",function(){if(n.length>r){l(n[r])}else if(n.length==r){o.find(".btn-view-to-wishlist").addClass("showed");o.find(".btn-add-to-wishlist").addClass("hided");h.addedToWishlistNotice("",i,false,"success",true);t.removeClass("loading")}})});function s(){var e=[];o.find("li.product").each(function(){if(!m(this).hasClass("un-active")&&!m(this).hasClass("product-buttons")&&!m(this).find(".yith-wcwl-add-to-wishlist").hasClass("exists")){if(e.indexOf(m(this).data("id"))==-1){e.push(m(this).data("id"))}}});return e}function l(e){var t=o.find(".add-to-wishlist-"+e);t.find(".yith-wcwl-add-button .add_to_wishlist").trigger("click");r++;return r}};h.instagramCarousel=function(){var e=h.$body.find(".mf-product-instagram ul.products"),t=e.data("columns"),i=e.data("auto"),a=false,o=1e3;if(e.length<1){return}if(i>0){a=true;o=i;i=true}else{i=false}e.not(".slick-initialized").slick({rtl:martfuryData.direction==="true",slidesToShow:t,slidesToScroll:t,autoplaySpeed:o,autoplay:i,infinite:a,dots:true,prevArrow:'<span class="icon-chevron-left slick-prev-arrow"></span>',nextArrow:'<span class="icon-chevron-right slick-next-arrow"></span>',responsive:[{breakpoint:1200,settings:{slidesToShow:parseInt(t)>4?4:parseInt(t),slidesToScroll:parseInt(t)>4?4:parseInt(t)}},{breakpoint:992,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:767,settings:{slidesToShow:2,slidesToScroll:2}}]});e.on("afterChange",function(){h.lazyLoad()})};h.productQuickView=function(){var r=m("#mf-quick-view-modal"),n=r.find(".product-modal-content");h.$body.on("click",".mf-product-quick-view",function(e){e.preventDefault();var t=m(this),i=t.data("id");n.hide().html("");r.addClass("loading").removeClass("loaded");h.openModal(r);var a={nonce:martfuryData.nonce,product_id:i},o=martfuryData.wc_ajax_url.toString().replace("%%endpoint%%","martfury_product_quick_view");m.post(o,a,function(e){n.show().append(e.data);r.removeClass("loading").addClass("loaded");var t=n.find(".woocommerce-product-gallery"),i=m(".variations_form"),a=n.find("form.cart .actions-button"),o=a.find(".buy_now_button");t.removeAttr("style");t.find("img.lazy").lazyload().trigger("appear");t.imagesLoaded(function(){t.find(".woocommerce-product-gallery__wrapper").not(".slick-initialized").slick({slidesToShow:1,slidesToScroll:1,infinite:false,prevArrow:'<span class="icon-chevron-left slick-prev-arrow"></span>',nextArrow:'<span class="icon-chevron-right slick-next-arrow"></span>'})});if(o.length>0){a.prepend(o)}t.find(".woocommerce-product-gallery__image").on("click",function(e){e.preventDefault()});if(typeof wc_add_to_cart_variation_params!=="undefined"){i.each(function(){m(this).wc_variation_form()})}if(typeof m.fn.tawcvs_variation_swatches_form!=="undefined"){i.tawcvs_variation_swatches_form()}h.productVatiation();if(typeof tawcvs!=="undefined"){if(tawcvs.tooltip==="yes"){i.find(".swatch").tooltip({classes:{"ui-tooltip":"martfury-tooltip"},tooltipClass:"martfury-tooltip qv-tool-tip",position:{my:"center bottom",at:"center top-13"},create:function(){m(".ui-helper-hidden-accessible").remove()}})}}n.find(".compare").tooltip({content:function(){return m(this).html()},classes:{"ui-tooltip":"martfury-tooltip"},tooltipClass:"martfury-tooltip qv-tooltip",position:{my:"center bottom",at:"center top-13"},create:function(){m(".ui-helper-hidden-accessible").remove()}});n.find("[data-rel=tooltip]").tooltip({classes:{"ui-tooltip":"martfury-tooltip"},tooltipClass:"martfury-tooltip qv-tooltip",position:{my:"center bottom",at:"center top-13"},create:function(){m(".ui-helper-hidden-accessible").remove()}});h.buyNow();h.addToCartAjax();m(document.body).trigger("yith_wcwl_init")})});r.on("click",".close-modal, .mf-modal-overlay",function(e){e.preventDefault();h.closeModal(r)})};h.productVatiation=function(){h.$body.on("tawcvs_initialized",function(){m(".variations_form").unbind("tawcvs_no_matching_variations");m(".variations_form").on("tawcvs_no_matching_variations",function(e,t){e.preventDefault();m(".variations_form").find(".woocommerce-variation.single_variation").show();if(typeof wc_add_to_cart_variation_params!=="undefined"){m(".variations_form").find(".single_variation").slideDown(200).html("<p>"+wc_add_to_cart_variation_params.i18n_no_matching_variations_text+"</p>")}})});m(".variations_form").on("found_variation.wc-variation-form",function(e,t){var i=m(".mf-product-detail").find(".meta-sku").find(".meta-value");if(typeof i.wc_set_content!=="function"){return}if(typeof i.wc_reset_content!=="function"){return}if(t.sku){i.wc_set_content(t.sku)}else{i.wc_reset_content()}});m(".variations_form td.value").find("select").each(function(){m(this).on("change",function(){var e=m(this).find("option:selected").text();m(this).closest("tr").find("td.label .mf-attr-value").html(e)}).trigger("change")})};h.productVariationVideo=function(){var e=m(".variations_form"),a=m(".woocommerce-product-gallery");e.on("found_variation.wc-variation-form",function(e,t){if(!a.hasClass("video-first")||!a.hasClass("has-video")){return}var i=a.find(".mf-video-content").find(".wp-post-image");if(i.length<1||i.attr("src")==="#"){return}if(t&&t.image&&t.image.src&&t.image.src.length>1){a.addClass("active-first-image")}else{a.removeClass("active-first-image")}});e.on("reset_image",function(e){a.removeClass("active-first-image")})};h.addToCartAjax=function(){if(martfuryData.add_to_cart_ajax=="0"){return}var s=false;h.$body.find("form.cart").on("click",".single_add_to_cart_button",function(e){var o=m(this),t=o.closest("form.cart"),r=o.closest(".entry-summary").find(".product_title");if(o.hasClass("has-buy-now")){return}if(t.length>0){e.preventDefault()}else{return}if(o.hasClass("disabled")){return}o.addClass("loading");if(s){return}s=true;var i=t.serializeArray(),n=window.location.href;if(o.val()!=""){i.push({name:o.attr("name"),value:o.val()})}m.ajax({url:window.location.href,method:"post",data:i,error:function(){window.location=n},success:function(e){if(!e){window.location=n}if(typeof wc_add_to_cart_params!=="undefined"){if(wc_add_to_cart_params.cart_redirect_after_add==="yes"){window.location=wc_add_to_cart_params.cart_url;return}}m(document.body).trigger("updated_wc_div");m(document.body).on("wc_fragments_refreshed",function(){o.removeClass("loading")});var t="",i="success",a=false;if(m(e).find(".woocommerce-message").length>0){t=m(e).find(".woocommerce-message").html()}if(m(e).find(".woocommerce-error").length>0){t=m(e).find(".woocommerce-error").html();i="error"}if(m(e).find(".woocommerce-info").length>0){t=m(e).find(".woocommerce-info").html()}if(!t){a=r.find("a").html()}h.addedToCartNotice(t,a,true,i,false);s=false}})})};h.addedToCartNotice=function(e,t,i,a,o){if(typeof martfuryData.added_to_cart_notice==="undefined"||!m.fn.notify){return}if(t===false){t=" "}else{if(o){t+=" "+martfuryData.added_to_cart_notice.added_to_cart_texts}else{t+=" "+martfuryData.added_to_cart_notice.added_to_cart_text}}e+='<a href="'+martfuryData.added_to_cart_notice.cart_view_link+'" class="btn-button">'+martfuryData.added_to_cart_notice.cart_view_text+"</a>";if(i){e='<div class="message-box">'+e+"</div>"}m.notify.addStyle("martfury",{html:'<div><i class="icon-checkmark-circle message-icon"></i><span data-notify-text/>'+e+'<span class="close icon-cross2"></span> </div>'});m.notify(t,{autoHideDelay:martfuryData.added_to_cart_notice.cart_notice_auto_hide,className:a,style:"martfury",showAnimation:"fadeIn",hideAnimation:"fadeOut"})};h.filterAjax=function(){if(!h.$body.hasClass("catalog-ajax-filter")){return}m("#page").addClass("fade-in");m(document.body).on("price_slider_change",function(e,t){var i=m(".price_slider").closest("form").get(0),a=m(i),o=a.attr("action")+"?"+a.serialize();m(document.body).trigger("martfury_catelog_filter_ajax",o,m(this))});h.$body.on("click",".mf_widget_product_categories a, .mf-widget-layered-nav a, .widget_rating_filter a, .widget_layered_nav_filters a, ul.woocommerce-ordering a:not(.mf-cancel-order)",function(e){e.preventDefault();var t=m(this).attr("href");m(document.body).trigger("martfury_catelog_filter_ajax",t,m(this))});m(document.body).on("martfury_catelog_filter_ajax",function(e,t,i){var a=m("#content"),o=m(".page-header");NProgress.start();m("#page").removeClass("fade-in");if("?"==t.slice(-1)){t=t.slice(0,-1)}t=t.replace(/%2C/g,",");history.pushState(null,null,t);m(document.body).trigger("martfury_ajax_filter_before_send_request",[t,i]);if(h.ajaxXHR){h.ajaxXHR.abort()}h.ajaxXHR=m.get(t,function(e){a.replaceWith(m(e).find("#content"));o.html(m(e).find(".page-header").html());if(typeof martfuryData.catalog_filter_products_status!=="undefined"){h.$body.removeClass("mf-filter-active")}if(m(e).find("#primary-sidebar").length<1){h.$body.removeClass("mb-filter-active sidebar-content").addClass("full-content")}m(document.body).trigger("martfury_ajax_filter_request_success",[e,t]);m(document.body).trigger("yith_wcwl_init")},"html")});m(document.body).on("martfury_ajax_filter_request_success",function(){h.lazyLoad();h.toolTipIcon();h.searchLayeredNav();h.catalogBanners();h.productsTopCarousel();h.collapseTheFilter();h.productCategoriesWidget();h.productAttribute();h.variationImagesCarousel();h.productTopCategories();h.priceSlider();h.catalogSorting();NProgress.done();m("#page").addClass("fade-in")})};h.productMultiVendors=function(){if(!h.$body.hasClass("mobile-version")){return}var t=m("#tab-singleproductmultivendor");if(t.length<1){return}var e=30;if(h.$body.hasClass("sticky-header")){e=90}var i=t.offset().top-e;m("div.product").on("click",".goto_more_offer_tab",function(e){e.preventDefault();m("html, body").stop().animate({scrollTop:i},400);t.find(".tab-title").trigger("click")})};h.stickyProductInfo=function(){if(!h.$body.hasClass("sticky-header-info")){return}var i=m("#sticky-product-info-wapper"),a=m("div.product").find(".woocommerce-tabs"),o=i.outerHeight(true),r=m("div.product").find(".mf-product-summary"),n=m("div.product").find(".entry-summary").find(".cart"),s=0;i.find(".sc-tabs").on("click","a",function(e){e.preventDefault();var t=m(this).data("tab");m(this).closest(".sc-tabs").find("a").removeClass("active");m(this).addClass("active");if(h.$body.hasClass("single-product-layout-3")||h.$body.hasClass("mobile-version")){var i=m("#tab-"+t);if(i.length>0){s=i.offset().top-o-60;m("html, body").stop().animate({scrollTop:s},400)}}else{if(a.length>0){a.find("."+t+"_tab a").trigger("click");s=a.offset().top-o-60;m("html, body").stop().animate({scrollTop:s},400)}}});a.find(".wc-tabs").on("click","a",function(e){e.preventDefault();var t=m(this).attr("href");t=t?t.replace("#",""):t;if(t){i.find(".sc-tabs").find("a").removeClass("active");i.find(".sc-tabs ."+t).addClass("active")}});i.find(".sc-product-cart").on("click",".button",function(e){e.preventDefault();if(n.length>0){var t=n.offset().top-o-50;m("html, body").stop().animate({scrollTop:t},400)}});var l=150;if(h.$body.hasClass("single-product-layout-3")||h.$body.hasClass("mobile-version")){h.$window.on("scroll",function(){i.find(".sc-tabs li a").removeClass("active");i.find(".sc-tabs li").each(function(){var e=m(this).find("a");var t=e.attr("href");if(m(t).is(":in-viewport("+l+")")){e.addClass("active")}})})}if(r.length<1){return}var c=0;h.$window.on("scroll",function(){if(h.$body.hasClass("mobile-version")){var e=m("#topbar").length>0?m("#topbar").outerHeight(true):0,t=h.$header.outerHeight(true);c=t+e}else{c=r.offset().top-300}if(h.$window.scrollTop()>c){i.addClass("viewport")}else{i.removeClass("viewport")}})};h.catalogOpenCartMini=function(){m(document.body).on("added_to_cart",function(e,t,i,a){var o=a.attr("data-title"),r="";h.addedToCartNotice(r,o,false,"success",false)})};h.priceSlider=function(){if(typeof woocommerce_price_slider_params==="undefined"){return false}if(m(".catalog-sidebar").find(".widget_price_filter").length<=0){return false}m("input#min_price, input#max_price").hide();m(".price_slider, .price_label").show();var e=m(".price_slider_amount #min_price").data("min"),t=m(".price_slider_amount #max_price").data("max"),i=parseInt(e,10),a=parseInt(t,10);if(m(".price_slider_amount #min_price").val()!=""){i=parseInt(m(".price_slider_amount #min_price").val(),10)}if(m(".price_slider_amount #max_price").val()!=""){a=parseInt(m(".price_slider_amount #max_price").val(),10)}m(document.body).on("price_slider_create price_slider_slide",function(e,t,i){if(woocommerce_price_slider_params.currency_pos==="left"){m(".price_slider_amount span.from").html(woocommerce_price_slider_params.currency_symbol+t);m(".price_slider_amount span.to").html(woocommerce_price_slider_params.currency_symbol+i)}else if(woocommerce_price_slider_params.currency_pos==="left_space"){m(".price_slider_amount span.from").html(woocommerce_price_slider_params.currency_symbol+" "+t);m(".price_slider_amount span.to").html(woocommerce_price_slider_params.currency_symbol+" "+i)}else if(woocommerce_price_slider_params.currency_pos==="right"){m(".price_slider_amount span.from").html(t+woocommerce_price_slider_params.currency_symbol);m(".price_slider_amount span.to").html(i+woocommerce_price_slider_params.currency_symbol)}else if(woocommerce_price_slider_params.currency_pos==="right_space"){m(".price_slider_amount span.from").html(t+" "+woocommerce_price_slider_params.currency_symbol);m(".price_slider_amount span.to").html(i+" "+woocommerce_price_slider_params.currency_symbol)}m(document.body).trigger("price_slider_updated",[t,i])});if(typeof m.fn.slider!=="undefined"){m(".price_slider").slider({range:true,animate:true,min:e,max:t,values:[i,a],create:function(){m(".price_slider_amount #min_price").val(i);m(".price_slider_amount #max_price").val(a);m(document.body).trigger("price_slider_create",[i,a])},slide:function(e,t){m("input#min_price").val(t.values[0]);m("input#max_price").val(t.values[1]);m(document.body).trigger("price_slider_slide",[t.values[0],t.values[1]])},change:function(e,t){m(document.body).trigger("price_slider_change",[t.values[0],t.values[1]])}})}};h.loginTabs=function(){var a=m(".martfury-login-tabs"),e=a.find(".tabs-nav a"),o=a.find(".tabs-panel");e.on("click",function(e){e.preventDefault();var t=m(this),i=t.parent().index();if(t.hasClass("active")){return}a.find(".tabs-nav a").removeClass("active");t.addClass("active");o.removeClass("active");o.filter(":eq("+i+")").addClass("active")})};h.productsLoadInfinite=function(){if(!h.$body.hasClass("navigation-type-infinite")){return}h.$window.on("scroll",function(){if(h.$body.find("#martfury-products-loading").is(":in-viewport")){h.$body.find("#martfury-products-loading").closest(".next").trigger("click")}}).trigger("scroll");h.$body.on("click",".woocommerce-pagination .next",function(e){e.preventDefault();var t=m(this);if(t.data("requestRunning")){return}t.data("requestRunning",true);var a=t.closest(".woocommerce-pagination"),o=a.prev(".products"),i=t.closest(".next").attr("href");m.get(i,function(e){var t=m(e).find("#mf-shop-content ul.products").children("li.product"),i=m(e).find(".woocommerce-pagination").html();if(h.$body.hasClass("wcfmmp-store-page")){t=m(e).find("#products-wrapper ul.products").children("li.product")}a.html(i);o.append(t);a.find(".next").data("requestRunning",false);h.toolTipIcon();h.lazyLoad();h.variationImagesCarousel();m(document.body).trigger("martfury_shop_ajax_loading_success");m(document.body).trigger("yith_wcwl_init");m(document.body).trigger("jetpack-lazy-images-load")})})};h.buyNow=function(){if(!h.$body.find(".mf-single-product").hasClass("mf-has-buy-now")){return}h.$body.find("form.cart").on("click",".buy_now_button",function(e){e.preventDefault();var t=m(this).closest("form.cart"),i=m(this).is(":disabled");if(i){jQuery("html, body").animate({scrollTop:m(this).offset().top-200},900)}else{t.append('<input type="hidden" value="true" name="buy_now" />');t.find(".single_add_to_cart_button").addClass("has-buy-now");t.find(".single_add_to_cart_button").trigger("click")}});var a=m(".variations_form");a.on("hide_variation",function(e){e.preventDefault();a.find(".buy_now_button").addClass("disabled wc-variation-selection-needed")});a.on("show_variation",function(e,t,i){e.preventDefault();if(i){a.find(".buy_now_button").removeClass("disabled wc-variation-selection-needed")}else{a.find(".buy_now_button").addClass("disabled wc-variation-selection-needed")}})};h.footerDropdown=function(){if(!h.$body.hasClass("mobile-version")){return}var e=m("#footer-widgets .widget_nav_menu, #footer-links .widget_nav_menu"),t=e.find(".widget-title");t.next("div").addClass("clicked");e.on("click",".widget-title",function(e){e.preventDefault();m(this).next(".clicked").stop().slideToggle();m(this).toggleClass("active")})};h.catalogSorting=function(){if(!h.$body.hasClass("mobile-version")){return}var t=m("#mf-catalog-sorting-mobile");m("#mf-catalog-toolbar").on("click",".woocommerce-ordering",function(e){e.preventDefault();t.addClass("mf-active")});t.on("click","a",function(e){t.removeClass("mf-active");t.find("a").removeClass("active");m(this).addClass("active")})};h.filterOnMobile=function(){h.$body.on("click","#mf-filter-mobile",function(e){e.preventDefault();h.$body.toggleClass("mf-filter-active")});h.$body.find("#mf-catalog-close-sidebar").on("click",".close-sidebar",function(e){e.preventDefault();h.$body.removeClass("mf-filter-active")})};h.historyBack=function(){if(!h.$body.hasClass("mobile-version")){return}var e=h.$header.find(".mf-history-back");e.on("click",function(e){e.preventDefault();window.history.go(-1);m(window).on("popstate",function(e){window.location.reload(true)})})};h.wcfm=function(){if(m("#mf_pbt_product_ids").length<=0){return false}if(typeof $wcfm_product_select_args==="undefined"){return false}m("#mf_pbt_product_ids").select2($wcfm_product_select_args)};m(function(){h.init()})})(jQuery);



jQuery(document).ready(function($){$('.deal-expire-countdown').each(function(){var $this=$(this),diff=$this.data('expire');var updateClock=function(distance){var days=Math.floor(distance/(60*60*24));var hours=Math.floor((distance%(60*60*24))/(60*60));var minutes=Math.floor((distance%(60*60))/(60));var seconds=Math.floor(distance%60);$this.html('<span class="days timer"><span class="digits">'+(days<10?'0':'')+days+'</span><span class="text">'+tawcDeals.l10n.days+'</span></span>'+'<span class="divider">:</span>'+'<span class="hours timer"><span class="digits">'+(hours<10?'0':'')+hours+'</span><span class="text">'+tawcDeals.l10n.hours+'</span></span>'+'<span class="divider">:</span>'+'<span class="minutes timer"><span class="digits">'+(minutes<10?'0':'')+minutes+'</span><span class="text">'+tawcDeals.l10n.minutes+'</span></span>'+'<span class="divider">:</span>'+'<span class="seconds timer"><span class="digits">'+(seconds<10?'0':'')+seconds+'</span><span class="text">'+tawcDeals.l10n.seconds+'</span></span>')};updateClock(diff);var countdown=setInterval(function(){diff=diff-1;updateClock(diff);if(diff<0){clearInterval(countdown)}},1000)})});



(function($){$('#billing_country_field').on('change',function(){var country_code=$(this).find('#billing_country').val();if(country_code=='VN'){$('.woocommerce-billing-fields__field-wrapper').addClass('active')}else{$('.woocommerce-billing-fields__field-wrapper').removeClass('active')}})})(jQuery);



!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.sbjs=e()}}(function(){return function e(t,r,n){function a(s,o){if(!r[s]){if(!t[s]){var c="function"==typeof require&&require;if(!o&&c)return c(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var p=r[s]={exports:{}};t[s][0].call(p.exports,function(e){var r=t[s][1][e];return a(r||e)},p,p.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)a(n[s]);return a}({1:[function(e,t,r){"use strict";var n=e("./init"),a={init:function(e){this.get=n(e),e&&e.callback&&"function"==typeof e.callback&&e.callback(this.get)}};t.exports=a},{"./init":6}],2:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/utils"),i={containers:{current:"sbjs_current",current_extra:"sbjs_current_add",first:"sbjs_first",first_extra:"sbjs_first_add",session:"sbjs_session",udata:"sbjs_udata",promocode:"sbjs_promo"},service:{migrations:"sbjs_migrations"},delimiter:"|||",aliases:{main:{type:"typ",source:"src",medium:"mdm",campaign:"cmp",content:"cnt",term:"trm",id:"id",platform:"plt",format:"fmt",tactic:"tct"},extra:{fire_date:"fd",entrance_point:"ep",referer:"rf"},session:{pages_seen:"pgs",current_page:"cpg"},udata:{visits:"vst",ip:"uip",agent:"uag"},promo:"code"},pack:{main:function(e){return i.aliases.main.type+"="+e.type+i.delimiter+i.aliases.main.source+"="+e.source+i.delimiter+i.aliases.main.medium+"="+e.medium+i.delimiter+i.aliases.main.campaign+"="+e.campaign+i.delimiter+i.aliases.main.content+"="+e.content+i.delimiter+i.aliases.main.term+"="+e.term+i.delimiter+i.aliases.main.id+"="+e.id+i.delimiter+i.aliases.main.platform+"="+e.platform+i.delimiter+i.aliases.main.format+"="+e.format+i.delimiter+i.aliases.main.tactic+"="+e.tactic},extra:function(e){return i.aliases.extra.fire_date+"="+a.setDate(new Date,e)+i.delimiter+i.aliases.extra.entrance_point+"="+document.location.href+i.delimiter+i.aliases.extra.referer+"="+(document.referrer||n.none)},user:function(e,t){return i.aliases.udata.visits+"="+e+i.delimiter+i.aliases.udata.ip+"="+t+i.delimiter+i.aliases.udata.agent+"="+navigator.userAgent},session:function(e){return i.aliases.session.pages_seen+"="+e+i.delimiter+i.aliases.session.current_page+"="+document.location.href},promo:function(e){return i.aliases.promo+"="+a.setLeadingZeroToInt(a.randomInt(e.min,e.max),e.max.toString().length)}}};t.exports=i},{"./helpers/utils":5,"./terms":9}],3:[function(e,t,r){"use strict";var n=e("../data").delimiter;t.exports={useBase64:!1,setBase64Flag:function(e){this.useBase64=e},encodeData:function(e){return encodeURIComponent(e).replace(/\!/g,"%21").replace(/\~/g,"%7E").replace(/\*/g,"%2A").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29")},decodeData:function(e){try{return decodeURIComponent(e).replace(/\%21/g,"!").replace(/\%7E/g,"~").replace(/\%2A/g,"*").replace(/\%27/g,"'").replace(/\%28/g,"(").replace(/\%29/g,")")}catch(t){try{return unescape(e)}catch(r){return""}}},set:function(e,t,r,n,a){var i,s;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),i="; expires="+o.toGMTString()}else i="";s=n&&!a?";domain=."+n:"";var c=this.encodeData(t);this.useBase64&&(c=btoa(c).replace(/=+$/,"")),document.cookie=this.encodeData(e)+"="+c+i+s+"; path=/"},get:function(e){for(var t=this.encodeData(e)+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var a=r[n];" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(t)){var i=a.substring(t.length,a.length);if(/^[A-Za-z0-9+/]+$/.test(i))try{i=atob(i.padEnd(4*Math.ceil(i.length/4),"="))}catch(s){}return this.decodeData(i)}}return null},destroy:function(e,t,r){this.set(e,"",-1,t,r)},parse:function(e){var t=[],r={};if("string"==typeof e)t.push(e);else for(var a in e)e.hasOwnProperty(a)&&t.push(e[a]);for(var i=0;i<t.length;i++){var s;r[this.unsbjs(t[i])]={},s=this.get(t[i])?this.get(t[i]).split(n):[];for(var o=0;o<s.length;o++){var c=s[o].split("="),u=c.splice(0,1);u.push(c.join("=")),r[this.unsbjs(t[i])][u[0]]=this.decodeData(u[1])}}return r},unsbjs:function(e){return e.replace("sbjs_","")}}},{"../data":2}],4:[function(e,t,r){"use strict";t.exports={parse:function(e){for(var t=this.parseOptions,r=t.parser[t.strictMode?"strict":"loose"].exec(e),n={},a=14;a--;)n[t.key[a]]=r[a]||"";return n[t.q.name]={},n[t.key[12]].replace(t.q.parser,function(e,r,a){r&&(n[t.q.name][r]=a)}),n},parseOptions:{strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},getParam:function(e){for(var t={},r=(e||window.location.search.substring(1)).split("&"),n=0;n<r.length;n++){var a=r[n].split("=");if("undefined"==typeof t[a[0]])t[a[0]]=a[1];else if("string"==typeof t[a[0]]){var i=[t[a[0]],a[1]];t[a[0]]=i}else t[a[0]].push(a[1])}return t},getHost:function(e){return this.parse(e).host.replace("www.","")}}},{}],5:[function(e,t,r){"use strict";t.exports={escapeRegexp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},setDate:function(e,t){var r=e.getTimezoneOffset()/60,n=e.getHours(),a=t||0===t?t:-r;return e.setHours(n+r+a),e.getFullYear()+"-"+this.setLeadingZeroToInt(e.getMonth()+1,2)+"-"+this.setLeadingZeroToInt(e.getDate(),2)+" "+this.setLeadingZeroToInt(e.getHours(),2)+":"+this.setLeadingZeroToInt(e.getMinutes(),2)+":"+this.setLeadingZeroToInt(e.getSeconds(),2)},setLeadingZeroToInt:function(e,t){for(var r=e+"";r.length<t;)r="0"+r;return r},randomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e}}},{}],6:[function(e,t,r){"use strict";var n=e("./data"),a=e("./terms"),i=e("./helpers/cookies"),s=e("./helpers/uri"),o=e("./helpers/utils"),c=e("./params"),u=e("./migrations");t.exports=function(e){var t,r,p,f,m,d,l,g,h,y,_,v,b,x=c.fetch(e),k=s.getParam(),w=x.domain.host,q=x.domain.isolate,I=x.lifetime;function j(e){switch(e){case a.traffic.utm:t=a.traffic.utm,r="undefined"!=typeof k.utm_source?k.utm_source:"undefined"!=typeof k.gclid?"google":"undefined"!=typeof k.yclid?"yandex":a.none,p="undefined"!=typeof k.utm_medium?k.utm_medium:"undefined"!=typeof k.gclid?"cpc":"undefined"!=typeof k.yclid?"cpc":a.none,f="undefined"!=typeof k.utm_campaign?k.utm_campaign:"undefined"!=typeof k[x.campaign_param]?k[x.campaign_param]:"undefined"!=typeof k.gclid?"google_cpc":"undefined"!=typeof k.yclid?"yandex_cpc":a.none,m="undefined"!=typeof k.utm_content?k.utm_content:"undefined"!=typeof k[x.content_param]?k[x.content_param]:a.none,l=k.utm_id||a.none,g=k.utm_source_platform||a.none,h=k.utm_creative_format||a.none,y=k.utm_marketing_tactic||a.none,d="undefined"!=typeof k.utm_term?k.utm_term:"undefined"!=typeof k[x.term_param]?k[x.term_param]:function(){var e=document.referrer;if(k.utm_term)return k.utm_term;if(!(e&&s.parse(e).host&&s.parse(e).host.match(/^(?:.*\.)?yandex\..{2,9}$/i)))return!1;try{return s.getParam(s.parse(document.referrer).query).text}catch(t){return!1}}()||a.none;break;case a.traffic.organic:t=a.traffic.organic,r=r||s.getHost(document.referrer),p=a.referer.organic,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.referral:t=a.traffic.referral,r=r||s.getHost(document.referrer),p=p||a.referer.referral,f=a.none,m=s.parse(document.referrer).path,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.typein:t=a.traffic.typein,r=x.typein_attributes.source,p=x.typein_attributes.medium,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;default:t=a.oops,r=a.oops,p=a.oops,f=a.oops,m=a.oops,d=a.oops,l=a.oops,g=a.oops,h=a.oops,y=a.oops}var i={type:t,source:r,medium:p,campaign:f,content:m,term:d,id:l,platform:g,format:h,tactic:y};return n.pack.main(i)}function R(e){var t=document.referrer;switch(e){case a.traffic.organic:return!!t&&H(t)&&function(e){var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp("yandex")+"\\..{2,9}$"),n=new RegExp(".*"+o.escapeRegexp("text")+"=.*"),a=new RegExp("^(?:www\\.)?"+o.escapeRegexp("google")+"\\..{2,9}$");if(s.parse(e).query&&s.parse(e).host.match(t)&&s.parse(e).query.match(n))return r="yandex",!0;if(s.parse(e).host.match(a))return r="google",!0;if(!s.parse(e).query)return!1;for(var i=0;i<x.organics.length;i++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.organics[i].host)+"$","i"))&&s.parse(e).query.match(new RegExp(".*"+o.escapeRegexp(x.organics[i].param)+"=.*","i")))return r=x.organics[i].display||x.organics[i].host,!0;if(i+1===x.organics.length)return!1}}(t);case a.traffic.referral:return!!t&&H(t)&&function(e){if(!(x.referrals.length>0))return r=s.getHost(e),!0;for(var t=0;t<x.referrals.length;t++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.referrals[t].host)+"$","i")))return r=x.referrals[t].display||x.referrals[t].host,p=x.referrals[t].medium||a.referer.referral,!0;if(t+1===x.referrals.length)return r=s.getHost(e),!0}}(t);default:return!1}}function H(e){if(x.domain){if(q)return s.getHost(e)!==s.getHost(w);var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp(w)+"$","i");return!s.getHost(e).match(t)}return s.getHost(e)!==s.getHost(document.location.href)}function D(){i.set(n.containers.current_extra,n.pack.extra(x.timezone_offset),I,w,q),i.get(n.containers.first_extra)||i.set(n.containers.first_extra,n.pack.extra(x.timezone_offset),I,w,q)}return i.setBase64Flag(x.base64),u.go(I,w,q),i.set(n.containers.current,function(){var e;if("undefined"!=typeof k.utm_source||"undefined"!=typeof k.utm_medium||"undefined"!=typeof k.utm_campaign||"undefined"!=typeof k.utm_content||"undefined"!=typeof k.utm_term||"undefined"!=typeof k.utm_id||"undefined"!=typeof k.utm_source_platform||"undefined"!=typeof k.utm_creative_format||"undefined"!=typeof k.utm_marketing_tactic||"undefined"!=typeof k.gclid||"undefined"!=typeof k.yclid||"undefined"!=typeof k[x.campaign_param]||"undefined"!=typeof k[x.term_param]||"undefined"!=typeof k[x.content_param])D(),e=j(a.traffic.utm);else if(R(a.traffic.organic))D(),e=j(a.traffic.organic);else if(!i.get(n.containers.session)&&R(a.traffic.referral))D(),e=j(a.traffic.referral);else{if(i.get(n.containers.first)||i.get(n.containers.current))return i.get(n.containers.current);D(),e=j(a.traffic.typein)}return e}(),I,w,q),i.get(n.containers.first)||i.set(n.containers.first,i.get(n.containers.current),I,w,q),i.get(n.containers.udata)?(_=parseInt(i.parse(n.containers.udata)[i.unsbjs(n.containers.udata)][n.aliases.udata.visits])||1,_=i.get(n.containers.session)?_:_+1,v=n.pack.user(_,x.user_ip)):(_=1,v=n.pack.user(_,x.user_ip)),i.set(n.containers.udata,v,I,w,q),i.get(n.containers.session)?(b=parseInt(i.parse(n.containers.session)[i.unsbjs(n.containers.session)][n.aliases.session.pages_seen])||1,b+=1):b=1,i.set(n.containers.session,n.pack.session(b),x.session_length,w,q),x.promocode&&!i.get(n.containers.promocode)&&i.set(n.containers.promocode,n.pack.promo(x.promocode),I,w,q),i.parse(n.containers)}},{"./data":2,"./helpers/cookies":3,"./helpers/uri":4,"./helpers/utils":5,"./migrations":7,"./params":8,"./terms":9}],7:[function(e,t,r){"use strict";var n=e("./data"),a=e("./helpers/cookies");t.exports={go:function(e,t,r){var i,s=this.migrations,o={l:e,d:t,i:r};if(a.get(n.containers.first)||a.get(n.service.migrations)){if(!a.get(n.service.migrations))for(i=0;i<s.length;i++)s[i].go(s[i].id,o)}else{var c=[];for(i=0;i<s.length;i++)c.push(s[i].id);var u="";for(i=0;i<c.length;i++)u+=c[i]+"=1",i<c.length-1&&(u+=n.delimiter);a.set(n.service.migrations,u,o.l,o.d,o.i)}},migrations:[{id:"1418474375998",version:"1.0.0-beta",go:function(e,t){var r=e+"=1",i=e+"=0",s=function(e,t,r){return t||r?e:n.delimiter};try{var o=[];for(var c in n.containers)n.containers.hasOwnProperty(c)&&o.push(n.containers[c]);for(var u=0;u<o.length;u++)if(a.get(o[u])){var p=a.get(o[u]).replace(/(\|)?\|(\|)?/g,s);a.destroy(o[u],t.d,t.i),a.destroy(o[u],t.d,!t.i),a.set(o[u],p,t.l,t.d,t.i)}a.get(n.containers.session)&&a.set(n.containers.session,n.pack.session(0),t.l,t.d,t.i),a.set(n.service.migrations,r,t.l,t.d,t.i)}catch(f){a.set(n.service.migrations,i,t.l,t.d,t.i)}}}]}},{"./data":2,"./helpers/cookies":3}],8:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/uri");t.exports={fetch:function(e){var t=e||{},r={};if(r.lifetime=this.validate.checkFloat(t.lifetime)||6,r.lifetime=parseInt(30*r.lifetime*24*60),r.session_length=this.validate.checkInt(t.session_length)||30,r.timezone_offset=this.validate.checkInt(t.timezone_offset),r.base64=t.base64||!1,r.campaign_param=t.campaign_param||!1,r.term_param=t.term_param||!1,r.content_param=t.content_param||!1,r.user_ip=t.user_ip||n.none,t.promocode?(r.promocode={},r.promocode.min=parseInt(t.promocode.min)||1e5,r.promocode.max=parseInt(t.promocode.max)||999999):r.promocode=!1,t.typein_attributes&&t.typein_attributes.source&&t.typein_attributes.medium?(r.typein_attributes={},r.typein_attributes.source=t.typein_attributes.source,r.typein_attributes.medium=t.typein_attributes.medium):r.typein_attributes={source:"(direct)",medium:"(none)"},t.domain&&this.validate.isString(t.domain)?r.domain={host:t.domain,isolate:!1}:t.domain&&t.domain.host?r.domain=t.domain:r.domain={host:a.getHost(document.location.hostname),isolate:!1},r.referrals=[],t.referrals&&t.referrals.length>0)for(var i=0;i<t.referrals.length;i++)t.referrals[i].host&&r.referrals.push(t.referrals[i]);if(r.organics=[],t.organics&&t.organics.length>0)for(var s=0;s<t.organics.length;s++)t.organics[s].host&&t.organics[s].param&&r.organics.push(t.organics[s]);return r.organics.push({host:"bing.com",param:"q",display:"bing"}),r.organics.push({host:"yahoo.com",param:"p",display:"yahoo"}),r.organics.push({host:"about.com",param:"q",display:"about"}),r.organics.push({host:"aol.com",param:"q",display:"aol"}),r.organics.push({host:"ask.com",param:"q",display:"ask"}),r.organics.push({host:"globososo.com",param:"q",display:"globo"}),r.organics.push({host:"go.mail.ru",param:"q",display:"go.mail.ru"}),r.organics.push({host:"rambler.ru",param:"query",display:"rambler"}),r.organics.push({host:"tut.by",param:"query",display:"tut.by"}),r.referrals.push({host:"t.co",display:"twitter.com"}),r.referrals.push({host:"plus.url.google.com",display:"plus.google.com"}),r},validate:{checkFloat:function(e){return!(!e||!this.isNumeric(parseFloat(e)))&&parseFloat(e)},checkInt:function(e){return!(!e||!this.isNumeric(parseInt(e)))&&parseInt(e)},isNumeric:function(e){return!isNaN(e)},isString:function(e){return"[object String]"===Object.prototype.toString.call(e)}}}},{"./helpers/uri":4,"./terms":9}],9:[function(e,t,r){"use strict";t.exports={traffic:{utm:"utm",organic:"organic",referral:"referral",typein:"typein"},referer:{referral:"referral",organic:"organic",social:"social"},none:"(none)",oops:"(Houston, we have a problem)"}},{}]},{},[1])(1)});



!function(t){"use strict";const e=t.params,n=(document.querySelector.bind(document),(t,e)=>e.split(".").reduce((t,e)=>t&&t[e],t)),i=()=>null,s=t=>null===t||t===undefined?"":t,o="wc/store/checkout";function a(t){window.wp&&window.wp.data&&window.wp.data.dispatch&&window.wc&&window.wc.wcBlocksData&&window.wp.data.dispatch(window.wc.wcBlocksData.CHECKOUT_STORE_KEY).__internalSetExtensionData("woocommerce/order-attribution",t,!0)}function r(){return"undefined"!=typeof sbjs}function c(){if(window.wp&&window.wp.data&&"function"==typeof window.wp.data.subscribe){const e=window.wp.data.subscribe(function(){e(),a(t.getAttributionData())},o)}}t.getAttributionData=function(){const s=e.allowTracking&&r()?n:i,o=r()?sbjs.get:{},a=Object.entries(t.fields).map(([t,e])=>[t,s(o,e)]);return Object.fromEntries(a)},t.setOrderTracking=function(n){if(e.allowTracking=n,n){if(!r())return;sbjs.init({lifetime:Number(e.lifetime),session_length:Number(e.session),base64:Boolean(e.base64),timezone_offset:"0"})}else!function(){const t=window.location.hostname;["sbjs_current","sbjs_current_add","sbjs_first","sbjs_first_add","sbjs_session","sbjs_udata","sbjs_migrations","sbjs_promo"].forEach(e=>{document.cookie=`${e}=; path=/; max-age=-999; domain=.${t};`})}();const i=t.getAttributionData();!function(t){for(const e of document.querySelectorAll("wc-order-attribution-inputs"))e.values=t}(i),a(i)},t.setOrderTracking(e.allowTracking),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",c):c(),window.customElements.define("wc-order-attribution-inputs",class extends HTMLElement{constructor(){if(super(),this._fieldNames=Object.keys(t.fields),this.hasOwnProperty("_values")){let t=this.values;delete this.values,this.values=t||{}}}connectedCallback(){this.innerHTML="";const t=new DocumentFragment;for(const n of this._fieldNames){const i=document.createElement("input");i.type="hidden",i.name=`${e.prefix}${n}`,i.value=s(this.values&&this.values[n]||""),t.appendChild(i)}this.appendChild(t)}set values(t){if(this._values=t,this.isConnected)for(const t of this._fieldNames){const n=this.querySelector(`input[name="${e.prefix}${t}"]`);n?n.value=s(this.values[t]):console.warn(`Field "${t}" not found. `+"Most likely, the '<wc-order-attribution-inputs>' element was manipulated.")}}get values(){return this._values}})}(window.wc_order_attribution);



(function($){'use strict';$.fn.tawcvs_variation_swatches_form=function(){return this.each(function(){var $form=$(this),clicked=null,selected=[];$form.addClass('swatches-support').on('click','.swatch',function(e){e.preventDefault();var $el=$(this),$select=$el.closest('.value').find('select'),attribute_name=$select.data('attribute_name')||$select.attr('name'),value=$el.data('value');if($el.hasClass('disabled')){return}
$select.trigger('focusin');if(!$select.find('option[value="'+value+'"]').length){$el.siblings('.swatch').removeClass('selected');$select.val('').change();$form.trigger('tawcvs_no_matching_variations',[$el]);return}
clicked=attribute_name;if(selected.indexOf(attribute_name)===-1){selected.push(attribute_name)}
if($el.hasClass('selected')){$select.val('');$el.removeClass('selected');delete selected[selected.indexOf(attribute_name)]}else{$el.addClass('selected').siblings('.selected').removeClass('selected');$select.val(value)}
$select.change()}).on('click','.reset_variations',function(){$form.find('.swatch.selected').removeClass('selected');$form.find('.swatch.disabled').removeClass('disabled');selected=[]}).on('woocommerce_update_variation_values',function(){setTimeout(function(){$form.find('tbody tr').each(function(){var $variationRow=$(this),$options=$variationRow.find('select').find('option'),$selected=$options.filter(':selected'),values=[];$options.each(function(index,option){if(option.value!==''){values.push(option.value)}});$variationRow.find('.swatch').each(function(){var $swatch=$(this),value=$swatch.attr('data-value');if(values.indexOf(value)>-1){$swatch.removeClass('disabled')}else{$swatch.addClass('disabled');if($selected.length&&value===$selected.val()){$swatch.removeClass('selected')}}})})},100)}).on('tawcvs_no_matching_variations',function(){window.alert(wc_add_to_cart_variation_params.i18n_no_matching_variations_text)})})};$(function(){var $form=$('.variations_form');$form.tawcvs_variation_swatches_form();if(tawcvs.tooltip==='yes'&&$.fn.tooltip){$form.find('.swatch').tooltip({classes:{'ui-tooltip':'tawcvs-tooltip'},tooltipClass:'tawcvs-tooltip',position:{my:'center bottom',at:'center top-13'},create:function(){$('.ui-helper-hidden-accessible').remove()}})}
$(document.body).trigger('tawcvs_initialized')})})(jQuery);



document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",(()=>{for(var e=["-webkit-","-moz-","-ms-","-o-",""],t=0;t<e.length;t++)e[t]+"transform"in document.documentElement.style&&(document.documentElement.className+=" vc_transform ")})(),(c=>{"function"!=typeof window.vc_js&&(window.vc_js=function(){vc_toggleBehaviour(),vc_tabsBehaviour(),vc_accordionBehaviour(),vc_teaserGrid(),vc_carouselBehaviour(),vc_slidersBehaviour(),vc_prettyPhoto(),vc_pinterest(),vc_progress_bar(),vc_plugin_flexslider(),vc_gridBehaviour(),vc_rowBehaviour(),vc_prepareHoverBox(),vc_googleMapsPointer(),vc_ttaActivation(),vc_ttaToggleBehaviour(),jQuery(document).trigger("vc_js"),window.setTimeout(vc_waypoints,500)}),"function"!=typeof window.vc_plugin_flexslider&&(window.vc_plugin_flexslider=function(e){(e?e.find(".wpb_flexslider"):jQuery(".wpb_flexslider")).each(function(){var e=jQuery(this),t=1e3*parseInt(e.attr("data-interval"),10),o=e.attr("data-flex_fx"),i=0==t?!1:!0;e.is(":visible")&&setTimeout(function(){e.flexslider({animation:o,slideshow:i,slideshowSpeed:t,sliderSpeed:800,smoothHeight:!0})},1)})}),"function"!=typeof window.vc_googleplus&&(window.vc_googleplus=function(){var e,t;0<jQuery(".wpb_googleplus").length&&((e=document.createElement("script")).type="text/javascript",e.async=!0,e.src="https://apis.google.com/js/plusone.js",(t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,t))}),"function"!=typeof window.vc_pinterest&&(window.vc_pinterest=function(){var e,t;0<jQuery(".wpb_pinterest").length&&((e=document.createElement("script")).type="text/javascript",e.async=!0,e.src="https://assets.pinterest.com/js/pinit.js",(t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,t))}),"function"!=typeof window.vc_progress_bar&&(window.vc_progress_bar=function(){void 0!==jQuery.fn.vcwaypoint&&jQuery(".vc_progress_bar").each(function(){var e=jQuery(this);e.vcwaypoint(function(){e.find(".vc_single_bar").each(function(e){var t=jQuery(this).find(".vc_bar"),o=t.data("percentage-value");setTimeout(function(){t.css({width:o+"%"})},200*e)})},{offset:"85%"})})}),"function"!=typeof window.vc_waypoints&&(window.vc_waypoints=function(){void 0!==jQuery.fn.vcwaypoint&&jQuery(".wpb_animate_when_almost_visible:not(.wpb_start_animation)").each(function(){var e=jQuery(this);e.vcwaypoint(function(){e.addClass("wpb_start_animation animated")},{offset:"85%"})})}),"function"!=typeof window.vc_toggleBehaviour&&(window.vc_toggleBehaviour=function(e){function t(e){e&&e.preventDefault&&e.preventDefault();var t=jQuery(this).closest(".vc_toggle"),e=t.find(".vc_toggle_content");t.hasClass("vc_toggle_active")?e.slideUp({duration:300,complete:function(){t.removeClass("vc_toggle_active")}}):e.slideDown({duration:300,complete:function(){t.addClass("vc_toggle_active")}})}(e?e.hasClass("vc_toggle_title")?e.unbind("click"):e.find(".vc_toggle_title").off("click"):jQuery(".vc_toggle_title").off("click")).on("click",t)}),"function"!=typeof window.vc_ttaToggleBehaviour&&(window.vc_ttaToggleBehaviour=function(e){function t(){var e=jQuery(this);e.toggleClass("wpb-tta-toggle-active"),e.parent().parent().parent().find(".vc_pagination-item").each(function(){if(!c(this).hasClass("vc_active"))return c(this).find("a").click(),!1})}(e?e.find(".wpb-tta-toggle"):jQuery(".wpb-tta-toggle")).off("click").on("click",t),setTimeout(function(){jQuery(".wpb-tta-toggle").each(function(){var e=jQuery(this);e.parent().parent().parent().find(".vc_tta-panels-container .vc_pagination li:first").hasClass("vc_active")||e.addClass("wpb-tta-toggle-active")})},1e3)}),"function"!=typeof window.vc_tabsBehaviour&&(window.vc_tabsBehaviour=function(e){var t,n;jQuery.ui&&(e=e||jQuery(".wpb_tabs, .wpb_tour"),t=jQuery.ui&&jQuery.ui.version?jQuery.ui.version.split("."):"1.10",n=1===parseInt(t[0],10)&&parseInt(t[1],10)<9,e.each(function(e){var t=jQuery(this).attr("data-interval"),o=[],i=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({show:function(e,t){wpb_prepare_tab_content(e,t)},activate:function(e,t){wpb_prepare_tab_content(e,t)}});if(t&&0<t)try{i.tabs("rotate",1e3*t)}catch(e){window.console&&window.console.warn&&console.warn("tabs behaviours error",e)}jQuery(this).find(".wpb_tab").each(function(){o.push(this.id)}),jQuery(this).find(".wpb_tabs_nav li").on("click",function(e){return e&&e.preventDefault&&e.preventDefault(),n?i.tabs("select",jQuery("a",this).attr("href")):i.tabs("option","active",jQuery(this).index()),!1}),jQuery(this).find(".wpb_prev_slide a, .wpb_next_slide a").on("click",function(e){var t;e&&e.preventDefault&&e.preventDefault(),n?(t=i.tabs("option","selected"),jQuery(this).parent().hasClass("wpb_next_slide")?t++:t--,t<0?t=i.tabs("length")-1:t>=i.tabs("length")&&(t=0),i.tabs("select",t)):(t=i.tabs("option","active"),e=i.find(".wpb_tab").length,t=jQuery(this).parent().hasClass("wpb_next_slide")?e<=t+1?0:t+1:t-1<0?e-1:t-1,i.tabs("option","active",t))})}))}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(e){var t=jQuery(this),o=(t.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0<parseInt(t.data("active-tab"),10)&&parseInt(t.data("active-tab"),10)-1),i=!1===o||"yes"===t.data("collapsible"),o=t.find(".wpb_accordion_wrapper").accordion({header:"> div > h3",autoHeight:!1,heightStyle:"content",active:o,collapsible:i,navigation:!0,activate:vc_accordionActivate,change:function(e,t){void 0!==jQuery.fn.isotope&&t.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(t.newPanel)}});!0===t.data("vcDisableKeydown")&&(o.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var i={fitrows:"fitRows",masonry:"masonry"};jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var e=jQuery(this),t=e.find(".wpb_thumbnails"),o=t.attr("data-layout-mode");t.isotope({itemSelector:".isotope-item",layoutMode:void 0===i[o]?"fitRows":i[o]}),e.find(".categories_filter a").data("isotope",t).on("click",function(e){e&&e.preventDefault&&e.preventDefault();e=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),e.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).on("load resize",function(){t.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function(e){(e?e.find(".wpb_carousel"):jQuery(".wpb_carousel")).each(function(){var e=jQuery(this);!0!==e.data("carousel_enabled")&&e.is(":visible")&&(e.data("carousel_enabled",!0),getColumnsCount(jQuery(this)),jQuery(this).hasClass("columns_count_1"),(e=jQuery(this).find(".wpb_thumbnails-fluid li")).css({"margin-right":e.css("margin-left"),"margin-left":0}),(e=jQuery(this).find("ul.wpb_thumbnails-fluid")).width(e.width()+300))})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(e){var t,o,i=jQuery(this);i.hasClass("wpb_slider_nivo")?(0===(o=1e3*i.attr("data-interval"))&&(o=9999999999),i.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:800,pauseTime:o,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"})):i.hasClass("wpb_image_grid")&&i.find(".wpb_image_grid_ul")&&i.find(".wpb_image_grid_ul").isotope&&(jQuery.fn.imagesLoaded?t=i.find(".wpb_image_grid_ul").imagesLoaded(function(){t.isotope({itemSelector:".isotope-item",layoutMode:"fitRows"})}):i.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows"}))})}),"function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:"normal",hook:"data-rel",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){-1<location.href.indexOf("#!prettyPhoto")&&(location.hash="")},social_tools:""})}catch(e){window.console&&window.console.warn&&window.console.warn("vc_prettyPhoto initialize error",e)}}),"function"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){return window.console&&window.console.warn&&window.console.warn("function vc_google_fonts is deprecated, no need to use it"),!1}),window.vcParallaxSkroll=!1,"function"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){var l=window.jQuery;function e(){var e;void 0!==window.wpb_disable_full_width_row_js&&window.wpb_disable_full_width_row_js||(e=l('[data-vc-full-width="true"]'),l.each(e,function(e,t){var o,i,n,a,r,c,d,s=l(this),u=(s.addClass("vc_hidden"),s.next(".vc_row-full-width"));(u=u.length?u:s.parent().next(".vc_row-full-width")).length&&(o=parseInt(s.css("margin-left"),10),i=parseInt(s.css("margin-right"),10),n=0-u.offset().left-o,a=l(window).width(),r={position:"relative",left:n="rtl"===s.css("direction")?(n=n-u.width()+a)+o+i:n,"box-sizing":"border-box",width:a,"max-width":a},s.css(r),s.data("vcStretchContent")||("rtl"===s.css("direction")?((c=n)<0&&(c=0),(d=n)<0&&(d=0)):(d=a-(c=(c=-1*n)<0?0:c)-u.width()+o+i)<0&&(d=0),s.css({"padding-left":c+"px","padding-right":d+"px"})),s.attr("data-vc-full-width-init","true"),s.removeClass("vc_hidden"),l(document).trigger("vc-full-width-row-single",{el:s,offset:n,marginLeft:o,marginRight:i,elFull:u,width:a,maxWidth:a}))}),l(document).trigger("vc-full-width-row",e))}function t(){var e,t,o=l(".vc_row-o-full-height:first");o.length&&(e=l(window).height(),(t=o.offset().top)<e)&&o.css("min-height",100-t/(e/100)+"vh"),l(document).trigger("vc-full-height-row",o)}l(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour",e).on("resize.vcRowBehaviour",t),e(),t(),(0<window.navigator.userAgent.indexOf("MSIE ")||navigator.userAgent.match(/Trident.*rv\:11\./))&&l(".vc_row-o-full-height").each(function(){"flex"===l(this).css("display")&&l(this).wrap('<div class="vc_ie-flexbox-fixer"></div>')}),vc_initVideoBackgrounds();var n=!1;if(window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),l(".vc_parallax-inner").remove(),l("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),l("[data-vc-parallax]").each(function(){var e,t,o,i;n=!0,"on"===l(this).data("vcParallaxOFade")&&l(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),e=100*l(this).data("vcParallax"),(t=l("<div />").addClass("vc_parallax-inner").appendTo(l(this))).height(e+"%"),o=l(this).data("vcParallaxImage"),(i=vcExtractYoutubeId(o))?insertYoutubeVideoAsBackground(t,i):void 0!==o&&t.css("background-image","url("+o+")"),t.attr("data-bottom-top","top: "+-(e-100)+"%;").attr("data-top-bottom","top: 0%;")}),n&&window.skrollr)window.vcParallaxSkroll=skrollr.init({forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}}),window.vcParallaxSkroll}),"function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()}),"function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(e){for(var t=!1,o=1;!1===t;){if(e.hasClass("columns_count_"+o))return t=!0,o;o++}}),"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(e,t){var o=t.panel||t.newPanel,i=o.find(".vc_pie_chart:not(.vc_ready)"),n=o.find(".vc_round-chart"),a=o.find(".vc_line-chart"),r=o.find('[data-ride="vc_carousel"]');vc_carouselBehaviour(),vc_plugin_flexslider(o),t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),o.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&o.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),i.length&&jQuery.fn.vcChat&&i.vcChat(),n.length&&jQuery.fn.vcRoundChart&&n.vcRoundChart({reload:!1}),a.length&&jQuery.fn.vcLineChart&&a.vcLineChart({reload:!1}),r.length&&jQuery.fn.carousel&&r.carousel("resizeAction"),t=o.find(".isotope, .wpb_image_grid_ul"),i=o.find(".wpb_gmaps_widget"),0<t.length&&t.isotope("layout"),i.length&&!i.is(".map_ready")&&((n=i.find("iframe")).attr("src",n.attr("src")),i.addClass("map_ready")),o.parents(".isotope").length&&o.parents(".isotope").each(function(){jQuery(this).isotope("layout")}),c(document).trigger("wpb_prepare_tab_content",o)}),"function"!=typeof window.vc_ttaActivation&&(window.vc_ttaActivation=function(){jQuery("[data-vc-accordion]").on("show.vc.accordion",function(e){var t=window.jQuery,o={};o.newPanel=t(this).data("vc.accordion").getTarget(),window.wpb_prepare_tab_content(e,o)})}),"function"!=typeof window.vc_accordionActivate&&(window.vc_accordionActivate=function(e,t){var o,i,n,a;t.newPanel.length&&t.newHeader.length&&(o=t.newPanel.find(".vc_pie_chart:not(.vc_ready)"),i=t.newPanel.find(".vc_round-chart"),n=t.newPanel.find(".vc_line-chart"),a=t.newPanel.find('[data-ride="vc_carousel"]'),void 0!==jQuery.fn.isotope&&t.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"),t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),vc_carouselBehaviour(t.newPanel),vc_plugin_flexslider(t.newPanel),o.length&&jQuery.fn.vcChat&&o.vcChat(),i.length&&jQuery.fn.vcRoundChart&&i.vcRoundChart({reload:!1}),n.length&&jQuery.fn.vcLineChart&&n.vcLineChart({reload:!1}),a.length&&jQuery.fn.carousel&&a.carousel("resizeAction"),t.newPanel.parents(".isotope").length)&&t.newPanel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}),"function"!=typeof window.initVideoBackgrounds&&(window.initVideoBackgrounds=function(){return window.console&&window.console.warn&&window.console.warn("this function is deprecated use vc_initVideoBackgrounds"),vc_initVideoBackgrounds()}),"function"!=typeof window.vc_initVideoBackgrounds&&(window.vc_initVideoBackgrounds=function(){c(".vc_video-bg").remove(),c("[data-vc-video-bg]").each(function(){var e,o=jQuery(this);o.data("vcVideoBg")?(e=o.data("vcVideoBg"),(e=vcExtractYoutubeId(e))&&(o.find(".vc_video-bg").remove(),insertYoutubeVideoAsBackground(o,e)),jQuery(window).on("grid:items:added",function(e,t){o.has(t).length&&vcResizeVideoBackground(o)})):o.find(".vc_video-bg").remove()})}),"function"!=typeof window.insertYoutubeVideoAsBackground&&(window.insertYoutubeVideoAsBackground=function(e,t,o){if("undefined"==typeof YT||void 0===YT.Player)return 100<(o=void 0===o?0:o)?void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){insertYoutubeVideoAsBackground(e,t,o++)},100);var i=e.prepend('<div class="vc_video-bg"><div class="inner"></div></div>').find(".inner");new YT.Player(i[0],{width:"100%",height:"100%",videoId:t,playerVars:{playlist:t,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,mute:1,wmode:"transparent"},events:{onReady:function(e){e.target.mute().setLoop(!0)}}}),vcResizeVideoBackground(e),jQuery(window).on("resize",function(){vcResizeVideoBackground(e)})}),"function"!=typeof window.vcResizeVideoBackground&&(window.vcResizeVideoBackground=function(e){var t,o,i,n,a=e.innerWidth(),r=e.innerHeight();a/r<16/9?(t=r*(16/9),o=r,i=-Math.round((t-a)/2)+"px",n=-Math.round((o-r)/2)+"px"):(o=(t=a)*(9/16),n=-Math.round((o-r)/2)+"px",i=-Math.round((t-a)/2)+"px"),t+="px",o+="px",e.find(".vc_video-bg iframe").css({maxWidth:"1000%",marginLeft:i,marginTop:n,width:t,height:o})}),"function"!=typeof window.vcExtractYoutubeId&&(window.vcExtractYoutubeId=function(e){return void 0!==e&&null!==(e=e.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/))&&e[1]}),"function"!=typeof window.vc_googleMapsPointer&&(window.vc_googleMapsPointer=function(){var e=window.jQuery,t=e(".wpb_gmaps_widget");t.on("click",function(){e("iframe",this).css("pointer-events","auto")}),t.on("mouseleave",function(){e("iframe",this).css("pointer-events","none")}),e(".wpb_gmaps_widget iframe").css("pointer-events","none")}),"function"!=typeof window.vc_setHoverBoxPerspective&&(window.vc_setHoverBoxPerspective=function(e){e.each(function(){var e=jQuery(this),t=e.width();e.css("perspective",4*t+"px")})}),"function"!=typeof window.vc_setHoverBoxHeight&&(window.vc_setHoverBoxHeight=function(e){e.each(function(){var e=jQuery(this),t=e.find(".vc-hoverbox-inner"),o=(t.css("min-height",0),e.find(".vc-hoverbox-front-inner").outerHeight()),e=e.find(".vc-hoverbox-back-inner").outerHeight(),o=e<o?o:e;t.css("min-height",(o=o<250?250:o)+"px")})}),"function"!=typeof window.vc_prepareHoverBox&&(window.vc_prepareHoverBox=function(){var e=jQuery(".vc-hoverbox");vc_setHoverBoxHeight(e),vc_setHoverBoxPerspective(e)}),jQuery(document).ready(window.vc_prepareHoverBox),jQuery(window).on("resize",window.vc_prepareHoverBox),jQuery(document).ready(function(e){window.vc_js()})})(window.jQuery);



/*!
 * imagesLoaded PACKAGED v5.0.0
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
/*!
 * imagesLoaded v5.0.0
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));



/*!
* WPBakery Page Builder v7.6.0 (https://wpbakery.com)
* Copyright 2011-2024 Michael M, WPBakery
* License: Commercial. More details: http://go.wpbakery.com/licensing
*/
	// jscs:disable
	// jshint ignore: start 
(()=>{var e=0,r={};function i(t){if(!t)throw new Error("No options passed to Waypoint constructor");if(!t.element)throw new Error("No element option passed to Waypoint constructor");if(!t.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=i.Adapter.extend({},i.defaults,t),this.element=this.options.element,this.adapter=new i.Adapter(this.element),this.callback=t.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=i.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=i.Context.findOrCreateByElement(this.options.context),i.offsetAliases[this.options.offset]&&(this.options.offset=i.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),r[this.key]=this,e+=1}i.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},i.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},i.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete r[this.key]},i.prototype.disable=function(){return this.enabled=!1,this},i.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},i.prototype.next=function(){return this.group.next(this)},i.prototype.previous=function(){return this.group.previous(this)},i.invokeAll=function(t){var e,i=[];for(e in r)i.push(r[e]);for(var o=0,n=i.length;o<n;o++)i[o][t]()},i.destroyAll=function(){i.invokeAll("destroy")},i.disableAll=function(){i.invokeAll("disable")},i.enableAll=function(){for(var t in i.Context.refreshAll(),r)r[t].enabled=!0;return this},i.refreshAll=function(){i.Context.refreshAll()},i.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},i.viewportWidth=function(){return document.documentElement.clientWidth},i.adapters=[],i.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},i.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.VcWaypoint=i})(),(()=>{function e(t){window.setTimeout(t,1e3/60)}var i=0,o={},u=window.VcWaypoint,t=window.onload;function n(t){this.element=t,this.Adapter=u.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,u.windowContext||(u.windowContext=!0,u.windowContext=new n(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}n.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},n.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".vcwaypoints"),delete o[this.key])},n.prototype.createThrottledResizeHandler=function(){var t=this;function e(){t.handleResize(),t.didResize=!1}this.adapter.on("resize.vcwaypoints",function(){t.didResize||(t.didResize=!0,u.requestAnimationFrame(e))})},n.prototype.createThrottledScrollHandler=function(){var t=this;function e(){t.handleScroll(),t.didScroll=!1}this.adapter.on("scroll.vcwaypoints",function(){t.didScroll&&!u.isTouch||(t.didScroll=!0,u.requestAnimationFrame(e))})},n.prototype.handleResize=function(){u.Context.refreshAll()},n.prototype.handleScroll=function(){var t,e,i={},o={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(t in o){var n,r=o[t],s=r.newScroll>r.oldScroll?r.forward:r.backward;for(n in this.waypoints[t]){var a,l,h=this.waypoints[t][n];null!==h.triggerPoint&&(a=r.oldScroll<h.triggerPoint,l=r.newScroll>=h.triggerPoint,a&&l||!a&&!l)&&(h.queueTrigger(s),i[h.group.id]=h.group)}}for(e in i)i[e].flushTriggers();this.oldScroll={x:o.horizontal.newScroll,y:o.vertical.newScroll}},n.prototype.innerHeight=function(){return this.element==this.element.window?u.viewportHeight():this.adapter.innerHeight()},n.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},n.prototype.innerWidth=function(){return this.element==this.element.window?u.viewportWidth():this.adapter.innerWidth()},n.prototype.destroy=function(){var t,e=[];for(t in this.waypoints)for(var i in this.waypoints[t])e.push(this.waypoints[t][i]);for(var o=0,n=e.length;o<n;o++)e[o].destroy()},n.prototype.refresh=function(){var t,e,i=this.element==this.element.window,o=i?void 0:this.adapter.offset(),n={};for(e in this.handleScroll(),t={horizontal:{contextOffset:i?0:o.left,contextScroll:i?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:i?0:o.top,contextScroll:i?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var r,s=t[e];for(r in this.waypoints[e]){var a,l=this.waypoints[e][r],h=l.options.offset,p=l.triggerPoint,c=0,d=null==p;l.element!==l.element.window&&(c=l.adapter.offset()[s.offsetProp]),"function"==typeof h?h=h.apply(l):"string"==typeof h&&(h=parseFloat(h),-1<l.options.offset.indexOf("%"))&&(h=Math.ceil(s.contextDimension*h/100)),a=s.contextScroll-s.contextOffset,l.triggerPoint=Math.floor(c+a-h),c=p<s.oldScroll,a=l.triggerPoint>=s.oldScroll,h=!c&&!a,!d&&(c&&a)?(l.queueTrigger(s.backward),n[l.group.id]=l.group):(!d&&h||d&&s.oldScroll>=l.triggerPoint)&&(l.queueTrigger(s.forward),n[l.group.id]=l.group)}}return u.requestAnimationFrame(function(){for(var t in n)n[t].flushTriggers()}),this},n.findOrCreateByElement=function(t){return n.findByElement(t)||new n(t)},n.refreshAll=function(){for(var t in o)o[t].refresh()},n.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){t&&t(),n.refreshAll()},u.requestAnimationFrame=function(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e).call(window,t)},u.Context=n})(),(()=>{function r(t,e){return t.triggerPoint-e.triggerPoint}function s(t,e){return e.triggerPoint-t.triggerPoint}var e={vertical:{},horizontal:{}},i=window.VcWaypoint;function o(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),e[this.axis][this.name]=this}o.prototype.add=function(t){this.waypoints.push(t)},o.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},o.prototype.flushTriggers=function(){for(var t in this.triggerQueues){var e=this.triggerQueues[t];e.sort("up"===t||"left"===t?s:r);for(var i=0,o=e.length;i<o;i+=1){var n=e[i];!n.options.continuous&&i!==e.length-1||n.trigger([t])}}this.clearTriggerQueues()},o.prototype.next=function(t){this.waypoints.sort(r);t=i.Adapter.inArray(t,this.waypoints);return t===this.waypoints.length-1?null:this.waypoints[t+1]},o.prototype.previous=function(t){this.waypoints.sort(r);t=i.Adapter.inArray(t,this.waypoints);return t?this.waypoints[t-1]:null},o.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},o.prototype.remove=function(t){t=i.Adapter.inArray(t,this.waypoints);-1<t&&this.waypoints.splice(t,1)},o.prototype.first=function(){return this.waypoints[0]},o.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},o.findOrCreate=function(t){return e[t.axis][t.name]||new o(t)},i.Group=o})(),(()=>{var i=window.jQuery,t=window.VcWaypoint;function o(t){this.$element=i(t)}i.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(t,e){o.prototype[e]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[e].apply(this.$element,t)}}),i.each(["extend","inArray","isEmptyObject"],function(t,e){o[e]=i[e]}),t.adapters.push({name:"jquery",Adapter:o}),t.Adapter=o})(),(()=>{var n=window.VcWaypoint;function t(o){return function(){var e=[],i=arguments[0];return o.isFunction(arguments[0])&&((i=o.extend({},arguments[1])).handler=arguments[0]),this.each(function(){var t=o.extend({},i,{element:this});"string"==typeof t.context&&(t.context=o(this).closest(t.context)[0]),e.push(new n(t))}),e}}window.jQuery&&(window.jQuery.fn.vcwaypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.vcwaypoint=t(window.Zepto))})();



(n=>{var t=function(t){this.grid=t,this.settings=t.settings,this.filterValue=null,this.$el=!1,this.$content=!1,this.isLoading=!1,this.$loader=n('<div class="vc_grid-loading"></div>'),this.init()};t.prototype.init=function(){_.bindAll(this,"addItems","showItems","setIsLoading")},t.prototype.render=function(){this.$el=this.grid.$el,this.$content=this.$el,this.$content.find(".vc_grid-item").length?(this.grid.initFilter(),this.filter(),this.showItems(),this.filterValue=-1,window.vc_prettyPhoto()):(_.defer(this.setIsLoading),this.grid.ajax({},this.addItems))},t.prototype.setIsLoading=function(){this.$content.append(this.$loader),this.isLoading=!0},t.prototype.unsetIsLoading=function(){this.isLoading=!1,this.$loader&&this.$loader.remove()},t.prototype.filter=function(t){if(t=_.isUndefined(t)||"*"===t?"":t,this.filterValue==t)return!1;var i=this.$content.closest(".vc_grid-container").data("initial-loading-animation");window.vcGridSettings.addItemsAnimation=i,this.$content.find(".vc_visible-item").removeClass("vc_visible-item "+window.vcGridSettings.addItemsAnimation+" animated"),this.filterValue=t,_.defer(this.showItems)},t.prototype.showItems=function(){var t=this.$content.find(".vc_grid-item"+this.filterValue),i=(this.setIsLoading(),this.$content.closest(".vc_grid-container").data("initial-loading-animation"));window.vcGridSettings.addItemsAnimation=i,t.addClass("vc_visible-item "+("none"!==window.vcGridSettings.addItemsAnimation?window.vcGridSettings.addItemsAnimation+" animated":"")),this.unsetIsLoading(),n(window).trigger("grid:items:added",this.$el)},t.prototype.addItems=function(t){t&&t.length&&(t=n(t),this.$el.html(t),this.unsetIsLoading(),this.$content=t.find('[data-vc-grid-content="true"]'),this.grid.initFilter(),this.filter(),window.vc_prettyPhoto())},window.vcGridStyleAll=t})(window.jQuery);
(n=>{var t=function(t){this.grid=t,this.settings=t.settings,this.$loadMoreBtn=!1,this.$el=!1,this.filterValue=null,this.$content=!1,this.isLoading=!1,this.$loader=n('<div class="vc_grid-loading"></div>'),this.init()};t.prototype.setIsLoading=function(){this.$loadMoreBtn&&this.$loadMoreBtn.hide(),this.isLoading=!0},t.prototype.unsetIsLoading=function(){this.isLoading=!1,this.setLoadMoreBtn()},t.prototype.init=function(){_.bindAll(this,"addItems")},t.prototype.render=function(){this.$el=this.grid.$el,this.$content=this.$el,this.grid.initFilter(),this.filter(void 0,!0),this.showItems(!0),this.filterValue=-1,window.vc_prettyPhoto(),this.$content.append(this.$loader),this.grid.ajax({},this.addItems)},t.prototype.showItems=function(t){var i=this.$content.find(".vc_grid_filter-item:not(.vc_visible-item):lt("+this.settings.items_per_page+")"),e=(this.setIsLoading(),this.$content.closest(".vc_grid-container").data("initial-loading-animation"));window.vcGridSettings.addItemsAnimation=e,i.addClass("vc_visible-item"),t&&i.addClass(window.vcGridSettings.addItemsAnimation+" animated"),this.unsetIsLoading(),n(window).trigger("grid:items:added",this.$el)},t.prototype.filter=function(t,i){if(t=_.isUndefined(t)||"*"===t?"":t,this.filterValue==t)return!1;this.$content.find(".vc_visible-item, .vc_grid_filter-item").removeClass("vc_visible-item vc_grid_filter-item "),this.filterValue=t,this.$content.find(".vc_grid-item"+this.filterValue).addClass("vc_grid_filter-item"),this.showItems(i)},t.prototype.addItems=function(t){var i;t&&t.length&&(t=n(t),this.$el.html(t),this.unsetIsLoading(),this.$content=t.find('[data-vc-grid-content="true"]'),this.$loadMoreBtn=t.find('[data-vc-grid-load-more-btn="true"] .vc_btn3'),this.$loadMoreBtn.length||(this.$loadMoreBtn=t.find('[data-vc-grid-load-more-btn="true"] .vc_btn')),(i=this).$loadMoreBtn.on("click",function(t){t.preventDefault(),i.showItems(!0)}),this.$loadMoreBtn.hide(),this.grid.initFilter(),this.filter(),this.$loader.remove(),window.vc_prettyPhoto())},t.prototype.setLoadMoreBtn=function(){n('.vc_grid_filter-item:not(".vc_visible-item")',this.$content).length&&n(".vc_grid_filter-item",this.$content).length?this.$loadMoreBtn&&this.$loadMoreBtn.show():this.$loadMoreBtn&&this.$loadMoreBtn.hide()},window.vcGridStyleLoadMore=t})(window.jQuery);
(n=>{var t,e,s;e=window.jQuery,s=window.VcWaypoint,window.VcGridInfinite=function(i,t){var n=e.extend({},window.VcWaypoint.defaults,{container:"auto",items:".infinite-item",offset:"bottom-in-view"},t);n.element=i,n.handler=function(t){"down"!==t&&"right"!==t||(i.data("vcWaypoint")&&i.data("vcWaypoint").destroy(),n.handle.load.call(this,n))},i.data("vcWaypoint",new s(n))},(t=function(t){this.grid=t,this.settings=t.settings,this.$el=!1,this.filterValue=null,this.$content=!1,this.isLoading=!1,this.$loader=n('<div class="vc_grid-loading"></div>'),this.init()}).prototype.setIsLoading=function(){this.$content.append(this.$loader),this.isLoading=!0},t.prototype.unsetIsLoading=function(){this.isLoading=!1,this.$loader&&this.$loader.remove()},t.prototype.init=function(){_.bindAll(this,"addItems","showItems","setIsLoading")},t.prototype.render=function(){this.$el=this.grid.$el,this.$content=this.$el,this.grid.initFilter(),this.filter(),this.showItems(),this.filterValue=-1,window.vc_prettyPhoto(),_.defer(this.setIsLoading),this.grid.ajax({},this.addItems)},t.prototype.showItems=function(){var t=this.$content.find(".vc_grid_filter-item:not(.vc_visible-item):lt("+this.settings.items_per_page+")"),i=(this.setIsLoading(),this.$content.closest(".vc_grid-container").data("initial-loading-animation"));vcGridSettings.addItemsAnimation=i,t.addClass("vc_visible-item "+vcGridSettings.addItemsAnimation+" animated"),this.unsetIsLoading(),n(window).trigger("grid:items:added",this.$el)},t.prototype.filter=function(t){if(t=_.isUndefined(t)||"*"===t?"":t,this.filterValue==t)return!1;var i=this.$content.closest(".vc_grid-container").data("initial-loading-animation");vcGridSettings.addItemsAnimation=i,this.$content.find(".vc_visible-item, .vc_grid_filter-item").removeClass("vc_visible-item vc_grid_filter-item "+("none"!==vcGridSettings.addItemsAnimation?vcGridSettings.addItemsAnimation+" animated":"")),this.filterValue=t,this.$content.find(".vc_grid-item"+this.filterValue).addClass("vc_grid_filter-item"),_.defer(this.showItems),this.initScroll()},t.prototype.addItems=function(t){t&&t.length&&(t=n(t),this.$el.html(t),this.unsetIsLoading(),this.$content=t.find('[data-vc-grid-content="true"]'),this.grid.initFilter(),this.filter(),window.vc_prettyPhoto())},t.prototype.initScroll=function(){var i=this;this.$content.unbind(".vcwaypoint"),new window.VcGridInfinite(this.$content,{container:"auto",items:".vc_grid-item",handle:{load:function(t){i.showItems(),i.checkNext(t)}}})},t.prototype.checkNext=function(t){var i;this.$content.find('.vc_grid_filter-item:not(".vc_visible-item")').length&&(i=this,_.defer(function(){return i.$content.vcwaypoint(t)}))},window.vcGridStyleLazy=t})(window.jQuery);
(a=>{var t=function(t){this.grid=t,this.settings=t.settings,this.$el=!1,this.$content=!1,this.filterValue=null,this.isLoading=!1,this.htmlCache=!1,this.$loader=a('<div class="vc_grid-loading"></div>'),this.init()};t.prototype.init=function(){_.bindAll(this,"addItems","initCarousel")},t.prototype.setIsLoading=function(){this.$loader.show(),this.isLoading=!0},t.prototype.unsetIsLoading=function(){this.isLoading=!1,this.$loader.hide()},t.prototype.render=function(){this.$el=this.grid.$el,this.$content=this.$el,this.$content.append(this.$loader),this.setIsLoading(),this.grid.ajax({},this.addItems)},t.prototype.filter=function(t){var i;return t=_.isUndefined(t)||"*"===t?"":t,this.filterValue!=t&&!(!this.htmlCache||!this.htmlCache.length)&&(this.$content.data("owl.vccarousel")&&(this.$content.off("initialized.owl.vccarousel"),this.$content.off("changed.owl.vccarousel"),this.$content.data("vcPagination")&&this.$content.data("vcPagination").twbsPagination("destroy"),this.$content.data("owl.vccarousel").destroy()),this.$content.empty(),i=a(".vc_grid-item",this.htmlCache),""!==t&&(i=i.filter(t)),this.filterValue=t,void this.buildSlides(i.addClass("vc_visible-item")))},t.prototype.buildSlides=function(t){for(var i,s=parseInt(this.settings.items_per_page,10),e=0,n=t.length;e<n;e+=s)i=t.slice(e,e+s),a('<div class="vc_pageable-slide-wrapper">').append(a(i)).appendTo(this.$content);this.$content.find(".vc_pageable-slide-wrapper:first").imagesLoaded(this.initCarousel)},t.prototype.addItems=function(t){this.$el.append(t),!1===this.htmlCache&&(this.htmlCache=t),this.unsetIsLoading(),this.$content=this.$el.find('[data-vc-pageable-content="true"]'),this.$content.addClass("owl-carousel vc_grid-owl-theme"),this.grid.initFilter(),this.filter(),window.vc_prettyPhoto()},t.prototype.initCarousel=function(){var n,t;a.fn.vcOwlCarousel&&((t=(n=this).$content.data("owl.vccarousel"))&&t.destroy(),this.$content.on("initialized.owl.vccarousel",function(t){var i,s=t.relatedTarget,t=s.items(),e=n.$content.closest(".vc_grid-container").data("initial-loading-animation");t.forEach(function(t){jQuery(t).find(".vc_grid-item").addClass(e+" animated")}),-1<n.settings.paging_design.indexOf("pagination")&&(t=s.items().length,(i=a("<div></div>").addClass("vc_grid-pagination").appendTo(n.$el)).twbsPagination({totalPages:t,visiblePages:n.settings.visible_pages,onPageClick:function(t,i){s.to(i-1),window.setTimeout(function(){var t=s.$element.find(".owl-item.active");t.length&&t.offset().top<a(window).scrollTop()&&a("html, body").animate({scrollTop:t.offset().top-100},500)},16)},paginationClass:"vc_grid-pagination-list vc_grid-"+n.settings.paging_design+" vc_grid-pagination-color-"+n.settings.paging_color,nextClass:"vc_grid-next",first:20<t&&" ",last:20<t&&" ",prev:5<t&&" ",next:5<t&&" ",prevClass:"vc_grid-prev",lastClass:"vc_grid-last",loop:n.settings.loop,firstClass:"vc_grid-first",pageClass:"vc_grid-page",activeClass:"vc_grid-active",disabledClass:"vc_grid-disabled"}),a(this).data("vcPagination",i),n.$content.on("changed.owl.vccarousel",function(t){var i=a(this).data("vcPagination").data("twbsPagination");i.render(i.getPages(1+t.page.index)),i.setupEvents()}),window.vc_prettyPhoto())}).vcOwlCarousel({items:1,loop:this.settings.loop,margin:10,nav:!0,navText:["",""],navContainerClass:"vc_grid-owl-nav vc_grid-owl-nav-color-"+this.settings.arrows_color,dotClass:"vc_grid-owl-dot",dotsClass:"vc_grid-owl-dots vc_grid-"+this.settings.paging_design+" vc_grid-owl-dots-color-"+this.settings.paging_color,navClass:["vc_grid-owl-prev "+this.settings.arrows_design+" vc_grid-nav-prev-"+this.settings.arrows_position,"vc_grid-owl-next "+this.settings.arrows_design.replace("_left","_right")+" vc_grid-nav-next-"+this.settings.arrows_position],animateIn:"none"!==this.settings.animation_in&&this.settings.animation_in,animateOut:"none"!==this.settings.animation_out&&this.settings.animation_out,autoHeight:!0,autoplay:!0===this.settings.auto_play,autoplayTimeout:this.settings.speed,autoplayHoverPause:!0,callbacks:!0,onTranslated:function(){setTimeout(function(){a(window).trigger("grid:items:added",n.$el)},750)},onRefreshed:function(){setTimeout(function(){a(window).trigger("grid:items:added",n.$el)},750)}}))},window.vcGridStylePagination=t})(window.jQuery);
(n=>{var t=function(t){this.grid=t,this.settings=t.settings,this.filterValue=null,this.$el=!1,this.$content=!1,this.isLoading=!1,this.filtered=!1,this.$loader=n('<div class="vc_grid-loading"></div>'),this.masonryEnabled=!1,_.bindAll(this,"setMasonry"),this.init()};t.prototype=_.extend({},window.vcGridStyleAll.prototype,{render:function(){this.$el=this.grid.$el,this.$content=this.$el,_.defer(this.setIsLoading),this.grid.ajax({},this.addItems)},showItems:function(){var t=this.$content.find(".vc_grid-item"+this.filterValue),i=this;this.setIsLoading(),t.imagesLoaded(function(){t.addClass("vc_visible-item"),i.setItems(t),i.filtered&&(i.filtered=!1,i.setMasonry()),i.unsetIsLoading(),window.vc_prettyPhoto(),n(window).trigger("grid:items:added",i.$el)})},filter:function(t){if(t=_.isUndefined(t)||"*"===t?"":t,this.filterValue==t)return!1;this.filterValue=t,this.$content.data("masonry")&&this.$content.masonry("destroy"),this.masonryEnabled=!1,this.$content.find(".vc_visible-item").removeClass("vc_visible-item"),this.$content.find(".vc_grid-item"+this.filterValue),this.filtered=!0,n(window).on("resize",this.setMasonry),this.setMasonry(),this.showItems()},setIsLoading:function(){this.$el.append(this.$loader),this.isLoading=!0},unsetIsLoading:function(){this.isLoading=!1,this.$loader&&this.$loader.remove()},setItems:function(t){this.masonryEnabled?this.$content.masonry("appended",t):this.setMasonry()},setMasonry:function(t){var i,n,e,s;window.innerWidth<window.vcGridSettings.mobileWindowWidth?(this.$content.data("masonry")&&this.$content.masonry("destroy"),this.masonryEnabled=!1):this.masonryEnabled?(i=this).$content.imagesLoaded(function(){i.$content[0].style.display="none",i.$content[0].style.display="block",setTimeout(function(){i.$content.masonry("reloadItems"),i.$content.masonry("layout"),setTimeout(function(){i.$content.masonry("layout")},500)},200)}).progress(function(){i.$content.masonry("layout")}):(e=this.$content.closest(".vc_grid-container").data("initial-loading-animation"),s={itemSelector:".vc_visible-item",isResizeBound:!1},"none"===e?(s.hiddenStyle={visibility:"hidden",transition:"none"},s.visibleStyle={visibility:"visible",transition:"none"}):"fadeIn"===e?(s.hiddenStyle={opacity:0},s.visibleStyle={opacity:1}):(s.hiddenStyle={opacity:0,transform:"scale(0.001)"},s.visibleStyle={opacity:1,transform:"scale(1)"}),this.$content.masonry(s),t||(n=this,setTimeout(function(){n.$content.masonry(s)},100)),this.masonryEnabled=!0)}}),window.vcGridStyleAllMasonry=t})(window.jQuery);
(e=>{var i=function(i){this.grid=i,this.settings=i.settings,this.$el=!1,this.filterValue=null,this.filtered=!1,this.$content=!1,this.isLoading=!1,this.$loader=e('<div class="vc_grid-loading"></div>'),this.masonryEnabled=!1,_.bindAll(this,"setMasonry"),this.init()};i.prototype=_.extend({},window.vcGridStyleLazy.prototype,{render:function(){this.$el=this.grid.$el,this.$content=this.$el,this.setIsLoading(),this.grid.ajax({},this.addItems)},showItems:function(){if(!0===this.isLoading)return!1;this.setIsLoading();var i=this.$content.find(".vc_grid_filter-item:not(.vc_visible-item):lt("+this.settings.items_per_page+")"),t=this;i.imagesLoaded(function(){i.addClass("vc_visible-item"),t.setItems(i),t.filtered&&(t.filtered=!1,t.setMasonry(),t.initScroll(),window.vc_prettyPhoto()),t.unsetIsLoading(),e(window).trigger("grid:items:added",t.$el)})},setIsLoading:function(){this.$el.append(this.$loader),this.isLoading=!0},filter:function(i){if(i=_.isUndefined(i)||"*"===i?"":i,this.filterValue==i)return!1;this.$content.data("masonry")&&this.$content.masonry("destroy"),this.masonryEnabled=!1,this.$content.find(".vc_visible-item, .vc_grid_filter-item").removeClass("vc_visible-item vc_grid_filter-item"),this.filterValue=i,this.$content.find(".vc_grid-item"+this.filterValue).addClass("vc_grid_filter-item"),this.filtered=!0,e(window).on("resize",this.setMasonry),this.setMasonry(),_.defer(this.showItems)},setItems:function(i){this.masonryEnabled?this.$content.masonry("appended",i):this.setMasonry()},setMasonry:function(i){var t,e,s;window.innerWidth<window.vcGridSettings.mobileWindowWidth?(this.$content.data("masonry")&&this.$content.masonry("destroy"),this.masonryEnabled=!1):this.masonryEnabled?(this.$content.masonry("reloadItems"),this.$content.masonry("layout")):(e=this.$content.closest(".vc_grid-container").data("initial-loading-animation"),s={itemSelector:".vc_visible-item",isResizeBound:!1},"none"===e?(s.hiddenStyle={visibility:"hidden"},s.visibleStyle={visibility:"visible"}):"fadeIn"===e?(s.hiddenStyle={opacity:0},s.visibleStyle={opacity:1}):(s.hiddenStyle={opacity:0,transform:"scale(0.001)"},s.visibleStyle={opacity:1,transform:"scale(1)"}),this.$content.masonry(s),i||(t=this,setTimeout(function(){t.$content.masonry(s)},100)),this.masonryEnabled=!0)}}),window.vcGridStyleLazyMasonry=i})(window.jQuery);
(e=>{var t=function(t){this.grid=t,this.settings=t.settings,this.$loadMoreBtn=!1,this.$el=!1,this.filterValue=null,this.$content=!1,this.isLoading=!1,this.filtered=!1,this.$loader=e('<div class="vc_grid-loading"></div>'),this.masonryEnabled=!1,_.bindAll(this,"setMasonry"),this.init()};t.prototype=_.extend({},window.vcGridStyleLoadMore.prototype,{render:function(){this.$el=this.grid.$el,this.$content=this.$el,this.setIsLoading(),this.grid.ajax({},this.addItems)},showItems:function(){if(!0===this.isLoading)return!1;this.setIsLoading();var t=this.$content.find(".vc_grid_filter-item:not(.vc_visible-item):lt("+this.settings.items_per_page+")"),i=this;t.imagesLoaded(function(){t.addClass("vc_visible-item"),i.setItems(t),i.filtered&&(i.filtered=!1,i.setMasonry(),window.vc_prettyPhoto()),i.unsetIsLoading(),e(window).trigger("grid:items:added",i.$el),setTimeout(function(){i.$content.masonry(i.settings)},100)})},filter:function(t){if(t=_.isUndefined(t)||"*"===t?"":t,this.filterValue==t)return!1;this.$content.data("masonry")&&this.$content.masonry("destroy"),this.masonryEnabled=!1,this.$content.find(".vc_visible-item, .vc_grid_filter-item").removeClass("vc_visible-item vc_grid_filter-item"),this.filterValue=t,this.$content.find(".vc_grid-item"+this.filterValue).addClass("vc_grid_filter-item"),this.filtered=!0,e(window).on("resize",this.setMasonry),this.setMasonry(),this.showItems()},setIsLoading:function(){this.$el.append(this.$loader),this.$loadMoreBtn&&this.$loadMoreBtn.hide(),this.isLoading=!0},unsetIsLoading:function(){this.isLoading=!1,this.$loader&&this.$loader.remove(),this.setLoadMoreBtn()},setItems:function(t){this.masonryEnabled?this.$content.masonry("appended",t):this.setMasonry()},setMasonry:function(t){var i,e,s;window.innerWidth<window.vcGridSettings.mobileWindowWidth?(this.$content.data("masonry")&&this.$content.masonry("destroy"),this.masonryEnabled=!1):this.masonryEnabled?(this.$content.masonry("reloadItems"),this.$content.masonry("layout")):(e=this.$content.closest(".vc_grid-container").data("initial-loading-animation"),s={itemSelector:".vc_visible-item",isResizeBound:!1},"none"===e?(s.hiddenStyle={visibility:"hidden"},s.visibleStyle={visibility:"visible"}):"fadeIn"===e?(s.hiddenStyle={opacity:0},s.visibleStyle={opacity:1}):(s.hiddenStyle={opacity:0,transform:"scale(0.001)"},s.visibleStyle={opacity:1,transform:"scale(1)"}),this.$content.masonry(s),t||(i=this,setTimeout(function(){i.$content.masonry(s)},100)),this.masonryEnabled=!0)}}),window.vcGridStyleLoadMoreMasonry=t})(window.jQuery);
(s=>{var n,a={addItemsAnimation:"zoomIn",mobileWindowWidth:768,itemAnimationSpeed:1e3,itemAnimationDelay:[],clearAnimationDelays:function(){_.each(this.itemAnimationDelay,function(i){window.clearTimeout(i)}),this.itemAnimationDelay=[]}};(n=function(i){this.$el=s(i),this.settings={},this.$filter=!1,this.gridBuilder=!1,this.init()}).prototype.init=function(){_.bindAll(this,"filterItems","filterItemsDropdown"),this.setSettings(),this.initStyle(),this.initHover(),this.initZoneLink()},n.prototype.setSettings=function(){this.settings=s.extend({visible_pages:5},this.$el.data("vcGridSettings")||{})},n.prototype.initStyle=function(){var i=!!this.settings.style&&s.camelCase("vc-grid-style-"+this.settings.style);i&&!_.isUndefined(window[i])&&window[i].prototype.render&&(this.gridBuilder=new window[i](this),this.gridBuilder.render())},n.prototype.initFilter=function(){this.$filter=this.$el.find("[data-vc-grid-filter]"),this.$filterDropdown=this.$el.find("[data-vc-grid-filter-select]"),this.$filter.length&&this.$filter.find(".vc_grid-filter-item").off("click.vc-grid").on("click.vc-grid",this.filterItems),this.$filterDropdown.length&&this.$filterDropdown.off("change.vc-grid").on("change.vc-grid",this.filterItemsDropdown)},n.prototype.initHover=function(){this.$el.off("mouseover.vc-grid").off("mouseleave.vc-grid").on("mouseover.vc-grid",".vc_grid-item-mini",function(){s(this).addClass("vc_is-hover")}).on("mouseleave.vc-grid",".vc_grid-item-mini",function(){s(this).removeClass("vc_is-hover")})},n.prototype.initZoneLink=function(){window.vc_iframe?(this.$el.off("click.zonePostLink").on("click.zonePostLink","[data-vc-link]",function(){s(this);var i=s(this).data("vcLink");window.open(i)}),this.$el.off("click.vc-grid-zone").on("click.vc-grid-zone",".vc_gitem-link",function(i){i&&i.prevenDefault&&i.preventDefault();i=s(this);i.hasClass("vc-gitem-link-ajax")||i.hasClass("prettyphoto")||window.open(i.attr("href"))})):(this.$el.off("click.zonePostLink").on("click.zonePostLink","[data-vc-link]",function(){var i=s(this),t=s(this).data("vcLink");"_blank"===i.data("vcTarget")?window.open(t):window.location.href=t}),this.$el.off("click.vc-grid-zone").on("click.vc-grid-zone",".vc_gitem-link",function(i){var t,e,n,a=s(this);a.hasClass("vc-gitem-link-ajax")&&(i.preventDefault(),t=new XMLHttpRequest,a.addClass("vc-spinner"),t.open("GET",a.attr("href"),!0),t.send(),e=function(){a.removeClass("vc-spinner vc-spinner-complete vc-spinner-failed")},n=0,t.onreadystatechange=function(){XMLHttpRequest.DONE===t.readyState&&(n=(200===t.status?a.addClass("vc-spinner-complete"):a.addClass("vc-spinner-failed"),n&&(window.clearTimeout(n),n=0),window.setTimeout(e,500)))})}))},n.prototype.initHover_old=function(){this.$el.on("mouseover",".vc_grid-item",function(){var n=s(this);n.hasClass("vc_is-hover")||(a.clearAnimationDelays(),n.addClass("vc_is-hover vc_is-animated"),n.find(".vc_grid-item-row-animate").each(function(){var i=s(this),t=i.data("animationIn"),e=i.data("animationOut");i.removeClass(e).addClass(t),a.itemAnimationDelay.push(_.delay(function(){i.removeClass(t),n.removeClass("vc_is-animated")},a.itemAnimationSpeed))}))}).on("mouseleave",".vc_grid-item",function(){var n=s(this);a.clearAnimationDelays(),n.addClass("vc_is-animated").removeClass("vc_is-hover"),n.find(".vc_grid-item-row-animate").each(function(){var i=n.find(".vc_grid-item-row-animate"),t=i.data("animationOut"),e=i.data("animationIn");i.addClass(t),a.itemAnimationDelay.push(_.delay(function(){i.removeClass(t+" "+e),n.removeClass("vc_is-animated")},a.itemAnimationSpeed-1))})})},n.prototype.filterItems=function(i){var t;if(i&&i.preventDefault&&i.preventDefault(),this.style&&s.camelCase("filter-"+this.style),t=(i=s(i.currentTarget).find("[data-vc-grid-filter-value]")).data("vcGridFilterValue"),i.hasClass("vc_active"))return!1;this.$filter.find(".vc_active").removeClass("vc_active"),this.$filterDropdown.find(".vc_active").removeClass("vc_active"),this.$filterDropdown.find('[value="'+t+'"]').addClass("vc_active").attr("selected","selected"),i.parent().addClass("vc_active"),this.gridBuilder.filter(t)},n.prototype.filterItemsDropdown=function(i){var t=this.$filterDropdown.find(":selected"),e=t.val();if(t.hasClass("vc_active"))return!1;this.$filterDropdown.find(".vc_active").removeClass("vc_active"),this.$filter.find(".vc_active").removeClass("vc_active"),this.$filter.find('[data-vc-grid-filter-value="'+e+'"]').parent().addClass("vc_active"),t.addClass("vc_active"),this.gridBuilder.filter(e)},n.prototype.ajax=function(i,t){_.isUndefined(i)&&(i={}),i=_.extend({action:"vc_get_vc_grid_data",vc_action:"vc_get_vc_grid_data",tag:this.settings.tag,data:this.settings,vc_post_id:this.$el.data("vcPostId"),_vcnonce:this.$el.data("vcPublicNonce")},i),s.ajax({type:"POST",dataType:"html",url:this.$el.data("vcRequest"),data:i}).done(t)},s.fn.vcGrid=function(e){return this.each(function(){var i=s(this),t=i.data("vcGrid");t||i.data("vcGrid",t=new n(this)),"string"==typeof e&&t[e]()})},s.fn.vcGrid.Constructor=n,s(document).ready(function(){s("[data-vc-grid-settings]").vcGrid()}),window.VcGrid=n,window.vcGridSettings=a})(window.jQuery);



(function($){'use strict';var martfury=martfury||{};martfury.init=function(){martfury.$body=$(document.body),martfury.$window=$(window),martfury.$header=$('#masthead');this.journey();this.testimonialSlides();this.partnerCarousel();this.gmaps();this.productsOfCategory();this.productsOfCategory2();this.productsTabs();this.categoryTabs();this.productsCarousel();this.dealsOfDay();this.productDealsCarousel();this.topSelling();this.productsListCarousel();this.brandsGrid();this.brandImagesCarousel();if($.fn.counterUp){$('.martfury-counter .counter-value').counterUp()}};martfury.journey=function(){$('.martfury-journey').each(function(){var $el=$(this),$tabs=$el.find('ul li a'),$first=$tabs.filter(':first'),$content=$el.find('.journey-wrapper'),width=$el.find('ul').width(),num=$el.attr('data-number'),space,pos,val;if(num==1){space=0}else{space=(width-40)/(num-1)}
for(var i=1;i<=num;i++){var $this=$('.journey-tab-'+i);if(martfuryShortCode.direction==='true'){if($this.hasClass('reverse')){pos='left';val=(i-num)*space*-1}else{pos='right';val=(i-1)*space}}else{if($this.hasClass('reverse')){pos='right';val=(i-num)*space*-1}else{pos='left';val=(i-1)*space}}
$this.css(pos,val+15)}
$first.addClass('active');$content.filter(':first').addClass('active');$tabs.on('click',function(e){e.preventDefault();var $this=$(this),tab_id=$this.attr('data-tab');if($this.hasClass('active')){return}
$tabs.removeClass('active');$content.removeClass('active');$this.addClass('active');$('#'+tab_id).addClass('active')})})};martfury.testimonialSlides=function(){if(martfuryShortCode.length===0||typeof martfuryShortCode.testimonial==='undefined'){return}
$.each(martfuryShortCode.testimonial,function(id,testimonialData){var $testimonial=$(document.getElementById(id));$testimonial.not('.slick-initialized').slick({rtl:(martfuryShortCode.direction==='true'),slidesToShow:2,infinite:testimonialData.autoplay,arrows:testimonialData.nav,prevArrow:'<div class="mf-left-arrow"><i class="icon-chevron-left"></i></div>',nextArrow:'<div class="mf-right-arrow"><i class="icon-chevron-right"></i></div>',autoplay:testimonialData.autoplay,autoplaySpeed:testimonialData.autoplay_speed,speed:800,dots:testimonialData.dot,responsive:[{breakpoint:1200,settings:{arrows:!1,dots:!0}},{breakpoint:768,settings:{arrows:!1,dots:!0}},{breakpoint:480,settings:{slidesToShow:1,arrows:!1,dots:!0}}]});$testimonial.on('afterChange',function(){martfury.lazyLoad($testimonial)})})};martfury.partnerCarousel=function(){$('.martfury-partner.carousel-type').each(function(){var $this=$(this),$items=$this.find('.list-item'),columns=$this.data('columns'),autoplay=$this.data('auto'),autoplaySpeed=autoplay;autoplay=parseInt(autoplaySpeed)>0?!0:!1;$items.not('.slick-initialized').slick({rtl:(martfuryShortCode.direction==='true'),slidesToShow:columns,infinite:!1,arrows:!1,dots:!1,autoplay:autoplay,autoplaySpeed:autoplaySpeed,responsive:[{breakpoint:1200,settings:{slidesToShow:4}},{breakpoint:768,settings:{slidesToShow:3}},{breakpoint:480,settings:{slidesToShow:2}}]})})};martfury.productsOfCategory=function(){if(martfuryShortCode.length===0||typeof martfuryShortCode.productsOfCategory==='undefined'){return}
$.each(martfuryShortCode.productsOfCategory,function(id,productsOfCategoryData){var $viewPort=$(document.getElementById(id));martfury.catBannerCarousel($viewPort.find('.images-list'),productsOfCategoryData)});$(window).on('scroll',function(){var offSet=0;$.each(martfuryShortCode.productsOfCategory,function(id,productsOfCategoryData){var $viewPort=$(document.getElementById(id));if(!$viewPort.hasClass('no-infinite')){if($viewPort.is(':in-viewport('+offSet+')')){productsOfCatAjax($viewPort,productsOfCategoryData);$viewPort.addClass('no-infinite')}}})}).trigger('scroll');function productsOfCatAjax($viewPort,productsOfCategoryData){var data={nonce:martfuryData.nonce,params:productsOfCategoryData.params,element:'productsOfCat'},ajax_url=martfuryShortCode.wc_ajax_url.toString().replace('%%endpoint%%','martfury_get_shortcode_ajax');$.post(ajax_url,data,function(response){$viewPort.html(response.data);martfury.lazyLoad($viewPort);martfury.catBannerCarousel($viewPort.find('.images-list'),productsOfCategoryData);$(document.body).trigger('martfury_get_products_ajax_success')})}};martfury.productsOfCategory2=function(){if(martfuryShortCode.length===0||typeof martfuryShortCode.productsOfCategory2==='undefined'){return}
$.each(martfuryShortCode.productsOfCategory2,function(id,productsOfCategoryData){var $viewPort=$(document.getElementById(id));martfury.catBannerCarousel($viewPort.find('.images-list'),productsOfCategoryData)});$(window).on('scroll',function(){var offSet=0;$.each(martfuryShortCode.productsOfCategory2,function(id,productsOfCategoryData){var $viewPort=$(document.getElementById(id));if(!$viewPort.hasClass('no-infinite')){if($viewPort.is(':in-viewport('+offSet+')')){productsOfCatAjax($viewPort,productsOfCategoryData);$viewPort.addClass('no-infinite')}}})}).trigger('scroll');function productsOfCatAjax($viewPort,productsOfCategoryData){var data={nonce:martfuryData.nonce,params:productsOfCategoryData.params,element:'productsOfCat2'},ajax_url=martfuryShortCode.wc_ajax_url.toString().replace('%%endpoint%%','martfury_get_shortcode_ajax');$.post(ajax_url,data,function(response){$viewPort.html(response.data);martfury.lazyLoad($viewPort);martfury.catBannerCarousel($viewPort.find('.images-list'),productsOfCategoryData);martfury.getproductsCarousel($viewPort.find('.mf-products-tabs'),productsOfCategoryData);martfury.productTabsActive($viewPort);$(document.body).trigger('martfury_get_products_ajax_success')})}};martfury.productTabsActive=function($viewPort){$viewPort.find('.tabs-nav').on('click','a',function(e){e.preventDefault();var $this=$(this),currentTab=$this.data('href');if($this.hasClass('active')){return}
$viewPort.find('.tabs-nav a').removeClass('active');$this.addClass('active');$viewPort.find('.tabs-panel').removeClass('active');$viewPort.find('.tabs-'+currentTab).addClass('active')})}
martfury.catBannerCarousel=function($id,productsOfCategoryData){$id.not('.slick-initialized').slick({rtl:(martfuryShortCode.direction==='true'),slidesToShow:1,arrows:productsOfCategoryData.navigation,prevArrow:'<span class="icon-chevron-left slick-prev-arrow"></span>',nextArrow:'<span class="icon-chevron-right slick-next-arrow"></span>',infinite:productsOfCategoryData.infinite,autoplay:productsOfCategoryData.autoplay,autoplaySpeed:productsOfCategoryData.autoplay_speed,dots:productsOfCategoryData.pagination});$id.on('afterChange',function(){martfury.lazyLoad($id)})};martfury.productsTabs=function(){if(martfuryShortCode.length===0||typeof martfuryShortCode.productsTabs==='undefined'){return}
$.each(martfuryShortCode.productsTabs,function(id,productsTabsData){var $viewPort=$(document.getElementById(id));martfury.getproductsCarousel($viewPort,productsTabsData);$viewPort.find('.tabs-nav').on('click','a',function(e){e.preventDefault();var $this=$(this),currentTab=$this.data('href'),$currentEl=$this.closest('.mf-products-tabs');if($this.hasClass('active')){return}
$viewPort.find('.tabs-nav a').removeClass('active');$this.addClass('active');$viewPort.find('.tabs-panel').removeClass('active');$viewPort.find('.tabs-'+currentTab).addClass('active');getProductsAJAXHandler($this,$currentEl,productsTabsData)})});$(window).on('scroll',function(){var offSet=0;$.each(martfuryShortCode.productsTabs,function(id,productsTabsData){var $viewPort=$(document.getElementById(id));if(!$viewPort.hasClass('no-infinite')){if($viewPort.is(':in-viewport('+offSet+')')){productsTabsAjax($viewPort,productsTabsData);$viewPort.addClass('no-infinite')}}})}).trigger('scroll');function productsTabsAjax($viewPort,productsTabsData){var data={nonce:martfuryData.nonce,params:productsTabsData.params,element:'productTabs'},ajax_url=martfuryShortCode.wc_ajax_url.toString().replace('%%endpoint%%','martfury_get_shortcode_ajax');$.post(ajax_url,data,function(response){$viewPort.find('.tabs-content').html(response.data);martfury.lazyLoad($viewPort);martfury.getproductsCarousel($viewPort,productsTabsData);$(document.body).trigger('martfury_get_products_ajax_success')})}
function getProductsAJAXHandler($el,$tabs,productsTabsData){var tab=$el.data('href'),$content=$tabs.find('.tabs-'+tab);if($content.hasClass('tab-loaded')){return}
var data={'columns':productsTabsData.pro_columns,'products':tab,'per_page':productsTabsData.per_page,'product_cats':productsTabsData.pro_cats,},ajax_url=martfuryShortCode.wc_ajax_url.toString().replace('%%endpoint%%','mf_wpbakery_load_products');$.post(ajax_url,data,function(response){if(!response){return}
$content.html(response.data);martfury.lazyLoad($content);martfury.getproductsCarousel($content,productsTabsData);$content.addClass('tab-loaded')})}};martfury.productsCarousel=function(){if(martfuryShortCode.length===0||typeof martfuryShortCode.productsCarousel==='undefined'){return}
$.each(martfuryShortCode.productsCarousel,function(id,productsData){var $viewPort=$(document.getElementById(id));martfury.getproductsCarousel($viewPort,productsData)});$(window).on('scroll',function(){var offSet=0;$.each(martfuryShortCode.productsCarousel,function(id,productsData){var $viewPort=$(document.getElementById(id));if(!$viewPort.hasClass('no-infinite')){if($viewPort.is(':in-viewport('+offSet+')')){productsCarouselAjax($viewPort,productsData);$viewPort.addClass('no-infinite')}}})}).trigger('scroll');function productsCarouselAjax($viewPort,productsData){var data={nonce:martfuryData.nonce,params:productsData.params,element:'productsCarousel'},ajax_url=martfuryShortCode.wc_ajax_url.toString().replace('%%endpoint%%','martfury_get_shortcode_ajax');$.post(ajax_url,data,function(response){$viewPort.html(response.data);martfury.lazyLoad($viewPort);martfury.getproductsCarousel($viewPort,productsData);$(document.body).trigger('martfury_get_products_ajax_success')})}};martfury.dealsOfDay=function(){if(martfuryShortCode.length===0||typeof martfuryShortCode.DealsOfDay==='undefined'){return}
$.each(martfuryShortCode.DealsOfDay,function(id,productsData){var $viewPort=$(document.getElementById(id));$viewPort.find('ul.products').not('.slick-initialized').slick({rtl:(martfuryShortCode.direction==='true'),slidesToShow:productsData.pro_columns,slidesToScroll:productsData.pro_columns,arrows:productsData.pro_navigation,dots:productsData.pro_navigation,infinite:productsData.pro_infinite,prevArrow:'<span class="icon-chevron-left slick-prev-arrow"></span>',nextArrow:'<span class="icon-chevron-right slick-next-arrow"></span>',autoplay:productsData.pro_autoplay,autoplaySpeed:productsData.pro_autoplay_speed,responsive:[{breakpoint:1366,settings:{slidesToShow:parseInt(productsData.pro_columns)>5?5:productsData.pro_columns,slidesToScroll:parseInt(productsData.pro_columns)>5?5:productsData.pro_columns}},{breakpoint:1200,settings:{slidesToShow:parseInt(productsData.pro_columns)>4?4:productsData.pro_columns,slidesToScroll:parseInt(productsData.pro_columns)>4?4:productsData.pro_columns}},{breakpoint:992,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:767,settings:{slidesToShow:2,slidesToScroll:2}}]});$viewPort.on('afterChange',function(){martfury.lazyLoad($viewPort)})})};martfury.productDealsCarousel=function(){if(martfuryShortCode.length===0||typeof martfuryShortCode.productDealsCarousel==='undefined'){return}
$.each(martfuryShortCode.productDealsCarousel,function(id,productsData){var $viewPort=$(document.getElementById(id));$viewPort.find('.products').not('.slick-initialized').slick({rtl:(martfuryShortCode.direction==='true'),slidesToShow:productsData.pro_columns,slidesToScroll:productsData.pro_columns,arrows:productsData.pro_navigation,infinite:productsData.pro_infinite,prevArrow:$viewPort.find('.slick-prev-arrow'),nextArrow:$viewPort.find('.slick-next-arrow'),autoplay:productsData.pro_autoplay,autoplaySpeed:productsData.pro_autoplay_speed});$viewPort.find('.woocommerce-product-gallery__image').on('click',function(){var href=$(this).closest('div.product').find('.product-title > a').attr('href');location.href=href;return!1});$viewPort.on('afterChange',function(){martfury.lazyLoad($viewPort)})})};martfury.topSelling=function(){if(martfuryShortCode.length===0||typeof martfuryShortCode.topSelling==='undefined'){return}
$.each(martfuryShortCode.topSelling,function(id,productsData){var $viewPort=$(document.getElementById(id));martfury.getproductsCarousel($viewPort,productsData)});$(window).on('scroll',function(){var offSet=0;$.each(martfuryShortCode.topSelling,function(id,productsData){var $viewPort=$(document.getElementById(id));if(!$viewPort.hasClass('no-infinite')){if($viewPort.is(':in-viewport('+offSet+')')){productsCarouselAjax($viewPort,productsData);$viewPort.addClass('no-infinite')}}})}).trigger('scroll');function productsCarouselAjax($viewPort,productsData){var data={nonce:martfuryData.nonce,params:productsData.params,element:'topSelling'},ajax_url=martfuryShortCode.wc_ajax_url.toString().replace('%%endpoint%%','martfury_get_shortcode_ajax');$.post(ajax_url,data,function(response){$viewPort.html(response.data);martfury.lazyLoad($viewPort);martfury.getproductsCarousel($viewPort,productsData);$(document.body).trigger('martfury_get_products_ajax_success')})}};martfury.productsListCarousel=function(){if(martfuryShortCode.length===0||typeof martfuryShortCode.productsListCarousel==='undefined'){return}
$.each(martfuryShortCode.productsListCarousel,function(id,productsData){var $viewPort=$(document.getElementById(id));$viewPort.find('ul.products').not('.slick-initialized').slick({rtl:(martfuryShortCode.direction==='true'),slidesToShow:1,slidesToScroll:1,arrows:!1,dots:productsData.dots,infinite:productsData.infinite,autoplay:productsData.autoplay,autoplaySpeed:productsData.autoplay_speed});$viewPort.on('afterChange',function(){martfury.lazyLoad($viewPort)})})};martfury.getproductsCarousel=function($id,productsData){$id.find('ul.products').not('.slick-initialized').slick({rtl:(martfuryShortCode.direction==='true'),slidesToShow:productsData.pro_columns,slidesToScroll:productsData.pro_columns,arrows:productsData.pro_navigation,dots:productsData.pro_navigation,infinite:productsData.pro_infinite,prevArrow:'<span class="icon-chevron-left slick-prev-arrow"></span>',nextArrow:'<span class="icon-chevron-right slick-next-arrow"></span>',autoplay:productsData.pro_autoplay,autoplaySpeed:productsData.pro_autoplay_speed,responsive:[{breakpoint:1600,settings:{slidesToShow:parseInt(productsData.pro_columns)>6?6:productsData.pro_columns,slidesToScroll:parseInt(productsData.pro_columns)>6?6:productsData.pro_columns}},{breakpoint:1366,settings:{slidesToShow:parseInt(productsData.pro_columns)>5?5:productsData.pro_columns,slidesToScroll:parseInt(productsData.pro_columns)>5?5:productsData.pro_columns}},{breakpoint:1200,settings:{slidesToShow:parseInt(productsData.pro_columns)>4?4:productsData.pro_columns,slidesToScroll:parseInt(productsData.pro_columns)>4?4:productsData.pro_columns}},{breakpoint:992,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:767,settings:{slidesToShow:2,slidesToScroll:2}}]});$id.on('afterChange',function(){martfury.lazyLoad($id)})};martfury.categoryTabs=function(){var $tabs=$('.mf-category-tabs');if($tabs.length<1){return}
$tabs.find('ul.tabs-nav').not('.slick-initialized').slick({rtl:(martfuryShortCode.direction==='true'),slidesToShow:8,infinite:!1,prevArrow:'<span class="icon-chevron-left slick-prev-arrow"></span>',nextArrow:'<span class="icon-chevron-right slick-next-arrow"></span>',responsive:[{breakpoint:1200,settings:{slidesToShow:6,slidesToScroll:6}},{breakpoint:992,settings:{slidesToShow:4,slidesToScroll:4}},{breakpoint:480,settings:{slidesToShow:2,slidesToScroll:2}}]})};martfury.lazyLoad=function($els){$els.find('img.lazy').lazyload({load:function(){$(this).removeClass('lazy')}}).trigger('appear')};martfury.gmaps=function(){if(martfuryShortCode.length===0||typeof martfuryShortCode.map==='undefined'){return}
var mapOptions={scrollwheel:!1,draggable:!0,zoom:10,mapTypeId:google.maps.MapTypeId.ROADMAP,panControl:!1,zoomControl:!0,zoomControlOptions:{style:google.maps.ZoomControlStyle.SMALL},scaleControl:!1,streetViewControl:!1},customMap;var bounds=new google.maps.LatLngBounds();var infoWindow=new google.maps.InfoWindow();$.each(martfuryShortCode.map,function(id,mapData){var map_color=mapData.map_color,road_highway_color=mapData.road_highway_color;var styles=[{'featureType':'administrative','elementType':'labels.text.fill','stylers':[{'color':'#444444'}]},{'featureType':'landscape','elementType':'all','stylers':[{'color':'#f2f2f2'}]},{'featureType':'landscape','elementType':'geometry.fill','stylers':[{'color':'#f2f2f2'}]},{'featureType':'landscape','elementType':'geometry.stroke','stylers':[{'color':'#000000'}]},{'featureType':'poi','elementType':'all','stylers':[{'visibility':'off'}]},{'featureType':'road','elementType':'all','stylers':[{'saturation':-100},{'lightness':45}]},{'featureType':'road.highway','elementType':'all','stylers':[{'visibility':'simplified'}]},{'featureType':'road.highway','elementType':'geometry.fill','stylers':[{'color':road_highway_color}]},{'featureType':'road.arterial','elementType':'labels.icon','stylers':[{'visibility':'off'}]},{'featureType':'road.local','elementType':'geometry.fill','stylers':[{'color':'#e6e6e6'}]},{'featureType':'transit','elementType':'all','stylers':[{'visibility':'off'}]},{'featureType':'water','elementType':'all','stylers':[{'visibility':'on'},{'color':map_color}]}];customMap=new google.maps.StyledMapType(styles,{name:'Styled Map'});if(mapData.number>1){mutiMaps(infoWindow,bounds,mapOptions,mapData,id,styles,customMap)}else{singleMap(mapOptions,mapData,id,styles,customMap)}})};function singleMap(mapOptions,mapData,id,styles,customMap){var map,marker,location=new google.maps.LatLng(mapData.lat,mapData.lng);mapOptions.zoom=parseInt(mapData.zoom,10);mapOptions.center=location;mapOptions.mapTypeControlOptions={mapTypeIds:[google.maps.MapTypeId.ROADMAP]};map=new google.maps.Map(document.getElementById(id),mapOptions);var markerOptions={map:map,position:location};if(mapData.marker){markerOptions.icon={url:mapData.marker}}
map.mapTypes.set('map_style',customMap);map.setMapTypeId('map_style');marker=new google.maps.Marker(markerOptions);if(mapData.info){var infoWindow=new google.maps.InfoWindow({content:'<div class="info-box mf-map">'+mapData.info+'</div>',maxWidth:600});google.maps.event.addListener(marker,'click',function(){infoWindow.open(map,marker)})}}
function mutiMaps(infoWindow,bounds,mapOptions,mapData,id,styles,customMap){mapOptions.zoom=parseInt(mapData.zoom,10);mapOptions.mapTypeControlOptions={mapTypeIds:[google.maps.MapTypeId.ROADMAP]};var map=new google.maps.Map(document.getElementById(id),mapOptions);map.mapTypes.set('map_style',customMap);map.setMapTypeId('map_style');for(var i=0;i<mapData.number;i++){var lats=mapData.lat,lng=mapData.lng,info=mapData.info;var position=new google.maps.LatLng(lats[i],lng[i]);bounds.extend(position);var markerOptions={map:map,position:position};if(mapData.marker){markerOptions.icon={url:mapData.marker}}
var marker=new google.maps.Marker(markerOptions);googleMaps(infoWindow,map,marker,info[i]);map.fitBounds(bounds)}}
function googleMaps(infoWindow,map,marker,info){google.maps.event.addListener(marker,'click',function(){infoWindow.setContent(info);infoWindow.open(map,marker)})}
martfury.brandsGrid=function(){if(martfuryShortCode.length===0||typeof martfuryShortCode.productsbrandCarousel==='undefined'){return}
$.each(martfuryShortCode.productsbrandCarousel,function(id,productsData){var $viewPort=$(document.getElementById(id));productBrandsCarousel($viewPort,productsData);productBrandsInfinite($viewPort);function productBrandsInfinite($viewPort){$(window).on('scroll',function(){var offSet=0;if($viewPort.is(':in-viewport('+offSet+')')){$viewPort.find('.navigation-number a').trigger('click')}}).trigger('scroll');$viewPort.find('.navigation-number').on('click','a',function(e){e.preventDefault();var $el=$(this);if($el.data('requestRunning')){return}
$el.data('requestRunning',!0);var $pagination=$el.closest('.navigation-number'),$products=$pagination.prev('.product-brands'),href=$el.attr('href');$el.parent().addClass('loading');$.get(href,function(response){var content=$(response).find('.mf-brands-grid .product-brands').children('.brand-item-wrapper'),$pagination_html=$(response).find('.navigation-number').html();$pagination.html($pagination_html);$products.append(content);martfury.lazyLoad(content);productBrandsCarousel(content,productsData);$pagination.find('a').data('requestRunning',!1);$pagination.removeClass('loading')})})}});function productBrandsCarousel($viewPort,productsData){var slidesToShow=parseInt(productsData.slidesToShow),slidesToScroll=parseInt(productsData.slidesToScroll);$viewPort.find('ul.products').not('.slick-initialized').slick({rtl:(martfuryShortCode.direction==='true'),slidesToShow:slidesToShow,slidesToScroll:slidesToScroll,arrows:productsData.slidesArrows,infinite:productsData.slideInfinite,prevArrow:'<span class="icon-chevron-left slick-prev-arrow"></span>',nextArrow:'<span class="icon-chevron-right slick-next-arrow"></span>',autoplay:productsData.slideAutoplay,autoplaySpeed:productsData.slideAutoplaySpeed,responsive:[{breakpoint:992,settings:{slidesToShow:slidesToShow>2?2:slidesToShow,slidesToScroll:slidesToScroll>2?2:slidesToScroll}},{breakpoint:480,settings:{slidesToShow:slidesToShow>1?1:slidesToShow,slidesToScroll:slidesToScroll>1?1:slidesToScroll}}]});$viewPort.on('afterChange',function(){martfury.lazyLoad($viewPort)})}};martfury.brandImagesCarousel=function(){if(martfuryShortCode.length===0||typeof martfuryShortCode.productsImagesCarousel==='undefined'){return}
$.each(martfuryShortCode.productsImagesCarousel,function(id,productsData){var $viewPort=$(document.getElementById(id)),slidesToShow=parseInt(productsData.slidesToShow),slidesToScroll=parseInt(productsData.slidesToScroll);$viewPort.find('.images-list').not('.slick-initialized').slick({rtl:(martfuryShortCode.direction==='true'),slidesToShow:slidesToShow,slidesToScroll:slidesToScroll,arrows:productsData.slidesArrows,infinite:productsData.slideInfinite,prevArrow:'<span class="icon-chevron-left slick-prev-arrow"></span>',nextArrow:'<span class="icon-chevron-right slick-next-arrow"></span>',autoplay:productsData.slideAutoplay,autoplaySpeed:productsData.slideAutoplaySpeed,responsive:[{breakpoint:992,settings:{slidesToShow:slidesToShow>4?4:slidesToShow,slidesToScroll:slidesToScroll>4?4:slidesToScroll}},{breakpoint:800,settings:{slidesToShow:slidesToShow>3?3:slidesToShow,slidesToScroll:slidesToScroll>3?3:slidesToScroll}},{breakpoint:600,settings:{slidesToShow:slidesToShow>2?2:slidesToShow,slidesToScroll:slidesToScroll>2?2:slidesToScroll}},{breakpoint:400,settings:{slidesToShow:slidesToShow>1?1:slidesToShow,slidesToScroll:slidesToScroll>1?1:slidesToScroll}}]});$viewPort.on('afterChange',function(){martfury.lazyLoad($viewPort)})})}
$(function(){martfury.init()})})(jQuery);


