text: /*!
   * REVOLUTION 6.0.0 BUILDER JS
   * @version: 1.0 (01.07.2019)
   * @author ThemePunch
  */
  window.RVS=void 0===window.RVS?{}:window.RVS,RVS.F=void 0===RVS.F?{}:RVS.F,RVS.ENV=void 0===RVS.ENV?{}:RVS.ENV,RVS.LIB=void 0===RVS.LIB?{}:RVS.LIB,RVS.V=void 0===RVS.V?{}:RVS.V,RVS.S=void 0===RVS.S?{}:RVS.S,RVS.C=void 0===RVS.C?{}:RVS.C,RVS.WIN=void 0===RVS.WIN?jQuery(window):RVS.WIN,RVS.DOC=void 0===RVS.DOC?jQuery(document):RVS.DOC,function(){var e,t,a,i,r,o,s,n,l,d,c,u,p,S;function v(e,t){if("string"==typeof t&&(t=t.split(".")),t.length>1){var a=t.shift();return e.hasOwnProperty(a)?v(e[a],t):void 0}return e.hasOwnProperty(t[0])?e[t[0]]:void 0}function R(e,t,a){if("string"==typeof t){var i=t.split("."),r=i.length,o=r-1,s=e;if(r)for(var n=0;n<r;n++)n<o?s=s[i[n]]:s[i[n]]=a}}function V(){RVS.C.undo=void 0===RVS.C.undo?jQuery("#undolist"):RVS.C.undo,RVS.C.redo=void 0===RVS.C.redo?jQuery("#redolist"):RVS.C.redo}function m(e){if(!0===e.todo.SliderSettings&&(RVS.F.sliderUpdateAllFields(!0),jQuery(".sliderinput").trigger("init")),e.todo.slide=void 0!==e.todo.forceSelectSlide?e.todo.forceSelectSlide:e.todo.slide,e.todo.slide=void 0===e.todo.slide?RVS.S.slideId:e.todo.slide,e.todo.slide=RVS.F._inArray(e.todo.slide,RVS.SLIDER.slideIDs)>=0?e.todo.slide:RVS.SLIDER.slideIDs[0],!0===e.todo.SlideSettings&&(0===jQuery(".slide_list_element.sortable_slide_list_element").length?e.todo.mode="sliderlayout":(RVS.F.setSlideFocus({slideid:e.todo.slide}),e.todo.LayerSettings=!1)),!0===e.todo.SlideList&&RVS.F.reSortSlides(),void 0!==e.todo.mode&&RVS.F.mainMode({mode:e.todo.mode,set:!0,slide:e.todo.slide}),e.todo.LayerSettings=!1,"slidelayout"!==e.todo.mode||e.todo.layerAndSlideMode||(void 0!==e.todo.layer?RVS.DOC.trigger("changeToLayerMode"):RVS.DOC.trigger("changeToSlideMode")),!0===e.todo.LayerSettings&&RVS.F.updateAllLayerFrames(),(e.todo.rebuildLayerList||!0===e.todo.LayerSorting)&&(("slidelayout"!==e.todo.mode||e.todo.forceRebuildLayerList)&&(RVS.H={},RVS.F.buildLayerLists({force:!0}),RVS.F.updateLayerToggleActionWaits()),RVS.F.reOrderHTMLLayers()),void 0!==e.todo.framesToAdd){for(var t in e.todo.framesToAdd)e.todo.framesToAdd.hasOwnProperty(t)&&(RVS.F.addLayerFrameOnDemand(RVS.L[e.todo.framesToAdd[t].layerid],e.todo.framesToAdd[t].el,e.todo.framesToAdd[t].newframe),RVS.F.getFrameOrder({layerid:e.todo.framesToAdd[t].layerid}),RVS.F.updateFramesZIndexes({layerid:e.todo.framesToAdd[t].layerid}));RVS.DOC.trigger("updateKeyFramesList")}if(void 0!==e.todo.framesToRedraw)for(var t in e.todo.framesToRedraw)e.todo.framesToRedraw.hasOwnProperty(t)&&(RVS.F.updateLayerFrames({layerid:e.todo.framesToRedraw[t]}),RVS.F.renderLayerAnimation({layerid:e.todo.framesToRedraw[t]}));if(void 0!==e.todo.framesToReorder){for(var t in e.todo.framesToReorder)e.todo.framesToReorder.hasOwnProperty(t)&&(RVS.F.getFrameOrder({layerid:e.todo.framesToReorder[t].layerid}),RVS.F.updateFramesZIndexes({layerid:e.todo.framesToReorder[t].layerid}));RVS.DOC.trigger("updateKeyFramesList")}if(void 0!==e.todo.lastSelectedLayers)for(var t in e.todo.lastSelectedLayers)e.todo.lastSelectedLayers.hasOwnProperty(t)&&void 0!==RVS.L[e.todo.lastSelectedLayers[t]]&&RVS.F.selectLayers({id:e.todo.lastSelectedLayers[t],action:"add"});for(var t in e.todo.updateLayerImageSrcList)e.todo.updateLayerImageSrcList.hasOwnProperty(t)&&RVS.F.updateLayerImageSrc({},{layerid:e.todo.updateLayerImageSrcList[t]});RVS.DOC.trigger("SceneUpdatedAfterRestore")}function y(e){var t=jQuery.isNumeric(e.path);if(void 0!==e.backupType&&(e.todo.SlideList=!0,e.todo.SliderSettings=!0,e.todo.SlideSettings=!0,e.todo.LayerSettings=!0,e.todo.LayerSorting=!0,e.todo.layerAndSlideMode=!1),t||0!==e.path.indexOf("settings")||(e.todo.SliderSettings=!0,e.todo.mode="sliderlayout"),!t&&e.path.indexOf(".layers.")>=0&&e.path.indexOf(".layers.")<=6){e.todo.lastSelectedLayers=RVS.selLayers,e.todo.LayerSettings=!0;var a=e.path.split("."),i=jQuery.inArray("layers",a);e.todo.slide=a[i-1],e.todo.layer=a[i+1],e.todo.mode="slidelayout"}if(!t&&e.path.indexOf(".slide.")>=0&&e.path.indexOf(".slide.")<=6){e.todo.SlideSettings=!0;a=e.path.split("."),i=jQuery.inArray("slide",a);e.todo.slide=a[i-1],e.todo.mode="slidelayout"}return!t&&(e.path.indexOf(".slide.timeline.delay")>=0||e.path.indexOf(".slide.timeline.duration.0")>=0)&&(e.todo.layerAndSlideMode=!0),"slideIDs"===e.path&&(e.todo.SlideList=!0),"layersorting"!==e.groupid&&"layersorting_layermovement"!==e.groupid||(e.todo.LayerSorting=!0,e.todo.slide=e.path.split(".")[0]),e.todo}function g(e){var t=e.step,a=void 0===e.todo?{SlideList:!1,SliderSettings:!1,SlideSettings:!1,LayerSettings:!1,LayerSorting:!1}:e.todo;if(a.updateLayerImageSrcList=void 0===a.updateLayerImageSrcList?[]:a.updateLayerImageSrcList,a.slides=void 0===a.slides?[]:a.slides,void 0!==t.chngamount){for(var i in t.steps)if(t.steps.hasOwnProperty(i)){var r=t.steps[i];if("old"===e.valkey)r=t.steps[t.chngamount-i-1];if(void 0!==r.backupType)switch("addlayer"!==r.bckpGrType&&"removelayer"!==r.bckpGrType&&"layerTemplateAnimation"!==r.bckpGrType||(a.forceRebuildLayerList=!0),r.backupType){case"layerFrames":jQuery.isEmptyObject(r[e.valkey])||(RVS.SLIDER[r.slide].layers[r.layer].timeline.frames=jQuery.extend(!0,{},r[e.valkey]),a.framesToRedraw=void 0===a.framesToRedraw?[]:a.framesToRedraw,a.framesToRedraw.push(r.layer));break;case"clipPath":jQuery.isEmptyObject(r[e.valkey])||(RVS.SLIDER[r.slide].layers[r.layer].timeline.clipPath=jQuery.extend(!0,{},r[e.valkey]),a.framesToRedraw=void 0===a.framesToRedraw?[]:a.framesToRedraw,a.framesToRedraw.push(r.layer));break;case"singleFrame":jQuery.isEmptyObject(r[e.valkey])||(RVS.SLIDER[r.slide].layers[r.layer].timeline.frames[r.frame]=jQuery.extend(!0,{},r[e.valkey]),a.framesToRedraw=void 0===a.framesToRedraw?[]:a.framesToRedraw,a.framesToRedraw.push(r.layer));break;case"layerLoop":jQuery.isEmptyObject(r[e.valkey])||(RVS.SLIDER[r.slide].layers[r.layer].timeline.loop=jQuery.extend(!0,{},r[e.valkey]),a.framesToRedraw=void 0===a.framesToRedraw?[]:a.framesToRedraw,a.framesToRedraw.push(r.layer));break;case"frame":jQuery.isEmptyObject(r[e.valkey])?(delete RVS.SLIDER[r.slide].layers[r.layer].timeline.frames[r.frame],jQuery("#"+r.slide+"_"+r.layer+"_"+r.frame).remove(),a.framesToReorder=void 0===a.framesToReorder?[]:a.framesToReorder,a.framesToReorder.push({layerid:r.layer})):(RVS.SLIDER[r.slide].layers[r.layer].timeline.frames[r.frame]=jQuery.extend(!0,{},r[e.valkey]),a.framesToAdd=void 0===a.framesToAdd?[]:a.framesToAdd,a.framesToAdd.push({layerid:r.layer,el:jQuery("#tllayerlist_element_"+r.slide+"_"+r.layer),newframe:r.frame}));break;case"slide":jQuery.isEmptyObject(r[e.valkey])?(delete RVS.SLIDER[r.path],r.cache=jQuery("#slide_list_element_"+r.path).removeClass("selected").detach(),a.forceSelectSlide=r.beforeSelected):(RVS.SLIDER[r.path]=jQuery.extend(!0,{},r[e.valkey]),void 0!==r.cache&&jQuery("#slidelist").append(r.cache),jQuery.inArray(r.bckpGrType,["addnewslide","duplicateslide"])>=0?a.forceSelectSlide=r.path:a.forceSelectSlide=r.beforeSelected),a.mode="slidelayout";break;case"layer":jQuery.isEmptyObject(r[e.valkey])?(delete RVS.SLIDER[void 0!==r.slideid?r.slideid:RVS.S.slideId].layers[r.path],jQuery("#_lc_"+(void 0!==r.slideid?r.slideid:RVS.S.slideId)+"_"+r.path+"_").remove()):RVS.SLIDER[void 0!==r.slideid?r.slideid:RVS.S.slideId].layers[r.path]=jQuery.extend(!0,{},r[e.valkey]),a.rebuildLayerList=!0,a.layer=!0;break;case"full":RVS.SLIDER=jQuery.extend(!0,{},r[e.valkey])}else RVS.F.updateSliderObj({path:r.path,val:r[e.valkey],ignoreBackup:!0,ignoreResponsive:r.ignoreResponsive,wasEdited:r.wasEdited,editedPath:r.editedPath,undoRedo:"old"===e.valkey?"undo":"redo"});"updatelayerimagesrc"===r.evt&&-1===jQuery.inArray(a.updateLayerImageSrcList.indexOf,r.uid)&&a.updateLayerImageSrcList.push(r.uid),a=y({todo:a,path:r.path,groupid:t.id})}-1===jQuery.inArray(a.slide,a.slides)&&a.slides.push(a.slide),"layersorting_layermovement"==t.id&&(a.forceRebuildLayerList=!0)}else{if(void 0!==t.backupType)switch(t.backupType){case"slide":jQuery.isEmptyObject(t[e.valkey])?delete RVS.SLIDER[t.path]:RVS.SLIDER[t.path]=jQuery.extend(!0,{},t[e.valkey]);break;case"full":RVS.SLIDER=jQuery.extend(!0,{},t[e.valkey])}else RVS.F.updateSliderObj({path:t.path,val:t[e.valkey],ignoreBackup:!0,evt:t.evt,evtparam:t.evtparam,undoRedo:"old"===e.valkey?"undo":"redo",ignoreResponsive:t.ignoreResponsive,wasEdited:t.wasEdited,editedPath:t.editedPath});a=y({todo:a,path:t.path}),-1===jQuery.inArray(a.slide,a.slides)&&a.slides.push(a.slide)}return a}function h(e){void 0!==e&&void 0===e.type&&(e.type=e.path.indexOf(RVS.S.slideId+".layers.")>=0?"layer":e.type);var t=e.path,a=t.indexOf("addOns")>=0?t.split("addOns.")[1]:"none",i="layer"===e.type?"layers":"undo",r=e.path.split(".");return r=r[r.length-1],{txt:"none"!==a?a.replace("revslider-","").replace("-addon."," "+("layer"===e.type?"layer":"Slide")+" "):t.indexOf("settings.size.width")>=0?"Layer Container Width":t.indexOf("settings.size.height")>=0?"Layer Container Height":t.indexOf("settings.size.minHeight")>=0?"Slider Min Height":t.indexOf("settings.size.maxWidth")>=0?"Slider Max Width":t.indexOf("settings.size")>=0?"Slider Size Settings":t.indexOf("settings.carousel")>=0?"Carousel Settings":t.indexOf("slide.bg")>=0?"Slide Background":t.indexOf(".fontWeight")>=0?"Font Weight":t.indexOf(".fontSize")>=0?"Font Size":t.indexOf(".fontFamily")>=0?"Font Family":t.indexOf(".fontStyle")>=0?"Font Style":t.indexOf(".textTransform")>=0?"Text Transform":t.indexOf(".idle.selectable")>=0?"Layer Markable":t.indexOf(".textDecoration")>=0?"Text Decoration":t.indexOf("slide.attributes")>=0?"Slide Attributes":t.indexOf(".media")>=0&&"layer"===e.type?"Media ("+r+")":t.indexOf("alias")>=0&&(t.indexOf(".layers")>=0||"layer"===e.type)?"Layer Alias":t.indexOf("slide.timeline.duration")>=0?"Slide Transition Speed":t.indexOf("timeline.frames")>=0?"Layer Animation ("+r+")":"slideIDs"===t?"Slide Order Change":t,icon:i="none"!==a?"extension":t.indexOf("settings.size.width")>=0?"open_with":t.indexOf("settings.size.height")>=0?"open_with":t.indexOf("settings.size.minHeight")>=0?"vertical_align_bottom":t.indexOf("settings.size.maxWidth")>=0?"trending_flat":t.indexOf("settings.size")>=0?"exposure":t.indexOf("settings.carousel")>=0?"view_carousel":t.indexOf("slide.bg")>=0?"image":t.indexOf(".fontWeight")>=0?"font_download":t.indexOf(".fontSize")>=0?"text_format":t.indexOf(".fontFamily")>=0?"translate":t.indexOf(".fontStyle")>=0?"format_italic":t.indexOf(".textTransform")>=0?"text_fields":t.indexOf(".idle.selectable")>=0?"select_all":t.indexOf(".textDecoration")>=0?"text_format":t.indexOf("slide.attributes")>=0?"speaker_notes":t.indexOf(".media")>=0&&"layer"===e.type?"videocam":t.indexOf("alias")>=0&&(t.indexOf(".layers")>=0||"layer"===e.type)?"title":t.indexOf("slide.timeline.duration")>=0?"timelapse":t.indexOf("timeline.frames")>=0?"theaters":"slideIDs"===t?"sort":i,lastkey:e.lastkey}}function f(e){e.pos.x=e.mem.x+e.revert.x*RVS.S.DaD.dragdelta.x,e.pos.y=e.mem.y+e.revert.y*RVS.S.DaD.dragdelta.y,e.updateInput&&(void 0!==e.input&&void 0!==e.input.x&&e.input.x.val(e.pos.x),void 0!==e.input&&void 0!==e.input.y&&e.input.y.val(e.pos.y)),RVS.F.updateSliderObj({path:e.attributeRoot+e.attribute.x,val:e.pos.x}),RVS.F.updateSliderObj({path:e.attributeRoot+e.attribute.y,val:e.pos.y}),void 0!==e.callEvent&&jQuery("body").trigger(e.callEvent,e.callEventParam)}function _(e){var t='<option value="none">'+RVS_LANG.none+"</option>";for(var a in e.array)e.array.hasOwnProperty(a)&&(void 0!==e.filter&&"all"!==e.filter&&e.filter!==e.array[a].type||void 0!==e.subfilter&&"all"!==e.subfilter&&e.subfilter!==e.array[a].subtype||(t+="<option "+(e.preselected===e.array[a][e.type]?"selected":"")+' value="'+e.array[a][e.type]+'">'+e.array[a].title+"</option>"));return t}function b(e){return e.id?jQuery('<span><img src="'+jQuery(e.element)[0].dataset.src+'" class="wpml-img-flag" />'+e.text+"</span>"):e.text}function w(e){void 0!==e.val&&(e.show=e.show.replace(/\*val\*/g,e.val).replace(/ /g,""),e.hide=e.hide.replace(/\*val\*/g,e.val).replace(/ /g,"")),"hide"===e.showprio?(jQuery(e.show).show(),jQuery(e.hide).hide()):(jQuery(e.hide).hide(),jQuery(e.show).show())}function F(e){var t='<div class="form_collector '+e.a+'" data-type="'+e.b+'" data-pcontainer="#'+e.c+'" data-offset="#rev_builder_wrapper">';return t+='<div id="'+e.d+'"  data-select="'+e.f+e.slug+'" class="formcontainer form_menu_inside collapsed">',t+='<div class="collectortabwrap"><div id="" class="collectortab form_menu_inside" data-forms=\'["#'+e.d+"\"]'>"+e.title+"</div></div>",t+='<div id="'+e.e+'" class="form_inner open"></div>',t+="</div>",t+="</div>"}RVS.F.initAdmin=function(){try{jQuery.fn.select2=void 0===jQuery.fn.select2?jQuery.fn.select2RS:jQuery.fn.select2}catch(e){}try{$.fn.select2=void 0===$.fn.select2?$.fn.select2RS:$.fn.select2}catch(e){}RVS.screen="d",RVS.S.bckpGrp=!1,RVS.S.winh=RVS.WIN.height(),RVS.S.winw=RVS.WIN.width(),RVS.ENV.youtubeargs="hd=1&wmode=opaque&showinfo=0&rel=0;",RVS.ENV.vimeoargs="title=0&byline=0&portrait=0&api=1",RVS.V.sizes=["d","n","t","m"],RVS.V.sizesold=["desktop","notebook","tablet","mobile"],RVS.ENV.grid_sizes={d:1240,n:1024,t:778,m:480,none:"none"},RVS.ENV.globVerOffset=75,RVS.S.shrink={d:1,m:.625,n:.82580645,t:.75},RVS.S.mP={top:0,left:0},RVS.S.redoList=[],RVS.S.undoList=[],RVS.S.layer_wrap_offset={x:0,y:0},RVS.S.navOffset={thumbs:{top:0,bottom:0,left:0,right:0},tabs:{top:0,bottom:0,left:0,right:0}},RVS.S.rb_ScrollX=0,RVS.S.rb_ScrollY=0,RVS.eMode=void 0===RVS.eMode?{top:"",menu:"",mode:""}:RVS.eMode,RVS.S.respInfoBar={},RVS.V.timeline_height="auto",RVS.V.timeline_minHeight=275,RVS.V.timeline_minOpenHeight=275,RVS.S.editorSize={w:RVS.WIN.width()-335,h:RVS.WIN.height()-RVS.V.timeline_minHeight-65},RVS.S.click={x:0,y:0},RVS.JHOOKS={createLayerListElement:[],redrawSlideBG:[],prepareOneSlide:[],layerListElementClicked:[],updateFrameOptionsVisual:[],changeLayerAnimation:[],defaultFrame:[]},RVS.S.DaD={},RVS.S.DaD.dragdelta={x:0,y:0},RVS.WIN.on("resize",function(){var e=RVS.WIN.width(),t=RVS.WIN.height();RVS.S.winw==e&&RVS.S.winh==t||(RVS.S.winh=t,RVS.S.winw=e,RVS.S.editorSize.w=RVS.S.winw-335,RVS.S.editorSize.h=RVS.S.winh-RVS.V.timeline_minHeight-65,clearTimeout(r),r=setTimeout(function(){RVS.DOC.trigger("windowresized")},25))}),RVS.DOC.on("mousemove","#builderView",function(e){RVS.S.mP.top=e.pageY,RVS.S.mP.left=e.pageX,o&&punchgs.TweenLite.set(RVS.C.mouseInfo,{top:RVS.S.mP.top-40,left:RVS.S.mP.left+40,display:"block"}),void 0!==RVS.S.builderHover&&!1!==RVS.S.builderHover&&RVS.F.setRulerMarkers({x:RVS.S.mP.left,y:RVS.S.mP.top})})},RVS.F.HighContrast=function(e){"toggle"===e?jQuery("body").hasClass("rs-high-contrast")?jQuery("body").removeClass("rs-high-contrast"):jQuery("body").addClass("rs-high-contrast"):e?jQuery("body").addClass("rs-high-contrast"):jQuery("body").removeClass("rs-high-contrast")},RVS.F.getDeepVal=function(e){if(!(e.path.indexOf("#targetlayer#")>=0)||void 0!==RVS.S.actionTrgtLayerId&&"none"!==RVS.S.actionTrgtLayerId){e.screen=void 0===e.screen?RVS.screen:e.screen;var t=e.path.replace("#size#",e.screen).replace("#slide#",RVS.S.slideId).replace("#curslidetrans#",RVS.S.slideTrans).replace("#actionindex#",RVS.S.actionIdx).replace("#targetlayer#",RVS.S.actionTrgtLayerId).replace("#frame#","timeline.frames."+RVS.S.keyFrame).replace("#framekey#",RVS.S.keyFrame);return v(RVS.SLIDER,t)}},RVS.F.updateSliderObj=function(e){if(!(e.path.indexOf("#targetlayer#")>=0)||void 0!==RVS.S.actionTrgtLayerId&&"none"!==RVS.S.actionTrgtLayerId){e.path=e.path.replace("#size#",RVS.screen).replace("#slide#",RVS.S.slideId).replace("#curslidetrans#",RVS.S.slideTrans).replace("#actionindex#",RVS.S.actionIdx).replace("#targetlayer#",RVS.S.actionTrgtLayerId).replace("#frame#","timeline.frames."+RVS.S.keyFrame).replace("#framekey#",RVS.S.keyFrame);var t=e.path.split(".");try{e.old=v(RVS.SLIDER,e.path),R(RVS.SLIDER,e.path,e.val),e.lastkey=t[t.length-1]}catch(t){console.log("Object Path Does Not Exists:"+e.path)}if(!0!==e.ignoreResponsive&&("v"===t[t.length-1]||"v"===t[t.length-2])){if(e.uid=void 0===e.uid?t[jQuery.inArray("layers",t)+1]:e.uid,void 0===e.editedPath){e.editedPath="";for(var a=0;"v"!==t[a]&&a<t.length;)e.editedPath+=t[a]+".",a++;e.editedPath+="e"}e.editedPath.split(".").join('"]["');try{void 0!==e.wasEdited&&"undo"===e.undoRedo?R(RVS.SLIDER,e.editedPath,e.wasEdited):(e.wasEdited=v(RVS.SLIDER,e.editedPath),R(RVS.SLIDER,e.editedPath,!0))}catch(e){console.log(e)}RVS.F.intelligentUpdate({calcShrink:!0,iii:RVS.F.isIntelligentInherited(e.uid),key:"v"===t[t.length-1]?t[t.length-3]:t[t.length-4],index:t[t.length-1],uid:e.uid})}void 0!==e.evt&&!0!==i&&RVS.DOC.trigger(e.evt,e.evtparam),!0!==e.ignoreBackup&&RVS.F.backup(e)}},RVS.F.updateLayerObj=function(e){var t="none";if(!1===RVS.S.bckpGrp&&RVS.selLayers.length>1){t=e.path;var a={path:e.path,icon:"layers",lastkey:"layer",type:"layer",id:"MultipleLayers"};RVS.F.openBackupGroup(h(a))}for(var i in RVS.selLayers)RVS.selLayers.hasOwnProperty(i)&&(void 0!==e.evt&&(e.evtparam=void 0===e.evtparam?{}:e.evtparam,e.evtparam.layerid=RVS.selLayers[i]),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[i]+"."+e.path,val:e.val,evt:e.evt,evtparam:e.evtparam,uid:RVS.selLayers[i],ignoreBackup:e.ignoreBackup}),!0!==e.ignoreRedraw&&RVS.F.drawHTMLLayer({uid:RVS.selLayers[i]}));"none"!==t&&RVS.F.closeBackupGroup({id:"MultipleLayers"})},RVS.F.openBackupGroup=function(e){V(),e.steps=[],RVS.S.bckpGrp=e,RVS.S.bckpGrp.chngamount=0},RVS.F.closeBackupGroup=function(e){e.ignore||(RVS.S.bckpGrp.close=!0,RVS.F.backup(RVS.S.bckpGrp))},RVS.F.ignoreEventsOpen=function(){i=!0},RVS.F.ignoreEventsClose=function(){i=!1},RVS.F.backup=function(e){if(!0===e.force||!0===RVS.S.bckpGrp.close||e.val!==e.old){if(V(),0!=RVS.S.bckpGrp&&!0!==RVS.S.bckpGrp.close)RVS.S.bckpGrp.steps.push(e),RVS.S.bckpGrp.chngamount++;else{RVS.F.clearRedoList();var t=0!=RVS.S.bckpGrp?{icon:RVS.S.bckpGrp.icon,txt:RVS.S.bckpGrp.txt,lastkey:RVS.S.bckpGrp.chngamount}:void 0!==e.icon&&void 0!==e.txt?{icon:e.icon,txt:e.txt,lastkey:e.lastkey}:h(e);e.stepMarkup='<li id="" class="undoredostep toolbar_listelement">',e.stepMarkup+='<i class="material-icons">'+t.icon+"</i>",e.stepMarkup+='<span style="display:inline-block;min-width:150px;">'+t.txt+"</span>",e.stepMarkup+="</li>",RVS.S.undoList.push(e),RVS.S.undoList.length>30&&(RVS.S.undoList.splice(0,1),RVS.C.undo.find("li").first().remove()),RVS.C.undo.append(e.stepMarkup),RVS.S.bckpGrp=!1}1,RVS.S.need_to_save=!0}},RVS.F.clearRedoList=function(){RVS.S.redoList=[],RVS.C.redo.html("")},RVS.F.undo=function(e){var t;if((void 0===e||e.step>=1)&&(e.step=void 0===e.step?1:e.step,RVS.S.undoList.length>e.step-1)){for(var a=0;a<e.step;a++){var i=RVS.S.undoList.pop();RVS.S.redoList.push(i),t=g({todo:t,step:i,valkey:"old"})}m({todo:t}),RVS.F.showInfo({content:"Succesfully Undone "+e.step+" Steps.",type:"success",showdelay:0,hidedelay:1,hideon:"",event:""})}RVS.F.updateBackupList()},RVS.F.redo=function(e){var t;if((void 0===e||e.step>=1)&&(e.step=void 0===e.step?1:e.step,RVS.S.redoList.length>e.step-1)){for(var a=0;a<e.step;a++){var i=RVS.S.redoList.pop();RVS.S.undoList.push(i),t=g({todo:t,step:i,valkey:"val"})}m({todo:t}),RVS.F.showInfo({content:"Succesfully Redone "+e.step+" Steps.",type:"success",showdelay:0,hidedelay:1,hideon:"",event:""})}RVS.F.updateBackupList()},RVS.F.updateBackupList=function(){for(var e in V(),RVS.C.undo.html(""),RVS.C.redo.html(""),RVS.S.undoList)RVS.S.undoList.length>0&&void 0!==RVS.S.undoList[e]&&RVS.C.undo.append(RVS.S.undoList[e].stepMarkup);for(var t in RVS.S.redoList)RVS.S.redoList.length>0&&void 0!==RVS.S.redoList[t]&&RVS.C.redo.prepend(RVS.S.redoList[t].stepMarkup);jQuery("#undoredowrap").RSScroll("update")},RVS.F.showIconPicker=function(e){RVS.F.container=void 0===RVS.F.container?jQuery('<div id="rs_iconselector"><div class="rs_iconselector_header"><input type="text" placeholder="'+RVS_LANG.searcforicon+'" id="rs_iconselector_search"><i class="material-icons closers_iconselector">close</i></i></div>'):RVS.F.container,void 0===RVS.F.list&&(RVS.F.list=jQuery('<div id="rs_iconselector_inner"></div>'),RVS.F.container.append(RVS.F.list)),void 0!==e.parent&&jQuery(e.parent).append(RVS.F.container),void 0!==e.classlist&&(RVS.F.container[0].className=e.classlist),RVS.F.insertinto=jQuery(e.insertinto),RVS.S.icon_closeafterpick=e.closeafterpick,RVS.S.icon_shortreturn=e.shortreturn,"#ta_layertext"===e.insertinto&&"none"===RVS.F.insertinto[0].style.display&&(RVS.F.insertinto=jQuery("#ta_toggletext")),null==RVS.LIB.OBJ||void 0===RVS.LIB.OBJ.items||void 0===RVS.LIB.OBJ.items.fonticons?RVS.F.openObjectLibrary({types:["fonticons"],filter:"all",selected:["fonticons"],event:"showIconToTextLayerForm",silent:!0}):RVS.DOC.trigger("showIconToTextLayerForm")},RVS.F.initIconPicker=function(){RVS.F.initialized||(RVS.F.initialized=!0,RVS.DOC.on("showIconToTextLayerForm",function(){if(RVS.F.open=!0,!RVS.V.buildIconPicker)for(var e in RVS.V.buildIconPicker=!0,RVS.LIB.OBJ.items.fonticons)if(RVS.LIB.OBJ.items.fonticons.hasOwnProperty(e)){var t=RVS.LIB.OBJ.items.fonticons[e];void 0!==t.tags&&(void 0===RVS.C[t.tags[0]]&&(RVS.C[t.tags[0]]=jQuery('<div id="font_icon_subcontainer_'+t.tags[0]+'" class="font_icon_subcontainer"><div class="font_icon_subcontainer_title">'+t.tags[0]+"</div></div>"),RVS.F.list.append(RVS.C[t.tags[0]])),"MaterialIcons"===t.tags[0]?RVS.C[t.tags[0]].append('<i data-title="'+t.title+'" data-fonticon="true" class="material-icons">'+t.handle.replace(".","")+"</i>"):RVS.C[t.tags[0]].append('<i data-title="'+t.title+'" data-fonticon="true" class="'+t.handle.replace(".","")+'"></i>'))}RVS.F.container.show(),RVS.F.list.RSScroll({wheelPropagation:!1,suppressScrollX:!0})}),RVS.DOC.on("click",".closers_iconselector",function(){RVS.F.open=!1,RVS.F.container.hide()}),RVS.DOC.on("keyup","#rs_iconselector_search",function(){if(this.value.length>1){RVS.F.list.scrollTop(0);var e=this.value.toLowerCase();RVS.F.list.find("i").each(function(){this.dataset.title.toLowerCase().indexOf(e)>=0?this.style.display="inline-block":this.style.display="none"})}else RVS.F.list.find("i").each(function(){this.style.display="inline-block"})}),jQuery("body").on("click",function(e){if(RVS.F.open)if("rs_iconselector_search"===e.target.id);else if(e.target.dataset.fonticon)RVS.S.icon_shortreturn?RVS.F.insertinto.val(e.target.className):RVS.F.insertinto.val(RVS.F.insertinto.val()+'<i class="'+e.target.className+'">'+("material-icons"===e.target.className?e.target.innerHTML:"")+"</i>"),RVS.F.insertinto.trigger("change"),RVS.S.icon_closeafterpick&&(RVS.F.open=!1,RVS.F.container.hide());else if(!(jQuery(e.target).closest("#rs_iconselector_inner").length>0))return RVS.F.open=!1,RVS.F.container.hide(),!1}))},RVS.DOC.on("addIcontoTextLayer",function(e,t){RVS.F.initIconPicker();var a=t.event.currentTarget.dataset;RVS.F.showIconPicker({parent:a.iconparent,classlist:a.classlist,insertinto:a.insertinto,closeafterpick:a.closeafterpick,shortreturn:a.shortreturn})}),RVS.F.addBodyClickListener=function(e){jQuery("body").on("click.revbuilderbodyclick",function(e){if(void 0!==RVS.S.waitOnFeedback&&void 0!==RVS.S.waitOnFeedback.allowed){var t=!1;for(var a in RVS.S.waitOnFeedback.allowed)RVS.S.waitOnFeedback.allowed.hasOwnProperty(a)&&(t=!0===t||jQuery.inArray(RVS.S.waitOnFeedback.allowed[a],e.target.classList)>=0);if(!t)return void 0!==RVS.S.waitOnFeedback.closeEvent&&RVS.DOC.trigger(RVS.S.waitOnFeedback.closeEvent),RVS.S.waitOnFeedback=void 0,jQuery("body").unbind("click.revbuilderbodyclick"),!1}})},RVS.F.findUndefineds=function(e,t){var a="";for(var i in t=void 0===t?"ROOT":t,e)e.hasOwnProperty(i)&&("object"==typeof e[i]?(a=t+"."+i,RVS.F.findUndefineds(e[i],a)):void 0===e[i]&&console.log(t+"."+i+"="+t+"."+i+'===undefined ? "" : '+t+"."+i+";"))},RVS.F.dragMe=function(e){e.element.data("dragstart",{top:"auto",left:"auto",right:"auto",bottom:"auto"}),e.element.draggable({start:function(t,a){RVS.F.openBackupGroup({id:"elementmovement",txt:"Move "+e.element.attr("id"),icon:"open_with"}),RVS.F.updateContentDeltas(),RVS.S.click.y=t.clientY,RVS.S.click.x=t.clientX,s=[],e.mem={x:0,y:0},e.revert={x:"auto"===this.style.left?-1:1,y:"auto"===this.style.top?-1:1},void 0!==e.input&&void 0!==e.input.x&&(e.mem.x=parseInt(e.input.x.val(),0)),void 0!==e.input&&void 0!==e.input.y&&(e.mem.y=parseInt(e.input.y.val(),0)),e.attribute=void 0===e.attribute?{x:"",y:""}:e.attribute,e.attribute.x=""===e.attribute.x||void 0===e.attribute.x?e.input.x.data("r"):e.attribute.x,e.attribute.y=""===e.attribute.y||void 0===e.attribute.y?e.input.y.data("r"):e.attribute.y,e.pos={x:0,y:0},s.push(e),RVS.C.vW.removeClass("mode__slidelayout"),RVS.C.vW.addClass("mode__navlayout"),RVS.F.openSettings({forms:e.forms,uncollapse:!0})},drag:function(e,t){for(var a in RVS.S.DaD.dragdelta.x=e.clientX-RVS.S.click.x,RVS.S.DaD.dragdelta.y=e.clientY-RVS.S.click.y,s)s.hasOwnProperty(a)&&f(s[a]);t.position={}},stop:function(t,a){RVS.F.closeBackupGroup({id:"elementmovement",txt:"Move "+e.element.attr("id"),icon:"open_with"})}})},RVS.F.updateFormPositions=function(e){var t=e.jf.closest(".form_collector"),a=e.jf.closest("#the_right_toolbar_inner"),i=t.data();if(!0===e.uncollapse||"true"===e.uncollapse){var r=a.find(".form_collector:visible .formcontainer");if("form_collector_layerlist"!==t.attr("id"))for(var o=0;o<r.length;o++)"form_layerlist"!==r[o].id&&jQuery(r[o]).addClass("collapsed");e.jf.removeClass("collapsed")}void 0!==e.jf[0]&&void 0!==e.jf[0].dataset&&(void 0!==e.jf[0].dataset.unselect&&jQuery(e.jf[0].dataset.unselect).removeClass("selected"),void 0!==e.jf[0].dataset.select&&jQuery(e.jf[0].dataset.select).addClass("selected")),i&&void 0!==i.underlay&&(punchgs.TweenLite.set("#the_container",{filter:"blur(5px)"}),jQuery(i.underlay).show()),RVS.DOC.trigger("scrollUpdates")},RVS.F.showForms=function(e,t){var a,i=e.split(":");for(var r in RVS.eMode.lo_container=void 0===RVS.eMode.lo_container?document.getElementById("mmbw_loptions"):RVS.eMode.lo_container,RVS.eMode.sticky_container=void 0===RVS.eMode.sticky_container?document.getElementById("settings_sticky_info"):RVS.eMode.sticky_container,RVS.eMode.stickyLeft=void 0===RVS.eMode.stickyLeft?document.getElementById("settings_sticky_left"):RVS.eMode.stickyLeft,RVS.eMode.stickyRight=void 0===RVS.eMode.stickyRight?document.getElementById("settings_sticky_right"):RVS.eMode.stickyRight,i[0].indexOf("*sliderlayout*")>=0&&"sliderlayout"!==RVS.S.vWmode&&(RVS.F.mainMode({mode:"sliderlayout"}),RVS.eMode.top="slider",a=jQuery(".general_submodule_trigger.selected")),i[0].indexOf("*navlayout*")>=0&&"navlayout"!==RVS.S.vWmode&&(RVS.F.mainMode({mode:"navlayout"}),RVS.eMode.top="navigation",a=jQuery(".nav_submodule_trigger.selected")),i[0].indexOf("*slidelayout*")>=0&&"slidelayout"!==RVS.S.vWmode&&(RVS.F.mainMode({mode:"slidelayout"}),RVS.eMode.top="slide",a=jQuery(".slide_submodule_trigger.selected")),i[0].indexOf("*mode__slidestyle*")>=0&&(RVS.DOC.trigger("changeToSlideMode"),RVS.eMode.top="slide",a=jQuery(".slide_submodule_trigger.selected")),i[0].indexOf("*mode__slidecontent*")>=0&&(RVS.DOC.trigger("changeToLayerMode"),RVS.eMode.top="layer",a=jQuery(".layer_submodule_trigger.selected")),void 0!==a&&a.length>=1&&void 0!==a.data("forms")&&(RVS.eMode.menu=a.data("forms")[0]),i)i.hasOwnProperty(r)&&(i[r]=i[r].replace("*sliderlayout*",""),i[r]=i[r].replace("*navlayout*",""),i[r]=i[r].replace("*slidelayout*",""),i[r]=i[r].replace("*mode__slidestyle*",""),i[r]=i[r].replace("*mode__slidecontent*",""));if(""!==i[0]&&(RVS.eMode.menu=i[0]),RVS.F.updateFormPositions({jf:jQuery(i[0]),focus:!0,uncollapse:t}),RVS.eMode.preMode=RVS.eMode.mode,"layer"===RVS.eMode.top&&"#form_layer_content"===RVS.eMode.menu&&1===RVS.selLayers.length&&"audio"===RVS.L[RVS.selLayers[0]].type&&RVS.F.checkForAudioLayer(),"layer"!==RVS.eMode.top||"#form_layer_animation"!==RVS.eMode.menu&&"#form_layer_loop"!==RVS.eMode.menu?"layer"===RVS.eMode.top&&"#form_layer_hover"===RVS.eMode.menu&&"hover"!==RVS.eMode.mode?(RVS.eMode.mode="hover",RVS.eMode.lo_container.className="mmbw_hover",RVS.eMode.sticky_container.className="sticky_in_animation",RVS.F.animationMode(!1),RVS.S.shwLayerAnim&&(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.updateSelectedLayersIdleHover(),RVS.TL.TL.removeClass("inAnimationMode"),RVS.C.rb.removeClass("inAnimationMode")):"idle"!==RVS.eMode.mode&&(RVS.eMode.mode="idle",RVS.eMode.lo_container.className="mmbw_idle",RVS.eMode.sticky_container.className="",RVS.F.animationMode(!1),RVS.S.shwLayerAnim&&(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.updateSelectedLayersIdleHover(),RVS.TL.TL.removeClass("inAnimationMode"),RVS.C.rb.removeClass("inAnimationMode")):(RVS.selLayers.length>=1&&RVS.F.selectLayers({id:RVS.L[RVS.selLayers[0]].uid,overwrite:!0,action:"add"}),RVS.eMode.mode="animation",RVS.eMode.lo_container.className="mmbw_animation",RVS.eMode.sticky_container.className="sticky_in_animation",RVS.F.animationMode(!0),RVS.TL.TL.addClass("inAnimationMode"),RVS.C.rb.addClass("inAnimationMode")),"idle"===RVS.eMode.mode&&"idle"!==RVS.S.keyFrame&&(RVS.S.keyFrame="idle",RVS.F.animationMode(!1)),"hover"===RVS.eMode.preMode&&"hover"!==RVS.eMode.mode)for(var o in RVS.selLayers)RVS.selLayers.hasOwnProperty(o)&&RVS.F.drawHTMLLayer({uid:RVS.selLayers[o]});"slide"===RVS.eMode.top&&"#form_slide_loops"==RVS.eMode.menu?(RVS.TL.TL.addClass("slideloopedit"),RVS.TL.slideLoopEdit=!0):RVS.TL.slideLoopEdit&&(RVS.TL.TL.removeClass("slideloopedit"),RVS.TL.slideLoopEdit=!1),RVS.F.checkForFixedScroll(),RVS.DOC.trigger("editorViewModeChange"),clearTimeout(RVS.eMode.stickytimer),RVS.eMode.stickytimer=setTimeout(function(e){var t=(e=void 0===e?"slider"===RVS.eMode.top?jQuery(".general_submodule_trigger.selected"):"navigation"===RVS.eMode.top?jQuery(".nav_submodule_trigger.selected"):"slide"===RVS.eMode.top?jQuery(".slide_submodule_trigger.selected"):jQuery(".layer_submodule_trigger.selected"):e).find(".gso_title")[0];void 0!==t&&(RVS.eMode.stickyLeft.innerHTML=t.innerHTML,RVS.eMode.stickyLeft.classList.remove("purple"),void 0!==t.dataset.stickycolor&&"purple"===t.dataset.stickycolor&&(RVS.eMode.stickyLeft.className+=" purple")),RVS.eMode.stickyRight.innerHTML=RVS_LANG["sticky_"+RVS.eMode.top]},50,a)},RVS.F.openSettings=function(e){if(void 0!==e.btn&&void 0===e.forms&&(e.forms=e.btn.data("forms"),e.forms=void 0===e.forms?e.btn.closest(".markable").length>0?e.btn.closest(".markable").data("forms"):[]:e.forms),void 0!==e.forms)if("string"==typeof e.forms)RVS.F.showForms(e.forms,e.uncollapse);else for(var t in e.forms)e.forms.hasOwnProperty(t)&&RVS.F.showForms(e.forms[t],e.uncollapse)},RVS.F.mainMode=function(e){switch(RVS.C.vW.removeClass("mode__sliderlayout"),RVS.C.vW.removeClass("mode__slidelayout"),RVS.C.vW.removeClass("mode__navlayout"),RVS.S.vWmode=e.mode,!0!==e.ignoreReDraw&&RVS.DOC.trigger("beforeLayoutModeChange"),e.mode){case"navlayout":RVS.C.vW.addClass("mode__navlayout"),RVS.F.redrawAllNavigationContainer();break;case"sliderlayout":jQuery("#theslidermodule").addClass("selected"),RVS.C.vW.addClass("mode__sliderlayout"),RVS.F.redrawAllNavigationContainer();break;case"slidelayout":RVS.C.vW.addClass("mode__slidelayout"),void 0!==e.slide?RVS.F.setSlideFocus({slideid:e.slide}):RVS.F.updateAllHTMLLayerPositions()}e.set&&void 0!==e.forms&&RVS.F.openSettings({forms:e.forms,uncollapse:e.uncollapse})},RVS.F.updateEasyInput=function(e){e.nval="false"!==e.nval&&("true"===e.nval||e.nval),e.path=void 0===e.path?"settings.":e.path;var t=void 0,a="",i=e.el.type,r=e.el.dataset;switch(i){case"checkbox":case"text":case"textarea":case"select-one":case"select-multiple":if(e.multiselection)for(var o in RVS.selLayers)RVS.selLayers.hasOwnProperty(o)&&(a=void 0===e.nval?RVS.F.getDeepVal({path:e.path+RVS.selLayers[o]+"."+e.el.dataset.r}):e.nval,t=null==t||t==a?a:void 0!==r.multiplaceholder?r.multiplaceholder:"");else t=void 0===e.nval?RVS.F.getDeepVal({path:e.path+e.el.dataset.r}):e.nval;void 0===t&&void 0!==e.el.dataset.default&&(t=e.el.dataset.default),"select-one"===i&&(e.el.className.indexOf("setboxes")>=0&&RVS.F.checkAvailableTagS2({select:jQuery(e.el),val:t}),e.el.value=t,jQuery(e.el).trigger("change.select2RS")),"select-multiple"===i&&(jQuery.isArray(t)||(t=t.split(",")),jQuery(e.el).val(t),jQuery(e.el).trigger("change.select2RS")),void 0===r.unselect&&void 0===r.select||RVS.F.setUnsetSelected({unselect:r.unselect,select:r.select,val:e.el.value,rval:r.rval,prval:r.prval,prvalif:r.prvalif}),"checkbox"===i?e.el.checked=void 0===t?void 0:"false"!==t&&!1!==t:(e.el.value=t,e.el.history=e.el.value),e.el.value="layer_action_type"===e.el.id?RVS_LANG["layeraction_"+e.el.value]:e.el.value,e.el.value=void 0===e.el.value||"undefined"===e.el.value?"":e.el.value,"text"===i&&e.el.className.indexOf("my-color-field")>=0&&jQuery(e.el).rsColorPicker("refresh");break;case"radio":if(e.multiselection)for(var o in RVS.selLayers)RVS.selLayers.hasOwnProperty(o)&&(a=void 0===e.nval?e.el.value===RVS.F.getDeepVal({path:e.path+RVS.selLayers[o]+"."+e.el.dataset.r}):e.nval,t=null==t||t==a?a:"");else t=void 0===e.nval?e.el.value===RVS.F.getDeepVal({path:e.path+e.el.dataset.r}):e.nval;e.el.checked=t,void 0===r.unselect&&void 0===r.select||e.el.checked.checked&&RVS.F.setUnsetSelected({unselect:r.unselect,select:r.select,val:e.el.checked,rval:r.rval,prval:r.prval,prvalif:r.prvalif})}},RVS.F.updateEasyInputs=function(e){e.path=void 0===e.path?"settings.":e.path,jQuery(e.container).find(".easyinit").each(function(){if(RVS.F.updateEasyInput({el:this,path:e.path,multiselection:e.multiselection}),"init"===e.trigger||e.visualUpdate){var t=jQuery(this);"init"===e.trigger&&t.trigger("init"),"checkbox"===this.type&&RVS.F.turnOnOffVisUpdate({input:t})}})},RVS.F.setInputTo=function(e){jQuery.each(e.field,function(t,a){a=jQuery(a),RVS.F.updateEasyInput({el:a[0],nval:e.val,path:e.path}),"checkbox"===a[0].type&&RVS.F.turnOnOffVisUpdate({input:a}),a.trigger("change")})},RVS.F.generateAttachmentMetaData=function(){RVS.ENV.create_img_meta&&RVS.F.ajaxRequest("generate_attachment_metadata",{},function(){},!0,!0)},RVS.F.updateInputBoxes=function(){jQuery(".tos2, .slideinput, .sliderinput").trigger("init")},RVS.F.reInitInputBoxes=function(){jQuery(".tos2, .slideinput, .sliderinput").trigger("init")},RVS.F.checkAvailableTagS2=function(e){return void 0!==e.val&&void 0!==e.select&&(!(e.select.find('option[value="'+e.val+'"]').length>0)&&(e.select.append('<option value="'+e.val+'">'+e.val+"</option>"),e.select.trigger("change.select2RS").select2RS({tags:!0}),!0))},RVS.F.removeAllOptionsS2=function(e){void 0!==e&&void 0!==e.select&&(e.select.find("option").remove(),e.select.hasClass("nosearchbox")?e.select.trigger("change.select2RS").select2RS({minimumResultsForSearch:"Infinity",placeholder:"Enter or Select"}):e.select.hasClass("setboxes")&&e.select.trigger("change.select2RS").select2RS({tags:!0,placeholder:"Enter or Select"}))},RVS.F.addOptionS2=function(e){return void 0!==e.val&&void 0!==e.select&&(!(e.select.find('option[value="'+e.val+'"]').length>0)&&(e.select.append('<option value="'+e.val+'">'+e.txt+"</option>"),void(e.select.hasClass("nosearchbox")?e.select.trigger("change.select2RS").select2RS({minimumResultsForSearch:"Infinity",placeholder:"Enter or Select"}):e.select.hasClass("setboxes")&&e.select.trigger("change.select2RS").select2RS({tags:!0,placeholder:"Enter or Select"}))))},RVS.F.addOrSelectOption=function(e){if(void 0===e.val||void 0===e.select)return!1;e.select.find('option[value="'+e.val+'"]').length>0&&!1!==e.selected?e.select.val(e.val).trigger("change"):(!1!==e.selected?e.select.append('<option selected value="'+e.val+'">'+e.val+"</option>"):e.select.append('<option value="'+e.val+'">'+e.val+"</option>"),e.select.select2RS({minimumResultsForSearch:"Infinity",placeholder:"Select From List"}))},RVS.F.setS2Option=function(e){void 0!==e&&(void 0!==e.enableValue&&e.select.find('option[value="'+e.enableValue+'"]').removeAttr("disabled"),void 0!==e.disableValue&&e.select.find('option[value="'+e.disableValue+'"]').attr("disabled","disabled"),void 0!==e.selectValue&&e.select.val(e.selectValue),e.select.hasClass("nosearchbox")?e.select.trigger("change.select2RS").select2RS({minimumResultsForSearch:"Infinity",placeholder:"Enter or Select"}):e.select.hasClass("setboxes")&&e.select.trigger("change.select2RS").select2RS({tags:!0,placeholder:"Enter or Select"}),!0===e.update&&RVS.F.updateEasyInput({el:e.select[0],path:e.path}))},RVS.F.setRadio=function(e){if(void 0!==e&&void 0!==e.radio&&void 0!==e.radioValue){var t=jQuery('input:radio[name="'+e.radio+'"]').filter('[value="'+e.radioValue+'"]');t.attr("checked",!0),!0===e.change&&t.trigger("change"),!0===e.update&&RVS.F.updateEasyInput({el:e.select[0],path:e.path})}},RVS.F.insertAfter=function(e,t){var a=t.parentNode;a.lastChild==t?a.appendChild(e):a.insertBefore(e,t.nextSibling)},RVS.F.minMaxCheck=function(e){return e.v="wrong"!==e.v&&void 0!==e.max?Math.min(e.v,e.max):e.v,e.v="wrong"!==e.v&&void 0!==e.min?Math.max(e.v,e.min):e.v,e.v},RVS.F.checkNumInput=function(e){var t=jQuery.isNumeric(e.val),a=t?e.val:e.val.replace(/[^\d||-]+/g,""),i=t?"":e.val.replace(/\d+/,""),r=void 0!==e.history?e.history.replace(/\d+/,""):"px",o=void 0!==e.allowed?e.allowed.toLowerCase().split(","):["px"],s="";if(a=""===a?"wrong":a,i=i.toLowerCase(),jQuery.inArray("random",o)>=0&&"{"===i[0]&&"}"===i[i.length-1]||jQuery.inArray("cycle",o)>=0&&"["===i[0]&&"]"===i[i.length-1])return e.val=e.val.replace(/[^[\d||%||\-||{||}||.||,||\[||\]]+/g,""),e.val;if(jQuery.inArray("#/#",o)>=0&&"#"===i[0]&&"#"===i[i.length-1]&&"/"===e.val[2])return e.val;for(var n in o)o.hasOwnProperty(n)&&(i!=o[n]&&i!="-"+o[n]||(s=o[n]));return"wrong"===a&&""===s&&e.val.length>0?"badvalue":(a="wrong"===a?0:a,"%"===s||"px"===s||"ms"===s||"deg"===s||"char"===s||"-%"===s||"-px"===s||"-ms"===s||"-deg"===s?RVS.F.minMaxCheck({v:a,min:e.min,max:e.max})+s:""!==s?s.toLowerCase():e.val.length<=1||e.val==a?jQuery.inArray("none",o)>=0&&0===a?"none":(r=jQuery.inArray(r,o)>=0&&("px"===r||"%"===r||"ms"===r||"deg"===r||"char"===r)?r:jQuery.inArray("px",o)>=0?"px":jQuery.inArray("ms",o)>=0?"ms":jQuery.inArray("%",o)>=0?"%":jQuery.inArray("deg",o)>=0?"deg":jQuery.inArray("char",o)>=0?"char":"",RVS.F.minMaxCheck({v:a,min:e.min,max:e.max})+r):"badvalue")},RVS.F.prepareOneInputWithPresets=function(e){var t=jQuery(e);if(!t.parent().hasClass("input_presets_wrap")){t.wrap('<div class="input_presets_wrap"></div>');var a=t.parent(),i=jQuery('<div class="input_presets"></div>'),r=e.dataset.presets_val.split("!"),o=e.dataset.presets_text.split("!"),s="";for(var n in a.append('<i class="material-icons input_presets_dropdown">more_vert</i>'),o)o.hasOwnProperty(n)&&(s=o[n].indexOf("$$")>=0?"ipwborder":"",o[n]=o[n].replace("$R$",'<i class="material-icons">shuffle</i>').replace("$C$",'<i class="material-icons">create</i>').replace("$I$",'<i class="material-icons">system_update_alt</i>').replace("$SC$",'<i class="material-icons">fullscreen_exit</i>').replace("$SR$",'<i class="material-icons">arrow_back</i>').replace("$SB$",'<i class="material-icons">arrow_upward</i>').replace("$ST$",'<i class="material-icons">arrow_downward</i>').replace("$SL$",'<i class="material-icons">arrow_forward</i>').replace("$CL$",'<i class="material-icons">remove_circle_outline</i>').replace("$LI$",'<i class="material-icons">link</i>').replace("$LO$",'<i class="material-icons">local_offer</i>').replace("$CY$",'<i class="material-icons">import_export</i>'),i.append('<div class="input_preset '+s+'" data-iid="'+e.id+'" data-r="'+e.dataset.r+'" data-val="'+r[n]+'">'+o[n]+"</div>"));a.append(i)}},RVS.F.initInputsWithPresets=function(e){void 0===e&&jQuery(".input_with_presets").each(function(){RVS.F.prepareOneInputWithPresets(this)})},RVS.F.createSelectOptions=function(e){void 0===(n=void 0===n?{}:n)[e.ctype]?(n[e.ctype]=[],RVS.F.ajaxRequest("get_list_of",{type:e.ctype},function(t){if(t.pages)for(var a in t.pages)t.pages.hasOwnProperty(a)&&n[e.ctype].push({id:a,slug:t.pages[a].slug,title:t.pages[a].title});if(t.sliders)for(var a in t.sliders)t.sliders.hasOwnProperty(a)&&n[e.ctype].push({id:a,slug:t.sliders[a].slug,title:t.sliders[a].title,type:t.sliders[a].type,subtype:t.sliders[a].subtype});if(t.posttypes)for(var a in t.posttypes)t.posttypes.hasOwnProperty(a)&&n[e.ctype].push({slug:t.posttypes[a].slug,title:t.posttypes[a].title});e.select.innerHTML=_({array:n[e.ctype],type:e.select.dataset.valuetype,preselected:e.select.value,filter:e.select.dataset.filter,subfilter:e.select.dataset.subfilter}),jQuery(e.select).select2RS({minimumResultsForSearch:"Infinity",placeholder:"Select From List"}),RVS.F.updateSelectsWithSpecialOptions()},void 0,void 0,RVS_LANG.updateselects+'<br><span style="font-size:17px; line-height:25px;">"'+RVS_LANG.buildingSelects+'"</span>')):(e.select.innerHTML=_({array:n[e.ctype],type:e.select.dataset.valuetype,preselected:e.select.value,filter:e.select.dataset.filter,subfilter:e.select.dataset.subfilter}),jQuery(e.select).select2RS({minimumResultsForSearch:"Infinity",placeholder:"Select From List"}),RVS.F.updateSelectsWithSpecialOptions())},RVS.F.getCustomPostTypes=function(e){if(void 0!==RVS.LIB.POST_TYPES)return e&&e(),RVS.LIB.POST_TYPES;RVS.LIB.POST_TYPES=[],RVS.F.ajaxRequest("get_list_of",{type:"posttypes"},function(t){if(t.posttypes)for(var a in t.posttypes)t.posttypes.hasOwnProperty(a)&&RVS.LIB.POST_TYPES.push({slug:t.posttypes[a].slug,title:t.posttypes[a].title,tax:t.posttypes[a].tax});return e&&e(),RVS.LIB.POST_TYPES})},RVS.F.updateSelectsWithSpecialOptions=function(){if(void 0===l?l={listofselects:document.getElementsByClassName("select_of_customlist"),curindex:0}:l.curindex++,l.curindex>=l.listofselects.length)return delete l,!0;RVS.F.createSelectOptions({ctype:l.listofselects[l.curindex].dataset.ctype,select:l.listofselects[l.curindex]})},RVS.F.initTpColorBoxes=function(e){jQuery(e).rsColorPicker({init:function(e,t,a,i){var r=jQuery('<input type="text" class="layerinput">').appendTo(e);t.data("ghost",r).hide()},onRefresh:function(e,t){e.data("ghost").val(t)},onEdit:function(e,t){e.data("ghost").val(t),RVS.DOC.trigger("coloredit",[e,t])},change:function(e,t,a){e.data("ghost").val(t),RVS.DOC.trigger("coloredit",[e,t,a,!0])},cancel:function(e,t){e.data("ghost").val(t),RVS.DOC.trigger("colorcancel",[e,t])}})},RVS.F.createWPMLOptions=function(e){var t="";if("undefined"!=typeof RS_WPML_LANGS&&void 0!==RS_WPML_LANGS){for(var a in RS_WPML_LANGS)RS_WPML_LANGS.hasOwnProperty(a)&&(t+='<option value="'+a+'" data-src="'+RS_WPML_LANGS[a].image+'" data-select2RS-id="'+a+'">'+RS_WPML_LANGS[a].title+"</option>");e.innerHTML=t}},RVS.F.createEaseOptions=function(e){e=void 0===e.innerHTML?e[0]:e,void 0!==a&&""!==a||(a='<option value="default">Default</option>',a+='<option value="Linear.easeNone">Linear.easeNone</option>',a+='<option value="Power0.easeIn">Power0.easeIn</option>',a+='<option value="Power0.easeInOut">Power0.easeInOut</option>',a+='<option value="Power0.easeOut">Power0.easeOut</option>',a+='<option value="Power1.easeIn">Power1.easeIn</option>',a+='<option value="Power1.easeInOut">Power1.easeInOut</option>',a+='<option value="Power1.easeOut">Power1.easeOut</option>',a+='<option value="Power2.easeIn">Power2.easeIn</option>',a+='<option value="Power2.easeInOut">Power2.easeInOut</option>',a+='<option value="Power2.easeOut">Power2.easeOut</option>',a+='<option value="Power3.easeIn">Power3.easeIn</option>',a+='<option value="Power3.easeInOut">Power3.easeInOut</option>',a+='<option value="Power3.easeOut">Power3.easeOut</option>',a+='<option value="Power4.easeIn">Power4.easeIn</option>',a+='<option value="Power4.easeInOut">Power4.easeInOut</option>',a+='<option value="Power4.easeOut">Power4.easeOut</option>',a+='<option value="Back.easeIn">Back.easeIn</option>',a+='<option value="Back.easeInOut">Back.easeInOut</option>',a+='<option value="Back.easeOut">Back.easeOut</option>',a+='<option value="Bounce.easeIn">Bounce.easeIn</option>',a+='<option value="Bounce.easeInOut">Bounce.easeInOut</option>',a+='<option value="Bounce.easeOut">Bounce.easeOut</option>',a+='<option value="BounceLite">Bounce Lite</option>',a+='<option value="BounceSolid">Bounce Solid</option>',a+='<option value="BounceStrong">Bounce Strong</option>',a+='<option value="BounceExtrem">Bounce Extrem</option>',a+='<option value="Circ.easeIn">Circ.easeIn</option>',a+='<option value="Circ.easeInOut">Circ.easeInOut</option>',a+='<option value="Circ.easeOut">Circ.easeOut</option>',a+='<option value="Elastic.easeIn">Elastic.easeIn</option>',a+='<option value="Elastic.easeInOut">Elastic.easeInOut</option>',a+='<option value="Elastic.easeOut">Elastic.easeOut</option>',a+='<option value="Expo.easeIn">Expo.easeIn</option>',a+='<option value="Expo.easeInOut">Expo.easeInOut</option>',a+='<option value="Expo.easeOut">Expo.easeOut</option>',a+='<option value="Sine.easeIn">Sine.easeIn</option>',a+='<option value="Sine.easeInOut">Sine.easeInOut</option>',a+='<option value="Sine.easeOut">Sine.easeOut</option>',a+='<option value="SlowMo.ease">SlowMo.ease</option>',a+='<option value="SFXBounceLite">SFX - Bounce Lite</option>',a+='<option value="SFXBounceSolid">SFX - Bounce Solid</option>',a+='<option value="SFXBounceStrong">SFX - Bounce Strong</option>',a+='<option value="SFXBounceExtrem">SFX - Bounce Extrem</option>'),e.innerHTML=a,void 0!==e.dataset&&!0===e.dataset.inherit&&(e.innerHTML+='<option value="inherit">Inherit</option>'+thisease)},RVS.F.createSlideAnimOptions=function(t){if(t=void 0===t.innerHTML?t[0]:t,void 0===e||""===e)for(var a in RVS.LIB.SLIDEANIMS)if(RVS.LIB.SLIDEANIMS.hasOwnProperty(a)){var i='<optgroup label="'+RVS.LIB.SLIDEANIMS[a].alias+'">';for(var r in RVS.LIB.SLIDEANIMS[a])RVS.LIB.SLIDEANIMS[a].hasOwnProperty(r)&&"alias"!==r&&(i+='<option value="'+r+'">'+RVS.LIB.SLIDEANIMS[a][r]+"</option>");e+=i+"</optgoup>"}t.innerHTML=e},RVS.F.createSliderListOptions=function(e){if(e=void 0===e.innerHTML?e[0]:e,void 0===t||""===t)for(var a in t="",RVS.LIB.SLIDERS)RVS.LIB.SLIDERS.hasOwnProperty(a)&&(t+='<option value="'+RVS.LIB.SLIDERS[a].alias+'">'+RVS.LIB.SLIDERS[a].title+"</option>");e.innerHTML=t},RVS.F.initialiseGlobalBoxes=function(){jQuery(".tos2.slideAnimSelect").each(function(){RVS.F.createSlideAnimOptions(this)}),jQuery(".tos2.selectsliderlist").each(function(){RVS.F.createSliderListOptions(this)}),jQuery(".tos2.easingSelect").each(function(){RVS.F.createEaseOptions(this)}),jQuery(".tos2.wpml_lang_selector").each(function(){RVS.F.createWPMLOptions(this)}),jQuery(".tos2.nosearchbox").select2RS({minimumResultsForSearch:"Infinity",placeholder:"Select From List"}),jQuery(".tos2.searchbox").select2RS({placeholder:"Enter or Select"}),jQuery(".tos2.setboxes").select2RS({tags:!0,placeholder:"Enter or Select"}),jQuery(".tos2.wpml_lang_selector").select2RS({minimumResultsForSearch:"Infinity",placeholder:"Select From List",templateResult:b}),RVS.DOC.on("click","#add_on_management",RVS.F.openAddonModal),RVS.DOC.on("openAddonModal",RVS.F.openAddonModal)},RVS.F.initialiseInputBoxes=function(){if(RVS.F.initialiseGlobalBoxes(),RVS.F.initTpColorBoxes(".my-color-field"),RVS.F.initPreDrops(),RVS.F.initInputsWithPresets(),RVS.DOC.on("keyup click focus",".livechange",function(e){var t=e.currentTarget,a=t.dataset;RVS.S.inputField=t.id,RVS.S.inputFieldCursorAt=t.selectionStart,void 0!==a&&null==a.evt&&jQuery("body").trigger(a.evt,{event:e,val:this.value,eventparam:a.evtparam})}),RVS.DOC.on("focus","textarea, input",function(e){RVS.S.inFocus=e.currentTarget,RVS.S.inFocusValue=e.currentTarget.value}),RVS.DOC.on("blur","textarea, input",function(e){RVS.S.inFocus="none"}),RVS.DOC.on("click","#filedrop_close",RVS.F.browserDroppable.close),RVS.DOC.on("click","#fullpage_close",RVS.F.fullPageInfo.close),RVS.DOC.on("click","#rbmas_activateplugin",function(){var e=jQuery("#rbmas_purchasekey").val();RVS.F.ajaxRequest("activate_plugin",{code:e},function(t){if(t.success){if(RVS.ENV.activated=!0,RVS.ENV.code=e,jQuery(".rbmas_close").click(),void 0===RVS||void 0===RVS.F.updateDraw)return;RVS.F.updateDraw(),RVS.F.isActivated(),RVS.F.notifications()}})}),RVS.DOC.on("change init update focus",".tos2, .basicinput, .slideinput, .sliderinput, .globalinput, .layerinput, .navinput, .navstyleinput, .indeplayerinput, .actioninput, .targetlayeractioninput",function(e){var t=e.currentTarget,a=t.dataset,i="checkbox"===t.type?this.checked:this.value,r=jQuery(this);if(a.numeric){if("badvalue"===(i=RVS.F.checkNumInput({val:i,allowed:a.allowed,history:a.history,min:a.min,max:a.max})))return void jQuery(t).addClass("badvalue");t.className=t.className.replace("badvalue",""),t.value=i,a.history=t.value}switch("true"===a.sanitize&&(i=RVS.F.sanitize_input(i)),"select-multiple"===t.type&&(i=[],jQuery.each(t.selectedOptions,function(){i.push(this.value)})),void 0===a.showhide&&void 0===a.show&&void 0===a.hide||("radio"!==t.type||t.checked)&&RVS.F.triggerShowHideDep(t,i),void 0===a.unselect&&void 0===a.select||("radio"!==t.type||t.checked)&&RVS.F.setUnsetSelected({unselect:a.unselect,select:a.select,val:i,rval:a.rval,prval:a.prval,prvalif:a.prvalif}),void 0===a.setclasson&&void 0===a.class||("radio"!==t.type||t.checked)&&RVS.F.setUnsetClass({container:a.setclasson,class:a.class,inversclass:a.inversclass,val:i,rval:a.rval}),void 0===a.disable&&void 0===a.enable||("radio"!==t.type||t.checked)&&RVS.F.setEnableDisable({disable:a.disable,enable:a.enable,val:i}),void 0===a.available&&void 0===a.unavailable||("radio"!==t.type||t.checked)&&RVS.F.setUnAvailable({unavailable:a.unavailable,available:a.available,val:i}),void 0!==a.change&&(void 0!==a.changewhen&&(i===a.changewhen||!0===i&&"true"===a.changewhen||!1===i&&"false"===a.changewhen)&&RVS.F.setInputTo({field:jQuery(a.change),val:a.changeto,path:a.path}),void 0!==a.changewhennot&&i!==a.changewhennot&&(!1!==i&&"false"!==i||a.changewhennot+""!="false")&&(!0!==i&&"true"!==i||a.changewhennot+""!="true")&&RVS.F.setInputTo({field:jQuery(a.change),val:a.changeto,path:a.path})),void 0!==a.updatetext&&jQuery(a.updatetext).text(i),e.type){case"change":if(void 0!==a.r){if(void 0!==a.valcheck&&RVS.F.hasOwnProperty(a.valcheck)&&"function"==typeof RVS.F[a.valcheck]){i=RVS.F[a.valcheck](i);a.numeric&&(i=RVS.F.checkNumInput({val:i,allowed:a.allowed,history:a.history,min:a.min,max:a.max})),this.value=i,a.history=i}r.hasClass("slideinput")&&RVS.F.updateSliderObj({path:RVS.S.slideId+".slide."+a.r,val:i,evt:a.evt,evtparam:a.evtparam}),r.hasClass("navstyleinput")&&(RVS.F.updateSliderObj({path:a.r+"-def",val:!0}),jQuery("#"+e.currentTarget.id+"-def").attr("checked","checked"),RVS.F.turnOnOff(jQuery("#"+e.currentTarget.id+"-def").closest(".tponoffwrap"),!1),RVS.F.updateSliderObj({path:a.r,val:i,evt:a.evt,evtparam:a.evtparam})),r.hasClass("globalinput")&&RVS.F.updateSliderObj({path:a.r,val:i,evt:a.evt,evtparam:a.evtparam}),r.hasClass("sliderinput")&&RVS.F.updateSliderObj({path:"settings."+a.r,val:i,evt:a.evt,evtparam:a.evtparam}),r.hasClass("layerinput")&&"true"!==a.updateviaevt&&1!=a.updateviaevt&&RVS.F.updateLayerObj({path:a.r,val:i,evt:a.evt,evtparam:a.evtparam}),r.hasClass("actioninput")&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[0]+"."+a.r,val:i,evt:a.evt,evtparam:a.evtparam}),r.hasClass("targetlayeractioninput")&&(void 0!==RVS.S.actionTrgtLayerId&&RVS.S.actionTrgtLayerId.indexOf("static-")>=0?RVS.F.updateSliderObj({path:RVS.SLIDER.staticSlideId+".layers."+RVS.S.actionTrgtLayerId.replace("static-","")+"."+a.r,val:i,evt:a.evt,evtparam:a.evtparam}):RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.S.actionTrgtLayerId+"."+a.r,val:i,evt:a.evt,evtparam:a.evtparam})),r.hasClass("indeplayerinput")&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+a.r,val:i,evt:a.evt,evtparam:a.evtparam}),r.hasClass("presetToCustom")&&(jQuery("#sr_"+a.evtparam+"_style_preset").val("").trigger("change.select2RS"),RVS.SLIDER.settings.nav[a.evtparam].preset=""),void 0!==this.dataset.triggerinp&&RVS.F.triggerInput({inp:this.dataset.triggerinp,dep:i,val:this.dataset.triggerinpval,when:this.dataset.triggerwhen,whennot:this.dataset.triggerwhennot})}r.hasClass("callEvent")&&jQuery("body").trigger(a.evt,{event:e,val:i,eventparam:a.evtparam});break;case"focusin":void 0!==a.focusevt&&RVS.DOC.trigger(a.focusevt,{event:e,val:i,eventparam:a.focusevtparam}),void 0!==a.responsive&&(RVS.S.respInfoBar.visible=!0,RVS.F.showFieldResponsiveValues(this)),"true"==a.cursortoclick?window.setTimeout(function(){!function(e){if("number"==typeof e.selectionStart)e.selectionStart=e.selectionEnd=e.value.length;else if(void 0!==e.createTextRange){e.focus();var t=e.createTextRange();t.collapse(!1),t.select()}}(this)},1):r.select()}}),RVS.DOC.on("mouseleave",".input_presets_wrap",function(){jQuery(this).removeClass("infocus")}),RVS.DOC.on("click",".input_preset",function(){if("###metapicker###"===this.dataset.val)RVS.DOC.trigger("addMetaToLayer",{eventparam:"#"+this.dataset.iid});else{var e=jQuery("#"+this.dataset.iid);e.val(this.dataset.val),e.trigger("change"),e.focus()}}),RVS.DOC.on("click",".show_more_toggle",function(){jQuery(this).toggleClass("showlesson"),jQuery(this.dataset.toggle).toggle()}),RVS.DOC.on("click",".icon_switcher",function(){this.className.indexOf("icsw_on")>=0?RVS.F.setInputTo({field:jQuery(this.dataset.ref),val:!1}):RVS.F.setInputTo({field:jQuery(this.dataset.ref),val:!0})}),RVS.DOC.on("click",".triggerEvent",function(e){var t=this.dataset;jQuery("body").trigger(t.evt,{event:e,eventparam:t.evtparam})}),RVS.DOC.on("click",".vs-item",function(){jQuery(this.parentNode).find(".vs-item").removeClass("selected"),this.className+=" selected",w({hide:this.dataset.hide,show:this.dataset.show,showprio:this.dataset.showprio})}),RVS.DOC.on("click",".screen_selector, .toolkit_selector, .eventcaller, .form_opener_btn, .collectortab, .opensettingstrigger, .extendval, .openmodaltrigger",function(e){if(e.target.className.indexOf("tponoff")>=0||this.className.indexOf("ssnotavailable")>=0);else{if(void 0!==this.dataset.triggerinp&&jQuery(this.dataset.triggerinp).val(this.dataset.triggerinpval).trigger("change"),void 0!==this.dataset.forms&&RVS.F.openSettings({forms:jQuery(this).data("forms"),uncollapse:this.dataset.collapse}),void 0!==this.dataset.unselect&&jQuery(this.dataset.unselect).removeClass("selected"),void 0!==this.dataset.select&&jQuery(this.dataset.select).addClass("selected"),void 0!==this.dataset.extendval){var t=jQuery(this.dataset.inp);t.val(t.val()+" "+this.dataset.extendval).trigger("change")}void 0!==this.dataset.screenicon&&(jQuery("#screen_selector_ph_icon").html(this.dataset.screenicon),jQuery("#screen_selector_ph_icon_sr").html(this.dataset.screenicon)),void 0!==this.dataset.evt&&(this.className.indexOf("callEvent")>=0||this.className.indexOf("eventcaller")>=0)&&jQuery("body").trigger(this.dataset.evt,this.dataset.evtparam),void 0!==this.dataset.modal&&RVS.F.RSDialog.create({modalid:this.dataset.modal})}RVS.DOC.trigger("previewStopLayerAnimation")}),jQuery(".copyclipboard").length>0&&"undefined"!=typeof RSClipboard){var e=new RSClipboard(".copyclipboard");e.on("success",function(e){punchgs.TweenLite.fromTo(jQuery(e.trigger),.4,{autoAlpha:0},{autoAlpha:1,ease:punchgs.Power3.easeInOut})}),e.on("error",function(e){(e=jQuery(e.trigger)).addClass("errorcopy"),setTimeout(function(){e.removeClass("errorcopy")},400)})}jQuery(".inputDatePicker").length>0&&jQuery(".inputDatePicker").datepicker({dateFormat:"dd-mm-yy 00:00"}),RVS.F.reInitInputBoxes(),RVS.DOC.on("keydown",".valueduekeyboard",function(e,t){var a=e.keyCode?e.keyCode:e.which,i=null!=e.currentTarget.dataset.steps?parseFloat(e.currentTarget.dataset.steps):1,r=null!=e.currentTarget.dataset.min?e.currentTarget.dataset.min:-99999,o=null!=e.currentTarget.dataset.max?e.currentTarget.dataset.max:99999,s=parseFloat(e.currentTarget.value)||0;switch(e.shiftKey&&(i*=10),a){case 38:e.currentTarget.value=Math.min(s+i,o),e.currentTarget.value!==Math.round(e.currentTarget.value)&&(e.currentTarget.value=Math.round(100*e.currentTarget.value)/100);break;case 40:e.currentTarget.value=Math.max(s-i,r),e.currentTarget.value!==Math.round(e.currentTarget.value)&&(e.currentTarget.value=Math.round(100*e.currentTarget.value)/100)}38!==a&&40!==a||jQuery(e.currentTarget).trigger("change")}),RVS.DOC.on("keyup",".losefocusonenter",function(e,t){13===e.keyCode&&jQuery(document.activeElement).blur()}),RVS.DOC.on("keyup","input, textarea",function(e,t){13===e.keyCode&&(RVS.S.inFocusValue=this.value)}),RVS.DOC.on("keyup keydown",function(e,t){"9"==e.keyCode&&jQuery("#builderView").scrollTop(0)}),RVS.DOC.on("keydown",function(e,t){if("27"==e.keyCode&&(void 0!==RVS.S.inFocus&&"none"!==RVS.S.inFocus&&RVS.S.inFocus.value!==RVS.S.inFocusValue&&(RVS.S.inFocus.value=RVS.S.inFocusValue,void 0!==RVS.S.inFocus.dataset.evt&&RVS.DOC.trigger(RVS.S.inFocus.dataset.evt,{val:RVS.S.inFocusValue,eventparam:RVS.S.inFocus.dataset.evtparam})),void 0!==RVS.S.inFocus&&"none"!==RVS.S.inFocus&&jQuery(RVS.S.inFocus).trigger("blur")),"32"==e.keyCode&&("none"===RVS.S.inFocus||void 0===RVS.S.inFocus))return RVS.F.toggleTimeLine(),!1}),RVS.DOC.on("click",".resettodefault",function(){var e=jQuery(this),t=e.data(),a=jQuery(t.target);void 0!==t.r?e.hasClass("layerinput")?RVS.F.updateLayerObj({path:t.r,val:t.default,evt:t.evt,evtparam:t.evtparam}):RVS.F.updateSliderObj({path:t.r,val:t.default,evt:t.evt,evtparam:t.evtparam}):(void 0!==a&&(a.val(t.default),a.trigger("change")),void 0!==t.evt&&RVS.DOC.trigger(t.evt,t.evtparam))}),RVS.DOC.on("click",".getImageFromMediaLibrary",function(){var e=jQuery(this),t=e.data(),a=jQuery(t.target),i="true"===this.dataset.multiple||1==this.dataset.multiple;RVS.F.openAddImageDialog(RVS_LANG.choose_image,function(i,r){void 0!==t.r?e.hasClass("layerinput")?(RVS.F.openBackupGroup({id:"UpdateLayerImage",txt:"Update Layer Image",icon:"photo"}),t.r.indexOf(".media")>=0&&RVS.F.updateLayerObj({path:"media.lastLibrary",val:"medialibrary"}),RVS.F.updateLayerObj({path:t.r,val:i,evt:t.evt,evtparam:t.evtparam}),void 0!==t.rid&&RVS.F.updateLayerObj({path:t.rid,val:r}),void 0!==t.rty&&RVS.F.updateLayerObj({path:t.rty,val:"medialibrary"}),RVS.F.closeBackupGroup({id:"UpdateLayerImage"})):(RVS.F.openBackupGroup({id:"UpdateSlideImage",txt:"Update Slide Image",icon:"photo"}),RVS.F.updateSliderObj({path:t.r,val:i,evt:t.evt,evtparam:t.evtparam}),void 0!==t.rid&&RVS.F.updateSliderObj({path:t.rid,val:r}),void 0!==t.rty&&RVS.F.updateSliderObj({path:t.rty,val:"medialibrary"}),RVS.F.closeBackupGroup({id:"UpdateSlideImage"})):(void 0!==a&&(a.val(i),a.trigger("change")),t.evtparam=void 0===t.evtparam?{}:t.evtparam,t.evtparam.urlImage=i,void 0!==t.evt&&RVS.DOC.trigger(t.evt,t.evtparam))},i)}),RVS.DOC.on("click",".removePosterImage",function(){var e=jQuery(this),t=e.data(),a=jQuery(t.target);"true"===this.dataset.multiple||this.dataset.multiple;void 0!==t.r?e.hasClass("layerinput")?(RVS.F.openBackupGroup({id:"UpdateLayerImage",txt:"Update Layer Image",icon:"photo"}),t.r.indexOf(".media")>=0&&RVS.F.updateLayerObj({path:"media.lastLibrary",val:"medialibrary"}),RVS.F.updateLayerObj({path:t.r,val:"",evt:t.evt,evtparam:t.evtparam}),void 0!==t.rid&&RVS.F.updateLayerObj({path:t.rid,val:""}),void 0!==t.rty&&RVS.F.updateLayerObj({path:t.rty,val:"medialibrary"}),RVS.F.closeBackupGroup({id:"UpdateLayerImage"})):(RVS.F.openBackupGroup({id:"UpdateSlideImage",txt:"Update Slide Image",icon:"photo"}),RVS.F.updateSliderObj({path:t.r,val:"",evt:t.evt,evtparam:t.evtparam}),void 0!==t.rid&&RVS.F.updateSliderObj({path:t.rid,val:""}),void 0!==t.rty&&RVS.F.updateSliderObj({path:t.rty,val:"medialibrary"}),RVS.F.closeBackupGroup({id:"UpdateSlideImage"})):(void 0!==a&&(a.val(""),a.trigger("change")),t.evtparam=void 0===t.evtparam?{}:t.evtparam,t.evtparam.urlImage="",void 0!==t.evt&&RVS.DOC.trigger(t.evt,t.evtparam))}),RVS.DOC.on("click",".getVideoFromMediaLibrary",function(){var e=jQuery(this).data(),t=jQuery(e.target),a=this.className.indexOf("layerinput")>=0;RVS.F.openAddVideoDialog(RVS_LANG.choose_video,function(i,r){void 0!==e.r?(RVS.F.openBackupGroup({id:"updateVideo",txt:"Update Video from Media Library",icon:"videocam"}),void 0!==e.rid&&RVS.F.updateSliderObj({path:e.rid,val:r}),RVS.F.updateSliderObj({path:e.r,val:i,evt:e.evt,evtparam:e.evtparam}),RVS.F.closeBackupGroup({id:"updateVideo"})):(void 0!==t&&(t.val(i),RVS.F.openBackupGroup({id:"updateVideo",txt:"Update Video from Media Library",icon:"videocam"}),t.trigger("change"),void 0===e.rid||a||RVS.F.updateSliderObj({path:e.rid,val:r}),RVS.selLayers.length>0&&a&&(RVS.F.updateLayerObj({path:"media.mediaType",val:void 0!==e.mediatype?e.mediatype:"html5"}),void 0!==e.rid&&a&&RVS.F.updateLayerObj({path:e.rid,val:r}),RVS.F.updateEasyInputs({container:jQuery(".layer_settings_collector"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0})),RVS.F.closeBackupGroup({id:"updateVideo"})),void 0!==e.evt&&RVS.DOC.trigger(e.evt,e.evtparam))})}),RVS.DOC.on("click",".getVideoFromObjectLibrary",function(){var e=jQuery(this),t=e.data();t.targetType=e.hasClass("layerinput")?"layer":"slide",RVS.F.openObjectLibrary({types:["videos"],filter:"all",selected:["videos"],data:t,success:{video:"updateVideoSrcFromLibrary"}})}),RVS.DOC.on("updateVideoSrcFromLibrary",function(e,t){void 0!==t.r?"layer"===t.targetType?(RVS.F.openBackupGroup({id:"videofromobjlibrary",txt:"Video from OBJ Library",icon:"videocam",lastkey:"mp4Url"}),RVS.F.updateLayerObj({path:"media.lastLibrary",val:"objectlibrary"}),RVS.F.updateLayerObj({path:"media.mediaType",val:"html5"}),RVS.F.updateLayerObj({path:"media.posterUrl",val:t.img}),RVS.F.updateLayerObj({path:"media.mp4Url",val:t.video,evt:t.evt,evtparam:t.evtparam}),RVS.F.closeBackupGroup({id:"videofromobjlibrary"}),RVS.F.updateEasyInputs({container:jQuery(".layer_settings_collector"),path:RVS.S.slideId+".layers.",trigger:"init",multiselection:!0})):(RVS.F.openBackupGroup({id:"videofromobjlibrary",txt:"Video from OBJ Library",icon:"videocam",lastkey:"mp4Url"}),RVS.F.updateSliderObj({path:RVS.S.slideId+".slide.bg.image",val:t.img}),RVS.F.updateSliderObj({path:RVS.S.slideId+".slide.bg.imageId",val:void 0}),RVS.F.updateSliderObj({path:RVS.S.slideId+".slide.bg.mpeg",val:t.video,evt:t.evt,evtparam:t.evtparam}),RVS.F.closeBackupGroup({id:"Vvideofromobjlibrary"}),RVS.F.updateEasyInputs({container:jQuery(".slide_settings_collector"),path:RVS.S.slideId+".slide.",trigger:"init"})):(void 0!==t.target&&(t.target.val(t.img),t.target.trigger("change")),void 0!==t.evt&&RVS.DOC.trigger(t.evt,t.evtparam))}),RVS.DOC.on("click",".getImageFromObjectLibrary",function(){var e=jQuery(this),t=e.data();t.targetType=e.hasClass("layerinput")?"layer":"slide",RVS.F.openObjectLibrary({types:["images","objects"],filter:"all",selected:["images"],data:t,success:{image:"updateImageSrcFromLibrary"}})}),RVS.DOC.on("click",".getImageFromStream",function(){var e=this.dataset;e.targetType=this.className.indexOf("layerinput")>=0?"layer":"slide",void 0!==e.r?"layer"===e.targetType?(RVS.F.openBackupGroup({id:"UpdateLayerImage",txt:"Update Layer Image",icon:"photo"}),RVS.F.updateLayerObj({path:"media.lastLibrary",val:"stream"}),RVS.F.updateLayerObj({path:e.rid,val:"stream"}),RVS.F.updateLayerObj({path:e.r,val:RVS.ENV.img_ph_url,evt:e.evt,evtparam:e.evtparam}),RVS.F.closeBackupGroup({id:"UpdateLayerImage"})):(RVS.F.openBackupGroup({id:"UpdateSlideImage",txt:"Update Slide Image",icon:"photo"}),RVS.F.updateSliderObj({path:e.rid,val:"stream"}),RVS.F.updateSliderObj({path:e.r,val:RVS.ENV.img_ph_url,evt:e.evt,evtparam:e.evtparam}),RVS.F.closeBackupGroup({id:"UpdateSlideImage"})):(void 0!==e.target&&(e.target.val("stream"),e.target.trigger("change")),void 0!==e.evt&&RVS.DOC.trigger(e.evt,e.evtparam))}),RVS.DOC.on("updateImageSrcFromLibrary",function(e,t){void 0!==t.r?"layer"===t.targetType?(RVS.F.openBackupGroup({id:"UpdateLayerImage",txt:"Update Layer Image",icon:"photo"}),void 0!==t.rty&&RVS.F.updateLayerObj({path:t.rty,val:"objectlibrary"}),RVS.F.updateLayerObj({path:"media.lastLibrary",val:"objectlibrary"}),void 0!==t.rid&&RVS.F.updateLayerObj({path:t.rid,val:"objectlibrary"}),RVS.F.updateLayerObj({path:t.r,val:t.img,evt:t.evt,evtparam:t.evtparam}),RVS.F.closeBackupGroup({id:"UpdateLayerImage"})):(RVS.F.openBackupGroup({id:"UpdateSlideImage",txt:"Update Slide Image",icon:"photo"}),void 0!==t.rty&&RVS.F.updateSliderObj({path:t.rty,val:"objectlibrary"}),void 0!==t.rid&&RVS.F.updateSliderObj({path:t.rid,val:"objectlibrary"}),RVS.F.updateSliderObj({path:t.r,val:t.img,evt:t.evt,evtparam:t.evtparam}),RVS.F.closeBackupGroup({id:"UpdateSlideImage"})):(void 0!==t.target&&(t.target.val(t.img),t.target.trigger("change")),void 0!==t.evt&&RVS.DOC.trigger(t.evt,t.evtparam))}),RVS.DOC.on("click",".getImageFromYouTube",function(){var e=jQuery(this).data(),t=jQuery(e.target),a="https://img.youtube.com/vi/"+RVS.F.getDeepVal({path:e.f})+"/sddefault.jpg";void 0!==e.r?(RVS.F.openBackupGroup({id:"UpdateLayerImage",txt:"Update Layer Image",icon:"photo"}),RVS.F.updateSliderObj({path:e.r,val:a,evt:e.evt,evtparam:e.evtparam}),void 0!==e.rid&&RVS.F.updateSliderObj({path:e.rid,val:"objectlibrary"}),RVS.F.closeBackupGroup({id:"UpdateLayerImage"})):(void 0!==t&&(t.val(a),t.trigger("change")),void 0!==e.evt&&RVS.DOC.trigger(e.evt,e.evtparam))});var t=jQuery("body").on("click",".form_menu_level_1_li, .form_menu_level_2_li",function(){var e=jQuery(this),t=e.closest(".form_menu_inside");e.siblings("li").removeClass("selected"),e.addClass("selected"),e.hasClass("form_menu_level_1_li")||t.find(".form_level_2_inner").hide().removeClass("open");var a=jQuery(e.data("target"));a.show().addClass("open"),RVS.F.updateFormPositions({jf:e.closest(".formcontainer"),uncollapse:!0}),void 0!==a.data("evt")&&RVS.DOC.trigger(a.data("evt"),a.data("evtparam"))});t.on("click",".form_intoaccordion",function(){var e=jQuery(this),t=e.closest(".form_inner"),a=e.closest(".formcontainer");if(t.length>0&&t.hasClass("open")||0===t.length&&!a.hasClass("collapsed"))return function(e){e.closest(".form_inner").length>0?e.closest(".form_inner").removeClass("open"):e.closest(".formcontainer").addClass("collapsed"),RVS.DOC.trigger("scrollUpdates"),RVS.DOC.trigger("accordionaction")}(e),!1;!function(e){void 0!==e.data("trigger")&&jQuery(e.data("trigger")).click(),e.closest(".formcontainer").removeClass("collapsed"),RVS.DOC.trigger("scrollUpdates"),RVS.DOC.trigger("accordionaction")}(e)}),t.on("mouseenter",".form_intoaccordion",function(){this.parentNode.dataset.hovered="on"}),t.on("mouseleave",".form_intoaccordion",function(){this.parentNode.dataset.hovered="off"}),t.on("click",".triggerselect",function(){var e=jQuery(this).data(),t=jQuery(e.select);void 0!==t&&t.length>0&&t.val(e.val),t.trigger("change")}),t.on("click",".navaligntrigger",function(){var e=jQuery(this).data(),t=e.select.split(","),a=e.val.split(",");for(var i in RVS.F.openBackupGroup({id:"NavigationAlign",txt:e.type+" Align",icon:"navigation",lastkey:"navigation"}),RVS.F.ignoreEventsOpen(),t)if(t.hasOwnProperty(i)){var r=jQuery(t[i]);void 0!==r&&r.length>0&&(a.length>0?r.val(a[i]):r.val(a[0]),r.trigger("change"))}RVS.F.ignoreEventsClose(),RVS.F.closeBackupGroup({id:"NavigationAlign"}),RVS.DOC.trigger("sliderNavPositionUpdate",e.type)}),RVS.DOC.on("click",".mdl_group_wrap_menuitem",function(){jQuery(".mdl_group_wrap_menuitem.selected, .mdl_group_wrap.selected").removeClass("selected"),jQuery(this).addClass("selected"),jQuery("#"+this.dataset.show).addClass("selected"),jQuery("#meta_rbm_content").scrollTop(0).RSScroll("update")}),RVS.F.updateMetaTranslate();var a='<div id="mdl_group_images" class="mdl_group_wrap">';for(var i in a+='<div class="mdl_group">',a+='<div class="mdl_group_header"><i class="material-icons">photo</i>'+RVS_LANG.featuredimages+'<i class="material-icons accordiondrop">arrow_drop_down</i></div>',RVS.ENV.img_sizes)if(RVS.ENV.img_sizes.hasOwnProperty(i)){var r=RVS.ENV.img_sizes[i].replace(" ","_").toLowerCase();a+='<div data-val="{{featured_image_url_'+r+'}}" class="mdl_group_member"><div class="mdl_left_content"><i class="material-icons">photo</i>{{featured_image_url_'+r+'}}</div><div class="mdl_right_content">'+r+'</div><div class="mdl_placeholder_content">http://featured.img</div></div>'}a+="</div>",a+="</div>",jQuery("#meta_datas_list").append(jQuery(a)),jQuery("#mdl_group_wrap_menu").append('<div data-show="mdl_group_images" class="mdl_group_wrap_menuitem">'+RVS_LANG.images+"</div>"),RVS.DOC.trigger("extendmetas"),RVS.DOC.on("click",".ssmbtn",function(){jQuery(this.dataset.inside).find(".ssmbtn.selected, .ssm_content.selected").removeClass("selected"),this.className+=" selected",jQuery(this.dataset.showssm).addClass("selected"),void 0!==this.dataset.evt&&RVS.DOC.trigger(this.dataset.evt,this.dataset.evtparam)}),RVS.DOC.on("click",".input_presets_dropdown",function(){jQuery(".input_presets_wrap.infocus").removeClass("infocus"),this.parentElement.className+=" infocus"}),RVS.DOC.on("blur","input",function(){RVS.S.respInfoBar.toolbar&&(RVS.S.respInfoBar.visible=!1,RVS.S.respInfoBar.toolbar[0].style.display="none")})},RVS.F.updateMetaTranslate=function(e){RVS.LIB.META={},jQuery(".mdl_group_member").each(function(){var e=this.dataset.val.split(":");e=e.length>1?e[0]+".*?}}":e[0],RVS.LIB.META[e]=jQuery(this).find(".mdl_placeholder_content").text()})},RVS.F.updatePostCategories=function(e){if(jQuery.isArray(e.postTypes)||(e.postTypes=e.postTypes.split(",")),!jQuery.isArray(e.postTypes)){var t=[];t.push(e.postTypes),e.postTypes=t}e.categories.html(""),jQuery(e.postTypes).each(function(t,a){var i=RVS.LIB.POST_TYPES_CAT[a];for(var r in i)if(i.hasOwnProperty(r)){var o=i[r],s=new Option(o,r);0==r.indexOf("option_disabled")&&jQuery(s).prop("disabled","disabled"),0==e.categories.find('option[value="'+r+'"]').length&&e.categories.append(s)}}),RVS.F.setS2Option({select:e.categories,update:!0})},RVS.F.showFieldResponsiveValues=function(e){if(RVS.S.respInfoBar.field=void 0!==e?jQuery(e):RVS.S.respInfoBar.field,"slider"===RVS.eMode.top||1===RVS.selLayers.length&&void 0!==RVS.S.respInfoBar.field&&RVS.S.respInfoBar.visible){RVS.S.respInfoBar.toolbar||(RVS.S.respInfoBar.toolbar=jQuery('<div id="responsive_infos_toolbar"></div>'),jQuery("#the_right_toolbar").append(RVS.S.respInfoBar.toolbar));var t=0,a="";for(var i in a+='<span class="int_inher_title">'+RVS_LANG.intinheriting+"</span>",RVS.V.sizes)RVS.V.sizes.hasOwnProperty(i)&&RVS.V.sizes[i]!==RVS.screen&&RVS.SLIDER.settings.size.custom[RVS.V.sizes[i]]&&(a+='<div style="white-space:nowrap">',a+='<i class="material-icons">',a+="d"==RVS.V.sizes[i]?"desktop_mac":"n"==RVS.V.sizes[i]?"laptop":"t"==RVS.V.sizes[i]?"tablet_android":"phone_iphone",a+="</i>",a+='<span class="responsive_info_value">'+RVS.F.getDeepVal({path:"slider"===RVS.eMode.top?"settings."+RVS.S.respInfoBar.field[0].dataset.r:RVS.S.slideId+".layers."+RVS.selLayers[0]+"."+RVS.S.respInfoBar.field[0].dataset.r,screen:RVS.V.sizes[i]})+"</span>",a+="</div>",t++);if(t>0){RVS.S.respInfoBar.toolbar[0].style.display="block",RVS.S.respInfoBar.toolbar[0].innerHTML=a;var r=RVS.S.respInfoBar.field.offset();RVS.S.respInfoBar.toolbar.width();punchgs.TweenLite.set(RVS.S.respInfoBar.toolbar,{top:r.top,left:-85})}else RVS.S.respInfoBar.visible=!1,RVS.S.respInfoBar.toolbar[0].style.display="none"}},RVS.F.initCopyClipboard=function(e){if(jQuery(e).length>0&&-1==jQuery.inArray(e,d)){(d=void 0===d?[]:d).push(e);var t=new RSClipboard(e);t.on("success",function(e){jQuery(":focus").blur(),RVS.F.showInfo({content:"Copied To Clipboard",type:"success",showdelay:0,hidedelay:1,hideon:"",event:""}),punchgs.TweenLite.fromTo(jQuery(e.trigger),.4,{autoAlpha:0},{autoAlpha:1,ease:punchgs.Power3.easeInOut})}),t.on("error",function(e){(e=jQuery(e.trigger)).addClass("errorcopy"),setTimeout(function(){e.removeClass("errorcopy")},400)})}},RVS.F.triggerShowHideDep=function(e,t){void 0===e.dataset.show||void 0===e.dataset.hide||"radio"===e.type&&!e.checked?function(e){var t=jQuery(e.target),a=jQuery(e.nortarget),i="true"===e.depend||"false"!==e.depend&&e.depend;"string"==typeof i&&i.indexOf("!!")>=0?(i=i.replace("!!",""),e.value!==i?(t.show().removeClass("showhide_hidden"),a.hide().addClass("showhide_hidden")):(t.hide().addClass("showhide_hidden"),a.show().removeClass("showhide_hidden"))):e.value===i?(t.show().removeClass("showhide_hidden"),a.hide().addClass("showhide_hidden")):(t.hide().addClass("showhide_hidden"),a.show().removeClass("showhide_hidden"))}({target:e.dataset.showhide,nortarget:e.dataset.hideshow,value:void 0===t?e.value:t,depend:e.dataset.showhidedep}):w({hide:e.dataset.hide,show:e.dataset.show,val:t,showprio:e.dataset.showprio})},RVS.F.triggerInput=function(e){if(void 0!==e.inp){var t=e.inp.split(",");for(var a in e.when="true"===e.when||"false"!==e.when&&e.when,e.whennot="true"===e.whennot||"false"!==e.whennot&&e.whennot,t)t.hasOwnProperty(a)&&(void 0!==e.val?(e.val=e.val.replace("*val*",e.dep),void 0!==e.when&&e.dep==e.when?jQuery(t[a].replace("*val*",e.dep)).val(e.val).trigger("change"):void 0!==e.whennot&&e.dep!=e.whennot?jQuery(t[a].replace("*val*",e.dep)).val(e.val).trigger("change"):void 0===e.when&&void 0===e.whennot&&jQuery(t[a].replace("*val*",e.dep)).val(e.val).trigger("change")):jQuery(t[a].replace("*val*",e.dep)).trigger("change"))}},RVS.F.switchButtonInit=function(e){(e=void 0===e?{}:e).container=void 0===e.container?"#builderView":e.container,e.init=void 0===e.init||e.init,e.init&&jQuery(e.container).find(".switch_button").each(function(){var e=jQuery(this),t=this.dataset;e.hasClass("activeswitch")||(e.addClass("activeswitch"),RVS.F.changeSwitchState({el:this,state:t.start_state})),e.on("click",function(){RVS.F.changeSwitchState({el:this,callEvent:!0})})})},RVS.F.changeSwitchState=function(e){if(null!==e.el){var t=e.el.dataset,a=jQuery(e.el),i=t.states.split(",");t.state=void 0!==e.state?e.state:t.state===i[0]?i[1]:i[0],a.find(".switch_button_state").html(t[t.state+"_state"]),a.find(".switch_button_icon").html(t[t.state+"_icon"]),void 0!==e.callEvent&&RVS.DOC.trigger(t[t.state])}},RVS.F.createPresets=function(e){e.groupid=void 0===e.groupid?"preset_list_"+Math.round(1e5*Math.random()):e.groupid;var t='<div id="'+e.groupid+'" class="presets_liste">',a=void 0===e.prefix?"":e.prefix+"_";for(var i in t+='\t<div class="presets_liste_head"><span class="presets_liste_title">'+e.title+'</span><i class="right-divided-icon material-icons">arrow_drop_down</i></div>',t+='\t<div class="presets_liste_inner">',e.groups)if(e.groups.hasOwnProperty(i)){for(var r in t+='<div class="presetssgroup">',t+='\t<div class="presetssgroup_head"><span class="presetssgroup_name">'+e.groups[i].title+'</span><div class="animation_drop_arrow"><i class="material-icons">arrow_drop_down</i></div></div>',t+='\t<div class="presets_listelements">',"custom"===i&&(t+='<div data-evt="'+e.customevt+'" data-key="custom" class="'+a+'presetelement presets_listelement dark_btn"><span class="cla_custom_name">Save Current Template</span><input type="text" value="custom" class="cla_entername"><div class="custom_layer_animation_toolbar"><i data-evt="'+e.customevt+'" class="cla_answer_yes material-icons">done</i><i data-evt="'+e.customevt+'" class="cla_answer_no material-icons">close</i><i class="add_custom_layeranimation material-icons">add</i></div></div>'),e.groups[i].elements)e.groups[i].elements.hasOwnProperty(r)&&(t+="custom"===i?'<div data-key="'+a+r+'" data-custom="true" data-evt="'+e.customevt+'" class="presets_listelement dark_btn"><span class="cla_custom_name">'+e.groups[i].elements[r].title+'</span><div class="cla_message">'+RVS_LANG.overwritetemplate+'</div><input data-evt="'+e.customevt+'" type="text" value="'+e.groups[i].elements[r].title+'" class="cla_entername"><div class="custom_layer_animation_toolbar"><i data-evt="'+e.customevt+'" class="cla_answer_yes material-icons">done</i><i data-evt="'+e.customevt+'" class="cla_answer_no material-icons">close</i><i data-evt="'+e.customevt+'" class="edit_custom_layeranimation material-icons">edit</i><i data-evt="'+e.customevt+'" class="save_custom_layeranimation material-icons">save</i><i data-evt="'+e.customevt+'" class="delete_custom_layeranimation material-icons">delete</i></div></div>':'<div data-key="'+a+r+'" class="'+a+'presetelement presets_listelement dark_btn">'+e.groups[i].elements[r].title+"</div>");t+="\t</div>",t+="</div>"}return t+="\t</div>",t+="</div>",RVS.DOC.on("click","#"+e.groupid+" .presets_listelement",function(){if("custom"===this.dataset.key){var t=jQuery(this);return this.dataset.mode="create",t.addClass("cla_showentername"),t.find("input").focus().select(),RVS.S.waitOnFeedback={allowed:["cla_entername","cla_answer_yes","cla_answer_no"],closeEvent:"hideCustomLayerNameEntering"},RVS.F.addBodyClickListener(),!1}this.className.indexOf("cla_showentername")>=0||e.onclick(this.dataset.key,this.dataset.custom)}),c||(RVS.DOC.on("click",".presets_liste_head",function(){jQuery(this.parentElement).toggleClass("open")}),RVS.DOC.on("click",".presetssgroup_head",function(){var e=this.parentElement.className.indexOf("open")>=0;jQuery(this).closest(".presets_liste").find(".presetssgroup.open").removeClass("open"),e||(this.parentElement.className+=" open")}),c=!0),t},RVS.F.createMetaGroups=function(e){var t=0!==jQuery("#"+e.id).length,a=t?jQuery("#"+e.id):jQuery('<div id="'+e.id+'" class="mdl_group"></div>');for(var i in e.title=void 0===RVS_LANG[e.id]?e.id:RVS_LANG[e.id],t||a.append('<div class="mdl_group_header"><i class="material-icons">'+e.icon+"</i>"+e.title+'<i class="material-icons accordiondrop">arrow_drop_down</i></div>'),e.actions)if(e.actions.hasOwnProperty(i)){var r=e.actions[i],o=void 0!==r.title?r.title:void 0===RVS_LANG["metadata_"+r.val]?r.val:RVS_LANG["metadata_"+r.val];r.inputs=void 0===r.inputs?"":r.inputs,r.inputs=!0===r.layerTarget?"#la_settings_layertarget"+(r.inputs.length>0?", "+r.inputs:""):r.inputs,a.append('<div data-val="'+r.val+'" id="metadata_picker_'+r.val+'" data-inputs="'+r.inputs+'" class="mdl_group_member" data-val="'+r.val+'"><i class="material-icons">'+e.icon+"</i>"+o+"</div>"),r.layerTarget&&RVS.LIB.ACTION_WITH_TRGT.push(r.val),RVS.LIB.ACTIONTYPES[r.val]={inputs:r.inputs,name:o,icon:e.icon,layerTarget:r.layerTarget,media:r.media}}t||jQuery("#layeraction_list").append(a)},RVS.F.setUnsetSelected=function(e){if(void 0!==e.unselect&&jQuery(e.unselect).removeClass("selected"),void 0!==e.select){e.val=void 0!==e.val?e.val.replace(/\s/g,"-"):e.val,null!=e.prval&&RVS.selLayers.length>0&&void 0!==RVS.L[RVS.selLayers[0]]&&(void 0===e.prvalif||RVS.L[RVS.selLayers[0]].type===e.prvalif)&&(e.val=RVS.F.getDeepVal({path:e.prval.replace("#parentlayer#",RVS.L[RVS.selLayers[0]].group.puid)})||"");var t=e.select.replace("*val*",e.val),a=void 0!==e.rval?RVS.F.getDeepVal({path:e.rval}):"";t=t.replace("*RVAL*",a),jQuery(t).addClass("selected")}},RVS.F.setUnsetClass=function(e){void 0!==e.class&&void 0!==e.container&&(void 0!==e.rval&&e.rval===e.val||e.val?(jQuery(e.container).addClass(e.class),e.inversclass&&jQuery(e.container).removeClass(e.inversclass)):(jQuery(e.container).removeClass(e.class),e.inversclass&&jQuery(e.container).addClass(e.inversclass)))},RVS.F.setEnableDisable=function(e){void 0!==e.enable&&jQuery(e.enable.replace("*val*",e.val)).removeClass("disablecontainer"),void 0!==e.disable&&jQuery(e.disable.replace("*val*",e.val)).addClass("disablecontainer")},RVS.F.setUnAvailable=function(e){void 0!==e.available&&jQuery(e.available.replace("*val*",e.val)).removeClass("unavailablecontainer"),void 0!==e.unavailable&&jQuery(e.unavailable.replace("*val*",e.val)).addClass("unavailablecontainer")},RVS.F.initPreDrops=function(e){void 0===e&&jQuery(".predrop_wrap").each(function(){var e=jQuery(this);if(!e.hasClass("inited")){e.append('<div class="predrop"><ul class="predrop_ul"></ul></div>');e.data(),e.find(".predrop_ul")}})},RVS.F.fullPageInfo={init:function(e){var t=jQuery('<div id="fullpageinfo"><div id="fullpageinfo_zone">'+e.content+'<div id="fullpage_close"><i class="material-icons">close</i></div></div></div>');jQuery("#wpwrap").addClass("blurred"),jQuery("body").append(t),punchgs.TweenLite.fromTo(t,.4,{autoAlpha:0,scale:.9},{autoAlpha:1,scale:1,ease:punchgs.Power3.EaseInOut})},close:function(){jQuery("#fullpageinfo").remove(),jQuery("#wpwrap").removeClass("blurred")}},RVS.F.browserDroppable={init:function(e){e.textblock='<div id="filedrop">',e.textblock+='\t<form id="filedrop_zone">',e.textblock+='\t\t<div class="filedrop_state_idle">',e.textblock+='\t\t\t<input class="uploadfileinput" type="file" name="files[]" id="file" data-multiple-caption="{count} files selected" multiple />',e.textblock+='\t\t\t<i class="big_filedrop_icon material-icons">file_download</i>',e.textblock+='\t\t\t<div class="filedrop_line_1">'+RVS_LANG.dragAndDropFile+"</div>",e.textblock+='\t\t\t<div class="filedrop_line_2">'+RVS_LANG.or+"</div>",e.textblock+='\t\t\t<label for="file"  class="filedrop_clickbtn">'+RVS_LANG.clickToChoose+"</label>",e.textblock+="\t\t</div>",e.textblock+='\t\t<div class="filedrop_state_drop">',e.textblock+='\t\t\t<i class="big_filedrop_icon material-icons">file_download</i>',e.textblock+='\t\t\t<div class="filedrop_line_1">'+RVS_LANG.releaseToUpload+"</div>",e.textblock+='\t\t\t<div class="filedrop_line_2">'+RVS_LANG.moduleZipFile+"</div>",e.textblock+="\t\t</div>",e.textblock+='\t\t<div class="filedrop_state_process">',e.textblock+='\t\t\t<i id="file_upload_processicon" class="rotating big_filedrop_icon material-icons">autorenew</i>',e.textblock+='\t\t\t<div id="file_upload_mininfo" class="filedrop_line_1">'+RVS_LANG.importing+"</div>",e.textblock+=' \t\t\t<div id="importing_processing_files">',e.textblock+="\t\t\t</div>",e.textblock+="\t\t</div>",e.textblock+='\t\t<div id="filedrop_close"><i class="material-icons">close</i></div>',e.textblock+="\t</form>",e.textblock+="</div>";var t=jQuery(e.textblock),a=t.find("#filedrop_zone");punchgs.TweenLite.fromTo(t,.3,{autoAlpha:0,scale:.9},{autoAlpha:1,scale:1,ease:punchgs.Power3.EaseInOut}),jQuery("#wpwrap").addClass("blurred"),jQuery("body").append(t),a.on("drag dragstart dragend dragover dragenter dragleave drop",function(e){e.preventDefault(),e.stopPropagation()}).on("dragover dragenter",function(e){a[0].className="is-dragover"}).on("dragleave dragend drop",function(){a[0].className=""}).on("drop",function(t){for(var i in a[0].className="is-processing",jQuery("#importing_processing_files").html(""),t.originalEvent.dataTransfer.files)if(t.originalEvent.dataTransfer.files.hasOwnProperty(i)&&"object"==jQuery.type(t.originalEvent.dataTransfer.files[i])){var r=t.originalEvent.dataTransfer.files[i].name+" ("+Math.round(t.originalEvent.dataTransfer.files[i].size/1024)+"kb)";jQuery("#importing_processing_files").append('<div id="fileprocessing_'+i+'" class="filedrop_line_2">'+r+'<i class="material-icons fileupload_status"></i><span class="fileupload_message"></span></div>')}RVS.F.uploadFiles({form:a,files:t.originalEvent.dataTransfer.files,fileindex:0,report:"#fileprocessing_",success:e.success})}),jQuery("#file").on("change",function(t){for(var i in a[0].className="is-processing",t.target.files)if(t.target.files.hasOwnProperty(i)&&"object"==jQuery.type(t.target.files[i])){var r=t.target.files[i].name+" ("+Math.round(t.target.files[i].size/1024)+"kb)";jQuery("#importing_processing_files").append('<div id="fileprocessing_'+i+'" class="filedrop_line_2">'+r+'<i class="material-icons fileupload_status"></i><span class="fileupload_message"></span></div>')}RVS.F.uploadFiles({form:a,files:t.target.files,fileindex:0,report:"#fileprocessing_",success:e.success})})},close:function(){jQuery("#filedrop").remove(),jQuery("#wpwrap").removeClass("blurred")}},RVS.F.uploadFiles=function(e){e.fileindex=void 0===e.fileindex?0:e.fileindex,jQuery(e.report+e.fileindex).find(".fileupload_status").html("autorenew").addClass("rotating");var t=new FormData;t.append("import_file",e.files[e.fileindex]),t.append("action",RVS.ENV.plugin_dir+"_ajax_action"),t.append("client_action","import_slider"),t.append("nonce",RVS.ENV.nonce),jQuery.ajax({url:ajaxurl,type:"post",contentType:!1,processData:!1,data:t,success:function(t){(t=JSON.parse(t)).success?(jQuery(e.report+e.fileindex).find(".fileupload_status").html("done").removeClass("rotating").addClass("doneupload"),void 0!==e.success&&RVS.DOC.trigger(e.success,t)):(e.anyError=!0,jQuery(e.report+e.fileindex).find(".fileupload_status").html("priority_high").removeClass("rotating").addClass("errorupload"),jQuery(e.report+e.fileindex).find(".fileupload_message").html(t.message)),e.fileindex++,e.files.length>e.fileindex?RVS.F.uploadFiles(e):!0!==e.anyError?(jQuery("#file_upload_mininfo").html(RVS_LANG.successImportFile),jQuery("#file_upload_processicon").removeClass("rotating").addClass("done").html("done"),setTimeout(function(){RVS.F.browserDroppable.close()},500)):(jQuery("#file_upload_mininfo").html(RVS_LANG.importReport),jQuery("#file_upload_processicon").removeClass("rotating").addClass("error").html("error"))},error:function(t){e.anyError=!0,jQuery(e.report+e.fileindex).find(".fileupload_status").html("priority_high").removeClass("rotating").addClass("errorupload"),jQuery(e.report+e.fileindex).find(".fileupload_message").html(t.message),e.fileindex++,e.files.length>e.fileindex?RVS.F.uploadFiles(e):!0!==e.anyError?(jQuery("#file_upload_mininfo").html(RVS_LANG.successImportFile),jQuery("#file_upload_processicon").removeClass("rotating").addClass("done").html("done"),setTimeout(function(){RVS.F.browserDroppable.close()},500)):(jQuery("#file_upload_mininfo").html(RVS_LANG.importReport),jQuery("#file_upload_processicon").removeClass("rotating").addClass("error").html("error"))}})},RVS.F.convertIDStoTxt=function(){for(var e in RVS.SLIDER.slideIDs)RVS.SLIDER.slideIDs.hasOwnProperty(e)&&(RVS.SLIDER.slideIDs[e]=""+RVS.SLIDER.slideIDs[e]);for(var e in RVS.SLIDER.inWork)RVS.SLIDER.inWork.hasOwnProperty(e)&&(RVS.SLIDER.inWork[e]=""+RVS.SLIDER.inWork[e])},RVS.F.saveSlides=function(e){if(e.index<e.slides.length)if(e.order=void 0===e.order?0:e.order,e.order++,jQuery.inArray(e.slides[e.index]+"",RVS.SLIDER.inWork)>=0){var t=JSON.stringify(RVS.F.simplifySlide(RVS.SLIDER[e.slides[e.index]].slide)),a=JSON.stringify(RVS.F.simplifyAllLayer(RVS.SLIDER[e.slides[e.index]].layers));if(void 0===RVS.S.lastSaved||void 0===RVS.S.lastSaved[e.index]||t!==RVS.S.lastSaved[e.index].params||a!==RVS.S.lastSaved[e.index].layers){var i={slider_id:RVS.ENV.sliderID,slide_id:e.slides[e.index],params:t,layers:a,slide_order:e.order};RVS.DOC.trigger("rs_save_slide_params",[i]),RVS.F.ajaxRequest("save_slide",i,function(i){i.success&&(RVS.S.lastSaved=void 0===RVS.S.lastSaved?{}:RVS.S.lastSaved,RVS.S.lastSaved[e.index]={params:t,layers:a},e.index++,RVS.F.saveSlides(e))},void 0,void 0,RVS_LANG.saveslide+'<br><span style="font-size:17px; line-height:25px;">"'+RVS.SLIDER[e.slides[e.index]].slide.title+'"</span>')}else e.index++,RVS.F.saveSlides(e)}else e.index++,RVS.F.saveSlides(e);else RVS.SLIDER.inWork=void 0===RVS.SLIDER.inWork?[]:RVS.SLIDER.inWork,RVS.SLIDER.inWork.push(RVS.S.slideId),RVS.S.need_to_save=!1,void 0!==e.trigger&&e.trigger()},RVS.F.convertArrayToObjects=function(){RVS.SLIDER.settings.nav.arrows.presets=Object.assign({},RVS.SLIDER.settings.nav.arrows.presets),RVS.SLIDER.settings.nav.bullets.presets=Object.assign({},RVS.SLIDER.settings.nav.bullets.presets),RVS.SLIDER.settings.nav.thumbs.presets=Object.assign({},RVS.SLIDER.settings.nav.thumbs.presets),RVS.SLIDER.settings.nav.tabs.presets=Object.assign({},RVS.SLIDER.settings.nav.tabs.presets)},RVS.F.saveSliderSettings=function(){var e=JSON.stringify(RVS.SLIDER.settings),t=RVS.SLIDER.slideIDs.slice(),a=-1;for(var i in t)t.hasOwnProperty(i)&&(""+t[i]).indexOf("static")>=0&&(a=i);t.splice(a,1),RVS.F.ajaxRequest("save_slider",{slider_id:RVS.ENV.sliderID,params:e,slide_ids:t},function(e){e.success&&void 0!==e.missing&&e.missing.length>0&&RVS.F.saveSlides({index:0,slides:RVS.SLIDER.slideIDs,works:e.missing})},void 0,void 0,RVS_LANG.saveslide+'<br><span style="font-size:17px; line-height:25px;">'+RVS_LANG.slidersettings+"</span>")},RVS.F.getAllSliderDatas=function(){RVS.F.convertIDStoTxt();var e={slider:JSON.stringify(RVS.SLIDER.settings)},t=RVS.SLIDER.slideIDs.slice();for(var a in t)t.hasOwnProperty(a)&&(e[t[a]]={params:JSON.stringify(RVS.F.simplifySlide(RVS.SLIDER[t[a]].slide)),layers:JSON.stringify(RVS.F.simplifyAllLayer(RVS.SLIDER[t[a]].layers))});return e},RVS.F.addOnContainer={create:function(e){if(e.slug&&e.icon&&e.alias){var t="";!0===e.slider&&(jQuery("#gst_sl_collector").append('<div id="gst_sl_'+e.slug+'" data-select="#gst_sl_'+e.slug+'" data-unselect=".general_submodule_trigger" class="general_submodule_trigger opensettingstrigger" style="display:none" data-collapse="true" data-forms=\'["#form_module_'+e.slug+'"]\'><i class="material-icons">'+e.icon+'</i><span class="gso_title">'+e.alias+"</span></div>"),t+=F({a:"slider_general_collector",f:"#gst_sl_",b:"sliderconfig",c:"slider_settings",d:"form_module_"+e.slug,title:e.title,e:"form_slidergeneral_"+e.slug,slug:e.slug})),!0===e.layer&&(jQuery("#gst_layer_collector").append('<div id="gst_layer_'+e.slug+'" data-select="#gst_layer_'+e.slug+'" data-unselect=".layer_submodule_trigger" class="layer_submodule_trigger opensettingstrigger" style="display:none" data-collapse="true" data-forms=\'["#form_layer_'+e.slug+'"]\'><i class="material-icons">'+e.icon+'</i><span class="gso_title">'+e.alias+"</span></div>"),t+=F({a:"layer_settings_collector",f:"#gst_layer_",b:"layersconfig",c:"layer_settings",d:"form_layer_"+e.slug,title:e.title,e:"form_layerinner_"+e.slug,slug:e.slug})),!0===e.slide&&(jQuery("#slide_menu_gso_wrap").append('<div id="gst_slide_'+e.slug+'" data-select="#gst_slide_'+e.slug+'" data-unselect=".slide_submodule_trigger" class="slide_submodule_trigger opensettingstrigger" style="display:none" data-collapse="true" data-forms=\'["#form_slide_'+e.slug+'"]\'><i class="material-icons">'+e.icon+'</i><span class="gso_title">'+e.alias+"</span></div>"),t+=F({a:"slide_settings_collector",f:"#gst_slide_",b:"slideconfig",c:"slide_settings",d:"form_slide_"+e.slug,title:e.title,e:"form_slidegeneral_"+e.slug,slug:e.slug})),jQuery("#the_right_toolbar_inner").append(t)}}},RVS.F.buildSingleAddonElement=function(e,t){if(void 0===e||""===e||0===e)return"";var a='<div id="ale_'+t+'" data-ref="'+t+'" class="rs_ale">';a+='<div class="rs_alethumb"><div class="rs_alecbg" style="'+(void 0!==e.logo.color&&""!==e.logo.color&&!1!==e.installed?"background-color:"+e.logo.color:"")+'">',""===e.logo.img&&(a+='<div class="rs_alethumb_title">'+e.logo.text+"</div>"),a+="</div>",""!==e.logo.img&&(a+='<div class="rs_alethumb_img" style="background-image:url('+e.logo.img+')"></div>'),e.installed&&e.active||(e.installed?a+="":a+='<div class="rs_ale_notinstalled">'+RVS_LANG.notinstalled+"</div>",a+='<div class="rs_alethumb_notinstalledimg" style="background-image:url('+e.logo.img+')"></div>');var i=e.active&&RVS.LIB.ADDONS[t].enable?"block":"none",r=RVS_LANG.enabled;return a+=void 0!==RVS.ENV.addOns_to_update[t]&&!0!==RVS.ENV.addOns_to_update[t].updated||e.installed<e.available?'<div class="rs_ale_actionneeded" style="display:block">'+RVS_LANG.actionneeded+"</div>":'<div class="rs_ale_enabled" style="display:'+i+'">'+r+"</div>",a+="</div>",a+='<div class="rs_ale_title">'+e.title+"</div>",a+="</div>"},RVS.F.buildAddonList=function(e,t){var a="";for(var i in RVS.LIB.ADDONS=void 0===RVS.LIB.ADDONS?{}:RVS.LIB.ADDONS,e)e.hasOwnProperty(i)&&(RVS.LIB.ADDONS[i]=void 0===RVS.LIB.ADDONS[i]?{}:RVS.LIB.ADDONS[i],RVS.LIB.ADDONS[i].enable=RVS.S.ovMode?e[i].global?RVS.LIB.ADDONS[i].enable:void 0:e[i].global?RVS.LIB.ADDONS[i].enable:void 0!==RVS.SLIDER.settings.addOns[i]&&RVS.SLIDER.settings.addOns[i].enable,RVS.LIB.ADDONS[i].enable=0!==RVS.LIB.ADDONS[i].enable&&"0"!==RVS.LIB.ADDONS[i].enable&&(1===RVS.LIB.ADDONS[i].enable||"1"===RVS.LIB.ADDONS[i].enable||(0===RVS.LIB.ADDONS[i].enable||RVS.LIB.ADDONS[i].enable)),"update"!==t&&(a+=RVS.F.buildSingleAddonElement(e[i],i)),RVS.LIB.ADDONS_LIST[i]=jQuery.extend(!0,{},e[i]));"update"!==t&&(jQuery("#rbm_addonlist").append(a),RVS.F.RSDialog.center())},RVS.F.loadAddonList=function(e,t,a){RVS.LIB.ADDONS_LIST={},RVS.F.ajaxRequest("get_addon_list",{},function(i){if(i.success){if(i.addons&&Array.isArray(i.addons)&&1===i.addons.length&&!1===i.addons[0])return;RVS.F.buildAddonList(i.addons,t),e&&"update"!==t&&RVS.F.showAddonInfos(e),"update"===t&&a()}})},RVS.F.loadCSS=function(e){var t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("href",e),document.getElementsByTagName("head")[0].appendChild(t)},RVS.F.openAddonModal=function(){RVS.LIB.ADDONS_LIST||(RVS.F.loadAddonList(),RVS.DOC.on("click","#rbm_addons .rbm_close",function(){RVS.F.RSDialog.close()}),RVS.DOC.on("click",".rs_ale",function(){"false"!=RVS.ENV.activated&&0!=RVS.ENV.activated?(jQuery(".rs_ale.selected").removeClass("selected"),this.className+=" selected",RVS.F.showAddonInfos(this.dataset.ref)):RVS.F.showRegisterSliderInfo()}),RVS.DOC.on("click",".ale_i_installaddon",function(){var e=this.dataset.slug;RVS.F.ajaxRequest("activate_addon",{addon:e},function(t){t.success&&(RVS.LIB.ADDONS_LIST[e].installed=!0,jQuery("#ale_"+e+" .rs_ale_notinstalled").remove(),RVS.F.showAddonInfos(e))},void 0,void 0,RVS_LANG.addon+'<br><span style="font-size:17px; line-height:25px;">"'+RVS_LANG.installingaddon+'"</span>')}),RVS.DOC.on("click",".ale_i_activateaddon",function(){if("true"===RVS.ENV.activated||!0===RVS.ENV.activated){var e=this.dataset.slug,t=e.replace(/-/g,"_"),a=jQuery("#ale_"+e+" .rs_alethumb_img");RVS.LIB.ADDONS_LIST[e].global||RVS.S.ovMode||(RVS.SLIDER.settings.addOns[e]=void 0===RVS.SLIDER.settings.addOns[e]?{}:RVS.SLIDER.settings.addOns[e],RVS.SLIDER.settings.addOns[e].enable=!0,RVS.LIB.ADDONS[e].enable=!0),RVS.F.ajaxRequest("activate_addon",{addon:e},function(i){i.success&&(RVS.LIB.ADDONS_LIST[e].active=!0,window[t]=i[e],"undefined"==typeof revbuilder||RVS.SLIDER.settings.addOns.hasOwnProperty(e)?window[t].enabled=RVS.F._d(RVS.F._truefalse(window[t].enabled),!RVS.S.ovMode&&RVS.SLIDER.settings.addOns[e].enable):window[t].enabled=!0,punchgs.TweenLite.fromTo(a,2,{zIndex:"13",clip:"rect(95px 95px 95px 95px)"},{clip:"rect(0px 190px 190px 0px)"}),jQuery("#ale_"+e+" .rs_ale_enabled").show(),RVS.F.showAddonInfos(e),RVS.F.addonInstalledOnDemand(e),RVS.F.loadCSS(RVS.ENV.wp_plugin_url+e+"/admin/assets/css/"+e+"-admin.css"),jQuery.getScript(RVS.ENV.wp_plugin_url+e+"/admin/assets/js/"+e+"-admin.js",function(){RVS.F.showAddonInfos(e),!RVS.S.ovMode&&RVS.LIB.ADDONS[e].enable&&RVS.DOC.trigger(e+"_init")}).fail(function(e,t,a){console.log(a)}))},void 0,void 0,RVS_LANG.addon+'<br><span style="font-size:17px; line-height:25px;">"'+RVS_LANG.activatingaddon+'"</span>')}}),RVS.DOC.on("click","#check_addon_updates",function(){RVS.F.ajaxRequest("check_for_updates",{},function(e){e.success&&(RVS.ENV.latest_version=e.version,delete RVS.LIB.ADDONS_LIST,document.getElementById("rbm_addonlist").innerHTML="",RVS.F.loadAddonList())})}),RVS.DOC.on("click",".ale_i_enableaddon",function(){var e=this.dataset.slug;!0!==RVS.LIB.ADDONS_LIST[e].global?(RVS.SLIDER.settings.addOns[e]=void 0===RVS.SLIDER.settings.addOns[e]?{}:RVS.SLIDER.settings.addOns[e],RVS.SLIDER.settings.addOns[e].enable=!0,RVS.LIB.ADDONS[e].enable=!0,RVS.DOC.trigger(e+"_init"),RVS.F.showAddonInfos(e),jQuery("#ale_"+this.dataset.slug+" .rs_ale_enabled").show()):RVS.F.ajaxRequest("wp_ajax_enable_"+e,{},function(t){RVS.LIB.ADDONS[e].enable=!0,RVS.DOC.trigger(e+"_init"),RVS.F.showAddonInfos(e),jQuery("#ale_"+e+" .rs_ale_enabled").show()},void 0,void 0,RVS_LANG.addon+'<br><span style="font-size:17px; line-height:25px;">"'+RVS_LANG.enablingaddon+'"</span>')}),RVS.DOC.on("click",".ale_i_disableaddon",function(){var e=this.dataset.slug;RVS.LIB.ADDONS_LIST[e].global?RVS.F.ajaxRequest("wp_ajax_disable_"+e,{},function(t){RVS.LIB.ADDONS[e].active=!1,RVS.LIB.ADDONS[e].enable=!1,RVS.DOC.trigger(e+"_init"),RVS.F.showAddonInfos(e),jQuery("#ale_"+e+" .rs_ale_enabled").hide()},void 0,void 0,RVS_LANG.addon+'<br><span style="font-size:17px; line-height:25px;">"'+RVS_LANG.disablingaddon+'"</span>'):(RVS.SLIDER.settings.addOns[e].enable=!1,RVS.DOC.trigger(e+"_init"),RVS.LIB.ADDONS[e].enable=!1,RVS.F.showAddonInfos(e),jQuery("#ale_"+this.dataset.slug+" .rs_ale_enabled").hide())}),RVS.DOC.on("click",".ale_i_updateaddon",function(){var e=this.dataset.slug;RVS.F.ajaxRequest("activate_addon",{addon:e,update:!0},function(t){t.success&&(void 0!==RVS.ENV.addOns_to_update[e]&&!0!==RVS.ENV.addOns_to_update[e].updated&&(RVS.ENV.addOns_to_update[e].updated=!0),delete RVS.LIB.ADDONS_LIST,document.getElementById("rbm_addonlist").innerHTML="",RVS.F.loadAddonList(e))},void 0,void 0,RVS_LANG.addon+'<br><span style="font-size:17px; line-height:25px;">"'+RVS_LANG.updatingaddon+" "+e+'"</span>')}),RVS.DOC.on("click","#rbm_configpanel_savebtn",function(){RVS.DOC.trigger("save_"+this.dataset.slug)})),RVS.F.RSDialog.create({modalid:"rbm_addons",bgopacity:.85}),jQuery("#rbm_addonlist, #rbm_addon_details").RSScroll({suppressScrollX:!0})},RVS.F.showAddonInfos=function(e){var t='<div class="rbm_addon_details_inner">',a=RVS.LIB.ADDONS_LIST[e],i=a.active?a.global?RVS_LANG.enableglobaladdon:RVS_LANG.enableaddon:a.global?RVS_LANG.activateglobaladdon:RVS_LANG.activateaddon,r=a.global?RVS_LANG.disableglobaladdon:RVS_LANG.disableaddon;t+='<div class="div20"></div>',t+='<div class="ale_i_title">'+a.title+"</div>",t+='<div class="ale_i_content">'+a.line_1+" "+a.line_2+"</div>",t+='<div class="div20"></div>',RVS.S.ovMode&&!a.global&&a.active&&a.installed?t+='<div class="basic_action_button_inactive autosize basic_action_button" data-slug="'+a.slug+'" data-global="'+a.global+'"><i class="material-icons">error_outline</i>'+RVS_LANG.addonOnlyInSlider+"</div>":RVS.ENV.revision<a.version_from?t+='<div class="ale_i_errorbutton basic_action_button autosize"><i class="material-icons">error_outline</i>'+RVS_LANG.checkforrequirements+"</div>":a.installed?a.active?RVS.LIB.ADDONS[e].enable?t+='<div class="ale_i_disableaddon basic_action_coloredbutton autosize basic_action_button" data-global="'+a.global+'" data-slug="'+a.slug+'"><i class="material-icons">remove_circle_outline</i>'+r+"</div>":RVS.S.ovMode&&!a.global?t+="":t+='<div class="ale_i_enableaddon basic_action_coloredbutton autosize basic_action_button" data-global="'+a.global+'" data-slug="'+a.slug+'"><i class="material-icons">power_settings_new</i>'+i+"</div>":t+='<div class="ale_i_activateaddon basic_action_coloredbutton autosize basic_action_button" data-slug="'+a.slug+'" data-global="'+a.global+'"><i class="material-icons">power_settings_new</i>'+i+"</div>":t+='<div class="ale_i_installaddon basic_action_coloredbutton autosize basic_action_button" data-slug="'+a.slug+'" data-global="'+a.global+'"><i class="material-icons">get_app</i>'+RVS_LANG.install_and_activate+"</div>",t+="</div>",t+='<div class="ale_i_line"></div>',t+='<div class="rbm_addon_details_inner">',t+="<row>",t+="<onehalf>",t+='<div class="ale_i_title">'+RVS_LANG.installedversion+"</div>",!1===a.installed?t+='<div class="ale_i_content">'+RVS_LANG.notinstalled+"</div>":t+='<div class="ale_i_content">'+a.installed+"</div>",t+="</onehalf>",t+="<onehalf>",t+='<div class="ale_i_title">'+RVS_LANG.availableversion+"</div>",t+='<div class="ale_i_content">'+a.available+"</div>",t+="</onehalf>",t+="</row>",t+='<div class="div20"></div>',t+='<div class="ale_i_title">'+RVS_LANG.requirements+"</div>",RVS.ENV.revision>=a.version_from?t+='<div class="ale_i_content"><i class="material-icons">check</i>'+RVS_LANG.sliderrevversion+" "+a.version_from+"</div>":t+='<div class="ale_i_content ale_yellow"><i class="material-icons">error_outline</i>'+RVS_LANG.sliderrevversion+" "+a.version_from+"</div>",!1!==a.installed&&a.installed<a.available&&(t+='<div class="div20"></div>',t+='<div class="ale_i_updateaddon  basic_action_coloredbutton autosize basic_action_button" data-global="'+a.global+'" data-slug="'+a.slug+'"><i class="material-icons">get_app</i>'+RVS_LANG.updateNow+"</div>"),t+="</div>",t+='<div class="ale_i_line"></div>',t+='<div class="form_collector" id="addon_configuration_subpanel"></div>',document.getElementById("rbm_addon_details").innerHTML=t,RVS.F.configPanelSaveButton({show:!1,slug:e}),a.active&&RVS.DOC.trigger(a.slug+"_config",{container:"addon_configuration_subpanel"})},RVS.F.configPanelSaveButton=function(e){var t=document.getElementById("rbm_configpanel_savebtn");!0===e.show?(t.style.display="block",t.dataset.slug=e.slug):t.style.display="none"},RVS.F.preloadImage=function(e){var t=new Image;!0!==e.silent&&RVS.F.showWaitAMinute({fadeIn:500,text:RVS_LANG.imageisloading}),t.onload=function(){if(void 0!==e.slideId&&void 0!==e.uid){RVS.SLIDER[e.slideId].layers[e.uid].size.originalWidth=this.width,RVS.SLIDER[e.slideId].layers[e.uid].size.originalHeight=this.height;var t=0===parseInt(this.height,0)?0:parseInt(this.width,0)/parseInt(this.height,0);RVS.SLIDER[e.slideId].layers[e.uid].size.aspectRatio=RVS.F.cToResp({default:"1",val:t}),RVS.SLIDER[e.slideId].layers[e.uid].media.loaded=!0}!0!==e.silent&&setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),e.callback&&e.callback.call()},t.onerror=function(){void 0!==e.slideId&&void 0!==e.uid&&(RVS.SLIDER[e.slideId].layers[e.uid].media.imageUrl=RVS.ENV.img_ph_url,RVS.SLIDER[e.slideId].layers[e.uid].size.originalWidth=300,RVS.SLIDER[e.slideId].layers[e.uid].size.originalHeight=200,RVS.SLIDER[e.slideId].layers[e.uid].size.aspectRatio=RVS.F.cToResp({default:"1",val:1.5}),RVS.SLIDER[e.slideId].layers[e.uid].media.loaded=!0),!0!==e.silent&&setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),e.callback&&e.callback.call()},t.onabort=function(){!0!==e.silent&&setTimeout(function(){RVS.F.showWaitAMinute({fadeOut:500})},100),e.callback&&e.callback.call()},t.src=e.image},RVS.F.createMiniPreloader=function(e){jQuery("#font_minipreloader").remove(),e.container.append(jQuery('<div id="font_minipreloader" style="position:absolute; top:5px;right:5px; width:20px:height:20px"><svg  height="20" width="20"><circle style="visibility:visible; color:#fff;" class="circle-fill" cx="10" cy="10" r="8" transform="rotate(-90 10 10)" stroke="white" stroke-width="4" fill="none" /></svg>')),punchgs.TweenLite.fromTo(".circle-fill",.5,{drawSVG:"0%"},{drawSVG:"30%",ease:punchgs.Linear.EaseNone,delay:.2,force3D:!0})},RVS.F.miniPreloaderOut=function(e){punchgs.TweenLite.fromTo(".circle-fill",.5,{drawSVG:"30%"},{drawSVG:"100%",ease:punchgs.Linear.EaseNone,force3D:!0,delay:.5}),punchgs.TweenLite.to("#font_minipreloader",.6,{scale:0,transformOrigin:"50% 50%",ease:punchgs.Power3.EaseInOut,overwrite:"all",force3D:!0,delay:.7}),e&&RVS.F.miniPreloaderKill()},RVS.F.miniPreloaderKill=function(){setTimeout(function(){jQuery("#font_minipreloader").remove()},2e3)},RVS.F.checkVimeoID=function(e){RVS.F.createMiniPreloader({container:jQuery("#video_id_wrap")}),jQuery("#hidden_video_container").remove(),jQuery("body").append('<div id="hidden_video_container"></div>'),u=new Vimeo.Player("hidden_video_container",e),p=setTimeout(function(){jQuery("#layer_youtubevimeo_id").addClass("badvalue"),RVS.F.miniPreloaderOut()},3e3),u.ready().then(function(){jQuery("#layer_youtubevimeo_id").removeClass("badvalue"),RVS.F.miniPreloaderOut(),clearTimeout(p)}).catch(function(e){jQuery("#layer_youtubevimeo_id").addClass("badvalue"),RVS.F.miniPreloaderOut(),clearTimeout(p)})},RVS.F.checkYouTubeID=function(e){RVS.F.createMiniPreloader({container:jQuery("#video_id_wrap")}),jQuery("#hidden_video_container").remove(),jQuery("body").append('<div id="hidden_video_container"></div>'),p=setTimeout(function(){jQuery("#layer_youtubevimeo_id").addClass("badvalue"),RVS.F.miniPreloaderOut()},3e3),window._youtubeplayer_=new YT.Player("hidden_video_container",{videoId:e.id,events:{onReady:function(){jQuery("#layer_youtubevimeo_id").removeClass("badvalue"),RVS.F.miniPreloaderOut(),clearTimeout(p)},onError:function(){console.log("ERROR"),jQuery("#layer_youtubevimeo_id").addClass("badvalue"),RVS.F.miniPreloaderOut(),clearTimeout(p)}}})},RVS.F.openAddImageDialog=function(e,t,a){e||(e=RVS_LANG.select_image),"undefined"!=typeof wp&&void 0!==wp.media?O(e,t,a):I(e,t)},RVS.F.openAddVideoDialog=function(e,t,a){e||(e=RVS_LANG.select_image),"undefined"!=typeof wp&&void 0!==wp.media&&L(e,t,a)};var L=function(e,t,a){null==a&&(a=!1);var i=wp.media({title:e,multiple:a,library:{},button:{text:"Insert"}});i.on("select",function(){var e=i.state().get("selection").first().toJSON(),r=i.state().get("selection"),o=[];1==a?(r.map(function(e){var t=e.toJSON(),a={};a.url=t.url,a.id=t.id,a.width=t.width,a.height=t.height,o.push(a)}),t(o)):t(e.url,e.id,e.width,e.height)}),i.open()},O=function(e,t,a){null==a&&(a=!1);var i=wp.media({title:e,multiple:a,library:{type:"image"},button:{text:"Insert"}});i.on("select",function(){var e=i.state().get("selection").first().toJSON(),r=i.state().get("selection"),o=[];1==a?(r.map(function(e){var t=e.toJSON(),a={url:t.url,id:t.id,width:t.width,height:t.height};o.push(a)}),t(o)):t(e.url,e.id,e.width,e.height)}),i.open()},I=function(e,t){var a="type=image&post_id=0&TB_iframe=true";a=encodeURI(a),tb_show(e,"media-upload.php?"+a),window.send_to_editor=function(e){tb_remove();var a=jQuery(e).attr("src");a&&null!=a&&""!=a||(a=jQuery("img",e).attr("src")),t(a,"")}};RVS.F.showMouseInfo=function(e){void 0===RVS.C.mouseInfo&&(RVS.C.mouseInfo=jQuery("#mouseInfoBox"),RVS.C.mouseInfo.appendTo(jQuery("body"))),void 0!==e.html?RVS.C.mouseInfo[0].innerHTML=e.html:void 0!==e.text&&(RVS.C.mouseInfo[0].innerHTML=e.text),o=!0},RVS.F.hideMouseInfo=function(){o=!1,void 0!==RVS.C.mouseInfo&&punchgs.TweenLite.set(RVS.C.mouseInfo,{display:"none"})},RVS.F.os=function(){var e="Unknown OS";return-1!=navigator.appVersion.indexOf("Win")?e="Windows":-1!=navigator.appVersion.indexOf("Mac")?e="MacOS":-1!=navigator.appVersion.indexOf("X11")?e="UNIX":-1!=navigator.appVersion.indexOf("Linux")&&(e="Linux"),RVS.S.OSName=e,e},RVS.F.setEditorUrl=function(e){window.history&&window.history.pushState&&(window.lastUrlState=window.location.href,window.history.pushState({},null,window.location.origin+window.location.pathname+"?page=revslider&view=slide&id="+e),RVS.WIN.on("popstate",function(e){window.location.href=window.lastUrlState}))},RVS.F.getEditorUrl=function(){window.location.href;if(window.location.href.indexOf("alias=")>=0)return RVS.SLIDER.slideIDs[0];var e=window.location.href.split("&id=");return e=jQuery.isArray(e)?e[1]:RVS.SLIDER.slideIDs[0],e=jQuery.isNumeric(e)?e:e.split("&")[0],e=jQuery.isNumeric(e)?e:e.split("#")[0]},RVS.F.backToOverview=function(){window.location.href=window.location.origin+window.location.pathname+"?page=revslider"},RVS.F.getProportionalSizes=function(e){e.image.width=parseInt("100%"==e.image.width||"auto"==e.image.width?e.viewPort.width:e.image.width,0),e.image.height=parseInt("100%"==e.image.height||"auto"==e.image.height?e.viewPort.height:e.image.height,0),e.viewPort.width=parseInt("100%"==e.viewPort.width||"auto"==e.viewPort.width?e.image.width:e.viewPort.width,0),e.viewPort.height=parseInt("100%"==e.viewPort.height||"auto"==e.viewPort.height?e.image.height:e.viewPort.height,0);var t=e.image.width/e.image.height,a=e.viewPort.width/e.viewPort.height,i={width:e.image.width,height:e.image.height};switch(e.type){case"fit":t>a?(i.width=e.viewPort.width,i.height=e.viewPort.width/t):(i.width=e.viewPort.height*t,i.height=e.viewPort.height);break;case"cover-proportional":t<=a?(i.width=e.viewPort.width,i.height=e.viewPort.width/t):(i.width=e.viewPort.height*t,i.height=e.viewPort.height);break;case"fullwidth":i.width=e.viewPort.width,i.height=e.proportional?i.width/t:e.image.height;break;case"fullheight":i.height=e.viewPort.height,i.width=e.proportional?i.height/t:e.image.width;break;case"cover":i.width=e.viewPort.width,i.height=e.viewPort.height}return i},RVS.F.convPercVals=function(e){return!jQuery.isNumeric(e)&&!1!==e&&void 0!==e&&!0!==e&&e.match(/%]/g)&&(e=e.split("[")[1].split("]")[0]),e},RVS.F.convertHexToRGB=function(e){return[(e=parseInt(e.indexOf("#")>-1?e.substring(1):e,16))>>16,(65280&e)>>8,255&e]},RVS.F.sanitize_input_ws=function(e){return e.replace(/[^-0-9a-zA-Z_ -]/g,"")},RVS.F.sanitize_columns=function(e){return e.replace(/[^-1-9+\/]/g,"")},RVS.F.sanitize_input=function(e){if(null!==e)return e.replace(/ /g,"-").replace(/[^-0-9a-zA-Z_-]/g,"")},RVS.F.fontNameConvert=function(e){return e.replace(/"/g,"")},RVS.F.sanitize_input_lc=function(e){return e.replace(/ /g,"-").replace(/[^-0-9a-z_-]/g,"")},RVS.F.parseIntPlus=function(e){var t=parseInt(e,0);return jQuery.isNumeric(t)?t:e},RVS.F.htmlToText=function(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")},RVS.F.insertTextAtCursor=function(e,t){var a=e.getDoc(),i=a.getCursor();a.replaceRange(t,i)},RVS.F.getResizeDirection=function(e){return e.size.height<e.originalSize.height?"height":e.size.height>e.originalSize.height?"height":e.size.width<e.originalSize.width?"width":e.size.width>e.originalSize.width?"width":"none"},RVS.F.whichBGPos=function(e){return"custom"===e.position?e.positionX+"% "+e.positionY+"%":e.position},RVS.F.matchArray=function(e,t){if(!jQuery.isArray(e)||!jQuery.isArray(t))return!1;if(e.length!=t.length)return!1;var a=!0;for(var i in e)if(e.hasOwnProperty(i)&&-1===jQuery.inArray(e[i],t)){a=!1;break}if(a)for(var i in t)if(t.hasOwnProperty(i)&&-1===jQuery.inArray(t[i],e)){a=!1;break}return a},RVS.F.mergeArrays=function(e,t){for(var a in t)t.hasOwnProperty(a)&&-1===jQuery.inArray(t[a],e)&&e.push(t[a]);return e},RVS.F.makeArray=function(e,t){if(!jQuery.isArray(e)){for(var a=[],i=0;i<t;i++)a.push(e);e=a}return e},RVS.F.amove=function(e,t,a){if(jQuery.isArray(e)||(e=Object.values(e)),a>=e.length)for(var i=a-e.length+1;i--;)e.push(void 0);return e.splice(a,0,e.splice(t,1)[0]),e},RVS.F.rArray=function(e,t){return jQuery.grep(e,function(e){return e!=t})},RVS.F._inArray=function(e,t){for(var a=-1,i=0;i<t.length&&-1===a;)t[i]==e&&(a=i),i++;return a},RVS.F.addT=function(e){var t=0;for(var a in e)e.hasOwnProperty(a)&&(t+=parseInt(e[a],0));return t},RVS.F.isVaOrPx=function(e){var t=!1;return!jQuery.isNumeric(e)&&e.indexOf("px")>=0?t=!0:jQuery.isNumeric(e)&&(t=!0),t},RVS.F.retWitSuf=function(e,t){return!jQuery.isNumeric(e)&&e.indexOf("px")>=0?parseInt(e)+"px":!jQuery.isNumeric(e)&&e.indexOf("%")>=0?parseInt(e)+"%":!jQuery.isNumeric(e)&&jQuery.isNumeric(parseInt(e,0))?parseInt(e)+t:jQuery.isNumeric(e)?e+t:void 0},RVS.F.firstCharUppercase=function(e){return e.substr(0,1).toUpperCase()+e.substr(1).toLowerCase()},RVS.F._d=function(e,t){return null==e?t:e},RVS.F._truefalse=function(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.cToResp=function(e){var t={},a=void 0===(e=void 0===e?{default:0,unit:""}:e).default?0:e.default,i=void 0===e.unit?"":e.unit;for(var r in RVS.V.sizes)if(RVS.V.sizes.hasOwnProperty(r)){var o=RVS.V.sizes[r],s=RVS.V.sizesold[r];if("object"==typeof(a=jQuery.isArray(e.val)?e.val:void 0!==e.val&&"object"!=typeof e.val?e.val:void 0===e.val||"object"!=typeof e.val||void 0===e.val[s]||null===e.val[s]?a:e.val[s]))for(var n in t[o]=jQuery.extend(!0,{},{v:a,e:!1}),void 0!==e&&void 0!==e.val&&void 0!==e.val[s]&&(t[o].e=!0),a)a.hasOwnProperty(n)&&(t[o].v[n]=i.length>0&&"auto"!==a[n]&&"none"!==a[n]?parseFloat(a[n])+i:a[n],""!=i||jQuery.isNumeric(t[o].v[n])||(t[o].v[n].indexOf("%")>=0?t[o].v[n]=parseInt(t[o].v[n],0)+"%":t[o].v[n].indexOf("px")>=0&&(t[o].v[n]=parseInt(t[o].v[n],0)+"px")));else t[o]=jQuery.extend(!0,{},{v:i.length>0&&"auto"!==a&&"none"!==a&&""!==a?parseFloat(a)+i:a,e:!1,u:i}),void 0!==e&&void 0!==e.val&&void 0!==e.val[s]&&(t[o].e=!0),""===t[o].v&&""!==e.default&&(t[o].v=e.default),""!=i||jQuery.isNumeric(t[o].v)||!1===t[o].v||!0===t[o].v||(t[o].v.indexOf("%")>=0?t[o].v=parseInt(t[o].v,0)+"%":t[o].v.indexOf("px")>=0&&(t[o].v=parseInt(t[o].v,0)+"px"))}return t},RVS.F.cToVandU=function(e){var t={v:e.default,u:e.u};t.v=void 0===e.val?t.v:e.val;var a=0;if("object"==typeof t.v)for(var i in t.v)t.v.hasOwnProperty(i)&&(jQuery.isNumeric(t.v[i])||(t.u=0==a&&t.v[i].indexOf("px")>=0?"px":0==a&&t.v[i].indexOf("%")>=0?"%":t.u,t.v[i]=parseInt(t.v[i],0)+t.u,a++));else jQuery.isNumeric(t.v)||(t.u=0==a&&t.v.indexOf("px")>=0?"px":0==a&&t.v.indexOf("%")>=0?"%":t.u,t.v=parseInt(t.v,0)+t.u,a++);return t},RVS.F.exportLayerCombo=function(e){void 0===S&&(jQuery("body").append('<a style="display:none" id="downloadExportLayerCombo" href="" download></a>'),S=jQuery("#downloadExportLayerCombo"));var t,a=RVS.SLIDER[RVS.S.slideId].slide.thumb.customAdminThumbSrcId,i={};for(var r in RVS.L)RVS.L.hasOwnProperty(r)&&("video"===RVS.L[r].type&&(t=RVS.L[r].media.id),"video"!==RVS.L[r].type&&(i[r]=jQuery.extend(!0,{},RVS.L[r])));return delete i.bottom,delete i.top,delete i.middle,i=JSON.stringify(RVS.F.simplifyAllLayer(i)),RVS.F.ajaxRequest("export_layer_group",{videoid:t,thumbid:a,layers:i,title:e.title},function(e){S[0].href=e.url,S[0].click()},!0,!0),"Exporting Layer Combo File"},RVS.F.debug=function(e){console.log(e)},RVS.F.simplifyObject=function(e,t){for(var a in t)t.hasOwnProperty(a)&&("object"!=typeof t[a]||jQuery.isArray(t[a])?e[a]==t[a]&&"text"!==a&&"endWithSlide"!==a&&delete t[a]:(void 0!==e[a]&&"margin"!==a&&"padding"!==a&&(t[a]=jQuery.extend(!0,{},RVS.F.simplifyObject(e[a],t[a]))),jQuery.isEmptyObject(t[a])&&delete t[a]));return t},RVS.F.removeEmptyChilds=function(e){var t={};for(var a in e)e.hasOwnProperty(a)&&("object"!=typeof e[a]&&(t[a]=e[a]),jQuery.isEmptyObject(e[a])||(t[a]=jQuery.extend(!0,{},RVS.F.removeEmptyChilds(e[a]))));return t},RVS.F.convertFraction=function(e){var t,a;return-1!==e.search("/")&&2===(a=e.split("/")).length&&(t=parseInt(a[0],10)/parseInt(a[1],10)),t||1/3},RVS.F.openPreivew=function(e){RVS.preview=void 0===RVS.preview?{selectedSize:"d",inited:!1,c:jQuery("#rbm_preview")}:RVS.preview,jQuery("#wpwrap").addClass("inRS_RSpreview"),document.getElementById("rbm_preview_moduletitle").innerHTML=e.title,document.getElementById("copy_shortcode_from_preview").value='[rev_slider alias="'+e.alias+'"][/rev_slider]',RVS.preview.open=!0,RVS.preview.inited||(RVS.preview.inited=!0,RVS.DOC.on("click",".rbm_prev_size_sel",function(){jQuery(".rbm_prev_size_sel.selected").removeClass("selected"),this.className+=" selected",RVS.preview.selectedSize=this.dataset.ref,RVS.F.updatePreviewSize()}),RVS.DOC.on("click","#rbm_preview .rbm_close",function(){jQuery("#wpwrap").removeClass("inRS_RSpreview"),RVS.F.RSDialog.close(),RVS.preview.open=!1,document.getElementById("rbm_preview_live").innerHTML=""}),RVS.F.initCopyClipboard(".copypreviewshortcode"),RVS.DOC.on("windowresized",function(){RVS.preview.open&&RVS.F.updatePreviewSize()})),RVS.preview.iframe=document.createElement("iframe"),document.getElementById("rbm_preview_live").appendChild(RVS.preview.iframe),RVS.F.RSDialog.create({modalid:"rbm_preview",bgopacity:.85});var t={id:e.id};"editor"===e.mode&&(t.data=RVS.F.getAllSliderDatas()),RVS.F.ajaxRequest("preview_slider",t,function(e){RVS.preview.sizes=e.size,RVS.preview.iframe.contentWindow.document.open(),RVS.preview.iframe.contentWindow.document.write(e.html),RVS.preview.iframe.contentWindow.document.close(),RVS.F.updatePreviewSize()})},RVS.F.updatePreviewSize=function(){if(void 0!==RVS.preview&&void 0!==RVS.preview.sizes&&null!=RVS.preview.sizes.width&&null!=RVS.preview.sizes.height){var e=parseInt(RVS.preview.sizes.width[RVS.preview.selectedSize],0)-1,t=parseInt(RVS.preview.sizes.height[RVS.preview.selectedSize],0);punchgs.TweenLite.set(RVS.preview.c,{width:Math.min(parseInt(RVS.ENV.glb_slizes.d,0),RVS.S.winw),height:Math.min(t+50,RVS.S.winh)}),punchgs.TweenLite.set(RVS.preview.iframe,{maxHeight:"100%",maxWidth:"100%",margin:"auto",position:"relative",left:"50%",x:"-50%"}),RVS.preview.iframe.width=Math.min(e,RVS.S.winw),RVS.preview.iframe.height=t,RVS.F.RSDialog.center()}}}();