/*
 Magnific Popup - v0.9.9 - 2013-12-27
 http://dimsemenov.com/plugins/magnific-popup/
 Copyright (c) 2013 Dmitry Semenov;  Hammer.JS - v2.0.8 - 2016-04-23
 http://hammerjs.github.io/

 Copyright (c) 2016 Jorik Tangelder;
 Licensed under the MIT license */
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$jscomp.makeIterator=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):$jscomp.arrayIterator(a)};var tdAnalytics={};
(function(){tdAnalytics={_fbPixelId:"",_gaTrackingId:"",_gaErrors:[],_fbErrors:[],init:function(){!0!==tdAnalytics._inIframe()&&("undefined"!==typeof window.dataLayer&&window.dataLayer.forEach(function(a,b,c){"config"===a[0]&&(tdAnalytics._gaTrackingId=a[1])}),"undefined"!==typeof fbq&&setTimeout(function(){tdAnalytics._fbPixelId=fbq.getState().pixels[0].id},500),jQuery("body").on("click",".tdm_block_button .tds-button .tdm-btn, .tdm_block_icon_box .tds-button .tdm-btn, .td_block_single_image .td_single_image_bg, .tds-newsletter .tdn-btn-wrap button",
function(a){a.target.classList.contains("tdn-submit-btn")||a.preventDefault();var b=jQuery(this),c={ga:{},fb:{},eventTarget:"",eventTargetAtt:a.target.getAttribute("target")};a.target.classList.contains("tdm-btn-text")?c.eventTarget=a.target.parentElement.getAttribute("href"):c.eventTarget=a.target.getAttribute("href");void 0!==b.data("ga-event-action")&&(c.ga.eventAction=b.data("ga-event-action"));void 0!==b.data("ga-event-cat")&&(c.ga.eventCategory=b.data("ga-event-cat"));void 0!==b.data("ga-event-label")&&
(c.ga.eventLabel=b.data("ga-event-label"));void 0!==b.data("fb-event-name")&&(c.fb.eventName=b.data("fb-event-name"));void 0!==b.data("fb-event-content-name")&&(c.fb.eventContentName=b.data("fb-event-content-name"));tdAnalytics._trackEvent(c)}))},_trackEvent:function(a){"undefined"===typeof a.ga.eventAction&&tdAnalytics._gaErrors.push({errorId:"eventActionError",errorMessage:"Google analytics event action is undefined."});"undefined"===typeof a.ga.eventCategory&&tdAnalytics._gaErrors.push({errorId:"eventCategory",
errorMessage:"Google analytics event category is undefined."});window[window.GoogleAnalyticsObject||"ga"]||tdAnalytics._gaErrors.push({errorId:"GoogleAnalyticsPageCode",errorMessage:"Google Analytics code is not loaded on the current page."});""===tdAnalytics._gaTrackingId&&tdAnalytics._gaErrors.push({errorId:"GoogleAnalyticsTrackingId",errorMessage:"Google Analytics TrackingId is missing on the current page."});0===tdAnalytics._gaErrors.length&&gtag("event",a.ga.eventAction,{event_category:a.ga.eventCategory,
event_label:a.ga.eventLabel,event_callback:function(){console.log(" %c GA Success","color: green; font-weight: bold;")}});"undefined"===typeof window.fbq&&tdAnalytics._fbErrors.push({errorId:"FacebookPixelPageCode",errorMessage:"Facebook Pixel events code is not loaded on the current page."});""===tdAnalytics._fbPixelId&&tdAnalytics._fbErrors.push({errorId:"FacebookPixelTrackingId",errorMessage:"Facebook Pixel TrackingId is missing on the current page."});"undefined"===typeof a.fb.eventName&&tdAnalytics._fbErrors.push({errorId:"FacebookPixelEventName",
errorMessage:"Facebook pixel standard event name is not set ( undefined )."});0===tdAnalytics._fbErrors.length&&("undefined"!==typeof a.fb.eventContentName?fbq("track",a.fb.eventName,{content_name:a.fb.eventContentName}):fbq("track",a.fb.eventName),console.log(" %c FB track sent","color: green; font-weight: bold;"));setTimeout(function(){a.eventTarget&&("_blank"===a.eventTargetAtt?window.open(a.eventTarget):window.location=a.eventTarget)},150)},_inIframe:function(){try{return window.self!==window.top}catch(a){return!0}},
_displayErrors:function(){if(0<tdAnalytics._gaErrors.length)for(;0<tdAnalytics._gaErrors.length;){var a=tdAnalytics._gaErrors.shift();console.warn(a.errorId+": "+a.errorMessage)}if(0<tdAnalytics._fbErrors.length)for(;0<tdAnalytics._fbErrors.length;)a=tdAnalytics._fbErrors.shift(),console.warn(a.errorId+": "+a.errorMessage)}}})();jQuery(window).ready(function(){tdAnalytics.init()});jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return 1>(b/=e/2)?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return 1>(b/=e/2)?d/2*b*b*b+c:
d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return 1>(b/=e/2)?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return 1>(b/=e/2)?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/
e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return 0==b?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return 0==b?c:b==e?c+d:1>(b/=e/2)?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*
b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return 1>(b/=e/2)?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){a=1.70158;var f=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;f||(f=.3*e);h<Math.abs(d)?(h=d,a=f/4):a=f/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*--b)*Math.sin(2*(b*e-a)*Math.PI/f))+c},easeOutElastic:function(a,b,c,d,e){a=1.70158;var f=0,h=d;if(0==b)return c;if(1==(b/=
e))return c+d;f||(f=.3*e);h<Math.abs(d)?(h=d,a=f/4):a=f/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*b)*Math.sin(2*(b*e-a)*Math.PI/f)+d+c},easeInOutElastic:function(a,b,c,d,e){a=1.70158;var f=0,h=d;if(0==b)return c;if(2==(b/=e/2))return c+d;f||(f=.3*e*1.5);h<Math.abs(d)?(h=d,a=f/4):a=f/(2*Math.PI)*Math.asin(d/h);return 1>b?-.5*h*Math.pow(2,10*--b)*Math.sin(2*(b*e-a)*Math.PI/f)+c:.5*h*Math.pow(2,-10*--b)*Math.sin(2*(b*e-a)*Math.PI/f)+d+c},easeInBack:function(a,b,c,d,e,f){void 0==f&&(f=1.70158);
return d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){void 0==f&&(f=1.70158);return d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){void 0==f&&(f=1.70158);return 1>(b/=e/2)?d/2*b*b*(((f*=1.525)+1)*b-f)+c:d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(a,b,c,d,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c},easeOutBounce:function(a,b,c,d,e){return(b/=e)<1/2.75?7.5625*d*b*b+c:b<2/2.75?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:b<2.5/2.75?d*(7.5625*(b-=
2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(a,b,c,d,e){return b<e/2?.5*jQuery.easing.easeInBounce(a,2*b,0,d,e)+c:.5*jQuery.easing.easeOutBounce(a,2*b-e,0,d,e)+.5*d+c}});
(function(a){a.fn.supersubs=function(b){var c=a.extend({},a.fn.supersubs.defaults,b);return this.each(function(){var b=a(this),e=a.meta?a.extend({},c,b.data()):c;setTimeout(function(b){var c=b.find(".sub-menu").show(),d=a('<li id="menu-fontsize">&#8212;</li>').css({padding:0,position:"absolute",top:"-999em",width:"auto"}).appendTo(b)[0].clientWidth;a("#menu-fontsize").remove();c.each(function(b){b=a(this);var c=b.children(),f=c.children("a"),g=c.css("white-space","nowrap").css("float");b.add(c).add(f).css({"float":"none",
width:"auto"});f=b[0].clientWidth/d;f+=e.extraWidth;f>e.maxWidth?f=e.maxWidth:f<e.minWidth&&(f=e.minWidth);f+="em";e.applyMin?b.css("min-width",f):b.css("width",f);c.css({"float":g,width:"100%","white-space":"normal"}).each(function(){var b=a(this).children("ul"),c=void 0!==b.css("left")?"left":"right";b.css(c,"100%")});b.parent().hasClass("tdb-menu-item-inactive")&&b.parent().removeClass("tdb-menu-item-inactive")}).hide()},500,b)})};a.fn.supersubs.defaults={minWidth:9,maxWidth:25,extraWidth:0,applyMin:!1}})(jQuery);
(function(a){var b=0,c=0,d=0,e=0,f="ontouchstart"in window||0<navigator.msMaxTouchPoints,h="onorientationchange"in window,g=!1,n=!1,r=!1,D=!1,t=!1,F="pointer",y="pointer",R=[],P=[],ra=[],X=[],B=[],ea=[],C=[],u=[],E=[],fa=[],oa=[],m={showScrollbar:function(b,c){b.scrollbarHide&&a("."+c).css({opacity:b.scrollbarOpacity,filter:"alpha(opacity:"+100*b.scrollbarOpacity+")"})},hideScrollbar:function(a,b,c,d,e,f,g,h,n,r){if(a.scrollbar&&a.scrollbarHide)for(var k=c;k<c+25;k++)b[b.length]=m.hideScrollbarIntervalTimer(10*
k,d[c],(c+24-k)/24,e,f,g,h,n,r,a)},hideScrollbarInterval:function(b,c,d,f,g,l,h,n,r){e=-1*b/E[n]*(g-l-h-f);m.setSliderOffset("."+d,e);a("."+d).css({opacity:r.scrollbarOpacity*c,filter:"alpha(opacity:"+r.scrollbarOpacity*c*100+")"})},slowScrollHorizontalInterval:function(b,c,d,f,g,l,h,n,r,D,F,t,y,x,A,q,N,p,I){if(I.infiniteSlider){if(d<=-1*E[q]||d<=-1*fa[q]){var k=a(b).width();if(d<=-1*fa[q]){var H=-1*F[0];a(c).each(function(b){m.setSliderOffset(a(c)[b],H+N);b<t.length&&(t[b]=-1*H);H+=A[b]});d+=-1*
t[0];u[q]=-1*t[0]+N;E[q]=u[q]+k-l;C[q]=0}for(;d<=-1*E[q];){var w=0,M=m.getSliderOffset(a(c[0]),"x");a(c).each(function(a){m.getSliderOffset(this,"x")<M&&(M=m.getSliderOffset(this,"x"),w=a)});y=u[q]+k;m.setSliderOffset(a(c)[w],y);u[q]=-1*t[1]+N;E[q]=u[q]+k-l;t.splice(0,1);t.splice(t.length,0,-1*y+N);C[q]++}}if(d>=-1*u[q]||0<=d){k=a(b).width();if(0<d)for(H=-1*F[0],a(c).each(function(b){m.setSliderOffset(a(c)[b],H+N);b<t.length&&(t[b]=-1*H);H+=A[b]}),d-=-1*t[0],u[q]=-1*t[0]+N,E[q]=u[q]+k-l,C[q]=x;0<
-1*t[0]-k+N;){var v=0,Y=m.getSliderOffset(a(c[0]),"x");a(c).each(function(a){m.getSliderOffset(this,"x")>Y&&(Y=m.getSliderOffset(this,"x"),v=a)});y=u[q]-A[v];m.setSliderOffset(a(c)[v],y);t.splice(0,0,-1*y+N);t.splice(t.length-1,1);u[q]=-1*t[0]+N;E[q]=u[q]+k-l;C[q]--;B[q]++}for(;d>-1*u[q];)v=0,Y=m.getSliderOffset(a(c[0]),"x"),a(c).each(function(a){m.getSliderOffset(this,"x")>Y&&(Y=m.getSliderOffset(this,"x"),v=a)}),y=u[q]-A[v],m.setSliderOffset(a(c)[v],y),t.splice(0,0,-1*y+N),t.splice(t.length-1,1),
u[q]=-1*t[0]+N,E[q]=u[q]+k-l,C[q]--}}F=!1;l=m.calcActiveOffset(I,d,t,l,C[q],x,D,q);y=(l+C[q]+x)%x;I.infiniteSlider?y!=ea[q]&&(F=!0):l!=B[q]&&(F=!0);if(F&&(x=new m.args("change",I,b,a(b).children(":eq("+y+")"),y,p),a(b).parent().data("args",x),""!=I.onSlideChange))I.onSlideChange(x);B[q]=l;ea[q]=y;d=Math.floor(d);if(q!=a(b).parent().data("args").data.sliderNumber)return!0;m.setSliderOffset(b,d);I.scrollbar&&(e=Math.floor((-1*d-u[q]+N)/(E[q]-u[q]+N)*(h-n-g)),b=g-r,d>=-1*u[q]+N?(b=g-r- -1*e,m.setSliderOffset(a("."+
f),0)):(d<=-1*E[q]+1&&(b=h-n-r-e),m.setSliderOffset(a("."+f),e)),a("."+f).css({width:b+"px"}))},slowScrollHorizontal:function(b,c,d,e,f,g,h,n,r,t,D,F,y,x,A,q,N,p,I,J,Q){var k=m.getSliderOffset(b,"x");g=[];var H=0,l=25/1024*n;frictionCoefficient=Q.frictionCoefficient;elasticFrictionCoefficient=Q.elasticFrictionCoefficient;snapFrictionCoefficient=Q.snapFrictionCoefficient;f>Q.snapVelocityThreshold&&Q.snapToChildren&&!I?H=1:f<-1*Q.snapVelocityThreshold&&Q.snapToChildren&&!I&&(H=-1);f<-1*l?f=-1*l:f>l&&
(f=l);a(b)[0]!==a(p)[0]&&(H*=-1,f*=-2);p=C[A];if(Q.infiniteSlider)var w=u[A],M=E[A];I=[];l=[];for(var v=0;v<y.length;v++)I[v]=y[v],v<c.length&&(l[v]=m.getSliderOffset(a(c[v]),"x"));for(;1<f||-1>f;){f*=frictionCoefficient;k+=f;(k>-1*u[A]||k<-1*E[A])&&!Q.infiniteSlider&&(f*=elasticFrictionCoefficient,k+=f);if(Q.infiniteSlider){if(k<=-1*M){M=a(b).width();var Y=0,K=l[0];for(v=0;v<l.length;v++)l[v]<K&&(K=l[v],Y=v);v=w+M;l[Y]=v;w=-1*I[1]+J;M=w+M-n;I.splice(0,1);I.splice(I.length,0,-1*v+J);p++}if(k>=-1*
w){M=a(b).width();Y=0;K=l[0];for(v=0;v<l.length;v++)l[v]>K&&(K=l[v],Y=v);v=w-x[Y];l[Y]=v;I.splice(0,0,-1*v+J);I.splice(I.length-1,1);w=-1*I[0]+J;M=w+M-n;p--}}g[g.length]=k}l=!1;f=m.calcActiveOffset(Q,k,I,n,p,N,B[A],A);w=(f+p+N)%N;Q.snapToChildren&&(Q.infiniteSlider?w!=ea[A]&&(l=!0):f!=B[A]&&(l=!0),0>H&&!l?(f++,f>=y.length&&!Q.infiniteSlider&&(f=y.length-1)):0<H&&!l&&(f--,0>f&&!Q.infiniteSlider&&(f=0)));if(Q.snapToChildren||(k>-1*u[A]||k<-1*E[A])&&!Q.infiniteSlider){(k>-1*u[A]||k<-1*E[A])&&!Q.infiniteSlider?
g.splice(0,g.length):(g.splice(.1*g.length,g.length),k=0<g.length?g[g.length-1]:k);for(;k<I[f]-.5||k>I[f]+.5;)k=(k-I[f])*snapFrictionCoefficient+I[f],g[g.length]=k;g[g.length]=I[f]}H=1;0!=g.length%2&&(H=0);for(k=0;k<d.length;k++)clearTimeout(d[k]);p=(f+p+N)%N;w=0;for(k=H;k<g.length;k+=2)if(k==H||1<Math.abs(g[k]-w)||k>=g.length-2)w=g[k],d[d.length]=m.slowScrollHorizontalIntervalTimer(10*k,b,c,g[k],e,h,n,r,t,D,f,F,y,q,N,x,A,J,p,Q);w=(f+C[A]+N)%N;""!=Q.onSlideComplete&&1<g.length&&(d[d.length]=m.onSlideCompleteTimer(10*
(k+1),Q,b,a(b).children(":eq("+w+")"),p,A));d[d.length]=m.updateBackfaceVisibilityTimer(10*(k+1),c,A,N,Q);X[A]=d;m.hideScrollbar(Q,d,k,g,e,h,n,t,D,A)},onSlideComplete:function(b,c,d,f,e){d=new m.args("complete",b,a(c),d,f,f);a(c).parent().data("args",d);if(""!=b.onSlideComplete)b.onSlideComplete(d)},getSliderOffset:function(b,c){c="x"==c?4:5;if(!g||n||r)b=parseInt(a(b).css("left"),10);else{for(var d=["-webkit-transform","-moz-transform","transform"],f,e=0;e<d.length;e++)if(void 0!=a(b).css(d[e])&&
0<a(b).css(d[e]).length){f=a(b).css(d[e]).split(",");break}b=void 0==f[c]?0:parseInt(f[c],10)}return b},setSliderOffset:function(b,c){c=parseInt(c,10);!g||n||r?a(b).css({left:c+"px"}):a(b).css({msTransform:"matrix(1,0,0,1,"+c+",0)",webkitTransform:"matrix(1,0,0,1,"+c+",0)",MozTransform:"matrix(1,0,0,1,"+c+",0)",transform:"matrix(1,0,0,1,"+c+",0)"})},setBrowserInfo:function(){null!=navigator.userAgent.match("WebKit")?(F="-webkit-grab",y="-webkit-grabbing"):null!=navigator.userAgent.match("Gecko")?
(t=!0,F="move",y="-moz-grabbing"):null!=navigator.userAgent.match("MSIE 7")?D=n=!0:null!=navigator.userAgent.match("MSIE 8")?D=r=!0:null!=navigator.userAgent.match("MSIE 9")&&(D=!0)},has3DTransform:function(){var b=!1,c=a("<div />").css({msTransform:"matrix(1,1,1,1,1,1)",webkitTransform:"matrix(1,1,1,1,1,1)",MozTransform:"matrix(1,1,1,1,1,1)",transform:"matrix(1,1,1,1,1,1)"});""==c.attr("style")?b=!1:t&&21<=parseInt(navigator.userAgent.split("/")[3],10)?b=!1:void 0!=c.attr("style")&&(b=!0);return b},
getSlideNumber:function(a,b,c){return(a-C[b]+c)%c},calcActiveOffset:function(a,b,c,d,f,e,g,h){f=!1;a=[];var k;b>c[0]&&(k=0);b<c[c.length-1]&&(k=e-1);for(e=0;e<c.length;e++)c[e]<=b&&c[e]>b-d&&(f||c[e]==b||(a[a.length]=c[e-1]),a[a.length]=c[e],f=!0);0==a.length&&(a[0]=c[c.length-1]);for(e=f=0;e<a.length;e++)g=Math.abs(b-a[e]),g<d&&(f=a[e],d=g);for(e=0;e<c.length;e++)f==c[e]&&(k=e);return k},changeSlide:function(b,c,d,e,f,g,h,n,r,t,D,F,y,x,A,q,u,p){m.autoSlidePause(x);for(var k=0;k<e.length;k++)clearTimeout(e[k]);
var H=Math.ceil(p.autoSlideTransTimer/10)+1,l=m.getSliderOffset(c,"x"),w=F[b];w-=l;var v=b-(B[x]+C[x]+q)%q;if(p.infiniteSlider){b=(b-C[x]+2*q)%q;k=!1;0==b&&2==q&&(b=q,F[b]=F[b-1]-a(d).eq(0).outerWidth(!0),k=!0);w=F[b];w-=l;var M=[F[b]-a(c).width(),F[b]+a(c).width()];k&&F.splice(F.length-1,1);for(k=0;k<M.length;k++)Math.abs(M[k]-l)<Math.abs(w)&&(w=M[k]-l)}0>w&&-1==v?w+=a(c).width():0<w&&1==v&&(w-=a(c).width());v=[];m.showScrollbar(p,f);for(k=0;k<=H;k++)M=k,M/=H,M--,M=l+w*(Math.pow(M,5)+1),v[v.length]=
M;H=(b+C[x]+q)%q;for(k=l=0;k<v.length;k++){if(0==k||1<Math.abs(v[k]-l)||k>=v.length-2)l=v[k],e[k]=m.slowScrollHorizontalIntervalTimer(10*(k+1),c,d,v[k],f,g,h,n,r,t,b,D,F,A,q,y,x,u,H,p);0==k&&""!=p.onSlideStart&&(w=(B[x]+C[x]+q)%q,p.onSlideStart(new m.args("start",p,c,a(c).children(":eq("+w+")"),w,b)))}l=!1;p.infiniteSlider?H!=ea[x]&&(l=!0):b!=B[x]&&(l=!0);l&&""!=p.onSlideComplete&&(e[e.length]=m.onSlideCompleteTimer(10*(k+1),p,c,a(c).children(":eq("+H+")"),H,x));X[x]=e;m.hideScrollbar(p,e,k,v,f,g,
h,r,t,x);m.autoSlide(c,d,e,f,g,h,n,r,t,D,F,y,x,A,q,u,p)},changeOffset:function(b,c,d,e,f,g,h,n,r,t,F,D,y,x,A,q,N,p){m.autoSlidePause(x);for(var k=0;k<e.length;k++)clearTimeout(e[k]);p.infiniteSlider||(b=b>-1*u[x]+N?-1*u[x]+N:b,b=b<-1*E[x]?-1*E[x]:b);var l=Math.ceil(p.autoSlideTransTimer/10)+1,H=m.getSliderOffset(c,"x");k=(m.calcActiveOffset(p,b,D,h,C,q,B[x],x)+C[x]+q)%q;var w=D.slice();if(p.snapToChildren&&!p.infiniteSlider)b=D[k];else if(p.infiniteSlider&&p.snapToChildren){for(;b>=w[0];)w.splice(0,
0,w[q-1]+a(c).width()),w.splice(q,1);for(;b<=w[q-1];)w.splice(q,0,w[0]-a(c).width()),w.splice(0,1);k=m.calcActiveOffset(p,b,w,h,C,q,B[x],x);b=w[k]}var v=b-H;b=[];m.showScrollbar(p,f);for(w=0;w<=l;w++){var M=w;M/=l;M--;M=H+v*(Math.pow(M,5)+1);b[b.length]=M}l=(k+C[x]+q)%q;for(w=H=0;w<b.length;w++){if(0==w||1<Math.abs(b[w]-H)||w>=b.length-2)H=b[w],e[w]=m.slowScrollHorizontalIntervalTimer(10*(w+1),c,d,b[w],f,g,h,n,r,t,k,F,D,A,q,y,x,N,l,p);0==w&&""!=p.onSlideStart&&(l=(B[x]+C[x]+q)%q,p.onSlideStart(new m.args("start",
p,c,a(c).children(":eq("+l+")"),l,k)))}H=!1;p.infiniteSlider?l!=ea[x]&&(H=!0):k!=B[x]&&(H=!0);H&&""!=p.onSlideComplete&&(e[e.length]=m.onSlideCompleteTimer(10*(w+1),p,c,a(c).children(":eq("+l+")"),l,x));X[x]=e;m.hideScrollbar(p,e,w,b,f,g,h,r,t,x);m.autoSlide(c,d,e,f,g,h,n,r,t,F,D,y,x,A,q,N,p)},autoSlide:function(a,b,c,d,e,f,g,h,n,r,t,F,D,y,A,q,u){if(!P[D].autoSlide)return!1;m.autoSlidePause(D);R[D]=setTimeout(function(){!u.infiniteSlider&&B[D]>t.length-1&&(B[D]-=A);m.changeSlide(B[D]+C[D]+1,a,b,c,
d,e,f,g,h,n,r,t,F,D,y,A,q,u);m.autoSlide(a,b,c,d,e,f,g,h,n,r,t,F,D,y,A,q,u)},u.autoSlideTimer+u.autoSlideTransTimer)},autoSlidePause:function(a){clearTimeout(R[a])},isUnselectable:function(b,c){return""!=c.unselectableSelector&&1==a(b).closest(c.unselectableSelector).length?!0:!1},slowScrollHorizontalIntervalTimer:function(a,b,c,d,e,f,g,h,n,r,D,t,F,y,u,q,B,p,C,E){return setTimeout(function(){m.slowScrollHorizontalInterval(b,c,d,e,f,g,h,n,r,D,t,F,y,u,q,B,p,C,E)},a)},onSlideCompleteTimer:function(a,
b,c,d,e,f){return setTimeout(function(){m.onSlideComplete(b,c,d,e,f)},a)},hideScrollbarIntervalTimer:function(a,b,c,d,e,f,g,h,n,r){return setTimeout(function(){m.hideScrollbarInterval(b,c,d,e,f,g,h,n,r)},a)},updateBackfaceVisibilityTimer:function(a,b,c,d,e){return setTimeout(function(){m.updateBackfaceVisibility(b,c,d,e)},a)},updateBackfaceVisibility:function(b,c,d,e){c=(B[c]+C[c]+d)%d;for(var k=[],f=0;f<2*e.hardwareAccelBuffer;f++){var g=m.mod(c+f-e.hardwareAccelBuffer,d);if("visible"==a(b).eq(g).css("-webkit-backface-visibility")){k[k.length]=
g;var h=m.mod(g+2*e.hardwareAccelBuffer,d),H=m.mod(g-2*e.hardwareAccelBuffer,d);a(b).eq(g).css("-webkit-backface-visibility","hidden");-1==k.indexOf(H)&&a(b).eq(H).css("-webkit-backface-visibility","");-1==k.indexOf(h)&&a(b).eq(h).css("-webkit-backface-visibility","")}}},mod:function(a,b){a%=b;return 0>a?a+b:a},args:function(b,c,d,e,f,g){this.prevSlideNumber=void 0==a(d).parent().data("args")?void 0:a(d).parent().data("args").prevSlideNumber;this.prevSlideObject=void 0==a(d).parent().data("args")?
void 0:a(d).parent().data("args").prevSlideObject;this.targetSlideNumber=g+1;this.targetSlideObject=a(d).children(":eq("+g+")");this.slideChanged=!1;"load"==b?this.targetSlideObject=this.targetSlideNumber=void 0:"start"==b?this.targetSlideObject=this.targetSlideNumber=void 0:"change"==b?(this.slideChanged=!0,this.prevSlideNumber=void 0==a(d).parent().data("args")?c.startAtSlide:a(d).parent().data("args").currentSlideNumber,this.prevSlideObject=a(d).children(":eq("+this.prevSlideNumber+")")):"complete"==
b&&(this.slideChanged=a(d).parent().data("args").slideChanged);this.settings=c;this.data=a(d).parent().data("iosslider");this.sliderObject=d;this.sliderContainerObject=a(d).parent();this.currentSlideObject=e;this.currentSlideNumber=f+1;this.currentSliderOffset=-1*m.getSliderOffset(d,"x")},preventDrag:function(a){a.preventDefault()},preventClick:function(a){a.stopImmediatePropagation();return!1},enableClick:function(){return!0}};m.setBrowserInfo();var ca={init:function(M,v){g=m.has3DTransform();var k=
a.extend(!0,{elasticPullResistance:.6,frictionCoefficient:.92,elasticFrictionCoefficient:.6,snapFrictionCoefficient:.92,snapToChildren:!1,snapSlideCenter:!1,startAtSlide:1,scrollbar:!1,scrollbarDrag:!1,scrollbarHide:!0,scrollbarPaging:!1,scrollbarLocation:"top",scrollbarContainer:"",scrollbarOpacity:.4,scrollbarHeight:"4px",scrollbarBorder:"0",scrollbarMargin:"5px",scrollbarBackground:"#000",scrollbarBorderRadius:"100px",scrollbarShadow:"0 0 0 #000",scrollbarElasticPullResistance:.9,desktopClickDrag:!1,
keyboardControls:!1,tabToAdvance:!1,responsiveSlideContainer:!0,responsiveSlides:!0,navSlideSelector:"",navPrevSelector:"",navNextSelector:"",autoSlideToggleSelector:"",autoSlide:!1,autoSlideTimer:5E3,autoSlideTransTimer:750,autoSlideHoverPause:!0,infiniteSlider:!1,snapVelocityThreshold:5,slideStartVelocityThreshold:0,horizontalSlideLockThreshold:5,verticalSlideLockThreshold:3,hardwareAccelBuffer:5,stageCSS:{position:"relative",top:"0",left:"0",overflow:"hidden",zIndex:1},unselectableSelector:"",
onSliderLoaded:"",onSliderUpdate:"",onSliderResize:"",onSlideStart:"",onSlideChange:"",onSlideComplete:""},M);void 0==v&&(v=this);return a(v).each(function(g){function H(){m.autoSlidePause(l);va=a(L).find("a");za=a(L).find("[onclick]");ka=a(L).find("*");a(I).css("width","");a(I).css("height","");a(L).css("width","");G=a(L).children().not("script").get();wa=[];U=[];k.responsiveSlides&&a(G).css("width","100%");E[l]=0;z=[];q=a(I).parent().width();J=a(I).outerWidth(!0);k.responsiveSlideContainer&&(J=
a(I).outerWidth(!0)>q?q:a(I).width());a(I).css({position:k.stageCSS.position,top:k.stageCSS.top,left:k.stageCSS.left,overflow:k.stageCSS.overflow,zIndex:k.stageCSS.zIndex,webkitPerspective:1E3,webkitBackfaceVisibility:"hidden",msTouchAction:"pan-y",width:J});a(k.unselectableSelector).css({cursor:"default"});for(var b=0;b<G.length;b++){wa[b]=a(G[b]).width();U[b]=a(G[b]).outerWidth(!0);var c=U[b];k.responsiveSlides&&(U[b]>J?(c=J+-1*(U[b]-wa[b]),wa[b]=c,U[b]=J):c=wa[b],a(G[b]).css({width:c}));a(G[b]).css({overflow:"hidden",
position:"absolute"});z[b]=-1*E[l];E[l]=E[l]+c+(U[b]-wa[b])}k.snapSlideCenter&&(p=.5*(J-U[0]),k.responsiveSlides&&U[0]>J&&(p=0));fa[l]=2*E[l];for(b=0;b<G.length;b++)m.setSliderOffset(a(G[b]),-1*z[b]+E[l]+p),z[b]-=E[l];if(!k.infiniteSlider&&!k.snapSlideCenter){for(b=0;b<z.length&&!(z[b]<=-1*(2*E[l]-J));b++)Ja=b;z.splice(Ja+1,z.length);z[z.length]=-1*(2*E[l]-J)}for(b=0;b<z.length;b++)aa[b]=z[b];Ha&&(P[l].startAtSlide=P[l].startAtSlide>z.length?z.length:P[l].startAtSlide,k.infiniteSlider?(P[l].startAtSlide=
(P[l].startAtSlide-1+O)%O,B[l]=P[l].startAtSlide):(P[l].startAtSlide=0>P[l].startAtSlide-1?z.length-1:P[l].startAtSlide,B[l]=P[l].startAtSlide-1),ea[l]=B[l]);u[l]=E[l]+p;a(L).css({position:"relative",cursor:F,webkitPerspective:"0",webkitBackfaceVisibility:"hidden",width:E[l]+"px"});da=E[l];E[l]=2*E[l]-J+2*p;(V=da+p<J||0==J?!0:!1)&&a(L).css({cursor:"default"});N=a(I).parent().outerHeight(!0);Q=a(I).height();k.responsiveSlideContainer&&(Q=Q>N?N:Q);a(I).css({height:Q});m.setSliderOffset(L,z[B[l]]);if(k.infiniteSlider&&
!V){b=m.getSliderOffset(a(L),"x");for(c=(C[l]+O)%O*-1;0>c;){var d=0,e=m.getSliderOffset(a(G[0]),"x");a(G).each(function(a){m.getSliderOffset(this,"x")<e&&(e=m.getSliderOffset(this,"x"),d=a)});var f=u[l]+da;m.setSliderOffset(a(G)[d],f);u[l]=-1*z[1]+p;E[l]=u[l]+da-J;z.splice(0,1);z.splice(z.length,0,-1*f+p);c++}for(;0<-1*z[0]-da+p&&k.snapSlideCenter&&Ha;){var g=0,h=m.getSliderOffset(a(G[0]),"x");a(G).each(function(a){m.getSliderOffset(this,"x")>h&&(h=m.getSliderOffset(this,"x"),g=a)});f=u[l]-U[g];m.setSliderOffset(a(G)[g],
f);z.splice(0,0,-1*f+p);z.splice(z.length-1,1);u[l]=-1*z[0]+p;E[l]=u[l]+da-J;C[l]--;B[l]++}for(;b<=-1*E[l];)d=0,e=m.getSliderOffset(a(G[0]),"x"),a(G).each(function(a){m.getSliderOffset(this,"x")<e&&(e=m.getSliderOffset(this,"x"),d=a)}),f=u[l]+da,m.setSliderOffset(a(G)[d],f),u[l]=-1*z[1]+p,E[l]=u[l]+da-J,z.splice(0,1),z.splice(z.length,0,-1*f+p),C[l]++,B[l]--}m.setSliderOffset(L,z[B[l]]);m.updateBackfaceVisibility(G,l,O,k);k.desktopClickDrag||a(L).css({cursor:"default"});k.scrollbar&&(a("."+R).css({margin:k.scrollbarMargin,
overflow:"hidden",display:"none"}),a("."+R+" ."+K).css({border:k.scrollbarBorder}),S=parseInt(a("."+R).css("marginLeft"))+parseInt(a("."+R).css("marginRight")),W=parseInt(a("."+R+" ."+K).css("borderLeftWidth"),10)+parseInt(a("."+R+" ."+K).css("borderRightWidth"),10),x=""!=k.scrollbarContainer?a(k.scrollbarContainer).width():J,A=J/da*(x-S),k.scrollbarHide||(Ia=k.scrollbarOpacity),a("."+R).css({position:"absolute",left:0,width:x-S+"px",margin:k.scrollbarMargin}),"top"==k.scrollbarLocation?a("."+R).css("top",
"0"):a("."+R).css("bottom","0"),a("."+R+" ."+K).css({borderRadius:k.scrollbarBorderRadius,background:k.scrollbarBackground,height:k.scrollbarHeight,width:A-W+"px",minWidth:k.scrollbarHeight,border:k.scrollbarBorder,webkitPerspective:1E3,webkitBackfaceVisibility:"hidden",position:"relative",opacity:Ia,filter:"alpha(opacity:"+100*Ia+")",boxShadow:k.scrollbarShadow}),m.setSliderOffset(a("."+R+" ."+K),Math.floor((-1*z[B[l]]-u[l]+p)/(E[l]-u[l]+p)*(x-S-A))),a("."+R).css({display:"block"}),ja=a("."+R+" ."+
K),Ba=a("."+R));k.scrollbarDrag&&!V&&a("."+R+" ."+K).css({cursor:F});k.infiniteSlider&&(ia=(E[l]+J)/3);""!=k.navSlideSelector&&a(k.navSlideSelector).each(function(b){a(this).css({cursor:"pointer"});a(this).unbind(ba).bind(ba,function(c){"touchstart"==c.type?a(this).unbind("click.iosSliderEvent"):a(this).unbind("touchstart.iosSliderEvent");ba=c.type+".iosSliderEvent";m.changeSlide(b,L,G,v,K,A,J,x,S,W,aa,z,U,l,ia,O,p,k)})});""!=k.navPrevSelector&&(a(k.navPrevSelector).css({cursor:"pointer"}),a(k.navPrevSelector).unbind(ba).bind(ba,
function(b){"touchstart"==b.type?a(this).unbind("click.iosSliderEvent"):a(this).unbind("touchstart.iosSliderEvent");ba=b.type+".iosSliderEvent";b=(B[l]+C[l]+O)%O;(0<b||k.infiniteSlider)&&m.changeSlide(b-1,L,G,v,K,A,J,x,S,W,aa,z,U,l,ia,O,p,k)}));""!=k.navNextSelector&&(a(k.navNextSelector).css({cursor:"pointer"}),a(k.navNextSelector).unbind(ba).bind(ba,function(b){"touchstart"==b.type?a(this).unbind("click.iosSliderEvent"):a(this).unbind("touchstart.iosSliderEvent");ba=b.type+".iosSliderEvent";b=(B[l]+
C[l]+O)%O;(b<z.length-1||k.infiniteSlider)&&m.changeSlide(b+1,L,G,v,K,A,J,x,S,W,aa,z,U,l,ia,O,p,k)}));k.autoSlide&&!V&&""!=k.autoSlideToggleSelector&&(a(k.autoSlideToggleSelector).css({cursor:"pointer"}),a(k.autoSlideToggleSelector).unbind(ba).bind(ba,function(b){"touchstart"==b.type?a(this).unbind("click.iosSliderEvent"):a(this).unbind("touchstart.iosSliderEvent");ba=b.type+".iosSliderEvent";la?(m.autoSlide(L,G,v,K,A,J,x,S,W,aa,z,U,l,ia,O,p,k),la=!1,a(k.autoSlideToggleSelector).removeClass("on")):
(m.autoSlidePause(l),la=!0,a(k.autoSlideToggleSelector).addClass("on"))}));m.autoSlide(L,G,v,K,A,J,x,S,W,aa,z,U,l,ia,O,p,k);a(I).bind("mouseleave.iosSliderEvent",function(){if(la)return!0;m.autoSlide(L,G,v,K,A,J,x,S,W,aa,z,U,l,ia,O,p,k)});a(I).bind("touchend.iosSliderEvent",function(){if(la)return!0;m.autoSlide(L,G,v,K,A,J,x,S,W,aa,z,U,l,ia,O,p,k)});k.autoSlideHoverPause&&a(I).bind("mouseenter.iosSliderEvent",function(){m.autoSlidePause(l)});a(I).data("iosslider",{obj:sa,settings:k,scrollerNode:L,
slideNodes:G,numberOfSlides:O,centeredSlideOffset:p,sliderNumber:l,originalOffsets:aa,childrenOffsets:z,sliderMax:E[l],scrollbarClass:K,scrollbarWidth:A,scrollbarStageWidth:x,stageWidth:J,scrollMargin:S,scrollBorder:W,infiniteSliderOffset:C[l],infiniteSliderWidth:ia,slideNodeOuterWidths:U,shortContent:V});Ha=!1;return!0}b++;var l=b,v=[];P[l]=a.extend({},k);u[l]=0;E[l]=0;var M=[0,0],t=[0,0],R="scrollbarBlock"+b,K="scrollbar"+b,ja,Ba,x,A,q,N,p=0,I=a(this),J,Q,S,W,Ga,Ha=!0;g=-1;var z,aa=[],Ia=0,ha=0,
ta=0,L=a(this).children(":first-child"),G,wa,U,O=a(L).children().not("script").length,ma=!1,Ja=0,Ka=!1,Da=void 0,ia;C[l]=0;var V=!1,la=!1;ra[l]=!1;var T,Z=!1,ua=!1,ba="touchstart.iosSliderEvent click.iosSliderEvent",da,va,za,ka;oa[l]=!1;X[l]=[];k.scrollbarDrag&&(k.scrollbar=!0,k.scrollbarHide=!1);var sa=a(this);if(void 0!=sa.data("iosslider"))return!0;14.2<=parseInt(a().jquery.split(".").join(""),10)?a(this).delegate("img","dragstart.iosSliderEvent",function(a){a.preventDefault()}):a(this).find("img").bind("dragstart.iosSliderEvent",
function(a){a.preventDefault()});k.infiniteSlider&&(k.scrollbar=!1);k.infiniteSlider&&1==O&&(k.infiniteSlider=!1);k.scrollbar&&(""!=k.scrollbarContainer?a(k.scrollbarContainer).append("<div class = '"+R+"'><div class = '"+K+"'></div></div>"):a(L).parent().append("<div class = '"+R+"'><div class = '"+K+"'></div></div>"));if(!H())return!0;a(this).find("a").bind("mousedown",m.preventDrag);a(this).find("[onclick]").bind("click",m.preventDrag).each(function(){a(this).data("onclick",this.onclick)});g=m.calcActiveOffset(k,
m.getSliderOffset(a(L),"x"),z,J,C[l],O,void 0,l);g=(g+C[l]+O)%O;g=new m.args("load",k,L,a(L).children(":eq("+g+")"),g,g);a(I).data("args",g);if(""!=k.onSliderLoaded)k.onSliderLoaded(g);k.scrollbarPaging&&k.scrollbar&&!V&&(a(Ba).css("cursor","pointer"),a(Ba).bind("click.iosSliderEvent",function(b){this==b.target&&(b.pageX>a(ja).offset().left?ca.nextPage(I):ca.prevPage(I))}));if(P[l].responsiveSlides||P[l].responsiveSlideContainer)g=h?"orientationchange":"resize",a(window).bind(g+".iosSliderEvent-"+
l,function(){if(!H())return!0;var b=a(I).data("args");if(""!=k.onSliderResize)k.onSliderResize(b)});!k.keyboardControls&&!k.tabToAdvance||V||a(document).bind("keydown.iosSliderEvent",function(a){n||r||(a=a.originalEvent);if("INPUT"==a.target.nodeName||"TEXTAREA"==a.target.nodeName||oa[l])return!0;if(37==a.keyCode&&k.keyboardControls)a.preventDefault(),a=(B[l]+C[l]+O)%O,(0<a||k.infiniteSlider)&&m.changeSlide(a-1,L,G,v,K,A,J,x,S,W,aa,z,U,l,ia,O,p,k);else if(39==a.keyCode&&k.keyboardControls||9==a.keyCode&&
k.tabToAdvance)a.preventDefault(),a=(B[l]+C[l]+O)%O,(a<z.length-1||k.infiniteSlider)&&m.changeSlide(a+1,L,G,v,K,A,J,x,S,W,aa,z,U,l,ia,O,p,k)});if(f||k.desktopClickDrag){var qa=!1,Ea=!1;g=a(L);var xa=a(L),La=!1;k.scrollbarDrag&&(g=g.add(ja),xa=xa.add(Ba));a(g).bind("mousedown.iosSliderEvent touchstart.iosSliderEvent",function(b){a(window).one("scroll.iosSliderEvent",function(a){qa=!1});if(qa)return!0;qa=!0;Ea=!1;"touchstart"==b.type?a(xa).unbind("mousedown.iosSliderEvent"):a(xa).unbind("touchstart.iosSliderEvent");
if(oa[l]||V||(La=m.isUnselectable(b.target,k)))return ma=qa=!1,!0;T=a(this)[0]===a(ja)[0]?ja:L;n||r||(b=b.originalEvent);m.autoSlidePause(l);ka.unbind(".disableClick");if("touchstart"==b.type)eventX=b.touches[0].pageX,eventY=b.touches[0].pageY;else{if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges();else if(document.selection)if(r)try{document.selection.empty()}catch(Va){}else document.selection.empty();
eventX=b.pageX;eventY=b.pageY;Ka=!0;Da=L;a(this).css({cursor:y})}M=[0,0];t=[0,0];c=0;ma=!1;for(b=0;b<v.length;b++)clearTimeout(v[b]);b=m.getSliderOffset(L,"x");b>-1*u[l]+p+da?(b=-1*u[l]+p+da,m.setSliderOffset(a("."+K),b),a("."+K).css({width:A-W+"px"})):b<-1*E[l]&&(b=-1*E[l],m.setSliderOffset(a("."+K),x-S-A),a("."+K).css({width:A-W+"px"}));b=a(this)[0]===a(ja)[0]?u[l]:0;ha=-1*(m.getSliderOffset(this,"x")-eventX-b);m.getSliderOffset(this,"y");M[1]=eventX;t[1]=eventY;ua=!1});a(document).bind("touchmove.iosSliderEvent mousemove.iosSliderEvent",
function(b){n||r||(b=b.originalEvent);if(oa[l]||V||La||!qa)return!0;var f=0;if("touchmove"==b.type)eventX=b.touches[0].pageX,eventY=b.touches[0].pageY;else{if(window.getSelection)window.getSelection().empty||window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges();else if(document.selection)if(r)try{document.selection.empty()}catch(Pa){}else document.selection.empty();eventX=b.pageX;eventY=b.pageY;if(!Ka||!D&&("undefined"!=typeof b.webkitMovementX||"undefined"!=typeof b.webkitMovementY)&&
0===b.webkitMovementY&&0===b.webkitMovementX)return!0}M[0]=M[1];M[1]=eventX;c=(M[1]-M[0])/2;t[0]=t[1];t[1]=eventY;d=(t[1]-t[0])/2;if(!ma){var g=(B[l]+C[l]+O)%O;g=new m.args("start",k,L,a(L).children(":eq("+g+")"),g,void 0);a(I).data("args",g);if(""!=k.onSlideStart)k.onSlideStart(g)}(d>k.verticalSlideLockThreshold||d<-1*k.verticalSlideLockThreshold)&&"touchmove"==b.type&&!ma&&(Z=!0);(c>k.horizontalSlideLockThreshold||c<-1*k.horizontalSlideLockThreshold)&&"touchmove"==b.type&&b.preventDefault();if(c>
k.slideStartVelocityThreshold||c<-1*k.slideStartVelocityThreshold)ma=!0;if(ma&&!Z){g=m.getSliderOffset(L,"x");var h=a(T)[0]===a(ja)[0]?u[l]:p,H=a(T)[0]===a(ja)[0]?(u[l]-E[l]-p)/(x-S-A):1,w=a(T)[0]===a(ja)[0]?k.scrollbarElasticPullResistance:k.elasticPullResistance,v=k.snapSlideCenter&&a(T)[0]===a(ja)[0]?0:p,F=k.snapSlideCenter&&a(T)[0]===a(ja)[0]?p:0;"touchmove"==b.type&&(ta!=b.touches.length&&(ha=-1*g+eventX),ta=b.touches.length);if(k.infiniteSlider){if(g<=-1*E[l]){var q=a(L).width();if(g<=-1*fa[l]){var y=
-1*aa[0];a(G).each(function(b){m.setSliderOffset(a(G)[b],y+p);b<z.length&&(z[b]=-1*y);y+=U[b]});ha-=-1*z[0];u[l]=-1*z[0]+p;E[l]=u[l]+q-J;C[l]=0}else{var Y=0,R=m.getSliderOffset(a(G[0]),"x");a(G).each(function(a){m.getSliderOffset(this,"x")<R&&(R=m.getSliderOffset(this,"x"),Y=a)});w=u[l]+q;m.setSliderOffset(a(G)[Y],w);u[l]=-1*z[1]+p;E[l]=u[l]+q-J;z.splice(0,1);z.splice(z.length,0,-1*w+p);C[l]++}}if(g>=-1*u[l]||0<=g)if(q=a(L).width(),0<=g)for(y=-1*aa[0],a(G).each(function(b){m.setSliderOffset(a(G)[b],
y+p);b<z.length&&(z[b]=-1*y);y+=U[b]}),ha+=-1*z[0],u[l]=-1*z[0]+p,E[l]=u[l]+q-J,C[l]=O;0<-1*z[0]-q+p;){var N=0,P=m.getSliderOffset(a(G[0]),"x");a(G).each(function(a){m.getSliderOffset(this,"x")>P&&(P=m.getSliderOffset(this,"x"),N=a)});w=u[l]-U[N];m.setSliderOffset(a(G)[N],w);z.splice(0,0,-1*w+p);z.splice(z.length-1,1);u[l]=-1*z[0]+p;E[l]=u[l]+q-J;C[l]--;B[l]++}else N=0,P=m.getSliderOffset(a(G[0]),"x"),a(G).each(function(a){m.getSliderOffset(this,"x")>P&&(P=m.getSliderOffset(this,"x"),N=a)}),w=u[l]-
U[N],m.setSliderOffset(a(G)[N],w),z.splice(0,0,-1*w+p),z.splice(z.length-1,1),u[l]=-1*z[0]+p,E[l]=u[l]+q-J,C[l]--}else q=a(L).width(),g>-1*u[l]+p&&(f=(u[l]+-1*(ha-h-eventX+v)*H-h)*w*-1/H),g<-1*E[l]&&(f=(E[l]+F+-1*(ha-h-eventX)*H-h)*w*-1/H);m.setSliderOffset(L,-1*(ha-h-eventX-f)*H-h+F);k.scrollbar&&(m.showScrollbar(k,K),e=Math.floor((ha-eventX-f-u[l]+v)/(E[l]-u[l]+p)*(x-S-A)*H),g=A,0>=e?(g=A-W- -1*e,m.setSliderOffset(a("."+K),0),a("."+K).css({width:g+"px"})):e>=x-S-W-A?(g=x-S-W-e,m.setSliderOffset(a("."+
K),e),a("."+K).css({width:g+"px"})):m.setSliderOffset(a("."+K),e));"touchmove"==b.type&&(Ga=b.touches[0].pageX);b=!1;f=m.calcActiveOffset(k,-1*(ha-eventX-f),z,J,C[l],O,void 0,l);g=(f+C[l]+O)%O;k.infiniteSlider?g!=ea[l]&&(b=!0):f!=B[l]&&(b=!0);if(b){B[l]=f;ea[l]=g;ua=!0;g=new m.args("change",k,L,a(L).children(":eq("+g+")"),g,g);a(I).data("args",g);if(""!=k.onSlideChange)k.onSlideChange(g);m.updateBackfaceVisibility(G,l,O,k)}}});var Qa=a(window);if(r||n)Qa=a(document);a(g).bind("touchcancel.iosSliderEvent touchend.iosSliderEvent",
function(a){a=a.originalEvent;if(Ea)return!1;Ea=!0;if(oa[l]||V||La)return!0;if(0!=a.touches.length)for(var b=0;b<a.touches.length;b++)a.touches[b].pageX==Ga&&m.slowScrollHorizontal(L,G,v,K,c,d,A,J,x,S,W,aa,z,U,l,ia,O,T,ua,p,k);else m.slowScrollHorizontal(L,G,v,K,c,d,A,J,x,S,W,aa,z,U,l,ia,O,T,ua,p,k);qa=Z=!1;return!0});a(Qa).bind("mouseup.iosSliderEvent-"+l,function(b){ma?va.unbind("click.disableClick").bind("click.disableClick",m.preventClick):va.unbind("click.disableClick").bind("click.disableClick",
m.enableClick);za.each(function(){this.onclick=function(b){if(ma)return!1;a(this).data("onclick")&&a(this).data("onclick").call(this,b||window.event)};this.onclick=a(this).data("onclick")});1.8<=parseFloat(a().jquery)?ka.each(function(){var b=a._data(this,"events");if(void 0!=b&&void 0!=b.click&&"iosSliderEvent"!=b.click[0].namespace){if(!ma)return!1;a(this).one("click.disableClick",m.preventClick);b=a._data(this,"events").click;var c=b.pop();b.splice(0,0,c)}}):1.6<=parseFloat(a().jquery)&&ka.each(function(){var b=
a(this).data("events");if(void 0!=b&&void 0!=b.click&&"iosSliderEvent"!=b.click[0].namespace){if(!ma)return!1;a(this).one("click.disableClick",m.preventClick);b=a(this).data("events").click;var c=b.pop();b.splice(0,0,c)}});if(!ra[l]){if(V)return!0;k.desktopClickDrag&&a(L).css({cursor:F});k.scrollbarDrag&&a(ja).css({cursor:F});Ka=!1;if(void 0==Da)return!0;m.slowScrollHorizontal(Da,G,v,K,c,d,A,J,x,S,W,aa,z,U,l,ia,O,T,ua,p,k);Da=void 0}qa=Z=!1})}})},destroy:function(b,c){void 0==c&&(c=this);return a(c).each(function(){var c=
a(this),d=c.data("iosslider");if(void 0==d)return!1;void 0==b&&(b=!0);m.autoSlidePause(d.sliderNumber);ra[d.sliderNumber]=!0;a(window).unbind(".iosSliderEvent-"+d.sliderNumber);a(document).unbind(".iosSliderEvent-"+d.sliderNumber);a(document).unbind("keydown.iosSliderEvent");a(this).unbind(".iosSliderEvent");a(this).children(":first-child").unbind(".iosSliderEvent");a(this).children(":first-child").children().unbind(".iosSliderEvent");a(d.settings.scrollbarBlockNode).unbind(".iosSliderEvent");b&&
(a(this).attr("style",""),a(this).children(":first-child").attr("style",""),a(this).children(":first-child").children().attr("style",""),a(d.settings.navSlideSelector).attr("style",""),a(d.settings.navPrevSelector).attr("style",""),a(d.settings.navNextSelector).attr("style",""),a(d.settings.autoSlideToggleSelector).attr("style",""),a(d.settings.unselectableSelector).attr("style",""));d.settings.scrollbar&&a(".scrollbarBlock"+d.sliderNumber).remove();d=X[d.sliderNumber];for(var e=0;e<d.length;e++)clearTimeout(d[e]);
c.removeData("iosslider");c.removeData("args")})},update:function(b){void 0==b&&(b=this);return a(b).each(function(){var b=a(this),c=b.data("iosslider");if(void 0==c)return!1;c.settings.startAtSlide=b.data("args").currentSlideNumber;ca.destroy(!1,this);1!=c.numberOfSlides&&c.settings.infiniteSlider&&(c.settings.startAtSlide=(B[c.sliderNumber]+1+C[c.sliderNumber]+c.numberOfSlides)%c.numberOfSlides);ca.init(c.settings,this);b=new m.args("update",c.settings,c.scrollerNode,a(c.scrollerNode).children(":eq("+
(c.settings.startAtSlide-1)+")"),c.settings.startAtSlide-1,c.settings.startAtSlide-1);a(c.stageNode).data("args",b);if(""!=c.settings.onSliderUpdate)c.settings.onSliderUpdate(b)})},addSlide:function(b,c){return this.each(function(){var d=a(this),e=d.data("iosslider");if(void 0==e)return!1;0==a(e.scrollerNode).children().length?(a(e.scrollerNode).append(b),d.data("args").currentSlideNumber=1):e.settings.infiniteSlider?(1==c?a(e.scrollerNode).children(":eq(0)").before(b):a(e.scrollerNode).children(":eq("+
(c-2)+")").after(b),-1>C[e.sliderNumber]&&B[e.sliderNumber]--,d.data("args").currentSlideNumber>=c&&B[e.sliderNumber]++):(c<=e.numberOfSlides?a(e.scrollerNode).children(":eq("+(c-1)+")").before(b):a(e.scrollerNode).children(":eq("+(c-2)+")").after(b),d.data("args").currentSlideNumber>=c&&d.data("args").currentSlideNumber++);d.data("iosslider").numberOfSlides++;ca.update(this)})},removeSlide:function(b){return this.each(function(){var c=a(this),d=c.data("iosslider");if(void 0==d)return!1;a(d.scrollerNode).children(":eq("+
(b-1)+")").remove();B[d.sliderNumber]>b-1&&B[d.sliderNumber]--;c.data("iosslider").numberOfSlides--;ca.update(this)})},goToSlide:function(b,c,d){void 0==d&&(d=this);return a(d).each(function(){var d=a(this).data("iosslider");if(void 0==d||d.shortContent)return!1;b=b>d.childrenOffsets.length?d.childrenOffsets.length-1:b-1;void 0!=c&&(d.settings.autoSlideTransTimer=c);m.changeSlide(b,a(d.scrollerNode),a(d.slideNodes),X[d.sliderNumber],d.scrollbarClass,d.scrollbarWidth,d.stageWidth,d.scrollbarStageWidth,
d.scrollMargin,d.scrollBorder,d.originalOffsets,d.childrenOffsets,d.slideNodeOuterWidths,d.sliderNumber,d.infiniteSliderWidth,d.numberOfSlides,d.centeredSlideOffset,d.settings)})},prevSlide:function(b){return this.each(function(){var c=a(this).data("iosslider");if(void 0==c||c.shortContent)return!1;var d=(B[c.sliderNumber]+C[c.sliderNumber]+c.numberOfSlides)%c.numberOfSlides;void 0!=b&&(c.settings.autoSlideTransTimer=b);(0<d||c.settings.infiniteSlider)&&m.changeSlide(d-1,a(c.scrollerNode),a(c.slideNodes),
X[c.sliderNumber],c.scrollbarClass,c.scrollbarWidth,c.stageWidth,c.scrollbarStageWidth,c.scrollMargin,c.scrollBorder,c.originalOffsets,c.childrenOffsets,c.slideNodeOuterWidths,c.sliderNumber,c.infiniteSliderWidth,c.numberOfSlides,c.centeredSlideOffset,c.settings);B[c.sliderNumber]=d})},nextSlide:function(b){return this.each(function(){var c=a(this).data("iosslider");if(void 0==c||c.shortContent)return!1;var d=(B[c.sliderNumber]+C[c.sliderNumber]+c.numberOfSlides)%c.numberOfSlides;void 0!=b&&(c.settings.autoSlideTransTimer=
b);(d<c.childrenOffsets.length-1||c.settings.infiniteSlider)&&m.changeSlide(d+1,a(c.scrollerNode),a(c.slideNodes),X[c.sliderNumber],c.scrollbarClass,c.scrollbarWidth,c.stageWidth,c.scrollbarStageWidth,c.scrollMargin,c.scrollBorder,c.originalOffsets,c.childrenOffsets,c.slideNodeOuterWidths,c.sliderNumber,c.infiniteSliderWidth,c.numberOfSlides,c.centeredSlideOffset,c.settings);B[c.sliderNumber]=d})},prevPage:function(b,c){void 0==c&&(c=this);return a(c).each(function(){var c=a(this).data("iosslider");
if(void 0==c)return!1;var d=m.getSliderOffset(c.scrollerNode,"x")+c.stageWidth;void 0!=b&&(c.settings.autoSlideTransTimer=b);m.changeOffset(d,a(c.scrollerNode),a(c.slideNodes),X[c.sliderNumber],c.scrollbarClass,c.scrollbarWidth,c.stageWidth,c.scrollbarStageWidth,c.scrollMargin,c.scrollBorder,c.originalOffsets,c.childrenOffsets,c.slideNodeOuterWidths,c.sliderNumber,c.infiniteSliderWidth,c.numberOfSlides,c.centeredSlideOffset,c.settings)})},nextPage:function(b,c){void 0==c&&(c=this);return a(c).each(function(){var c=
a(this).data("iosslider");if(void 0==c)return!1;var d=m.getSliderOffset(c.scrollerNode,"x")-c.stageWidth;void 0!=b&&(c.settings.autoSlideTransTimer=b);m.changeOffset(d,a(c.scrollerNode),a(c.slideNodes),X[c.sliderNumber],c.scrollbarClass,c.scrollbarWidth,c.stageWidth,c.scrollbarStageWidth,c.scrollMargin,c.scrollBorder,c.originalOffsets,c.childrenOffsets,c.slideNodeOuterWidths,c.sliderNumber,c.infiniteSliderWidth,c.numberOfSlides,c.centeredSlideOffset,c.settings)})},lock:function(){return this.each(function(){var b=
a(this).data("iosslider");if(void 0==b||b.shortContent)return!1;a(b.scrollerNode).css({cursor:"default"});oa[b.sliderNumber]=!0})},unlock:function(){return this.each(function(){var b=a(this).data("iosslider");if(void 0==b||b.shortContent)return!1;a(b.scrollerNode).css({cursor:F});oa[b.sliderNumber]=!1})},getData:function(){return this.each(function(){var b=a(this).data("iosslider");return void 0==b||b.shortContent?!1:b})},autoSlidePause:function(){return this.each(function(){var b=a(this).data("iosslider");
if(void 0==b||b.shortContent)return!1;P[b.sliderNumber].autoSlide=!1;m.autoSlidePause(b.sliderNumber);return b})},autoSlidePlay:function(){return this.each(function(){var b=a(this).data("iosslider");if(void 0==b||b.shortContent)return!1;P[b.sliderNumber].autoSlide=!0;m.autoSlide(a(b.scrollerNode),a(b.slideNodes),X[b.sliderNumber],b.scrollbarClass,b.scrollbarWidth,b.stageWidth,b.scrollbarStageWidth,b.scrollMargin,b.scrollBorder,b.originalOffsets,b.childrenOffsets,b.slideNodeOuterWidths,b.sliderNumber,
b.infiniteSliderWidth,b.numberOfSlides,b.centeredSlideOffset,b.settings);return b})}};a.fn.iosSlider=function(b){if(ca[b])return ca[b].apply(this,Array.prototype.slice.call(arguments,1));if("object"!==typeof b&&b)a.error("invalid method call!");else return ca.init.apply(this,arguments)}})(jQuery);
(function(a){var b,c,d,e,f,h,g,n=function(){},r=!!window.jQuery,D=a(window),t=function(a,c){b.ev.on("mfp"+a+".mfp",c)},F=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler("mfp"+c,d);b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},R=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=
a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},P=function(){a.magnificPopup.instance||(b=new n,b.init(),a.magnificPopup.instance=b)},ra=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};n.prototype={constructor:n,init:function(){var c=navigator.appVersion;b.isIE7=-1!==c.indexOf("MSIE 7.");b.isIE8=-1!==c.indexOf("MSIE 8.");b.isLowIE=b.isIE7||
b.isIE8;b.isAndroid=/android/gi.test(c);b.isIOS=/iphone|ipad|ipod/gi.test(c);b.supportsTransition=ra();b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent);e=a(document);b.popupsCache={}},open:function(c){d||(d=a(document.body));var f;if(!1===c.isObj){b.items=c.items.toArray();b.index=0;var g,k=c.items;for(f=0;k.length>f;f++)if(g=k[f],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=f;break}}else b.items=a.isArray(c.items)?
c.items:[c.items],b.index=c.index||0;if(b.isOpen)return b.updateItemHTML(),void 0;b.types=[];h="";b.ev=c.mainEl&&c.mainEl.length?c.mainEl.eq(0):e;c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={};b.st=a.extend(!0,{},a.magnificPopup.defaults,c);b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos;b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1);
b.bgOverlay||(b.bgOverlay=F("bg").on("click.mfp",function(){b.close()}),b.wrap=F("wrap").attr("tabindex",-1).on("click.mfp",function(a){b._checkIfClose(a.target)&&b.close()}),b.container=F("container",b.wrap));b.contentContainer=F("content");b.st.preloader&&(b.preloader=F("preloader",b.container,b.st.tLoading));g=a.magnificPopup.modules;for(f=0;g.length>f;f++)k=g[f],k=k.charAt(0).toUpperCase()+k.slice(1),b["init"+k].call(b);y("BeforeOpen");b.st.showCloseBtn&&(b.st.closeBtnInside?(t("MarkupParse",
function(a,b,c,d){c.close_replaceWith=R(d.type)}),h+=" mfp-close-btn-in"):b.wrap.append(R()));b.st.alignTop&&(h+=" mfp-align-top");b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:D.scrollTop(),position:"absolute"});(!1===b.st.fixedBgPos||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:e.height(),position:"absolute"});b.st.enableEscapeKey&&e.on("keyup.mfp",function(a){27===a.keyCode&&b.close()});D.on("resize.mfp",
function(){b.updateSize()});b.st.closeOnContentClick||(h+=" mfp-auto-cursor");h&&b.wrap.addClass(h);f=b.wH=D.height();g={};b.fixedContentPos&&b._hasScrollBar(f)&&(k=b._getScrollbarSize())&&(g.marginRight=k);b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):g.overflow="hidden");k=b.st.mainClass;return b.isIE7&&(k+=" mfp-ie7"),k&&b._addClassToMFP(k),b.updateItemHTML(),y("BuildControls"),a("html").css(g),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||d),b._lastFocusedEl=document.activeElement,
setTimeout(function(){b.content?(b._addClassToMFP("mfp-ready"),b._setFocus()):b.bgOverlay.addClass("mfp-ready");e.on("focusin.mfp",b._onFocusIn)},16),b.isOpen=!0,b.updateSize(f),y("Open"),c},close:function(){b.isOpen&&(y("BeforeClose"),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP("mfp-removing"),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y("Close");var c="mfp-removing mfp-ready ";if(b.bgOverlay.detach(),b.wrap.detach(),
b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos)c={marginRight:""},b.isIE7?a("body, html").css("overflow",""):c.overflow="",a("html").css(c);e.off("keyup.mfp focusin.mfp");b.ev.off(".mfp");b.wrap.attr("class","mfp-wrap").removeAttr("style");b.bgOverlay.attr("class","mfp-bg");b.container.attr("class","mfp-container");!b.st.showCloseBtn||b.st.closeBtnInside&&!0!==b.currTemplate[b.currItem.type]||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach();
b._lastFocusedEl&&a(b._lastFocusedEl).focus();b.currItem=null;b.content=null;b.currTemplate=null;b.prevHeight=0;y("AfterClose")},updateSize:function(a){b.isIOS?(a=document.documentElement.clientWidth/window.innerWidth*window.innerHeight,b.wrap.css("height",a),b.wH=a):b.wH=a||D.height();b.fixedContentPos||b.wrap.css("height",b.wH);y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach();b.content&&b.content.detach();c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",
[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var e=b.st[d]?b.st[d].markup:!1;y("FirstMarkupParse",e);b.currTemplate[d]=e?a(e):!0}f&&f!==c.type&&b.container.removeClass("mfp-"+f+"-holder");e=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(e,d);c.preloaded=!0;y("Change",c);f=c.type;b.container.prepend(b.contentContainer);y("AfterChange")},appendContent:function(a,c){(b.content=a)?b.st.showCloseBtn&&b.st.closeBtnInside&&!0===b.currTemplate[c]?
b.content.find(".mfp-close").length||b.content.append(R()):b.content=a:b.content="";y("BeforeAppend");b.container.addClass("mfp-"+c+"-holder");b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;f.length>g;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src");e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,
y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this;b._openClick(d,a,c)};c||(c={});c.mainEl=a;c.items?(c.isObj=!0,a.off("click.magnificPopup").on("click.magnificPopup",d)):(c.isObj=!1,c.delegate?a.off("click.magnificPopup").on("click.magnificPopup",c.delegate,d):(c.items=a,a.off("click.magnificPopup").on("click.magnificPopup",d)))},_openClick:function(c,d,e){if((void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick)||2!==c.which&&!c.ctrlKey&&!c.metaKey){var f=
void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(f)if(a.isFunction(f)){if(!f.call(b))return!0}else if(f>D.width())return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation());e.el=a(c.mfpEl);e.delegate&&(e.items=d.find(e.delegate));b.open(e)}},updateStatus:function(a,d){b.preloader&&(c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading),d={status:a,text:d},y("UpdateStatus",d),a=d.status,d=d.text,b.preloader.html(d),b.preloader.find("a").on("click",
function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a)},_checkIfClose:function(c){if(!a(c).hasClass("mfp-prevent-close")){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e||!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a);b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a);
b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?e.height():document.body.scrollHeight)>(a||D.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c));y("MarkupParse",[b,c,d]);a.each(c,function(a,c){if(void 0===c||!1===c)return!0;if(e=a.split("_"),1<e.length){if(a=b.find(".mfp-"+
e[0]),0<a.length){var d=e[1];"replaceWith"===d?a[0]!==c[0]&&a.replaceWith(c):"img"===d?a.is("img")?a.attr("src",c):a.replaceWith('<img src="'+c+'" class="'+a.attr("class")+'" />'):a.attr(e[1],c)}}else b.find(".mfp-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.id="mfp-sbm";a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;";document.body.appendChild(a);b.scrollbarSize=a.offsetWidth-a.clientWidth;
document.body.removeChild(a)}return b.scrollbarSize}};a.magnificPopup={instance:null,proto:n.prototype,modules:[],open:function(b,c){return P(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options);a.extend(this.proto,c.proto);this.modules.push(b)},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">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}};a.fn.magnificPopup=function(c){P();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=r?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||
0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g));b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),r?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var X,B,ea,C=function(){ea&&(B.after(ea.addClass(X)).detach(),ea=null)};a.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push("inline");
t("Close.inline",function(){C()})},getInline:function(c,d){if(C(),c.src){d=b.st.inline;var e=a(c.src);if(e.length){var f=e[0].parentNode;f&&f.tagName&&(B||(X=d.hiddenClass,B=F(X),X="mfp-"+X),ea=e.after(B).detach().removeClass(X));b.updateStatus("ready")}else b.updateStatus("error",d.tNotFound),e=a("<div>");return c.inlineElement=e,e}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var u,E=function(){u&&d.removeClass(u);b.req&&b.req.abort()};a.magnificPopup.registerModule("ajax",{options:{settings:null,
cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push("ajax");u=b.st.ajax.cursor;t("Close.ajax",E);t("BeforeChange.ajax",E)},getAjax:function(c){u&&d.addClass(u);b.updateStatus("loading");var e=a.extend({url:c.src,success:function(e,f,g){e={data:e,xhr:g};y("ParseAjax",e);b.appendContent(a(e.data),"ajax");c.finished=!0;u&&d.removeClass(u);b._setFocus();setTimeout(function(){b.wrap.addClass("mfp-ready")},16);b.updateStatus("ready");
y("AjaxContentAdded")},error:function(){u&&d.removeClass(u);c.finished=c.loadError=!0;b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(e),""}}});var fa,oa=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.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=b.st.image;b.types.push("image");t("Open.image",function(){"image"===b.currItem.type&&a.cursor&&d.addClass(a.cursor)});t("Close.image",function(){a.cursor&&d.removeClass(a.cursor);D.off("resize.mfp")});t("Resize.image",b.resizeImage);b.isLowIE&&t("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=
0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10));a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,fa&&clearInterval(fa),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){fa&&clearInterval(fa);fa=setInterval(function(){return 0<d.naturalWidth?(b._onImageHasSize(a),void 0):(200<c&&clearInterval(fa),
c++,3===c?e(10):40===c?e(50):100===c&&e(500),void 0)},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,k=d.find(".mfp-img");
if(k.length){var n=document.createElement("img");n.className="mfp-img";c.img=a(n).on("load.mfploader",f).on("error.mfploader",g);n.src=c.src;k.is("img")&&(c.img=c.img.clone());n=c.img[0];0<n.naturalWidth?c.hasSize=!0:n.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:oa(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(fa&&clearInterval(fa),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),
d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var m;a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom;if(c.enabled&&b.supportsTransition){var d,e,f=c.duration,g=function(a){a=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image");var b={position:"fixed",
zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"};return b["-webkit-transition"]=b["-moz-transition"]=b["-o-transition"]=b.transition="all "+c.duration/1E3+"s "+c.easing,a.css(b),a},h=function(){b.content.css("visibility","visible")};t("BuildControls.zoom",function(){if(b._allowZoom()){if(clearTimeout(d),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return h(),void 0;e=g(a);e.css(b._getOffset());b.wrap.append(e);d=setTimeout(function(){e.css(b._getOffset(!0));d=setTimeout(function(){h();
setTimeout(function(){e.remove();a=e=null;y("ZoomAnimationEnded")},16)},f)},16)}});t("BeforeClose.zoom",function(){if(b._allowZoom()){if(clearTimeout(d),b.st.removalDelay=f,!a){if(a=b._getItemToZoom(),!a)return;e=g(a)}e.css(b._getOffset(!0));b.wrap.append(e);b.content.css("visibility","hidden");setTimeout(function(){e.css(b._getOffset())},16)}});t("Close.zoom",function(){b._allowZoom()&&(h(),e&&e.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?
b.currItem.img:!1},_getOffset:function(c){var d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);c=d.offset();var e=parseInt(d.css("padding-top"),10),f=parseInt(d.css("padding-bottom"),10);c.top-=a(window).scrollTop()-e;d={width:d.width(),height:(r?d.innerHeight():d[0].offsetHeight)-f-e};return(void 0===m&&(m=void 0!==document.createElement("p").style.MozTransform),m)?d["-moz-transform"]=d.transform="translate("+c.left+"px,"+c.top+"px)":(d.left=c.left,d.top=c.top),d}}});var ca=function(a){if(b.currTemplate.iframe){var c=
b.currTemplate.iframe.find("iframe");c.length&&(a||(c[0].src="//about:blank"),b.isIE8&&c.css("display",a?"block":"none"))}};a.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(){b.types.push("iframe");t("BeforeChange",function(a,b,c){b!==c&&("iframe"===b?ca():"iframe"===c&&ca(!0))});t("Close.iframe",function(){ca()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return-1<e.indexOf(this.index)?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g=
{};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var M=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},v=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.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 c=b.st.gallery,d=!!a.fn.mfpFastClick;return b.direction=!0,c&&c.enabled?(h+=" mfp-gallery",t("Open.mfp-gallery",function(){c.navigateByImgClick&&b.wrap.on("click.mfp-gallery",".mfp-img",function(){return 1<b.items.length?(b.next(),!1):void 0});e.on("keydown.mfp-gallery",function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),t("UpdateStatus.mfp-gallery",function(a,c){c.text&&(c.text=v(c.text,b.currItem.index,b.items.length))}),
t("MarkupParse.mfp-gallery",function(a,d,e,f){a=b.items.length;e.counter=1<a?v(c.tCounter,f.index,a):""}),t("BuildControls.mfp-gallery",function(){if(1<b.items.length&&c.arrows&&!b.arrowLeft){var e=c.arrowMarkup,f=b.arrowLeft=a(e.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close");e=b.arrowRight=a(e.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close");var g=d?"mfpFastClick":"click";f[g](function(){b.prev()});e[g](function(){b.next()});
b.isIE7&&(F("b",f[0],!1,!0),F("a",f[0],!1,!0),F("b",e[0],!1,!0),F("a",e[0],!1,!0));b.container.append(f.add(e))}}),t("Change.mfp-gallery",function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout);b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages();b._preloadTimeout=null},16)}),t("Close.mfp-gallery",function(){e.off(".mfp-gallery");b.wrap.off("click.mfp-gallery");b.arrowLeft&&d&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick();b.arrowRight=b.arrowLeft=null}),void 0):!1},next:function(){b.direction=
!0;b.index=M(b.index+1);b.updateItemHTML()},prev:function(){b.direction=!1;b.index=M(b.index-1);b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index;b.index=a;b.updateItemHTML()},preloadNearbyImages:function(){var a=b.st.gallery.preload;var c=Math.min(a[0],b.items.length),d=Math.min(a[1],b.items.length);for(a=1;(b.direction?d:c)>=a;a++)b._preloadItem(b.index+a);for(a=1;(b.direction?c:d)>=a;a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=M(c),!b.items[c].preloaded){var d=b.items[c];
d.parsed||(d=b.parseEl(c));y("LazyLoad",d);"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0;d.loadError=!0;y("LazyLoadError",d)}).attr("src",d.src));d.preloaded=!0}}}});a.magnificPopup.registerModule("retina",{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(1<window.devicePixelRatio){var a=b.st.retina,c=a.ratio;c=isNaN(c)?
c():c;1<c&&(t("ImageHasSize.retina",function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),t("ElementParse.retina",function(b,d){d.src=a.replaceSrc(d,c)}))}}}});(function(){var b="ontouchstart"in window,c=function(){D.off("touchmove"+d+" touchend"+d)},d=".mfpFastClick";a.fn.mfpFastClick=function(e){return a(this).each(function(){var f,g=a(this);if(b){var h,k,n,l,r,m;g.on("touchstart"+d,function(a){l=!1;m=1;r=a.originalEvent?a.originalEvent.touches[0]:a.touches[0];k=r.clientX;
n=r.clientY;D.on("touchmove"+d,function(a){r=a.originalEvent?a.originalEvent.touches:a.touches;m=r.length;r=r[0];(10<Math.abs(r.clientX-k)||10<Math.abs(r.clientY-n))&&(l=!0,c())}).on("touchend"+d,function(a){c();l||1<m||(f=!0,a.preventDefault(),clearTimeout(h),h=setTimeout(function(){f=!1},1E3),e())})})}g.on("click"+d,function(){f||e()})})};a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+d+" click"+d);b&&D.off("touchmove"+d+" touchend"+d)}})();P()})(window.jQuery||window.Zepto);
(function(a,b,c){function d(a){var b={},d=/^jQuery\d+$/;c.each(a.attributes,function(a,c){c.specified&&!d.test(c.name)&&(b[c.name]=c.value)});return b}function e(a,b){var d=c(this);if(this.value==d.attr("placeholder")&&d.hasClass("placeholder"))if(d.data("placeholder-password")){d=d.hide().next().show().attr("id",d.removeAttr("id").data("placeholder-id"));if(!0===a)return d[0].value=b;d.focus()}else this.value="",d.removeClass("placeholder"),this==h()&&this.select()}function f(){var a=c(this),b=this.id;
if(""==this.value){if("password"==this.type){if(!a.data("placeholder-textinput")){try{var f=a.clone().attr({type:"text"})}catch(P){f=c("<input>").attr(c.extend(d(this),{type:"text"}))}f.removeAttr("name").data({"placeholder-password":a,"placeholder-id":b}).bind("focus.placeholder",e);a.data({"placeholder-textinput":f,"placeholder-id":b}).before(f)}a=a.removeAttr("id").hide().prev().attr("id",b).show()}a.addClass("placeholder");a[0].value=a.attr("placeholder")}else a.removeClass("placeholder")}function h(){try{return b.activeElement}catch(F){}}
var g="placeholder"in b.createElement("input"),n="placeholder"in b.createElement("textarea"),r=c.fn,D=c.valHooks,t=c.propHooks;g&&n?(r=r.placeholder=function(){return this},r.input=r.textarea=!0):(r=r.placeholder=function(){this.filter((g?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":e,"blur.placeholder":f}).data("placeholder-enabled",!0).trigger("blur.placeholder");return this},r.input=g,r.textarea=n,r={get:function(a){var b=c(a),d=b.data("placeholder-password");
return d?d[0].value:b.data("placeholder-enabled")&&b.hasClass("placeholder")?"":a.value},set:function(a,b){var d=c(a),g=d.data("placeholder-password");if(g)return g[0].value=b;if(!d.data("placeholder-enabled"))return a.value=b;""==b?(a.value=b,a!=h()&&f.call(a)):d.hasClass("placeholder")?e.call(a,!0,b)||(a.value=b):a.value=b;return d}},g||(D.input=r,t.value=r),n||(D.textarea=r,t.value=r),c(function(){c(b).delegate("form","submit.placeholder",function(){var a=c(".placeholder",this).each(e);setTimeout(function(){a.each(f)},
10)})}),c(a).bind("beforeunload.placeholder",function(){c(".placeholder").each(function(){this.value=""})}))})(this,document,jQuery);
(function(){for(var a=0,b=["ms","moz","webkit","o"],c=0;c<b.length&&!window.requestAnimationFrame;++c)window.requestAnimationFrame=window[b[c]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[b[c]+"CancelAnimationFrame"]||window[b[c]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(b,c){var d=(new Date).getTime(),e=Math.max(0,16-(d-a));c=window.setTimeout(function(){b(d+e)},e);a=d+e;return c});window.cancelAnimationFrame||(window.cancelAnimationFrame=
function(a){clearTimeout(a)})})();var tdDetect={};
(function(){tdDetect={isIe8:!1,isIe9:!1,isIe10:!1,isIe11:!1,isIe:!1,isSafari:!1,isChrome:!1,isIpad:!1,isTouchDevice:!1,hasHistory:!1,isPhoneScreen:!1,isIos:!1,isAndroid:!1,isOsx:!1,isFirefox:!1,isWinOs:!1,isMobileDevice:!1,htmlJqueryObj:null,runIsPhoneScreen:function(){(768>jQuery(window).width()||768>jQuery(window).height())&&!1===tdDetect.isIpad?tdDetect.isPhoneScreen=!0:tdDetect.isPhoneScreen=!1},set:function(a,b){tdDetect[a]=b}};tdDetect.htmlJqueryObj=jQuery("html");-1!==navigator.appVersion.indexOf("Win")&&
tdDetect.set("isWinOs",!0);"ontouchstart"in window&&!tdDetect.isWinOs&&tdDetect.set("isTouchDevice",!0);tdDetect.htmlJqueryObj.is(".ie8")&&(tdDetect.set("isIe8",!0),tdDetect.set("isIe",!0));tdDetect.htmlJqueryObj.is(".ie9")&&(tdDetect.set("isIe9",!0),tdDetect.set("isIe",!0));-1<navigator.userAgent.indexOf("MSIE 10.0")&&(tdDetect.set("isIe10",!0),tdDetect.set("isIe",!0));navigator.userAgent.match(/Trident.*rv:11\./)&&tdDetect.set("isIe11",!0);window.history&&window.history.pushState&&tdDetect.set("hasHistory",
!0);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&tdDetect.set("isSafari",!0);/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())&&tdDetect.set("isChrome",!0);null!==navigator.userAgent.match(/iPad/i)&&tdDetect.set("isIpad",!0);/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&tdDetect.set("isIos",!0);/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&tdDetect.set("isMobileDevice",!0);tdDetect.runIsPhoneScreen();
-1<navigator.userAgent.toLowerCase().indexOf("android")&&tdDetect.set("isAndroid",!0);-1!==navigator.userAgent.indexOf("Mac OS X")&&tdDetect.set("isOsx",!0);-1!==navigator.userAgent.indexOf("Firefox")&&tdDetect.set("isFirefox",!0)})();var tdViewport={};
(function(){tdViewport={INTERVAL_INITIAL_INDEX:-1,_currentIntervalIndex:tdViewport.INTERVAL_INITIAL_INDEX,_intervalList:[],init:function(){if("undefined"!==typeof window.td_viewport_interval_list&&Array===window.td_viewport_interval_list.constructor){for(var a=0;a<window.td_viewport_interval_list.length;a++){var b=new tdViewport.item,c=window.td_viewport_interval_list[a];if(!c.hasOwnProperty("limitBottom")||!c.hasOwnProperty("sidebarWidth"))break;b.limitBottom=c.limitBottom;b.sidebarWidth=c.sidebarWidth;
tdViewport._items.push(b)}tdViewport.detectChanges()}},getCurrentIntervalIndex:function(){return tdViewport._currentIntervalIndex},setIntervalList:function(a){tdViewport._intervalList=a},getIntervalList:function(){return tdViewport._intervalList},getCurrentIntervalItem:function(){return tdViewport.INTERVAL_INITIAL_INDEX===tdViewport._currentIntervalIndex||0===tdViewport._currentIntervalIndex?null:tdViewport._items[tdViewport._currentIntervalIndex-1]},_items:[],item:function(){this.sidebarWidth=this.limitBottom=
void 0},detectChanges:function(){var a=!1,b=0;var c=!0===tdDetect.isSafari?this._safariWiewPortWidth.getRealWidth():Math.max(document.documentElement.clientWidth,window.innerWidth||0);for(var d=0;d<tdViewport._items.length;d++){if(c<=tdViewport._items[d].limitBottom){b!==tdViewport._currentIntervalIndex&&(tdViewport._currentIntervalIndex=b,a=!0,tdViewport.log("changing viewport "+tdViewport._currentIntervalIndex+" ~ "+c));break}b++}!1===a&&b!==tdViewport._currentIntervalIndex&&(tdViewport._currentIntervalIndex=
b,a=!0,tdViewport.log("changing viewport "+tdViewport._currentIntervalIndex+" ~ "+c));return a},_safariWiewPortWidth:{divAdded:!1,divJqueryObject:"",getRealWidth:function(){!1===this.divAdded&&(this.divJqueryObject=jQuery("<div>").css({height:"1px",position:"absolute",top:"-1px",left:"0",right:"0",visibility:"hidden","z-index":"-1"}),this.divJqueryObject.appendTo("body"),this.divAdded=!0);return this.divJqueryObject.width()}},log:function(a){}};tdViewport.init()})();var tdMenu={};
(function(){tdMenu={_itemsWithSubmenu:null,_mainMenu:null,_outsideClickArea:null,_outsideClickExcludedAreas:"#td-header-menu .sf-menu, #td-header-menu .sf-menu *, .menu-top-container, .menu-top-container *",_openMenuClass:"sfHover",_openMenuBodyClass:"td-open-menu",init:function(){var a=jQuery("#td-header-menu .sf-menu"),b=jQuery("#td-header-menu .sf-menu, .top-header-menu"),c=b.find(".menu-item-has-children > a, .td-mega-menu > a");c.append('<i class="td-icon-menu-down"></i>');a.supersubs({minWidth:10,
maxWidth:20,extraWidth:1});c.addClass("sf-with-ul");b.addClass("sf-js-enabled");c.parent().find("ul").first().css("display","none");tdMenu._mainMenu=a;tdMenu._itemsWithSubmenu=c;tdMenu._outsideClickArea=jQuery(window).not(tdMenu._outsideClickExcludedAreas);tdMenu._setHover(c,a)},_getSubmenuPosition:function(a){var b=jQuery(window).width();a=a.children("ul").first();if(0<a.length){var c=a.offset().left+a.width();c>b&&(a.parent().parent().hasClass("sf-menu")?a.css("left","-"+(c-b)+"px"):a.addClass("reversed").css("left",
"-"+(a.width()+0)+"px"))}},_getMouseAngleDirection:function(a,b,c,d){return Math.atan2(c-a,d-b)/Math.PI*180},_setHover:function(a,b){if(tdDetect.isTouchDevice)jQuery(document).on("touchstart","body",function(b){var c=a.parent(),d=jQuery("body");d.hasClass(tdMenu._openMenuBodyClass)&&!c.is(b.target)&&0===c.has(b.target).length&&(c.removeClass(tdMenu._openMenuClass),c.children("ul").hide(),d.removeClass(tdMenu._openMenuBodyClass))}),a.on("touchstart",function(b){b.preventDefault();b.stopPropagation();
var c=jQuery(this);b=c.parent();var d=jQuery("body");b.hasClass(tdMenu._openMenuClass)?null!==c.attr("href")&&"#"!==c.attr("href")?window.location.href=c.attr("href"):((b.parent().hasClass("sf-menu")||b.parent().hasClass("top-header-menu"))&&d.removeClass(tdMenu._openMenuBodyClass),b.removeClass(tdMenu._openMenuClass),b.find("ul").hide(),b.find("li").removeClass(tdMenu._openMenuClass)):(b.parent().hasClass("sf-menu")||b.parent().hasClass("top-header-menu")?(a.parent().removeClass(tdMenu._openMenuClass),
a.parent().children("ul").hide()):(c=b.siblings(),c.removeClass(tdMenu._openMenuClass),c.find("ul").hide(),c.find("li").removeClass(tdMenu._openMenuClass)),b.addClass(tdMenu._openMenuClass),b.children("ul").show(),tdMenu._getSubmenuPosition(b),d.addClass(tdMenu._openMenuBodyClass))});else{var c={},d,e=!0;b.on("mouseleave",function(){a.parent().removeClass(tdMenu._openMenuClass);a.parent().children("ul").hide();c={}});b.find(".menu-item").hover(function(){var b=jQuery(this),h="",g,n;if(b.hasClass("menu-item-has-children")||
b.hasClass("td-mega-menu"))if(b.parent().hasClass("sf-menu"))if(jQuery.isEmptyObject(c))b.addClass(tdMenu._openMenuClass),b.children("ul").show(),c=b;else{if(b[0]!==c[0]){var r=n=g=0;var D=null;!0===e&&(e=!1,d=setTimeout(function(){a.parent().removeClass(tdMenu._openMenuClass);a.parent().children("ul").hide();b.addClass(tdMenu._openMenuClass);b.children("ul").show();c=b},400));b.on("mousemove",function(f){5<=g?(g=0,D=tdMenu._getMouseAngleDirection(n,r,f.pageX,f.pageY),n=f.pageX,r=f.pageY):(g++,0===
n&&0===r&&(n=f.pageX,r=f.pageY));null!==D&&(85<D||-85>D)&&(a.parent().removeClass(tdMenu._openMenuClass),a.parent().children("ul").hide(),b.addClass(tdMenu._openMenuClass),b.children("ul").show(),b.off("mousemove"),clearTimeout(d),e=!0,c=b)})}}else h=b.siblings(),h.removeClass(tdMenu._openMenuClass),h.find("ul").hide(),h.find("li").removeClass(tdMenu._openMenuClass),b.addClass(tdMenu._openMenuClass),b.children("ul").show(),tdMenu._getSubmenuPosition(b);else b.parent().hasClass("sf-menu")||b.parent().hasClass("top-header-menu")?
jQuery.isEmptyObject(c)||(r=n=g=0,D=null,!0===e&&(e=!1,d=setTimeout(function(){a.parent().removeClass(tdMenu._openMenuClass);a.parent().children("ul").hide();c={}},400)),b.on("mousemove",function(f){5<=g?(g=0,D=tdMenu._getMouseAngleDirection(n,r,f.pageX,f.pageY),n=f.pageX,r=f.pageY):(g++,0===n&&0===r&&(n=f.pageX,r=f.pageY));null!==D&&(85<D||-85>D)&&(a.parent().removeClass(tdMenu._openMenuClass),a.parent().children("ul").hide(),b.off("mousemove"),clearTimeout(d),e=!0,c={})})):(c=b.parent(),h=b.siblings(),
h.removeClass(tdMenu._openMenuClass),h.find("ul").hide(),h.find("li").removeClass(tdMenu._openMenuClass))},function(){var a=jQuery(this);!1===e&&(clearTimeout(d),e=!0);a.off("mousemove")})}},unsetHover:function(){null!==tdMenu._itemsWithSubmenu&&tdMenu._itemsWithSubmenu.off();null!==tdMenu._outsideClickArea&&tdMenu._outsideClickArea.off()}}})();jQuery().ready(function(){tdMenu.init()});var tdUtil={};
(function(){tdUtil={email_pattern:/^[a-zA-Z0-9][a-zA-Z0-9_\.-]{0,}[a-zA-Z0-9]@[a-zA-Z0-9][a-zA-Z0-9_\.-]{0,}[a-z0-9][\.][a-z0-9]{2,4}$/,stopBubble:function(a){a&&a.stopPropagation?a.stopPropagation():window.event.cancelBubble=!0},isEmail:function(a){return tdUtil.email_pattern.test(a)},imageMoveClassToFigure:function(a){jQuery("figure ."+a).each(function(){jQuery(this).parents("figure:first").addClass(a);jQuery(this).removeClass(a)})},getBackendVar:function(a){return"undefined"===typeof window[a]?
"":window[a]},isUndefined:function(a){return void 0===a},scrollToElement:function(a,b){tdIsScrollingAnimation=!0;jQuery("html, body").stop();a=a.offset().top>jQuery(document).height()-jQuery(window).height()?jQuery(document).height()-jQuery(window).height():a.offset().top;jQuery("html, body").animate({scrollTop:a},{duration:b,easing:"easeInOutQuart",complete:function(){tdIsScrollingAnimation=!1}})},scrollIntoView:function(a){tdIsScrollingAnimation=!0;if(!0!==tdDetect.isMobileDevice){jQuery("html, body").stop();
a=a.find("img").offset().top;a-=150;var b=Math.abs(jQuery(window).scrollTop()-a)/5;jQuery("html, body").animate({scrollTop:a},{duration:1100+b,easing:"easeInOutQuart",complete:function(){tdIsScrollingAnimation=!1}})}},scrollToPosition:function(a,b){if(window.location!==window.parent.location){var c=jQuery(window.parent.document),d=c.find("#"+jQuery("html").attr("id")).offset().top;tdIsScrollingAnimation=!0;c.find("html, body").stop();c.find("html, body").animate({scrollTop:d+a},{duration:b,easing:"easeInOutQuart",
complete:function(){tdIsScrollingAnimation=!1}})}else tdIsScrollingAnimation=!0,jQuery("html, body").stop(),jQuery("html, body").animate({scrollTop:a},{duration:b,easing:"easeInOutQuart",complete:function(){tdIsScrollingAnimation=!1}})},tdMoveY:function(a,b){b="translate3d(0px,"+b+"px, 0px)";a.style["-webkit-transform"]=b;a.style["-moz-transform"]=b;a.style["-ms-transform"]=b;a.style["-o-transform"]=b;a.style.transform=b},isValidUrl:function(a){return/^(https?:\/\/)?((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|((\d{1,3}\.){3}\d{1,3}))(\:\d+)?(\/[-a-z\d%_.~+]*)*(\?[;&a-z\d%_.~+=-]*)?(\#[-a-z\d_]*)?$/i.test(a)?
!0:!1},round:function(a,b,c){b=Math.pow(10,b|0);a*=b;var d=0<a|-(0>a);var e=a%1===.5*d;var f=Math.floor(a);if(e)switch(c){case "PHP_ROUND_HALF_DOWN":a=f+(0>d);break;case "PHP_ROUND_HALF_EVEN":a=f+f%2*d;break;case "PHP_ROUND_HALF_ODD":a=f+!(f%2);break;default:a=f+(0<d)}return(e?a:Math.round(a))/b}}})();var tdAffix={};
(function(){tdAffix={allow_scroll:!0,menu_selector:"",menu_wrap_selector:"",tds_snap_menu:"",tds_snap_menu_logo:"",is_menu_affix_height_computed:!1,is_menu_affix_height_on_mobile_computed:!1,menu_affix_height:0,menu_affix_height_on_mobile:0,main_menu_height:0,top_offset:0,menu_offset:0,is_requestAnimationFrame_running:!1,is_menu_affix:!1,is_top_menu:!1,menu_offset_max_hit:!1,menu_offset_min_hit:!0,scroll_window_scrollTop_last:0,init:function(a){tdAffix.menu_selector=a.menu_selector;tdAffix.menu_wrap_selector=
a.menu_wrap_selector;tdAffix.tds_snap_menu=a.tds_snap_menu;tdAffix.tds_snap_menu_logo=a.tds_snap_menu_logo;tdAffix.menu_affix_height=a.menu_affix_height;tdAffix.menu_affix_height_on_mobile=a.menu_affix_height_on_mobile;jQuery(tdAffix.menu_selector).length&&jQuery(tdAffix.menu_wrap_selector).length&&tdAffix.tds_snap_menu&&(tdDetect.isFirefox&&(tdAffix.compute_wrapper(),tdAffix.compute_top()),jQuery().ready(function(){tdAffix.compute_wrapper();tdAffix.compute_top()}),jQuery(window).on("load",function(){tdAffix.compute_wrapper();
tdAffix.compute_top();setTimeout(function(){tdAffix.compute_top()},1E3)}))},_get_menu_affix_height:function(){if(!0===tdDetect.isPhoneScreen)return!tdAffix.is_menu_affix_height_on_mobile_computed&&tdAffix.is_menu_affix&&(tdAffix.is_menu_affix_height_on_mobile_computed=!0,tdAffix.menu_affix_height_on_mobile=jQuery(tdAffix.menu_selector).height()),tdAffix.menu_affix_height_on_mobile;!tdAffix.is_menu_affix_height_computed&&tdAffix.is_menu_affix&&(tdAffix.is_menu_affix_height_computed=!0,tdAffix.menu_affix_height=
jQuery(tdAffix.menu_selector).height(),"smart_snap_always"===tdAffix.tds_snap_menu&&(tdAffix.top_offset=tdAffix.menu_affix_height));return tdAffix.menu_affix_height},td_events_scroll:function(a){if(tdAffix.allow_scroll&&tdAffix.tds_snap_menu){var b="";if("snap"!==tdAffix.tds_snap_menu&&("smart_snap_mobile"!==tdAffix.tds_snap_menu||!0===tdDetect.isPhoneScreen)){var c=0;a!==tdAffix.scroll_window_scrollTop_last&&(b=a>tdAffix.scroll_window_scrollTop_last?"down":"up",c=Math.abs(a-tdAffix.scroll_window_scrollTop_last));
tdAffix.scroll_window_scrollTop_last=a}""!==tdAffix.tds_snap_menu&&""!==tdAffix.tds_snap_menu_logo&&jQuery(".td-main-menu-logo").addClass("td-logo-sticky");if(a>tdAffix.top_offset+(tdAffix.main_menu_height/2-tdAffix._get_menu_affix_height()/2)||!0===tdAffix.is_menu_affix&&"smart_snap_always"===tdAffix.tds_snap_menu&&a>tdAffix.top_offset-tdAffix._get_menu_affix_height()||!0===tdAffix.is_top_menu){var d=jQuery(tdAffix.menu_selector);d.length&&tdAffix._affix_on(d);"snap"===tdAffix.tds_snap_menu||"smart_snap_mobile"===
tdAffix.tds_snap_menu&&!1===tdDetect.isPhoneScreen||d.length&&(!1===tdAffix.menu_offset_max_hit&&"down"===b||!1===tdAffix.menu_offset_min_hit&&"up"===b)&&window.requestAnimationFrame(function(){var e=0;0<a&&("down"===b?(e=tdAffix.menu_offset-c,e<-tdAffix._get_menu_affix_height()&&(e=-tdAffix._get_menu_affix_height())):"up"===b&&(e=tdAffix.menu_offset+c,0<e&&(e=0)));tdUtil.tdMoveY(d[0],e);tdAffix.menu_offset_min_hit=0===e?!0:!1;e===-tdAffix._get_menu_affix_height()?(tdAffix.menu_offset_max_hit=!0,
(!0===tdDetect.isIos||tdDetect.isSafari)&&d.hide(),""!==tdAffix.tds_snap_menu_logo&&jQuery(".td-main-menu-logo").addClass("td-logo-sticky")):(tdAffix.menu_offset_max_hit=!1,(!0===tdDetect.isIos||tdDetect.isSafari)&&d.show());tdAffix.menu_offset=e},d[0])}else{var e=jQuery(tdAffix.menu_selector);e.length&&tdAffix._affix_off(e)}}},compute_top:function(){jQuery(tdAffix.menu_wrap_selector).length&&(tdAffix.top_offset=jQuery(tdAffix.menu_wrap_selector).offset().top,"smart_snap_always"===tdAffix.tds_snap_menu&&
(tdAffix.top_offset+=tdAffix.menu_affix_height),tdAffix.is_top_menu=1===tdAffix.top_offset?!0:!1,tdAffix.td_events_scroll(jQuery(window).scrollTop()))},compute_wrapper:function(){jQuery(tdAffix.menu_selector).hasClass("td-affix")?(jQuery(tdAffix.menu_selector).removeClass("td-affix"),tdAffix.main_menu_height=jQuery(tdAffix.menu_selector).height(),jQuery(tdAffix.menu_selector).addClass("td-affix")):tdAffix.main_menu_height=jQuery(tdAffix.menu_selector).height();jQuery(tdAffix.menu_wrap_selector).css("height",
tdAffix.main_menu_height)},_affix_on:function(a){!1===tdAffix.is_menu_affix?("smart_snap_always"===tdAffix.tds_snap_menu&&!0!==tdDetect.isPhoneScreen&&a.css("visibility","hidden"),tdAffix.menu_offset=-tdAffix.top_offset,a.addClass("td-affix"),jQuery("body").addClass("body-td-affix"),tdAffix.is_menu_affix=!0):!0!==tdDetect.isPhoneScreen&&a.css("visibility","")},_affix_off:function(a){!0===tdAffix.is_menu_affix&&(jQuery(tdAffix.menu_selector).removeClass("td-affix"),""===tdAffix.tds_snap_menu_logo&&
jQuery(".td-main-menu-logo").removeClass("td-logo-sticky"),jQuery("body").removeClass("body-td-affix"),tdAffix.is_menu_affix=!1,tdUtil.tdMoveY(a[0],0),(!0===tdDetect.isIos||tdDetect.isSafari)&&a.show())}}})();"use strict";
jQuery().ready(function(){function a(a){tdScrollToClass.resetItems();a.each(function(){var a=new tdScrollToClass.item;a.handlerObj=jQuery(this);tdScrollToClass.addItem(a)});tdScrollToClass.manageActiveClasses()}function b(){var b=jQuery("[data-scroll-to-class]"),c=!1;b.each(function(){var a=jQuery(this),b=!1;tdScrollToClass.items.forEach(function(c){c.handlerObj.data("td-block-uid")===a.data("td-block-uid")&&(b=!0)});b||(c=!0)});c&&a(b)}td_retina();td_mobile_menu_toogle();td_resize_videos();jQuery("input, textarea").placeholder();
td_more_articles_box.init();td_smart_lists_magnific_popup();td_smart_list_dropdown();if("undefined"!==typeof tdsDateFormat){var c=Math.floor((new Date).getTime()/1E3);c=td_date_i18n(tdsDateFormat,c);jQuery(".td_data_time").text(c)}td_comments_form_validation();b();window.location!==window.parent.location&&setInterval(function(){jQuery("[data-scroll-to-class]").length&&b()},1E3)});
function td_smart_list_dropdown(){jQuery(".td-smart-list-dropdown").on("change",function(){window.location=this.value})}
var td_more_articles_box={is_box_visible:!1,cookie:"",distance_from_top:400,init:function(){td_more_articles_box.cookie=td_read_site_cookie("td-cookie-more-articles");!isNaN(parseInt(tds_more_articles_on_post_pages_distance_from_top))&&isFinite(tds_more_articles_on_post_pages_distance_from_top)&&0<parseInt(tds_more_articles_on_post_pages_distance_from_top)?td_more_articles_box.distance_from_top=parseInt(tds_more_articles_on_post_pages_distance_from_top):td_more_articles_box.distance_from_top=400;
jQuery(".td-close-more-articles-box").click(function(){jQuery(".td-more-articles-box").removeClass("td-front-end-display-block");jQuery(".td-more-articles-box").hide();!isNaN(parseInt(tds_more_articles_on_post_time_to_wait))&&isFinite(tds_more_articles_on_post_time_to_wait)&&td_set_cookies_life(["td-cookie-more-articles","hide-more-articles-box",864E5*parseInt(tds_more_articles_on_post_time_to_wait)])})},td_events_scroll:function(a){tdIsScrollingAnimation||"show"!=tdUtil.getBackendVar("tds_more_articles_on_post_enable")||
"hide-more-articles-box"==td_more_articles_box.cookie||(a>td_more_articles_box.distance_from_top?!1===td_more_articles_box.is_box_visible&&(jQuery(".td-more-articles-box").addClass("td-front-end-display-block"),td_more_articles_box.is_box_visible=!0):!0===td_more_articles_box.is_box_visible&&(jQuery(".td-more-articles-box").removeClass("td-front-end-display-block"),td_more_articles_box.is_box_visible=!1))}},td_resize_timer_id;
jQuery(window).resize(function(){clearTimeout(td_resize_timer_id);td_resize_timer_id=setTimeout(function(){td_done_resizing()},200)});function td_done_resizing(){td_resize_videos()}
function td_resize_videos(){jQuery(document).find('iframe[src*="youtube.com"]').each(function(){var a=jQuery(this).parent().parent().parent(),b=jQuery(this).parent().hasClass("td_wrapper_playlist_player_vimeo"),c=a.hasClass("vc_video-aspect-ratio-43");a=a.hasClass("vc_video-aspect-ratio-235");b||c||a||(b=jQuery(this),b.attr("width","100%"),c=b.width(),b.css("height",.5625*c,"important"))});jQuery(document).find('iframe[src*="vimeo.com"]').each(function(){var a=jQuery(this).parent().parent().parent(),
b=jQuery(this).parent().hasClass("td_wrapper_playlist_player_vimeo"),c=a.hasClass("vc_video-aspect-ratio-43");a=a.hasClass("vc_video-aspect-ratio-235");b||c||a||(b=jQuery(this),b.attr("width","100%"),c=b.width(),b.css("height",.5625*c,"important"))});jQuery(document).find('iframe[src*="dailymotion.com"]').each(function(){var a=jQuery(this).parent().parent().parent(),b=a.hasClass("vc_video-aspect-ratio-43");a=a.hasClass("vc_video-aspect-ratio-235");b||a||(b=jQuery(this),b.attr("width","100%"),a=b.width(),
b.css("height",.6*a,"important"))})}function td_mobile_menu(){}
function td_mobile_menu_toogle(){jQuery("#td-top-mobile-toggle a, .td-mobile-close a, .tdb-mobile-menu-button").click(function(){jQuery("body").hasClass("td-menu-mob-open-menu")?jQuery("body").removeClass("td-menu-mob-open-menu"):jQuery("body").addClass("td-menu-mob-open-menu")});jQuery(document).find("#td-mobile-nav .menu-item-has-children").each(function(a){a="td_mobile_submenu td_mobile_elem_with_submenu_"+a;jQuery(this).addClass(a);jQuery(this).children("a").addClass("td-link-element-after");
jQuery(this).click(function(a){var b=jQuery(a.target);!b.length||!b.hasClass("td-element-after")&&!b.hasClass("td-link-element-after")||"#"!==b.attr("href")&&void 0!==b.attr("href")||(a.preventDefault(),a.stopPropagation(),jQuery(this).toggleClass("td-sub-menu-open"))})})}
function td_retina(){1<window.devicePixelRatio&&(jQuery(".td-retina").each(function(a){a=jQuery(this).attr("src").replace(".png","@2x.png");a=a.replace(".jpg","@2x.jpg");jQuery(this).attr("src",a)}),jQuery(".td-retina-data").each(function(a){jQuery(this).attr("src",jQuery(this).data("retina"));jQuery(this).addClass("td-retina-version")}))}
tdDetect.isTouchDevice||""==tdUtil.getBackendVar("td_ad_background_click_link")||jQuery("body").click(function(a){a=jQuery(a.target?a.target:a.srcElement);if(a.hasClass("td-outer-container")||a.hasClass("td-theme-wrap")||a.hasClass("td-header-wrap")||"tdb-autoload-article"===a.attr("id"))"_blank"==td_ad_background_click_target?window.open(td_ad_background_click_link):location.href=td_ad_background_click_link});
function td_read_site_cookie(a){a=escape(a)+"=";for(var b=document.cookie.split(";"),c=0;c<b.length;c++){for(var d=b[c];" "==d.charAt(0);)d=d.substring(1,d.length);if(0==d.indexOf(a))return unescape(d.substring(a.length,d.length))}return null}function td_set_cookies_life(a){var b=new Date;b.setTime(b.getTime()+a[2]);document.cookie=a[0]+"="+a[1]+"; expires="+b.toGMTString()+"; path=/"}var tdIsScrollingAnimation=!1,td_mouse_wheel_or_touch_moved=!1;
jQuery(document).bind("mousewheel DOMMouseScroll MozMousePixelScroll",function(a){!1!==tdIsScrollingAnimation&&(tdIsScrollingAnimation=!1,td_mouse_wheel_or_touch_moved=!0,jQuery("html, body").stop())});document.addEventListener&&document.addEventListener("touchmove",function(a){!1!==tdIsScrollingAnimation&&(tdIsScrollingAnimation=!1,td_mouse_wheel_or_touch_moved=!0,jQuery("html, body").stop())},!1);var td_scroll_to_top_is_visible=!1;
function td_events_scroll_scroll_to_top(a){tdIsScrollingAnimation||(400<a?!1===td_scroll_to_top_is_visible&&(td_scroll_to_top_is_visible=!0,jQuery(".td-scroll-up").addClass("td-scroll-up-visible")):!0===td_scroll_to_top_is_visible&&(td_scroll_to_top_is_visible=!1,jQuery(".td-scroll-up").removeClass("td-scroll-up-visible")))}
jQuery(".td-scroll-up").click(function(){if(!tdIsScrollingAnimation)return td_scroll_to_top_is_visible=!1,jQuery(".td-scroll-up").removeClass("td-scroll-up-visible"),td_more_articles_box.is_box_visible=!1,jQuery(".td-more-articles-box").removeClass("td-front-end-display-block"),tdUtil.scrollToPosition(0,1200),!1});jQuery(".td-read-down a").click(function(a){a.preventDefault();tdUtil.scrollToPosition(jQuery(".td-full-screen-header-image-wrap").height(),1200)});
function td_post_template_6_title(){function a(){d=jQuery(document).scrollTop();if(950>=d){var a=1-d/800;!0===tdDetect.isIe8&&(a=1);a=Math.round(100*a)/100;b.style.opacity=a;tdUtil.tdMoveY(c,- -Math.round(d/4));e=-Math.round(d/8);tdUtil.tdMoveY(b,-e)}f=!1}var b=document.getElementById("td_parallax_header_6"),c=document.getElementById("td-full-screen-header-image"),d="",e;jQuery(window).scroll(function(){!1===f&&window.requestAnimationFrame(a);f=!0});var f=!1}
function td_smart_lists_magnific_popup(){jQuery(".td-lightbox-enabled").magnificPopup({delegate:"a",type:"image",tLoading:"Loading image #%curr%...",mainClass:"mfp-img-mobile",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1],tCounter:tdUtil.getBackendVar("td_magnific_popup_translation_tCounter")},image:{tError:"<a href='%url%'>The image #%curr%</a> could not be loaded.",titleSrc:function(a){return a.el.attr("data-caption")}},zoom:{enabled:!0,duration:300,opener:function(a){return a.find("img")}},
callbacks:{change:function(a){if(""!=a.el[0].id){var b=a.el[0].id.split("_");jQuery(".td-iosSlider").iosSlider("goToSlide",parseInt(b[1])+1)}else tdModalImageLastEl=a.el,setTimeout(function(){tdUtil.scrollIntoView(a.el)},100)},beforeClose:function(){""!=tdModalImageLastEl&&tdUtil.scrollIntoView(tdModalImageLastEl)}}});jQuery("[data-mfp-src]").on("click",function(a){a.preventDefault();if("undefined"===typeof window.parent.tdcAdminSettings)return a=jQuery(this),a.hasClass("td-mfp-loaded")||(a.addClass("td-mfp-loaded"),
a.magnificPopup({preloader:!0,tLoading:"Loading url #%curr%...",type:"iframe",markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe></div>',iframe:{patterns:{youtube:{index:"youtube.com/",id:function(a){return(a=a.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&\?]{11,11}).*/))&&2<=a.length?a[2]:null},src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"}},
srcAction:"iframe_src"}})),a.magnificPopup("open"),!1})}function td_get_document_width(){var a=0;self.innerHeight?a=self.innerWidth:document.documentElement&&document.documentElement.clientHeight?a=document.documentElement.clientWidth:document.body&&(a=document.body.clientWidth);return a}
function td_get_document_height(){var a=0;self.innerHeight?a=self.innerHeight:document.documentElement&&document.documentElement.clientHeight?a=document.documentElement.clientHeight:document.body&&(a=document.body.clientHeight);return a}
function td_comments_form_validation(){var a=jQuery("#g-recaptcha-response");if(1===a.length){var b=a.attr("data-sitekey");grecaptcha.ready(function(){grecaptcha.execute(b,{action:"validate_captcha"}).then(function(a){document.getElementById("g-recaptcha-response").value=a})})}jQuery(".comment-form").submit(function(a){var b=jQuery(this);jQuery(a.target).find(":input").each(function(){var c=jQuery(this);jQuery("#g-recaptcha-response").val().trim();c.attr("aria-required")&&(""===c.val()?(a.preventDefault(),
b.addClass("td-comment-form-warnings"),"comment"===c.attr("id")?(b.find(".td-warning-comment").show(200),c.css("border","1px solid #ff7a7a")):"author"===c.attr("id")?(b.find(".td-warning-author").show(200),c.css("border","1px solid #ff7a7a")):"email"===c.attr("id")&&(b.find(".td-warning-email").show(200),c.css("border","1px solid #ff7a7a"))):"email"===c.attr("id")&&!1===tdUtil.isEmail(c.val())?(a.preventDefault(),b.addClass("td-comment-form-warnings"),b.find(".td-warning-email-error").show(200)):
"g-recaptcha-response"===c.attr("id")&&""!==c.val()&&(a.preventDefault(),c={action:"td_ajax_comment_submit_captcha",token:c.val()},jQuery.ajax({type:"POST",url:td_ajax_url,data:c}).success(function(a){a=jQuery.parseJSON(a);!0===a.success?b.unbind("submit").submit():!1===a.success&&(b.addClass("td-comment-form-warnings"),"score failed"===a.error?b.find(".td-warning-captcha-score").show(200):(b.find(".td-warning-captcha").show(200),b.find(".td-warning-captcha-score").hide(200)))})))})});jQuery("form#commentform :input").each(function(){var a=
jQuery(this).parent().parent(),b=jQuery(this);b.focus(function(){"comment"===b.attr("id")?(a.find(".td-warning-comment").hide(200),a.find(".td-warning-captcha").hide(200),b.css("border","1px solid #e1e1e1")):"author"===b.attr("id")?(a.find(".td-warning-author").hide(200),a.find(".td-warning-captcha").hide(200),b.css("border","1px solid #e1e1e1")):"email"===b.attr("id")&&(a.find(".td-warning-email").hide(200),a.find(".td-warning-email-error").hide(200),a.find(".td-warning-captcha").hide(200),b.css("border",
"1px solid #e1e1e1"))})})}
jQuery(window).on("load",function(){var a=td_read_site_cookie("td-cookie-scroll-to-class"),b=td_read_site_cookie("td-cookie-scroll-offset");if("undefined"!==typeof a&&null!==a){td_set_cookies_life(["td-cookie-scroll-to-class","",1]);td_set_cookies_life(["td-cookie-scroll-offset","",1]);var c=jQuery("."+a);if(c.length){c=c.offset();var d=400*Math.floor(Math.abs(c.top)/100);1500<d?d=1500:500>d&&(d=500);var e=0;"undefined"!==typeof b&&null!==b&&(e=parseInt(b));tdUtil.scrollToPosition(c.top+e,d);a=jQuery('[data-scroll-to-class="'+
a+'"]');a.length&&(a=a.parent().parent("li.menu-item"),a.length&&(a.siblings(".current-menu-item").removeClass("current-menu-item"),a.addClass("current-menu-item")))}}});
"undefined"!==typeof window.td_fb_login_enabled&&jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"td_ajax_fb_login_get_credentials"},success:function(a){var b=jQuery.parseJSON(a);""===b.error&&(window.fbAsyncInit=function(){FB.init({appId:b.app_id,cookie:!0,xfbml:!0,version:"v13.0"});FB.AppEvents.logPageView()},function(a,b,e){var c=a.getElementsByTagName(b)[0];a.getElementById(e)||(a=a.createElement(b),a.id=e,a.src="https://connect.facebook.net/en_US/sdk.js",c.parentNode.insertBefore(a,c))}(document,
"script","facebook-jssdk"))}});var tdLoadingBox={};
(function(){tdLoadingBox={speed:40,arrayColorsTemp:"rgba(99, 99, 99, 0);rgba(99, 99, 99, 0.05);rgba(99, 99, 99, 0.08);rgba(99, 99, 99, 0.2);rgba(99, 99, 99, 0.3);rgba(99, 99, 99, 0.5);rgba(99, 99, 99, 0.6);rgba(99, 99, 99, 1)".split(";"),arrayColors:[],statusAnimation:"stop",stop:function(){tdLoadingBox.statusAnimation="stop"},init:function(a,b){!1===tdUtil.isUndefined(b)&&(tdLoadingBox.speed=b);b=/^#[a-zA-Z0-9]{3,6}$/;a&&b.test(a)?(a=tdLoadingBox.hexToRgb(a),a="rgba("+a.r+", "+a.g+", "+a.b+", ",
tdLoadingBox.arrayColors[7]=a+" 0.9)",tdLoadingBox.arrayColors[6]=a+" 0.7)",tdLoadingBox.arrayColors[5]=a+" 0.5)",tdLoadingBox.arrayColors[4]=a+" 0.3)",tdLoadingBox.arrayColors[3]=a+" 0.15)",tdLoadingBox.arrayColors[2]=a+" 0.15)",tdLoadingBox.arrayColors[1]=a+" 0.15)",tdLoadingBox.arrayColors[0]=a+" 0.15)"):tdLoadingBox.arrayColors=tdLoadingBox.arrayColorsTemp.slice(0);"stop"===tdLoadingBox.statusAnimation&&(tdLoadingBox.statusAnimation="display",this.render())},render:function(a){tdLoadingBox.animationDisplay('<div class="td-lb-box td-lb-box-1" style="background-color:'+
tdLoadingBox.arrayColors[0]+'"></div><div class="td-lb-box td-lb-box-2" style="background-color:'+tdLoadingBox.arrayColors[1]+'"></div><div class="td-lb-box td-lb-box-3" style="background-color:'+tdLoadingBox.arrayColors[2]+'"></div><div class="td-lb-box td-lb-box-4" style="background-color:'+tdLoadingBox.arrayColors[3]+'"></div><div class="td-lb-box td-lb-box-5" style="background-color:'+tdLoadingBox.arrayColors[4]+'"></div><div class="td-lb-box td-lb-box-6" style="background-color:'+tdLoadingBox.arrayColors[5]+
'"></div><div class="td-lb-box td-lb-box-7" style="background-color:'+tdLoadingBox.arrayColors[6]+'"></div><div class="td-lb-box td-lb-box-8" style="background-color:'+tdLoadingBox.arrayColors[7]+'"></div>');a=[tdLoadingBox.arrayColors[0],tdLoadingBox.arrayColors[1],tdLoadingBox.arrayColors[2],tdLoadingBox.arrayColors[3],tdLoadingBox.arrayColors[4],tdLoadingBox.arrayColors[5],tdLoadingBox.arrayColors[6],tdLoadingBox.arrayColors[7]];tdLoadingBox.arrayColors[0]=a[7];tdLoadingBox.arrayColors[1]=a[0];
tdLoadingBox.arrayColors[2]=a[1];tdLoadingBox.arrayColors[3]=a[2];tdLoadingBox.arrayColors[4]=a[3];tdLoadingBox.arrayColors[5]=a[4];tdLoadingBox.arrayColors[6]=a[5];tdLoadingBox.arrayColors[7]=a[6];"display"===tdLoadingBox.statusAnimation?setTimeout(tdLoadingBox.render,tdLoadingBox.speed):tdLoadingBox.animationDisplay("")},animationDisplay:function(a){jQuery(".td-loader-gif").html(a)},hexToRgb:function(a){return(a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a))?{r:parseInt(a[1],16),g:parseInt(a[2],
16),b:parseInt(a[3],16)}:null}}})();var tdAjaxSearch={};jQuery().ready(function(){tdAjaxSearch.init()});
(function(){tdAjaxSearch={_current_selection_index:0,_last_request_results_count:0,_first_down_up:!0,_is_search_open:!1,_is_mob_live_search_active:!0,_blockAtts:void 0,init:function(){jQuery(document).on("click",function(a){"td-icon-search"!==a.target.className&&"td-header-search"!==a.target.id&&"td-header-search-top"!==a.target.id&&!0===tdAjaxSearch._is_search_open&&tdAjaxSearch.hide_search_box()});jQuery("#td-header-search-button").on("click",function(a){a.preventDefault();a.stopPropagation();!0===
tdAjaxSearch._is_search_open?tdAjaxSearch.hide_search_box():tdAjaxSearch.show_search_box()});jQuery("#td-header-search-button-mob, .tdb-header-search-button-mob").on("click",function(a){jQuery("body").addClass("td-search-opened");var b=jQuery("#td-header-search-mob");setTimeout(function(){b.focus();var a=b.val();b.val("");b.val(a)},1300);tdAjaxSearch._is_mob_live_search_active&&0<b.val().trim().length&&tdAjaxSearch.do_ajax_call_mob()});jQuery(".td-search-close a").on("click",function(){jQuery("body").removeClass("td-search-opened")});
jQuery("#td-header-search").keydown(function(a){if(a.which&&39===a.which||a.keyCode&&39===a.keyCode||a.which&&37===a.which||a.keyCode&&37===a.keyCode)tdAjaxSearch.td_aj_search_input_focus();else{if(a.which&&13===a.which||a.keyCode&&13===a.keyCode)return a=jQuery(".td-aj-cur-element"),0<a.length?(a=a.find(".entry-title a").attr("href"),window.location=a):jQuery(this).parent().parent().submit(),!1;if(a.which&&40===a.which||a.keyCode&&40===a.keyCode)return tdAjaxSearch.move_prompt_down(),!1;if(a.which&&
38===a.which||a.keyCode&&38===a.keyCode)return tdAjaxSearch.move_prompt_up(),!1;(a.which&&8===a.which||a.keyCode&&8===a.keyCode)&&1===jQuery(this).val().length&&jQuery("#td-aj-search").empty();tdAjaxSearch.td_aj_search_input_focus();setTimeout(function(){tdAjaxSearch.do_ajax_call()},100);return!0}});jQuery("#td-header-search-mob").keydown(function(a){if(a.which&&13===a.which||a.keyCode&&13===a.keyCode)return a=jQuery(".td-aj-cur-element"),0<a.length?window.location=a.find(".entry-title a").attr("href"):
jQuery(this).parent().parent().submit(),!1;(a.which&&8===a.which||a.keyCode&&8===a.keyCode)&&1===jQuery(this).val().length&&jQuery("#td-aj-search-mob").empty();tdAjaxSearch._is_mob_live_search_active&&setTimeout(function(){tdAjaxSearch.do_ajax_call_mob()},100);return!0})},show_search_box:function(){jQuery(".td-drop-down-search").addClass("td-drop-down-search-open");!0!==tdDetect.isIos&&setTimeout(function(){document.getElementById("td-header-search").focus()},200);tdAjaxSearch._is_search_open=!0},
hide_search_box:function(){jQuery(".td-drop-down-search").removeClass("td-drop-down-search-open");tdAjaxSearch._is_search_open=!1},move_prompt_up:function(){!0===tdAjaxSearch._first_down_up?(tdAjaxSearch._first_down_up=!1,0===tdAjaxSearch._current_selection_index?tdAjaxSearch._current_selection_index=tdAjaxSearch._last_request_results_count-1:tdAjaxSearch._current_selection_index--):0===tdAjaxSearch._current_selection_index?tdAjaxSearch._current_selection_index=tdAjaxSearch._last_request_results_count:
tdAjaxSearch._current_selection_index--;tdAjaxSearch._repaintCurrentElement()},move_prompt_down:function(){!0===tdAjaxSearch._first_down_up?tdAjaxSearch._first_down_up=!1:tdAjaxSearch._current_selection_index===tdAjaxSearch._last_request_results_count?tdAjaxSearch._current_selection_index=0:tdAjaxSearch._current_selection_index++;tdAjaxSearch._repaintCurrentElement()},_repaintCurrentElement:function(){jQuery(".td_module_wrap").removeClass("td-aj-cur-element");tdAjaxSearch._current_selection_index>
tdAjaxSearch._last_request_results_count-1?jQuery(".td-search-form").fadeTo(100,1):(tdAjaxSearch.td_aj_search_input_remove_focus(),jQuery(".td_module_wrap").eq(tdAjaxSearch._current_selection_index).addClass("td-aj-cur-element"))},td_aj_search_input_focus:function(){tdAjaxSearch._current_selection_index=0;tdAjaxSearch._first_down_up=!0;jQuery(".td-search-form").fadeTo(100,1);jQuery(".td_module_wrap").removeClass("td-aj-cur-element")},td_aj_search_input_remove_focus:function(){0!==tdAjaxSearch._last_request_results_count&&
jQuery(".td-search-form").css("opacity",.5)},process_ajax_response:function(a){var b=jQuery("#td-header-search").val();""===b?jQuery("#td-aj-search").empty():(a=jQuery.parseJSON(a),a.td_search_query===b&&(tdAjaxSearch._current_selection_index=0,tdAjaxSearch._last_request_results_count=a.td_total_in_list,tdAjaxSearch._first_down_up=!0,jQuery("#td-aj-search").html(a.td_data),"undefined"!==typeof window.tdAnimationStack&&!0===window.tdAnimationStack.activated&&(window.tdAnimationStack.check_for_new_items("#td-aj-search .td-animation-stack",
window.tdAnimationStack.SORTED_METHOD.sort_left_to_right,!0,!1),window.tdAnimationStack.compute_items(!1))))},process_ajax_response_mob:function(a){var b=jQuery("#td-header-search-mob").val();""===b?jQuery("#td-aj-search-mob").empty():(a=jQuery.parseJSON(a),a.td_search_query===b&&(jQuery("#td-aj-search-mob").html(a.td_data),"undefined"!==typeof window.tdAnimationStack&&!0===window.tdAnimationStack.activated&&(window.tdAnimationStack.check_for_new_items("#td-aj-search-mob .td-animation-stack",window.tdAnimationStack.SORTED_METHOD.sort_left_to_right,
!0,!1),window.tdAnimationStack.compute_items(!1))))},do_ajax_call:function(){var a=jQuery("#td-header-search").val();""===a?tdAjaxSearch.td_aj_search_input_focus():tdLocalCache.exist(a)?tdAjaxSearch.process_ajax_response(tdLocalCache.get(a)):jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"td_ajax_search",td_string:a},success:function(b,c,d){tdLocalCache.set(a,b);tdAjaxSearch.process_ajax_response(b)},error:function(a,c,d){}})},do_ajax_call_mob:function(){var a=jQuery("#td-header-search-mob").val();
""!==a&&(tdLocalCache.exist(a)?tdAjaxSearch.process_ajax_response_mob(tdLocalCache.get(a)):jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"td_ajax_search",atts:this._blockAtts,td_string:a},success:function(b,c,d){tdLocalCache.set(a,b);tdAjaxSearch.process_ajax_response_mob(b)},error:function(a,c,d){}}))}}})();"use strict";
jQuery().ready(function(){tdUtil.imageMoveClassToFigure("td-post-image-full");tdUtil.imageMoveClassToFigure("td-post-image-right");tdUtil.imageMoveClassToFigure("td-post-image-left");"undefined"!==typeof window.tds_general_modal_image&&""!==window.tds_general_modal_image&&(jQuery(".single .td-post-content a > img").filter(function(a,b){if(-1!==b.className.indexOf("wp-image")){a=jQuery(b);b=a.parent();var c=b.attr("href");-1===c.indexOf(document.domain)||-1===c.indexOf("uploads")&&-1===c.indexOf("attachment")||
(a.addClass("td-modal-image"),-1!==c.indexOf("attachment")&&b.attr("href",a.attr("src")))}}),jQuery(".single .td-post-content .wp-block-image img").filter(function(a,b){if(-1!==b.className.indexOf("wp-image")){a=jQuery(b);b=a.attr("src");var c=a.parent().children("figcaption").html();1!==a.closest(".td-modal-image").length&&(a.wrap("<a href='"+b+"' class=''></a>"),a.addClass("td-modal-image"),jQuery(a).parents("a").data({caption:c}))}}))});var tdModalImageLastEl="";
!function(a,b,c,d){function e(a,b,c){return setTimeout(r(a,c),b)}function f(a,b,c){return Array.isArray(a)?(h(a,c[b],c),!0):!1}function h(a,b,c){var e;if(a)if(a.forEach)a.forEach(b,c);else if(a.length!==d)for(e=0;e<a.length;)b.call(c,a[e],e,a),e++;else for(e in a)a.hasOwnProperty(e)&&b.call(c,a[e],e,a)}function g(b,c,d){var e="DEPRECATED METHOD: "+c+"\n"+d+" AT \n";return function(){var c=Error("get-stack-trace");c=c&&c.stack?c.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,
"{anonymous}()@"):"Unknown Stack Trace";var d=a.console&&(a.console.warn||a.console.log);return d&&d.call(a.console,e,c),b.apply(this,arguments)}}function n(a,b,c){var d=b.prototype;b=a.prototype=Object.create(d);b.constructor=a;b._super=d;c&&G(b,c)}function r(a,b){return function(){return a.apply(b,arguments)}}function D(a,b){return typeof a==Ia?a.apply(b?b[0]||d:d,b):a}function t(a,b,c){h(R(b),function(b){a.addEventListener(b,c,!1)})}function F(a,b,c){h(R(b),function(b){a.removeEventListener(b,
c,!1)})}function y(a,b){for(;a;){if(a==b)return!0;a=a.parentNode}return!1}function R(a){return a.trim().split(/\s+/g)}function P(a,b,c){if(a.indexOf&&!c)return a.indexOf(b);for(var d=0;d<a.length;){if(c&&a[d][c]==b||!c&&a[d]===b)return d;d++}return-1}function ra(a){return Array.prototype.slice.call(a,0)}function X(a,b,c){for(var d=[],e=[],f=0;f<a.length;){var g=b?a[f][b]:a[f];0>P(e,g)&&d.push(a[f]);e[f]=g;f++}return c&&(d=b?d.sort(function(a,c){return a[b]>c[b]}):d.sort()),d}function B(a,b){for(var c,
e,f=b[0].toUpperCase()+b.slice(1),g=0;g<z.length;){if(c=z[g],e=c?c+f:b,e in a)return e;g++}return d}function ea(b){b=b.ownerDocument||b;return b.defaultView||b.parentWindow||a}function C(a,b){var c=this;this.manager=a;this.callback=b;this.element=a.element;this.target=a.options.inputTarget;this.domHandler=function(b){D(a.options.enable,[a])&&c.handler(b)};this.init()}function u(a){var b=a.options.inputClass;return new (b?b:Ka?k:Da?w:Ja?Y:v)(a,E)}function E(a,b,c){var e=c.pointers.length;var f=c.changedPointers.length;
var g=b&V&&0===e-f;e=b&(T|Z)&&0===e-f;c.isFirst=!!g;c.isFinal=!!e;g&&(a.session={});c.eventType=b;b=a.session;g=c.pointers;e=g.length;b.firstInput||(b.firstInput=fa(c));1<e&&!b.firstMultiple?b.firstMultiple=fa(c):1===e&&(b.firstMultiple=!1);f=b.firstInput;var h=(e=b.firstMultiple)?e.center:f.center;var na=c.center=oa(g);c.timeStamp=L();c.deltaTime=c.timeStamp-f.timeStamp;c.angle=M(h,na);c.distance=ca(h,na);f=c.center;h=b.offsetDelta||{};na=b.prevDelta||{};var k=b.prevInput||{};c.eventType!==V&&k.eventType!==
T||(na=b.prevDelta={x:k.deltaX||0,y:k.deltaY||0},h=b.offsetDelta={x:f.x,y:f.y});c.deltaX=na.x+(f.x-h.x);c.deltaY=na.y+(f.y-h.y);c.offsetDirection=m(c.deltaX,c.deltaY);h=c.deltaTime;f=c.deltaX/h||0;h=c.deltaY/h||0;c.overallVelocityX=f;c.overallVelocityY=h;c.overallVelocity=ta(f)>ta(h)?f:h;e?(f=e.pointers,f=ca(g[0],g[1],xa)/ca(f[0],f[1],xa)):f=1;c.scale=f;e?(e=e.pointers,g=M(g[1],g[0],xa)+M(e[1],e[0],xa)):g=0;c.rotation=g;c.maxPointers=b.prevInput?c.pointers.length>b.prevInput.maxPointers?c.pointers.length:
b.prevInput.maxPointers:c.pointers.length;h=b.lastInterval||c;g=c.timeStamp-h.timeStamp;c.eventType!=Z&&(g>ia||h.velocity===d)?(f=c.deltaX-h.deltaX,h=c.deltaY-h.deltaY,na=f/g||0,k=h/g||0,g=na,e=k,na=ta(na)>ta(k)?na:k,f=m(f,h),b.lastInterval=c):(na=h.velocity,g=h.velocityX,e=h.velocityY,f=h.direction);c.velocity=na;c.velocityX=g;c.velocityY=e;c.direction=f;b=a.element;y(c.srcEvent.target,b)&&(b=c.srcEvent.target);c.target=b;a.emit("hammer.input",c);a.recognize(c);a.session.prevInput=c}function fa(a){for(var b=
[],c=0;c<a.pointers.length;)b[c]={clientX:ha(a.pointers[c].clientX),clientY:ha(a.pointers[c].clientY)},c++;return{timeStamp:L(),pointers:b,center:oa(b),deltaX:a.deltaX,deltaY:a.deltaY}}function oa(a){var b=a.length;if(1===b)return{x:ha(a[0].clientX),y:ha(a[0].clientY)};for(var c=0,d=0,e=0;b>e;)c+=a[e].clientX,d+=a[e].clientY,e++;return{x:ha(c/b),y:ha(d/b)}}function m(a,b){return a===b?ua:ta(a)>=ta(b)?0>a?ba:da:0>b?va:za}function ca(a,b,c){c||(c=Ea);var d=b[c[0]]-a[c[0]];a=b[c[1]]-a[c[1]];return Math.sqrt(d*
d+a*a)}function M(a,b,c){c||(c=Ea);return 180*Math.atan2(b[c[1]]-a[c[1]],b[c[0]]-a[c[0]])/Math.PI}function v(){this.evEl=Qa;this.evWin=bb;this.pressed=!1;C.apply(this,arguments)}function k(){this.evEl=Wa;this.evWin=Xa;C.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}function H(){this.evTarget=fb;this.evWin=db;this.started=!1;C.apply(this,arguments)}function w(){this.evTarget=hb;this.targetIds={};C.apply(this,arguments)}function l(a,b){var c=ra(a.touches),d=this.targetIds;if(b&
(V|la)&&1===c.length)return d[c[0].identifier]=!0,[c,c];var e;a=ra(a.changedTouches);var f=[],g=this.target;if(e=c.filter(function(a){return y(a.target,g)}),b===V)for(c=0;c<e.length;)d[e[c].identifier]=!0,c++;for(c=0;c<a.length;)d[a[c].identifier]&&f.push(a[c]),b&(T|Z)&&delete d[a[c].identifier],c++;return f.length?[X(e.concat(f),"identifier",!0),f]:void 0}function Y(){C.apply(this,arguments);var a=r(this.handler,this);this.touch=new w(this.manager,a);this.mouse=new v(this.manager,a);this.primaryTouch=
null;this.lastTouches=[]}function Ua(a){a=a.changedPointers[0];if(a.identifier===this.primaryTouch){var b={x:a.clientX,y:a.clientY};this.lastTouches.push(b);var c=this.lastTouches;setTimeout(function(){var a=c.indexOf(b);-1<a&&c.splice(a,1)},ib)}}function Ta(a,b){this.manager=a;this.set(b)}function ab(a){if(-1<a.indexOf(Ca))return Ca;var b=-1<a.indexOf(Ma),c=-1<a.indexOf(Na);return b&&c?Ca:b||c?b?Ma:Na:-1<a.indexOf(Pa)?Pa:$a}function K(a){this.options=G({},this.defaults,a||{});this.id=O++;this.manager=
null;a=this.options.enable;this.options.enable=a===d?!0:a;this.state=Ra;this.simultaneous={};this.requireFail=[]}function ja(a){return a&Oa?"cancel":a&Aa?"end":a&Fa?"move":a&pa?"start":""}function Ba(a){return a==za?"down":a==va?"up":a==ba?"left":a==da?"right":""}function x(a,b){return(b=b.manager)?b.get(a):a}function A(){K.apply(this,arguments)}function q(){A.apply(this,arguments);this.pY=this.pX=null}function N(){A.apply(this,arguments)}function p(){K.apply(this,arguments);this._input=this._timer=
null}function I(){A.apply(this,arguments)}function J(){A.apply(this,arguments)}function Q(){K.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}function S(a,b){b=b||{};var c=b.recognizers;return b.recognizers=c===d?S.defaults.preset:c,new W(a,b)}function W(a,b){this.options=G({},S.defaults,b||{});this.options.inputTarget=this.options.inputTarget||a;this.handlers={};this.session={};this.recognizers=[];this.oldCssProps={};this.element=a;this.input=u(this);this.touchAction=
new Ta(this,this.options.touchAction);Ga(this,!0);h(this.options.recognizers,function(a){var b=this.add(new a[0](a[1]));a[2]&&b.recognizeWith(a[2]);a[3]&&b.requireFailure(a[3])},this)}function Ga(a,b){var c=a.element;if(c.style){var d;h(a.options.cssProps,function(e,f){d=B(c.style,f);b?(a.oldCssProps[d]=c.style[d],c.style[d]=e):c.style[d]=a.oldCssProps[d]||""});b||(a.oldCssProps={})}}function Ha(a,c){var d=b.createEvent("Event");d.initEvent(a,!0,!0);d.gesture=c;c.target.dispatchEvent(d)}var z=" webkit Moz MS ms o".split(" "),
aa=b.createElement("div"),Ia="function",ha=Math.round,ta=Math.abs,L=Date.now;var G="function"!=typeof Object.assign?function(a){if(a===d||null===a)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(a),c=1;c<arguments.length;c++){var e=arguments[c];if(e!==d&&null!==e)for(var f in e)e.hasOwnProperty(f)&&(b[f]=e[f])}return b}:Object.assign;var wa=g(function(a,b,c){for(var e=Object.keys(b),f=0;f<e.length;)(!c||c&&a[e[f]]===d)&&(a[e[f]]=b[e[f]]),f++;return a},"extend","Use `assign`."),
U=g(function(a,b){return wa(a,b,!0)},"merge","Use `assign`."),O=1,ma=/mobile|tablet|ip(ad|hone|od)|android/i,Ja="ontouchstart"in a,Ka=B(a,"PointerEvent")!==d,Da=Ja&&ma.test(navigator.userAgent),ia=25,V=1,la=2,T=4,Z=8,ua=1,ba=2,da=4,va=8,za=16,ka=ba|da,sa=va|za,qa=ka|sa,Ea=["x","y"],xa=["clientX","clientY"];C.prototype={handler:function(){},init:function(){this.evEl&&t(this.element,this.evEl,this.domHandler);this.evTarget&&t(this.target,this.evTarget,this.domHandler);this.evWin&&t(ea(this.element),
this.evWin,this.domHandler)},destroy:function(){this.evEl&&F(this.element,this.evEl,this.domHandler);this.evTarget&&F(this.target,this.evTarget,this.domHandler);this.evWin&&F(ea(this.element),this.evWin,this.domHandler)}};var La={mousedown:V,mousemove:la,mouseup:T},Qa="mousedown",bb="mousemove mouseup";n(v,C,{handler:function(a){var b=La[a.type];b&V&&0===a.button&&(this.pressed=!0);b&la&&1!==a.which&&(b=T);this.pressed&&(b&T&&(this.pressed=!1),this.callback(this.manager,b,{pointers:[a],changedPointers:[a],
pointerType:"mouse",srcEvent:a}))}});var Va={pointerdown:V,pointermove:la,pointerup:T,pointercancel:Z,pointerout:Z},cb={2:"touch",3:"pen",4:"mouse",5:"kinect"},Wa="pointerdown",Xa="pointermove pointerup pointercancel";a.MSPointerEvent&&!a.PointerEvent&&(Wa="MSPointerDown",Xa="MSPointerMove MSPointerUp MSPointerCancel");n(k,C,{handler:function(a){var b=this.store,c=!1,d=a.type.toLowerCase().replace("ms","");d=Va[d];var e=cb[a.pointerType]||a.pointerType,f="touch"==e,g=P(b,a.pointerId,"pointerId");
d&V&&(0===a.button||f)?0>g&&(b.push(a),g=b.length-1):d&(T|Z)&&(c=!0);0>g||(b[g]=a,this.callback(this.manager,d,{pointers:b,changedPointers:[a],pointerType:e,srcEvent:a}),c&&b.splice(g,1))}});var eb={touchstart:V,touchmove:la,touchend:T,touchcancel:Z},fb="touchstart",db="touchstart touchmove touchend touchcancel";n(H,C,{handler:function(a){var b=eb[a.type];if(b===V&&(this.started=!0),this.started){var c=ra(a.touches);var d=ra(a.changedTouches);d=(b&(T|Z)&&(c=X(c.concat(d),"identifier",!0)),[c,d]);
b&(T|Z)&&0===d[0].length-d[1].length&&(this.started=!1);this.callback(this.manager,b,{pointers:d[0],changedPointers:d[1],pointerType:"touch",srcEvent:a})}}});var gb={touchstart:V,touchmove:la,touchend:T,touchcancel:Z},hb="touchstart touchmove touchend touchcancel";n(w,C,{handler:function(a){var b=gb[a.type],c=l.call(this,a,b);c&&this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:"touch",srcEvent:a})}});var ib=2500;n(Y,C,{handler:function(a,b,c){var d="touch"==c.pointerType,
e="mouse"==c.pointerType;if(!(e&&c.sourceCapabilities&&c.sourceCapabilities.firesTouchEvents)){if(d)b&V?(this.primaryTouch=c.changedPointers[0].identifier,Ua.call(this,c)):b&(T|Z)&&Ua.call(this,c);else{if(d=e)a:{d=c.srcEvent.clientX;e=c.srcEvent.clientY;for(var f=0;f<this.lastTouches.length;f++){var g=this.lastTouches[f],h=Math.abs(e-g.y);if(25>=Math.abs(d-g.x)&&25>=h){d=!0;break a}}d=!1}if(d)return}this.callback(a,b,c)}},destroy:function(){this.touch.destroy();this.mouse.destroy()}});var Ya=B(aa.style,
"touchAction"),Za=Ya!==d,$a="auto",Pa="manipulation",Ca="none",Ma="pan-x",Na="pan-y",Sa=function(){if(!Za)return!1;var b={},c=a.CSS&&a.CSS.supports;return"auto;manipulation;pan-y;pan-x;pan-x pan-y;none".split(";").forEach(function(d){b[d]=c?a.CSS.supports("touch-action",d):!0}),b}();Ta.prototype={set:function(a){"compute"==a&&(a=this.compute());Za&&this.manager.element.style&&Sa[a]&&(this.manager.element.style[Ya]=a);this.actions=a.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var a=[];return h(this.manager.recognizers,function(b){D(b.options.enable,[b])&&(a=a.concat(b.getTouchAction()))}),ab(a.join(" "))},preventDefaults:function(a){var b=a.srcEvent,c=a.offsetDirection;if(this.manager.session.prevented)return void b.preventDefault();var d=this.actions,e=-1<d.indexOf(Ca)&&!Sa[Ca],f=-1<d.indexOf(Na)&&!Sa[Na];d=-1<d.indexOf(Ma)&&!Sa[Ma];if(e){var g=2>a.distance,h=250>a.deltaTime;if(1===a.pointers.length&&g&&h)return}return d&&f?void 0:e||f&&c&ka||d&&c&
sa?this.preventSrc(b):void 0},preventSrc:function(a){this.manager.session.prevented=!0;a.preventDefault()}};var Ra=1,pa=2,Fa=4,Aa=8,ya=Aa,Oa=16;K.prototype={defaults:{},set:function(a){return G(this.options,a),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(a){if(f(a,"recognizeWith",this))return this;var b=this.simultaneous;return a=x(a,this),b[a.id]||(b[a.id]=a,a.recognizeWith(this)),this},dropRecognizeWith:function(a){return f(a,"dropRecognizeWith",this)?this:(a=x(a,
this),delete this.simultaneous[a.id],this)},requireFailure:function(a){if(f(a,"requireFailure",this))return this;var b=this.requireFail;return a=x(a,this),-1===P(b,a)&&(b.push(a),a.requireFailure(this)),this},dropRequireFailure:function(a){if(f(a,"dropRequireFailure",this))return this;a=x(a,this);a=P(this.requireFail,a);return-1<a&&this.requireFail.splice(a,1),this},hasRequireFailures:function(){return 0<this.requireFail.length},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){function b(b){c.manager.emit(b,
a)}var c=this,d=this.state;Aa>d&&b(c.options.event+ja(d));b(c.options.event);a.additionalEvent&&b(a.additionalEvent);d>=Aa&&b(c.options.event+ja(d))},tryEmit:function(a){return this.canEmit()?this.emit(a):void(this.state=32)},canEmit:function(){for(var a=0;a<this.requireFail.length;){if(!(this.requireFail[a].state&(32|Ra)))return!1;a++}return!0},recognize:function(a){a=G({},a);return D(this.options.enable,[this,a])?(this.state&(ya|Oa|32)&&(this.state=Ra),this.state=this.process(a),void(this.state&
(pa|Fa|Aa|Oa)&&this.tryEmit(a))):(this.reset(),void(this.state=32))},process:function(a){},getTouchAction:function(){},reset:function(){}};n(A,K,{defaults:{pointers:1},attrTest:function(a){var b=this.options.pointers;return 0===b||a.pointers.length===b},process:function(a){var b=this.state,c=a.eventType,d=b&(pa|Fa);a=this.attrTest(a);return d&&(c&Z||!a)?b|Oa:d||a?c&T?b|Aa:b&pa?b|Fa:pa:32}});n(q,A,{defaults:{event:"pan",threshold:10,pointers:1,direction:qa},getTouchAction:function(){var a=this.options.direction,
b=[];return a&ka&&b.push(Na),a&sa&&b.push(Ma),b},directionTest:function(a){var b=this.options,c=!0,d=a.distance,e=a.direction,f=a.deltaX,g=a.deltaY;return e&b.direction||(b.direction&ka?(e=0===f?ua:0>f?ba:da,c=f!=this.pX,d=Math.abs(a.deltaX)):(e=0===g?ua:0>g?va:za,c=g!=this.pY,d=Math.abs(a.deltaY))),a.direction=e,c&&d>b.threshold&&e&b.direction},attrTest:function(a){return A.prototype.attrTest.call(this,a)&&(this.state&pa||!(this.state&pa)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX;
this.pY=a.deltaY;var b=Ba(a.direction);b&&(a.additionalEvent=this.options.event+b);this._super.emit.call(this,a)}});n(N,A,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ca]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||this.state&pa)},emit:function(a){1!==a.scale&&(a.additionalEvent=this.options.event+(1>a.scale?"in":"out"));this._super.emit.call(this,a)}});n(p,K,{defaults:{event:"press",pointers:1,time:251,
threshold:9},getTouchAction:function(){return[$a]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance<b.threshold,f=a.deltaTime>b.time;if(this._input=a,!d||!c||a.eventType&(T|Z)&&!f)this.reset();else if(a.eventType&V)this.reset(),this._timer=e(function(){this.state=ya;this.tryEmit()},b.time,this);else if(a.eventType&T)return ya;return 32},reset:function(){clearTimeout(this._timer)},emit:function(a){this.state===ya&&(a&&a.eventType&T?this.manager.emit(this.options.event+
"up",a):(this._input.timeStamp=L(),this.manager.emit(this.options.event,this._input)))}});n(I,A,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ca]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||this.state&pa)}});n(J,A,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:ka|sa,pointers:1},getTouchAction:function(){return q.prototype.getTouchAction.call(this)},attrTest:function(a){var b,c=this.options.direction;
return c&(ka|sa)?b=a.overallVelocity:c&ka?b=a.overallVelocityX:c&sa&&(b=a.overallVelocityY),this._super.attrTest.call(this,a)&&c&a.offsetDirection&&a.distance>this.options.threshold&&a.maxPointers==this.options.pointers&&ta(b)>this.options.velocity&&a.eventType&T},emit:function(a){var b=Ba(a.offsetDirection);b&&this.manager.emit(this.options.event+b,a);this.manager.emit(this.options.event,a)}});n(Q,K,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Pa]},
process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance<b.threshold,f=a.deltaTime<b.time;if(this.reset(),a.eventType&V&&0===this.count)return this.failTimeout();if(d&&f&&c){if(a.eventType!=T)return this.failTimeout();c=this.pTime?a.timeStamp-this.pTime<b.interval:!0;d=!this.pCenter||ca(this.pCenter,a.center)<b.posThreshold;this.pTime=a.timeStamp;this.pCenter=a.center;d&&c?this.count+=1:this.count=1;this._input=a;if(0===this.count%b.taps)return this.hasRequireFailures()?
(this._timer=e(function(){this.state=ya;this.tryEmit()},b.interval,this),pa):ya}return 32},failTimeout:function(){return this._timer=e(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ya&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});S.VERSION="2.0.8";S.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[I,{enable:!1}],[N,{enable:!1},
["rotate"]],[J,{direction:ka}],[q,{direction:ka},["swipe"]],[Q],[Q,{event:"doubletap",taps:2},["tap"]],[p]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};W.prototype={set:function(a){return G(this.options,a),a.touchAction&&this.touchAction.update(),a.inputTarget&&(this.input.destroy(),this.input.target=a.inputTarget,this.input.init()),this},stop:function(a){this.session.stopped=a?2:1},recognize:function(a){var b=
this.session;if(!b.stopped){this.touchAction.preventDefaults(a);var c=this.recognizers,d=b.curRecognizer;(!d||d&&d.state&ya)&&(d=b.curRecognizer=null);for(var e=0;e<c.length;){var f=c[e];2===b.stopped||d&&f!=d&&!f.canRecognizeWith(d)?f.reset():f.recognize(a);!d&&f.state&(pa|Fa|Aa)&&(d=b.curRecognizer=f);e++}}},get:function(a){if(a instanceof K)return a;for(var b=this.recognizers,c=0;c<b.length;c++)if(b[c].options.event==a)return b[c];return null},add:function(a){if(f(a,"add",this))return this;var b=
this.get(a.options.event);return b&&this.remove(b),this.recognizers.push(a),a.manager=this,this.touchAction.update(),a},remove:function(a){if(f(a,"remove",this))return this;if(a=this.get(a)){var b=this.recognizers;a=P(b,a);-1!==a&&(b.splice(a,1),this.touchAction.update())}return this},on:function(a,b){if(a!==d&&b!==d){var c=this.handlers;return h(R(a),function(a){c[a]=c[a]||[];c[a].push(b)}),this}},off:function(a,b){if(a!==d){var c=this.handlers;return h(R(a),function(a){b?c[a]&&c[a].splice(P(c[a],
b),1):delete c[a]}),this}},emit:function(a,b){this.options.domEvents&&Ha(a,b);var c=this.handlers[a]&&this.handlers[a].slice();if(c&&c.length)for(b.type=a,b.preventDefault=function(){b.srcEvent.preventDefault()},a=0;a<c.length;)c[a](b),a++},destroy:function(){this.element&&Ga(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};G(S,{INPUT_START:V,INPUT_MOVE:la,INPUT_END:T,INPUT_CANCEL:Z,STATE_POSSIBLE:Ra,STATE_BEGAN:pa,STATE_CHANGED:Fa,STATE_ENDED:Aa,STATE_RECOGNIZED:ya,
STATE_CANCELLED:Oa,STATE_FAILED:32,DIRECTION_NONE:ua,DIRECTION_LEFT:ba,DIRECTION_RIGHT:da,DIRECTION_UP:va,DIRECTION_DOWN:za,DIRECTION_HORIZONTAL:ka,DIRECTION_VERTICAL:sa,DIRECTION_ALL:qa,Manager:W,Input:C,TouchAction:Ta,TouchInput:w,MouseInput:v,PointerEventInput:k,TouchMouseInput:Y,SingleTouchInput:H,Recognizer:K,AttrRecognizer:A,Tap:Q,Pan:q,Swipe:J,Pinch:N,Rotate:I,Press:p,on:t,off:F,each:h,merge:U,extend:wa,assign:G,inherit:n,bindFn:r,prefixed:B});("undefined"!=typeof a?a:"undefined"!=typeof self?
self:{}).Hammer=S;"function"==typeof define&&define.amd?define(function(){return S}):"undefined"!=typeof module&&module.exports?module.exports=S:a[c]=S}(window,document,"Hammer");
!function(a){"function"==typeof define&&define.amd?define(["jquery","hammerjs"],a):"object"==typeof exports?a(require("jquery"),require("hammerjs")):a(jQuery,Hammer)}(function(a,b){var c;a.fn.hammer=function(c){return this.each(function(){var d;(d=a(this)).data("hammer")||d.data("hammer",new b(d[0],c))})};b.Manager.prototype.emit=(c=b.Manager.prototype.emit,function(b,e){c.call(this,b,e);a(this.element).trigger({type:b,gesture:e})})});var tdBlocks={};
(function(){function a(){function a(a,b){!0===d&&a.target===e?window.location=a.target:(d=!0,e=a.target,a.preventDefault(),setTimeout(function(){d=!1},300),c(a,b))}function c(a,b){a=b.data("td_block_id");var c=tdBlocks.tdGetBlockObjById(a);c.is_ajax_running=!0;jQuery(".mega-menu-sub-cat-"+a).removeClass("cur-sub-cat");b.addClass("cur-sub-cat");c.td_filter_value=b.data("td_filter_value");c.td_current_page=1;tdBlocks.tdAjaxDoBlockRequest(c,"mega_menu")}jQuery(".td-ajax-next-page").on("click",function(a){a.preventDefault();
a=tdBlocks.tdGetBlockObjById(jQuery(this).data("td_block_id"));jQuery(this).hasClass("ajax-page-disabled")||!0===a.is_ajax_running||(a.is_ajax_running=!0,a.td_current_page++,tdBlocks.tdAjaxDoBlockRequest(a,"next"))});jQuery(".td-ajax-prev-page").on("click",function(a){a.preventDefault();a=tdBlocks.tdGetBlockObjById(jQuery(this).data("td_block_id"));jQuery(this).hasClass("ajax-page-disabled")||!0===a.is_ajax_running||(a.is_ajax_running=!0,a.td_current_page--,tdBlocks.tdAjaxDoBlockRequest(a,"back"))});
jQuery(".td_with_ajax_pagination_next_prev_swipe:not(.tdb_header_mega_menu)").hammer().bind("swipeleft swiperight",function(a){var b=jQuery(this),c=tdBlocks.tdGetBlockObjById(b.data("td-block-uid"));switch(a.type){case "swipeleft":if(b.find(".td-ajax-next-page").hasClass("ajax-page-disabled")||!0===c.is_ajax_running)break;c.is_ajax_running=!0;c.td_current_page++;tdBlocks.tdAjaxDoBlockRequest(c,"next");break;case "swiperight":b.find(".td-ajax-prev-page").hasClass("ajax-page-disabled")||!0===c.is_ajax_running||
(c.is_ajax_running=!0,c.td_current_page--,tdBlocks.tdAjaxDoBlockRequest(c,"prev"))}});jQuery(".td_ajax_load_more_js").on("click",function(a){a.preventDefault();jQuery(this).hasClass("ajax-page-disabled")||(jQuery(this).css("visibility","hidden"),a=tdBlocks.tdGetBlockObjById(jQuery(this).data("td_block_id")),a.td_current_page++,tdBlocks.tdAjaxDoBlockRequest(a,"load_more"),a.max_num_pages<=a.td_current_page&&jQuery(this).addClass("ajax-page-disabled"))});if(tdDetect.isMobileDevice)jQuery(".td-pulldown-filter-display-option").on("click",
function(){var a=jQuery(this).data("td_block_id");jQuery("#td_pulldown_"+a).addClass("td-pulldown-filter-list-open");a=jQuery("#td_pulldown_"+a+"_list");a.removeClass("fadeOut");a.addClass("td_animated td_fadeIn")});else jQuery(".td-pulldown-filter-display-option").hover(function(){var a=jQuery(this).data("td_block_id");jQuery("#td_pulldown_"+a).addClass("td-pulldown-filter-list-open");a=jQuery("#td_pulldown_"+a+"_list");a.removeClass("fadeOut");a.addClass("td_animated td_fadeIn");a.css("visibility",
"visible")},function(){var a=jQuery(this).data("td_block_id");jQuery("#td_pulldown_"+a).removeClass("td-pulldown-filter-list-open")});jQuery(".td-related-title a").on("click",function(a){a.preventDefault();jQuery(".td-related-title").children("a").removeClass("td-cur-simple-item");jQuery(this).addClass("td-cur-simple-item");a=jQuery(this).data("td_block_id");a=tdBlocks.tdGetBlockObjById(a);a.td_filter_value=jQuery(this).data("td_filter_value");a.td_current_page=1;tdBlocks.tdAjaxDoBlockRequest(a,"pull_down")});
var d=!1,e="";tdDetect.isTouchDevice?jQuery(".block-mega-child-cats a").click(function(b){a(b,jQuery(this))},!1).each(function(b,c){c.addEventListener("touchend",function(b){a(b,jQuery(this))},!1)}):jQuery(".block-mega-child-cats a").hover(function(a){c(a,jQuery(this))},function(a){});jQuery("body").on("click",".td-subcat-item a",function(a){a.preventDefault();a=tdBlocks.tdGetBlockObjById(jQuery(this).data("td_block_id"));!0!==a.is_ajax_running&&(a.is_ajax_running=!0,jQuery("."+jQuery(this).data("td_block_id")).find(".td-cur-simple-item").removeClass("td-cur-simple-item"),
jQuery(this).addClass("td-cur-simple-item"),a.td_filter_value=jQuery(this).data("td_filter_value"),a.td_current_page=1,tdBlocks.tdAjaxDoBlockRequest(a,"pull_down"))});jQuery(".td-pulldown-filter-link").on("click",function(a){a.preventDefault();var b=jQuery(this).data("td_block_id");jQuery("#"+b).find(".iosSlider").iosSlider("destroy");var c=tdBlocks.tdGetBlockObjById(b);!0!==c.is_ajax_running&&(c.is_ajax_running=!0,c.td_filter_value=jQuery(this).data("td_filter_value"),jQuery("."+jQuery(this).data("td_block_id")).find(".td-cur-simple-item").removeClass("td-cur-simple-item"),
jQuery(this).addClass("td-cur-simple-item"),c.td_current_page=1,jQuery("#td_pulldown_"+b).removeClass("td-pulldown-filter-list-open"),tdBlocks.tdAjaxDoBlockRequest(c,"pull_down"),tdDetect.isMobileDevice&&tdUtil.stopBubble(a))})}jQuery().ready(function(){a()});tdBlocks={tdPullDownFilterChangeValue:function(a,c){jQuery("#td-pulldown-"+a+"-val").html(c)},tdAjaxDoBlockRequest:function(a,c){var b=JSON.stringify(a);if(tdLocalCache.exist(b))return tdBlocks.tdBlockAjaxLoadingStart(a,!0,c),tdBlocks.tdAjaxBlockProcessResponse(tdLocalCache.get(b),
c),"td_woo_products_loop"===a.block_type&&jQuery(document).trigger("td_woo_ajax_block_update",[a,c,tdLocalCache.get(b)]),"cache_hit";tdBlocks.tdBlockAjaxLoadingStart(a,!1,c);var e={action:"td_ajax_block",td_atts:a.atts,td_block_id:a.id,td_column_number:a.td_column_number,td_current_page:a.td_current_page,block_type:a.block_type,td_filter_value:a.td_filter_value,td_user_action:a.td_user_action,td_magic_token:tdBlockNonce};if("td_woo_products_loop"===a.block_type){-1===td_ajax_url.indexOf("td_woo_ajax=1")&&
(td_ajax_url+="&td_woo_ajax=1");var f=JSON.parse(a.atts);"undefined"!==typeof f.ajax_pagination&&"numbered"===f.ajax_pagination&&(e.td_request_uri=window.location.pathname+window.location.search)}jQuery.ajax({type:"POST",url:td_ajax_url,cache:!0,data:e,success:function(d,e,f){tdLocalCache.set(b,d);tdBlocks.tdAjaxBlockProcessResponse(d,c);"td_woo_products_loop"===a.block_type&&jQuery(document).trigger("td_woo_ajax_block_update",[a,c,d]);d=jQuery("."+a.id).find("audio");d.length&&d.mediaelementplayer()},
error:function(a,b,c){console.log(c)}})},tdAjaxBlockProcessResponse:function(a,c){a=jQuery.parseJSON(a);if("load_more"===c||"infinite_load"===c){for(var b=0;b<tdSmartSidebar.items.length;b++)"case_3_bottom_of_content"===tdSmartSidebar.items[b].sidebar_state&&(tdSmartSidebar.items[b].sidebar_state="case_1_fixed_down");jQuery(a.td_data).appendTo("#"+a.td_block_id)}else jQuery("#"+a.td_block_id).html(a.td_data);!0===a.td_hide_prev?jQuery("#prev-page-"+a.td_block_id).addClass("ajax-page-disabled"):jQuery("#prev-page-"+
a.td_block_id).removeClass("ajax-page-disabled");!0===a.td_hide_next?jQuery("#next-page-"+a.td_block_id).addClass("ajax-page-disabled"):jQuery("#next-page-"+a.td_block_id).removeClass("ajax-page-disabled");b=tdBlocks.tdGetBlockObjById(a.td_block_id);"slide"===b.block_type&&jQuery("#"+a.td_block_id+" .slide-wrap-active-first").addClass("slide-wrap-active");b.is_ajax_running=!1;tdBlocks.tdBlockAjaxLoadingEnd(a,b,c)},tdBlockAjaxLoadingStart:function(a,c,d){var b=jQuery("#"+a.id);jQuery("."+a.id+" .td-loader-gif").remove();
b.removeClass("td_fadeInRight td_fadeInLeft td_fadeInDown td_fadeInUp td_animated_xlong");b.addClass("td_block_inner_overflow");var f=b.height();b.css("height",f);!1===c&&("load_more"===d?(b.parent().append('<div class="td-loader-gif td-loader-infinite td-loader-blocks-load-more  td-loader-animation-start"></div>'),tdLoadingBox.init(a.header_color?a.header_color:tds_theme_color_site_wide),setTimeout(function(){jQuery(".td-loader-gif").removeClass("td-loader-animation-start").addClass("td-loader-animation-mid")},
50)):"infinite_load"===d?(b.parent().append('<div class="td-loader-gif td-loader-infinite td-loader-animation-start"></div>'),tdLoadingBox.init(a.header_color?a.header_color:tds_theme_color_site_wide),setTimeout(function(){jQuery(".td-loader-gif").removeClass("td-loader-animation-start").addClass("td-loader-animation-mid")},50)):(b.parent().append('<div class="td-loader-gif td-loader-animation-start"></div>'),tdLoadingBox.init(a.header_color?a.header_color:tds_theme_color_site_wide),setTimeout(function(){jQuery(".td-loader-gif").removeClass("td-loader-animation-start").addClass("td-loader-animation-mid")},
50),b.addClass("td_animated_long td_fadeOut_to_1")))},tdBlockAjaxLoadingEnd:function(a,c,d){jQuery("."+c.id+" .td-loader-gif").removeClass("td-loader-animation-mid").addClass("td-loader-animation-end");setTimeout(function(){jQuery("."+c.id+" .td-loader-gif").remove();tdLoadingBox.stop()},400);var b=jQuery("#"+c.id);b.removeClass("td_animated_long td_fadeOut_to_1");if(!0===tdAnimationStack.activated)var f=tdAnimationStack.SORTED_METHOD.sort_left_to_right;switch(d){case "next":b.addClass("td_animated_xlong td_fadeInRight");
void 0!==f&&(f=tdAnimationStack.SORTED_METHOD.sort_right_to_left);break;case "back":b.addClass("td_animated_xlong td_fadeInLeft");break;case "pull_down":var h=JSON.parse(c.atts);"undefined"!==typeof h.ajax_pagination&&"infinite"===h.ajax_pagination&&(tdInfiniteLoader.computeTopDistances(),tdInfiniteLoader.enable_is_visible_callback(c.id));b.addClass("td_animated_xlong td_fadeInDown");break;case "mega_menu":b.addClass("td_animated_xlong td_fadeInDown");break;case "load_more":setTimeout(function(){jQuery("."+
c.id+" .td_ajax_load_more_js").css("visibility","visible")},500);break;case "infinite_load":setTimeout(function(){tdInfiniteLoader.computeTopDistances();""!==a.td_data&&tdInfiniteLoader.enable_is_visible_callback(c.id)},500),setTimeout(function(){tdInfiniteLoader.computeTopDistances()},1E3),setTimeout(function(){tdInfiniteLoader.computeTopDistances()},1500)}setTimeout(function(){jQuery(".td_block_inner_overflow").removeClass("td_block_inner_overflow");b.css("height","auto");tdSmartSidebar.compute()},
200);setTimeout(function(){tdSmartSidebar.compute()},500);void 0!==f&&setTimeout(function(){"mega_menu"!==d&&"back"!==d&&"pull_down"!==d||""===JSON.parse(tdBlocksArray[0].atts).td_ajax_preloading?tdAnimationStack.check_for_new_items("#"+c.id+" .td-animation-stack",f,!0,!1):tdAnimationStack.check_for_new_items("#"+c.id+" .td-animation-stack",f,!0,!0)},200)},tdGetBlockIndex:function(a){var b=0,d=0;jQuery.each(tdBlocksArray,function(c,f){if(f.id===a)return d=b,!1;b++});return d},tdGetBlockObjById:function(a){return tdBlocksArray[tdBlocks.tdGetBlockIndex(a)]}}})();
jQuery().ready(function(){var a={type:"inline",preloader:!1,focus:"#name",removalDelay:500,callbacks:{beforeOpen:function(){this.st.mainClass=this.st.el.attr("data-effect");tdLogin.clearFields();tdLogin.showHideMsg();700>jQuery(window).width()?this.st.focus=!1:!1===tdDetect.isIe&&(this.st.focus="#login_email")},beforeClose:function(){}},disableOn:function(){return 750>jQuery(window).width()?!1:!0}};void 0!==window.tdb_login_sing_in_shortcode&&(jQuery(".tdb_header_user .td-login-modal-js").magnificPopup(a),
jQuery(".tdb-head-usr-log").on("click",function(a){750>jQuery(window).width()&&jQuery(a.target).parents("tdb_header_user").length&&(a.preventDefault(),jQuery("body").addClass("td-menu-mob-open-menu"),jQuery(".td-mobile-container").hide(),jQuery("#td-mobile-nav").addClass("td-hide-menu-content"),setTimeout(function(){jQuery(".td-mobile-container").show()},500),tdLogin.showHideElementsMobile([["#td-login-mob",1],["#td-register-mob",0],["#td-forgot-pass-mob",0]]))}));"yes"===window.tdc_is_installed&&
(jQuery(".comment-reply-login").attr({href:"#login-form","data-effect":"mpf-td-login-effect"}),jQuery(".comment-reply-login, .td-login-modal-js").magnificPopup(a));jQuery(".td-login-modal-js, .comment-reply-login").on("click",function(a){750>jQuery(window).width()&&!jQuery(a.target).parents("tdb_header_user").length&&(a.preventDefault(),jQuery("body").addClass("td-menu-mob-open-menu"),jQuery(".td-mobile-container").hide(),jQuery("#td-mobile-nav").addClass("td-hide-menu-content"),setTimeout(function(){jQuery(".td-mobile-container").show()},
500),tdLogin.showHideElementsMobile([["#td-login-mob",1],["#td-register-mob",0],["#td-forgot-pass-mob",0]]))});jQuery("#login-link").on("click",function(){tdLogin.showHideElements([["#td-login-div",1],["#td-register-div",0],["#td-forgot-pass-div",0]]);jQuery("#login-form").addClass("td-login-animation");700<jQuery(window).width()&&!1===tdDetect.isIe&&jQuery("#login_email").focus();tdLogin.showHideMsg()});jQuery("#register-link").on("click",function(){tdLogin.showHideElements([["#td-login-div",0],
["#td-register-div",1],["#td-forgot-pass-div",0]]);jQuery("#login-form").addClass("td-login-animation");700<jQuery(window).width()&&!1===tdDetect.isIe&&jQuery("#register_email").focus();tdLogin.showHideMsg()});jQuery("#forgot-pass-link").on("click",function(a){a.preventDefault();tdLogin.showHideElements([["#td-login-div",0],["#td-register-div",0],["#td-forgot-pass-div",1]]);jQuery("#login-form").addClass("td-login-animation");700<jQuery(window).width()&&!1===tdDetect.isIe&&jQuery("#forgot_email").focus();
tdLogin.showHideMsg()});jQuery("#login_button").on("click",function(){tdLogin.handlerLogin()});jQuery("#login_pass").keydown(function(a){(a.which&&13===a.which||a.keyCode&&13===a.keyCode)&&tdLogin.handlerLogin()});jQuery("#register_button").on("click",function(){tdLogin.handlerRegister()});jQuery("#register_user").keydown(function(a){(a.which&&13===a.which||a.keyCode&&13===a.keyCode)&&tdLogin.handlerRegister()});jQuery("#forgot_button").on("click",function(){tdLogin.handlerForgotPass()});jQuery("#forgot_email").keydown(function(a){(a.which&&
13===a.which||a.keyCode&&13===a.keyCode)&&tdLogin.handlerForgotPass()});jQuery(".td-back-button").on("click",function(){tdLogin.showHideElements([["#td-login-div",1],["#td-register-div",0],["#td-forgot-pass-div",0]]);jQuery("#login-form").removeClass("td-login-animation");jQuery(".td_display_err").hide()});jQuery(".td-login-fb-modal").on("click",function(a){a.preventDefault();a=jQuery(this);tdLogin.doFBLoginAction(a)})});var tdLogin={};
(function(){tdLogin={email_pattern:/^[a-zA-Z0-9][a-zA-Z0-9_\.-]{0,}[a-zA-Z0-9]@[a-zA-Z0-9][a-zA-Z0-9_\.-]{0,}[a-z0-9][\.][a-z0-9]{2,4}$/,pass_pattern:/^(?=.{6,})(?=.*[a-z])(?=.*[A-Z])/,handlerLogin:function(a){a=jQuery("#login_email");var b=jQuery("#login_pass"),c=jQuery("#gRecaptchaResponseL");if(a.length&&b.length){var d=a.val().trim(),e=b.val().trim(),f=c.attr("data-sitekey"),h="";d&&e?(tdLogin.addRemoveClass([".td_display_err",1,"td_display_msg_ok"]),tdLogin.showHideMsg(td_please_wait),c.length?
grecaptcha.ready(function(){grecaptcha.execute(f,{action:"submit"}).then(function(a){h=a;tdLogin.doAction("td_mod_login",d,"",e,h)})}):tdLogin.doAction("td_mod_login",d,"",e)):tdLogin.showHideMsg(td_email_user_pass_incorrect)}},handlerRegister:function(){var a=jQuery("#register_email"),b=jQuery("#register_user"),c=jQuery("#gRecaptchaResponseR");if(a.length&&b.length){var d=a.val().trim(),e=b.val().trim(),f=c.attr("data-sitekey"),h="";tdLogin.email_pattern.test(d)&&e?(tdLogin.addRemoveClass([".td_display_err",
1,"td_display_msg_ok"]),tdLogin.showHideMsg(td_please_wait),c.length?grecaptcha.ready(function(){grecaptcha.execute(f,{action:"submit"}).then(function(a){h=a;tdLogin.doAction("td_mod_register",d,e,"",h)})}):tdLogin.doAction("td_mod_register",d,e,"")):tdLogin.showHideMsg(td_email_user_incorrect)}},handlerForgotPass:function(){var a=jQuery("#forgot_email");a.length&&(a=a.val().trim(),tdLogin.email_pattern.test(a)?(tdLogin.addRemoveClass([".td_display_err",1,"td_display_msg_ok"]),tdLogin.showHideMsg(td_please_wait),
tdLogin.doAction("td_mod_remember_pass",a,"","")):tdLogin.showHideMsg(td_email_incorrect))},showHideElements:function(a){if(a.constructor===Array)for(var b=a.length,c=0;c<b;c++)if(a[c].constructor===Array&&2===a[c].length){var d=jQuery(a[c][0]);d.length&&(1===a[c][1]?d.removeClass("td-display-none").addClass("td-display-block"):d.removeClass("td-display-block").addClass("td-display-none"))}},showHideElementsMobile:function(a){if(a.constructor===Array)for(var b=a.length,c=0;c<b;c++)if(a[c].constructor===
Array&&2===a[c].length){var d=jQuery(a[c][0]);d.length&&(1===a[c][1]?d.removeClass("td-login-hide").addClass("td-login-show"):d.removeClass("td-login-show").addClass("td-login-hide"))}},showTabs:function(a){if(a.constructor===Array)for(var b=a.length,c=0;c<b;c++)if(a[c].constructor===Array&&2===a[c].length){var d=jQuery(a[c][0]);d.length&&(1===a[c][1]?d.addClass("td_login_tab_focus"):d.removeClass("td_login_tab_focus"))}},addRemoveClass:function(a){if(a.constructor===Array&&3===a.length){var b=jQuery(a[0]);
b.length&&(1===a[1]?b.addClass(a[2]):b.removeClass(a[2]))}},showHideMsg:function(a){var b=jQuery(".td_display_err");b.length&&(void 0!==a&&a.constructor===String&&0<a.length?(b.show(),b.html(a)):(b.hide(),b.html("")))},clearFields:function(){jQuery("#login_email").val("");jQuery("#login_pass").val("");jQuery("#register_email").val("");jQuery("#register_user").val("");jQuery("#forgot_email").val("")},doAction:function(a,b,c,d,e){jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:a,email:b,user:c,
pass:d,captcha:e},success:function(a,b,c){a=jQuery.parseJSON(a);switch(a[0]){case "login":1===a[1]?location.reload(!0):(tdLogin.addRemoveClass([".td_display_err",0,"td_display_msg_ok"]),tdLogin.showHideMsg(a[2]));break;case "register":1===a[1]?tdLogin.addRemoveClass([".td_display_err",1,"td_display_msg_ok"]):tdLogin.addRemoveClass([".td_display_err",0,"td_display_msg_ok"]);tdLogin.showHideMsg(a[2]);break;case "remember_pass":1===a[1]?tdLogin.addRemoveClass([".td_display_err",1,"td_display_msg_ok"]):
tdLogin.addRemoveClass([".td_display_err",0,"td_display_msg_ok"]),tdLogin.showHideMsg(a[2])}},error:function(a,b,c){}})},doCustomAction:function(a,b,c,d,e,f){b={action:a,email:b,user:c,pass:d,retype_pass:e,captcha:f};switch(a){case "td_mod_login":var h=jQuery("#tds-login-div");a=h.closest(".tds-block-inner").find("#tds_login_button");h.find(".td_display_err").hide();a.addClass("tds-s-btn-saving");break;case "td_mod_subscription_register":var g=jQuery("#tds-register-div");a=g.closest(".tds-block-inner").find("#tds_register_button");
g.find(".td_display_err").hide();a.addClass("tds-s-btn-saving")}jQuery.ajax({type:"POST",url:td_ajax_url,data:b,success:function(a,b,c){a=jQuery.parseJSON(a);switch(a[0]){case "login":h.length&&h.closest(".tds-block-inner").find("#tds_login_button").removeClass("tds-s-btn-saving");1===a[1]?h.length&&(b=new URLSearchParams((new URL(window.location.href)).search.slice(1)),b.has("ref_url")?(a=h.closest(".tds-block-inner").find("#tds_login_button"),a.length&&(a.attr("disabled",!0),window.location.replace(window.atob(b.get("ref_url").replace("=",
""))))):(a=h.closest(".tds-block-inner").find("#tds_login_button"),b=h.closest(".tds-block-inner").find("#tds-my-account"),a.length&&a.attr("disabled",!0),b.length&&window.location.replace(b.val()))):(tdLogin.addRemoveClass([".td_display_err",0,"td_display_msg_ok"]),h.length&&(tdLogin.addRemoveClass([".td_display_err",0,"tds-s-notif-success"]),tdLogin.addRemoveClass([".td_display_err",1,"tds-s-notif-error"])),tdLogin.showHideMsg(a[2]));break;case "register":g.length&&g.closest(".tds-block-inner").find("#tds_register_button").removeClass("tds-s-btn-saving");
if(1===a[1]){if(tdLogin.addRemoveClass([".td_display_err",1,"td_display_msg_ok"]),tdLogin.addRemoveClass([".td_display_err",1,"tds-s-notif-success"]),tdLogin.addRemoveClass([".td_display_err",0,"tds-s-notif-error"]),g.length){b=new URLSearchParams((new URL(window.location.href)).search.slice(1));if(b.has("ref_url")){var d=g.find("#tds-continue-subscription");c=g.closest(".tds-block-inner").find("#tds_register_button");var e=g.closest(".tds-block-inner").find(".tds-s-cal-page-switch");d.length&&d.show().attr("href",
window.atob(b.get("ref_url").replace("=","")));c.length&&c.hide();e.length&&e.hide()}else c=g.closest(".tds-block-inner").find("#tds_register_button"),e=g.closest(".tds-block-inner").find(".tds-s-cal-page-switch"),b=g.closest(".tds-block-inner").find("#tds-my-account"),c.length&&c.hide(),e.length&&e.hide(),b.length&&b.show();g.find(".tds-s-form-content .tds-s-fc-inner").hide()}}else tdLogin.addRemoveClass([".td_display_err",0,"td_display_msg_ok"]),tdLogin.addRemoveClass([".td_display_err",0,"tds-s-notif-success"]),
tdLogin.addRemoveClass([".td_display_err",1,"tds-s-notif-error"]);tdLogin.showHideMsg(a[2]);break;case "remember_pass":1===a[1]?tdLogin.addRemoveClass([".td_display_err",1,"td_display_msg_ok"]):tdLogin.addRemoveClass([".td_display_err",0,"td_display_msg_ok"]),tdLogin.showHideMsg(a[2])}},error:function(a,b,c){}})},doFBLoginAction:function(a){var b=a.closest(".td-login-wrap");b.find(".td_display_err").hide();b.addClass("td-login-wrap-fb-open");FB.login(function(a){"connected"===a.status?FB.api("/me?fields=id,name,first_name,last_name,email,locale",
function(a){jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"td_ajax_fb_login_user",user:a},success:function(a){a=jQuery.parseJSON(a);""!==a.error?(b.removeClass("td-login-wrap-fb-open"),tdLogin.addRemoveClass([".td_display_err",0,"td_display_msg_ok"]),tdLogin.showHideMsg(a.error)):(""!==a.success&&(tdLogin.addRemoveClass([".td_display_err",1,"td_display_msg_ok"]),tdLogin.showHideMsg(a.success)),location.reload(!0))}})}):(b.removeClass("td-login-wrap-fb-open"),tdLogin.addRemoveClass([".td_display_err",
0,"td_display_msg_ok"]),tdLogin.showHideMsg("An unexpected error has occured. Please try again!"))},{scope:"public_profile, email"})},doFBLoginActionOptIn:function(a,b){var c=b.closest(".tds-block-inner");b=c.find(".tds-s-form");var d="";switch(a){case "login":d=b.find("#tds-my-account").val();break;case "register":d=b.find("#tds-my-account-register").val()}b.find(".td_display_err").hide();c.addClass("tds-s-fb-open");FB.login(function(a){"connected"===a.status?FB.api("/me?fields=id,name,first_name,last_name,email,locale",
function(a){jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"td_ajax_fb_login_user",user:a},success:function(a){a=jQuery.parseJSON(a);if(""!==a.error)c.removeClass("tds-s-fb-open"),tdLogin.addRemoveClass([".td_display_err",0,"td_display_msg_ok"]),tdLogin.addRemoveClass([".td_display_err",0,"tds-s-notif-success"]),tdLogin.addRemoveClass([".td_display_err",1,"tds-s-notif-error"]),tdLogin.showHideMsg(a.error);else{""!==a.success&&(tdLogin.addRemoveClass([".td_display_err",1,"td_display_msg_ok"]),
tdLogin.addRemoveClass([".td_display_err",1,"tds-s-notif-success"]),tdLogin.addRemoveClass([".td_display_err",0,"tds-s-notif-error"]),tdLogin.showHideMsg(a.success));var b=new URLSearchParams((new URL(window.location.href)).search.slice(1));setTimeout(function(){b.has("ref_url")?window.location.replace(window.atob(b.get("ref_url").replace("=",""))):window.location.replace(d)},200)}}})}):(c.removeClass("tds-s-fb-open"),tdLogin.addRemoveClass([".td_display_err",0,"td_display_msg_ok"]),tdLogin.addRemoveClass([".td_display_err",
0,"tds-s-notif-success"]),tdLogin.addRemoveClass([".td_display_err",1,"tds-s-notif-error"]),tdLogin.showHideMsg("An unexpected error has occured. Please try again!"))},{scope:"public_profile, email"})}}})();
jQuery().ready(function(){jQuery("#login-link-mob").on("click",function(){tdLoginMob.showHideElements([["#td-login-mob",1],["#td-register-mob",0],["#td-forgot-pass-mob",0]]);jQuery("#td-mobile-nav").addClass("td-hide-menu-content");700<jQuery(window).width()&&!1===tdDetect.isIe&&jQuery("#login_email-mob").focus();tdLoginMob.showHideMsg()});jQuery("#register-link-mob, #signin-register-link-mob").on("click",function(){tdLoginMob.showHideElements([["#td-login-mob",0],["#td-register-mob",1],["#td-forgot-pass-mob",
0]]);jQuery("#td-mobile-nav").addClass("td-hide-menu-content");700<jQuery(window).width()&&!1===tdDetect.isIe&&jQuery("#register_email-mob").focus();tdLoginMob.showHideMsg()});jQuery("#forgot-pass-link-mob").on("click",function(){tdLoginMob.showHideElements([["#td-login-mob",0],["#td-register-mob",0],["#td-forgot-pass-mob",1]]);700<jQuery(window).width()&&!1===tdDetect.isIe&&jQuery("#forgot_email-mob").focus();tdLoginMob.showHideMsg()});jQuery("#login_button-mob").on("click",function(){tdLoginMob.handlerLogin()});
jQuery("#login_pass-mob").keydown(function(a){(a.which&&13===a.which||a.keyCode&&13===a.keyCode)&&tdLoginMob.handlerLogin()});jQuery("#register_button-mob").on("click",function(){tdLoginMob.handlerRegister()});jQuery("#register_user-mob").keydown(function(a){(a.which&&13===a.which||a.keyCode&&13===a.keyCode)&&tdLoginMob.handlerRegister()});jQuery("#forgot_button-mob").on("click",function(){tdLoginMob.handlerForgotPass()});jQuery("#forgot_email-mob").keydown(function(a){(a.which&&13===a.which||a.keyCode&&
13===a.keyCode)&&tdLoginMob.handlerForgotPass()});jQuery("#td-mobile-nav .td-login-close a, #td-mobile-nav .td-register-close a").on("click",function(){tdLoginMob.showHideElements([["#td-login-mob",0],["#td-register-mob",0],["#td-forgot-pass-mob",0]]);jQuery("#td-mobile-nav").removeClass("td-hide-menu-content")});jQuery("#td-mobile-nav .td-forgot-pass-close a").on("click",function(){tdLoginMob.showHideElements([["#td-login-mob",1],["#td-register-mob",0],["#td-forgot-pass-mob",0]])});jQuery(".td-login-fb-mob").on("click",
function(a){a.preventDefault();a=jQuery(this);tdLoginMob.doFBLoginAction(a)})});var tdLoginMob={};
(function(){tdLoginMob={email_pattern:/^[a-zA-Z0-9][a-zA-Z0-9_\.-]{0,}[a-zA-Z0-9]@[a-zA-Z0-9][a-zA-Z0-9_\.-]{0,}[a-z0-9][\.][a-z0-9]{2,4}$/,handlerLogin:function(){var a=jQuery("#login_email-mob"),b=jQuery("#login_pass-mob"),c=jQuery("#gRecaptchaResponseMobL");if(a.length&&b.length){var d=a.val().trim(),e=b.val().trim(),f=c.attr("data-sitekey"),h="";d&&e?(tdLoginMob.addRemoveClass([".td_display_err",1,"td_display_msg_ok"]),tdLoginMob.showHideMsg(td_please_wait),c.length?grecaptcha.ready(function(){grecaptcha.execute(f,
{action:"submit"}).then(function(a){h=a;tdLoginMob.doAction("td_mod_login",d,"",e,h)})}):tdLoginMob.doAction("td_mod_login",d,"",e)):tdLoginMob.showHideMsg(td_email_user_pass_incorrect)}},handlerRegister:function(){var a=jQuery("#register_email-mob"),b=jQuery("#register_user-mob"),c=jQuery("#gRecaptchaResponseMobR");if(a.length&&b.length){var d=a.val().trim(),e=b.val().trim(),f=c.attr("data-sitekey"),h="";tdLoginMob.email_pattern.test(d)&&e?(tdLoginMob.addRemoveClass([".td_display_err",1,"td_display_msg_ok"]),
tdLoginMob.showHideMsg(td_please_wait),c.length?grecaptcha.ready(function(){grecaptcha.execute(f,{action:"submit"}).then(function(a){h=a;tdLoginMob.doAction("td_mod_register",d,e,"",h)})}):tdLoginMob.doAction("td_mod_register",d,e,"")):tdLoginMob.showHideMsg(td_email_user_incorrect)}},handlerForgotPass:function(){var a=jQuery("#forgot_email-mob");a.length&&(a=a.val().trim(),tdLoginMob.email_pattern.test(a)?(tdLoginMob.addRemoveClass([".td_display_err",1,"td_display_msg_ok"]),tdLoginMob.showHideMsg(td_please_wait),
tdLoginMob.doAction("td_mod_remember_pass",a,"","")):tdLoginMob.showHideMsg(td_email_incorrect))},showHideElements:function(a){if(a.constructor===Array)for(var b=a.length,c=0;c<b;c++)if(a[c].constructor===Array&&2===a[c].length){var d=jQuery(a[c][0]);d.length&&(1===a[c][1]?d.removeClass("td-login-hide").addClass("td-login-show"):d.removeClass("td-login-show").addClass("td-login-hide"))}},addRemoveClass:function(a){if(a.constructor===Array&&3===a.length){var b=jQuery(a[0]);b.length&&(1===a[1]?b.addClass(a[2]):
b.removeClass(a[2]))}},showHideMsg:function(a){var b=jQuery(".td_display_err");b.length&&(void 0!==a&&a.constructor===String&&0<a.length?(b.show(),b.html(a)):(b.hide(),b.html("")))},clearFields:function(){jQuery("#login_email-mob").val("");jQuery("#login_pass-mob").val("");jQuery("#register_email-mob").val("");jQuery("#register_user-mob").val("");jQuery("#forgot_email-mob").val("")},doAction:function(a,b,c,d,e){jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:a,email:b,user:c,pass:d,captcha:e},
success:function(a,b,c){a=jQuery.parseJSON(a);switch(a[0]){case "login":1===a[1]?location.reload(!0):(tdLoginMob.addRemoveClass([".td_display_err",0,"td_display_msg_ok"]),tdLoginMob.showHideMsg(a[2]));break;case "register":1===a[1]?tdLoginMob.addRemoveClass([".td_display_err",1,"td_display_msg_ok"]):tdLoginMob.addRemoveClass([".td_display_err",0,"td_display_msg_ok"]);tdLoginMob.showHideMsg(a[2]);break;case "remember_pass":1===a[1]?tdLoginMob.addRemoveClass([".td_display_err",1,"td_display_msg_ok"]):
tdLoginMob.addRemoveClass([".td_display_err",0,"td_display_msg_ok"]),tdLoginMob.showHideMsg(a[2])}},error:function(a,b,c){}})},doFBLoginAction:function(a){var b=a.closest("#login-form-mobile");b.find(".td_display_err").hide();b.addClass("td-login-form-mobile-fb-open");FB.login(function(a){"connected"===a.status?FB.api("/me?fields=id,name,first_name,last_name,email,picture.type(large),locale",function(a){jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"td_ajax_fb_login_user",user:a},success:function(a){a=
jQuery.parseJSON(a);""!==a.error?(b.removeClass("td-login-form-mobile-fb-open"),tdLoginMob.addRemoveClass([".td_display_err",0,"td_display_msg_ok"]),tdLoginMob.showHideMsg(a.error)):(""!==a.success&&(tdLoginMob.addRemoveClass([".td_display_err",1,"td_display_msg_ok"]),tdLoginMob.showHideMsg(a.success)),location.reload(!0))}})}):(b.removeClass("td-login-form-mobile-fb-open"),tdLoginMob.addRemoveClass([".td_display_err",0,"td_display_msg_ok"]),tdLoginMob.showHideMsg("An unexpected error has occured. Please try again!"))},
{scope:"public_profile, email"})}}})();var tdDemoMenu;
(function(a,b){tdDemoMenu={mousePosX:0,mousePosY:0,init:function(){a(document).mousemove(function(a){if(a.pageX||a.pageY)tdDemoMenu.mousePosX=a.pageX,tdDemoMenu.mousePosY=a.pageY;else if(a.clientX||a.clientY)tdDemoMenu.mousePosX=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,tdDemoMenu.mousePosY=a.clientY+document.body.scrollTop+document.documentElement.scrollTop});a(document).mouseleave(function(b){a(".td-screen-demo:first").css("visibility","hidden")});a("#td-theme-settings").find(".td-skin-wrap:first").scroll(function(b){b=
b.currentTarget;var c=a(this).find(".td-skin-scroll:first");b.clientHeight+b.scrollTop<b.scrollHeight?c.css({bottom:0}):c.css({bottom:-40})});a("#td-theme-settings").find(".td-skin-scroll:first").click(function(b){b=a(this).closest(".td-skin-wrap");b.animate({scrollTop:b.scrollTop()+200},{duration:800,easing:"easeInOutQuart"})}).mouseenter(function(b){a("#td-theme-settings").find(".td-screen-demo:first").css("visibility","hidden")});a(".td-set-theme-style-link").hover(function(b){var c=a(this),e=
c.closest(".td-set-theme-style"),f=a(".td-screen-demo:first"),h=0,g=0;var n=a("#wpadminbar");var r=f.find("img:first");c=c.data("img-url");r.length?r.replaceWith('<img src="'+c+'"/>'):f.html('<img src="'+c+'"/>');0===a(".td-set-theme-style-link").index(this)%2?h=2*e.outerWidth(!0):(e=e.prev(".td-set-theme-style"),e.length&&(h=e.outerWidth(!0)-0,g=e.outerWidth(!0)+0),b.preventDefault(),b.stopPropagation());b=b.pageY-document.body.scrollTop-f.outerHeight(!0)/2;b+f.outerHeight(!0)>window.innerHeight&&
(b-=b+f.outerHeight(!0)-window.innerHeight);n=n.length?n.outerHeight(!0):0;n>b&&(b=n);n={top:b,right:h,width:""};b=f.data("width-preview");0<g&&(n.width=b+g);f.css(n);f.data("right-value",h+g);f.css("visibility","visible")},function(b){a(".td-screen-demo:first").css("visibility","hidden")}).mousemove(function(a){tdDemoMenu._moveScreenDemo(a)})},_moveScreenDemo:function(b){var c=a(".td-screen-demo:first"),e=a("#wpadminbar"),f=b.pageY-document.body.scrollTop-c.outerHeight(!0)/2;e=e.length?e.outerHeight(!0):
0;e>f&&(f=e);0>f?f=0:a(window).height()-c.outerHeight(!0)/2<b.pageY-document.body.scrollTop&&(f=a(window).height()-c.outerHeight(!0));c.css("top",f)},_checkMousePosition:function(){var c;a(".td-set-theme-style-link").each(function(b,e){tdDemoMenu._log(b);b=a(e).closest(".td-set-theme-style");var d=!1,h=!1;if(0===a(".td-set-theme-style-link").index(e)%2)parseInt(b.position().top)+parseInt(a(window).scrollTop())<tdDemoMenu.mousePosY&&tdDemoMenu.mousePosY<parseInt(b.position().top)+parseInt(a(window).scrollTop())+
parseInt(b.outerHeight())&&(d=!0,parseInt(a(window).width())-2*parseInt(b.outerWidth())<tdDemoMenu.mousePosX&&tdDemoMenu.mousePosX<parseInt(a(window).width())-parseInt(b.outerWidth())&&(h=!0));else{var g=b.prev(".td-set-theme-style");g.length&&parseInt(g.position().top)+parseInt(a(window).scrollTop())<tdDemoMenu.mousePosY&&tdDemoMenu.mousePosY<parseInt(g.position().top)+parseInt(a(window).scrollTop())+parseInt(g.outerHeight())&&(d=!0,parseInt(a(window).width())-parseInt(b.outerWidth())<tdDemoMenu.mousePosX&&
tdDemoMenu.mousePosX<parseInt(a(window).width())&&(h=!0))}if(d&&h)return c=e,!1});b===c?a("#td-theme-settings").find(".td-screen-demo:first").css("visibility","hidden"):a(c).mouseenter()},_log:function(a){}}})(jQuery);var tdTrendingNow={};
(function(){tdTrendingNow={items:[],item:function(){this.blockUid="";this.trendingNowAutostart="manual";this.trendingNowPosition=this.trendingNowTimer=0;this.trendingNowPosts=[];this._is_initialized=!1},init:function(){tdTrendingNow.items=[]},_initialize_item:function(a){!0!==a._is_initialized&&(a._is_initialized=!0)},addItem:function(a){if("undefined"===typeof a.blockUid)throw"item.blockUid is not valid";if("undefined"===typeof a.trendingNowPosts||1>a.trendingNowPosts.length)throw"item.trendingNowPosts is not valid";
tdTrendingNow.items.push(a);tdTrendingNow._initialize_item(a);tdTrendingNow.tdTrendingNowAutoStart(a.blockUid)},deleteItem:function(a){for(var b=0;b<tdTrendingNow.items.length;b++)if(tdTrendingNow.items[b].blockUid===a)return tdTrendingNow.items.splice(b,1),!0;return!1},itemPrev:function(a){for(var b,c=0;c<tdTrendingNow.items.length;c++)tdTrendingNow.items[c].blockUid===a&&(b=tdTrendingNow.items[c]);if(!(void 0!==a&&1>=b.trendingNowPosts.length)){if("manual"!==b.trendingNowAutostart){c=jQuery("#"+
a);var d=3;"undefined"!==typeof c.data("timer")&&""!==c.data("timer")&&(d=c.data("timer"));clearInterval(b.trendingNowTimer);b.trendingNowTimer=setInterval(function(){tdTrendingNow.tdTrendingNowChangeText([a,"left"],!0)},1E3*d)}tdTrendingNow.tdTrendingNowChangeText([a,"right"],!1)}},itemNext:function(a){for(var b,c=0;c<tdTrendingNow.items.length;c++)tdTrendingNow.items[c].blockUid===a&&(b=tdTrendingNow.items[c]);if(!(void 0!==a&&1>=b.trendingNowPosts.length)){if("manual"!==b.trendingNowAutostart){c=
jQuery("#"+a);var d=3;"undefined"!==typeof c.data("timer")&&""!==c.data("timer")&&(d=c.data("timer"));clearInterval(b.trendingNowTimer);b.trendingNowTimer=setInterval(function(){tdTrendingNow.tdTrendingNowChangeText([a,"left"],!0)},1E3*d)}tdTrendingNow.tdTrendingNowChangeText([a,"left"],!0)}},tdTrendingNowChangeText:function(a,b){var c=a[0];a=a[1];for(var d=[],e=0,f,h=0;h<tdTrendingNow.items.length;h++)tdTrendingNow.items[h].blockUid===c&&(f=h,d=tdTrendingNow.items[h].trendingNowPosts,e=tdTrendingNow.items[h].trendingNowPosition);
if("undefined"!==typeof f&&null!==f&&(c=e,h=d.length-1,!(1>h))){"left"===a?(e+=1,e>h&&(e=0)):(--e,0>e&&(e=h));tdTrendingNow.items[f].trendingNowPosition=e;d[c].css("opacity",0);d[c].css("z-index",0);for(var g in d)!0===d.hasOwnProperty(g)&&d[g].removeClass("td_animated_xlong td_fadeInLeft td_fadeInRight td_fadeOutLeft td_fadeOutRight");d[e].css("opacity",1);d[e].css("z-index",1);!0===b?(d[c].addClass("td_animated_xlong td_fadeOutLeft"),d[e].addClass("td_animated_xlong td_fadeInRight")):(d[c].addClass("td_animated_xlong td_fadeOutRight"),
d[e].addClass("td_animated_xlong td_fadeInLeft"))}},tdTrendingNowAutoStart:function(a){for(var b=0;b<tdTrendingNow.items.length;b++)tdTrendingNow.items[b].blockUid===a&&"manual"!==tdTrendingNow.items[b].trendingNowAutostart&&(tdTrendingNow.items[b].trendingNowTimer=tdTrendingNow.setTimerChangingText(a))},setTimerChangingText:function(a){var b=jQuery("#"+a),c=3;"undefined"!==typeof b.data("timer")&&""!==b.data("timer")&&(c=b.data("timer"));return setInterval(function(){tdTrendingNow.tdTrendingNowChangeText([a,
"left"],!0)},1E3*c)}};tdTrendingNow.init()})();"use strict";
var td_history={td_history_change_event:!1,init:function(){window.addEventListener("popstate",function(a){td_history.td_history_change_event=!0;"undefined"!=typeof a.state&&null!=a.state&&jQuery("#"+a.state.slide_id).iosSlider("goToSlide",a.state.current_slide)})},replace_history_entry:function(a){!1!==tdDetect.hasHistory&&history.replaceState(a,null)},add_history_entry:function(a,b,c){if(!1!==tdDetect.hasHistory)if(""==c)history.pushState(a,null,null);else{var d=td_history.get_query_parameter("p");
""!=d?1==c?history.pushState(a,null,"?p="+d):history.pushState(a,null,"?p="+d+"&"+b+"="+c):1==c?history.pushState(a,null,td_history.get_mod_rewrite_base_url()):history.pushState(a,null,td_history.get_mod_rewrite_base_url()+c+"/")}},get_mod_rewrite_base_url:function(){var a=document.URL;"/"==a.charAt(a.length-1)&&(a=a.slice(0,-1));return!1===td_history.get_mod_rewrite_pagination(document.URL)?document.URL:a.substring(0,a.lastIndexOf("/"))+"/"},get_mod_rewrite_pagination:function(){var a=document.URL;
"/"==a.charAt(a.length-1)&&(a=a.slice(0,-1));a=a.substring(a.lastIndexOf("/")+1,a.length);return td_history.isInt(a)?a:!1},get_current_page:function(a){if(""!=td_history.get_query_parameter("p"))return a=td_history.get_query_parameter(a),""!=a?a:1;a=td_history.get_mod_rewrite_pagination();return!1!==a?a:1},isInt:function(a){return 0===a%1},get_query_parameter:function(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");a=(new RegExp("[\\?&]"+a+"=([^&#]*)")).exec(location.search);return null==a?"":
decodeURIComponent(a[1].replace(/\+/g," "))},slide_changed_callback:function(a){if(!0===td_history.td_history_change_event)td_history.td_history_change_event=!1;else{var b=a.currentSlideNumber;a=a.sliderContainerObject.attr("id");td_history.add_history_entry({current_slide:b,slide_id:a},"slide",b)}}};window.history&&window.history.pushState&&td_history.init();var tdSmartSidebar={};
(function(){tdSmartSidebar={hasItems:!1,items:[],scroll_window_scrollTop_last:0,tds_snap_menu:tdUtil.getBackendVar("tds_snap_menu"),is_enabled:!0,is_enabled_state_run_once:!1,is_disabled_state_run_once:!1,is_tablet_grid:!1,_view_port_current_interval_index:tdViewport.getCurrentIntervalIndex(),item:function(){this.sidebar_jquery_obj=this.content_jquery_obj="";this.content_bottom=this.content_top=this.sidebar_height=this.sidebar_bottom=this.sidebar_top=0;this.sidebar_state="";this.case_3_run_once=this.case_2_run_once=
this.case_1_run_once=!1;this.case_3_last_content_height=this.case_3_last_sidebar_height=0;this.case_4_run_once=!1;this.case_4_last_menu_offset=0;this.case_6_run_once=this.case_5_run_once=!1},add_item:function(a){tdSmartSidebar.hasItems=!0;a.sidebar_jquery_obj.prepend('<div class="clearfix"></div>').append('<div class="clearfix"></div>');a.content_jquery_obj.prepend('<div class="clearfix"></div>').append('<div class="clearfix"></div>');tdSmartSidebar.items.push(a)},td_events_scroll:function(a){if(!1!==
tdSmartSidebar.hasItems)if(!1===tdSmartSidebar.is_enabled){if(!1===tdSmartSidebar.is_disabled_state_run_once){tdSmartSidebar.is_disabled_state_run_once=!0;for(var b=0;b<tdSmartSidebar.items.length;b++)tdSmartSidebar.items[b].sidebar_jquery_obj.css({width:"auto",position:"static",top:"auto",bottom:"auto"});tdSmartSidebar.log("smart_sidebar_disabled")}}else window.requestAnimationFrame(function(){var b=0;""!==tdSmartSidebar.tds_snap_menu&&(b=tdAffix._get_menu_affix_height(),"smart_snap_always"===tdAffix.tds_snap_menu&&
(b+=tdAffix.menu_offset));"undefined"!==typeof window.tdThemeName&&"Newspaper"===window.tdThemeName&&(b+=20);var d="";a!==tdSmartSidebar.scroll_window_scrollTop_last&&(d=a>tdSmartSidebar.scroll_window_scrollTop_last?"down":"up");tdSmartSidebar.scroll_window_scrollTop_last=a;var e=jQuery(window).height(),f=a+e;a+=b;for(var h=0;h<tdSmartSidebar.items.length;h++){var g=tdSmartSidebar.items[h];g.content_top=g.content_jquery_obj.offset().top;g.content_height=g.content_jquery_obj.height();g.content_bottom=
g.content_top+g.content_height;g.sidebar_top=g.sidebar_jquery_obj.offset().top;g.sidebar_height=g.sidebar_jquery_obj.height();g.sidebar_bottom=g.sidebar_top+g.sidebar_height;if(g.content_height<=g.sidebar_height)g.sidebar_state="case_6_content_too_small";else if(g.sidebar_height<e){var n=g.content_top;tdAffix.is_menu_affix||"undefined"===typeof window.tdThemeName||"Newsmag"!==window.tdThemeName||"smart_snap_always"!==tdAffix.tds_snap_menu||(n+=b);tdSmartSidebar._is_smaller_or_equal(a,n)?g.sidebar_state=
"case_2_top_of_content":!0===tdSmartSidebar._is_smaller(g.sidebar_bottom,a)?tdSmartSidebar._is_smaller(a,g.content_bottom-g.sidebar_height)?g.sidebar_state="case_4_fixed_up":g.sidebar_state="case_3_bottom_of_content":tdSmartSidebar._is_smaller_or_equal(g.content_bottom,g.sidebar_bottom)?"up"===d&&tdSmartSidebar._is_smaller_or_equal(a,g.sidebar_top)?g.sidebar_state="case_4_fixed_up":g.sidebar_state="case_3_bottom_of_content":g.sidebar_state=g.content_bottom-a>=g.sidebar_height?"case_4_fixed_up":"case_3_bottom_of_content"}else if(!0===
tdSmartSidebar._is_smaller(g.sidebar_bottom,a)?!0===tdSmartSidebar._is_smaller_or_equal(a,g.sidebar_top)&&!0===tdSmartSidebar._is_smaller_or_equal(g.content_top,a)?g.sidebar_state="case_4_fixed_up":!0===tdSmartSidebar._is_smaller(g.sidebar_bottom,f)&&!0===tdSmartSidebar._is_smaller(g.sidebar_bottom,g.content_bottom)&&g.content_bottom>=f?g.sidebar_state="case_1_fixed_down":g.sidebar_state="case_3_bottom_of_content":!0===tdSmartSidebar._is_smaller(g.sidebar_bottom,f)&&!0===tdSmartSidebar._is_smaller(g.sidebar_bottom,
g.content_bottom)&&"down"===d&&g.content_bottom>=f?g.sidebar_state="case_1_fixed_down":!0===tdSmartSidebar._is_smaller_or_equal(g.sidebar_top,g.content_top)&&"up"===d&&g.content_bottom>=f?g.sidebar_state="case_2_top_of_content":!0===tdSmartSidebar._is_smaller_or_equal(g.content_bottom,g.sidebar_bottom)&&"down"===d||g.content_bottom<f?g.sidebar_state="case_3_bottom_of_content":!0===tdSmartSidebar._is_smaller_or_equal(a,g.sidebar_top)&&"up"===d&&!0===tdSmartSidebar._is_smaller_or_equal(g.content_top,
a)?g.sidebar_state="case_4_fixed_up":"up"===d&&!0===tdSmartSidebar._is_smaller_or_equal(f,g.sidebar_top)&&(g.sidebar_state="case_2_top_of_content"),"case_1_fixed_down"===g.sidebar_state&&"up"===d||"case_4_fixed_up"===g.sidebar_state&&"down"===d)g.sidebar_state="case_5_absolute";n=0;null!==tdViewport.getCurrentIntervalItem()&&(n=g.sidebar_jquery_obj.parent(".vc_column, .td-main-sidebar, .vc_column-inner, .vc_column_inner").width(),g.sidebar_jquery_obj.width(n));switch(g.sidebar_state){case "case_1_fixed_down":if(!0===
g.case_1_run_once)break;tdSmartSidebar.log("sidebar_id: "+h+" "+g.sidebar_state);g.case_1_run_once=!0;g.case_2_run_once=!1;g.case_3_run_once=!1;g.case_4_run_once=!1;g.case_5_run_once=!1;g.case_6_run_once=!1;g.sidebar_jquery_obj.css({width:n,position:"fixed",top:"auto",bottom:"0","z-index":"1"});break;case "case_2_top_of_content":if(!0===g.case_2_run_once)break;tdSmartSidebar.log("sidebar_id: "+h+" "+g.sidebar_state);g.case_1_run_once=!1;g.case_2_run_once=!0;g.case_3_run_once=!1;g.case_4_run_once=
!1;g.case_5_run_once=!1;g.case_6_run_once=!1;g.sidebar_jquery_obj.css({width:"auto",position:"static",top:"auto",bottom:"auto"});break;case "case_3_bottom_of_content":if(!0===g.case_3_run_once&&g.case_3_last_sidebar_height===g.sidebar_height&&g.case_3_last_content_height===g.content_height)break;tdSmartSidebar.log("sidebar_id: "+h+" "+g.sidebar_state);g.case_1_run_once=!1;g.case_2_run_once=!1;g.case_3_run_once=!0;g.case_3_last_sidebar_height=g.sidebar_height;g.case_3_last_content_height=g.content_height;
g.case_4_run_once=!1;g.case_5_run_once=!1;g.case_6_run_once=!1;g.sidebar_jquery_obj.css({width:n,position:"absolute",top:g.content_bottom-g.sidebar_height-g.content_top,bottom:"auto"});break;case "case_4_fixed_up":if(!0===g.case_4_run_once&&g.case_4_last_menu_offset===b)break;tdSmartSidebar.log("sidebar_id: "+h+" "+g.sidebar_state);g.case_1_run_once=!1;g.case_2_run_once=!1;g.case_3_run_once=!1;g.case_4_run_once=!0;g.case_4_last_menu_offset=b;g.case_5_run_once=!1;g.case_6_run_once=!1;g.sidebar_jquery_obj.css({width:n,
position:"fixed",top:b,bottom:"auto"});break;case "case_5_absolute":if(!0===g.case_5_run_once)break;tdSmartSidebar.log("sidebar_id: "+h+" "+g.sidebar_state);g.case_1_run_once=!1;g.case_2_run_once=!1;g.case_3_run_once=!1;g.case_4_run_once=!1;g.case_5_run_once=!0;g.case_6_run_once=!1;g.sidebar_jquery_obj.css({width:n,position:"absolute",top:g.sidebar_top-g.content_top,bottom:"auto"});break;case "case_6_content_too_small":!0!==g.case_6_run_once&&(tdSmartSidebar.log("sidebar_id: "+h+" "+g.sidebar_state),
g.case_1_run_once=!1,g.case_2_run_once=!1,g.case_3_run_once=!1,g.case_4_run_once=!1,g.case_5_run_once=!1,g.case_6_run_once=!0,g.sidebar_jquery_obj.css({width:"auto",position:"static",top:"auto",bottom:"auto"}))}}})},compute:function(){tdSmartSidebar.td_events_scroll(jQuery(window).scrollTop())},reset_run_once_flags:function(){for(var a=0;a<tdSmartSidebar.items.length;a++)tdSmartSidebar.items[a].case_1_run_once=!1,tdSmartSidebar.items[a].case_2_run_once=!1,tdSmartSidebar.items[a].case_3_run_once=!1,
tdSmartSidebar.items[a].case_3_last_sidebar_height=0,tdSmartSidebar.items[a].case_3_last_content_height=0,tdSmartSidebar.items[a].case_4_run_once=!1,tdSmartSidebar.items[a].case_4_last_menu_offset=0,tdSmartSidebar.items[a].case_5_run_once=!1,tdSmartSidebar.items[a].case_6_run_once=!1},td_events_resize:function(){tdSmartSidebar._view_port_current_interval_index=tdViewport.getCurrentIntervalIndex();switch(tdSmartSidebar._view_port_current_interval_index){case 0:tdSmartSidebar.is_enabled=!1;tdSmartSidebar.is_enabled_state_run_once=
!1;break;case 1:!1===tdSmartSidebar.is_tablet_grid&&(tdSmartSidebar.reset_run_once_flags(),tdSmartSidebar.is_tablet_grid=!0,tdSmartSidebar.is_desktop_grid=!1,tdSmartSidebar.log("view port tablet"));tdSmartSidebar.is_enabled=!0;tdSmartSidebar.is_disabled_state_run_once=!1;!1===tdSmartSidebar.is_enabled_state_run_once&&(tdSmartSidebar.is_enabled_state_run_once=!0,tdSmartSidebar.log("smart_sidebar_enabled"));break;case 2:case 3:!0===tdSmartSidebar.is_tablet_grid&&(tdSmartSidebar.reset_run_once_flags(),
tdSmartSidebar.is_tablet_grid=!1,tdSmartSidebar.is_desktop_grid=!0,tdSmartSidebar.log("view port desktop")),tdSmartSidebar.is_enabled=!0,tdSmartSidebar.is_disabled_state_run_once=!1,!1===tdSmartSidebar.is_enabled_state_run_once&&(tdSmartSidebar.is_enabled_state_run_once=!0,tdSmartSidebar.log("smart_sidebar_enabled"))}tdSmartSidebar.compute()},log:function(a){},_is_smaller_or_equal:function(a,b){return 1<=Math.abs(a-b)?a<b?!0:!1:!0},_is_smaller:function(a,b){return 1<=Math.abs(a-b)?a<b?!0:!1:!1}}})();
var tdStickyRow={};
(function(){tdStickyRow={items:[],item:function(){this.rowUid="";this.jQueryObj=void 0;this.position="top";this._is_initialized=!1},init:function(){tdStickyRow.items=[];this._is_running=!1},_initialize_item:function(a){!0!==a._is_initialized&&(a._is_initialized=!0)},addItem:function(a){if("undefined"===typeof a.rowUid)throw"item.rowUid is not defined";tdStickyRow.items.push(a);tdStickyRow._initialize_item(a)},resetItems:function(){jQuery(window).unbind("resize.stickyRowTopResize").unbind("resize.stickyRowBottomResize").unbind("scroll.stickyRowTopScroll");tdStickyRow.items.forEach(function(a){var b=
a.jQueryObj;b.removeClass("tdc-rist-absolute");b.removeAttr("style");jQuery("#"+a.rowUid+"-p").remove()});tdStickyRow.items=[]},manageStickies:function(){var a=[],b=[];tdStickyRow.items.forEach(function(c){"top"===c.position?a.push(c):"bottom"===c.position&&b.push(c)});tdStickyRow.manageStickyTop(a);tdStickyRow.manageStickyBottom(b)},manageStickyTop:function(a){var b=jQuery(window);a.length&&(b.bind("resize.stickyRowTopResize",function(){function c(){a.forEach(function(c){var e=c.rowUid,h=jQuery("#"+
e);if(h.length){var g=jQuery("#"+e+"-p"),n=h.outerHeight();(g.length?g.offset().top:h.offset().top)<=b.scrollTop()+d?(h.addClass("tdc-rist-top-active"),g.length||h.after('<div id="'+e+'-p" class="tdc-row-placeholder" style="height:'+n+'px"></div>'),c=a[jQuery.inArray(c,a)+1],"undefined"!==typeof c&&(g=c.jQueryObj,c=jQuery("#"+c.rowUid+"-p"),g=c.length?c.offset().top:g.offset().top,g-=n,h.offset().top>=g&&(h.addClass("tdc-rist-absolute"),h.css({top:g-jQuery(".tdc-content-wrap").offset().top})))):(n=
a[jQuery.inArray(c,a)-1],h.removeClass("tdc-rist-top-active"),g.remove(),"undefined"!==typeof n&&(h=n.jQueryObj,b.scrollTop()<=h.offset().top&&(h.removeClass("tdc-rist-absolute"),h.removeAttr("style"))))}})}var d=0;jQuery("body").hasClass("admin-bar")&&782<=jQuery(window).width()&&(d=jQuery("#wpadminbar").height());c();b.bind("scroll.stickyRowTopScroll",c)}),b.resize())},manageStickyBottom:function(a){var b=jQuery(window),c=0;a.reverse();a.length&&(b.bind("resize.stickyRowBottomResize",function(){c=
0;a.forEach(function(a){a=a.jQueryObj;var b=a.outerHeight();a.addClass("tdc-rist-bottom-active");a.css("bottom",c);c+=b})}),b.resize())}}})();var tdScrollToClass={};
(function(){tdScrollToClass={items:[],item:function(){this.handlerObj=void 0;this._is_initialized=!1},init:function(){tdScrollToClass.items=[]},_initialize_item:function(a){!0!==a._is_initialized&&(a.handlerObj.on("click",function(a){a.preventDefault();a.stopImmediatePropagation();jQuery("body").removeClass("td-menu-mob-open-menu");var b=jQuery(this),d=b.offset(),e=b.data("scroll-to-class");a=b.data("scroll-offset");var f=b.data("scroll-target");if("undefined"===typeof a||""===a)a=0;if("undefined"!==
typeof e&&""!==e){var h=jQuery("."+e);768>tdEvents.window_innerWidth?setTimeout(function(){tdScrollToClass.td_helper_scroll_to_class(b,h,d,0,f,e)},500):tdScrollToClass.td_helper_scroll_to_class(b,h,d,a,f,e)}}),a._is_initialized=!0)},addItem:function(a){if("undefined"===typeof a.handlerObj)throw"item.rowUid is not defined";tdScrollToClass.items.push(a);tdScrollToClass._initialize_item(a)},resetItems:function(){jQuery(window).unbind("resize.scrollToClassResize").unbind("scroll.scrollToClassScroll");
tdScrollToClass.items=[]},manageActiveClasses:function(){var a=jQuery(window),b=jQuery("body"),c=tdScrollToClass.items;c.length&&(a.bind("resize.scrollToClassResize",function(){c.forEach(function(d){var e=d.handlerObj,f=e.data("scroll-to-class"),h=e.data("scroll-offset"),g=c[jQuery.inArray(d,c)+1];if("undefined"===typeof h||""===h)h=0;a.bind("scroll.scrollToClassScroll",function(){var a=b.find("."+f);if(a.length){var c=!0;if(tdScrollToClass.isScrolledIntoView(a,h)){if("undefined"!==typeof g){var d=
g.handlerObj;a=b.find("."+d.data("scroll-to-class"));d=d.data("scroll-offset");if("undefined"===typeof d||""===d)d=0;a.length&&tdScrollToClass.isScrolledIntoView(a,d)&&(e.hasClass("td-scroll-in-view")&&e.removeClass("td-scroll-in-view"),c=!1)}c&&(e.hasClass("td-scroll-in-view")||e.addClass("td-scroll-in-view"))}else e.hasClass("td-scroll-in-view")&&e.removeClass("td-scroll-in-view")}});a.scroll()})}),a.resize())},td_helper_scroll_to_class:function(a,b,c,d,e,f){b.length?(b=b.offset(),c=400*Math.floor(Math.abs(c.top-
b.top)/100),1500<c?c=1500:500>c&&(c=500),tdUtil.scrollToPosition(b.top+d,c),a=a.parent().parent("li.menu-item"),a.length&&(a.siblings(".current-menu-item").removeClass("current-menu-item"),a.addClass("current-menu-item")),jQuery("body").removeClass("td-menu-mob-open-menu")):"undefined"!==typeof e&&""!==e&&(td_set_cookies_life(["td-cookie-scroll-to-class",f,864E5]),td_set_cookies_life(["td-cookie-scroll-offset",d,864E5]),jQuery("body").removeClass("td-menu-mob-open-menu"),window.location=e)},isScrolledIntoView:function(a,
b){var c=jQuery(window),d=c.scrollTop(),e=0;jQuery("body").hasClass("admin-bar")&&782<=c.width()&&(e=jQuery("#wpadminbar").height());c=a.offset().top-e;a=c+a.outerHeight();0>b&&(c+=b);return c<=d&&a>=d}}})();var tdInfiniteLoader={};
(function(){tdInfiniteLoader={hasItems:!1,items:[],item:function(){this.jqueryObj=this.uid="";this.bottomTop=0;this.isVisibleCallbackEnabled=!0;this.isVisibleCallback=function(){}},addItem:function(a){tdInfiniteLoader.hasItems=!0;tdInfiniteLoader.items.push(a)},computeTopDistances:function(){!1!==tdInfiniteLoader.hasItems&&(jQuery.each(tdInfiniteLoader.items,function(a,b){b=tdInfiniteLoader.items[a].jqueryObj.offset().top;tdInfiniteLoader.items[a].bottomTop=b+tdInfiniteLoader.items[a].jqueryObj.height()}),
tdInfiniteLoader.computeEvents())},computeEvents:function(){if(!1!==tdInfiniteLoader.hasItems){var a=jQuery(window).height()+jQuery(window).scrollTop();jQuery.each(tdInfiniteLoader.items,function(b,c){tdInfiniteLoader.items[b].bottomTop<a+700&&!0===tdInfiniteLoader.items[b].isVisibleCallbackEnabled&&(tdInfiniteLoader.items[b].isVisibleCallbackEnabled=!1,tdInfiniteLoader.items[b].isVisibleCallback())})}},enable_is_visible_callback:function(a){jQuery.each(tdInfiniteLoader.items,function(b,c){if(c.uid===
a)return tdInfiniteLoader.items[b].isVisibleCallbackEnabled=!0,!1})}};jQuery(".td_ajax_infinite").each(function(){var a=new tdInfiniteLoader.item;a.jqueryObj=jQuery(this);a.uid=jQuery(this).data("td_block_id");a.isVisibleCallback=function(){var b=tdBlocks.tdGetBlockObjById(a.jqueryObj.data("td_block_id"));""===b.ajax_pagination_infinite_stop||b.td_current_page<parseInt(b.ajax_pagination_infinite_stop)+1?(b.td_current_page++,tdBlocks.tdAjaxDoBlockRequest(b,"infinite_load")):b.td_current_page<b.max_num_pages&&
setTimeout(function(){jQuery("#infinite-lm-"+b.id).css("display","block").css("visibility","visible")},400)};tdInfiniteLoader.addItem(a)});jQuery(window).on("load",function(){tdInfiniteLoader.computeTopDistances()});jQuery().ready(function(){setTimeout(function(){tdInfiniteLoader.computeTopDistances()},500)})})();"use strict";
var Froogaloop=function(){function a(b){return new a.fn.init(b)}function b(a,b,c){if(!c.contentWindow.postMessage)return!1;var d=c.getAttribute("src").split("?")[0];a=JSON.stringify({method:a,value:b});"//"===d.substr(0,2)&&(d=window.location.protocol+d);c.contentWindow.postMessage(a,d)}function c(a){try{var b=JSON.parse(a.data);var c=b.event||b.method}catch(F){}"ready"==c&&!f&&(f=!0);if(a.origin!=h)return!1;a=b.value;var d=b.data,g=""===g?null:b.player_id;b=g?e[g][c]:e[c];c=[];if(!b)return!1;void 0!==
a&&c.push(a);d&&c.push(d);g&&c.push(g);return 0<c.length?b.apply(null,c):b.call()}function d(a,b,c){c?(e[c]||(e[c]={}),e[c][a]=b):e[a]=b}var e={},f=!1,h="";a.fn=a.prototype={element:null,init:function(a){"string"===typeof a&&(a=document.getElementById(a));this.element=a;a=this.element.getAttribute("src");"//"===a.substr(0,2)&&(a=window.location.protocol+a);a=a.split("/");for(var b="",c=0,d=a.length;c<d;c++){if(3>c)b+=a[c];else break;2>c&&(b+="/")}h=b;return this},api:function(a,c){if(!this.element||
!a)return!1;var e=this.element,f=""!==e.id?e.id:null,g=c&&c.constructor&&c.call&&c.apply?null:c;(c=c&&c.constructor&&c.call&&c.apply?c:null)&&d(a,c,f);b(a,g,e);return this},addEvent:function(a,c){if(!this.element)return!1;var e=this.element,g=""!==e.id?e.id:null;d(a,c,g);"ready"!=a?b("addEventListener",a,e):"ready"==a&&f&&c.call(null,g);return this},removeEvent:function(a){if(!this.element)return!1;var c=this.element,d;a:{if((d=""!==c.id?c.id:null)&&e[d]){if(!e[d][a]){d=!1;break a}e[d][a]=null}else{if(!e[a]){d=
!1;break a}e[a]=null}d=!0}"ready"!=a&&d&&b("removeEventListener",a,c)}};a.fn.init.prototype=a.fn;window.addEventListener?window.addEventListener("message",c,!1):window.attachEvent("onmessage",c);return window.Froogaloop=window.$f=a}(),tdCustomEvents={};
(function(){tdCustomEvents={_callback_scroll:function(){tdAnimationScroll.compute_all_items()},_callback_resize:function(){},_lazy_callback_scroll_100:function(){!0===tdAnimationStack.activated&&tdAnimationStack.td_events_scroll()},_lazy_callback_scroll_500:function(){},_lazy_callback_resize_100:function(){tdPullDown.td_events_resize();tdBackstr.td_events_resize();tdAnimationScroll.td_events_resize()},_lazy_callback_resize_500:function(){!0===tdAnimationStack.activated&&tdAnimationStack.td_events_resize();
for(var a=0;a<td_backstretch_items.length;a++)tdAnimationScroll.reinitialize_item(td_backstretch_items[a],!0),td_compute_backstretch_item(td_backstretch_items[a]);tdAnimationScroll.compute_all_items();jQuery("body").find(".tdc-video-inner-wrapper").each(function(){var a=jQuery(this),c=a.find("iframe");if(c.length){var d=c.attr("aspect-ratio");if("undefined"!==typeof d){var e=a.width();a=a.height();var f=a/e;d<f?c.css({width:a/d,height:a}):d>f&&c.css({width:"100%",height:d*e})}}});for(a=0;a<tdAnimationScroll.items.length;a++)"undefined"!==
typeof tdAnimationScroll.items[a].td_video_parallax&&tdAnimationScroll.reinitialize_item(tdAnimationScroll.items[a],!0)}}})();var tdEvents={};
(function(){tdEvents={scroll_event_slow_run:!1,scroll_event_medium_run:!1,resize_event_slow_run:!1,resize_event_medium_run:!1,scroll_window_scrollTop:0,window_pageYOffset:window.pageYOffset,window_innerHeight:window.innerHeight,window_innerWidth:window.innerWidth,init:function(){jQuery(window).scroll(function(){tdEvents.scroll_event_slow_run=!0;tdEvents.scroll_event_medium_run=!0;tdEvents.scroll_window_scrollTop=jQuery(window).scrollTop();tdEvents.window_pageYOffset=window.pageYOffset;tdAffix.td_events_scroll(tdEvents.scroll_window_scrollTop);
tdSmartSidebar.td_events_scroll(tdEvents.scroll_window_scrollTop);tdCustomEvents._callback_scroll();tdHeader.scroll();tdShowVideo.scroll()});jQuery(window).resize(function(){tdEvents.resize_event_slow_run=!0;tdEvents.resize_event_medium_run=!0;tdEvents.window_innerHeight=window.innerHeight;tdEvents.window_innerWidth=window.innerWidth;tdCustomEvents._callback_resize();tdHeader.resize()});setInterval(function(){tdViewport.detectChanges();tdEvents.scroll_event_medium_run&&(tdEvents.scroll_event_medium_run=
!1,tdInfiniteLoader.computeEvents(),tdCustomEvents._lazy_callback_scroll_100());tdEvents.resize_event_medium_run&&(tdEvents.resize_event_medium_run=!1,tdSmartSidebar.td_events_resize(),tdCustomEvents._lazy_callback_resize_100())},100);setInterval(function(){tdEvents.scroll_event_slow_run&&(tdEvents.scroll_event_slow_run=!1,td_events_scroll_scroll_to_top(tdEvents.scroll_window_scrollTop),td_more_articles_box.td_events_scroll(tdEvents.scroll_window_scrollTop),tdCustomEvents._lazy_callback_scroll_500());
tdEvents.resize_event_slow_run&&(tdEvents.resize_event_slow_run=!1,tdAffix.compute_wrapper(),tdAffix.compute_top(),tdDetect.runIsPhoneScreen(),tdCustomEvents._lazy_callback_resize_500())},500)}};tdEvents.init()})();var tdHeader={};
(function(){tdHeader={_selectorHeaderDesktop:".td-header-desktop-wrap",_selectorHeaderDesktopSticky:".td-header-desktop-sticky-wrap",_selectorHeaderMobile:".td-header-mobile-wrap",_selectorHeaderMobileSticky:".td-header-mobile-sticky-wrap",_selectorDataHeaderDesktop:"tdc_header_desktop",_selectorDataHeaderDesktopSticky:"tdc_header_desktop_sticky",_selectorDataHeaderMobile:"tdc_header_mobile",_selectorDataHeaderMobileSticky:"tdc_header_mobile_sticky",$_headerDesktop:void 0,$_headerDesktopSticky:void 0,
$_mobileDesktop:void 0,$_mobileDesktopSticky:void 0,_headerDesktopHeight:void 0,_headerDesktopStickyHeight:void 0,_headerMobileHeight:void 0,_headerMobileStickyHeight:void 0,_headerDesktopStickyGap:0,_headerMobileStickyGap:0,_previousScrollPosition:0,_isMobile:!1,_isInitialized:!1,init:function(){tdHeader._isInitialized||(tdHeader.$_headerDesktop=jQuery(tdHeader._selectorHeaderDesktop),tdHeader.$_headerDesktopSticky=jQuery(tdHeader._selectorHeaderDesktopSticky),tdHeader.$_headerMobile=jQuery(tdHeader._selectorHeaderMobile),
tdHeader.$_headerMobileSticky=jQuery(tdHeader._selectorHeaderMobileSticky),tdHeader.$_headerDesktop.length&&tdHeader.$_headerDesktopSticky.length&&tdHeader.$_headerMobile.length&&tdHeader.$_headerMobileSticky.length&&(window!==window.top&&(tdHeader.$_headerDesktop.removeClass("tdc-zone-sticky-invisible tdc-zone-sticky-inactive"),tdHeader.$_headerDesktopSticky.removeClass("tdc-zone-sticky-invisible tdc-zone-sticky-inactive"),tdHeader.$_headerMobile.removeClass("tdc-zone-sticky-invisible tdc-zone-sticky-inactive"),
tdHeader.$_headerMobileSticky.removeClass("tdc-zone-sticky-invisible tdc-zone-sticky-inactive")),tdHeader.checkSizes(),tdHeader._isInitialized=!0))},computeItems:function(){if(tdHeader._isInitialized){tdHeader._isMobile?(tdHeader.$_headerDesktop.hide(),tdHeader.$_headerDesktopSticky.hide(),tdHeader.$_headerMobile.show(),tdHeader.$_headerMobileSticky.show(),tdHeader.$_headerMobileSticky.hasClass("td-header-stop-transition")&&tdHeader.$_headerMobileSticky.removeClass("td-header-stop-transition"),tdHeader._headerMobileHeight<
tdEvents.scroll_window_scrollTop?tdHeader.$_headerMobileSticky.find(".tdc_zone:first").hasClass("td-header-sticky-smart")?tdHeader._previousScrollPosition<tdEvents.scroll_window_scrollTop?(tdHeader.$_headerMobileSticky.hasClass("td-header-active")&&tdHeader.doExtra(),tdHeader.$_headerMobileSticky.removeClass("td-header-active")):(tdHeader.$_headerMobileSticky.hasClass("td-header-active")||tdHeader.doExtra(),tdHeader.$_headerMobileSticky.addClass("td-header-active")):(tdHeader.$_headerMobileSticky.hasClass("td-header-active")||
tdHeader.doExtra(),tdHeader.$_headerMobile.removeClass("td-header-active"),tdHeader.$_headerMobileSticky.addClass("td-header-active")):(tdHeader.$_headerMobile.hasClass("td-header-active")&&tdHeader.$_headerMobileSticky.addClass("td-header-stop-transition"),tdHeader.$_headerMobileSticky.hasClass("td-header-active")&&tdHeader.doExtra(),tdHeader.$_headerMobile.addClass("td-header-active"),tdHeader.$_headerMobileSticky.removeClass("td-header-active"))):(tdHeader.$_headerDesktop.show(),tdHeader.$_headerDesktopSticky.show(),
tdHeader.$_headerMobile.hide(),tdHeader.$_headerMobileSticky.hide(),tdHeader.$_headerDesktopSticky.hasClass("td-header-stop-transition")&&tdHeader.$_headerDesktopSticky.removeClass("td-header-stop-transition"),tdHeader.$_headerDesktopSticky.find(".tdc_zone:first").hasClass("td-header-sticky-smart")?tdHeader._previousScrollPosition<tdEvents.scroll_window_scrollTop?tdHeader._headerDesktopHeight<tdEvents.scroll_window_scrollTop&&(tdHeader.$_headerDesktopSticky.hasClass("td-header-active")&&tdHeader.doExtra(),
tdHeader.$_headerDesktop.addClass("td-header-active"),tdHeader.$_headerDesktopSticky.removeClass("td-header-active")):tdHeader._previousScrollPosition>tdEvents.scroll_window_scrollTop&&(tdHeader._headerDesktopHeight+parseInt(tdHeader._headerDesktopStickyGap)<tdEvents.scroll_window_scrollTop?(tdHeader.$_headerDesktopSticky.hasClass("td-header-active")||tdHeader.doExtra(),tdHeader.$_headerDesktop.removeClass("td-header-active"),tdHeader.$_headerDesktopSticky.addClass("td-header-active")):(tdHeader._headerDesktopHeight>
tdEvents.scroll_window_scrollTop&&tdHeader.$_headerDesktop.hasClass("td-header-active")&&tdHeader.$_headerDesktopSticky.addClass("td-header-stop-transition"),tdHeader.$_headerDesktopSticky.hasClass("td-header-active")&&tdHeader.doExtra(),tdHeader.$_headerDesktop.addClass("td-header-active"),tdHeader.$_headerDesktopSticky.removeClass("td-header-active"))):tdHeader._previousScrollPosition<tdEvents.scroll_window_scrollTop?tdHeader._headerDesktopHeight<tdEvents.scroll_window_scrollTop?(tdHeader.$_headerDesktopSticky.hasClass("td-header-active")||
tdHeader.doExtra(),tdHeader.$_headerDesktop.removeClass("td-header-active"),tdHeader.$_headerDesktopSticky.addClass("td-header-active")):(tdHeader.$_headerDesktop.hasClass("td-header-active")&&tdHeader.$_headerDesktopSticky.addClass("td-header-stop-transition"),tdHeader.$_headerDesktopSticky.hasClass("td-header-active")&&tdHeader.doExtra(),tdHeader.$_headerDesktop.addClass("td-header-active"),tdHeader.$_headerDesktopSticky.removeClass("td-header-active")):tdHeader._previousScrollPosition>tdEvents.scroll_window_scrollTop&&
(tdHeader._headerDesktopHeight+parseInt(tdHeader._headerDesktopStickyGap)<tdEvents.scroll_window_scrollTop?(tdHeader.$_headerDesktopSticky.hasClass("td-header-active")||tdHeader.doExtra(),tdHeader.$_headerDesktop.removeClass("td-header-active"),tdHeader.$_headerDesktopSticky.addClass("td-header-active")):(tdHeader._headerDesktopHeight>tdEvents.scroll_window_scrollTop&&tdHeader.$_headerDesktop.hasClass("td-header-active")&&tdHeader.$_headerDesktopSticky.addClass("td-header-stop-transition"),tdHeader.$_headerDesktopSticky.hasClass("td-header-active")||
tdHeader.doExtra(),tdHeader.$_headerDesktop.addClass("td-header-active"),tdHeader.$_headerDesktopSticky.removeClass("td-header-active"))));if(window.parent===window.top&&"undefined"!==typeof window.name&&"tdc-live-iframe"===window.name&&"undefined"!==typeof window.parent.tdcSidebar){var a=tdHeader.getActiveHeaderSelector();if("undefined"===typeof tdHeader.previousActiveHeaderSelector||a!==tdHeader.previousActiveHeaderSelector)tdHeader.previousActiveHeaderSelector=a,window.parent.tdcSidebar.$_tdcZone.find(".tdc-zone").removeClass("tdc-zone-active"),
"undefined"!==typeof tdHeader.timeoutHeaderTemplate&&clearTimeout(tdHeader.timeoutHeaderTemplate),tdHeader.timeoutHeaderTemplate=setTimeout(function(){window.parent.tdcSidebar.$_tdcZone.find('.tdc-zone[data-type="'+a+'"]').addClass("tdc-zone-active");0>a.indexOf("sticky")&&window.parent.tdcSidebar.setForcedHeaderZone(void 0);window.parent.tdcState.isHeaderSticky()?tdHeader.$_headerDesktopSticky.addClass("tdc-zone-sticky-active").removeClass("tdc-zone-sticky-inactive"):tdHeader.$_headerDesktopSticky.addClass("tdc-zone-sticky-inactive").removeClass("tdc-zone-sticky-active");
window.parent.tdcState.isMobileHeaderSticky()?tdHeader.$_headerMobileSticky.addClass("tdc-zone-sticky-active").removeClass("tdc-zone-sticky-inactive"):tdHeader.$_headerMobileSticky.addClass("tdc-zone-sticky-inactive").removeClass("tdc-zone-sticky-active");tdHeader._isMobile?tdHeader.$_headerMobileSticky.hasClass("tdc-zone-sticky-active")?tdHeader.$_headerMobileSticky.removeClass("tdc-zone-sticky-invisible"):tdHeader.$_headerMobileSticky.hasClass("tdc-zone-sticky-inactive")&&tdHeader.$_headerMobileSticky.addClass("tdc-zone-sticky-invisible"):
tdHeader.$_headerDesktopSticky.hasClass("tdc-zone-sticky-active")?tdHeader.$_headerDesktopSticky.removeClass("tdc-zone-sticky-invisible"):tdHeader.$_headerDesktopSticky.hasClass("tdc-zone-sticky-inactive")&&tdHeader.$_headerDesktopSticky.addClass("tdc-zone-sticky-invisible")},250)}tdHeader._previousScrollPosition=tdEvents.scroll_window_scrollTop}},scroll:function(){tdHeader.computeItems()},resize:function(){tdHeader.checkSizes();tdHeader.computeItems()},checkSizes:function(){if(tdHeader._isInitialized){tdHeader._headerDesktopHeight=
tdHeader.$_headerDesktop.outerHeight(!0);tdHeader._headerDesktopStickyHeight=tdHeader.$_headerDesktopSticky.outerHeight(!0);tdHeader._headerMobileHeight=tdHeader.$_headerMobile.outerHeight(!0);tdHeader._headerMobileStickyHeight=tdHeader.$_headerMobileSticky.outerHeight(!0);var a=tdHeader.$_headerDesktopSticky.find(".tdc_zone:first").data("sticky-offset");"undefined"!==typeof a&&(tdHeader._headerDesktopStickyGap=a);tdHeader._isMobile=768>tdEvents.window_innerWidth}},getFixedHeaderHeight:function(){if(tdHeader._isInitialized)return tdHeader.checkSizes(),
tdHeader._isMobile?tdHeader._headerMobileHeight:tdHeader._headerDesktopHeight},getActiveHeaderSelector:function(){if(tdHeader._isInitialized)return tdHeader._isMobile?tdHeader.$_headerMobileSticky.hasClass("td-header-active")?tdHeader._selectorDataHeaderMobileSticky:tdHeader._selectorDataHeaderMobile:tdHeader.$_headerDesktopSticky.hasClass("td-header-active")?tdHeader._selectorDataHeaderDesktopSticky:tdHeader._selectorDataHeaderDesktop},doExtra:function(){"undefined"!==typeof window.tdbSearch.hideAllItems&&
window.tdbSearch.hideAllItems()}};jQuery(window).on("load",function(){tdHeader.init();tdHeader.resize()})})();var tdAjaxCount={};(function(){tdAjaxCount={tdGetViewsCountsAjax:function(a,b){var c="td_ajax_get_views";"post"===a&&(c="td_ajax_update_views");jQuery.ajax({type:"POST",url:td_ajax_url,cache:!0,data:{action:c,td_post_ids:b},success:function(a,b,c){a=jQuery.parseJSON(a);a instanceof Object&&jQuery.each(a,function(a,b){jQuery(".td-nr-views-"+a).html(b)})},error:function(a,b,c){}})}}})();
var tdYoutubePlayers={},tdVimeoPlayers={};jQuery().ready(function(){tdYoutubePlayers.init();tdVimeoPlayers.init()});
(function(){tdYoutubePlayers={tdPlayerContainer:"player_youtube",players:[],init:function(){for(var a=jQuery(".td_wrapper_playlist_player_youtube"),b=0;b<a.length;b++){var c=jQuery(a[b]),d=tdYoutubePlayers.addPlayer(c),e=d.tdPlayerContainer;c.parent().find(".td_youtube_control").data("player-id",e);for(var f=c.parent().find(".td_click_video_youtube"),h=0;h<f.length;h++)jQuery(f[h]).data("player-id",e),h+1<f.length?jQuery(f[h]).data("next-video-id",jQuery(f[h+1]).data("video-id")):jQuery(f[h]).data("next-video-id",
jQuery(f[0]).data("video-id"));"1"==c.data("autoplay")&&(d.autoplay=1,d.mute=1);c=c.data("first-video");""!==c&&(d.tdPlaylistIdYoutubeVideoRunning=c,d.playVideo(c))}jQuery(".td_click_video_youtube").on("click",function(){var a=jQuery(this).data("video-id"),b=jQuery(this).data("player-id");void 0!==b&&""!==b&&void 0!==a&&""!==a&&tdYoutubePlayers.operatePlayer(b,"play",a)});jQuery(".td_youtube_control").on("click",function(){var a=jQuery(this).data("player-id");void 0!==a&&""!==a&&(jQuery(this).hasClass("td-sp-video-play")?
tdYoutubePlayers.operatePlayer(a,"play"):tdYoutubePlayers.operatePlayer(a,"pause"))})},addPlayer:function(a){a=tdYoutubePlayers.createPlayer(tdYoutubePlayers.tdPlayerContainer+"_"+tdYoutubePlayers.players.length,a);tdYoutubePlayers.players.push(a);return a},operatePlayer:function(a,b,c){for(var d=0;d<tdYoutubePlayers.players.length;d++)if(tdYoutubePlayers.players[d].tdPlayerContainer==a){a=tdYoutubePlayers.players[d];a.playStatus();"play"===b?(a.autoplay=1,a.mute=0,void 0===c?a.playerPlay():a.playVideo(c)):
"pause"==b&&tdYoutubePlayers.players[d].playerPause();break}},createPlayer:function(a,b){var c={tdYtPlayer:"",tdPlayerContainer:a,autoplay:0,mute:0,tdPlaylistIdYoutubeVideoRunning:"",jqTDWrapperVideoPlaylist:b.closest(".td_wrapper_video_playlist"),jqPlayerWrapper:b,jqControlPlayer:"",_videoId:"",playVideo:function(a){c._videoId=a;"undefined"===typeof YT||"undefined"===typeof YT.Player?(window.onYouTubePlayerAPIReady=function(){for(var a=0;a<tdYoutubePlayers.players.length;a++)tdYoutubePlayers.players[a].loadPlayer()},
jQuery.getScript("https://www.youtube.com/player_api").done(function(a,b){})):c.loadPlayer(a)},loadPlayer:function(a){var b=c._videoId;void 0!==a&&(b=a);if(void 0!==b){c.tdPlaylistIdYoutubeVideoRunning=b;a=window.td_youtube_list_ids["td_"+c.tdPlaylistIdYoutubeVideoRunning].title;var d=window.td_youtube_list_ids["td_"+c.tdPlaylistIdYoutubeVideoRunning].time;c.jqTDWrapperVideoPlaylist.find(".td_click_video_youtube").removeClass("td_video_currently_playing");c.jqTDWrapperVideoPlaylist.find(".td_"+b).addClass("td_video_currently_playing");
c.jqTDWrapperVideoPlaylist.find(".td_current_video_play_title_youtube").html(a);c.jqTDWrapperVideoPlaylist.find(".td_current_video_play_time_youtube").html(d);c.jqPlayerWrapper.html("<div id="+c.tdPlayerContainer+' class="td-youtube-player"></div>');c.jqControlPlayer=c.jqTDWrapperVideoPlaylist.find(".td_youtube_control");c.tdYtPlayer=new YT.Player(c.tdPlayerContainer,{playerVars:{autoplay:c.autoplay,mute:c.mute},height:"100%",width:"100%",videoId:b,events:{onReady:c.onPlayerReady,onStateChange:c.onPlayerStateChange}})}},
onPlayerReady:function(a){if("undefined"!==typeof tdShowVideo)tdShowVideo.onYoutubeReadyEvent(a)},onPlayerStateChange:function(a){if(a.data===YT.PlayerState.PLAYING)c.pauseStatus();else if(a.data===YT.PlayerState.ENDED){c.playStatus();c.autoplay=1;c.mute=0;var b="",d=c.jqTDWrapperVideoPlaylist.find(".td_video_currently_playing");d.length&&(d=jQuery(d).next(".td_click_video_youtube"),d.length&&(b=jQuery(d).data("video-id")));""!==b&&c.playVideo(b)}else YT.PlayerState.PAUSED&&c.playStatus();if("undefined"!==
typeof tdShowVideo)tdShowVideo.onYoutubeStateChangeEvent(a)},playerPlay:function(){c.tdYtPlayer.playVideo()},playerPause:function(){c.tdYtPlayer.pauseVideo()},playStatus:function(){c.jqControlPlayer.removeClass("td-sp-video-pause").addClass("td-sp-video-play")},pauseStatus:function(){c.jqControlPlayer.removeClass("td-sp-video-play").addClass("td-sp-video-pause")}};return c}};tdVimeoPlayers={tdPlayerContainer:"player_vimeo",players:[],existingAutoplay:!1,init:function(){for(var a=jQuery(".td_wrapper_playlist_player_vimeo"),
b=0;b<a.length;b++)tdVimeoPlayers.addPlayer(jQuery(a[b]));jQuery(".td_click_video_vimeo").on("click",function(){var a=jQuery(this).data("video-id"),b=jQuery(this).data("player-id");void 0!==b&&""!==b&&void 0!==a&&""!==a&&tdVimeoPlayers.operatePlayer(b,"play",a)});jQuery(".td_vimeo_control").on("click",function(){var a=jQuery(this).data("player-id");void 0!==a&&""!==a&&(jQuery(this).hasClass("td-sp-video-play")?tdVimeoPlayers.operatePlayer(a,"play"):tdVimeoPlayers.operatePlayer(a,"pause"))})},addPlayer:function(a){var b=
tdVimeoPlayers.tdPlayerContainer+"_"+tdVimeoPlayers.players.length,c=tdVimeoPlayers.createPlayer(b,a);a.parent().find(".td_vimeo_control").data("player-id",b);for(var d=a.parent().find(".td_click_video_vimeo"),e=0;e<d.length;e++)jQuery(d[e]).data("player-id",b),e+1<d.length?jQuery(d[e]).data("next-video-id",jQuery(d[e+1]).data("video-id")):jQuery(d[e]).data("next-video-id",jQuery(d[0]).data("video-id"));"1"==a.data("autoplay")&&(c.autoplay=1);a=a.data("first-video");void 0!==a&&""!==a&&c.createPlayer(a);
tdVimeoPlayers.players.push(c);return c},operatePlayer:function(a,b,c){for(var d=0;d<tdVimeoPlayers.players.length;d++)if(tdVimeoPlayers.players[d].playerId==a){a=tdVimeoPlayers.players[d];"play"===b?void 0!==c?(tdVimeoPlayers.existingAutoplay=!1,a.createPlayer(c)):a.playerPlay():"pause"===b&&a.playerPause();break}},createPlayer:function(a,b){var c={playerId:a,jqTDWrapperVideoPlaylist:b.closest(".td_wrapper_video_playlist"),jqPlayerWrapper:b,currentVideoPlaying:"",player:"",jqControlPlayer:"",autoplay:0,
createPlayer:function(a){if(""!==a){this.currentVideoPlaying=a;var b="",d=window.td_vimeo_list_ids["td_"+a].title,h=window.td_vimeo_list_ids["td_"+a].time;c.jqTDWrapperVideoPlaylist.find(".td_click_video_vimeo").removeClass("td_video_currently_playing");c.jqTDWrapperVideoPlaylist.find(".td_"+a).addClass("td_video_currently_playing");c.jqTDWrapperVideoPlaylist.find(".td_current_video_play_title_vimeo").html(d);c.jqTDWrapperVideoPlaylist.find(".td_current_video_play_time_vimeo").html(h);c.jqControlPlayer=
c.jqTDWrapperVideoPlaylist.find(".td_vimeo_control");tdVimeoPlayers.existingAutoplay||0===c.autoplay?c.playStatus():(b="&autoplay=1&muted=1",tdDetect.isMobileDevice?c.playStatus():c.pauseStatus());c.jqPlayerWrapper.html('<iframe id="'+c.playerId+'" src="https://player.vimeo.com/video/'+a+"?api=1&player_id="+c.playerId+b+'"  frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>');c.createVimeoObjectPlayer(jQuery)}},createVimeoObjectPlayer:function(a){var b="";a=a("#"+c.playerId);
a.length&&(b=$f(a[0]),c.player=b,b.addEvent("ready",function(){b.addEvent("play",function(a){c.pauseStatus()});b.addEvent("pause",function(a){c.playStatus()});b.addEvent("finish",function(a){a="";var b=c.jqTDWrapperVideoPlaylist.find(".td_video_currently_playing");b.length&&(b=jQuery(b).next(".td_click_video_vimeo"),b.length&&(a=jQuery(b).data("video-id")));""!==a?(c.createPlayer(a),tdDetect.isMobileDevice?c.playStatus():c.pauseStatus()):c.playStatus()})}))},playerPlay:function(){c.player.api("play")},
playerPause:function(){c.player.api("pause")},playStatus:function(){c.jqControlPlayer.removeClass("td-sp-video-pause").addClass("td-sp-video-play")},pauseStatus:function(){c.jqControlPlayer.removeClass("td-sp-video-play").addClass("td-sp-video-pause")}};return c}}})();"use strict";jQuery(window).on("load",function(){td_resize_smartlist_sliders_and_update()});jQuery().ready(function(){td_resize_smartlist_sliders_and_update()});
function td_resize_smartlist_slides(a){var b=a.currentSlideNumber;a=jQuery(a.data.obj[0]).attr("id");tdDetect.isIe8||(jQuery("#"+a).css("overflow","none"),jQuery("#"+a+" .td-item").css("overflow","visible"));b=jQuery("#"+a+"_item_"+b).outerHeight(!0);jQuery("#"+a+", #"+a+" .td-slider").css({height:b})}
function td_resize_smartlist_sliders_and_update(){jQuery(document).find(".td-smart-list-slider").each(function(){var a=jQuery(this).attr("id");tdDetect.isIe8||(jQuery("#"+a).css("overflow","none"),jQuery("#"+a+" .td-item").css("overflow","visible"));var b=0;b=jQuery("#"+a+"_item_"+td_history.get_current_page("slide")).outerHeight(!0);jQuery("#"+a+", #"+a+" .td-slider").css({height:b});tdDetect.isAndroid&&setTimeout(function(){jQuery("#"+a).iosSlider("update")},2E3)})}
function td_resize_normal_slide(a){a=jQuery(a.data.obj[0]).attr("id");var b=td_get_document_width();tdDetect.isIe8||(jQuery("#"+a).css("overflow","none"),jQuery("#"+a+" .td-item").css("overflow","visible"));var c=jQuery("#"+a+"_item_0").outerWidth(!0),d=780;tdDetect.isAndroid&&(d=1E3);b<d&&!tdDetect.isIpad&&(b=300<c?.5*c:c,jQuery("#"+a+", #"+a+" .td-slider, #"+a+" .td-slider .td-module-thumb").css({height:b}))}
function td_resize_normal_slide_and_update(a){var b=jQuery(a.data.obj[0]).attr("id");a=td_get_document_width();tdDetect.isIe8||(jQuery("#"+b).css("overflow","none"),jQuery("#"+b+" .td-item").css("overflow","visible"));var c=0;c=jQuery("#"+b+"_item_0").outerWidth(!0);var d=780;tdDetect.isAndroid&&(d=1E3);a<d&&!tdDetect.isIpad&&(c=300<c?.5*c:c,jQuery("#"+b+", #"+b+" .td-slider, #"+b+" .td-slider .td-module-thumb").css({height:c}),setTimeout(function(){jQuery("#"+b).iosSlider("update")},2E3))}
var tdPullDown={};
(function(){tdPullDown={_view_port_interval_index:tdViewport.INTERVAL_INITIAL_INDEX,items:[],item:function(){this.container_jquery_obj=this.vertical_jquery_obj=this.horizontal_jquery_obj=this.blockUid="";this.isTdbMenu=!1;this.horizontal_max_width=this.horizontal_no_items_css_class=this.horizontal_element_css_class=this.sub_icon=this.main_sub_icon="";this.minimum_elements=1;this.excluded_jquery_elements=[];this._horizontal_extra_space=1;this._horizontal_elements=[];this._vertical_elements=[];this._vertical_ul_jquery_obj=
"";this._vertical_jquery_obj_outer_width=0;this._is_initialized=!1},init:function(){tdPullDown._view_port_interval_index=tdViewport.getCurrentIntervalIndex();tdPullDown.items=[]},add_item:function(a){if(1!==a.vertical_jquery_obj.length)throw"item.vertical_jquery_obj is more or less than one: "+a.vertical_jquery_obj.length;if(1!==a.horizontal_jquery_obj.length)throw"item.horizontal_jquery_obj is more or less than one: "+a.horizontal_jquery_obj.length;if(1!==a.container_jquery_obj.length)throw"item.container_jquery_obj is more or less than one: "+
a.container_jquery_obj.length;if(""===a.horizontal_element_css_class)throw"item.horizontal_element_css_class is empty";tdPullDown.items.push(a);tdPullDown._initialize_item(a);tdPullDown._compute_item(a)},deleteItem:function(a){for(var b=0;b<tdPullDown.items.length;b++)if(tdPullDown.items[b].blockUid===a)return tdPullDown.items.splice(b,1),!0;return!1},unloadItem:function(a){for(var b=0;b<tdPullDown.items.length;b++)if(tdPullDown.items[b].blockUid===a){for(var c=0;c<tdPullDown.items[b]._vertical_elements.length;c++)tdPullDown.items[b]._vertical_elements[c].jquery_object.detach().appendTo(tdPullDown.items[b].horizontal_jquery_obj);
tdPullDown.deleteItem(a);return!0}return!1},_initialize_item:function(a){if(!0!==a._is_initialized)if(a._vertical_ul_jquery_obj=a.vertical_jquery_obj.find("ul:first"),0===a._vertical_ul_jquery_obj.length)tdPullDown.log("Item can' be initialized. The vertical list doesn't have an 'ul' container");else{var b=null,c=null;a.horizontal_jquery_obj.find("."+a.horizontal_element_css_class+":visible").each(function(d,f){b=jQuery(f);b.css("-webkit-transition","opacity 0.2s");b.css("-moz-transition","opacity 0.2s");
b.css("-o-transition","opacity 0.2s");b.css("transition","opacity 0.2s");b.css("opacity","1");c={jquery_object:b,calculated_width:b.outerWidth(!0)};a._horizontal_elements.push(c)});a._vertical_jquery_obj_outer_width=a.vertical_jquery_obj.outerWidth(!0);a.vertical_jquery_obj.css("display","none");var d=a.horizontal_jquery_obj.css("padding-left");void 0!==d&&""!==d&&(a._horizontal_extra_space+=parseInt(d.replace("px","")));d=a.horizontal_jquery_obj.css("padding-right");void 0!==d&&""!==d&&(a._horizontal_extra_space+=
parseInt(d.replace("px","")));d=a.horizontal_jquery_obj.css("margin-left");void 0!==d&&""!==d&&(a._horizontal_extra_space+=parseInt(d.replace("px","")));d=a.horizontal_jquery_obj.css("margin-right");void 0!==d&&""!==d&&(a._horizontal_extra_space+=parseInt(d.replace("px","")));d=a.horizontal_jquery_obj.css("border-left");void 0!==d&&""!==d&&(a._horizontal_extra_space+=parseInt(d.replace("px","")));d=a.horizontal_jquery_obj.css("border-right");void 0!==d&&""!==d&&(a._horizontal_extra_space+=parseInt(d.replace("px",
"")));a._is_initialized=!0}},_get_horizontal_elements_width:function(a){for(var b=0,c=a._horizontal_elements.length-1;0<=c;c--)b+=a._horizontal_elements[c].calculated_width;return b},_reinitialize_all_items:function(){for(var a=tdPullDown.items.length-1;0<=a;a--)tdPullDown._reinitialize_item(tdPullDown.items[a])},_reinitialize_item:function(a){if(!1!==a._is_initialized){a._is_initialized=!1;a.horizontal_jquery_obj.html(a.horizontal_jquery_obj.html()+a._vertical_ul_jquery_obj.html());if(a.isTdbMenu){var b=
a.horizontal_jquery_obj.find("> .tdb-normal-menu.menu-item-has-children");b.length&&b.each(function(){var b=jQuery(this);tdPullDown._change_sub_icon_horiz_elements(a,b)})}a._vertical_ul_jquery_obj.html("");a._horizontal_elements=[];a._vertical_elements=[];a._horizontal_extra_space=1;tdPullDown._initialize_item(a)}},_compute_item:function(a){if(!1!==a._is_initialized){tdPullDown._prepare_horizontal_header(a,!0);var b=0,c=a.container_jquery_obj.width();if(void 0!==c&&""!==c){b=c;if(""!==a.horizontal_max_width){var d=
parseInt(a.horizontal_max_width.replace("px",""));c>d&&(b=d)}for(c=a.excluded_jquery_elements.length-1;0<=c;c--)b-=a.excluded_jquery_elements[c].outerWidth(!0)}0<a._vertical_elements.length&&(b-=a._vertical_jquery_obj_outer_width);b-=tdPullDown._get_horizontal_elements_width(a);for(b-=a._horizontal_extra_space;0>b;){if(0!==a.minimum_elements&&a._horizontal_elements.length<=a.minimum_elements){tdPullDown._make_all_elements_vertical(a);tdPullDown._prepare_horizontal_header(a);return}0===a._vertical_elements.length&&
(b-=a._vertical_jquery_obj_outer_width);d=tdPullDown._make_element_vertical(a);b+=d.calculated_width}if(0!==a.minimum_elements&&0===a._horizontal_elements.length&&0<a._vertical_elements.length&&b>=a._vertical_elements[0].calculated_width){for(d=c=0;d<a.minimum_elements&&d<a._vertical_elements.length;d++)c+=a._vertical_elements[d].calculated_width;for(var e=0,f=a.minimum_elements;0<f&&0<a._vertical_elements.length&&b>=c;)if(d=tdPullDown._make_element_horizontal(a),null!==d)e+=d.calculated_width,f--;
else{tdPullDown._prepare_horizontal_header(a);return}b-=e}for(;(0<a._horizontal_elements.length||0===a._horizontal_elements.length&&0===a.minimum_elements)&&0<a._vertical_elements.length&&b>=a._vertical_elements[0].calculated_width;)if(d=tdPullDown._make_element_horizontal(a),null!==d)b-=d.calculated_width;else{tdPullDown._prepare_horizontal_header(a);return}1===a._vertical_elements.length&&b+a._vertical_jquery_obj_outer_width>=a._vertical_elements[0].calculated_width&&tdPullDown._make_element_horizontal(a);
tdPullDown._add_no_items_class(a);tdPullDown._prepare_horizontal_header(a)}},_prepare_horizontal_header:function(a,b){var c=a.horizontal_jquery_obj.parent().siblings(".block-title:first");1===c.length&&(c=c.find("span:first"),1===c.length&&("undefined"!==typeof b&&!0===b?c.css("margin-right",0):0===a._horizontal_elements.length?c.css("margin-right",a._vertical_jquery_obj_outer_width+"px"):c.css("margin-right",0)))},_compute_all_items:function(){for(var a=tdPullDown.items.length-1;0<=a;a--)tdPullDown.items[a].constructor===
tdPullDown.item&&tdPullDown._compute_item(tdPullDown.items[a])},_make_element_horizontal:function(a){if(!1===a._is_initialized||0===a._vertical_elements.length)return null;var b=a._vertical_elements.shift(),c=b.jquery_object;0===a._vertical_elements.length&&a.vertical_jquery_obj.css("display","none");a._horizontal_elements.push(b);c.css("opacity","0");c.detach().appendTo(a.horizontal_jquery_obj);!0===a.isTdbMenu&&c.hasClass("menu-item-has-children")&&c.hasClass("tdb-normal-menu")&&tdPullDown._change_sub_icon_horiz_elements(a,
c);setTimeout(function(){b.jquery_object.css("opacity","1")},50);return b},_change_sub_icon_horiz_elements:function(a,b){b=b.find("> a");var c=b.find(".tdb-sub-menu-icon");c.length?""!==a.main_sub_icon?c.replaceWith(a.main_sub_icon):c.remove():""!==a.main_sub_icon&&b.append(a.main_sub_icon)},_make_element_vertical:function(a){if(!1===a._is_initialized||0===a._horizontal_elements.length)return null;var b=a._horizontal_elements.pop(),c=b.jquery_object;0===a._vertical_elements.length&&a.vertical_jquery_obj.css("display",
"");a._vertical_elements.unshift(b);c.detach().prependTo(a._vertical_ul_jquery_obj);!0===a.isTdbMenu&&c.hasClass("menu-item-has-children")&&c.hasClass("tdb-normal-menu")&&tdPullDown._change_sub_icon_vert_elements(a,c);return b},_change_sub_icon_vert_elements:function(a,b){b=b.find("> a");var c=b.find(".tdb-sub-menu-icon");c.length?""!==a.sub_icon?c.replaceWith(a.sub_icon):c.remove():""!==a.sub_icon&&b.append(a.sub_icon)},_make_all_elements_vertical:function(a){for(;0<a._horizontal_elements.length;)tdPullDown._make_element_vertical(a);
tdPullDown._add_no_items_class(a)},_add_no_items_class:function(a){""!==a.horizontal_no_items_css_class&&(0===a._horizontal_elements.length?a.horizontal_jquery_obj.addClass(a.horizontal_no_items_css_class):0<a._horizontal_elements.length&&a.horizontal_jquery_obj.removeClass(a.horizontal_no_items_css_class))},td_events_resize:function(){0!==tdPullDown.items.length&&(tdPullDown._view_port_interval_index!==tdViewport.getCurrentIntervalIndex()?(tdPullDown._view_port_interval_index=tdViewport.getCurrentIntervalIndex(),
"undefined"!==typeof tdPullDown.reinitTimeout&&clearTimeout(tdPullDown.reinitTimeout),tdPullDown.reinitTimeout=setTimeout(function(){tdPullDown._reinitialize_all_items();tdPullDown._compute_all_items()},100)):tdPullDown._compute_all_items())},log:function(a){}};tdPullDown.init()})();
var td_fps={start_time:0,current_time:0,frame_number:0,init:function(){var a=td_fps.start_time=0,b=0,c=0,d=jQuery("#fps_table");0==d.length&&(d=jQuery("<div>").css({position:"fixed",top:"120px",left:"10px",width:"100px",height:"20px",border:"1px solid black","font-size":"11px","z-index":"100000","background-color":"white"}),d.appendTo("body"));var e=function(){td_fps.frame_number++;td_fps.current_time=Date.now();c=(td_fps.current_time-td_fps.start_time)/1E3;b=(td_fps.frame_number/c).toPrecision(2);
b!=a&&(a=b,d.html(a+" fps"));1<c&&(td_fps.start_time=td_fps.current_time,td_fps.frame_number=0);requestAnimationFrame(e)};e()}},tdAnimationScroll={};
(function(){tdAnimationScroll={items:[],rAFIndex:0,animation_running:!1,item:function(){this.percent_value=0;this.animation_callback=null;this.jqueryObj="";this.wrapper_jquery_obj=void 0;this.top_marker_jquery_obj="";this.full_height=0;this.offset_bottom_top=this.offset_top="";this.properties={};this.computed_item_properties={};this.computation_stopped=this._is_initialized=this.top_is_out=this.redraw=!1;this.add_item_property=function(a,b,c,d,e,f){if(!(b>=c))if(void 0===this.properties[a])this.properties[a]=
{computed_value:"",settings:[]},0!==b&&(this.properties[a].settings[this.properties[a].settings.length]={start_percent:0,end_percent:b,start_value:d,end_value:d,easing:""}),this.properties[a].settings[this.properties[a].settings.length]={start_percent:b,end_percent:c,start_value:d,end_value:e,easing:f},this.properties[a].settings[this.properties[a].settings.length]={start_percent:c,end_percent:100,start_value:e,end_value:e,easing:""};else{var h=this.properties[a].settings[this.properties[a].settings.length-
1];h.start_percent!==b?(this.properties[a].settings[this.properties[a].settings.length-1]={start_percent:h.start_percent,end_percent:b,start_value:h.end_value,end_value:h.end_value,easing:""},this.properties[a].settings[this.properties[a].settings.length]={start_percent:b,end_percent:c,start_value:d,end_value:e,easing:f}):this.properties[a].settings[this.properties[a].settings.length-1]={start_percent:b,end_percent:c,start_value:d,end_value:e,easing:f};100!==c&&(this.properties[a].settings[this.properties[a].settings.length]=
{start_percent:c,end_percent:100,start_value:e,end_value:e,easing:""})}};this.remove_item_property=function(a){if(void 0===this.properties[a])return!1;delete this.properties[a];return!0}},init:function(){tdAnimationScroll.items=[]},add_item:function(a){if(a.constructor===tdAnimationScroll.item&&"undefined"!==typeof a.jqueryObj){var b=a.jqueryObj.prev();b.length&&b.hasClass("td_marker_animation")||(tdAnimationScroll.items.push(a),tdAnimationScroll._initialize_item(a))}},_initialize_item:function(a){if(!0!==
a._is_initialized&&(a.full_height=void 0===a.wrapper_jquery_obj?a.jqueryObj.outerHeight(!0):a.wrapper_jquery_obj.height(),0!==a.full_height)){var b=jQuery('<div class="td_marker_animation" style="height: 0; width: 0">');b.insertBefore(a.jqueryObj);a.top_marker_jquery_obj=b;a.offset_top=a.top_marker_jquery_obj.offset().top;a.offset_bottom_top=a.offset_top+a.full_height;a.top_is_out=tdEvents.window_pageYOffset>a.offset_top;a._is_initialized=!0}},reinitialize_all_items:function(a){for(var b=tdAnimationScroll.items.length-
1;0<=b;b--)tdAnimationScroll.reinitialize_item(tdAnimationScroll.items[b],a)},reinitialize_item:function(a,b){if(!1!==a._is_initialized){a._is_initialized=!1;a.offset_top=a.top_marker_jquery_obj.offset().top;if(!0===b&&(a.full_height=void 0===a.wrapper_jquery_obj?a.jqueryObj.outerHeight(!0):a.wrapper_jquery_obj.height(),0===a.full_height))return;a.offset_bottom_top=a.offset_top+a.full_height;a._is_initialized=!0}},_compute_item_properties:function(a){var b={},c;for(c in a.properties)if(!0===a.properties.hasOwnProperty(c)){var d=
a.properties[c];var e;for(e=0;e<d.settings.length;e++){var f=d.settings[e];if(f.start_percent<=a.percent_value&&a.percent_value<f.end_percent||a.percent_value===f.end_percent&&100===a.percent_value){if(f.start_value===f.end_value)f=f.start_value;else if(e=(a.percent_value-f.start_percent)/(f.end_percent-f.start_percent)*(f.end_value-f.start_value),void 0===f.easing||""===f.easing)f=f.start_value+e;else{var h=Math.abs(f.start_value-f.end_value)/1E3;f=f.start_value<f.end_value?f.start_value+1E3*jQuery.easing[f.easing](null,
e,0,h,f.end_value-f.start_value):f.start_value-1E3*jQuery.easing[f.easing](null,-e,0,h,f.start_value-f.end_value)}d.computed_value!==f&&(d.computed_value=f,b[c]=f,a.redraw=!0);break}}}a.computed_item_properties=b},compute_item:function(a){if(!1!==a._is_initialized){var b=0;tdEvents.window_pageYOffset+tdEvents.window_innerHeight>=a.offset_top&&(b=tdEvents.window_pageYOffset>a.offset_bottom_top?100:100*(tdEvents.window_pageYOffset+tdEvents.window_innerHeight-a.offset_top)/(tdEvents.window_innerHeight+
a.full_height));a.percent_value!==b&&(a.percent_value=b,tdAnimationScroll._compute_item_properties(a));a.top_is_out=tdEvents.window_pageYOffset>a.offset_top}},compute_all_items:function(){!1===tdAnimationScroll.animation_running&&(tdAnimationScroll.rAFIndex=window.requestAnimationFrame(tdAnimationScroll._animate_all_items));tdAnimationScroll.animation_running=!0},_animate_all_items:function(){for(var a=0;a<tdAnimationScroll.items.length;a++)!1===tdAnimationScroll.items[a].computation_stopped&&tdAnimationScroll.compute_item(tdAnimationScroll.items[a]);
for(a=0;a<tdAnimationScroll.items.length;a++)!0===tdAnimationScroll.items[a].redraw&&tdAnimationScroll.items[a].animation_callback();tdAnimationScroll.animation_running=!1},td_events_resize:function(){0!==tdAnimationScroll.items.length&&(tdAnimationScroll.reinitialize_all_items(!1),tdAnimationScroll.compute_all_items())},log:function(a){}};tdAnimationScroll.init()})();var tdHomepageFull={};
(function(a,b){tdHomepageFull={items:[],item:function(){this.blockUid="";this.$tmplBlock=b},addItem:function(a){if(!tdHomepageFull.items.length)switch(a.theme_name){case "Newsmag":tdHomepageFull._addNewsmagItem(a);break;default:tdHomepageFull._addItem(a)}},deleteItem:function(a){for(var b=0;b<tdHomepageFull.items.length;b++){var c=tdHomepageFull.items[b];if(c.blockUid===a)switch(c.theme_name){case "Newsmag":tdHomepageFull._deleteNewsmagItem(c,b);break;default:tdHomepageFull._deleteItem(c,b)}}return!1},
_addItem:function(b){b.$tmplBlock=a("#"+b.blockUid+"_tmpl");a(".td-header-wrap, .td-header-desktop-wrap").after(b.$tmplBlock.html());var c=a('<div class="backstretch"></div>'),e=a('<img class="td-backstretch not-parallax" src="'+b.postFeaturedImage+'"/>');c.append(e);a("body").prepend(c);var f=new tdBackstr.item;f.wrapper_image_jquery_obj=c;f.image_jquery_obj=e;tdBackstr.add_item(f);b.$article=a("#post-"+b.postId);b.$bgImageWrapper=c;b.backstrItem=f;tdHomepageFull.items.push(b)},_addNewsmagItem:function(b){b.$tmplBlock=
a("#"+b.blockUid+"_tmpl");a("body").addClass("single_template_6");a("#td-outer-wrap").prepend(b.$tmplBlock.html());var c=a('<div class="td-full-screen-header-image-wrap"></div>'),e=a('<div id="td-full-screen-header-image" class="td-image-gradient"></div>'),f=a('<img class="td-backstretch" src="'+b.postFeaturedImage+'"/>');c.append(e);e.append(f);a("#td-outer-wrap").prepend(c);b.$bgImageWrapper=c;e=new tdBackstr.item;e.wrapper_image_jquery_obj=c;e.image_jquery_obj=f;tdBackstr.add_item(e);b.$article=
a("#post-"+b.postId);b.backstrItem=e;a(".td-read-down a").on("click",function(b){b.preventDefault();tdUtil.scrollToPosition(a(".td-full-screen-header-image-wrap").height(),1200)});tdHomepageFull.items.push(b)},_deleteItem:function(a,d){a.$tmplBlock.remove();a.$article.remove();a.$bgImageWrapper.remove();tdHomepageFull.items.splice(d,1);tdBackstr.deleteItem(a.blockUid)&&(a.backstrItem=b);a=document.body.className;a=a.replace(/td-boxed-layout/g,"");a=a.replace(/single_template_8/g,"");a=a.replace(/homepage-post/g,
"");document.body.className=a},_deleteNewsmagItem:function(a,d){a.$tmplBlock.remove();a.$article.remove();a.$bgImageWrapper.remove();tdHomepageFull.items.splice(d,1);tdBackstr.deleteItem(a.blockUid)&&(a.backstrItem=b);a=document.body.className;a=a.replace(/single_template_6/g,"");document.body.className=a}}})(jQuery);var tdBackstr={};
(function(){tdBackstr={items:[],item:function(){this.blockUid="";this.image_aspect_rate=this.previous_value=0;this.image_jquery_obj=this.wrapper_image_jquery_obj=""},add_item:function(a){if(a.constructor===tdBackstr.item)if(a.image_jquery_obj.get(0).complete)tdBackstr._load_item_image(a);else a.image_jquery_obj.on("load",function(){tdBackstr._load_item_image(a)})},deleteItem:function(a){for(var b=0;b<tdBackstr.items.length;b++)if(tdBackstr.items[b].blockUid===a)return tdBackstr.items.splice(b,1),
!0;return!1},_load_item_image:function(a){a.image_aspect_rate=a.image_jquery_obj.width()/a.image_jquery_obj.height();tdBackstr.items.push(a);tdBackstr._compute_item(a);a.image_jquery_obj.css("opacity","1")},_compute_item:function(a){if(a.wrapper_image_jquery_obj.width()/a.wrapper_image_jquery_obj.height()<a.image_aspect_rate){var b=1;a.previous_value!==b&&(a.image_jquery_obj.removeClass("td-stretch-width"),a.image_jquery_obj.addClass("td-stretch-height"),a.previous_value=b)}else b=2,a.previous_value!==
b&&(a.image_jquery_obj.removeClass("td-stretch-height"),a.image_jquery_obj.addClass("td-stretch-width"),a.previous_value=b)},_compute_all_items:function(){for(var a=0;a<tdBackstr.items.length;a++)tdBackstr._compute_item(tdBackstr.items[a])},td_events_resize:function(){0!==tdBackstr.items.length&&tdBackstr._compute_all_items()},log:function(a){window.console.log(a)}}})();var tdShowVideo={};
(function(){tdShowVideo={_isInitialized:!1,_isApiYoutubeLoaded:!1,_isApiVimeoLoaded:!1,items:[],_$clearZone:void 0,_$body:void 0,_refLeft:!1,_hDist:void 0,_refBottom:!1,_vDist:void 0,_width:450,_playingOne:!1,_pauseHidden:!1,_runFixed:!1,_bodyClass:"td-sticky-video",item:function(){this.id=void 0;this.inlineHeight=this.inlineWidth=0;this.$wrapper=this.player=this.initialOffsetTop=void 0;this.inViewport=this.moved=!1;this.wrapperHeightBeforeFixed=void 0;this.playerStarted=!1;this.internalStatus=this.playerType=
this.parentFixIndexClass=this.restoreFixIndexClass=void 0},loadApiYoutube:function(){if(!tdShowVideo._isApiYoutubeLoaded){var a=document.createElement("script");a.src="https://www.youtube.com/iframe_api";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b);tdShowVideo._isApiYoutubeLoaded=!0}},loadApiVimeo:function(){if(!tdShowVideo._isApiVimeoLoaded){var a=document.createElement("script");a.src="https://player.vimeo.com/api/player.js";var b=document.getElementsByTagName("script")[0];
b.parentNode.insertBefore(a,b);tdShowVideo._isApiVimeoLoaded=!0}},init:function(){tdShowVideo._isInitialized||("undefined"!==typeof window.tds_video_scroll&&""!==window.tds_video_scroll&&(tdShowVideo._runFixed=!0),"undefined"!==typeof window.tds_video_position_h&&""!==window.tds_video_position_h&&(tdShowVideo._refLeft=!0),"undefined"!==typeof window.tds_video_position_v&&""!==window.tds_video_position_v&&(tdShowVideo._refBottom=!0),"undefined"!==typeof window.tds_video_distance_h&&""!==window.tds_video_distance_h&&
(tdShowVideo._hDist=parseInt(window.tds_video_distance_h.trim(),10)),"undefined"!==typeof window.tds_video_distance_v&&""!==window.tds_video_distance_v&&(tdShowVideo._vDist=parseInt(window.tds_video_distance_v.trim(),10)),"undefined"!==typeof window.tds_video_width&&""!==window.tds_video_width&&(tdShowVideo._width=parseInt(window.tds_video_width.trim(),10)),"undefined"!==typeof window.tds_video_playing_one&&""!==window.tds_video_playing_one&&(tdShowVideo._playingOne=!0),"undefined"!==typeof window.tds_video_pause_hidden&&
""!==window.tds_video_pause_hidden&&(tdShowVideo._pauseHidden=!0),tdShowVideo._$clearZone=jQuery('<div class="td-close-video-fixed"><i class="td-icon-modal-close"></i></div>'),tdShowVideo._$body=jQuery("body"),tdShowVideo._$body.append(tdShowVideo._$clearZone).on("click",".td-close-video-fixed",function(a){var b=jQuery(this).data("item-id");"undefined"!==typeof b&&tdShowVideo.items.forEach(function(a){b===a.id&&(tdShowVideo._clearPlayerStarted(),tdShowVideo._movePlayerFromZone(a),tdShowVideo._pauseHidden&&
tdShowVideo._pausePlayer(a))})}),this._isInitialized=!0)},addItem:function(a){tdShowVideo._isInitialized&&a.constructor===tdShowVideo.item&&tdShowVideo.items.push(a)},scroll:function(){tdShowVideo._isInitialized&&tdShowVideo._checkItems()},_checkItems:function(){tdShowVideo._isInitialized&&(tdShowVideo._runFixed&&tdShowVideo.items.forEach(function(a){!0!==tdDetect.isPhoneScreen&&(tdShowVideo._getReplacer(a).insertBefore(a.$wrapper.parent()),tdShowVideo._isItemInViewport(a)?tdShowVideo._movePlayerFromZone(a):
tdShowVideo._movePlayerToZone(a))}),setTimeout(function(){tdShowVideo._pauseHidden&&tdShowVideo._pauseOtherPlayers()},500))},_movePlayerToZone:function(a){if("youtube"===a.playerType){if(!tdShowVideo._isInitialized||a.moved||"undefined"===typeof a.player||"undefined"===typeof a.player.getPlayerState||a.player.getPlayerState()!==YT.PlayerState.PLAYING||"undefined"===typeof a.playerStarted)return!1}else if("vimeo"===a.playerType){if(!tdShowVideo._isInitialized||a.moved||"undefined"===typeof a.player||
"undefined"===typeof a.internalStatus||"VIMEO_PLAYING"!==a.internalStatus||"undefined"===typeof a.playerStarted)return!1}else if("video"===a.playerType){if(!tdShowVideo._isInitialized||a.moved||"undefined"===typeof a.player||"undefined"===typeof a.internalStatus||"VIDEO_PLAYING"!==a.internalStatus||"undefined"===typeof a.playerStarted)return!1}else if("undefined"===typeof a.playerType)return!1;tdShowVideo._clearPlayerStarted(a);tdShowVideo._clearZone();var b=a.$wrapper.data("id");"undefined"===typeof b&&
(b=tdShowVideo._getUniqueId(),a.$wrapper.data("id",b),a.id=b);"undefined"===typeof a.initialOffsetTop&&(a.initialOffsetTop=a.$wrapper.offset().top);a.wrapperHeightBeforeFixed=a.$wrapper.height();a.$wrapper.parent().addClass("td-video-fixed");tdShowVideo._showReplacer(a);tdShowVideo._refLeft&&a.$wrapper.parent().addClass("td-video-fixed-left");tdShowVideo._refBottom&&a.$wrapper.parent().addClass("td-video-fixed-bottom");b="width:"+tdShowVideo._width+"px !important;";b+="height:"+tdShowVideo._width*
a.inlineHeight/a.inlineWidth+"px !important;";"undefined"!==typeof tdShowVideo._hDist&&(b=tdShowVideo._refLeft?b+("left:"+tdShowVideo._hDist+"px !important;"):b+("right:"+tdShowVideo._hDist+"px !important;"));"undefined"!==typeof tdShowVideo._vDist&&(b=tdShowVideo._refBottom?b+("bottom:"+tdShowVideo._vDist+"px !important;"):b+("top:"+tdShowVideo._vDist+"px !important;"));a.$wrapper.css("width",tdShowVideo._width);a.$wrapper.css("height","100%");a.$wrapper.parent().attr("style",b);a.$wrapper.closest(".tdb-block-inner").hasClass("td-fix-index")?
(a.$wrapper.closest(".tdb-block-inner").removeClass("td-fix-index"),a.restoreFixIndexClass=!0,a.parentFixIndexClass="tdb-block-inner"):a.$wrapper.closest(".td_block_inner").hasClass("td-fix-index")&&(a.$wrapper.closest(".td_block_inner").removeClass("td-fix-index"),a.restoreFixIndexClass=!0,a.parentFixIndexClass="td_block_inner");tdShowVideo._$clearZone.data("item-id",a.id);tdShowVideo._$clearZone.show();tdShowVideo._$clearZone.prependTo(a.$wrapper.parent());tdShowVideo._addBodyClass();return a.moved=
!0},_movePlayerFromZone:function(a){if(!tdShowVideo._isInitialized||!a.moved)return!1;a.$wrapper.parent().removeClass("td-video-fixed");tdShowVideo._hideReplacer(a);tdShowVideo._refLeft&&a.$wrapper.parent().removeClass("td-video-fixed-left");tdShowVideo._refBottom&&a.$wrapper.parent().removeClass("td-video-fixed-bottom");a.$wrapper.parent().removeAttr("style");a.$wrapper.css("width","");"undefined"!==typeof a.wrapperHeightBeforeFixed&&a.$wrapper.css("height",a.wrapperHeightBeforeFixed+"px");"undefined"!==
typeof a.restoreFixIndexClass&&(a.$wrapper.closest("."+a.parentFixIndexClass).addClass("td-fix-index"),delete a.restoreFixIndexClass,delete a.parentFixIndexClass);tdShowVideo._$clearZone.appendTo(tdShowVideo._$body);tdShowVideo._$clearZone.hide();tdShowVideo._removeBodyClass();a.moved=!1;return!0},_addBodyClass:function(){tdShowVideo._$body.addClass(tdShowVideo._bodyClass)},_removeBodyClass:function(){tdShowVideo._$body.removeClass(tdShowVideo._bodyClass)},_isItemInViewport:function(a){var b=a.initialOffsetTop;
"undefined"===typeof b&&(b=a.$wrapper.offset().top,a.initialOffsetTop=b);return b>=tdEvents.scroll_window_scrollTop&&b<=tdEvents.scroll_window_scrollTop+tdEvents.window_innerHeight||b+a.inlineHeight>=tdEvents.scroll_window_scrollTop&&b+a.inlineHeight<=tdEvents.scroll_window_scrollTop+tdEvents.window_innerHeight?!0:!1},_pauseOtherPlayers:function(){tdShowVideo.items.forEach(function(a){tdShowVideo._isItemInViewport(a)||a.moved||"undefined"!==typeof a.player&&("youtube"===a.playerType&&"undefined"!==
typeof a.player.getPlayerState&&a.player.getPlayerState()===YT.PlayerState.PLAYING?a.player.pauseVideo():"vimeo"===a.playerType&&"undefined"!==typeof a.internalStatus&&"VIMEO_PLAYING"===a.internalStatus?a.player.pause():"video"===a.playerType&&"undefined"!==typeof a.internalStatus&&"VIDEO_PLAYING"===a.internalStatus&&a.player.pause())})},_pausePlayer:function(a){"undefined"!==typeof a.player&&("youtube"===a.playerType&&"undefined"!==typeof a.player.getPlayerState&&a.player.getPlayerState()===YT.PlayerState.PLAYING?
a.player.pauseVideo():"vimeo"===a.playerType&&"undefined"!==typeof a.internalStatus&&"VIMEO_PLAYING"===a.internalStatus?a.player.pause():"video"===a.playerType&&"undefined"!==typeof a.internalStatus&&"VIDEO_PLAYING"===a.internalStatus&&a.player.pause())},_clearZone:function(){tdShowVideo._isInitialized&&tdShowVideo.items.forEach(function(a){tdShowVideo._movePlayerFromZone(a,!0)})},_clearPlayerStarted:function(a){tdShowVideo.items.forEach(function(b){"undefined"!==typeof a?b!==a&&"undefined"!==typeof b.playerStarted&&
delete b.playerStarted:"undefined"!==typeof b.playerStarted&&delete b.playerStarted})},_getReplacer:function(a){if(tdShowVideo._isInitialized){if("undefined"!==typeof a.$replacer)return a.$replacer;a.$replacer=jQuery('<div class="td-video-replacer" data-id="'+a.$wrapper.data("id")+'" style="position: absolute; visibility: hidden; width:'+a.inlineWidth+"px;height:"+a.inlineHeight+'px"></div>');return a.$replacer}},_showReplacer:function(a){tdShowVideo._isInitialized&&tdShowVideo._getReplacer(a).css("position",
"relative")},_hideReplacer:function(a){tdShowVideo._isInitialized&&tdShowVideo._getReplacer(a).css("position","absolute")},_getUniqueId:function(){return"uid_"+Math.floor(1E4*Math.random()+1)+"_"+Math.floor(100*Math.random()+1)},addPlayerStarted:function(a){tdShowVideo._isInitialized&&tdShowVideo.items.forEach(function(b){b.player===a?b.playerStarted=!0:tdShowVideo._playingOne&&("youtube"===b.playerType&&"undefined"!==typeof b.player?b.player.pauseVideo():"vimeo"===b.playerType&&"undefined"!==typeof b.player?
b.player.pause():"video"===b.playerType&&"undefined"!==typeof b.player&&b.player.pause(),b.playerStarted=!1)})},clearPlayerStarted:function(a){tdShowVideo._isInitialized&&tdShowVideo.items.forEach(function(b){b.player===a&&"undefined"!==typeof b.playerStarted&&delete b.playerStarted})},onYoutubeReadyEvent:function(a){tdShowVideo._isInitialized&&a.target.setPlaybackQuality("hd720")},onYoutubeStateChangeEvent:function(a){if(tdShowVideo._isInitialized)switch(a.target.getPlayerState()){case YT.PlayerState.PLAYING:tdShowVideo.addPlayerStarted(a.target);
break;case YT.PlayerState.ENDED:tdShowVideo.clearPlayerStarted(a.target)}}}})();
window.onYouTubeIframeAPIReady=function(){tdShowVideo.init();jQuery(".td-youtube-player, .wp-block-embed-youtube iframe").each(function(){var a=jQuery(this),b=new tdShowVideo.item;b.playerType="youtube";b.inlineWidth=a.outerWidth();b.inlineHeight=a.outerHeight();b.$wrapper=a;b.player=new YT.Player(this,{height:"720",width:"960",events:{onReady:tdShowVideo.onYoutubeReadyEvent,onStateChange:tdShowVideo.onYoutubeStateChangeEvent}});tdShowVideo.addItem(b)})};
jQuery(window).on("load",function(){tdYoutubePlayers.players.length&&(tdShowVideo.init(),tdYoutubePlayers.players.forEach(function(a){var b=new tdShowVideo.item;b.playerType="youtube";b.inlineWidth=a.jqPlayerWrapper.outerWidth();b.inlineHeight=a.jqPlayerWrapper.outerHeight();b.$wrapper=a.jqPlayerWrapper;b.player=a.tdYtPlayer;tdShowVideo.addItem(b)}))});
jQuery(window).on("load",function(){var a=jQuery('.wpb_video_wrapper iframe[src*="vimeo.com"], .wp-block-embed-vimeo iframe[src*="vimeo.com"]');a.length&&(tdShowVideo.init(),a.each(function(a){var b=jQuery(this),d=new tdShowVideo.item;d.playerType="vimeo";d.inlineWidth=b.outerWidth();d.inlineHeight=b.outerHeight();d.$wrapper=b;d.id=a;d.player=new Vimeo.Player(this);d.player.on("play",function(){d.internalStatus="VIMEO_PLAYING";tdShowVideo.addPlayerStarted(d.player)});d.player.on("pause",function(){d.internalStatus=
void 0});d.player.on("ended",function(a){d.internalStatus=void 0;tdShowVideo.clearPlayerStarted(d.player)});tdShowVideo.addItem(d)}))});
jQuery(window).ready(function(){var a=!1;if("undefined"!==typeof window.tds_video_scroll&&""!==window.tds_video_scroll||"undefined"!==typeof window.tds_video_playing_one&&""!==window.tds_video_playing_one||"undefined"!==typeof window.tds_video_pause_hidden&&""!==window.tds_video_pause_hidden)a=!0;a&&jQuery(".td-youtube-player, .wp-block-embed-youtube iframe").length&&tdShowVideo.loadApiYoutube();jQuery('.wpb_video_wrapper iframe[src*="vimeo.com"], .wp-block-embed-vimeo iframe[src*="vimeo.com"]').length&&
tdShowVideo.loadApiVimeo();a=jQuery("video");a.length&&(tdShowVideo.init(),a.each(function(a){var b=jQuery(this),d=new tdShowVideo.item;d.playerType="video";d.inlineWidth=b.outerWidth();d.inlineHeight=b.outerHeight();d.$wrapper=b;d.id=a;d.player=this;d.player.addEventListener("play",function(a){d.internalStatus="VIDEO_PLAYING";tdShowVideo.addPlayerStarted(d.player)},!0);d.player.addEventListener("pause",function(a){d.internalStatus=void 0;tdShowVideo.addPlayerStarted(d.player)},!0);d.player.addEventListener("ended",
function(a){d.internalStatus=void 0;tdShowVideo.addPlayerStarted(d.player)},!0);tdShowVideo.addItem(d)}))});var tdAnimationStack={};
(function(){tdAnimationStack={_animation_css_class1:"",_animation_css_class2:"",_animation_default_effect:"type0",activated:!1,_ready_for_initialization:!0,_ready_init_timeout:void 0,max_waiting_for_init:3E3,_specific_selectors:"",_general_selectors:"",live_load_items:!1,is_ready_init:!1,ready_init:function(){tdAnimationStack.is_ready_init||(tdAnimationStack.is_ready_init=!0,tdDetect.isIe8||tdDetect.isIe9||0<jQuery(".vc_images_carousel").length?(tdAnimationStack._ready_for_initialization=!1,void 0!==
window.td_animation_stack_effect&&(""===window.td_animation_stack_effect&&(window.td_animation_stack_effect=tdAnimationStack._animation_default_effect),jQuery("body").removeClass("td-animation-stack-"+window.td_animation_stack_effect))):void 0===window.tds_animation_stack||void 0===window.td_animation_stack_effect?tdAnimationStack._ready_for_initialization=!1:(void 0!==window.td_animation_stack_specific_selectors&&(tdAnimationStack._specific_selectors=window.td_animation_stack_specific_selectors),
""===window.td_animation_stack_effect&&(window.td_animation_stack_effect=tdAnimationStack._animation_default_effect),tdAnimationStack._animation_css_class1="td-animation-stack-"+window.td_animation_stack_effect+"-1",tdAnimationStack._animation_css_class2="td-animation-stack-"+window.td_animation_stack_effect+"-2",void 0!==window.td_animation_stack_general_selectors&&(tdAnimationStack._general_selectors=window.td_animation_stack_general_selectors),jQuery(tdAnimationStack._general_selectors).addClass(tdAnimationStack._animation_css_class1),
tdAnimationStack._ready_init_timeout=setTimeout(function(){tdAnimationStack.log("%c _ready_init_timeout run ","background: red; color: white;");if(!0!==tdAnimationStack.activated){tdAnimationStack._ready_for_initialization=!1;jQuery(tdAnimationStack._general_selectors).not("."+tdAnimationStack._animation_css_class2).removeClass(tdAnimationStack._animation_css_class1);var a=jQuery(".td-animation-stack, .post").find(tdAnimationStack._specific_selectors);tdAnimationStack.log("_ready_init_timeout found elements: "+
a.length);a.each(function(a,c){a=jQuery(c).data("type");c=jQuery(c);tdAnimationStack.log("type: "+a);tdAnimationStack.log("src: "+c.data("img-url"));switch(a){case "image_tag":void 0!==c.data("img-retina-url")&&!0===tdAnimationStack._isHighDensity()?c.attr("src",c.data("img-retina-url")):c.attr("src",c.data("img-url"));break;case "css_image":void 0!==c.data("img-retina-url")&&!0===tdAnimationStack._isHighDensity()?c.attr("style","background-image: url("+c.data("img-retina-url")+")"):c.attr("style",
"background-image: url("+c.data("img-url")+")")}});void 0!==window.td_animation_stack_effect&&jQuery("body").removeClass("td-animation-stack-"+window.td_animation_stack_effect)}},tdAnimationStack.max_waiting_for_init)))},_ITEM_TO_VIEW_PORT:{ITEM_ABOVE_VIEW_PORT:0,ITEM_IN_VIEW_PORT:1,ITEM_UNDER_VIEW_PORT:2},SORTED_METHOD:{sort_left_to_right:function(a,b){return a.offset_top>b.offset_top?1:a.offset_top<b.offset_top?-1:a._order>b._order?1:a._order<b._order?-1:0},sort_right_to_left:function(a,b){return a.offset_top>
b.offset_top||!(a.offset_top<b.offset_top||a._order>b._order)&&a._order<b._order?1:-1}},_order:0,interval:70,min_interval:17,max_interval:40,_current_interval:void 0,_items_in_view_port:[],_items_above_view_port:[],items:[],item:function(){this.itemImgRetinaSrc=this.itemType=this.itemSrc=this._order=this.jqueryObj=this.offset_bottom_to_top=this.offset_top=void 0},_initialize_item:function(a){a._order=tdAnimationStack._order++;a.offset_top=a.jqueryObj.offset().top;a.offset_bottom_to_top=a.offset_top+
a.jqueryObj.height()},check_for_new_items:function(a,b,c,d){if(!1!==tdAnimationStack.activated&&!1!==tdAnimationStack._ready_for_initialization){void 0===a&&(a="");var e=[];jQuery(tdAnimationStack._general_selectors).not("."+tdAnimationStack._animation_css_class2).addClass(tdAnimationStack._animation_css_class1);var f=jQuery(a+", .post").find(tdAnimationStack._specific_selectors).filter(function(){return jQuery(this).hasClass(tdAnimationStack._animation_css_class1)});f.each(function(a,b){a=new tdAnimationStack.item;
a.jqueryObj=jQuery(b);a.itemSrc=jQuery(b).data("img-url");a.itemType=jQuery(b).data("type");void 0!==jQuery(b).data("img-retina-url")&&(a.itemImgRetinaSrc=jQuery(b).data("img-retina-url"));tdAnimationStack._initialize_item(a);e.push(a)});!0===d?(tdAnimationStack.log("%c live load items ","background: brown; color: white;"),tdAnimationStack._precompute_items(e,b,c),tdAnimationStack.compute_items(d)):(tdAnimationStack.log("%c preload items ","background: brown; color: white;"),function(){for(var a=
!0,d=0;d<e.length;d++)if(!1===f[d].complete){a=!1;break}if(!1===a){var n=(new Date).getTime();tdAnimationStack.log("TIMER - started");var r=setInterval(function(){var d;if((new Date).getTime()-n>tdAnimationStack.max_waiting_for_init)for(clearInterval(r),d=0;d<e.length;d++)e[d].jqueryObj.removeClass(tdAnimationStack._animation_css_class1),e[d].jqueryObj.addClass(tdAnimationStack._animation_css_class2);else{a=!0;for(d=0;d<e.length;d++)if(!1===f[d].complete){a=!1;break}!0===a&&(clearInterval(r),tdAnimationStack.log("TIMER - stopped"),
tdAnimationStack._precompute_items(e,b,c),tdAnimationStack.compute_items(!1))}},100)}else tdAnimationStack._precompute_items(e,b,c),tdAnimationStack.compute_items(!1)}());tdAnimationStack.log("checked for new items finished")}},_precompute_items:function(a,b,c){a.sort(b);if(!0===c)for(;0<a.length;)tdAnimationStack.log("add item 1 : "+a.length),tdAnimationStack._items_in_view_port.push(a.shift());else for(;0<a.length;)tdAnimationStack.log("add item 2 : "+a.length),tdAnimationStack.items.push(a.shift())},
init:function(){tdAnimationStack.ready_init();void 0===window.tds_animation_stack?tdAnimationStack.log("%c theme lazy loading animation is off! ","background: #eb4026;"):(tdAnimationStack.log("%c theme lazy loading animation is on! ","background: #03c04a; color: #fff;"),!1!==tdAnimationStack._ready_for_initialization&&(clearTimeout(tdAnimationStack._ready_init_timeout),tdAnimationStack.activated=!0,tdAnimationStack.check_for_new_items(".td-animation-stack",tdAnimationStack.SORTED_METHOD.sort_left_to_right,
!1,!0)))},reinit:function(){!1!==tdAnimationStack._ready_for_initialization&&(tdAnimationStack.items=[],tdAnimationStack._items_in_view_port=[],tdAnimationStack._items_above_view_port=[],tdAnimationStack.init())},compute_items:function(a){if(!1!==tdAnimationStack.activated&&!1!==tdAnimationStack._ready_for_initialization){for(tdAnimationStack._separate_items();0<tdAnimationStack._items_above_view_port.length;){tdAnimationStack.log("animation - above the view port");var b=tdAnimationStack._items_above_view_port.shift();
!0===a?(tdAnimationStack._load_item(b,!1),tdAnimationStack.log("%c item above view port - loaded ","background: #fef24e; color: #000;")):(b.jqueryObj.removeClass(tdAnimationStack._animation_css_class1),b.jqueryObj.addClass(tdAnimationStack._animation_css_class2))}0<tdAnimationStack._items_in_view_port.length&&(clearInterval(tdAnimationStack._current_interval),b=tdAnimationStack._get_item_from_view_port(),!0===a?(tdAnimationStack._load_item(b,!1),tdAnimationStack.log("%c item in view port - loaded ",
"background: #fef24e; color: #000;")):(b.jqueryObj.removeClass(tdAnimationStack._animation_css_class1),b.jqueryObj.addClass(tdAnimationStack._animation_css_class2)),0<tdAnimationStack._items_in_view_port.length&&(tdAnimationStack.log("start animation timer"),tdAnimationStack._to_timer(tdAnimationStack._get_right_interval(1/tdAnimationStack._items_in_view_port.length*tdAnimationStack.interval),a)))}},_to_timer:function(a,b){tdAnimationStack._current_interval=setInterval(function(){if(0<tdAnimationStack._items_in_view_port.length){var c=
tdAnimationStack._get_item_from_view_port();tdAnimationStack.log("animation at interval: "+a);!0===b?(tdAnimationStack._load_item(c,!1),tdAnimationStack.log("%c item above view port - loaded > _to_timer ","background: #3895d3; color: #fff;")):(c.jqueryObj.removeClass(tdAnimationStack._animation_css_class1),c.jqueryObj.addClass(tdAnimationStack._animation_css_class2));clearInterval(tdAnimationStack._current_interval);0<tdAnimationStack._items_in_view_port.length&&tdAnimationStack._to_timer(tdAnimationStack._get_right_interval(1/
tdAnimationStack._items_in_view_port.length*tdAnimationStack.interval),b)}},a)},_get_item_from_view_port:function(){return tdAnimationStack._items_in_view_port.shift()},_get_right_interval:function(a){return a<tdAnimationStack.min_interval?tdAnimationStack.min_interval:a>tdAnimationStack.max_interval?tdAnimationStack.max_interval:a},_item_to_view_port:function(a){tdAnimationStack.log("position item relative to the view port >> yOffset "+tdEvents.window_pageYOffset+" | xOffset "+tdEvents.window_innerHeight+
" : "+a.offset_top);return tdEvents.window_pageYOffset+tdEvents.window_innerHeight+200<a.offset_top?tdAnimationStack._ITEM_TO_VIEW_PORT.ITEM_UNDER_VIEW_PORT:tdEvents.window_pageYOffset+tdEvents.window_innerHeight+200>=a.offset_top&&tdEvents.window_pageYOffset<=a.offset_bottom_to_top?tdAnimationStack._ITEM_TO_VIEW_PORT.ITEM_IN_VIEW_PORT:tdAnimationStack._ITEM_TO_VIEW_PORT.ITEM_ABOVE_VIEW_PORT},_separate_items:function(){if(0!==tdAnimationStack.items.length)for(tdAnimationStack.log("%c _separate_items - total items: "+
tdAnimationStack.items.length+" ","background: #999da0; color: #fff;");0<tdAnimationStack.items.length;)switch(tdAnimationStack._item_to_view_port(tdAnimationStack.items[0])){case tdAnimationStack._ITEM_TO_VIEW_PORT.ITEM_ABOVE_VIEW_PORT:tdAnimationStack._items_above_view_port.push(tdAnimationStack.items.shift());break;case tdAnimationStack._ITEM_TO_VIEW_PORT.ITEM_IN_VIEW_PORT:tdAnimationStack._items_in_view_port.push(tdAnimationStack.items.shift());break;case tdAnimationStack._ITEM_TO_VIEW_PORT.ITEM_UNDER_VIEW_PORT:tdAnimationStack.log("after separation items >> above: "+
tdAnimationStack._items_above_view_port.length+" in: "+tdAnimationStack._items_in_view_port.length+" under: "+tdAnimationStack.items.length);return}},_load_item:function(a,b){if(void 0===a.itemSrc)tdAnimationStack.log("%c item with no data url ","background: #fc6600; color: #fff;"),a.jqueryObj.removeClass(tdAnimationStack._animation_css_class1),a.jqueryObj.addClass(tdAnimationStack._animation_css_class2);else if(b=a.itemType,void 0!==b)switch(b){case "image_tag":tdAnimationStack.log("%c image tag ",
"background: #3ded97; color: #fff;");a.jqueryObj.data("complete",!1);if(void 0!==a.itemImgRetinaSrc&&!0===tdAnimationStack._isHighDensity())a.jqueryObj.attr("src",a.itemImgRetinaSrc).on("load",function(){a.jqueryObj.data("complete",!0)});else a.jqueryObj.attr("src",a.itemSrc).on("load",function(){a.jqueryObj.data("complete",!0)});var c=(new Date).getTime(),d=setInterval(function(){var b=new Date;!0===a.jqueryObj.data("complete")?(clearInterval(d),a.jqueryObj.removeClass(tdAnimationStack._animation_css_class1),
a.jqueryObj.addClass(tdAnimationStack._animation_css_class2)):b.getTime()-c>tdAnimationStack.max_waiting_for_init&&(clearInterval(d),a.jqueryObj.removeClass(tdAnimationStack._animation_css_class1),a.jqueryObj.addClass(tdAnimationStack._animation_css_class2))},100);break;case "css_image":a.jqueryObj.data("complete",!1);tdAnimationStack.log("%c image tag ","background: #3ded97; color: #fff;");if(void 0!==a.itemImgRetinaSrc&&!0===tdAnimationStack._isHighDensity())jQuery("<img/>").attr("src",a.itemImgRetinaSrc).on("load",
function(){jQuery(this).remove();a.jqueryObj.data("complete",!0)});else jQuery("<img/>").attr("src",a.itemSrc).on("load",function(){jQuery(this).remove();a.jqueryObj.data("complete",!0)});var e=(new Date).getTime(),f=setInterval(function(){var b=new Date;!0===a.jqueryObj.data("complete")?(void 0!==a.itemImgRetinaSrc&&!0===tdAnimationStack._isHighDensity()?a.jqueryObj.attr("style",'background-image: url("'+a.itemImgRetinaSrc+'")'):a.jqueryObj.attr("style",'background-image: url("'+a.itemSrc+'")'),
clearInterval(f),a.jqueryObj.removeClass(tdAnimationStack._animation_css_class1),a.jqueryObj.addClass(tdAnimationStack._animation_css_class2)):b.getTime()-e>tdAnimationStack.max_waiting_for_init&&(clearInterval(f),void 0!==a.itemImgRetinaSrc&&!0===tdAnimationStack._isHighDensity()?a.jqueryObj.attr("style",'background-image: url("'+a.itemImgRetinaSrc+'")'):a.jqueryObj.attr("style",'background-image: url("'+a.itemSrc+'")'),a.jqueryObj.removeClass(tdAnimationStack._animation_css_class1),a.jqueryObj.addClass(tdAnimationStack._animation_css_class2))},
100)}},td_events_scroll:function(){tdAnimationStack.compute_items(!0)},td_events_resize:function(){clearInterval(tdAnimationStack._current_interval);tdAnimationStack.reinit()},log:function(a,b){},_isHighDensity:function(){return window.matchMedia&&(window.matchMedia("only screen and (min-resolution: 124dpi), only screen and (min-resolution: 1.3dppx), only screen and (min-resolution: 48.8dpcm)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 1.3), only screen and (-o-min-device-pixel-ratio: 2.6/2), only screen and (min--moz-device-pixel-ratio: 1.3), only screen and (min-device-pixel-ratio: 1.3)").matches)||
window.devicePixelRatio&&1.3<window.devicePixelRatio},_isRetina:function(){return(window.matchMedia&&(window.matchMedia("only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx), only screen and (min-resolution: 75.6dpcm)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min--moz-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2)").matches)||window.devicePixelRatio&&
2<=window.devicePixelRatio)&&/(iPad|iPhone|iPod)/g.test(navigator.userAgent)}}})();"use strict";tdAffix.init({menu_selector:".td-header-menu-wrap",menu_wrap_selector:".td-header-menu-wrap-full",tds_snap_menu:tdUtil.getBackendVar("tds_snap_menu"),tds_snap_menu_logo:tdUtil.getBackendVar("tds_logo_on_sticky"),menu_affix_height:48,menu_affix_height_on_mobile:54});
jQuery(window).on("load",function(){function a(a){tdStickyRow.resetItems();a.each(function(){var a=jQuery(this),b=a.attr("id"),c=new tdStickyRow.item;c.rowUid=b;c.jQueryObj=jQuery("#"+b);a.hasClass("tdc-rist-bottom")&&(c.position="bottom");tdStickyRow.addItem(c)});tdStickyRow.manageStickies()}function b(){var b=jQuery(".tdc-row-is-sticky"),d=!1;b.each(function(){var a=jQuery(this),b=!1;tdStickyRow.items.forEach(function(c){c.rowUid===a.attr("id")&&(b=!0)});b||(d=!0)});if(d)a(b);else if(b.length===
tdStickyRow.items.length){for(var e=!0,f=0;f<b.length;f++)jQuery(b[f]).attr("id")!==tdStickyRow.items[f].rowUid&&(e=!1);e||a(b)}else a(b)}b();window.location!==window.parent.location&&setInterval(function(){jQuery(".tdc-row-is-sticky").length&&b()},1E3)});
jQuery(window).on("load",function(){var a=jQuery(".td-dm-input");a.on("change",function(b){b.target.checked?(jQuery("body").addClass("is_dark"),a.prop("checked",!0)):(jQuery("body").removeClass("is_dark"),a.prop("checked",!1));jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"td_ajax_dark_mode"}})})});
if("enabled"===tdUtil.getBackendVar("tds_smart_sidebar"))jQuery(window).on("load",function(){jQuery(".td-ss-row").each(function(){var a=new tdSmartSidebar.item,c=jQuery(this).children(".td-pb-span8").find(".wpb_wrapper:first"),d=jQuery(this).children(".td-pb-span4").find(".wpb_wrapper:first");0<c.length&&0<d.length&&(a.sidebar_jquery_obj=d,a.content_jquery_obj=c,tdSmartSidebar.add_item(a))});if(0<jQuery(".td-ss-main-content").length&&0<jQuery(".td-ss-main-sidebar").length){var a=new tdSmartSidebar.item;
a.sidebar_jquery_obj=jQuery(".td-ss-main-sidebar");a.content_jquery_obj=jQuery(".td-ss-main-content");tdSmartSidebar.add_item(a)}tdSmartSidebar.td_events_resize()});
jQuery(window).on("load",function(){[{".vc_row":".vc_column"},{".vc_row_inner":".vc_column_inner"}].forEach(function(a){for(var b in a){var c=a[b];jQuery(b).each(function(){var a=[],b;jQuery(this).children(c).each(function(c,d){c=jQuery(d);if(c.hasClass("td-is-sticky"))a.push(c.find(".wpb_wrapper:first"));else if("undefined"===typeof b||b.outerHeight(!0)<c.outerHeight(!0))b=c.find(".wpb_wrapper:first")});a.length&&"undefined"!==typeof b&&a.forEach(function(a){var c=new tdSmartSidebar.item;c.sidebar_jquery_obj=
a;c.content_jquery_obj=b;tdSmartSidebar.add_item(c)})})}});tdSmartSidebar.td_events_resize()});
jQuery(window).on("load",function(){jQuery(".td-subcat-filter").each(function(a,b){a=jQuery(b);b=a.find(".td-subcat-list:first");var c=new tdPullDown.item;c.blockUid=a.parent().parent().data("td-block-uid");c.horizontal_jquery_obj=b;c.vertical_jquery_obj=a.find(".td-subcat-dropdown:first");c.horizontal_element_css_class="td-subcat-item";c.container_jquery_obj=b.closest(".td-block-title-wrap");c.excluded_jquery_elements=[c.container_jquery_obj.find(".td-pulldown-size")];tdPullDown.add_item(c)});jQuery(".td-category-siblings").each(function(a,
b){a=jQuery(b);b=a.find(".td-category:first");var c=new tdPullDown.item;c.blockUid=a.parent().parent().data("td-block-uid");c.horizontal_jquery_obj=b;c.vertical_jquery_obj=a.find(".td-subcat-dropdown:first");c.horizontal_element_css_class="entry-category";c.container_jquery_obj=b.parents(".td-category-siblings:first");tdPullDown.add_item(c)})});
function td_compute_parallax_background(a){a=jQuery(a);var b=Math.round(.2*a.height()),c=-1*b,d=new tdAnimationScroll.item;d.jqueryObj=a;d.add_item_property("move_y",0,100,c,b,"");d.animation_callback=function(){var a=parseFloat(d.computed_item_properties.move_y).toFixed();d.jqueryObj.css({"-webkit-transform":"translate3d(0px,"+a+"px, 0px) scale(1.2)",transform:"translate3d(0px,"+a+"px, 0px) scale(1.2)"});d.redraw=!1;d.td_video_parallax=!0};tdAnimationScroll.add_item(d)}
function td_compute_backstretch_item(a){var b=100*(tdEvents.window_innerHeight-a.offset_top)/(tdEvents.window_innerHeight+a.full_height),c=100*tdEvents.window_innerHeight/(tdEvents.window_innerHeight+a.full_height),d=a.offset_top/4;0==d&&(d=100);var e=d/1.2*(100-b)/(c-b);c=-d/2+.5;a.remove_item_property("move_y");a.add_item_property("move_y",b,100,c,e,"");var f=parseFloat(1+Math.abs(d)/a.full_height).toFixed(2);delete a.animation_callback;a.animation_callback=function(){var b=parseFloat(a.computed_item_properties.move_y).toFixed();
a.jqueryObj.css({left:"50%","-webkit-transform":"translate3d(-50%,"+b+"px, 0px) scale("+f+","+f+")",transform:"translate3d(-50%,"+b+"px, 0px) scale("+f+","+f+")"});a.redraw=!1}}var td_backstretch_items=[];
jQuery(window).ready(function(){jQuery(".td-backstretch").each(function(a,b){jQuery(b).hasClass("not-parallax")||(a=new tdAnimationScroll.item,a.jqueryObj=jQuery(b),a.wrapper_jquery_obj=a.jqueryObj.parent(),tdAnimationScroll.add_item(a),td_backstretch_items.push(a),td_compute_backstretch_item(a))});jQuery(".td-parallax-header").each(function(a,b){var c=new tdAnimationScroll.item;c.jqueryObj=jQuery(b);c.add_item_property("move_y",50,100,0,100,"");c.add_item_property("opacity",50,100,1,0,"");c.animation_callback=
function(){var a=parseFloat(c.computed_item_properties.move_y).toFixed(),b=parseFloat(c.computed_item_properties.opacity);c.jqueryObj.css({"-webkit-transform":"translate3d(0px,"+a+"px, 0px)",transform:"translate3d(0px,"+a+"px, 0px)"});c.jqueryObj.css("transform","translate3d(0px,"+a+"px, 0px)");c.jqueryObj.css("opacity",b);c.redraw=!1};tdAnimationScroll.add_item(c)});tdAnimationScroll.compute_all_items();setTimeout(function(){jQuery(".tdc-video-parallax-wrapper").each(function(a,b){td_compute_parallax_background(b)});
tdAnimationScroll.compute_all_items()},300);tdAnimationStack.ready_init()});var tdAjaxLoop={};
(function(){tdAjaxLoop={loopState:{sidebarPosition:"",moduleId:1,currentPage:1,max_num_pages:0,atts:{},ajax_pagination_infinite_stop:0,server_reply_html_data:""},init:function(){jQuery(".td-ajax-loop-infinite").each(function(){var a=new tdInfiniteLoader.item;a.jqueryObj=jQuery(this);a.uid="tdAjaxLoop";a.isVisibleCallback=function(){0!==tdAjaxLoop.loopState.ajax_pagination_infinite_stop&&tdAjaxLoop.loopState.currentPage>=tdAjaxLoop.loopState.ajax_pagination_infinite_stop&&tdAjaxLoop.loopState.currentPage+
1<tdAjaxLoop.loopState.max_num_pages?jQuery(".td-load-more-infinite-wrap").css("display","block").css("visibility","visible"):tdAjaxLoop.infiniteNextPage(!1)};tdInfiniteLoader.addItem(a)});jQuery(".td-load-more-infinite-wrap").on("click",function(a){a.preventDefault();jQuery(".td-load-more-infinite-wrap").css("visibility","hidden");tdAjaxLoop.infiniteNextPage(!0)})},infiniteNextPage:function(a){tdAjaxLoop.loopState.currentPage++;tdAjaxLoop.loopState.server_reply_html_data="";tdAjaxLoop.loopState.currentPage>
tdAjaxLoop.loopState.max_num_pages||(jQuery(".td-ss-main-content").append('<div class="td-loader-gif td-loader-infinite td-loader-animation-start"></div>'),tdLoadingBox.init(tds_theme_color_site_wide,45),setTimeout(function(){jQuery(".td-loader-gif").removeClass("td-loader-animation-start").addClass("td-loader-animation-mid")},50),jQuery.ajax({type:"POST",url:td_ajax_url,cache:!0,data:{action:"td_ajax_loop",loopState:tdAjaxLoop.loopState},success:function(b,c,d){tdAjaxLoop._processAjaxRequest(b,a)},
error:function(a,c,d){}}))},_processAjaxRequest:function(a,b){jQuery(".td-loader-gif").remove();tdLoadingBox.stop();a=jQuery.parseJSON(a);""===a.server_reply_html_data?jQuery(".td-load-more-infinite-wrap").css("visibility","hidden"):(jQuery(".td-ajax-loop-infinite").before(a.server_reply_html_data),parseInt(a.currentPage)>=parseInt(a.max_num_pages)?jQuery(".td-load-more-infinite-wrap").css("visibility","hidden"):!0===b&&jQuery(".td-load-more-infinite-wrap").css("visibility","visible"),setTimeout(function(){tdAnimationStack.check_for_new_items(".td-main-content .td-animation-stack",
tdAnimationStack.SORTED_METHOD.sort_left_to_right,!0,!1)},200),!0!==b&&(setTimeout(function(){tdInfiniteLoader.computeTopDistances();tdInfiniteLoader.enable_is_visible_callback("tdAjaxLoop")},500),setTimeout(function(){tdInfiniteLoader.computeTopDistances()},1E3),setTimeout(function(){tdInfiniteLoader.computeTopDistances()},1500)))}}})();var tdWeather={};
(function(){tdWeather={_icons:{"01d":"clear-sky-d","02d":"few-clouds-d","03d":"scattered-clouds-d","04d":"broken-clouds-d","09d":"shower-rain-d","10d":"rain-d","11d":"thunderstorm-d","13d":"snow-d","50d":"mist-d","01n":"clear-sky-n","02n":"few-clouds-n","03n":"scattered-clouds-n","04n":"broken-clouds-n","09n":"shower-rain-n","10n":"rain-n","11n":"thunderstorm-n","13n":"snow-n","50n":"mist-n"},_currentRequestInProgress:!1,_currentItem:"",_currentLatitude:0,_currentLongitude:0,_currentPositionCacheKey:"",
_currentLocationCacheKey:"",_currentLocation:"",items:[],_is_location_open:!1,init:function(){jQuery(".td-icons-location").on("click",function(){!0!==tdWeather._currentRequestInProgress&&(tdWeather._currentRequestInProgress=!0,tdWeather._currentItem=tdWeather._getItemByBlockID(jQuery(this).data("block-uid")),navigator.geolocation&&navigator.geolocation.getCurrentPosition(tdWeather._updateLocationCallback,tdWeather._displayLocationApiError,{enableHighAccuracy:!0,timeout:1E7,maximumAge:6E5}),tdWeather._currentRequestInProgress=
!1)});jQuery(".td-weather-now").on("click",function(){!0!==tdWeather._currentRequestInProgress&&(tdWeather._currentRequestInProgress=!0,tdWeather._currentItem=tdWeather._getItemByBlockID(jQuery(this).data("block-uid")),tdWeather._currentItem.current_unit=1===tdWeather._currentItem.current_unit?0:1,tdWeather._renderCurrentItem())});jQuery(".td-manual-location-form").submit(function(a){a.preventDefault();!0!==tdWeather._currentRequestInProgress&&(tdWeather._currentRequestInProgress=!0,tdWeather._currentItem=
tdWeather._getItemByBlockID(jQuery(this).data("block-uid")),tdWeather._currentLocation=jQuery("input#"+jQuery(this).data("block-uid")).val(),tdWeather._updateLocationCallback2(tdWeather._currentLocation),tdWeather._currentRequestInProgress=!1,tdWeather._hide_manual_location_form())});jQuery(document).on("click",function(a){!0===tdWeather._is_location_open&&!0!==jQuery(a.target).hasClass("td-location-set-input")&&!0!==jQuery(a.target).hasClass("td-location-set-button")&&tdWeather._hide_manual_location_form()})},
addItem:function(a){tdWeather.items.push(a)},_updateLocationCallback:function(a){tdWeather._currentLatitude=a.coords.latitude;tdWeather._currentLongitude=a.coords.longitude;tdWeather._currentPositionCacheKey=a.coords.latitude+"_"+a.coords.longitude;tdLocalCache.exist(tdWeather._currentPositionCacheKey+"_today")?tdWeather._owmGetTodayDataCallback(tdLocalCache.get(tdWeather._currentPositionCacheKey+"_today")):jQuery.ajax({dataType:"jsonp",url:"https://api.openweathermap.org/data/2.5/weather?lat="+tdWeather._currentLatitude+
"&lon="+tdWeather._currentLongitude+"&units=metric&lang="+tdWeather._currentItem.api_language+"&appid="+tdWeather._currentItem.api_key,success:tdWeather._owmGetTodayDataCallback,cache:!0})},_owmGetTodayDataCallback:function(a){tdLocalCache.set(tdWeather._currentPositionCacheKey+"_today",a);tdWeather._currentItem.api_location=a.name;tdWeather._currentItem.today_clouds=tdUtil.round(a.clouds.all);tdWeather._currentItem.today_humidity=tdUtil.round(a.main.humidity);tdWeather._currentItem.today_icon=tdWeather._icons[a.weather[0].icon];
tdWeather._currentItem.today_icon_text=a.weather[0].description;tdWeather._currentItem.today_max[0]=tdUtil.round(a.main.temp_max,1);tdWeather._currentItem.today_max[1]=tdWeather._celsiusToFahrenheit(a.main.temp_max);tdWeather._currentItem.today_min[0]=tdUtil.round(a.main.temp_min,1);tdWeather._currentItem.today_min[1]=tdWeather._celsiusToFahrenheit(a.main.temp_min);tdWeather._currentItem.today_temp[0]=tdUtil.round(a.main.temp,1);tdWeather._currentItem.today_temp[1]=tdWeather._celsiusToFahrenheit(a.main.temp);
tdWeather._currentItem.today_wind_speed[0]=tdUtil.round(a.wind.speed,1);tdWeather._currentItem.today_wind_speed[1]=tdWeather._kmphToMph(a.wind.speed);tdLocalCache.exist(tdWeather._currentPositionCacheKey)?tdWeather._owmGetFiveDaysData(tdLocalCache.get(tdWeather._currentPositionCacheKey)):jQuery.ajax({dataType:"jsonp",url:"https://api.openweathermap.org/data/2.5/forecast?lat="+tdWeather._currentLatitude+"&lon="+tdWeather._currentLongitude+"&units=metric&lang="+tdWeather._currentItem.api_language+"&appid="+
tdWeather._currentItem.api_key,success:tdWeather._owmGetFiveDaysData,cache:!0})},_owmGetFiveDaysData:function(a){tdLocalCache.set(tdWeather._currentPositionCacheKey,a);for(var b=0;b<tdWeather._currentItem.forecast.length&&5!==b;b++){var c=tdWeather._currentItem.forecast[b];c.day_temp[0]=tdUtil.round(a.list[c.owm_day_index].main.temp_max);c.day_temp[1]=tdWeather._celsiusToFahrenheit(c.day_temp[0])}tdWeather._renderCurrentItem()},_renderCurrentItem:function(){var a=jQuery("#"+tdWeather._currentItem.block_uid),
b=tdWeather._currentLatitude,c=tdWeather._currentLongitude,d=tdWeather._currentLocation;a.find(".td-weather-city").html(tdWeather._currentItem.api_location);""===d&&0===b&&0===c&&a.find(".td-weather-city").html(tdWeather._currentItem.api_location);a.find(".td-weather-condition").html(tdWeather._currentItem.today_icon_text);b=a.find(".td-w-today-icon");b.removeClass();b.addClass("td-w-today-icon");b.addClass(tdWeather._currentItem.today_icon);b=tdWeather._currentItem.current_unit;c="kmh";d="C";1===
b&&(c="mph",d="F");a.find(".td-big-degrees").html(tdWeather._currentItem.today_temp[b]);a.find(".td-weather-unit").html(d);a.find(".td-w-high-temp").html(tdWeather._currentItem.today_max[b]);a.find(".td-w-low-temp").html(tdWeather._currentItem.today_min[b]);a.find(".td-w-today-humidity").html(tdWeather._currentItem.today_humidity+"%");a.find(".td-w-today-wind-speed").html(tdWeather._currentItem.today_wind_speed[b]+c);a.find(".td-w-today-clouds").html(tdWeather._currentItem.today_clouds+"%");for(c=
0;c<tdWeather._currentItem.forecast.length;c++)a.find(".td-day-"+c).html(tdWeather._currentItem.forecast[c].day_name),a.find(".td-degrees-"+c).html(tdWeather._currentItem.forecast[c].day_temp[b]);tdWeather._currentRequestInProgress=!1},_getItemByBlockID:function(a){for(var b=0;b<tdWeather.items.length;b++)if(tdWeather.items[b].block_uid===a)return tdWeather.items[b];return!1},_displayLocationApiError:function(a){if(1===a.code){if(tdDetect.isAndroid)tdWeather._show_manual_location_form();else if(tdDetect.isIos){alert("Please enable Location services for Safari Websites and reload the page. \n ---------------------- \nSettings > Privacy > Location Services");
return}tdWeather._show_manual_location_form()}tdWeather._show_manual_location_form()},_celsiusToFahrenheit:function(a){a=9*a/5+32;var b=tdUtil.round(a,1);return 99.9<b?tdUtil.round(a):b},_kmphToMph:function(a){return tdUtil.round(.621371192*a,1)},_show_manual_location_form:function(){tdWeather._currentItem=tdWeather._getItemByBlockID(tdWeather._currentItem.block_uid);jQuery("#"+tdWeather._currentItem.block_uid).find(".td-weather-set-location").addClass("td-show-location");jQuery(".td-manual-location-form input").focus();
tdWeather._is_location_open=!0},_hide_manual_location_form:function(){jQuery("#"+tdWeather._currentItem.block_uid).find(".td-weather-set-location").removeClass("td-show-location");tdWeather._is_location_open=!1},_updateLocationCallback2:function(a){tdWeather._currentLocationCacheKey=a;tdLocalCache.exist(tdWeather._currentLocationCacheKey+"_today")?tdWeather._owmGetTodayDataCallback2(tdLocalCache.get(tdWeather._currentLocationCacheKey+"_today")):(a="https://api.openweathermap.org/data/2.5/weather?q="+
encodeURIComponent(a)+"&lang="+tdWeather._currentItem.api_language+"&units=metric&appid="+tdWeather._currentItem.api_key,jQuery.ajax({dataType:"jsonp",url:a,success:tdWeather._owmGetTodayDataCallback2,cache:!0}))},_owmGetTodayDataCallback2:function(a){tdLocalCache.set(tdWeather._currentLocationCacheKey+"_today",a);tdWeather._currentItem.api_location=a.name;tdWeather._currentItem.today_clouds=tdUtil.round(a.clouds.all);tdWeather._currentItem.today_humidity=tdUtil.round(a.main.humidity);tdWeather._currentItem.today_icon=
tdWeather._icons[a.weather[0].icon];tdWeather._currentItem.today_icon_text=a.weather[0].description;tdWeather._currentItem.today_max[0]=tdUtil.round(a.main.temp_max,1);tdWeather._currentItem.today_max[1]=tdWeather._celsiusToFahrenheit(a.main.temp_max);tdWeather._currentItem.today_min[0]=tdUtil.round(a.main.temp_min,1);tdWeather._currentItem.today_min[1]=tdWeather._celsiusToFahrenheit(a.main.temp_min);tdWeather._currentItem.today_temp[0]=tdUtil.round(a.main.temp,1);tdWeather._currentItem.today_temp[1]=
tdWeather._celsiusToFahrenheit(a.main.temp);tdWeather._currentItem.today_wind_speed[0]=tdUtil.round(a.wind.speed,1);tdWeather._currentItem.today_wind_speed[1]=tdWeather._kmphToMph(a.wind.speed);tdLocalCache.exist(tdWeather._currentLocationCacheKey)?tdWeather._owmGetFiveDaysData2(tdLocalCache.get(tdWeather._currentLocationCacheKey)):jQuery.ajax({dataType:"jsonp",url:"https://api.openweathermap.org/data/2.5/forecast?q="+tdWeather._currentItem.api_location+"&lang="+tdWeather._currentItem.api_language+
"&units=metric&cnt=35&appid="+tdWeather._currentItem.api_key,success:tdWeather._owmGetFiveDaysData2,cache:!0})},_owmGetFiveDaysData2:function(a){tdLocalCache.set(tdWeather._currentLocationCacheKey,a);for(var b={},c=!0,d=Object.prototype.hasOwnProperty,e=0;e<a.list.length;e++)if(d.call(a.list[e],"dt")){c=a.list[e].dt;var f=td_date_i18n("Ymd",c);!1===d.call(b,f)?b[f]={timestamp:c,day_name:td_date_i18n("D",c),day_temp:[tdUtil.round(a.list[e].main.temp_max),tdUtil.round(tdWeather._celsiusToFahrenheit(a.list[e].main.temp_max))],
owm_day_index:e}:b[f].day_temp[0]<tdUtil.round(a.list[e].main.temp_max)&&(b[f].day_temp[0]=tdUtil.round(a.list[e].main.temp_max),b[f].day_temp[1]=tdUtil.round(tdWeather._celsiusToFahrenheit(a.list[e].main.temp_max)));c=!1}if(!1===c){tdWeather._currentItem.forecast=[];for(var h in b){if(5===tdWeather._currentItem.forecast.length)break;tdWeather._currentItem.forecast[tdWeather._currentItem.forecast.length]=b[h]}}tdWeather._renderCurrentItem()}}})();tdWeather.init();
jQuery(window).on("load",function(){jQuery("body").addClass("td-js-loaded");window.tdAnimationStack.init()});
jQuery(window).ready(function(){jQuery(".td_smart_list_1 a, .td_smart_list_3 a").on("click",function(a){if(a.target===a.currentTarget){var b=jQuery(this).attr("target"),c=jQuery(this)[0].hasAttribute("download"),d=jQuery(this).attr("href");c||("_blank"==b?(a.preventDefault(),window.open(d)):window.location.href!==d&&tdUtil.isValidUrl(d)&&(window.location.href=d))}});jQuery(".td_block_trending_now").each(function(){var a=new tdTrendingNow.item,b=jQuery(this).find(".td-trending-now-wrapper").data("start"),
c=0;a.blockUid=jQuery(this).data("td-block-uid");"manual"!==b&&(a.trendingNowAutostart=b);jQuery("#"+a.blockUid+" .td-trending-now-post").each(function(){a.trendingNowPosts[c]=jQuery(this);c++});"undefined"===typeof a.trendingNowPosts||1>a.trendingNowPosts.length||tdTrendingNow.addItem(a)});jQuery(".td-trending-now-nav-left").on("click",function(a){a.preventDefault();a=jQuery(this).data("block-id");tdTrendingNow.itemPrev(a)});jQuery(".td-trending-now-nav-right").on("click",function(a){a.preventDefault();
a=jQuery(this).data("block-id");tdTrendingNow.itemNext(a)})});var tdAnimationSprite={};
(function(){tdAnimationSprite={items:[],isInRequestAnimation:!1,item:function(){this.blockUid="";this.paused=this._isInitialized=!1;this.automatStart=!0;this.properties=[];this.readyToAnimate=!1;this.nextFrame=1;this.animationSpriteClass=this.jqueryObj=this.interval=void 0;this._currentDirection="right";this._executedLoops=0;this.loops=this.reverse=this.velocity=this.frameWidth=this.frames=this._prop_background_position=void 0;this.animate=function(){this._prop_background_position=-1*this.nextFrame*
this.frameWidth+"px 0";this.readyToAnimate=!0;!0===this.reverse?"right"===this._currentDirection?this.nextFrame===this.frames-1?(this._currentDirection="left",this.nextFrame--):this.nextFrame++:"left"===this._currentDirection&&(0===this.nextFrame?(this._currentDirection="right",this.nextFrame++,this._executedLoops++,0!==this.loops&&this._executedLoops===this.loops&&clearInterval(this.interval)):this.nextFrame--):this.nextFrame===this.frames-1?(this._executedLoops++,0!==this.loops&&this._executedLoops===
this.loops&&clearInterval(this.interval),this.nextFrame=0):this.nextFrame++;!1===tdAnimationSprite.isInRequestAnimation&&(tdAnimationSprite.isInRequestAnimation=!0,window.requestAnimationFrame(tdAnimationSprite.animateAllItems))}},_initializeItem:function(a){if(!0!==a._isInitialized){var b=/(td_animation_sprite\S*)/gi;"undefined"!==typeof a.jqueryObj.attr("class")&&(b=a.jqueryObj.attr("class").match(b),null!==b&&(a.offsetTop=a.jqueryObj.offset().top,a.offsetBottomToTop=a.offsetTop+a.jqueryObj.height(),
a.animationSpriteClass=b[b.length-1],b=a.animationSpriteClass.split("-"),7===b.length&&(a.frames=parseInt(b[1]),a.frameWidth=parseInt(b[2]),a.velocity=parseInt(b[3]),a.loops=parseInt(b[4]),1===parseInt(b[5])?a.reverse=!0:a.reverse=!1,1===parseInt(b[6])?a.automatStart=!0:a.automatStart=!1,a._isInitialized=!0)))}},addItem:function(a){a.constructor===tdAnimationSprite.item&&(tdAnimationSprite.items.push(a),tdAnimationSprite._initializeItem(a),!0===a.automatStart&&tdAnimationSprite.computeItem(a))},deleteItem:function(a){for(var b=
0;b<tdAnimationSprite.items.length;b++)if(tdAnimationSprite.items[b].blockUid===a)return tdAnimationSprite.items.splice(b,1),!0;return!1},computeItem:function(a){1<a.frames&&void 0===a.interval&&(a.interval=setInterval(function(){!1===a.paused&&a.animate()},a.velocity))},recomputeItem:function(a){clearInterval(a.interval);a.interval=void 0;a._isInitialized=!1;tdAnimationSprite._initializeItem(a);tdAnimationSprite.computeItem(a)},stopItem:function(a){a.constructor===tdAnimationSprite.item&&!0===a._isInitialized&&
(clearInterval(a.interval),a.interval=void 0)},startItem:function(a){a.constructor===tdAnimationSprite.item&&!0===a._isInitialized&&(a.paused=!1)},pauseItem:function(a){a.constructor===tdAnimationSprite.item&&!0===a._isInitialized&&(a.paused=!0)},computeAllItems:function(){for(var a=0;a<tdAnimationSprite.items.length;a++)tdAnimationSprite.computeItem(tdAnimationSprite.items[a])},recomputeAllItems:function(){for(var a=0;a<tdAnimationSprite.items.length;a++)tdAnimationSprite.recomputeItem(tdAnimationSprite.items[a])},
stopAllItems:function(){for(var a=0;a<tdAnimationSprite.items.length;a++)tdAnimationSprite.stopItem(tdAnimationSprite.items[a])},pauseAllItems:function(){for(var a=0;a<tdAnimationSprite.items.length;a++)tdAnimationSprite.pauseItem(tdAnimationSprite.items[a])},startAllItems:function(){for(var a=0;a<tdAnimationSprite.items.length;a++)tdAnimationSprite.startItem(tdAnimationSprite.items[a])},animateAllItems:function(){for(var a,b=0;b<tdAnimationSprite.items.length;b++)a=tdAnimationSprite.items[b],!0===
a.readyToAnimate&&(a.jqueryObj.css("background-position",a._prop_background_position),a.readyToAnimate=!1);tdAnimationSprite.isInRequestAnimation=!1}};for(var a=jQuery('span[class^="td_animation_sprite"]'),b=0;b<a.length;b++){var c=new tdAnimationSprite.item;c.jqueryObj=jQuery(a[b]);c.blockUid=c.jqueryObj.data("td-block-uid");tdAnimationSprite.addItem(c)}})();
function td_date_i18n(a,b){var c,d=/\\?(.?)/gi,e=function(a,b){return h[a]?h[a]():b},f=function(a,b){for(a=String(a);a.length<b;)a="0"+a;return a};var h={d:function(){return f(h.j(),2)},D:function(){return tdDateNamesI18n.day_names_short[h.w()]},j:function(){return c.getDate()},l:function(){return tdDateNamesI18n.day_names[h.w()]},N:function(){return h.w()||7},S:function(){var a=h.j(),b=a%10;3>=b&&1==parseInt(a%100/10,10)&&(b=0);return["st","nd","rd"][b-1]||"th"},w:function(){return c.getDay()},z:function(){var a=
new Date(h.Y(),h.n()-1,h.j()),b=new Date(h.Y(),0,1);return Math.round((a-b)/864E5)},W:function(){var a=new Date(h.Y(),h.n()-1,h.j()-h.N()+3),b=new Date(a.getFullYear(),0,4);return f(1+Math.round((a-b)/864E5/7),2)},F:function(){return tdDateNamesI18n.month_names[h.n()-1]},m:function(){return f(h.n(),2)},M:function(){return tdDateNamesI18n.month_names_short[h.n()-1]},n:function(){return c.getMonth()+1},t:function(){return(new Date(h.Y(),h.n(),0)).getDate()},L:function(){var a=h.Y();return 0===a%4&0!==
a%100|0===a%400},o:function(){var a=h.n(),b=h.W();return h.Y()+(12===a&&9>b?1:1===a&&9<b?-1:0)},Y:function(){return c.getFullYear()},y:function(){return h.Y().toString().slice(-2)},a:function(){return 11<c.getHours()?"pm":"am"},A:function(){return h.a().toUpperCase()},B:function(){var a=3600*c.getUTCHours(),b=60*c.getUTCMinutes(),d=c.getUTCSeconds();return f(Math.floor((a+b+d+3600)/86.4)%1E3,3)},g:function(){return h.G()%12||12},G:function(){return c.getHours()},h:function(){return f(h.g(),2)},H:function(){return f(h.G(),
2)},i:function(){return f(c.getMinutes(),2)},s:function(){return f(c.getSeconds(),2)},u:function(){return f(1E3*c.getMilliseconds(),6)},e:function(){console.log("Not supported (see source code of date() for timezone on how to add support)")},I:function(){var a=new Date(h.Y(),0),b=Date.UTC(h.Y(),0),c=new Date(h.Y(),6),d=Date.UTC(h.Y(),6);return a-b!==c-d?1:0},O:function(){var a=c.getTimezoneOffset(),b=Math.abs(a);return(0<a?"-":"+")+f(100*Math.floor(b/60)+b%60,4)},P:function(){var a=h.O();return a.substr(0,
3)+":"+a.substr(3,2)},T:function(){return"UTC"},Z:function(){return 60*-c.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(d,e)},r:function(){return"D, d M Y H:i:s O".replace(d,e)},U:function(){return c/1E3|0}};this.date=function(a,b){c=void 0===b?new Date:b instanceof Date?new Date(b):new Date(1E3*b);return a.replace(d,e)};return this.date(a,b)}var tdSocialSharing={};
(function(){tdSocialSharing={init:function(){jQuery(".td-social-sharing-button").on("click",function(a){var b=jQuery(this),c="";if(!b.hasClass("td-social-mail")&&!b.hasClass("td-social-share-text"))if(a.preventDefault(),b.hasClass("td-social-expand-tabs")){c=b.data("block-uid");a=jQuery("#"+c);var d=b.find(".td-social-expand-tabs-icon");if(a.hasClass("td-social-show-all")){b.detach().appendTo(a.find(".td-social-sharing-hidden:first"));var e=a.find(".td-post-sharing-visible:first"),f=new tdPullDown.item;
f.blockUid=a.attr("id");f.horizontal_jquery_obj=e;f.vertical_jquery_obj=a.find(".td-social-sharing-hidden:first");f.horizontal_element_css_class="td-social-sharing-button-js";f.container_jquery_obj=e.parents(".td-post-sharing:first");tdPullDown.add_item(f);jQuery("#"+c).removeClass("td-social-show-all");d.removeClass("td-icon-minus");d.addClass("td-icon-plus")}else tdPullDown.unloadItem(c),jQuery("#"+c).addClass("td-social-show-all"),d.removeClass("td-icon-plus"),d.addClass("td-icon-minus"),b.detach().appendTo(a.find(".td-post-sharing-visible:first"))}else if(b.hasClass("td-social-print"))window.print();
else if(b.hasClass("td-social-copy_url")){if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(b.attr("href"));else{var h=jQuery('<input type="text" style="position:fixed;top:-999999px;left:-999999px" value="'+b.attr("href")+'" />');jQuery("body").append(h);h.focus();h.select();new Promise(function(a,b){document.execCommand("copy")?a():b();h.remove()})}b.addClass("td-social-copy_url-disabled");b.addClass("td-social-copy_url-copied");setTimeout(function(){b.removeClass("td-social-copy_url-copied");
setTimeout(function(){b.removeClass("td-social-copy_url-disabled")},200)},1E3)}else a.preventDefault(),c=jQuery(window).width()/2-450,a=jQuery(window).height()/2-300,window.open(b.attr("href"),"mywin","left="+c+",top="+a+",width=900,height=600,toolbar=0")});setTimeout(function(){jQuery(".td-post-sharing").each(function(a,b){a=jQuery(this);b=jQuery(b);var c=b.find(".td-post-sharing-visible:first"),d=new tdPullDown.item;d.blockUid=b.attr("id");d.horizontal_jquery_obj=c;d.vertical_jquery_obj=b.find(".td-social-sharing-hidden:first");
d.horizontal_element_css_class="td-social-sharing-button-js";a.hasClass("tdb-block")?d.container_jquery_obj=c.parents(".wpb_wrapper:first"):d.container_jquery_obj=c.parents(".td-post-sharing:first");tdPullDown.add_item(d)})},50)}};tdSocialSharing.init()})();"use strict";jQuery().ready(function(){tdModalImage()});
function tdModalImage(){jQuery("figure.wp-caption").each(function(){var a=jQuery(this).children("figcaption").html();jQuery(this).children("a").data("caption",a)});jQuery("figure.wp-block-image, .wp-block-image figure").each(function(){var a=jQuery(this),b=a.children("figcaption").html();a=a.attr("class");var c="";-1<a.indexOf("td-caption-align-")&&jQuery(a.split(" ")).each(function(){-1<this.indexOf("td-caption-align-")&&(c=String(this))});jQuery(this).parents("a.td-modal-image").data({caption:b,
caption_align:c})});jQuery(".td-modal-image").each(function(){var a=jQuery(this),b=a.parent();a.find(".wp-block-image").length||(b.addClass("td-modal-image"),a.removeClass("td-modal-image"))});jQuery("article").magnificPopup({type:"image",delegate:".td-modal-image",gallery:{enabled:!0,tPrev:tdUtil.getBackendVar("td_magnific_popup_translation_tPrev"),tNext:tdUtil.getBackendVar("td_magnific_popup_translation_tNext"),tCounter:tdUtil.getBackendVar("td_magnific_popup_translation_tCounter")},ajax:{tError:tdUtil.getBackendVar("td_magnific_popup_translation_ajax_tError")},
image:{tError:tdUtil.getBackendVar("td_magnific_popup_translation_image_tError"),titleSrc:function(a){a=jQuery(a.el).data("caption");return"undefined"!==typeof a?a:""}},zoom:{enabled:!0,duration:300,opener:function(a){return a.find("img")}},callbacks:{beforeOpen:function(){var a=jQuery.magnificPopup.instance.wrap[0].ownerDocument;a=a.defaultView||a.parentWindow;a!==a.parent&&jQuery(".td-header-mobile-wrap, .td-header-mobile-sticky-wrap, .td-header-desktop-wrap, .td-header-desktop-sticky-wrap, .tdc-header-wrap",
a.top.document).css({visibility:"hidden"})},open:function(){var a=jQuery.magnificPopup.instance.wrap.closest("html"),b=jQuery.magnificPopup.instance.wrap[0].ownerDocument;b=b.defaultView||b.parentWindow;if(b!==b.parent){b=b.top;var c=jQuery(b);a=jQuery("#"+a.attr("id"),b.document.body);if(a.length){var d=!1;jQuery("html",b.document).scrollTop()<a.offset().top&&(d=!0,jQuery("html",b.document).scrollTop(a.offset().top));a={height:c.height()+(tdDetect.isMobileDevice?100:0),top:d?0:c.scrollTop()-a.offset().top,
overflow:"hidden"};jQuery.magnificPopup.instance.wrap.css(a);jQuery.magnificPopup.instance.bgOverlay.css(a);jQuery("html",b.document).css({overflow:"hidden"})}}b=jQuery(this.currItem.el).data("caption_align");if("undefined"!==typeof b)return jQuery(".mfp-figure").addClass(b),b},imageLoadComplete:function(){var a=jQuery.magnificPopup.instance.wrap.closest("html"),b=jQuery.magnificPopup.instance.wrap[0].ownerDocument;b=b.defaultView||b.parentWindow;if(b!==b.parent){b=b.top;var c=jQuery(b);jQuery("#"+
a.attr("id"),b.document.body).length&&jQuery(".mfp-img",a).css({"max-height":c.height(),visibility:""})}},change:function(a){window.tdModalImageLastEl=a.el;tdUtil.scrollIntoView(a.el)},beforeClose:function(){tdAffix.allow_scroll=!1;tdUtil.scrollIntoView(window.tdModalImageLastEl);var a=setInterval(function(){tdIsScrollingAnimation||(clearInterval(a),setTimeout(function(){tdAffix.allow_scroll=!0},100))},100)},close:function(){var a=jQuery.magnificPopup.instance.wrap.closest("html"),b=jQuery.magnificPopup.instance.wrap[0].ownerDocument;
b=b.defaultView||b.parentWindow;b!==b.parent&&(b=b.top,jQuery("#"+a.attr("id"),b.document.body).length&&jQuery("html",b.document).css({overflow:""}))},afterClose:function(){var a=jQuery.magnificPopup.instance.wrap[0].ownerDocument;a=a.defaultView||a.parentWindow;a!==a.parent&&jQuery(".td-header-mobile-wrap, .td-header-mobile-sticky-wrap, .td-header-desktop-wrap, .td-header-desktop-sticky-wrap, .tdc-header-wrap",a.top.document).css({visibility:""})}}});jQuery(".td-main-content-wrap, .td-header-template-wrap,.td-footer-template-wrap").magnificPopup({type:"image",
delegate:".td-modal-image",gallery:{enabled:!0,tPrev:tdUtil.getBackendVar("td_magnific_popup_translation_tPrev"),tNext:tdUtil.getBackendVar("td_magnific_popup_translation_tNext"),tCounter:tdUtil.getBackendVar("td_magnific_popup_translation_tCounter")},ajax:{tError:tdUtil.getBackendVar("td_magnific_popup_translation_ajax_tError")},image:{tError:tdUtil.getBackendVar("td_magnific_popup_translation_image_tError"),titleSrc:function(a){a=jQuery(a.el).data("caption");return"undefined"!==typeof a?a:""}},
zoom:{enabled:!0,duration:300,opener:function(a){return a.find("img")}},callbacks:{change:function(a){window.tdModalImageLastEl=a.el;tdUtil.scrollIntoView(a.el)},beforeClose:function(){tdAffix.allow_scroll=!1;tdUtil.scrollIntoView(window.tdModalImageLastEl);var a=setInterval(function(){tdIsScrollingAnimation||(clearInterval(a),setTimeout(function(){tdAffix.allow_scroll=!0},100))},100)}}});"undefined"===typeof jetpackCarouselStrings&&(jQuery("figure.gallery-item").each(function(){var a=jQuery(this).children("figcaption").html();
jQuery(this).find("a").data("caption",a)}),jQuery(".blocks-gallery-item figure").each(function(){var a=jQuery(this).children("figcaption").html();jQuery(this).find("a").data("caption",a)}),jQuery(".tiled-gallery").magnificPopup({type:"image",delegate:"a",gallery:{enabled:!0,tPrev:tdUtil.getBackendVar("td_magnific_popup_translation_tPrev"),tNext:tdUtil.getBackendVar("td_magnific_popup_translation_tNext"),tCounter:tdUtil.getBackendVar("td_magnific_popup_translation_tCounter")},ajax:{tError:tdUtil.getBackendVar("td_magnific_popup_translation_ajax_tError")},
image:{tError:tdUtil.getBackendVar("td_magnific_popup_translation_image_tError"),titleSrc:function(a){a=jQuery(a.el).parent().find(".tiled-gallery-caption").text();return"undefined"!==typeof a?a:""}},zoom:{enabled:!0,duration:300,opener:function(a){return a.find("img")}},callbacks:{change:function(a){window.tdModalImageLastEl=a.el;tdUtil.scrollIntoView(a.el)},beforeClose:function(){tdUtil.scrollIntoView(window.tdModalImageLastEl)}}}),jQuery(".gallery").magnificPopup({type:"image",delegate:".gallery-icon > a",
gallery:{enabled:!0,tPrev:tdUtil.getBackendVar("td_magnific_popup_translation_tPrev"),tNext:tdUtil.getBackendVar("td_magnific_popup_translation_tNext"),tCounter:tdUtil.getBackendVar("td_magnific_popup_translation_tCounter")},ajax:{tError:tdUtil.getBackendVar("td_magnific_popup_translation_ajax_tError")},image:{tError:tdUtil.getBackendVar("td_magnific_popup_translation_image_tError"),titleSrc:function(a){a=jQuery(a.el).data("caption");return"undefined"!==typeof a?a:""}},zoom:{enabled:!0,duration:300,
opener:function(a){return a.find("img")}},callbacks:{beforeOpen:function(){var a=jQuery.magnificPopup.instance.wrap[0].ownerDocument;a=a.defaultView||a.parentWindow;a!==a.parent&&jQuery(".td-header-mobile-wrap, .td-header-mobile-sticky-wrap, .td-header-desktop-wrap, .td-header-desktop-sticky-wrap, .tdc-header-wrap",a.top.document).css({visibility:"hidden"})},open:function(){var a=jQuery.magnificPopup.instance.wrap.closest("html"),b=jQuery.magnificPopup.instance.wrap[0].ownerDocument;b=b.defaultView||
b.parentWindow;if(b!==b.parent){b=b.top;var c=jQuery(b);a=jQuery("#"+a.attr("id"),b.document.body);if(a.length){var d=!1;jQuery("html",b.document).scrollTop()<a.offset().top&&(d=!0,jQuery("html",b.document).scrollTop(a.offset().top));a={height:c.height()+(tdDetect.isMobileDevice?100:0),top:d?0:c.scrollTop()-a.offset().top,overflow:"hidden"};jQuery.magnificPopup.instance.wrap.css(a);jQuery.magnificPopup.instance.bgOverlay.css(a);jQuery("html",b.document).css({overflow:"hidden"})}}},imageLoadComplete:function(){var a=
jQuery.magnificPopup.instance.wrap.closest("html"),b=jQuery.magnificPopup.instance.wrap[0].ownerDocument;b=b.defaultView||b.parentWindow;if(b!==b.parent){b=b.top;var c=jQuery(b);jQuery("#"+a.attr("id"),b.document.body).length&&jQuery(".mfp-img",a).css({"max-height":c.height(),visibility:""})}},change:function(a){window.tdModalImageLastEl=a.el;tdUtil.scrollIntoView(a.el)},beforeClose:function(){tdUtil.scrollIntoView(window.tdModalImageLastEl)},close:function(){var a=jQuery.magnificPopup.instance.wrap.closest("html"),
b=jQuery.magnificPopup.instance.wrap[0].ownerDocument;b=b.defaultView||b.parentWindow;b!==b.parent&&(b=b.top,jQuery("#"+a.attr("id"),b.document.body).length&&jQuery("html",b.document).css({overflow:""}))},afterClose:function(){var a=jQuery.magnificPopup.instance.wrap[0].ownerDocument;a=a.defaultView||a.parentWindow;a!==a.parent&&jQuery(".td-header-mobile-wrap, .td-header-mobile-sticky-wrap, .td-header-desktop-wrap, .td-header-desktop-sticky-wrap, .tdc-header-wrap",a.top.document).css({visibility:""})}}}))}
var tdAjaxVideoModal={};jQuery().ready(function(){tdAjaxVideoModal.init()});
(function(){tdAjaxVideoModal={_is_modal_open:!1,init:function(){jQuery(document).on("click",function(a){"td-vm-overlay"!==a.target.className&&"td-vm-close"!==a.target.className||!0!==tdAjaxVideoModal._is_modal_open||(a.preventDefault(),tdAjaxVideoModal.destroy_modal())});jQuery("body").on("click",".td-module-video-modal, .td-image-video-modal",function(a){a.preventDefault();a.stopPropagation();a=jQuery(this);var b={block_class:a.parents(".td_block_wrap").attr("data-td-block-uid")+"_m",video_source:a.attr("data-video-source"),
video_url:a.attr("data-video-url"),video_autoplay:a.attr("data-video-autoplay"),video_ad:""};a.hasClass("td_block_single_image")&&(b.block_class=a.attr("data-td-block-uid")+"_m");a.hasClass("td-module-video-modal")?(b.type="module",b.post_url=a.attr("href"),b.post_title=a.attr("title")):b.type="image";void 0!==a.attr("data-video-rec")&&(b.video_ad=JSON.parse(atob(a.attr("data-video-rec"))));tdAjaxVideoModal.build_modal(b)})},build_modal:function(a){jQuery("body").prepend('<div id="td-video-modal" class="td-vm-wrap td-vm-'+
a.video_source+" "+a.block_class+'"><div class="td-vm-overlay"></div><div class="td-vm-content-wrap"><div class="td-vm-content"><div class="td-vm-content-loading"></div></div></div><a href="#" class="td-vm-close"><i class="td-icon-modal-close"></i></a></div>');var b=jQuery("#td-video-modal");"module"===a.type&&""!==a.post_title&&b.find(".td-vm-content-wrap").prepend('<h3 class="td-vm-title"><a href="'+a.post_url+'" title="'+a.post_title+'">'+a.post_title+"</a></h3>");""!==a.video_ad&&(b.find(".td-vm-content-wrap").append('<div class="td-vm-rec-wrap"></div>'),
a.video_ad.disable?b.find(".td-vm-rec-wrap").append('<div class="td-spot-id-video_modal"><div class="tdc-placeholder-title"></div></div>'):b.find(".td-vm-rec-wrap").append('<div class="td-vm-rec-code">'+a.video_ad.code+"</div>"),""!==a.video_ad.title&&b.find(".td-vm-rec-wrap").prepend('<div class="td-vm-rec-title">'+a.video_ad.title+"</div>"),"undefined"!==typeof window.tdAnimationStack&&!0===window.tdAnimationStack.activated&&window.tdAnimationStack.reinit());setTimeout(function(){b.addClass("td-vm-open");
b.find(".td-vm-content-wrap").addClass("td-vm-content-wrap-visible");jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"td_ajax_video_modal",td_video_url:a.video_url,td_video_autoplay:a.video_autoplay},success:function(a){a=jQuery.parseJSON(a);b.find(".td-vm-content").append(a.video_embed);setTimeout(function(){b.find(".td-vm-content-loading").remove();b.find(".wpb_video_wrapper").addClass("td-vm-iframe-visible")},200)}})},50);tdAjaxVideoModal._is_modal_open=!0},destroy_modal:function(){var a=
jQuery("#td-video-modal");a.removeClass("td-vm-open");setTimeout(function(){a.remove()},500);tdAjaxVideoModal._is_modal_open=!1}}})();var tdfAjaxFlickr={};jQuery().ready(function(){tdfAjaxFlickr.init()});
(function(){tdfAjaxFlickr={_is_modal_open:!1,init:function(){jQuery(document).on("click",function(a){"td-flkr-m-overlay"!==a.target.className&&"td-flkr-m-close"!==a.target.className||!0!==tdfAjaxFlickr._is_modal_open||(a.preventDefault(),jQuery(".td-flkr-m").remove(),tdfAjaxFlickr._is_modal_open=!1)});jQuery("body").on("click",".td-flkr-m-img",function(){var a=jQuery(this);a.hasClass("td-fgm-img-active")||(jQuery(".td-flkr-m-main-img a").attr("data-img-full",a.data("img-full")),jQuery(".td-flkr-m-main-img img").attr("src",
a.data("img-preview")),jQuery(".td-flkr-m-main-img img").attr("title",a.attr("title")),jQuery(".td-flkr-m-img").removeClass("td-flkr-m-img-active"),jQuery(this).addClass("td-flkr-m-img-active"))});jQuery("body").on("click",".td-flkr-album",function(a){a.preventDefault();a.stopPropagation();a=jQuery(this);var b=a.parents(".td_block_wrap").attr("data-td-block-uid")+"_m",c=a.data("flkr-album-id"),d=a.data("flkr-album-title");jQuery("body").prepend('<div id="td-flkr-m" class="td-flkr-m '+b+'"><div class="td-flkr-m-overlay"></div><div class="td-flkr-m-close"><i class="td-icon-modal-close"></i></div><div class="td-flkr-m-main-img"><h3 class="td-flkr-m-title"></h3></div><div class="td-flkr-m-loading"></div><div class="td-flkr-m-album-images"></div></div>');
jQuery.ajax({type:"POST",url:td_ajax_url,data:{action:"td_ajax_flickr_modal",td_flickr_album_id:c},success:function(a){var b=jQuery.parseJSON(a),c=Object.keys(b).length,e=0;jQuery(".td-flkr-m-loading").remove();jQuery(".td-flkr-m-title").html(d);var n={};Object.keys(b).reverse().forEach(function(a){n[a]=b[a]});jQuery(".td-flkr-m-album-images").show();jQuery.each(n,function(){var a=this.title,b=this.preview_img,d=this.full_img,f=this.thumb_img,g="";e===c-1&&(g="td-flkr-m-img-active",jQuery(".td-flkr-m-main-img").append('<a href="'+
d+'" target="blank"><img src="'+b+'" title="'+a+'" /></a>'));jQuery(".td-flkr-m-album-images").prepend('<div class="td-flkr-m-img '+g+'" title="'+a+'" data-img-preview="'+b+'" data-img-full="'+d+'"><div class="td-flkr-m-img-inner" style="background-image:url('+f+')"></div></div>');e++})}});tdfAjaxFlickr._is_modal_open=!0});jQuery("body").on("click",".td-flkr-photo",function(a){a.preventDefault();a.stopPropagation();var b=jQuery(this);a=b.parents(".td_block_wrap").attr("data-td-block-uid")+"_m";var c=
b.find("h3").text(),d=b.find(".td-flkr-feat-img").data("flkr-preview-img");b=b.find(".td-flkr-feat-img").data("flkr-full-img");jQuery("body").prepend('<div id="td-flkr-m" class="td-flkr-m '+a+'"><div class="td-flkr-m-overlay"></div><div class="td-flkr-m-close"><i class="td-icon-modal-close"></i></div><div class="td-flkr-m-main-img"><h3 class="td-flkr-m-title">'+c+'</h3><a href="'+b+'" target="blank"><img src="'+d+'" title="'+c+'" /></a></div><div class="td-flkr-m-loading"></div></div>');jQuery(".td-flkr-m-loading").remove();
tdfAjaxFlickr._is_modal_open=!0})}}})();var tdPopupModal={};jQuery().ready(function(){tdPopupModal.init()});
(function(){tdPopupModal={items:[],item:function(){this.blockUid=this.uid="";this.modalObj=this.triggerBtnObj=void 0;this._modal_trigger_types=[];this._modal_open_position="";this._site_scroll=!0;this._is_initialized=this._show_modal_in_composer=this._in_composer=this._is_modal_open=!1},init:function(){tdPopupModal.items=[];this._is_running=!1},_initialize_item:function(a){if(!0!==a._is_initialized){a._is_initialized=!0;if(a._in_composer){var b=document.getElementsByClassName(a.blockUid)[0];b.classList.contains("tdc-element-selected")&&
!0===a._show_modal_in_composer&&tdPopupModal.modalOpen(a);(new MutationObserver(function(b,d){b.forEach(function(b){"class"===b.attributeName&&(b=b.target.classList,b.contains("tdc-element-selected")&&!b.contains("tdc-dragged")?!0===a._show_modal_in_composer?tdPopupModal.modalOpen(a):tdPopupModal.modalClose(a):tdPopupModal.modalClose(a))})})).observe(b,{attributes:!0})}else tdPopupModal.modalManageOpenState(a),tdPopupModal.modalManageCloseState(a);tdPopupModal.modalOpenPosition(a)}},addItem:function(a){if("undefined"===
typeof a.uid)throw"item.uid is not defined";tdPopupModal.items.push(a);tdPopupModal._initialize_item(a)},modalManageOpenState:function(a){for(var b={},c=$jscomp.makeIterator(Object.entries(a._modal_trigger_types)),d=c.next();!d.done;b={$jscomp$loop$prop$trigger_options$11:b.$jscomp$loop$prop$trigger_options$11},d=c.next()){d=$jscomp.makeIterator(d.value);var e=d.next().value;b.$jscomp$loop$prop$trigger_options$11=d.next().value;switch(e){case "button":a.triggerBtnObj.click(function(b){b.preventDefault();
tdPopupModal.modalOpen(a)});break;case "page_load":d=b.$jscomp$loop$prop$trigger_options$11.modal_open_delay;var f=b.$jscomp$loop$prop$trigger_options$11.modal_close_after,h=b.$jscomp$loop$prop$trigger_options$11.modal_prevent_open;e=a.uid;0==h&&tdPopupModal.setCookie(e,"",h);""!=tdPopupModal.getCookie(e)||a._is_modal_open||setTimeout(function(){tdPopupModal.modalOpen(a);0<f&&a._is_modal_open&&setTimeout(function(){tdPopupModal.modalClose(a);var b=a.uid;0<h&&""==tdPopupModal.getCookie(b)&&tdPopupModal.setCookie(b,
"set",h)},f)},d);break;case "cursor_area":d=function(b){return function(c){""===tdPopupModal.getCookie(a.uid)&&b.$jscomp$loop$prop$trigger_options$11.area_vertical_space.trim()>=c.y&&tdPopupModal.modalOpen(a)}}(b);document.addEventListener("mousemove",tdPopupModal._checkModal(d,300));break;case "scroll":d=function(b){return function(c){if(""===tdPopupModal.getCookie(a.uid)){var d=b.$jscomp$loop$prop$trigger_options$11.scroll_distance.trim();0<d.indexOf("%")?(d=parseInt(d.replace(/%/gi,""),10),100*
window.scrollY/document.body.clientHeight>d&&tdPopupModal.modalOpen(a)):(0<d.indexOf("px")&&(d=parseInt(d.replace(/px/gi,""),10)),c.target.scrollingElement.scrollTop>d&&tdPopupModal.modalOpen(a))}}}(b),document.addEventListener("scroll",tdPopupModal._checkModal(d,10))}}},_checkModal:function(a,b){var c=Date.now()-b;return function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];Date.now()-c>=b&&(c=Date.now(),a.apply(null,e))}},modalManageCloseState:function(a){var b=["tdm-pmh-close"];
"over-screen"===a._modal_open_position&&b.push("tdm-popup-modal-bg");jQuery("#tdm-popup-modal-"+a.uid+" .tdm-pmh-close,#tdm-popup-modal-"+a.uid+" .tdm-popup-modal-bg").click(function(){if(!0===a._is_modal_open){tdPopupModal.modalClose(a);for(var b=$jscomp.makeIterator(Object.entries(a._modal_trigger_types)),d=b.next();!d.done;d=b.next()){var e=$jscomp.makeIterator(d.value);d=e.next().value;e=e.next().value;switch(d){case "page_load":d=e.modal_prevent_open;e=a.uid;0<d&&""==tdPopupModal.getCookie(e)&&
tdPopupModal.setCookie(e,"set",d);break;case "cursor_area":d=e.modal_area_prevent_open;0<d&&""===tdPopupModal.getCookie(a.uid)&&tdPopupModal.setCookie(a.uid,"set",d);break;case "scroll":d=e.modal_scroll_prevent_open,0<d&&""===tdPopupModal.getCookie(a.uid)&&tdPopupModal.setCookie(a.uid,"set",d)}}}})},modalOpenPosition:function(a){switch(a._modal_open_position){case "over-screen":a.modalObj.detach().prependTo("body"),a.modalObj.attr("style","")}},modalOpen:function(a){a._is_modal_open||(a.modalObj.addClass("tdm-popup-modal-open"),
a._is_modal_open=!0,a._site_scroll||jQuery("body").addClass("tdm-popup-modal-prevent-scroll"),a.modalObj.trigger("tdPopupModal.show"))},modalClose:function(a){a._is_modal_open&&(a.modalObj.removeClass("tdm-popup-modal-open"),a._is_modal_open=!1,a._site_scroll||jQuery("body").removeClass("tdm-popup-modal-prevent-scroll"),a.modalObj.trigger("tdPopupModal.close"))},setCookie:function(a,b,c){var d=new Date;d.setTime(d.getTime()+c);c="expires="+d.toUTCString();document.cookie=a+"="+b+";"+c+";path=/"},
getCookie:function(a){a+="=";for(var b=decodeURIComponent(document.cookie).split(";"),c=0;c<b.length;c++){for(var d=b[c];" "==d.charAt(0);)d=d.substring(1);if(0==d.indexOf(a))return d.substring(a.length,d.length)}return""},deleteItem:function(a){for(var b=0;b<tdPopupModal.items.length;b++)if(tdPopupModal.items[b].blockUid===a)return a=jQuery("body"),!tdPopupModal.items[b]._site_scroll&&a.hasClass("tdm-popup-modal-prevent-scroll")&&a.removeClass("tdm-popup-modal-prevent-scroll"),jQuery("#tdm-popup-modal-"+
tdPopupModal.items[b].uid).remove(),tdPopupModal.items.splice(b,1),!0;return!1},resetItems:function(){tdPopupModal.items=[]}}})();var tdReadingProgressBar={};jQuery(window).on("load",function(){tdReadingProgressBar.init()});
(function(){tdReadingProgressBar={items:[],item:function(){this.barPosition=this.blockUid="";this._is_initialized=!1},init:function(){tdReadingProgressBar.items=[];this._is_running=!1},_initialize_item:function(a){!0!==a._is_initialized&&(a._is_initialized=!0)},createFixedBar:function(a,b,c){c=void 0===c?0:c;var d=a.barPosition,e=jQuery("#td-srp-fixed-wrap"),f=jQuery(".td-srp-"+d+'[data-article-index="'+b+'"]');e.length||(jQuery("body").prepend('<div id="td-srp-fixed-wrap"></div>'),e=jQuery("#td-srp-fixed-wrap"));
f.length||e.append('<div id="'+a.blockUid+'_b" class="td-srp-bar td-srp-'+d+'" data-article-index="'+b+'"><div class="td-srp-bar-fill" '+(0<c?'style="width:'+c+'%"':"")+"></div></div>")},calculateBarsFill:function(){var a=tdReadingProgressBar.items;if(a.length){var b=function(a,b){var c=this,d;return function(e){for(var f=[],g=0;g<arguments.length;++g)f[g-0]=arguments[g];clearTimeout(d);d=setTimeout(function(){a.apply(c,f)},b)}},c=jQuery(window),d=jQuery("#wpadminbar"),e=[],f=jQuery(".tdc-content-wrap").find("article");
f.length&&e.push(jQuery(f[0]));(new MutationObserver(function(a){a=$jscomp.makeIterator(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,"childList"===b.type){var c=b.addedNodes;if(c.length){b={};c=$jscomp.makeIterator(c);for(var d=c.next();!d.done;b={$jscomp$loop$prop$addedNode$13:b.$jscomp$loop$prop$addedNode$13},d=c.next())if(b.$jscomp$loop$prop$addedNode$13=d.value,b.$jscomp$loop$prop$addedNode$13.classList.contains("tdb-infinte-post-iframe")){var f=e.push(jQuery(b.$jscomp$loop$prop$addedNode$13))-
1;jQuery(b.$jscomp$loop$prop$addedNode$13).on("load",function(a){return function(){jQuery(a.$jscomp$loop$prop$addedNode$13).contents().find(".td-srp-inline").attr("data-article-index",f)}}(b))}}}})).observe(document.querySelector(".tdc-content-wrap"),{childList:!0});c.on("resize",b(function(){var f=c.height(),g=d.length?782<c.width()?d.outerHeight():0:0;c.on("scroll",b(function(){var b=c.scrollTop(),d=b+f;a.forEach(function(a){var c=a.barPosition;e.forEach(function(e,h){var n=Math.floor(e.offset().top)-
g,r=e.outerHeight(),t=n+r;"top"!==c&&"bottom"!==c||tdReadingProgressBar.createFixedBar(a,h);var y=jQuery('.td-srp-bar[data-article-index="'+h+'"] .td-srp-bar-fill'),B;e.hasClass("tdb-infinte-post-iframe")&&(B=e.contents().find('.td-srp-inline[data-article-index="'+h+'"] .td-srp-bar-fill'));b<=n&&t<=d||b>=n&&t<=d&&t>=b?(y.css("width","100%"),"undefined"!==typeof B&&B.css("width","100%")):b>=n&&t>=b?(e=Math.floor((b-n)/(r-f)*100),97<=e&&(e=100),y.css("width",e+"%"),"undefined"!==typeof B&&B.css("width",
e+"%")):(y.css("width","0"),"undefined"!==typeof B&&B.css("width","0"))})})},50));c.scroll()},100));c.resize()}},addItem:function(a){if("undefined"===typeof a.blockUid)throw"item.uid is not defined";tdReadingProgressBar.items.push(a);tdReadingProgressBar._initialize_item(a)},deleteItem:function(a){for(var b=0;b<tdReadingProgressBar.items.length;b++)if(tdReadingProgressBar.items[b].blockUid===a)return jQuery("#"+tdReadingProgressBar.items[b].blockUid+"_b").remove(),tdReadingProgressBar.items.splice(b,
1),!0;return!1},resetItems:function(){tdReadingProgressBar.items=[]}}})();var tdTabbedContent={};jQuery().ready(function(){tdTabbedContent.init()});
(function(){tdTabbedContent={items:[],item:function(){this.urlParam=this.blockObj=this.uid="";this._is_initialized=this._remember_active_tab=!1},init:function(){tdTabbedContent.items=[];this._is_running=!1},_initialize_item:function(a){!0!==a._is_initialized&&(a.blockObj.find(".td-tc-tab").on("click",function(){var b=jQuery(this);if(!b.hasClass("td-tc-tab-active")&&(b=b.data("page-id"),tdTabbedContent.displayPageContent(a,b),a._remember_active_tab&&""!==a.urlParam)){var c=window.location.href,d=new RegExp("\\b("+
a.urlParam+"=).*?(&|#|$)");0<=c.search(d)?c=c.replace(d,"$1"+b+"$2"):(c=c.replace(/[?#]$/,""),c=c+(0<c.indexOf("?")?"&":"?")+a.urlParam+"="+b);history.replaceState(null,null,c)}}),a._is_initialized=!0)},displayPageContent:function(a,b){if(null!==b){var c=a.blockObj.find(".td-tc-tab"),d=a.blockObj.find('.td-tc-tab[data-page-id="'+b+'"]'),e=a.blockObj.find(".td-tc-page-content");a=a.blockObj.find('.td-tc-page-content[data-page-id="'+b+'"]');c.removeClass("td-tc-tab-active");d.addClass("td-tc-tab-active");
e.removeClass("td-tc-page-content-visible");a.addClass("td-tc-page-content-visible")}},addItem:function(a){if("undefined"===typeof a.uid)throw"item.uid is not defined";tdTabbedContent.items.push(a);tdTabbedContent._initialize_item(a)},deleteItem:function(a){for(var b=0;b<tdTabbedContent.items.length;b++)if(tdTabbedContent.items[b].uid===a)return tdTabbedContent.items.splice(b,1),!0;return!1},resetItems:function(){tdTabbedContent.items=[]}}})();var tdConfirm;
(function(a,b){tdConfirm={_isInitialized:!1,mediaUploadLoaded:!1,_$content:b,_$confirmYes:b,_$confirmNo:b,_$infoContent:b,_$body:b,init:function(){tdConfirm._$body=a("body");tdConfirm._$content=a('<div id="td-confirm" style="display: none;"><div class="td-confirm-info"></div><div class="td-confirm-buttons"><button type="button" class="td-confirm-yes">Yes</button><button type="button" class="td-confirm-no">No</button></div></div>');tdConfirm._$infoContent=tdConfirm._$content.find(".td-confirm-info");
tdConfirm._$confirmYes=tdConfirm._$content.find("button.td-confirm-yes");tdConfirm._$confirmNo=tdConfirm._$content.find("button.td-confirm-no");tdConfirm._$body.append(tdConfirm._$content)},close:function(){tb_remove()},modal:function(b){tdConfirm.init();"undefined"===typeof b.url&&(b.url="#TB_inline?inlineId=td-confirm&width=480");if("undefined"===typeof b.objectContext||null===b.objectContext)b.objectContext=window;"undefined"===typeof b.htmlInfoContent&&(b.htmlInfoContent="");"undefined"===typeof b.textYes?
tdConfirm._$confirmYes.html("Ok"):tdConfirm._$confirmYes.html(b.textYes);"undefined"!==typeof b.switchButtons&&!0===b.switchButtons&&tdConfirm._$confirmNo.insertBefore(tdConfirm._$confirmYes);tdConfirm._$infoContent.html(b.htmlInfoContent);"undefined"!==typeof b.hideNoButton&&!0===b.hideNoButton?tdConfirm._$confirmNo.hide():(tdConfirm._$confirmNo.show(),tdConfirm._$confirmNo.unbind(),tdConfirm._$confirmNo.on("click",function(){"undefined"!==typeof b.callbackNo&&b.callbackNo.apply(b.objectContext,
b.argsNo);tb_remove();return!1}),"undefined"===typeof b.textNo?tdConfirm._$confirmNo.html("No"):tdConfirm._$confirmNo.html(b.textNo));if("undefined"===typeof b.callbackYes)tdConfirm._$confirmYes.on("click",function(){tb_remove();return!0});else tdConfirm._$confirmYes.off("click"),tdConfirm._$confirmYes.on("click",function(){b.callbackYes.apply(b.objectContext,b.argsYes);return!0});tdConfirm._$body.addClass("td-thickbox-loading");tb_show(b.caption,b.url);"undefined"!==typeof b.offOverlayClick&&!0===
b.offOverlayClick&&a("#TB_overlay").off("click");var c=a("#TB_window");"undefined"!==typeof b.hideCloseButton&&!0===b.hideCloseButton&&c.find("#TB_closeWindowButton").hide();c.addClass("td-thickbox");tdConfirm._$body.removeClass("td-thickbox-loading");tdConfirm._$content.remove()},showModalOk:function(b,d,e,f,h){tdConfirm.init();"undefined"===typeof h&&(h="#TB_inline?inlineId=td-confirm&width=480");if("undefined"===typeof f||null===f)f=window;"undefined"===typeof d&&(d="");tdConfirm._$infoContent.html(d);
tdConfirm._$confirmNo.hide();tdConfirm._$confirmYes.html("Ok");if("undefined"===typeof e)tdConfirm._$confirmYes.on("click",function(){tb_remove();return!0});else tdConfirm._$confirmYes.on("click",function(){tdConfirm._$confirmYes.off("click");e.apply(f);return!0});tdConfirm._$body.addClass("td-thickbox-loading");tb_show(b,h);a("#TB_overlay").off("click");b=a("#TB_window");b.find("#TB_closeWindowButton").remove();!0===tdConfirm.mediaUploadLoaded&&(tdConfirm.fixPosition(),a(window).resize(function(){tdConfirm.fixPosition()}));
b.addClass("td-thickbox");tdConfirm._$body.removeClass("td-thickbox-loading");tdConfirm._$content.remove()},fixPosition:function(){var b=a("#TB_window"),d="undefined"===typeof document.body.style.maxHeight;b.css({marginLeft:"-"+parseInt(TB_WIDTH/2,10)+"px",width:TB_WIDTH+"px"});d||b.css({marginTop:+parseInt(TB_HEIGHT/2,10)+"px"});b.css("z-index","170001");a("#TB_overlay").css("z-index","170000")},showModal:function(b,d,e,f,h,g){tdConfirm.init();"undefined"===typeof g&&(g="#TB_inline?inlineId=td-confirm&width=480");
"undefined"===typeof d&&(d=window);"undefined"===typeof h&&(h="");tdConfirm._$infoContent.html(h);tdConfirm._$confirmYes.unbind();if("undefined"===typeof e)tdConfirm._$confirmYes.on("click",function(){tb_remove();return!0});else"undefined"===typeof f&&(f=[]),tdConfirm._$confirmYes.on("click",function(){e.apply(d,f)});tdConfirm._$confirmNo.show();tdConfirm._$confirmNo.unbind();tdConfirm._$confirmNo.on("click",function(){tb_remove();return!1});tdConfirm._$body.addClass("td-thickbox-loading");tb_show(b,
g);a("#TB_window").addClass("td-thickbox");tdConfirm._$body.removeClass("td-thickbox-loading");tdConfirm._$content.remove()}}})(jQuery);
