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,window._R_is_Editor="true"===window._R_is_Editor||void 0,function(){var e,t,i,a,o,r,s,n,d,c,p,u,S,v,R;function m(e){!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],e.todo.redrawLayers=!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})),!0===e.todo.SlideList&&RVS.F.reSortSlides();var t=!1;if(("slidelayout"==e.todo.mode&&(e.SlideSettings||""+e.todo.slide!=""+RVS.S.slideId)||"slidelayout"!==e.todo.mode&&void 0!==e.todo.mode)&&(RVS.F.mainMode({mode:e.todo.mode,set:!0,slide:e.todo.slide}),t=!0,e.todo.redrawLayers=!1),"slidelayout"!==e.todo.mode||e.todo.layerAndSlideMode||(void 0!==e.todo.layer?RVS.DOC.trigger("changeToLayerMode"):RVS.DOC.trigger("changeToSlideMode")),t||!e.todo.rebuildLayerList&&!0!==e.todo.LayerSorting||(("slidelayout"!==e.todo.mode||e.todo.forceRebuildLayerList)&&(RVS.H={},RVS.F.buildLayerLists({force:!0,ignoreSelectLayers:void 0!==e.todo.lastSelectedLayers}),RVS.F.updateLayerToggleActionWaits(),RVS.DOC.trigger("allLayersRebuilt"),e.todo.redrawLayers=!1),RVS.F.reOrderHTMLLayers()),void 0!==e.todo.framesToAdd){for(var i in e.todo.framesToAdd)e.todo.framesToAdd.hasOwnProperty(i)&&(RVS.F.addLayerFrameOnDemand(RVS.L[e.todo.framesToAdd[i].layerid],e.todo.framesToAdd[i].el,e.todo.framesToAdd[i].newframe),RVS.F.getFrameOrder({layerid:e.todo.framesToAdd[i].layerid}),RVS.F.updateFramesZIndexes({layerid:e.todo.framesToAdd[i].layerid}));RVS.DOC.trigger("updateKeyFramesList")}if(void 0!==e.todo.framesToRedraw)for(var i in e.todo.framesToRedraw)e.todo.framesToRedraw.hasOwnProperty(i)&&(RVS.F.updateLayerFrames({layerid:e.todo.framesToRedraw[i]}),RVS.F.renderLayerAnimation({layerid:e.todo.framesToRedraw[i]}));if(void 0!==e.todo.framesToReorder){for(var i in e.todo.framesToReorder)e.todo.framesToReorder.hasOwnProperty(i)&&(RVS.F.getFrameOrder({layerid:e.todo.framesToReorder[i].layerid}),RVS.F.updateFramesZIndexes({layerid:e.todo.framesToReorder[i].layerid}));RVS.DOC.trigger("updateKeyFramesList")}if(void 0!==e.todo.lastSelectedLayers)for(var i in e.todo.lastSelectedLayers)e.todo.lastSelectedLayers.hasOwnProperty(i)&&void 0!==RVS.L[e.todo.lastSelectedLayers[i]]&&(RVS.F.selectLayers({id:e.todo.lastSelectedLayers[i],action:"add"}),e.todo.redrawLayers=!1);for(var i in e.todo.updateLayerImageSrcList)e.todo.updateLayerImageSrcList.hasOwnProperty(i)&&RVS.F.updateLayerImageSrc({},{layerid:e.todo.updateLayerImageSrcList[i]});if(e.todo.redrawLayers&&void 0!==e.todo.layers&&e.todo.layers.length>0)for(var i in e.todo.layers)e.todo.layers.hasOwnProperty(i)&&RVS.F.drawHTMLLayer({uid:e.todo.layers[i]});void 0!==e.todo.callBack&&e.todo.callBack(),RVS.DOC.trigger("SceneUpdatedAfterRestore",e)}function V(e){var t=RVS.F.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 i=e.path.split("."),a=jQuery.inArray("layers",i);e.todo.slide=i[a-1],e.todo.layer=i[a+1],e.todo.layers=void 0===e.todo.layers?[]:e.todo.layers,-1===jQuery.inArray(i[a+1],e.todo.layers)&&e.todo.layers.push(i[a+1]),e.todo.mode="slidelayout"}if(!t&&e.path.indexOf(".slide.")>=0&&e.path.indexOf(".slide.")<=6){e.todo.SlideSettings=!0;i=e.path.split("."),a=jQuery.inArray("slide",i);e.todo.slide=i[a-1],e.todo.mode="slidelayout"}return!t&&(e.path.indexOf(".slide.timeline.delay")>=0||e.path.indexOf(".slide.slideChange.speed")>=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,i=void 0===e.todo?{SlideList:!1,SliderSettings:!1,SlideSettings:!1,LayerSettings:!1,LayerSorting:!1}:e.todo;if(i.updateLayerImageSrcList=void 0===i.updateLayerImageSrcList?[]:i.updateLayerImageSrcList,i.slides=void 0===i.slides?[]:i.slides,void 0!==t.chngamount){for(var a in t.steps)if(t.steps.hasOwnProperty(a)){var o=t.steps[a];if("old"===e.valkey)o=t.steps[t.chngamount-a-1];if(void 0!==o.backupType)switch("addlayer"!==o.bckpGrType&&"removelayer"!==o.bckpGrType&&"layerTemplateAnimation"!==o.bckpGrType||(i.forceRebuildLayerList=!0),o.backupType){case"layerFrames":jQuery.isEmptyObject(o[e.valkey])||(RVS.SLIDER[o.slide].layers[o.layer].timeline.frames=jQuery.extend(!0,{},o[e.valkey]),i.framesToRedraw=void 0===i.framesToRedraw?[]:i.framesToRedraw,i.framesToRedraw.push(o.layer));break;case"clipPath":jQuery.isEmptyObject(o[e.valkey])||(RVS.SLIDER[o.slide].layers[o.layer].timeline.clipPath=jQuery.extend(!0,{},o[e.valkey]),i.framesToRedraw=void 0===i.framesToRedraw?[]:i.framesToRedraw,i.framesToRedraw.push(o.layer));break;case"singleFrame":jQuery.isEmptyObject(o[e.valkey])||(RVS.SLIDER[o.slide].layers[o.layer].timeline.frames[o.frame]=jQuery.extend(!0,{},o[e.valkey]),i.framesToRedraw=void 0===i.framesToRedraw?[]:i.framesToRedraw,i.framesToRedraw.push(o.layer));break;case"layerLoop":jQuery.isEmptyObject(o[e.valkey])||(RVS.SLIDER[o.slide].layers[o.layer].timeline.loop=jQuery.extend(!0,{},o[e.valkey]),i.framesToRedraw=void 0===i.framesToRedraw?[]:i.framesToRedraw,i.framesToRedraw.push(o.layer));break;case"frame":jQuery.isEmptyObject(o[e.valkey])?(delete RVS.SLIDER[o.slide].layers[o.layer].timeline.frames[o.frame],jQuery("#"+o.slide+"_"+o.layer+"_"+o.frame).remove(),i.framesToReorder=void 0===i.framesToReorder?[]:i.framesToReorder,i.framesToReorder.push({layerid:o.layer})):(RVS.SLIDER[o.slide].layers[o.layer].timeline.frames[o.frame]=jQuery.extend(!0,{},o[e.valkey]),i.framesToAdd=void 0===i.framesToAdd?[]:i.framesToAdd,i.framesToAdd.push({layerid:o.layer,el:document.getElementById("tllayerlist_element_"+o.slide+"_"+o.layer),newframe:o.frame}));break;case"slide":jQuery.isEmptyObject(o[e.valkey])?(delete RVS.SLIDER[o.path],o.cache=jQuery("#slide_list_element_"+o.path).removeClass("selected").detach(),i.forceSelectSlide=o.beforeSelected):(RVS.SLIDER[o.path]=jQuery.extend(!0,{},o[e.valkey]),void 0!==o.cache&&RVS.C.slideList.append(o.cache),jQuery.inArray(o.bckpGrType,["addnewslide","duplicateslide"])>=0?i.forceSelectSlide=o.path:i.forceSelectSlide=o.beforeSelected),i.mode="slidelayout";break;case"object":jQuery.isEmptyObject(o[e.valkey])?delete RVS.SLIDER[o.path]:RVS.F.writeDeepPath(RVS.SLIDER,o.path,jQuery.extend(!0,{},o[e.valkey])),i.callBack=o.callBack;break;case"array":void 0!==o[e.valkey]&&(RVS.F.writeDeepPath(RVS.SLIDER,o.path,o[e.valkey]),i.callBack=o.callBack);break;case"layer":jQuery.isEmptyObject(o[e.valkey])?(delete RVS.SLIDER[void 0!==o.slideid?o.slideid:RVS.S.slideId].layers[o.path],jQuery("#_lc_"+(void 0!==o.slideid?o.slideid:RVS.S.slideId)+"_"+o.path+"_").remove()):RVS.SLIDER[void 0!==o.slideid?o.slideid:RVS.S.slideId].layers[o.path]=jQuery.extend(!0,{},o[e.valkey]),i.rebuildLayerList=!0,i.layer=!0;break;case"full":RVS.SLIDER=jQuery.extend(!0,{},o[e.valkey])}else RVS.F.updateSliderObj({path:o.path,val:o[e.valkey],ignoreBackup:!0,ignoreResponsive:o.ignoreResponsive,wasEdited:o.wasEdited,editedPath:o.editedPath,undoRedo:"old"===e.valkey?"undo":"redo"});"updatelayerimagesrc"===o.evt&&-1===jQuery.inArray(i.updateLayerImageSrcList.indexOf,o.uid)&&i.updateLayerImageSrcList.push(o.uid),i=V({todo:i,path:o.path,groupid:t.id})}-1===jQuery.inArray(i.slide,i.slides)&&i.slides.push(i.slide),"layersorting_layermovement"==t.id&&(i.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});i=V({todo:i,path:t.path}),-1===jQuery.inArray(i.slide,i.slides)&&i.slides.push(i.slide)}return i.step=e.step,i}function y(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,i=t.indexOf("addOns")>=0?t.split("addOns.")[1]:"none",a="layer"===e.type?"layers":"undo",o=e.path.split(".");return o=o[o.length-1],{txt:"none"!==i?i.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 ("+o+")":t.indexOf("alias")>=0&&(t.indexOf(".layers")>=0||"layer"===e.type)?"Layer Alias":t.indexOf("slide.slideChange.speed")>=0?"Slide Transition Speed":t.indexOf("timeline.frames")>=0?"Layer Animation ("+o+")":"slideIDs"===t?"Slide Order Change":t,icon:a="none"!==i?"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.slideChange.speed")>=0?"timelapse":t.indexOf("timeline.frames")>=0?"theaters":"slideIDs"===t?"sort":a,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(document.body).trigger(e.callEvent,e.callEventParam)}function h(e){var t='<option value="none">'+RVS_LANG.none+"</option>";for(var i in e.array)e.array.hasOwnProperty(i)&&(void 0!==e.filter&&"all"!==e.filter&&e.filter!==e.array[i].type||void 0!==e.subfilter&&"all"!==e.subfilter&&e.subfilter!==e.array[i].subtype||(t+="<option "+(e.preselected===e.array[i][e.type]?"selected":"")+' value="'+e.array[i][e.type]+'">'+e.array[i].title+"</option>"));return t}function _(e){var t=e.replace("*north*","Up").replace("*south*","Down").replace("*swap_vert*","Vertical").replace("*swap_horiz*","Horizontal").replace("*east*","Right").replace("*east*","Right").replace("*add*","Zoom In").replace("*remove*","Zoom Out").replace("*west*","Left").split("*");return t[t.length-1]}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 L(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(){RVS.S.isChrome8889=navigator.userAgent.includes("Chrome/88")||navigator.userAgent.includes("Chrome/89");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.dirs=["top","bottom","left","right"],RVS.V.sizesold=["desktop","notebook","tablet","mobile"],RVS.ENV.grid_sizes={d:1240,n:1024,t:778,m:480,none:"none"},RVS.ENV.globVerOffset=275,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.editorSize.width=RVS.S.editorSize.w,RVS.S.editorSize.height=RVS.S.editorSize.h,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.editorSize.width=RVS.S.winw-335,RVS.S.editorSize.h=RVS.S.editorSize.height=RVS.S.winh-RVS.V.timeline_minHeight-65,clearTimeout(r),r=setTimeout(function(){RVS.DOC.trigger("windowresized"),!0!==RVS.S.ovMode&&RVS.F.updateAllHTMLLayerPositions(!0)},25))}),RVS.DOC.on("mousemove","#builderView",function(e){RVS.S.mP.top=e.pageY,RVS.S.mP.left=e.pageX,s&&tpGS.gsap.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.get_browser=function(){var e,t=navigator.userAgent,i=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(i[1])?(e=/\brv[ :]+(\d+)/g.exec(t)||[],"IE"):"Chrome"===i[1]&&null!=(e=t.match(/\b(OPR|Edge)\/(\d+)/))?e[1].replace("OPR","Opera"):(i=i[2]?[i[1],i[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(e=t.match(/version\/(\d+)/i))&&i.splice(1,1,e[1]),i[0])},RVS.F.isFirefox=function(e){return RVS.ENV.isFirefox=void 0===RVS.ENV.isFirefox?"Firefox"===RVS.F.get_browser():RVS.ENV.isFirefox,RVS.ENV.isFirefox},RVS.F.HighContrast=function(e){"toggle"===e?jQuery(document.body).hasClass("rs-high-contrast")?jQuery(document.body).removeClass("rs-high-contrast"):jQuery(document.body).addClass("rs-high-contrast"):e?jQuery(document.body).addClass("rs-high-contrast"):jQuery(document.body).removeClass("rs-high-contrast")},RVS.F.getStartSec=function(e){return null==e||""===e||" "===e?0:RVS.F.isNumeric(e)?e:e.split(":").length>1?60*parseInt(e.split(":")[0],0)+parseInt(e.split(":")[1],0):e},RVS.F.videoExtract={init:function(){var e=RVS.F.videoExtract;e.canvas=document.createElement("canvas"),e.ctx=e.canvas.getContext("2d"),e.video=document.createElement("video"),e.inited=!0},get:function(e,t,i,a){void 0!==e&&(void 0===RVS.F.videoExtract.inited&&RVS.F.videoExtract.init(),RVS.F.videoExtract.at=RVS.F.getStartSec(i),RVS.F.videoExtract.callBack=t,RVS.F.videoExtract.video.addEventListener("loadeddata",RVS.F.videoExtract.draw),RVS.F.videoExtract.lastloaded==e&&RVS.F.videoExtract.draw(),RVS.F.videoExtract.video.src=e,RVS.F.videoExtract.param=a)},draw:async function(){return new Promise(async e=>{var t,i=RVS.F.videoExtract;for(i.video.addEventListener("seeked",async function(){t&&t()});(i.video.duration===1/0||isNaN(i.video.duration))&&i.video.readyState<2;)i.video.currentTime=1e7*Math.random();i.lastloaded=i.video.src,i.canvas.width=i.video.videoWidth,i.canvas.height=i.video.videoHeight,i.video.currentTime=void 0===i.at?0:i.at,await new Promise(e=>t=e),i.ctx.drawImage(i.video,0,0,i.video.videoWidth,i.video.videoHeight),i.data=i.canvas.toDataURL("image/jpeg",.75),i.save(),e()})},save:function(){RVS.F.videoExtract;RVS.F.ajaxRequest("create_image_from_raw",{bitmap:RVS.F.videoExtract.data,mpeg:RVS.F.videoExtract.video.src,slideid:RVS.S.slideId+("layer"===RVS.F.videoExtract.param?"_layer":"")},function(e){e.success&&RVS.F.videoExtract.callBack(e,RVS.F.videoExtract.param)})}},RVS.F.setBGPosterImage=function(e,t,i){"slide"===i?RVS.F.updateImageSrcFromMedia({evt:"updateslidebasic",evtparam:"double",r:"#slide#.slide.bg.image",rid:"#slide#.slide.bg.imageId",lib:"#slide#.slide.bg.imageLib",sty:"#slide#.slide.bg.imageSourceType",targetType:"slide"},e,t):"layer"===i&&RVS.F.updateImageSrcFromMedia({evt:"updatelayerimagesrc",r:"media.posterUrl",rid:"media.posterId",lib:"media.imageLib",sty:"behavior.imageSourceType",targetType:"layer"},e,t)},RVS.F.updateSliderObj=function(e){if(!(e.path.indexOf("#targetlayer#")>=0)||void 0!==RVS.S.actionTrgtLayerId&&"none"!==RVS.S.actionTrgtLayerId){e.path=RVS.F.getConcVals(e.path,RVS.screen);var t=e.path.split("."),i=!1;try{e.old=RVS.F.getDeepValue(RVS.SLIDER,e.path),RVS.F.writeDeepPath(RVS.SLIDER,e.path,e.val),e.lastkey=t[t.length-1]}catch(t){i=!0,console.log("Object Path Does Not Exists:"+e.path)}if(!0!==i&&!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('"]["'),i=!1;try{void 0!==e.wasEdited&&"undo"===e.undoRedo?RVS.F.writeDeepPath(RVS.SLIDER,e.editedPath,e.wasEdited):(e.wasEdited=RVS.F.getDeepValue(RVS.SLIDER,e.editedPath),RVS.F.writeDeepPath(RVS.SLIDER,e.editedPath,!0))}catch(e){i=!0,console.log(e)}!0!==i&&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,slide:e.slide})}void 0!==e.evt&&!0!==o&&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 i={path:e.path,icon:"layers",lastkey:"layer",type:"layer",id:"MultipleLayers"};RVS.F.openBackupGroup(y(i))}for(var a in RVS.selLayers)RVS.selLayers.hasOwnProperty(a)&&(void 0!==e.evt&&(e.evtparam=void 0===e.evtparam?{}:e.evtparam,e.evtparam.layerid=RVS.selLayers[a]),RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[a]+"."+e.path,val:e.val,evt:e.evt,evtparam:e.evtparam,uid:RVS.selLayers[a],ignoreBackup:e.ignoreBackup}),!0!==e.ignoreRedraw&&RVS.F.drawHTMLLayer({uid:RVS.selLayers[a]}));"none"!==t&&RVS.F.closeBackupGroup({id:"MultipleLayers"})},RVS.F.openBackupGroup=function(e){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(){o=!0},RVS.F.ignoreEventsClose=function(){o=!1},RVS.F.backup=function(e){if(!0!==RVS.S.ovMode&&(!0===e.force||!0===RVS.S.bckpGrp.close||e.val!==e.old)){if(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}:y(e),i=document.createElement("i"),a=document.createElement("span");e.stepElement=document.createElement("li"),e.stepElement.className="undoredostep toolbar_listelement",i.className="material-icons",i.textContent=t.icon,a.style.display="inline-block",a.style.minWidth="150px",a.textContent=t.txt,e.stepElement.appendChild(i),e.stepElement.appendChild(a),RVS.S.undoList.push(e),RVS.S.undoList.length>30&&(RVS.S.undoList.splice(0,1),RVS.C.undo.removeChild(RVS.C.undo.querySelector("li"))),RVS.C.undo.appendChild(e.stepElement),RVS.S.bckpGrp=!1}1,RVS.S.need_to_save=!0}},RVS.F.clearRedoList=function(){RVS.S.redoList=[],RVS.C.redo.innerHTML=""},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 i=0;i<e.step;i++){var a=RVS.S.undoList.pop();RVS.S.redoList.push(a),t=g({todo:t,step:a,valkey:"old"})}m({todo:t,dir:"undo"}),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 i=0;i<e.step;i++){var a=RVS.S.redoList.pop();RVS.S.undoList.push(a),t=g({todo:t,step:a,valkey:"val"})}m({todo:t,dir:"redo"}),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 RVS.C.undo.innerHTML="",RVS.C.redo.innerHTML="",RVS.S.undoList)RVS.S.undoList.length>0&&void 0!==RVS.S.undoList[e]&&RVS.C.undo.appendChild(RVS.S.undoList[e].stepElement);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].stepElement);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(document.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 i=t.event.currentTarget.dataset;RVS.F.showIconPicker({parent:i.iconparent,classlist:i.classlist,insertinto:i.insertinto,closeafterpick:i.closeafterpick,shortreturn:i.shortreturn})}),RVS.F.addBodyClickListener=function(e){jQuery(document.body).on("click.revbuilderbodyclick",function(e){if(void 0!==RVS.S.waitOnFeedback&&void 0!==RVS.S.waitOnFeedback.allowed){var t=!1;for(var i in RVS.S.waitOnFeedback.allowed)RVS.S.waitOnFeedback.allowed.hasOwnProperty(i)&&(t=!0===t||jQuery.inArray(RVS.S.waitOnFeedback.allowed[i],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(document.body).unbind("click.revbuilderbodyclick"),!1}})},RVS.F.findUndefineds=function(e,t){var i="";for(var a in t=void 0===t?"ROOT":t,e)e.hasOwnProperty(a)&&("object"==typeof e[a]?(i=t+"."+a,RVS.F.findUndefineds(e[a],i)):void 0===e[a]&&console.log(t+"."+a+"="+t+"."+a+'===undefined ? "" : '+t+"."+a+";"))},RVS.F.dragMe=function(e){e.element.data("dragstart",{top:"auto",left:"auto",right:"auto",bottom:"auto"}),e.element.draggable({start:function(t,i){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,n=[],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},n.push(e),RVS.C.vW.classList.remove("mode__slidelayout"),RVS.C.vW.classList.add("mode__navlayout"),RVS.F.openSettings({forms:e.forms,uncollapse:!0})},drag:function(e,t){for(var i in RVS.S.DaD.dragdelta.x=e.clientX-RVS.S.click.x,RVS.S.DaD.dragdelta.y=e.clientY-RVS.S.click.y,n)n.hasOwnProperty(i)&&f(n[i]);t.position={}},stop:function(t,i){RVS.F.closeBackupGroup({id:"elementmovement",txt:"Move "+e.element.attr("id"),icon:"open_with"})}})},RVS.F.updateFormPositions=function(e){null!==e.jf&&void 0!==e.jf&&requestAnimationFrame(function(){if(!0===e.uncollapse||"true"===e.uncollapse){var t=RVS.F.closestClass(e.jf,"form_collector"),i=RVS.C.theRightToolbar[0].querySelectorAll(".form_collector .formcontainer");if("form_collector_layerlist"!==t.id)for(var a in i){if(!i.hasOwnProperty(a)||"form_layerlist"===i[a].id||null==i[a].offsetParent)continue;i[a].classList.add("collapsed")}e.jf.classList.remove("collapsed")}if(void 0!==e.jf.dataset.unselect){var o=document.querySelectorAll(e.jf.dataset.unselect);for(var r in o)o.hasOwnProperty(r)&&o[r].classList.remove("selected")}if(void 0!==e.jf.dataset.select){o=document.querySelectorAll(e.jf.dataset.select);for(var r in o)o.hasOwnProperty(r)&&o[r].classList.add("selected")}RVS.DOC.trigger("scrollUpdates")})},RVS.F.showForms=function(e,t){var i=e.split(":");for(var a 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"),i[0].indexOf("*navlayout*")>=0&&"navlayout"!==RVS.S.vWmode&&(RVS.F.mainMode({mode:"navlayout"}),RVS.eMode.top="navigation"),i[0].indexOf("*slidelayout*")>=0&&"slidelayout"!==RVS.S.vWmode&&(RVS.F.mainMode({mode:"slidelayout"}),RVS.eMode.top="slide"),i[0].indexOf("*mode__slidestyle*")>=0&&(RVS.DOC.trigger("changeToSlideMode"),RVS.eMode.top="slide"),i[0].indexOf("*mode__slidecontent*")>=0&&(RVS.DOC.trigger("changeToLayerMode"),RVS.eMode.top="layer"),i)i.hasOwnProperty(a)&&(i[a]=i[a].replace("*sliderlayout*",""),i[a]=i[a].replace("*navlayout*",""),i[a]=i[a].replace("*slidelayout*",""),i[a]=i[a].replace("*mode__slidestyle*",""),i[a]=i[a].replace("*mode__slidecontent*",""));if(""!==i[0]&&(RVS.eMode.menu=i[0]),void 0!==RVS.S.sliderInputFieldsInitialised||"static"!==window.lastSlideSettingForm&&("slider"!==RVS.eMode.top&&""!==RVS.eMode.top||"#form_module_title"==RVS.eMode.menu)&&"navigation"!==RVS.eMode.top||""===RVS.eMode.menu||RVS.F.updateSliderInputFields(!0),void 0===RVS.S.layerInputFieldsInitialised&&"layer"===RVS.eMode.top&&RVS.F.updateLayerInputFields(!0),void 0===RVS.S.slideInputFieldsInitialised&&"slide"===RVS.eMode.top&&RVS.F.updateSlideInputFields(!0),void 0!==i[0]&&i[0].length>0&&RVS.F.updateFormPositions({jf:document.querySelector(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&&void 0!==RVS.L[RVS.selLayers[0]]&&"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&&void 0!==RVS.L[RVS.selLayers[0]]&&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(){var e="slider"===RVS.eMode.top?document.querySelector(".general_submodule_trigger.selected .gso_title"):"navigation"===RVS.eMode.top?document.querySelector(".nav_submodule_trigger.selected .gso_title"):"slide"===RVS.eMode.top?document.querySelector(".slide_submodule_trigger.selected .gso_title"):document.querySelector(".layer_submodule_trigger.selected .gso_title");null!==e&&(RVS.eMode.stickyLeft.textContent=e.textContent,RVS.eMode.stickyLeft.classList.remove("purple"),void 0!==e.dataset.stickycolor&&"purple"===e.dataset.stickycolor&&RVS.eMode.stickyLeft.classList.add("purple")),RVS.eMode.stickyRight.innerHTML=RVS_LANG["sticky_"+RVS.eMode.top]},50)},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.classList.remove("mode__sliderlayout"),RVS.C.vW.classList.remove("mode__slidelayout"),RVS.C.vW.classList.remove("mode__navlayout"),RVS.S.vWmode=e.mode,!0!==e.ignoreReDraw&&RVS.DOC.trigger("beforeLayoutModeChange"),e.mode){case"navlayout":RVS.C.vW.classList.add("mode__navlayout"),RVS.F.redrawAllNavigationContainer();break;case"sliderlayout":RVS.C.vW.classList.add("mode__sliderlayout"),RVS.F.redrawAllNavigationContainer();break;case"slidelayout":RVS.C.vW.classList.add("mode__slidelayout"),void 0!==e.slide?RVS.F.setSlideFocus({slideid:e.slide,ignoreUpdateFields:e.ignoreUpdateFields}):RVS.F.updateAllHTMLLayerPositions()}e.set&&void 0!==e.forms&&RVS.F.openSettings({forms:e.forms,uncollapse:e.uncollapse})},RVS.F.setInputTo=function(e){var t=document.getElementById(e.field.replace("#",""));RVS.F.updateEasyInput({el:t,nval:e.val,path:e.path}),"checkbox"===t.type&&RVS.F.turnOnOffVisUpdate({input:t}),t.dispatchEvent(new Event("change",{bubbles:!0}))},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+'"]').prop("disabled",!1),void 0!==e.disableValue&&e.select.find('option[value="'+e.disableValue+'"]').prop("disabled","disabled"),void 0!==e.selectValue&&(e.select[0].value=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.prop("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 i=t.parentNode;i.lastChild==t?i.appendChild(e):i.insertBefore(e,t.nextSibling)},RVS.F.prepareOneInputWithPresets=function(e){if(-1==e.parentNode.className.indexOf("input_presets_wrap")){var t=document.createElement("div");t.className="input_presets_wrap",t=e.parentNode.insertBefore(t,e);var i='<i class="material-icons input_presets_dropdown">more_vert</i><div class="input_presets">',a=e.dataset.presets_val.split("!"),o=e.dataset.presets_text.split("!"),r="";for(var s in o)o.hasOwnProperty(s)&&(r=o[s].indexOf("$$")>=0?"ipwborder":"",o[s]=o[s].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">border_inner</i>').replace("$SR$",'<i class="material-icons">border_left</i>').replace("$SB$",'<i class="material-icons">border_top</i>').replace("$ST$",'<i class="material-icons">border_bottom</i>').replace("$SL$",'<i class="material-icons">border_right</i>').replace("$BH$",'<i class="material-icons">border_horizontal</i>').replace("$BV$",'<i class="material-icons">border_vertical</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("$CA$",'<i class="material-icons">compare_arrows</i>').replace("$CY$",'<i class="material-icons">import_export</i>'),i+='<div class="input_preset '+r+'" data-iid="'+e.id+'" data-r="'+e.dataset.r+'" data-val="'+a[s]+'">'+o[s]+"</div>");i+="</div>",t.innerHTML+=i,t.appendChild(e)}},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===(d=void 0===d?{}:d)[e.ctype]?(d[e.ctype]=[],RVS.F.ajaxRequest("get_list_of",{type:e.ctype},function(t){if(t.pages)for(var i in t.pages)t.pages.hasOwnProperty(i)&&d[e.ctype].push({id:i,slug:t.pages[i].slug,title:t.pages[i].title});if(t.sliders)for(var i in t.sliders)t.sliders.hasOwnProperty(i)&&d[e.ctype].push({id:i,slug:t.sliders[i].slug,title:t.sliders[i].title,type:t.sliders[i].type,subtype:t.sliders[i].subtype});if(t.posttypes)for(var i in t.posttypes)t.posttypes.hasOwnProperty(i)&&d[e.ctype].push({slug:t.posttypes[i].slug,title:t.posttypes[i].title});e.select.innerHTML=h({array:d[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=h({array:d[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 i in t.posttypes)t.posttypes.hasOwnProperty(i)&&RVS.LIB.POST_TYPES.push({slug:t.posttypes[i].slug,title:t.posttypes[i].title,tax:t.posttypes[i].tax});return e&&e(),RVS.LIB.POST_TYPES})},RVS.F.updateSelectsWithSpecialOptions=function(){if(void 0===c?c={listofselects:document.getElementsByClassName("select_of_customlist"),curindex:0}:c.curindex++,c.curindex>=c.listofselects.length)return delete c,!0;RVS.F.createSelectOptions({ctype:c.listofselects[c.curindex].dataset.ctype,select:c.listofselects[c.curindex]})},RVS.F.noGradient=function(e){return-1==e.indexOf("slide.bg.color")&&-1==e.indexOf("slider.bg.color")&&-1==e.indexOf(".progressbar.color")&&(e.indexOf(".color")>=0||e.indexOf(".borderColor")>=0||e.indexOf(".strokeColor")>=0)},RVS.DOC.on("RSCOLOR.OPEN",function(e,t){if(jQuery.rsColorPickerApi.hideGlobal(),null!=t&&void 0!==t.currentInput&&void 0!==t.currentInput[0]){var i=t.currentInput[0].className.indexOf("layerinput")>=0?"layer":t.currentInput[0].className.indexOf("sliderinput")>=0?"slider":t.currentInput[0].className.indexOf("navstyleinput")>=0?"navstyle":t.currentInput[0].className.indexOf("slideinput")>=0?"slide":"na";if("na"!==i&&void 0!==t.currentInput[0].dataset.r){var a=RVS.F.getConcVals(t.currentInput[0].dataset.r,RVS.screen),o=[];switch(a=a.replace("slider.",""),i){case"layer":for(var r in RVS.selLayers)RVS.selLayers.hasOwnProperty(r)&&o.push({inpname:t.currentInput[0].name,r:RVS.S.slideId+".layers."+RVS.selLayers[r]+"."+a,layer:RVS.selLayers[r],slide:RVS.S.slideId,type:"layer"});break;case"slide":o.push({inpname:t.currentInput[0].name,r:RVS.S.slideId+".slide."+a,slide:RVS.S.slideId,type:"slide"});break;case"slider":o.push({inpname:t.currentInput[0].name,r:"settings."+a,type:"slider"});break;case"navstyle":o.push({inpname:t.currentInput[0].name,r:a,type:"navstyle",evtparam:t.currentInput[0].dataset.evtparam})}RVS.F.checkGlobalSkinAvail(),jQuery.rsColorPickerApi.showGlobal(t,RVS.SLIDER.settings.skins.colors,o)}}}),RVS.DOC.on("click","#edit_skin_colors",function(){jQuery.rsColorPickerApi.closeColorPicker(),RVS.F.openColorSkinApi()}),RVS.F.checkGlobalSkinAvail=function(){for(var e in RVS.SLIDER.settings.skins.colors)if(RVS.SLIDER.settings.skins.colors.hasOwnProperty(e)){var t=[];for(var i in RVS.SLIDER.settings.skins.colors[e].ref)if(RVS.SLIDER.settings.skins.colors[e].ref.hasOwnProperty(i)){var a=RVS.SLIDER.settings.skins.colors[e].ref[i];void 0!==a.slide&&void 0===RVS.SLIDER[a.slide]||(void 0===a.layer||void 0!==RVS.SLIDER[a.slide]&&void 0!==RVS.SLIDER[a.slide].layers&&void 0!==RVS.SLIDER[a.slide].layers[a.layer])&&t.push(a)}RVS.SLIDER.settings.skins.colors[e].ref=t}},RVS.F.initTpColorBoxes=function(e){jQuery(e).rsColorPicker({init:function(e,t,i,a){var o=document.createElement("input");o.type="text",o.className="layerinput",e[0].appendChild(o),t.data("ghost",o)},onRefresh:function(e,t,i,a){e.data("ghost").value=t},onEdit:function(e,t,i,a){e.data("ghost").value=t;var o=void 0!==i&&void 0!==a&&-1!==a&&void 0!==i[a]?i[a]:void 0;void 0!==o&&(o.v=t),RVS.DOC.trigger("coloredit",[e,t,void 0,void 0,void 0!==o?o:e[0].className.indexOf("skininput")>0?RVS.SLIDER.settings.skins.colors[e[0].dataset.evtparam]:void 0])},change:function(e,t,i,a,o){e.data("ghost").value=t;var r,s=void 0!==a?a:e[0].className.indexOf("skininput")>0?jQuery.extend(!0,{},RVS.SLIDER.settings.skins.colors):void 0,n=!1;if(void 0!==s){var l=-1==o||void 0===o?e[0].dataset.evtparam:o;void 0!==s[l]&&(s[l].v=t),RVS.F.openBackupGroup({id:"colorchange",txt:void 0!==s[l]?s[l].alias+" Skin Change":(r=e[0].name,("layerTextColorHover"===r?"Layer  Hover Color":"layerTextColor"===r?"Layer Color":"layerTextColorInFrame"===r?"Layer  Color in Frame":"frameColorAnimation"===r?"Layer Color Animation":"frameBGColorAnimation"===r?"Frame BG Color Animation":"frameBGColorAnimationDouble"===r?"Frame BG Color Animation":"layerBGColor"===r?"Layer Background Color":"layerBorderColor"===r?"Layer Border Color":"layerSVGColor"===r?"SVG Color":"layerStrokeColor"===r?"Stroke Color":"slide_bg_color"===r?"Slide Background Color":"sliderprogresscolor"===r?"Progress Bar Color":"sliderTabBgColor"===r?"Tab Wrap Color":"sliderThumbBgColor"===r?"Thumbnails BG Color":"sliderbgcolor"===r?"Slider Bakground Color":"Color Change")+" "),icon:"style"}),n=!0,RVS.F.updateSliderObj({path:"settings.skins.colors",val:jQuery.extend(!0,{},void 0===a?s:a)}),s=s[l]}RVS.DOC.trigger("coloredit",[e,t,i,!0,s]),(void 0!==s||n)&&setTimeout(function(){RVS.F.closeBackupGroup({id:"colorchange"})},500)},cancel:function(e,t,i,a,o){e.data("ghost").value=t;var r=void 0!==a&&void 0!==o&&-1!==o&&void 0!==a[o]?a[o]:void 0;void 0!==r&&(r.v=t),RVS.DOC.trigger("colorcancel",[e,t,void 0,void 0,void 0!==r?r:e[0].className.indexOf("skininput")>0?RVS.SLIDER.settings.skins.colors[e[0].dataset.evtparam]:void 0])}})},RVS.F.createWPMLOptions=function(e){var t="";if("undefined"!=typeof RS_WPML_LANGS&&void 0!==RS_WPML_LANGS){for(var i in RS_WPML_LANGS)RS_WPML_LANGS.hasOwnProperty(i)&&(t+='<option value="'+i+'" data-src="'+RS_WPML_LANGS[i].image+'" data-select2RS-id="'+i+'">'+RS_WPML_LANGS[i].title+"</option>");e.innerHTML=t}},RVS.F.convertEase=function(e){return e=(e="none"===(e=void 0===e?"power2.inOut":e)?"none":"slow"===e?"slow":e.replace("easeIn","in").replace("easeOut","out").replace("easeInOut","inOut")).indexOf(".")>=0?e.charAt(0).toLowerCase()+e.slice(1):e},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="none">none</option>',a+='<option value="power0.in">power0.in</option>',a+='<option value="power0.inOut">power0.inOut</option>',a+='<option value="power0.out">power0.out</option>',a+='<option value="power1.in">power1.in</option>',a+='<option value="power1.inOut">power1.inOut</option>',a+='<option value="power1.out">power1.out</option>',a+='<option value="power2.in">power2.in</option>',a+='<option value="power2.inOut">power2.inOut</option>',a+='<option value="power2.out">power2.out</option>',a+='<option value="power3.in">power3.in</option>',a+='<option value="power3.inOut">power3.inOut</option>',a+='<option value="power3.out">power3.out</option>',a+='<option value="power4.in">power4.in</option>',a+='<option value="power4.inOut">power4.inOut</option>',a+='<option value="power4.out">power4.out</option>',a+='<option value="back.in">back.in</option>',a+='<option value="back.inOut">back.inOut</option>',a+='<option value="back.out">back.out</option>',a+='<option value="bounce.in">bounce.in</option>',a+='<option value="bounce.inOut">bounce.inOut</option>',a+='<option value="bounce.out">bounce.out</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.in">circ.in</option>',a+='<option value="circ.inOut">circ.inOut</option>',a+='<option value="circ.out">circ.out</option>',a+='<option value="elastic.in">elastic.in</option>',a+='<option value="elastic.inOut">elastic.inOut</option>',a+='<option value="elastic.out">elastic.out</option>',a+='<option value="expo.in">expo.in</option>',a+='<option value="expo.inOut">expo.inOut</option>',a+='<option value="expo.out">expo.out</option>',a+='<option value="sine.in">sine.in</option>',a+='<option value="sine.inOut">sine.inOut</option>',a+='<option value="sine.out">sine.out</option>',a+='<option value="slow">slow</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>'),void 0!==e.dataset&&"true"==e.dataset.inherit&&(a+='<option value="inherit">Inherit</option>'),e.innerHTML=a},RVS.F.createSlideAnimOptions=function(t){if(t=void 0===t.innerHTML?t[0]:t,void 0===e||""===e)for(var i in RVS.LIB.SLTR)if(RVS.LIB.SLTR.hasOwnProperty(i)&&"random"!==i&&"custom"!==i)for(var a in RVS.LIB.SLTR[i])if(RVS.LIB.SLTR[i].hasOwnProperty(a)&&"icon"!=a){for(var o in e+='<optgroup label="'+(void 0===RVS_LANG["sltr_"+i]?i:RVS_LANG["sltr_"+i])+" "+(void 0===RVS_LANG["sltr_"+a]?a:RVS_LANG["sltr_"+a])+'">',RVS.LIB.SLTR[i][a])e+='<option value="'+o+'">'+(void 0===RVS_LANG["sltr_"+i]?"":RVS_LANG["sltr_"+i]+" ")+_(RVS.LIB.SLTR[i][a][o].title)+"</option>";e+="</optgroup>"}t.innerHTML=e},RVS.F.createDottedOptions=function(e){if(e=void 0===e.innerHTML?e[0]:e,void 0===t||""===t){t+='<option value="none">No Overlay</option>';for(var i=1;i<17;i++)t+='<option value="'+i+'">'+RVS_LANG["dov_"+i]+"</option>"}e.innerHTML=t},RVS.F.createSliderListOptions=function(e){if(e=void 0===e.innerHTML?e[0]:e,void 0===i||""===i)for(var t in i="",RVS.LIB.SLIDERS)RVS.LIB.SLIDERS.hasOwnProperty(t)&&(i+='<option value="'+RVS.LIB.SLIDERS[t].alias+'">'+RVS.LIB.SLIDERS[t].title+"</option>");e.innerHTML=i},RVS.F.initialiseGlobalBoxes=function(e){jQuery(".tos2.slideAnimSelect").each(function(){RVS.F.createSlideAnimOptions(this)}),jQuery(".tos2.dottedoverlay").each(function(){RVS.F.createDottedOptions(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)}),"overview"===e&&(jQuery(".tos2.wpml_lang_selector").select2RS({minimumResultsForSearch:"Infinity",placeholder:"Select From List",templateResult:b}),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("#tl_gridmanagement_wrap .tos2.nosearchbox").select2RS({minimumResultsForSearch:"Infinity",placeholder:"Select From List"}),RVS.DOC.on("click","#add_on_management",function(){void 0!==RVS.ENV.newAddonsCounter&&(RVS.ENV.newAddonsCounter.style.display="none"),RVS.F.openAddonModal()}),RVS.DOC.on("openAddonModal",RVS.F.openAddonModal)},RVS.F.updateZoom=function(e){RVS.zoom=e<100?Math.round(100*(.5+.5*e/100))/100:Math.round(100*(1+1*(e-100)/100))/100,tpGS.gsap.set(RVS.C.UL,{scaleX:RVS.zoom,scaleY:RVS.zoom,transformOrigin:"0px 0px"}),RVS.C.zoomFactor.textContent=Math.round(100*RVS.zoom)+"%",RVS.F.updateContentDeltas(),RVS.F.buildRuler(!0),RVS.F.setRulers()},RVS.F.initialiseInputBoxes=function(e){if(RVS.DOC.on("gethtml5posterimage",function(e,t){RVS.F.videoExtract.get("slide"===t?RVS.SLIDER[RVS.S.slideId].slide.bg.mpeg:document.getElementById("layer_mpeg_src").value,function(e,t){RVS.F.setBGPosterImage(e.path,e.id,t)},"slide"===t?RVS.SLIDER[RVS.S.slideId].slide.bg.video.startAt:document.getElementById("layer_video_start").value,t)}),"overview"!==e&&(RVS.C.zoomTopWrap=document.getElementById("zoomer_wrap_toolbar"),RVS.C.zoomFactor=document.getElementById("zoomer_factor"),RVS.C.zoomPin=document.getElementById("ezoomer_pin"),jQuery(RVS.C.zoomPin).resizable({handles:"e",minWidth:"none",grid:[10,1],containment:"parent",start:function(){RVS.C.zoomTopWrap.classList.add("inzoommove")},stop:function(){RVS.C.zoomTopWrap.classList.remove("inzoommove")},resize:function(e,t){t.size.width<0&&(t.size.width=0),RVS.F.updateZoom(t.size.width)}}),RVS.DOC.on("click","#zoomer_wrap_toolbar .selected_placeholder",function(){RVS.F.updateZoom(100),RVS.C.zoomPin.style.width="100px"})),RVS.F.initialiseGlobalBoxes(e),RVS.F.initTpColorBoxes(".my-color-field"),RVS.F.initPreDrops(),RVS.F.initInputsWithPresets(),RVS.DOC.on("keyup focus change",".livechange",function(e){var t=this.dataset;RVS.S.inputField=this.id,RVS.S.inputFieldCursorAt=this.selectionStart,void 0!==t&&void 0!==t.evt&&jQuery(document.body).trigger(t.evt,{event:e,val:this.value,eventparam:t.evtparam})}),RVS.DOC.on("active focus"," .rsdyn_inp",function(e){var t=RVS.F.closestNode(this,"ROW"),i=RVS.F.closestClass(this,"dyn_inp_wrap");null!=t&&t.classList.add("active_"+i.tagName.toLowerCase())}),RVS.DOC.on("blur"," .rsdyn_inp",function(e){var t=RVS.F.closestNode(this,"ROW");null!=t&&(t.classList.remove("active_onelong"),t.classList.remove("active_oneshort"))}),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){"ta_layertext"===e.target.id&&RVS.F.redrawEditedTextLayerwhenPlaceholder(),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("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.trigger("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:this.dataset.ref,val:!1}):RVS.F.setInputTo({field:this.dataset.ref,val:!0})}),RVS.DOC.on("click",".triggerEvent",function(e){var t=this.dataset;jQuery(document.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",RVS.F.showHideGroups({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(document.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 t=new RSClipboard(".copyclipboard");t.on("success",function(e){tpGS.gsap.fromTo(jQuery(e.trigger),.4,{autoAlpha:0},{autoAlpha:1,ease:"power3.inOut"})}),t.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.DOC.on("keydown",".valueduekeyboard",function(e,t){var i=e.keyCode?e.keyCode:e.which,a=null!=e.currentTarget.dataset.steps?parseFloat(e.currentTarget.dataset.steps):1,o=null!=e.currentTarget.dataset.min?e.currentTarget.dataset.min:-99999,r=null!=e.currentTarget.dataset.max?e.currentTarget.dataset.max:99999,s=parseFloat(e.currentTarget.value)||0;switch(e.shiftKey&&(a*=10),i){case 38:e.currentTarget.value=Math.min(s+a,r),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-a,o),e.currentTarget.value!==Math.round(e.currentTarget.value)&&(e.currentTarget.value=Math.round(100*e.currentTarget.value)/100)}38!==i&&40!==i||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("click","#timline_process",function(){RVS.F.toggleTimeLine()}),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")),!0!==RVS.S.ovMode&&"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(),i=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}),void 0!==t.lib&&RVS.F.updateLayerObj({path:t.lib,val:""})):(RVS.F.updateSliderObj({path:t.r,val:t.default,evt:t.evt,evtparam:t.evtparam}),void 0!==t.lib&&RVS.F.updateSliderObj({path:t.lib,val:""})):(void 0!==i&&(i.val(t.default),i.trigger("change")),void 0!==t.evt&&RVS.DOC.trigger(t.evt,t.evtparam))}),RVS.DOC.on("getNewImageSize",function(e,t){if(void 0!==t){var i=t.split(".");if("slidebg"!==i[0]&&"slider"!==i[0]&&RVS.selLayers.length<=0)return;var a="slidebg"===i[0]?{r:"#slide#.slide.bg.image",rid:"#slide#.slide.bg.imageId",lib:"#slide#.slide.bg.imageLib",targetType:"slide",evt:"updateslidebasic",size:RVS.SLIDER[RVS.S.slideId].slide.bg.imageSourceType,url:RVS.SLIDER[RVS.S.slideId].slide.bg.image,id:RVS.SLIDER[RVS.S.slideId].slide.bg.imageId}:"slider"===i[0]?{r:"settings.layout.bg.image",rid:"settings.layout.bg.imageId",lib:"settings.layout.bg.imageLib",targetType:"slide",evt:"sliderBGUpdate",size:RVS.SLIDER.settings.layout.bg.imageSourceType,url:RVS.SLIDER.settings.layout.bg.image,id:RVS.SLIDER.settings.layout.bg.imageId}:{lib:"media.imageLib",targetType:"layer",evt:"updatelayerimagesrc",size:RVS.L[RVS.selLayers[0]].behavior.imageSourceType};switch(i[0]){case"slider":break;case"slidebg":a.evtparam="object"===i[1]?"double":"kenburnupdate";break;case"image":case"poster":a.rid="media."+i[0]+"Id",a.r="media."+i[0]+"Url",a.url=RVS.L[RVS.selLayers[0]].media[i[0]+"Url"],a.id=RVS.L[RVS.selLayers[0]].media[i[0]+"Id"];break;case"bg":a.rid="idle.backgroundImageId",a.r="idle.backgroundImage",a.lib="idle.bgimagelib",a.evt="updatelayerbgimage",a.url=RVS.L[RVS.selLayers[0]].idle.backgroundImage,a.id=RVS.L[RVS.selLayers[0]].idle.backgroundImageId}switch(i[1]){case"media":RVS.F.getMediaWithNewSize(a);break;case"object":RVS.F.getObjectWithNewSize(a)}}}),RVS.DOC.on("click",".removePosterImage",function(){var e=jQuery(this),t=e.data(),i=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"}),void 0!==t.rid&&RVS.F.updateLayerObj({path:t.rid,val:""}),void 0!==t.lib&&RVS.F.updateLayerObj({path:t.lib,val:"nothing"}),RVS.F.updateLayerObj({path:t.r,val:"",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.rid&&RVS.F.updateSliderObj({path:t.rid,val:""}),void 0!==t.lib&&RVS.F.updateSliderObj({path:t.lib,val:"nothing"}),RVS.F.updateSliderObj({path:t.r,val:"",evt:t.evt,evtparam:t.evtparam}),RVS.F.closeBackupGroup({id:"UpdateSlideImage"}),RVS.F.updateEasyInputs({container:jQuery("#form_slidebg_source"),path:RVS.S.slideId+".slide.",trigger:"init"})):(void 0!==i&&(i.val(""),i.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),i=this.className.indexOf("layerinput")>=0;RVS.F.openAddVideoDialog(RVS_LANG.choose_video,function(a,o){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:o}),RVS.F.updateSliderObj({path:e.r,val:a,evt:e.evt,evtparam:e.evtparam}),RVS.F.closeBackupGroup({id:"updateVideo"})):(void 0!==t&&(t.val(a),RVS.F.openBackupGroup({id:"updateVideo",txt:"Update Video from Media Library",icon:"videocam"}),t.trigger("change"),void 0===e.rid||i||RVS.F.updateSliderObj({path:e.rid,val:o}),RVS.selLayers.length>0&&i&&(RVS.F.updateLayerObj({path:"media.mediaType",val:void 0!==e.mediatype?e.mediatype:"html5"}),void 0!==e.rid&&i&&RVS.F.updateLayerObj({path:e.rid,val:o}),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":e.hasClass("sliderinput")?"slider":"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.imageLib",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})):"slide"===t.targetType?(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.imageLib",val:"objectlibrary"}),RVS.F.updateSliderObj({path:RVS.S.slideId+".slide.bg.mpeg",val:t.video,evt:t.evt,evtparam:t.evtparam}),RVS.F.closeBackupGroup({id:"videofromobjlibrary"}),RVS.F.updateEasyInputs({container:jQuery(".slide_settings_collector"),path:RVS.S.slideId+".slide.",trigger:"init"})):(RVS.F.openBackupGroup({id:"videofromobjlibrary",txt:"Video from OBJ Library",icon:"videocam",lastkey:"mp4Url"}),RVS.F.updateSliderObj({path:"settings."+t.r+".image",val:t.img}),RVS.F.updateSliderObj({path:"settings."+t.r+".imageId",val:void 0}),RVS.F.updateSliderObj({path:"settings."+t.r+".imageLib",val:"objectlibrary"}),RVS.F.updateSliderObj({path:"settings."+t.r+".mpeg",val:t.video,evt:t.evt,evtparam:t.evtparam}),RVS.F.closeBackupGroup({id:"videofromobjlibrary"}),RVS.F.updateEasyInputs({container:jQuery(".slide_settings_collector"),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",".getImageFromMediaLibrary",function(){var e=jQuery(this),t=e.data(),i="true"===this.dataset.multiple||1==this.dataset.multiple;t.targetType=e.hasClass("layerinput")?"layer":"slide",RVS.F.openAddImageDialog(RVS_LANG.choose_image,function(e,i){RVS.F.updateImageSrcFromMedia(t,e,i)},i)}),RVS.F.getMediaWithNewSize=function(e){jQuery(e.target);RVS.F.ajaxRequest("load_wordpress_image",{type:e.size,id:e.id},function(t){RVS.F.updateImageSrcFromMedia(e,t.url,e.id)},!1)},RVS.F.updateImageSrcFromMedia=function(e,t,i){if(void 0!==e.r)t=t.split(" ").join("%20"),"layer"===e.targetType?(RVS.F.openBackupGroup({id:"UpdateLayerImage",txt:"Update Layer Image",icon:"photo"}),void 0!==e.lib&&RVS.F.updateLayerObj({path:e.lib,val:"medialibrary"}),void 0!==e.rid&&RVS.F.updateLayerObj({path:e.rid,val:i}),void 0!==e.sty&&RVS.F.updateLayerObj({path:e.sty,val:"full"}),RVS.F.updateLayerObj({path:e.r,val:t,evt:e.evt,evtparam:e.evtparam}),RVS.F.closeBackupGroup({id:"UpdateLayerImage"})):(RVS.F.openBackupGroup({id:"UpdateSlideImage",txt:"Update Slide Image",icon:"photo"}),void 0!==e.lib&&RVS.F.updateSliderObj({path:e.lib,val:"medialibrary"}),void 0!==e.rid&&RVS.F.updateSliderObj({path:e.rid,val:i}),void 0!==e.sty&&RVS.F.updateSliderObj({path:e.sty,val:"full"}),RVS.F.updateSliderObj({path:e.r,val:t,evt:e.evt,evtparam:e.evtparam}),RVS.F.closeBackupGroup({id:"UpdateSlideImage"}),RVS.F.updateEasyInputs({container:jQuery("#form_slidebg_source"),path:RVS.S.slideId+".slide.",trigger:"init"}));else{if(void 0!==e.target&&""!==e.target){var a=jQuery(e.target);a.val(t),a.trigger("change")}e.evtparam=void 0===e.evtparam?{}:e.evtparam,e.evtparam.urlImage=t,void 0!==e.evt&&RVS.DOC.trigger(e.evt,e.evtparam)}},RVS.F.getObjectWithNewSize=function(e){RVS.F.ajaxRequest("load_library_object",{type:e.size,id:e.url},function(t){t.success&&(e.img=t.url,RVS.DOC.trigger("updateImageSrcFromLibrary",e))})},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("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.sty&&RVS.F.updateLayerObj({path:t.sty,val:t.size}),void 0!==t.rid&&RVS.F.updateLayerObj({path:t.rid,val:"objectlibrary"}),void 0!==t.lib&&RVS.F.updateLayerObj({path:t.lib,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(r) Image",icon:"photo"}),void 0!==t.rid&&RVS.F.updateSliderObj({path:t.rid,val:"objectlibrary"}),void 0!==t.sty&&RVS.F.updateSliderObj({path:t.sty,val:t.size}),void 0!==t.lib&&RVS.F.updateSliderObj({path:t.lib,val:"objectlibrary"}),RVS.F.updateSliderObj({path:t.r,val:t.img,evt:t.evt,evtparam:t.evtparam}),RVS.F.closeBackupGroup({id:"UpdateSlideImage"}),RVS.F.updateEasyInputs({container:jQuery("#form_slidebg_source"),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",".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.imageLib",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("click",".getImageFromYouTube",function(){var e=jQuery(this).data(),t=jQuery(e.target),i="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:i,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(i),t.trigger("change")),void 0!==e.evt&&RVS.DOC.trigger(e.evt,e.evtparam))});var i=jQuery(document.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 i=jQuery(e.data("target"));i.show().addClass("open"),RVS.F.updateFormPositions({jf:RVS.F.closestClass(e[0],"formcontainer"),uncollapse:!0}),void 0!==i.data("evt")&&RVS.DOC.trigger(i.data("evt"),i.data("evtparam"))});i.on("click",".form_intoaccordion",function(){var e=jQuery(this),t=e.closest(".form_inner"),i=e.closest(".formcontainer");if(t.length>0&&t.hasClass("open")||0===t.length&&!i.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")).trigger("click"),e.closest(".formcontainer").removeClass("collapsed"),RVS.DOC.trigger("scrollUpdates"),RVS.DOC.trigger("accordionaction")}(e)}),i.on("mouseenter",".form_intoaccordion",function(){this.parentNode.dataset.hovered="on"}),i.on("mouseleave",".form_intoaccordion",function(){this.parentNode.dataset.hovered="off"}),i.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")}),i.on("click",".navaligntrigger",function(){var e=jQuery(this).data(),t=e.select.split(","),i=e.val.split(",");for(var a in RVS.F.openBackupGroup({id:"NavigationAlign",txt:e.type+" Align",icon:"navigation",lastkey:"navigation"}),RVS.F.ignoreEventsOpen(),t)if(t.hasOwnProperty(a)){var o=jQuery(t[a]);void 0!==o&&o.length>0&&(i.length>0?o.val(i[a]):o.val(i[0]),o.trigger("change"))}RVS.F.ignoreEventsClose(),RVS.F.closeBackupGroup({id:"NavigationAlign"}),RVS.DOC.trigger("sliderNavPositionUpdate",e.type)}),i.on("click",".progressbar_selector",function(){var e=jQuery(this).data(),t=e.select.split(","),i=e.val.split(",");for(var a in RVS.F.openBackupGroup({id:"progressbar_selector",txt:e.type+" Align",icon:"navigation",lastkey:"navigation"}),RVS.F.ignoreEventsOpen(),t)if(t.hasOwnProperty(a)){var o=jQuery(t[a]);void 0!==o&&o.length>0&&(i.length>0?o.val(i[a]):o.val(i[0]),o.trigger("change"))}RVS.F.ignoreEventsClose(),RVS.F.closeBackupGroup({id:"progressbar_selector"}),RVS.DOC.trigger("sliderProgressUpdate",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 o 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(o)){var r=RVS.ENV.img_sizes[o].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(Array.isArray(e.postTypes)||(e.postTypes=e.postTypes.split(",")),!Array.isArray(e.postTypes)){var t=[];t.push(e.postTypes),e.postTypes=t}var i="";for(var a in e.postTypes)if(e.postTypes.hasOwnProperty(a)){var o=RVS.LIB.POST_TYPES_CAT[e.postTypes[a]];for(var r in o)o.hasOwnProperty(r)&&(i+="<option "+(r.indexOf("option_disabled")>=0?"disabled":"")+' value="'+r+'">'+o[r]+"</option>")}e.categories[0].innerHTML=i,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,i="";for(var a in i+='<span class="int_inher_title">'+RVS_LANG.intinheriting+"</span>",RVS.V.sizes)RVS.V.sizes.hasOwnProperty(a)&&RVS.V.sizes[a]!==RVS.screen&&RVS.SLIDER.settings.size.custom[RVS.V.sizes[a]]&&(i+='<div style="white-space:nowrap">',i+='<i class="material-icons">',i+="d"==RVS.V.sizes[a]?"desktop_mac":"n"==RVS.V.sizes[a]?"laptop":"t"==RVS.V.sizes[a]?"tablet_android":"phone_iphone",i+="</i>",i+='<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[a]})+"</span>",i+="</div>",t++);if(t>0){RVS.S.respInfoBar.toolbar[0].style.display="block",RVS.S.respInfoBar.toolbar[0].innerHTML=i;var o=RVS.S.respInfoBar.field.offset();RVS.S.respInfoBar.toolbar.width();tpGS.gsap.set(RVS.S.respInfoBar.toolbar,{top:o.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,p)){(p=void 0===p?[]:p).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:""}),tpGS.gsap.fromTo(jQuery(e.trigger),.4,{autoAlpha:0},{autoAlpha:1,ease:"power3.inOut"})}),t.on("error",function(e){(e=jQuery(e.trigger)).addClass("errorcopy"),setTimeout(function(){e.removeClass("errorcopy")},400)})}},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,i=jQuery(e.el),a=t.states.split(",");t.state=void 0!==e.state?e.state:t.state===a[0]?a[1]:a[0],i.find(".switch_button_state").html(t[t.state+"_state"]),i.find(".switch_button_icon").html(t[t.state+"_icon"]),void 0!==e.callEvent&&RVS.DOC.trigger(t[t.state])}},RVS.F.getPresetIcon=function(e){var t='<i class="material-icons preset_help_icon">';return e.replace("*",t).replace("*","</i>").replace("*",t).replace("*","</i>").replace("*",t).replace("*","</i>")},RVS.F.isOnList=function(e,t){if(void 0===e)return!1;if(Array.isArray(e))return jQuery.inArray(t,e)>=0;if(void 0!==e[t])return!0;var i=!1;for(var a in e)e.hasOwnProperty(a)&&!1===i&&(i=e[a]===t||i);return i},RVS.F.showHidePresetFavorits=function(e,t){var i,a=RVS.S.allPresets[t];if(void 0!==a&&null!=e&&(Array.isArray(e)||"object"==typeof e)&&0!==e.length){var o={},r={};for(var s in a)if(a.hasOwnProperty(s)&&"object"==typeof a[s])for(var n in void 0===o[s]&&(o[s]={show:!1,id:a[s].id}),a[s])if(a[s].hasOwnProperty(n)&&"object"==typeof a[s][n])for(var l in void 0===r[s+"_"+n]&&(r[s+"_"+n]={show:!1,id:a[s][n].id}),a[s][n].groups)a[s][n].groups.hasOwnProperty(l)&&null!=(i=document.getElementById(a[s][n].groups[l].id))&&(RVS.F.isOnList(e,l)?(o[s].show=!0,r[s+"_"+n].show=!0,i.classList.add("prs_is_favorit")):i.classList.remove("prs_is_favorit"));for(var d in o)null!=(i=document.getElementById(o[d].id))&&(o[d].show?i.classList.add("prs_is_favorit"):i.classList.remove("prs_is_favorit"));for(var d in r)null!=(i=document.getElementById(r[d].id))&&(r[d].show?i.classList.add("prs_is_favorit"):i.classList.remove("prs_is_favorit"))}},RVS.F.createPresets=function(e){e.groupid=void 0===e.groupid?"preset_list_"+Math.round(1e5*Math.random()):e.groupid,e.groupclass=void 0===e.groupclass?"pres_list_group_"+Math.round(1e5*Math.random()):e.groupclass,e.maingrpclass=void 0===e.maingrpclass?"preslisinner_"+Math.round(1e5*Math.random()):e.maingrpclass,e.ref=void 0===e.ref?Math.round(1e5*Math.random()):e.ref,RVS.S.allPresets=void 0===RVS.S.allPresets?{}:RVS.S.allPresets,RVS.S.allPresets[e.maingrpclass]=void 0===RVS.S.allPresets[e.maingrpclass]?{}:RVS.S.allPresets[e.maingrpclass],RVS.S.allPresets[e.maingrpclass][e.ref]=void 0===RVS.S.allPresets[e.maingrpclass][e.ref]?{}:RVS.S.allPresets[e.maingrpclass][e.ref];var t='<div id="'+(void 0===e.groupid?"":e.groupid)+'" class="'+(e.modern?"modern_presets ":" ")+"presets_liste "+(void 0===e.groupclass?"":e.groupclass)+'">',i="",a=void 0===e.prefix?"":e.prefix+"_";for(var o in RVS.S.allPresets[e.maingrpclass][e.ref].id=e.groupid,t+='\t<div class="presets_liste_head" data-samemaingroups="'+(void 0!==e.maingrpclass?e.maingrpclass:"")+'" data-igroup="inner_'+(void 0===e.groupid?"":e.groupid)+'" data-samegroups="'+(void 0===e.groupclass?"":e.groupclass)+'"><i class="selected_preset material-icons">check</i>'+(e.modern?'<i class="presets_liste_icon material-icons">'+e.icon+"</i>":"")+'<span class="presets_liste_title">'+e.title+'</span><i class="right-divided-icon material-icons">arrow_drop_down</i></div>',i+='\t<div class="presets_liste_inner'+(e.modern?" modern_preset_list":"")+(void 0!==e.maingrpclass?" "+e.maingrpclass:"")+'" id="inner_'+(void 0===e.groupid?"":e.groupid)+'">',e.groups)if(e.groups.hasOwnProperty(o)&&"grp_title"!=o&&"icon"!=o&&"noSubLevel"!==o){for(var r in RVS.S.allPresets[e.maingrpclass][e.ref][o]={id:e.groupid+"_"+o,class:e.groups[o].custom||"custom"===o?"custompresetgroup ":""},i+='<div id="'+e.groupid+"_"+o+'" class="presetssgroup '+(e.groups[o].custom||"custom"===o?"custompresetgroup ":"")+" "+(""+e.groups.noSubLevel=="true"?"nosubpresetlevel ":"")+'">',i+='\t<div class="presetssgroup_head"><span class="presetssgroup_name">'+e.groups[o].title+'</span><div class="animation_drop_arrow"><i class="material-icons">arrow_drop_down</i></div></div>',i+='\t<div class="presets_listelements">',"custom"===o&&(i+='<div data-evt="'+e.customevt+'" data-key="custom" data-grpid="'+e.groupid+'" data-grp="'+o+'" class="'+a+'presetelement presets_listelement dark_btn"><span class="cla_custom_name">'+RVS_LANG.savecurrenttemplate+'</span><input type="text" value="custom" class="cla_entername"><div class="custom_layer_animation_toolbar"><i 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[o].elements)e.groups[o].elements.hasOwnProperty(r)&&(RVS.S.allPresets[e.maingrpclass][e.ref][o].groups=void 0===RVS.S.allPresets[e.maingrpclass][e.ref][o].groups?{}:RVS.S.allPresets[e.maingrpclass][e.ref][o].groups,RVS.S.allPresets[e.maingrpclass][e.ref][o].groups[r]={id:e.groupid+"_"+o+"_"+r},i+="custom"===o?'<div id="'+e.groupid+"_"+o+"_"+r+'" data-key="custom_'+a+r+'" data-grpid="'+e.groupid+'" data-main="'+e.groups[o].elements[r].main+'" data-grp="'+o+'" data-custom="true" data-evt="'+e.customevt+'" class="presets_listelement dark_btn"><span class="cla_custom_name">'+e.groups[o].elements[r].title+'</span><div class="cla_message">'+RVS_LANG.overwritetemplate+'</div><input data-evt="'+e.customevt+'" type="text" value="'+e.groups[o].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 id="'+e.groupid+"_"+o+"_"+r+'" data-key="'+a+r+'" data-grpid="'+e.groupid+'" data-main="'+e.groups[o].elements[r].main+'" data-grp="'+o+("undefined"!==e.groups[o].elements[r].rndgrp?'" data-rndgrp="'+e.groups[o].elements[r].rndgrp+'"':"")+("undefined"!==e.groups[o].elements[r].rndmain?'" data-rndmain="'+e.groups[o].elements[r].rndmain+'"':"")+' class="'+a+'presetelement presets_listelement dark_btn">'+RVS.F.getPresetIcon(e.groups[o].elements[r].title)+(void 0!==e.favoriteAjax?'<i data-key="'+a+r+'" class="material-icons preset_favorite">'+(RVS.F.isOnList(e.favoriteList,a+r)?"star":"star_outline")+"</i>":"")+"</div>");i+="\t</div>",i+="</div>"}return i+="\t</div>",void 0===RVS.S.allPresets[e.maingrpclass].clickListener&&(RVS.S.allPresets[e.maingrpclass].clickListener=!0,RVS.DOC.on("click","."+e.maingrpclass+" .presets_listelement",function(){if("custom"===this.dataset.key){var t=jQuery(this);return this.dataset.mode="create",t.addClass("cla_showentername"),t.find("input").trigger("focus").trigger("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,this.dataset.main,this.dataset.sub,this.dataset.rndgrp,this.dataset.rndmain)})),e.favoriteAjax&&void 0===RVS.S.allPresets[e.maingrpclass].favListener&&(RVS.S.allPresets[e.maingrpclass].favListener=!0,RVS.DOC.on("mouseenter","."+e.maingrpclass+" .presets_listelement",function(){this.offsetLeft<140?(this.classList.add("favleft"),this.classList.remove("favright")):(this.classList.add("favright"),this.classList.remove("favleft"))}),RVS.DOC.on("click","."+e.maingrpclass+" .preset_favorite",function(){var t=RVS.F.isOnList(e.favoriteList,this.dataset.key);if(this.innerHTML=t?"star_outline":"star",t){if(Array.isArray(e.favoriteList)){var i=jQuery.inArray(this.dataset.key,e.favoriteList);e.favoriteList.splice(i,1)}else{for(var a in e.favoriteList)e.favoriteList[a]==this.dataset.key&&(i=a);void 0!==i&&delete e.favoriteList[i]}RVS.F.showHidePresetFavorits(e.favoriteList,e.maingrpclass)}else Array.isArray(e.favoriteList)?e.favoriteList.push(this.dataset.key):e.favoriteList[this.dataset.key]=this.dataset.key;return RVS.F.ajaxRequest("set_favorite",{do:t?"remove":"add",type:e.favoriteAjax,id:this.dataset.key},function(e){e.success}),!1})),u||(RVS.DOC.on("click",".presets_liste_head",function(){var e=this.parentElement.className.indexOf("open")>=0,t=document.getElementById(this.dataset.igroup);void 0!==this.dataset.samegroups&&""!==this.dataset.samegroups&&jQuery("."+this.dataset.samegroups).removeClass("open"),void 0!==this.dataset.samemaingroups&&""!==this.dataset.samemaingroups&&jQuery("."+this.dataset.samemaingroups).removeClass("open"),e?(this.parentElement.classList.remove("open"),t.classList.remove("open")):(this.parentElement.classList.add("open"),t.classList.add("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.classList.remove("open"):this.parentElement.className+=" open"}),u=!0),e.modern?{inner:i,main:t+"</div>"}:t+i+"</div>"},RVS.F.createMetaGroups=function(e){var t=0!==jQuery("#"+e.id).length,i=t?jQuery("#"+e.id):jQuery('<div id="'+e.id+'" class="mdl_group"></div>');for(var a in e.title=void 0===RVS_LANG[e.id]?e.id:RVS_LANG[e.id],t||i.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(a)){var o=e.actions[a],r=void 0!==o.title?o.title:void 0===RVS_LANG["metadata_"+o.val]?o.val:RVS_LANG["metadata_"+o.val];o.inputs=void 0===o.inputs?"":o.inputs,o.inputs=!0===o.layerTarget?"#la_settings_layertarget"+(o.inputs.length>0?", "+o.inputs:""):o.inputs,i.append('<div data-val="'+o.val+'" id="metadata_picker_'+o.val+'" data-inputs="'+o.inputs+'" class="mdl_group_member" data-val="'+o.val+'"><i class="material-icons">'+e.icon+"</i>"+r+"</div>"),o.layerTarget&&RVS.LIB.ACTION_WITH_TRGT.push(o.val),RVS.LIB.ACTIONTYPES[o.val]={inputs:o.inputs,name:r,icon:e.icon,layerTarget:o.layerTarget,media:o.media}}t||jQuery("#layeraction_list").append(i)},RVS.F.setUnsetSelected=function(e){void 0!==e.unselect&&jQuery(e.unselect).removeClass("selected"),void 0!==e.select&&(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.split("#parentlayer#").join(RVS.L[RVS.selLayers[0]].group.puid)})||"":e.val=void 0!==e.val?e.val.split("\\").join("-").split(" ").join("-"):"",jQuery(e.select.split("*val*").join(e.val).split("*RVAL*").join(void 0!==e.rval?RVS.F.getDeepVal({path:e.rval}):"")).addClass("selected"))},RVS.F.setUnsetClass=function(e){void 0!==e.class&&void 0!==e.container&&null!==e.container&&(void 0!==e.rval&&e.rval===e.val||e.val?(e.container.classList.add(e.class),e.inversclass&&e.container.classList.remove(e.inversclass)):(e.container.classList.remove(e.class),e.inversclass&&e.container.classList.add(e.inversclass)))},RVS.F.setEnableDisable=function(e){if(void 0!==e.switch){var t="removeClass",i="addClass";void 0!==e.enable&&!1===e.val&&(t="addClass"),void 0!==e.disable&&!1===e.val&&(i="removeClass"),void 0!==e.enable&&jQuery(e.enable.split("*val*").join(e.val))[t]("disablecontainer"),void 0!==e.disable&&jQuery(e.disable.split("*val*").join(e.val))[i]("disablecontainer")}else void 0!==e.enable&&jQuery(e.enable.split("*val*").join(e.val)).removeClass("disablecontainer"),void 0!==e.disable&&jQuery(e.disable.split("*val*").join(e.val)).addClass("disablecontainer")},RVS.F.setUnAvailable=function(e){void 0!==e.available&&jQuery(e.available.split("*val*").join(e.val)).removeClass("unavailablecontainer"),void 0!==e.unavailable&&jQuery(e.unavailable.split("*val*").join(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(document.body).append(t),tpGS.gsap.fromTo(t,.4,{autoAlpha:0,scale:.9},{autoAlpha:1,scale:1,ease:"power3.inOut"})},close:function(){jQuery("#fullpageinfo").remove(),jQuery("#wpwrap").removeClass("blurred")}},RVS.F.browserDroppable={init:function(e){e.textblock='<div id="filedrop" class="'+(1==e.onlydrop?"editordrop _TPRB_":"_TPRB_")+'">',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>",!0!==e.onlydrop&&(e.textblock+='\t\t\t<div class="filedrop_line_2">'+RVS_LANG.or+"</div>"),!0!==e.onlydrop&&(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>',!0!==e.onlydrop?e.textblock+='\t\t\t<div class="filedrop_line_1">'+RVS_LANG.releaseToUpload+"</div>":e.textblock+='\t\t\t<div class="filedrop_line_1">'+RVS_LANG.releaseToAddLayer+"</div>",!0!==e.onlydrop&&(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>",RVS.fileDrop=jQuery(e.textblock),RVS.fileDropForm=RVS.fileDrop.find("#filedrop_zone"),tpGS.gsap.fromTo(RVS.fileDrop,.3,{autoAlpha:0,scale:.9},{zIndex:5e6,autoAlpha:1,scale:1,ease:"power3.inOut"}),jQuery(document.body).append(RVS.fileDrop),void 0===RVS.fileDropListener&&(jQuery("html").on("dragover drop dragleave dragend",function(e){clearTimeout(window.htmldragout),"drop"===e.type?(jQuery("#filedrop").remove(),jQuery("#wpwrap").removeClass("blurred")):"dragleave"===e.type&&(window.htmldragout=setTimeout(function(){0==RVS.S.overFileDropZone&&(tpGS.gsap.to(RVS.fileDrop,.3,{autoAlpha:0,scale:.9,ease:"power3.inOut"}),jQuery("#wpwrap").removeClass("blurred"))},50)),e.preventDefault(),e.stopPropagation()}).on("dragenter",function(){RVS.S.overFileDropZone=!1,!0!==e.onlydrop&&jQuery("#wpwrap").addClass("blurred"),!0===e.onlydrop&&(tpGS.gsap.set(RVS.fileDropForm,{width:RVS.S.editorSize.w-50,height:RVS.S.editorSize.h-50,top:90,left:41,xPercent:0,yPercent:0}),tpGS.gsap.set(RVS.fileDrop,{background:"transparent"})),tpGS.gsap.to(RVS.fileDrop,.3,{autoAlpha:1,scale:1,ease:"power3.inOut"})}),RVS.fileDropForm.on("drag dragstart dragend dragover dragenter dragleave drop",function(e){e.preventDefault(),e.stopPropagation()}).on("dragover dragenter",function(e){RVS.S.overFileDropZone=!0,RVS.fileDropForm[0].className="is-dragover"}).on("dragleave dragend",function(){RVS.S.overFileDropZone=!1,RVS.fileDropForm[0].className=""}).on("drop",function(t){for(var i in RVS.fileDropForm[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 a=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">'+a+'<i class="material-icons fileupload_status"></i><span class="fileupload_message"></span></div>')}"custom"===e.type?e.callBack({files:t.originalEvent.dataTransfer.files,fileindex:0,report:"#fileprocessing_",success:e.success}):RVS.F.uploadFiles({form:RVS.fileDropForm,files:t.originalEvent.dataTransfer.files,fileindex:0,report:"#fileprocessing_",success:e.success,action:e.action})}),jQuery("#file").on("change",function(t){for(var i in RVS.fileDropForm[0].className="is-processing",t.target.files)if(t.target.files.hasOwnProperty(i)&&"object"==jQuery.type(t.target.files[i])){var a=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">'+a+'<i class="material-icons fileupload_status"></i><span class="fileupload_message"></span></div>')}"custom"===e.type?e.callBack({files:t.target.files,fileindex:0,report:"#fileprocessing_",success:e.success}):RVS.F.uploadFiles({form:RVS.fileDropForm,files:t.target.files,fileindex:0,report:"#fileprocessing_",success:e.success,action:e.action})}))},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",void 0===e.action?"import_slider":e.action),t.append("nonce",RVS.ENV.nonce),void 0!==e.customs&&t.append("customs",JSON.stringify(e.customs)),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"),void 0!==e.successFinal&&RVS.DOC.trigger(e.successFinal,t),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.slideinWork=function(e){RVS.SLIDER.inWork=void 0===RVS.SLIDER.inWork?[]:RVS.SLIDER.inWork,-1===jQuery.inArray(e,RVS.SLIDER.inWork)&&-1===jQuery.inArray(""+e,RVS.SLIDER.inWork)&&RVS.SLIDER.inWork.push(""+e)},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){e.order=void 0===e.order?0:e.order,e.order++;var t=e.slides[e.index],i=jQuery.inArray(t+"",RVS.SLIDER.inWork);if((i=-1===i?jQuery.inArray(t,RVS.SLIDER.inWork):i)>=0){var a=JSON.stringify(RVS.F.simplifySlide(RVS.SLIDER[e.slides[e.index]].slide)),o=JSON.stringify(RVS.F.simplifyAllLayer(RVS.SLIDER[e.slides[e.index]].layers));if(!0===e.force||void 0===RVS.S.lastSaved||void 0===RVS.S.lastSaved[t]||a!==RVS.S.lastSaved[t].params||o!==RVS.S.lastSaved[t].layers){var r={slider_id:RVS.ENV.sliderID,slide_id:e.slides[e.index],params:a,layers:o,slide_order:e.order};RVS.DOC.trigger("rs_save_slide_params",[r]),RVS.F.ajaxRequest("save_slide",r,function(i){i.success&&(RVS.S.lastSaved=void 0===RVS.S.lastSaved?{}:RVS.S.lastSaved,RVS.S.lastSaved[t]={params:a,layers:o},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=[],RVS.F.slideinWork(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),void 0!==RVS.SLIDER.settings.skins&&void 0!==RVS.SLIDER.settings.skins.colors&&(RVS.SLIDER.settings.skins.colors=Object.assign({},RVS.SLIDER.settings.skins.colors))},RVS.F.saveSliderSettings=function(){var e=JSON.stringify(RVS.SLIDER.settings),t=RVS.SLIDER.slideIDs.slice(),i=-1;for(var a in t)t.hasOwnProperty(a)&&(""+t[a]).indexOf("static")>=0&&(i=a);t.splice(i,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}),e.success&&RVS.DOC.trigger("slidersaved")},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),slide_order:JSON.stringify(RVS.SLIDER.slideIDs)},t=RVS.SLIDER.slideIDs.slice();for(var i in t)if(t.hasOwnProperty(i)){var a=!1,o=t[i];RVS.SLIDER.settings.general.useWPML&&void 0!==RVS.SLIDER[o]&&void 0!==RVS.SLIDER[o].slide&&void 0!==RVS.SLIDER[o].slide.child&&""!==RVS.SLIDER[o].slide.child.parentId&&void 0!==RVS.SLIDER[o].slide.child.parentId&&-1===jQuery.inArray(""+RVS.SLIDER[o].slide.child.parentId,RVS.SLIDER.slideIDs)&&(a=!0),!0!==a&&(e[t[i]]={params:JSON.stringify(RVS.F.simplifySlide(RVS.SLIDER[t[i]].slide)),layers:JSON.stringify(RVS.F.simplifyAllLayer(RVS.SLIDER[t[i]].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+=L({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+=L({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+=L({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})),void 0!==RVS.C.theRightToolbar&&RVS.C.theRightToolbar.append(t)}}},RVS.F.buildSingleAddonElement=function(e,t){if(void 0===e||""===e||0===e)return"";var i='<div id="ale_'+t+'" data-ref="'+t+'" class="rs_ale">';i+='<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&&(i+='<div class="rs_alethumb_title">'+e.logo.text+"</div>"),i+="</div>",""!==e.logo.img&&(i+='<div class="rs_alethumb_img" style="background-image:url('+e.logo.img+')"></div>'),e.installed&&e.active||(e.installed?i+="":i+='<div class="rs_ale_notinstalled">'+RVS_LANG.notinstalled+"</div>",i+='<div class="rs_alethumb_notinstalledimg" style="background-image:url('+e.logo.img+')"></div>');var a=e.active&&RVS.LIB.ADDONS[t].enable?"block":"none",o=RVS_LANG.enabled;return i+=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:'+a+'">'+o+"</div>",i+="</div>",i+='<div class="rs_ale_title">'+e.title+"</div>",i+="</div>"},RVS.F.buildAddonList=function(e,t){var i="";for(var a in RVS.LIB.ADDONS=void 0===RVS.LIB.ADDONS?{}:RVS.LIB.ADDONS,e)e.hasOwnProperty(a)&&(RVS.LIB.ADDONS[a]=void 0===RVS.LIB.ADDONS[a]?{}:RVS.LIB.ADDONS[a],RVS.LIB.ADDONS[a].enable=RVS.S.ovMode?e[a].global?RVS.LIB.ADDONS[a].enable:void 0:e[a].global?RVS.LIB.ADDONS[a].enable:void 0!==RVS.SLIDER.settings.addOns[a]&&RVS.SLIDER.settings.addOns[a].enable,RVS.LIB.ADDONS[a].enable=0!==RVS.LIB.ADDONS[a].enable&&"0"!==RVS.LIB.ADDONS[a].enable&&(1===RVS.LIB.ADDONS[a].enable||"1"===RVS.LIB.ADDONS[a].enable||(0===RVS.LIB.ADDONS[a].enable||RVS.LIB.ADDONS[a].enable)),"update"!==t&&(i+=RVS.F.buildSingleAddonElement(e[a],a)),RVS.LIB.ADDONS_LIST[a]=jQuery.extend(!0,{},e[a]));"update"!==t&&(jQuery("#rbm_addonlist").append(i),RVS.F.RSDialog.center())},RVS.F.loadAddonList=function(e,t,i){RVS.LIB.ADDONS_LIST={},RVS.F.ajaxRequest("get_addon_list",{},function(a){if(a.success){if(a.addons&&Array.isArray(a.addons)&&1===a.addons.length&&!1===a.addons[0])return;RVS.F.buildAddonList(a.addons,t),e&&"update"!==t&&RVS.F.showAddonInfos(e),"update"===t&&i()}})},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=void 0!==t.version&&!1!==t.version&&"false"!==t.version?t.version:RVS.LIB.ADDONS_LIST[e].available,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,"_"),i=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(a){a.success&&(RVS.LIB.ADDONS_LIST[e].active=!0,window[t]=a[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&&(void 0!==RVS.SLIDER.settings.addOns[e]&&RVS.SLIDER.settings.addOns[e].enable)):window[t].enabled=!0,tpGS.gsap.fromTo(i,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,i){console.log(i)}))},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){if(void 0!==RVS.LIB.ADDONS_LIST&&void 0!==RVS.LIB.ADDONS_LIST[e]){var t='<div class="rbm_addon_details_inner">',i=RVS.LIB.ADDONS_LIST[e],a=i.active?i.global?RVS_LANG.enableglobaladdon:RVS_LANG.enableaddon:i.global?RVS_LANG.activateglobaladdon:RVS_LANG.activateaddon,o=i.global?RVS_LANG.disableglobaladdon:RVS_LANG.disableaddon;t+='<div class="div20"></div>',t+='<div class="ale_i_title">'+i.title+"</div>",t+='<div class="ale_i_content">'+i.line_1+" "+i.line_2+"</div>",t+='<div class="div20"></div>',RVS.S.ovMode&&!i.global&&i.active&&i.installed?t+='<div class="basic_action_button_inactive autosize basic_action_button" data-slug="'+i.slug+'" data-global="'+i.global+'"><i class="material-icons">error_outline</i>'+RVS_LANG.addonOnlyInSlider+"</div>":RVS.ENV.revision<i.version_from?t+='<div class="ale_i_errorbutton basic_action_button autosize"><i class="material-icons">error_outline</i>'+RVS_LANG.checkforrequirements+"</div>":i.installed?i.active?RVS.LIB.ADDONS[e].enable?t+='<div class="ale_i_disableaddon basic_action_coloredbutton autosize basic_action_button" data-global="'+i.global+'" data-slug="'+i.slug+'"><i class="material-icons">remove_circle_outline</i>'+o+"</div>":RVS.S.ovMode&&!i.global?t+="":t+='<div class="ale_i_enableaddon basic_action_coloredbutton autosize basic_action_button" data-global="'+i.global+'" data-slug="'+i.slug+'"><i class="material-icons">power_settings_new</i>'+a+"</div>":t+='<div class="ale_i_activateaddon basic_action_coloredbutton autosize basic_action_button" data-slug="'+i.slug+'" data-global="'+i.global+'"><i class="material-icons">power_settings_new</i>'+a+"</div>":t+='<div class="ale_i_installaddon basic_action_coloredbutton autosize basic_action_button" data-slug="'+i.slug+'" data-global="'+i.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===i.installed?t+='<div class="ale_i_content">'+RVS_LANG.notinstalled+"</div>":t+='<div class="ale_i_content">'+(!0===i.installed?void 0===i.available?RVS_LANG.availableversion:i.available:i.installed)+"</div>",t+="</onehalf>",t+="<onehalf>",t+='<div class="ale_i_title">'+RVS_LANG.availableversion+"</div>",t+='<div class="ale_i_content">'+i.available+"</div>",t+="</onehalf>",t+="</row>",t+='<div class="div20"></div>',t+='<div class="ale_i_title">'+RVS_LANG.requirements+"</div>",RVS.ENV.revision>=i.version_from?t+='<div class="ale_i_content"><i class="material-icons">check</i>'+RVS_LANG.sliderrevversion+" "+i.version_from+"</div>":t+='<div class="ale_i_content ale_yellow"><i class="material-icons">error_outline</i>'+RVS_LANG.sliderrevversion+" "+i.version_from+"</div>",!1!==i.installed&&!0===RVS.F.compareVersions(i.installed,i.available,"<")&&(t+='<div class="div20"></div>',t+='<div class="ale_i_updateaddon  basic_action_coloredbutton autosize basic_action_button" data-global="'+i.global+'" data-slug="'+i.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}),i.active&&RVS.DOC.trigger(i.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.compareVersions=function(e,t,i){if(void 0===e||void 0===t)return!1;var a,o,r;for(e+="",t+="",regExStrip0=/(\.0+)+$/,segmentsA=e.replace(regExStrip0,"").split("."),segmentsB=t.replace(regExStrip0,"").split("."),l=Math.min(segmentsA.length,segmentsB.length),a=0;a<l;a++)if(o=parseInt(segmentsA[a],10)-parseInt(segmentsB[a],10))return void 0===i&&o<=0||"<"===i&&o<0;return r=segmentsA.length-segmentsB.length,void 0===i&&r<=0||"<"===i&&r<0},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" stroke="white" stroke-width="3" fill="none" /></svg>')),RVS.S.miniPreloaderTL=tpGS.gsap.timeline({repeat:-1,delay:.3}),RVS.S.miniPreloaderTL.add(tpGS.gsap.fromTo(".circle-fill",.7,{drawSVG:"0%"},{drawSVG:"80%",ease:"none",force3D:!0}),0),RVS.S.miniPreloaderTL.add(tpGS.gsap.to(".circle-fill",.7,{drawSVG:"0%",ease:"none"}),1),RVS.S.miniPreloaderTL.add(tpGS.gsap.to(".circle-fill",.7,{rotation:360,ease:"none",transformOrigin:"50% 50%"}),0),RVS.S.miniPreloaderTL.add(tpGS.gsap.to(".circle-fill",.7,{rotation:0,ease:"none",transformOrigin:"50% 50%"}),.7)},RVS.F.miniPreloaderOut=function(e){RVS.S.miniPreloaderTL.reverse(),tpGS.gsap.to("#font_minipreloader",1,{scale:0,transformOrigin:"50% 50%",ease:"power3.inOut",overwrite:"all",force3D:!0,delay:.5,onComplete:e?function(){jQuery("#font_minipreloader").remove()}:function(){}})},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(document.body).append('<div id="hidden_video_container"></div>'),S=new Vimeo.Player("hidden_video_container",e),v=setTimeout(function(){jQuery("#layer_youtubevimeo_id").addClass("badvalue"),RVS.F.miniPreloaderOut()},3e3),S.ready().then(function(){jQuery("#layer_youtubevimeo_id").removeClass("badvalue"),RVS.F.miniPreloaderOut(),clearTimeout(v)}).catch(function(e){jQuery("#layer_youtubevimeo_id").addClass("badvalue"),RVS.F.miniPreloaderOut(),clearTimeout(v)})},RVS.F.checkYouTubeID=function(e){RVS.F.createMiniPreloader({container:jQuery("#video_id_wrap")}),jQuery("#hidden_video_container").remove(),jQuery(document.body).append('<div id="hidden_video_container"></div>'),v=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(v)},onError:function(){console.log("ERROR"),jQuery("#layer_youtubevimeo_id").addClass("badvalue"),RVS.F.miniPreloaderOut(),clearTimeout(v)}}})},RVS.F.showMouseInfo=function(e){void 0===RVS.C.mouseInfo&&(RVS.C.mouseInfo=jQuery("#mouseInfoBox"),RVS.C.mouseInfo.appendTo(jQuery(document.body))),void 0!==e.html?RVS.C.mouseInfo[0].innerHTML=e.html:void 0!==e.text&&(RVS.C.mouseInfo[0].innerHTML=e.text),s=!0,RVS.C.mouseInfo[0].className=e.classes||""},RVS.F.hideMouseInfo=function(){s=!1,void 0!==RVS.C.mouseInfo&&tpGS.gsap.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(){var e;window.location.href;return window.location.href.indexOf("alias=")>=0?RVS.SLIDER.slideIDs[0]:(e=window.location.href.indexOf("&id=")>=0?window.location.href.split("&id="):window.location.href.indexOf("?id=")>=0?window.location.href.split("?id="):window.location.href.split("id="),e=Array.isArray(e)?e[1]:RVS.SLIDER.slideIDs[0],e=RVS.F.isNumeric(e)?e:e.split("&")[0],e=RVS.F.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,i=e.viewPort.width/e.viewPort.height,a={width:e.image.width,height:e.image.height};switch(e.type){case"fit":t>i?(a.width=e.viewPort.width,a.height=e.viewPort.width/t):(a.width=e.viewPort.height*t,a.height=e.viewPort.height);break;case"cover-proportional":t<=i?(a.width=e.viewPort.width,a.height=e.viewPort.width/t):(a.width=e.viewPort.height*t,a.height=e.viewPort.height);break;case"fullwidth":a.width=e.viewPort.width,a.height=e.proportional?a.width/t:e.image.height;break;case"fullheight":a.height=e.viewPort.height,a.width=e.proportional?a.height/t:e.image.width;break;case"cover":a.width=e.viewPort.width,a.height=e.viewPort.height}return a},RVS.F.convPercVals=function(e){return!RVS.F.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(/[^-0-9+\/]/g,"")},RVS.F.sanitize_input=function(e){if(null!==e)return e.replace(/ /g,"-").replace(/[^-0-9a-zA-Z_-]/g,"")},RVS.F.sanitize_alias=function(e){if(null!==e)return(e=e.replace(/ +(?= )/g,"")).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 RVS.F.isNumeric(t)?t:e},RVS.F.htmlToText=function(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")},RVS.F.insertTextAtCursor=function(e,t){var i=e.getDoc(),a=i.getCursor();i.replaceRange(t,a)},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(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!=t.length)return!1;var i=!0;for(var a in e)if(e.hasOwnProperty(a)&&-1===jQuery.inArray(e[a],t)){i=!1;break}if(i)for(var a in t)if(t.hasOwnProperty(a)&&-1===jQuery.inArray(t[a],e)){i=!1;break}return i},RVS.F.mergeArrays=function(e,t){for(var i in t)t.hasOwnProperty(i)&&-1===jQuery.inArray(t[i],e)&&e.push(t[i]);return e},RVS.F.makeArray=function(e,t){if(!Array.isArray(e)){for(var i=[],a=0;a<t;a++)i.push(e);e=i}return e},RVS.F.amove=function(e,t,i){if(Array.isArray(e)||(e=Object.values(e)),i>=e.length)for(var a=i-e.length+1;a--;)e.push(void 0);return e.splice(i,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 i=-1,a=0;a<t.length&&-1===i;)t[a]==e&&(i=a),a++;return i},RVS.F.addT=function(e){var t=0;for(var i in e)e.hasOwnProperty(i)&&(t+=parseInt(e[i],0));return t},RVS.F.isVaOrPx=function(e){var t=!1;return!RVS.F.isNumeric(e)&&e.indexOf("px")>=0?t=!0:RVS.F.isNumeric(e)&&(t=!0),t},RVS.F.retWitSuf=function(e,t){return!RVS.F.isNumeric(e)&&e.indexOf("px")>=0?parseInt(e)+"px":!RVS.F.isNumeric(e)&&e.indexOf("%")>=0?parseInt(e)+"%":!RVS.F.isNumeric(e)&&RVS.F.isNumeric(parseInt(e,0))?parseInt(e)+t:RVS.F.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,i,a={},o=void 0===(e=void 0===e?{default:0,unit:""}:e).default?0:e.default,r=void 0===e.unit?"":e.unit;for(var s in RVS.V.sizes)if(RVS.V.sizes.hasOwnProperty(s)){var n=RVS.V.sizes[s],l=RVS.V.sizesold[s];if("object"==typeof(o=Array.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[l]||null===e.val[l]?o:e.val[l]))for(var d in a[n]=jQuery.extend(!0,{},{v:o,e:!1}),void 0!==e&&void 0!==e.val&&void 0!==e.val[l]&&(a[n].e=!0),o)o.hasOwnProperty(d)&&(a[n].v[d]=r.length>0&&"auto"!==o[d]&&"none"!==o[d]?parseFloat(o[d])+r:o[d],""==r&&(t=(""+a[n].v[d]).indexOf("%"),i=(""+a[n].v[d]).indexOf("px"),t>=0?a[n].v[d]=parseInt(a[n].v[d],0)+"%":i>=0&&(a[n].v[d]=parseInt(a[n].v[d],0)+"px")));else a[n]=jQuery.extend(!0,{},{v:r.length>0&&"auto"!==o&&"none"!==o&&""!==o?parseFloat(o)+r:o,e:!1,u:r}),void 0!==e&&void 0!==e.val&&void 0!==e.val[l]&&(a[n].e=!0),""===a[n].v&&""!==e.default&&(a[n].v=e.default),""==r&&!1!==a[n].v&&!0!==a[n].v&&(t=(""+a[n].v).indexOf("%"),i=(""+a[n].v).indexOf("px"),t>=0?a[n].v=parseInt(a[n].v,0)+"%":i>=0&&(a[n].v=parseInt(a[n].v,0)+"px"))}return a},RVS.F.cToVandU=function(e){var t={v:e.default,u:e.u};t.v=void 0===e.val?t.v:e.val;var i=0;if("object"==typeof t.v)for(var a in t.v)t.v.hasOwnProperty(a)&&(RVS.F.isNumeric(t.v[a])||(t.u=0==i&&t.v[a].indexOf("px")>=0?"px":0==i&&t.v[a].indexOf("%")>=0?"%":t.u,t.v[a]=parseInt(t.v[a],0)+t.u,i++));else RVS.F.isNumeric(t.v)||(t.u=0==i&&t.v.indexOf("px")>=0?"px":0==i&&t.v.indexOf("%")>=0?"%":t.u,t.v=parseInt(t.v,0)+t.u,i++);return t},RVS.F.exportLayerCombo=function(e){void 0===R&&(jQuery(document.body).append('<a style="display:none" id="downloadExportLayerCombo" href="" download></a>'),R=jQuery("#downloadExportLayerCombo"));var t,i=RVS.SLIDER[RVS.S.slideId].slide.thumb.customAdminThumbSrcId,a={};for(var o in RVS.L)RVS.L.hasOwnProperty(o)&&("video"===RVS.L[o].type&&(t=RVS.L[o].media.id),"video"!==RVS.L[o].type&&(a[o]=jQuery.extend(!0,{},RVS.L[o])));return delete a.bottom,delete a.top,delete a.middle,a=JSON.stringify(RVS.F.simplifyAllLayer(a)),RVS.F.ajaxRequest("export_layer_group",{videoid:t,thumbid:i,layers:a,title:e.title},function(e){R[0].href=e.url,R[0].click()},!0,!0),"Exporting Layer Combo File"},RVS.F.simplifyObject=function(e,t){for(var i in t)t.hasOwnProperty(i)&&("object"!=typeof t[i]||Array.isArray(t[i])?e[i]==t[i]&&"text"!==i&&"endWithSlide"!==i&&delete t[i]:(void 0!==e[i]&&"margin"!==i&&"padding"!==i&&(t[i]=jQuery.extend(!0,{},RVS.F.simplifyObject(e[i],t[i]))),jQuery.isEmptyObject(t[i])&&delete t[i]));return t},RVS.F.removeEmptyChilds=function(e){var t={};for(var i in e)e.hasOwnProperty(i)&&("object"!=typeof e[i]&&(t[i]=e[i]),jQuery.isEmptyObject(e[i])||(t[i]=jQuery.extend(!0,{},RVS.F.removeEmptyChilds(e[i]))));return t},RVS.F.convertFraction=function(e){var t,i;return-1!==e.search("/")&&2===(i=e.split("/")).length&&(t=parseInt(i[0],10)/parseInt(i[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){e.success?(RVS.preview.layouttype=e.layouttype,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.showErrorMessage(e.message),jQuery("#rbm_preview .rbm_close").trigger("click"))},void 0,!0)},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=function(e,t){var i=!1,a={w:parseInt(e.width.d,0),h:e.height.d};for(var o in RVS.V.sizes)RVS.V.sizes.hasOwnProperty(o)&&!0!==i&&(e.custom[RVS.V.sizes[o]]&&(a.w=parseInt(e.width[RVS.V.sizes[o]],0),a.h=parseInt(e.height[RVS.V.sizes[o]],0)),RVS.V.sizes[o]===t&&(i=!0));return a}(RVS.preview.sizes,RVS.preview.selectedSize),t={w:parseInt(RVS.preview.sizes.width[RVS.preview.selectedSize],0),h:parseInt(RVS.preview.sizes.height[RVS.preview.selectedSize],0)};!1===RVS.preview.sizes.custom[RVS.preview.selectedSize]&&(t.w=Math.min(e.w,RVS.ENV.grid_sizes[RVS.preview.selectedSize]),t.h=t.w/e.w*e.h),t.w=t.w-1;var i=Math.min(t.w,RVS.S.winw),a=Math.min(t.h+50,RVS.S.winh),o="fullscreen"===RVS.preview.layouttype||"fullwidth"===RVS.preview.layouttype,r="fullscreen"===RVS.preview.layouttype;tpGS.gsap.set(RVS.preview.c,{width:"d"===RVS.preview.selectedSize&&o?"100%":Math.max(690,i),height:"d"===RVS.preview.selectedSize&&r?"100%":a}),tpGS.gsap.set(RVS.preview.iframe,{maxHeight:"100%",maxWidth:"100%",margin:"auto",position:"relative",left:"50%",x:"-50%"}),RVS.preview.iframe.width=o?"m"===RVS.preview.selectedSize?Math.min(t.w,i):"100%":Math.min(t.w,i),RVS.preview.iframe.height=r&&"d"===RVS.preview.selectedSize?RVS.S.winh-50:t.h,RVS.F.RSDialog.center()}}}();