File "utils.min.js"
Full Path: /home/jlklyejr/public_html/post-date/wp-content/plugins/revslider/admin/assets/js/plugins/utils.min.js
File size: 264.19 KB
MIME-type: text/plain
Charset: utf-8
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,RVS.F.closest=function(e,t){return e&&(t(e)?e:RVS.F.closest(e.parentNode,t))},RVS.F.closestNode=function(e,t){return RVS.F.closest(e,function(e){return e.nodeName===t})},RVS.F.closestClass=function(e,t){return RVS.F.closest(e,function(e){return 0<=(" "+e.className+" ").indexOf(" "+t+" ")})},RVS.F.isNumeric=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},RVS.F.trim=function(e){return null!=e&&"string"==typeof e?e.trim():e},RVS.S.setShowHide=[],RVS.S.setUnsetClasses={},RVS.S.initOnOffList={},jQuery.fn.RSScroll||(jQuery.fn.RSScroll=function(i,e){if(!i||"string"!=typeof i)return this.each(function(e){var t=jQuery(this);t.data("revsliderps")||t.data("revsliderps",new RSPerfectScrollbar(this,i||{}))});switch(i){case"update":return this.each(function(){var e=jQuery(this).data("revsliderps");e&&e.update()});case"scrollTop":return this.each(function(){this.scrollTop=e});case"destroy":return this.each(function(){var e=jQuery(this),t=e.data("revsliderps");t&&(t.destroy(),e.removeData("revsliderps"))})}}),RVS.F.cF=function(){return document.createDocumentFragment()},RVS.F.cI=function(e){var t=document.createElement("i");if(t.className="material-icons"+(void 0!==e.cN?" "+e.cN:""),t.textContent=e.c,e.id&&(t.id=e.id),e.ds)for(var i in e.ds)e.ds.hasOwnProperty(i)&&(t.dataset[i]=e.ds[i]);return t},RVS.F.cE=function(e){var t=document.createElement(e.t||"div");if(void 0!==e.con&&(t.textContent=e.con),void 0!==e.txt&&(t.innerHTML=e.txt),e.id&&(t.id=e.id),e.cN&&(t.className=e.cN),e.ds)for(var i in e.ds)e.ds.hasOwnProperty(i)&&(t.dataset[i]=e.ds[i]);return e.icon&&(void 0!==e.con?t.insertBefore(RVS.F.cI(e.icon),t.firstChild):t.appendChild(RVS.F.cI(e.icon))),e.type&&(t.type=e.type),t},function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.RSPerfectScrollbar=t()}(this,function(){"use strict";function v(e){return getComputedStyle(e)}function n(e,t){for(var i in t){var a=t[i];"number"==typeof a&&(a+="px"),e.style[i]=a}}function d(e){var t=document.createElement("div");return t.className=e,t}function l(e,t){if(r)return r.call(e,t);throw new Error("No element matching method supported")}function s(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function c(e,t){return Array.prototype.filter.call(e.children,function(e){return l(e,t)})}function S(e,t){var e=e.element.classList,i=R.state.scrolling(t);e.contains(i)?clearTimeout(o[t]):e.add(i)}function b(e,t){o[t]=setTimeout(function(){return e.isAlive&&e.element.classList.remove(R.state.scrolling(t))},e.settings.scrollingThreshold)}function p(e){var t;return"function"==typeof window.CustomEvent?new CustomEvent(e):((t=document.createEvent("CustomEvent")).initCustomEvent(e,!1,!1,void 0),t)}function u(e,t,i,a,r){var o=i[0],s=i[1],l=i[2],n=i[3],d=i[4],i=i[5],c=(void 0===a&&(a=!0),void 0===r&&(r=!1),e.element);e.reach[n]=null,c[l]<1&&(e.reach[n]="start"),c[l]>e[o]-e[s]-1&&(e.reach[n]="end"),t&&(c.dispatchEvent(p("ps-scroll-"+n)),t<0?c.dispatchEvent(p("ps-scroll-"+d)):0<t&&c.dispatchEvent(p("ps-scroll-"+i)),a)&&(S(l=e,o=n),b(l,o)),e.reach[n]&&(t||r)&&c.dispatchEvent(p("ps-"+n+"-reach-"+e.reach[n]))}function g(e){return parseInt(e,10)||0}function m(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),t=e.settings.maxScrollbarLength?Math.min(t,e.settings.maxScrollbarLength):t}function t(t,e){function i(e){h[v]=r+s*(e[d]-o),S(t,g),f(t),e.stopPropagation(),e.preventDefault()}function a(){b(t,g),t[m].classList.remove(R.state.clicking),t.event.unbind(t.ownerDocument,"mousemove",i)}var r,o,s,l=e[0],n=e[1],d=e[2],c=e[3],p=e[4],u=e[5],v=e[6],g=e[7],m=e[8],h=t.element;t.event.bind(t[p],"mousedown",function(e){r=h[v],o=e[d],s=(t[n]-t[l])/(t[c]-t[u]),t.event.bind(t.ownerDocument,"mousemove",i),t.event.once(t.ownerDocument,"mouseup",a),t[m].classList.add(R.state.clicking),e.stopPropagation(),e.preventDefault()})}function i(e){this.element=e,this.handlers={}}function h(){this.eventElements=[]}function a(e,t,i,a,r){var o;if(void 0===a&&(a=!0),void 0===r&&(r=!1),"top"===t)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==t)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}u(e,i,o,a,r)}function f(e){var t,i,a,r=e.element,o=Math.floor(r.scrollTop);e.containerWidth=r.clientWidth,e.containerHeight=r.clientHeight,e.contentWidth=r.scrollWidth,e.contentHeight=r.scrollHeight,r.contains(e.scrollbarXRail)||(c(r,R.element.rail("x")).forEach(s),r.appendChild(e.scrollbarXRail)),r.contains(e.scrollbarYRail)||(c(r,R.element.rail("y")).forEach(s),r.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset<e.contentWidth?(e.scrollbarXActive=!0,e.railXWidth=e.containerWidth-e.railXMarginWidth,e.railXRatio=e.containerWidth/e.railXWidth,e.scrollbarXWidth=m(e,g(e.railXWidth*e.containerWidth/e.contentWidth)),e.scrollbarXLeft=g((e.negativeScrollAdjustment+r.scrollLeft)*(e.railXWidth-e.scrollbarXWidth)/(e.contentWidth-e.containerWidth))):e.scrollbarXActive=!1,!e.settings.suppressScrollY&&e.containerHeight+e.settings.scrollYMarginOffset<e.contentHeight?(e.scrollbarYActive=!0,e.railYHeight=e.containerHeight-e.railYMarginHeight,e.railYRatio=e.containerHeight/e.railYHeight,e.scrollbarYHeight=m(e,g(e.railYHeight*e.containerHeight/e.contentHeight)),e.scrollbarYTop=g(o*(e.railYHeight-e.scrollbarYHeight)/(e.contentHeight-e.containerHeight))):e.scrollbarYActive=!1,e.scrollbarXLeft>=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),o=r,i={width:(t=e).railXWidth},a=Math.floor(o.scrollTop),t.isRtl?i.left=t.negativeScrollAdjustment+o.scrollLeft+t.containerWidth-t.contentWidth:i.left=o.scrollLeft,t.isScrollbarXUsingBottom?i.bottom=t.scrollbarXBottom-a:i.top=t.scrollbarXTop+a,n(t.scrollbarXRail,i),i={top:a,height:t.railYHeight},t.isScrollbarYUsingRight?t.isRtl?i.right=t.contentWidth-(t.negativeScrollAdjustment+o.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth:i.right=t.scrollbarYRight-o.scrollLeft:t.isRtl?i.left=t.negativeScrollAdjustment+o.scrollLeft+2*t.containerWidth-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:i.left=t.scrollbarYLeft+o.scrollLeft,n(t.scrollbarYRail,i),n(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),n(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth}),e.scrollbarXActive?r.classList.add(R.state.active("x")):(r.classList.remove(R.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,r.scrollLeft=0),e.scrollbarYActive?r.classList.add(R.state.active("y")):(r.classList.remove(R.state.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,r.scrollTop=0)}function e(e,t){var i,a=this;if(void 0===t&&(t={}),!(e="string"==typeof e?document.querySelector(e):e)||!e.nodeName)throw new Error("no element is specified to initialize RSPerfectScrollbar");for(i in(this.element=e).classList.add(R.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},t)a.settings[i]=t[i];function r(){return e.classList.add(R.state.focus)}function o(){return e.classList.remove(R.state.focus)}this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null,this.isRtl="rtl"===v(e).direction,this.isNegativeScroll=(s=e.scrollLeft,e.scrollLeft=-1,l=e.scrollLeft<0,e.scrollLeft=s,l),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new h,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=d(R.element.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=d(R.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",r),this.event.bind(this.scrollbarX,"blur",o),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var s=v(this.scrollbarXRail),l=(this.scrollbarXBottom=parseInt(s.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=g(s.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=g(s.borderLeftWidth)+g(s.borderRightWidth),n(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=g(s.marginLeft)+g(s.marginRight),n(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=d(R.element.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=d(R.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",r),this.event.bind(this.scrollbarY,"blur",o),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null,v(this.scrollbarYRail));this.scrollbarYRight=parseInt(l.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=g(l.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?g((s=v(s=this.scrollbarY)).width)+g(s.paddingLeft)+g(s.paddingRight)+g(s.borderLeftWidth)+g(s.borderRightWidth):null,this.railBorderYWidth=g(l.borderTopWidth)+g(l.borderBottomWidth),n(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=g(l.marginTop)+g(l.marginBottom),n(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(e){return V[e](a)}),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",function(e){return a.onScroll(e)}),f(this)}var r="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector),R={main:"ps",element:{thumb:function(e){return"rs__scrollbar-"+e},rail:function(e){return"rs__scrollbar-"+e+"-rail"},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}}},o={x:null,y:null},y={isEmpty:{configurable:!0}},_=(i.prototype.bind=function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},i.prototype.unbind=function(t,i){var a=this;this.handlers[t]=this.handlers[t].filter(function(e){return!(!i||e===i)||(a.element.removeEventListener(t,e,!1),!1)})},i.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},y.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return 0===t.handlers[e].length})},Object.defineProperties(i.prototype,y),h.prototype.eventElement=function(t){var e=this.eventElements.filter(function(e){return e.element===t})[0];return e||(e=new i(t),this.eventElements.push(e)),e},h.prototype.bind=function(e,t,i){this.eventElement(e).bind(t,i)},h.prototype.unbind=function(e,t,i){e=this.eventElement(e);e.unbind(t,i),e.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(e),1)},h.prototype.unbindAll=function(){this.eventElements.forEach(function(e){return e.unbindAll()}),this.eventElements=[]},h.prototype.once=function(e,t,i){var a=this.eventElement(e),r=function(e){a.unbind(t,r),i(e)};a.bind(t,r)},{isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)}),V={"click-rail":function(i){i.event.bind(i.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),i.event.bind(i.scrollbarYRail,"mousedown",function(e){var t=e.pageY-window.pageYOffset-i.scrollbarYRail.getBoundingClientRect().top>i.scrollbarYTop?1:-1;i.element.scrollTop+=t*i.containerHeight,f(i),e.stopPropagation()}),i.event.bind(i.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),i.event.bind(i.scrollbarXRail,"mousedown",function(e){var t=e.pageX-window.pageXOffset-i.scrollbarXRail.getBoundingClientRect().left>i.scrollbarXLeft?1:-1;i.element.scrollLeft+=t*i.containerWidth,f(i),e.stopPropagation()})},"drag-thumb":function(e){t(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),t(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(o){var s=o.element;o.event.bind(o.ownerDocument,"keydown",function(e){if(!(e.isDefaultPrevented&&e.isDefaultPrevented()||e.defaultPrevented)&&(l(s,":hover")||l(o.scrollbarX,":focus")||l(o.scrollbarY,":focus"))){var t=document.activeElement||o.ownerDocument.activeElement;if(t){if("IFRAME"===t.tagName)t=t.contentDocument.activeElement;else for(;t.shadowRoot;)t=t.shadowRoot.activeElement;if(l(r=t,"input,[contenteditable]")||l(r,"select,[contenteditable]")||l(r,"textarea,[contenteditable]")||l(r,"button,[contenteditable]"))return}var i=0,a=0;switch(e.which){case 37:i=e.metaKey?-o.contentWidth:e.altKey?-o.containerWidth:-30;break;case 38:a=e.metaKey?o.contentHeight:e.altKey?o.containerHeight:30;break;case 39:i=e.metaKey?o.contentWidth:e.altKey?o.containerWidth:30;break;case 40:a=e.metaKey?-o.contentHeight:e.altKey?-o.containerHeight:-30;break;case 32:a=e.shiftKey?o.containerHeight:-o.containerHeight;break;case 33:a=o.containerHeight;break;case 34:a=-o.containerHeight;break;case 36:a=o.contentHeight;break;case 35:a=-o.contentHeight;break;default:return}o.settings.suppressScrollX&&0!==i||o.settings.suppressScrollY&&0!==a||(s.scrollTop-=a,s.scrollLeft+=i,f(o),function(e,t){var i=Math.floor(s.scrollTop);if(0===e){if(!o.scrollbarYActive)return;if(0===i&&0<t||i>=o.contentHeight-o.containerHeight&&t<0)return!o.settings.wheelPropagation}if(i=s.scrollLeft,0===t){if(!o.scrollbarXActive)return;if(0===i&&e<0||i>=o.contentWidth-o.containerWidth&&0<e)return!o.settings.wheelPropagation}return 1}(i,a)&&e.preventDefault())}var r})},wheel:function(n){function e(e){s=(o=e).deltaX,l=-1*o.deltaY,void 0!==s&&void 0!==l||(s=-1*o.wheelDeltaX/6,l=o.wheelDeltaY/6),o.deltaMode&&1===o.deltaMode&&(s*=10,l*=10),s!=s&&l!=l&&(s=0,l=o.wheelDelta);var t,i,a,r,o=o.shiftKey?[-l,-s]:[s,l],s=o[0],l=o[1];!function(e,t,i){if(!_.isWebKit&&d.querySelector("select:focus"))return 1;if(d.contains(e))for(var a=e;a&&a!==d;){if(a.classList.contains(R.element.consuming))return 1;var r=v(a);if([r.overflow,r.overflowX,r.overflowY].join("").match(/(scroll|auto)/)){r=a.scrollHeight-a.clientHeight;if(0<r&&!(0===a.scrollTop&&0<i||a.scrollTop===r&&i<0))return 1;r=a.scrollWidth-a.clientWidth;if(0<r&&!(0===a.scrollLeft&&t<0||a.scrollLeft===r&&0<t))return 1}a=a.parentNode}}(e.target,s,l)&&(o=!1,n.settings.useBothWheelAxes?n.scrollbarYActive&&!n.scrollbarXActive?(l?d.scrollTop-=l*n.settings.wheelSpeed:d.scrollTop+=s*n.settings.wheelSpeed,o=!0):n.scrollbarXActive&&!n.scrollbarYActive&&(s?d.scrollLeft+=s*n.settings.wheelSpeed:d.scrollLeft-=l*n.settings.wheelSpeed,o=!0):(d.scrollTop-=l*n.settings.wheelSpeed,d.scrollLeft+=s*n.settings.wheelSpeed),f(n),o=o||(s=s,l=l,t=Math.floor(d.scrollTop),i=0===d.scrollTop,t=t+d.offsetHeight===d.scrollHeight,a=0===d.scrollLeft,r=d.scrollLeft+d.offsetWidth===d.scrollWidth,!(Math.abs(l)>Math.abs(s)?i||t:a||r))||!n.settings.wheelPropagation)&&!e.ctrlKey&&(e.stopPropagation(),e.preventDefault())}var d=n.element;void 0!==window.onwheel?n.event.bind(d,"wheel",e):void 0!==window.onmousewheel&&n.event.bind(d,"mousewheel",e)},touch:function(s){function o(e,t){d.scrollTop-=t,d.scrollLeft-=e,f(s)}function l(e){return e.targetTouches?e.targetTouches[0]:e}function n(e){return(!e.pointerType||"pen"!==e.pointerType||0!==e.buttons)&&(e.targetTouches&&1===e.targetTouches.length||e.pointerType&&"mouse"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_MOUSE)}function e(e){n(e)&&(e=l(e),c.pageX=e.pageX,c.pageY=e.pageY,p=(new Date).getTime(),null!==a)&&clearInterval(a)}function t(e){var t,i,a,r;n(e)&&(t=(a={pageX:(a=l(e)).pageX,pageY:a.pageY}).pageX-c.pageX,i=a.pageY-c.pageY,!function(e,t,i){if(d.contains(e))for(var a=e;a&&a!==d;){if(a.classList.contains(R.element.consuming))return 1;var r=v(a);if([r.overflow,r.overflowX,r.overflowY].join("").match(/(scroll|auto)/)){r=a.scrollHeight-a.clientHeight;if(0<r&&!(0===a.scrollTop&&0<i||a.scrollTop===r&&i<0))return 1;r=a.scrollLeft-a.clientWidth;if(0<r&&!(0===a.scrollLeft&&t<0||a.scrollLeft===r&&0<t))return 1}a=a.parentNode}}(e.target,t,i))&&(o(t,i),c=a,0<(r=(a=(new Date).getTime())-p)&&(u.x=t/r,u.y=i/r,p=a),function(e,t){var i=Math.floor(d.scrollTop),a=d.scrollLeft,r=Math.abs(e),o=Math.abs(t);if(r<o){if(t<0&&i===s.contentHeight-s.containerHeight||0<t&&0===i)return 0===window.scrollY&&0<t&&_.isChrome}else if(o<r&&(e<0&&a===s.contentWidth-s.containerWidth||0<e&&0===a));return 1}(t,i))&&e.preventDefault()}function i(){s.settings.swipeEasing&&(clearInterval(a),a=setInterval(function(){s.isInitialized||!u.x&&!u.y||Math.abs(u.x)<.01&&Math.abs(u.y)<.01?clearInterval(a):(o(30*u.x,30*u.y),u.x*=.8,u.y*=.8)},10))}var d,c,p,u,a;(_.supportsTouch||_.supportsIePointer)&&(d=s.element,c={},p=0,u={},a=null,_.supportsTouch?(s.event.bind(d,"touchstart",e),s.event.bind(d,"touchmove",t),s.event.bind(d,"touchend",i)):_.supportsIePointer&&(window.PointerEvent?(s.event.bind(d,"pointerdown",e),s.event.bind(d,"pointermove",t),s.event.bind(d,"pointerup",i)):window.MSPointerEvent&&(s.event.bind(d,"MSPointerDown",e),s.event.bind(d,"MSPointerMove",t),s.event.bind(d,"MSPointerUp",i))))}};return e.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,n(this.scrollbarXRail,{display:"block"}),n(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=g(v(this.scrollbarXRail).marginLeft)+g(v(this.scrollbarXRail).marginRight),this.railYMarginHeight=g(v(this.scrollbarYRail).marginTop)+g(v(this.scrollbarYRail).marginBottom),n(this.scrollbarXRail,{display:"none"}),n(this.scrollbarYRail,{display:"none"}),f(this),a(this,"top",0,!1,!0),a(this,"left",0,!1,!0),n(this.scrollbarXRail,{display:""}),n(this.scrollbarYRail,{display:""}))},e.prototype.onScroll=function(e){this.isAlive&&(f(this),a(this,"top",this.element.scrollTop-this.lastScrollTop),a(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},e.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),s(this.scrollbarX),s(this.scrollbarY),s(this.scrollbarXRail),s(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},e.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(e){return!e.match(/^ps([-_].+|)$/)}).join(" ")},e}),function(){var l,t=null,i=null,e=null,a=null;function r(e,t=new Date){return t.setDate(t.getDate()+7*e),t}RVS.DOC.on("click","#rs_copyright",function(){RVS.F.RSDialog.create({modalid:"#rbm_copyright",bgopacity:.25})}),RVS.DOC.on("click","#rbm_copyright .rbm_close",function(){RVS.F.RSDialog.close()}),RVS.DOC.on("click",".copyright_sel",function(){jQuery(".copyright_sel").removeClass("selected"),jQuery(".crm_content_wrap").removeClass("selected"),this.className+=" selected",document.getElementById("crm_"+this.dataset.crm).className+=" selected"}),RVS.F.CO=function(e,t){var i=document.createElement("option");return i.value=e,i.innerText=t,i},RVS.F.capitalise=function(e){return e.substr(0,1).toUpperCase()+e.substr(1)},RVS.F.capitaliseAll=function(e){var t,i=e.split(" ");for(t in i)i[t]=i[t].substr(0,1).toUpperCase()+i[t].substr(1);return i.join(" ")},RVS.F.debug=function(e){console.log(e)},RVS.F.compareVersion=function(t,i){if("string"!=typeof t)return!1;if("string"!=typeof i)return!1;t=t.split("."),i=i.split(".");var a=Math.min(t.length,i.length);for(let e=0;e<a;++e){if(t[e]=parseInt(t[e],10),i[e]=parseInt(i[e],10),t[e]>i[e])return 1;if(t[e]<i[e])return-1}return t.length==i.length?0:t.length<i.length?-1:1},RVS.DOC.on("click","#rbmas_activateplugin",function(){var t=jQuery("#rbmas_purchasekey").val();RVS.F.ajaxRequest("activate_plugin",{code:t},function(e){e.success&&(RVS.ENV.activated=!0,RVS.ENV.code=t,jQuery(".rbmas_close").trigger("click"),RVS.DOC.trigger("registrationdone"),void 0!==RVS)&&void 0!==RVS.F&&(void 0!==RVS.F.updateDraw&&RVS.F.updateDraw(),void 0!==RVS.F.isActivated&&RVS.F.isActivated(),void 0!==RVS.F.notifications&&RVS.S.ovMode&&RVS.F.notifications(),jQuery(".rs_lib_premium_wrap .rs_lib_premium_red").each(function(){this.className="rs_lib_premium_lila",this.innerHTML=RVS_LANG.premium_template}),jQuery("#rs_premium .rs_lib_premium_red").each(function(){this.className="rs_lib_premium_lila",this.innerHTML=RVS_LANG.premium_template}))})}),RVS.DOC.on("udpateTrackingEnv",function(){void 0!==RVS.SLIDER&&void 0!==RVS.SLIDER.globals&&(RVS.SLIDER.globals.tracking=1==RVS.SLIDER.globals.trackingOnOff||"true"==RVS.SLIDER.globals.trackingOnOff?"enabled":"1999-01-01",RVS.ENV.tracking=RVS.SLIDER.globals.tracking)}),RVS.F.updateTrackingInfo=function(){RVS.F.ajaxRequest("update_global_settings",{global_settings:{tracking:RVS.ENV.tracking},update:!0},function(e){void 0===e||1!=e.success&&"true"!=e.success||void 0!==RVS.SLIDER&&void 0!==RVS.SLIDER.globals&&(RVS.SLIDER.globals.tracking=RVS.ENV.tracking,RVS.SLIDER.globals.trackingOnOff=RVS.ENV.trackingOnOff),RVS.F.RSDialog.close()})},RVS.F.reqTracking=function(){var e;RVS.F.dontShowTracking||"enabled"==RVS.ENV.tracking||(e=(new Date).toISOString().split("T")[0],RVS.ENV.tracking>=e&&"disabled"!==RVS.ENV.tracking)||RVS.F.showTrackingFirstgo&&RVS.F.showTrackingFirstgo()},RVS.F.showTrackingFirstgo=function(){RVS.F.dontShowTracking||(RVS.F.RSDialog.create({modalid:"#rbm_tracking_firstgo",bgopacity:.8}),tpGS.gsap.from("#rbm_des_rocket",.5,{scale:.3,opacity:0,y:25,x:-25,delay:.5}),tpGS.gsap.from("#rbm_des_charts",.7,{scale:.3,rotation:70,opacity:0,delay:.3}),tpGS.gsap.from("#rbm_des_rsicon",1,{scale:0,rotation:-270,opacity:0,delay:.1}),null==RVS.S.shTFreg&&(RVS.DOC.on("click","#rbm_track_enable",function(){RVS.ENV.tracking="enabled",RVS.ENV.trackingOnOff=!0,RVS.F.updateTrackingInfo()}),RVS.DOC.on("click","#rbm_track_disable",function(){RVS.ENV.tracking=r(5).toISOString().split("T")[0],RVS.ENV.trackingOnOff=!1,RVS.F.updateTrackingInfo()}),RVS.DOC.on("click","#rbm_tracking_firstgo .rbm_close",function(){RVS.ENV.tracking=r(.3).toISOString().split("T")[0],RVS.ENV.trackingOnOff=!1,RVS.F.updateTrackingInfo()}),RVS.S.shTFreg=!0))},setTimeout(function(){RVS.F.reqTracking()},1500),RVS.F.openAddImageDialog=function(e,t,i){e=e||RVS_LANG.select_image,"undefined"!=typeof wp&&void 0!==wp.media?u(e,t,i):v(e,t)},RVS.F.openAddVideoDialog=function(e,t,i){e=e||RVS_LANG.select_image,"undefined"!=typeof wp&&void 0!==wp.media&&p(e,t,i)},RVS.S.layerIcons=jQuery.extend(!0,RVS.S.layerIcons,{zone:"storage",shape:"crop_landscape",image:"filter_hdr",audio:"audiotrack",button:"radio_button_checked",column:"view_column",group:"format_shapes",row:"reorder",object:"filter_drama",svg:"filter_drama",video:"live_tv",linebreak:"keyboard_return"}),RVS.F.getLayerIcon=function(e,t){return void 0!==t&&void 0!==RVS.S.layerIcons[t]?RVS.S.layerIcons[t]:void 0!==e&&void 0!==RVS.S.layerIcons[e]?RVS.S.layerIcons[e]:"title"};var o,s,n,d,c,p=function(e,a,r){null==r&&(r=!1);var o=wp.media({title:e,multiple:r,library:{},button:{text:"Insert"}});o.on("select",function(){var e=o.state().get("selection").first().toJSON(),t=o.state().get("selection"),i=[];1==r?(t.map(function(e){var e=e.toJSON(),t={};t.url=e.url,t.id=e.id,t.width=e.width,t.height=e.height,i.push(t)}),a(i)):a(e.url,e.id,e.width,e.height)}),o.open()},u=function(e,a,r){null==r&&(r=!1);var o=wp.media({title:e,multiple:r,library:{type:"image"},button:{text:"Insert"}});o.on("select",function(){var e=o.state().get("selection").first().toJSON(),t=o.state().get("selection"),i=[];1==r?(t.map(function(e){e=e.toJSON(),e={url:e.url,id:e.id,width:e.width,height:e.height};i.push(e)}),a(i)):a(e.url,e.id,e.width,e.height)}),o.open()},v=function(e,i){var t=encodeURI("type=image&post_id=0&TB_iframe=true");tb_show(e,"media-upload.php?"+t),window.send_to_editor=function(e){tb_remove();var t=jQuery(e).attr("src");t&&null!=t&&""!=t||(t=jQuery("img",e).attr("src")),i(t,"")}};function g(e,t){return null==e?t:e}function m(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.setCookie=function(e,t,i){var a=new Date,i=(a.setTime(a.getTime()+24*i*60*60*1e3),"expires="+a.toUTCString());document.cookie=e+"="+t+";"+i+";path=/"},RVS.F.getCookie=function(e){for(var t=e+"=",i=document.cookie.split(";"),a=0;a<i.length;a++){for(var r=i[a];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(t))return decodeURIComponent(r.substring(t.length,r.length))}return""},RVS.F.toObject=function(e){for(var t={},i=0;i<e.length;++i)t[i]=e[i];return t},RVS.F.RSDialog={create:function(e){e.modalid=e.modalid.replace("#","");var t=jQuery('.rb-modal-wrapper[data-modal="'+e.modalid+'"]');t.addClass("_TPRB_"),t.length?(n=t.find(".rb-modal-inner"),d=t.find(".rb_modal"),c=c||jQuery("#rb_modal_underlay"),e.hasOwnProperty("bgopacity")||(e.bgopacity=.05),s&&s[0].dataset.modal!==e.modalid&&(o=s),(s=t).show(),c.css("z-index",parseInt(t.css("z-index"),10)-1).show(),"rbm_decisionModal"===e.modalid&&RVS.F.RSDialog.doCancelModal(e),RVS.F.RSDialog.center(),tpGS.gsap.to(c,.3,{opacity:e.bgopacity,ease:tpGS.Power3.EaseInOut}),tpGS.gsap.fromTo(t,.3,{autoAlpha:0,scale:.9},{autoAlpha:1,scale:1,ease:tpGS.Power3.EaseInOut})):console.log("modal error: "+e.modalid)},setDragScroll:function(e){0<e?(d.draggable({handle:".rbm_header",axis:!1,cancel:".rbm_close"}),n.RSScroll("destroy")):(d.draggable({handle:".rbm_header",axis:"x",cancel:".rbm_close"}),n.RSScroll({wheelPropagation:!0,suppressScrollX:!1,minScrollbarLength:30}))},center:function(){var e,t;s&&(e=Math.max(.5*window.innerHeight-.5*d.height(),0),t="auto",s[0].dataset.centerineditor&&(t=Math.round(.5*RVS.C.rb.width()-.5*d.width())),RVS.F.RSDialog.setDragScroll(e),d.css({marginTop:Math.ceil(e),marginLeft:t,left:0,top:0}),n.RSScroll("update"))},close:function(e){s&&(tpGS.gsap.killTweensOf(s),s.hide().css("opacity",0)),!o&&c&&(tpGS.gsap.killTweensOf(c),c.hide().css("opacity",0)),c.css("z-index",999995),s=o,o=void 0},doCancelModal:function(e){var t,i;document.getElementById("decmod_icon").innerHTML=e.icon,document.getElementById("decmod_title").innerHTML=e.title,document.getElementById("decmod_maintxt").innerHTML=e.maintext,document.getElementById("decmod_subtxt").innerHTML=e.subtext,void 0!==e.do?(t=document.getElementById("decmod_do_icon"),i=document.getElementById("decmod_do_txt"),void 0!==t&&(t.innerHTML=e.do.icon),void 0!==i&&(i.innerHTML=e.do.text),jQuery("#decmod_do_btn").show().off("click").on("click",function(){void 0!==e.do.event&&RVS.DOC.trigger(e.do.event,e.do.eventparam),void 0!==e.do.callback&&e.do.callback(),!0!==e.do.keepDialog&&(RVS.F.RSDialog.close(),!0!==e.do.closeOnlyOnce)&&RVS.F.RSDialog.close()})):jQuery("#decmod_do_btn").hide(),void 0!==e.cancel?(t=document.getElementById("decmod_dont_icon"),i=document.getElementById("decmod_dont_txt"),void 0!==t&&(t.innerHTML=e.cancel.icon),void 0!==i&&(i.innerHTML=e.cancel.text),jQuery("#decmod_dont_btn").show().off("click").on("click",function(){void 0!==e.cancel.callback&&e.cancel.callback(),RVS.F.RSDialog.close()})):jQuery("#decmod_dont_btn").hide(),e.swapbuttons?jQuery("#decmod_do_btn").css({float:"right",marginLeft:"10px",marginRight:"0px"}):jQuery("#decmod_do_btn").css({float:"none",marginLeft:"0px",marginRight:"10px"})}},RVS.DOC.on("mousedown",".rb_modal",function(){RVS.S.clickStartOnModal=!0}).on("mouseup",".rb_modal",function(){setTimeout(function(){RVS.S.clickStartOnModal=!1},50)}),RVS.DOC.on("click",".rb-modal-content",function(){s&&!0!==RVS.S.clickStartOnModal&&s.find(".rbm_close").trigger("click"),RVS.S.clickStartOnModal=!1}).on("click",".rb_modal",function(e){e.stopPropagation()}).on("keydown",function(e,t){"27"==e.keyCode&&s&&s.find(".rbm_close").trigger("click")}),jQuery(window).on("resize",RVS.F.RSDialog.center),RVS.F.triggerShowHideDep=function(e,t){void 0===e.dataset.show||void 0===e.dataset.hide||"radio"===e.type&&!e.checked?RVS.F.showHideDep({target:e.dataset.showhide,nortarget:e.dataset.hideshow,value:void 0===t?e.value:t,depend:e.dataset.showhidedep}):RVS.F.showHideGroups({hide:e.dataset.hide,show:e.dataset.show,val:t,showprio:e.dataset.showprio})},RVS.F.triggerInput=function(e){if(void 0!==e.inp){var t,i,a=e.inp.split(",");for(t in e.when="true"===e.when||"false"!==e.when&&e.when,e.whennot="true"===e.whennot||"false"!==e.whennot&&e.whennot,a)a.hasOwnProperty(t)&&(i=jQuery(a[t].replace("*val*",e.dep)),void 0!==e.val&&null!=i&&0<i.length&&(e.val=e.val.replace("*val*",e.dep),void 0!==e.when&&e.dep==e.when||void 0!==e.whennot&&e.dep!=e.whennot||void 0===e.when&&void 0===e.whennot)&&("checkbox"===i[0].type?i.checked="false"!==e.val&&!1!==e.val:i.val(e.val)),i.trigger("change"))}},RVS.F.setUnsetHelp=function(e,t,i,a){if(null!=e){var r="";i=void 0===i?"showhide_hidden":i,RVS.S.setUnsetClasses[i]=RVS.S.setUnsetClasses[i]||[];for(var o=0;o<e.length;o++)r+=e[o]+",";RVS.S.setUnsetClasses[i].push({query:r,type:t}),void 0!==a&&RVS.S.setShowHide.push({query:r,type:a}),RVS.S.setUnserRafCalled||RVS.F.setUnsetRAF()}},RVS.F.setUnsetRAF=function(){RVS.S.setUnserRafCalled=!0,requestAnimationFrame(function(){var e,t,i,a,r;for(e in RVS.S.setUnsetClasses)if(RVS.S.setUnsetClasses.hasOwnProperty(e))for(t=0;t<RVS.S.setUnsetClasses[e].length;t++)if(void 0!==(r=RVS.S.setUnsetClasses[e][t].query.slice(0,-1))&&""!==r&&" "!==r&&","!==r)for(a=document.querySelectorAll(","==r[r.length-1]?r.slice(0,-1):r),i=0;i<a.length;i++)a[i].classList[RVS.S.setUnsetClasses[e][t].type](e);for(RVS.S.setUnsetClasses={},t=0;t<RVS.S.setShowHide.length;t++)if(""!=(r=RVS.S.setShowHide[t].query.slice(0,-1))&&void 0!==r&&" "!==r&&","!==r)for(a=document.querySelectorAll(","==r[r.length-1]?r.slice(0,-1):r),i=0;i<a.length;i++)jQuery(a[i])["hide"===RVS.S.setShowHide[t].type?"hide":"show"]();RVS.S.setShowHide=[],RVS.S.setUnserRafCalled=!1})},RVS.F.showHideDep=function(e){var t=void 0!==e.target?e.target.split(","):void 0,i=void 0!==e.nortarget?e.nortarget.split(","):void 0,a="true"===e.depend||"false"!==e.depend&&e.depend;"string"==typeof a&&0<=a.indexOf("!!")?(a=a.replace("!!",""),e.value!==a?(RVS.F.setUnsetHelp(t,"remove",void 0,"show"),RVS.F.setUnsetHelp(i,"add",void 0,"hide")):(RVS.F.setUnsetHelp(t,"add",void 0,"hide"),RVS.F.setUnsetHelp(i,"remove",void 0,"show"))):e.value===a?(RVS.F.setUnsetHelp(t,"remove",void 0,"show"),RVS.F.setUnsetHelp(i,"add",void 0,"hide")):(RVS.F.setUnsetHelp(t,"add",void 0,"hide"),RVS.F.setUnsetHelp(i,"remove",void 0,"show"))},RVS.F.showHideGroups=function(e){void 0!==e.val&&(e.show=e.show.split("*val*").join(e.val).split(" ").join(""),e.hide=e.hide.split("*val*").join(e.val).split(" ").join("")),""!==e.show&&""!==e.hide&&requestAnimationFrame(function(){"hide"===e.showprio?(jQuery(e.show).show(),jQuery(e.hide).hide()):(jQuery(e.hide).hide(),jQuery(e.show).show())})},RVS.F.updateEasyInput=function(e){e.nval="false"!==e.nval&&("true"===e.nval||e.nval),e.path=void 0===e.path?"settings.":e.path;var t=void 0,i="",a=e.el.type,r=e.el.dataset;switch(a){case"checkbox":case"text":case"textarea":case"select-one":case"select-multiple":if(e.multiselection)for(var o in RVS.selLayers)RVS.selLayers.hasOwnProperty(o)&&(i=void 0===e.nval?RVS.F.getDeepVal({root:e.root,path:e.path+RVS.selLayers[o]+"."+e.el.dataset.r}):e.nval,t=null==t||t==i?i:void 0!==r.multiplaceholder?r.multiplaceholder:"");else t=void 0===e.nval?RVS.F.getDeepVal({root:e.root,path:e.path+e.el.dataset.r}):e.nval;if(void 0===t&&void 0!==e.el.dataset.default&&(t=e.el.dataset.default),"select-one"===a)e.el.value=t,jQuery(e.el).ddTP("change");else if("select-multiple"===a&&void 0!==t){Array.isArray(t)||(t=t.split(","));for(var s=0;s<e.el.options.length;s++)e.el.options[s].selected=0<=t.indexOf(e.el.options[s].value);jQuery(e.el).ddTP("change")}else"checkbox"===a?e.el.checked=void 0===t?void 0:"false"!==t&&!1!==t:(e.el.value=t,e.el.history=e.el.value);void 0===r.unselect&&void 0===r.select||RVS.F.setUnsetSelected({unselect:r.unselect,select:r.select,val:e.el.value,rval:r.rval,prval:r.prval,prvalif:r.prvalif}),"layer_action_type"===e.el.id&&(e.el.value=RVS_LANG["layeraction_"+e.el.value]),void 0!==e.el.value&&"undefined"!==e.el.value||(e.el.value=""),"text"===a&&0<=e.el.className.indexOf("my-color-field")&&jQuery(e.el).rsColorPicker("refresh");break;case"radio":if(e.multiselection)for(var o in RVS.selLayers)RVS.selLayers.hasOwnProperty(o)&&(i=void 0===e.nval?e.el.value===RVS.F.getDeepVal({root:e.root,path:e.path+RVS.selLayers[o]+"."+e.el.dataset.r}):e.nval,t=null==t||t==i?i:"");else t=void 0===e.nval?e.el.value===RVS.F.getDeepVal({root:e.root,path:e.path+e.el.dataset.r}):e.nval;e.el.checked=t,void 0===r.unselect&&void 0===r.select||e.el.checked.checked&&RVS.F.setUnsetSelected({unselect:r.unselect,select:r.select,val:e.el.checked,rval:r.rval,prval:r.prval,prvalif:r.prvalif})}},RVS.F.updateEasyInputs=function(t){t.path=void 0===t.path?"settings.":t.path,jQuery(t.container).find(".easyinit").each(function(e){RVS.F.updateEasyInput({el:this,path:t.path,multiselection:t.multiselection,root:t.root}),"init"!==t.trigger&&!t.visualUpdate||("init"===t.trigger&&this.dispatchEvent(new Event("init",{bubbles:!0})),"checkbox"!==this.type)||RVS.F.turnOnOffVisUpdate({input:this})})},RVS.F.getDeepValue=function(e,t){var i;return 1<(t="string"==typeof t?t.split("."):t).length?(i=t.shift(),e.hasOwnProperty(i)?RVS.F.getDeepValue(e[i],t):void 0):e.hasOwnProperty(t[0])?e[t[0]]:void 0},RVS.F.writeDeepPath=function(e,t,i){if("string"==typeof t){var a=t.split("."),r=a.length,o=r-1,s=e;if(r)for(var l=0;l<r;l++)l<o?s=s[a[l]]:s[a[l]]=i}},RVS.F.getConcVals=function(e,t){return e.replace("#size#",t).replace("#curlayer#",void 0!==RVS.selLayers?RVS.selLayers[0]:"#curlayer#").replace("#slide#",RVS.S.slideId).replace("#curslidetrans#",RVS.S.slideTrans).replace("#actionindex#",RVS.S.actionIdx).replace("#targetlayer#",RVS.S.actionTrgtLayerId).replace("#frame#","timeline.frames."+RVS.S.keyFrame).replace("#framekey#",RVS.S.keyFrame)},RVS.F.getDeepVal=function(e){if(!(void 0===e||0<=e.path.indexOf("#targetlayer#")&&(void 0===RVS.S.actionTrgtLayerId||"none"===RVS.S.actionTrgtLayerId)))return RVS.F.getDeepValue(void 0===e.root?RVS.SLIDER:e.root,RVS.F.getConcVals(e.path,(void 0===e.screen?RVS:e).screen))},RVS.F.minMaxCheck=function(e){return e.v="wrong"!==e.v&&void 0!==e.max?Math.min(e.v,e.max):e.v,e.v="wrong"!==e.v&&void 0!==e.min?Math.max(e.v,e.min):e.v,e.v},RVS.F.checkNumInput=function(e){var t,i=RVS.F.isNumeric(e.val),a=i?e.val:e.val.replace(/[^0-9\.\-]+/g,""),r=i?"":e.val.replace(/[0-9\.\-]+/g,""),i=void 0!==e.history?e.history.replace(/\d+/,""):"px",o=void 0!==e.allowed?e.allowed.toLowerCase().split(","):["px"],s="",a=""===a?"wrong":a,r=r.toLowerCase();if(0<=jQuery.inArray("random",o)&&"{"===r[0]&&"}"===r[r.length-1]||0<=jQuery.inArray("cycle",o)&&"["===r[0]&&"]"===r[r.length-1]||0<=jQuery.inArray("dir",o)&&"("===(""+e.val)[0]&&")"===(""+e.val)[(""+e.val).length-1])return e.val=e.val.replace(/[^[\d||%||(||)||\-||{||}||.||,||\[||\]]+/g,""),e.val;if(0<=jQuery.inArray("#/#",o)&&"#"===r[0]&&"#"===r[r.length-1]&&"/"===e.val[2])return e.val;for(t in o)!o.hasOwnProperty(t)||r!=o[t]&&r!="-"+o[t]||(s=o[t]);return"wrong"===a&&""===s&&0<e.val.length?"badvalue":(a="wrong"===a?0:a,"%"===s||"px"===s||"ms"===s||"deg"===s||"chars"===s||"words"===s||"char"===s||"-%"===s||"-px"===s||"-ms"===s||"-deg"===s||"x"===s?RVS.F.minMaxCheck({v:a,min:e.min,max:e.max})+s:""!==s?s.toLowerCase():e.val.length<=1||e.val==a?0<=jQuery.inArray("none",o)&&0===a?"none":(i=0<=jQuery.inArray(i,o)&&("px"===i||"%"===i||"ms"===i||"deg"===i||"char"===i||"chars"===i||"words"===i||"x"===s)?i:0<=jQuery.inArray("px",o)?"px":0<=jQuery.inArray("ms",o)?"ms":0<=jQuery.inArray("%",o)?"%":0<=jQuery.inArray("deg",o)?"deg":0<=jQuery.inArray("chars",o)?"chars":0<=jQuery.inArray("words",o)?"words":0<=jQuery.inArray("x",o)?"x":"",RVS.F.minMaxCheck({v:a,min:e.min,max:e.max})+i):"badvalue")},RVS.DOC.on("change init update focus",".tos2, .basicinput, .scblockinput, .slideinput, .sliderinput, .globalinput, .layerinput, .navinput, .navstyleinput, .indeplayerinput, .actioninput, .targetlayeractioninput",function(e){var t=e.currentTarget,i=t.dataset,a="checkbox"===t.type?this.checked:this.value;if(i.numeric){if("badvalue"===(a=RVS.F.checkNumInput({val:a,allowed:i.allowed,history:i.history,min:i.min,max:i.max})))return void t.classList.add("badvalue");t.classList.remove("badvalue"),t.value=a,i.history=t.value}if("true"===i.sanitize&&(a=RVS.F.sanitize_input(a)),void 0!==t.type&&0<=t.type.indexOf("select")&&(void 0===i.select2rsId&&0<=(" "+t.className).indexOf(" tos2")&&(0<=t.className.indexOf("wpml_lang_selector")&&jQuery(t).ddTP({placeholder:"Select From List",pre:'<span><img src="#data#" class="wpml-img-flag" />',preData:"src"}),jQuery(t).ddTP({placeholder:0<=(" "+t.className).indexOf(" searchbox")?"Enter or Select":"Select From List"})),"select-multiple"===t.type))for(var r in a=[],t.selectedOptions)t.selectedOptions.hasOwnProperty(r)&&a.push(t.selectedOptions[r].value);switch(void 0===i.showhide&&void 0===i.show&&void 0===i.hide||"radio"===t.type&&!t.checked||RVS.F.triggerShowHideDep(t,a),void 0===i.unselect&&void 0===i.select||"radio"===t.type&&!t.checked||RVS.F.setUnsetSelected({unselect:i.unselect,select:i.select,val:a,rval:i.rval,prval:i.prval,prvalif:i.prvalif}),void 0===i.setclasson&&void 0===i.class||"radio"===t.type&&!t.checked||RVS.F.setUnsetClass({container:"body"===i.setclasson?document.body:document.getElementById(i.setclasson),class:i.class,inversclass:i.inversclass,val:a,rval:i.rval}),void 0===i.disable&&void 0===i.enable||"radio"===t.type&&!t.checked||RVS.F.setEnableDisable({disable:i.disable,enable:i.enable,switch:"switch"===i.disableenable,val:a}),void 0===i.available&&void 0===i.unavailable||"radio"===t.type&&!t.checked||RVS.F.setUnAvailable({unavailable:i.unavailable,available:i.available,val:a}),void 0!==i.change&&(void 0!==i.changewhen&&(a===i.changewhen||!0===a&&"true"===i.changewhen||!1===a&&"false"===i.changewhen)&&RVS.F.setInputTo({field:i.change,val:i.changeto,path:i.path}),void 0!==i.changewhennot)&&a!==i.changewhennot&&(!1!==a&&"false"!==a||i.changewhennot+""!="false")&&(!0!==a&&"true"!==a||i.changewhennot+""!="true")&&RVS.F.setInputTo({field:i.change,val:i.changeto,path:i.path}),void 0!==i.updatetext&&(document.getElementById(i.updatetext.replace("#","")).innerText=a),e.type){case"change":void 0!==i.r&&(void 0!==i.valcheck&&RVS.F.hasOwnProperty(i.valcheck)&&"function"==typeof RVS.F[i.valcheck]&&(a=RVS.F[i.valcheck](a),i.numeric&&(a=RVS.F.checkNumInput({val:a,allowed:i.allowed,history:i.history,min:i.min,max:i.max})),this.value=a,i.history=a),0<=(" "+this.className).indexOf(" scblockinput")&&RVS.F.writeDeepPath(RVS.SC.BLOCK,i.r,a),0<=(" "+this.className).indexOf(" slideinput")&&RVS.F.updateSliderObj({path:RVS.S.slideId+".slide."+i.r,val:a,evt:i.evt,evtparam:i.evtparam}),0<=(" "+this.className).indexOf(" navstyleinput")&&(RVS.F.updateSliderObj({path:i.r+"-def",val:!0}),jQuery("#"+e.currentTarget.id+"-def").prop("checked","checked"),RVS.F.turnOnOff(RVS.F.closestClass(document.getElementById(e.currentTarget.id+"-def"),"tponoffwrap"),!1),RVS.F.updateSliderObj({path:i.r,val:a,evt:i.evt,evtparam:i.evtparam})),0<=(" "+this.className).indexOf(" globalinput")&&RVS.F.updateSliderObj({path:i.r,val:a,evt:i.evt,evtparam:i.evtparam}),0<=(" "+this.className).indexOf(" sliderinput")&&RVS.F.updateSliderObj({path:"settings."+i.r,val:a,evt:i.evt,evtparam:i.evtparam}),0<=(" "+this.className).indexOf(" layerinput")&&"true"!==i.updateviaevt&&1!=i.updateviaevt&&RVS.F.updateLayerObj({path:i.r,val:a,evt:i.evt,evtparam:i.evtparam}),0<=(" "+this.className).indexOf(" actioninput")&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[0]+"."+i.r,val:a,evt:i.evt,evtparam:i.evtparam}),0<=(" "+this.className).indexOf(" targetlayeractioninput")&&(void 0!==RVS.S.actionTrgtLayerId&&0<=(""+RVS.S.actionTrgtLayerId).indexOf("static-")?RVS.F.updateSliderObj({path:RVS.SLIDER.staticSlideId+".layers."+(""+RVS.S.actionTrgtLayerId).replace("static-","")+"."+i.r,val:a,evt:i.evt,evtparam:i.evtparam}):RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.S.actionTrgtLayerId+"."+i.r,val:a,evt:i.evt,evtparam:i.evtparam})),0<=(" "+this.className).indexOf(" indeplayerinput")&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+i.r,val:a,evt:i.evt,evtparam:i.evtparam}),0<=(" "+this.className).indexOf(" presetToCustom")&&(jQuery("#sr_"+i.evtparam+"_style_preset").val("").ddTP("change"),RVS.SLIDER.settings.nav[i.evtparam].preset=""),void 0!==this.dataset.triggerinp)&&RVS.F.triggerInput({inp:this.dataset.triggerinp,dep:a,val:this.dataset.triggerinpval,when:this.dataset.triggerwhen,whennot:this.dataset.triggerwhennot}),void 0!==i.evt&&0<=(" "+this.className).indexOf(" callEvent")&&jQuery(document.body).trigger(i.evt,{event:e,val:a,eventparam:i.evtparam});break;case"focusin":void 0!==i.focusevt&&RVS.DOC.trigger(i.focusevt,{event:e,val:a,eventparam:i.focusevtparam}),void 0!==i.responsive&&(RVS.S.respInfoBar.visible=!0,RVS.F.showFieldResponsiveValues(this)),"true"==i.cursortoclick?window.setTimeout(function(){var e;"number"==typeof(e=this).selectionStart?e.selectionStart=e.selectionEnd=e.value.length:void 0!==e.createTextRange&&(e.focus(),(e=e.createTextRange()).collapse(!1),e.select())},1):jQuery(this).trigger("select")}}),RVS.F.showInfo=function(e){var t,i;"register"==e.type&&0<jQuery("#rbm_activate_slider").length||(t="register"==e.type?e.content:'<i class="material-icons info">info</i>',"info"==e.type&&(t='<i class="material-icons info">info</i>'),"goodtoknow"==e.type&&(t='<i class="material-icons goodtoknow">mode_comment</i>'),"warning"==e.type&&(t='<i class="material-icons cancel">close</i>'),"success"==e.type&&(t='<i class="material-icons ok">done</i>'),e.showdelay=null!=e.showdelay?e.showdelay:0,e.hidedelay=null!=e.hidedelay?e.hidedelay:0,0===jQuery("#rb_maininfo_wrap").length&&jQuery(document.body).append('<div id="rb_maininfo_wrap"></div>'),0==jQuery("#eg-toolbox-wrapper").length&&jQuery("#rb_maininfo_wrap").append('<div id="eg-toolbox-wrapper"></div>').appendTo(jQuery(document.body)),"register"===e.type?jQuery("#eg-toolbox-wrapper").append(t):jQuery("#eg-toolbox-wrapper").append('<div class="eg-toolbox newadded">'+t+e.content+"</div>"),(i=jQuery("#eg-toolbox-wrapper").find(".eg-toolbox.newadded")).removeClass("newadded"),tpGS.gsap.fromTo(i,.5,{y:-50,autoAlpha:0,transformOrigin:"50% 50%",transformPerspective:900,rotationX:-90},{autoAlpha:1,y:0,rotationX:0,ease:"back.out",delay:e.showdelay}),"event"!=e.hideon?(("register"==e.type?i.find(".rbmas_close"):i).on("click",function(){tpGS.gsap.to(i,.3,{x:200,ease:"power3.inOut",autoAlpha:0,onComplete:function(){i.remove()}})}),0!=e.hidedelay&&"click"!=e.hideon&&tpGS.gsap.to(i,.3,{x:200,ease:"power3.inOut",autoAlpha:0,delay:e.hidedelay+e.showdelay,onComplete:function(){i.remove()}})):jQuery("#eg-toolbox-wrapper").on(e.event,function(){tpGS.gsap.to(i,.3,{x:200,ease:"power3.inOut",autoAlpha:0,onComplete:function(){i.remove()}})}))},RVS.F.showRegisterSliderInfo=function(){void 0===window.rbmContent&&(window.rbmContent='<div id="rbm_activate_slider" class="eg-toolbox newadded _TPRB_">',window.rbmContent+='<div class="rbmas_close"><i class="material-icons">close</i></div>',window.rbmContent+='<div class="rbmas_def_page">',window.rbmContent+='\t<div class="rbmas_title">'+RVS_LANG.active_sr_to_access+"</div>",window.rbmContent+='\t<div class="rbmas_benef"><i class="material-icons">check</i>'+RVS_LANG.active_sr_tmp_obl+"</div>",window.rbmContent+='\t<div class="rbmas_benef"><i class="material-icons">check</i>'+RVS_LANG.addons+"</div>",window.rbmContent+='\t<div class="rbmas_benef"><i class="material-icons">check</i>'+RVS_LANG.active_sr_inst_upd+"</div>",window.rbmContent+='\t<div class="rbmas_benef"><i class="material-icons">check</i>'+RVS_LANG.active_sr_one_on_one+"</div>",window.rbmContent+='\t<div class="dcenter">',window.rbmContent+='\t\t<div class="div30"></div><div id="rbmas_active_plugin_now" style="width:220px" class="basic_action_button longbutton basic_action_lilabutton"><i class="material-icons">vpn_key</i>'+(RVS.ENV.selling?RVS_LANG.ihavelicensekey:RVS_LANG.ihavepurchasecode)+"</div>",window.rbmContent+='\t\t<div class="div0"></div><a href="'+(RVS.ENV.selling?"https://account.sliderrevolution.com/portal/pricing/?utm_source=admin&utm_medium=button&utm_campaign=srusers&utm_content=buykey":"https://www.themepunch.com/links/slider_revolution_wordpress_regular_license")+'" target="_blank" rel="noopener" style="width:220px" class="basic_action_button longbutton basic_action_coloredbutton"><i class="material-icons">shopping_cart</i>'+(RVS.ENV.selling?RVS_LANG.getlicensekey:RVS_LANG.getpurchasecode)+"</a>",window.rbmContent+="\t</div>",window.rbmContent+="</div>",window.rbmContent+='<div class="rbmas_activate_page">',window.rbmContent+='\t<div class="rbmas_title">'+(RVS.ENV.selling?RVS_LANG.active_sr_plg_activ_key:RVS_LANG.active_sr_plg_activ)+"</div>",window.rbmContent+='\t<input class="codeinput" id="rbmas_purchasekey" placeholder="'+(RVS.ENV.selling?RVS_LANG.enterlicensekey:RVS_LANG.enterpurchasecode)+'">',window.rbmContent+='\t<purplebutton id="rbmas_activateplugin" class="fullwidth mcg_next_page"><i class="material-icons">vpn_key</i>'+(RVS.ENV.selling?RVS_LANG.registerKey:RVS_LANG.registerCode)+"</purplebutton>",window.rbmContent+='\t<div class="dcenter">',window.rbmContent+='\t\t<div class="div65"></div><div class="rbmas_solidtitle">'+(RVS.ENV.selling?RVS_LANG.onelicensekey:RVS_LANG.onepurchasekey)+"</div>",window.rbmContent+='\t\t<div class="div30"></div><div class="rbmas_solidtext">'+(RVS.ENV.selling?RVS_LANG.onelicensekey_info:RVS_LANG.onepurchasekey_info)+"</div>",window.rbmContent+='\t\t<div class="div30"></div><a '+(RVS.ENV.selling?'style="width:185px !important; margin-right:10px;"':"")+' href="'+(RVS.ENV.selling?"https://account.sliderrevolution.com/portal/pricing/":"https://www.themepunch.com/links/slider_revolution_wordpress_regular_license")+'" target="_blank" rel="noopener" class="basic_action_button longbutton basic_action_coloredbutton"><i class="material-icons">shopping_cart</i>'+(RVS.ENV.selling?RVS_LANG.getlicensekey:RVS_LANG.getpurchasecode)+"</a>",RVS.ENV.selling&&(window.rbmContent+='<a href="https://account.sliderrevolution.com/portal/" target="_blank" rel="noopener" style="width:185px !important" class="basic_action_button longbutton basic_action_coloredbutton basic_action_coloredpurplebutton"><i class="material-icons">person</i>'+RVS_LANG.membersarea+"</a>"),window.rbmContent+="\t</div>",window.rbmContent+="</div>",window.rbmContent+='<div id="rbm_activate_slider_deco"></div>',window.rbmContent+="<div>",RVS.DOC.on("click","#rbmas_active_plugin_now",function(){return jQuery("#rbm_activate_slider").addClass("rbmas_show_activate"),!1})),RVS.F.showInfo({content:window.rbmContent,type:"register",showdelay:0,hidedelay:0,hideon:"",event:""})},RVS.F.showWaitAMinute=function(e){var t=jQuery("#waitaminute");return RVS.S.wamCounter=void 0===RVS.S.wamCounter?0:RVS.S.wamCounter,null!=e.delay&&(RVS.S.wamCounter++,tpGS.gsap.to(t,.3,{autoAlpha:1,ease:"power3.inOut"}),tpGS.gsap.set(t,{display:"block"}),setTimeout(function(){RVS.S.wamCounter--,0===RVS.S.wamCounter&&tpGS.gsap.to(t,.3,{autoAlpha:0,ease:"power3.inOut",onComplete:function(){tpGS.gsap.set(t,{display:"block"})}})},e.delay)),null!=e.fadeIn&&(t&&0<t.length&&(tpGS.gsap.to(t,e.fadeIn/1e3,{autoAlpha:1,ease:"power3.inOut"}),tpGS.gsap.set(t,{display:"block"})),RVS.S.wamCounter++),null!=e.fadeOut&&(RVS.S.wamCounter--,RVS.S.wamCounter=RVS.S.wamCounter<0?0:RVS.S.wamCounter,RVS.S.wamCounter<=0)&&t&&0<t.length&&tpGS.gsap.to(t,e.fadeOut/1e3,{autoAlpha:0,ease:"power3.inOut",onComplete:function(){tpGS.gsap.set(t,{display:"block"})}}),null!=e.text?"progress1"!==e.text&&t.html('<div class="waitaminute-message">'+e.text+"</div>"):t.html('<div class="waitaminute-message">'+RVS_LANG.please_wait_a_moment+"</div>"),!0},RVS.F.turnOnOff=function(e,t){var i=e.getElementsByTagName("INPUT")[0];!0===i.checked?t?(i.checked=!1,i.dispatchEvent(new Event("change",{bubbles:!0})),e.classList.add("off")):e.classList.remove("off"):t?(i.checked=!0,i.dispatchEvent(new Event("change",{bubbles:!0})),e.classList.remove("off")):e.classList.add("off")},RVS.F.turnOnOffVisUpdate=function(e){e.btn=void 0===e.btn?RVS.F.closestClass(e.input,"tponoff_inner"):e.btn,null!==e.btn&&void 0!==e.btn&&(e.wrap=RVS.F.closestClass(e.btn,"tponoffwrap"),e.input=void 0===e.input?e.btn.getElementsByTagName("INPUT")[0]:e.input,!0===e.input.checked?(e.wrap.classList.add("on"),e.wrap.classList.remove("off")):(e.wrap.classList.add("off"),e.wrap.classList.remove("on")))},RVS.F.initOnOff=function(e){"document"===(e=void 0===e?"document":void 0===e[0]?e:e[0])&&void 0===RVS.S.initOnOffList.document&&(RVS.S.initOnOffList.document=!0),"document"!==e&&void 0===RVS.S.initOnOffList[e.id]&&(RVS.S.initOnOffList[e.id]=e),!0!==RVS.S.initOnOffListRaff&&(RVS.S.initOnOffListRaff=!0,requestAnimationFrame(function(){if(void 0!==RVS.S.initOnOffList.document)RVS.F.initOnOffRAF(document);else for(var e in RVS.S.initOnOffList)RVS.S.initOnOffList.hasOwnProperty(e)&&RVS.F.initOnOffRAF(RVS.S.initOnOffList[e]);RVS.S.initOnOffList={},delete RVS.S.initOnOffListRaff}))},RVS.F.initOnOffRAF=function(e){var t,i,a,r,o,s=e.querySelectorAll("input[type='checkbox']");for(t in s)s.hasOwnProperty(t)&&-1==s[t].className.indexOf("simplechkbx")&&-1==s[t].className.indexOf("tponoff")&&(s[t].className+=" tponoff",i=RVS.F.cE({cN:"tponoffwrap"}),a=RVS.F.cE({cN:"tponoff_inner"}),r=RVS.F.cE({cN:"tponoff_on"}),o=RVS.F.cE({cN:"tponoff_off"}),r.textContent="On",o.textContent="Off",a.appendChild(o),a.appendChild(r),i.appendChild(a),i=s[t].parentNode.insertBefore(i,s[t]),r.appendChild(s[t]));void 0===l&&(l=!0,RVS.DOC.on("click",".tponoffwrap",function(){RVS.F.turnOnOff(this,!0)})),RVS.F.updateAllOnOff()},RVS.F.updateAllOnOff=function(){void 0===RVS.S.updateingAllOnOff&&(RVS.S.updateingAllOnOff=!0,requestAnimationFrame(function(){jQuery(".tponoffwrap").each(function(){RVS.F.turnOnOff(this,!1)}),delete RVS.S.updateingAllOnOff}))},RVS.F.getAllShortCodes=function(){console.log(""),console.log("%c ------- INSERT SHORTCODE PARAMETERS INTO TEMPLATE LIBRARY --------","background:#222;color:#bada55"),console.log(""),jQuery(".slider_slug").find("input").each(function(){var e=RVS.SC.parseShortCode(this.value),t="";void 0!==e&&void 0!==e.attributes&&(void 0!==(e=e.attributes).usage&&(t+=' usage="'+e.usage+'"'),void 0!==e.modal&&(t+=' modal="'+e.modal+'"'),void 0!==e.offset&&(t+=' offset="'+e.offset+'"'),void 0!==e.layout&&(t+=' layout="'+e.layout+'"'),void 0!==e.zindex&&(t+=' zindex="'+e.zindex+'"'),""!==t)&&void 0!==t&&(console.log("%c==== "+e.alias+" ==== ","background:#222;font-size:13px; line-height:15px;"),console.log("%c"+t,"background:#222;color:#c0392b;font-size:10px; line-height:15px;"),console.log(""))}),console.log("%c -------------------------------------------------------------------","background:#222;color:#bada55")},RVS.F.ajaxRequest=function(a,e,t,r,i,o,s){e={action:RVS.ENV.ajax_pre+"_ajax_action",client_action:a,nonce:RVS.ENV.nonce,data:e};R(),h(),b(),void 0===r&&(void 0!==o?RVS.F.showWaitAMinute({fadeIn:500,text:o}):RVS.F.showWaitAMinute({fadeIn:500,text:RVS_LANG.please_wait_a_moment})),jQuery.ajax({type:"post",url:ajaxurl,dataType:"json",data:e,success:function(e){if(void 0!==r||e.is_redirect||RVS.F.showWaitAMinute({fadeOut:500}),S(),!e)return RVS.F.showErrorMessage("Empty ajax response!"),!1;if(-1==e)return RVS.F.showErrorMessage("ajax error!!!"),!1;if(0==e)return RVS.F.showErrorMessage("ajax error, action: <b>"+a+"</b> not found"),!1;if(null==e.success)return RVS.F.showErrorMessage("The 'success' param is a must!"),!1;if(0==e.success){if(void 0===i)return RVS.F.showErrorMessage(e.message),!1;"function"==typeof t&&t(e)}else"function"==typeof t&&t(e),e.message&&!0!==s&&y(e.message),e.is_redirect&&(location.href=e.redirect_url)},error:function(e,t,i){switch(void 0===r&&RVS.F.showWaitAMinute({fadeOut:500}),S(),a){case"preview_slider":jQuery("#rbm_preview .rbm_close").trigger("click"),RVS.F.showInfo({content:RVS_LANG.previewnotworking,type:"info",showdelay:0,hidedelay:5,hideon:"",event:""});break;case"check_system":RVS.F.showInfo({content:RVS_LANG.checksystemnotworking,type:"info",showdelay:0,hidedelay:5,hideon:"",event:""});break;default:"parsererror"==t&&RVS.F.debug(e.responseText),RVS.F.showErrorMessage("Ajax Error!!! "+t)}}})},RVS.F.showErrorMessage=function(e){RVS.F.showInfo({content:e,type:"warning",showdelay:0,hidedelay:3,hideon:"",event:""}),f()},RVS.F.setErrorMessageID=function(e){t=e},RVS.F.setSuccessMessageID=function(e){i=e},RVS.F.hideSuccessMessage=function(){i?(jQuery("#"+i).hide(),i=null):jQuery("#success_message").slideUp("slow").fadeOut("slow"),f()},RVS.F.getNewGlobalObject=function(e){var t={};return e=null==e?{}:e,t.version=t.version<"6.0.0"?"6.0.0":t.version,t.permission=g(e.permission,"admin"),t.lang=g(e.lang,"default"),t.allinclude=m(g(e.allinclude,!0)),t.highContrast=m(g(e.highContrast,!1)),t.templateGuide=m(g(e.templateGuide,!0)),t.moduleGuide=m(g(e.moduleGuide,!0)),t.includeids=g(e.includeids,""),t.script=g(e.script,{footer:!0,defer:!0,full:!1,async:!0,ytapi:!0}),t.imgcrossOrigin=g(e.imgcrossOrigin,"unset"),t.lazyloaddata=g(e.lazyloaddata,""),t.fontdownload=g(e.fontdownload,"off"),t.script.footer=m(t.script.footer),t.script.defer=m(t.script.defer),t.script.async=m(t.script.async),t.script.full=m(t.script.full),t.fontawesomedisable=m(e.fontawesomedisable),t.onedpronmobile=m(e.onedpronmobile),t.forceLazyLoading=g(e.forceLazyLoading,"smart"),t.forceViewport=g(e.forceViewport,!0),t.lazyonbg=g(e.lazyonbg,!1),t.forcedViewportDistance=g(e.forcedViewportDistance,"-200px"),t.internalcaching=m(e.internalcaching),t.tracking=g(e.tracking,"1999-01-01"),t.trackingOnOff="enabled"==t.tracking,t.fonturl=g(e.fonturl,""),t.size=g(e.size,{desktop:1240,notebook:1024,tablet:778,mobile:480}),t.customfonts=g(e.customfonts,""),t.customFontList=g(e.customFontList,[{family:"",url:"",frontend:!1,backend:!0,weights:"200,300,400,500,600,700,800,900"}]),t};var h=function(){e&&jQuery("#"+e).show()},S=function(){e&&(jQuery("#"+e).hide(),e=null)},b=function(){if(a){var e=a.split(",");if(1<e.length)for(var t=0;t<e.length;t++)jQuery("#"+e[t]).hide();else jQuery("#"+a).hide()}},f=function(){if(a){var e=a.split(",");if(1<e.length)for(var t=0;t<e.length;t++)jQuery("#"+e[t]).show();else jQuery("#"+a).show();a=null}},R=function(){null!==t?(jQuery("#"+t).hide(),t=null):jQuery("#error_message").hide()},y=function(e){RVS.F.showInfo({content:e,type:"success",showdelay:0,hidedelay:1,hideon:"",event:""}),f()}}(),window.UniteLayersRev={addon_callbacks:[]},UniteLayersRev.addPreventLeave=UniteLayersRev.add_layer_actions=UniteLayersRev.add_layer_change=function(){console.log("Function is depricated. Please Update Addons")},function(o,c){"use strict";function p(e,t,i,a){return V({c:"ddTP_RO"+(u.highlighted===c&&e.selected?" ddTP_RO--highlighted":""),v:e.value,id:a,aS:e.selected,iT:e.text===c||""===e.text?e.value:e.text,iTB:b(i,m(i,e.dataset,e.value)),optid:t,group:"OPTGROUP"===e.tagName?e.label:c})}function s(e){if(e.sel!=c&&e.sel.options!=c){var t,i;for(i in e.sel.options){if(!e.sel.options.hasOwnProperty(i)||t)continue;t=e.sel.options[i].value==e.value?e.sel.options[i]:t}t!==c&&e.sel.removeChild(t)}}function r(e){requestAnimationFrame(function(){O(e,!0)})}function e(e){u.INFOCUS!==c&&-1===e.target.className.indexOf("ddTP")&&R()}function t(e){var t;if(u.INFOCUS!==c&&u.highlighted!==c)return(t=e.which||e.keyCode)===l.UP||t===l.DOWN?(ddTPcache[u.INFOCUS].sel.multiple?null!==u.liSearch&&u.liSearch!==c&&u.liSearch.blur():u.searchi.blur(),L(t===l.UP?"previousElementSibling":"nextElementSibling"),e.preventDefault(),!1):t!==l.ENTER||ddTPcache[u.INFOCUS].params.tags?void 0:(B(),u.highlighted!==c&&C(u.highlighted),e.preventDefault(),!1)}var i,u,l={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,CMD:227,CMDR:91,CMDL:93,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},a=o(document),n=(window.ddTPCalls=["destroy","update","rebuild","change","main"],window.ddTP_R_cache={},window.ddTPcache={},o.fn.extend({select2RS:function(e,t){return o(this).ddTP(e,t)},ddTP:function(e,t){return"destroy"==e||"update"==e||"rebuild"==e||"change"==e?(window.ddTP_R_cache[e]=window.ddTP_R_cache[e]===c?{list:[],params:[]}:window.ddTP_R_cache[e],window.ddTP_R_cache[e].list.push(this),window.ddTP_R_cache[e].params.push(t)):(window.ddTP_R_cache.main=window.ddTP_R_cache.main===c?{list:[],params:[]}:window.ddTP_R_cache.main,window.ddTP_R_cache.main.list.push(this),window.ddTP_R_cache.main.params.push(e)),window.ddTP_R_RFACalled===c&&(window.ddTP_R_RFACalled=!0,requestAnimationFrame(function(){for(var e,t,i=0;i<window.ddTPCalls.length;i++)if(e=window.ddTPCalls[i],window.ddTP_R_cache[e]!==c)for(t in window.ddTP_R_cache[e].list)n(window.ddTP_R_cache[e].list[t],e,window.ddTP_R_cache[e].params[t]);window.ddTP_R_cache={},delete window.ddTP_R_RFACalled})),i===c&&I(),this}}),function(e,t,i){if("destroy"==t)for(a in e)e.hasOwnProperty(a)&&e[a]!==c&&"SELECT"===e[a].tagName&&e[a].id!==c&&""!==e[a].id&&ddTPcache[e[a].id]!==c&&v(e[a]);else if("update"==t)for(a in e)e.hasOwnProperty(a)&&e[a]!==c&&"SELECT"===e[a].tagName&&e[a].id!==c&&""!==e[a].id&&ddTPcache[e[a].id]!==c&&u.INFOCUS===e[a].id&&O(e[a].id,!0);else if("rebuild"==t)for(var a in e)!e.hasOwnProperty(a)||e[a]===c||"SELECT"!==e[a].tagName||e[a].id===c&&""===e[a].id||(v(e[a]),d(e[a],i));else if("change"==t)for(var a in e)e.hasOwnProperty(a)&&e[a].id!==c&&""!==e[a].id&&ddTPcache[e[a].id]!==c&&g(ddTPcache[e[a].id].rendered,h(e[a],ddTPcache[e[a].id].params));else for(var a in e)!e.hasOwnProperty(a)||e[a]===c||"SELECT"!==e[a].tagName||e[a].id!==c&&""!==e[a].id&&ddTPcache[e[a].id]!==c||d(e[a],i)}),d=function(e,t){e.id!==c&&""!==e.id||(e.id="ddTP_"+Math.round(1e10*Math.random())),e.classList.add("ddTP_hidden"),e.classList.add("ddTP_based");var i,a,r=ddTPcache[e.id]===c?document.createElement("span"):ddTPcache[e.id].container,o=document.createElement("span"),s=document.createElement("span"),l=document.createElement(e.multiple?"ul":"span");r.className="ddTP ddTP_C ddTP-fake"+(e.dataset.theme!==c?" ddTP_C--"+e.dataset.theme:""),o.className="selection",s.className="ddTP_S ddTP_S--"+(e.multiple?"multiple":"single"),l.className="ddTP_S__rendered",r.dataset.refid=e.id,o.dir="ltr",o.appendChild(s),s.appendChild(l),e.multiple||(i=document.createElement("span"),a=document.createElement("b"),i.className="ddTP_S__arrow",s.appendChild(i),i.appendChild(a)),g(l,h(e,t)),r.appendChild(o),T(r,e),ddTPcache[e.id]={sel:e,container:r,innerwrapper:o,selection:s,rendered:l,params:t===c?{}:t}},v=function(e){ddTPcache!=c&&ddTPcache[e.id]!=c&&ddTPcache[e.id].container!=c&&null!=ddTPcache[e.id].container.parentNode&&(ddTPcache[e.id].container.parentNode.removeChild(ddTPcache[e.id].container),ddTPcache[e.id].container.innerHTML="",delete ddTPcache[e.id])},g=function(e,t){requestAnimationFrame(function(){"UL"===e.tagName?(e.innerHTML="",e.appendChild(t.values)):t.html?e.innerHTML=t.values:e.innerText=t.values})},m=function(e,t,i){return t===c||e===c?c:e.preDatas!==c?{data:t[e.preDatas.data],style:t[e.preDatas.style]}:e.preData!==c?t[e.preData]:e.preDataFunction!==c?e.preDataFunction(i):c},h=function(e,t){if(e.multiple){var i=document.createDocumentFragment(),a=!1;for(o in e.options)e.options[o]!==c&&e.options[o].selected&&(a=!0,i.appendChild(f(e.options[o].value,e.options[o].text===c?e.options[o].value:e.options[o].text,c,e.id,t,m(t,e.options[o].dataset,e.options[o].value))));return t!==c&&(t.tags||t.search)&&(u.liSearch=document.createElement("li"),u.liSearch.className="ddTP_SCH ddTP_SCH--inline",u.liSearch.appendChild(S(t.searchValue,e.id)),i.appendChild(u.liSearch),a=!0),a||i.appendChild(f(c,t===c||t.placeholder===c?"":t.placeholder,!0,e.id,t,m(t,e.options[o].dataset,e.options[o].value))),{values:i}}var r,o,i="",s=!1;for(o in e.options)o!==e.options[o].id&&e.options[o].selected&&((r=(r=m(t,e.options[o].dataset,e.options[o].value))!==c?b(t,r):c)!==c&&(s=!0),i+=(r===c?"":r)+(e.options[o].text===c?e.options[o].value:e.options[o].text));return{html:s,values:""===i?t===c||t.placeholder===c?"":t.placeholder:i}},S=function(e,t){var i=document.createElement("input");return i.className="ddTP_SCH__field",i.dataset.refid=t,i.tabindex="0",i.autocomplete="off",i.autocorrect="off",i.autocapitalize="none",i.spellcheck="false",i.role="searchbox",i.ariaAutocomplete="list",i.placeholder="",i.type="search",e!==c&&0<e.length?(i.value=e,i.style.width=.75*(i.value.length+1)+"em"):i.style.width="0.75em",i},b=function(e,t){return e!==c&&e.pre!==c?"object"==typeof t?e.pre.replace("#data#",t.data).replace("#style#",t.style):e.pre.replace("#data#",t):c},f=function(e,t,i,a,r,o){t=V({c:"ddTP_S__choice"+(i?" isplaceholder":""),v:e,id:a,iH:t||e,iTB:b(r,o)});return i||((e=document.createElement("span")).className="ddTP_S__choice__remove",e.innerText="x",e.dataset.refid=a,t.appendChild(e)),t},R=function(){var e;u.INFOCUS!=c&&(e=window.ddTPcache[u.INFOCUS],u.wrap.classList.remove("ddTP_C--open"),e.container.classList.remove("ddTP_C--open"),e.container.classList.remove("ddTP_C--focus"),null!==u.liSearch&&u.liSearch!==c&&(u.liSearch.style.display="none"),tpGS.gsap.set(u.wrap,{display:"none"}),delete u.timeStamp,delete u.INFOCUS,delete u.highlighted,k())},y=function(){var e;u.timeStamp!==c&&u.INFOCUS!==c&&window.ddTPcache[u.INFOCUS]!==c&&window.ddTPcache[u.INFOCUS].container!==c&&(e=window.ddTPcache[u.INFOCUS].container.getBoundingClientRect(),tpGS.gsap.set(u.wrap,{x:e.left+u.drop.offsetWidth>window.innerWidth?e.left+(window.innerWidth-25-(e.left+u.drop.offsetWidth)):e.left,y:window.pageYOffset+e.bottom+u.drop.offsetHeight>window.pageYOffset+window.innerHeight-50?window.pageYOffset+e.top-u.drop.offsetHeight:e.bottom+window.pageYOffset}),requestAnimationFrame(function(){y()}))},_=function(){u.highlighted!==c&&null!==u.highlighted&&(u.ul.scrollTop+50>u.highlighted.offsetTop?u.ul.scrollTop=Math.max(0,u.highlighted.offsetTop-100):u.ul.scrollTop-300<u.highlighted.offsetTop&&(u.ul.scrollTop=u.highlighted.offsetTop-200))},V=function(e){var t=document.createElement("li");return e.group!==c?t.innerHTML='<strong class="ddTP_R__group">'+e.group+"</strong>":(e.c&&(t.className=e.c),e.v&&(t.dataset.val=e.v),e.iTB||e.iTA?t.innerHTML=(e.iTB===c?"":e.iTB)+(e.iT===c?e.iH:e.iT)+(e.iTA===c?"":e.iTA):e.iT?t.innerText=e.iT:e.iH&&(t.innerHTML=e.iH),e.id&&(t.dataset.refid=e.id),e.optid!==c&&(t.dataset.optid=e.optid),e.aS&&(t.ariaSelected=e.aS)),t},O=function(e,t){var i,a,r,o=window.ddTPcache[e],s=(o.container.getBoundingClientRect(),document.createDocumentFragment()),l="",n=(o.params=o.params===c?{}:o.params,o.params.tags="true"==o.sel.dataset.tags||o.params.tags,o.params.search=o.params.search===c?0<=(" "+o.sel.className).indexOf(" searchbox"):o.params.search,u.highlighted=c,u.timeStamp||(u.searchi.value="",requestAnimationFrame(function(){u.searchi.focus()})),w(),u.wrap.className="ddTP_C ddTP_C--default ddTP_C--open"+(o.sel.dataset.theme!==c?" ddTP_C--"+o.sel.dataset.theme:""),o.container.classList.add("ddTP_C--open"),o.container.classList.add("ddTP_C--focus"),u.ul.ariaMultiselectable=o.sel.multiple,u.searchw.style.display=o.sel.multiple||!o.params.search?"none":"block",u.INFOCUS=e,u.ul.innerHTML="",u.searchi.dataset.refid=e,o.params.search&&o.params.searchValue!==c&&""!==o.params.searchValue&&(l=o.params.searchValue.toLowerCase()),o.sel.multiple&&(o.params.search||o.params.tags)&&null!==u.liSearch&&u.liSearch!==c&&(u.liSearch.style.display="block"),-1);for(a in o.sel.children)if(n++,!(!o.sel.children.hasOwnProperty(a)||"OPTION"!==o.sel.children[a].tagName&&"OPTGROUP"!==o.sel.children[a].tagName||o.sel.children[a].disabled||"OPTION"===o.sel.children[a].tagName&&""!==l&&-1==o.sel.children[a].value.toLowerCase().indexOf(l)&&-1==o.sel.children[a].textContent.toLowerCase().indexOf(l)))if(i=p(o.sel.children[a],n,o.params,e),"OPTGROUP"===o.sel.children[a].tagName)for(var d in s.appendChild(i),n--,o.sel.children[a].children)n++,!o.sel.children[a].children.hasOwnProperty(d)||"OPTION"!==o.sel.children[a].children[d].tagName||o.sel.children[a].children[d].disabled||""!==l&&-1==o.sel.children[a].children[d].value.toLowerCase().indexOf(l)&&-1==o.sel.children[a].children[d].textContent.toLowerCase().indexOf(l)||(i=p(o.sel.children[a].children[d],n,o.params,e),u.highlighted===c&&o.sel.children[a].selected&&(u.highlighted=i),s.appendChild(i));else u.highlighted===c&&o.sel.children[a].selected&&(u.highlighted=i),s.appendChild(i);u.highlighted===c&&0<s.childElementCount&&(u.highlighted=s.firstElementChild,_(),u.highlighted.classList.add("ddTP_RO--highlighted")),u.ul.appendChild(s),tpGS.gsap.set(u.wrap,{display:"block",left:0,top:0,position:"absolute",width:"185px"}),u.timeStamp===c&&(u.timeStamp=2,_(),requestAnimationFrame(function(){y()})),t&&g(o.rendered,h(o.sel,o.params)),(o.params.tags||o.params.search)&&o.params.searchFocus&&(r=o.sel.multiple?o.rendered.getElementsByClassName("ddTP_SCH__field"):u.searchi)!==c&&null!==r&&0<r.length&&requestAnimationFrame(function(){r[0].focus(),0!==o.params.cursorPosition&&o.params.cursorPosition!==c&&(r[0].selectionStart=r[0].selectionEnd=o.params.cursorPosition),o.params.cursorPosition=0})},B=function(){u.highlighted=document.getElementsByClassName("ddTP_RO--highlighted"),u.highlighted=null===u.highlighted||u.highlighted===c||0===u.highlighted.length?c:u.highlighted[0]},L=function(e){B(),u.highlighted!==c&&null!==u.highlighted[e]&&u.highlighted[e]!==c&&(u.highlighted.classList.remove("ddTP_RO--highlighted"),u.highlighted=u.highlighted[e],u.highlighted.classList.add("ddTP_RO--highlighted"),_())},k=function(){document.body.removeEventListener("click",e),document.body.removeEventListener("keydown",t),u.GLOBALLISTENER=c},w=function(){u.GLOBALLISTENER||(document.body.addEventListener("click",e),document.body.addEventListener("keydown",t),u.GLOBALLISTENER=!0)},I=function(){var e;i=!0,e=document.createDocumentFragment(),(u={wrap:document.createElement("span"),drop:document.createElement("span"),searchw:document.createElement("span"),searchi:document.createElement("input"),result:document.createElement("span"),ul:document.createElement("ul")}).wrap.className="ddTP_C ddTP_C--default",u.drop.className="ddTP-dropdown ddTP-dropdown--below",u.searchw.className="ddTP_SCH ddTP_SCH--dropdown",u.searchi.className="ddTP_SCH__field",u.result.className="ddTP_R",u.ul.className="ddTP_ROs",u.drop.dir="ltr",u.searchi.type="search",u.searchw.appendChild(u.searchi),u.wrap.appendChild(u.drop),u.drop.appendChild(u.searchw),u.drop.appendChild(u.result),u.result.appendChild(u.ul),e.appendChild(u.wrap),u.wrap.style.display="none",document.body.appendChild(e),a.on("click",".ddTP_C.ddTP-fake",function(){u.INFOCUS!==this.dataset.refid||ddTPcache[this.dataset.refid].params.tags||ddTPcache[this.dataset.refid].multiple?(ddTPcache[this.dataset.refid].params.searchFocus=!0,O(this.dataset.refid)):R()}),a.on("mouseenter",".ddTP_RO",function(){this.classList.add("ddTP_RO--highlighted")}),a.on("mouseleave",".ddTP_RO",function(){this.classList.remove("ddTP_RO--highlighted")}),a.on("click",".ddTP_S__choice__remove",function(){var e=ddTPcache[this.dataset.refid];if(e.params.tags)s({sel:e.sel,value:this.parentNode.dataset.val}),this.parentNode.parentNode.removeChild(this.parentNode);else{var t,i,a={sel:e.sel,value:this.parentNode.dataset.val};if(a.sel!=c&&a.sel.options!=c){for(i in a.sel.options){if(!a.sel.options.hasOwnProperty(i)||t)continue;t=a.sel.options[i].value==a.value?a.sel.options[i]:t}t!==c&&(t.selected=!1)}}return e.params.searchValue="",e.params.searchFocus=!1,e.sel.dispatchEvent(new Event("change",{bubbles:!0})),o(e.sel).trigger("ddTP:unselect"),r(this.dataset.refid),!1}),a.on("keydown",".ddTP_SCH__field",function(e){var t,i=e.which||e.keyCode,a=this.dataset.refid,r=ddTPcache[a];if(i===l.UP||i===l.DOWN)return L(i===l.UP?"previousElementSibling":"nextElementSibling"),e.preventDefault(),!1;i===l.TAB?R():r.params.tags?r.params.tags&&i===l.BACKSPACE&&""===this.value?null!==(t=this.parentNode.previousElementSibling)&&t!==c&&"LI"===t.tagName&&t.dataset.val!==c&&(r.params.searchValue=t.dataset.val,r.params.searchFocus=!0,s({sel:r.sel,value:r.params.searchValue}),o(r.sel).trigger("ddTP:unselect")):(1<this.value.length&&(0<=o.inArray(String.fromCharCode(i),r.params.tokenSeparators)||0<=o.inArray(e.key,r.params.tokenSeparators))||i===l.ENTER)&&((t=document.createElement("option")).value=this.value,t.innerHTML=this.value,t.dataset.refid=a,t.selected=!0,r.sel.appendChild(t),r.sel.multiple&&this.parentNode.parentNode.insertBefore(f(this.value,c,r.sel.id,c),this.parentNode),this.value="",r.params.searchValue="",r.params.searchFocus=!0,r.params.cursorPosition=0,r.sel.multpile||(t.ariaSelected=!0),o(r.sel).trigger("ddTP:select"),r.sel.multpile||(g(r.rendered,h(r.sel,r.params)),r.sel.dispatchEvent(new Event("change",{bubbles:!0})),R())):r.sel.multiple&&r.params.search&&F(this)}),a.on("keyup",".ddTP_SCH__field",function(e){var e=e.which||e.keyCode;e!==l.LEFT&&e!==l.RIGHT&&e!==l.SHIFT&&e!=l.ALT&&e!=l.CTRL&&e!=l.CMD&&e!=l.CMDL&&e!=l.CMDR&&((e=ddTPcache[this.dataset.refid]).params.searchValue=this.value,e.params.searchFocus=!0,e.params.cursorPosition=this.selectionStart,O(this.dataset.refid,!0))}),a.on("click",".ddTP_RO",function(){C(this)})},C=function(e){var t=ddTPcache[e.dataset.refid];t.sel.multiple?(e.ariaSelected=1!=e.ariaSelected&&"true"!=e.ariaSelected,t.sel.options[e.dataset.optid].selected=1==e.ariaSelected||"true"==e.ariaSelected,t.params.searchValue="",t.params.searchFocus=!1,o(t.sel).trigger("ddTP:select")):(t.sel.value=e.dataset.val,R()),g(t.rendered,h(t.sel,t.params)),t.sel.dispatchEvent(new Event("change",{bubbles:!0})),t.sel.multiple&&r(e.dataset.refid)},T=function(e,t){null!==t&&e!==c&&null!==t.parentNode&&t.parentNode.insertBefore(e,t.nextSibling)},F=function(e){tpGS.gsap.set(e,{width:.75*(e.value.length+1)+"em"})}}(jQuery),window.RSColor={defaultValue:"#ffffff",isColor:/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,get:function(e){return e?RSColor.process(e,!0)[0]:"transparent"},parse:function(e,t,i){e=RSColor.process(e,!0);var a=[];return a[0]=t?t+": "+e[0]+";":e[0],i&&(a[1]=e[1]),a},convert:function(e,t){if(!e||"string"!=typeof e)return RSColor.defaultValue;if("transparent"===e)return e;if(-1!==e.search(/\[\{/)||-1!==e.search("gradient"))return RSColor.process(e,!0)[0];if(void 0===t||isNaN(t))return RSColor.process(e,!0)[0];if((t=parseFloat(t))<=1&&(t*=100),0===(t=Math.max(Math.min(parseInt(t,10),100),0)))return"transparent";try{return-1!==e.search("#")||e.length<8?(RSColor.isColor.test(e)||(e=e.replace(/[^A-Za-z0-9#]/g,"")),RSColor.processRgba(RSColor.sanitizeHex(e),t)):(e=RSColor.rgbValues(e,3),RSColor.rgbaString(e[0],e[1],e[2],.01*t))}catch(e){return RSColor.defaultValue}},process:function(e,t){if("string"!=typeof e)return t&&RSColor.sanitizeGradient(e),[RSColor.processGradient(e),"gradient",e];if("transparent"===e.trim())return["transparent","transparent"];if(-1===e.search(/\[\{/))return-1!==e.search("-gradient")?[e,"gradient_css",RSColor.reverseGradient(e)]:-1!==e.search("#")?[RSColor.sanitizeHex(e),"hex"]:-1!==e.search("rgba")?[e=-1!==(e=e.replace(/\s/g,"")).search(/,\)/)?e.split(",)")[0]+",1)":e,"rgba"]:[e.replace(/\s/g,""),"rgb"];try{return e=JSON.parse(e.replace(/\&/g,'"')),t&&RSColor.sanitizeGradient(e),[RSColor.processGradient(e),"gradient",e]}catch(e){return console.log("RSColor.process() failed to parse JSON string"),["linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%)","gradient",{type:"linear",angle:"0",colors:[{r:"255",g:"255",b:"255",a:"1",position:"0",align:"bottom"},{r:"0",g:"0",b:"0",a:"1",position:"100",align:"bottom"}]}]}},transparentRgba:function(e,t){if(!t&&"rgba"!==RSColor.process(e)[1])return!1;return"0"===RSColor.rgbValues(e,4)[3]},rgbValues:function(e,t){3===(e=e.substring(e.indexOf("(")+1,e.lastIndexOf(")")).split(",")).length&&4===t&&(e[3]="1");for(var i=0;i<t;i++)void 0!==e[i]&&(e[i]=e[i].trim());return e},rgbString:function(e,t,i){return"rgb("+e+", "+t+", "+i+")"},rgbaString:function(e,t,i,a){return"rgba("+e+", "+t+", "+i+", "+a+")"},rgbToHex:function(e){e=RSColor.rgbValues(e,3);return RSColor.getRgbToHex(e[0],e[1],e[2])},rgbaToHex:function(e){e=RSColor.rgbValues(e,4);return[RSColor.getRgbToHex(e[0],e[1],e[2]),e[3]]},getOpacity:function(e){return parseInt(100*RSColor.rgbValues(e,4)[3],10)+"%"},getRgbToHex:function(e,t,i){return"#"+("0"+parseInt(e,10).toString(16)).slice(-2)+("0"+parseInt(t,10).toString(16)).slice(-2)+("0"+parseInt(i,10).toString(16)).slice(-2)},sanitizeAlpha:function(e){return parseFloat(Math.max(Math.min(parseFloat(e),1),0).toFixed(2).replace(/\.?0*$/,""))},joinToRgba:function(e){return e=e.split("||"),RSColor.convert(e[0],e[1])},processRgba:function(e,t){e=e.replace("#","");var i=void 0!==t,e=(i?"rgba":"rgb")+"("+parseInt(e.substring(0,2),16)+", "+parseInt(e.substring(2,4),16)+", "+parseInt(e.substring(4,6),16);return e+=i?", "+(.01*parseInt(t,10)).toFixed(2).replace(/\.?0*$/,"")+")":")"},hexToRGB:function(e){return e=e.replace("#",""),[parseInt(e.substring(0,2),16),parseInt(e.substring(2,4),16),parseInt(e.substring(4,6),16)]},processGradient:function(e,t,i){t&&RSColor.sanitizeGradient(e),!i&&e.easing&&"none"!==e.easing&&("undefined"!=typeof jQuery&&(e=jQuery.extend(!0,{},e)),RSColor.easeGradient(e));for(var a,t=e.type,i=t+"-gradient(",t="linear"===t?180!==(t=parseInt(e.angle,10))?t+"deg, ":"":"ellipse at center, ",r=e.colors,o=r.length,s="",l=0;l<o;l++)0<l&&(s+=", "),s+="rgba("+(a=r[l]).r+", "+a.g+", "+a.b+", "+a.a+") "+a.position+"%";return i+t+s+")"},sanitizeHex:function(e){var t;return"#"+(e=3===(e=e.replace("#","").trim()).length?(t=e.charAt(0))+t+(t=e.charAt(1))+t+(t=e.charAt(2))+t:e)},sortPoints:function(e,t){return e.hasOwnProperty("x")?e.x<t.x?-1:e.x>t.x?1:0:e.position<t.position?-1:e.position>t.position?1:0},distColor:function(e,t,i,a,r){return Math.max(Math.min(Math.round(Math.abs((e-t)/(i-t)*(r-a)+a)),255),0)},distAlpha:function(e,t,i,a,r){return Math.max(Math.min(Math.abs(parseFloat(((e-t)/(i-t)*(r-a)).toFixed(2))+parseFloat(a)),1),0)},sanitizeGradient:function(e){var t,i=e.colors,a=i.length,r=[];i.sort(RSColor.sortPoints);for(var o=0;o<a;o++){var s=i[o];delete s.align,s.a=RSColor.sanitizeAlpha(s.a),s.r=parseInt(s.r,10),s.g=parseInt(s.g,10),s.b=parseInt(s.b,10),s.position=parseInt(s.position,10),(!t||JSON.stringify(s)!==JSON.stringify(t))&&(r[r.length]=s),t=s}return e.colors=r,e},reverseGradient:function(e){if(-1!==e.search("hsl"))return e;var t=(e=e.replace(/\-moz\-|\-webkit\-/,"").replace("to left","90deg").replace("to bottom","180deg").replace("to top","0deg").replace("to right","270deg").replace(";","")).split("-gradient(");if(t.length<2)return e;var i,a,r,o,s="0",l=t[1].trim(),n=(-1===l.search("ellipse at center")?-1!==l.search("deg")&&(s=(l=l.split("deg"))[0].trim(),l=l[1].trim()):l=l.replace("ellipse at center",""),(l=","===(l=","===l.charAt(0)?l.slice(1):l).charAt(l.length-1)?l.slice(0,l.length-1):l).split("%")),d=[],c=0;n.pop();for(var p=n.length,u=0;u<p;u++){if(r=(o=n[u].trim()).length,-1===(o=","===o.charAt(0)?o.slice(1):o).search(" "))return e;for(i=o.split(" "),i=parseInt(i[i.length-1],10);r--&&" "!==o[c=r];);o=-1!==(o=o.substring(0,c)).search(/\)/)?o.split(")")[0].trim()+")":o.split(" ")[0].trim(),"hex"===RSColor.process(o)[1]&&(o=RSColor.sanitizeHex(o),o=RSColor.processRgba(o)),a&&a===o||(a=o,o=RSColor.rgbValues(o,4),d[d.length]={r:o[0],g:o[1],b:o[2],a:o[3],position:i,align:"top"},d[d.length]={r:o[0],g:o[1],b:o[2],a:1,position:i,align:"bottom"})}return JSON.stringify({type:t[0].trim(),angle:s,colors:d})},insertPoints:function(e,t,i,a,r){var o=e.position,s=t.position;if(!(s<o)){for(var l,n,d=[],c=0;c<r;c++)o<(l=parseFloat(a(c,0,1,r).toFixed(2))*(s-o)+o)&&l<s&&(d[d.length]=l);for(var p,u,v=d.length,g=parseFloat(((s-o)/(v+1)).toFixed(2)),m=parseFloat(g+o),c=0;c<v;c++)(n=d[c])!==e.position&&(p=RSColor.sanitizeAlpha(e.a),u=RSColor.sanitizeAlpha(t.a),u={position:m,r:e.r!==t.r?Math.round(RSColor.distColor(n,o,s,e.r,t.r)):e.r,g:e.g!==t.g?Math.round(RSColor.distColor(n,o,s,e.g,t.g)):e.g,b:e.b!==t.b?Math.round(RSColor.distColor(n,o,s,e.b,t.b)):e.b,a:p!==u?RSColor.sanitizeAlpha(RSColor.distAlpha(n,o,s,e.a,t.a)):p},m+=g,m=parseFloat(m.toFixed(2)),i[i.length]=u)}},easeGradient:function(e){var t=.01*parseInt(e.strength,10)*15,i=e.colors,a=e.easing,r=i.length-1,o=[];i.sort(RSColor.sortPoints),a=a.split(".");for(var a=RSColor.easing[a[0]][a[1]],s=0;s<r;s++)o[o.length]=i[s],RSColor.insertPoints(i[s],i[s+1],o,a,t);o[o.length]=i[r],e.colors=o},easing:{quint:{easeout:function(e,t,i,a){return i*((e=e/a-1)*e*e*e*e+1)+t},easein:function(e,t,i,a){return i*(e/=a)*e*e*e*e+t},easeinout:function(e,t,i,a){return(e/=a/2)<1?i/2*e*e*e*e*e+t:i/2*((e-=2)*e*e*e*e+2)+t}},quad:{easein:function(e,t,i,a){return i*(e/=a)*e+t},easeout:function(e,t,i,a){return-i*(e/=a)*(e-2)+t},easeinout:function(e,t,i,a){return(e/=a/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t}},quart:{easein:function(e,t,i,a){return i*(e/=a)*e*e*e+t},easeout:function(e,t,i,a){return-i*((e=e/a-1)*e*e*e-1)+t},easeinout:function(e,t,i,a){return(e/=a/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t}},cubic:{easein:function(e,t,i,a){return i*(e/=a)*e*e+t},easeout:function(e,t,i,a){return i*((e=e/a-1)*e*e+1)+t},easeinout:function(e,t,i,a){return(e/=a/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}},circ:{easein:function(e,t,i,a){return-i*(Math.sqrt(1-(e/=a)*e)-1)+t},easeout:function(e,t,i,a){return i*Math.sqrt(1-(e=e/a-1)*e)+t},easeinout:function(e,t,i,a){return(e/=a/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+t:i/2*(Math.sqrt(1-(e-=2)*e)+1)+t}},sine:{easein:function(e,t,i,a){return-i*Math.cos(e/a*(Math.PI/2))+i+t},easeout:function(e,t,i,a){return i*Math.sin(e/a*(Math.PI/2))+t},easeinout:function(e,t,i,a){return-i/2*(Math.cos(Math.PI*e/a)-1)+t}},expo:{easein:function(e,t,i,a){return 0===e?t:i*Math.pow(2,10*(e/a-1))+t},easeout:function(e,t,i,a){return e===a?t+i:i*(1-Math.pow(2,-10*e/a))+t},easeinout:function(e,t,i,a){return 0===e?t:e===a?t+i:(e/=a/2)<1?i/2*Math.pow(2,10*(e-1))+t:i/2*(2-Math.pow(2,-10*--e))+t}},bounce:{easeout:function(e,t,i,a){return(e/=a)<1/2.75?i*(7.5625*e*e)+t:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+t:i*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easein:function(e,t,i,a){return i-RSColor.easing.bounce.easeout(a-e,0,i,a)+t},easeinout:function(e,t,i,a){return e<a/2?.5*RSColor.easing.bounce.easein(2*e,0,i,a)+t:.5*RSColor.easing.bounce.easeout(2*e-a,0,i,a)+.5*i+t}}}},function(f){RVS.DOC=void 0===RVS.DOC?jQuery(document):RVS.DOC;var h,D,M,G,p,z,S,R,Q,H,Z,q,W,U,Y,X,K,y,t,b,_,V,i,$,ee,O,B,L,r,o,s,te,ie,ae,re,oe,se,le,ne,de,a,ce,pe,k,ue,ve,ge,me,he,Se,be,fe,Re,ye,_e,Ve,Oe,w,I,Be,Le,ke,we,Ie,C,T,l,Ce,Te,Fe,xe,Je,n,Ne,d,c,u,Pe,F,x,je,J,N,Ae,Ee,P,De,Me,Ge,ze,j,v,Qe,He,Ze,qe,We,g={},Ue=236,Ye=25,Xe=3,Ke=4,$e=150,et="full",tt={axis:"x",containment:"#revbuilder-cpicker-point-wrap"},it={color:"Color",solid_color:"Solid",gradient_color:"Gradient",gradient_easing:"Gradient Easing",easing_strength:"Easing/Strength",currently_editing:"Currently Editing",core_presets:"Core Presets",custom_presets:"Custom Presets",enter_a_name:"Enter a Name",save_a_new_preset:"Save a new Preset",save:"Save Preset",color_hex_value:"Hex",opacity:"Opacity",clear:"Clear Color",location:"Location",delete:"Delete Marker",horizontal:"Horizontal",vertical:"Vertical",radial:"Radial",enter_angle:"Enter Angle",reverse_gradient:"Reverse Gradient",delete_confirm:"Remove/Delete this custom preset color?",naming_error:"Please enter a unique name for the new color preset",preset_collection:"Preset Collection",color_type:"Color Type",close:"Close",save_exit:"Save",apply:"Apply",rgb:"RGB",preset_group:"Preset Group",save_preset:"Save Preset",pos_opacity:"Pos / Opacity"},at=["#FFFFFF","#000000","#FF3A2D","#007AFF","#4CD964","#FFCC00","#C7C7CC","#8E8E93","#FFD3E0","#34AADC","#E0F8D8","#5AC8FA","#5856D6","#FF69B4","#800000","#009933"],rt=[{0:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:247,&g&:247,&b&:247,&a&:&1&,&position&:0,&align&:&top&},{&r&:247,&g&:247,&b&:247,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:215,&g&:215,&b&:215,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:215,&g&:215,&b&:215,&a&:&1&,&position&:100,&align&:&top&}]}"},{1:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:74,&g&:74,&b&:74,&a&:&1&,&position&:0,&align&:&top&},{&r&:74,&g&:74,&b&:74,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:43,&g&:43,&b&:43,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:43,&g&:43,&b&:43,&a&:&1&,&position&:100,&align&:&top&}]}"},{2:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:219,&g&:221,&b&:222,&a&:&1&,&position&:0,&align&:&top&},{&r&:219,&g&:221,&b&:222,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:137,&g&:140,&b&:144,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:137,&g&:140,&b&:144,&a&:&1&,&position&:100,&align&:&top&}]}"},{3:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:26,&g&:214,&b&:253,&a&:&1&,&position&:0,&align&:&top&},{&r&:26,&g&:214,&b&:253,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:29,&g&:98,&b&:240,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:29,&g&:98,&b&:240,&a&:&1&,&position&:100,&align&:&top&}]}"},{4:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:198,&g&:68,&b&:252,&a&:&1&,&position&:0,&align&:&top&},{&r&:198,&g&:68,&b&:252,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:88,&g&:86,&b&:214,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:88,&g&:86,&b&:214,&a&:&1&,&position&:100,&align&:&top&}]}"},{5:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:255,&g&:94,&b&:58,&a&:&1&,&position&:0,&align&:&top&},{&r&:255,&g&:94,&b&:58,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:255,&g&:42,&b&:104,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:255,&g&:42,&b&:104,&a&:&1&,&position&:100,&align&:&top&}]}"},{6:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:228,&g&:221,&b&:202,&a&:&1&,&position&:0,&align&:&top&},{&r&:228,&g&:221,&b&:202,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:214,&g&:206,&b&:195,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:214,&g&:206,&b&:195,&a&:&1&,&position&:100,&align&:&top&}]}"},{7:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:255,&g&:219,&b&:76,&a&:&1&,&position&:0,&align&:&top&},{&r&:255,&g&:219,&b&:76,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:255,&g&:205,&b&:2,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:255,&g&:205,&b&:2,&a&:&1&,&position&:100,&align&:&top&}]}"},{8:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:255,&g&:149,&b&:0,&a&:&1&,&position&:0,&align&:&top&},{&r&:255,&g&:149,&b&:0,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:255,&g&:94,&b&:58,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:255,&g&:94,&b&:58,&a&:&1&,&position&:100,&align&:&top&}]}"},{9:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:82,&g&:237,&b&:199,&a&:&1&,&position&:0,&align&:&top&},{&r&:82,&g&:237,&b&:199,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:90,&g&:200,&b&:251,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:90,&g&:200,&b&:251,&a&:&1&,&position&:100,&align&:&top&}]}"},{10:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:228,&g&:183,&b&:240,&a&:&1&,&position&:0,&align&:&top&},{&r&:228,&g&:183,&b&:240,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:200,&g&:110,&b&:223,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:200,&g&:110,&b&:223,&a&:&1&,&position&:100,&align&:&top&}]}"},{11:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:135,&g&:252,&b&:112,&a&:&1&,&position&:0,&align&:&top&},{&r&:135,&g&:252,&b&:112,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:11,&g&:211,&b&:24,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:11,&g&:211,&b&:24,&a&:&1&,&position&:100,&align&:&top&}]}"},{12:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:61,&g&:78,&b&:129,&a&:&1&,&position&:0,&align&:&top&},{&r&:61,&g&:78,&b&:129,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:87,&g&:83,&b&:201,&a&:&1&,&position&:50,&align&:&bottom&},{&r&:110,&g&:127,&b&:243,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:110,&g&:127,&b&:243,&a&:&1&,&position&:100,&align&:&top&}]}"},{13:"{&type&:&linear&,&angle&:&160&,&colors&:[{&r&:35,&g&:21,&b&:87,&a&:&1&,&position&:0,&align&:&top&},{&r&:35,&g&:21,&b&:87,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:68,&g&:16,&b&:122,&a&:&1&,&position&:29,&align&:&bottom&},{&r&:255,&g&:19,&b&:97,&a&:&1&,&position&:67,&align&:&bottom&},{&r&:255,&g&:248,&b&:0,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:255,&g&:248,&b&:0,&a&:&1&,&position&:100,&align&:&top&}]}"},{14:"{&type&:&linear&,&angle&:&160&,&colors&:[{&r&:105,&g&:234,&b&:203,&a&:&1&,&position&:0,&align&:&top&},{&r&:105,&g&:234,&b&:203,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:234,&g&:204,&b&:248,&a&:&1&,&position&:50,&align&:&bottom&},{&r&:102,&g&:84,&b&:241,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:102,&g&:84,&b&:241,&a&:&1&,&position&:100,&align&:&top&}]}"},{15:"{&type&:&linear&,&angle&:&160&,&colors&:[{&r&:255,&g&:5,&b&:124,&a&:&1&,&position&:0,&align&:&top&},{&r&:255,&g&:5,&b&:124,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:124,&g&:100,&b&:213,&a&:&1&,&position&:50,&align&:&bottom&},{&r&:76,&g&:195,&b&:255,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:76,&g&:195,&b&:255,&a&:&1&,&position&:100,&align&:&top&}]}"},{16:"{&type&:&linear&,&angle&:&160&,&colors&:[{&r&:255,&g&:5,&b&:124,&a&:&1&,&position&:0,&align&:&top&},{&r&:255,&g&:5,&b&:124,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:141,&g&:11,&b&:147,&a&:&1&,&position&:50,&align&:&bottom&},{&r&:50,&g&:21,&b&:117,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:50,&g&:21,&b&:117,&a&:&1&,&position&:100,&align&:&top&}]}"},{17:"{&type&:&linear&,&angle&:&160&,&colors&:[{&r&:164,&g&:69,&b&:178,&a&:&1&,&position&:0,&align&:&top&},{&r&:164,&g&:69,&b&:178,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:212,&g&:24,&b&:114,&a&:&1&,&position&:50,&align&:&bottom&},{&r&:255,&g&:0,&b&:102,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:255,&g&:0,&b&:102,&a&:&1&,&position&:100,&align&:&top&}]}"},{18:"{&type&:&linear&,&angle&:&160&,&colors&:[{&r&:158,&g&:251,&b&:211,&a&:&1&,&position&:0,&align&:&top&},{&r&:158,&g&:251,&b&:211,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:87,&g&:233,&b&:242,&a&:&1&,&position&:50,&align&:&bottom&},{&r&:69,&g&:212,&b&:251,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:69,&g&:212,&b&:251,&a&:&1&,&position&:100,&align&:&top&}]}"},{19:"{&type&:&linear&,&angle&:&160&,&colors&:[{&r&:172,&g&:50,&b&:228,&a&:&1&,&position&:0,&align&:&top&},{&r&:172,&g&:50,&b&:228,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:121,&g&:24,&b&:242,&a&:&1&,&position&:50,&align&:&bottom&},{&r&:72,&g&:1,&b&:255,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:72,&g&:1,&b&:255,&a&:&1&,&position&:100,&align&:&top&}]}"},{20:"{&type&:&linear&,&angle&:&160&,&colors&:[{&r&:112,&g&:133,&b&:182,&a&:&1&,&position&:0,&align&:&top&},{&r&:112,&g&:133,&b&:182,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:135,&g&:167,&b&:217,&a&:&1&,&position&:50,&align&:&bottom&},{&r&:222,&g&:243,&b&:248,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:222,&g&:243,&b&:248,&a&:&1&,&position&:100,&align&:&top&}]}"},{21:"{&type&:&linear&,&angle&:&160&,&colors&:[{&r&:34,&g&:225,&b&:255,&a&:&1&,&position&:0,&align&:&top&},{&r&:34,&g&:225,&b&:255,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:29,&g&:143,&b&:225,&a&:&1&,&position&:50,&align&:&bottom&},{&r&:98,&g&:94,&b&:177,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:98,&g&:94,&b&:177,&a&:&1&,&position&:100,&align&:&top&}]}"},{22:"{&type&:&linear&,&angle&:&160&,&colors&:[{&r&:44,&g&:216,&b&:213,&a&:&1&,&position&:0,&align&:&top&},{&r&:44,&g&:216,&b&:213,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:107,&g&:141,&b&:214,&a&:&1&,&position&:50,&align&:&bottom&},{&r&:142,&g&:55,&b&:215,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:142,&g&:55,&b&:215,&a&:&1&,&position&:100,&align&:&top&}]}"},{23:"{&type&:&linear&,&angle&:&160&,&colors&:[{&r&:44,&g&:216,&b&:213,&a&:&1&,&position&:0,&align&:&top&},{&r&:44,&g&:216,&b&:213,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:197,&g&:193,&b&:255,&a&:&1&,&position&:56,&align&:&bottom&},{&r&:255,&g&:186,&b&:195,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:255,&g&:186,&b&:195,&a&:&1&,&position&:100,&align&:&top&}]}"},{24:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:191,&g&:217,&b&:254,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:191,&g&:217,&b&:254,&a&:&1&,&position&:0,&align&:&top&},{&r&:223,&g&:137,&b&:181,&a&:&1&,&position&:100,&align&:&top&},{&r&:223,&g&:137,&b&:181,&a&:&1&,&position&:100,&align&:&bottom&}]}"},{25:"{&type&:&linear&,&angle&:&340&,&colors&:[{&r&:97,&g&:97,&b&:97,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:97,&g&:97,&b&:97,&a&:&1&,&position&:0,&align&:&top&},{&r&:155,&g&:197,&b&:195,&a&:&1&,&position&:100,&align&:&top&},{&r&:155,&g&:197,&b&:195,&a&:&1&,&position&:100,&align&:&bottom&}]}"},{26:"{&type&:&linear&,&angle&:&90&,&colors&:[{&r&:36,&g&:57,&b&:73,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:36,&g&:57,&b&:73,&a&:&1&,&position&:0,&align&:&top&},{&r&:81,&g&:127,&b&:164,&a&:&1&,&position&:100,&align&:&top&},{&r&:81,&g&:127,&b&:164,&a&:&1&,&position&:100,&align&:&bottom&}]}"},{27:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:234,&g&:205,&b&:163,&a&:&1&,&position&:0,&align&:&top&},{&r&:234,&g&:205,&b&:163,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:230,&g&:185,&b&:128,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:230,&g&:185,&b&:128,&a&:&1&,&position&:100,&align&:&top&}]}"},{28:"{&type&:&linear&,&angle&:&45&,&colors&:[{&r&:238,&g&:156,&b&:167,&a&:&1&,&position&:0,&align&:&top&},{&r&:238,&g&:156,&b&:167,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:255,&g&:221,&b&:225,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:255,&g&:221,&b&:225,&a&:&1&,&position&:100,&align&:&top&}]}"},{29:"{&type&:&linear&,&angle&:&340&,&colors&:[{&r&:247,&g&:148,&b&:164,&a&:&1&,&position&:0,&align&:&top&},{&r&:247,&g&:148,&b&:164,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:253,&g&:214,&b&:189,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:253,&g&:214,&b&:189,&a&:&1&,&position&:100,&align&:&top&}]}"},{30:"{&type&:&linear&,&angle&:&45&,&colors&:[{&r&:135,&g&:77,&b&:162,&a&:&1&,&position&:0,&align&:&top&},{&r&:135,&g&:77,&b&:162,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:196,&g&:58,&b&:48,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:196,&g&:58,&b&:48,&a&:&1&,&position&:100,&align&:&top&}]}"},{31:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:243,&g&:231,&b&:233,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:243,&g&:231,&b&:233,&a&:&1&,&position&:0,&align&:&top&},{&r&:218,&g&:212,&b&:236,&a&:&1&,&position&:100,&align&:&top&},{&r&:218,&g&:212,&b&:236,&a&:&1&,&position&:100,&align&:&bottom&}]}"},{32:"{&type&:&linear&,&angle&:&320&,&colors&:[{&r&:43,&g&:88,&b&:118,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:43,&g&:88,&b&:118,&a&:&1&,&position&:0,&align&:&top&},{&r&:78,&g&:67,&b&:118,&a&:&1&,&position&:100,&align&:&top&},{&r&:78,&g&:67,&b&:118,&a&:&1&,&position&:100,&align&:&bottom&}]}"},{33:"{&type&:&linear&,&angle&:&60&,&colors&:[{&r&:41,&g&:50,&b&:60,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:41,&g&:50,&b&:60,&a&:&1&,&position&:0,&align&:&top&},{&r&:72,&g&:85,&b&:99,&a&:&1&,&position&:100,&align&:&top&},{&r&:72,&g&:85,&b&:99,&a&:&1&,&position&:100,&align&:&bottom&}]}"},{34:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:233,&g&:233,&b&:231,&a&:&1&,&position&:0,&align&:&top&},{&r&:233,&g&:233,&b&:231,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:239,&g&:238,&b&:236,&a&:&1&,&position&:25,&align&:&bottom&},{&r&:238,&g&:238,&b&:238,&a&:&1&,&position&:70,&align&:&bottom&},{&r&:213,&g&:212,&b&:208,&a&:&1&,&position&:100,&align&:&bottom&},{&r&:213,&g&:212,&b&:208,&a&:&1&,&position&:100,&align&:&top&}]}"},{35:"{&type&:&linear&,&angle&:&180&,&colors&:[{&r&:251,&g&:200,&b&:212,&a&:&1&,&position&:0,&align&:&bottom&},{&r&:251,&g&:200,&b&:212,&a&:&1&,&position&:0,&align&:&top&},{&r&:151,&g&:149,&b&:240,&a&:&1&,&position&:100,&align&:&top&},{&r&:151,&g&:149,&b&:240,&a&:&1&,&position&:100,&align&:&bottom&}]}"}],ot='<div id="revbuilder-cpicker-back" class="revbuilder-cpicker-close"></div><div id="revbuilder-cpicker"><div id="revbuilder-cpicker-container"><div id="revbuilder-cpicker-left" class="revbuilder-cpicker-column"><div id="revbuilder-cpicker-head"><div id="revbuilder-cpicker-drag" class="revbuilder-cpicker-draggable"></div><div id="revbuilder-cpicker-type-wrap" class="revbuilder-cpicker-side revbuilder-cpicker-left revbuilder-cpicker-candrag"><span data-text="color_type" class="revbuilder-cpicker-candrag revbuilder-cpicker-title"></span><div id="revbuilder-cpicker-btn-wrap"><span id="revbuilder-cpicker-color-btn" class="revbuilder-cpicker-main-btn"><i class="material-icons">invert_colors</i></span><span id="revbuilder-cpicker-gradient-btn" class="revbuilder-cpicker-main-btn"><i class="material-icons">gradient</i></span></div></div><div id="revbuilder-cpicker-editing" class="revbuilder-cpicker-candrag"><span id="revbuilder-cpicker-edit-title" data-text="currently_editing"></span><span id="revbuilder-cpicker-current-edit" class="revbuilder-cpicker-txt-space-left revbuilder-cpicker-bright"></span></div></div><div id="revbuilder-cpicker-base"><div id="revbuilder-cpicker-colors"><div><div class="revbuilder-cpicker-side revbuilder-cpicker-left"><div class="revbuilder-cpicker-row first"><span data-text="color" class="revbuilder-cpicker-title"></span><div class="revbuilder-cpicker-input-wrap revbuilder-cpicker-hover"><span id="revbuilder-cpicker-preview-color" class="revbuilder-cpicker-preview"></span><input type="text" id="revbuilder-cpicker-color-hex" class="revbuilder-cpicker-input revbuilder-cpicker-hex" value="#ffffff" /></div></div><div class="revbuilder-cpicker-row"><span data-text="rgb" class="revbuilder-cpicker-title"></span><div class="revbuilder-cpicker-input-wrap revbuilder-cpicker-hover revbuilder-cpicker-input-small first"><input type="text" id="revbuilder-cpicker-r" class="revbuilder-cpicker-input revbuilder-cpicker-rgb" value="255" /></div><div class="revbuilder-cpicker-input-wrap revbuilder-cpicker-hover revbuilder-cpicker-input-small"><input type="text" id="revbuilder-cpicker-g" class="revbuilder-cpicker-input revbuilder-cpicker-rgb" value="255" /></div><div class="revbuilder-cpicker-input-wrap revbuilder-cpicker-hover revbuilder-cpicker-input-small"><input type="text" id="revbuilder-cpicker-b" class="revbuilder-cpicker-input revbuilder-cpicker-rgb" value="255" /></div></div><div class="revbuilder-cpicker-row"><span data-text="opacity" class="revbuilder-cpicker-title"></span><div class="revbuilder-cpicker-input-wrap revbuilder-cpicker-hover"><input type="text" id="revbuilder-cpicker-color-opacity" class="revbuilder-cpicker-input revbuilder-cpicker-opacity-input" value="100%" /></div></div><div class="revbuilder-cpicker-row"><span class="revbuilder-cpicker-spacer"></span><span id="revbuilder-cpciker-clear-hex" class="revbuilder-cpicker-btn revbuilder-cpicker-hover"><i class="material-icons">delete</i><span data-text="clear"></span></span></div></div><div class="revbuilder-cpicker-side"><div class="revbuilder-cpicker-iris"><input id="revbuilder-cpicker-iris-color" class="revbuilder-cpicker-iris-input" /><div id="revbuilder-cpicker-scroller" class="iris-slider iris-strip"><div id="revbuilder-cpicker-scroll-bg"></div><div id="revbuilder-cpicker-scroll" class="iris-slider-offset"></div></div></div></div></div><div id="revbuilder-cpicker-color-presets" class="revbuilder-cpicker-presets"><div class="revbuilder-cpicker-side revbuilder-cpicker-left"><div class="revbuilder-cpicker-row first"><span data-text="preset_group" class="revbuilder-cpicker-title"></span><div class="revbuilder-cpicker-input-wrap revbuilder-cpicker-hover"><select id="revbuilder-cpicker-preset-colors" class="revbuilder-cpicker-dropdown revbuilder-cpicker-preset-selector"><option value="core">Defaults</option><option value="custom">Custom</option></select></div></div><div class="revbuilder-cpicker-row"><span data-text="save_preset" class="revbuilder-cpicker-title"></span><div class="revbuilder-cpicker-input-wrap revbuilder-cpicker-hover"><input type="text" class="revbuilder-cpicker-input revbuilder-cpicker-preset-save" data-placeholder="enter_a_name" /></div></div><div class="revbuilder-cpicker-row"><span class="revbuilder-cpicker-spacer"></span><span class="revbuilder-cpicker-btn revbuilder-cpicker-hover revbuilder-cpicker-save-preset-btn" data-alert="naming_error" data-message="Please enter a unique name for the new color preset"><i class="material-icons">save</i><span data-text="save"></span></span></div></div><div class="revbuilder-cpicker-side"><div id="revbuilder-cpicker-colors-core" class="revbuilder-cpicker-presets-group ps-container"></div><div id="revbuilder-cpicker-colors-custom" class="revbuilder-cpicker-presets-group ps-container revbuilder-cpicker-presets-custom"></div></div></div></div><div id="revbuilder-cpicker-gradients"><div><div class="revbuilder-cpicker-side revbuilder-cpicker-left revbuilder-cpicker-supress"><div class="revbuilder-cpicker-row first"><div class="revbuilder-cpicker-gradient-block"><div id="revbuilder-cpicker-gradient-input" class="revbuilder-cpicker-gradient-builder"><span id="revbuilder-cpicker-hit-top" class="revbuilder-cpicker-builder-hit"></span><div id="revbuilder-cpicker-point-wrap"><div id="revbuilder-cpciker-point-container"></div></div><span id="revbuilder-cpicker-hit-bottom" class="revbuilder-cpicker-builder-hit"></span></div></div></div><div class="revbuilder-cpicker-row"><span data-text="pos_opacity" class="revbuilder-cpicker-title"></span><div class="revbuilder-cpicker-input-wrap revbuilder-cpicker-hover revbuilder-cpicker-input-basic revbuilder-cpicker-supress first disabled"><input type="text" id="revbuilder-cpicker-color-location" class="revbuilder-cpicker-input" value="100%" maxlength="4" /></div><div class="revbuilder-cpicker-input-wrap revbuilder-cpicker-hover revbuilder-cpicker-input-basic revbuilder-cpicker-supress disabled"><input type="text" id="revbuilder-cpicker-grad-opacity" class="revbuilder-cpicker-input revbuilder-cpicker-opacity-input" value="100%" maxlength="4" /></div><span id="revbuilder-cpicker-color-delete" class="revbuilder-cpicker-btn revbuilder-cpicker-btn-small revbuilder-cpicker-hover revbuilder-cpicker-point-delete revbuilder-cpicker-supress"><i class="material-icons">delete</i></span><div class="clearfix"></div></div><div id="revpicker-easing-row" class="revbuilder-cpicker-row"><span id="revbuilder-cpicker-easing-title" data-text="gradient_easing" class="revbuilder-cpicker-title"></span><span id="revbuilder-cpicker-strength-title" data-text="easing_strength" class="revbuilder-cpicker-title"></span><div class="revbuilder-cpicker-input-wrap revbuilder-cpicker-hover"><select id="revbuilder-cpicker-easing" class="revbuilder-cpicker-dropdown"><option value="none">None</option><option value="sine.easeout">sine.out</option><option value="sine.easein">sine.in</option><option value="sine.easeinout">sine.inOut</option><option value="quad.easeout">Quad.easeOut</option><option value="quad.easein">Quad.easeIn</option><option value="quad.easeinout">Quad.easeInOut</option><option value="cubic.easeout">Cubic.easeOut</option><option value="cubic.easein">Cubic.easeIn</option><option value="cubic.easeinout">Cubic.easeInOut</option><option value="circ.easeout">circ.out</option><option value="circ.easein">circ.in</option><option value="circ.easeinout">circ.inOut</option><option value="quart.easeout">Quart.easeOut</option><option value="quart.easein">Quart.easeIn</option><option value="quart.easeinout">Quart.easeInOut</option><option value="quint.easeout">Quint.easeOut</option><option value="quint.easein">Quint.easeIn</option><option value="quint.easeinout">Quint.easeInOut</option><option value="expo.easeout">expo.out</option><option value="expo.easein">expo.in</option><option value="expo.easeinout">expo.inOut</option><option value="bounce.easeout">bounce.out</option><option value="bounce.easein">bounce.in</option><option value="bounce.easeinout">bounce.inOut</option></select></div><div class="revbuilder-cpicker-input-wrap revbuilder-cpicker-hover revbuilder-cpicker-input-basic revbuilder-cpicker-supress revbuilder-cpicker-easing-strength"><input type="text" id="revbuilder-cpicker-strength" class="revbuilder-cpicker-input" value="100%" maxlength="5" /></div></div><div class="revbuilder-cpicker-hideable"><div class="revbuilder-cpicker-row extended"><span data-text="color" class="revbuilder-cpicker-title"></span><div class="revbuilder-cpicker-input-wrap revbuilder-cpicker-hover revbuilder-cpicker-supress"><span id="revbuilder-cpicker-preview-gradient" class="revbuilder-cpicker-preview"></span><input type="text" id="revbuilder-cpicker-gradient-hex" class="revbuilder-cpicker-input revbuilder-cpicker-hex" value="#ffffff" /></div></div><div class="revbuilder-cpicker-row"><span data-text="rgb" class="revbuilder-cpicker-title"></span><div class="revbuilder-cpicker-input-wrap revbuilder-cpicker-hover revbuilder-cpicker-input-small revbuilder-cpicker-supress first"><input type="text" id="revbuilder-cpicker-r2" class="revbuilder-cpicker-input revbuilder-cpicker-rgb" value="255" /></div><div class="revbuilder-cpicker-input-wrap revbuilder-cpicker-hover revbuilder-cpicker-input-small revbuilder-cpicker-supress"><input type="text" id="revbuilder-cpicker-g2" class="revbuilder-cpicker-input revbuilder-cpicker-rgb" value="255" /></div><div class="revbuilder-cpicker-input-wrap revbuilder-cpicker-hover revbuilder-cpicker-input-small revbuilder-cpicker-supress"><input type="text" id="revbuilder-cpicker-b2" class="revbuilder-cpicker-input revbuilder-cpicker-rgb" value="255" /></div></div><div class="revbuilder-cpicker-row"><span class="revbuilder-cpicker-spacer"></span><span id="revbuilder-cpciker-clear-gradient" class="revbuilder-cpicker-btn revbuilder-cpicker-hover revbuilder-cpicker-supress"><i class="material-icons">delete</i><span data-text="clear"></span></span></div></div></div><div class="revbuilder-cpicker-side"><div class="revbuilder-cpicker-row first"><div class="revbuilder-cpicker-gradient-block"><div id="revbuilder-cpicker-gradient-output" class="revbuilder-cpicker-gradient-builder"></div></div></div><div class="revbuilder-cpicker-row"><span id="revbuilder-cpicker-orientation-horizontal" class="revbuilder-cpicker-direction revbuilder-cpicker-orientation revbuilder-cpicker-supress selected" data-direction="90"><span class="revbuilder-cpicker-preset-tile"></span><span id="revbuilder-cpicker-direction-horizontal" class="revbuilder-cpicker-preset-bg"></span></span><span id="revbuilder-cpicker-orientation-vertical" class="revbuilder-cpicker-direction revbuilder-cpicker-orientation revbuilder-cpicker-supress" data-direction="180"><span class="revbuilder-cpicker-preset-tile"></span><span id="revbuilder-cpicker-direction-vertical" class="revbuilder-cpicker-preset-bg"></span></span><span id="revbuilder-cpicker-orientation-radial" class="revbuilder-cpicker-direction revbuilder-cpicker-orientation revbuilder-cpicker-supress" data-direction="radial"><span class="revbuilder-cpicker-preset-tile"></span><span id="revbuilder-cpicker-direction-radial" class="revbuilder-cpicker-preset-bg"></span></span><div id="revbuilder-cpicker-wheel" class="revbuilder-cpicker-supress"><div id="revbuilder-cpicker-wheel-inner"><span id="revbuilder-cpicker-wheel-point"></span></div></div><div id="revbuilder-cpicker-radial-wrap" class="revbuilder-cpicker-input-wrap revbuilder-cpicker-hover revbuilder-cpicker-input-small revbuilder-cpicker-supress"><input type="text" class="revbuilder-cpicker-input" id="revbuilder-cpicker-meta-angle" maxlength="4"></div></div><div class="revbuilder-cpicker-row revbuilder-cpicker-no-margin"><span data-text="reverse_gradient" class="revbuilder-cpicker-title revbuilder-cpicker-label"></span><div id="revbuilder-cpicker-meta-reverse" class="revbuilder-cpicker-onoff-wrap revbuilder-cpicker-supress"><div class="revbuilder-cpicker-onoff-inner"><div class="revbuilder-cpicker-onoff revbuilder-cpicker-off"><span>OFF</span></div><div class="revbuilder-cpicker-onoff revbuilder-cpicker-on"><span>ON</span></div></div></div></div><div class="revbuilder-cpicker-hideable"><div class="revbuilder-cpicker-row"><div class="revbuilder-cpicker-iris revbuilder-cpicker-supress"><input id="revbuilder-cpicker-iris-gradient" class="revbuilder-cpicker-iris-input" /></div></div></div></div></div><div id="revbuilder-cpicker-gradient-presets" class="revbuilder-cpicker-presets"><div class="revbuilder-cpicker-side revbuilder-cpicker-left"><div class="revbuilder-cpicker-row first"><span data-text="preset_group" class="revbuilder-cpicker-title"></span><div class="revbuilder-cpicker-input-wrap revbuilder-cpicker-hover"><select id="revbuilder-cpicker-preset-gradients" class="revbuilder-cpicker-dropdown revbuilder-cpicker-preset-selector"><option value="core">Defaults</option><option value="custom">Custom</option></select></div></div><div class="revbuilder-cpicker-row"><span data-text="save_preset" class="revbuilder-cpicker-title"></span><div class="revbuilder-cpicker-input-wrap revbuilder-cpicker-hover"><input type="text" class="revbuilder-cpicker-input revbuilder-cpicker-preset-save" data-placeholder="enter_a_name" /></div></div><div class="revbuilder-cpicker-row"><span class="revbuilder-cpicker-spacer"></span><span class="revbuilder-cpicker-btn revbuilder-cpicker-hover revbuilder-cpicker-save-preset-btn" data-alert="naming_error" data-message="Please enter a unique name for the new color preset"><i class="material-icons">save</i><span data-text="save"></span></span></div></div><div class="revbuilder-cpicker-side"><div id="revbuilder-cpicker-gradients-core" class="revbuilder-cpicker-presets-group ps-container"></div><div id="revbuilder-cpicker-gradients-custom" class="revbuilder-cpicker-presets-group ps-container revbuilder-cpicker-presets-custom"></div></div></div></div></div></div><div id="revbuilder-cpicker-right" class="revbuilder-cpicker-column"><div id="revbuilder-cpicker-exit" class="revbuilder-cpicker-close revbuilder-cpicker-btn-large revbuilder-cpicker-hover"><i class="material-icons revbuilder-cpicker-hover">close</i></div><div id="revbuilder-cpicker-toggle"><div id="revbuilder-cpicker-palette" class="revbuilder-cpicker-btn-large revbuilder-cpicker-hover"><i class="material-icons revbuilder-cpicker-hover revbuilder-cpicker-palette-closed">palette</i><i class="material-icons revbuilder-cpicker-hover revbuilder-cpicker-palette-open">keyboard_arrow_up</i></div><div id="revbuilder-cpicker-check" class="revbuilder-cpicker-btn-large"><i class="material-icons revbuilder-cpicker-hover">check</i></div></div></div></div><span id="revbuilder-cpicker-remove-delete" data-text="delete_confirm"></span></div>';function st(){this.innerHTML=Te[m(this,"data-text")]}function lt(){this.setAttribute("placeholder",Te[m(this,"data-placeholder")])}function nt(){this.setAttribute("data-message",Te[m(this,"data-alert")])}function m(e,t){return e.getAttribute(t)||""}function dt(e){"string"==typeof(e=e||{})&&(e=JSON.parse(e.replace(/\&/g,'"'))),Te=f.extend({},it,e),ue=Te.color,y.find("*[data-placeholder]").each(lt),y.find("*[data-alert]").each(nt),y.find("*[data-text]").each(st)}function ct(e,t,i,a){var r,o,s,l,n,d;if(f.isPlainObject(e))for(d in e)e.hasOwnProperty(d)&&("string"==typeof(e=e[d])?e="gradient"===(e=RSColor.process(e))[1]?(l=(o=e[2]).angle,n=o.type,RSColor.processGradient(f.extend(!0,{},o),!0)):e[0]:(l=e.angle,n=e.type),r=isNaN(d)?d.replace(/_/g," ").replace(/\b\w/g,function(e){return e.toUpperCase()}):"radial"!==n?l+"°":"radial");else r=e;return"blank"!==e?(f.isPlainObject(e)&&(o=e,e=a||RSColor.processGradient(f.extend(!0,{},e),!0)),a='<span class="revbuilder-cpicker-color tptip'+i+'" data-title="'+r+'" data-color="'+e+'"><span class="revbuilder-cpicker-preset-tile"></span><span class="revbuilder-cpicker-preset-bg" style="background: '+e+'"></span>',t||(a+='<span class="revbuilder-cpicker-delete"><i class="material-icons">clear</i></span>'),s=f(a+="</span>"),o&&s.data("gradient",o),s[0]):((s=document.createElement("span")).className="revbuilder-cpicker-color blank",s)}function pt(){var e=m(this,"data-color").toLowerCase(),t=!Me&&e===Ae.toLowerCase();if(e===Je||t)return(e=f(this)).closest(".revbuilder-cpicker-presets-group").find(".revbuilder-cpicker-color.selected").removeClass("selected"),v=e,Me&&!he&&A(v.data("gradient"),!0),e.addClass("selected"),!1}function ut(e,t,i){var a;P&&(e||(a=t||L.val(),i=void 0!==i?i:J.val(),t="transparent"===a?"transparent":"100%"===i?RSColor.sanitizeHex(a):RSColor.processRgba(a,i)),i=(a="transparent"===t)?"":t,(e?_:B).data("state",t),a?P.css("background",i):P[0].style.background=i,F.css("background",i),Q&&Q(x,t,n,d),RVS.DOC.trigger("revcolorpickerupdate",[x,t]))}function A(e,t){var i=RSColor.process(e),a=i[1],r=i[0];if(G&&b.removeClass("checked"),"gradient"!==a&&"gradient_css"!==a){switch(a){case"hex":e=RSColor.sanitizeHex(r),J.val("100%"),Ft(100);break;case"rgba":var o=RSColor.rgbaToHex(r),s=parseInt(100*o[1],10);e=o[0],J.val(s+"%"),Ft(s);break;case"rgb":e=RSColor.rgbToHex(r),J.val("100%"),Ft(100);break;default:w.trigger("click"),B.trigger("click")}k.val(e).change(),t||B.trigger("click")}else if(G){"gradient_css"===a&&(i[2]=JSON.parse(i[2]));for(var l,n,i=i[2],d=i.angle,c=i.easing||"none",p=i.hasOwnProperty("strength")?i.strength:"100",u=("radial"===i.type&&(d="radial"),I.removeClass("selected"),f('.revbuilder-cpicker-orientation[data-direction="'+d+'"]').addClass("selected"),Pt(c),S.val(c).ddTP("change"),O.val(p+"%"),h.val(ft(d)),Pt(),kt(d),i.colors),v=document.createDocumentFragment(),g=u.length,m=0;m<g;m++)n=u[m],l=n.align,v.appendChild(bt(l,n.position,ht(n),mt(n,l)));C&&C.draggable("destroy"),T.empty().append(v),C=T.children().draggable(tt),E(),t||(we=!0,_.trigger("click"))}else k.val(RSColor.defaultValue).change(),B.trigger("click");return[r,a]}function vt(e,t){var i=function(e,t){var i,a=p.slice(),r=a.length;for(a.sort(RSColor.sortPoints);r--;)if((i=a[r]).align===e&&i.x<t)return i;for(var r=a.length,o=0;o<r;o++)if((i=a[o]).align===e&&i.x>t)return i}(e,t).color,a=mt(i,e,!0),i=bt(e,t,ht(i,!0),a),a=(s&&s.removeClass("active"),s=f(i).addClass("active").appendTo(T).draggable(tt),ce=s.children(".revbuilder-cpicker-point-square")[0],pe=s.children(".revbuilder-cpicker-point-triangle")[0],C=T.children(),gt(t));E(i),"bottom"===e&&o.val(a[1]).change()}function gt(e){void 0===e&&(e=p[Be].x);var t,i=s.attr("data-color"),a=s.hasClass("revbuilder-cpicker-point-bottom");return a?(l.hasClass("active")&&l.removeClass("active"),i=RSColor.rgbaToHex(i)[0],We.css("background",i),2<y.find(".revbuilder-cpicker-point-bottom").length&&l.addClass("active"),Ie.parent().addClass("disabled"),y.addClass("open")):(l.hasClass("active")&&(We.css("background",""),l.removeClass("active")),t=RSColor.getOpacity(i),Ie.attr("data-opacity",t).val(t).parent().removeClass("disabled"),2<y.find(".revbuilder-cpicker-point-top").length&&l.addClass("active"),y.removeClass("open")),r.val(e+"%").parent().removeClass("disabled"),[a,i]}function mt(e,t,i){return"bottom"===t?"rgb("+e.r+","+e.g+","+e.b+")":"rgba(0, 0, 0, "+(i?"1":e.a)+")"}function ht(e,t){t=t?"1":e.a;return"rgba("+e.r+","+e.g+","+e.b+","+t+")"}function St(e,t){var i=RSColor.hexToRGB(e);t?(V.val(e),Y.value=i[0],X.value=i[1],K.value=i[2]):(L.val(e),q.value=i[0],W.value=i[1],U.value=i[2],"0%"===J[0].value&&J.val("100%").trigger("focusout")),L.rsColorPicker("refresh")}function bt(e,t,i,a){var r=document.createElement("span");return r.className="revbuilder-cpicker-point revbuilder-cpicker-point-"+e,"string"==typeof i?r.setAttribute("data-color",i):f(r).data("gradient",i),r.setAttribute("data-location",t),r.style.left=t+"%",r.innerHTML="bottom"===e?'<span class="revbuilder-cpicker-point-triangle" style="border-bottom-color: '+a+'"></span><span class="revbuilder-cpicker-point-square" style="background: '+a+'"></span>':'<span class="revbuilder-cpicker-point-square" style="background: '+a+'"></span><span class="revbuilder-cpicker-point-triangle" style="border-top-color: '+a+'"></span>',r}function ft(e){return(a=a||document.createElement("textarea")).innerHTML=(e=e&&"radial"!==e?e:"0")+"°",a.value}function Rt(){s&&(s.removeClass("active"),s=!1),r.parent().addClass("disabled"),Ie.parent().addClass("disabled"),l.removeClass("active"),l.removeClass("active"),We.css("background",""),y.removeClass("open")}function yt(e,t){y.removeClass("active is-basic").hide(),M.removeClass("revbuilder-colorpicker-open"),j.css({left:"",top:""}),te&&(te.remove(),te=!1),v?(v.hasClass("selected")?(t&&x.data("hex",v.attr("data-color").toLowerCase()),v.removeClass("selected")):x.removeData("hex"),v=!1):x.removeData("hex"),t||(ae&&ae(x,ke,Le,n,d),N&&"transparent"!==N?(P[0].style.background=N,F.css("background",N)):(P.css("background",""),F.css("background","")),RVS.DOC.trigger("revcolorpickercancel",[x,ke,Le])),x=P=J=F=T=Ve=Oe=a=ve=Re=be=Se=de=fe=L=ie=V=K=X=Y=U=W=q=z=R=null}function _t(e){var t=f.extend(!0,{},g);return RSColor.processGradient(t,!0,e)}function E(e,t,i,a){ge=t,Bt(),ge=!1;for(var r,o,s,l,n=[],d=p.length,c=0;c<d;c++)r=(o=p[c]).color,n[c]=r,(o=o.el).setAttribute("data-color",RSColor.rgbaString(r.r,r.g,r.b,r.a)),o.setAttribute("data-opacity",100*r.a),e&&e===o&&(Be=c);z.hasClass("selected")?(g.type="radial",g.angle="0"):(g.type="linear",g.angle=parseInt(h.val(),10).toString()),g.colors=n,g.easing=S.val(),g.strength=parseInt(O.val(),10),v&&!Ge&&v.removeClass("selected"),a||(s=f.extend(!0,{},g),ut(!0,RSColor.processGradient(s,!0))),i||(Se=Se||document.getElementById("revbuilder-cpicker-direction-horizontal"),be=be||document.getElementById("revbuilder-cpicker-direction-vertical"),Re=Re||document.getElementById("revbuilder-cpicker-direction-radial"),ve=ve||document.getElementById("revbuilder-cpicker-gradient-input"),s=_t(!0),ve.style.background=(t=(t=s).replace("radial-","linear-").replace("ellipse at center,",""),a="90",-1===t.search("deg")&&(l=(t=t.split("("))[0],t.shift(),t=l+"(180deg, "+t.join("(")),l=(t=t.split("("))[0],t.shift(),(t=t.join("(").split(",")).shift(),l+"("+(a=void 0!==a?a+"deg,":"ellipse at center,")+t.join(",")),"none"!==g.easing&&(s=_t()),Oe.style.background=s,g.type="linear",g.angle="90",Se.style.background=_t(),g.angle="180",be.style.background=_t(),g.type="radial",g.angle="0",Re.style.background=_t())}function Vt(e,t){if(0!==e)for(var i;e--;)if((i=p[e]).align!==t)return i;return!1}function Ot(e,t,i){if(e!==i)for(var a;e++<i;)if((a=p[e]).align!==t)return a;return!1}function Bt(){p=[],le=[],ne=[],C.each(Lt),p.sort(RSColor.sortPoints);for(var e,t,i,a,r,o,s,l,n=p.length,d=n-1,c=0;c<n;c++)a=(e=p[c]).align,!1===(i=Vt(c,a))&&(i=Ot(c,a,d)),!1===(t=Ot(c,a,d))&&(t=Vt(c,a)),"bottom"===a?(a=e,o=t,l=s=void 0,s=(r=i).alpha,l=o.alpha,r=s!==l?RSColor.distAlpha(a.x,r.x,o.x,s,l).toFixed(2):s,r=RSColor.sanitizeAlpha(r),a.alpha=r,a.color.a=r):(o=i,l=t,r=a=s=void 0,s=(i=e).color,a=o.color,r=l.color,o!==l?(i=i.x,o=o.x,l=l.x,s.r=RSColor.distColor(i,o,l,a.r,r.r),s.g=RSColor.distColor(i,o,l,a.g,r.g),s.b=RSColor.distColor(i,o,l,a.b,r.b)):(s.r=a.r,s.g=a.g,s.b=a.b));p.sort(RSColor.sortPoints)}function Lt(e){var t=RSColor.rgbValues(m(this,"data-color"),4),i=-1!==this.className.search("bottom")?"bottom":"top",a=t[3].replace(/\.?0*$/,"")||0,r=-1!==(r=this.style.left).search("px")?(r=parseInt(r,10),parseInt(100*(Math.round(r)/(Ue-2)).toFixed(2),10)):parseInt(r,10);ge&&(r<50?r+=2*(50-r):r-=2*(r-50)),this.style.left=r+"%",this.setAttribute("data-location",r),a=RSColor.sanitizeAlpha(a),p[e]={el:this,x:r,alpha:a,align:i,color:{r:parseInt(t[0],10),g:parseInt(t[1],10),b:parseInt(t[2],10),a:a,position:r,align:i}},s&&s[0]!==this&&("bottom"==i?ne[ne.length]=r:le[le.length]=r)}function kt(e){Ve=Ve||document.getElementById("revbuilder-cpicker-wheel-point"),e=void 0!==e?e:parseInt(h.val(),10),Ve.style.transform="rotate("+e+"deg)"}function wt(e,t,i){var a,r,o=void 0!==i,i=o?i:parseInt(h.val(),10);e&&"keyup"===e.type?(a=!isNaN(i)&&-360<=i&&i<=360,r=i):(e=parseInt(h.data("orig-value"),10),i=i||"0",(isNaN(i)||i<-360||360<i)&&(i=r=e,h.val(ft(i)),a=!0),i!==e&&(r=i,a=!0,h.val(ft(i)),o||(i=t||i,I.removeClass("selected"),f('.revbuilder-cpicker-orientation[data-direction="'+i+'"]').addClass("selected")))),(a||t)&&(r&&kt(r),E())}function It(e,t){t=parseInt(100*(Math.round(t.position.left)/(Ue-2)).toFixed(2),10);r.val(t+"%").trigger("keyup")}function Ct(){var e=f(this);e.hasClass("revbuilder-cpicker-point-bottom"),e.trigger("click")}function Tt(){r.trigger("focusout")}function Ft(e){He=!0,Qe.slider("value",Math.round(.01*e*$e)),He=!1}function xt(e){var t=_e.offset(),i=e.pageX-t.left,e=e.pageY-t.top;isNaN(i)||isNaN(e)||((t=Math.atan2(e-Ye,i-Ye)*(180/Math.PI)+90)<0&&(t+=360),t=Math.max(0,Math.min(360,Math.round(t))),t=5*Math.round(t/5),wt(!1,!1,t))}function Jt(e){e.stopImmediatePropagation()}function Nt(e){(e=e||je).each(function(){var e=f(this).find(".revbuilder-cpicker-color").css("margin-bottom",0),t=e.length;e.each(function(e){e<t-4&&(this.style.marginBottom="10px")})}).RSScroll("update")}function Pt(e){fe=fe||f("#revpicker-easing-row"),e=e||S.val(),fe["none"===e?"removeClass":"addClass"]("active")}function jt(){if(!t)M||(M=f("body"),y=f('<div class="revbuilder-cpicker-wrap _TPRB_ color-view palette-open">'+ot+"</div>").appendTo(M)),u.core&&(u.core.colors&&(at=u.core.colors),u.core.gradients)&&(rt=u.core.gradients),Et(u),dt(u.language||it),t=!0;We=f("#revbuilder-cpicker-preview-gradient"),l=f("#revbuilder-cpicker-color-delete"),Ie=f("#revbuilder-cpicker-grad-opacity"),r=f("#revbuilder-cpicker-color-location"),I=f(".revbuilder-cpicker-orientation"),o=f("#revbuilder-cpicker-iris-gradient"),k=f("#revbuilder-cpicker-iris-color"),_=f("#revbuilder-cpicker-gradient-btn"),w=f("#revbuilder-cpciker-clear-hex"),b=f("#revbuilder-cpicker-meta-reverse"),Qe=f("#revbuilder-cpicker-scroll"),B=f("#revbuilder-cpicker-color-btn"),O=f("#revbuilder-cpicker-strength"),h=f("#revbuilder-cpicker-meta-angle"),_e=f("#revbuilder-cpicker-wheel"),j=f("#revbuilder-cpicker"),S=f("#revbuilder-cpicker-easing"),tt.drag=It,tt.stop=Tt,tt.start=Ct,B.data("state",f("#revbuilder-cpicker-colors").find(".revbuilder-cpicker-color").eq(0).attr("data-color")||"#ffffff"),_.data("state",f("#revbuilder-cpicker-gradients").find(".revbuilder-cpicker-color").eq(0).attr("data-color")||"linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%)"),j.draggable({containment:"window",handle:".revbuilder-cpicker-draggable",stop:function(){j.css("height","auto")}}),je=f(".revbuilder-cpicker-presets-group").RSScroll({wheelPropagation:!1,suppressScrollX:!0}),_e.on("mousedown.revcpicker",function(e){I.removeClass("selected"),me=!0,xt(e)}).on("mousemove.revcpicker",function(e){me&&xt(e)}).on("mouseleave.revcpicker mouseup.revcpicker",function(){me=!1}),f(".revbuilder-cpicker-main-btn").on("click.revcpicker",function(){var e,t;he=-1===this.id.search("gradient"),P&&(e=f(this).data("state")),he?(P&&(Je=L.val()),y.removeClass("gradient-view").addClass("color-view")):(P&&(Je=e),y.removeClass("color-view").addClass("gradient-view"),we||(ie.children(".revbuilder-cpicker-color").not(".blank").eq(0).trigger("click"),we=!0)),e&&(P.css("background",t="transparent"===e?"":e),F.css("background",t),Me=!0,f(".revbuilder-cpicker-color").not(".blank").each(pt),Me=!1,RVS.DOC.trigger("revcolorpickerupdate",[x,e])),he||(Ge=!0,f(".revbuilder-cpicker-point-bottom").first().trigger("click"),Ge=!1)}),f("#revbuilder-cpicker-palette").on("click",function(){y.hasClass("palette-open")?y.removeClass("palette-open"):(y.addClass("palette-open"),Nt())}),f("#revbuilder-cpicker-check").on("click.revcipicker",function(){var e,t,i;y.hasClass("color-view")?(t=L.val(),e=J.val(),t="transparent"===t?"transparent":"100%"===e?RSColor.sanitizeHex(t):RSColor.processRgba(t,e),e=[x,t,!1],t=t):(Rt(),E(!1,!1,!0,!0),i=JSON.stringify(g).replace(/\"/g,"&"),t=RSColor.processGradient(f.extend(!0,{},g),!0),e=[x,t,i]),!0!=(t=e[1]!==N)&&!0!==Ce||(x.attr("data-color",e[1]),RVS.DOC.trigger("revcolorpickerchanged",e),qe&&qe(e[0],e[1],e[2],n,d)),yt(0,!0==t||!0===Ce)}),y.on("click.revcpicker",function(e){f(e.target).closest("#revbuilder-cpicker").length||Rt()}),f(".revbuilder-cpicker-close").on("click.revcpicker",yt),k.wpColorPicker({palettes:!1,width:190,border:!1,hide:!1,change:function(e,t){var i,t=t.color.toString();St(this.value=t),De||(i=J.val(),ut(!1,t=0===parseInt(i,10)?"transparent":t,i),v&&(v.removeClass("selected"),v=!1))}}),o.wpColorPicker({palettes:!1,height:190,border:!1,hide:!1,change:function(e,t){var t=t.color.toString(),t=(St(this.value=t,!0),We.css("background",t),ce.style.backgroundColor=t,pe.style.borderBottomColor=t,RSColor.processRgba(t,100)),i=RSColor.rgbValues(t,4),a=g.colors[Be];a.r=i[0],a.g=i[1],a.b=i[2],a.a=RSColor.sanitizeAlpha(i[3]),s&&s.attr("data-color",t),E()}}),Qe.slider({orientation:"vertical",max:$e,value:$e,start:function(){ze="transparent"===L.val()},slide:function(e,t){var i;He||(t=parseInt(100*(t.value/$e).toFixed(2),10),ze&&L.val(i=t?"#ffffff":"transparent"),ut(!1,i=0===t?"transparent":i,t||"transparent"),J.val(t+"%"))}}),f("body").on("click.revcpicker",".revbuilder-cpicker-point",function(){T.find(".revbuilder-cpicker-point.active").removeClass("active"),s=f(this).addClass("active"),ce=s.children(".revbuilder-cpicker-point-square")[0],pe=s.children(".revbuilder-cpicker-point-triangle")[0],E(this);var e=gt();e[0]&&o.val(e[1]).change()}).on("mousedown.revcpicker",".revbuilder-cpicker-point",function(e){s=f(this).data("mousestart",e.pageY)}).on("mousemove.revcpicker",function(e){var t;s&&s.data("mousestart")&&(t=s.data("mousestart"),e=e.pageY,s.hasClass("revbuilder-cpicker-point-bottom")?t<e&&15<e-t&&l.hasClass("active")?s.addClass("warning"):s.removeClass("warning"):e<t&&15<t-e&&l.hasClass("active")?s.addClass("warning"):s.removeClass("warning"))}).on("mouseup.revcpicker",function(e){var t;s&&s.data("mousestart")&&(t=s.data("mousestart"),e=e.pageY,s.removeData("mousestart"),s.hasClass("revbuilder-cpicker-point-bottom")?t<e&&10<e-t&&l.hasClass("active")?l.trigger("click"):s.removeClass("warning"):e<t&&10<t-e&&l.hasClass("active")?l.trigger("click"):s.removeClass("warning"))}).on("keypress.revcpicker",function(e){y.hasClass("active")&&(27==(e=e.which)?yt():13==e&&i&&i.blur())}).on("click.revcpicker",".revbuilder-cpicker-color:not(.blank)",function(){if(v){if(v[0]===this&&v.hasClass("selected"))return;v.removeClass("selected")}var e,t,i;v=f(this),y.hasClass("color-view")?(e=v.attr("data-color"),"rgba"===(t=RSColor.process(e))[1]?(e=RSColor.rgbaToHex(t[0]),i=100*parseFloat(e[1]),J.val(i+"%").trigger("keyup"),e=e[0]):"transparent"!==t[1]&&"transparent"!==e?J.val("100%").trigger("keyup"):(De=!0,w.trigger("click")),De=!0,k.val(e).change(),"transparent"===L.val()&&L.val(e.toLowerCase()),De=!1,i=J.val(),ut(!1,e=0===parseInt(i,10)?"transparent":e,i)):(R.removeClass("full"),de.removeClass("full"),A(v.data("gradient"),!0),b.removeClass("checked"),ie.find(".revbuilder-cpicker-color.selected").removeClass("selected"),f(".revbuilder-cpicker-point-bottom").first().trigger("click")),v.addClass("selected")}).on("mouseover.revcpicker",".revbuilder-cpicker-color:not(.blank)",function(){}).on("mouseout.revcpicker",".revbuilder-cpicker-color:not(.blank)",function(){}).on("click.revcpicker",".revbuilder-cpicker-delete",function(){if(Z){if(window.confirm(document.getElementById("revbuilder-cpicker-remove-delete").innerHTML)){y.addClass("onajax onajaxdelete");var a=f(this),r=a.parent(),e=r.attr("data-title")||"";if(!e)return void console.log("Preset does not have a name/title");var t=-1!==a.closest(".revbuilder-cpicker-presets-group")[0].id.search("colors")?"colors":"gradients";RVS.DOC.off("revcpicker_onajax_delete.revcpicker").on("revcpicker_onajax_delete.revcpicker",function(e,t){t&&console.log(t);var t=a.closest(".revbuilder-cpicker-presets-group"),i=t.find(".rs__scrollbar-x-rail");r.remove(),f('<span id="hello" class="revbuilder-cpicker-color blank"></span>').insertBefore(i),Nt(t),y.removeClass("onajax onajaxdelete")}),e=f.trim(e.replace(/\W+/g,"_")).replace(/^\_|\_$/g,"").toLowerCase(),Z("delete",e,t,"revcpicker_onajax_delete",x)}return!1}console.log("Ajax callback not defined")}),f(".revbuilder-cpicker-save-preset-btn").on("click.revcpicker",function(){var l,e,n,d,t,i,c,a;Z?(l=f(this),(a=l.closest(".revbuilder-cpicker-presets").find(".revbuilder-cpicker-preset-save").val())&&isNaN(a)?(c=y.hasClass("color-view")?"colors":"gradients",a=f.trim(a.replace(/\W+/g,"_")).replace(/^\_|\_$/g,"").toLowerCase(),f("#revbuilder-cpicker-"+c+"-custom").find(".revbuilder-cpicker-color").not(".blank").each(function(){if(f.trim(m(this,"data-title").replace(/\W+/g,"_")).replace(/^\_|\_$/g,"").toLowerCase()===a)return alert(l.attr("data-message")),!(e=!0)}),e||(y.addClass("onajax onajaxsave"),n={},i="colors"==c?(i=L.val(),t=J.val(),"transparent"===i?"transparent":"100%"===t?RSColor.sanitizeHex(i):RSColor.processRgba(i,t)):(d=Oe.style.background,E(!1,!1,!0),f.extend({},g)),n[a]=i,RVS.DOC.off("revcpicker_onajax_save.revcpicker").on("revcpicker_onajax_save.revcpicker",function(e,t){if(t)y.removeClass("onajax onajaxsave"),alert(l.attr("data-message"));else{var t=f(ct(n,!1," revbuilder-picker-color-custom",d)),i=f("#revbuilder-cpicker-"+c+"-custom"),a=i.find(".rs__scrollbar-x-rail"),r=i.find(".revbuilder-cpicker-color.blank");if(r.length)r=r.eq(0),t.insertBefore(r),r.remove();else{t.insertBefore(a);for(var o=i.children(".revbuilder-cpicker-color").length,s=Math.max(Math.ceil(o/Ke),Xe)*Ke;o++<s;)f('<span class="revbuilder-cpicker-color blank"></span>').insertBefore(a)}f("#revbuilder-cpicker-preset-"+c).val("custom").trigger("change"),Nt(i),t.trigger("click"),f(".revbuilder-cpicker-preset-save").val(""),y.removeClass("onajax onajaxsave")}}),Z("save",n,c,"revcpicker_onajax_save",x))):alert(l.attr("data-message"))):console.log("Ajax callback not defined")}),w.on("click.revcpicker",function(){Ft(0),k.val(RSColor.defaultValue).change(),L.val("transparent"),ut(!1,"transparent"),clearTimeout(Pe),Pe=setTimeout(At,100)}),y.find('input[type="text"]').on("focusin.revcpicker",function(){i=this}).on("focusout.revcpicker",function(){i=!1}),f(".revbuilder-cpicker-input").on("focusin.revcpicker",function(){var e=f(this);e.data("orig-value",e.val()).parent().addClass("focus")}).on("focusout.revcpicker",function(){f(this).parent().removeClass("focus")}),f(".revbuilder-cpicker-rgb").on("focusin.revcpicker",function(){f(this).data("prev",this.value)}).on("focusout.revcpicker keyup.revcpicker",function(){var e=this.value;isNaN(e)||e<0||255<e?this.value=f(this).data("prev"):(y.hasClass("color-view")?L.val(RSColor.rgbToHex("rgb("+q.value+","+W.value+","+U.value+")")):V.val(RSColor.rgbToHex("rgb("+Y.value+","+X.value+","+K.value+")"))).trigger("focusout")}),f(".revbuilder-cpicker-hex").on("focusout.revcpicker",function(){var e,t;if("revbuilder-cpicker-color-hex"===this.id)if(t=L.val()){if(t=RSColor.sanitizeHex(t),!RSColor.isColor.test(t)){if(!(e=f(this).data("orig-value")))return void w.trigger("click");if("transparent"===(t=e))return void w.trigger("click")}St(t),k.val(t).change()}else w.trigger("click");else t=V.val()||RSColor.defaultValue,t=RSColor.sanitizeHex(t),RSColor.isColor.test(t)||(t=(e=f(this).data("orig-value"))||RSColor.defaultValue),V.val(t),o.val(t).change()}).on("focusin.revcpicker",Jt),r.on("keyup.revcpicker focusout.revcpicker",function(e){if(s){var t,i="bottom"==(s.hasClass("revbuilder-cpicker-point-bottom")?"bottom":"top")?ne:le,a=r.val().replace("%","")||"0",e=e.type;for(isNaN(a)&&(a="keyup"===e?"0":s.attr("data-location")),t=(a=Math.max(0,Math.min(100,parseInt(a,10))))<50?1:-1;-1!==i.indexOf(a);)a+=t;"focusout"===e&&(r.val(a+"%"),s.attr("data-location",a)),s.css("left",a+"%"),E()}}).on("focusin.revcpicker",Jt),f("#revbuilder-cpciker-clear-gradient").on("click.revcpicker",function(){o.val(RSColor.defaultValue).change()}),h.on("keyup.revcpicker focusout.revcpicker",wt).on("focusin.revcpicker",Jt),I.on("click.revcpicker",function(){var e=f(this),t=e.attr("data-direction");I.removeClass("selected"),e.addClass("selected"),"radial"!==t?h.val(ft(t)):h.val(0),wt(!1,t)}),f(".revbuilder-cpicker-point-delete").on("click.revcpicker",function(){var e,t;-1!==this.className.search("active")&&(e=s.hasClass("revbuilder-cpicker-point-bottom")?"bottom":"top",2<(t=y.find(".revbuilder-cpicker-point-"+e).length)&&(s.draggable("destroy").remove(),C=T.children(),y.trigger("click"),E()),t<=20)&&("bottom"==e?de:R).removeClass("full")}),f(".revbuilder-cpicker-preset-save").on("focusin.revcpicker",Jt),f(".revbuilder-cpicker-opacity-input").on("keyup.revcpicker focusout.revcpicker",function(e){var t=-1===this.id.search("grad"),i=t?J:Ie,a=i.val().replace("%",""),e=e.type;isNaN(a)&&(a="keyup"===e?"0":f(this).data("orig-value").replace("%","")),a=Math.max(0,Math.min(100,a)),"focusout"===e&&(i.val(a+"%"),t||s.attr("data-opacity",a)),t?(ut(!1,0===parseInt(a,10)&&"transparent",a),Ft(a)):(e=RSColor.rgbValues(s.attr("data-color"),3),i=g.colors[Be],a=RSColor.sanitizeAlpha(.01*parseInt(a,10)),i.r=e[0],i.g=e[1],i.b=e[2],i.a=a,t=RSColor.rgbaString(i.r,i.g,i.b,a),s.attr("data-color",t),E(),ce.style.backgroundColor=t="rgba(0, 0, 0, "+a+")",pe.style.borderTopColor=t)}).on("focusin.revcpicker",Jt),f(".revbuilder-cpicker-builder-hit").on("click.revcpicker",function(e){p||Bt();for(var t=parseInt(100*((e.pageX-R.offset().left)/Ue).toFixed(2),10),e=-1!==this.id.search("bottom")?"bottom":"top",i="bottom"==e?ne:le,a=t<50?1:-1;-1!==i.indexOf(t);)t+=a;"bottom"==e?y.find(".revbuilder-cpicker-point-bottom").length<20?(vt(e,t),v=!1):de.addClass("full"):y.find(".revbuilder-cpicker-point-top").length<20?(vt(e,t),v=!1):R.addClass("full")}),b.on("click.revcpicker",function(){!b.hasClass("checked")?b.addClass("checked"):b.removeClass("checked"),E(!1,!0)}),S.on("change.revcpicker",function(){E(),Pt(this.value)}),O.on("keyup.revcpicker focusout.revcpicker",function(e){var t=O.val().replace("%",""),e=e.type;isNaN(t)&&(t="keyup"===e?"0":O.data("orig-value").replace("%","")),t=Math.max(10,Math.min(1e3,t)),"focusout"===e&&O.val(t+"%"),E()}).on("focusin.revcpicker",Jt);var e=f(".revbuilder-cpicker-preset-selector").on("change.revcpicker",function(){var e=this.value,t="core"===e?"custom":"core",i=-1!==this.id.search("colors")?"colors":"gradients";document.getElementById("revbuilder-cpicker-"+i+"-"+t).style.display="none",document.getElementById("revbuilder-cpicker-"+i+"-"+e).style.display="block",Nt()});f.fn.ddTP&&(e.ddTP(),S.ddTP()),D=!0}function At(){J.val("0%")}function Et(e){var t,i,a,r,o,e=f.extend({},e),s=e.core||{},l=e.custom;!Fe||l?(r=4,l=(Fe=l)||{colors:[],gradients:[]}):r=2,s.colors||(s.colors=at),s.gradients||(s.gradients=rt);for(var n=0;n<r;n++){switch(n){case 0:t="colors-core",a=s.colors;break;case 1:t="gradients-core",a=s.gradients;break;case 2:t="colors-custom",a=l.colors;break;case 3:t="gradients-custom",a=l.gradients}i=function(e,t){for(var i=document.createDocumentFragment(),a=-1!==e.search("core"),r=a?"":" revbuilder-picker-color-custom",o=t.length,s=Math.max(Math.ceil(o/Ke),Xe),l=0;l<s;l++)for(;t.length<(l+1)*Ke;)t[t.length]="blank";for(o=t.length,l=0;l<o;l++)i.appendChild(ct(t[l],a,r));return["revbuilder-cpicker-"+e,i]}(t,a.slice()||[]),(o=f("#"+i[0])).find(".revbuilder-cpicker-color").remove(),o.prepend(i[1])}}function Dt(e,t,i){var a,r=-1;for(a in t)void 0!==t[a][i]&&t[a][i]===e[i]&&(r=a);return r}function Mt(e){return e.id?jQuery('<span><span class="skin_mini_color" style="background:'+n[e.element.value].v+'"></span>'+e.text+"</span>"):e.text}function Gt(e){for(var t in void 0!==n[e]&&A(n[e].v,!1),c)for(var i in n)n.hasOwnProperty(i)&&(i!==e&&void 0!==n[i].ref&&0!==n[i].ref.length&&(n[i].ref=function(e,t,i){return jQuery.grep(e,function(e){return e[i]!=t[i]})}(n[i].ref,c[t],"r")),i===e)&&(n[i].ref=void 0===n[i].ref?[]:n[i].ref,-1==Dt(c[t],n[i].ref,"r"))&&n[i].ref.push(c[t])}f.rsColorPickerApi={setValue:function(e,t){A(e,t)},setGlobalColors:function(e){n=jQuery.extend(!0,{},e)},setGlobalCandidates:function(e){c=e},getGlobalColors:function(){return n},closeColorPicker:function(){yt()},showGlobal:function(e,r,t){n=jQuery.extend(!0,{},r),c=t,Ne=e.mode;var i,a;e.currentInput[0].dataset;for(a in currentEditing=document.getElementById("revbuilder-cpicker-current-edit"),editTitle=document.getElementById("revbuilder-cpicker-edit-title"),widgetId=x.attr("data-widget-id"),html=x.attr("data-appended-html"),editing=x.attr("data-editing"),(em=document.createElement("div")).id="revbuilder-cpicker-globals",i='<div id="revbuilder-cpicker-gactive">'+RVS_LANG.globalcoloractive+"</div>",i=(i+='<input id="enadisaGlobalSkin" type="checkbox">')+'<div id="inp_SkinPicker">'+'<div style="margin-left:25px;margin-right:20px;" class="revbuilder-cpicker-input-wrap"><select id="gc_skinPicker">',n)n.hasOwnProperty(a)&&(i+='<option value="'+a+'" '+(0<=n[a].v.indexOf("gradient")&&("single"===e.mode||"basic"===e.mode)?' disabled="true" ':"")+">"+n[a].alias+"</option>");i=(i+="</select></div>")+'<div id="edit_skin_colors" class="basic_action_button layerinput autosize"><i class="material-icons">color_lens</i>'+RVS_LANG.editskins+"</div></div>",em.innerHTML=i,document.getElementById("revbuilder-cpicker").appendChild(em);var o=jQuery(document.getElementById("gc_skinPicker")),t=function(){var e,t=[];for(e in c)for(var i in t[e]=-1,n)n.hasOwnProperty(i)&&void 0!==n[i].ref&&0!==n[i].ref.length&&-1===t[e]&&(t[e]=-1!==Dt(c[e],n[i].ref,"r")?i:-1);var a=-1;for(i in t)a=-1===a&&-1!==t[i]?t[i]:-1!==t[i]&&-1!==a[i]?-999:a;return a}();-1===t||-999===t?(d=!1,document.getElementById("inp_SkinPicker").style.display="none",jQuery("#enadisaGlobalSkin")[0].checked=!1):(d=t,o[0].value=t,document.getElementById("inp_SkinPicker").style.display="inline-block",jQuery("#enadisaGlobalSkin")[0].checked=!0,currentEditing.innerHTML=n[t].alias+" Skin"),void 0!==RVS&&void 0!==RVS.F&&void 0!==RVS.F.initOnOff&&(RVS.F.initOnOff(em),RVS.F.turnOnOff(em,!1)),o.ddTP("destroy").ddTP({tags:!1,pre:'<span class="skin_mini_color" style="background:#data#"></span>',preDataFunction:function(e){var t=jQuery.rsColorPickerApi.getGlobalColors();return void 0!==t&&void 0!==t[e]?t[e].v:void 0},templateResult:Mt}),jQuery("#enadisaGlobalSkin").on("change",function(){(Ce=!0)===this.checked?(document.getElementById("inp_SkinPicker").style.display="inline-block",o.trigger("change.select2"),o.ddTP("change")):(d=!1,Gt(-1),document.getElementById("inp_SkinPicker").style.display="none",A(N,!1),currentEditing.innerHTML=editing)}),o.on("change.select2",function(){Ce=!0,n=jQuery.extend(!0,{},r),-1!==d&&-999!==d&&void 0!==r[d]&&A(r[d].v,!1),d=this.value,Gt(this.value);var e=this.value,t=Ne,i="single"===t||"basic"===t;if(!i)for(var a in n[e].ref)n[e].ref.hasOwnProperty(a)&&(i=!0===i||RVS.F.noGradient(n[e].ref[a].r));i?jQuery("#revbuilder-cpicker-gradient-btn").hide():jQuery("#revbuilder-cpicker-gradient-btn").show(),currentEditing.innerHTML=n[this.value].alias+" Skin"})},hideGlobal:function(){jQuery("#revbuilder-cpicker-globals").remove(),d=n=void 0}},f.rsColorPicker=function(e){u=f.extend(!0,u||{},e),e.mode&&(et=e.mode),e.init&&(H=e.init),e.onAjax&&(ee=e.onAjax),e.onEdit&&($=e.onEdit),e.change&&(se=e.change),e.cancel&&(oe=e.cancel),e.title&&(re=e.title),e.language&&e.language,e.widgetId&&(xe=e.widgetId),e.defaultValue&&(RSColor.defaultValue=e.defaultValue),e.wrapClasses&&(Ze=e.wrapClasses),e.appendedHtml&&(Ee=e.appendedHtml),e.onRefresh&&(ye=e.defRefresh),t&&(Nt(),e.language)&&dt(e.language)};var e={refresh:function(){var e,t,i,a=f(this),r=[a];a.hasClass("revbuilder-cpicker-component")?(e=a.data("revcp")||{},t=a.val()||e.defaultValue||RSColor.defaultValue,e=e.onRefresh||ye,t=(i=RSColor.process(t))[0],i="rgba"===i[1]&&RSColor.transparentRgba(t,!0)?"":t,"transparent"!==t?(a.data("tpcp")[0].style.background=i,F&&F.css("background",i)):(a.data("tpcp").css("background",""),F&&F.css("background","")),a.attr("data-color",t).data("hex",t),r[1]=t,e&&e(r[0],t)):(r[1]=!1,r[2]="Color Picker not inited for this input field yet"),RVS.DOC.trigger("revcolorpickerrefresh",r)},destroy:function(){f(this).removeData().closest(".revbuilder-cpicker-master-wrap").removeData().remove()}};function zt(){void 0!==RVS.LIB.COLOR_PRESETS&&RVS.LIB.COLOR_PRESETS||(RVS.LIB.COLOR_PRESETS={colors:[],gradients:[]}),RVS.LIB.COLOR_PRESETS.colors||(RVS.LIB.COLOR_PRESETS.colors=[]),RVS.LIB.COLOR_PRESETS.gradients||(RVS.LIB.COLOR_PRESETS.gradients=[]),f.rsColorPicker({custom:RVS.LIB.COLOR_PRESETS,onAjax:function(e,t,i,a,r){var o=!1,s=RVS.LIB.COLOR_PRESETS[i];switch(e){case"save":s[s.length]=t,o=!0;break;case"delete":var l=s.length;e:for(var n=0;n<l;n++)for(var d in s[n])if(d===t){s.splice(n,1),o=!0;break e}}o&&"undefined"!=typeof RVS&&void 0!==RVS.F&&RVS.F.ajaxRequest("save_color_preset",{presets:jQuery.extend(!0,{},RVS.LIB.COLOR_PRESETS)},function(e){var t=e.error||!1;try{void 0!==f.esgColorPicker&&f.esgColorPicker({custom:RVS.LIB.COLOR_PRESETS})}catch(t){}RVS.DOC.trigger(a,[t])})}})}f.fn.rsColorPicker=function(p){return p&&"string"==typeof p?this.each(e[p]):this.each(function(){var e,t,i,a,r,o,s,l,n,d,c=f(this);0<=this.className.indexOf("revbuilder-cpicker-component")?c.rsColorPicker("refresh"):(e=document.createElement("div"),t=document.createElement("span"),l=document.createElement("span"),t.className="revbuilder-colorbox",l.className="revbuilder-colorbtn",e.className="revbuilder-colorpicker",e.appendChild(t),e.appendChild(l),o=this.dataset.wrapClasses||Ze,r=this.dataset.wrapper,n=this.dataset.wrapId,d=this.dataset.title,i=this.value,a=1==c.data("visible")?"visible-cp-input":"",l.innerText=d||re||ue||it.color,void 0!==o&&e.classList.add(o),n&&(e.id=n),p&&f.isPlainObject(p)&&(r=r||p.wrapper,o=o||p.wrapClasses,n=n||p.wrapId,d=d||p.title,s=p.defaultValue,(l=c.data("revcp"))&&(p=f.extend({},l,p)),c.data("revcp",p)),i||(i=s||RSColor.defaultValue,this.value=i),i=(o=RSColor.process(i))[0],"transparent"!==(o="rgba"===o[1]&&RSColor.transparentRgba(i,!0)?"":i)&&(t.style.background=o),this.dataset.color=i,this.classList.add("revbuilder-cpicker-component"),c.data("tpcp",jQuery(t)),(e=this.parentNode.insertBefore(e,this)).appendChild(this),(e=jQuery(e)).data("revcolorinput",c),r?(r=f(r).addClass("revbuilder-cpicker-master-wrap").addClass(a),e.wrap(r)):e.addClass("revbuilder-cpicker-master-wrap").addClass(a),n=!!p&&(p.init||H),d=u?f.extend(!0,u,p||{}):p||!1,n&&n(e,c,i,d),RVS.DOC.trigger("revcolorpickerinit",[e,c,i,d]))})},f(function(){f("body").on("click.revcpicker",".revbuilder-colorpicker",function(){D||jt(),Oe=document.getElementById("revbuilder-cpicker-gradient-output"),Y=document.getElementById("revbuilder-cpicker-r2"),X=document.getElementById("revbuilder-cpicker-g2"),K=document.getElementById("revbuilder-cpicker-b2"),q=document.getElementById("revbuilder-cpicker-r"),W=document.getElementById("revbuilder-cpicker-g"),U=document.getElementById("revbuilder-cpicker-b"),T=f("#revbuilder-cpciker-point-container"),F=f("#revbuilder-cpicker-preview-color"),J=f("#revbuilder-cpicker-color-opacity"),z=f("#revbuilder-cpicker-orientation-radial"),ie=f("#revbuilder-cpicker-gradients-core"),V=f("#revbuilder-cpicker-gradient-hex"),de=f("#revbuilder-cpicker-hit-bottom"),L=f("#revbuilder-cpicker-color-hex"),R=f("#revbuilder-cpicker-hit-top"),x=f(this).data("revcolorinput");var e,t,i,a,r,o,s,l,n=document.getElementById("revbuilder-cpicker-current-edit"),d=document.getElementById("revbuilder-cpicker-edit-title"),c=x.attr("data-widget-id"),p=x.attr("data-appended-html"),u=x.attr("data-editing"),v=x.attr("data-colors"),g=x.attr("data-mode"),m=x.data("revcp"),h=x.attr("data-lang"),S=(v&&((v=JSON.parse(v.replace(/\&/g,'"'))).colors&&(l=v.colors),v.gradients)&&(S=v.gradients),m&&((v=m.colors)&&(v.core&&(r=v.core.colors,b=v.core.gradients),v.custom)&&(t=v.custom.colors,e=v.custom.gradients),o=m.onEdit,s=m.onAjax,i=m.change,a=m.cancel,h=h||m.lang,g=g||m.mode,p=p||m.appendedHtml,u=u||m.editing,c=c||m.widgetId),(b||r||e||t||S||l)&&(v={},(b||r||S||l)&&(v.core={colors:l||r||at,gradients:S||b||rt}),(e||t)&&(v.custom={colors:t||at,gradients:e||rt}),Et(v)),(c=c||xe)&&(y[0].id=c),(p=p||Ee)&&(te=f(p).appendTo(j)),h&&dt(h),g=g||et,u?d.style.visibility="visible":(u="",d.style.visibility="hidden"),n.innerHTML=u,"single"===g||"basic"===g?(G=!1,_.hide(),B.show(),"basic"===g&&y.addClass("is-basic")):(G=!0,_.show(),B.show()),m=x.val()||RSColor.defaultValue,1<(m="string"==typeof(l=m)&&"transparent"!==l.trim()&&-1===l.search(/\[\{/)&&-1!==l.search("-gradient")?RSColor.reverseGradient(m):m).split("||").length&&(m=RSColor.joinToRgba(m),x.val(m)),r=A(m),N=r[0],ke=N,Le=x.val(),Q=o||$,Z=s||ee,ae=a||oe,qe=i||se,("gradient"!==r[1]?B:_).data("state",N),M.addClass("revbuilder-colorpicker-open"),P=x.data("tpcp"),y.data("revcpickerinput",x).addClass("active").show(),Nt(),Ae=x.attr("data-color"),RSColor.process(m)),b=("rgba"===S[1]?0==(S=RSColor.rgbValues(S[0],4))[3]?F.css("background",""):F.css("background",Ae):"transparent"===S[1]?F.css("background",""):F.css("background",Ae),Je=x.data("hex"),f(".revbuilder-cpicker-color").not(".blank").each(pt),j.css({marginLeft:-.5*j.width(),marginTop:-.5*j.height()}),jQuery(".iris-square-value"));!0!==b.data("badlistener")&&(b.on("click",function(){return this.href="",!1}),b.data("badlistener",!0)),RVS.DOC.trigger("RSCOLOR.OPEN",{openingValue:r[0],mode:g,currentInput:x})})});var Qt=!1;"loading"===document.readyState?document.addEventListener("readystatechange",function(){"interactive"!==document.readyState&&"complete"!==document.readyState||Qt||(Qt=!0,zt())}):(Qt=!0,zt())}("undefined"!==jQuery&&jQuery),function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).RSClipboard=e()}(function(){return function a(r,o,s){function l(t,e){if(!o[t]){if(!r[t]){var i="function"==typeof require&&require;if(!e&&i)return i(t,!0);if(n)return n(t,!0);e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}i=o[t]={exports:{}};r[t][0].call(i.exports,function(e){return l(r[t][1][e]||e)},i,i.exports,a,r,o,s)}return o[t].exports}for(var n="function"==typeof require&&require,e=0;e<s.length;e++)l(s[e]);return l}({1:[function(e,t,i){var a;"undefined"==typeof Element||Element.prototype.matches||((a=Element.prototype).matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector),t.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},{}],2:[function(e,t,i){var s=e("./closest");t.exports=function(e,t,i,a,r){var o=function(t,i,e,a){return function(e){e.delegateTarget=s(e.target,i),e.delegateTarget&&a.call(t,e)}}.apply(this,arguments);return e.addEventListener(i,o,r),{destroy:function(){e.removeEventListener(i,o,r)}}}},{"./closest":1}],3:[function(e,t,i){i.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},i.nodeList=function(e){var t=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"in e&&(0===e.length||i.node(e[0]))},i.string=function(e){return"string"==typeof e||e instanceof String},i.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},{}],4:[function(e,t,i){var d=e("./is"),c=e("delegate");t.exports=function(e,t,i){if(!e&&!t&&!i)throw new Error("Missing required arguments");if(!d.string(t))throw new TypeError("Second argument must be a String");if(!d.fn(i))throw new TypeError("Third argument must be a Function");if(d.node(e))return r=t,o=i,(a=e).addEventListener(r,o),{destroy:function(){a.removeEventListener(r,o)}};var a,r,o,s,l,n;if(d.nodeList(e))return s=e,l=t,n=i,Array.prototype.forEach.call(s,function(e){e.addEventListener(l,n)}),{destroy:function(){Array.prototype.forEach.call(s,function(e){e.removeEventListener(l,n)})}};if(d.string(e))return c(document.body,e,t,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},{"./is":3,delegate:2}],5:[function(e,t,i){t.exports=function(e){var t,i;return e="SELECT"===e.nodeName?(e.focus(),e.value):"INPUT"===e.nodeName||"TEXTAREA"===e.nodeName?((t=e.hasAttribute("readonly"))||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),t||e.removeAttribute("readonly"),e.value):(e.hasAttribute("contenteditable")&&e.focus(),t=window.getSelection(),(i=document.createRange()).selectNodeContents(e),t.removeAllRanges(),t.addRange(i),t.toString())}},{}],6:[function(e,t,i){function a(){}a.prototype={on:function(e,t,i){var a=this.e||(this.e={});return(a[e]||(a[e]=[])).push({fn:t,ctx:i}),this},once:function(e,t,i){function a(){r.off(e,a),t.apply(i,arguments)}var r=this;return a._=t,this.on(e,a,i)},emit:function(e){for(var t=[].slice.call(arguments,1),i=((this.e||(this.e={}))[e]||[]).slice(),a=0,r=i.length;a<r;a++)i[a].fn.apply(i[a].ctx,t);return this},off:function(e,t){var i=this.e||(this.e={}),a=i[e],r=[];if(a&&t)for(var o=0,s=a.length;o<s;o++)a[o].fn!==t&&a[o].fn._!==t&&r.push(a[o]);return r.length?i[e]=r:delete i[e],this}},t.exports=a},{}],7:[function(e,t,i){var a,r;a=this,r=function(e,t){"use strict";var i=(t=t)&&t.__esModule?t:{default:t},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t=(function(e,t,i){return t&&o(e.prototype,t),i&&o(e,i),e}(r,[{key:"resolveOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir"),t=(this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px",window.pageYOffset||document.documentElement.scrollTop);this.fakeElem.style.top=t+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,i.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,i.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){if(this._action=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"copy","copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":a(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),r);function r(e){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");this.resolveOptions(e),this.initSelection()}function o(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}e.exports=t},void 0!==i?r(t,e("select")):(r(r={exports:{}},a.select),a.clipboardAction=r.exports)},{select:5}],8:[function(e,t,i){var a,r;a=this,r=function(e,t,i,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){e="data-clipboard-"+e;if(t.hasAttribute(e))return t.getAttribute(e)}var s=r(t),t=r(i),l=r(a),n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d=function(e,t,i){return t&&c(e.prototype,t),i&&c(e,i),e},i=function(e){function a(e,t){var i;if(this instanceof a)return(i=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this))).resolveOptions(t),i.listenClick(e),i;throw new TypeError("Cannot call a class as a function")}var t=a;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),d(a,[{key:"resolveOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===n(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,l.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){e=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(e){return o("action",e)}},{key:"defaultTarget",value:function(e){e=o("target",e);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(e){return o("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof e?[e]:e,t=!!document.queryCommandSupported;return e.forEach(function(e){t=t&&!!document.queryCommandSupported(e)}),t}}]),a}(t.default);function c(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}e.exports=i},void 0!==i?r(t,e("./clipboard-action"),e("tiny-emitter"),e("good-listener")):(r(r={exports:{}},a.clipboardAction,a.tinyEmitter,a.goodListener),a.clipboard=r.exports)},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)}),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,RVS.OZ=void 0===RVS.OZ?{}:RVS.OZ,function(){function i(){if(void 0===RVS.ENV.optimizer&&(c='<div class="rb-modal-wrapper _TPRB_" data-modal="rbm_optimizer">',c=(c=(c=(c=(c=(c=(c=(c=(c=(c=(c+='\t<div class="rb-modal-inner">\t\t<div class="rb-modal-content">\t\t\t<div id="rbm_optimizer" class="rb_modal form_inner">')+'\t\t\t\t<div class="rbm_header"><i class="rbm_symbol material-icons">flash_on</i><span class="rbm_title">'+RVS_LANG.optimizertitel+'</span><i class="rbm_close material-icons">close</i></div><div class="rbm_header_content"><div class="optim_row noborder" style="height:50px">')+'<div class="optim_cell op_c_a optim_title">'+RVS_LANG.element+"</div>")+'<div class="optim_cell op_c_b optim_title">'+RVS_LANG.filesize+"</div>")+'<div class="optim_cell op_c_c optim_title">'+RVS_LANG.dimensions+'<i id="more_about_optimizer" class="material-icons">help</i><div class="optim_subtitles"><div class="optim_subtitle" style="width:90px">'+RVS_LANG.toosmall+'</div><div class="optim_subtitle" style="width:139px">'+RVS_LANG.standard1x+'</div><div class="optim_subtitle" style="width:91px">'+RVS_LANG.retina2x+'</div><div class="optim_subtitle" style="width:69px">'+RVS_LANG.oversized+"</div></div></div>")+'<div class="optim_cell op_c_d optim_title">'+RVS_LANG.suggestion+'</div><div class="optim_cell op_c_e"></div></div></div>\t\t\t\t<div id="rbm_optimizer_list" class="rbm_content">\t\t\t\t</div>\t\t\t\t<div class="rbm_footer">\t\t\t\t\t<div id="optimizer_compression">')+'\t\t\t\t\t\t<div class="opt_loaded_title">'+RVS_LANG.servercompression+'<a target="_blank" rel="noopener" href="https://www.sliderrevolution.com/faq/what-is-server-compression-gzip-brotli/"><i class="material-icons">help</i></a></div>')+'\t\t\t\t\t\t<div class="opt_loaded_subtitle"><a target="_blank" rel="noopener" href="https://www.sliderrevolution.com/faq/what-is-server-compression-gzip-brotli/">'+(0===RVS.ENV.output_compress.length?+RVS_LANG.noservercompression:RVS.ENV.output_compress.toString())+'</a></div>\t\t\t\t\t</div>\t\t\t\t\t<div id="opt_summary">\t\t\t\t\t\t<div id="optimizer_fullsize">0 kb</div><div id="optimizer_cachedsize"></div>\t\t\t\t\t\t<div class="optimier_footerinfo">')+'\t\t\t\t\t\t\t<div class="opt_loaded_title" id="optimized_prec">'+RVS_LANG.sizeafteroptim+"</div>")+'\t\t\t\t\t\t\t<div class="opt_loaded_subtitle" id="optimize_to_save">'+RVS_LANG.loadedmediainfo+"</div>\t\t\t\t\t\t</div>\t\t\t\t\t</div>")+'\t\t\t\t\t<div id="rbm_optpanel_savebtn" class="large_actionbutton basic_action_coloredbutton"><i class="material-icons mr10">flash_on</i><span class="rbm_cp_save_text">'+RVS_LANG.savechanges+"</span></div>\t\t\t\t</div>\t\t\t</div>\t\t</div>\t</div></div>",RVS.ENV.optimizer=jQuery(c),RVS.ENV.optlist=RVS.ENV.optimizer.find("#rbm_optimizer_list"),jQuery(document.body).append(RVS.ENV.optimizer)),RVS.ENV.optlist[0].innerHTML="",RVS.F.RSDialog.create({modalid:"#rbm_optimizer",bgopacity:.5}),RVS.S.optUID=0,RVS.OZ.slideFullSize=0,RVS.OZ.list={},RVS.OZ.loadAddons=[],RVS.OZ.addOnsFullSize=0,RVS.V.avSizes=function(){var e,t=[];void 0===RVS.V.sizes&&(RVS.V.sizes=["d","n","t","m"],RVS.V.sizesold=["desktop","notebook","tablet","mobile"]);for(e in RVS.V.sizes)!0===RVS.OZ.settings.size.custom[RVS.V.sizes[e]]&&t.push(RVS.V.sizes[e]);return t}(),RVS.OZ.toLoad={},void 0!==RVS.OZ&&void 0!==RVS.OZ.settings&&void 0!==RVS.OZ.settings.size){var e,t,i={w:v(RVS.OZ.settings.size.width),h:v(RVS.OZ.settings.size.height)},a=function(e,t,i,a){var r={w:e,h:t};t<e?i<e&&(r.w=i):a<t&&(r.h=a);return r}(i.w.max,i.h.max,1920,1920);for(t in void 0!==RVS.OZ.settings&&void 0!==RVS.OZ.settings.layout&&void 0!==RVS.OZ.settings.layout.bg&&RVS.OZ.settings.layout.bg.useImage&&void 0!==RVS.OZ.settings.layout.bg.image&&""!==RVS.OZ.settings.layout.bg.image&&RVS.OZ.settings.layout.bg.image.length<5&&(RVS.ENV.optlist.append(p({alias:RVS_LANG.modulbackground,url:RVS.OZ.settings.layout.bg.image,rw:a.w,rh:a.h,pathURL:"settings.layout.bg.image",pathSize:"settings.layout.bg.imageSourceType",slideid:"settings"})),RVS.OZ.toLoad[RVS.S.optUID]=RVS.OZ.list[RVS.S.optUID].url),RVS.OZ.slideIDs){var r=RVS.OZ.slideIDs[t];void 0===RVS.OZ[r]||void 0===RVS.OZ[r].slide||void 0===RVS.OZ[r].slide.bg||"image"!==RVS.OZ[r].slide.bg.type&&"external"!==RVS.OZ[r].slide.bg.type&&"html5"!==RVS.OZ[r].slide.bg.type&&"youtube"!==RVS.OZ[r].slide.bg.type&&"vimeo"!==RVS.OZ[r].slide.bg.type||void 0===RVS.OZ[r].slide.bg.image||""===RVS.OZ[r].slide.bg.image||RVS.OZ[r].slide.bg.image.length<5||(RVS.OZ[r].slide.title=void 0===RVS.OZ[r].slide.title?"Slide":RVS.OZ[r].slide.title,RVS.ENV.optlist.append(p({alias:"#"+(parseInt(t)+1)+" "+RVS.OZ[r].slide.title,url:RVS.OZ[r].slide.bg.image,rw:a.w,rh:a.h,pathURL:r+".slide.bg.image",pathSize:r+".slide.bg.imageSourceType",slideid:r})),RVS.OZ.toLoad[RVS.S.optUID]=RVS.OZ.list[RVS.S.optUID].url)}for(t in RVS.OZ.slideIDs){r=RVS.OZ.slideIDs[t];if(void 0!==RVS.OZ[r]&&void 0!==RVS.OZ[r].layers)for(var o in RVS.OZ[r].layers){var s,l,n=RVS.OZ[r].layers[o],d=0;void 0!==n.idle&&void 0!==n.idle.backgroundImage&&4<n.idle.backgroundImage.length&&(d={layerid:o,imgtype:"bg",bgsize:n.idle.backgroundSize,alias:n.alias,url:n.idle.backgroundImage,path:r+".layers."+o+".idle.",pathURL:r+".layers."+o+".idle.backgroundImage",pathSize:r+".layers."+o+".behavior.imageSourceType",slideid:r}),"image"===n.type&&void 0!==n.media&&void 0!==n.media.imageUrl&&4<n.media.imageUrl.length&&(d={layerid:o,imgtype:"image",alias:n.alias,url:n.media.imageUrl,pathURL:r+".layers."+o+".media.imageUrl",pathSize:r+".layers."+o+".behavior.imageSourceType",slideid:r}),"video"===n.type&&void 0!==n.media&&void 0!==n.media.posterUrl&&4<n.media.posterUrl.length&&(d={layerid:o,imgtype:"poster",alias:n.alias,url:n.media.posterUrl,pathURL:r+".layers."+o+".media.posterUrl",pathSize:r+".layers."+o+".behavior.imageSourceType",slideid:r}),"text"!==n.type&&"button"!==n.type||!function(e){void 0!==e.idle&&void 0===e.idle.fontFamily&&(e.idle.fontFamily="Roboto");for(var t in RVS.OZ.fontFamilies=void 0===RVS.OZ.fontFamilies?{}:RVS.OZ.fontFamilies,RVS.OZ.fontFamilies[e.idle.fontFamily]=void 0===RVS.OZ.fontFamilies[e.idle.fontFamily]?{weights:[],italic:!1}:RVS.OZ.fontFamilies[e.idle.fontFamily],RVS.V.avSizes)void 0!==e.idle&&void 0!==e.idle.fontWeight&&void 0!==e.idle.fontWeight[RVS.V.avSizes[t]]&&-1===jQuery.inArray(e.idle.fontWeight[RVS.V.avSizes[t]].v,RVS.OZ.fontFamilies[e.idle.fontFamily].weights)&&RVS.OZ.fontFamilies[e.idle.fontFamily].weights.push(e.idle.fontWeight[RVS.V.avSizes[t]].v);RVS.OZ.fontFamilies[e.idle.fontFamily].italic=!0===RVS.OZ.fontFamilies[e.idle.fontFamily].italic||!0===e.idle.fontStyle}(n),void 0!==d&&0!==d&&(o={w:i.w.sizes,h:i.w.sizes},-1!==n.group.puid&&void 0!==n.group.puid&&"group"===(l=RVS.OZ[r].layers[n.group.puid]).type&&(o.w=v(l.size.width,o.w).sizes,o.h=v(l.size.height,o.h).sizes),"column"===n.type?d.rw=v(n.size.width,o.w,RVS.F.convertFraction(n.group.columnSize),n.group.columnbreakat).max:d.rw=v(n.size.width,o.w).max,d.rh=v(n.size.height,o.h).max,RVS.ENV.optlist.append(p(d)),RVS.OZ.toLoad[RVS.S.optUID]=RVS.OZ.list[RVS.S.optUID].url)}}for(t in RVS.OZ.fontFamilies)RVS.OZ.fontFamilies.hasOwnProperty(t)&&(s=function(e){e.alias=e.alias.trimStart(),e.alias=e.alias.trimEnd();var t=e.alias.split(" ").join("+"),i=e.alias.split(" ").join("_").split(",").join("_"),a=e.weights.toString().split(",").join("%2C"),r=function(e){if(null==RVS||void 0===RVS.LIB||void 0===RVS.LIB.FONTS)return!1;var t,i=!1;for(t in RVS.LIB.FONTS)!0===i||!RVS.LIB.FONTS.hasOwnProperty(t)||"custom"!==RVS.LIB.FONTS[t].type&&"websafe"!==RVS.LIB.FONTS[t].type||(i=RVS.LIB.FONTS[t].label==e);return i}(e.alias),o='<div class="optim_row">';o=(o=(o=(o+='<div class="optim_cell op_c_a"><i class="material-icons">text_fields</i>'+e.alias+" "+e.weights.toString()+"</div>")+'<div class="optim_cell op_c_b" id="fontrowsize_'+i+'">'+(!0===r?"N.A":RVS_LANG.calculating)+"</div>")+'<div class="optim_cell op_c_c"></div><div class="optim_cell op_c_d"></div>')+'<div class="optim_cell op_c_e"></div></div>',o=jQuery(o),!0!==r&&function(e,o,s){var l=new XMLHttpRequest;l.open("GET",e,!0),l.onreadystatechange=function(){if(this.readyState==this.DONE){var e,t,i,a=[],r=l.response.split("url(");for(e in r)"h"!==r[e][0]&&"H"!==r[e][0]||(t=r[e].split(") format"),-1==jQuery.inArray(t[0],a)&&a.push(t[0]));for(i in a)!function(e,t,i){var a=new XMLHttpRequest;a.open("HEAD",e,!0),a.onreadystatechange=function(){var e;this.readyState===this.DONE&&(e=parseInt(a.getResponseHeader("Content-Length")),RVS.OZ.fontFamilies[t].size=void 0===RVS.OZ.fontFamilies[t].size?e:RVS.OZ.fontFamilies[t].size+e,jQuery("#fontrowsize_"+i)[0].innerHTML=Math.round(parseInt(RVS.OZ.fontFamilies[t].size)/1e3)+" kb",y())},a.onerror=function(e){jQuery("#fontrowsize_"+i)[0].innerHTML="N.A."},a.send()}(a[i],o,s)}},l.onerror=function(e){jQuery("#fontrowsize_"+s)[0].innerHTML="N.A."},l.send()}("https://fonts.googleapis.com/css?family="+t+":"+a,e.alias,i);return o}({alias:t,weights:RVS.OZ.fontFamilies[t].weights}),RVS.ENV.optlist.append(s));for(t in RVS.OZ.settings.addOns)RVS.OZ.settings.addOns.hasOwnProperty(t)&&!0===RVS.OZ.settings.addOns[t].enable&&(e=function(e){RVS.OZ.loadAddons.push(e.slug),e.alias=e.alias.replace("Slider Revolution","");e.alias.split(" ").join("_");var t='<div class="optim_row">';return t=(t=(t=(t+='<div class="optim_cell op_c_a"><i class="material-icons">extension</i>'+e.alias+"</div>")+'<div class="optim_cell op_c_b" id="addrowsize_'+e.slug+'">'+RVS_LANG.calculating+"</div>")+'<div class="optim_cell op_c_c"></div><div class="optim_cell op_c_d"></div>')+'<div class="optim_cell op_c_e"></div></div>',t=jQuery(t)}({alias:void 0===RVS.LIB.ADDONS||void 0===RVS.LIB.ADDONS[t]||void 0===RVS.LIB.ADDONS[t].full_title?t:RVS.LIB.ADDONS[t].full_title,slug:t}),RVS.ENV.optlist.append(e));var c=void 0!==RVS.ENV.output_compress&&0<RVS.ENV.output_compress.length;RVS.ENV.optlist.append(u({alias:RVS_LANG.coretools,size:c?"43 kb":"116 kb",warning:c?"":RVS_LANG.enablecompression})),RVS.ENV.optlist.append(u({alias:RVS_LANG.corejs,size:c?"72 kb":"289 kb",warning:c?"":RVS_LANG.enablecompression})),RVS.ENV.optlist.append(u({alias:RVS_LANG.corecss,size:c?"11 kb":"55 kb",warning:c?"":RVS_LANG.enablecompression})),RVS.OZ.coreFullSize=c?134:481,void 0!==RVS.OZ.loadAddons&&0!=RVS.OZ.loadAddons.length&&RVS.F.ajaxRequest("get_addons_sizes",{addons:RVS.OZ.loadAddons},function(e){if(e.success){for(var t in e.addons){var i;RVS.F.isNumeric(parseInt(e.addons[t]))&&(i=Math.round(parseInt(e.addons[t],0)/1e3),jQuery("#addrowsize_"+t).html(i+" kb"),RVS.OZ.addOnsFullSize+=i)}g()}},void 0,!0),RVS.F.ajaxRequest("get_same_aspect_ratio",{images:RVS.OZ.toLoad},function(e){if(e.success){for(var t in e.images)if(e.images.hasOwnProperty(t))for(var i in RVS.OZ.list[t].images=jQuery.extend(!0,{},e.images[t]),RVS.OZ.list[t].images)RVS.OZ.list[t].images.hasOwnProperty(i)&&!0===RVS.OZ.list[t].images[i].default&&(RVS.OZ.list[t].selected=jQuery.extend(!0,{},RVS.OZ.list[t].images[i]));g()}},void 0,!0)}jQuery("#rbm_optimizer_list").RSScroll({wheelPropagation:!1,suppressScrollX:!0}),RVS.F.RSDialog.center()}function p(e){RVS.S.optUID++;var t='<div id="OPTROW_'+RVS.S.optUID+'" class="optim_row" data-uid="'+RVS.S.optUID+'">',t=(t=(t=(t+='<div class="optim_cell op_c_a"><div class="opt_img" style="background-image:url('+e.url+')"></div>'+e.alias+"</div>")+('<div class="optim_cell op_c_b">'+RVS_LANG.calculating+"</div>"))+('<div class="optim_cell op_c_c"><ofs_mark class="ofsmark_a"></ofs_mark><ofs_mark class="ofsmark_b"><div class="ofsinfo" data-optim="'+e.rw+" x "+e.rh+'"></div></ofs_mark><ofs_mark class="ofsmark_c"><div class="ofsinfo" data-optim="'+2*e.rw+" x "+2*e.rh+'"></div></ofs_mark><ofs_mark class="ofsmark_d"></ofs_mark><opt_fs_grd></opt_fs_grd></div>')+'<div class="optim_cell op_c_d"></div>')+'<div class="optim_cell op_c_e"></div>'+"</div>";return RVS.OZ.list[RVS.S.optUID]={row:jQuery(t),url:e.url,rw:e.rw,rh:e.rh,path:e.path,bgsize:e.bgsize,pathURL:e.pathURL,pathSize:e.pathSize,slideid:e.slideid,layerid:e.layerid,imgtype:e.imgtype},RVS.OZ.list[RVS.S.optUID].row}function u(e){var t='<div class="optim_row">',t=(t=(t=(t+='<div class="optim_cell op_c_a"><i class="material-icons">code</i>'+e.alias+"</div>")+('<div class="optim_cell op_c_b">'+e.size+"</div>"))+'<div class="optim_cell op_c_c"></div>'+('<div class="optim_cell op_c_d">'+e.warning+"</div>"))+'<div class="optim_cell op_c_e"></div>'+"</div>";return t=jQuery(t)}function v(e,t,i,a){var r,o=0,s={};for(r in RVS.V.avSizes){var l=o,l=void 0!==i?("notebook"===a&&0<=jQuery.inArray(RVS.V.avSizes[r],["t","m","n"])&&(i=1),"mobile"===a&&0<=jQuery.inArray(RVS.V.avSizes[r],["m"])&&(i=1),"tablet"===a&&0<=jQuery.inArray(RVS.V.avSizes[r],["t","m"])&&(i=1),t[RVS.V.avSizes[r]]*i):0<=((l=void 0!==e&&void 0!==e[RVS.V.avSizes[r]]?void 0!==e[RVS.V.avSizes[r]].v?RVS.F.isNumeric(parseInt(e[RVS.V.avSizes[r]].v))?e[RVS.V.avSizes[r]].v:o:RVS.F.isNumeric(parseInt(e[RVS.V.avSizes[r]]))?e[RVS.V.avSizes[r]]:o:l)+"").indexOf("%")?t[RVS.V.avSizes[r]]*(parseInt(l,0)/100):parseInt(l,0),o=Math.max(l,o);s[RVS.V.avSizes[r]]=l}return{max:parseInt(o,0),sizes:s}}function g(){for(var e in RVS.OZ.minFullSize=0,RVS.OZ.list)if(RVS.OZ.list.hasOwnProperty(e)){var t,i,a,r,o=RVS.OZ.list[e],s=jQuery(o.row.find(".op_c_c")),l={index:-1,val:0},n={index:-1,val:999999},d="width",c=0,p=0,u=0,v=0,g=[];if(void 0!==o.selected&&(RVS.F.isNumeric(o.selected.size)&&(o.currentSize=o.selected.size,o.currentUrl=o.selected.url,f=Math.round(o.selected.size/1e3)+" kb",o.row.find(".op_c_b")[0].innerHTML=f),(f={rw:o.rw,rh:o.rh,w:o.selected.width,h:o.selected.height}).w,0===f.rh&&0===f.rw&&(f.rh=f.h,f.rw=f.w),0===f.rh&&(f.rh=f.rw/f.w*f.h),0===f.rw&&(f.rw=f.rh/f.h*f.w),(t={width:f.rw,height:f.rh}).width<t.height&&o.selected.width>o.selected.height&&(d="height"),"contain"===o.bgsize)&&(d="width"===d?"height":"width"),void 0!==t){for(var m in o.images)if(o.images.hasOwnProperty(m)){var h=o.images[m][d]/t[d]*100/3;if(33<=h&&h<=67&&p++,1==o.images[m].default)i=33<=h&&h<=67,a=67<h,v=o.images[m].size,c=R({cont:s,ozindex:e,imgindex:m,left:100<(u=h)?100:h,amnt:c,class:"selected original"});else if(o.images[m][d]===t[d]||2*o.images[m][d]===t[d])c=R({cont:s,ozindex:e,imgindex:m,left:100<h?100:h,amnt:c});else if(l.val<h&&h<33)l={index:m,val:h,size:o.images[m].size};else if(n.val>h&&67<h)n={index:m,val:h,size:o.images[m].size};else if(33<h&&h<67){for(var S in r=h<38?38:62<h?62:h,g)Math.abs(g[S]-r)<3&&(r+=r<g[S]?-3:3);g.push(r),c=R({cont:s,ozindex:e,imgindex:m,left:r,amnt:c})}o.images[m].cs=h}-1!==l.index&&(Math.abs(l.val-u)<3&&(l.val+=u<l.val?3:-3),r=l.val<=3?3:30<l.val?30:l.val,c=R({cont:s,ozindex:e,imgindex:l.index,left:r,amnt:c})),-1!==n.index&&(!0!==a||u>n.val)&&(Math.abs(n.val-u)<3&&(n.val+=u<n.val?3:-3),r=97<=n.val?97:n.val<70?70:n.val,c=R({cont:s,ozindex:e,imgindex:n.index,left:r,amnt:c}));var b=v;-1!==l.index&&RVS.F.isNumeric(parseInt(l.size,0))?b=v>l.size?parseInt(l.size,0):v:-1!==n.index&&RVS.F.isNumeric(parseInt(n.size,0))&&(b=v>n.size?parseInt(n.size,0):v),RVS.OZ.minFullSize+=b}b="";0===p?b=RVS_LANG.chgimgsizesrc:0<p&&!0!==i&&(b=RVS_LANG.pickandim),""!==b&&(o.row.find(".op_c_d")[0].innerHTML=b),o.row[0].dataset.currentinfo=b}var f;RVS.OZ.minFullSize=RVS.OZ.minFullSize/1e3,y(!0)}function R(e){return e.class=void 0===e.class?"":e.class,e.cont.append('<div data-ozindex="'+e.ozindex+'" data-imgindex="'+e.imgindex+'" class="ofs_markpoint '+e.class+'" style="left:'+e.left+'%"></div>'),e.amnt+1}function y(e){var t,i,a,r,o=[];for(t in RVS.OZ.slideFullSize=0,RVS.OZ.list)RVS.OZ.list.hasOwnProperty(t)&&(i=RVS.OZ.list[t],RVS.F.isNumeric(i.currentSize))&&-1==jQuery.inArray(i.currentUrl,o)&&(o.push(i.currentUrl),RVS.OZ.slideFullSize+=Math.round(i.currentSize/1e3),a=Math.round(i.currentSize/1e3)+" kb",i.row.find(".op_c_b")[0].innerHTML=a);for(r in RVS.OZ.fontsFullSize=0,RVS.OZ.fontFamilies)RVS.OZ.fontFamilies.hasOwnProperty(r)&&void 0!==RVS.OZ.fontFamilies[r].size&&RVS.F.isNumeric(parseInt(RVS.OZ.fontFamilies[r].size))&&(RVS.OZ.fontsFullSize+=Math.round(parseInt(RVS.OZ.fontFamilies[r].size)/1e3));!0===e&&(RVS.OZ.slideFullSizeCache=RVS.OZ.slideFullSize);var e=parseInt(RVS.OZ.fontsFullSize)+parseInt(RVS.OZ.addOnsFullSize)+parseInt(RVS.OZ.coreFullSize),s=parseInt(RVS.OZ.slideFullSizeCache)+e,l=parseInt(RVS.OZ.minFullSize)+e,n=parseInt(RVS.OZ.slideFullSize)+e,d=Math.round(l/s*100),c=Math.round((s-n)/s*100),c=s-n==0?"":" ( "+(s<n?"+":"-")+Math.abs(c)+"% ~ "+(s-n)+" kb)";jQuery("#optimizer_fullsize").html(n+" kb"),jQuery("#optimizer_cachedsize").html(RVS.OZ.slideFullSizeCache+e+" kb"),jQuery("#optimized_prec").html(RVS_LANG.sizeafteroptim+c),jQuery("#optimize_to_save").html(RVS_LANG.loadedmediainfo+" "+(100-d)+"% ~ "+(s-l)+" kb")}function l(t){var e,i;t.index<t.slides.length?(t.order=void 0===t.order?0:t.order,t.order++,i=t.slides[t.index],0<=jQuery.inArray(i+"",RVS.OZ.inWork)?(i=JSON.stringify(RVS.OZ[t.slides[t.index]].slide),e=JSON.stringify(RVS.OZ[t.slides[t.index]].layers),i={slider_id:RVS.ENV.sliderID,slide_id:t.slides[t.index],params:i,layers:e,slide_order:t.order},RVS.DOC.trigger("rs_save_slide_params",[i]),RVS.F.ajaxRequest("save_slide",i,function(e){e.success&&(t.index++,l(t))},void 0,void 0,RVS_LANG.saveslide+'<br><span style="font-size:17px; line-height:25px;">"'+RVS.OZ[t.slides[t.index]].slide.title+'"</span>')):(t.index++,l(t))):(RVS.OZ.inWork=void 0===RVS.OZ.inWork?[]:RVS.OZ.inWork,void 0!==t.trigger&&t.trigger())}function n(){var e,t=JSON.stringify(RVS.OZ.settings),i=RVS.OZ.slideIDs.slice(),a=-1;for(e in i)i.hasOwnProperty(e)&&0<=(""+i[e]).indexOf("static")&&(a=e);i.splice(a,1),RVS.F.ajaxRequest("save_slider",{slider_id:RVS.ENV.sliderID,params:t,slide_ids:i},function(e){e.success&&void 0!==e.missing&&0<e.missing.length&&l({index:0,slides:RVS.OZ.slideIDs,works:e.missing})},void 0,void 0,RVS_LANG.saveslide+'<br><span style="font-size:17px; line-height:25px;">'+RVS_LANG.slidersettings+"</span>")}function d(e,t,i){if("string"==typeof t){var a=t.split("."),r=a.length,o=r-1,s=e;if(r)for(var l=0;l<r;l++)l<o&&void 0===s[a[l]]&&(s[a[l]]={}),l<o?s=s[a[l]]:s[a[l]]=i}}RVS.F.openOptimizer=function(e){var t;void 0===RVS.S.optimizerListener&&(RVS.DOC.on("click","#rbm_optimizer .rbm_close",function(){RVS.F.RSDialog.close()}),RVS.DOC.on("click",".optim_checkbox",function(){jQuery(this).toggleClass("checked")}),RVS.DOC.on("mouseenter",".ofsinfo",function(e){jQuery(this).closest(".optim_row").find(".op_c_d")[0].innerHTML="Optimal: "+this.dataset.optim}),RVS.DOC.on("mouseleave",".ofsinfo",function(e){var t=jQuery(this).closest(".optim_row"),i=t.find(".op_c_d");t[0].dataset.currentinfo=void 0===t[0].dataset.currentinfo?"":t[0].dataset.currentinfo,i[0].innerHTML=t[0].dataset.currentinfo}),RVS.DOC.on("click mouseenter",".ofs_markpoint",function(e){var t=jQuery(this),i=t.closest(".optim_row"),a=i.find(".op_c_b"),r=i.find(".op_c_d"),o=i.find(".op_c_e"),s=i[0].dataset.uid,l=RVS.OZ.list[s].images[t[0].dataset.imgindex];if("mouseenter"===e.type)RVS.OZ.list[s].lastSize=RVS.OZ.list[s].currentSize,RVS.OZ.list[s].lastUrl=RVS.OZ.list[s].currentUrl;else{if(t.hasClass("selected"))return;RVS.OZ.list[s].lastSize=l.size,RVS.OZ.list[s].lastUrl=l.url}RVS.OZ.list[i[0].dataset.uid].currentSize=l.size,RVS.OZ.list[i[0].dataset.uid].currentUrl=l.url,r[0].innerHTML="Dimension: "+l.width+" x "+l.height,RVS.F.isNumeric(l.size)&&(a[0].innerHTML=Math.round(l.size/1e3)+" kb"),"mouseenter"!==e.type&&(RVS.OZ.list[s].pickedImage=t[0].dataset.imgindex,i.find(".ofs_markpoint.selected").removeClass("selected"),t.addClass("selected"),i[0].dataset.currentinfo=l.cs<31||69<l.cs?RVS_LANG.pickandim:"",!0!==l.default?o[0].innerHTML='<i class="material-icons">flash_on</i>':o[0].innerHTML=""),y()}),RVS.DOC.on("mouseleave",".ofs_markpoint",function(){var e=jQuery(this).closest(".optim_row"),t=e.find(".op_c_b"),i=e.find(".op_c_d"),a=e[0].dataset.uid;RVS.OZ.list[a].lastSize!==RVS.OZ.list[a].currentSize&&(RVS.OZ.list[a].currentSize=RVS.OZ.list[a].lastSize,RVS.OZ.list[a].currentUrl=RVS.OZ.list[a].lastUrl,RVS.F.isNumeric(RVS.OZ.list[a].lastSize)&&(t[0].innerHTML=Math.round(RVS.OZ.list[a].lastSize/1e3)+" kb"),y()),e[0].dataset.currentinfo=void 0===e[0].dataset.currentinfo?"":e[0].dataset.currentinfo,i[0].innerHTML=e[0].dataset.currentinfo}),RVS.DOC.on("click","#rbm_optpanel_savebtn",function(){var e,t,i,a,r,o=[],s=[];for(e in RVS.OZ.list)RVS.OZ.list.hasOwnProperty(e)&&void 0!==RVS.OZ.list[e].pickedImage&&!0!==(i=(t=RVS.OZ.list[e]).images[t.pickedImage]).default&&(-1==jQuery.inArray(t.slideid,o)&&o.push(t.slideid),void 0!==t.layerid&&s.push({slideid:t.slideid,layerid:t.layerid,type:t.imgtype,url:i.url}),d(RVS.OZ,t.pathURL,i.url),d(RVS.OZ,t.pathSize,t.pickedImage));if(0<o.length)if(void 0!==RVS.SLIDER){for(e in o)"settings"!==o[e]&&-1==jQuery.inArray(o[e],RVS.SLIDER.inWork)&&RVS.SLIDER.inWork.push(o[e]),RVS.SLIDER[o[e]]=jQuery.extend(!0,RVS.SLIDER[o[e]],RVS.OZ[o[e]]);for(e in s)s.hasOwnProperty(e)&&(a=s[e],0<(r=jQuery("#_lc_"+a.slideid+"_"+a.layerid+"_")).length)&&("image"===a.type&&r.find("._lc_image_inside_").attr("src",a.url),RVS.F.drawHTMLLayer({uid:a.layerid}));RVS.F.convertIDStoTxt(),RVS.F.convertArrayToObjects(),RVS.F.saveSlides({index:0,slides:RVS.SLIDER.slideIDs,trigger:RVS.F.saveSliderSettings,works:RVS.SLIDER.inWork})}else{for(e in o)RVS.OZ.inWork=void 0===RVS.OZ.inWork?[]:RVS.OZ.inWork,"settings"!==o[e]&&-1==jQuery.inArray(o[e],RVS.OZ.inWork)&&RVS.OZ.inWork.push(o[e]),RVS.OZ[o[e]]=jQuery.extend(!0,RVS.OZ[o[e]],RVS.OZ[o[e]]);for(e in s)s.hasOwnProperty(e)&&(a=s[e],0<(r=jQuery("#_lc_"+a.slideid+"_"+a.layerid+"_")).length)&&("image"===a.type&&r.find("._lc_image_inside_").attr("src",a.url),RVS.F.drawHTMLLayer({uid:a.layerid}));convertIDStoTxt(),RVS.OZ.settings.nav.arrows.presets=Object.assign({},RVS.OZ.settings.nav.arrows.presets),RVS.OZ.settings.nav.bullets.presets=Object.assign({},RVS.OZ.settings.nav.bullets.presets),RVS.OZ.settings.nav.thumbs.presets=Object.assign({},RVS.OZ.settings.nav.thumbs.presets),RVS.OZ.settings.nav.tabs.presets=Object.assign({},RVS.OZ.settings.nav.tabs.presets),void 0!==RVS.OZ.settings.skins&&void 0!==RVS.OZ.settings.skins.colors&&(RVS.OZ.settings.skins.colors=Object.assign({},RVS.OZ.settings.skins.colors)),l({index:0,slides:RVS.OZ.slideIDs,trigger:n,works:RVS.OZ.inWork})}RVS.F.RSDialog.close()}),RVS.DOC.on("click","#more_about_optimizer",function(){RVS.F.RSDialog.create({modalid:"#rbm_optimizer_infos",bgopacity:.5}),RVS.F.RSDialog.center()}),RVS.DOC.on("click","#rbm_optimizer_infos .rbm_close",function(){RVS.F.RSDialog.close()}),jQuery("#rbm_optimizer_infos").closest(".rb-modal-wrapper").appendTo(jQuery(document.body)),RVS.S.optimizerListener=!0),void 0!==e&&(void 0!==e.sliderid&&""!==e.sliderid||void 0!==e.alias&&""!==e.alias)?(RVS.F.showWaitAMinute({fadeIn:0,text:RVS_LANG.loadingcontent}),t={},void 0!==e.alias&&""!==e.alias&&(t.alias=e.alias),void 0!==e.sliderid&&""!==e.sliderid&&(t.id="slider-"+e.sliderid),setTimeout(function(){RVS.F.ajaxRequest("get_full_slider_object",t,function(e){if(void 0!==e.id){for(var t in RVS.ENV.sliderid=e.id,RVS.ENV.sliderID=e.id,RVS.F.showWaitAMinute({fadeIn:500,text:RVS_LANG.preparingdatas}),e.slider_params.alias=e.alias,e.slider_params.title=e.title,RVS.OZ={slideIDs:[]},RVS.OZ.settings=jQuery.extend(!0,{},e.slider_params),void 0!==e.static_slide&&null!=e.static_slide.params&&void 0!==e.static_slide.params.static&&!0===e.static_slide.params.static.isstatic&&(RVS.OZ[e.static_slide.id]={slide:jQuery.extend(!0,{},e.static_slide.params),layers:jQuery.extend(!0,{},e.static_slide.layers)},RVS.OZ.slideIDs.push(e.static_slide.id)),e.slides)e.slides.hasOwnProperty(t)&&(t=e.slides[t],RVS.OZ[t.id]={slide:jQuery.extend(!0,{},t.params),layers:jQuery.extend(!0,{},t.layers)},RVS.OZ.slideIDs.push(t.id));i()}RVS.F.showWaitAMinute({fadeOut:500,text:RVS_LANG.preparingdatas})},void 0,!0),RVS.F.showWaitAMinute({fadeOut:0,text:RVS_LANG.loadingcontent})},100)):void 0!==RVS.SLIDER&&(RVS.S.optimID=RVS.SLIDER.id,RVS.OZ=jQuery.extend(!0,{},RVS.SLIDER),i())},convertIDStoTxt=function(){for(var e in RVS.OZ.slideIDs)RVS.OZ.slideIDs.hasOwnProperty(e)&&(RVS.OZ.slideIDs[e]=""+RVS.OZ.slideIDs[e]);for(var e in RVS.OZ.inWork)RVS.OZ.inWork.hasOwnProperty(e)&&(RVS.OZ.inWork[e]=""+RVS.OZ.inWork[e])}}(),window.RVS=void 0===window.RVS?{}:window.RVS,RVS.F=void 0===RVS.F?{}:RVS.F,RVS.ENV=void 0===RVS.ENV?{}:RVS.ENV,RVS.LIB=void 0===RVS.LIB?{}:RVS.LIB,RVS.V=void 0===RVS.V?{}:RVS.V,RVS.S=void 0===RVS.S?{}:RVS.S,RVS.C=void 0===RVS.C?{}:RVS.C,RVS.WIN=void 0===RVS.WIN?jQuery(window):RVS.WIN,RVS.DOC=void 0===RVS.DOC?jQuery(document):RVS.DOC,function(){var a={images:"photo_camera",modules:"aspect_ratio",moduletemplates:"aspect_ratio",layers:"layers",videos:"videocam",svgcustom:"copyright",svgs:"copyright",fonticons:"font_download",objects:"filter_drama"},i={xs:10,s:25,m:50,l:75,o:100},r={lottie:"Lottie Addon",slicey:"Slicey Addon",bubblemorph:"Bubble Morph Addon",shapebuilder:"Shape Builder Addon"};function o(e){jQuery("#ol_filter_"+e).remove(),R({groupType:e,groupAlias:RVS_LANG["ol_"+e],icon:a[e],count:RVS.LIB.OBJ.types[e].count,tags:RVS.LIB.OBJ.types[e].tags,custom:RVS.LIB.OBJ.types[e].upload,groupopen:!0})}function _(e,t){var i=void 0!==e.bg.src&&3<e.bg.src.length?e.bg.src:RVS.ENV.plugin_url+"admin/assets/images/sources/"+e.source+".png",a=void 0!==e.bg.style?e.bg.style:{};switch(Array.isArray(a)&&(a=RVS.F.toObject(a)),e.bg.type){case"image":a.backgroundImage="url("+i+")",tpGS.gsap.set(t,a);break;case"color":case"colored":case"solid":var r=window.RSColor.get(a["background-color"]);0<=r.indexOf("gradient")?tpGS.gsap.set(t,{backgroundImage:r}):tpGS.gsap.set(t,{backgroundColor:r});break;case"transparent":tpGS.gsap.set(t,{backgroundImage:"url("+RVS.ENV.plugin_url+"admin/assets/images/sources/"+(void 0===e.source?"gallery":e.source)+".png)",backgroundRepeat:"no-repeat",backgroundSize:"cover"})}}function s(e){if(e.index<=e.amount){var t=e.uids[e.index],i=c(t);if(1!==i.modal&&"1"!==i.modal||(RVS.LIB.OBJ.sliderPackageModal=!0,RVS.LIB.OBJ.sliderPackageModalsOrig.push(""+i.installed),RVS.LIB.OBJ.sliderPackageModalsOrigUid.push(i.uid)),void 0!==i.additions&&""!==i.additions&&(RVS.LIB.OBJ.sliderPackageAdditionsUID[i.uid]=i.additions,RVS.LIB.OBJ.sliderPackageAdditionsInstalled[i.installed]=i.additions),RVS.LIB.OBJ.addonsToInstall=[],null!==i.plugin_require&&void 0!==i.plugin_require&&0<i.plugin_require.length)for(var a in i.plugin_require)!1===i.plugin_require[a].installed&&RVS.LIB.OBJ.addonsToInstall.push(i.plugin_require[a].path.split("/")[0]);RVS.F.installModuleTemplateForPackage(RVS.LIB.OBJ.reDownloadTemplate||0==i.installed?{_:e,folderid:void 0!==sliderLibrary?sliderLibrary.selectedFolder:-1,uid:t,modal:!0}:{_:e,folderid:void 0!==sliderLibrary?sliderLibrary.selectedFolder:-1,uid:t,sliderid:i.installed})}else{f({uid:e.folderuid,hiddensliderid:!0}),RVS.LIB.OBJ.createBlankPage&&RVS.LIB.OBJ.success&&RVS.LIB.OBJ.success.draftpage&&RVS.DOC.trigger(RVS.LIB.OBJ.success.draftpage,{pages:RVS.LIB.OBJ.sliderPackageIds,modals:RVS.LIB.OBJ.sliderPackageModals,additions:RVS.LIB.OBJ.sliderPackageAdditions}),RVS.F.closeObjectLibrary();t=void 0!==sliderLibrary?sliderLibrary.selectedFolder:-1;-1!==t&&(t=RVS.F.getOVSliderIndex(t),RVS.F.ajaxRequest("save_slider_folder",{id:sliderLibrary.sliders[t].id,children:sliderLibrary.sliders[t].children},function(e){}),-1!==sliderLibrary.sliders[t].parent)&&(e=RVS.F.getOVSliderIndex(sliderLibrary.sliders[t].parent),RVS.F.ajaxRequest("save_slider_folder",{id:sliderLibrary.sliders[e].id,children:sliderLibrary.sliders[e].children},function(e){})),RVS.LIB.OBJ.sliderPackageModal&&RVS.F.ajaxRequest("adjust_modal_ids",{map:RVS.LIB.OBJ.sliderPackageReferenceMap},function(e){})}}function l(e,t){RVS.LIB.OBJ.selectedSlideId=e,void 0===RVS.LIB.OBJ.items.moduleslides[RVS.LIB.OBJ.selectedSlideId].layers?RVS.F.ajaxRequest("get_layers_by_slide",{slide_id:t},function(e){if(e.success){var t=!0;if(void 0!==e.layers&&null!==e.layers)for(var i in e.layers){if(!t)continue;t="top"==i||"bottom"==i||"middle"==i}t?RVS.F.showInfo({content:RVS_LANG.nolayersinslide,type:"success",showdelay:0,hidedelay:2,hideon:"",event:""}):(RVS.LIB.OBJ.items.moduleslides[RVS.LIB.OBJ.selectedSlideId].layers=jQuery.extend(!0,{},e.layers),RVS.F.layerImportList())}}):RVS.F.layerImportList()}function n(e){var t,i=!1;for(t in RVS.S.extendedLayerTypes)1==i||!RVS.S.extendedLayerTypes.hasOwnProperty(t)||t!==e&&RVS.S.extendedLayerTypes[t].subtype!==e||(i=!0);return i=0==i?!r.hasOwnProperty(e):i}function d(e,t){var i=void 0!==e.subtype&&""!==e.subtype&&0==n(e.subtype)?"disabled":"",i='\t<div id="layi_'+e.uid+'" class="'+i+" layimpli_element layimpli_level_"+t+'" data-uid="'+e.uid+'" data-type="'+e.type+'" data-puid="'+e.group.puid+'">',t=(i=(i=(i+='\t\t<i class="layimpli_icon material-icons">'+RVS.F.getLayerIcon(e.linebreak?"linebreak":e.type,e.subtype)+"</i>")+('\t\t<div class="layimpli_icon_title">'+e.alias+"</div>"))+('\t\t<div class="layimpli_icon_dimension">'+e.size.width.d.v+" x "+e.size.height.d.v+"</div>"),void 0!==e.subtype&&""!==e.subtype&&0==n(e.subtype)&&(i+='\t\t<div class="layimpli_icon_required">Required: '+(t=e.subtype,void 0!==r&&""!==r&&void 0!==r[t]?r[t]:t)+"</div>"),0<e.actions.action.length&&(i+='\t\t<div class="layimpli_icon_dimension">'+RVS_LANG.layerwithaction+"</div>"),RVS.F.layerFrameTriggeredBy({layerid:e.uid,src:RVS.LIB.OBJ.items.moduleslides[RVS.LIB.OBJ.selectedSlideId].layers}));return""!==t.alias&&""!==t.uid&&(i+='\t\t<div class="layimpli_icon_dimension">'+RVS_LANG.triggeredby+" "+t.alias+"</div>"),i=i+'\t\t<div class="layimpli_icon_checbox material-icons">radio_button_unchecked</div>'+"\t</div>"}function b(e,t){var i,a;for(a in RVS.LIB.OBJ.items[t])RVS.LIB.OBJ.items[t].hasOwnProperty(a)&&(i=""+RVS.LIB.OBJ.items[t][a].id==""+e?RVS.LIB.OBJ.items[t][a]:i);return i}function c(e){var t,i,a=e,r="moduletemplates";for(i in RVS.LIB.OBJ.items[r])RVS.LIB.OBJ.items[r].hasOwnProperty(i)&&(t=RVS.LIB.OBJ.items[r][i].uid===a?RVS.LIB.OBJ.items[r][i]:t);return t}function f(e,t){for(var i in RVS.LIB.OBJ.items.moduletemplates)if(RVS.LIB.OBJ.items.moduletemplates.hasOwnProperty(i)&&RVS.LIB.OBJ.items.moduletemplates[i].uid===e.uid&&(RVS.LIB.OBJ.items.moduletemplates[i].installed=e.hiddensliderid,t&&(RVS.LIB.OBJ.items.moduletemplates[i].modal="1"),void 0!==RVS.LIB.OBJ.items.moduletemplates[i].ref&&RVS.LIB.OBJ.items.moduletemplates[i].ref.find(".installed_notinstalled").html(RVS_LANG.installed),e.children))for(var a in RVS.LIB.OBJ.items.moduletemplateslides)RVS.LIB.OBJ.items.moduletemplateslides.hasOwnProperty(a)&&RVS.LIB.OBJ.items.moduletemplateslides[a].parent==RVS.LIB.OBJ.items.moduletemplates[i].id&&(RVS.LIB.OBJ.items.moduletemplateslides[a].installed=e.hiddensliderid,RVS.LIB.OBJ.items.moduletemplateslides[a].slideid=e.slideids[parseInt(RVS.LIB.OBJ.items.moduletemplateslides[a].slideid,0)],void 0!==RVS.LIB.OBJ.items.moduletemplateslides[a].ref)&&RVS.LIB.OBJ.items.moduletemplateslides[a].ref.find(".installed_notinstalled").html(RVS_LANG.installed)}function p(e){e&&jQuery("#searchobjects").val("");e=jQuery("li.ol_filter_listelement.selected");0<e.length&&void 0!==e&&jQuery("#searchobjects").attr("placeholder",RVS_LANG.search+" "+S(e[0].dataset.title).t+" ...")}function u(){jQuery(".olibrary_item.selected").removeClass("selected"),RVS.LIB.OBJ.container_Underlay.hide(),jQuery("#obj_library_mediapreview").remove(),RVS.LIB.OBJ.moduleInFocus=!1}function v(){var e=Math.floor(RVS.LIB.OBJ.container_OutputWrap.width()/287),t=Math.floor(RVS.LIB.OBJ.container_OutputWrap.innerHeight()/235);return 0!==e&&0!==t||(e=Math.floor((window.innerWidth-330)/287),t=Math.floor((window.innerHeight-160)/235)),e*t}function g(){RVS.LIB.OBJ.pageAmount=parseInt(RVS.LIB.OBJ.pageAmount,0),RVS.LIB.OBJ.selectedPage=parseInt(RVS.LIB.OBJ.selectedPage,0),jQuery(".page_button.ol_pagination").each(function(){var e=parseInt(this.dataset.page,0),t=!1;1!==e&&e!==RVS.LIB.OBJ.pageAmount||(t=!0),RVS.LIB.OBJ.selectedPage<4&&0<e&&e<5&&(t=!0),RVS.LIB.OBJ.selectedPage>RVS.LIB.OBJ.pageAmount-3&&e>RVS.LIB.OBJ.pageAmount-4&&e<9999&&(t=!0),e<9999&&e>=RVS.LIB.OBJ.selectedPage-1&&e<=RVS.LIB.OBJ.selectedPage+1&&0<e&&(t=!0),(4<=RVS.LIB.OBJ.selectedPage&&-9999===e||RVS.LIB.OBJ.selectedPage<=RVS.LIB.OBJ.pageAmount-3&&9999===e)&&(t=!0),RVS.LIB.OBJ.pageAmount<8&&(t=9999!=e&&-9999!=e),this.style.display=t?"inline-block":"none"})}function m(e){return e.filter===e.o.source||e.filter===e.o.type||e.filter===e.o.size||0<=jQuery.inArray(e.filter,e.o.tags)||0<=jQuery.inArray(e.filter,e.o.tag)||e.filter==e.o.tag||e.filter==e.o.tags}function h(){RVS.LIB.OBJ.container_Filters.RSScroll({wheelPropagation:!1}),RVS.LIB.OBJ.container_OutputWrap.RSScroll({wheelPropagation:!1})}function S(e){switch(e){case"Slider":return{o:1,t:"Slider"};case"Carousel":return{o:2,t:"Carousel"};case"Hero":return{o:3,t:"Hero"};case"Website":return{o:4,t:"Website"};case"Premium":return{o:5,t:"Special FX"};case"Postbased":return{o:6,t:"Post Based"};case"Socialmedia":return{o:7,t:"Social Media"};case"Revolution Base":return{o:8,t:"Basic"};default:return{o:0,t:e.replace("All ","")}}}function t(t,e){setTimeout(function(){t.removeClass("inedit")},50);var i,a,r,o=t.find(".filter_tag_name_input"),s=t.find(".filter_tag_name");e?(i=o.val(),a=t[0].dataset.filter,r=t[0].dataset.type,RVS.F.ajaxRequest("edit_customlibrary_tags",{id:a,name:i,type:r},function(e){s[0].innerHTML=i,RVS.LIB.OBJ.types[r].tags[a]=i,t[0].dataset.title=i,RVS.F.updateCustomCategorySelectors(r)})):o[0].value=s[0].innerHTML,window.ignoreCustomCategoryBlur=!0,o.blur()}function R(e){var t=void 0!==e.custom||void 0!==e.tags&&0<Object.keys(e.tags).length;if(_html='<div data-subtags="'+t+'" data-type="'+e.groupType+'" id="ol_filter_'+e.groupType+'" data-title="'+e.groupAlias+'" class="ol_filter_type '+(e.groupopen?"open":"")+'"><div data-filter="all" data-type="'+e.groupType+'" data-title="'+e.groupAlias+'" data-subtags="'+t+'" class="ol_filter_listelement ol_filter_headerelement"><i class="material-icons">'+e.icon+'</i><span class="filter_type_name">'+e.groupAlias+"</span></div>",t){_html=(_html+='<ul class="ol_filter_group">')+('<li data-type="'+e.groupType+'" data-filter="all" data-title="All '+e.groupAlias+'" class="ol_filter_listelement"><span class="filter_tag_name">All</span></li>');var i,a,r,o=new Array,s=new Array;for(r in e.tags)e.tags.hasOwnProperty(r)&&(i="moduletemplates"===e.groupType?S(e.tags[r]):{o:0,t:e.tags[r]},void 0!==e.tagIDs&&e.tagIDs[r],a='<li data-type="'+e.groupType+'" data-filter="'+r+'" data-title="'+RVS.F.capitalise(i.t)+'" class="ol_filter_listelement">',a+='<span class="filter_tag_name">'+i.t+"</span>",void 0!==e.custom&&(a=a+('<input class="filter_tag_name_input" value="'+i.t)+'" type="text"><i class="filter_tag_name_edit material-icons">edit</i><i class="filter_tag_name_delete material-icons">delete</i><i class="filter_tag_name_check material-icons">check</i><i class="filter_tag_name_cancel material-icons">close</i><div class="ol_gradientbg"></div>'),a+="</li>",0==i.o?s.push(a):o[i.o]=a);for(r in o)void 0!==o[r]&&(_html+=o[r]);for(r in s)void 0!==s[r]&&(_html+=s[r]);void 0!==e.custom&&(_html+='<li style="padding-left:0px" data-type="'+e.groupType+'" data-filter="createcategory" class="ol_filter_listelement add_ol_new_custom_category"><span class="filter_tag_name"><i style="margin-left:10px; font-size:18px" class="material-icons">add</i>'+RVS_LANG.addcategory+"</span></li>"),_html+="</ul>"}_html+="</div>",RVS.LIB.OBJ.container_Filters.append(_html)}RVS.F.initObjectLibrary=function(e){RVS.DOC.on("click","#ol_close",function(){!0===RVS.LIB.OBJ.moduleInFocus?(u(),RVS.LIB.OBJ.moduleInFocus=!1):RVS.F.closeObjectLibrary()}),RVS.DOC.on("click","#reset_objsorting",function(){u(),jQuery("#sel_olibrary_sorting").val("datedesc").ddTP("change"),RVS.DOC.trigger("updateObjectLibraryOverview",{val:"datedesc",eventparam:"#reset_objsorting",ignoreCookie:!0})}),RVS.DOC.on("updateObjectLibraryOverview",function(e,t){var i;void 0!==t&&void 0!==t.eventparam&&(i="#reset_objsorting"===t.eventparam?"datedesc"===t.val?0:1:"all"===t.val?0:1,tpGS.gsap.set(t.eventparam,{autoAlpha:i,display:1==i?"inline-block":"none"})),void 0===t||t.ignoreRebuild||(void 0!==t.val&&!0!==t.ignoreCookie&&RVS.F.setCookie("rs6_library_pagination",t.val,360),u(),RVS.F.updateFilteredList({force:!0,keeppage:!1,noanimation:!1}))}),RVS.DOC.on("click",".ol_filter_listelement",function(){var e,t;if(!(0<=this.className.indexOf("inedit")||0<=this.className.indexOf("add_ol_new_custom_category")))return e=(t=jQuery(this)).closest(".ol_filter_type"),"true"!=this.dataset.subtags?(RVS.LIB.OBJ.lastSelectedType=RVS.LIB.OBJ.selectedType,RVS.LIB.OBJ.selectedType=this.dataset.type,RVS.LIB.OBJ.selectedFilter=this.dataset.filter,RVS.LIB.OBJ.selectedPage=1,RVS.LIB.OBJ.selectedPackage=-1,RVS.LIB.OBJ.selectedFolder=-1,RVS.F.loadLibrary({modules:[this.dataset.type],event:"reBuildObjectLibrary"}),jQuery(".ol_filter_listelement.selected").removeClass("selected"),t.addClass("selected"),e.find(".ol_filter_headerelement").addClass("selected")):(t=e.hasClass("open"),jQuery(".ol_filter_type.open").removeClass("open"),t||e.addClass("open"),0===(t=e.find(".ol_filter_group")).find(".selected").length&&t.find(".ol_filter_listelement").first().trigger("click")),p(),u(),!1}),RVS.DOC.on("click","#ol_right_underlay",u),RVS.DOC.on("click",".ol_link_to_delete",function(){var o=this.dataset.librarytype,s=this.dataset.id;b(s,o);RVS.F.RSDialog.create({bgopacity:.85,modalid:"rbm_decisionModal",icon:"delete",title:RVS_LANG.deletecustomitem,maintext:RVS_LANG.areyousuretodelete+"?",subtext:RVS_LANG.thiswilldeletecustomitem,do:{icon:"delete",text:RVS_LANG.yesdeleteit,callback:function(){RVS.F.ajaxRequest("delete_customlibrary_item",{id:s,type:o},function(e){var t,i,a=s,r=o;for(i in RVS.LIB.OBJ.items[r])RVS.LIB.OBJ.items[r].hasOwnProperty(i)&&(t=""+RVS.LIB.OBJ.items[r][i].id==""+a?i:t);void 0!==t&&RVS.LIB.OBJ.items[r].splice(t,1),jQuery("#"+o+"_"+s).remove(),RVS.F.updateFilteredList(),RVS.F.finalDrawOfElements()})}},cancel:{icon:"cancel",text:RVS_LANG.cancel},swapbuttons:!0}),jQuery("#rbm_decisionModal").closest("._TPRB_.rb-modal-wrapper").appendTo(jQuery(document.body)).css({zIndex:1e8})}),RVS.DOC.on("click",".ol_link_to_add",function(){var o,e=this.dataset.librarytype,s=this.dataset.event;if("modules"!==e&&"true"!==RVS.ENV.activated&&!0!==RVS.ENV.activated)RVS.F.showRegisterSliderInfo();else switch(e){case"modules":let t=jQuery(this).closest(".olibrary_item").attr("data-objid"),i=RVS.LIB.OBJ.items.modules,a=i.length,r;for(let e=0;e<a&&(r=i[e]).id!==t;e++);RVS.DOC.trigger(RVS.LIB.OBJ.success.modules,r),RVS.F.closeObjectLibrary();break;case"moduleslides":case"moduletemplateslides":null==(l=RVS.LIB.OBJ.items[this.dataset.librarytype][RVS.F.getModuleIndex(this.dataset.id,this.dataset.librarytype)]).installed?(o=this.dataset.parentuid,RVS.F.ajaxRequest("import_template_slider",{uid:o},function(e){e.success&&(f({uid:o,hiddensliderid:e.hiddensliderid,children:!0,slideids:e.slider.slide_ids}),RVS.DOC.trigger(RVS.LIB.OBJ.success.slide,l.slideid),RVS.F.closeObjectLibrary())},void 0,void 0,RVS_LANG.installingtemplate+'<br><span style="font-size:17px; line-height:25px;">'+this.dataset.parenttitle+"</span>")):(RVS.DOC.trigger(RVS.LIB.OBJ.success.slide,l.slideid),RVS.F.closeObjectLibrary());break;case"moduletemplates":RVS.LIB.OBJ.container_Underlay.show(),RVS.LIB.OBJ.moduleInFocus=!0;var l=jQuery(this);if("moduletemplates"===this.dataset.librarytype){var n,d=l.closest(".olibrary_item"),c=d.find(".ol_template_info_wrap"),p=(d.addClass("selected"),d.offset().left),u=(tpGS.gsap.set(c,{left:"auto",right:"auto"}),p+630>window.outerWidth+(RVS.S.isRTL?-300:0)?300<p-340?tpGS.gsap.set(c,{left:"auto",right:"100%",x:"-20px",transformOrigin:"100% 0%"}):tpGS.gsap.set(c,{left:d.width()-(p+630-window.outerWidth)+"px",zIndex:200,right:"auto",x:"20px",transformOrigin:"0% 0%"}):tpGS.gsap.set(c,{left:"100%",right:"auto",x:"20px",transformOrigin:"0% 0%"}),document.querySelectorAll(".redownloadTemplateState, .createBlankPageState"));for(n in u)u.hasOwnProperty(n)&&(u[n].checked=0<=u[n].className.indexOf("redownloadTemplateState")?RVS.LIB.OBJ.reDownloadTemplate:RVS.LIB.OBJ.createBlankPage,RVS.F.turnOnOffVisUpdate({input:u[n]}))}break;case"videos":var v=jQuery.extend(!0,RVS.LIB.OBJ.data,b(this.dataset.id,this.dataset.librarytype));RVS.F.ajaxRequest("load_library_object",{type:"video",id:this.dataset.id},function(e){e.success&&(v.img=e.cover,v.video=e.url,RVS.DOC.trigger(RVS.LIB.OBJ.success.video,v))}),RVS.F.closeObjectLibrary();break;case"layers":var g=this.dataset.id;RVS.F.ajaxRequest("load_library_object",{type:"layers",id:this.dataset.id},function(e){if(e.success){for(var t in RVS.LIB.OBJ.import={toImport:[]},e.layers)e.layers.hasOwnProperty(t)&&(e.layers[t].layerLibSrc=g,RVS.LIB.OBJ.import.toImport.push(e.layers[t].uid));RVS.F.showWaitAMinute({fadeIn:100,text:RVS_LANG.importinglayers}),RVS.F.importSelectedLayers(RVS.F.checkLayersRelativeAbsolute(e.layers)),RVS.DOC.trigger(RVS.LIB.OBJ.success.layers)}else RVS.F.closeObjectLibrary()});break;case"fonticons":case"svgcustom":case"svgs":var m=function(e,t){var i,a;for(a in RVS.LIB.OBJ.items[t])RVS.LIB.OBJ.items[t].hasOwnProperty(a)&&(i=RVS.LIB.OBJ.items[t][a].handle===e?RVS.LIB.OBJ.items[t][a]:i);return i}(this.dataset.handle,this.dataset.librarytype);"svgs"!==this.dataset.librarytype&&"svgcustom"!==this.dataset.librarytype||(m.svg=m.ref.find("svg"),m.svgfull=m.svg[0].innerHTML,m.path=m.svg.find("path").attr("d"),m.viewBox=m.svg[0].viewBox),RVS.DOC.trigger(RVS.LIB.OBJ.success.icon,m),RVS.F.closeObjectLibrary();break;default:if(void 0!==s)RVS.DOC.trigger(s);else{m=b(this.dataset.id,this.dataset.librarytype);if(void 0!==this.dataset.collect){var h=this.parentNode.getElementsByClassName(this.dataset.collect);if(0!==h.length&&void 0!==h)for(var S in m.collects=[],h)void 0!==h[S].className&&h[S].className.includes("selected")&&void 0!==h[S].dataset&&void 0!==h[S].dataset.val&&m.collects.push(h[S].dataset.val)}RVS.DOC.trigger(RVS.LIB.OBJ.success.custom,m),RVS.F.closeObjectLibrary()}}}),RVS.DOC.on("mouseenter",".ol_link_to_add_image",function(){var e=document.getElementById("sizeinfo_"+this.dataset.librarytype+"_"+this.dataset.id);null!=e&&(e.innerHTML=Math.round(parseInt(e.dataset.w,0)*(i[this.dataset.size]/100))+"x"+Math.round(parseInt(e.dataset.h,0)*(i[this.dataset.size]/100)))}),RVS.DOC.on("mouseleave",".ol_link_to_add_image",function(){var e=document.getElementById("sizeinfo_"+this.dataset.librarytype+"_"+this.dataset.id);null!=e&&(e.innerHTML=parseInt(e.dataset.w,0)+"x"+parseInt(e.dataset.h,0))}),RVS.DOC.on("click",".ol_link_to_add_image",function(){var t;"true"!==RVS.ENV.activated&&!0!==RVS.ENV.activated?RVS.F.showRegisterSliderInfo():((t=jQuery.extend(!0,RVS.LIB.OBJ.data,b(this.dataset.id,this.dataset.librarytype))).size=i[this.dataset.size],RVS.F.ajaxRequest("load_library_object",{type:i[this.dataset.size],id:this.dataset.id},function(e){e.success&&(t.img=e.url,RVS.DOC.trigger(RVS.LIB.OBJ.success.image,t))}),RVS.F.closeObjectLibrary())}),RVS.DOC.on("reBuildObjectLibrary",function(){u(),RVS.F.reBuildObjectLibrary(),jQuery(".ol_filter_type.selected").removeClass("selected"),jQuery(".ol_filter_listelement.selected").removeClass("selected"),jQuery(".ol_filter_listelement").each(function(){this.dataset.filter===RVS.LIB.OBJ.selectedFilter&&this.dataset.type===RVS.LIB.OBJ.selectedType&&this.classList.add("selected")}),jQuery(".ol_filter_type.open").addClass("selected")}),RVS.DOC.on("reBuildObjectLibraryAndCheckSingleSlide",function(){u(),RVS.F.reBuildObjectLibrary();var e,t,i,a=0;for(i in RVS.LIB.OBJ.items.moduleslides)RVS.LIB.OBJ.items.moduleslides.hasOwnProperty(i)&&RVS.LIB.OBJ.items.moduleslides[i].slider_id===RVS.LIB.OBJ.selectedModule&&(a++,e=RVS.LIB.OBJ.items.moduleslides[i].id,t=RVS.LIB.OBJ.items.moduleslides[i].installed);1===a&&"layers"===RVS.LIB.OBJ.depth&&l(e,t)}),RVS.DOC.on("click",".ol_link_to_view",function(){var e=jQuery(this);void 0!==e[0].dataset.preview&&0<e[0].dataset.preview.length&&window.open(e[0].dataset.preview,"_blank")}),RVS.DOC.on("mouseenter",".show_video_on_hover",function(){clearTimeout(window.showVideOnHoverTimer);var t=jQuery(this).closest(".olibrary_item"),i=t.find(".ol_template_info_wrap"),a=this.dataset.videosource;window.showVideOnHoverTimer=setTimeout(function(){t.find(".videopreview").append('<video id="obj_library_mediapreview" loop autoplay> <source src="'+a+'" type="video/mp4"></video>'),t.addClass("selected");var e=t.offset().left;tpGS.gsap.set(i,{left:"auto",right:"auto"}),e+630>window.outerWidth+(RVS.S.isRTL?-300:0)?300<e-340?tpGS.gsap.set(i,{left:"auto",right:"100%",x:"-20px",transformOrigin:"100% 0%"}):tpGS.gsap.set(i,{left:t.width()-(e+630-window.outerWidth)+"px",zIndex:200,right:"auto",x:"20px",transformOrigin:"0% 0%"}):tpGS.gsap.set(i,{left:"100%",right:"auto",x:"20px",transformOrigin:"0% 0%"})},500)}),RVS.DOC.on("mouseleave",".show_video_on_hover",function(){clearTimeout(window.showVideOnHoverTimer),u()}),RVS.DOC.on("click",".ol_link_to_deeper",function(){RVS.LIB.OBJ.selectedModule=-1,RVS.LIB.OBJ.selectedModuleTitle="",jQuery("#searchobjects").val(""),"moduletemplates"===this.dataset.librarytype?"package_parent"===this.dataset.elementtype?(RVS.LIB.OBJ.selectedPackage=this.dataset.packageid,RVS.LIB.OBJ.selectedPackageTitle=this.dataset.title,u(),RVS.F.updateFilteredList({force:!0,keeppage:!1,noanimation:!1})):"module_parent"===this.dataset.elementtype&&(RVS.LIB.OBJ.lastSelectedType=RVS.LIB.OBJ.selectedType,RVS.LIB.OBJ.selectedModule=this.dataset.packageid,RVS.LIB.OBJ.selectedModuleTitle=this.dataset.title,RVS.LIB.OBJ.selectedType="moduletemplateslides",RVS.F.loadSimpleModule({modules:["moduletemplateslides"],parenttype:"moduletemplates",moduleid:this.dataset.moduleid,module_uid:this.dataset.module_uid,event:"reBuildObjectLibrary"})):"modules"===this.dataset.librarytype?"folder_parent"===this.dataset.elementtype?(RVS.LIB.OBJ.selectedFolder=this.dataset.folderid,RVS.F.resetAllFilters(),RVS.F.updateFilteredList({force:!0,keeppage:!1,noanimation:!1})):"module_parent"===this.dataset.elementtype&&(RVS.LIB.OBJ.lastSelectedType=RVS.LIB.OBJ.selectedType,RVS.LIB.OBJ.selectedModule=this.dataset.packageid,RVS.LIB.OBJ.selectedModuleTitle=this.dataset.title,RVS.LIB.OBJ.selectedType="moduleslides",RVS.F.loadSimpleModule({modules:["moduleslides"],parenttype:"modules",moduleid:this.dataset.moduleid,event:"reBuildObjectLibraryAndCheckSingleSlide"})):"moduleslides"===this.dataset.librarytype&&l(this.dataset.id,this.dataset.slideid),jQuery("#ol_right").scrollTop(0)}),RVS.DOC.on("click",".page_button.ol_pagination",function(){u(),jQuery(".page_button.ol_pagination.selected").removeClass("selected"),RVS.LIB.OBJ.selectedPage=-9999===parseInt(this.dataset.page,0)?RVS.LIB.OBJ.selectedPage=parseInt(RVS.LIB.OBJ.selectedPage,0)-3:9999===parseInt(this.dataset.page,0)?RVS.LIB.OBJ.selectedPage=parseInt(RVS.LIB.OBJ.selectedPage,0)+3:this.dataset.page,jQuery(".page_button.ol_pagination[data-page="+RVS.LIB.OBJ.selectedPage+"]").addClass("selected"),jQuery("#ol_right").scrollTop(0),RVS.F.drawOverview(),g()}),RVS.WIN.on("resize",function(){RVS.LIB.OBJ.open&&(clearTimeout(window.resizedObjectLibraryTimeOut),window.resizedObjectLibraryTimeOut=setTimeout(function(){var e=(e=v())<1?1:e;u(),RVS.LIB.OBJ.maxAmountPerPage!==e&&RVS.F.updateFilteredList({force:!0,keeppage:!0,noanimation:!0})},10))}),RVS.DOC.on("click",".rsl_breadcrumb",function(){RVS.LIB.OBJ.selectedModule=-1,RVS.LIB.OBJ.selectedModuleTitle="",RVS.LIB.OBJ.selectedModuleType="",RVS.LIB.OBJ.selectedType="moduletemplateslides"===RVS.LIB.OBJ.selectedType?"moduletemplates":"moduleslides"===RVS.LIB.OBJ.selectedType?"modules":RVS.LIB.OBJ.selectedType,void 0!==this.dataset.folderid&&(u(),"moduletemplates"===RVS.LIB.OBJ.selectedType&&(RVS.LIB.OBJ.selectedPackage=parseInt(this.dataset.folderid,0)),"modules"===RVS.LIB.OBJ.selectedType&&(RVS.LIB.OBJ.selectedFolder=parseInt(this.dataset.folderid,0),RVS.F.resetAllFilters()),RVS.F.updateFilteredList({force:!0,keeppage:!0,noanimation:!0}))}),RVS.DOC.on("click",".olibrary_favorit",function(){var e=jQuery(this),a={do:"add",type:this.dataset.librarytype,id:this.dataset.id};e.toggleClass("selected"),e.hasClass("selected")||(a.do="remove"),RVS.F.ajaxRequest("set_favorite",a,function(e){if(e.success){var t,i=a;for(t in RVS.LIB.OBJ.items[i.type])RVS.LIB.OBJ.items[i.type].hasOwnProperty(t)&&""+RVS.LIB.OBJ.items[i.type][t].id==""+i.id&&(RVS.LIB.OBJ.items[i.type][t].favorite="add"===i.do);RVS.F.updateFilteredList({force:!0,keeppage:!0,noanimation:!0})}})}),RVS.DOC.on("click","#obj_updatefromserver",function(){RVS.F.updateObjectLibraryFromServer(RVS.LIB.OBJ.selectedType)}),RVS.DOC.on("click","#obj_fil_favorite",function(){jQuery(this).toggleClass("selected"),u(),RVS.F.updateFilteredList({force:!0,keeppage:!0,noanimation:!0})}),RVS.DOC.on("keyup","#searchobjects",function(){u(),clearTimeout(window.searchKeyUp),window.searchKeyUp=setTimeout(function(){RVS.F.updateFilteredList({force:!0,keeppage:!1,noanimation:!1}),RVS.LIB.OBJ.container_OutputWrap.RSScroll("update")},200)}),RVS.DOC.on("change",".redownloadTemplateState",function(){RVS.LIB.OBJ.reDownloadTemplate=this.checked}),RVS.DOC.on("change",".createBlankPageState",function(){RVS.LIB.OBJ.createBlankPage=this.checked}),RVS.F.addonInstalledFromTemplate=function(e,t){RVS.LIB.OBJ.addonsToInstall.splice(0,1);var i=t.replace(/-/g,"_"),a=jQuery("#ale_"+t+" .rs_alethumb_img");void 0!==RVS.LIB.ADDONS&&void 0!==RVS.LIB.ADDONS[t]&&RVS.LIB.ADDONS[t].global&&!RVS.S.ovMode&&(RVS.SLIDER.settings.addOns[t]=void 0===RVS.SLIDER.settings.addOns[t]?{}:RVS.SLIDER.settings.addOns[t],RVS.SLIDER.settings.addOns[t].enable=!0,RVS.LIB.ADDONS[t].enable=!0),void 0!==RVS.LIB.ADDONS&&void 0!==RVS.LIB.ADDONS[t]&&(RVS.LIB.ADDONS[t].active=!0),window[i]=e[t],"undefined"==typeof revbuilder||void 0!==RVS.SLIDER.settings&&RVS.SLIDER.settings.addOns.hasOwnProperty(t)?window[i].enabled=RVS.F._d(RVS.F._truefalse(window[i].enabled),!RVS.S.ovMode&&void 0!==RVS.SLIDER.settings.addOns[t]&&RVS.SLIDER.settings.addOns[t].enable):window[i].enabled=!0,tpGS.gsap.fromTo(a,2,{zIndex:"13",clip:"rect(95px 95px 95px 95px)"},{clip:"rect(0px 190px 190px 0px)"}),jQuery("#ale_"+t+" .rs_ale_enabled").show(),RVS.F.showAddonInfos(t),RVS.F.addonInstalledOnDemand(t)},RVS.F.installSingleModuleTemplate=function(t){var i;0<RVS.LIB.OBJ.addonsToInstall.length?(i=RVS.LIB.OBJ.addonsToInstall[0],RVS.F.ajaxRequest("activate_addon",{addon:i},function(e){void 0!==RVS.LIB.ADDONS&&void 0!==RVS.LIB.ADDONS[i]&&1==RVS.LIB.ADDONS[i].installed?RVS.F.addonInstalledFromTemplate(e,i):RVS.LIB.ADDONS[i].installed=!0,RVS.F.installSingleModuleTemplate(t)},void 0,void 0,RVS_LANG.installingaddon+'<br><span style="font-size:17px; line-height:25px;">'+RVS.LIB.OBJ.addonsToInstall[0]+"</span>")):RVS.F.ajaxRequest("import_template_slider",t,function(e){e.success&&(RVS.LIB.OBJ.sliderPackageIds.push(e.slider.id),void 0!==RVS.LIB.OBJ.success&&void 0!==RVS.LIB.OBJ.success.slider&&RVS.DOC.trigger(RVS.LIB.OBJ.success.slider,e),RVS.LIB.OBJ.createBlankPage&&RVS.LIB.OBJ.success&&RVS.LIB.OBJ.success.draftpage&&RVS.DOC.trigger(RVS.LIB.OBJ.success.draftpage,{pages:RVS.LIB.OBJ.sliderPackageIds}),f({uid:t.uid,hiddensliderid:e.hiddensliderid})),RVS.F.closeObjectLibrary()},void 0,void 0,RVS_LANG.installtemplate+'<br><span style="font-size:17px; line-height:25px;">'+t.title+"</span>")},RVS.F.installModuleTemplateForPackage=function(t){var i;0<RVS.LIB.OBJ.addonsToInstall.length?(i=RVS.LIB.OBJ.addonsToInstall[0],RVS.F.ajaxRequest("activate_addon",{addon:i},function(e){void 0!==RVS.LIB.ADDONS&&void 0!==RVS.LIB.ADDONS[i]&&1==RVS.LIB.ADDONS[i].installed?RVS.F.addonInstalledFromTemplate(e,i):RVS.LIB.ADDONS[i].installed=!0,RVS.F.installModuleTemplateForPackage(t)},void 0,void 0,RVS_LANG.installingaddon+'<br><span style="font-size:17px; line-height:25px;">'+RVS.LIB.OBJ.addonsToInstall[0]+"</span>")):RVS.F.ajaxRequest("import_template_slider",t,function(e){e.success&&(e.silent=!0,e.ignoreAjaxFolderMove=!0,t.modal&&(e.slider.modal=0<=jQuery.inArray(""+e.hiddensliderid,RVS.LIB.OBJ.sliderPackageModalsOrig)||0<=jQuery.inArray(e.uid,RVS.LIB.OBJ.sliderPackageModalsOrigUid),f({uid:t.uid,hiddensliderid:e.hiddensliderid,modal:e.slider.modal})),void 0!==RVS.LIB.OBJ.success&&void 0!==RVS.LIB.OBJ.success.slider&&RVS.DOC.trigger(RVS.LIB.OBJ.success.slider,e),RVS.LIB.OBJ.sliderPackageIds.push(e.slider.id),void 0!==e.map&&void 0!==e.map.slider&&(RVS.LIB.OBJ.sliderPackageReferenceMap.slider_map=jQuery.extend(!0,RVS.LIB.OBJ.sliderPackageReferenceMap.slider_map,e.map.slider)),void 0!==e.map&&void 0!==e.map.slides&&(RVS.LIB.OBJ.sliderPackageReferenceMap.slides_map=jQuery.extend(!0,RVS.LIB.OBJ.sliderPackageReferenceMap.slides_map,e.map.slides)),t.modal?e.slider.modal&&RVS.LIB.OBJ.sliderPackageModals.push(e.slider.id):(0<=jQuery.inArray(""+e.hiddensliderid,RVS.LIB.OBJ.sliderPackageModalsOrig)||0<=jQuery.inArray(e.uid,RVS.LIB.OBJ.sliderPackageModalsOrigUid))&&RVS.LIB.OBJ.sliderPackageModals.push(e.slider.id),void 0!==RVS.LIB.OBJ.sliderPackageAdditionsUID[e.uid]&&(RVS.LIB.OBJ.sliderPackageAdditions[e.slider.id]=RVS.LIB.OBJ.sliderPackageAdditionsUID[e.uid]),t.modal||void 0!==RVS.LIB.OBJ.sliderPackageAdditionsInstalled[e.hiddensliderid]&&(RVS.LIB.OBJ.sliderPackageAdditions[e.slider.id]=RVS.LIB.OBJ.sliderPackageAdditionsInstalled[e.hiddensliderid])),t._.index++,s(t._)},void 0,void 0,RVS_LANG.installpackage+'<br><span style="font-size:17px; line-height:25px;">'+t._.name+" ("+(t._.index+1)+" / "+(t._.amount+1)+")</span>")},RVS.DOC.on("click",".olti_install_template",function(){if("true"!==RVS.ENV.activated&&!0!==RVS.ENV.activated)RVS.F.showRegisterSliderInfo();else{var e=this.dataset.uid,t=c(e);if(RVS.LIB.OBJ.sliderPackageIds=[],RVS.LIB.OBJ.addonsToInstall=[],void 0!==t.plugin_require&&null!=t.plugin_require&&0<t.plugin_require.length)for(var i in t.plugin_require)!1===t.plugin_require[i].installed&&RVS.LIB.OBJ.addonsToInstall.push(t.plugin_require[i].path.split("/")[0]);RVS.F.installSingleModuleTemplate(RVS.LIB.OBJ.reDownloadTemplate||0==t.installed?{uid:e,install:!0,title:this.dataset.title}:{uid:this.dataset.uid,sliderid:t.installed,title:this.dataset.title})}}),RVS.DOC.on("click",".olti_install_template_package",function(){var e,t;"true"!==RVS.ENV.activated&&!0!==RVS.ENV.activated?RVS.F.showRegisterSliderInfo():void 0!==this.dataset&&void 0!==this.dataset.uids&&(e=this.dataset.uids.split(","),t=this.dataset.folderuid,RVS.F.createNewFolder({foldername:this.dataset.package,enter:!0,callBack:"sliderPackageInstall",callBackParam:{uids:e,index:0,folderuid:t,name:this.dataset.package,createBlankPage:RVS.LIB.OBJ.createBlankPage,amount:e.length-1}}))}),RVS.DOC.on("sliderPackageInstall",function(e,t){RVS.LIB.OBJ.sliderPackageIds=[],RVS.LIB.OBJ.sliderPackageReferenceMap=new Object,RVS.LIB.OBJ.sliderPackageReferenceMap.slider_map=new Object,RVS.LIB.OBJ.sliderPackageReferenceMap.slides_map=new Object,RVS.LIB.OBJ.sliderPackageModals=[],RVS.LIB.OBJ.sliderPackageModalsOrig=[],RVS.LIB.OBJ.sliderPackageModalsOrigUid=[],RVS.LIB.OBJ.sliderPackageModal=!1,RVS.LIB.OBJ.sliderPackageAdditions={},RVS.LIB.OBJ.sliderPackageAdditionsUID={},RVS.LIB.OBJ.sliderPackageAdditionsInstalled={},s(t)}),RVS.LIB.OBJ.types.svgcustom=jQuery.extend(!0,{tags:{},upload:{buttonText:'<i class="material-icons">publish</i> '+RVS_LANG.importsvgfiles,callBack:function(e){RVS.F.customSVGUpload(e)}}},RVS.LIB.OBJ.types.svgcustom),RVS_LANG.ol_svgcustom="My SVG Library",RVS.F.buildObjectLibrary(e),RVS.LIB.OBJ.items={},RVS.LIB.OBJ.search=jQuery("#searchobjects"),RVS.LIB.OBJ.infoPlus=jQuery("#rs_extra_objlib_info"),RVS.LIB.OBJ.uploadCustoms=jQuery("#upload_custom_files"),RVS.LIB.OBJ.inited=!0,jQuery("#ol_results_wrap").on("dragover dragenter",function(e){void 0!==RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType].upload&&(e=e.originalEvent.dataTransfer).types&&(e.types.indexOf?-1!=e.types.indexOf("Files"):e.types.contains("Files"))&&!RVS.S.dragginginside&&0===jQuery("#filedrop").length&&RVS.F.browserDroppable.init({onlydrop:!1,type:"custom",callBack:RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType].upload.callBack,success:"uploadCustomObject",action:"add_to_media_library"})}),RVS.DOC.on("click","#upload_custom_files",function(){RVS.F.runCustomObjectImport()})},RVS.F.runCustomObjectImport=function(){RVS.F.browserDroppable.init({onlydrop:!1,success:"uploadCustomObject",type:"custom",callBack:RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType].upload.callBack})},RVS.DOC.on("runCustomObjectImport",RVS.F.runCustomObjectImport),RVS.F.extendFilterIcons=function(e){a[e.handle]=e.icon},RVS.F.extendLibTypes=function(e){RVS.LIB.OBJ.types=jQuery.extend(!0,e,RVS.LIB.OBJ.types)},RVS.F.openObjectLibrary=function(e){RVS.LIB.OBJ.open=!0,e=void 0===e?{types:"all",filter:"all",selected:["moduletemplates"],success:{slider:"addNewSlider"}}:e,RVS.S.isRTL=void 0===RVS.S.isRTL?jQuery(document.body).hasClass("rtl"):RVS.S.isRTL,RVS.LIB.OBJ.inited||RVS.F.initObjectLibrary(),!0!==e.silent&&(tpGS.gsap.fromTo(RVS.LIB.OBJ.container_Library,.7,{scale:.8,autoAlpha:0,display:"none"},{autoAlpha:1,display:"block",scale:1,ease:"power3.inOut"}),tpGS.gsap.fromTo("#ol_header, #ol_footer",.5,{autoAlpha:0,ease:"power3.inOut"},{autoAlpha:1,opacity:1,ease:"power3.inOut",delay:.5})),RVS.LIB.OBJ.staticalso=e.staticalso,RVS.LIB.OBJ.success=e.success,RVS.LIB.OBJ.selectedType=e.selected[0],RVS.LIB.OBJ.selectedFilter=e.filter,RVS.LIB.OBJ.selectedFolder=-1,RVS.LIB.OBJ.selectedPage=0,RVS.LIB.OBJ.selectedPackage=-1,RVS.LIB.OBJ.selectedModule=-1,RVS.LIB.OBJ.selectedModuleTitle="",RVS.LIB.OBJ.slideParent=-1,RVS.LIB.OBJ.reDownloadTemplate=!1,RVS.LIB.OBJ.createBlankPage=!1,RVS.LIB.OBJ.data=e.data,RVS.LIB.OBJ.context=void 0===e.context?"overview":"editor",RVS.LIB.OBJ.depth=void 0===e.depth?"slide":e.depth,jQuery(".ol_filter_type.selected").removeClass("selected"),jQuery(".ol_filter_type.open").removeClass("open"),"all"!==e.types?RVS.LIB.OBJ.container_Filters.find(".ol_filter_type").each(function(){void 0!==e.types&&(0<=jQuery.inArray(this.dataset.type,e.types)||e.types.includes(this.dataset.type))?jQuery(this).show():jQuery(this).hide()}):RVS.LIB.OBJ.container_Filters.find(".ol_filter_type").show();var t=jQuery("#ol_filter_"+e.selected);t.addClass("open"),t.find(".ol_filter_headerelement").addClass("selected"),t.find('.ol_filter_listelement[data-filter="'+e.filter+'"]').addClass("selected"),p(!0),RVS.F.loadLibrary({modules:e.selected,event:void 0!==e.event?e.event:"reBuildObjectLibrary"}),!1===e.updatelist?jQuery("#obj_updatefromserver").hide():jQuery("#obj_updatefromserver").show(),RVS.S.bodybeforeOpenLibrary=document.body.style.overflow,document.body.style.overflow="hidden"},RVS.F.reBuildObjectLibrary=function(){RVS.F.updateFilteredList()},RVS.F.updateObjectLibraryFromServer=function(e,t){RVS.F.removeModuleTemplatesFromLibrary(e),RVS.LIB.OBJ.refreshFromServer=!0,RVS.F.loadLibrary({modules:[e],event:"reBuildObjectLibrary",silent:t})},RVS.F.removeModuleTemplatesFromLibrary=function(e){delete RVS.LIB.OBJ.types[e],delete RVS.LIB.OBJ.items[e],RVS.LIB.OBJ.selectedType=e,RVS.LIB.OBJ.lastSelectedType=e,RVS.LIB.OBJ.filteredList=[],RVS.LIB.OBJ.oldList=[],RVS.LIB.OBJ.pages=[],RVS.LIB.OBJ.container_Output[0].innerHTML=""},RVS.F.rebuildObjectFilter=function(e){o(e)},RVS.F.loadLibrary=function(r){var e,t=[],i=[];for(e in r.modules)r.modules.hasOwnProperty(e)&&(RVS.LIB.OBJ.types[r.modules[e]]=void 0===RVS.LIB.OBJ.types[r.modules[e]]?{}:RVS.LIB.OBJ.types[r.modules[e]],RVS.LIB.OBJ.items[r.modules[e]]=void 0===RVS.LIB.OBJ.items[r.modules[e]]?[]:RVS.LIB.OBJ.items[r.modules[e]],(!0!==RVS.LIB.OBJ.types[r.modules[e]].loaded||0===RVS.LIB.OBJ.items[r.modules[e]].length?t:i).push(r.modules[e]));0<t.length&&RVS.F.ajaxRequest("load_module",{module:t,refresh_from_server:RVS.LIB.OBJ.refreshFromServer},function(e){if(e.success){for(var t in e.modules)if(e.modules.hasOwnProperty(t)){for(var i in RVS.LIB.OBJ.items[t]=void 0===RVS.LIB.OBJ.items[t]?[]:RVS.LIB.OBJ.items[t],e.modules[t].items)e.modules[t].items.hasOwnProperty(i)&&(RVS.LIB.OBJ.items[t][i]=e.modules[t].items[i],RVS.LIB.OBJ.items[t][i].libraryType=t,void 0===RVS.LIB.OBJ.items[t][i].id)&&(RVS.LIB.OBJ.items[t][i].id=i);void 0!==e.modules[t].tags&&(RVS.LIB.OBJ.types[t].tags=e.modules[t].tags,o(t)),RVS.LIB.OBJ.types[t].loaded=!0}var a;void 0!==r.event&&RVS.DOC.trigger(r.event,r.eventparam),RVS.LIB.OBJ.success&&RVS.LIB.OBJ.success.event&&(a=RVS.LIB.OBJ.success.eventparam||!1,RVS.DOC.trigger(RVS.LIB.OBJ.success.event,a))}},!!r.silent||void 0,!!r.silent||void 0,!!r.silent||void 0,!r.silent&&void 0,!!r.silent||void 0),0<i.length&&0===t.length&&void 0!==r.event&&RVS.DOC.trigger(r.event,r.eventparam),RVS.LIB.OBJ.refreshFromServer=!1},RVS.F.loadSimpleModule=function(s){var e,t=!1;for(e in RVS.LIB.OBJ.items[s.modules[0]])RVS.LIB.OBJ.items[s.modules[0]].hasOwnProperty(e)&&(t=!0===t||RVS.LIB.OBJ.items[s.modules[0]][e].parent==s.moduleid);t?void 0!==s.event&&RVS.DOC.trigger(s.event,s.eventparam):RVS.F.ajaxRequest("load_module",{module:s.modules[0],module_id:s.moduleid,module_uid:s.module_uid,static:RVS.LIB.OBJ.staticalso},function(e){if(e.success){for(var t in e.modules)if(e.modules.hasOwnProperty(t)){RVS.LIB.OBJ.items[t]=void 0===RVS.LIB.OBJ.items[t]?[]:RVS.LIB.OBJ.items[t];var i,a=RVS.LIB.OBJ.items[t].length,r=RVS.F.getModuleIndex(s.moduleid,s.parenttype),o=RVS.LIB.OBJ.items[s.parenttype][r].title;for(i in e.modules[t].items)e.modules[t].items.hasOwnProperty(i)&&(e.modules[t].items[i].libraryType=t,e.modules[t].items[i].moduleid=s.moduleid,e.modules[t].items[i].module_uid=s.module_uid,e.modules[t].items[i].parenttitle=o,e.modules[t].items[i].slideid=void 0===e.modules[t].items[i].id?i:e.modules[t].items[i].id,e.modules[t].items[i].id=parseInt(a,0)+parseInt(i,0),RVS.LIB.OBJ.items[t].push(e.modules[t].items[i]))}void 0!==s.event&&RVS.DOC.trigger(s.event,s.eventparam)}})},RVS.F.addonInstalledOnDemand=function(e){var t=!1;if(void 0!==RVS.LIB.OBJ&&void 0!==RVS.LIB.OBJ.items){for(var i in RVS.LIB.OBJ.items.moduletemplates)if(RVS.LIB.OBJ.items.moduletemplates.hasOwnProperty(i)){var a,r,o=RVS.LIB.OBJ.items.moduletemplates[i];for(a in o.plugin_require)o.plugin_require.hasOwnProperty(a)&&((r=(r=o.plugin_require[a].path.split("/"))[r.length-1].split(".php")[0])!==e&&o.plugin_require[a].name!==e||(o.plugin_require[a].installed=!0,o&&o.ref&&o.ref.remove(),delete o.ref,t=!0))}t&&RVS.F.updateFilteredList({force:!0,keeppage:!1,noanimation:!1})}},RVS.F.updateParentAttributes=function(){if(window.parentAttributesUpdateForObjects)return!1;for(var e in RVS.LIB.OBJ.items.modules)if(RVS.LIB.OBJ.items.modules.hasOwnProperty(e)&&RVS.LIB.OBJ.items.modules[e].folder)for(var t in window.parentAttributesUpdateForObjects=!0,RVS.LIB.OBJ.items.modules[e].children)RVS.LIB.OBJ.items.modules[e].children.hasOwnProperty(t)&&-1!==(t=RVS.F.getSliderIndex(RVS.LIB.OBJ.items.modules[e].children[t]))&&(RVS.LIB.OBJ.items.modules[t].parent=RVS.LIB.OBJ.items.modules[e].id)},RVS.F.updateFilteredList=function(e){if(e=void 0===e?{force:!1,keeppage:!1,noanimation:!1,focusItem:!1}:e,void 0!==RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType]&&void 0!==RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType].infoPlus?RVS.LIB.OBJ.infoPlus[0].innerHTML=RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType].infoPlus:RVS.LIB.OBJ.infoPlus[0].innerHTML="",void 0!==RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType]&&void 0!==RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType].upload?(RVS.LIB.OBJ.uploadCustoms[0].innerHTML=RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType].upload.buttonText,RVS.LIB.OBJ.uploadCustoms[0].style.display="block"):(RVS.LIB.OBJ.uploadCustoms[0].innerHTML="",RVS.LIB.OBJ.uploadCustoms[0].style.display="none"),-1!==RVS.LIB.OBJ.selectedPackage)RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType].sort(function(e,t){return e.package_order-t.package_order}),RVS.LIB.OBJ.container_Sorting.hide();else switch(RVS.LIB.OBJ.container_Sorting.show(),RVS.LIB.OBJ.container_Library.find("#sel_olibrary_sorting")[0].value){case"datedesc":"moduletemplateslides"===RVS.LIB.OBJ.selectedType||"moduleslides"===RVS.LIB.OBJ.selectedType?RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType].sort(function(e,t){return e.id-t.id}):RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType].sort(function(e,t){return t.id-e.id});break;case"title":RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType].sort(function(e,t){return e.title.toUpperCase().localeCompare(t.title.toUpperCase())});break;case"titledesc":RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType].sort(function(e,t){return t.title.toUpperCase().localeCompare(e.title.toUpperCase())});break;default:RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType].sort(function(e,t){return e.id-t.id})}RVS.LIB.OBJ.selectedFolder=parseInt(RVS.LIB.OBJ.selectedFolder,0),RVS.LIB.OBJ.oldlist=RVS.LIB.OBJ.filteredList,RVS.LIB.OBJ.filteredList=[];var t,i,a,r,o=jQuery("#searchobjects").val().toLowerCase(),s=jQuery("#obj_fil_favorite").hasClass("selected");for(t in"modules"===RVS.LIB.OBJ.selectedType&&RVS.F.updateParentAttributes(),RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType])RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType].hasOwnProperty(t)&&((i=RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType][t]).parent=void 0===i.parent?-1:i.parent,a=function(e){var t=[],i=(t.push(e),0);for(;-1!==e&&20!==i;){var a=RVS.F.getSliderIndex(e);e=-1!==a&&void 0!==RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType][e]&&RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType][e].parent||-1,t.push(e),i++}return t}(i.parent),(r={a:!s||i.favorite}).a)&&(r.samefolder=0<=jQuery.inArray(RVS.LIB.OBJ.selectedFolder,a)||0<=jQuery.inArray(""+RVS.LIB.OBJ.selectedFolder,a),r.b=2<o.length&&r.samefolder&&0<=i.title.toLowerCase().indexOf(o)&&("all"==RVS.LIB.OBJ.selectedFilter||m({o:i,filter:RVS.LIB.OBJ.selectedFilter})),r.c=o.length<3&&RVS.LIB.OBJ.selectedType===i.libraryType&&"all"==RVS.LIB.OBJ.selectedFilter&&parseInt(i.parent,0)==RVS.LIB.OBJ.selectedFolder,r.d=o.length<3&&RVS.LIB.OBJ.selectedType===i.libraryType&&m({o:i,filter:RVS.LIB.OBJ.selectedFilter})&&r.samefolder,r.db="moduletemplates"===RVS.LIB.OBJ.selectedType&&-1!==RVS.LIB.OBJ.selectedPackage&&""+i.package_parent!="true"&&i.package_id==RVS.LIB.OBJ.selectedPackage,r.e="moduletemplateslides"===RVS.LIB.OBJ.selectedType||"moduleslides"===RVS.LIB.OBJ.selectedType,r.b||r.c||r.d||r.e||r.db)&&(r.f=s&&i.favorite&&(-1==RVS.LIB.OBJ.selectedPackage||""+i.package_id==""+RVS.LIB.OBJ.selectedPackage),r.g="moduletemplates"===RVS.LIB.OBJ.selectedType&&(2<o.length||-1==RVS.LIB.OBJ.selectedPackage&&(null==i.package_id||"true"==i.package_parent)||-1!==RVS.LIB.OBJ.selectedPackage&&i.package_id==RVS.LIB.OBJ.selectedPackage&&"true"!=i.package_parent),r.h=("moduletemplateslides"===RVS.LIB.OBJ.selectedType||"moduleslides"===RVS.LIB.OBJ.selectedType)&&RVS.LIB.OBJ.selectedModule==i.parent,r.i="moduletemplates"!==RVS.LIB.OBJ.selectedType&&"moduletemplateslides"!==RVS.LIB.OBJ.selectedType&&"moduleslides"!==RVS.LIB.OBJ.selectedType,r.f||r.g||r.h||r.i)&&RVS.LIB.OBJ.filteredList.push(i.id);1<RVS.LIB.OBJ.filteredList.length&&void 0!==RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType]&&void 0!==RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType].upload&&0<=(" "+RVS.LIB.OBJ.filteredList[0]).indexOf("_99999")&&RVS.LIB.OBJ.filteredList.splice(0,1),!e.force&&JSON.stringify(RVS.LIB.OBJ.oldlist)===JSON.stringify(RVS.LIB.OBJ.filteredList)||(RVS.F.buildPagination({keeppage:e.keeppage,focusItem:e.focusitem}),RVS.F.drawOverview({noanimation:e.noanimation,focusItem:e.focusItem})),RVS.LIB.OBJ.container_OutputWrap.RSScroll("update")},RVS.F.drawOverview=function(e){if(RVS.LIB.OBJ.container_Output.find(".rsl_breadcrumb_wrap").remove(),-1!==RVS.LIB.OBJ.selectedFolder||-1!==RVS.LIB.OBJ.selectedPackage||-1!==RVS.LIB.OBJ.selectedModule){var t='<div class="rsl_breadcrumb_wrap">',i=(t=t+('<div class="rsl_breadcrumb" data-folderid="-1"><i class="material-icons">apps</i>'+RVS_LANG.simproot+"</div>")+'<i class="rsl_breadcrumb_div material-icons">keyboard_arrow_right</i>',"");if(-1!==RVS.LIB.OBJ.selectedFolder){for(var a=RVS.LIB.OBJ.selectedFolder,r=0;-1!==a&&100!==r;){var o="moduleslides"===RVS.LIB.OBJ.selectedType?"modules":RVS.LIB.OBJ.selectedType,s=RVS.F.getModuleIndex(a,o);-1!==s&&"-1"!==s?(i='<div class="rsl_breadcrumb" data-folderid="'+a+'"><i class="material-icons">folder_open</i>'+RVS.LIB.OBJ.items[o][s].title+'</div><i class="rsl_breadcrumb_div material-icons">keyboard_arrow_right</i>'+i,a=RVS.LIB.OBJ.items[o][s].parent||-1,r++):(r=100,RVS.LIB.OBJ.selectedModule=-1,RVS.LIB.OBJ.selectedModuleTitle="",RVS.LIB.OBJ.selectedModuleType="",u(),"moduletemplates"===RVS.LIB.OBJ.selectedType&&(RVS.LIB.OBJ.selectedPackage=-1),"modules"===RVS.LIB.OBJ.selectedType&&(RVS.LIB.OBJ.selectedFolder=-1,RVS.F.resetAllFilters()),RVS.F.updateFilteredList({force:!0,keeppage:!0,noanimation:!0}))}t+=i}t=(t+=-1!==RVS.LIB.OBJ.selectedPackage?'<div id="rsl_bread_selected" data-folderid="'+RVS.LIB.OBJ.selectedPackage+'" class="rsl_breadcrumb">'+RVS.LIB.OBJ.selectedPackageTitle+"</div>":'<div id="rsl_bread_selected" class="rsl_breadcrumb"></div>')+(-1!==RVS.LIB.OBJ.selectedModule?-1!==RVS.LIB.OBJ.selectedPackage?'<i class="rsl_breadcrumb_div material-icons">keyboard_arrow_right</i><div id="rsl_bread_selected" class="rsl_breadcrumb">'+RVS.LIB.OBJ.selectedModuleTitle+"</div>":'<div id="rsl_bread_selected" class="rsl_breadcrumb">'+RVS.LIB.OBJ.selectedModuleTitle+"</div>":"editor"!==RVS.LIB.OBJ.context?"":'<div id="rsl_bread_selected" class="rsl_breadcrumb"></div>'),"editor"!==RVS.LIB.OBJ.context&&0==RVS.F.getFolderSize(RVS.LIB.OBJ.selectedFolder)&&(t+='<div class="rsl_breadcrumb warning"><i class="material-icons">block</i>Folder is Empty</div>'),t+="</div>",RVS.LIB.OBJ.container_Output.append(t)}if(void 0!==RVS.LIB.OBJ.lastSelectedType&&RVS.LIB.OBJ.lastSelectedType!==RVS.LIB.OBJ.selectedType)for(var l in RVS.LIB.OBJ.items[RVS.LIB.OBJ.lastSelectedType])void 0!==RVS.LIB.OBJ.items[RVS.LIB.OBJ.lastSelectedType][l].ref&&RVS.LIB.OBJ.items[RVS.LIB.OBJ.lastSelectedType][l].ref.detach();if(RVS.LIB.OBJ.lastSelectedType=RVS.LIB.OBJ.selectedType,RVS.LIB.OBJ.selectedPage=void 0===RVS.LIB.OBJ.selectedPage?1:RVS.LIB.OBJ.selectedPage,RVS.LIB.OBJ.waitForLoad=[],(RVS.LIB.OBJ.waitForLoadIndex=0)<=jQuery.inArray(RVS.LIB.OBJ.selectedType,["fonticons","images","layers","modules","moduletemplateslides","moduletemplates","moduleslides","objects","svgs","videos"])){for(var l in RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType]){var n;RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType].hasOwnProperty(l)&&(n=RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType][l],0<=jQuery.inArray(n.id,RVS.LIB.OBJ.pages[RVS.LIB.OBJ.selectedPage-1]))&&void 0===n.ref&&(void 0!==n.img&&("object"==typeof n.img&&-1===n.img.url.indexOf("//")||"object"!=typeof n.img&&-1===n.img.indexOf("//"))&&RVS.LIB.OBJ.waitForLoad.push({librarytype:n.libraryType,mediatype:"img",ind:l,id:"object"==typeof n.img?n.img.url:n.img}),void 0!==n.video_thumb)&&("object"==typeof n.video_thumb&&-1===n.video_thumb.url.indexOf("//")||"object"!=typeof n.video_thumb&&-1===n.video_thumb.indexOf("//"))&&RVS.LIB.OBJ.waitForLoad.push({librarytype:n.libraryType,mediatype:"video",ind:l,id:"object"==typeof n.video_thumb?n.video_thumb.url:n.img})}RVS.F.loadAllMissingMedia()}else void 0!==RVS.F["checkLoadedItems_"+RVS.LIB.OBJ.selectedType]&&RVS.F["checkLoadedItems_"+RVS.LIB.OBJ.selectedType]()},RVS.F.loadAllMissingMedia=function(){var e;0<RVS.LIB.OBJ.waitForLoad.length?RVS.LIB.OBJ.waitForLoadIndex<RVS.LIB.OBJ.waitForLoad.length&&(e="layers"===RVS.LIB.OBJ.waitForLoad[0].librarytype||"videos"===RVS.LIB.OBJ.waitForLoad[0].librarytype?Math.round(RVS.LIB.OBJ.waitForLoad.length/2):RVS.LIB.OBJ.waitForLoad.length,e="videos"===RVS.LIB.OBJ.waitForLoad[0].librarytype?Math.round(RVS.LIB.OBJ.waitForLoad.length/2)+" "+RVS_LANG.elements+" ("+Math.round(RVS.LIB.OBJ.waitForLoad.length/2*450)/100+"MB)":"layers"===RVS.LIB.OBJ.waitForLoad[0].librarytype?Math.round(RVS.LIB.OBJ.waitForLoad.length/2)+" "+RVS_LANG.elements+" ("+Math.round(RVS.LIB.OBJ.waitForLoad.length/2*25)/100+"MB)":Math.round(RVS.LIB.OBJ.waitForLoad.length)+" "+RVS_LANG.elements+" ("+Math.round(1.5*RVS.LIB.OBJ.waitForLoad.length)/100+"MB)",RVS.F.ajaxRequest("load_library_image",RVS.LIB.OBJ.waitForLoad,function(e){if(e.success)for(var t in e.data){var i;e.data.hasOwnProperty(t)&&(t=e.data[t],i=RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType][t.ind],"img"===t.mediatype&&("object"==typeof i.img?i.img.url=t.url:i.img=t.url),"video"===t.mediatype)&&("object"==typeof i.video_thumb?i.video_thumb.url=t.url:i.video_thumb=t.url)}else console.log("Could Not be loaded. Please try later.");RVS.F.finalDrawOfElements()},void 0,void 0,RVS_LANG.loadingthumbs+'<br><span style="font-size:17px; line-height:25px;">'+RVS_LANG.loading+" "+e+"</span>")):RVS.F.finalDrawOfElements()},RVS.F.loadCustomLibraryItems=function(i,e){var t,a,r=[];for(t in RVS.LIB.OBJ.items[i])RVS.LIB.OBJ.items[i].hasOwnProperty(t)&&(a=RVS.LIB.OBJ.items[i][t],0<=jQuery.inArray(a.id,RVS.LIB.OBJ.pages[RVS.LIB.OBJ.selectedPage-1]))&&0==a.img&&r.push({ind:t,id:a.id,handle:a.handle});0<r.length?(e=Math.round(r.length)+" "+RVS_LANG.elements+" ("+Math.round(r.length*e)/100+"MB)",RVS.F.ajaxRequest("download_lordicon_file",{handle:r},function(e){if(e.success)for(var t in e.data)e.data.hasOwnProperty(t)&&(t=e.data[t],RVS.LIB.OBJ.items[i][t.ind].img=t.url);else console.log("Could Not be loaded. Please try later.");RVS.F.finalDrawOfElements()},void 0,void 0,RVS_LANG.loadingthumbs+'<br><span style="font-size:17px; line-height:25px;">'+RVS_LANG.loading+" "+e+"</span>")):RVS.F.finalDrawOfElements()},RVS.F.createLibraryDummyDownloadItem=function(e,t){0===RVS.LIB.OBJ.filteredList.length&&(void 0!==RVS.LIB.OBJ[e+"CustomItemAdded"]&&"add_custom_item"===RVS.LIB.OBJ.items[e][0].handle||(RVS.LIB.OBJ.items[e].unshift({id:e+"_99999",handle:"add_custom_item",libraryType:e,parent:-1,favorite:!1,tags:[],title:t,ver:"1"}),RVS.LIB.OBJ[e+"CustomItemAdded"]=!0),RVS.LIB.OBJ.items[e][0].tags.push(RVS.LIB.OBJ.selectedFilter),RVS.F.updateFilteredList(),RVS.F.finalDrawOfElements())},RVS.F.finalDrawOfElements=function(){var e,t;for(e in RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType])RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType].hasOwnProperty(e)&&(t=RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType][e],0<=jQuery.inArray(t.id,RVS.LIB.OBJ.pages[RVS.LIB.OBJ.selectedPage-1])?(void 0!==t.ref&&t.folder&&t.ref.remove(),t.ref=void 0===t.ref||t.folder?RVS.F.buildElement(t):t.ref,t.ref.appendTo(RVS.LIB.OBJ.container_Output)):void 0!==t.ref&&t.ref.detach());"moduletemplates"===RVS.LIB.OBJ.selectedType&&RVS.F.initOnOff(RVS.LIB.OBJ.container_Output),h()},RVS.F.buildElement=function(e,t){e.importantid=RVS.F.isNumeric(parseInt(e.id))?e.libraryType+"_"+e.id:e.id;var i='<div data-objid="'+e.id+'" id="'+e.importantid+'" class="olibrary_item">',a=(i=(i=i+'\t<div class="olibrary_media_wrap"></div>'+'\t<div class="olibrary_content_wrap">')+"\t</div>"+"</div>",jQuery(i)),i=a.find(".olibrary_content_wrap"),r=a.find(".olibrary_media_wrap"),o="",s="",l='<i class="olti_icon olti_green material-icons">check</i>',n='<i class="olti_icon olti_red material-icons">close</i>';switch(e.libraryType){case"moduletemplates":var d,c=!0,p=!0,u=!0,o='<div class="olibrary_content_left">';if(o=(o=(o=(o=(o+='\t<div class="olibrary_content_title">'+e.title+"</div>")+("true"==e.package_parent?'\t<div class="olibrary_content_type oc_package">'+RVS_LANG.packageBIG+"</div>":'\t<div class="olibrary_content_type oc_purple">'+RVS_LANG.moduleBIG+"</div>"))+('\t<div class="installed_notinstalled olibrary_content_info oc_gray">'+(e.installed?RVS_LANG.installed:RVS_LANG.notinstalled)+"</div>"))+"</div>"+'<div class="olibrary_content_right">')+('\t<i data-id="'+e.id+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>')+"</div>",s=(s=(s=(s=s+'<div class="ol_template_info_wrap">'+('<div class="olti_title">'+e.title+"</div>"))+e.description+'<div class="div30"></div>')+('<div class="olti_title">'+RVS_LANG.setupnotes+"</div>"))+e.setup_notes,(void 0!==e.required||void 0!==e.plugin_require&&null!==e.plugin_require)&&(s=(s+='<div class="div30"></div>')+'<div class="olti_title">'+RVS_LANG.requirements+"</div>",void 0!==e.required&&(s+='<div class="olti_content">'+(RVS.F.compareVersions(e.required,RVS.ENV.revision)?l:n)+"Slider Revolution Version "+e.required+"</div>"),0==RVS.F.compareVersions(e.required,RVS.ENV.revision)&&(c=!1),void 0!==e.plugin_require)&&null!==e.plugin_require)for(var v in e.plugin_require)e.plugin_require.hasOwnProperty(v)&&(s+='<div class="olti_content">'+("true"==e.plugin_require[v].installed||1==e.plugin_require[v].installed?l:n)+'<a href="'+e.plugin_require[v].url+'" target="_blank" rel="noopener">'+e.plugin_require[v].name+"</a></div>","true"!==e.plugin_require[v].installed)&&!0!==e.plugin_require[v].installed&&(p=!1);c=!1!==RVS.ENV.activated&&c,"editor"===RVS.LIB.OBJ.context?"true"==e.package_parent?a.append('<div class="olibrary_media_overlay oneicon"><i data-librarytype="'+e.libraryType+'" data-elementtype="package_parent" data-title="'+e.title+'" data-packageid="'+e.package_id+'" class="material-icons ol_link_to_deeper">folder</i></div>'):p&&c?a.append('<div class="olibrary_media_overlay oneicon"><i data-librarytype="'+e.libraryType+'" data-moduleid="'+e.id+'" data-module_uid="'+e.uid+'" data-elementtype="module_parent" data-title="'+e.title+'" data-packageid="'+e.id+'" class="material-icons ol_link_to_deeper">burst_mode</i></div>'):a.append('<div class="olibrary_media_overlay oneicon"><i data-librarytype="'+e.libraryType+'" data-elementtype="" class="material-icons ol_link_to_add">burst_mode</i></div>'):"true"==e.package_parent?a.append('<div class="olibrary_media_overlay threeicons"><i data-librarytype="'+e.libraryType+'" data-elementtype="" class="material-icons ol_link_to_add">add</i><i data-librarytype="'+e.libraryType+'" data-elementtype="package_parent" data-title="'+e.title+'" data-packageid="'+e.package_id+'" class="material-icons ol_link_to_deeper">folder</i><i data-preview="'+e.preview+'" data-librarytype="'+e.libraryType+'" data-elementtype="" class="material-icons ol_link_to_view">visibility</i></div>'):a.append('<div class="olibrary_media_overlay"><i data-librarytype="'+e.libraryType+'" data-elementtype="" class="material-icons ol_link_to_add">add</i><i data-librarytype="'+e.libraryType+'" data-elementtype="" data-preview="'+e.preview+'" class="material-icons ol_link_to_view">visibility</i></div>'),void 0!==e.package_id&&-1!==e.package_id&&(d=function(e){var t,i=[],a=!0,r=[];for(o in RVS.LIB.OBJ.items.moduletemplates)RVS.LIB.OBJ.items.moduletemplates.hasOwnProperty(o)&&RVS.LIB.OBJ.items.moduletemplates[o].package_id===e.packageId&&("true"===RVS.LIB.OBJ.items.moduletemplates[o].package_parent?t=RVS.LIB.OBJ.items.moduletemplates[o]:i.push({o:parseInt(RVS.LIB.OBJ.items.moduletemplates[o].package_order,0),uid:RVS.LIB.OBJ.items.moduletemplates[o].uid}));i.sort(function(e,t){return e.o-t.o});var o,s=[];for(o in i)void 0!==i[o]&&void 0!==i[o].uid&&s.push(i[o].uid);if(void 0!==t)for(var l in t.plugin_require)"true"!=t.plugin_require[l].installed&&(a=!1),r.push(t.plugin_require[l]);return{installable:a,uids:s,addons:r}}({packageId:e.package_id}),"true"!=e.package_parent)&&!1===d.installable&&(u=!1);var s=(s=(s+='<div class="div30"></div>')+('<div class="olti_title">'+RVS_LANG.availableversion+"</div>"))+('<div class="olti_content">'+e.version+"</div>")+'<div class="div30"></div>',g=!1;"true"!=e.package_parent&&(RVS.ENV.activated?s+=c?'<div data-title="'+e.title+'" data-uid="'+e.uid+'" class="olti_btn olti_install_template"><i class="material-icons">file_download</i>'+(p?RVS_LANG.installtemplate:RVS_LANG.installtemplateandaddons)+"</div>":'<div data-title="'+e.title+'" data-uid="'+e.uid+'" class="olti_btn olti_install_template notinstallable"><i class="material-icons">file_download</i>'+RVS_LANG.pluginsmustbeupdated+"</div>":(g=!0,s+='<div class="olti_btn olti_install_template notinstallable"><i class="material-icons">file_download</i>'+RVS_LANG.licencerequired+"</div>"),void 0!==e.package_id)&&-1!==e.package_id&&(s+='<div class="div10"></div>'),void 0!==e.package_id&&-1!==e.package_id&&(RVS.ENV.activated&&c?s+='<div data-package="'+e.package+'" data-folderuid="'+e.uid+'" data-uids="'+d.uids.toString()+'" class="olti_btn olti_install_template_package"><i class="material-icons">file_download</i>'+(c&&u?RVS_LANG.doinstallpackage:RVS_LANG.installpackageandaddons)+"</div>":c?g||(s+='<div class="olti_btn olti_install_template_package notinstallable"><i class="material-icons">file_download</i>'+RVS_LANG.licencerequired+"</div>"):s+='<div id="updateplugin_sc" class="olti_btn olti_install_template_package"><i class="material-icons">file_download</i>'+RVS_LANG.checkversion+"</div>"),("true"!=e.package_parent&&c||void 0!==e.package_id&&-1!==e.package_id&&c)&&(s=(s=(s+='<div class="div20"></div>')+'<div class="olti_content"><input type="checkbox" class="redownloadTemplateState"/>'+RVS_LANG.redownloadTemplate+"</div>")+'<div class="olti_content"><input type="checkbox" class="createBlankPageState"/>'+RVS_LANG.createBlankPage+"</div>"),s+="</div>",void 0!==e.img&&"string"==typeof e.img?tpGS.gsap.set(r,{backgroundImage:"url("+e.img+")","background-size":"cover",backgroundPosition:"center center"}):void 0!==e.img&&"object"==typeof e.img&&(m=void 0!==e.img.style?jQuery('<div class="olibrary_media_style" style="'+e.img.style+'"></div>'):jQuery('<div class="olibrary_media_style"></div>'),void 0!==e.img.url&&3<e.img.url.length&&tpGS.gsap.set(m,{backgroundImage:"url("+e.img.url+")"}),r.append(m));break;case"moduleslides":case"moduletemplateslides":var m,c=!0,u=!0;if(o='<div class="olibrary_content_left">',o=(o+='\t<div class="olibrary_content_title">'+e.title+"</div>")+("true"==e.package_parent?'\t<div class="olibrary_content_type oc_package">'+RVS_LANG.packageBIG+"</div>":'\t<div class="olibrary_content_type oc_purple">'+RVS_LANG.moduleBIG+"</div>"),"moduletemplateslides"===e.libraryType&&(void 0!==e.required||void 0!==e.plugin_require&&null!==e.plugin_require)&&(void 0!==e.required&&0==RVS.F.compareVersions(e.required,RVS.ENV.revision)&&(c=!1),void 0!==e.plugin_require)&&null!==e.plugin_require)for(var v in e.plugin_require)e.plugin_require.hasOwnProperty(v)&&"true"!=e.plugin_require[v].installed&&!0!==e.plugin_require[v].installed&&(c=c&&!1);"layers"===RVS.LIB.OBJ.depth?(a.append('<div class="olibrary_media_overlay oneicon"><i data-librarytype="'+e.libraryType+'" data-parenttitle="'+e.parenttitle+'" data-parent="'+e.parent+'" data-id="'+e.id+'" data-slideid="'+e.slideid+'" data-slidetitle="'+e.title+'" class="material-icons ol_link_to_deeper">layers</i></div>'),_(e,r)):(c&&(a.append('<div class="olibrary_media_overlay oneicon"><i data-librarytype="'+e.libraryType+'" data-parenttitle="'+e.parenttitle+'" data-parent="'+e.parent+'" data-id="'+e.id+'" data-parentuid="'+e.module_uid+'" class="material-icons ol_link_to_add">add</i></div>'),o=o+("moduletemplateslides"===e.libraryType?'\t<div class="installed_notinstalled olibrary_content_info oc_gray">'+(e.installed?RVS_LANG.installed:RVS_LANG.notinstalled)+"</div>":"")+"</div>"),"moduletemplateslides"===e.libraryType?void 0!==e.img&&"string"==typeof e.img?tpGS.gsap.set(r,{backgroundImage:"url("+e.img+")","background-size":"cover",backgroundPosition:"center center"}):void 0!==e.img&&"object"==typeof e.img&&(m=void 0!==e.img.style?jQuery('<div class="olibrary_media_style" style="'+e.img.style+'"></div>'):jQuery('<div class="olibrary_media_style"></div>'),void 0!==e.img.url&&3<e.img.url.length&&tpGS.gsap.set(m,{backgroundImage:"url("+e.img.url+")"}),r.append(m)):_(e,r));break;case"svgs":o='<div class="olibrary_content_left">',o=(o=(o=(o=(o+='\t<div class="olibrary_content_title">'+e.title+"</div>")+('\t<div class="olibrary_content_type oc_green">'+RVS_LANG.iconBIG+"</div>"))+('\t<div class="olibrary_content_info oc_gray">'+RVS_LANG.svgBIG+"</div>"))+"</div>"+'<div class="olibrary_content_right">')+('\t<i data-id="'+e.handle+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>')+"</div>",a.append('<div class="olibrary_media_overlay oneicon"><i data-librarytype="'+e.libraryType+'" data-handle="'+e.handle+'" data-elementtype="" class="material-icons ol_link_to_add">add</i></div>'),void 0!==e.img&&jQuery.get(e.img,function(e){var t=RVS.F.cE({cN:"ol_svg_preview"});t.innerHTML=(new XMLSerializer).serializeToString(e.documentElement),r.append(t)}),r[0].className+=" patternbg";break;case"fonticons":o='<div class="olibrary_content_left">',o=(o=(o=(o=(o+='\t<div class="olibrary_content_title">'+e.title+"</div>")+('\t<div class="olibrary_content_type oc_green">'+RVS_LANG.iconBIG+"</div>"))+('\t<div class="olibrary_content_info oc_gray">'+RVS_LANG.fontBIG+"</div>"))+"</div>"+'<div class="olibrary_content_right">')+('\t<i data-id="'+e.handle+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>')+"</div>",a.append('<div class="olibrary_media_overlay oneicon"><i data-librarytype="'+e.libraryType+'" data-handle="'+e.handle+'" data-elementtype="" class="material-icons ol_link_to_add">add</i></div>');var h="";if(void 0!==e.classextension)for(var S in e.classextension)e.classextension.hasOwnProperty(S)&&(h+=" "+e.classextension[S]);"MaterialIcons"===e.tags[0]?r.append('<i class="fonticonobj material-icons">'+e.handle.replace(".","")+"</i>"):r.append('<i class="fonticonobj '+h+" "+e.handle.replace(".","")+'"></i>'),r[0].className+=" patternbg";break;case"modules":var b=!("undefined"==typeof RS_SHORTCODE_FAV||!RS_SHORTCODE_FAV.modules)&&RS_SHORTCODE_FAV.modules;if(b)for(var f in b)if(b.hasOwnProperty(f)&&b[f]===e.id){e.favorite=!0;break}if(e.premium&&a.append('<div class="rs_lib_premium_wrap'+(RVS.ENV.activated?"":" rs_n_ac_n")+'"><div class="rs_lib_premium_lila">'+RVS_LANG.premium+'</div><div class="rs_lib_premium_red"><i class="material-icons">visibility_off</i>'+RVS_LANG.premium+'</div><div class="rs_lib_premium_red_hover"><i class="material-icons">visibility_off</i>'+RVS_LANG.premiumunlock+"</div></div>"),o='<div class="olibrary_content_left">',o+='\t<div class="olibrary_content_title">'+e.title+"</div>",e.folder?o+='\t<div class="olibrary_content_type oc_package">'+RVS_LANG.folderBIG+"</div>":o+='\t<div class="olibrary_content_type oc_purple">'+RVS_LANG.moduleBIG+"</div>",e.folder||(o+='\t<div class="olibrary_content_info oc_gray">'+e.type+"</div>"),o=(o=o+"</div>"+'<div class="olibrary_content_right">')+('\t<i data-id="'+e.id+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>')+"</div>",e.folder){a.append('<div class="olibrary_media_overlay oneicon"><i data-librarytype="'+e.libraryType+'" data-folderid="'+e.id+'" data-elementtype="folder_parent" data-title="'+e.title+'" data-packageid="'+e.package_id+'" class="material-icons ol_link_to_deeper">folder</i></div>');for(S=1;S<=4;S++){var R,y=jQuery('<div class="folder_img_placeholder folder_img_'+S+'"></div>');void 0!==e.children&&e.children.length>=S&&-1!==(R=RVS.F.getSliderIndex(e.children[S-1]))&&_(RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType][R],y),r.append(y)}r.addClass("obj_med_darkbg")}else"editor"===RVS.LIB.OBJ.context?a.append('<div class="olibrary_media_overlay oneicon"><i data-librarytype="'+e.libraryType+'" data-moduleid="'+e.id+'" data-folderid="'+e.id+'" data-elementtype="module_parent" data-title="'+e.title+'" data-packageid="'+e.id+'" class="material-icons ol_link_to_deeper">burst_mode</i></div>'):RVS.LIB.OBJ.shortcode_generator?a.append('<div class="olibrary_media_overlay oneicon"><i data-librarytype="'+e.libraryType+'" data-elementtype="" class="material-icons ol_link_to_add">add</i></div>'):a.append('<div class="olibrary_media_overlay"><i data-librarytype="'+e.libraryType+'" data-elementtype="" class="material-icons ol_link_to_add">add</i><i data-librarytype="'+e.libraryType+'" data-elementtype="" data-preview="'+e.preview+'" class="material-icons ol_link_to_view">visibility</i></div>'),_(e,r);break;case"objects":o='<div class="olibrary_content_left">',o=(o=(o=(o=(o+='\t<div class="olibrary_content_title">'+e.title+"</div>")+('\t<div class="olibrary_content_type oc_cyan">'+RVS_LANG.objectBIG+"</div>"))+('\t<div data-w="'+e.width+'" data-h="'+e.height+'" id="sizeinfo_'+e.libraryType+"_"+e.id+'" class="olibrary_content_info oc_gray">'+e.width+"x"+e.height+"</div>"))+"</div>"+'<div class="olibrary_content_right">')+('\t<i data-id="'+e.id+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>')+"</div>",!1===RVS.ENV.activated?a.append('<div class="olibrary_media_overlay"><div class="avtivationicon"><i class="material-icons">not_interested</i>'+RVS_LANG.licencerequired+"</div></div>"):a.append('<div class="olibrary_media_overlay"><div class="olibrary_addimage_wrapper"><div data-id="'+e.id+'" data-size="xs" data-librarytype="'+e.libraryType+'" class="ol_link_to_add_image">xs</div><div data-id="'+e.id+'" data-size="s" data-librarytype="'+e.libraryType+'" class="ol_link_to_add_image">s</div><div data-id="'+e.id+'" data-size="m" data-librarytype="'+e.libraryType+'" class="ol_link_to_add_image">m</div><div data-id="'+e.id+'" data-size="l" data-librarytype="'+e.libraryType+'" class="ol_link_to_add_image">l</div><div data-id="'+e.id+'" data-size="o" data-librarytype="'+e.libraryType+'" class="ol_link_to_add_image">o</div></div></div>'),void 0!==e.img&&"string"==typeof e.img?(m=jQuery('<img class="olib_png_obj" src="'+e.img+'">'),r.append(m)):void 0!==e.img&&"object"==typeof e.img&&(m=void 0!==e.img.style?jQuery('<div class="olibrary_media_style" style="'+e.img.style+'"></div>'):jQuery('<div class="olibrary_media_style"></div>'),void 0!==e.img.url&&3<e.img.url.length&&tpGS.gsap.set(m,{backgroundImage:"url("+e.img.url+")",backgroundRepeat:"no-repeat","background-size":"contain",backgroundPosition:"center center"}),r.append(m)),r[0].className+=" patternbg";break;case"images":o='<div class="olibrary_content_left">',o=(o=(o=(o=(o+='\t<div class="olibrary_content_title">'+e.title+"</div>")+('\t<div class="olibrary_content_type oc_blue">'+RVS_LANG.imageBIG+"</div>"))+('\t<div data-w="'+e.width+'" data-h="'+e.height+'" id="sizeinfo_'+e.libraryType+"_"+e.id+'" class="olibrary_content_info oc_gray">'+e.width+"x"+e.height+"</div>"))+"</div>"+'<div class="olibrary_content_right">')+('\t<i data-id="'+e.id+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>')+"</div>",!1===RVS.ENV.activated?a.append('<div class="olibrary_media_overlay"><div class="avtivationicon"><i class="material-icons">not_interested</i>'+RVS_LANG.licencerequired+"</div></div>"):a.append('<div class="olibrary_media_overlay"><div class="olibrary_addimage_wrapper"><div data-id="'+e.id+'" data-size="xs" data-librarytype="'+e.libraryType+'" class="ol_link_to_add_image">xs</div><div data-id="'+e.id+'" data-size="s" data-librarytype="'+e.libraryType+'" class="ol_link_to_add_image">s</div><div data-id="'+e.id+'" data-size="m" data-librarytype="'+e.libraryType+'" class="ol_link_to_add_image">m</div><div data-id="'+e.id+'" data-size="l" data-librarytype="'+e.libraryType+'" class="ol_link_to_add_image">l</div><div data-id="'+e.id+'" data-size="o" data-librarytype="'+e.libraryType+'" class="ol_link_to_add_image">o</div></div></div>'),void 0!==e.img&&"string"==typeof e.img?tpGS.gsap.set(r,{backgroundImage:"url("+e.img+")","background-repeat":"no-repeat","background-size":"cover",backgroundPosition:"center center",backgroundRepeat:"no-repeat"}):void 0!==e.img&&"object"==typeof e.img&&(m=void 0!==e.img.style?jQuery('<div class="olibrary_media_style" style="'+e.img.style+'"></div>'):jQuery('<div class="olibrary_media_style"></div>'),void 0!==e.img.url&&3<e.img.url.length&&tpGS.gsap.set(m,{backgroundImage:"url("+e.img.url+")"}),r.append(m)),r[0].className+=" patternbg";break;case"videos":o='<div class="olibrary_content_left">',o=(o=(o=(o=(o+='\t<div class="olibrary_content_title">'+e.title+"</div>")+('\t<div class="olibrary_content_type oc_blue">'+RVS_LANG.videoBIG+"</div>"))+('\t<div class="olibrary_content_info oc_gray">'+e.width+"x"+e.height+"</div>"))+"</div>"+'<div class="olibrary_content_right">')+('\t<i data-id="'+e.id+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>')+"</div>",s=s+'<div class="ol_template_info_wrap videopreview">'+"</div>",a[0].className+=" show_video_on_hover",a[0].dataset.videosource=e.video_thumb.url,!1===RVS.ENV.activated?a.append('<div class="olibrary_media_overlay"><div class="avtivationicon"><i class="material-icons">not_interested</i>'+RVS_LANG.licencerequired+"</div></div>"):a.append('<div class="olibrary_media_overlay oneicon"><i data-librarytype="'+e.libraryType+'" data-id="'+e.id+'" data-handle="'+e.handle+'" data-elementtype="" class="material-icons ol_link_to_add">add</i></div>'),r[0].dataset.videosource=e.video_thumb.url,void 0!==e.img&&"string"==typeof e.img?tpGS.gsap.set(r,{backgroundImage:"url("+e.img+")","background-repeat":"no-repeat","background-size":"cover",backgroundPosition:"center center"}):void 0!==e.img&&"object"==typeof e.img&&(m=void 0!==e.img.style?jQuery('<div class="olibrary_media_style" style="'+e.img.style+'"></div>'):jQuery('<div class="olibrary_media_style"></div>'),void 0!==e.img.url&&3<e.img.url.length&&tpGS.gsap.set(m,{backgroundImage:"url("+e.img.url+")"}),r.append(m));break;case"layers":e.title=RVS.F.capitaliseAll(e.title.replace(/[_-]/g," ")),o='<div class="olibrary_content_left">',o=(o=(o=(o=(o+='\t<div class="olibrary_content_title">'+e.title+"</div>")+('\t<div class="olibrary_content_type oc_blue">'+RVS_LANG.layersBIG+"</div>"))+('\t<div class="olibrary_content_info oc_gray">'+e.width+"x"+e.height+"</div>"))+"</div>"+'<div class="olibrary_content_right">')+('\t<i data-id="'+e.id+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>')+"</div>",s=s+'<div class="ol_template_info_wrap videopreview">'+"</div>",a[0].className+=" show_video_on_hover",a[0].dataset.videosource=e.video_thumb.url,!1===RVS.ENV.activated?a.append('<div class="olibrary_media_overlay"><div class="avtivationicon"><i class="material-icons">not_interested</i>'+RVS_LANG.licencerequired+"</div></div>"):a.append('<div class="olibrary_media_overlay oneicon"><i data-librarytype="'+e.libraryType+'" data-id="'+e.id+'" data-handle="'+e.handle+'" data-elementtype="" class="material-icons ol_link_to_add">add</i></div>'),r[0].dataset.videosource=e.video_thumb.url,void 0!==e.img&&"string"==typeof e.img?tpGS.gsap.set(r,{backgroundImage:"url("+e.img+")","background-repeat":"no-repeat","background-size":"cover",backgroundPosition:"center center"}):void 0!==e.img&&"object"==typeof e.img&&(m=void 0!==e.img.style?jQuery('<div class="olibrary_media_style" style="'+e.img.style+'"></div>'):jQuery('<div class="olibrary_media_style"></div>'),void 0!==e.img.url&&3<e.img.url.length&&tpGS.gsap.set(m,{backgroundImage:"url("+e.img.url+")",backgroundSize:"cover"}),r.append(m));break;default:void 0!==RVS.F["newObjectLibraryItem_"+e.libraryType]&&(void 0!==(d=RVS.F["newObjectLibraryItem_"+e.libraryType](e,a,r)).content&&(o+=d.content),void 0!==d.infocontent)&&(s+=d.infocontent)}return""!==o&&i.append(o),""!==s&&a.append(s),void 0!==RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType]&&void 0!==RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType].upload&&(i=a.find(".olibrary_custom_tagselector"),void 0!==e.tags&&void 0!==e.tags[0]&&0<e.tags.length&&"All"!==e.tags[0]?i.val(e.tags[0]):i.val("all"),void 0!==i)&&0<i.length&&i.ddTP(),a},RVS.F.getCustomTagsOptions=function(e){var t,i,a='<option value="all">All</option>';if(void 0===RVS.LIB.OBJ.types[e]||void 0===RVS.LIB.OBJ.types[e].tags)return"";for(t in RVS.LIB.OBJ.types[e].tags)RVS.LIB.OBJ.types[e].tags.hasOwnProperty(t)&&(i=void 0===(i=RVS.LIB.OBJ.types[e].tags[t])?"All":i,a=a+'<option value="'+t+'">'+RVS.LIB.OBJ.types[e].tags[t]+"</option>");return a},RVS.F.changeOLIBToFolder=function(e){0==RVS.F.getFolderSize(e)&&(e=-1),RVS.LIB.OBJ.selectedFolder=e,RVS.F.resetAllFilters(),RVS.F.updateFilteredList({force:!0,keeppage:!1,noanimation:!1})},RVS.F.getFolderSize=e=>{let t=0;for(var i in RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType])RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType].hasOwnProperty(i)&&""+RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType][i].parent==""+e&&t++;return t},RVS.F.buildPagination=function(e){var t,i,a=RVS.F.getCookie("rs6_library_pagination");if(RVS.C.ol_pagination=null==RVS.C.ol_pagination?jQuery("#ol_pagination"):RVS.C.ol_pagination,d=t=i=v(),jQuery("#ol_right").scrollTop(0),e=void 0===e?{keeppage:!1}:e,RVS.LIB.OBJ.maxAmountPerPage!==d){RVS.C.ol_pagination.ddTP("destroy"),RVS.LIB.OBJ.maxAmountPerPage=d;for(var r=RVS.C.ol_pagination[0].options,o=0;o<=4;o++){var s=r[o];s.value=i,s.selected=s.value===a,s.innerHTML=RVS_LANG.show+" "+i+" "+RVS_LANG.perpage,i+=t}RVS.C.ol_pagination.ddTP()}RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType].length<d?RVS.LIB.OBJ.container_Library.find("#ol_footer .rs_fh_right").hide():RVS.LIB.OBJ.container_Library.find("#ol_footer .rs_fh_right").show(),RVS.LIB.OBJ.selectedPage=e.keeppage&&0<jQuery(".page_button.ol_pagination.selected").length?jQuery(".page_button.ol_pagination.selected").data("page"):1;var l,n,d=RVS.LIB.OBJ.container_Pagination[0].value||4,c=0;if(RVS.LIB.OBJ.pageAmount="all"===d||null===parseInt(d,0)||0===parseInt(d,0)?1:Math.ceil(RVS.LIB.OBJ.filteredList.length/parseInt(d,0)),RVS.LIB.OBJ.itemPerPage="all"===d?99999:parseInt(d,0),RVS.LIB.OBJ.itemPerPage=-1!=RVS.LIB.OBJ.selectedFolder?RVS.LIB.OBJ.itemPerPage-1:RVS.LIB.OBJ.itemPerPage,RVS.LIB.OBJ.container_PaginationWrap[0].innerHTML="",RVS.LIB.OBJ.selectedPage=RVS.LIB.OBJ.selectedPage>RVS.LIB.OBJ.pageAmount?RVS.LIB.OBJ.pageAmount:RVS.LIB.OBJ.selectedPage,1<RVS.LIB.OBJ.pageAmount)for(o=1;o<=RVS.LIB.OBJ.pageAmount;o++)l=o!==RVS.LIB.OBJ.selectedPage?"":"selected",RVS.LIB.OBJ.container_PaginationWrap[0].innerHTML+='<div data-page="'+o+'" class="'+l+' page_button ol_pagination">'+o+"</div>",1===o?RVS.LIB.OBJ.container_PaginationWrap[0].innerHTML+='<div data-page="-9999" class="page_button ol_pagination">...</div>':o===RVS.LIB.OBJ.pageAmount-1&&(RVS.LIB.OBJ.container_PaginationWrap[0].innerHTML+='<div data-page="9999" class="page_button ol_pagination">...</div>');for(n in RVS.LIB.OBJ.pages=[],RVS.LIB.OBJ.pages.push([]),RVS.LIB.OBJ.filteredList)RVS.LIB.OBJ.filteredList.hasOwnProperty(n)&&(RVS.LIB.OBJ.pages[RVS.LIB.OBJ.pages.length-1].push(RVS.LIB.OBJ.filteredList[n]),++c===RVS.LIB.OBJ.itemPerPage)&&(c=0,RVS.LIB.OBJ.pages.push([]));g()},RVS.F.buildObjectLibrary=function(e){var t,i='<div id="objectlibrary" class="rs_overview _TPRB_">',i=(i=(i=(i=(i=(i=(i+='\t<div class="rb_the_logo">SR</div>')+'\t<div id="ol_filters_wrap">'+'\t\t<div id="ol_filters"></div>')+"\t</div>"+'\t<div id="upload_custom_files"></div>')+'\t<div id="ol_right">'+'\t\t<div id="ol_header" class="overview_header_footer">')+'\t\t\t\t<div class="rs_fh_left"><input class="flat_input" id="searchobjects" type="text" placeholder="Search Modules ..."></div>'+'\t\t\t\t<div class="rs_fh_right">')+(' \t\t\t\t\t<div id="obj_fil_favorite"><i class="material-icons">star</i>'+RVS_LANG.ol_favorite+"</div>"))+('\t\t\t\t\t<div id="ol_modulessorting"><i class="material-icons reset_select" id="reset_objsorting">replay</i><select id="sel_olibrary_sorting" data-evt="updateObjectLibraryOverview" data-evtparam="#reset_objsorting" class="overview_sortby tos2 nosearchbox callEvent" data-theme="autowidth" tabindex="-1" aria-hidden="true"><option value="datedesc">'+RVS_LANG.sortbycreation+'</option><option value="date">'+RVS_LANG.creationascending+'</option><option value="title">'+RVS_LANG.sortbytitle+'</option><option value="titledesc">'+RVS_LANG.titledescending+"</option></select></div>");for(t in e||(i+=' \t\t\t\t<div id="obj_updatefromserver"><i class="material-icons">update</i>'+RVS_LANG.updatefromserver+"</div>"),i=(i=(i=(i=(i=(i=(i=(i=(i=i+(' \t\t\t\t\t<div id="obj_addsliderasmodal">'+RVS_LANG.sliderasmodal+'<input id="obj_addsliderasmodal_input" data-r="modal" class="scblockinput" type="checkbox" value="off"></div>')+'\t\t\t\t\t<i id="ol_close" class="material-icons">close</i>')+"\t\t\t\t</div>"+'\t\t\t\t<div class="tp-clearfix"></div>')+"\t\t</div>"+'\t\t<div id="ol_results_wrap">')+' \t\t\t<div id="ol_right_underlay"></div>'+'\t\t\t<div id="ol_results"></div>')+"\t\t</div>"+'\t\t<div id="ol_footer" class="overview_header_footer">')+('\t\t\t<div class="rs_fh_left"><div id="rs_copyright">'+RVS_LANG.copyrightandlicenseinfo+'</div><div id="rs_extra_objlib_info"></div></div>')+'\t\t\t<div class="rs_fh_right"><div id="ol_pagination_wrap" class="ol-pagination"></div>')+'\t\t\t\t<select id="ol_pagination" data-evt="updateObjectLibraryOverview" class="overview_pagination tos2 nosearchbox callEvent" data-theme="nomargin"><option selected="selected" value="4"></option><option value="8"></option><option value="16"></option><option value="32"></option><option value="64"></option><option value="all">Show All</option></select>'+"\t\t\t</div>")+'\t\t\t<div class="tp-clearfix"></div>'+"\t\t</div>")+"\t</div>"+"</div>",RVS.LIB.OBJ.container_Library=jQuery(i),RVS.LIB.OBJ.container_Underlay=RVS.LIB.OBJ.container_Library.find("#ol_right_underlay"),RVS.LIB.OBJ.container_Right=RVS.LIB.OBJ.container_Library.find("#ol_right"),RVS.LIB.OBJ.container_Filters=RVS.LIB.OBJ.container_Library.find("#ol_filters"),RVS.LIB.OBJ.container_Output=RVS.LIB.OBJ.container_Library.find("#ol_results"),RVS.LIB.OBJ.container_OutputWrap=RVS.LIB.OBJ.container_Library.find("#ol_results_wrap"),RVS.LIB.OBJ.container_PaginationWrap=RVS.LIB.OBJ.container_Library.find("#ol_pagination_wrap"),RVS.LIB.OBJ.container_Pagination=RVS.LIB.OBJ.container_Library.find("#ol_pagination"),RVS.LIB.OBJ.container_Sorting=RVS.LIB.OBJ.container_Library.find("#ol_modulessorting"),RVS.LIB.OBJ.types)RVS.LIB.OBJ.types.hasOwnProperty(t)&&R({groupType:t,groupAlias:RVS_LANG["ol_"+t],icon:a[t],count:RVS.LIB.OBJ.types[t].count,tags:RVS.LIB.OBJ.types[t].tags,custom:RVS.LIB.OBJ.types[t].upload});jQuery(document.body).append(RVS.LIB.OBJ.container_Library),jQuery("#sel_olibrary_sorting").ddTP(),RVS.C.ol_pagination=null==RVS.C.ol_pagination?jQuery("#ol_pagination"):RVS.C.ol_pagination,RVS.C.ol_pagination.ddTP(),h()},RVS.F.buildLayerListToSelect=function(e){var t,i,a='<div class="layimpli_main_wrap">',r={root:""};for(i in e)e.hasOwnProperty(i)&&"zone"!==e[i].type&&(e[i]=jQuery.extend(!0,RVS.F.addLayerObj(e[i].type,void 0,!0),e[i]),void 0!==e[i].group)&&"row"!==e[i].type&&"group"!==e[i].type&&"column"!==e[i].type&&(-1==e[i].group.puid?r.root+=d(e[i],0):(r[e[i].group.puid]=null==r[e[i].group.puid]?"":r[e[i].group.puid],t="column"==e[e[i].group.puid].type?2:null==e[e[i].group.puid].group.puid||-1==e[e[i].group.puid].group.puid||"-1"==e[e[i].group.puid].group.puid?1:"group"==e[e[e[i].group.puid].group.puid].type?2:3,r[e[i].group.puid]+=d(e[i],t)));for(i in e)e.hasOwnProperty(i)&&"group"===e[i].type&&-1!=e[i].group.puid&&"-1"!=e[i].group.puid&&null!=e[i].group.puid&&"group"===e[i].type&&(r[e[i].group.puid]=null==r[e[i].group.puid]?"":r[e[i].group.puid],r[e[i].group.puid]+='<div class="layimpli_group_wrap">',t="group"==e[e[i].group.puid].type?1:"column"==e[e[i].group.puid].type?2:0,r[e[i].group.puid]+=d(e[i],t),r[e[i].group.puid]+='<div class="layimpli_group_inner">',void 0!==r[e[i].uid]&&(r[e[i].group.puid]+=r[e[i].uid]),r[e[i].group.puid]+="\t</div>",r[e[i].group.puid]+="</div>");for(i in e)e.hasOwnProperty(i)&&"column"===e[i].type&&(r[e[i].group.puid]=null==r[e[i].group.puid]?"":r[e[i].group.puid],r[e[i].group.puid]+='<div class="layimpli_group_wrap">',r[e[i].group.puid]+=d(e[i],1),r[e[i].group.puid]+='<div class="layimpli_group_inner">',void 0!==r[e[i].uid]&&(r[e[i].group.puid]+=r[e[i].uid]),r[e[i].group.puid]+="\t</div>",r[e[i].group.puid]+="</div>");for(i in e)!e.hasOwnProperty(i)||"row"!==e[i].type&&("group"!=e[i].type||-1!=e[i].group.puid&&"-1"!=e[i].group.puid&&null!=e[i].group.puid)||(a=(a+='<div class="layimpli_group_wrap">')+d(e[i],0)+'\t<div class="layimpli_group_inner">',void 0!==r[e[i].uid]&&(a+=r[e[i].uid]),a+="\t</div></div>");return a=a+r.root+"</div>"},RVS.F.layerImportList=function(){jQuery("#rb_modal_underlay").appendTo("body"),void 0!==RVS.LIB.OBJ.import&&void 0!==RVS.LIB.OBJ.import.basics||(jQuery('.rb-modal-wrapper[data-modal="rbm_layerimport"]').appendTo("body"),RVS.LIB.OBJ.import={container:jQuery("#rbm_layerimport_list"),basics:!0},RVS.DOC.on("click","#rbm_layerimport .rbm_close",function(){jQuery("#rb_modal_underlay").appendTo("#slider_settings"),RVS.F.RSDialog.close()}),RVS.DOC.on("click",".layimpli_element",function(){jQuery(this).toggleClass("selected");var e,t,i,a,r=this;if("column"===r.dataset.type||"row"===r.dataset.type||"group"===r.dataset.type){var o=r.parentNode.getElementsByClassName("layimpli_element");if(0<=r.className.indexOf("selected"))for(var s in o)o.hasOwnProperty(s)&&void 0!==o[s].className&&-1==o[s].className.indexOf("selected")&&(o[s].className+=" selected");else for(var l in o)o.hasOwnProperty(l)&&o[l].className&&(o[l].className=o[l].className.replace("selected",""))}for(t in-1!=r.dataset.puid&&0<=r.className.indexOf("selected")&&void 0!==(e=RVS.LIB.OBJ.items.moduleslides[RVS.LIB.OBJ.selectedSlideId].layers)[r.dataset.puid]&&"row"===e[r.dataset.puid].type&&(jQuery("#layi_"+r.dataset.puid).addClass("selected"),jQuery("#layi_"+e[r.dataset.puid].group.puid).addClass("selected")),RVS.LIB.OBJ.import.layers)if(void 0!==RVS.LIB.OBJ.import.layers[t].className){var n,d=RVS.LIB.OBJ.import.layers[t].dataset;if("row"==d.type&&0<=RVS.LIB.OBJ.import.layers[t].className.indexOf("selected"))for(n in o=RVS.LIB.OBJ.import.layers[t].parentNode.getElementsByClassName("layimpli_element layimpli_level_1"))o.hasOwnProperty(n)&&void 0!==o[n].className&&-1==o[n].className.indexOf("selected")&&(o[n].className+=" selected")}for(i in RVS.LIB.OBJ.import.toImport=[],RVS.LIB.OBJ.import.layers)RVS.LIB.OBJ.import.layers.hasOwnProperty(i)&&(a=RVS.LIB.OBJ.import.layers[i].dataset,void 0!==RVS.LIB.OBJ.import.layers[i])&&void 0!==RVS.LIB.OBJ.import.layers[i].className&&(0<=RVS.LIB.OBJ.import.layers[i].className.indexOf("selected")?(RVS.LIB.OBJ.import.toImport.push(a.uid),RVS.LIB.OBJ.import.layers[i].getElementsByClassName("layimpli_icon_checbox")[0].innerHTML="check_circle_outline"):RVS.LIB.OBJ.import.layers[i].getElementsByClassName("layimpli_icon_checbox")[0].innerHTML="radio_button_unchecked");jQuery("#layers_import_feedback").html(0<RVS.LIB.OBJ.import.toImport.length?RVS.LIB.OBJ.import.toImport.length+" "+RVS_LANG.nrlayersimporting:RVS_LANG.nothingselected)}),RVS.DOC.on("click","#layers_import_from_slides_button",function(){RVS.F.showWaitAMinute({fadeIn:100,text:RVS_LANG.importinglayers}),setTimeout(RVS.F.importSelectedLayers,200)})),RVS.LIB.OBJ.import.container[0].innerHTML=RVS.F.buildLayerListToSelect(RVS.LIB.OBJ.items.moduleslides[RVS.LIB.OBJ.selectedSlideId].layers),RVS.LIB.OBJ.import.container.RSScroll({suppressScrollX:!0}),RVS.LIB.OBJ.import.layers=RVS.LIB.OBJ.import.container[0].getElementsByClassName("layimpli_element"),RVS.F.RSDialog.create({modalid:"rbm_layerimport",bgopacity:.85})},RVS.F.resetAllFilters=function(){RVS.LIB.OBJ.selectedPage=1,jQuery("#sel_olibrary_sorting").val("datedesc").ddTP("change"),RVS.DOC.trigger("updateObjectLibraryOverview",{val:"datedesc",eventparam:"#reset_objsorting",ignoreRebuild:!0,ignoreCookie:!0})},RVS.F.closeObjectLibrary=function(){u(),RVS.LIB.OBJ.moduleInFocus=!1,tpGS.gsap.fromTo(RVS.LIB.OBJ.container_Library,.7,{autoAlpha:1,display:"block",scale:1},{scale:.8,autoAlpha:0,display:"none",ease:"power3.inOut"}),tpGS.gsap.fromTo("#ol_header, #ol_footer",.5,{autoAlpha:1},{autoAlpha:0,ease:"power3.inOut"}),RVS.LIB.OBJ.open=!1,RVS.DOC.trigger("objectlibrary_closed"),document.body.style.overflow=RVS.S.bodybeforeOpenLibrary},RVS.F.isItemExistsInOl=function(e,t){var i,a;for(a in RVS.LIB.OBJ.items[t])RVS.LIB.OBJ.items[t].hasOwnProperty(a)&&!0!==i&&(i=""+RVS.LIB.OBJ.items[t][a].id==""+e);return i},RVS.F.getSliderIndex=function(e){var t,i=-1;for(t in RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType])RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType].hasOwnProperty(t)&&RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType][t].id==e&&(i=t);return i},RVS.F.getModuleIndex=function(e,t){var i,a=-1;for(i in RVS.LIB.OBJ.items[t])RVS.LIB.OBJ.items[t].hasOwnProperty(i)&&RVS.LIB.OBJ.items[t][i].id==e&&(a=i);return a},RVS.F.updateCustomCategorySelectors=function(e){var t,i,a=RVS.LIB.OBJ.items[e];for(t in a)a.hasOwnProperty(t)&&void 0!==a[t].ref&&void 0!==(i=a[t].ref.find(".olibrary_custom_tagselector"))&&0<i.length&&(i[0].innerHTML=RVS.F.getCustomTagsOptions(e),void 0!==a[t].tags&&void 0!==a[t].tags[0]&&i.val(a[t].tags[0]),i.ddTP())},RVS.DOC.on("click",".filter_tag_name_edit",function(){return jQuery(this).closest(".ol_filter_listelement").addClass("inedit"),jQuery(this).siblings(".filter_tag_name_input").trigger("focus"),!1}),RVS.DOC.on("click",".filter_tag_name_delete",function(){var t=jQuery(this).closest(".ol_filter_listelement"),i=(t.find(".filter_tag_name_input"),t.find(".filter_tag_name"),t[0].dataset.filter),a=t[0].dataset.type;return RVS.F.RSDialog.create({bgopacity:.85,modalid:"rbm_decisionModal",icon:"delete",title:RVS_LANG.deletecustomcategory,maintext:RVS_LANG.areyousuretodelete+"?",subtext:RVS_LANG.thiswilldeletecustomcategory,do:{icon:"delete",text:RVS_LANG.yesdeleteit,callback:function(){RVS.F.ajaxRequest("delete_customlibrary_tags",{id:i,type:a},function(e){delete RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType].tags[i],t.remove(),RVS.F.updateCustomCategorySelectors(a)})}},cancel:{icon:"cancel",text:RVS_LANG.cancel},swapbuttons:!0}),jQuery("#rbm_decisionModal").closest("._TPRB_.rb-modal-wrapper").appendTo(jQuery(document.body)).css({zIndex:1e8}),!1}),RVS.DOC.on("keyup",".olibrary_content_title_input",function(e){13===(e.keyCode||e.which)&&jQuery(this).blur()}),RVS.DOC.on("click",".olibrary_edit_title, .olibrary_edit_title_main",function(){var e=jQuery(this).closest(".olibrary_item"),t=e.find(".olibrary_content_title"),i=e.find(".olibrary_content_title_input");e.hasClass("selected")||(e.addClass("selected"),i[t[0].style.opacity=0].style.display="block",i.trigger("focus"))}),RVS.DOC.on("blur",".olibrary_content_title_input",function(){var t=jQuery(this),e=t.closest(".olibrary_item"),i=t.siblings(".olibrary_content_title");e.removeClass("selected"),i[0].style.opacity=1,t[0].style.display="none",this.value!==i[0].innerHTML&&(b(i[0].dataset.id,i[0].dataset.librarytype).title=t.val(),RVS.F.ajaxRequest("edit_customlibrary_item",{id:i[0].dataset.id,name:t.val(),type:i[0].dataset.librarytype},function(e){i[0].innerHTML=t.val()}))}),RVS.DOC.on("uploadCustomObject",function(e,t){for(var i in t.items)!t.items.hasOwnProperty(i)||RVS.F.isItemExistsInOl(t.items[i].id,RVS.LIB.OBJ.selectedType)||(t.items[i].libraryType=RVS.LIB.OBJ.selectedType,void 0===t.items[i].tags&&(t.items[i].tags=[]),RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType].push(t.items[i]));var a=!1;for(i in t.tags)t.tags.hasOwnProperty(i)&&void 0===RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType].tags[i]&&(RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType].tags[i]=t.tags[i],a=!0);a&&o(RVS.LIB.OBJ.selectedType),RVS.F.updateFilteredList(),RVS.F.finalDrawOfElements()}),RVS.DOC.on("change",".olibrary_custom_tagselector",function(){var e=jQuery(this),t=e.closest(".olibrary_content_left");b(t[0].dataset.id,t[0].dataset.librarytype).tags=[e.val()],RVS.F.ajaxRequest("edit_customlibrary_item",{id:t[0].dataset.id,tags:e.val(),type:t[0].dataset.librarytype},function(e){RVS.F.updateFilteredList(),RVS.F.finalDrawOfElements()})}),RVS.DOC.on("click",".filter_tag_name_check",function(){window.ignoreCustomCategoryBlur=!0,t(jQuery(this).closest(".ol_filter_listelement"),!0)}),RVS.DOC.on("keyup",".filter_tag_name_input",function(e){13===(e.keyCode||e.which)&&t(jQuery(this).closest(".ol_filter_listelement"),!0)}),RVS.DOC.on("blur",".filter_tag_name_input",function(){var e=jQuery(this).closest(".ol_filter_listelement");setTimeout(function(){!0===window.ignoreCustomCategoryBlur?window.ignoreCustomCategoryBlur=!1:t(e,!1)},100)}),RVS.DOC.on("click",".add_ol_new_custom_category",function(){RVS.LIB.OBJ.lastSelectedType=RVS.LIB.OBJ.selectedType,RVS.LIB.OBJ.selectedType=this.dataset.type;return RVS.F.ajaxRequest("create_customlibrary_tags",{name:"New Category",type:this.dataset.type},function(e){RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType].tags[e.id]=e.name,o(RVS.LIB.OBJ.selectedType),RVS.F.updateCustomCategorySelectors(RVS.LIB.OBJ.selectedType),RVS.LIB.OBJ.selectedFilter=""+e.id,RVS.LIB.OBJ.selectedPage=1,RVS.LIB.OBJ.selectedPackage=-1,RVS.LIB.OBJ.selectedFolder=-1,RVS.F.loadLibrary({modules:[RVS.LIB.OBJ.selectedType],event:"reBuildObjectLibrary"}),jQuery(".ol_filter_listelement.selected").removeClass("selected");var e=jQuery('.ol_filter_listelement[data-type="'+RVS.LIB.OBJ.selectedType+'"][data-filter="'+RVS.LIB.OBJ.selectedFilter+'"]'),t=e.closest(".ol_filter_type");e.addClass("selected"),t.find(".ol_filter_headerelement").addClass("selected"),void 0!==RVS.F["checkLoadedItems_"+RVS.LIB.OBJ.selectedType]&&RVS.F["checkLoadedItems_"+RVS.LIB.OBJ.selectedType]()}),!1}),RVS.F.checkLoadedItems_svgcustom=function(){RVS.F.createLibraryDummyDownloadItem("svgcustom",RVS_LANG.uploadfirstitem),RVS.F.loadCustomLibraryItems("svgcustom",2.15)},RVS.F.newObjectLibraryItem_svgcustom=function(e,t){return e=e,t=t,i="svgcustom",RVS_LANG.customsvgfile,a="",r=t.find(".olibrary_media_wrap"),"svgcustom"===i&&void 0!==e.tags&&void 0!==e.tags[0]&&void 0!==RVS.LIB.OBJ.types.svgcustom&&void 0!==RVS.LIB.OBJ.types.svgcustom.tags&&void 0===RVS.LIB.OBJ.types.svgcustom.tags[e.tags[0]]&&(e.tags[0]="all"),a='<div class="olibrary_content_left" data-id="'+e.id+'" data-type="'+e.type+'" data-librarytype="'+e.libraryType+'">',"svgcustom"===i&&(a+='\t<div data-id="'+e.id+'" data-type="'+e.type+'" data-librarytype="'+e.libraryType+'" class="'+("svgcustom_99999"!==e.id?"olibrary_edit_title_main ":"")+'olibrary_content_title">'+e.title+'</div><input class="olibrary_content_title_input" value="'+e.title+'">'),"svgcustom_99999"===e.id?a+='\t<div class="olibrary_content_type oc_red">'+RVS_LANG.savecustomfile+"</div>":"svgcustom"===i&&(a+='\t<div class="olibrary_content_type oc_blue">'+RVS_LANG.customfile+'</div><div class="olibrary_custom_tagselector_wrap"><select class="olibrary_custom_tagselector tos2 nosearchbox">'+RVS.F.getCustomTagsOptions(e.libraryType)+"</select></div>"),a+="</div>",e.id!==i+"_99999"&&(a=(a+='<div class="olibrary_content_right">')+'\t<i data-id="'+e.id+'" data-type="'+e.type+'" data-librarytype="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i></div>'),"svgcustom_99999"===e.id?t.append('<div class="olibrary_media_overlay oneicon"><i data-librarytype="'+e.libraryType+'" data-event="runCustomObjectImport" data-id="'+e.id+'" data-handle="'+e.handle+'" data-elementtype="" class="material-icons ol_link_to_add">add</i></div>'):"svgcustom"===i?t.append('<div class="olibrary_media_overlay twoicon"><i data-librarytype="'+e.libraryType+'" data-id="'+e.id+'" data-handle="'+e.handle+'" data-elementtype="" class="material-icons ol_link_to_add">add</i><i data-librarytype="'+e.libraryType+'" data-id="'+e.id+'" data-handle="'+e.handle+'" data-elementtype="" class="material-icons ol_link_to_delete">delete</i></div>'):e.id!==i+"_99999"&&t.append('<div class="olibrary_media_overlay oneicon"><i data-librarytype="'+e.libraryType+'" data-id="'+e.id+'" data-handle="'+e.handle+'" data-elementtype="" class="material-icons ol_link_to_add">add</i></div>'),r[0].className+=" patternbg nosvgcoloring","svgcustom_99999"===e.id?(r[0].innerHTML='<div class="ol_svg_preview"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"></path></svg></div>',r[0].className+=" downloadlottieanim"):void 0!==e.img&&jQuery.get(e.img,function(e){var t=RVS.F.cE({cN:"ol_svg_preview"});t.innerHTML=(new XMLSerializer).serializeToString(e.documentElement),r[0].appendChild(t)}),{content:a};var i,a,r},RVS.F.customSVGUpload=function(e){jQuery("#filedrop").hide();var t=void 0===(t=RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType].tags[RVS.LIB.OBJ.selectedFilter])?"all":t;RVS.F.RSDialog.create({bgopacity:.85,modalid:"rbm_decisionModal",icon:"cloud_upload",title:RVS_LANG.svgcustomimport,maintext:e.files.length+" "+RVS_LANG.svgBIG+" "+RVS_LANG.arereadytoimport,subtext:RVS_LANG.addtocustomornew,quickclose:!0,do:{icon:"add",text:RVS_LANG.addto+" "+t,callback:function(){jQuery("#filedrop").show(),RVS.F.uploadFiles({customs:{type:RVS.LIB.OBJ.selectedType,id:RVS.LIB.OBJ.selectedFilter},form:RVS.fileDropForm,files:e.files,fileindex:0,report:"#fileprocessing_",successFinal:e.success,action:"upload_customlibrary_item"})}},cancel:{icon:"folder",text:RVS_LANG.createnewcategory,callback:function(){jQuery("#filedrop").show(),RVS.F.uploadFiles({customs:{type:RVS.LIB.OBJ.selectedType,tag:"New Category"},form:RVS.fileDropForm,files:e.files,fileindex:0,report:"#fileprocessing_",successFinal:e.success,action:"upload_customlibrary_item"})}},swapbuttons:!0}),jQuery("#rbm_decisionModal").closest("._TPRB_.rb-modal-wrapper").appendTo(jQuery("body")).css({zIndex:1e8})}}();