document.documentElement.className=document.documentElement.className+' yes-js js_active js';/*******************************************************
	   		- THEMEPUNCH TOOLS Ver. 6.0.2 - 
	 Changed with Slider Revolution Version : 6.2.6     
	      	Last Update of Tools 07.05.2020
*******************************************************/


!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t,e){t.exports=jQuery},function(t,e,n){n(2),n(5),t.exports=n(4)},function(t,e,n){var r,i,u,s;
/*!
 * @fileOverview TouchSwipe - jQuery Plugin @version 1.6.18 / SANDBOXED VERSION FOR TP
 * @author Matt Bryson http://www.github.com/mattbryson
 * @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin
 * @see http://labs.rampinteractive.co.uk/touchSwipe/
 * @see http://plugins.jquery.com/project/touchSwipe
 * @license
 * Copyright (c) 2010-2015 Matt Bryson
 * Dual licensed under the MIT or GPL Version 2 licenses.
 *
 */s=function(t){"use strict";var e="left",n="right",r="up",i="down",u="none",s="doubletap",a="longtap",o="horizontal",l="vertical",h="all",f="move",D="end",p="cancel",c="ontouchstart"in window,d=window.navigator.msPointerEnabled&&!window.PointerEvent&&!c,g=(window.PointerEvent||window.navigator.msPointerEnabled)&&!c,_="TouchSwipe";function m(m,v){v=t.extend({},v);var y=c||g||!v.fallbackToMouseEvents,C=y?g?d?"MSPointerDown":"pointerdown":"touchstart":"mousedown",x=y?g?d?"MSPointerMove":"pointermove":"touchmove":"mousemove",F=y?g?d?"MSPointerUp":"pointerup":"touchend":"mouseup",w=y?g?"mouseleave":null:"mouseleave",E=g?d?"MSPointerCancel":"pointercancel":"touchcancel",b=0,T=null,A=null,M=0,P=0,B=0,S=1,O=0,k=0,L=null,N=t(m),R="start",I=0,z={},Y=0,j=0,X=0,V=0,U=0,W=null,q=null;try{N.on(C,H),N.on(E,K)}catch(m){t.error("events not supported "+C+","+E+" on jQuery.swipe")}function H(u){if(!0!==N.data(_+"_intouch")&&!(0<t(u.target).closest(v.excludedElements,N).length)){var s=u.originalEvent?u.originalEvent:u;if(!s.pointerType||"mouse"!=s.pointerType||0!=v.fallbackToMouseEvents){var a,o,l=s.touches,f=l?l[0]:s;return R="start",l?I=l.length:!1!==v.preventDefaultEvents&&u.preventDefault(),k=A=T=null,S=1,O=B=P=M=b=0,(o={})[e]=yt(e),o[n]=yt(n),o.up=yt(r),o[i]=yt(i),L=o,ct(),_t(0,f),!l||I===v.fingers||v.fingers===h||st()?(Y=wt(),2==I&&(_t(1,l[1]),P=B=xt(z[0].start,z[1].start)),(v.swipeStatus||v.pinchStatus)&&(a=tt(s,R))):a=!1,!1===a?(tt(s,R=p),a):(v.hold&&(q=setTimeout(t.proxy((function(){N.trigger("hold",[s.target]),v.hold&&(a=v.hold.call(N,s,s.target))}),this),v.longTapThreshold)),gt(!0),null)}}}function G(s){var a=s.originalEvent?s.originalEvent:s;if(R!==D&&R!==p&&!dt()){var c,d,g,_,m,y,C,x=a.touches,F=mt(x?x[0]:a);if(j=wt(),x&&(I=x.length),v.hold&&clearTimeout(q),R=f,2==I&&(0==P?(_t(1,x[1]),P=B=xt(z[0].start,z[1].start)):(mt(x[1]),B=xt(z[0].end,z[1].end),z[0].end,z[1].end,k=S<1?"out":"in"),S=(B/P*1).toFixed(2),O=Math.abs(P-B)),I===v.fingers||v.fingers===h||!x||st()){if(T=Ft(F.start,F.end),function(t,s){if(!1!==v.preventDefaultEvents)if(v.allowPageScroll===u)t.preventDefault();else{var a="auto"===v.allowPageScroll;switch(s){case e:(v.swipeLeft&&a||!a&&v.allowPageScroll!=o)&&t.preventDefault();break;case n:(v.swipeRight&&a||!a&&v.allowPageScroll!=o)&&t.preventDefault();break;case r:(v.swipeUp&&a||!a&&v.allowPageScroll!=l)&&t.preventDefault();break;case i:(v.swipeDown&&a||!a&&v.allowPageScroll!=l)&&t.preventDefault()}}}(s,A=Ft(F.last,F.end)),y=F.start,C=F.end,b=Math.round(Math.sqrt(Math.pow(C.x-y.x,2)+Math.pow(C.y-y.y,2))),M=Ct(),function(t,e){t!=u&&(e=Math.max(e,vt(t)),L[t].distance=e)}(T,b),c=tt(a,R),!v.triggerOnTouchEnd||v.triggerOnTouchLeave){var w=!0;v.triggerOnTouchLeave&&(g={left:(m=(_=t(_=this)).offset()).left,right:m.left+_.outerWidth(),top:m.top,bottom:m.top+_.outerHeight()},w=(d=F.end).x>g.left&&d.x<g.right&&d.y>g.top&&d.y<g.bottom),!v.triggerOnTouchEnd&&w?R=J(f):v.triggerOnTouchLeave&&!w&&(R=J(D)),R!=p&&R!=D||tt(a,R)}}else tt(a,R=p);!1===c&&tt(a,R=p)}}function Q(t){var e,n=t.originalEvent?t.originalEvent:t,r=n.touches;if(r){if(r.length&&!dt())return e=n,X=wt(),V=e.touches.length+1,!0;if(r.length&&dt())return!0}return dt()&&(I=V),j=wt(),M=Ct(),rt()||!nt()?tt(n,R=p):v.triggerOnTouchEnd||!1===v.triggerOnTouchEnd&&R===f?(!1!==v.preventDefaultEvents&&!1!==t.cancelable&&t.preventDefault(),tt(n,R=D)):!v.triggerOnTouchEnd&&ft()?et(n,R=D,"tap"):R===f&&tt(n,R=p),gt(!1),null}function K(){B=P=Y=j=I=0,S=1,ct(),gt(!1)}function Z(t){var e=t.originalEvent?t.originalEvent:t;v.triggerOnTouchLeave&&tt(e,R=J(D))}function $(){N.off(C,H),N.off(E,K),N.off(x,G),N.off(F,Q),w&&N.off(w,Z),gt(!1)}function J(t){var e=t,n=it(),r=nt(),i=rt();return!n||i?e=p:!r||t!=f||v.triggerOnTouchEnd&&!v.triggerOnTouchLeave?!r&&t==D&&v.triggerOnTouchLeave&&(e=p):e=D,e}function tt(t,e){var n,r=t.touches;return(at()&&ot()||ot())&&(n=et(t,e,"swipe")),(ut()&&st()||st())&&!1!==n&&(n=et(t,e,"pinch")),pt()&&Dt()&&!1!==n?n=et(t,e,s):M>v.longTapThreshold&&b<10&&v.longTap&&!1!==n?n=et(t,e,a):1!==I&&c||!(isNaN(b)||b<v.threshold)||!ft()||!1===n||(n=et(t,e,"tap")),e===p&&K(),e===D&&(r&&r.length||K()),n}function et(u,o,l){var h;if("swipe"==l){if(N.trigger("swipeStatus",[o,T||null,b||0,M||0,I,z,A]),v.swipeStatus&&!1===(h=v.swipeStatus.call(N,u,o,T||null,b||0,M||0,I,z,A)))return!1;if(o==D&&at()){if(clearTimeout(W),clearTimeout(q),N.trigger("swipe",[T,b,M,I,z,A]),v.swipe&&!1===(h=v.swipe.call(N,u,T,b,M,I,z,A)))return!1;switch(T){case e:N.trigger("swipeLeft",[T,b,M,I,z,A]),v.swipeLeft&&(h=v.swipeLeft.call(N,u,T,b,M,I,z,A));break;case n:N.trigger("swipeRight",[T,b,M,I,z,A]),v.swipeRight&&(h=v.swipeRight.call(N,u,T,b,M,I,z,A));break;case r:N.trigger("swipeUp",[T,b,M,I,z,A]),v.swipeUp&&(h=v.swipeUp.call(N,u,T,b,M,I,z,A));break;case i:N.trigger("swipeDown",[T,b,M,I,z,A]),v.swipeDown&&(h=v.swipeDown.call(N,u,T,b,M,I,z,A))}}}if("pinch"==l){if(N.trigger("pinchStatus",[o,k||null,O||0,M||0,I,S,z]),v.pinchStatus&&!1===(h=v.pinchStatus.call(N,u,o,k||null,O||0,M||0,I,S,z)))return!1;if(o==D&&ut())switch(k){case"in":N.trigger("pinchIn",[k||null,O||0,M||0,I,S,z]),v.pinchIn&&(h=v.pinchIn.call(N,u,k||null,O||0,M||0,I,S,z));break;case"out":N.trigger("pinchOut",[k||null,O||0,M||0,I,S,z]),v.pinchOut&&(h=v.pinchOut.call(N,u,k||null,O||0,M||0,I,S,z))}}return"tap"==l?o!==p&&o!==D||(clearTimeout(W),clearTimeout(q),Dt()&&!pt()?(U=wt(),W=setTimeout(t.proxy((function(){U=null,N.trigger("tap",[u.target]),v.tap&&(h=v.tap.call(N,u,u.target))}),this),v.doubleTapThreshold)):(U=null,N.trigger("tap",[u.target]),v.tap&&(h=v.tap.call(N,u,u.target)))):l==s?o!==p&&o!==D||(clearTimeout(W),clearTimeout(q),U=null,N.trigger("doubletap",[u.target]),v.doubleTap&&(h=v.doubleTap.call(N,u,u.target))):l==a&&(o!==p&&o!==D||(clearTimeout(W),U=null,N.trigger("longtap",[u.target]),v.longTap&&(h=v.longTap.call(N,u,u.target)))),h}function nt(){var t=!0;return null!==v.threshold&&(t=b>=v.threshold),t}function rt(){var t=!1;return null!==v.cancelThreshold&&null!==T&&(t=vt(T)-b>=v.cancelThreshold),t}function it(){return!(v.maxTimeThreshold&&M>=v.maxTimeThreshold)}function ut(){var t=lt(),e=ht(),n=null===v.pinchThreshold||O>=v.pinchThreshold;return t&&e&&n}function st(){return v.pinchStatus||v.pinchIn||v.pinchOut}function at(){var t=it(),e=nt(),n=lt(),r=ht();return!rt()&&r&&n&&e&&t}function ot(){return v.swipe||v.swipeStatus||v.swipeLeft||v.swipeRight||v.swipeUp||v.swipeDown}function lt(){return I===v.fingers||v.fingers===h||!c}function ht(){return 0!==z[0].end.x}function ft(){return v.tap}function Dt(){return!!v.doubleTap}function pt(){if(null==U)return!1;var t=wt();return Dt()&&t-U<=v.doubleTapThreshold}function ct(){V=X=0}function dt(){var t=!1;return X&&wt()-X<=v.fingerReleaseThreshold&&(t=!0),t}function gt(t){N&&(!0===t?(N.on(x,G),N.on(F,Q),w&&N.on(w,Z)):(N.off(x,G,!1),N.off(F,Q,!1),w&&N.off(w,Z,!1)),N.data(_+"_intouch",!0===t))}function _t(t,e){var n={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return n.start.x=n.last.x=n.end.x=e.pageX||e.clientX,n.start.y=n.last.y=n.end.y=e.pageY||e.clientY,z[t]=n}function mt(t){var e=void 0!==t.identifier?t.identifier:0,n=z[e]||null;return null===n&&(n=_t(e,t)),n.last.x=n.end.x,n.last.y=n.end.y,n.end.x=t.pageX||t.clientX,n.end.y=t.pageY||t.clientY,n}function vt(t){if(L[t])return L[t].distance}function yt(t){return{direction:t,distance:0}}function Ct(){return j-Y}function xt(t,e){var n=Math.abs(t.x-e.x),r=Math.abs(t.y-e.y);return Math.round(Math.sqrt(n*n+r*r))}function Ft(t,s){if(o=s,(a=t).x==o.x&&a.y==o.y)return u;var a,o,l,h,f,D,p,c,d=(h=s,f=(l=t).x-h.x,D=h.y-l.y,p=Math.atan2(D,f),(c=Math.round(180*p/Math.PI))<0&&(c=360-Math.abs(c)),c);return d<=45&&0<=d||d<=360&&315<=d?e:135<=d&&d<=225?n:45<d&&d<135?i:r}function wt(){return(new Date).getTime()}this.enable=function(){return this.disable(),N.on(C,H),N.on(E,K),N},this.disable=function(){return $(),N},this.destroy=function(){$(),N.data(_,null),N=null},this.option=function(e,n){if("object"==typeof e)v=t.extend(v,e);else if(void 0!==v[e]){if(void 0===n)return v[e];v[e]=n}else{if(!e)return v;t.error("Option "+e+" does not exist on jQuery.swipe.options")}return null}}t.fn.rsswipe=function(e){var n=t(this),r=n.data(_);if(r&&"string"==typeof e){if(r[e])return r[e].apply(r,Array.prototype.slice.call(arguments,1));t.error("Method "+e+" does not exist on jQuery.rsswipe")}else if(r&&"object"==typeof e)r.option.apply(r,arguments);else if(!(r||"object"!=typeof e&&e))return function(e){return!e||void 0!==e.allowPageScroll||void 0===e.swipe&&void 0===e.swipeStatus||(e.allowPageScroll=u),void 0!==e.click&&void 0===e.tap&&(e.tap=e.click),e=e||{},e=t.extend({},t.fn.rsswipe.defaults,e),this.each((function(){var n=t(this),r=n.data(_);r||(r=new m(this,e),n.data(_,r))}))}.apply(this,arguments);return n},t.fn.rsswipe.version="1.6.18",t.fn.rsswipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:".noSwipe",preventDefaultEvents:!0},t.fn.rsswipe.phases={PHASE_START:"start",PHASE_MOVE:f,PHASE_END:D,PHASE_CANCEL:p},t.fn.rsswipe.directions={LEFT:e,RIGHT:n,UP:r,DOWN:i,IN:"in",OUT:"out"},t.fn.rsswipe.pageScroll={NONE:u,HORIZONTAL:o,VERTICAL:l,AUTO:"auto"},t.fn.rsswipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:h}},n(3).jQuery?(i=[n(0)],void 0===(u="function"==typeof(r=s)?r.apply(e,i):r)||(t.exports=u)):t.exports?s(n(0)):s(jQuery)},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e){var n;(n=jQuery).waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage"]},n.expr[":"].uncached=function(t){var e=document.createElement("img");return e.src=t.src,n(t).is('img[src!=""]')&&!e.complete},n.fn.waitForImages=function(t,e,r){if(n.isPlainObject(t)&&(e=t.each,r=t.waitForAll,t=t.finished),t=t||n.noop,e=e||n.noop,r=!!r,!n.isFunction(t)||!n.isFunction(e))throw new TypeError("An invalid callback was supplied.");return this.each((function(){var i=n(this),u=[];if(r){var s=n.waitForImages.hasImageProperties||[],a=/url\((['"]?)(.*?)\1\)/g;i.find("*").each((function(){var t=n(this);t.is("img:uncached")&&u.push({src:t.attr("src"),element:t[0]}),n.each(s,(function(e,n){var r,i=t.css(n);if(!i)return!0;for(;r=a.exec(i);)u.push({src:r[2],element:t[0]})}))}))}else i.find("img:uncached").each((function(){u.push({src:this.src,element:this})}));var o=u.length,l=0;0==o&&t.call(i[0]),n.each(u,(function(r,u){var s=new Image;n(s).bind("load error",(function(n){if(l++,e.call(u.element,l,o,"load"==n.type),l==o)return t.call(i[0]),!1})),s.src=u.src}))}))}},function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
/*!
 * GSAP 3.2.6
 * https://greensock.com
 *
 * @license Copyright 2008-2020, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for
 * Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/n.r(e);var u,s,a,o,l,h,f,D,p,c,d,g,_,m,v,y,C,x,F,w,E,b,T,A,M,P={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},B={duration:.5,overwrite:!1,delay:0},S=1e8,O=2*Math.PI,k=O/4,L=0,N=Math.sqrt,R=Math.cos,I=Math.sin,z=function(t){return"string"==typeof t},Y=function(t){return"function"==typeof t},j=function(t){return"number"==typeof t},X=function(t){return void 0===t},V=function(t){return"object"==typeof t},U=function(t){return!1!==t},W=function(){return"undefined"!=typeof window},q=function(t){return Y(t)||z(t)},H=Array.isArray,G=/(?:-?\.?\d|\.)+/gi,Q=/[-+=.]*\d+[.e\-+]*\d*[e\-\+]*\d*/g,K=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Z=/[-+=.]*\d+(?:\.|e-|e)*\d*/gi,$=/\(([^()]+)\)/i,J=/[+-]=-?[\.\d]+/,tt=/[#\-+.]*\b[a-z\d-=+%.]+/gi,et={},nt={},rt=function(t){return(nt=Mt(t,et))&&ln},it=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},ut=function(t,e){return!e&&console.warn(t)},st=function(t,e){return t&&(et[t]=e)&&nt&&(nt[t]=e)||et},at=function(){return 0},ot={},lt=[],ht={},ft={},Dt={},pt=30,ct=[],dt="",gt=function(t){var e,n,r=t[0];if(V(r)||Y(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=ct.length;n--&&!ct[n].targetTest(r););e=ct[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Oe(t[n],e)))||t.splice(n,1);return t},_t=function(t){return t._gsap||gt(te(t))[0]._gsap},mt=function(t,e){var n=t[e];return Y(n)?t[e]():X(n)&&t.getAttribute(e)||n},vt=function(t,e){return(t=t.split(",")).forEach(e)||t},yt=function(t){return Math.round(1e5*t)/1e5||0},Ct=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n},xt=function(t,e,n){var r,i=j(t[1]),u=(i?2:1)+(e<2?0:1),s=t[u];if(i&&(s.duration=t[1]),s.parent=n,e){for(r=s;n&&!("immediateRender"in r);)r=n.vars.defaults||{},n=U(n.vars.inherit)&&n.parent;s.immediateRender=U(r.immediateRender),e<2?s.runBackwards=1:s.startAt=t[u-1]}return s},Ft=function(){var t,e,n=lt.length,r=lt.slice(0);for(ht={},lt.length=0,t=0;t<n;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},wt=function(t,e,n,r){lt.length&&Ft(),t.render(e,n,r),lt.length&&Ft()},Et=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(tt).length<2?e:t},bt=function(t){return t},Tt=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},At=function(t,e){for(var n in e)n in t||"duration"===n||"ease"===n||(t[n]=e[n])},Mt=function(t,e){for(var n in e)t[n]=e[n];return t},Pt=function t(e,n){for(var r in n)e[r]=V(n[r])?t(e[r]||(e[r]={}),n[r]):n[r];return e},Bt=function(t,e){var n,r={};for(n in t)n in e||(r[n]=t[n]);return r},St=function(t){var e=t.parent||u,n=t.keyframes?At:Tt;if(U(t.inherit))for(;e;)n(t,e.vars.defaults),e=e.parent;return t},Ot=function(t,e,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i=e._prev,u=e._next;i?i._next=u:t[n]===e&&(t[n]=u),u?u._prev=i:t[r]===e&&(t[r]=i),e._next=e._prev=e.parent=null},kt=function(t,e){!t.parent||e&&!t.parent.autoRemoveChildren||t.parent.remove(t),t._act=0},Lt=function(t){for(var e=t;e;)e._dirty=1,e=e.parent;return t},Nt=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},Rt=function(t){return t._repeat?It(t._tTime,t=t.duration()+t._rDelay)*t:0},It=function(t,e){return(t/=e)&&~~t===t?~~t-1:~~t},zt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Yt=function(t){return t._end=yt(t._start+(t._tDur/Math.abs(t._ts||t._rts||1e-8)||0))},jt=function(t,e){var n;if((e._time||e._initted&&!e._dur)&&(n=zt(t.rawTime(),e),(!e._dur||Qt(0,e.totalDuration(),n)-e._tTime>1e-8)&&e.render(n,!0)),Lt(t)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-1e-8}},Xt=function(t,e,n,r){return e.parent&&kt(e),e._start=yt(n+e._delay),e._end=yt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),function(t,e,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var u,s=t[r];if(i)for(u=e[i];s&&s[i]>u;)s=s._prev;s?(e._next=s._next,s._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=s,e.parent=e._dp=t}(t,e,"_first","_last",t._sort?"_start":0),t._recent=e,r||jt(t,e),t},Vt=function(t,e,n,r){return Ye(t,e),t._initted?!n&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&h!==Ce.frame?(lt.push(t),t._lazy=[e,r],1):void 0:1},Ut=function(t,e,n){var r=t._repeat,i=yt(e)||0;return t._dur=i,t._tDur=r?r<0?1e12:yt(i*(r+1)+t._rDelay*r):i,t._time>i&&(t._time=i,t._tTime=Math.min(t._tTime,t._tDur)),!n&&Lt(t.parent),t.parent&&Yt(t),t},Wt=function(t){return t instanceof Le?Lt(t):Ut(t,t._dur)},qt={_start:0,endTime:at},Ht=function t(e,n){var r,i,u=e.labels,s=e._recent||qt,a=e.duration()>=S?s.endTime(!1):e._dur;return z(n)&&(isNaN(n)||n in u)?"<"===(r=n.charAt(0))||">"===r?("<"===r?s._start:s.endTime(s._repeat>=0))+(parseFloat(n.substr(1))||0):(r=n.indexOf("="))<0?(n in u||(u[n]=a),u[n]):(i=+(n.charAt(r-1)+n.substr(r+1)),r>1?t(e,n.substr(0,r-1))+i:a+i):null==n?a:+n},Gt=function(t,e){return t||0===t?e(t):e},Qt=function(t,e,n){return n<t?t:n>e?e:n},Kt=function(t){return(t+"").substr((parseFloat(t)+"").length)},Zt=[].slice,$t=function(t,e){return t&&V(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&V(t[0]))&&!t.nodeType&&t!==s},Jt=function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return z(t)&&!e||$t(t,1)?(r=n).push.apply(r,te(t)):n.push(t)}))||n},te=function(t,e){return!z(t)||e||!a&&xe()?H(t)?Jt(t,e):$t(t)?Zt.call(t,0):t?[t]:[]:Zt.call(o.querySelectorAll(t),0)},ee=function(t){return t.sort((function(){return.5-Math.random()}))},ne=function(t){if(Y(t))return t;var e=V(t)?t:{each:t},n=Ae(e.ease),r=e.from||0,i=parseFloat(e.base)||0,u={},s=r>0&&r<1,a=isNaN(r)||s,o=e.axis,l=r,h=r;return z(r)?l=h={center:.5,edges:.5,end:1}[r]||0:!s&&a&&(l=r[0],h=r[1]),function(t,s,f){var D,p,c,d,g,_,m,v,y,C=(f||e).length,x=u[C];if(!x){if(!(y="auto"===e.grid?0:(e.grid||[1,S])[1])){for(m=-S;m<(m=f[y++].getBoundingClientRect().left)&&y<C;);y--}for(x=u[C]=[],D=a?Math.min(y,C)*l-.5:r%y,p=a?C*h/y-.5:r/y|0,m=0,v=S,_=0;_<C;_++)c=_%y-D,d=p-(_/y|0),x[_]=g=o?Math.abs("y"===o?d:c):N(c*c+d*d),g>m&&(m=g),g<v&&(v=g);"random"===r&&ee(x),x.max=m-v,x.min=v,x.v=C=(parseFloat(e.amount)||parseFloat(e.each)*(y>C?C-1:o?"y"===o?C/y:y:Math.max(y,C/y))||0)*("edges"===r?-1:1),x.b=C<0?i-C:i,x.u=Kt(e.amount||e.each)||0,n=n&&C<0?Te(n):n}return C=(x[t]-x.min)/x.max||0,yt(x.b+(n?n(C):C)*x.v)+x.u}},re=function(t){var e=t<1?Math.pow(10,(t+"").length-2):1;return function(n){return~~(Math.round(parseFloat(n)/t)*t*e)/e+(j(n)?0:Kt(n))}},ie=function(t,e){var n,r,i=H(t);return!i&&V(t)&&(n=i=t.radius||S,t.values?(t=te(t.values),(r=!j(t[0]))&&(n*=n)):t=re(t.increment)),Gt(e,i?Y(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var i,u,s=parseFloat(r?e.x:e),a=parseFloat(r?e.y:0),o=S,l=0,h=t.length;h--;)(i=r?(i=t[h].x-s)*i+(u=t[h].y-a)*u:Math.abs(t[h]-s))<o&&(o=i,l=h);return l=!n||o<=n?t[l]:e,r||l===e||j(e)?l:l+Kt(e)}:re(t))},ue=function(t,e,n,r){return Gt(H(t)?!e:!0===n?!!(n=0):!r,(function(){return H(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(r=n<1?Math.pow(10,(n+"").length-2):1)&&~~(Math.round((t+Math.random()*(e-t))/n)*n*r)/r}))},se=function(t,e,n){return Gt(n,(function(n){return t[~~e(n)]}))},ae=function(t){for(var e,n,r,i,u=0,s="";~(e=t.indexOf("random(",u));)r=t.indexOf(")",e),i="["===t.charAt(e+7),n=t.substr(e+7,r-e-7).match(i?tt:G),s+=t.substr(u,e-u)+ue(i?n:+n[0],+n[1],+n[2]||1e-5),u=r+1;return s+t.substr(u,t.length-u)},oe=function(t,e,n,r,i){var u=e-t,s=r-n;return Gt(i,(function(e){return n+(e-t)/u*s}))},le=function(t,e,n){var r,i,u,s=t.labels,a=S;for(r in s)(i=s[r]-e)<0==!!n&&i&&a>(i=Math.abs(i))&&(u=r,a=i);return u},he=function(t,e,n){var r,i,u=t.vars,s=u[e];if(s)return r=u[e+"Params"],i=u.callbackScope||t,n&&lt.length&&Ft(),r?s.apply(i,r):s.call(i)},fe=function(t){return kt(t),t.progress()<1&&he(t,"onInterrupt"),t},De=function(t){var e=(t=!t.name&&t.default||t).name,n=Y(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:at,render:Je,add:Ie,kill:en,modifier:tn,rawVars:0},u={targetTest:0,get:0,getSetter:Qe,aliases:{},register:0};if(xe(),t!==r){if(ft[e])return;Tt(r,Tt(Bt(t,i),u)),Mt(r.prototype,Mt(i,Bt(t,u))),ft[r.prop=e]=r,t.targetTest&&(ct.push(r),ot[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}st(e,r),t.register&&t.register(ln,r,un)},pe={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ce=function(t,e,n){return 255*(6*(t=t<0?t+1:t>1?t-1:t)<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)+.5|0},de=function(t,e,n){var r,i,u,s,a,o,l,h,f,D,p=t?j(t)?[t>>16,t>>8&255,255&t]:0:pe.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),pe[t])p=pe[t];else if("#"===t.charAt(0))4===t.length&&(r=t.charAt(1),i=t.charAt(2),u=t.charAt(3),t="#"+r+r+i+i+u+u),p=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(p=D=t.match(G),e){if(~t.indexOf("="))return p=t.match(Q),n&&p.length<4&&(p[3]=1),p}else s=+p[0]%360/360,a=+p[1]/100,r=2*(o=+p[2]/100)-(i=o<=.5?o*(a+1):o+a-o*a),p.length>3&&(p[3]*=1),p[0]=ce(s+1/3,r,i),p[1]=ce(s,r,i),p[2]=ce(s-1/3,r,i);else p=t.match(G)||pe.transparent;p=p.map(Number)}return e&&!D&&(r=p[0]/255,i=p[1]/255,u=p[2]/255,o=((l=Math.max(r,i,u))+(h=Math.min(r,i,u)))/2,l===h?s=a=0:(f=l-h,a=o>.5?f/(2-l-h):f/(l+h),s=l===r?(i-u)/f+(i<u?6:0):l===i?(u-r)/f+2:(r-i)/f+4,s*=60),p[0]=~~(s+.5),p[1]=~~(100*a+.5),p[2]=~~(100*o+.5)),n&&p.length<4&&(p[3]=1),p},ge=function(t){var e=[],n=[],r=-1;return t.split(me).forEach((function(t){var i=t.match(K)||[];e.push.apply(e,i),n.push(r+=i.length+1)})),e.c=n,e},_e=function(t,e,n){var r,i,u,s,a="",o=(t+a).match(me),l=e?"hsla(":"rgba(",h=0;if(!o)return t;if(o=o.map((function(t){return(t=de(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),n&&(u=ge(t),(r=n.c).join(a)!==u.c.join(a)))for(s=(i=t.replace(me,"1").split(K)).length-1;h<s;h++)a+=i[h]+(~r.indexOf(h)?o.shift()||l+"0,0,0,0)":(u.length?u:o.length?o:n).shift());if(!i)for(s=(i=t.split(me)).length-1;h<s;h++)a+=i[h]+o[h];return a+i[s]},me=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(t in pe)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),ve=/hsl[a]?\(/,ye=function(t){var e,n=t.join(" ");if(me.lastIndex=0,me.test(n))return e=ve.test(n),t[1]=_e(t[1],e),t[0]=_e(t[0],e,ge(t[1])),!0},Ce=(_=Date.now,m=500,v=33,y=_(),C=y,F=x=1/240,E=function t(e){var n,r,i=_()-C,u=!0===e;i>m&&(y+=i-v),C+=i,g.time=(C-y)/1e3,((n=g.time-F)>0||u)&&(g.frame++,F+=n+(n>=x?.004:x-n),r=1),u||(p=c(t)),r&&w.forEach((function(t){return t(g.time,i,g.frame,e)}))},g={time:0,frame:0,tick:function(){E(!0)},wake:function(){l&&(!a&&W()&&(s=a=window,o=s.document||{},et.gsap=ln,(s.gsapVersions||(s.gsapVersions=[])).push(ln.version),rt(nt||s.GreenSockGlobals||!s.gsap&&s||{}),d=s.requestAnimationFrame),p&&g.sleep(),c=d||function(t){return setTimeout(t,1e3*(F-g.time)+1|0)},D=1,E(2))},sleep:function(){(d?s.cancelAnimationFrame:clearTimeout)(p),D=0,c=at},lagSmoothing:function(t,e){m=t||1/1e-8,v=Math.min(e,m,0)},fps:function(t){x=1/(t||240),F=g.time+x},add:function(t){w.indexOf(t)<0&&w.push(t),xe()},remove:function(t){var e;~(e=w.indexOf(t))&&w.splice(e,1)},_listeners:w=[]}),xe=function(){return!D&&Ce.wake()},Fe={},we=/^[\d.\-M][\d.\-,\s]/,Ee=/["']/g,be=function(t){for(var e,n,r,i={},u=t.substr(1,t.length-3).split(":"),s=u[0],a=1,o=u.length;a<o;a++)n=u[a],e=a!==o-1?n.lastIndexOf(","):n.length,r=n.substr(0,e),i[s]=isNaN(r)?r.replace(Ee,"").trim():+r,s=n.substr(e+1).trim();return i},Te=function(t){return function(e){return 1-t(1-e)}},Ae=function(t,e){return t&&(Y(t)?t:Fe[t]||function(t){var e=(t+"").split("("),n=Fe[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[be(e[1])]:$.exec(t)[1].split(",").map(Et)):Fe._CE&&we.test(t)?Fe._CE("",t):n}(t))||e},Me=function(t,e,n,r){void 0===n&&(n=function(t){return 1-e(1-t)}),void 0===r&&(r=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,u={easeIn:e,easeOut:n,easeInOut:r};return vt(t,(function(t){for(var e in Fe[t]=et[t]=u,Fe[i=t.toLowerCase()]=n,u)Fe[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Fe[t+"."+e]=u[e]})),u},Pe=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Be=function t(e,n,r){var i=n>=1?n:1,u=(r||(e?.3:.45))/(n<1?n:1),s=u/O*(Math.asin(1/i)||0),a=function(t){return 1===t?1:i*Math.pow(2,-10*t)*I((t-s)*u)+1},o="out"===e?a:"in"===e?function(t){return 1-a(1-t)}:Pe(a);return u=O/u,o.config=function(n,r){return t(e,n,r)},o},Se=function t(e,n){void 0===n&&(n=1.70158);var r=function(t){return t?--t*t*((n+1)*t+n)+1:0},i="out"===e?r:"in"===e?function(t){return 1-r(1-t)}:Pe(r);return i.config=function(n){return t(e,n)},i};vt("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;Me(t+",Power"+(n-1),e?function(t){return Math.pow(t,n)}:function(t){return t},(function(t){return 1-Math.pow(1-t,n)}),(function(t){return t<.5?Math.pow(2*t,n)/2:1-Math.pow(2*(1-t),n)/2}))})),Fe.Linear.easeNone=Fe.none=Fe.Linear.easeIn,Me("Elastic",Be("in"),Be("out"),Be()),b=7.5625,A=1/(T=2.75),Me("Bounce",(function(t){return 1-M(1-t)}),M=function(t){return t<A?b*t*t:t<.7272727272727273?b*Math.pow(t-1.5/T,2)+.75:t<.9090909090909092?b*(t-=2.25/T)*t+.9375:b*Math.pow(t-2.625/T,2)+.984375}),Me("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),Me("Circ",(function(t){return-(N(1-t*t)-1)})),Me("Sine",(function(t){return 1-R(t*k)})),Me("Back",Se("in"),Se("out"),Se()),Fe.SteppedEase=Fe.steps=et.SteppedEase={config:function(t,e){void 0===t&&(t=1);var n=1/t,r=t+(e?0:1),i=e?1:0;return function(t){return((r*Qt(0,1-1e-8,t)|0)+i)*n}}},B.ease=Fe["quad.out"],vt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return dt+=t+","+t+"Params,"}));var Oe=function(t,e){this.id=L++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:mt,this.set=e?e.getSetter:Qe},ke=function(){function t(t,e){var n=t.parent||u;this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,Ut(this,+t.duration,1),this.data=t.data,D||Ce.wake(),n&&Xt(n,this,e||0===e?e:n._time,1),t.reversed&&this.reverse(),t.paused&&this.paused(!0)}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Ut(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(xe(),!arguments.length)return this._tTime;var n=this.parent||this._dp;if(n&&n.smoothChildTiming&&this._ts){for(this._start=yt(n._time-(this._ts>0?t/this._ts:((this._dirty?this.totalDuration():this._tDur)-t)/-this._ts)),Yt(this),n._dirty||Lt(n);n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&Xt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&1e-8===Math.abs(this._zTime))&&(this._ts||(this._pTime=t),wt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Rt(this))%this._dur||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Rt(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,e):this._repeat?It(this._tTime,n)+1:1},e.timeScale=function(t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?zt(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,Nt(this.totalTime(Qt(0,this._tDur,e),!0))},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(xe(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&(this._tTime-=1e-8)&&1e-8!==Math.abs(this._zTime)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Xt(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(U(t)?this.totalDuration():this.duration())/Math.abs(this._ts)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?zt(e.rawTime(t),this):this._tTime:this._tTime},e.repeat=function(t){return arguments.length?(this._repeat=t,Wt(this)):this._repeat},e.repeatDelay=function(t){return arguments.length?(this._rDelay=t,Wt(this)):this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(Ht(this,t),U(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,U(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=0,this._zTime=-1e-8,this},e.isActive=function(t){var e,n=this.parent||this._dp,r=this._start;return!(n&&!(this._ts&&(this._initted||!t)&&n.isActive(t)&&(e=n.rawTime(!0))>=r&&e<this.endTime(!0)-1e-8))},e.eventCallback=function(t,e,n){var r=this.vars;return arguments.length>1?(e?(r[t]=e,n&&(r[t+"Params"]=n),"onUpdate"===t&&(this._onUpdate=e)):delete r[t],this):r[t]},e.then=function(t){var e=this;return new Promise((function(n){var r=Y(t)?t:bt,i=function(){var t=e.then;e.then=null,Y(r)&&(r=r(e))&&(r.then||r===e)&&(e.then=t),n(r),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){fe(this)},t}();Tt(ke.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Le=function(t){function e(e,n){var i;return void 0===e&&(e={}),(i=t.call(this,e,n)||this).labels={},i.smoothChildTiming=!!e.smoothChildTiming,i.autoRemoveChildren=!!e.autoRemoveChildren,i._sort=U(e.sortChildren),i.parent&&jt(i.parent,r(i)),i}i(e,t);var n=e.prototype;return n.to=function(t,e,n){return new Ue(t,xt(arguments,0,this),Ht(this,j(e)?arguments[3]:n)),this},n.from=function(t,e,n){return new Ue(t,xt(arguments,1,this),Ht(this,j(e)?arguments[3]:n)),this},n.fromTo=function(t,e,n,r){return new Ue(t,xt(arguments,2,this),Ht(this,j(e)?arguments[4]:r)),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,St(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Ue(t,e,Ht(this,n),1),this},n.call=function(t,e,n){return Xt(this,Ue.delayedCall(0,t,e),Ht(this,n))},n.staggerTo=function(t,e,n,r,i,u,s){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=u,n.onCompleteParams=s,n.parent=this,new Ue(t,n,Ht(this,i)),this},n.staggerFrom=function(t,e,n,r,i,u,s){return n.runBackwards=1,St(n).immediateRender=U(n.immediateRender),this.staggerTo(t,e,n,r,i,u,s)},n.staggerFromTo=function(t,e,n,r,i,u,s,a){return r.startAt=n,St(r).immediateRender=U(r.immediateRender),this.staggerTo(t,e,r,i,u,s,a)},n.render=function(t,e,n){var r,i,s,a,o,l,h,f,D,p,c,d,g=this._time,_=this._dirty?this.totalDuration():this._tDur,m=this._dur,v=this!==u&&t>_-1e-8&&t>=0?_:t<1e-8?0:t,y=this._zTime<0!=t<0&&(this._initted||!m);if(v!==this._tTime||n||y){if(g!==this._time&&m&&(v+=this._time-g,t+=this._time-g),r=v,D=this._start,l=!(f=this._ts),y&&(m||(g=this._zTime),!t&&e||(this._zTime=t)),this._repeat&&(c=this._yoyo,o=m+this._rDelay,((r=yt(v%o))>m||_===v)&&(r=m),(a=~~(v/o))&&a===v/o&&(r=m,a--),c&&1&a&&(r=m-r,d=1),a!==(p=It(this._tTime,o))&&!this._lock)){var C=c&&1&p,x=C===(c&&1&a);if(a<p&&(C=!C),g=C?0:m,this._lock=1,this.render(g,e,!m)._lock=0,!e&&this.parent&&he(this,"onRepeat"),this.vars.repeatRefresh&&!d&&(this.invalidate()._lock=1),g!==this._time||l!==!this._ts)return this;if(x&&(this._lock=2,g=C?m+1e-4:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!d&&this.invalidate()),this._lock=0,!this._ts&&!l)return this}if(this._hasPause&&!this._forcing&&this._lock<2&&(h=function(t,e,n){var r;if(n>e)for(r=t._first;r&&r._start<=n;){if(!r._dur&&"isPause"===r.data&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=n;){if(!r._dur&&"isPause"===r.data&&r._start<e)return r;r=r._prev}}(this,yt(g),yt(r)))&&(v-=r-(r=h._start)),this._tTime=v,this._time=r,this._act=!f,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t),g||!r||e||he(this,"onStart"),r>=g&&t>=0)for(i=this._first;i;){if(s=i._next,(i._act||r>=i._start)&&i._ts&&h!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(r-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(r-i._start)*i._ts,e,n),r!==this._time||!this._ts&&!l){h=0,s&&(v+=this._zTime=-1e-8);break}}i=s}else{i=this._last;for(var F=t<0?t:r;i;){if(s=i._prev,(i._act||F<=i._end)&&i._ts&&h!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(F-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(F-i._start)*i._ts,e,n),r!==this._time||!this._ts&&!l){h=0,s&&(v+=this._zTime=F?-1e-8:1e-8);break}}i=s}}if(h&&!e&&(this.pause(),h.render(r>=g?0:-1e-8)._zTime=r>=g?1:-1,this._ts))return this._start=D,Yt(this),this.render(t,e,n);this._onUpdate&&!e&&he(this,"onUpdate",!0),(v===_&&_>=this.totalDuration()||!v&&this._ts<0)&&(D!==this._start&&Math.abs(f)===Math.abs(this._ts)||this._lock||((t||!m)&&(t&&this._ts>0||!v&&this._ts<0)&&kt(this,1),e||t<0&&!g||(he(this,v===_?"onComplete":"onReverseComplete",!0),this._prom&&this._prom())))}return this},n.add=function(t,e){var n=this;if(j(e)||(e=Ht(this,e)),!(t instanceof ke)){if(H(t))return t.forEach((function(t){return n.add(t,e)})),Lt(this);if(z(t))return this.addLabel(t,e);if(!Y(t))return this;t=Ue.delayedCall(0,t)}return this!==t?Xt(this,t,e):this},n.getChildren=function(t,e,n,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===r&&(r=-S);for(var i=[],u=this._first;u;)u._start>=r&&(u instanceof Ue?e&&i.push(u):(n&&i.push(u),t&&i.push.apply(i,u.getChildren(!0,e,n)))),u=u._next;return i},n.getById=function(t){for(var e=this.getChildren(1,1,1),n=e.length;n--;)if(e[n].vars.id===t)return e[n]},n.remove=function(t){return z(t)?this.removeLabel(t):Y(t)?this.killTweensOf(t):(Ot(this,t),t===this._recent&&(this._recent=this._last),Lt(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,this.parent||this._dp||!this._ts||(this._start=yt(Ce.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,n),this._forcing=0,this):this._tTime},n.addLabel=function(t,e){return this.labels[t]=Ht(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=Ue.delayedCall(0,e||at,n);return r.data="isPause",this._hasPause=1,Xt(this,r,Ht(this,t))},n.removePause=function(t){var e=this._first;for(t=Ht(this,t);e;)e._start===t&&"isPause"===e.data&&kt(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)Ne!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,r=[],i=te(t),u=this._first;u;)u instanceof Ue?!Ct(u._targets,i)||e&&!u.isActive("started"===e)||r.push(u):(n=u.getTweensOf(i,e)).length&&r.push.apply(r,n),u=u._next;return r},n.tweenTo=function(t,e){e=e||{};var n=this,r=Ht(n,t),i=e,u=i.startAt,s=i.onStart,a=i.onStartParams,o=Ue.to(n,Tt(e,{ease:"none",lazy:!1,time:r,duration:e.duration||Math.abs((r-(u&&"time"in u?u.time:n._time))/n.timeScale())||1e-8,onStart:function(){n.pause();var t=e.duration||Math.abs((r-n._time)/n.timeScale());o._dur!==t&&Ut(o,t).render(o._time,!0,!0),s&&s.apply(o,a||[])}}));return o},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,Tt({startAt:{time:Ht(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),le(this,Ht(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),le(this,Ht(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+1e-8)},n.shiftChildren=function(t,e,n){void 0===n&&(n=0);for(var r,i=this._first,u=this.labels;i;)i._start>=n&&(i._start+=t),i=i._next;if(e)for(r in u)u[r]>=n&&(u[r]+=t);return Lt(this)},n.invalidate=function(){var e=this._first;for(this._lock=0;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},n.clear=function(t){void 0===t&&(t=!0);for(var e,n=this._first;n;)e=n._next,this.remove(n),n=e;return this._time=this._tTime=0,t&&(this.labels={}),Lt(this)},n.totalDuration=function(t){var e,n,r,i,s=0,a=this,o=a._last,l=S;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(i=a.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),(r=o._start)>l&&a._sort&&o._ts&&!a._lock?(a._lock=1,Xt(a,o,r-o._delay,1)._lock=0):l=r,r<0&&o._ts&&(s-=r,(!i&&!a._dp||i&&i.smoothChildTiming)&&(a._start+=r/a._ts,a._time-=r,a._tTime-=r),a.shiftChildren(-r,!1,-1e20),l=0),(n=Yt(o))>s&&o._ts&&(s=n),o=e;Ut(a,a===u&&a._time>s?a._time:Math.min(S,s),1),a._dirty=0}return a._tDur},e.updateRoot=function(t){if(u._ts&&(wt(u,zt(t,u)),h=Ce.frame),Ce.frame>=pt){pt+=P.autoSleep||120;var e=u._first;if((!e||!e._ts)&&P.autoSleep&&Ce._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Ce.sleep()}}},e}(ke);Tt(Le.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ne,Re=function(t,e,n,r,i,u,s){var a,o,l,h,f,D,p,c,d=new un(this._pt,t,e,0,1,$e,null,i),g=0,_=0;for(d.b=n,d.e=r,n+="",(p=~(r+="").indexOf("random("))&&(r=ae(r)),u&&(u(c=[n,r],t,e),n=c[0],r=c[1]),o=n.match(Z)||[];a=Z.exec(r);)h=a[0],f=r.substring(g,a.index),l?l=(l+1)%5:"rgba("===f.substr(-5)&&(l=1),h!==o[_++]&&(D=parseFloat(o[_-1])||0,d._pt={_next:d._pt,p:f||1===_?f:",",s:D,c:"="===h.charAt(1)?parseFloat(h.substr(2))*("-"===h.charAt(0)?-1:1):parseFloat(h)-D,m:l&&l<4?Math.round:0},g=Z.lastIndex);return d.c=g<r.length?r.substring(g,r.length):"",d.fp=s,(J.test(r)||p)&&(d.e=0),this._pt=d,d},Ie=function(t,e,n,r,i,u,s,a,o){Y(r)&&(r=r(i||0,t,u));var l,h=t[e],f="get"!==n?n:Y(h)?o?t[e.indexOf("set")||!Y(t["get"+e.substr(3)])?e:"get"+e.substr(3)](o):t[e]():h,D=Y(h)?o?He:qe:We;if(z(r)&&(~r.indexOf("random(")&&(r=ae(r)),"="===r.charAt(1)&&(r=parseFloat(f)+parseFloat(r.substr(2))*("-"===r.charAt(0)?-1:1)+(Kt(f)||0))),f!==r)return isNaN(f+r)?(!h&&!(e in t)&&it(e,r),Re.call(this,t,e,f,r,D,a||P.stringFilter,o)):(l=new un(this._pt,t,e,+f||0,r-(f||0),"boolean"==typeof h?Ze:Ke,0,D),o&&(l.fp=o),s&&l.modifier(s,this,t),this._pt=l)},ze=function(t,e,n,r,i,u){var s,a,o,l;if(ft[t]&&!1!==(s=new ft[t]).init(i,s.rawVars?e[t]:function(t,e,n,r,i){if(Y(t)&&(t=je(t,i,e,n,r)),!V(t)||t.style&&t.nodeType||H(t))return z(t)?je(t,i,e,n,r):t;var u,s={};for(u in t)s[u]=je(t[u],i,e,n,r);return s}(e[t],r,i,u,n),n,r,u)&&(n._pt=a=new un(n._pt,i,t,0,1,s.render,s,0,s.priority),n!==f))for(o=n._ptLookup[n._targets.indexOf(i)],l=s._props.length;l--;)o[s._props[l]]=a;return s},Ye=function t(e,n){var r,i,s,a,o,l,h,f,D,p,c,d,g=e.vars,_=g.ease,m=g.startAt,v=g.immediateRender,y=g.lazy,C=g.onUpdate,x=g.onUpdateParams,F=g.callbackScope,w=g.runBackwards,E=g.yoyoEase,b=g.keyframes,T=g.autoRevert,A=e._dur,M=e._startAt,P=e._targets,S=e.parent,O=S&&"nested"===S.data?S.parent._targets:P,k="auto"===e._overwrite,L=e.timeline;if(!L||b&&_||(_="none"),e._ease=Ae(_,B.ease),e._yEase=E?Te(Ae(!0===E?_:E,B.ease)):0,E&&e._yoyo&&!e._repeat&&(E=e._yEase,e._yEase=e._ease,e._ease=E),!L){if(M&&M.render(-1,!0).kill(),m){if(kt(e._startAt=Ue.set(P,Tt({data:"isStart",overwrite:!1,parent:S,immediateRender:!0,lazy:U(y),startAt:null,delay:0,onUpdate:C,onUpdateParams:x,callbackScope:F,stagger:0},m))),v)if(n>0)!T&&(e._startAt=0);else if(A)return}else if(w&&A)if(M)!T&&(e._startAt=0);else if(n&&(v=!1),kt(e._startAt=Ue.set(P,Mt(Bt(g,ot),{overwrite:!1,data:"isFromStart",lazy:v&&U(y),immediateRender:v,stagger:0,parent:S}))),v){if(!n)return}else t(e._startAt,1e-8);for(r=Bt(g,ot),e._pt=0,d=(f=P[0]?_t(P[0]).harness:0)&&g[f.prop],y=A&&U(y)||y&&!A,i=0;i<P.length;i++){if(h=(o=P[i])._gsap||gt(P)[i]._gsap,e._ptLookup[i]=p={},ht[h.id]&&Ft(),c=O===P?i:O.indexOf(o),f&&!1!==(D=new f).init(o,d||r,e,c,O)&&(e._pt=a=new un(e._pt,o,D.name,0,1,D.render,D,0,D.priority),D._props.forEach((function(t){p[t]=a})),D.priority&&(l=1)),!f||d)for(s in r)ft[s]&&(D=ze(s,r,e,c,o,O))?D.priority&&(l=1):p[s]=a=Ie.call(e,o,s,"get",r[s],c,O,0,g.stringFilter);e._op&&e._op[i]&&e.kill(o,e._op[i]),k&&e._pt&&(Ne=e,u.killTweensOf(o,p,"started"),Ne=0),e._pt&&y&&(ht[h.id]=1)}l&&rn(e),e._onInit&&e._onInit(e)}e._from=!L&&!!g.runBackwards,e._onUpdate=C,e._initted=1},je=function(t,e,n,r,i){return Y(t)?t.call(e,n,r,i):z(t)&&~t.indexOf("random(")?ae(t):t},Xe=dt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase",Ve=(Xe+",id,stagger,delay,duration,paused").split(","),Ue=function(t){function e(e,n,i,s){var a;"number"==typeof n&&(i.duration=n,n=i,i=null);var o,l,h,f,D,p,c,d,g=(a=t.call(this,s?n:St(n),i)||this).vars,_=g.duration,m=g.delay,v=g.immediateRender,y=g.stagger,C=g.overwrite,x=g.keyframes,F=g.defaults,w=a.parent,E=(H(e)?j(e[0]):"length"in n)?[e]:te(e);if(a._targets=E.length?gt(E):ut("GSAP target "+e+" not found. https://greensock.com",!P.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=C,x||y||q(_)||q(m)){if(n=a.vars,(o=a.timeline=new Le({data:"nested",defaults:F||{}})).kill(),o.parent=r(a),x)Tt(o.vars.defaults,{ease:"none"}),x.forEach((function(t){return o.to(E,t,">")}));else{if(f=E.length,c=y?ne(y):at,V(y))for(D in y)~Xe.indexOf(D)&&(d||(d={}),d[D]=y[D]);for(l=0;l<f;l++){for(D in h={},n)Ve.indexOf(D)<0&&(h[D]=n[D]);h.stagger=0,d&&Mt(h,d),n.yoyoEase&&!n.repeat&&(h.yoyoEase=n.yoyoEase),p=E[l],h.duration=+je(_,r(a),l,p,E),h.delay=(+je(m,r(a),l,p,E)||0)-a._delay,!y&&1===f&&h.delay&&(a._delay=m=h.delay,a._start+=m,h.delay=0),o.to(p,h,c(l,p,E))}_=m=0}_||a.duration(_=o.duration())}else a.timeline=0;return!0===C&&(Ne=r(a),u.killTweensOf(E),Ne=0),w&&jt(w,r(a)),(v||!_&&!x&&a._start===w._time&&U(v)&&function t(e){return!e||e._ts&&t(e.parent)}(r(a))&&"nested"!==w.data)&&(a._tTime=-1e-8,a.render(Math.max(0,-m))),a}i(e,t);var n=e.prototype;return n.render=function(t,e,n){var r,i,u,s,a,o,l,h,f,D=this._time,p=this._tDur,c=this._dur,d=t>p-1e-8&&t>=0?p:t<1e-8?0:t;if(c){if(d!==this._tTime||!t||n||this._startAt&&this._zTime<0!=t<0){if(r=d,h=this.timeline,this._repeat){if(s=c+this._rDelay,((r=yt(d%s))>c||p===d)&&(r=c),(u=~~(d/s))&&u===d/s&&(r=c,u--),(o=this._yoyo&&1&u)&&(f=this._yEase,r=c-r),a=It(this._tTime,s),r===D&&!n&&this._initted)return this;u!==a&&(!this.vars.repeatRefresh||o||this._lock||(this._lock=n=1,this.render(s*u,!0).invalidate()._lock=0))}if(!this._initted){if(Vt(this,r,n,e))return this._tTime=0,this;if(c!==this._dur)return this.render(t,e,n)}for(this._tTime=d,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=l=(f||this._ease)(r/c),this._from&&(this.ratio=l=1-l),D||!r||e||he(this,"onStart"),i=this._pt;i;)i.r(l,i.d),i=i._next;h&&h.render(t<0?t:!r&&o?-1e-8:h._dur*l,e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,n),he(this,"onUpdate")),this._repeat&&u!==a&&this.vars.onRepeat&&!e&&this.parent&&he(this,"onRepeat"),d!==this._tDur&&d||this._tTime!==d||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,n),(t||!c)&&(t&&this._ts>0||!d&&this._ts<0)&&kt(this,1),e||t<0&&!D||d<p&&this.timeScale()>0||(he(this,d===p?"onComplete":"onReverseComplete",!0),this._prom&&this._prom()))}}else!function(t,e,n,r){var i,u=t._zTime<0?0:1,s=e<0?0:1,a=t._rDelay,o=0;if(a&&t._repeat&&(o=Qt(0,t._tDur,e),It(o,a)!==It(t._tTime,a)&&(u=1-s,t.vars.repeatRefresh&&t._initted&&t.invalidate())),(t._initted||!Vt(t,e,r,n))&&(s!==u||r||1e-8===t._zTime||!e&&t._zTime)){for(t._zTime=e||(n?1e-8:0),t.ratio=s,t._from&&(s=1-s),t._time=0,t._tTime=o,n||he(t,"onStart"),i=t._pt;i;)i.r(s,i.d),i=i._next;!s&&t._startAt&&!t._onUpdate&&t._start&&t._startAt.render(e,!0,r),t._onUpdate&&(n||he(t,"onUpdate")),o&&t._repeat&&!n&&t.parent&&he(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===s&&(t.ratio&&kt(t,1),n||(he(t,t.ratio?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}}(this,t,e,n);return this},n.targets=function(){return this._targets},n.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._act=this._lazy=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},n.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e)&&(this._lazy=0,this.parent))return fe(this);if(this.timeline)return this.timeline.killTweensOf(t,e,Ne&&!0!==Ne.vars.overwrite),this;var n,r,i,u,s,a,o,l=this._targets,h=t?te(t):l,f=this._ptLookup,D=this._pt;if((!e||"all"===e)&&function(t,e){for(var n=t.length,r=n===e.length;r&&n--&&t[n]===e[n];);return n<0}(l,h))return fe(this);for(n=this._op=this._op||[],"all"!==e&&(z(e)&&(s={},vt(e,(function(t){return s[t]=1})),e=s),e=function(t,e){var n,r,i,u,s=t[0]?_t(t[0]).harness:0,a=s&&s.aliases;if(!a)return e;for(r in n=Mt({},e),a)if(r in n)for(i=(u=a[r].split(",")).length;i--;)n[u[i]]=n[r];return n}(l,e)),o=l.length;o--;)if(~h.indexOf(l[o]))for(s in r=f[o],"all"===e?(n[o]=e,u=r,i={}):(i=n[o]=n[o]||{},u=e),u)(a=r&&r[s])&&("kill"in a.d&&!0!==a.d.kill(s)||Ot(this,a,"_pt"),delete r[s]),"all"!==i&&(i[s]=1);return this._initted&&!this._pt&&D&&fe(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,n){return new e(t,xt(arguments,1))},e.delayedCall=function(t,n,r,i){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},e.fromTo=function(t,n,r){return new e(t,xt(arguments,2))},e.set=function(t,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(t,n)},e.killTweensOf=function(t,e,n){return u.killTweensOf(t,e,n)},e}(ke);Tt(Ue.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),vt("staggerTo,staggerFrom,staggerFromTo",(function(t){Ue[t]=function(){var e=new Le,n=Zt.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var We=function(t,e,n){return t[e]=n},qe=function(t,e,n){return t[e](n)},He=function(t,e,n,r){return t[e](r.fp,n)},Ge=function(t,e,n){return t.setAttribute(e,n)},Qe=function(t,e){return Y(t[e])?qe:X(t[e])&&t.setAttribute?Ge:We},Ke=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4,e)},Ze=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},$e=function(t,e){var n=e._pt,r="";if(!t&&e.b)r=e.b;else if(1===t&&e.e)r=e.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*t):Math.round(1e4*(n.s+n.c*t))/1e4)+r,n=n._next;r+=e.c}e.set(e.t,e.p,r,e)},Je=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},tn=function(t,e,n,r){for(var i,u=this._pt;u;)i=u._next,u.p===r&&u.modifier(t,e,n),u=i},en=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?Ot(this,r,"_pt"):r.dep||(e=1),r=n;return!e},nn=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},rn=function(t){for(var e,n,r,i,u=t._pt;u;){for(e=u._next,n=r;n&&n.pr>u.pr;)n=n._next;(u._prev=n?n._prev:i)?u._prev._next=u:r=u,(u._next=n)?n._prev=u:i=u,u=e}t._pt=r},un=function(){function t(t,e,n,r,i,u,s,a,o){this.t=e,this.s=r,this.c=i,this.p=n,this.r=u||Ke,this.d=s||this,this.set=a||We,this.pr=o||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,n){this.mSet=this.mSet||this.set,this.set=nn,this.m=t,this.mt=n,this.tween=e},t}();vt(dt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert",(function(t){return ot[t]=1})),et.TweenMax=et.TweenLite=Ue,et.TimelineLite=et.TimelineMax=Le,u=new Le({sortChildren:!1,defaults:B,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),P.stringFilter=ye;var sn={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach((function(t){return De(t)}))},timeline:function(t){return new Le(t)},getTweensOf:function(t,e){return u.getTweensOf(t,e)},getProperty:function(t,e,n,r){z(t)&&(t=te(t)[0]);var i=_t(t||{}).get,u=n?bt:Et;return"native"===n&&(n=""),t?e?u((ft[e]&&ft[e].get||i)(t,e,n,r)):function(e,n,r){return u((ft[e]&&ft[e].get||i)(t,e,n,r))}:t},quickSetter:function(t,e,n){if((t=te(t)).length>1){var r=t.map((function(t){return ln.quickSetter(t,e,n)})),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var u=ft[e],s=_t(t),a=u?function(e){var r=new u;f._pt=0,r.init(t,n?e+n:e,f,0,[t]),r.render(1,r),f._pt&&Je(1,f)}:s.set(t,e);return u?a:function(r){return a(t,e,n?r+n:r,s,1)}},isTweening:function(t){return u.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ae(t.ease,B.ease)),Pt(B,t||{})},config:function(t){return Pt(P,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,r=t.plugins,i=t.defaults,u=t.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!ft[t]&&!et[t]&&ut(e+" effect requires "+t+" plugin.")})),Dt[e]=function(t,e,r){return n(te(t),Tt(e||{},i),r)},u&&(Le.prototype[e]=function(t,n,r){return this.add(Dt[e](t,V(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){Fe[t]=Ae(e)},parseEase:function(t,e){return arguments.length?Ae(t,e):Fe},getById:function(t){return u.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new Le(t);for(i.smoothChildTiming=U(t.smoothChildTiming),u.remove(i),i._dp=0,i._time=i._tTime=u._time,n=u._first;n;)r=n._next,!e&&!n._dur&&n instanceof Ue&&n.vars.onComplete===n._targets[0]||Xt(i,n,n._start-n._delay),n=r;return Xt(u,i,0),i},utils:{wrap:function t(e,n,r){var i=n-e;return H(e)?se(e,t(0,e.length),n):Gt(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,u=2*i;return H(e)?se(e,t(0,e.length-1),n):Gt(r,(function(t){return e+((t=(u+(t-e)%u)%u)>i?u-t:t)}))},distribute:ne,random:ue,snap:ie,normalize:function(t,e,n){return oe(t,e,0,1,n)},getUnit:Kt,clamp:function(t,e,n){return Gt(n,(function(n){return Qt(t,e,n)}))},splitColor:de,toArray:te,mapRange:oe,pipe:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(n){return t(parseFloat(n))+(e||Kt(n))}},interpolate:function t(e,n,r,i){var u=isNaN(e+n)?0:function(t){return(1-t)*e+t*n};if(!u){var s,a,o,l,h,f=z(e),D={};if(!0===r&&(i=1)&&(r=null),f)e={p:e},n={p:n};else if(H(e)&&!H(n)){for(o=[],l=e.length,h=l-2,a=1;a<l;a++)o.push(t(e[a-1],e[a]));l--,u=function(t){t*=l;var e=Math.min(h,~~t);return o[e](t-e)},r=n}else i||(e=Mt(H(e)?[]:{},e));if(!o){for(s in n)Ie.call(D,e,s,"get",n[s]);u=function(t){return Je(t,D)||(f?e.p:e)}}}return Gt(r,u)},shuffle:ee},install:rt,effects:Dt,ticker:Ce,updateRoot:Le.updateRoot,plugins:ft,globalTimeline:u,core:{PropTween:un,globals:st,Tween:Ue,Timeline:Le,Animation:ke,getCache:_t,_removeLinkedListItem:Ot}};vt("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return sn[t]=Ue[t]})),Ce.add(Le.updateRoot),f=sn.to({},{duration:0});var an=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},on=function(t,e){return{name:t,rawVars:1,init:function(t,n,r){r._onInit=function(t){var r,i;if(z(n)&&(r={},vt(n,(function(t){return r[t]=1})),n=r),e){for(i in r={},n)r[i]=e(n[i]);n=r}!function(t,e){var n,r,i,u=t._targets;for(n in e)for(r=u.length;r--;)(i=t._ptLookup[r][n])&&(i=i.d)&&(i._pt&&(i=an(i,n)),i&&i.modifier&&i.modifier(e[n],t,u[r],n))}(t,n)}}}},ln=sn.registerPlugin({name:"attr",init:function(t,e,n,r,i){for(var u in e)this.add(t,"setAttribute",(t.getAttribute(u)||0)+"",e[u],r,i,0,0,u),this._props.push(u)}},{name:"endArray",init:function(t,e){for(var n=e.length;n--;)this.add(t,n,t[n]||0,e[n])}},on("roundProps",re),on("modifiers"),on("snap",ie))||sn;Ue.version=Le.version=ln.version="3.2.6",l=1,W()&&xe();Fe.Power0,Fe.Power1,Fe.Power2,Fe.Power3,Fe.Power4,Fe.Linear,Fe.Quad,Fe.Cubic,Fe.Quart,Fe.Quint,Fe.Strong,Fe.Elastic,Fe.Back,Fe.SteppedEase,Fe.Bounce,Fe.Sine,Fe.Expo,Fe.Circ;
/*!
 * CSSPlugin 3.2.6
 * https://greensock.com
 *
 * Copyright 2008-2020, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for
 * Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/var hn,fn,Dn,pn,cn,dn,gn,_n,mn={},vn=180/Math.PI,yn=Math.PI/180,Cn=Math.atan2,xn=/([A-Z])/g,Fn=/(?:left|right|width|margin|padding|x)/i,wn=/[\s,\(]\S/,En={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},bn=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Tn=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},An=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},Mn=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},Pn=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Bn=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},Sn=function(t,e,n){return t.style[e]=n},On=function(t,e,n){return t.style.setProperty(e,n)},kn=function(t,e,n){return t._gsap[e]=n},Ln=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},Nn=function(t,e,n,r,i){var u=t._gsap;u.scaleX=u.scaleY=n,u.renderTransform(i,u)},Rn=function(t,e,n,r,i){var u=t._gsap;u[e]=n,u.renderTransform(i,u)},In="transform",zn=In+"Origin",Yn=function(t,e){var n=fn.createElementNS?fn.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):fn.createElement(t);return n.style?n:fn.createElement(t)},jn=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(xn,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Vn(n)||n,1)||""},Xn="O,Moz,ms,Ms,Webkit".split(","),Vn=function(t,e,n){var r=(e||cn).style,i=5;if(t in r&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(Xn[i]+t in r););return i<0?null:(3===i?"ms":i>=0?Xn[i]:"")+t},Un=function(){"undefined"!=typeof window&&(hn=window,fn=hn.document,Dn=fn.documentElement,cn=Yn("div")||{style:{}},dn=Yn("div"),In=Vn(In),zn=Vn(zn),cn.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",_n=!!Vn("perspective"),pn=1)},Wn=function t(e){var n,r=Yn("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,u=this.nextSibling,s=this.style.cssText;if(Dn.appendChild(r),r.appendChild(this),this.style.display="block",e)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(n=this._gsapBBox());return i&&(u?i.insertBefore(this,u):i.appendChild(this)),Dn.removeChild(r),this.style.cssText=s,n},qn=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},Hn=function(t){var e;try{e=t.getBBox()}catch(n){e=Wn.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Wn||(e=Wn.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+qn(t,["x","cx","x1"])||0,y:+qn(t,["y","cy","y1"])||0,width:0,height:0}},Gn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Hn(t))},Qn=function(t,e){if(e){var n=t.style;e in mn&&(e=In),n.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty(e.replace(xn,"-$1").toLowerCase())):n.removeAttribute(e)}},Kn=function(t,e,n,r,i,u){var s=new un(t._pt,e,n,0,1,u?Bn:Pn);return t._pt=s,s.b=r,s.e=i,t._props.push(n),s},Zn={deg:1,rad:1,turn:1},$n=function t(e,n,r,i){var u,s,a,o,l=parseFloat(r)||0,h=(r+"").trim().substr((l+"").length)||"px",f=cn.style,D=Fn.test(n),p="svg"===e.tagName.toLowerCase(),c=(p?"client":"offset")+(D?"Width":"Height"),d="px"===i,g="%"===i;return i===h||!l||Zn[i]||Zn[h]?l:("px"!==h&&!d&&(l=t(e,n,r,"px")),o=e.getCTM&&Gn(e),g&&(mn[n]||~n.indexOf("adius"))?yt(l/(o?e.getBBox()[D?"width":"height"]:e[c])*100):(f[D?"width":"height"]=100+(d?h:i),s=~n.indexOf("adius")||"em"===i&&e.appendChild&&!p?e:e.parentNode,o&&(s=(e.ownerSVGElement||{}).parentNode),s&&s!==fn&&s.appendChild||(s=fn.body),(a=s._gsap)&&g&&a.width&&D&&a.time===Ce.time?yt(l/a.width*100):((g||"%"===h)&&(f.position=jn(e,"position")),s===e&&(f.position="static"),s.appendChild(cn),u=cn[c],s.removeChild(cn),f.position="absolute",D&&g&&((a=_t(s)).time=Ce.time,a.width=s[c]),yt(d?u*l/100:u&&l?100/u*l:0))))},Jn=function(t,e,n,r){var i;return pn||Un(),e in En&&"transform"!==e&&~(e=En[e]).indexOf(",")&&(e=e.split(",")[0]),mn[e]&&"transform"!==e?(i=hr(t,r),i="transformOrigin"!==e?i[e]:fr(jn(t,zn))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=rr[e]&&rr[e](t,e,n)||jn(t,e)||mt(t,e)||("opacity"===e?1:0)),n&&!~(i+"").indexOf(" ")?$n(t,e,i,n)+n:i},tr=function(t,e,n,r){if(!n||"none"===n){var i=Vn(e,t,1),u=i&&jn(t,i,1);u&&u!==n&&(e=i,n=u)}var s,a,o,l,h,f,D,p,c,d,g,_,m=new un(this._pt,t.style,e,0,1,$e),v=0,y=0;if(m.b=n,m.e=r,n+="","auto"===(r+="")&&(t.style[e]=r,r=jn(t,e)||r,t.style[e]=n),ye(s=[n,r]),r=s[1],o=(n=s[0]).match(K)||[],(r.match(K)||[]).length){for(;a=K.exec(r);)D=a[0],c=r.substring(v,a.index),h?h=(h+1)%5:"rgba("!==c.substr(-5)&&"hsla("!==c.substr(-5)||(h=1),D!==(f=o[y++]||"")&&(l=parseFloat(f)||0,g=f.substr((l+"").length),(_="="===D.charAt(1)?+(D.charAt(0)+"1"):0)&&(D=D.substr(2)),p=parseFloat(D),d=D.substr((p+"").length),v=K.lastIndex-d.length,d||(d=d||P.units[e]||g,v===r.length&&(r+=d,m.e+=d)),g!==d&&(l=$n(t,e,f,d)||0),m._pt={_next:m._pt,p:c||1===y?c:",",s:l,c:_?_*p:p-l,m:h&&h<4?Math.round:0});m.c=v<r.length?r.substring(v,r.length):""}else m.r="display"===e&&"none"===r?Bn:Pn;return J.test(r)&&(m.e=0),this._pt=m,m},er={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},nr=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n,r,i,u=e.t,s=u.style,a=e.u,o=u._gsap;if("all"===a||!0===a)s.cssText="",r=1;else for(i=(a=a.split(",")).length;--i>-1;)n=a[i],mn[n]&&(r=1,n="transformOrigin"===n?zn:In),Qn(u,n);r&&(Qn(u,In),o&&(o.svg&&u.removeAttribute("transform"),hr(u,1),o.uncache=1))}},rr={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var u=t._pt=new un(t._pt,e,n,0,0,nr);return u.u=r,u.pr=-10,u.tween=i,t._props.push(n),1}}},ir=[1,0,0,1,0,0],ur={},sr=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},ar=function(t){var e=jn(t,In);return sr(e)?ir:e.substr(7).match(Q).map(yt)},or=function(t,e){var n,r,i,u,s=t._gsap||_t(t),a=t.style,o=ar(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(o=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?ir:o:(o!==ir||t.offsetParent||t===Dn||s.svg||(i=a.display,a.display="block",(n=t.parentNode)&&t.offsetParent||(u=1,r=t.nextSibling,Dn.appendChild(t)),o=ar(t),i?a.display=i:Qn(t,"display"),u&&(r?n.insertBefore(t,r):n?n.appendChild(t):Dn.removeChild(t))),e&&o.length>6?[o[0],o[1],o[4],o[5],o[12],o[13]]:o)},lr=function(t,e,n,r,i,u){var s,a,o,l=t._gsap,h=i||or(t,!0),f=l.xOrigin||0,D=l.yOrigin||0,p=l.xOffset||0,c=l.yOffset||0,d=h[0],g=h[1],_=h[2],m=h[3],v=h[4],y=h[5],C=e.split(" "),x=parseFloat(C[0])||0,F=parseFloat(C[1])||0;n?h!==ir&&(a=d*m-g*_)&&(o=x*(-g/a)+F*(d/a)-(d*y-g*v)/a,x=x*(m/a)+F*(-_/a)+(_*y-m*v)/a,F=o):(x=(s=Hn(t)).x+(~C[0].indexOf("%")?x/100*s.width:x),F=s.y+(~(C[1]||C[0]).indexOf("%")?F/100*s.height:F)),r||!1!==r&&l.smooth?(v=x-f,y=F-D,l.xOffset=p+(v*d+y*_)-v,l.yOffset=c+(v*g+y*m)-y):l.xOffset=l.yOffset=0,l.xOrigin=x,l.yOrigin=F,l.smooth=!!r,l.origin=e,l.originIsAbsolute=!!n,t.style[zn]="0px 0px",u&&(Kn(u,l,"xOrigin",f,x),Kn(u,l,"yOrigin",D,F),Kn(u,l,"xOffset",p,l.xOffset),Kn(u,l,"yOffset",c,l.yOffset)),t.setAttribute("data-svg-origin",x+" "+F)},hr=function(t,e){var n=t._gsap||new Oe(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,u,s,a,o,l,h,f,D,p,c,d,g,_,m,v,y,C,x,F,w,E,b,T,A,M,B,S,O,k,L,N=t.style,R=n.scaleX<0,I=jn(t,zn)||"0";return r=i=u=o=l=h=f=D=p=0,s=a=1,n.svg=!(!t.getCTM||!Gn(t)),g=or(t,n.svg),n.svg&&(b=!n.uncache&&t.getAttribute("data-svg-origin"),lr(t,b||I,!!b||n.originIsAbsolute,!1!==n.smooth,g)),c=n.xOrigin||0,d=n.yOrigin||0,g!==ir&&(y=g[0],C=g[1],x=g[2],F=g[3],r=w=g[4],i=E=g[5],6===g.length?(s=Math.sqrt(y*y+C*C),a=Math.sqrt(F*F+x*x),o=y||C?Cn(C,y)*vn:0,(f=x||F?Cn(x,F)*vn+o:0)&&(a*=Math.cos(f*yn)),n.svg&&(r-=c-(c*y+d*x),i-=d-(c*C+d*F))):(L=g[6],O=g[7],M=g[8],B=g[9],S=g[10],k=g[11],r=g[12],i=g[13],u=g[14],l=(_=Cn(L,S))*vn,_&&(b=w*(m=Math.cos(-_))+M*(v=Math.sin(-_)),T=E*m+B*v,A=L*m+S*v,M=w*-v+M*m,B=E*-v+B*m,S=L*-v+S*m,k=O*-v+k*m,w=b,E=T,L=A),h=(_=Cn(-x,S))*vn,_&&(m=Math.cos(-_),k=F*(v=Math.sin(-_))+k*m,y=b=y*m-M*v,C=T=C*m-B*v,x=A=x*m-S*v),o=(_=Cn(C,y))*vn,_&&(b=y*(m=Math.cos(_))+C*(v=Math.sin(_)),T=w*m+E*v,C=C*m-y*v,E=E*m-w*v,y=b,w=T),l&&Math.abs(l)+Math.abs(o)>359.9&&(l=o=0,h=180-h),s=yt(Math.sqrt(y*y+C*C+x*x)),a=yt(Math.sqrt(E*E+L*L)),_=Cn(w,E),f=Math.abs(_)>2e-4?_*vn:0,p=k?1/(k<0?-k:k):0),n.svg&&(g=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!sr(jn(t,In)),g&&t.setAttribute("transform",g))),Math.abs(f)>90&&Math.abs(f)<270&&(R?(s*=-1,f+=o<=0?180:-180,o+=o<=0?180:-180):(a*=-1,f+=f<=0?180:-180)),n.x=((n.xPercent=r&&Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)?0:r)+"px",n.y=((n.yPercent=i&&Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)?0:i)+"px",n.z=u+"px",n.scaleX=yt(s),n.scaleY=yt(a),n.rotation=yt(o)+"deg",n.rotationX=yt(l)+"deg",n.rotationY=yt(h)+"deg",n.skewX=f+"deg",n.skewY=D+"deg",n.transformPerspective=p+"px",(n.zOrigin=parseFloat(I.split(" ")[2])||0)&&(N[zn]=fr(I)),n.xOffset=n.yOffset=0,n.force3D=P.force3D,n.renderTransform=n.svg?dr:_n?cr:pr,n.uncache=0,n},fr=function(t){return(t=t.split(" "))[0]+" "+t[1]},Dr=function(t,e,n){var r=Kt(e);return yt(parseFloat(e)+parseFloat($n(t,"x",n+"px",r)))+r},pr=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,cr(t,e)},cr=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,u=n.x,s=n.y,a=n.z,o=n.rotation,l=n.rotationY,h=n.rotationX,f=n.skewX,D=n.skewY,p=n.scaleX,c=n.scaleY,d=n.transformPerspective,g=n.force3D,_=n.target,m=n.zOrigin,v="",y="auto"===g&&t&&1!==t||!0===g;if(m&&("0deg"!==h||"0deg"!==l)){var C,x=parseFloat(l)*yn,F=Math.sin(x),w=Math.cos(x);x=parseFloat(h)*yn,C=Math.cos(x),u=Dr(_,u,F*C*-m),s=Dr(_,s,-Math.sin(x)*-m),a=Dr(_,a,w*C*-m+m)}"0px"!==d&&(v+="perspective("+d+") "),(r||i)&&(v+="translate("+r+"%, "+i+"%) "),(y||"0px"!==u||"0px"!==s||"0px"!==a)&&(v+="0px"!==a||y?"translate3d("+u+", "+s+", "+a+") ":"translate("+u+", "+s+") "),"0deg"!==o&&(v+="rotate("+o+") "),"0deg"!==l&&(v+="rotateY("+l+") "),"0deg"!==h&&(v+="rotateX("+h+") "),"0deg"===f&&"0deg"===D||(v+="skew("+f+", "+D+") "),1===p&&1===c||(v+="scale("+p+", "+c+") "),_.style[In]=v||"translate(0, 0)"},dr=function(t,e){var n,r,i,u,s,a=e||this,o=a.xPercent,l=a.yPercent,h=a.x,f=a.y,D=a.rotation,p=a.skewX,c=a.skewY,d=a.scaleX,g=a.scaleY,_=a.target,m=a.xOrigin,v=a.yOrigin,y=a.xOffset,C=a.yOffset,x=a.forceCSS,F=parseFloat(h),w=parseFloat(f);D=parseFloat(D),p=parseFloat(p),(c=parseFloat(c))&&(p+=c=parseFloat(c),D+=c),D||p?(D*=yn,p*=yn,n=Math.cos(D)*d,r=Math.sin(D)*d,i=Math.sin(D-p)*-g,u=Math.cos(D-p)*g,p&&(c*=yn,s=Math.tan(p-c),i*=s=Math.sqrt(1+s*s),u*=s,c&&(s=Math.tan(c),n*=s=Math.sqrt(1+s*s),r*=s)),n=yt(n),r=yt(r),i=yt(i),u=yt(u)):(n=d,u=g,r=i=0),(F&&!~(h+"").indexOf("px")||w&&!~(f+"").indexOf("px"))&&(F=$n(_,"x",h,"px"),w=$n(_,"y",f,"px")),(m||v||y||C)&&(F=yt(F+m-(m*n+v*i)+y),w=yt(w+v-(m*r+v*u)+C)),(o||l)&&(s=_.getBBox(),F=yt(F+o/100*s.width),w=yt(w+l/100*s.height)),s="matrix("+n+","+r+","+i+","+u+","+F+","+w+")",_.setAttribute("transform",s),x&&(_.style[In]=s)},gr=function(t,e,n,r,i,u){var s,a,o=z(i),l=parseFloat(i)*(o&&~i.indexOf("rad")?vn:1),h=u?l*u:l-r,f=r+h+"deg";return o&&("short"===(s=i.split("_")[1])&&(h%=360)!==h%180&&(h+=h<0?360:-360),"cw"===s&&h<0?h=(h+36e9)%360-360*~~(h/360):"ccw"===s&&h>0&&(h=(h-36e9)%360-360*~~(h/360))),t._pt=a=new un(t._pt,e,n,r,h,Tn),a.e=f,a.u="deg",t._props.push(n),a},_r=function(t,e,n){var r,i,u,s,a,o,l,h=dn.style,f=n._gsap;for(i in h.cssText=getComputedStyle(n).cssText+";position:absolute;display:block;",h[In]=e,fn.body.appendChild(dn),r=hr(dn,1),mn)(u=f[i])!==(s=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(a=Kt(u)!==(l=Kt(s))?$n(n,i,u,l):parseFloat(u),o=parseFloat(s),t._pt=new un(t._pt,f,i,a,o-a,bn),t._pt.u=l||0,t._props.push(i));fn.body.removeChild(dn)};vt("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",i="Bottom",u="Left",s=(e<3?[n,r,i,u]:[n+u,n+r,i+r,i+u]).map((function(n){return e<2?t+n:"border"+n+t}));rr[e>1?"border"+t:t]=function(t,e,n,r,i){var u,a;if(arguments.length<4)return u=s.map((function(e){return Jn(t,e,n)})),5===(a=u.join(" ")).split(u[0]).length?u[0]:a;u=(r+"").split(" "),a={},s.forEach((function(t,e){return a[t]=u[e]=u[e]||u[(e-1)/2|0]})),t.init(e,a,i)}}));var mr,vr,yr={name:"css",register:Un,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var u,s,a,o,l,h,f,D,p,c,d,g,_,m,v,y,C,x,F,w=this._props,E=t.style;for(f in pn||Un(),e)if("autoRound"!==f&&(s=e[f],!ft[f]||!ze(f,e,n,r,t,i)))if(l=typeof s,h=rr[f],"function"===l&&(l=typeof(s=s.call(n,r,t,i))),"string"===l&&~s.indexOf("random(")&&(s=ae(s)),h)h(this,t,f,s,n)&&(v=1);else if("--"===f.substr(0,2))this.add(E,"setProperty",getComputedStyle(t).getPropertyValue(f)+"",s+"",r,i,0,0,f);else{if(u=Jn(t,f),o=parseFloat(u),(c="string"===l&&"="===s.charAt(1)?+(s.charAt(0)+"1"):0)&&(s=s.substr(2)),a=parseFloat(s),f in En&&("autoAlpha"===f&&(1===o&&"hidden"===Jn(t,"visibility")&&a&&(o=0),Kn(this,E,"visibility",o?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==f&&"transform"!==f&&~(f=En[f]).indexOf(",")&&(f=f.split(",")[0])),d=f in mn)if(g||((_=t._gsap).renderTransform||hr(t),m=!1!==e.smoothOrigin&&_.smooth,(g=this._pt=new un(this._pt,E,In,0,1,_.renderTransform,_,0,-1)).dep=1),"scale"===f)this._pt=new un(this._pt,_,"scaleY",_.scaleY,c?c*a:a-_.scaleY),w.push("scaleY",f),f+="X";else{if("transformOrigin"===f){C=void 0,x=void 0,F=void 0,C=(y=s).split(" "),x=C[0],F=C[1]||"50%","top"!==x&&"bottom"!==x&&"left"!==F&&"right"!==F||(y=x,x=F,F=y),C[0]=er[x]||x,C[1]=er[F]||F,s=C.join(" "),_.svg?lr(t,s,0,m,0,this):((p=parseFloat(s.split(" ")[2])||0)!==_.zOrigin&&Kn(this,_,"zOrigin",_.zOrigin,p),Kn(this,E,f,fr(u),fr(s)));continue}if("svgOrigin"===f){lr(t,s,1,m,0,this);continue}if(f in ur){gr(this,_,f,o,s,c);continue}if("smoothOrigin"===f){Kn(this,_,"smooth",_.smooth,s);continue}if("force3D"===f){_[f]=s;continue}if("transform"===f){_r(this,s,t);continue}}else f in E||(f=Vn(f)||f);if(d||(a||0===a)&&(o||0===o)&&!wn.test(s)&&f in E)a||(a=0),(D=(u+"").substr((o+"").length))!==(p=(s+"").substr((a+"").length)||(f in P.units?P.units[f]:D))&&(o=$n(t,f,u,p)),this._pt=new un(this._pt,d?_:E,f,o,c?c*a:a-o,"px"!==p||!1===e.autoRound||d?bn:Mn),this._pt.u=p||0,D!==p&&(this._pt.b=u,this._pt.r=An);else if(f in E)tr.call(this,t,f,u,s);else{if(!(f in t)){it(f,s);continue}this.add(t,f,t[f],s,r,i)}w.push(f)}v&&rn(this)},get:Jn,aliases:En,getSetter:function(t,e,n){var r=En[e];return r&&r.indexOf(",")<0&&(e=r),e in mn&&e!==zn&&(t._gsap.x||Jn(t,"x"))?n&&gn===n?"scale"===e?Ln:kn:(gn=n||{})&&("scale"===e?Nn:Rn):t.style&&!X(t.style[e])?Sn:~e.indexOf("-")?On:Qe(t,e)},core:{_removeProperty:Qn,_getMatrix:or}};ln.utils.checkPrefix=Vn,vr=vt("x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+(mr="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){mn[t]=1})),vt(mr,(function(t){P.units[t]="deg",ur[t]=1})),En[vr[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+mr,vt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");En[e[1]]=vr[e[0]]})),vt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){P.units[t]="px"})),ln.registerPlugin(yr);var Cr,xr,Fr,wr=ln.registerPlugin(yr)||ln,Er=wr.core.Tween,br=function(){return Cr||"undefined"!=typeof window&&(Cr=window.gsap)&&Cr.registerPlugin&&Cr},Tr=function(t){Cr=br(),(Fr=Cr&&Cr.parseEase("_CE"))?(xr=1,Cr.parseEase("bounce").config=function(t){return"object"==typeof t?Mr("",t):Mr("bounce("+t+")",{strength:+t})}):t&&console.warn("Please gsap.registerPlugin(CustomEase, CustomBounce)")},Ar=function(t){var e,n=t.length,r=1/t[n-2];for(e=2;e<n;e+=2)t[e]=~~(t[e]*r*1e3)/1e3;t[n-2]=1},Mr=function(t,e){xr||Tr(1),e=e||{};var n,r,i,u,s,a,o,l=Math.min(.999,e.strength||.7),h=l,f=(e.squash||0)/100,D=f,p=1/.03,c=.2,d=1,g=.1,_=[0,0,.07,0,.1,1,.1,1],m=[0,0,0,0,.1,0,.1,0];for(s=0;s<200&&(a=g+(c*=h*((h+1)/2)),u=1-(d*=l*l),r=(i=g+.49*c)+.8*(i-(n=g+d/p)),f&&(g+=f,n+=f,i+=f,r+=f,a+=f,o=f/D,m.push(g-f,0,g-f,o,g-f/2,o,g,o,g,0,g,0,g,-.6*o,g+(a-g)/6,0,a,0),_.push(g-f,1,g,1,g,1),f*=l*l),_.push(g,1,n,u,i,u,r,u,a,1,a,1),l*=.95,p=d/(a-r),g=a,!(u>.999));s++);if(e.endAtStart&&"false"!==e.endAtStart){if(i=-.1,_.unshift(i,1,i,1,-.07,0),D)for(i-=f=2.5*D,_.unshift(i,1,i,1,i,1),m.splice(0,6),m.unshift(i,0,i,0,i,1,i+f/2,1,i+f,1,i+f,0,i+f,0,i+f,-.6,i+f+.033,0),s=0;s<m.length;s+=2)m[s]-=i;for(s=0;s<_.length;s+=2)_[s]-=i,_[s+1]=1-_[s+1]}return f&&(Ar(m),m[2]="C"+m[2],Fr(e.squashID||t+"-squash","M"+m.join(","))),Ar(_),_[2]="C"+_[2],Fr(t,"M"+_.join(","))},Pr=function(){function t(t,e){this.ease=Mr(t,e)}return t.create=function(t,e){return Mr(t,e)},t.register=function(t){Cr=t,Tr()},t}();
/*!
 * CustomBounce 3.2.6
 * https://greensock.com
 *
 * @license Copyright 2008-2020, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for
 * Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/br()&&Cr.registerPlugin(Pr),Pr.version="3.2.6";
/*!
 * paths 3.2.6
 * https://greensock.com
 *
 * Copyright 2008-2020, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for
 * Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/
var Br=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,Sr=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,Or=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,kr=/(^[#\.][a-z]|[a-y][a-z])/i,Lr=Math.PI/180,Nr=180/Math.PI,Rr=Math.sin,Ir=Math.cos,zr=Math.abs,Yr=Math.sqrt,jr=Math.atan2,Xr=function(t){return"string"==typeof t},Vr=function(t){return"number"==typeof t},Ur={},Wr={},qr=function(t){return Math.round((t+1e8)%1*1e5)/1e5||(t<0?0:1)},Hr=function(t){return Math.round(1e5*t)/1e5||0},Gr=function(t,e,n,r){var i=t[e],u=1===r?6:ui(i,n,r);if(u&&u+n+2<i.length)return t.splice(e,0,i.slice(0,n+u+2)),i.splice(0,n+u),1},Qr=function(t,e){return e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):e.totalPoints=t.totalPoints,e},Kr=function(t,e){var n=t.length,r=t[n-1]||[],i=r.length;e[0]===r[i-2]&&e[1]===r[i-1]&&(e=r.concat(e.slice(2)),n--),t[n]=e};function Zr(t){var e,n=(t=Xr(t)&&kr.test(t)&&document.querySelector(t)||t).getAttribute?t:0;return n&&(t=t.getAttribute("d"))?(n._gsPath||(n._gsPath={}),(e=n._gsPath[t])&&!e._dirty?e:n._gsPath[t]=hi(t)):t?Xr(t)?hi(t):Vr(t[0])?[t]:t:console.warn("Expecting a <path> element or an SVG path data string")}function $r(t){var e,n=0;for(t.reverse();n<t.length;n+=2)e=t[n],t[n]=t[n+1],t[n+1]=e;t.reversed=!t.reversed}var Jr={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function ti(t,e){var n,r,i,u,s,a,o,l,h,f,D,p,c,d,g,_,m,v,y,C,x,F,w=t.tagName.toLowerCase(),E=.552284749831;return"path"!==w&&t.getBBox?(a=function(t,e){var n,r=document.createElementNS("http://www.w3.org/2000/svg","path"),i=[].slice.call(t.attributes),u=i.length;for(e=","+e+",";--u>-1;)n=i[u].nodeName.toLowerCase(),e.indexOf(","+n+",")<0&&r.setAttributeNS(null,n,i[u].nodeValue);return r}(t,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),F=function(t,e){for(var n=e?e.split(","):[],r={},i=n.length;--i>-1;)r[n[i]]=+t.getAttribute(n[i])||0;return r}(t,Jr[w]),"rect"===w?(u=F.rx,s=F.ry,r=F.x,i=F.y,f=F.width-2*u,D=F.height-2*s,n=u||s?"M"+(_=(d=(c=r+u)+f)+u)+","+(v=i+s)+" V"+(y=v+D)+" C"+[_,C=y+s*E,g=d+u*E,x=y+s,d,x,d-(d-c)/3,x,c+(d-c)/3,x,c,x,p=r+u*(1-E),x,r,C,r,y,r,y-(y-v)/3,r,v+(y-v)/3,r,v,r,m=i+s*(1-E),p,i,c,i,c+(d-c)/3,i,d-(d-c)/3,i,d,i,g,i,_,m,_,v].join(",")+"z":"M"+(r+f)+","+i+" v"+D+" h"+-f+" v"+-D+" h"+f+"z"):"circle"===w||"ellipse"===w?("circle"===w?l=(u=s=F.r)*E:(u=F.rx,l=(s=F.ry)*E),n="M"+((r=F.cx)+u)+","+(i=F.cy)+" C"+[r+u,i+l,r+(o=u*E),i+s,r,i+s,r-o,i+s,r-u,i+l,r-u,i,r-u,i-l,r-o,i-s,r,i-s,r+o,i-s,r+u,i-l,r+u,i].join(",")+"z"):"line"===w?n="M"+F.x1+","+F.y1+" L"+F.x2+","+F.y2:"polyline"!==w&&"polygon"!==w||(n="M"+(r=(h=(t.getAttribute("points")+"").match(Sr)||[]).shift())+","+(i=h.shift())+" L"+h.join(","),"polygon"===w&&(n+=","+r+","+i+"z")),a.setAttribute("d",pi(a._gsRawPath=hi(n))),e&&t.parentNode&&(t.parentNode.insertBefore(a,t),t.parentNode.removeChild(t)),a):t}function ei(t,e,n){var r,i=t[e],u=t[e+2],s=t[e+4];return i+=(u-i)*n,i+=((u+=(s-u)*n)-i)*n,r=u+(s+(t[e+6]-s)*n-u)*n-i,i=t[e+1],i+=((u=t[e+3])-i)*n,i+=((u+=((s=t[e+5])-u)*n)-i)*n,Hr(jr(u+(s+(t[e+7]-s)*n-u)*n-i,r)*Nr)}function ni(t,e,n){void 0===n&&(n=1);var r=(e=e||0)>n,i=Math.max(0,~~(zr(n-e)-1e-8));if(r&&(r=n,n=e,e=r,r=1,i-=i?1:0),e<0||n<0){var u=1+~~Math.min(e,n);e+=u,n+=u}var s,a,o,l,h,f,D,p=function(t){for(var e=[],n=0;n<t.length;n++)e[n]=Qr(t[n],t[n].slice(0));return Qr(t,e)}(t.totalLength?t:ii(t)),c=n>1,d=si(p,e,Ur,!0),g=si(p,n,Wr),_=g.segment,m=d.segment,v=g.segIndex,y=d.segIndex,C=g.i,x=d.i,F=y===v,w=C===x&&F,E=F&&x>C||w&&d.t>g.t;if(c||i){if(Gr(p,y,x,d.t)&&(s=1,y++,w?E?g.t/=d.t:(g.t=(g.t-d.t)/(1-d.t),v++,C=0):y<=v+1&&!E&&(v++,F&&(C-=x))),g.t?Gr(p,v,C,g.t)&&(E&&s&&y++,r&&v++):(v--,r&&y--),l=[],f=1+(h=p.length)*i,D=y,r)for(f+=(h-(v=(v||h)-1)+y)%h,o=0;o<f;o++)Kr(l,p[D]),D=(D||h)-1;else for(f+=(h-y+v)%h,o=0;o<f;o++)Kr(l,p[D++%h]);p=l}else if(a=1===g.t?6:ui(_,C,g.t),e!==n)for(s=ui(m,x,w?d.t/g.t:d.t),F&&(a+=s),_.splice(C+a+2),(s||x)&&m.splice(0,x+s),o=p.length;o--;)(o<y||o>v)&&p.splice(o,1);else _.angle=ei(_,C+a,0),d=_[C+=a],g=_[C+1],_.length=_.totalLength=0,_.totalPoints=p.totalPoints=8,_.push(d,g,d,g,d,g,d,g);return r&&function(t,e){var n=t.length;for(e||t.reverse();n--;)t[n].reversed||$r(t[n])}(p,c||i),p.totalLength=0,p}function ri(t,e,n){e=e||0,t.samples||(t.samples=[],t.lookup=[]);var r,i,u,s,a,o,l,h,f,D,p,c,d,g,_,m,v,y=~~t.resolution||12,C=1/y,x=n?e+6*n+1:t.length,F=t[e],w=t[e+1],E=e?e/6*y:0,b=t.samples,T=t.lookup,A=(e?t.minLength:1e8)||1e8,M=b[E+n*y-1],P=e?b[E-1]:0;for(b.length=T.length=0,i=e+2;i<x;i+=6){if(u=t[i+4]-F,s=t[i+2]-F,a=t[i]-F,h=t[i+5]-w,f=t[i+3]-w,D=t[i+1]-w,o=l=p=c=0,zr(u)<1e-5&&zr(h)<1e-5&&zr(a)+zr(D)<1e-5)t.length>8&&(t.splice(i,6),i-=6,x-=6);else for(r=1;r<=y;r++)o=l-(l=((g=C*r)*g*u+3*(d=1-g)*(g*s+d*a))*g),p=c-(c=(g*g*h+3*d*(g*f+d*D))*g),(m=Yr(p*p+o*o))<A&&(A=m),P+=m,b[E++]=P;F+=u,w+=h}if(M)for(M-=P;E<b.length;E++)b[E]+=M;if(b.length&&A)for(t.totalLength=v=b[b.length-1]||0,t.minLength=A,m=_=0,r=0;r<v;r+=A)T[m++]=b[_]<r?++_:_;else t.totalLength=b[0]=0;return e?P-b[e/2-1]:P}function ii(t,e){var n,r,i;for(i=n=r=0;i<t.length;i++)t[i].resolution=~~e||12,r+=t[i].length,n+=ri(t[i]);return t.totalPoints=r,t.totalLength=n,t}function ui(t,e,n){if(n<=0||n>=1)return 0;var r=t[e],i=t[e+1],u=t[e+2],s=t[e+3],a=t[e+4],o=t[e+5],l=r+(u-r)*n,h=u+(a-u)*n,f=i+(s-i)*n,D=s+(o-s)*n,p=l+(h-l)*n,c=f+(D-f)*n,d=a+(t[e+6]-a)*n,g=o+(t[e+7]-o)*n;return h+=(d-h)*n,D+=(g-D)*n,t.splice(e+2,4,Hr(l),Hr(f),Hr(p),Hr(c),Hr(p+(h-p)*n),Hr(c+(D-c)*n),Hr(h),Hr(D),Hr(d),Hr(g)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0),6}function si(t,e,n,r){n=n||{},t.totalLength||ii(t),(e<0||e>1)&&(e=qr(e));var i,u,s,a,o,l,h,f=0,D=t[0];if(t.length>1){for(s=t.totalLength*e,o=l=0;(o+=t[l++].totalLength)<s;)f=l;e=(s-(a=o-(D=t[f]).totalLength))/(o-a)||0}return i=D.samples,u=D.resolution,s=D.totalLength*e,a=(l=D.lookup[~~(s/D.minLength)]||0)?i[l-1]:0,(o=i[l])<s&&(a=o,o=i[++l]),h=1/u*((s-a)/(o-a)+l%u),l=6*~~(l/u),r&&1===h&&(l+6<D.length?(l+=6,h=0):f+1<t.length&&(l=h=0,D=t[++f])),n.t=h,n.i=l,n.path=t,n.segment=D,n.segIndex=f,n}function ai(t,e,n,r){var i,u,s,a,o,l,h,f,D,p=t[0],c=r||{};if((e<0||e>1)&&(e=qr(e)),t.length>1){for(s=t.totalLength*e,o=l=0;(o+=t[l++].totalLength)<s;)p=t[l];e=(s-(a=o-p.totalLength))/(o-a)||0}return i=p.samples,u=p.resolution,s=p.totalLength*e,a=(l=p.lookup[~~(s/p.minLength)]||0)?i[l-1]:0,(o=i[l])<s&&(a=o,o=i[++l]),D=1-(h=1/u*((s-a)/(o-a)+l%u)||0),f=p[l=6*~~(l/u)],c.x=Hr((h*h*(p[l+6]-f)+3*D*(h*(p[l+4]-f)+D*(p[l+2]-f)))*h+f),c.y=Hr((h*h*(p[l+7]-(f=p[l+1]))+3*D*(h*(p[l+5]-f)+D*(p[l+3]-f)))*h+f),n&&(c.angle=p.totalLength?ei(p,l,h>=1?1-1e-9:h||1e-9):p.angle||0),c}function oi(t,e,n,r,i,u,s){for(var a,o,l,h,f,D=t.length;--D>-1;)for(o=(a=t[D]).length,l=0;l<o;l+=2)h=a[l],f=a[l+1],a[l]=h*e+f*r+u,a[l+1]=h*n+f*i+s;return t._dirty=1,t}function li(t,e,n,r,i,u,s,a,o){if(t!==a||e!==o){n=zr(n),r=zr(r);var l=i%360*Lr,h=Ir(l),f=Rr(l),D=Math.PI,p=2*D,c=(t-a)/2,d=(e-o)/2,g=h*c+f*d,_=-f*c+h*d,m=g*g,v=_*_,y=m/(n*n)+v/(r*r);y>1&&(n=Yr(y)*n,r=Yr(y)*r);var C=n*n,x=r*r,F=(C*x-C*v-x*m)/(C*v+x*m);F<0&&(F=0);var w=(u===s?-1:1)*Yr(F),E=w*(n*_/r),b=w*(-r*g/n),T=(t+a)/2+(h*E-f*b),A=(e+o)/2+(f*E+h*b),M=(g-E)/n,P=(_-b)/r,B=(-g-E)/n,S=(-_-b)/r,O=M*M+P*P,k=(P<0?-1:1)*Math.acos(M/Yr(O)),L=(M*S-P*B<0?-1:1)*Math.acos((M*B+P*S)/Yr(O*(B*B+S*S)));isNaN(L)&&(L=D),!s&&L>0?L-=p:s&&L<0&&(L+=p),k%=p,L%=p;var N,R=Math.ceil(zr(L)/(p/4)),I=[],z=L/R,Y=4/3*Rr(z/2)/(1+Ir(z/2)),j=h*n,X=f*n,V=f*-r,U=h*r;for(N=0;N<R;N++)g=Ir(i=k+N*z),_=Rr(i),M=Ir(i+=z),P=Rr(i),I.push(g-Y*_,_+Y*g,M+Y*P,P-Y*M,M,P);for(N=0;N<I.length;N+=2)g=I[N],_=I[N+1],I[N]=g*j+_*V+T,I[N+1]=g*X+_*U+A;return I[N-2]=a,I[N-1]=o,I}}function hi(t){var e,n,r,i,u,s,a,o,l,h,f,D,p,c,d,g=(t+"").replace(Or,(function(t){var e=+t;return e<1e-4&&e>-1e-4?0:e})).match(Br)||[],_=[],m=0,v=0,y=g.length,C=0,x="ERROR: malformed path: "+t,F=function(t,e,n,r){h=(n-t)/3,f=(r-e)/3,a.push(t+h,e+f,n-h,r-f,n,r)};if(!t||!isNaN(g[0])||isNaN(g[1]))return console.log(x),_;for(e=0;e<y;e++)if(p=u,isNaN(g[e])?s=(u=g[e].toUpperCase())!==g[e]:e--,r=+g[e+1],i=+g[e+2],s&&(r+=m,i+=v),e||(o=r,l=i),"M"===u)a&&(a.length<8?_.length-=1:C+=a.length),m=o=r,v=l=i,a=[r,i],_.push(a),e+=2,u="L";else if("C"===u)a||(a=[0,0]),s||(m=v=0),a.push(r,i,m+1*g[e+3],v+1*g[e+4],m+=1*g[e+5],v+=1*g[e+6]),e+=6;else if("S"===u)h=m,f=v,"C"!==p&&"S"!==p||(h+=m-a[a.length-4],f+=v-a[a.length-3]),s||(m=v=0),a.push(h,f,r,i,m+=1*g[e+3],v+=1*g[e+4]),e+=4;else if("Q"===u)h=m+2/3*(r-m),f=v+2/3*(i-v),s||(m=v=0),m+=1*g[e+3],v+=1*g[e+4],a.push(h,f,m+2/3*(r-m),v+2/3*(i-v),m,v),e+=4;else if("T"===u)h=m-a[a.length-4],f=v-a[a.length-3],a.push(m+h,v+f,r+2/3*(m+1.5*h-r),i+2/3*(v+1.5*f-i),m=r,v=i),e+=2;else if("H"===u)F(m,v,m=r,v),e+=1;else if("V"===u)F(m,v,m,v=r+(s?v-m:0)),e+=1;else if("L"===u||"Z"===u)"Z"===u&&(r=o,i=l,a.closed=!0),("L"===u||zr(m-r)>.5||zr(v-i)>.5)&&(F(m,v,r,i),"L"===u&&(e+=2)),m=r,v=i;else if("A"===u){if(c=g[e+4],d=g[e+5],h=g[e+6],f=g[e+7],n=7,c.length>1&&(c.length<3?(f=h,h=d,n--):(f=d,h=c.substr(2),n-=2),d=c.charAt(1),c=c.charAt(0)),D=li(m,v,+g[e+1],+g[e+2],+g[e+3],+c,+d,(s?m:0)+1*h,(s?v:0)+1*f),e+=n,D)for(n=0;n<D.length;n++)a.push(D[n]);m=a[a.length-2],v=a[a.length-1]}else console.log(x);return(e=a.length)<6?(_.pop(),e=0):a[0]===a[e-2]&&a[1]===a[e-1]&&(a.closed=!0),_.totalPoints=C+e,_}function fi(t,e){void 0===e&&(e=1);for(var n=t[0],r=0,i=[n,r],u=2;u<t.length;u+=2)i.push(n,r,t[u],r=(t[u]-n)*e/2,n=t[u],-r);return i}function Di(t,e,n){var r,i,u,s,a,o,l,h,f,D,p,c,d,g,_=t.length-2,m=+t[0],v=+t[1],y=+t[2],C=+t[3],x=[m,v,m,v],F=y-m,w=C-v;for(isNaN(n)&&(n=Math.PI/10),e=e||0===e?+e:1,a=2;a<_;a+=2)r=m,i=v,m=y,v=C,c=(o=F)*o+(h=w)*h,d=(F=(y=+t[a+2])-m)*F+(w=(C=+t[a+3])-v)*w,g=(l=y-r)*l+(f=C-i)*f,p=(u=Math.acos((c+d-g)/Yr(4*c*d)))/Math.PI*e,D=Yr(c)*p,p*=Yr(d),m===r&&v===i||(u>n?(s=jr(f,l),x.push(Hr(m-Ir(s)*D),Hr(v-Rr(s)*D),Hr(m),Hr(v),Hr(m+Ir(s)*p),Hr(v+Rr(s)*p))):(s=jr(h,o),x.push(Hr(m-Ir(s)*D),Hr(v-Rr(s)*D)),s=jr(w,F),x.push(Hr(m),Hr(v),Hr(m+Ir(s)*p),Hr(v+Rr(s)*p))));return x.push(Hr(y),Hr(C),Hr(y),Hr(C)),x}function pi(t){Vr(t[0])&&(t=[t]);var e,n,r,i,u="",s=t.length;for(n=0;n<s;n++){for(i=t[n],u+="M"+Hr(i[0])+","+Hr(i[1])+" C",e=i.length,r=2;r<e;r++)u+=Hr(i[r++])+","+Hr(i[r++])+" "+Hr(i[r++])+","+Hr(i[r++])+" "+Hr(i[r++])+","+Hr(i[r])+" ";i.closed&&(u+="z")}return u}
/*!
 * CustomEase 3.2.6
 * https://greensock.com
 *
 * @license Copyright 2008-2020, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for
 * Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/var ci,di,gi=function(){return ci||"undefined"!=typeof window&&(ci=window.gsap)&&ci.registerPlugin&&ci},_i=function(){(ci=gi())?(ci.registerEase("_CE",xi.create),di=1):console.warn("Please gsap.registerPlugin(CustomEase)")},mi=function(t){return~~(1e3*t+(t<0?-.5:.5))/1e3},vi=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,yi=/[cLlsSaAhHvVtTqQ]/g,Ci=function t(e,n,r,i,u,s,a,o,l,h,f){var D,p=(e+r)/2,c=(n+i)/2,d=(r+u)/2,g=(i+s)/2,_=(u+a)/2,m=(s+o)/2,v=(p+d)/2,y=(c+g)/2,C=(d+_)/2,x=(g+m)/2,F=(v+C)/2,w=(y+x)/2,E=a-e,b=o-n,T=Math.abs((r-a)*b-(i-o)*E),A=Math.abs((u-a)*b-(s-o)*E);return h||(h=[{x:e,y:n},{x:a,y:o}],f=1),h.splice(f||h.length-1,0,{x:F,y:w}),(T+A)*(T+A)>l*(E*E+b*b)&&(D=h.length,t(e,n,p,c,v,y,F,w,l,h,f),t(F,w,C,x,_,m,a,o,l,h,f+1+(h.length-D))),h},xi=function(){function t(t,e,n){di||_i(),this.id=t,this.setData(e,n)}var e=t.prototype;return e.setData=function(t,e){e=e||{};var n,r,i,u,s,a,o,l,h,f=(t=t||"0,0,1,1").match(vi),D=1,p=[],c=[],d=e.precision||1,g=d<=1;if(this.data=t,(yi.test(t)||~t.indexOf("M")&&t.indexOf("C")<0)&&(f=hi(t)[0]),4===(n=f.length))f.unshift(0,0),f.push(1,1),n=8;else if((n-2)%6)throw"Invalid CustomEase";for(0==+f[0]&&1==+f[n-2]||function(t,e,n){n||0===n||(n=Math.max(+t[t.length-1],+t[1]));var r,i=-1*+t[0],u=-n,s=t.length,a=1/(+t[s-2]+i),o=-e||(Math.abs(+t[s-1]-+t[1])<.01*(+t[s-2]-+t[0])?function(t){var e,n=t.length,r=1e20;for(e=1;e<n;e+=6)+t[e]<r&&(r=+t[e]);return r}(t)+u:+t[s-1]+u);for(o=o?1/o:-a,r=0;r<s;r+=2)t[r]=(+t[r]+i)*a,t[r+1]=(+t[r+1]+u)*o}(f,e.height,e.originY),this.segment=f,u=2;u<n;u+=6)r={x:+f[u-2],y:+f[u-1]},i={x:+f[u+4],y:+f[u+5]},p.push(r,i),Ci(r.x,r.y,+f[u],+f[u+1],+f[u+2],+f[u+3],i.x,i.y,1/(2e5*d),p,p.length-1);for(n=p.length,u=0;u<n;u++)o=p[u],l=p[u-1]||o,o.x>l.x||l.y!==o.y&&l.x===o.x||o===l?(l.cx=o.x-l.x,l.cy=o.y-l.y,l.n=o,l.nx=o.x,g&&u>1&&Math.abs(l.cy/l.cx-p[u-2].cy/p[u-2].cx)>2&&(g=0),l.cx<D&&(l.cx?D=l.cx:(l.cx=.001,u===n-1&&(l.x-=.001,D=Math.min(D,.001),g=0)))):(p.splice(u--,1),n--);if(s=1/(n=1/D+1|0),a=0,o=p[0],g){for(u=0;u<n;u++)h=u*s,o.nx<h&&(o=p[++a]),r=o.y+(h-o.x)/o.cx*o.cy,c[u]={x:h,cx:s,y:r,cy:0,nx:9},u&&(c[u-1].cy=r-c[u-1].y);c[n-1].cy=p[p.length-1].y-r}else{for(u=0;u<n;u++)o.nx<u*s&&(o=p[++a]),c[u]=o;a<p.length-1&&(c[u-1]=p[p.length-2])}return this.ease=function(t){var e=c[t*n|0]||c[n-1];return e.nx<t&&(e=e.n),e.y+(t-e.x)/e.cx*e.cy},this.ease.custom=this,this.id&&ci.registerEase(this.id,this.ease),this},e.getSVGData=function(e){return t.getSVGData(this,e)},t.create=function(e,n,r){return new t(e,n,r).ease},t.register=function(t){ci=t,_i()},t.get=function(t){return ci.parseEase(t)},t.getSVGData=function(e,n){var r,i,u,s,a,o,l,h,f,D,p=(n=n||{}).width||100,c=n.height||100,d=n.x||0,g=(n.y||0)+c,_=ci.utils.toArray(n.path)[0];if(n.invert&&(c=-c,g=0),"string"==typeof e&&(e=ci.parseEase(e)),e.custom&&(e=e.custom),e instanceof t)r=pi(oi([e.segment],p,0,0,-c,d,g));else{for(r=[d,g],s=1/(l=Math.max(5,200*(n.precision||1))),h=5/(l+=2),f=mi(d+s*p),i=((D=mi(g+e(s)*-c))-g)/(f-d),u=2;u<l;u++)a=mi(d+u*s*p),o=mi(g+e(u*s)*-c),(Math.abs((o-D)/(a-f)-i)>h||u===l-1)&&(r.push(f,D),i=(o-D)/(a-f)),f=a,D=o;r="M"+r.join(",")}return _&&_.setAttribute("d",r),r},t}();gi()&&ci.registerPlugin(xi),xi.version="3.2.6";
/*!
 * CustomWiggle 3.2.6
 * https://greensock.com
 *
 * @license Copyright 2008-2020, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for
 * Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/
var Fi,wi,Ei,bi=function(){return Fi||"undefined"!=typeof window&&(Fi=window.gsap)&&Fi.registerPlugin&&Fi},Ti={easeOut:"M0,1,C0.7,1,0.6,0,1,0",easeInOut:"M0,0,C0.1,0,0.24,1,0.444,1,0.644,1,0.6,0,1,0",anticipate:"M0,0,C0,0.222,0.024,0.386,0,0.4,0.18,0.455,0.65,0.646,0.7,0.67,0.9,0.76,1,0.846,1,1",uniform:"M0,0,C0,0.95,0,1,0,1,0,1,1,1,1,1,1,1,1,0,1,0"},Ai=function(t){return t},Mi=function(t){if(!wi)if(Fi=bi(),Ei=Fi&&Fi.parseEase("_CE")){for(var e in Ti)Ti[e]=Ei("",Ti[e]);wi=1,Bi("wiggle").config=function(t){return"object"==typeof t?Bi("",t):Bi("wiggle("+t+")",{wiggles:+t})}}else t&&console.warn("Please gsap.registerPlugin(CustomEase, CustomWiggle)")},Pi=function(t,e){return"function"!=typeof t&&(t=Fi.parseEase(t)||Ei("",t)),t.custom||!e?t:function(e){return 1-t(e)}},Bi=function(t,e){wi||Mi(1);var n,r,i,u,s,a,o,l,h,f=0|((e=e||{}).wiggles||10),D=1/f,p=D/2,c="anticipate"===e.type,d=Ti[e.type]||Ti.easeOut,g=Ai;if(c&&(g=d,d=Ti.easeOut),e.timingEase&&(g=Pi(e.timingEase)),e.amplitudeEase&&(d=Pi(e.amplitudeEase,!0)),l=[0,0,(a=g(p))/4,0,a/2,o=c?-d(p):d(p),a,o],"random"===e.type){for(l.length=4,n=g(D),r=2*Math.random()-1,h=2;h<f;h++)p=n,o=r,n=g(D*h),r=2*Math.random()-1,i=Math.atan2(r-l[l.length-3],n-l[l.length-4]),u=Math.cos(i)*D,s=Math.sin(i)*D,l.push(p-u,o-s,p,o,p+u,o+s);l.push(n,0,1,0)}else{for(h=1;h<f;h++)l.push(g(p+D/2),o),p+=D,o=(o>0?-1:1)*d(h*D),a=g(p),l.push(g(p-D/2),o,a,o);l.push(g(p+D/4),o,g(p+D/4),0,1,0)}for(h=l.length;--h>-1;)l[h]=~~(1e3*l[h])/1e3;return l[2]="C"+l[2],Ei(t,"M"+l.join(","))},Si=function(){function t(t,e){this.ease=Bi(t,e)}return t.create=function(t,e){return Bi(t,e)},t.register=function(t){Fi=t,Mi()},t}();bi()&&Fi.registerPlugin(Si),Si.version="3.2.6";
/*!
 * DrawSVGPlugin 3.2.6
 * https://greensock.com
 *
 * @license Copyright 2008-2020, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for
 * Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/
var Oi,ki,Li,Ni,Ri,Ii=function(){return"undefined"!=typeof window},zi=function(){return Oi||Ii()&&(Oi=window.gsap)&&Oi.registerPlugin&&Oi},Yi=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,ji={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},Xi=function(t){return Math.round(1e4*t)/1e4},Vi=function(t){return parseFloat(t||0)},Ui=function(t,e){return Vi(t.getAttribute(e))},Wi=Math.sqrt,qi=function(t,e,n,r,i,u){return Wi(Math.pow((Vi(n)-Vi(t))*i,2)+Math.pow((Vi(r)-Vi(e))*u,2))},Hi=function(t){return console.warn(t)},Gi=function(t){return"non-scaling-stroke"===t.getAttribute("vector-effect")},Qi=function(t){if(!(t=ki(t)[0]))return 0;var e,n,r,i,u,s,a,o=t.tagName.toLowerCase(),l=t.style,h=1,f=1;Gi(t)&&(f=t.getScreenCTM(),h=Wi(f.a*f.a+f.b*f.b),f=Wi(f.d*f.d+f.c*f.c));try{n=t.getBBox()}catch(t){Hi("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var D=n||{x:0,y:0,width:0,height:0},p=D.x,c=D.y,d=D.width,g=D.height;if(n&&(d||g)||!ji[o]||(d=Ui(t,ji[o][0]),g=Ui(t,ji[o][1]),"rect"!==o&&"line"!==o&&(d*=2,g*=2),"line"===o&&(p=Ui(t,"x1"),c=Ui(t,"y1"),d=Math.abs(d-p),g=Math.abs(g-c))),"path"===o)i=l.strokeDasharray,l.strokeDasharray="none",e=t.getTotalLength()||0,h!==f&&Hi("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),e*=(h+f)/2,l.strokeDasharray=i;else if("rect"===o)e=2*d*h+2*g*f;else if("line"===o)e=qi(p,c,p+d,c+g,h,f);else if("polyline"===o||"polygon"===o)for(r=t.getAttribute("points").match(Yi)||[],"polygon"===o&&r.push(r[0],r[1]),e=0,u=2;u<r.length;u+=2)e+=qi(r[u-2],r[u-1],r[u],r[u+1],h,f)||0;else"circle"!==o&&"ellipse"!==o||(s=d/2*h,a=g/2*f,e=Math.PI*(3*(s+a)-Wi((3*s+a)*(s+3*a))));return e||0},Ki=function(t,e){if(!(t=ki(t)[0]))return[0,0];e||(e=Qi(t)+1);var n=Li.getComputedStyle(t),r=n.strokeDasharray||"",i=Vi(n.strokeDashoffset),u=r.indexOf(",");return u<0&&(u=r.indexOf(" ")),(r=u<0?e:Vi(r.substr(0,u))||1e-5)>e&&(r=e),[Math.max(0,-i),Math.max(0,r-i)]},Zi=function(){Ii()&&(document,Li=window,Ri=Oi=zi(),ki=Oi.utils.toArray,Ni=-1!==((Li.navigator||{}).userAgent||"").indexOf("Edge"))},$i={version:"3.2.6",name:"drawSVG",register:function(t){Oi=t,Zi()},init:function(t,e,n,r,i){if(!t.getBBox)return!1;Ri||Zi();var u,s,a,o,l=Qi(t)+1;return this._style=t.style,this._target=t,e+""=="true"?e="0 100%":e?-1===(e+"").indexOf(" ")&&(e="0 "+e):e="0 0",s=function(t,e,n){var r,i,u=t.indexOf(" ");return u<0?(r=void 0!==n?n+"":t,i=t):(r=t.substr(0,u),i=t.substr(u+1)),(r=~r.indexOf("%")?Vi(r)/100*e:Vi(r))>(i=~i.indexOf("%")?Vi(i)/100*e:Vi(i))?[i,r]:[r,i]}(e,l,(u=Ki(t,l))[0]),this._length=Xi(l+10),0===u[0]&&0===s[0]?(a=Math.max(1e-5,s[1]-l),this._dash=Xi(l+a),this._offset=Xi(l-u[1]+a),this._offsetPT=this.add(this,"_offset",this._offset,Xi(l-s[1]+a))):(this._dash=Xi(u[1]-u[0])||1e-6,this._offset=Xi(-u[0]),this._dashPT=this.add(this,"_dash",this._dash,Xi(s[1]-s[0])||1e-5),this._offsetPT=this.add(this,"_offset",this._offset,Xi(-s[0]))),Ni&&(o=Li.getComputedStyle(t)).strokeLinecap!==o.strokeLinejoin&&(s=Vi(o.strokeMiterlimit),this.add(t.style,"strokeMiterlimit",s,s+.01)),this._live=Gi(t)||~(e+"").indexOf("live"),this._props.push("drawSVG"),1},render:function(t,e){var n,r,i,u,s=e._pt,a=e._style;if(s){for(e._live&&(n=Qi(e._target)+11)!==e._length&&(r=n/e._length,e._length=n,e._offsetPT.s*=r,e._offsetPT.c*=r,e._dashPT?(e._dashPT.s*=r,e._dashPT.c*=r):e._dash*=r);s;)s.r(t,s.d),s=s._next;i=e._dash,u=e._offset,n=e._length,a.strokeDashoffset=e._offset,1!==t&&t?a.strokeDasharray=i+"px,"+n+"px":(i-u<.001&&n-i<=10&&(a.strokeDashoffset=u+1),a.strokeDasharray=u<.001&&n-i<=10?"none":u===i?"0px, 999999px":i+"px,"+n+"px")}},getLength:Qi,getPosition:Ki};zi()&&Oi.registerPlugin($i);
/*!
 * matrix 3.2.6
 * https://greensock.com
 *
 * Copyright 2008-2020, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for
 * Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/
var Ji,tu,eu,nu,ru,iu,uu,su,au="transform",ou=au+"Origin",lu=function(t){var e=t.ownerDocument||t;!(au in t.style)&&"msTransform"in t.style&&(ou=(au="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(tu=window,uu=new gu,e){Ji=e,eu=e.documentElement,nu=e.body;var n=e.createElement("div"),r=e.createElement("div");nu.appendChild(n),n.appendChild(r),n.style.position="static",n.style[au]="translate3d(0,0,1px)",su=r.offsetParent!==n,nu.removeChild(n)}return e},hu=[],fu=[],Du=function(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)},pu=function t(e,n){if(e.parentNode&&(Ji||lu(e))){var r=Du(e),i=r?r.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",u=r?n?"rect":"g":"div",s=2!==n?0:100,a=3===n?100:0,o="position:absolute;display:block;pointer-events:none;",l=Ji.createElementNS?Ji.createElementNS(i.replace(/^https/,"http"),u):Ji.createElement(u);return n&&(r?(iu||(iu=t(e)),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+s+","+a+")"),iu.appendChild(l)):(ru||((ru=t(e)).style.cssText=o),l.style.cssText=o+"width:0.1px;height:0.1px;top:"+a+"px;left:"+s+"px",ru.appendChild(l))),l}throw"Need document and parent."},cu=function(t,e){var n,r,i,u,s,a=Du(t),o=t===a,l=a?hu:fu;if(t===tu)return t;if(l.length||l.push(pu(t,1),pu(t,2),pu(t,3)),n=a?iu:ru,a)i=o?{x:0,y:0}:t.getBBox(),(r=t.transform?t.transform.baseVal:{}).numberOfItems?(u=(r=r.numberOfItems>1?function(t){for(var e=new gu,n=0;n<t.numberOfItems;n++)e.multiply(t.getItem(n).matrix);return e}(r):r.getItem(0).matrix).a*i.x+r.c*i.y,s=r.b*i.x+r.d*i.y):(r=uu,u=i.x,s=i.y),e&&"g"===t.tagName.toLowerCase()&&(u=s=0),n.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+u)+","+(r.f+s)+")"),(o?a:t.parentNode).appendChild(n);else{if(u=s=0,su)for(r=t.offsetParent,i=t;i&&(i=i.parentNode)&&i!==r&&i.parentNode;)(tu.getComputedStyle(i)[au]+"").length>4&&(u=i.offsetLeft,s=i.offsetTop,i=0);(i=n.style).top=t.offsetTop-s+"px",i.left=t.offsetLeft-u+"px",r=tu.getComputedStyle(t),i[au]=r[au],i[ou]=r[ou],i.border=r.border,i.borderLeftStyle=r.borderLeftStyle,i.borderTopStyle=r.borderTopStyle,i.borderLeftWidth=r.borderLeftWidth,i.borderTopWidth=r.borderTopWidth,i.position="fixed"===r.position?"fixed":"absolute",t.parentNode.appendChild(n)}return n},du=function(t,e,n,r,i,u,s){return t.a=e,t.b=n,t.c=r,t.d=i,t.e=u,t.f=s,t},gu=function(){function t(t,e,n,r,i,u){void 0===t&&(t=1),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===i&&(i=0),void 0===u&&(u=0),du(this,t,e,n,r,i,u)}var e=t.prototype;return e.inverse=function(){var t=this.a,e=this.b,n=this.c,r=this.d,i=this.e,u=this.f,s=t*r-e*n;return du(this,r/s,-e/s,-n/s,t/s,(n*u-r*i)/s,-(t*u-e*i)/s)},e.multiply=function(t){var e=this.a,n=this.b,r=this.c,i=this.d,u=this.e,s=this.f,a=t.a,o=t.c,l=t.b,h=t.d,f=t.e,D=t.f;return du(this,a*e+l*r,a*n+l*i,o*e+h*r,o*n+h*i,u+f*e+D*r,s+f*n+D*i)},e.clone=function(){return new t(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function(t){var e=this.a,n=this.b,r=this.c,i=this.d,u=this.e,s=this.f;return e===t.a&&n===t.b&&r===t.c&&i===t.d&&u===t.e&&s===t.f},e.apply=function(t,e){void 0===e&&(e={});var n=t.x,r=t.y,i=this.a,u=this.b,s=this.c,a=this.d,o=this.e,l=this.f;return e.x=n*i+r*s+o||0,e.y=n*u+r*a+l||0,e},t}();function _u(t,e,n){if(!t||!t.parentNode||(Ji||lu(t)).documentElement===t)return new gu;var r=Du(t)?hu:fu,i=cu(t,n),u=r[0].getBoundingClientRect(),s=r[1].getBoundingClientRect(),a=r[2].getBoundingClientRect(),o=i.parentNode,l=function t(e){return"fixed"===tu.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?t(e):void 0)}(t),h=new gu((s.left-u.left)/100,(s.top-u.top)/100,(a.left-u.left)/100,(a.top-u.top)/100,u.left+(l?0:tu.pageXOffset||Ji.scrollLeft||eu.scrollLeft||nu.scrollLeft||0),u.top+(l?0:tu.pageYOffset||Ji.scrollTop||eu.scrollTop||nu.scrollTop||0));return o.removeChild(i),e?h.inverse():h}
/*!
 * MotionPathPlugin 3.2.6
 * https://greensock.com
 *
 * @license Copyright 2008-2020, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for
 * Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/var mu,vu,yu,Cu,xu=["x","translateX","left","marginLeft"],Fu=["y","translateY","top","marginTop"],wu=Math.PI/180,Eu=function(t,e,n,r){for(var i=e.length,u=r,s=0;s<i;s++)t[u]=parseFloat(e[s][n]),u+=2;return t},bu=function(t,e,n){return parseFloat(t._gsap.get(t,e,n||"px"))||0},Tu=function(t){var e,n=t[0],r=t[1];for(e=2;e<t.length;e+=2)n=t[e]+=n,r=t[e+1]+=r},Au=function(t,e,n,r,i,u,s){"cubic"===s.type?e=[e]:(e.unshift(bu(n,r,s.unitX),i?bu(n,i,s.unitY):0),s.relative&&Tu(e),e=[(i?Di:fi)(e,s.curviness)]);return e=u(Ou(e,n,s)),ku(t,n,r,e,"x",s.unitX),i&&ku(t,n,i,e,"y",s.unitY),ii(e,s.resolution||(0===s.curviness?20:12))},Mu=function(t){return t},Pu=/[-+\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/g,Bu=function(t,e,n){var r,i,u,s=_u(t);return"svg"===(t.tagName+"").toLowerCase()?(i=(r=t.viewBox.baseVal).x,u=r.y,r.width||(r={width:+t.getAttribute("width"),height:+t.getAttribute("height")})):(r=e&&t.getBBox&&t.getBBox(),i=u=0),e&&"auto"!==e&&(i+=e.push?e[0]*(r?r.width:t.offsetWidth||0):e.x,u+=e.push?e[1]*(r?r.height:t.offsetHeight||0):e.y),n.apply(i||u?s.apply({x:i,y:u}):{x:s.e,y:s.f})},Su=function(t,e,n,r){var i,u=_u(t.parentNode,!0,!0),s=u.clone().multiply(_u(e)),a=Bu(t,n,u),o=Bu(e,r,u),l=o.x,h=o.y;return s.e=s.f=0,"auto"===r&&e.getTotalLength&&"path"===e.tagName.toLowerCase()&&(i=e.getAttribute("d").match(Pu)||[],l+=(i=s.apply({x:+i[0],y:+i[1]})).x,h+=i.y),(i||e.getBBox&&t.getBBox)&&(l-=(i=s.apply(e.getBBox())).x,h-=i.y),s.e=l-a.x,s.f=h-a.y,s},Ou=function(t,e,n){var r,i,u,s=n.align,a=n.matrix,o=n.offsetX,l=n.offsetY,h=n.alignOrigin,f=t[0][0],D=t[0][1],p=bu(e,"x"),c=bu(e,"y");return t&&t.length?(s&&("self"===s||(r=Cu(s)[0]||e)===e?oi(t,1,0,0,1,p-f,c-D):(h&&!1!==h[2]?mu.set(e,{transformOrigin:100*h[0]+"% "+100*h[1]+"%"}):h=[bu(e,"xPercent")/-100,bu(e,"yPercent")/-100],u=(i=Su(e,r,h,"auto")).apply({x:f,y:D}),oi(t,i.a,i.b,i.c,i.d,p+i.e-(u.x-i.e),c+i.f-(u.y-i.f)))),a?oi(t,a.a,a.b,a.c,a.d,a.e,a.f):(o||l)&&oi(t,1,0,0,1,o||0,l||0),t):Zr("M0,0L0,0")},ku=function(t,e,n,r,i,u){var s=e._gsap,a=s.harness,o=a&&a.aliases&&a.aliases[n],l=o&&o.indexOf(",")<0?o:n,h=t._pt=new vu(t._pt,e,l,0,0,Mu,0,s.set(e,l,t));h.u=yu(s.get(e,l,u))||0,h.path=r,h.pp=i,t._props.push(l)},Lu={version:"3.2.6",name:"motionPath",register:function(t,e,n){yu=(mu=t).utils.getUnit,Cu=mu.utils.toArray,vu=n},init:function(t,e){if(!mu)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;"object"==typeof e&&!e.style&&e.path||(e={path:e});var n,r,i,u,s,a,o=[],l=e.path,h=l[0],f=e.autoRotate,D=(s=e.start,a="end"in e?e.end:1,function(t){return s||1!==a?ni(t,s,a):t});if(this.rawPaths=o,this.target=t,(this.rotate=f||0===f)&&(this.rOffset=parseFloat(f)||0,this.radians=!!e.useRadians,this.rProp=e.rotation||"rotation",this.rSet=t._gsap.set(t,this.rProp,this),this.ru=yu(t._gsap.get(t,this.rProp))||0),Array.isArray(l)&&!("closed"in l)&&"number"!=typeof h){for(r in h)~xu.indexOf(r)?i=r:~Fu.indexOf(r)&&(u=r);for(r in i&&u?o.push(Au(this,Eu(Eu([],l,i,0),l,u,1),t,e.x||i,e.y||u,D,e)):i=u=0,h)r!==i&&r!==u&&o.push(Au(this,Eu([],l,r,0),t,r,0,D,e))}else ii(n=D(Ou(Zr(e.path),t,e)),e.resolution),o.push(n),ku(this,t,e.x||"x",n,"x",e.unitX||"px"),ku(this,t,e.y||"y",n,"y",e.unitY||"px")},render:function(t,e){var n=e.rawPaths,r=n.length,i=e._pt;for(t>1?t=1:t<0&&(t=0);r--;)ai(n[r],t,!r&&e.rotate,n[r]);for(;i;)i.set(i.t,i.p,i.path[i.pp]+i.u,i.d,t),i=i._next;e.rotate&&e.rSet(e.target,e.rProp,n[0].angle*(e.radians?wu:1)+e.rOffset+e.ru,e,t)},getLength:function(t){return ii(Zr(t)).totalLength},sliceRawPath:ni,getRawPath:Zr,pointsToSegment:Di,stringToRawPath:hi,rawPathToString:pi,transformRawPath:oi,getGlobalMatrix:_u,getPositionOnPath:ai,cacheRawPathMeasurements:ii,convertToPath:function(t,e){return Cu(t).map((function(t){return ti(t,!1!==e)}))},convertCoordinates:function(t,e,n){var r=_u(e,!0,!0).multiply(_u(t));return n?r.apply(n):r},getAlignMatrix:Su,getRelativePosition:function(t,e,n,r){var i=Su(t,e,n,r);return{x:i.e,y:i.f}},arrayToRawPath:function(t,e){var n=Eu(Eu([],t,(e=e||{}).x||"x",0),t,e.y||"y",1);return e.relative&&Tu(n),["cubic"===e.type?n:Di(n,e.curviness)]}};(mu||"undefined"!=typeof window&&(mu=window.gsap)&&mu.registerPlugin&&mu)&&mu.registerPlugin(Lu);
/*!
 * ScrollToPlugin 3.2.6
 * https://greensock.com
 *
 * @license Copyright 2008-2020, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for
 * Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/
var Nu,Ru,Iu,zu,Yu,ju,Xu,Vu=function(){return"undefined"!=typeof window},Uu=function(){return Nu||Vu()&&(Nu=window.gsap)&&Nu.registerPlugin&&Nu},Wu=function(t){return"string"==typeof t},qu=function(t,e){var n="x"===e?"Width":"Height",r="scroll"+n,i="client"+n;return t===Iu||t===zu||t===Yu?Math.max(zu[r],Yu[r])-(Iu["inner"+n]||zu[i]||Yu[i]):t[r]-t["offset"+n]},Hu=function(t,e){var n="scroll"+("x"===e?"Left":"Top");return t===Iu&&(null!=t.pageXOffset?n="page"+e.toUpperCase()+"Offset":t=null!=zu[n]?zu:Yu),function(){return t[n]}},Gu=function(t,e){var n=ju(t)[0].getBoundingClientRect(),r=!e||e===Iu||e===Yu,i=r?{top:zu.clientTop-(Iu.pageYOffset||zu.scrollTop||Yu.scrollTop||0),left:zu.clientLeft-(Iu.pageXOffset||zu.scrollLeft||Yu.scrollLeft||0)}:e.getBoundingClientRect(),u={x:n.left-i.left,y:n.top-i.top};return!r&&e&&(u.x+=Hu(e,"x")(),u.y+=Hu(e,"y")()),u},Qu=function(t,e,n,r){return isNaN(t)||"object"==typeof t?Wu(t)&&"="===t.charAt(1)?parseFloat(t.substr(2))*("-"===t.charAt(0)?-1:1)+r:"max"===t?qu(e,n):Math.min(qu(e,n),Gu(t,e)[n]):parseFloat(t)},Ku=function(){Nu=Uu(),Vu()&&Nu&&document.body&&(Iu=window,Yu=document.body,zu=document.documentElement,ju=Nu.utils.toArray,Nu.config({autoKillThreshold:7}),Xu=Nu.config(),Ru=1)},Zu={version:"3.2.6",name:"scrollTo",rawVars:1,register:function(t){Nu=t,Ku()},init:function(t,e,n,r,i){Ru||Ku();this.isWin=t===Iu,this.target=t,this.tween=n,"object"!=typeof e?Wu((e={y:e}).y)&&"max"!==e.y&&"="!==e.y.charAt(1)&&(e.x=e.y):e.nodeType&&(e={y:e,x:e}),this.vars=e,this.autoKill=!!e.autoKill,this.getX=Hu(t,"x"),this.getY=Hu(t,"y"),this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),null!=e.x?(this.add(this,"x",this.x,Qu(e.x,t,"x",this.x)-(e.offsetX||0),r,i,Math.round),this._props.push("scrollTo_x")):this.skipX=1,null!=e.y?(this.add(this,"y",this.y,Qu(e.y,t,"y",this.y)-(e.offsetY||0),r,i,Math.round),this._props.push("scrollTo_y")):this.skipY=1},render:function(t,e){for(var n,r,i,u,s,a=e._pt,o=e.target,l=e.tween,h=e.autoKill,f=e.xPrev,D=e.yPrev,p=e.isWin;a;)a.r(t,a.d),a=a._next;n=p||!e.skipX?e.getX():f,i=(r=p||!e.skipY?e.getY():D)-D,u=n-f,s=Xu.autoKillThreshold,e.x<0&&(e.x=0),e.y<0&&(e.y=0),h&&(!e.skipX&&(u>s||u<-s)&&n<qu(o,"x")&&(e.skipX=1),!e.skipY&&(i>s||i<-s)&&r<qu(o,"y")&&(e.skipY=1),e.skipX&&e.skipY&&(l.kill(),e.vars.onAutoKill&&e.vars.onAutoKill.apply(l,e.vars.onAutoKillParams||[]))),p?Iu.scrollTo(e.skipX?n:e.x,e.skipY?r:e.y):(e.skipY||(o.scrollTop=e.y),e.skipX||(o.scrollLeft=e.x)),e.xPrev=e.x,e.yPrev=e.y},kill:function(t){var e="scrollTo"===t;(e||"scrollTo_x"===t)&&(this.skipX=1),(e||"scrollTo_y"===t)&&(this.skipY=1)}};Zu.max=qu,Zu.getOffset=Gu,Zu.buildGetter=Hu,Uu()&&Nu.registerPlugin(Zu);
/*!
 * strings: 3.2.6
 * https://greensock.com
 *
 * Copyright 2008-2020, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for
 * Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/
var $u=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;
/*!
 * SplitText: 3.2.6
 * https://greensock.com
 *
 * @license Copyright 2008-2020, GreenSock. All rights reserved.
 * Subject to the terms at https://greensock.com/standard-license or for
 * Club GreenSock members, the agreement issued with that membership.
 * @author: Jack Doyle, jack@greensock.com
*/
var Ju,ts,es,ns,rs=/(?:\r|\n|\t\t)/g,is=/(?:\s\s+)/g,us=function(t){return ts.getComputedStyle(t)},ss=Array.isArray,as=[].slice,os=function(t,e){var n;return ss(t)?t:"string"==(n=typeof t)&&!e&&t?as.call(Ju.querySelectorAll(t),0):t&&"object"===n&&"length"in t?as.call(t,0):t?[t]:[]},ls=function(t){return"absolute"===t.position||!0===t.absolute},hs=function(t,e){for(var n,r=e.length;--r>-1;)if(n=e[r],t.substr(0,n.length)===n)return n.length},fs=function(t,e){void 0===t&&(t="");var n=~t.indexOf("++"),r=1;return n&&(t=t.split("++").join("")),function(){return"<"+e+" style='position:relative;display:inline-block;'"+(t?" class='"+t+(n?r++:"")+"'>":">")}},Ds=function t(e,n,r){var i=e.nodeType;if(1===i||9===i||11===i)for(e=e.firstChild;e;e=e.nextSibling)t(e,n,r);else 3!==i&&4!==i||(e.nodeValue=e.nodeValue.split(n).join(r))},ps=function(t,e){for(var n=e.length;--n>-1;)t.push(e[n])},cs=function(t,e,n){for(var r;t&&t!==e;){if(r=t._next||t.nextSibling)return r.textContent.charAt(0)===n;t=t.parentNode||t._parent}},ds=function t(e){var n,r,i=os(e.childNodes),u=i.length;for(n=0;n<u;n++)(r=i[n])._isSplit?t(r):(n&&3===r.previousSibling.nodeType?r.previousSibling.nodeValue+=3===r.nodeType?r.nodeValue:r.firstChild.nodeValue:3!==r.nodeType&&e.insertBefore(r.firstChild,r),e.removeChild(r))},gs=function(t,e){return parseFloat(e[t])||0},_s=function(t,e,n,r,i,u,s){var a,o,l,h,f,D,p,c,d,g,_,m,v=us(t),y=gs("paddingLeft",v),C=-999,x=gs("borderBottomWidth",v)+gs("borderTopWidth",v),F=gs("borderLeftWidth",v)+gs("borderRightWidth",v),w=gs("paddingTop",v)+gs("paddingBottom",v),E=gs("paddingLeft",v)+gs("paddingRight",v),b=.2*gs("fontSize",v),T=v.textAlign,A=[],M=[],P=[],B=e.wordDelimiter||" ",S=e.tag?e.tag:e.span?"span":"div",O=e.type||e.split||"chars,words,lines",k=i&&~O.indexOf("lines")?[]:null,L=~O.indexOf("words"),N=~O.indexOf("chars"),R=ls(e),I=e.linesClass,z=~(I||"").indexOf("++"),Y=[];for(z&&(I=I.split("++").join("")),l=(o=t.getElementsByTagName("*")).length,f=[],a=0;a<l;a++)f[a]=o[a];if(k||R)for(a=0;a<l;a++)((D=(h=f[a]).parentNode===t)||R||N&&!L)&&(m=h.offsetTop,k&&D&&Math.abs(m-C)>b&&("BR"!==h.nodeName||0===a)&&(p=[],k.push(p),C=m),R&&(h._x=h.offsetLeft,h._y=m,h._w=h.offsetWidth,h._h=h.offsetHeight),k&&((h._isSplit&&D||!N&&D||L&&D||!L&&h.parentNode.parentNode===t&&!h.parentNode._isSplit)&&(p.push(h),h._x-=y,cs(h,t,B)&&(h._wordEnd=!0)),"BR"===h.nodeName&&(h.nextSibling&&"BR"===h.nextSibling.nodeName||0===a)&&k.push([])));for(a=0;a<l;a++)D=(h=f[a]).parentNode===t,"BR"!==h.nodeName?(R&&(d=h.style,L||D||(h._x+=h.parentNode._x,h._y+=h.parentNode._y),d.left=h._x+"px",d.top=h._y+"px",d.position="absolute",d.display="block",d.width=h._w+1+"px",d.height=h._h+"px"),!L&&N?h._isSplit?(h._next=h.nextSibling,h.parentNode.appendChild(h)):h.parentNode._isSplit?(h._parent=h.parentNode,!h.previousSibling&&h.firstChild&&(h.firstChild._isFirst=!0),h.nextSibling&&" "===h.nextSibling.textContent&&!h.nextSibling.nextSibling&&Y.push(h.nextSibling),h._next=h.nextSibling&&h.nextSibling._isFirst?null:h.nextSibling,h.parentNode.removeChild(h),f.splice(a--,1),l--):D||(m=!h.nextSibling&&cs(h.parentNode,t,B),h.parentNode._parent&&h.parentNode._parent.appendChild(h),m&&h.parentNode.appendChild(Ju.createTextNode(" ")),"span"===S&&(h.style.display="inline"),A.push(h)):h.parentNode._isSplit&&!h._isSplit&&""!==h.innerHTML?M.push(h):N&&!h._isSplit&&("span"===S&&(h.style.display="inline"),A.push(h))):k||R?(h.parentNode&&h.parentNode.removeChild(h),f.splice(a--,1),l--):L||t.appendChild(h);for(a=Y.length;--a>-1;)Y[a].parentNode.removeChild(Y[a]);if(k){for(R&&(g=Ju.createElement(S),t.appendChild(g),_=g.offsetWidth+"px",m=g.offsetParent===t?0:t.offsetLeft,t.removeChild(g)),d=t.style.cssText,t.style.cssText="display:none;";t.firstChild;)t.removeChild(t.firstChild);for(c=" "===B&&(!R||!L&&!N),a=0;a<k.length;a++){for(p=k[a],(g=Ju.createElement(S)).style.cssText="display:block;text-align:"+T+";position:"+(R?"absolute;":"relative;"),I&&(g.className=I+(z?a+1:"")),P.push(g),l=p.length,o=0;o<l;o++)"BR"!==p[o].nodeName&&(h=p[o],g.appendChild(h),c&&h._wordEnd&&g.appendChild(Ju.createTextNode(" ")),R&&(0===o&&(g.style.top=h._y+"px",g.style.left=y+m+"px"),h.style.top="0px",m&&(h.style.left=h._x-m+"px")));0===l?g.innerHTML="&nbsp;":L||N||(ds(g),Ds(g,String.fromCharCode(160)," ")),R&&(g.style.width=_,g.style.height=h._h+"px"),t.appendChild(g)}t.style.cssText=d}R&&(s>t.clientHeight&&(t.style.height=s-w+"px",t.clientHeight<s&&(t.style.height=s+x+"px")),u>t.clientWidth&&(t.style.width=u-E+"px",t.clientWidth<u&&(t.style.width=u+F+"px"))),ps(n,A),L&&ps(r,M),ps(i,P)},ms=function(t,e,n,r){var i,u,s,a,o,l,h,f,D=e.tag?e.tag:e.span?"span":"div",p=~(e.type||e.split||"chars,words,lines").indexOf("chars"),c=ls(e),d=e.wordDelimiter||" ",g=" "!==d?"":c?"&#173; ":" ",_="</"+D+">",m=1,v=e.specialChars?"function"==typeof e.specialChars?e.specialChars:hs:null,y=Ju.createElement("div"),C=t.parentNode;for(C.insertBefore(y,t),y.textContent=t.nodeValue,C.removeChild(t),h=-1!==(i=function t(e){var n=e.nodeType,r="";if(1===n||9===n||11===n){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)r+=t(e)}else if(3===n||4===n)return e.nodeValue;return r}(t=y)).indexOf("<"),!1!==e.reduceWhiteSpace&&(i=i.replace(is," ").replace(rs,"")),h&&(i=i.split("<").join("{{LT}}")),o=i.length,u=(" "===i.charAt(0)?g:"")+n(),s=0;s<o;s++)if(l=i.charAt(s),v&&(f=v(i.substr(s),e.specialChars)))l=i.substr(s,f||1),u+=p&&" "!==l?r()+l+"</"+D+">":l,s+=f-1;else if(l===d&&i.charAt(s-1)!==d&&s){for(u+=m?_:"",m=0;i.charAt(s+1)===d;)u+=g,s++;s===o-1?u+=g:")"!==i.charAt(s+1)&&(u+=g+n(),m=1)}else"{"===l&&"{{LT}}"===i.substr(s,6)?(u+=p?r()+"{{LT}}</"+D+">":"{{LT}}",s+=5):l.charCodeAt(0)>=55296&&l.charCodeAt(0)<=56319||i.charCodeAt(s+1)>=65024&&i.charCodeAt(s+1)<=65039?(a=((i.substr(s,12).split($u)||[])[1]||"").length||2,u+=p&&" "!==l?r()+i.substr(s,a)+"</"+D+">":i.substr(s,a),s+=a-1):u+=p&&" "!==l?r()+l+"</"+D+">":l;t.outerHTML=u+(m?_:""),h&&Ds(C,"{{LT}}","<")},vs=function t(e,n,r,i){var u,s,a=os(e.childNodes),o=a.length,l=ls(n);if(3!==e.nodeType||o>1){for(n.absolute=!1,u=0;u<o;u++)(3!==(s=a[u]).nodeType||/\S+/.test(s.nodeValue))&&(l&&3!==s.nodeType&&"inline"===us(s).display&&(s.style.display="inline-block",s.style.position="relative"),s._isSplit=!0,t(s,n,r,i));return n.absolute=l,void(e._isSplit=!0)}ms(e,n,r,i)},ys=function(){function t(t,e){es||(Ju=document,ts=window,es=1),this.elements=os(t),this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=e||{},this.split(e)}var e=t.prototype;return e.split=function(t){this.isSplit&&this.revert(),this.vars=t=t||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var e,n,r,i=this.elements.length,u=t.tag?t.tag:t.span?"span":"div",s=fs(t.wordsClass,u),a=fs(t.charsClass,u);--i>-1;)r=this.elements[i],this._originals[i]=r.innerHTML,e=r.clientHeight,n=r.clientWidth,vs(r,t,s,a),_s(r,t,this.chars,this.words,this.lines,n,e);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},e.revert=function(){var t=this._originals;if(!t)throw"revert() call wasn't scoped properly.";return this.elements.forEach((function(e,n){return e.innerHTML=t[n]})),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},t.create=function(e,n){return new t(e,n)},t}();ys.version="3.2.6",wr.registerPlugin(Ue,Er,Le,Le,Pr,xi,Si,$i,Lu,Zu,yr);var Cs=ns=window.punchgs=window.tpGS={};for(var xs in Cs.gsap=wr,Cs.TweenLite=Ue,Cs.TweenMax=Er,Cs.TimelineLite=Le,Cs.TimelineMax=Le,Cs.CustomBounce=Pr,Cs.CustomEase=xi,Cs.CustomWiggle=Si,Cs.DrawSVGPlugin=$i,Cs.MotionPathPlugin=Lu,Cs.ScrollToPlugin=Zu,Cs.CSSPlugin=yr,
/*! Map SplitText to tpGS TPGSSPLITTEXT */
Cs.SplitText=ys,Cs.RAD2DEG=180/Math.PI,Cs.DEG2RAD=Math.PI/180,
/*! REGISTER MOTION PATH (BEZIER) */
Cs.gsap.registerPlugin(Cs.MotionPathPlugin),Cs.gsap.config({nullTargetWarn:!1}),
/*!FallBack for old and new Eases*/
Cs.eases=Cs.gsap.parseEase(),Cs.eases)Cs.eases.hasOwnProperty(xs)&&void 0===Cs[xs]&&(Cs[xs]=Cs.eases[xs])
/*! FallBack for Essential Grid */;void 0!==ns&&void 0!==ns.TweenLite&&void 0===ns.TweenLite.lagSmoothing&&(ns.TweenLite.lagSmoothing=function(){})}]);/*!

  - Slider Revolution 6.2.21 JavaScript Plugin -

..........................xXXXXX.................
................. xXXXXX..xXXXXX..xXXXXX.........
..................xXXXXX..xXXXXX..xXXXXX.........
..........xXXXXX..xXXXXX..xXXXXX..xXXXXX.........
..........xXXXXX..xXXXXX..xXXXXX..xXXXXX.........
..........xXXXXX..xXXXXX..xXXXXX..xXXXXX.........
..........xXXXXX..xXXXXX..xXXXXX..xXXXXX.........
..........xXXXXX..xXXXXX..xXXXXX..xXXXXX.........
.........,xXXXXX..xXXXXX..xXXXXX..xXXXXX.........
.........,xXXXXX..xXXXXX..xXXXXX..xXXXXX.........
.........,xXXXXX..xXXXXX..xXXXXX..xXXXXX.........
..........xXXXXX..xXXXXX..xXXXXX..xXXXXX.........
.....................xxxxxxxxxxxxxxxxxxx.........
.....................xxxxxxxxxxxxxxxxxxx.........
.....................xxxxxxxxxxxxxxxxxxx.........

				VERSION: 6.2.22
			   DATE: 2020-08-20
    @author: Krisztian Horvath, ThemePunch OHG.


UPDATES AND DOCS AT: 
https://www.themepunch.com/support-center
			
GET LICENSE AT: 
https://www.themepunch.com/links/slider_revolution_wordpress_regular_license

LICENSE:
Copyright (c) 2009-2019, ThemePunch. All rights reserved.
This work is subject to the terms at https://www.themepunch.com/links/slider_revolution_wordpress_regular_license (Regular / Extended)

*/
!function(e,t){"use strict";var i;window.RSANYID=window.RSANYID===t?[]:window.RSANYID,window.RSANYID_sliderID=window.RSANYID_sliderID===t?[]:window.RSANYID_sliderID,e.fn.extend({revolution:function(o){return this.each(function(){i=e.fn.revolution;for(var s=document.getElementsByClassName("rs-p-wp-fix");s[0];)s[0].parentNode.removeChild(s[0]);this.id!==t?(i[n]={anyid:[]},this.id=i.revCheckIDS(n,this,!0)):this.id="rs_module_"+Math.round(1e7*Math.random());var n=this.id,d=e.extend(!0,{},o);i[n]=F(o),i[n].ignoreHeightChange=a&&"fullscreen"===i[n].sliderLayout&&i[n].ignoreHeightChange,i[n].option_export=d,i[n].anyid=[],i[n].c=e(this),i[n].cpar=i[n].c.parent(),i[n].canvas=i[n].c.find("rs-slides"),i[n].caches={calcResponsiveLayersList:[],contWidthManager:{}},window.RSBrowser=window.RSBrowser===t?i.get_browser():window.RSBrowser,i[n].noDetach=i[n].BUG_ie_clipPath="Edge"===window.RSBrowser||"IE"===window.RSBrowser,i[n].indexhelper=0,i[n].level=0,i[n].rtl=e("body").hasClass("rtl"),i[n]._L=i[n]._L===t?{}:i[n]._L,i[n].emptyObject="{}",i[n].dimensionReCheck={},i.globalListener===t&&i.pageHandler(n),i[n].stopAfterLoops!=t&&i[n].stopAfterLoops>-1?i[n].looptogo=i[n].stopAfterLoops:i[n].looptogo="disabled",i[n].BUG_safari_clipPath="Safari"===i.get_browser()&&i.get_browser_version()>"12",i[n].minHeight="fullwidth"===i[n].sliderLayout?0:i[n].minHeight!=t&&""!==i[n].minHeight?parseInt(i[n].minHeight,0):0,i[n].minHeight=i[n].minHeight===t?0:i[n].minHeight,i[n].isEdge="Edge"===i.get_browser(),r(n),i.updateVisibleArea(n),l(n),W(n),window.requestAnimationFrame(function(){if("fullscreen"===i[n].sliderLayout){var e=i.getFullscreenOffsets(n);0!==e&&i[n].cpar.height(i.getWinH(n)-e)}i[n].cpar[0].style.visibility="visible"}),"hero"==i[n].sliderType&&i[n].c.find("rs-slide").each(function(t){t>0&&e(this).remove()}),i[n].navigation.use="hero"!==i[n].sliderType&&("carousel"==i[n].sliderType||i[n].navigation.keyboardNavigation||"on"==i[n].navigation.mouseScrollNavigation||"carousel"==i[n].navigation.mouseScrollNavigation||i[n].navigation.touch.touchenabled||i[n].navigation.arrows.enable||i[n].navigation.bullets.enable||i[n].navigation.thumbnails.enable||i[n].navigation.tabs.enable),i[n].c.find("rs-bgvideo").each(function(){"RS-BGVIDEO"!==this.tagName||this.id!==t&&""!==this.id||(this.id="rs-bg-video-"+Math.round(1e6*Math.random()))}),tpGS.force3D="auto",!0===i[n].modal.useAsModal&&-1===i.RS_prioList.indexOf(n)&&(i.RS_toInit[n]=!1,i.RS_prioList.push(n)),i.RS_killedlist!==t&&-1!==i.RS_killedlist.indexOf(n)&&(i.RS_toInit[n]=!1,i.RS_prioList.push(n)),!0===i.RS_prioListFirstInit&&!0!==i[n].modal.useAsModal&&-1===i.RS_prioList.indexOf(n)&&(i.RS_toInit[n]=!1,i.RS_prioList.push(n)),i.initNextRevslider(n)})},getRSJASONOptions:function(e){console.log(JSON.stringify(i[e].option_export))},getRSVersion:function(e){var t,i,a=window.SliderRevolutionVersion;if(!e){for(var r in t=i="---------------------------------------------------------\n",t+="    Currently Loaded Slider Revolution & SR Modules :\n"+i,a)a.hasOwnProperty(r)&&(t+=a[r].alias+": "+a[r].ver+"\n");t+=i}return e?a:t},revremoveslide:function(t){return this.each(function(){var a=this.id;if(!(t<0||t>i[a].slideamount)&&i[a]&&i[a].slides.length>0&&(t>0||t<=i[a].slides.length)){var r=i.gA(i[a].slides[t],"key");i[a].slideamount=i[a].slideamount-1,i[a].realslideamount=i[a].realslideamount-1,s("rs-bullet",r,a),s("rs-tab",r,a),s("rs-thumb",r,a),e(i[a].slides[t]).remove(),i[a].thumbs=o(i[a].thumbs,t),i.updateNavIndexes&&i.updateNavIndexes(a),t<=i[a].pr_active_key&&(i[a].pr_active_key=i[a].pr_active_key-1)}})},revaddcallback:function(e){return this.each(function(){i[this.id]&&(i[this.id].callBackArray===t&&(i[this.id].callBackArray=[]),i[this.id].callBackArray.push(e))})},revgetparallaxproc:function(){if(i[this[0].id])return i[this[0].id].scrollproc},revdebugmode:function(){},revscroll:function(t){return this.each(function(){var i=e(this);e("body,html").animate({scrollTop:i.offset().top+i.height()-t+"px"},{duration:400})})},revredraw:function(){return this.each(function(){m(this.id)})},revkill:function(){return this.each(function(){var a=this.id;i[a].c.data("conthover",1),i[a].c.data("conthoverchanged",1),i[a].c.trigger("revolution.slide.onpause"),i[a].tonpause=!0,i[a].c.trigger("stoptimer"),i[a].sliderisrunning=!1;var r="updateContainerSizes."+i[a].c.attr("id");i.window.unbind(r),tpGS.gsap.killTweensOf(i[a].c.find("*"),!1),tpGS.gsap.killTweensOf(i[a].c,!1),i[a].c.unbind("hover, mouseover, mouseenter,mouseleave, resize"),i[a].c.find("*").each(function(){var i=e(this);i.unbind("on, hover, mouseenter,mouseleave,mouseover, resize,restarttimer, stoptimer"),i.off("on, hover, mouseenter,mouseleave,mouseover, resize"),i.data("mySplitText",null),i.data("ctl",null),i.data("tween")!=t&&i.data("tween").kill(),i.data("pztl")!=t&&i.data("pztl").kill(),i.data("timeline_out")!=t&&i.data("timeline_out").kill(),i.data("timeline")!=t&&i.data("timeline").kill(),i.remove(),i.empty(),i=null}),tpGS.gsap.killTweensOf(i[a].c.find("*"),!1),tpGS.gsap.killTweensOf(i[a].c,!1),i[a].progressC.remove();try{i[a].c.closest(".rev_slider_wrapper").detach()}catch(e){}try{i[a].c.closest("rs-fullwidth-wrap").remove()}catch(e){}try{i[a].c.closest("rs-module-wrap").remove()}catch(e){}try{i[a].c.remove()}catch(e){}i[a].cpar.detach(),i[a].c.html(""),i[a].c=null,delete i[a],i.RS_prioList.splice(i.RS_prioList.indexOf(a),1),i.RS_toInit[a]=!1,i.RS_killedlist=i.RS_killedlist===t?[]:i.RS_killedlist,-1===i.RS_killedlist.indexOf(a)&&i.RS_killedlist.push(a)})},revpause:function(){return this.each(function(){var a=e(this);a!=t&&a.length>0&&e("body").find("#"+a.attr("id")).length>0&&(a.data("conthover",1),a.data("conthoverchanged",1),a.trigger("revolution.slide.onpause"),i[this.id].tonpause=!0,a.trigger("stoptimer"))})},revresume:function(){return this.each(function(){if(i[this.id]!==t){var a=e(this);a.data("conthover",0),a.data("conthoverchanged",1),a.trigger("revolution.slide.onresume"),i[this.id].tonpause=!1,a.trigger("starttimer")}})},revmodal:function(a){var r=this instanceof e?this[0]:this,o=r.id;i[r.id]!==t&&i.revModal(o,a)},revstart:function(){var a=this instanceof e?this[0]:this;return i[a.id]===t?(console.log("Slider is Not Existing"),!1):i[a.id].sliderisrunning||!0===i[a.id].initEnded?(console.log("Slider Is Running Already"),!1):(i[a.id].c=e(a),i[a.id].canvas=i[a.id].c.find("rs-slides"),u(a.id),!0)},revnext:function(){return this.each(function(){i[this.id]!==t&&i.callingNewSlide(this.id,1,"carousel"===i[this.id].sliderType)})},revprev:function(){return this.each(function(){i[this.id]!==t&&i.callingNewSlide(this.id,-1,"carousel"===i[this.id].sliderType)})},revmaxslide:function(){return e(this).find("rs-slide").length},revcurrentslide:function(){if(i[e(this)[0].id]!==t)return parseInt(i[e(this)[0].id].pr_active_key,0)+1},revlastslide:function(){return e(this).find("rs-slide").length},revshowslide:function(e){return this.each(function(){i[this.id]!==t&&e!==t&&i.callingNewSlide(this.id,"to"+(e-1))})},revcallslidewithid:function(e){return this.each(function(){i[this.id]!==t&&i.callingNewSlide(this.id,e,"carousel"===i[this.id].sliderType)})}}),i=e.fn.revolution,e.extend(!0,i,{pageHandler:function(r){i.globalListener=!0,i.window=e(window),i.document=e(document),i.RS_toInit={},i.RS_prioList=[],i.RS_swapping=[],i.RS_swapList={},window.isSafari11===t&&(window.isSafari11=i.isSafari11()),window.addEventListener("resize",i.getWindowDimension),a&&window.addEventListener("orientationchange",function(){i.getWindowDimension(!1),setTimeout(function(){i.getWindowDimension(!0)},400)}),i.getWindowDimension(!1),i.stickySupported=!1,"IE"!==window.RSBrowser&&(i.stickySupported=!0),i.checkParrentOverflows(r);var o=document.getElementsByTagName("rs-module");for(var s in o)o.hasOwnProperty(s)&&(i.RS_toInit[o[s].id]=!1,i.RS_prioList.push(o[s].id));i.nextSlider=r,i.RS_prioListFirstInit=!0},checkParrentOverflows:function(e){window.requestAnimationFrame(function(){for(var t=i[e].cpar[0];t.parentNode&&!1!==i.stickySupported;){if("RS-MODULE-WRAP"!==t.tagName&&"RS-FULLWIDTH-WRAP"!==t.tagName&&"RS-MODULE-WRAP"!==t.tagName&&-1===t.className.indexOf("wp-block-themepunch-revslider")){var a=window.getComputedStyle(t);i.stickySupported="hidden"!==a.overflow&&"hidden"!==a.overflowX&&"hidden"!==a.overflowY}t=t.parentNode}})},initNextRevslider:function(e){i.RS_prioList[0]===e&&!1===i.RS_toInit[e]?(i.RS_toInit[e]="waiting",c(e),setTimeout(function(){i.initNextRevslider(e)},19)):i.RS_prioList[0]===e&&"waiting"===i.RS_toInit[e]?setTimeout(function(){i.initNextRevslider(e)},19):i.RS_prioList[0]===e&&!0===i.RS_toInit[e]?(i.RS_prioList.shift(),0!==i.RS_prioList.length&&setTimeout(function(){i.initNextRevslider(e)},19)):i.RS_prioList[0]!==e&&!1===i.RS_toInit[e]?setTimeout(function(){i.initNextRevslider(e)},19):0===i.RS_prioList.length&&!0===i.RS_toInit[e]&&c(e)},scrollTicker:function(e){1!=i.scrollTickerAdded&&(i.slidersToScroll=[],i.scrollTickerAdded=!0,a?(tpGS.gsap.ticker.fps(150),tpGS.gsap.ticker.add(function(){i.generalObserver()})):document.addEventListener("scroll",function(e){i.scrollRaF===t&&(i.scrollRaF=requestAnimationFrame(i.generalObserver.bind(this,!0)))},{passive:!0})),i.slidersToScroll.push(e),i.generalObserver(a)},generalObserver:function(e){for(var t in i.scrollRaF&&(i.scrollRaF=cancelAnimationFrame(i.scrollRaF)),i.lastwindowheight=i.lastwindowheight||i.winH,i.scrollY=window.scrollY,i.slidersToScroll)i.slidersToScroll.hasOwnProperty(t)&&i.scrollHandling(i.slidersToScroll[t],e)},enterViewPort:function(a,r){!0!==i[a].started?(i[a].started=!0,setTimeout(function(){R(a),"hero"!==i[a].sliderType&&i.manageNavigation&&i[a].navigation.use&&!0===i[a].navigation.createNavigationDone&&i.manageNavigation(a),i[a].slideamount>1&&G(a),setTimeout(function(){i[a]!==t&&(i[a].revolutionSlideOnLoaded=!0,i[a].c.trigger("revolution.slide.onloaded"))},50)},i[a].startDelay),i[a].startDelay=0,window.requestAnimationFrame(function(){h(a)})):(i[a].waitForCountDown&&(G(a),i[a].waitForCountDown=!1),"playing"!=i[a].sliderlaststatus&&i[a].sliderlaststatus!=t||i[a].c.trigger("starttimer"),i[a].lastplayedvideos!=t&&i[a].lastplayedvideos.length>0&&e.each(i[a].lastplayedvideos,function(e,t){i.playVideo(t,a)}))},leaveViewPort:function(a){i[a].sliderlaststatus=i[a].sliderstatus,i[a].c.trigger("stoptimer"),i[a].playingvideos!=t&&i[a].playingvideos.length>0&&(i[a].lastplayedvideos=e.extend(!0,[],i[a].playingvideos),i[a].playingvideos&&e.each(i[a].playingvideos,function(e,t){i[a].leaveViewPortBasedStop=!0,i.stopVideo&&i.stopVideo(t,a)}))},scrollHandling:function(e,a,r,o){if(i[e]!==t){var s=i[e].topc!==t?i[e].topc[0].getBoundingClientRect():0===i[e].conh?i[e].cpar[0].getBoundingClientRect():i[e].c[0].getBoundingClientRect();s.hheight=0===s.height?0===i[e].conh?i[e].height:i[e].conh:s.height,i[e].scrollproc=s.top<0||s.hheight>i.lastwindowheight&&s.top<i.lastwindowheight?s.top/s.hheight:s.bottom>i.lastwindowheight?(s.bottom-i.lastwindowheight)/s.hheight:0;var n=Math.max(0,1-Math.abs(i[e].scrollproc));i[e].viewPort.enable&&("%"===i[e].viewPort.vaType[i[e].level]&&(i[e].viewPort.visible_area[i[e].level]<=n||n>=0&&n<=1&&i[e].sbtimeline.fixed)||"px"===i[e].viewPort.vaType[i[e].level]&&(s.top<=0&&s.bottom>=i.lastwindowheight||s.top>=0&&s.bottom<=i.lastwindowheight||s.top>=0&&s.top<i.lastwindowheight-i[e].viewPort.visible_area[i[e].level]||s.bottom>=i[e].viewPort.visible_area[i[e].level]&&s.bottom<i.lastwindowheight)?i[e].inviewport||(i[e].inviewport=!0,i.enterViewPort(e,!0),i[e].c.trigger("enterviewport")):i[e].inviewport&&(i[e].inviewport=!1,i.leaveViewPort(e),i[e].c.trigger("leftviewport"))),i[e].inviewport&&(i.callBackHandling&&i.callBackHandling(e,"parallax","start"),i.parallaxProcesses(e,s,o,r),i.callBackHandling&&i.callBackHandling(e,"parallax","end"))}},getWinH:function(e){return i[e].ignoreHeightChange?i.mobileWinH:i.winH},getWindowDimension:function(e){!1===e?(i.winWAll=window.innerWidth,i.winWSbar=document.documentElement.clientWidth,a?(i.zoom=i.winWSbar/i.winWAll,i.winW=1!==i.zoom?i.winWSbar*i.zoom:Math.min(i.winWAll,i.winWSbar),i.winH=1!==i.zoom?window.innerHeight*i.zoom:window.innerHeight):(i.scrollBarWidth=i.winWAll-i.winWSbar,i.winW=Math.min(i.winWAll,i.winWSbar),i.winH=window.innerHeight),a&&i.winH>125&&(i.lastwindowheight!==t&&Math.abs(i.lastwindowheight-i.winH)<125?i.mobileWinH=i.lastwindowheight:i.mobileWinH=i.winH)):clearTimeout(i.windowDimenstionDelay),i.windowDimenstionDelay=setTimeout(function(){i.winWAll=window.innerWidth,i.winWSbar=document.documentElement.clientWidth,a?(i.zoom=i.winWSbar/i.winWAll,i.winW=1!==i.zoom?i.winWSbar*i.zoom:Math.min(i.winWAll,i.winWSbar),i.winH=1!==i.zoom?window.innerHeight*i.zoom:window.innerHeight):(i.scrollBarWidth=i.winWAll-i.winWSbar,i.winW=Math.min(i.winWAll,i.winWSbar),i.winH=window.innerHeight),a&&i.winH>125&&(i.lastwindowheight!==t&&Math.abs(i.lastwindowheight-i.winH)<125?i.mobileWinH=i.lastwindowheight:i.mobileWinH=i.winH),!1!==e&&i.document.trigger("updateContainerSizes")},100)},sA:function(e,t,i){e&&e.setAttribute&&e.setAttribute("data-"+t,i)},gA:function(e,i,a){return e===t?t:e.hasAttribute&&e.hasAttribute("data-"+i)&&e.getAttribute("data-"+i)!==t&&null!==e.getAttribute("data-"+i)?e.getAttribute("data-"+i):a!==t?a:t},iWA:function(e,a){return i[e].justifyCarousel?"static"===a?i[e].carousel.wrapwidth:i[e].carousel.slide_widths[a!==t?a:i[e].carousel.focused]:i[e].gridwidth[i[e].level]},iHE:function(e,t){return i[e].useFullScreenHeight?i[e].conh:Math.max(i[e].currentRowsHeight,i[e].gridheight[i[e].level])},updateFixedScrollTimes:function(e){!0===i[e].sbtimeline.set&&!0===i[e].sbtimeline.fixed&&"auto"!==i[e].sliderLayout&&(i[e].sbtimeline.rest=i[e].duration-i[e].sbtimeline.fixEnd,i[e].sbtimeline.time=i[e].duration-(i[e].sbtimeline.fixStart+i[e].sbtimeline.rest),i[e].sbtimeline.extended=i[e].sbtimeline.time/10)},addSafariFix:function(e){!0===window.isSafari11&&!0!==i[e].safari3dFix&&(i[e].safari3dFix=!0,i[e].c[0].className+=" safarifix")},callContWidthManager:function(e){i.contWidthManager(e,"CallContWidthManager")},showModalCover:function(a,r,o){switch(o){case"show":var s;r.spin!==t&&"off"!==r.spin&&(s=i.buildSpinner(a,"spinner"+r.spin,r.spinc,"modalspinner")),r.bg!==t&&!1!==r.bg&&"false"!==r.bg&&"transparent"!==r.bg?(i[a].modalLoader=e('<rs-modal-cover data-rid="'+a+'" id="'+a+'_modal_bg"></rs-modal-cover>'),e("body").append(i[a].modalLoader),tpGS.gsap.set(i[a].modalLoader,{display:"none",background:r.bg,opacity:0}),tpGS.gsap.to(i[a].modalLoader,.5,{display:"block",opacity:1,ease:"power3.inOut"}),i.isModalOpen=!0,s!==t&&i[a].modalLoader.append(s)):s!==t&&i[a].c.append(s);break;case"hide":i[a].modalLoader!==t?(i[a].modalLoader.find(".modalspinner").remove(),tpGS.gsap.to(i[a].modalLoader,2,{delay:1,display:"none",opacity:0,ease:"power3.in",onComplete:function(){i.isModalOpen=!1}})):i[a].c.find(".modalspinner").remove()}},revModal:function(a,r){if(a!==t&&i[a]!==t&&"clicked"!==i[a].modal.closeProtection){if(!0===i[a].modal.closeProtection)return i[a].modal.closeProtection,void setTimeout(function(){i[a].modal.closeProtection=!1,i.revModal(a,r)},750);switch(r.mode){case"show":if(!0===i[a].modal.isLive)return;i[a].modal.isLive=!0,r.slide=r.slide===t?"to0":r.slide,i[a].modal.bodyclass!==t&&i[a].modal.bodyclass.length>=0&&document.body.classList.add(i[a].modal.bodyclass),tpGS.gsap.to(i[a].modal.bg,2,{display:"block",opacity:1,ease:"power3.inOut"}),tpGS.gsap.set(i[a].modal.c,{display:"auto"===i[a].sliderLayout?"inline-block":"block",opacity:0}),i[a].cpar.removeClass("hideallscrollbars"),tpGS.gsap.set(i[a].cpar,{display:"block",opacity:1});var o={a:0};i.isModalOpen=!0,tpGS.gsap.fromTo(o,.01,{a:0},{a:10,ease:"power3.inOut",onStart:function(){i[a].sliderisrunning&&i.updateDimensions(a,"revModal")},onComplete:function(){i.openModalId=a,i[a].sliderisrunning?i.callingNewSlide(a,r.slide):("to0"!==r.slide&&(i[a].startWithSlideKey=r.slide),u(a))}}),tpGS.gsap.fromTo([i[a].modal.c],.01,{opacity:0},{opacity:1,delay:.5,ease:"power3.inOut",onComplete:function(){}}),window.overscrollhistory=document.body.style.overflow,setTimeout(function(){document.body.style.overflow="hidden"},250),i.getWindowDimension();break;case"close":i.openModalId=t,A(a),document.body.style.overflow=window.overscrollhistory,i[a].cpar.addClass("hideallscrollbars"),i[a].modal.bodyclass!==t&&i[a].modal.bodyclass.length>=0&&document.body.classList.remove(i[a].modal.bodyclass),tpGS.gsap.to(i[a].modal.bg,2,{display:"none",opacity:0,ease:"power3.inOut"}),tpGS.gsap.to(i[a].modal.c,.3,{display:"none",delay:.5,opacity:0,onComplete:function(){tpGS.gsap.set(i[a].cpar,{display:"none",opacity:0}),i.document.trigger("revolution.all.resize"),i.getWindowDimension(),i.isModalOpen=!1}}),i[a].modal.closeProtection=!0,setTimeout(function(){i[a].modal.isLive=!1,i[a].modal.closeProtection=!1},750);break;case"init":if(window.RS_60_MODALS=window.RS_60_MODALS===t?[]:window.RS_60_MODALS,-1===e.inArray(i[a].modal.alias,window.RS_60_MODALS)&&window.RS_60_MODALS.push(i[a].modal.alias),i[a].modal.listener===t&&(i[a].modal.c=e("#"+a+"_modal"),i[a].modal.bg=e('<rs-modal-cover data-rid="'+a+'" id="'+a+'_modal_bg"></rs-modal-cover>'),"auto"===i[a].sliderLayout&&i[a].modal.cover?e("body").append(i[a].modal.bg):i[a].modal.c.append(i[a].modal.bg),i[a].modal.c[0].className+="rs-modal-"+i[a].sliderLayout,i[a].modal.calibration={left:"auto"===i[a].sliderLayout?"center"===i[a].modal.horizontal?"50%":"left"===i[a].modal.horizontal?"0px":"auto":"0px",right:"auto"===i[a].sliderLayout?"center"===i[a].modal.horizontal?"auto":"left"===i[a].modal.horizontal?"auto":"0px":"0px",top:"auto"===i[a].sliderLayout||"fullwidth"===i[a].sliderLayout?"middle"===i[a].modal.vertical?"50%":"top"===i[a].modal.vertical?"0px":"auto":"0px",bottom:"auto"===i[a].sliderLayout||"fullwidth"===i[a].sliderLayout?"middle"===i[a].modal.vertical?"auto":"top"===i[a].modal.vertical?"auto":"0px":"0px",y:("auto"===i[a].sliderLayout||"fullwidth"===i[a].sliderLayout)&&"middle"===i[a].modal.vertical?"-50%":0,x:"auto"===i[a].sliderLayout&&"center"===i[a].modal.horizontal?"-50%":0},"-50%"===i[a].modal.calibration.y&&(i[a].modal.calibration.filter="blur(0px)"),tpGS.gsap.set(i[a].modal.c,"auto"===i[a].sliderLayout||"fullscreen"===i[a].sliderLayout?e.extend(!0,i[a].modal.calibration,{opacity:0,display:"none"}):{opacity:0,display:"none"}),"fullwidth"===i[a].sliderLayout&&tpGS.gsap.set(i[a].modal.c.find("rs-module-wrap"),i[a].modal.calibration),!1!==i[a].modal.cover&&"false"!==i[a].modal.cover||(i[a].modal.coverColor="transparent"),tpGS.gsap.set(i[a].modal.bg,{display:"none",background:i[a].modal.coverColor,opacity:0}),i.document.on("RS_OPENMODAL_"+i[a].modal.alias,function(e,t){i.revModal(a,{mode:"show",slide:t})}),i.document.on("click","rs-modal-cover",function(){i.revModal(i.gA(this,"rid"),{mode:"close"})}),i[a].modal.listener=!0,i[a].modal.trigger!==t)){var s,n=i[a].modal.trigger.split(";");for(o in i[a].modal.trigger={},n)if(n.hasOwnProperty(o))switch((s=n[o].split(":"))[0]){case"t":i[a].modal.trigger.time=parseInt(s[1],0);break;case"s":i[a].modal.trigger.scroll=s[1];break;case"so":i[a].modal.trigger.scrollo=parseInt(s[1],0);break;case"e":i[a].modal.trigger.event=s[1]}if(i[a].modal.trigger.time!==t&&0!==i[a].modal.trigger.time&&setTimeout(function(){i.document.trigger("RS_OPENMODAL_"+i[a].modal.alias)},i[a].modal.trigger.time),i[a].modal.trigger.scrollo!==t||i[a].modal.trigger.scroll!==t){i[a].modal.trigger.scroll!==t&&e(i[a].modal.trigger.scroll)[0]!==t&&(i[a].modal.trigger.scroll=e(i[a].modal.trigger.scroll)[0]);var l=function(){if(i[a].modal.trigger.scroll!==t)var e=i[a].modal.trigger.scroll.getBoundingClientRect();(i[a].modal.trigger.scroll!==t&&Math.abs(e.top+(e.bottom-e.top)/2-i.getWinH(a)/2)<50||i[a].modal.trigger.scrollo!==t&&Math.abs(i[a].modal.trigger.scrollo-(i.scrollY!==t?i.scrollY:window.scrollY))<100)&&(i.document.trigger("RS_OPENMODAL_"+i[a].modal.alias),document.removeEventListener("scroll",l))};document.addEventListener("scroll",l,{id:a,passive:!0})}i[a].modal.trigger.event!==t&&i.document.on(i[a].modal.trigger.event,function(){i.document.trigger("RS_OPENMODAL_"+i[a].modal.alias)})}}}},smartConvertDivs:function(e){var t="";if("string"==typeof e&&e.indexOf("#")>=0){var i=e.split(","),a=i.length-1;for(var r in i)t="string"==typeof i[r]&&"#"===i[r][0]?t+i[r][1]/i[r][3]*100+"%"+(r<a?",":""):t+i[r]+(r<a?",":"")}else t=e;return t},revToResp:function(e,i,a,r){if((e=e===t?a:e)!==t){if(r=r===t?",":r,"boolean"!=typeof e&&("object"!=typeof e||Array.isArray(e))){try{e=e.replace(/[[\]]/g,"").replace(/\'/g,"").split(r)}catch(e){}for(e=Array.isArray(e)?e:[e];e.length<i;)e[e.length]=e[e.length-1]}return e}},loadImages:function(a,r,o,s){if(a!==t&&0!==a.length){var n=[];if(e.isArray(a))for(var l in a)a.hasOwnProperty(l)&&a[l]!==t&&n.push(a[l]);else n.push(a);for(var d in n)if(n.hasOwnProperty(d)){var c=n[d].querySelectorAll("img, rs-sbg, .rs-svg");for(var l in c)if(c.hasOwnProperty(l)){var p=g(c[l],t,r),u=p!==t?p:i.gA(c[l],"svg_src")!=t?i.gA(c[l],"svg_src"):c[l].src===t?e(c[l]).data("src"):c[l].src,h=i.gA(c[l],"svg_src")!=t?"svg":"img";u!==t&&i[r].loadqueue!==t&&0==i[r].loadqueue.filter(function(e){return e.src===u}).length&&i[r].loadqueue.push({src:u,index:l,starttoload:e.now(),type:h||"img",prio:o,progress:c[l].complete&&u===c[l].src?"loaded":"prepared",static:s,width:c[l].complete&&u===c[l].src?c[l].width:t,height:c[l].complete&&u===c[l].src?c[l].height:t})}}L(r)}},waitForCurrentImages:function(r,o,s){if(r!==t&&0!==r.length&&i[o]!==t){var n=!1,l=[];if(e.isArray(r))for(var d in r)r.hasOwnProperty(d)&&r[d]!==t&&l.push(r[d]);else l.push(r);for(var c in l)if(l.hasOwnProperty(c)){var p=l[c].querySelectorAll("img, rs-sbg, .rs-svg");for(d in p)if(p.hasOwnProperty(d)&&"length"!==d&&!(p[d].className.indexOf("rs-pzimg")>=0)){var u=e(p[d]).data(),h=g(p[d],t,o),m=h!==t?h:i.gA(p[d],"svg_src")!=t?i.gA(p[d],"svg_src"):p[d].src===t?u.src:p[d].src,f=i.getLoadObj(o,m);if(i.sA(p[d],"src-rs-ref",m),u.loaded===t&&f!==t&&f.progress&&"loaded"==f.progress){if(p[d].src=f.src,"img"==f.type){if(u.slidebgimage){-1==f.src.indexOf("images/transparent.png")&&-1==f.src.indexOf("assets/transparent.png")||u.bgcolor===t?p[d].style.backgroundImage='url("'+f.src+'")':u.bgcolor!==t&&(p[d].style.background=u.bgcolor),i.sA(l[c],"owidth",f.width),i.sA(l[c],"oheight",f.height);var v=l[c].getElementsByTagName("rs-sbg-wrap");if(v.length>0&&(i.sA(v[0],"owidth",f.width),i.sA(v[0],"oheight",f.height)),"carousel"===i[o].sliderType){var y=e(v),b=i.getSlideIndex(o,i.gA(l[c],"key"));y.data("panzoom")===t||i[o].panzoomTLs!==t&&i[o].panzoomTLs[b]!==t||i.startPanZoom(y,o,0,b,"prepare")}}}else"svg"==f.type&&"loaded"==f.progress&&(p[d].innerHTML=f.innerHTML);u.loaded=!0}f&&f.progress&&f.progress.match(/inprogress|inload|prepared/g)&&(!f.error&&e.now()-f.starttoload<3e3?n=!0:(f.progress="failed",f.reported_img||(f.reported_img=!0,console.log(m+"  Could not be loaded !")))),1!=i[o].youtubeapineeded||window.YT&&YT.Player!=t||(n=O("youtube",o)),1!=i[o].vimeoapineeded||window.Vimeo||(n=O("vimeo",o))}}!a&&i[o].audioqueue&&i[o].audioqueue.length>0&&e.each(i[o].audioqueue,function(t,i){i.status&&"prepared"===i.status&&e.now()-i.start<i.waittime&&(n=!0)}),e.each(i[o].loadqueue,function(t,i){!0===i.static&&("loaded"!=i.progress&&"done"!==i.progress||"failed"===i.progress)&&("failed"!=i.progress||i.reported?!i.error&&e.now()-i.starttoload<5e3?n=!0:i.reported||(i.reported=T(i.src,i.error)):i.reported=T(i.src,i.error))}),n?tpGS.gsap.delayedCall(.02,i.waitForCurrentImages,[r,o,s]):s!==t&&tpGS.gsap.delayedCall(1e-4,s)}},updateVisibleArea:function(a){for(var r in i[a].viewPort.visible_area=i.revToResp(i[a].viewPort.visible_area,i[a].rle,"0px"),i[a].viewPort.vaType=new Array(4),i[a].viewPort.visible_area)i[a].viewPort.visible_area.hasOwnProperty(r)&&(e.isNumeric(i[a].viewPort.visible_area[r])&&(i[a].viewPort.visible_area[r]+="%"),i[a].viewPort.visible_area[r]!==t&&(i[a].viewPort.vaType[r]=i[a].viewPort.visible_area[r].indexOf("%")>=0?"%":"px"),i[a].viewPort.visible_area[r]=parseInt(i[a].viewPort.visible_area[r],0),i[a].viewPort.visible_area[r]="%"==i[a].viewPort.vaType[r]?i[a].viewPort.visible_area[r]/100:i[a].viewPort.visible_area[r])},observeFonts:function(e,a,r){r=r===t?0:r,i.fonts===t&&(i.fonts={},i.monoWidth=n("monospace"),i.sansWidth=n("sans-serif"),i.serifWidth=n("serif")),r++;var o=i.fonts[e];!0!==i.fonts[e]&&(i.fonts[e]=i.monoWidth!==n(e+",monospace")||i.sansWidth!==n(e+",sans-serif")||i.serifWidth!==n(e+",serif")),100===r||(!1===o||o===t)&&!0===i.fonts[e]?(n(e+",monospace",!0),n(e+",sans-serif",!0),n(e+",serif",!0),a()):setTimeout(function(){i.observeFonts(e,a,r)},19)},getversion:function(){return"Slider Revolution 6.2.22"},currentSlideIndex:function(e){return i[e].pr_active_key},iOSVersion:function(){return!!(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i))&&navigator.userAgent.match(/OS 4_\d like Mac OS X/i)},isIE:function(t,i){var a=e('<div style="display:none;"/>').appendTo(e("body"));a.html("\x3c!--[if "+(i||"")+" IE "+(t||"")+"]><a>&nbsp;</a><![endif]--\x3e");var r=a.find("a").length;return a.remove(),r},is_mobile:function(){var e=["android","webos","iphone","ipad","blackberry","Android","webos","iPod","iPhone","iPad","Blackberry","BlackBerry"],i=!1;if(window.orientation!==t)i=!0;else for(var a in e)e.hasOwnProperty(a)&&(i=!!(i||navigator.userAgent.split(e[a]).length>1)||i);return i},is_android:function(){var e=["android","Android"],t=!1;for(var i in e)e.hasOwnProperty(i)&&(t=!!(t||navigator.userAgent.split(e[i]).length>1)||t);return t},callBackHandling:function(t,a,r){i[t].callBackArray&&e.each(i[t].callBackArray,function(e,t){t&&t.inmodule&&t.inmodule===a&&t.atposition&&t.atposition===r&&t.callback&&t.callback.call()})},get_browser:function(){var e,t=navigator.userAgent,i=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(i[1])?(e=/\brv[ :]+(\d+)/g.exec(t)||[],"IE"):"Chrome"===i[1]&&null!=(e=t.match(/\b(OPR|Edge)\/(\d+)/))?e[1].replace("OPR","Opera"):(i=i[2]?[i[1],i[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(e=t.match(/version\/(\d+)/i))&&i.splice(1,1,e[1]),i[0])},get_browser_version:function(){var e,t=navigator.appName,i=navigator.userAgent,a=i.match(/(edge|opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);return a&&null!=(e=i.match(/version\/([\.\d]+)/i))&&(a[2]=e[1]),(a=a?[a[1],a[2]]:[t,navigator.appVersion,"-?"])[1]},isFirefox:function(e){return i[e].isFirefox=i[e].isFirefox===t?"Firefox"===i.get_browser():i[e].isFirefox,i[e].isFirefox},isSafari11:function(){return"safari"===e.trim(i.get_browser().toLowerCase())&&parseFloat(i.get_browser_version())>=11},isWebkit:function(){var e=/(webkit)[ \/]([\w.]+)/.exec(navigator.userAgent.toLowerCase());return e&&e[1]&&"webkit"===e[1]},getHorizontalOffset:function(e,t){var i=d(e,".outer-left"),a=d(e,".outer-right");return"left"==t?i:"right"==t?a:"all"==t?{left:i,right:a,both:i+a,inuse:i+a!=0}:i+a},getComingSlide:function(a,r){var o=i[a].pr_next_key!==t?i[a].pr_next_key:i[a].pr_processing_key!==t?i[a].pr_processing_key:i[a].pr_active_key,s=0;if(s=0,i[a].pr_active_slide!==t&&"true"==i.gA(i[a].pr_active_slide[0],"not_in_nav")&&(o=i[a].pr_lastshown_key),r!==t&&e.isNumeric(r)||r!==t&&r.match(/to/g))s=1===r||-1===r?parseInt(o,0)+r<0?i[a].slideamount-1:parseInt(o,0)+r>=i[a].slideamount?0:parseInt(o,0)+r:(r=e.isNumeric(r)?r:parseInt(r.split("to")[1],0))<0?0:r>i[a].slideamount-1?i[a].slideamount-1:r;else if(r)for(var n in i[a].slides)i[a].slides.hasOwnProperty(n)&&(s=i[a].slides&&i[a].slides[n]&&i.gA(i[a].slides[n],"key")===r?n:s);return{nindex:s,aindex:o}},callingNewSlide:function(e,a,r){var o=i.getComingSlide(e,a);i[e].pr_next_key=o.nindex,i[e].sdir=i[e].pr_next_key<i[e].pr_active_key?1:0,r&&i[e].carousel!==t&&(i[e].carousel.focused=i[e].pr_next_key),i[e].ctNavElement?i[e].ctNavElement=!1:i[e].c.trigger("revolution.nextslide.waiting"),(i[e].started&&o.aindex===i[e].pr_next_key&&o.aindex===i[e].pr_lastshown_key||i[e].pr_next_key!==o.aindex&&-1!=i[e].pr_next_key&&i[e].pr_lastshown_key!==t)&&R(e,r)},getLoadObj:function(e,a){var r=i[e].loadqueue!==t&&i[e].loadqueue.filter(function(e){return e.src===a})[0];return r===t?{src:a}:r},updateDimensions:function(e,a){if(!1!==i[e].dimensionChanged||i[e].conw===t||i[e].conh===t||0===i[e].conw||0===i[e].conh){var r=i[e].width;i[e].height;i[e].navOutterOffsets=i[e].navOutterOffsets===t?i.getHorizontalOffset(i[e].c,"all"):i[e].navOutterOffsets,i[e].lastconw=i[e].conw,i[e].lastconh=i[e].conh,i[e].conw=i[e].c.width(),i[e].conh=i[e].infullscreenmode?i[e].minHeight:i[e].c.height(),i[e].width="carousel"===i[e].sliderType?i[e].navOutterOffsets.inuse?i[e].canvas.width():i[e].conw:i[e].canvasWidth===t?i[e].canvas.width():i[e].canvasWidth,i[e].height="carousel"===i[e].sliderType?i[e].navOutterOffsets.inuse?i[e].canvas.height():i[e].conh:i[e].canvas.height(),i[e].navigation.thumbnails.enable&&i[e].navOutterOffsets!==t&&0!==i[e].navOutterOffsets.both&&r!==i[e].width&&(v(e),i.setSize(e,!0,"updateDimensions"),"carousel"===i[e].sliderType&&i[e].carousel.carouselInitialised&&(i.setCarouselDefaults(e),i.organiseCarousel(e,"right",!0,!1,!1)),i[e].conw=i[e].c.width(),i[e].conh=i[e].infullscreenmode?i[e].minHeight:i[e].c.height()),i[e].dimensionChanged=!1,i.scrollBarWidth>0&&i.openModalId!==t&&e!==i.openModalId&&(i[e].lastconw=i[e].lastconw-i.scrollBarWidth,i[e].conw=i[e].conw-i.scrollBarWidth,i[e].width=i[e].width-i.scrollBarWidth),i[e].gridOffsetWidth=(i[e].width-i[e].gridwidth[i[e].level])/2,i[e].gridOffsetHeight=(i[e].height-i[e].gridheight[i[e].level])/2,!0!==i[e].navigation.initialised&&window.requestAnimationFrame(function(){i[e].width===t&&i.updateDimensions(e,"self"),"hero"!==i[e].sliderType&&i.createNavigation&&i[e].navigation.use&&!0!==i[e].navigation.createNavigationDone&&i.createNavigation(e),i.resizeThumbsTabs&&i.resizeThumbsTabs&&i[e].navigation.use&&i.resizeThumbsTabs(e)}),i[e].rebuildProgressBar&&window.requestAnimationFrame(function(){C(e)})}},getSlideIndex:function(e,t){var a=!1;for(var r in i[e].slides){if(!i[e].slides.hasOwnProperty(r)||!1!==a)continue;a=i.gA(i[e].slides[r],"key")===t?r:a}return!1===a?0:a},loadUpcomingContent:function(e){if("smart"==i[e].lazyType){var t=[],a=parseInt(i.getSlideIndex(e,i.gA(i[e].pr_next_slide[0],"key")),0),r=a-1<0?i[e].realslideamount-1:a-1,o=a+1==i[e].realslideamount?0:a+1;r!==a&&t.push(i[e].slides[r]),o!==a&&t.push(i[e].slides[o]),t.length>0&&(i.loadImages(t,e,2),i.waitForCurrentImages(t,e,function(){}))}},getFullscreenOffsets:function(a){var r=0;if(i[a].fullScreenOffsetContainer!=t){var o=(""+i[a].fullScreenOffsetContainer).split(",");for(var s in o)o.hasOwnProperty(s)&&(r+=e(o[s]).outerHeight(!0)||0)}return i[a].fullScreenOffset!=t&&(!e.isNumeric(i[a].fullScreenOffset)&&i[a].fullScreenOffset.split("%").length>1?r+=i.getWinH(a)*parseInt(i[a].fullScreenOffset,0)/100:e.isNumeric(parseInt(i[a].fullScreenOffset,0))&&(r+=parseInt(i[a].fullScreenOffset,0)||0)),r},contWidthManager:function(e,a){i[e].CWMDONE=!0;var r=i[e].navOutterOffsets!==t?i[e].navOutterOffsets.both:0;!i[e].thumbResized&&i.resizeThumbsTabs&&i[e].navigation.use&&i[e].navigation.thumbnails.enable&&i.resizeThumbsTabs(e),i[e].navOutterOffsets=i.getHorizontalOffset(i[e].c,"all");var o,s=i[e].navOutterOffsets.left,n=i[e].blockSpacing!==t&&i[e].blockSpacing.left!==t?parseInt(i[e].blockSpacing.left[i[e].level],0):0,l=n+(i[e].blockSpacing!==t&&i[e].blockSpacing.right!==t?parseInt(i[e].blockSpacing.right[i[e].level],0):0),d=i[e].modal!==t&&i[e].modal.useAsModal?i.winWAll:i.winW;i[e].conw=i[e].conw===t?i[e].c.width():i[e].conw,"auto"===i[e].sliderLayout||"fullscreen"===i[e].sliderLayout&&!0===i[e].disableForceFullWidth?"fullscreen"==i[e].sliderLayout&&1==i[e].disableForceFullWidth?o={left:0,width:"auto"}:(i[e].canvasWidth=i[e].conw-i[e].navOutterOffsets.both,i[e].navOutterOffsets.both>0&&tpGS.gsap.set(i[e].canvas,{left:"carousel"===i[e].sliderType&&i[e].carousel.wrapoffset>0?0:s,width:i[e].canvasWidth})):o={left:0-Math.ceil(i[e].rsFullWidthWrap.offset().left-(s+n)),width:d-(i[e].navOutterOffsets.both+l)},o===t||i[e].caches.contWidthManager!==t&&i[e].caches.contWidthManager.left===o.left&&i[e].caches.contWidthManager.width===o.width||(tpGS.gsap.set(i[e].cpar,o),i[e].caches.contWidthManager={left:o.left,width:o.width},i[e].dimensionChanged=!0),"auto"===i[e].sliderLayout&&i[e].modal!==t&&i[e].modal.useAsModal&&(i[e].canvasWidth=Math.min(i[e].gridwidth[i[e].level],d),tpGS.gsap.set([i[e].modal.c,i[e].canvas],{width:i[e].canvasWidth})),i[e].slayers&&i[e].slayers.length>0&&"fullwidth"!=i[e].sliderLayout&&"fullscreen"!=i[e].sliderLayout&&tpGS.gsap.set(i[e].slayers,{left:s}),i[e].navOutterOffsets.both!==r&&(i[e].dimensionChanged=!0,i.updateDimensions(e,"contWidthManager"),i.updateAnimatingLayerPositions(i[e].lastAnimateLayersCall)),tpGS.gsap.delayedCall(.3,function(){i.isModalOpen||window.innerWidth-document.documentElement.clientWidth===i.scrollBarWidth||(i.winWAll=window.innerWidth,i.winWSbar=document.documentElement.clientWidth,i.scrollBarWidth=i.winWAll-i.winWSbar,i.winW=Math.min(i.winWAll,i.winWSbar),i.document.trigger("updateContainerSizes"))})},setSize:function(e,a,r){var o,s,n=parseInt(i[e].top_outer||0)+parseInt(i[e].bottom_outer||0),l=0,d=0,c=0,p=i[e].pr_processing_key||i[e].pr_active_key||0,g=i[e].pr_active_key||0,u={},h={};if(u.marginTop="carousel"==i[e].sliderType?parseInt(i[e].carousel.padding_top||0,0):0,u.marginBottom="carousel"==i[e].sliderType?parseInt(i[e].carousel.padding_bottom||0,0):0,i[e].blockSpacing!==t&&tpGS.gsap.set(i[e].blockSpacing.block,{paddingLeft:i[e].blockSpacing.left[i[e].level],paddingRight:i[e].blockSpacing.right[i[e].level],marginTop:i[e].blockSpacing.top[i[e].level],marginBottom:i[e].blockSpacing.bottom[i[e].level]}),i[e].paddings===t&&(i[e].paddings={top:parseInt(i[e].cpar.css("paddingTop"),0)||0,bottom:parseInt(i[e].cpar.css("paddingBottom"),0)||0}),i[e].rowzones&&i[e].rowzones.length>0){if(i[e].rowzones[p]!==t)for(o=0;o<i[e].rowzones[p].length;o++)i[e].rowzonesHeights[p][o]=i[e].rowzones[p][o][0].offsetHeight,l+=i[e].rowzonesHeights[p][o];if(g!==p)for(o=0;o<i[e].rowzones[g].length;o++)i[e].rowzonesHeights[g][o]=i[e].rowzones[g][o][0].offsetHeight,d+=i[e].rowzonesHeights[g][o];l=d/2>l?d:l}if(i[e].srowzones&&i[e].srowzones.length>0)for(o=0;o<i[e].srowzones.length;o++)c+=i[e].srowzones[o][0].offsetHeight;if(l=l<c?c:l,"fullwidth"!=i[e].sliderLayout||i[e].autoHeight||(u.maxHeight=Math.max(Math.max(i[e].minHeight,i[e].gridheight[i[e].level]),l),u.maxHeight=0!==i[e].maxHeight?Math.min(i[e].maxHeight,u.maxHeight):u.maxHeight),i[e].width=i[e].width===t||0===i[e].width?i[e].canvas.width():i[e].width,i[e].height=i[e].height===t||0===i[e].height?i[e].canvas.height():i[e].height,"fullscreen"==i[e].sliderLayout||i[e].infullscreenmode){var m=i.getWinH(e)-i.getFullscreenOffsets(e);i[e].height=Math.max(l,Math.max(m-n,i[e].minHeight)),g!==p&&(i[e].currentSlideHeight=Math.max(d,Math.max(m-n,i[e].minHeight)),i[e].slides[g].style.maxHeight=i[e].currentSlideHeight!==i[e].height?i[e].currentSlideHeight+"px":"none"),h.height=i[e].height,u.height="100%"}else i[e].height=Math.round(i[e].gridheight[i[e].level]*(i[e].keepBPHeight?1:i[e].width/i[e].gridwidth[i[e].level])),i[e].height=Math.max(l,Math.max(i[e].autoHeight?i[e].height:Math.min(i[e].height,i[e].gridheight[i[e].level]),i[e].minHeight)),!1!==a&&(u.height=i[e].height);if(s=u.marginTop+u.marginBottom+n+i[e].height+i[e].paddings.top+i[e].paddings.bottom,u.marginTop=0,u.marginBottom=0,!1!==a&&(h.height=s),i[e].sbtimeline.set&&i[e].sbtimeline.fixed){i[e].curheight=s,i[e].sbtimeline.extended===t&&i.updateFixedScrollTimes(e);var f=2*s+i[e].sbtimeline.extended;f!==i[e].caches.setsize__h&&(i[e].caches.setsize__h=f,tpGS.gsap.set(i[e].forcer,{height:f}))}else!1!==a&&s!==i[e].caches.setsize_h&&i[e].forcer!==t&&(i[e].caches.setsize_h=s,tpGS.gsap.set(i[e].forcer,{height:s}));u!==i[e].emptyObject&&JSON.stringify(u)!==i[e].caches.setsizeCOBJ&&(i[e].caches.setsizeCOBJ=JSON.stringify(u),tpGS.gsap.set(i[e].c,u)),h!==i[e].emptyObject&&JSON.stringify(h)!==i[e].caches.setsizeCPAROBJ&&(i[e].caches.setsizeCPAROBJ=JSON.stringify(h),tpGS.gsap.set(i[e].cpar,h)),i[e].currentRowsHeight=l,i[e].modal!==t&&i[e].modal.useAsModal&&i[e].modal.calibration!==t&&"middle"===i[e].modal.vertical&&(i[e].modal.calibration.top=i.getWinH(e)<s?"0%":"50%",i[e].modal.calibration.y=i.getWinH(e)<s?"0px":"-50%","fullwidth"===i[e].sliderLayout&&tpGS.gsap.set(i[e].modal.c.find("rs-module-wrap"),i[e].modal.calibration)),i.requestLayerUpdates(e,"enterstage"),v(e);var y=i[e].inviewport&&(i[e].heightInLayers!==t&&i[e].height!==i[e].heightInLayers||i[e].widthInLayers!==t&&i[e].width!==i[e].widthInLayers);i[e].heightInLayers=t,i[e].widthInLayers=t,y&&(i[e].autoHeight&&(i[e].dimensionChanged=!0),i.updateDimensions(e,"setSize"),i[e].pr_next_key!==t?i.animateTheLayers({slide:i[e].pr_next_key,id:e,mode:"rebuild",caller:"swapSlideProgress_1"}):i[e].pr_processing_key!==t?i.animateTheLayers({slide:i[e].pr_processing_key,id:e,mode:"rebuild",caller:"swapSlideProgress_2"}):i[e].pr_active_key!==t&&i.animateTheLayers({slide:i[e].pr_active_key,id:e,mode:"rebuild",caller:"swapSlideProgress_3"}))},unToggleState:function(e){if(e!==t)for(var i=0;i<e.length;i++)try{document.getElementById(e[i]).classList.remove("rs-tc-active")}catch(e){}},toggleState:function(e){if(e!==t)for(var i=0;i<e.length;i++)try{document.getElementById(e[i]).classList.add("rs-tc-active")}catch(e){}},swaptoggleState:function(e){if(e!=t&&e.length>0)for(var a=0;a<e.length;a++){var r=document.getElementById(e[a]);if(i.gA(r,"toggletimestamp")!==t&&(new Date).getTime()-i.gA(r,"toggletimestamp")<250)return;i.sA(r,"toggletimestamp",(new Date).getTime()),null!==r&&(r.className.indexOf("rs-tc-active")>=0?r.classList.remove("rs-tc-active"):r.classList.add("rs-tc-active"))}},lastToggleState:function(e){var i;if(e!==t)for(var a=0;a<e.length;a++){var r=document.getElementById(e[a]);i=!0===i||null!==r&&r.className.indexOf("rs-tc-active")>=0||i}return i},revCheckIDS:function(a,r){if(i.gA(r,"idcheck")===t){var o=r.id,s=e.inArray(r.id,window.RSANYID),n=-1;-1!==s&&(n=e.inArray(r.id,i[a].anyid),window.RSANYID_sliderID[s]===a&&-1===n||(r.id=r.id+"_"+Math.round(9999*Math.random()),console.log("Warning - ID:"+o+" exists already. New Runtime ID:"+r.id),s=n=-1)),-1===n&&i[a].anyid.push(r.id),-1===s&&(window.RSANYID.push(r.id),window.RSANYID_sliderID.push(a))}return i.sA(r,"idcheck",!0),r.id},buildSpinner:function(i,a,r,o){var s;if("off"!==a){o=o===t?"":o,r=r===t?"#ffffff":r;var n=parseInt(a.replace("spinner",""),10);if(isNaN(n)||n<6){var l='style="background-color:'+r+'"',d=o===t||3!==n&&4!=n?"":l;s=e("<rs-loader "+(o===t||1!==n&&2!=n?"":l)+' class="'+a+" "+o+'"><div '+d+' class="dot1"></div><div '+d+' class="dot2"></div><div '+d+' class="bounce1"></div><div '+d+' class="bounce2"></div><div '+d+' class="bounce3"></div></rs-loader>')}else{var c,p='<div class="rs-spinner-inner"';if(7===n)-1!==r.search("#")?(c=r.replace("#",""),c="rgba("+parseInt(c.substring(0,2),16)+", "+parseInt(c.substring(2,4),16)+", "+parseInt(c.substring(4,6),16)+", "):-1!==r.search("rgb")&&(c=r.substring(r.indexOf("(")+1,r.lastIndexOf(")")).split(",")).length>2&&(c="rgba("+c[0].trim()+", "+c[1].trim()+", "+c[2].trim()+", "),c&&"string"==typeof c&&(p+=' style="border-top-color: '+c+"0.65); border-bottom-color: "+c+"0.15); border-left-color: "+c+"0.65); border-right-color: "+c+'0.15)"');else 12===n&&(p+=' style="background:'+r+'"');p+=">";for(var g=[10,0,4,2,5,9,0,4,4,2][n-6],u=0;u<g;u++)u>0&&(p+=" "),p+='<span style="background:'+r+'"></span>';s=e('<rs-loader class="'+a+" "+o+'">'+(p+="</div>")+"</div></rs-loader>")}return s}},playBGVideos:function(r,o){i[r].pr_next_slide.find("rs-bgvideo").each(function(s){if(a&&!i[r].fallbacks.allowHTML5AutoPlayOnAndroid)return!1;if(!0!==i[r].videos[this.id].waitToSlideTrans||"swapSlideProgress"!==o){var n=e(this);i.resetVideo(n,r,!1,!0),i[r].videoOutAnim!==t&&i[r].videoOutAnim[this.id]!==t&&i[r].videoOutAnim[this.id].pause(),tpGS.gsap.to(n,.01,{autoAlpha:1,ease:"power3.out",onComplete:function(){i.animcompleted(n,r,!0)}})}else{n=e(this);i.resetVideo(n,r,!1,!0)}})}});var a=i.is_mobile(),r=(i.is_android(),function(e){i[e].responsiveLevels=i.revToResp(i[e].responsiveLevels,i[e].rle),i[e].visibilityLevels=i.revToResp(i[e].visibilityLevels,i[e].rle),i[e].responsiveLevels[0]=9999,i[e].rle=i[e].responsiveLevels.length||1,i[e].gridwidth=i.revToResp(i[e].gridwidth,i[e].rle),i[e].gridheight=i.revToResp(i[e].gridheight,i[e].rle),i[e].editorheight!==t&&(i[e].editorheight=i.revToResp(i[e].editorheight,i[e].rle)),l(e),v(e);var a=Math.max(i[e].minHeight,i[e].gridheight[i[e].level]*i[e].bw);i[e].editorheight!==t&&(a=Math.max(a,i[e].editorheight[i[e].level]*i[e].bw)),i[e].cpar!==t&&i[e].cpar[0].offsetHeight<a?tpGS.gsap.set([i[e].cpar,i[e].c],{height:a}):tpGS.gsap.set(i[e].c,{height:a})}),o=function(t,i){var a=[];return e.each(t,function(e,t){e!=i&&a.push(t)}),a},s=function(t,a,r){i[r].c.find(t).each(function(){var t=e(this);t.data("key")===a&&t.remove()})},n=function(e,a){if(i["rsfont_"+e]==t&&(i["rsfont_"+e]=document.createElement("span"),i["rsfont_"+e].innerHTML=Array(100).join("wi"),i["rsfont_"+e].style.cssText=["position:absolute","width:auto","font-size:128px","left:-99999px"].join(" !important;"),i["rsfont_"+e].style.fontFamily=e,document.body.appendChild(i["rsfont_"+e])),a===t)return i["rsfont_"+e].clientWidth;document.body.removeChild(i["rsfont_"+e])},l=function(t,a){var r=9999,o=0,s=0,n=a&&9999==i[t].responsiveLevels?i[t].visibilityLevels:i[t].responsiveLevels;n&&n.length&&e.each(n,function(e,a){i.winWAll<a&&(0==o||o>parseInt(a))&&(r=parseInt(a),i[t].level=e,o=parseInt(a)),i.winWAll>a&&o<a&&(o=parseInt(a),s=e)}),o<r&&(i[t].level=s),i[t].levelForced=i[t].level},d=function(t,i){var a=0;return t.find(i).each(function(){var t=e(this);!t.hasClass("tp-forcenotvisible")&&a<t.outerWidth()&&(a=t.outerWidth())}),a},c=function(r){if(r===t||i[r]===t||i[r].c===t)return!1;if(i[r].cpar!==t&&i[r].cpar.data("aimg")!=t&&("enabled"==i[r].cpar.data("aie8")&&i.isIE(8)||"enabled"==i[r].cpar.data("amobile")&&a))i[r].c.html('<img class="tp-slider-alternative-image" src="'+i[r].cpar.data("aimg")+'">');else{window._rs_firefox13=!1,window._rs_ie=window._rs_ie===t?!e.support.opacity:window._rs_ie,window._rs_ie9=window._rs_ie9===t?9==document.documentMode:window._rs_ie9;var o=e.fn.jquery.split("."),s=parseFloat(o[0]),n=parseFloat(o[1]);1==s&&n<7&&i[r].c.html('<div style="text-align:center; padding:40px 0px; font-size:20px; color:#992222;"> The Current Version of jQuery:'+o+" <br>Please update your jQuery Version to min. 1.7 in Case you wish to use the Revolution Slider Plugin</div>"),s>1&&(window._rs_ie=!1),i[r].realslideamount=i[r].slideamount=0;var l=i[r].canvas[0].getElementsByTagName("rs-slide"),d=[];for(var c in i[r].notInNav=[],i[r].slides=[],l)l.hasOwnProperty(c)&&("on"==i.gA(l[c],"hsom")&&a?d.push(l[c]):(i.gA(l[c],"invisible")||1==i.gA(l[c],"invisible")?i[r].notInNav.push(l[c]):(i[r].slides.push(l[c]),i[r].slideamount++),i[r].realslideamount++,i.sA(l[c],"originalindex",i[r].realslideamount),i.sA(l[c],"origindex",i[r].realslideamount-1)));for(c in d)d.hasOwnProperty(c)&&d[c].remove();for(c in i[r].notInNav)i[r].notInNav.hasOwnProperty(c)&&(i.sA(i[r].notInNav[c],"not_in_nav",!0),i[r].canvas[0].appendChild(i[r].notInNav[c]));if(i[r].canvas.css({visibility:"visible"}),i[r].slayers=i[r].c.find("rs-static-layers"),i[r].slayers.length>0&&i.sA(i[r].slayers[0],"key","staticlayers"),!0===i[r].modal.useAsModal&&(i[r].cpar.wrap('<rs-modal id="'+i[r].c[0].id+'_modal"></rs-modal>'),i[r].modal.c=i[r].cpar.closest("rs-modal"),i[r].modal.c.appendTo(e("body")),i[r].modal!==t&&i[r].modal.alias!==t&&i.revModal(r,{mode:"init"})),1==i[r].waitForInit||1==i[r].modal.useAsModal)return i.RS_toInit!==t&&(i.RS_toInit[r]=!0),i[r].c.trigger("revolution.slide.waitingforinit"),void(i[r].waitingForInit=!0);window.requestAnimationFrame(function(){u(r)}),i[r].initEnded=!0}},p=function(){e("body").data("rs-fullScreenMode",!e("body").data("rs-fullScreenMode")),e("body").data("rs-fullScreenMode")&&setTimeout(function(){i.window.trigger("resize")},200)},g=function(e,a,r){return i.gA(e,"lazyload")!==t?i.gA(e,"lazyload"):i[r].lazyloaddata!==t&&i[r].lazyloaddata.length>0&&i.gA(e,i[r].lazyloaddata)!==t?i.gA(e,i[r].lazyloaddata):i.gA(e,"lazy-src")!==t?i.gA(e,"lazy-src"):i.gA(e,"lazy-wpfc-original-src")!==t?i.gA(e,"lazy-wpfc-original-src"):i.gA(e,"lazy")!==t?i.gA(e,"lazy"):a},u=function(r){if(i[r]!==t){if(i[r].sliderisrunning=!0,!0!==i[r].noDetach&&i[r].c.detach(),i[r].shuffle){for(var o=i[r].canvas.find("rs-slide:first-child"),s=i.gA(o[0],"firstanim"),n=0;n<i[r].slideamount;n++)i[r].canvas.find("rs-slide:eq("+Math.round(Math.random()*i[r].slideamount)+")").prependTo(i[r].canvas);i.sA(i[r].canvas.find("rs-slide:first-child")[0],"firstanim",s)}i[r].slides=i[r].canvas[0].getElementsByTagName("rs-slide"),i[r].thumbs=new Array(i[r].slides.length),i[r].slots=4,i[r].firststart=1,i[r].loadqueue=[],i[r].syncload=0;var d=0,c="carousel"===i[r].sliderType&&i[r].carousel.border_radius!==t?parseInt(i[r].carousel.border_radius,0):0;for(var u in i[r].slides)if(i[r].slides.hasOwnProperty(u)&&"length"!==u){var h=i[r].slides[u],f=h.getElementsByTagName("img")[0];i.gA(h,"key")===t&&i.sA(h,"key","rs-"+Math.round(999999*Math.random()));var v={params:Array(12),id:i.gA(h,"key"),src:i.gA(h,"thumb")!==t?i.gA(h,"thumb"):g(f,f!==t?f.src:t,r)};i.gA(h,"title")===t&&i.sA(h,"title",""),i.gA(h,"description")===t&&i.sA(h,"description",""),v.params[0]={from:RegExp("\\{\\{title\\}\\}","g"),to:i.gA(h,"title")},v.params[1]={from:RegExp("\\{\\{description\\}\\}","g"),to:i.gA(h,"description")};for(var b=1;b<=10;b++)i.gA(h,"p"+b)!==t?v.params[b+1]={from:RegExp("\\{\\{param"+b+"\\}\\}","g"),to:i.gA(h,"p"+b)}:v.params[b+1]={from:RegExp("\\{\\{param"+b+"\\}\\}","g"),to:""};if(i[r].thumbs[d]=e.extend({},!0,v),c>0&&tpGS.gsap.set(h,{borderRadius:c+"px"}),i.gA(h,"link")!=t||i.gA(h,"linktoslide")!==t){var _=i.gA(h,"link")!==t?i.gA(h,"link"):"slide",w="slide"!=_?"no":i.gA(h,"linktoslide"),x=i.gA(h,"seoz");if(w!=t&&"no"!=w&&"next"!=w&&"prev"!=w)for(var k in i[r].slides)i[r].slides.hasOwnProperty(k)&&parseInt(i.gA(i[r].slides[k],"origindex"),0)+1==i.gA(h,"linktoslide")&&(w=i.gA(i[r].slides[k],"key"));e(h).prepend('<rs-layer class="rs-layer slidelink" id="rs_slidelink_'+Math.round(1e5*Math.random())+'" style="z-index:'+("back"===x?0:"front"===x?60:x!==t?parseInt(x,0):100)+';" dataxy="x:c;y:c" data-dim="w:100%;h:100%" data-basealign="slide"'+("no"==w?"slide"==_||a?"":"  data-actions='o:click;a:simplelink;target:"+(i.gA(h,"target")||"_self")+";url:"+_+";'":"  data-actions='"+("scroll_under"===w?"o:click;a:scrollbelow;offset:100px;":"prev"===w?"o:click;a:jumptoslide;slide:prev;d:0.2;":"next"===w?"o:click;a:jumptoslide;slide:next;d:0.2;":"o:click;a:jumptoslide;slide:"+w+";d:0.2;")+"'")+" data-frame_1='e:power3.inOut;st:100;sp:100' data-frame_999='e:power3.inOut;o:0;st:w;sp:100'>"+(a?"<a "+("slide"!=_?("_blank"===i.gA(h,"target")?'rel="noopener" ':"")+'target="'+(i.gA(h,"target")||"_self")+'" href="'+_+'"':"")+"><span></span></a>":"")+"</rs-layer>")}d++}if(i[r].simplifyAll&&(i.isIE(8)||i.iOSVersion())&&(i[r].c.find(".rs-layer").each(function(){var t=e(this);t.removeClass("customin customout").addClass("fadein fadeout"),t.data("splitin",""),t.data("speed",400)}),i[r].c.find("rs-slide").each(function(){var t=e(this);t.data("transition","fade"),t.data("masterspeed",500),t.data("slotamount",1),(t.find(".rev-slidebg")||t.find(">img").first()).data("panzoom",null)})),window._rs_desktop=window._rs_desktop===t?!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i):window._rs_desktop,i[r].autoHeight="fullscreen"==i[r].sliderLayout||i[r].autoHeight,"fullwidth"!=i[r].sliderLayout||i[r].autoHeight||i[r].c.css({maxHeight:i[r].gridheight[i[r].level]+"px"}),"auto"==i[r].sliderLayout||0!=i[r].c.closest("rs-fullwidth-wrap").length||"fullscreen"===i[r].sliderLayout&&1==i[r].disableForceFullWidth)i[r].topc=i[r].cpar;else{var S=i[r].cpar[0].style.marginTop,L=i[r].cpar[0].style.marginBottom;S=S===t||""===S?"":"margin-top:"+S+";",L=L===t||""===L?"":"margin-bottom:"+L+";",i[r].rsFullWidthWrap=i[r].topc=e('<rs-fullwidth-wrap id="'+i[r].c[0].id+'_forcefullwidth" style="'+S+L+'"></rs-fullwidth-wrap>'),i[r].forcer=e('<rs-fw-forcer style="height:'+i[r].cpar.height()+'px"></rs-fw-forcer>'),i[r].topc.append(i[r].forcer),i[r].topc.insertBefore(i[r].cpar),i[r].cpar.detach(),i[r].cpar.css({marginTop:"0px",marginBottom:"0px",position:"absolute"}),i[r].cpar.prependTo(i[r].topc)}if(i[r].forceOverflow&&i[r].topc[0].classList.add("rs-forceoverflow"),"carousel"===i[r].sliderType&&!0!==i[r].overflowHidden&&i[r].c.css({overflow:"visible"}),0!==i[r].maxHeight&&tpGS.gsap.set([i[r].cpar,i[r].c,i[r].topc],{maxHeight:i[r].maxHeight+"px"}),i[r].fixedOnTop&&tpGS.gsap.set(i[r].blockSpacing!==t&&i[r].blockSpacing.block!==t?i[r].blockSpacing.block:i[r].topc,{position:"fixed",top:"0px",left:"0px",pointerEvents:"none",zIndex:5e3}),i[r].shadow!==t&&i[r].shadow>0&&i[r].cpar.addClass("tp-shadow"+i[r].shadow).append('<div class="tp-shadowcover" style="background-color:'+i[r].cpar.css("backgroundColor")+";background-image:"+i[r].cpar.css("backgroundImage")+'"></div>'),l(r),!i[r].c.hasClass("revslider-initialised")){i[r].c[0].classList.add("revslider-initialised"),i[r].c[0].id=i[r].c[0].id===t?"revslider-"+Math.round(1e3*Math.random()+5):i[r].c[0].id,i.revCheckIDS(r,i[r].c[0]),i[r].origcd=parseInt(i[r].duration,0),i[r].scrolleffect._L=[],i[r].sbas=i[r].sbas===t?{}:i[r].sbas,i[r].layers=i[r].layers||{},i[r].sortedLayers=i[r].sortedLayers||{},i[r].c.find("rs-layer, rs-row, rs-column, rs-group,  rs-bgvideo, .rs-layer").each(function(){var a,o,s=e(this),n=s.data();if(n.startclasses=this.className,n.startclasses=n.startclasses===t||null===n.startclasses?"":n.startclasses,n.animationonscroll=!!i[r].sbtimeline.set&&i[r].sbtimeline.layers,n.animationonscroll=!0===n.animationonscroll||"true"==n.animationonscroll,n.filteronscroll=!!i[r].scrolleffect.set&&i[r].scrolleffect.layers,n.pxundermask=n.startclasses.indexOf("rs-pxmask")>=0&&"off"!==i[r].parallax.type&&n.startclasses.indexOf("rs-pxl-")>=0,n.noPevents=n.startclasses.indexOf("rs-noevents")>=0,n.sba)for(var l in a=n.sba.split(";"))a.hasOwnProperty(l)&&("t"==(o=a[l].split(":"))[0]&&(n.animationonscroll=o[1],"false"==o[1]&&(n.animOnScrollForceDisable=!0)),"e"==o[0]&&(n.filteronscroll=o[1]),"so"==o[0]&&(n.scrollBasedOffset=parseInt(o[1])/1e3));if("true"!=n.animationonscroll&&1!=n.animationonscroll||(n.startclasses+=" rs-sba",s[0].className+=" rs-sba"),n.startclasses.indexOf("rs-layer-static")>=0&&i.handleStaticLayers&&i.handleStaticLayers(s,r),"RS-BGVIDEO"!==s[0].tagName){if(s[0].classList.add("rs-layer"),"column"===n.type&&(n.columnwidth="33.33%",n.verticalalign="top",n.column!==t))for(var d in a=n.column.split(";"))a.hasOwnProperty(d)&&("w"===(o=a[d].split(":"))[0]&&(n.columnwidth=o[1]),"a"===o[0]&&(n.verticalalign=o[1]));var c=n.startclasses.indexOf("slidelink")>=0?"width:100% !important;height:100% !important;":"",p="column"!==n.type?"":n.verticalalign===t?" vertical-align:top;":" vertical-align:"+n.verticalalign+";",g="row"===n.type||"column"===n.type?"position:relative;":"position:absolute;",u="",h="row"===n.type?"rs-row-wrap":"column"===n.type?"rs-column-wrap":"group"===n.type?"rs-group-wrap":"rs-layer-wrap",m="",f="",v=(n.noPevents,";pointer-events:none");"row"===n.type||"column"===n.type||"group"===n.type?(s[0].classList.remove("tp-resizeme"),"column"===n.type&&(n.width="auto",s[0].group="row",tpGS.gsap.set(s,{width:"auto"}),n.filteronscroll=!1)):(m="display:"+("inline-block"===s[0].style.display?"inline-block":"block")+";",s.closest("rs-column").length>0?(s[0].group="column",n.filteronscroll=!1):s.closest("rs-group-wrap").length>0&&(s[0].group="group",n.filteronscroll=!1)),n.wrpcls!==t&&(u=u+" "+n.wrpcls),n.wrpid!==t&&(f='id="'+n.wrpid+'"'),s.wrap("<"+h+" "+f+' class="rs-parallax-wrap '+u+'" style="'+p+" "+c+g+m+v+'"><rs-loop-wrap style="'+c+g+m+'"><rs-mask-wrap style="'+c+g+m+'">'+(n.pxundermask?"<rs-px-mask></rs-px-mask>":"")+"</rs-mask-wrap></rs-loop-wrap></"+h+">"),!0!==n.filteronscroll&&"true"!=n.filteronscroll||i[r].scrolleffect._L.push(s.parent()),s[0].id=s[0].id===t?"layer-"+Math.round(999999999*Math.random()):s[0].id,i.revCheckIDS(r,s[0]),"column"===n.type&&s.closest(".rs-parallax-wrap").append('<rs-cbg-mask-wrap><rs-column-bg id="'+s[0].id+'_rs_cbg"></rs-column-bg></rs-cbg-mask-wrap>'),"text"===n.type&&s[0].getElementsByTagName("iframe").length>0&&(i[r].slideHasIframe=!0,s[0].classList.add("rs-ii-o")),i[r].BUG_safari_clipPath&&"true"!=n.animationonscroll&&1!=n.animationonscroll&&s[0].classList.add("rs-pelock")}i.gA(s[0],"actions")&&i.checkActions&&i.checkActions(s,r,i[r]),!i.checkVideoApis||window.rs_addedvim&&window.rs_addedyt||i[r].youtubeapineeded&&i[r].vimeoapineeded||i.checkVideoApis(s,r)}),i.checkActions&&i.checkActions(t,r),i[r].c[0].addEventListener("mouseenter",function(){i[r].c.trigger("tp-mouseenter"),i[r].overcontainer=!0},{passive:!0}),i[r].c[0].addEventListener("mouseover",function(){i[r].c.trigger("tp-mouseover"),i[r].overcontainer=!0},{passive:!0}),i[r].c[0].addEventListener("mouseleave",function(){i[r].c.trigger("tp-mouseleft"),i[r].overcontainer=!1},{passive:!0}),i[r].c.find(".rs-layer video").each(function(t){var i=e(this);i.removeClass("video-js vjs-default-skin"),i.attr("preload",""),i.css({display:"none"})}),i[r].rs_static_layer=i[r].c[0].getElementsByTagName("rs-static-layers"),i.preLoadAudio&&i[r].rs_static_layer.length>0&&i.preLoadAudio(e(i[r].rs_static_layer),r,1),i[r].rs_static_layer.length>0&&(i.loadImages(i[r].rs_static_layer[0],r,0,!0),i.waitForCurrentImages(i[r].rs_static_layer[0],r,function(){i[r]!==t&&i[r].c.find("rs-static-layers img").each(function(){this.src=i.getLoadObj(r,i.gA(this,"src")!=t?i.gA(this,"src"):this.src).src})})),i[r].rowzones=[],i[r].rowzonesHeights=[],i[r].middleZones=[];var T=j("#")[0];if(T!==t&&T.length<9&&T.split("slide").length>1&&-1==T.indexOf("slider")){var O=parseInt(T.split("slide")[1],0);e.isNumeric(parseInt(O,0))&&((O=parseInt(O,0))<1&&(O=1),O>i[r].slideamount&&(O=i[r].slideamount),i[r].startWithSlide=O)}i[r].loader=i.buildSpinner(r,i[r].spinner,i[r].spinnerclr),i[r].loaderVisible=!0,i[r].c.append(i[r].loader),i[r].height=i[r].cpar.height()-("fullscreen"===i[r].sliderLayout?i.getFullscreenOffsets(r):0),i[r].c.height(i[r].height),y(r),("off"!==i[r].parallax.type||i[r].scrolleffect.set||i[r].sbtimeline.set)&&i.checkForParallax&&i.checkForParallax(r),i[r].fallbacks.disableFocusListener||"true"==i[r].fallbacks.disableFocusListener||!0===i[r].fallbacks.disableFocusListener||(i[r].c.addClass("rev_redraw_on_blurfocus"),H());var A=i[r].viewPort;for(var b in i[r].slides)if(i[r].slides.hasOwnProperty(b)){var R=e(i[r].slides[b]);i[r].rowzones[b]=[],i[r].rowzonesHeights[b]=[],i[r].middleZones[b]=[],R.find("rs-zone").each(function(){i[r].rowzones[b].push(e(this)),this.className.indexOf("rev_row_zone_middle")>=0&&i[r].middleZones[b].push(this)}),(A.enable&&i[r].inviewport||!A.enable)&&"all"==i[r].lazyType&&(i.loadImages(R[0],r,b),i.waitForCurrentImages(R[0],r,function(){}))}i[r].srowzones=[],i[r].smiddleZones=[],i[r].slayers&&i[r].slayers.find("rs-zone").each(function(){i[r].srowzones.push(e(this)),this.className.indexOf("rev_row_zone_middle")>=0&&i[r].smiddleZones.push(this)}),"carousel"===i[r].sliderType&&tpGS.gsap.set(i[r].canvas,{scale:1,perspective:1200,transformStyle:"flat",opacity:0}),i[r].c.prependTo(i[r].cpar),e("body").data("rs-fullScreenMode",!1),window.addEventListener("fullscreenchange",p,{passive:!0}),window.addEventListener("mozfullscreenchange",p,{passive:!0}),window.addEventListener("webkitfullscreenchange",p,{passive:!0}),i.document.on("updateContainerSizes."+i[r].c.attr("id"),function(){if(i[r]!==t){if(i[r].c==t)return!1;0!=e("body").find(i[r].c)&&(l(r),i.contWidthManager(r,"onResize_RunSlider")),i[r].fullScreenMode=i.checkfullscreenEnabled(r),i[r].c.outerWidth(!0)!=i[r].width||i[r].c.is(":hidden")||"fullscreen"==i[r].sliderLayout&&i.getWinH(r)!=i.lastwindowheight?(i.lastwindowheight=i.getWinH(r),m(r)):i[r].levelInLayers!==t&&i[r].levelInLayers!==i[r].level&&(i.lastwindowheight=i.getWinH(r),m(r))}}),A.presize&&(i[r].pr_next_slide=e(i[r].slides[0]),i.loadImages(i[r].pr_next_slide[0],r,0,!0),i.waitForCurrentImages(i[r].pr_next_slide.find(".tp-layers"),r,function(){i.animateTheLayers&&i.animateTheLayers({slide:i[r].pr_next_key,id:r,mode:"preset",caller:"runSlider"})})),("off"!=i[r].parallax.type||i[r].sbtimeline.set||!0===A.enable)&&i.scrollTicker(r),!0!==A.enable&&(i[r].inviewport=!0,i.enterViewPort(r)),i.RS_toInit!==t&&(i.RS_toInit[r]=!0)}}},h=function(e,a){i.winW<i[e].hideSliderAtLimit?(i[e].c.trigger("stoptimer"),!0!==i[e].sliderIsHidden&&(i.sA(i[e].cpar[0],"displaycache","none"!=i[e].cpar.css("display")?i[e].cpar.css("display"):i.gA(i[e].cpar[0],"displaycache")),i[e].cpar.css({display:"none"}),i[e].sliderIsHidden=!0)):(!0===i[e].sliderIsHidden||i[e].sliderIsHidden===t&&i[e].c.is(":hidden"))&&a&&(i[e].cpar[0].style.display=i.gA(i[e].cpar[0],"displaycache")!=t&&"none"!=i.gA(i[e].cpar[0],"displaycache")?i.gA(i[e].cpar[0],"displaycache"):"block",i[e].sliderIsHidden=!1,i[e].c.trigger("restarttimer"),window.requestAnimationFrame(function(){m(e,!0)})),i.hideUnHideNav&&i[e].navigation.use&&i.hideUnHideNav(e)},m=function(e,r){if(i[e].c===t)return!1;if(i[e].dimensionReCheck={},i[e].dimensionChanged=!0,i[e].c.trigger("revolution.slide.beforeredraw"),1==i[e].infullscreenmode&&(i[e].minHeight=i.getWinH(e)),a&&(i[e].lastMobileHeight=i.getWinH(e)),l(e),!i.resizeThumbsTabs||!0===i.resizeThumbsTabs(e)){if(window.requestAnimationFrame(function(){h(e,!0!==r),C(e)}),i[e].widthTester=i[e].width,i[e].canvasWidthTester=i[e].canvasWidth,i.contWidthManager(e,"containerResized_1"),i.updateDimensions(e,"containerResized_1"),i.setSize(e,t,"containerResized_1"),i.contWidthManager(e,"containerResized_2"),i[e].widthTester===i[e].width&&i[e].canvasWidthTester===i[e].canvasWidth||(i[e].dimensionChanged=!0,i.updateDimensions(e,"containerResized_2"),i.setSize(e,t,"containerResized_2")),i[e].started){if("carousel"==i[e].sliderType&&i.prepareCarousel(e),"standard"===i[e].sliderType&&i[e].mtl!==t&&i.animateSlide({recall:!0,id:e}),"carousel"===i[e].sliderType&&i[e].carCheckconW!=i[e].conw&&(clearTimeout(i[e].pcartimer),i[e].pcartimer=setTimeout(function(){i.prepareCarousel(e),i.animateTheLayers({slide:"individual",id:e,mode:"rebuild",caller:"containerResized_1"}),i[e].carCheckconW=i[e].conw},100),i[e].lastconw=i[e].conw),i.animateTheLayers&&(i[e].pr_processing_key!==t?i.animateTheLayers({slide:i[e].pr_processing_key,id:e,mode:"rebuild",caller:"containerResized_2"}):i[e].pr_active_key!==t&&i.animateTheLayers({slide:i[e].pr_active_key,id:e,mode:"rebuild",caller:"containerResized_3"})),"carousel"===i[e].sliderType)for(var o in i[e].panzoomTLs)i[e].panzoomTLs.hasOwnProperty(o)&&i.startPanZoom(i[e].panzoomBGs[o],e,i[e].panzoomTLs[o].progress(),o,i[e].panzoomTLs[o].isActive()?"play":"reset");else f(e,i[e].pr_active_bg),f(e,i[e].pr_next_bg);clearTimeout(i[e].mNavigTimeout),i.manageNavigation&&(i[e].mNavigTimeout=setTimeout(function(){i.manageNavigation(e)},20))}i.prepareCoveredVideo(e)}i[e].c.trigger("revolution.slide.afterdraw")},f=function(e,a){if(a&&a.data("panzoom")!==t){var r=i.getSlideIndex(e,i.gA(i[e].slides[i[e].pr_active_key],"key"));i.startPanZoom(a,e,i[e].panzoomTLs[r]!==t?i[e].panzoomTLs[r].progress():0,r,"play")}},v=function(e){i[e].justifyCarousel?i[e].bh=i[e].bw=1:(i[e].bw=i[e].width/i[e].gridwidth[i[e].level],i[e].bh=i[e].height/i[e].gridheight[i[e].level],i[e].bw=isNaN(i[e].bw)?1:i[e].bw,i[e].bh=isNaN(i[e].bh)?1:i[e].bh,1==i[e].enableUpscaling?i[e].bh=i[e].bw:(i[e].bh>i[e].bw?i[e].bh=i[e].bw:i[e].bw=i[e].bh,(i[e].bh>1||i[e].bw>1)&&(i[e].bw=1,i[e].bh=1)))},y=function(a){if(!0!==i[a].noDetach&&i[a].canvas.detach(),i[a].autoHeight&&tpGS.gsap.set([i[a].c,i[a].cpar],{maxHeight:"none"}),tpGS.gsap.set(i[a].canvas,i[a].modal!==t&&i[a].modal.useAsModal?{overflow:"hidden",width:"100%",height:"100%"}:{overflow:"hidden",width:"100%",height:"100%",maxHeight:i[a].autoHeight?"none":i[a].cpar.css("maxHeight")}),"carousel"===i[a].sliderType){var r="margin-top:"+parseInt(i[a].carousel.padding_top||0,0)+"px;";i[a].canvas.css({overflow:"visible"}).wrap('<rs-carousel-wrap style="'+r+'"></rs-carousel-wrap>'),i[a].cpar.prepend("<rs-carousel-space></rs-carousel-space>").append("<rs-carousel-space></rs-carousel-space>"),i.defineCarouselElements(a)}i[a].startWithSlide=i[a].startWithSlide===t?t:Math.max(1,(i[a].sliderType,parseInt(i[a].startWithSlide))),i[a].cpar.css({overflow:"visible"}),i[a].scrolleffect.bgs=[];for(var o=0;o<i[a].slides.length;o++){var s=e(i[a].slides[o]),n=s.find(">img"),l=s.find("rs-bgvideo");n.detach(),l.detach(),(i[a].startWithSlide!=t&&i.gA(i[a].slides[o],"originalindex")==i[a].startWithSlide||i[a].startWithSlide===t&&0==o)&&(i[a].pr_next_key=s.index()),tpGS.gsap.set(s,{width:"100%",height:"100%",overflow:"hidden"}),n.wrap("<rs-sbg-px><rs-sbg-wrap></rs-sbg-wrap></rs-sbg-px>");var d=n.closest("rs-sbg-wrap"),c=s.data("mediafilter"),p=b(n.data(),a),u=p.bgcolor!==t&&p.bgcolor.indexOf("gradient")>=0,h=p.bgcolor!==t&&p.bgcolor.indexOf("gradient")>=0?"background:"+p.bgcolor+";":"background-color:"+p.bgcolor+";";p.src=n[0].src,p.lazyload=g(n[0],t,a),p.slidebgimage=!0,c="none"===c||c===t?"":c,l.length>0&&(l.addClass("defaultvid").css({zIndex:30}),c!==t&&""!==c&&"none"!==c&&l.addClass(c),l.appendTo(d),p.parallax!=t&&(l.data("parallax",p.parallax),l.data("showcoveronpause","on"),l.data("mediafilter",c))),"none"!=i[a].dottedOverlay&&i[a].dottedOverlay!=t&&d.append('<rs-dotted class="'+i[a].dottedOverlay+'"></rs-dotted>'),h+=(u?"":"background-repeat:"+p.bgrepeat+";background-image:url("+p.src+");background-size:"+p.bgfit+";background-position:"+p.bgposition+";")+"width:100%;height:100%;",h+="standard"===i[a].sliderType||"undefined"===i[a].sliderType?"opacity:0;":"",n.data("mediafilter",c),c=n.data("panzoom")!==t?"":c;var m=e("<rs-sbg "+(p.lazyload!==t?'data-lazyload="'+p.lazyload+'"':"")+' src="'+p.src+'" class="'+c+'" data-bgcolor="'+p.bgcolor+'" style="'+h+'"></rs-sbg>');d.append(m);var f=document.createComment("Runtime Modification - Img tag is Still Available for SEO Goals in Source - "+n.get(0).outerHTML);n.replaceWith(f),d.data(p),m.data(p),i.gA(s[0],"sba")===t&&i.sA(s[0],"sba","");var v={},y=i.gA(s[0],"sba").split(";");for(var _ in y)if(y.hasOwnProperty(_)){var w=y[_].split(":");switch(w[0]){case"f":v.f=w[1];break;case"b":v.b=w[1];break;case"g":v.g=w[1];break;case"t":v.s=w[1]}}i.sA(s[0],"scroll-based",!!i[a].sbtimeline.set&&(v.s!==t&&v.s)),i[a].scrolleffect.set?(i[a].scrolleffect.bgs.push({fade:v.f!==t?v.f:!!i[a].scrolleffect.slide&&i[a].scrolleffect.fade,blur:v.b!==t?v.b:!!i[a].scrolleffect.slide&&i[a].scrolleffect.blur,grayscale:v.g!==t?v.g:!!i[a].scrolleffect.slide&&i[a].scrolleffect.grayscale,c:d.wrap("<rs-sbg-effectwrap></rs-sbg-effectwrap>").parent()}),s.prepend(d.parent().parent())):s.prepend(d.parent())}"carousel"===i[a].sliderType?(tpGS.gsap.set(i[a].carousel.wrap,{opacity:0}),i[a].c[0].appendChild(i[a].carousel.wrap[0])):i[a].c[0].appendChild(i[a].canvas[0])},b=function(r,o){r.bg=r.bg===t?"":r.bg;var s=r.bg.split(";"),n={bgposition:"50% 50%",bgfit:"cover",bgrepeat:"no-repeat",bgcolor:"transparent"};for(var l in s)if(s.hasOwnProperty(l)){var d=s[l].split(":"),c=d[0],p=d[1],g="";switch(c){case"p":g="bgposition";break;case"f":g="bgfit";break;case"r":g="bgrepeat";break;case"c":g="bgcolor"}g!==t&&(n[g]=p)}return i[o].fallbacks.panZoomDisableOnMobile&&a&&(n.panzoom=null,n.bgfit="cover"),e.extend(!0,r,n)},_=function(t,a){a.find(".slot, .slot-circle-wrapper").each(function(){e(this).remove()}),i[t].transition=0},w=function(e){var i=e;return e!=t&&e.length>0&&(i=e.split("?")[0]),i},x=function(e){var i=e;return e!=t&&e.length>0&&(i=i.replace(document.location.protocol,"")),i},k=function(e,t){var i=e.split("/"),a=t.split("/");i.pop();for(var r=0;r<a.length;r++)"."!=a[r]&&(".."==a[r]?i.pop():i.push(a[r]));return i.join("/")},S=function(e,a,r){if(i[a]!==t){for(var o in i[a].syncload--,i[a].loadqueue)if(i[a].loadqueue.hasOwnProperty(o)&&"loaded"!==i[a].loadqueue[o].progress){var s=i[a].loadqueue[o].src!==t?i[a].loadqueue[o].src.replace(/\.\.\/\.\.\//gi,""):i[a].loadqueue[o].src;s.indexOf("www.")<13&&(s=s.replace("www.",""));var n=e.src.indexOf("www.")<13?e.src.replace("www.",""):e.src;(s===e.src||x(s)===x(n)||w(document.location.protocol+s)===w(decodeURIComponent(n))||w(document.location.origin+s)===w(decodeURIComponent(n))||w(document.location.origin.replace("/www.","/")+s)===w(decodeURIComponent(n))||w(document.location.origin.replace("/www.","/")+s)===w(decodeURIComponent(n).replace("/www.","/"))||w(self.location.href.substring(0,self.location.href.length-1)+s)===w(decodeURIComponent(n))||w(k(self.location.href,i[a].loadqueue[o].src))===w(decodeURIComponent(n))||w(document.location.origin+"/"+s)===w(decodeURIComponent(n))||w(self.location.href.substring(0,self.location.href.length-1)+"/"+s)===w(decodeURIComponent(n))||w(i[a].loadqueue[o].src)===w(decodeURIComponent(n))||"file://"===window.location.origin&&w(e.src).match(new RegExp(s)))&&(i[a].loadqueue[o].img=e,i[a].loadqueue[o].progress=r,i[a].loadqueue[o].width=e.width,i[a].loadqueue[o].height=e.height)}L(a)}},L=function(a){4!=i[a].syncload&&i[a].loadqueue&&e.each(i[a].loadqueue,function(r,o){if("prepared"==o.progress&&i[a].syncload<=4){if(i[a].syncload++,"img"==o.type){var s=new Image;/^([\w]+\:)?\/\//.test(o.src)&&-1===o.src.indexOf(location.host)&&""!==i[a].imgCrossOrigin&&i[a].imgCrossOrigin!==t&&(s.crossOrigin=i[a].imgCrossOrigin),s.onload=function(){S(this,a,"loaded"),o.error=!1},s.onerror=function(){S(this,a,"failed"),o.error=!0},s.src=o.src,o.starttoload=e.now()}else e.get(o.src,function(e){o.innerHTML=(new XMLSerializer).serializeToString(e.documentElement),o.progress="loaded",i[a].syncload--,L(a)}).fail(function(){o.progress="failed",i[a].syncload--,L(a)});o.progress="inload"}})},T=function(e,t){return console.log("Static Image "+e+"  Could not be loaded in time. Error Exists:"+t),!0},O=function(t,a){if(e.now()-i[a][t+"starttime"]>5e3&&1!=i[a][t+"warning"]){i[a][t+"warning"]=!0;var r=t+" Api Could not be loaded !";"https:"===location.protocol&&(r+=" Please Check and Renew SSL Certificate !"),console.error(r),i[a].c.append('<div style="position:absolute;top:50%;width:100%;color:#e74c3c;  font-size:16px; text-align:center; padding:15px;background:#000; display:block;"><strong>'+r+"</strong></div>")}return!0},A=function(a){i[a]!==t&&(i[a].pr_active_slide=e(i[a].slides[i[a].pr_active_key]),i[a].pr_next_slide=e(i[a].slides[i[a].pr_processing_key]),i[a].pr_active_bg=i[a].pr_active_slide.find("rs-sbg-wrap"),i[a].pr_next_bg=i[a].pr_next_slide.find("rs-sbg-wrap"),i[a].pr_active_bg!==t&&i[a].pr_active_bg.length>0&&tpGS.gsap.to(i[a].pr_active_bg,.5,{opacity:0}),i[a].pr_next_bg!==t&&i[a].pr_next_bg.length>0&&tpGS.gsap.to(i[a].pr_next_bg,.5,{opacity:0}),tpGS.gsap.set(i[a].pr_active_slide,{zIndex:18}),i[a].pr_next_slide!==t&&i[a].pr_next_slide.length>0&&tpGS.gsap.set(i[a].pr_next_slide,{autoAlpha:0,zIndex:20}),i[a].tonpause=!1,i[a].pr_active_key!==t&&i.removeTheLayers(i[a].pr_active_slide,a,!0),i[a].firststart=1,setTimeout(function(){delete i[a].pr_active_key,delete i[a].pr_processing_key},200))},R=function(a,r){if(i[a]!==t)if(clearTimeout(i[a].waitWithSwapSlide),i[a].pr_processing_key===t||!0!==i[a].firstSlideShown){if(clearTimeout(i[a].waitWithSwapSlide),i[a].startWithSlideKey!==t&&(i[a].pr_next_key=i.getComingSlide(a,i[a].startWithSlideKey).nindex,delete i[a].startWithSlideKey),i[a].pr_active_slide=e(i[a].slides[i[a].pr_active_key]),i[a].pr_next_slide=e(i[a].slides[i[a].pr_next_key]),i[a].pr_next_key==i[a].pr_active_key)return delete i[a].pr_next_key;i[a].pr_processing_key=i[a].pr_next_key,i[a].pr_cache_pr_next_key=i[a].pr_next_key,delete i[a].pr_next_key,i[a].pr_next_slide!==t&&i[a].pr_next_slide[0]!==t&&i.gA(i[a].pr_next_slide[0],"hal")!==t&&i.sA(i[a].pr_next_slide[0],"sofacounter",i.gA(i[a].pr_next_slide[0],"sofacounter")===t?1:parseInt(i.gA(i[a].pr_next_slide[0],"sofacounter"),0)+1),i[a].stopLoop&&i[a].pr_processing_key==i[a].lastslidetoshow-1&&(i[a].progressC.css({visibility:"hidden"}),i[a].c.trigger("revolution.slide.onstop"),i[a].noloopanymore=1),i[a].pr_next_slide.index()===i[a].slideamount-1&&i[a].looptogo>0&&"disabled"!==i[a].looptogo&&(i[a].looptogo--,i[a].looptogo<=0&&(i[a].stopLoop=!0)),i[a].tonpause=!0,i[a].slideInSwapTimer=!0,i[a].c.trigger("stoptimer"),"off"===i[a].spinner?i[a].loader!==t&&!0===i[a].loaderVisible&&(i[a].loader.css({display:"none"}),i[a].loaderVisible=!1):i[a].loadertimer=setTimeout(function(){i[a].loader!==t&&!0!==i[a].loaderVisible&&(i[a].loader.css({display:"block"}),i[a].loaderVisible=!0)},50);var o="carousel"===i[a].sliderType&&"all"!==i[a].lazyType?i.loadVisibleCarouselItems(a):i[a].pr_next_slide[0];i.loadImages(o,a,1),i.preLoadAudio&&i.preLoadAudio(i[a].pr_next_slide,a,1),i.waitForCurrentImages(o,a,function(){i[a].firstSlideShown=!0,i[a].pr_next_slide.find("rs-bgvideo").each(function(){var t=e(this);t.hasClass("HasListener")||(t.data("bgvideo",1),i.manageVideoLayer(t,a,i.gA(i[a].pr_next_slide[0],"key")),i.prepareCoveredVideo(a)),0==t.find(".rs-fullvideo-cover").length&&t.append('<div class="rs-fullvideo-cover"></div>')}),i.loadUpcomingContent(a),window.requestAnimationFrame(function(){i.contWidthManager(a,"SwapSlide"),i.setSize(a,!1,"SwapSlide"),I(i[a].pr_next_slide.find("rs-sbg"),a,r),i.setSize(a,t,"SwapSlide Again")})})}else i[a].waitWithSwapSlide=setTimeout(function(){R(a,r)},18)},I=function(a,r,o){if(i[r]!==t){if(C(r),i[r].pr_active_slide=e(i[r].slides[i[r].pr_active_key]),i[r].pr_next_slide=e(i[r].slides[i[r].pr_processing_key]),i[r].pr_active_bg=i[r].pr_active_slide.find("rs-sbg-wrap"),i[r].pr_next_bg=i[r].pr_next_slide.find("rs-sbg-wrap"),i[r].tonpause=!1,clearTimeout(i[r].loadertimer),i[r].loader!==t&&!0===i[r].loaderVisible&&(window.requestAnimationFrame(function(){i[r].loader.css({display:"none"})}),i[r].loaderVisible=!1),i[r].onBeforeSwap={slider:r,slideIndex:parseInt(i[r].pr_active_key,0)+1,slideLIIndex:i[r].pr_active_key,nextSlideIndex:parseInt(i[r].pr_processing_key,0)+1,nextSlideLIIndex:i[r].pr_processing_key,nextslide:i[r].pr_next_slide,slide:i[r].pr_active_slide,currentslide:i[r].pr_active_slide,prevslide:i[r].pr_lastshown_key!==t?i[r].slides[i[r].pr_lastshown_key]:""},i[r].c.trigger("revolution.slide.onbeforeswap",i[r].onBeforeSwap),i[r].transition=1,i[r].stopByVideo=!1,i[r].pr_next_slide[0]!==t&&i.gA(i[r].pr_next_slide[0],"duration")!=t&&""!=i.gA(i[r].pr_next_slide[0],"duration")?i[r].duration=parseInt(i.gA(i[r].pr_next_slide[0],"duration"),0):i[r].duration=i[r].origcd,i[r].pr_next_slide[0]===t||"true"!=i.gA(i[r].pr_next_slide[0],"ssop")&&!0!==i.gA(i[r].pr_next_slide[0],"ssop")?i[r].ssop=!1:i[r].ssop=!0,i[r].sbtimeline.set&&i[r].sbtimeline.fixed&&i.updateFixedScrollTimes(r),i[r].c.trigger("nulltimer"),i[r].sdir=i[r].pr_processing_key<i[r].pr_active_key?1:0,"arrow"==i[r].sc_indicator&&(0==i[r].pr_active_key&&i[r].pr_processing_key==i[r].slideamount-1&&(i[r].sdir=1),i[r].pr_active_key==i[r].slideamount-1&&0==i[r].pr_processing_key&&(i[r].sdir=0)),i[r].lsdir=i[r].sdir,i[r].pr_active_key!=i[r].pr_processing_key&&1!=i[r].firststart&&"carousel"!==i[r].sliderType&&i.removeTheLayers&&i.removeTheLayers(i[r].pr_active_slide,r),1!==i.gA(i[r].pr_next_slide[0],"rspausetimeronce")&&1!==i.gA(i[r].pr_next_slide[0],"rspausetimeralways")?i[r].c.trigger("restarttimer"):(i[r].stopByVideo=!0,i.unToggleState(i[r].slidertoggledby)),i.sA(i[r].pr_next_slide[0],"rspausetimeronce",0),i[r].pr_next_slide[0]!==t&&i.sA(i[r].c[0],"slideactive",i.gA(i[r].pr_next_slide[0],"key")),"carousel"==i[r].sliderType)i[r].mtl=tpGS.gsap.timeline(),i.prepareCarousel(r),z(r),i.playBGVideos(r,"carousel"),i[r].transition=0;else{i[r].mtl=tpGS.gsap.timeline({paused:!0,onComplete:function(){z(r)}}),i[r].mtl.add(tpGS.gsap.set(i[r].pr_next_bg.find("rs-sbg"),{opacity:0})),i[r].pr_next_key!==t?i.animateTheLayers({slide:i[r].pr_next_key,id:r,mode:"preset",caller:"swapSlideProgress_1"}):i[r].pr_processing_key!==t?i.animateTheLayers({slide:i[r].pr_processing_key,id:r,mode:"preset",caller:"swapSlideProgress_2"}):i[r].pr_active_key!==t&&i.animateTheLayers({slide:i[r].pr_active_key,id:r,mode:"preset",caller:"swapSlideProgress_3"}),1==i[r].firststart&&(i[r].pr_active_slide[0]!==t&&tpGS.gsap.set(i[r].pr_active_slide,{autoAlpha:0}),i[r].firststart=0),i[r].pr_active_slide[0]!==t&&tpGS.gsap.set(i[r].pr_active_slide,{zIndex:18}),i[r].pr_next_slide[0]!==t&&tpGS.gsap.set(i[r].pr_next_slide,{autoAlpha:0,zIndex:20}),"prepared"==i.gA(i[r].pr_next_slide[0],"differentissplayed")&&(i.sA(i[r].pr_next_slide[0],"differentissplayed","done"),i.sA(i[r].pr_next_slide[0],"anim",i.gA(i[r].pr_next_slide[0],"savedanim"))),i.gA(i[r].pr_next_slide[0],"firstanim")!=t&&"done"!=i.gA(i[r].pr_next_slide[0],"differentissplayed")&&(i.sA(i[r].pr_next_slide[0],"savedanim",i.gA(i[r].pr_next_slide[0],"anim")),i.sA(i[r].pr_next_slide[0],"anim",i.gA(i[r].pr_next_slide[0],"firstanim")),i.sA(i[r].pr_next_slide[0],"differentissplayed","prepared"));var s=function(e){var i=(e=e===t?"t:random":e).split(";"),a={};for(var r in i)if(i.hasOwnProperty(r)){var o=i[r].split(":"),s=o[0],n=o[1],l="transition";switch(s){case"ei":l="easein";break;case"eo":l="easeout";break;case"s":l="masterspeed";break;case"sl":l="slotamount";break;case"r":l="rotate"}s!==t&&n!==t&&(a[l]=n.split(","))}a.transition===t&&(a={transition:["fade"]});return a}(i.gA(i[r].pr_next_slide[0],"anim"));i.sA(i[r].pr_next_slide[0],"ntrid","on"==i.gA(i[r].pr_next_slide[0],"rndtrans")?Math.round(80*Math.random()):parseInt(i.gA(i[r].pr_next_slide[0],"ntrid"),0)+1||0),i.sA(i[r].pr_next_slide[0],"ntrid",s.transition===t||i.gA(i[r].pr_next_slide[0],"ntrid")==s.transition.length?0:i.gA(i[r].pr_next_slide[0],"ntrid")),i.animateSlide({animation:s,ntrid:i.gA(i[r].pr_next_slide[0],"ntrid"),id:r}),i.playBGVideos(r,"swapSlideProgress"),i[r].pr_next_bg.data("panzoom")!==t&&(requestAnimationFrame(function(){i.startPanZoom(i[r].pr_next_bg,r,0,i.getSlideIndex(r,i.gA(i[r].pr_next_slide[0],"key")),"first")}),i[r].mtl.add(tpGS.gsap.set(i[r].pr_next_bg,{autoAlpha:0,immediateRender:!0}),0)),i[r].mtl.pause()}i.animateTheLayers?"carousel"===i[r].sliderType?(!1!==i[r].carousel.showLayersAllTime&&(i[r].carousel.allLayersStarted?i.animateTheLayers({slide:"individual",id:r,mode:"rebuild",caller:"swapSlideProgress_5"}):i.animateTheLayers({slide:"individual",id:r,mode:"start",caller:"swapSlideProgress_4"}),i[r].carousel.allLayersStarted=!0),0!==i[r].firststart?i.animateTheLayers({slide:0,id:r,mode:"start",caller:"swapSlideProgress_6"}):!0!==o&&i.animateTheLayers({slide:i[r].pr_next_key!==t?i[r].pr_next_key:i[r].pr_processing_key!==t?i[r].pr_processing_key:i[r].pr_active_key,id:r,mode:"start",caller:"swapSlideProgress_7"}),i[r].firststart=0):i.animateTheLayers({slide:i[r].pr_next_key!==t?i[r].pr_next_key:i[r].pr_processing_key!==t?i[r].pr_processing_key:i[r].pr_active_key,id:r,mode:"start",caller:"swapSlideProgress_8"}):i[r].mtl!=t&&setTimeout(function(){i[r].mtl.resume()},18),"carousel"!==i[r].sliderType&&tpGS.gsap.to(i[r].pr_next_slide,.001,{autoAlpha:1})}};var z=function(r){if(i[r]!==t){if("done"!==i.RS_swapList[r]){i.RS_swapList[r]="done";var o=e.inArray(r,i.RS_swapping);i.RS_swapping.splice(o,1)}if(i[r].firstSlideAvailable===t&&(i[r].firstSlideAvailable=!0,window.requestAnimationFrame(function(){"hero"!==i[r].sliderType&&i.createNavigation&&i[r].navigation.use&&!0!==i[r].navigation.createNavigationDone&&i.createNavigation(r)})),"carousel"===i[r].sliderType?tpGS.gsap.to(i[r].carousel.wrap,1,{opacity:1}):(tpGS.gsap.set(i[r].pr_next_bg.find("rs-sbg"),{zIndex:20,autoAlpha:1}),_(r,i[r].pr_next_slide),i[r].pr_next_slide.index()!=i[r].pr_active_slide.index()&&i[r].pr_active_slide[0]!==t&&(tpGS.gsap.set(i[r].pr_active_slide,{zIndex:18,autoAlpha:0}),_(r,i[r].pr_active_slide))),i[r].pr_active_key=i[r].pr_processing_key!==t?i[r].pr_processing_key:i[r].pr_active_key,delete i[r].pr_processing_key,"scroll"!=i[r].parallax.type&&"scroll+mouse"!=i[r].parallax.type&&"mouse+scroll"!=i[r].parallax.type||(i[r].lastscrolltop=-999,i.generalObserver(a)),i[r].mtldiff=i[r].mtl.time(),delete i[r].mtl,i[r].pr_active_key!==t){i.gA(i[r].slides[i[r].pr_active_key],"sloop")!==t&&function(e){if(i[e]!==t){i[e].sloops=i[e].sloops===t?{}:i[e].sloops;var a=i.gA(i[e].slides[i[e].pr_active_key],"key"),r=i[e].sloops[a];if(r===t){r={s:2500,e:4500,r:"unlimited"};var o=i.gA(i[e].slides[i[e].pr_active_key],"sloop").split(";");for(var s in o)if(o.hasOwnProperty(s)){var n=o[s].split(":");switch(n[0]){case"s":r.s=parseInt(n[1],0)/1e3;break;case"e":r.e=parseInt(n[1],0)/1e3;break;case"r":r.r=n[1]}}r.r="unlimited"===r.r?-1:parseInt(r.r,0),i[e].sloops[a]=r,r.key=a}r.ct={time:r.s},r.tl=tpGS.gsap.timeline({}),r.timer=tpGS.gsap.fromTo(r.ct,r.e-r.s,{time:r.s},{time:r.e,ease:"none",onRepeat:function(){for(var a in i[e].layers[r.key])i[e].layers[r.key].hasOwnProperty(a)&&i[e]._L[a].timeline.play(r.s);var o=i[e].progressC;o!==t&&o[0]!==t&&o[0].tween!==t&&o[0].tween.time(r.s)},onUpdate:function(){},onComplete:function(){}}).repeat(r.r),r.tl.add(r.timer,r.s),r.tl.time(i[e].mtldiff)}}(r),i.sA(i[r].slides[i[r].activeRSSlide],"isactiveslide",!1),i[r].activeRSSlide=i[r].pr_active_key,i.sA(i[r].slides[i[r].activeRSSlide],"isactiveslide",!0);var s=i.gA(i[r].slides[i[r].pr_active_key],"key"),n=i.gA(i[r].slides[i[r].pr_lastshown_key],"key");i.sA(i[r].c[0],"slideactive",s),n!==t&&i[r].panzoomTLs!==t&&i[r].panzoomTLs[i.getSlideIndex(r,n)]!==t&&(i[r].panzoomTLs[i.getSlideIndex(r,n)].timeScale(3),i[r].panzoomTLs[i.getSlideIndex(r,n)].reverse()),i[r].pr_next_bg.data("panzoom")!==t&&(i[r].panzoomTLs!==t&&i[r].panzoomTLs[i.getSlideIndex(r,s)]!==t?(i[r].panzoomTLs[i.getSlideIndex(r,s)].timeScale(1),i[r].panzoomTLs[i.getSlideIndex(r,s)].play()):i.startPanZoom(i[r].pr_next_bg,r,0,i.getSlideIndex(r,s),"play")),"carousel"!==i[r].sliderType&&i.playBGVideos(r,"letItFree"),i[r].pr_active_bg.find("rs-bgvideo").each(function(o){if(a&&!i[r].fallbacks.allowHTML5AutoPlayOnAndroid)return!1;var s=e(this);i.stopVideo&&(i.resetVideo(s,r),i.stopVideo(s,r)),i[r].videoOutAnim=i[r].videoOutAnim===t?{}:i[r].videoOutAnim,i[r].videoOutAnim[this.id]=tpGS.gsap.to(s,1,{autoAlpha:1,ease:"power3.inOut",delay:.2})});var l={slider:r,slideIndex:parseInt(i[r].pr_active_key,0)+1,slideLIIndex:i[r].pr_active_key,slide:i[r].pr_next_slide,currentslide:i[r].pr_next_slide,prevSlideIndex:i[r].pr_lastshown_key!==t&&parseInt(i[r].pr_lastshown_key,0)+1,prevSlideLIIndex:i[r].pr_lastshown_key!==t&&parseInt(i[r].pr_lastshown_key,0),prevSlide:i[r].pr_lastshown_key!==t&&i[r].slides[i[r].pr_lastshown_key]};i[r].c.trigger("revolution.slide.onchange",l),i[r].c.trigger("revolution.slide.onafterswap",l),i[r].pr_lastshown_key=i[r].pr_active_key,i[r].startWithSlide!==t&&"done"!==i[r].startWithSlide&&"carousel"===i[r].sliderType&&(i[r].firststart=0),i[r].duringslidechange=!1,i[r].pr_active_slide.length>0&&0!=i.gA(i[r].pr_active_slide[0],"hal")&&i.gA(i[r].pr_active_slide[0],"hal")<=i.gA(i[r].pr_active_slide[0],"sofacounter")&&i[r].c.revremoveslide(i[r].pr_active_slide.index());var d=i[r].pr_processing_key||i[r].pr_active_key||0;i[r].rowzones!=t&&(d=d>i[r].rowzones.length?i[r].rowzones.length:d),i[r].rowzones!=t&&i[r].rowzones.length>0&&i[r].rowzones[d]!=t&&d>=0&&d<=i[r].rowzones.length&&i[r].rowzones[d].length>0&&i.setSize(r,t,"letItFree"),delete i[r].sc_indicator,delete i[r].sc_indicator_dir,i[r].firstLetItFree===t&&(i.generalObserver(a),i[r].firstLetItFree=!0)}}},C=function(a){var r=i[a].progressBar;if(i[a].progressC===t||0==i[a].progressC.length)if(i[a].progressC=e('<rs-progress style="visibility:hidden;"></rs-progress>'),"horizontal"===r.style||"vertical"===r.style){if("module"===r.basedon){for(var o="",s=0;s<i[a].slideamount;s++)o+="<rs-progress-bar></rs-progress-bar>";o+="<rs-progress-bgs>";for(s=0;s<i[a].slideamount;s++)o+="<rs-progress-bg></rs-progress-bg>";if(o+="</rs-progress-bgs>","nogap"!==r.gaptype)for(s=0;s<i[a].slideamount;s++)o+="<rs-progress-gap></rs-progress-gap>";i[a].progressC[0].innerHTML=o,!0===i[a].noDetach&&i[a].c.append(i[a].progressC),i[a].progressCBarBGS=i[a].progressC[0].getElementsByTagName("RS-PROGRESS-BG"),i[a].progressCBarGAPS=i[a].progressC[0].getElementsByTagName("RS-PROGRESS-GAP"),"nogap"!==r.gaptype&&tpGS.gsap.set(i[a].progressCBarGAPS,{backgroundColor:r.gapcolor,zIndex:"gapbg"===r.gaptype?17:27}),tpGS.gsap.set(i[a].progressCBarBGS,{backgroundColor:r.bgcolor})}else i[a].progressC[0].innerHTML="<rs-progress-bar></rs-progress-bar>",!0===i[a].noDetach&&i[a].c.append(i[a].progressC);i[a].progressCBarInner=i[a].progressC[0].getElementsByTagName("RS-PROGRESS-BAR"),tpGS.gsap.set(i[a].progressCBarInner,{background:r.color})}else i[a].progressC[0].innerHTML='<canvas width="'+2*r.radius+'" height="'+2*r.radius+'" style="position:absolute" class="rs-progress-bar"></canvas>',!0===i[a].noDetach&&i[a].c.append(i[a].progressC),i[a].progressCBarInner=i[a].progressC[0].getElementsByClassName("rs-progress-bar")[0],i[a].progressBCanvas=i[a].progressCBarInner.getContext("2d"),i[a].progressBar.degree="cw"===i[a].progressBar.style?360:0,P(a);if(!0!==i[a].noDetach&&i[a].progressC.detach(),i[a].progressBar.visibility[i[a].level]&&1!=i[a].progressBar.disableProgressBar)if("horizontal"===r.style||"vertical"===r.style){var n,l,d=i[a].slideamount-1;if("horizontal"===r.style){var c="grid"===r.alignby?i[a].gridwidth[i[a].level]:i[a].width;n=Math.ceil(c/i[a].slideamount),l=Math.ceil((c-d*r.gapsize)/i[a].slideamount),tpGS.gsap.set(i[a].progressC,{visibility:"visible",top:"top"===r.vertical?r.y+("grid"===r.alignby&&i[a].gridOffsetHeight!==t?Math.max(0,i[a].gridOffsetHeight):0):"center"===r.vertical?"50%":"auto",bottom:"top"===r.vertical||"center"===r.vertical?"auto":r.y+("grid"===r.alignby&&i[a].gridOffsetHeight!==t?Math.max(0,i[a].gridOffsetHeight):0),left:"left"===r.horizontal&&"grid"===r.alignby&&i[a].gridOffsetWidth!==t?Math.max(0,i[a].gridOffsetWidth):"auto",right:"right"===r.horizontal&&"grid"===r.alignby&&i[a].gridOffsetWidth!==t?Math.max(0,i[a].gridOffsetWidth):"auto",y:"center"===r.vertical?r.y:0,height:r.size,backgroundColor:"module"===r.basedon?"transparent":r.bgcolor,marginTop:"bottom"===r.vertical?0:"top"===r.vertical?0:parseInt(r.size,0)/2,width:"grid"===r.alignby?i[a].gridwidth[i[a].level]:"100%"}),tpGS.gsap.set(i[a].progressCBarInner,{x:"module"===r.basedon?r.gap?function(e){return("right"===r.horizontal?d-e:e)*(l+r.gapsize)}:function(e){return("right"===r.horizontal?d-e:e)*n}:0,width:"module"===r.basedon?r.gap?l+"px":100/i[a].slideamount+"%":"100%"}),"module"===r.basedon&&(tpGS.gsap.set(i[a].progressCBarBGS,{x:"module"===r.basedon?r.gap?function(e){return e*(l+r.gapsize)}:function(e){return e*n}:0,width:"module"===r.basedon?r.gap?l+"px":100/i[a].slideamount+"%":"100%"}),tpGS.gsap.set(i[a].progressCBarGAPS,{width:r.gap?r.gapsize+"px":0,x:r.gap?function(e){return(e+1)*l+parseInt(r.gapsize,0)*e}:0}))}else if("vertical"===r.style){c="grid"===r.alignby?i[a].gridheight[i[a].level]:i[a].height;n=Math.ceil(c/i[a].slideamount),l=Math.ceil((c-d*r.gapsize)/i[a].slideamount),tpGS.gsap.set(i[a].progressC,{visibility:"visible",left:"left"===r.horizontal?r.x+("grid"===r.alignby&&i[a].gridOffsetWidth!==t?Math.max(0,i[a].gridOffsetWidth):0):"center"===r.horizontal?"50%":"auto",right:"left"===r.horizontal||"center"===r.horizontal?"auto":r.x+("grid"===r.alignby&&i[a].gridOffsetWidth!==t?Math.max(0,i[a].gridOffsetWidth):0),x:"center"===r.horizontal?r.x:0,top:"top"===r.vertical&&"grid"===r.alignby&&i[a].gridOffsetHeight!==t?Math.max(i[a].gridOffsetHeight,0):"auto",bottom:"bottom"===r.vertical&&"grid"===r.alignby&&i[a].gridOffsetHeight!==t?Math.max(i[a].gridOffsetHeight,0):"auto",width:r.size,marginLeft:"left"===r.horizontal?0:"right"===r.horizontal?0:parseInt(r.size,0)/2,backgroundColor:"module"===r.basedon?"transparent":r.bgcolor,height:"grid"===r.alignby?i[a].gridheight[i[a].level]:"100%"}),tpGS.gsap.set(i[a].progressCBarInner,{y:"module"===r.basedon?r.gap?function(e){return("bottom"===r.vertical?d-e:e)*(l+r.gapsize)}:function(e){return("bottom"===r.vertical?d-e:e)*n}:0,height:"module"===r.basedon?r.gap?l+"px":100/i[a].slideamount+"%":"100%"}),"module"===r.basedon&&(tpGS.gsap.set(i[a].progressCBarBGS,{y:"module"===r.basedon?r.gap?function(e){return e*(l+r.gapsize)}:function(e){return e*n}:0,height:"module"===r.basedon?r.gap?l+"px":100/i[a].slideamount+"%":"100%"}),tpGS.gsap.set(i[a].progressCBarGAPS,{height:r.gap?r.gapsize+"px":0,y:r.gap?function(e){return(e+1)*l+parseInt(r.gapsize,0)*e}:0}))}}else tpGS.gsap.set(i[a].progressC,{top:"top"===r.vertical?r.y+("grid"===r.alignby&&i[a].gridOffsetHeight!==t?Math.max(0,i[a].gridOffsetHeight):0):"center"===r.vertical?"50%":"auto",bottom:"top"===r.vertical||"center"===r.vertical?"auto":r.y+("grid"===r.alignby&&i[a].gridOffsetHeight!==t?Math.max(0,i[a].gridOffsetHeight):0),left:"left"===r.horizontal?r.x+("grid"===r.alignby&&i[a].gridOffsetWidth!==t?Math.max(0,i[a].gridOffsetWidth):0):"center"===r.horizontal?"50%":"auto",right:"left"===r.horizontal||"center"===r.horizontal?"auto":r.x+("grid"===r.alignby&&i[a].gridOffsetWidth!==t?Math.max(0,i[a].gridOffsetWidth):0),y:"center"===r.vertical?r.y:0,x:"center"===r.horizontal?r.x:0,width:2*r.radius,height:2*r.radius,marginTop:"center"===r.vertical?0-r.radius:0,marginLeft:"center"===r.horizontal?0-r.radius:0,backgroundColor:"transparent",visibility:"visible"});else i[a].progressC[0].style.visibility="hidden";!0!==i[a].noDetach&&i[a].c.append(i[a].progressC),i[a].gridOffsetWidth===t&&"grid"===r.alignby?i[a].rebuildProgressBar=!0:i[a].rebuildProgressBar=!1},P=function(e){var t=i[e].progressBar,a=parseInt(t.radius),r=parseInt(t.radius);i[e].progressBCanvas.lineCap="round",i[e].progressBCanvas.clearRect(0,0,2*t.radius,2*t.radius),i[e].progressBCanvas.beginPath(),i[e].progressBCanvas.arc(a,r,t.radius-parseInt(t.size,0),Math.PI/180*270,Math.PI/180*630),i[e].progressBCanvas.strokeStyle=t.bgcolor,i[e].progressBCanvas.lineWidth=parseInt(t.size,0)-1,i[e].progressBCanvas.stroke(),i[e].progressBCanvas.beginPath(),i[e].progressBCanvas.strokeStyle=t.color,i[e].progressBCanvas.lineWidth=parseInt(t.size,0),i[e].progressBCanvas.arc(a,r,t.radius-parseInt(t.size,0),Math.PI/180*270,Math.PI/180*(270+i[e].progressBar.degree),"cw"!==t.style),i[e].progressBCanvas.stroke()},B=function(a){var r=function(){a!==t&&i!==t&&i[a]!==t&&(0==e("body").find(i[a].c).length||null===i[a]||null===i[a].c||i[a].c===t||0===i[a].length?(!function(t){i[t].c.children().each(function(){try{e(this).die("click")}catch(e){}try{e(this).die("mouseenter")}catch(e){}try{e(this).die("mouseleave")}catch(e){}try{e(this).unbind("hover")}catch(e){}});try{i[t].c.die("click","mouseenter","mouseleave")}catch(e){}clearInterval(i[t].cdint),i[t].c=null}(a),clearInterval(i[a].cdint)):(i[a].c.trigger("revolution.slide.slideatend"),1==i[a].c.data("conthoverchanged")&&(i[a].conthover=i[a].c.data("conthover"),i[a].c.data("conthoverchanged",0)),i.callingNewSlide(a,1,!0)))},o=tpGS.gsap.timeline({paused:!0}),s="reset"===i[a].progressBar.reset||i[a].progressBar.notnew===t?0:.2,n="slide"===i[a].progressBar.basedon?0:i[a].pr_processing_key!==t?i[a].pr_processing_key:i[a].pr_active_key;if(n=n===t?0:n,"horizontal"===i[a].progressBar.style){if(o.add(tpGS.gsap.to(i[a].progressCBarInner[n],s,{scaleX:0,transformOrigin:"right"===i[a].progressBar.horizontal?"100% 50%":"0% 50%"})),o.add(tpGS.gsap.to(i[a].progressCBarInner[n],i[a].duration/1e3,{transformOrigin:"right"===i[a].progressBar.horizontal?"100% 50%":"0% 50%",force3D:"auto",scaleX:1,onComplete:r,delay:.5,ease:i[a].progressBar.ease})),"module"===i[a].progressBar.basedon)for(var l=0;l<i[a].slideamount;l++)l!==n&&o.add(tpGS.gsap.set(i[a].progressCBarInner[l],{scaleX:l<n?1:0,transformOrigin:"right"===i[a].progressBar.horizontal?"100% 50%":"0% 50%"}),0)}else if("vertical"===i[a].progressBar.style){if(i[a].progressCBarInner[n]!==t&&o.add(tpGS.gsap.to(i[a].progressCBarInner[n],s,{scaleY:0,transformOrigin:"bottom"===i[a].progressBar.vertical?"50% 100%":"50% 0%"})),i[a].progressCBarInner[n]!==t&&o.add(tpGS.gsap.to(i[a].progressCBarInner[n],i[a].duration/1e3,{transformOrigin:"bottom"===i[a].progressBar.vertical?"50% 100%":"50% 0%",force3D:"auto",scaleY:1,onComplete:r,delay:.5,ease:i[a].progressBar.ease})),"module"===i[a].progressBar.basedon)for(l=0;l<i[a].slideamount;l++)l!==n&&i[a].progressCBarInner[l]!==t&&o.add(tpGS.gsap.set(i[a].progressCBarInner[l],{scaleY:l<n?1:0,transformOrigin:"botton"===i[a].progressBar.vertical?"50% 100%":"50% 0%"}),0)}else{var d="slide"===i[a].progressBar.basedon?0:Math.max(0,360/i[a].slideamount*n),c="slide"===i[a].progressBar.basedon?360:360/i[a].slideamount*(n+1);"ccw"===i[a].progressBar.style&&"slide"!==i[a].progressBar.basedon&&(d=360-c,c=360-360/i[a].slideamount*n),o.add(tpGS.gsap.to(i[a].progressBar,s,{degree:"cw"===i[a].progressBar.style?d:c,onUpdate:function(){P(a)}})),o.add(tpGS.gsap.to(i[a].progressBar,i[a].duration/1e3,{degree:"cw"===i[a].progressBar.style?c:d,onUpdate:function(){P(a)},onComplete:r,delay:.5,ease:i[a].progressBar.ease}))}return i[a].progressBar.notnew=!0,o},G=function(e){i[e].progressC==t&&C(e),i[e].loop=0,i[e].stopAtSlide!=t&&i[e].stopAtSlide>-1?i[e].lastslidetoshow=i[e].stopAtSlide:i[e].lastslidetoshow=999,i[e].stopLoop=!1,0==i[e].looptogo&&(i[e].stopLoop=!0),i[e].c.on("stoptimer",function(){i[e].progressC!=t&&(i[e].progressC[0].tween.pause(),i[e].progressBar.disableProgressBar&&(i[e].progressC[0].style.visibility="hidden"),i[e].sliderstatus="paused",i[e].slideInSwapTimer||i.unToggleState(i[e].slidertoggledby),i[e].slideInSwapTimer=!1)}),i[e].c.on("starttimer",function(){i[e].progressC!=t&&(i[e].forcepaused||(1!=i[e].conthover&&1!=i[e].stopByVideo&&i[e].width>i[e].hideSliderAtLimit&&1!=i[e].tonpause&&1!=i[e].overnav&&1!=i[e].ssop&&(1===i[e].noloopanymore||i[e].viewPort.enable&&!i[e].inviewport||(i[e].progressBar.visibility[i[e].level]||(i[e].progressC[0].style.visibility="visible"),i[e].progressC[0].tween.resume(),i[e].sliderstatus="playing")),!i[e].progressBar.disableProgressBar&&i[e].progressBar.visibility[i[e].level]||(i[e].progressC[0].style.visibility="hidden"),i.toggleState(i[e].slidertoggledby)))}),i[e].c.on("restarttimer",function(){if(i[e].progressC!=t&&!i[e].forcepaused){if(i[e].mouseoncontainer&&"on"==i[e].navigation.onHoverStop&&!a)return!1;1===i[e].noloopanymore||i[e].viewPort.enable&&!i[e].inviewport||1==i[e].ssop?i.unToggleState(i[e].slidertoggledby):(i[e].progressBar.visibility[i[e].level]||(i[e].progressC[0].style.visibility="visible"),i[e].progressC[0].tween!==t&&i[e].progressC[0].tween.kill(),i[e].progressC[0].tween=B(e),i[e].progressC[0].tween.play(),i[e].sliderstatus="playing",i.toggleState(i[e].slidertoggledby)),!i[e].progressBar.disableProgressBar&&i[e].progressBar.visibility[i[e].level]||(i[e].progressC[0].style.visibility="hidden"),i[e].mouseoncontainer&&1==i[e].navigation.onHoverStop&&!a&&(i[e].c.trigger("stoptimer"),i[e].c.trigger("revolution.slide.onpause"))}}),i[e].c.on("nulltimer",function(){i[e].progressC!=t&&i[e].progressC[0]!==t&&(i[e].progressC[0].tween!==t&&i[e].progressC[0].tween.kill(),i[e].progressC[0].tween=B(e),i[e].progressC[0].tween.pause(0),!i[e].progressBar.disableProgressBar&&i[e].progressBar.visibility[i[e].level]||(i[e].progressC[0].style.visibility="hidden"),i[e].sliderstatus="paused")}),i[e].progressC!==t&&(i[e].progressC[0].tween=B(e)),i[e].slideamount>1&&(0!=i[e].stopAfterLoops||1!=i[e].stopAtSlide)?i[e].c.trigger("starttimer"):(i[e].noloopanymore=1,i[e].c.trigger("nulltimer")),i[e].c.on("tp-mouseenter",function(){i[e].mouseoncontainer=!0,1!=i[e].navigation.onHoverStop||a||(i[e].c.trigger("stoptimer"),i[e].c.trigger("revolution.slide.onpause"))}),i[e].c.on("tp-mouseleft",function(){i[e].mouseoncontainer=!1,1!=i[e].c.data("conthover")&&1==i[e].navigation.onHoverStop&&(1==i[e].viewPort.enable&&i[e].inviewport||0==i[e].viewPort.enable)&&(i[e].c.trigger("revolution.slide.onresume"),i[e].c.trigger("starttimer"))})},M=function(){e(".rev_redraw_on_blurfocus").each(function(){var e=this.id;if(i[e]==t||i[e].c==t||0===i[e].c.length)return!1;1!=i[e].windowfocused&&(i[e].windowfocused=!0,tpGS.gsap.delayedCall(.1,function(){i[e].fallbacks.nextSlideOnWindowFocus&&i[e].c.revnext(),i[e].c.revredraw(),"playing"==i[e].lastsliderstatus&&i[e].c.revresume(),i[e].c.trigger("revolution.slide.tabfocused")}))})},D=function(){document.hasFocus()||e(".rev_redraw_on_blurfocus").each(function(e){var a=this.id;i[a].windowfocused=!1,i[a].lastsliderstatus=i[a].sliderstatus,i[a].c.revpause(),i[a].pr_next_bg!==t&&i[a].pr_next_bg.data("panzoom")!==t&&i.stopPanZoom(i[a].pr_next_bg,i[a]),i[a].pr_active_bg!==t&&i[a].pr_active_bg.data("panzoom")!==t&&i.stopPanZoom(i[a].pr_active_bg,i[a]),i[a].c.trigger("revolution.slide.tabblured")})},H=function(){var e=document.documentMode===t,a=window.chrome;1!==i.revslider_focus_blur_listener&&(i.revslider_focus_blur_listener=1,e&&!a?i.window.on("focusin",function(){!0!==i.windowIsFocused&&M(),i.windowIsFocused=!0}).on("focusout",function(){!0!==i.windowIsFocused&&i.windowIsFocused!==t||D(),i.windowIsFocused=!1}):window.addEventListener?(window.addEventListener("focus",function(e){!0!==i.windowIsFocused&&M(),i.windowIsFocused=!0},{capture:!1,passive:!0}),window.addEventListener("blur",function(e){!0!==i.windowIsFocused&&i.windowIsFocused!==t||D(),i.windowIsFocused=!1},{capture:!1,passive:!0})):(window.attachEvent("focus",function(e){!0!==i.windowIsFocused&&M(),i.windowIsFocused=!0}),window.attachEvent("blur",function(e){!0!==i.windowIsFocused&&i.windowIsFocused!==t||D(),i.windowIsFocused=!1})))},j=function(e){for(var t,i=[],a=window.location.href.slice(window.location.href.indexOf(e)+1).split("_"),r=0;r<a.length;r++)a[r]=a[r].replace("%3D","="),t=a[r].split("="),i.push(t[0]),i[t[0]]=t[1];return i},W=function(e){if(i[e].blockSpacing!==t){var a=i[e].blockSpacing.split(";");for(var r in i[e].blockSpacing={},a)if(a.hasOwnProperty(r)){var o=a[r].split(":");switch(o[0]){case"t":i[e].blockSpacing.top=i.revToResp(o[1],4,0);break;case"b":i[e].blockSpacing.bottom=i.revToResp(o[1],4,0);break;case"l":i[e].blockSpacing.left=i.revToResp(o[1],4,0);break;case"r":i[e].blockSpacing.right=i.revToResp(o[1],4,0)}}i[e].blockSpacing.block=i[e].c.closest(".wp-block-themepunch-revslider"),i[e].level!==t&&i[e].blockSpacing!==t&&tpGS.gsap.set(i[e].blockSpacing.block,{paddingLeft:i[e].blockSpacing.left[i[e].level],paddingRight:i[e].blockSpacing.right[i[e].level],marginTop:i[e].blockSpacing.top[i[e].level],marginBottom:i[e].blockSpacing.bottom[i[e].level]})}},N=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},F=function(i){return function(i){for(var a in i.minHeight=i.minHeight!==t?"none"===i.minHeight||"0"===i.minHeight||"0px"===i.minHeight||""==i.minHeight||" "==i.minHeight?0:parseInt(i.minHeight,0):0,i.maxHeight="none"===i.maxHeight||"0"===i.maxHeight?0:parseInt(i.maxHeight,0),i.carousel.maxVisibleItems=i.carousel.maxVisibleItems<1?999:i.carousel.maxVisibleItems,i.carousel.vertical_align="top"===i.carousel.vertical_align?"0%":"bottom"===i.carousel.vertical_align?"100%":"50%",i.carousel.space=parseInt(i.carousel.space,0),i.carousel.maxOpacity=parseInt(i.carousel.maxOpacity,0),i.carousel.maxOpacity=i.carousel.maxOpacity>1?i.carousel.maxOpacity/100:i.carousel.maxOpacity,i.carousel.showLayersAllTime="true"===i.carousel.showLayersAllTime||!0===i.carousel.showLayersAllTime?"all":i.carousel.showLayersAllTime,i.carousel.maxRotation=parseInt(i.carousel.maxRotation,0),i.carousel.minScale=parseInt(i.carousel.minScale,0),i.carousel.minScale=i.carousel.minScale>.9?i.carousel.minScale/100:i.carousel.minScale,i.carousel.speed=parseInt(i.carousel.speed,0),i.navigation.maintypes=["arrows","tabs","thumbnails","bullets"],i.perspective=parseInt(i.perspective,0),i.navigation.maintypes)i.navigation.maintypes.hasOwnProperty(a)&&i.navigation[i.navigation.maintypes[a]]!==t&&(i.navigation[i.navigation.maintypes[a]].animDelay=i.navigation[i.navigation.maintypes[a]].animDelay===t?1e3:i.navigation[i.navigation.maintypes[a]].animDelay,i.navigation[i.navigation.maintypes[a]].animSpeed=i.navigation[i.navigation.maintypes[a]].animSpeed===t?1e3:i.navigation[i.navigation.maintypes[a]].animSpeed,i.navigation[i.navigation.maintypes[a]].animDelay=parseInt(i.navigation[i.navigation.maintypes[a]].animDelay,0)/1e3,i.navigation[i.navigation.maintypes[a]].animSpeed=parseInt(i.navigation[i.navigation.maintypes[a]].animSpeed,0)/1e3);if(e.isNumeric(i.scrolleffect.tilt)||-1!==i.scrolleffect.tilt.indexOf("%")&&(i.scrolleffect.tilt=parseInt(i.scrolleffect.tilt)),i.scrolleffect.tilt=i.scrolleffect.tilt/100,i.navigation.thumbnails.position="outer-horizontal"==i.navigation.thumbnails.position?"bottom"==i.navigation.thumbnails.v_align?"outer-bottom":"outer-top":"outer-vertical"==i.navigation.thumbnails.position?"left"==i.navigation.thumbnails.h_align?"outer-left":"outer-right":i.navigation.thumbnails.position,i.navigation.tabs.position="outer-horizontal"==i.navigation.tabs.position?"bottom"==i.navigation.tabs.v_align?"outer-bottom":"outer-top":"outer-vertical"==i.navigation.tabs.position?"left"==i.navigation.tabs.h_align?"outer-left":"outer-right":i.navigation.tabs.position,i.sbtimeline.speed=parseInt(i.sbtimeline.speed,0)/1e3||.5,!0===i.sbtimeline.set&&!0===i.sbtimeline.fixed&&"auto"!==i.sliderLayout?(i.sbtimeline.fixStart=parseInt(i.sbtimeline.fixStart),i.sbtimeline.fixEnd=parseInt(i.sbtimeline.fixEnd)):i.sbtimeline.fixed=!1,i.progressBar===t||"true"!=i.progressBar.disableProgressBar&&1!=i.progressBar.disableProgressBar||(i.progressBar.disableProgressBar=!0),i.startDelay=parseInt(i.startDelay,0)||0,i.navigation!==t&&i.navigation.arrows!=t&&i.navigation.arrows.hide_under!=t&&(i.navigation.arrows.hide_under=parseInt(i.navigation.arrows.hide_under)),i.navigation!==t&&i.navigation.bullets!=t&&i.navigation.bullets.hide_under!=t&&(i.navigation.bullets.hide_under=parseInt(i.navigation.bullets.hide_under)),i.navigation!==t&&i.navigation.thumbnails!=t&&i.navigation.thumbnails.hide_under!=t&&(i.navigation.thumbnails.hide_under=parseInt(i.navigation.thumbnails.hide_under)),i.navigation!==t&&i.navigation.tabs!=t&&i.navigation.tabs.hide_under!=t&&(i.navigation.tabs.hide_under=parseInt(i.navigation.tabs.hide_under)),i.navigation!==t&&i.navigation.arrows!=t&&i.navigation.arrows.hide_over!=t&&(i.navigation.arrows.hide_over=parseInt(i.navigation.arrows.hide_over)),i.navigation!==t&&i.navigation.bullets!=t&&i.navigation.bullets.hide_over!=t&&(i.navigation.bullets.hide_over=parseInt(i.navigation.bullets.hide_over)),i.navigation!==t&&i.navigation.thumbnails!=t&&i.navigation.thumbnails.hide_over!=t&&(i.navigation.thumbnails.hide_over=parseInt(i.navigation.thumbnails.hide_over)),i.navigation!==t&&i.navigation.tabs!=t&&i.navigation.tabs.hide_over!=t&&(i.navigation.tabs.hide_over=parseInt(i.navigation.tabs.hide_over)),i.lazyloaddata!==t&&i.lazyloaddata.length>0&&i.lazyloaddata.indexOf("-")>0){var r=i.lazyloaddata.split("-");for(i.lazyloaddata=r[0],a=1;a<r.length;a++)i.lazyloaddata+=N(r[a])}return i.duration=parseInt(i.duration),"single"===i.lazyType&&"carousel"===i.sliderType&&(i.lazyType="smart"),"carousel"===i.sliderType&&i.carousel.justify&&(i.justifyCarousel=!0,i.keepBPHeight=!0),i.enableUpscaling=1==i.enableUpscaling&&"carousel"!==i.sliderType&&"fullwidth"===i.sliderLayout,i.useFullScreenHeight="carousel"===i.sliderType&&"fullscreen"===i.sliderLayout&&!0===i.useFullScreenHeight,i.progressBar.y=parseInt(i.progressBar.y,0),i.progressBar.x=parseInt(i.progressBar.x,0),
/*! Custom Eases */
"IE"!==window.RSBrowser&&i.customEases!==t&&(!i.customEases.SFXBounceLite&&"true"!=i.customEases.SFXBounceLite||tpGS.SFXBounceLite!==t||(tpGS.SFXBounceLite=tpGS.CustomBounce.create("SFXBounceLite",{strength:.3,squash:1,squashID:"SFXBounceLite-squash"})),!i.customEases.SFXBounceSolid&&"true"!=i.customEases.SFXBounceSolid||tpGS.SFXBounceSolid!==t||(tpGS.SFXBounceSolid=tpGS.CustomBounce.create("SFXBounceSolid",{strength:.5,squash:2,squashID:"SFXBounceSolid-squash"})),!i.customEases.SFXBounceStrong&&"true"!=i.customEases.SFXBounceStrong||tpGS.SFXBounceStrong!==t||(tpGS.SFXBounceStrong=tpGS.CustomBounce.create("SFXBounceStrong",{strength:.7,squash:3,squashID:"SFXBounceStrong-squash"})),!i.customEases.SFXBounceExtrem&&"true"!=i.customEases.SFXBounceExtrem||tpGS.SFXBounceExtrem!==t||(tpGS.SFXBounceExtrem=tpGS.CustomBounce.create("SFXBounceExtrem",{strength:.9,squash:4,squashID:"SFXBounceExtrem-squash"})),!i.customEases.BounceLite&&"true"!=i.customEases.BounceLite||tpGS.BounceLite!==t||(tpGS.BounceLite=tpGS.CustomBounce.create("BounceLite",{strength:.3})),!i.customEases.BounceSolid&&"true"!=i.customEases.BounceSolid||tpGS.BounceSolid!==t||(tpGS.BounceSolid=tpGS.CustomBounce.create("BounceSolid",{strength:.5})),!i.customEases.BounceStrong&&"true"!=i.customEases.BounceStrong||tpGS.BounceStrong!==t||(tpGS.BounceStrong=tpGS.CustomBounce.create("BounceStrong",{strength:.7})),!i.customEases.BounceExtrem&&"true"!=i.customEases.BounceExtrem||tpGS.BounceExtrem!==t||(tpGS.BounceExtrem=tpGS.CustomBounce.create("BounceExtrem",{strength:.9}))),i}(e.extend(!0,{sliderType:"standard",sliderLayout:"auto",dottedOverlay:"none",duration:9e3,imgCrossOrigin:"",modal:{useAsModal:!1,cover:!0,coverColor:"rgba(0,0,0,0.5)",horizontal:"center",vertical:"middle"},navigation:{keyboardNavigation:!1,keyboard_direction:"horizontal",mouseScrollNavigation:"off",onHoverStop:!0,mouseScrollReverse:"default",touch:{touchenabled:!1,touchOnDesktop:!1,swipe_treshold:75,swipe_min_touches:1,swipe_direction:"horizontal",drag_block_vertical:!1,mobileCarousel:!0,desktopCarousel:!0},arrows:{style:"",enable:!1,hide_onmobile:!1,hide_under:0,hide_onleave:!1,hide_delay:200,hide_delay_mobile:1200,hide_over:9999,tmp:"",rtl:!1,left:{h_align:"left",v_align:"center",h_offset:20,v_offset:0,container:"slider"},right:{h_align:"right",v_align:"center",h_offset:20,v_offset:0,container:"slider"}},bullets:{enable:!1,hide_onmobile:!1,hide_onleave:!1,hide_delay:200,hide_delay_mobile:1200,hide_under:0,hide_over:9999,direction:"horizontal",h_align:"center",v_align:"bottom",space:5,h_offset:0,v_offset:20,tmp:'<span class="tp-bullet-image"></span><span class="tp-bullet-title"></span>',container:"slider",rtl:!1,style:""},thumbnails:{container:"slider",rtl:!1,style:"",enable:!1,width:100,height:50,min_width:100,wrapper_padding:2,wrapper_color:"transparent",tmp:'<span class="tp-thumb-image"></span><span class="tp-thumb-title"></span>',visibleAmount:5,hide_onmobile:!1,hide_onleave:!1,hide_delay:200,hide_delay_mobile:1200,hide_under:0,hide_over:9999,direction:"horizontal",span:!1,position:"inner",space:2,h_align:"center",v_align:"bottom",h_offset:0,v_offset:20},tabs:{container:"slider",rtl:!1,style:"",enable:!1,width:100,min_width:100,height:50,wrapper_padding:10,wrapper_color:"transparent",tmp:'<span class="tp-tab-image"></span>',visibleAmount:5,hide_onmobile:!1,hide_onleave:!1,hide_delay:200,hide_delay_mobile:1200,hide_under:0,hide_over:9999,direction:"horizontal",span:!1,space:0,position:"inner",h_align:"center",v_align:"bottom",h_offset:0,v_offset:20}},responsiveLevels:4064,visibilityLevels:[2048,1024,778,480],gridwidth:960,gridheight:500,minHeight:0,maxHeight:0,keepBPHeight:!1,useFullScreenHeight:!0,overflowHidden:!1,forceOverflow:!1,fixedOnTop:!1,autoHeight:!1,gridEQModule:!1,disableForceFullWidth:!1,fullScreenOffsetContainer:"",fullScreenOffset:"0",hideLayerAtLimit:0,hideAllLayerAtLimit:0,hideSliderAtLimit:0,progressBar:{disableProgressBar:!1,style:"horizontal",size:"5px",radius:10,vertical:"bottom",horizontal:"left",x:0,y:0,color:"rgba(255,255,255,0.5)",bgcolor:"transparent",basedon:"slide",gapsize:0,reset:"reset",gaptype:"gapboth",gapcolor:"rgba(255,255,255,0.5)",ease:"none",visibility:{0:!0,1:!0,2:!0,3:!0}},stopAtSlide:-1,stopAfterLoops:0,shadow:0,startDelay:0,lazyType:"none",spinner:"off",shuffle:!1,perspective:"600px",perspectiveType:"local",viewPort:{enable:!1,outof:"wait",visible_area:"200px",presize:!1},fallbacks:{isJoomla:!1,panZoomDisableOnMobile:!1,simplifyAll:!0,nextSlideOnWindowFocus:!1,disableFocusListener:!1,allowHTML5AutoPlayOnAndroid:!0},parallax:{type:"off",levels:[10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85],origo:"enterpoint",disable_onmobile:!1,ddd_shadow:!1,ddd_bgfreeze:!1,ddd_overflow:"visible",ddd_layer_overflow:"visible",ddd_z_correction:65,speed:400,speedbg:0,speedls:0},scrolleffect:{set:!1,fade:!1,blur:!1,scale:!1,grayscale:!1,maxblur:10,layers:!1,slide:!1,direction:"both",multiplicator:1.35,multiplicator_layers:.5,tilt:30,disable_onmobile:!1},sbtimeline:{set:!1,fixed:!1,fixStart:0,fixEnd:0,layers:!1,slide:!1,ease:"none",speed:500},carousel:{easing:"power3.inOut",speed:800,showLayersAllTime:!1,horizontal_align:"center",vertical_align:"center",infinity:!1,space:0,maxVisibleItems:3,stretch:!1,fadeout:!0,maxRotation:0,maxOpacity:100,minScale:0,offsetScale:!1,vary_fade:!1,vary_rotation:!1,vary_scale:!1,border_radius:"0px",padding_top:0,padding_bottom:0},extensions:"extensions/",extensions_suffix:".min.js",stopLoop:!1,waitForInit:!1,ignoreHeightChange:!0},i))}}(jQuery),function($,undefined){"use strict";var _R=jQuery.fn.revolution,_ISM=_R.is_mobile();jQuery.extend(!0,_R,{checkActions:function(e,t){e===undefined?moduleEnterLeaveActions(t):checkActions_intern(e,t)},getURLDetails:function(e){(e=e===undefined?{}:e).url=e.url===undefined?window.location.href:e.url,e.url=e.url.replace("www",""),e.protocol=0===e.url.indexOf("http://")?"http://":0===e.url.indexOf("https://")?"https://":0===e.url.indexOf("//")?"//":"relative";var t=e.url.replace("https://","");t=t.replace("http://",""),"relative"===e.protocol&&(t=t.replace("//","")),t=t.split("#"),e.anchor=(e.anchor===undefined||""==e.anchor||0==e.anchor.length)&&t.length>1?t[1]:e.anchor===undefined?"":e.anchor.replace("#",""),e.anchor=e.anchor.split("?"),e.queries=t[0].split("?"),e.queries=e.queries.length>1?e.queries[1]:"",e.queries=e.queries.length>1?e.queries[1]:e.anchor.length>1?e.anchor[1]:e.queries,e.anchor=e.anchor[0];(t=t[0]).split("/");var i=t.split("/");return e.host=i[0],i.splice(0,1),e.path="/"+i.join("/"),"/"==e.path[e.path.length-1]&&(e.path=e.path.slice(0,-1)),e.origin="relative"!==e.protocol?e.protocol+e.host:window.location.origin.replace("www","")+window.location.pathname,e.hash=(""!==e.queries&&e.queries!==undefined?"?"+e.queries:"")+(""!==e.anchor&&e.anchor!==undefined?"#"+e.anchor:""),e},scrollToId:function(e){var t="scrollbelow"===e.action?(getOffContH(_R[e.id].fullScreenOffsetContainer)||0)-(parseInt(e.offset,0)||0)||0:0-(parseInt(e.offset,0)||0),i="scrollbelow"===e.action?_R[e.id].c:jQuery("#"+e.anchor),a=i.length>0?i.offset().top:0,r={_y:window.pageYOffset!==document.documentElement.scrollTop?0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop:window.pageYOffset};a+="scrollbelow"===e.action?jQuery(_R[e.id].slides[0]).height():0,tpGS.gsap.to(r,e.speed/1e3,{_y:a-t,ease:e.ease,onUpdate:function(){_R.document.scrollTop(r._y)},onComplete:function(){e.hash!==undefined&&(window.location.hash=e.hash)}})}});var moduleEnterLeaveActions=function(e){!_R[e].moduleActionsPrepared&&_R[e].c[0].getElementsByClassName("rs-on-sh").length>0&&(_R[e].c.on("tp-mouseenter",function(){_R[e].mouseoncontainer=!0;var t,i=_R[e].pr_next_key!==undefined?_R[e].pr_next_key:_R[e].pr_processing_key!==undefined?_R[e].pr_processing_key:_R[e].pr_active_key!==undefined?_R[e].pr_active_key:_R[e].pr_next_key;if("none"!==i&&i!==undefined){if((i=_R.gA(_R[e].slides[i],"key"))!==undefined&&_R[e].layers[i])for(t in _R[e].layers[i])_R[e].layers[i][t].className.indexOf("rs-on-sh")>=0&&_R.renderLayerAnimation({layer:jQuery(_R[e].layers[i][t]),frame:"frame_1",mode:"trigger",id:e});for(t in _R[e].layers.static)_R[e].layers.static[t].className.indexOf("rs-on-sh")>=0&&_R.renderLayerAnimation({layer:jQuery(_R[e].layers.static[t]),frame:"frame_1",mode:"trigger",id:e})}}),_R[e].c.on("tp-mouseleft",function(){_R[e].mouseoncontainer=!0;var t,i=_R[e].pr_next_key!==undefined?_R[e].pr_next_key:_R[e].pr_processing_key!==undefined?_R[e].pr_processing_key:_R[e].pr_active_key!==undefined?_R[e].pr_active_key:_R[e].pr_next_key;if("none"!==i&&i!==undefined){if((i=_R.gA(_R[e].slides[i],"key"))!==undefined&&_R[e].layers[i])for(t in _R[e].layers[i])_R[e].layers[i][t].className.indexOf("rs-on-sh")>=0&&_R.renderLayerAnimation({layer:jQuery(_R[e].layers[i][t]),frame:"frame_999",mode:"trigger",id:e});for(t in _R[e].layers.static)_R[e].layers.static[t].className.indexOf("rs-on-sh")>=0&&_R.renderLayerAnimation({layer:jQuery(_R[e].layers.static[t]),frame:"frame_999",mode:"trigger",id:e})}})),_R[e].moduleActionsPrepared=!0},checkActions_intern=function(layer,id){var actions=_R.gA(layer[0],"actions"),_L=layer.data();for(var ei in actions=actions.split("||"),layer.addClass("rs-waction"),_L.events=_L.events===undefined?[]:_L.events,actions)if(actions.hasOwnProperty(ei)){var event=getEventParams(actions[ei].split(";"));_L.events.push(event),_R[id].fullscreen_esclistener||"exitfullscreen"!=event.action&&"togglefullscreen"!=event.action||(_R.document.keyup(function(e){27==e.keyCode&&jQuery("#rs-go-fullscreen").length>0&&layer.trigger(event.on)}),_R[id].fullscreen_esclistener=!0);var targetlayer="backgroundvideo"==event.layer?jQuery("rs-bgvideo"):"firstvideo"==event.layer?jQuery("rs-slide").find(".rs-layer-video"):jQuery("#"+event.layer);switch(-1!=jQuery.inArray(event.action,["toggleslider","toggle_mute_video","toggle_global_mute_video","togglefullscreen"])&&(_L._togglelisteners=!0),event.action){case"togglevideo":jQuery.each(targetlayer,function(){updateToggleByList(jQuery(this),"videotoggledby",layer[0].id)});break;case"togglelayer":jQuery.each(targetlayer,function(){updateToggleByList(jQuery(this),"layertoggledby",layer[0].id),jQuery(this).data("triggered_startstatus",event.togglestate)});break;case"toggle_global_mute_video":case"toggle_mute_video":jQuery.each(targetlayer,function(){updateToggleByList(jQuery(this),"videomutetoggledby",layer[0].id)});break;case"toggleslider":_R[id].slidertoggledby==undefined&&(_R[id].slidertoggledby=[]),_R[id].slidertoggledby.push(layer[0].id);break;case"togglefullscreen":_R[id].fullscreentoggledby==undefined&&(_R[id].fullscreentoggledby=[]),_R[id].fullscreentoggledby.push(layer[0].id)}}_R[id].actionsPrepared=!0,layer.on("click mouseenter mouseleave",function(e){for(var i in _L.events)if(_L.events.hasOwnProperty(i)&&_L.events[i].on===e.type){var event=_L.events[i];if("click"===event.on&&layer.hasClass("tp-temporarydisabled"))return!1;var targetlayer="backgroundvideo"==event.layer?jQuery(_R[id].slides[_R[id].pr_active_key]).find("rs-sbg-wrap rs-bgvideo"):"firstvideo"==event.layer?jQuery(_R[id].slides[_R[id].pr_active_key]).find(".rs-layer-video").first():jQuery("#"+event.layer),tex=targetlayer.length>0;switch(event.action){case"menulink":var linkto=_R.getURLDetails({url:event.url,anchor:event.anchor}),linkfrom=_R.getURLDetails();linkto.host==linkfrom.host&&linkto.path==linkfrom.path&&"_self"===event.target?_R.scrollToId({id:id,offset:event.offset,action:event.action,anchor:event.anchor,hash:linkto.hash,speed:event.speed,ease:event.ease}):"_self"===event.target?window.location=linkto.url+(linkto.anchor!==undefined&&""!==linkto.anchor?"#"+linkto.anchor:""):window.open(linkto.url+(linkto.anchor!==undefined&&""!==linkto.anchor?"#"+linkto.anchor:"")),e.preventDefault();break;case"nextframe":case"prevframe":case"gotoframe":case"togglelayer":case"toggleframes":case"startlayer":case"stoplayer":if(targetlayer[0]===undefined)continue;var _=_R[id]._L[targetlayer[0].id],frame=event.frame,tou="triggerdelay";if("click"===e.type&&_.clicked_time_stamp!==undefined&&(new Date).getTime()-_.clicked_time_stamp<300)return;if("mouseenter"===e.type&&_.mouseentered_time_stamp!==undefined&&(new Date).getTime()-_.mouseentered_time_stamp<300)return;if(clearTimeout(_.triggerdelayIn),clearTimeout(_.triggerdelayOut),clearTimeout(_.triggerdelay),"click"===e.type&&(_.clicked_time_stamp=(new Date).getTime()),"mouseenter"===e.type&&(_.mouseentered_time_stamp=(new Date).getTime()),"mouseleave"===e.type&&(_.mouseentered_time_stamp=undefined),"nextframe"===event.action||"prevframe"===event.action){_.forda=_.forda===undefined?getFordWithAction(_):_.forda;var inx=jQuery.inArray(_.currentframe,_.ford);for("nextframe"===event.action&&inx++,"prevframe"===event.action&&inx--;"skip"!==_.forda[inx]&&inx>0&&inx<_.forda.length-1;)"nextframe"===event.action&&inx++,"prevframe"===event.action&&inx--,inx=Math.min(Math.max(0,inx),_.forda.length-1);frame=_.ford[inx]}jQuery.inArray(event.action,["toggleframes","togglelayer","startlayer","stoplayer"])>=0&&(_.triggeredstate="startlayer"===event.action||"togglelayer"===event.action&&"frame_1"!==_.currentframe||"toggleframes"===event.action&&_.currentframe!==event.frameN,"togglelayer"===event.action&&!0===_.triggeredstate&&_.currentframe!==undefined&&"frame_999"!==_.currentframe&&(_.triggeredstate=!1),frame=_.triggeredstate?"toggleframes"===event.action?event.frameN:"frame_1":"toggleframes"===event.action?event.frameM:"frame_999",tou=_.triggeredstate?"triggerdelayIn":"triggerdelayOut",_.triggeredstate?_R.toggleState(_.layertoggledby):(_R.stopVideo&&_R.stopVideo(targetlayer,id),_R.unToggleState(_.layertoggledby)));var pars={layer:targetlayer,frame:frame,mode:"trigger",id:id};!0===event.children&&(pars.updateChildren=!0,pars.fastforward=!0),_R.renderLayerAnimation&&(clearTimeout(_[tou]),_[tou]=setTimeout(function(e){_R.renderLayerAnimation(e)},1e3*event.delay,pars));break;case"playvideo":tex&&_R.playVideo(targetlayer,id);break;case"stopvideo":tex&&_R.stopVideo&&_R.stopVideo(targetlayer,id);break;case"togglevideo":tex&&(_R.isVideoPlaying(targetlayer,id)?_R.stopVideo&&_R.stopVideo(targetlayer,id):_R.playVideo(targetlayer,id));break;case"mutevideo":tex&&_R.Mute(targetlayer,id,!0);break;case"unmutevideo":tex&&_R.Mute&&_R.Mute(targetlayer,id,!1);break;case"toggle_mute_video":tex&&(_R.Mute(targetlayer,id)?_R.Mute(targetlayer,id,!1):_R.Mute&&_R.Mute(targetlayer,id,!0));break;case"toggle_global_mute_video":var pvl=_R[id].playingvideos!=undefined&&_R[id].playingvideos.length>0;pvl&&(_R[id].globalmute?jQuery.each(_R[id].playingvideos,function(e,t){_R.Mute&&_R.Mute(t,id,!1)}):jQuery.each(_R[id].playingvideos,function(e,t){_R.Mute&&_R.Mute(t,id,!0)})),_R[id].globalmute=!_R[id].globalmute;break;default:tpGS.gsap.delayedCall(event.delay,function(targetlayer,id,event,layer){switch(event.action){case"openmodal":if(event.modalslide=event.modalslide===undefined?0:event.modalslide,window.RS_60_MODALS===undefined||-1==jQuery.inArray(event.modal,window.RS_60_MODALS)){_R.showModalCover(id,event,"show");var data={action:"revslider_ajax_call_front",client_action:"get_slider_html",token:_R[id].ajaxNonce,alias:event.modal,usage:"modal"};jQuery.ajax({type:"post",url:_R[id].ajaxUrl,dataType:"json",data:data,success:function(e,t,i){1==e.success&&(jQuery("body").append(e.data),setTimeout(function(){_R.showModalCover(id,event,"hide"),_R.document.trigger("RS_OPENMODAL_"+event.modal,event.modalslide)},49))},error:function(e){console.log("Modal Can not be Loaded"),console.log(e)}})}else _R.document.trigger("RS_OPENMODAL_"+event.modal,event.modalslide);break;case"closemodal":_R.revModal(id,{mode:"close"});break;case"callback":eval(event.callback);break;case"simplelink":window.open(event.url,event.target);break;case"simulateclick":targetlayer.length>0&&targetlayer.click();break;case"toggleclass":targetlayer.length>0&&targetlayer.toggleClass(event.classname);break;case"scrollbelow":case"scrollto":"scrollbelow"===event.action&&layer.addClass("tp-scrollbelowslider"),_R.scrollToId({id:id,offset:event.offset,action:event.action,anchor:event.id,speed:event.speed,ease:event.ease});break;case"jumptoslide":switch(event.slide.toLowerCase()){case"+1":case"next":case"rs-next":_R[id].sc_indicator="arrow",_R[id].sc_indicator_dir=0,_R.callingNewSlide(id,1,"carousel"===_R[id].sliderType);break;case"rs-previous":case"rs-prev":case"previous":case"prev":case"-1":_R[id].sc_indicator="arrow",_R[id].sc_indicator_dir=1,_R.callingNewSlide(id,-1,"carousel"===_R[id].sliderType);break;case"first":case"rs-first":_R[id].sc_indicator="arrow",_R[id].sc_indicator_dir=1,_R.callingNewSlide(id,0,"carousel"===_R[id].sliderType);break;case"last":case"rs-last":_R[id].sc_indicator="arrow",_R[id].sc_indicator_dir=0,_R.callingNewSlide(id,_R[id].slideamount-1,"carousel"===_R[id].sliderType);break;default:var ts=jQuery.isNumeric(event.slide)?parseInt(event.slide,0):event.slide;_R.callingNewSlide(id,ts,"carousel"===_R[id].sliderType)}break;case"toggleslider":_R[id].noloopanymore=0,"playing"==_R[id].sliderstatus?(_R[id].c.revpause(),_R[id].forcepaused=!0,_R.unToggleState(_R[id].slidertoggledby)):(_R[id].forcepaused=!1,_R[id].c.revresume(),_R.toggleState(_R[id].slidertoggledby));break;case"pauseslider":_R[id].c.revpause(),_R.unToggleState(_R[id].slidertoggledby);break;case"playslider":_R[id].noloopanymore=0,_R[id].c.revresume(),_R.toggleState(_R[id].slidertoggledby);break;case"gofullscreen":case"exitfullscreen":case"togglefullscreen":var gf;jQuery(".rs-go-fullscreen").length>0&&("togglefullscreen"==event.action||"exitfullscreen"==event.action)?(jQuery(".rs-go-fullscreen").removeClass("rs-go-fullscreen"),gf=_R[id].c.closest("rs-fullwidth-wrap").length>0?_R[id].c.closest("rs-fullwidth-wrap"):_R[id].c.closest("rs-module-wrap"),_R[id].minHeight=_R[id].oldminheight,_R[id].infullscreenmode=!1,_R[id].c.revredraw(),_R[id].c.revredraw(),jQuery(window).trigger("resize"),_R.unToggleState(_R[id].fullscreentoggledby)):0!=jQuery(".rs-go-fullscreen").length||"togglefullscreen"!=event.action&&"gofullscreen"!=event.action||(gf=_R[id].c.closest("rs-fullwidth-wrap").length>0?_R[id].c.closest("rs-fullwidth-wrap"):_R[id].c.closest("rs-module-wrap"),gf.addClass("rs-go-fullscreen"),_R[id].oldminheight=_R[id].minHeight,_R[id].minHeight=_R.getWinH(id),_R[id].infullscreenmode=!0,jQuery(window).trigger("resize"),_R.toggleState(_R[id].fullscreentoggledby),_R[id].c.revredraw());break;default:_R[id].c.trigger("layeraction",[event.action,layer,event])}},[targetlayer,id,event,layer])}}})};function getFordWithAction(e){var t=[];for(var i in e.ford)e.frames[e.ford[i]].timeline.waitoncall?t.push(e.ford[i]):t.push("skip");return t}function updateToggleByList(e,t,i){var a=e.data(t);a===undefined&&(a=[]),a.push(i),e.data(t,a)}function getEventParams(e){var t={on:"click",delay:0,ease:"power2.out",speed:400};for(var i in e)if(e.hasOwnProperty(i)){var a=e[i].split(":");switch(a.length>2&&"call"===a[0]&&(a[1]=a.join(":").replace(a[0]+":","")),a[0]){case"modal":t.modal=a[1];break;case"ms":t.modalslide=a[1];break;case"m":t.frameM=a[1];break;case"n":t.frameN=a[1];break;case"o":t.on="click"===a[1]||"c"===a[1]?"click":"ml"===a[1]||"mouseleave"===a[1]?"mouseleave":"mouseenter"===a[1]||"me"===a[1]?"mouseenter":a[1];break;case"d":t.delay=parseInt(a[1],0)/1e3,t.delay="NaN"===t.delay||isNaN(t.delay)?0:t.delay;break;case"a":t.action=a[1];break;case"f":t.frame=a[1];break;case"slide":t.slide=a[1];break;case"layer":t.layer=a[1];break;case"sp":t.speed=parseInt(a[1],0);break;case"e":t.ease=a[1];break;case"ls":t.togglestate=a[1];break;case"offset":t.offset=a[1];break;case"call":t.callback=a[1];break;case"url":t.url="";for(var r=1;r<a.length;r++)t.url+=a[r]+(r===a.length-1?"":":");break;case"target":t.target=a[1];break;case"class":t.classname=a[1];break;case"ch":t.children="true"==a[1]||1==a[1]||"t"==a[1];break;default:a[0].length>0&&""!==a[0]&&(t[a[0]]=a[1])}}return t}var getOffContH=function(e){if(e==undefined)return 0;if(e.split(",").length>1){var t=e.split(","),i=0;return t&&jQuery.each(t,function(e,t){jQuery(t).length>0&&(i+=jQuery(t).outerHeight(!0))}),i}return jQuery(e).height()}}(jQuery),function(e){"use strict";var t=jQuery.fn.revolution;t.is_mobile();jQuery.extend(!0,t,{prepareCarousel:function(e,i,a){if(void 0!==e){var o=t[e].carousel;o.slidepositions=void 0===o.slidepositions?[]:o.slidepositions,o.slideFakePositions=void 0===o.slideFakePositions?[]:o.slideFakePositions,i=o.lastdirection=r(i,o.lastdirection),t.setCarouselDefaults(e),void 0===o.slidepositions[0]&&(o.slideAnims=[],t.organiseCarousel(e,"right",!0,!1,!1),o.focused=0,o.keepFocusedFirst=!0),o.slide_offset=void 0!==o.slide_offset&&jQuery.isNumeric(o.slide_offset)?o.slide_offset:0,o.swipeTo=o.slide_offset+s(e),o.swipeToDistance=Math.abs(o.slide_offset)+Math.abs(s(e)),void 0!==o.swipeTo&&jQuery.isNumeric(o.swipeTo)?void 0!==a?t.swipeAnimate({id:e,to:o.swipeTo,distance:o.swipeToDistance,direction:i,fix:!0,speed:a}):t.swipeAnimate({id:e,to:o.swipeTo,distance:o.swipeToDistance,direction:i,fix:!0}):t.swipeAnimate({id:e,to:0,direction:i,speed:0}),o.carouselInitialised=!0}},carouselToEvalPosition:function(e,a,o){var s=t[e].carousel;if(s.justify)s.focused=void 0===s.focused?0:s.focused,s.slidepositions[s.focused]=void 0===s.slidepositions[s.focused]?0:s.slidepositions[s.focused],s.slide_offset_target=i(e,s.focused);else{a=s.lastdirection=r(a,s.lastdirection);var n="center"===s.horizontal_align?(s.wrapwidth/2-s.slide_width/2-s.slide_offset)/s.slide_width:(0-s.slide_offset)/s.slide_width,l=n%t[e].slideamount,d=l-Math.floor(l),c=-1*(Math.ceil(l)-l),p=-1*(Math.floor(l)-l),g=d*s.slide_width,u=g>=20&&"left"===a?1:g>=s.slide_width-20&&"right"===a?2:g<20&&"left"===a?3:g<s.slide_width-20&&"right"===a?4:5,h=1===u||2===u?c:3===u||4===u?p:0;s.slide_offset_target=(s.infinity?h:l<0?l:n>t[e].slideamount-1?n-(t[e].slideamount-1):h)*s.slide_width}return s.slide_offset_target!==s.slide_offset_targetCACHE&&!0!==o&&(0!==Math.abs(s.slide_offset_target)?t.animateCarousel(e,a,!0):t.organiseCarousel(e,a),s.slide_offset_targetCACHE=s.slide_offset_target),s.slide_offset_target},loadVisibleCarouselItems:function(e,i){var a=[];t[e].carousel.focused=parseInt(t[e].carousel.focused,0),t[e].carousel.focused=jQuery.isNumeric(t[e].carousel.focused)?t[e].carousel.focused:0;for(var r=0;r<Math.ceil(t[e].carousel.maxVisibleItems/2);r++){var o="right"===t[e].carousel.horizontal_align?t[e].carousel.focused-r:t[e].carousel.focused+r,s="center"===t[e].carousel.horizontal_align?t[e].carousel.focused-r:"left"===t[e].carousel.horizontal_align?t[e].carousel.maxVisibleItems+o-1:o-t[e].carousel.maxVisibleItems+1;o=o>=t[e].slideamount?o-t[e].slideamount+0:o,s=s>=t[e].slideamount?s-t[e].slideamount+0:s,o=o<0?t[e].slideamount+o:o,s=s<0?t[e].slideamount+s:s,a.push(t[e].slides[o]),o!==s&&a.push(t[e].slides[s])}return i&&(t.loadImages(a,e,1),t.waitForCurrentImages(a,e)),a},organiseCarousel:function(e,i,a,r,o){Math.round(1e5*Math.random());var s=t[e].carousel,n="center"===s.horizontal_align?2:1,l=Math.ceil(s.maxVisibleItems/n),d="center"===s.horizontal_align?s.wrapwidth/2+s.maxwidth/2:s.maxwidth-s.slide_width,c="center"===s.horizontal_align?s.wrapwidth/2-s.maxwidth/2:0-s.slide_width,p=0,g=0,u=0;if(i=s.slide_offset<s.cached_slide_offset?"left":"right",s.cached_slide_offset=s.slide_offset,!0!==s.justify&&"center"===s.horizontal_align){var h=2*(s.windhalf-s.wrapoffset)+s.slide_width;h>=s.maxwidth&&("left"===i&&(d=2*s.windhalf,c=0-(s.slide_width-(h-s.maxwidth))),"right"===i&&(d=2*s.windhalf-(h-s.maxwidth),c=0-s.slide_width))}for(var m=2*s.windhalf,f=0,v=-1,y=0;y<s.len;y++)!0===s.justify?(p+=y>0?s.slide_widths[y-1]+s.space:s.slide_offset,s.wrapwidth>=s.maxwidth&&"center"!==s.horizontal_align&&(s.slideFakePositions[y]=p-s.slide_offset),c=0-s.slide_widths[y],d=s.maxwidth-s.slide_widths[y],s.inneroffset=0):(p=y*s.slide_width+s.slide_offset,s.wrapwidth>=s.maxwidth&&"left"===s.horizontal_align&&(s.slideFakePositions[y]=y*s.slide_width),s.wrapwidth>=s.maxwidth&&"right"===s.horizontal_align&&(s.slideFakePositions[y]=s.wrapwidth-(y+1)*s.slide_width)),u=g=p,s.infinity&&(g=g>=d-s.inneroffset?g-s.maxwidth:g<=c-s.inneroffset?g+s.maxwidth:g),m>g&&(m=g,y),f<g&&(f=g,v=y),s.slidepositions[y]=u>s.maxwidth+d?g-s.maxwidth:u<c-s.maxwidth?g+s.maxwidth:g;s.infinity&&m>0&&f>s.wrapwidth&&(s.slidepositions[v]-=s.maxwidth);var b=999,_=0,w=(t[e].width,!1),x="right"===s.horizontal_align?0:s.wrapwidth;if(t[e].slides)for(y=0;y<t[e].slides.length;y++){var k={left:(g=s.slidepositions[y])+s.inneroffset,width:!0===s.justify?s.slide_widths[y]:s.slide_width,x:0},S=0;if(void 0===s.slideAnims[y]&&(k.transformOrigin="50% "+s.vertical_align,k.scale=1,k.force3D=!0,k.transformStyle="3D"!=t[e].parallax.type&&"3d"!=t[e].parallax.type?"flat":"preserve-3d"),s.justify)k.autoAlpha=1,s.wrapwidth>=s.maxwidth&&"center"!==s.horizontal_align||("center"===s.horizontal_align&&s.slidepositions[y]<s.windhalf&&s.slidepositions[y]+s.slide_widths[y]>s.windhalf?s.focused=y:"left"===s.horizontal_align&&s.slidepositions[y]>=-25&&s.slidepositions[y]<s.windhalf&&(!w||s.slidepositions[y]<x)?(s.focused=y,w=!0,x=s.slidepositions[y]):"right"===s.horizontal_align&&s.slidepositions[y]+s.slide_widths[y]<=s.wrapwidth+25&&(s.slide_widths[y]<s.windhalf&&s.slidepositions[y]>s.windhalf||s.slidepositions[y]>s.wrapwidth-s.slide_widths[y])&&(!w||s.slidepositions[y]>x)&&(s.focused=y,w=!0,x=s.slidepositions[y]),s.focused=s.focused>=s.len?s.infinity?0:s.len-1:s.focused<0?s.infinity?s.len-1:0:s.focused);else{S="center"===s.horizontal_align?(Math.abs(s.wrapwidth/2)-(k.left+s.slide_width/2))/s.slide_width:(s.inneroffset-k.left)/s.slide_width,(Math.abs(S)<b||0===S)&&(b=Math.abs(S),s.focused=y),void 0!==s.minScale&&s.minScale>0&&(s.vary_scale?k.scale=1-Math.abs((1-s.minScale)/l*S):k.scale=S>=1||S<=-1?s.minScale:s.minScale+(1-s.minScale)*(1-Math.abs(S)),_=S*(k.width-k.width*k.scale)/2),s.fadeout&&(s.vary_fade?k.autoAlpha=1-Math.abs(s.maxOpacity/l*S):k.autoAlpha=S>=1||S<=-1?s.maxOpacity:s.maxOpacity+(1-s.maxOpacity)*(1-Math.abs(S)));var L=Math.ceil(s.maxVisibleItems/n)-Math.abs(S);k.autoAlpha=void 0===k.autoAlpha?1:k.autoAlpha,k.autoAlpha=Math.max(0,Math.min(L,k.autoAlpha)),void 0!==s.maxRotation&&0!=Math.abs(s.maxRotation)&&(s.vary_rotation?(k.rotationY=Math.abs(s.maxRotation)-Math.abs((1-Math.abs(1/l*S))*s.maxRotation),k.autoAlpha=Math.abs(k.rotationY)>90?0:k.autoAlpha):k.rotationY=S>=1||S<=-1?s.maxRotation:Math.abs(S)*s.maxRotation,k.rotationY=S<0?-1*k.rotationY:k.rotationY,t.isSafari11()&&(k.z=0!==S?0-Math.abs(k.rotationY):0)),k.x=Math.floor(-1*s.space*S*(s.offsetScale?k.scale:1)),void 0!==k.scale&&(k.x=k.x+_)}k.x+=s.wrapwidth>=s.maxwidth&&("left"===s.horizontal_align||"right"===s.horizontal_align)?s.slideFakePositions[y]:Math.floor(k.left),delete k.left,k.zIndex=s.justify?95:Math.round(100-Math.abs(5*S)),!0!==o&&(void 0!==s.slideAnims[y]&&(k.width===s.slideAnims[y].width&&delete k.width,k.x===s.slideAnims[y].x&&delete k.x,k.autoAlpha===s.slideAnims[y].autoAlpha&&delete k.autoAlpha,k.scale===s.slideAnims[y].scale&&delete k.scale,k.zIndex===s.slideAnims[y].zIndex&&delete k.zIndex,k.rotationY===s.slideAnims[y].rotationY&&delete k.rotationY),tpGS.gsap.set(t[e].slides[y],k),s.slideAnims[y]=jQuery.extend(!0,s.slideAnims[y],k))}r&&!0!==o&&(s.focused=void 0===s.focused?0:s.focused,s.oldfocused=void 0===s.oldfocused?0:s.oldfocused,t[e].pr_next_key=s.focused,s.focused!==s.oldfocused&&t.animateTheLayers&&(t.removeTheLayers(jQuery(t[e].slides[s.oldfocused]),e),t.animateTheLayers({slide:s.focused,id:e,mode:"start"}),t.loadVisibleCarouselItems(e,!0)),s.oldfocused=s.focused,t[e].c.trigger("revolution.nextslide.waiting"))},swipeAnimate:function(e){var i=t[e.id].carousel,r={from:i.slide_offset,to:e.to},o=void 0===e.speed?.5:e.speed;if(i.distance=void 0!==e.distance?e.distance:e.to,void 0!==i.positionanim&&i.positionanim.pause(),e.fix){if(!1!==i.snap){var s=i.slide_offset,n="end"===e.phase?i.focusedBeforeSwipe:i.focused;i.slide_offset=e.to,t.organiseCarousel(e.id,e.direction,!0,!1,!1),Math.abs(i.swipeDistance)>40&&n==i.focused&&(i.focused="right"===e.direction?i.focused-1:i.focused+1,i.focused=i.focused>=i.len?i.infinity?0:i.len-1:i.focused<0?i.infinity?i.len-1:0:i.focused),r.to+=t.carouselToEvalPosition(e.id,e.direction,!0),i.slide_offset=s,t.organiseCarousel(e.id,e.direction,!0,!1,!1),i.keepFocusedFirst&&(i.keepFocusedFirst=!1,i.focused=0)}else!0!==i.infinity?(r.to>0&&(r.to=0),r.to<i.wrapwidth-i.maxwidth&&(r.to=i.wrapwidth-i.maxwidth)):"end"===e.phase?i.dragModeJustEnded=!0:!0!==i.dragModeJustEnded?r.to+=t.carouselToEvalPosition(e.id,e.direction,!0):i.dragModeJustEnded=!1;0!==(o=i.speed/1e3*a(Math.abs(Math.abs(r.from)-Math.abs(i.distance))/i.wrapwidth))&&o<.1&&Math.abs(r.to)>25&&(o=.3)}i.swipeDistance=0,o=!0!==i.firstSwipedDone?0:o,i.firstSwipedDone=!0,i.positionanim=tpGS.gsap.to(r,o,{from:r.to,onUpdate:function(){i.slide_offset=r.from%i.maxwidth,t.organiseCarousel(e.id,e.direction,!0!==e.fix,!0!==e.fix),i.slide_offset=r.from},onComplete:function(){i.slide_offset=r.from%i.maxwidth,"carousel"!==t[e.id].sliderType||i.fadein||(tpGS.gsap.to(t[e.id].canvas,1,{scale:1,opacity:1}),i.fadein=!0),i.lastNotSimplifedSlideOffset=i.slide_offset,i.justDragged=!1,e.fix&&(i.focusedAfterAnimation=i.focused,e.newSlide&&i.focusedBeforeSwipe!==i.focused&&t.callingNewSlide(e.id,jQuery(t[e.id].slides[i.focused]).data("key"),!0),t.organiseCarousel(e.id,e.direction,!0,!0),t[e.id].c.trigger("revolution.slide.carouselchange",{slider:e.id,slideIndex:parseInt(t[e.id].pr_active_key,0)+1,slideLIIndex:t[e.id].pr_active_key,slide:t[e.id].pr_next_slide,currentslide:t[e.id].pr_next_slide,prevSlideIndex:void 0!==t[e.id].pr_lastshown_key&&parseInt(t[e.id].pr_lastshown_key,0)+1,prevSlideLIIndex:void 0!==t[e.id].pr_lastshown_key&&parseInt(t[e.id].pr_lastshown_key,0),prevSlide:void 0!==t[e.id].pr_lastshown_key&&t[e.id].slides[t[e.id].pr_lastshown_key]}))},ease:e.easing?e.easing:i.easing})},defineCarouselElements:function(e){var i=t[e].carousel;i.infbackup=i.infinity,i.maxVisiblebackup=i.maxVisibleItems,i.slide_offset="none",i.slide_offset=0,i.cached_slide_offset=0,i.wrap=jQuery(t[e].canvas[0].parentNode),0!==i.maxRotation&&("3D"!==t[e].parallax.type&&"3d"!==t[e].parallax.type||tpGS.gsap.set(i.wrap,{perspective:"1600px",transformStyle:"preserve-3d"}))},setCarouselDefaults:function(e,i){var a,r,o=t[e].carousel;if(!0!==o.carouselDefaultsCalled&&(t.callContWidthManager(e),t.setSize(e,void 0,"setCarouselDefaults"),t.updateDimensions(e,"setCarouselDefaults"),o.carouselDefaultsCalled=!0),void 0===t[e].navOutterOffsets&&(t[e].navOutterOffsets=t.getHorizontalOffset(t[e].c,"all")),!0!==i&&(a=t[e].navOutterOffsets.left,r=t[e].navOutterOffsets.right),o.slide_width=!0!==o.stretch?t[e].gridwidth[t[e].level]*(0===t[e].bw?1:t[e].bw):t[e].conw,o.slide_height=!0!==o.stretch?t[e].gridheight[t[e].level]*(0===t[e].bw?1:t[e].bw):t[e].conh,o.ratio=o.slide_width/o.slide_height,o.len=t[e].slides.length,o.maxwidth=t[e].slideamount*o.slide_width,1!=o.justify&&o.maxVisiblebackup>o.len&&(o.maxVisibleItems=o.len%2?o.len:o.len+1),o.wrapwidth=o.maxVisibleItems*o.slide_width+(o.maxVisibleItems-1)*o.space,o.wrapwidth="auto"!=t[e].sliderLayout?o.wrapwidth>t[e].conw?t[e].conw:o.wrapwidth:o.wrapwidth>t[e].width?t[e].width:o.wrapwidth,!0===o.justify){o.slide_height=t[e].gridheight[t[e].level],o.slide_widths=[],o.slide_widthsCache=void 0===o.slide_widthsCache?[]:o.slide_widthsCache,o.maxwidth=0;for(var s=0;s<o.len;s++)if(t[e].slides.hasOwnProperty(s)){var n=t.gA(t[e].slides[s],"iratio");n=void 0===n||0===n||null===n?o.ratio:n,o.slide_widths[s]=Math.round(o.slide_height*n),!1!==o.justifyMaxWidth&&(o.slide_widths[s]=Math.min(o.wrapwidth,o.slide_widths[s])),o.slide_widths[s]!==o.slide_widthsCache[s]&&(o.slide_widthsCache[s]=o.slide_widths[s],!0!==i&&tpGS.gsap.set(t[e].slides[s],{width:o.slide_widths[s]})),o.maxwidth+=o.slide_widths[s]+o.space}}if(o.infinity=!(o.wrapwidth>=o.maxwidth)&&o.infbackup,!0!==o.quickmode){o.wrapoffset="center"===o.horizontal_align?(t[e].conw-r-a-o.wrapwidth)/2:0,o.wrapoffset="auto"!=t[e].sliderLayout&&t[e].outernav?0:o.wrapoffset<a?a:o.wrapoffset;var l="3D"==t[e].parallax.type||"3d"==t[e].parallax.type?"visible":"hidden",d="right"===o.horizontal_align?{left:"auto",right:o.wrapoffset+"px",width:o.wrapwidth,overflow:l}:"left"===o.horizontal_align||o.wrapwidth<t.winW?{right:"auto",left:o.wrapoffset+"px",width:o.wrapwidth,overflow:l}:{right:"auto",left:"auto",width:"100%",overflow:l};void 0!==o.cacheWrapObj&&d.left===o.cacheWrapObj.left&&d.right===o.cacheWrapObj.right&&d.width===o.cacheWrapObj.width||(window.requestAnimationFrame(function(){tpGS.gsap.set(o.wrap,d),t[e].carousel.wrapoffset>0&&tpGS.gsap.set(t[e].canvas,{left:0})}),o.cacheWrapObj=jQuery.extend(!0,{},d)),o.inneroffset="right"===o.horizontal_align?o.wrapwidth-o.slide_width:0,o.windhalf="auto"===t[e].sliderLayout?t[e].width/2:t.winW/2}}});var i=function(e,i){var a=t[e].carousel;return"center"===a.horizontal_align?a.windhalf-a.slide_widths[i]/2-a.slidepositions[i]:"left"===a.horizontal_align?0-a.slidepositions[i]:a.wrapwidth-a.slide_widths[i]-a.slidepositions[i]},a=function(e){return e<1?Math.sqrt(1-(e-=1)*e):Math.sqrt(e)},r=function(e,t){return null===e||jQuery.isEmptyObject(e)?t:void 0===e?"right":e},o=function(e,t){return Math.abs(e)>Math.abs(t)?e>0?e-Math.abs(Math.floor(e/t)*t):e+Math.abs(Math.floor(e/t)*t):e},s=function(e){var i,a,r,s,n,l=0,d=t[e].carousel;if(void 0!==d.positionanim&&d.positionanim.pause(),d.justify)"center"===d.horizontal_align?l=d.windhalf-d.slide_widths[d.focused]/2-d.slidepositions[d.focused]:"left"===d.horizontal_align?l=0-d.slidepositions[d.focused]:"right"===d.horizontal_align&&(l=d.wrapwidth-d.slide_widths[d.focused]-d.slidepositions[d.focused]),l=l>d.maxwidth/2?d.maxwidth-l:l<0-d.maxwidth/2?l+d.maxwidth:l;else{var c=t[e].pr_processing_key>=0?t[e].pr_processing_key:t[e].pr_active_key>=0?t[e].pr_active_key:0,p=("center"===d.horizontal_align?(d.wrapwidth/2-d.slide_width/2-d.slide_offset)/d.slide_width:(0-d.slide_offset)/d.slide_width)%t[e].slideamount;l=(d.infinity?(i=p,a=c,r=t[e].slideamount,n=a-r-i,s=o(s=a-i,r),n=o(n,r),-(Math.abs(s)>Math.abs(n)?n:s)):p-c)*d.slide_width}return!1===d.snap&&d.justDragged&&(l=0),d.justDragged=!1,l}}(jQuery),function(e){"use strict";var t=["chars","words","lines"],i=["Top","Right","Bottom","Left"],a=["TopLeft","TopRight","BottomRight","BottomLeft"],r=["top","right","bottom","left"],o=jQuery.fn.revolution,s=o.is_mobile();o.is_android();jQuery.extend(!0,o,{checkLayerDimensions:function(e){var t=!1;for(var i in o[e.id].layers[e.skey])if(o[e.id].layers[e.skey].hasOwnProperty(i)){var a=o[e.id].layers[e.skey][i],r=o[e.id]._L[a.id];r.eow!==a.offsetWidth&&"true"!==o.gA(a,"vary-layer-dims")&&(t=!0),r.lastknownwidth=r.eow,r.lastknownheight=r.eoh,r._slidelink||o[e.id].caches.calcResponsiveLayersList.push({a:o[e.id]._L[a.id].c,b:e.id,c:0,d:r.rsp_bd,e:e.slideIndex})}return t},requestLayerUpdates:function(e,t,i,a){var r;if(void 0!==i)r=i,o[e]._L[r].pVisRequest!==o[e]._L[r].pVisStatus&&(void 0===o[e]._L[r]._ligid||!0!==o[e]._L[o[e]._L[r]._ligid].childrenAtStartNotVisible?(o[e]._L[r].pVisStatus=o[e]._L[r].pVisRequest,0===o[e]._L[r].pVisStatus?o[e]._L[r].p[0].classList.add("rs-forcehidden"):o[e]._L[r].p[0].classList.remove("rs-forcehidden")):o[e]._L[r].p[0].classList.add("rs-forcehidden")),o[e]._L[r].pPointerStatus!==o[e]._L[r].pPeventsRequest&&(o[e]._L[r].pPointerStatus=o[e]._L[r].pPeventsRequest,tpGS.gsap.set(o[e]._L[r].p[0],{pointerEvents:o[e]._L[r].pPointerStatus,visibility:o[e]._L[r].pVisStatus})),void 0!==a&&"ignore"!==a&&0!==a&&(a++,"enterstage"===t||"leavestage"===t||"framestarted"===t?o.isFirefox(e)?-1===o[e]._L[r].p[0].style.transform.indexOf("perspective")&&(o[e]._L[r].p[0].style.transform+=(0===o[e]._L[r].p[0].style.transform.length?" ":"")+"perspective("+a+"px)"):(!window.isSafari11&&0===o[e]._L[r].p[0].style.perspective.length||"none"==o[e]._L[r].p[0].style.perspective)&&(o[e]._L[r].p[0].style.perspective=a+"px"):"frameended"===t&&(o.isFirefox(e)?o[e]._L[r].p[0].style.transform=o[e]._L[r].p[0].style.transform.replace("perspective("+a+"px)",""):window.isSafari11||(o[e]._L[r].p[0].style.perspective=o[e]._L[r].p[0].style.perspective.replace(a-1+"px",""))));else for(r in o[e]._L)o[e]._L.hasOwnProperty(r)&&(o[e]._L[r].pVisRequest!==o[e]._L[r].pVisStatus&&(o[e]._L[r].pVisStatus=o[e]._L[r].pVisRequest,0===o[e]._L[r].pVisStatus?o[e]._L[r].p[0].classList.add("rs-forcehidden"):o[e]._L[r].p[0].classList.remove("rs-forcehidden")),o[e]._L[r].pPointerStatus!==o[e]._L[r].pPeventsRequest&&(o[e]._L[r].pPointerStatus=o[e]._L[r].pPeventsRequest,tpGS.gsap.set(o[e]._L[r].p[0],{pointerEvents:o[e]._L[r].pPointerStatus,visibility:o[e]._L[r].pVisStatus})));if("enterstage"===t){var s=o[e].pr_processing_key||o[e].pr_active_key||0;if(o[e].middleZones&&o[e].middleZones.length>0&&void 0!==o[e].middleZones[s])for(r=0;r<o[e].middleZones[s].length;r++)tpGS.gsap.set(o[e].middleZones[s][r],{y:Math.round(o[e].height/2-o[e].middleZones[s][r].offsetHeight/2)+"px"});if(o[e].smiddleZones&&o[e].smiddleZones.length>0)for(r=0;r<o[e].smiddleZones.length;r++)tpGS.gsap.set(o[e].smiddleZones[r],{y:Math.round(o[e].height/2-o[e].smiddleZones[r].offsetHeight/2)+"px"});void 0!==i&&void 0!==o[e]._L[i].esginside&&o[e]._L[i].esginside.length>0&&void 0!==o[e]._L[i].esginside.esredraw&&o[e]._L[i].esginside.esredraw()}},initLayer:function(e){var t,i,a,r=e.id,s=e.skey;for(var n in o[r].layers[e.skey])if(o[r].layers[e.skey].hasOwnProperty(n)){var l=o[r].layers[e.skey][n],d=jQuery(l),c=o.gA(l,"initialised"),p=c?o[r]._L[l.id]:d.data();"individual"===e.skey&&(p.slideKey=void 0===p.slideKey?o.gA(d.closest("rs-slide")[0],"key"):p.slideKey,p.slideIndex=void 0===p.slideIndex?o.getSlideIndex(r,p.slideKey):p.slideIndex,e.slideIndex=p.slideIndex,s=p.slideKey);var g="carousel"===o[r].sliderType?0:o[r].width/2-o.iWA(r,e.slideIndex)*o[r].bw/2,u=0;if(void 0===c){if(o.revCheckIDS(r,l),o[r]._L[l.id]=p,p.ford=void 0===p.ford?"frame_0;frame_1;frame_999":p.ford,p.ford=";"==p.ford[p.ford.length-1]?p.ford.substring(0,p.ford.length-1):p.ford,p.ford=p.ford.split(";"),void 0!==p.clip)for(t in p.clipPath={use:!1,origin:"l",type:"rectangle"},p.clip=p.clip.split(";"),p.clip)p.clip.hasOwnProperty(t)&&("u"==(i=p.clip[t].split(":"))[0]&&(p.clipPath.use="true"==i[1]),"o"==i[0]&&(p.clipPath.origin=i[1]),"t"==i[0]&&(p.clipPath.type=i[1]));if(p.frames=k(p,r),p.caches={},p.OBJUPD={},p.c=d,p.p=d.closest(".rs-parallax-wrap"),p.lp=d.closest("rs-loop-wrap"),p.m=d.closest("rs-mask-wrap"),p.triggercache=void 0===p.triggercache?"reset":p.triggercache,p.rsp_bd=void 0===p.rsp_bd?"column"===p.type||"row"===p.type?"off":"on":p.rsp_bd,p.rsp_o=void 0===p.rsp_o?"on":p.rsp_o,p.basealign=void 0===p.basealign?"grid":p.basealign,p.group="group"!==p.type&&d.closest("rs-group-wrap").length>0?"group":"column"!==p.type&&d.closest("rs-column").length>0?"column":"row"!==p.type&&d.closest("rs-row").length>0?"row":void 0,p._lig="group"===p.group?d.closest("rs-group"):"column"===p.group?d.closest("rs-column"):"row"===p.group?d.closest("rs-row"):void 0,p._ligid=void 0!==p._lig?p._lig[0].id:void 0,p._column="RS-COLUMN"===d[0].tagName?d.closest("rs-column-wrap"):"none",p._row="RS-COLUMN"===d[0].tagName&&d.closest("rs-row"),p._ingroup="group"===p.group,p._incolumn="column"===p.group,p._inrow="row"===p.group,(p._ingroup||p._incolumn)&&p._lig[0].className.indexOf("rs-sba")>=0&&(!1!==p.animationonscroll||void 0===p.frames.loop)&&!0!==p.animOnScrollForceDisable&&(p.animationonscroll=!0,d[0].className+=" rs-sba",o[r].sbas[s][l.id]=d[0]),p.animOnScrollRepeats=0,p._isgroup="RS-GROUP"===d[0].tagName,p.type=p.type||"none","row"===p.type&&void 0===p.cbreak&&(p.cbreak=2),p.esginside=jQuery(d.find(".esg-grid")),p._isnotext=-1!==jQuery.inArray(p.type,["video","image","audio","shape","row","group"]),p._mediatag="html5"==p.audio?"audio":"video",p.img=d.find("img"),p.deepiframe=d[0].getElementsByTagName("iframe"),p.deepmedia=d[0].getElementsByTagName(p._mediatag),p.layertype="image"===p.type?"image":d[0].className.indexOf("rs-layer-video")>=0||d[0].className.indexOf("rs-layer-audio")>=0||p.deepiframe.length>0&&(p.deepiframe[0].src.toLowerCase().indexOf("youtube")>0||p.deepiframe[0].src.toLowerCase().indexOf("vimeo")>0)||p.deepmedia.length>0?"video":"html",p.deepiframe.length>0&&o.sA(p.deepiframe[0],"layertype",p.layertype),"column"===p.type&&(p.cbg=p.p.find("rs-column-bg"),p.cbgmask=p.p.find("rs-cbg-mask-wrap")),p._slidelink=d[0].className.indexOf("slidelink")>=0,p._isstatic=d[0].className.indexOf("rs-layer-static")>=0,p.slidekey=p._isstatic?"staticlayers":s,p._togglelisteners=d.find(".rs-toggled-content").length>0,p.bgcol=void 0===p.bgcol?d[0].style.background.indexOf("gradient")>=0?d[0].style.background:d[0].style.backgroundColor:p.bgcol,p.bgcol=""===p.bgcol?"rgba(0, 0, 0, 0)":p.bgcol,p.bgcol=0===p.bgcol.indexOf("rgba(0, 0, 0, 0)")&&p.bgcol.length>18?p.bgcol.replace("rgba(0, 0, 0, 0)",""):p.bgcol,p.zindex=d[0].style.zIndex,p._isgroup&&(p.frames.frame_1.timeline.waitoncall&&(p.childrenAtStartNotVisible=!0),p.pVisRequest=0),p._togglelisteners&&d.click(function(){o.swaptoggleState([this.id])}),void 0!==p.border)for(t in p.border=p.border.split(";"),p.bordercolor="transparent",p.border)if(p.border.hasOwnProperty(t))switch((i=p.border[t].split(":"))[0]){case"boc":p.bordercolor=i[1];break;case"bow":p.borderwidth=o.revToResp(i[1],4,0);break;case"bos":p.borderstyle=o.revToResp(i[1],4,0);break;case"bor":p.borderradius=o.revToResp(i[1],4,0)}if("svg"===p.type&&(p.svg=d.find("svg"),p.svgPath=p.svg.find("path"),p.svgI=f(p.svgi,r),p.svgH=f(p.svgh,r)),void 0!==p.btrans){var h=p.btrans;for(t in p.btrans={rX:0,rY:0,rZ:0,o:1},h=h.split(";"))if(h.hasOwnProperty(t))switch((i=h[t].split(":"))[0]){case"rX":p.btrans.rX=i[1];break;case"rY":p.btrans.rY=i[1];break;case"rZ":p.btrans.rZ=i[1];break;case"o":p.btrans.o=i[1]}}if(void 0!==p.tsh)for(t in p.tshadow={c:"rgba(0,0,0,0.25)",v:0,h:0,b:0},p.tsh=p.tsh.split(";"),p.tsh)if(p.tsh.hasOwnProperty(t))switch((i=p.tsh[t].split(":"))[0]){case"c":p.tshadow.c=i[1];break;case"h":p.tshadow.h=i[1];break;case"v":p.tshadow.v=i[1];break;case"b":p.tshadow.b=i[1]}if(void 0!==p.tst)for(t in p.tstroke={c:"rgba(0,0,0,0.25)",w:1},p.tst=p.tst.split(";"),p.tst)if(p.tst.hasOwnProperty(t))switch((i=p.tst[t].split(":"))[0]){case"c":p.tstroke.c=i[1];break;case"w":p.tstroke.w=i[1]}if(void 0!==p.bsh)for(t in p.bshadow={e:"c",c:"rgba(0,0,0,0.25)",v:0,h:0,b:0,s:0},p.bsh=p.bsh.split(";"),p.bsh)if(p.bsh.hasOwnProperty(t))switch((i=p.bsh[t].split(":"))[0]){case"c":p.bshadow.c=i[1];break;case"h":p.bshadow.h=i[1];break;case"v":p.bshadow.v=i[1];break;case"b":p.bshadow.b=i[1];break;case"s":p.bshadow.s=i[1];break;case"e":p.bshadow.e=i[1]}if(void 0!==p.dim)for(t in p.dim=p.dim.split(";"),p.dim)if(p.dim.hasOwnProperty(t))switch((i=p.dim[t].split(":"))[0]){case"w":p.width=i[1];break;case"h":p.height=i[1];break;case"maxw":p.maxwidth=i[1];break;case"maxh":p.maxheight=i[1];break;case"minw":p.minwidth=i[1];break;case"minh":p.minheight=i[1]}if(void 0!==p.xy)for(t in p.xy=p.xy.split(";"),p.xy)if(p.xy.hasOwnProperty(t))switch((i=p.xy[t].split(":"))[0]){case"x":p.x=i[1].replace("px","");break;case"y":p.y=i[1].replace("px","");break;case"xo":p.hoffset=i[1].replace("px","");break;case"yo":p.voffset=i[1].replace("px","")}if(!p._isnotext&&void 0!==p.text)for(t in p.text=p.text.split(";"),p.text)if(p.text.hasOwnProperty(t))switch((i=p.text[t].split(":"))[0]){case"w":p.whitespace=i[1];break;case"td":p.textDecoration=i[1];break;case"c":p.clear=i[1];break;case"f":p.float=i[1];break;case"s":p.fontsize=i[1];break;case"l":p.lineheight=i[1];break;case"ls":p.letterspacing=i[1];break;case"fw":p.fontweight=i[1];break;case"a":p.textalign=i[1]}if("column"===p.type&&void 0!==p.textDecoration&&delete p.textDecoration,void 0!==p.flcr)for(t in p.flcr=p.flcr.split(";"),p.flcr)if(p.flcr.hasOwnProperty(t))switch((i=p.flcr[t].split(":"))[0]){case"c":p.clear=i[1];break;case"f":p.float=i[1]}if(void 0!==p.padding)for(t in p.padding=p.padding.split(";"),p.padding)if(p.padding.hasOwnProperty(t))switch((i=p.padding[t].split(":"))[0]){case"t":p.paddingtop=i[1];break;case"b":p.paddingbottom=i[1];break;case"l":p.paddingleft=i[1];break;case"r":p.paddingright=i[1]}if(void 0!==p.margin)for(t in p.margin=p.margin.split(";"),p.margin)if(p.margin.hasOwnProperty(t))switch((i=p.margin[t].split(":"))[0]){case"t":p.margintop=i[1];break;case"b":p.marginbottom=i[1];break;case"l":p.marginleft=i[1];break;case"r":p.marginright=i[1]}if(void 0!==p.spike&&(p.spike=C(p.spike)),void 0!==p.corners)for(t in a=p.corners.split(";"),p.corners={},a)a.hasOwnProperty(t)&&a[t].length>0&&(p.corners[a[t]]=jQuery("<"+a[t]+"></"+a[t]+">"),p.c.append(p.corners[a[t]]));p.textalign=v(p.textalign),p.vbility=o.revToResp(p.vbility,o[r].rle,!0),p.hoffset=o.revToResp(p.hoffset,o[r].rle,0),p.voffset=o.revToResp(p.voffset,o[r].rle,0),p.x=o.revToResp(p.x,o[r].rle,"l"),p.y=o.revToResp(p.y,o[r].rle,"t"),O(d,0,r),o.sA(l,"initialised",!0),o[r].c.trigger("layerinitialised",{layer:d[0].id,slider:r})}var m="grid"===p.basealign?o[r].width:"carousel"!==o[r].sliderType||p._isstatic?o[r].width:o[r].carousel.slide_width,y=o[r].useFullScreenHeight?o[r].height:"grid"===p.basealign?o[r].height:("carousel"!==o[r].sliderType||p._isstatic,o[r].height),b=p.x[o[r].level],_=p.y[o[r].level];if(u="slide"===p.basealign?0:Math.max(0,"fullscreen"==o[r].sliderLayout?y/2-o.iHE(r)*(o[r].keepBPHeight?1:o[r].bh)/2:o[r].autoHeight||null!=o[r].minHeight&&o[r].minHeight>0?o[r].conh/2-o.iHE(r)*o[r].bh/2:u),g="slide"===p.basealign?0:Math.max(0,g),"slide"!==p.basealign&&"carousel"===o[r].sliderType&&p._isstatic&&void 0!==o[r].carousel&&void 0!==o[r].carousel.horizontal_align&&(g=Math.max(0,"center"===o[r].carousel.horizontal_align?0+(o[r].width-o.iWA(r,"static")*o[r].bw)/2:"right"===o[r].carousel.horizontal_align?o[r].width-o[r].gridwidth[o[r].level]*o[r].bw:g)),"updateposition"!==e.mode){if(0==p.vbility[o[r].levelForced]||"f"==p.vbility[o[r].levelForced]||m<o[r].hideLayerAtLimit&&"on"==p.layeronlimit||m<o[r].hideAllLayerAtLimit?(!0!==p.layerIsHidden&&p.p[0].classList.add("rs-layer-hidden"),p.layerIsHidden=!0):(p.layerIsHidden&&p.p[0].classList.remove("rs-layer-hidden"),p.layerIsHidden=!1),p.poster=null==p.poster&&void 0!==p.thumbimage?p.thumbimage:p.poster,"image"===p.layertype)if(p.imgOBJ={},"cover-proportional"===p.img.data("c")){o.sA(p.img[0],"owidth",o.gA(p.img[0],"owidth",p.img[0].width)),o.sA(p.img[0],"oheight",o.gA(p.img[0],"oheight",p.img[0].height));var w=o.gA(p.img[0],"owidth")/o.gA(p.img[0],"oheight"),x=m/y;p.imgOBJ=w>x&&w<=1||w<x&&w>1?{width:"100%",height:"auto",left:"c"===b||"center"===b?"50%":"left"===b||"l"===b?"0":"auto",right:"r"===b||"right"===b?"0":"auto",top:"c"===_||"center"===_?"50%":"top"===_||"t"===_?"0":"auto",bottom:"b"===_||"bottom"===_?"0":"auto",x:"c"===b||"center"===b?"-50%":"0",y:"c"===_||"center"===b?"-50%":"0"}:{height:"100%",width:"auto",left:"c"===b||"center"===b?"50%":"left"===b||"l"===b?"0":"auto",right:"r"===b||"right"===b?"0":"auto",top:"c"===_||"center"===_?"50%":"top"===_||"t"===_?"0":"auto",bottom:"b"===_||"bottom"===_?"0":"auto",x:"c"===b||"center"===b?"-50%":"0",y:"c"===_||"center"===b?"-50%":"0"}}else void 0===p.group&&"auto"===p.width[o[r].level]&&"auto"===p.height[o[r].level]&&(p.width[o[r].level]=o.gA(p.img[0],"owidth",p.img[0].width),p.height[o[r].level]=o.gA(p.img[0],"owidth",p.img[0].height)),p.imgOBJ={width:"auto"!==p.width[o[r].level]||isNaN(p.width[o[r].level])&&p.width[o[r].level].indexOf("%")>=0?"100%":"auto",height:"auto"!==p.height[o[r].level]||isNaN(p.height[o[r].level])&&p.height[o[r].level].indexOf("%")>=0?"100%":"auto"};else if("video"===p.layertype){o.manageVideoLayer&&!p.videoLayerManaged&&o.manageVideoLayer(d,r,s),"rebuild"!==e.mode&&o.resetVideo&&o.resetVideo(d,r,e.mode),null!=p.aspectratio&&p.aspectratio.split(":").length>1&&(1==p.bgvideo||1==p.forcecover)&&o.prepareCoveredVideo(r,d),p.media=void 0===p.media?p.deepiframe.length>0?jQuery(p.deepiframe[0]):jQuery(p.deepmedia[0]):p.media,p.html5vid=void 0===p.html5vid?!(p.deepiframe.length>0):p.html5vid;var S=d[0].className.indexOf("coverscreenvideo")>=0;p.mediaOBJ={display:"block"};var L=p.width[o[r].level],T=p.height[o[r].level];if(L="auto"===L?L:!jQuery.isNumeric(L)&&L.indexOf("%")>0?p._incolumn||p._ingroup?"100%":"grid"===p.basealign?o.iWA(r,e.slideIndex)*o[r].bw:m:"off"!==p.rsp_bd?parseFloat(L)*o[r].bw+"px":parseFloat(L)+"px",T="auto"===T?T:!jQuery.isNumeric(T)&&T.indexOf("%")>0?"grid"===p.basealign?o.iHE(r)*o[r].bw:y:"off"!==p.rsp_bd?parseFloat(T)*o[r].bh+"px":parseFloat(T)+"px",p.vd=void 0===p.vd?o[r].videos[d[0].id].ratio.split(":").length>1?o[r].videos[d[0].id].ratio.split(":")[0]/o[r].videos[d[0].id].ratio.split(":")[1]:1:p.vd,!p._incolumn||"100%"!==L&&"auto"!==T||void 0===p.ytid)-1!=d[0].className.indexOf("rs-fsv")||S?(g=0,u=0,p.x=o.revToResp(0,o[r].rle,0),p.y=o.revToResp(0,o[r].rle,0),p.vidOBJ={width:L,height:o[r].autoHeight?o[r].conh:T}):(T="auto"===T&&void 0!==p.vd&&"auto"!==L?"100%"===L?d.width()/p.vd:L/p.vd:T,p.vidOBJ={width:L,height:T}),(0==p.html5vid&&!S||1!=p.forcecover&&!d.hasClass("rs-fsv")&&!S)&&(p.mediaOBJ={width:L,height:T,display:"block"}),p._ingroup&&null!==p.vidOBJ.width&&void 0!==p.vidOBJ.width&&!jQuery.isNumeric(p.vidOBJ.width)&&p.vidOBJ.width.indexOf("%")>0&&(p.OBJUPD.lppmOBJ={minWidth:L});else{var A=d.width(),R="auto"===T?A/p.vd:T;p.vidOBJ={width:"auto",height:R},p.heightSetByVideo=!0}}p._slidelink||o[r].caches.calcResponsiveLayersList.push({a:d,b:r,c:0,d:p.rsp_bd,e:e.slideIndex}),"on"===p.rsp_ch&&"row"!==p.type&&"column"!==p.type&&"group"!==p.type&&"image"!==p.type&&"video"!==p.type&&"shape"!==p.type&&d.find("*").each(function(){var t=jQuery(this);"true"!==o.gA(this,"stylerecorder")&&!0!==o.gA(this,"stylerecorder")&&O(t,"rekursive",r),o[r].caches.calcResponsiveLayersList.push({a:t,b:r,c:"rekursive",d:p.rsp_bd,e:e.slideIndex,RSL:d})})}if("preset"!==e.mode){if(p.eow=d.outerWidth(!0),p.eoh=d.outerHeight(!0),p.imgInFirefox="image"==p.type&&"auto"==p.width[o[r].level]&&"100%"==p.height[o[r].level]&&o.isFirefox(r),p.imgInFirefox){var I=p.img.width();p.eow=0!==I?I:p.eow}if(p.eow<=0&&void 0!==p.lastknownwidth&&(p.eow=p.lastknownwidth),p.eoh<=0&&void 0!==p.lastknownheight&&(p.eoh=p.lastknownheight),void 0!==p.corners&&("text"===p.type||"button"===p.type||"shape"===p.type)){for(a in p.corners)if(p.corners.hasOwnProperty(a)){p.corners[a].css("borderWidth",p.eoh+"px");var z="rs-fcrt"===a||"rs-fcr"===a;p.corners[a].css("border"+(z?"Right":"Left"),"0px solid transparent"),p.corners[a].css("border"+("rs-fcrt"==a||"rs-bcr"==a?"Bottom":"Top")+"Color",p.bgcol)}p.eow=d.outerWidth(!0)}0==p.eow&&0==p.eoh&&(p.eow=o[r].width,p.eoh=o[r].height),p.basealign=o[r].justifyCarousel?"grid":p.basealign;var P="on"===p.rsp_o?parseInt(p.voffset[o[r].level],0)*o[r].bw:parseInt(p.voffset[o[r].level],0),B="on"===p.rsp_o?parseInt(p.hoffset[o[r].level],0)*o[r].bw:parseInt(p.hoffset[o[r].level],0),G="grid"===p.basealign?o.iWA(r,e.slideIndex)*o[r].bw:m,M="grid"===p.basealign?o.iHE(r)*(o[r].keepBPHeight||o[r].currentRowsHeight>o[r].gridheight[o[r].level]?1:o[r].bh):y;(1==o[r].gridEQModule||void 0!==p._lig&&"row"!==p.type&&"column"!==p.type&&"group"!==p.type)&&(G=void 0!==p._lig?p._lig.width():o[r].width,M=void 0!==p._lig?p._lig.height():o[r].height,g=0,u=0),b="c"===b||"m"===b||"center"===b||"middle"===b?G/2-p.eow/2+B:"l"===b||"left"===b?B:"r"===b||"right"===b?G-p.eow-B:"off"!==p.rsp_o?b*o[r].bw:b,_="m"===_||"c"===_||"center"===_||"middle"===_?M/2-p.eoh/2+P:"t"===_||"top"==_?P:"b"===_||"bottom"==_?M-p.eoh-P:"off"!==p.rsp_o?_*o[r].bw:_,b=p._slidelink?0:o[r].rtl&&"100%"!==p.width[o[r].level]?parseInt(b)+p.eow:b,p.calcx=parseInt(b,0)+g,p.calcy=parseInt(_,0)+u,"row"!==p.type&&"column"!==p.type?p.OBJUPD.POBJ={zIndex:p.zindex,top:p.calcy,left:p.calcx,overwrite:"auto"}:"row"!==p.type?p.OBJUPD.POBJ={zIndex:p.zindex,width:p.columnwidth,top:0,left:0,overwrite:"auto"}:"row"===p.type&&(p.OBJUPD.POBJ={zIndex:p.zindex,width:"grid"===p.basealign?G+"px":"100%",top:0,left:o[r].rtl?-1*g:g,overwrite:"auto"},p.cbreak<=o[r].level?-1===d[0].className.indexOf("rev_break_columns")&&d[0].classList.add("rev_break_columns"):d[0].className.indexOf("rev_break_columns")>0&&d[0].classList.remove("rev_break_columns")),void 0!==p.blendmode&&(p.OBJUPD.POBJ.mixBlendMode=p.blendmode),(void 0!==p.frames.loop||p.imgInFirefox)&&(p.OBJUPD.LPOBJ={width:p.eow,height:p.eoh}),p._ingroup&&(void 0!==p._groupw&&!jQuery.isNumeric(p._groupw)&&p._groupw.indexOf("%")>0&&(p.OBJUPD.lppmOBJ.minWidth=p._groupw),void 0!==p._grouph&&!jQuery.isNumeric(p._grouph)&&p._grouph.indexOf("%")>0&&(p.OBJUPD.lppmOBJ.minHeight=p._grouph)),"updateposition"===e.mode&&(p.caches.POBJ_LEFT===p.OBJUPD.POBJ.left&&p.caches.POBJ_TOP===p.OBJUPD.POBJ.top||(tpGS.gsap.set(p.p,p.OBJUPD.POBJ),p.caches.POBJ_LEFT=p.OBJUPD.POBJ.left,p.caches.POBJ_TOP=p.OBJUPD.POBJ.top)),e.animcompleted&&o.animcompleted(d,r)}}},hoverReverseDone:function(e){o[e.id]._L[e.L[0].id].textDecoration&&tpGS.gsap.set(o[e.id]._L[e.L[0].id].c,{textDecoration:o[e.id]._L[e.L[0].id].textDecoration})},animcompleted:function(e,t,i){if(void 0!==o[t].videos){var a=o[t].videos[e[0].id];null!=a&&null!=a.type&&"none"!=a.type&&(1==a.aplay||"true"==a.aplay||"on"==a.aplay||"1sttime"==a.aplay?(("carousel"!==o[t].sliderType||e.closest("rs-slide").index()==o[t].carousel.focused||e.closest("rs-slide").index()==o[t].activeRSSlide&&o[t].carousel.oldfocused==o[t].carousel.focused||i)&&o.playVideo(e,t),o.toggleState(e.data("videotoggledby")),(a.aplay1||"1sttime"==a.aplay)&&(a.aplay1=!1,a.aplay=!1)):("no1sttime"==a.aplay&&(a.aplay=!0),o.unToggleState(e.data("videotoggledby"))))}},handleStaticLayers:function(e,t){var i=0,a=o[t].realslideamount+1;if(void 0!==o.gA(e[0],"onslides")){var r=o.gA(e[0],"onslides").split(";");for(var s in r)if(r.hasOwnProperty(s)){var n=r[s].split(":");"s"===n[0]&&(i=parseInt(n[1],0)),"e"===n[0]&&(a=parseInt(n[1],0))}}i=Math.max(0,i),a=Math.min(o[t].realslideamount,a<0?o[t].realslideamount:a),a=1!==i&&0!==i||a!==o[t].realslideamount?a:o[t].realslideamount+1,e.data("startslide",i),e.data("endslide",a),o.sA(e[0],"startslide",i),o.sA(e[0],"endslide",a)},updateLayersOnFullStage:function(e){if(o[e].caches.calcResponsiveLayersList.length>0){!0!==o[e].slideHasIframe&&!0!==o[e].fullScreenMode&&("carousel"===o[e].sliderType?o[e].carousel.wrap.detach():o[e].canvas.detach());for(var t=0;t<o[e].caches.calcResponsiveLayersList.length;t++)void 0!==o[e].caches.calcResponsiveLayersList[t]&&z(o[e].caches.calcResponsiveLayersList[t]);!0!==o[e].slideHasIframe&&!0!==o[e].fullScreenMode&&("carousel"===o[e].sliderType?o[e].c[0].appendChild(o[e].carousel.wrap[0]):o[e].c[0].appendChild(o[e].canvas[0]))}},animateTheLayers:function(e){if(void 0===e.slide)return!1;var t=e.id;if(void 0===o[t].slides[e.slide]&&"individual"!==e.slide)return!1;if("carousel"===o[t].sliderType){if("start"===e.mode&&"start"===o[t].lastATLmode){if(e.slide===o[t].lastATLslide&&(new Date).getTime()-o[t].lastATLtime<1500)return;o[t].lastATLtime=(new Date).getTime()}o[t].lastATLmode=e.mode,o[t].lastATLslide=e.slide}var i="individual"!==e.slide?o.gA(o[t].slides[e.slide],"key"):"individual",a=o[t].pr_processing_key||o[t].pr_active_key||0;o[t].caches.calcResponsiveLayersList=[],o[t].layers=o[t].layers||{},"individual"===i?o[t].layers.individual=void 0===o[t].layers.individual?"all"===o[t].carousel.showLayersAllTime?L(jQuery(o[t].c),"rs-layer","rs-layer-static"):L(jQuery(o[t].c),"rs-on-car"):o[t].layers.individual:(o[t].layers[i]=void 0===o[t].layers[i]?"all"===o[t].carousel.showLayersAllTime?[]:L(jQuery(o[t].slides[e.slide]),"rs-layer","carousel"===o[t].sliderType?"rs-on-car":void 0):o[t].layers[i],o[t].layers.static=void 0===o[t].layers.static?L(jQuery(o[t].c.find("rs-static-layers")),"rs-layer","rs-on-car"):o[t].layers.static,o[t].sbas[i]=void 0===o[t].sbas[i]?L(jQuery(o[t].slides[e.slide]),"rs-sba"):o[t].sbas[i]),o.updateDimensions(t,"animateTheLayers");var r="rebuild"===e.mode&&"carousel"===o[t].sliderType&&"individual"===i;void 0!==i&&o[t].layers[i]&&o.initLayer({id:t,slideIndex:e.slide,skey:i,mode:e.mode,animcompleted:r}),o[t].layers.static&&o.initLayer({id:t,skey:"static",slideIndex:"static",mode:e.mode,animcompleted:r}),o.updateLayersOnFullStage(t),"preset"!==e.mode||void 0!==o[t].slidePresets&&void 0!==o[t].slidePresets[e.slide]||(o[t].slidePresets=void 0===o[t].slidePresets?{}:o[t].slidePresets,o[t].slidePresets[e.slide]=!0,o[t].c.trigger("revolution.slideprepared",{slide:e.slide})),o[t].heightInLayers=o[t].height,o[t].widthInLayers=o[t].width,o[t].levelInLayers=o[t].level,o[t].lastAnimateLayersCall={id:t,skey:i,slide:e.slide,key:i,mode:e.mode,index:a},window.requestAnimationFrame(function(){if(o[e.id].heightInLayers=void 0,o[e.id].widthInLayers=void 0,void 0===o[t].dimensionReCheck[i]?(o.updateLayerDimensions(o[t].lastAnimateLayersCall),!0!==o[t].doubleDimensionCheck?setTimeout(function(){o.updateLayerDimensions(o[t].lastAnimateLayersCall),o.updateRowZones(o[t].lastAnimateLayersCall)},150):o.updateRowZones(o[t].lastAnimateLayersCall),o[t].doubleDimensionCheck=!0,o[t].dimensionReCheck[i]=!0):o.updateRowZones(o[t].lastAnimateLayersCall),void 0!==i&&o[t].layers[i])for(var a in o[t].layers[i])o[t].layers[i].hasOwnProperty(a)&&o.renderLayerAnimation({layer:jQuery(o[t].layers[i][a]),id:t,mode:e.mode,caller:e.caller});if(o[t].layers.static)for(var a in o[t].layers.static)o[t].layers.static.hasOwnProperty(a)&&o.renderLayerAnimation({layer:jQuery(o[t].layers.static[a]),id:t,mode:e.mode,caller:e.caller});null!=o[t].mtl&&o[t].mtl.resume()})},updateRowZones:function(e){(void 0!==o[e.id].rowzones&&o[e.id].rowzones.length>0&&e.index>=0&&o[e.id].rowzones[Math.min(e.index,o[e.id].rowzones.length)]&&o[e.id].rowzones[Math.min(e.index,o[e.id].rowzones.length)].length>0||void 0!==o[e.id].srowzones&&o[e.id].srowzones.length>0||void 0!==o[e.id].smiddleZones&&o[e.id].smiddleZones.length>0)&&(o.setSize(e.id,void 0,"updateRowZones"),o.updateDimensions(e.id,"updateRowZones"),o.initLayer({id:e.id,skey:e.key,slideIndex:e.slide,mode:"updateposition"}),o.initLayer({id:e.id,skey:"static",slideIndex:"static",mode:"updateposition"}),"start"!==e.mode&&"preset"!==e.mode||o.manageNavigation(e.id))},updateLayerDimensionsTimeout:function(e){clearTimeout(o[e].gFLoadedTimer),o[e].gFLoadedTimer=setTimeout(function(){var t=o[e].lastAnimateLayersCall;void 0!==t&&o.updateLayerDimensions(o[t.id].lastAnimateLayersCall)},19)},updateLayerDimensions:function(e){var t=!1;o[e.id].caches.calcResponsiveLayersList=[],void 0!==e.key&&o[e.id].layers[e.key]&&o.checkLayerDimensions({id:e.id,skey:e.key,slideIndex:e.slide})&&(t=!0,o.initLayer({id:e.id,skey:e.key,slideIndex:e.slide,mode:"updateAndResize"})),o.checkLayerDimensions({id:e.id,skey:"individual",slideIndex:"individual"})&&(t=!0,o.initLayer({id:e.id,skey:"individual",slideIndex:"individual",mode:"updateAndResize"})),o[e.id].layers.static&&o.checkLayerDimensions({id:e.id,skey:"static",slideIndex:"static"})&&(t=!0,o.initLayer({id:e.id,skey:"static",slideIndex:"static",mode:"updateAndResize"})),t&&o.updateLayersOnFullStage(e.id)},updateAnimatingLayerPositions:function(e){void 0!==e&&o.initLayer({id:e.id,skey:e.key,slideIndex:e.slide,mode:"updateposition"})},removeTheLayers:function(e,t,i){var a=o.gA(e[0],"key");for(var r in o[t].sloops&&o[t].sloops[a]&&o[t].sloops[a].tl&&o[t].sloops[a].tl.pause(),o[t].layers[a])o[t].layers[a].hasOwnProperty(r)&&o.renderLayerAnimation({layer:jQuery(o[t].layers[a][r]),frame:"frame_999",mode:"continue",remove:!0,id:t,allforce:i});for(var r in o[t].layers.static)o[t].layers.static.hasOwnProperty(r)&&o.renderLayerAnimation({layer:jQuery(o[t].layers.static[r]),frame:"frame_999",mode:"continue",remove:!0,id:t,allforce:i})},renderLayerAnimation:function(e){var i,a=e.layer,r=e.id,s=o[r].level,h=o[r]._L[a[0].id],m=void 0!==h.timeline?h.timeline.time():void 0,f=!1,v=!1,_="none";if(("containerResized_2"!==e.caller&&"swapSlideProgress_2"!==e.caller||!0===h.animationRendered)&&(h.animationRendered=!0,"preset"!==e.mode||!0===h.frames.frame_1.timeline.waitoncall||void 0!==h.scrollBasedOffset)){if("trigger"==e.mode&&(h.triggeredFrame=e.frame),h._isstatic){var x="carousel"===o[r].sliderType&&void 0!==o[r].carousel.oldfocused?o[r].carousel.oldfocused:void 0===o[r].pr_lastshown_key?1:parseInt(o[r].pr_lastshown_key,0)+1,k="carousel"===o[r].sliderType?void 0===o[r].pr_next_key?0===x?1:x:parseInt(o[r].pr_next_key,0)+1:void 0===o[r].pr_processing_key?x:parseInt(o[r].pr_processing_key,0)+1,S=x>=h.startslide&&x<=h.endslide,L=k>=h.startslide&&k<=h.endslide;if(_=x===h.endslide&&"continue"===e.mode||("continue"===e.mode||x===h.endslide)&&"none",!0===e.allforce||!0===_);else{if("preset"===e.mode&&(h.elementHovered||!L))return;if("rebuild"===e.mode&&!S&&!L)return;if("start"===e.mode&&L&&"frame_1"===h.lastRequestedMainFrame)return;if(("start"===e.mode||"preset"===e.mode)&&"frame_999"===h.lastRequestedMainFrame&&!0!==h.leftstage)return;if("continue"===e.mode&&"frame_999"===e.frame&&(L||void 0===h.lastRequestedMainFrame))return;if("start"===e.mode&&!L)return}}else"start"===e.mode&&"keep"!==h.triggercache&&(h.triggeredFrame=void 0);for(var T in"start"===e.mode&&(void 0!==h.layerLoop&&(h.layerLoop.count=0),e.frame=void 0===h.triggeredFrame?0:h.triggeredFrame),"continue"!==e.mode&&"trigger"!==e.mode&&void 0!==h.timeline&&h.timeline.pause(0),"continue"!==e.mode&&"trigger"!==e.mode||void 0===h.timeline||h.timeline.pause(),h.timeline=tpGS.gsap.timeline({paused:!0}),"text"!==h.type&&"button"!==h.type||void 0!==h.splitText&&(void 0!==h.splitTextFix||"start"!==e.mode&&"preset"!==e.mode)||(y({layer:a,id:r}),"start"===e.mode&&(h.splitTextFix=!0)),h.ford)if(h.ford.hasOwnProperty(T)){var O=h.ford[T],A=!1;if("frame_0"!==O&&"frame_hover"!==O&&"loop"!==O){if("frame_999"===O&&!h.frames[O].timeline.waitoncall&&h.frames[O].timeline.start>=o[r].duration&&!0!==e.remove&&(h.frames[O].timeline.waitoncall=!0),"start"===e.mode&&"keep"!==h.triggercache&&(h.frames[O].timeline.callstate=h.frames[O].timeline.waitoncall?"waiting":""),"trigger"===e.mode&&h.frames[O].timeline.waitoncall&&(O===e.frame?(h.frames[O].timeline.triggered=!0,h.frames[O].timeline.callstate="called"):h.frames[O].timeline.triggered=!1),"rebuild"===e.mode||h.frames[O].timeline.triggered||(h.frames[O].timeline.callstate=h.frames[O].timeline.waitoncall?"waiting":""),!1!==e.fastforward){if(("continue"===e.mode||"trigger"===e.mode)&&!1===v&&O!==e.frame)continue;if(("rebuild"===e.mode||"preset"===e.mode)&&!1===v&&void 0!==h.triggeredFrame&&O!==h.triggeredFrame)continue;(O===e.frame||"rebuild"===e.mode&&O===h.triggeredFrame)&&(v=!0)}else O===e.frame&&(v=!0);if(O!==e.frame&&h.frames[O].timeline.waitoncall&&"called"!==h.frames[O].timeline.callstate&&(f=!0),O!==e.frame&&v&&(f=!0===f&&h.frames[O].timeline.waitoncall?"skiprest":!0!==f&&f),void 0===h.hideonfirststart&&"frame_1"===O&&h.frames[O].timeline.waitoncall&&(h.hideonfirststart=!0),f&&"waiting"===h.frames[O].timeline.callstate&&"preset"===e.mode&&1!=h.firstTimeRendered){if(h._isstatic&&void 0===h.currentframe)continue;A=!0,h.firstTimeRendered=!0}else if("skiprest"===f||"called"!==h.frames[O].timeline.callstate&&f&&e.toframe!==O)continue;if("frame_999"!==O||!1!==_||"continue"!==e.mode&&"start"!==e.mode&&"rebuild"!==e.mode){h.fff="frame_1"===O&&("trigger"!==e.mode||"frame_999"===h.currentframe||"frame_0"===h.currentframe||void 0===h.currentframe),"trigger"===e.mode&&"frame_1"===e.frame&&!1===h.leftstage&&(h.fff=!1),A||(h.frames[O].timeline.callstate="called",h.currentframe=O);var R=h.frames[O],I=h.fff?h.frames.frame_0:void 0,z=tpGS.gsap.timeline(),C=tpGS.gsap.timeline(),P=h.c,B=void 0!==R.sfx&&b(R.sfx.effect,h.m,R.timeline.ease),G=R.timeline.speed/1e3,M=0,D=w({id:r,frame:R,layer:a,ease:R.timeline.ease,splitAmount:P.length,target:O,forcefilter:void 0!==h.frames.frame_hover&&void 0!==h.frames.frame_hover.filter}),H=h.fff?w({id:r,frame:I,layer:a,ease:R.timeline.ease,splitAmount:P.length,target:"frame_0"}):void 0,j=void 0!==R.mask?w({id:r,frame:{transform:{x:R.mask.x,y:R.mask.y}},layer:a,ease:D.ease,target:"mask"}):void 0,W=void 0!==j&&h.fff?w({id:r,frame:{transform:{x:I.mask.x,y:I.mask.y}},layer:a,ease:D.ease,target:"frommask"}):void 0,N=D.ease;if(D.force3D=!0,"block"===B.type&&(B.ft[0].background=R.sfx.fxc,B.ft[0].visibility="visible",B.ft[1].visibility="visible",z.add(tpGS.gsap.fromTo(B.bmask_in,G/2,B.ft[0],B.ft[1],0)),z.add(tpGS.gsap.fromTo(B.bmask_in,G/2,B.ft[1],B.t,G/2)),"frame_0"!==O&&"frame_1"!==O||(H.opacity=0)),void 0!==R.color?D.color=R.color:void 0!==h.color&&"npc"!==h.color[s]&&(D.color=h.color[s]),void 0!==I&&void 0!==I.color?H.color=I.color:void 0!==I&&void 0!==h.color&&"npc"!==h.color[s]&&(H.color=h.color[s]),void 0!==R.bgcolor?R.bgcolor.indexOf("gradient")>=0?D.background=R.bgcolor:D.backgroundColor=R.bgcolor:!0===h.bgcolinuse&&(h.bgcol.indexOf("gradient")>=0?D.background=h.bgcol:D.backgroundColor=h.bgcol),void 0!==I&&(void 0!==I.bgcolor?I.bgcolor.indexOf("gradient")>=0?H.background=I.bgcolor:H.backgroundColor=I.bgcolor:!0===h.bgcolinuse&&(h.bgcol.indexOf("gradient")>=0?H.background=h.bgcol:H.backgroundColor=h.bgcol)),void 0!==h.splitText&&!1!==h.splitText)for(var F in t)if(void 0!==R[t[F]]&&!h.quickRendering){var E=h.splitText[t[F]],Q=w({id:r,frame:R,source:t[F],ease:N,layer:a,splitAmount:E.length,target:O+"_"+t[F]}),V=h.fff?w({id:r,frame:I,ease:Q.ease,source:t[F],layer:a,splitAmount:E.length,target:"frame_0_"+t[F]}):void 0,Y=h.frames[O].dosplit?void 0===R[t[F]].delay?.05:R[t[F]].delay/100:0;h.color[s]===D.color&&"frame_1"===O||(Q.color=D.color),void 0!==H&&h.color[s]!==H.color&&(V.color=H.color),void 0!==V&&V.color!==D.color&&(Q.color=D.color);var X=jQuery.extend(!0,{},Q),J=h.fff?jQuery.extend(!0,{},V):void 0,q=R[t[F]].dir;delete X.dir,X.data={splitted:!0},X.stagger="center"===q||"edge"===q?d({each:Y,offset:Y/2,from:q}):{each:Y,from:q},X.duration=G,void 0!==J&&delete J.dir,h.fff?z.add(C.fromTo(E,J,X),0):z.add(C.to(E,X),0),M=Math.max(M,E.length*Y)}if(G+=M,void 0===i&&(i="isometric"===o[r].perspectiveType?0:"local"===o[r].perspectiveType?void 0!==D.transformPerspective?D.transformPerspective:h.fff&&void 0!==H.transfromPerspective?H.transfromPerspective:o[r].perspective:o[r].perspective),h.knowTransformPerspective=i,h.pxundermask||void 0!==j&&(void 0!==I&&"hidden"===I.mask.overflow||"hidden"===R.mask.overflow))z.add(tpGS.gsap.to(h.m,.001,{overflow:"hidden"}),0),"column"===h.type&&z.add(tpGS.gsap.to(h.cbgmask,.001,{overflow:"hidden"}),0),h.btrans&&(W&&(W.rotationX=h.btrans.rX,W.rotationY=h.btrans.rY,W.rotationZ=h.btrans.rZ,W.opacity=h.btrans.o),j.rotationX=h.btrans.rX,j.rotationY=h.btrans.rY,j.rotationZ=h.btrans.rZ,j.opacity=h.btrans.o),h.fff?z.add(tpGS.gsap.fromTo([h.m,h.cbgmask],G,jQuery.extend(!0,{},W),jQuery.extend(!0,{},j)),.001):z.add(tpGS.gsap.to([h.m,h.cbgmask],G,jQuery.extend(!0,{},j)),.001);else if(void 0!==h.btrans){var Z={x:0,y:0,filter:"none",opacity:h.btrans.o,rotationX:h.btrans.rX,rotationY:h.btrans.rY,rotationZ:h.btrans.rZ,overflow:"visible"};0===h.btrans.rX&&0==h.btrans.rY||(Z.transformPerspective=i),z.add(tpGS.gsap.to(h.m,.001,Z),0)}else z.add(tpGS.gsap.to(h.m,.001,{clearProps:"transform",overflow:"visible"}),0);D.force3D="auto",h.fff?(D.visibility="visible",void 0!==h.cbg&&z.fromTo(h.cbg,G,H,D,0),o[r].BUG_safari_clipPath&&(H.clipPath||D.clipPath||h.spike)&&(H.z&&parseInt(H.z,10)||(H.z=-1e-4),D.z&&parseInt(D.z,10)||(D.z=0)),void 0!==h.cbg&&"column"===h.type?z.fromTo(P,G,n(H),n(D),0):z.fromTo(P,G,H,D,0),z.invalidate()):(void 0!==h.cbg&&z.to(h.cbg,G,D,0),!o[r].BUG_safari_clipPath||!D.clipPath&&!h.spike||D.z&&parseInt(D.z,10)||(D.z=0-.01*Math.random()),void 0!==h.cbg&&"column"===h.type?z.to(P,G,n(D),0):z.to(P,G,D,0)),void 0!==N&&"object"!=typeof N&&"function"!=typeof N&&N.indexOf("SFXBounce")>=0&&z.to(P,G,{scaleY:.5,scaleX:1.3,ease:D.ease+"-squash",transformOrigin:"bottom"},1e-4);var U="trigger"!==e.mode&&(!0!==f&&"skiprest"!==f||"rebuild"!==e.mode)||e.frame===O||void 0===R.timeline.start||!jQuery.isNumeric(R.timeline.start)?"+=0"===R.timeline.start||void 0===R.timeline.start?"+=0.05":parseInt(R.timeline.start,0)/1e3:"+="+parseInt(R.timeline.startRelative,0)/1e3;h.timeline.addLabel(O,U),h.timeline.add(z,U),h.timeline.addLabel(O+"_end","+=0.01"),z.eventCallback("onStart",c,[{id:r,frame:O,L:a,tPE:i}]),"true"==h.animationonscroll||1==h.animationonscroll?(z.eventCallback("onUpdate",p,[{id:r,frame:O,L:a}]),z.smoothChildTiming=!0):z.eventCallback("onUpdate",p,[{id:r,frame:O,L:a}]),z.eventCallback("onComplete",g,[{id:r,frame:O,L:a,tPE:i}])}}}if(void 0!==h.frames.loop){var K=parseInt(h.frames.loop.timeline.speed,0)/1e3,$=parseInt(h.frames.loop.timeline.start)/1e3||0,ee="trigger"!==e.mode&&"frame_999"!==e.frame||"frame_999"!==e.frame?.2:0,te=$+ee;h.loop={root:tpGS.gsap.timeline({}),preset:tpGS.gsap.timeline({}),move:tpGS.gsap.timeline({repeat:-1,yoyo:h.frames.loop.timeline.yoyo_move}),rotate:tpGS.gsap.timeline({repeat:-1,yoyo:h.frames.loop.timeline.yoyo_rotate}),scale:tpGS.gsap.timeline({repeat:-1,yoyo:h.frames.loop.timeline.yoyo_scale}),filter:tpGS.gsap.timeline({repeat:-1,yoyo:h.frames.loop.timeline.yoyo_filter})};var ie=h.frames.loop.frame_0,ae=h.frames.loop.frame_999,re="blur("+parseInt(ie.blur||0,0)+"px) grayscale("+parseInt(ie.grayscale||0,0)+"%) brightness("+parseInt(ie.brightness||100,0)+"%)",oe="blur("+(ae.blur||0)+"px) grayscale("+(ae.grayscale||0)+"%) brightness("+(ae.brightness||100)+"%)";if(h.loop.root.add(h.loop.preset,0),h.loop.root.add(h.loop.move,ee),h.loop.root.add(h.loop.rotate,ee),h.loop.root.add(h.loop.scale,ee),h.loop.root.add(h.loop.filter,ee),"blur(0px) grayscale(0%) brightness(100%)"===re&&"blur(0px) grayscale(0%) brightness(100%)"===oe&&(re="none",oe="none"),ae.originX=ie.originX,ae.originY=ie.originY,ae.originZ=ie.originZ,void 0===i&&(i="isometric"===o[r].perspectiveType?0:"local"===o[r].perspectiveType&&void 0!==D?void 0!==D.transformPerspective?D.transformPerspective:h.fff&&void 0!==H.transfromPerspective?H.transfromPerspective:o[r].perspective:o[r].perspective),h.frames.loop.timeline.curved){var se=parseInt(h.frames.loop.timeline.radiusAngle,0)||0,ne=[{x:(ie.x-ie.xr)*o[r].bw,y:0,z:(ie.z-ie.zr)*o[r].bw},{x:0,y:(ie.y+ie.yr)*o[r].bw,z:0},{x:(ae.x+ae.xr)*o[r].bw,y:0,z:(ae.z+ae.zr)*o[r].bw},{x:0,y:(ae.y-ae.yr)*o[r].bw,z:0}],le={type:"thru",curviness:h.frames.loop.timeline.curviness,path:[],autoRotate:h.frames.loop.timeline.autoRotate};for(var de in ne)ne.hasOwnProperty(de)&&(le.path[de]=ne[se],se=++se==ne.length?0:se);("trigger"!==e.mode&&"frame_999"!==e.frame||"frame_999"!==e.frame)&&h.loop.preset.fromTo(h.lp,ee,{"-webkit-filter":re,filter:re,x:0,y:0,z:0,minWidth:h._incolumn||h._ingroup?"100%":void 0===h.eow?0:h.eow,minHeight:h._incolumn||h._ingroup?"100%":void 0===h.eoh?0:h.eoh,scaleX:1,scaleY:1,skewX:0,skewY:0,rotationX:0,rotationY:0,rotationZ:0,transformPerspective:i,transformOrigin:ae.originX+" "+ae.originY+" "+ae.originZ,opacity:1},l({x:le.path[3].x,y:le.path[3].y,z:le.path[3].z,scaleX:ie.scaleX,skewX:ie.skewX,skewY:ie.skewY,scaleY:ie.scaleY,rotationX:ie.rotationX,rotationY:ie.rotationY,rotationZ:ie.rotationZ,"-webkit-filter":re,filter:re,ease:"sine.inOut",opacity:ie.opacity}),0),h.loop.move.to(h.lp,h.frames.loop.timeline.yoyo_move?K/2:K,{motionPath:le,ease:h.frames.loop.timeline.ease})}else("trigger"!==e.mode&&"frame_999"!==e.frame||"frame_999"!==e.frame)&&h.loop.preset.fromTo(h.lp,ee,{"-webkit-filter":re,filter:re,x:0,y:0,z:0,minWidth:h._incolumn||h._ingroup?"100%":void 0===h.eow?0:h.eow,minHeight:h._incolumn||h._ingroup?"100%":void 0===h.eoh?0:h.eoh,scaleX:1,scaleY:1,skewX:0,skewY:0,rotationX:0,rotationY:0,rotationZ:0,transformPerspective:i,transformOrigin:ae.originX+" "+ae.originY+" "+ae.originZ,opacity:1},l({x:ie.x*o[r].bw,y:ie.y*o[r].bw,z:ie.z*o[r].bw,scaleX:ie.scaleX,skewX:ie.skewX,skewY:ie.skewY,scaleY:ie.scaleY,rotationX:ie.rotationX,rotationY:ie.rotationY,rotationZ:ie.rotationZ,ease:"sine.out",opacity:ie.opacity,"-webkit-filter":re,filter:re}),0),h.loop.move.to(h.lp,h.frames.loop.timeline.yoyo_move?K/2:K,{x:ae.x*o[r].bw,y:ae.y*o[r].bw,z:ae.z*o[r].bw,ease:h.frames.loop.timeline.ease});h.loop.rotate.to(h.lp,h.frames.loop.timeline.yoyo_rotate?K/2:K,{rotationX:ae.rotationX,rotationY:ae.rotationY,rotationZ:ae.rotationZ,ease:h.frames.loop.timeline.ease}),h.loop.scale.to(h.lp,h.frames.loop.timeline.yoyo_scale?K/2:K,l({scaleX:ae.scaleX,scaleY:ae.scaleY,skewX:ae.skewX,skewY:ae.skewY,ease:h.frames.loop.timeline.ease}));var ce={opacity:ae.opacity||1,ease:h.frames.loop.timeline.ease,"-webkit-filter":oe,filter:oe};h.loop.filter.to(h.lp,h.frames.loop.timeline.yoyo_filter?K/2:K,ce),h.timeline.add(h.loop.root,te)}if(void 0!==h.frames.frame_hover&&("start"===e.mode||void 0===h.hoverframeadded)){h.hoverframeadded=!0;var pe=h.frames.frame_hover.timeline.speed/1e3;pe=0===pe?1e-5:pe,h.hoverlistener||(h.hoverlistener=!0,o.document.on("mouseenter mousemove",("column"===h.type?"#"+h.cbg[0].id+",":"")+"#"+h.c[0].id,function(e){if("mousemove"!==e.type||!0!==h.ignoremousemove){if(h.animationonscroll||h.readyForHover){if(h.elementHovered=!0,h.hovertimeline||(h.hovertimeline=tpGS.gsap.timeline({paused:!0})),0==h.hovertimeline.progress()&&(void 0===h.lastHoveredTimeStamp||(new Date).getTime()-h.lastHoveredTimeStamp>150)&&(h.ignoremousemove=!0,h.hovertimeline.to([h.m,h.cbgmask],pe,{overflow:h.frames.frame_hover.mask?"hidden":"visible"},0),"column"===h.type&&h.hovertimeline.to(h.cbg,pe,jQuery.extend(!0,{},u(h.frames.frame_hover,h.cbg)),0),"text"!==h.type&&"button"!==h.type||void 0===h.splitText||!1===h.splitText||h.hovertimeline.to([h.splitText.lines,h.splitText.words,h.splitText.chars],pe,{color:h.frames.frame_hover.color,ease:h.frames.frame_hover.transform.ease},0),"column"===h.type?h.hovertimeline.to(h.c,pe,n(jQuery.extend(!0,{},u(h.frames.frame_hover,h.c))),0):h.hovertimeline.to(h.c,pe,jQuery.extend(!0,{},u(h.frames.frame_hover,h.c)),0),"svg"===h.type)){h.svgHTemp=jQuery.extend(!0,{},h.svgH);var t=Array.isArray(h.svgHTemp.fill)?h.svgHTemp.fill[o[r].level]:h.svgHTemp.fill;h.svgHTemp.fill=t,h.hovertimeline.to(h.svg,pe,h.svgHTemp,0),h.hovertimeline.to(h.svgPath,pe,{fill:t},0)}h.hovertimeline.play()}h.lastHoveredTimeStamp=(new Date).getTime()}}),o.document.on("mouseleave",("column"===h.type?"#"+h.cbg[0].id+",":"")+"#"+h.c[0].id,function(){h.elementHovered=!1,(h.animationonscroll||h.readyForHover)&&void 0!==h.hovertimeline&&(h.hovertimeline.reverse(),h.hovertimeline.eventCallback("onReverseComplete",o.hoverReverseDone,[{id:r,L:a}]))}))}if(A||(h.lastRequestedMainFrame="start"===e.mode?"frame_1":"continue"===e.mode?void 0===e.frame?h.currentframe:e.frame:h.lastRequestedMainFrame),void 0!==e.totime?h.tSTART=e.totime:void 0!==m&&void 0===e.frame?h.tSTART=m:void 0!==e.frame?h.tSTART=e.frame:h.tSTART=0,0===h.tSTART&&void 0===h.startedAnimOnce&&void 0===h.leftstage&&void 0===h.startedAnimOnce&&!0===h.hideonfirststart&&"preset"===e.mode&&(o[r]._L[a[0].id].pVisRequest=0,h.hideonfirststart=!1),"frame_999"!==h.tSTART&&"frame_999"!==h.triggeredFrame||!h.leftstage&&void 0!==h.startedAnimOnce){if("true"!=h.animationonscroll&&1!=h.animationonscroll?h.timeline.play(h.tSTART):h.timeline.time(h.tSTART),jQuery.inArray(h.type,["group","row","column"])>=0&&void 0!==e.frame){if(void 0===h.childrenJS)for(var F in h.childrenJS={},o[r]._L)void 0!==o[r]._L[F]._lig&&void 0!==o[r]._L[F]._lig[0]&&o[r]._L[F]._lig[0].id===a[0].id&&o[r]._L[F]._lig[0].id!==o[r]._L[F].c[0].id&&(h.childrenJS[o[r]._L[F].c[0].id]=o[r]._L[F].c);e.frame="0"==e.frame?"frame_0":e.frame,e.frame="1"==e.frame?"frame_1":e.frame,e.frame="999"==e.frame?"frame_999":e.frame;var ge=void 0===e.totime?void 0!==h.frames[e.frame].timeline.startAbsolute?parseInt(h.frames[e.frame].timeline.startAbsolute,0)/1e3:void 0!==h.frames[e.frame].timeline.start?jQuery.isNumeric(h.frames[e.frame].timeline.start)?parseInt(h.frames[e.frame].timeline.start,0)/1e3:0:.001:e.totime;if(!0===e.updateChildren)for(var F in h.childrenJS)h.childrenJS.hasOwnProperty(F)&&o.renderLayerAnimation({layer:h.childrenJS[F],fastforward:!1,id:r,mode:"continue",updateChildren:!0,totime:ge});else for(var F in h.childrenJS)h.childrenJS.hasOwnProperty(F)&&o[r]._L[F].pausedTrueParrent&&(o.renderLayerAnimation({layer:h.childrenJS[F],fastforward:!1,id:r,mode:"continue",updateChildren:!0,totime:ge}),o[r]._L[F].pausedTrueParrent=!1)}}}}});var n=function(e){var t=jQuery.extend(!0,{},e);return delete t.backgroundColor,delete t.background,delete t.backgroundImage,delete t.borderSize,delete t.borderStyle,t},l=function(e){return void 0===e.skewX&&delete e.skewX,void 0===e.skewY&&delete e.skewY,e},d=function(e){var t=tpGS.gsap.utils.distribute(e);return function(i,a,r){return t(i,a,r)+(i<=r.length/2?0:e.offset||0)}},c=function(e){o[e.id].BUG_safari_clipPath&&e.L[0].classList.remove("rs-pelock"),(o[e.id]._L[e.L[0].id]._ingroup||o[e.id]._L[e.L[0].id]._incolumn||o[e.id]._L[e.L[0].id]._inrow)&&void 0!==o[e.id]._L[o[e.id]._L[e.L[0].id]._ligid]&&void 0!==o[e.id]._L[o[e.id]._L[e.L[0].id]._ligid].timeline&&(o[e.id]._L[o[e.id]._L[e.L[0].id]._ligid].timeline.isActive()||void 0===o[e.id]._L[e.L[0].id]||void 0===o[e.id]._L[e.L[0].id].frames[o[e.id]._L[e.L[0].id].timeline.currentLabel()]||(null==o[e.id]._L[o[e.id]._L[e.L[0].id]._ligid].timezone||o[e.id]._L[o[e.id]._L[e.L[0].id]._ligid].timezone.to<=parseInt(o[e.id]._L[e.L[0].id].frames[o[e.id]._L[e.L[0].id].timeline.currentLabel()].timeline.start,0))&&!0!==o[e.id]._L[e.L[0].id].animOnScrollForceDisable&&(o[e.id]._L[e.L[0].id].pausedTrueParrent=!0,o[e.id]._L[e.L[0].id].timeline.pause()));var t=o[e.id]._L[e.L[0].id],i=t.hovertimeline;i&&i.time()>0&&(i.pause(),i.time(0),i.kill(),delete t.hovertimeline),delete o[e.id]._L[e.L[0].id].childrenAtStartNotVisible,o[e.id]._L[e.L[0].id].pVisRequest=1;var a={layer:e.L};o[e.id]._L[e.L[0].id].ignoremousemove=!1,o[e.id]._L[e.L[0].id].leftstage=!1,o[e.id]._L[e.L[0].id].readyForHover=!1,void 0!==o[e.id]._L[e.L[0].id].layerLoop&&o[e.id]._L[e.L[0].id].layerLoop.from===e.frame&&o[e.id]._L[e.L[0].id].layerLoop.count++,"frame_1"===e.frame&&"Safari"===window.RSBrowser&&void 0===o[e.id]._L[e.L[0].id].safariRenderIssue&&(tpGS.gsap.set([o[e.id]._L[e.L[0].id].c],{opacity:1}),o[e.id]._L[e.L[0].id].safariRenderIssue=!0),"frame_999"!==e.frame&&(o[e.id]._L[e.L[0].id].startedAnimOnce=!0,o[e.id]._L[e.L[0].id].pPeventsRequest=o[e.id]._L[e.L[0].id].noPevents?"none":"auto"),a.eventtype="frame_0"===e.frame||"frame_1"===e.frame?"enterstage":"frame_999"===e.frame?"leavestage":"framestarted",window.requestAnimationFrame(function(){o[e.id]._L[e.L[0].id]._ingroup&&!0!==o[e.id]._L[o[e.id]._L[e.L[0].id]._lig[0].id].frames.frame_1.timeline.waitoncall&&(o[e.id]._L[o[e.id]._L[e.L[0].id]._lig[0].id].pVisRequest=1),o.requestLayerUpdates(e.id,a.eventtype,e.L[0].id,void 0!==o[e.id]._L[e.L[0].id].frames[e.frame]&&void 0!==o[e.id]._L[e.L[0].id].frames[e.frame].timeline&&0==o[e.id]._L[e.L[0].id].frames[e.frame].timeline.usePerspective?e.tPE:"ignore")}),a.layertype=o[e.id]._L[e.L[0].id].type,a.frame_index=e.frame,a.layersettings=o[e.id]._L[e.L[0].id],o[e.id].c.trigger("revolution.layeraction",[a]),"enterstage"===a.eventtype&&o.toggleState(o[e.id]._L[e.L[0].id].layertoggledby),"frame_1"===e.frame&&o.animcompleted(e.L,e.id)},p=function(e){"frame_999"===e.frame&&(o[e.id]._L[e.L[0].id].pVisRequest=1,o[e.id]._L[e.L[0].id].pPeventsRequest=o[e.id]._L[e.L[0].id].noPevents?"none":"auto",o[e.id]._L[e.L[0].id].leftstage=!1,window.requestAnimationFrame(function(){o.requestLayerUpdates(e.id,"update",e.L[0].id)}))},g=function(e){var t=!0;if("column"===o[e.id]._L[e.L[0].id].type||"row"===o[e.id]._L[e.L[0].id].type||"group"===o[e.id]._L[e.L[0].id].type){var i=o[e.id]._L[e.L[0].id].timeline.currentLabel(),a=jQuery.inArray(i,o[e.id]._L[e.L[0].id].ford);a++,a=o[e.id]._L[e.L[0].id].ford.length>a?o[e.id]._L[e.L[0].id].ford[a]:i,void 0!==o[e.id]._L[e.L[0].id].frames[a]&&void 0!==o[e.id]._L[e.L[0].id].frames[i]&&(o[e.id]._L[e.L[0].id].timezone={from:parseInt(o[e.id]._L[e.L[0].id].frames[i].timeline.startAbsolute,0),to:parseInt(o[e.id]._L[e.L[0].id].frames[a].timeline.startAbsolute,0)})}if("frame_999"!==e.frame&&o[e.id].isEdge&&"shape"===o[e.id]._L[e.L[0].id].type){var r=o[e.id]._L[e.L[0].id].c[0].style.opacity;o[e.id]._L[e.L[0].id].c[0].style.opacity=r-1e-4,tpGS.gsap.set(o[e.id]._L[e.L[0].id].c[0],{opacity:r-.001,delay:.05}),tpGS.gsap.set(o[e.id]._L[e.L[0].id].c[0],{opacity:r,delay:.1})}var s={};s.layer=e.L,s.eventtype="frame_0"===e.frame||"frame_1"===e.frame?"enteredstage":"frame_999"===e.frame?"leftstage":"frameended",o[e.id]._L[e.L[0].id].readyForHover=!0,s.layertype=o[e.id]._L[e.L[0].id].type,s.frame_index=e.frame,s.layersettings=o[e.id]._L[e.L[0].id],o[e.id].c.trigger("revolution.layeraction",[s]),"frame_999"===e.frame&&"leftstage"===s.eventtype?(o[e.id]._L[e.L[0].id].leftstage=!0,o[e.id]._L[e.L[0].id].pVisRequest=0,o[e.id]._L[e.L[0].id].pPeventsRequest="none",t=!1,window.requestAnimationFrame(function(){o.requestLayerUpdates(e.id,"leftstage",e.L[0].id)})):(e.L[0].id,void 0!==o[e.id]._L[e.L[0].id].frames[e.frame]&&void 0!==o[e.id]._L[e.L[0].id].frames[e.frame].timeline&&0==o[e.id]._L[e.L[0].id].frames[e.frame].timeline.usePerspective&&window.requestAnimationFrame(function(){o.requestLayerUpdates(e.id,"frameended",e.L[0].id,e.tPE)})),"leftstage"===s.eventtype&&void 0!==o[e.id].videos&&void 0!==o[e.id].videos[e.L[0].id]&&o.stopVideo&&o.stopVideo(e.L,e.id),"column"===o[e.id]._L[e.L[0].id].type&&tpGS.gsap.to(o[e.id]._L[e.L[0].id].cbg,.01,{visibility:"visible"}),"leftstage"===s.eventtype&&(o.unToggleState(e.layertoggledby),"video"===o[e.id]._L[e.L[0].id].type&&o.resetVideo&&setTimeout(function(){o.resetVideo(e.L,e.id)},100)),o[e.id].BUG_safari_clipPath&&!t&&e.L[0].classList.add("rs-pelock"),void 0!==o[e.id]._L[e.L[0].id].layerLoop&&o[e.id]._L[e.L[0].id].layerLoop.to===e.frame&&(-1==o[e.id]._L[e.L[0].id].layerLoop.repeat||o[e.id]._L[e.L[0].id].layerLoop.repeat>o[e.id]._L[e.L[0].id].layerLoop.count)&&o.renderLayerAnimation({layer:o[e.id]._L[e.L[0].id].c,frame:o[e.id]._L[e.L[0].id].layerLoop.from,updateChildren:o[e.id]._L[e.L[0].id].layerLoop.children,mode:"continue",fastforward:!0===o[e.id]._L[e.L[0].id].layerLoop.keep,id:e.id})},u=function(e,t){var i,a=jQuery.extend(!0,{},e.transform);return(a.originX||a.originY||a.originZ)&&(a.transformOrigin=(void 0===a.originX?"50%":a.originX)+" "+(void 0===a.originY?"50%":a.originY)+" "+(void 0===a.originZ?"50%":a.originZ),delete a.originX,delete a.originY,delete a.originZ),void 0!==e&&void 0!==e.filter&&(a["-webkit-filter"]="blur("+(e.filter.blur||0)+"px) grayscale("+(e.filter.grayscale||0)+"%) brightness("+(e.filter.brightness||100)+"%)",a.filter="blur("+(e.filter.blur||0)+"px) grayscale("+(e.filter.grayscale||0)+"%) brightness("+(e.filter.brightness||100)+"%)"),a.color=void 0===a.color?"rgba(255,255,255,1)":a.color,a.force3D="auto",void 0!==a.borderRadius&&((i=a.borderRadius.split(" ")).length,a.borderTopLeftRadius=i[0],a.borderTopRightRadius=i[1],a.borderBottomRightRadius=i[2],a.borderBottomLeftRadius=i[3],delete a.borderRadius),void 0!==a.borderWidth&&((i=a.borderWidth.split(" ")).length,a.borderTopWidth=i[0],a.borderRightWidth=i[1],a.borderBottomWidth=i[2],a.borderLeftWidth=i[3],delete a.borderWidth),a.backgroundImage&&"string"==typeof a.backgroundImage&&-1!==a.backgroundImage.search("gradient")&&180!==m(t.css("backgroundImage"))&&180===m(a.backgroundImage)&&(a.backgroundImage=h(a.backgroundImage,180)),a},h=function(e,t){var i=(e=e.split("("))[0];return e.shift(),i+"("+t+"deg, "+e.join("(")},m=function(e){if(-1!==e.search("deg,")){var t=e.split("deg,")[0];if(-1!==t.search(/\(/))return parseInt(t.split("(")[1],10)}return 180},f=function(e,t){e=void 0===e?"":e.split(";");var i={fill:o.revToResp("#ffffff",o[t].rle),stroke:"transparent","stroke-width":"0px","stroke-dasharray":"0","stroke-dashoffset":"0"};for(var a in e)if(e.hasOwnProperty(a)){var r=e[a].split(":");switch(r[0]){case"c":i.fill=o.revToResp(r[1],o[t].rle,void 0,"||");break;case"sw":i["stroke-width"]=r[1];break;case"sc":i.stroke=r[1];break;case"so":i["stroke-dashoffset"]=r[1];break;case"sa":i["stroke-dasharray"]=r[1]}}return i},v=function(e){return"c"===e?"center":"l"===e?"left":"r"===e?"right":e},y=function(e){var t=o[e.id]._L[e.layer[0].id],i=!1;if(t.splitText&&!1!==t.splitText&&t.splitText.revert(),"text"===t.type||"button"===t.type){for(var a in t.frames)if(void 0!==t.frames[a].chars||void 0!==t.frames[a].words||void 0!==t.frames[a].lines){i=!0;break}t.splitText=!!i&&new tpGS.SplitText(t.c,{type:"lines,words,chars",wordsClass:"rs_splitted_words",linesClass:"rs_splitted_lines",charsClass:"rs_splitted_chars"})}else t.splitText=!1},b=function(e,t,i){if(void 0!==e&&e.indexOf("block")>=0){var a={};switch(0===t.find(".tp-blockmask_in").length&&(t.append('<div class="tp-blockmask_in"></div>'),t.append('<div class="tp-blockmask_out"></div>')),i=void 0===i?"power3.inOut":i,a.ft=[{scaleY:1,scaleX:0,transformOrigin:"0% 50%"},{scaleY:1,scaleX:1,ease:i,immediateRender:!1}],a.t={scaleY:1,scaleX:0,transformOrigin:"100% 50%",ease:i,immediateRender:!1},a.bmask_in=t.find(".tp-blockmask_in"),a.bmask_out=t.find(".tp-blockmask_out"),a.type="block",e){case"blocktoleft":case"blockfromright":a.ft[0].transformOrigin="100% 50%",a.t.transformOrigin="0% 50%";break;case"blockfromtop":case"blocktobottom":a.ft=[{scaleX:1,scaleY:0,transformOrigin:"50% 0%"},{scaleX:1,scaleY:1,ease:i,immediateRender:!1}],a.t={scaleX:1,scaleY:0,transformOrigin:"50% 100%",ease:i,immediateRender:!1};break;case"blocktotop":case"blockfrombottom":a.ft=[{scaleX:1,scaleY:0,transformOrigin:"50% 100%"},{scaleX:1,scaleY:1,ease:i,immediateRender:!1}],a.t={scaleX:1,scaleY:0,transformOrigin:"50% 0%",ease:i,immediateRender:!1}}return a.ft[1].overwrite="auto",a.t.overwrite="auto",a}return!1},_=function(e,t,i,a,r){return 0===o[r].sdir||void 0===t?e:("mask"===i?a="x"===a?"mX":"y"===a?"mY":a:"chars"===i?a="x"===a?"cX":"y"===a?"cY":"dir"===a?"cD":a:"words"===i?a="x"===a?"wX":"y"===a?"wY":"dir"===a?"wD":a:"lines"===i&&(a="x"===a?"lX":"y"===a?"lY":"dir"===a?"lD":a),void 0===t[a]||!1===t[a]?e:void 0!==t&&!0===t[a]?"t"===e||"top"===e?"b":"b"===e||"bottom"===e?"t":"l"===e||"left"===e?"r":"r"===e||"right"===e?"l":-1*e:void 0)},w=function(e){var t,i=o[e.id]._L[e.layer[0].id],a=void 0===e.source?jQuery.extend(!0,{},e.frame.transform):jQuery.extend(!0,{},e.frame[e.source]),r={originX:"50%",originY:"50%",originZ:"0"},s=void 0!==i._lig?o[e.id]._L[i._lig[0].id].eow:o[e.id].conw,n=void 0!==i._lig?o[e.id]._L[i._lig[0].id].eoh:o[e.id].conh;for(var l in a)if(a.hasOwnProperty(l)){if(a[l]="object"==typeof a[l]?a[l][o[e.id].level]:a[l],"inherit"===a[l]||"delay"===l||"direction"===l||"use"===l)delete a[l];else if("originX"===l||"originY"===l||"originZ"===l)r[l]=a[l],delete a[l];else if(jQuery.isNumeric(a[l],0))a[l]=_(a[l],e.frame.reverse,e.target,l,e.id,e.id);else if("r"===a[l][0]&&"a"===a[l][1]&&"("===a[l][3])a[l]=a[l].replace("ran","random");else if(a[l].indexOf("cyc(")>=0){var d=a[l].replace("cyc(","").replace(")","").replace("[","").replace("]","").split("|");a[l]=new function(e){return tpGS.gsap.utils.wrap(d,void 0)}}else if(a[l].indexOf("%")>=0&&jQuery.isNumeric(t=parseInt(a[l],0)))a[l]="x"===l?_((i.eow||0)*t/100,e.frame.reverse,e.target,l,e.id):"y"===l?_((i.eoh||0)*t/100,e.frame.reverse,e.target,l,e.id):a[l];else switch(a[l]=a[l].replace("[","").replace("]",""),a[l]=_(a[l],e.frame.reverse,e.target,l,e.id,e.id),a[l]){case"t":case"top":a[l]=0-(i.eoh||0)-("column"===i.type?0:i.calcy||0);break;case"b":case"bottom":a[l]=n-("column"===i.type?0:i.calcy||0);break;case"l":case"left":a[l]=0-(i.eow||0)-("column"===i.type?0:i.calcx||0);break;case"r":case"right":a[l]=s-("column"===i.type?0:i.calcx||0);break;case"m":case"c":case"middle":case"center":a[l]="x"===l?_(s/2-("column"===i.type?0:i.calcx||0)-(i.eow||0)/2,e.frame.reverse,e.target,l,e.id):"y"===l?_(n/2-("column"===i.type?0:i.calcy||0)-(i.eoh||0)/2,e.frame.reverse,e.target,l,e.id):a[l]}"skewX"===l&&void 0!==a[l]&&(a.scaleY=void 0===a.scaleY?1:parseFloat(a.scaleY),a.scaleY*=Math.cos(parseFloat(a[l])*tpGS.DEG2RAD)),"skewY"===l&&void 0!==a[l]&&(a.scaleX=void 0===a.scaleX?1:parseFloat(a.scaleX),a.scaleX*=Math.cos(parseFloat(a[l])*tpGS.DEG2RAD))}if(a.transformOrigin=r.originX+" "+r.originY+" "+r.originZ,!o[e.id].BUG_ie_clipPath&&void 0!==a.clip&&void 0!==i.clipPath&&i.clipPath.use){var c="rectangle"==i.clipPath.type,p=parseInt(a.clip,0),g=100-parseInt(a.clipB,0),u=Math.round(p/2);switch(i.clipPath.origin){case"invh":a.clipPath="polygon(0% 0%, 0% 100%, "+p+"% 100%, "+p+"% 0%, 100% 0%, 100% 100%, "+g+"% 100%, "+g+"% 0%, 0% 0%)";break;case"invv":a.clipPath="polygon(100% 0%, 0% 0%, 0% "+p+"%, 100% "+p+"%, 100% 100%, 0% 100%, 0% "+g+"%, 100% "+g+"%, 100% 0%)";break;case"cv":a.clipPath=c?"polygon("+(50-u)+"% 0%, "+(50+u)+"% 0%, "+(50+u)+"% 100%, "+(50-u)+"% 100%)":"circle("+p+"% at 50% 50%)";break;case"ch":a.clipPath=c?"polygon(0% "+(50-u)+"%, 0% "+(50+u)+"%, 100% "+(50+u)+"%, 100% "+(50-u)+"%)":"circle("+p+"% at 50% 50%)";break;case"l":a.clipPath=c?"polygon(0% 0%, "+p+"% 0%, "+p+"% 100%, 0% 100%)":"circle("+p+"% at 0% 50%)";break;case"r":a.clipPath=c?"polygon("+(100-p)+"% 0%, 100% 0%, 100% 100%, "+(100-p)+"% 100%)":"circle("+p+"% at 100% 50%)";break;case"t":a.clipPath=c?"polygon(0% 0%, 100% 0%, 100% "+p+"%, 0% "+p+"%)":"circle("+p+"% at 50% 0%)";break;case"b":a.clipPath=c?"polygon(0% 100%, 100% 100%, 100% "+(100-p)+"%, 0% "+(100-p)+"%)":"circle("+p+"% at 50% 100%)";break;case"lt":a.clipPath=c?"polygon(0% 0%,"+2*p+"% 0%, 0% "+2*p+"%)":"circle("+p+"% at 0% 0%)";break;case"lb":a.clipPath=c?"polygon(0% "+(100-2*p)+"%, 0% 100%,"+2*p+"% 100%)":"circle("+p+"% at 0% 100%)";break;case"rt":a.clipPath=c?"polygon("+(100-2*p)+"% 0%, 100% 0%, 100% "+2*p+"%)":"circle("+p+"% at 100% 0%)";break;case"rb":a.clipPath=c?"polygon("+(100-2*p)+"% 100%, 100% 100%, 100% "+(100-2*p)+"%)":"circle("+p+"% at 100% 100%)";break;case"clr":a.clipPath=c?"polygon(0% 0%, 0% "+p+"%, "+(100-p)+"% 100%, 100% 100%, 100% "+(100-p)+"%, "+p+"% 0%)":"circle("+p+"% at 50% 50%)";break;case"crl":a.clipPath=c?"polygon(0% "+(100-p)+"%, 0% 100%, "+p+"% 100%, 100% "+p+"%, 100% 0%, "+(100-p)+"% 0%)":"circle("+p+"% at 50% 50%)"}!0!==o.isFirefox(e.id)&&(a["-webkit-clip-path"]=a.clipPath),a["clip-path"]=a.clipPath,delete a.clip,delete a.clipB}else delete a.clip;return"mask"!==e.target&&(void 0===e.frame||void 0===e.frame.filter&&!e.forcefilter||(a["-webkit-filter"]="blur("+(null==e.frame.filter?0:e.frame.filter.blur||0)+"px) grayscale("+(null==e.frame.filter?0:e.frame.filter.grayscale||0)+"%) brightness("+(null==e.frame.filter?100:e.frame.filter.brightness||100)+"%)",a.filter="blur("+(null==e.frame.filter?0:e.frame.filter.blur||0)+"px) grayscale("+(null==e.frame.filter?0:e.frame.filter.grayscale||0)+"%) brightness("+(null==e.frame.filter?100:e.frame.filter.brightness||100)+"%)"),jQuery.inArray(e.source,["chars","words","lines"])>=0&&(void 0!==e.frame[e.source].blur||e.forcefilter)&&(a["-webkit-filter"]="blur("+(parseInt(e.frame[e.source].blur,0)||0)+"px) grayscale("+(parseInt(e.frame[e.source].grayscale,0)||0)+"%) brightness("+(parseInt(e.frame[e.source].brightness,0)||100)+"%)",a.filter="blur("+(parseInt(e.frame[e.source].blur,0)||0)+"px) grayscale("+(parseInt(e.frame[e.source].grayscale,0)||0)+"%) brightness("+(parseInt(e.frame[e.source].brightness,0)||100)+"%)")),a.ease=void 0!==a.ease?a.ease:void 0===a.ease&&void 0!==e.ease||void 0!==a.ease&&void 0!==e.ease&&"inherit"===a.ease?e.ease:e.frame.timeline.ease,a.ease=void 0===a.ease||"default"===a.ease?"power3.inOut":a.ease,a},x=function(e,t,i,a,r){var s,n,l={},d={},c={};for(var p in a=void 0===a?"transform":a,"loop"===r?(c.autoRotate=!1,c.yoyo_filter=!1,c.yoyo_rotate=!1,c.yoyo_move=!1,c.yoyo_scale=!1,c.curved=!1,c.curviness=2,c.ease="none",c.speed=1e3,c.st=0,l.x=0,l.y=0,l.z=0,l.xr=0,l.yr=0,l.zr=0,l.scaleX=1,l.scaleY=1,l.originX="50%",l.originY="50%",l.originZ="0",l.rotationX="0deg",l.rotationY="0deg",l.rotationZ="0deg"):(c.speed=300,i?c.ease="default":l.ease="default"),"sfx"===r&&(l.fxc="#ffffff"),e=e.split(";"))if(e.hasOwnProperty(p)){var g=e[p].split(":");switch(g[0]){case"u":l.use="true"===g[1]||"t"===g[1]||fasle;break;case"c":s=g[1];break;case"fxc":l.fxc=g[1];break;case"bgc":n=g[1];break;case"auto":l.auto="t"===g[1]||void 0===g[1]||"true"===g[1];break;case"o":l.opacity=g[1];break;case"oX":l.originX=g[1];break;case"oY":l.originY=g[1];break;case"oZ":l.originZ=g[1];break;case"sX":l.scaleX=g[1];break;case"sY":l.scaleY=g[1];break;case"skX":l.skewX=g[1];break;case"skY":l.skewY=g[1];break;case"rX":l.rotationX=g[1],0!=g[1]&&"0deg"!==g[1]&&o.addSafariFix(t);break;case"rY":l.rotationY=g[1],0!=g[1]&&"0deg"!==g[1]&&o.addSafariFix(t);break;case"rZ":l.rotationZ=g[1];break;case"sc":l.color=g[1];break;case"se":l.effect=g[1];break;case"bos":l.borderStyle=g[1];break;case"boc":l.borderColor=g[1];break;case"td":l.textDecoration=g[1];break;case"zI":l.zIndex=g[1];break;case"tp":l.transformPerspective="isometric"===o[t].perspectiveType?0:"global"===o[t].perspectiveType?o[t].perspective:g[1];break;case"cp":l.clip=parseInt(g[1],0);break;case"cpb":l.clipB=parseInt(g[1],0);break;case"aR":c.autoRotate="t"==g[1];break;case"rA":c.radiusAngle=g[1];break;case"yyf":c.yoyo_filter="t"==g[1];break;case"yym":c.yoyo_move="t"==g[1];break;case"yyr":c.yoyo_rotate="t"==g[1];break;case"yys":c.yoyo_scale="t"==g[1];break;case"crd":c.curved="t"==g[1];break;case"x":l.x="reverse"===r?"t"===g[1]||!0===g[1]||"true"==g[1]:"loop"===r?parseInt(g[1],0):o.revToResp(g[1],o[t].rle);break;case"y":l.y="reverse"===r?"t"===g[1]||!0===g[1]||"true"==g[1]:"loop"===r?parseInt(g[1],0):o.revToResp(g[1],o[t].rle);break;case"z":l.z="loop"===r?parseInt(g[1],0):o.revToResp(g[1],o[t].rle),0!=g[1]&&o.addSafariFix(t);break;case"bow":l.borderWidth=o.revToResp(g[1],4,0).toString().replace(/,/g," ");break;case"bor":l.borderRadius=o.revToResp(g[1],4,0).toString().replace(/,/g," ");break;case"m":l.mask="t"===g[1]||"f"!==g[1]&&g[1];break;case"iC":l.instantClick="t"===g[1]||"f"!==g[1]&&g[1];break;case"xR":l.xr=parseInt(g[1],0),o.addSafariFix(t);break;case"yR":l.yr=parseInt(g[1],0),o.addSafariFix(t);break;case"zR":l.zr=parseInt(g[1],0);break;case"blu":"loop"===r?l.blur=parseInt(g[1],0):d.blur=parseInt(g[1],0);break;case"gra":"loop"===r?l.grayscale=parseInt(g[1],0):d.grayscale=parseInt(g[1],0);break;case"bri":"loop"===r?l.brightness=parseInt(g[1],0):d.brightness=parseInt(g[1],0);break;case"sp":c.speed=parseInt(g[1],0);break;case"d":l.delay=parseInt(g[1],0);break;case"crns":c.curviness=parseInt(g[1],0);break;case"st":c.start="w"===g[1]||"a"===g[1]?"+=0":g[1],c.waitoncall="w"===g[1]||"a"===g[1];break;case"sA":c.startAbsolute=g[1];break;case"sR":c.startRelative=g[1];break;case"e":i?c.ease=g[1]:l.ease=g[1];break;default:g[0].length>0&&(l[g[0]]="t"===g[1]||"f"!==g[1]&&g[1])}}var u={timeline:c};return jQuery.isEmptyObject(d)||("split"===r?l=jQuery.extend(!0,l,d):u.filter=d),"split"===r&&(l.dir=void 0===l.dir?"start":"backward"===l.dir?"end":"middletoedge"===l.dir?"center":"edgetomiddle"===l.dir?"edge":l.dir),jQuery.isEmptyObject(s)||(u.color=s),jQuery.isEmptyObject(n)||(u.bgcolor=n),u[a]=l,u},k=function(e,t){var i={},a=0;if(void 0===window.rdF0){var r=x("x:0;y:0;z:0;rX:0;rY:0;rZ:0;o:0;skX:0;skY:0;sX:0;sY:0;oX:50%;oY:50%;oZ:0;dir:forward;d:5",t).transform;window.rdF0=window.rdF1={transform:x("x:0;y:0;z:0;rX:0;rY:0;rZ:0;o:0;skX:0;skY:0;sX:0;sY:0;oX:50%;oY:50%;oZ:0;tp:600px",t,!0).transform,mask:x("x:0;y:0",t,!0).transform,chars:jQuery.extend(!0,{blur:0,grayscale:0,brightness:100},r),words:jQuery.extend(!0,{blur:0,grayscale:0,brightness:100},r),lines:jQuery.extend(!0,{blur:0,grayscale:0,brightness:100},r)},window.rdF1.transform.opacity=window.rdF1.chars.opacity=window.rdF1.words.opacity=window.rdF1.lines.opacity=window.rdF1.transform.scaleX=window.rdF1.chars.scaleX=window.rdF1.words.scaleX=window.rdF1.lines.scaleX=window.rdF1.transform.scaleY=window.rdF1.chars.scaleY=window.rdF1.words.scaleY=window.rdF1.lines.scaleY=1}for(var a in void 0===e.frame_0&&(e.frame_0="x:0"),void 0===e.frame_1&&(e.frame_1="x:0"),e.dddNeeded=!1,e.ford)if(e.ford.hasOwnProperty(a)){var n=e.ford[a];if(e[n]){if(i[n]=x(e[n],t,!0),void 0!==i[n].bgcolor&&(e.bgcolinuse=!0),o[t].BUG_ie_clipPath&&void 0!==e.clipPath&&e.clipPath.use&&void 0!==i[n].transform.clip){var l="rectangle"===e.clipPath.type?100-parseInt(i[n].transform.clip):100-Math.min(100,2*parseInt(i[n].transform.clip));switch(e.clipPath.origin){case"clr":case"rb":case"rt":case"r":e[n+"_mask"]="u:t;x:"+l+"%;y:0px;",i[n].transform.x=o.revToResp("-"+l+"%",o[t].rle);break;case"crl":case"lb":case"lt":case"cv":case"l":e[n+"_mask"]="u:t;x:-"+l+"%;y:0px;",i[n].transform.x=o.revToResp(l+"%",o[t].rle);break;case"ch":case"t":e[n+"_mask"]="u:t;y:-"+l+"%;y:0px;",i[n].transform.y=o.revToResp(l+"%",o[t].rle);break;case"b":e[n+"_mask"]="u:t;y:"+l+"%;y:0px;",i[n].transform.y=o.revToResp("-"+l+"%",o[t].rle)}delete i[n].transform.clip,delete i[n].transform.clipB}e[n+"_mask"]&&(i[n].mask=x(e[n+"_mask"],t).transform),null!=i[n].mask&&i[n].mask.use?(i[n].mask.x=void 0===i[n].mask.x?0:i[n].mask.x,i[n].mask.y=void 0===i[n].mask.y?0:i[n].mask.y,delete i[n].mask.use,i[n].mask.overflow="hidden"):i[n].mask={ease:"default",overflow:"visible"},e[n+"_chars"]&&(i[n].chars=x(e[n+"_chars"],t,void 0,void 0,"split").transform),e[n+"_words"]&&(i[n].words=x(e[n+"_words"],t,void 0,void 0,"split").transform),e[n+"_lines"]&&(i[n].lines=x(e[n+"_lines"],t,void 0,void 0,"split").transform),(e[n+"_chars"]||e[n+"_words"]||e[n+"_lines"])&&(i[n].dosplit=!0),i.frame_0=void 0===i.frame_0?{transform:{}}:i.frame_0,i[n].transform.auto&&(i[n].transform=jQuery.extend(!0,{},i.frame_0.transform),i[n].transform.opacity=void 0===i[n].transform.opacity?0:i[n].transform.opacity,void 0!==i.frame_0.filter&&(i[n].filter=jQuery.extend(!0,{},i.frame_0.filter)),void 0!==i.frame_0.mask&&(i[n].mask=jQuery.extend(!0,{},i.frame_0.mask)),void 0!==i.frame_0.chars&&(i[n].chars=jQuery.extend(!0,{},i.frame_0.chars)),void 0!==i.frame_0.words&&(i[n].words=jQuery.extend(!0,{},i.frame_0.words)),void 0!==i.frame_0.lines&&(i[n].lines=jQuery.extend(!0,{},i.frame_0.lines))),e[n+"_sfx"]&&(i[n].sfx=x(e[n+"_sfx"],t,!1,void 0,"sfx").transform),e[n+"_reverse"]&&(i[n].reverse=x(e[n+"_reverse"],t,!1,void 0,"reverse").transform)}}if(i.frame_0.dosplit&&(i.frame_1.dosplit=!0),void 0===e.frame_hover&&void 0===e.svgh||(i.frame_hover=x(void 0===e.frame_hover?"":e.frame_hover,t),!s||"true"!=i.frame_hover.transform.instantClick&&1!=i.frame_hover.transform.instantClick?(delete i.frame_hover.transform.instantClick,i.frame_hover.transform.color=i.frame_hover.color,void 0===i.frame_hover.transform.color&&delete i.frame_hover.transform.color,void 0!==i.frame_hover.bgcolor&&i.frame_hover.bgcolor.indexOf("gradient")>=0?i.frame_hover.transform.backgroundImage=i.frame_hover.bgcolor:void 0!==i.frame_hover.bgcolor&&(i.frame_hover.transform.backgroundColor=i.frame_hover.bgcolor),void 0!==i.frame_hover.bgcolor&&(e.bgcolinuse=!0),i.frame_hover.transform.opacity=void 0===i.frame_hover.transform.opacity?1:i.frame_hover.transform.opacity,i.frame_hover.mask=void 0!==i.frame_hover.transform.mask&&i.frame_hover.transform.mask,delete i.frame_hover.transform.mask,void 0!==i.frame_hover.transform&&((i.frame_hover.transform.borderWidth||i.frame_hover.transform.borderStyle)&&(i.frame_hover.transform.borderColor=void 0===i.frame_hover.transform.borderColor?"transparent":i.frame_hover.transform.borderColor),"none"!==i.frame_hover.transform.borderStyle&&void 0===i.frame_hover.transform.borderWidth&&(i.frame_hover.transform.borderWidth=o.revToResp(0,4,0).toString().replace(/,/g," ")),void 0===e.bordercolor&&void 0!==i.frame_hover.transform.borderColor&&(e.bordercolor="transparent"),void 0===e.borderwidth&&void 0!==i.frame_hover.transform.borderWidth&&(e.borderwidth=o.revToResp(i.frame_hover.transform.borderWidth,4,0)),void 0===e.borderstyle&&void 0!==i.frame_hover.transform.borderStyle&&(e.borderstyle=o.revToResp(i.frame_hover.transform.borderStyle,4,0)))):delete i.frame_hover),void 0!==e.tloop){e.layerLoop={from:"frame_1",to:"frame_999",repeat:-1,keep:!0,children:!0};var d=e.tloop.split(";");for(var a in d)if(d.hasOwnProperty(a)){var c=d[a].split(":");switch(c[0]){case"f":e.layerLoop.from=c[1];break;case"t":e.layerLoop.to=c[1];break;case"k":e.layerLoop.keep=c[1];break;case"r":e.layerLoop.repeat=parseInt(c[1],0);break;case"c":e.layerLoop.children=c[1]}}e.layerLoop.count=0}for(var a in(e.loop_0||e.loop_999)&&(i.loop=x(e.loop_999,t,!0,"frame_999","loop"),i.loop.frame_0=x(e.loop_0||"",t,!1,void 0,"loop").transform),i.frame_0.transform.opacity=void 0===i.frame_0.transform.opacity?0:i.frame_0.transform.opacity,i.frame_1.transform.opacity=void 0===i.frame_1.transform.opacity?1:i.frame_1.transform.opacity,i.frame_999.transform.opacity=void 0===i.frame_999.transform.opacity?"inherit":i.frame_999.transform.opacity,e.clipPath&&e.clipPath.use&&(i.frame_0.transform.clip=void 0===i.frame_0.transform.clip?100:parseInt(i.frame_0.transform.clip),i.frame_1.transform.clip=void 0===i.frame_1.transform.clip?100:parseInt(i.frame_1.transform.clip)),e.resetfilter=!1,i)void 0!==i[a].filter&&(e.resetfilter=!0);return e.resetfilter&&(i.frame_0.filter=jQuery.extend(!0,{},i.frame_0.filter),i.frame_0.filter.blur=void 0===i.frame_0.filter.blur?0:i.frame_0.filter.blur,i.frame_0.filter.brightness=void 0===i.frame_0.filter.brightness?100:i.frame_0.filter.brightness,i.frame_0.filter.grayscale=void 0===i.frame_0.filter.grayscale?0:i.frame_0.filter.grayscale),void 0!==i.frame_0.filter&&(i.frame_1.filter=jQuery.extend(!0,{},i.frame_1.filter),void 0!==i.frame_0.filter.blur&&0!==i.frame_1.filter.blur&&(i.frame_1.filter.blur=void 0===i.frame_1.filter.blur?0:i.frame_1.filter.blur),void 0!==i.frame_0.filter.brightness&&100!==i.frame_1.filter.brightness&&(i.frame_1.filter.brightness=void 0===i.frame_1.filter.brightness?100:i.frame_1.filter.brightness),void 0!==i.frame_0.filter.grayscale&&0!==i.frame_1.filter.grayscale&&(i.frame_1.filter.grayscale=void 0===i.frame_1.filter.grayscale?0:i.frame_1.filter.grayscale)),S(i,t)},S=function(e,t){var i,a={},r=["transform","words","chars","lines","mask"],s="global"==o[t].perspectiveType?o[t].perspective:0,n=!0;for(var l in e)"loop"!==l&&"frame_hover"!==l&&(a=jQuery.extend(!0,a,e[l]));for(var l in e)if(e.hasOwnProperty(l)&&(void 0!==e[l].timeline&&(e[l].timeline.usePerspective=!1),"loop"!==l&&"frame_hover"!==l)){for(i in a.transform)a.transform.hasOwnProperty(i)&&(a.transform[i]=void 0===e[l].transform[i]?"frame_0"===l?window.rdF0.transform[i]:"frame_1"===l?window.rdF1.transform[i]:a.transform[i]:e[l].transform[i],e[l].transform[i]=void 0===e[l].transform[i]?a.transform[i]:e[l].transform[i]);for(var d=1;d<=4;d++)for(i in a[r[d]])a[r[d]].hasOwnProperty(i)&&(e[l][r[d]]=void 0===e[l][r[d]]?{}:e[l][r[d]],a[r[d]][i]=void 0===e[l][r[d]][i]?"frame_0"===l?window.rdF0[r[d]][i]:"frame_1"===l?window.rdF1[r[d]][i]:a[r[d]][i]:e[l][r[d]][i],e[l][r[d]][i]=void 0===e[l][r[d]][i]?a[r[d]][i]:e[l][r[d]][i]);void 0===e[l].timeline||!1!==e[l].timeline.usePerspective||void 0===e[l].transform||void 0===e[l].transform.rotationY&&void 0===e[l].transform.rotationX&&void 0===e[l].transform.z||(s="local"==o[t].perspectiveType?void 0===e[l].transform.transformPerspective?600:e[l].transform.transformPerspective:s,e[l].timeline.usePerspective=!0,n=!1)}if(void 0!==e.frame_0.timeline&&e.frame_0.timeline.usePerspective&&(e.frame_0.transform.transformPerspective="local"===o[t].perspectiveType?void 0===e.frame_0.transform.transformPerspective?s:e.frame_0.transform.transformPerspective:"isometric"===o[t].perspectiveType?0:o[t].perspective),n)for(var l in e){if(!e.hasOwnProperty(l)||void 0===e[l].transform)continue;delete e[l].transform.transformPerspective}return e},L=function(e,t,i){if(0===e.length)return{};for(var a=e[0].getElementsByClassName(t),r={},o=0;o<a.length;o++)void 0!==i&&-1!==a[o].className.indexOf(i)||(r[a[o].id]=a[o]);return r},T=function(e){return"thin"===(e=jQuery.isNumeric(e)?e:e.toLowerCase())?"00":"extra light"===e?200:"light"===e?300:"normal"===e?400:"medium"===e?500:"semi bold"===e?600:"bold"===e?700:"extra bold"===e?800:"ultra bold"===e?900:"black"===e?900:e},O=function(e,t,s){var n;if("BR"==e[0].nodeName||"br"==e[0].tagName||"object"!=typeof e[0].className&&e[0].className.indexOf("rs_splitted_")>=0)return!1;o.sA(e[0],"stylerecorder",!0);var l=window.getComputedStyle(e[0],null),d=void 0!==e[0].id&&void 0!==o[s]._L[e[0].id]?o[s]._L[e[0].id]:e.data(),c="rekursive"===t?e.closest(".rs-layer"):void 0,p=void 0!==c&&l.fontSize==c.css("fontSize")&&T(l.fontWeight)==T(c.css("fontWeight"))&&l.lineHeight==c.css("lineHeight"),g=p?void 0!==c[0].id&&void 0!==o[s]._L[c[0].id]?o[s]._L[c[0].id]:c.data():void 0,u=0;for(d.basealign=void 0===d.basealign?"grid":d.basealign,d._isnotext||(d.fontSize=o.revToResp(p?void 0===g.fontsize?parseInt(c.css("fontSize"),0)||20:g.fontsize:void 0===d.fontsize?"rekursive"!==t?20:"inherit":d.fontsize,o[s].rle),d.fontWeight=o.revToResp(p?void 0===g.fontweight?c.css("fontWeight")||"inherit":g.fontweight:void 0===d.fontweight?e.css("fontWeight")||"inherit":d.fontweight,o[s].rle),d.whiteSpace=o.revToResp(p?void 0===g.whitespace?"nowrap":g.whitespace:void 0===d.whitespace?"nowrap":d.whitespace,o[s].rle),d.textAlign=o.revToResp(p?void 0===g.textalign?"left":g.textalign:void 0===d.textalign?"left":d.textalign,o[s].rle),d.letterSpacing=o.revToResp(p?void 0===g.letterspacing?parseInt(c.css("letterSpacing"),0)||"inherit":g.letterspacing:void 0===d.letterspacing?parseInt("normal"===l.letterSpacing?0:l.letterSpacing,0)||"inherit":d.letterspacing,o[s].rle),d.textDecoration=p?void 0===g.textDecoration?"none":g.textDecoration:void 0===d.textDecoration?"none":d.textDecoration,u=25,u=void 0!==c&&"I"===e[0].tagName?"inherit":u,void 0!==d.tshadow&&(d.tshadow.b=o.revToResp(d.tshadow.b,o[s].rle),d.tshadow.h=o.revToResp(d.tshadow.h,o[s].rle),d.tshadow.v=o.revToResp(d.tshadow.v,o[s].rle))),void 0!==d.bshadow&&(d.bshadow.b=o.revToResp(d.bshadow.b,o[s].rle),d.bshadow.h=o.revToResp(d.bshadow.h,o[s].rle),d.bshadow.v=o.revToResp(d.bshadow.v,o[s].rle),d.bshadow.s=o.revToResp(d.bshadow.s,o[s].rle)),d.display=p?void 0===g.display?c.css("display"):g.display:void 0===d.display?l.display:d.display,d.float=o.revToResp(p?void 0===g.float?c.css("float")||"none":g.float:void 0===d.float?"none":d.float,o[s].rle),d.clear=o.revToResp(p?void 0===g.clear?c.css("clear")||"none":g.clear:void 0===d.clear?"none":d.clear,o[s].rle),d.lineHeight=o.revToResp(e.is("img")||-1!=jQuery.inArray(d.layertype,["video","image","audio"])?u:p?void 0===g.lineheight?parseInt(c.css("lineHeight"),0)||u:g.lineheight:void 0===d.lineheight?u:d.lineheight,o[s].rle),d.zIndex=p?void 0===g.zindex?parseInt(c.css("zIndex"),0)||"inherit":g.zindex:void 0===d.zindex?parseInt(l.zIndex,0)||"inherit":d.zindex,n=0;n<4;n++)d["padding"+i[n]]=o.revToResp(void 0===d["padding"+r[n]]?parseInt(l["padding"+i[n]],0)||0:d["padding"+r[n]],o[s].rle),d["margin"+i[n]]=o.revToResp(void 0===d["margin"+r[n]]?parseInt(l["margin"+i[n]],0)||0:d["margin"+r[n]],o[s].rle),d["border"+i[n]+"Width"]=void 0===d.borderwidth?parseInt(l["border"+i[n]+"Width"],0)||0:d.borderwidth[n],d["border"+i[n]+"Color"]=void 0===d.bordercolor?l["border-"+r[n]+"-color"]:d.bordercolor,d["border"+a[n]+"Radius"]=o.revToResp(void 0===d.borderradius?l["border"+a[n]+"Radius"]||0:d.borderradius[n],o[s].rle);for(d.borderStyle=o.revToResp(void 0===d.borderstyle?l.borderStyle||0:d.borderstyle,o[s].rle),"rekursive"!==t?(d.color=o.revToResp(void 0===d.color?"#ffffff":d.color,o[s].rle,void 0,"||"),d.minWidth=o.revToResp(void 0===d.minwidth?parseInt(l.minWidth,0)||0:d.minwidth,o[s].rle),d.minHeight=o.revToResp(void 0===d.minheight?parseInt(l.minHeight,0)||0:d.minheight,o[s].rle),d.width=o.revToResp(void 0===d.width?"auto":o.smartConvertDivs(d.width),o[s].rle),d.height=o.revToResp(void 0===d.height?"auto":o.smartConvertDivs(d.height),o[s].rle),d.maxWidth=o.revToResp(void 0===d.maxwidth?parseInt(l.maxWidth,0)||"none":d.maxwidth,o[s].rle),d.maxHeight=o.revToResp(-1!==jQuery.inArray(d.type,["column","row"])?"none":void 0!==d.maxheight?parseInt(l.maxHeight,0)||"none":d.maxheight,o[s].rle)):"html"===d.layertype&&(d.width=o.revToResp(e[0].width,o[s].rle),d.height=o.revToResp(e[0].height,o[s].rle)),d.styleProps={background:e[0].style.background,"background-color":e[0].style["background-color"],color:e[0].style.color,cursor:e[0].style.cursor,"font-style":e[0].style["font-style"]},null==d.bshadow&&(d.styleProps.boxShadow=e[0].style.boxShadow),""!==d.styleProps.background&&void 0!==d.styleProps.background&&d.styleProps.background!==d.styleProps["background-color"]||delete d.styleProps.background,""==d.styleProps.color&&(d.styleProps.color=l.color),n=0;n<4;n++)A(d["padding"+i[n]],0)&&delete d["padding"+i[n]],A(d["margin"+i[n]],0)&&delete d["margin"+i[n]],A(d["border"+a[n]+"Radius"],"0px")?delete d["border"+a[n]+"Radius"]:A(d["border"+a[n]+"Radius"],"0")&&delete d["border"+a[n]+"Radius"];if(A(d.borderStyle,"none"))for(delete d.borderStyle,n=0;n<4;n++)delete d["border"+i[n]+"Width"],delete d["border"+i[n]+"Color"]},A=function(e,t){return t===e[0]&&t===e[1]&&t===e[2]&&t===e[3]},R=function(e,t,i,a,r){var o=jQuery.isNumeric(e)||void 0===e?"":e.indexOf("px")>=0?"px":e.indexOf("%")>=0?"%":"";return e=jQuery.isNumeric(parseInt(e))?parseInt(e):e,e=null==(e="full"===(e=jQuery.isNumeric(e)?e*t+o:e)?a:"auto"===e||"none"===e?i:e)?r:e},I=function(e){return null!=e&&0!==parseInt(e,0)},z=function(e){var t,s,n,l,d,c,p,g,u,h,m=e.a,f=e.b,v=e.c,y=e.d,b=e.e,_={},w={},x=o[f]._L[m[0].id],k=m[0].className;if(x=void 0===x?{}:x,"object"==typeof k&&(k=""),void 0!==m&&void 0!==m[0]&&(k.indexOf("rs_splitted")>=0||"BR"==m[0].nodeName||"br"==m[0].tagName||m[0].tagName.indexOf("FCR")>0||m[0].tagName.indexOf("BCR")>0))return!1;b="individual"===b?x.slideIndex:b;e=function(e,t,r){if(void 0!==e){if("BR"==e[0].nodeName||"br"==e[0].tagName)return!1;var s,n=o[t].level,l=void 0!==e[0]&&void 0!==e[0].id&&void 0!==o[t]._L[e[0].id]?o[t]._L[e[0].id]:e.data();void 0===(l=void 0===l.basealign?r.data():l)._isnotext&&(l._isnotext=void 0!==r&&void 0!==r[0]&&r[0].length>0?o.gA(r[0],"_isnotext"):l._isnotext);var d={basealign:void 0===l.basealign?"grid":l.basealign,lineHeight:void 0===l.basealign?"inherit":parseInt(l.lineHeight[n]),color:void 0===l.color?void 0:l.color[n],width:void 0===l.width?void 0:"a"===l.width[n]?"auto":l.width[n],height:void 0===l.height?void 0:"a"===l.height[n]?"auto":l.height[n],minWidth:void 0===l.minWidth?void 0:"n"===l.minWidth[n]?"none":l.minWidth[n],minHeight:void 0===l.minHeight?void 0:"n"==l.minHeight[n]?"none":l.minHeight[n],maxWidth:void 0===l.maxWidth?void 0:"n"==l.maxWidth[n]?"none":l.maxWidth[n],maxHeight:void 0===l.maxHeight?void 0:"n"==l.maxHeight[n]?"none":l.maxHeight[n],float:l.float[n],clear:l.clear[n]};for(l.borderStyle&&(d.borderStyle=l.borderStyle[n]),s=0;s<4;s++)l["padding"+i[s]]&&(d["padding"+i[s]]=l["padding"+i[s]][n]),l["margin"+i[s]]&&(d["margin"+i[s]]=parseInt(l["margin"+i[s]][n])),l["border"+a[s]+"Radius"]&&(d["border"+a[s]+"Radius"]=l["border"+a[s]+"Radius"][n]),l["border"+i[s]+"Color"]&&(d["border"+i[s]+"Color"]=l["border"+i[s]+"Color"]),l["border"+i[s]+"Width"]&&(d["border"+i[s]+"Width"]=parseInt(l["border"+i[s]+"Width"]));return l._isnotext||(d.textDecoration=l.textDecoration,d.fontSize=parseInt(l.fontSize[n]),d.fontWeight=parseInt(l.fontWeight[n]),d.letterSpacing=parseInt(l.letterSpacing[n])||0,d.textAlign=l.textAlign[n],d.whiteSpace=l.whiteSpace[n],d.whiteSpace="normal"===d.whiteSpace&&"auto"===d.width&&!0!==l._incolumn?"nowrap":d.whiteSpace,d.display=l.display,void 0!==l.tshadow&&(d.textShadow=parseInt(l.tshadow.h[n],0)+"px "+parseInt(l.tshadow.v[n],0)+"px "+l.tshadow.b[n]+" "+l.tshadow.c),void 0!==l.tstroke&&(d.textStroke=parseInt(l.tstroke.w,0)+"px "+l.tstroke.c)),void 0!==l.bshadow&&(d.boxShadow=parseInt(l.bshadow.h[n],0)+"px "+parseInt(l.bshadow.v[n],0)+"px "+parseInt(l.bshadow.b[n],0)+"px "+parseInt(l.bshadow.s[n],0)+"px "+l.bshadow.c),d}}(m,f,e.RSL);var S,L="off"===y?1:o[f].bw;if(void 0===x._isnotext&&(x._isnotext=void 0!==e.RSL&&void 0!==e.RSL[0]&&e.RSL[0].length>0?o.gA(e.RSL[0],"_isnotext"):x._isnotext),x.OBJUPD=null==x.OBJUPD?{}:x.OBJUPD,x.caches=null==x.caches?{}:x.caches,"column"===x.type){for(s={},S={},t=0;t<4;t++)void 0!==e["margin"+i[t]]&&(s["padding"+i[t]]=Math.round(e["margin"+i[t]]*L)+"px",S["margin"+i[t]]=e["margin"+i[t]],delete e["margin"+i[t]]);jQuery.isEmptyObject(s)||tpGS.gsap.set(x._column,s)}var T=jQuery.extend(!0,{},x.OBJUPD.POBJ),O=jQuery.extend(!0,{},x.OBJUPD.LPOBJ);if(-1===k.indexOf("rs_splitted_")){for(s={overwrite:"auto"},t=0;t<4;t++)void 0!==e["border"+a[t]+"Radius"]&&(s["border"+a[t]+"Radius"]=e["border"+a[t]+"Radius"]),void 0!==e["padding"+i[t]]&&(s["padding"+i[t]]=Math.round(e["padding"+i[t]]*L)+"px"),void 0===e["margin"+i[t]]||x._incolumn||(s["margin"+i[t]]="row"===x.type?0:Math.round(e["margin"+i[t]]*L)+"px");if(void 0!==x.spike&&(s["clip-path"]=s["-webkit-clip-path"]=x.spike),e.boxShadow&&(s.boxShadow=e.boxShadow),"column"!==x.type&&(void 0!==e.borderStyle&&"none"!==e.borderStyle&&(0!==e.borderTopWidth||e.borderBottomWidth>0||e.borderLeftWidth>0||e.borderRightWidth>0)?(s.borderTopWidth=Math.round(e.borderTopWidth*L)+"px",s.borderBottomWidth=Math.round(e.borderBottomWidth*L)+"px",s.borderLeftWidth=Math.round(e.borderLeftWidth*L)+"px",s.borderRightWidth=Math.round(e.borderRightWidth*L)+"px",s.borderStyle=e.borderStyle,s.borderTopColor=e.borderTopColor,s.borderBottomColor=e.borderBottomColor,s.borderLeftColor=e.borderLeftColor,s.borderRightColor=e.borderRightColor):("none"===e.borderStyle&&(s.borderStyle="none"),s.borderTopColor=e.borderTopColor,s.borderBottomColor=e.borderBottomColor,s.borderLeftColor=e.borderLeftColor,s.borderRightColor=e.borderRightColor)),"shape"!==x.type&&"image"!==x.type||!(I(e.borderTopLeftRadius)||I(e.borderTopRightRadius)||I(e.borderBottomLeftRadius)||I(e.borderBottomRightRadius))||(s.overflow="hidden"),x._isnotext||("column"!==x.type&&(s.fontSize=Math.round(e.fontSize*L)+"px",s.fontWeight=e.fontWeight,s.letterSpacing=e.letterSpacing*L+"px",e.textShadow&&(s.textShadow=e.textShadow),e.textStroke&&(s["-webkit-text-stroke"]=e.textStroke)),s.lineHeight=Math.round(e.lineHeight*L)+"px",s.textAlign=e.textAlign),"column"===x.type&&(void 0===x.cbg_set&&(x.cbg_set=x.styleProps["background-color"],x.cbg_set=""==x.cbg_set||void 0===x.cbg_set||0==x.cbg_set.length?"transparent":x.cbg_set,x.cbg_img=m.css("backgroundImage"),""!==x.cbg_img&&void 0!==x.cbg_img&&"none"!==x.cbg_img&&(x.cbg_img_r=m.css("backgroundRepeat"),x.cbg_img_p=m.css("backgroundPosition"),x.cbg_img_s=m.css("backgroundSize")),x.cbg_o=x.bgopacity?1:x.bgopacity,_.backgroundColor="transparent",_.backgroundImage=""),s.backgroundColor="transparent",s.backgroundImage="none"),x._isstatic&&x.elementHovered&&(p=m.data("frames"))&&p.frame_hover&&p.frame_hover.transform)for(g in s)s.hasOwnProperty(g)&&p.frame_hover.transform.hasOwnProperty(g)&&delete s[g];if("IFRAME"==m[0].nodeName&&"html"===o.gA(m[0],"layertype")&&(u="slide"==e.basealign?o[f].width:o.iWA(f,b),h="slide"==e.basealign?o[f].height:o.iHE(f),s.width=!jQuery.isNumeric(e.width)&&e.width.indexOf("%")>=0?!x._isstatic||x._incolumn||x._ingroup?e.width:u*parseInt(e.width,0)/100:R(e.width,L,"auto",u,"auto"),s.height=!jQuery.isNumeric(e.height)&&e.height.indexOf("%")>=0?!x._isstatic||x._incolumn||x._ingroup?e.height:h*parseInt(e.height,0)/100:R(e.height,L,"auto",u,"auto")),_=jQuery.extend(!0,_,s),"rekursive"!=v){u="slide"==e.basealign?o[f].width:o.iWA(f,b),h="slide"==e.basealign?o[f].height:o.iHE(f);var A=!jQuery.isNumeric(e.width)&&e.width.indexOf("%")>=0?!x._isstatic||x._incolumn||x._ingroup?e.width:u*parseInt(e.width,0)/100:R(e.width,L,"auto",u,"auto"),z=!jQuery.isNumeric(e.height)&&e.height.indexOf("%")>=0?!x._isstatic||x._incolumn||x._ingroup?e.height:h*parseInt(e.height,0)/100:R(e.height,L,"auto",u,"auto"),C={maxWidth:R(e.maxWidth,L,"none",u,"none"),maxHeight:R(e.maxHeight,L,"none",h,"none"),minWidth:R(e.minWidth,L,"0px",u,0),minHeight:R(e.minHeight,L,"0px",h,0),height:z,width:A,overwrite:"auto"};if(1==x.heightSetByVideo&&(C.height=x.vidOBJ.height),x._incolumn){for(T=jQuery.extend(!0,T,{minWidth:A,maxWidth:A,float:e.float,clear:e.clear}),t=0;t<4;t++)void 0!==e["margin"+i[t]]&&(T["margin"+i[t]]=e["margin"+i[t]]*L+"px");O.width="100%",void 0!==e.display&&"inline-block"!==e.display||(w={width:"100%"}),C.width=!jQuery.isNumeric(e.width)&&e.width.indexOf("%")>=0?"100%":A,"image"===x.type&&tpGS.gsap.set(x.img,{width:C.width})}else!jQuery.isNumeric(e.width)&&e.width.indexOf("%")>=0&&(T.minWidth="slide"===x.basealign||!0===x._ingroup?A:o.iWA(f,b)*o[f].bw*parseInt(A)/100+"px",O.width="100%",w.width="100%");if(!jQuery.isNumeric(e.height)&&e.height.indexOf("%")>=0&&(T.minHeight="slide"===x.basealign||!0===x._ingroup?z:o.iHE(f)*(o[f].keepBPHeight||o[f].currentRowsHeight>o[f].gridheight[o[f].level]?1:o[f].bw)*parseInt(z)/100+"px",O.height="100%",w.height="100%"),x._isnotext||(C.whiteSpace=e.whiteSpace,C.textAlign=e.textAlign,C.textDecoration=e.textDecoration),"npc"!=e.color&&void 0!==e.color&&(C.color=e.color),x._ingroup&&(x._groupw=C.minWidth,x._grouph=C.minHeight),"row"===x.type&&(jQuery.isNumeric(C.minHeight)||C.minHeight.indexOf("px")>=0)&&"0px"!==C.minHeight&&0!==C.minHeight&&"0"!==C.minHeight&&"none"!==C.minHeight?C.height=C.minHeight:"row"===x.type&&(C.height="auto"),x._isstatic&&x.elementHovered&&(p=m.data("frames"))&&p.frame_hover&&p.frame_hover.transform)for(g in C)C.hasOwnProperty(g)&&p.frame_hover.transform.hasOwnProperty(g)&&delete C[g];"group"!==x.type&&"row"!==x.type&&"column"!==x.type&&(!jQuery.isNumeric(C.width)&&C.width.indexOf("%")>=0&&(C.width="100%"),!jQuery.isNumeric(C.height)&&C.height.indexOf("%")>=0&&(C.height="100%")),x._isgroup&&(!jQuery.isNumeric(C.width)&&C.width.indexOf("%")>=0&&(C.width="100%"),T.height=C.height),_=jQuery.extend(!0,_,C),null!=x.svg_src&&void 0!==x.svgI&&("string"==typeof x.svgI.fill&&(x.svgI.fill=[x.svgI.fill]),x.svgTemp=jQuery.extend(!0,{},x.svgI),x.svgTemp.fill=x.svgTemp.fill[o[f].level],tpGS.gsap.set(x.svg,x.svgTemp),tpGS.gsap.set(x.svgPath,{fill:x.svgI.fill[o[f].level]}))}if("row"===x.type)for(t=0;t<4;t++)void 0!==e["margin"+i[t]]&&(T["padding"+i[t]]=e["margin"+i[t]]*L+"px");if("column"===x.type&&x.cbg&&x.cbg.length>0){for(void 0!==x.cbg_img_s&&(x.cbg[0].style.backgroundSize=x.cbg_img_s),s={},""!==x.styleProps.cursor&&(s.cursor=x.styleProps.cursor),""!==x.cbg_set&&"transparent"!==x.cbg_set&&(s.backgroundColor=x.cbg_set),""!==x.cbg_img&&"none"!==x.cbg_img&&(s.backgroundImage=x.cbg_img,""!==x.cbg_img_r&&(s.backgroundRepeat=x.cbg_img_r),""!==x.cbg_img_p&&(s.backgroundPosition=x.cbg_img_p)),""!==x.cbg_o&&void 0!==x.cbg_o&&(s.opacity=x.cbg_o),t=0;t<4;t++)void 0!==e.borderStyle&&"none"!==e.borderStyle&&(void 0!==e["border"+i[t]+"Width"]&&(s["border"+i[t]+"Width"]=Math.round(parseInt(e["border"+i[t]+"Width"])*L)+"px"),void 0!==e["border"+i[t]+"Color"]&&(s["border"+i[t]+"Color"]=e["border"+i[t]+"Color"])),e["border"+a[t]+"Radius"]&&(s["border"+a[t]+"Radius"]=e["border"+a[t]+"Radius"]);for(void 0!==e.borderStyle&&"none"!==e.borderStyle&&(s.borderStyle=e.borderStyle),(n=JSON.stringify(s))!==o[f].emptyObject&&n!==x.caches.cbgS&&tpGS.gsap.set(x.cbg,s),x.caches.cbgS=n,s={},t=0;t<4;t++)S["margin"+i[t]]&&(s[r[t]]=S["margin"+i[t]]*L+"px");(n=JSON.stringify(s))!==o[f].emptyObject&&n!==x.caches.cbgmaskS&&(tpGS.gsap.set(x.cbgmask,s),x.caches.cbgmaskS=n)}"auto"===T.maxWidth&&(T.maxWidth="inherit"),"auto"===T.maxHeight&&(T.maxHeight="inherit"),"auto"===w.maxWidth&&(w.maxWidth="inherit"),"auto"===w.maxHeight&&(w.maxHeight="inherit"),"auto"===O.maxWidth&&(O.maxWidth="inherit"),"auto"===O.maxHeight&&(O.maxHeight="inherit"),void 0!==x.vidOBJ&&(_.width=x.vidOBJ.width,_.height=x.vidOBJ.height),void 0!==x.OBJUPD.lppmOBJ&&(void 0!==x.OBJUPD.lppmOBJ.minWidth&&(O.minWidth=x.OBJUPD.lppmOBJ.minWidth,w.minWidth=x.OBJUPD.lppmOBJ.minWidth,T.minWidth=x.OBJUPD.lppmOBJ.minWidth),void 0!==x.OBJUPD.lppmOBJ.minHeight&&(O.minHeight=x.OBJUPD.lppmOBJ.minHeight,w.minHeight=x.OBJUPD.lppmOBJ.minHeight,T.minHeight=x.OBJUPD.lppmOBJ.minHeight)),n=JSON.stringify(_),l=JSON.stringify(O),d=JSON.stringify(w),c=JSON.stringify(T),void 0===x.imgOBJ||void 0!==x.caches.imgOBJ&&x.caches.imgOBJ.width===x.imgOBJ.width&&x.caches.imgOBJ.height===x.imgOBJ.height&&x.caches.imgOBJ.left===x.imgOBJ.left&&x.caches.imgOBJ.right===x.imgOBJ.right&&x.caches.imgOBJ.top===x.imgOBJ.top&&x.caches.imgOBJ.bottom===x.imgOBJ.bottom||(x.caches.imgOBJ=jQuery.extend(!0,{},x.imgOBJ),x.imgOBJ.position="relative",tpGS.gsap.set(x.img,x.imgOBJ)),void 0===x.mediaOBJ||void 0!==x.caches.mediaOBJ&&x.caches.mediaOBJ.width===x.mediaOBJ.width&&x.caches.mediaOBJ.height===x.mediaOBJ.height&&x.caches.mediaOBJ.display===x.mediaOBJ.display||(x.caches.mediaOBJ=jQuery.extend(!0,{},x.mediaOBJ),x.media.css(x.mediaOBJ)),n!=o[f].emptyObject&&n!=x.caches.LOBJ&&(tpGS.gsap.set(m,_),x.caches.LOBJ=n),l!=o[f].emptyObject&&l!=x.caches.LPOBJ&&(tpGS.gsap.set(x.lp,O),x.caches.LPOBJ=l),d!=o[f].emptyObject&&d!=x.caches.MOBJ&&(tpGS.gsap.set(x.m,w),x.caches.MOBJ=d),c!=o[f].emptyObject&&c!=x.caches.POBJ&&(tpGS.gsap.set(x.p,T),x.caches.POBJ=c,x.caches.POBJ_LEFT=T.left,x.caches.POBJ_TOP=T.top)}},C=function(e){var t={l:"none",lw:10,r:"none",rw:10};for(var i in e=e.split(";"))if(e.hasOwnProperty(i)){var a=e[i].split(":");switch(a[0]){case"l":t.l=a[1];break;case"r":t.r=a[1];break;case"lw":t.lw=a[1];break;case"rw":t.rw=a[1]}}return"polygon("+P(t.l,0,parseFloat(t.lw))+","+P(t.r,100,100-parseFloat(t.rw),!0)+")"},P=function(e,t,i,a){var r;switch(e){case"none":r=t+"% 100%,"+t+"% 0%";break;case"top":r=i+"% 100%,"+t+"% 0%";break;case"middle":r=i+"% 100%,"+t+"% 50%,"+i+"% 0%";break;case"bottom":r=t+"% 100%,"+i+"% 0%";break;case"two":r=i+"% 100%,"+t+"% 75%,"+i+"% 50%,"+t+"% 25%,"+i+"% 0%";break;case"three":r=t+"% 100%,"+i+"% 75%,"+t+"% 50%,"+i+"% 25%,"+t+"% 0%";break;case"four":r=t+"% 100%,"+i+"% 87.5%,"+t+"% 75%,"+i+"% 62.5%,"+t+"% 50%,"+i+"% 37.5%,"+t+"% 25%,"+i+"% 12.5%,"+t+"% 0%";break;case"five":r=t+"% 100%,"+i+"% 90%,"+t+"% 80%,"+i+"% 70%,"+t+"% 60%,"+i+"% 50%,"+t+"% 40%,"+i+"% 30%,"+t+"% 20%,"+i+"% 10%,"+t+"% 0%"}if(a){var o=r.split(",");for(var i in r="",o)o.hasOwnProperty(i)&&(r+=o[o.length-1-i]+(i<o.length-1?",":""))}return r}}(jQuery),function(e){"use strict";var t=jQuery.fn.revolution,i=t.is_mobile();function a(e,i){var a=new Object({single:".tp-"+i,c:t[e].cpar.find(".tp-"+i+"s")});return a.mask=a.c.find(".tp-"+i+"-mask"),a.wrap=a.c.find(".tp-"+i+"s-inner-wrapper"),a}jQuery.extend(!0,t,{hideUnHideNav:function(e){window.requestAnimationFrame(function(){var i=!1;p(t[e].navigation.arrows)&&(i=S(t[e].navigation.arrows,e,i)),p(t[e].navigation.bullets)&&(i=S(t[e].navigation.bullets,e,i)),p(t[e].navigation.thumbnails)&&(i=S(t[e].navigation.thumbnails,e,i)),p(t[e].navigation.tabs)&&(i=S(t[e].navigation.tabs,e,i)),k(e),i&&t.manageNavigation(e)})},resizeThumbsTabs:function(e,i){if(void 0!==t[e]&&t[e].navigation.use&&(t[e].navigation&&t[e].navigation.bullets.enable||t[e].navigation&&t[e].navigation.tabs.enable||t[e].navigation&&t[e].navigation.thumbnails.enable)){var a=(t.winW-480)/500,r=tpGS.gsap.timeline(),s=t[e].navigation.tabs,n=t[e].navigation.thumbnails,l=t[e].navigation.bullets;if(r.pause(),a=a>1?1:a<0?0:a,p(s)&&(i||s.width>s.min_width)&&o(e,a,r,t[e].c,s,t[e].slideamount,"tab"),p(n)&&(i||n.width>n.min_width)&&o(e,a,r,t[e].c,n,t[e].slideamount,"thumb",e),p(l)&&i){var d=t[e].c.find(".tp-bullets");d.find(".tp-bullet").each(function(e){var t=jQuery(this),i=e+1,a=t.outerWidth()+parseInt(void 0===l.space?0:l.space,0),r=t.outerHeight()+parseInt(void 0===l.space?0:l.space,0);"vertical"===l.direction?(t.css({top:(i-1)*r+"px",left:"0px"}),d.css({height:(i-1)*r+t.outerHeight(),width:t.outerWidth()})):(t.css({left:(i-1)*a+"px",top:"0px"}),d.css({width:(i-1)*a+t.outerWidth(),height:t.outerHeight()}))})}r.play(),k(e)}return!0},updateNavIndexes:function(e){var i=t[e].c;function a(e){i.find(e).lenght>0&&i.find(e).each(function(e){jQuery(this).data("liindex",e)})}a("rs-tab"),a("rs-bullet"),a("rs-thumb"),t.resizeThumbsTabs(e,!0),t.manageNavigation(e)},manageNavigation:function(e,i){if(t[e].navigation.use){void 0===t[e].navOutterOffsets&&(t[e].navOutterOffsets=t.getHorizontalOffset(t[e].c,"all"));var a=t[e].navOutterOffsets.left,o=t[e].navOutterOffsets.right;p(t[e].navigation.bullets)&&("fullscreen"!=t[e].sliderLayout&&"fullwidth"!=t[e].sliderLayout&&(t[e].navigation.bullets.h_offset_old=void 0===t[e].navigation.bullets.h_offset_old?parseInt(t[e].navigation.bullets.h_offset,0):t[e].navigation.bullets.h_offset_old,t[e].navigation.bullets.h_offset="center"===t[e].navigation.bullets.h_align?t[e].navigation.bullets.h_offset_old+a/2-o/2:t[e].navigation.bullets.h_offset_old+a-o),_(t[e].navigation.bullets.c,t[e].navigation.bullets,e)),p(t[e].navigation.thumbnails)&&_(t[e].navigation.thumbnails,e),p(t[e].navigation.tabs)&&_(t[e].navigation.tabs,e),p(t[e].navigation.arrows)&&("fullscreen"!=t[e].sliderLayout&&"fullwidth"!=t[e].sliderLayout&&(t[e].navigation.arrows.left.h_offset_old=void 0===t[e].navigation.arrows.left.h_offset_old?parseInt(t[e].navigation.arrows.left.h_offset,0):t[e].navigation.arrows.left.h_offset_old,t[e].navigation.arrows.left.h_offset="right"===t[e].navigation.arrows.left.h_align?t[e].navigation.arrows.left.h_offset_old+o:t[e].navigation.arrows.left.h_offset_old+a,t[e].navigation.arrows.right.h_offset_old=void 0===t[e].navigation.arrows.right.h_offset_old?parseInt(t[e].navigation.arrows.right.h_offset,0):t[e].navigation.arrows.right.h_offset_old,t[e].navigation.arrows.right.h_offset="right"===t[e].navigation.arrows.right.h_align?t[e].navigation.arrows.right.h_offset_old+o:t[e].navigation.arrows.right.h_offset_old+a),_(t[e].navigation.arrows.left,e),_(t[e].navigation.arrows.right,e)),!1!==i&&(p(t[e].navigation.thumbnails)&&r(t[e].navigation.thumbnails,e),p(t[e].navigation.tabs)&&r(t[e].navigation.tabs,e))}},showFirstTime:function(e){u(e),jQuery.isEmptyObject(t[e].caches.contWidthManager)&&t.callContWidthManager(e),t.hideUnHideNav(e)},selectNavElement:function(e,i,a,r){for(var o=t[e].cpar[0].getElementsByClassName(a),s=0;s<o.length;s++)t.gA(o[s],"key")===i?(o[s].classList.add("selected"),void 0!==r&&r()):o[s].classList.remove("selected")},transferParams:function(e,t){if(void 0!==t)for(var i in t.params)e=e.replace(t.params[i].from,t.params[i].to);return e},updateNavElementContent:function(e,i,a,o,s){if(void 0!==t[e].pr_next_key||void 0!==t[e].pr_active_key){var n=void 0===t[e].pr_next_key?void 0===t[e].pr_cache_pr_next_key?t[e].pr_active_key:t[e].pr_cache_pr_next_key:t[e].pr_next_key,l=t.gA(t[e].slides[n],"key"),d=0,c=!1;for(var p in a.enable&&t.selectNavElement(e,l,"tp-bullet"),o.enable&&t.selectNavElement(e,l,"tp-thumb",function(){r(o,e)}),s.enable&&t.selectNavElement(e,l,"tp-tab",function(){r(s,e)}),t[e].thumbs)d=!0===c?d:p,c=t[e].thumbs[p].id===l||p==l||c;var g=(d=parseInt(d,0))>0?d-1:t[e].slideamount-1,u=d+1==t[e].slideamount?0:d+1;if(!0===i.enable&&i.pi!==g&&i.ni!==u){if(i.pi=g,i.ni=u,i.left.c[0].innerHTML=t.transferParams(i.tmp,t[e].thumbs[g]),u>t[e].slideamount)return;i.right.c[0].innerHTML=t.transferParams(i.tmp,t[e].thumbs[u]),i.right.iholder=i.right.c.find(".tp-arr-imgholder"),i.left.iholder=i.left.c.find(".tp-arr-imgholder"),i.rtl?(void 0!==i.left.iholder[0]&&tpGS.gsap.set(i.left.iholder,{backgroundImage:"url("+t[e].thumbs[u].src+")"}),void 0!==t[e].thumbs[g]&&void 0!==i.right.iholder[0]&&tpGS.gsap.set(i.right.iholder,{backgroundImage:"url("+t[e].thumbs[g].src+")"})):(void 0!==t[e].thumbs[g]&&void 0!==i.left.iholder[0]&&tpGS.gsap.set(i.left.iholder,{backgroundImage:"url("+t[e].thumbs[g].src+")"}),void 0!==i.right.iholder[0]&&tpGS.gsap.set(i.right.iholder,{backgroundImage:"url("+t[e].thumbs[u].src+")"}))}}},createNavigation:function(e){var r=t[e].navigation.arrows,o=t[e].navigation.bullets,l=t[e].navigation.thumbnails,h=t[e].navigation.tabs,f=p(r),y=p(o),b=p(l),k=p(h);for(var S in s(e),n(e),f&&(v(r,e),r.c=t[e].cpar.find(".tparrows")),t[e].slides)if(t[e].slides.hasOwnProperty(S)&&"true"!=t.gA(t[e].slides[S],"not_in_nav")){var L=jQuery(t[e].slides[t[e].slides.length-1-S]),T=jQuery(t[e].slides[S]);y&&(t[e].navigation.bullets.rtl?w(t[e].c,o,L,e):w(t[e].c,o,T,e)),b&&(t[e].navigation.thumbnails.rtl?x(t[e].c,l,L,"tp-thumb",e):x(t[e].c,l,T,"tp-thumb",e)),k&&(t[e].navigation.tabs.rtl?x(t[e].c,h,L,"tp-tab",e):x(t[e].c,h,T,"tp-tab",e))}y&&_(o,e),b&&_(l,e),k&&_(h,e),(b||k)&&t.callContWidthManager(e),t[e].navigation.createNavigationDone=!0,b&&jQuery.extend(!0,l,a(e,"thumb")),k&&jQuery.extend(!0,h,a(e,"tab")),t[e].c.bind("revolution.slide.onafterswap revolution.nextslide.waiting",function(){t.updateNavElementContent(e,r,o,l,h)}),c(r),c(o),c(l),c(h),t[e].cpar.on("mouseenter mousemove",function(a){void 0!==a.target&&void 0!==a.target.className&&"string"==typeof a.target.className&&a.target.className.indexOf("rs-waction")>=0||!0!==t[e].tpMouseOver&&t[e].firstSlideAvailable&&(t[e].tpMouseOver=!0,u(e),i&&!0!==t[e].someNavIsDragged&&(g(t[e].hideAllNavElementTimer),t[e].hideAllNavElementTimer=setTimeout(function(){t[e].tpMouseOver=!1,m(e)},150)))}),t[e].cpar.on("mouseleave ",function(){t[e].tpMouseOver=!1,m(e)}),(b||k||"carousel"===t[e].sliderType||t[e].navigation.touch.touchOnDesktop||t[e].navigation.touch.touchenabled&&i)&&d(e),t[e].navigation.initialised=!0,t.updateNavElementContent(e,r,o,l,h),t.showFirstTime(e)}});var r=function(e,i){if(void 0!==e&&null!=e.mask){var a="vertical"===e.direction?e.mask.find(e.single).first().outerHeight(!0)+e.space:e.mask.find(e.single).first().outerWidth(!0)+e.space,r="vertical"===e.direction?e.mask.height():e.mask.width(),o=e.mask.find(e.single+".selected").data("liindex");o=(o=void 0===(o=e.rtl?t[i].slideamount-o:o)?0:o)>0&&1===t[i].sdir&&e.visibleAmount>1?o-1:o;var s=r/a,n="vertical"===e.direction?e.mask.height():e.mask.width(),l=0-o*a,d="vertical"===e.direction?e.wrap.height():e.wrap.width(),c=l<0-(d-n)?0-(d-n):l,p=t.gA(e.wrap[0],"offset");p=void 0===p?0:p,s>2&&(c=l-(p+a)<=0?l-(p+a)<0-a?p:c+a:c,c=l-a+p+r<a&&l+(Math.round(s)-2)*a<p?l+(Math.round(s)-2)*a:c),c="vertical"!==e.direction&&e.mask.width()>=e.wrap.width()||"vertical"===e.direction&&e.mask.height()>=e.wrap.height()?0:c<0-(d-n)?0-(d-n):c>0?0:c,e.c.hasClass("dragged")||("vertical"===e.direction?e.wrap.data("tmmove",tpGS.gsap.to(e.wrap,.5,{top:c+"px",ease:"power3.inOut"})):e.wrap.data("tmmove",tpGS.gsap.to(e.wrap,.5,{left:c+"px",ease:"power3.inOut"})),e.wrap.data("offset",c))}},o=function(e,i,a,r,o,s,n){var l=r.parent().find(".tp-"+n+"s"),d=l.find(".tp-"+n+"s-inner-wrapper"),c=l.find(".tp-"+n+"-mask"),p=o.width*i<o.min_width?o.min_width:Math.round(o.width*i),g=Math.round(p/o.width*o.height),u="vertical"===o.direction?p:p*s+o.space*(s-1),h="vertical"===o.direction?g*s+o.space*(s-1):g,m="vertical"===o.direction?{width:p+"px"}:{height:g+"px"};a.add(tpGS.gsap.set(l,m)),a.add(tpGS.gsap.set(d,{width:u+"px",height:h+"px"})),a.add(tpGS.gsap.set(c,{width:u+"px",height:h+"px"})),null!==d.outerWidth()&&(t[e].thumbResized=!0);var f=d.find(".tp-"+n);return f&&jQuery.each(f,function(e,t){"vertical"===o.direction?a.add(tpGS.gsap.set(t,{top:e*(g+parseInt(void 0===o.space?0:o.space,0)),width:p+"px",height:g+"px"})):"horizontal"===o.direction&&a.add(tpGS.gsap.set(t,{left:e*(p+parseInt(void 0===o.space?0:o.space,0)),width:p+"px",height:g+"px"}))}),a},s=function(e){!0===t[e].navigation.keyboardNavigation&&t.document.keydown(function(i){if("horizontal"==t[e].navigation.keyboard_direction&&39==i.keyCode||"vertical"==t[e].navigation.keyboard_direction&&40==i.keyCode){if(void 0!==t[e].keydown_time_stamp&&(new Date).getTime()-t[e].keydown_time_stamp<1e3)return;t[e].sc_indicator="arrow",t[e].sc_indicator_dir=0,"carousel"===t[e].sliderType&&(t[e].ctNavElement=!0),t.callingNewSlide(e,1,"carousel"===t[e].sliderType)}if("horizontal"==t[e].navigation.keyboard_direction&&37==i.keyCode||"vertical"==t[e].navigation.keyboard_direction&&38==i.keyCode){if(void 0!==t[e].keydown_time_stamp&&(new Date).getTime()-t[e].keydown_time_stamp<1e3)return;t[e].sc_indicator="arrow",t[e].sc_indicator_dir=1,"carousel"===t[e].sliderType&&(t[e].ctNavElement=!0),t.callingNewSlide(e,-1,"carousel"===t[e].sliderType)}t[e].keydown_time_stamp=(new Date).getTime()})},n=function(e){if(!0===t[e].navigation.mouseScrollNavigation||"on"===t[e].navigation.mouseScrollNavigation||"carousel"===t[e].navigation.mouseScrollNavigation){t[e].isIEEleven=!!navigator.userAgent.match(/Trident.*rv\:11\./),t[e].isSafari=!!navigator.userAgent.match(/safari/i),t[e].ischrome=!!navigator.userAgent.match(/chrome/i);var i=t[e].ischrome?-49:t[e].isIEEleven||t[e].isSafari?-9:navigator.userAgent.match(/mozilla/i)?-29:-49,a=t[e].ischrome?49:t[e].isIEEleven||t[e].isSafari?9:navigator.userAgent.match(/mozilla/i)?29:49;t[e].c.on("mousewheel DOMMouseScroll",function(r){var o,s,n,l,d,c=(o=r.originalEvent,s=0,n=0,l=0,d=0,"detail"in o&&(n=o.detail),"wheelDelta"in o&&(n=-o.wheelDelta/120),"wheelDeltaY"in o&&(n=-o.wheelDeltaY/120),"wheelDeltaX"in o&&(s=-o.wheelDeltaX/120),"axis"in o&&o.axis===o.HORIZONTAL_AXIS&&(s=n,n=0),l=1*s,d=1*n,"deltaY"in o&&(d=o.deltaY),"deltaX"in o&&(l=o.deltaX),(l||d)&&o.deltaMode&&(o.deltaMode,l*=1,d*=1),l&&!s&&(s=l<1?-1:1),d&&!n&&(n=d<1?-1:1),((d=navigator.userAgent.match(/mozilla/i)?10*d:d)>300||d<-300)&&(d/=10),{spinX:s,spinY:n,pixelX:l,pixelY:d}),p=!0,g=0==t[e].pr_active_key||0==t[e].pr_processing_key,u=t[e].pr_active_key==t[e].slideamount-1||t[e].pr_processing_key==t[e].slideamount-1;if("carousel"===t[e].sliderType&&!1===t[e].carousel.snap)p=!1,t.swipeAnimate({id:e,to:t[e].carousel.slide_offset+5*c.pixelY,direction:c.pixelY<0?"left":"right",easing:"power2.out",phase:"move"});else{if(t[e].isSafari){var h=c.pixelY<0?-1:1;if(void 0!==t[e].doubleScrollEventTimeStamp&&r.timeStamp-t[e].doubleScrollEventTimeStamp<750&&t[e].doubleScrollEventDir===h)return void r.preventDefault(r);t[e].doubleScrollEventTimeStamp=r.timeStamp,t[e].doubleScrollEventDir=h}"carousel"==t[e].navigation.mouseScrollNavigation&&(g=u=!1),void 0===t[e].pr_processing_key?c.pixelY<i?(g||(t[e].sc_indicator="arrow","reverse"!==t[e].navigation.mouseScrollReverse&&(t[e].sc_indicator_dir=1,"carousel"===t[e].sliderType&&(t[e].ctNavElement=!0),t.callingNewSlide(e,-1,"carousel"===t[e].sliderType)),p=!1),u||(t[e].sc_indicator="arrow","reverse"===t[e].navigation.mouseScrollReverse&&(t[e].sc_indicator_dir=0,"carousel"===t[e].sliderType&&(t[e].ctNavElement=!0),t.callingNewSlide(e,1,"carousel"===t[e].sliderType)),p=!1)):c.pixelY>a&&(u||(t[e].sc_indicator="arrow","reverse"!==t[e].navigation.mouseScrollReverse&&(t[e].sc_indicator_dir=0,"carousel"===t[e].sliderType&&(t[e].ctNavElement=!0),t.callingNewSlide(e,1,"carousel"===t[e].sliderType)),p=!1),g||(t[e].sc_indicator="arrow","reverse"===t[e].navigation.mouseScrollReverse&&(t[e].sc_indicator_dir=1,"carousel"===t[e].sliderType&&(t[e].ctNavElement=!0),t.callingNewSlide(e,-1,"carousel"===t[e].sliderType)),p=!1)):p=!1;var m=t[e].c.offset().top-jQuery("body").scrollTop(),f=m+t[e].c.height();"carousel"!=t[e].navigation.mouseScrollNavigation?("reverse"!==t[e].navigation.mouseScrollReverse&&(m>0&&c.pixelY>0||f<t.getWinH(e)&&c.pixelY<0)&&(p=!0),"reverse"===t[e].navigation.mouseScrollReverse&&(m<0&&c.pixelY<0||f>t.getWinH(e)&&c.pixelY>0)&&(p=!0)):p=!1}return p?void 0:(r.preventDefault(r),!1)})}},l=function(e,t){var a=!1;for(var r in(void 0===t.path||i)&&(a=function(e,t){for(;e&&e!==document;e=e.parentNode)if(e.tagName===t)return e;return!1}(t.target,e)),t.path)t.path.hasOwnProperty(r)&&t.path[r].tagName===e&&(a=!0);return a},d=function(e){var a=t[e].carousel,r=t.is_android();jQuery(".bullet, .bullets, .tp-bullets, .tparrows").addClass("noSwipe"),t[e].navigation.touch=void 0===t[e].navigation.touch?{}:t[e].navigation.touch,t[e].navigation.touch.swipe_direction=void 0===t[e].navigation.touch.swipe_direction?"horizontal":t[e].navigation.touch.swipe_direction,jQuery(".rs-nav-element").rsswipe({allowPageScroll:"vertical",triggerOnTouchLeave:!0,treshold:t[e].navigation.touch.swipe_treshold,fingers:t[e].navigation.touch.swipe_min_touches>5?1:t[e].navigation.touch.swipe_min_touches,excludedElements:"button, input, select, textarea, .noSwipe, .rs-waction",tap:function(e,t){if(void 0!==t)var i=jQuery(t).closest("rs-thumb");void 0!==i&&i.length>0?i.trigger("click"):(i=jQuery(t).closest("rs-tab")).length>0?i.trigger("click"):(i=jQuery(t).closest("rs-bullet")).length>0&&i.trigger("click")},swipeStatus:function(i,o,s,n,d,c,p){if("start"!==o&&"move"!==o&&"end"!==o&&"cancel"!=o)return!0;var u=l("RS-THUMB",i),m=l("RS-TAB",i);!1===u&&!1===m&&!0!==(u="RS-THUMBS-WRAP"===i.target.tagName||"RS-THUMBS"===i.target.tagName||i.target.className.indexOf("tp-thumb-mask")>=0)&&(m="RS-TABS-WRAP"===i.target.tagName||"RS-TABS"===i.target.tagName||i.target.className.indexOf("tp-tab-mask")>=0);var f="start"===o?0:r?p[0].end.x-p[0].start.x:i.pageX-a.screenX,v="start"===o?0:r?p[0].end.y-p[0].start.y:i.pageY-a.screenY,y=u?".tp-thumbs":".tp-tabs",b=u?".tp-thumb-mask":".tp-tab-mask",_=u?".tp-thumbs-inner-wrapper":".tp-tabs-inner-wrapper",w=u?".tp-thumb":".tp-tab",x=u?t[e].navigation.thumbnails:t[e].navigation.tabs,k=t[e].cpar.find(b),S=k.find(_),L=x.direction,T="vertical"===L?S.height():S.width(),O="vertical"===L?k.height():k.width(),A="vertical"===L?k.find(w).first().outerHeight(!0)+x.space:k.find(w).first().outerWidth(!0)+x.space,R=void 0===S.data("offset")?0:parseInt(S.data("offset"),0),I=0;switch(o){case"start":"vertical"===L&&i.preventDefault(),a.screenX=r?p[0].end.x:i.pageX,a.screenY=r?p[0].end.y:i.pageY,t[e].cpar.find(y).addClass("dragged"),R="vertical"===L?S.position().top:S.position().left,S.data("offset",R),S.data("tmmove")&&S.data("tmmove").pause(),t[e].someNavIsDragged=!0,h(e);break;case"move":if(T<=O)return!1;I=(I=R+("vertical"===L?v:f))>0?"horizontal"===L?I-S.width()*(I/S.width()*I/S.width()):I-S.height()*(I/S.height()*I/S.height()):I;var z="vertical"===L?0-(S.height()-k.height()):0-(S.width()-k.width());I=I<z?"horizontal"===L?I+S.width()*(I-z)/S.width()*(I-z)/S.width():I+S.height()*(I-z)/S.height()*(I-z)/S.height():I,"vertical"===L?tpGS.gsap.set(S,{top:I+"px"}):tpGS.gsap.set(S,{left:I+"px"}),g(t[e].hideAllNavElementTimer);break;case"end":case"cancel":return I=R+("vertical"===L?v:f),I=(I="vertical"===L?I<0-(S.height()-k.height())?0-(S.height()-k.height()):I:I<0-(S.width()-k.width())?0-(S.width()-k.width()):I)>0?0:I,I=Math.abs(n)>A/10?n<=0?Math.floor(I/A)*A:Math.ceil(I/A)*A:n<0?Math.ceil(I/A)*A:Math.floor(I/A)*A,I=(I="vertical"===L?I<0-(S.height()-k.height())?0-(S.height()-k.height()):I:I<0-(S.width()-k.width())?0-(S.width()-k.width()):I)>0?0:I,"vertical"===L?tpGS.gsap.to(S,.5,{top:I+"px",ease:"power3.out"}):tpGS.gsap.to(S,.5,{left:I+"px",ease:"power3.out"}),I=I||("vertical"===L?S.position().top:S.position().left),S.data("offset",I),S.data("distance",n),t[e].cpar.find(y).removeClass("dragged"),t[e].someNavIsDragged=!1,!0}}}),("carousel"!==t[e].sliderType&&(i&&t[e].navigation.touch.touchenabled||!0!==i&&t[e].navigation.touch.touchOnDesktop)||"carousel"===t[e].sliderType&&(i&&t[e].navigation.touch.mobileCarousel||!0!==i&&t[e].navigation.touch.desktopCarousel))&&t[e].c.rsswipe({allowPageScroll:"vertical",triggerOnTouchLeave:!0,treshold:t[e].navigation.touch.swipe_treshold,fingers:t[e].navigation.touch.swipe_min_touches>5?1:t[e].navigation.touch.swipe_min_touches,excludedElements:"label, button, input, select, textarea, .noSwipe, .rs-nav-element, .rs-waction",swipeStatus:function(o,s,n,l,d,c,p){var g="start"===s?0:r?p[0].end.x-p[0].start.x:o.pageX-a.screenX;"start"===s||(r?(p[0].end.x,p[0].start.y):(o.pageY,a.screenY));if(!("carousel"===t[e].sliderType&&t[e].carousel.wrapwidth>t[e].carousel.maxwidth&&"center"!==t[e].carousel.horizontal_align)){if("carousel"!==t[e].sliderType){if("end"==s){if(t[e].sc_indicator="arrow","horizontal"==t[e].navigation.touch.swipe_direction&&"left"==n||"vertical"==t[e].navigation.touch.swipe_direction&&"up"==n)return t[e].sc_indicator_dir=0,t.callingNewSlide(e,1),!1;if("horizontal"==t[e].navigation.touch.swipe_direction&&"right"==n||"vertical"==t[e].navigation.touch.swipe_direction&&"down"==n)return t[e].sc_indicator_dir=1,t.callingNewSlide(e,-1),!1}return!0}switch((a.preventSwipe||i&&("left"===n||"right"===n))&&o.preventDefault(),void 0!==a.positionanim&&a.positionanim.pause(),a.carouselAutomatic=!1,s){case"start":clearTimeout(a.swipeMainTimer),a.beforeSwipeOffet=a.slide_offset,a.focusedBeforeSwipe=a.focused,a.beforeDragStatus=t[e].sliderstatus,t[e].c.trigger("stoptimer"),a.swipeStartPos=r?p[0].start.x:o.pageX,a.swipeStartTime=(new Date).getTime(),a.screenX=r?p[0].end.x:o.pageX,a.screenY=r?p[0].end.y:o.pageY,void 0!==a.positionanim&&(a.positionanim.pause(),a.carouselAutomatic=!1),a.overpull="none",a.wrap.addClass("dragged");break;case"move":if("left"!==n&&"right"!==n||(a.preventSwipe=!0),a.justDragged=!0,Math.abs(g)>=10||t[e].carousel.isDragged){if(t[e].carousel.isDragged=!0,t[e].c.find(".rs-waction").addClass("tp-temporarydisabled"),a.CACHE_slide_offset=a.beforeSwipeOffet+g,!a.infinity){var u="center"===a.horizontal_align?(a.wrapwidth/2-a.slide_width/2-a.CACHE_slide_offset)/a.slide_width:(0-a.CACHE_slide_offset)/a.slide_width;"none"!==a.overpull&&0!==a.overpull||!(u<0||u>t[e].slideamount-1)?u>=0&&u<=t[e].slideamount-1&&(u>=0&&g>a.overpull||u<=t[e].slideamount-1&&g<a.overpull)&&(a.overpull=0):a.overpull=g,a.CACHE_slide_offset=u<0?a.CACHE_slide_offset+(a.overpull-g)/1.5+Math.sqrt(Math.abs((a.overpull-g)/1.5)):u>t[e].slideamount-1?a.CACHE_slide_offset+(a.overpull-g)/1.5-Math.sqrt(Math.abs((a.overpull-g)/1.5)):a.CACHE_slide_offset}t.swipeAnimate({id:e,to:a.CACHE_slide_offset,direction:n,easing:"power2.out",phase:"move"})}break;case"end":case"cancel":clearTimeout(a.swipeMainTimer),a.swipeMainTimer=setTimeout(function(){a.preventSwipe=!1},500),t[e].carousel.isDragged=!1,a.wrap.removeClass("dragged"),a.swipeEndPos=r?p[0].end.x:o.pageX,a.swipeEndTime=(new Date).getTime(),a.swipeDuration=a.swipeEndTime-a.swipeStartTime,a.swipeDistance=i?a.swipeEndPos-a.swipeStartPos:(a.swipeEndPos-a.swipeStartPos)/1.5,a.swipePower=a.swipeDistance/a.swipeDuration,a.CACHE_slide_offset=a.slide_offset+a.swipeDistance*Math.abs(a.swipePower),t.swipeAnimate({id:e,to:a.CACHE_slide_offset,direction:n,fix:!0,newSlide:!0,easing:"power2.out",phase:"end"}),"playing"===a.beforeDragStatus&&t[e].c.trigger("restarttimer"),setTimeout(function(){t[e].c.find(".rs-waction").removeClass("tp-temporarydisabled")},19)}}}}),"carousel"===t[e].sliderType&&(i&&0==t[e].navigation.touch.mobileCarousel||!0!==i&&!1===t[e].navigation.touch.desktopCarousel)&&a.wrap.addClass("noswipe"),t[e].navigation.touch.drag_block_vertical&&t[e].c.addClass("disableVerticalScroll")},c=function(e){e.hide_delay=jQuery.isNumeric(parseInt(e.hide_delay,0))?e.hide_delay:.2,e.hide_delay_mobile=jQuery.isNumeric(parseInt(e.hide_delay_mobile,0))?e.hide_delay_mobile:.2},p=function(e){return e&&e.enable},g=function(e){clearTimeout(e)},u=function(e){var i=t[e].navigation.maintypes;for(var a in i)i.hasOwnProperty(a)&&p(t[e].navigation[i[a]])&&void 0!==t[e].navigation[i[a]].c&&(g(t[e].navigation[i[a]].showCall),t[e].navigation[i[a]].showCall=setTimeout(function(i){g(i.hideCall),i.hide_onleave&&!0!==t[e].tpMouseOver||(void 0===i.tween?i.tween=f(i):i.tween.play())},t[e].navigation[i[a]].hide_onleave&&!0!==t[e].tpMouseOver?0:parseInt(t[e].navigation[i[a]].animDelay),t[e].navigation[i[a]]))},h=function(e){var i=t[e].navigation.maintypes;for(var a in i)i.hasOwnProperty(a)&&void 0!==t[e].navigation[i[a]]&&t[e].navigation[i[a]].hide_onleave&&p(t[e].navigation[i[a]])&&g(t[e].navigation[i[a]].hideCall)},m=function(e,a){var r=t[e].navigation.maintypes;for(var o in r)r.hasOwnProperty(o)&&void 0!==t[e].navigation[r[o]]&&t[e].navigation[r[o]].hide_onleave&&p(t[e].navigation[r[o]])&&(g(t[e].navigation[r[o]].hideCall),t[e].navigation[r[o]].hideCall=setTimeout(function(e){g(e.showCall),e.tween&&e.tween.reverse()},i?parseInt(t[e].navigation[r[o]].hide_delay_mobile,0):parseInt(t[e].navigation[r[o]].hide_delay,0),t[e].navigation[r[o]]))},f=function(e){e.speed=void 0===e.speed?.5:e.speed,e.anims=[],void 0!==e.anim&&void 0===e.left&&e.anims.push(e.anim),void 0!==e.left&&e.anims.push(e.left.anim),void 0!==e.right&&e.anims.push(e.right.anim);var t=tpGS.gsap.timeline();for(var i in t.add(tpGS.gsap.to(e.c,e.speed,{opacity:1,ease:"power3.inOut"}),0),e.anims)if(e.anims.hasOwnProperty(i))switch(e.anims[i]){case"left":t.add(tpGS.gsap.fromTo(e.c[i],e.speed,{marginLeft:-50},{marginLeft:0,ease:"power3.inOut"}),0);break;case"right":t.add(tpGS.gsap.fromTo(e.c[i],e.speed,{marginLeft:50},{marginLeft:0,ease:"power3.inOut"}),0);break;case"top":t.add(tpGS.gsap.fromTo(e.c[i],e.speed,{marginTop:-50},{marginTop:0,ease:"power3.inOut"}),0);break;case"bottom":t.add(tpGS.gsap.fromTo(e.c[i],e.speed,{marginTop:50},{marginTop:0,ease:"power3.inOut"}),0);break;case"zoomin":t.add(tpGS.gsap.fromTo(e.c[i],e.speed,{scale:.5},{scale:1,ease:"power3.inOut"}),0);break;case"zoomout":t.add(tpGS.gsap.fromTo(e.c[i],e.speed,{scale:1.2},{scale:1,ease:"power3.inOut"}),0)}return t.play(),t},v=function(e,i){e.style=void 0===e.style?"":e.style,e.left.style=void 0===e.left.style?"":e.left.style,e.right.style=void 0===e.right.style?"":e.right.style,void 0===e.left.c&&(e.left.c=jQuery('<rs-arrow style="opacity:0" class="tp-leftarrow tparrows '+e.style+" "+e.left.style+'">'+e.tmp+"</rs-arrow>"),t[i].c.append(e.left.c)),void 0===e.right.c&&(e.right.c=jQuery('<rs-arrow style="opacity:0"  class="tp-rightarrow tparrows '+e.style+" "+e.right.style+'">'+e.tmp+"</rs-arrow>"),t[i].c.append(e.right.c)),e[e.rtl?"left":"right"].c.click(function(){"carousel"===t[i].sliderType&&(t[i].ctNavElement=!0),t[i].sc_indicator="arrow",t[i].sc_indicator_dir=0,t[i].c.revnext()}),e[e.rtl?"right":"left"].c.click(function(){"carousel"===t[i].sliderType&&(t[i].ctNavElement=!0),t[i].sc_indicator="arrow",t[i].sc_indicator_dir=1,t[i].c.revprev()}),e.padding_top=parseInt(t[i].carousel.padding_top||0,0),e.padding_bottom=parseInt(t[i].carousel.padding_bottom||0,0),_(e.left,i),_(e.right,i),"outer-left"!=e.position&&"outer-right"!=e.position||(t[i].outernav=!0)},y=function(e,i,a,r){r=void 0===r?e.outerHeight(!0):r;var o=null==t[a]?0:0==t[a].conh?t[a].height:t[a].conh,s="layergrid"==i.container?"fullscreen"==t[a].sliderLayout?t[a].height/2-t[a].gridheight[t[a].level]*t[a].bh/2:t[a].autoHeight||null!=t[a].minHeight&&t[a].minHeight>0?o/2-t[a].gridheight[t[a].level]*t[a].bh/2:0:0,n="top"===i.v_align?{top:"0px",y:Math.round(i.v_offset+s)+"px"}:"center"===i.v_align?{top:"50%",y:Math.round(0-r/2+i.v_offset)+"px"}:{top:"100%",y:Math.round(0-(r+i.v_offset+s))+"px"};e.hasClass("outer-bottom")||tpGS.gsap.set(e,n)},b=function(e,i,a,r){r=void 0===r?e.outerWidth(!0):r;var o="layergrid"===i.container?t[a].width/2-t[a].gridwidth[t[a].level]*t[a].bw/2:0,s="left"===i.h_align?{left:"0px",x:Math.round(i.h_offset+o)+"px"}:"center"===i.h_align?{left:"50%",x:Math.round(0-r/2+i.h_offset)+"px"}:{left:"100%",x:Math.round(0-(r+i.h_offset+o))+"px"};tpGS.gsap.set(e,s)},_=function(e,i){if(null!=e&&void 0!==e.c){var a="fullwidth"==t[i].sliderLayout||"fullscreen"==t[i].sliderLayout,r=a?t[i].conw:t[i].topc.width(),o=e.c.outerWidth(!0),s=e.c.outerHeight(!0);if(!(o<=0||s<=0)&&(y(e.c,e,i,s),b(e.c,e,i,o),"outer-left"===e.position&&a?tpGS.gsap.set(e.c,{left:0-o+"px",x:e.h_offset+"px"}):"outer-right"===e.position&&a&&tpGS.gsap.set(e.c,{right:0-o+"px",x:e.h_offset+"px"}),"tp-thumb"===e.type||"tp-tab"===e.type)){var n=parseInt(e.padding_top||0,0),l=parseInt(e.padding_bottom||0,0),d={},c={};e.maxw>r&&"outer-left"!==e.position&&"outer-right"!==e.position?(d.left="0px",d.x=0,d.maxWidth=r-2*e.wpad+"px",c.maxWidth=r-2*e.wpad+"px"):(d.maxWidth=e.maxw,c.maxWidth=r+"px"),e.maxh+2*e.wpad>t[i].conh&&"outer-bottom"!==e.position&&"outer-top"!==e.position?(d.top="0px",d.y=0,d.maxHeight=n+l+(t[i].conh-2*e.wpad)+"px",c.maxHeight=n+l+(t[i].conh-2*e.wpad)+"px"):(d.maxHeight=e.maxh+"px",c.maxHeight=e.maxh+"px"),e.mask=void 0===e.mask?e.c.find("rs-navmask"):e.mask,e.span?("layergrid"==e.container&&"outer-left"!==e.position&&"outer-right"!==e.position&&(n=l=0),"vertical"===e.direction?(d.maxHeight=n+l+(t[i].conh-2*e.wpad)+"px",d.height=n+l+(t[i].conh-2*e.wpad)+"px",d.top=0,d.y=0,c.maxHeight=n+l+Math.min(e.maxh,t[i].conh-2*e.wpad)+"px",tpGS.gsap.set(e.c,d),tpGS.gsap.set(e.mask,c),y(e.mask,e,i)):"horizontal"===e.direction&&(d.maxWidth="100%",d.width=r-2*e.wpad+"px",d.left=0,d.x=0,c.maxWidth=e.maxw>=r?"100%":Math.min(e.maxw,r)+"px",tpGS.gsap.set(e.c,d),tpGS.gsap.set(e.mask,c),b(e.mask,e,i))):(tpGS.gsap.set(e.c,d),tpGS.gsap.set(e.mask,c))}}},w=function(e,i,a,r){0===e.find(".tp-bullets").length&&(i.style=void 0===i.style?"":i.style,i.c=jQuery('<rs-bullets style="opacity:0"  class="tp-bullets '+i.style+" "+i.direction+" nav-pos-hor-"+i.h_align+"nav-pos-ver-"+i.v_align+"nav-dir-"+i.direction+'"></rs-bullets>'));var o=a.data("key"),s=i.tmp;void 0!==t[r].thumbs[a.index()]&&jQuery.each(t[r].thumbs[a.index()].params,function(e,t){s=s.replace(t.from,t.to)});var n=jQuery('<rs-bullet data-key="'+o+'" class="tp-bullet">'+s+"</rs-bullet>");void 0!==t[r].thumbs[a.index()]&&n.find(".tp-bullet-image").css({backgroundImage:"url("+t[r].thumbs[a.index()].src+")"}),i.c.append(n),e.append(i.c);var l=i.c.find(".tp-bullet").length,d=n.outerWidth(),c=n.outerHeight(),p=d+parseInt(void 0===i.space?0:i.space,0),g=c+parseInt(void 0===i.space?0:i.space,0);"vertical"===i.direction?(n.css({top:(l-1)*g+"px",left:"0px"}),i.c.css({height:(l-1)*g+c,width:d})):(n.css({left:(l-1)*p+"px",top:"0px"}),i.c.css({width:(l-1)*p+d,height:c})),n.click(function(){"carousel"===t[r].sliderType&&(t[r].ctNavElement=!0),t[r].sc_indicator="bullet",e.revcallslidewithid(o),e.find(".tp-bullet").removeClass("selected"),jQuery(this).addClass("selected")}),i.padding_top=parseInt(t[r].carousel.padding_top||0,0),i.padding_bottom=parseInt(t[r].carousel.padding_bottom||0,0),"outer-left"!=i.position&&"outer-right"!=i.position||(t[r].outernav=!0)},x=function(e,i,a,r,o){var s="tp-thumb"===r?".tp-thumbs":".tp-tabs",n="tp-thumb"===r?".tp-thumb-mask":".tp-tab-mask",l="tp-thumb"===r?".tp-thumbs-inner-wrapper":".tp-tabs-inner-wrapper",d="tp-thumb"===r?".tp-thumb":".tp-tab",c="tp-thumb"===r?".tp-thumb-image":".tp-tab-image",p="tp-thumb"===r?"rs-thumb":"rs-tab";i.type=r,i.visibleAmount=i.visibleAmount>t[o].slideamount?t[o].slideamount:i.visibleAmount,i.sliderLayout=t[o].sliderLayout,void 0===i.c&&(i.wpad=i.wrapper_padding,i.c=jQuery("<"+p+'s style="opacity:0" class="nav-dir-'+i.direction+" nav-pos-ver-"+i.v_align+" nav-pos-hor-"+i.h_align+" rs-nav-element "+r+"s "+(!0===i.span?"tp-span-wrapper":"")+" "+i.position+" "+(void 0===i.style?"":i.style)+'"><rs-navmask class="'+r+'-mask" style="overflow:hidden;position:relative"><'+p+'s-wrap class="'+r+'s-inner-wrapper" style="position:relative;"></'+p+"s-wrap></rs-navmask></"+p+"s>"),i.c.css({overflow:"visible",position:"outer-top"===i.position||"outer-bottom"===i.position?"relative":"absolute",background:i.wrapper_color,padding:i.wpad+"px",boxSizing:"contet-box"}),"outer-top"===i.position?e.parent().prepend(i.c):"outer-bottom"===i.position?e.after(i.c):e.append(i.c),"outer-left"!==i.position&&"outer-right"!==i.position||tpGS.gsap.set(t[o].c,{overflow:"visible"}),i.padding_top=parseInt(t[o].carousel.padding_top||0,0),i.padding_bottom=parseInt(t[o].carousel.padding_bottom||0,0),"outer-left"!=i.position&&"outer-right"!=i.position||(t[o].outernav=!0));var g=a.data("key"),u=i.c.find(n),h=u.find(l),m=i.tmp;i.maxw="horizontal"===i.direction?i.width*i.visibleAmount+i.space*(i.visibleAmount-1):i.width,i.maxh="horizontal"===i.direction?i.height:i.height*i.visibleAmount+i.space*(i.visibleAmount-1),void 0!==t[o].thumbs[a.index()]&&jQuery.each(t[o].thumbs[a.index()].params,function(e,t){m=m.replace(t.from,t.to)});var f=jQuery("<"+p+' data-liindex="'+a.index()+'" data-key="'+g+'" class="'+r+'" style="width:'+i.width+"px;height:"+i.height+'px;">'+m+"<"+p+">");void 0!==t[o].thumbs[a.index()]&&f.find(c).css({backgroundImage:"url("+t[o].thumbs[a.index()].src+")"}),h.append(f);var v=i.c.find(d).length,y=f.outerWidth(),b=f.outerHeight(),_=y+parseInt(void 0===i.space?0:i.space,0),w=b+parseInt(void 0===i.space?0:i.space,0);"vertical"===i.direction?(f.css({top:(v-1)*w+"px",left:"0px"}),h.css({height:(v-1)*w+b,width:y})):(f.css({left:(v-1)*_+"px",top:"0px"}),h.css({width:(v-1)*_+y,height:b})),u.css({maxWidth:i.maxw+"px",maxHeight:i.maxh+"px"}),i.c.css({maxWidth:i.maxw+"px",maxHeight:i.maxh+"px"}),f.click(function(){t[o].sc_indicator="bullet","carousel"===t[o].sliderType&&(t[o].ctNavElement=!0);var i=e.parent().find(l).data("distance");i=void 0===i?0:i,Math.abs(i)<10&&(e.revcallslidewithid(g),e.parent().find(s).removeClass("selected"),jQuery(this).addClass("selected"))})},k=function(e){var i=t[e].cpar.find(".outer-top"),a=t[e].cpar.find(".outer-bottom"),r=t[e].top_outer,o=t[e].bottom_outer;t[e].top_outer=i.hasClass("tp-forcenotvisible")?0:i.outerHeight()||0,t[e].bottom_outer=a.hasClass("tp-forcenotvisible")?0:a.outerHeight()||0,(void 0!==r&&r!==t[e].top_outer||void 0!==o&&o!==t[e].bottom_outer)&&t.setSize(e,void 0,"setONHeights")},S=function(e,i,a){return null==e||void 0===e.c?a:(e.hide_under>t[i].conw||t[i].conw>e.hide_over?(!0!==e.tpForceNotVisible&&(e.c.addClass("tp-forcenotvisible"),a=!0),e.tpForceNotVisible=!0):(!1!==e.tpForceNotVisible&&(e.c.removeClass("tp-forcenotvisible"),a=!0),e.tpForceNotVisible=!1),a)}}(jQuery),function(e){"use strict";var t=jQuery.fn.revolution;jQuery.extend(!0,t,{preparePanZoom:function(e){},stopPanZoom:function(e){null!=e.data("pztl")&&e.data("pztl").pause()},startPanZoom:function(e,i,a,r,o){"carousel"===t[i].sliderType&&(t[i].carousel.justify&&void 0===t[i].carousel.slide_widths&&t.setCarouselDefaults(i,!0),t[i].carousel.justify||(void 0===t[i].carousel.slide_width&&(t[i].carousel.slide_width=!0!==t[i].carousel.stretch?t[i].gridwidth[t[i].level]*(0===t[i].bw?1:t[i].bw):t[i].conw),void 0===t[i].carousel.slide_height&&(t[i].carousel.slide_height=!0!==t[i].carousel.stretch?t[i].gridheight[t[i].level]*(0===t[i].bw?1:t[i].bw):t[i].conh)),!0!==t[i].CWMDONE&&(t.contWidthManager(i),t.setSize(i)));var s=e.data(),n=e.find("rs-sbg"),l=n.data("lazyload")||n.data("src"),d=(s.owidth,s.oheight,"carousel"===t[i].sliderType?t[i].carousel.justify?t[i].carousel.slide_widths[void 0!==r?r:void 0===t[i].carousel.focused?0:t[i].carousel.focused]:t[i].carousel.slide_width:t[i].canvas.width()),c=t[i].canvas.height();if(t[i].panzoomTLs=void 0===t[i].panzoomTLs?{}:t[i].panzoomTLs,t[i].panzoomBGs=void 0===t[i].panzoomBGs?{}:t[i].panzoomBGs,void 0===t[i].panzoomBGs[r]&&(t[i].panzoomBGs[r]=e),void 0!==s.panzoom&&null!==s.panzoom){if(e.data("pztl")&&e.data("pztl").kill(),a=a||0,0==e.find(".rs-pzimg").length){var p=n.data("mediafilter");p=void 0===p?"":p,e.append('<rs-pzimg-wrap class="'+p+'" style="z-index:25;width:100%;height:100%;top:0px;left:0px;position:absolute;display:block"><img class="rs-pzimg" src="'+l+'" style="position:absolute;" width="'+s.owidth+'" height="'+s.oheight+'"></rs-pzimg-wrap>'),e.data("pzimg",e.find(".rs-pzimg"))}var g=function(e,t,i,a,r,o,s){var n=e*i,l=t*i,d=Math.abs(a-n),c=Math.abs(r-l),p=new Object;return p.l=(0-o)*d,p.r=p.l+n,p.t=(0-s)*c,p.b=p.t+l,p.h=o,p.v=s,p};void 0!==t[i].panzoomTLs[r]&&t[i].panzoomTLs[r].kill(),null!=e.data("pztl")&&(e.data("pztl").kill(),e.removeData("pztl"));var u=e.data("pzimg"),h=u.parent(),m=function(e,t,i){var a=void 0===i.panvalues?jQuery.extend(!0,{},function(e){var t=e.panzoom.split(";"),i={duration:10,ease:"none",scalestart:1,scaleend:1,rotatestart:.01,rotateend:0,blurstart:0,blurend:0,offsetstart:"0/0",offsetend:"0/0"};for(var a in t)if(t.hasOwnProperty(a)){var r=t[a].split(":"),o=r[0],s=r[1];switch(o){case"d":i.duration=parseInt(s,0)/1e3;break;case"e":i.ease=s;break;case"ss":i.scalestart=parseInt(s,0)/100;break;case"se":i.scaleend=parseInt(s,0)/100;break;case"rs":i.rotatestart=parseInt(s,0);break;case"re":i.rotateend=parseInt(s,0);break;case"bs":i.blurstart=parseInt(s,0);break;case"be":i.blurend=parseInt(s,0);break;case"os":i.offsetstart=s;break;case"oe":i.offsetend=s}}return i.offsetstart=i.offsetstart.split("/")||[0,0],i.offsetend=i.offsetend.split("/")||[0,0],i.rotatestart=0===i.rotatestart?.01:i.rotatestart,e.panvalues=i,e.bgposition="center center"==e.bgposition?"50% 50%":e.bgposition,i}(i)):jQuery.extend(!0,{},i.panvalues),r=a.offsetstart,o=a.offsetend,s={start:{width:e,height:e/i.owidth*i.oheight,rotation:a.rotatestart+"deg",scale:a.scalestart,transformOrigin:i.bgposition},starto:{},end:{rotation:a.rotateend+"deg",scale:a.scaleend},endo:{}};a.scalestart,i.owidth,i.oheight,a.scaleend,i.owidth,i.oheight;if(s.start.height<t){var n=t/s.start.height;s.start.height=t,s.start.width=s.start.width*n}var l=function(e,t,i,a){var r=e.bgposition.split(" ")||"center center",o="center"==r[0]?"50%":"left"==r[0]||"left"==r[1]?"0%":"right"==r[0]||"right"==r[1]?"100%":r[0],s="center"==r[1]?"50%":"top"==r[0]||"top"==r[1]?"0%":"bottom"==r[0]||"bottom"==r[1]?"100%":r[1];o=parseInt(o,0)/100||0,s=parseInt(s,0)/100||0;var n=new Object;return n.start=g(a.start.width,a.start.height,a.start.scale,t,i,o,s),n.end=g(a.start.width,a.start.height,a.end.scale,t,i,o,s),n}(i,e,t,s);r[0]=parseFloat(r[0])+l.start.l,o[0]=parseFloat(o[0])+l.end.l,r[1]=parseFloat(r[1])+l.start.t,o[1]=parseFloat(o[1])+l.end.t;var d=l.start.r-l.start.l,c=l.start.b-l.start.t,p=l.end.r-l.end.l,u=l.end.b-l.end.t;return r[0]=r[0]>0?0:d+r[0]<e?e-d:r[0],o[0]=o[0]>0?0:p+o[0]<e?e-p:o[0],r[1]=r[1]>0?0:c+r[1]<t?t-c:r[1],o[1]=o[1]>0?0:u+o[1]<t?t-u:o[1],s.starto.x=r[0]+"px",s.starto.y=r[1]+"px",s.endo.x=o[0]+"px",s.endo.y=o[1]+"px",s.end.ease=s.endo.ease=a.ease,s.end.force3D=s.endo.force3D=!0,s}(d,c,s);if(t[i].panzoomTLs[r]=tpGS.gsap.timeline(),t[i].panzoomTLs[r].pause(),m.start.transformOrigin="0% 0%",m.starto.transformOrigin="0% 0%",s.panvalues.duration=NaN===s.panvalues.duration||void 0===s.panvalues.duration?10:s.panvalues.duration,tpGS.gsap.set(u,{width:m.start.width,height:m.start.height}),delete m.start.width,delete m.start.height,"prepare"===o&&tpGS.gsap.fromTo(u,.5,{autoAlpha:0},{autoAlpha:1}),t[i].panzoomTLs[r].add(tpGS.gsap.fromTo(u,s.panvalues.duration,m.start,m.end),0),t[i].panzoomTLs[r].add(tpGS.gsap.fromTo(h,s.panvalues.duration,m.starto,m.endo),0),void 0!==s.panvalues.blurstart&&void 0!==s.panvalues.blurend&&(0!==s.panvalues.blurstart||0!==s.panvalues.blurend)){var f={a:s.panvalues.blurstart},v={a:s.panvalues.blurend,ease:m.endo.ease},y=tpGS.gsap.to(f,s.panvalues.duration,v);y.eventCallback("onUpdate",function(e){tpGS.gsap.set(e,{filter:"blur("+f.a+"px)",webkitFilter:"blur("+f.a+"px)"})},[h]),tpGS.gsap.set(h,{filter:"blur("+f.a+"px)",webkitFilter:"blur("+f.a+"px)"}),t[i].panzoomTLs[r].add(y,0)}t[i].panzoomTLs[r].progress(a),"play"!==o&&"first"!==o||t[i].panzoomTLs[r].play()}}})}(jQuery),function(e){"use strict";var t=jQuery.fn.revolution,i=t.is_mobile();jQuery.extend(!0,t,{checkForParallax:function(e){var r=t[e].parallax;if(!r.done){if(r.done=!0,i&&r.disable_onmobile)return!1;if("3D"==r.type||"3d"==r.type){if(t.addSafariFix(e),tpGS.gsap.set(t[e].c,{overflow:r.ddd_overflow}),tpGS.gsap.set(t[e].canvas,{overflow:r.ddd_overflow}),"carousel"!=t[e].sliderType&&r.ddd_shadow){var o=jQuery('<div class="dddwrappershadow"></div>');tpGS.gsap.set(o,{force3D:"auto",transformPerspective:1600,transformOrigin:"50% 50%",width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:0}),t[e].c.prepend(o)}for(var s in t[e].slides)t[e].slides.hasOwnProperty(s)&&a(jQuery(t[e].slides[s]),e);t[e].c.find("rs-static-layers").length>0&&(tpGS.gsap.set(t[e].c.find("rs-static-layers"),{top:0,left:0,width:"100%",height:"100%"}),a(t[e].c.find("rs-static-layers"),e))}r.pcontainers=[],r.pcontainer_depths=[],r.bgcontainers=[],r.bgcontainer_depths=[],r.speed=void 0===r.speed?0:parseInt(r.speed,0),r.speedbg=void 0===r.speedbg?0:parseInt(r.speedbg,0),r.speedls=void 0===r.speedls?0:parseInt(r.speedls,0),t[e].c.find("rs-slide rs-sbg-wrap, rs-slide rs-bgvideo").each(function(){var i=jQuery(this),a=i.data("parallax");void 0!==(a="on"==a||!0===a?1:a)&&"off"!==a&&!1!==a&&(r.bgcontainers.push(i.closest("rs-sbg-px")),r.bgcontainer_depths.push(t[e].parallax.levels[parseInt(a,0)-1]/100))});for(s=1;s<=r.levels.length;s++)t[e].c.find(".rs-pxl-"+s).each(function(){var e=jQuery(this),t=this.className.indexOf("rs-pxmask")>=0?e.closest("rs-px-mask"):e.closest(".rs-parallax-wrap");t.data("parallaxlevel",r.levels[s-1]),t.addClass("tp-parallax-container"),r.pcontainers.push(t),r.pcontainer_depths.push(r.levels[s-1])});if("mouse"==r.type||"mousescroll"==r.type||"3D"==r.type||"3d"==r.type){var n="rs-slide .dddwrapper, .dddwrappershadow, rs-slide .dddwrapper-layer, rs-static-layers .dddwrapper-layer";"carousel"===t[e].sliderType&&(n="rs-slide .dddwrapper, rs-slide .dddwrapper-layer, rs-static-layers .dddwrapper-layer"),r.sctors=t[e].c.find(n),r.mouseEntered=!1,t[e].c.mouseenter(function(i){var a=t[e].c.offset().top,o=t[e].c.offset().left;r.mouseEnterX=i.pageX-o,r.mouseEnterY=i.pageY-a,r.mouseEntered=!0});var l=this.updateParallax.bind(this,e,r);t[e].c.on("mousemove.hoverdir, mouseleave.hoverdir, trigger3dpath",function(e){r.eventData=e,void 0!==r.frame&&"mouseleave"!==e.type||(r.frame=window.requestAnimationFrame(l))}),i&&window.addEventListener("deviceorientation",function(e){r.eventData=e,void 0===r.frame&&(r.frame=window.requestAnimationFrame(l))})}var d=t[e].scrolleffect;d.set&&(d.multiplicator_layers=parseFloat(d.multiplicator_layers),d.multiplicator=parseFloat(d.multiplicator)),void 0!==d._L&&0===d._L.length&&(d._L=!1),void 0!==d.bgs&&0===d.bgs.length&&(d.bgs=!1)}},updateParallax:function(e,i){i.frame&&(i.frame=window.cancelAnimationFrame(i.frame));var a,r,o=i.eventData,s=t[e].c.offset().left,n=t[e].c.offset().top,l=t[e].conw,d=t[e].conh,c=i.speed/1e3||3;if("enterpoint"==i.origo&&"deviceorientation"!==o.type?(!1===i.mouseEntered&&(i.mouseEnterX=o.pageX-s,i.mouseEnterY=o.pageY-n,i.mouseEntered=!0),a=i.mouseEnterX-(o.pageX-s),r=i.mouseEnterY-(o.pageY-n),c=i.speed/1e3||.4):"deviceorientation"!==o.type&&(a=l/2-(o.pageX-s),r=d/2-(o.pageY-n)),"deviceorientation"==o.type){var p,g,u;p=o.beta-60,g=o.gamma,u=p;var h=Math.abs(i.orientationX-g)>1||Math.abs(i.orientationY-u)>1;if(i.orientationX=g,i.orientationY=u,!h)return;if(t.winW>t.getWinH(e)){var m=g;g=u,u=m}a=360/l*(g*=1.5),r=180/d*(u*=1.5)}o.type,"mouseout"===o.type&&(a=0,r=0,i.mouseEntered=!1);for(var f=0;f<i.pcontainers.length;f++){var v=i.pcontainers[f],y=i.pcontainer_depths[f],b="3D"==i.type||"3d"==i.type?y/200:y/100,_=a*b,w=r*b;"mousescroll"==i.type?tpGS.gsap.to(v,c,{force3D:"auto",x:_,ease:"power3.out",overwrite:"all"}):tpGS.gsap.to(v,c,{force3D:"auto",x:_,y:w,ease:"power3.out",overwrite:"all"})}"3D"!=i.type&&"3d"!=i.type||i.sctors.each(function(){var s=jQuery(this),n=t.isFirefox()?Math.min(25,i.levels[i.levels.length-1])/200:i.levels[i.levels.length-1]/200,l=a*n,d=r*n,p=0==t[e].conw?0:Math.round(a/t[e].conw*n*100)||0,g=0==t[e].conh?0:Math.round(r/t[e].conh*n*100)||0,u=s.closest("rs-slide"),h=0,m=!1;"deviceorientation"===o.type&&(n=i.levels[i.levels.length-1]/200,l=a*n,d=r*n*3,p=0==t[e].conw?0:Math.round(a/t[e].conw*n*500)||0,g=0==t[e].conh?0:Math.round(r/t[e].conh*n*700)||0),s.hasClass("dddwrapper-layer")&&(h=i.ddd_z_correction||65,m=!0),s.hasClass("dddwrapper-layer")&&(l=0,d=0),u.index()===t[e].pr_active_key||"carousel"!=t[e].sliderType?!i.ddd_bgfreeze||m?tpGS.gsap.to(s,c,{rotationX:g,rotationY:-p,x:l,z:h,y:d,ease:"power3.out",overwrite:"all"}):tpGS.gsap.to(s,.5,{force3D:"auto",rotationY:0,rotationX:0,z:0,ease:"power3.out",overwrite:"all"}):tpGS.gsap.to(s,.5,{force3D:"auto",rotationY:0,x:0,y:0,rotationX:0,z:0,ease:"power3.out",overwrite:"all"}),"mouseleave"!=o.type&&"mouseout"!==o.type||tpGS.gsap.to(this,3.8,{z:0,ease:"power3.out"})})},parallaxProcesses:function(e,a,r,o){var s=t[e].fixedOnTop?Math.min(1,Math.max(0,window.scrollY/t.lastwindowheight)):Math.min(1,Math.max(0,1-(a.top+a.hheight)/(a.hheight+t.lastwindowheight))),n=(a.top>=0&&a.top<=t.lastwindowheight||a.top<=0&&a.bottom>=0||a.top<=0&&a.bottom,t[e].slides[void 0===t[e].pr_active_key?0:t[e].pr_active_key]);if(t[e].scrollProg=s,t[e].sbtimeline.fixed?(!1!==t[e].fixedScrollOnState&&t.stickySupported&&(t[e].topc.addClass("rs-stickyscrollon"),t[e].fixedScrollOnState=!0),void 0===t[e].sbtimeline.rest&&t.updateFixedScrollTimes(e),a.top>=0&&a.top<=t.lastwindowheight?(s=t[e].sbtimeline.fixStart*(1-a.top/t.lastwindowheight)/1e3,!0!==t.stickySupported&&!1!==t[e].fixedScrollOnState&&(t[e].topc.removeClass("rs-fixedscrollon"),tpGS.gsap.set(t[e].cpar,{top:0}),t[e].fixedScrollOnState=!1)):a.top<=0&&a.bottom>=t[e].height?(!0!==t.stickySupported&&!0!==t[e].fixedScrollOnState&&(t[e].fixedScrollOnState=!0,t[e].topc.addClass("rs-fixedscrollon"),tpGS.gsap.set(t[e].cpar,{top:0})),s=(t[e].sbtimeline.fixStart+t[e].sbtimeline.time*(Math.abs(a.top)/(a.hheight-t[e].height)))/1e3):(!0!==t.stickySupported&&(tpGS.gsap.set(t[e].cpar,{top:t[e].scrollproc>=0?0:a.height-t[e].height}),!1!==t[e].fixedScrollOnState&&(t[e].topc.removeClass("rs-fixedscrollon"),t[e].fixedScrollOnState=!1)),s=a.top>t.lastwindowheight?0:(t[e].sbtimeline.fixEnd+t[e].sbtimeline.rest*(1-a.bottom/t[e].height))/1e3)):s=t[e].duration*s/1e3,void 0!==n&&void 0!==t.gA(n,"key")&&!0!==r)for(var l in t[e].sbas[t.gA(n,"key")])if(void 0!==t[e]._L[l]&&void 0!==t[e]._L[l].timeline&&(1==t[e]._L[l].animationonscroll||"true"==t[e]._L[l].animationonscroll)){var d=void 0!==t[e]._L[l].scrollBasedOffset?s+t[e]._L[l].scrollBasedOffset:s;d=d<=0?0:d<.1?.1:d,t[e]._L[l].animteToTime!==d&&(t[e]._L[l].animteToTime=d,tpGS.gsap.to(t[e]._L[l].timeline,t[e].sbtimeline.speed,{time:d,ease:t[e].sbtimeline.ease}))}if(i&&t[e].parallax.disable_onmobile)return!1;var c=t[e].parallax;if("3d"!=c.type&&"3D"!=c.type){if(("scroll"==c.type||"mousescroll"==c.type)&&c.pcontainers)for(var p=0;p<c.pcontainers.length;p++)if(c.pcontainers[p].length>0){var g=c.pcontainers[p],u=c.pcontainer_depths[p]/100,h=Math.round(t[e].scrollproc*(-u*t[e].conh)*10)/10||0,m=void 0!==o?o:c.speedls/1e3||0;g.data("parallaxoffset",h),tpGS.gsap.to(g,m,{overwrite:"auto",force3D:"auto",y:h})}if(c.bgcontainers)for(p=0;p<c.bgcontainers.length;p++){var f=c.bgcontainers[p],v=c.bgcontainer_depths[p];h=t[e].scrollproc*(-v*t[e].conh)||0,m=void 0!==o?o:c.speedbg/1e3||.015;m=void 0!==t[e].parallax.lastBGY&&0===m&&Math.abs(h-t[e].parallax.lastBGY)>50?.15:m,tpGS.gsap.to(f,m,{position:"absolute",top:"0px",left:"0px",backfaceVisibility:"hidden",force3D:"true",y:h+"px"}),t[e].parallax.lastBGY=h}}var y=t[e].scrolleffect;if(y.set&&(!i||!1===y.disable_onmobile)){var b=Math.abs(t[e].scrollproc)-y.tilt/100;if(b=b<0?0:b,!1!==y._L){var _=1-b*y.multiplicator_layers,w={force3D:"true"};if("top"==y.direction&&t[e].scrollproc>=0&&(_=1),"bottom"==y.direction&&t[e].scrollproc<=0&&(_=1),_=_>1?1:_<0?0:_,y.fade&&(w.opacity=_),y.scale){var x=_;w.scale=1-x+1}if(y.blur){var k=(1-_)*y.maxblur;w["-webkit-filter"]="blur("+k+"px)",w.filter="blur("+k+"px)"}if(y.grayscale){var S="grayscale("+100*(1-_)+"%)";w["-webkit-filter"]=void 0===w["-webkit-filter"]?S:w["-webkit-filter"]+" "+S,w.filter=void 0===w.filter?S:w.filter+" "+S}tpGS.gsap.set(y._L,w)}if(!1!==y.bgs){_=1-b*y.multiplicator,w={backfaceVisibility:"hidden",force3D:"true"};for(var L in"top"==y.direction&&t[e].scrollproc>=0&&(_=1),"bottom"==y.direction&&t[e].scrollproc<=0&&(_=1),_=_>1?1:_<0?0:_,y.bgs)if(y.bgs.hasOwnProperty(L)){if(y.bgs[L].fade&&(w.opacity=_),y.bgs[L].blur){k=(1-_)*y.maxblur;w["-webkit-filter"]="blur("+k+"px)",w.filter="blur("+k+"px)"}if(y.bgs[L].grayscale){S="grayscale("+100*(1-_)+"%)";w["-webkit-filter"]=void 0===w["-webkit-filter"]?S:w["-webkit-filter"]+" "+S,w.filter=void 0===w.filter?S:w.filter+" "+S}tpGS.gsap.set(y.bgs[L].c,w)}}}}});var a=function(e,i){var a=t[i].parallax;e.find("rs-sbg-wrap").wrapAll('<div class="dddwrapper" style="width:100%;height:100%;position:absolute;top:0px;left:0px;overflow:hidden"></div>'),e.find(".rs-parallax-wrap").wrapAll('<div class="dddwrapper-layer" style="width:100%;height:100%;position:absolute;top:0px;left:0px;z-index:5;overflow:'+a.ddd_layer_overflow+';"></div>'),e.find(".rs-pxl-tobggroup").closest(".rs-parallax-wrap").wrapAll('<div class="dddwrapper-layertobggroup" style="position:absolute;top:0px;left:0px;z-index:50;width:100%;height:100%"></div>');var r=e.find(".dddwrapper"),o=e.find(".dddwrapper-layer");e.find(".dddwrapper-layertobggroup").appendTo(r),"carousel"==t[i].sliderType&&(a.ddd_shadow&&r.addClass("dddwrappershadow"),tpGS.gsap.set(r,{borderRadius:t[i].carousel.border_radius})),tpGS.gsap.set(e,{overflow:"visible",transformStyle:"preserve-3d",perspective:1600}),tpGS.gsap.set(r,{force3D:"auto",transformOrigin:"50% 50%",transformStyle:"preserve-3d",transformPerspective:1600}),tpGS.gsap.set(o,{force3D:"auto",transformOrigin:"50% 50%",zIndex:5,transformStyle:"flat",transformPerspective:1600}),tpGS.gsap.set(t[i].canvas,{transformStyle:"preserve-3d",transformPerspective:1600})}}(jQuery),function(e){"use strict";var t=jQuery.fn.revolution;jQuery.extend(!0,t,{animateSlide:function(e){return a(e)}});var i=function(e,t){var i;return void 0!==(i=jQuery.isArray(e)?e.length>=t?e[t]:e[e.length-1]:e)&&jQuery.isNumeric(i)?parseInt(e,0):i},a=function(e){var a=e.id,n="arrow"==t[a].sc_indicator?void 0===t[a].sc_indicator_dir?t[a].sdir:t[a].sc_indicator_dir:t[a].sdir,l=!0===e.recall?jQuery.extend(!0,{},t[a].lastSliderTransition):function(e,i,a){var r="power1.in",o="power1.out",s="power1.inOut",n="power2.in",l="power2.out",d="power2.inOut",c="power3.inOut",p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],g=[17,18,19,20,21,22,23,24,25,27],u=0,h=1,m=0,f=[["boxslide",0,0,10,"box",!1,null,0,o,o,1e3,6],["boxrandomrotate",0,1,10,"box",!1,null,60,o,o,1e3,6],["boxfade",1,0,10,"box",!1,null,1,s,s,1e3,5],["slotslide-horizontal",2,0,0,"horizontal",!0,!1,2,d,d,1e3,3],["slotslide-vertical",3,0,0,"vertical",!0,!1,3,d,d,1e3,3],["curtain-1",4,3,0,"horizontal",!0,!0,4,o,o,900,5],["curtain-2",5,3,0,"horizontal",!0,!0,5,o,o,900,5],["curtain-3",6,3,25,"horizontal",!0,!0,6,o,o,900,5],["slotzoom-horizontal",7,0,0,"horizontal",!0,!0,7,o,o,1e3,7],["slotzoom-vertical",8,0,0,"vertical",!0,!0,8,l,l,1e3,8],["slotzoom-mixed",8,1,0,"vertical",!0,!0,59,l,l,1e3,8],["slotfade-horizontal",9,0,0,"horizontal",!0,null,9,d,d,1500,10],["slotfade-vertical",10,0,0,"vertical",!0,null,10,d,d,1500,10],["crossfade-horizontal",9,0,0,"horizontal",!0,null,9,d,d,1500,10],["crossfade-vertical",10,0,0,"vertical",!0,null,10,d,d,1500,10],["fade",11,0,1,"horizontal",!0,null,11,d,d,1e3,1],["crossfade",11,1,1,"horizontal",!0,null,11,d,d,1e3,1],["fadethroughdark",11,2,1,"horizontal",!0,null,11,d,d,1e3,1],["fadethroughlight",11,3,1,"horizontal",!0,null,11,d,d,1e3,1],["fadethroughtransparent",11,4,1,"horizontal",!0,null,11,d,d,1e3,1],["slideleft",12,0,1,"horizontal",!0,!0,12,c,c,1e3,1],["slideup",13,0,1,"horizontal",!0,!0,13,c,c,1e3,1],["slidedown",14,0,1,"horizontal",!0,!0,14,c,c,1e3,1],["slideright",15,0,1,"horizontal",!0,!0,15,c,c,1e3,1],["slideoverleft",12,7,1,"horizontal",!0,!0,12,c,c,1e3,1],["slideoverup",13,7,1,"horizontal",!0,!0,13,c,c,1e3,1],["slideoverdown",14,7,1,"horizontal",!0,!0,14,c,c,1e3,1],["slideoverright",15,7,1,"horizontal",!0,!0,15,c,c,1e3,1],["slideremoveleft",12,8,1,"horizontal",!0,!0,12,c,c,1e3,1],["slideremoveup",13,8,1,"horizontal",!0,!0,13,c,c,1e3,1],["slideremovedown",14,8,1,"horizontal",!0,!0,14,c,c,1e3,1],["slideremoveright",15,8,1,"horizontal",!0,!0,15,c,c,1e3,1],["papercut",16,0,0,"vertical",null,!0,16,c,c,1e3,2],["3dcurtain-horizontal",17,0,20,"vertical",!0,!0,17,s,s,2e3,7],["3dcurtain-vertical",18,0,10,"horizontal",!0,!0,18,s,s,2e3,7],["cubic",19,0,20,"horizontal",!1,!0,19,d,d,1e3,1],["cube",19,0,20,"horizontal",!1,!0,20,d,d,1e3,1],["flyin",20,0,4,"vertical",!1,!0,21,"power3.out",c,1e3,1],["turnoff",21,0,1,"horizontal",!1,!0,22,c,c,1e3,1],["incube",22,0,20,"horizontal",!1,!0,23,d,d,1e3,1],["cubic-horizontal",23,0,20,"vertical",!1,!0,24,d,d,1e3,1],["cube-horizontal",23,0,20,"vertical",!1,!0,25,d,d,1e3,1],["incube-horizontal",24,0,20,"vertical",!1,!0,26,d,d,1e3,1],["turnoff-vertical",25,0,1,"horizontal",!1,!0,27,d,d,1e3,1],["fadefromright",12,1,1,"horizontal",!0,!0,28,d,d,1e3,1],["fadefromleft",15,1,1,"horizontal",!0,!0,29,d,d,1e3,1],["fadefromtop",14,1,1,"horizontal",!0,!0,30,d,d,1e3,1],["fadefrombottom",13,1,1,"horizontal",!0,!0,31,d,d,1e3,1],["fadetoleftfadefromright",12,2,1,"horizontal",!0,!0,32,d,d,1e3,1],["fadetorightfadefromleft",15,2,1,"horizontal",!0,!0,33,d,d,1e3,1],["fadetobottomfadefromtop",14,2,1,"horizontal",!0,!0,34,d,d,1e3,1],["fadetotopfadefrombottom",13,2,1,"horizontal",!0,!0,35,d,d,1e3,1],["parallaxtoright",15,3,1,"horizontal",!0,!0,36,d,d,1500,1],["parallaxtoleft",12,3,1,"horizontal",!0,!0,37,d,d,1500,1],["parallaxtotop",14,3,1,"horizontal",!0,!0,38,d,d,1500,1],["parallaxtobottom",13,3,1,"horizontal",!0,!0,39,d,d,1500,1],["scaledownfromright",12,4,1,"horizontal",!0,!0,40,d,n,1e3,1],["scaledownfromleft",15,4,1,"horizontal",!0,!0,41,d,n,1e3,1],["scaledownfromtop",14,4,1,"horizontal",!0,!0,42,d,n,1e3,1],["scaledownfrombottom",13,4,1,"horizontal",!0,!0,43,d,n,1e3,1],["zoomout",13,5,1,"horizontal",!0,!0,44,d,d,1e3,1],["zoomin",13,6,1,"horizontal",!0,!0,45,d,d,1e3,1],["slidingoverlayup",27,0,1,"horizontal",!0,!0,47,s,o,2e3,1],["slidingoverlaydown",28,0,1,"horizontal",!0,!0,48,s,o,2e3,1],["slidingoverlayright",30,0,1,"horizontal",!0,!0,49,s,o,2e3,1],["slidingoverlayleft",29,0,1,"horizontal",!0,!0,50,s,o,2e3,1],["parallaxcirclesup",31,0,1,"horizontal",!0,!0,51,d,r,1500,1],["parallaxcirclesdown",32,0,1,"horizontal",!0,!0,52,d,r,1500,1],["parallaxcirclesright",33,0,1,"horizontal",!0,!0,53,d,r,1500,1],["parallaxcirclesleft",34,0,1,"horizontal",!0,!0,54,d,r,1500,1],["notransition",26,0,1,"horizontal",!0,null,46,d,n,1e3,1],["parallaxright",15,3,1,"horizontal",!0,!0,55,d,n,1500,1],["parallaxleft",12,3,1,"horizontal",!0,!0,56,d,n,1500,1],["parallaxup",14,3,1,"horizontal",!0,!0,57,d,r,1500,1],["parallaxdown",13,3,1,"horizontal",!0,!0,58,d,r,1500,1],["grayscale",11,5,1,"horizontal",!0,null,11,d,d,1e3,1],["grayscalecross",11,6,1,"horizontal",!0,null,11,d,d,1e3,1],["brightness",11,7,1,"horizontal",!0,null,11,d,d,1e3,1],["brightnesscross",11,8,1,"horizontal",!0,null,11,d,d,1e3,1],["blurlight",11,9,1,"horizontal",!0,null,11,d,d,1e3,1],["blurlightcross",11,10,1,"horizontal",!0,null,11,d,d,1e3,1],["blurstrong",11,9,1,"horizontal",!0,null,11,d,d,1e3,1],["blurstrongcross",11,10,1,"horizontal",!0,null,11,d,d,1e3,1]];return t[e].duringslidechange=!0,jQuery.each(["parallaxcircles","slidingoverlay","slide","slideover","slideremove","parallax","parralaxto"],function(e,t){i==t+"horizontal"&&(i=1!=a?t+"left":t+"right"),i==t+"vertical"&&(i=1!=a?t+"up":t+"down")}),"random"==i?i=Math.min(Math.round(Math.random()*(f.length-1)),f.length-1):"random-static"==i?i=p[Math.min(Math.round(Math.random()*p.length-1),p.length-1)]:"random-premium"==i&&(i=g[Math.min(Math.round(Math.random()*g.length-1),g.length-1)]),1==t[e].isJoomla&&null!=window.MooTools&&-1!=[12,13,14,15,16,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45].indexOf(i)&&(i=g[Math.max(0,Math.min(g.length-1,Math.round(Math.random()*(g.length-2))+1))]),jQuery.each(f,function(e,t){t[0]!=i&&t[7]!=i||(u=t[1],h=t[2],m=e)}),{nTR:u=Math.max(0,Math.min(30,u)),TR:f[m],trC:h}}(a,e.animation.transition[e.ntrid],n),d=t[a].pr_next_bg&&void 0!==t[a].pr_next_bg.data("panzoom")&&(l.nTR<11||17==l.nTR||18===l.nTR||l.nTR>=27&&l.nTR<=30)?11:l.nTR,c=!1,p=void 0!==t[a].pr_next_bg&&t[a].pr_next_bg.length>0&&void 0!==t[a].pr_next_bg[0],g=void 0!==t[a].pr_active_bg&&t[a].pr_active_bg.length>0&&void 0!==t[a].pr_active_bg[0];!0!==e.recall?(t[a].lastSliderAnimation=jQuery.extend(!0,{},e.animation),t[a].lastSliderTransition=jQuery.extend(!0,{},l)):e.animation=jQuery.extend(!0,{},t[a].lastSliderAnimation);var u=!0===e.recall?l.ntrid:e.ntrid||0,h=i(e.animation.masterspeed,u);if(h=(h="default"===h||"d"===h?l.TR[10]:"random"===h?Math.round(1e3*Math.random()+300):null!=h?parseInt(h,0):l.TR[10])>t[a].duration?t[a].duration:h,t[a].rotate=i(e.animation.rotate,u),t[a].rotate=null==t[a].rotate||"default"==t[a].rotate||"d"==t[a].rotate?0:999==t[a].rotate||"random"==t[a].rotate?Math.round(360*Math.random()):t[a].rotate,t[a].rotate=window._rs_ie||window._rs_ie9?0:t[a].rotate,(d<11||16===d||17===d||18===d||l.nTR>=27&&l.nTR<=30)&&(t[a].slots=i(e.animation.slotamount,u),t[a].slots=null==t[a].slots||"default"==t[a].slots||"d"==t[a].slots?l.TR[11]:"random"==t[a].slots?Math.round(12*Math.random()+4):t[a].slots,t[a].slots=t[a].slots<1?"boxslide"==l.TR[0]?Math.round(6*Math.random()+3):"boxslide"==l.TR[0]||"flyin"==l.TR[0]?Math.round(4*Math.random()+1):t[a].slots:t[a].slots,t[a].slots=(4==d||5==d||6==d)&&t[a].slots<3?3:t[a].slots,t[a].slots=0!=l.TR[3]?Math.min(t[a].slots,l.TR[3]):t[a].slots,t[a].slots=9==d?t[a].width/t[a].slots:10==d?t[a].height/t[a].slots:t[a].slots,t[a].slots=jQuery.inArray(d,[19,20,21,22,23,24,25,27])>=0?1:t[a].slots,t[a].slots=3!=d&&8!=d&&10!=d||"vertical"!==l.TR[4]?t[a].slots:t[a].slots+2,null!=l.TR[6]&&s(t[a].pr_active_bg,a,l.TR[6],l.TR[4]),null!=l.TR[5]&&s(t[a].pr_next_bg,a,l.TR[5],l.TR[4])),jQuery.inArray(d,[0,1,2,3,4,5,6,7,8,9,10,17,18,27,28,29,30])>=0){var m=t[a].pr_next_bg.find("rs-bgvideo");m.length>0&&(c=!0,t[a].mtl.add(tpGS.gsap.set(m,{zIndex:0,display:"none"}),0),setTimeout(function(){void 0!==t[a].videoIsPlaying&&t[a].videoIsPlaying.length>0&&t[a].videoIsPlaying[0].id==m[0].id&&t.stopVideo(m,a)},h>50?50:h-20),setTimeout(function(){void 0!==t[a].videoIsPlaying&&t[a].videoIsPlaying.length>0&&t[a].videoIsPlaying[0].id==m[0].id&&t.stopVideo(m,a)},h>100?100:h-10))}var f=7===d||16===d||8===d?0:1,v=d<11||17===d||18===d?0:1;if(p){var y=t[a].pr_next_bg.find("rs-sbg");void 0!==y[0]&&t[a].mtl.add(tpGS.gsap.set(y,{scale:1,rotationX:0,rotationY:0,rotationZ:0,z:0,x:0,y:0,clearProps:"filter, transform",opacity:v}),0),t[a].mtl.add(tpGS.gsap.set(t[a].pr_next_bg,{transformOrigin:"50% 50% 0",transformPerspective:600,scale:1,rotationX:0,rotationY:0,rotationZ:0,z:0,autoAlpha:1,x:0,y:0,clearProps:"filter, transform"}),0),t[a].mtl.add(tpGS.gsap.set(t[a].pr_next_bg.parent(),{backgroundColor:"transparent"}),0)}if(g){var b=t[a].pr_active_bg.find("rs-sbg");void 0!==b[0]&&t[a].mtl.add(tpGS.gsap.set(b,{scale:1,rotationX:0,rotationY:0,rotationZ:0,z:0,x:0,y:0,clearProps:"filter, transform",opacity:f}),0),t[a].mtl.add(tpGS.gsap.set(t[a].pr_active_bg,{transformOrigin:"50% 50% 0",transformPerspective:600,scale:1,rotationX:0,rotationY:0,rotationZ:0,z:0,autoAlpha:1,x:0,y:0,clearProps:"filter, transform"}),0),t[a].mtl.add(tpGS.gsap.set(t[a].pr_active_bg.parent(),{backgroundColor:"transparent"}),0)}var _=i(e.animation.easein,u),w=i(e.animation.easeout,u);if(_="default"===_||"d"===_?l.TR[8]||"power2.inOut":_||l.TR[8]||"power2.inOut",w="default"===w||"d"===w?l.TR[9]||"power2.inOut":w||l.TR[9]||"power2.inOut",d>=31){var x={canvas:t[a].pr_next_bg[0].getElementsByClassName("bgcanvas")[0]};if(x.ctx=x.canvas.getContext("2d"),x.oBG_next=t[a].pr_next_bg[0].getElementsByTagName("rs-sbg")[0],x.img_next=t.getLoadObj(a,t.gA(x.oBG_next,"src-rs-ref")),x.col_next=t.gA(x.oBG_next,"bgcolor"),g&&(x.oBG_act=t[a].pr_active_bg[0].getElementsByTagName("rs-sbg")[0],x.img_act=t.getLoadObj(a,t.gA(x.oBG_act,"src-rs-ref")),x.col_act=t.gA(x.oBG_act,"bgcolor")),x.ctx.clearRect(0,0,x.canvas.width,x.canvas.height),x.canvas.width=t[a].width,x.canvas.height=t[a].height,x.canvas.style.background="transparent",x.canvas.style.display="block",x.oBG_next.style.display="none",void 0!==x.col_next&&x.col_next.indexOf("gradient")>=0&&(x.col_next="transparent"),void 0!==x.col_act&&x.col_act.indexOf("gradient")>=0&&(x.col_act="transparent"),31===d){for(var k="transparent"!==x.col_next&&void 0!==x.col_next?{x:0,y:0,width:t[a].width,height:t[a].height}:r("contain"===x.oBG_next.style.backgroundSize,t[a].width,t[a].height,x.img_next.width,x.img_next.height),S=void 0===x.oBG_act?void 0:"transparent"!==x.col_act&&void 0!==x.col_act?{x:0,y:0,width:t[a].width,height:t[a].height}:r("contain"===x.oBG_act.style.backgroundSize,t[a].width,t[a].height,x.img_act.width,x.img_act.height),L=t[a].width/t[a].slots,T=L/2,O=t[a].height,A=[],R=0;R<t[a].slots+1;R++)A.push({mt:O,it:O/4,ml:0,o:2});t[a].mtl.add(tpGS.gsap.staggerTo(A,2*h/1e3,{mt:0,it:0,ml:T,o:0,ease:"power3.out",onUpdate:function(){var e=0;x.ctx.clearRect(0,0,x.canvas.width,x.canvas.height);for(var i=0;i<t[a].slots+1;i++){var r=A[i].mt,s=A[i].ml,n=A[i].it,l=A[i].mt-O,d=A[i].ml+T,c=A[i].it-O/4;o({ctx:x.ctx,poly:[[e-T+s,0+r],[e+T+1+s,0+r],[e+1+s,O+r],[e-L+s,O+r]],bg:{overlay:"rgba(0,0,0,"+A[i].o+")",img:x.img_next.img,col:x.col_next,offsetx:k.x,offsety:k.y+n,width:k.width,height:k.height}}),void 0!==x.col_act&&(x.oBG_act.style.display="none",o({ctx:x.ctx,poly:[[e-T+d,0+l],[e+T+1+d,0+l],[e+1+d,O+l],[e-L+d,O+l]],bg:{overlay:"rgba(0,0,0,"+(1-A[i].o)+")",img:x.img_act.img,col:x.col_act,offsetx:S.x,offsety:S.y+c,width:S.width,height:S.height}})),e+=L}}},.2,function(){x.ctx.clearRect(0,0,x.canvas.width,x.canvas.height),x.canvas.style.display="none",x.oBG_next.style.display="block"}),0)}}if(0==d){var I=Math.ceil(t[a].height/t[a].sloth),z=0;t[a].pr_next_bg.find(".slotslide").each(function(e){z=++z===I?0:z,t[a].rotate=1===l.trC?45:t[a].rotate,t[a].mtl.add(tpGS.gsap.from(this,h/2e3,{opacity:0,transformStyle:"flat",transformPerspective:600,scale:0,rotationZ:0!==t[a].rotate?Math.random()*t[a].rotate-t[a].rotate/2:0,force3D:"auto",ease:_}),(10*e+30*z)/3e3)})}else if(1==d)t[a].pr_next_bg.find(".slotslide").each(function(e){t[a].mtl.add(tpGS.gsap.from(this,(Math.random()*h+300)/1e3,{autoAlpha:0,force3D:"auto",rotation:t[a].rotate,ease:_}),(500*Math.random()+200)/1e3)});else if(2==d||3==d)t[a].pr_active_bg.find(".slotslide").each(function(){t[a].mtl.add(tpGS.gsap.to(this,h/1e3,{y:3===d?t[a].sloth:0,x:2===d?t[a].slotw:0,ease:_,force3D:"auto",rotation:0-t[a].rotate}),0)}),t[a].pr_next_bg.find(".slotslide").each(function(){t[a].mtl.add(tpGS.gsap.from(this,h/1e3,{y:3==d?1===n?0-t[a].sloth:t[a].sloth:0,x:2==d?1===n?0-t[a].slotw:t[a].slotw:0,ease:_,force3D:"auto",rotation:t[a].rotate}),0)});else if(4==d||5==d||6==d){var C=tpGS.gsap.timeline(),P=h/1e3-h/1e3/t[a].slots;t[a].slots-=t[a].slots%2==1?1:0,t[a].pr_active_bg.find(".slotslide").each(function(e){var i=6!==d?e:e>t[a].slots/2?t[a].slots-e:e,r=(5!==d?i:t[a].slots-i)*(P/t[a].slots)/(6===d?1.3:1);C.add(tpGS.gsap.to(this,P,{transformPerspective:600,force3D:"auto",y:1!==n?t[a].height:-t[a].height,opacity:.75,rotation:t[a].rotate,ease:_,delay:r}),0),t[a].mtl.add(C,0)}),t[a].pr_next_bg.find(".slotslide").each(function(e){var i=6!==d?e:e>t[a].slots/2?t[a].slots-e:e,r=(5!==d?i:t[a].slots-i)*(P/t[a].slots)/(6===d?1.3:1);C.add(tpGS.gsap.from(this,P,{y:1==n?t[a].height:-t[a].height,opacity:.75,rotation:t[a].rotate,force3D:"auto",ease:w,delay:r}),0),t[a].mtl.add(C,0)})}else if(7==d||8==d)h=Math.min(t[a].duration||h,h),t[a].pr_active_bg.find(".slotslide").each(function(e){var i=e>t[a].slots/2?t[a].slots-e:e;t[a].mtl.add(tpGS.gsap.to(this.getElementsByTagName("div"),h/1e3,{x:8===d&&0===l.trC?0:i*t[a].slotw/3,y:8===d&&0===l.trC?i*t[a].sloth/3:0,ease:_,transformPerspective:600,force3D:"auto",filter:"blur(2px)",scale:1.2,opacity:0}),0)}),t[a].pr_next_bg.find(".slotslide").each(function(e){var i=e>t[a].slots/2?t[a].slots-e:e;t[a].mtl.add(tpGS.gsap.fromTo(this.getElementsByTagName("div"),h/1e3,{x:8===d&&0===l.trC?0:0-i*t[a].slotw/3,y:8===d&&0===l.trC?0-i*t[a].sloth/3:0,filter:"blur(2px)",opacity:0,transformPerspective:600,scale:1.2},{x:0,y:0,ease:w,force3D:"auto",scale:1,filter:"blur(0px)",opacity:1,rotation:0}),0)});else if(9==d||10==d){var B=t[a].pr_next_bg[0].getElementsByClassName("slotslide"),G=h-h/1.8;for(R=0;R<B.length;R++)t[a].mtl.add(tpGS.gsap.fromTo(B[R],(h-R*(G/t[a].slots))/1e3,{zIndex:10,opacity:0},{opacity:1,ease:"none",delay:R*(G/t[a].slots)/1e3}),0)}else if(11==d){l.trC=Math.min(12,l.trC);var M=2==l.trC?"#000000":3==l.trC?"#ffffff":"transparent";switch(h=0===h?10:h,l.trC){case 0:p&&t[a].mtl.add(tpGS.gsap.fromTo(t[a].pr_next_bg,h/1e3,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:_}),0);break;case 1:p&&t[a].mtl.add(tpGS.gsap.fromTo(t[a].pr_next_bg,h/1e3,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:_}),0),t[a].mtl.add(tpGS.gsap.fromTo(t[a].pr_active_bg,h/1e3,{autoAlpha:1},{autoAlpha:0,force3D:"auto",ease:_}),0);break;case 2:case 3:case 4:t[a].mtl.add(tpGS.gsap.set(t[a].pr_active_bg.parent(),{backgroundColor:M,force3D:"auto"}),0),t[a].mtl.add(tpGS.gsap.set(t[a].pr_next_bg.parent(),{backgroundColor:"transparent",force3D:"auto"}),0),g&&t[a].mtl.add(tpGS.gsap.to(t[a].pr_active_bg,h/2e3,{autoAlpha:0,force3D:"auto",ease:_}),0),p&&t[a].mtl.add(tpGS.gsap.fromTo(t[a].pr_next_bg,h/2e3,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:_}),h/2e3);break;case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:var D="blur("+(jQuery.inArray(l.trC,[9,10])>=0?5:jQuery.inArray(l.trC,[11,12])>=0?10:0)+"px) grayscale("+(jQuery.inArray(l.trC,[5,6,7,8])>=0?100:0)+"%) brightness("+(jQuery.inArray(l.trC,[7,8])>=0?300:0)+"%)",H="blur(0px) grayscale(0%) brightness(100%)";p&&t[a].mtl.add(tpGS.gsap.fromTo(t[a].pr_next_bg,h/1e3,{autoAlpha:0,filter:D,"-webkit-filter":D},{autoAlpha:1,filter:H,"-webkit-filter":H,force3D:"auto",ease:_}),0),jQuery.inArray(l.trC,[6,8,10])>=0&&t[a].mtl.add(tpGS.gsap.fromTo(t[a].pr_active_bg,h/1e3,{autoAlpha:1,filter:H,"-webkit-filter":H},{autoAlpha:0,force3D:"auto",ease:_,filter:D,"-webkit-filter":D}),0)}t[a].mtl.add(tpGS.gsap.set(t[a].pr_next_bg.find("rs-sbg"),{autoAlpha:1}),0),g&&t[a].mtl.add(tpGS.gsap.set(t[a].pr_active_bg.find("rs-sbg"),{autoAlpha:1}),0)}else if(12==d||13==d||14==d||15==d){var j=3==l.trC?h/1300:h/1e3,W=h/1e3,N=5==l.trC||6==l.trC?0:t[a].width,F=5==l.trC||6==l.trC?0:t[a].currentSlideHeight,E=12==d?N:15==d?0-N:0,Q=13==d?5==l.trC||6==l.trC?0:t[a].height:14==d?5==l.trC||6==l.trC?0:0-t[a].height:0,V=1==l.trC||2==l.trC||5==l.trC||6==l.trC?0:1,Y=4==l.trC||5==l.trC?.6:6==l.trC?1.4:1,X=5==l.trC?1.4:6==l.trC?.6:1;if(7!=l.trC&&4!=l.trC||(N=0,F=0),8==l.trC?(t[a].mtl.add(tpGS.gsap.set(t[a].pr_active_slide,{zIndex:20}),0),t[a].mtl.add(tpGS.gsap.set(t[a].pr_next_slide,{zIndex:15}),0),t[a].mtl.add(tpGS.gsap.to(t[a].pr_next_bg,.01,{overflow:"hidden",x:0,y:0,scale:1,autoAlpha:1,rotation:0,overwrite:!0,immediateRender:!0,force3D:"auto"}),0)):(void 0!==t[a].pr_active_slide&&t[a].pr_active_slide.length>0&&t[a].mtl.add(tpGS.gsap.set(t[a].pr_active_slide,{zIndex:15}),0),void 0!==t[a].pr_next_slide&&t[a].pr_next_slide.length>0&&t[a].mtl.add(tpGS.gsap.set(t[a].pr_next_slide,{zIndex:20}),0),p&&t[a].mtl.add(tpGS.gsap.fromTo(t[a].pr_next_bg,j,{x:E,y:Q,overflow:"hidden",scale:X,autoAlpha:V,rotation:t[a].rotate},{autoAlpha:1,x:0,y:0,scale:1,rotation:0,ease:_,force3D:"auto"}),0)),1!=l.trC)switch(d){case 12:g&&t[a].mtl.add(tpGS.gsap.to(t[a].pr_active_bg,W,{x:0-N+"px",overflow:"hidden",force3D:"auto",scale:Y,autoAlpha:V,rotation:t[a].rotate,ease:w}),0);break;case 15:g&&t[a].mtl.add(tpGS.gsap.to(t[a].pr_active_bg,W,{x:N+"px",overflow:"hidden",force3D:"auto",scale:Y,autoAlpha:V,rotation:t[a].rotate,ease:w}),0);break;case 13:g&&t[a].mtl.add(tpGS.gsap.to(t[a].pr_active_bg,W,{y:0-F+"px",overflow:"hidden",force3D:"auto",scale:Y,autoAlpha:V,rotation:t[a].rotate,ease:w}),0);break;case 14:g&&t[a].mtl.add(tpGS.gsap.to(t[a].pr_active_bg,W,{y:F+"px",overflow:"hidden",force3D:"auto",scale:Y,autoAlpha:V,rotation:t[a].rotate,ease:w}),0)}}else if(16==d){var J=1===n?"80% 50% 0":"20%  50% 0";t[a].mtl.add(tpGS.gsap.set(t[a].pr_active_slide,{zIndex:20}),0),t[a].mtl.add(tpGS.gsap.set(t[a].pr_next_slide,{zIndex:15}),0),t[a].pr_active_bg.find(".slotslide").each(function(e){t[a].mtl.add(tpGS.gsap.fromTo(this,h/1e3,{x:0,rotationZ:0,opacity:1,y:0,z:0,scale:1},{opacity:1,x:1===n?0==e?-t[a].width/1.6:-t[a].width/1.8:0===e?t[a].width/1.6:t[a].width/1.8,rotationZ:1===n?0===e?-35:25:0===e?25:-35,z:0,y:0==e?"-120%":"140%",scale:.8,force3D:"auto",transformPerspective:600,transformOrigin:J,delay:0,ease:_}),0),t[a].mtl.add(tpGS.gsap.fromTo(this,h/2e3,{opacity:1},{opacity:0,delay:h/2e3}),0)}),p&&t[a].mtl.add(tpGS.gsap.fromTo(t[a].pr_next_bg,h/1e3-h/7e3,{x:100*Math.random()-50,opacity:1,scale:.9,rotationZ:10*Math.random()-5},{x:0,opacity:1,scale:1,rotationZ:0,ease:_,force3D:"auto",delay:h/7e3}),0)}else if(17==d||18==d)t[a].pr_next_bg.find(".slotslide").each(function(e){t[a].mtl.add(tpGS.gsap.fromTo(this,h/t[a].slots/1e3,{opacity:0,y:0,x:0,rotationY:17===d?0:90,scale:1,rotationX:17===d?-90:0,force3D:"auto",transformPerspective:600,transformOrigin:17===d?"top center":"center left"},{opacity:1,y:0,x:0,rotationX:0,rotationY:0,force3D:"auto",ease:w,delay:e*(h/t[a].slots/2e3)}),0)}),t[a].pr_active_bg.find(".slotslide").each(function(e){t[a].mtl.add(tpGS.gsap.fromTo(this,h/t[a].slots/1e3,{opacity:1,rotationY:0,scale:1,rotationX:0,force3D:"auto",transformPerspective:600,transformOrigin:17===d?"bottom center":"center right"},{opacity:0,rotationX:17===d?110:0,rotationY:17===d?0:110,force3D:"auto",ease:_,delay:e*(h/t[a].slots/2e3)}),0)});else if(19==d||22==d||23==d||24==d){t[a].mtl.add(tpGS.gsap.set(t[a].pr_active_slide,{zIndex:20}),0),t[a].mtl.add(tpGS.gsap.set(t[a].pr_next_slide,{zIndex:10}),0);J=19===d?"center center -"+t[a].height/2:22===d?"center center "+t[a].height/2:23===d?"center center -"+t[a].width/2:"center center "+t[a].width/2;var q=[];tpGS.gsap.set(t[a].c,{transformStyle:"flat",backfaceVisibility:"hidden",transformPerspective:600}),p&&(q.push(t[a].pr_next_bg),t[a].mtl.add(tpGS.gsap.fromTo(t[a].pr_next_bg,h/1e3,{rotationX:19==d||22===d?1==n?-90:90:0,rotationY:23==d||24===d?1==n?-90:90:0,x:0,scale:1,y:0,overflow:"hidden",autoAlpha:1,transformStyle:"flat",backfaceVisibility:"hidden",force3D:"auto",transformPerspective:1200,transformOrigin:J},{overflow:"hidden",x:0,autoAlpha:1,rotationX:0,rotationY:0,y:0,scale:1,delay:0,ease:_,transformStyle:"flat",backfaceVisibility:"hidden",force3D:"auto",transformPerspective:1200,transformOrigin:J}),0),t[a].mtl.add(tpGS.gsap.fromTo(t[a].pr_next_bg,h/2e3,{z:19==d||23===d?-200:0},{z:19===d||23===d?0:-200,ease:"power3.inOut",delay:19===d||23===d?h/2e3:0}),0)),22!==d&&24!==d||(g&&q.push(t[a].pr_active_bg),t[a].mtl.add(tpGS.gsap.fromTo(q,h/2e3,{z:-200},{z:0,ease:"power2.in",delay:h/2e3}),0)),g&&t[a].mtl.add(tpGS.gsap.fromTo(t[a].pr_active_bg,h/2e3,{z:0},{z:-200,ease:"power3.inOut",delay:0,force3D:"auto"}),0),!g||19!==d&&23!==d||t[a].mtl.add(tpGS.gsap.fromTo(t[a].pr_active_bg,h/2e3,{autoAlpha:1},{autoAlpha:0,ease:"none",delay:h/2e3,force3D:"auto"}),0),g&&t[a].mtl.add(tpGS.gsap.fromTo(t[a].pr_active_bg,h/1e3,{overflow:"hidden",rotationX:0,rotationY:0,rotationZ:0,y:0,x:0,scale:1,transformStyle:"flat",backfaceVisibility:"hidden",force3D:"auto",transformPerspective:1200,transformOrigin:J},{rotationX:19===d||22===d?1==n?90:-90:0,rotationY:23===d||24===d?1==n?90:-90:0,overflow:"hidden",y:0,scale:1,delay:0,force3D:"auto",ease:_,transformStyle:"flat",backfaceVisibility:"hidden",transformPerspective:1200,transformOrigin:J}),0)}else if(20==d){J=1===n?"20% ":"80% ";J+="60% -50%",p&&t[a].mtl.add(tpGS.gsap.fromTo(t[a].pr_next_bg,h/1e3,{x:1===n?-t[a].width:t[a].width,rotationX:20,z:-t[a].width,autoAlpha:0,y:0,scale:1,force3D:"auto",transformPerspective:600,transformOrigin:J,rotationY:1===n?50:-50},{x:0,rotationX:0,autoAlpha:1,y:0,z:0,scale:1,rotationY:0,delay:0,ease:_}),0),J=1!=n?"20% ":"80% ",J+="60% -50%",t[a].mtl.add(tpGS.gsap.fromTo(t[a].pr_active_bg,h/1e3,{autoAlpha:1,rotationX:0,y:0,z:0,scale:1,x:0,force3D:"auto",transformPerspective:600,transformOrigin:J,rotationY:0},{autoAlpha:1,rotationX:20,y:0,z:-t[a].width,x:1!=n?-t[a].width/1.2:t[a].width/1.2,force3D:"auto",rotationY:1===n?-50:50,delay:0,ease:"power2.inOut"}),0)}else if(21==d||25==d){var Z=25===d?t[a].rotate:1===n?90:-90,U=25===d?1===n?-90:90:t[a].rotate;J=1===n?25===d?"center top 0":"left center 0":25===d?"center bottom 0":"right center 0";p&&t[a].mtl.add(tpGS.gsap.fromTo(t[a].pr_next_bg,h/1e3,{transformStyle:"flat",rotationX:U,y:0,x:0,autoAlpha:0,force3D:"auto",transformPerspective:1200,transformOrigin:J,rotationY:Z},{autoAlpha:1,rotationX:0,rotationY:0,ease:_}),0),J=1===n?25===d?"center bottom 0":"right center 0":25===d?"center top 0":"left center 0",Z=25!==d?-Z:Z,U=25!==d?U:-U,t[a].mtl.add(tpGS.gsap.fromTo(t[a].pr_active_bg,h/1e3,{rotationX:0,rotationY:0,transformStyle:"flat",transformPerspective:1200,force3D:"auto"},{immediateRender:!0,rotationX:U,transformOrigin:J,rotationY:Z,ease:w}),0)}else if(26==d)h=0,p&&(t[a].mtl.add(tpGS.gsap.fromTo(t[a].pr_next_bg,.001,{autoAlpha:0},{autoAlpha:1,force3D:"auto",ease:_}),0),t[a].mtl.add(tpGS.gsap.set(t[a].pr_next_bg.find("rs-sbg"),{autoAlpha:1}),0)),g&&(t[a].mtl.add(tpGS.gsap.to(t[a].pr_active_bg,.001,{autoAlpha:0,force3D:"auto",ease:_}),0),t[a].mtl.add(tpGS.gsap.set(t[a].pr_active_bg.find("rs-sbg"),{autoAlpha:1}),0));else if(27==d||28==d||29==d||30==d){var K=t[a].pr_next_bg.find(".slot"),$=27==d||29==d?"-100%":"100%",ee=27==d||29==d?"100%":"-100%",te=27==d||29==d?"-80%":"80%",ie=27==d||29==d?"80%":"-80%",ae=27==d||29==d?"10%":"-10%",re={overwrite:"all"},oe={autoAlpha:0,zIndex:1,force3D:"auto",ease:_},se={position:"inherit",autoAlpha:0,overwrite:"all",zIndex:1},ne={autoAlpha:1,force3D:"auto",ease:w},le={overwrite:"all",zIndex:2,opacity:1,autoAlpha:1},de={autoAlpha:1,force3D:"auto",overwrite:"all",ease:_},ce={overwrite:"all",zIndex:2,autoAlpha:1},pe={autoAlpha:1,force3D:"auto",ease:_},ge=1==(27==d||28==d?1:2)?"y":"x";re[ge]="0%",oe[ge]=$,se[ge]=ae,ne[ge]=0,le[ge]=ee,de[ge]=$,ce[ge]=te,pe[ge]=ie,K.append('<span style="background-color:rgba(0,0,0,0.6);width:100%;height:100%;position:absolute;top:0px;left:0px;display:block;z-index:2"></span>'),g&&t[a].mtl.add(tpGS.gsap.fromTo(t[a].pr_active_bg,h/1e3,re,oe),0),p&&t[a].mtl.add(tpGS.gsap.fromTo(t[a].pr_next_bg.find("rs-sbg"),h/2e3,se,ne),h/2e3),t[a].mtl.add(tpGS.gsap.fromTo(K,h/1e3,le,de),0),t[a].mtl.add(tpGS.gsap.fromTo(K.find(".slotslide div"),h/1e3,ce,pe),0)}c&&m.length>0&&t[a].mtl.add(tpGS.gsap.set(m,{zIndex:30,display:"block",onComplete:function(){t.playVideo(m,a)}}))},r=function(e,t,i,a,r){var o=a/r,s=t/i,n=t,l=i;return(e?o>s:o<s)?l=n/o:n=l*o,{width:n,height:l,x:(t-n)/2,y:(i-l)/2}},o=function(e){e.ctx.save(),e.ctx.beginPath(),e.ctx.moveTo(e.poly[0][0],e.poly[0][1]);for(var t=1;t<e.poly.length;t++)e.ctx.lineTo(e.poly[t][0],e.poly[t][1]);e.ctx.closePath(),e.ctx.lineWidth=2,e.ctx.stroke(),e.ctx.clip(),void 0!==e.bg.img&&e.ctx.drawImage(e.bg.img,e.bg.offsetx,e.bg.offsety,e.bg.width,e.bg.height),"transparent"!==e.bg.col&&void 0!==e.bg.col&&(e.ctx.fillStyle=e.bg.col,e.ctx.fillRect(e.bg.offsetx,e.bg.offsety,e.bg.width,e.bg.height)),void 0!==e.bg.overlay&&(e.ctx.fillStyle=e.bg.overlay,e.ctx.fillRect(e.bg.offsetx,e.bg.offsety,e.bg.width,e.bg.height)),e.ctx.restore()},s=function(e,i,a,r){if(0!==e.length){var o=e.find("rs-sbg"),s=o.data("mediafilter"),n=e.data("zoomstart"),l=e.data("rotationstart");null!=o.data("currotate")&&(l=o.data("currotate")),null!=o.data("curscale")&&"box"==r?n=100*o.data("curscale"):null!=o.data("curscale")&&(n=o.data("curscale")),function(e,i){t[i].slotw=Math.ceil(t[i].width/t[i].slots),"fullscreen"==t[i].sliderLayout?t[i].sloth=Math.ceil(t.getWinH(i)/t[i].slots):t[i].sloth=Math.ceil(t[i].height/t[i].slots)}(0,i);var d=void 0!==o[0]&&void 0!==o[0].dataset&&void 0!==o[0].dataset.lazyload?o[0].dataset.lazyload:o.attr("src"),c=t[i].width,p=t[i].autoHeight?t[i].c.height():t[i].height,g=o.data("fxof"),u=0,h=e.data("bgcolor")||"transparent",m=e.data("bgfit")||"cover",f=e.data("bgrepeat")||"no-repeat",v=e.data("bgposition")||"center center",y=void 0!==h&&h.indexOf("gradient")>=0?"background:"+h:"background-color:"+h+";background-image:url("+d+");background-repeat:"+f+";background-size:"+m+";background-position:"+v,b="";g=null==g?0:g;var _=e[0].parentNode;if(e.detach(),e.find(".slot").each(function(){jQuery(this).remove()}),"box"===r)for(var w=0,x=0,k=0;k<t[i].slots;k++){x=0;for(var S=0;S<t[i].slots;S++)b+='<div class="slot" style="'+(null!=n&&null!=l?"transform:rotateZ("+l+"deg)":"")+";position:absolute;overflow:hidden;top:"+(0+x)+"px;left:"+(g+w)+"px;width:"+t[i].slotw+"px;height:"+t[i].sloth+'px;"><div class="slotslide '+s+'" data-x="'+w+'" data-y="'+x+'" style="position:absolute;top:0px;left:0px;width:'+t[i].slotw+"px;height:"+t[i].sloth+'px;overflow:hidden;"><div style="position:absolute;top:'+(0-x)+"px;left:"+(0-w)+"px;width:"+c+"px;height:"+p+"px;"+y+';"></div></div></div>',x+=t[i].sloth;w+=t[i].slotw}else if("horizontal"===r){if(!a)u=0-t[i].slotw;for(S=0;S<t[i].slots;S++)b+='<div class="slot" style="'+(null!=n&&null!=l?"transform:rotateZ("+l+"deg)":"")+";position:absolute;overflow:hidden;top:0px;left:"+(g+S*t[i].slotw)+"px;width:"+(t[i].slotw+.3)+"px;height:"+p+'px"><div class="slotslide '+s+'" style="position:absolute;top:0px;left:'+u+"px;width:"+(t[i].slotw+.6)+"px;height:"+p+'px;overflow:hidden;"><div style="position:absolute;top:0px;left:'+(0-S*t[i].slotw)+"px;width:"+c+"px;height:"+p+"px;"+y+';"></div></div></div>'}if("vertical"===r){if(!a)u=0-t[i].sloth;for(S=0;S<t[i].slots;S++)b+='<div class="slot" style="'+(null!=n&&null!=l?"transform:rotateZ("+l+"deg)":"")+";position:absolute;overflow:hidden;top:"+(0+S*t[i].sloth)+"px;left:"+g+"px;width:"+c+"px;height:"+t[i].sloth+'px"><div class="slotslide '+s+'" style="position:absolute;top:'+u+"px;left:0px;width:"+c+"px;height:"+t[i].sloth+'px;overflow:hidden;"><div style="position:absolute;top:'+(0-S*t[i].sloth)+"px;left:0px;width:"+c+"px;height:"+p+"px;"+y+';"></div></div></div>'}e.append(b),_.appendChild(e[0])}}}(jQuery),function(e){"use strict";var t=jQuery.fn.revolution,i=t.is_mobile();t.is_android();function a(e){return null==e?-1:jQuery.isNumeric(e)?e:e.split(":").length>1?60*parseInt(e.split(":")[0],0)+parseInt(e.split(":")[1],0):e}jQuery.extend(!0,t,{preLoadAudio:function(e,i){t[i].videos=void 0===t[i].videos?{}:t[i].videos,e.find(".rs-layer-audio").each(function(){var a=jQuery(this),r=t[i].videos[a[0].id]=void 0===t[i].videos[a[0].id]?v(a.data(),"audio",t.gA(e[0],"key")):t[i].videos[a[0].id],o={};0===a.find("audio").length&&(o.src=null!=r.mp4?r.mp4:"",o.pre=r.pload||"",this.id=void 0===this.id||""===this.id?a.attr("audio-layer-"+Math.round(199999*Math.random())):this.id,o.id=this.id,o.status="prepared",o.start=jQuery.now(),o.waittime=void 0!==r.ploadwait?1e3*r.ploadwait:5e3,"auto"!=o.pre&&"canplaythrough"!=o.pre&&"canplay"!=o.pre&&"progress"!=o.pre||(void 0===t[i].audioqueue&&(t[i].audioqueue=[]),t[i].audioqueue.push(o),t.manageVideoLayer(a,i,t.gA(e[0],"key"))))})},preLoadAudioDone:function(e,i,a){var r=t[i].videos[e[0].id];t[i].audioqueue&&t[i].audioqueue.length>0&&jQuery.each(t[i].audioqueue,function(e,t){r.mp4!==t.src||t.pre!==a&&"auto"!==t.pre||(t.status="loaded")})},resetVideo:function(e,a,r,o){var s=t[a].videos[e[0].id];switch(s.type){case"youtube":s.rwd&&null!=s.player&&void 0!==s.player.seekTo&&(s.player.seekTo(-1==s.ssec?0:s.ssec),s.player.pauseVideo()),0!=e.find("rs-poster").length||s.bgvideo||"preset"===r||tpGS.gsap.to(e.find("iframe"),.3,{opacity:1,display:"block",ease:"power3.inOut"});break;case"vimeo":void 0!==s.vimeoplayer&&!o&&s.rwd&&(0!==s.ssec&&-1!==s.ssec||s.bgvideo||e.find("rs-poster").length>0)&&(s.vimeoplayer.setCurrentTime(-1==s.ssec?0:s.ssec),s.vimeoplayer.pause()),0!=e.find("rs-poster").length||s.bgvideo||"preset"===r||tpGS.gsap.to(e.find("iframe"),.3,{opacity:1,display:"block",ease:"power3.inOut"});break;case"html5":if(i&&s.notonmobile)return!1;tpGS.gsap.to(s.jvideo,.3,{opacity:1,display:"block",ease:"power3.inOut"}),!s.rwd||e.hasClass("videoisplaying")||isNaN(s.video.duration)||(s.justReseted=!0,s.video.currentTime=-1==s.ssec?0:s.ssec),("mute"==s.volume||t.lastToggleState(e.videomutetoggledby)||!0===t[a].globalmute)&&(s.video.muted=!0)}},Mute:function(e,i,a){var r=!1,o=t[i].videos[e[0].id];switch(o.type){case"youtube":o.player&&(!0===a&&o.player.mute(),!1===a&&l(o,parseInt(o.volcache,0)),r=o.player.isMuted());break;case"vimeo":o.volcachecheck||(o.volcache=o.volcache>1?o.volcache/100:o.volcache,o.volcachecheck=!0),o.volume=!0===a?"mute":!1===a?o.volcache:o.volume,void 0!==a&&null!=o.vimeoplayer&&n(o,!0===a?0:o.volcache),r="mute"==o.volume||0===o.volume;break;case"html5":o.volcachecheck||(o.volcache=o.volcache>1?o.volcache/100:o.volcache,o.volcachecheck=!0),o.video.volume=o.volcache,void 0!==a&&o.video&&(o.video.muted=a),r=void 0!==o.video?o.video.muted:r}if(void 0===a)return r},stopVideo:function(e,i){if(void 0!==t[i]&&void 0!==t[i]){var a=t[i].videos[e[0].id];if(void 0!==a)switch(t[i].leaveViewPortBasedStop||(t[i].lastplayedvideos=[]),t[i].leaveViewPortBasedStop=!1,a.type){case"youtube":if(void 0===a.player||2===a.player.getPlayerState()||5===a.player.getPlayerState())return;a.player.pauseVideo(),a.youtubepausecalled=!0,setTimeout(function(){a.youtubepausecalled=!1},80);break;case"vimeo":if(void 0===a.vimeoplayer)return;a.vimeoplayer.pause(),a.vimeopausecalled=!0,setTimeout(function(){a.vimeopausecalled=!1},80);break;case"html5":a.video&&a.video.pause()}}},playVideo:function(e,i){var a=t[i].videos[e[0].id];switch(clearTimeout(a.videoplaywait),a.type){case"youtube":if(0==e.find("iframe").length)e.append(a.videomarkup),u(e,i,!0);else if(null!=a.player.playVideo){var o=a.player.getCurrentTime();a.nseTriggered&&(o=-1,a.nseTriggered=!1),-1!=a.ssec&&a.ssec>o&&a.player.seekTo(a.ssec),!0!==a.youtubepausecalled&&p(a)}else a.videoplaywait=setTimeout(function(){!0!==a.youtubepausecalled&&t.playVideo(e,i)},50);break;case"vimeo":0==e.find("iframe").length?(delete a.vimeoplayer,e.append(a.videomarkup),u(e,i,!0)):e.hasClass("rs-apiready")?(a.vimeoplayer=null==a.vimeoplayer?new Vimeo.Player(e.find("iframe").attr("id")):a.vimeoplayer,a.vimeoplayer.getPaused()?setTimeout(function(){var r=void 0===a.currenttime?0:a.currenttime;a.nseTriggered&&(r=-1,a.nseTriggered=!1),-1!=a.ssec&&a.ssec>r&&a.vimeoplayer.setCurrentTime(a.ssec),("mute"==a.volume||0===a.volume||t.lastToggleState(e.data("videomutetoggledby"))||!0===t[i].globalmute)&&(a.volumetoken=!0,a.vimeoplayer.setVolume(0)),c(a.vimeoplayer)},510):a.videoplaywait=setTimeout(function(){!0!==a.vimeopausecalled&&t.playVideo(e,i)},50)):a.videoplaywait=setTimeout(function(){!0!==a.vimeopausecalled&&t.playVideo(e,i)},100);break;case"html5":if(a.metaloaded){d(a.video);o=a.video.currentTime;a.nseTriggered&&(o=-1,a.nseTriggered=!1),-1!=a.ssec&&a.ssec>o&&(a.video.currentTime=a.ssec)}else r(a.video,"loadedmetadata",function(e){t.resetVideo(e,i),a.video.play();var r=a.video.currentTime;a.nseTriggered&&(r=-1,a.nseTriggered=!1),-1!=a.ssec&&a.ssec>r&&(a.video.currentTime=a.ssec)}(e))}},isVideoPlaying:function(e,i){var a=!1;return null!=t[i].playingvideos&&jQuery.each(t[i].playingvideos,function(t,i){e.attr("id")==i.attr("id")&&(a=!0)}),a},removeMediaFromList:function(e,t){b(e,t)},prepareCoveredVideo:function(e){clearTimeout(t[e].resizePrepareCoverVideolistener);var i="carousel"===t[e].sliderType?t[e].carousel.justify?void 0===t[e].carousel.slide_widths?void 0:t[e].carousel.slide_widths[t[e].carousel.focused]:t[e].carousel.slide_width:t[e].conw,a="carousel"===t[e].sliderType?t[e].carousel.slide_height:t[e].conh;if(0===i||0===a||void 0===i||void 0===a)return t.contWidthManager(e,"containerResized_1"),t.updateDimensions(e,"prepareCoveredVideo"),t.setSize(e,void 0,"prepareCoveredVideo"),t[e].dimensionChanged=!0,t.updateDimensions(e,"prepareCoveredVideo"),void(t[e].resizePrepareCoverVideolistener=setTimeout(function(){t.prepareCoveredVideo(e)},100));for(var r in t[e].videos){var o=t[e].videos[r];if((o.bgvideo||o.fcover)&&("html5"===o.type&&void 0!==o.jvideo&&tpGS.gsap.set(o.jvideo,{width:i}),void 0===t[e].activeRSSlide||o.slideid===t.gA(t[e].slides[t[e].activeRSSlide],"key")||void 0===t[e].pr_next_slide||o.slideid===t.gA(t[e].pr_next_slide[0],"key"))){o.vd=o.ratio.split(":").length>1?o.ratio.split(":")[0]/o.ratio.split(":")[1]:1;var s=i/a,n=s/o.vd*100,l=o.vd/s*100;"Edge"===t.get_browser()||"IE"===t.get_browser()?(o.ifr=void 0===o.ifr?o.video:o.ifr,s>o.vd?tpGS.gsap.set(o.ifr,{minWidth:"100%",height:n+"%",x:"-50%",y:"-50%",top:"50%",left:"50%",position:"absolute"}):tpGS.gsap.set(o.ifr,{minHeight:"100%",width:l+"%",x:"-50%",y:"-50%",top:"50%",left:"50%",position:"absolute"})):s>o.vd?tpGS.gsap.set(o.ifr,{height:n+"%",width:"100%",top:-(n-100)/2+"%",left:"0px",position:"absolute"}):tpGS.gsap.set(o.ifr,{width:l+"%",height:"100%",left:-(l-100)/2+"%",top:"0px",position:"absolute"})}}},checkVideoApis:function(e,i){location.protocol;if(!t[i].youtubeapineeded&&((null!=e.data("ytid")||e.find("iframe").length>0&&e.find("iframe").attr("src").toLowerCase().indexOf("youtube")>0)&&(t[i].youtubeapineeded=!0),t[i].youtubeapineeded&&!window.rs_addedyt)){t[i].youtubestarttime=jQuery.now(),window.rs_addedyt=!0;var a=document.createElement("script"),r=document.getElementsByTagName("script")[0],o=!0;a.src="https://www.youtube.com/iframe_api",jQuery("head").find("*").each(function(){"https://www.youtube.com/iframe_api"==jQuery(this).attr("src")&&(o=!1)}),o&&r.parentNode.insertBefore(a,r)}if(!t[i].vimeoapineeded&&((null!=e.data("vimeoid")||e.find("iframe").length>0&&e.find("iframe").attr("src").toLowerCase().indexOf("vimeo")>0)&&(t[i].vimeoapineeded=!0),t[i].vimeoapineeded&&!window.rs_addedvim)){t[i].vimeostarttime=jQuery.now(),window.rs_addedvim=!0;var s=document.createElement("script");r=document.getElementsByTagName("script")[0],o=!0;s.src="https://player.vimeo.com/api/player.js",jQuery("head").find("*").each(function(){"https://player.vimeo.com/api/player.js"==jQuery(this).attr("src")&&(o=!1)}),o&&r.parentNode.insertBefore(s,r)}},manageVideoLayer:function(e,a,o){if(!0===t.gA(e[0],"videoLayerManaged")||"true"===t.gA(e[0],"videoLayerManaged"))return!1;t[a].videos=void 0===t[a].videos?{}:t[a].videos;var s=t[a].videos[e[0].id]=void 0===t[a].videos[e[0].id]?v(e.data(),void 0,o):t[a].videos[e[0].id];if(s.audio=void 0!==s.audio&&s.audio,i&&s.opom)0==e.find("rs-poster").length&&e.append('<rs-poster class="noSwipe" style="background-image:url('+s.poster+');"></rs-poster>');else{switch(s.id=e[0].id,s.pload="auto"===s.pload||"canplay"===s.pload||"canplaythrough"===s.pload||"progress"===s.pload?"auto":s.pload,s.type=null!=s.mp4||null!=s.webm?"html5":null!=s.ytid&&String(s.ytid).length>1?"youtube":null!=s.vimeoid&&String(s.vimeoid).length>1?"vimeo":"none",s.newtype="html5"==s.type&&0==e.find(s.audio?"audio":"video").length?"html5":"youtube"==s.type&&0==e.find("iframe").length?"youtube":"vimeo"==s.type&&0==e.find("iframe").length?"vimeo":"none",!s.audio&&"1sttime"==s.aplay&&s.pausetimer&&s.bgvideo&&t.sA(e.closest("rs-slide")[0],"rspausetimeronce",1),s.audio||!s.bgvideo||!s.pausetimer||1!=s.aplay&&"true"!=s.aplay&&"no1sttime"!=s.aplay||t.sA(e.closest("rs-slide")[0],"rspausetimeralways",1),s.noInt&&e.addClass("rs-nointeraction"),s.newtype){case"html5":1==window.isSafari11&&(t[a].slideHasIframe=!0),s.audio&&e.addClass("rs-audio"),s.tag=s.audio?"audio":"video";var n="video"===s.tag&&(t.is_mobile()||t.isSafari11())?s.aplay||"true"===s.aplay?"muted playsinline autoplay":s.inline?" playsinline":"":"",l="<"+s.tag+" "+n+" "+(s.controls&&"none"!==s.controls?" controls ":"")+' style="'+("Edge"!==t.get_browser()?"object-fit:cover;background-size:cover;opacity:0;width:100%; height:100%":"")+'" class="" '+(s.loop?"loop":"")+' preload="'+s.pload+'">';"video"===s.tag&&null!=s.webm&&"firefox"==t.get_browser().toLowerCase()&&(l=l+'<source src="'+s.webm+'" type="video/webm" />'),null!=s.mp4&&(l=l+'<source src="'+s.mp4+'" type="'+("video"===s.tag?"video/mp4":"audio/mpeg")+'" />'),null!=s.ogv&&(l=l+'<source src="'+s.mp4+'" type="'+s.tag+'/ogg" />'),l+="</"+s.tag+">",s.videomarkup=l,i&&s.notonmobile||t.isIE(8)||e.append(l),e.find(s.tag).parent().hasClass("html5vid")||e.find(s.tag).wrap('<div class="html5vid '+(!1===s.afs?"hidefullscreen":"")+'" style="position:relative;top:0px;left:0px;width:100%;height:100%; overflow:hidden;"></div>'),s.jvideo=e.find(s.tag),s.video=s.jvideo[0],s.html5vid=s.jvideo.parent(),s.metaloaded||r(s.video,"loadedmetadata",function(e){m(e,a),t.resetVideo(e,a)}(e));break;case"youtube":t[a].slideHasIframe=!0,s.controls&&"none"!==s.controls||(s.vatr=s.vatr.replace("controls=1","controls=0"),-1==s.vatr.toLowerCase().indexOf("controls")&&(s.vatr=s.vatr+"&controls=0")),(s.inline||"RS-BGVIDEO"===e[0].tagName)&&(s.vatr=s.vatr+"&playsinline=1"),-1!=s.ssec&&(s.vatr+="&start="+s.ssec),-1!=s.esec&&(s.vatr+="&end="+s.esec);var d=s.vatr.split("origin=https://");s.vatrnew=d.length>1?d[0]+"origin=https://"+(self.location.href.match(/www/gi)&&!d[1].match(/www/gi)?"www."+d[1]:d[1]):s.vatr,s.videomarkup='<iframe allow="autoplay; '+(!0===s.afs?"fullscreen":"")+'" type="text/html" src="https://www.youtube-nocookie.com/embed/'+s.ytid+"?"+s.vatrnew+'" '+(!0===s.afs?"allowfullscreen":"")+' width="100%" height="100%" class="intrinsic-ignore" style="opacity:0;visibility:visible;width:100%;height:100%"></iframe>';break;case"vimeo":t[a].slideHasIframe=!0,s.controls&&"none"!==s.controls?(s.vatr=s.vatr.replace("background=0","background=1"),-1==s.vatr.toLowerCase().indexOf("background")&&(s.vatr=s.vatr+"&background=1")):(s.vatr=s.vatr.replace("background=1","background=0"),-1==s.vatr.toLowerCase().indexOf("background")&&(s.vatr=s.vatr+"&background=0")),s.vatr="autoplay="+(!0===s.aplay?1:0)+"&"+s.vatr,i&&(s.vatr="muted=1&"+s.vatr),s.loop&&(s.vatr="loop=1&"+s.vatr),s.videomarkup='<iframe  allow="autoplay; '+(!0===s.afs?"fullscreen":"")+'" src="https://player.vimeo.com/video/'+s.vimeoid+"?"+s.vatr+'" '+(!0===s.afs?"webkitallowfullscreen mozallowfullscreen allowfullscreen":"")+' width="100%" height="100%" class="intrinsic-ignore" style="opacity:0;visibility:visible;100%;height:100%"></iframe>'}if(!(null!=s.poster&&s.poster.length>2)||i&&s.npom){if(i&&s.notonmobile)return!1;0!=e.find("iframe").length||"youtube"!=s.type&&"vimeo"!=s.type||(delete s.vimeoplayer,e.append(s.videomarkup),u(e,a,!1))}else 0==e.find("rs-poster").length&&e.append('<rs-poster class="noSwipe" style="background-image:url('+s.poster+');"></rs-poster>'),0==e.find("iframe").length&&e.find("rs-poster").click(function(){if(t.playVideo(e,a),i){if(s.notonmobile)return!1;tpGS.gsap.to(e.find("rs-poster"),.3,{opacity:0,visibility:"hidden",force3D:"auto",ease:"power3.inOut"}),tpGS.gsap.to(e.find("iframe"),.3,{opacity:1,display:"block",ease:"power3.inOut"})}});"none"!==s.doverlay&&void 0!==s.doverlay&&(s.bgvideo?1!=e.closest("rs-sbg-wrap").find("rs-dotted").length&&e.closest("rs-sbg-wrap").append('<rs-dotted class="'+s.doverlay+'"></rs-dotted>'):1!=e.find("rs-dotted").length&&e.append('<rs-dotted class="'+s.doverlay+'"></rs-dotted>')),t.sA(e[0],"videoLayerManaged",!0),s.bgvideo&&tpGS.gsap.set(e.find("video, iframe"),{opacity:0})}}});var r=function(e,t,i){e.addEventListener?e.addEventListener(t,i,{capture:!1,passive:!0}):e.attachEvent(t,i,{capture:!1,passive:!0})},o=function(e,t,i){var a={};return a.video=e,a.type=t,a.settings=i,a},s=function(e,i){var a=t[e].videos[i[0].id];(a.bgvideo||a.fcover)&&(a.fcover&&i.removeClass("rs-fsv").addClass("coverscreenvideo"),(void 0===a.ratio||a.ratio.split(":").length<=1)&&(a.ratio="16:9"),t.prepareCoveredVideo(e))},n=function(e,t){var i=e.vimeoplayer;i.getPaused().then(function(a){e.volumetoken=!0;var r=!a,o=i.setVolume(t);void 0!==o&&o.then(function(t){i.getPaused().then(function(t){r===t&&(e.volume="mute",e.volumetoken=!0,i.setVolume(0),i.play())}).catch(function(e){console.log("Get Paused Function Failed for Vimeo Volume Changes Inside the Promise")})}).catch(function(t){r&&(e.volume="mute",e.volumetoken=!0,i.setVolume(0),i.play())})}).catch(function(){console.log("Get Paused Function Failed for Vimeo Volume Changes")})},l=function(e,t){var i=e.player.getPlayerState();"mute"===t?e.player.mute():(e.player.unMute(),e.player.setVolume(t)),setTimeout(function(){1===i&&1!==e.player.getPlayerState()&&(e.player.mute(),e.player.playVideo())},39)},d=function(e){var t=e.play();void 0!==t&&t.then(function(e){}).catch(function(t){e.pause()})},c=function(e){var t=e.play();void 0!==t&&t.then(function(e){}).catch(function(t){e.volumetoken=!0,e.setVolume(0),e.play()})},p=function(e){e.player.playVideo(),setTimeout(function(){1!==e.player.getPlayerState()&&3!==e.player.getPlayerState()&&(e.volume="mute",e.player.mute(),e.player.playVideo())},39)},g=function(e,i,a){e.vimeostarted=!0,e.nextslidecalled=!1;var r=i.find("rs-poster");e.ifr=i.find("iframe"),void 0!==r&&r.length>0?(tpGS.gsap.to(r,.3,{opacity:0,visibility:"hidden",force3D:"auto",ease:"power3.inOut"}),void 0!==e.ifr&&e.ifr.length>0&&tpGS.gsap.to(e.ifr,.3,{opacity:1,display:"block",ease:"power3.inOut"})):void 0!==e.ifr&&e.ifr.length>0&&tpGS.gsap.to(e.ifr,.001,{opacity:1,display:"block",ease:"power3.out"}),t[a].c.trigger("revolution.slide.onvideoplay",o(e.vimeoplayer,"vimeo",e)),t[a].stopByVideo=e.pausetimer,y(i,a),"mute"==e.volume||0===e.volume||t.lastToggleState(i.data("videomutetoggledby"))||!0===t[a].globalmute?(e.volumetoken=!0,e.vimeoplayer.setVolume(0)):n(e,parseInt(e.volcache,0)/100||.75),t.toggleState(e.videotoggledby)},u=function(e,a,r){var n=t[a].videos[e[0].id],d="iframe"+Math.round(1e5*Math.random()+1);if(n.ifr=e.find("iframe"),s(a,e),n.ifr.attr("id",d),n.startvideonow=r,n.videolistenerexist){if(r)switch(n.type){case"youtube":p(n),-1!=n.ssec&&n.player.seekTo(n.ssec);break;case"vimeo":c(n.vimeoplayer),-1!=n.ssec&&n.vimeoplayer.seekTo(n.ssec)}}else switch(n.type){case"youtube":if("undefined"==typeof YT||void 0===YT.Player)return t.checkVideoApis(e,a),void setTimeout(function(){u(e,a,r)},50);n.player=new YT.Player(d,{events:{onStateChange:function(i){i.data==YT.PlayerState.PLAYING?(tpGS.gsap.to(e.find("rs-poster"),.3,{opacity:0,visibility:"hidden",force3D:"auto",ease:"power3.inOut"}),tpGS.gsap.to(n.ifr,.3,{opacity:1,display:"block",ease:"power3.inOut"}),"mute"==n.volume||0===n.volume||t.lastToggleState(e.data("videomutetoggledby"))||!0===t[a].globalmute?n.player.mute():l(n,parseInt(n.volcache,0)||75),t[a].stopByVideo=!0,y(e,a),n.pausetimer?t[a].c.trigger("stoptimer"):t[a].stopByVideo=!1,t[a].c.trigger("revolution.slide.onvideoplay",o(n.player,"youtube",n)),t.toggleState(n.videotoggledby)):(0==i.data&&n.loop&&(-1!=n.ssec&&n.player.seekTo(n.ssec),p(n),t.toggleState(n.videotoggledby)),t.checkfullscreenEnabled(a)||0!=i.data&&2!=i.data||!(n.scop&&e.find("rs-poster").length>0||n.bgvideo&&e.find(".rs-fullvideo-cover").length>0)||(n.bgvideo?tpGS.gsap.to(e.find(".rs-fullvideo-cover"),.1,{opacity:1,force3D:"auto",ease:"power3.inOut"}):tpGS.gsap.to(e.find("rs-poster"),.1,{opacity:1,visibility:"visible",force3D:"auto",ease:"power3.inOut"}),tpGS.gsap.to(n.ifr,.1,{opacity:0,ease:"power3.inOut"})),-1!=i.data&&3!=i.data&&(t[a].stopByVideo=!1,t[a].tonpause=!1,b(e,a),t[a].c.trigger("starttimer"),t[a].c.trigger("revolution.slide.onvideostop",o(n.player,"youtube",n)),null!=t[a].videoIsPlaying&&t[a].videoIsPlaying.attr("id")!=e.attr("id")||t.unToggleState(n.videotoggledby)),0==i.data&&n.nse?(h(),n.nseTriggered=!0,t[a].c.revnext(),b(e,a)):(b(e,a),t[a].stopByVideo=!1,3!==i.data&&(-1!=n.lasteventdata&&3!=n.lasteventdata&&void 0!==n.lasteventdata||-1!=i.data&&3!=i.data)&&t[a].c.trigger("starttimer"),t[a].c.trigger("revolution.slide.onvideostop",o(n.player,"youtube",n)),null!=t[a].videoIsPlaying&&t[a].videoIsPlaying.attr("id")!=e.attr("id")||t.unToggleState(n.videotoggledby))),n.lasteventdata=i.data},onReady:function(a){var r,o=t.is_mobile(),s=e.hasClass("rs-layer-video");!o&&(!t.isSafari11()||o&&s)||"RS-BGVIDEO"!==e[0].tagName&&(!s||!0!==n.aplay&&"true"!==n.aplay)||(r=!0,n.player.setVolume(0),n.volume="mute",n.player.mute(),clearTimeout(e.data("mobilevideotimr")),2!==n.player.getPlayerState()&&-1!==n.player.getPlayerState()||e.data("mobilevideotimr",setTimeout(function(){p(n)},500))),r||"mute"!=n.volume||(n.player.setVolume(0),n.player.mute()),e.addClass("rs-apiready"),null==n.speed&&1===n.speed||a.target.setPlaybackRate(parseFloat(n.speed)),e.find("rs-poster").unbind("click"),e.find("rs-poster").click(function(){i||p(n)}),n.startvideonow&&(p(n),-1!=n.ssec&&n.player.seekTo(n.ssec)),n.videolistenerexist=!0}}});break;case"vimeo":if("undefined"==typeof Vimeo||void 0===Vimeo.Player)return t.checkVideoApis(e,a),void setTimeout(function(){u(e,a,r)},50);for(var m,f=n.ifr.attr("src"),v={},_=f,w=/([^&=]+)=([^&]*)/g;m=w.exec(_);)v[decodeURIComponent(m[1])]=decodeURIComponent(m[2]);f=(f=null!=v.player_id?f.replace(v.player_id,d):f+"&player_id="+d).replace(/&api=0|&api=1/g,"");var x,k=t.is_mobile()||t.isSafari11(),S="RS-BGVIDEO"===e[0].tagName;if(k&&S&&(f+="&background=1"),n.ifr.attr("src",f),n.vimeoplayer=void 0===n.vimeoplayer||!1===n.vimeoplayer?new Vimeo.Player(d):n.vimeoplayer,k)S?x=!0:(n.aplay||"true"===n.aplay)&&(x=!0),x&&(n.volumetoken=!0,n.vimeoplayer.setVolume(0),n.volume="mute");n.vimeoplayer.on("play",function(t){n.vimeostarted||g(n,e,a)}),n.vimeoplayer.on("loaded",function(t){var i={};n.vimeoplayer.getVideoWidth().then(function(t){i.width=t,void 0!==i.width&&void 0!==i.height&&(n.ratio=i.width+":"+i.height,n.vimeoplayerloaded=!0,s(a,e))}),n.vimeoplayer.getVideoHeight().then(function(t){i.height=t,void 0!==i.width&&void 0!==i.height&&(n.ratio=i.width+":"+i.height,n.vimeoplayerloaded=!0,s(a,e))}),n.startvideonow&&("mute"===n.volume&&(n.volumetoken=!0,n.vimeoplayer.setVolume(0)),c(n.vimeoplayer),-1!=n.ssec&&n.vimeoplayer.setCurrentTime(n.ssec))}),e.addClass("rs-apiready"),n.vimeoplayer.on("volumechange",function(e){n.volumetoken&&(n.volume=e.volume),n.volumetoken=!1}),n.vimeoplayer.on("timeupdate",function(i){n.vimeostarted||0===i.percent||void 0!==t[a].activeRSSlide&&n.slideid!==t.gA(t[a].slides[t[a].activeRSSlide],"key")||g(n,e,a),n.pausetimer&&"playing"==t[a].sliderstatus&&(t[a].stopByVideo=!0,t[a].c.trigger("stoptimer")),n.currenttime=i.seconds,0!=n.esec&&-1!==n.esec&&n.esec<i.seconds&&!0!==n.nextslidecalled&&(n.loop?(c(n.vimeoplayer),n.vimeoplayer.setCurrentTime(-1!==n.ssec?n.ssec:0)):(n.nse&&(n.nseTriggered=!0,n.nextslidecalled=!0,t[a].c.revnext()),n.vimeoplayer.pause()))}),n.vimeoplayer.on("ended",function(i){n.vimeostarted=!1,b(e,a),t[a].stopByVideo=!1,t[a].c.trigger("starttimer"),t[a].c.trigger("revolution.slide.onvideostop",o(n.vimeoplayer,"vimeo",n)),n.nse&&(n.nseTriggered=!0,t[a].c.revnext()),null!=t[a].videoIsPlaying&&t[a].videoIsPlaying.attr("id")!=e.attr("id")||t.unToggleState(n.videotoggledby)}),n.vimeoplayer.on("pause",function(i){n.vimeostarted=!1,(n.scop&&e.find("rs-poster").length>0||n.bgvideo&&e.find(".rs-fullvideo-cover").length>0)&&(n.bgvideo?tpGS.gsap.to(e.find(".rs-fullvideo-cover"),.1,{opacity:1,force3D:"auto",ease:"power3.inOut"}):tpGS.gsap.to(e.find("rs-poster"),.1,{opacity:1,visibility:"visible",force3D:"auto",ease:"power3.inOut"}),tpGS.gsap.to(e.find("iframe"),.1,{opacity:0,ease:"power3.inOut"})),t[a].stopByVideo=!1,t[a].tonpause=!1,b(e,a),t[a].c.trigger("starttimer"),t[a].c.trigger("revolution.slide.onvideostop",o(n.vimeoplayer,"vimeo",n)),null!=t[a].videoIsPlaying&&t[a].videoIsPlaying.attr("id")!=e.attr("id")||t.unToggleState(n.videotoggledby)}),e.find("rs-poster").unbind("click"),e.find("rs-poster").click(function(){if(!i)return c(n.vimeoplayer),!1}),n.videolistenerexist=!0}},h=function(){document.exitFullscreen&&document.fullscreen?document.exitFullscreen():document.mozCancelFullScreen&&document.mozFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitIsFullScreen&&document.webkitExitFullscreen()};t.checkfullscreenEnabled=function(e){if(void 0!==window.fullScreen)return window.fullScreen;if(void 0!==document.fullscreen)return document.fullscreen;if(void 0!==document.mozFullScreen)return document.mozFullScreen;if(void 0!==document.webkitIsFullScreen)return document.webkitIsFullScreen;var i=t.isWebkit()&&/Apple Computer/.test(navigator.vendor)?42:5;return screen.width==t.winW&&Math.abs(screen.height-t.getWinH(e))<i};var m=function(e,a,s){var n=t[a].videos[e[0].id];if(i&&n.notonmobile)return!1;n.metaloaded=!0,n.controls&&!n.audio||(0!=e.find(".tp-video-play-button").length||i||e.append('<div class="tp-video-play-button"><i class="revicon-right-dir"></i><span class="tp-revstop">&nbsp;</span></div>'),e.find("video, rs-poster, .tp-video-play-button").click(function(){e.hasClass("videoisplaying")?n.video.pause():n.video.play()})),(n.fcover||e.hasClass("rs-fsv")||n.bgvideo)&&(n.fcover||n.bgvideo?(n.html5vid.addClass("fullcoveredvideo"),void 0!==n.ratio&&1!=n.ratio.split(":").length||(n.ratio="16:9"),t.prepareCoveredVideo(a)):n.html5vid.addClass("rs-fsv")),r(n.video,"canplaythrough",function(){t.preLoadAudioDone(e,a,"canplaythrough")}),r(n.video,"canplay",function(){t.preLoadAudioDone(e,a,"canplay")}),r(n.video,"progress",function(){t.preLoadAudioDone(e,a,"progress")}),r(n.video,"timeupdate",function(i){void 0!==e&&void 0!==e[0]&&!0!==n.VideoIsVisible&&!0!==n.justReseted&&(e[0].getElementsByTagName("rs-poster").length>0?(tpGS.gsap.to(e[0].getElementsByTagName("rs-poster"),.3,{autoAlpha:0,force3D:"auto",ease:"power3.inOut"}),e.find(n.tag).length>0&&tpGS.gsap.to(e.find(n.tag),.001,{opacity:1,display:"block",ease:"power3.inOut"})):e.find(n.tag).length>0&&tpGS.gsap.to(e.find(n.tag),.001,{opacity:1,display:"block",ease:"power3.out"}),n.VideoIsVisible=!0,clearTimeout(n.showCoverSoon)),n.justReseted&&1!=t.checkfullscreenEnabled(a)&&e.find("rs-poster").length>0&&(n.showCoverSoon=setTimeout(function(){n.seeking||(tpGS.gsap.to(e.find("rs-poster"),.001,{autoAlpha:1,force3D:"auto",ease:"power3.inOut"}),tpGS.gsap.to(e.find(n.tag),1e-4,{opacity:0,ease:"power3.inOut"})),n.VideoIsVisible=!1},500)),n.justReseted=!1,-1===n.esec&&n.loop&&1==window.isSafari11&&(n.esec=n.video.duration-.075),0!=n.esec&&-1!=n.esec&&n.esec<n.video.currentTime&&!n.nextslidecalled&&(n.loop?(n.video.play(),n.video.currentTime=-1===n.ssec?.5:n.ssec):(n.nse&&(n.nseTriggered=!0,n.nextslidecalled=!0,t[a].jcnah=!0,t[a].c.revnext(),setTimeout(function(){t[a].jcnah=!1},1e3)),n.video.pause()))}),r(n.video,"play",function(){n.nextslidecalled=!1,n.volume=null!=n.volume&&"mute"!=n.volume?parseFloat(n.volcache):n.volume,n.volcache=null!=n.volcache&&"mute"!=n.volcache?parseFloat(n.volcache):n.volcache,t.is_mobile()||t.isSafari11()||(!0===t[a].globalmute?n.video.muted=!0:n.video.muted="mute"==n.volume,n.volcache=jQuery.isNumeric(n.volcache)&&n.volcache>1?n.volcache/100:n.volcache,"mute"==n.volume?n.video.muted=!0:null!=n.volcache&&(n.video.volume=n.volcache)),e.addClass("videoisplaying"),y(e,a),clearTimeout(n.showCoverSoon),!0!==n.pausetimer||"audio"==n.tag?(t[a].stopByVideo=!1,t[a].c.trigger("revolution.slide.onvideostop",o(n.video,"html5",n))):(t[a].stopByVideo=!0,t[a].c.trigger("revolution.slide.onvideoplay",o(n.video,"html5",n))),n.pausetimer&&"playing"==t[a].sliderstatus&&(t[a].stopByVideo=!0,t[a].c.trigger("stoptimer")),t.toggleState(n.videotoggledby)}),r(n.video,"seeked",function(){n.seeking=!1}),r(n.video,"seeking",function(){n.seeking=!0}),r(n.video,"pause",function(i){!t.checkfullscreenEnabled(a)&&e.find("rs-poster").length>0&&n.scop&&(n.showCoverSoon=setTimeout(function(){n.seeking||(tpGS.gsap.to(e.find("rs-poster"),.001,{opacity:1,visibility:"visible",force3D:"auto",ease:"power3.inOut"}),tpGS.gsap.to(e.find(n.tag),1e-4,{opacity:0,ease:"power3.inOut"}))},500),n.VideoIsVisible=!1),e.removeClass("videoisplaying"),t[a].stopByVideo=!1,b(e,a),"audio"!=n.tag&&t[a].c.trigger("starttimer"),t[a].c.trigger("revolution.slide.onvideostop",o(n.video,"html5",n)),null!=t[a].videoIsPlaying&&t[a].videoIsPlaying.attr("id")!=e.attr("id")||t.unToggleState(n.videotoggledby)}),r(n.video,"ended",function(){h(),b(e,a),t[a].stopByVideo=!1,b(e,a),"audio"!=n.tag&&t[a].c.trigger("starttimer"),t[a].c.trigger("revolution.slide.onvideostop",o(n.video,"html5",e.data())),n.nse&&n.video.currentTime>0&&(1==!t[a].jcnah&&(n.nseTriggered=!0,t[a].c.revnext(),t[a].jcnah=!0),setTimeout(function(){t[a].jcnah=!1},1500)),e.removeClass("videoisplaying"),!0!==t[a].inviewport&&void 0!==t[a].inviewport||(t[a].lastplayedvideos=[])})},f=function(e){return"t"===e||!0===e||"true"===e||"f"!==e&&!1!==e&&"false"!==e&&e},v=function(e,t,i){e.audio="audio"===t;var r=void 0===e.video?[]:e.video.split(";"),o={volume:e.audio?1:"mute",pload:"auto",ratio:"16:9",loop:!0,aplay:"true",fcover:1===e.bgvideo,afs:!0,controls:!1,nse:!0,npom:!1,opom:!1,inline:!0,notonmobile:!1,start:-1,end:-1,doverlay:"none",scop:!1,rwd:!0,speed:1,ploadwait:5,stopAV:1!==e.bgvideo,noInt:!1,volcache:75};for(var s in r)if(r.hasOwnProperty(s)){var n=r[s].split(":");switch(n[0]){case"v":o.volume=n[1];break;case"vd":o.volcache=n[1];break;case"p":o.pload=n[1];break;case"ar":o.ratio=n[1]+(void 0!==n[2]?":"+n[2]:"");break;case"ap":o.aplay=f(n[1]);break;case"fc":o.fcover=f(n[1]);break;case"afs":o.afs=f(n[1]);break;case"vc":o.controls=n[1];break;case"nse":o.nse=f(n[1]);break;case"npom":o.npom=f(n[1]);break;case"opom":o.opom=f(n[1]);break;case"t":o.vtype=n[1];break;case"inl":o.inline=f(n[1]);break;case"nomo":o.notonmobile=f(n[1]);break;case"sta":o.start=n[1]+(void 0!==n[2]?":"+n[2]:"");break;case"end":o.end=n[1]+(void 0!==n[2]?":"+n[2]:"");break;case"do":o.doverlay=n[1];break;case"scop":o.scop=f(n[1]);break;case"rwd":o.rwd=f(n[1]);break;case"sp":o.speed=n[1];break;case"vw":o.ploadwait=parseInt(n[1],0)||5;break;case"sav":o.stopAV=f(n[1]);break;case"noint":o.noInt=f(n[1]);break;case"l":o.loopcache=n[1],o.loop="loop"===n[1]||"loopandnoslidestop"===n[1]||"none"!==n[1]&&f(n[1]);break;case"ptimer":o.pausetimer=f(n[1]);break;case"sat":o.waitToSlideTrans=f(n[1])}}return void 0!==e.bgvideo&&(o.bgvideo=e.bgvideo),void 0===e.bgvideo||!1!==o.fcover&&"false"!==o.fcover||(o.doverlay="none"),o.noInt&&(o.controls=!1),void 0!==e.mp4&&(o.mp4=e.mp4),void 0!==e.videomp4&&(o.mp4=e.videomp4),void 0!==e.ytid&&(o.ytid=e.ytid),void 0!==e.ogv&&(o.ogv=e.ogv),void 0!==e.webm&&(o.webm=e.webm),void 0!==e.vimeoid&&(o.vimeoid=e.vimeoid),void 0!==e.vatr&&(o.vatr=e.vatr),void 0!==e.videoattributes&&(o.vatr=e.videoattributes),void 0!==e.poster&&(o.poster=e.poster),o.slideid=i,o.aplay="true"===o.aplay||o.aplay,1===o.bgvideo&&(o.volume="mute"),o.ssec=a(o.start),o.esec=a(o.end),o.pausetimer=void 0===o.pausetimer?"loopandnoslidestop"!==o.loopcache:o.pausetimer,o.inColumn=e._incolumn,o.audio=e.audio,!0!==o.loop&&"true"!==o.loop||!0!==o.nse&&"true"!==o.nse||(o.loop=!1),o},y=function(e,i){if(t[i].playingvideos=void 0===t[i].playingvideos?new Array:t[i].playingvideos,t[i].videos[e[0].id].stopAV&&void 0!==t[i].playingvideos&&t[i].playingvideos.length>0)for(var a in t[i].lastplayedvideos=jQuery.extend(!0,[],t[i].playingvideos),t[i].playingvideos)t[i].playingvideos.hasOwnProperty(a)&&t.stopVideo(t[i].playingvideos[a],i);t[i].playingvideos.push(e),t[i].videoIsPlaying=e},b=function(e,i){void 0!==t[i]&&void 0!==t[i]&&null!=t[i].playingvideos&&jQuery.inArray(e,t[i].playingvideos)>=0&&t[i].playingvideos.splice(jQuery.inArray(e,t[i].playingvideos),1)}}(jQuery);jQuery(document).ready(function($){let comments=woocommerce_photo_reviews_params.hasOwnProperty('comments_container_id')?woocommerce_photo_reviews_params.comments_container_id:'comments';$('#'+comments).prepend($('.wcpr-filter-container')).prepend($('.wcpr-overall-rating-and-rating-count')).prepend($('.woocommerce-Reviews-title').eq(0));$('#commentform').attr('enctype','multipart/form-data');let max_files=woocommerce_photo_reviews_params.max_files;let selected_images=0;$('#commentform').on('change','.wcpr_image_upload',function(e){selected_images=$(this.files).length});$('#commentform').find('input[type="submit"]').on('click',function(e){let $container=$(this).closest('form');let $content=$container.find('textarea[name="comment"]');let $name=$container.find('input[name="author"]');let $email=$container.find('input[name="email"]');let fileUpload=$container.find('.wcpr_image_upload');if($content.length>0&&!$content.val()){alert(woocommerce_photo_reviews_params.i18n_required_comment_text);e.preventDefault();$content.focus();return!1}
if('on'==woocommerce_photo_reviews_params.required_image&&selected_images==0){alert(woocommerce_photo_reviews_params.warning_required_image);e.preventDefault();return!1}
if($name.length>0&&!$name.val()){alert(woocommerce_photo_reviews_params.i18n_required_name_text);e.preventDefault();$name.focus();return!1}
if($email.length>0&&!$email.val()){alert(woocommerce_photo_reviews_params.i18n_required_email_text);e.preventDefault();$email.focus();return!1}
if(fileUpload.length>0){if(fileUpload.prop('multiple')){if(selected_images>max_files){alert(woocommerce_photo_reviews_params.warning_max_files);e.preventDefault();return!1}}else{if(fileUpload.length>max_files){alert(woocommerce_photo_reviews_params.warning_max_files);e.preventDefault();return!1}}}
if($container.find('input[name="wcpr_gdpr_checkbox"]').prop('checked')===!1){alert(woocommerce_photo_reviews_params.warning_gdpr);e.preventDefault();return!1}})});/*! Swipebox v1.4.4 | Constantin Saguin csag.co | MIT License | github.com/brutaldesign/swipebox */
;(function(window,document,$,undefined){$.swipebox=function(elem,options){var ui,defaults={useCSS:!0,useSVG:!0,initialIndexOnArray:0,removeBarsOnMobile:!1,hideCloseButtonOnMobile:!1,hideBarsDelay:3000,videoMaxWidth:1140,vimeoColor:'cccccc',beforeOpen:null,afterOpen:null,afterClose:null,afterMedia:null,nextSlide:null,prevSlide:null,loopAtEnd:!1,autoplayVideos:!1,queryStringData:{},toggleClassOnLoad:''},plugin=this,elements=[],$elem,selector=elem.selector,isMobile=navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i),isTouch=isMobile!==null||document.createTouch!==undefined||('ontouchstart' in window)||('onmsgesturechange' in window)||navigator.msMaxTouchPoints,supportSVG=!!document.createElementNS&&!!document.createElementNS('http://www.w3.org/2000/svg','svg').createSVGRect,winWidth=window.innerWidth?window.innerWidth:$(window).width(),winHeight=window.innerHeight?window.innerHeight:$(window).height(),currentX=0,html='<div id="wcpr-swipebox-overlay">\
					<div id="wcpr-swipebox-container">\
						<div id="wcpr-swipebox-slider"></div>\
						<div id="wcpr-swipebox-top-bar">\
							<div id="wcpr-swipebox-title"></div>\
						</div>\
						<div id="wcpr-swipebox-bottom-bar">\
							<div id="wcpr-swipebox-arrows">\
								<a id="wcpr-swipebox-prev"></a>\
								<a id="wcpr-swipebox-next"></a>\
							</div>\
						</div>\
						<a id="wcpr-swipebox-close"></a>\
					</div>\
			</div>';plugin.settings={};$.swipebox.close=function(){ui.closeSlide()};$.swipebox.extend=function(){return ui};plugin.init=function(){plugin.settings=$.extend({},defaults,options);if($.isArray(elem)){elements=elem;ui.target=$(window);ui.init(plugin.settings.initialIndexOnArray)}else{$(document).on('click',selector,function(event){event.preventDefault();if(event.target.parentNode.className==='slide current'){return!1}
if(!$.isArray(elem)){ui.destroy();$elem=$(selector);ui.actions()}
elements=[];var index,relType,relVal;if(!relVal){relType='data-rel';relVal=$(this).attr(relType)}
if(!relVal){relType='rel';relVal=$(this).attr(relType)}
if(relVal&&relVal!==''&&relVal!=='nofollow'){$elem=$(selector).filter('['+relType+'="'+relVal+'"]')}else{$elem=$(selector)}
$elem.each(function(){var title=null,href=null;if($(this).attr('title')){title=$(this).attr('title')}
if($(this).attr('href')){href=$(this).attr('href')}
elements.push({href:href,title:title})});index=$elem.index($(this));event.preventDefault();event.stopPropagation();ui.target=$(event.target);ui.init(index)})}};ui={init:function(index){if(plugin.settings.beforeOpen){plugin.settings.beforeOpen()}
this.target.trigger('wcpr-swipebox-start');$.swipebox.isOpen=!0;this.build();this.openSlide(index);this.openMedia(index);this.preloadMedia(index+1);this.preloadMedia(index-1);if(plugin.settings.afterOpen){plugin.settings.afterOpen(index)}},build:function(){var $this=this,bg;$('body').append(html);if(supportSVG&&plugin.settings.useSVG===!0){bg=$('#wcpr-swipebox-close').css('background-image');bg=bg.replace('png','svg');$('#wcpr-swipebox-prev, #wcpr-swipebox-next, #wcpr-swipebox-close').css({'background-image':bg})}
if(isMobile&&plugin.settings.removeBarsOnMobile){$('#wcpr-swipebox-bottom-bar, #wcpr-swipebox-top-bar').remove()}
$.each(elements,function(){$('#wcpr-swipebox-slider').append('<div class="slide"></div>')});$this.setDim();$this.actions();if(isTouch){$this.gesture()}
$this.keyboard();$this.animBars();$this.resize()},setDim:function(){var width,height,sliderCss={};if('onorientationchange' in window){window.addEventListener('orientationchange',function(){if(window.orientation===0){width=winWidth;height=winHeight}else if(window.orientation===90||window.orientation===-90){width=winHeight;height=winWidth}},!1)}else{width=window.innerWidth?window.innerWidth:$(window).width();height=window.innerHeight?window.innerHeight:$(window).height()}
sliderCss={width:width,height:height};$('#wcpr-swipebox-overlay').css(sliderCss)},resize:function(){var $this=this;$(window).resize(function(){$this.setDim()}).resize()},supportTransition:function(){var prefixes='transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition'.split(' '),i;for(i=0;i<prefixes.length;i++){if(document.createElement('div').style[prefixes[i]]!==undefined){return prefixes[i]}}
return!1},doCssTrans:function(){if(plugin.settings.useCSS&&this.supportTransition()){return!0}},gesture:function(){var $this=this,index,hDistance,vDistance,hDistanceLast,vDistanceLast,hDistancePercent,vSwipe=!1,hSwipe=!1,hSwipMinDistance=10,vSwipMinDistance=50,startCoords={},endCoords={},bars=$('#wcpr-swipebox-top-bar, #wcpr-swipebox-bottom-bar'),slider=$('#wcpr-swipebox-slider');bars.addClass('visible-bars');$this.setTimeout();$('body').bind('touchstart',function(event){$(this).addClass('wcpr-touching');index=$('#wcpr-swipebox-slider .slide').index($('#wcpr-swipebox-slider .slide.current'));endCoords=event.originalEvent.targetTouches[0];startCoords.pageX=event.originalEvent.targetTouches[0].pageX;startCoords.pageY=event.originalEvent.targetTouches[0].pageY;$('#wcpr-swipebox-slider').css({'-webkit-transform':'translate3d('+currentX+'%, 0, 0)','transform':'translate3d('+currentX+'%, 0, 0)'});$('.wcpr-touching').bind('touchmove',function(event){event.preventDefault();event.stopPropagation();endCoords=event.originalEvent.targetTouches[0];if(!hSwipe){vDistanceLast=vDistance;vDistance=endCoords.pageY-startCoords.pageY;if(Math.abs(vDistance)>=vSwipMinDistance||vSwipe){var opacity=0.75-Math.abs(vDistance)/slider.height();slider.css({'top':vDistance+'px'});slider.css({'opacity':opacity});vSwipe=!0}}
hDistanceLast=hDistance;hDistance=endCoords.pageX-startCoords.pageX;hDistancePercent=hDistance*100/winWidth;if(!hSwipe&&!vSwipe&&Math.abs(hDistance)>=hSwipMinDistance){$('#wcpr-swipebox-slider').css({'-webkit-transition':'','transition':''});hSwipe=!0}
if(hSwipe){if(0<hDistance){if(0===index){$('#wcpr-swipebox-overlay').addClass('leftSpringTouch')}else{$('#wcpr-swipebox-overlay').removeClass('leftSpringTouch').removeClass('rightSpringTouch');$('#wcpr-swipebox-slider').css({'-webkit-transform':'translate3d('+(currentX+hDistancePercent)+'%, 0, 0)','transform':'translate3d('+(currentX+hDistancePercent)+'%, 0, 0)'})}}else if(0>hDistance){if(elements.length===index+1){$('#wcpr-swipebox-overlay').addClass('rightSpringTouch')}else{$('#wcpr-swipebox-overlay').removeClass('leftSpringTouch').removeClass('rightSpringTouch');$('#wcpr-swipebox-slider').css({'-webkit-transform':'translate3d('+(currentX+hDistancePercent)+'%, 0, 0)','transform':'translate3d('+(currentX+hDistancePercent)+'%, 0, 0)'})}}}});return!1}).bind('touchend',function(event){event.preventDefault();event.stopPropagation();$('#wcpr-swipebox-slider').css({'-webkit-transition':'-webkit-transform 0.4s ease','transition':'transform 0.4s ease'});vDistance=endCoords.pageY-startCoords.pageY;hDistance=endCoords.pageX-startCoords.pageX;hDistancePercent=hDistance*100/winWidth;if(vSwipe){vSwipe=!1;if(Math.abs(vDistance)>=2*vSwipMinDistance&&Math.abs(vDistance)>Math.abs(vDistanceLast)){var vOffset=vDistance>0?slider.height():-slider.height();slider.animate({top:vOffset+'px','opacity':0},300,function(){$this.closeSlide()})}else{slider.animate({top:0,'opacity':1},300)}}else if(hSwipe){hSwipe=!1;if(hDistance>=hSwipMinDistance&&hDistance>=hDistanceLast){$this.getPrev()}else if(hDistance<=-hSwipMinDistance&&hDistance<=hDistanceLast){$this.getNext()}}else{if(!bars.hasClass('visible-bars')){$this.showBars();$this.setTimeout()}else{$this.clearTimeout();$this.hideBars()}}
$('#wcpr-swipebox-slider').css({'-webkit-transform':'translate3d('+currentX+'%, 0, 0)','transform':'translate3d('+currentX+'%, 0, 0)'});$('#wcpr-swipebox-overlay').removeClass('leftSpringTouch').removeClass('rightSpringTouch');$('.wcpr-touching').off('touchmove').removeClass('wcpr-touching')})},setTimeout:function(){if(plugin.settings.hideBarsDelay>0){var $this=this;$this.clearTimeout();$this.timeout=window.setTimeout(function(){$this.hideBars()},plugin.settings.hideBarsDelay)}},clearTimeout:function(){window.clearTimeout(this.timeout);this.timeout=null},showBars:function(){var bars=$('#wcpr-swipebox-top-bar, #wcpr-swipebox-bottom-bar');if(this.doCssTrans()){bars.addClass('visible-bars')}else{$('#wcpr-swipebox-top-bar').animate({top:0},500);$('#wcpr-swipebox-bottom-bar').animate({bottom:0},500);setTimeout(function(){bars.addClass('visible-bars')},1000)}},hideBars:function(){var bars=$('#wcpr-swipebox-top-bar, #wcpr-swipebox-bottom-bar');if(this.doCssTrans()){bars.removeClass('visible-bars')}else{$('#wcpr-swipebox-top-bar').animate({top:'-50px'},500);$('#wcpr-swipebox-bottom-bar').animate({bottom:'-50px'},500);setTimeout(function(){bars.removeClass('visible-bars')},1000)}},animBars:function(){var $this=this,bars=$('#wcpr-swipebox-top-bar, #wcpr-swipebox-bottom-bar');bars.addClass('visible-bars');$this.setTimeout();$('#wcpr-swipebox-slider').click(function(){if(!bars.hasClass('visible-bars')){$this.showBars();$this.setTimeout()}});$('#wcpr-swipebox-bottom-bar').hover(function(){$this.showBars();bars.addClass('visible-bars');$this.clearTimeout()},function(){if(plugin.settings.hideBarsDelay>0){bars.removeClass('visible-bars');$this.setTimeout()}})},keyboard:function(){var $this=this;$(window).bind('keyup',function(event){event.preventDefault();event.stopPropagation();if(event.keyCode===37){$this.getPrev()}else if(event.keyCode===39){$this.getNext()}else if(event.keyCode===27){$this.closeSlide()}})},actions:function(){var $this=this,action='touchend click';if(elements.length<2){$('#wcpr-swipebox-bottom-bar').hide();if(undefined===elements[1]){$('#wcpr-swipebox-top-bar').hide()}}else{$('#wcpr-swipebox-prev').bind(action,function(event){event.preventDefault();event.stopPropagation();$this.getPrev();$this.setTimeout()});$('#wcpr-swipebox-next').bind(action,function(event){event.preventDefault();event.stopPropagation();$this.getNext();$this.setTimeout()})}
$('#wcpr-swipebox-close').bind(action,function(event){event.preventDefault();event.stopPropagation();$this.closeSlide()})},setSlide:function(index,isFirst){isFirst=isFirst||!1;var slider=$('#wcpr-swipebox-slider');currentX=-index*100;if(this.doCssTrans()){slider.css({'-webkit-transform':'translate3d('+(-index*100)+'%, 0, 0)','transform':'translate3d('+(-index*100)+'%, 0, 0)'})}else{slider.animate({left:(-index*100)+'%'})}
$('#wcpr-swipebox-slider .slide').removeClass('current');$('#wcpr-swipebox-slider .slide').eq(index).addClass('current');this.setTitle(index);if(isFirst){slider.fadeIn()}
$('#wcpr-swipebox-prev, #wcpr-swipebox-next').removeClass('disabled');if(index===0){$('#wcpr-swipebox-prev').addClass('disabled')}else if(index===elements.length-1&&plugin.settings.loopAtEnd!==!0){$('#wcpr-swipebox-next').addClass('disabled')}},openSlide:function(index){$('html').addClass('wcpr-swipebox-html');if(isTouch){$('html').addClass('wcpr-swipebox-touch');if(plugin.settings.hideCloseButtonOnMobile){$('html').addClass('wcpr-swipebox-no-close-button')}}else{$('html').addClass('wcpr-swipebox-no-touch')}
$(window).trigger('resize');this.setSlide(index,!0)},preloadMedia:function(index){var $this=this,src=null;if(elements[index]!==undefined){src=elements[index].href}
if(!$this.isVideo(src)){setTimeout(function(){$this.openMedia(index)},1000)}else{$this.openMedia(index)}},openMedia:function(index){var $this=this,src,slide;if(elements[index]!==undefined){src=elements[index].href}
if(index<0||index>=elements.length){return!1}
slide=$('#wcpr-swipebox-slider .slide').eq(index);if(!$this.isVideo(src)){slide.addClass('slide-loading');$this.loadMedia(src,function(){slide.removeClass('slide-loading');slide.html(this);if(plugin.settings.afterMedia){plugin.settings.afterMedia(index)}})}else{slide.html($this.getVideo(src));if(plugin.settings.afterMedia){plugin.settings.afterMedia(index)}}},setTitle:function(index){var title=null;$('#wcpr-swipebox-title').empty();if(elements[index]!==undefined){title=elements[index].title}
if(title){$('#wcpr-swipebox-top-bar').show();$('#wcpr-swipebox-title').append(title)}else{$('#wcpr-swipebox-top-bar').hide()}},isVideo:function(src){if(src){if(src.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||src.match(/vimeo\.com\/([0-9]*)/)||src.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/)){return!0}
if(src.toLowerCase().indexOf('swipeboxvideo=1')>=0){return!0}}},parseUri:function(uri,customData){var a=document.createElement('a'),qs={};a.href=decodeURIComponent(uri);if(a.search){qs=JSON.parse('{"'+a.search.toLowerCase().replace('?','').replace(/&/g,'","').replace(/=/g,'":"')+'"}')}
if($.isPlainObject(customData)){qs=$.extend(qs,customData,plugin.settings.queryStringData)}
return $.map(qs,function(val,key){if(val&&val>''){return encodeURIComponent(key)+'='+encodeURIComponent(val)}}).join('&')},getVideo:function(url){var iframe='',youtubeUrl=url.match(/((?:www\.)?youtube\.com|(?:www\.)?youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/),youtubeShortUrl=url.match(/(?:www\.)?youtu\.be\/([a-zA-Z0-9\-_]+)/),vimeoUrl=url.match(/(?:www\.)?vimeo\.com\/([0-9]*)/),qs='';if(youtubeUrl||youtubeShortUrl){if(youtubeShortUrl){youtubeUrl=youtubeShortUrl}
qs=ui.parseUri(url,{'autoplay':(plugin.settings.autoplayVideos?'1':'0'),'v':''});iframe='<iframe width="560" height="315" src="//'+youtubeUrl[1]+'/embed/'+youtubeUrl[2]+'?'+qs+'" frameborder="0" allowfullscreen></iframe>'}else if(vimeoUrl){qs=ui.parseUri(url,{'autoplay':(plugin.settings.autoplayVideos?'1':'0'),'byline':'0','portrait':'0','color':plugin.settings.vimeoColor});iframe='<iframe width="560" height="315"  src="//player.vimeo.com/video/'+vimeoUrl[1]+'?'+qs+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'}else{iframe='<iframe width="560" height="315" src="'+url+'" frameborder="0" allowfullscreen></iframe>'}
return'<div class="swipebox-video-container" style="max-width:'+plugin.settings.videoMaxWidth+'px"><div class="swipebox-video">'+iframe+'</div></div>'},loadMedia:function(src,callback){if(src.trim().indexOf('#')===0){callback.call($('<div>',{'class':'wcpr-swipebox-inline-container'}).append($(src).clone().toggleClass(plugin.settings.toggleClassOnLoad)))}else{if(!this.isVideo(src)){var img=$('<img>').on('load',function(){callback.call(img)});img.attr('src',src)}}},getNext:function(){var $this=this,src,index=$('#wcpr-swipebox-slider .slide').index($('#wcpr-swipebox-slider .slide.current'));if(index+1<elements.length){src=$('#wcpr-swipebox-slider .slide').eq(index).contents().find('iframe').attr('src');$('#wcpr-swipebox-slider .slide').eq(index).contents().find('iframe').attr('src',src);index++;$this.setSlide(index);$this.preloadMedia(index+1);if(plugin.settings.nextSlide){plugin.settings.nextSlide(index)}}else{if(plugin.settings.loopAtEnd===!0){src=$('#wcpr-swipebox-slider .slide').eq(index).contents().find('iframe').attr('src');$('#wcpr-swipebox-slider .slide').eq(index).contents().find('iframe').attr('src',src);index=0;$this.preloadMedia(index);$this.setSlide(index);$this.preloadMedia(index+1);if(plugin.settings.nextSlide){plugin.settings.nextSlide(index)}}else{$('#wcpr-swipebox-overlay').addClass('rightSpring');setTimeout(function(){$('#wcpr-swipebox-overlay').removeClass('rightSpring')},500)}}},getPrev:function(){var index=$('#wcpr-swipebox-slider .slide').index($('#wcpr-swipebox-slider .slide.current')),src;if(index>0){src=$('#wcpr-swipebox-slider .slide').eq(index).contents().find('iframe').attr('src');$('#wcpr-swipebox-slider .slide').eq(index).contents().find('iframe').attr('src',src);index--;this.setSlide(index);this.preloadMedia(index-1);if(plugin.settings.prevSlide){plugin.settings.prevSlide(index)}}else{$('#wcpr-swipebox-overlay').addClass('leftSpring');setTimeout(function(){$('#wcpr-swipebox-overlay').removeClass('leftSpring')},500)}},nextSlide:function(index){},prevSlide:function(index){},closeSlide:function(){jQuery('.mfp-close').click();jQuery('.eicon-close').click();jQuery('#elementor-lightbox').hide();$('html').removeClass('wcpr-swipebox-html');$('html').removeClass('wcpr-swipebox-touch');$(window).trigger('resize');this.destroy()},destroy:function(){$(window).unbind('keyup');$('body').unbind('touchstart');$('body').unbind('touchmove');$('body').unbind('touchend');$('#wcpr-swipebox-slider').unbind();$('#wcpr-swipebox-overlay').remove();if(!$.isArray(elem)){elem.removeData('_swipebox')}
if(this.target){this.target.trigger('wcpr-swipebox-destroy')}
$.swipebox.isOpen=!1;if(plugin.settings.afterClose){plugin.settings.afterClose()}}};plugin.init()};$.fn.swipebox=function(options){if(!$.data(this,'_swipebox')){var swipebox=new $.swipebox(this,options);this.data('_swipebox',swipebox)}
return this.data('_swipebox')}}(window,document,jQuery));jQuery(document).ready(function($){var current=-1;var slides;let swipeBoxIndex=0;if($('.wcpr-grid-item')){slides=$('.wcpr-grid-item')}
$('.wcpr-close').on('click',function(){wcpr_enable_scroll();$('.wcpr-modal-light-box').fadeOut(200);current=-1});$('.wcpr-modal-light-box .wcpr-overlay').on('click',function(){wcpr_enable_scroll();$('.wcpr-modal-light-box').fadeOut(200);current=-1});$('#reviews-content-left-main').on('click','.reviews-images',function(){let this_image=$(this);let data=[];$('#reviews-content-left-modal').find('a').map(function(){let current_image=$(this).find('.reviews-images');let href=$(this).data()['image_src']?$(this).data()['image_src']:current_image.attr('src');let title=$(this).data()['image_caption']?$(this).data()['image_caption']:((parseInt($(this).data()['image_index'])+1)+'/'+$('#reviews-content-left-modal').find('a').length);data.push({href:href,title:title})});if(data.length==0){data.push({href:this_image.data()['original_src']?this_image.data()['original_src']:this_image.attr('src'),title:this_image.parent().find('.wcpr-review-image-caption').html()})}
$.swipebox(data,{hideBarsDelay:100000,initialIndexOnArray:swipeBoxIndex})});function showReview(n){swipeBoxIndex=0;current=n;if(n>=slides.length){current=0}
if(n<0){current=slides.length-1}
$('#reviews-content-left-modal').html('');$('#reviews-content-left-main').html('');if($('.wcpr-grid').find('.wcpr-grid-item').eq(current).find('.reviews-images-container').length==0){$('#reviews-content-left').addClass('wcpr-no-images')}else{$('#reviews-content-left-modal').html(($('.wcpr-grid').find('.wcpr-grid-item').eq(current).find('.reviews-images-wrap-left').html()));let img_data=$('.wcpr-grid').find('.wcpr-grid-item').eq(current).find('.reviews-images-wrap-right').html();if(img_data){$('#reviews-content-left').removeClass('wcpr-no-images');$('#reviews-content-left-main').html(img_data)}
$('#reviews-content-left-modal').find('.reviews-images').parent().on('click',function(){swipeBoxIndex=$(this).data()['image_index'];$('#reviews-content-left-main').find('.reviews-images').attr('src',$(this).attr('href'));$('#reviews-content-left-main').find('.wcpr-review-image-caption').html($(this).data()['image_caption']);return!1})}
$('#reviews-content-right .reviews-content-right-meta').html($('.wcpr-grid').find('.wcpr-grid-item').eq(current).find('.review-content-container').html());$('.wcpr-modal-light-box').fadeIn(200)}
$(document).keydown(function(e){if($.swipebox.isOpen){return}
if($('.wcpr-modal-light-box').css('display')=='none'){return}
if(e.keyCode==27){wcpr_enable_scroll();$('.wcpr-modal-light-box').fadeOut(200);current=-1}
if(current!=-1){if(e.keyCode==37){showReview(current-=1)}
if(e.keyCode==39){showReview(current+=1)}}});$('body').on('click','.wcpr-grid-item',function(){slides=$('.wcpr-grid-item');let i=slides.index($(this));if(i>=0){showReview(i);wcpr_disable_scroll()}});$('body').on('click','.wcpr-next',function(){showReview(current+=1)});$('body').on('click','.wcpr-prev',function(){showReview(current-=1)});function wcpr_enable_scroll(){let scrollTop=parseInt($('html').css('top'));$('html').removeClass('wcpr-noscroll');$('html,body').scrollTop(-scrollTop)}
function wcpr_disable_scroll(){if($(document).height()>$(window).height()){let scrollTop=($('html').scrollTop())?$('html').scrollTop():$('body').scrollTop();$('html').addClass('wcpr-noscroll').css('top',-scrollTop)}}});/*!
 * jQuery blockUI plugin
 * Version 2.70.0-2014.11.23
 * Requires jQuery v1.7 or later
 *
 * Examples at: http://malsup.com/jquery/block/
 * Copyright (c) 2007-2013 M. Alsup
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 * Thanks to Amir-Hossein Sobhi for some excellent contributions!
 */
!function(){"use strict";function e(e){function t(t,n){var s,h,k=t==window,y=n&&n.message!==undefined?n.message:undefined;if(!(n=e.extend({},e.blockUI.defaults,n||{})).ignoreIfBlocked||!e(t).data("blockUI.isBlocked")){if(n.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,n.overlayCSS||{}),s=e.extend({},e.blockUI.defaults.css,n.css||{}),n.onOverlayClick&&(n.overlayCSS.cursor="pointer"),h=e.extend({},e.blockUI.defaults.themedCSS,n.themedCSS||{}),y=y===undefined?n.message:y,k&&p&&o(window,{fadeOut:0}),y&&"string"!=typeof y&&(y.parentNode||y.jquery)){var m=y.jquery?y[0]:y,g={};e(t).data("blockUI.history",g),g.el=m,g.parent=m.parentNode,g.display=m.style.display,g.position=m.style.position,g.parent&&g.parent.removeChild(m)}e(t).data("blockUI.onUnblock",n.onUnblock);var v,I,w,U,x=n.baseZ;v=e(r||n.forceIframe?'<iframe class="blockUI" style="z-index:'+x+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+n.iframeSrc+'"></iframe>':'<div class="blockUI" style="display:none"></div>'),I=e(n.theme?'<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+x+++';display:none"></div>':'<div class="blockUI blockOverlay" style="z-index:'+x+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),n.theme&&k?(U='<div class="blockUI '+n.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:fixed">',n.title&&(U+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(n.title||"&nbsp;")+"</div>"),U+='<div class="ui-widget-content ui-dialog-content"></div>',U+="</div>"):n.theme?(U='<div class="blockUI '+n.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(x+10)+';display:none;position:absolute">',n.title&&(U+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(n.title||"&nbsp;")+"</div>"),U+='<div class="ui-widget-content ui-dialog-content"></div>',U+="</div>"):U=k?'<div class="blockUI '+n.blockMsgClass+' blockPage" style="z-index:'+(x+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+n.blockMsgClass+' blockElement" style="z-index:'+(x+10)+';display:none;position:absolute"></div>',w=e(U),y&&(n.theme?(w.css(h),w.addClass("ui-widget-content")):w.css(s)),n.theme||I.css(n.overlayCSS),I.css("position",k?"fixed":"absolute"),(r||n.forceIframe)&&v.css("opacity",0);var C=[v,I,w],S=e(k?"body":t);e.each(C,function(){this.appendTo(S)}),n.theme&&n.draggable&&e.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var O=f&&(!e.support.boxModel||e("object,embed",k?null:t).length>0);if(u||O){if(k&&n.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(u||!e.support.boxModel)&&!k)var E=a(t,"borderTopWidth"),T=a(t,"borderLeftWidth"),M=E?"(0 - "+E+")":0,B=T?"(0 - "+T+")":0;e.each(C,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)k?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+n.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),k?o.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),B&&o.setExpression("left",B),M&&o.setExpression("top",M);else if(n.centerY)k&&o.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),o.marginTop=0;else if(!n.centerY&&k){var i="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(n.css&&n.css.top?parseInt(n.css.top,10):0)+') + "px"';o.setExpression("top",i)}})}if(y&&(n.theme?w.find(".ui-widget-content").append(y):w.append(y),(y.jquery||y.nodeType)&&e(y).show()),(r||n.forceIframe)&&n.showOverlay&&v.show(),n.fadeIn){var j=n.onBlock?n.onBlock:c,H=n.showOverlay&&!y?j:c,z=y?j:c;n.showOverlay&&I._fadeIn(n.fadeIn,H),y&&w._fadeIn(n.fadeIn,z)}else n.showOverlay&&I.show(),y&&w.show(),n.onBlock&&n.onBlock.bind(w)();if(i(1,t,n),k?(p=w[0],b=e(n.focusableElements,p),n.focusInput&&setTimeout(l,20)):d(w[0],n.centerX,n.centerY),n.timeout){var W=setTimeout(function(){k?e.unblockUI(n):e(t).unblock(n)},n.timeout);e(t).data("blockUI.timeout",W)}}}function o(t,o){var s,l=t==window,d=e(t),a=d.data("blockUI.history"),c=d.data("blockUI.timeout");c&&(clearTimeout(c),d.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),i(0,t,o),null===o.onUnblock&&(o.onUnblock=d.data("blockUI.onUnblock"),d.removeData("blockUI.onUnblock"));var r;r=l?e(document.body).children().filter(".blockUI").add("body > .blockUI"):d.find(">.blockUI"),o.cursorReset&&(r.length>1&&(r[1].style.cursor=o.cursorReset),r.length>2&&(r[2].style.cursor=o.cursorReset)),l&&(p=b=null),o.fadeOut?(s=r.length,r.stop().fadeOut(o.fadeOut,function(){0==--s&&n(r,a,o,t)})):n(r,a,o,t)}function n(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),d=l.width(),a=l[0].style.width;l.width(d-1).width(d),l[0].style.width=a}}function i(t,o,n){var i=o==window,l=e(o);if((t||(!i||p)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var d="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(d,n,s):e(document).unbind(d,s)}}function s(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&p&&t.data.constrainTabKey){var o=b,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){l(i)},10),!1}var s=t.data,d=e(t.target);return d.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),d.parents("div."+s.blockMsgClass).length>0||0===d.parents().children().filter("div.blockUI").length}function l(e){if(b){var t=b[!0===e?b.length-1:0];t&&t.focus()}}function d(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-a(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-a(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0"),o&&(i.top=l>0?l+"px":"0")}function a(t,o){return parseInt(e.css(t,o),10)||0}e.fn._fadeIn=e.fn.fadeIn;var c=e.noop||function(){},r=/MSIE/.test(navigator.userAgent),u=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),f=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){t(window,e)},e.unblockUI=function(e){o(window,e)},e.growlUI=function(t,o,n,i){var s=e('<div class="growlUI"></div>');t&&s.append("<h1>"+t+"</h1>"),o&&s.append("<h2>"+o+"</h2>"),n===undefined&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.mouseover(function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).mouseout(function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(o){if(this[0]===window)return e.blockUI(o),this;var n=e.extend({},e.blockUI.defaults,o||{});return this.each(function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,t(this,o)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){o(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var p=null,b=[]}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}();jQuery(function(d){if("undefined"==typeof wc_add_to_cart_params)return!1;var t=function(){this.requests=[],this.addRequest=this.addRequest.bind(this),this.run=this.run.bind(this),d(document.body).on("click",".add_to_cart_button",{addToCartHandler:this},this.onAddToCart).on("click",".remove_from_cart_button",{addToCartHandler:this},this.onRemoveFromCart).on("added_to_cart",this.updateButton).on("ajax_request_not_sent.adding_to_cart",this.updateButton).on("added_to_cart removed_from_cart",{addToCartHandler:this},this.updateFragments)};t.prototype.addRequest=function(t){this.requests.push(t),1===this.requests.length&&this.run()},t.prototype.run=function(){var t=this,a=t.requests[0].complete;t.requests[0].complete=function(){"function"==typeof a&&a(),t.requests.shift(),0<t.requests.length&&t.run()},d.ajax(this.requests[0])},t.prototype.onAddToCart=function(t){var a=d(this);if(a.is(".ajax_add_to_cart")){if(!a.attr("data-product_id"))return!0;if(t.preventDefault(),a.removeClass("added"),a.addClass("loading"),!1===d(document.body).triggerHandler("should_send_ajax_request.adding_to_cart",[a]))return d(document.body).trigger("ajax_request_not_sent.adding_to_cart",[!1,!1,a]),!0;var e={};d.each(a.data(),function(t,a){e[t]=a}),d.each(a[0].dataset,function(t,a){e[t]=a}),d(document.body).trigger("adding_to_cart",[a,e]),t.data.addToCartHandler.addRequest({type:"POST",url:wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","add_to_cart"),data:e,success:function(t){t&&(t.error&&t.product_url?window.location=t.product_url:"yes"!==wc_add_to_cart_params.cart_redirect_after_add?d(document.body).trigger("added_to_cart",[t.fragments,t.cart_hash,a]):window.location=wc_add_to_cart_params.cart_url)},dataType:"json"})}},t.prototype.onRemoveFromCart=function(t){var a=d(this),e=a.closest(".woocommerce-mini-cart-item");t.preventDefault(),e.block({message:null,overlayCSS:{opacity:.6}}),t.data.addToCartHandler.addRequest({type:"POST",url:wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","remove_from_cart"),data:{cart_item_key:a.data("cart_item_key")},success:function(t){t&&t.fragments?d(document.body).trigger("removed_from_cart",[t.fragments,t.cart_hash,a]):window.location=a.attr("href")},error:function(){window.location=a.attr("href")},dataType:"json"})},t.prototype.updateButton=function(t,a,e,r){(r=void 0!==r&&r)&&(r.removeClass("loading"),a&&r.addClass("added"),a&&!wc_add_to_cart_params.is_cart&&0===r.parent().find(".added_to_cart").length&&r.after(' <a href="'+wc_add_to_cart_params.cart_url+'" class="added_to_cart wc-forward" title="'+wc_add_to_cart_params.i18n_view_cart+'">'+wc_add_to_cart_params.i18n_view_cart+"</a>"),d(document.body).trigger("wc_cart_button_updated",[r]))},t.prototype.updateFragments=function(t,a){a&&(d.each(a,function(t){d(t).addClass("updating").fadeTo("400","0.6").block({message:null,overlayCSS:{opacity:.6}})}),d.each(a,function(t,a){d(t).replaceWith(a),d(t).stop(!0).css("opacity","1").unblock()}),d(document.body).trigger("wc_fragments_loaded"))},new t});(function($){'use strict';$(document).ready(function(){$('body').on('adding_to_cart',function(event,$button,data){if($button&&$button.hasClass('vc_gitem-link')){$button.addClass('vc-gitem-add-to-cart-loading-btn').parents('.vc_grid-item-mini').addClass('vc-woocommerce-add-to-cart-loading').append($('<div class="vc_wc-load-add-to-loader-wrapper"><div class="vc_wc-load-add-to-loader"></div></div>'))}}).on('added_to_cart',function(event,fragments,cart_hash,$button){if('undefined'===typeof($button)){$button=$('.vc-gitem-add-to-cart-loading-btn')}
if($button&&$button.hasClass('vc_gitem-link')){$button.removeClass('vc-gitem-add-to-cart-loading-btn').parents('.vc_grid-item-mini').removeClass('vc-woocommerce-add-to-cart-loading').find('.vc_wc-load-add-to-loader-wrapper').remove()}})})})(window.jQuery);function setREVStartSize(e){window.RSIW=window.RSIW===undefined?window.innerWidth:window.RSIW;window.RSIH=window.RSIH===undefined?window.innerHeight:window.RSIH;try{var pw=document.getElementById(e.c).parentNode.offsetWidth,newh;pw=pw===0||isNaN(pw)?window.RSIW:pw;e.tabw=e.tabw===undefined?0:parseInt(e.tabw);e.thumbw=e.thumbw===undefined?0:parseInt(e.thumbw);e.tabh=e.tabh===undefined?0:parseInt(e.tabh);e.thumbh=e.thumbh===undefined?0:parseInt(e.thumbh);e.tabhide=e.tabhide===undefined?0:parseInt(e.tabhide);e.thumbhide=e.thumbhide===undefined?0:parseInt(e.thumbhide);e.mh=e.mh===undefined||e.mh==""||e.mh==="auto"?0:parseInt(e.mh,0);if(e.layout==="fullscreen"||e.l==="fullscreen")
newh=Math.max(e.mh,window.RSIH);else{e.gw=Array.isArray(e.gw)?e.gw:[e.gw];for(var i in e.rl)if(e.gw[i]===undefined||e.gw[i]===0)e.gw[i]=e.gw[i-1];e.gh=e.el===undefined||e.el===""||(Array.isArray(e.el)&&e.el.length==0)?e.gh:e.el;e.gh=Array.isArray(e.gh)?e.gh:[e.gh];for(var i in e.rl)if(e.gh[i]===undefined||e.gh[i]===0)e.gh[i]=e.gh[i-1];var nl=new Array(e.rl.length),ix=0,sl;e.tabw=e.tabhide>=pw?0:e.tabw;e.thumbw=e.thumbhide>=pw?0:e.thumbw;e.tabh=e.tabhide>=pw?0:e.tabh;e.thumbh=e.thumbhide>=pw?0:e.thumbh;for(var i in e.rl)nl[i]=e.rl[i]<window.RSIW?0:e.rl[i];sl=nl[0];for(var i in nl)if(sl>nl[i]&&nl[i]>0){sl=nl[i];ix=i}
var m=pw>(e.gw[ix]+e.tabw+e.thumbw)?1:(pw-(e.tabw+e.thumbw))/(e.gw[ix]);newh=(e.gh[ix]*m)+(e.tabh+e.thumbh)}
if(window.rs_init_css===undefined)window.rs_init_css=document.head.appendChild(document.createElement("style"));document.getElementById(e.c).height=newh+"px";window.rs_init_css.innerHTML+="#"+e.c+"_wrapper { height: "+newh+"px }"}catch(e){console.log("Failure at Presize of Slider:"+e)}};(function(){window.mc4wp=window.mc4wp||{listeners:[],forms:{on:function(evt,cb){window.mc4wp.listeners.push({event:evt,callback:cb})}}}})();(function(){function maybePrefixUrlField(){if(this.value.trim()!==''&&this.value.indexOf('http')!==0){this.value="http://"+this.value}}
var urlFields=document.querySelectorAll('.mc4wp-form input[type="url"]');if(urlFields){for(var j=0;j<urlFields.length;j++){urlFields[j].addEventListener('blur',maybePrefixUrlField)}}})();var c=document.body.className;c=c.replace(/woocommerce-no-js/,'woocommerce-js');document.body.className=c;/*!
 * jQuery Validation Plugin v1.18.0
 *
 * https://jqueryvalidation.org/
 *
 * Copyright (c) 2018 Jörn Zaefferer
 * Released under the MIT license
 */
(function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],factory)}else if(typeof module==="object"&&module.exports){module.exports=factory(require("jquery"))}else{factory(jQuery)}}(function($){$.extend($.fn,{validate:function(options){if(!this.length){if(options&&options.debug&&window.console){console.warn("Nothing selected, can't validate, returning nothing.")}
return}
var validator=$.data(this[0],"validator");if(validator){return validator}
this.attr("novalidate","novalidate");validator=new $.validator(options,this[0]);$.data(this[0],"validator",validator);if(validator.settings.onsubmit){this.on("click.validate",":submit",function(event){validator.submitButton=event.currentTarget;if($(this).hasClass("cancel")){validator.cancelSubmit=!0}
if($(this).attr("formnovalidate")!==undefined){validator.cancelSubmit=!0}});this.on("submit.validate",function(event){if(validator.settings.debug){event.preventDefault()}
function handle(){var hidden,result;if(validator.submitButton&&(validator.settings.submitHandler||validator.formSubmitted)){hidden=$("<input type='hidden'/>").attr("name",validator.submitButton.name).val($(validator.submitButton).val()).appendTo(validator.currentForm)}
if(validator.settings.submitHandler&&!validator.settings.debug){result=validator.settings.submitHandler.call(validator,validator.currentForm,event);if(hidden){hidden.remove()}
if(result!==undefined){return result}
return!1}
return!0}
if(validator.cancelSubmit){validator.cancelSubmit=!1;return handle()}
if(validator.form()){if(validator.pendingRequest){validator.formSubmitted=!0;return!1}
return handle()}else{validator.focusInvalid();return!1}})}
return validator},valid:function(){var valid,validator,errorList;if($(this[0]).is("form")){valid=this.validate().form()}else{errorList=[];valid=!0;validator=$(this[0].form).validate();this.each(function(){valid=validator.element(this)&&valid;if(!valid){errorList=errorList.concat(validator.errorList)}});validator.errorList=errorList}
return valid},rules:function(command,argument){var element=this[0],settings,staticRules,existingRules,data,param,filtered;if(element==null){return}
if(!element.form&&element.isContentEditable){element.form=this.closest("form")[0];element.name=this.attr("name")}
if(element.form==null){return}
if(command){settings=$.data(element.form,"validator").settings;staticRules=settings.rules;existingRules=$.validator.staticRules(element);switch(command){case "add":$.extend(existingRules,$.validator.normalizeRule(argument));delete existingRules.messages;staticRules[element.name]=existingRules;if(argument.messages){settings.messages[element.name]=$.extend(settings.messages[element.name],argument.messages)}
break;case "remove":if(!argument){delete staticRules[element.name];return existingRules}
filtered={};$.each(argument.split(/\s/),function(index,method){filtered[method]=existingRules[method];delete existingRules[method]});return filtered}}
data=$.validator.normalizeRules($.extend({},$.validator.classRules(element),$.validator.attributeRules(element),$.validator.dataRules(element),$.validator.staticRules(element)),element);if(data.required){param=data.required;delete data.required;data=$.extend({required:param},data)}
if(data.remote){param=data.remote;delete data.remote;data=$.extend(data,{remote:param})}
return data}});$.extend($.expr.pseudos||$.expr[":"],{blank:function(a){return!$.trim(""+$(a).val())},filled:function(a){var val=$(a).val();return val!==null&&!!$.trim(""+val)},unchecked:function(a){return!$(a).prop("checked")}});$.validator=function(options,form){this.settings=$.extend(!0,{},$.validator.defaults,options);this.currentForm=form;this.init()};$.validator.format=function(source,params){if(arguments.length===1){return function(){var args=$.makeArray(arguments);args.unshift(source);return $.validator.format.apply(this,args)}}
if(params===undefined){return source}
if(arguments.length>2&&params.constructor!==Array){params=$.makeArray(arguments).slice(1)}
if(params.constructor!==Array){params=[params]}
$.each(params,function(i,n){source=source.replace(new RegExp("\\{"+i+"\\}","g"),function(){return n})});return source};$.extend($.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:$([]),errorLabelContainer:$([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(element){this.lastActive=element;if(this.settings.focusCleanup){if(this.settings.unhighlight){this.settings.unhighlight.call(this,element,this.settings.errorClass,this.settings.validClass)}
this.hideThese(this.errorsFor(element))}},onfocusout:function(element){if(!this.checkable(element)&&(element.name in this.submitted||!this.optional(element))){this.element(element)}},onkeyup:function(element,event){var excludedKeys=[16,17,18,20,35,36,37,38,39,40,45,144,225];if(event.which===9&&this.elementValue(element)===""||$.inArray(event.keyCode,excludedKeys)!==-1){return}else if(element.name in this.submitted||element.name in this.invalid){this.element(element)}},onclick:function(element){if(element.name in this.submitted){this.element(element)}else if(element.parentNode.name in this.submitted){this.element(element.parentNode)}},highlight:function(element,errorClass,validClass){if(element.type==="radio"){this.findByName(element.name).addClass(errorClass).removeClass(validClass)}else{$(element).addClass(errorClass).removeClass(validClass)}},unhighlight:function(element,errorClass,validClass){if(element.type==="radio"){this.findByName(element.name).removeClass(errorClass).addClass(validClass)}else{$(element).removeClass(errorClass).addClass(validClass)}}},setDefaults:function(settings){$.extend($.validator.defaults,settings)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:$.validator.format("Please enter no more than {0} characters."),minlength:$.validator.format("Please enter at least {0} characters."),rangelength:$.validator.format("Please enter a value between {0} and {1} characters long."),range:$.validator.format("Please enter a value between {0} and {1}."),max:$.validator.format("Please enter a value less than or equal to {0}."),min:$.validator.format("Please enter a value greater than or equal to {0}."),step:$.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){this.labelContainer=$(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||$(this.currentForm);this.containers=$(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var currentForm=this.currentForm,groups=(this.groups={}),rules;$.each(this.settings.groups,function(key,value){if(typeof value==="string"){value=value.split(/\s/)}
$.each(value,function(index,name){groups[name]=key})});rules=this.settings.rules;$.each(rules,function(key,value){rules[key]=$.validator.normalizeRule(value)});function delegate(event){if(!this.form&&this.isContentEditable){this.form=$(this).closest("form")[0];this.name=$(this).attr("name")}
if(currentForm!==this.form){return}
var validator=$.data(this.form,"validator"),eventType="on"+event.type.replace(/^validate/,""),settings=validator.settings;if(settings[eventType]&&!$(this).is(settings.ignore)){settings[eventType].call(validator,this,event)}}
$(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], "+"[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], "+"[type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], "+"[type='radio'], [type='checkbox'], [contenteditable], [type='button']",delegate).on("click.validate","select, option, [type='radio'], [type='checkbox']",delegate);if(this.settings.invalidHandler){$(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)}},form:function(){this.checkForm();$.extend(this.submitted,this.errorMap);this.invalid=$.extend({},this.errorMap);if(!this.valid()){$(this.currentForm).triggerHandler("invalid-form",[this])}
this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var i=0,elements=(this.currentElements=this.elements());elements[i];i++){this.check(elements[i])}
return this.valid()},element:function(element){var cleanElement=this.clean(element),checkElement=this.validationTargetFor(cleanElement),v=this,result=!0,rs,group;if(checkElement===undefined){delete this.invalid[cleanElement.name]}else{this.prepareElement(checkElement);this.currentElements=$(checkElement);group=this.groups[checkElement.name];if(group){$.each(this.groups,function(name,testgroup){if(testgroup===group&&name!==checkElement.name){cleanElement=v.validationTargetFor(v.clean(v.findByName(name)));if(cleanElement&&cleanElement.name in v.invalid){v.currentElements.push(cleanElement);result=v.check(cleanElement)&&result}}})}
rs=this.check(checkElement)!==!1;result=result&&rs;if(rs){this.invalid[checkElement.name]=!1}else{this.invalid[checkElement.name]=!0}
if(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers)}
this.showErrors();$(element).attr("aria-invalid",!rs)}
return result},showErrors:function(errors){if(errors){var validator=this;$.extend(this.errorMap,errors);this.errorList=$.map(this.errorMap,function(message,name){return{message:message,element:validator.findByName(name)[0]}});this.successList=$.grep(this.successList,function(element){return!(element.name in errors)})}
if(this.settings.showErrors){this.settings.showErrors.call(this,this.errorMap,this.errorList)}else{this.defaultShowErrors()}},resetForm:function(){if($.fn.resetForm){$(this.currentForm).resetForm()}
this.invalid={};this.submitted={};this.prepareForm();this.hideErrors();var elements=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(elements)},resetElements:function(elements){var i;if(this.settings.unhighlight){for(i=0;elements[i];i++){this.settings.unhighlight.call(this,elements[i],this.settings.errorClass,"");this.findByName(elements[i].name).removeClass(this.settings.validClass)}}else{elements.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)}},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(obj){var count=0,i;for(i in obj){if(obj[i]!==undefined&&obj[i]!==null&&obj[i]!==!1){count++}}
return count},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(errors){errors.not(this.containers).text("");this.addWrapper(errors).hide()},valid:function(){return this.size()===0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid){try{$(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(e){}}},findLastActive:function(){var lastActive=this.lastActive;return lastActive&&$.grep(this.errorList,function(n){return n.element.name===lastActive.name}).length===1&&lastActive},elements:function(){var validator=this,rulesCache={};return $(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var name=this.name||$(this).attr("name");if(!name&&validator.settings.debug&&window.console){console.error("%o has no name assigned",this)}
if(this.isContentEditable){this.form=$(this).closest("form")[0];this.name=name}
if(this.form!==validator.currentForm){return!1}
if(name in rulesCache||!validator.objectLength($(this).rules())){return!1}
rulesCache[name]=!0;return!0})},clean:function(selector){return $(selector)[0]},errors:function(){var errorClass=this.settings.errorClass.split(" ").join(".");return $(this.settings.errorElement+"."+errorClass,this.errorContext)},resetInternals:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=$([]);this.toHide=$([])},reset:function(){this.resetInternals();this.currentElements=$([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(element){this.reset();this.toHide=this.errorsFor(element)},elementValue:function(element){var $element=$(element),type=element.type,val,idx;if(type==="radio"||type==="checkbox"){return this.findByName(element.name).filter(":checked").val()}else if(type==="number"&&typeof element.validity!=="undefined"){return element.validity.badInput?"NaN":$element.val()}
if(element.isContentEditable){val=$element.text()}else{val=$element.val()}
if(type==="file"){if(val.substr(0,12)==="C:\\fakepath\\"){return val.substr(12)}
idx=val.lastIndexOf("/");if(idx>=0){return val.substr(idx+1)}
idx=val.lastIndexOf("\\");if(idx>=0){return val.substr(idx+1)}
return val}
if(typeof val==="string"){return val.replace(/\r/g,"")}
return val},check:function(element){element=this.validationTargetFor(this.clean(element));var rules=$(element).rules(),rulesCount=$.map(rules,function(n,i){return i}).length,dependencyMismatch=!1,val=this.elementValue(element),result,method,rule,normalizer;if(typeof rules.normalizer==="function"){normalizer=rules.normalizer}else if(typeof this.settings.normalizer==="function"){normalizer=this.settings.normalizer}
if(normalizer){val=normalizer.call(element,val);delete rules.normalizer}
for(method in rules){rule={method:method,parameters:rules[method]};try{result=$.validator.methods[method].call(this,val,element,rule.parameters);if(result==="dependency-mismatch"&&rulesCount===1){dependencyMismatch=!0;continue}
dependencyMismatch=!1;if(result==="pending"){this.toHide=this.toHide.not(this.errorsFor(element));return}
if(!result){this.formatAndAdd(element,rule);return!1}}catch(e){if(this.settings.debug&&window.console){console.log("Exception occurred when checking element "+element.id+", check the '"+rule.method+"' method.",e)}
if(e instanceof TypeError){e.message+=".  Exception occurred when checking element "+element.id+", check the '"+rule.method+"' method."}
throw e}}
if(dependencyMismatch){return}
if(this.objectLength(rules)){this.successList.push(element)}
return!0},customDataMessage:function(element,method){return $(element).data("msg"+method.charAt(0).toUpperCase()+method.substring(1).toLowerCase())||$(element).data("msg")},customMessage:function(name,method){var m=this.settings.messages[name];return m&&(m.constructor===String?m:m[method])},findDefined:function(){for(var i=0;i<arguments.length;i++){if(arguments[i]!==undefined){return arguments[i]}}
return undefined},defaultMessage:function(element,rule){if(typeof rule==="string"){rule={method:rule}}
var message=this.findDefined(this.customMessage(element.name,rule.method),this.customDataMessage(element,rule.method),!this.settings.ignoreTitle&&element.title||undefined,$.validator.messages[rule.method],"<strong>Warning: No message defined for "+element.name+"</strong>"),theregex=/\$?\{(\d+)\}/g;if(typeof message==="function"){message=message.call(this,rule.parameters,element)}else if(theregex.test(message)){message=$.validator.format(message.replace(theregex,"{$1}"),rule.parameters)}
return message},formatAndAdd:function(element,rule){var message=this.defaultMessage(element,rule);this.errorList.push({message:message,element:element,method:rule.method});this.errorMap[element.name]=message;this.submitted[element.name]=message},addWrapper:function(toToggle){if(this.settings.wrapper){toToggle=toToggle.add(toToggle.parent(this.settings.wrapper))}
return toToggle},defaultShowErrors:function(){var i,elements,error;for(i=0;this.errorList[i];i++){error=this.errorList[i];if(this.settings.highlight){this.settings.highlight.call(this,error.element,this.settings.errorClass,this.settings.validClass)}
this.showLabel(error.element,error.message)}
if(this.errorList.length){this.toShow=this.toShow.add(this.containers)}
if(this.settings.success){for(i=0;this.successList[i];i++){this.showLabel(this.successList[i])}}
if(this.settings.unhighlight){for(i=0,elements=this.validElements();elements[i];i++){this.settings.unhighlight.call(this,elements[i],this.settings.errorClass,this.settings.validClass)}}
this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return $(this.errorList).map(function(){return this.element})},showLabel:function(element,message){var place,group,errorID,v,error=this.errorsFor(element),elementID=this.idOrName(element),describedBy=$(element).attr("aria-describedby");if(error.length){error.removeClass(this.settings.validClass).addClass(this.settings.errorClass);error.html(message)}else{error=$("<"+this.settings.errorElement+">").attr("id",elementID+"-error").addClass(this.settings.errorClass).html(message||"");place=error;if(this.settings.wrapper){place=error.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()}
if(this.labelContainer.length){this.labelContainer.append(place)}else if(this.settings.errorPlacement){this.settings.errorPlacement.call(this,place,$(element))}else{place.insertAfter(element)}
if(error.is("label")){error.attr("for",elementID)}else if(error.parents("label[for='"+this.escapeCssMeta(elementID)+"']").length===0){errorID=error.attr("id");if(!describedBy){describedBy=errorID}else if(!describedBy.match(new RegExp("\\b"+this.escapeCssMeta(errorID)+"\\b"))){describedBy+=" "+errorID}
$(element).attr("aria-describedby",describedBy);group=this.groups[element.name];if(group){v=this;$.each(v.groups,function(name,testgroup){if(testgroup===group){$("[name='"+v.escapeCssMeta(name)+"']",v.currentForm).attr("aria-describedby",error.attr("id"))}})}}}
if(!message&&this.settings.success){error.text("");if(typeof this.settings.success==="string"){error.addClass(this.settings.success)}else{this.settings.success(error,element)}}
this.toShow=this.toShow.add(error)},errorsFor:function(element){var name=this.escapeCssMeta(this.idOrName(element)),describer=$(element).attr("aria-describedby"),selector="label[for='"+name+"'], label[for='"+name+"'] *";if(describer){selector=selector+", #"+this.escapeCssMeta(describer).replace(/\s+/g,", #")}
return this.errors().filter(selector)},escapeCssMeta:function(string){return string.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(element){return this.groups[element.name]||(this.checkable(element)?element.name:element.id||element.name)},validationTargetFor:function(element){if(this.checkable(element)){element=this.findByName(element.name)}
return $(element).not(this.settings.ignore)[0]},checkable:function(element){return(/radio|checkbox/i).test(element.type)},findByName:function(name){return $(this.currentForm).find("[name='"+this.escapeCssMeta(name)+"']")},getLength:function(value,element){switch(element.nodeName.toLowerCase()){case "select":return $("option:selected",element).length;case "input":if(this.checkable(element)){return this.findByName(element.name).filter(":checked").length}}
return value.length},depend:function(param,element){return this.dependTypes[typeof param]?this.dependTypes[typeof param](param,element):!0},dependTypes:{"boolean":function(param){return param},"string":function(param,element){return!!$(param,element.form).length},"function":function(param,element){return param(element)}},optional:function(element){var val=this.elementValue(element);return!$.validator.methods.required.call(this,val,element)&&"dependency-mismatch"},startRequest:function(element){if(!this.pending[element.name]){this.pendingRequest++;$(element).addClass(this.settings.pendingClass);this.pending[element.name]=!0}},stopRequest:function(element,valid){this.pendingRequest--;if(this.pendingRequest<0){this.pendingRequest=0}
delete this.pending[element.name];$(element).removeClass(this.settings.pendingClass);if(valid&&this.pendingRequest===0&&this.formSubmitted&&this.form()){$(this.currentForm).submit();if(this.submitButton){$("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove()}
this.formSubmitted=!1}else if(!valid&&this.pendingRequest===0&&this.formSubmitted){$(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted=!1}},previousValue:function(element,method){method=typeof method==="string"&&method||"remote";return $.data(element,"previousValue")||$.data(element,"previousValue",{old:null,valid:!0,message:this.defaultMessage(element,{method:method})})},destroy:function(){this.resetForm();$(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("validate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(className,rules){if(className.constructor===String){this.classRuleSettings[className]=rules}else{$.extend(this.classRuleSettings,className)}},classRules:function(element){var rules={},classes=$(element).attr("class");if(classes){$.each(classes.split(" "),function(){if(this in $.validator.classRuleSettings){$.extend(rules,$.validator.classRuleSettings[this])}})}
return rules},normalizeAttributeRule:function(rules,type,method,value){if(/min|max|step/.test(method)&&(type===null||/number|range|text/.test(type))){value=Number(value);if(isNaN(value)){value=undefined}}
if(value||value===0){rules[method]=value}else if(type===method&&type!=="range"){rules[method]=!0}},attributeRules:function(element){var rules={},$element=$(element),type=element.getAttribute("type"),method,value;for(method in $.validator.methods){if(method==="required"){value=element.getAttribute(method);if(value===""){value=!0}
value=!!value}else{value=$element.attr(method)}
this.normalizeAttributeRule(rules,type,method,value)}
if(rules.maxlength&&/-1|2147483647|524288/.test(rules.maxlength)){delete rules.maxlength}
return rules},dataRules:function(element){var rules={},$element=$(element),type=element.getAttribute("type"),method,value;for(method in $.validator.methods){value=$element.data("rule"+method.charAt(0).toUpperCase()+method.substring(1).toLowerCase());if(value===""){value=!0}
this.normalizeAttributeRule(rules,type,method,value)}
return rules},staticRules:function(element){var rules={},validator=$.data(element.form,"validator");if(validator.settings.rules){rules=$.validator.normalizeRule(validator.settings.rules[element.name])||{}}
return rules},normalizeRules:function(rules,element){$.each(rules,function(prop,val){if(val===!1){delete rules[prop];return}
if(val.param||val.depends){var keepRule=!0;switch(typeof val.depends){case "string":keepRule=!!$(val.depends,element.form).length;break;case "function":keepRule=val.depends.call(element,element);break}
if(keepRule){rules[prop]=val.param!==undefined?val.param:!0}else{$.data(element.form,"validator").resetElements($(element));delete rules[prop]}}});$.each(rules,function(rule,parameter){rules[rule]=$.isFunction(parameter)&&rule!=="normalizer"?parameter(element):parameter});$.each(["minlength","maxlength"],function(){if(rules[this]){rules[this]=Number(rules[this])}});$.each(["rangelength","range"],function(){var parts;if(rules[this]){if($.isArray(rules[this])){rules[this]=[Number(rules[this][0]),Number(rules[this][1])]}else if(typeof rules[this]==="string"){parts=rules[this].replace(/[\[\]]/g,"").split(/[\s,]+/);rules[this]=[Number(parts[0]),Number(parts[1])]}}});if($.validator.autoCreateRanges){if(rules.min!=null&&rules.max!=null){rules.range=[rules.min,rules.max];delete rules.min;delete rules.max}
if(rules.minlength!=null&&rules.maxlength!=null){rules.rangelength=[rules.minlength,rules.maxlength];delete rules.minlength;delete rules.maxlength}}
return rules},normalizeRule:function(data){if(typeof data==="string"){var transformed={};$.each(data.split(/\s/),function(){transformed[this]=!0});data=transformed}
return data},addMethod:function(name,method,message){$.validator.methods[name]=method;$.validator.messages[name]=message!==undefined?message:$.validator.messages[name];if(method.length<3){$.validator.addClassRules(name,$.validator.normalizeRule(name))}},methods:{required:function(value,element,param){if(!this.depend(param,element)){return"dependency-mismatch"}
if(element.nodeName.toLowerCase()==="select"){var val=$(element).val();return val&&val.length>0}
if(this.checkable(element)){return this.getLength(value,element)>0}
return value!==undefined&&value!==null&&value.length>0},email:function(value,element){return this.optional(element)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(value)},url:function(value,element){return this.optional(element)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(value)},date:(function(){var called=!1;return function(value,element){if(!called){called=!0;if(this.settings.debug&&window.console){console.warn("The `date` method is deprecated and will be removed in version '2.0.0'.\n"+"Please don't use it, since it relies on the Date constructor, which\n"+"behaves very differently across browsers and locales. Use `dateISO`\n"+"instead or one of the locale specific methods in `localizations/`\n"+"and `additional-methods.js`.")}}
return this.optional(element)||!/Invalid|NaN/.test(new Date(value).toString())}}()),dateISO:function(value,element){return this.optional(element)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value)},number:function(value,element){return this.optional(element)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(value)},digits:function(value,element){return this.optional(element)||/^\d+$/.test(value)},minlength:function(value,element,param){var length=$.isArray(value)?value.length:this.getLength(value,element);return this.optional(element)||length>=param},maxlength:function(value,element,param){var length=$.isArray(value)?value.length:this.getLength(value,element);return this.optional(element)||length<=param},rangelength:function(value,element,param){var length=$.isArray(value)?value.length:this.getLength(value,element);return this.optional(element)||(length>=param[0]&&length<=param[1])},min:function(value,element,param){return this.optional(element)||value>=param},max:function(value,element,param){return this.optional(element)||value<=param},range:function(value,element,param){return this.optional(element)||(value>=param[0]&&value<=param[1])},step:function(value,element,param){var type=$(element).attr("type"),errorMessage="Step attribute on input type "+type+" is not supported.",supportedTypes=["text","number","range"],re=new RegExp("\\b"+type+"\\b"),notSupported=type&&!re.test(supportedTypes.join()),decimalPlaces=function(num){var match=(""+num).match(/(?:\.(\d+))?$/);if(!match){return 0}
return match[1]?match[1].length:0},toInt=function(num){return Math.round(num*Math.pow(10,decimals))},valid=!0,decimals;if(notSupported){throw new Error(errorMessage)}
decimals=decimalPlaces(param);if(decimalPlaces(value)>decimals||toInt(value)%toInt(param)!==0){valid=!1}
return this.optional(element)||valid},equalTo:function(value,element,param){var target=$(param);if(this.settings.onfocusout&&target.not(".validate-equalTo-blur").length){target.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){$(element).valid()})}
return value===target.val()},remote:function(value,element,param,method){if(this.optional(element)){return"dependency-mismatch"}
method=typeof method==="string"&&method||"remote";var previous=this.previousValue(element,method),validator,data,optionDataString;if(!this.settings.messages[element.name]){this.settings.messages[element.name]={}}
previous.originalMessage=previous.originalMessage||this.settings.messages[element.name][method];this.settings.messages[element.name][method]=previous.message;param=typeof param==="string"&&{url:param}||param;optionDataString=$.param($.extend({data:value},param.data));if(previous.old===optionDataString){return previous.valid}
previous.old=optionDataString;validator=this;this.startRequest(element);data={};data[element.name]=value;$.ajax($.extend(!0,{mode:"abort",port:"validate"+element.name,dataType:"json",data:data,context:validator.currentForm,success:function(response){var valid=response===!0||response==="true",errors,message,submitted;validator.settings.messages[element.name][method]=previous.originalMessage;if(valid){submitted=validator.formSubmitted;validator.resetInternals();validator.toHide=validator.errorsFor(element);validator.formSubmitted=submitted;validator.successList.push(element);validator.invalid[element.name]=!1;validator.showErrors()}else{errors={};message=response||validator.defaultMessage(element,{method:method,parameters:value});errors[element.name]=previous.message=message;validator.invalid[element.name]=!0;validator.showErrors(errors)}
previous.valid=valid;validator.stopRequest(element,valid)}},param));return"pending"}}});var pendingRequests={},ajax;if($.ajaxPrefilter){$.ajaxPrefilter(function(settings,_,xhr){var port=settings.port;if(settings.mode==="abort"){if(pendingRequests[port]){pendingRequests[port].abort()}
pendingRequests[port]=xhr}})}else{ajax=$.ajax;$.ajax=function(settings){var mode=("mode" in settings?settings:$.ajaxSettings).mode,port=("port" in settings?settings:$.ajaxSettings).port;if(mode==="abort"){if(pendingRequests[port]){pendingRequests[port].abort()}
pendingRequests[port]=ajax.apply(this,arguments);return pendingRequests[port]}
return ajax.apply(this,arguments)}}
return $}));'use strict';class customLogin{constructor(){this._changeDefaultErrorMessage();this._initLogin()}
_initLogin(){jQuery('form#custom-login, form#custom-register').on('submit',function(e){if(!$(this).valid())return!1;$('p.status',this).show().text(urna_ajax_auth_object.loadingmessage);var action='ajaxlogin';var username=$('form#custom-login #cus-username').val();var password=$('form#custom-login #cus-password').val();var rememberme=$('#cus-rememberme').is(':checked')?!0:!1;var email='';security=$('form#custom-login #security').val();if($(this).attr('id')=='custom-register'){action='ajaxregister';username=$('#signonname').val();password=$('#signonpassword').val();email=$('#signonemail').val();var security=$('#signonsecurity').val()}
var self=$(this);$.ajax({type:'POST',dataType:'json',url:urna_ajax_auth_object.ajaxurl,data:{'action':action,'username':username,'password':password,'email':email,'rememberme':rememberme,'security':security},success:function(data){$('p.status',self).text(data.message);if(data.loggedin==!0){$('p.status',self).addClass('successful');document.location.reload()}else{$('p.status',self).addClass('wrong')}}});e.preventDefault()});if(jQuery("#custom-register").length)jQuery("#custom-register").validate({rules:{password2:{equalTo:'#signonpassword'}}});else if(jQuery("#custom-login").length)jQuery("#custom-login").validate()}
_changeDefaultErrorMessage(){jQuery.extend(jQuery.validator.messages,{required:urna_ajax_auth_object.validate.required,remote:urna_ajax_auth_object.validate.remote,email:urna_ajax_auth_object.validate.email,url:urna_ajax_auth_object.validate.url,date:urna_ajax_auth_object.validate.date,dateISO:urna_ajax_auth_object.validate.dateISO,number:urna_ajax_auth_object.validate.number,digits:urna_ajax_auth_object.validate.digits,creditcard:urna_ajax_auth_object.validate.creditcard,equalTo:urna_ajax_auth_object.validate.equalTo,accept:urna_ajax_auth_object.validate.accept,maxlength:jQuery.validator.format(urna_ajax_auth_object.validate.maxlength),minlength:jQuery.validator.format(urna_ajax_auth_object.validate.minlength),rangelength:jQuery.validator.format(urna_ajax_auth_object.validate.rangelength),range:jQuery.validator.format(urna_ajax_auth_object.validate.range),max:jQuery.validator.format(urna_ajax_auth_object.validate.max),min:jQuery.validator.format(urna_ajax_auth_object.validate.min)})}}
jQuery(document).ready(function($){new customLogin()});(function(a){var b=this.SelectBox=function(c,d){if(c instanceof jQuery){if(c.length>0){c=c[0]}else{return}}this.typeTimer=null;this.typeSearch="";this.isMac=navigator.platform.match(/mac/i);d="object"===typeof d?d:{};this.selectElement=c;if(!d.mobile&&navigator.userAgent.match(/iPad|iPhone|Android|IEMobile|BlackBerry/i)){return!1}if("select"!==c.tagName.toLowerCase()){return!1}this.init(d)};b.prototype.version="1.2.0";b.prototype.init=function(o){var j=a(this.selectElement);if(j.data("selectBox-control")){return!1}var f=a('<a class="selectBox" />'),h=j.attr("multiple")||parseInt(j.attr("size"))>1,d=o||{},c=parseInt(j.prop("tabindex"))||0,m=this;f.width(j.outerWidth()).addClass(j.attr("class")).attr("title",j.attr("title")||"").attr("tabindex",c).css("display","inline-block").bind("focus.selectBox",function(){if(this!==document.activeElement&&document.body!==document.activeElement){a(document.activeElement).blur()}if(f.hasClass("selectBox-active")){return}f.addClass("selectBox-active");j.trigger("focus")}).bind("blur.selectBox",function(){if(!f.hasClass("selectBox-active")){return}f.removeClass("selectBox-active");j.trigger("blur")});if(!a(window).data("selectBox-bindings")){a(window).data("selectBox-bindings",!0).bind("scroll.selectBox",this.hideMenus).bind("resize.selectBox",this.hideMenus)}if(j.attr("disabled")){f.addClass("selectBox-disabled")}j.bind("click.selectBox",function(p){f.focus();p.preventDefault()});if(h){o=this.getOptions("inline");f.append(o).data("selectBox-options",o).addClass("selectBox-inline selectBox-menuShowing").bind("keydown.selectBox",function(p){m.handleKeyDown(p)}).bind("keypress.selectBox",function(p){m.handleKeyPress(p)}).bind("mousedown.selectBox",function(p){if(1!==p.which){return}if(a(p.target).is("A.selectBox-inline")){p.preventDefault()}if(!f.hasClass("selectBox-focus")){f.focus()}}).insertAfter(j);if(!j[0].style.height){var n=j.attr("size")?parseInt(j.attr("size")):5;var e=f.clone().removeAttr("id").css({position:"absolute",top:"-9999em"}).show().appendTo("body");e.find(".selectBox-options").html("<li><a>\u00A0</a></li>");var l=parseInt(e.find(".selectBox-options A:first").html("&nbsp;").outerHeight());e.remove();f.height(l*n)}this.disableSelection(f)}else{var i=a('<span class="selectBox-label" />'),k=a('<span class="selectBox-arrow" />');i.attr("class",this.getLabelClass()).text(this.getLabelText());o=this.getOptions("dropdown");o.appendTo("BODY");f.data("selectBox-options",o).addClass("selectBox-dropdown").append(i).append(k).bind("mousedown.selectBox",function(p){if(1===p.which){if(f.hasClass("selectBox-menuShowing")){m.hideMenus()}else{p.stopPropagation();o.data("selectBox-down-at-x",p.screenX).data("selectBox-down-at-y",p.screenY);m.showMenu()}}}).bind("keydown.selectBox",function(p){m.handleKeyDown(p)}).bind("keypress.selectBox",function(p){m.handleKeyPress(p)}).bind("open.selectBox",function(q,p){if(p&&p._selectBox===!0){return}m.showMenu()}).bind("close.selectBox",function(q,p){if(p&&p._selectBox===!0){return}m.hideMenus()}).insertAfter(j);var g=f.width()-k.outerWidth()-parseInt(i.css("paddingLeft"))||0-parseInt(i.css("paddingRight"))||0;i.width(g);this.disableSelection(f)}j.addClass("selectBox").data("selectBox-control",f).data("selectBox-settings",d).hide()};b.prototype.getOptions=function(j){var f;var c=a(this.selectElement);var e=this;var d=function(i,k){i.children("OPTION, OPTGROUP").each(function(){if(a(this).is("OPTION")){if(a(this).length>0){e.generateOptions(a(this),k)}else{k.append("<li>\u00A0</li>")}}else{var l=a('<li class="selectBox-optgroup" />');l.text(a(this).attr("label"));k.append(l);k=d(a(this),k)}});return k};switch(j){case"inline":f=a('<ul class="selectBox-options" />');f=d(c,f);f.find("A").bind("mouseover.selectBox",function(i){e.addHover(a(this).parent())}).bind("mouseout.selectBox",function(i){e.removeHover(a(this).parent())}).bind("mousedown.selectBox",function(i){if(1!==i.which){return}i.preventDefault();if(!c.selectBox("control").hasClass("selectBox-active")){c.selectBox("control").focus()}}).bind("mouseup.selectBox",function(i){if(1!==i.which){return}e.hideMenus();e.selectOption(a(this).parent(),i)});this.disableSelection(f);return f;case"dropdown":f=a('<ul class="selectBox-dropdown-menu selectBox-options" />');f=d(c,f);f.data("selectBox-select",c).css("display","none").appendTo("BODY").find("A").bind("mousedown.selectBox",function(i){if(i.which===1){i.preventDefault();if(i.screenX===f.data("selectBox-down-at-x")&&i.screenY===f.data("selectBox-down-at-y")){f.removeData("selectBox-down-at-x").removeData("selectBox-down-at-y");e.hideMenus()}}}).bind("mouseup.selectBox",function(i){if(1!==i.which){return}if(i.screenX===f.data("selectBox-down-at-x")&&i.screenY===f.data("selectBox-down-at-y")){return}else{f.removeData("selectBox-down-at-x").removeData("selectBox-down-at-y")}e.selectOption(a(this).parent());e.hideMenus()}).bind("mouseover.selectBox",function(i){e.addHover(a(this).parent())}).bind("mouseout.selectBox",function(i){e.removeHover(a(this).parent())});var h=c.attr("class")||"";if(""!==h){h=h.split(" ");for(var g in h){f.addClass(h[g]+"-selectBox-dropdown-menu")}}this.disableSelection(f);return f}};b.prototype.getLabelClass=function(){var c=a(this.selectElement).find("OPTION:selected");return("selectBox-label "+(c.attr("class")||"")).replace(/\s+$/,"")};b.prototype.getLabelText=function(){var c=a(this.selectElement).find("OPTION:selected");return c.text()||"\u00A0"};b.prototype.setLabel=function(){var c=a(this.selectElement);var d=c.data("selectBox-control");if(!d){return}d.find(".selectBox-label").attr("class",this.getLabelClass()).text(this.getLabelText())};b.prototype.destroy=function(){var c=a(this.selectElement);var e=c.data("selectBox-control");if(!e){return}var d=e.data("selectBox-options");d.remove();e.remove();c.removeClass("selectBox").removeData("selectBox-control").data("selectBox-control",null).removeData("selectBox-settings").data("selectBox-settings",null).show()};b.prototype.refresh=function(){var c=a(this.selectElement),e=c.data("selectBox-control"),f=e.hasClass("selectBox-dropdown"),d=e.hasClass("selectBox-menuShowing");c.selectBox("options",c.html());if(f&&d){this.showMenu()}};b.prototype.showMenu=function(){var e=this,d=a(this.selectElement),j=d.data("selectBox-control"),h=d.data("selectBox-settings"),f=j.data("selectBox-options");if(j.hasClass("selectBox-disabled")){return!1}this.hideMenus();var g=parseInt(j.css("borderBottomWidth"))||0;f.width(j.innerWidth()).css({top:j.offset().top+j.outerHeight()-g,left:j.offset().left});if(d.triggerHandler("beforeopen")){return!1}var i=function(){d.triggerHandler("open",{_selectBox:!0})};switch(h.menuTransition){case"fade":f.fadeIn(h.menuSpeed,i);break;case"slide":f.slideDown(h.menuSpeed,i);break;default:f.show(h.menuSpeed,i);break}if(!h.menuSpeed){i()}var c=f.find(".selectBox-selected:first");this.keepOptionInView(c,!0);this.addHover(c);j.addClass("selectBox-menuShowing");a(document).bind("mousedown.selectBox",function(k){if(1===k.which){if(a(k.target).parents().andSelf().hasClass("selectBox-options")){return}e.hideMenus()}})};b.prototype.hideMenus=function(){if(a(".selectBox-dropdown-menu:visible").length===0){return}a(document).unbind("mousedown.selectBox");a(".selectBox-dropdown-menu").each(function(){var d=a(this),c=d.data("selectBox-select"),g=c.data("selectBox-control"),e=c.data("selectBox-settings");if(c.triggerHandler("beforeclose")){return!1}var f=function(){c.triggerHandler("close",{_selectBox:!0})};if(e){switch(e.menuTransition){case"fade":d.fadeOut(e.menuSpeed,f);break;case"slide":d.slideUp(e.menuSpeed,f);break;default:d.hide(e.menuSpeed,f);break}if(!e.menuSpeed){f()}g.removeClass("selectBox-menuShowing")}else{a(this).hide();a(this).triggerHandler("close",{_selectBox:!0});a(this).removeClass("selectBox-menuShowing")}})};b.prototype.selectOption=function(d,j){var c=a(this.selectElement);d=a(d);var k=c.data("selectBox-control"),h=c.data("selectBox-settings");if(k.hasClass("selectBox-disabled")){return!1}if(0===d.length||d.hasClass("selectBox-disabled")){return!1}if(c.attr("multiple")){if(j.shiftKey&&k.data("selectBox-last-selected")){d.toggleClass("selectBox-selected");var e;if(d.index()>k.data("selectBox-last-selected").index()){e=d.siblings().slice(k.data("selectBox-last-selected").index(),d.index())}else{e=d.siblings().slice(d.index(),k.data("selectBox-last-selected").index())}e=e.not(".selectBox-optgroup, .selectBox-disabled");if(d.hasClass("selectBox-selected")){e.addClass("selectBox-selected")}else{e.removeClass("selectBox-selected")}}else{if((this.isMac&&j.metaKey)||(!this.isMac&&j.ctrlKey)){d.toggleClass("selectBox-selected")}else{d.siblings().removeClass("selectBox-selected");d.addClass("selectBox-selected")}}}else{d.siblings().removeClass("selectBox-selected");d.addClass("selectBox-selected")}if(k.hasClass("selectBox-dropdown")){k.find(".selectBox-label").text(d.text())}var f=0,g=[];if(c.attr("multiple")){k.find(".selectBox-selected A").each(function(){g[f++]=a(this).attr("rel")})}else{g=d.find("A").attr("rel")}k.data("selectBox-last-selected",d);if(c.val()!==g){c.val(g);this.setLabel();c.trigger("change")}return!0};b.prototype.addHover=function(d){d=a(d);var c=a(this.selectElement),f=c.data("selectBox-control"),e=f.data("selectBox-options");e.find(".selectBox-hover").removeClass("selectBox-hover");d.addClass("selectBox-hover")};b.prototype.getSelectElement=function(){return this.selectElement};b.prototype.removeHover=function(d){d=a(d);var c=a(this.selectElement),f=c.data("selectBox-control"),e=f.data("selectBox-options");e.find(".selectBox-hover").removeClass("selectBox-hover")};b.prototype.keepOptionInView=function(e,d){if(!e||e.length===0){return}var c=a(this.selectElement),j=c.data("selectBox-control"),g=j.data("selectBox-options"),h=j.hasClass("selectBox-dropdown")?g:g.parent(),i=parseInt(e.offset().top-h.position().top),f=parseInt(i+e.outerHeight());if(d){h.scrollTop(e.offset().top-h.offset().top+h.scrollTop()-(h.height()/2))}else{if(i<0){h.scrollTop(e.offset().top-h.offset().top+h.scrollTop())}if(f>h.height()){h.scrollTop((e.offset().top+e.outerHeight())-h.offset().top+h.scrollTop()-h.height())}}};b.prototype.handleKeyDown=function(c){var k=a(this.selectElement),g=k.data("selectBox-control"),l=g.data("selectBox-options"),e=k.data("selectBox-settings"),f=0,h=0;if(g.hasClass("selectBox-disabled")){return}switch(c.keyCode){case 8:c.preventDefault();this.typeSearch="";break;case 9:case 27:this.hideMenus();this.removeHover();break;case 13:if(g.hasClass("selectBox-menuShowing")){this.selectOption(l.find("LI.selectBox-hover:first"),c);if(g.hasClass("selectBox-dropdown")){this.hideMenus()}}else{this.showMenu()}break;case 38:case 37:c.preventDefault();if(g.hasClass("selectBox-menuShowing")){var d=l.find(".selectBox-hover").prev("LI");f=l.find("LI:not(.selectBox-optgroup)").length;h=0;while(d.length===0||d.hasClass("selectBox-disabled")||d.hasClass("selectBox-optgroup")){d=d.prev("LI");if(d.length===0){if(e.loopOptions){d=l.find("LI:last")}else{d=l.find("LI:first")}}if(++h>=f){break}}this.addHover(d);this.selectOption(d,c);this.keepOptionInView(d)}else{this.showMenu()}break;case 40:case 39:c.preventDefault();if(g.hasClass("selectBox-menuShowing")){var j=l.find(".selectBox-hover").next("LI");f=l.find("LI:not(.selectBox-optgroup)").length;h=0;while(0===j.length||j.hasClass("selectBox-disabled")||j.hasClass("selectBox-optgroup")){j=j.next("LI");if(j.length===0){if(e.loopOptions){j=l.find("LI:first")}else{j=l.find("LI:last")}}if(++h>=f){break}}this.addHover(j);this.selectOption(j,c);this.keepOptionInView(j)}else{this.showMenu()}break}};b.prototype.handleKeyPress=function(e){var c=a(this.selectElement),f=c.data("selectBox-control"),d=f.data("selectBox-options");if(f.hasClass("selectBox-disabled")){return}switch(e.keyCode){case 9:case 27:case 13:case 38:case 37:case 40:case 39:break;default:if(!f.hasClass("selectBox-menuShowing")){this.showMenu()}e.preventDefault();clearTimeout(this.typeTimer);this.typeSearch+=String.fromCharCode(e.charCode||e.keyCode);d.find("A").each(function(){if(a(this).text().substr(0,this.typeSearch.length).toLowerCase()===this.typeSearch.toLowerCase()){this.addHover(a(this).parent());this.selectOption(a(this).parent(),e);this.keepOptionInView(a(this).parent());return!1}});this.typeTimer=setTimeout(function(){this.typeSearch=""},1000);break}};b.prototype.enable=function(){var c=a(this.selectElement);c.prop("disabled",!1);var d=c.data("selectBox-control");if(!d){return}d.removeClass("selectBox-disabled")};b.prototype.disable=function(){var c=a(this.selectElement);c.prop("disabled",!0);var d=c.data("selectBox-control");if(!d){return}d.addClass("selectBox-disabled")};b.prototype.setValue=function(f){var c=a(this.selectElement);c.val(f);f=c.val();if(null===f){f=c.children().first().val();c.val(f)}var g=c.data("selectBox-control");if(!g){return}var e=c.data("selectBox-settings"),d=g.data("selectBox-options");this.setLabel();d.find(".selectBox-selected").removeClass("selectBox-selected");d.find("A").each(function(){if(typeof(f)==="object"){for(var h=0;h<f.length;h++){if(a(this).attr("rel")==f[h]){a(this).parent().addClass("selectBox-selected")}}}else{if(a(this).attr("rel")==f){a(this).parent().addClass("selectBox-selected")}}});if(e.change){e.change.call(c)}};b.prototype.setOptions=function(m){var l=a(this.selectElement),f=l.data("selectBox-control"),d=l.data("selectBox-settings"),k;switch(typeof(m)){case"string":l.html(m);break;case"object":l.html("");for(var g in m){if(m[g]===null){continue}if(typeof(m[g])==="object"){var c=a('<optgroup label="'+g+'" />');for(var e in m[g]){c.append('<option value="'+e+'">'+m[g][e]+"</option>")}l.append(c)}else{var h=a('<option value="'+g+'">'+m[g]+"</option>");l.append(h)}}break}if(!f){return}f.data("selectBox-options").remove();k=f.hasClass("selectBox-dropdown")?"dropdown":"inline";m=this.getOptions(k);f.data("selectBox-options",m);switch(k){case"inline":f.append(m);break;case"dropdown":this.setLabel();a("BODY").append(m);break}};b.prototype.disableSelection=function(c){a(c).css("MozUserSelect","none").bind("selectstart",function(d){d.preventDefault()})};b.prototype.generateOptions=function(e,f){var c=a("<li />"),d=a("<a />");c.addClass(e.attr("class"));c.data(e.data());d.attr("rel",e.val()).text(e.text());c.append(d);if(e.attr("disabled")){c.addClass("selectBox-disabled")}if(e.attr("selected")){c.addClass("selectBox-selected")}f.append(c)};a.extend(a.fn,{selectBox:function(e,c){var d;switch(e){case"control":return a(this).data("selectBox-control");case"settings":if(!c){return a(this).data("selectBox-settings")}a(this).each(function(){a(this).data("selectBox-settings",a.extend(!0,a(this).data("selectBox-settings"),c))});break;case"options":if(undefined===c){return a(this).data("selectBox-control").data("selectBox-options")}a(this).each(function(){if(d=a(this).data("selectBox")){d.setOptions(c)}});break;case"value":if(undefined===c){return a(this).val()}a(this).each(function(){if(d=a(this).data("selectBox")){d.setValue(c)}});break;case"refresh":a(this).each(function(){if(d=a(this).data("selectBox")){d.refresh()}});break;case"enable":a(this).each(function(){if(d=a(this).data("selectBox")){d.enable(this)}});break;case"disable":a(this).each(function(){if(d=a(this).data("selectBox")){d.disable()}});break;case"destroy":a(this).each(function(){if(d=a(this).data("selectBox")){d.destroy();a(this).data("selectBox",null)}});break;case"instance":return a(this).data("selectBox");default:a(this).each(function(g,f){if(!a(f).data("selectBox")){a(f).data("selectBox",new b(f,e))}});break}return a(this)}})})(jQuery);var yith_wcwl_l10n={"ajax_url":"\/wp-admin\/admin-ajax.php","redirect_to_cart":"no","multi_wishlist":"","hide_add_button":"1","enable_ajax_loading":"1","ajax_loader_url":"https:\/\/new.thesmartsensory.com\/wp-content\/plugins\/yith-woocommerce-wishlist\/assets\/images\/ajax-loader-alt.svg","remove_from_wishlist_after_add_to_cart":"1","is_wishlist_responsive":"1","time_to_close_prettyphoto":"3000","fragments_index_glue":".","labels":{"cookie_disabled":"We are sorry, but this feature is available only if cookies on your browser are enabled.","added_to_cart_message":"<div class=\"woocommerce-notices-wrapper\"><div class=\"woocommerce-message\" role=\"alert\">Product added to cart successfully<\/div><\/div>"},"actions":{"add_to_wishlist_action":"add_to_wishlist","remove_from_wishlist_action":"remove_from_wishlist","reload_wishlist_and_adding_elem_action":"reload_wishlist_and_adding_elem","load_mobile_action":"load_mobile","delete_item_action":"delete_item","save_title_action":"save_title","save_privacy_action":"save_privacy","load_fragments":"load_fragments"}};jQuery(document).ready((function(t){function i(){void 0!==t.fn.selectBox&&t("select.selectBox").filter(":visible").not(".enhanced").selectBox().addClass("enhanced")}function e(){if(void 0!==t.prettyPhoto){var e={hook:"data-rel",social_tools:!1,theme:"pp_woocommerce",horizontal_padding:20,opacity:.8,deeplinking:!1,overlay_gallery:!1,default_width:500,changepicturecallback:function(){i(),t(".wishlist-select").filter(":visible").change(),t(document).trigger("yith_wcwl_popup_opened",[this])},markup:'<div class="pp_pic_holder"><div class="ppt">&nbsp;</div><div class="pp_top"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div><div class="pp_content_container"><div class="pp_left"><div class="pp_right"><div class="pp_content"><div class="pp_loaderIcon"></div><div class="pp_fade"><a href="#" class="pp_expand" title="Expand the image">Expand</a><div class="pp_hoverContainer"><a class="pp_next" href="#">next</a><a class="pp_previous" href="#">previous</a></div><div id="pp_full_res"></div><div class="pp_details"><a class="pp_close" href="#">Close</a></div></div></div></div></div></div><div class="pp_bottom"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div></div><div class="pp_overlay yith-wcwl-overlay"></div>'};t('a[data-rel^="prettyPhoto[add_to_wishlist_"]').add('a[data-rel="prettyPhoto[ask_an_estimate]"]').add('a[data-rel="prettyPhoto[create_wishlist]"]').unbind("click").prettyPhoto(e),t('a[data-rel="prettyPhoto[move_to_another_wishlist]"]').on("click",(function(){var i=t(this),e=t("#move_to_another_wishlist").find("form"),a=e.find(".row-id"),n=i.closest("[data-row-id]").data("row-id");a.length&&a.remove(),e.append('<input type="hidden" name="row_id" class="row-id" value="'+n+'"/>')})).prettyPhoto(e);var a=function(i,e){if(void 0!==i.classList&&i.classList.contains("yith-wcwl-overlay")){var a="remove"===e?"removeClass":"addClass";t("body")[a]("yith-wcwl-with-pretty-photo")}},n=function(t){a(t,"add")},o=function(t){a(t,"remove")};new MutationObserver((function(t){for(var i in t){var e=t[i];"childList"===e.type&&(void 0!==e.addedNodes&&e.addedNodes.forEach(n),void 0!==e.removedNodes&&e.removedNodes.forEach(o))}})).observe(document.body,{childList:!0})}}function a(){t(".wishlist_table").find('.product-checkbox input[type="checkbox"]').off("change").on("change",(function(){var i=t(this);i.parent().removeClass("checked").removeClass("unchecked").addClass(i.is(":checked")?"checked":"unchecked")})).trigger("change")}function n(){t(".add_to_cart").filter("[data-icon]").not(".icon-added").each((function(){var i,e=t(this),a=e.data("icon");i=a.match(/[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)?/gi)?t("<img/>",{src:a}):t("<i/>",{class:"fa "+a}),e.prepend(i).addClass("icon-added")}))}function o(){i(),e(),a(),n(),d(),s(),_(),l(),c(),r(),t(document).trigger("yith_wcwl_init_after_ajax")}function s(){yith_wcwl_l10n.enable_tooltip&&t(".yith-wcwl-add-to-wishlist").find("[data-title]").each((function(){var i=t(this);i.hasClass("tooltip-added")||(i.on("mouseenter",(function(){var i,e=t(this),a=null,n=e.outerWidth(),o=0;a=t("<span>",{class:"yith-wcwl-tooltip",text:e.data("title")}),e.append(a),i=a.outerWidth()+6,a.outerWidth(i),o=(n-i)/2,a.css({left:o.toFixed(0)+"px"}).fadeIn(200),e.addClass("with-tooltip")})).on("mouseleave",(function(){var i=t(this);i.find(".yith-wcwl-tooltip").fadeOut(200,(function(){i.removeClass("with-tooltip").find(".yith-wcwl-tooltip").remove()}))})),i.addClass("tooltip-added"))}))}function d(){t(".yith-wcwl-add-button").filter(".with-dropdown").on("mouseleave",(function(){var i=t(this).find(".yith-wcwl-dropdown");i.length&&i.fadeOut(200)})).children("a").on("mouseenter",(function(){var i=t(this).closest(".with-dropdown"),e=i.find(".yith-wcwl-dropdown");e.length&&e.children().length&&i.find(".yith-wcwl-dropdown").fadeIn(200)}))}function l(){void 0!==yith_wcwl_l10n.enable_drag_n_drop&&yith_wcwl_l10n.enable_drag_n_drop&&t(".wishlist_table").filter(".sortable").not(".no-interactions").each((function(){var i=t(this),e=!1;i.sortable({items:"[data-row-id]",scroll:!0,helper:function(i,e){return e.children().each((function(){t(this).width(t(this).width())})),e},update:function(){var a=i.find("[data-row-id]"),n=[],o=0;a.length&&(e&&e.abort(),a.each((function(){var i=t(this);i.find('input[name*="[position]"]').val(o++),n.push(i.data("row-id"))})),e=t.ajax({data:{action:yith_wcwl_l10n.actions.sort_wishlist_items,context:"frontend",positions:n,wishlist_token:i.data("token"),page:i.data("page"),per_page:i.data("per-page")},method:"POST",url:yith_wcwl_l10n.ajax_url}))}})}))}function c(){var i,e;t(".wishlist_table").on("change",".product-quantity :input",(function(){var a=t(this),n=a.closest("[data-row-id]"),o=n.data("row-id"),s=a.closest(".wishlist_table"),d=s.data("token");clearTimeout(e),n.find(".add_to_cart").attr("data-quantity",a.val()),e=setTimeout((function(){i&&i.abort(),i=t.ajax({beforeSend:function(){b(s)},complete:function(){x(s)},data:{action:yith_wcwl_l10n.actions.update_item_quantity,context:"frontend",product_id:o,wishlist_token:d,quantity:a.val()},method:"POST",url:yith_wcwl_l10n.ajax_url})}),1e3)}))}function r(){t(".copy-trigger").on("click",(function(){var i=t(".copy-target");if(i.length>0)if(i.is("input"))S()?i[0].setSelectionRange(0,9999):i.select(),document.execCommand("copy");else{var e=t("<input/>",{val:i.text(),type:"text"});t("body").append(e),S()?e[0].setSelectionRange(0,9999):e.select(),document.execCommand("copy"),e.remove()}}))}function _(){t(".wishlist_table").filter(".images_grid").not(".enhanced").on("click","[data-row-id] .product-thumbnail a",(function(i){var e=t(this).closest("[data-row-id]"),a=e.siblings("[data-row-id]"),n=e.find(".item-details");i.preventDefault(),n.length&&(a.removeClass("show"),e.toggleClass("show"))})).on("click","[data-row-id] a.close",(function(i){var e=t(this).closest("[data-row-id]"),a=e.find(".item-details");i.preventDefault(),a.length&&e.removeClass("show")})).on("click","[data-row-id] a.remove_from_wishlist",(function(i){var e=t(this);return i.stopPropagation(),w(e),!1})).addClass("enhanced"),t(document).on("click",(function(i){t(i.target).closest("[data-row-id]").length||t(".wishlist_table").filter(".images_grid").find(".show").removeClass("show")})).on("added_to_cart",(function(){t(".wishlist_table").filter(".images_grid").find(".show").removeClass("show")}))}function h(i,e,a){i.action=yith_wcwl_l10n.actions.move_to_another_wishlist_action,i.context="frontend",""!==i.wishlist_token&&""!==i.destination_wishlist_token&&""!==i.item_id&&t.ajax({beforeSend:e,url:yith_wcwl_l10n.ajax_url,data:i,dataType:"json",method:"post",success:function(e){a(e),o(),t("body").trigger("moved_to_another_wishlist",[t(this),i.item_id])}})}function w(i){var e=i.parents(".cart.wishlist_table"),a=i.parents("[data-row-id]"),n=a.data("row-id"),s=e.data("id"),d=e.data("token"),l={action:yith_wcwl_l10n.actions.remove_from_wishlist_action,context:"frontend",remove_from_wishlist:n,wishlist_id:s,wishlist_token:d,fragments:j(n)};t.ajax({beforeSend:function(){b(e)},complete:function(){x(e)},data:l,method:"post",success:function(e){void 0!==e.fragments&&T(e.fragments),o(),t("body").trigger("removed_from_wishlist",[i,a])},url:yith_wcwl_l10n.ajax_url})}function f(i){var e=t(this),a=e.closest(".wishlist_table"),n=null;i.preventDefault(),(n=a.length?e.closest("[data-wishlist-id]").find(".wishlist-title"):e.parents(".wishlist-title")).next().show().find('input[type="text"]').focus(),n.hide()}function p(i){var e=t(this);i.preventDefault(),e.parents(".hidden-title-form").hide(),e.parents(".hidden-title-form").prev().show()}function u(i){var e,a=t(this),n=a.closest(".hidden-title-form"),o=a.closest("[data-wishlist-id]").data("wishlist-id"),s=n.find('input[type="text"]'),d=s.val();if(i.preventDefault(),!d)return n.addClass("woocommerce-invalid"),void s.focus();e={action:yith_wcwl_l10n.actions.save_title_action,context:"frontend",wishlist_id:o,title:d,fragments:j()},t.ajax({type:"POST",url:yith_wcwl_l10n.ajax_url,data:e,dataType:"json",beforeSend:function(){b(n)},complete:function(){x(n)},success:function(t){var i=t.fragments;t.result?(n.hide(),n.prev().find(".wishlist-anchor").text(d).end().show()):(n.addClass("woocommerce-invalid"),s.focus()),void 0!==i&&T(i)}})}function m(){var i=t(this),e=i.val(),a=i.closest("[data-wishlist-id]").data("wishlist-id"),n={action:yith_wcwl_l10n.actions.save_privacy_action,context:"frontend",wishlist_id:a,privacy:e,fragments:j()};t.ajax({type:"POST",url:yith_wcwl_l10n.ajax_url,data:n,dataType:"json",success:function(t){var i=t.fragments;void 0!==i&&T(i)}})}function v(i){if(void 0!==t.prettyPhoto&&void 0!==t.prettyPhoto.close)if(void 0!==i){var e=t(".pp_content_container"),a=e.find(".pp_content"),n=e.find(".yith-wcwl-popup-form"),o=n.closest(".pp_pic_holder");if(n.length){var s=t("<div/>",{class:"yith-wcwl-popup-feedback"});s.append(t("<i/>",{class:"fa fa-check heading-icon"})),s.append(t("<p/>",{class:"feedback",html:i})),s.css("display","none"),a.css("height","auto"),n.after(s),n.fadeOut(200,(function(){s.fadeIn()})),o.addClass("feedback"),o.css("left",t(window).innerWidth()/2-o.outerWidth()/2+"px"),(void 0===yith_wcwl_l10n.auto_close_popup||yith_wcwl_l10n.auto_close_popup)&&setTimeout(v,yith_wcwl_l10n.popup_timeout)}}else try{t.prettyPhoto.close()}catch(t){}}function g(i){var e=t("#yith-wcwl-popup-message"),a=t("#yith-wcwl-message"),n=void 0!==yith_wcwl_l10n.popup_timeout?yith_wcwl_l10n.popup_timeout:3e3;(void 0===yith_wcwl_l10n.enable_notices||yith_wcwl_l10n.enable_notices)&&(a.html(i),e.css("margin-left","-"+t(e).width()+"px").fadeIn(),window.setTimeout((function(){e.fadeOut()}),n))}function y(i){var e=t("select.wishlist-select"),a=t("ul.yith-wcwl-dropdown");e.each((function(){var e=t(this),a=e.find("option"),n=a.filter('[value="new"]');a.not(n).remove(),t.each(i,(function(i,a){t("<option>",{value:a.id,html:a.wishlist_name}).appendTo(e)})),e.append(n)})),a.each((function(){var e=t(this),a=e.find("li"),n=e.closest(".yith-wcwl-add-button").children("a.add_to_wishlist"),o=n.attr("data-product-id"),s=n.attr("data-product-type");a.remove(),t.each(i,(function(i,a){a.default||t("<li>").append(t("<a>",{rel:"nofollow",html:a.wishlist_name,class:"add_to_wishlist",href:a.add_to_this_wishlist_url,"data-product-id":o,"data-product-type":s,"data-wishlist-id":a.id})).appendTo(e)}))}))}function b(i){void 0!==t.fn.block&&i.fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent url("+yith_wcwl_l10n.ajax_loader_url+") no-repeat center",backgroundSize:"40px 40px",opacity:1}})}function x(i){void 0!==t.fn.unblock&&i.stop(!0).css("opacity","1").unblock()}function k(){if(navigator.cookieEnabled)return!0;document.cookie="cookietest=1";var t=-1!==document.cookie.indexOf("cookietest=");return document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}function j(i){var e={},a=null;return i?"object"==typeof i?(a=(i=t.extend({fragments:null,s:"",container:t(document),firstLoad:!1},i)).fragments?i.fragments:i.container.find(".wishlist-fragment"),i.s&&(a=a.not("[data-fragment-ref]").add(a.filter('[data-fragment-ref="'+i.s+'"]'))),i.firstLoad&&(a=a.filter(".on-first-load"))):(a=t(".wishlist-fragment"),"string"!=typeof i&&"number"!=typeof i||(a=a.not("[data-fragment-ref]").add(a.filter('[data-fragment-ref="'+i+'"]')))):a=t(".wishlist-fragment"),a.each((function(){var i=t(this),a=i.attr("class").split(" ").filter(t=>t.length&&"exists"!==t).join(yith_wcwl_l10n.fragments_index_glue);e[a]=i.data("fragment-options")})),e}function C(i){var e=j(i=t.extend({firstLoad:!0},i));e&&t.ajax({data:{action:yith_wcwl_l10n.actions.load_fragments,context:"frontend",fragments:e},method:"post",success:function(a){void 0!==a.fragments&&(T(a.fragments),o(),t(document).trigger("yith_wcwl_fragments_loaded",[e,a.fragments,i.firstLoad]))},url:yith_wcwl_l10n.ajax_url})}function T(i){t.each(i,(function(i,e){var a="."+i.split(yith_wcwl_l10n.fragments_index_glue).filter(t=>t.length&&"exists"!==t).join("."),n=t(a),o=t(e).filter(a);o.length||(o=t(e).find(a)),n.length&&o.length&&n.replaceWith(o)}))}function S(){return navigator.userAgent.match(/ipad|iphone/i)}function P(t){return!0===t||"yes"===t||"1"===t||1===t}t(document).on("yith_wcwl_init",(function(){var S=t(this),O="undefined"!=typeof wc_add_to_cart_params&&null!==wc_add_to_cart_params?wc_add_to_cart_params.cart_redirect_after_add:"";S.on("click",".add_to_wishlist",(function(i){var e,a=t(this),n=a.attr("data-product-id"),s=t(".add-to-wishlist-"+n),d={action:yith_wcwl_l10n.actions.add_to_wishlist_action,context:"frontend",add_to_wishlist:n,product_type:a.data("product-type"),wishlist_id:a.data("wishlist-id"),fragments:j(n)};if((e=t(document).triggerHandler("yith_wcwl_add_to_wishlist_data",[a,d]))&&(d=e),i.preventDefault(),jQuery(document.body).trigger("adding_to_wishlist"),yith_wcwl_l10n.multi_wishlist&&yith_wcwl_l10n.modal_enable){var l=a.parents(".yith-wcwl-popup-footer").prev(".yith-wcwl-popup-content"),c=l.find(".wishlist-select"),r=l.find(".wishlist-name"),_=l.find(".wishlist-visibility").filter(":checked");if(d.wishlist_id=c.is(":visible")?c.val():"new",d.wishlist_name=r.val(),d.wishlist_visibility=_.val(),"new"===d.wishlist_id&&!d.wishlist_name)return r.closest("p").addClass("woocommerce-invalid"),!1;r.closest("p").removeClass("woocommerce-invalid")}if(k())return t.ajax({type:"POST",url:yith_wcwl_l10n.ajax_url,data:d,dataType:"json",beforeSend:function(){b(a)},complete:function(){x(a)},success:function(i){var e=i.result,n=i.message;yith_wcwl_l10n.multi_wishlist?(v(n),void 0!==i.user_wishlists&&y(i.user_wishlists)):g(n),"true"!==e&&"exists"!==e||(void 0!==i.fragments&&T(i.fragments),yith_wcwl_l10n.multi_wishlist&&!yith_wcwl_l10n.hide_add_button||s.find(".yith-wcwl-add-button").remove(),s.addClass("exists")),o(),t("body").trigger("added_to_wishlist",[a,s])}}),!1;window.alert(yith_wcwl_l10n.labels.cookie_disabled)})),S.on("click",".wishlist_table .remove_from_wishlist",(function(i){var e=t(this);return i.preventDefault(),w(e),!1})),S.on("adding_to_cart","body",(function(t,i,e){void 0!==i&&void 0!==e&&i.closest(".wishlist_table").length&&(e.remove_from_wishlist_after_add_to_cart=i.closest("[data-row-id]").data("row-id"),e.wishlist_id=i.closest(".wishlist_table").data("id"),"undefined"!=typeof wc_add_to_cart_params&&(wc_add_to_cart_params.cart_redirect_after_add=yith_wcwl_l10n.redirect_to_cart),"undefined"!=typeof yith_wccl_general&&(yith_wccl_general.cart_redirect=P(yith_wcwl_l10n.redirect_to_cart)))})),S.on("added_to_cart","body",(function(t,i,e,a){if(void 0!==a&&a.closest(".wishlist_table").length){"undefined"!=typeof wc_add_to_cart_params&&(wc_add_to_cart_params.cart_redirect_after_add=O),"undefined"!=typeof yith_wccl_general&&(yith_wccl_general.cart_redirect=P(O));var n=a.closest("[data-row-id]"),o=n.closest(".wishlist-fragment").data("fragment-options");a.removeClass("added"),n.find(".added_to_cart").remove(),yith_wcwl_l10n.remove_from_wishlist_after_add_to_cart&&o.is_user_owner&&n.remove()}})),S.on("added_to_cart","body",(function(){var i=t(".woocommerce-message");0===i.length?t("#yith-wcwl-form").prepend(yith_wcwl_l10n.labels.added_to_cart_message):i.fadeOut(300,(function(){t(this).replaceWith(yith_wcwl_l10n.labels.added_to_cart_message).fadeIn()}))})),S.on("cart_page_refreshed","body",o),S.on("click",".show-title-form",f),S.on("click",".wishlist-title-with-form h2",f),S.on("click",".remove_from_all_wishlists",(function(i){var e=t(this),a=e.attr("data-product-id"),n=e.data("wishlist-id"),s=e.closest(".content"),d={action:yith_wcwl_l10n.actions.remove_from_all_wishlists,context:"frontend",prod_id:a,wishlist_id:n,fragments:j(a)};i.preventDefault(),t.ajax({beforeSend:function(){b(s)},complete:function(){x(s)},data:d,dataType:"json",method:"post",success:function(t){void 0!==t.fragments&&T(t.fragments),o()},url:yith_wcwl_l10n.ajax_url})})),S.on("click",".hide-title-form",p),S.on("click",".save-title-form",u),S.on("change",".wishlist_manage_table .wishlist-visibility",m),S.on("change",".change-wishlist",(function(){var i=t(this),e=i.parents(".cart.wishlist_table"),a=e.data("token"),n=i.parents("[data-row-id]").data("row-id");h({wishlist_token:a,destination_wishlist_token:i.val(),item_id:n,fragments:j()},(function(){b(e)}),(function(t){void 0!==t.fragments&&T(t.fragments),x(e)}))})),S.on("click",".yith-wcwl-popup-footer .move_to_wishlist",(function(){var i=t(this),e=i.attr("data-product-id"),a=i.data("origin-wishlist-id"),n=i.closest("form"),s=n.find(".wishlist-select").val(),d=n.find(".wishlist-name"),l=d.val(),c=n.find(".wishlist-visibility").filter(":checked").val();if("new"===s&&!l)return d.closest("p").addClass("woocommerce-invalid"),!1;d.closest("p").removeClass("woocommerce-invalid"),h({wishlist_token:a,destination_wishlist_token:s,item_id:e,wishlist_name:l,wishlist_visibility:c,fragments:j(e)},(function(){b(i)}),(function(t){var e=t.message;yith_wcwl_l10n.multi_wishlist?(v(e),void 0!==t.user_wishlists&&y(t.user_wishlists)):g(e),void 0!==t.fragments&&T(t.fragments),o(),x(i)}))})),S.on("click",".delete_item",(function(){var i=t(this),e=i.attr("data-product-id"),a=i.data("item-id"),n=t(".add-to-wishlist-"+e),s={action:yith_wcwl_l10n.actions.delete_item_action,context:"frontend",item_id:a,fragments:j(e)};return t.ajax({url:yith_wcwl_l10n.ajax_url,data:s,dataType:"json",beforeSend:function(){b(i)},complete:function(){x(i)},method:"post",success:function(e){var a=e.fragments,s=e.message;yith_wcwl_l10n.multi_wishlist&&v(s),i.closest(".yith-wcwl-remove-button").length||g(s),void 0!==a&&T(a),o(),t("body").trigger("removed_from_wishlist",[i,n])}}),!1})),S.on("change",".yith-wcwl-popup-content .wishlist-select",(function(){var i=t(this);"new"===i.val()?i.parents(".yith-wcwl-first-row").next(".yith-wcwl-second-row").show():i.parents(".yith-wcwl-first-row").next(".yith-wcwl-second-row").hide()})),S.on("change","#bulk_add_to_cart",(function(){var i=t(this),e=i.closest(".wishlist_table").find("[data-row-id]").find('input[type="checkbox"]:not(:disabled)');i.is(":checked")?e.attr("checked","checked").change():e.removeAttr("checked").change()})),S.on("submit",".wishlist-ask-an-estimate-popup",(function(){var i=t(this),e=i.closest("form"),a=i.closest(".pp_content"),n=e.serializeArray().reduce((t,i)=>(t[i.name]=i.value,t),{});return n.action=yith_wcwl_l10n.actions.ask_an_estimate,n.context="frontend",t.ajax({beforeSend:function(){b(e)},complete:function(){x(e)},data:n,dataType:"json",method:"post",success:function(i){if(void 0!==i.result&&i.result){var n=i.template;void 0!==n&&(e.replaceWith(n),a.css("height","auto"),setTimeout(v,yith_wcwl_l10n.time_to_close_prettyphoto))}else void 0!==i.message&&(e.find(".woocommerce-error").remove(),e.find(".popup-description").after(t("<div>",{text:i.message,class:"woocommerce-error"})))},url:yith_wcwl_l10n.ajax_url}),!1})),S.on("click",".yith-wfbt-add-wishlist",(function(i){i.preventDefault();var e=t(this),a=t("#yith-wcwl-form");t("html, body").animate({scrollTop:a.offset().top},500),function(i,e){var a=i.attr("data-product-id"),n=t(document).find(".cart.wishlist_table"),s=n.data("pagination"),d=n.data("per-page"),l=n.data("id"),c=n.data("token"),r={action:yith_wcwl_l10n.actions.reload_wishlist_and_adding_elem_action,context:"frontend",pagination:s,per_page:d,wishlist_id:l,wishlist_token:c,add_to_wishlist:a,product_type:i.data("product-type")};if(!k())return void window.alert(yith_wcwl_l10n.labels.cookie_disabled);t.ajax({type:"POST",url:yith_wcwl_l10n.ajax_url,data:r,dataType:"html",beforeSend:function(){b(n)},complete:function(){x(n)},success:function(i){var a=t(i),n=a.find("#yith-wcwl-form"),s=a.find(".yith-wfbt-slider-wrapper");e.replaceWith(n),t(".yith-wfbt-slider-wrapper").replaceWith(s),o(),t(document).trigger("yith_wcwl_reload_wishlist_from_frequently")}})}(e,a)})),S.on("submit",".yith-wcwl-popup-form",(function(){return!1})),S.on("yith_infs_added_elem",(function(){e()})),S.on("found_variation",(function(i,e){var a=t(i.target).data("product_id"),n=e.variation_id,o=t('[data-product-id="'+a+'"]').add('[data-original-product-id="'+a+'"]'),s=o.closest(".wishlist-fragment").filter(":visible");a&&n&&o.length&&(o.each((function(){var i,e=t(this),o=e.closest(".yith-wcwl-add-to-wishlist");e.attr("data-original-product-id",a),e.attr("data-product-id",n),o.length&&(void 0!==(i=o.data("fragment-options"))&&(i.product_id=n,o.data("fragment-options",i)),o.removeClass((function(t,i){return i.match(/add-to-wishlist-\S+/g).join(" ")})).addClass("add-to-wishlist-"+n).attr("data-fragment-ref",n))})),b(s),C({fragments:s,firstLoad:!1}))})),S.on("reset_data",(function(i){var e=t(i.target).data("product_id"),a=t('[data-original-product-id="'+e+'"]'),n=a.closest(".wishlist-fragment").filter(":visible");e&&a.length&&(a.each((function(){var i,a=t(this),n=a.closest(".yith-wcwl-add-to-wishlist"),o=a.attr("data-product-id");a.attr("data-product-id",e),a.attr("data-original-product-id",""),n.length&&(void 0!==(i=n.data("fragment-options"))&&(i.product_id=e,n.data("fragment-options",i)),n.removeClass("add-to-wishlist-"+o).addClass("add-to-wishlist-"+e).attr("data-fragment-ref",e))})),b(n),C({fragments:n,firstLoad:!1}))})),S.on("yith_wcwl_reload_fragments",C),S.on("yith_infs_added_elem",(function(t,i){C({container:i,firstLoad:!1})})),S.on("yith_wcwl_fragments_loaded",(function(i,e,a,n){n&&t(".variations_form").find(".variations select").last().change()})),S.on("click",".yith-wcwl-popup-feedback .close-popup",(function(t){t.preventDefault(),v()})),function(){if(void 0!==yith_wcwl_l10n.enable_notices&&!yith_wcwl_l10n.enable_notices)return;if(t(".yith-wcwl-add-to-wishlist").length&&!t("#yith-wcwl-popup-message").length){var i=t("<div>").attr("id","yith-wcwl-message"),e=t("<div>").attr("id","yith-wcwl-popup-message").html(i).hide();t("body").prepend(e)}}(),s(),d(),l(),c(),_(),t(document).on("click",".show-tab",(function(i){var e=t(this),a=e.closest(".yith-wcwl-popup-content"),n=e.data("tab"),o=a.find(".tab").filter("."+n);if(i.preventDefault(),!o.length)return!1;e.addClass("active").siblings(".show-tab").removeClass("active"),o.show().siblings(".tab").hide(),"create"===n?a.prepend('<input type="hidden" id="new_wishlist_selector" class="wishlist-select" value="new">'):a.find("#new_wishlist_selector").remove()})),t(document).on("change",".wishlist-select",(function(){var i=t(this),e=i.closest(".yith-wcwl-popup-content"),a=i.closest(".tab"),n=e.find(".tab.create"),o=e.find(".show-tab"),s=o.filter('[data-tab="create"]');"new"===i.val()&&n.length&&(a.hide(),n.show(),o.removeClass("active"),s.addClass("active"),i.find("option").removeProp("selected"),i.change())})),i(),a(),e(),n(),function(){var i=!1;if(!yith_wcwl_l10n.is_wishlist_responsive)return;t(window).on("resize",(function(){var e=t(".wishlist_table.responsive"),a=e.is(".mobile"),n=window.matchMedia("(max-width: 768px)"),s=e.closest("form"),d=s.attr("class"),l=s.data("fragment-options"),c={},r=!1;e.length&&(n.matches&&e&&!a?(l.is_mobile="yes",r=!0):!n.matches&&e&&a&&(l.is_mobile="no",r=!0),r&&(i&&i.abort(),c[d.split(" ").join(yith_wcwl_l10n.fragments_index_glue)]=l,i=t.ajax({beforeSend:function(){b(e)},complete:function(){x(e)},data:{action:yith_wcwl_l10n.actions.load_mobile_action,context:"frontend",fragments:c},method:"post",success:function(i){void 0!==i.fragments&&(T(i.fragments),o(),t(document).trigger("yith_wcwl_responsive_template",[a,i.fragments]))},url:yith_wcwl_l10n.ajax_url})))}))}(),r(),yith_wcwl_l10n.enable_ajax_loading&&C()})).trigger("yith_wcwl_init")}));var wpcf7={"apiSettings":{"root":"https:\/\/new.thesmartsensory.com\/wp-json\/contact-form-7\/v1","namespace":"contact-form-7\/v1"},"cached":"1"};(function($){'use strict';if(typeof wpcf7==='undefined'||wpcf7===null){return}
wpcf7=$.extend({cached:0,inputs:[]},wpcf7);$(function(){wpcf7.supportHtml5=(function(){var features={};var input=document.createElement('input');features.placeholder='placeholder' in input;var inputTypes=['email','url','tel','number','range','date'];$.each(inputTypes,function(index,value){input.setAttribute('type',value);features[value]=input.type!=='text'});return features})();$('div.wpcf7 > form').each(function(){var $form=$(this);wpcf7.initForm($form);if(wpcf7.cached){wpcf7.refill($form)}})});wpcf7.getId=function(form){return parseInt($('input[name="_wpcf7"]',form).val(),10)};wpcf7.initForm=function(form){var $form=$(form);wpcf7.setStatus($form,'init');$form.submit(function(event){if(!wpcf7.supportHtml5.placeholder){$('[placeholder].placeheld',$form).each(function(i,n){$(n).val('').removeClass('placeheld')})}
if(typeof window.FormData==='function'){wpcf7.submit($form);event.preventDefault()}});$('.wpcf7-submit',$form).after('<span class="ajax-loader"></span>');wpcf7.toggleSubmit($form);$form.on('click','.wpcf7-acceptance',function(){wpcf7.toggleSubmit($form)});$('.wpcf7-exclusive-checkbox',$form).on('click','input:checkbox',function(){var name=$(this).attr('name');$form.find('input:checkbox[name="'+name+'"]').not(this).prop('checked',!1)});$('.wpcf7-list-item.has-free-text',$form).each(function(){var $freetext=$(':input.wpcf7-free-text',this);var $wrap=$(this).closest('.wpcf7-form-control');if($(':checkbox, :radio',this).is(':checked')){$freetext.prop('disabled',!1)}else{$freetext.prop('disabled',!0)}
$wrap.on('change',':checkbox, :radio',function(){var $cb=$('.has-free-text',$wrap).find(':checkbox, :radio');if($cb.is(':checked')){$freetext.prop('disabled',!1).focus()}else{$freetext.prop('disabled',!0)}})});if(!wpcf7.supportHtml5.placeholder){$('[placeholder]',$form).each(function(){$(this).val($(this).attr('placeholder'));$(this).addClass('placeheld');$(this).focus(function(){if($(this).hasClass('placeheld')){$(this).val('').removeClass('placeheld')}});$(this).blur(function(){if(''===$(this).val()){$(this).val($(this).attr('placeholder'));$(this).addClass('placeheld')}})})}
if(wpcf7.jqueryUi&&!wpcf7.supportHtml5.date){$form.find('input.wpcf7-date[type="date"]').each(function(){$(this).datepicker({dateFormat:'yy-mm-dd',minDate:new Date($(this).attr('min')),maxDate:new Date($(this).attr('max'))})})}
if(wpcf7.jqueryUi&&!wpcf7.supportHtml5.number){$form.find('input.wpcf7-number[type="number"]').each(function(){$(this).spinner({min:$(this).attr('min'),max:$(this).attr('max'),step:$(this).attr('step')})})}
wpcf7.resetCounter($form);$form.on('change','.wpcf7-validates-as-url',function(){var val=$.trim($(this).val());if(val&&!val.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==val.indexOf('.')){val=val.replace(/^\/+/,'');val='http://'+val}
$(this).val(val)})};wpcf7.submit=function(form){if(typeof window.FormData!=='function'){return}
var $form=$(form);$('.ajax-loader',$form).addClass('is-active');wpcf7.clearResponse($form);var formData=new FormData($form.get(0));var detail={id:$form.closest('div.wpcf7').attr('id'),status:'init',inputs:[],formData:formData};$.each($form.serializeArray(),function(i,field){if('_wpcf7'==field.name){detail.contactFormId=field.value}else if('_wpcf7_version'==field.name){detail.pluginVersion=field.value}else if('_wpcf7_locale'==field.name){detail.contactFormLocale=field.value}else if('_wpcf7_unit_tag'==field.name){detail.unitTag=field.value}else if('_wpcf7_container_post'==field.name){detail.containerPostId=field.value}else if(field.name.match(/^_/)){}else{detail.inputs.push(field)}});wpcf7.triggerEvent($form.closest('div.wpcf7'),'beforesubmit',detail);var ajaxSuccess=function(data,status,xhr,$form){detail.id=$(data.into).attr('id');detail.status=data.status;detail.apiResponse=data;switch(data.status){case 'init':wpcf7.setStatus($form,'init');break;case 'validation_failed':$.each(data.invalid_fields,function(i,n){$(n.into,$form).each(function(){wpcf7.notValidTip(this,n.message);$('.wpcf7-form-control',this).addClass('wpcf7-not-valid');$('[aria-invalid]',this).attr('aria-invalid','true')})});wpcf7.setStatus($form,'invalid');wpcf7.triggerEvent(data.into,'invalid',detail);break;case 'acceptance_missing':wpcf7.setStatus($form,'unaccepted');wpcf7.triggerEvent(data.into,'unaccepted',detail);break;case 'spam':wpcf7.setStatus($form,'spam');wpcf7.triggerEvent(data.into,'spam',detail);break;case 'aborted':wpcf7.setStatus($form,'aborted');wpcf7.triggerEvent(data.into,'aborted',detail);break;case 'mail_sent':wpcf7.setStatus($form,'sent');wpcf7.triggerEvent(data.into,'mailsent',detail);break;case 'mail_failed':wpcf7.setStatus($form,'failed');wpcf7.triggerEvent(data.into,'mailfailed',detail);break;default:wpcf7.setStatus($form,'custom-'+data.status.replace(/[^0-9a-z]+/i,'-'))}
wpcf7.refill($form,data);wpcf7.triggerEvent(data.into,'submit',detail);if('mail_sent'==data.status){$form.each(function(){this.reset()});wpcf7.toggleSubmit($form);wpcf7.resetCounter($form)}
if(!wpcf7.supportHtml5.placeholder){$form.find('[placeholder].placeheld').each(function(i,n){$(n).val($(n).attr('placeholder'))})}
$('.wpcf7-response-output',$form).html('').append(data.message).slideDown('fast');$('.screen-reader-response',$form.closest('.wpcf7')).each(function(){var $response=$(this);$response.html('').append(data.message);if(data.invalid_fields){var $invalids=$('<ul></ul>');$.each(data.invalid_fields,function(i,n){if(n.idref){var $li=$('<li></li>').append($('<a></a>').attr('href','#'+n.idref).append(n.message))}else{var $li=$('<li></li>').append(n.message)}
$invalids.append($li)});$response.append($invalids)}
$response.focus()});if(data.posted_data_hash){$form.find('input[name="_wpcf7_posted_data_hash"]').first().val(data.posted_data_hash)}};$.ajax({type:'POST',url:wpcf7.apiSettings.getRoute('/contact-forms/'+wpcf7.getId($form)+'/feedback'),data:formData,dataType:'json',processData:!1,contentType:!1}).done(function(data,status,xhr){ajaxSuccess(data,status,xhr,$form);$('.ajax-loader',$form).removeClass('is-active')}).fail(function(xhr,status,error){var $e=$('<div class="ajax-error"></div>').text(error.message);$form.after($e)})};wpcf7.triggerEvent=function(target,name,detail){var event=new CustomEvent('wpcf7'+name,{bubbles:!0,detail:detail});$(target).get(0).dispatchEvent(event)};wpcf7.setStatus=function(form,status){var $form=$(form);var prevStatus=$form.data('status');$form.data('status',status);$form.addClass(status);if(prevStatus&&prevStatus!==status){$form.removeClass(prevStatus)}}
wpcf7.toggleSubmit=function(form,state){var $form=$(form);var $submit=$('input:submit',$form);if(typeof state!=='undefined'){$submit.prop('disabled',!state);return}
if($form.hasClass('wpcf7-acceptance-as-validation')){return}
$submit.prop('disabled',!1);$('.wpcf7-acceptance',$form).each(function(){var $span=$(this);var $input=$('input:checkbox',$span);if(!$span.hasClass('optional')){if($span.hasClass('invert')&&$input.is(':checked')||!$span.hasClass('invert')&&!$input.is(':checked')){$submit.prop('disabled',!0);return!1}}})};wpcf7.resetCounter=function(form){var $form=$(form);$('.wpcf7-character-count',$form).each(function(){var $count=$(this);var name=$count.attr('data-target-name');var down=$count.hasClass('down');var starting=parseInt($count.attr('data-starting-value'),10);var maximum=parseInt($count.attr('data-maximum-value'),10);var minimum=parseInt($count.attr('data-minimum-value'),10);var updateCount=function(target){var $target=$(target);var length=$target.val().length;var count=down?starting-length:length;$count.attr('data-current-value',count);$count.text(count);if(maximum&&maximum<length){$count.addClass('too-long')}else{$count.removeClass('too-long')}
if(minimum&&length<minimum){$count.addClass('too-short')}else{$count.removeClass('too-short')}};$(':input[name="'+name+'"]',$form).each(function(){updateCount(this);$(this).keyup(function(){updateCount(this)})})})};wpcf7.notValidTip=function(target,message){var $target=$(target);$('.wpcf7-not-valid-tip',$target).remove();$('<span></span>').attr({'class':'wpcf7-not-valid-tip','role':'alert','aria-hidden':'true',}).text(message).appendTo($target);if($target.is('.use-floating-validation-tip *')){var fadeOut=function(target){$(target).not(':hidden').animate({opacity:0},'fast',function(){$(this).css({'z-index':-100})})};$target.on('mouseover','.wpcf7-not-valid-tip',function(){fadeOut(this)});$target.on('focus',':input',function(){fadeOut($('.wpcf7-not-valid-tip',$target))})}};wpcf7.refill=function(form,data){var $form=$(form);var refillCaptcha=function($form,items){$.each(items,function(i,n){$form.find(':input[name="'+i+'"]').val('');$form.find('img.wpcf7-captcha-'+i).attr('src',n);var match=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);$form.find('input:hidden[name="_wpcf7_captcha_challenge_'+i+'"]').attr('value',match[1])})};var refillQuiz=function($form,items){$.each(items,function(i,n){$form.find(':input[name="'+i+'"]').val('');$form.find(':input[name="'+i+'"]').siblings('span.wpcf7-quiz-label').text(n[0]);$form.find('input:hidden[name="_wpcf7_quiz_answer_'+i+'"]').attr('value',n[1])})};if(typeof data==='undefined'){$.ajax({type:'GET',url:wpcf7.apiSettings.getRoute('/contact-forms/'+wpcf7.getId($form)+'/refill'),beforeSend:function(xhr){var nonce=$form.find(':input[name="_wpnonce"]').val();if(nonce){xhr.setRequestHeader('X-WP-Nonce',nonce)}},dataType:'json'}).done(function(data,status,xhr){if(data.captcha){refillCaptcha($form,data.captcha)}
if(data.quiz){refillQuiz($form,data.quiz)}})}else{if(data.captcha){refillCaptcha($form,data.captcha)}
if(data.quiz){refillQuiz($form,data.quiz)}}};wpcf7.clearResponse=function(form){var $form=$(form);$form.siblings('.screen-reader-response').html('');$('.wpcf7-not-valid-tip',$form).remove();$('[aria-invalid]',$form).attr('aria-invalid','false');$('.wpcf7-form-control',$form).removeClass('wpcf7-not-valid');$('.wpcf7-response-output',$form).hide().empty()};wpcf7.apiSettings.getRoute=function(path){var url=wpcf7.apiSettings.root;url=url.replace(wpcf7.apiSettings.namespace,wpcf7.apiSettings.namespace+path);return url}})(jQuery);(function(){if(typeof window.CustomEvent==="function")return!1;function CustomEvent(event,params){params=params||{bubbles:!1,cancelable:!1,detail:undefined};var evt=document.createEvent('CustomEvent');evt.initCustomEvent(event,params.bubbles,params.cancelable,params.detail);return evt}
CustomEvent.prototype=window.Event.prototype;window.CustomEvent=CustomEvent})();/*!
 * WPBakery Page Builder v6.0.0 (https://wpbakery.com)
 * Copyright 2011-2020 Michael M, WPBakery
 * License: Commercial. More details: http://go.wpbakery.com/licensing
 */
!function(a){a.flexslider=function(b,c){var d=a(b);d.vars=a.extend({},a.flexslider.defaults,c);var j,e=d.vars.namespace,f=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,g=("ontouchstart"in window||f||window.DocumentTouch&&document instanceof DocumentTouch)&&d.vars.touch,h="click touchend MSPointerUp",i="",k="vertical"===d.vars.direction,l=d.vars.reverse,m=d.vars.itemWidth>0,n="fade"===d.vars.animation,o=""!==d.vars.asNavFor,p={},q=!0;a.data(b,"flexslider",d),p={init:function(){d.animating=!1,d.currentSlide=parseInt(d.vars.startAt?d.vars.startAt:0,10),isNaN(d.currentSlide)&&(d.currentSlide=0),d.animatingTo=d.currentSlide,d.atEnd=0===d.currentSlide||d.currentSlide===d.last,d.containerSelector=d.vars.selector.substr(0,d.vars.selector.search(" ")),d.slides=a(d.vars.selector,d),d.container=a(d.containerSelector,d),d.count=d.slides.length,d.syncExists=a(d.vars.sync).length>0,"slide"===d.vars.animation&&(d.vars.animation="swing"),d.prop=k?"top":"marginLeft",d.args={},d.manualPause=!1,d.stopped=!1,d.started=!1,d.startTimeout=null,d.transitions=!d.vars.video&&!n&&d.vars.useCSS&&function(){var a=document.createElement("div"),b=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var c in b)if(void 0!==a.style[b[c]])return d.pfx=b[c].replace("Perspective","").toLowerCase(),d.prop="-"+d.pfx+"-transform",!0;return!1}(),d.ensureAnimationEnd="",""!==d.vars.controlsContainer&&(d.controlsContainer=a(d.vars.controlsContainer).length>0&&a(d.vars.controlsContainer)),""!==d.vars.manualControls&&(d.manualControls=a(d.vars.manualControls).length>0&&a(d.vars.manualControls)),d.vars.randomize&&(d.slides.sort(function(){return Math.round(Math.random())-.5}),d.container.empty().append(d.slides)),d.doMath(),d.setup("init"),d.vars.controlNav&&p.controlNav.setup(),d.vars.directionNav&&p.directionNav.setup(),d.vars.keyboard&&(1===a(d.containerSelector).length||d.vars.multipleKeyboard)&&a(document).bind("keyup",function(a){var b=a.keyCode;if(!d.animating&&(39===b||37===b)){var c=39===b?d.getTarget("next"):37===b?d.getTarget("prev"):!1;d.flexAnimate(c,d.vars.pauseOnAction)}}),d.vars.mousewheel&&d.bind("mousewheel",function(a,b){a.preventDefault();var f=0>b?d.getTarget("next"):d.getTarget("prev");d.flexAnimate(f,d.vars.pauseOnAction)}),d.vars.pausePlay&&p.pausePlay.setup(),d.vars.slideshow&&d.vars.pauseInvisible&&p.pauseInvisible.init(),d.vars.slideshow&&(d.vars.pauseOnHover&&d.hover(function(){d.manualPlay||d.manualPause||d.pause()},function(){d.manualPause||d.manualPlay||d.stopped||d.play()}),d.vars.pauseInvisible&&p.pauseInvisible.isHidden()||(d.vars.initDelay>0?d.startTimeout=setTimeout(d.play,d.vars.initDelay):d.play())),o&&p.asNav.setup(),g&&d.vars.touch&&p.touch(),(!n||n&&d.vars.smoothHeight)&&a(window).bind("resize orientationchange focus",p.resize),d.find("img").attr("draggable","false"),setTimeout(function(){d.vars.start(d)},200)},asNav:{setup:function(){d.asNav=!0,d.animatingTo=Math.floor(d.currentSlide/d.move),d.currentItem=d.currentSlide,d.slides.removeClass(e+"active-slide").eq(d.currentItem).addClass(e+"active-slide"),f?(b._slider=d,d.slides.each(function(){var b=this;b._gesture=new MSGesture,b._gesture.target=b,b.addEventListener("MSPointerDown",function(a){a.preventDefault(),a.currentTarget._gesture&&a.currentTarget._gesture.addPointer(a.pointerId)},!1),b.addEventListener("MSGestureTap",function(b){b.preventDefault();var c=a(this),e=c.index();a(d.vars.asNavFor).data("flexslider").animating||c.hasClass("active")||(d.direction=d.currentItem<e?"next":"prev",d.flexAnimate(e,d.vars.pauseOnAction,!1,!0,!0))})})):d.slides.on(h,function(b){b.preventDefault();var c=a(this),f=c.index(),g=c.offset().left-a(d).scrollLeft();0>=g&&c.hasClass(e+"active-slide")?d.flexAnimate(d.getTarget("prev"),!0):a(d.vars.asNavFor).data("flexslider").animating||c.hasClass(e+"active-slide")||(d.direction=d.currentItem<f?"next":"prev",d.flexAnimate(f,d.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){d.manualControls?p.controlNav.setupManual():p.controlNav.setupPaging()},setupPaging:function(){var f,g,b="thumbnails"===d.vars.controlNav?"control-thumbs":"control-paging",c=1;if(d.controlNavScaffold=a('<ol class="'+e+"control-nav "+e+b+'"></ol>'),d.pagingCount>1)for(var j=0;j<d.pagingCount;j++){if(g=d.slides.eq(j),f="thumbnails"===d.vars.controlNav?'<img src="'+g.attr("data-thumb")+'"/>':"<a>"+c+"</a>","thumbnails"===d.vars.controlNav&&!0===d.vars.thumbCaptions){var k=g.attr("data-thumbcaption");""!=k&&void 0!=k&&(f+='<span class="'+e+'caption">'+k+"</span>")}d.controlNavScaffold.append("<li>"+f+"</li>"),c++}d.controlsContainer?a(d.controlsContainer).append(d.controlNavScaffold):d.append(d.controlNavScaffold),p.controlNav.set(),p.controlNav.active(),d.controlNavScaffold.delegate("a, img",h,function(b){if(b.preventDefault(),""===i||i===b.type){var c=a(this),f=d.controlNav.index(c);c.hasClass(e+"active")||(d.direction=f>d.currentSlide?"next":"prev",d.flexAnimate(f,d.vars.pauseOnAction))}""===i&&(i=b.type),p.setToClearWatchedEvent()})},setupManual:function(){d.controlNav=d.manualControls,p.controlNav.active(),d.controlNav.bind(h,function(b){if(b.preventDefault(),""===i||i===b.type){var c=a(this),f=d.controlNav.index(c);c.hasClass(e+"active")||(d.direction=f>d.currentSlide?"next":"prev",d.flexAnimate(f,d.vars.pauseOnAction))}""===i&&(i=b.type),p.setToClearWatchedEvent()})},set:function(){var b="thumbnails"===d.vars.controlNav?"img":"a";d.controlNav=a("."+e+"control-nav li "+b,d.controlsContainer?d.controlsContainer:d)},active:function(){d.controlNav.removeClass(e+"active").eq(d.animatingTo).addClass(e+"active")},update:function(b,c){d.pagingCount>1&&"add"===b?d.controlNavScaffold.append(a("<li><a>"+d.count+"</a></li>")):1===d.pagingCount?d.controlNavScaffold.find("li").remove():d.controlNav.eq(c).closest("li").remove(),p.controlNav.set(),d.pagingCount>1&&d.pagingCount!==d.controlNav.length?d.update(c,b):p.controlNav.active()}},directionNav:{setup:function(){var b=a('<ul class="'+e+'direction-nav"><li><a class="'+e+'prev" href="#">'+d.vars.prevText+'</a></li><li><a class="'+e+'next" href="#">'+d.vars.nextText+"</a></li></ul>");d.controlsContainer?(a(d.controlsContainer).append(b),d.directionNav=a("."+e+"direction-nav li a",d.controlsContainer)):(d.append(b),d.directionNav=a("."+e+"direction-nav li a",d)),p.directionNav.update(),d.directionNav.bind(h,function(b){b.preventDefault();var c;(""===i||i===b.type)&&(c=a(this).hasClass(e+"next")?d.getTarget("next"):d.getTarget("prev"),d.flexAnimate(c,d.vars.pauseOnAction)),""===i&&(i=b.type),p.setToClearWatchedEvent()})},update:function(){var a=e+"disabled";1===d.pagingCount?d.directionNav.addClass(a).attr("tabindex","-1"):d.vars.animationLoop?d.directionNav.removeClass(a).removeAttr("tabindex"):0===d.animatingTo?d.directionNav.removeClass(a).filter("."+e+"prev").addClass(a).attr("tabindex","-1"):d.animatingTo===d.last?d.directionNav.removeClass(a).filter("."+e+"next").addClass(a).attr("tabindex","-1"):d.directionNav.removeClass(a).removeAttr("tabindex")}},pausePlay:{setup:function(){var b=a('<div class="'+e+'pauseplay"><a></a></div>');d.controlsContainer?(d.controlsContainer.append(b),d.pausePlay=a("."+e+"pauseplay a",d.controlsContainer)):(d.append(b),d.pausePlay=a("."+e+"pauseplay a",d)),p.pausePlay.update(d.vars.slideshow?e+"pause":e+"play"),d.pausePlay.bind(h,function(b){b.preventDefault(),(""===i||i===b.type)&&(a(this).hasClass(e+"pause")?(d.manualPause=!0,d.manualPlay=!1,d.pause()):(d.manualPause=!1,d.manualPlay=!0,d.play())),""===i&&(i=b.type),p.setToClearWatchedEvent()})},update:function(a){"play"===a?d.pausePlay.removeClass(e+"pause").addClass(e+"play").html(d.vars.playText):d.pausePlay.removeClass(e+"play").addClass(e+"pause").html(d.vars.pauseText)}},touch:function(){function r(f){d.animating?f.preventDefault():(window.navigator.msPointerEnabled||1===f.touches.length)&&(d.pause(),g=k?d.h:d.w,i=Number(new Date),o=f.touches[0].pageX,p=f.touches[0].pageY,e=m&&l&&d.animatingTo===d.last?0:m&&l?d.limit-(d.itemW+d.vars.itemMargin)*d.move*d.animatingTo:m&&d.currentSlide===d.last?d.limit:m?(d.itemW+d.vars.itemMargin)*d.move*d.currentSlide:l?(d.last-d.currentSlide+d.cloneOffset)*g:(d.currentSlide+d.cloneOffset)*g,a=k?p:o,c=k?o:p,b.addEventListener("touchmove",s,!1),b.addEventListener("touchend",t,!1))}function s(b){o=b.touches[0].pageX,p=b.touches[0].pageY,h=k?a-p:a-o,j=k?Math.abs(h)<Math.abs(o-c):Math.abs(h)<Math.abs(p-c);var f=500;(!j||Number(new Date)-i>f)&&(b.preventDefault(),!n&&d.transitions&&(d.vars.animationLoop||(h/=0===d.currentSlide&&0>h||d.currentSlide===d.last&&h>0?Math.abs(h)/g+2:1),d.setProps(e+h,"setTouch")))}function t(){if(b.removeEventListener("touchmove",s,!1),d.animatingTo===d.currentSlide&&!j&&null!==h){var k=l?-h:h,m=k>0?d.getTarget("next"):d.getTarget("prev");d.canAdvance(m)&&(Number(new Date)-i<550&&Math.abs(k)>50||Math.abs(k)>g/2)?d.flexAnimate(m,d.vars.pauseOnAction):n||d.flexAnimate(d.currentSlide,d.vars.pauseOnAction,!0)}b.removeEventListener("touchend",t,!1),a=null,c=null,h=null,e=null}function u(a){a.stopPropagation(),d.animating?a.preventDefault():(d.pause(),b._gesture.addPointer(a.pointerId),q=0,g=k?d.h:d.w,i=Number(new Date),e=m&&l&&d.animatingTo===d.last?0:m&&l?d.limit-(d.itemW+d.vars.itemMargin)*d.move*d.animatingTo:m&&d.currentSlide===d.last?d.limit:m?(d.itemW+d.vars.itemMargin)*d.move*d.currentSlide:l?(d.last-d.currentSlide+d.cloneOffset)*g:(d.currentSlide+d.cloneOffset)*g)}function v(a){a.stopPropagation();var c=a.target._slider;if(c){var d=-a.translationX,f=-a.translationY;return q+=k?f:d,h=q,j=k?Math.abs(q)<Math.abs(-d):Math.abs(q)<Math.abs(-f),a.detail===a.MSGESTURE_FLAG_INERTIA?(setImmediate(function(){b._gesture.stop()}),void 0):((!j||Number(new Date)-i>500)&&(a.preventDefault(),!n&&c.transitions&&(c.vars.animationLoop||(h=q/(0===c.currentSlide&&0>q||c.currentSlide===c.last&&q>0?Math.abs(q)/g+2:1)),c.setProps(e+h,"setTouch"))),void 0)}}function w(b){b.stopPropagation();var d=b.target._slider;if(d){if(d.animatingTo===d.currentSlide&&!j&&null!==h){var f=l?-h:h,k=f>0?d.getTarget("next"):d.getTarget("prev");d.canAdvance(k)&&(Number(new Date)-i<550&&Math.abs(f)>50||Math.abs(f)>g/2)?d.flexAnimate(k,d.vars.pauseOnAction):n||d.flexAnimate(d.currentSlide,d.vars.pauseOnAction,!0)}a=null,c=null,h=null,e=null,q=0}}var a,c,e,g,h,i,j=!1,o=0,p=0,q=0;f?(b.style.msTouchAction="none",b._gesture=new MSGesture,b._gesture.target=b,b.addEventListener("MSPointerDown",u,!1),b._slider=d,b.addEventListener("MSGestureChange",v,!1),b.addEventListener("MSGestureEnd",w,!1)):b.addEventListener("touchstart",r,!1)},resize:function(){!d.animating&&d.is(":visible")&&(m||d.doMath(),n?p.smoothHeight():m?(d.slides.width(d.computedW),d.update(d.pagingCount),d.setProps()):k?(d.viewport.height(d.h),d.setProps(d.h,"setTotal")):(d.vars.smoothHeight&&p.smoothHeight(),d.newSlides.width(d.computedW),d.setProps(d.computedW,"setTotal")))},smoothHeight:function(a){if(!k||n){var b=n?d:d.viewport;a?b.animate({height:d.slides.eq(d.animatingTo).height()},a):b.height(d.slides.eq(d.animatingTo).height())}},sync:function(b){var c=a(d.vars.sync).data("flexslider"),e=d.animatingTo;switch(b){case"animate":c.flexAnimate(e,d.vars.pauseOnAction,!1,!0);break;case"play":c.playing||c.asNav||c.play();break;case"pause":c.pause()}},uniqueID:function(b){return b.find("[id]").each(function(){var b=a(this);b.attr("id",b.attr("id")+"_clone")}),b},pauseInvisible:{visProp:null,init:function(){var a=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var b=0;b<a.length;b++)a[b]+"Hidden"in document&&(p.pauseInvisible.visProp=a[b]+"Hidden");if(p.pauseInvisible.visProp){var c=p.pauseInvisible.visProp.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(c,function(){p.pauseInvisible.isHidden()?d.startTimeout?clearTimeout(d.startTimeout):d.pause():d.started?d.play():d.vars.initDelay>0?setTimeout(d.play,d.vars.initDelay):d.play()})}},isHidden:function(){return document[p.pauseInvisible.visProp]||!1}},setToClearWatchedEvent:function(){clearTimeout(j),j=setTimeout(function(){i=""},3e3)}},d.flexAnimate=function(b,c,f,h,i){if(d.vars.animationLoop||b===d.currentSlide||(d.direction=b>d.currentSlide?"next":"prev"),o&&1===d.pagingCount&&(d.direction=d.currentItem<b?"next":"prev"),!d.animating&&(d.canAdvance(b,i)||f)&&d.is(":visible")){if(o&&h){var j=a(d.vars.asNavFor).data("flexslider");if(d.atEnd=0===b||b===d.count-1,j.flexAnimate(b,!0,!1,!0,i),d.direction=d.currentItem<b?"next":"prev",j.direction=d.direction,Math.ceil((b+1)/d.visible)-1===d.currentSlide||0===b)return d.currentItem=b,d.slides.removeClass(e+"active-slide").eq(b).addClass(e+"active-slide"),!1;d.currentItem=b,d.slides.removeClass(e+"active-slide").eq(b).addClass(e+"active-slide"),b=Math.floor(b/d.visible)}if(d.animating=!0,d.animatingTo=b,c&&d.pause(),d.vars.before(d),d.syncExists&&!i&&p.sync("animate"),d.vars.controlNav&&p.controlNav.active(),m||d.slides.removeClass(e+"active-slide").eq(b).addClass(e+"active-slide"),d.atEnd=0===b||b===d.last,d.vars.directionNav&&p.directionNav.update(),b===d.last&&(d.vars.end(d),d.vars.animationLoop||d.pause()),n)g?(d.slides.eq(d.currentSlide).css({opacity:0,zIndex:1}),d.slides.eq(b).css({opacity:1,zIndex:2}),d.wrapup(q)):(d.slides.eq(d.currentSlide).css({zIndex:1}).animate({opacity:0},d.vars.animationSpeed,d.vars.easing),d.slides.eq(b).css({zIndex:2}).animate({opacity:1},d.vars.animationSpeed,d.vars.easing,d.wrapup));else{var r,s,t,q=k?d.slides.filter(":first").height():d.computedW;m?(r=d.vars.itemMargin,t=(d.itemW+r)*d.move*d.animatingTo,s=t>d.limit&&1!==d.visible?d.limit:t):s=0===d.currentSlide&&b===d.count-1&&d.vars.animationLoop&&"next"!==d.direction?l?(d.count+d.cloneOffset)*q:0:d.currentSlide===d.last&&0===b&&d.vars.animationLoop&&"prev"!==d.direction?l?0:(d.count+1)*q:l?(d.count-1-b+d.cloneOffset)*q:(b+d.cloneOffset)*q,d.setProps(s,"",d.vars.animationSpeed),d.transitions?(d.vars.animationLoop&&d.atEnd||(d.animating=!1,d.currentSlide=d.animatingTo),d.container.unbind("webkitTransitionEnd transitionend"),d.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(d.ensureAnimationEnd),d.wrapup(q)}),clearTimeout(d.ensureAnimationEnd),d.ensureAnimationEnd=setTimeout(function(){d.wrapup(q)},d.vars.animationSpeed+100)):d.container.animate(d.args,d.vars.animationSpeed,d.vars.easing,function(){d.wrapup(q)})}d.vars.smoothHeight&&p.smoothHeight(d.vars.animationSpeed)}},d.wrapup=function(a){n||m||(0===d.currentSlide&&d.animatingTo===d.last&&d.vars.animationLoop?d.setProps(a,"jumpEnd"):d.currentSlide===d.last&&0===d.animatingTo&&d.vars.animationLoop&&d.setProps(a,"jumpStart")),d.animating=!1,d.currentSlide=d.animatingTo,d.vars.after(d)},d.animateSlides=function(){!d.animating&&q&&d.flexAnimate(d.getTarget("next"))},d.pause=function(){clearInterval(d.animatedSlides),d.animatedSlides=null,d.playing=!1,d.vars.pausePlay&&p.pausePlay.update("play"),d.syncExists&&p.sync("pause")},d.play=function(){d.playing&&clearInterval(d.animatedSlides),d.animatedSlides=d.animatedSlides||setInterval(d.animateSlides,d.vars.slideshowSpeed),d.started=d.playing=!0,d.vars.pausePlay&&p.pausePlay.update("pause"),d.syncExists&&p.sync("play")},d.stop=function(){d.pause(),d.stopped=!0},d.canAdvance=function(a,b){var c=o?d.pagingCount-1:d.last;return b?!0:o&&d.currentItem===d.count-1&&0===a&&"prev"===d.direction?!0:o&&0===d.currentItem&&a===d.pagingCount-1&&"next"!==d.direction?!1:a!==d.currentSlide||o?d.vars.animationLoop?!0:d.atEnd&&0===d.currentSlide&&a===c&&"next"!==d.direction?!1:d.atEnd&&d.currentSlide===c&&0===a&&"next"===d.direction?!1:!0:!1},d.getTarget=function(a){return d.direction=a,"next"===a?d.currentSlide===d.last?0:d.currentSlide+1:0===d.currentSlide?d.last:d.currentSlide-1},d.setProps=function(a,b,c){var e=function(){var c=a?a:(d.itemW+d.vars.itemMargin)*d.move*d.animatingTo,e=function(){if(m)return"setTouch"===b?a:l&&d.animatingTo===d.last?0:l?d.limit-(d.itemW+d.vars.itemMargin)*d.move*d.animatingTo:d.animatingTo===d.last?d.limit:c;switch(b){case"setTotal":return l?(d.count-1-d.currentSlide+d.cloneOffset)*a:(d.currentSlide+d.cloneOffset)*a;case"setTouch":return l?a:a;case"jumpEnd":return l?a:d.count*a;case"jumpStart":return l?d.count*a:a;default:return a}}();return-1*e+"px"}();d.transitions&&(e=k?"translate3d(0,"+e+",0)":"translate3d("+e+",0,0)",c=void 0!==c?c/1e3+"s":"0s",d.container.css("-"+d.pfx+"-transition-duration",c),d.container.css("transition-duration",c)),d.args[d.prop]=e,(d.transitions||void 0===c)&&d.container.css(d.args),d.container.css("transform",e)},d.setup=function(b){if(n)d.slides.css({width:"100%","float":"left",marginRight:"-100%",position:"relative"}),"init"===b&&(g?d.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+d.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(d.currentSlide).css({opacity:1,zIndex:2}):d.slides.css({opacity:0,display:"block",zIndex:1}).eq(d.currentSlide).css({zIndex:2}).animate({opacity:1},d.vars.animationSpeed,d.vars.easing)),d.vars.smoothHeight&&p.smoothHeight();else{var c,f;"init"===b&&(d.viewport=a('<div class="'+e+'viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(d).append(d.container),d.cloneCount=0,d.cloneOffset=0,l&&(f=a.makeArray(d.slides).reverse(),d.slides=a(f),d.container.empty().append(d.slides))),d.vars.animationLoop&&!m&&(d.cloneCount=2,d.cloneOffset=1,"init"!==b&&d.container.find(".clone").remove(),p.uniqueID(d.slides.first().clone().addClass("clone").attr("aria-hidden","true")).appendTo(d.container),p.uniqueID(d.slides.last().clone().addClass("clone").attr("aria-hidden","true")).prependTo(d.container)),d.newSlides=a(d.vars.selector,d),c=l?d.count-1-d.currentSlide+d.cloneOffset:d.currentSlide+d.cloneOffset,k&&!m?(d.container.height(200*(d.count+d.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){d.newSlides.css({display:"block"}),d.doMath(),d.viewport.height(d.h),d.setProps(c*d.h,"init")},"init"===b?100:0)):(d.container.width(200*(d.count+d.cloneCount)+"%"),d.setProps(c*d.computedW,"init"),setTimeout(function(){d.doMath(),d.newSlides.css({width:d.computedW,"float":"left",display:"block"}),d.vars.smoothHeight&&p.smoothHeight()},"init"===b?100:0))}m||d.slides.removeClass(e+"active-slide").eq(d.currentSlide).addClass(e+"active-slide"),d.vars.init(d)},d.doMath=function(){var a=d.slides.first(),b=d.vars.itemMargin,c=d.vars.minItems,e=d.vars.maxItems;d.w=void 0===d.viewport?d.width():d.viewport.width(),d.h=a.height(),d.boxPadding=a.outerWidth()-a.width(),m?(d.itemT=d.vars.itemWidth+b,d.minW=c?c*d.itemT:d.w,d.maxW=e?e*d.itemT-b:d.w,d.itemW=d.minW>d.w?(d.w-b*(c-1))/c:d.maxW<d.w?(d.w-b*(e-1))/e:d.vars.itemWidth>d.w?d.w:d.vars.itemWidth,d.visible=Math.floor(d.w/d.itemW),d.move=d.vars.move>0&&d.vars.move<d.visible?d.vars.move:d.visible,d.pagingCount=Math.ceil((d.count-d.visible)/d.move+1),d.last=d.pagingCount-1,d.limit=1===d.pagingCount?0:d.vars.itemWidth>d.w?d.itemW*(d.count-1)+b*(d.count-1):(d.itemW+b)*d.count-d.w-b):(d.itemW=d.w,d.pagingCount=d.count,d.last=d.count-1),d.computedW=d.itemW-d.boxPadding},d.update=function(a,b){d.doMath(),m||(a<d.currentSlide?d.currentSlide+=1:a<=d.currentSlide&&0!==a&&(d.currentSlide-=1),d.animatingTo=d.currentSlide),d.vars.controlNav&&!d.manualControls&&("add"===b&&!m||d.pagingCount>d.controlNav.length?p.controlNav.update("add"):("remove"===b&&!m||d.pagingCount<d.controlNav.length)&&(m&&d.currentSlide>d.last&&(d.currentSlide-=1,d.animatingTo-=1),p.controlNav.update("remove",d.last))),d.vars.directionNav&&p.directionNav.update()},d.addSlide=function(b,c){var e=a(b);d.count+=1,d.last=d.count-1,k&&l?void 0!==c?d.slides.eq(d.count-c).after(e):d.container.prepend(e):void 0!==c?d.slides.eq(c).before(e):d.container.append(e),d.update(c,"add"),d.slides=a(d.vars.selector+":not(.clone)",d),d.setup(),d.vars.added(d)},d.removeSlide=function(b){var c=isNaN(b)?d.slides.index(a(b)):b;d.count-=1,d.last=d.count-1,isNaN(b)?a(b,d.slides).remove():k&&l?d.slides.eq(d.last).remove():d.slides.eq(b).remove(),d.doMath(),d.update(c,"remove"),d.slides=a(d.vars.selector+":not(.clone)",d),d.setup(),d.vars.removed(d)},p.init()},a(window).blur(function(){focused=!1}).focus(function(){focused=!0}),a.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},a.fn.flexslider=function(b){if(void 0===b&&(b={}),"object"==typeof b)return this.each(function(){var c=a(this),d=b.selector?b.selector:".slides > li",e=c.find(d);1===e.length&&b.allowOneSlide===!0||0===e.length?(e.fadeIn(400),b.start&&b.start(c)):void 0===c.data("flexslider")&&new a.flexslider(this,b)});var c=a(this).data("flexslider");switch(b){case"play":c.play();break;case"pause":c.pause();break;case"stop":c.stop();break;case"next":c.flexAnimate(c.getTarget("next"),!0);break;case"prev":case"previous":c.flexAnimate(c.getTarget("prev"),!0);break;default:"number"==typeof b&&c.flexAnimate(b,!0)}}}(jQuery);/*! PhotoSwipe - v4.1.3 - 2019-01-08
* http://photoswipe.com
* Copyright (c) 2019 Dmitry Semenov; */
!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.PhotoSwipe=t()}(this,function(){"use strict";return function(p,i,e,t){var f={features:null,bind:function(e,t,n,i){var o=(i?"remove":"add")+"EventListener";t=t.split(" ");for(var a=0;a<t.length;a++)t[a]&&e[o](t[a],n,!1)},isArray:function(e){return e instanceof Array},createEl:function(e,t){var n=document.createElement(t||"div");return e&&(n.className=e),n},getScrollY:function(){var e=window.pageYOffset;return e!==undefined?e:document.documentElement.scrollTop},unbind:function(e,t,n){f.bind(e,t,n,!0)},removeClass:function(e,t){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(e,t){f.hasClass(e,t)||(e.className+=(e.className?" ":"")+t)},hasClass:function(e,t){return e.className&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(e.className)},getChildByClass:function(e,t){for(var n=e.firstChild;n;){if(f.hasClass(n,t))return n;n=n.nextSibling}},arraySearch:function(e,t,n){for(var i=e.length;i--;)if(e[i][n]===t)return i;return-1},extend:function(e,t,n){for(var i in t)if(t.hasOwnProperty(i)){if(n&&e.hasOwnProperty(i))continue;e[i]=t[i]}},easing:{sine:{out:function(e){return Math.sin(e*(Math.PI/2))},inOut:function(e){return-(Math.cos(Math.PI*e)-1)/2}},cubic:{out:function(e){return--e*e*e+1}}},detectFeatures:function(){if(f.features)return f.features;var e=f.createEl().style,t="",n={};if(n.oldIE=document.all&&!document.addEventListener,n.touch="ontouchstart"in window,window.requestAnimationFrame&&(n.raf=window.requestAnimationFrame,n.caf=window.cancelAnimationFrame),n.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,!n.pointerEvent){var i=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var o=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);o&&0<o.length&&1<=(o=parseInt(o[1],10))&&o<8&&(n.isOldIOSPhone=!0)}var a=i.match(/Android\s([0-9\.]*)/),r=a?a[1]:0;1<=(r=parseFloat(r))&&(r<4.4&&(n.isOldAndroid=!0),n.androidVersion=r),n.isMobileOpera=/opera mini|opera mobi/i.test(i)}for(var l,s,u=["transform","perspective","animationName"],c=["","webkit","Moz","ms","O"],d=0;d<4;d++){t=c[d];for(var m=0;m<3;m++)l=u[m],s=t+(t?l.charAt(0).toUpperCase()+l.slice(1):l),!n[l]&&s in e&&(n[l]=s);t&&!n.raf&&(t=t.toLowerCase(),n.raf=window[t+"RequestAnimationFrame"],n.raf&&(n.caf=window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"]))}if(!n.raf){var p=0;n.raf=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-p)),i=window.setTimeout(function(){e(t+n)},n);return p=t+n,i},n.caf=function(e){clearTimeout(e)}}return n.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,f.features=n}};f.detectFeatures(),f.features.oldIE&&(f.bind=function(e,t,n,i){t=t.split(" ");for(var o,a=(i?"detach":"attach")+"Event",r=function(){n.handleEvent.call(n)},l=0;l<t.length;l++)if(o=t[l])if("object"==typeof n&&n.handleEvent){if(i){if(!n["oldIE"+o])return!1}else n["oldIE"+o]=r;e[a]("on"+o,n["oldIE"+o])}else e[a]("on"+o,n)});var h=this,y={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(e){return"A"===e.tagName},getDoubleTapZoom:function(e,t){return e?1:t.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};f.extend(y,t);function n(e,t){f.extend(h,t.publicMethods),$e.push(e)}function s(e){var t=Gt();return t-1<e?e-t:e<0?t+e:e}function a(e,t){return Qe[e]||(Qe[e]=[]),Qe[e].push(t)}function x(e){var t=Qe[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var i=0;i<t.length;i++)t[i].apply(h,n)}}function c(){return(new Date).getTime()}function v(e){_e=e,h.bg.style.opacity=e*y.bgOpacity}function o(e,t,n,i,o){(!Je||o&&o!==h.currItem)&&(i/=o?o.fitRatio:h.currItem.fitRatio),e[re]=$+t+"px, "+n+"px"+j+" scale("+i+")"}function d(e,t){if(!y.loop&&t){var n=Y+(Ve.x*Ge-e)/Ve.x,i=Math.round(e-wt.x);(n<0&&0<i||n>=Gt()-1&&i<0)&&(e=wt.x+i*y.mainScrollEndFriction)}wt.x=e,nt(e,W)}function u(e,t){var n=bt[e]-Xe[e];return Ye[e]+He[e]+n-t/q*n}function g(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)}function m(e){e.x=Math.round(e.x),e.y=Math.round(e.y)}function w(e,t){var n=$t(h.currItem,Be,e);return t&&(Re=n),n}function b(e){return e||(e=h.currItem),e.initialZoomLevel}function I(e){return e||(e=h.currItem),0<e.w?y.maxSpreadZoom:1}function C(e,t,n,i){return i===h.currItem.initialZoomLevel?(n[e]=h.currItem.initialPosition[e],!0):(n[e]=u(e,i),n[e]>t.min[e]?(n[e]=t.min[e],!0):n[e]<t.max[e]&&(n[e]=t.max[e],!0))}function r(e){var t="";y.escKey&&27===e.keyCode?t="close":y.arrowKeys&&(37===e.keyCode?t="prev":39===e.keyCode&&(t="next")),t&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||(e.preventDefault?e.preventDefault():e.returnValue=!1,h[t]()))}function l(e){e&&(Me||Te||Ze||be)&&(e.preventDefault(),e.stopPropagation())}function D(){h.setScrollOffset(0,f.getScrollY())}function T(e){at[e]&&(at[e].raf&&ce(at[e].raf),rt--,delete at[e])}function M(e){at[e]&&T(e),at[e]||(rt++,at[e]={})}function S(){for(var e in at)at.hasOwnProperty(e)&&T(e)}function A(e,t,n,i,o,a,r){var l,s=c();M(e);var u=function(){if(at[e]){if(l=c()-s,i<=l)return T(e),a(n),void(r&&r());a((n-t)*o(l/i)+t),at[e].raf=ue(u)}};u()}function E(e,t){return yt.x=Math.abs(e.x-t.x),yt.y=Math.abs(e.y-t.y),Math.sqrt(yt.x*yt.x+yt.y*yt.y)}function O(e,t){return Mt.prevent=!Tt(e.target,y.isClickableElement),x("preventDragEvent",e,t,Mt),Mt.prevent}function k(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t}function R(e,t,n){n.x=.5*(e.x+t.x),n.y=.5*(e.y+t.y)}function P(){var e=We.y-h.currItem.initialPosition.y;return 1-Math.abs(e/(Be.y/2))}function Z(e){for(;0<Et.length;)Et.pop();return le?(Ue=0,pt.forEach(function(e){0===Ue?Et[0]=e:1===Ue&&(Et[1]=e),Ue++})):-1<e.type.indexOf("touch")?e.touches&&0<e.touches.length&&(Et[0]=k(e.touches[0],St),1<e.touches.length&&(Et[1]=k(e.touches[1],At))):(St.x=e.pageX,St.y=e.pageY,St.id="",Et[0]=St),Et}function F(e,t){var n,i,o,a,r=We[e]+t[e],l=0<t[e],s=wt.x+t.x,u=wt.x-ft.x;if(n=r>Re.min[e]||r<Re.max[e]?y.panEndFriction:1,r=We[e]+t[e]*n,(y.allowPanToNext||K===h.currItem.initialZoomLevel)&&(Pe?"h"!==Fe||"x"!==e||Te||(l?(r>Re.min[e]&&(n=y.panEndFriction,Re.min[e],i=Re.min[e]-Ye[e]),(i<=0||u<0)&&1<Gt()?(a=s,u<0&&s>ft.x&&(a=ft.x)):Re.min.x!==Re.max.x&&(o=r)):(r<Re.max[e]&&(n=y.panEndFriction,Re.max[e],i=Ye[e]-Re.max[e]),(i<=0||0<u)&&1<Gt()?(a=s,0<u&&s<ft.x&&(a=ft.x)):Re.min.x!==Re.max.x&&(o=r))):a=s,"x"===e))return a!==undefined&&(d(a,!0),Ae=a!==ft.x),Re.min.x!==Re.max.x&&(o!==undefined?We.x=o:Ae||(We.x+=t.x*n)),a!==undefined;Ze||Ae||K>h.currItem.fitRatio&&(We[e]+=t[e]*n)}function L(e){if(!("mousedown"===e.type&&0<e.button))if(Wt)e.preventDefault();else if(!Ie||"mousedown"!==e.type){if(O(e,!0)&&e.preventDefault(),x("pointerDown"),le){var t=f.arraySearch(pt,e.pointerId,"id");t<0&&(t=pt.length),pt[t]={x:e.pageX,y:e.pageY,id:e.pointerId}}var n=Z(e),i=n.length;Ee=null,S(),Ce&&1!==i||(Ce=Le=!0,f.bind(window,G,h),we=Ne=ze=be=Ae=Me=De=Te=!1,Fe=null,x("firstTouchStart",n),g(Ye,We),He.x=He.y=0,g(dt,n[0]),g(mt,dt),ft.x=Ve.x*Ge,ht=[{x:dt.x,y:dt.y}],ve=xe=c(),w(K,!0),Ct(),Dt()),!Oe&&1<i&&!Ze&&!Ae&&(q=K,Oe=De=!(Te=!1),He.y=He.x=0,g(Ye,We),g(st,n[0]),g(ut,n[1]),R(st,ut,It),bt.x=Math.abs(It.x)-We.x,bt.y=Math.abs(It.y)-We.y,ke=E(st,ut))}}function z(e){if(e.preventDefault(),le){var t=f.arraySearch(pt,e.pointerId,"id");if(-1<t){var n=pt[t];n.x=e.pageX,n.y=e.pageY}}if(Ce){var i=Z(e);if(Fe||Me||Oe)Ee=i;else if(wt.x!==Ve.x*Ge)Fe="h";else{var o=Math.abs(i[0].x-dt.x)-Math.abs(i[0].y-dt.y);10<=Math.abs(o)&&(Fe=0<o?"h":"v",Ee=i)}}}function _(e){if(he.isOldAndroid){if(Ie&&"mouseup"===e.type)return;-1<e.type.indexOf("touch")&&(clearTimeout(Ie),Ie=setTimeout(function(){Ie=0},600))}var t;if(x("pointerUp"),O(e,!1)&&e.preventDefault(),le){var n=f.arraySearch(pt,e.pointerId,"id");-1<n&&(t=pt.splice(n,1)[0],navigator.msPointerEnabled?(t.type={4:"mouse",2:"touch",3:"pen"}[e.pointerType],t.type||(t.type=e.pointerType||"mouse")):t.type=e.pointerType||"mouse")}var i,o=Z(e),a=o.length;if("mouseup"===e.type&&(a=0),2===a)return!(Ee=null);1===a&&g(mt,o[0]),0!==a||Fe||Ze||(t||("mouseup"===e.type?t={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(t={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),x("touchRelease",e,t));var r=-1;if(0===a&&(Ce=!1,f.unbind(window,G,h),Ct(),Oe?r=0:-1!==gt&&(r=c()-gt)),gt=1===a?c():-1,i=-1!==r&&r<150?"zoom":"swipe",Oe&&a<2&&(Oe=!1,1===a&&(i="zoomPointerUp"),x("zoomGestureEnded")),Ee=null,Me||Te||Ze||be)if(S(),ge||(ge=kt()),ge.calculateSwipeSpeed("x"),be)if(P()<y.verticalDragRange)h.close();else{var l=We.y,s=_e;A("verticalDrag",0,1,300,f.easing.cubic.out,function(e){We.y=(h.currItem.initialPosition.y-l)*e+l,v((1-s)*e+s),et()}),x("onVerticalDrag",1)}else{if((Ae||Ze)&&0===a){if(Pt(i,ge))return;i="zoomPointerUp"}Ze||("swipe"===i?!Ae&&K>h.currItem.fitRatio&&Rt(ge):Ft())}}var N,U,H,Y,W,B,G,X,V,K,q,$,j,J,Q,ee,te,ne,ie,oe,ae,re,le,se,ue,ce,de,me,pe,fe,he,ye,xe,ve,ge,we,be,Ie,Ce,De,Te,Me,Se,Ae,Ee,Oe,ke,Re,Pe,Ze,Fe,Le,ze,_e,Ne,Ue,He={x:0,y:0},Ye={x:0,y:0},We={x:0,y:0},Be={},Ge=0,Xe={},Ve={x:0,y:0},Ke=0,qe=!0,$e=[],je={},Je=!1,Qe={},et=function(e){Pe&&(e&&(K>h.currItem.fitRatio?Je||(jt(h.currItem,!1,!0),Je=!0):Je&&(jt(h.currItem),Je=!1)),o(Pe,We.x,We.y,K))},tt=function(e){e.container&&o(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},nt=function(e,t){t[re]=$+e+"px, 0px"+j},it=null,ot=function(){it&&(f.unbind(document,"mousemove",ot),f.addClass(p,"pswp--has_mouse"),y.mouseUsed=!0,x("mouseUsed")),it=setTimeout(function(){it=null},100)},at={},rt=0,lt={shout:x,listen:a,viewportSize:Be,options:y,isMainScrollAnimating:function(){return Ze},getZoomLevel:function(){return K},getCurrentIndex:function(){return Y},isDragging:function(){return Ce},isZooming:function(){return Oe},setScrollOffset:function(e,t){Xe.x=e,fe=Xe.y=t,x("updateScrollOffset",Xe)},applyZoomPan:function(e,t,n,i){We.x=t,We.y=n,K=e,et(i)},init:function(){if(!N&&!U){var e;h.framework=f,h.template=p,h.bg=f.getChildByClass(p,"pswp__bg"),de=p.className,N=!0,he=f.detectFeatures(),ue=he.raf,ce=he.caf,re=he.transform,pe=he.oldIE,h.scrollWrap=f.getChildByClass(p,"pswp__scroll-wrap"),h.container=f.getChildByClass(h.scrollWrap,"pswp__container"),W=h.container.style,h.itemHolders=ee=[{el:h.container.children[0],wrap:0,index:-1},{el:h.container.children[1],wrap:0,index:-1},{el:h.container.children[2],wrap:0,index:-1}],ee[0].el.style.display=ee[2].el.style.display="none",function(){if(re){var e=he.perspective&&!se;return $="translate"+(e?"3d(":"("),j=he.perspective?", 0px)":")"}re="left",f.addClass(p,"pswp--ie"),nt=function(e,t){t.left=e+"px"},tt=function(e){var t=1<e.fitRatio?1:e.fitRatio,n=e.container.style,i=t*e.w,o=t*e.h;n.width=i+"px",n.height=o+"px",n.left=e.initialPosition.x+"px",n.top=e.initialPosition.y+"px"},et=function(){if(Pe){var e=Pe,t=h.currItem,n=1<t.fitRatio?1:t.fitRatio,i=n*t.w,o=n*t.h;e.width=i+"px",e.height=o+"px",e.left=We.x+"px",e.top=We.y+"px"}}}(),V={resize:h.updateSize,orientationchange:function(){clearTimeout(ye),ye=setTimeout(function(){Be.x!==h.scrollWrap.clientWidth&&h.updateSize()},500)},scroll:D,keydown:r,click:l};var t=he.isOldIOSPhone||he.isOldAndroid||he.isMobileOpera;for(he.animationName&&he.transform&&!t||(y.showAnimationDuration=y.hideAnimationDuration=0),e=0;e<$e.length;e++)h["init"+$e[e]]();i&&(h.ui=new i(h,f)).init(),x("firstUpdate"),Y=Y||y.index||0,(isNaN(Y)||Y<0||Y>=Gt())&&(Y=0),h.currItem=Bt(Y),(he.isOldIOSPhone||he.isOldAndroid)&&(qe=!1),p.setAttribute("aria-hidden","false"),y.modal&&(qe?p.style.position="fixed":(p.style.position="absolute",p.style.top=f.getScrollY()+"px")),fe===undefined&&(x("initialLayout"),fe=me=f.getScrollY());var n="pswp--open ";for(y.mainClass&&(n+=y.mainClass+" "),y.showHideOpacity&&(n+="pswp--animate_opacity "),n+=se?"pswp--touch":"pswp--notouch",n+=he.animationName?" pswp--css_animation":"",n+=he.svg?" pswp--svg":"",f.addClass(p,n),h.updateSize(),B=-1,Ke=null,e=0;e<3;e++)nt((e+B)*Ve.x,ee[e].el.style);pe||f.bind(h.scrollWrap,X,h),a("initialZoomInEnd",function(){h.setContent(ee[0],Y-1),h.setContent(ee[2],Y+1),ee[0].el.style.display=ee[2].el.style.display="block",y.focus&&p.focus(),f.bind(document,"keydown",h),he.transform&&f.bind(h.scrollWrap,"click",h),y.mouseUsed||f.bind(document,"mousemove",ot),f.bind(window,"resize scroll orientationchange",h),x("bindEvents")}),h.setContent(ee[1],Y),h.updateCurrItem(),x("afterInit"),qe||(J=setInterval(function(){rt||Ce||Oe||K!==h.currItem.initialZoomLevel||h.updateSize()},1e3)),f.addClass(p,"pswp--visible")}},close:function(){N&&(U=!(N=!1),x("close"),f.unbind(window,"resize scroll orientationchange",h),f.unbind(window,"scroll",V.scroll),f.unbind(document,"keydown",h),f.unbind(document,"mousemove",ot),he.transform&&f.unbind(h.scrollWrap,"click",h),Ce&&f.unbind(window,G,h),clearTimeout(ye),x("unbindEvents"),Xt(h.currItem,null,!0,h.destroy))},destroy:function(){x("destroy"),Ut&&clearTimeout(Ut),p.setAttribute("aria-hidden","true"),p.className=de,J&&clearInterval(J),f.unbind(h.scrollWrap,X,h),f.unbind(window,"scroll",h),Ct(),S(),Qe=null},panTo:function(e,t,n){n||(e>Re.min.x?e=Re.min.x:e<Re.max.x&&(e=Re.max.x),t>Re.min.y?t=Re.min.y:t<Re.max.y&&(t=Re.max.y)),We.x=e,We.y=t,et()},handleEvent:function(e){e=e||window.event,V[e.type]&&V[e.type](e)},goTo:function(e){var t=(e=s(e))-Y;Ke=t,Y=e,h.currItem=Bt(Y),Ge-=t,d(Ve.x*Ge),S(),Ze=!1,h.updateCurrItem()},next:function(){h.goTo(Y+1)},prev:function(){h.goTo(Y-1)},updateCurrZoomItem:function(e){if(e&&x("beforeChange",0),ee[1].el.children.length){var t=ee[1].el.children[0];Pe=f.hasClass(t,"pswp__zoom-wrap")?t.style:null}else Pe=null;Re=h.currItem.bounds,q=K=h.currItem.initialZoomLevel,We.x=Re.center.x,We.y=Re.center.y,e&&x("afterChange")},invalidateCurrItems:function(){Q=!0;for(var e=0;e<3;e++)ee[e].item&&(ee[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==Ke){var t,n=Math.abs(Ke);if(!(e&&n<2)){h.currItem=Bt(Y),Je=!1,x("beforeChange",Ke),3<=n&&(B+=Ke+(0<Ke?-3:3),n=3);for(var i=0;i<n;i++)0<Ke?(t=ee.shift(),ee[2]=t,nt((++B+2)*Ve.x,t.el.style),h.setContent(t,Y-n+i+1+1)):(t=ee.pop(),ee.unshift(t),nt(--B*Ve.x,t.el.style),h.setContent(t,Y+n-i-1-1));if(Pe&&1===Math.abs(Ke)){var o=Bt(te);o.initialZoomLevel!==K&&($t(o,Be),jt(o),tt(o))}Ke=0,h.updateCurrZoomItem(),te=Y,x("afterChange")}}},updateSize:function(e){if(!qe&&y.modal){var t=f.getScrollY();if(fe!==t&&(p.style.top=t+"px",fe=t),!e&&je.x===window.innerWidth&&je.y===window.innerHeight)return;je.x=window.innerWidth,je.y=window.innerHeight,p.style.height=je.y+"px"}if(Be.x=h.scrollWrap.clientWidth,Be.y=h.scrollWrap.clientHeight,D(),Ve.x=Be.x+Math.round(Be.x*y.spacing),Ve.y=Be.y,d(Ve.x*Ge),x("beforeResize"),B!==undefined){for(var n,i,o,a=0;a<3;a++)n=ee[a],nt((a+B)*Ve.x,n.el.style),o=Y+a-1,y.loop&&2<Gt()&&(o=s(o)),(i=Bt(o))&&(Q||i.needsUpdate||!i.bounds)?(h.cleanSlide(i),h.setContent(n,o),1===a&&(h.currItem=i,h.updateCurrZoomItem(!0)),i.needsUpdate=!1):-1===n.index&&0<=o&&h.setContent(n,o),i&&i.container&&($t(i,Be),jt(i),tt(i));Q=!1}q=K=h.currItem.initialZoomLevel,(Re=h.currItem.bounds)&&(We.x=Re.center.x,We.y=Re.center.y,et(!0)),x("resize")},zoomTo:function(t,e,n,i,o){e&&(q=K,bt.x=Math.abs(e.x)-We.x,bt.y=Math.abs(e.y)-We.y,g(Ye,We));var a=w(t,!1),r={};C("x",a,r,t),C("y",a,r,t);var l=K,s=We.x,u=We.y;function c(e){1===e?(K=t,We.x=r.x,We.y=r.y):(K=(t-l)*e+l,We.x=(r.x-s)*e+s,We.y=(r.y-u)*e+u),o&&o(e),et(1===e)}m(r),n?A("customZoomTo",0,1,n,i||f.easing.sine.inOut,c):c(1)}},st={},ut={},ct={},dt={},mt={},pt=[],ft={},ht=[],yt={},xt=0,vt={x:0,y:0},gt=0,wt={x:0,y:0},bt={x:0,y:0},It={x:0,y:0},Ct=function(){Se&&(ce(Se),Se=null)},Dt=function(){Ce&&(Se=ue(Dt),Ot())},Tt=function(e,t){return!(!e||e===document)&&!(e.getAttribute("class")&&-1<e.getAttribute("class").indexOf("pswp__scroll-wrap"))&&(t(e)?e:Tt(e.parentNode,t))},Mt={},St={},At={},Et=[],Ot=function(){if(Ee){var e=Ee.length;if(0!==e)if(g(st,Ee[0]),ct.x=st.x-dt.x,ct.y=st.y-dt.y,Oe&&1<e){if(dt.x=st.x,dt.y=st.y,!ct.x&&!ct.y&&function(e,t){return e.x===t.x&&e.y===t.y}(Ee[1],ut))return;g(ut,Ee[1]),Te||(Te=!0,x("zoomGestureStarted"));var t=E(st,ut),n=Zt(t);n>h.currItem.initialZoomLevel+h.currItem.initialZoomLevel/15&&(Ne=!0);var i=1,o=b(),a=I();if(n<o)if(y.pinchToClose&&!Ne&&q<=h.currItem.initialZoomLevel){var r=1-(o-n)/(o/1.2);v(r),x("onPinchClose",r),ze=!0}else 1<(i=(o-n)/o)&&(i=1),n=o-i*(o/3);else a<n&&(1<(i=(n-a)/(6*o))&&(i=1),n=a+i*o);i<0&&(i=0),R(st,ut,vt),He.x+=vt.x-It.x,He.y+=vt.y-It.y,g(It,vt),We.x=u("x",n),We.y=u("y",n),we=K<n,K=n,et()}else{if(!Fe)return;if(Le&&(Le=!1,10<=Math.abs(ct.x)&&(ct.x-=Ee[0].x-mt.x),10<=Math.abs(ct.y)&&(ct.y-=Ee[0].y-mt.y)),dt.x=st.x,dt.y=st.y,0===ct.x&&0===ct.y)return;if("v"===Fe&&y.closeOnVerticalDrag&&"fit"===y.scaleMode&&K===h.currItem.initialZoomLevel){He.y+=ct.y,We.y+=ct.y;var l=P();return be=!0,x("onVerticalDrag",l),v(l),void et()}!function(e,t,n){if(50<e-ve){var i=2<ht.length?ht.shift():{};i.x=t,i.y=n,ht.push(i),ve=e}}(c(),st.x,st.y),Me=!0,Re=h.currItem.bounds,F("x",ct)||(F("y",ct),m(We),et())}}},kt=function(){var t,n,i={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(e){n=1<ht.length?(t=c()-ve+50,ht[ht.length-2][e]):(t=c()-xe,mt[e]),i.lastFlickOffset[e]=dt[e]-n,i.lastFlickDist[e]=Math.abs(i.lastFlickOffset[e]),20<i.lastFlickDist[e]?i.lastFlickSpeed[e]=i.lastFlickOffset[e]/t:i.lastFlickSpeed[e]=0,Math.abs(i.lastFlickSpeed[e])<.1&&(i.lastFlickSpeed[e]=0),i.slowDownRatio[e]=.95,i.slowDownRatioReverse[e]=1-i.slowDownRatio[e],i.speedDecelerationRatio[e]=1},calculateOverBoundsAnimOffset:function(t,e){i.backAnimStarted[t]||(We[t]>Re.min[t]?i.backAnimDestination[t]=Re.min[t]:We[t]<Re.max[t]&&(i.backAnimDestination[t]=Re.max[t]),i.backAnimDestination[t]!==undefined&&(i.slowDownRatio[t]=.7,i.slowDownRatioReverse[t]=1-i.slowDownRatio[t],i.speedDecelerationRatioAbs[t]<.05&&(i.lastFlickSpeed[t]=0,i.backAnimStarted[t]=!0,A("bounceZoomPan"+t,We[t],i.backAnimDestination[t],e||300,f.easing.sine.out,function(e){We[t]=e,et()}))))},calculateAnimOffset:function(e){i.backAnimStarted[e]||(i.speedDecelerationRatio[e]=i.speedDecelerationRatio[e]*(i.slowDownRatio[e]+i.slowDownRatioReverse[e]-i.slowDownRatioReverse[e]*i.timeDiff/10),i.speedDecelerationRatioAbs[e]=Math.abs(i.lastFlickSpeed[e]*i.speedDecelerationRatio[e]),i.distanceOffset[e]=i.lastFlickSpeed[e]*i.speedDecelerationRatio[e]*i.timeDiff,We[e]+=i.distanceOffset[e])},panAnimLoop:function(){if(at.zoomPan&&(at.zoomPan.raf=ue(i.panAnimLoop),i.now=c(),i.timeDiff=i.now-i.lastNow,i.lastNow=i.now,i.calculateAnimOffset("x"),i.calculateAnimOffset("y"),et(),i.calculateOverBoundsAnimOffset("x"),i.calculateOverBoundsAnimOffset("y"),i.speedDecelerationRatioAbs.x<.05&&i.speedDecelerationRatioAbs.y<.05))return We.x=Math.round(We.x),We.y=Math.round(We.y),et(),void T("zoomPan")}};return i},Rt=function(e){if(e.calculateSwipeSpeed("y"),Re=h.currItem.bounds,e.backAnimDestination={},e.backAnimStarted={},Math.abs(e.lastFlickSpeed.x)<=.05&&Math.abs(e.lastFlickSpeed.y)<=.05)return e.speedDecelerationRatioAbs.x=e.speedDecelerationRatioAbs.y=0,e.calculateOverBoundsAnimOffset("x"),e.calculateOverBoundsAnimOffset("y"),!0;M("zoomPan"),e.lastNow=c(),e.panAnimLoop()},Pt=function(e,t){var n,i,o;if(Ze||(xt=Y),"swipe"===e){var a=dt.x-mt.x,r=t.lastFlickDist.x<10;30<a&&(r||20<t.lastFlickOffset.x)?i=-1:a<-30&&(r||t.lastFlickOffset.x<-20)&&(i=1)}i&&((Y+=i)<0?(Y=y.loop?Gt()-1:0,o=!0):Y>=Gt()&&(Y=y.loop?0:Gt()-1,o=!0),o&&!y.loop||(Ke+=i,Ge-=i,n=!0));var l,s=Ve.x*Ge,u=Math.abs(s-wt.x);return l=n||s>wt.x==0<t.lastFlickSpeed.x?(l=0<Math.abs(t.lastFlickSpeed.x)?u/Math.abs(t.lastFlickSpeed.x):333,l=Math.min(l,400),Math.max(l,250)):333,xt===Y&&(n=!1),Ze=!0,x("mainScrollAnimStart"),A("mainScroll",wt.x,s,l,f.easing.cubic.out,d,function(){S(),Ze=!1,xt=-1,!n&&xt===Y||h.updateCurrItem(),x("mainScrollAnimComplete")}),n&&h.updateCurrItem(!0),n},Zt=function(e){return 1/ke*e*q},Ft=function(){var e=K,t=b(),n=I();K<t?e=t:n<K&&(e=n);var i,o=_e;return ze&&!we&&!Ne&&K<t?h.close():(ze&&(i=function(e){v((1-o)*e+o)}),h.zoomTo(e,0,200,f.easing.cubic.out,i)),!0};n("Gestures",{publicMethods:{initGestures:function(){function e(e,t,n,i,o){ne=e+t,ie=e+n,oe=e+i,ae=o?e+o:""}(le=he.pointerEvent)&&he.touch&&(he.touch=!1),le?navigator.msPointerEnabled?e("MSPointer","Down","Move","Up","Cancel"):e("pointer","down","move","up","cancel"):he.touch?(e("touch","start","move","end","cancel"),se=!0):e("mouse","down","move","up"),G=ie+" "+oe+" "+ae,X=ne,le&&!se&&(se=1<navigator.maxTouchPoints||1<navigator.msMaxTouchPoints),h.likelyTouchDevice=se,V[ne]=L,V[ie]=z,V[oe]=_,ae&&(V[ae]=V[oe]),he.touch&&(X+=" mousedown",G+=" mousemove mouseup",V.mousedown=V[ne],V.mousemove=V[ie],V.mouseup=V[oe]),se||(y.allowPanToNext=!1)}}});function Lt(e,t,n,i,o,a){t.loadError||i&&(t.imageAppended=!0,jt(t,i,t===h.currItem&&Je),n.appendChild(i),a&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500))}function zt(e){function t(){e.loading=!1,e.loaded=!0,e.loadComplete?e.loadComplete(e):e.img=null,n.onload=n.onerror=null,n=null}e.loading=!0,e.loaded=!1;var n=e.img=f.createEl("pswp__img","img");return n.onload=t,n.onerror=function(){e.loadError=!0,t()},n.src=e.src,n.alt=e.alt||"",n}function _t(e,t){if(e.src&&e.loadError&&e.container)return t&&(e.container.innerHTML=""),e.container.innerHTML=y.errorMsg.replace("%url%",e.src),!0}function Nt(){if(Kt.length){for(var e,t=0;t<Kt.length;t++)(e=Kt[t]).holder.index===e.index&&Lt(e.index,e.item,e.baseDiv,e.img,0,e.clearPlaceholder);Kt=[]}}var Ut,Ht,Yt,Wt,Bt,Gt,Xt=function(r,e,l,t){var s;function u(){T("initialZoom"),l?(h.template.removeAttribute("style"),h.bg.removeAttribute("style")):(v(1),e&&(e.style.display="block"),f.addClass(p,"pswp--animated-in"),x("initialZoom"+(l?"OutEnd":"InEnd"))),t&&t(),Wt=!1}Ut&&clearTimeout(Ut),Yt=Wt=!0,r.initialLayout?(s=r.initialLayout,r.initialLayout=null):s=y.getThumbBoundsFn&&y.getThumbBoundsFn(Y);var c,d,m=l?y.hideAnimationDuration:y.showAnimationDuration;if(!m||!s||s.x===undefined)return x("initialZoom"+(l?"Out":"In")),K=r.initialZoomLevel,g(We,r.initialPosition),et(),p.style.opacity=l?0:1,v(1),void(m?setTimeout(function(){u()},m):u());c=H,d=!h.currItem.src||h.currItem.loadError||y.showHideOpacity,r.miniImg&&(r.miniImg.style.webkitBackfaceVisibility="hidden"),l||(K=s.w/r.w,We.x=s.x,We.y=s.y-me,h[d?"template":"bg"].style.opacity=.001,et()),M("initialZoom"),l&&!c&&f.removeClass(p,"pswp--animated-in"),d&&(l?f[(c?"remove":"add")+"Class"](p,"pswp--animate_opacity"):setTimeout(function(){f.addClass(p,"pswp--animate_opacity")},30)),Ut=setTimeout(function(){if(x("initialZoom"+(l?"Out":"In")),l){var t=s.w/r.w,n=We.x,i=We.y,o=K,a=_e,e=function(e){1===e?(K=t,We.x=s.x,We.y=s.y-fe):(K=(t-o)*e+o,We.x=(s.x-n)*e+n,We.y=(s.y-fe-i)*e+i),et(),d?p.style.opacity=1-e:v(a-e*a)};c?A("initialZoom",0,1,m,f.easing.cubic.out,e,u):(e(1),Ut=setTimeout(u,m+20))}else K=r.initialZoomLevel,g(We,r.initialPosition),et(),v(1),d?p.style.opacity=1:v(1),Ut=setTimeout(u,m+20)},l?25:90)},Vt={},Kt=[],qt={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Ht.length}},$t=function(e,t,n){if(!e.src||e.loadError)return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}},e.initialPosition=e.bounds.center,e.bounds;var i=!n;if(i&&(e.vGap||(e.vGap={top:0,bottom:0}),x("parseVerticalMargin",e)),Vt.x=t.x,Vt.y=t.y-e.vGap.top-e.vGap.bottom,i){var o=Vt.x/e.w,a=Vt.y/e.h;e.fitRatio=o<a?o:a;var r=y.scaleMode;"orig"===r?n=1:"fit"===r&&(n=e.fitRatio),1<n&&(n=1),e.initialZoomLevel=n,e.bounds||(e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}})}return n?(function(e,t,n){var i=e.bounds;i.center.x=Math.round((Vt.x-t)/2),i.center.y=Math.round((Vt.y-n)/2)+e.vGap.top,i.max.x=t>Vt.x?Math.round(Vt.x-t):i.center.x,i.max.y=n>Vt.y?Math.round(Vt.y-n)+e.vGap.top:i.center.y,i.min.x=t>Vt.x?0:i.center.x,i.min.y=n>Vt.y?e.vGap.top:i.center.y}(e,e.w*n,e.h*n),i&&n===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds):void 0},jt=function(e,t,n){if(e.src){t||(t=e.container.lastChild);var i=n?e.w:Math.round(e.w*e.fitRatio),o=n?e.h:Math.round(e.h*e.fitRatio);e.placeholder&&!e.loaded&&(e.placeholder.style.width=i+"px",e.placeholder.style.height=o+"px"),t.style.width=i+"px",t.style.height=o+"px"}};n("Controller",{publicMethods:{lazyLoadItem:function(e){e=s(e);var t=Bt(e);t&&(!t.loaded&&!t.loading||Q)&&(x("gettingData",e,t),t.src&&zt(t))},initController:function(){f.extend(y,qt,!0),h.items=Ht=e,Bt=h.getItemAt,Gt=y.getNumItemsFn,y.loop,Gt()<3&&(y.loop=!1),a("beforeChange",function(e){var t,n=y.preload,i=null===e||0<=e,o=Math.min(n[0],Gt()),a=Math.min(n[1],Gt());for(t=1;t<=(i?a:o);t++)h.lazyLoadItem(Y+t);for(t=1;t<=(i?o:a);t++)h.lazyLoadItem(Y-t)}),a("initialLayout",function(){h.currItem.initialLayout=y.getThumbBoundsFn&&y.getThumbBoundsFn(Y)}),a("mainScrollAnimComplete",Nt),a("initialZoomInEnd",Nt),a("destroy",function(){for(var e,t=0;t<Ht.length;t++)(e=Ht[t]).container&&(e.container=null),e.placeholder&&(e.placeholder=null),e.img&&(e.img=null),e.preloader&&(e.preloader=null),e.loadError&&(e.loaded=e.loadError=!1);Kt=null})},getItemAt:function(e){return 0<=e&&Ht[e]!==undefined&&Ht[e]},allowProgressiveImg:function(){return y.forceProgressiveLoading||!se||y.mouseUsed||1200<screen.width},setContent:function(t,n){y.loop&&(n=s(n));var e=h.getItemAt(t.index);e&&(e.container=null);var i,o=h.getItemAt(n);if(o){x("gettingData",n,o),t.index=n;var a=(t.item=o).container=f.createEl("pswp__zoom-wrap");if(!o.src&&o.html&&(o.html.tagName?a.appendChild(o.html):a.innerHTML=o.html),_t(o),$t(o,Be),!o.src||o.loadError||o.loaded)o.src&&!o.loadError&&((i=f.createEl("pswp__img","img")).style.opacity=1,i.src=o.src,jt(o,i),Lt(0,o,a,i));else{if(o.loadComplete=function(e){if(N){if(t&&t.index===n){if(_t(e,!0))return e.loadComplete=e.img=null,$t(e,Be),tt(e),void(t.index===Y&&h.updateCurrZoomItem());e.imageAppended?!Wt&&e.placeholder&&(e.placeholder.style.display="none",e.placeholder=null):he.transform&&(Ze||Wt)?Kt.push({item:e,baseDiv:a,img:e.img,index:n,holder:t,clearPlaceholder:!0}):Lt(0,e,a,e.img,0,!0)}e.loadComplete=null,e.img=null,x("imageLoadComplete",n,e)}},f.features.transform){var r="pswp__img pswp__img--placeholder";r+=o.msrc?"":" pswp__img--placeholder--blank";var l=f.createEl(r,o.msrc?"img":"");o.msrc&&(l.src=o.msrc),jt(o,l),a.appendChild(l),o.placeholder=l}o.loading||zt(o),h.allowProgressiveImg()&&(!Yt&&he.transform?Kt.push({item:o,baseDiv:a,img:o.img,index:n,holder:t}):Lt(0,o,a,o.img,0,!0))}Yt||n!==Y?tt(o):(Pe=a.style,Xt(o,i||o.img)),t.el.innerHTML="",t.el.appendChild(a)}else t.el.innerHTML=""},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});function Jt(e,t,n){var i=document.createEvent("CustomEvent"),o={origEvent:e,target:e.target,releasePoint:t,pointerType:n||"touch"};i.initCustomEvent("pswpTap",!0,!0,o),e.target.dispatchEvent(i)}var Qt,en,tn={};n("Tap",{publicMethods:{initTap:function(){a("firstTouchStart",h.onTapStart),a("touchRelease",h.onTapRelease),a("destroy",function(){tn={},Qt=null})},onTapStart:function(e){1<e.length&&(clearTimeout(Qt),Qt=null)},onTapRelease:function(e,t){if(t&&!Me&&!De&&!rt){var n=t;if(Qt&&(clearTimeout(Qt),Qt=null,function(e,t){return Math.abs(e.x-t.x)<25&&Math.abs(e.y-t.y)<25}(n,tn)))return void x("doubleTap",n);if("mouse"===t.type)return void Jt(e,t,"mouse");if("BUTTON"===e.target.tagName.toUpperCase()||f.hasClass(e.target,"pswp__single-tap"))return void Jt(e,t);g(tn,n),Qt=setTimeout(function(){Jt(e,t),Qt=null},300)}}}}),n("DesktopZoom",{publicMethods:{initDesktopZoom:function(){pe||(se?a("mouseUsed",function(){h.setupDesktopZoom()}):h.setupDesktopZoom(!0))},setupDesktopZoom:function(e){en={};var t="wheel mousewheel DOMMouseScroll";function n(){h.mouseZoomedIn&&(f.removeClass(p,"pswp--zoomed-in"),h.mouseZoomedIn=!1),K<1?f.addClass(p,"pswp--zoom-allowed"):f.removeClass(p,"pswp--zoom-allowed"),o()}a("bindEvents",function(){f.bind(p,t,h.handleMouseWheel)}),a("unbindEvents",function(){en&&f.unbind(p,t,h.handleMouseWheel)}),h.mouseZoomedIn=!1;var i,o=function(){i&&(f.removeClass(p,"pswp--dragging"),i=!1)};a("resize",n),a("afterChange",n),a("pointerDown",function(){h.mouseZoomedIn&&(i=!0,f.addClass(p,"pswp--dragging"))}),a("pointerUp",o),e||n()},handleMouseWheel:function(e){if(K<=h.currItem.fitRatio)return y.modal&&(!y.closeOnScroll||rt||Ce?e.preventDefault():re&&2<Math.abs(e.deltaY)&&(H=!0,h.close())),!0;if(e.stopPropagation(),en.x=0,"deltaX"in e)1===e.deltaMode?(en.x=18*e.deltaX,en.y=18*e.deltaY):(en.x=e.deltaX,en.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(en.x=-.16*e.wheelDeltaX),e.wheelDeltaY?en.y=-.16*e.wheelDeltaY:en.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;en.y=e.detail}w(K,!0);var t=We.x-en.x,n=We.y-en.y;(y.modal||t<=Re.min.x&&t>=Re.max.x&&n<=Re.min.y&&n>=Re.max.y)&&e.preventDefault(),h.panTo(t,n)},toggleDesktopZoom:function(e){e=e||{x:Be.x/2+Xe.x,y:Be.y/2+Xe.y};var t=y.getDoubleTapZoom(!0,h.currItem),n=K===t;h.mouseZoomedIn=!n,h.zoomTo(n?h.currItem.initialZoomLevel:t,e,333),f[(n?"remove":"add")+"Class"](p,"pswp--zoomed-in")}}});function nn(){return yn.hash.substring(1)}function on(){rn&&clearTimeout(rn),sn&&clearTimeout(sn)}function an(){var e=nn(),t={};if(e.length<5)return t;var n,i=e.split("&");for(n=0;n<i.length;n++)if(i[n]){var o=i[n].split("=");o.length<2||(t[o[0]]=o[1])}if(y.galleryPIDs){var a=t.pid;for(n=t.pid=0;n<Ht.length;n++)if(Ht[n].pid===a){t.pid=n;break}}else t.pid=parseInt(t.pid,10)-1;return t.pid<0&&(t.pid=0),t}var rn,ln,sn,un,cn,dn,mn,pn,fn,hn,yn,xn,vn={history:!0,galleryUID:1},gn=function(){if(sn&&clearTimeout(sn),rt||Ce)sn=setTimeout(gn,500);else{un?clearTimeout(ln):un=!0;var e=Y+1,t=Bt(Y);t.hasOwnProperty("pid")&&(e=t.pid);var n=mn+"&gid="+y.galleryUID+"&pid="+e;pn||-1===yn.hash.indexOf(n)&&(hn=!0);var i=yn.href.split("#")[0]+"#"+n;xn?"#"+n!==window.location.hash&&history[pn?"replaceState":"pushState"]("",document.title,i):pn?yn.replace(i):yn.hash=n,pn=!0,ln=setTimeout(function(){un=!1},60)}};n("History",{publicMethods:{initHistory:function(){if(f.extend(y,vn,!0),y.history){yn=window.location,pn=fn=hn=!1,mn=nn(),xn="pushState"in history,-1<mn.indexOf("gid=")&&(mn=(mn=mn.split("&gid=")[0]).split("?gid=")[0]),a("afterChange",h.updateURL),a("unbindEvents",function(){f.unbind(window,"hashchange",h.onHashChange)});var e=function(){dn=!0,fn||(hn?history.back():mn?yn.hash=mn:xn?history.pushState("",document.title,yn.pathname+yn.search):yn.hash=""),on()};a("unbindEvents",function(){H&&e()}),a("destroy",function(){dn||e()}),a("firstUpdate",function(){Y=an().pid});var t=mn.indexOf("pid=");-1<t&&"&"===(mn=mn.substring(0,t)).slice(-1)&&(mn=mn.slice(0,-1)),setTimeout(function(){N&&f.bind(window,"hashchange",h.onHashChange)},40)}},onHashChange:function(){if(nn()===mn)return fn=!0,void h.close();un||(cn=!0,h.goTo(an().pid),cn=!1)},updateURL:function(){on(),cn||(pn?rn=setTimeout(gn,800):gn())}}}),f.extend(h,lt)}});/*! PhotoSwipe Default UI - 4.1.3 - 2019-01-08
* http://photoswipe.com
* Copyright (c) 2019 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")||(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))},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&&a<.95?v.hideControls():!x&&a>=.95&&v.showControls()});var a;l("onPinchClose",function(b){x&&b<.9?(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;g<f;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});var wc_single_product_params={"i18n_required_rating_text":"Please select a rating","review_rating_required":"yes","flexslider":{"rtl":!1,"animation":"slide","smoothHeight":!0,"directionNav":!1,"controlNav":"thumbnails","slideshow":!1,"animationSpeed":500,"animationLoop":!1,"allowOneSlide":!1},"zoom_enabled":"1","zoom_options":[],"photoswipe_enabled":"1","photoswipe_options":{"shareEl":!1,"closeOnScroll":!1,"history":!1,"hideAnimationDuration":0,"showAnimationDuration":0},"flexslider_enabled":"1"};jQuery(function(l){if("undefined"==typeof wc_single_product_params)return!1;l("body").on("init",".wc-tabs-wrapper, .woocommerce-tabs",function(){l(this).find(".wc-tab, .woocommerce-tabs .panel:not(.panel .panel)").hide();var t=window.location.hash,e=window.location.href,i=l(this).find(".wc-tabs, ul.tabs").first();0<=t.toLowerCase().indexOf("comment-")||"#reviews"===t||"#tab-reviews"===t||0<e.indexOf("comment-page-")||0<e.indexOf("cpage=")?i.find("li.reviews_tab a").click():"#tab-additional_information"===t?i.find("li.additional_information_tab a").click():i.find("li:first a").click()}).on("click",".wc-tabs li a, ul.tabs li a",function(t){t.preventDefault();var e=l(this),i=e.closest(".wc-tabs-wrapper, .woocommerce-tabs");i.find(".wc-tabs, ul.tabs").find("li").removeClass("active"),i.find(".wc-tab, .panel:not(.panel .panel)").hide(),e.closest("li").addClass("active"),i.find(e.attr("href")).show()}).on("click","a.woocommerce-review-link",function(){return l(".reviews_tab a").click(),!0}).on("init","#rating",function(){l("#rating").hide().before('<p class="stars">\t\t\t\t\t\t<span>\t\t\t\t\t\t\t<a class="star-1" href="#">1</a>\t\t\t\t\t\t\t<a class="star-2" href="#">2</a>\t\t\t\t\t\t\t<a class="star-3" href="#">3</a>\t\t\t\t\t\t\t<a class="star-4" href="#">4</a>\t\t\t\t\t\t\t<a class="star-5" href="#">5</a>\t\t\t\t\t\t</span>\t\t\t\t\t</p>')}).on("click","#respond p.stars a",function(){var t=l(this),e=l(this).closest("#respond").find("#rating"),i=l(this).closest(".stars");return e.val(t.text()),t.siblings("a").removeClass("active"),t.addClass("active"),i.addClass("selected"),!1}).on("click","#respond #submit",function(){var t=l(this).closest("#respond").find("#rating"),e=t.val();if(0<t.length&&!e&&"yes"===wc_single_product_params.review_rating_required)return window.alert(wc_single_product_params.i18n_required_rating_text),!1}),l(".wc-tabs-wrapper, .woocommerce-tabs, #rating").trigger("init");var e=function(t,e){this.$target=t,this.$images=l(".woocommerce-product-gallery__image",t),0!==this.$images.length?(t.data("product_gallery",this),this.flexslider_enabled=l.isFunction(l.fn.flexslider)&&wc_single_product_params.flexslider_enabled,this.zoom_enabled=l.isFunction(l.fn.zoom)&&wc_single_product_params.zoom_enabled,this.photoswipe_enabled="undefined"!=typeof PhotoSwipe&&wc_single_product_params.photoswipe_enabled,e&&(this.flexslider_enabled=!1!==e.flexslider_enabled&&this.flexslider_enabled,this.zoom_enabled=!1!==e.zoom_enabled&&this.zoom_enabled,this.photoswipe_enabled=!1!==e.photoswipe_enabled&&this.photoswipe_enabled),1===this.$images.length&&(this.flexslider_enabled=!1),this.initFlexslider=this.initFlexslider.bind(this),this.initZoom=this.initZoom.bind(this),this.initZoomForTarget=this.initZoomForTarget.bind(this),this.initPhotoswipe=this.initPhotoswipe.bind(this),this.onResetSlidePosition=this.onResetSlidePosition.bind(this),this.getGalleryItems=this.getGalleryItems.bind(this),this.openPhotoswipe=this.openPhotoswipe.bind(this),this.flexslider_enabled?(this.initFlexslider(e.flexslider),t.on("woocommerce_gallery_reset_slide_position",this.onResetSlidePosition)):this.$target.css("opacity",1),this.zoom_enabled&&(this.initZoom(),t.on("woocommerce_gallery_init_zoom",this.initZoom)),this.photoswipe_enabled&&this.initPhotoswipe()):this.$target.css("opacity",1)};e.prototype.initFlexslider=function(t){var e=this.$target,i=this,o=l.extend({selector:".woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image",start:function(){e.css("opacity",1)},after:function(t){i.initZoomForTarget(i.$images.eq(t.currentSlide))}},t);e.flexslider(o),l(".woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:eq(0) .wp-post-image").one("load",function(){var i=l(this);i&&setTimeout(function(){var t=i.closest(".woocommerce-product-gallery__image").height(),e=i.closest(".flex-viewport");t&&e&&e.height(t)},100)}).each(function(){this.complete&&l(this).trigger("load")})},e.prototype.initZoom=function(){this.initZoomForTarget(this.$images.first())},e.prototype.initZoomForTarget=function(t){if(!this.zoom_enabled)return!1;var e,i=this.$target.width(),o=!1;l(t).each(function(t,e){if(l(e).find("img").data("large_image_width")>i)return!(o=!0)}),o&&(e=l.extend({touch:!1},wc_single_product_params.zoom_options),"ontouchstart"in document.documentElement&&(e.on="click"),t.trigger("zoom.destroy"),t.zoom(e),setTimeout(function(){t.find(":hover").length&&t.trigger("mouseover")},100))},e.prototype.initPhotoswipe=function(){this.zoom_enabled&&0<this.$images.length?(this.$target.prepend('<a href="#" class="woocommerce-product-gallery__trigger">🔍</a>'),this.$target.on("click",".woocommerce-product-gallery__trigger",this.openPhotoswipe),this.$target.on("click",".woocommerce-product-gallery__image a",function(t){t.preventDefault()}),this.flexslider_enabled||this.$target.on("click",".woocommerce-product-gallery__image a",this.openPhotoswipe)):this.$target.on("click",".woocommerce-product-gallery__image a",this.openPhotoswipe)},e.prototype.onResetSlidePosition=function(){this.$target.flexslider(0)},e.prototype.getGalleryItems=function(){var t=this.$images,n=[];return 0<t.length&&t.each(function(t,e){var i,o,a,r,s=l(e).find("img");s.length&&(i=s.attr("data-large_image"),o=s.attr("data-large_image_width"),a=s.attr("data-large_image_height"),r={alt:s.attr("alt"),src:i,w:o,h:a,title:s.attr("data-caption")?s.attr("data-caption"):s.attr("title")},n.push(r))}),n},e.prototype.openPhotoswipe=function(t){t.preventDefault();var e=l(".pswp")[0],i=this.getGalleryItems(),o=l(t.target),a=o.is(".woocommerce-product-gallery__trigger")||o.is(".woocommerce-product-gallery__trigger img")?this.$target.find(".flex-active-slide"):o.closest(".woocommerce-product-gallery__image"),r=l.extend({index:l(a).index(),addCaptionHTMLFn:function(t,e){return t.title?(e.children[0].textContent=t.title,!0):(e.children[0].textContent="",!1)}},wc_single_product_params.photoswipe_options);new PhotoSwipe(e,PhotoSwipeUI_Default,i,r).init()},l.fn.wc_product_gallery=function(t){return new e(this,t||wc_single_product_params),this},l(".woocommerce-product-gallery").each(function(){l(this).trigger("wc-product-gallery-before-init",[this,wc_single_product_params]),l(this).wc_product_gallery(wc_single_product_params),l(this).trigger("wc-product-gallery-after-init",[this,wc_single_product_params])})});/*!
 * JavaScript Cookie v2.1.4
 * https://github.com/js-cookie/js-cookie
 *
 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
 * Released under the MIT license
 */
!function(e){var n=!1;if("function"==typeof define&&define.amd&&(define(e),n=!0),"object"==typeof exports&&(module.exports=e(),n=!0),!n){var o=window.Cookies,t=window.Cookies=e();t.noConflict=function(){return window.Cookies=o,t}}}(function(){function e(){for(var e=0,n={};e<arguments.length;e++){var o=arguments[e];for(var t in o)n[t]=o[t]}return n}function n(o){function t(n,r,i){var c;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(i=e({path:"/"},t.defaults,i)).expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*i.expires),i.expires=a}i.expires=i.expires?i.expires.toUTCString():"";try{c=JSON.stringify(r),/^[\{\[]/.test(c)&&(r=c)}catch(m){}r=o.write?o.write(r,n):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=(n=(n=encodeURIComponent(String(n))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var f="";for(var s in i)i[s]&&(f+="; "+s,!0!==i[s]&&(f+="="+i[s]));return document.cookie=n+"="+r+f}n||(c={});for(var p=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,u=0;u<p.length;u++){var l=p[u].split("="),C=l.slice(1).join("=");'"'===C.charAt(0)&&(C=C.slice(1,-1));try{var g=l[0].replace(d,decodeURIComponent);if(C=o.read?o.read(C,g):o(C,g)||C.replace(d,decodeURIComponent),this.json)try{C=JSON.parse(C)}catch(m){}if(n===g){c=C;break}n||(c[g]=C)}catch(m){}}return c}}return t.set=t,t.get=function(e){return t.call(t,e)},t.getJSON=function(){return t.apply({json:!0},[].slice.call(arguments))},t.defaults={},t.remove=function(n,o){t(n,"",e(o,{expires:-1}))},t.withConverter=n,t}return n(function(){})});jQuery(function(t){t(".woocommerce-ordering").on("change","select.orderby",function(){t(this).closest("form").submit()}),t("input.qty:not(.product-quantity input.qty)").each(function(){var o=parseFloat(t(this).attr("min"));0<=o&&parseFloat(t(this).val())<o&&t(this).val(o)});var e="store_notice"+(t(".woocommerce-store-notice").data("notice-id")||"");"hidden"===Cookies.get(e)?t(".woocommerce-store-notice").hide():t(".woocommerce-store-notice").show(),t(".woocommerce-store-notice__dismiss-link").click(function(o){Cookies.set(e,"hidden",{path:"/"}),t(".woocommerce-store-notice").hide(),o.preventDefault()}),t(".woocommerce-input-wrapper span.description").length&&t(document.body).on("click",function(){t(".woocommerce-input-wrapper span.description:visible").prop("aria-hidden",!0).slideUp(250)}),t(".woocommerce-input-wrapper").on("click",function(o){o.stopPropagation()}),t(".woocommerce-input-wrapper :input").on("keydown",function(o){var e=t(this).parent().find("span.description");if(27===o.which&&e.length&&e.is(":visible"))return e.prop("aria-hidden",!0).slideUp(250),o.preventDefault(),!1}).on("click focus",function(){var o=t(this).parent(),e=o.find("span.description");o.addClass("currentTarget"),t(".woocommerce-input-wrapper:not(.currentTarget) span.description:visible").prop("aria-hidden",!0).slideUp(250),e.length&&e.is(":hidden")&&e.prop("aria-hidden",!1).slideDown(250),o.removeClass("currentTarget")}),t.scroll_to_notices=function(o){o.length&&t("html, body").animate({scrollTop:o.offset().top-100},1e3)},t('.woocommerce form .woocommerce-Input[type="password"]').wrap('<span class="password-input"></span>'),t(".woocommerce form input").filter(":password").parent("span").addClass("password-input"),t(".password-input").append('<span class="show-password-input"></span>'),t(".show-password-input").click(function(){t(this).toggleClass("display-password"),t(this).hasClass("display-password")?t(this).siblings(['input[type="password"]']).prop("type","text"):t(this).siblings('input[type="text"]').prop("type","password")})});jQuery(function(r){if("undefined"==typeof wc_cart_fragments_params)return!1;var t=!0,o=wc_cart_fragments_params.cart_hash_key;try{t="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wc","test"),window.sessionStorage.removeItem("wc"),window.localStorage.setItem("wc","test"),window.localStorage.removeItem("wc")}catch(f){t=!1}function a(){t&&sessionStorage.setItem("wc_cart_created",(new Date).getTime())}function s(e){t&&(localStorage.setItem(o,e),sessionStorage.setItem(o,e))}var e={url:wc_cart_fragments_params.wc_ajax_url.toString().replace("%%endpoint%%","get_refreshed_fragments"),type:"POST",data:{time:(new Date).getTime()},timeout:wc_cart_fragments_params.request_timeout,success:function(e){e&&e.fragments&&(r.each(e.fragments,function(e,t){r(e).replaceWith(t)}),t&&(sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(e.fragments)),s(e.cart_hash),e.cart_hash&&a()),r(document.body).trigger("wc_fragments_refreshed"))},error:function(){r(document.body).trigger("wc_fragments_ajax_error")}};function n(){r.ajax(e)}if(t){var i=null;r(document.body).on("wc_fragment_refresh updated_wc_div",function(){n()}),r(document.body).on("added_to_cart removed_from_cart",function(e,t,r){var n=sessionStorage.getItem(o);null!==n&&n!==undefined&&""!==n||a(),sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(t)),s(r)}),r(document.body).on("wc_fragments_refreshed",function(){clearTimeout(i),i=setTimeout(n,864e5)}),r(window).on("storage onstorage",function(e){o===e.originalEvent.key&&localStorage.getItem(o)!==sessionStorage.getItem(o)&&n()}),r(window).on("pageshow",function(e){e.originalEvent.persisted&&(r(".widget_shopping_cart_content").empty(),r(document.body).trigger("wc_fragment_refresh"))});try{var c=r.parseJSON(sessionStorage.getItem(wc_cart_fragments_params.fragment_name)),_=sessionStorage.getItem(o),g=Cookies.get("woocommerce_cart_hash"),m=sessionStorage.getItem("wc_cart_created");if(null!==_&&_!==undefined&&""!==_||(_=""),null!==g&&g!==undefined&&""!==g||(g=""),_&&(null===m||m===undefined||""===m))throw"No cart_created";if(m){var d=+m+864e5,w=(new Date).getTime();if(d<w)throw"Fragment expired";i=setTimeout(n,d-w)}if(!c||!c["div.widget_shopping_cart_content"]||_!==g)throw"No fragment";r.each(c,function(e,t){r(e).replaceWith(t)}),r(document.body).trigger("wc_fragments_loaded")}catch(f){n()}}else n();0<Cookies.get("woocommerce_items_in_cart")?r(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show():r(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").hide(),r(document.body).on("adding_to_cart",function(){r(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show()}),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.widgetsPreview&&wp.customize.widgetsPreview.WidgetPartial&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(){n()})});"use strict";var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}var RocketBrowserCompatibilityChecker=function(){function RocketBrowserCompatibilityChecker(options){_classCallCheck(this,RocketBrowserCompatibilityChecker),this.passiveSupported=!1,this._checkPassiveOption(this),this.options=!!this.passiveSupported&&options}return _createClass(RocketBrowserCompatibilityChecker,[{key:"_checkPassiveOption",value:function(self){try{var options={get passive(){return!(self.passiveSupported=!0)}};window.addEventListener("test",null,options),window.removeEventListener("test",null,options)}catch(err){self.passiveSupported=!1}}},{key:"initRequestIdleCallback",value:function(){!1 in window&&(window.requestIdleCallback=function(cb){var start=Date.now();return setTimeout(function(){cb({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-start))}})},1)}),!1 in window&&(window.cancelIdleCallback=function(id){return clearTimeout(id)})}},{key:"isDataSaverModeOn",value:function(){return"connection"in navigator&&!0===navigator.connection.saveData}},{key:"supportsLinkPrefetch",value:function(){var elem=document.createElement("link");return elem.relList&&elem.relList.supports&&elem.relList.supports("prefetch")&&window.IntersectionObserver&&"isIntersecting"in IntersectionObserverEntry.prototype}},{key:"isSlowConnection",value:function(){return"connection"in navigator&&"effectiveType"in navigator.connection&&("2g"===navigator.connection.effectiveType||"slow-2g"===navigator.connection.effectiveType)}}]),RocketBrowserCompatibilityChecker}();"use strict";var _createClass=function(){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),e}}();function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var RocketLazyLoadScripts=function(){function r(e,t){_classCallCheck(this,r),this.attrName="data-rocketlazyloadscript",this.browser=t,this.options=this.browser.options,this.triggerEvents=e,this.userEventListener=this.triggerListener.bind(this)}return _createClass(r,[{key:"init",value:function(){this._addEventListener(this)}},{key:"reset",value:function(){this._removeEventListener(this)}},{key:"_addEventListener",value:function(t){this.triggerEvents.forEach(function(e){return window.addEventListener(e,t.userEventListener,t.options)})}},{key:"_removeEventListener",value:function(t){this.triggerEvents.forEach(function(e){return window.removeEventListener(e,t.userEventListener,t.options)})}},{key:"_loadScriptSrc",value:function(){var r=this;document.querySelectorAll("script["+this.attrName+"]").forEach(function(e){var t=e.getAttribute(r.attrName);e.setAttribute("src",t),e.removeAttribute(r.attrName)}),this.reset()}},{key:"triggerListener",value:function(){this._loadScriptSrc(),this._removeEventListener(this)}}],[{key:"run",value:function(){if(RocketBrowserCompatibilityChecker){new r(["keydown","mouseover","touchmove","touchstart"],new RocketBrowserCompatibilityChecker({passive:!0})).init()}}}]),r}();RocketLazyLoadScripts.run();var RocketPreloadLinksConfig={"excludeUris":"\/(.+\/)?feed\/?.+\/?|\/(?:.+\/)?embed\/|\/checkout\/|\/cart\/|\/my-account\/|\/wc-api\/v(.*)|\/(index\\.php\/)?wp\\-json(\/.*|$)|\/wp-admin\/|\/logout\/|\/wp-login.php","usesTrailingSlash":"1","imageExt":"jpg|jpeg|gif|png|tiff|bmp|webp|avif","fileExt":"jpg|jpeg|gif|png|tiff|bmp|webp|avif|php|pdf|html|htm","siteUrl":"https:\/\/new.thesmartsensory.com","onHoverDelay":"100","rateThrottle":"3"};"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var t=function(){function n(e,t){i(this,n),this.browser=e,this.config=t,this.options=this.browser.options,this.prefetched=new Set,this.eventTime=null,this.threshold=1111,this.numOnHover=0}return e(n,[{key:"init",value:function(){!this.browser.supportsLinkPrefetch()||this.browser.isDataSaverModeOn()||this.browser.isSlowConnection()||(this.regex={excludeUris:RegExp(this.config.excludeUris,"i"),images:RegExp(".("+this.config.imageExt+")$","i"),fileExt:RegExp(".("+this.config.fileExt+")$","i")},this._initListeners(this))}},{key:"_initListeners",value:function(e){-1<this.config.onHoverDelay&&document.addEventListener("mouseover",e.listener.bind(e),e.listenerOptions),document.addEventListener("mousedown",e.listener.bind(e),e.listenerOptions),document.addEventListener("touchstart",e.listener.bind(e),e.listenerOptions)}},{key:"listener",value:function(e){var t=e.target.closest("a"),n=this._prepareUrl(t);if(null!==n)switch(e.type){case"mousedown":case"touchstart":this._addPrefetchLink(n);break;case"mouseover":this._earlyPrefetch(t,n,"mouseout")}}},{key:"_earlyPrefetch",value:function(t,e,n){var i=this,r=setTimeout(function(){if(r=null,0===i.numOnHover)setTimeout(function(){return i.numOnHover=0},1e3);else if(i.numOnHover>i.config.rateThrottle)return;i.numOnHover++,i._addPrefetchLink(e)},this.config.onHoverDelay);t.addEventListener(n,function e(){t.removeEventListener(n,e,{passive:!0}),null!==r&&(clearTimeout(r),r=null)},{passive:!0})}},{key:"_addPrefetchLink",value:function(i){return this.prefetched.add(i.href),new Promise(function(e,t){var n=document.createElement("link");n.rel="prefetch",n.href=i.href,n.onload=e,n.onerror=t,document.head.appendChild(n)}).catch(function(){})}},{key:"_prepareUrl",value:function(e){if(null===e||"object"!==(void 0===e?"undefined":r(e))||!1 in e||-1===["http:","https:"].indexOf(e.protocol))return null;var t=e.href.substring(0,this.config.siteUrl.length),n=this._getPathname(e.href,t),i={original:e.href,protocol:e.protocol,origin:t,pathname:n,href:t+n};return this._isLinkOk(i)?i:null}},{key:"_getPathname",value:function(e,t){var n=t?e.substring(this.config.siteUrl.length):e;return n.startsWith("/")||(n="/"+n),this._shouldAddTrailingSlash(n)?n+"/":n}},{key:"_shouldAddTrailingSlash",value:function(e){return this.config.usesTrailingSlash&&!e.endsWith("/")&&!this.regex.fileExt.test(e)}},{key:"_isLinkOk",value:function(e){return null!==e&&"object"===(void 0===e?"undefined":r(e))&&(!this.prefetched.has(e.href)&&e.origin===this.config.siteUrl&&-1===e.href.indexOf("?")&&-1===e.href.indexOf("#")&&!this.regex.excludeUris.test(e.href)&&!this.regex.images.test(e.href))}}],[{key:"run",value:function(){"undefined"!=typeof RocketPreloadLinksConfig&&new n(new RocketBrowserCompatibilityChecker({capture:!0,passive:!0}),RocketPreloadLinksConfig).init()}}]),n}();t.run();!function(t){function e(){var t=location.href;return hashtag=-1!==t.indexOf("#prettyPhoto")&&decodeURI(t.substring(t.indexOf("#prettyPhoto")+1,t.length)),hashtag&&(hashtag=hashtag.replace(/<|>/g,"")),hashtag}function i(){"undefined"!=typeof theRel&&(location.hash=theRel+"/"+rel_index+"/")}function p(){-1!==location.href.indexOf("#prettyPhoto")&&(location.hash="prettyPhoto")}function o(t,e){var i="[\\?&]"+(t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"))+"=([^&#]*)",p=new RegExp(i).exec(e);return null==p?"":p[1]}t.prettyPhoto={version:"3.1.6"},t.fn.prettyPhoto=function(a){function s(){t(".pp_loaderIcon").hide(),projectedTop=scroll_pos.scrollTop+(I/2-u.containerHeight/2),projectedTop<0&&(projectedTop=0),$ppt.fadeTo(settings.animation_speed,1),$pp_pic_holder.find(".pp_content").animate({height:u.contentHeight,width:u.contentWidth},settings.animation_speed),$pp_pic_holder.animate({top:projectedTop,left:j/2-u.containerWidth/2<0?0:j/2-u.containerWidth/2,width:u.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(u.height).width(u.width),$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed),isSet&&"image"==h(pp_images[set_position])?$pp_pic_holder.find(".pp_hoverContainer").show():$pp_pic_holder.find(".pp_hoverContainer").hide(),settings.allow_expand&&(u.resized?t("a.pp_expand,a.pp_contract").show():t("a.pp_expand").hide()),!settings.autoplay_slideshow||P||v||t.prettyPhoto.startSlideshow(),settings.changepicturecallback(),v=!0}),m(),a.ajaxcallback()}function n(e){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden"),$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){t(".pp_loaderIcon").show(),e()})}function l(e){e>1?t(".pp_nav").show():t(".pp_nav").hide()}function r(t,e){if(resized=!1,d(t,e),imageWidth=t,imageHeight=e,(k>j||b>I)&&doresize&&settings.allow_resize&&!$){for(resized=!0,fitting=!1;!fitting;)k>j?(imageWidth=j-200,imageHeight=e/t*imageWidth):b>I?(imageHeight=I-200,imageWidth=t/e*imageHeight):fitting=!0,b=imageHeight,k=imageWidth;(k>j||b>I)&&r(k,b),d(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(b),containerWidth:Math.floor(k)+2*settings.horizontal_padding,contentHeight:Math.floor(y),contentWidth:Math.floor(w),resized:resized}}function d(e,i){e=parseFloat(e),i=parseFloat(i),$pp_details=$pp_pic_holder.find(".pp_details"),$pp_details.width(e),detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom")),$pp_details=$pp_details.clone().addClass(settings.theme).width(e).appendTo(t("body")).css({position:"absolute",top:-1e4}),detailsHeight+=$pp_details.height(),detailsHeight=detailsHeight<=34?36:detailsHeight,$pp_details.remove(),$pp_title=$pp_pic_holder.find(".ppt"),$pp_title.width(e),titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom")),$pp_title=$pp_title.clone().appendTo(t("body")).css({position:"absolute",top:-1e4}),titleHeight+=$pp_title.height(),$pp_title.remove(),y=i+detailsHeight,w=e,b=y+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height(),k=e}function h(t){return t.match(/youtube\.com\/watch/i)||t.match(/youtu\.be/i)?"youtube":t.match(/vimeo\.com/i)?"vimeo":t.match(/\b.mov\b/i)?"quicktime":t.match(/\b.swf\b/i)?"flash":t.match(/\biframe=true\b/i)?"iframe":t.match(/\bajax=true\b/i)?"ajax":t.match(/\bcustom=true\b/i)?"custom":"#"==t.substr(0,1)?"inline":"image"}function c(){if(doresize&&"undefined"!=typeof $pp_pic_holder){if(scroll_pos=_(),contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width(),projectedTop=I/2+scroll_pos.scrollTop-contentHeight/2,projectedTop<0&&(projectedTop=0),contentHeight>I)return;$pp_pic_holder.css({top:projectedTop,left:j/2+scroll_pos.scrollLeft-contentwidth/2})}}function _(){return self.pageYOffset?{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}:document.documentElement&&document.documentElement.scrollTop?{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}:document.body?{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}:void 0}function g(){I=t(window).height(),j=t(window).width(),"undefined"!=typeof $pp_overlay&&$pp_overlay.height(t(document).height()).width(j)}function m(){isSet&&settings.overlay_gallery&&"image"==h(pp_images[set_position])?(itemWidth=57,navWidth="facebook"==settings.theme||"pp_default"==settings.theme?50:30,itemsPerPage=Math.floor((u.containerWidth-100-navWidth)/itemWidth),itemsPerPage=itemsPerPage<pp_images.length?itemsPerPage:pp_images.length,totalPage=Math.ceil(pp_images.length/itemsPerPage)-1,0==totalPage?(navWidth=0,$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").hide()):$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").show(),galleryWidth=itemsPerPage*itemWidth,fullGalleryWidth=pp_images.length*itemWidth,$pp_gallery.css("margin-left",-(galleryWidth/2+navWidth/2)).find("div:first").width(galleryWidth+5).find("ul").width(fullGalleryWidth).find("li.selected").removeClass("selected"),goToPage=Math.floor(set_position/itemsPerPage)<totalPage?Math.floor(set_position/itemsPerPage):totalPage,t.prettyPhoto.changeGalleryPage(goToPage),$pp_gallery_li.filter(":eq("+set_position+")").addClass("selected")):$pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave")}function f(e){if(settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href))),settings.markup=settings.markup.replace("{pp_social}",""),t("body").append(settings.markup),$pp_pic_holder=t(".pp_pic_holder"),$ppt=t(".ppt"),$pp_overlay=t("div.pp_overlay"),isSet&&settings.overlay_gallery){currentGalleryPage=0,toInject="";for(var i=0;i<pp_images.length;i++)pp_images[i].match(/\b(jpg|jpeg|png|gif)\b/gi)?(classname="",img_src=pp_images[i]):(classname="default",img_src=""),toInject+="<li class='"+classname+"'><a href='#'><img src='"+img_src+"' width='50' alt='' /></a></li>";toInject=settings.gallery_markup.replace(/{gallery}/g,toInject),$pp_pic_holder.find("#pp_full_res").after(toInject),$pp_gallery=t(".pp_pic_holder .pp_gallery"),$pp_gallery_li=$pp_gallery.find("li"),$pp_gallery.find(".pp_arrow_next").click(function(){return t.prettyPhoto.changeGalleryPage("next"),t.prettyPhoto.stopSlideshow(),!1}),$pp_gallery.find(".pp_arrow_previous").click(function(){return t.prettyPhoto.changeGalleryPage("previous"),t.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()}),itemWidth=57,$pp_gallery_li.each(function(e){t(this).find("a").click(function(){return t.prettyPhoto.changePage(e),t.prettyPhoto.stopSlideshow(),!1})})}settings.slideshow&&($pp_pic_holder.find(".pp_nav").prepend('<a href="#" class="pp_play">Play</a>'),$pp_pic_holder.find(".pp_nav .pp_play").click(function(){return t.prettyPhoto.startSlideshow(),!1})),$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme),$pp_overlay.css({opacity:0,height:t(document).height(),width:t(window).width()}).bind("click",function(){settings.modal||t.prettyPhoto.close()}),t("a.pp_close").bind("click",function(){return t.prettyPhoto.close(),!1}),settings.allow_expand&&t("a.pp_expand").bind("click",function(e){return t(this).hasClass("pp_expand")?(t(this).removeClass("pp_expand").addClass("pp_contract"),doresize=!1):(t(this).removeClass("pp_contract").addClass("pp_expand"),doresize=!0),n(function(){t.prettyPhoto.open()}),!1}),$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){return t.prettyPhoto.changePage("previous"),t.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){return t.prettyPhoto.changePage("next"),t.prettyPhoto.stopSlideshow(),!1}),c()}a=jQuery.extend({hook:"rel",animation_speed:"fast",ajaxcallback:function(){},slideshow:5e3,autoplay_slideshow:!1,opacity:.8,show_title:!0,allow_resize:!0,allow_expand:!0,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:!1,wmode:"opaque",autoplay:!0,modal:!1,deeplinking:!0,overlay_gallery:!0,overlay_gallery_max:30,keyboard_shortcuts:!0,changepicturecallback:function(){},callback:function(){},ie6_fallback:!0,markup:'<div class="pp_pic_holder"> \t\t\t\t\t\t<div class="ppt">&nbsp;</div> \t\t\t\t\t\t<div class="pp_top"> \t\t\t\t\t\t\t<div class="pp_left"></div> \t\t\t\t\t\t\t<div class="pp_middle"></div> \t\t\t\t\t\t\t<div class="pp_right"></div> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="pp_content_container"> \t\t\t\t\t\t\t<div class="pp_left"> \t\t\t\t\t\t\t<div class="pp_right"> \t\t\t\t\t\t\t\t<div class="pp_content"> \t\t\t\t\t\t\t\t\t<div class="pp_loaderIcon"></div> \t\t\t\t\t\t\t\t\t<div class="pp_fade"> \t\t\t\t\t\t\t\t\t\t<a href="#" class="pp_expand" title="Expand the image">Expand</a> \t\t\t\t\t\t\t\t\t\t<div class="pp_hoverContainer"> \t\t\t\t\t\t\t\t\t\t\t<a class="pp_next" href="#">next</a> \t\t\t\t\t\t\t\t\t\t\t<a class="pp_previous" href="#">previous</a> \t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t<div id="pp_full_res"></div> \t\t\t\t\t\t\t\t\t\t<div class="pp_details"> \t\t\t\t\t\t\t\t\t\t\t<div class="pp_nav"> \t\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_previous">Previous</a> \t\t\t\t\t\t\t\t\t\t\t\t<p class="currentTextHolder">0/0</p> \t\t\t\t\t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_next">Next</a> \t\t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t\t\t<p class="pp_description"></p> \t\t\t\t\t\t\t\t\t\t\t<div class="pp_social">{pp_social}</div> \t\t\t\t\t\t\t\t\t\t\t<a class="pp_close" href="#">Close</a> \t\t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="pp_bottom"> \t\t\t\t\t\t\t<div class="pp_left"></div> \t\t\t\t\t\t\t<div class="pp_middle"></div> \t\t\t\t\t\t\t<div class="pp_right"></div> \t\t\t\t\t\t</div> \t\t\t\t\t</div> \t\t\t\t\t<div class="pp_overlay"></div>',gallery_markup:'<div class="pp_gallery"> \t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_previous">Previous</a> \t\t\t\t\t\t\t\t<div> \t\t\t\t\t\t\t\t\t<ul> \t\t\t\t\t\t\t\t\t\t{gallery} \t\t\t\t\t\t\t\t\t</ul> \t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t<a href="#" class="pp_arrow_next">Next</a> \t\t\t\t\t\t\t</div>',image_markup:'<img id="fullResImage" src="{path}" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="https://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="https://www.apple.com/quicktime/download/"></embed></object>',iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',inline_markup:'<div class="pp_inline">{content}</div>',custom_markup:"",social_tools:'<div class="twitter"><a href="//twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"><\/script></div><div class="facebook"><iframe src="//www.facebook.com/plugins/like.php?locale=en_US&href={location_href}&amp;layout=button_count&amp;show_faces=true&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div>'},a);var u,v,y,w,b,k,P,x=this,$=!1,I=t(window).height(),j=t(window).width();return doresize=!0,scroll_pos=_(),t(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){c(),g()}),a.keyboard_shortcuts&&t(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(e){if("undefined"!=typeof $pp_pic_holder&&$pp_pic_holder.is(":visible"))switch(e.keyCode){case 37:t.prettyPhoto.changePage("previous"),e.preventDefault();break;case 39:t.prettyPhoto.changePage("next"),e.preventDefault();break;case 27:settings.modal||t.prettyPhoto.close(),e.preventDefault()}}),t.prettyPhoto.initialize=function(){return settings=a,"pp_default"==settings.theme&&(settings.horizontal_padding=16),theRel=t(this).attr(settings.hook),galleryRegExp=/\[(?:.*)\]/,isSet=!!galleryRegExp.exec(theRel),pp_images=isSet?jQuery.map(x,function(e,i){if(-1!=t(e).attr(settings.hook).indexOf(theRel))return t(e).attr("href")}):t.makeArray(t(this).attr("href")),pp_titles=isSet?jQuery.map(x,function(e,i){if(-1!=t(e).attr(settings.hook).indexOf(theRel))return t(e).find("img").attr("alt")?t(e).find("img").attr("alt"):""}):t.makeArray(t(this).find("img").attr("alt")),pp_descriptions=isSet?jQuery.map(x,function(e,i){if(-1!=t(e).attr(settings.hook).indexOf(theRel))return t(e).attr("title")?t(e).attr("title"):""}):t.makeArray(t(this).attr("title")),pp_images.length>settings.overlay_gallery_max&&(settings.overlay_gallery=!1),set_position=jQuery.inArray(t(this).attr("href"),pp_images),rel_index=isSet?set_position:t("a["+settings.hook+"^='"+theRel+"']").index(t(this)),f(),settings.allow_resize&&t(window).bind("scroll.prettyphoto",function(){c()}),t.prettyPhoto.open(),!1},t.prettyPhoto.open=function(e){return"undefined"==typeof settings&&(settings=a,pp_images=t.makeArray(arguments[0]),pp_titles=arguments[1]?t.makeArray(arguments[1]):t.makeArray(""),pp_descriptions=arguments[2]?t.makeArray(arguments[2]):t.makeArray(""),isSet=pp_images.length>1,set_position=arguments[3]?arguments[3]:0,f(e.target)),settings.hideflash&&t("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden"),l(t(pp_images).length),t(".pp_loaderIcon").show(),settings.deeplinking&&i(),settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href)),$pp_pic_holder.find(".pp_social").html(facebook_like_link)),$ppt.is(":hidden")&&$ppt.css("opacity",0).show(),$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity),$pp_pic_holder.find(".currentTextHolder").text(set_position+1+settings.counter_separator_label+t(pp_images).length),"undefined"!=typeof pp_descriptions[set_position]&&""!=pp_descriptions[set_position]?$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position])):$pp_pic_holder.find(".pp_description").hide(),movie_width=parseFloat(o("width",pp_images[set_position]))?o("width",pp_images[set_position]):settings.default_width.toString(),movie_height=parseFloat(o("height",pp_images[set_position]))?o("height",pp_images[set_position]):settings.default_height.toString(),$=!1,-1!=movie_height.indexOf("%")&&(movie_height=parseFloat(t(window).height()*parseFloat(movie_height)/100-150),$=!0),-1!=movie_width.indexOf("%")&&(movie_width=parseFloat(t(window).width()*parseFloat(movie_width)/100-150),$=!0),$pp_pic_holder.fadeIn(function(){switch(settings.show_title&&""!=pp_titles[set_position]&&"undefined"!=typeof pp_titles[set_position]?$ppt.html(unescape(pp_titles[set_position])):$ppt.html("&nbsp;"),imgPreloader="",skipInjection=!1,h(pp_images[set_position])){case"image":imgPreloader=new Image,nextImage=new Image,isSet&&set_position<t(pp_images).length-1&&(nextImage.src=pp_images[set_position+1]),prevImage=new Image,isSet&&pp_images[set_position-1]&&(prevImage.src=pp_images[set_position-1]),$pp_pic_holder.find("#pp_full_res")[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]),imgPreloader.onload=function(){u=r(imgPreloader.width,imgPreloader.height),s()},imgPreloader.onerror=function(){alert("Image cannot be loaded. Make sure the path is correct and image exist."),t.prettyPhoto.close()},imgPreloader.src=pp_images[set_position];break;case"youtube":u=r(movie_width,movie_height),movie_id=o("v",pp_images[set_position]),""==movie_id&&(movie_id=pp_images[set_position].split("youtu.be/"),movie_id=movie_id[1],movie_id.indexOf("?")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("?"))),movie_id.indexOf("&")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("&")))),movie="//www.youtube.com/embed/"+movie_id,o("rel",pp_images[set_position])?movie+="?rel="+o("rel",pp_images[set_position]):movie+="?rel=1",settings.autoplay&&(movie+="&autoplay=1"),toInject=settings.iframe_markup.replace(/{width}/g,u.width).replace(/{height}/g,u.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":u=r(movie_width,movie_height),movie_id=pp_images[set_position];var e=/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/,i=movie_id.match(e);movie="//player.vimeo.com/video/"+i[3]+"?title=0&amp;byline=0&amp;portrait=0",settings.autoplay&&(movie+="&autoplay=1;"),vimeo_width=u.width+"/embed/?moog_width="+u.width,toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,u.height).replace(/{path}/g,movie);break;case"quicktime":(u=r(movie_width,movie_height)).height+=15,u.contentHeight+=15,u.containerHeight+=15,toInject=settings.quicktime_markup.replace(/{width}/g,u.width).replace(/{height}/g,u.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":u=r(movie_width,movie_height),flash_vars=pp_images[set_position],flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length),filename=pp_images[set_position],filename=filename.substring(0,filename.indexOf("?")),toInject=settings.flash_markup.replace(/{width}/g,u.width).replace(/{height}/g,u.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":u=r(movie_width,movie_height),frame_url=pp_images[set_position],frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1),toInject=settings.iframe_markup.replace(/{width}/g,u.width).replace(/{height}/g,u.height).replace(/{path}/g,frame_url);break;case"ajax":doresize=!1,u=r(movie_width,movie_height),doresize=!0,skipInjection=!0,t.get(pp_images[set_position],function(t){toInject=settings.inline_markup.replace(/{content}/g,t),$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,s()});break;case"custom":u=r(movie_width,movie_height),toInject=settings.custom_markup;break;case"inline":myClone=t(pp_images[set_position]).clone().append('<br clear="all" />').css({width:settings.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline"></div></div>').appendTo(t("body")).show(),doresize=!1,u=r(t(myClone).width(),t(myClone).height()),doresize=!0,t(myClone).remove(),toInject=settings.inline_markup.replace(/{content}/g,t(pp_images[set_position]).html())}imgPreloader||skipInjection||($pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,s())}),!1},t.prettyPhoto.changePage=function(e){currentGalleryPage=0,"previous"==e?--set_position<0&&(set_position=t(pp_images).length-1):"next"==e?++set_position>t(pp_images).length-1&&(set_position=0):set_position=e,rel_index=set_position,doresize||(doresize=!0),settings.allow_expand&&t(".pp_contract").removeClass("pp_contract").addClass("pp_expand"),n(function(){t.prettyPhoto.open()})},t.prettyPhoto.changeGalleryPage=function(t){"next"==t?++currentGalleryPage>totalPage&&(currentGalleryPage=0):"previous"==t?--currentGalleryPage<0&&(currentGalleryPage=totalPage):currentGalleryPage=t,slide_speed="next"==t||"previous"==t?settings.animation_speed:0,slide_to=currentGalleryPage*(itemsPerPage*itemWidth),$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)},t.prettyPhoto.startSlideshow=function(){void 0===P?($pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){return t.prettyPhoto.stopSlideshow(),!1}),P=setInterval(t.prettyPhoto.startSlideshow,settings.slideshow)):t.prettyPhoto.changePage("next")},t.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){return t.prettyPhoto.startSlideshow(),!1}),clearInterval(P),P=undefined},t.prettyPhoto.close=function(){$pp_overlay.is(":animated")||(t.prettyPhoto.stopSlideshow(),$pp_pic_holder.stop().find("object,embed").css("visibility","hidden"),t("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){t(this).remove()}),$pp_overlay.fadeOut(settings.animation_speed,function(){settings.hideflash&&t("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible"),t(this).remove(),t(window).unbind("scroll.prettyphoto"),p(),settings.callback(),doresize=!0,v=!1,delete settings}))},!pp_alreadyInitialized&&e()&&(pp_alreadyInitialized=!0,hashIndex=e(),hashRel=hashIndex,hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1),hashRel=hashRel.substring(0,hashRel.indexOf("/")),setTimeout(function(){t("a["+a.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50)),this.unbind("click.prettyphoto").bind("click.prettyphoto",t.prettyPhoto.initialize)}}(jQuery);var pp_alreadyInitialized=!1;/*! This file is auto-generated */
(function(){function r(){}var n=this,t=n._,e=Array.prototype,o=Object.prototype,u=Function.prototype,i=e.push,c=e.slice,s=o.toString,a=o.hasOwnProperty,f=Array.isArray,l=Object.keys,p=u.bind,h=Object.create,v=function(n){return n instanceof v?n:this instanceof v?void(this._wrapped=n):new v(n)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=v),exports._=v):n._=v,v.VERSION="1.8.3";var y=function(u,i,n){if(void 0===i)return u;switch(null==n?3:n){case 1:return function(n){return u.call(i,n)};case 2:return function(n,t){return u.call(i,n,t)};case 3:return function(n,t,r){return u.call(i,n,t,r)};case 4:return function(n,t,r,e){return u.call(i,n,t,r,e)}}return function(){return u.apply(i,arguments)}},d=function(n,t,r){return null==n?v.identity:v.isFunction(n)?y(n,t,r):v.isObject(n)?v.matcher(n):v.property(n)};v.iteratee=function(n,t){return d(n,t,1/0)};function g(c,f){return function(n){var t=arguments.length;if(t<2||null==n)return n;for(var r=1;r<t;r++)for(var e=arguments[r],u=c(e),i=u.length,o=0;o<i;o++){var a=u[o];f&&void 0!==n[a]||(n[a]=e[a])}return n}}function m(n){if(!v.isObject(n))return{};if(h)return h(n);r.prototype=n;var t=new r;return r.prototype=null,t}function b(t){return function(n){return null==n?void 0:n[t]}}var x=Math.pow(2,53)-1,_=b("length"),j=function(n){var t=_(n);return"number"==typeof t&&0<=t&&t<=x};function w(a){return function(n,t,r,e){t=y(t,e,4);var u=!j(n)&&v.keys(n),i=(u||n).length,o=0<a?0:i-1;return arguments.length<3&&(r=n[u?u[o]:o],o+=a),function(n,t,r,e,u,i){for(;0<=u&&u<i;u+=a){var o=e?e[u]:u;r=t(r,n[o],o,n)}return r}(n,t,r,u,o,i)}}v.each=v.forEach=function(n,t,r){var e,u;if(t=y(t,r),j(n))for(e=0,u=n.length;e<u;e++)t(n[e],e,n);else{var i=v.keys(n);for(e=0,u=i.length;e<u;e++)t(n[i[e]],i[e],n)}return n},v.map=v.collect=function(n,t,r){t=d(t,r);for(var e=!j(n)&&v.keys(n),u=(e||n).length,i=Array(u),o=0;o<u;o++){var a=e?e[o]:o;i[o]=t(n[a],a,n)}return i},v.reduce=v.foldl=v.inject=w(1),v.reduceRight=v.foldr=w(-1),v.find=v.detect=function(n,t,r){var e;if(void 0!==(e=j(n)?v.findIndex(n,t,r):v.findKey(n,t,r))&&-1!==e)return n[e]},v.filter=v.select=function(n,e,t){var u=[];return e=d(e,t),v.each(n,function(n,t,r){e(n,t,r)&&u.push(n)}),u},v.reject=function(n,t,r){return v.filter(n,v.negate(d(t)),r)},v.every=v.all=function(n,t,r){t=d(t,r);for(var e=!j(n)&&v.keys(n),u=(e||n).length,i=0;i<u;i++){var o=e?e[i]:i;if(!t(n[o],o,n))return!1}return!0},v.some=v.any=function(n,t,r){t=d(t,r);for(var e=!j(n)&&v.keys(n),u=(e||n).length,i=0;i<u;i++){var o=e?e[i]:i;if(t(n[o],o,n))return!0}return!1},v.contains=v.includes=v.include=function(n,t,r,e){return j(n)||(n=v.values(n)),"number"==typeof r&&!e||(r=0),0<=v.indexOf(n,t,r)},v.invoke=function(n,r){var e=c.call(arguments,2),u=v.isFunction(r);return v.map(n,function(n){var t=u?r:n[r];return null==t?t:t.apply(n,e)})},v.pluck=function(n,t){return v.map(n,v.property(t))},v.where=function(n,t){return v.filter(n,v.matcher(t))},v.findWhere=function(n,t){return v.find(n,v.matcher(t))},v.max=function(n,e,t){var r,u,i=-1/0,o=-1/0;if(null==e&&null!=n)for(var a=0,c=(n=j(n)?n:v.values(n)).length;a<c;a++)r=n[a],i<r&&(i=r);else e=d(e,t),v.each(n,function(n,t,r){u=e(n,t,r),(o<u||u===-1/0&&i===-1/0)&&(i=n,o=u)});return i},v.min=function(n,e,t){var r,u,i=1/0,o=1/0;if(null==e&&null!=n)for(var a=0,c=(n=j(n)?n:v.values(n)).length;a<c;a++)(r=n[a])<i&&(i=r);else e=d(e,t),v.each(n,function(n,t,r){((u=e(n,t,r))<o||u===1/0&&i===1/0)&&(i=n,o=u)});return i},v.shuffle=function(n){for(var t,r=j(n)?n:v.values(n),e=r.length,u=Array(e),i=0;i<e;i++)(t=v.random(0,i))!==i&&(u[i]=u[t]),u[t]=r[i];return u},v.sample=function(n,t,r){return null==t||r?(j(n)||(n=v.values(n)),n[v.random(n.length-1)]):v.shuffle(n).slice(0,Math.max(0,t))},v.sortBy=function(n,e,t){return e=d(e,t),v.pluck(v.map(n,function(n,t,r){return{value:n,index:t,criteria:e(n,t,r)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(e<r||void 0===r)return 1;if(r<e||void 0===e)return-1}return n.index-t.index}),"value")};function A(o){return function(e,u,n){var i={};return u=d(u,n),v.each(e,function(n,t){var r=u(n,t,e);o(i,n,r)}),i}}v.groupBy=A(function(n,t,r){v.has(n,r)?n[r].push(t):n[r]=[t]}),v.indexBy=A(function(n,t,r){n[r]=t}),v.countBy=A(function(n,t,r){v.has(n,r)?n[r]++:n[r]=1}),v.toArray=function(n){return n?v.isArray(n)?c.call(n):j(n)?v.map(n,v.identity):v.values(n):[]},v.size=function(n){return null==n?0:j(n)?n.length:v.keys(n).length},v.partition=function(n,e,t){e=d(e,t);var u=[],i=[];return v.each(n,function(n,t,r){(e(n,t,r)?u:i).push(n)}),[u,i]},v.first=v.head=v.take=function(n,t,r){if(null!=n)return null==t||r?n[0]:v.initial(n,n.length-t)},v.initial=function(n,t,r){return c.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))},v.last=function(n,t,r){if(null!=n)return null==t||r?n[n.length-1]:v.rest(n,Math.max(0,n.length-t))},v.rest=v.tail=v.drop=function(n,t,r){return c.call(n,null==t||r?1:t)},v.compact=function(n){return v.filter(n,v.identity)};var O=function(n,t,r,e){for(var u=[],i=0,o=e||0,a=_(n);o<a;o++){var c=n[o];if(j(c)&&(v.isArray(c)||v.isArguments(c))){t||(c=O(c,t,r));var f=0,l=c.length;for(u.length+=l;f<l;)u[i++]=c[f++]}else r||(u[i++]=c)}return u};function k(i){return function(n,t,r){t=d(t,r);for(var e=_(n),u=0<i?0:e-1;0<=u&&u<e;u+=i)if(t(n[u],u,n))return u;return-1}}function F(i,o,a){return function(n,t,r){var e=0,u=_(n);if("number"==typeof r)0<i?e=0<=r?r:Math.max(r+u,e):u=0<=r?Math.min(r+1,u):r+u+1;else if(a&&r&&u)return n[r=a(n,t)]===t?r:-1;if(t!=t)return 0<=(r=o(c.call(n,e,u),v.isNaN))?r+e:-1;for(r=0<i?e:u-1;0<=r&&r<u;r+=i)if(n[r]===t)return r;return-1}}v.flatten=function(n,t){return O(n,t,!1)},v.without=function(n){return v.difference(n,c.call(arguments,1))},v.uniq=v.unique=function(n,t,r,e){v.isBoolean(t)||(e=r,r=t,t=!1),null!=r&&(r=d(r,e));for(var u=[],i=[],o=0,a=_(n);o<a;o++){var c=n[o],f=r?r(c,o,n):c;t?(o&&i===f||u.push(c),i=f):r?v.contains(i,f)||(i.push(f),u.push(c)):v.contains(u,c)||u.push(c)}return u},v.union=function(){return v.uniq(O(arguments,!0,!0))},v.intersection=function(n){for(var t=[],r=arguments.length,e=0,u=_(n);e<u;e++){var i=n[e];if(!v.contains(t,i)){for(var o=1;o<r&&v.contains(arguments[o],i);o++);o===r&&t.push(i)}}return t},v.difference=function(n){var t=O(arguments,!0,!0,1);return v.filter(n,function(n){return!v.contains(t,n)})},v.zip=function(){return v.unzip(arguments)},v.unzip=function(n){for(var t=n&&v.max(n,_).length||0,r=Array(t),e=0;e<t;e++)r[e]=v.pluck(n,e);return r},v.object=function(n,t){for(var r={},e=0,u=_(n);e<u;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},v.findIndex=k(1),v.findLastIndex=k(-1),v.sortedIndex=function(n,t,r,e){for(var u=(r=d(r,e,1))(t),i=0,o=_(n);i<o;){var a=Math.floor((i+o)/2);r(n[a])<u?i=a+1:o=a}return i},v.indexOf=F(1,v.findIndex,v.sortedIndex),v.lastIndexOf=F(-1,v.findLastIndex),v.range=function(n,t,r){null==t&&(t=n||0,n=0),r=r||1;for(var e=Math.max(Math.ceil((t-n)/r),0),u=Array(e),i=0;i<e;i++,n+=r)u[i]=n;return u};function S(n,t,r,e,u){if(!(e instanceof t))return n.apply(r,u);var i=m(n.prototype),o=n.apply(i,u);return v.isObject(o)?o:i}v.bind=function(n,t){if(p&&n.bind===p)return p.apply(n,c.call(arguments,1));if(!v.isFunction(n))throw new TypeError("Bind must be called on a function");var r=c.call(arguments,2),e=function(){return S(n,e,t,this,r.concat(c.call(arguments)))};return e},v.partial=function(u){var i=c.call(arguments,1),o=function(){for(var n=0,t=i.length,r=Array(t),e=0;e<t;e++)r[e]=i[e]===v?arguments[n++]:i[e];for(;n<arguments.length;)r.push(arguments[n++]);return S(u,o,this,this,r)};return o},v.bindAll=function(n){var t,r,e=arguments.length;if(e<=1)throw new Error("bindAll must be passed function names");for(t=1;t<e;t++)n[r=arguments[t]]=v.bind(n[r],n);return n},v.memoize=function(e,u){var i=function(n){var t=i.cache,r=""+(u?u.apply(this,arguments):n);return v.has(t,r)||(t[r]=e.apply(this,arguments)),t[r]};return i.cache={},i},v.delay=function(n,t){var r=c.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},v.defer=v.partial(v.delay,v,1),v.throttle=function(r,e,u){var i,o,a,c=null,f=0;u=u||{};function l(){f=!1===u.leading?0:v.now(),c=null,a=r.apply(i,o),c||(i=o=null)}return function(){var n=v.now();f||!1!==u.leading||(f=n);var t=e-(n-f);return i=this,o=arguments,t<=0||e<t?(c&&(clearTimeout(c),c=null),f=n,a=r.apply(i,o),c||(i=o=null)):c||!1===u.trailing||(c=setTimeout(l,t)),a}},v.debounce=function(t,r,e){var u,i,o,a,c,f=function(){var n=v.now()-a;n<r&&0<=n?u=setTimeout(f,r-n):(u=null,e||(c=t.apply(o,i),u||(o=i=null)))};return function(){o=this,i=arguments,a=v.now();var n=e&&!u;return u=u||setTimeout(f,r),n&&(c=t.apply(o,i),o=i=null),c}},v.wrap=function(n,t){return v.partial(t,n)},v.negate=function(n){return function(){return!n.apply(this,arguments)}},v.compose=function(){var r=arguments,e=r.length-1;return function(){for(var n=e,t=r[e].apply(this,arguments);n--;)t=r[n].call(this,t);return t}},v.after=function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}},v.before=function(n,t){var r;return function(){return 0<--n&&(r=t.apply(this,arguments)),n<=1&&(t=null),r}},v.once=v.partial(v.before,2);var E=!{toString:null}.propertyIsEnumerable("toString"),M=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function I(n,t){var r=M.length,e=n.constructor,u=v.isFunction(e)&&e.prototype||o,i="constructor";for(v.has(n,i)&&!v.contains(t,i)&&t.push(i);r--;)(i=M[r])in n&&n[i]!==u[i]&&!v.contains(t,i)&&t.push(i)}v.keys=function(n){if(!v.isObject(n))return[];if(l)return l(n);var t=[];for(var r in n)v.has(n,r)&&t.push(r);return E&&I(n,t),t},v.allKeys=function(n){if(!v.isObject(n))return[];var t=[];for(var r in n)t.push(r);return E&&I(n,t),t},v.values=function(n){for(var t=v.keys(n),r=t.length,e=Array(r),u=0;u<r;u++)e[u]=n[t[u]];return e},v.mapObject=function(n,t,r){t=d(t,r);for(var e,u=v.keys(n),i=u.length,o={},a=0;a<i;a++)o[e=u[a]]=t(n[e],e,n);return o},v.pairs=function(n){for(var t=v.keys(n),r=t.length,e=Array(r),u=0;u<r;u++)e[u]=[t[u],n[t[u]]];return e},v.invert=function(n){for(var t={},r=v.keys(n),e=0,u=r.length;e<u;e++)t[n[r[e]]]=r[e];return t},v.functions=v.methods=function(n){var t=[];for(var r in n)v.isFunction(n[r])&&t.push(r);return t.sort()},v.extend=g(v.allKeys),v.extendOwn=v.assign=g(v.keys),v.findKey=function(n,t,r){t=d(t,r);for(var e,u=v.keys(n),i=0,o=u.length;i<o;i++)if(t(n[e=u[i]],e,n))return e},v.pick=function(n,t,r){var e,u,i={},o=n;if(null==o)return i;v.isFunction(t)?(u=v.allKeys(o),e=y(t,r)):(u=O(arguments,!1,!1,1),e=function(n,t,r){return t in r},o=Object(o));for(var a=0,c=u.length;a<c;a++){var f=u[a],l=o[f];e(l,f,o)&&(i[f]=l)}return i},v.omit=function(n,t,r){if(v.isFunction(t))t=v.negate(t);else{var e=v.map(O(arguments,!1,!1,1),String);t=function(n,t){return!v.contains(e,t)}}return v.pick(n,t,r)},v.defaults=g(v.allKeys,!0),v.create=function(n,t){var r=m(n);return t&&v.extendOwn(r,t),r},v.clone=function(n){return v.isObject(n)?v.isArray(n)?n.slice():v.extend({},n):n},v.tap=function(n,t){return t(n),n},v.isMatch=function(n,t){var r=v.keys(t),e=r.length;if(null==n)return!e;for(var u=Object(n),i=0;i<e;i++){var o=r[i];if(t[o]!==u[o]||!(o in u))return!1}return!0};var N=function(n,t,r,e){if(n===t)return 0!==n||1/n==1/t;if(null==n||null==t)return n===t;n instanceof v&&(n=n._wrapped),t instanceof v&&(t=t._wrapped);var u=s.call(n);if(u!==s.call(t))return!1;switch(u){case"[object RegExp]":case"[object String]":return""+n==""+t;case"[object Number]":return+n!=+n?+t!=+t:0==+n?1/+n==1/t:+n==+t;case"[object Date]":case"[object Boolean]":return+n==+t}var i="[object Array]"===u;if(!i){if("object"!=typeof n||"object"!=typeof t)return!1;var o=n.constructor,a=t.constructor;if(o!==a&&!(v.isFunction(o)&&o instanceof o&&v.isFunction(a)&&a instanceof a)&&"constructor"in n&&"constructor"in t)return!1}e=e||[];for(var c=(r=r||[]).length;c--;)if(r[c]===n)return e[c]===t;if(r.push(n),e.push(t),i){if((c=n.length)!==t.length)return!1;for(;c--;)if(!N(n[c],t[c],r,e))return!1}else{var f,l=v.keys(n);if(c=l.length,v.keys(t).length!==c)return!1;for(;c--;)if(f=l[c],!v.has(t,f)||!N(n[f],t[f],r,e))return!1}return r.pop(),e.pop(),!0};v.isEqual=function(n,t){return N(n,t)},v.isEmpty=function(n){return null==n||(j(n)&&(v.isArray(n)||v.isString(n)||v.isArguments(n))?0===n.length:0===v.keys(n).length)},v.isElement=function(n){return!(!n||1!==n.nodeType)},v.isArray=f||function(n){return"[object Array]"===s.call(n)},v.isObject=function(n){var t=typeof n;return"function"==t||"object"==t&&!!n},v.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){v["is"+t]=function(n){return s.call(n)==="[object "+t+"]"}}),v.isArguments(arguments)||(v.isArguments=function(n){return v.has(n,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(v.isFunction=function(n){return"function"==typeof n||!1}),v.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},v.isNaN=function(n){return v.isNumber(n)&&n!==+n},v.isBoolean=function(n){return!0===n||!1===n||"[object Boolean]"===s.call(n)},v.isNull=function(n){return null===n},v.isUndefined=function(n){return void 0===n},v.has=function(n,t){return null!=n&&a.call(n,t)},v.noConflict=function(){return n._=t,this},v.identity=function(n){return n},v.constant=function(n){return function(){return n}},v.noop=function(){},v.property=b,v.propertyOf=function(t){return null==t?function(){}:function(n){return t[n]}},v.matcher=v.matches=function(t){return t=v.extendOwn({},t),function(n){return v.isMatch(n,t)}},v.times=function(n,t,r){var e=Array(Math.max(0,n));t=y(t,r,1);for(var u=0;u<n;u++)e[u]=t(u);return e},v.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))},v.now=Date.now||function(){return(new Date).getTime()};function B(t){function r(n){return t[n]}var n="(?:"+v.keys(t).join("|")+")",e=RegExp(n),u=RegExp(n,"g");return function(n){return n=null==n?"":""+n,e.test(n)?n.replace(u,r):n}}var T={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},R=v.invert(T);v.escape=B(T),v.unescape=B(R),v.result=function(n,t,r){var e=null==n?void 0:n[t];return void 0===e&&(e=r),v.isFunction(e)?e.call(n):e};var q=0;v.uniqueId=function(n){var t=++q+"";return n?n+t:t},v.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};function K(n){return"\\"+D[n]}var z=/(.)^/,D={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},L=/\\|'|\r|\n|\u2028|\u2029/g;v.template=function(i,n,t){!n&&t&&(n=t),n=v.defaults({},n,v.templateSettings);var r=RegExp([(n.escape||z).source,(n.interpolate||z).source,(n.evaluate||z).source].join("|")+"|$","g"),o=0,a="__p+='";i.replace(r,function(n,t,r,e,u){return a+=i.slice(o,u).replace(L,K),o=u+n.length,t?a+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":e&&(a+="';\n"+e+"\n__p+='"),n}),a+="';\n",n.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{var e=new Function(n.variable||"obj","_",a)}catch(n){throw n.source=a,n}function u(n){return e.call(this,n,v)}var c=n.variable||"obj";return u.source="function("+c+"){\n"+a+"}",u},v.chain=function(n){var t=v(n);return t._chain=!0,t};function P(n,t){return n._chain?v(t).chain():t}v.mixin=function(r){v.each(v.functions(r),function(n){var t=v[n]=r[n];v.prototype[n]=function(){var n=[this._wrapped];return i.apply(n,arguments),P(this,t.apply(v,n))}})},v.mixin(v),v.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=e[t];v.prototype[t]=function(){var n=this._wrapped;return r.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],P(this,n)}}),v.each(["concat","join","slice"],function(n){var t=e[n];v.prototype[n]=function(){return P(this,t.apply(this._wrapped,arguments))}}),v.prototype.value=function(){return this._wrapped},v.prototype.valueOf=v.prototype.toJSON=v.prototype.value,v.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return v})}).call(this);/*! This file is auto-generated */
window.wp=window.wp||{},function(i){var e="undefined"==typeof _wpUtilSettings?{}:_wpUtilSettings;wp.template=_.memoize(function(t){var n,s={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"};return function(e){return(n=n||_.template(i("#tmpl-"+t).html(),s))(e)}}),wp.ajax={settings:e.ajax||{},post:function(e,t){return wp.ajax.send({data:_.isObject(e)?e:_.extend(t||{},{action:e})})},send:function(e,n){var t,s;return _.isObject(e)?n=e:(n=n||{}).data=_.extend(n.data||{},{action:e}),n=_.defaults(n||{},{type:"POST",url:wp.ajax.settings.url,context:this}),(t=(s=i.Deferred(function(t){n.success&&t.done(n.success),n.error&&t.fail(n.error),delete n.success,delete n.error,t.jqXHR=i.ajax(n).done(function(e){"1"!==e&&1!==e||(e={success:!0}),_.isObject(e)&&!_.isUndefined(e.success)?t[e.success?"resolveWith":"rejectWith"](this,[e.data]):t.rejectWith(this,[e])}).fail(function(){t.rejectWith(this,arguments)})})).promise()).abort=function(){return s.jqXHR.abort(),this},t}}}(jQuery);!function(t){var i={};function e(a){if(i[a])return i[a].exports;var o=i[a]={i:a,l:!1,exports:{}};return t[a].call(o.exports,o,o.exports,e),o.l=!0,o.exports}e.m=t,e.c=i,e.d=function(t,i,a){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:a})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.p="",e(e.s=9)}({10:function(t,i,e){jQuery(function(t){Promise.resolve().then(function(){return e(11)}).then(function(){t(document).on("wc_variation_form.wvs",".variations_form",function(){t(this).WooVariationSwatches()}),t(document.body).on("post-load.wvs",function(){t(".variations_form").each(function(){t(this).wc_variation_form()})}),t(document).on("yith_infs_added_elem.wvs",function(){t(".variations_form").each(function(){t(this).wc_variation_form()})}),t(document).on("yith-wcan-ajax-filtered.wvs",function(){t(".variations_form").each(function(){t(this).wc_variation_form()})}),t(document).on("wood-images-loaded.wvs",function(){t(".variations_form").each(function(){t(this).wc_variation_form()})}),t(document).on("berocket_ajax_products_loaded.wvs",function(){t(".variations_form").each(function(){t(this).wc_variation_form()})}),t(".shop-container .products").on("append.infiniteScroll",function(i,e,a){t(".variations_form").each(function(){t(this).wc_variation_form()})}),t(document).on("facetwp-loaded.wvs",function(){t(".variations_form").each(function(){t(this).wc_variation_form()})}),t("body").on("aln_reloaded.wvs",function(){_.delay(function(){t(".variations_form").each(function(){t(this).wc_variation_form()})},100)})})})},11:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a=function(){function t(t,i){for(var e=0;e<i.length;e++){var a=i[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(i,e,a){return e&&t(i.prototype,e),a&&t(i,a),i}}();var o=function(t){var i={},e=function(){function e(a,o){!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,e),this._element=t(a),this._config=t.extend({},i,o),this._generated={},this._out_of_stock={},this.product_variations=this._element.data("product_variations"),this.is_ajax_variation=!this.product_variations,this.product_id=this._element.data("product_id"),this.hidden_behaviour=t("body").hasClass("woo-variation-swatches-attribute-behavior-hide"),this.is_mobile=t("body").hasClass("woo-variation-swatches-on-mobile"),this.init(this.is_ajax_variation,this.hidden_behaviour),this.loaded(this.is_ajax_variation,this.hidden_behaviour),this.update(this.is_ajax_variation,this.hidden_behaviour),this.reset(this.is_ajax_variation,this.hidden_behaviour),t(document).trigger("woo_variation_swatches",[this._element])}return a(e,[{key:"init",value:function(i,e){var a=this,o=this;this._element.find("ul.variable-items-wrapper").each(function(i,e){var a=t(this).siblings("select.woo-variation-raw-select"),n=(t(this).find("li"),t(this).hasClass("reselect-clear")),r=t("body").hasClass("woo-variation-swatches-on-mobile");t(this).parent().addClass("woo-variation-items-wrapper"),a.length<1&&(a=t(this).parent().find("select.woo-variation-raw-select")),n?(t(this).on("click","li:not(.selected):not(.radio-variable-item):not(.woo-variation-swatches-variable-item-more)",function(i){i.preventDefault(),i.stopPropagation();var e=t(this).data("value");a.val(e).trigger("change"),a.trigger("click"),a.trigger("focusin"),r&&a.trigger("touchstart"),t(this).trigger("focus"),t(this).trigger("wvs-selected-item",[e,a,o._element])}),t(this).on("click","li.selected:not(.radio-variable-item)",function(i){i.preventDefault(),i.stopPropagation();var e=t(this).val();a.val("").trigger("change"),a.trigger("click"),a.trigger("focusin"),r&&a.trigger("touchstart"),t(this).trigger("focus"),t(this).trigger("wvs-unselected-item",[e,a,o._element])}),t(this).on("click","input.wvs-radio-variable-item:radio",function(i){i.preventDefault(),i.stopPropagation(),t(this).trigger("change")}),t(this).on("change","input.wvs-radio-variable-item:radio",function(i){var e=this;i.preventDefault(),i.stopPropagation();var n=t(this).val();t(this).parent("li.radio-variable-item").hasClass("selected")?(a.val("").trigger("change"),_.delay(function(){t(e).prop("checked",!1),t(e).parent("li.radio-variable-item").trigger("wvs-unselected-item",[n,a,o._element])},1)):(a.val(n).trigger("change"),t(this).parent(".radio-variable-item").trigger("wvs-selected-item",[n,a,o._element])),a.trigger("click"),a.trigger("focusin"),r&&a.trigger("touchstart")})):(t(this).on("click","li:not(.radio-variable-item):not(.woo-variation-swatches-variable-item-more)",function(i){i.preventDefault(),i.stopPropagation();var e=t(this).data("value");a.val(e).trigger("change"),a.trigger("click"),a.trigger("focusin"),r&&a.trigger("touchstart"),t(this).trigger("focus"),t(this).trigger("wvs-selected-item",[e,a,o._element])}),t(this).on("change","input.wvs-radio-variable-item:radio",function(i){i.preventDefault(),i.stopPropagation();var e=t(this).val();a.val(e).trigger("change"),a.trigger("click"),a.trigger("focusin"),r&&a.trigger("touchstart"),t(this).parent("li.radio-variable-item").removeClass("selected disabled").addClass("selected"),t(this).parent("li.radio-variable-item").trigger("wvs-selected-item",[e,a,o._element])}))}),_.delay(function(){a._element.trigger("reload_product_variations"),a._element.trigger("woo_variation_swatches_init",[a,a.product_variations]),t(document).trigger("woo_variation_swatches_loaded",[a._element,a.product_variations])},1)}},{key:"loaded",value:function(i,e){i||this._element.on("woo_variation_swatches_init",function(i,e,a){e._generated=a.reduce(function(t,i){return Object.keys(i.attributes).map(function(e){t[e]||(t[e]=[]),i.attributes[e]&&t[e].push(i.attributes[e])}),t},{}),e._out_of_stock=a.reduce(function(t,i){return Object.keys(i.attributes).map(function(e){t[e]||(t[e]=[]),i.attributes[e]&&!i.is_in_stock&&t[e].push(i.attributes[e])}),t},{}),t(this).find("ul.variable-items-wrapper").each(function(){var i=t(this).find("li:not(.woo-variation-swatches-variable-item-more)"),a=t(this).data("attribute_name"),o=e._generated[a];e._out_of_stock[a];i.each(function(){var i=t(this).attr("data-value");_.isEmpty(o)||-1!==_.indexOf(o,i)||(t(this).removeClass("selected"),t(this).addClass("disabled"),t(this).hasClass("radio-variable-item")&&t(this).find("input.wvs-radio-variable-item:radio").prop("disabled",!0).prop("checked",!1))})})})}},{key:"reset",value:function(i,e){var a=this;this._element.on("reset_data",function(e){t(this).find("ul.variable-items-wrapper").each(function(){t(this).find("li").each(function(){i?t(this).hasClass("radio-variable-item"):(t(this).removeClass("selected disabled"),t(this).hasClass("radio-variable-item")&&t(this).find("input.wvs-radio-variable-item:radio").prop("disabled",!1).prop("checked",!1)),t(this).trigger("wvs-unselected-item",["","",a._element])})})})}},{key:"update",value:function(i,e){this._element.on("__found_variation",function(t,i){}),this._element.on("woocommerce_variation_has_changed",function(e){i&&t(this).find("ul.variable-items-wrapper").each(function(){var i=this,e="",a=t(this).siblings("select.woo-variation-raw-select").find("option"),o=t(this).siblings("select.woo-variation-raw-select").find("option:selected"),n=t(this).siblings("select.woo-variation-raw-select").find("option").eq(1),r=t(this).find("li"),s=[];a.length<1&&(a=t(this).parent().find("select.woo-variation-raw-select").find("option"),o=t(this).parent().find("select.woo-variation-raw-select").find("option:selected"),n=t(this).parent().find("select.woo-variation-raw-select").find("option").eq(1)),a.each(function(){""!==t(this).val()&&(s.push(t(this).val()),e=o?o.val():n.val())}),_.delay(function(){r.each(function(){var i=t(this).attr("data-value");t(this).removeClass("selected disabled"),i===e&&(t(this).addClass("selected"),t(this).hasClass("radio-variable-item")&&t(this).find("input.wvs-radio-variable-item:radio").prop("disabled",!1).prop("checked",!0))}),t(i).trigger("wvs-items-updated")},1)})}),this._element.on("woocommerce_update_variation_values",function(i){t(this).find("ul.variable-items-wrapper").each(function(){var i=this,e="",a=t(this).siblings("select.woo-variation-raw-select").find("option"),o=t(this).siblings("select.woo-variation-raw-select").find("option:selected"),n=t(this).siblings("select.woo-variation-raw-select").find("option").eq(1),r=t(this).find("li:not(.woo-variation-swatches-variable-item-more)"),s=[];a.length<1&&(a=t(this).parent().find("select.woo-variation-raw-select").find("option"),o=t(this).parent().find("select.woo-variation-raw-select").find("option:selected"),n=t(this).parent().find("select.woo-variation-raw-select").find("option").eq(1)),a.each(function(){""!==t(this).val()&&(s.push(t(this).val()),e=o?o.val():n.val())}),_.delay(function(){r.each(function(){var i=t(this).attr("data-value");t(this).removeClass("selected disabled").addClass("disabled"),-1!==_.indexOf(s,i)?(t(this).removeClass("disabled"),t(this).find("input.wvs-radio-variable-item:radio").prop("disabled",!1),i===e&&(t(this).addClass("selected"),t(this).hasClass("radio-variable-item")&&t(this).find("input.wvs-radio-variable-item:radio").prop("checked",!0))):t(this).hasClass("radio-variable-item")&&t(this).find("input.wvs-radio-variable-item:radio").prop("disabled",!0).prop("checked",!1)}),t(i).trigger("wvs-items-updated")},1)})})}}],[{key:"_jQueryInterface",value:function(t){return this.each(function(){new e(this,t)})}}]),e}();return t.fn.WooVariationSwatches=e._jQueryInterface,t.fn.WooVariationSwatches.Constructor=e,t.fn.WooVariationSwatches.noConflict=function(){return t.fn.WooVariationSwatches=t.fn.WooVariationSwatches,e._jQueryInterface},e}(jQuery);i.default=o},9:function(t,i,e){t.exports=e(10)}});var ywraq_frontend={"ajaxurl":"\/?wc-ajax=%%endpoint%%","current_lang":"","no_product_in_list":"<p class=\"ywraq_list_empty_message\">Your list is empty, add products to the list to send a request<p><p class=\"return-to-shop\"><a class=\"button wc-backward\" href=\"https:\/\/new.thesmartsensory.com\/shop\/\">Return to Shop<\/a><\/p>","block_loader":"https:\/\/new.thesmartsensory.com\/wp-content\/plugins\/yith-woocommerce-request-a-quote-premium\/assets\/images\/ajax-loader.gif","go_to_the_list":"yes","rqa_url":"https:\/\/new.thesmartsensory.com\/request-quote\/","current_user_id":"","hide_price":"0","allow_out_of_stock":"yes","allow_only_on_out_of_stock":"no","select_quantity":"Set at least the quantity for a product","i18n_choose_a_variation":"Please select some product options before adding this product to your quote list.","i18n_out_of_stock":"This Variation is Out of Stock, please select another one.","raq_table_refresh_check":"1","auto_update_cart_on_quantity_change":"1","enable_ajax_loading":"1"};jQuery(document).ready(function(h){"use strict";h("body"),h(".add-request-quote-button");var f=h(document).find(".widget_ywraq_list_quote, .widget_ywraq_mini_list_quote"),w="undefined"!=typeof ywraq_frontend&&ywraq_frontend.block_loader,_="undefined"!=typeof ywraq_frontend&&ywraq_frontend.allow_out_of_stock,l="undefined"!=typeof ywraq_frontend&&ywraq_frontend.allow_only_on_out_of_stock,t=(h(".yith-ywraq-item-remove"),h(".shipping_address")),e=h(".woocommerce-billing-fields"),s=document.location.href,a=h(document).find("#yith-ywrq-table-list"),c={message:null,overlayCSS:{background:"#fff",opacity:.7},ignoreIfBlocked:!0},_="yes"==_,l="yes"==l;0<a.length&&ywraq_frontend.raq_table_refresh_check&&h.post(s,function(t){var e;""!=t&&(e=h("<div></div>").html(t).find("#yith-ywrq-table-list"),h("#yith-ywrq-table-list").html(e.html()),h(document).trigger("ywraq_table_reloaded"))}),h(document).on("ywraq_table_reloaded, yith_wwraq_removed_successfully, yith_check_table",function(){0==h(document).find("#yith-ywrq-table-list").length&&h(document).find(".yith-ywraq-before-table .wc-backward").hide()}),h(document).trigger("yith_check_table"),h.fn.yith_ywraq_variations=function(){var i,o,r,d,s,c,e,t=h(document).find("form.variations_form");t.length&&void 0!==t.data("product_id")&&(i=t.data("product_id").toString().replace(/[^0-9]/g,""),o=h(".add-to-quote-"+i).find(".yith-ywraq-add-button"),r=o.find("a.add-request-quote-button"),d=h(".yith_ywraq_add_item_product-response-"+i),s=h(".yith_ywraq_add_item_response-"+i),c=h(".yith_ywraq_add_item_browse-list-"+i),e=function(){r.show().addClass("disabled"),o.show().removeClass("hide").removeClass("addedd"),d.hide().removeClass("show"),s.hide().removeClass("show"),c.hide().removeClass("show"),(l&&_||l)&&r.hide()},t.on("found_variation",function(t,e){var a=""+h(".add-to-quote-"+i).attr("data-variation"),n=!0;d.hide().removeClass("show"),_?l&&e.is_in_stock&&(n=!1):e.is_in_stock||(n=!1),n?(r.show().removeClass("disabled"),o.show().removeClass("hide").removeClass("addedd")):(r.hide().addClass("disabled"),o.hide().removeClass("show").removeClass("addedd")),s.hide().removeClass("show"),c.hide().removeClass("show"),-1!==a.indexOf(""+e.variation_id)&&n?(r.hide(),s.show().removeClass("hide"),c.show().removeClass("hide")):n&&(r.show().removeClass("disabled"),o.show().removeClass("hide").removeClass("addedd"),s.hide().removeClass("show"),c.hide().removeClass("show"))}),t.on("reset_data",function(t){e()}),e())},h(".variations_form").each(function(){h(this).yith_ywraq_variations()}),h(document).on("qv_loader_stop",function(t){h(".variations_form").each(function(){h(this).yith_ywraq_variations()})}),h.fn.yith_ywraq_refresh_button=function(){var t=h('[name|="product_id"]').val();h(".add-to-quote-"+t).find("a.add-request-quote-button").parents(".yith-ywraq-add-to-quote");if(!h('[name|="variation_id"]').length)return!1},h.fn.yith_ywraq_refresh_button();var p=!1;h(document).on("click",".add-request-quote-button",function(t){t.preventDefault();var e=h(this),a=e.closest(".yith-ywraq-add-to-quote"),n="ac",i="";if(e.hasClass("outofstock")?window.alert(ywraq_frontend.i18n_out_of_stock):e.hasClass("disabled")&&window.alert(ywraq_frontend.i18n_choose_a_variation),!(e.hasClass("disabled")||e.hasClass("outofstock")||p)){if(h(".grouped_form").length){var o=0;if(h(".grouped_form input.qty").each(function(){o=Math.floor(h(this).val())+o}),0==o)return void alert(ywraq_frontend.select_quantity)}if("undefined"==typeof(i=e.closest(".cart").length?e.closest(".cart"):a.siblings(".cart").first().length?a.siblings(".cart").first():h(".composite_form").length?h(".composite_form"):0<e.closest("ul.products").length?e.closest("ul.products"):h(".cart:not(.in_loop)"))[0]||"function"!=typeof i[0].checkValidity||i[0].checkValidity()){var r,d,s,c=void 0===(s=0<e.closest("ul.products").length?(r="",(d=e.closest("li.product").find("a.add_to_cart_button")).data("product_id")):(r=e.closest(".product").find('input[name="add-to-cart"]'),d=e.closest(".product").find('input[name="product_id"]'),e.data("product_id")||(d.length?d.val():r.val())))?e.data("product_id"):s;(n=i.serializefiles()).append("context","frontend"),n.append("action","yith_ywraq_action"),n.append("ywraq_action","add_item"),n.append("product_id",e.data("product_id")),n.append("wp_nonce",e.data("wp_nonce")),n.append("yith-add-to-cart",e.data("product_id"));var _,l=a.find("input.qty").val();0<l&&n.append("quantity",l),0<h(".wc-product-table-wrapper").length&&0<(l=e.parents(".product-row").find(".cart input.qty").val())&&n.append("quantity",l),0<e.closest(".yith_wc_qof_button_and_price").length&&(_=e.closest(".yith_wc_qof_button_and_price").find(".YITH_WC_QOF_Quantity_Cart").val(),n.append("quantity",_));var u=e.closest("li.product").find(".variations_form.in_loop"),y=!!u.length&&u.data("active_variation");return y&&(n.append("variation_id",y),u.find("select").each(function(){n.append(this.name,this.value)})),h(document).trigger("yith_ywraq_action_before"),!("undefined"!=typeof yith_wapo_general&&!yith_wapo_general.do_submit)&&(!("undefined"!=typeof ywcnp_raq&&!ywcnp_raq.do_submit)&&void(p=h.ajax({type:"POST",url:ywraq_frontend.ajaxurl.toString().replace("%%endpoint%%","yith_ywraq_action"),dataType:"json",data:n,contentType:!1,processData:!1,beforeSend:function(){e.after(' <img src="'+w+'" class="ywraq-loader" >')},complete:function(){e.next().remove()},success:function(t){"true"==t.result||"exists"==t.result?("yes"==ywraq_frontend.go_to_the_list?window.location.href=t.rqa_url:(h(".yith_ywraq_add_item_response-"+c).hide().addClass("hide").html(""),h(".yith_ywraq_add_item_product-response-"+c).show().removeClass("hide").html(t.message),h(".yith_ywraq_add_item_browse-list-"+c).show().removeClass("hide"),e.parent().hide().removeClass("show").addClass("addedd"),h(".add-to-quote-"+c).attr("data-variation",t.variations),f.length&&(f.ywraq_refresh_widget(),f=h(document).find(".widget_ywraq_list_quote, .widget_ywraq_mini_list_quote")),m()),h(document).trigger("yith_wwraq_added_successfully",[t])):"false"==t.result&&(h(".yith_ywraq_add_item_response-"+c).show().removeClass("hide").html(t.message),h(document).trigger("yith_wwraq_error_while_adding")),p=!1}})))}h('<input type="submit">').hide().appendTo(i).click().remove()}}),h.fn.serializefiles=function(){var t=h(this),n=new FormData;h.each(h(t).find("input[type='file']"),function(t,a){h.each(h(a)[0].files,function(t,e){n.append(a.name,e)})});var e=h(t).serializeArray(),a=!1;return h.each(e,function(t,e){"quantity"!=e.name&&!e.name.indexOf("quantity")||(a=!0),"add-to-cart"!=e.name&&n.append(e.name,encodeURIComponent(e.value))}),!1===a&&n.append("quantity",1),n},h.fn.ywraq_refresh_widget=function(){f.each(function(){var e=h(this),t=e.find(".yith-ywraq-list-wrapper"),a=e.find(".yith-ywraq-list"),n=e.find(".yith-ywraq-list-widget-wrapper").data("instance");h.ajax({type:"POST",url:ywraq_frontend.ajaxurl.toString().replace("%%endpoint%%","yith_ywraq_action"),data:n+"&ywraq_action=refresh_quote_list&action=yith_ywraq_action&context=frontend",beforeSend:function(){a.css("opacity",.5),e.hasClass("widget_ywraq_list_quote")&&t.prepend(' <img src="'+w+'" class="ywraq-loader">')},complete:function(){e.hasClass("widget_ywraq_list_quote")&&t.next().remove(),a.css("opacity",1)},success:function(t){e.hasClass("widget_ywraq_mini_list_quote")?e.find(".yith-ywraq-list-widget-wrapper").html(t.mini):e.find(".yith-ywraq-list-widget-wrapper").html(t.large),h(document).trigger("yith_ywraq_widget_refreshed")}})})},h(document).on("click",".yith-ywraq-item-remove",function(t){t.preventDefault();var e=h(this),o=e.data("remove-item"),a=e.parents(".ywraq-wrapper"),r=(h("#yith-ywraq-form"),a.find(".wpcf7-form")),d=a.find(".gform_wrapper"),s=e.data("product_id"),n="context=frontend&action=yith_ywraq_action&ywraq_action=remove_item&key="+e.data("remove-item")+"&wp_nonce="+e.data("wp_nonce")+"&product_id="+s;h.ajax({type:"POST",url:ywraq_frontend.ajaxurl.toString().replace("%%endpoint%%","yith_ywraq_action"),dataType:"json",data:n,beforeSend:function(){e.find(".ajax-loading").css("visibility","visible")},complete:function(){e.siblings(".ajax-loading").css("visibility","hidden")},success:function(t){var e,a,n,i;1===t?((e=h("[data-remove-item='"+o+"']").parents(".cart_item")).hasClass("composite-parent")&&(a=e.data("composite-id"),h("[data-composite-id='"+a+"']").remove()),e.hasClass("yith-wapo-parent")&&(n=e.find(".product-remove a").data("remove-item"),h("[data-wapo_parent_key='"+n+"']").remove()),e.hasClass("ywcp_component_item")&&h("tr.ywcp_component_child_item").filter("[data-wcpkey='"+o+"']").remove(),e.hasClass("bundle-parent")&&(i=e.data("bundle-key"),h("[data-bundle-key='"+i+"']").remove()),e.remove(),0===h(".cart_item").length&&(r.length&&r.remove(),d.length&&d.remove(),h("#yith-ywraq-form, .yith-ywraq-mail-form-wrapper").remove(),h("#yith-ywraq-message").html(ywraq_frontend.no_product_in_list)),f.length&&(f.ywraq_refresh_widget(),f=h(document).find(".widget_ywraq_list_quote, .widget_ywraq_mini_list_quote")),m(),h(document).find('.hide-when-removed[data-product_id="'+s+'"]').hide(),h(document).find('.yith-ywraq-add-button[data-product_id="'+s+'"]').show(),h(document).trigger("yith_wwraq_removed_successfully")):h(document).trigger("yith_wwraq_error_while_removing")}})}),h(".ywraq_clean_list").on("click",function(t){t.preventDefault(),h("#yith-ywrq-table-list tbody .product-remove a.remove").each(function(){h(this).trigger("click")})});var n;function m(){h(document).find(".ywraq_number_items").each(function(){var e=h(this),t=e.data("show_url"),a=e.data("item_name"),n=e.data("item_plural_name");h.ajax({type:"POST",url:ywraq_frontend.ajaxurl.toString().replace("%%endpoint%%","yith_ywraq_action"),data:"ywraq_action=refresh_number_items&action=yith_ywraq_action&context=frontend&item_name="+a+"&item_plural_name="+n+"&show_url="+t,success:function(t){e.replaceWith(t),h(document).trigger("ywraq_number_items_refreshed")}})})}0<h(".wpcf7-submit").closest(".wpcf7").length&&h(document).find(".ywraq-wrapper .wpcf7").each(function(){var t=h(this);t.find('input[name="_wpcf7"]').val()==ywraq_frontend.cform7_id&&(t.on("wpcf7:mailsent",function(){h.ajax({type:"POST",url:ywraq_frontend.ajaxurl.toString().replace("%%endpoint%%","yith_ywraq_order_action"),dataType:"json",data:{lang:ywraq_frontend.current_lang,action:"yith_ywraq_order_action",current_user_id:ywraq_frontend.current_user_id,context:"frontend",ywraq_order_action:"mail_sent_order_created"},success:function(t){""!=t.rqa_url&&(window.location.href=t.rqa_url)}})}),document.addEventListener("wpcf7mailsent",function(t){window.location.href=ywraq_frontend.rqa_url},!1))}),h("#yith-ywrq-table-list").on("change",".qty",function(){h(this).val()<=0&&h(this).val(1)}),h(document).bind("gform_confirmation_loaded",function(t,e){ywraq_frontend.gf_id==e&&(window.location.href=ywraq_frontend.rqa_url)}),ywraq_frontend.auto_update_cart_on_quantity_change&&h(document).on("click, change","#yith-ywrq-table-list .product-quantity input",function(t){var e,a,n,i,o=h(this),r=o.attr("name"),d=o.closest(".quantity");d.block(c),i=void 0===r?(r=(e=o.closest(".product-quantity").find(".input-text.qty")).attr("name"),a=e.val(),n=r.match(/[^[\]]+(?=])/g),o.hasClass("plus")&&a++,o.hasClass("minus")&&a--,"context=frontend&action=yith_ywraq_action&ywraq_action=update_item_quantity&quantity="+a+"&key="+n[0]):"context=frontend&action=yith_ywraq_action&ywraq_action=update_item_quantity&quantity="+(a=o.val())+"&key="+(n=r.match(/[^[\]]+(?=])/g))[0];h.ajax({type:"POST",url:ywraq_frontend.ajaxurl.toString().replace("%%endpoint%%","yith_ywraq_action"),dataType:"json",data:i,success:function(t){h.post(s,function(t){var e;""!=t&&(e=h("<div></div>").html(t).find("#yith-ywrq-table-list"),h("#yith-ywrq-table-list").html(e.html()),h(document).trigger("ywraq_table_reloaded"),f.length&&(f.ywraq_refresh_widget(),f=h(document).find(".widget_ywraq_list_quote, .widget_ywraq_mini_list_quote"))),d.unblock()})}})}),0<t.length&&1==ywraq_frontend.lock_shipping&&(t.find("input").attr("readonly","readonly"),t.find("select").attr("readonly","readonly"),h(".woocommerce-checkout #shipping_country_field").css("pointer-events","none"),h(".woocommerce-checkout #shipping_state_field").css("pointer-events","none")),0<e.length&&1==ywraq_frontend.lock_billing&&(e.find("input").attr("readonly","readonly"),e.find("select").attr("readonly","readonly"),h(".woocommerce-checkout #billing_country_field").css("pointer-events","none"),h(".woocommerce-checkout #billing_state_field").css("pointer-events","none")),f.ywraq_refresh_widget(),m(),h(document).on("click","#ywraq_checkout_quote",function(t){h(document).find('input[name="payment_method"]').val("yith-request-a-quote"),h("#ywraq_checkout_quote").val(!0)}),h(document).find(".theme-yith-proteo .ywraq-wrapper .woocommerce-message").removeAttr("role"),1==ywraq_frontend.enable_ajax_loading&&(n=function(){var t=h(document).find(".yith-ywraq-add-to-quote"),a=[];return 0!==t.length&&(h.each(t,function(){var t=h(this).closest(".variations_form "),e=h(this).find(".yith-ywraq-add-button").data("product_id");void 0===t&&a.push(e)}),a)}())&&function(t){var e={fragments:t,ywraq_action:"update_ywraq_fragments",action:"yith_ywraq_action",context:"frontend"};h.ajax({type:"POST",url:ywraq_frontend.ajaxurl.toString().replace("%%endpoint%%","yith_ywraq_action"),data:e,success:function(t){var n,e;"undefined"!=typeof t.error?console.log(t.error):!0===t.success&&(n=t.fragments,0<(e=h(document).find(".yith-ywraq-add-to-quote")).length&&h.each(e,function(){var t=h(this),e=t.data("variation"),a=t.find(".yith-ywraq-add-button").data("product_id");void 0===e&&"undefined"!=typeof n[a]&&t.replaceWith(n[a])}))}})}(n)});/*!
 * Bootstrap v3.3.7 (http://getbootstrap.com)
 * Copyright 2011-2016 Twitter, Inc.
 * Licensed under the MIT license
 */
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){if(a(b.target).is(this))return b.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.7",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a("#"===f?[]:f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.7",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c).prop(c,!0)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c).prop(c,!1))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target).closest(".btn");b.call(d,"toggle"),a(c.target).is('input[type="radio"], input[type="checkbox"]')||(c.preventDefault(),d.is("input,button")?d.trigger("focus"):d.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.7",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(a>this.$items.length-1||a<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){if(!this.sliding)return this.slide("next")},c.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.7",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",f)))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.7",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger(a.Event("shown.bs.dropdown",h))}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&j<i.length-1&&j++,~j||(j=0),i.eq(j).trigger("focus")}}}};var h=a.fn.dropdown;a.fn.dropdown=d,a.fn.dropdown.Constructor=g,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=h,this},a(document).on("click.bs.dropdown.data-api",c).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",f,g.prototype.toggle).on("keydown.bs.dropdown.data-api",f,g.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",g.prototype.keydown)}(jQuery),+function(a){"use strict";function b(b,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},c.DEFAULTS,e.data(),"object"==typeof b&&b);f||e.data("bs.modal",f=new c(this,g)),"string"==typeof b?f[b](d):g.show&&f.show(d)})}var c=function(b,c){this.options=c,this.$body=a(document.body),this.$element=a(b),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};c.VERSION="3.3.7",c.TRANSITION_DURATION=300,c.BACKDROP_TRANSITION_DURATION=150,c.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},c.prototype.toggle=function(a){return this.isShown?this.hide():this.show(a)},c.prototype.show=function(b){var d=this,e=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){d.$element.one("mouseup.dismiss.bs.modal",function(b){a(b.target).is(d.$element)&&(d.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=a.support.transition&&d.$element.hasClass("fade");d.$element.parent().length||d.$element.appendTo(d.$body),d.$element.show().scrollTop(0),d.adjustDialog(),e&&d.$element[0].offsetWidth,d.$element.addClass("in"),d.enforceFocus();var f=a.Event("shown.bs.modal",{relatedTarget:b});e?d.$dialog.one("bsTransitionEnd",function(){d.$element.trigger("focus").trigger(f)}).emulateTransitionEnd(c.TRANSITION_DURATION):d.$element.trigger("focus").trigger(f)}))},c.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(c.TRANSITION_DURATION):this.hideModal())},c.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){document===a.target||this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.trigger("focus")},this))},c.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},c.prototype.resize=function(){this.isShown?a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this)):a(window).off("resize.bs.modal")},c.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.$body.removeClass("modal-open"),a.resetAdjustments(),a.resetScrollbar(),a.$element.trigger("hidden.bs.modal")})},c.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},c.prototype.backdrop=function(b){var d=this,e=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var f=a.support.transition&&e;if(this.$backdrop=a(document.createElement("div")).addClass("modal-backdrop "+e).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),f&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;f?this.$backdrop.one("bsTransitionEnd",b).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):b()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var g=function(){d.removeBackdrop(),b&&b()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",g).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):g()}else b&&b()},c.prototype.handleUpdate=function(){this.adjustDialog()},c.prototype.adjustDialog=function(){var a=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth<a,this.scrollbarWidth=this.measureScrollbar()},c.prototype.setScrollbar=function(){var a=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",a+this.scrollbarWidth)},c.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},c.prototype.measureScrollbar=function(){var a=document.createElement("div");a.className="modal-scrollbar-measure",this.$body.append(a);var b=a.offsetWidth-a.clientWidth;return this.$body[0].removeChild(a),b};var d=a.fn.modal;a.fn.modal=b,a.fn.modal.Constructor=c,a.fn.modal.noConflict=function(){return a.fn.modal=d,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(c){var d=a(this),e=d.attr("href"),f=a(d.attr("data-target")||e&&e.replace(/.*(?=#[^\s]+$)/,"")),g=f.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(e)&&e},f.data(),d.data());d.is("a")&&c.preventDefault(),f.one("show.bs.modal",function(a){a.isDefaultPrevented()||f.one("hidden.bs.modal",function(){d.is(":visible")&&d.trigger("focus")})}),b.call(f,g,this)})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof b&&b;!e&&/destroy|hide/.test(b)||(e||d.data("bs.tooltip",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",a,b)};c.VERSION="3.3.7",c.TRANSITION_DURATION=150,c.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);if(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),!c.isInStateTrue())return clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-m<o.top?"bottom":"right"==h&&k.right+l>o.width?"left":"left"==h&&k.left-l<o.left?"right":h,f.removeClass(n).addClass(h)}var p=this.getCalculatedOffset(h,k,l,m);this.applyPlacement(p,h);var q=function(){var a=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==a&&e.leave(e)};a.support.transition&&this.$tip.hasClass("fade")?f.one("bsTransitionEnd",q).emulateTransitionEnd(c.TRANSITION_DURATION):q()}},c.prototype.applyPlacement=function(b,c){var d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css("margin-top"),10),h=parseInt(d.css("margin-left"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),b.top+=g,b.left+=h,a.offset.setOffset(d[0],a.extend({using:function(a){d.css({top:Math.round(a.top),left:Math.round(a.left)})}},b),0),d.addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;"top"==c&&j!=f&&(b.top=b.top+f-j);var k=this.getViewportAdjustedDelta(c,b,i,j);k.left?b.left+=k.left:b.top+=k.top;var l=/top|bottom/.test(c),m=l?2*k.left-e+i:2*k.top-f+j,n=l?"offsetWidth":"offsetHeight";d.offset(b),this.replaceArrow(m,d[0][n],l)},c.prototype.replaceArrow=function(a,b,c){this.arrow().css(c?"left":"top",50*(1-a/b)+"%").css(c?"top":"left","")},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},c.prototype.hide=function(b){function d(){"in"!=e.hoverState&&f.detach(),e.$element&&e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),b&&b()}var e=this,f=a(this.$tip),g=a.Event("hide.bs."+this.type);if(this.$element.trigger(g),!g.isDefaultPrevented())return f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one("bsTransitionEnd",d).emulateTransitionEnd(c.TRANSITION_DURATION):d(),this.hoverState=null,this},c.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},c.prototype.hasContent=function(){return this.getTitle()},c.prototype.getPosition=function(b){b=b||this.$element;var c=b[0],d="BODY"==c.tagName,e=c.getBoundingClientRect();null==e.width&&(e=a.extend({},e,{width:e.right-e.left,height:e.bottom-e.top}));var f=window.SVGElement&&c instanceof window.SVGElement,g=d?{top:0,left:0}:f?null:b.offset(),h={scroll:d?document.documentElement.scrollTop||document.body.scrollTop:b.scrollTop()},i=d?{width:a(window).width(),height:a(window).height()}:null;return a.extend({},e,h,i,g)},c.prototype.getCalculatedOffset=function(a,b,c,d){return"bottom"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:"top"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:"left"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},c.prototype.getViewportAdjustedDelta=function(a,b,c,d){var e={top:0,left:0};if(!this.$viewport)return e;var f=this.options.viewport&&this.options.viewport.padding||0,g=this.getPosition(this.$viewport);if(/right|left/.test(a)){var h=b.top-f-g.scroll,i=b.top+f-g.scroll+d;h<g.top?e.top=g.top-h:i>g.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;j<g.left?e.left=g.left-j:k>g.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null,a.$element=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;!e&&/destroy|hide/.test(b)||(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.7",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.7",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b<e[0])return this.activeTarget=null,this.clear();for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(void 0===e[a+1]||b<e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,this.clear();var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.3.7",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.7",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return e<c&&"top";if("bottom"==this.affixed)return null!=c?!(e+this.unpin<=f.top)&&"bottom":!(e+g<=a-d)&&"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&e<=c?"top":null!=d&&i+j>=a-d&&"bottom"},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery);"use strict";!function(e,t,a){var n=e();e.fn.dropdownHover=function(a){return"ontouchstart"in document?this:(n=n.add(this.parent()),this.each(function(){function i(e){r.parents(".navbar").find(".navbar-toggle").is(":visible")||(t.clearTimeout(o),t.clearTimeout(s),s=t.setTimeout(function(){n.find(":focus").blur(),!0===u.instantlyCloseOthers&&n.removeClass("open"),t.clearTimeout(s),r.attr("aria-expanded","true"),c.addClass("open"),r.trigger(h)},u.hoverDelay))}var o,s,r=e(this),c=r.parent(),l={delay:500,hoverDelay:0,instantlyCloseOthers:!0},d={delay:e(this).data("delay"),hoverDelay:e(this).data("hover-delay"),instantlyCloseOthers:e(this).data("close-others")},h="show.bs.dropdown",u=e.extend(!0,{},l,a,d);c.hover(function(e){if(!c.hasClass("open")&&!r.is(e.target))return!0;i(e)},function(){t.clearTimeout(s),o=t.setTimeout(function(){r.attr("aria-expanded","false"),c.removeClass("open"),r.trigger("hide.bs.dropdown")},u.delay)}),r.hover(function(e){if(!c.hasClass("open")&&!c.is(e.target))return!0;i(e)}),c.find(".dropdown-submenu").each(function(){var a,n=e(this);n.hover(function(){t.clearTimeout(a),n.children(".dropdown-menu").show(),n.siblings().children(".dropdown-menu").hide()},function(){var e=n.children(".dropdown-menu");a=t.setTimeout(function(){e.hide()},u.delay)})})}))},e(document).ready(function(){e('[data-hover="dropdown"]').dropdownHover()})}(jQuery,window);class StickyHeader{constructor(){if(0!==$("#tbay-header").length||0!==$("#tbay-customize-header").length){$("#tbay-header").length>0&&(this.$tbayHeader=$("#tbay-header"),this.$tbayHeaderMain=$("#tbay-header .header-main")),$("#tbay-customize-header").length>0&&(this.$tbayHeader=$("#tbay-customize-header"),this.$tbayHeaderMain=$("#tbay-customize-header .header-main")),this.$tbayHeader.hasClass("main-sticky-header")&&this.$tbayHeaderMain.length>0&&this._initStickyHeader(),$(".search-min-wrapper .btn-search-min").click(this._onClickSeachMin),$(".tbay-search-form .overlay-box").click(this._onClickOverLayBox),this._intSearchOffcanvas;let e=$(".element-sticky-header");e.length>0&&this._initELementStickyheader(e)}}_initStickyHeader(){var e=this,t=$(window).width(),a=e.$tbayHeader.outerHeight(),n=e.$tbayHeaderMain.outerHeight(),i=$("#wpadminbar").length>0?$("#wpadminbar").outerHeight():0,o=e.$tbayHeaderMain.offset().top;if(t>=1024)if(0==o||o==i){if(e.$tbayHeader.hasClass("sticky-header"))return;e._stickyHeaderOnDesktop(n,o,i),e.$tbayHeaderMain.addClass("sticky-1"),$(window).scroll(function(){$(this).scrollTop()>a?e.$tbayHeaderMain.addClass("sticky-box"):e.$tbayHeaderMain.removeClass("sticky-box")})}else $(window).scroll(function(){if(o=e.$tbayHeaderMain.offset().top,e.$tbayHeader.hasClass("main-sticky-header"))if($(this).scrollTop()>o-$(this).scrollTop()-i){if(e.$tbayHeader.hasClass("sticky-header"))return;e._stickyHeaderOnDesktop(n,o,i)}else e.$tbayHeaderMain.css("top",0).css("position","relative").removeClass("sticky-header").parent().css("padding-top",0),e.$tbayHeaderMain.prev().css("margin-bottom",0)})}_stickyHeaderOnDesktop(e,t,a){this.$tbayHeaderMain.addClass("sticky-header").css("top",a).css("position","fixed"),0==t||t==a?this.$tbayHeaderMain.parent().css("padding-top",e):this.$tbayHeaderMain.prev().css("margin-bottom",e)}_onClickSeachMin(){$(".tbay-search-form.tbay-search-min form").toggleClass("show"),$(this).toggleClass("active")}_onClickOverLayBox(){$(".search-min-wrapper .btn-search-min").removeClass("active"),$(".tbay-search-form.tbay-search-min form").removeClass("show")}_intSearchOffcanvas(){$('[data-toggle="offcanvas-main-search"]').on("click",function(){$("#wrapper-container").toggleClass("show"),$("#tbay-offcanvas-main").toggleClass("show")});var e=$("#tbay-offcanvas-main, .search");$(window).on("click.Bst",function(t){0!=e.has(t.target).length||e.is(t.target)||($("#wrapper-container").removeClass("show"),$("#tbay-offcanvas-main").removeClass("show"))})}_initELementStickyheader(e){var t=e.first();let a=this;var n=!1;if(0!==t.parents(".tbay_header-template").length){var i=$("#wpadminbar").length>0?$("#wpadminbar").outerHeight():0,o=t.offset().top-$(window).scrollTop()-i;a._initELementStickyheaderContent(o,e,t,i,n),$(window).scroll(function(){n=!0,a._initELementStickyheaderContent(o,e,t,i,n)})}}_initELementStickyheaderContent(e,t,a,n,i){if($(window).scrollTop()<e||0===$(window).scrollTop()&&i)a.css("top",""),0===e?t.last().next().css("padding-top",""):a.prev().css("margin-bottom",""),a.parent().css("padding-top",""),t.each(function(){$(this).removeClass("sticky"),$(this).prev(".element-sticky-header").length>0&&$(this).css("top","")});else{var o=0;t.each(function(){if(!($(this).parents(".element-sticky-header").length>0)&&(o+=$(this).outerHeight(),$(this).addClass("sticky"),$(this).prevAll(".element-sticky-header").length>0)){let e=0;$(this).prevAll(".element-sticky-header").each(function(){e+=$(this).outerHeight()}),$(this).css("top",e+n)}}),a.css("top",n),0===e?(a.addClass("sticky"),a.parent().css("padding-top",o)):a.prev().css("margin-bottom",o)}}}const TREE_VIEW_OPTION_MEGA_MENU={animated:300,collapsed:!0,unique:!0,persist:"location"},TREE_VIEW_OPTION_MOBILE_MENU={animated:300,collapsed:!0,unique:!0,hover:!1},DEVICE={ANDROID:/Android/i,BLACK_BERRY:/BlackBerry/i,IOS:/iPhone|iPad|iPod/i,OPERA:/Opera Mini/i,WINDOW:/IEMobile/i,ANY:/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i};!function(e){e.extend(e.fn,{swapClass:function(e,t){var a=this.filter("."+e);return this.filter("."+t).removeClass(t).addClass(e),a.removeClass(e).addClass(t),this},replaceClass:function(e,t){return this.filter("."+e).removeClass(e).addClass(t).end()},hoverClass:function(t){return t=t||"hover",this.hover(function(){e(this).addClass(t)},function(){e(this).removeClass(t)})},heightToggle:function(e,t){e?this.animate({height:"toggle"},e,t):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"](),t&&t.apply(this,arguments)})},heightHide:function(e,t){e?this.animate({height:"hide"},e,t):(this.hide(),t&&this.each(t))},prepareBranches:function(e){return e.prerendered||(this.filter(":last-child:not(ul)").addClass(t.last),this.filter((e.collapsed?"":"."+t.closed)+":not(."+t.open+")").find(">ul").hide()),this.filter(":has(>ul),:has(>.dropdown-menu)")},applyClasses:function(a,n){this.filter(":has(>ul):not(:has(>a))").find(">span").click(function(t){n.apply(e(this).next())}).add(e("a",this)).hoverClass(),a.prerendered||(this.filter(":has(>ul:hidden),:has(>.dropdown-menu:hidden)").addClass(t.expandable).replaceClass(t.last,t.lastExpandable),this.not(":has(>ul:hidden),:has(>.dropdown-menu:hidden)").addClass(t.collapsable).replaceClass(t.last,t.lastCollapsable),this.prepend('<div class="'+t.hitarea+'"/>').find("div."+t.hitarea).each(function(){var t="";e.each(e(this).parent().attr("class").split(" "),function(){t+=this+"-hitarea "}),e(this).addClass(t)})),this.find("div."+t.hitarea).click(n)},treeview:function(a){function n(){e(this).parent().find(">.hitarea").swapClass(t.collapsableHitarea,t.expandableHitarea).swapClass(t.lastCollapsableHitarea,t.lastExpandableHitarea).end().swapClass(t.collapsable,t.expandable).swapClass(t.lastCollapsable,t.lastExpandable).find(">ul,>.dropdown-menu").heightToggle(a.animated,a.toggle),a.unique&&e(this).parent().siblings().find(">.hitarea").replaceClass(t.collapsableHitarea,t.expandableHitarea).replaceClass(t.lastCollapsableHitarea,t.lastExpandableHitarea).end().replaceClass(t.collapsable,t.expandable).replaceClass(t.lastCollapsable,t.lastExpandable).find(">ul,>.dropdown-menu").heightHide(a.animated,a.toggle)}function i(){var t=[];s.each(function(a,n){t[a]=e(n).is(":has(>ul:visible)")?1:0}),e.cookie(a.cookieId,t.join(""))}if((a=e.extend({cookieId:"treeview"},a)).add)return this.trigger("add",[a.add]);if(a.toggle){var o=a.toggle;a.toggle=function(){return o.apply(e(this).parent()[0],arguments)}}this.addClass("treeview");var s=this.find("li").prepareBranches(a);switch(a.persist){case"cookie":var r=a.toggle;a.toggle=function(){i(),r&&r.apply(this,arguments)},function(){var t=e.cookie(a.cookieId);if(t){var n=t.split("");s.each(function(t,a){e(a).find(">ul")[parseInt(n[t])?"show":"hide"]()})}}();break;case"location":var c=this.find("a").filter(function(){return this.href.toLowerCase()==location.href.toLowerCase()});c.length&&c.addClass("selected").parents("ul, li").add(c.next()).show()}return s.applyClasses(a,n),a.control&&(!function(a,i){function o(i){return function(){return n.apply(e("div."+t.hitarea,a).filter(function(){return!i||e(this).parent("."+i).length})),!1}}e("a:eq(0)",i).click(o(t.collapsable)),e("a:eq(1)",i).click(o(t.expandable)),e("a:eq(2)",i).click(o())}(this,a.control),e(a.control).show()),this.bind("add",function(i,o){e(o).prev().removeClass(t.last).removeClass(t.lastCollapsable).removeClass(t.lastExpandable).find(">.hitarea").removeClass(t.lastCollapsableHitarea).removeClass(t.lastExpandableHitarea),e(o).find("li").andSelf().prepareBranches(a).applyClasses(a,n)})}});var t=e.fn.treeview.classes={open:"open",closed:"closed",expandable:"expandable",expandableHitarea:"expandable-hitarea",lastExpandableHitarea:"lastExpandable-hitarea",collapsable:"collapsable",collapsableHitarea:"collapsable-hitarea",lastCollapsableHitarea:"lastCollapsable-hitarea",lastCollapsable:"lastCollapsable",lastExpandable:"lastExpandable",last:"last",hitarea:"hitarea"};e.fn.Treeview=e.fn.treeview}(jQuery);let tbaysetCookie=(e,t,a)=>{var n=new Date;n.setTime(n.getTime()+24*a*60*60*1e3);var i="expires="+n.toUTCString();document.cookie=e+"="+t+"; "+i+";path=/"},tbaygetCookie=e=>{var t=e+"=";var a=decodeURIComponent(document.cookie);var n=a.split(";");for(var i=0;i<n.length;i++){for(var o=n[i];" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return""},isDevice=e=>{navigator.userAgent.match(e)};class Mobile{constructor(){this._topBarDevice(),this._fixVCAnimation(),this._mobileMenu(),this._SidebarShopMobile(),this._SearchFocusActive(),this._SearchOnClickSearchHeader(),this._PopupLoginMobile(),this._Select_change_form(),$(window).scroll(()=>{this._topBarDevice();this._fixVCAnimation()})}_topBarDevice(){var e=$(window).scrollTop(),t=$(".topbar-device-mobile").height(),a=$(window).scrollTop();$(".topbar-device-mobile").toggleClass("active",e<=t),$("#tbay-mobile-menu").toggleClass("offsetop",0==a)}_fixVCAnimation(){if($(".wpb_animate_when_almost_visible").length>0&&!$(".wpb_animate_when_almost_visible").hasClass("wpb_start_animation")){let t=$(window).height(),a=$(".wpb_animate_when_almost_visible:not(.wpb_start_animation)");var e=a.offset().top-$(window).scrollTop();isDevice(DEVICE.ANY)?a.removeClass("wpb_animate_when_almost_visible"):e<t-50&&a.addClass("wpb_start_animation animated")}}_mobileMenu(){$('[data-toggle="offcanvas"], .btn-offcanvas').click(function(){$("#wrapper-container").toggleClass("active"),$("#tbay-mobile-menu").toggleClass("active")}),$("#main-mobile-menu .caret").click(function(){$("#main-mobile-menu .dropdown").removeClass("open"),$(event.target).parent().addClass("open")})}_SidebarShopMobile(){let e=$(".button-filter-mobile"),t=$(".filter-mobile .close");e.on("click",function(e){$(".filter-mobile").addClass("active"),$("body").addClass("filter-mobile-active")}),t.on("click",function(e){$(".filter-mobile").removeClass("active"),$("body").removeClass("filter-mobile-active")});let a=$(window),n=$(".filter-mobile .content, .button-filter-mobile, .filter-mobile .close");a.on("click.Bst,click touchstart tap",e=>{if(!$(".filter-mobile").hasClass("active"))return;0!=n.has(e.target).length||n.is(e.target)||($(".filter-mobile").removeClass("active"),$("body").removeClass("filter-mobile-active"))})}_SearchFocusActive(){let e=$(".tbay-search-mobile .tbay-search"),t=$(".tbay-search-mobile .button-search-cancel");e.focusin(function(){$(e.parents("#tbay-mobile-menu-navbar")).addClass("search-mobile-focus"),e.parent().find(".button-search-cancel").addClass("cancel-active")}),t.on("click",function(){$(t.parents("#tbay-mobile-menu-navbar")).removeClass("search-mobile-focus"),t.removeClass("cancel-active")})}_SearchOnClickSearchHeader(){let e=$(".search-device .search-icon"),t=$(".search-device .button-search-cancel");e.on("click",function(){$(e.parent()).addClass("active-search-mobile")}),t.on("click",function(){$(t.parents(".search-device")).removeClass("active-search-mobile"),t.removeClass("cancel-active")})}_PopupLoginMobile(){let e=$(".mmenu-account .popup-login a, .footer-device-mobile > .device-account > a.popup-login");e.on("click",function(){let t=$("#tbay-mobile-menu-navbar").data("mmenu");$("#custom-login-wrapper").modal("show"),$(e.parents("#tbay-mobile-menu-navbar")).removeClass("mm-menu_opened"),t.close()})}_Select_change_form(){$(".topbar-device-mobile > form select").on("change",function(){this.form.submit()})}}class AccountMenu{constructor(){this._slideToggleAccountMenu(".tbay-login"),this._slideToggleAccountMenu(".topbar-mobile"),this._urnaClickNotMyAccountMenu()}_urnaClickNotMyAccountMenu(){var e=$(window),t=$(".tbay-login .dropdown .account-menu,.topbar-mobile .dropdown .account-menu,.tbay-login .dropdown .account-button,.topbar-mobile .dropdown .account-button");e.on("click.Bst",function(e){0!=t.has(e.target).length||t.is(e.target)||($(".tbay-login .dropdown .account-menu").slideUp(500),$(".topbar-mobile .dropdown .account-menu").slideUp(500))})}_slideToggleAccountMenu(e){$(e).find(".dropdown .account-button").click(function(){$(e).find(".dropdown .account-menu").slideToggle(500)})}}class BackToTop{constructor(){this._init()}_init(){$(window).scroll(function(){window.$=window.jQuery;var e=$(this).scrollTop()>400;$(".tbay-to-top").length>0&&$(".tbay-to-top").toggleClass("active",e),$(".tbay-category-fixed").length>0&&$(".tbay-category-fixed").toggleClass("active",e)}),($("#back-to-top-mobile").length>0||$("#back-to-top").length>0)&&$("#back-to-top-mobile, #back-to-top").click(this._onClickBackToTop)}_onClickBackToTop(){$("html, body").animate({scrollTop:"0px"},800)}}class CanvasMenu{constructor(){this._init(),this._remove_click_Outside(),this._initCanvasMenuSidebar(),this._initCanvasMenu()}_init(){$("#tbay-offcanvas-main .btn-toggle-canvas").on("click",function(){$("#wrapper-container").removeClass("active")}),$("#main-menu-offcanvas .caret").click(function(){return $("#main-menu-offcanvas .dropdown").removeClass("open"),$(this).parent().addClass("open"),!1}),$('[data-toggle="offcanvas-main"]').on("click",function(){$("#wrapper-container").toggleClass("active"),$("#tbay-offcanvas-main").toggleClass("active")})}_remove_click_Outside(){$(window).on("click.Bst,click touchstart tap",function(e){let t=$("#tbay-offcanvas-main, .btn-toggle-canvas");if(0==t.has(e.target).length&&!t.is(e.target))return void $("#wrapper-container").removeClass("active")})}_initCanvasMenuSidebar(){$(document).on("click",".canvas-menu-sidebar .btn-canvas-menu",function(){$("body").toggleClass("canvas-menu-active")}),$(document).on("click",".close-canvas-menu, .bg-close-canvas-menu",function(){$("body").removeClass("canvas-menu-active")})}_initCanvasMenu(){let e=$(".element-menu-canvas");0!==e.length&&(e.each(function(){jQuery(this).find(".canvas-menu-btn-wrapper > a").on("click",function(e){$(this).parent().parent().addClass("open"),e.stopPropagation()})}),jQuery(document).on("click",".canvas-overlay-wrapper",function(e){$(this).parent().removeClass("open"),e.stopPropagation()}))}}class FuncCommon{constructor(){this._progressAnimation(),this._createWrapStart(),$(".mod-heading .widget-title > span").wrapStart(),this._urnaActiveAdminBar(),this._urnaResizeMegamenu(),this._urnaTooltip(),this._initHeaderCoverBG(),this._initCanvasSearch(),this._initTreeviewMenu(),this._categoryMenu(),this._initContentMinHeight(),this._changeDefaultTimeago(),$(window).scroll(()=>{this._urnaActiveAdminBar()}),$(window).on("resize",()=>{this._urnaResizeMegamenu()}),this._addAccordionLoginandCoupon(),this._initFix_vc_full_width_row()}_urnaActiveAdminBar(){jQuery("#wpadminbar").length>0&&jQuery("body").addClass("active-admin-bar")}_urnaTooltip(){void 0!==$.fn.tooltip&&$('[data-toggle="tooltip"]').tooltip()}_createWrapStart(){$.fn.wrapStart=function(){return this.each(function(){var e=$(this).contents().filter(function(){return 3==this.nodeType}).first(),t=e.text().trim(),a=t.split(" ",1).join(" ");e.length&&(e[0].nodeValue=t.slice(a.length),e.before("<b>"+a+"</b>"))})}}_progressAnimation(){$("[data-progress-animation]").each(function(){var e=$(this);e.appear(function(){var t=e.attr("data-appear-animation-delay")?e.attr("data-appear-animation-delay"):1;t>1&&e.css("animation-delay",t+"ms"),setTimeout(function(){e.animate({width:e.attr("data-progress-animation")},800)},t)},{accX:0,accY:-50})})}_urnaResizeMegamenu(){var e=jQuery("body").innerWidth();0!==jQuery(".tbay_custom_menu").length&&(jQuery(".tbay_custom_menu").length>0&&jQuery(".tbay_custom_menu").hasClass("tbay-vertical-menu")&&(e>767?this._resizeMegaMenuOnDesktop():this._initTreeViewForMegaMenuOnMobile()),jQuery(".tbay-megamenu").length>0&&jQuery(".tbay-megamenu,.tbay-offcanvas-main").hasClass("verticle-menu")&&e>767&&this._resizeMegaMenuVertical())}_resizeMegaMenuVertical(){var e=parseInt($("#main-container.container").innerWidth()),t=e-parseInt($(".verticle-menu").innerWidth());$(".verticle-menu").find(".aligned-fullwidth").children(".dropdown-menu").css({"max-width":t,width:e-30})}_resizeMegaMenuOnDesktop(){let e=$("#main-container.container").innerWidth()-$(".tbay-vertical-menu").innerWidth(),t=$("#main-container.container").innerWidth()-30;$(".tbay-vertical-menu").find(".aligned-fullwidth").children(".dropdown-menu").css({"max-width":e,width:t})}_initTreeViewForMegaMenuOnMobile(){$(".tbay-vertical-menu > .widget_nav_menu >.nav > ul").treeview(TREE_VIEW_OPTION_MEGA_MENU)}_addAccordionLoginandCoupon(){$(".showlogin, .showcoupon").click(function(e){$(e.currentTarget).toggleClass("active")})}_initHeaderCoverBG(){if(0!==$("#tbay-header").length||0!==$("#tbay-customize-header").length){let e=$(".tbay-horizontal .navbar-nav.megamenu > li, #primary-menu.navbar-nav > li, #tbay-header .recent-view .urna-recent-viewed-products, #tbay-customize-header .recent-view .urna-recent-viewed-products"),t=$(".tbay-search-form .tbay-search"),a=$(".category-inside .category-inside-title"),n=$(".cart-popup");e.mouseenter(function(){0!=$(this).children(".dropdown-menu, ul, .content-view").length&&($("#tbay-header").addClass("nav-cover-active-1"),$("#tbay-customize-header").addClass("nav-cover-active-1"))}).mouseleave(function(){$("#tbay-header").removeClass("nav-cover-active-1"),$("#tbay-customize-header").removeClass("nav-cover-active-1")}),t.focusin(function(){t.parents(".sidebar-canvas-search").length>0||($("#tbay-header").addClass("nav-cover-active-2"),$("#tbay-customize-header").addClass("nav-cover-active-2"))}).focusout(function(){$("#tbay-header").removeClass("nav-cover-active-2"),$("#tbay-customize-header").removeClass("nav-cover-active-2")}),n.on("shown.bs.dropdown",function(e){$(e.target).closest("#tbay-header").addClass("nav-cover-active-3"),$(e.target).closest("#tbay-customize-header").addClass("nav-cover-active-3")}).on("hidden.bs.dropdown",function(e){$(e.target).closest("#tbay-header").removeClass("nav-cover-active-3"),$(e.target).closest("#tbay-customize-header").removeClass("nav-cover-active-3")}),a.parents("#tbay-header")&&($(document.body).on("urna_category_inside_open",()=>{$("#tbay-header").addClass("nav-cover-active-4")}),$(document.body).on("urna_category_inside_close",()=>{$("#tbay-header").removeClass("nav-cover-active-4")})),a.parents("#tbay-customize-header")&&($(document.body).on("urna_category_inside_open",()=>{$("#tbay-customize-header").addClass("nav-cover-active-4")}),$(document.body).on("urna_category_inside_close",()=>{$("#tbay-customize-header").removeClass("nav-cover-active-4")}))}}_initCanvasSearch(){let e=$("#tbay-search-form-canvas .sidebar-canvas-search .sidebar-content .tbay-search");e.focusin(function(){e.parent().addClass("search_cv_active")}).focusout(function(){e.parent().removeClass("search_cv_active")})}_initTreeviewMenu(){$("#category-menu").addClass("treeview"),jQuery(".treeview-menu .menu, #category-menu").treeview(TREE_VIEW_OPTION_MEGA_MENU),jQuery("#main-mobile-menu, #main-mobile-menu-xlg").treeview(TREE_VIEW_OPTION_MOBILE_MENU)}_categoryMenu(){$(".category-inside .category-inside-title").click(function(){$(event.target).parents(".category-inside").toggleClass("open"),$(event.target).parents(".category-inside").hasClass("open")?$(document.body).trigger("urna_category_inside_open"):$(document.body).trigger("urna_category_inside_close")}),$(window).on("click.Bst,click touchstart tap",function(e){if("open"!==urna_settings.category_open){let t=$(".category-inside .category-inside-title, .category-inside-content");0===$("#tbay-header").length&&0===$("#tbay-customize-header").length||($(".category-inside").hasClass("open")||$("#tbay-header").hasClass("nav-cover-active-4")&&$("#tbay-customize-header").hasClass("nav-cover-active-4"))&&(0!=t.has(e.target).length||t.is(e.target)||($(".category-inside").removeClass("open"),$("#tbay-header").removeClass("nav-cover-active-4"),$("#tbay-customize-header").removeClass("nav-cover-active-4")))}})}_initContentMinHeight(){if(0!==$("#tbay-header").length||0!==$("#tbay-customize-header").length){let t=jQuery("body").innerWidth(),a=jQuery(window).height(),n=jQuery("#tbay-main-content").outerHeight();if(jQuery("#tbay-header").length>0)e=jQuery("#tbay-header").outerHeight();if(jQuery("#tbay-customize-header").length>0)var e=jQuery("#tbay-customize-header").outerHeight();n<a&&t>1200&&jQuery("#tbay-main-content").css("min-height",a-e)}}_changeDefaultTimeago(){void 0!==jQuery.timeago&&jQuery.extend(jQuery.timeago.settings.strings,{suffixAgo:urna_settings.timeago.suffixAgo,suffixFromNow:urna_settings.timeago.suffixFromNow,inPast:urna_settings.timeago.inPast,seconds:urna_settings.timeago.seconds,minute:urna_settings.timeago.minute,minutes:urna_settings.timeago.minutes,hour:urna_settings.timeago.hour,hours:urna_settings.timeago.hours,day:urna_settings.timeago.day,days:urna_settings.timeago.days,month:urna_settings.timeago.month,months:urna_settings.timeago.months,year:urna_settings.timeago.year,years:urna_settings.timeago.years})}_initFix_vc_full_width_row(){function e(e){var t=$('[data-vc-full-width="true"]');jQuery.each(t,function(){if("rtl"==$("html").attr("dir")){if(parseInt($("body").css("padding-right"))>0){let e=parseInt($("body").css("width"))-parseInt($("body").css("padding-right")),t=(e-parseInt($("#main-container").css("width")))/2,a=t;$(this).data("vc-stretch-content")&&(t=""),$(this).css("width",e).css("right",-a).css("left","").css("padding-left",t).css("padding-right",t)}}else if(parseInt($("body").css("padding-left"))>0){let e=parseInt($("body").css("width"))-parseInt($("body").css("padding-left")),t=(e-parseInt($("#main-container").css("width")))/2,a=t;$(this).data("vc-stretch-content")&&(t=""),$(this).css("width",e).css("left",-a).css("padding-left",t).css("padding-right",t)}})}jQuery(document).on("vc-full-width-row-single",e)}}class NewsLetter{constructor(){this._init()}_init(){let e=$("#popupNewsletterModal");0!==e.length&&(e.on("hidden.bs.modal",function(){tbaysetCookie("hiddenmodal",1,.1)}),setTimeout(function(){""==tbaygetCookie("hiddenmodal")&&e.modal("show")},3e3))}}class Banner{constructor(){this._bannerWidget(),this._bannerAddon()}_bannerWidget(){let e=$("#banner-remove");0!==e.length&&e.on("click",function(e){$(e.target).parents(".widget_urna_banner_image").slideUp("slow"),tbaysetCookie("banner_remove",1,.1)})}_bannerAddon(){let e=$(".banner-remove");0===e.length?$(".elementor-widget-tbay-banner-close").each(function(){$(this).closest("section").addClass("section-banner-close")}):e.on("click",function(e){let t=$(this).data("id");void 0!==t&&($(this).parents(".elementor-widget-tbay-banner-close").slideUp("slow"),Cookies.set("banner_remove_"+t,"hidden",{expires:.1,path:"/"}),e.preventDefault())})}}class Search{constructor(){this._init()}_init(){this._urnaSearchMobile(),this._searchToTop(),this._searchCanvasForm(),this._searchCanvasFormV3(),$(".button-show-search").click(()=>$(".tbay-search-form").addClass("active")),$(".button-hidden-search").click(()=>$(".tbay-search-form").removeClass("active"))}_urnaSearchMobile(){$(".topbar-mobile .search-popup, .search-device-mobile").each(function(){$(this).find(".show-search").click(e=>{$(this).find(".tbay-search-form").slideToggle(500);$(this).find(".tbay-search-form .input-group .tbay-search").focus();$(e.currentTarget).toggleClass("active")})}),$(window).on("click.Bst,click touchstart tap",function(e){var t=$(".footer-device-mobile > div i, .topbar-device-mobile .search-device-mobile i ,.search-device-mobile .tbay-search-form form");$(".search-device-mobile .show-search").hasClass("active")&&(0!=t.has(e.target).length||t.is(e.target)||($(".search-device-mobile .tbay-search-form").slideUp(500),$(".search-device-mobile .show-search").removeClass("active"),$("body").removeClass("mobile-search-active")))}),$(".topbar-mobile .dropdown-menu").click(function(e){e.stopPropagation()})}_searchToTop(){$(".search-totop-wrapper .btn-search-totop").click(function(){$(".search-totop-content").toggleClass("active"),$(this).toggleClass("active")});var e=$(".search-totop-wrapper .btn-search-totop, .search-totop-content");$(window).on("click.Bst",function(t){0!=e.has(t.target).length||e.is(t.target)||($(".search-totop-wrapper .btn-search-totop").removeClass("active"),$(".search-totop-content").removeClass("active"))})}_searchCanvasForm(){let e=$("#tbay-search-form-canvas");e.find("button.search-open").click(function(){$(event.target).parents("#tbay-search-form-canvas").toggleClass("open"),$("body").toggleClass("active-search-canvas")});let t=$(window),a=$("#tbay-search-form-canvas .search-open, #tbay-search-form-canvas .sidebar-content");t.on("click.Bst",function(t){e.hasClass("open")&&(0!=a.has(t.target).length||a.is(t.target)||(e.removeClass("open"),$("body").removeClass("active-search-canvas")))}),e.find("button.btn-search-close").click(function(){e.hasClass("open")&&(e.removeClass("open"),$("body").removeClass("active-search-canvas"))})}_searchCanvasFormV3(){let e=$("#tbay-search-form-canvas-v3");e.find("button.search-open").click(function(){$(event.target).parents("#tbay-search-form-canvas-v3").toggleClass("open"),$("body").toggleClass("active-search-canvas")});let t=$(window),a=$("#tbay-search-form-canvas-v3 .search-open, #tbay-search-form-canvas-v3 .sidebar-content");t.on("click.Bst",function(t){e.hasClass("open")&&(0!=a.has(t.target).length||a.is(t.target)||(e.removeClass("open"),$("body").removeClass("active-search-canvas")))}),e.find("button.btn-search-close").click(function(){e.hasClass("open")&&(e.removeClass("open"),$("body").removeClass("active-search-canvas"))})}}class TreeView{constructor(){this._tbayTreeViewMenu()}_tbayTreeViewMenu(){void 0!==$.fn.treeview&&void 0!==$(".tbay-treeview")&&0!==$(".tbay-treeview").length&&$(".tbay-treeview").each(function(){$(".tbay-treeview").find(".hitarea").length>0||$(this).find("> ul").treeview({animated:400,collapsed:!0,unique:!0,persist:"location"})})}}class Section{constructor(){this._tbayMegaMenu(),this._tbayRecentlyView()}_tbayMegaMenu(){let e=$(".elementor-widget-tbay-nav-menu > .elementor-widget-container > .tbay-addon-nav-menu");0!==e.length&&e.each(function(){void 0!==$(this).attr("data-wrapper")&&"horizontal"===$(this).data("wrapper").layout&&($(this).closest(".elementor-top-column").hasClass("tbay-column-static")||$(this).closest(".elementor-top-column").addClass("tbay-column-static"),$(this).closest("section").hasClass("tbay-section-static")||$(this).closest("section").addClass("tbay-section-static"))})}_tbayRecentlyView(){let e=$(".tbay-addon-header-recently-viewed");0!==e.length&&e.each(function(){$(this).closest(".elementor-top-column").hasClass("tbay-column-static")||$(this).closest(".elementor-top-column").addClass("tbay-column-static"),$(this).closest(".elementor-top-column").hasClass("tbay-column-recentlyviewed")||$(this).closest(".elementor-top-column").addClass("tbay-column-recentlyviewed"),$(this).closest("section").hasClass("tbay-section-recentlyviewed")||$(this).closest("section").addClass("tbay-section-recentlyviewed"),$(this).closest("section").hasClass("tbay-section-static")||$(this).closest("section").addClass("tbay-section-static")})}}class Preload{constructor(){this._init()}_init(){if($.fn.jpreLoader){var e=$(".js-preloader");e.jpreLoader({},function(){e.addClass("preloader-done"),$("body").trigger("preloader-done"),$(window).trigger("resize")})}$(".tbay-page-loader").delay(100).fadeOut(400,function(){$("body").removeClass("tbay-body-loading"),$(this).remove()}),$(document.body).hasClass("tbay-body-loader")&&setTimeout(function(){$(document.body).removeClass("tbay-body-loader"),$(".tbay-page-loader").fadeOut(250)},300)}}!function(e){e.fn.unveil=function(t,a){function n(){var t=c.filter(function(){var t=e(this),a=o.scrollTop()-30,n=a+o.height(),i=t.offset().top;return i+t.height()>=a-s&&i<=n+s});i=t.trigger("unveil"),c=c.not(i)}var i,o=e(window),s=t||0,r=window.devicePixelRatio>1?"data-src-retina":"data-src",c=this;return this.one("unveil",function(){var e=this.getAttribute(r);(e=e||this.getAttribute("data-src"))&&(this.setAttribute("src",e),"function"==typeof a&&a.call(this))}),o.on("scroll.unveil resize.unveil lookup.unveil",n),n(),this}}(window.jQuery||window.Zepto);class layzyLoadImage{constructor(){urna_settings.lazyload&&($(window).off("scroll.unveil resize.unveil lookup.unveil"),this._intImageLoad(".tbay-image-loaded:not(.image-loaded) .unveil-image",".tbay-image-loaded"),this._initImageProduct())}_initImageProduct(){var e=$(".product-image:not(.image-loaded) .unveil-image, .tbay-gallery-varible:not(.image-loaded) .unveil-image");e.length&&e.unveil(1,function(){$(this).load(function(){$(this).parents(".product-image, .tbay-gallery-varible").first().addClass("image-loaded"),$(this).removeAttr("data-src"),$(this).removeAttr("data-srcset"),$(this).removeAttr("data-sizes"),$(this).css("opacity","1")})})}_intImageLoad(e,t){var a=$(e);a.length&&a.unveil(1,function(){$(this).load(function(){$(this).parents(t).first().addClass("image-loaded"),$(this).removeAttr("data-src"),$(this).removeAttr("data-srcset"),$(this).removeAttr("data-sizes"),$(this).css("opacity","1")})})}}class Tabs{constructor(){$("ul.nav-tabs li a").on("show.bs.tab",e=>{$(document.body).trigger("urna_lazyload_image")}),$(".wc-tabs li a").on("click",e=>{$(document.body).trigger("urna_lazyload_image")})}}!function(e,t){var a=function(e,t,a){var n;return function(){function i(){a||e.apply(o,s),n=null}var o=this,s=arguments;n?clearTimeout(n):a&&e.apply(o,s),n=setTimeout(i,t||100)}};jQuery.fn[t]=function(e){return e?this.bind("resize",a(e)):this.trigger(t)}}(jQuery,"smartresize"),window.$=window.jQuery,$(document).ready(()=>{setTimeout(function(){new layzyLoadImage},200);new StickyHeader,new Tabs,new StickyHeader,new AccountMenu,new BackToTop,new CanvasMenu,new FuncCommon,new NewsLetter,new Banner,new Preload,new Search,new TreeView,new Section;(urna_settings.mobile||$(window).width()<1025)&&new Mobile}),$(window).smartresize(function(){if(jQuery(window).width()<1025)try{new Mobile}catch(e){}}),$(document.body).on("urna_lazyload_image",()=>{setTimeout(function(){new layzyLoadImage},200)});var CustomTreeViewMenu=function(e,t){(new TreeView)._tbayTreeViewMenu()};jQuery(window).on("elementor/frontend/init",function(){jQuery.isArray(urna_settings.elements_ready.treeview)&&$.each(urna_settings.elements_ready.treeview,function(e,t){elementorFrontend.hooks.addAction("frontend/element_ready/tbay-"+t+".default",CustomTreeViewMenu)})});"use strict";class MiniCart{miniCartAll(){var t=this;jQuery(".dropdown-toggle").dropdown(),t.remove_click_Outside(),$("#tbay-offcanvas-main .btn-toggle-canvas").on("click",function(){$("#tbay-offcanvas-main").removeClass("active")}),$(".mini-cart").click(function(t){$(t.currentTarget).parents(".tbay-topcart").length>0&&($(".tbay-dropdown-cart").addClass("active"),$(document.body).trigger("urna_refreshed_mini_cart_top"))}),$(".offcanvas-close").click(function(t){t.preventDefault(),$(".tbay-dropdown-cart").removeClass("active")}),$(".mini-cart.v2").click(function(t){t.preventDefault(),$("#wrapper-container").toggleClass(t.currentTarget.dataset.offcanvas)})}remove_click_Outside(){0===$("#tbay-header").length&&0===$("#tbay-customize-header").length||$(window).on("click.Bst,click touchstart tap",function(t){if($("#tbay-header").length>0)e=$("#tbay-header .top-cart .dropdown-content .widget_shopping_cart_content, .top-cart .widget-header-cart > span, .top-cart .heading-title, .topbar-device-mobile .top-cart .dropdown-content, a.ajax_add_to_cart, .top-cart .cart_list a.remove");if($("#tbay-customize-header").length>0)var e=$("#tbay-customize-header .top-cart .dropdown-content .widget_shopping_cart_content, .top-cart .widget-header-cart > span, .top-cart .heading-title, .topbar-device-mobile .top-cart .dropdown-content, a.ajax_add_to_cart, .top-cart .cart_list a.remove");if(0!==e.length&&!!$(".tbay-dropdown-cart").hasClass("active"))return 0!=e.has(t.target).length||e.is(t.target)?void 0:($("#wrapper-container").removeClass("offcanvas-right"),$("#wrapper-container").removeClass("offcanvas-left"),$(".tbay-dropdown-cart").removeClass("active"),$("#tbay-offcanvas-main,.tbay-offcanvas").removeClass("active"),void $("#tbay-dropdown-cart").hide(500))})}minicartTopContent(){if(0!==$("#tbay-header").length||0!==$("#tbay-customize-header").length){if(window.$=window.jQuery,$("#tbay-header").length>0)var t=jQuery("#tbay-header .top-cart .dropdown-content .widget_shopping_cart_content"),e=jQuery("#tbay-header .top-cart .dropdown-content .widget_shopping_cart_content .mcart-border ul.product_list_widget");if($("#tbay-customize-header").length>0)var t=jQuery("#tbay-customize-header .top-cart .dropdown-content .widget_shopping_cart_content"),e=jQuery("#tbay-customize-header .top-cart .dropdown-content .widget_shopping_cart_content .mcart-border ul.product_list_widget");let a=t.parent().find(".widget-header-cart").outerHeight(),o=e.next().outerHeight();t.css("top",a),e.css("bottom",o+10)}}minicartTopContentmobile(){window.$=window.jQuery;let t=jQuery(".topbar-device-mobile .top-cart .dropdown-content .widget_shopping_cart_content"),e=t.parent().find(".widget-header-cart").outerHeight(),a=jQuery(".topbar-device-mobile .top-cart .dropdown-content .widget_shopping_cart_content .mcart-border ul.product_list_widget"),o=a.next().outerHeight();t.css("top",e),a.css("bottom",o+10)}}const ADDED_TO_CART_EVENT="added_to_cart",LOADMORE_AJAX_HOME_PAGE="urna_more_post_ajax",LOADMORE_AJAX_SHOP_PAGE="urna_pagination_more_post_ajax",LIST_POST_AJAX_SHOP_PAGE="urna_list_post_ajax",GRID_POST_AJAX_SHOP_PAGE="urna_grid_post_ajax";class AjaxCart{constructor(){let t=this;switch(t.ajaxCartPosition=urna_settings.cart_position,t.ajaxCartPosition){case"popup":t._initAjaxPopup();break;case"left":t._initAjaxCartLeftOrRight("left");break;case"right":t._initAjaxCartLeftOrRight("right")}MiniCart.prototype.miniCartAll(),t._initEventRemoveProduct(),$(window).on("resize",()=>{urna_settings.mobile&&$(window).width()<992?MiniCart.prototype.minicartTopContentmobile():MiniCart.prototype.minicartTopContent()}),$(document.body).on("wc_fragments_refreshed",function(){urna_settings.mobile&&$(window).width()<992?MiniCart.prototype.minicartTopContentmobile():MiniCart.prototype.minicartTopContent()}),$(document.body).on("urna_refreshed_mini_cart_top",function(){urna_settings.mobile&&$(window).width()<992?MiniCart.prototype.minicartTopContentmobile():MiniCart.prototype.minicartTopContent()})}_initAjaxPopup(){jQuery(`.ajax_cart_popup`).on("click",".ajax_add_to_cart",function(t){let e=$(this),a=$("#tbay-cart-modal"),o=$("#tbay-cart-modal").find(".modal-body-content"),i=urna_settings.popup_cart_noti,n=(urna_settings.popup_cart_icon,""),r=e.closest(".product").find(".name  a").html();void 0!==r&&(n+=`<div class="popup-cart">`,n+=`<div class="main-content">`,n+=`<p>"${r}" ${i}</p>`,wc_add_to_cart_params.is_cart||(n+=`<a href="${wc_add_to_cart_params.cart_url}" title="${wc_add_to_cart_params.i18n_view_cart}">${wc_add_to_cart_params.i18n_view_cart}</a>`),n+=`<button type="button" class="close btn btn-close" data-dismiss="modal" aria-hidden="true">${urna_settings.popup_cart_icon}</button>`,n+=`</div>`,void 0!==(n+=`</div>`)&&(o.append(n),a.addClass("active"),jQuery(`.ajax_cart_popup`).trigger("active_ajax_cart_popup")))}),jQuery(`.ajax_cart_popup`).on("active_ajax_cart_popup",()=>{$("#tbay-cart-modal").hasClass("active")&&$("#tbay-cart-modal").on("click",function(){let t=$(this);$(this).closest("#tbay-cart-modal").removeClass("active"),setTimeout(function(){t.closest("#tbay-cart-modal").find(".modal-body .modal-body-content").empty()},300)})})}_initAjaxCartLeftOrRight(t){jQuery(`.ajax_cart_${t}`).on("added_to_cart",function(){$(".tbay-dropdown-cart").addClass("active"),$(document.body).trigger("wc_fragments_refreshed")})}_initEventRemoveProduct(){$(document).on("click",".mini_cart_content a.remove",t=>{this._onclickRemoveProduct(t)})}_onclickRemoveProduct(t){t.preventDefault();var e=$(t.currentTarget).attr("data-product_id"),a=$(t.currentTarget).attr("data-cart_item_key"),o=jQuery(t.currentTarget).parents(".mini_cart_item"),i=$(t.currentTarget).closest(".widget_shopping_cart_content");o.block({message:null,overlayCSS:{cursor:"none"}}),this._callRemoveProductAjax(e,a,i,t)}_callRemoveProductAjax(t,e,a,o){$.ajax({type:"POST",dataType:"json",url:wc_add_to_cart_params.ajax_url,data:{action:"product_remove",product_id:t,cart_item_key:e},beforeSend:function(){a.find(".mini_cart_content").append('<div class="ajax-loader-wapper"><div class="ajax-loader"></div></div>').fadeTo("slow",.3),o.stopPropagation()},success:e=>{this._onRemoveSuccess(e,t);$(document.body).trigger("wc_fragments_refreshed")}})}_onRemoveSuccess(t,e){if(t&&!t.error){var a=t.fragments;a&&$.each(a,function(t,e){$(t).replaceWith(e)}),$('.add_to_cart_button.added[data-product_id="'+e+'"]').removeClass("added").next(".wc-forward").remove()}}}class WishList{constructor(){this._onChangeWishListItem(),$(document.body).on("removed_from_wishlist",()=>{$(document.body).trigger("urna_lazyload_image")})}_onChangeWishListItem(){jQuery(document).on("added_to_wishlist removed_from_wishlist",()=>{var t=jQuery(".count_wishlist");$.ajax({url:yith_wcwl_l10n.ajax_url,data:{action:"yith_wcwl_update_wishlist_count"},dataType:"json",success:function(e){t.html(e.count)},beforeSend:function(){t.block()},complete:function(){t.unblock()}})})}}class ProductItem{initOnChangeQuantity(t){$(".quantity input").each(function(){$(this).parent(".box").length||($(this).wrap('<span class="box"></span>'),$(`<button class="minus" type="button" value="&nbsp;">${urna_settings.quantity_minus}</button>`).insertBefore($(this)),$(`<button class="plus" type="button" value="&nbsp;">${urna_settings.quantity_plus}</button>`).insertAfter($(this)))}),$(".plus, .minus").click(function(){var e=jQuery(this).closest(".quantity").find(".qty"),a=parseFloat(e.val()),o=$(e).attr("max"),i=$(e).attr("min"),n=$(e).attr("step");a=a&&""!==a&&"NaN"!==a?a:0,o=""===o||"NaN"===o?"":o,i=""===i||"NaN"===i?0:i,n="any"===n||""===n||void 0===n||NaN===parseFloat(n)?1:n,$(this).is(".plus")?o&&(o==a||a>o)?e.val(o):e.val(a+parseFloat(n)):i&&(i==a||a<i)?e.val(i):a>0&&e.val(a-parseFloat(n)),t&&"function"==typeof t&&($(this).parent().find("input").trigger("change"),t())})}_initSwatches(){$("body").on("click",".tbay-swatches-wrapper li a",function(){let t=!1,e=$(this).closest(".product-block");if(e.find(".tbay-product-slider-gallery").hasClass("slick-initialized"))a=e.find(".image .slick-current img:eq(0)");else var a=e.find(".image img:eq(0)");$(this).closest("ul").hasClass("active")||($(this).closest("ul").addClass("active"),a.attr("data-old",a.attr("src"))),$(this).hasClass("selected")?(a.attr("src",a.data("old")),$(this).removeClass("selected"),e.removeClass("product-swatched")):($(this).closest("ul").find("li a").each(function(){$(this).hasClass("selected")&&$(this).removeClass("selected")}),$(this).addClass("selected"),e.addClass("product-swatched"),t=!0),t&&(void 0!==$(this).data("imageSrc")&&a.attr("src",$(this).data("imageSrc")),void 0!==$(this).data("imageSrcset")&&a.attr("srcset",$(this).data("imageSrcset")),void 0!==$(this).data("imageSizes")&&a.attr("sizes",$(this).data("imageSizes")))})}_initQuantityMode(){urna_settings.quantity_mode&&($(".woocommerce .products").on("click",".quantity input",function(){return!1}),$(".woocommerce .products").on("change input",".quantity .qty",function(){$(this).parents(".product").find(".add_to_cart_button").attr("data-quantity",$(this).val())}),$(".woocommerce .products").on("keypress",".quantity .qty",function(t){13===(t.which||t.keyCode)&&$(this).parents(".product").find(".add_to_cart_button").trigger("click")}))}}class Cart{constructor(){this._initEventChangeQuantity(),$(document.body).on("updated_wc_div",()=>{this._initEventChangeQuantity();"undefined"!=typeof wc_add_to_cart_variation_params&&$(".variations_form").each(function(){$(this).wc_variation_form()})}),$(document.body).on("cart_page_refreshed",()=>{this._initEventChangeQuantity()}),$(document.body).on("urna_lazyload_image",()=>{this._initEventChangeQuantity()})}_initEventChangeQuantity(){(new ProductItem).initOnChangeQuantity(()=>{$("body.woocommerce-cart [name='update_cart']").length>0&&($('.woocommerce-cart-form :input[name="update_cart"]').prop("disabled",!1),urna_settings.ajax_update_quantity&&$("[name='update_cart']").trigger("click"))})}}class Checkout{constructor(){this._toogleWoocommerceIcon()}_toogleWoocommerceIcon(){$(".woocommerce-info a").length<1||$(".woocommerce-info a").click(function(){$(this).find(".icons").toggleClass("icon-arrow-down").toggleClass("icon-arrow-up")})}}class SideBar{constructor(){this._layoutShopAjaxFilter(),$(document.body).on("layoutShopAjaxFilter",()=>{this._layoutShopAjaxFilter()})}_layoutShopAjaxFilter(){$(".tbay-ajax-filter-btn .btn").on("click",function(t){$(t.currentTarget).parent().toggleClass("active"),$("#tbay-ajax-filter-sidebar").stop(!0,!0).slideToggle(500,function(){})})}}class LoadMore{constructor(){this._initLoadMoreOnHomePage(),this._initLoadMoreOnShopPage(),this._int_berocket_lmp_end()}_initLoadMoreOnHomePage(){var t=this;$(".more_products").each(function(){var e=$(this).data("id");$(`#more_products_${e} a[data-loadmore="true"]`).click(function(){var a=$(this);return t._callAjaxLoadMore({data:{action:"urna_more_post_ajax",paged:$(this).data("paged")+1,number:$(this).data("number"),columns:$(this).data("columns"),layout:$(this).data("layout"),type:$(this).data("type"),category:$(this).data("category"),screen_desktop:$(this).data("desktop"),screen_desktopsmall:$(this).data("desktopsmall"),screen_tablet:$(this).data("tablet"),screen_mobile:$(this).data("mobile")},event:a,id:e,thisItem:$(this).parent().parent()}),!1})})}_initLoadMoreOnShopPage(){$(".tbay-pagination-load-more").each(function(t){$(this).data("id");$('.tbay-pagination-load-more a[data-loadmore="true"]').click(function(){var t=$(this),e={action:LOADMORE_AJAX_SHOP_PAGE,query:urna_settings.posts,page:urna_settings.current_page};return $.ajax({url:urna_settings.ajaxurl,data:e,type:"POST",beforeSend:function(e){t.addClass("active")},success:function(e){e?(t.closest("#main").find(".display-products > div").append(e),urna_settings.current_page++,t.removeClass("active"),urna_settings.current_page==urna_settings.max_page&&t.remove(),$(document.body).trigger("urna_lazyload_image")):t.remove()}}),!1})})}_callAjaxLoadMore(t){var e=this,a=t.data,o=t.event;$.ajax({type:"POST",dataType:"JSON",url:woocommerce_params.ajax_url,data:a,beforeSend:function(){o.addClass("active")},success:function(a){e._onAjaxSuccess(a,t)}})}_onAjaxSuccess(t,e){var a=e.data,o=e.event;0==t.check&&o.remove(),o.data("paged",a.paged),o.data("number",a.number+a.columns*("urna_more_post_ajax"===e.data.action?3:2)),("urna_more_post_ajax"===e.data.action?$(`.widget_products_${e.id} .products>.row`):$(".archive-shop .products >.row")).append(t.posts),"undefined"!=typeof wc_add_to_cart_variation_params&&$(".variations_form").each(function(){$(this).wc_variation_form().find(".variations select:eq(0)").trigger("change")}),$(document.body).trigger("urna_lazyload_image"),$(".woocommerce-product-gallery").each(function(){jQuery(this).wc_product_gallery()}),jQuery(`.variable-load-more-${a.paged}`).tawcvs_variation_swatches_form(),"undefined"!=typeof tawcvs_variation_swatches_form&&($(".variations_form").tawcvs_variation_swatches_form(),$(document.body).trigger("tawcvs_initialized")),o.find(".loadding").remove(),o.removeClass("active"),o.button("reset"),e.thisItem.removeAttr("style")}_int_berocket_lmp_end(){$(document).on("berocket_lmp_end",()=>{$(".woocommerce-product-gallery").each(function(){jQuery(this).wc_product_gallery()});$(document.body).trigger("urna_lazyload_image");"undefined"!=typeof wc_add_to_cart_variation_params&&$(".variations_form").each(function(){$(this).wc_variation_form().find(".variations select:eq(0)").trigger("change")});"undefined"!=typeof tawcvs_variation_swatches_form&&($(".variations_form").tawcvs_variation_swatches_form(),$(document.body).trigger("tawcvs_initialized"))})}}class ModalVideo{constructor(t,e={classBtn:".tbay-modalButton",defaultW:640,defaultH:360}){this.$el=t,this.options=e,this._initVideoIframe()}_initVideoIframe(){$(`${this.options.classBtn}[data-target='${this.$el}']`).on("click",this._onClickModalBtn),$(this.$el).on("hidden.bs.modal",()=>{$(this.$el).find("iframe").html("").attr("src","")})}_onClickModalBtn(t){let e=$(t.currentTarget).data("target");var a=$(t.currentTarget).attr("data-tbayVideoFullscreen")||!1,o={src:$(t.currentTarget).attr("data-tbaySrc"),height:$(t.currentTarget).attr("data-tbayHeight")||this.options.defaultH,width:$(t.currentTarget).attr("data-tbayWidth")||this.options.defaultW};a&&(o.allowfullscreen=""),$(e).find("iframe").attr(o)}}class WooCommon{constructor(){this._urnaVideoModal(),this._urnaFixRemove(),$(document.body).on("urnaFixRemove",()=>{this._urnaFixRemove()})}_urnaVideoModal(){$(".tbay-video-modal").each((t,e)=>{new ModalVideo(`#video-modal-${$(e).attr("data-id")}`)})}_urnaFixRemove(){$(".tbay-gallery-varible .woocommerce-product-gallery__trigger").remove()}}!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(t){var e,a,o,i,n,r,s=function(){},c=!!window.jQuery,d=t(window),l=function(t,a){e.ev.on("mfp"+t+".mfp",a)},u=function(e,a,o,i){var n=document.createElement("div");return n.className="mfp-"+e,o&&(n.innerHTML=o),i?a&&a.appendChild(n):(n=t(n),a&&n.appendTo(a)),n},p=function(a,o){e.ev.triggerHandler("mfp"+a,o),e.st.callbacks&&(a=a.charAt(0).toLowerCase()+a.slice(1),e.st.callbacks[a]&&e.st.callbacks[a].apply(e,t.isArray(o)?o:[o]))},m=function(a){return a===r&&e.currTemplate.closeBtn||(e.currTemplate.closeBtn=t(e.st.closeMarkup.replace("%title%",e.st.tClose)),r=a),e.currTemplate.closeBtn},f=function(){t.magnificPopup.instance||((e=new s).init(),t.magnificPopup.instance=e)},g=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(void 0!==t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1};s.prototype={constructor:s,init:function(){var a=navigator.appVersion;e.isLowIE=e.isIE8=document.all&&!document.addEventListener,e.isAndroid=/android/gi.test(a),e.isIOS=/iphone|ipad|ipod/gi.test(a),e.supportsTransition=g(),e.probablyMobile=e.isAndroid||e.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),o=t(document),e.popupsCache={}},open:function(a){var i;if(!1===a.isObj){e.items=a.items.toArray(),e.index=0;var r,s=a.items;for(i=0;i<s.length;i++)if((r=s[i]).parsed&&(r=r.el[0]),r===a.el[0]){e.index=i;break}}else e.items=t.isArray(a.items)?a.items:[a.items],e.index=a.index||0;if(e.isOpen)return void e.updateItemHTML();e.types=[],n="",a.mainEl&&a.mainEl.length?e.ev=a.mainEl.eq(0):e.ev=o,a.key?(e.popupsCache[a.key]||(e.popupsCache[a.key]={}),e.currTemplate=e.popupsCache[a.key]):e.currTemplate={},e.st=t.extend(!0,{},t.magnificPopup.defaults,a),e.fixedContentPos="auto"===e.st.fixedContentPos?!e.probablyMobile:e.st.fixedContentPos,e.st.modal&&(e.st.closeOnContentClick=!1,e.st.closeOnBgClick=!1,e.st.showCloseBtn=!1,e.st.enableEscapeKey=!1),e.bgOverlay||(e.bgOverlay=u("bg").on("click.mfp",function(){e.close()}),e.wrap=u("wrap").attr("tabindex",-1).on("click.mfp",function(t){e._checkIfClose(t.target)&&e.close()}),e.container=u("container",e.wrap)),e.contentContainer=u("content"),e.st.preloader&&(e.preloader=u("preloader",e.container,e.st.tLoading));var c=t.magnificPopup.modules;for(i=0;i<c.length;i++){var f=c[i];f=f.charAt(0).toUpperCase()+f.slice(1),e["init"+f].call(e)}p("BeforeOpen"),e.st.showCloseBtn&&(e.st.closeBtnInside?(l("MarkupParse",function(t,e,a,o){a.close_replaceWith=m(o.type)}),n+=" mfp-close-btn-in"):e.wrap.append(m())),e.st.alignTop&&(n+=" mfp-align-top"),e.fixedContentPos?e.wrap.css({overflow:e.st.overflowY,overflowX:"hidden",overflowY:e.st.overflowY}):e.wrap.css({top:d.scrollTop(),position:"absolute"}),(!1===e.st.fixedBgPos||"auto"===e.st.fixedBgPos&&!e.fixedContentPos)&&e.bgOverlay.css({height:o.height(),position:"absolute"}),e.st.enableEscapeKey&&o.on("keyup.mfp",function(t){27===t.keyCode&&e.close()}),d.on("resize.mfp",function(){e.updateSize()}),e.st.closeOnContentClick||(n+=" mfp-auto-cursor"),n&&e.wrap.addClass(n);var g=e.wH=d.height(),_={};if(e.fixedContentPos&&e._hasScrollBar(g)){var h=e._getScrollbarSize();h&&(_.marginRight=h)}e.fixedContentPos&&(e.isIE7?t("body, html").css("overflow","hidden"):_.overflow="hidden");var v=e.st.mainClass;return e.isIE7&&(v+=" mfp-ie7"),v&&e._addClassToMFP(v),e.updateItemHTML(),p("BuildControls"),t("html").css(_),e.bgOverlay.add(e.wrap).prependTo(e.st.prependTo||t(document.body)),e._lastFocusedEl=document.activeElement,setTimeout(function(){e.content?(e._addClassToMFP("mfp-ready"),e._setFocus()):e.bgOverlay.addClass("mfp-ready"),o.on("focusin.mfp",e._onFocusIn)},16),e.isOpen=!0,e.updateSize(g),p("Open"),a},close:function(){e.isOpen&&(p("BeforeClose"),e.isOpen=!1,e.st.removalDelay&&!e.isLowIE&&e.supportsTransition?(e._addClassToMFP("mfp-removing"),setTimeout(function(){e._close()},e.st.removalDelay)):e._close())},_close:function(){p("Close");var a="mfp-removing mfp-ready ";if(e.bgOverlay.detach(),e.wrap.detach(),e.container.empty(),e.st.mainClass&&(a+=e.st.mainClass+" "),e._removeClassFromMFP(a),e.fixedContentPos){var i={marginRight:""};e.isIE7?t("body, html").css("overflow",""):i.overflow="",t("html").css(i)}o.off("keyup.mfp focusin.mfp"),e.ev.off(".mfp"),e.wrap.attr("class","mfp-wrap").removeAttr("style"),e.bgOverlay.attr("class","mfp-bg"),e.container.attr("class","mfp-container"),!e.st.showCloseBtn||e.st.closeBtnInside&&!0!==e.currTemplate[e.currItem.type]||e.currTemplate.closeBtn&&e.currTemplate.closeBtn.detach(),e.st.autoFocusLast&&e._lastFocusedEl&&t(e._lastFocusedEl).focus(),e.currItem=null,e.content=null,e.currTemplate=null,e.prevHeight=0,p("AfterClose")},updateSize:function(t){if(e.isIOS){var a=document.documentElement.clientWidth/window.innerWidth,o=window.innerHeight*a;e.wrap.css("height",o),e.wH=o}else e.wH=t||d.height();e.fixedContentPos||e.wrap.css("height",e.wH),p("Resize")},updateItemHTML:function(){var a=e.items[e.index];e.contentContainer.detach(),e.content&&e.content.detach(),a.parsed||(a=e.parseEl(e.index));var o=a.type;if(p("BeforeChange",[e.currItem?e.currItem.type:"",o]),e.currItem=a,!e.currTemplate[o]){var n=!!e.st[o]&&e.st[o].markup;p("FirstMarkupParse",n),e.currTemplate[o]=!n||t(n)}i&&i!==a.type&&e.container.removeClass("mfp-"+i+"-holder");var r=e["get"+o.charAt(0).toUpperCase()+o.slice(1)](a,e.currTemplate[o]);e.appendContent(r,o),a.preloaded=!0,p("Change",a),i=a.type,e.container.prepend(e.contentContainer),p("AfterChange")},appendContent:function(t,a){e.content=t,t?e.st.showCloseBtn&&e.st.closeBtnInside&&!0===e.currTemplate[a]?e.content.find(".mfp-close").length||e.content.append(m()):e.content=t:e.content="",p("BeforeAppend"),e.container.addClass("mfp-"+a+"-holder"),e.contentContainer.append(e.content)},parseEl:function(a){var o,i=e.items[a];if(i.tagName?i={el:t(i)}:(o=i.type,i={data:i,src:i.src}),i.el){for(var n=e.types,r=0;r<n.length;r++)if(i.el.hasClass("mfp-"+n[r])){o=n[r];break}i.src=i.el.attr("data-mfp-src"),i.src||(i.src=i.el.attr("href"))}return i.type=o||e.st.type||"inline",i.index=a,i.parsed=!0,e.items[a]=i,p("ElementParse",i),e.items[a]},addGroup:function(t,a){var o=function(o){o.mfpEl=this,e._openClick(o,t,a)};a||(a={});var i="click.magnificPopup";a.mainEl=t,a.items?(a.isObj=!0,t.off(i).on(i,o)):(a.isObj=!1,a.delegate?t.off(i).on(i,a.delegate,o):(a.items=t,t.off(i).on(i,o)))},_openClick:function(a,o,i){if((void 0!==i.midClick?i.midClick:t.magnificPopup.defaults.midClick)||!(2===a.which||a.ctrlKey||a.metaKey||a.altKey||a.shiftKey)){var n=void 0!==i.disableOn?i.disableOn:t.magnificPopup.defaults.disableOn;if(n)if(t.isFunction(n)){if(!n.call(e))return!0}else if(d.width()<n)return!0;a.type&&(a.preventDefault(),e.isOpen&&a.stopPropagation()),i.el=t(a.mfpEl),i.delegate&&(i.items=o.find(i.delegate)),e.open(i)}},updateStatus:function(t,o){if(e.preloader){a!==t&&e.container.removeClass("mfp-s-"+a),o||"loading"!==t||(o=e.st.tLoading);var i={status:t,text:o};p("UpdateStatus",i),t=i.status,o=i.text,e.preloader.html(o),e.preloader.find("a").on("click",function(t){t.stopImmediatePropagation()}),e.container.addClass("mfp-s-"+t),a=t}},_checkIfClose:function(a){if(!t(a).hasClass("mfp-prevent-close")){var o=e.st.closeOnContentClick,i=e.st.closeOnBgClick;if(o&&i)return!0;if(!e.content||t(a).hasClass("mfp-close")||e.preloader&&a===e.preloader[0])return!0;if(a===e.content[0]||t.contains(e.content[0],a)){if(o)return!0}else if(i&&t.contains(document,a))return!0;return!1}},_addClassToMFP:function(t){e.bgOverlay.addClass(t),e.wrap.addClass(t)},_removeClassFromMFP:function(t){this.bgOverlay.removeClass(t),e.wrap.removeClass(t)},_hasScrollBar:function(t){return(e.isIE7?o.height():document.body.scrollHeight)>(t||d.height())},_setFocus:function(){(e.st.focus?e.content.find(e.st.focus).eq(0):e.wrap).focus()},_onFocusIn:function(a){if(a.target!==e.wrap[0]&&!t.contains(e.wrap[0],a.target))return e._setFocus(),!1},_parseMarkup:function(e,a,o){var i;o.data&&(a=t.extend(o.data,a)),p("MarkupParse",[e,a,o]),t.each(a,function(a,o){if(void 0===o||!1===o)return!0;if((i=a.split("_")).length>1){var n=e.find(".mfp-"+i[0]);if(n.length>0){var r=i[1];"replaceWith"===r?n[0]!==o[0]&&n.replaceWith(o):"img"===r?n.is("img")?n.attr("src",o):n.replaceWith(t("<img>").attr("src",o).attr("class",n.attr("class"))):n.attr(i[1],o)}}else e.find(".mfp-"+a).html(o)})},_getScrollbarSize:function(){if(void 0===e.scrollbarSize){var t=document.createElement("div");t.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),e.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return e.scrollbarSize}},t.magnificPopup={instance:null,proto:s.prototype,modules:[],open:function(e,a){return f(),e=e?t.extend(!0,{},e):{},e.isObj=!0,e.index=a||0,this.instance.open(e)},close:function(){return t.magnificPopup.instance&&t.magnificPopup.instance.close()},registerModule:function(e,a){a.options&&(t.magnificPopup.defaults[e]=a.options),t.extend(this.proto,a.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},t.fn.magnificPopup=function(a){f();var o=t(this);if("string"==typeof a)if("open"===a){var i,n=c?o.data("magnificPopup"):o[0].magnificPopup,r=parseInt(arguments[1],10)||0;n.items?i=n.items[r]:(i=o,n.delegate&&(i=i.find(n.delegate)),i=i.eq(r)),e._openClick({mfpEl:i},o,n)}else e.isOpen&&e[a].apply(e,Array.prototype.slice.call(arguments,1));else a=t.extend(!0,{},a),c?o.data("magnificPopup",a):o[0].magnificPopup=a,e.addGroup(o,a);return o};var _,h,v,y=function(){v&&(h.after(v.addClass(_)).detach(),v=null)};t.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){e.types.push("inline"),l("Close.inline",function(){y()})},getInline:function(a,o){if(y(),a.src){var i=e.st.inline,n=t(a.src);if(n.length){var r=n[0].parentNode;r&&r.tagName&&(h||(_=i.hiddenClass,h=u(_),_="mfp-"+_),v=n.after(h).detach().removeClass(_)),e.updateStatus("ready")}else e.updateStatus("error",i.tNotFound),n=t("<div>");return a.inlineElement=n,n}return e.updateStatus("ready"),e._parseMarkup(o,{},a),o}}});var w,b=function(){w&&t(document.body).removeClass(w)},C=function(){b(),e.req&&e.req.abort()};t.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){e.types.push("ajax"),w=e.st.ajax.cursor,l("Close.ajax",C),l("BeforeChange.ajax",C)},getAjax:function(a){w&&t(document.body).addClass(w),e.updateStatus("loading");var o=t.extend({url:a.src,success:function(o,i,n){var r={data:o,xhr:n};p("ParseAjax",r),e.appendContent(t(r.data),"ajax"),a.finished=!0,b(),e._setFocus(),setTimeout(function(){e.wrap.addClass("mfp-ready")},16),e.updateStatus("ready"),p("AjaxContentAdded")},error:function(){b(),a.finished=a.loadError=!0,e.updateStatus("error",e.st.ajax.tError.replace("%url%",a.src))}},e.st.ajax.settings);return e.req=t.ajax(o),""}}});var $,x=function(a){if(a.data&&void 0!==a.data.title)return a.data.title;var o=e.st.image.titleSrc;if(o){if(t.isFunction(o))return o.call(e,a);if(a.el)return a.el.attr(o)||""}return""};t.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var a=e.st.image,o=".image";e.types.push("image"),l("Open"+o,function(){"image"===e.currItem.type&&a.cursor&&t(document.body).addClass(a.cursor)}),l("Close"+o,function(){a.cursor&&t(document.body).removeClass(a.cursor),d.off("resize.mfp")}),l("Resize"+o,e.resizeImage),e.isLowIE&&l("AfterChange",e.resizeImage)},resizeImage:function(){var t=e.currItem;if(t&&t.img&&e.st.image.verticalFit){var a=0;e.isLowIE&&(a=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",e.wH-a)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,$&&clearInterval($),t.isCheckingImgSize=!1,p("ImageHasSize",t),t.imgHidden&&(e.content&&e.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(t){var a=0,o=t.img[0],i=function(n){$&&clearInterval($),$=setInterval(function(){if(o.naturalWidth>0)return void e._onImageHasSize(t);a>200&&clearInterval($),3===++a?i(10):40===a?i(50):100===a&&i(500)},n)};i(1)},getImage:function(a,o){var i=0,n=function(){a&&(a.img[0].complete?(a.img.off(".mfploader"),a===e.currItem&&(e._onImageHasSize(a),e.updateStatus("ready")),a.hasSize=!0,a.loaded=!0,p("ImageLoadComplete")):++i<200?setTimeout(n,100):r())},r=function(){a&&(a.img.off(".mfploader"),a===e.currItem&&(e._onImageHasSize(a),e.updateStatus("error",s.tError.replace("%url%",a.src))),a.hasSize=!0,a.loaded=!0,a.loadError=!0)},s=e.st.image,c=o.find(".mfp-img");if(c.length){var d=document.createElement("img");d.className="mfp-img",a.el&&a.el.find("img").length&&(d.alt=a.el.find("img").attr("alt")),a.img=t(d).on("load.mfploader",n).on("error.mfploader",r),d.src=a.src,c.is("img")&&(a.img=a.img.clone()),(d=a.img[0]).naturalWidth>0?a.hasSize=!0:d.width||(a.hasSize=!1)}return e._parseMarkup(o,{title:x(a),img_replaceWith:a.img},a),e.resizeImage(),a.hasSize?($&&clearInterval($),a.loadError?(o.addClass("mfp-loading"),e.updateStatus("error",s.tError.replace("%url%",a.src))):(o.removeClass("mfp-loading"),e.updateStatus("ready")),o):(e.updateStatus("loading"),a.loading=!0,a.hasSize||(a.imgHidden=!0,o.addClass("mfp-loading"),e.findImageSize(a)),o)}}});var k,j=function(){return void 0===k&&(k=void 0!==document.createElement("p").style.MozTransform),k};t.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t,a=e.st.zoom,o=".zoom";if(a.enabled&&e.supportsTransition){var i,n,r=a.duration,s=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),o="all "+a.duration/1e3+"s "+a.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},n="transition";return i["-webkit-"+n]=i["-moz-"+n]=i["-o-"+n]=i[n]=o,e.css(i),e},c=function(){e.content.css("visibility","visible")};l("BuildControls"+o,function(){if(e._allowZoom()){if(clearTimeout(i),e.content.css("visibility","hidden"),!(t=e._getItemToZoom()))return void c();(n=s(t)).css(e._getOffset()),e.wrap.append(n),i=setTimeout(function(){n.css(e._getOffset(!0)),i=setTimeout(function(){c(),setTimeout(function(){n.remove(),t=n=null,p("ZoomAnimationEnded")},16)},r)},16)}}),l("BeforeClose"+o,function(){if(e._allowZoom()){if(clearTimeout(i),e.st.removalDelay=r,!t){if(!(t=e._getItemToZoom()))return;n=s(t)}n.css(e._getOffset(!0)),e.wrap.append(n),e.content.css("visibility","hidden"),setTimeout(function(){n.css(e._getOffset())},16)}}),l("Close"+o,function(){e._allowZoom()&&(c(),n&&n.remove(),t=null)})}},_allowZoom:function(){return"image"===e.currItem.type},_getItemToZoom:function(){return!!e.currItem.hasSize&&e.currItem.img},_getOffset:function(a){var o,i=(o=a?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem)).offset(),n=parseInt(o.css("padding-top"),10),r=parseInt(o.css("padding-bottom"),10);i.top-=t(window).scrollTop()-n;var s={width:o.width(),height:(c?o.innerHeight():o[0].offsetHeight)-r-n};return j()?s["-moz-transform"]=s.transform="translate("+i.left+"px,"+i.top+"px)":(s.left=i.left,s.top=i.top),s}}});var T=function(t){if(e.currTemplate.iframe){var a=e.currTemplate.iframe.find("iframe");a.length&&(t||(a[0].src="//about:blank"),e.isIE8&&a.css("display",t?"block":"none"))}};t.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){e.types.push("iframe"),l("BeforeChange",function(t,e,a){e!==a&&("iframe"===e?T():"iframe"===a&&T(!0))}),l("Close.iframe",function(){T()})},getIframe:function(a,o){var i=a.src,n=e.st.iframe;t.each(n.patterns,function(){if(i.indexOf(this.index)>-1)return this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1});var r={};return n.srcAction&&(r[n.srcAction]=i),e._parseMarkup(o,r,a),e.updateStatus("ready"),o}}});var S=function(t){var a=e.items.length;return t>a-1?t-a:t<0?a+t:t},I=function(t,e,a){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,a)};t.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var a=e.st.gallery,i=".mfp-gallery";if(e.direction=!0,!a||!a.enabled)return!1;n+=" mfp-gallery",l("Open"+i,function(){a.navigateByImgClick&&e.wrap.on("click"+i,".mfp-img",function(){if(e.items.length>1)return e.next(),!1}),o.on("keydown"+i,function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()})}),l("UpdateStatus"+i,function(t,a){a.text&&(a.text=I(a.text,e.currItem.index,e.items.length))}),l("MarkupParse"+i,function(t,o,i,n){var r=e.items.length;i.counter=r>1?I(a.tCounter,n.index,r):""}),l("BuildControls"+i,function(){if(e.items.length>1&&a.arrows&&!e.arrowLeft){var o=a.arrowMarkup,i=e.arrowLeft=t(o.replace(/%title%/gi,a.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),n=e.arrowRight=t(o.replace(/%title%/gi,a.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close");i.click(function(){e.prev()}),n.click(function(){e.next()}),e.container.append(i.add(n))}}),l("Change"+i,function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout(function(){e.preloadNearbyImages(),e._preloadTimeout=null},16)}),l("Close"+i,function(){o.off(i),e.wrap.off("click"+i),e.arrowRight=e.arrowLeft=null})},next:function(){e.direction=!0,e.index=S(e.index+1),e.updateItemHTML()},prev:function(){e.direction=!1,e.index=S(e.index-1),e.updateItemHTML()},goTo:function(t){e.direction=t>=e.index,e.index=t,e.updateItemHTML()},preloadNearbyImages:function(){var t,a=e.st.gallery.preload,o=Math.min(a[0],e.items.length),i=Math.min(a[1],e.items.length);for(t=1;t<=(e.direction?i:o);t++)e._preloadItem(e.index+t);for(t=1;t<=(e.direction?o:i);t++)e._preloadItem(e.index-t)},_preloadItem:function(a){if(a=S(a),!e.items[a].preloaded){var o=e.items[a];o.parsed||(o=e.parseEl(a)),p("LazyLoad",o),"image"===o.type&&(o.img=t('<img class="mfp-img" />').on("load.mfploader",function(){o.hasSize=!0}).on("error.mfploader",function(){o.hasSize=!0,o.loadError=!0,p("LazyLoadError",o)}).attr("src",o.src)),o.preloaded=!0}}}});t.magnificPopup.registerModule("retina",{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,function(t){return"@2x"+t})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var t=e.st.retina,a=t.ratio;(a=isNaN(a)?a():a)>1&&(l("ImageHasSize.retina",function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/a,width:"100%"})}),l("ElementParse.retina",function(e,o){o.src=t.replaceSrc(o,a)}))}}}}),f()});class QuickView{constructor(){this._init_tbay_quick_view()}_init_tbay_quick_view(){var t=this;$(document).off("click","a.qview-button").on("click","a.qview-button",function(e){e.preventDefault();let a=$(this);a.parent().addClass("loading");let o=a.attr("data-effect"),i=!1,n=$(this).data("product_id"),r=urna_settings.ajaxurl+"?action=urna_quickview_product&product_id="+n;void 0!==urna_settings.loader&&(i=!0,a.block({message:null,overlayCSS:{background:"#fff url("+urna_settings.loader+") no-repeat center",opacity:.5,cursor:"none"}})),t._ajax_call(a,r,i,o)})}_ajax_call(t,e,a,o){$.get(e,function(e,i){$.magnificPopup.open({removalDelay:100,callbacks:{beforeOpen:function(){this.st.mainClass=o+" urna-quickview"}},items:{src:e,type:"inline"}});let n=$("#tbay-quick-view-content").find(".variations_form");"undefined"!=typeof wc_add_to_cart_variation_params&&n.each(function(){$(this).wc_variation_form()}),$(document.body).trigger("updated_wc_div"),t.parent().removeClass("loading"),a&&t.unblock(),$(document.body).trigger("urna_quick_view")})}}let setCookie_woo=(t,e,a)=>{var o=new Date;o.setTime(o.getTime()+24*a*60*60*1e3);var i="expires="+o.toUTCString();document.cookie=t+"="+e+"; "+i+";path=/"};class DisplayMode{constructor(){this._initModeListShopPage(),this._initModeGridShopPage(),$(document.body).on("displayMode",()=>{this._initModeListShopPage();this._initModeGridShopPage()})}_initModeListShopPage(){$("#display-mode-list").each(function(t){$(this).click(function(){var t=$(this),e={action:"urna_list_post_ajax",query:urna_settings.posts};return $.ajax({url:urna_settings.ajaxurl,data:e,type:"POST",beforeSend:function(e){t.closest("#main").find(".display-products").addClass("load-ajax")},success:function(e){e&&(t.parent().children().removeClass("active"),t.addClass("active"),t.closest("#main").find(".display-products > div").html(e),t.closest("#main").find(".display-products").fadeOut(0,function(){$(this).addClass("products-list").removeClass("products-grid grid2").fadeIn(300)}),$(document.body).trigger("urna_lazyload_image"),$(document.body).trigger("urna_display_mode"),"undefined"!=typeof wc_add_to_cart_variation_params&&$(".variations_form").each(function(){$(this).wc_variation_form().find(".variations select:eq(0)").trigger("change")}),t.closest("#main").find(".display-products").removeClass("load-ajax"),setCookie_woo("urna_display_mode","list",.1))}}),!1})})}_initModeGridShopPage(){$("#display-mode-grid, #display-mode-grid2").each(function(t){$(this).click(function(){var t=$(this),e={action:"urna_grid_post_ajax",query:urna_settings.posts};let a=t.closest("#main").find("div.display-products");if((!t.is("#display-mode-grid2")||!a.hasClass("grid2"))&&(!t.is("#display-mode-grid")||!a.hasClass("products-grid")||a.hasClass("grid2")))return a.hasClass("products-grid")?($(document.body).trigger("urna_gallery_resize"),$(document.body).trigger("urna_lazyload_image"),$(document.body).trigger("urna_display_mode"),t.parent().children().removeClass("active"),t.addClass("active"),void(t.hasClass("grid2")&&!a.hasClass("grid2")?(a.hasClass("products-grid")||(a.addClass("load-ajax"),setTimeout(function(){a.removeClass("load-ajax").addClass("products-grid")},400)),a.addClass("load-ajax"),setTimeout(function(){a.removeClass("load-ajax").addClass("grid2").removeClass("products-list")},400),setCookie_woo("urna_display_mode","grid2",.1)):(a.hasClass("products-grid")?a.hasClass("grid2")&&(a.addClass("load-ajax"),setTimeout(function(){a.removeClass("load-ajax").removeClass("grid2")},400)):(a.addClass("load-ajax"),setTimeout(function(){a.removeClass("load-ajax").addClass("products-grid").removeClass("products-list")},400)),setCookie_woo("urna_display_mode","grid",.1)))):($.ajax({url:urna_settings.ajaxurl,data:e,type:"POST",beforeSend:function(e){t.closest("#main").find(".display-products").addClass("load-ajax")},success:function(e){if(e){t.parent().children().removeClass("active"),t.addClass("active"),t.closest("#main").find(".display-products > div").html(e);let a=t.closest("#main").find("div.display-products");t.hasClass("grid2")&&!a.hasClass("grid2")?(a.hasClass("products-grid")||a.fadeOut(0,function(){$(this).addClass("products-grid")}),a.fadeOut(0,function(){$(this).addClass("grid2").removeClass("products-list").fadeIn(300)}),setCookie_woo("urna_display_mode","grid2",.1)):(a.hasClass("products-grid")?a.hasClass("grid2")&&a.fadeOut(0,function(){$(this).removeClass("grid2").fadeIn(300)}):a.fadeOut(0,function(){$(this).addClass("products-grid").removeClass("products-list").fadeIn(300)}),setCookie_woo("urna_display_mode","grid",.1)),$(document.body).trigger("urna_lazyload_image"),$(document.body).trigger("urna_display_mode"),"undefined"!=typeof wc_add_to_cart_variation_params&&$(".variations_form").each(function(){$(this).wc_variation_form().find(".variations select:eq(0)").trigger("change")}),t.closest("#main").find(".display-products").removeClass("load-ajax"),t.hasClass("grid2")?setCookie_woo("urna_display_mode","grid2",.1):setCookie_woo("urna_display_mode","grid",.1)}}}),!1)})})}}class AjaxFilter{constructor(){this._intAjaxFilter()}_intAjaxFilter(){function t(t){$(".woocommerce-product-gallery").each(function(){jQuery(this).wc_product_gallery()}),$(document.body).trigger("urnaFixRemove"),$(document.body).trigger("layoutShopAjaxFilter"),$(document.body).trigger("displayMode"),$(document.body).trigger("urna_lazyload_image"),$(".variations_form").tawcvs_variation_swatches_form(),$(document.body).trigger("tawcvs_initialized"),$(".variations_form").each(function(){$(this).wc_variation_form()})}jQuery(document).on("woof_ajax_done",t)}}class SingleProduct{constructor(){this._intStickyMenuBar(),this._intNavImage(),this._intReviewPopup(),this._intShareMobile(),this._intTabsMobile(),this._initBuyNow(),this._initAccordion()}_intStickyMenuBar(){$("body").on("click","#sticky-custom-add-to-cart",function(){return $("#shop-now .single_add_to_cart_button").click(),!0})}_intNavImage(){$(window).scroll(function(){if(0!==$(".product-nav").length){window.$=window.jQuery;let t=$(this).scrollTop()>400;$(".product-nav").toggleClass("active",t)}})}_initAccordion(){0!==$(".single-product").length&&$("#woocommerce-tabs").on("shown.bs.collapse",function(t){var e=$(this).find(".collapse.in").prev(".tabs-title");e&&$("html,body").animate({scrollTop:$(e).offset().top-150},500)})}_intReviewPopup(){$(".lightbox-gallery").magnificPopup({type:"image",tLoading:"Loading image #%curr%...",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{titleSrc:"title",verticalFit:!0}})}_intShareMobile(){let t=$(".woo-share-mobile"),e=$(".image-mains .show-mobile .woo-share-mobile .share-content .share-header .share-close i");t.find("button").click(function(){$(event.target).parents(".woo-share-mobile").toggleClass("open"),$("body").toggleClass("overflow-y")});let a=$(window),o=$(".woo-share-mobile button, .woo-share-mobile button i, .woo-share-mobile .content, .woo-share-mobile .share-title, .woo-share-mobile .share-close");a.on("click.Bst",function(e){t.hasClass("open")&&(0!=o.has(e.target).length||o.is(e.target)||(t.removeClass("open"),$("body").removeClass("overflow-y")))}),e.click(function(){t.removeClass("open"),$("body").removeClass("overflow-y")})}_intTabsMobile(){let t=$(".woocommerce-tabs-mobile"),e=t.find(".tabs-mobile a"),a=t.find(".wc-tab-mobile .close-tab"),o=$("body"),i=$(".tabs-sidebar");void 0!==t&&(e.click(function(e){e.preventDefault();let a=$(this).data("tabid");o.addClass("overflow-y"),i.addClass("open"),t.find(".wc-tab-mobile").removeClass("open"),$("#"+a).addClass("open")}),a.click(function(t){t.preventDefault(),i.removeClass("open"),o.removeClass("overflow-y"),$(this).closest(".wc-tab-mobile").removeClass("open")}))}_initBuyNow(){$("body").on("click",".tbay-buy-now",function(t){t.preventDefault();let e=$(this).closest("form.cart"),a=e.find('[type="submit"]'),o=e.find('input[name="urna_buy_now"]');a.is(".disabled")?a.trigger("click"):(o.val("1"),e.find(".single_add_to_cart_button").click())}),$(document.body).on("check_variations",function(){$("form.variations_form").find('[type="submit"]').each(function(t){$(this).is(".disabled")?$(this).next(".tbay-buy-now").addClass("disabled"):$(this).next(".tbay-buy-now").removeClass("disabled")})})}}$(document).ready(()=>{var t=new ProductItem;t._initSwatches();t._initQuantityMode();jQuery(document.body).trigger("tawcvs_initialized");new AjaxCart,new SideBar,new WishList,new Cart,new Checkout,new WooCommon,new LoadMore,new ModalVideo("#productvideo"),new QuickView,new DisplayMode,new AjaxFilter,new SingleProduct});var ulp_timeout,ulp_viewport,ulp_onidle_timer,ulp_active_window_id=!1,ulp_active_campaign="",ulp_subscribing=!1,ulp_onload_displayed=!1,ulp_onexit_displayed=!1,ulp_onscroll_displayed=!1,ulp_onidle_displayed=!1,ulp_onabd_displayed=!1,ulp_no_preload_loading=!1,ulp_onidle_counter=0,ulp_position_margin=16,ulp_forced_location="",ulp_recaptcha_queue=new Array,ulp_css3_animations_in=["bounceIn","bounceInUp","bounceInDown","bounceInLeft","bounceInRight","fadeIn","fadeInUp","fadeInDown","fadeInLeft","fadeInRight","flipInX","flipInY","lightSpeedIn","rotateIn","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight","rollIn","zoomIn","zoomInUp","zoomInDown","zoomInLeft","zoomInRight"],ulp_css3_animations_out=["bounceOut","bounceOutUp","bounceOutDown","bounceOutLeft","bounceOutRight","fadeOut","fadeOutUp","fadeOutDown","fadeOutLeft","fadeOutRight","flipOutX","flipOutY","lightSpeedOut","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","rollOut","zoomOut","zoomOutUp","zoomOutDown","zoomOutLeft","zoomOutRight"],ulp_mobile=function(e){return!(!/(android|bb\d+|meego).+mobile|android|ipad|playbook|silk|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))}(navigator.userAgent||navigator.vendor||window.opera);function ulp_popup_id(e){if(""==e)return"";var p=e.split("*");return 1==p.length?e:ulp_mobile?p[1]:p[0]}function ulp_prepare_ids(){ulp_onload_popup=ulp_popup_id(ulp_onload_popup),ulp_onexit_popup=ulp_popup_id(ulp_onexit_popup),ulp_onscroll_popup=ulp_popup_id(ulp_onscroll_popup),ulp_onidle_popup=ulp_popup_id(ulp_onidle_popup),ulp_onabd_popup=ulp_popup_id(ulp_onabd_popup)}function ulp_inline_open(e){jQuery(".ulp-inline-window").each(function(){var p=jQuery(this).attr("data-device");if("mobile"==p&&!ulp_mobile||"desktop"==p&&ulp_mobile)jQuery(this).hide();else if("function"==typeof ulp_inline_open_replaced)ulp_inline_open_replaced(this,e);else{var l=jQuery(this).attr("id");jQuery(this).attr("data-id");e||ulp_track(l,"layered-inline","show",""),_ulp_inline_open(l,!0,e)}})}function _ulp_inline_hide_confirmation(e){if(jQuery("#"+e).length){var p=jQuery("#"+e).find(".ulp-content");jQuery(p).find(".ulp-layer").each(function(){"on"==jQuery(this).attr("data-confirmation")&&jQuery(this).fadeOut(300)})}}function _ulp_inline_open(e,p,l){return jQuery("#"+e).each(function(){viewport_width=Math.max(120,jQuery(this).parent().innerWidth());var i=parseInt(jQuery(this).attr("data-width"),10),u=parseInt(jQuery(this).attr("data-height"),10),o=viewport_width/i;o>1&&(o=1);var n=jQuery(this).find(".ulp-content");jQuery(this).css({width:parseInt(i*o,10),height:parseInt(u*o,10)}),jQuery(n).css({transform:"translate(-"+parseInt(i*(1-o)/2,10)+"px, -"+parseInt(u*(1-o)/2,10)+"px) scale("+o+")","-ms-transform":"translate(-"+parseInt(i*(1-o)/2,10)+"px, -"+parseInt(u*(1-o)/2,10)+"px) scale("+o+")","-webkit-transform":"translate(-"+parseInt(i*(1-o)/2,10)+"px, -"+parseInt(u*(1-o)/2,10)+"px) scale("+o+")"}),jQuery(n).find(".ulp-layer").each(function(){var e=jQuery(this).attr("data-confirmation");if("on"==e&&p)l?jQuery(this).fadeOut(300):jQuery(this).hide();else if("off"!=e||p){if(jQuery(this).show(),"on"==ulp_recaptcha_enable&&jQuery(this).find(".ulp-recaptcha").each(function(){var e=jQuery(this).attr("data-widget");if(void 0===e){var p=jQuery(this).attr("data-theme"),l=jQuery(this).attr("id");l&&("undefined"!=typeof grecaptcha?(e=grecaptcha.render(l,{sitekey:ulp_recaptcha_public_key,theme:p}),jQuery(this).attr("data-widget",e)):ulp_recaptcha_queue.push(l))}}),!l)jQuery(this).attr("data-base64")&&jQuery(this).html(ulp_decode64(jQuery(this).html()));var i=jQuery(this).attr("data-left"),u=jQuery(this).attr("data-top");jQuery(this).css({left:parseInt(i,10)+"px",top:parseInt(u,10)+"px"}),p||(jQuery(this).css({display:"none"}),jQuery(this).fadeIn(500))}}),jQuery.fn.mask&&jQuery(this).find(".ulp-input-mask").each(function(){var e=jQuery(this).attr("data-mask");e&&jQuery(this).mask(e),jQuery(this).removeClass("ulp-input-mask")}),p&&jQuery.fn.datetimepicker&&ulp_datetimepicker_init(e),jQuery(this).fadeIn(300)}),!1}function _ulp_inline_subscribe(e,p){var l=jQuery("#"+e).attr("data-id"),i={"ulp-popup":l,"ulp-campaign":"",action:p},u={};if(jQuery("#"+e).find(".ulp-input-field").each(function(){var e=jQuery(this).attr("name");if(e){var p=e.replace("ulp-","");jQuery(this).is(":checked")?u[p]="on":u[p]=jQuery(this).val()}}),ulp_custom_handlers.hasOwnProperty(e)&&(ulp_custom_handlers[e].form=u,ulp_custom_handlers[e].errors={},ulp_custom_handlers[e].hasOwnProperty("before_submit")&&"function"==typeof ulp_custom_handlers[e].before_submit))try{if(!1===ulp_custom_handlers[e].before_submit())return!1}catch(e){}if(ulp_subscribing)return!1;ulp_subscribing=!0,jQuery("#"+e).find(".ulp-input-field").each(function(){var e=jQuery(this).attr("name");if(e){var p=e.replace("ulp-","");jQuery(this).is(":checked")?(i[e]="on",u[p]="on"):(i[e]=jQuery(this).val(),u[p]=jQuery(this).val())}}),"on"==ulp_recaptcha_enable&&"undefined"!=typeof grecaptcha&&jQuery("#"+e).find(".ulp-recaptcha").each(function(){var e=jQuery(this).attr("data-widget");if(void 0!==e){var p=jQuery(this).attr("id");i[p]=grecaptcha.getResponse(e)}});var o="",n=jQuery("#"+e).find(".ulp-submit").attr("data-fa");n&&""!=n&&"fa fa-noicon"!=n?(n="<i class='"+n+"'></i>",o="<i class='fas fa-spinner fa-spin'></i>"):n="";var a=jQuery("#"+e).find(".ulp-submit").attr("data-label"),t=jQuery("#"+e).find(".ulp-submit").attr("data-loading");return n&&a&&(n+="&nbsp; "),o&&t&&(o+="&nbsp; "),jQuery("#"+e).find(".ulp-submit").html(o+t),jQuery.ajax({url:ulp_ajax_url,data:i,type:"POST",async:!0,success:function(p){var i;ulp_subscribing=!1,jQuery("#"+e).find(".ulp-submit").html(n+a),ulp_reset_recaptcha(e);try{var u=(i="object"==typeof p?p:jQuery.parseJSON(p)).status;if("OK"==u){var o=180;if(void 0!==i.cookie_lifetime&&(o=parseInt(i.cookie_lifetime,10)),o>0&&((l==ulp_onload_popup||"on"==ulp_onexit_limits&&""!=ulp_onload_popup)&&(ulp_write_cookie("ulp-onload-"+ulp_onload_popup,ulp_cookie_value,o),ulp_onload_displayed=!0),(l==ulp_onexit_popup||"on"==ulp_onexit_limits&&""!=ulp_onexit_popup)&&(ulp_write_cookie("ulp-onexit-"+ulp_onexit_popup,ulp_cookie_value,o),ulp_onexit_displayed=!0),(l==ulp_onscroll_popup||"on"==ulp_onexit_limits&&""!=ulp_onscroll_popup)&&(ulp_write_cookie("ulp-onscroll-"+ulp_onscroll_popup,ulp_cookie_value,o),ulp_onscroll_displayed=!0),(l==ulp_onidle_popup||"on"==ulp_onexit_limits&&""!=ulp_onidle_popup)&&(ulp_write_cookie("ulp-onidle-"+ulp_onidle_popup,ulp_cookie_value,o),ulp_onidle_displayed=!0),(l==ulp_onabd_popup||"on"==ulp_onexit_limits&&""!=ulp_onabd_popup)&&(ulp_write_cookie("ulp-onabd-"+ulp_onabd_popup,ulp_cookie_value,o),ulp_onabd_displayed=!0),ulp_write_cookie("ulp-inline-"+l,ulp_cookie_value,o),ulp_write_cookie("ulp-"+l,ulp_cookie_value,o)),ulp_custom_handlers.hasOwnProperty(e)&&(ulp_custom_handlers[e].errors={},ulp_custom_handlers[e].hasOwnProperty("after_submit_success")&&"function"==typeof ulp_custom_handlers[e].after_submit_success))try{ulp_custom_handlers[e].after_submit_success()}catch(e){}if(void 0!==i.forms){var t=i.forms;for(var r in t)t.hasOwnProperty(r)&&(jQuery("body").append(t[r]),jQuery("#submit-"+r).click())}ulp_track(e,"layered-inline","subscribe",jQuery("#"+e).find('[name="ulp-email"]').val()),_ulp_inline_open(e,!1,!0),"function"==typeof ulp_inline_subscribed&&ulp_inline_subscribed(e,i),ulp_unlock_links(l);var _=i.return_url,s=0;i.close_delay&&(s=parseInt(i.close_delay,10));var d=i.thanksgiving_popup;setTimeout(function(){jQuery("#"+e).find("input[type=text], input[type=password], input[type=email], textarea").val(""),_ulp_inline_hide_confirmation(e),_.length>0&&("#refresh"==_?location.reload(!0):location.href=_),d.length>0&&ulp_open(d)},s)}else if("ERROR"==u){if(ulp_custom_handlers.hasOwnProperty(e)&&ulp_custom_handlers[e].hasOwnProperty("after_submit_fail")&&"function"==typeof ulp_custom_handlers[e].after_submit_fail){for(var c in ulp_custom_handlers[e].errors={name:"validation",message:"Invalid field value",fields:new Array},i)i.hasOwnProperty(c)&&"status"!=c&&ulp_custom_handlers[e].errors.fields.push(c.replace("ulp-",""));try{ulp_custom_handlers[e].after_submit_fail()}catch(e){}}jQuery("#"+e).find(".ulp-input-field, .ulp-recaptcha, .ulp-checkbox").each(function(){var e=jQuery(this).attr("name");e&&"ERROR"==i[e]&&jQuery(this).addClass("ulp-input-error")})}else{if(ulp_custom_handlers.hasOwnProperty(e)&&ulp_custom_handlers[e].hasOwnProperty("after_submit_fail")&&"function"==typeof ulp_custom_handlers[e].after_submit_fail){ulp_custom_handlers[e].errors={name:"fatal",message:"Fatal error"};try{ulp_custom_handlers[e].after_submit_fail()}catch(e){}}jQuery("#"+e).find(".ulp-submit").html(n+"Error!")}}catch(p){if(ulp_custom_handlers.hasOwnProperty(e)&&ulp_custom_handlers[e].hasOwnProperty("after_submit_fail")&&"function"==typeof ulp_custom_handlers[e].after_submit_fail){ulp_custom_handlers[e].errors={name:"unknown",message:"Unknown error"};try{ulp_custom_handlers[e].after_submit_fail()}catch(e){}}jQuery("#"+e).find(".ulp-submit").html(n+"Error!")}}}),!1}function ulp_open(e){if(ulp_active_window_id!=e){ulp_active_window_id&&ulp_self_close();var p=e;if(ulp_active_campaign="","ab-"==e.substr(0,3)){if(!ulp_campaigns[e])return;p=ulp_campaigns[e][Math.floor(Math.random()*ulp_campaigns[e].length)],ulp_active_campaign=e}if(jQuery("#ulp-"+p).length)return"on"==ulp_count_impressions&&jQuery.ajax({url:ulp_ajax_url,data:{"ulp-campaign":ulp_active_campaign,"ulp-popup":p,action:"ulp_addimpression"},type:"POST",async:!0}),ulp_track(p,"layered-popup","show",""),_ulp_open(p,!0,!1);if("on"==ulp_no_preload){if(!ulp_overlays[p]||ulp_no_preload_loading||ulp_active_window_id)return!1;if(ulp_no_preload_loading=!0,""!=ulp_overlays[p][0]){var l="<div class='ulp-overlay' id='ulp-"+p+"-overlay' style='background: "+ulp_hex2rgba(ulp_overlays[p][0],ulp_overlays[p][1])+";'></div>";jQuery("body").append(l),"on"!=ulp_css3_enable?jQuery("#ulp-"+p+"-overlay").fadeIn(300):ulp_css3_animations_in.indexOf(ulp_overlays[p][4])>=0?(jQuery("#ulp-"+p+"-overlay").show(),jQuery("#ulp-"+p+"-overlay").attr("class","ulp-overlay ulp-animated ulp-"+ulp_overlays[p][4])):jQuery("#ulp-"+p+"-overlay").fadeIn(300)}var i='<div class="ulp-spinner ulp-spinner-classic"></div>';switch(ulp_overlays[p][5]){case"chasing-dots":i="<style>#ulp-spinner-"+p+" .ulp-spinner-child {background-color: "+ulp_overlays[p][6]+' !important;}</style><div class="ulp-spinner ulp-spinner-chasing-dots"><div class="ulp-spinner-child ulp-spinner-dot1"></div><div class="ulp-spinner-child ulp-spinner-dot2"></div></div>';break;case"circle":i="<style>#ulp-spinner-"+p+" .ulp-spinner-child:before {background-color: "+ulp_overlays[p][6]+' !important;}</style><div class="ulp-spinner ulp-spinner-circle"><div class="ulp-spinner-circle1 ulp-spinner-child"></div><div class="ulp-spinner-circle2 ulp-spinner-child"></div><div class="ulp-spinner-circle3 ulp-spinner-child"></div><div class="ulp-spinner-circle4 ulp-spinner-child"></div><div class="ulp-spinner-circle5 ulp-spinner-child"></div><div class="ulp-spinner-circle6 ulp-spinner-child"></div><div class="ulp-spinner-circle7 ulp-spinner-child"></div><div class="ulp-spinner-circle8 ulp-spinner-child"></div><div class="ulp-spinner-circle9 ulp-spinner-child"></div><div class="ulp-spinner-circle10 ulp-spinner-child"></div><div class="ulp-spinner-circle11 ulp-spinner-child"></div><div class="ulp-spinner-circle12 ulp-spinner-child"></div></div>';break;case"double-bounce":i="<style>#ulp-spinner-"+p+" .ulp-spinner-child {background-color: "+ulp_overlays[p][6]+' !important;}</style><div class="ulp-spinner ulp-spinner-double-bounce"><div class="ulp-spinner-child ulp-spinner-double-bounce1"></div><div class="ulp-spinner-child ulp-spinner-double-bounce2"></div></div>';break;case"fading-circle":i="<style>#ulp-spinner-"+p+" .ulp-spinner-child:before {background-color: "+ulp_overlays[p][6]+' !important;}</style><div class="ulp-spinner ulp-spinner-fading-circle"><div class="ulp-spinner-circle1 ulp-spinner-child"></div><div class="ulp-spinner-circle2 ulp-spinner-child"></div><div class="ulp-spinner-circle3 ulp-spinner-child"></div><div class="ulp-spinner-circle4 ulp-spinner-child"></div><div class="ulp-spinner-circle5 ulp-spinner-child"></div><div class="ulp-spinner-circle6 ulp-spinner-child"></div><div class="ulp-spinner-circle7 ulp-spinner-child"></div><div class="ulp-spinner-circle8 ulp-spinner-child"></div><div class="ulp-spinner-circle9 ulp-spinner-child"></div><div class="ulp-spinner-circle10 ulp-spinner-child"></div><div class="ulp-spinner-circle11 ulp-spinner-child"></div><div class="ulp-spinner-circle12 ulp-spinner-child"></div></div>';break;case"folding-cube":i="<style>#ulp-spinner-"+p+" .ulp-spinner-child:before {background-color: "+ulp_overlays[p][6]+' !important;}</style><div class="ulp-spinner ulp-spinner-folding-cube"><div class="ulp-spinner-cube1 ulp-spinner-child"></div><div class="ulp-spinner-cube2 ulp-spinner-child"></div><div class="ulp-spinner-cube4 ulp-spinner-child"></div><div class="ulp-spinner-cube3 ulp-spinner-child"></div></div>';break;case"pulse":i="<style>#ulp-spinner-"+p+" .ulp-spinner-spinner-pulse {background-color: "+ulp_overlays[p][6]+' !important;}</style><div class="ulp-spinner ulp-spinner-spinner-pulse"></div>';break;case"rotating-plane":i="<style>#ulp-spinner-"+p+" .ulp-spinner-rotating-plane {background-color: "+ulp_overlays[p][6]+' !important;}</style><div class="ulp-spinner ulp-spinner-rotating-plane"></div>';break;case"three-bounce":i="<style>#ulp-spinner-"+p+" .ulp-spinner-child {background-color: "+ulp_overlays[p][6]+' !important;}</style><div class="ulp-spinner ulp-spinner-three-bounce"><div class="ulp-spinner-child ulp-spinner-bounce1"></div><div class="ulp-spinner-child ulp-spinner-bounce2"></div><div class="ulp-spinner-child ulp-spinner-bounce3"></div></div>';break;case"wandering-cubes":i="<style>#ulp-spinner-"+p+" .ulp-spinner-child {background-color: "+ulp_overlays[p][6]+' !important;}</style><div class="ulp-spinner ulp-spinner-wandering-cubes"><div class="ulp-spinner-child ulp-spinner-cube1"></div><div class="ulp-spinner-child ulp-spinner-cube2"></div></div>';break;case"wave":i="<style>#ulp-spinner-"+p+" .ulp-spinner-child {background-color: "+ulp_overlays[p][6]+' !important;}</style><div class="ulp-spinner ulp-spinner-wave"><div class="ulp-spinner-child ulp-spinner-rect1"></div><div class="ulp-spinner-child ulp-spinner-rect2"></div><div class="ulp-spinner-child ulp-spinner-rect3"></div><div class="ulp-spinner-child ulp-spinner-rect4"></div><div class="ulp-spinner-child ulp-spinner-rect5"></div></div>'}var u="<div id='ulp-spinner-"+p+"' class='ulp-loader ulp-loader-"+ulp_overlays[p][3]+"'><div class='ulp-loader-container'>"+i+"</div></div>";jQuery("body").append(u),"on"==ulp_overlays[p][2]&&jQuery("#ulp-"+p+"-overlay").bind("click",function(e){if(ulp_no_preload_loading=!1,jQuery(".ulp-loader").hide(),jQuery(".ulp-loader").remove(),jQuery("#ulp-"+p).length)jQuery("#ulp-"+p+"-overlay").unbind("click"),ulp_close(p);else if(jQuery("#ulp-"+p+"-overlay").unbind("click"),"on"!=ulp_css3_enable)jQuery("#ulp-"+p+"-overlay").fadeOut(300);else if(ulp_css3_animations_in.indexOf(ulp_overlays[p][4])>=0){var l=ulp_css3_animations_out[ulp_css3_animations_in.indexOf(ulp_overlays[p][4])];jQuery("#ulp-"+p+"-overlay").attr("class","ulp-overlay ulp-animated ulp-"+l),setTimeout(function(){jQuery("#ulp-"+p+"-overlay").hide()},1e3)}else jQuery("#ulp-"+p+"-overlay").hide()}),jQuery.ajax({url:ulp_ajax_url,type:"POST",async:!0,data:{"ulp-campaign":ulp_active_campaign,"ulp-popup":p,action:"ulp_loadpopup"},success:function(e){var l;jQuery(".ulp-loader").hide(),jQuery(".ulp-loader").remove();try{return"OK"==(l="object"==typeof e?e:jQuery.parseJSON(e)).status&&(!!ulp_no_preload_loading&&(jQuery("body").append(l.html),"undefined"!=typeof FB&&"undefined"!=FB.XFBML&&FB.XFBML.parse(),"undefined"!=typeof twttr&&void 0!==twttr.widgets&&twttr.widgets.load(),"undefined"!=typeof gapi&&void 0!==gapi.plusone&&gapi.plusone.go(),"undefined"!=typeof IN&&void 0!==IN.parse&&IN.parse(),"on"==ulp_count_impressions&&jQuery.ajax({url:ulp_ajax_url,data:{"ulp-campaign":ulp_active_campaign,"ulp-popup":p,action:"ulp_addimpression"},type:"POST",async:!0}),ulp_track(p,"layered-popup","show",""),_ulp_open(p,!0,!0),ulp_no_preload_loading=!1,!1))}catch(e){return!1}}})}return!1}}function _ulp_open(e,p,l){return jQuery("#ulp-"+e).each(function(){"function"==typeof ulpext_open_before&&ulpext_open_before(e),ulp_active_window_id=e,p&&!l&&("on"!=ulp_css3_enable?jQuery("#ulp-"+e+"-overlay").fadeIn(300):ulp_css3_animations_in.indexOf(ulp_overlays[e][4])>=0?(jQuery("#ulp-"+e+"-overlay").show(),jQuery("#ulp-"+e+"-overlay").attr("class","ulp-overlay ulp-animated ulp-"+ulp_overlays[e][4])):jQuery("#ulp-"+e+"-overlay").fadeIn(300),"on"==jQuery(this).attr("data-close")&&jQuery("#ulp-"+e+"-overlay").bind("click",function(p){ulp_close(e)}));var i=Math.max(240,jQuery(window).width()),u=Math.max(120,jQuery(window).height()),o=parseInt(jQuery(this).attr("data-width"),10),n=parseInt(jQuery(this).attr("data-height"),10),a=Math.min((i-20)/o,u/n);a>1&&(a=1);var t="-50%",r="";ulp_mobile&&(n*(a=Math.min((i-20)/o,1))>u?(jQuery(this).parent().addClass("ulp-window-fh-container"),t="-"+n*(1-a)/2+"px",r="-"):jQuery(this).parent().removeClass("ulp-window-fh-container"));var _="";switch(jQuery(this).attr("data-position")){case"top-left":_="translate(-"+o*(1-a)/2+"px,-"+n*(1-a)/2+"px) ";break;case"top-right":_="translate("+o*(1-a)/2+"px,-"+n*(1-a)/2+"px) ";break;case"bottom-left":_="translate(-"+o*(1-a)/2+"px,"+r+n*(1-a)/2+"px) ";break;case"bottom-right":_="translate("+o*(1-a)/2+"px,"+r+n*(1-a)/2+"px) ";break;case"top-center":_="translate(-50%,-"+n*(1-a)/2+"px) ";break;case"bottom-center":_="translate(-50%,"+r+n*(1-a)/2+"px) ";break;case"middle-left":_="translate(-"+o*(1-a)/2+"px,"+t+") ";break;case"middle-right":_="translate("+o*(1-a)/2+"px,"+t+") ";break;default:_="translate(-50%,"+t+") "}jQuery(this).css({transform:_+"scale("+a+")","-ms-transform":_+"scale("+a+")","-webkit-transform":_+"scale("+a+")"});var s=jQuery(this).find(".ulp-content");if(jQuery(s).find(".ulp-layer").each(function(){var e=this,l=jQuery(e).attr("data-confirmation");if("on"==l&&p)jQuery(e).hide();else if("off"!=l||p){jQuery(e).show(),"on"==ulp_recaptcha_enable&&jQuery(e).find(".ulp-recaptcha").each(function(){var e=jQuery(this).attr("data-widget");if(void 0===e){var p=jQuery(this).attr("data-theme"),l=jQuery(this).attr("id");l&&("undefined"!=typeof grecaptcha?(e=grecaptcha.render(l,{sitekey:ulp_recaptcha_public_key,theme:p}),jQuery(this).attr("data-widget",e)):ulp_recaptcha_queue.push(l))}}),jQuery(e).attr("data-base64")&&jQuery(e).html(ulp_decode64(jQuery(e).html()));var o=jQuery(e).attr("data-left"),n=jQuery(e).attr("data-top"),a=jQuery(e).attr("data-appearance"),t=parseInt(jQuery(e).attr("data-appearance-delay"),10),r=parseInt(jQuery(e).attr("data-appearance-speed"),10);switch("on"!=ulp_css3_enable&&ulp_css3_animations_in.indexOf(a)>=0&&(a="fade-in"),a){case"slide-down":jQuery(e).css({left:parseInt(o,10)+"px",top:"-"+parseInt(2*u)+"px"}),setTimeout(function(){jQuery(e).animate({top:parseInt(n,10)+"px"},r)},t);break;case"slide-up":jQuery(e).css({left:parseInt(o,10)+"px",top:parseInt(2*u)+"px"}),setTimeout(function(){jQuery(e).animate({top:parseInt(n,10)+"px"},r)},t);break;case"slide-left":jQuery(e).css({left:parseInt(2*i)+"px",top:parseInt(n,10)+"px"}),setTimeout(function(){jQuery(e).animate({left:parseInt(o,10)+"px"},r)},t);break;case"slide-right":jQuery(e).css({left:"-"+parseInt(2*i)+"px",top:parseInt(n,10)+"px"}),setTimeout(function(){jQuery(e).animate({left:parseInt(o,10)+"px"},r)},t);break;case"fade-in":jQuery(e).css({left:parseInt(o,10)+"px",top:parseInt(n,10)+"px",display:"none"}),setTimeout(function(){jQuery(e).fadeIn(r)},t);break;default:ulp_css3_animations_in.indexOf(a)>=0?(jQuery(e).css({"animation-duration":parseInt(r,10)+"ms","-webkit-animation-duration":parseInt(r,10)+"ms","-ms-animation-duration":parseInt(r,10)+"ms","-moz-animation-duration":parseInt(r,10)+"ms","animation-delay":parseInt(t,10)+"ms","-webkit-animation-delay":parseInt(t,10)+"ms","-ms-animation-delay":parseInt(t,10)+"ms","-moz-animation-delay":parseInt(t,10)+"ms"}),jQuery(e).attr("class","ulp-layer ulp-animated ulp-"+a),jQuery(e).css({left:parseInt(o,10)+"px",top:parseInt(n,10)+"px"})):jQuery(e).css({left:parseInt(o,10)+"px",top:parseInt(n,10)+"px"})}}}),jQuery.fn.mask&&jQuery(this).find(".ulp-input-mask").each(function(){var e=jQuery(this).attr("data-mask");e&&jQuery(this).mask(e),jQuery(this).removeClass("ulp-input-mask")}),jQuery(this).show(),p&&ulp_custom_handlers.hasOwnProperty("ulp-"+e)&&(ulp_custom_handlers["ulp-"+e].form={},ulp_custom_handlers["ulp-"+e].errors={},ulp_custom_handlers["ulp-"+e].hasOwnProperty("after_open")&&"function"==typeof ulp_custom_handlers["ulp-"+e].after_open))try{ulp_custom_handlers["ulp-"+e].after_open()}catch(e){}p&&jQuery.fn.datetimepicker&&ulp_datetimepicker_init("ulp-"+e)}),!1}function ulp_close(e){return clearTimeout(ulp_timeout),jQuery("#ulp-"+e).each(function(){ulp_subscribing=!1,ulp_active_window_id=!1,ulp_active_campaign=!1,ulp_forced_location="";var p=jQuery(this).find(".ulp-content"),l=Math.max(240,jQuery(window).width()),i=Math.max(120,jQuery(window).height());jQuery("#ulp-"+e+"-overlay").unbind("click"),jQuery(p).find(".ulp-layer").each(function(){var e=this,p=jQuery(e).attr("data-appearance");switch("on"!=ulp_css3_enable&&ulp_css3_animations_in.indexOf(p)>=0&&(p="fade-in"),p){case"slide-down":jQuery(e).animate({top:"-"+parseInt(2*i)+"px"},500);break;case"slide-up":jQuery(e).animate({top:parseInt(2*i)+"px"},500);break;case"slide-left":jQuery(e).animate({left:parseInt(2*l)+"px"},500);break;case"slide-right":jQuery(e).animate({left:"-"+parseInt(2*l)+"px"},500);break;case"fade-in":jQuery(e).fadeOut(500);break;default:ulp_css3_animations_in.indexOf(p)>=0?(p=ulp_css3_animations_out[ulp_css3_animations_in.indexOf(p)],jQuery(e).css({"animation-duration":parseInt(500,10)+"ms","-webkit-animation-duration":parseInt(500,10)+"ms","-ms-animation-duration":parseInt(500,10)+"ms","-moz-animation-duration":parseInt(500,10)+"ms","animation-delay":"0s","-webkit-animation-delay":"0s","-ms-animation-delay":"0s","-moz-animation-delay":"0s"}),jQuery(e).attr("class","ulp-layer ulp-animated ulp-"+p)):jQuery(e).css({display:"none"})}setTimeout(function(){jQuery(e).attr("data-base64")&&jQuery(e).html(ulp_encode64(jQuery(e).html()))},500)}),setTimeout(function(){if(jQuery("#ulp-"+e).hide(),jQuery("#ulp-"+e).parent().removeClass("ulp-window-fh-container"),ulp_clear_form(e),"on"!=ulp_css3_enable)jQuery("#ulp-"+e+"-overlay").fadeOut(300);else if(ulp_css3_animations_in.indexOf(ulp_overlays[e][4])>=0){var p=ulp_css3_animations_out[ulp_css3_animations_in.indexOf(ulp_overlays[e][4])];jQuery("#ulp-"+e+"-overlay").attr("class","ulp-overlay ulp-animated ulp-"+p),setTimeout(function(){jQuery("#ulp-"+e+"-overlay").hide()},1e3)}else jQuery("#ulp-"+e+"-overlay").hide();if("function"==typeof ulpext_close_after&&ulpext_close_after(e),ulp_custom_handlers.hasOwnProperty("ulp-"+e)&&ulp_custom_handlers["ulp-"+e].hasOwnProperty("after_close")&&"function"==typeof ulp_custom_handlers["ulp-"+e].after_close)try{ulp_custom_handlers["ulp-"+e].after_close()}catch(e){}},500)}),!1}function ulp_self_close(){return ulp_close(ulp_active_window_id),!1}function ulp_reset_recaptcha(e){"on"==ulp_recaptcha_enable&&"undefined"!=typeof grecaptcha&&jQuery("#"+e).find(".ulp-recaptcha").each(function(){var e=jQuery(this).attr("data-widget");if(void 0!==e){jQuery(this).attr("id");grecaptcha.reset(e)}})}function ulp_subscribe(e,p){if(jQuery(".ulp-input-error").removeClass("ulp-input-error"),void 0===p&&(p="ulp_subscribe"),void 0!==e){var l=jQuery(e).parents(".ulp-inline-window").attr("id");if(l)return _ulp_inline_subscribe(l,p),!1}var i={"ulp-popup":ulp_active_window_id,"ulp-campaign":ulp_active_campaign,action:p},u={};if(jQuery("#ulp-"+ulp_active_window_id).find(".ulp-input-field").each(function(){var e=jQuery(this).attr("name");if(e){var p=e.replace("ulp-","");jQuery(this).is(":checked")?u[p]="on":u[p]=jQuery(this).val()}}),ulp_custom_handlers.hasOwnProperty("ulp-"+ulp_active_window_id)&&(ulp_custom_handlers["ulp-"+ulp_active_window_id].form=u,ulp_custom_handlers["ulp-"+ulp_active_window_id].errors={},ulp_custom_handlers["ulp-"+ulp_active_window_id].hasOwnProperty("before_submit")&&"function"==typeof ulp_custom_handlers["ulp-"+ulp_active_window_id].before_submit))try{if(!1===ulp_custom_handlers["ulp-"+ulp_active_window_id].before_submit())return!1}catch(e){}if(ulp_subscribing)return!1;ulp_subscribing=!0,jQuery("#ulp-"+ulp_active_window_id).find(".ulp-input-field").each(function(){var e=jQuery(this).attr("name");if(e){var p=e.replace("ulp-","");jQuery(this).is(":checked")?(i[e]="on",u[p]="on"):(i[e]=jQuery(this).val(),u[p]=jQuery(this).val())}}),"on"==ulp_recaptcha_enable&&"undefined"!=typeof grecaptcha&&jQuery("#ulp-"+ulp_active_window_id).find(".ulp-recaptcha").each(function(){var e=jQuery(this).attr("data-widget");if(void 0!==e){var p=jQuery(this).attr("id");i[p]=grecaptcha.getResponse(e)}});var o="",n=jQuery("#ulp-"+ulp_active_window_id).find(".ulp-submit").attr("data-fa");n&&""!=n&&"fa fa-noicon"!=n?(n="<i class='"+n+"'></i>",o="<i class='fas fa-spinner fa-spin'></i>"):n="";var a=jQuery("#ulp-"+ulp_active_window_id).find(".ulp-submit").attr("data-label"),t=jQuery("#ulp-"+ulp_active_window_id).find(".ulp-submit").attr("data-loading");return n&&a&&(n+="&nbsp; "),o&&t&&(o+="&nbsp; "),jQuery("#ulp-"+ulp_active_window_id).find(".ulp-submit").html(o+t),jQuery.ajax({url:ulp_ajax_url,data:i,type:"POST",async:!0,success:function(e){var p;jQuery("#ulp-"+ulp_active_window_id).find(".ulp-submit").html(n+a),ulp_reset_recaptcha("ulp-"+ulp_active_window_id);try{var l=(p="object"==typeof e?e:jQuery.parseJSON(e)).status;if("OK"==l){var i=180;if(void 0!==p.cookie_lifetime&&(i=parseInt(p.cookie_lifetime,10)),i>0&&((ulp_active_window_id==ulp_onload_popup||ulp_active_campaign==ulp_onload_popup&&""!=ulp_onload_popup||"on"==ulp_onexit_limits&&""!=ulp_onload_popup)&&(ulp_write_cookie("ulp-onload-"+ulp_onload_popup,ulp_cookie_value,i),ulp_onload_displayed=!0),(ulp_active_window_id==ulp_onexit_popup||ulp_active_campaign==ulp_onexit_popup&&""!=ulp_onexit_popup||"on"==ulp_onexit_limits&&""!=ulp_onexit_popup)&&(ulp_write_cookie("ulp-onexit-"+ulp_onexit_popup,ulp_cookie_value,i),ulp_onexit_displayed=!0),(ulp_active_window_id==ulp_onscroll_popup||ulp_active_campaign==ulp_onscroll_popup&&""!=ulp_onscroll_popup||"on"==ulp_onexit_limits&&""!=ulp_onscroll_popup)&&(ulp_write_cookie("ulp-onscroll-"+ulp_onscroll_popup,ulp_cookie_value,i),ulp_onscroll_displayed=!0),(ulp_active_window_id==ulp_onidle_popup||ulp_active_campaign==ulp_onidle_popup&&""!=ulp_onidle_popup||"on"==ulp_onexit_limits&&""!=ulp_onidle_popup)&&(ulp_write_cookie("ulp-onidle-"+ulp_onidle_popup,ulp_cookie_value,i),ulp_onidle_displayed=!0),(ulp_active_window_id==ulp_onabd_popup||ulp_active_campaign==ulp_onabd_popup&&""!=ulp_onabd_popup||"on"==ulp_onexit_limits&&""!=ulp_onabd_popup)&&(ulp_write_cookie("ulp-onabd-"+ulp_onabd_popup,ulp_cookie_value,i),ulp_onabd_displayed=!0),"function"==typeof ulp_subscribed&&ulp_subscribed(ulp_active_window_id,p),ulp_write_cookie("ulp-inline-"+ulp_active_window_id,ulp_cookie_value,i),ulp_write_cookie("ulp-"+ulp_active_window_id,ulp_cookie_value,i)),ulp_custom_handlers.hasOwnProperty("ulp-"+ulp_active_window_id)&&(ulp_custom_handlers["ulp-"+ulp_active_window_id].errors={},ulp_custom_handlers["ulp-"+ulp_active_window_id].hasOwnProperty("after_submit_success")&&"function"==typeof ulp_custom_handlers["ulp-"+ulp_active_window_id].after_submit_success))try{ulp_custom_handlers["ulp-"+ulp_active_window_id].after_submit_success()}catch(e){}if(void 0!==p.forms){var u=p.forms;for(var o in u)u.hasOwnProperty(o)&&(jQuery("body").append(u[o]),jQuery("#submit-"+o).click())}ulp_track(ulp_active_window_id,"layered-popup","subscribe",jQuery("#ulp-"+ulp_active_window_id).find('[name="ulp-email"]').val()),_ulp_open(ulp_active_window_id,!1,!1);var t=0;p.close_delay&&(t=p.close_delay),ulp_unlock_links(ulp_active_window_id);var r=p.return_url;ulp_forced_location.length>0&&(r=ulp_forced_location);var _=p.thanksgiving_popup;setTimeout(function(){r.length>0?(ulp_self_close(),ulp_subscribing=!1,"#refresh"==r?location.reload(!0):location.href=r):_.length>0?(ulp_subscribing=!1,ulp_open(_)):(ulp_self_close(),ulp_subscribing=!1)},t)}else if("ERROR"==l){if(ulp_subscribing=!1,ulp_custom_handlers.hasOwnProperty("ulp-"+ulp_active_window_id)&&ulp_custom_handlers["ulp-"+ulp_active_window_id].hasOwnProperty("after_submit_fail")&&"function"==typeof ulp_custom_handlers["ulp-"+ulp_active_window_id].after_submit_fail){for(var s in ulp_custom_handlers["ulp-"+ulp_active_window_id].errors={name:"validation",message:"Invalid field value",fields:new Array},p)p.hasOwnProperty(s)&&"status"!=s&&ulp_custom_handlers["ulp-"+ulp_active_window_id].errors.fields.push(s.replace("ulp-",""));try{ulp_custom_handlers["ulp-"+ulp_active_window_id].after_submit_fail()}catch(e){}}jQuery("#ulp-"+ulp_active_window_id).find(".ulp-input-field, .ulp-recaptcha, .ulp-checkbox").each(function(){var e=jQuery(this).attr("name");e&&"ERROR"==p[e]&&jQuery(this).addClass("ulp-input-error")})}else{if(ulp_subscribing=!1,ulp_custom_handlers.hasOwnProperty("ulp-"+ulp_active_window_id)&&ulp_custom_handlers["ulp-"+ulp_active_window_id].hasOwnProperty("after_submit_fail")&&"function"==typeof ulp_custom_handlers["ulp-"+ulp_active_window_id].after_submit_fail){ulp_custom_handlers["ulp-"+ulp_active_window_id].errors={name:"fatal",message:"Fatal error"};try{ulp_custom_handlers["ulp-"+ulp_active_window_id].after_submit_fail()}catch(e){}}jQuery("#ulp-"+ulp_active_window_id).find(".ulp-submit").html(n+"Error!")}}catch(e){if(ulp_subscribing=!1,ulp_custom_handlers.hasOwnProperty("ulp-"+ulp_active_window_id)&&ulp_custom_handlers["ulp-"+ulp_active_window_id].hasOwnProperty("after_submit_fail")&&"function"==typeof ulp_custom_handlers["ulp-"+ulp_active_window_id].after_submit_fail){ulp_custom_handlers["ulp-"+ulp_active_window_id].errors={name:"unknown",message:"Unknown error"};try{ulp_custom_handlers["ulp-"+ulp_active_window_id].after_submit_fail()}catch(e){}}jQuery("#ulp-"+ulp_active_window_id).find(".ulp-submit").html(n+"Error!")}}}),!1}function ulp_onload_open(e){ulp_active_window_id||ulp_no_preload_loading||ulp_onload_displayed||("once-session"==ulp_onload_mode?ulp_write_cookie("ulp-onload-"+ulp_onload_popup,ulp_cookie_value,0):"once-only"==ulp_onload_mode?ulp_write_cookie("ulp-onload-"+ulp_onload_popup,ulp_cookie_value,180):"once-period"==ulp_onload_mode&&ulp_write_cookie("ulp-onload-"+ulp_onload_popup,ulp_cookie_value,ulp_onload_period),ulp_open(e),ulp_onload_displayed=!0,0!=ulp_onload_close_delay&&(ulp_timeout=setTimeout(function(){ulp_self_close()},1e3*parseInt(ulp_onload_close_delay,10))))}function _ulp_init(){ulp_prepare_ids();var e=ulp_read_cookie("ulp-onabd-"+ulp_onabd_popup);""!=ulp_onabd_popup&&"none"!=ulp_onabd_mode&&e!=ulp_cookie_value&&(ulp_active_window_id||ulp_no_preload_loading||ulp_onabd_displayed||"undefined"==typeof ulp_noadb&&("once-session"==ulp_onabd_mode?ulp_write_cookie("ulp-onabd-"+ulp_onabd_popup,ulp_cookie_value,0):"once-only"==ulp_onabd_mode?ulp_write_cookie("ulp-onabd-"+ulp_onabd_popup,ulp_cookie_value,180):"once-period"==ulp_onabd_mode&&ulp_write_cookie("ulp-onabd-"+ulp_onabd_popup,ulp_cookie_value,ulp_onabd_period),ulp_open(ulp_onabd_popup),ulp_onabd_displayed=!0));var p=ulp_read_cookie("ulp-onload-"+ulp_onload_popup);""!=ulp_onload_popup&&"none"!=ulp_onload_mode&&p!=ulp_cookie_value&&(parseInt(ulp_onload_delay,10)<=0?ulp_onload_open(ulp_onload_popup):setTimeout(function(){ulp_onload_open(ulp_onload_popup)},1e3*parseInt(ulp_onload_delay,10)));var l=ulp_read_cookie("ulp-onexit-"+ulp_onexit_popup);""!=ulp_onexit_popup&&"none"!=ulp_onexit_mode&&l!=ulp_cookie_value&&jQuery(document).bind("mouseleave",function(e){var p=parseInt(e.pageY-jQuery(window).scrollTop(),10);!ulp_active_window_id&&!ulp_no_preload_loading&&!ulp_onexit_displayed&&p<20&&("once-session"==ulp_onexit_mode?ulp_write_cookie("ulp-onexit-"+ulp_onexit_popup,ulp_cookie_value,0):"once-only"==ulp_onexit_mode?ulp_write_cookie("ulp-onexit-"+ulp_onexit_popup,ulp_cookie_value,180):"once-period"==ulp_onexit_mode&&ulp_write_cookie("ulp-onexit-"+ulp_onexit_popup,ulp_cookie_value,ulp_onexit_period),ulp_open(ulp_onexit_popup),ulp_onexit_displayed=!0)});var i=ulp_read_cookie("ulp-onscroll-"+ulp_onscroll_popup);""!=ulp_onscroll_popup&&"none"!=ulp_onscroll_mode&&i!=ulp_cookie_value&&jQuery(window).scroll(function(e){if(!ulp_active_window_id&&!ulp_no_preload_loading&&!ulp_onscroll_displayed){var p=jQuery(window).scrollTop(),l=parseInt(ulp_onscroll_offset,10);ulp_onscroll_offset.indexOf("%")>0&&(l>100&&(l=100),l=parseInt((jQuery(document).height()-jQuery(window).height())*l/100,10)),p>l&&("once-session"==ulp_onscroll_mode?ulp_write_cookie("ulp-onscroll-"+ulp_onscroll_popup,ulp_cookie_value,0):"once-only"==ulp_onscroll_mode?ulp_write_cookie("ulp-onscroll-"+ulp_onscroll_popup,ulp_cookie_value,180):"once-period"==ulp_onscroll_mode&&ulp_write_cookie("ulp-onscroll-"+ulp_onscroll_popup,ulp_cookie_value,ulp_onscroll_period),ulp_open(ulp_onscroll_popup),ulp_onscroll_displayed=!0)}});var u=ulp_read_cookie("ulp-onidle-"+ulp_onidle_popup);""!=ulp_onidle_popup&&"none"!=ulp_onidle_mode&&u!=ulp_cookie_value&&(jQuery(window).mousemove(function(e){ulp_onidle_counter=0}),jQuery(window).click(function(e){ulp_onidle_counter=0}),jQuery(window).keypress(function(e){ulp_onidle_counter=0}),jQuery(window).scroll(function(e){ulp_onidle_counter=0}),ulp_onidle_timer=setTimeout("ulp_onidle_counter_handler();",1e3))}function ulp_init(){var e,p=window.location.hash;if(((e=p.indexOf("#ulp-"))<0&&(e=p.indexOf("#ulpx-")),e>=0)&&((e=p.indexOf("#ulp-"))>=0?p=p.substr(e+5):(e=p.indexOf("#ulpx-"),p=p.substr(e+6)),p.length>0)){var l=!1;if((e=p.indexOf(":"))>0){var i=p.substr(e+1);if(p=ulp_popup_id(p=p.substr(0,e)),i.length>0){var u=ulp_read_cookie("ulp-"+p);i=ulp_decode64(i),u==ulp_cookie_value?(location.href=i,l=!0):ulp_forced_location=i}}l||(ulp_open(p),ulp_onload_displayed=!0)}if(ulp_inline_open(!1),"on"==ulp_async_init){var o={action:"ulp-init","post-id":ulp_content_id,referrer:document.referrer};"undefined"!=typeof ulp_icl_language&&(o["ulp-wpml-language"]=ulp_icl_language),jQuery.ajax({url:ulp_ajax_url,data:o,type:"POST",async:!0,success:function(e){var p;try{"OK"==(p="object"==typeof e?e:jQuery.parseJSON(e)).status&&(ulp_onload_popup=p.event_data.onload_popup,ulp_onload_mode=p.event_data.onload_mode,ulp_onload_period=p.event_data.onload_period,ulp_onscroll_popup=p.event_data.onscroll_popup,ulp_onscroll_mode=p.event_data.onscroll_mode,ulp_onscroll_period=p.event_data.onscroll_period,ulp_onexit_popup=p.event_data.onexit_popup,ulp_onexit_mode=p.event_data.onexit_mode,ulp_onexit_period=p.event_data.onexit_period,ulp_onidle_popup=p.event_data.onidle_popup,ulp_onidle_mode=p.event_data.onidle_mode,ulp_onidle_period=p.event_data.onidle_period,ulp_onabd_popup=p.event_data.onabd_popup,ulp_onabd_mode=p.event_data.onabd_mode,ulp_onabd_period=p.event_data.onabd_period,ulp_onload_delay=p.event_data.onload_delay,ulp_onload_close_delay=p.event_data.onload_close_delay,ulp_onscroll_offset=p.event_data.onscroll_offset,ulp_onidle_delay=p.event_data.onidle_delay,p.footer&&jQuery("body").append(p.footer),_ulp_init())}catch(e){console.log(e)}}})}else _ulp_init()}function ulp_onidle_counter_handler(){ulp_onidle_counter>=ulp_onidle_delay?(ulp_active_window_id||ulp_no_preload_loading||ulp_onidle_displayed||("once-session"==ulp_onidle_mode?(ulp_write_cookie("ulp-onidle-"+ulp_onidle_popup,ulp_cookie_value,0),ulp_onidle_displayed=!0):"once-only"==ulp_onidle_mode?(ulp_write_cookie("ulp-onidle-"+ulp_onidle_popup,ulp_cookie_value,180),ulp_onidle_displayed=!0):"once-period"==ulp_onidle_mode&&(ulp_write_cookie("ulp-onidle-"+ulp_onidle_popup,ulp_cookie_value,ulp_onidle_period),ulp_onidle_displayed=!0),ulp_open(ulp_onidle_popup)),ulp_onidle_counter=0):ulp_onidle_counter+=1,ulp_onidle_timer=setTimeout("ulp_onidle_counter_handler();",1e3)}function ulp_read_cookie(e){for(var p,l=document.cookie.split("; "),i=0;p=l[i]&&l[i].split("=");i++)if(p[0]===e)return p[1]||"";return null}function ulp_write_cookie(e,p,l){if(l){var i=new Date;i.setTime(i.getTime()+24*l*60*60*1e3);var u="; expires="+i.toGMTString()}else u="";document.cookie=e+"="+p+u+"; path=/"}function ulp_ready(){ulp_viewport={width:Math.max(240,jQuery(window).width()),height:Math.max(120,jQuery(window).height())};var e=new Array,p=0;jQuery(".ulp-inline").each(function(){var l=jQuery(this).attr("data-id");l&&(l=ulp_popup_id(l),jQuery(this).attr("id","ulp-inline-container-"+p),e.push(p+":"+l),p++)}),e.length>0&&jQuery.ajax({url:ulp_ajax_url,data:{action:"ulp-load-inline-popups",inline_ids:e.join(",")},type:"POST",async:!0,success:function(e){var p;try{if("OK"==(p="object"==typeof e?e:jQuery.parseJSON(e)).status){var l=p.popups;for(var i in l)if(l.hasOwnProperty(i)){inline_html=l[i],jQuery("#ulp-inline-container-"+i).html(inline_html);jQuery("#ulp-inline-container-"+i).attr("data-id")}ulp_inline_open(!1)}}catch(e){}}}),jQuery("a").each(function(){var e=jQuery(this).attr("href");if(e){var p=e.indexOf("#ulp-");if(p<0&&(p=e.indexOf("#ulpx-")),p>=0){if((p=e.indexOf("#ulp-"))>=0?e=e.substr(p+5):(p=e.indexOf("#ulpx-"),e=e.substr(p+6)),(p=e.indexOf(":"))>0){var l=e.substr(p+1);ulp_read_cookie("ulp-"+(e=ulp_popup_id(e=e.substr(0,p))))==ulp_cookie_value?l.length>0&&jQuery(this).attr("href",ulp_decode64(l)):jQuery(this).addClass("ulp-linklocker-"+e)}jQuery(this).click(function(){var e=jQuery(this).attr("href"),p=e.indexOf("#ulp-");if(p>=0?e=e.substr(p+5):(p=e.indexOf("#ulpx-"),e=e.substr(p+6)),(p=e.indexOf(":"))>0){var l=e.substr(p+1);l.length>0&&(ulp_forced_location=ulp_decode64(l)),e=e.substr(0,p)}return ulp_open(e=ulp_popup_id(e)),!1})}}}),"undefined"!=typeof FB&&FB.Event.subscribe("edge.create",function(){ulp_share("facebook-like")}),"undefined"!=typeof twttr&&twttr.ready(function(e){e.events.bind("tweet",function(e){ulp_share("twitter-tweet")}),e.events.bind("follow",function(e){ulp_share("twitter-follow")})}),jQuery(document).keyup(function(e){if(ulp_active_window_id&&"on"==jQuery("#ulp-"+ulp_active_window_id).attr("data-close")&&27==e.keyCode&&ulp_self_close(),13==e.keyCode&&jQuery(document.activeElement).hasClass("ulp-input-field")){if("textarea"==jQuery(document.activeElement).prop("tagName").toLowerCase()&&!e.ctrlKey)return;var p=jQuery(document.activeElement).parents(".ulp-inline-window, .ulp-window");if(p&&"on"==jQuery(p).attr("data-enter")){var l=jQuery(p).find(".ulp-submit");l&&jQuery(l).click()}}})}function ulp_utf8encode(e){e=e.replace(/\x0d\x0a/g,"\n");for(var p="",l=0;l<e.length;l++){var i=e.charCodeAt(l);i<128?p+=String.fromCharCode(i):i>127&&i<2048?(p+=String.fromCharCode(i>>6|192),p+=String.fromCharCode(63&i|128)):(p+=String.fromCharCode(i>>12|224),p+=String.fromCharCode(i>>6&63|128),p+=String.fromCharCode(63&i|128))}return p}function ulp_encode64(e){var p,l,i,u,o,n,a,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r="",_=0;for(e=ulp_utf8encode(e);_<e.length;)u=(p=e.charCodeAt(_++))>>2,o=(3&p)<<4|(l=e.charCodeAt(_++))>>4,n=(15&l)<<2|(i=e.charCodeAt(_++))>>6,a=63&i,isNaN(l)?n=a=64:isNaN(i)&&(a=64),r=r+t.charAt(u)+t.charAt(o)+t.charAt(n)+t.charAt(a);return r}function ulp_utf8decode(e){for(var p="",l=0,i=c1=c2=0;l<e.length;)(i=e.charCodeAt(l))<128?(p+=String.fromCharCode(i),l++):i>191&&i<224?(c2=e.charCodeAt(l+1),p+=String.fromCharCode((31&i)<<6|63&c2),l+=2):(c2=e.charCodeAt(l+1),c3=e.charCodeAt(l+2),p+=String.fromCharCode((15&i)<<12|(63&c2)<<6|63&c3),l+=3);return p}function ulp_decode64(e){var p,l,i,u,o,n,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",t="",r=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");r<e.length;)p=a.indexOf(e.charAt(r++))<<2|(u=a.indexOf(e.charAt(r++)))>>4,l=(15&u)<<4|(o=a.indexOf(e.charAt(r++)))>>2,i=(3&o)<<6|(n=a.indexOf(e.charAt(r++))),t+=String.fromCharCode(p),64!=o&&(t+=String.fromCharCode(l)),64!=n&&(t+=String.fromCharCode(i));return t=ulp_utf8decode(t)}function ulp_track(e,p,l,i){if("on"==ulp_km_tracking)try{i&&""!=i&&"object"==typeof _kmq&&_kmq.push(["identify",i])}catch(e){}if("on"==ulp_ga_tracking)try{var u="";"layered-popup"==p?jQuery("#ulp-"+e).attr("data-title").length>0&&(u=jQuery("#ulp-"+e).attr("data-title")):"layered-inline"==p&&jQuery("#"+e).attr("data-title").length>0&&(u=jQuery("#"+e).attr("data-title")),u.length>0&&("object"==typeof _gaq?_gaq.push(["_trackEvent",p,l,u,1,!1]):"function"==typeof _trackEvent?_trackEvent(p,l,u,1,!1):"function"==typeof __gaTracker?__gaTracker("send","event",p,l,u):"function"==typeof ga&&ga("send","event",p,l,u))}catch(e){}}function ulp_share(e){return ulp_active_window_id&&jQuery.ajax({url:ulp_ajax_url,data:{"ulp-source":e,"ulp-popup":ulp_active_window_id,"ulp-campaign":ulp_active_campaign,action:"ulp_share"},type:"POST",async:!0,success:function(p){var l;try{if("OK"==(l="object"==typeof p?p:jQuery.parseJSON(p)).status){var i=180;void 0!==l.cookie_lifetime&&(i=parseInt(l.cookie_lifetime,10)),i>0&&((ulp_active_window_id==ulp_onload_popup||ulp_active_campaign==ulp_onload_popup&&""!=ulp_onload_popup||"on"==ulp_onexit_limits&&""!=ulp_onload_popup)&&(ulp_write_cookie("ulp-onload-"+ulp_onload_popup,ulp_cookie_value,i),ulp_onload_displayed=!0),(ulp_active_window_id==ulp_onexit_popup||ulp_active_campaign==ulp_onexit_popup&&""!=ulp_onexit_popup||"on"==ulp_onexit_limits&&""!=ulp_onexit_popup)&&(ulp_write_cookie("ulp-onexit-"+ulp_onexit_popup,ulp_cookie_value,i),ulp_onexit_displayed=!0),(ulp_active_window_id==ulp_onscroll_popup||ulp_active_campaign==ulp_onscroll_popup&&""!=ulp_onscroll_popup||"on"==ulp_onexit_limits&&""!=ulp_onscroll_popup)&&(ulp_write_cookie("ulp-onscroll-"+ulp_onscroll_popup,ulp_cookie_value,i),ulp_onscroll_displayed=!0),(ulp_active_window_id==ulp_onidle_popup||ulp_active_campaign==ulp_onidle_popup&&""!=ulp_onidle_popup||"on"==ulp_onexit_limits&&""!=ulp_onidle_popup)&&(ulp_write_cookie("ulp-onidle-"+ulp_onidle_popup,ulp_cookie_value,i),ulp_onidle_displayed=!0),(ulp_active_window_id==ulp_onabd_popup||ulp_active_campaign==ulp_onabd_popup&&""!=ulp_onabd_popup||"on"==ulp_onexit_limits&&""!=ulp_onabd_popup)&&(ulp_write_cookie("ulp-onabd-"+ulp_onabd_popup,ulp_cookie_value,i),ulp_onabd_displayed=!0),ulp_write_cookie("ulp-"+ulp_active_window_id,ulp_cookie_value,i)),ulp_track(ulp_active_window_id,"layered-popup","share-"+e,""),_ulp_open(ulp_active_window_id,!1,!1);var u=0;l.close_delay&&(u=l.close_delay),ulp_unlock_links(ulp_active_window_id);var o=l.return_url;ulp_forced_location.length>0&&(o=ulp_forced_location),setTimeout(function(){o.length>0?(ulp_subscribing=!1,ulp_self_close(),"#refresh"==o?location.reload(!0):location.href=o):(ulp_subscribing=!1,ulp_self_close())},u)}else ulp_subscribing=!1,ulp_self_close()}catch(e){ulp_subscribing=!1,ulp_self_close()}}}),!1}function ulp_social_google_plusone(e){"on"==e.state&&ulp_share("google-plusone")}function ulp_social_linkedin_share(){ulp_share("linkedin-share")}function ulp_close_forever(e){return void 0===e&&(e=180),(ulp_active_window_id==ulp_onload_popup||ulp_active_campaign==ulp_onload_popup&&""!=ulp_onload_popup||"on"==ulp_onexit_limits&&""!=ulp_onload_popup)&&(ulp_write_cookie("ulp-onload-"+ulp_onload_popup,ulp_cookie_value,e),ulp_onload_displayed=!0),(ulp_active_window_id==ulp_onexit_popup||ulp_active_campaign==ulp_onexit_popup&&""!=ulp_onexit_popup||"on"==ulp_onexit_limits&&""!=ulp_onexit_popup)&&(ulp_write_cookie("ulp-onexit-"+ulp_onexit_popup,ulp_cookie_value,e),ulp_onexit_displayed=!0),(ulp_active_window_id==ulp_onscroll_popup||ulp_active_campaign==ulp_onscroll_popup&&""!=ulp_onscroll_popup||"on"==ulp_onexit_limits&&""!=ulp_onscroll_popup)&&(ulp_write_cookie("ulp-onscroll-"+ulp_onscroll_popup,ulp_cookie_value,e),ulp_onscroll_displayed=!0),(ulp_active_window_id==ulp_onidle_popup||ulp_active_campaign==ulp_onidle_popup&&""!=ulp_onidle_popup||"on"==ulp_onexit_limits&&""!=ulp_onidle_popup)&&(ulp_write_cookie("ulp-onidle-"+ulp_onidle_popup,ulp_cookie_value,e),ulp_onidle_displayed=!0),(ulp_active_window_id==ulp_onabd_popup||ulp_active_campaign==ulp_onabd_popup&&""!=ulp_onabd_popup||"on"==ulp_onexit_limits&&""!=ulp_onabd_popup)&&(ulp_write_cookie("ulp-onabd-"+ulp_onabd_popup,ulp_cookie_value,e),ulp_onabd_displayed=!0),ulp_self_close(),!1}function ulp_unlock_links(e){jQuery(".ulp-linklocker-"+e).each(function(){var e=jQuery(this).attr("href");(url_idx=e.lastIndexOf(":"),url_idx>0)&&((e=e.substr(url_idx+1)).length>0&&(e=ulp_decode64(e),jQuery(this).attr("href",e)))})}function ulp_clear_form(e){jQuery("#ulp-"+e).find(".ulp-input-error").removeClass("ulp-input-error"),jQuery("#ulp-"+e).find("input[type=text], input[type=password], input[type=email], textarea").val("")}function ulp_recaptcha_loaded(){for(var e,p,l;ulp_recaptcha_queue.length>0;)e=ulp_recaptcha_queue.pop(),(p=jQuery("#"+e).attr("data-theme"))||(p="light"),l=grecaptcha.render(e,{sitekey:ulp_recaptcha_public_key,theme:p}),jQuery("#"+e).attr("data-widget",l)}function ulp_hex2rgba(e,p){var l=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return l?"rgba("+parseInt(l[1],16)+","+parseInt(l[2],16)+","+parseInt(l[3],16)+","+p+")":"rgba(0,0,0,0)"}function ulp_datetimepicker_init(e){jQuery("#"+e).find(".ulp-date").each(function(){var e=this;jQuery(e).datetimepicker("destroy"),jQuery(e).datetimepicker({format:jQuery(e).attr("data-format"),formatDate:jQuery(e).attr("data-format"),timepicker:!1,yearStart:1900,yearEnd:2100,onShow:function(p){var l,i=jQuery(e).attr("data-min-type"),u=jQuery(e).attr("data-min-value"),o=!1;switch(i){case"today":o=0;break;case"yesterday":o="-1970/01/02";break;case"tomorrow":o="+1970/01/02";break;case"date":o=u;break;case"field":l=jQuery(e).parentsUntil(".ulp-content")[0],o=!!jQuery(l).parent().find("[name='ulp-custom-field-"+u+"']").val()&&jQuery(l).parent().find("[name='ulp-custom-field-"+u+"']").val()}var n=jQuery(e).attr("data-max-type"),a=jQuery(e).attr("data-max-value"),t=!1;switch(n){case"today":t=0;break;case"yesterday":t="-1970/01/02";break;case"tomorrow":t="+1970/01/02";break;case"date":t=a;break;case"field":l=jQuery(e).parentsUntil(".ulp-content")[0],t=!!jQuery(l).parent().find("[name='ulp-custom-field-"+a+"']").val()&&jQuery(l).parent().find("[name='ulp-custom-field-"+a+"']").val()}this.setOptions({minDate:o,maxDate:t})}})})}jQuery(window).resize(function(){var e={width:Math.max(240,jQuery(window).width()),height:Math.max(120,jQuery(window).height())};if(ulp_viewport||(ulp_viewport=e),e.width!=ulp_viewport.width||e.height!=ulp_viewport.height){if(ulp_viewport=e,ulp_inline_open(!0),ulp_active_window_id){e={width:Math.max(240,jQuery(window).width()),height:Math.max(120,jQuery(window).height())};var p=parseInt(jQuery("#ulp-"+ulp_active_window_id).attr("data-width"),10),l=parseInt(jQuery("#ulp-"+ulp_active_window_id).attr("data-height"),10),i=Math.min((e.width-20)/p,e.height/l);i>1&&(i=1);var u="-50%",o="";ulp_mobile&&(l*(i=Math.min((e.width-20)/p,1))>e.height?(jQuery("#ulp-"+ulp_active_window_id).parent().addClass("ulp-window-fh-container"),u="-"+l*(1-i)/2+"px",o="-"):jQuery("#ulp-"+ulp_active_window_id).parent().removeClass("ulp-window-fh-container"));var n="";switch(jQuery("#ulp-"+ulp_active_window_id).attr("data-position")){case"top-left":n="translate(-"+p*(1-i)/2+"px,-"+l*(1-i)/2+"px) ";break;case"top-right":n="translate("+p*(1-i)/2+"px,-"+l*(1-i)/2+"px) ";break;case"bottom-left":n="translate(-"+p*(1-i)/2+"px,"+o+l*(1-i)/2+"px) ";break;case"bottom-right":n="translate("+p*(1-i)/2+"px,"+o+l*(1-i)/2+"px) ";break;case"top-center":n="translate(-50%,-"+l*(1-i)/2+"px) ";break;case"bottom-center":n="translate(-50%,"+o+l*(1-i)/2+"px) ";break;case"middle-left":n="translate(-"+p*(1-i)/2+"px,"+u+") ";break;case"middle-right":n="translate("+p*(1-i)/2+"px,"+u+") ";break;default:n="translate(-50%,"+u+") "}jQuery("#ulp-"+ulp_active_window_id).css({transform:n+"scale("+i+")","-ms-transform":n+"scale("+i+")","-webkit-transform":n+"scale("+i+")"})}jQuery.fn.datetimepicker&&jQuery(".ulp-date").datetimepicker("hide")}});(function(){var ua=navigator.userAgent.toLowerCase();if((ua.indexOf('webkit')>-1||ua.indexOf('opera')>-1||ua.indexOf('msie')>-1)&&document.getElementById&&window.addEventListener){window.addEventListener('hashchange',function(){var element=document.getElementById(location.hash.substring(1));if(element){if(!/^(?:a|select|input|button|textarea)$/i.test(element.nodeName)){element.tabIndex=-1}
element.focus()}},!1)}})();/*! This file is auto-generated */
window.addComment=function(p){var f,v,I,C=p.document,h={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},e=p.MutationObserver||p.WebKitMutationObserver||p.MozMutationObserver,i="querySelector"in C&&"addEventListener"in p,n=!!C.documentElement.dataset;function t(){r(),function(){if(!e)return;new e(o).observe(C.body,{childList:!0,subtree:!0})}()}function r(e){if(i&&(f=E(h.cancelReplyId),v=E(h.commentFormId),f)){f.addEventListener("touchstart",l),f.addEventListener("click",l);var t=function(e){if((e.metaKey||e.ctrlKey)&&13===e.keyCode)return v.removeEventListener("keydown",t),e.preventDefault(),v.submit.click(),!1};v&&v.addEventListener("keydown",t);for(var n,r=function(e){var t,n=h.commentReplyClass;e&&e.childNodes||(e=C);t=C.getElementsByClassName?e.getElementsByClassName(n):e.querySelectorAll("."+n);return t}(e),o=0,d=r.length;o<d;o++)(n=r[o]).addEventListener("touchstart",a),n.addEventListener("click",a)}}function l(e){var t=E(h.temporaryFormId);if(t&&I){E(h.parentIdFieldId).value="0";var n=t.textContent;t.parentNode.replaceChild(I,t),this.style.display="none";var r=E(h.commentReplyTitleId),o=r&&r.firstChild;o&&o.nodeType===Node.TEXT_NODE&&n&&(o.textContent=n),e.preventDefault()}}function a(e){var t=E(h.commentReplyTitleId),n=t&&t.firstChild.textContent,r=this,o=m(r,"belowelement"),d=m(r,"commentid"),i=m(r,"respondelement"),l=m(r,"postid"),a=m(r,"replyto")||n;o&&d&&i&&l&&!1===p.addComment.moveForm(o,d,i,l,a)&&e.preventDefault()}function o(e){for(var t=e.length;t--;)if(e[t].addedNodes.length)return void r()}function m(e,t){return n?e.dataset[t]:e.getAttribute("data-"+t)}function E(e){return C.getElementById(e)}return i&&"loading"!==C.readyState?t():i&&p.addEventListener("DOMContentLoaded",t,!1),{init:r,moveForm:function(e,t,n,r,o){var d=E(e);I=E(n);var i,l,a,m=E(h.parentIdFieldId),c=E(h.postIdFieldId),s=E(h.commentReplyTitleId),u=s&&s.firstChild;if(d&&I&&m){void 0===o&&(o=u&&u.textContent),function(e){var t=h.temporaryFormId,n=E(t),r=E(h.commentReplyTitleId),o=r?r.firstChild.textContent:"";if(n)return;(n=C.createElement("div")).id=t,n.style.display="none",n.textContent=o,e.parentNode.insertBefore(n,e)}(I),r&&c&&(c.value=r),m.value=t,f.style.display="",d.parentNode.insertBefore(I,d.nextSibling),u&&u.nodeType===Node.TEXT_NODE&&(u.textContent=o),f.onclick=function(){return!1};try{for(var y=0;y<v.elements.length;y++)if(i=v.elements[y],l=!1,"getComputedStyle"in p?a=p.getComputedStyle(i):C.documentElement.currentStyle&&(a=i.currentStyle),(i.offsetWidth<=0&&i.offsetHeight<=0||"hidden"===a.visibility)&&(l=!0),"hidden"!==i.type&&!i.disabled&&!l){i.focus();break}}catch(e){}return!1}}}}(window);/*!
 * WPBakery Page Builder v6.0.0 (https://wpbakery.com)
 * Copyright 2011-2020 Michael M, WPBakery
 * License: Commercial. More details: http://go.wpbakery.com/licensing
 */
document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",function(){for(var prefix=["-webkit-","-moz-","-ms-","-o-",""],i=0;i<prefix.length;i++)prefix[i]+"transform"in document.documentElement.style&&(document.documentElement.className+=" vc_transform ")}(),function($){"function"!=typeof window.vc_js&&(window.vc_js=function(){"use strict";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(),jQuery(document).trigger("vc_js"),window.setTimeout(vc_waypoints,500)}),"function"!=typeof window.vc_plugin_flexslider&&(window.vc_plugin_flexslider=function($parent){($parent?$parent.find(".wpb_flexslider"):jQuery(".wpb_flexslider")).each(function(){var this_element=jQuery(this),sliderTimeout=1e3*parseInt(this_element.attr("data-interval"),10),sliderFx=this_element.attr("data-flex_fx"),slideshow=0==sliderTimeout?!1:!0;this_element.is(":visible")&&this_element.flexslider({animation:sliderFx,slideshow:slideshow,slideshowSpeed:sliderTimeout,sliderSpeed:800,smoothHeight:!0})})}),"function"!=typeof window.vc_googleplus&&(window.vc_googleplus=function(){0<jQuery(".wpb_googleplus").length&&function(){var po=document.createElement("script");po.type="text/javascript",po.async=!0,po.src="https://apis.google.com/js/plusone.js";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(po,s)}()}),"function"!=typeof window.vc_pinterest&&(window.vc_pinterest=function(){0<jQuery(".wpb_pinterest").length&&function(){var po=document.createElement("script");po.type="text/javascript",po.async=!0,po.src="https://assets.pinterest.com/js/pinit.js";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(po,s)}()}),"function"!=typeof window.vc_progress_bar&&(window.vc_progress_bar=function(){void 0!==jQuery.fn.vcwaypoint&&jQuery(".vc_progress_bar").each(function(){var $el=jQuery(this);$el.vcwaypoint(function(){$el.find(".vc_single_bar").each(function(index){var bar=jQuery(this).find(".vc_bar"),val=bar.data("percentage-value");setTimeout(function(){bar.css({width:val+"%"})},200*index)})},{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 $el=jQuery(this);$el.vcwaypoint(function(){$el.addClass("wpb_start_animation animated")},{offset:"85%"})})}),"function"!=typeof window.vc_toggleBehaviour&&(window.vc_toggleBehaviour=function($el){function event(e){e&&e.preventDefault&&e.preventDefault();var element=jQuery(this).closest(".vc_toggle"),content=element.find(".vc_toggle_content");element.hasClass("vc_toggle_active")?content.slideUp({duration:300,complete:function(){element.removeClass("vc_toggle_active")}}):content.slideDown({duration:300,complete:function(){element.addClass("vc_toggle_active")}})}$el?$el.hasClass("vc_toggle_title")?$el.unbind("click").on("click",event):$el.find(".vc_toggle_title").off("click").on("click",event):jQuery(".vc_toggle_title").off("click").on("click",event)}),"function"!=typeof window.vc_tabsBehaviour&&(window.vc_tabsBehaviour=function($tab){var $call,ver,old_version;jQuery.ui&&($call=$tab||jQuery(".wpb_tabs, .wpb_tour"),ver=jQuery.ui&&jQuery.ui.version?jQuery.ui.version.split("."):"1.10",old_version=1===parseInt(ver[0],10)&&parseInt(ver[1],10)<9,$call.each(function(index){var interval=jQuery(this).attr("data-interval"),tabs_array=[],$tabs=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({show:function(event,ui){wpb_prepare_tab_content(event,ui)},activate:function(event,ui){wpb_prepare_tab_content(event,ui)}});if(interval&&0<interval)try{$tabs.tabs("rotate",1e3*interval)}catch(err){window.console&&window.console.warn&&console.warn("tabs behaviours error",err)}jQuery(this).find(".wpb_tab").each(function(){tabs_array.push(this.id)}),jQuery(this).find(".wpb_tabs_nav li").on("click",function(e){return e&&e.preventDefault&&e.preventDefault(),old_version?$tabs.tabs("select",jQuery("a",this).attr("href")):$tabs.tabs("option","active",jQuery(this).index()),!1}),jQuery(this).find(".wpb_prev_slide a, .wpb_next_slide a").on("click",function(e){var index,length;e&&e.preventDefault&&e.preventDefault(),old_version?(index=$tabs.tabs("option","selected"),jQuery(this).parent().hasClass("wpb_next_slide")?index++:index--,index<0?index=$tabs.tabs("length")-1:index>=$tabs.tabs("length")&&(index=0),$tabs.tabs("select",index)):(index=$tabs.tabs("option","active"),length=$tabs.find(".wpb_tab").length,index=jQuery(this).parent().hasClass("wpb_next_slide")?length<=index+1?0:index+1:index-1<0?length-1:index-1,$tabs.tabs("option","active",index))})}))}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(index){var $this=jQuery(this),active_tab=($this.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0<parseInt($this.data("active-tab"),10)&&parseInt($this.data("active-tab"),10)-1),collapsible=!1===active_tab||"yes"===$this.data("collapsible"),$tabs=$this.find(".wpb_accordion_wrapper").accordion({header:"> div > h3",autoHeight:!1,heightStyle:"content",active:active_tab,collapsible:collapsible,navigation:!0,activate:vc_accordionActivate,change:function(event,ui){void 0!==jQuery.fn.isotope&&ui.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(ui.newPanel)}});!0===$this.data("vcDisableKeydown")&&($tabs.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var layout_modes={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 $container=jQuery(this),$thumbs=$container.find(".wpb_thumbnails"),layout_mode=$thumbs.attr("data-layout-mode");$thumbs.isotope({itemSelector:".isotope-item",layoutMode:void 0===layout_modes[layout_mode]?"fitRows":layout_modes[layout_mode]}),$container.find(".categories_filter a").data("isotope",$thumbs).on("click",function(e){e&&e.preventDefault&&e.preventDefault();var $thumbs=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),$thumbs.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).bind("load resize",function(){$thumbs.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function($parent){($parent?$parent.find(".wpb_carousel"):jQuery(".wpb_carousel")).each(function(){var carousel_li,fluid_ul,$this=jQuery(this);!0!==$this.data("carousel_enabled")&&$this.is(":visible")&&($this.data("carousel_enabled",!0),getColumnsCount(jQuery(this)),jQuery(this).hasClass("columns_count_1"),(carousel_li=jQuery(this).find(".wpb_thumbnails-fluid li")).css({"margin-right":carousel_li.css("margin-left"),"margin-left":0}),(fluid_ul=jQuery(this).find("ul.wpb_thumbnails-fluid")).width(fluid_ul.width()+300),jQuery(window).on("resize",function(){screen_size!=(screen_size=getSizeName())&&window.setTimeout(function(){location.reload()},20)}))})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(index){var $imagesGrid,sliderTimeout,this_element=jQuery(this);this_element.hasClass("wpb_slider_nivo")?(0===(sliderTimeout=1e3*this_element.attr("data-interval"))&&(sliderTimeout=9999999999),this_element.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:800,pauseTime:sliderTimeout,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"})):this_element.hasClass("wpb_image_grid")&&(jQuery.fn.imagesLoaded?$imagesGrid=this_element.find(".wpb_image_grid_ul").imagesLoaded(function(){$imagesGrid.isotope({itemSelector:".isotope-item",layoutMode:"fitRows"})}):this_element.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(err){window.console&&window.console.warn&&window.console.warn("vc_prettyPhoto initialize error",err)}}),"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 vcSkrollrOptions,callSkrollInit,$=window.jQuery;function fullWidthRow(){var $elements=$('[data-vc-full-width="true"]');$.each($elements,function(key,item){var $el=$(this);$el.addClass("vc_hidden");var el_margin_left,el_margin_right,offset,width,padding,paddingRight,$el_full=$el.next(".vc_row-full-width");$el_full.length||($el_full=$el.parent().next(".vc_row-full-width")),$el_full.length&&(el_margin_left=parseInt($el.css("margin-left"),10),el_margin_right=parseInt($el.css("margin-right"),10),offset=0-$el_full.offset().left-el_margin_left,width=$(window).width(),"rtl"===$el.css("direction")&&(offset-=$el_full.width(),offset+=width,offset+=el_margin_left,offset+=el_margin_right),$el.css({position:"relative",left:offset,"box-sizing":"border-box",width:width}),$el.data("vcStretchContent")||("rtl"===$el.css("direction")?((padding=offset)<0&&(padding=0),(paddingRight=offset)<0&&(paddingRight=0)):((padding=-1*offset)<0&&(padding=0),(paddingRight=width-padding-$el_full.width()+el_margin_left+el_margin_right)<0&&(paddingRight=0)),$el.css({"padding-left":padding+"px","padding-right":paddingRight+"px"})),$el.attr("data-vc-full-width-init","true"),$el.removeClass("vc_hidden"),$(document).trigger("vc-full-width-row-single",{el:$el,offset:offset,marginLeft:el_margin_left,marginRight:el_margin_right,elFull:$el_full,width:width}))}),$(document).trigger("vc-full-width-row",$elements)}function fullHeightRow(){var fullHeight,windowHeight,offsetTop,$element=$(".vc_row-o-full-height:first");$element.length&&(windowHeight=$(window).height(),(offsetTop=$element.offset().top)<windowHeight&&(fullHeight=100-offsetTop/(windowHeight/100),$element.css("min-height",fullHeight+"vh"))),$(document).trigger("vc-full-height-row",$element)}$(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour",fullWidthRow).on("resize.vcRowBehaviour",fullHeightRow),fullWidthRow(),fullHeightRow(),(0<window.navigator.userAgent.indexOf("MSIE ")||navigator.userAgent.match(/Trident.*rv\:11\./))&&$(".vc_row-o-full-height").each(function(){"flex"===$(this).css("display")&&$(this).wrap('<div class="vc_ie-flexbox-fixer"></div>')}),vc_initVideoBackgrounds(),callSkrollInit=!1,window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),$(".vc_parallax-inner").remove(),$("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),$("[data-vc-parallax]").each(function(){var skrollrSize,skrollrStart,$parallaxElement,parallaxImage,youtubeId;callSkrollInit=!0,"on"===$(this).data("vcParallaxOFade")&&$(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),skrollrSize=100*$(this).data("vcParallax"),($parallaxElement=$("<div />").addClass("vc_parallax-inner").appendTo($(this))).height(skrollrSize+"%"),parallaxImage=$(this).data("vcParallaxImage"),(youtubeId=vcExtractYoutubeId(parallaxImage))?insertYoutubeVideoAsBackground($parallaxElement,youtubeId):void 0!==parallaxImage&&$parallaxElement.css("background-image","url("+parallaxImage+")"),skrollrStart=-(skrollrSize-100),$parallaxElement.attr("data-bottom-top","top: "+skrollrStart+"%;").attr("data-top-bottom","top: 0%;")}),callSkrollInit&&window.skrollr&&(vcSkrollrOptions={forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}},window.vcParallaxSkroll=skrollr.init(vcSkrollrOptions),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(el){for(var find=!1,i=1;!1===find;){if(el.hasClass("columns_count_"+i))return find=!0,i;i++}});var screen_size=getSizeName();function getSizeName(){var screen_w=jQuery(window).width();return 1170<screen_w?"desktop_wide":960<screen_w&&screen_w<1169?"desktop":768<screen_w&&screen_w<959?"tablet":300<screen_w&&screen_w<767?"mobile":screen_w<300?"mobile_portrait":""}"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(event,ui){var $ui_panel,$google_maps,$frame,panel=ui.panel||ui.newPanel,$pie_charts=panel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=panel.find(".vc_round-chart"),$line_charts=panel.find(".vc_line-chart"),$carousel=panel.find('[data-ride="vc_carousel"]');vc_carouselBehaviour(),vc_plugin_flexslider(panel),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),panel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&panel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),$ui_panel=panel.find(".isotope, .wpb_image_grid_ul"),$google_maps=panel.find(".wpb_gmaps_widget"),0<$ui_panel.length&&$ui_panel.isotope("layout"),$google_maps.length&&!$google_maps.is(".map_ready")&&(($frame=$google_maps.find("iframe")).attr("src",$frame.attr("src")),$google_maps.addClass("map_ready")),panel.parents(".isotope").length&&panel.parents(".isotope").each(function(){jQuery(this).isotope("layout")}),$(document).trigger("wpb_prepare_tab_content",panel)}),"function"!=typeof window.vc_ttaActivation&&(window.vc_ttaActivation=function(){jQuery("[data-vc-accordion]").on("show.vc.accordion",function(e){var $=window.jQuery,ui={};ui.newPanel=$(this).data("vc.accordion").getTarget(),window.wpb_prepare_tab_content(e,ui)})}),"function"!=typeof window.vc_accordionActivate&&(window.vc_accordionActivate=function(event,ui){var $pie_charts,$round_charts,$line_charts,$carousel;ui.newPanel.length&&ui.newHeader.length&&($pie_charts=ui.newPanel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=ui.newPanel.find(".vc_round-chart"),$line_charts=ui.newPanel.find(".vc_line-chart"),$carousel=ui.newPanel.find('[data-ride="vc_carousel"]'),void 0!==jQuery.fn.isotope&&ui.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),vc_carouselBehaviour(ui.newPanel),vc_plugin_flexslider(ui.newPanel),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),ui.newPanel.parents(".isotope").length&&ui.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(){jQuery("[data-vc-video-bg]").each(function(){var youtubeUrl,youtubeId,$element=jQuery(this);$element.data("vcVideoBg")?(youtubeUrl=$element.data("vcVideoBg"),(youtubeId=vcExtractYoutubeId(youtubeUrl))&&($element.find(".vc_video-bg").remove(),insertYoutubeVideoAsBackground($element,youtubeId)),jQuery(window).on("grid:items:added",function(event,$grid){$element.has($grid).length&&vcResizeVideoBackground($element)})):$element.find(".vc_video-bg").remove()})}),"function"!=typeof window.insertYoutubeVideoAsBackground&&(window.insertYoutubeVideoAsBackground=function($element,youtubeId,counter){if("undefined"==typeof YT||void 0===YT.Player)return 100<(counter=void 0===counter?0:counter)?void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){insertYoutubeVideoAsBackground($element,youtubeId,counter++)},100);var $container=$element.prepend('<div class="vc_video-bg vc_hidden-xs"><div class="inner"></div></div>').find(".inner");new YT.Player($container[0],{width:"100%",height:"100%",videoId:youtubeId,playerVars:{playlist:youtubeId,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,wmode:"transparent"},events:{onReady:function(event){event.target.mute().setLoop(!0)}}}),vcResizeVideoBackground($element),jQuery(window).bind("resize",function(){vcResizeVideoBackground($element)})}),"function"!=typeof window.vcResizeVideoBackground&&(window.vcResizeVideoBackground=function($element){var iframeW,iframeH,marginLeft,marginTop,containerW=$element.innerWidth(),containerH=$element.innerHeight();containerW/containerH<16/9?(iframeW=containerH*(16/9),iframeH=containerH,marginLeft=-Math.round((iframeW-containerW)/2)+"px",marginTop=-Math.round((iframeH-containerH)/2)+"px"):(iframeH=(iframeW=containerW)*(9/16),marginTop=-Math.round((iframeH-containerH)/2)+"px",marginLeft=-Math.round((iframeW-containerW)/2)+"px"),iframeW+="px",iframeH+="px",$element.find(".vc_video-bg iframe").css({maxWidth:"1000%",marginLeft:marginLeft,marginTop:marginTop,width:iframeW,height:iframeH})}),"function"!=typeof window.vcExtractYoutubeId&&(window.vcExtractYoutubeId=function(url){if(void 0===url)return!1;var id=url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/);return null!==id&&id[1]}),"function"!=typeof window.vc_googleMapsPointer&&(window.vc_googleMapsPointer=function(){var $=window.jQuery,$wpbGmapsWidget=$(".wpb_gmaps_widget");$wpbGmapsWidget.on("click",function(){$("iframe",this).css("pointer-events","auto")}),$wpbGmapsWidget.on("mouseleave",function(){$("iframe",this).css("pointer-events","none")}),$(".wpb_gmaps_widget iframe").css("pointer-events","none")}),"function"!=typeof window.vc_setHoverBoxPerspective&&(window.vc_setHoverBoxPerspective=function(hoverBox){hoverBox.each(function(){var $this=jQuery(this),perspective=4*$this.width()+"px";$this.css("perspective",perspective)})}),"function"!=typeof window.vc_setHoverBoxHeight&&(window.vc_setHoverBoxHeight=function(hoverBox){hoverBox.each(function(){var $this=jQuery(this),hoverBoxInner=$this.find(".vc-hoverbox-inner");hoverBoxInner.css("min-height",0);var frontHeight=$this.find(".vc-hoverbox-front-inner").outerHeight(),backHeight=$this.find(".vc-hoverbox-back-inner").outerHeight(),hoverBoxHeight=backHeight<frontHeight?frontHeight:backHeight;hoverBoxHeight<250&&(hoverBoxHeight=250),hoverBoxInner.css("min-height",hoverBoxHeight+"px")})}),"function"!=typeof window.vc_prepareHoverBox&&(window.vc_prepareHoverBox=function(){var hoverBox=jQuery(".vc-hoverbox");vc_setHoverBoxHeight(hoverBox),vc_setHoverBoxPerspective(hoverBox)}),jQuery(document).ready(window.vc_prepareHoverBox),jQuery(window).resize(window.vc_prepareHoverBox),jQuery(document).ready(function($){window.vc_js()})}(window.jQuery);"use strict";!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports&&"function"==typeof require?require("jquery"):jQuery)}(function(e){function t(n,o){var i=this;i.element=n,i.el=e(n),i.suggestions=[],i.badQueries=[],i.selectedIndex=-1,i.currentValue=i.element.value,i.timeoutId=null,i.cachedResponse={},i.onChangeTimeout=null,i.onChange=null,i.isLocal=!1,i.suggestionsContainer=null,i.noSuggestionsContainer=null,i.options=e.extend(!0,{},t.defaults,o),i.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},i.hint=null,i.hintValue="",i.selection=null,i.initialize(),i.setOptions(o)}function n(e,t,n){return-1!==e.value.toLowerCase().indexOf(n)}function o(t){return"string"==typeof t?e.parseJSON(t):t}function i(e,t){if(!t)return e.value;var n="("+a.escapeRegExChars(t)+")";return e.value.replace(new RegExp(n,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")}function s(e,t){return'<div class="autocomplete-group">'+t+"</div>"}var a=function(){return{escapeRegExChars:function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(e){var t=document.createElement("div");return t.className=e,t.style.position="absolute",t.style.display="none",t}}}(),r={ESC:27,TAB:9,RETURN:13,LEFT:37,UP:38,RIGHT:39,DOWN:40},u=e.noop;t.utils=a,e.Autocomplete=t,t.defaults={ajaxSettings:{},autoSelectFirst:!1,appendTo:"body",serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:i,formatGroup:s,delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:u,onSearchComplete:u,onSearchError:u,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:n,paramName:"query",transformResult:o,showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1},t.prototype={initialize:function(){var n,o=this,i="."+o.classes.suggestion,s=o.classes.selected,a=o.options;o.element.setAttribute("autocomplete","off"),o.noSuggestionsContainer=e('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),o.suggestionsContainer=t.utils.createNode(a.containerClass),(n=e(o.suggestionsContainer)).appendTo(a.appendTo||"body"),"auto"!==a.width&&n.css("width",a.width),n.on("mouseover.autocomplete",i,function(){o.activate(e(this).data("index"))}),n.on("mouseout.autocomplete",function(){o.selectedIndex=-1,n.children("."+s).removeClass(s)}),n.on("click.autocomplete",i,function(){o.select(e(this).data("index"))}),n.on("click.autocomplete",function(){clearTimeout(o.blurTimeoutId)}),o.fixPositionCapture=function(){o.visible&&o.fixPosition()},e(window).on("resize.autocomplete",o.fixPositionCapture),o.el.on("keydown.autocomplete",function(e){o.onKeyPress(e)}),o.el.on("keyup.autocomplete",function(e){o.onKeyUp(e)}),o.el.on("blur.autocomplete",function(){o.onBlur()}),o.el.on("focus.autocomplete",function(){o.onFocus()}),o.el.on("change.autocomplete",function(e){o.onKeyUp(e)})},onFocus:function(){var e=this;e.fixPosition(),e.el.val().length>=e.options.minChars&&e.onValueChange()},onBlur:function(){var e=this;e.blurTimeoutId=setTimeout(function(){e.hide()},200)},abortAjax:function(){var e=this;e.currentRequest&&(e.currentRequest.abort(),e.currentRequest=null)},setOptions:function(t){var n=this,o=e.extend({},n.options,t);n.isLocal=Array.isArray(o.lookup),n.isLocal&&(o.lookup=n.verifySuggestionsFormat(o.lookup)),o.orientation=n.validateOrientation(o.orientation,"bottom"),e(n.suggestionsContainer).css({"max-height":o.maxHeight+"px",width:o.width+"px","z-index":o.zIndex}),this.options=o},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){var e=this;e.disabled=!0,clearTimeout(e.onChangeTimeout),e.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var t=this,n=e(t.suggestionsContainer),o=n.parent().get(0);if(o===document.body||t.options.forceFixPosition){var i=t.options.orientation,s=n.outerHeight(),a=t.el.outerHeight(),r=t.el.offset(),u={top:r.top,left:r.left};if("auto"===i){var l=e(window).height(),c=e(window).scrollTop(),g=-c+r.top-s,d=c+l-(r.top+a+s);i=Math.max(g,d)===g?"top":"bottom"}if(u.top+="top"===i?-s:a,o!==document.body){var p,h=n.css("opacity");t.visible||n.css("opacity",0).show(),p=n.offsetParent().offset(),u.top-=p.top,u.top+=o.scrollTop,u.left-=p.left,t.visible||n.css("opacity",h).hide()}"auto"===t.options.width&&(u.width=t.el.outerWidth()+"px"),n.css(u)}},isCursorAtEnd:function(){var e,t=this,n=t.el.val().length,o=t.element.selectionStart;return"number"==typeof o?o===n:!document.selection||((e=document.selection.createRange()).moveStart("character",-n),n===e.text.length)},onKeyPress:function(e){var t=this;if(!t.disabled&&!t.visible&&e.which===r.DOWN&&t.currentValue)return void t.suggest();if(!t.disabled&&t.visible){switch(e.which){case r.ESC:t.el.val(t.currentValue),t.hide();break;case r.RIGHT:if(t.hint&&t.options.onHint&&t.isCursorAtEnd()){t.selectHint();break}return;case r.TAB:if(t.hint&&t.options.onHint)return void t.selectHint();if(-1===t.selectedIndex)return void t.hide();if(t.select(t.selectedIndex),!1===t.options.tabDisabled)return;break;case r.RETURN:if(-1===t.selectedIndex)return void t.hide();t.select(t.selectedIndex);break;case r.UP:t.moveUp();break;case r.DOWN:t.moveDown();break;default:return}e.stopImmediatePropagation(),e.preventDefault()}},onKeyUp:function(e){var t=this;if(!t.disabled){switch(e.which){case r.UP:case r.DOWN:return}clearTimeout(t.onChangeTimeout),t.currentValue!==t.el.val()&&(t.findBestHint(),t.options.deferRequestBy>0?t.onChangeTimeout=setTimeout(function(){t.onValueChange()},t.options.deferRequestBy):t.onValueChange())}},onValueChange:function(){if(this.ignoreValueChange)return void(this.ignoreValueChange=!1);var t=this,n=t.options,o=t.el.val(),i=t.getQuery(o);if(t.selection&&t.currentValue!==i&&(t.selection=null,(n.onInvalidateSelection||e.noop).call(t.element)),clearTimeout(t.onChangeTimeout),t.currentValue=o,t.selectedIndex=-1,n.triggerSelectOnValidInput&&t.isExactMatch(i))return void t.select(0);i.length<n.minChars?t.hide():t.getSuggestions(i)},isExactMatch:function(e){var t=this.suggestions;return 1===t.length&&t[0].value.toLowerCase()===e.toLowerCase()},getQuery:function(t){var n,o=this.options.delimiter;return o?(n=t.split(o),e.trim(n[n.length-1])):t},getSuggestionsLocal:function(t){var n,o=this.options,i=t.toLowerCase(),s=o.lookupFilter,a=parseInt(o.lookupLimit,10);return n={suggestions:e.grep(o.lookup,function(e){return s(e,t,i)})},a&&n.suggestions.length>a&&(n.suggestions=n.suggestions.slice(0,a)),n},getSuggestions:function(t){var n,o,i,s,a=this,r=a.options,u=r.serviceUrl;if(r.params[r.paramName]=t,!1!==r.onSearchStart.call(a.element,r.params)){if(o=r.ignoreParams?null:r.params,e.isFunction(r.lookup))return void r.lookup(t,function(e){a.suggestions=e.suggestions,a.suggest(),r.onSearchComplete.call(a.element,t,e.suggestions)});a.isLocal?n=a.getSuggestionsLocal(t):(e.isFunction(u)&&(u=u.call(a.element,t)),i=u+"?"+e.param(o||{}),n=a.cachedResponse[i]),n&&Array.isArray(n.suggestions)?(a.suggestions=n.suggestions,a.suggest(),r.onSearchComplete.call(a.element,t,n.suggestions)):a.isBadQuery(t)?r.onSearchComplete.call(a.element,t,[]):(a.abortAjax(),s={url:u,data:o,type:r.type,dataType:r.dataType},e.extend(s,r.ajaxSettings),a.currentRequest=e.ajax(s).done(function(e){var n;a.currentRequest=null,n=r.transformResult(e,t),a.processResponse(n,t,i),r.onSearchComplete.call(a.element,t,n.suggestions)}).fail(function(e,n,o){r.onSearchError.call(a.element,t,e,n,o)}))}},isBadQuery:function(e){if(!this.options.preventBadQueries)return!1;for(var t=this.badQueries,n=t.length;n--;)if(0===e.indexOf(t[n]))return!0;return!1},hide:function(){var t=this,n=e(t.suggestionsContainer);e.isFunction(t.options.onHide)&&t.visible&&t.options.onHide.call(t.element,n),t.visible=!1,t.selectedIndex=-1,clearTimeout(t.onChangeTimeout),e(t.suggestionsContainer).hide(),t.signalHint(null)},suggest:function(){if(!this.suggestions.length)return void(this.options.showNoSuggestionNotice?this.noSuggestions():this.hide());var t,n=this,o=n.options,i=o.groupBy,s=o.formatResult,a=n.getQuery(n.currentValue),r=n.classes.suggestion,u=n.classes.selected,l=e(n.suggestionsContainer),c=e(n.noSuggestionsContainer),g=o.beforeRender,d="",p=function(e,n){var s=e.data[i];return t===s?"":(t=s,o.formatGroup(e,t))};if(o.triggerSelectOnValidInput&&n.isExactMatch(a))return void n.select(0);e.each(n.suggestions,function(e,t){i&&(d+=p(t,0)),d+='<div class="'+r+'" data-index="'+e+'">'+s(t,a,e)+"</div>"}),this.adjustContainerWidth(),c.detach(),l.html(d),e.isFunction(g)&&g.call(n.element,l,n.suggestions),n.fixPosition(),l.show(),o.autoSelectFirst&&(n.selectedIndex=0,l.scrollTop(0),l.children("."+r).first().addClass(u)),n.visible=!0,n.findBestHint()},noSuggestions:function(){var t=this,n=t.options.beforeRender,o=e(t.suggestionsContainer),i=e(t.noSuggestionsContainer);this.adjustContainerWidth(),i.detach(),o.empty(),o.append(i),e.isFunction(n)&&n.call(t.element,o,t.suggestions),t.fixPosition(),o.show(),t.visible=!0},adjustContainerWidth:function(){var t,n=this,o=n.options,i=e(n.suggestionsContainer);"auto"===o.width?(t=n.el.outerWidth(),i.css("width",t>0?t:300)):"flex"===o.width&&i.css("width","")},findBestHint:function(){var t=this,n=t.el.val().toLowerCase(),o=null;n&&(e.each(t.suggestions,function(e,t){var i=0===t.value.toLowerCase().indexOf(n);return i&&(o=t),!i}),t.signalHint(o))},signalHint:function(t){var n="",o=this;t&&(n=o.currentValue+t.value.substr(o.currentValue.length)),o.hintValue!==n&&(o.hintValue=n,o.hint=t,(this.options.onHint||e.noop)(n))},verifySuggestionsFormat:function(t){return t.length&&"string"==typeof t[0]?e.map(t,function(e){return{value:e,data:null}}):t},validateOrientation:function(t,n){return t=e.trim(t||"").toLowerCase(),-1===e.inArray(t,["auto","bottom","top"])&&(t=n),t},processResponse:function(e,t,n){var o=this,i=o.options;e.suggestions=o.verifySuggestionsFormat(e.suggestions),i.noCache||(o.cachedResponse[n]=e,i.preventBadQueries&&!e.suggestions.length&&o.badQueries.push(t)),t===o.getQuery(o.currentValue)&&(o.suggestions=e.suggestions,o.suggest())},activate:function(t){var n,o=this,i=o.classes.selected,s=e(o.suggestionsContainer),a=s.find("."+o.classes.suggestion);return s.find("."+i).removeClass(i),o.selectedIndex=t,-1!==o.selectedIndex&&a.length>o.selectedIndex?(n=a.get(o.selectedIndex),e(n).addClass(i),n):null},selectHint:function(){var t=this,n=e.inArray(t.hint,t.suggestions);t.select(n)},select:function(e){var t=this;t.hide(),t.onSelect(e)},moveUp:function(){var t=this;if(-1!==t.selectedIndex)return 0===t.selectedIndex?(e(t.suggestionsContainer).children("."+t.classes.suggestion).first().removeClass(t.classes.selected),t.selectedIndex=-1,t.ignoreValueChange=!1,t.el.val(t.currentValue),void t.findBestHint()):void t.adjustScroll(t.selectedIndex-1)},moveDown:function(){var e=this;e.selectedIndex!==e.suggestions.length-1&&e.adjustScroll(e.selectedIndex+1)},adjustScroll:function(t){var n=this,o=n.activate(t);if(o){var i,s,a,r=e(o).outerHeight();i=o.offsetTop,a=(s=e(n.suggestionsContainer).scrollTop())+n.options.maxHeight-r,i<s?e(n.suggestionsContainer).scrollTop(i):i>a&&e(n.suggestionsContainer).scrollTop(i-n.options.maxHeight+r),n.options.preserveInput||(n.ignoreValueChange=!0,n.el.val(n.getValue(n.suggestions[t].value))),n.signalHint(null)}},onSelect:function(t){var n=this,o=n.options.onSelect,i=n.suggestions[t];n.currentValue=n.getValue(i.value),n.currentValue===n.el.val()||n.options.preserveInput||n.el.val(n.currentValue),n.signalHint(null),n.suggestions=[],n.selection=i,e.isFunction(o)&&o.call(n.element,i)},getValue:function(e){var t,n,o=this,i=o.options.delimiter;return i?(t=o.currentValue,n=t.split(i),1===n.length?e:t.substr(0,t.length-n[n.length-1].length)+e):e},dispose:function(){var t=this;t.el.off(".autocomplete").removeData("autocomplete"),e(window).off("resize.autocomplete",t.fixPositionCapture),e(t.suggestionsContainer).remove()}},e.fn.devbridgeAutocomplete=function(n,o){return arguments.length?this.each(function(){var i=e(this),s=i.data("autocomplete");"string"==typeof n?s&&"function"==typeof s[n]&&s[n](o):(s&&s.dispose&&s.dispose(),s=new t(this,n),i.data("autocomplete",s))}):this.first().data("autocomplete")},e.fn.autocomplete||(e.fn.autocomplete=e.fn.devbridgeAutocomplete)});class AutoComplete{constructor(){this._callAjaxSearch()}_callAjaxSearch(){var e=this,t=urna_settings.ajaxurl+"?action=urna_autocomplete_search&security="+urna_settings.search_nonce,n=$("form.searchform.urna-ajax-search"),o=function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")};n.each(function(){var i=$(this),s=i.find("input[name=s]"),a=parseInt(i.data("thumbnail")),r=parseInt(i.data("price"));s.devbridgeAutocomplete({serviceUrl:e._AutoServiceUrl(s,t),minChars:e._AutoMinChars(s),appendTo:e._AutoAppendTo(s),width:"100%",maxHeight:"initial",onSelect:function(e){e.link.length>0&&(window.location.href=e.link)},onSearchStart:function(e){s.parents("form").addClass("tbay-loading")},beforeRender:function(e,t){void 0!==t[0].result&&$(e).prepend('<div class="list-header"><span>'+t[0].result+"</span></div>"),t[0].view_all&&$(e).append('<div class="view-all-products"><span>'+urna_settings.show_all_text+'</span><i class="linear-icon-chevron-right"></i></div>')},onSearchComplete:function(e,t){n.removeClass("tbay-loading"),$(this).parents("form").addClass("open"),$(document.body).trigger("urna_searchcomplete")},formatResult:(t,n)=>{let i=e._initformatResult(t,n,o,a,r);return i},onHide:function(e){$(this).parents("form").hasClass("open")&&$(this).parents("form").removeClass("open")}}),$("body").click(function(){s.is(":focus")||s.each(function(){$(this).devbridgeAutocomplete().hide()})})});var i=n.find('[name="product_cat"], [name="category"]');i.length&&i.change(function(n){let o=$(n.target).parents("form").find("input[name=s]"),i=o.devbridgeAutocomplete();i.hide(),i.setOptions({serviceUrl:e._AutoServiceUrl(o,t)}),i.onValueChange()}),$(document.body).on("urna_searchcomplete",function(){$(".view-all-products").on("click",function(){$(this).parents("form").submit()})})}_AutoServiceUrl(e,t){let n=e.parents("form"),o=parseInt(n.data("count")),i=n.data("post-type"),s=n.data("search-in"),a=n.find('[name="product_cat"], [name="category"]').val();return o>0&&(t+="&number="+o),t+="&search_in="+s,t+="&post_type="+i,a&&(t+="&product_cat="+a),t}_AutoAppendTo(e){let t=e.parents("form");return void 0!==t.data("appendto")?t.data("appendto"):t.find(".urna-search-results")}_AutoMinChars(e){let t=e.parents("form");return parseInt(t.data("minchars"))}_initformatResult(e,t,n,o,i){"&"==t&&(t="&#038;");var s="("+n(t)+")",a="";return o&&e.image&&(a+=' <div class="suggestion-thumb">'+e.image+"</div>"),a+='<div class="suggestion-group">',a+='<div class="suggestion-title product-title">'+e.value.replace(new RegExp(s,"gi"),"<strong>$1</strong>").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")+"</div>",e.no_found&&(a='<div class="suggestion-title no-found-msg">'+e.value+"</div>"),i&&e.price&&(a+=' <div class="suggestion-price price">'+e.price+"</div>"),a+="</div>"}}$(document).ready(()=>{new AutoComplete});"use strict";jQuery(document).ready(()=>{});!function(C,d,i,n){var t=function(t){var a=this;a.$form=t,a.$attributeFields=t.find(".variations select"),a.$singleVariation=t.find(".single_variation"),a.$singleVariationWrap=t.find(".single_variation_wrap"),a.$resetVariations=t.find(".reset_variations"),a.$product=t.closest(".product"),a.variationData=t.data("product_variations"),a.useAjax=!1===a.variationData,a.xhr=!1,a.loading=!0,a.$singleVariationWrap.show(),a.$form.off(".wc-variation-form"),a.getChosenAttributes=a.getChosenAttributes.bind(a),a.findMatchingVariations=a.findMatchingVariations.bind(a),a.isMatch=a.isMatch.bind(a),a.toggleResetLink=a.toggleResetLink.bind(a),t.on("click.wc-variation-form",".reset_variations",{variationForm:a},a.onReset),t.on("reload_product_variations",{variationForm:a},a.onReload),t.on("hide_variation",{variationForm:a},a.onHide),t.on("show_variation",{variationForm:a},a.onShow),t.on("click",".single_add_to_cart_button",{variationForm:a},a.onAddToCart),t.on("reset_data",{variationForm:a},a.onResetDisplayedVariation),t.on("reset_image",{variationForm:a},a.onResetImage),t.on("change.wc-variation-form",".variations select",{variationForm:a},a.onChange),t.on("found_variation.wc-variation-form",{variationForm:a},a.onFoundVariation),t.on("check_variations.wc-variation-form",{variationForm:a},a.onFindVariation),t.on("update_variation_values.wc-variation-form",{variationForm:a},a.onUpdateAttributes),setTimeout(function(){t.trigger("check_variations"),t.trigger("wc_variation_form",a),a.loading=!1},100)};t.prototype.onReset=function(t){t.preventDefault(),t.data.variationForm.$attributeFields.val("").change(),t.data.variationForm.$form.trigger("reset_data")},t.prototype.onReload=function(t){var a=t.data.variationForm;a.variationData=a.$form.data("product_variations"),a.useAjax=!1===a.variationData,a.$form.trigger("check_variations")},t.prototype.onHide=function(t){t.preventDefault(),t.data.variationForm.$form.find(".single_add_to_cart_button").removeClass("wc-variation-is-unavailable").addClass("disabled wc-variation-selection-needed"),t.data.variationForm.$form.find(".woocommerce-variation-add-to-cart").removeClass("woocommerce-variation-add-to-cart-enabled").addClass("woocommerce-variation-add-to-cart-disabled")},t.prototype.onShow=function(t,a,i){t.preventDefault(),i?(t.data.variationForm.$form.find(".single_add_to_cart_button").removeClass("disabled wc-variation-selection-needed wc-variation-is-unavailable"),t.data.variationForm.$form.find(".woocommerce-variation-add-to-cart").removeClass("woocommerce-variation-add-to-cart-disabled").addClass("woocommerce-variation-add-to-cart-enabled")):(t.data.variationForm.$form.find(".single_add_to_cart_button").removeClass("wc-variation-selection-needed").addClass("disabled wc-variation-is-unavailable"),t.data.variationForm.$form.find(".woocommerce-variation-add-to-cart").removeClass("woocommerce-variation-add-to-cart-enabled").addClass("woocommerce-variation-add-to-cart-disabled")),wp.mediaelement&&t.data.variationForm.$form.find(".wp-audio-shortcode, .wp-video-shortcode").not(".mejs-container").filter(function(){return!C(this).parent().hasClass("mejs-mediaelement")}).mediaelementplayer(wp.mediaelement.settings)},t.prototype.onAddToCart=function(t){C(this).is(".disabled")&&(t.preventDefault(),C(this).is(".wc-variation-is-unavailable")?d.alert(wc_add_to_cart_variation_params.i18n_unavailable_text):C(this).is(".wc-variation-selection-needed")&&d.alert(wc_add_to_cart_variation_params.i18n_make_a_selection_text))},t.prototype.onResetDisplayedVariation=function(t){var a=t.data.variationForm;a.$product.find(".product_meta").find(".sku").wc_reset_content(),a.$product.find(".product_weight, .woocommerce-product-attributes-item--weight .woocommerce-product-attributes-item__value").wc_reset_content(),a.$product.find(".product_dimensions, .woocommerce-product-attributes-item--dimensions .woocommerce-product-attributes-item__value").wc_reset_content(),a.$form.trigger("reset_image"),a.$singleVariation.slideUp(200).trigger("hide_variation")},t.prototype.onResetImage=function(t){t.data.variationForm.$form.wc_variations_image_update(!1)},t.prototype.onFindVariation=function(t,a){var i,e=t.data.variationForm,r=void 0!==a?a:e.getChosenAttributes(),o=r.data;r.count&&r.count===r.chosenCount?e.useAjax?(e.xhr&&e.xhr.abort(),e.$form.block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),o.product_id=parseInt(e.$form.data("product_id"),10),o.custom_data=e.$form.data("custom_data"),e.xhr=C.ajax({url:wc_add_to_cart_variation_params.wc_ajax_url.toString().replace("%%endpoint%%","get_variation"),type:"POST",data:o,success:function(t){t?e.$form.trigger("found_variation",[t]):(e.$form.trigger("reset_data"),r.chosenCount=0,e.loading||(e.$form.find(".single_variation").after('<p class="wc-no-matching-variations woocommerce-info">'+wc_add_to_cart_variation_params.i18n_no_matching_variations_text+"</p>"),e.$form.find(".wc-no-matching-variations").slideDown(200)))},complete:function(){e.$form.unblock()}})):(e.$form.trigger("update_variation_values"),(i=e.findMatchingVariations(e.variationData,o).shift())?e.$form.trigger("found_variation",[i]):(e.$form.trigger("reset_data"),r.chosenCount=0,e.loading||(e.$form.find(".single_variation").after('<p class="wc-no-matching-variations woocommerce-info">'+wc_add_to_cart_variation_params.i18n_no_matching_variations_text+"</p>"),e.$form.find(".wc-no-matching-variations").slideDown(200)))):(e.$form.trigger("update_variation_values"),e.$form.trigger("reset_data")),e.toggleResetLink(0<r.chosenCount)},t.prototype.onFoundVariation=function(t,a){var i,e,r=t.data.variationForm,o=r.$product.find(".product_meta").find(".sku"),n=r.$product.find(".product_weight, .woocommerce-product-attributes-item--weight .woocommerce-product-attributes-item__value"),s=r.$product.find(".product_dimensions, .woocommerce-product-attributes-item--dimensions .woocommerce-product-attributes-item__value"),c=r.$singleVariationWrap.find(".quantity"),_=!0,d=!1,m="";a.sku?o.wc_set_content(a.sku):o.wc_reset_content(),a.weight?n.wc_set_content(a.weight_html):n.wc_reset_content(),a.dimensions?s.wc_set_content(C.parseHTML(a.dimensions_html)[0].data):s.wc_reset_content(),r.$form.wc_variations_image_update(a),a.variation_is_visible?(d=l("variation-template"),a.variation_id):d=l("unavailable-variation-template"),m=(m=(m=d({variation:a})).replace("/*<![CDATA[*/","")).replace("/*]]>*/",""),r.$singleVariation.html(m),r.$form.find('input[name="variation_id"], input.variation_id').val(a.variation_id).change(),"yes"===a.is_sold_individually?(c.find("input.qty").val("1").attr("min","1").attr("max","").change(),c.hide()):(i=c.find("input.qty"),e=parseFloat(i.val()),e=isNaN(e)||(e=e>parseFloat(a.max_qty)?a.max_qty:e)<parseFloat(a.min_qty)?a.min_qty:e,i.attr("min",a.min_qty).attr("max",a.max_qty).val(e).change(),c.show()),a.is_purchasable&&a.is_in_stock&&a.variation_is_visible||(_=!1),C.trim(r.$singleVariation.text())?r.$singleVariation.slideDown(200).trigger("show_variation",[a,_]):r.$singleVariation.show().trigger("show_variation",[a,_])},t.prototype.onChange=function(t){var a=t.data.variationForm;a.$form.find('input[name="variation_id"], input.variation_id').val("").change(),a.$form.find(".wc-no-matching-variations").remove(),a.useAjax||a.$form.trigger("woocommerce_variation_select_change"),a.$form.trigger("check_variations"),a.$form.trigger("woocommerce_variation_has_changed")},t.prototype.addSlashes=function(t){return t=(t=t.replace(/'/g,"\\'")).replace(/"/g,'\\"')},t.prototype.onUpdateAttributes=function(t){var y=t.data.variationForm,F=y.getChosenAttributes().data;y.useAjax||(y.$attributeFields.each(function(t,a){var i,e,r=C(a),o=r.data("attribute_name")||r.attr("name"),n=C(a).data("show_option_none"),s=":gt(0)",c=C("<select/>"),_=r.val()||"",d=!0;r.data("attribute_html")||((e=r.clone()).find("option").removeAttr("disabled attached").removeAttr("selected"),r.data("attribute_options",e.find("option"+s).get()),r.data("attribute_html",e.html())),c.html(r.data("attribute_html"));var m=C.extend(!0,{},F);m[o]="";var l=y.findMatchingVariations(y.variationData,m);for(var v in l)if("undefined"!=typeof l[v]){var g=l[v].attributes;for(var u in g)if(g.hasOwnProperty(u)){var f=g[u],h="";if(u===o)if(l[v].variation_is_active&&(h="enabled"),f){f=C("<div/>").html(f).text();var p=c.find("option");if(p.length)for(var w=0,b=p.length;w<b;w++){var $=C(p[w]);if(f===$.val()){$.addClass("attached "+h);break}}}else c.find("option:gt(0)").addClass("attached "+h)}}i=c.find("option.attached").length,_&&(d=!1,0!==i&&c.find("option.attached.enabled").each(function(){var t=C(this).val();if(_===t)return!(d=!0)})),0<i&&_&&d&&"no"===n&&(c.find("option:first").remove(),s=""),c.find("option"+s+":not(.attached)").remove(),r.html(c.html()),r.find("option"+s+":not(.enabled)").prop("disabled",!0),_?d?r.val(_):r.val("").change():r.val("")}),y.$form.trigger("woocommerce_update_variation_values"))},t.prototype.getChosenAttributes=function(){var i={},e=0,r=0;return this.$attributeFields.each(function(){var t=C(this).data("attribute_name")||C(this).attr("name"),a=C(this).val()||"";0<a.length&&r++,e++,i[t]=a}),{count:e,chosenCount:r,data:i}},t.prototype.findMatchingVariations=function(t,a){for(var i=[],e=0;e<t.length;e++){var r=t[e];this.isMatch(r.attributes,a)&&i.push(r)}return i},t.prototype.isMatch=function(t,a){var i,e,r=!0;for(var o in t){t.hasOwnProperty(o)&&(i=t[o],e=a[o],i!==n&&e!==n&&0!==i.length&&0!==e.length&&i!==e&&(r=!1))}return r},t.prototype.toggleResetLink=function(t){t?"hidden"===this.$resetVariations.css("visibility")&&this.$resetVariations.css("visibility","visible").hide().fadeIn():this.$resetVariations.css("visibility","hidden")},C.fn.wc_variation_form=function(){return new t(this),this},C.fn.wc_set_content=function(t){n===this.attr("data-o_content")&&this.attr("data-o_content",this.text()),this.text(t)},C.fn.wc_reset_content=function(){n!==this.attr("data-o_content")&&this.text(this.attr("data-o_content"))},C.fn.wc_set_variation_attr=function(t,a){n===this.attr("data-o_"+t)&&this.attr("data-o_"+t,this.attr(t)?this.attr(t):""),!1===a?this.removeAttr(t):this.attr(t,a)},C.fn.wc_reset_variation_attr=function(t){n!==this.attr("data-o_"+t)&&this.attr(t,this.attr("data-o_"+t))},C.fn.wc_maybe_trigger_slide_position_reset=function(t){var a=C(this),i=a.closest(".product").find(".images"),e=!1,r=t&&t.image_id?t.image_id:"";a.attr("current-image")!==r&&(e=!0),a.attr("current-image",r),e&&i.trigger("woocommerce_gallery_reset_slide_position")},C.fn.wc_variations_image_update=function(t){var a=this,i=a.closest(".product"),e=i.find(".images"),r=i.find(".flex-control-nav"),o=r.find("li:eq(0) img"),n=e.find(".woocommerce-product-gallery__image, .woocommerce-product-gallery__image--placeholder").eq(0),s=n.find(".wp-post-image"),c=n.find("a").eq(0);if(t&&t.image&&t.image.src&&1<t.image.src.length){0<r.find('li img[data-o_src="'+t.image.gallery_thumbnail_src+'"]').length&&a.wc_variations_image_reset();var _=r.find('li img[src="'+t.image.gallery_thumbnail_src+'"]');if(0<_.length)return _.trigger("click"),a.attr("current-image",t.image_id),void d.setTimeout(function(){C(d).trigger("resize"),e.trigger("woocommerce_gallery_init_zoom")},20);s.wc_set_variation_attr("src",t.image.src),s.wc_set_variation_attr("height",t.image.src_h),s.wc_set_variation_attr("width",t.image.src_w),s.wc_set_variation_attr("srcset",t.image.srcset),s.wc_set_variation_attr("sizes",t.image.sizes),s.wc_set_variation_attr("title",t.image.title),s.wc_set_variation_attr("data-caption",t.image.caption),s.wc_set_variation_attr("alt",t.image.alt),s.wc_set_variation_attr("data-src",t.image.full_src),s.wc_set_variation_attr("data-large_image",t.image.full_src),s.wc_set_variation_attr("data-large_image_width",t.image.full_src_w),s.wc_set_variation_attr("data-large_image_height",t.image.full_src_h),n.wc_set_variation_attr("data-thumb",t.image.src),o.wc_set_variation_attr("src",t.image.gallery_thumbnail_src),c.wc_set_variation_attr("href",t.image.full_src)}else a.wc_variations_image_reset();d.setTimeout(function(){C(d).trigger("resize"),a.wc_maybe_trigger_slide_position_reset(t),e.trigger("woocommerce_gallery_init_zoom")},20)},C.fn.wc_variations_image_reset=function(){var t=this.closest(".product"),a=t.find(".images"),i=t.find(".flex-control-nav").find("li:eq(0) img"),e=a.find(".woocommerce-product-gallery__image, .woocommerce-product-gallery__image--placeholder").eq(0),r=e.find(".wp-post-image"),o=e.find("a").eq(0);r.wc_reset_variation_attr("src"),r.wc_reset_variation_attr("width"),r.wc_reset_variation_attr("height"),r.wc_reset_variation_attr("srcset"),r.wc_reset_variation_attr("sizes"),r.wc_reset_variation_attr("title"),r.wc_reset_variation_attr("data-caption"),r.wc_reset_variation_attr("alt"),r.wc_reset_variation_attr("data-src"),r.wc_reset_variation_attr("data-large_image"),r.wc_reset_variation_attr("data-large_image_width"),r.wc_reset_variation_attr("data-large_image_height"),e.wc_reset_variation_attr("data-thumb"),i.wc_reset_variation_attr("src"),o.wc_reset_variation_attr("href")},C(function(){"undefined"!=typeof wc_add_to_cart_variation_params&&C(".variations_form").each(function(){C(this).wc_variation_form()})});var l=function(t){var a=i.getElementById("tmpl-"+t).textContent;return/<#\s?data\./.test(a)||/{{{?\s?data\.(?!variation\.).+}}}?/.test(a)||/{{{?\s?data\.variation\.[\w-]*[^\s}]/.test(a)?wp.template(t):function(t){var o=t.variation||{};return a.replace(/({{{?)\s?data\.variation\.([\w-]*)\s?(}}}?)/g,function(t,a,i,e){if(a.length!==e.length)return"";var r=o[i]||"";return 2===a.length?d.escape(r):r})}}}(jQuery,window,document);/*! tooltipster v4.2.7 */!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){function b(a){this.$container,this.constraints=null,this.__$tooltip,this.__init(a)}function c(b,c){var d=!0;return a.each(b,function(a,e){return void 0===c[a]||b[a]!==c[a]?(d=!1,!1):void 0}),d}function d(b){var c=b.attr("id"),d=c?h.window.document.getElementById(c):null;return d?d===b[0]:a.contains(h.window.document.body,b[0])}function e(){if(!g)return!1;var a=g.document.body||g.document.documentElement,b=a.style,c="transition",d=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof b[c])return!0;c=c.charAt(0).toUpperCase()+c.substr(1);for(var e=0;e<d.length;e++)if("string"==typeof b[d[e]+c])return!0;return!1}var f={animation:"fade",animationDuration:350,content:null,contentAsHTML:!1,contentCloning:!1,debug:!0,delay:300,delayTouch:[300,500],functionInit:null,functionBefore:null,functionReady:null,functionAfter:null,functionFormat:null,IEmin:6,interactive:!1,multiple:!1,parent:null,plugins:["sideTip"],repositionOnScroll:!1,restoration:"none",selfDestruction:!0,theme:[],timer:0,trackerInterval:500,trackOrigin:!1,trackTooltip:!1,trigger:"hover",triggerClose:{click:!1,mouseleave:!1,originClick:!1,scroll:!1,tap:!1,touchleave:!1},triggerOpen:{click:!1,mouseenter:!1,tap:!1,touchstart:!1},updateAnimation:"rotate",zIndex:9999999},g="undefined"!=typeof window?window:null,h={hasTouchCapability:!(!g||!("ontouchstart"in g||g.DocumentTouch&&g.document instanceof g.DocumentTouch||g.navigator.maxTouchPoints)),hasTransitions:e(),IE:!1,semVer:"4.2.7",window:g},i=function(){this.__$emitterPrivate=a({}),this.__$emitterPublic=a({}),this.__instancesLatestArr=[],this.__plugins={},this._env=h};i.prototype={__bridge:function(b,c,d){if(!c[d]){var e=function(){};e.prototype=b;var g=new e;g.__init&&g.__init(c),a.each(b,function(a,b){0!=a.indexOf("__")&&(c[a]?f.debug&&console.log("The "+a+" method of the "+d+" plugin conflicts with another plugin or native methods"):(c[a]=function(){return g[a].apply(g,Array.prototype.slice.apply(arguments))},c[a].bridged=g))}),c[d]=g}return this},__setWindow:function(a){return h.window=a,this},_getRuler:function(a){return new b(a)},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_plugin:function(b){var c=this;if("string"==typeof b){var d=b,e=null;return d.indexOf(".")>0?e=c.__plugins[d]:a.each(c.__plugins,function(a,b){return b.name.substring(b.name.length-d.length-1)=="."+d?(e=b,!1):void 0}),e}if(b.name.indexOf(".")<0)throw new Error("Plugins must be namespaced");return c.__plugins[b.name]=b,b.core&&c.__bridge(b.core,c,b.name),this},_trigger:function(){var a=Array.prototype.slice.apply(arguments);return"string"==typeof a[0]&&(a[0]={type:a[0]}),this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,a),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,a),this},instances:function(b){var c=[],d=b||".tooltipstered";return a(d).each(function(){var b=a(this),d=b.data("tooltipster-ns");d&&a.each(d,function(a,d){c.push(b.data(d))})}),c},instancesLatest:function(){return this.__instancesLatestArr},off:function(){return this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},origins:function(b){var c=b?b+" ":"";return a(c+".tooltipstered").toArray()},setDefaults:function(b){return a.extend(f,b),this},triggerHandler:function(){return this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},a.tooltipster=new i,a.Tooltipster=function(b,c){this.__callbacks={close:[],open:[]},this.__closingTime,this.__Content,this.__contentBcr,this.__destroyed=!1,this.__$emitterPrivate=a({}),this.__$emitterPublic=a({}),this.__enabled=!0,this.__garbageCollector,this.__Geometry,this.__lastPosition,this.__namespace="tooltipster-"+Math.round(1e6*Math.random()),this.__options,this.__$originParents,this.__pointerIsOverOrigin=!1,this.__previousThemes=[],this.__state="closed",this.__timeouts={close:[],open:null},this.__touchEvents=[],this.__tracker=null,this._$origin,this._$tooltip,this.__init(b,c)},a.Tooltipster.prototype={__init:function(b,c){var d=this;if(d._$origin=a(b),d.__options=a.extend(!0,{},f,c),d.__optionsFormat(),!h.IE||h.IE>=d.__options.IEmin){var e=null;if(void 0===d._$origin.data("tooltipster-initialTitle")&&(e=d._$origin.attr("title"),void 0===e&&(e=null),d._$origin.data("tooltipster-initialTitle",e)),null!==d.__options.content)d.__contentSet(d.__options.content);else{var g,i=d._$origin.attr("data-tooltip-content");i&&(g=a(i)),g&&g[0]?d.__contentSet(g.first()):d.__contentSet(e)}d._$origin.removeAttr("title").addClass("tooltipstered"),d.__prepareOrigin(),d.__prepareGC(),a.each(d.__options.plugins,function(a,b){d._plug(b)}),h.hasTouchCapability&&a(h.window.document.body).on("touchmove."+d.__namespace+"-triggerOpen",function(a){d._touchRecordEvent(a)}),d._on("created",function(){d.__prepareTooltip()})._on("repositioned",function(a){d.__lastPosition=a.position})}else d.__options.disabled=!0},__contentInsert:function(){var a=this,b=a._$tooltip.find(".tooltipster-content"),c=a.__Content,d=function(a){c=a};return a._trigger({type:"format",content:a.__Content,format:d}),a.__options.functionFormat&&(c=a.__options.functionFormat.call(a,a,{origin:a._$origin[0]},a.__Content)),"string"!=typeof c||a.__options.contentAsHTML?b.empty().append(c):b.text(c),a},__contentSet:function(b){return b instanceof a&&this.__options.contentCloning&&(b=b.clone(!0)),this.__Content=b,this._trigger({type:"updated",content:b}),this},__destroyError:function(){throw new Error("This tooltip has been destroyed and cannot execute your method call.")},__geometry:function(){var b=this,c=b._$origin,d=b._$origin.is("area");if(d){var e=b._$origin.parent().attr("name");c=a('img[usemap="#'+e+'"]')}var f=c[0].getBoundingClientRect(),g=a(h.window.document),i=a(h.window),j=c,k={available:{document:null,window:null},document:{size:{height:g.height(),width:g.width()}},window:{scroll:{left:h.window.scrollX||h.window.document.documentElement.scrollLeft,top:h.window.scrollY||h.window.document.documentElement.scrollTop},size:{height:i.height(),width:i.width()}},origin:{fixedLineage:!1,offset:{},size:{height:f.bottom-f.top,width:f.right-f.left},usemapImage:d?c[0]:null,windowOffset:{bottom:f.bottom,left:f.left,right:f.right,top:f.top}}};if(d){var l=b._$origin.attr("shape"),m=b._$origin.attr("coords");if(m&&(m=m.split(","),a.map(m,function(a,b){m[b]=parseInt(a)})),"default"!=l)switch(l){case"circle":var n=m[0],o=m[1],p=m[2],q=o-p,r=n-p;k.origin.size.height=2*p,k.origin.size.width=k.origin.size.height,k.origin.windowOffset.left+=r,k.origin.windowOffset.top+=q;break;case"rect":var s=m[0],t=m[1],u=m[2],v=m[3];k.origin.size.height=v-t,k.origin.size.width=u-s,k.origin.windowOffset.left+=s,k.origin.windowOffset.top+=t;break;case"poly":for(var w=0,x=0,y=0,z=0,A="even",B=0;B<m.length;B++){var C=m[B];"even"==A?(C>y&&(y=C,0===B&&(w=y)),w>C&&(w=C),A="odd"):(C>z&&(z=C,1==B&&(x=z)),x>C&&(x=C),A="even")}k.origin.size.height=z-x,k.origin.size.width=y-w,k.origin.windowOffset.left+=w,k.origin.windowOffset.top+=x}}var D=function(a){k.origin.size.height=a.height,k.origin.windowOffset.left=a.left,k.origin.windowOffset.top=a.top,k.origin.size.width=a.width};for(b._trigger({type:"geometry",edit:D,geometry:{height:k.origin.size.height,left:k.origin.windowOffset.left,top:k.origin.windowOffset.top,width:k.origin.size.width}}),k.origin.windowOffset.right=k.origin.windowOffset.left+k.origin.size.width,k.origin.windowOffset.bottom=k.origin.windowOffset.top+k.origin.size.height,k.origin.offset.left=k.origin.windowOffset.left+k.window.scroll.left,k.origin.offset.top=k.origin.windowOffset.top+k.window.scroll.top,k.origin.offset.bottom=k.origin.offset.top+k.origin.size.height,k.origin.offset.right=k.origin.offset.left+k.origin.size.width,k.available.document={bottom:{height:k.document.size.height-k.origin.offset.bottom,width:k.document.size.width},left:{height:k.document.size.height,width:k.origin.offset.left},right:{height:k.document.size.height,width:k.document.size.width-k.origin.offset.right},top:{height:k.origin.offset.top,width:k.document.size.width}},k.available.window={bottom:{height:Math.max(k.window.size.height-Math.max(k.origin.windowOffset.bottom,0),0),width:k.window.size.width},left:{height:k.window.size.height,width:Math.max(k.origin.windowOffset.left,0)},right:{height:k.window.size.height,width:Math.max(k.window.size.width-Math.max(k.origin.windowOffset.right,0),0)},top:{height:Math.max(k.origin.windowOffset.top,0),width:k.window.size.width}};"html"!=j[0].tagName.toLowerCase();){if("fixed"==j.css("position")){k.origin.fixedLineage=!0;break}j=j.parent()}return k},__optionsFormat:function(){return"number"==typeof this.__options.animationDuration&&(this.__options.animationDuration=[this.__options.animationDuration,this.__options.animationDuration]),"number"==typeof this.__options.delay&&(this.__options.delay=[this.__options.delay,this.__options.delay]),"number"==typeof this.__options.delayTouch&&(this.__options.delayTouch=[this.__options.delayTouch,this.__options.delayTouch]),"string"==typeof this.__options.theme&&(this.__options.theme=[this.__options.theme]),null===this.__options.parent?this.__options.parent=a(h.window.document.body):"string"==typeof this.__options.parent&&(this.__options.parent=a(this.__options.parent)),"hover"==this.__options.trigger?(this.__options.triggerOpen={mouseenter:!0,touchstart:!0},this.__options.triggerClose={mouseleave:!0,originClick:!0,touchleave:!0}):"click"==this.__options.trigger&&(this.__options.triggerOpen={click:!0,tap:!0},this.__options.triggerClose={click:!0,tap:!0}),this._trigger("options"),this},__prepareGC:function(){var b=this;return b.__options.selfDestruction?b.__garbageCollector=setInterval(function(){var c=(new Date).getTime();b.__touchEvents=a.grep(b.__touchEvents,function(a,b){return c-a.time>6e4}),d(b._$origin)||b.close(function(){b.destroy()})},2e4):clearInterval(b.__garbageCollector),b},__prepareOrigin:function(){var a=this;if(a._$origin.off("."+a.__namespace+"-triggerOpen"),h.hasTouchCapability&&a._$origin.on("touchstart."+a.__namespace+"-triggerOpen touchend."+a.__namespace+"-triggerOpen touchcancel."+a.__namespace+"-triggerOpen",function(b){a._touchRecordEvent(b)}),a.__options.triggerOpen.click||a.__options.triggerOpen.tap&&h.hasTouchCapability){var b="";a.__options.triggerOpen.click&&(b+="click."+a.__namespace+"-triggerOpen "),a.__options.triggerOpen.tap&&h.hasTouchCapability&&(b+="touchend."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){a._touchIsMeaningfulEvent(b)&&a._open(b)})}if(a.__options.triggerOpen.mouseenter||a.__options.triggerOpen.touchstart&&h.hasTouchCapability){var b="";a.__options.triggerOpen.mouseenter&&(b+="mouseenter."+a.__namespace+"-triggerOpen "),a.__options.triggerOpen.touchstart&&h.hasTouchCapability&&(b+="touchstart."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){!a._touchIsTouchEvent(b)&&a._touchIsEmulatedEvent(b)||(a.__pointerIsOverOrigin=!0,a._openShortly(b))})}if(a.__options.triggerClose.mouseleave||a.__options.triggerClose.touchleave&&h.hasTouchCapability){var b="";a.__options.triggerClose.mouseleave&&(b+="mouseleave."+a.__namespace+"-triggerOpen "),a.__options.triggerClose.touchleave&&h.hasTouchCapability&&(b+="touchend."+a.__namespace+"-triggerOpen touchcancel."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){a._touchIsMeaningfulEvent(b)&&(a.__pointerIsOverOrigin=!1)})}return a},__prepareTooltip:function(){var b=this,c=b.__options.interactive?"auto":"";return b._$tooltip.attr("id",b.__namespace).css({"pointer-events":c,zIndex:b.__options.zIndex}),a.each(b.__previousThemes,function(a,c){b._$tooltip.removeClass(c)}),a.each(b.__options.theme,function(a,c){b._$tooltip.addClass(c)}),b.__previousThemes=a.merge([],b.__options.theme),b},__scrollHandler:function(b){var c=this;if(c.__options.triggerClose.scroll)c._close(b);else if(d(c._$origin)&&d(c._$tooltip)){var e=null;if(b.target===h.window.document)c.__Geometry.origin.fixedLineage||c.__options.repositionOnScroll&&c.reposition(b);else{e=c.__geometry();var f=!1;if("fixed"!=c._$origin.css("position")&&c.__$originParents.each(function(b,c){var d=a(c),g=d.css("overflow-x"),h=d.css("overflow-y");if("visible"!=g||"visible"!=h){var i=c.getBoundingClientRect();if("visible"!=g&&(e.origin.windowOffset.left<i.left||e.origin.windowOffset.right>i.right))return f=!0,!1;if("visible"!=h&&(e.origin.windowOffset.top<i.top||e.origin.windowOffset.bottom>i.bottom))return f=!0,!1}return"fixed"==d.css("position")?!1:void 0}),f)c._$tooltip.css("visibility","hidden");else if(c._$tooltip.css("visibility","visible"),c.__options.repositionOnScroll)c.reposition(b);else{var g=e.origin.offset.left-c.__Geometry.origin.offset.left,i=e.origin.offset.top-c.__Geometry.origin.offset.top;c._$tooltip.css({left:c.__lastPosition.coord.left+g,top:c.__lastPosition.coord.top+i})}}c._trigger({type:"scroll",event:b,geo:e})}return c},__stateSet:function(a){return this.__state=a,this._trigger({type:"state",state:a}),this},__timeoutsClear:function(){return clearTimeout(this.__timeouts.open),this.__timeouts.open=null,a.each(this.__timeouts.close,function(a,b){clearTimeout(b)}),this.__timeouts.close=[],this},__trackerStart:function(){var a=this,b=a._$tooltip.find(".tooltipster-content");return a.__options.trackTooltip&&(a.__contentBcr=b[0].getBoundingClientRect()),a.__tracker=setInterval(function(){if(d(a._$origin)&&d(a._$tooltip)){if(a.__options.trackOrigin){var e=a.__geometry(),f=!1;c(e.origin.size,a.__Geometry.origin.size)&&(a.__Geometry.origin.fixedLineage?c(e.origin.windowOffset,a.__Geometry.origin.windowOffset)&&(f=!0):c(e.origin.offset,a.__Geometry.origin.offset)&&(f=!0)),f||(a.__options.triggerClose.mouseleave?a._close():a.reposition())}if(a.__options.trackTooltip){var g=b[0].getBoundingClientRect();g.height===a.__contentBcr.height&&g.width===a.__contentBcr.width||(a.reposition(),a.__contentBcr=g)}}else a._close()},a.__options.trackerInterval),a},_close:function(b,c,d){var e=this,f=!0;if(e._trigger({type:"close",event:b,stop:function(){f=!1}}),f||d){c&&e.__callbacks.close.push(c),e.__callbacks.open=[],e.__timeoutsClear();var g=function(){a.each(e.__callbacks.close,function(a,c){c.call(e,e,{event:b,origin:e._$origin[0]})}),e.__callbacks.close=[]};if("closed"!=e.__state){var i=!0,j=new Date,k=j.getTime(),l=k+e.__options.animationDuration[1];if("disappearing"==e.__state&&l>e.__closingTime&&e.__options.animationDuration[1]>0&&(i=!1),i){e.__closingTime=l,"disappearing"!=e.__state&&e.__stateSet("disappearing");var m=function(){clearInterval(e.__tracker),e._trigger({type:"closing",event:b}),e._$tooltip.off("."+e.__namespace+"-triggerClose").removeClass("tooltipster-dying"),a(h.window).off("."+e.__namespace+"-triggerClose"),e.__$originParents.each(function(b,c){a(c).off("scroll."+e.__namespace+"-triggerClose")}),e.__$originParents=null,a(h.window.document.body).off("."+e.__namespace+"-triggerClose"),e._$origin.off("."+e.__namespace+"-triggerClose"),e._off("dismissable"),e.__stateSet("closed"),e._trigger({type:"after",event:b}),e.__options.functionAfter&&e.__options.functionAfter.call(e,e,{event:b,origin:e._$origin[0]}),g()};h.hasTransitions?(e._$tooltip.css({"-moz-animation-duration":e.__options.animationDuration[1]+"ms","-ms-animation-duration":e.__options.animationDuration[1]+"ms","-o-animation-duration":e.__options.animationDuration[1]+"ms","-webkit-animation-duration":e.__options.animationDuration[1]+"ms","animation-duration":e.__options.animationDuration[1]+"ms","transition-duration":e.__options.animationDuration[1]+"ms"}),e._$tooltip.clearQueue().removeClass("tooltipster-show").addClass("tooltipster-dying"),e.__options.animationDuration[1]>0&&e._$tooltip.delay(e.__options.animationDuration[1]),e._$tooltip.queue(m)):e._$tooltip.stop().fadeOut(e.__options.animationDuration[1],m)}}else g()}return e},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_open:function(b,c){var e=this;if(!e.__destroying&&d(e._$origin)&&e.__enabled){var f=!0;if("closed"==e.__state&&(e._trigger({type:"before",event:b,stop:function(){f=!1}}),f&&e.__options.functionBefore&&(f=e.__options.functionBefore.call(e,e,{event:b,origin:e._$origin[0]}))),f!==!1&&null!==e.__Content){c&&e.__callbacks.open.push(c),e.__callbacks.close=[],e.__timeoutsClear();var g,i=function(){"stable"!=e.__state&&e.__stateSet("stable"),a.each(e.__callbacks.open,function(a,b){b.call(e,e,{origin:e._$origin[0],tooltip:e._$tooltip[0]})}),e.__callbacks.open=[]};if("closed"!==e.__state)g=0,"disappearing"===e.__state?(e.__stateSet("appearing"),h.hasTransitions?(e._$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-show"),e.__options.animationDuration[0]>0&&e._$tooltip.delay(e.__options.animationDuration[0]),e._$tooltip.queue(i)):e._$tooltip.stop().fadeIn(i)):"stable"==e.__state&&i();else{if(e.__stateSet("appearing"),g=e.__options.animationDuration[0],e.__contentInsert(),e.reposition(b,!0),h.hasTransitions?(e._$tooltip.addClass("tooltipster-"+e.__options.animation).addClass("tooltipster-initial").css({"-moz-animation-duration":e.__options.animationDuration[0]+"ms","-ms-animation-duration":e.__options.animationDuration[0]+"ms","-o-animation-duration":e.__options.animationDuration[0]+"ms","-webkit-animation-duration":e.__options.animationDuration[0]+"ms","animation-duration":e.__options.animationDuration[0]+"ms","transition-duration":e.__options.animationDuration[0]+"ms"}),setTimeout(function(){"closed"!=e.__state&&(e._$tooltip.addClass("tooltipster-show").removeClass("tooltipster-initial"),e.__options.animationDuration[0]>0&&e._$tooltip.delay(e.__options.animationDuration[0]),e._$tooltip.queue(i))},0)):e._$tooltip.css("display","none").fadeIn(e.__options.animationDuration[0],i),e.__trackerStart(),a(h.window).on("resize."+e.__namespace+"-triggerClose",function(b){var c=a(document.activeElement);(c.is("input")||c.is("textarea"))&&a.contains(e._$tooltip[0],c[0])||e.reposition(b)}).on("scroll."+e.__namespace+"-triggerClose",function(a){e.__scrollHandler(a)}),e.__$originParents=e._$origin.parents(),e.__$originParents.each(function(b,c){a(c).on("scroll."+e.__namespace+"-triggerClose",function(a){e.__scrollHandler(a)})}),e.__options.triggerClose.mouseleave||e.__options.triggerClose.touchleave&&h.hasTouchCapability){e._on("dismissable",function(a){a.dismissable?a.delay?(m=setTimeout(function(){e._close(a.event)},a.delay),e.__timeouts.close.push(m)):e._close(a):clearTimeout(m)});var j=e._$origin,k="",l="",m=null;e.__options.interactive&&(j=j.add(e._$tooltip)),e.__options.triggerClose.mouseleave&&(k+="mouseenter."+e.__namespace+"-triggerClose ",l+="mouseleave."+e.__namespace+"-triggerClose "),e.__options.triggerClose.touchleave&&h.hasTouchCapability&&(k+="touchstart."+e.__namespace+"-triggerClose",l+="touchend."+e.__namespace+"-triggerClose touchcancel."+e.__namespace+"-triggerClose"),j.on(l,function(a){if(e._touchIsTouchEvent(a)||!e._touchIsEmulatedEvent(a)){var b="mouseleave"==a.type?e.__options.delay:e.__options.delayTouch;e._trigger({delay:b[1],dismissable:!0,event:a,type:"dismissable"})}}).on(k,function(a){!e._touchIsTouchEvent(a)&&e._touchIsEmulatedEvent(a)||e._trigger({dismissable:!1,event:a,type:"dismissable"})})}e.__options.triggerClose.originClick&&e._$origin.on("click."+e.__namespace+"-triggerClose",function(a){e._touchIsTouchEvent(a)||e._touchIsEmulatedEvent(a)||e._close(a)}),(e.__options.triggerClose.click||e.__options.triggerClose.tap&&h.hasTouchCapability)&&setTimeout(function(){if("closed"!=e.__state){var b="",c=a(h.window.document.body);e.__options.triggerClose.click&&(b+="click."+e.__namespace+"-triggerClose "),e.__options.triggerClose.tap&&h.hasTouchCapability&&(b+="touchend."+e.__namespace+"-triggerClose"),c.on(b,function(b){e._touchIsMeaningfulEvent(b)&&(e._touchRecordEvent(b),e.__options.interactive&&a.contains(e._$tooltip[0],b.target)||e._close(b))}),e.__options.triggerClose.tap&&h.hasTouchCapability&&c.on("touchstart."+e.__namespace+"-triggerClose",function(a){e._touchRecordEvent(a)})}},0),e._trigger("ready"),e.__options.functionReady&&e.__options.functionReady.call(e,e,{origin:e._$origin[0],tooltip:e._$tooltip[0]})}if(e.__options.timer>0){var m=setTimeout(function(){e._close()},e.__options.timer+g);e.__timeouts.close.push(m)}}}return e},_openShortly:function(a){var b=this,c=!0;if("stable"!=b.__state&&"appearing"!=b.__state&&!b.__timeouts.open&&(b._trigger({type:"start",event:a,stop:function(){c=!1}}),c)){var d=0==a.type.indexOf("touch")?b.__options.delayTouch:b.__options.delay;d[0]?b.__timeouts.open=setTimeout(function(){b.__timeouts.open=null,b.__pointerIsOverOrigin&&b._touchIsMeaningfulEvent(a)?(b._trigger("startend"),b._open(a)):b._trigger("startcancel")},d[0]):(b._trigger("startend"),b._open(a))}return b},_optionsExtract:function(b,c){var d=this,e=a.extend(!0,{},c),f=d.__options[b];return f||(f={},a.each(c,function(a,b){var c=d.__options[a];void 0!==c&&(f[a]=c)})),a.each(e,function(b,c){void 0!==f[b]&&("object"!=typeof c||c instanceof Array||null==c||"object"!=typeof f[b]||f[b]instanceof Array||null==f[b]?e[b]=f[b]:a.extend(e[b],f[b]))}),e},_plug:function(b){var c=a.tooltipster._plugin(b);if(!c)throw new Error('The "'+b+'" plugin is not defined');return c.instance&&a.tooltipster.__bridge(c.instance,this,c.name),this},_touchIsEmulatedEvent:function(a){for(var b=!1,c=(new Date).getTime(),d=this.__touchEvents.length-1;d>=0;d--){var e=this.__touchEvents[d];if(!(c-e.time<500))break;e.target===a.target&&(b=!0)}return b},_touchIsMeaningfulEvent:function(a){return this._touchIsTouchEvent(a)&&!this._touchSwiped(a.target)||!this._touchIsTouchEvent(a)&&!this._touchIsEmulatedEvent(a)},_touchIsTouchEvent:function(a){return 0==a.type.indexOf("touch")},_touchRecordEvent:function(a){return this._touchIsTouchEvent(a)&&(a.time=(new Date).getTime(),this.__touchEvents.push(a)),this},_touchSwiped:function(a){for(var b=!1,c=this.__touchEvents.length-1;c>=0;c--){var d=this.__touchEvents[c];if("touchmove"==d.type){b=!0;break}if("touchstart"==d.type&&a===d.target)break}return b},_trigger:function(){var b=Array.prototype.slice.apply(arguments);return"string"==typeof b[0]&&(b[0]={type:b[0]}),b[0].instance=this,b[0].origin=this._$origin?this._$origin[0]:null,b[0].tooltip=this._$tooltip?this._$tooltip[0]:null,this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,b),a.tooltipster._trigger.apply(a.tooltipster,b),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,b),this},_unplug:function(b){var c=this;if(c[b]){var d=a.tooltipster._plugin(b);d.instance&&a.each(d.instance,function(a,d){c[a]&&c[a].bridged===c[b]&&delete c[a]}),c[b].__destroy&&c[b].__destroy(),delete c[b]}return c},close:function(a){return this.__destroyed?this.__destroyError():this._close(null,a),this},content:function(a){var b=this;if(void 0===a)return b.__Content;if(b.__destroyed)b.__destroyError();else if(b.__contentSet(a),null!==b.__Content){if("closed"!==b.__state&&(b.__contentInsert(),b.reposition(),b.__options.updateAnimation))if(h.hasTransitions){var c=b.__options.updateAnimation;b._$tooltip.addClass("tooltipster-update-"+c),setTimeout(function(){"closed"!=b.__state&&b._$tooltip.removeClass("tooltipster-update-"+c)},1e3)}else b._$tooltip.fadeTo(200,.5,function(){"closed"!=b.__state&&b._$tooltip.fadeTo(200,1)})}else b._close();return b},destroy:function(){var b=this;if(b.__destroyed)b.__destroyError();else{"closed"!=b.__state?b.option("animationDuration",0)._close(null,null,!0):b.__timeoutsClear(),b._trigger("destroy"),b.__destroyed=!0,b._$origin.removeData(b.__namespace).off("."+b.__namespace+"-triggerOpen"),a(h.window.document.body).off("."+b.__namespace+"-triggerOpen");var c=b._$origin.data("tooltipster-ns");if(c)if(1===c.length){var d=null;"previous"==b.__options.restoration?d=b._$origin.data("tooltipster-initialTitle"):"current"==b.__options.restoration&&(d="string"==typeof b.__Content?b.__Content:a("<div></div>").append(b.__Content).html()),d&&b._$origin.attr("title",d),b._$origin.removeClass("tooltipstered"),b._$origin.removeData("tooltipster-ns").removeData("tooltipster-initialTitle")}else c=a.grep(c,function(a,c){return a!==b.__namespace}),b._$origin.data("tooltipster-ns",c);b._trigger("destroyed"),b._off(),b.off(),b.__Content=null,b.__$emitterPrivate=null,b.__$emitterPublic=null,b.__options.parent=null,b._$origin=null,b._$tooltip=null,a.tooltipster.__instancesLatestArr=a.grep(a.tooltipster.__instancesLatestArr,function(a,c){return b!==a}),clearInterval(b.__garbageCollector)}return b},disable:function(){return this.__destroyed?(this.__destroyError(),this):(this._close(),this.__enabled=!1,this)},elementOrigin:function(){return this.__destroyed?void this.__destroyError():this._$origin[0]},elementTooltip:function(){return this._$tooltip?this._$tooltip[0]:null},enable:function(){return this.__enabled=!0,this},hide:function(a){return this.close(a)},instance:function(){return this},off:function(){return this.__destroyed||this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},open:function(a){return this.__destroyed?this.__destroyError():this._open(null,a),this},option:function(b,c){return void 0===c?this.__options[b]:(this.__destroyed?this.__destroyError():(this.__options[b]=c,this.__optionsFormat(),a.inArray(b,["trigger","triggerClose","triggerOpen"])>=0&&this.__prepareOrigin(),"selfDestruction"===b&&this.__prepareGC()),this)},reposition:function(a,b){var c=this;return c.__destroyed?c.__destroyError():"closed"!=c.__state&&d(c._$origin)&&(b||d(c._$tooltip))&&(b||c._$tooltip.detach(),c.__Geometry=c.__geometry(),c._trigger({type:"reposition",event:a,helper:{geo:c.__Geometry}})),c},show:function(a){return this.open(a)},status:function(){return{destroyed:this.__destroyed,enabled:this.__enabled,open:"closed"!==this.__state,state:this.__state}},triggerHandler:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},a.fn.tooltipster=function(){var b=Array.prototype.slice.apply(arguments),c="You are using a single HTML element as content for several tooltips. You probably want to set the contentCloning option to TRUE.";if(0===this.length)return this;if("string"==typeof b[0]){var d="#*$~&";return this.each(function(){var e=a(this).data("tooltipster-ns"),f=e?a(this).data(e[0]):null;if(!f)throw new Error("You called Tooltipster's \""+b[0]+'" method on an uninitialized element');if("function"!=typeof f[b[0]])throw new Error('Unknown method "'+b[0]+'"');this.length>1&&"content"==b[0]&&(b[1]instanceof a||"object"==typeof b[1]&&null!=b[1]&&b[1].tagName)&&!f.__options.contentCloning&&f.__options.debug&&console.log(c);var g=f[b[0]](b[1],b[2]);return g!==f||"instance"===b[0]?(d=g,!1):void 0}),"#*$~&"!==d?d:this}a.tooltipster.__instancesLatestArr=[];var e=b[0]&&void 0!==b[0].multiple,g=e&&b[0].multiple||!e&&f.multiple,h=b[0]&&void 0!==b[0].content,i=h&&b[0].content||!h&&f.content,j=b[0]&&void 0!==b[0].contentCloning,k=j&&b[0].contentCloning||!j&&f.contentCloning,l=b[0]&&void 0!==b[0].debug,m=l&&b[0].debug||!l&&f.debug;return this.length>1&&(i instanceof a||"object"==typeof i&&null!=i&&i.tagName)&&!k&&m&&console.log(c),this.each(function(){var c=!1,d=a(this),e=d.data("tooltipster-ns"),f=null;e?g?c=!0:m&&false:c=!0,c&&(f=new a.Tooltipster(this,b[0]),e||(e=[]),e.push(f.__namespace),d.data("tooltipster-ns",e),d.data(f.__namespace,f),f.__options.functionInit&&f.__options.functionInit.call(f,f,{origin:this}),f._trigger("init")),a.tooltipster.__instancesLatestArr.push(f)}),this},b.prototype={__init:function(b){this.__$tooltip=b,this.__$tooltip.css({left:0,overflow:"hidden",position:"absolute",top:0}).find(".tooltipster-content").css("overflow","auto"),this.$container=a('<div class="tooltipster-ruler"></div>').append(this.__$tooltip).appendTo(h.window.document.body)},__forceRedraw:function(){var a=this.__$tooltip.parent();this.__$tooltip.detach(),this.__$tooltip.appendTo(a)},constrain:function(a,b){return this.constraints={width:a,height:b},this.__$tooltip.css({display:"block",height:"",overflow:"auto",width:a}),this},destroy:function(){this.__$tooltip.detach().find(".tooltipster-content").css({display:"",overflow:""}),this.$container.remove()},free:function(){return this.constraints=null,this.__$tooltip.css({display:"",height:"",overflow:"visible",width:""}),this},measure:function(){this.__forceRedraw();var a=this.__$tooltip[0].getBoundingClientRect(),b={size:{height:a.height||a.bottom-a.top,width:a.width||a.right-a.left}};if(this.constraints){var c=this.__$tooltip.find(".tooltipster-content"),d=this.__$tooltip.outerHeight(),e=c[0].getBoundingClientRect(),f={height:d<=this.constraints.height,width:a.width<=this.constraints.width&&e.width>=c[0].scrollWidth-1};b.fits=f.height&&f.width}return h.IE&&h.IE<=11&&b.size.width!==h.window.document.documentElement.clientWidth&&(b.size.width=Math.ceil(b.size.width)+1),b}};var j=navigator.userAgent.toLowerCase();-1!=j.indexOf("msie")?h.IE=parseInt(j.split("msie")[1]):-1!==j.toLowerCase().indexOf("trident")&&-1!==j.indexOf(" rv:11")?h.IE=11:-1!=j.toLowerCase().indexOf("edge/")&&(h.IE=parseInt(j.toLowerCase().split("edge/")[1]));var k="tooltipster.sideTip";return a.tooltipster._plugin({name:k,instance:{__defaults:function(){return{arrow:!0,distance:6,functionPosition:null,maxWidth:null,minIntersection:16,minWidth:0,position:null,side:"top",viewportAware:!0}},__init:function(a){var b=this;b.__instance=a,b.__namespace="tooltipster-sideTip-"+Math.round(1e6*Math.random()),b.__previousState="closed",b.__options,b.__optionsFormat(),b.__instance._on("state."+b.__namespace,function(a){"closed"==a.state?b.__close():"appearing"==a.state&&"closed"==b.__previousState&&b.__create(),b.__previousState=a.state}),b.__instance._on("options."+b.__namespace,function(){b.__optionsFormat()}),b.__instance._on("reposition."+b.__namespace,function(a){b.__reposition(a.event,a.helper)})},__close:function(){this.__instance.content()instanceof a&&this.__instance.content().detach(),this.__instance._$tooltip.remove(),this.__instance._$tooltip=null},__create:function(){var b=a('<div class="tooltipster-base tooltipster-sidetip"><div class="tooltipster-box"><div class="tooltipster-content"></div></div><div class="tooltipster-arrow"><div class="tooltipster-arrow-uncropped"><div class="tooltipster-arrow-border"></div><div class="tooltipster-arrow-background"></div></div></div></div>');this.__options.arrow||b.find(".tooltipster-box").css("margin",0).end().find(".tooltipster-arrow").hide(),this.__options.minWidth&&b.css("min-width",this.__options.minWidth+"px"),this.__options.maxWidth&&b.css("max-width",this.__options.maxWidth+"px"),this.__instance._$tooltip=b,this.__instance._trigger("created")},__destroy:function(){this.__instance._off("."+self.__namespace)},__optionsFormat:function(){var b=this;if(b.__options=b.__instance._optionsExtract(k,b.__defaults()),b.__options.position&&(b.__options.side=b.__options.position),"object"!=typeof b.__options.distance&&(b.__options.distance=[b.__options.distance]),b.__options.distance.length<4&&(void 0===b.__options.distance[1]&&(b.__options.distance[1]=b.__options.distance[0]),void 0===b.__options.distance[2]&&(b.__options.distance[2]=b.__options.distance[0]),void 0===b.__options.distance[3]&&(b.__options.distance[3]=b.__options.distance[1]),b.__options.distance={top:b.__options.distance[0],right:b.__options.distance[1],bottom:b.__options.distance[2],left:b.__options.distance[3]}),"string"==typeof b.__options.side){var c={top:"bottom",right:"left",bottom:"top",left:"right"};b.__options.side=[b.__options.side,c[b.__options.side]],"left"==b.__options.side[0]||"right"==b.__options.side[0]?b.__options.side.push("top","bottom"):b.__options.side.push("right","left")}6===a.tooltipster._env.IE&&b.__options.arrow!==!0&&(b.__options.arrow=!1)},__reposition:function(b,c){var d,e=this,f=e.__targetFind(c),g=[];e.__instance._$tooltip.detach();var h=e.__instance._$tooltip.clone(),i=a.tooltipster._getRuler(h),j=!1,k=e.__instance.option("animation");switch(k&&h.removeClass("tooltipster-"+k),a.each(["window","document"],function(d,k){var l=null;if(e.__instance._trigger({container:k,helper:c,satisfied:j,takeTest:function(a){l=a},results:g,type:"positionTest"}),1==l||0!=l&&0==j&&("window"!=k||e.__options.viewportAware))for(var d=0;d<e.__options.side.length;d++){var m={horizontal:0,vertical:0},n=e.__options.side[d];"top"==n||"bottom"==n?m.vertical=e.__options.distance[n]:m.horizontal=e.__options.distance[n],e.__sideChange(h,n),a.each(["natural","constrained"],function(a,d){if(l=null,e.__instance._trigger({container:k,event:b,helper:c,mode:d,results:g,satisfied:j,side:n,takeTest:function(a){l=a},type:"positionTest"}),1==l||0!=l&&0==j){var h={container:k,distance:m,fits:null,mode:d,outerSize:null,side:n,size:null,target:f[n],whole:null},o="natural"==d?i.free():i.constrain(c.geo.available[k][n].width-m.horizontal,c.geo.available[k][n].height-m.vertical),p=o.measure();if(h.size=p.size,h.outerSize={height:p.size.height+m.vertical,width:p.size.width+m.horizontal},"natural"==d?c.geo.available[k][n].width>=h.outerSize.width&&c.geo.available[k][n].height>=h.outerSize.height?h.fits=!0:h.fits=!1:h.fits=p.fits,"window"==k&&(h.fits?"top"==n||"bottom"==n?h.whole=c.geo.origin.windowOffset.right>=e.__options.minIntersection&&c.geo.window.size.width-c.geo.origin.windowOffset.left>=e.__options.minIntersection:h.whole=c.geo.origin.windowOffset.bottom>=e.__options.minIntersection&&c.geo.window.size.height-c.geo.origin.windowOffset.top>=e.__options.minIntersection:h.whole=!1),g.push(h),h.whole)j=!0;else if("natural"==h.mode&&(h.fits||h.size.width<=c.geo.available[k][n].width))return!1}})}}),e.__instance._trigger({edit:function(a){g=a},event:b,helper:c,results:g,type:"positionTested"}),g.sort(function(a,b){if(a.whole&&!b.whole)return-1;if(!a.whole&&b.whole)return 1;if(a.whole&&b.whole){var c=e.__options.side.indexOf(a.side),d=e.__options.side.indexOf(b.side);return d>c?-1:c>d?1:"natural"==a.mode?-1:1}if(a.fits&&!b.fits)return-1;if(!a.fits&&b.fits)return 1;if(a.fits&&b.fits){var c=e.__options.side.indexOf(a.side),d=e.__options.side.indexOf(b.side);return d>c?-1:c>d?1:"natural"==a.mode?-1:1}return"document"==a.container&&"bottom"==a.side&&"natural"==a.mode?-1:1}),d=g[0],d.coord={},d.side){case"left":case"right":d.coord.top=Math.floor(d.target-d.size.height/2);break;case"bottom":case"top":d.coord.left=Math.floor(d.target-d.size.width/2)}switch(d.side){case"left":d.coord.left=c.geo.origin.windowOffset.left-d.outerSize.width;break;case"right":d.coord.left=c.geo.origin.windowOffset.right+d.distance.horizontal;break;case"top":d.coord.top=c.geo.origin.windowOffset.top-d.outerSize.height;break;case"bottom":d.coord.top=c.geo.origin.windowOffset.bottom+d.distance.vertical}"window"==d.container?"top"==d.side||"bottom"==d.side?d.coord.left<0?c.geo.origin.windowOffset.right-this.__options.minIntersection>=0?d.coord.left=0:d.coord.left=c.geo.origin.windowOffset.right-this.__options.minIntersection-1:d.coord.left>c.geo.window.size.width-d.size.width&&(c.geo.origin.windowOffset.left+this.__options.minIntersection<=c.geo.window.size.width?d.coord.left=c.geo.window.size.width-d.size.width:d.coord.left=c.geo.origin.windowOffset.left+this.__options.minIntersection+1-d.size.width):d.coord.top<0?c.geo.origin.windowOffset.bottom-this.__options.minIntersection>=0?d.coord.top=0:d.coord.top=c.geo.origin.windowOffset.bottom-this.__options.minIntersection-1:d.coord.top>c.geo.window.size.height-d.size.height&&(c.geo.origin.windowOffset.top+this.__options.minIntersection<=c.geo.window.size.height?d.coord.top=c.geo.window.size.height-d.size.height:d.coord.top=c.geo.origin.windowOffset.top+this.__options.minIntersection+1-d.size.height):(d.coord.left>c.geo.window.size.width-d.size.width&&(d.coord.left=c.geo.window.size.width-d.size.width),d.coord.left<0&&(d.coord.left=0)),e.__sideChange(h,d.side),c.tooltipClone=h[0],c.tooltipParent=e.__instance.option("parent").parent[0],c.mode=d.mode,c.whole=d.whole,c.origin=e.__instance._$origin[0],c.tooltip=e.__instance._$tooltip[0],delete d.container,delete d.fits,delete d.mode,delete d.outerSize,delete d.whole,d.distance=d.distance.horizontal||d.distance.vertical;var l=a.extend(!0,{},d);if(e.__instance._trigger({edit:function(a){d=a},event:b,helper:c,position:l,type:"position"}),e.__options.functionPosition){var m=e.__options.functionPosition.call(e,e.__instance,c,l);m&&(d=m)}i.destroy();var n,o;"top"==d.side||"bottom"==d.side?(n={prop:"left",val:d.target-d.coord.left},o=d.size.width-this.__options.minIntersection):(n={prop:"top",val:d.target-d.coord.top},o=d.size.height-this.__options.minIntersection),n.val<this.__options.minIntersection?n.val=this.__options.minIntersection:n.val>o&&(n.val=o);var p;p=c.geo.origin.fixedLineage?c.geo.origin.windowOffset:{left:c.geo.origin.windowOffset.left+c.geo.window.scroll.left,top:c.geo.origin.windowOffset.top+c.geo.window.scroll.top},d.coord={left:p.left+(d.coord.left-c.geo.origin.windowOffset.left),top:p.top+(d.coord.top-c.geo.origin.windowOffset.top)},e.__sideChange(e.__instance._$tooltip,d.side),c.geo.origin.fixedLineage?e.__instance._$tooltip.css("position","fixed"):e.__instance._$tooltip.css("position",""),e.__instance._$tooltip.css({left:d.coord.left,top:d.coord.top,height:d.size.height,width:d.size.width}).find(".tooltipster-arrow").css({left:"",top:""}).css(n.prop,n.val),e.__instance._$tooltip.appendTo(e.__instance.option("parent")),e.__instance._trigger({type:"repositioned",event:b,position:d})},__sideChange:function(a,b){a.removeClass("tooltipster-bottom").removeClass("tooltipster-left").removeClass("tooltipster-right").removeClass("tooltipster-top").addClass("tooltipster-"+b)},__targetFind:function(a){var b={},c=this.__instance._$origin[0].getClientRects();if(c.length>1){var d=this.__instance._$origin.css("opacity");1==d&&(this.__instance._$origin.css("opacity",.99),c=this.__instance._$origin[0].getClientRects(),this.__instance._$origin.css("opacity",1))}if(c.length<2)b.top=Math.floor(a.geo.origin.windowOffset.left+a.geo.origin.size.width/2),b.bottom=b.top,b.left=Math.floor(a.geo.origin.windowOffset.top+a.geo.origin.size.height/2),b.right=b.left;else{var e=c[0];b.top=Math.floor(e.left+(e.right-e.left)/2),e=c.length>2?c[Math.ceil(c.length/2)-1]:c[0],b.right=Math.floor(e.top+(e.bottom-e.top)/2),e=c[c.length-1],b.bottom=Math.floor(e.left+(e.right-e.left)/2),e=c.length>2?c[Math.ceil((c.length+1)/2)-1]:c[c.length-1],b.left=Math.floor(e.top+(e.bottom-e.top)/2)}return b}}}),a});var woof_redirect='';var woof_reset_btn_action=!1;jQuery(function($){jQuery('body').append('<div id="woof_html_buffer" class="woof_info_popup" style="display: none;"></div>');jQuery.fn.life=function(types,data,fn){jQuery(this.context).on(types,this.selector,data,fn);return this};jQuery.extend(jQuery.fn,{within:function(pSelector){return this.filter(function(){return jQuery(this).closest(pSelector).length})}});if(jQuery('#woof_results_by_ajax').length>0){woof_is_ajax=1}
woof_autosubmit=parseInt(jQuery('.woof').eq(0).data('autosubmit'),10);woof_ajax_redraw=parseInt(jQuery('.woof').eq(0).data('ajax-redraw'),10);woof_ext_init_functions=jQuery.parseJSON(woof_ext_init_functions);woof_init_native_woo_price_filter();jQuery('body').bind('price_slider_change',function(event,min,max){if(woof_autosubmit&&!woof_show_price_search_button&&jQuery('.price_slider_wrapper').length<3){jQuery('.woof .widget_price_filter form').trigger('submit')}else{var min_price=jQuery(this).find('.price_slider_amount #min_price').val();var max_price=jQuery(this).find('.price_slider_amount #max_price').val();woof_current_values.min_price=min_price;woof_current_values.max_price=max_price}});jQuery('.woof_price_filter_dropdown').life('change',function(){var val=jQuery(this).val();if(parseInt(val,10)==-1){delete woof_current_values.min_price;delete woof_current_values.max_price}else{var val=val.split("-");woof_current_values.min_price=val[0];woof_current_values.max_price=val[1]}
if(woof_autosubmit||jQuery(this).within('.woof').length==0){woof_submit_link(woof_get_submit_link())}});woof_recount_text_price_filter();jQuery('.woof_price_filter_txt').life('change',function(){var from=parseInt(jQuery(this).parent().find('.woof_price_filter_txt_from').val(),10);var to=parseInt(jQuery(this).parent().find('.woof_price_filter_txt_to').val(),10);if(to<from||from<0){delete woof_current_values.min_price;delete woof_current_values.max_price}else{if(typeof woocs_current_currency!=='undefined'){from=Math.ceil(from/parseFloat(woocs_current_currency.rate));to=Math.ceil(to/parseFloat(woocs_current_currency.rate))}
woof_current_values.min_price=from;woof_current_values.max_price=to}
if(woof_autosubmit||jQuery(this).within('.woof').length==0){woof_submit_link(woof_get_submit_link())}});jQuery('.woof_open_hidden_li_btn').life('click',function(){var state=jQuery(this).data('state');var type=jQuery(this).data('type');if(state=='closed'){jQuery(this).parents('.woof_list').find('.woof_hidden_term').addClass('woof_hidden_term2');jQuery(this).parents('.woof_list').find('.woof_hidden_term').removeClass('woof_hidden_term');if(type=='image'){jQuery(this).find('img').attr('src',jQuery(this).data('opened'))}else{jQuery(this).html(jQuery(this).data('opened'))}
jQuery(this).data('state','opened')}else{jQuery(this).parents('.woof_list').find('.woof_hidden_term2').addClass('woof_hidden_term');jQuery(this).parents('.woof_list').find('.woof_hidden_term2').removeClass('woof_hidden_term2');if(type=='image'){jQuery(this).find('img').attr('src',jQuery(this).data('closed'))}else{jQuery(this).text(jQuery(this).data('closed'))}
jQuery(this).data('state','closed')}
return!1});woof_open_hidden_li();jQuery('.widget_rating_filter li.wc-layered-nav-rating a').click(function(){var is_chosen=jQuery(this).parent().hasClass('chosen');var parsed_url=woof_parse_url(jQuery(this).attr('href'));var rate=0;if(parsed_url.query!==undefined){if(parsed_url.query.indexOf('min_rating')!==-1){var arrayOfStrings=parsed_url.query.split('min_rating=');rate=parseInt(arrayOfStrings[1],10)}}
jQuery(this).parents('ul').find('li').removeClass('chosen');if(is_chosen){delete woof_current_values.min_rating}else{woof_current_values.min_rating=rate;jQuery(this).parent().addClass('chosen')}
woof_submit_link(woof_get_submit_link());return!1});jQuery('.woof_start_filtering_btn').life('click',function(){var shortcode=jQuery(this).parents('.woof').data('shortcode');jQuery(this).html(woof_lang_loading);jQuery(this).addClass('woof_start_filtering_btn2');jQuery(this).removeClass('woof_start_filtering_btn');var data={action:"woof_draw_products",page:1,shortcode:'woof_nothing',woof_shortcode:shortcode};jQuery.post(woof_ajaxurl,data,function(content){content=jQuery.parseJSON(content);jQuery('div.woof_redraw_zone').replaceWith(jQuery(content.form).find('.woof_redraw_zone'));woof_mass_reinit()});return!1});var str=window.location.href;window.onpopstate=function(event){try{console.log(woof_current_values)
if(Object.keys(woof_current_values).length){var temp=str.split('?');var get1="";if(temp[1]!=undefined){get1=temp[1].split('#')}
var str2=window.location.href;var temp2=str2.split('?');if(temp2[1]==undefined){var get2={0:"",1:""}}else{var get2=temp2[1].split('#')}
if(get2[0]!=get1[0]){woof_show_info_popup(woof_lang_loading);window.location.reload()}
return!1}}catch(e){console.log(e)}};woof_init_ion_sliders();woof_init_show_auto_form();woof_init_hide_auto_form();woof_remove_empty_elements();woof_init_search_form();woof_init_pagination();woof_init_orderby();woof_init_reset_button();woof_init_beauty_scroll();woof_draw_products_top_panel();woof_shortcode_observer();woof_init_tooltip();if(!woof_is_ajax){woof_redirect_init()}
woof_init_toggles()});function woof_redirect_init(){try{if(jQuery('.woof').length){if(undefined!==jQuery('.woof').val()){woof_redirect=jQuery('.woof').eq(0).data('redirect');if(woof_redirect.length>0){woof_shop_page=woof_current_page_link=woof_redirect}
return woof_redirect}}}catch(e){console.log(e)}}
function woof_init_orderby(){jQuery('form.woocommerce-ordering').life('submit',function(){if(!jQuery("#is_woo_shortcode").length){return!1}});jQuery('form.woocommerce-ordering select.orderby').life('change',function(){if(!jQuery("#is_woo_shortcode").length){woof_current_values.orderby=jQuery(this).val();woof_ajax_page_num=1;woof_submit_link(woof_get_submit_link(),0);return!1}})}
function woof_init_reset_button(){jQuery('.woof_reset_search_form').life('click',function(){woof_ajax_page_num=1;woof_ajax_redraw=0;woof_reset_btn_action=!0;if(woof_is_permalink){woof_current_values={};woof_submit_link(woof_get_submit_link().split("page/")[0])}else{var link=woof_shop_page;if(woof_current_values.hasOwnProperty('page_id')){link=location.protocol+'//'+location.host+"/?page_id="+woof_current_values.page_id;woof_current_values={'page_id':woof_current_values.page_id};woof_get_submit_link()}
woof_submit_link(link);if(woof_is_ajax){history.pushState({},"",link);if(woof_current_values.hasOwnProperty('page_id')){woof_current_values={'page_id':woof_current_values.page_id}}else{woof_current_values={}}}}
return!1})}
function woof_init_pagination(){if(woof_is_ajax===1){jQuery('a.page-numbers').life('click',function(){var l=jQuery(this).attr('href');if(woof_ajax_first_done){var res=l.split("paged=");if(typeof res[1]!=='undefined'){woof_ajax_page_num=parseInt(res[1])}else{woof_ajax_page_num=1}
var res2=l.split("product-page=");if(typeof res2[1]!=='undefined'){woof_ajax_page_num=parseInt(res2[1])}}else{var res=l.split("page/");if(typeof res[1]!=='undefined'){woof_ajax_page_num=parseInt(res[1])}else{woof_ajax_page_num=1}
var res2=l.split("product-page=");if(typeof res2[1]!=='undefined'){woof_ajax_page_num=parseInt(res2[1])}}
{woof_submit_link(woof_get_submit_link(),0)}
return!1})}}
function woof_init_search_form(){woof_init_checkboxes();woof_init_mselects();woof_init_radios();woof_price_filter_radio_init();woof_init_selects();if(woof_ext_init_functions!==null){jQuery.each(woof_ext_init_functions,function(type,func){eval(func+'()')})}
jQuery('.woof_submit_search_form').click(function(){if(woof_ajax_redraw){woof_ajax_redraw=0;woof_is_ajax=0}
woof_submit_link(woof_get_submit_link());return!1});jQuery('ul.woof_childs_list').parent('li').addClass('woof_childs_list_li');woof_remove_class_widget();woof_checkboxes_slide()}
var woof_submit_link_locked=!1;function woof_submit_link(link,ajax_redraw){if(woof_submit_link_locked){return}
if(typeof WoofTurboMode!='undefined'){WoofTurboMode.woof_submit_link(link);return}
if(typeof ajax_redraw=='undefined'){ajax_redraw=woof_ajax_redraw}
woof_submit_link_locked=!0;woof_show_info_popup(woof_lang_loading);if(woof_is_ajax===1&&!ajax_redraw){woof_ajax_first_done=!0;var data={action:"woof_draw_products",link:link,page:woof_ajax_page_num,shortcode:jQuery('#woof_results_by_ajax').data('shortcode'),woof_shortcode:jQuery('div.woof').data('shortcode')};jQuery.post(woof_ajaxurl,data,function(content){content=jQuery.parseJSON(content);if(jQuery('.woof_results_by_ajax_shortcode').length){if(typeof content.products!="undefined"){jQuery('#woof_results_by_ajax').replaceWith(content.products)}}else{if(typeof content.products!="undefined"){jQuery('.woof_shortcode_output').replaceWith(content.products)}}
if(typeof content.additional_fields!="undefined"){jQuery.each(content.additional_fields,function(selector,html_data){jQuery(selector).replaceWith(html_data)})}
jQuery('div.woof_redraw_zone').replaceWith(jQuery(content.form).find('.woof_redraw_zone'));woof_draw_products_top_panel();woof_mass_reinit();woof_submit_link_locked=!1;jQuery.each(jQuery('#woof_results_by_ajax'),function(index,item){if(index==0){return}
jQuery(item).removeAttr('id')});woof_infinite();woof_js_after_ajax_done();woof_change_link_addtocart();woof_init_tooltip();document.dispatchEvent(new CustomEvent('woof-ajax-form-redrawing',{detail:{link:link}}))})}else{if(ajax_redraw){var data={action:"woof_draw_products",link:link,page:1,shortcode:'woof_nothing',woof_shortcode:jQuery('div.woof').eq(0).data('shortcode')};jQuery.post(woof_ajaxurl,data,function(content){content=jQuery.parseJSON(content);jQuery('div.woof_redraw_zone').replaceWith(jQuery(content.form).find('.woof_redraw_zone'));woof_mass_reinit();woof_submit_link_locked=!1;woof_init_tooltip();document.dispatchEvent(new CustomEvent('woof-ajax-form-redrawing',{detail:{link:link}}))})}else{window.location=link;woof_show_info_popup(woof_lang_loading)}}}
function woof_remove_empty_elements(){jQuery.each(jQuery('.woof_container select'),function(index,select){var size=jQuery(select).find('option').length;if(size===0){jQuery(select).parents('.woof_container').remove()}});jQuery.each(jQuery('ul.woof_list'),function(index,ch){var size=jQuery(ch).find('li').length;if(size===0){jQuery(ch).parents('.woof_container').remove()}})}
function woof_get_submit_link(){if(woof_is_ajax){woof_current_values.page=woof_ajax_page_num}
if(Object.keys(woof_current_values).length>0){jQuery.each(woof_current_values,function(index,value){if(index==swoof_search_slug){delete woof_current_values[index]}
if(index=='s'){delete woof_current_values[index]}
if(index=='product'){delete woof_current_values[index]}
if(index=='really_curr_tax'){delete woof_current_values[index]}})}
if(Object.keys(woof_current_values).length===2){if(('min_price' in woof_current_values)&&('max_price' in woof_current_values)){woof_current_page_link=woof_current_page_link.replace(new RegExp(/page\/(\d+)\//),"");var l=woof_current_page_link+'?min_price='+woof_current_values.min_price+'&max_price='+woof_current_values.max_price;if(woof_is_ajax){history.pushState({},"",l)}
return l}}
if(Object.keys(woof_current_values).length===0){if(woof_is_ajax){history.pushState({},"",woof_current_page_link)}
return woof_current_page_link}
if(Object.keys(woof_really_curr_tax).length>0){woof_current_values.really_curr_tax=woof_really_curr_tax.term_id+'-'+woof_really_curr_tax.taxonomy}
var link=woof_current_page_link+"?"+swoof_search_slug+"=1";if(!woof_is_permalink){if(woof_redirect.length>0){link=woof_redirect+"?"+swoof_search_slug+"=1";if(woof_current_values.hasOwnProperty('page_id')){delete woof_current_values.page_id}}else{link=location.protocol+'//'+location.host+"?"+swoof_search_slug+"=1"}}
var woof_exclude_accept_array=['path'];if(Object.keys(woof_current_values).length>0){jQuery.each(woof_current_values,function(index,value){if(index=='page'&&woof_is_ajax){index='paged'}
if(typeof value!=='undefined'){if((typeof value&&value.length>0)||typeof value=='number'){if(jQuery.inArray(index,woof_exclude_accept_array)==-1){link=link+"&"+index+"="+value}}}})}
link=link.replace(new RegExp(/page\/(\d+)\//),"");if(woof_is_ajax){history.pushState({},"",link)}
return link}
function woof_show_info_popup(text){if(woof_overlay_skin=='default'){jQuery("#woof_html_buffer").text(text);jQuery("#woof_html_buffer").fadeTo(200,0.9)}else{switch(woof_overlay_skin){case 'loading-balls':case 'loading-bars':case 'loading-bubbles':case 'loading-cubes':case 'loading-cylon':case 'loading-spin':case 'loading-spinning-bubbles':case 'loading-spokes':jQuery('body').plainOverlay('show',{progress:function(){return jQuery('<div id="woof_svg_load_container"><img style="height: 100%;width: 100%" src="'+woof_link+'img/loading-master/'+woof_overlay_skin+'.svg" alt=""></div>')}});break;default:jQuery('body').plainOverlay('show',{duration:-1});break}}}
function woof_hide_info_popup(){if(woof_overlay_skin=='default'){window.setTimeout(function(){jQuery("#woof_html_buffer").fadeOut(400)},200)}else{jQuery('body').plainOverlay('hide')}}
function woof_draw_products_top_panel(){if(woof_is_ajax){jQuery('#woof_results_by_ajax').prev('.woof_products_top_panel').remove()}
var panel=jQuery('.woof_products_top_panel');panel.html('');if(Object.keys(woof_current_values).length>0){panel.show();panel.html('<ul></ul>');var is_price_in=!1;jQuery.each(woof_current_values,function(index,value){if(jQuery.inArray(index,woof_accept_array)==-1&&jQuery.inArray(index.replace("rev_",""),woof_accept_array)==-1){return}
if((index=='min_price'||index=='max_price')&&is_price_in){return}
if((index=='min_price'||index=='max_price')&&!is_price_in){is_price_in=!0;index='price';value=woof_lang_pricerange}
value=value.toString().trim();if(value.search(',')){value=value.split(',')}
jQuery.each(value,function(i,v){if(index=='page'){return}
if(index=='post_type'){return}
var txt=v;if(index=='orderby'){if(woof_lang[v]!==undefined){txt=woof_lang.orderby+': '+woof_lang[v]}else{txt=woof_lang.orderby+': '+v}}else if(index=='perpage'){txt=woof_lang.perpage}else if(index=='price'){txt=woof_lang.pricerange}else{var is_in_custom=!1;if(Object.keys(woof_lang_custom).length>0){jQuery.each(woof_lang_custom,function(i,tt){if(i==index){is_in_custom=!0;txt=tt;if(index=='woof_sku'){txt+=" "+v}}})}
if(!is_in_custom){try{txt=jQuery("input[data-anchor='woof_n_"+index+'_'+v+"']").val()}catch(e){console.log(e)}
if(typeof txt==='undefined'){txt=v}}}
panel.find('ul').append(jQuery('<li>').append(jQuery('<a>').attr('href',"").attr('data-tax',index).attr('data-slug',v).append(jQuery('<span>').attr('class','woof_remove_ppi').append(txt))))})})}
if(jQuery(panel).find('li').length==0||!jQuery('.woof_products_top_panel').length){panel.hide()}
jQuery('.woof_remove_ppi').parent().click(function(){var tax=jQuery(this).data('tax');var name=jQuery(this).data('slug');if(tax!='price'){values=woof_current_values[tax];values=values.split(',');var tmp=[];jQuery.each(values,function(index,value){if(value!=name){tmp.push(value)}});values=tmp;if(values.length){woof_current_values[tax]=values.join(',')}else{delete woof_current_values[tax]}}else{delete woof_current_values.min_price;delete woof_current_values.max_price}
woof_ajax_page_num=1;woof_reset_btn_action=!0;{woof_submit_link(woof_get_submit_link())}
jQuery('.woof_products_top_panel').find("[data-tax='"+tax+"'][href='"+name+"']").hide(333);return!1})}
function woof_shortcode_observer(){var redirect=!0;if(jQuery('.woof_shortcode_output').length||(jQuery('.woocommerce .products').length&&!jQuery('.single-product').length)){redirect=!1}
if(jQuery('.woocommerce .woocommerce-info').length){redirect=!1}
if(typeof woof_not_redirect!=='undefined'&&woof_not_redirect==1){redirect=!1}
if(jQuery('.woopt-data-table').length){redirect=!1}
if(!redirect){woof_current_page_link=location.protocol+'//'+location.host+location.pathname}
if(jQuery('#woof_results_by_ajax').length){woof_is_ajax=1}}
function woof_init_beauty_scroll(){if(woof_use_beauty_scroll){try{var anchor=".woof_section_scrolled, .woof_sid_auto_shortcode .woof_container_radio .woof_block_html_items, .woof_sid_auto_shortcode .woof_container_checkbox .woof_block_html_items, .woof_sid_auto_shortcode .woof_container_label .woof_block_html_items";jQuery(""+anchor).mCustomScrollbar('destroy');jQuery(""+anchor).mCustomScrollbar({scrollButtons:{enable:!0},advanced:{updateOnContentResize:!0,updateOnBrowserResize:!0},theme:"dark-2",horizontalScroll:!1,mouseWheel:!0,scrollType:'pixels',contentTouchScroll:!0})}catch(e){console.log(e)}}}
function woof_remove_class_widget(){jQuery('.woof_container_inner').find('.widget').removeClass('widget')}
function woof_init_show_auto_form(){jQuery('.woof_show_auto_form').unbind('click');jQuery('.woof_show_auto_form').click(function(){var _this=this;jQuery(_this).addClass('woof_hide_auto_form').removeClass('woof_show_auto_form');jQuery(".woof_auto_show").show().animate({height:(jQuery(".woof_auto_show_indent").height()+20)+"px",opacity:1},377,function(){woof_init_hide_auto_form();jQuery('.woof_auto_show').removeClass('woof_overflow_hidden');jQuery('.woof_auto_show_indent').removeClass('woof_overflow_hidden');jQuery(".woof_auto_show").height('auto')});return!1})}
function woof_init_hide_auto_form(){jQuery('.woof_hide_auto_form').unbind('click');jQuery('.woof_hide_auto_form').click(function(){var _this=this;jQuery(_this).addClass('woof_show_auto_form').removeClass('woof_hide_auto_form');jQuery(".woof_auto_show").show().animate({height:"1px",opacity:0},377,function(){jQuery('.woof_auto_show').addClass('woof_overflow_hidden');jQuery('.woof_auto_show_indent').addClass('woof_overflow_hidden');woof_init_show_auto_form()});return!1})}
function woof_checkboxes_slide(){if(woof_checkboxes_slide_flag==!0){var childs=jQuery('ul.woof_childs_list');if(childs.length){jQuery.each(childs,function(index,ul){if(jQuery(ul).parents('.woof_no_close_childs').length){return}
var span_class='woof_is_closed';if(woof_supports_html5_storage()){var preulstate=localStorage.getItem(jQuery(ul).closest('li').attr("class"));if(preulstate&&preulstate=='woof_is_opened'){var span_class='woof_is_opened';jQuery(ul).show()}
jQuery(ul).before('<a href="javascript:void(0);" class="woof_childs_list_opener"><span class="'+span_class+'"></span></a>')}else{if(jQuery(ul).find('input[type=checkbox],input[type=radio]').is(':checked')){jQuery(ul).show();span_class='woof_is_opened'}
jQuery(ul).before('<a href="javascript:void(0);" class="woof_childs_list_opener"><span class="'+span_class+'"></span></a>')}});jQuery.each(jQuery('a.woof_childs_list_opener span'),function(index,a){jQuery(a).click(function(){var span=jQuery(this);var this_=jQuery(this).parent(".woof_childs_list_opener");if(span.hasClass('woof_is_closed')){jQuery(this_).parent().find('ul.woof_childs_list').first().show(333);span.removeClass('woof_is_closed');span.addClass('woof_is_opened')}else{jQuery(this_).parent().find('ul.woof_childs_list').first().hide(333);span.removeClass('woof_is_opened');span.addClass('woof_is_closed')}
if(woof_supports_html5_storage()){var ullabel=jQuery(this_).closest('li').attr("class");var ullstate=jQuery(this_).children("span").attr("class");localStorage.setItem(ullabel,ullstate)}
return!1})})}}}
function woof_init_ion_sliders(){jQuery.each(jQuery('.woof_range_slider'),function(index,input){try{jQuery(input).ionRangeSlider({min:jQuery(input).data('min'),max:jQuery(input).data('max'),from:jQuery(input).data('min-now'),to:jQuery(input).data('max-now'),type:'double',prefix:jQuery(input).data('slider-prefix'),postfix:jQuery(input).data('slider-postfix'),prettify:!0,hideMinMax:!1,hideFromTo:!1,grid:!0,step:jQuery(input).data('step'),onFinish:function(ui){var tax=jQuery(input).data('taxes');woof_current_values.min_price=(parseInt(ui.from,10)/tax);woof_current_values.max_price=(parseInt(ui.to,10)/tax);if(typeof woocs_current_currency!=='undefined'){woof_current_values.min_price=Math.ceil(woof_current_values.min_price/parseFloat(woocs_current_currency.rate));woof_current_values.max_price=Math.ceil(woof_current_values.max_price/parseFloat(woocs_current_currency.rate))}
woof_ajax_page_num=1;if(woof_autosubmit||jQuery(input).within('.woof').length==0){woof_submit_link(woof_get_submit_link())}
return!1}})}catch(e){}})}
function woof_init_native_woo_price_filter(){jQuery('.widget_price_filter form').unbind('submit');jQuery('.widget_price_filter form').submit(function(){var min_price=jQuery(this).find('.price_slider_amount #min_price').val();var max_price=jQuery(this).find('.price_slider_amount #max_price').val();woof_current_values.min_price=min_price;woof_current_values.max_price=max_price;woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link(),0)}
return!1})}
function woof_reinit_native_woo_price_filter(){if(typeof woocommerce_price_slider_params==='undefined'){return!1}
jQuery('input#min_price, input#max_price').hide();jQuery('.price_slider, .price_label').show();var min_price=jQuery('.price_slider_amount #min_price').data('min'),max_price=jQuery('.price_slider_amount #max_price').data('max'),current_min_price=parseInt(min_price,10),current_max_price=parseInt(max_price,10);if(woof_current_values.hasOwnProperty('min_price')){current_min_price=parseInt(woof_current_values.min_price,10);current_max_price=parseInt(woof_current_values.max_price,10)}else{if(woocommerce_price_slider_params.min_price){current_min_price=parseInt(woocommerce_price_slider_params.min_price,10)}
if(woocommerce_price_slider_params.max_price){current_max_price=parseInt(woocommerce_price_slider_params.max_price,10)}}
var currency_symbol=woocommerce_price_slider_params.currency_symbol;if(typeof currency_symbol=='undefined'){currency_symbol=woocommerce_price_slider_params.currency_format_symbol}
jQuery(document.body).bind('price_slider_create price_slider_slide',function(event,min,max){if(typeof woocs_current_currency!=='undefined'){var label_min=min;var label_max=max;if(typeof currency_symbol=='undefined'){currency_symbol=woocs_current_currency.symbol}
if(woocs_current_currency.rate!==1){label_min=Math.ceil(label_min*parseFloat(woocs_current_currency.rate));label_max=Math.ceil(label_max*parseFloat(woocs_current_currency.rate))}
label_min=woof_front_number_format(label_min,2,'.',',');label_max=woof_front_number_format(label_max,2,'.',',');if(jQuery.inArray(woocs_current_currency.name,woocs_array_no_cents)||woocs_current_currency.hide_cents==1){label_min=label_min.replace('.00','');label_max=label_max.replace('.00','')}
if(woocs_current_currency.position==='left'){jQuery('.price_slider_amount span.from').html(currency_symbol+label_min);jQuery('.price_slider_amount span.to').html(currency_symbol+label_max)}else if(woocs_current_currency.position==='left_space'){jQuery('.price_slider_amount span.from').html(currency_symbol+" "+label_min);jQuery('.price_slider_amount span.to').html(currency_symbol+" "+label_max)}else if(woocs_current_currency.position==='right'){jQuery('.price_slider_amount span.from').html(label_min+currency_symbol);jQuery('.price_slider_amount span.to').html(label_max+currency_symbol)}else if(woocs_current_currency.position==='right_space'){jQuery('.price_slider_amount span.from').html(label_min+" "+currency_symbol);jQuery('.price_slider_amount span.to').html(label_max+" "+currency_symbol)}}else{if(woocommerce_price_slider_params.currency_pos==='left'){jQuery('.price_slider_amount span.from').html(currency_symbol+min);jQuery('.price_slider_amount span.to').html(currency_symbol+max)}else if(woocommerce_price_slider_params.currency_pos==='left_space'){jQuery('.price_slider_amount span.from').html(currency_symbol+' '+min);jQuery('.price_slider_amount span.to').html(currency_symbol+' '+max)}else if(woocommerce_price_slider_params.currency_pos==='right'){jQuery('.price_slider_amount span.from').html(min+currency_symbol);jQuery('.price_slider_amount span.to').html(max+currency_symbol)}else if(woocommerce_price_slider_params.currency_pos==='right_space'){jQuery('.price_slider_amount span.from').html(min+' '+currency_symbol);jQuery('.price_slider_amount span.to').html(max+' '+currency_symbol)}}
jQuery(document.body).trigger('price_slider_updated',[min,max])});jQuery('.price_slider').slider({range:!0,animate:!0,min:min_price,max:max_price,values:[current_min_price,current_max_price],create:function(){jQuery('.price_slider_amount #min_price').val(current_min_price);jQuery('.price_slider_amount #max_price').val(current_max_price);jQuery(document.body).trigger('price_slider_create',[current_min_price,current_max_price])},slide:function(event,ui){jQuery('input#min_price').val(ui.values[0]);jQuery('input#max_price').val(ui.values[1]);jQuery(document.body).trigger('price_slider_slide',[ui.values[0],ui.values[1]])},change:function(event,ui){jQuery(document.body).trigger('price_slider_change',[ui.values[0],ui.values[1]])}});woof_init_native_woo_price_filter()}
function woof_mass_reinit(){woof_remove_empty_elements();woof_open_hidden_li();woof_init_search_form();woof_hide_info_popup();woof_init_beauty_scroll();woof_init_ion_sliders();woof_reinit_native_woo_price_filter();woof_recount_text_price_filter();woof_draw_products_top_panel()}
function woof_recount_text_price_filter(){if(typeof woocs_current_currency!=='undefined'){jQuery.each(jQuery('.woof_price_filter_txt_from, .woof_price_filter_txt_to'),function(i,item){jQuery(this).val(Math.ceil(jQuery(this).data('value')))})}}
function woof_init_toggles(){jQuery('.woof_front_toggle').life('click',function(){if(jQuery(this).data('condition')=='opened'){jQuery(this).removeClass('woof_front_toggle_opened');jQuery(this).addClass('woof_front_toggle_closed');jQuery(this).data('condition','closed');if(woof_toggle_type=='text'){jQuery(this).text(woof_toggle_closed_text)}else{jQuery(this).find('img').prop('src',woof_toggle_closed_image)}}else{jQuery(this).addClass('woof_front_toggle_opened');jQuery(this).removeClass('woof_front_toggle_closed');jQuery(this).data('condition','opened');if(woof_toggle_type=='text'){jQuery(this).text(woof_toggle_opened_text)}else{jQuery(this).find('img').prop('src',woof_toggle_opened_image)}}
jQuery(this).parents('.woof_container_inner').find('.woof_block_html_items').toggle(500);return!1})}
function woof_open_hidden_li(){if(jQuery('.woof_open_hidden_li_btn').length>0){jQuery.each(jQuery('.woof_open_hidden_li_btn'),function(i,b){if(jQuery(b).parents('ul').find('li.woof_hidden_term input[type=checkbox],li.woof_hidden_term input[type=radio]').is(':checked')){jQuery(b).trigger('click')}})}}
function $_woof_GET(q,s){s=(s)?s:window.location.search;var re=new RegExp('&'+q+'=([^&]*)','i');return(s=s.replace(/^\?/,'&').match(re))?s=s[1]:s=''}
function woof_parse_url(url){var pattern=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?");var matches=url.match(pattern);return{scheme:matches[2],authority:matches[4],path:matches[5],query:matches[7],fragment:matches[9]}}
function woof_price_filter_radio_init(){if(icheck_skin!='none'){jQuery('.woof_price_filter_radio').iCheck('destroy');jQuery('.woof_price_filter_radio').iCheck({radioClass:'iradio_'+icheck_skin.skin+'-'+icheck_skin.color,});jQuery('.woof_price_filter_radio').siblings('div').removeClass('checked');jQuery('.woof_price_filter_radio').unbind('ifChecked');jQuery('.woof_price_filter_radio').on('ifChecked',function(event){jQuery(this).attr("checked",!0);jQuery('.woof_radio_price_reset').removeClass('woof_radio_term_reset_visible');jQuery(this).parents('.woof_list').find('.woof_radio_price_reset').removeClass('woof_radio_term_reset_visible');jQuery(this).parents('.woof_list').find('.woof_radio_price_reset').hide();jQuery(this).parents('li').eq(0).find('.woof_radio_price_reset').eq(0).addClass('woof_radio_term_reset_visible');var val=jQuery(this).val();if(parseInt(val,10)==-1){delete woof_current_values.min_price;delete woof_current_values.max_price;jQuery(this).removeAttr('checked');jQuery(this).siblings('.woof_radio_price_reset').removeClass('woof_radio_term_reset_visible')}else{var val=val.split("-");woof_current_values.min_price=val[0];woof_current_values.max_price=val[1];jQuery(this).siblings('.woof_radio_price_reset').addClass('woof_radio_term_reset_visible');jQuery(this).attr("checked",!0)}
if(woof_autosubmit||jQuery(this).within('.woof').length==0){woof_submit_link(woof_get_submit_link())}})}else{jQuery('.woof_price_filter_radio').life('change',function(){var val=jQuery(this).val();jQuery('.woof_radio_price_reset').removeClass('woof_radio_term_reset_visible');if(parseInt(val,10)==-1){delete woof_current_values.min_price;delete woof_current_values.max_price;jQuery(this).removeAttr('checked');jQuery(this).siblings('.woof_radio_price_reset').removeClass('woof_radio_term_reset_visible')}else{var val=val.split("-");woof_current_values.min_price=val[0];woof_current_values.max_price=val[1];jQuery(this).siblings('.woof_radio_price_reset').addClass('woof_radio_term_reset_visible');jQuery(this).attr("checked",!0)}
if(woof_autosubmit||jQuery(this).within('.woof').length==0){woof_submit_link(woof_get_submit_link())}})}
jQuery('.woof_radio_price_reset').click(function(){delete woof_current_values.min_price;delete woof_current_values.max_price;jQuery(this).siblings('div').removeClass('checked');jQuery(this).parents('.woof_list').find('input[type=radio]').removeAttr('checked');jQuery(this).removeClass('woof_radio_term_reset_visible');if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}
return!1})}
function woof_serialize(serializedString){var str=decodeURI(serializedString);var pairs=str.split('&');var obj={},p,idx,val;for(var i=0,n=pairs.length;i<n;i++){p=pairs[i].split('=');idx=p[0];if(idx.indexOf("[]")==(idx.length-2)){var ind=idx.substring(0,idx.length-2)
if(obj[ind]===undefined){obj[ind]=[]}
obj[ind].push(p[1])}else{obj[idx]=p[1]}}
return obj}
function woof_infinite(){if(typeof yith_infs==='undefined'){return}
var infinite_scroll1={'nextSelector':'.woocommerce-pagination li .next','navSelector':yith_infs.navSelector,'itemSelector':yith_infs.itemSelector,'contentSelector':yith_infs.contentSelector,'loader':'<img src="'+yith_infs.loader+'">','is_shop':yith_infs.shop};var curr_l=window.location.href;var curr_link=curr_l.split('?');var get="";if(curr_link[1]!=undefined){var temp=woof_serialize(curr_link[1]);delete temp.paged;get=decodeURIComponent(jQuery.param(temp))}
var page_link=jQuery('.woocommerce-pagination li .next').attr("href");if(page_link==undefined){page_link=curr_link+"page/1/"}
var ajax_link=page_link.split('?');var page="";if(ajax_link[1]!=undefined){var temp1=woof_serialize(ajax_link[1]);if(temp1.paged!=undefined){page="page/"+temp1.paged+"/"}}
page_link=curr_link[0]+page+'?'+get;jQuery('.woocommerce-pagination li .next').attr('href',page_link);jQuery(window).unbind("yith_infs_start"),jQuery(yith_infs.contentSelector).yit_infinitescroll(infinite_scroll1)}
function woof_change_link_addtocart(){if(!woof_is_ajax){return}
jQuery(".add_to_cart_button").each(function(i,elem){var link=jQuery(elem).attr('href');var link_items=link.split("?");var site_link_items=window.location.href.split("?");if(link_items[1]!=undefined){link=site_link_items[0]+"?"+link_items[1];jQuery(elem).attr('href',link)}})}
function woof_front_number_format(number,decimals,dec_point,thousands_sep){number=(number+'').replace(/[^0-9+\-Ee.]/g,'');var n=!isFinite(+number)?0:+number,prec=!isFinite(+decimals)?0:Math.abs(decimals),sep=(typeof thousands_sep==='undefined')?',':thousands_sep,dec=(typeof dec_point==='undefined')?'.':dec_point,s='',toFixedFix=function(n,prec){var k=Math.pow(10,prec);return''+(Math.round(n*k)/k).toFixed(prec)};s=(prec?toFixedFix(n,prec):''+Math.round(n)).split('.');if(s[0].length>3){s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,sep)}
if((s[1]||'').length<prec){s[1]=s[1]||'';s[1]+=new Array(prec-s[1].length+1).join('0')}
return s.join(dec)}
function woof_supports_html5_storage(){try{return'localStorage' in window&&window.localStorage!==null}catch(e){return!1}}
function woof_init_tooltip(){var tooltips=jQuery(".woof_tooltip_header");if(tooltips.length){jQuery(tooltips).tooltipster({theme:'tooltipster-noir',side:'right'})}};function woof_init_radios(){if(icheck_skin!='none'){jQuery('.woof_radio_term').iCheck('destroy');jQuery('.woof_radio_term').iCheck({radioClass:'iradio_'+icheck_skin.skin+'-'+icheck_skin.color,});jQuery('.woof_radio_term').unbind('ifChecked');jQuery('.woof_radio_term').on('ifChecked',function(event){jQuery(this).attr("checked",!0);jQuery(this).parents('.woof_list').find('.woof_radio_term_reset').removeClass('woof_radio_term_reset_visible');jQuery(this).parents('.woof_list').find('.woof_radio_term_reset').hide();jQuery(this).parents('li').eq(0).find('.woof_radio_term_reset').eq(0).addClass('woof_radio_term_reset_visible');var slug=jQuery(this).data('slug');var name=jQuery(this).attr('name');var term_id=jQuery(this).data('term-id');woof_radio_direct_search(term_id,name,slug)})}else{jQuery('.woof_radio_term').on('change',function(event){jQuery(this).attr("checked",!0);var slug=jQuery(this).data('slug');var name=jQuery(this).attr('name');var term_id=jQuery(this).data('term-id');jQuery(this).parents('.woof_list').find('.woof_radio_term_reset').removeClass('woof_radio_term_reset_visible');jQuery(this).parents('.woof_list').find('.woof_radio_term_reset').hide();jQuery(this).parents('li').eq(0).find('.woof_radio_term_reset').eq(0).addClass('woof_radio_term_reset_visible');woof_radio_direct_search(term_id,name,slug)})}
jQuery('.woof_radio_term_reset').click(function(){woof_radio_direct_search(jQuery(this).data('term-id'),jQuery(this).attr('data-name'),0);jQuery(this).parents('.woof_list').find('.checked').removeClass('checked');jQuery(this).parents('.woof_list').find('input[type=radio]').removeAttr('checked');jQuery(this).removeClass('woof_radio_term_reset_visible');return!1})}
function woof_radio_direct_search(term_id,name,slug){jQuery.each(woof_current_values,function(index,value){if(index==name){delete woof_current_values[name];return}});if(slug!=0){woof_current_values[name]=slug;jQuery('a.woof_radio_term_reset_'+term_id).hide();jQuery('woof_radio_term_'+term_id).filter(':checked').parents('li').find('a.woof_radio_term_reset').show();jQuery('woof_radio_term_'+term_id).parents('ul.woof_list').find('label').css({'fontWeight':'normal'});jQuery('woof_radio_term_'+term_id).filter(':checked').parents('li').find('label.woof_radio_label_'+slug).css({'fontWeight':'bold'})}else{jQuery('a.woof_radio_term_reset_'+term_id).hide();jQuery('woof_radio_term_'+term_id).attr('checked',!1);jQuery('woof_radio_term_'+term_id).parent().removeClass('checked');jQuery('woof_radio_term_'+term_id).parents('ul.woof_list').find('label').css({'fontWeight':'normal'})}
woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}};function woof_init_checkboxes(){if(icheck_skin!='none'){jQuery('.woof_checkbox_term').iCheck('destroy');jQuery('.woof_checkbox_term').iCheck({checkboxClass:'icheckbox_'+icheck_skin.skin+'-'+icheck_skin.color,});jQuery('.woof_checkbox_term').unbind('ifChecked');jQuery('.woof_checkbox_term').on('ifChecked',function(event){jQuery(this).attr("checked",!0);jQuery(".woof_select_radio_check input").attr('disabled','disabled');woof_checkbox_process_data(this,!0)});jQuery('.woof_checkbox_term').unbind('ifUnchecked');jQuery('.woof_checkbox_term').on('ifUnchecked',function(event){jQuery(this).attr("checked",!1);woof_checkbox_process_data(this,!1)});jQuery('.woof_checkbox_label').unbind();jQuery('label.woof_checkbox_label').click(function(){if(jQuery(this).prev().find('.woof_checkbox_term').is(':disabled')){return!1}
if(jQuery(this).prev().find('.woof_checkbox_term').is(':checked')){jQuery(this).prev().find('.woof_checkbox_term').trigger('ifUnchecked');jQuery(this).prev().removeClass('checked')}else{jQuery(this).prev().find('.woof_checkbox_term').trigger('ifChecked');jQuery(this).prev().addClass('checked')}})}else{jQuery('.woof_checkbox_term').on('change',function(event){if(jQuery(this).is(':checked')){jQuery(this).attr("checked",!0);woof_checkbox_process_data(this,!0)}else{jQuery(this).attr("checked",!1);woof_checkbox_process_data(this,!1)}})}}
function woof_checkbox_process_data(_this,is_checked){var tax=jQuery(_this).data('tax');var name=jQuery(_this).attr('name');var term_id=jQuery(_this).data('term-id');woof_checkbox_direct_search(term_id,name,tax,is_checked)}
function woof_checkbox_direct_search(term_id,name,tax,is_checked){var values='';var checked=!0;if(is_checked){if(tax in woof_current_values){woof_current_values[tax]=woof_current_values[tax]+','+name}else{woof_current_values[tax]=name}
checked=!0}else{values=woof_current_values[tax];values=values.split(',');var tmp=[];jQuery.each(values,function(index,value){if(value!=name){tmp.push(value)}});values=tmp;if(values.length){woof_current_values[tax]=values.join(',')}else{delete woof_current_values[tax]}
checked=!1}
jQuery('.woof_checkbox_term_'+term_id).attr('checked',checked);woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}};function woof_init_selects(){if(is_woof_use_chosen){try{jQuery("select.woof_select, select.woof_price_filter_dropdown").chosen()}catch(e){}}
jQuery('.woof_select').change(function(){var slug=jQuery(this).val();var name=jQuery(this).attr('name');woof_select_direct_search(this,name,slug)})}
function woof_select_direct_search(_this,name,slug){jQuery.each(woof_current_values,function(index,value){if(index==name){delete woof_current_values[name];return}});if(slug!=0){woof_current_values[name]=slug}
woof_ajax_page_num=1;if(woof_autosubmit||jQuery(_this).within('.woof').length==0){woof_submit_link(woof_get_submit_link())}};function woof_init_mselects(){try{jQuery("select.woof_mselect").chosen()}catch(e){}
jQuery('.woof_mselect').change(function(a){var slug=jQuery(this).val();var name=jQuery(this).attr('name');if(is_woof_use_chosen){var vals=jQuery(this).chosen().val();jQuery('.woof_mselect[name='+name+'] option:selected').removeAttr("selected");jQuery('.woof_mselect[name='+name+'] option').each(function(i,option){var v=jQuery(this).val();if(jQuery.inArray(v,vals)!==-1){jQuery(this).prop("selected",!0)}})}
woof_mselect_direct_search(name,slug);return!0})}
function woof_mselect_direct_search(name,slug){var values=[];jQuery('.woof_mselect[name='+name+'] option:selected').each(function(i,v){values.push(jQuery(this).val())});values=values.filter(function(item,pos){return values.indexOf(item)==pos});values=values.join(',');if(values.length){woof_current_values[name]=values}else{delete woof_current_values[name]}
woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}};/*!
 Chosen, a Select Box Enhancer for jQuery and Prototype
 by Patrick Filler for Harvest, http://getharvest.com
 
 Version 1.1.0
 Full source at https://github.com/harvesthq/chosen
 Copyright (c) 2011 Harvest http://getharvest.com
 
 MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
 This file is generated by `grunt build`, do not edit it by hand.
 */
(function(){var $,AbstractChosen,Chosen,SelectParser,_ref,__hasProp={}.hasOwnProperty,__extends=function(child,parent){for(var key in parent){if(__hasProp.call(parent,key))
child[key]=parent[key]}
function ctor(){this.constructor=child}
ctor.prototype=parent.prototype;child.prototype=new ctor();child.__super__=parent.prototype;return child};SelectParser=(function(){function SelectParser(){this.options_index=0;this.parsed=[]}
SelectParser.prototype.add_node=function(child){if(child.nodeName.toUpperCase()==="OPTGROUP"){return this.add_group(child)}else{return this.add_option(child)}};SelectParser.prototype.add_group=function(group){var group_position,option,_i,_len,_ref,_results;group_position=this.parsed.length;this.parsed.push({array_index:group_position,group:!0,label:this.escapeExpression(group.label),children:0,disabled:group.disabled});_ref=group.childNodes;_results=[];for(_i=0,_len=_ref.length;_i<_len;_i++){option=_ref[_i];_results.push(this.add_option(option,group_position,group.disabled))}
return _results};SelectParser.prototype.add_option=function(option,group_position,group_disabled){if(option.nodeName.toUpperCase()==="OPTION"){if(option.text!==""){if(group_position!=null){this.parsed[group_position].children+=1}
this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:option.value,text:option.text,html:option.innerHTML,selected:option.selected,disabled:group_disabled===!0?group_disabled:option.disabled,group_array_index:group_position,classes:option.className,style:option.style.cssText})}else{this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0})}
return this.options_index+=1}};SelectParser.prototype.escapeExpression=function(text){var map,unsafe_chars;if((text==null)||text===!1){return""}
if(!/[\&\<\>\"\'\`]/.test(text)){return text}
map={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"};unsafe_chars=/&(?!\w+;)|[\<\>\"\'\`]/g;return text.replace(unsafe_chars,function(chr){return map[chr]||"&amp;"})};return SelectParser})();SelectParser.select_to_array=function(select){var child,parser,_i,_len,_ref;parser=new SelectParser();_ref=select.childNodes;for(_i=0,_len=_ref.length;_i<_len;_i++){child=_ref[_i];parser.add_node(child)}
return parser.parsed};AbstractChosen=(function(){function AbstractChosen(form_field,options){this.form_field=form_field;this.options=options!=null?options:{};if(!AbstractChosen.browser_is_supported()){return}
this.is_multiple=this.form_field.multiple;this.set_default_text();this.set_default_values();this.setup();this.set_up_html();this.register_observers()}
AbstractChosen.prototype.set_default_values=function(){var _this=this;this.click_test_action=function(evt){return _this.test_active_click(evt)};this.activate_action=function(evt){return _this.activate_field(evt)};this.active_field=!1;this.mouse_on_container=!1;this.results_showing=!1;this.result_highlighted=null;this.allow_single_deselect=(this.options.allow_single_deselect!=null)&&(this.form_field.options[0]!=null)&&this.form_field.options[0].text===""?this.options.allow_single_deselect:!1;this.disable_search_threshold=this.options.disable_search_threshold||0;this.disable_search=this.options.disable_search||!1;this.enable_split_word_search=this.options.enable_split_word_search!=null?this.options.enable_split_word_search:!0;this.group_search=this.options.group_search!=null?this.options.group_search:!0;this.search_contains=this.options.search_contains||!1;this.single_backstroke_delete=this.options.single_backstroke_delete!=null?this.options.single_backstroke_delete:!0;this.max_selected_options=this.options.max_selected_options||Infinity;this.inherit_select_classes=this.options.inherit_select_classes||!1;this.display_selected_options=this.options.display_selected_options!=null?this.options.display_selected_options:!0;return this.display_disabled_options=this.options.display_disabled_options!=null?this.options.display_disabled_options:!0};AbstractChosen.prototype.set_default_text=function(){if(this.form_field.getAttribute("data-placeholder")){this.default_text=this.form_field.getAttribute("data-placeholder")}else if(this.is_multiple){this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||AbstractChosen.default_multiple_text}else{this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||AbstractChosen.default_single_text}
return this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||AbstractChosen.default_no_result_text};AbstractChosen.prototype.mouse_enter=function(){return this.mouse_on_container=!0};AbstractChosen.prototype.mouse_leave=function(){return this.mouse_on_container=!1};AbstractChosen.prototype.input_focus=function(evt){var _this=this;if(this.is_multiple){if(!this.active_field){return setTimeout((function(){return _this.container_mousedown()}),50)}}else{if(!this.active_field){return this.activate_field()}}};AbstractChosen.prototype.input_blur=function(evt){var _this=this;if(!this.mouse_on_container){this.active_field=!1;return setTimeout((function(){return _this.blur_test()}),100)}};AbstractChosen.prototype.results_option_build=function(options){var content,data,_i,_len,_ref;content='';_ref=this.results_data;for(_i=0,_len=_ref.length;_i<_len;_i++){data=_ref[_i];if(data.group){content+=this.result_add_group(data)}else{content+=this.result_add_option(data)}
if(options!=null?options.first:void 0){if(data.selected&&this.is_multiple){this.choice_build(data)}else if(data.selected&&!this.is_multiple){this.single_set_selected_text(data.text)}}}
return content};AbstractChosen.prototype.result_add_option=function(option){var classes,option_el;if(!option.search_match){return''}
if(!this.include_option_in_results(option)){return''}
classes=[];if(!option.disabled&&!(option.selected&&this.is_multiple)){classes.push("active-result")}
if(option.disabled&&!(option.selected&&this.is_multiple)){classes.push("disabled-result")}
if(option.selected){classes.push("result-selected")}
if(option.group_array_index!=null){classes.push("group-option")}
if(option.classes!==""){classes.push(option.classes)}
option_el=document.createElement("li");option_el.className=classes.join(" ");option_el.style.cssText=option.style;option_el.setAttribute("data-option-array-index",option.array_index);option_el.innerHTML=option.search_text;return this.outerHTML(option_el)};AbstractChosen.prototype.result_add_group=function(group){var group_el;if(!(group.search_match||group.group_match)){return''}
if(!(group.active_options>0)){return''}
group_el=document.createElement("li");group_el.className="group-result";group_el.innerHTML=group.search_text;return this.outerHTML(group_el)};AbstractChosen.prototype.results_update_field=function(){this.set_default_text();if(!this.is_multiple){this.results_reset_cleanup()}
this.result_clear_highlight();this.results_build();if(this.results_showing){return this.winnow_results()}};AbstractChosen.prototype.reset_single_select_options=function(){var result,_i,_len,_ref,_results;_ref=this.results_data;_results=[];for(_i=0,_len=_ref.length;_i<_len;_i++){result=_ref[_i];if(result.selected){_results.push(result.selected=!1)}else{_results.push(void 0)}}
return _results};AbstractChosen.prototype.results_toggle=function(){if(this.results_showing){return this.results_hide()}else{return this.results_show()}};AbstractChosen.prototype.results_search=function(evt){if(this.results_showing){return this.winnow_results()}else{return this.results_show()}};AbstractChosen.prototype.winnow_results=function(){var escapedSearchText,option,regex,regexAnchor,results,results_group,searchText,startpos,text,zregex,_i,_len,_ref;this.no_results_clear();results=0;searchText=this.get_search_text();escapedSearchText=searchText.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");regexAnchor=this.search_contains?"":"^";regex=new RegExp(regexAnchor+escapedSearchText,'i');zregex=new RegExp(escapedSearchText,'i');_ref=this.results_data;for(_i=0,_len=_ref.length;_i<_len;_i++){option=_ref[_i];option.search_match=!1;results_group=null;if(this.include_option_in_results(option)){if(option.group){option.group_match=!1;option.active_options=0}
if((option.group_array_index!=null)&&this.results_data[option.group_array_index]){results_group=this.results_data[option.group_array_index];if(results_group.active_options===0&&results_group.search_match){results+=1}
results_group.active_options+=1}
if(!(option.group&&!this.group_search)){option.search_text=option.group?option.label:option.html;option.search_match=this.search_string_match(option.search_text,regex);if(option.search_match&&!option.group){results+=1}
if(option.search_match){if(searchText.length){startpos=option.search_text.search(zregex);text=option.search_text.substr(0,startpos+searchText.length)+'</em>'+option.search_text.substr(startpos+searchText.length);option.search_text=text.substr(0,startpos)+'<em>'+text.substr(startpos)}
if(results_group!=null){results_group.group_match=!0}}else if((option.group_array_index!=null)&&this.results_data[option.group_array_index].search_match){option.search_match=!0}}}}
this.result_clear_highlight();if(results<1&&searchText.length){this.update_results_content("");return this.no_results(searchText)}else{this.update_results_content(this.results_option_build());return this.winnow_results_set_highlight()}};AbstractChosen.prototype.search_string_match=function(search_string,regex){var part,parts,_i,_len;if(regex.test(search_string)){return!0}else if(this.enable_split_word_search&&(search_string.indexOf(" ")>=0||search_string.indexOf("[")===0)){parts=search_string.replace(/\[|\]/g,"").split(" ");if(parts.length){for(_i=0,_len=parts.length;_i<_len;_i++){part=parts[_i];if(regex.test(part)){return!0}}}}};AbstractChosen.prototype.choices_count=function(){var option,_i,_len,_ref;if(this.selected_option_count!=null){return this.selected_option_count}
this.selected_option_count=0;_ref=this.form_field.options;for(_i=0,_len=_ref.length;_i<_len;_i++){option=_ref[_i];if(option.selected){this.selected_option_count+=1}}
return this.selected_option_count};AbstractChosen.prototype.choices_click=function(evt){evt.preventDefault();if(!(this.results_showing||this.is_disabled)){return this.results_show()}};AbstractChosen.prototype.keyup_checker=function(evt){var stroke,_ref;stroke=(_ref=evt.which)!=null?_ref:evt.keyCode;this.search_field_scale();switch(stroke){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0){return this.keydown_backstroke()}else if(!this.pending_backstroke){this.result_clear_highlight();return this.results_search()}
break;case 13:evt.preventDefault();if(this.results_showing){return this.result_select(evt)}
break;case 27:if(this.results_showing){this.results_hide()}
return!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}};AbstractChosen.prototype.clipboard_event_checker=function(evt){var _this=this;return setTimeout((function(){return _this.results_search()}),50)};AbstractChosen.prototype.container_width=function(){if(this.options.width!=null){return this.options.width}else{return""+this.form_field.offsetWidth+"px"}};AbstractChosen.prototype.include_option_in_results=function(option){if(this.is_multiple&&(!this.display_selected_options&&option.selected)){return!1}
if(!this.display_disabled_options&&option.disabled){return!1}
if(option.empty){return!1}
return!0};AbstractChosen.prototype.search_results_touchstart=function(evt){this.touch_started=!0;return this.search_results_mouseover(evt)};AbstractChosen.prototype.search_results_touchmove=function(evt){this.touch_started=!1;return this.search_results_mouseout(evt)};AbstractChosen.prototype.search_results_touchend=function(evt){if(this.touch_started){return this.search_results_mouseup(evt)}};AbstractChosen.prototype.outerHTML=function(element){var tmp;if(element.outerHTML){return element.outerHTML}
tmp=document.createElement("div");tmp.appendChild(element);return tmp.innerHTML};AbstractChosen.browser_is_supported=function(){return!0;if(window.navigator.appName==="Microsoft Internet Explorer"){return document.documentMode>=8}
if(/iP(od|hone)/i.test(window.navigator.userAgent)){return!1}
if(/Android/i.test(window.navigator.userAgent)){if(/Mobile/i.test(window.navigator.userAgent)){return!1}}
return!0};AbstractChosen.default_multiple_text="Select Some Options";AbstractChosen.default_single_text="Select an Option";AbstractChosen.default_no_result_text="No results match";return AbstractChosen})();$=jQuery;$.fn.extend({chosen:function(options){if(!AbstractChosen.browser_is_supported()){return this}
return this.each(function(input_field){var $this,chosen;$this=$(this);chosen=$this.data('chosen');if(options==='destroy'&&chosen){chosen.destroy()}else if(!chosen){$this.data('chosen',new Chosen(this,options))}})}});Chosen=(function(_super){__extends(Chosen,_super);function Chosen(){_ref=Chosen.__super__.constructor.apply(this,arguments);return _ref}
Chosen.prototype.setup=function(){this.form_field_jq=$(this.form_field);this.current_selectedIndex=this.form_field.selectedIndex;return this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")};Chosen.prototype.set_up_html=function(){var container_classes,container_props;container_classes=["chosen-container"];container_classes.push("chosen-container-"+(this.is_multiple?"multi":"single"));if(this.inherit_select_classes&&this.form_field.className){container_classes.push(this.form_field.className)}
if(this.is_rtl){container_classes.push("chosen-rtl")}
container_props={'class':container_classes.join(' '),'style':"width: "+(this.container_width())+";",'title':this.form_field.title};if(this.form_field.id.length){container_props.id=this.form_field.id.replace(/[^\w]/g,'_')+"_chosen"}
this.container=$("<div />",container_props);if(this.is_multiple){this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>')}else{this.container.html('<a class="chosen-single chosen-default" tabindex="-1"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>')}
this.form_field_jq.hide().after(this.container);this.dropdown=this.container.find('div.chosen-drop').first();this.search_field=this.container.find('input').first();this.search_results=this.container.find('ul.chosen-results').first();this.search_field_scale();this.search_no_results=this.container.find('li.no-results').first();if(this.is_multiple){this.search_choices=this.container.find('ul.chosen-choices').first();this.search_container=this.container.find('li.search-field').first()}else{this.search_container=this.container.find('div.chosen-search').first();this.selected_item=this.container.find('.chosen-single').first()}
this.results_build();this.set_tab_index();this.set_label_behavior();return this.form_field_jq.trigger("chosen:ready",{chosen:this})};Chosen.prototype.register_observers=function(){var _this=this;this.container.bind('mousedown.chosen',function(evt){_this.container_mousedown(evt)});this.container.bind('mouseup.chosen',function(evt){_this.container_mouseup(evt)});this.container.bind('mouseenter.chosen',function(evt){_this.mouse_enter(evt)});this.container.bind('mouseleave.chosen',function(evt){_this.mouse_leave(evt)});this.search_results.bind('mouseup.chosen',function(evt){_this.search_results_mouseup(evt)});this.search_results.bind('mouseover.chosen',function(evt){_this.search_results_mouseover(evt)});this.search_results.bind('mouseout.chosen',function(evt){_this.search_results_mouseout(evt)});this.search_results.bind('mousewheel.chosen DOMMouseScroll.chosen',function(evt){_this.search_results_mousewheel(evt)});this.search_results.bind('touchstart.chosen',function(evt){_this.search_results_touchstart(evt)});this.search_results.bind('touchmove.chosen',function(evt){_this.search_results_touchmove(evt)});this.search_results.bind('touchend.chosen',function(evt){_this.search_results_touchend(evt)});this.form_field_jq.bind("chosen:updated.chosen",function(evt){_this.results_update_field(evt)});this.form_field_jq.bind("chosen:activate.chosen",function(evt){_this.activate_field(evt)});this.form_field_jq.bind("chosen:open.chosen",function(evt){_this.container_mousedown(evt)});this.form_field_jq.bind("chosen:close.chosen",function(evt){_this.input_blur(evt)});this.search_field.bind('blur.chosen',function(evt){_this.input_blur(evt)});this.search_field.bind('keyup.chosen',function(evt){_this.keyup_checker(evt)});this.search_field.bind('keydown.chosen',function(evt){_this.keydown_checker(evt)});this.search_field.bind('focus.chosen',function(evt){_this.input_focus(evt)});this.search_field.bind('cut.chosen',function(evt){_this.clipboard_event_checker(evt)});this.search_field.bind('paste.chosen',function(evt){_this.clipboard_event_checker(evt)});if(this.is_multiple){return this.search_choices.bind('click.chosen',function(evt){_this.choices_click(evt)})}else{return this.container.bind('click.chosen',function(evt){evt.preventDefault()})}};Chosen.prototype.destroy=function(){$(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action);if(this.search_field[0].tabIndex){this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex}
this.container.remove();this.form_field_jq.removeData('chosen');return this.form_field_jq.show()};Chosen.prototype.search_field_disabled=function(){this.is_disabled=this.form_field_jq[0].disabled;if(this.is_disabled){this.container.addClass('chosen-disabled');this.search_field[0].disabled=!0;if(!this.is_multiple){this.selected_item.unbind("focus.chosen",this.activate_action)}
return this.close_field()}else{this.container.removeClass('chosen-disabled');this.search_field[0].disabled=!1;if(!this.is_multiple){return this.selected_item.bind("focus.chosen",this.activate_action)}}};Chosen.prototype.container_mousedown=function(evt){if(!this.is_disabled){if(evt&&evt.type==="mousedown"&&!this.results_showing){evt.preventDefault()}
if(!((evt!=null)&&($(evt.target)).hasClass("search-choice-close"))){if(!this.active_field){if(this.is_multiple){this.search_field.val("")}
$(this.container[0].ownerDocument).bind('click.chosen',this.click_test_action);this.results_show()}else if(!this.is_multiple&&evt&&(($(evt.target)[0]===this.selected_item[0])||$(evt.target).parents("a.chosen-single").length)){evt.preventDefault();this.results_toggle()}
return this.activate_field()}}};Chosen.prototype.container_mouseup=function(evt){if(evt.target.nodeName==="ABBR"&&!this.is_disabled){return this.results_reset(evt)}};Chosen.prototype.search_results_mousewheel=function(evt){var delta;if(evt.originalEvent){delta=-evt.originalEvent.wheelDelta||evt.originalEvent.detail}
if(delta!=null){evt.preventDefault();if(evt.type==='DOMMouseScroll'){delta=delta*40}
return this.search_results.scrollTop(delta+this.search_results.scrollTop())}};Chosen.prototype.blur_test=function(evt){if(!this.active_field&&this.container.hasClass("chosen-container-active")){return this.close_field()}};Chosen.prototype.close_field=function(){$(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action);this.active_field=!1;this.results_hide();this.container.removeClass("chosen-container-active");this.clear_backstroke();this.show_search_field_default();return this.search_field_scale()};Chosen.prototype.activate_field=function(){this.container.addClass("chosen-container-active");this.active_field=!0;this.search_field.val(this.search_field.val());return this.search_field.focus()};Chosen.prototype.test_active_click=function(evt){var active_container;active_container=$(evt.target).closest('.chosen-container');if(active_container.length&&this.container[0]===active_container[0]){return this.active_field=!0}else{return this.close_field()}};Chosen.prototype.results_build=function(){this.parsing=!0;this.selected_option_count=null;this.results_data=SelectParser.select_to_array(this.form_field);if(this.is_multiple){this.search_choices.find("li.search-choice").remove()}else if(!this.is_multiple){this.single_set_selected_text();if(this.disable_search||this.form_field.options.length<=this.disable_search_threshold){this.search_field[0].readOnly=!0;this.container.addClass("chosen-container-single-nosearch")}else{this.search_field[0].readOnly=!1;this.container.removeClass("chosen-container-single-nosearch")}}
this.update_results_content(this.results_option_build({first:!0}));this.search_field_disabled();this.show_search_field_default();this.search_field_scale();return this.parsing=!1};Chosen.prototype.result_do_highlight=function(el){var high_bottom,high_top,maxHeight,visible_bottom,visible_top;if(el.length){this.result_clear_highlight();this.result_highlight=el;this.result_highlight.addClass("highlighted");maxHeight=parseInt(this.search_results.css("maxHeight"),10);visible_top=this.search_results.scrollTop();visible_bottom=maxHeight+visible_top;high_top=this.result_highlight.position().top+this.search_results.scrollTop();high_bottom=high_top+this.result_highlight.outerHeight();if(high_bottom>=visible_bottom){return this.search_results.scrollTop((high_bottom-maxHeight)>0?high_bottom-maxHeight:0)}else if(high_top<visible_top){return this.search_results.scrollTop(high_top)}}};Chosen.prototype.result_clear_highlight=function(){if(this.result_highlight){this.result_highlight.removeClass("highlighted")}
return this.result_highlight=null};Chosen.prototype.results_show=function(){if(this.is_multiple&&this.max_selected_options<=this.choices_count()){this.form_field_jq.trigger("chosen:maxselected",{chosen:this});return!1}
this.container.addClass("chosen-with-drop");this.results_showing=!0;this.search_field.focus();this.search_field.val(this.search_field.val());this.winnow_results();return this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this})};Chosen.prototype.update_results_content=function(content){return this.search_results.html(content)};Chosen.prototype.results_hide=function(){if(this.results_showing){this.result_clear_highlight();this.container.removeClass("chosen-with-drop");this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})}
return this.results_showing=!1};Chosen.prototype.set_tab_index=function(el){var ti;if(this.form_field.tabIndex){ti=this.form_field.tabIndex;this.form_field.tabIndex=-1;return this.search_field[0].tabIndex=ti}};Chosen.prototype.set_label_behavior=function(){var _this=this;this.form_field_label=this.form_field_jq.parents("label");if(!this.form_field_label.length&&this.form_field.id.length){this.form_field_label=$("label[for='"+this.form_field.id+"']")}
if(this.form_field_label.length>0){return this.form_field_label.bind('click.chosen',function(evt){if(_this.is_multiple){return _this.container_mousedown(evt)}else{return _this.activate_field()}})}};Chosen.prototype.show_search_field_default=function(){if(this.is_multiple&&this.choices_count()<1&&!this.active_field){this.search_field.val(this.default_text);return this.search_field.addClass("default")}else{this.search_field.val("");return this.search_field.removeClass("default")}};Chosen.prototype.search_results_mouseup=function(evt){var target;target=$(evt.target).hasClass("active-result")?$(evt.target):$(evt.target).parents(".active-result").first();if(target.length){this.result_highlight=target;this.result_select(evt);return this.search_field.focus()}};Chosen.prototype.search_results_mouseover=function(evt){var target;target=$(evt.target).hasClass("active-result")?$(evt.target):$(evt.target).parents(".active-result").first();if(target){return this.result_do_highlight(target)}};Chosen.prototype.search_results_mouseout=function(evt){if($(evt.target).hasClass("active-result"||$(evt.target).parents('.active-result').first())){return this.result_clear_highlight()}};Chosen.prototype.choice_build=function(item){var choice,close_link,_this=this;choice=$('<li />',{"class":"search-choice"}).html("<span>"+item.html+"</span>");if(item.disabled){choice.addClass('search-choice-disabled')}else{close_link=$('<a />',{"class":'search-choice-close','data-option-array-index':item.array_index});close_link.bind('click.chosen',function(evt){return _this.choice_destroy_link_click(evt)});choice.append(close_link)}
return this.search_container.before(choice)};Chosen.prototype.choice_destroy_link_click=function(evt){evt.preventDefault();evt.stopPropagation();if(!this.is_disabled){return this.choice_destroy($(evt.target))}};Chosen.prototype.choice_destroy=function(link){if(this.result_deselect(link[0].getAttribute("data-option-array-index"))){this.show_search_field_default();if(this.is_multiple&&this.choices_count()>0&&this.search_field.val().length<1){this.results_hide()}
link.parents('li').first().remove();return this.search_field_scale()}};Chosen.prototype.results_reset=function(){this.reset_single_select_options();this.form_field.options[0].selected=!0;this.single_set_selected_text();this.show_search_field_default();this.results_reset_cleanup();this.form_field_jq.trigger("change");if(this.active_field){return this.results_hide()}};Chosen.prototype.results_reset_cleanup=function(){this.current_selectedIndex=this.form_field.selectedIndex;return this.selected_item.find("abbr").remove()};Chosen.prototype.result_select=function(evt){var high,item;if(this.result_highlight){high=this.result_highlight;this.result_clear_highlight();if(this.is_multiple&&this.max_selected_options<=this.choices_count()){this.form_field_jq.trigger("chosen:maxselected",{chosen:this});return!1}
if(this.is_multiple){high.removeClass("active-result")}else{this.reset_single_select_options()}
item=this.results_data[high[0].getAttribute("data-option-array-index")];item.selected=!0;this.form_field.options[item.options_index].selected=!0;this.selected_option_count=null;if(this.is_multiple){this.choice_build(item)}else{this.single_set_selected_text(item.text)}
if(!((evt.metaKey||evt.ctrlKey)&&this.is_multiple)){this.results_hide()}
this.search_field.val("");if(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex){this.form_field_jq.trigger("change",{'selected':this.form_field.options[item.options_index].value})}
this.current_selectedIndex=this.form_field.selectedIndex;evt.preventDefault();evt.stopPropagation();return this.search_field_scale()}};Chosen.prototype.single_set_selected_text=function(text){if(text==null){text=this.default_text}
if(text===this.default_text){this.selected_item.addClass("chosen-default")}else{this.single_deselect_control_build();this.selected_item.removeClass("chosen-default")}
return this.selected_item.find("span").text(text)};Chosen.prototype.result_deselect=function(pos){var result_data;result_data=this.results_data[pos];if(!this.form_field.options[result_data.options_index].disabled){result_data.selected=!1;this.form_field.options[result_data.options_index].selected=!1;this.selected_option_count=null;this.result_clear_highlight();if(this.results_showing){this.winnow_results()}
this.form_field_jq.trigger("change",{deselected:this.form_field.options[result_data.options_index].value});this.search_field_scale();return!0}else{return!1}};Chosen.prototype.single_deselect_control_build=function(){if(!this.allow_single_deselect){return}
if(!this.selected_item.find("abbr").length){this.selected_item.find("span").first().after("<abbr class=\"search-choice-close\"></abbr>")}
return this.selected_item.addClass("chosen-single-with-deselect")};Chosen.prototype.get_search_text=function(){if(this.search_field.val()===this.default_text){return""}else{return $('<div/>').text($.trim(this.search_field.val())).html()}};Chosen.prototype.winnow_results_set_highlight=function(){var do_high,selected_results;selected_results=!this.is_multiple?this.search_results.find(".result-selected.active-result"):[];do_high=selected_results.length?selected_results.first():this.search_results.find(".active-result").first();if(do_high!=null){return this.result_do_highlight(do_high)}};Chosen.prototype.no_results=function(terms){var no_results_html;no_results_html=$('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>');no_results_html.find("span").first().html(terms);this.search_results.append(no_results_html);return this.form_field_jq.trigger("chosen:no_results",{chosen:this})};Chosen.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()};Chosen.prototype.keydown_arrow=function(){var next_sib;if(this.results_showing&&this.result_highlight){next_sib=this.result_highlight.nextAll("li.active-result").first();if(next_sib){return this.result_do_highlight(next_sib)}}else{return this.results_show()}};Chosen.prototype.keyup_arrow=function(){var prev_sibs;if(!this.results_showing&&!this.is_multiple){return this.results_show()}else if(this.result_highlight){prev_sibs=this.result_highlight.prevAll("li.active-result");if(prev_sibs.length){return this.result_do_highlight(prev_sibs.first())}else{if(this.choices_count()>0){this.results_hide()}
return this.result_clear_highlight()}}};Chosen.prototype.keydown_backstroke=function(){var next_available_destroy;if(this.pending_backstroke){this.choice_destroy(this.pending_backstroke.find("a").first());return this.clear_backstroke()}else{next_available_destroy=this.search_container.siblings("li.search-choice").last();if(next_available_destroy.length&&!next_available_destroy.hasClass("search-choice-disabled")){this.pending_backstroke=next_available_destroy;if(this.single_backstroke_delete){return this.keydown_backstroke()}else{return this.pending_backstroke.addClass("search-choice-focus")}}}};Chosen.prototype.clear_backstroke=function(){if(this.pending_backstroke){this.pending_backstroke.removeClass("search-choice-focus")}
return this.pending_backstroke=null};Chosen.prototype.keydown_checker=function(evt){var stroke,_ref1;stroke=(_ref1=evt.which)!=null?_ref1:evt.keyCode;this.search_field_scale();if(stroke!==8&&this.pending_backstroke){this.clear_backstroke()}
switch(stroke){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:if(this.results_showing&&!this.is_multiple){this.result_select(evt)}
this.mouse_on_container=!1;break;case 13:evt.preventDefault();break;case 38:evt.preventDefault();this.keyup_arrow();break;case 40:evt.preventDefault();this.keydown_arrow();break}};Chosen.prototype.search_field_scale=function(){var div,f_width,h,style,style_block,styles,w,_i,_len;if(this.is_multiple){h=0;w=0;style_block="position:absolute; left: -1000px; top: -1000px; display:none;";styles=['font-size','font-style','font-weight','font-family','line-height','text-transform','letter-spacing'];for(_i=0,_len=styles.length;_i<_len;_i++){style=styles[_i];style_block+=style+":"+this.search_field.css(style)+";"}
div=$('<div />',{'style':style_block});div.text(this.search_field.val());$('body').append(div);w=div.width()+25;div.remove();f_width=this.container.outerWidth();if(w>f_width-10){w=f_width-10}
return this.search_field.css({'width':w+'px'})}};return Chosen})(AbstractChosen)}).call(this);"use strict";!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){"namespace sumo";e.fn.SumoSelect=function(t){var l=e.extend({placeholder:"Select Here",csvDispCount:3,captionFormat:"{0} Selected",captionFormatAllSelected:"{0} all selected!",floatWidth:400,forceCustomRendering:!1,nativeOnDevice:["Android","BlackBerry","iPhone","iPad","iPod","Opera Mini","IEMobile","Silk"],outputAsCSV:!1,csvSepChar:",",okCancelInMulti:!1,isClickAwayOk:!1,triggerChangeCombined:!0,selectAll:!1,search:!1,searchText:"Search...",searchFn:function(e,t){return e.toLowerCase().indexOf(t.toLowerCase())<0},noMatch:'No matches for "{0}"',prefix:"",locale:["OK","Cancel","Select All"],up:!1,showTitle:!0},t),i=this.each(function(){var i=this;!this.sumo&&e(this).is("select")&&(this.sumo={E:e(i),is_multi:e(i).attr("multiple"),select:"",caption:"",placeholder:"",optDiv:"",CaptionCont:"",ul:"",is_floating:!1,is_opened:!1,mob:!1,Pstate:[],lastUnselected:null,createElems:function(){var t=this;if(t.E.wrap('<div class="SumoSelect" tabindex="0" role="button" aria-expanded="false">'),t.select=t.E.parent(),t.caption=e("<span>"),t.CaptionCont=e('<p class="CaptionCont SelectBox" ><label><i></i></label></p>').attr("style",t.E.attr("style")).prepend(t.caption),t.select.append(t.CaptionCont),t.is_multi||(l.okCancelInMulti=!1),t.E.attr("disabled")&&t.select.addClass("disabled").removeAttr("tabindex"),l.outputAsCSV&&t.is_multi&&t.E.attr("name")&&(t.select.append(e('<input class="HEMANT123" type="hidden" />').attr("name",t.E.attr("name")).val(t.getSelStr())),t.E.removeAttr("name")),t.isMobile()&&!l.forceCustomRendering)return void t.setNativeMobile();t.E.attr("name")&&t.select.addClass("sumo_"+t.E.attr("name").replace(/\[\]/,"")),t.E.addClass("SumoUnder").attr("tabindex","-1"),t.optDiv=e('<div class="optWrapper '+(l.up?"up":"")+'">'),t.floatingList(),t.ul=e('<ul class="options">'),t.optDiv.append(t.ul),l.selectAll&&t.is_multi&&t.SelAll(),l.search&&t.Search(),t.ul.append(t.prepItems(t.E.children())),t.is_multi&&t.multiSelelect(),t.select.append(t.optDiv),t.basicEvents(),t.selAllState()},prepItems:function(t,l){var i=[],n=this;return e(t).each(function(t,s){s=e(s),i.push(s.is("optgroup")?e('<li class="group '+(s[0].disabled?"disabled":"")+'"><label>'+s.attr("label")+"</label><ul></ul></li>").find("ul").append(n.prepItems(s.children(),s[0].disabled)).end():n.createLi(s,l))}),i},createLi:function(t,l){var i=this;t.attr("value")||t.attr("value",t.val());var n=e('<li class="opt"><label>'+t.text()+"</label></li>");return n.data("opt",t),t.data("li",n),i.is_multi&&n.prepend("<span><i></i></span>"),(t[0].disabled||l)&&(n=n.addClass("disabled")),i.onOptClick(n),t[0].selected&&n.addClass("selected"),t.attr("class")&&n.addClass(t.attr("class")),t.attr("title")&&n.attr("title",t.attr("title")),n},getSelStr:function(){var t=[];return this.E.find("option:selected").each(function(){t.push(e(this).val())}),t.join(l.csvSepChar)},multiSelelect:function(){var t=this;t.optDiv.addClass("multiple"),t.okbtn=e('<p tabindex="0" class="btnOk">'+l.locale[0]+"</p>").click(function(){t._okbtn(),t.hideOpts()}),t.cancelBtn=e('<p tabindex="0" class="btnCancel">'+l.locale[1]+"</p>").click(function(){t._cnbtn(),t.hideOpts()});var i=t.okbtn.add(t.cancelBtn);t.optDiv.append(e('<div class="MultiControls">').append(i)),i.on("keydown.sumo",function(l){var i=e(this);switch(l.which){case 32:case 13:i.trigger("click");break;case 9:if(i.hasClass("btnOk"))return;case 27:return t._cnbtn(),void t.hideOpts()}l.stopPropagation(),l.preventDefault()})},_okbtn:function(){var e=this,t=0;l.triggerChangeCombined&&(e.E.find("option:selected").length!==e.Pstate.length?t=1:e.E.find("option").each(function(l,i){i.selected&&e.Pstate.indexOf(l)<0&&(t=1)}),t&&(e.callChange(),e.setText()))},_cnbtn:function(){var e=this;e.E.find("option:selected").each(function(){this.selected=!1}),e.optDiv.find("li.selected").removeClass("selected");for(var t=0;t<e.Pstate.length;t++)e.E.find("option")[e.Pstate[t]].selected=!0,e.ul.find("li.opt").eq(e.Pstate[t]).addClass("selected");e.selAllState()},SelAll:function(){var t=this;t.is_multi&&(t.selAll=e('<p class="select-all"><span><i></i></span><label>'+l.locale[2]+"</label></p>"),t.optDiv.addClass("selall"),t.selAll.on("click",function(){t.selAll.toggleClass("selected"),t.toggSelAll(t.selAll.hasClass("selected"),1)}),t.optDiv.prepend(t.selAll))},Search:function(){var i=this,n=i.CaptionCont.addClass("search"),s=e('<p class="no-match">'),a=t.searchFn&&"function"==typeof t.searchFn?t.searchFn:l.searchFn;i.ftxt=e('<input type="text" class="search-txt" value="" placeholder="'+l.searchText+'">').on("click",function(e){e.stopPropagation()}),n.append(i.ftxt),i.optDiv.children("ul").after(s),i.ftxt.on("keyup.sumo",function(){var t=i.optDiv.find("ul.options li.opt").each(function(t,l){var n=(l=e(l)).data("opt")[0];n.hidden=a(l.text(),i.ftxt.val()),l.toggleClass("hidden",n.hidden)}).not(".hidden");s.html(l.noMatch.replace(/\{0\}/g,"<em></em>")).toggle(!t.length),s.find("em").text(i.ftxt.val()),i.selAllState()})},selAllState:function(){var t=this;if(l.selectAll&&t.is_multi){var i=0,n=0;t.optDiv.find("li.opt").not(".hidden").each(function(t,l){e(l).hasClass("selected")&&i++,e(l).hasClass("disabled")||n++}),i===n?t.selAll.removeClass("partial").addClass("selected"):0===i?t.selAll.removeClass("selected partial"):t.selAll.addClass("partial")}},showOpts:function(){var t=this;if(!t.E.attr("disabled")){if(t.E.trigger("sumo:opening",t),t.is_opened=!0,t.select.addClass("open").attr("aria-expanded","true"),t.E.trigger("sumo:opened",t),t.ftxt?t.ftxt.focus():t.select.focus(),e(document).on("click.sumo",function(e){if(!t.select.is(e.target)&&0===t.select.has(e.target).length){if(!t.is_opened)return;t.hideOpts(),l.okCancelInMulti&&(l.isClickAwayOk?t._okbtn():t._cnbtn())}}),t.is_floating){var i=t.optDiv.children("ul").outerHeight()+2;t.is_multi&&(i+=parseInt(t.optDiv.css("padding-bottom"))),t.optDiv.css("height",i),e("body").addClass("sumoStopScroll")}t.setPstate()}},setPstate:function(){var e=this;e.is_multi&&(e.is_floating||l.okCancelInMulti)&&(e.Pstate=[],e.E.find("option").each(function(t,l){l.selected&&e.Pstate.push(t)}))},callChange:function(){this.E.trigger("change").trigger("click")},hideOpts:function(){var t=this;t.is_opened&&(t.E.trigger("sumo:closing",t),t.is_opened=!1,t.select.removeClass("open").attr("aria-expanded","true").find("ul li.sel").removeClass("sel"),t.E.trigger("sumo:closed",t),e(document).off("click.sumo"),t.select.focus(),e("body").removeClass("sumoStopScroll"),l.search&&(t.ftxt.val(""),t.ftxt.trigger("keyup.sumo")))},setOnOpen:function(){var e=this,t=e.optDiv.find("li.opt:not(.hidden)").eq(l.search?0:e.E[0].selectedIndex);t.hasClass("disabled")&&!(t=t.next(":not(disabled)")).length||(e.optDiv.find("li.sel").removeClass("sel"),t.addClass("sel"),e.showOpts())},nav:function(e){var t,l=this,i=l.ul.find("li.opt:not(.disabled, .hidden)"),n=l.ul.find("li.opt.sel:not(.hidden)"),s=i.index(n);if(l.is_opened&&n.length){if(e&&s>0)t=i.eq(s-1);else{if(!(!e&&s<i.length-1&&s>-1))return;t=i.eq(s+1)}n.removeClass("sel"),n=t.addClass("sel");var a=l.ul,o=a.scrollTop(),c=n.position().top+o;c>=o+a.height()-n.outerHeight()&&a.scrollTop(c-a.height()+n.outerHeight()),c<o&&a.scrollTop(c)}else l.setOnOpen()},basicEvents:function(){var t=this;t.CaptionCont.click(function(e){t.E.trigger("click"),t.is_opened?t.hideOpts():t.showOpts(),e.stopPropagation()}),t.select.on("keydown.sumo",function(e){switch(e.which){case 38:t.nav(!0);break;case 40:t.nav(!1);break;case 65:if(t.is_multi&&e.ctrlKey){t.toggSelAll(!e.shiftKey,1);break}return;case 32:if(l.search&&t.ftxt.is(e.target))return;case 13:t.is_opened?t.optDiv.find("ul li.sel").trigger("click"):t.setOnOpen();break;case 9:return void(l.okCancelInMulti||t.hideOpts());case 27:return l.okCancelInMulti&&t._cnbtn(),void t.hideOpts();default:return}e.preventDefault()}),e(window).on("resize.sumo",function(){t.floatingList()})},onOptClick:function(t){var i=this;t.click(function(){var t=e(this);t.hasClass("disabled")||(i.is_multi?(t.toggleClass("selected"),t.data("opt")[0].selected=t.hasClass("selected"),!1===t.data("opt")[0].selected&&(i.lastUnselected=t.data("opt")[0].textContent),i.selAllState()):(t.parent().find("li.selected").removeClass("selected"),t.toggleClass("selected"),t.data("opt")[0].selected=!0),i.is_multi&&l.triggerChangeCombined&&(i.is_floating||l.okCancelInMulti)||(i.setText(),i.callChange()),i.is_multi||i.hideOpts())})},setText:function(){var t=this;if(t.placeholder="",t.is_multi){for(var i=t.E.find(":selected").not(":disabled"),n=0;n<i.length;n++){if(n+1>=l.csvDispCount&&l.csvDispCount){i.length===t.E.find("option").length&&l.captionFormatAllSelected?t.placeholder=l.captionFormatAllSelected.replace(/\{0\}/g,i.length)+",":t.placeholder=l.captionFormat.replace(/\{0\}/g,i.length)+",";break}t.placeholder+=e(i[n]).text()+", "}t.placeholder=t.placeholder.replace(/,([^,]*)$/,"$1")}else t.placeholder=t.E.find(":selected").not(":disabled").text();var s=!1;t.placeholder||(s=!0,t.placeholder=t.E.attr("placeholder"),t.placeholder||(t.placeholder=t.E.find("option:disabled:selected").text())),t.placeholder=t.placeholder?l.prefix+" "+t.placeholder:l.placeholder,t.caption.html(t.placeholder),l.showTitle&&t.CaptionCont.attr("title",t.placeholder);var a=t.select.find("input.HEMANT123");return a.length&&a.val(t.getSelStr()),s?t.caption.addClass("placeholder"):t.caption.removeClass("placeholder"),t.placeholder},isMobile:function(){for(var e=navigator.userAgent||navigator.vendor||window.opera,t=0;t<l.nativeOnDevice.length;t++)if(e.toString().toLowerCase().indexOf(l.nativeOnDevice[t].toLowerCase())>0)return l.nativeOnDevice[t];return!1},setNativeMobile:function(){var e=this;e.E.addClass("SelectClass"),e.mob=!0,e.E.change(function(){e.setText()})},floatingList:function(){var t=this;t.is_floating=e(window).width()<=l.floatWidth,t.optDiv.toggleClass("isFloating",t.is_floating),t.is_floating||t.optDiv.css("height",""),t.optDiv.toggleClass("okCancelInMulti",l.okCancelInMulti&&!t.is_floating)},vRange:function(e){var t=this;if(t.E.find("option").length<=e||e<0)throw"index out of bounds";return t},toggSel:function(t,l){var i,n=this;"number"==typeof l?(n.vRange(l),i=n.E.find("option")[l]):i=n.E.find('option[value="'+l+'"]')[0]||0,i&&!i.disabled&&i.selected!==t&&(i.selected=t,n.mob||e(i).data("li").toggleClass("selected",t),n.callChange(),n.setPstate(),n.setText(),n.selAllState())},toggDis:function(e,t){var l=this.vRange(t);l.E.find("option")[t].disabled=e,e&&(l.E.find("option")[t].selected=!1),l.mob||l.optDiv.find("ul.options li").eq(t).toggleClass("disabled",e).removeClass("selected"),l.setText()},toggSumo:function(e){var t=this;return t.enabled=e,t.select.toggleClass("disabled",e),e?(t.E.attr("disabled","disabled"),t.select.removeAttr("tabindex")):(t.E.removeAttr("disabled"),t.select.attr("tabindex","0")),t},toggSelAll:function(t,l){var i=this;i.E.find("option:not(:disabled,:hidden)").each(function(l,i){var n=i.selected;(i=e(i).data("li")).hasClass("hidden")||(t?n||i.trigger("click"):n&&i.trigger("click"))}),l||(!i.mob&&i.selAll&&i.selAll.removeClass("partial").toggleClass("selected",!!t),i.callChange(),i.setText(),i.setPstate())},reload:function(){var t=this.unload();return e(t).SumoSelect(l)},unload:function(){var e=this;return e.select.before(e.E),e.E.show(),l.outputAsCSV&&e.is_multi&&e.select.find("input.HEMANT123").length&&e.E.attr("name",e.select.find("input.HEMANT123").attr("name")),e.select.remove(),delete i.sumo,i},add:function(t,l,n){if(void 0===t)throw"No value to add";var s=this,a=s.E.find("option");"number"==typeof l&&(n=l,l=t),void 0===l&&(l=t);var o=e("<option></option>").val(t).html(l);if(a.length<n)throw"index out of bounds";return void 0===n||a.length===n?(s.E.append(o),s.mob||s.ul.append(s.createLi(o))):(a.eq(n).before(o),s.mob||s.ul.find("li.opt").eq(n).before(s.createLi(o))),i},remove:function(e){var t=this.vRange(e);t.E.find("option").eq(e).remove(),t.mob||t.optDiv.find("ul.options li").eq(e).remove(),t.setText()},removeAll:function(){for(var e=this,t=e.E.find("option"),l=t.length-1;l>=0;l--)!0!==t[l].selected&&e.remove(l)},find:function(e){var t=this.E.find("option");for(var l in t)if(t[l].value===e)return parseInt(l);return-1},selectItem:function(e){this.toggSel(!0,e)},unSelectItem:function(e){this.toggSel(!1,e)},selectAll:function(){this.toggSelAll(!0)},unSelectAll:function(){this.toggSelAll(!1)},disableItem:function(e){this.toggDis(!0,e)},enableItem:function(e){this.toggDis(!1,e)},enabled:!0,enable:function(){return this.toggSumo(!1)},disable:function(){return this.toggSumo(!0)},init:function(){var e=this;return e.createElems(),e.setText(),e}},i.sumo.init())});return 1===i.length?i[0]:i}});class SumoSelect{constructor(){this._init()}_init(){jQuery(document).ready(function(){jQuery(".woocommerce-currency-switcher,.woocommerce-fillter >.select, .woocommerce-ordering > .orderby, .tbay-filter select").SumoSelect({csvDispCount:3,captionFormatAllSelected:"Yeah, OK, so everything."}),jQuery(".tbay-search-form select").SumoSelect({forceCustomRendering:!0})})}}!function(e){jQuery(document).ready(function(){function e(e){new SumoSelect}new SumoSelect,jQuery(document).on("woof_ajax_done",e)})}(jQuery);"use strict";!function(t,n,e,i){var s=function(i,s){this.elem=i,this.$elem=t(i),this.options=s,this.metadata=this.$elem.data("plugin-options"),this.$win=t(n),this.sections={},this.didScroll=!1,this.$doc=t(e),this.docHeight=this.$doc.height()};s.prototype={defaults:{navItems:"a",currentClass:"current",changeHash:!1,easing:"swing",filter:"",scrollSpeed:750,scrollThreshold:.5,begin:!1,end:!1,scrollChange:!1},init:function(){return this.config=t.extend({},this.defaults,this.options,this.metadata),this.$nav=this.$elem.find(this.config.navItems),""!==this.config.filter&&(this.$nav=this.$nav.filter(this.config.filter)),this.$nav.on("click.onePageNav",t.proxy(this.handleClick,this)),this.getPositions(),this.bindInterval(),this.$win.on("resize.onePageNav",t.proxy(this.getPositions,this)),this},adjustNav:function(t,n){t.$elem.find("."+t.config.currentClass).removeClass(t.config.currentClass),n.addClass(t.config.currentClass)},bindInterval:function(){var t,n=this;n.$win.on("scroll.onePageNav",function(){n.didScroll=!0}),n.t=setInterval(function(){t=n.$doc.height(),n.didScroll&&(n.didScroll=!1,n.scrollChange()),t!==n.docHeight&&(n.docHeight=t,n.getPositions())},250)},getHash:function(t){return t.attr("href").split("#")[1]},getPositions:function(){var n,e,i,s=this;s.$nav.each(function(){n=s.getHash(t(this)),(i=t("#"+n)).length&&(e=i.offset().top,s.sections[n]=Math.round(e))})},getSection:function(t){var n=null,e=Math.round(this.$win.height()*this.config.scrollThreshold);for(var i in this.sections)this.sections[i]-e<t&&(n=i);return n},handleClick:function(e){var i=this,s=t(e.currentTarget),o=s.parent(),a="#"+i.getHash(s);o.hasClass(i.config.currentClass)||(i.config.begin&&i.config.begin(),i.adjustNav(i,o),i.unbindInterval(),i.scrollTo(a,function(){i.config.changeHash&&(n.location.hash=a),i.bindInterval(),i.config.end&&i.config.end()})),e.preventDefault()},scrollChange:function(){var t,n=this.$win.scrollTop(),e=this.getSection(n);null!==e&&((t=this.$elem.find('a[href$="#'+e+'"]').parent()).hasClass(this.config.currentClass)||(this.adjustNav(this,t),this.config.scrollChange&&this.config.scrollChange(t)))},scrollTo:function(n,e){var i=t(n).offset().top;t("html, body").animate({scrollTop:i-this.config.scrollOffset},this.config.scrollSpeed,this.config.easing,e)},unbindInterval:function(){clearInterval(this.t),this.$win.unbind("scroll.onePageNav")}},s.defaults=s.prototype.defaults,t.fn.onePageNav=function(t){return this.each(function(){new s(this,t).init()})}}(jQuery,window,document);class OnePageNav{constructor(){this._productSingleOnepagenav()}_productSingleOnepagenav(){if($("#sticky-menu-bar").length>0){let t=0;$("#wpadminbar").length>0&&(t=$("#wpadminbar").outerHeight());let n=$("#sticky-menu-bar").outerHeight()+t;$("#sticky-menu-bar").onePageNav({currentClass:"current",changeHash:!1,scrollSpeed:750,scrollThreshold:.5,scrollOffset:n,filter:"",easing:"swing",begin:function(){},end:function(){},scrollChange:function(){}})}var t=$("#sticky-menu-bar");if(t.length>0){if(0===$("#tbay-header").length&&0===$("#tbay-customize-header").length)return;var n=$(window).width();$("#tbay-header").length>0&&$("#tbay-header").removeClass("main-sticky-header"),$("#tbay-customize-header").length>0&&$("#tbay-customize-header").removeClass("main-sticky-header");var e=$(".single_add_to_cart_button").length>0?$(".single_add_to_cart_button").offset().top:0,i=$("div.product .out-of-stock").length>0?$("div.product .out-of-stock").offset().top:0;$(".by-vendor-name-link").length>0&&(i=$(".by-vendor-name-link").offset().top);var s=$(".single_add_to_cart_button").length>0?e:i;this._checkScroll(n,s,t),$(window).scroll(()=>{this._checkScroll(n,s,t)})}t.hasClass("active")&&jQuery("#wpadminbar").length>0&&t.css("top",$("#wpadminbar").height())}_checkScroll(t,n,e){t>=768&&$(window).scrollTop()>n?(e.addClass("active"),jQuery("#wpadminbar").length>0&&e.css("top",$("#wpadminbar").height())):e.removeClass("active")}}$(document).ready(function(t){new OnePageNav});!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!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},n.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,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},i.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=i(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=i(t).data("slick")||{},n.options=i.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=i.proxy(n.autoPlay,n),n.autoPlayClear=i.proxy(n.autoPlayClear,n),n.autoPlayIterator=i.proxy(n.autoPlayIterator,n),n.changeSlide=i.proxy(n.changeSlide,n),n.clickHandler=i.proxy(n.clickHandler,n),n.selectHandler=i.proxy(n.selectHandler,n),n.setPosition=i.proxy(n.setPosition,n),n.swipeHandler=i.proxy(n.swipeHandler,n),n.dragHandler=i.proxy(n.dragHandler,n),n.keyHandler=i.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,t,o){var s=this;if("boolean"==typeof t)o=t,t=null;else if(t<0||t>=s.slideCount)return!1;s.unload(),"number"==typeof t?0===t&&0===s.$slides.length?i(e).appendTo(s.$slideTrack):o?i(e).insertBefore(s.$slides.eq(t)):i(e).insertAfter(s.$slides.eq(t)):!0===o?i(e).prependTo(s.$slideTrack):i(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,t){i(t).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.animate({height:e},i.options.speed)}},e.prototype.animateSlide=function(e,t){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,t):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,t):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),i({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(i){i=Math.ceil(i),!1===s.options.vertical?(o[s.animType]="translate("+i+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+i+"px)",s.$slideTrack.css(o))},complete:function(){t&&t.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),t&&setTimeout(function(){s.disableTransition(),t.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=i(t).not(e.$slider)),t},e.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=i(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},e.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0&&(i.direction=1))),i.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=i(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=i(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,t,o=this;if(!0===o.options.dots){for(o.$slider.addClass("slick-dotted"),t=i("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)t.append(i("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=t.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){i(t).attr("data-slick-index",e).data("originalStyling",i(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var i,e,t,o,s,n,r,l=this;if(o=document.createDocumentFragment(),n=l.$slider.children(),l.options.rows>1){for(r=l.options.slidesPerRow*l.options.rows,s=Math.ceil(n.length/r),i=0;i<s;i++){var d=document.createElement("div");for(e=0;e<l.options.rows;e++){var a=document.createElement("div");for(t=0;t<l.options.slidesPerRow;t++){var c=i*r+(e*l.options.slidesPerRow+t);n.get(c)&&a.appendChild(n.get(c))}d.appendChild(a)}o.appendChild(d)}l.$slider.empty().append(o),l.$slider.children().children().children().css({width:100/l.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,t){var o,s,n,r=this,l=!1,d=r.$slider.width(),a=window.innerWidth||i(window).width();if("window"===r.respondTo?n=a:"slider"===r.respondTo?n=d:"min"===r.respondTo&&(n=Math.min(a,d)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(!1===r.originalSettings.mobileFirst?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||t)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=i.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),l=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),l=s),e||!1===l||r.$slider.trigger("breakpoint",[r,l])}},e.prototype.changeSlide=function(e,t){var o,s,n,r=this,l=i(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),n=r.slideCount%r.options.slidesToScroll!=0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,t);break;case"next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,t);break;case"index":var d=0===e.data.index?0:e.data.index||l.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(d),!1,t),l.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(i){var e,t;if(e=this.getNavigableIndexes(),t=0,i>e[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(i("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",i.proxy(e.interrupt,e,!0)).off("mouseleave.slick",i.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),i(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().off("click.slick",e.selectHandler),i(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),i(window).off("resize.slick.slick-"+e.instanceUid,e.resize),i("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),i(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var i,e=this;e.options.rows>1&&((i=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(i))},e.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},e.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),i(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){i(this).attr("style",i(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},e.prototype.disableTransition=function(i){var e=this,t={};t[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(t):e.$slides.eq(i).css(t)},e.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.fadeSlideOut=function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var o=i(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=o.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},e.prototype.getLeft=function(i){var e,t,o,s,n=this,r=0;return n.slideOffset=0,t=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=t*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!=0&&i+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(i>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(i-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(i-n.slideCount))*t*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*t*-1))):i+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(i+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(i+n.options.slidesToShow-n.slideCount)*t),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?i*n.slideWidth*-1+n.slideOffset:i*t*-1+r,!0===n.options.variableWidth&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===n.options.centerMode&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(i):n.$slideTrack.children(".slick-slide").eq(i+n.options.slidesToShow+1),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(i){return this.options[i]},e.prototype.getNavigableIndexes=function(){var i,e=this,t=0,o=0,s=[];for(!1===e.options.infinite?i=e.slideCount:(t=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,i=2*e.slideCount);t<i;)s.push(t),t=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,t,o=this;return t=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(s,n){if(n.offsetLeft-t+i(n).outerWidth()/2>-1*o.swipeLeft)return e=n,!1}),Math.abs(i(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:parseInt(i)}},e)},e.prototype.init=function(e){var t=this;i(t.$slider).hasClass("slick-initialized")||(i(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},e.prototype.initADA=function(){var e=this,t=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(i){return i>=0&&i<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t){var s=o.indexOf(t);i(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+t,tabindex:-1}),-1!==s&&i(this).attr({"aria-describedby":"slick-slide-control"+e.instanceUid+s})}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];i(this).attr({role:"presentation"}),i(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+t,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.$slides.eq(s).attr("tabindex",0);e.activateADA()},e.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),!0===i.options.accessibility&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(i("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&i("li",e.$dots).on("mouseenter.slick",i.proxy(e.interrupt,e,!0)).on("mouseleave.slick",i.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",i.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",i.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),i(document).on(e.visibilityChange,i.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,i.proxy(e.orientationChange,e)),i(window).on("resize.slick.slick-"+e.instanceUid,i.proxy(e.resize,e)),i("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),i(e.setPosition)},e.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},e.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){i("img[data-lazy]",e).each(function(){var e=i(this),t=i(this).attr("data-lazy"),o=i(this).attr("data-srcset"),s=i(this).attr("data-sizes")||n.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0},100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,e,t])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,t])},r.src=t})}var t,o,s,n=this;if(!0===n.options.centerMode?!0===n.options.infinite?s=(o=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(o=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),s=n.options.slidesToShow/2+1+2+n.currentSlide):(o=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,s=Math.ceil(o+n.options.slidesToShow),!0===n.options.fade&&(o>0&&o--,s<=n.slideCount&&s++)),t=n.$slider.find(".slick-slide").slice(o,s),"anticipated"===n.options.lazyLoad)for(var r=o-1,l=s,d=n.$slider.find(".slick-slide"),a=0;a<n.options.slidesToScroll;a++)r<0&&(r=n.slideCount-1),t=(t=t.add(d.eq(r))).add(d.eq(l)),r--,l++;e(t),n.slideCount<=n.options.slidesToShow?e(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?e(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&e(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},e.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var i=this;i.checkResponsive(),i.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var i=this;i.autoPlayClear(),i.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},e.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&i(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(i){i.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var t,o,s,n,r,l=this,d=i("img[data-lazy]",l.$slider);d.length?(t=d.first(),o=t.attr("data-lazy"),s=t.attr("data-srcset"),n=t.attr("data-sizes")||l.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(t.attr("srcset",s),n&&t.attr("sizes",n)),t.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===l.options.adaptiveHeight&&l.setPosition(),l.$slider.trigger("lazyLoaded",[l,t,o]),l.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){l.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),l.$slider.trigger("lazyLoadError",[l,t,o]),l.progressiveLazyLoad())},r.src=o):l.$slider.trigger("allImagesLoaded",[l])},e.prototype.refresh=function(e){var t,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),t=s.currentSlide,s.destroy(!0),i.extend(s,s.initials,{currentSlide:t}),s.init(),e||s.changeSlide({data:{message:"index",index:t}},!1)},e.prototype.registerBreakpoints=function(){var e,t,o,s=this,n=s.options.responsive||null;if("array"===i.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===t&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(t),s.breakpointSettings[t]=n[e].settings}s.breakpoints.sort(function(i,e){return s.options.mobileFirst?i-e:e-i})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&i(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;i(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),!0===t?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(i).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},e.prototype.setCSS=function(i){var e,t,o=this,s={};!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1===o.transformsEnabled?o.$slideTrack.css(s):(s={},!1===o.cssTransitions?(s[o.animType]="translate("+e+", "+t+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+t+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var i=this;!1===i.options.vertical?!0===i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===i.options.variableWidth?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length)));var e=i.$slides.first().outerWidth(!0)-i.$slides.first().width();!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(o,s){e=t.slideWidth*o*-1,!0===t.options.rtl?i(s).css({position:"relative",right:e,top:0,zIndex:t.options.zIndex-2,opacity:0}):i(s).css({position:"relative",left:e,top:0,zIndex:t.options.zIndex-2,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var i=this;if(1===i.options.slidesToShow&&!0===i.options.adaptiveHeight&&!1===i.options.vertical){var e=i.$slides.eq(i.currentSlide).outerHeight(!0);i.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,t,o,s,n,r=this,l=!1;if("object"===i.type(arguments[0])?(o=arguments[0],l=arguments[1],n="multiple"):"string"===i.type(arguments[0])&&(o=arguments[0],s=arguments[1],l=arguments[2],"responsive"===arguments[0]&&"array"===i.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)i.each(o,function(i,e){r.options[i]=e});else if("responsive"===n)for(t in s)if("array"!==i.type(r.options.responsive))r.options.responsive=[s[t]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[t].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[t])}l&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},e.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(i.animType=!1)),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(i.animType=!1)),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform&&(i.animType=!1)),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},e.prototype.setSlideClasses=function(i){var e,t,o,s,n=this;if(t=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(i).addClass("slick-current"),!0===n.options.centerMode){var r=n.options.slidesToShow%2==0?1:0;e=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(i>=e&&i<=n.slideCount-1-e?n.$slides.slice(i-e+r,i+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+i,t.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===i?t.eq(t.length-1-n.options.slidesToShow).addClass("slick-center"):i===n.slideCount-1&&t.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(i).addClass("slick-center")}else i>=0&&i<=n.slideCount-n.options.slidesToShow?n.$slides.slice(i,i+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):t.length<=n.options.slidesToShow?t.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=!0===n.options.infinite?n.options.slidesToShow+i:i,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-i<n.options.slidesToShow?t.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):t.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,o,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(t=null,s.slideCount>s.options.slidesToShow)){for(o=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)t=e-1,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)t=e,i(s.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){i(this).attr("id","")})}},e.prototype.interrupt=function(i){var e=this;i||e.autoPlay(),e.interrupted=i},e.prototype.selectHandler=function(e){var t=this,o=i(e.target).is(".slick-slide")?i(e.target):i(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));s||(s=0),t.slideCount<=t.options.slidesToShow?t.slideHandler(s,!1,!0):t.slideHandler(s)},e.prototype.slideHandler=function(i,e,t){var o,s,n,r,l,d=null,a=this;if(e=e||!1,!(!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===i))if(!1===e&&a.asNavFor(i),o=i,d=a.getLeft(o),r=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?r:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(i<0||i>a.getDotCount()*a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else if(!1===a.options.infinite&&!0===a.options.centerMode&&(i<0||i>a.slideCount-a.options.slidesToScroll))!1===a.options.fade&&(o=a.currentSlide,!0!==t?a.animateSlide(r,function(){a.postSlide(o)}):a.postSlide(o));else{if(a.options.autoplay&&clearInterval(a.autoPlayTimer),s=o<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+o:o>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:o-a.slideCount:o,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,s]),n=a.currentSlide,a.currentSlide=s,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(l=(l=a.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade)return!0!==t?(a.fadeSlideOut(n),a.fadeSlide(s,function(){a.postSlide(s)})):a.postSlide(s),void a.animateHeight();!0!==t?a.animateSlide(d,function(){a.postSlide(s)}):a.postSlide(s)}},e.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,o,s=this;return i=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,t=Math.atan2(e,i),(o=Math.round(180*t/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0?!1===s.options.rtl?"left":"right":o<=360&&o>=315?!1===s.options.rtl?"left":"right":o>=135&&o<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,o,s,n,r,l=this;return n=void 0!==i.originalEvent?i.originalEvent.touches:null,!(!l.dragging||l.scrolling||n&&1!==n.length)&&(e=l.getLeft(l.currentSlide),l.touchObject.curX=void 0!==n?n[0].pageX:i.clientX,l.touchObject.curY=void 0!==n?n[0].pageY:i.clientY,l.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(l.touchObject.curX-l.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(l.touchObject.curY-l.touchObject.startY,2))),!l.options.verticalSwiping&&!l.swiping&&r>4?(l.scrolling=!0,!1):(!0===l.options.verticalSwiping&&(l.touchObject.swipeLength=r),t=l.swipeDirection(),void 0!==i.originalEvent&&l.touchObject.swipeLength>4&&(l.swiping=!0,i.preventDefault()),s=(!1===l.options.rtl?1:-1)*(l.touchObject.curX>l.touchObject.startX?1:-1),!0===l.options.verticalSwiping&&(s=l.touchObject.curY>l.touchObject.startY?1:-1),o=l.touchObject.swipeLength,l.touchObject.edgeHit=!1,!1===l.options.infinite&&(0===l.currentSlide&&"right"===t||l.currentSlide>=l.getDotCount()&&"left"===t)&&(o=l.touchObject.swipeLength*l.options.edgeFriction,l.touchObject.edgeHit=!0),!1===l.options.vertical?l.swipeLeft=e+o*s:l.swipeLeft=e+o*(l.$list.height()/l.listWidth)*s,!0===l.options.verticalSwiping&&(l.swipeLeft=e+o*s),!0!==l.options.fade&&!1!==l.options.touchMove&&(!0===l.animating?(l.swipeLeft=null,!1):void l.setCSS(l.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(i){var e=this;e.$slider.trigger("unslick",[e,i]),e.destroy()},e.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode?(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var i=this;i.options.autoplay&&(document[i.hidden]?i.interrupted=!0:i.interrupted=!1)},i.fn.slick=function(){var i,t,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(i=0;i<r;i++)if("object"==typeof s||void 0===s?o[i].slick=new e(o[i],s):t=o[i].slick[s].apply(o[i].slick,n),void 0!==t)return t;return o}});"use strict";class Carousel{CarouselSlick(){var s=this;$(".owl-carousel[data-carousel=owl]:visible").each(function(){let e=$(this);e.hasClass("slick-initialized")||e.slick(s._getSlickConfigOption(this)),e.hasClass("instagram-feed")&&e.hasClass("slick-initialized")&&(e.slick("unslick"),e.slick(s._getSlickConfigOption(this)))})}_getSlickConfigOption(s){var e=$(s).data("items"),i=$(s).data("rows")?parseInt($(s).data("rows")):1,t=$(s).data("desktopslick")?$(s).data("desktopslick"):e,l=$(s).data("desktopsmallslick")?$(s).data("desktopsmallslick"):e,a=$(s).data("tabletslick")?$(s).data("tabletslick"):e,o=$(s).data("landscapeslick")?$(s).data("landscapeslick"):2,r=$(s).data("mobileslick")?$(s).data("mobileslick"):2;let n=e<$(s).find(".item").length&&$(s).data("pagination"),c=e<$(s).find(".item").length&&$(s).data("nav"),d=e<$(s).find(".item").length&&$(s).data("loop"),u=e<$(s).find(".item").length&&$(s).data("auto");var k={};if(k.dots=n,k.arrows=c,k.infinite=d,k.speed=1e3,k.autoplay=u,k.autoplaySpeed=$(s).data("autospeed")?$(s).data("autospeed"):2e3,k.cssEase="ease",k.slidesToShow=e,k.slidesToScroll=e,k.mobileFirst=!0,k.vertical=!1,k.prevArrow='<button type="button" class="slick-prev"><i class="icon-arrow-left icons"></i></button>',k.nextArrow='<button type="button" class="slick-next"><i class="icon-arrow-right icons"></i></button>',k.rtl="rtl"==$("html").attr("dir"),i>1){k.slidesToShow=1,k.slidesToScroll=1,k.rows=i,k.slidesPerRow=e;var h={slidesPerRow:e},y={slidesPerRow:t},f={slidesPerRow:l},p={slidesPerRow:a},w=$(s).data("unslick")?"unslick":{slidesPerRow:o},b=$(s).data("unslick")?"unslick":{slidesPerRow:r}}else var h={slidesToShow:e,slidesToScroll:e},y={slidesToShow:t,slidesToScroll:t},f={slidesToShow:l,slidesToScroll:l},p={slidesToShow:a,slidesToScroll:a},w=$(s).data("unslick")?"unslick":{slidesToShow:o,slidesToScroll:o},b=$(s).data("unslick")?"unslick":{slidesToShow:r,slidesToScroll:r};var g=$(s).data("nav")?{arrows:!1,dots:!0}:"";return w=$(s).data("unslick")?w:$.extend(!0,w,g),b=$(s).data("unslick")?b:$.extend(!0,b,g),k.responsive=[{breakpoint:1600,settings:h},{breakpoint:1199,settings:y},{breakpoint:991,settings:f},{breakpoint:767,settings:p},{breakpoint:479,settings:w},{breakpoint:0,settings:b}],k}getSlickTabs(){var s=this;$("ul.nav-tabs li a").on("shown.bs.tab",e=>{let i=$($(e.target).attr("href")).find(".owl-carousel[data-carousel=owl]:visible");let t=$($(e.relatedTarget).attr("href")).find(".owl-carousel[data-carousel=owl]");t.hasClass("slick-initialized")&&t.slick("unslick");i.hasClass("slick-initialized")||i.slick(s._getSlickConfigOption(i))})}}class Slider{tbaySlickSlider(){$(".style-horizontal, .style-vertical, .style-full").find(".flex-control-thumbs").each(function(){if(0!=$(this).children().length){var s={};s.vertical=$(this).parents(".style-horizontal, .style-full").length<1,s.slidesToShow=$(this).parent(".woocommerce-product-gallery").data("columns"),s.infinite=!1,s.focusOnSelect=!0,s.settings="unslick",s.prevArrow='<span class="owl-prev"></span>',s.nextArrow='<span class="owl-next"></span>',s.rtl=$("body").hasClass("rtl"),s.responsive=[{breakpoint:1025,settings:{vertical:!1,slidesToShow:4}}],$(this).slick(s)}})}}class Layout{tbaySlickLayoutSlide(){if($(".tbay-slider-for").length>0){var s={},e={};s.rtl=e.rtl=$("body").hasClass("rtl"),s.slidesToShow=1;var i=1;$(".tbay-slider-for").data("number")>0&&(s.slidesToShow=$(".tbay-slider-for").data("number"),i=$(".tbay-slider-for").data("number")-1),s.arrows=!0,s.infinite=!0,s.slidesToScroll=1,s.prevArrow='<span class="slick-prev"><i class="icon-arrow-left icons"></i></span>',s.nextArrow='<span class="slick-next"><i class="icon-arrow-right icons"></i></span>',s.responsive=[{breakpoint:1025,settings:{vertical:!1,slidesToShow:i}},{breakpoint:480,settings:{vertical:!1,slidesToShow:1}}],$(".tbay-slider-for").slick(s),$(".single-product .tbay-slider-for .slick-slide").length&&$(".single-product .tbay-slider-for .slick-track").addClass("woocommerce-product-gallery__image single-product-main-image")}}}class Slider_gallery{tbay_slider_gallery(){var s={};s.slidesToShow=1,s.slidesToScroll=1,s.prevArrow='<button type="button" class="slick-prev"><i class="linear-icon-chevron-left"></i></button>',s.nextArrow='<button type="button" class="slick-next"><i class="linear-icon-chevron-right"></i></button>',this.tbay_slider_gallery_hover(s),$(document.body).on("urna_lazyload_image",()=>{this.tbay_slider_gallery_hover(s)}),$(document.body).on("urna_gallery_resize",()=>{$(".tbay-product-slider-gallery").each(function(s,e){$(this).hasClass("slick-initialized")&&($(this).slick("unslick"),$(this).removeAttr("style"))})})}tbay_slider_gallery_hover(s){$(".has-slider-gallery").find(".product-image").hover(function(e){let i=$(e.currentTarget);i.next(".tbay-product-slider-gallery").hasClass("slick-initialized")||(i.next(".tbay-product-slider-gallery").css("height",i.parent().outerHeight()),i.next(".tbay-product-slider-gallery").slick(s))})}}!function(s,e){var i=function(s,e,i){var t;return function(){function l(){i||s.apply(a,o),t=null}var a=this,o=arguments;t?clearTimeout(t):i&&s.apply(a,o),t=setTimeout(l,e||100)}};jQuery.fn[e]=function(s){return s?this.bind("resize",i(s)):this.trigger(e)}}(jQuery,"smartresizefunc"),jQuery(document).ready(function(){var s=new Carousel,e=new Slider,i=new Layout,t=new Slider_gallery;s.CarouselSlick(),s.getSlickTabs(),e.tbaySlickSlider(),i.tbaySlickLayoutSlide(),t.tbay_slider_gallery(),$(window).smartresizefunc(function(){if($(window).width()>=767)try{s.CarouselSlick(),e.tbaySlickSlider(),t.tbay_slider_gallery()}catch(s){}})}),jQuery(window).on("load",function(){jQuery(document.body).on("urna_instagramfeed_slick",()=>{var s=new Carousel;s.CarouselSlick()})});var CustomSlickHandler=function(s,e){(new Carousel).CarouselSlick()};jQuery(window).on("elementor/frontend/init",function(){jQuery.isArray(urna_settings.elements_ready.slick)&&$.each(urna_settings.elements_ready.slick,function(s,e){elementorFrontend.hooks.addAction("frontend/element_ready/tbay-"+e+".default",CustomSlickHandler)})});!function a(o,s,u){function c(t,e){if(!s[t]){if(!o[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(l)return l(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var i=s[t]={exports:{}};o[t][0].call(i.exports,function(e){return c(o[t][1][e]||e)},i,i.exports,a,o,s,u)}return s[t].exports}for(var l="function"==typeof require&&require,e=0;e<u.length;e++)c(u[e]);return c}({1:[function(e,t,r){"use strict";var n=window.mc4wp||{},i=e("./forms/forms.js");function a(e,t){i.trigger(t[0].id+"."+e,t),i.trigger(e,t)}function o(e,n){document.addEventListener(e,function(e){if(e.target){var t=e.target,r=!1;"string"==typeof t.className&&(r=-1<t.className.indexOf("mc4wp-form")),r||"function"!=typeof t.matches||(r=t.matches(".mc4wp-form *")),r&&n.call(e,e)}},!0)}if(e("./forms/conditional-elements.js"),o("submit",function(e){var t=i.getByElement(e.target);e.defaultPrevented||i.trigger(t.id+".submit",[t,e]),e.defaultPrevented||i.trigger("submit",[t,e])}),o("focus",function(e){var t=i.getByElement(e.target);t.started||(a("started",[t,e]),t.started=!0)}),o("change",function(e){a("change",[i.getByElement(e.target),e])}),n.listeners){for(var s=n.listeners,u=0;u<s.length;u++)i.on(s[u].event,s[u].callback);delete n.listeners}n.forms=i,window.mc4wp=n},{"./forms/conditional-elements.js":2,"./forms/forms.js":4}],2:[function(e,t,r){"use strict";function n(e){for(var t=!!e.getAttribute("data-show-if"),r=t?e.getAttribute("data-show-if").split(":"):e.getAttribute("data-hide-if").split(":"),n=r[0],i=(1<r.length?r[1]:"*").split("|"),a=function(e,t){for(var r=[],n=e.querySelectorAll('input[name="'+t+'"],select[name="'+t+'"],textarea[name="'+t+'"]'),i=0;i<n.length;i++){var a=n[i];("radio"!==a.type&&"checkbox"!==a.type||a.checked)&&r.push(a.value)}return r}(function(e){for(var t=e;t.parentElement;)if("FORM"===(t=t.parentElement).tagName)return t;return null}(e),n),o=!1,s=0;s<a.length;s++){var u=a[s];if(o=-1<i.indexOf(u)||-1<i.indexOf("*")&&0<u.length)break}e.style.display=t?o?"":"none":o?"none":"";var c=e.querySelectorAll("input,select,textarea");[].forEach.call(c,function(e){(o||t)&&e.getAttribute("data-was-required")&&(e.required=!0,e.removeAttribute("data-was-required")),o&&t||!e.required||(e.setAttribute("data-was-required","true"),e.required=!1)})}function i(){var e=document.querySelectorAll(".mc4wp-form [data-show-if],.mc4wp-form [data-hide-if]");[].forEach.call(e,n)}function a(e){if(e.target&&e.target.form&&!(e.target.form.className.indexOf("mc4wp-form")<0)){var t=e.target.form.querySelectorAll("[data-show-if],[data-hide-if]");[].forEach.call(t,n)}}document.addEventListener("keyup",a,!0),document.addEventListener("change",a,!0),document.addEventListener("mc4wp-refresh",i,!0),window.addEventListener("load",i),i()},{}],3:[function(e,t,r){"use strict";function n(e,t){this.id=e,this.element=t||document.createElement("form"),this.name=this.element.getAttribute("data-name")||"Form #"+this.id,this.errors=[],this.started=!1}var i=e("form-serialize"),a=e("populate.js");n.prototype.setData=function(e){try{a(this.element,e)}catch(e){console.error(e)}},n.prototype.getData=function(){return i(this.element,{hash:!0,empty:!0})},n.prototype.getSerializedData=function(){return i(this.element,{hash:!1,empty:!0})},n.prototype.setResponse=function(e){this.element.querySelector(".mc4wp-response").innerHTML=e},n.prototype.reset=function(){this.setResponse(""),this.element.querySelector(".mc4wp-form-fields").style.display="",this.element.reset()},t.exports=n},{"form-serialize":5,"populate.js":6}],4:[function(e,t,r){"use strict";var n=e("./form.js"),i=[],a={};function o(e,t){a[e]=a[e]||[],a[e].forEach(function(e){return e.apply(null,t)})}function s(e,t){t=t||parseInt(e.getAttribute("data-id"))||0;var r=new n(t,e);return i.push(r),r}t.exports={get:function(e){e=parseInt(e);for(var t=0;t<i.length;t++)if(i[t].id===e)return i[t];return s(document.querySelector(".mc4wp-form-"+e),e)},getByElement:function(e){for(var t=e.form||e,r=0;r<i.length;r++)if(i[r].element===t)return i[r];return s(t)},on:function(e,t){a[e]=a[e]||[],a[e].push(t)},off:function(e,t){a[e]=a[e]||[],a[e]=a[e].filter(function(e){return e!==t})},trigger:function(e,t){"submit"===e||0<e.indexOf(".submit")?o(e,t):window.setTimeout(function(){o(e,t)},1)}}},{"./form.js":3}],5:[function(e,t,r){var v=/^(?:submit|button|image|reset|file)$/i,g=/^(?:input|select|textarea|keygen)/i,i=/(\[[^\[\]]*\])/g;function y(e,t,r){if(t.match(i)){!function e(t,r,n){if(0===r.length)return t=n;var i=r.shift(),a=i.match(/^\[(.+?)\]$/);if("[]"===i)return t=t||[],Array.isArray(t)?t.push(e(null,r,n)):(t._values=t._values||[],t._values.push(e(null,r,n))),t;if(a){var o=a[1],s=+o;isNaN(s)?(t=t||{})[o]=e(t[o],r,n):(t=t||[])[s]=e(t[s],r,n)}else t[i]=e(t[i],r,n);return t}(e,function(e){var t=[],r=new RegExp(i),n=/^([^\[\]]*)/.exec(e);for(n[1]&&t.push(n[1]);null!==(n=r.exec(e));)t.push(n[1]);return t}(t),r)}else{var n=e[t];n?(Array.isArray(n)||(e[t]=[n]),e[t].push(r)):e[t]=r}return e}function w(e,t,r){return r=r.replace(/(\r)?\n/g,"\r\n"),r=(r=encodeURIComponent(r)).replace(/%20/g,"+"),e+(e?"&":"")+encodeURIComponent(t)+"="+r}t.exports=function(e,t){"object"!=typeof t?t={hash:!!t}:void 0===t.hash&&(t.hash=!0);for(var r=t.hash?{}:"",n=t.serializer||(t.hash?y:w),i=e&&e.elements?e.elements:[],a=Object.create(null),o=0;o<i.length;++o){var s=i[o];if((t.disabled||!s.disabled)&&s.name&&(g.test(s.nodeName)&&!v.test(s.type))){var u=s.name,c=s.value;if("checkbox"!==s.type&&"radio"!==s.type||s.checked||(c=void 0),t.empty){if("checkbox"!==s.type||s.checked||(c=""),"radio"===s.type&&(a[s.name]||s.checked?s.checked&&(a[s.name]=!0):a[s.name]=!1),null==c&&"radio"==s.type)continue}else if(!c)continue;if("select-multiple"!==s.type)r=n(r,u,c);else{c=[];for(var l=s.options,f=!1,m=0;m<l.length;++m){var d=l[m],p=t.empty&&!d.value,h=d.value||p;d.selected&&h&&(f=!0,r=t.hash&&"[]"!==u.slice(u.length-2)?n(r,u+"[]",d.value):n(r,u,d.value))}!f&&t.empty&&(r=n(r,u,""))}}}if(t.empty)for(var u in a)a[u]||(r=n(r,u,""));return r}},{}],6:[function(e,t,r){void 0!==t&&t.exports&&(t.exports=function e(t,r,n){for(var i in r)if(r.hasOwnProperty(i)){var a=i,o=r[i];if(void 0===o&&(o=""),null===o&&(o=""),void 0!==n&&(a=n+"["+i+"]"),o.constructor===Array)a+="[]";else if("object"==typeof o){e(t,o,a);continue}var s=t.elements.namedItem(a);if(s)switch(s.type||s[0].type){default:s.value=o;break;case"radio":case"checkbox":for(var u=o.constructor===Array?o:[o],c=0;c<s.length;c++)s[c].checked=-1<u.indexOf(s[c].value);break;case"select-multiple":u=o.constructor===Array?o:[o];for(var l=0;l<s.options.length;l++)s.options[l].selected=-1<u.indexOf(s.options[l].value);break;case"select":case"select-one":s.value=o.toString()||o;break;case"date":s.value=new Date(o).toISOString().split("T")[0]}}})},{}]},{},[1]);var ulp_ajax_url="https://new.thesmartsensory.com/wp-admin/admin-ajax.php";var ulp_count_impressions="on";var ulp_async_init="on";var ulp_css3_enable="on";var ulp_ga_tracking="off";var ulp_km_tracking="off";var ulp_onexit_limits="off";var ulp_no_preload="on";var ulp_campaigns={"ab-365HbznVJDgEzFaO":[""],"none":[""]};var ulp_overlays={"none":["","","","",""]};if(typeof ulp_init=="function"){ulp_init();jQuery(document).ready(function(){ulp_ready()})}else{jQuery(document).ready(function(){ulp_init();ulp_ready()})};var ulp_noadb=!0;document.tidioChatCode="9y3gxmiycgddznkljnoyualdtumm08ym";(function(){function asyncLoad(){var tidioScript=document.createElement("script");tidioScript.type="text/javascript";tidioScript.async=!0;tidioScript.src="//code.tidio.co/9y3gxmiycgddznkljnoyualdtumm08ym.js";document.body.appendChild(tidioScript)}
if(window.attachEvent){window.attachEvent("onload",asyncLoad)}else{window.addEventListener("load",asyncLoad,!1)}})()