%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/t/r/a/tradesc/www/albanie/wp-content/plugins/revslider/admin/assets/js/modules/
Upload File :
Create Path :
Current File : /home/t/r/a/tradesc/www/albanie/wp-content/plugins/revslider/admin/assets/js/modules/editor.min.js

/*!
 * 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()}}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",m),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)switch(t.path.substr(t.path.length-4).toLowerCase()){case".png":case".bmp":case".jpg":case".gif":case"jpeg":var i=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(i),setTimeout((function(){RVS.DOC.trigger("restoreLayersSize")}),500),RVS.F.selectLayers({id:i,overwrite:!0,action:"add"});break;case".mp4":case".mp3":case".mov":case".m4v":case"mpeg":i=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:parseInt(a.size.originalWidth)+"px"}),RVS.F.updateSliderObj({path:r+"size.height.#size#.v",val:parseInt(a.size.originalHeight)+"px"});break;case"image":RVS.F.updateSliderObj({path:r+"size.width.#size#.v",val:parseInt(a.size.originalWidth)+"px"}),RVS.F.updateSliderObj({path:r+"size.height.#size#.v",val:parseInt(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>',l="";RVS.S.keyFrame==i&&p(a);var d="frame_0"===i?"IN":"frame_999"===i?"OUT":"TO",S="frame_0"===i||"frame_999"===i?'<i class="material-icons">arrow_drop_down</i>':'<i class="emptyspace20"></i>',c=i===RVS.L[RVS.selLayers[0]].timeline.frameToIdle?'<i class="material-icons">visibility</i>':"";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">'+d+S+'</span><span class="frame_list_title '+(""!==c?"with_icon":"")+'">'+c+RVS.L[RVS.selLayers[0]].timeline.frames[i].alias+"</span>"+n+"</div>"+l+"</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]=f({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"),r=(t=a[0].dataset.mode,RVS.LIB.LAYERANIMS[a[0].dataset.lindex][a[0].dataset.gindex]);switch(t){case"rename":case"overwrite":case"create":var s,o,n={name:i=a.find(".cla_entername").val()};"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 m=-1;for(var n in a)a.hasOwnProperty(n)&&a[n].family==V.idle.fontFamily&&""!==a[n].family&&(m=n);if(m>=0)for(var y in RVS.V.sizes)if(RVS.V.sizes.hasOwnProperty(y)){var g=RVS.V.sizes[y];if(-1==jQuery.inArray(V.idle.fontWeight[g].v,a[m].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 h=l({v:V.idle.fontWeight[g].v,a:a[m].weights});RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+s+".idle.fontWeight."+g+".v",val:h})}}}}"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}}}))};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=_(jQuery.extend(!0,f({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=_(jQuery.extend(!0,f({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=_(jQuery.extend(!0,f({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,h(),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 m(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 y(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 g(e,t){return null==e?t:e}function h(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:g(e.use,!1),ease:g(e.ease,"none"),speed:g(e.speed,1e3),originX:g(e.originX,"50%"),originY:g(e.originX,"50%"),radiusAngle:g(e.radiusAngle,0),curviness:g(e.curviness,2),curved:g(e.curved,!1),yoyo_move:g(e.yoyo_move,!1),yoyo_rotate:g(e.yoyo_rotate,!1),yoyo_scale:g(e.yoyo_scale,!1),yoyo_filter:g(e.yoyo_filter,!1),repeat:g(e.repeat,"-1"),start:g(e.start,300),autoRotate:g(e.autoRotate,!1),frame_0:{yr:g(e.frame_0.yr,0),zr:g(e.frame_0.zr,0),x:g(e.frame_0.x,0),y:g(e.frame_0.y,0),z:g(e.frame_0.z,0),scaleX:g(e.frame_0.scaleX,1),scaleY:g(e.frame_0.scaleY,1),opacity:g(e.frame_0.opacity,1),rotationX:g(e.frame_0.rotationX,0),rotationY:g(e.frame_0.rotationY,0),rotationZ:g(e.frame_0.rotationZ,0),skewX:g(e.frame_0.skewX,0),skewY:g(e.frame_0.skewY,0),blur:0,brightness:100,grayscale:0},frame_999:{xr:g(e.frame_999.xr,0),yr:g(e.frame_999.yr,0),zr:g(e.frame_999.zr,0),x:g(e.frame_999.x,0),y:g(e.frame_999.y,0),z:g(e.frame_999.z,0),scaleX:g(e.frame_999.scaleX,1),scaleY:g(e.frame_999.scaleY,1),opacity:g(e.frame_999.opacity,1),rotationX:g(e.frame_999.rotationX,0),rotationY:g(e.frame_999.rotationY,0),rotationZ:g(e.frame_999.rotationZ,0),skewX:g(e.frame_999.skewX,0),skewY:g(e.frame_999.skewY,0),blur:0,brightness:100,grayscale:0}}}function f(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=g(e.grayscale,[0,0,0][NRI]),a=g(e.brightness,[100,100,100][NRI]),r=g(e.blur,[0,0,0][NRI]),s=0!==parseInt(i,0)||100!==parseInt(a,0)||0!==parseInt(r,0),o=g(e.bgrayscale,[0,0,0][NRI]),n=g(e.bbrightness,[100,100,100][NRI]),l=g(e.bblur,[0,0,0][NRI]),d=g(e.binvert,[0,0,0][NRI]),S=g(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:g(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:g(e.x,[0,0,"inherit"][NRI])}),y:RVS.F.cToResp({default:g(e.y,[0,0,"inherit"][NRI])}),z:g(e.z,[0,0,"inherit"][NRI]),scaleX:g(e.scaleX,[1,1,"inherit"][NRI]),scaleY:g(e.scaleY,[1,1,"inherit"][NRI]),opacity:g(e.opacity,[0,1,"inherit"][NRI]),rotationX:g(e.rotationX,[0,0,"inherit"][NRI]),rotationY:g(e.rotationY,[0,0,"inherit"][NRI]),rotationZ:g(e.rotationZ,[0,0,"inherit"][NRI]),skewX:g(e.skewX,[0,0,"inherit"][NRI]),skewY:g(e.skewY,[0,0,"inherit"][NRI]),originX:g(e.originX,["50%","50%","50%"][NRI]),originY:g(e.originY,["50%","50%","50%"][NRI]),originZ:g(e.originZ,["0","0","0"][NRI]),transformPerspective:g(RVS.SLIDER.settings.general.perspective,["600px","600px","600px"][NRI]),clip:g(e.clip,[100,100,"inherit"][NRI]),clipB:g(e.clipB,[100,100,"inherit"][NRI])},reverseDirection:{x:g(e.rx,!1),y:g(e.ry,!1),rotationX:g(e.rrotationX,!1),rotationY:g(e.rrotationY,!1),rotationZ:g(e.rrotationZ,!1),skewX:g(e.rskewX,!1),skewY:g(e.rskewY,!1),maskX:g(e.rmaskX,!1),maskY:g(e.rmaskY,!1),charsX:g(e.crx,!1),charsY:g(e.cry,!1),charsDirection:g(e.crsd,!1),wordsX:g(e.wrx,!1),wordsY:g(e.wry,!1),wordsDirection:g(e.wrsd,!1),linesX:g(e.lrx,!1),linesY:g(e.lry,!1),linesDirection:g(e.lrsd,!1)},mask:{use:g(e.mask.use,!1),x:RVS.F.cToResp({default:g(e.mask.x,[0,0,"inherit"][NRI])}),y:RVS.F.cToResp({default:g(e.mask.y,[0,0,"inherit"][NRI])})},color:{color:g(e.color.color,"#ffffff"),use:g(e.color.use,!1)},bgcolor:{backgroundColor:g(e.bgcolor.backgroundColor,"transparent"),use:g(e.bgcolor.use,!1)},timeline:{actionTriggered:g(e.actionTriggered,!1),ease:g(e.ease,"power3.inOut"),speed:g(e.speed,300),start:g(e.start,0),startRelative:g(e.startRelative,0),endWithSlide:g(e.endWithSlide,!1)},chars:{ease:g(e.chars.ease,"inherit"),use:g(e.chars.use,!1),direction:g(e.chars.direction,"forward"),delay:g(e.chars.delay,5),x:RVS.F.cToResp({default:g(e.chars.x,[0,0,"inherit"][NRI])}),y:RVS.F.cToResp({default:g(e.chars.y,[0,0,"inherit"][NRI])}),z:g(e.chars.z,[0,0,"inherit"][NRI]),scaleX:g(e.chars.scaleX,[1,1,"inherit"][NRI]),scaleY:g(e.chars.scaleY,[1,1,"inherit"][NRI]),opacity:g(e.chars.opacity,"inherit"),rotationX:g(e.chars.rotationX,[0,0,"inherit"][NRI]),rotationY:g(e.chars.rotationY,[0,0,"inherit"][NRI]),rotationZ:g(e.chars.rotationZ,[0,0,"inherit"][NRI]),skewX:g(e.chars.skewX,[0,0,"inherit"][NRI]),skewY:g(e.chars.skewY,[0,0,"inherit"][NRI]),originX:g(e.chars.originX,["50%","50%","inherit"][NRI]),originY:g(e.chars.originY,["50%","50%","inherit"][NRI]),originZ:g(e.chars.originZ,["0","0","inherit"][NRI]),fuse:g(e.chars.fuse,!1),blur:g(e.chars.blur,[0,0,0][NRI]),grayscale:g(e.chars.grayscale,[0,0,0][NRI]),brightness:g(e.chars.brightness,[100,100,100][NRI])},words:{ease:g(e.words.ease,"inherit"),use:g(e.words.use,!1),direction:g(e.words.direction,"forward"),delay:g(e.words.delay,5),x:RVS.F.cToResp({default:g(e.words.x,[0,0,"inherit"][NRI])}),y:RVS.F.cToResp({default:g(e.words.y,[0,0,"inherit"][NRI])}),z:g(e.words.z,[0,0,"inherit"][NRI]),scaleX:g(e.words.scaleX,[1,1,"inherit"][NRI]),scaleY:g(e.words.scaleY,[1,1,"inherit"][NRI]),opacity:g(e.words.opacity,"inherit"),rotationX:g(e.words.rotationX,[0,0,"inherit"][NRI]),rotationY:g(e.words.rotationY,[0,0,"inherit"][NRI]),rotationZ:g(e.words.rotationZ,[0,0,"inherit"][NRI]),skewX:g(e.words.skewX,[0,0,"inherit"][NRI]),skewY:g(e.words.skewY,[0,0,"inherit"][NRI]),originX:g(e.words.originX,["50%","50%","inherit"][NRI]),originY:g(e.words.originY,["50%","50%","inherit"][NRI]),originZ:g(e.words.originY,["0","0","inherit"][NRI]),fuse:g(e.words.fuse,!1),blur:g(e.words.blur,[0,0,0][NRI]),grayscale:g(e.words.grayscale,[0,0,0][NRI]),brightness:g(e.words.brightness,[100,100,100][NRI])},lines:{ease:g(e.lines.ease,"inherit"),use:g(e.lines.use,!1),direction:g(e.lines.direction,"forward"),delay:g(e.lines.delay,5),x:RVS.F.cToResp({default:g(e.lines.x,[0,0,"inherit"][NRI])}),y:RVS.F.cToResp({default:g(e.lines.y,[0,0,"inherit"][NRI])}),z:g(e.lines.z,[0,0,"inherit"][NRI]),scaleX:g(e.lines.scaleX,[1,1,"inherit"][NRI]),scaleY:g(e.lines.scaleY,[1,1,"inherit"][NRI]),opacity:g(e.lines.opacity,"inherit"),rotationX:g(e.lines.rotationX,[0,0,"inherit"][NRI]),rotationY:g(e.lines.rotationY,[0,0,"inherit"][NRI]),rotationZ:g(e.lines.rotationZ,[0,0,"inherit"][NRI]),skewX:g(e.lines.skewX,[0,0,"inherit"][NRI]),skewY:g(e.lines.skewY,[0,0,"inherit"][NRI]),originX:g(e.lines.originX,["50%","50%","inherit"][NRI]),originY:g(e.lines.originY,["50%","50%","inherit"][NRI]),originZ:g(e.lines.originY,["0","0","inherit"][NRI]),fuse:g(e.lines.fuse,!1),blur:g(e.lines.blur,[0,0,0][NRI]),grayscale:g(e.lines.grayscale,[0,0,0][NRI]),brightness:g(e.lines.brightness,[100,100,100][NRI])},sfx:{effect:g(e.effect,""),color:g(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,t){return e&&("object"!=typeof e.x&&(e.x=RVS.F.cToResp({default:g(e.x,t)})),"object"!=typeof e.y&&(e.y=RVS.F.cToResp({default:g(e.y,t)}))),e}function _(e){return e.transform=v(e.transform,0),e.mask=v(e.mask,0),e.chars=v(e.chars,"inherit"),e.words=v(e.words,"inherit"),e.lines=v(e.lines,"inherit"),e}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),S=window.RSColor.get(manipulate&&void 0!==manipulate.hoverBG?manipulate.hoverBG:a.hover.backgroundColor),c="video"===a.type?a.media.posterUrl:a.idle.backgroundImage,p={};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&&(p.borderColor=window.RSColor.get(a.idle.borderColor),p.borderWidth=a.idle.borderWidth[0]+" "+a.idle.borderWidth[1]+" "+a.idle.borderWidth[2]+" "+a.idle.borderWidth[3]+" ",p.borderStyle=a.idle.borderStyle[RVS.screen].v),void 0!==c&&c.length>4&&-1==l.indexOf("gradient")?"column"===a.type||"row"===a.type?(p.backgroundImage='url("'+c+'")',p.backgroundPosition=a.idle.backgroundPosition,p["background-size"]="percentage"===a.idle.backgroundSize?a.idle.backgroundSizePerc+"%":"pixel"===a.idle.backgroundSize?a.idle.backgroundSizePix+"px":a.idle.backgroundSize,p.backgroundRepeat=a.idle.backgroundRepeat):(s.backgroundImage='url("'+c+'")',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"!==S&&(o.backgroundColor=S)):("column"===a.type||"row"===a.type?(p.backgroundImage="",p.transformStyle="preserve-3d"):s.background=l,-1==S.indexOf("gradient")?o.backgroundColor=S:o.background=S),"column"===a.type||"row"===a.type){p.left="column"===a.type?0:a.idle.margin[RVS.screen].v[3],p.right="column"===a.type?0:a.idle.margin[RVS.screen].v[1],p.top=0,p.bottom=0,p.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,p),"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 u=[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]+u[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]+u[1],paddingLeft:a.idle.padding[RVS.screen].v[3]+a.idle.margin[RVS.screen].v[3]+u[3]}),tpGS.gsap.set(i.paddings.bottom,{height:a.idle.padding[RVS.screen].v[2]+u[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]+u[1],paddingLeft:a.idle.padding[RVS.screen].v[3]+a.idle.margin[RVS.screen].v[3]+u[3]}),tpGS.gsap.set(i.paddings.left,{left:a.idle.margin[RVS.screen].v[3],width:a.idle.padding[RVS.screen].v[3]+u[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]+u[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 R=-1!=a.group.puid&&("column"===RVS.L[a.group.puid].type||"group"===RVS.L[a.group.puid].type);R?(n.display=s.display=a.idle.display,n.float=a.idle.float[RVS.screen].v,n.clear=a.idle.clear[RVS.screen].v,m=!1,a.behavior.baseAlign="group"):"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 V=RVS.F.convertFraction(a.group.columnSize);"fullinset"==a.size.covermode&&R&&"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*V+"%":"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&&R&&"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&&""+a.group.puid=="-1"&&(""+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 m="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 g=RVS.F.getProportionalSizes({proportional:a.size.scaleProportional,type:a.size.covermode,image:{width:a.size.originalWidth,height:a.size.originalHeight},viewPort:{width:void 0!==m&&!1!==m&&void 0!==m.width?RVS.S.ulDIM.width:RVS.F.GW(RVS.screen),height:void 0!==m&&!1!==m&&void 0!==m.height?RVS.S.ulDIM.height:RVS.SLIDER.settings.size.height[RVS.screen]}});n.width=s.width=-1!==s.width.indexOf("%")?s.width:-1!==s.width.indexOf("px")?Math.min(parseInt(s.width),g.width):g.width,n.height=s.height=-1!==s.height.indexOf("%")?s.height:-1!==s.height.indexOf("px")?Math.min(parseInt(s.height),g.height):g.height,"100%"===n.width?i.c.addClass("_lc_fw_img"):i.c.removeClass("_lc_fw_img"),"100%"===n.height?i.c.addClass("_lc_fh_img"):i.c.removeClass("_lc_fh_img")}else if("video"===a.type&&"auto"===a.size.height[RVS.screen].v){var h=a.media.ratio.split(":");h=h[1]/h[0],n.height=s.height=i.w.width()*h}else"shape"===a.type?(n.lineHeight=RVS.F.isVaOrPx(s.height)?parseInt(s.height,0)+"px":"auto",a.idle.backgroundImage&&("auto"===a.size.width[RVS.screen].v&&"auto"===a.size.height[RVS.screen].v?(n.width=a.size.originalWidth+"px",n.height=a.size.originalHeight+"px"):"auto"===a.size.width[RVS.screen].v?n.width=Math.round((-1!==a.size.height[RVS.screen].v.indexOf("%")?d({uid:e.uid}).height*parseInt(a.size.height[RVS.screen].v)/100:parseInt(a.size.height[RVS.screen].v))*a.size.aspectRatio[RVS.screen].v)+"px":"auto"===a.size.height[RVS.screen].v&&(n.height=Math.round((-1!==a.size.width[RVS.screen].v.indexOf("%")?d({uid:e.uid}).width*parseInt(a.size.width[RVS.screen].v)/100:parseInt(a.size.width[RVS.screen].v))/a.size.aspectRatio[RVS.screen].v)+"px"),s.width=n.width,s.height=n.height)):"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!==m&&void 0!==m.width?m.width:n.width,i.w_height=n.height=!1!==m&&void 0!==m.height?m.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 f,v=void 0!==s.background&&"string"==typeof s.background&&-1!==s.background.search("gradient"),_=void 0!==o.background&&"string"==typeof o.background&&-1!==o.background.search("gradient");v&&_?(180!==RVS.F.gradDegree(s.background)&&180==RVS.F.gradDegree(o.background)&&(o.background=RVS.F.addGradDegree(o.background,180)),f=tpGS.getSSGColors(s.background,o.background,a.hover.gradientStyle),s.background=f.from,o.background=f.to):void 0!==s.background&&!v&&_?(f=tpGS.getSSGColors(s.background,o.background,a.hover.gradientStyle),s.background=f.from,o.background=f.to):v&&!_&&void 0!==o.backgroundColor&&(f=tpGS.getSSGColors(s.background,o.backgroundColor,a.hover.gradientStyle),s.background=f.from,o.background=f.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.getProperty("#layer_bg_image","backgroundImage")!=='url("'+t+'")'&&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}),t&&!RVS.L[RVS.selLayers[0]]?.media?.loaded&&RVS.F.preloadImage({uid:RVS.selLayers[0],slideId:RVS.S.slideId,image:t,silent:!1,callback:function(){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.DOC.on("caralwaysvisiblecheck",(function(e,t){if(null!=t&&null!=t.layerid&&null!=RVS.selLayers[0])if(1==RVS.L[RVS.selLayers[0]].visibility.alwaysOnCarousel){var i=RVS.F.getLayerHierArchy(RVS.selLayers[0]);for(var a in i)if(null!=RVS.L[i[a]]&&1!=RVS.L[i[a]].visibility.alwaysOnCarousel)return void(0==RVS.L[i[a]].visibility.alwaysOnCarousel&&RVS.F.showInfo({content:'"'+RVS.L[i[a]].alias+'" '+RVS_LANG.someParentIsHidden_a+"<br>"+RVS_LANG.someParentIsHidden_b,type:"goodtoknow",showdelay:0,hidedelay:4,hideon:"",event:""}))}else{var r=RVS.F.getLayerChildren({layerid:RVS.selLayers[0]});for(a in r)if(r.hasOwnProperty(a)&&null!=RVS.L[a]&&1!=RVS.L[a].visibility.alwaysOnCarousel)return void(0==RVS.L[a].visibility.alwaysOnCarousel&&RVS.F.showInfo({content:'"'+RVS.L[a].alias+'" '+RVS_LANG.someParentIsHidden_c+"<br>"+RVS_LANG.someParentIsHidden_d,type:"goodtoknow",showdelay:0,hidedelay:4,hideon:"",event:""}))}})),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=_(jQuery.extend(!0,f({alias:RVS_LANG.enterstage,opacity:0},"frame_0"),t.frame_0)),t.frame_1=_(jQuery.extend(!0,f({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=_(jQuery.extend(!0,f({endWithSlide:!0,alias:RVS_LANG.leavestage,opacity:0},"frame_999"),t.frame_999)),t.loop=jQuery.extend(!0,h(),t.loop)),i=jQuery.extend(!0,i,d),"frame_1"==l?(i.frame_0=_(jQuery.extend(!0,f({alias:RVS_LANG.enterstage,opacity:0},"frame_0"),i.frame_0)),i.frame_1=_(jQuery.extend(!0,f({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=_(jQuery.extend(!0,f({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,h(),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=((e,t)=>{if(window.RVS?.LIB?.FONTS)for(var i in RVS.LIB.FONTS)if(RVS.LIB.FONTS[i].label==e&&(t||"googlefont"==RVS.LIB.FONTS[i].type))return RVS.LIB.FONTS[i]})(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:y,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,t){e=void 0===e?RVS.LIB.OBJ.items.moduleslides[RVS.LIB.OBJ.selectedSlideId].layers:e;void 0!==window.copyPasteLayers&&void 0!==window.copyPasteLayers.layers&&(!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]]));"grouplayers"===RVS.LIB.OBJ.depth&&(delete window.copyPasteLayers.layers.bottom,delete window.copyPasteLayers.layers.middle,delete window.copyPasteLayers.layers.top),RVS.DOC.trigger("do_paste_layer"),setTimeout((function(){RVS.F.showWaitAMinute({fadeOut:500})}),100),!0!==t&&("layers"===RVS.LIB.OBJ.depth&&(jQuery("#rb_modal_underlay").appendTo("#slider_settings"),RVS.F.RSDialog.close()),RVS.F.closeObjectLibrary(),RVS.F.checkUsedFonts()),RVS.S.ignoreCopyPrefix=!1},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,s){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 o={};switch(o.addOns=t.addOns||{},o.type=g(t.type,e),o.subtype=g(t.subtype,""),o.subsubtype=g(t.subsubtype,""),o.linebreak=g(t.linebreak,!1),o.text="text"!==e&&"button"!==e||"forms"===t.subtype?"":g(t.text,"New Layer"),o.placeholder="text"===e||"button"===e?g(t.placeholder,""):"",o.alias=RVS.F.firstCharUppercase(g(t.alias,"New Layer")),!0===r||i||(o.uid=g(t.uid,RVS.F.getUniqueid())),o.version=RVS.ENV.revision,o.htmltag=g(t.htmltag,"div"),o.customCSS=g(t.customCSS,""),o.customHoverCSS=g(t.customHoverCSS,""),o.layerLibSrc=g(t.layerLibSrc,""),o.type){case"text":case"button":case"image":o.media=g(t.media,{imageUrl:RVS.ENV.img_ph_url,imageId:"",imageFromStream:!1}),o.media.loaded=!1;break;case"audio":case"video":o.media=g(t.media,{mediaType:"audio"===o.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:i?"":"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:i?"":"true",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,pauseOnSlideChange:!1,volume:"100",keepOnCarousel:!1}),void 0!==o&&void 0!==o.media&&(o.media.dotted.indexOf("white")>0&&(o.media.dottedColorB="rgba(255,255,255,255)"),o.media.dotted.indexOf("twoxtwo")>=0?o.media.dotted="1":o.media.dotted.indexOf("threexthree")>=0&&(o.media.dotted="2")),void 0!==o.media&&"video"===o.media.type&&void 0===o.media.allowFullscreen&&!0!==i&&(o.media.allowFullscreen=!0),void 0!==o.media&&"streamyoutube"===o.media.mediaType&&(o.media.mediaType="youtube",o.media.videoFromStream=!0),void 0!==o.media&&"streamvimeo"===o.media.mediaType&&(o.media.mediaType="vimeo",o.media.videoFromStream=!0),o.media.mediaType=i||""!==o.media.mediaType&&void 0!==o.media.mediaType?i?"alwayswrite":o.media.mediaType:"html5",o.media.loop=!0===o.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),o.media.pausetimer=void 0!==t&&void 0!==t.media&&(!0===t.media.pausetimer||!1!==t.media.pausetimer&&"loopandnoslidestop"!==t.media.loop),!0===o.media.loop&&!0===o.media.nextSlideAtEnd&&(o.media.loop=!1),i&&void 0!==o.media&&(o.media.loop=!0,o.media.pausetimer=0),i&&(o.media.loop=void 0);break;case"svg":case"object":o.svg=g(t.svg,{source:"",renderedData:""})}void 0!==o.media&&void 0!==o.media.lastLibrary&&(o.media.imageLib=o.media.lastLibrary,delete o.medialastLibrary),o.toggle=g(t.toggle,{set:!1,text:"",inverse:!1,useHover:!1});var n=!0===i||!0===a?"auto":"audio"===o.type?"54":"image"!==o.type&&"shape"!==o.type&&"video"!==o.type&&"group"!==o.type?"auto":"video"!==o.type?"300px":"320px",l=!0===i||!0===a?"auto":"audio"===o.type?"54":"image"!==o.type&&"shape"!==o.type&&"video"!==o.type&&"group"!==o.type?"auto":"180px",d=!0===i?"auto":"svg"===o.type||"image"===o.type||"video"===o.type,S=!0===i||!0===a?"auto":"image"!==o.type&&"shape"!==o.type&&"video"!==o.type&&"group"!==o.type?"none":"video"!==o.type?300/180:320/180;if(o.size=g(t.size,{width:RVS.F.cToResp({default:n}),height:RVS.F.cToResp({default:l}),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:S}),covermode:"custom",scaleProportional:d}),void 0!==o.size.height.d&&null===o.size.height.d.v&&(o.size.height.d.v="auto"),"svg"===o.type&&(o.size.scaleProportional=!0),o.size.originalWidth=0===o.size.originalWidth||void 0===o.size.originalWidth?o.size.width.d.v:o.size.originalWidth,o.size.originalHeight=0===o.size.originalHeight||void 0===o.size.originalHeight?o.size.height.d.v:o.size.originalHeight,o.position=g(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===o.position||i||(o.position.staticZ=void 0===o.position.staticZ?"default":o.position.staticZ),void 0!==t.position&&void 0!==t.position.zIndex?o.position.zIndex=t.position.zIndex:o.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&&(o.position.zIndex="nA"),o.attributes=g(t.attributes,{alt:"",altOption:"media_library",id:"",classes:"",rel:"",tabIndex:0,title:"",wrapperClasses:"",wrapperId:""}),o.behavior=g(t.behavior,{autoResponsive:"row"!==o.type&&"column"!==o.type&&(!(!i&&!a)||RVS.SLIDER.settings.def.autoResponsive),intelligentInherit:"row"!==o.type&&"column"!==o.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"}),o.group=g(t.group,{puid:-1,groupOrder:i?99999:o.position.zIndex,columnbreakat:"tablet",columnSize:"1/3"}),o.position.position=i?"":void 0!==o.group&&-1==o.group.puid?"absolute":o.position.position,"row"===o.type&&-1===o.group.puid&&(o.group.puid="top"),_opacity="group"!==o.type&&"column"!==o.type&&"row"!==o.type||i||a?0:1,o.timeline=g(t.timeline,{scrollBased:"default",forcePrepare:!1,scrollBasedOffset:0,filtersOnMask:!1,frameToIdle:"frame_1",frames:{frame_0:f({alias:RVS_LANG.enterstage,opacity:_opacity},"frame_0"),frame_1:f({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:f({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:h(),tloop:{use:!1,from:"",to:"",repeat:-1,keep:!0,children:!0}}),o.timeline.tloop=void 0===o.timeline.tloop?{use:!1,from:"",to:"",repeat:-1}:o.timeline.tloop,o.timeline.scrollBased=void 0===o.timeline.scrollBased?"default":o.timeline.scrollBased,o.timeline.scrollBasedOffset=void 0===o.timeline.scrollBasedOffset?0:o.timeline.scrollBasedOffset,o.timeline.frames.frame_0.alias=void 0===o.timeline.frames.frame_0.alias?RVS_LANG.enterstage:o.timeline.frames.frame_0.alias,o.timeline.frames.frame_1.alias=void 0===o.timeline.frames.frame_1.alias?RVS_LANG.onstage:o.timeline.frames.frame_1.alias,o.timeline.frames.frame_999.alias=void 0===o.timeline.frames.frame_999.alias?RVS_LANG.leavestage:o.timeline.frames.frame_999.alias,void 0!==s)for(var c in s)s.hasOwnProperty(c)&&void 0===o.timeline.frames[s[c].id]&&(o.timeline.frames[s[c].id]=f({alias:RVS_LANG.onstage},s[c]));for(var c in o.timeline.frames)o.timeline.frames.hasOwnProperty(c)&&("frame_0"!==c&&"frame_1"!==c&&"frame_999"!==c&&(o.timeline.frames[c]=jQuery.extend(!0,f({alias:o.timeline.frames[c]},c),o.timeline.frames[c])),o.timeline.frames[c]=_(o.timeline.frames[c]),o.timeline.frames[c].timeline.start<0&&(o.timeline.frames[c].timeline.start=0),o.timeline.frames[c].timeline.startRelative<0&&(o.timeline.frames[c].timeline.startRelative=0));for(var c in o.effects=g(t.effects,{parallax:"-",pxmask:!1,attachToBg:!1,effect:"default"}),o.idle=g(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"===o.type||"row"===o.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"!==o.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]},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"===o.type||"column"===o.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 o.idle.borderStyle&&(o.idle.borderStyle=RVS.F.cToResp({default:o.idle.borderStyle})),void 0===o.idle.textStroke||"string"!=typeof o.idle.textStroke.width&&"number"!=typeof o.idle.textStroke.width||(o.idle.textStroke.width=RVS.F.cToResp({default:0,val:o.idle.textStroke.width})),o.idle.fontFamily=void 0===o.idle.fontFamily||""===o.idle.fontFamily||o.idle.fontFamily.toLowerCase()!==o.idle.fontFamily?RVS.F.compareGoogleFontName(o.idle.fontFamily,!0):RVS.F.compareGoogleFontName(o.idle.fontFamily),o.idle.fontFamily=void 0===o.idle.fontFamily?"Roboto":o.idle.fontFamily,o.idle.fontStyle="normal"!==o.idle.fontStyle&&!1!==o.idle.fontStyle,RVS.V.sizes)for(var p=0;p<4;p++)RVS.V.sizes.hasOwnProperty(c)&&(o.idle.margin[RVS.V.sizes[c]].v[p]=parseInt(o.idle.margin[RVS.V.sizes[c]].v[p],0)||0,o.idle.padding[RVS.V.sizes[c]].v[p]=parseInt(o.idle.padding[RVS.V.sizes[c]].v[p],0)||0);for(var c in o.hover=g(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}}),o.actions=g(t.actions,{triggerMemory:"reset",action:[]}),o.actions.inactive_actions=[],o.visibility=g(t.visibility,{visible:!0,locked:!1,d:!0,m:!0,n:!0,t:!0,hideunder:!1,onlyOnSlideHover:!1,publish:!0,alwaysOnCarousel:!1}),o.runtime=g(t.runtime,{internalClass:"",isDemo:!1,unavailable:!1}),void 0!==t.formAttribute&&(o.formAttribute=g(t.formAttribute)),!0!==r&&RVS.S.uniqueIds.push(o.uid),RVS.LIB.ADDONS)RVS.LIB.ADDONS.hasOwnProperty(c)&&(o.addOns[c]=void 0===o.addOns[c]?{enable:!1}:o.addOns[c]);if(void 0!==o.customCSS&&o.customCSS.length>0){o.customCSS=o.customCSS.replace(/\s\s+/g," ");var u=o.customCSS.split(";"),R="";for(var c in u)if(u.hasOwnProperty(c)){var V=u[c].split(":"),m=V[0].replace(/\s/g,"");if(""!==RVS.F.trim(m))switch(m){case"letter-spacing":o.idle.letterSpacing=RVS.F.cToResp({default:V[1]});break;case"text-align":o.idle.textAlign=RVS.F.cToResp({default:V[1]});break;case"text-shadow":-1===V[1].indexOf("none")&&(R+=u[c]);break;default:R+=u[c]+";"}}o.customCSS=R}var y=[];if(void 0!==o.actions){for(var p in o.actions.action)null==o.actions.action[p].migrateMute&&null==o.actions.action[p].rsColorPicker&&null==o.actions.action[p].get&&y.push(o.actions.action[p]);o.actions.action=y}return o}},RVS.F.simplifyLayer=function(e,t){return delete window.follow,"zone"===e.type?jQuery.extend(!0,{},e):jQuery.extend(!0,{},RVS.F.simplifyObject(RVS.F.addLayerObj(e.type,void 0,!0,void 0,void 0,void 0!==e&&void 0!==e.timeline&&void 0!==e.timeline.frameOrder?e.timeline.frameOrder:void 0),jQuery.extend(!0,{},e),t))},RVS.F.simplifyAllLayer=function(e,t){var i={};for(var a in e)e.hasOwnProperty(a)&&(i[a]=RVS.F.simplifyLayer(e[a],t),i[a].type=e[a].type);return i},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||t==="sta_"+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,t,i){return"<option "+(void 0!==t?'data-style="margin-left:'+t+'px"':"")+'data-icon="'+RVS.F.getLayerIcon(e.linebreak?"linebreak":e.type)+'" value="'+(i?"sta_":"")+e.uid+'">'+e.alias+"</option>"}function r(e,t,i,s){var o,n="",l=i?RVS.SLIDER[RVS.SLIDER.staticSlideId].layers:RVS.L;if(s)for(o in l)!l.hasOwnProperty(o)||"video"!==l[o].type&&"audio"!==l[o].type||(n+=a(l[o],t,i));else for(o in l)l.hasOwnProperty(o)&&"zone"!=l[o].type&&(""+l[o].group.puid==""+e||"-1"==e&&"row"==l[o].type)&&("row"==l[o].type||"group"==l[o].type||"column"==l[o].type?(n+=a(l[o],t,i),n+=r(""+l[o].uid,10+t,i,s)):n+=a(l[o],t,i));return n}function s(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-","").replace("sta_",""),0)),{slideid:void 0!==e&&void 0!==e.layer_target&&(e.layer_target.toString().indexOf("static")>=0||e.layer_target.toString().indexOf("sta")>=0)?RVS.SLIDER.staticSlideId:RVS.S.slideId,targetid:-1==t||isNaN(t)?-1:t}}function o(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 o("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("change","#action_interaction",(function(){RVS.F.buildActionList()})),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]?(o(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(){jQuery(this).closest(".lal_group").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.DOC.trigger("layerActionOpened"),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&&(String(RVS.S.actionTrgtLayerId).indexOf("sta")>=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-","").replace("sta_","")]: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("sta")>=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-","").replace("sta_","")],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("sta")>=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("sta")>=0;if(a=r?a.replace("static-","").replace("sta_",""):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],a=[],r=[];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=s(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?r.push(i[o]):a.push(i[o])}t.actions.action=a.slice(0),t.actions.inactive_actions=r.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 a='<li class="single_layer_action '+(i==RVS.S.actionIdx?"selected":"")+'">',r=s(t.actions.action[i]);if(a+='<span class="action_tooltip_evnt">'+RVS_LANG["layerevent_"+t.actions.action[i].tooltip_event]+"</span>",-1!=r.targetid)if(void 0!==RVS.SLIDER[r.slideid].layers[r.targetid]&&void 0!==r.slideid){var o=(""+r.slideid).indexOf("static")>=0;a+='<i class="sla_icon material-icons">'+RVS.F.getLayerIcon(RVS.SLIDER[r.slideid].layers[r.targetid].linebreak?"linebreak":RVS.SLIDER[r.slideid].layers[r.targetid].type,RVS.SLIDER[r.slideid].layers[r.targetid].subtype)+'</i><span class="sla_layername">'+RVS.SLIDER[r.slideid].layers[r.targetid].alias+(o?"(S)":"")+"</span>",o||RVS.H[r.targetid].w.addClass("actionDependent")}else"backgroundvideo"===t.actions.action[i].layer_target||"firstvideo"===t.actions.action[i].layer_target?a+='<i class="sla_icon material-icons">videocam</i><span class="sla_layername">'+RVS_LANG[t.actions.action[i].layer_target]+"</span>":a+='<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]?a+='<i class="sla_icon material-icons">'+RVS.LIB.ACTIONTYPES[t.actions.action[i].action].icon+'</i><span class="sla_layername"></span>':a+='<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]?a+='<span class="sla_actionname">'+RVS_LANG["layeraction_"+t.actions.action[i].action]+"</span>":a+='<span class="sla_actionname">'+t.actions.action[i].action+"</span>",a+='<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>',a+="</li>",e.append(a)}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("sta")>=0,a="string"==typeof RVS.S.actionTrgtLayerId?RVS.S.actionTrgtLayerId.replace("static-","").replace("sta_",""):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])]]||(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||RVS.S.actionTrgtLayerId.indexOf("sta_")>=0),a="string"==typeof RVS.S.actionTrgtLayerId?RVS.S.actionTrgtLayerId.replace("static-","").replace("sta_",""):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){e.select=void 0!==e.select?e.select:jQuery("#la_layer_target"),e.showmedia=void 0!==e.showmedia?e.showmedia:null!=e.action&&void 0!==RVS.LIB.ACTIONTYPES[e.action]&&RVS.LIB.ACTIONTYPES[e.action].media;var t,i="";e.addNone&&(i+='<option data-icon="cancel" value="none">'+RVS_LANG.none+"</option>"),e.showmedia&&(i+='<option data-icon="videocam" value="backgroundvideo">'+RVS_LANG.backgroundvideo+"</option>",i+='<option data-icon="videocam" value="firstvideo">'+RVS_LANG.videoactiveslide+"</option>"),""!==(t=r("-1",0,!1,e.showmedia))&&void 0!==t&&(i+='<optgroup label="'+RVS_LANG.currentSlide+'">'+t+"</optgroup>"),e.ignorestatic||-1!==(""+RVS.S.slideId).indexOf("sta")||void 0===RVS.SLIDER.staticSlideId||void 0===RVS.SLIDER[RVS.SLIDER.staticSlideId]||""!==(t=r("-1",0,!0,e.showmedia))&&void 0!==t&&(i+='<optgroup label="'+RVS_LANG.globalLayers+'">'+t+"</optgroup>"),e.select[0].innerHTML=i,e.select.val(e.targetid).ddTP("rebuild",{pre:'<span class="niddsr" style="#style#"><i class="icon_in_dropdown material-icons">#data#</i></span>',preDatas:{data:"icon",style:"style"}}),null!=e.action&&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("sta")&&(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){var t;for(var i in e.list){if(!e.list.hasOwnProperty(i))continue;var r=e.list[i],o="zone"===r.type||"group"===r.type||"row"===r.type||"column"===r.type;let n=RVS.L[r.id],l="zone"===n.type?"":" not_zone_layer";t=RVS.F.cE({t:"li",cN:(o?"withchildren ":"")+(void 0!==n.actions&&n.actions.action.length>0?"actionmarked ":" ")+e.cIdName+" layerlist_element "+e.cIdName+"_"+n.type+" "+n.type+"_"+n.uid+l,id:e.cIdName+"_"+RVS.S.slideId+"_"+n.uid,ds:{puid:n.group.puid,type:n.type,id:n.uid}}),o&&0===r.list.length&&(t.dataset.status="empty"),t.appendChild(s(RVS.L[r.id],o)),o&&a({list:r.list,container:t.querySelector("ul"),showEmpty:!1,cIdName:e.cIdName}),"tllayerlist_element"===e.cIdName&&"top"!==r.id&&"middle"!==r.id&&"bottom"!==r.id&&RVS.F.addLayerFrames(RVS.L[r.id],t),e.container.appendChild(t)}e.showEmpty&&0===e.list.length&&((t=RVS.F.cE({t:"li",cN:e.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>',e.container.appendChild(t))}function r(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)e.hasOwnProperty(i)&&("zone"!==e[i].type&&"row"!==e[i].type&&"column"!==e[i].type&&"group"!==e[i].type||(e[i].list=r(e,e[i].id)));return e}function s(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 o(){jQuery(this).hasClass("collapsed")?this.dataset.wascollapsed=1:jQuery(this).addClass("collapsed")}function n(){1!=this.dataset.wascollapsed&&jQuery(this).removeClass("collapsed"),this.dataset.wascollapsed=0}function l(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 d(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 S(){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 r([],-1)},RVS.F.getLayerBeforeZIndex=function(e){var t,i,a=r([],RVS.L[e].group.puid);switch(RVS.L[e].type){case"row":case"column":for(i in a)a.hasOwnProperty(i)&&a[i].sort<RVS.L[e].group.groupOrder&&(void 0===t||a[i].sort>RVS.L[t].group.groupOrder)&&(t=a[i].id);break;default:for(i in a)a.hasOwnProperty(i)&&a[i].zIndex>RVS.L[e].position.zIndex&&(void 0===t||a[i].zIndex<RVS.L[t].position.zIndex)&&(t=a[i].id)}return t},RVS.F.getLayerAfterZIndex=function(e){var t,i,a=r([],RVS.L[e].group.puid);switch(RVS.L[e].type){case"row":case"column":for(i in a)a.hasOwnProperty(i)&&a[i].sort>RVS.L[e].group.groupOrder&&(void 0===t||a[i].sort<RVS.L[t].group.groupOrder)&&(t=a[i].id);break;default:for(i in a)a.hasOwnProperty(i)&&a[i].zIndex<RVS.L[e].position.zIndex&&(void 0===t||a[i].zIndex>RVS.L[t].position.zIndex)&&(t=a[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(){l({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=r([],-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)),a({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,s,S=0;jQuery(e.container+" ."+e.cIdName).draggable({helper:"clone",opacity:.5,axis:"y",start:function(t,n){if("zone"!=this.dataset.type){"row"===this.dataset.type&&RVS.TL.TL.addClass("layer_in_drag");var d=jQuery(RVS.S.llcache[RVS.S.slideId][e.cacheSub]);n.helper.width(d.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(o),"row"===this.dataset.type&&jQuery("."+e.cIdName+"_row").each(o),r.length>0&&r.hasClass("ps--active-y")&&RVS.F.layerListScrollable("update"),setTimeout((function(){l(e)}),50),s=setInterval((function(){r.length>0&&r.hasClass("ps--active-y")&&(a=d.offset().top,S<a+r[0].scrollTop+20&&r[0].scrollTop>0?(r[0].scrollTop--,l(e)):S>parseInt(a,0)+parseInt(i,0)+r[0].scrollTop-20&&r[0].scrollTop<i&&(r[0].scrollTop++,l(e)))}),5)}else jQuery(this).draggable("disable")},drag:function(i,a){if("zone"!=this.dataset.type){var r=d({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="",o=18;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<o?"beforeitemdrop":"afteritemdrop"),"top"!==r.id&&"bottom"!==r.id&&"middle"!==r.id||(s=r.cover<o&&"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<o?"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 n=RVS.F.isParent(this.dataset.id,r.id);s="group"==this.dataset.type&&n?"":"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<o?"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<o&&"zone"===r.type&&"top"===r.id&&(s="beforeitemdrop"),"zone"===r.type&&"bottom"===r.id&&(s="afterzonedrop")}var l,c=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!=(l=document.getElementById(e.cIdName+"_"+RVS.S.slideId+"_"+r.puid))&&l.classList.add("grouptodropinlist"):"column"==r.type&&"group"!==this.dataset.type&&null!=(l=document.getElementById(e.cIdName+"_"+RVS.S.slideId+"_"+r.id))&&l.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&&c.classList.add("grouptodropinlist"):null!=(l=document.getElementById(e.cIdName+"_"+RVS.S.slideId+"_"+r.puid))&&l.classList.add("grouptodropinlist")),""!==s&&void 0!==c&&c.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(s),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(n),"row"===this.dataset.type&&jQuery("."+e.cIdName+"_row").each(n);var o,l=d({y:i.pageY});if(!1!==l){if(i.pageY<t[1].y||!0===l.found){o="";var S=18;switch(this.dataset.type){case"row":"top"!==l.puid&&"bottom"!==l.puid&&"middle"!==l.puid||(o=l.cover<S?"before":"after"),l.cover>=S&&("top"===l.id||"bottom"===l.id||"middle"===l.id)&&(o="zone"),l.cover<S&&"middle"===l.id&&(l.id="top",o="zonebottom"),l.cover<S&&"bottom"===l.id&&(l.id="middle",o="zonebottom");break;case"column":l.puid===this.dataset.puid&&(o=l.cover<S?"before":"after");break;default:var c=RVS.F.isParent(r,l.id);o="group"==this.dataset.type&&c?o:"group"==this.dataset.type&&"group"==l.type&&"-1"!==l.puid?l.cover<S-1?"before":"":"group"!=l.type||RVS.F.hasChildren(l.id)?l.cover<S&&"column"!==l.type&&"row"!==l.type&&("zone"!==l.type||"top"===l.id)?"before":l.cover<S&&"column"===l.type?"column":l.cover>S-1&&"row"!==l.type&&"column"!==l.type&&"group"!==l.type&&"zone"!==l.type?"after":l.cover>S-1&&"column"===l.type?"column":l.cover>S-1&&"group"===l.type?"group":-1!=l.puid&&"bottom"!==l.puid||"zone"!==l.type?o:"after":l.cover<12?"before":l.cover>11&&l.cover<24?"group":"after"}}else switch(this.dataset.type){case"row":case"column":break;default:o="after",l.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"===o&&"column"!==RVS.S.DaD.dragInListFromType&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+r+".position.position",val:"relative",uid:r}),""!==o&&RVS.F.sortLayer({layer:r,target:o,dropto:o,env:l.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));S(),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),S(),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=o.bind(e)}function i(e){e.scheduled||(e.scheduled=!0,e.raf(a.bind(null,e)))}function a(e){var t,a=e.writes,s=e.reads;try{s.length,r(s),a.length,r(a)}catch(e){t=e}if(e.scheduled=!1,(s.length||a.length)&&i(e),t){if(t.message,!e.catch)throw t;e.catch(t)}}function r(e){for(var t;t=e.shift();)t()}function s(e,t){var i=e.indexOf(t);return!!~i&&!!e.splice(i,1)}var o=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 s(this.reads,e)||s(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 n=e.fastdom=e.fastdom||new t;"function"==typeof define?define((function(){return n})):"object"==typeof module&&(module.exports=n)}("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]&&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.C.copyToClipboardHandle=document.getElementById("do_copy_clipboard_layer"),RVS.C.pasteFromClipboardHandle=document.getElementById("do_paste_clipboard_layer"),RVS.C.copyToClipboardHandle.addEventListener("click",RVS.F.copyToClipboardHandle_FC),RVS.C.pasteFromClipboardHandle.addEventListener("click",RVS.F.pasteFromClipboardHandle_FC),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(){jQuery(this).closest(".mdl_group").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),n=(e=o[0].selectionStart,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,i.types=a,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"),window.shiftdown&&window.altdown)switch(e.keyCode){case 67:RVS.F.copyToClipboardHandle_FC();break;case 86:RVS.F.pasteFromClipboardHandle_FC()}if("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:window.shiftdown||RVS.DOC.trigger("do_copy_layer");break;case 86:window.shiftdown||RVS.DOC.trigger("do_paste_layer");break;case 74:!0!==window.altdown&&RVS.DOC.trigger("do_duplicate_layer");break;case 79:document.getElementById("magnet_fr_sticky_inh").checked=!0,t=!0;break;case 73:document.getElementById("magnet_fr_sticky").checked=!0,t=!0;break;case 85:document.getElementById("magnet_fr_none").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"shape":""!==RVS.L[this.dataset.uid].idle.backgroundImage&&("objectlibrary"===RVS.L[this.dataset.uid].idle.bgimagelib?jQuery("#shape_layer_object_library_button").trigger("click"):jQuery("#shape_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),jQuery("#selectbydraw").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||!(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 m in u)u.hasOwnProperty(m)&&(o=u[m],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(s=a.length;s<e.cols.length;s++)RVS.F.addLayerToLayers({type:"column",puid:i,alias:"column"});for(a=RVS.F.getColumnsInRow({layerid:i}),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)&&(r=RVS.selLayers[a],-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=[],o=[],n=RVS.F.getFirstSelectedType("group"),l=RVS.F.getFirstSelectedType("column"),d=0==n?0==l?RVS.F.getFirstSelectedType("row"):l:n,S=[];for(var c in window.backupCopyPaste={...window.copyPasteLayers.layers},d=null==(d=0==d?"-1":void 0!==RVS.L[d]&&"row"==RVS.L[d].type?RVS.F.getColumnsInRow({layerid:d,type:"column"})[0]:d)||0==d||null==RVS.L[d]?"-1":d,RVS.S.pastedLayerNewToOld={},RVS.S.pastedLayerOldToNew={},window.copyPasteLayers.layers)if(window.copyPasteLayers.layers.hasOwnProperty(c)){var p=window.copyPasteLayers.layers[c].uid,u=window.copyPasteLayers.layers[c].group.puid,R=RVS.F.isDeeperGroup(window.copyPasteLayers.layers[c]);if(r.push(""+p),"-1"!=d||""+u!="-1"&&void 0===window.copyPasteLayers.layers[u]){switch(window.copyPasteLayers.layers[c].type){case"group":R||"-1"==d?u="-1":"column"==RVS.L[d].type?u=d:"group"==RVS.L[d].type&&""+RVS.L[d].group.puid=="-1"&&window.copyPasteLayers.layers[c].copiedFromUid==d&&"-1"!==d&&RVS.L[d].group.puid;break;case"column":void 0!==window.copyPasteLayers.layers[u]&&"row"===window.copyPasteLayers.layers[u].type||-1!==(u=!1!==d&&"-1"!==d&&"row"==RVS.L[d].type?d:RVS.F.addLayerToLayers({type:"row",alias:"row",buildHTMLLayer:!1,copyPaste:"copy"}))&&-1===jQuery.inArray(u,S)&&S.push(u);break;case"row":u="-1";break;default:u=u>=0&&u<=5e3&&void 0===window.copyPasteLayers.layers[u]||""+u=="-1"&&"-1"!==d?d:u}if(void 0!==RVS.L[u]&&"column"==RVS.L[u].type&&("-1"==window.copyPasteLayers.layers[c].group.puid||null==window.copyPasteLayers.layers[window.copyPasteLayers.layers[c].group.puid]||"column"!==window.copyPasteLayers.layers[window.copyPasteLayers.layers[c].group.puid].type))for(var V in RVS.V.sizes)if(RVS.V.sizes.hasOwnProperty(V)){var m=RVS.V.sizes[V];window.copyPasteLayers.layers[c].position.position="relative",window.copyPasteLayers.layers[c].position.horizontal[m].v="center",window.copyPasteLayers.layers[c].position.vertical[m].v="middle",window.copyPasteLayers.layers[c].position.x[m].v=0,window.copyPasteLayers.layers[c].position.y[m].v=0}window.copyPasteLayers.layers[c].group.puid=u}}for(var c in window.copyPasteLayers.layers)window.copyPasteLayers.layers.hasOwnProperty(c)&&RVS.F.notChildrenOfList(""+window.copyPasteLayers.layers[c].group.puid,r,window.backupCopyPaste)&&(p=window.copyPasteLayers.layers[c].uid,a.push({type:window.copyPasteLayers.layers[c].type,duplicateId:p,ignoreBackupGroup:!0,ignoreLayerList:!0,ignoreOrderHTMLLayers:!0,copyPaste:"paste"}),s.push(""+p));for(var y in RVS.F.openBackupGroup({id:"addLayer",txt:"Copy Paste Layers",icon:"layers",lastkey:"layer"}),a)a.hasOwnProperty(y)&&(o.push(e=RVS.F.addLayer(a[y])),"row"==RVS.L[e].type?S.push(e):"column"===RVS.L[e].type&&-1===jQuery.inArray(RVS.L[p].group.puid,S)&&S.push(RVS.L[p].group.puid));for(e in RVS.S.pastedLayerNewToOld)if(RVS.S.pastedLayerNewToOld.hasOwnProperty(e)&&null!=RVS.L[e]&&null!=RVS.L[e].actions){for(t in RVS.L[e].actions.action)RVS.L[e].actions.action.hasOwnProperty(t)&&null!=RVS.L[e].actions.action[t].layer_target&&(i=RVS.L[e].actions.action[t].layer_target,void 0!==RVS.S.pastedLayerOldToNew[i]&&(RVS.L[e].actions.action[t].layer_target=RVS.S.pastedLayerOldToNew[i]));i=RVS.L[e].labelfor,void 0!==RVS.S.pastedLayerOldToNew[i]&&(RVS.L[e].labelfor=RVS.S.pastedLayerOldToNew[i]),void 0!==RVS.F.updateReferencedLayerIDs&&void 0!==RVS.F.updateReferencedLayerIDs[RVS.L[e].subtype]&&RVS.F.updateReferencedLayerIDs[RVS.L[e].subtype](e)}if(S.length>0)for(var y in S)S.hasOwnProperty(y)&&void 0!==RVS.L[S[y]]&&RVS.F.fixColumnsInRows({layerid:S[y]});for(y in RVS.F.closeBackupGroup({id:"addLayer"}),RVS.F.buildLayerLists({force:!0,ignoreRebuildHTML:!0}),RVS.F.reOrderHTMLLayers(),o)o.hasOwnProperty(y)&&(RVS.F.updateDuplicatedLayerActionDependencies(o[y],window.copyPasteLayers.layers[s[y]].copiedFromUid),RVS.F.selectLayers({id:o[y],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_"}),m=RVS.F.cE({t:"div",cN:"_lc_content_"});if("column"===t.type||"row"===t.type)var y=RVS.F.cE({t:"span",cN:"_c_margins _topm_"}),g=RVS.F.cE({t:"span",cN:"_c_margins _botm_"}),h=RVS.F.cE({t:"span",cN:"_c_margins _lefm_"}),f=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(m),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(y),s.appendChild(g),s.appendChild(h),s.appendChild(f),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(m),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)m.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:y,bottom:g,left:h,right:f},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}):"shape"===t.type&&t.idle.backgroundImage?t.media&&!0!==t.media?.loaded?!0!==e.ignoreDrawLayers&&RVS.F.drawHTMLLayer({uid:e.uid}):(tpGS.gsap.set(RVS.H[e.uid].w,{visibility:"hidden"}),RVS.F.preloadImage({uid:e.uid,slideId:RVS.S.slideId,image:t.idle.backgroundImage,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 RVS.S.pastedLayerNewToOld=null==RVS.S.pastedLayerNewToOld?{}:RVS.S.pastedLayerNewToOld,RVS.S.pastedLayerOldToNew=null==RVS.S.pastedLayerOldToNew?{}:RVS.S.pastedLayerOldToNew,void 0!==e.layerobject?((t=jQuery.extend(!0,{},e.layerobject)).uid="copy"===e.copyPaste?"copy"+window.copyPasteLayers.amount:RVS.F.getUniqueid(),RVS.S.pastedLayerNewToOld[t.uid]=void 0!==e.layerobject.copiedFromUid?e.layerobject.copiedFromUid:e.layerobject.uid,RVS.S.pastedLayerOldToNew[void 0!==e.layerobject.copiedFromUid?e.layerobject.copiedFromUid:e.layerobject.uid]=t.uid,(t=RVS.F.addLayerObj(t)).alias=void 0!==e.prefix?e.prefix+" "+t.alias.replace(/Copy/g,""):(1==RVS.S.ignoreCopyPrefix?"":"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+'"'+(e.fromobjlib?' data-fromobjlib="true"':"")+' 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+'"'+(e.fromobjlib?' data-fromobjlib="true"':"")+' 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 m;if(void 0===e.duplicateId)a=RVS.F.addLayerToLayers({type:"column",puid:e.puid,alias:"column",buildHTMLLayer:!0});else for(o in m=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:m,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 y=e.libfilters.split(",");RVS.F.openObjectLibrary({types:y,filter:"undefined"==e.filter||null==e.filter?"all":e.filter,selected:["undefined"==e.selected||null==e.selected?y[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.manageShapeContentShow(),void 0!==RVS.selLayers[0]&&"label"==RVS.L[RVS.selLayers[0]].htmltag&&(RVS.C.jLBLFor=null==RVS.C.jLBLFor?jQuery("#label_for_target"):RVS.C.jLBLFor,RVS.F.upadteLayerTargetDropDowns({select:RVS.C.jLBLFor,targetid:RVS.L[RVS.selLayers[0]].labelfor,ignorestatic:!0})))},RVS.DOC.on("updateLabelFor",(function(e,t){void 0!==t&&"label"===t.val&&(RVS.C.jLBLFor=null==RVS.C.jLBLFor?jQuery("#label_for_target"):RVS.C.jLBLFor,RVS.F.upadteLayerTargetDropDowns({select:RVS.C.jLBLFor,targetid:RVS.L[RVS.selLayers[0]].labelfor,ignorestatic:!0}))})),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.getLayerHierArchy=function(e,t){return null==t&&(t=[]),null!=RVS.L[e]&&"row"!==RVS.L[e].type&&""+RVS.L[e].group.puid!="-1"&&(t.push(RVS.L[e].group.puid),t=RVS.F.getLayerHierArchy(RVS.L[e].group.puid,t)),t},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 m=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);m+=RVS.S.DaD.snapHF.prio>6?"right"===l?0:"left"===l?0-d:0-d/2:RVS.S.DaD.snapHF.prio>3?"right"===l||"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-m,V.x=Math.round(m)}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 y=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);y+=RVS.S.DaD.snapVF.prio>6?"bottom"===n?0:"top"===n?0-S:0-S/2:RVS.S.DaD.snapVF.prio>3?"bottom"===n||"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-y,V.y=Math.round(y)}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 g=RVS.F.getSnapPoint(RVS.S.updatePosToX,RVS.S.updatePosToY);RVS.S.updatePosToX=g.x,RVS.S.updatePosToY=g.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,a=10;for(var r in RVS.S.DaD.snapH){if(!RVS.S.DaD.snapH[r].hasOwnProperty)continue;let e=RVS.S.DaD.snapH[r],s=Math.abs(t.x-e.x+RVS.S.DaD.scrolldiff.x),o=Math.abs(t.x-e.xc+RVS.S.DaD.scrolldiff.x),n=Math.abs(t.x-e.xr+RVS.S.DaD.scrolldiff.x),l=Math.abs(t.x-(e.x-i)+RVS.S.DaD.scrolldiff.x),d=Math.abs(t.x-(e.xr+i)+RVS.S.DaD.scrolldiff.x),S=Math.abs(t.m-e.x+RVS.S.DaD.scrolldiff.x),c=Math.abs(t.m-e.xc+RVS.S.DaD.scrolldiff.x),p=Math.abs(t.m-e.xr+RVS.S.DaD.scrolldiff.x),u=Math.abs(t.e-e.x+RVS.S.DaD.scrolldiff.x),R=Math.abs(t.e-e.xc+RVS.S.DaD.scrolldiff.x),V=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),s<a&&s<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:0,uid:r,d:s,prio:1,w:e.w}:i>5&&l<a&&l<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:0-i,uid:r,d:s,prio:1,w:e.w}:RVS.S.DaD.snapHF.prio>=2&&o<=a&&RVS.S.DaD.snapHF.offset>e.w/2?RVS.S.DaD.snapHF={offset:e.w/2,uid:r,prio:2,d:o,w:e.w}:RVS.S.DaD.snapHF.prio>=3&&n<=a&&RVS.S.DaD.snapHF.offset>e.w?RVS.S.DaD.snapHF={offset:e.w,uid:r,prio:3,d:n,w:e.w}:i>5&&RVS.S.DaD.snapHF.prio>=3&&d<a&&RVS.S.DaD.snapHF.offset>e.w?RVS.S.DaD.snapHF={offset:e.w+i,uid:r,prio:3,d:n,w:e.w,gap:1}:RVS.S.DaD.snapHF.prio>=4&&S<=a&&S<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:0,d:S,uid:r,prio:4,w:e.w}:RVS.S.DaD.snapHF.prio>=5&&c<=a&&c<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:e.w/2,d:c,uid:r,prio:5,w:e.w}:RVS.S.DaD.snapHF.prio>=6&&p<=a&&p<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:e.w,d:p,uid:r,prio:6,w:e.w}:RVS.S.DaD.snapHF.prio>=7&&u<=a&&u<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:0,d:u,uid:r,prio:7,w:e.w}:i>5&&RVS.S.DaD.snapHF.prio>=7&&grl<i&&u<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:0-i,d:u,uid:r,prio:7,w:e.w,gap:1}:RVS.S.DaD.snapHF.prio>=8&&R<=a&&R<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:e.w/2,d:R,uid:r,prio:8,w:e.w}:RVS.S.DaD.snapHF.prio>=9&&V<=a&&V<RVS.S.DaD.snapHF.d?RVS.S.DaD.snapHF={offset:e.w,d:V,uid:r,prio:9,w:e.w}:i>5&&RVS.S.DaD.snapHF.prio>=9&&gre<i&&V<RVS.S.DaD.snapHF.d&&(RVS.S.DaD.snapHF={offset:e.w+i,d:V,uid:r,prio:9,w:e.w,gap:1})}for(var r in t.m=t.y+t.h/2,t.e=t.y+t.h,RVS.S.DaD.snapV){if(!RVS.S.DaD.snapV[r].hasOwnProperty)continue;let e=RVS.S.DaD.snapV[r],s=Math.abs(t.y-e.y+RVS.S.DaD.scrolldiff.y),o=Math.abs(t.y-e.ym+RVS.S.DaD.scrolldiff.y),n=Math.abs(t.y-e.yb+RVS.S.DaD.scrolldiff.y),l=Math.abs(t.y-(e.y-i)+RVS.S.DaD.scrolldiff.y),d=Math.abs(t.y-(e.yb+i)+RVS.S.DaD.scrolldiff.y),S=Math.abs(t.m-e.y+RVS.S.DaD.scrolldiff.y),c=Math.abs(t.m-e.ym+RVS.S.DaD.scrolldiff.y),p=Math.abs(t.m-e.yb+RVS.S.DaD.scrolldiff.y),u=Math.abs(t.e-e.y+RVS.S.DaD.scrolldiff.y),R=Math.abs(t.e-e.ym+RVS.S.DaD.scrolldiff.y),V=Math.abs(t.e-e.yb+RVS.S.DaD.scrolldiff.y),m=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);s<a&&s<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:0,uid:r,d:s,prio:1,h:e.h}:i>5&&l<a&&s<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:0-i,uid:r,d:s,prio:1,h:e.h,gap:1}:RVS.S.DaD.snapVF.prio>=2&&o<a&&RVS.S.DaD.snapVF.offset>e.h/2?RVS.S.DaD.snapVF={offset:e.h/2,uid:r,prio:2,d:o,h:e.h}:RVS.S.DaD.snapVF.prio>=3&&n<a&&RVS.S.DaD.snapVF.offset>e.h?RVS.S.DaD.snapVF={offset:e.h,uid:r,prio:3,d:n,h:e.h}:i>5&&RVS.S.DaD.snapVF.prio>=3&&d<a&&RVS.S.DaD.snapVF.offset>e.h?RVS.S.DaD.snapVF={offset:e.h+i,uid:r,prio:3,d:n,h:e.h,gap:1}:RVS.S.DaD.snapVF.prio>=4&&S<a&&S<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:0,d:S,uid:r,prio:4,h:e.h}:RVS.S.DaD.snapVF.prio>=5&&c<a&&c<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:e.h/2,d:c,uid:r,prio:5,h:e.h}:RVS.S.DaD.snapVF.prio>=6&&p<a&&p<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:e.h,d:p,uid:r,prio:6,h:e.h}:RVS.S.DaD.snapVF.prio>=7&&u<a&&u<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:0,d:u,uid:r,prio:7,h:e.h}:i>5&&RVS.S.DaD.snapVF.prio>=7&&m<a&&u<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:0-i,d:u,uid:r,prio:7,h:e.h,gap:1}:RVS.S.DaD.snapVF.prio>=8&&R<a&&R<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:e.h/2,d:R,uid:r,prio:8,h:e.h}:RVS.S.DaD.snapVF.prio>=9&&V<a&&V<RVS.S.DaD.snapVF.d?RVS.S.DaD.snapVF={offset:e.h,d:V,uid:r,prio:9,h:e.h}:i>5&&RVS.S.DaD.snapVF.prio>=9&&y<a&&V<RVS.S.DaD.snapVF.d&&(RVS.S.DaD.snapVF={offset:e.h+i,d:V,uid:r,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){var t=!0;if(RVS.L[e].behavior.intelligentInherit){for(var a in i)i.hasOwnProperty(a)&&RVS.F.intelligentUpdate({calcShrink:!1,key:i[a],index:"v",uid:e,backup:!1,notEdited:t,reset:t});for(var r=0;r<4;r++)RVS.F.intelligentUpdate({calcShrink:!1,key:"padding",index:r,uid:e,backup:!1,notEdited:t,reset:t}),RVS.F.intelligentUpdate({calcShrink:!1,key:"margin",index:r,uid:e,backup:!1,notEdited:t,reset:t})}},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.F.saveSelectedLayersToCache=function(e){RVS.DOC.trigger("do_copy_layer");var t,i,a,r,s=RVS.F.simplifyAllLayer(window.copyPasteLayers.layers,"min");for(i in s)if(s.hasOwnProperty(i)){if(void 0!==s[i].actions&&void 0!==s[i].actions.action)for(a in s[i].actions.action)if(s[i].actions.action.hasOwnProperty(a)&&void 0!==s[i].actions.action[a].layer_target)for(r in t=s[i].actions.action[a].layer_target,s)if(s.hasOwnProperty(r)&&s[r].copiedFromUid==t){s[i].actions.action[a].layer_target=s[r].uid;break}if(void 0!==s[i].labelfor)for(r in t=s[i].labelfor,s)if(s.hasOwnProperty(r)&&s[r].copiedFromUid==t){s[i].labelfor=s[r].uid;break}void 0!==RVS.F.updateReferencedLayerExports&&void 0!==RVS.F.updateReferencedLayerExports[s[i].subtype]&&(s[i]=RVS.F.updateReferencedLayerExports[s[i].subtype](i,s))}if(2==e){for(i in s)s.hasOwnProperty(i)&&(delete s[i].media,delete s[i].copiedFromUid,delete s[i].toggle,delete s[i].visibility,delete s[i].behavior,void 0!==s[i].size&&(delete s[i].size.maxHeight,delete s[i].size.minHeight,delete s[i].size.maxWidth,delete s[i].size.minWidth),s[i].alias=s[i].alias.replace("Copy ",""));return console.log(s),[JSON.stringify(s),s.copy0.alias.replace("-"," ").replace("-"," ")]}return JSON.stringify(s)},RVS.F.copyToClipboardHandle_FC=function(){var e=RVS.F.saveSelectedLayersToCache();window.isSecureContext?(navigator.clipboard.writeText("RSJSON1.0"+e),RVS.F.showInfo({content:RVS_LANG.clipboardexport,type:"success",showdelay:0,hidedelay:2,hideon:"",event:""})):RVS.F.showInfo({content:RVS_LANG.clipboardwarning,type:"goodtoknow",showdelay:0,hidedelay:3,hideon:"",event:""})},RVS.F.pasteFromClipboardHandle_FC=function(){new Promise(((e,t)=>{(async()=>{try{if(window.isSecureContext)if(null==navigator.clipboard.readText)RVS.F.showInfo({content:RVS_LANG.clipboardfirefox,type:"goodtoknow",showdelay:0,hidedelay:5,hideon:"",event:""});else{const t=await navigator.clipboard.readText();e(t)}else RVS.F.showInfo({content:RVS_LANG.clipboardwarning,type:"goodtoknow",showdelay:0,hidedelay:3,hideon:"",event:""})}catch(e){t(e)}})()})).then((e=>{if(null!=e&&-1!=e.indexOf("RSJSON1.0")){RVS.F.showInfo({content:RVS_LANG.clipboardimport,type:"success",showdelay:0,hidedelay:2,hideon:"",event:""}),e=e.replace("RSJSON1.0","");var t=JSON.parse(e);for(var i in RVS.LIB.OBJ.import={toImport:[]},t)t.hasOwnProperty(i)&&RVS.LIB.OBJ.import.toImport.push(t[i].uid);RVS.F.showWaitAMinute({fadeIn:100,text:RVS_LANG.importinglayers}),RVS.S.ignoreCopyPrefix=!0,RVS.F.importSelectedLayers(RVS.F.checkLayersRelativeAbsolute(t),!0)}else RVS.F.showInfo({content:RVS_LANG.clipboardnotvalid,type:"warning",showdelay:0,hidedelay:2,hideon:"",event:""})}))},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());RVS.F.updateAllstartRelatives()}}))}(),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 m=/^([0-9]+)(?:[\._-]([0-9]+))?(?:[\._-]([0-9]+))?(?:[\._+-]?(.*))?$/;function y(e){var t=null,i=null,a=null,r=null;return(e=m.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 g(e,t,i,a,r,s,o,n){this.N=e,this.k=n}function h(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("")},g.prototype.getName=function(){return this.N};var f=new g("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=y(_(e)),a=y(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=y(s),new g(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 k(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)}C(e,"inactive")}function C(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 A(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}h.prototype.parse=function(){var e;if(-1!=this.a.indexOf("MSIE")||-1!=this.a.indexOf("Trident/")){e=v(this);var t=y(_(this)),i=null,a=w(this.a,/Trident\/([\d\w\.]+)/,1);i=-1!=this.a.indexOf("MSIE")?y(w(this.a,/MSIE ([\d\w\.]+)/,1)):y(w(this.a,/rv:([\d\w\.]+)/,1));""!=a&&y(a),e=new g("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=y(w(this.a,/Presto\/([\d\w\.]+)/,1)),y(_(this)),null!==e.c||y(w(this.a,/rv:([^\)]+)/,1)),-1!=this.a.indexOf("Opera Mini/"))e=y(w(this.a,/Opera Mini\/([\d\.]+)/,1)),e=new g("OperaMini",0,0,0,v(this),0,0,new R(!1,!1));else{if(-1!=this.a.indexOf("Version/")&&null!==(e=y(w(this.a,/Version\/([\d\.]+)/,1))).c){e=new g("Opera",0,0,0,v(this),0,0,new R(10<=e.c,!1));break e}e=null!==(e=y(w(this.a,/Opera[\/ ]([\d\.]+)/,1))).c?new g("Opera",0,0,0,v(this),0,0,new R(10<=e.c,!1)):new g("Opera",0,0,0,v(this),0,0,new R(!1,!1))}else/OPR\/[\d.]+/.test(this.a)||/AppleWeb(K|k)it/.test(this.a)?e=L(this):-1!=this.a.indexOf("Gecko")?(e="Unknown",t=new V,y(_(this)),t=!1,-1!=this.a.indexOf("Firefox")?(e="Firefox",t=3<=(t=y(w(this.a,/Firefox\/([\d\w\.]+)/,1))).c&&5<=t.g):-1!=this.a.indexOf("Mozilla")&&(e="Mozilla"),i=y(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 g(e,0,0,0,v(this),0,0,new R(t,!1))):e=f;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 P={sa:"serif",ra:"sans-serif",qa:"monospace"};function M(e,t,i){for(var a in P)if(P.hasOwnProperty(a)&&t===e.v[P[a]]&&i===e.v[P[a]])return!0;return!1}function z(e){var t=e.t.o.offsetWidth,i=e.u.o.offsetWidth;t===e.v.serif&&i===e.v["sans-serif"]||e.k.ga&&M(e,t,i)?o()-e.oa>=e.X?e.k.ga&&M(e,t,i)&&(null===e.ca||e.ca.hasOwnProperty(e.m.getName()))?H(e,e.$):H(e,e.ka):function(e){setTimeout(s((function(){z(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 N(e,t,i,a,r){if(i=i||{},0===t.length&&r)k(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")]),C(l,"fontloading",S),l=null,(l=new A(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")]),C(e,"active")):k(e.A))}function Q(e){this.K=e,this.B=new O,this.pa=new h(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||""}A.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))),z(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")]),C(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)}C(t,"fontinactive",e),G(this)},Q.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")]),C(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))},Q.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(){N(t,i,a||null,r||null,s)}),0)}(r,i,e,t,a)})):(e=0==--this.V,this.U--,e&&0==this.U?k(t):(this.R||this.T)&&N(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 q={latin:"BESbswy",cyrillic:"&#1081;&#1103;&#1046;",greek:"&#945;&#946;&#931;",khmer:"&#x1780;&#x1781;&#x1782;",Hanuman:"&#x1780;&#x1781;&#x1782;"},U={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 h(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=U[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=q[i[0]])&&(this.M[a]=i))}for(this.M[a]||(i=q[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 Q(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","scrubber"];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,i,a,r){e[a]=void 0!==t.presets[a]?t.presets[a]:e[a],"text"===r?jQuery("#nav_"+i+"_"+a).val(e[a]):"dd"===r?jQuery("#nav_"+i+"_"+a).val(e[a]).ddTP("change"):"onOff"===r&&(e[a]="true"===e[a]||!0===e[a],RVS.F.closestClass(document.querySelector("#nav_"+i+"_"+a),"tponoffwrap")&&(document.querySelector("#nav_"+i+"_"+a).checked=e[a],RVS.F.turnOnOff(RVS.F.closestClass(document.querySelector("#nav_"+i+"_"+a),"tponoffwrap"))))}function V(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 m(){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("mouseenter","#ddTP-sr_scrubber_style-results li",(function(){var e=this.id.split("-result-")[1].split("-")[0],t=this.id.split(e+"-")[1];RVS.F.drawNavigation({type:"scrubber",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(),m()},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"),m(),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 V="arrows";for(var R in r)if(r.hasOwnProperty(R)){var y=document.querySelector('[data-pcontainer="#nav_settings"] .selected');if(y&&y.dataset&&y.dataset.forms&&y.dataset.forms.indexOf(r[R])>=0){V=r[R];break}}var g=void 0!==RVS.SLIDER.settings.nav[V]?RVS.SLIDER.settings.nav[V].style:"1000";RVS.F.pickNavType(document.getElementById("rs_ne_selector_"+V));var h=jQuery('#rs_ne_navlist .rs_ne_nav_skin[data-handle="'+g+'"]');h.length>0&&S(h[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:"scrubber"===e.type?5e3: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 g in t.presets=void 0===t.presets?{}:t.presets,S)if(S.hasOwnProperty(g)){s=void 0!==p[r=S[g]]?p[r]:r.data,o=!1,"default"!==t.preset&&void 0!==t.presets&&void 0!==t.presets[g]?(s=t.presets[g],o=t.presets[g+"-def"]):(t.presets[g]=s,t.presets[g+"-def"]=o),o=(n=y(o))?" checked='checked' ":"";var h=RVS.F.cE({t:"row",cN:"directrow navpresetrow"}),f=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+g+"-def",cN:"presetToCustom nav_"+e.type+"_custom_defaults "+V,ds:{evt:"redrawNavigation",evtparam:e.type,r:"nav."+e.type+".presets."+g+"-def"}});switch(_.innerText=r.title,w.checked=n,f.appendChild(_),v.appendChild(L),v.appendChild(w),h.appendChild(f),h.appendChild(v),r.type){case"font-family":var b=RVS.F.cE({t:"select",cN:"navstyleinput searchbox tos2 presetToCustom "+F,id:u+g,ds:{evt:"redrawNavigation",evtparam:e.type,theme:"minl120",r:R+"nav."+e.type+".presets."+g}});for(var I in f.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+g,cN:"presetToCustom"+F+" navstyleinput",ds:{evt:"redrawNavigation",evtparam:e.type,r:R+"nav."+e.type+".presets."+g}})).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+g}});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),f.appendChild(l)}else f.appendChild(d);break;case"color":case"color-rgba":s.indexOf(",")>=0&&-1==s.indexOf("(")&&(s=s.split(",").length>3?"rgba("+s+")":"rgb("+s+")"),h.className="directrow",(d=RVS.F.cE({t:"input",type:"text",id:u+g,cN:"navstyleinput presetToCustom my-color-field",ds:{evt:"redrawNavigation",evtparam:e.type,r:R+"nav."+e.type+".presets."+g,visible:"true",editing:RVS.F.capitalise(e.type)+" "+r.title,navcolor:"1",mode:"single"}})).name=g,d.value=s,f.appendChild(d)}m.appendChild(h)}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 V,m;e.attr("class","aable markable tparrows tp-leftarrow "+S),t.attr("class","aable markable tparrows tp-rightarrow "+S),V=m=n.markup;var y=u({id:d}),g=u({id:l});V=V.replace("##title##",void 0===RVS.SLIDER[l]?"Title":RVS.SLIDER[l].slide.title),m=m.replace("##title##",void 0===RVS.SLIDER[d]?"Title":RVS.SLIDER[d].slide.title),e.html(c+m),t.html(V),e.find(".tp-arr-imgholder").css(y),e.find(".tp-arr-imgholder").attr("id","arrows_"+d),t.find(".tp-arr-imgholder").css(g),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 h=n.markup,f=0;f<=RVS.SLIDER.slideIDs.length-1;f++){var v=RVS.SLIDER.slideIDs[f],_=h.replace("##title##",RVS.SLIDER[v].slide.title),L=0==f?"selected":"",w=jQuery('<div class="tp-bullet '+L+'">'+_+"</div>");w.find(".tp-bullet-image").css(u({id:v})).attr("id","bullets"+v),i.append(w)}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(h=n.markup,f=0;f<=Math.min(s.amount,RVS.SLIDER.slideIDs.length-1);f++){v=RVS.SLIDER.slideIDs[f],_=h.replace("##title##",RVS.SLIDER[v].slide.title),L=0==f?"selected":"";for(var b=0;b<10;b++){var I=void 0!==RVS.SLIDER[v].slide.info.params[b]?RVS.SLIDER[v].slide.info.params[b].val:"";void 0!==I&&I.length>0&&(_=_.replace("##param"+b+"##",I))}var F=jQuery('<div class="'+a[r.type].single+" "+L+'">'+_+"</div>");F.find("."+a[r.type].single+"-image").css(u({id:v})).attr("id",r.type+"_"+v),a[r.type].inner.append(F)}var D="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:[D]})}else"scrubber"===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),R(s,n,r.type,"translate","text"),R(s,n,r.type,"thumbnail","onOff"),R(s,n,r.type,"hoverScale","onOff"),R(s,n,r.type,"handleScale","text"),R(s,n,r.type,"trackPattern","dd"),R(s,n,r.type,"handleArrows","onOff"),R(s,n,r.type,"skew","text"),R(s,n,r.type,"thumbOffset","text"),R(s,n,r.type,"thumbScale","text"),R(s,n,r.type,"handleProgress","onOff"),R(s,n,r.type,"progressAlign","dd"),R(s,n,r.type,"scale","text"),R(s,n,r.type,"fade","onOff"),R(s,n,r.type,"animScale","onOff"),R(s,n,r.type,"spin","onOff"))}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)V(e,s.left),V(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()}))})),V(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),V(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.SLIDER.settings.nav.scrubber.set&&RVS.F.updatePresetInputs({type:"scrubber",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":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+";":"";var 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,m,y,g,h=50,f=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?(-1===t.search("idle")?(r=[t,jQuery.extend(!0,{},a[t]),i,RVS.selLayers[0]],"hover"==t&&(r[1].cursor=a.idle.cursor)):r=[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,m,y=jQuery.extend(!0,{},i.horizontal),g=jQuery.extend(!0,{},i.vertical),h=4,f=RVS.V.sizes.slice().reverse();for(;RVS.screen!==f[0];)f.shift();for(m=0;m<4;m++)y[RVS.V.sizes[m]].e=!1;for(h=f.length,u=h-1,d+="px",S+="px",m=0;m<h;m++)V=f[m],R=m===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,{},y),pV=jQuery.extend(!0,{},g),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]);f=RVS.V.sizes.slice();for(;RVS.screen!==f[0];)f.shift();f.length&&f.shift();for(h=f.length,m=0;m<h;m++)V=f[m],i.x[V].e=!1,i.y[V].e=!1,i.horizontal[V]=jQuery.extend(!0,{},y[V]),i.vertical[V]=jQuery.extend(!0,{},g[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])),"hover"===n&&RVS.F.updateLayerObj({path:"idle.cursor",val:l.cursor}),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(){y.remove(),S.remove(),g.off(".rcmenu"),jQuery(document.body).off(".rcmenu"),jQuery("#main_hor_toolbar, #the_right_toolbar, #timeline_settings").off(".rcmenu"),o=V=t=i=n=m=e=r=p=u=y=S=g=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(),y.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(){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"))}function k(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),y=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=y.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(y),t=jQuery(".rc-menu-single"),i=t.parents(".toolbar_dd_subdrop_wrap"),n=jQuery(".rc-menu-paste"),m=jQuery("#rc_menu_panzoom"),g=RVS.WIN.on("resize.rcmenu",I),l=!0}(),jQuery(this).hasClass("_lc_")?(y.hide(),x.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=y.removeClass(F),c=RVS.SLIDER[RVS.S.slideId].slide.bg.type,m[a="image"===c||"external"===c?"show":"hide"]()),u.pageX<g.width()-e.width()-h?L=u.pageX+v:(L=u.pageX-e.width()-v,R="rc-align-right"),u.pageY<g.height()-e.height()-f?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",k),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=y(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){if("slide_bg_color"===e)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 m(t){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 i=0,a=0,r=!1;void 0!==RVS.TL[RVS.S.slideId].panzoom&&(a=RVS.TL[RVS.S.slideId].panzoom.time(),i=RVS.TL[RVS.S.slideId].panzoom.progress(),r=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=function(e){return{duration:parseInt(e.duration)/1e3,ease:e.ease,scalestart:parseInt(e.fitStart)/100,scaleend:parseInt(e.fitEnd)/100,rotatestart:parseFloat(e.rotateStart),rotateend:parseFloat(e.rotateEnd),blurstart:e.blurStart,blurend:e.blurEnd,offsetstart:[e.xStart,e.yStart],offsetend:[e.xEnd,e.yEnd]}}(RVS.SLIDER[RVS.S.slideId].slide.panzoom),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(a,!0,!0),e.containerWidth=void 0===e.containerWidth?e.container.width():e.containerWidth,s({left:i*(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()})),r&&RVS.TL[RVS.S.slideId].panzoom.play()}}else delete RVS.SBGS[RVS.S.slideId].n.panzoom}function y(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 g(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(){m(!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),"carousel"==RVS.SLIDER.settings.type&&null==RVS.S.carouselSettingsInit&&(RVS.F.updateEasyInputs({container:jQuery("#form_slidergeneral_caroussel"),trigger:"init",visualUpdate:!0}),RVS.S.carouselSettingsInit=!0),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,m(),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||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||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(y(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=g(e.static,{isstatic:!1,overflow:"hidden",position:"front",lastEdited:!0}),i.runtime=g(e.runtime,{collapsedGroups:[]}),i.title=g(e.title,"New Slide"),i.child=g(e.child,{parentId:"",language:""}),i.bg=g(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=g(e.thumb,{customThumbSrc:"",customThumbSrcId:"",customAdminThumbSrc:"",customAdminThumbSrcId:"",dimension:"orig"}),i.info=g(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=g(e.attributes,{title:"",titleOption:"media_library",class:"",data:"",id:"",attr:"",alt:"",altOption:"media_library",deeplink:""}),i.publish=g(e.publish,{from:"",to:"",state:"published"}),i.timeline=g(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=y({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(r=1;r<i.length;r++)n.alt.push(i[r])}return n}(i.timeline,t):g(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=g(e.visibility,{hideAfterLoop:0,hideOnMobile:!1,hideFromNavigation:!1}),i.effects=g(e.effects,{parallax:"-",fade:"default",blur:"default",grayscale:"default"}),i.panzoom=g(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=g(e.seo,{set:!1,link:"",linkHelp:"auto",slideLink:"nothing",target:"_self",z:"front",type:"regular",tag:"l"}),i.nav=g(e.nav,{arrows:{presets:{}},thumbs:{presets:{}},tabs:{presets:{}},bullets:{presets:{}},scrubber:{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 y(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},m={left:0,top:0},y={x:0,y:0};function g(e){for(var t=e.querySelectorAll("img"),i=0;i<t.length;i++)t[i].setAttribute("draggable",!1)}function h(e){for(var t=e.querySelectorAll(".gm_bl_list li"),i=RVS.ENV.guide.tutorial,a=0;a<t.length;a++)i[a]&&(t[a].querySelector("a").setAttribute("href",i[a].url),t[a].querySelector("span").textContent=i[a].title)}function f(e){for(var t=0;t<RVS.SLIDER.slideIDs.length;t++){var i,a=RVS.SLIDER[RVS.SLIDER.slideIDs[t]];if("slide"===e.target){if(""!==(i=v(a.slide,e.path))&&e.check){if(v(a.slide,e.check)===e.checkValue)return i}else if(""!==i)return i}else if("layer"===e.target||"action"===e.target){for(var r in a.layers)if(a.layers.hasOwnProperty(r)){var s=a.layers[r];if("action"!==e.target){if(e.checkTarget){if(a.layers[r].type===e.checkTarget)return!0;continue}if(""!==(i=v(a.layers[r],e.path))&&e.check){if(v(a.slide,e.check)===e.checkValue)return i}else if(""!==i)return i}else if(s.actions)for(var o=s.actions.action,n=0;n<o.length;n++){var l=o[n];if(e.checkValue.includes(",")&&(e.checkValue=e.checkValue.split(",")),e.checkValue&&(l.action===e.checkValue||Array.isArray(e.checkValue)&&e.checkValue.includes(l.action)))return!0}}}else if("static"===e.target){var d=RVS.SLIDER[RVS.SLIDER.staticSlideId];for(var r in d.layers)if(d.layers.hasOwnProperty(r)&&"top"!==r&&"middle"!==r&&"bottom"!==r)return!0}else if("slider"===e.target){if(i=v(RVS.SLIDER,e.path),e.special){if("skins"===e.special)return!(!i.colorsAtStart&&i.colors[0]&&"#ff0000"===i.colors[0].v&&i.colors[1]&&"#ffffff"===i.colors[1].v&&i.colors[2]&&"#00ffff"===i.colors[2].v)}else{if(e.unValue&&i!==e.unValue)return!0;if(""!==i)return i}}}return i}function v(e,t){t=t.split(".");for(var i=0;i<t.length&&"object"==typeof e;i++)e=e[t[i]];return e}function _(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 L(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 w(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=y.x=this.scrollLeft,RVS.F.setRulers()})),RVS.C.rb.on("ps-scroll-y",(function(){y.x=this.scrollLeft,y.y=this.scrollTop,RVS.S.rb_ScrollY=y.y=this.scrollTop,RVS.F.setRulers()})),RVS.S.TRTIS_initied=!0)}function b(e,t){("force"===t||u||void 0===u)&&("flickr"===RVS.SLIDER.settings.sourcetype&&D(),"facebook"===RVS.SLIDER.settings.sourcetype&&x(),"youtube"===RVS.SLIDER.settings.sourcetype&&k()),u=!1,RVS.DOC.trigger("updatesliderthumb")}function I(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 F(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(I(e))}function D(){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 x(){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 k(){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 C(e){var t=!1,i={w:parseInt(RVS.F.GW("d")),h:parseInt(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=parseInt(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 O(t,i){var a=RVS.SLIDER.settings.size.custom[RVS.screen],r=C(RVS.screen),s=parseInt(a?RVS.F.GW(RVS.screen):Math.min(r.w,RVS.ENV.grid_sizes[RVS.screen])),n=parseInt(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="none",m=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:V,height:n+"px"}),tpGS.gsap.set(RVS.C.UL,{minWidth:parseInt(R,0)+parseInt(m,0)+"px",maxWidth:V,width:d,minHeight:parseInt(l,0)+parseInt(m,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),g=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}),g=g+RVS.S.dim_offsets.carouseltop+RVS.S.dim_offsets.navtop,y=Math.max(0,y),g=Math.max(0,g);var h=document.getElementById("slide_"+RVS.S.slideId);"carousel"===RVS.SLIDER.settings.type?(h&&tpGS.gsap.set(h,{width:u?p:s,height:n,top:g,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:g}),tpGS.gsap.set(".slots_wrapper",{top:0,left:0,maxWidth:"none",maxHeight:"none"})):(h&&tpGS.gsap.set(h,{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:g}),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&&T(),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===y&&(l.spinAngle=1),l.space=parseFloat(l.space),c.scale=1;var m=e[dim]/2,y=Math.max(Math.min(l.spinAngle,360/d),-360/d),g=m/Math.sin(y/2*Math.PI/180),h=(Math.sqrt(g*g-m*m)+l.space)*Math.sign(y);"2d"===l.spin&&"h"===l.orientation?h+=(y<=0?0:1)*e.height:"2d"===l.spin&&(h+=(y<=0?0:1)*e.width);var f=(Math.floor(l.maxItems/2),Math.floor(l.maxItems/2));c[trans]=(f-Math.floor(l.maxItems/2))*(parseFloat(e[dim])+parseInt(t.carousel.space))+e[trans],"2d"===l.spin?(c.rotation=y*(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=y*(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=y*(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:g,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"}),RVS.F.sliderNavPositionUpdate({type:"scrubber"}),w("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 T(){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=C(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("none"==RVS.SLIDER.settings.size.minHeightFullScreen?0:RVS.SLIDER.settings.size.minHeightFullScreen),void 0!==d&&(d.innerHTML=Math.round(RVS.F.GW(RVS.screen))+"px")}function j(e,t){requestAnimationFrame((function(){tpGS.gsap.set(RVS.S.ulInner,{backgroundImage:""});var i=RVS.SLIDER.settings,a=1==e&&void 0!==t?window.RSColor.get(t):window.RSColor.get(i.layout.bg.color),r=1==e&&void 0!==t?"":i.layout.bg.useImage&&void 0!==i.layout.bg.image?i.layout.bg.image:"";""!==r?tpGS.gsap.set([RVS.S.ulInner,"#slider_bg_image"],{backgroundPosition:i.layout.bg.position,"background-size":i.layout.bg.fit,backgroundRepeat:i.layout.bg.repeat,backgroundImage:"url("+r+")"}):a.indexOf("gradient")>=0?tpGS.gsap.set([RVS.S.ulInner,"#slider_bg_image"],{background:a}):"transparent"!==a?tpGS.gsap.set([RVS.S.ulInner,"#slider_bg_image"],{backgroundColor:a,backgroundImage:"none"}):tpGS.gsap.set([RVS.S.ulInner,"#slider_bg_image"],{backgroundColor:"transparent",backgroundImage:RVS.S.defaultMainPNG,backgroundRepeat:"repeat","background-size":"16px 16px"}),E(),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 E(){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 A(){requestAnimationFrame(P)}function P(){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||"bottom"===e.vertical||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||"left"===e.horizontal||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||"top"===e.vertical?0:0-e.radius,marginLeft:"left"===e.horizontal||"right"===e.horizontal?0:0-e.radius,backgroundColor:"transparent"}),M();RVS.C.pbar.removeClass("deactivated")}else RVS.C.pbar.addClass("deactivated")}function M(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 z(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}):M({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}):M({bgcolor:t});break;case"sliderbgcolor":i?j():(tpGS.gsap.set(RVS.C.UL,{background:t}),j(!0,t));break;case"sliderTabBgColor":RVS.F.bgUpdate("tabs",t);break;case"sliderThumbBgColor":RVS.F.bgUpdate("thumbs",t);break;case"module_spinner_color":F(t)}}function H(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}):z(window.lastColorEditjObj[0].name,i,o),s&&!0!==o))for(var n in s.ref)if("slider"===s.ref[n].type&&z(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 B(e){var t={};for(var i in t.addOns=jQuery.extend(!0,{},e.addOns)||{},t.version=RVS.ENV.revision,t.alias=N(e.alias,""),t.pakps=N(e.pakps,!1),t.shortcode=N(e.shortcode,""),t.type=N(e.type,"standard"),t.layouttype=N(e.layouttype,"fullwidth"),t.sourcetype=N(e.sourcetype,"gallery"),t.title=N(e.title,"New Slider"),t.googleFont=N(e.googleFont,[]),t.id=N(e.id,""),t.class=N(e.class,""),t.wrapperclass=N(e.wrapperclass,""),t.snap=N(e.snap,{adjust:"none",snap:!1,helpLines:!1,gap:20}),"specific_posts"==e.source?.post?.subType&&(e.source.post.subType="specific_post"),t.source=N(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=N(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=N(e.size,{enableUpscaling:!1,respectAspectRatio:!1,disableForceFullWidth:!1,custom:{d:!0,n:!1,t:!1,m:!1},minHeightFullScreen:0,minHeight:0,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.size.minHeight="none"==t.size.minHeight||""==t.size.minHeight?0:t.size.minHeight,t.size.minHeightFullScreen="none"==t.size.minHeightFullScreen||""==t.size.minHeightFullScreen?0:t.size.minHeightFullScreen,t.size.width)t.size.width.hasOwnProperty(i)&&t.size.width[i]&&(t.size.width[i]=parseInt(t.size.width[i],0));for(var i in t.size.height)t.size.height.hasOwnProperty(i)&&t.size.height[i]&&(t.size.height[i]=parseInt(t.size.height[i],0));for(var i in t.size.editorCache)t.size.editorCache.hasOwnProperty(i)&&t.size.editorCache[i]&&(t.size.editorCache[i]=parseInt(t.size.editorCache[i],0));return t.codes=N(e.codes,{css:"",javascript:"",javascript7:""}),t.codes.javascript7??="",t.carousel=N(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=N(e.hero,{activeSlide:-1}),t.layout=N(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=N(e.visibility,{hideSelectedLayersUnderLimit:0,hideAllLayersUnderLimit:0,hideSliderUnderLimit:0}),t.general=N(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,freezeOnBlur:!1,mISB:!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=N(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},scrubber:{set:!1,preset:"default",animSpeed:"1000ms",on:!0,direction:"horizontal",s:1e3,dIn:1e3,dOut:1200,show:!0,space:5,width:100,widthMin:100,height:30,align:"slider",anim:"fade",innerOuter:"inner",offsetX:0,offsetY:20,vertical:"bottom",horizontal:"center",innerOuter:"inner",wrapperColor:"transparent",spanWrapper:!1,padding:5,thumbScale:100,handleScale:100,hoverScale:!1,thumbnail:!1,handleProgress:!1,progressAlign:"left",scale:100,fade:!0,animScale:!1,translate:0,spin:!1,handleArrows:!0,trackPattern:"dots",minSize:"60%",thumbOffset:0,skew:0,changeOnRelease:!1}}),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"),void 0===t.nav.scrubber||""!=t.nav.scrubber.style&&null!=t.nav.scrubber.style||(t.nav.scrubber.style="5000")),t.troubleshooting=N(e.troubleshooting,{alternateImageType:"off",alternateURL:"",jsNoConflict:!1,jsInBody:!1,outPutFilter:"none",simplify_ie8_ios4:!1}),t.parallax=N(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",omulti:1,smulti:1,env:"single",dir:"same"}}),t.modal=N(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=N(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=N(e.scrolltimeline,{set:!1,fixed:!1,fixedStart:2e3,fixedEnd:4e3,layers:!1,ease:"none",speed:500,pullcontent:!1}),t.skins=N(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 N(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,B({}),B(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"),RVS.C.parllaxMouseSelect=jQuery("#slider_parallax_mouse_sens_event"),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))_(RVS.SLIDER.settings.skins.colors[e],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"),O(!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"},_(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_editorMode??"css"]=window.rs_jscss_editor.getValue(),window.rs_jscss_editorMode=this.dataset.mode,window.rs_jscss_editor.setValue(RVS.SLIDER.settings.codes[this.dataset.mode]),window.rs_jscss_editor.setOption("mode","javascript7"==this.dataset.mode?"javascript":this.dataset.mode),"javascript7"==this.dataset.mode?(jQuery('.advanced_api_content[data-version="6"]').hide(),jQuery('.advanced_api_content[data-version="7"]').show()):(jQuery('.advanced_api_content[data-version="6"]').show(),jQuery('.advanced_api_content[data-version="7"]').hide())})),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_editorMode??"css"]=window.rs_jscss_editor.getValue(),RVS.F.RSDialog.close()})),RVS.DOC.on("device_area_dimension_update",(function(){O(!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(){O(!1),RVS.F.redrawSlideBG(),"slidertype"===e&&A(),RVS.S.lastSliderType!==RVS.SLIDER.settings.type&&("carousel"==RVS.SLIDER.settings.type?RVS.F.setS2Option({select:RVS.C.parllaxMouseSelect,enableValue:"mousedrag",update:!0}):("mousedrag"==RVS.SLIDER.settings.parallax.mouse.type&&(RVS.SLIDER.settings.parallax.mouse.type="mouse"),RVS.F.setS2Option({select:RVS.C.parllaxMouseSelect,disableValue:"mousedrag",update:!0})),RVS.S.lastSliderType=RVS.SLIDER.settings.type),(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(){O(!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(),O(!1),RVS.F.setRulers(),RVS.F.updateContentDeltas(),w("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",j),RVS.DOC.on("drawBGOverlay",E),RVS.DOC.on("sliderProgressUpdate",A),RVS.DOC.on("coloredit colorcancel",H),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",D),RVS.DOC.on("facebooksourcechange",x),RVS.DOC.on("youtubesourcechange",k),RVS.DOC.on("loadStreamDependencies",b),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(I()),(isNaN(e)||parseInt(e,10)<6)&&F()})),RVS.DOC.on("scrollUpdates",(function(){w("update")}))}(),RVS.F.buildRuler(),RVS.F.sliderUpdateAllFields(),RVS.DOC.trigger("updateShortCode"),w(),l=document.getElementById("show_c_height"),void 0!==(d=document.getElementById("show_c_width"))&&(d.innerHTML=Math.round(RVS.F.GW(RVS.screen))+"px"),b(),RVS.F.checkSliderSource(),RVS.F.ajaxRequest("get_global_settings",{},(function(e){e.success&&(RVS.globals=RVS.F.getNewGlobalObject(e.global_settings),window.initGlobalSettings=!0,RVS.DOC.trigger("globalSettingsInited"))})),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(){T()}))}),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 O(!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),A(),j(!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.SLIDER.settings.nav.scrubber.set&&RVS.F.updateNavStyleSelection({init:e,type:"scrubber"})},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.SLIDER.settings.nav.scrubber.set&&RVS.F.drawNavigation({init:e,type:"scrubber"})},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)-y.x/RVS.zoom+RVS.S.dim_offsets.navleft,y:e.offset.y-(y.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="15px",i="overruler"===RVS.S.builderHover||"overbuilder"===RVS.S.builderHover?"block":"hidden",a=e.x,o=Math.max(0,e.y-m.top);requestAnimationFrame((function(){tpGS.gsap.set(r,{left:a+"px",height:t,display:i}),tpGS.gsap.set(s,{top:o+"px",width:t,display:i})}))},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.F.openHelpGuide("module")})),RVS.DOC.on("click",".mcg_next_page",(function(){window.initQuickGuide.page++,L()})),RVS.DOC.on("click",".mcg_prev_page",(function(){window.initQuickGuide.page--,L(-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),O(!0),RVS.F.updateAvailableDevices(),RVS.F.updateDeviceOnOffBtns(),RVS.F.updateEasyInputs({container:jQuery(".mcg_option_third_wraps"),trigger:"init",path:"settings."})}))),L(),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.openHelpGuide=function(e){var t;if(t="template"===e?[{id:"guideEditContent",title:"Edit Content",links:[{name:"Editing Text",icon:"edit",link:"https://www.sliderrevolution.com/manual/editing-text-from-template-modules/",scan:!1,type:"LAYERS"},{name:"Editing Images",icon:"image",link:"https://www.sliderrevolution.com/manual/editing-images-in-template-modules/",type:"LAYERS",scan:[{target:"layer",type:"image",path:"media.imageUrl",value:"string"},{target:"layer",type:"shape",path:"idle.backgroundImage",value:"string"}]},{name:"Swapping Videos",icon:"play_circle",link:"https://www.sliderrevolution.com/manual/changing-videos-and-dealing-with-cross-site-origin/",scan:[{target:"slide",path:"bg.mpeg",value:"string",check:"bg.type",checkValue:"html5"},{target:"slide",path:"bg.ogv",value:"string",check:"bg.type",checkValue:"html5"},{target:"slide",path:"bg.webm",value:"string",check:"bg.type",checkValue:"html5"},{target:"slide",path:"bg.youtube",value:"string",check:"bg.type",checkValue:"youtube"},{target:"slide",path:"bg.vimeo",value:"string",check:"bg.type",checkValue:"vimeo"},{target:"layer",type:"video",path:"media.mp4Url",value:"string",check:"media.mediaType",checkValue:"html5"},{target:"layer",type:"video",path:"media.ogvUrl",value:"string",check:"media.mediaType",checkValue:"html5"},{target:"layer",type:"video",path:"media.webmUrl",value:"string",check:"media.mediaType",checkValue:"html5"},{target:"layer",type:"video",path:"media.id",value:"string",check:"media.mediaType",checkValue:"youtube"},{target:"layer",type:"video",path:"media.id",value:"string",check:"media.mediaType",checkValue:"vimeo"}],type:"LAYERS"},{name:"Selecting Colors",icon:"palette",link:"https://www.sliderrevolution.com/manual/the-tools-of-the-color-selection-dialogue/",scan:!1,type:"MISC"},{name:"Editing Backgrounds",icon:"wallpaper",link:"https://www.sliderrevolution.com/manual/changing-template-background-colors-and-images/",scan:!1,type:"SLIDES"},{name:"Managing Slides",icon:"rectangle",link:"https://www.sliderrevolution.com/manual/adding-deleting-and-duplicating-slides/",scan:!1,type:"SLIDES"},{name:"Rows, Groups & Global Layers",icon:"table_rows",link:"https://www.sliderrevolution.com/manual/special-layers-rows-groups-backgrounds-global/",scan:[{target:"static"},{target:"layer",path:"row"},{target:"layer",path:"column"},{target:"layer",path:"group"}],type:"LAYERS"}]},{id:"guideTemplateFeatures",title:"Template Features",links:[{name:"Spinner",icon:"loop",link:"https://www.sliderrevolution.com/manual/switching-and-coloring-spinners-a-k-a-pre-loaders/",type:"SLIDER",scan:[{target:"slider",path:"settings.layout.spinner.type",unValue:"off"}]},{name:"Auto Rotate Slideshow",icon:"auto_mode",link:"https://www.sliderrevolution.com/manual/controlling-auto-rotation-of-slides/",type:"SLIDER",scan:[{target:"slider",path:"settings.type",unValue:"hero"}]},{name:"Parallax",icon:"landscape",link:"https://www.sliderrevolution.com/manual/working-with-parallax-effects-in-slider-revolution/",type:"SLIDER",scan:[{target:"slider",path:"settings.parallax.set",unValue:!1}]},{name:"Custom CSS/JS",icon:"code",link:"https://www.sliderrevolution.com/manual/custom-css-and-javascript-with-slider-revolution/",type:"SLIDER",scan:[{target:"slider",path:"settings.codes.css"},{target:"slider",path:"settings.codes.javascript"},{target:"slider",path:"settings.codes.javascript7"}]},{name:"Slider As Modal",icon:"check_box_outline_blank",link:"https://www.sliderrevolution.com/manual/slider-revolution-modules-as-modals/",type:"ACTIONS",scan:[{target:"action",path:"action",checkValue:"open_modal"}]},{name:"Global Color Skin",icon:"palette",link:"https://www.sliderrevolution.com/manual/skin-based-color-schemes/",type:"SLIDER",scan:[{target:"slider",path:"settings.skins",special:"skins"}]},{name:"Timeline Scroll Based",icon:"mouse",link:"https://www.sliderrevolution.com/manual/progress-the-timeline-by-scrolling/",type:"SLIDER",scan:[{target:"slider",path:"settings.scrolltimeline.set"}]},{name:"Scroll Based Effects",icon:"mouse",link:"https://www.sliderrevolution.com/manual/add-scroll-based-visual-effects/",type:"SLIDER",scan:[{target:"slider",path:"settings.scrolleffects.set"}]},{name:"Progress Bar",icon:"horizontal_rule",link:"https://www.sliderrevolution.com/manual/add-and-style-progress-bars/",type:"SLIDER",scan:[{target:"slider",path:"settings.general.progressbar.set"}]},{name:"Fixed on Top",icon:"align_vertical_top",link:"https://www.sliderrevolution.com/manual/fix-modules-on-top-of-page/",type:"SLIDER",scan:[{target:"slider",path:"settings.layout.position.fixedOnTop"}]},{name:"Dynamic Viewport Loading",icon:"hourglass_bottom",link:"https://www.sliderrevolution.com/manual/dynamic-viewport-loading/",type:"SLIDER",scan:[{target:"slider",path:"settings.general.slideshow.viewPort"}]}]},{id:"guideUserInteractions",title:"User Interactions",links:[{name:"Editing Links (actions)",icon:"link",link:"https://www.sliderrevolution.com/manual/editing-links-in-template-modules/",type:"ACTIONS",scan:[{target:"action",path:"action",checkValue:"link,callback,getAccelerationPermission,scrollto,scroll_under"}]},{name:"Link Actions",icon:"link",link:"https://www.sliderrevolution.com/manual/add-and-configure-link-actions/",type:"ACTIONS",scan:[{target:"action",path:"action",checkValue:"link,callback,getAccelerationPermission,scrollto,scroll_under"}]},{name:"Slide Actions",icon:"slideshow",link:"https://www.sliderrevolution.com/manual/adding-and-configuring-slide-actions/",type:"ACTIONS",scan:[{target:"action",path:"action",checkValue:"jumpto,next,prev,pause,resume,toggle_slider,open_modal,close_modal"}]},{name:"Layer Actions",icon:"layers",link:"https://www.sliderrevolution.com/manual/add-and-configure-layer-actions/",type:"ACTIONS",scan:[{target:"action",path:"action",checkValue:"start_in,start_out,start_frame,next_frame,prev_frame,toggle_frames,simulate_click,toggle_class,mtrap_follow,mtrap_unfollow"}]},{name:"Media Actions",icon:"movie",link:"https://www.sliderrevolution.com/manual/adding-and-configuring-media-actions/",type:"ACTIONS",scan:[{target:"action",path:"action",checkValue:"start_video,stop_video,toggle_video,mute_video,unmute_video,toggle_mute_video,toggle_global_mute_video"}]},{name:"Full Screen Actions",icon:"fullscreen",link:"https://www.sliderrevolution.com/manual/adding-and-configuring-fullscreen-actions/",type:"ACTIONS",scan:[{target:"action",path:"action",checkValue:"togglefullscreen,gofullscreen,exitfullscreen"}]},{name:"Arrow Navigation",icon:"swap_horiz",link:"https://www.sliderrevolution.com/manual/activate-and-configure-arrow-navigation/",type:"SLIDER",scan:[{target:"slider",path:"settings.nav.arrows.set"}]},{name:"Bullet Navigation",icon:"more_horiz",link:"https://www.sliderrevolution.com/manual/activate-and-configure-bullet-navigation/",type:"SLIDER",scan:[{target:"slider",path:"settings.nav.bullets.set"}]},{name:"Tab Navigation",icon:"view_column",link:"https://www.sliderrevolution.com/manual/activate-and-configure-tab-navigation/",type:"SLIDER",scan:[{target:"slider",path:"settings.nav.tabs.set"}]},{name:"Thumbs Navigation",icon:"filter_frames",link:"https://www.sliderrevolution.com/manual/add-and-configure-thumbs-navigation/",type:"SLIDER",scan:[{target:"slider",path:"settings.nav.thumbs.set"}]},{name:"Touch, Mouse & Keyboard Navigation",icon:"touch_app",link:"https://www.sliderrevolution.com/manual/configuring-module-navigation-with-touch-keyboard-mouse/",type:"SLIDER",scan:[{target:"slider",path:"settings.nav.mouse.set",unValue:"off"},{target:"slider",path:"settings.nav.swipe.set"},{target:"slider",path:"settings.nav.keyboard.set"}]},{name:"Navigation Editor",icon:"edit_note",link:"https://www.sliderrevolution.com/manual/make-custom-navigation-skins-using-the-navigation-editor/",type:"SLIDER",scan:[{target:"slider",path:"settings.nav.arrows.set"},{target:"slider",path:"settings.nav.bullets.set"},{target:"slider",path:"settings.nav.tabs.set"},{target:"slider",path:"settings.nav.thumbs.set"}]}]},{id:"guideAnimations",title:"Animations",links:[{name:"Slide Transitions",icon:"movie",link:"https://www.sliderrevolution.com/manual/setting-slide-transition-animations/",scan:!1,type:"SLIDES"},{name:"Layer Animation",icon:"play_arrow",link:"https://www.sliderrevolution.com/manual/the-fundamentals-of-animation-in-slider-revolution/#h-learning-path-edit-simple-animations",scan:!1,type:"LAYERS"},{name:"Keyframe Animation",icon:"animation",link:"https://www.sliderrevolution.com/manual/the-fundamentals-of-animation-in-slider-revolution/#h-learning-path-multi-keyframe-animations",scan:!1,type:"LAYERS"}]},{id:"guideAddons",title:"Addons",links:[{name:"Managing Addons",icon:"settings_applications",link:"https://www.sliderrevolution.com/manual/browse-install-and-enable-addons/",scan:!1,type:"ADDONS"},{name:"Advanced Transitions",icon:"movie",link:"https://www.sliderrevolution.com/manual/how-to-use-the-advanced-transitions-addon/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-transitionpack-addon.enable"}]},{name:"Lottie Animations",icon:"whatshot",link:"https://www.sliderrevolution.com/manual/lottie-addon-quick-start/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-lottie-addon.enable"}]},{name:"Scroll Video",icon:"movie",link:"https://www.sliderrevolution.com/manual/scroll-video-addon-guide/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-scrollvideo-addon.enable"}]},{name:"Particle Effects",icon:"blur_on",link:"https://www.sliderrevolution.com/manual/particle-effects-quick-start/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-particles-addon.enable"}]},{name:"Particle Wave",icon:"leaderboard",link:"https://www.sliderrevolution.com/manual/particle-wave-quick-start/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-particlewave-addon.enable"}]},{name:"Distortion",icon:"fingerprint",link:"https://www.sliderrevolution.com/manual/distortion-quick-start/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-liquideffect-addon.enable"}]},{name:"Before & After",icon:"flip",link:"https://www.sliderrevolution.com/manual/before-after-quick-start/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-beforeafter-addon.enable"}]},{name:"Slicey",icon:"picture_in_picture_alt",link:"https://www.sliderrevolution.com/manual/slicey-addon-guide/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-slicey-addon.enable"}]},{name:"Paintbrush",icon:"format_paint",link:"https://www.sliderrevolution.com/manual/paintbrush-addon-guide/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-paintbrush-addon.enable"}]},{name:"Bubble Morph",icon:"bubble_chart",link:"https://www.sliderrevolution.com/manual/bubble-morph-addon-guide/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-bubblemorph-addon.enable"}]},{name:"Customizing Particle Wave",icon:"leaderboard",link:"https://www.sliderrevolution.com/manual/customizing-particle-waves/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-particlewave-addon.enable"}]},{name:"Mousetrap",icon:"my_location",link:"https://www.sliderrevolution.com/manual/mousetrap-addon-guide/",type:"ADDONS",scan:[{target:"slider",path:"settings.addOns.revslider-mousetrap-addon.enable"}]}]},{id:"guideOptPublish",title:"Optimizing & Publishing",links:[{name:"Ensuring Responsiveness",icon:"equalizer",link:"https://www.sliderrevolution.com/manual/checking-to-ensure-modified-content-is-still-responsive/",scan:!1,type:"SLIDER"},{name:"Optimzing Load Speed & Performance",icon:"tune",link:"https://www.sliderrevolution.com/tutorials/optimizing-load-speed-and-performance/",scan:!1,type:"SLIDER"},{name:"Embedding Modules",icon:"add_card",link:"https://www.sliderrevolution.com/manual/add-modules-to-a-page/",scan:!1,type:"SLIDER"}]}]:[{id:"guideModuleAddingContent",title:"Adding Content",links:[{name:"Adding Layers",icon:"layers",type:"LAYERS",scan:!1,link:"https://www.sliderrevolution.com/manual/adding-and-configuring-your-own-layers/"},{name:"Adding Text",icon:"edit",type:"LAYERS",scan:!1,link:"https://www.sliderrevolution.com/manual/configuring-custom-text-layers/"},{name:"Adding Images",icon:"image",type:"LAYERS",scan:!1,link:"https://www.sliderrevolution.com/manual/adding-and-configuring-image-layers/"},{name:"Adding Buttons",icon:"add_box",type:"LAYERS",scan:!1,link:"https://www.sliderrevolution.com/manual/adding-and-configuring-button-layers/"},{name:"Adding Shapes",icon:"interests",type:"LAYERS",scan:!1,link:"https://www.sliderrevolution.com/manual/adding-and-configuring-shape-layers/"},{name:"Adding Videos",icon:"movie",type:"LAYERS",scan:!1,link:"https://www.sliderrevolution.com/manual/adding-and-configuring-video-layers/"},{name:"Adding Audio",icon:"music_note",type:"LAYERS",scan:!1,link:"https://www.sliderrevolution.com/manual/adding-and-configuring-audio-layers/"},{name:"Adding Icons/SVG",icon:"filter_drama",type:"LAYERS",scan:!1,link:"https://www.sliderrevolution.com/manual/adding-and-configuring-icon-and-svg-layers/"},{name:"Backgrounds",icon:"wallpaper",type:"LAYERS",scan:!1,link:"https://www.sliderrevolution.com/manual/configuring-the-background-layer/"}]},{id:"guideModuleGeneralOptions",title:"Module General Options",links:[{name:"Quick Start Guide",icon:"settings",type:"SLIDER",scan:!1,link:"https://www.sliderrevolution.com/manual/custom-module-quick-start/"}]},{id:"guideModuleUserInteractions",title:"User Interactions",links:[{name:"Link Actions",icon:"link",type:"ACTIONS",scan:!1,link:"https://www.sliderrevolution.com/manual/add-and-configure-link-actions/"},{name:"Slide Actions",icon:"slideshow",type:"ACTIONS",scan:!1,link:"https://www.sliderrevolution.com/manual/adding-and-configuring-slide-actions/"},{name:"Layer Actions",icon:"layers",type:"ACTIONS",scan:!1,link:"https://www.sliderrevolution.com/manual/add-and-configure-layer-actions/"},{name:"Media Actions",icon:"pause",type:"ACTIONS",scan:!1,link:"https://www.sliderrevolution.com/manual/adding-and-configuring-media-actions/"},{name:"Full Screen Actions",icon:"fullscreen",type:"ACTIONS",scan:!1,link:"https://www.sliderrevolution.com/manual/adding-and-configuring-fullscreen-actions/"},{name:"Arrow Navigation",icon:"swap_horiz",type:"SLIDER",scan:!1,link:"https://www.sliderrevolution.com/manual/activate-and-configure-arrow-navigation/"},{name:"Bullet Navigation",icon:"more_horiz",type:"SLIDER",scan:!1,link:"https://www.sliderrevolution.com/manual/activate-and-configure-bullet-navigation/"},{name:"Tab Navigation",icon:"view_column",type:"SLIDER",scan:!1,link:"https://www.sliderrevolution.com/manual/activate-and-configure-tab-navigation/"},{name:"Thumbs Navigation",icon:"filter_frames",type:"SLIDER",scan:!1,link:"https://www.sliderrevolution.com/manual/add-and-configure-thumbs-navigation/"},{name:"Touch, Mouse & Keyboard Navigation",icon:"touch_app",type:"SLIDER",scan:!1,link:"https://www.sliderrevolution.com/manual/configuring-module-navigation-with-touch-keyboard-mouse/"},{name:"Navigation Editor",icon:"edit_note",type:"SLIDER",scan:!1,link:"https://www.sliderrevolution.com/manual/make-custom-navigation-skins-using-the-navigation-editor/"}]},{id:"guideModuleAnimations",title:"Animations",links:[{name:"Slide Transitions",icon:"movie",type:"SLIDER",scan:!1,link:"https://www.sliderrevolution.com/manual/setting-slide-transition-animations/"},{name:"Layer Animation",icon:"play_arrow",type:"LAYERS",scan:!1,link:"https://www.sliderrevolution.com/manual/the-fundamentals-of-animation-in-slider-revolution/#h-learning-path-edit-simple-animations"},{name:"Keyframe Animation",icon:"animation",type:"LAYERS",scan:!1,link:"https://www.sliderrevolution.com/manual/the-fundamentals-of-animation-in-slider-revolution/#h-learning-path-multi-keyframe-animations"}]},{id:"guideModuleAddons",title:"Addons",links:[{name:"Managing Addons",icon:"settings_applications",link:"https://www.sliderrevolution.com/manual/browse-install-and-enable-addons/",scan:!1,type:"ADDONS"},{name:"Advanced Transitions",icon:"movie",link:"https://www.sliderrevolution.com/manual/how-to-use-the-advanced-transitions-addon/",type:"ADDONS",scan:!1},{name:"Lottie Animations",icon:"whatshot",link:"https://www.sliderrevolution.com/manual/lottie-addon-quick-start/",type:"ADDONS",scan:!1},{name:"Scroll Video",icon:"movie",link:"https://www.sliderrevolution.com/manual/scroll-video-addon-guide/",type:"ADDONS",scan:!1},{name:"Particle Effects",icon:"blur_on",link:"https://www.sliderrevolution.com/manual/particle-effects-quick-start/",type:"ADDONS",scan:!1},{name:"Particle Wave",icon:"leaderboard",link:"https://www.sliderrevolution.com/manual/particle-wave-quick-start/",type:"ADDONS",scan:!1},{name:"Distortion",icon:"fingerprint",link:"https://www.sliderrevolution.com/manual/distortion-quick-start/",type:"ADDONS",scan:!1},{name:"Before & After",icon:"flip",link:"https://www.sliderrevolution.com/manual/before-after-quick-start/",type:"ADDONS",scan:!1},{name:"Slicey",icon:"picture_in_picture_alt",link:"https://www.sliderrevolution.com/manual/slicey-addon-guide/",type:"ADDONS",scan:!1},{name:"Paintbrush",icon:"format_paint",link:"https://www.sliderrevolution.com/manual/paintbrush-addon-guide/",type:"ADDONS",scan:!1},{name:"Bubble Morph",icon:"bubble_chart",link:"https://www.sliderrevolution.com/manual/bubble-morph-addon-guide/",type:"ADDONS",scan:!1},{name:"Customizing Particle Wave",icon:"leaderboard",link:"https://www.sliderrevolution.com/manual/customizing-particle-waves/",type:"ADDONS",scan:!1},{name:"Mousetrap",icon:"my_location",link:"https://www.sliderrevolution.com/manual/mousetrap-addon-guide/",type:"ADDONS",scan:!1}]},{id:"guideModuleOptiPublish",title:"Optimizing & Publishing",links:[{name:"Ensuring Responsiveness",icon:"equalizer",link:"https://www.sliderrevolution.com/manual/checking-to-ensure-modified-content-is-still-responsive/",scan:!1,type:"SLIDER"},{name:"Optimzing Load Speed & Performance",icon:"tune",link:"https://www.sliderrevolution.com/tutorials/optimizing-load-speed-and-performance/",scan:!1,type:"SLIDER"},{name:"Embedding Modules",icon:"add_card",link:"https://www.sliderrevolution.com/manual/add-modules-to-a-page/",scan:!1,type:"SLIDER"}]}],"module"===e){document.querySelector("#gm_load_tmplib").addEventListener("click",(function(e){e.stopPropagation(),document.location.href=RVS.ENV.admin_url+"#template_library"})),h(rbm_module_guide),i=void 0!==RVS.ENV.guide&&void 0!==RVS.ENV.guide.bottom&&RVS.ENV.guide.bottom.title?RVS.ENV.guide.bottom.title:"Load A Template From The Library",a=void 0!==RVS.ENV.guide&&void 0!==RVS.ENV.guide.bottom&&RVS.ENV.guide.bottom.img?RVS.ENV.guide.bottom.img:RVS.ENV.plugin_url+"admin/assets/images/guide/guide_mod_banner.png",document.querySelector("#rbm_module_guide .gm_br_desc").innerHTML=i,document.querySelector("#rbm_module_guide .gm_br_banner img").setAttribute("src",a)}else{var i=void 0===RVS.ENV.tempGuide||""===RVS.ENV.tempGuide.title?"Require Expert Technical Advice?<br/> Submit a Ticket for Dedicated 1on1 Help.":RVS.ENV.tempGuide.title,a=void 0===RVS.ENV.tempGuide||""===RVS.ENV.tempGuide.img?RVS.ENV.plugin_url+"admin/assets/images/guide/guide_temp_banner.jpg":RVS.ENV.tempGuide.img,r=void 0===RVS.ENV.tempGuide||""===RVS.ENV.tempGuide.url?"https://account.sliderrevolution.com/portal/?redirect_to=supportsystem":RVS.ENV.tempGuide.url,s=void 0===RVS.ENV.tempGuide||""===RVS.ENV.tempGuide.template_img?RVS.ENV.plugin_url+"admin/assets/images/guide/guide_temp_thumb.jpg":RVS.ENV.tempGuide.template_img;r+=(r.includes("?")?"&":"?")+"utm_source=admin&utm_medium=button&utm_campaign=editorguide&utm_content=templatetutorial",document.querySelector("#rbm_template_guide .gm_br_desc").innerHTML=i,document.querySelector("#rbm_template_guide .gm_br_banner img").setAttribute("src",a),document.querySelector("#rbm_template_guide .gm_tl_thumb1").setAttribute("src",s),document.querySelector("#rbm_template_guide .gm_tl_thumb2").setAttribute("src",s),gm_temp_tut.setAttribute("href",r),h(rbm_template_guide),gm_tl_title.textContent=void 0!==RVS.ENV.tempGuide&&RVS.ENV.tempGuide.template_title?RVS.ENV.tempGuide.template_title:RVS.SLIDER.settings.title,void 0!==RVS.ENV.tempGuide&&!r.includes("supportsystem")||RVS.ENV.activated||gm_temp_tut.addEventListener("click",(function(e){e.preventDefault(),RVS.F.showRegisterSliderInfo()}))}document.querySelector("#gt_global_settings").addEventListener("click",(function(){document.location.href=RVS.ENV.admin_url+"#global_settings"})),RVS.F.createHelpLinks(t,"template"===e?".gm_template_collection":".gm_module_collection"),RVS.DOC.on("click",".gm_guide_tile",(function(t){var i=document.querySelector("#"+this.getAttribute("data-guide"));tpGS.gsap.set(".gm_guide_links_wrap",{display:"none"}),tpGS.gsap.set(i,{display:"grid"});var a=this.getBoundingClientRect(),r=i.getBoundingClientRect(),s=document.querySelector("template"===e?"#rbm_template_guide .gm_content":"#rbm_module_guide .gm_content").getBoundingClientRect();tpGS.gsap.set(i,{width:a.width,x:a.left-s.left,y:s.height-(a.top-s.top)>=r.height?a.top-s.top:a.bottom-s.top-r.height})})),RVS.DOC.on("click",".gm_close_guide_links",(function(e){tpGS.gsap.set(".gm_guide_links_wrap",{display:"none"})})),RVS.DOC.on("click","#gt_close",(function(){tpGS.gsap.set(guide_tooltip,{display:"none"})}));var o=function(){RVS.DOC.on("click","#rbm_template_guide .rbm_close, #rbm_module_guide .rbm_close",(function(){if(RVS.F.RSDialog.close(),!guide_tooltip.dataset.showedOnce&&("template"!==e||RVS.globals.templateGuide)&&RVS.globals.moduleGuide){var t=document.querySelector(".help_wrap").getBoundingClientRect();tpGS.gsap.fromTo(guide_tooltip,{opacity:0,x:t.left+t.width/2-250,y:t.bottom+10},{opacity:1,display:"block",onComplete:function(){tpGS.gsap.to(guide_tooltip,{delay:9,opacity:0,display:"none"})}}),guide_tooltip.dataset.showedOnce=!0}})),"template"===e?(RVS.globals.templateGuide&&RVS.F.RSDialog.create({modalid:"rbm_template_guide",bgopacity:.85}),tpGS.gsap.set("#help_menu_module, #gt_module_title",{display:"none"}),help_menu_template.addEventListener("click",(function(e){e.stopPropagation(),RVS.F.RSDialog.create({modalid:"rbm_template_guide",bgopacity:.85})}))):"module"===e&&(RVS.ENV.unsaved&&RVS.globals.moduleGuide&&RVS.F.RSDialog.create({modalid:"rbm_module_guide",bgopacity:.85}),tpGS.gsap.set("#help_menu_template, #gt_template_title",{display:"none"}),help_menu_module.addEventListener("click",(function(e){e.stopPropagation(),RVS.F.RSDialog.create({modalid:"rbm_module_guide",bgopacity:.85})})))};g("template"===e?rbm_template_guide:rbm_module_guide),window.initGlobalSettings?o():RVS.DOC.on("globalSettingsInited",o)},RVS.F.createHelpLinks=function(e,t){for(var i=document.querySelector(t),a=0;a<e.length;a++){var r=e[a],s=r.links,o=document.createElement("div"),n=document.createElement("div"),l=document.createElement("div"),d=document.createElement("i"),S=document.createElement("div");o.classList.add("gm_guide_links_wrap"),o.id=r.id,n.classList.add("gm_guide_links_header"),l.classList.add("gm_guide_links_title"),l.textContent=r.title,d.classList.add("rbm_symbol","material-icons","gm_close_guide_links"),d.textContent="close",S.classList.add("gm_guide_links"),i.appendChild(o),o.appendChild(n),n.appendChild(l),n.appendChild(d),o.appendChild(S);for(var c=0;c<s.length;c++){var p=s[c],u=!1;if(!1===p.scan)u=!0;else if(Array.isArray(p.scan))for(var R=0;R<p.scan.length&&!(u=f(p.scan[R]));R++);if(u){var V=document.createElement("a"),m=document.createElement("i"),y=document.createElement("span"),g=document.createElement("div");V.classList.add("gm_guide_link","gm_blue_highlight"),V.setAttribute("href",p.link+"?utm_source=admin&utm_medium=button&utm_campaign=editorguide&utm_content=manual"),V.setAttribute("target","_blank"),m.classList.add("rbm_symbol","material-icons"),m.textContent=p.icon,y.textContent=p.name,g.classList.add("gm_guide_type","gm_guide_type_"+p.type),g.textContent=p.type,S.appendChild(V),V.appendChild(m),V.appendChild(y),V.appendChild(g)}}}},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()},m=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){O(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 m(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||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||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 y(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||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||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(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&&y(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"),y(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&&(y(e.start,RVS.TL.slts_txt),y(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&&(y(e.start,RVS.TL.fixs_txt),y(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&&y(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&&y(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 y=l===o?a.timeline.frames.frame_0:void 0,g=RVS.TL[RVS.S.slideId].layers[t.layerid][l],h=i.c,f=V(S.sfx.effect,i.m,S.timeline.ease),v=new tpGS.TimelineMax,_=S.timeline.speed/1e3,L=0;g.timeline=new tpGS.TimelineMax,"block"===f.type&&(f.ft[0].background=window.RSColor.get(S.sfx.color),g.timeline.add(tpGS.gsap.fromTo(f.bmask_in,_/2,f.ft[0],f.ft[1],0)),g.timeline.add(tpGS.gsap.fromTo(f.bmask_in,_/2,f.ft[1],f.t,_/2)),"frame_0"===l||"frame_1"===l?g.timeline.add(v.staggerFromTo(h,.05,{autoAlpha:0},{autoAlpha:1,delay:_/2},0),0):"frame_999"===l&&g.timeline.add(v.staggerFromTo(h,.05,{autoAlpha:1},{autoAlpha:0,delay:_/2},0),0));var w,b=m({sessionFilterUsed:a.timeline.sessionFilterUsed,frame:S,layerid:t.layerid,ease:S.timeline.ease,splitAmount:h.length,target:l}),I=l===o?m({sessionFilterUsed:a.timeline.sessionFilterUsed,frame:y,layerid:t.layerid,ease:S.timeline.ease,splitAmount:h.length,target:"frame_0"}):void 0,F="true"==S.mask.use||1==S.mask.use?m({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?m({frame:{transform:{x:y.mask.x,y:y.mask.y,clip:y.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!==y&&(void 0!==y.color&&y.color.use?I.color=window.RSColor.get(y.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!==y)if(void 0!==y.bgcolor&&y.bgcolor.use)(w=window.RSColor.get(y.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 k=0;if(s)for(var C in d)if(d.hasOwnProperty(C)&&S[d[C]].use&&!t.quickRendering){var O=i.splitText[d[C]],T=m({frame:S,source:d[C],ease:x,layerid:t.layerid,splitAmount:O.length,target:l+"_"+d[C]}),j=l===o?m({frame:y,ease:T.ease,source:d[C],layerid:t.layerid,splitAmount:O.length,target:"frame_0_"+d[C]}):void 0;L=parseInt(S[d[C]].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)),A=l===o?R(jQuery.extend(!0,{},j)):void 0,P=p(S[d[C]].direction);delete E.grayscale,delete E.brightness,void 0!==A&&(delete A.grayscale,delete A.brightness),E.stagger="center"===P||"edge"===P?u({each:L,offset:L/2,from:P}):{each:L,from:p(S[d[C]].direction)},E.duration=_,void 0!==A&&delete A.dir,l===o?g.timeline.add(v.fromTo(O,A,E),0):g.timeline.add(v.to(O,E),0),k=Math.max(k,O.length*L)}if(_+=k,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,g.timeline.add(tpGS.gsap.fromTo([i.m,i.bgmask],_,D,F),0)):g.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,g.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&&g.timeline.fromTo(i.bg,_,I,b,0),void 0!==i.bg&&"column"===a.type?g.timeline.fromTo(h,_,c(I),c(b),0):g.timeline.fromTo(h,_,I,b,0)):(void 0!==i.bg&&g.timeline.to(i.bg,_,b,0),void 0!==i.bg&&"column"===a.type?g.timeline.to(h,_,c(b),0):g.timeline.to(h,_,b,0)),void 0!==x&&Array.isArray(x)&&x.indexOf("SFXBounce")>=0&&g.timeline.to(h,_,{scaleY:.5,scaleX:1.3,ease:b.ease+"-squash",transformOrigin:"bottom"},1e-4),"full"===t.timeline){var M=parseInt(S.timeline.start,0)/1e3;i.timeline.addLabel(l,M),i.timeline.add(g.timeline,M),i.timeline.addLabel(l+"_end","+=0.01"),a.timeline.frameToIdle===l&&i.timeline.addLabel("frame_IDLE")}else i.timeline.addLabel(l),i.timeline.add(g.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 z=parseInt(a.hover.speed,0)/1e3;z=0===z?1e-5:z,"column"!==a.type&&"row"!==a.type||i.hover.to(i.bg,z,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],z,{color:i.htr.color,ease:i.htr.ease},0),"column"===a.type?i.hover.to(i.c,z,c(jQuery.extend(!0,{},i.htr)),0):i.hover.to(i.c,z,jQuery.extend(!0,{},i.htr),0),"svg"===a.type&&!0!==a.idle.svg.originalColor&&(i.hover.to(i.svg,z,{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,z,{fill:window.RSColor.get(a.hover.svg.color)},0)),i.hover.to([i.m,i.bgmask],z,{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,N=new tpGS.TimelineMax({}),G=new tpGS.TimelineMax({repeat:-1,yoyo:a.timeline.loop.yoyo_move}),Q=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,q=parseInt(a.timeline.loop.start)/1e3||0,U=q+.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"),N.add(G,0),N.add(Q,0),N.add(W,0),N.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},q),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}),q),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});Q.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(N,U)}"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;var t="power1.inOut",i="power2.inOut";jQuery.fn.revolution=jQuery.fn.revolution||{};var a=_R_is_Editor?RVS._R:jQuery.fn.revolution;_R_is_Editor&&(RVS._R.isNumeric=RVS.F.isNumeric),jQuery.extend(!0,a,{getSlideAnimationObj:function(e,t,i){var r,s={};for(var o in void 0===t.anim&&null==t.in&&(t.in="o:0"),t)if(t.hasOwnProperty(o)&&void 0!==t[o]){var n=t[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||a.loadSlideAnimLibrary(e,{key:i,prst:s.in.prst}),a[e].sbgs[i].slideanimationRebuild=!1,s},loadSlideAnimLibrary:function(e,t){void 0===a.SLTR&&!0!==a.SLTR_loading?(a.SLTR_loading=!0,jQuery.ajax({type:"post",url:a[e].ajaxUrl,dataType:"json",data:{action:"revslider_ajax_call_front",client_action:"get_transitions"},success:function(i,r,s){1==i.success&&(a.SLTR=i.transitions,void 0!==t&&a.setRandomDefaults(e,t.key,t.prst))},error:function(e){console.log("Transition Table can not be loaded"),console.log(e)}})):void 0!==t&&void 0!==a.SLTR&&a.setRandomDefaults(e,t.key,t.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:a.valBeau(e.in.o),x:a.valBeau(e.in.x),y:a.valBeau(e.in.y),r:a.valBeau(e.in.r),sx:a.valBeau(e.in.sx),sy:a.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?a.valBeau(e.in.mo):0,moo:"false"!==e.in.mou&&!1!==e.in.mou?a.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:S(e.out.a),o:a.valBeau(e.out.o),x:a.valBeau(e.out.x),y:a.valBeau(e.out.y),r:a.valBeau(e.out.r),sx:a.valBeau(e.out.sx),sy:a.valBeau(e.out.sy),m:e.out.m,e:e.out.e,row:a.valBeau(e.out.row),col:a.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,t,i){a[e].sbgs[t].random=a.getAnimObjectByKey(i,a.SLTR)},getSlideAnim_AddonDefaults:function(){var e={};for(var t in a.enabledSlideAnimAddons)e=jQuery.extend(!0,e,a[a.enabledSlideAnimAddons[t]].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:a.getSlideAnim_AddonDefaults()}},getAnimObjectByKey:function(e,t){if(a.getAnimObjectCacheKey===e)return a.getAnimObjectCache;var i;for(var r in a.getAnimObjectCacheKey=e,t)if(t.hasOwnProperty(r)&&void 0===i)for(var s in t[r])if(t[r].hasOwnProperty(s)&&void 0===i)if(e===s&&0===e.indexOf("rnd"))(i=t[r][s]).main=r,i.group=s;else for(var o in t[r][s])t[r][s].hasOwnProperty(o)&&void 0===i&&o===e&&((i=t[r][s][o]).main=r,i.group=s);return a.getAnimObjectCache=jQuery.extend(!0,{},i),i},getRandomSlideTrans:function(e,t,i){if(void 0!==a.randomSlideAnimCache&&void 0!==a.randomSlideAnimCache[e]&&void 0!==a.randomSlideAnimCache[e][t])return a.randomSlideAnimCache[e][t][Math.floor(Math.random()*a.randomSlideAnimCache[e][t].length)];for(var r in a.randomSlideAnimCache=void 0===a.randomSlideAnimCache?{}:a.randomSlideAnimCache,a.randomSlideAnimCache[e]=void 0===a.randomSlideAnimCache[e]?{}:a.randomSlideAnimCache[e],a.randomSlideAnimCache[e][t]=void 0===a.randomSlideAnimCache[e][t]?[]:a.randomSlideAnimCache[e][t],i)if(i.hasOwnProperty(r)&&"random"!==r&&"custom"!==r&&("all"==e||r==e))for(var s in i[r])if(i[r].hasOwnProperty(s)&&"icon"!==s&&(""+t=="undefined"||t.indexOf(s)>=0))for(var o in i[r][s])i[r][s].hasOwnProperty(o)&&-1==jQuery.inArray(i[r][s][o].title,["*north*","*south*","*east*","*west*"])&&a.randomSlideAnimCache[e][t].push(o);return a.randomSlideAnimCache[e][t][Math.floor(Math.random()*a.randomSlideAnimCache[e][t].length)]},cbgW:function(e,t){return _R_is_Editor?RVS.RMD.width:"carousel"===a[e].sliderType?a[e].justifyCarousel?a[e].carousel.slide_widths[void 0!==t?t:a[e].carousel.focused]:a[e].carousel.slide_width:a[e].canv.width},cbgH:function(e,t){return _R_is_Editor?RVS.RMD.height:"carousel"===a[e].sliderType?"v"!=a[e].carousel.orientation||"fullscreen"!==a[e].sliderLayout&&!a[e].infullscreenmode?!0===a[e].carousel.justify?a[e].carousel.slide_height:"fullscreen"===a[e].sliderLayout||a[e].infullscreenmode?a[e].module.height:Math.min(a[e].canv.height,a[e].gridheight[a[e].level]):a[e].carousel.slide_height:void 0!==a[e].maxHeight&&a[e].maxHeight>0&&!a[e].fixedOnTop?Math.min(a[e].canv.height,a[e].maxHeight):a[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")),n(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:i,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:i,ms:1e3}},e)},playBGVideo:function(e,t,i){if(_R_is_Editor)i=void 0===i?RVS.SBGS[RVS.S.slideId].n:i;else{if(void 0===i&&(void 0===a[e].pr_next_bg||0===a[e].pr_next_bg.length))return;i=void 0===i?a[e].sbgs[void 0===t?a[e].pr_next_bg[0].dataset.key:t]:i}void 0!==i.bgvid&&i.bgvid.length>0&&(p(e,{},i,"in"),a.resetVideo(i.bgvid,e),a.playVideo(i.bgvid,e,!0),tpGS.gsap.to(i.bgvid[0],.2,{zIndex:30,display:"block",autoAlpha:1,delay:.075,overwrite:"all"}))},stopBGVideo:function(e,t,i){if(_R_is_Editor)i=void 0===i?RVS.SBGS[RVS.S.slideId].n:i;else{if(void 0===i&&(void 0===a[e].pr_next_bg||0===a[e].pr_next_bg.length))return;i=void 0===i?a[e].sbgs[void 0===t?a[e].pr_next_bg[0].dataset.key:t]:i}void 0!==i.bgvid&&i.bgvid.length>0&&(i.drawVideoCanvasImagesRecall=!1,a.stopVideo(i.bgvid,e),tpGS.gsap.to(i.bgvid[0],.2,{autoAlpha:0,zIndex:0,display:"none"}))},SATools:{getOffset:function(e,t,i,r){var s=(""+e).indexOf("%")>=0;return 0==(e=a.SATools.getSpecialValue(e,r,i))||void 0===e?0:s?t*(parseInt(e)/100):parseInt(e)},getSpecialValue:function(e,t,i,r){if(a.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||"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,t);return(""+n).split("(").length>1?parseFloat(n.slice(1,-1))*i+(r?"%":""):n}return"dir"===s?parseFloat(o[0])*i+(r?"%":""):void 0}},getmDim:function(e,t,i){var r=a.cbgW(e,t),s=a.cbgH(e,t);return i.DPR=_R_is_Editor?Math.min(window.devicePixelRatio,2):a[e].DPR,a.maxDimCheck(i,r,s)},maxDimCheck:function(e,t,i){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&&a.ISM&&i>1024)e.DPR=1,r=t,s=i;else{var o={w:null==e.video||e.isVidImg||0==e.video.videoWidth?e.loadobj.width:e.video.videoWidth,h:null==e.video||e.isVidImg||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=i/o.w,l=t/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=t*e.DPR,s=i*e.DPR,e.DPR>1){var S=t/i;o.w>o.h&&o.w<r?(s=(r=Math.max(r,o.w))/S,e.DPR=1):o.h>o.w&&o.h<s&&(r=(s=Math.max(s,o.h))*S,e.DPR=1)}}else e.DPR=1,r=t,s=i;return{width:Math.round(r),height:Math.round(s),w:t,h:i}},updateSlideBGs:function(e,t,i,r){if(_R_is_Editor)i=void 0===i?RVS.SBGS[RVS.S.slideId].n:i;else{if(void 0===i&&(void 0===a[e].pr_next_bg||0===a[e].pr_next_bg.length))return;i=void 0===i?a[e].sbgs[void 0===t?a[e].pr_next_bg[0].dataset.key:t]:i}(r=void 0!==i.mDIM&&r)||(i.mDIM=a.getmDim(e,i.skeyindex,i)),void 0!==i.video?("IMG"!==i.video.tagName&&(i.isVidImg=""),i.cDIMS=a.getBGCanvasDetails(e,i),i.canvas.width=i.mDIM.width,i.canvas.height=i.mDIM.height,i.ctx.clearRect(0,0,i.mDIM.width,i.mDIM.height),i.ctx.drawImage(i.shadowCanvas,0,0)):(i.cDIMS=a.getBGCanvasDetails(e,i,r),i.canvas.width=i.mDIM.width,i.canvas.height=i.mDIM.height,"panzoom"===i.currentState||"animating"===i.currentState||void 0===i.currentState&&!_R_is_Editor&&"carousel"!=a[e].sliderType||(i.ctx.clearRect(0,0,i.mDIM.width,i.mDIM.height),0!==i.shadowCanvas.width&&0!==i.shadowCanvas.height&&i.ctx.drawImage(i.shadowCanvas,0,0))),"animating"===i.currentState&&"carousel"!==a[e].sliderType&&a.animatedCanvasUpdate(e,i)},addCanvas:function(){var e=document.createElement("canvas");return x=e.getContext("2d"),e.style.background="transparent",e.style.opacity=1,x},updateVideoFrames:function(e,t,i){if(t.now=Date.now(),t.then=void 0===t.then?t.now-500:t.then,t.elapsed=t.now-t.then,t.fps="animating"===t.currentState&&window._rs_firefox?50:33,t.elapsed>t.fps){t.then=t.now-t.elapsed%t.fps;var r="img"===t.video.tagName||null==t.video.videoWidth||0==t.video.videoWidth;void 0!==t.video&&!t.video.BGrendered&&void 0!==t.loadobj&&void 0!==t.loadobj.img||a.ISM&&a.isFirefox(e)?(t.mDIM=a.getmDim(e,t.skeyindex,t),t.pDIMS=l(t.mDIM,t,{width:t.mDIM.width,height:t.mDIM.height,x:0,y:0,contw:t.loadobj.width,conth:t.loadobj.height}),t.shadowCanvas.width!==t.mDIM.width&&(t.shadowCanvas.width=t.mDIM.width),t.shadowCanvas.height!==t.mDIM.height&&(t.shadowCanvas.height=t.mDIM.height),t.shadowCTX.drawImage(t.loadobj.img,t.pDIMS.x,t.pDIMS.y,t.pDIMS.width,t.pDIMS.height)):((i||void 0===t.sDIMS||r!==t.isVidImg||0===t.sDIMS.width||0===t.sDIMS.height)&&(t.isVidImg=r,t.mDIM=a.getmDim(e,t.skeyindex,t),t.sDIMS=l(t.mDIM,t,{width:t.mDIM.width,height:t.mDIM.height,x:0,y:0,contw:t.isVidImg?t.loadobj.width:t.video.videoWidth,conth:t.isVidImg?t.loadobj.height:t.video.videoHeight})),void 0!==t.sDIMS&&0!==t.sDIMS.width&&0!==t.sDIMS.height&&("animating"===t.currentState?(t.shadowCanvas.width!==t.mDIM.width&&(t.shadowCanvas.width=t.mDIM.width),t.shadowCanvas.height!==t.mDIM.height&&(t.shadowCanvas.height=t.mDIM.height),t.shadowCTX.drawImage(t.video,t.sDIMS.x,t.sDIMS.y,t.sDIMS.width,t.sDIMS.height)):void 0===t.animateDirection&&(t.canvas.width!==t.mDIM.width&&(t.canvas.width=t.mDIM.width),t.canvas.height!==t.mDIM.height&&(t.canvas.height=t.mDIM.height),t.ctx.drawImage(t.video,t.sDIMS.x,t.sDIMS.y,t.sDIMS.width,t.sDIMS.height)),t.shadowCanvas_Drawn=!0))}(i||t.drawVideoCanvasImagesRecall&&"animating"===t.currentState||"animating"===t.currentState&&void 0===t.shadowCanvas_Drawn)&&window.requestAnimationFrame((function(){a.updateVideoFrames(e,t)}))},createOverlay:function(e,t,i,r){if("none"===t)return"none";i=void 0===i?1:i;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[t=void 0===t?1:t]?s[2]:s[t];_R_is_Editor&&(a[e]=void 0===a[e]?{}:a[e]),a[e].patternCanvas=document.createElement("canvas"),a[e].patternCtx=a[e].patternCanvas.getContext("2d"),a[e].patternCanvas.width=o[0].length*i,a[e].patternCanvas.height=o.length*i;for(var n=0;n<o.length;n++)for(var l=0;l<o[n].length;l++)"transparent"!=r[o[n][l]]&&(a[e].patternCtx.fillStyle=r[o[n][l]],a[e].patternCtx.fillRect(l*i,n*i,i,i));return"url("+a[e].patternCanvas.toDataURL()+")"},getBGCanvasDetails:function(e,t,i){var r;return i||(t.mDIM=a.getmDim(e,t.skeyindex,t)),t.usepattern=("auto"===t.bgfit||t.bgfit.indexOf("%")>=0)&&(void 0===t.loadobj||!0!==t.loadobj.useBGColor),_R_is_Editor&&void 0===t.panzoom&&delete t.shadowCanvas,void 0===t.shadowCanvas&&(t.shadowCanvas=document.createElement("canvas"),t.shadowCTX=t.shadowCanvas.getContext("2d"),t.shadowCanvas.style.background="transparent",t.shadowCanvas.style.opacity=1),!0===t.replaceShadowCanvas||!0===t.loadobj.bgColor||!0===t.usebgColor||void 0!==t.panzoom||null!=t.isHTML5&&1!=t.poster||t.usepattern?(r={width:t.mDIM.width,height:t.mDIM.height,x:0,y:0},t.usepattern&&void 0!==t.loadobj&&void 0!==t.loadobj.img?a.getCanvasPattern(e,t,{ratio:t.loadobj.height/t.loadobj.width}):(t.loadobj.bgColor||t.usebgColor)&&(t.shadowCanvas.width!==t.mDIM.width&&(t.shadowCanvas.width=t.mDIM.width),t.shadowCanvas.height!==t.mDIM.height&&(t.shadowCanvas.height=t.mDIM.height),a.getCanvasGradients(e,t))):(r=l(t.mDIM,t,{width:t.mDIM.width,height:t.mDIM.height,x:0,y:0,contw:t.loadobj.width,conth:t.loadobj.height}),t.shadowCanvas.width!==t.mDIM.width&&(t.shadowCanvas.width=t.mDIM.width),t.shadowCanvas.height!==t.mDIM.height&&(t.shadowCanvas.height=t.mDIM.height),void 0!==t.loadobj&&void 0!==t.loadobj.img&&(t.shadowCTX.clearRect(r.x,r.y,r.width,r.height),t.shadowCTX.drawImage(t.loadobj.img,r.x,r.y,r.width,r.height)),r={width:t.mDIM.width,height:t.mDIM.height,x:0,y:0}),r},getCanvasPattern:function(e,t,i){void 0===t.patternImageCanvas&&(t.patternImageCanvas=document.createElement("canvas"),t.patternImageCTX=t.patternImageCanvas.getContext("2d"));var r=t.bgfit.split(" ");1===r.length&&(r[1]=r[0]),i.width="auto"===r[0]?t.loadobj.width:t.loadobj.width*(parseInt(r[0],0)/100),i.height="auto"===r[1]?t.loadobj.height:i.width*i.ratio,t.DPR=_R_is_Editor?Math.min(window.devicePixelRatio,2):a[e].DPR;var s=i.width/i.height;i.width=i.width*t.DPR,i.height=i.height*t.DPR,a.isIOS&&i.width*i.height>15728640&&(t.mDIM.width>t.mDIM.height?(i.width=t.mDIM.width,i.height=Math.round(t.mDIM.width/s)):(i.height=t.mDIM.height,i.width=Math.round(t.mDIM.height*s))),t.patternImageCanvas.width=i.width,t.patternImageCanvas.height=i.height,t.patternImageCTX.drawImage(t.loadobj.img,0,0,i.width,i.height),t.shadowCanvas.width!==t.mDIM.width&&(t.shadowCanvas.width=t.mDIM.width),t.shadowCanvas.height!==t.mDIM.height&&(t.shadowCanvas.height=t.mDIM.height),t.shadowCTX.clearRect(0,0,t.shadowCTX.canvas.width,t.shadowCTX.canvas.height),t.pattern=t.shadowCTX.createPattern(t.patternImageCanvas,t.bgrepeat),t.shadowCTX.fillStyle=t.pattern,t.shadowShifts={h:t.bgposition.split(" ")[0],v:t.bgposition.split(" ")[1]},t.shadowShifts.hperc=a.isNumeric(parseInt(t.shadowShifts.h))?parseInt(t.shadowShifts.h)/100*t.mDIM.width:0,t.shadowShifts.vperc=a.isNumeric(parseInt(t.shadowShifts.v))?parseInt(t.shadowShifts.v)/100*t.mDIM.height:0,t.shadowShifts.x="left"===t.shadowShifts.h?0:"center"===t.shadowShifts.h||"50%"==t.shadowShifts.h?"repeat"==t.bgrepeat||"repeat-x"==t.bgrepeat?t.mDIM.width/2-i.width/2-Math.ceil(t.mDIM.width/2/i.width)*i.width:t.mDIM.width/2-i.width/2:"right"===t.shadowShifts.h?"repeat"==t.bgrepeat||"repeat-x"==t.bgrepeat?-(i.width-t.mDIM.width%i.width):t.mDIM.width-i.width:"repeat"==t.bgrepeat||"repeat-x"==t.bgrepeat?-(i.width-t.shadowShifts.hperc%i.width):t.shadowShifts.hperc,t.shadowShifts.y="top"===t.shadowShifts.v?0:"center"===t.shadowShifts.v||"50%"==t.shadowShifts.v?"repeat"==t.bgrepeat||"repeat-y"==t.bgrepeat?t.mDIM.height/2-i.height/2-Math.ceil(t.mDIM.height/2/i.height)*i.height:t.mDIM.height/2-i.height/2:"bottom"===t.shadowShifts.v?"repeat"==t.bgrepeat||"repeat-y"==t.bgrepeat?-(i.height-t.mDIM.height%i.height):t.mDIM.height-i.height:"repeat"==t.bgrepeat||"repeat-y"==t.bgrepeat?-(i.height-t.shadowShifts.vperc%i.height):t.shadowShifts.vperc,t.shadowCTX.save(),t.shadowCTX.translate(t.shadowShifts.x,t.shadowShifts.y),t.shadowCTX.fillRect(0,0,t.mDIM.width-t.shadowShifts.x,t.mDIM.height-t.shadowShifts.y),t.shadowCTX.restore()},getCanvasGradients:function(e,t){if(t.bgcolor.indexOf("gradient")>=0){t.gradient=null==t.gradient||_R_is_Editor?a.getGradients(t.bgcolor):t.gradient,t.shadowGrd="radialGradient"===t.gradient.type?t.shadowCTX.createRadialGradient(t.mDIM.width/2,t.mDIM.height/2,0,t.mDIM.width/2,t.mDIM.height/2,Math.max(t.mDIM.width/2,t.mDIM.height/2)):a.calcLinearGradient(t.shadowCTX,t.shadowCanvas.width,t.shadowCanvas.height,t.gradient.deg);for(var i=0;i<t.gradient.stops.length;i+=2)t.shadowGrd.addColorStop(t.gradient.stops[i+1],t.gradient.stops[i]);t.shadowCTX.clearRect(0,0,t.mDIM.width,t.mDIM.height),t.shadowCTX.fillStyle=t.shadowGrd,t.shadowCTX.fillRect(0,0,t.mDIM.width,t.mDIM.height)}else t.shadowCTX.clearRect(0,0,t.mDIM.width,t.mDIM.height),t.shadowCTX.fillStyle=t.bgcolor,t.shadowCTX.fillRect(0,0,t.mDIM.width,t.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"#"+c(e[0])+c(e[1])+c(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 t=a.getGradients(e);void 0===a.gradSVG&&(a.gradSVG=a.cNS({n:"svg",id:"tp_svg_gradients",s:{width:"100%",height:"100%",opacity:0,pointerEvents:"none"}}),a.gradSVG.setAttribute("viewBox","0 0 1 1"),a.gradSVG.setAttribute("preserveAspectRatio","none"),document.body.appendChild(a.gradSVG),a.svgGradients=[]);for(var i=!1,r=JSON.stringify(e),s=0;s<a.svgGradients.length;s++)i||a.svgGradients[s].src==r&&(i=!0,e=a.svgGradients[s].url);if(!i){var o,n,l,d="radialGradient"===t.type?0:t.deg*(Math.PI/180),S="radialGradient"===t.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=a.cNS({n:t.type,id:"tp_svg_gradient_"+a.svgGradients.length,v:"radialGradient"===t.type?void 0:{gradientUnits:"userSpaceOnUse",x1:S.x1,y1:S.y1,x2:S.x2,y2:S.y2}});for(var c=0;c<=t.stops.length/2;c+=2)n=tpGS.gsap.utils.splitColor(t.stops[c]),o=a.cNS({n:"stop",v:{offset:100*t.stops[c+1]+"%",stopColor:a.rgbToHex(n),stopOpacity:n.length>3?n[3]:1}}),l.appendChild(o);a.gradSVG.appendChild(l),e="url(#tp_svg_gradient_"+a.svgGradients.length+")",a.svgGradients.push({url:e,src:r,g:l})}return e},getGradients:function(e){return e.indexOf("radial-gradient")>=0?{stops:a.getGradientColorStopPoints(e.split("radial-gradient(ellipse at center, ")[1]),type:"radialGradient",deg:0}:-1!==e.indexOf("gradient")?a.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),c={x1:Math.cos(a)*S+l,y1:Math.sin(a)*S+d,x2:l,y2:d},p=[R({x:0,y:0},a),R({x:t,y:0},a),R({x:t,y:i},a),R({x:0,y:i},a)],m=[],y=0;y<p.length;y++)m.push(V(p[y],c));if(u(l,d,m[0].x,m[0].y)>u(l,d,m[1].x,m[1].y)?(r=m[0].x,s=m[0].y):(r=m[1].x,s=m[1].y),u(l,d,m[2].x,m[2].y)>u(l,d,m[3].x,m[3].y)?(o=m[2].x,n=m[2].y):(o=m[3].x,n=m[3].y),Math.round(100*Math.atan2(d-s,l-r))/100===Math.round(a%(2*Math.PI)*100)/100){var g=r,h=s;r=o,s=n,o=g,n=h}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 a.getBasic({attr:["x","y"],in:{m:!0,o:-1,_xy:20,_gxys:10,_gxye:-10,zIndex:20,e:t},out:{m:!0,reversed:!1,_xy:-100,o:0,zIndex:10,e:t}})},updateAnim:function(e,t,i){var r=void 0!==t.in.x&&0!==t.in.x&&"0%"!==t.in.x?"x":"y";t.in["g"+r+"s"]=a.SATools.getOffset(t.in[r],t.in._gxys,i,1)+"%",t.in["g"+r+"e"]=a.SATools.getOffset(t.in[r],t.in._gxye,i,1)+"%",t.out[r]=a.SATools.getOffset(t.in[r],t.out._xy,i,1)+"%",t.in[r]=a.SATools.getOffset(t.in[r],t.in._xy,i,1)+"%";var s=parseInt(t.in[r])>=0;return t.in.d="x"===r?s?"left":"right":s?"up":"down",t},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,t,i,r,s,o){"in"!==s.direction||void 0===r.gxe&&void 0===r.gye||(jQuery.extend(!0,i[0],{d:r.d,gx:void 0===r.gxs?0:2*a.SATools.getOffset(r.gxs,o.width,s.sdir,0),gy:void 0===r.gys?0:2*a.SATools.getOffset(r.gys,o.height,s.sdir,0),sgx:void 0===r.gxs?0:a.SATools.getOffset(r.gxs,o.width,s.sdir,0),sgy:void 0===r.gys?0:a.SATools.getOffset(r.gys,o.height,s.sdir,0),mw:0-o.width,mh:0-o.height}),t.add(tpGS.gsap.to(i,r.ms/r.sec,{gx:void 0===r.gxe?0:2*a.SATools.getOffset(r.gxe,o.width,s.sdir,0),gy:void 0===r.gye?0:2*a.SATools.getOffset(r.gye,o.height,s.sdir,0),sgx:void 0===r.gxe?0:2*a.SATools.getOffset(r.gxe,o.width,s.sdir,0),sgy:void 0===r.gye?0:2*a.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,t,i,r){if("none"!==t.f&&void 0!==t.f){i.sbg.style.transformStyle="preserve-3d";var s=tpGS.gsap.timeline(),o="incube"===t.f?1:-1,n="incube"===t.f||"cube"===t.f,l="fly"===t.f?-30:90,d="turn"!==t.f&&!1!==t.t&&(_R_is_Editor||!0===a[e].firstSlideAnimDone),S=-1*t.z,c={},p={z:d?0:S,ease:"power1.inOut"},u={ease:t.e},R=[i.canvas],V=n?"50% 50% ":"20% 20% ",m="rotationX",y="rotationY",g="y",h="height",f=t.fd;if("vertical"!==t.d?(m="rotationY",y="rotationX",g="x",h="width",t.DIR=1===t.sdir?"b":"a"):t.DIR=1===t.sdir?"a":"b",h="width"===h?"w":"height"===h?"h":h,"turn"===t.f?(l="vertical"===t.d?-120:120,V="vertical"===t.d?1===t.sdir?"in"===r?"0% 0% 0%":"0% 100% 0%":"in"===r?"0% 100% 0%":"0% 0% 0%":1===t.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,f="out"===r?f/2:f):V+=o*i.mDIM[h]/2+"px",u[m]=0,u[g]=0,"in"===r?c[m]=l*t.sdir:u[m]=-l*t.sdir,"fly"===t.f){var v=void 0===t.fz?20*Math.random()-10:parseInt(t.fz);"in"===r?(c[g]=i.mDIM[h]*(void 0===t.fdi?1.5:parseFloat(t.fdi))*t.sdir,c.rotateZ=t.sdir*v,u.rotateZ=0):(u[g]=i.mDIM[h]*(void 0===t.fdo?2:parseFloat(t.fdo))*t.sdir*-1,u.rotateZ=t.sdir*v*-1)}if(i.sbg.style.perspective=d?"2500px":"1500px",d){var _={z:S*("fly"===t.f?1.5:3),ease:"power1.inOut"},L={z:0,ease:"power1.inOut"};_[y]=-1*t.t,L[y]=0,t.roomhelper={r:0},s.add(tpGS.gsap.set(_R_is_Editor?RVS.SBGS[RVS.S.slideId].wrap:i.wrap[0],{perspective:1200,transformStyle:"preserve-3d",transformOrigin:V}),0),s.add(tpGS.gsap.to(i.sbg,3*t.md,_),0),s.add(tpGS.gsap.to(i.sbg,3*t.md,L),f-t.md),s.add(tpGS.gsap.to(t.roomhelper,3*t.md,{r:Math.abs(t.t)}),0),s.add(tpGS.gsap.to(t.roomhelper,3*t.md,{r:0}),f-t.md),"in"===r&&1!==o&&n&&(void 0===i.cube&&a.transitions.d3.buildCube(i),s.add(a.transitions.d3.setWall(i.cube,_[y],y,i.mDIM,t.c),0),R.push(i.cube.c))}else t.roomhelper=!1,s.add(tpGS.gsap.set(_R_is_Editor?RVS.SBGS[RVS.S.slideId].wrap:i.wrap[0],{perspective:"none",transformStyle:"none",transformOrigin:"50% 50%"}),0),!_R_is_Editor&&!0!==a[e].firstSlideAnimDone&&n&&(void 0===i.cube&&a.transitions.d3.buildCube(i),s.add(a.transitions.d3.setWall(i.cube,c[m],m,i.mDIM,t.c,!0),0),s.add(tpGS.gsap.fromTo(i.cube.w,4*t.md,{opacity:0},{opacity:1}),0),R.push(i.cube.c));return t.helper={o:0,oo:1},s.add(tpGS.gsap.to(t.helper,f,{o:1,oo:0,ease:t.e}),t.md+0),s.add(tpGS.gsap.set(R,jQuery.extend(!0,{},c,{force3D:!0,transformOrigin:V})),0),"turn"!==t.f&&s.add(tpGS.gsap.to(R,3*t.md,p),0),s.add(tpGS.gsap.to(R,f,u),t.md+0),"turn"!==t.f&&s.add(tpGS.gsap.to(R,3*t.md,{z:0,ease:"power1.inOut"}),f-t.md),"out"===r&&1!==o&&s.add(tpGS.gsap.to(R,2*t.md,{opacity:0}),t.dur-2*t.md),s}}}},animatedCanvasUpdate:function(e,t){t.cDIMS=a.getBGCanvasDetails(e,t),t.canvas.style.backgroundColor="transparent",t.canvas.style.opacity=1,t.canvas.width!==t.mDIM.width&&(t.canvas.width=t.mDIM.width),t.canvas.height!==t.mDIM.height&&(t.canvas.height=t.mDIM.height),_R_is_Editor||!0!==a[e].clearModalBG||(t.ctx.clearRect(0,0,t.canvas.width,t.canvas.height),a[e].clearModalBG=!1,t.sbg.parentNode.style.opacity=1),t.col=Math.min(t.col||1,Math.max(t.canvas.width-10,1)),t.row=Math.min(t.row||1,Math.max(t.canvas.height-10,1)),t.SLOT=jQuery.extend(!0,{s:{},c:{}},s(e,t.col,t.row,t.mDIM,"OW","OH")),t.SLOT.DX=0-t.SLOT.OW/2,t.SLOT.DY=0-t.SLOT.OH/2,t.row=Math.ceil(t.mDIM.height/t.SLOT.OH)||1,void 0!==t.callFromAnimatedCanvasUpdate&&t.callFromAnimatedCanvasUpdate()},slideAnimFinished:function(e,t,i,r){void 0!==t&&(void 0!==t.bgvid&&t.bgvid.length>0&&"out"===i.direction&&(t.drawVideoCanvasImagesRecall=!1,a.stopVideo(t.bgvid,e),t.bgvid[0].style.display="none",t.bgvid[0].style.zIndex=0),t.panFake&&t.panFake.img&&("out"===i.direction?t.panFake.img.style.display="none":t.panFake.img.style.display="block"),"in"===i.direction&&(a.transitions.motionFilter.complete(t),t.ctx.canvas.style.filter="none",tpGS.gsap.set(i.slide,{zIndex:20}),delete t.animateDirection,t.bgvid.length>0&&(t.isHTML5?tpGS.gsap.set(t.bgvid[0],{zIndex:30,display:"block",opacity:1}):(a.resetVideo(t.bgvid,e),tpGS.gsap.delayedCall(.1,(function(){a.playVideo(t.bgvid,e,!0),tpGS.gsap.set(t.bgvid[0],{zIndex:30,display:"block",opacity:1})}))))),"out"===i.direction?(tpGS.gsap.set(i.slide,{zIndex:10}),tpGS.gsap.set(t.canvas,{rotationX:0,rotationY:0,rotationZ:0,x:0,y:0,z:0,opacity:1}),t.currentState=void 0):t.currentState="idle",void 0!==t.cube&&(t.cube.c.style.display="none"),"in"===i.direction&&(a.updateSlideBGs(e,t.skeyindex,t),void 0===t.panzoom||_R_is_Editor||a.startPanZoom(a[e].pr_next_bg,e,void 0!==a[e].panzoomTLs[t.skeyindex]?a[e].panzoomTLs[t.skeyindex].progress():0,t.skeyindex,"play",t.key),void 0!==i.BG&&!0!==r&&i.BG.ctx.clearRect(0,0,2*t.canvas.width,2*t.canvas.height)))},animateCore:function(e,t,i,r){var s,o,n,l,d=t.canvas,S=t.ctx,c=0;if(t.col=i.col,t.row=i.row,_R_is_Editor&&t.three){for(t.canvas.style.display="block";t.three.scene.children.length>0;)t.three.scene.remove(t.three.scene.children[0]);t.three.canvas.parentNode.removeChild(t.three.canvas),t.three=void 0}a.animatedCanvasUpdate(e,t),i.row=t.row,t.animateDirection=r.direction,r.delay=void 0===r.delay?0:r.delay,n=i.col*i.row,l=Array(n),void 0===t.help_canvas&&"out"===r.direction&&void 0!==r.bgColor&&(t.help_canvas=document.createElement("canvas"),t.help_ctx=t.help_canvas.getContext("2d"),t.help_canvas.style.backgroundColor="transparent"),"out"===r.direction&&void 0!==r.bgColor&&(t.help_canvas.width=t.mDIM.width,t.help_canvas.height=t.mDIM.height,t.help_ctx.fillStyle=r.bgColor,t.help_ctx.fillRect(0,0,t.mDIM.width,t.mDIM.height)),i.mo=a.transitions.motionFilter.init(t,i.mo),i.dur=i.ms/i.sec,void 0!==r.d3&&(r.d3.dur=i.dur,r.d3.fd=.7*i.dur,r.d3.md=.15*i.dur,r.d3.sdir=r.sdir),t.SLOT.c={ws:0,hs:0,wd:0,hd:0},i.mo>0&&_R_is_Editor&&S.clearRect(0,0,d.width,d.height);var p=tpGS.gsap.timeline({onUpdate:function(){if(c=0,i.mo>0?a.transitions.motionFilter.render(t,i.moo):S.clearRect(0,0,d.width,d.height),t.help_canvas&&"out"===r.direction&&S.drawImage(t.help_canvas,0,0),(r.filter&&r.filter.u||!_R_is_Editor)&&a.transitions.filter.update(r.filter,S,t.canvasFilterBlur),_R_is_Editor&&0!==i.zIndex&&void 0!==i.zIndex&&tpGS.gsap.set(r.slide,{zIndex:i.zIndex}),void 0!==t.shadowCanvas)for(s=0;s<i.col;s++)for(t.SLOT.SX=t.SLOT.OW*s,t.SLOT.tw=t.SLOT.OW*(s+.5),t.SLOT.c.wd=t.mDIM.width-(t.SLOT.tw+t.SLOT.DX+t.SLOT.OW),t.SLOT.c.wd=t.SLOT.c.wd<0?t.SLOT.c.wd:0,t.SLOT.DW=t.SLOT.SW=t.SLOT.OW+t.SLOT.c.wd,o=0;o<i.row;o++){S.save();var n=-Math.PI/180*l[c].r,p=0!==i.r?Math.cos(n)*l[c].sx:l[c].sx,u=0!==i.r?Math.cos(n)*l[c].sy:l[c].sy,R=0!==i.r?Math.sin(n)*l[c].sx:0,V=0!==i.r?Math.sin(n)*-l[c].sy:0;t.SLOT.SY=t.SLOT.OH*o,t.SLOT.th=t.SLOT.OH*(o+.5),a.transitions[r.effect]&&a.transitions[r.effect].beforeDraw&&a.transitions[r.effect].beforeDraw(e,S,l[c],t),i.m&&(S.beginPath(),S.rect(t.SLOT.OW*s,t.SLOT.OH*o,t.SLOT.OW,t.SLOT.OH),S.clip()),S.transform(p,R,V,u,t.SLOT.tw+l[c].x,t.SLOT.th+l[c].y),S.globalAlpha=Math.max(0,l[c].o),t.SLOT.c.hd=t.mDIM.height-(t.SLOT.th+t.SLOT.DY+t.SLOT.OH),t.SLOT.c.hd=t.SLOT.c.hd<0?t.SLOT.c.hd:0,t.SLOT.DH=t.SLOT.SH=t.SLOT.OH+t.SLOT.c.hd,t.SLOT.SW>1&&t.SLOT.SH>1&&S.drawImage(t.shadowCanvas,t.SLOT.SX,t.SLOT.SY,t.SLOT.SW,t.SLOT.SH,t.SLOT.DX,t.SLOT.DY,t.SLOT.DW,t.SLOT.DH),S.restore(),a.transitions[r.effect]&&a.transitions[r.effect].afterDraw&&a.transitions[r.effect].afterDraw(e,S,l[c],t,{csx:p,csy:u,ssx:R,ssy:V}),c++}void 0!==r.d3&&r.d3.su&&a.transitions.d3.ticker(r.d3,t,r.direction),t.currentState="animating"},onComplete:function(){a.slideAnimFinished(e,t,r)}});if(i.col*i.row<2&&(i.f="start"),0!==i.zIndex&&void 0!==i.zIndex&&p.add(tpGS.gsap.set(r.slide,{zIndex:parseInt(i.zIndex,0)}),0),i.m="false"!=i.m&&!1!==i.m,"in"===r.direction){for(s=0;s<n;s++)l[s]={x:a.SATools.getOffset(i.x,i.m?t.SLOT.OW:t.mDIM.width,r.sdir,s),y:a.SATools.getOffset(i.y,i.m?t.SLOT.OH:t.mDIM.height,r.sdir,s),o:a.SATools.getSpecialValue(i.o,s,r.sdir),sx:a.SATools.getSpecialValue(i.sx,s,r.sdir),sy:a.SATools.getSpecialValue(i.sy,s,r.sdir),r:0!==i.r?a.SATools.getSpecialValue(i.r,s,r.sdir):0};p.add(tpGS.gsap.to(l,i.dur,{o:1,sx:1,sy:1,r:0,x:0,y:0,ease:i.e,stagger:{amount:"nodelay"===i.f?0:i.ms/i.stasec,grid:[i.col,i.row],from:"nodelay"===i.f?"start":i.f}}),r.delay),void 0!==r.d3&&p.add(a.transitions.d3.cubeTL(e,r.d3,t,"in"),0),a.transitions.filter.extendTimeLine(p,r.filter,t)}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,i.dur,{o:function(e){return a.SATools.getSpecialValue(i.o,e,r.sdir)},sx:function(e){return a.SATools.getSpecialValue(i.sx,e,r.sdir)},sy:function(e){return a.SATools.getSpecialValue(i.sy,e,r.sdir)},r:0!==i.r&&void 0!==i.r?function(e){return a.SATools.getSpecialValue(i.r,e,r.sdir)}:0,x:function(e){return a.SATools.getOffset(i.x,i.m?t.SLOT.OW:t.mDIM.width,r.sdir,e)*(i.reversed?-1:1)},y:function(e){return a.SATools.getOffset(i.y,i.m?t.SLOT.OH:t.mDIM.height,r.sdir,e)*(i.reversed?-1:1)},ease:i.e,stagger:{amount:"nodelay"===i.f?0:i.ms/i.stasec,grid:[i.col,i.row],from:"nodelay"===i.f?"start":i.f}}),r.delay+(void 0!==i.outdelay?i.outdelay:0)),void 0!==r.d3&&p.add(a.transitions.d3.cubeTL(e,r.d3,t,"out"),0)}a.transitions[r.effect]&&a.transitions[r.effect].extendTimeLine&&a.transitions[r.effect].extendTimeLine(e,p,l,i,r,t.mDIM),_R_is_Editor?RVS.TL[RVS.S.slideId].slide.add(p,0):a[e].mtl.add(p,r.delay)}});var r=function(e,t){return void 0!==t&&a.isNumeric(t)?parseFloat(t,0):null==t||"default"===t||"d"===t?e:t},s=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},o=function(e){return null==e||0===e||NaN===e?1:e},n=function(e,t){_R_is_Editor||(a[e].duringslidechange=!0);var i,s=_R_is_Editor?-1:"arrow"==a[e].sc_indicator?void 0===a[e].sc_indicator_dir?a[e].sdir:a[e].sc_indicator_dir:a[e].sdir,n=!!_R_is_Editor||void 0!==a[e].pr_next_bg&&a[e].pr_next_bg.length>0&&void 0!==a[e].pr_next_bg[0],l=!!_R_is_Editor||void 0!==a[e].pr_active_bg&&a[e].pr_active_bg.length>0&&void 0!==a[e].pr_active_bg[0],S=_R_is_Editor?RVS.SBGS[RVS.S.slideId].n:n?a[e].sbgs[a[e].pr_next_bg[0].dataset.key]:void 0,c=_R_is_Editor?RVS.SBGS[RVS.S.slideId].c:l?a[e].sbgs[a[e].pr_active_bg[0].dataset.key]:void 0;s=1===s?-1:1,_R_is_Editor||(delete a[e].sc_indicator,delete a[e].sc_indicator_dir),i=jQuery.extend(!0,{},function(e,t,i){var s=void 0!==a.transitions[t.anim.e]&&void 0!==a.transitions[t.anim.e].getBasic?a.transitions[t.anim.e].getBasic():a.getBasic(),n="";for(var l in s.out=null==s.out?{}:s.out,s.out.reversed=void 0===t.out&&(void 0===s.out.reversed||s.out.reversed),void 0!==t.iw&&parseInt(t.iw,0),void 0!==t.ow&&parseInt(t.ow,0),s.attr)n=s.attr[l],s.in[n]=r(s.in[n],t.in[n]),s.out[n]=s.out.reversed?s.in[n]:void 0===t.out?s.out[n]:r(s.out[n],t.out[n]);return s.filter=void 0!==t.filter?jQuery.extend(!0,t.filter,t.filter):s.filter,a.transitions[t.anim.e]&&a.transitions[t.anim.e].updateAnim&&(s=a.transitions[t.anim.e].updateAnim(e,s,i)),s.e=t.anim.e,void 0!==s.in&&(s.in.col="random"===s.in.col?tpGS.gsap.utils.random(1,10,1):o(s.in.col),s.in.row="random"===s.in.row?tpGS.gsap.utils.random(1,10,1):o(s.in.row)),void 0!==s.out&&(s.out.col="random"===s.out.col?tpGS.gsap.utils.random(1,10,1):o(s.out.col),s.out.row="random"===s.out.row?tpGS.gsap.utils.random(1,10,1):o(s.out.row)),s}(e,t,s)),void 0!==S.random&&void 0!==a.SLTR&&void 0!==c&&(delete c.help_canvas,delete c.help_ctx),i.ms=r(void 0,void 0===t.anim.ms?1e3:t.anim.ms),i.f=r(void 0,t.anim.f),i.p=r(void 0,t.anim.p),i.d=r(void 0,t.anim.d),i.o=t.anim.o,void 0!==t.d3&&(t.d3.t=void 0!==t.d3.t&&0!==t.d3.t&&t.d3.t,t.d3.su="true"==t.d3.su||1==t.d3.su,t.d3.su&&(t.d3.smi=void 0===t.d3.smi?0:parseFloat(t.d3.smi),t.d3.sl=void 0===t.d3.sl?1:parseFloat(t.d3.sl),t.d3.sma=void 0===t.d3.sma?.5:parseFloat(t.d3.sma),t.d3.sc=void 0===t.d3.sc?"0,0,0":tpGS.gsap.utils.splitColor(t.d3.sc).join(",")),i.p="none",void 0!==i.in.row&&void 0!==i.in.col&&i.in.row*i.in.col>200&&(i.filter=void 0)),i.in.sec=void 0===i.in.sec?1e3:i.in.sec,i.in.stasec=void 0===i.in.stasec?void 0===i.d?1500:100*i.d:i.in.stasec,i.in.ms="default"===i.ms||"d"===i.ms?i.in.ms:"random"===i.ms?Math.round(1e3*Math.random()+300):null!=i.ms?parseInt(i.ms,0):i.in.ms,i.out.ms=i.in.ms,void 0!==i.filter&&(i.filter.ms=i.in.ms,i.filter.sec=i.in.sec,i.filter.e=void 0===i.filter.e||"default"===i.filter.e?i.in.e:i.filter.e),i.in.f=void 0===i.f||"default"===i.f||"d"===i.f?i.in.f:i.f,i.in.f="slidebased"===i.in.f?1==s?"start":"end":"oppslidebased"===i.in.f?1===s?"end":"start":i.in.f,i.out.f=i.in.f,i.out=jQuery.extend(!0,{},i.in,i.out),i.in.eng=i.out.eng=t.anim.eng,void 0!==i.out.eng&&null==a[i.out.eng]&&(i.out.o=0,i.in.o=0,i.in.ms=i.out.ms=1e3,i.in.eng=i.out.eng="animateCore"),void 0!==i.p&&"none"!==i.p&&(i.in.bg="dark"===i.p?"#000":"light"===i.p?"#fff":"transparent",i.out.delay="none"!==i.p?function(e,t){return e/2.5}:0,1===i.out.o&&0===i.out.x&&0===i.out.y&&(i.out.o=0)),"forceinout"===i.o?(i.in.zIndex=20,i.out.zIndex=10):"outin"!==i.o&&(1!==i.in.o||0!==i.in.x||0!==i.in.y||void 0===t.out||1===i.out.o&&0===i.out.x&&0===i.out.y)||(i.in.zIndex=10,i.out.zIndex=20),S.bgvid.length>0&&(i.in=p(e,i.in,S,"in")),l&&void 0!==c.bgvid&&c.bgvid.length>0&&(i.out=p(e,i.out,c,"out")),void 0!==i.out&&(i.out.simplify||i.in.simplify)&&(i.out=d(i.out)),i.in.simplify&&(i.in=d(i.in)),_R_is_Editor||requestAnimationFrame((function(){a.generalObserver(a.ISM,!0)})),i.in.eng=void 0===i.in.eng?"animateCore":i.in.eng,i.out.eng=void 0===i.out.eng?"animateCore":i.out.eng,l&&!0!==i.out.skip&&a[i.out.eng](e,c,i.out,{effect:i.e,slide:_R_is_Editor?RVS.SBGS[RVS.S.slideId].c.sbg:a[e].pr_active_slide,direction:"out",delay:0,bgColor:i.in.bg,sdir:s,filter:void 0,d3:t.d3,addOns:_R_is_Editor?t.addOns:void 0}),!0!==i.in.skip&&a[i.in.eng](e,S,i.in,{effect:i.e,slide:_R_is_Editor?RVS.SBGS[RVS.S.slideId].n.sbg:a[e].pr_next_slide,direction:"in",delay:l?"function"==typeof i.out.delay?i.out.delay(i.in.ms/1e3,i.out.row*i.out.col):i.out.delay:i.in.delay,BG:c,outslide:_R_is_Editor?RVS.SBGS[RVS.S.slideId].c.sbg:a[e].pr_active_slide,sdir:s,filter:i.filter,d3:t.d3,addOns:_R_is_Editor?t.addOns:void 0})},l=function(e,t,i){var r=e.height/e.width;if(i.ratio=i.conth/i.contw,i.ratio<r&&"contain"===t.bgfit||i.ratio>r&&"cover"===t.bgfit)i.height=e.width*i.ratio;else if(i.ratio>r&&"contain"===t.bgfit||i.ratio<r&&"cover"===t.bgfit)i.width=e.width*r/i.ratio;else if(i.ratio!==r||"contain"!==t.bgfit&&"cover"!==t.bgfit){var s=t.bgfit.split(" ");1===s.length&&(s[1]=s[0]),i.width="auto"===s[0]?i.contw:e.width*(parseInt(s[0],0)/100),i.height="auto"===s[1]?i.conth:i.width*i.ratio,t.usepattern=!0}else i.width=e.width;var o=function(e,t,i){return 1===(i=i.split(" ")).length&&(i[1]=i[0]),{x:"center"===i[0]||"50%"===i[0]?(e.width-t.width)/2:"left"===i[0]?0:"right"===i[0]?e.width-t.width:a.isNumeric(i[0])?0:i[0].indexOf("%")>=0?parseInt(i[0],0)/100*e.width-parseInt(i[0],0)/100*t.width:parseInt(i[0],0),y:"center"===i[1]||"50%"===i[1]?(e.height-t.height)/2:"top"===i[1]?0:"bottom"===i[1]?e.height-t.height:a.isNumeric(i[1])?0:i[1].indexOf("%")>=0?parseInt(i[1],0)/100*e.height-parseInt(i[1],0)/100*t.height:parseInt(i[1],0)}}(e,i,t.bgposition);return i.x=o.x,i.y=o.y,i},d=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},S=function(e){return e="false"!==e&&!1!==e&&"off"!==e&&void 0!==e&&0!==e&&-1!==e},c=function(e){var t=e.toString(16);return 1==t.length?"0"+t:t},p=function(e,t,i,r){return t.skip=!1,"in"===r?i.isHTML5?(i.bgvid[0].style.display="none",a.resetVideo(i.bgvid,e),i.animateDirection="in",i.currentState="animating",i.drawVideoCanvasImagesRecall=!0,a.updateVideoFrames(e,i,!0),a.playVideo(i.bgvid,e)):(a[e].videos[i.bgvid[0].id].pauseCalled=!1,t.waitToSlideTrans=a[e].videos[i.bgvid[0].id].waitToSlideTrans,!0!==i.poster?(a.resetVideo(i.bgvid,e),a[e].videos[i.bgvid[0].id].prePlayForaWhile=!1,!0!==t.waitToSlideTrans&&a.playVideo(i.bgvid,e,!0),tpGS.gsap.fromTo(i.bgvid,t.ms/t.sec,{zIndex:30,display:"block",opacity:0},{opacity:1,zIndex:30,display:"block"}),i.loadobj.bgColor=!0,i.bgcolor="#000",t.simplify=!0):(a[e].videos[i.bgvid[0].id].prePlayForaWhile=!1,a.resetVideo(i.bgvid,e),a.playVideo(i.bgvid,e),i.bgvid[0].style.display="none",i.bgvid[0].style.zIndex=0,i.bgvid[0].style.opacity=0)):"out"===r&&(i.isHTML5?(i.currentState="animating",i.drawVideoCanvasImagesRecall=!0,a.updateVideoFrames(e,i,!0),window.requestAnimationFrame((function(){tpGS.gsap.to(i.bgvid,.1,{zIndex:0,display:"none"})}))):(a.stopVideo(i.bgvid,e,!0),!0!==i.poster&&(i.loadobj.bgColor=!0,i.bgcolor="#000"))),t},u=function(e,t,i,a){return Math.sqrt(Math.pow(e-i,2)+Math.pow(t-a,2))},R=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)}},V=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(){"use strict";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,RVS.ENV.tempGuide=e.guide,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(),o(),RVS.F.showWaitAMinute({fadeOut:200,text:RVS_LANG.preparingdatas}),e.slider_params.pakps?RVS.F.openHelpGuide("template"):void 0!==e.slider_params.layout&&RVS.F.openHelpGuide("module",!0),void 0===e.slider_params.layout?(RVS.ENV.unsaved=!0,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.manageShapeContentShow())},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()},o=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)return e=!1,RVS.F.showWaitAMinute({fadeOut:500}),(t=t||window.event)&&(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:""})))})),help_menu_support.addEventListener("click",(function(e){e.stopPropagation(),e.stopImmediatePropagation(),RVS.ENV.activated||(e.preventDefault(),RVS.F.showRegisterSliderInfo())})),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(){jQuery(this.closest(".form_collector")).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(".shortcut_alt"),a=document.querySelectorAll(".shortcut_shift"),r=document.querySelectorAll(".shortcuttext");for(e in i)i.hasOwnProperty(e)&&(i[e].textContent="⌥");for(e in a)a.hasOwnProperty(e)&&(a[e].textContent="⇧");for(e in t)t.hasOwnProperty(e)&&(t[e].textContent="⌘");for(e in r)t.hasOwnProperty(e)&&r[e].classList.add("osx")}}(),RVS.DOC.trigger("checkOnScrollSettings"),RVS.DOC.trigger("builderInitialised")}),1)}}();

Zerion Mini Shell 1.0