AlkantarClanX12

Your IP : 18.119.192.2


Current Path : /home/thanudqk/public_html/wp-content/plugins/revslider/admin/assets/js/plugins/
Upload File :
Current File : /home/thanudqk/public_html/wp-content/plugins/revslider/admin/assets/js/plugins/utils.min.js

/*!
 * REVOLUTION 6.0.0 UTILS - BUILDER BASIC JS
 * @version: 1.0 (01.07.2019)
 * @author ThemePunch
*/
window.RVS=void 0===window.RVS?{}:window.RVS,RVS.F=void 0===RVS.F?{}:RVS.F,RVS.ENV=void 0===RVS.ENV?{}:RVS.ENV,RVS.LIB=void 0===RVS.LIB?{}:RVS.LIB,RVS.V=void 0===RVS.V?{}:RVS.V,RVS.S=void 0===RVS.S?{}:RVS.S,RVS.C=void 0===RVS.C?{}:RVS.C,RVS.WIN=void 0===RVS.WIN?jQuery(window):RVS.WIN,RVS.DOC=void 0===RVS.DOC?jQuery(document):RVS.DOC,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(" "+e.className+" ").indexOf(" "+t+" ")>=0})},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(e,t){if(!e||"string"!=typeof e)return this.each(function(t){var i=jQuery(this);i.data("revsliderps")||i.data("revsliderps",new RSPerfectScrollbar(this,e||{}))});switch(e){case"update":return this.each(function(){var e=jQuery(this).data("revsliderps");e&&e.update()});case"scrollTop":return this.each(function(){this.scrollTop=t});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){let 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(let i in e.ds)e.ds.hasOwnProperty(i)&&(t.dataset[i]=e.ds[i]);return t},RVS.F.cE=function(e){let 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(let 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}
/*!
 * perfect-scrollbar v1.4.0
 * (c) 2018 Hyunje Jun
 * @license MIT
 * 
*/,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 e(e){return getComputedStyle(e)}function t(e,t){for(var i in t){var r=t[i];"number"==typeof r&&(r+="px"),e.style[i]=r}return e}function i(e){var t=document.createElement("div");return t.className=e,t}function r(e,t){if(!m)throw new Error("No element matching method supported");return m.call(e,t)}function a(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function o(e,t){return Array.prototype.filter.call(e.children,function(e){return r(e,t)})}function l(e,t){var i=e.element.classList,r=h.state.scrolling(t);i.contains(r)?clearTimeout(S[t]):i.add(r)}function s(e,t){S[t]=setTimeout(function(){return e.isAlive&&e.element.classList.remove(h.state.scrolling(t))},e.settings.scrollingThreshold)}function n(e,t){l(e,t),s(e,t)}function d(e){if("function"==typeof window.CustomEvent)return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function c(e){return parseInt(e,10)||0}function p(e){return r(e,"input,[contenteditable]")||r(e,"select,[contenteditable]")||r(e,"textarea,[contenteditable]")||r(e,"button,[contenteditable]")}function u(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function v(e,i){var r={width:i.railXWidth},a=Math.floor(e.scrollTop);i.isRtl?r.left=i.negativeScrollAdjustment+e.scrollLeft+i.containerWidth-i.contentWidth:r.left=e.scrollLeft,i.isScrollbarXUsingBottom?r.bottom=i.scrollbarXBottom-a:r.top=i.scrollbarXTop+a,t(i.scrollbarXRail,r);var o={top:a,height:i.railYHeight};i.isScrollbarYUsingRight?i.isRtl?o.right=i.contentWidth-(i.negativeScrollAdjustment+e.scrollLeft)-i.scrollbarYRight-i.scrollbarYOuterWidth:o.right=i.scrollbarYRight-e.scrollLeft:i.isRtl?o.left=i.negativeScrollAdjustment+e.scrollLeft+2*i.containerWidth-i.contentWidth-i.scrollbarYLeft-i.scrollbarYOuterWidth:o.left=i.scrollbarYLeft+e.scrollLeft,t(i.scrollbarYRail,o),t(i.scrollbarX,{left:i.scrollbarXLeft,width:i.scrollbarXWidth-i.railBorderXWidth}),t(i.scrollbarY,{top:i.scrollbarYTop,height:i.scrollbarYHeight-i.railBorderYWidth})}function g(e,t){function i(t){m[u]=S+b*(t[n]-f),l(e,v),V(e),t.stopPropagation(),t.preventDefault()}function r(){s(e,v),e[g].classList.remove(h.state.clicking),e.event.unbind(e.ownerDocument,"mousemove",i)}var a=t[0],o=t[1],n=t[2],d=t[3],c=t[4],p=t[5],u=t[6],v=t[7],g=t[8],m=e.element,S=null,f=null,b=null;e.event.bind(e[c],"mousedown",function(t){S=m[u],f=t[n],b=(e[o]-e[a])/(e[d]-e[p]),e.event.bind(e.ownerDocument,"mousemove",i),e.event.once(e.ownerDocument,"mouseup",r),e[g].classList.add(h.state.clicking),t.stopPropagation(),t.preventDefault()})}var m="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector),h={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}}},S={x:null,y:null},f=function(e){this.element=e,this.handlers={}},b={isEmpty:{configurable:!0}};f.prototype.bind=function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},f.prototype.unbind=function(e,t){var i=this;this.handlers[e]=this.handlers[e].filter(function(r){return!(!t||r===t)||(i.element.removeEventListener(e,r,!1),!1)})},f.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},b.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every(function(t){return 0===e.handlers[t].length})},Object.defineProperties(f.prototype,b);var R=function(){this.eventElements=[]};R.prototype.eventElement=function(e){var t=this.eventElements.filter(function(t){return t.element===e})[0];return t||(t=new f(e),this.eventElements.push(t)),t},R.prototype.bind=function(e,t,i){this.eventElement(e).bind(t,i)},R.prototype.unbind=function(e,t,i){var r=this.eventElement(e);r.unbind(t,i),r.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(r),1)},R.prototype.unbindAll=function(){this.eventElements.forEach(function(e){return e.unbindAll()}),this.eventElements=[]},R.prototype.once=function(e,t,i){var r=this.eventElement(e),a=function(e){r.unbind(t,a),i(e)};r.bind(t,a)};var y=function(e,t,i,r,a){var o;if(void 0===r&&(r=!0),void 0===a&&(a=!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"]}!function(e,t,i,r,a){var o=i[0],l=i[1],s=i[2],c=i[3],p=i[4],u=i[5];void 0===r&&(r=!0),void 0===a&&(a=!1);var v=e.element;e.reach[c]=null,v[s]<1&&(e.reach[c]="start"),v[s]>e[o]-e[l]-1&&(e.reach[c]="end"),t&&(v.dispatchEvent(d("ps-scroll-"+c)),t<0?v.dispatchEvent(d("ps-scroll-"+p)):t>0&&v.dispatchEvent(d("ps-scroll-"+u)),r&&n(e,c)),e.reach[c]&&(t||a)&&v.dispatchEvent(d("ps-"+c+"-reach-"+e.reach[c]))}(e,i,o,r,a)},_={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=function(e){var t=e.element,i=Math.floor(t.scrollTop);e.containerWidth=t.clientWidth,e.containerHeight=t.clientHeight,e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(o(t,h.element.rail("x")).forEach(function(e){return a(e)}),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(o(t,h.element.rail("y")).forEach(function(e){return a(e)}),t.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=u(e,c(e.railXWidth*e.containerWidth/e.contentWidth)),e.scrollbarXLeft=c((e.negativeScrollAdjustment+t.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=u(e,c(e.railYHeight*e.containerHeight/e.contentHeight)),e.scrollbarYTop=c(i*(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),v(t,e),e.scrollbarXActive?t.classList.add(h.state.active("x")):(t.classList.remove(h.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=0),e.scrollbarYActive?t.classList.add(h.state.active("y")):(t.classList.remove(h.state.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)},O={"click-rail":function(e){e.event.bind(e.scrollbarY,"mousedown",function(e){return e.stopPropagation()}),e.event.bind(e.scrollbarYRail,"mousedown",function(t){var i=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top>e.scrollbarYTop?1:-1;e.element.scrollTop+=i*e.containerHeight,V(e),t.stopPropagation()}),e.event.bind(e.scrollbarX,"mousedown",function(e){return e.stopPropagation()}),e.event.bind(e.scrollbarXRail,"mousedown",function(t){var i=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=i*e.containerWidth,V(e),t.stopPropagation()})},"drag-thumb":function(e){g(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),g(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(e){var t=e.element,i=function(){return r(t,":hover")},a=function(){return r(e.scrollbarX,":focus")||r(e.scrollbarY,":focus")};e.event.bind(e.ownerDocument,"keydown",function(r){if(!(r.isDefaultPrevented&&r.isDefaultPrevented()||r.defaultPrevented)&&(i()||a())){var o=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(o){if("IFRAME"===o.tagName)o=o.contentDocument.activeElement;else for(;o.shadowRoot;)o=o.shadowRoot.activeElement;if(p(o))return}var l=0,s=0;switch(r.which){case 37:l=r.metaKey?-e.contentWidth:r.altKey?-e.containerWidth:-30;break;case 38:s=r.metaKey?e.contentHeight:r.altKey?e.containerHeight:30;break;case 39:l=r.metaKey?e.contentWidth:r.altKey?e.containerWidth:30;break;case 40:s=r.metaKey?-e.contentHeight:r.altKey?-e.containerHeight:-30;break;case 32:s=r.shiftKey?e.containerHeight:-e.containerHeight;break;case 33:s=e.containerHeight;break;case 34:s=-e.containerHeight;break;case 36:s=e.contentHeight;break;case 35:s=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&0!==l||e.settings.suppressScrollY&&0!==s||(t.scrollTop-=s,t.scrollLeft+=l,V(e),function(i,r){var a=Math.floor(t.scrollTop);if(0===i){if(!e.scrollbarYActive)return!1;if(0===a&&r>0||a>=e.contentHeight-e.containerHeight&&r<0)return!e.settings.wheelPropagation}var o=t.scrollLeft;if(0===r){if(!e.scrollbarXActive)return!1;if(0===o&&i<0||o>=e.contentWidth-e.containerWidth&&i>0)return!e.settings.wheelPropagation}return!0}(l,s)&&r.preventDefault())}})},wheel:function(t){function i(t,i,r){if(!_.isWebKit&&a.querySelector("select:focus"))return!0;if(!a.contains(t))return!1;for(var o=t;o&&o!==a;){if(o.classList.contains(h.element.consuming))return!0;var l=e(o);if([l.overflow,l.overflowX,l.overflowY].join("").match(/(scroll|auto)/)){var s=o.scrollHeight-o.clientHeight;if(s>0&&!(0===o.scrollTop&&r>0||o.scrollTop===s&&r<0))return!0;var n=o.scrollWidth-o.clientWidth;if(n>0&&!(0===o.scrollLeft&&i<0||o.scrollLeft===n&&i>0))return!0}o=o.parentNode}return!1}function r(e){var r=function(e){var t=e.deltaX,i=-1*e.deltaY;return void 0!==t&&void 0!==i||(t=-1*e.wheelDeltaX/6,i=e.wheelDeltaY/6),e.deltaMode&&1===e.deltaMode&&(t*=10,i*=10),t!=t&&i!=i&&(t=0,i=e.wheelDelta),e.shiftKey?[-i,-t]:[t,i]}(e),o=r[0],l=r[1];if(!i(e.target,o,l)){var s=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(l?a.scrollTop-=l*t.settings.wheelSpeed:a.scrollTop+=o*t.settings.wheelSpeed,s=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(o?a.scrollLeft+=o*t.settings.wheelSpeed:a.scrollLeft-=l*t.settings.wheelSpeed,s=!0):(a.scrollTop-=l*t.settings.wheelSpeed,a.scrollLeft+=o*t.settings.wheelSpeed),V(t),(s=s||function(e,i){var r=Math.floor(a.scrollTop),o=0===a.scrollTop,l=r+a.offsetHeight===a.scrollHeight,s=0===a.scrollLeft,n=a.scrollLeft+a.offsetWidth===a.scrollWidth;return!(Math.abs(i)>Math.abs(e)?o||l:s||n)||!t.settings.wheelPropagation}(o,l))&&!e.ctrlKey&&(e.stopPropagation(),e.preventDefault())}}var a=t.element;void 0!==window.onwheel?t.event.bind(a,"wheel",r):void 0!==window.onmousewheel&&t.event.bind(a,"mousewheel",r)},touch:function(t){function i(e,i){var r=Math.floor(c.scrollTop),a=c.scrollLeft,o=Math.abs(e),l=Math.abs(i);if(l>o){if(i<0&&r===t.contentHeight-t.containerHeight||i>0&&0===r)return 0===window.scrollY&&i>0&&_.isChrome}else if(o>l&&(e<0&&a===t.contentWidth-t.containerWidth||e>0&&0===a))return!0;return!0}function r(e,i){c.scrollTop-=i,c.scrollLeft-=e,V(t)}function a(e){return e.targetTouches?e.targetTouches[0]:e}function o(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 l(e){if(o(e)){var t=a(e);p.pageX=t.pageX,p.pageY=t.pageY,u=(new Date).getTime(),null!==g&&clearInterval(g)}}function s(t,i,r){if(!c.contains(t))return!1;for(var a=t;a&&a!==c;){if(a.classList.contains(h.element.consuming))return!0;var o=e(a);if([o.overflow,o.overflowX,o.overflowY].join("").match(/(scroll|auto)/)){var l=a.scrollHeight-a.clientHeight;if(l>0&&!(0===a.scrollTop&&r>0||a.scrollTop===l&&r<0))return!0;var s=a.scrollLeft-a.clientWidth;if(s>0&&!(0===a.scrollLeft&&i<0||a.scrollLeft===s&&i>0))return!0}a=a.parentNode}return!1}function n(e){if(o(e)){var t=a(e),l={pageX:t.pageX,pageY:t.pageY},n=l.pageX-p.pageX,d=l.pageY-p.pageY;if(s(e.target,n,d))return;r(n,d),p=l;var c=(new Date).getTime(),g=c-u;g>0&&(v.x=n/g,v.y=d/g,u=c),i(n,d)&&e.preventDefault()}}function d(){t.settings.swipeEasing&&(clearInterval(g),g=setInterval(function(){t.isInitialized?clearInterval(g):v.x||v.y?Math.abs(v.x)<.01&&Math.abs(v.y)<.01?clearInterval(g):(r(30*v.x,30*v.y),v.x*=.8,v.y*=.8):clearInterval(g)},10))}if(_.supportsTouch||_.supportsIePointer){var c=t.element,p={},u=0,v={},g=null;_.supportsTouch?(t.event.bind(c,"touchstart",l),t.event.bind(c,"touchmove",n),t.event.bind(c,"touchend",d)):_.supportsIePointer&&(window.PointerEvent?(t.event.bind(c,"pointerdown",l),t.event.bind(c,"pointermove",n),t.event.bind(c,"pointerup",d)):window.MSPointerEvent&&(t.event.bind(c,"MSPointerDown",l),t.event.bind(c,"MSPointerMove",n),t.event.bind(c,"MSPointerUp",d)))}}},B=function(r,a){var o=this;if(void 0===a&&(a={}),"string"==typeof r&&(r=document.querySelector(r)),!r||!r.nodeName)throw new Error("no element is specified to initialize RSPerfectScrollbar");for(var l in this.element=r,r.classList.add(h.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},a)o.settings[l]=a[l];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var s=function(){return r.classList.add(h.state.focus)},n=function(){return r.classList.remove(h.state.focus)};this.isRtl="rtl"===e(r).direction,this.isNegativeScroll=function(){var e,t=r.scrollLeft;return r.scrollLeft=-1,e=r.scrollLeft<0,r.scrollLeft=t,e}(),this.negativeScrollAdjustment=this.isNegativeScroll?r.scrollWidth-r.clientWidth:0,this.event=new R,this.ownerDocument=r.ownerDocument||document,this.scrollbarXRail=i(h.element.rail("x")),r.appendChild(this.scrollbarXRail),this.scrollbarX=i(h.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",s),this.event.bind(this.scrollbarX,"blur",n),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var d=e(this.scrollbarXRail);this.scrollbarXBottom=parseInt(d.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=c(d.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=c(d.borderLeftWidth)+c(d.borderRightWidth),t(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=c(d.marginLeft)+c(d.marginRight),t(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=i(h.element.rail("y")),r.appendChild(this.scrollbarYRail),this.scrollbarY=i(h.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",s),this.event.bind(this.scrollbarY,"blur",n),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var p=e(this.scrollbarYRail);this.scrollbarYRight=parseInt(p.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=c(p.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var i=e(t);return c(i.width)+c(i.paddingLeft)+c(i.paddingRight)+c(i.borderLeftWidth)+c(i.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=c(p.borderTopWidth)+c(p.borderBottomWidth),t(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=c(p.marginTop)+c(p.marginBottom),t(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:r.scrollLeft<=0?"start":r.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:r.scrollTop<=0?"start":r.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(e){return O[e](o)}),this.lastScrollTop=Math.floor(r.scrollTop),this.lastScrollLeft=r.scrollLeft,this.event.bind(this.element,"scroll",function(e){return o.onScroll(e)}),V(this)};return B.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,t(this.scrollbarXRail,{display:"block"}),t(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=c(e(this.scrollbarXRail).marginLeft)+c(e(this.scrollbarXRail).marginRight),this.railYMarginHeight=c(e(this.scrollbarYRail).marginTop)+c(e(this.scrollbarYRail).marginBottom),t(this.scrollbarXRail,{display:"none"}),t(this.scrollbarYRail,{display:"none"}),V(this),y(this,"top",0,!1,!0),y(this,"left",0,!1,!0),t(this.scrollbarXRail,{display:""}),t(this.scrollbarYRail,{display:""}))},B.prototype.onScroll=function(e){this.isAlive&&(V(this),y(this,"top",this.element.scrollTop-this.lastScrollTop),y(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},B.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),a(this.scrollbarX),a(this.scrollbarY),a(this.scrollbarXRail),a(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},B.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(e){return!e.match(/^ps([-_].+|)$/)}).join(" ")},B}),function(){var e,t=null,i=null,r=null,a=null;function o(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=e.split(" ");for(var i in t)t[i]=t[i].substr(0,1).toUpperCase()+t[i].substr(1);return t.join(" ")},RVS.F.debug=function(e){console.log(e)},RVS.F.compareVersion=function(e,t){if("string"!=typeof e)return!1;if("string"!=typeof t)return!1;e=e.split("."),t=t.split(".");const i=Math.min(e.length,t.length);for(let r=0;r<i;++r){if(e[r]=parseInt(e[r],10),t[r]=parseInt(t[r],10),e[r]>t[r])return 1;if(e[r]<t[r])return-1}return e.length==t.length?0:e.length<t.length?-1:1},RVS.DOC.on("click","#rbmas_activateplugin",function(){var e=jQuery("#rbmas_purchasekey").val();RVS.F.ajaxRequest("activate_plugin",{code:e},function(t){t.success&&(RVS.ENV.activated=!0,RVS.ENV.code=e,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(){if(RVS.F.dontShowTracking)return;if("enabled"==RVS.ENV.tracking)return;let 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=o(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=o(.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 l,s,n,d,c,p=function(e,t,i){null==i&&(i=!1);var r=wp.media({title:e,multiple:i,library:{},button:{text:"Insert"}});r.on("select",function(){var e=r.state().get("selection").first().toJSON(),a=r.state().get("selection"),o=[];1==i?(a.map(function(e){var t=e.toJSON(),i={};i.url=t.url,i.id=t.id,i.width=t.width,i.height=t.height,o.push(i)}),t(o)):t(e.url,e.id,e.width,e.height)}),r.open()},u=function(e,t,i){null==i&&(i=!1);var r=wp.media({title:e,multiple:i,library:{type:"image"},button:{text:"Insert"}});r.on("select",function(){var e=r.state().get("selection").first().toJSON(),a=r.state().get("selection"),o=[];1==i?(a.map(function(e){var t=e.toJSON(),i={url:t.url,id:t.id,width:t.width,height:t.height};o.push(i)}),t(o)):t(e.url,e.id,e.width,e.height)}),r.open()},v=function(e,t){var i="type=image&post_id=0&TB_iframe=true";i=encodeURI(i),tb_show(e,"media-upload.php?"+i),window.send_to_editor=function(e){tb_remove();var i=jQuery(e).attr("src");i&&null!=i&&""!=i||(i=jQuery("img",e).attr("src")),t(i,"")}};RVS.F.setCookie=function(e,t,i){var r=new Date;r.setTime(r.getTime()+24*i*60*60*1e3);var a="expires="+r.toUTCString();document.cookie=e+"="+t+";"+a+";path=/"},RVS.F.getCookie=function(e){for(var t=e+"=",i=document.cookie.split(";"),r=0;r<i.length;r++){for(var a=i[r];" "==a.charAt(0);)a=a.substring(1);if(0==a.indexOf(t))return decodeURIComponent(a.substring(t.length,a.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&&(l=s),s=t,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){e>0?(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(){if(s){var 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)),!l&&c&&(tpGS.gsap.killTweensOf(c),c.hide().css("opacity",0)),c.css("z-index",999995),s=l,l=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(),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=e.inp.split(",");for(var i in e.when="true"===e.when||"false"!==e.when&&e.when,e.whennot="true"===e.whennot||"false"!==e.whennot&&e.whennot,t)if(t.hasOwnProperty(i)){var r=jQuery(t[i].replace("*val*",e.dep));void 0!==e.val&&null!=r&&r.length>0&&(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"===r[0].type?r.checked="false"!==e.val&&!1!==e.val:r.val(e.val))),r.trigger("change")}}},RVS.F.setUnsetHelp=function(e,t,i,r){if(null!=e){var a="";i=void 0===i?"showhide_hidden":i,RVS.S.setUnsetClasses[i]=RVS.S.setUnsetClasses[i]||[];for(var o=0;o<e.length;o++)a+=e[o]+",";RVS.S.setUnsetClasses[i].push({query:a,type:t}),void 0!==r&&RVS.S.setShowHide.push({query:a,type:r}),RVS.S.setUnserRafCalled||RVS.F.setUnsetRAF()}},RVS.F.setUnsetRAF=function(){RVS.S.setUnserRafCalled=!0,requestAnimationFrame(function(){var e,t,i,r,a;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!==(a=RVS.S.setUnsetClasses[e][t].query.slice(0,-1))&&""!==a&&" "!==a&&","!==a)for(r=document.querySelectorAll(","==a[a.length-1]?a.slice(0,-1):a),i=0;i<r.length;i++)r[i].classList[RVS.S.setUnsetClasses[e][t].type](e);for(RVS.S.setUnsetClasses={},t=0;t<RVS.S.setShowHide.length;t++)if(""!=(a=RVS.S.setShowHide[t].query.slice(0,-1))&&void 0!==a&&" "!==a&&","!==a)for(r=document.querySelectorAll(","==a[a.length-1]?a.slice(0,-1):a),i=0;i<r.length;i++)jQuery(r[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,r="true"===e.depend||"false"!==e.depend&&e.depend;"string"==typeof r&&r.indexOf("!!")>=0?(r=r.replace("!!",""),e.value!==r?(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===r?(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="",r=e.el.type,a=e.el.dataset;switch(r){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!==a.multiplaceholder?a.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"===r)e.el.value=t,jQuery(e.el).ddTP("change");else if("select-multiple"===r){Array.isArray(t)||(t=t.split(","));for(var l=0;l<e.el.options.length;l++)e.el.options[l].selected=t.indexOf(e.el.options[l].value)>=0;jQuery(e.el).ddTP("change")}else"checkbox"===r?e.el.checked=void 0===t?void 0:"false"!==t&&!1!==t:(e.el.value=t,e.el.history=e.el.value);void 0===a.unselect&&void 0===a.select||RVS.F.setUnsetSelected({unselect:a.unselect,select:a.select,val:e.el.value,rval:a.rval,prval:a.prval,prvalif:a.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"===r&&e.el.className.indexOf("my-color-field")>=0&&jQuery(e.el).rsColorPicker("refresh");break;case"radio":if(e.multiselection)for(var o in RVS.selLayers)RVS.selLayers.hasOwnProperty(o)&&(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===a.unselect&&void 0===a.select||e.el.checked.checked&&RVS.F.setUnsetSelected({unselect:a.unselect,select:a.select,val:e.el.checked,rval:a.rval,prval:a.prval,prvalif:a.prvalif})}},RVS.F.updateEasyInputs=function(e){e.path=void 0===e.path?"settings.":e.path,jQuery(e.container).find(".easyinit").each(function(t){RVS.F.updateEasyInput({el:this,path:e.path,multiselection:e.multiselection,root:e.root}),("init"===e.trigger||e.visualUpdate)&&("init"===e.trigger&&this.dispatchEvent(new Event("init",{bubbles:!0})),"checkbox"===this.type&&RVS.F.turnOnOffVisUpdate({input:this}))})},RVS.F.getDeepValue=function(e,t){if("string"==typeof t&&(t=t.split(".")),t.length>1){var i=t.shift();return e.hasOwnProperty(i)?RVS.F.getDeepValue(e[i],t):void 0}return e.hasOwnProperty(t[0])?e[t[0]]:void 0},RVS.F.writeDeepPath=function(e,t,i){if("string"==typeof t){var r=t.split("."),a=r.length,o=a-1,l=e;if(a)for(var s=0;s<a;s++)s<o?l=l[r[s]]:l[r[s]]=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||e.path.indexOf("#targetlayer#")>=0&&(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.screen: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=RVS.F.isNumeric(e.val),i=t?e.val:e.val.replace(/[^0-9\.\-]+/g,""),r=t?"":e.val.replace(/[0-9\.\-]+/g,""),a=void 0!==e.history?e.history.replace(/\d+/,""):"px",o=void 0!==e.allowed?e.allowed.toLowerCase().split(","):["px"],l="";if(i=""===i?"wrong":i,r=r.toLowerCase(),jQuery.inArray("random",o)>=0&&"{"===r[0]&&"}"===r[r.length-1]||jQuery.inArray("cycle",o)>=0&&"["===r[0]&&"]"===r[r.length-1]||jQuery.inArray("dir",o)>=0&&"("===(""+e.val)[0]&&")"===(""+e.val)[(""+e.val).length-1])return e.val=e.val.replace(/[^[\d||%||(||)||\-||{||}||.||,||\[||\]]+/g,""),e.val;if(jQuery.inArray("#/#",o)>=0&&"#"===r[0]&&"#"===r[r.length-1]&&"/"===e.val[2])return e.val;for(var s in o)o.hasOwnProperty(s)&&(r!=o[s]&&r!="-"+o[s]||(l=o[s]));return"wrong"===i&&""===l&&e.val.length>0?"badvalue":(i="wrong"===i?0:i,"%"===l||"px"===l||"ms"===l||"deg"===l||"chars"===l||"words"===l||"char"===l||"-%"===l||"-px"===l||"-ms"===l||"-deg"===l||"x"===l||"x"===l?RVS.F.minMaxCheck({v:i,min:e.min,max:e.max})+l:""!==l?l.toLowerCase():e.val.length<=1||e.val==i?jQuery.inArray("none",o)>=0&&0===i?"none":(a=jQuery.inArray(a,o)>=0&&("px"===a||"%"===a||"ms"===a||"deg"===a||"char"===a||"chars"===a||"words"===a||"x"===l||"x"===l)?a:jQuery.inArray("px",o)>=0?"px":jQuery.inArray("ms",o)>=0?"ms":jQuery.inArray("%",o)>=0?"%":jQuery.inArray("deg",o)>=0?"deg":jQuery.inArray("chars",o)>=0?"chars":jQuery.inArray("words",o)>=0?"words":jQuery.inArray("x",o)>=0?"x":"",RVS.F.minMaxCheck({v:i,min:e.min,max:e.max})+a):"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,r="checkbox"===t.type?this.checked:this.value;if(i.numeric){if("badvalue"===(r=RVS.F.checkNumInput({val:r,allowed:i.allowed,history:i.history,min:i.min,max:i.max})))return void t.classList.add("badvalue");t.classList.remove("badvalue"),t.value=r,i.history=t.value}if("true"===i.sanitize&&(r=RVS.F.sanitize_input(r)),void 0!==t.type&&t.type.indexOf("select")>=0&&(void 0===i.select2rsId&&(" "+t.className).indexOf(" tos2")>=0&&(t.className.indexOf("wpml_lang_selector")>=0&&jQuery(t).ddTP({placeholder:"Select From List",pre:'<span><img src="#data#" class="wpml-img-flag" />',preData:"src"}),jQuery(t).ddTP({placeholder:(" "+t.className).indexOf(" searchbox")>=0?"Enter or Select":"Select From List"})),"select-multiple"===t.type))for(var a in r=[],t.selectedOptions)t.selectedOptions.hasOwnProperty(a)&&r.push(t.selectedOptions[a].value);switch(void 0===i.showhide&&void 0===i.show&&void 0===i.hide||"radio"===t.type&&!t.checked||RVS.F.triggerShowHideDep(t,r),void 0===i.unselect&&void 0===i.select||"radio"===t.type&&!t.checked||RVS.F.setUnsetSelected({unselect:i.unselect,select:i.select,val:r,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:r,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:r}),void 0===i.available&&void 0===i.unavailable||("radio"!==t.type||t.checked)&&RVS.F.setUnAvailable({unavailable:i.unavailable,available:i.available,val:r}),void 0!==i.change&&(void 0!==i.changewhen&&(r===i.changewhen||!0===r&&"true"===i.changewhen||!1===r&&"false"===i.changewhen)&&RVS.F.setInputTo({field:i.change,val:i.changeto,path:i.path}),void 0!==i.changewhennot&&r!==i.changewhennot&&(!1!==r&&"false"!==r||i.changewhennot+""!="false")&&(!0!==r&&"true"!==r||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=r),e.type){case"change":if(void 0!==i.r){if(void 0!==i.valcheck&&RVS.F.hasOwnProperty(i.valcheck)&&"function"==typeof RVS.F[i.valcheck]){r=RVS.F[i.valcheck](r);i.numeric&&(r=RVS.F.checkNumInput({val:r,allowed:i.allowed,history:i.history,min:i.min,max:i.max})),this.value=r,i.history=r}(" "+this.className).indexOf(" scblockinput")>=0&&RVS.F.writeDeepPath(RVS.SC.BLOCK,i.r,r),(" "+this.className).indexOf(" slideinput")>=0&&RVS.F.updateSliderObj({path:RVS.S.slideId+".slide."+i.r,val:r,evt:i.evt,evtparam:i.evtparam}),(" "+this.className).indexOf(" navstyleinput")>=0&&(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:r,evt:i.evt,evtparam:i.evtparam})),(" "+this.className).indexOf(" globalinput")>=0&&RVS.F.updateSliderObj({path:i.r,val:r,evt:i.evt,evtparam:i.evtparam}),(" "+this.className).indexOf(" sliderinput")>=0&&RVS.F.updateSliderObj({path:"settings."+i.r,val:r,evt:i.evt,evtparam:i.evtparam}),(" "+this.className).indexOf(" layerinput")>=0&&"true"!==i.updateviaevt&&1!=i.updateviaevt&&RVS.F.updateLayerObj({path:i.r,val:r,evt:i.evt,evtparam:i.evtparam}),(" "+this.className).indexOf(" actioninput")>=0&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.selLayers[0]+"."+i.r,val:r,evt:i.evt,evtparam:i.evtparam}),(" "+this.className).indexOf(" targetlayeractioninput")>=0&&(void 0!==RVS.S.actionTrgtLayerId&&(""+RVS.S.actionTrgtLayerId).indexOf("static-")>=0?RVS.F.updateSliderObj({path:RVS.SLIDER.staticSlideId+".layers."+(""+RVS.S.actionTrgtLayerId).replace("static-","")+"."+i.r,val:r,evt:i.evt,evtparam:i.evtparam}):RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+RVS.S.actionTrgtLayerId+"."+i.r,val:r,evt:i.evt,evtparam:i.evtparam})),(" "+this.className).indexOf(" indeplayerinput")>=0&&RVS.F.updateSliderObj({path:RVS.S.slideId+".layers."+i.r,val:r,evt:i.evt,evtparam:i.evtparam}),(" "+this.className).indexOf(" presetToCustom")>=0&&(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:r,val:this.dataset.triggerinpval,when:this.dataset.triggerwhen,whennot:this.dataset.triggerwhennot})}(" "+this.className).indexOf(" callEvent")>=0&&jQuery(document.body).trigger(i.evt,{event:e,val:r,eventparam:i.evtparam});break;case"focusin":void 0!==i.focusevt&&RVS.DOC.trigger(i.focusevt,{event:e,val:r,eventparam:i.focusevtparam}),void 0!==i.responsive&&(RVS.S.respInfoBar.visible=!0,RVS.F.showFieldResponsiveValues(this)),"true"==i.cursortoclick?window.setTimeout(function(){!function(e){if("number"==typeof e.selectionStart)e.selectionStart=e.selectionEnd=e.value.length;else if(void 0!==e.createTextRange){e.focus();var t=e.createTextRange();t.collapse(!1),t.select()}}(this)},1):jQuery(this).trigger("select")}}),RVS.F.showInfo=function(e){if(!("register"==e.type&&jQuery("#rbm_activate_slider").length>0)){var 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>");var i=jQuery("#eg-toolbox-wrapper").find(".eg-toolbox.newadded");i.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").on("click",function(){tpGS.gsap.to(i,.3,{x:200,ease:"power3.inOut",autoAlpha:0,onComplete:function(){i.remove()}})}):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");if(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&&t.length>0&&(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&&t.length>0&&tpGS.gsap.to(t,e.fadeOut/1e3,{autoAlpha:0,ease:"power3.inOut",onComplete:function(){tpGS.gsap.set(t,{display:"block"})}})),null!=e.text)switch(e.text){case"progress1":break;default:t.html('<div class="waitaminute-message">'+e.text+"</div>")}else t.html('<div class="waitaminute-message">'+RVS_LANG.please_wait_a_moment+"</div>");return!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(t){var i=t.querySelectorAll("input[type='checkbox']");for(var r in i)if(i.hasOwnProperty(r)&&-1==i[r].className.indexOf("simplechkbx")&&-1==i[r].className.indexOf("tponoff")){i[r].className+=" tponoff";var a=RVS.F.cE({cN:"tponoffwrap"}),o=RVS.F.cE({cN:"tponoff_inner"}),l=RVS.F.cE({cN:"tponoff_on"}),s=RVS.F.cE({cN:"tponoff_off"});l.textContent="On",s.textContent="Off",o.appendChild(s),o.appendChild(l),a.appendChild(o),a=i[r].parentNode.insertBefore(a,i[r]),l.appendChild(i[r])}void 0===e&&(e=!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,t="";void 0!==(e=RVS.SC.parseShortCode(this.value))&&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(e,t,i,r,a,o,l){var s={action:RVS.ENV.plugin_dir+"_ajax_action",client_action:e,nonce:RVS.ENV.nonce,data:t};f(),g(),h(),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:s,success:function(t){if(void 0!==r||t.is_redirect||RVS.F.showWaitAMinute({fadeOut:500}),m(),!t)return RVS.F.showErrorMessage("Empty ajax response!"),!1;if(-1==t)return RVS.F.showErrorMessage("ajax error!!!"),!1;if(0==t)return RVS.F.showErrorMessage("ajax error, action: <b>"+e+"</b> not found"),!1;if(null==t.success)return RVS.F.showErrorMessage("The 'success' param is a must!"),!1;if(0==t.success){if(void 0===a)return RVS.F.showErrorMessage(t.message),!1;"function"==typeof i&&i(t)}else"function"==typeof i&&i(t),t.message&&!0!==l&&b(t.message),t.is_redirect&&(location.href=t.redirect_url)},error:function(t,i,a){switch(void 0===r&&RVS.F.showWaitAMinute({fadeOut:500}),m(),e){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"==i&&RVS.F.debug(t.responseText),RVS.F.showErrorMessage("Ajax Error!!! "+i)}}})},RVS.F.showErrorMessage=function(e){RVS.F.showInfo({content:e,type:"warning",showdelay:0,hidedelay:3,hideon:"",event:""}),S()},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"),S()};var g=function(){r&&jQuery("#"+r).show()},m=function(){r&&(jQuery("#"+r).hide(),r=null)},h=function(){if(a){var e=a.split(",");if(e.length>1)for(var t=0;t<e.length;t++)jQuery("#"+e[t]).hide();else jQuery("#"+a).hide()}},S=function(){if(a){var e=a.split(",");if(e.length>1)for(var t=0;t<e.length;t++)jQuery("#"+e[t]).show();else jQuery("#"+a).show();a=null}},f=function(){null!==t?(jQuery("#"+t).hide(),t=null):jQuery("#error_message").hide()},b=function(e){RVS.F.showInfo({content:e,type:"success",showdelay:0,hidedelay:1,hideon:"",event:""}),S()}}(),window.UniteLayersRev={addon_callbacks:[]},UniteLayersRev.addPreventLeave=UniteLayersRev.add_layer_actions=UniteLayersRev.add_layer_change=function(){console.log("Function is depricated. Please Update Addons")},
/*!
 * ThemePunchs Own Select2RS Library
 * @version: 2.0 (25.03.2021)
 * @author ThemePunch
*/
function(e,t){"use strict";var i,r,a=8,o=9,l=13,s=16,n=17,d=18,c=227,p=91,u=93,v=37,g=38,m=39,h=40,S=e(document);window.ddTPCalls=["destroy","update","rebuild","change","main"],window.ddTP_R_cache={},window.ddTPcache={},e.fn.extend({select2RS:function(t,i){return e(this).ddTP(t,i)},ddTP:function(e,t){return"destroy"==e||"update"==e||"rebuild"==e||"change"==e?(window.ddTP_R_cache[e]=void 0===window.ddTP_R_cache[e]?{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=void 0===window.ddTP_R_cache.main?{list:[],params:[]}:window.ddTP_R_cache.main,window.ddTP_R_cache.main.list.push(this),window.ddTP_R_cache.main.params.push(e)),void 0===window.ddTP_R_RFACalled&&(window.ddTP_R_RFACalled=!0,requestAnimationFrame(function(){var e,t,i;for(i=0;i<window.ddTPCalls.length;i++)if(e=window.ddTPCalls[i],void 0!==window.ddTP_R_cache[e])for(t in window.ddTP_R_cache[e].list)f(window.ddTP_R_cache[e].list[t],e,window.ddTP_R_cache[e].params[t]);window.ddTP_R_cache={},delete window.ddTP_R_RFACalled})),void 0===i&&M(),this}});var f=function(e,t,i){if("destroy"==t)for(a in e)e.hasOwnProperty(a)&&void 0!==e[a]&&"SELECT"===e[a].tagName&&void 0!==e[a].id&&""!==e[a].id&&void 0!==ddTPcache[e[a].id]&&R(e[a]);else if("update"==t)for(a in e)e.hasOwnProperty(a)&&void 0!==e[a]&&"SELECT"===e[a].tagName&&void 0!==e[a].id&&""!==e[a].id&&void 0!==ddTPcache[e[a].id]&&r.INFOCUS===e[a].id&&x(e[a].id,!0);else if("rebuild"==t)for(var a in e)!e.hasOwnProperty(a)||void 0===e[a]||"SELECT"!==e[a].tagName||void 0===e[a].id&&""===e[a].id||(R(e[a]),b(e[a],i));else if("change"==t)for(var a in e)e.hasOwnProperty(a)&&void 0!==e[a].id&&""!==e[a].id&&void 0!==ddTPcache[e[a].id]&&y(ddTPcache[e[a].id].rendered,V(e[a],ddTPcache[e[a].id].params));else for(var a in e)!e.hasOwnProperty(a)||void 0===e[a]||"SELECT"!==e[a].tagName||void 0!==e[a].id&&""!==e[a].id&&void 0!==ddTPcache[e[a].id]||b(e[a],i)},b=function(e,t){void 0!==e.id&&""!==e.id||(e.id="ddTP_"+Math.round(1e10*Math.random())),e.classList.add("ddTP_hidden"),e.classList.add("ddTP_based");var i=void 0===ddTPcache[e.id]?document.createElement("span"):ddTPcache[e.id].container,r=document.createElement("span"),a=document.createElement("span"),o=document.createElement(e.multiple?"ul":"span");if(i.className="ddTP ddTP_C ddTP-fake"+(void 0!==e.dataset.theme?" ddTP_C--"+e.dataset.theme:""),r.className="selection",a.className="ddTP_S ddTP_S--"+(e.multiple?"multiple":"single"),o.className="ddTP_S__rendered",i.dataset.refid=e.id,r.dir="ltr",r.appendChild(a),a.appendChild(o),!e.multiple){var l=document.createElement("span"),s=document.createElement("b");l.className="ddTP_S__arrow",a.appendChild(l),l.appendChild(s)}y(o,V(e,t)),i.appendChild(r),Q(i,e),ddTPcache[e.id]={sel:e,container:i,innerwrapper:r,selection:a,rendered:o,params:void 0===t?{}:t}},R=function(e){null!=ddTPcache&&null!=ddTPcache[e.id]&&null!=ddTPcache[e.id].container&&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])},y=function(e,t){requestAnimationFrame(function(){"UL"===e.tagName?(e.innerHTML="",e.appendChild(t.values)):t.html?e.innerHTML=t.values:e.innerText=t.values})},_=function(e,t,i){return void 0===t||void 0===e?void 0:void 0!==e.preData?t[e.preData]:void 0!==e.preDataFunction?e.preDataFunction(i):void 0},V=function(e,t){if(e.multiple){var i=document.createDocumentFragment(),a=!1;for(var o in e.options)void 0!==e.options[o]&&e.options[o].selected&&(a=!0,i.appendChild(k(e.options[o].value,void 0===e.options[o].text?e.options[o].value:e.options[o].text,void 0,e.id,t,_(t,e.options[o].dataset,e.options[o].value))));return(t.tags||t.search)&&(r.liSearch=document.createElement("li"),r.liSearch.className="ddTP_SCH ddTP_SCH--inline",r.liSearch.appendChild(O(t.searchValue,e.id)),i.appendChild(r.liSearch),a=!0),a||i.appendChild(k(void 0,void 0===t||void 0===t.placeholder?"":t.placeholder,!0,e.id,t,_(t,e.options[o].dataset,e.options[o].value))),{values:i}}i="";var l,s,n=!1;for(var o in e.options)o!==e.options[o].id&&e.options[o].selected&&(void 0!==(l=void 0!==(s=_(t,e.options[o].dataset,e.options[o].value))?B(t,s):void 0)&&(n=!0),i+=(void 0===l?"":l)+(void 0===e.options[o].text?e.options[o].value:e.options[o].text));return{html:n,values:""===i?void 0===t||void 0===t.placeholder?"":t.placeholder:i}},O=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",void 0!==e&&e.length>0?(i.value=e,i.style.width=.75*(i.value.length+1)+"em"):i.style.width="0.75em",i},B=function(e,t){return void 0!==e&&void 0!==e.pre?e.pre.replace("#data#",t):void 0},k=function(e,t,i,r,a,o){var l=C({c:"ddTP_S__choice"+(i?" isplaceholder":""),v:e,id:r,iH:t||e,iTB:B(a,o)});if(!i){var s=document.createElement("span");s.className="ddTP_S__choice__remove",s.innerText="x",s.dataset.refid=r,l.appendChild(s)}return l},L=function(){if(null!=r.INFOCUS){var e=window.ddTPcache[r.INFOCUS];r.wrap.classList.remove("ddTP_C--open"),e.container.classList.remove("ddTP_C--open"),e.container.classList.remove("ddTP_C--focus"),null!==r.liSearch&&void 0!==r.liSearch&&(r.liSearch.style.display="none"),tpGS.gsap.set(r.wrap,{display:"none"}),delete r.timeStamp,delete r.INFOCUS,delete r.highlighted,E()}},w=function(){if(void 0!==r.timeStamp&&void 0!==r.INFOCUS&&void 0!==window.ddTPcache[r.INFOCUS]&&void 0!==window.ddTPcache[r.INFOCUS].container){var e=window.ddTPcache[r.INFOCUS].container.getBoundingClientRect();tpGS.gsap.set(r.wrap,{x:e.left+r.drop.offsetWidth>window.innerWidth?e.left+(window.innerWidth-25-(e.left+r.drop.offsetWidth)):e.left,y:window.pageYOffset+e.bottom+r.drop.offsetHeight>window.pageYOffset+window.innerHeight-50?window.pageYOffset+e.top-r.drop.offsetHeight:e.bottom+window.pageYOffset}),requestAnimationFrame(function(){w()})}},I=function(){void 0!==r.highlighted&&null!==r.highlighted&&(r.ul.scrollTop+50>r.highlighted.offsetTop?r.ul.scrollTop=Math.max(0,r.highlighted.offsetTop-100):r.ul.scrollTop-300<r.highlighted.offsetTop&&(r.ul.scrollTop=r.highlighted.offsetTop-200))},C=function(e){var t=document.createElement("li");return void 0!==e.group?(t.innerHTML='<strong class="ddTP_R__group">'+e.group+"</strong>",t):(e.c&&(t.className=e.c),e.v&&(t.dataset.val=e.v),e.iTB||e.iTA?t.innerHTML=(void 0===e.iTB?"":e.iTB)+(void 0===e.iT?e.iH:e.iT)+(void 0===e.iTA?"":e.iTA):e.iT?t.innerText=e.iT:e.iH&&(t.innerHTML=e.iH),e.id&&(t.dataset.refid=e.id),void 0!==e.optid&&(t.dataset.optid=e.optid),e.aS&&(t.ariaSelected=e.aS),t)},T=function(e,t,i,a){return C({c:"ddTP_RO"+(void 0===r.highlighted&&e.selected?" ddTP_RO--highlighted":""),v:e.value,id:a,aS:e.selected,iT:void 0===e.text||""===e.text?e.value:e.text,iTB:B(i,_(i,e.dataset,e.value)),optid:t,group:"OPTGROUP"===e.tagName?e.label:void 0})},x=function(e,t){var i,a=window.ddTPcache[e],o=(a.container.getBoundingClientRect(),document.createDocumentFragment()),l="";a.params=void 0===a.params?{}:a.params,a.params.tags="true"==a.sel.dataset.tags||a.params.tags,a.params.search=void 0===a.params.search?(" "+a.sel.className).indexOf(" searchbox")>=0:a.params.search,r.highlighted=void 0,r.timeStamp||(r.searchi.value="",requestAnimationFrame(function(){r.searchi.focus()})),D(),r.wrap.className="ddTP_C ddTP_C--default ddTP_C--open"+(void 0!==a.sel.dataset.theme?" ddTP_C--"+a.sel.dataset.theme:""),a.container.classList.add("ddTP_C--open"),a.container.classList.add("ddTP_C--focus"),r.ul.ariaMultiselectable=a.sel.multiple,r.searchw.style.display=a.sel.multiple||!a.params.search?"none":"block",r.INFOCUS=e,r.ul.innerHTML="",r.searchi.dataset.refid=e,a.params.search&&void 0!==a.params.searchValue&&""!==a.params.searchValue&&(l=a.params.searchValue.toLowerCase()),a.sel.multiple&&(a.params.search||a.params.tags)&&null!==r.liSearch&&void 0!==r.liSearch&&(r.liSearch.style.display="block");var s=-1;for(var n in a.sel.children)if(s++,!(!a.sel.children.hasOwnProperty(n)||"OPTION"!==a.sel.children[n].tagName&&"OPTGROUP"!==a.sel.children[n].tagName||a.sel.children[n].disabled||"OPTION"===a.sel.children[n].tagName&&""!==l&&-1==a.sel.children[n].value.toLowerCase().indexOf(l)&&-1==a.sel.children[n].textContent.toLowerCase().indexOf(l)))if(i=T(a.sel.children[n],s,a.params,e),"OPTGROUP"===a.sel.children[n].tagName)for(var d in o.appendChild(i),s--,a.sel.children[n].children)s++,!a.sel.children[n].children.hasOwnProperty(d)||"OPTION"!==a.sel.children[n].children[d].tagName||a.sel.children[n].children[d].disabled||""!==l&&-1==a.sel.children[n].children[d].value.toLowerCase().indexOf(l)&&-1==a.sel.children[n].children[d].textContent.toLowerCase().indexOf(l)||(i=T(a.sel.children[n].children[d],s,a.params,e),void 0===r.highlighted&&a.sel.children[n].selected&&(r.highlighted=i),o.appendChild(i));else void 0===r.highlighted&&a.sel.children[n].selected&&(r.highlighted=i),o.appendChild(i);if(void 0===r.highlighted&&o.childElementCount>0&&(r.highlighted=o.firstElementChild,I(),r.highlighted.classList.add("ddTP_RO--highlighted")),r.ul.appendChild(o),tpGS.gsap.set(r.wrap,{display:"block",left:0,top:0,position:"absolute",width:"185px"}),void 0===r.timeStamp&&(r.timeStamp=2,I(),requestAnimationFrame(function(){w()})),t&&y(a.rendered,V(a.sel,a.params)),(a.params.tags||a.params.search)&&a.params.searchFocus){var c=a.sel.multiple?a.rendered.getElementsByClassName("ddTP_SCH__field"):r.searchi;null!=c&&c.length>0&&requestAnimationFrame(function(){c[0].focus(),0!==a.params.cursorPosition&&void 0!==a.params.cursorPosition&&(c[0].selectionStart=c[0].selectionEnd=a.params.cursorPosition),a.params.cursorPosition=0})}},F=function(e){if(null!=e.sel&&null!=e.sel.options){var t;for(var 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}void 0!==t&&e.sel.removeChild(t)}},J=function(e){requestAnimationFrame(function(){x(e,!0)})},N=function(e){void 0!==r.INFOCUS&&-1===e.target.className.indexOf("ddTP")&&L()},P=function(){r.highlighted=document.getElementsByClassName("ddTP_RO--highlighted"),r.highlighted=null===r.highlighted||void 0===r.highlighted||0===r.highlighted.length?void 0:r.highlighted[0]},j=function(e){P(),void 0!==r.highlighted&&null!==r.highlighted[e]&&void 0!==r.highlighted[e]&&(r.highlighted.classList.remove("ddTP_RO--highlighted"),r.highlighted=r.highlighted[e],r.highlighted.classList.add("ddTP_RO--highlighted"),I())},A=function(e){if(void 0!==r.INFOCUS&&void 0!==r.highlighted){var t=e.which||e.keyCode;return t===g||t===h?(ddTPcache[r.INFOCUS].sel.multiple?null!==r.liSearch&&void 0!==r.liSearch&&r.liSearch.blur():r.searchi.blur(),j(t===g?"previousElementSibling":"nextElementSibling"),e.preventDefault(),!1):t!==l||ddTPcache[r.INFOCUS].params.tags?void 0:(P(),void 0!==r.highlighted&&G(r.highlighted),e.preventDefault(),!1)}},E=function(){document.body.removeEventListener("click",N),document.body.removeEventListener("keydown",A),r.GLOBALLISTENER=void 0},D=function(){r.GLOBALLISTENER||(document.body.addEventListener("click",N),document.body.addEventListener("keydown",A),r.GLOBALLISTENER=!0)},M=function(){var t;i=!0,t=document.createDocumentFragment(),(r={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",r.drop.className="ddTP-dropdown ddTP-dropdown--below",r.searchw.className="ddTP_SCH ddTP_SCH--dropdown",r.searchi.className="ddTP_SCH__field",r.result.className="ddTP_R",r.ul.className="ddTP_ROs",r.drop.dir="ltr",r.searchi.type="search",r.searchw.appendChild(r.searchi),r.wrap.appendChild(r.drop),r.drop.appendChild(r.searchw),r.drop.appendChild(r.result),r.result.appendChild(r.ul),t.appendChild(r.wrap),r.wrap.style.display="none",document.body.appendChild(t),S.on("click",".ddTP_C.ddTP-fake",function(){r.INFOCUS!==this.dataset.refid||ddTPcache[this.dataset.refid].params.tags||ddTPcache[this.dataset.refid].multiple?(ddTPcache[this.dataset.refid].params.searchFocus=!0,x(this.dataset.refid)):L()}),S.on("mouseenter",".ddTP_RO",function(){this.classList.add("ddTP_RO--highlighted")}),S.on("mouseleave",".ddTP_RO",function(){this.classList.remove("ddTP_RO--highlighted")}),S.on("click",".ddTP_S__choice__remove",function(){var t=ddTPcache[this.dataset.refid];return t.params.tags?(F({sel:t.sel,value:this.parentNode.dataset.val}),this.parentNode.parentNode.removeChild(this.parentNode),t.params.searchValue="",t.params.searchFocus=!1):(!function(e){if(null!=e.sel&&null!=e.sel.options){var t;for(var i in e.sel.options)e.sel.options.hasOwnProperty(i)&&!t&&(t=e.sel.options[i].value==e.value?e.sel.options[i]:t);void 0!==t&&(t.selected=!1)}}({sel:t.sel,value:this.parentNode.dataset.val}),t.params.searchValue="",t.params.searchFocus=!1),t.sel.dispatchEvent(new Event("change",{bubbles:!0})),e(t.sel).trigger("ddTP:unselect"),J(this.dataset.refid),!1}),S.on("keydown",".ddTP_SCH__field",function(t){var i=t.which||t.keyCode,r=this.dataset.refid,s=ddTPcache[r];if(i===g||i===h)return j(i===g?"previousElementSibling":"nextElementSibling"),t.preventDefault(),!1;if(i!==o)if(s.params.tags){if(s.params.tags&&i===a&&""===this.value){var n=this.parentNode.previousElementSibling;null!=n&&"LI"===n.tagName&&void 0!==n.dataset.val&&(s.params.searchValue=n.dataset.val,s.params.searchFocus=!0,F({sel:s.sel,value:s.params.searchValue}),e(s.sel).trigger("ddTP:unselect"))}else if(this.value.length>1&&(e.inArray(String.fromCharCode(i),s.params.tokenSeparators)>=0||e.inArray(t.key,s.params.tokenSeparators)>=0)||i===l){var d=document.createElement("option");d.value=this.value,d.innerHTML=this.value,d.dataset.refid=r,d.selected=!0,s.sel.appendChild(d),s.sel.multiple&&this.parentNode.parentNode.insertBefore(k(this.value,void 0,s.sel.id,void 0),this.parentNode),this.value="",s.params.searchValue="",s.params.searchFocus=!0,s.params.cursorPosition=0,s.sel.multpile||(d.ariaSelected=!0),e(s.sel).trigger("ddTP:select"),s.sel.multpile||(y(s.rendered,V(s.sel,s.params)),s.sel.dispatchEvent(new Event("change",{bubbles:!0})),L())}}else s.sel.multiple&&s.params.search&&z(this);else L()}),S.on("keyup",".ddTP_SCH__field",function(e){var t=e.which||e.keyCode;if(t!==v&&t!==m&&t!==s&&t!=d&&t!=n&&t!=c&&t!=u&&t!=p){var i=ddTPcache[this.dataset.refid];i.params.searchValue=this.value,i.params.searchFocus=!0,i.params.cursorPosition=this.selectionStart,x(this.dataset.refid,!0)}}),S.on("click",".ddTP_RO",function(){G(this)})},G=function(t){var i=ddTPcache[t.dataset.refid];i.sel.multiple?(t.ariaSelected=1!=t.ariaSelected&&"true"!=t.ariaSelected,i.sel.options[t.dataset.optid].selected=1==t.ariaSelected||"true"==t.ariaSelected,i.params.searchValue="",i.params.searchFocus=!1,e(i.sel).trigger("ddTP:select")):(i.sel.value=t.dataset.val,L()),y(i.rendered,V(i.sel,i.params)),i.sel.dispatchEvent(new Event("change",{bubbles:!0})),i.sel.multiple&&J(t.dataset.refid)},Q=function(e,t){null!==t&&void 0!==e&&null!==t.parentNode&&t.parentNode.insertBefore(e,t.nextSibling)},z=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 r=[];return r[0]=t?t+": "+e[0]+";":e[0],i&&(r[1]=e[1]),r},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")?(-1!==(e=e.replace(/\s/g,"")).search(/,\)/)&&(e=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,r){return"rgba("+e+", "+t+", "+i+", "+r+")"},rgbToHex:function(e){var t=RSColor.rgbValues(e,3);return RSColor.getRgbToHex(t[0],t[1],t[2])},rgbaToHex:function(e){var t=RSColor.rgbValues(e,4);return[RSColor.getRgbToHex(t[0],t[1],t[2]),t[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,r=(i?"rgba":"rgb")+"("+parseInt(e.substring(0,2),16)+", "+parseInt(e.substring(2,4),16)+", "+parseInt(e.substring(4,6),16);return r+=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));var r,a,o=e.type,l=o+"-gradient(";a="linear"===o?180!==(r=parseInt(e.angle,10))?r+"deg, ":"":"ellipse at center, ";for(var s,n=e.colors,d=n.length,c="",p=0;p<d;p++)p>0&&(c+=", "),c+="rgba("+(s=n[p]).r+", "+s.g+", "+s.b+", "+s.a+") "+s.position+"%";return l+a+c+")"},sanitizeHex:function(e){if(3===(e=e.replace("#","").trim()).length){var t=e.charAt(0),i=e.charAt(1),r=e.charAt(2);e=t+t+i+i+r+r}return"#"+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,r,a){return Math.max(Math.min(Math.round(Math.abs((e-t)/(i-t)*(a-r)+r)),255),0)},distAlpha:function(e,t,i,r,a){return Math.max(Math.min(Math.abs(parseFloat(((e-t)/(i-t)*(a-r)).toFixed(2))+parseFloat(r)),1),0)},sanitizeGradient:function(e){var t,i=e.colors,r=i.length,a=[];i.sort(RSColor.sortPoints);for(var o=0;o<r;o++){var l=i[o];delete l.align,l.a=RSColor.sanitizeAlpha(l.a),l.r=parseInt(l.r,10),l.g=parseInt(l.g,10),l.b=parseInt(l.b,10),l.position=parseInt(l.position,10),t?JSON.stringify(l)!==JSON.stringify(t)&&(a[a.length]=l):a[a.length]=l,t=l}return e.colors=a,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="0",r=t[1].trim();-1===r.search("ellipse at center")?-1!==r.search("deg")&&(i=(r=r.split("deg"))[0].trim(),r=r[1].trim()):r=r.replace("ellipse at center",""),","===r.charAt(0)&&(r=r.slice(1)),","===r.charAt(r.length-1)&&(r=r.slice(0,r.length-1));var a,o,l,s,n,d=r.split("%"),c=[],p=0;d.pop(),n=d.length;for(var u=0;u<n;u++){if(l=(s=d[u].trim()).length,a="",","===s.charAt(0)&&(s=s.slice(1)),-1===s.search(" "))return e;for(a=s.split(" "),a=parseInt(a[a.length-1],10);l--&&(p=l," "!==s[l]););s=-1!==(s=s.substring(0,p)).search(/\)/)?s.split(")")[0].trim()+")":s.split(" ")[0].trim(),"hex"===RSColor.process(s)[1]&&(s=RSColor.sanitizeHex(s),s=RSColor.processRgba(s)),o&&o===s||(o=s,s=RSColor.rgbValues(s,4),c[c.length]={r:s[0],g:s[1],b:s[2],a:s[3],position:a,align:"top"},c[c.length]={r:s[0],g:s[1],b:s[2],a:1,position:a,align:"bottom"})}return JSON.stringify({type:t[0].trim(),angle:i,colors:c})},insertPoints:function(e,t,i,r,a){var o=e.position,l=t.position;if(!(o>l)){for(var s,n,d,c=[],p=0;p<a;p++)(n=parseFloat(r(p,0,1,a).toFixed(2))*(l-o)+o)>o&&n<l&&(c[c.length]=n);var u,v,g=c.length,m=parseFloat(((l-o)/(g+1)).toFixed(2)),h=parseFloat(m+o);for(p=0;p<g;p++)(d=c[p])!==e.position&&(u=RSColor.sanitizeAlpha(e.a),v=RSColor.sanitizeAlpha(t.a),s={position:h,r:e.r!==t.r?Math.round(RSColor.distColor(d,o,l,e.r,t.r)):e.r,g:e.g!==t.g?Math.round(RSColor.distColor(d,o,l,e.g,t.g)):e.g,b:e.b!==t.b?Math.round(RSColor.distColor(d,o,l,e.b,t.b)):e.b,a:u!==v?RSColor.sanitizeAlpha(RSColor.distAlpha(d,o,l,e.a,t.a)):u},h+=m,h=parseFloat(h.toFixed(2)),i[i.length]=s)}},easeGradient:function(e){var t=.01*parseInt(e.strength,10)*15,i=e.colors,r=e.easing,a=i.length-1,o=[];i.sort(RSColor.sortPoints),r=r.split("."),r=RSColor.easing[r[0]][r[1]];for(var l=0;l<a;l++)o[o.length]=i[l],RSColor.insertPoints(i[l],i[l+1],o,r,t);o[o.length]=i[a],e.colors=o},easing:{quint:{easeout:function(e,t,i,r){return i*((e=e/r-1)*e*e*e*e+1)+t},easein:function(e,t,i,r){return i*(e/=r)*e*e*e*e+t},easeinout:function(e,t,i,r){return(e/=r/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,r){return i*(e/=r)*e+t},easeout:function(e,t,i,r){return-i*(e/=r)*(e-2)+t},easeinout:function(e,t,i,r){return(e/=r/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t}},quart:{easein:function(e,t,i,r){return i*(e/=r)*e*e*e+t},easeout:function(e,t,i,r){return-i*((e=e/r-1)*e*e*e-1)+t},easeinout:function(e,t,i,r){return(e/=r/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t}},cubic:{easein:function(e,t,i,r){return i*(e/=r)*e*e+t},easeout:function(e,t,i,r){return i*((e=e/r-1)*e*e+1)+t},easeinout:function(e,t,i,r){return(e/=r/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}},circ:{easein:function(e,t,i,r){return-i*(Math.sqrt(1-(e/=r)*e)-1)+t},easeout:function(e,t,i,r){return i*Math.sqrt(1-(e=e/r-1)*e)+t},easeinout:function(e,t,i,r){return(e/=r/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,r){return-i*Math.cos(e/r*(Math.PI/2))+i+t},easeout:function(e,t,i,r){return i*Math.sin(e/r*(Math.PI/2))+t},easeinout:function(e,t,i,r){return-i/2*(Math.cos(Math.PI*e/r)-1)+t}},expo:{easein:function(e,t,i,r){return 0===e?t:i*Math.pow(2,10*(e/r-1))+t},easeout:function(e,t,i,r){return e===r?t+i:i*(1-Math.pow(2,-10*e/r))+t},easeinout:function(e,t,i,r){return 0===e?t:e===r?t+i:(e/=r/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,r){return(e/=r)<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,r){return i-RSColor.easing.bounce.easeout(r-e,0,i,r)+t},easeinout:function(e,t,i,r){return e<r/2?.5*RSColor.easing.bounce.easein(2*e,0,i,r)+t:.5*RSColor.easing.bounce.easeout(2*e-r,0,i,r)+.5*i+t}}}},function(e){RVS.DOC=void 0===RVS.DOC?jQuery(document):RVS.DOC;var t,i,r,a,o,l,s,n,d,c,p,u,v,g,m,h,S,f,b,R,y,_,V,O,B,k,L,w,I,C,T,x,F,J,N,P,j,A,E,D,M,G,Q,z,H,Z,q,W,U,Y,X,K,$,ee,te,ie,re,ae,oe,le,se,ne,de,ce,pe,ue,ve,ge,me,he,Se,fe,be,Re,ye,_e,Ve,Oe,Be,ke,Le,we,Ie,Ce,Te,xe,Fe,Je,Ne,Pe,je,Ae,Ee,De,Me,Ge,Qe,ze,He={},Ze=236,qe=20,We=25,Ue=3,Ye=4,Xe=10,Ke=15,$e=150,et=10,tt="full",it={axis:"x",containment:"#revbuilder-cpicker-point-wrap"},rt={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"],ot=[{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&}]}"}],lt='<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=me[ct(this,"data-text")]}function nt(){this.setAttribute("placeholder",me[ct(this,"data-placeholder")])}function dt(){this.setAttribute("data-message",me[ct(this,"data-alert")])}function ct(e,t){return e.getAttribute(t)||""}function pt(t){t||(t={}),"string"==typeof t&&(t=JSON.parse(t.replace(/\&/g,'"'))),me=e.extend({},rt,t),H=me.color,f.find("*[data-placeholder]").each(nt),f.find("*[data-alert]").each(dt),f.find("*[data-text]").each(st)}function ut(t,i,r,a){var o,l,s,n,d;if(e.isPlainObject(t))for(var c in t)t.hasOwnProperty(c)&&("string"==typeof(t=t[c])?"gradient"===(t=RSColor.process(t))[1]?(n=(l=t[2]).angle,d=l.type,t=RSColor.processGradient(e.extend(!0,{},l),!0)):t=t[0]:(n=t.angle,d=t.type),o=isNaN(c)?c.replace(/_/g," ").replace(/\b\w/g,function(e){return e.toUpperCase()}):"radial"!==d?n+"&deg;":"radial");else o=t;if("blank"!==t){e.isPlainObject(t)&&(l=t,"",t=a||RSColor.processGradient(e.extend(!0,{},t),!0));var p='<span class="revbuilder-cpicker-color tptip'+r+'" data-title="'+o+'" data-color="'+t+'"><span class="revbuilder-cpicker-preset-tile"></span><span class="revbuilder-cpicker-preset-bg" style="background: '+t+'"></span>';return i||(p+='<span class="revbuilder-cpicker-delete"><i class="material-icons">clear</i></span>'),s=e(p+="</span>"),l&&s.data("gradient",l),s[0]}return(s=document.createElement("span")).className="revbuilder-cpicker-color blank",s}function vt(){var t=ct(this,"data-color").toLowerCase(),i=!Je&&t===Ce.toLowerCase();if(t===fe||i){var r=e(this);return r.closest(".revbuilder-cpicker-presets-group").find(".revbuilder-cpicker-color.selected").removeClass("selected"),Ee=r,Je&&!U&&ht(Ee.data("gradient"),!0),r.addClass("selected"),!1}}function gt(e,t){for(var i=document.createDocumentFragment(),r=-1!==e.search("core"),a=r?"":" revbuilder-picker-color-custom",o=t.length,l=Math.max(Math.ceil(o/Ye),Ue),s=0;s<l;s++)for(;t.length<(s+1)*Ye;)t[t.length]="blank";for(o=t.length,s=0;s<o;s++)i.appendChild(ut(t[s],r,a));return["revbuilder-cpicker-"+e,i]}function mt(e,t,i){if(xe){if(!e){var r=t||w.val(),a=void 0!==i?i:we.val();t="transparent"===r?"transparent":"100%"===a?RSColor.sanitizeHex(r):RSColor.processRgba(r,a)}var o="transparent"===t,l=o?"":t;e?y.data("state",t):L.data("state",t),o?(xe.css("background",l),Be.css("background",l)):(xe[0].style.background=l,Be.css("background",l)),d&&d(ke,t,be,ye),RVS.DOC.trigger("revcolorpickerupdate",[ke,t])}}function ht(i,r){var o=RSColor.process(i),l=o[1],n=o[0];if(a&&R.removeClass("checked"),"gradient"!==l&&"gradient_css"!==l){switch(l){case"hex":i=RSColor.sanitizeHex(n),we.val("100%"),Et(100);break;case"rgba":var d=RSColor.rgbaToHex(n),c=parseInt(100*d[1],10);i=d[0],we.val(c+"%"),Et(c);break;case"rgb":i=RSColor.rgbToHex(n),we.val("100%"),Et(100);break;default:ae.trigger("click"),L.trigger("click")}z.val(i).change(),r||L.trigger("click")}else a?("gradient_css"===l&&(o[2]=JSON.parse(o[2])),function(i){var r=i.angle,a=i.easing?i.easing:"none",o=i.hasOwnProperty("strength")?i.strength:"100";"radial"===i.type&&(r="radial");oe.removeClass("selected"),e('.revbuilder-cpicker-orientation[data-direction="'+r+'"]').addClass("selected"),Qt(a),s.val(a).ddTP("change"),k.val(o+"%"),t.val(Vt(r)),Qt(),Jt(r),function(e){for(var t,i,r=document.createDocumentFragment(),a=e.length,o=0;o<a;o++)i=e[o],t=i.align,r.appendChild(_t(t,i.position,Rt(i),bt(i,t)));pe&&pe.draggable("destroy");ue.empty().append(r),pe=ue.children().draggable(it)}(i.colors)}(o[2]),Lt(),r||(de=!0,y.trigger("click"))):(z.val(RSColor.defaultValue).change(),L.trigger("click"));return[n,l]}function St(t,i){var r=function(e,t){var i,r=o.slice(),a=r.length;for(r.sort(RSColor.sortPoints);a--;)if((i=r[a]).align===e&&i.x<t)return i;a=r.length;for(var l=0;l<a;l++)if((i=r[l]).align===e&&i.x>t)return i}(t,i).color,a=bt(r,t,!0),l=_t(t,i,Rt(r,!0),a);T&&T.removeClass("active"),T=e(l).addClass("active").appendTo(ue).draggable(it),G=T.children(".revbuilder-cpicker-point-square")[0],Q=T.children(".revbuilder-cpicker-point-triangle")[0],pe=ue.children();var s=ft(i);Lt(l),"bottom"===t&&C.val(s[1]).change()}function ft(e){void 0===e&&(e=o[le].x);var t=T.attr("data-color"),i=T.hasClass("revbuilder-cpicker-point-bottom");if(i)ve.hasClass("active")&&ve.removeClass("active"),t=RSColor.rgbaToHex(t)[0],ze.css("background",t),f.find(".revbuilder-cpicker-point-bottom").length>2&&ve.addClass("active"),ce.parent().addClass("disabled"),f.addClass("open");else{ve.hasClass("active")&&(ze.css("background",""),ve.removeClass("active"));var r=RSColor.getOpacity(t);ce.attr("data-opacity",r).val(r).parent().removeClass("disabled"),f.find(".revbuilder-cpicker-point-top").length>2&&ve.addClass("active"),f.removeClass("open")}return I.val(e+"%").parent().removeClass("disabled"),[i,t]}function bt(e,t,i){return"bottom"===t?"rgb("+e.r+","+e.g+","+e.b+")":"rgba(0, 0, 0, "+(i?"1":e.a)+")"}function Rt(e,t){var i=t?"1":e.a;return"rgba("+e.r+","+e.g+","+e.b+","+i+")"}function yt(e,t){var i=RSColor.hexToRGB(e);t?(_.val(e),m.value=i[0],h.value=i[1],S.value=i[2]):(w.val(e),u.value=i[0],v.value=i[1],g.value=i[2],"0%"===we[0].value&&we.val("100%").trigger("focusout")),w.rsColorPicker("refresh")}function _t(t,i,r,a){var o=document.createElement("span");return o.className="revbuilder-cpicker-point revbuilder-cpicker-point-"+t,"string"==typeof r?o.setAttribute("data-color",r):e(o).data("gradient",r),o.setAttribute("data-location",i),o.style.left=i+"%",o.innerHTML="bottom"===t?'<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>',o}function Vt(e){return M||(M=document.createElement("textarea")),e&&"radial"!==e||(e="0"),M.innerHTML=e+"&deg;",M.value}function Ot(){T&&(T.removeClass("active"),T=!1),I.parent().addClass("disabled"),ce.parent().addClass("disabled"),ve.removeClass("active"),ve.removeClass("active"),ze.css("background",""),f.removeClass("open")}function Bt(e,t){f.removeClass("active is-basic").hide(),r.removeClass("revbuilder-colorpicker-open"),Ae.css({left:"",top:""}),x&&(x.remove(),x=!1),Ee?(Ee.hasClass("selected")?(t&&ke.data("hex",Ee.attr("data-color").toLowerCase()),Ee.removeClass("selected")):ke.removeData("hex"),Ee=!1):ke.removeData("hex"),t||(J&&J(ke,ne,se,be,ye),Ie&&"transparent"!==Ie?(xe[0].style.background=Ie,Be.css("background",Ie)):(xe.css("background",""),Be.css("background","")),RVS.DOC.trigger("revcolorpickercancel",[ke,ne,se])),n=null,l=null,u=null,v=null,g=null,m=null,h=null,S=null,_=null,F=null,w=null,K=null,D=null,Y=null,X=null,$=null,Z=null,M=null,re=null,ie=null,ue=null,Be=null,we=null,xe=null,ke=null}function kt(t){var i=e.extend(!0,{},He);return RSColor.processGradient(i,!0,t)}function Lt(i,r,a,n){q=r,xt(),q=!1;for(var d,c,p,u,v=[],g=o.length,m=0;m<g;m++)c=(p=o[m]).color,v[m]=c,(d=p.el).setAttribute("data-color",RSColor.rgbaString(c.r,c.g,c.b,c.a)),d.setAttribute("data-opacity",100*c.a),i&&i===d&&(le=m);l.hasClass("selected")?(He.type="radial",He.angle="0"):(He.type="linear",He.angle=parseInt(t.val(),10).toString()),He.colors=v,He.easing=s.val(),He.strength=parseInt(k.val(),10),Ee&&!Ne&&Ee.removeClass("selected"),n||(u=e.extend(!0,{},He),mt(!0,RSColor.processGradient(u,!0))),a||(Y||(Y=document.getElementById("revbuilder-cpicker-direction-horizontal")),X||(X=document.getElementById("revbuilder-cpicker-direction-vertical")),$||($=document.getElementById("revbuilder-cpicker-direction-radial")),Z||(Z=document.getElementById("revbuilder-cpicker-gradient-input")),u=kt(!0),Z.style.background=function(e,t){var i;-1===e.search("deg")&&(i=(e=e.split("("))[0],e.shift(),e=i+"(180deg, "+e.join("(")),i=(e=e.split("("))[0],e.shift();var r=e.join("(").split(",");return r.shift(),i+"("+(t=void 0!==t?t+"deg,":"ellipse at center,")+r.join(",")}(u.replace("radial-","linear-").replace("ellipse at center,",""),"90"),"none"!==He.easing&&(u=kt()),re.style.background=u,He.type="linear",He.angle="90",Y.style.background=kt(),He.angle="180",X.style.background=kt(),He.type="radial",He.angle="0",$.style.background=kt())}function wt(e,t){if(0===e)return!1;for(var i;e--;)if((i=o[e]).align!==t)return i;return!1}function It(e,t,i){if(e===i)return!1;for(var r;e++<i;)if((r=o[e]).align!==t)return r;return!1}function Ct(e,t,i){var r,a=t.alpha,o=i.alpha;r=a!==o?RSColor.distAlpha(e.x,t.x,i.x,a,o).toFixed(2):a,r=RSColor.sanitizeAlpha(r),e.alpha=r,e.color.a=r}function Tt(e,t,i){var r=e.color,a=t.color,o=i.color;if(t!==i){var l=e.x,s=t.x,n=i.x;r.r=RSColor.distColor(l,s,n,a.r,o.r),r.g=RSColor.distColor(l,s,n,a.g,o.g),r.b=RSColor.distColor(l,s,n,a.b,o.b)}else r.r=a.r,r.g=a.g,r.b=a.b}function xt(){o=[],A=[],E=[],pe.each(Ft),o.sort(RSColor.sortPoints);for(var e,t,i,r,a=o.length,l=a-1,s=0;s<a;s++)!1===(t=wt(s,i=(e=o[s]).align))&&(t=It(s,i,l)),!1===(r=It(s,i,l))&&(r=wt(s,i)),"bottom"===i?Ct(e,t,r):Tt(e,t,r);o.sort(RSColor.sortPoints)}function Ft(e){var t=RSColor.rgbValues(ct(this,"data-color"),4),i=-1!==this.className.search("bottom")?"bottom":"top",r=t[3].replace(/\.?0*$/,"")||0,a=this.style.left;-1!==a.search("px")?(a=parseInt(a,10),a=parseInt(100*(Math.round(a)/(Ze-2)).toFixed(2),10)):a=parseInt(a,10),q&&(a<50?a+=2*(50-a):a-=2*(a-50)),this.style.left=a+"%",this.setAttribute("data-location",a),r=RSColor.sanitizeAlpha(r),o[e]={el:this,x:a,alpha:r,align:i,color:{r:parseInt(t[0],10),g:parseInt(t[1],10),b:parseInt(t[2],10),a:r,position:a,align:i}},T&&T[0]!==this&&("bottom"===i?E[E.length]=a:A[A.length]=a)}function Jt(e){ie||(ie=document.getElementById("revbuilder-cpicker-wheel-point")),e=void 0!==e?e:parseInt(t.val(),10),ie.style.transform="rotate("+e+"deg)"}function Nt(i,r,a){var o,l,s=void 0!==a,n=s?a:parseInt(t.val(),10);if(i&&"keyup"===i.type)o=!isNaN(n)&&n>=-360&&n<=360,l=n;else{var d=parseInt(t.data("orig-value"),10);n||(n="0"),(isNaN(n)||n<-360||n>360)&&(n=l=d,t.val(Vt(n)),o=!0),n!==d&&(l=n,o=!0,t.val(Vt(n)),s||(n=r||n,oe.removeClass("selected"),e('.revbuilder-cpicker-orientation[data-direction="'+n+'"]').addClass("selected")))}(o||r)&&(l&&Jt(l),Lt())}function Pt(e,t){var i=parseInt(100*(Math.round(t.position.left)/(Ze-2)).toFixed(2),10);I.val(i+"%").trigger("keyup")}function jt(){var t=e(this);t.hasClass("revbuilder-cpicker-point-bottom")?"bottom":"top",t.trigger("click")}function At(){I.trigger("focusout")}function Et(e){Me=!0,De.slider("value",Math.round(.01*e*$e)),Me=!1}function Dt(e){var t=te.offset(),i=e.pageX-t.left,r=e.pageY-t.top;if(!isNaN(i)&&!isNaN(r)){var a=Math.atan2(r-We,i-We)*(180/Math.PI)+90;a<0&&(a+=360),a=Math.max(0,Math.min(360,Math.round(a))),a=5*Math.round(a/5),!0,Nt(!1,!1,a),!1}}function Mt(e){e.stopImmediatePropagation()}function Gt(t){t||(t=Le),t.each(function(){var t=e(this).find(".revbuilder-cpicker-color").css("margin-bottom",0),i=t.length;t.each(function(e){e<i-4&&(this.style.marginBottom=et+"px")})}).RSScroll("update")}function Qt(t){K||(K=e("#revpicker-easing-row")),t||(t=s.val()),K["none"===t?"removeClass":"addClass"]("active")}function zt(){b||function(){r||(r=e("body"),f=e('<div class="revbuilder-cpicker-wrap _TPRB_ color-view palette-open">'+lt+"</div>").appendTo(r));Ve.core&&(Ve.core.colors&&(at=Ve.core.colors),Ve.core.gradients&&(ot=Ve.core.gradients));Zt(Ve),pt(Ve.language||rt),b=!0}(),ze=e("#revbuilder-cpicker-preview-gradient"),ve=e("#revbuilder-cpicker-color-delete"),ce=e("#revbuilder-cpicker-grad-opacity"),I=e("#revbuilder-cpicker-color-location"),oe=e(".revbuilder-cpicker-orientation"),C=e("#revbuilder-cpicker-iris-gradient"),z=e("#revbuilder-cpicker-iris-color"),y=e("#revbuilder-cpicker-gradient-btn"),ae=e("#revbuilder-cpciker-clear-hex"),R=e("#revbuilder-cpicker-meta-reverse"),De=e("#revbuilder-cpicker-scroll"),L=e("#revbuilder-cpicker-color-btn"),k=e("#revbuilder-cpicker-strength"),t=e("#revbuilder-cpicker-meta-angle"),te=e("#revbuilder-cpicker-wheel"),Ae=e("#revbuilder-cpicker"),s=e("#revbuilder-cpicker-easing"),it.drag=Pt,it.stop=At,it.start=jt,L.data("state",e("#revbuilder-cpicker-colors").find(".revbuilder-cpicker-color").eq(0).attr("data-color")||"#ffffff"),y.data("state",e("#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%)"),Ae.draggable({containment:"window",handle:".revbuilder-cpicker-draggable",stop:function(){Ae.css("height","auto")}}),Le=e(".revbuilder-cpicker-presets-group").RSScroll({wheelPropagation:!1,suppressScrollX:!0}),te.on("mousedown.revcpicker",function(e){oe.removeClass("selected"),W=!0,Dt(e)}).on("mousemove.revcpicker",function(e){W&&Dt(e)}).on("mouseleave.revcpicker mouseup.revcpicker",function(){W=!1}),e(".revbuilder-cpicker-main-btn").on("click.revcpicker",function(){var t;if(U=-1===this.id.search("gradient"),xe&&(t=e(this).data("state")),U?(xe&&(fe=w.val()),f.removeClass("gradient-view").addClass("color-view")):(xe&&(fe=t),f.removeClass("color-view").addClass("gradient-view"),de||(F.children(".revbuilder-cpicker-color").not(".blank").eq(0).trigger("click"),de=!0)),t){var i="transparent"===t?"":t;xe.css("background",i),Be.css("background",i),Je=!0,e(".revbuilder-cpicker-color").not(".blank").each(vt),Je=!1,RVS.DOC.trigger("revcolorpickerupdate",[ke,t])}U||(Ne=!0,e(".revbuilder-cpicker-point-bottom").first().trigger("click"),Ne=!1)}),e("#revbuilder-cpicker-palette").on("click",function(){f.hasClass("palette-open")?f.removeClass("palette-open"):(f.addClass("palette-open"),Gt())}),e("#revbuilder-cpicker-check").on("click.revcipicker",function(){var t,i,r,a;if(f.hasClass("color-view")){var o=w.val(),l=we.val();r="transparent"===o?"transparent":"100%"===l?RSColor.sanitizeHex(o):RSColor.processRgba(o,l),t=[ke,r,!1],i=r}else{Ot(),Lt(!1,!1,!0,!0);var s=JSON.stringify(He).replace(/\"/g,"&");i=RSColor.processGradient(e.extend(!0,{},He),!0),t=[ke,i,s]}!0!==(a=t[1]!==Ie)&&!0!==ge||(ke.attr("data-color",t[1]),RVS.DOC.trigger("revcolorpickerchanged",t),Qe&&Qe(t[0],t[1],t[2],be,ye)),Bt(0,!0===a||!0===ge)}),f.on("click.revcpicker",function(t){e(t.target).closest("#revbuilder-cpicker").length||Ot()}),e(".revbuilder-cpicker-close").on("click.revcpicker",Bt),z.wpColorPicker({palettes:!1,width:190,border:!1,hide:!1,change:function(e,t){var i=t.color.toString();if(this.value=i,yt(i),!Fe){var r=we.val();0===parseInt(r,10)&&(i="transparent"),mt(!1,i,r),Ee&&(Ee.removeClass("selected"),Ee=!1)}}}),C.wpColorPicker({palettes:!1,height:190,border:!1,hide:!1,change:function(e,t){var i=t.color.toString();this.value=i,yt(i,!0),ze.css("background",i),G.style.backgroundColor=i,Q.style.borderBottomColor=i;var r=RSColor.processRgba(i,100),a=RSColor.rgbValues(r,4),o=He.colors[le];o.r=a[0],o.g=a[1],o.b=a[2],o.a=RSColor.sanitizeAlpha(a[3]),T&&T.attr("data-color",r),Lt()}}),De.slider({orientation:"vertical",max:$e,value:$e,start:function(){je="transparent"===w.val()},slide:function(e,t){if(!Me){var i,r=parseInt(100*(t.value/$e).toFixed(2),10);je&&(i=r?"#ffffff":"transparent",w.val(i)),0===r&&(i="transparent"),mt(!1,i,r||"transparent"),we.val(r+"%")}}}),e("body").on("click.revcpicker",".revbuilder-cpicker-point",function(){ue.find(".revbuilder-cpicker-point.active").removeClass("active"),T=e(this).addClass("active"),G=T.children(".revbuilder-cpicker-point-square")[0],Q=T.children(".revbuilder-cpicker-point-triangle")[0],Lt(this);var t=ft();t[0]&&C.val(t[1]).change()}).on("mousedown.revcpicker",".revbuilder-cpicker-point",function(t){T=e(this).data("mousestart",t.pageY)}).on("mousemove.revcpicker",function(e){if(T&&T.data("mousestart")){var t=T.data("mousestart"),i=e.pageY;T.hasClass("revbuilder-cpicker-point-bottom")?i>t&&i-t>Ke&&ve.hasClass("active")?T.addClass("warning"):T.removeClass("warning"):t>i&&t-i>Ke&&ve.hasClass("active")?T.addClass("warning"):T.removeClass("warning")}}).on("mouseup.revcpicker",function(e){if(T&&T.data("mousestart")){var t=T.data("mousestart"),i=e.pageY;T.removeData("mousestart"),T.hasClass("revbuilder-cpicker-point-bottom")?i>t&&i-t>Xe&&ve.hasClass("active")?ve.trigger("click"):T.removeClass("warning"):t>i&&t-i>Xe&&ve.hasClass("active")?ve.trigger("click"):T.removeClass("warning")}}).on("keypress.revcpicker",function(e){if(f.hasClass("active")){var t=e.which;27==t?Bt():13==t&&V&&V.blur()}}).on("click.revcpicker",".revbuilder-cpicker-color:not(.blank)",function(){if(Ee){if(Ee[0]===this&&Ee.hasClass("selected"))return;Ee.removeClass("selected")}if(Ee=e(this),f.hasClass("color-view")){var t,i=Ee.attr("data-color"),r=RSColor.process(i);"rgba"===r[1]?(i=RSColor.rgbaToHex(r[0]),t=100*parseFloat(i[1]),we.val(t+"%").trigger("keyup"),i=i[0]):"transparent"!==r[1]&&"transparent"!==i?we.val("100%").trigger("keyup"):(Fe=!0,ae.trigger("click")),Fe=!0,z.val(i).change(),"transparent"===w.val()&&w.val(i.toLowerCase()),Fe=!1;var a=we.val();0===parseInt(a,10)&&(i="transparent"),mt(!1,i,a),Ee.addClass("selected")}else n.removeClass("full"),D.removeClass("full"),ht(Ee.data("gradient"),!0),R.removeClass("checked"),F.find(".revbuilder-cpicker-color.selected").removeClass("selected"),e(".revbuilder-cpicker-point-bottom").first().trigger("click"),Ee.addClass("selected")}).on("mouseover.revcpicker",".revbuilder-cpicker-color:not(.blank)",function(){Pe&&(re.style.background=ct(this,"data-color"))}).on("mouseout.revcpicker",".revbuilder-cpicker-color:not(.blank)",function(){Pe&&Lt()}).on("click.revcpicker",".revbuilder-cpicker-delete",function(){if(p){if(window.confirm(document.getElementById("revbuilder-cpicker-remove-delete").innerHTML)){f.addClass("onajax onajaxdelete");var t=e(this),i=t.parent(),r=i.attr("data-title")||"";if(!r)return void console.log("Preset does not have a name/title");var a=-1!==t.closest(".revbuilder-cpicker-presets-group")[0].id.search("colors")?"colors":"gradients";RVS.DOC.off("revcpicker_onajax_delete.revcpicker").on("revcpicker_onajax_delete.revcpicker",function(r,a){a&&console.log(a);var o=t.closest(".revbuilder-cpicker-presets-group"),l=o.find(".rs__scrollbar-x-rail");i.remove(),e('<span id="hello" class="revbuilder-cpicker-color blank"></span>').insertBefore(l),Gt(o),f.removeClass("onajax onajaxdelete")}),r=e.trim(r.replace(/\W+/g,"_")).replace(/^\_|\_$/g,"").toLowerCase(),p("delete",r,a,"revcpicker_onajax_delete",ke)}return!1}console.log("Ajax callback not defined")}),e(".revbuilder-cpicker-save-preset-btn").on("click.revcpicker",function(){if(p){var t,i,r=e(this),a=r.closest(".revbuilder-cpicker-presets").find(".revbuilder-cpicker-preset-save").val();if(a&&isNaN(a)){if(t=f.hasClass("color-view")?"colors":"gradients",a=e.trim(a.replace(/\W+/g,"_")).replace(/^\_|\_$/g,"").toLowerCase(),e("#revbuilder-cpicker-"+t+"-custom").find(".revbuilder-cpicker-color").not(".blank").each(function(){if(e.trim(ct(this,"data-title").replace(/\W+/g,"_")).replace(/^\_|\_$/g,"").toLowerCase()===a)return alert(r.attr("data-message")),i=!0,!1}),!i){f.addClass("onajax onajaxsave");var o,l,s={};if("colors"===t){var n=w.val(),d=we.val();o="transparent"===n?"transparent":"100%"===d?RSColor.sanitizeHex(n):RSColor.processRgba(n,d)}else l=re.style.background,Lt(!1,!1,!0),o=e.extend({},He);s[a]=o,RVS.DOC.off("revcpicker_onajax_save.revcpicker").on("revcpicker_onajax_save.revcpicker",function(i,a){if(a)return f.removeClass("onajax onajaxsave"),void alert(r.attr("data-message"));var o=e(ut(s,!1," revbuilder-picker-color-custom",l)),n=e("#revbuilder-cpicker-"+t+"-custom"),d=n.find(".rs__scrollbar-x-rail"),c=n.find(".revbuilder-cpicker-color.blank");if(c.length)c=c.eq(0),o.insertBefore(c),c.remove();else{o.insertBefore(d);for(var p=n.children(".revbuilder-cpicker-color").length,u=Math.max(Math.ceil(p/Ye),Ue)*Ye;p++<u;)e('<span class="revbuilder-cpicker-color blank"></span>').insertBefore(d)}e("#revbuilder-cpicker-preset-"+t).val("custom").trigger("change"),Gt(n),o.trigger("click"),e(".revbuilder-cpicker-preset-save").val(""),f.removeClass("onajax onajaxsave")}),p("save",s,t,"revcpicker_onajax_save",ke)}}else alert(r.attr("data-message"))}else console.log("Ajax callback not defined")}),ae.on("click.revcpicker",function(){Et(0),z.val(RSColor.defaultValue).change(),w.val("transparent"),mt(!1,"transparent"),clearTimeout(Oe),Oe=setTimeout(Ht,100)}),f.find('input[type="text"]').on("focusin.revcpicker",function(){V=this}).on("focusout.revcpicker",function(){V=!1}),e(".revbuilder-cpicker-input").on("focusin.revcpicker",function(){var t=e(this);t.data("orig-value",t.val()).parent().addClass("focus")}).on("focusout.revcpicker",function(){e(this).parent().removeClass("focus")}),e(".revbuilder-cpicker-rgb").on("focusin.revcpicker",function(){e(this).data("prev",this.value)}).on("focusout.revcpicker keyup.revcpicker",function(){var t=this.value;isNaN(t)||t<0||t>255?this.value=e(this).data("prev"):f.hasClass("color-view")?w.val(RSColor.rgbToHex("rgb("+u.value+","+v.value+","+g.value+")")).trigger("focusout"):_.val(RSColor.rgbToHex("rgb("+m.value+","+h.value+","+S.value+")")).trigger("focusout")}),e(".revbuilder-cpicker-hex").on("focusout.revcpicker",function(){var t,i;if("revbuilder-cpicker-color-hex"===this.id){if(!(i=w.val()))return void ae.trigger("click");if(i=RSColor.sanitizeHex(i),RSColor.isColor.test(i))yt(i);else{if(!(t=e(this).data("orig-value")))return void ae.trigger("click");if("transparent"===(i=t))return void ae.trigger("click");yt(i)}z.val(i).change()}else i=_.val()||RSColor.defaultValue,i=RSColor.sanitizeHex(i),RSColor.isColor.test(i)||(i=(t=e(this).data("orig-value"))||RSColor.defaultValue),_.val(i),C.val(i).change()}).on("focusin.revcpicker",Mt),I.on("keyup.revcpicker focusout.revcpicker",function(e){if(T){var t,i="bottom"===(T.hasClass("revbuilder-cpicker-point-bottom")?"bottom":"top")?E:A,r=I.val().replace("%","")||"0",a=e.type;for(isNaN(r)&&(r="keyup"===a?"0":T.attr("data-location")),t=(r=Math.max(0,Math.min(100,parseInt(r,10))))<50?1:-1;-1!==i.indexOf(r);)r+=t;"focusout"===a&&(I.val(r+"%"),T.attr("data-location",r)),T.css("left",r+"%"),Lt()}}).on("focusin.revcpicker",Mt),e("#revbuilder-cpciker-clear-gradient").on("click.revcpicker",function(){C.val(RSColor.defaultValue).change()}),t.on("keyup.revcpicker focusout.revcpicker",Nt).on("focusin.revcpicker",Mt),oe.on("click.revcpicker",function(){var i=e(this),r=i.attr("data-direction");oe.removeClass("selected"),i.addClass("selected"),"radial"!==r?t.val(Vt(r)):t.val(0),Nt(!1,r)}),e(".revbuilder-cpicker-point-delete").on("click.revcpicker",function(){if(-1!==this.className.search("active")){var e=T.hasClass("revbuilder-cpicker-point-bottom")?"bottom":"top",t=f.find(".revbuilder-cpicker-point-"+e).length;t>2&&(T.draggable("destroy").remove(),pe=ue.children(),f.trigger("click"),Lt()),t<=qe&&("bottom"===e?D.removeClass("full"):n.removeClass("full"))}}),e(".revbuilder-cpicker-preset-save").on("focusin.revcpicker",Mt),e(".revbuilder-cpicker-opacity-input").on("keyup.revcpicker focusout.revcpicker",function(t){var i,r=-1===this.id.search("grad"),a=r?we:ce,o=a.val().replace("%",""),l=t.type;if(isNaN(o)&&(o="keyup"===l?"0":e(this).data("orig-value").replace("%","")),o=Math.max(0,Math.min(100,o)),"focusout"===l&&(a.val(o+"%"),r||T.attr("data-opacity",o)),r){mt(!1,0===parseInt(o,10)&&"transparent",o),Et(o)}else{var s=RSColor.rgbValues(T.attr("data-color"),3),n=He.colors[le];o=RSColor.sanitizeAlpha(.01*parseInt(o,10)),n.r=s[0],n.g=s[1],n.b=s[2],n.a=o,i=RSColor.rgbaString(n.r,n.g,n.b,o),T.attr("data-color",i),Lt(),i="rgba(0, 0, 0, "+o+")",G.style.backgroundColor=i,Q.style.borderTopColor=i}}).on("focusin.revcpicker",Mt),e(".revbuilder-cpicker-builder-hit").on("click.revcpicker",function(e){o||xt();for(var t=parseInt(100*((e.pageX-n.offset().left)/Ze).toFixed(2),10),i=-1!==this.id.search("bottom")?"bottom":"top",r="bottom"===i?E:A,a=t<50?1:-1;-1!==r.indexOf(t);)t+=a;"bottom"===i?f.find(".revbuilder-cpicker-point-bottom").length<qe?(St(i,t),Ee=!1):D.addClass("full"):f.find(".revbuilder-cpicker-point-top").length<qe?(St(i,t),Ee=!1):n.addClass("full")}),R.on("click.revcpicker",function(){!R.hasClass("checked")?R.addClass("checked"):R.removeClass("checked"),Lt(!1,!0)}),s.on("change.revcpicker",function(){Lt(),Qt(this.value)}),k.on("keyup.revcpicker focusout.revcpicker",function(e){var t=k.val().replace("%",""),i=e.type;isNaN(t)&&(t="keyup"===i?"0":k.data("orig-value").replace("%","")),t=Math.max(10,Math.min(1e3,t)),"focusout"===i&&k.val(t+"%"),Lt()}).on("focusin.revcpicker",Mt);var a=e(".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",Gt()});e.fn.ddTP&&(a.ddTP(),s.ddTP()),i=!0}function Ht(){we.val("0%")}function Zt(t){var i,r,a,o,l,s=e.extend({},t),n=s.core||{},d=s.custom;!he||d?(o=4,d=(he=d)||{colors:[],gradients:[]}):o=2,n.colors||(n.colors=at),n.gradients||(n.gradients=ot);for(var c=0;c<o;c++){switch(c){case 0:i="colors-core",a=n.colors;break;case 1:i="gradients-core",a=n.gradients;break;case 2:i="colors-custom",a=d.colors;break;case 3:i="gradients-custom",a=d.gradients}r=gt(i,a.slice()||[]),(l=e("#"+r[0])).find(".revbuilder-cpicker-color").remove(),l.prepend(r[1])}}function qt(e,t,i){return jQuery.grep(e,function(e){return e[i]!=t[i]})}function Wt(e,t,i){var r=-1;for(var a in t)void 0!==t[a][i]&&t[a][i]===e[i]&&(r=a);return r}function Ut(e){return e.id?jQuery('<span><span class="skin_mini_color" style="background:'+be[e.element.value].v+'"></span>'+e.text+"</span>"):e.text}function Yt(e){for(var t in void 0!==be[e]&&ht(be[e].v,!1),_e)for(var i in be)be.hasOwnProperty(i)&&(i!==e&&void 0!==be[i].ref&&0!==be[i].ref.length&&(be[i].ref=qt(be[i].ref,_e[t],"r")),i===e&&(be[i].ref=void 0===be[i].ref?[]:be[i].ref,-1==Wt(_e[t],be[i].ref,"r")&&be[i].ref.push(_e[t])))}e.rsColorPickerApi={setValue:function(e,t){ht(e,t)},setGlobalColors:function(e){be=jQuery.extend(!0,{},e)},setGlobalCandidates:function(e){_e=e},getGlobalColors:function(){return be},closeColorPicker:function(){Bt()},showGlobal:function(e,t,i){be=jQuery.extend(!0,{},t),_e=i,Re=e.mode;var r,a;e.currentInput[0].dataset;for(var o in currentEditing=document.getElementById("revbuilder-cpicker-current-edit"),editTitle=document.getElementById("revbuilder-cpicker-edit-title"),widgetId=ke.attr("data-widget-id"),html=ke.attr("data-appended-html"),editing=ke.attr("data-editing"),em=document.createElement("div"),em.id="revbuilder-cpicker-globals",r='<div id="revbuilder-cpicker-gactive">'+RVS_LANG.globalcoloractive+"</div>",r+='<input id="enadisaGlobalSkin" type="checkbox">',r+='<div id="inp_SkinPicker">',r+='<div style="margin-left:25px;margin-right:20px;" class="revbuilder-cpicker-input-wrap"><select id="gc_skinPicker">',be)be.hasOwnProperty(o)&&(r+='<option value="'+o+'" '+(be[o].v.indexOf("gradient")>=0&&("single"===e.mode||"basic"===e.mode)?' disabled="true" ':"")+">"+be[o].alias+"</option>");r+="</select></div>",r+='<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=r,document.getElementById("revbuilder-cpicker").appendChild(em),a=jQuery(document.getElementById("gc_skinPicker"));var l=function(){var e=[];for(var t in _e)for(var i in e[t]=-1,be)be.hasOwnProperty(i)&&void 0!==be[i].ref&&0!==be[i].ref.length&&-1===e[t]&&(e[t]=-1!==Wt(_e[t],be[i].ref,"r")?i:-1);var r=-1;for(var i in e)r=-1===r&&-1!==e[i]?e[i]:-1!==e[i]&&-1!==r[i]?-999:r;return r}();-1===l||-999===l?(ye=!1,document.getElementById("inp_SkinPicker").style.display="none",jQuery("#enadisaGlobalSkin")[0].checked=!1):(ye=l,a[0].value=l,document.getElementById("inp_SkinPicker").style.display="inline-block",jQuery("#enadisaGlobalSkin")[0].checked=!0,currentEditing.innerHTML=be[l].alias+" Skin"),void 0!==RVS&&void 0!==RVS.F&&void 0!==RVS.F.initOnOff&&(RVS.F.initOnOff(em),RVS.F.turnOnOff(em,!1)),a.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:Ut}),jQuery("#enadisaGlobalSkin").on("change",function(){ge=!0,!0===this.checked?(document.getElementById("inp_SkinPicker").style.display="inline-block",a.trigger("change.select2"),a.ddTP("change")):(ye=!1,Yt(-1),document.getElementById("inp_SkinPicker").style.display="none",ht(Ie,!1),currentEditing.innerHTML=editing)}),a.on("change.select2",function(){ge=!0,be=jQuery.extend(!0,{},t),-1!==ye&&-999!==ye&&void 0!==t[ye]&&ht(t[ye].v,!1),ye=this.value,Yt(this.value),function(e,t){var i="single"===t||"basic"===t;if(!i)for(var r in be[e].ref)be[e].ref.hasOwnProperty(r)&&(i=!0===i||RVS.F.noGradient(be[e].ref[r].r));i?jQuery("#revbuilder-cpicker-gradient-btn").hide():jQuery("#revbuilder-cpicker-gradient-btn").show()}(this.value,Re),currentEditing.innerHTML=be[this.value].alias+" Skin"})},hideGlobal:function(){jQuery("#revbuilder-cpicker-globals").remove(),be=void 0,ye=void 0}},e.rsColorPicker=function(t){Ve=e.extend(!0,Ve||{},t),t.mode&&(tt=t.mode),t.init&&(c=t.init),t.onAjax&&(B=t.onAjax),t.onEdit&&(O=t.onEdit),t.change&&(j=t.change),t.cancel&&(P=t.cancel),t.title&&(N=t.title),t.language&&t.language,t.widgetId&&(Se=t.widgetId),t.defaultValue&&(RSColor.defaultValue=t.defaultValue),t.wrapClasses&&(Ge=t.wrapClasses),t.appendedHtml&&(Te=t.appendedHtml),t.onRefresh&&(ee=t.defRefresh),b&&(Gt(),t.language&&pt(t.language))};var Xt={refresh:function(){var t=e(this),i=[t];if(t.hasClass("revbuilder-cpicker-component")){var r=t.data("revcp")||{},a=t.val()||r.defaultValue||RSColor.defaultValue,o=r.onRefresh||ee,l=RSColor.process(a);a=l[0],l="rgba"===l[1]&&RSColor.transparentRgba(a,!0)?"":a,"transparent"!==a?(t.data("tpcp")[0].style.background=l,Be&&Be.css("background",l)):(t.data("tpcp").css("background",""),Be&&Be.css("background","")),t.attr("data-color",a).data("hex",a),i[1]=a,o&&o(i[0],a)}else i[1]=!1,i[2]="Color Picker not inited for this input field yet";RVS.DOC.trigger("revcolorpickerrefresh",i)},destroy:function(){e(this).removeData().closest(".revbuilder-cpicker-master-wrap").removeData().remove()}};function Kt(){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=[]),e.rsColorPicker({custom:RVS.LIB.COLOR_PRESETS,onAjax:function(t,i,r,a,o){var l=!1,s=RVS.LIB.COLOR_PRESETS[r];switch(t){case"save":s[s.length]=i,l=!0;break;case"delete":var n=s.length;e:for(var d=0;d<n;d++)for(var c in s[d])if(c===i){s.splice(d,1),l=!0;break e}}l&&"undefined"!=typeof RVS&&void 0!==RVS.F&&RVS.F.ajaxRequest("save_color_preset",{presets:jQuery.extend(!0,{},RVS.LIB.COLOR_PRESETS)},function(t){var i=t.error||!1;try{void 0!==e.esgColorPicker&&e.esgColorPicker({custom:RVS.LIB.COLOR_PRESETS})}catch(i){}RVS.DOC.trigger(a,[i])})}})}e.fn.rsColorPicker=function(t){return t&&"string"==typeof t?this.each(Xt[t]):this.each(function(){var i=e(this);if(this.className.indexOf("revbuilder-cpicker-component")>=0)i.rsColorPicker("refresh");else{var r=document.createElement("div"),a=document.createElement("span"),o=document.createElement("span");a.className="revbuilder-colorbox",o.className="revbuilder-colorbtn",r.className="revbuilder-colorpicker",r.appendChild(a),r.appendChild(o);var l,s,n=this.dataset.wrapClasses||Ge,d=this.dataset.wrapper,p=this.dataset.wrapId,u=this.dataset.title,v=this.value,g=1==i.data("visible")?"visible-cp-input":"";if(o.innerText=u||N||H||rt.color,void 0!==n&&r.classList.add(n),p&&(r.id=p),t&&e.isPlainObject(t)){d||(d=t.wrapper),n||(n=t.wrapClasses),p||(p=t.wrapId),u||(u=t.title),s=t.defaultValue;var m=i.data("revcp");m&&(t=e.extend({},m,t)),i.data("revcp",t)}v||(v=s||RSColor.defaultValue,this.value=v),v=(l=RSColor.process(v))[0],"transparent"!==(l="rgba"===l[1]&&RSColor.transparentRgba(v,!0)?"":v)&&(a.style.background=l),this.dataset.color=v,this.classList.add("revbuilder-cpicker-component"),i.data("tpcp",jQuery(a)),(r=this.parentNode.insertBefore(r,this)).appendChild(this),(r=jQuery(r)).data("revcolorinput",i),d?(d=e(d).addClass("revbuilder-cpicker-master-wrap").addClass(g),r.wrap(d)):r.addClass("revbuilder-cpicker-master-wrap").addClass(g);var h=!!t&&(t.init||c),S=Ve?e.extend(!0,Ve,t||{}):t||!1;h&&h(r,i,v,S),RVS.DOC.trigger("revcolorpickerinit",[r,i,v,S])}})},e(function(){e("body").on("click.revcpicker",".revbuilder-colorpicker",function(){i||zt(),re=document.getElementById("revbuilder-cpicker-gradient-output"),m=document.getElementById("revbuilder-cpicker-r2"),h=document.getElementById("revbuilder-cpicker-g2"),S=document.getElementById("revbuilder-cpicker-b2"),u=document.getElementById("revbuilder-cpicker-r"),v=document.getElementById("revbuilder-cpicker-g"),g=document.getElementById("revbuilder-cpicker-b"),ue=e("#revbuilder-cpciker-point-container"),Be=e("#revbuilder-cpicker-preview-color"),we=e("#revbuilder-cpicker-color-opacity"),l=e("#revbuilder-cpicker-orientation-radial"),F=e("#revbuilder-cpicker-gradients-core"),_=e("#revbuilder-cpicker-gradient-hex"),D=e("#revbuilder-cpicker-hit-bottom"),w=e("#revbuilder-cpicker-color-hex"),n=e("#revbuilder-cpicker-hit-top"),ke=e(this).data("revcolorinput");var t,o,s,c,b,R,V,k,I,C,T,N,A,E=document.getElementById("revbuilder-cpicker-current-edit"),M=document.getElementById("revbuilder-cpicker-edit-title"),G=ke.attr("data-widget-id"),Q=ke.attr("data-appended-html"),z=ke.attr("data-editing"),H=ke.attr("data-colors"),Z=ke.attr("data-mode"),q=ke.data("revcp"),W=ke.attr("data-lang");if(H&&((H=JSON.parse(H.replace(/\&/g,'"'))).colors&&(R=H.colors),H.gradients&&(c=H.gradients)),q){var U=q.colors;U&&(U.core&&(s=U.core.colors,t=U.core.gradients),U.custom&&(b=U.custom.colors,o=U.custom.gradients)),T=q.onEdit,N=q.onAjax,k=q.change,I=q.cancel,W||(W=q.lang),Z||(Z=q.mode),Q||(Q=q.appendedHtml),z||(z=q.editing),G||(G=q.widgetId)}(t||s||o||b||c||R)&&(V={},(t||s||c||R)&&(V.core={colors:R||s||at,gradients:c||t||ot}),(o||b)&&(V.custom={colors:b||at,gradients:o||ot}),Zt(V)),G||(G=Se),G&&(f[0].id=G),Q||(Q=Te),Q&&(x=e(Q).appendTo(Ae)),W&&pt(W),Z||(Z=tt),z?M.style.visibility="visible":(z="",M.style.visibility="hidden"),E.innerHTML=z,"single"===Z||"basic"===Z?(a=!1,y.hide(),L.show(),"basic"===Z&&f.addClass("is-basic")):(a=!0,y.show(),L.show()),function(e){return"string"==typeof e&&"transparent"!==e.trim()&&-1===e.search(/\[\{/)&&-1!==e.search("-gradient")}(A=ke.val()||RSColor.defaultValue)&&(A=RSColor.reverseGradient(A)),A.split("||").length>1&&(A=RSColor.joinToRgba(A),ke.val(A)),C=ht(A),Ie=C[0],ne=Ie,se=ke.val(),d=T||O,p=N||B,J=I||P,Qe=k||j,"gradient"!==C[1]?L.data("state",Ie):y.data("state",Ie),r.addClass("revbuilder-colorpicker-open"),xe=ke.data("tpcp"),f.data("revcpickerinput",ke).addClass("active").show(),Gt(),Ce=ke.attr("data-color");var Y=RSColor.process(A);"rgba"===Y[1]?0==(Y=RSColor.rgbValues(Y[0],4))[3]?Be.css("background",""):Be.css("background",Ce):"transparent"===Y[1]?Be.css("background",""):Be.css("background",Ce),fe=ke.data("hex"),e(".revbuilder-cpicker-color").not(".blank").each(vt),Ae.css({marginLeft:-.5*Ae.width(),marginTop:-.5*Ae.height()});var X=jQuery(".iris-square-value");!0!==X.data("badlistener")&&(X.on("click",function(){return this.href="",!1}),X.data("badlistener",!0)),RVS.DOC.trigger("RSCOLOR.OPEN",{openingValue:C[0],mode:Z,currentInput:ke})})});var $t=!1;"loading"===document.readyState?document.addEventListener("readystatechange",function(){"interactive"!==document.readyState&&"complete"!==document.readyState||$t||($t=!0,Kt())}):($t=!0,Kt())}("undefined"!==jQuery&&jQuery),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).RSClipboard=e()}}(function(){return function e(t,i,r){function a(l,s){if(!i[l]){if(!t[l]){var n="function"==typeof require&&require;if(!s&&n)return n(l,!0);if(o)return o(l,!0);var d=new Error("Cannot find module '"+l+"'");throw d.code="MODULE_NOT_FOUND",d}var c=i[l]={exports:{}};t[l][0].call(c.exports,function(e){return a(t[l][1][e]||e)},c,c.exports,e,t,i,r)}return i[l].exports}for(var o="function"==typeof require&&require,l=0;l<r.length;l++)a(r[l]);return a}({1:[function(e,t,i){var r=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}t.exports=function(e,t){for(;e&&e.nodeType!==r;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},{}],2:[function(e,t,i){function r(e,t,i,r){return function(i){i.delegateTarget=a(i.target,t),i.delegateTarget&&r.call(e,i)}}var a=e("./closest");t.exports=function(e,t,i,a,o){var l=r.apply(this,arguments);return e.addEventListener(i,l,o),{destroy:function(){e.removeEventListener(i,l,o)}}}},{"./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 r=e("./is"),a=e("delegate");t.exports=function(e,t,i){if(!e&&!t&&!i)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(i))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,i){return e.addEventListener(t,i),{destroy:function(){e.removeEventListener(t,i)}}}(e,t,i);if(r.nodeList(e))return function(e,t,i){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,i)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,i)})}}}(e,t,i);if(r.string(e))return function(e,t,i){return a(document.body,e,t,i)}(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;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var i=e.hasAttribute("readonly");i||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),i||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),a=document.createRange();a.selectNodeContents(e),r.removeAllRanges(),r.addRange(a),t=r.toString()}return t}},{}],6:[function(e,t,i){function r(){}r.prototype={on:function(e,t,i){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:i}),this},once:function(e,t,i){function r(){a.off(e,r),t.apply(i,arguments)}var a=this;return r._=t,this.on(e,r,i)},emit:function(e){for(var t=[].slice.call(arguments,1),i=((this.e||(this.e={}))[e]||[]).slice(),r=0,a=i.length;r<a;r++)i[r].fn.apply(i[r].ctx,t);return this},off:function(e,t){var i=this.e||(this.e={}),r=i[e],a=[];if(r&&t)for(var o=0,l=r.length;o<l;o++)r[o].fn!==t&&r[o].fn._!==t&&a.push(r[o]);return a.length?i[e]=a:delete i[e],this}},t.exports=r},{}],7:[function(e,t,i){!function(r,a){if(void 0!==i)a(t,e("select"));else{var o={exports:{}};a(o,r.select),r.clipboardAction=o.exports}}(this,function(e,t){"use strict";var i=function(e){return e&&e.__esModule?e:{default:e}}(t),r="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},a=function(){function e(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),o=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.resolveOptions(t),this.initSelection()}return a(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&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");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";var r=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=r+"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 e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"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":r(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}}]),e}();e.exports=o})},{select:5}],8:[function(e,t,i){!function(r,a){if(void 0!==i)a(t,e("./clipboard-action"),e("tiny-emitter"),e("good-listener"));else{var o={exports:{}};a(o,r.clipboardAction,r.tinyEmitter,r.goodListener),r.clipboard=o.exports}}(this,function(e,t,i,r){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var i="data-clipboard-"+e;if(t.hasAttribute(i))return t.getAttribute(i)}var l=a(t),s=a(i),n=a(r),d="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},c=function(){function e(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),p=function(e){function t(e,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(i),r.listenClick(e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),c(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&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"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,n.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return o("action",e)}},{key:"defaultTarget",value:function(e){var t=o("target",e);if(t)return document.querySelector(t)}},{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=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,i=!!document.queryCommandSupported;return t.forEach(function(e){i=i&&!!document.queryCommandSupported(e)}),i}}]),t}();e.exports=p})},{"./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 e(e){if(void 0===RVS.ENV.optimizer){var l='<div class="rb-modal-wrapper _TPRB_" data-modal="rbm_optimizer">';l+='\t<div class="rb-modal-inner">',l+='\t\t<div class="rb-modal-content">',l+='\t\t\t<div id="rbm_optimizer" class="rb_modal form_inner">',l+='\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>',l+='<div class="rbm_header_content">',l+='<div class="optim_row noborder" style="height:50px">',l+='<div class="optim_cell op_c_a optim_title">'+RVS_LANG.element+"</div>",l+='<div class="optim_cell op_c_b optim_title">'+RVS_LANG.filesize+"</div>",l+='<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>",l+='<div class="optim_cell op_c_d optim_title">'+RVS_LANG.suggestion+"</div>",l+='<div class="optim_cell op_c_e"></div>',l+="</div>",l+="</div>",l+='\t\t\t\t<div id="rbm_optimizer_list" class="rbm_content">',l+="\t\t\t\t</div>",l+='\t\t\t\t<div class="rbm_footer">',l+='\t\t\t\t\t<div id="optimizer_compression">',l+='\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>',l+='\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>",l+="\t\t\t\t\t</div>",l+='\t\t\t\t\t<div id="opt_summary">',l+='\t\t\t\t\t\t<div id="optimizer_fullsize">0 kb</div><div id="optimizer_cachedsize"></div>',l+='\t\t\t\t\t\t<div class="optimier_footerinfo">',l+='\t\t\t\t\t\t\t<div class="opt_loaded_title" id="optimized_prec">'+RVS_LANG.sizeafteroptim+"</div>",l+='\t\t\t\t\t\t\t<div class="opt_loaded_subtitle" id="optimize_to_save">'+RVS_LANG.loadedmediainfo+"</div>",l+="\t\t\t\t\t\t</div>",l+="\t\t\t\t\t</div>",l+='\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>",l+="\t\t\t\t</div>",l+="\t\t\t</div>",l+="\t\t</div>",l+="\t</div>",l+="</div>",RVS.ENV.optimizer=jQuery(l),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,function(){if(RVS.V.avSizes=function(){var e=[];for(var t in void 0===RVS.V.sizes&&(RVS.V.sizes=["d","n","t","m"],RVS.V.sizesold=["desktop","notebook","tablet","mobile"]),RVS.V.sizes)!0===RVS.OZ.settings.size.custom[RVS.V.sizes[t]]&&e.push(RVS.V.sizes[t]);return e}(),RVS.OZ.toLoad={},void 0!==RVS.OZ&&void 0!==RVS.OZ.settings&&void 0!==RVS.OZ.settings.size){var e,l={w:s(RVS.OZ.settings.size.width),h:s(RVS.OZ.settings.size.height)},n=function(e,t,i,r){var a={w:e,h:t};e>t?e>i&&(a.w=i):t>r&&(a.h=r);return a}(l.w.max,l.h.max,1920,1920);for(var c 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(t({alias:RVS_LANG.modulbackground,url:RVS.OZ.settings.layout.bg.image,rw:n.w,rh:n.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 p=RVS.OZ.slideIDs[c];void 0!==RVS.OZ[p]&&void 0!==RVS.OZ[p].slide&&void 0!==RVS.OZ[p].slide.bg&&("image"!==RVS.OZ[p].slide.bg.type&&"external"!==RVS.OZ[p].slide.bg.type&&"html5"!==RVS.OZ[p].slide.bg.type&&"youtube"!==RVS.OZ[p].slide.bg.type&&"vimeo"!==RVS.OZ[p].slide.bg.type||void 0===RVS.OZ[p].slide.bg.image||""===RVS.OZ[p].slide.bg.image||RVS.OZ[p].slide.bg.image.length<5||(RVS.OZ[p].slide.title=void 0===RVS.OZ[p].slide.title?"Slide":RVS.OZ[p].slide.title,RVS.ENV.optlist.append(t({alias:"#"+(parseInt(c)+1)+" "+RVS.OZ[p].slide.title,url:RVS.OZ[p].slide.bg.image,rw:n.w,rh:n.h,pathURL:p+".slide.bg.image",pathSize:p+".slide.bg.imageSourceType",slideid:p})),RVS.OZ.toLoad[RVS.S.optUID]=RVS.OZ.list[RVS.S.optUID].url))}for(var c in RVS.OZ.slideIDs){var p=RVS.OZ.slideIDs[c];if(void 0!==RVS.OZ[p]&&void 0!==RVS.OZ[p].layers)for(var u in RVS.OZ[p].layers){var v,g=RVS.OZ[p].layers[u],m=0;if(void 0!==g.idle&&void 0!==g.idle.backgroundImage&&g.idle.backgroundImage.length>4&&(m={layerid:u,imgtype:"bg",bgsize:g.idle.backgroundSize,alias:g.alias,url:g.idle.backgroundImage,path:p+".layers."+u+".idle.",pathURL:p+".layers."+u+".idle.backgroundImage",pathSize:p+".layers."+u+".behavior.imageSourceType",slideid:p}),"image"===g.type&&void 0!==g.media&&void 0!==g.media.imageUrl&&g.media.imageUrl.length>4&&(m={layerid:u,imgtype:"image",alias:g.alias,url:g.media.imageUrl,pathURL:p+".layers."+u+".media.imageUrl",pathSize:p+".layers."+u+".behavior.imageSourceType",slideid:p}),"video"===g.type&&void 0!==g.media&&void 0!==g.media.posterUrl&&g.media.posterUrl.length>4&&(m={layerid:u,imgtype:"poster",alias:g.alias,url:g.media.posterUrl,pathURL:p+".layers."+u+".media.posterUrl",pathSize:p+".layers."+u+".behavior.imageSourceType",slideid:p}),"text"!==g.type&&"button"!==g.type||o(g),void 0!==m&&0!==m){var h={w:l.w.sizes,h:l.w.sizes};if(-1!==g.group.puid&&void 0!==g.group.puid){var S=RVS.OZ[p].layers[g.group.puid];"group"===S.type&&(h.w=s(S.size.width,h.w).sizes,h.h=s(S.size.height,h.h).sizes)}"column"===g.type?(m.rw=s(g.size.width,h.w,RVS.F.convertFraction(g.group.columnSize),g.group.columnbreakat).max,m.rh=s(g.size.height,h.h).max):(m.rw=s(g.size.width,h.w).max,m.rh=s(g.size.height,h.h).max),RVS.ENV.optlist.append(t(m)),RVS.OZ.toLoad[RVS.S.optUID]=RVS.OZ.list[RVS.S.optUID].url}}}for(c in RVS.OZ.fontFamilies)RVS.OZ.fontFamilies.hasOwnProperty(c)&&(v=i({alias:c,weights:RVS.OZ.fontFamilies[c].weights}),RVS.ENV.optlist.append(v));for(c in RVS.OZ.settings.addOns)RVS.OZ.settings.addOns.hasOwnProperty(c)&&!0===RVS.OZ.settings.addOns[c].enable&&(e=r({alias:void 0===RVS.LIB.ADDONS||void 0===RVS.LIB.ADDONS[c]||void 0===RVS.LIB.ADDONS[c].full_title?c:RVS.LIB.ADDONS[c].full_title,slug:c}),RVS.ENV.optlist.append(e));var f=void 0!==RVS.ENV.output_compress&&RVS.ENV.output_compress.length>0;RVS.ENV.optlist.append(a({alias:RVS_LANG.coretools,size:f?"43 kb":"116 kb",warning:f?"":RVS_LANG.enablecompression})),RVS.ENV.optlist.append(a({alias:RVS_LANG.corejs,size:f?"72 kb":"289 kb",warning:f?"":RVS_LANG.enablecompression})),RVS.ENV.optlist.append(a({alias:RVS_LANG.corecss,size:f?"11 kb":"55 kb",warning:f?"":RVS_LANG.enablecompression})),RVS.OZ.coreFullSize=f?134:481,function(){if(void 0===RVS.OZ.loadAddons||0==RVS.OZ.loadAddons.length)return;RVS.F.ajaxRequest("get_addons_sizes",{addons:RVS.OZ.loadAddons},function(e){if(e.success){for(var t in e.addons)if(RVS.F.isNumeric(parseInt(e.addons[t]))){var i=Math.round(parseInt(e.addons[t],0)/1e3);jQuery("#addrowsize_"+t).html(i+" kb"),RVS.OZ.addOnsFullSize+=i}d()}},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]));d()}},void 0,!0)}}(),jQuery("#rbm_optimizer_list").RSScroll({wheelPropagation:!1,suppressScrollX:!0}),RVS.F.RSDialog.center()}function t(e){RVS.S.optUID++;var t='<div id="OPTROW_'+RVS.S.optUID+'" class="optim_row" data-uid="'+RVS.S.optUID+'">';return t+='<div class="optim_cell op_c_a"><div class="opt_img" style="background-image:url('+e.url+')"></div>'+e.alias+"</div>",t+='<div class="optim_cell op_c_b">'+RVS_LANG.calculating+"</div>",t+='<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>',t+='<div class="optim_cell op_c_d"></div>',t+='<div class="optim_cell op_c_e"></div>',t+="</div>",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 i(e){e.alias=e.alias.trimStart(),e.alias=e.alias.trimEnd();var t=e.alias.split(" ").join("+"),i=e.alias.split(" ").join("_").split(",").join("_"),r=e.weights.toString().split(",").join("%2C"),a=function(e){if(null==RVS||void 0===RVS.LIB||void 0===RVS.LIB.FONTS)return!1;var t=!1;for(var i in RVS.LIB.FONTS)!0===t||!RVS.LIB.FONTS.hasOwnProperty(i)||"custom"!==RVS.LIB.FONTS[i].type&&"websafe"!==RVS.LIB.FONTS[i].type||(t=RVS.LIB.FONTS[i].label==e);return t}(e.alias),o='<div class="optim_row">';return o+='<div class="optim_cell op_c_a"><i class="material-icons">text_fields</i>'+e.alias+" "+e.weights.toString()+"</div>",o+='<div class="optim_cell op_c_b" id="fontrowsize_'+i+'">'+(!0===a?"N.A":RVS_LANG.calculating)+"</div>",o+='<div class="optim_cell op_c_c"></div>',o+='<div class="optim_cell op_c_d"></div>',o+='<div class="optim_cell op_c_e"></div>',o+="</div>",o=jQuery(o),!0!==a&&function(e,t,i){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){if(this.readyState==this.DONE){var e=[],a=r.response.split("url(");for(var o in a)if("h"===a[o][0]||"H"===a[o][0]){var s=a[o].split(") format");-1==jQuery.inArray(s[0],e)&&e.push(s[0])}for(var n in e)l(e[n],t,i)}},r.onerror=function(e){jQuery("#fontrowsize_"+i)[0].innerHTML="N.A."},r.send()}("https://fonts.googleapis.com/css?family="+t+":"+r,e.alias,i),o}function r(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+='<div class="optim_cell op_c_a"><i class="material-icons">extension</i>'+e.alias+"</div>",t+='<div class="optim_cell op_c_b" id="addrowsize_'+e.slug+'">'+RVS_LANG.calculating+"</div>",t+='<div class="optim_cell op_c_c"></div>',t+='<div class="optim_cell op_c_d"></div>',t+='<div class="optim_cell op_c_e"></div>',t+="</div>",t=jQuery(t)}function a(e){var t='<div class="optim_row">';return t+='<div class="optim_cell op_c_a"><i class="material-icons">code</i>'+e.alias+"</div>",t+='<div class="optim_cell op_c_b">'+e.size+"</div>",t+='<div class="optim_cell op_c_c"></div>',t+='<div class="optim_cell op_c_d">'+e.warning+"</div>",t+='<div class="optim_cell op_c_e"></div>',t+="</div>",t=jQuery(t)}function o(e){for(var t in void 0!==e.idle&&void 0===e.idle.fontFamily&&(e.idle.fontFamily="Roboto"),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}function l(e,t,i){var r=new XMLHttpRequest;r.open("HEAD",e,!0),r.onreadystatechange=function(){if(this.readyState===this.DONE){var e=parseInt(r.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",p()}},r.onerror=function(e){jQuery("#fontrowsize_"+i)[0].innerHTML="N.A."},r.send()}function s(e,t,i,r){var a=0,o={};for(var l in RVS.V.avSizes){var s=a;void 0!==i?("notebook"===r&&jQuery.inArray(RVS.V.avSizes[l],["t","m","n"])>=0&&(i=1),"mobile"===r&&jQuery.inArray(RVS.V.avSizes[l],["m"])>=0&&(i=1),"tablet"===r&&jQuery.inArray(RVS.V.avSizes[l],["t","m"])>=0&&(i=1),s=t[RVS.V.avSizes[l]]*i):(void 0!==e&&void 0!==e[RVS.V.avSizes[l]]&&(s=void 0!==e[RVS.V.avSizes[l]].v?RVS.F.isNumeric(parseInt(e[RVS.V.avSizes[l]].v))?e[RVS.V.avSizes[l]].v:a:RVS.F.isNumeric(parseInt(e[RVS.V.avSizes[l]]))?e[RVS.V.avSizes[l]]:a),s=(s+"").indexOf("%")>=0?t[RVS.V.avSizes[l]]*(parseInt(s,0)/100):parseInt(s,0)),a=Math.max(s,a),o[RVS.V.avSizes[l]]=s}return{max:parseInt(a,0),sizes:o}}function n(e){e.h,e.w;return 0===e.rh&&0===e.rw&&(e.rh=e.h,e.rw=e.w),0===e.rh&&(e.rh=e.rw/e.w*e.h),0===e.rw&&(e.rw=e.rh/e.h*e.w),{width:e.rw,height:e.rh}}function d(){for(var e in RVS.OZ.minFullSize=0,RVS.OZ.list)if(RVS.OZ.list.hasOwnProperty(e)){var t,i,r,a,o=RVS.OZ.list[e],l=jQuery(o.row.find(".op_c_c")),s={index:-1,val:0},d={index:-1,val:999999},u="width",v=0,g=0,m=0,h=0,S=[];if(void 0!==o.selected){if(RVS.F.isNumeric(o.selected.size)){o.currentSize=o.selected.size,o.currentUrl=o.selected.url;var f=Math.round(o.selected.size/1e3)+" kb";o.row.find(".op_c_b")[0].innerHTML=f}(t=n({rw:o.rw,rh:o.rh,w:o.selected.width,h:o.selected.height})).width<t.height&&o.selected.width>o.selected.height&&(u="height"),"contain"===o.bgsize&&(u="width"===u?"height":"width")}if(void 0!==t){for(var b in o.images)if(o.images.hasOwnProperty(b)){var R=o.images[b][u]/t[u]*100/3;if(R>=33&&R<=67&&g++,1==o.images[b].default)i=R>=33&&R<=67,r=R>67,m=R,h=o.images[b].size,v=c({cont:l,ozindex:e,imgindex:b,left:R>100?100:R,amnt:v,class:"selected original"});else if(o.images[b][u]===t[u]||2*o.images[b][u]===t[u])v=c({cont:l,ozindex:e,imgindex:b,left:R>100?100:R,amnt:v});else if(s.val<R&&R<33)s={index:b,val:R,size:o.images[b].size};else if(d.val>R&&R>67)d={index:b,val:R,size:o.images[b].size};else if(R>33&&R<67){for(var y in a=R<38?38:R>62?62:R,S)Math.abs(S[y]-a)<3&&(a+=a<S[y]?-3:3);S.push(a),v=c({cont:l,ozindex:e,imgindex:b,left:a,amnt:v})}o.images[b].cs=R}-1!==s.index&&(Math.abs(s.val-m)<3&&(s.val+=m<s.val?3:-3),a=s.val<=3?3:s.val>30?30:s.val,v=c({cont:l,ozindex:e,imgindex:s.index,left:a,amnt:v})),-1!==d.index&&(!0!==r||m>d.val)&&(Math.abs(d.val-m)<3&&(d.val+=m<d.val?3:-3),a=d.val>=97?97:d.val<70?70:d.val,v=c({cont:l,ozindex:e,imgindex:d.index,left:a,amnt:v}));var _=h;-1!==s.index&&RVS.F.isNumeric(parseInt(s.size,0))?_=h>s.size?parseInt(s.size,0):h:-1!==d.index&&RVS.F.isNumeric(parseInt(d.size,0))&&(_=h>d.size?parseInt(d.size,0):h),RVS.OZ.minFullSize+=_}var V="";0===g?V=RVS_LANG.chgimgsizesrc:g>0&&!0!==i&&(V=RVS_LANG.pickandim),""!==V&&(o.row.find(".op_c_d")[0].innerHTML=V),o.row[0].dataset.currentinfo=V}RVS.OZ.minFullSize=RVS.OZ.minFullSize/1e3,p(!0)}function c(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 p(e){var t=[];for(var i in RVS.OZ.slideFullSize=0,RVS.OZ.list)if(RVS.OZ.list.hasOwnProperty(i)){var r=RVS.OZ.list[i];if(RVS.F.isNumeric(r.currentSize)&&-1==jQuery.inArray(r.currentUrl,t)){t.push(r.currentUrl),RVS.OZ.slideFullSize+=Math.round(r.currentSize/1e3);var a=Math.round(r.currentSize/1e3)+" kb";r.row.find(".op_c_b")[0].innerHTML=a}}for(var o in RVS.OZ.fontsFullSize=0,RVS.OZ.fontFamilies)RVS.OZ.fontFamilies.hasOwnProperty(o)&&void 0!==RVS.OZ.fontFamilies[o].size&&RVS.F.isNumeric(parseInt(RVS.OZ.fontFamilies[o].size))&&(RVS.OZ.fontsFullSize+=Math.round(parseInt(RVS.OZ.fontFamilies[o].size)/1e3));!0===e&&(RVS.OZ.slideFullSizeCache=RVS.OZ.slideFullSize);var l=parseInt(RVS.OZ.fontsFullSize)+parseInt(RVS.OZ.addOnsFullSize)+parseInt(RVS.OZ.coreFullSize),s=parseInt(RVS.OZ.slideFullSizeCache)+l,n=parseInt(RVS.OZ.minFullSize)+l,d=parseInt(RVS.OZ.slideFullSize)+l,c=Math.round(n/s*100),p=Math.round((s-d)/s*100),u=s-d==0?"":" ( "+(s<d?"+":"-")+Math.abs(p)+"% ~ "+(s-d)+" kb)";jQuery("#optimizer_fullsize").html(d+" kb"),jQuery("#optimizer_cachedsize").html(RVS.OZ.slideFullSizeCache+l+" kb"),jQuery("#optimized_prec").html(RVS_LANG.sizeafteroptim+u),jQuery("#optimize_to_save").html(RVS_LANG.loadedmediainfo+" "+(100-c)+"% ~ "+(s-n)+" kb")}function u(e){if(e.index<e.slides.length){e.order=void 0===e.order?0:e.order,e.order++;var t=e.slides[e.index];if(jQuery.inArray(t+"",RVS.OZ.inWork)>=0){var i=JSON.stringify(RVS.OZ[e.slides[e.index]].slide),r=JSON.stringify(RVS.OZ[e.slides[e.index]].layers),a={slider_id:RVS.ENV.sliderID,slide_id:e.slides[e.index],params:i,layers:r,slide_order:e.order};RVS.DOC.trigger("rs_save_slide_params",[a]),RVS.F.ajaxRequest("save_slide",a,function(t){t.success&&(e.index++,u(e))},void 0,void 0,RVS_LANG.saveslide+'<br><span style="font-size:17px; line-height:25px;">"'+RVS.OZ[e.slides[e.index]].slide.title+'"</span>')}else e.index++,u(e)}else RVS.OZ.inWork=void 0===RVS.OZ.inWork?[]:RVS.OZ.inWork,void 0!==e.trigger&&e.trigger()}function v(){var e=JSON.stringify(RVS.OZ.settings),t=RVS.OZ.slideIDs.slice(),i=-1;for(var r in t)t.hasOwnProperty(r)&&(""+t[r]).indexOf("static")>=0&&(i=r);t.splice(i,1),RVS.F.ajaxRequest("save_slider",{slider_id:RVS.ENV.sliderID,params:e,slide_ids:t},function(e){e.success&&void 0!==e.missing&&e.missing.length>0&&u({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 g(e,t,i,r){if("string"==typeof t){var a=t.split("."),o=a.length,l=o-1,s=e;if(o)for(var n=0;n<o;n++)n<l&&void 0===s[a[n]]&&(s[a[n]]={}),n<l?s=s[a[n]]:s[a[n]]=i}}RVS.F.openOptimizer=function(t){if(function(){if(void 0!==RVS.S.optimizerListener)return;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){var t=jQuery(this),i=t.closest(".optim_row"),r=i.find(".op_c_d");r[0].innerHTML="Optimal: "+this.dataset.optim}),RVS.DOC.on("mouseleave",".ofsinfo",function(e){var t=jQuery(this),i=t.closest(".optim_row"),r=i.find(".op_c_d");i[0].dataset.currentinfo=void 0===i[0].dataset.currentinfo?"":i[0].dataset.currentinfo,r[0].innerHTML=i[0].dataset.currentinfo}),RVS.DOC.on("click mouseenter",".ofs_markpoint",function(e){var t=jQuery(this),i=t.closest(".optim_row"),r=i.find(".op_c_b"),a=i.find(".op_c_d"),o=i.find(".op_c_e"),l=i[0].dataset.uid,s=RVS.OZ.list[l].images[t[0].dataset.imgindex];if("mouseenter"===e.type)RVS.OZ.list[l].lastSize=RVS.OZ.list[l].currentSize,RVS.OZ.list[l].lastUrl=RVS.OZ.list[l].currentUrl;else{if(t.hasClass("selected"))return;RVS.OZ.list[l].lastSize=s.size,RVS.OZ.list[l].lastUrl=s.url}RVS.OZ.list[i[0].dataset.uid].currentSize=s.size,RVS.OZ.list[i[0].dataset.uid].currentUrl=s.url,a[0].innerHTML="Dimension: "+s.width+" x "+s.height,RVS.F.isNumeric(s.size)&&(r[0].innerHTML=Math.round(s.size/1e3)+" kb"),"mouseenter"!==e.type&&(RVS.OZ.list[l].pickedImage=t[0].dataset.imgindex,i.find(".ofs_markpoint.selected").removeClass("selected"),t.addClass("selected"),i[0].dataset.currentinfo=s.cs<31||s.cs>69?RVS_LANG.pickandim:"",!0!==s.default?o[0].innerHTML='<i class="material-icons">flash_on</i>':o[0].innerHTML=""),p()}),RVS.DOC.on("mouseleave",".ofs_markpoint",function(){var e=jQuery(this),t=e.closest(".optim_row"),i=t.find(".op_c_b"),r=t.find(".op_c_d"),a=t[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)&&(i[0].innerHTML=Math.round(RVS.OZ.list[a].lastSize/1e3)+" kb"),p()),t[0].dataset.currentinfo=void 0===t[0].dataset.currentinfo?"":t[0].dataset.currentinfo,r[0].innerHTML=t[0].dataset.currentinfo}),RVS.DOC.on("click","#rbm_optpanel_savebtn",function(){var e=[],t=[];for(var i in RVS.OZ.list)if(RVS.OZ.list.hasOwnProperty(i)&&void 0!==RVS.OZ.list[i].pickedImage){var r=RVS.OZ.list[i],a=r.images[r.pickedImage];!0!==a.default&&(-1==jQuery.inArray(r.slideid,e)&&e.push(r.slideid),void 0!==r.layerid&&t.push({slideid:r.slideid,layerid:r.layerid,type:r.imgtype,url:a.url}),g(RVS.OZ,r.pathURL,a.url),g(RVS.OZ,r.pathSize,r.pickedImage))}if(e.length>0)if(void 0!==RVS.SLIDER){for(i in e)"settings"!==e[i]&&-1==jQuery.inArray(e[i],RVS.SLIDER.inWork)&&RVS.SLIDER.inWork.push(e[i]),RVS.SLIDER[e[i]]=jQuery.extend(!0,RVS.SLIDER[e[i]],RVS.OZ[e[i]]);for(i in t)if(t.hasOwnProperty(i)){var o=t[i],l=jQuery("#_lc_"+o.slideid+"_"+o.layerid+"_");l.length>0&&("image"===o.type&&l.find("._lc_image_inside_").attr("src",o.url),RVS.F.drawHTMLLayer({uid:o.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(i in e)RVS.OZ.inWork=void 0===RVS.OZ.inWork?[]:RVS.OZ.inWork,"settings"!==e[i]&&-1==jQuery.inArray(e[i],RVS.OZ.inWork)&&RVS.OZ.inWork.push(e[i]),RVS.OZ[e[i]]=jQuery.extend(!0,RVS.OZ[e[i]],RVS.OZ[e[i]]);for(i in t)if(t.hasOwnProperty(i)){var o=t[i],l=jQuery("#_lc_"+o.slideid+"_"+o.layerid+"_");l.length>0&&("image"===o.type&&l.find("._lc_image_inside_").attr("src",o.url),RVS.F.drawHTMLLayer({uid:o.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)),u({index:0,slides:RVS.OZ.slideIDs,trigger:v,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!==t&&(void 0!==t.sliderid&&""!==t.sliderid||void 0!==t.alias&&""!==t.alias)){RVS.F.showWaitAMinute({fadeIn:0,text:RVS_LANG.loadingcontent});var i={};void 0!==t.alias&&""!==t.alias&&(i.alias=t.alias),void 0!==t.sliderid&&""!==t.sliderid&&(i.id="slider-"+t.sliderid),setTimeout(function(){RVS.F.ajaxRequest("get_full_slider_object",i,function(t){if(void 0===t.id)RVS.F.showWaitAMinute({fadeOut:500,text:RVS_LANG.preparingdatas});else{for(var i in RVS.ENV.sliderid=t.id,RVS.ENV.sliderID=t.id,RVS.F.showWaitAMinute({fadeIn:500,text:RVS_LANG.preparingdatas}),t.slider_params.alias=t.alias,t.slider_params.title=t.title,RVS.OZ={slideIDs:[]},RVS.OZ.settings=jQuery.extend(!0,{},t.slider_params),void 0!==t.static_slide&&null!=t.static_slide.params&&void 0!==t.static_slide.params.static&&!0===t.static_slide.params.static.isstatic&&(RVS.OZ[t.static_slide.id]={slide:jQuery.extend(!0,{},t.static_slide.params),layers:jQuery.extend(!0,{},t.static_slide.layers)},RVS.OZ.slideIDs.push(t.static_slide.id)),t.slides)if(t.slides.hasOwnProperty(i)){let e=t.slides[i];RVS.OZ[e.id]={slide:jQuery.extend(!0,{},e.params),layers:jQuery.extend(!0,{},e.layers)},RVS.OZ.slideIDs.push(e.id)}e(),RVS.F.showWaitAMinute({fadeOut:500,text:RVS_LANG.preparingdatas})}},void 0,!0),RVS.F.showWaitAMinute({fadeOut:0,text:RVS_LANG.loadingcontent})},100)}else void 0!==RVS.SLIDER&&(RVS.S.optimID=RVS.SLIDER.id,RVS.OZ=jQuery.extend(!0,{},RVS.SLIDER),e())},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 e={images:"photo_camera",modules:"aspect_ratio",moduletemplates:"aspect_ratio",layers:"layers",videos:"videocam",svgcustom:"copyright",svgs:"copyright",fonticons:"font_download",objects:"filter_drama"},t={xs:10,s:25,m:50,l:75,o:100},i={lottie:"Lottie Addon",slicey:"Slicey Addon",bubblemorph:"Bubble Morph Addon",shapebuilder:"Shape Builder Addon"};function r(t){jQuery("#ol_filter_"+t).remove(),y({groupType:t,groupAlias:RVS_LANG["ol_"+t],icon:e[t],count:RVS.LIB.OBJ.types[t].count,tags:RVS.LIB.OBJ.types[t].tags,custom:RVS.LIB.OBJ.types[t].upload,groupopen:!0})}function a(e,t){var i=void 0!==e.bg.src&&e.bg.src.length>3?e.bg.src:RVS.ENV.plugin_url+"admin/assets/images/sources/"+e.source+".png",r=void 0!==e.bg.style?e.bg.style:{};switch(Array.isArray(r)&&(r=RVS.F.toObject(r)),e.bg.type){case"image":r.backgroundImage="url("+i+")",tpGS.gsap.set(t,r);break;case"color":case"colored":case"solid":var a=window.RSColor.get(r["background-color"]);a.indexOf("gradient")>=0?tpGS.gsap.set(t,{backgroundImage:a}):tpGS.gsap.set(t,{backgroundColor:a});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 o(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&&i.plugin_require.length>0)for(var r in i.plugin_require)!1===i.plugin_require[r].installed&&RVS.LIB.OBJ.addonsToInstall.push(i.plugin_require[r].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{p({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();var a=void 0!==sliderLibrary?sliderLibrary.selectedFolder:-1;if(-1!==a&&(a=RVS.F.getOVSliderIndex(a),RVS.F.ajaxRequest("save_slider_folder",{id:sliderLibrary.sliders[a].id,children:sliderLibrary.sliders[a].children},function(e){}),-1!==sliderLibrary.sliders[a].parent)){var o=RVS.F.getOVSliderIndex(sliderLibrary.sliders[a].parent);RVS.F.ajaxRequest("save_slider_folder",{id:sliderLibrary.sliders[o].id,children:sliderLibrary.sliders[o].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 s(e){var t=!1;for(var r in RVS.S.extendedLayerTypes)1!=t&&RVS.S.extendedLayerTypes.hasOwnProperty(r)&&(r!==e&&RVS.S.extendedLayerTypes[r].subtype!==e||(t=!0));return 0==t&&(t=!i.hasOwnProperty(e)),t}function n(e,t){var r,a=void 0!==e.subtype&&""!==e.subtype&&0==s(e.subtype)?"disabled":"",o='\t<div id="layi_'+e.uid+'" class="'+a+" layimpli_element layimpli_level_"+t+'" data-uid="'+e.uid+'" data-type="'+e.type+'" data-puid="'+e.group.puid+'">';o+='\t\t<i class="layimpli_icon material-icons">'+RVS.F.getLayerIcon(e.linebreak?"linebreak":e.type,e.subtype)+"</i>",o+='\t\t<div class="layimpli_icon_title">'+e.alias+"</div>",o+='\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==s(e.subtype)&&(o+='\t\t<div class="layimpli_icon_required">Required: '+(r=e.subtype,void 0!==i&&""!==i&&void 0!==i[r]?i[r]:r)+"</div>"),e.actions.action.length>0&&(o+='\t\t<div class="layimpli_icon_dimension">'+RVS_LANG.layerwithaction+"</div>");var l=RVS.F.layerFrameTriggeredBy({layerid:e.uid,src:RVS.LIB.OBJ.items.moduleslides[RVS.LIB.OBJ.selectedSlideId].layers});return""!==l.alias&&""!==l.uid&&(o+='\t\t<div class="layimpli_icon_dimension">'+RVS_LANG.triggeredby+" "+l.alias+"</div>"),o+='\t\t<div class="layimpli_icon_checbox material-icons">radio_button_unchecked</div>',o+="\t</div>"}function d(e,t){var i;for(var r in RVS.LIB.OBJ.items[t])RVS.LIB.OBJ.items[t].hasOwnProperty(r)&&(i=""+RVS.LIB.OBJ.items[t][r].id==""+e?RVS.LIB.OBJ.items[t][r]:i);return i}function c(e){return function(e,t){var i;for(var r in RVS.LIB.OBJ.items[t])RVS.LIB.OBJ.items[t].hasOwnProperty(r)&&(i=RVS.LIB.OBJ.items[t][r].uid===e?RVS.LIB.OBJ.items[t][r]:i);return i}(e,"moduletemplates")}function p(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 r in RVS.LIB.OBJ.items.moduletemplateslides)RVS.LIB.OBJ.items.moduletemplateslides.hasOwnProperty(r)&&RVS.LIB.OBJ.items.moduletemplateslides[r].parent==RVS.LIB.OBJ.items.moduletemplates[i].id&&(RVS.LIB.OBJ.items.moduletemplateslides[r].installed=e.hiddensliderid,RVS.LIB.OBJ.items.moduletemplateslides[r].slideid=e.slideids[parseInt(RVS.LIB.OBJ.items.moduletemplateslides[r].slideid,0)],void 0!==RVS.LIB.OBJ.items.moduletemplateslides[r].ref&&RVS.LIB.OBJ.items.moduletemplateslides[r].ref.find(".installed_notinstalled").html(RVS_LANG.installed))}function u(e){e&&jQuery("#searchobjects").val("");var t=jQuery("li.ol_filter_listelement.selected");t.length>0&&void 0!==t&&jQuery("#searchobjects").attr("placeholder",RVS_LANG.search+" "+b(t[0].dataset.title).t+" ...")}function v(){jQuery(".olibrary_item.selected").removeClass("selected"),RVS.LIB.OBJ.container_Underlay.hide(),jQuery("#obj_library_mediapreview").remove(),RVS.LIB.OBJ.moduleInFocus=!1}function g(){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 m(){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&&e>0&&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&&e>0&&(t=!0),(RVS.LIB.OBJ.selectedPage>=4&&-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 h(e){var t=[];t.push(e);for(var i=0;-1!==e&&20!==i;){e=-1!==RVS.F.getSliderIndex(e)&&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}function S(e){return e.filter===e.o.source||e.filter===e.o.type||e.filter===e.o.size||jQuery.inArray(e.filter,e.o.tags)>=0||jQuery.inArray(e.filter,e.o.tag)>=0||e.filter==e.o.tag||e.filter==e.o.tags}function f(){RVS.LIB.OBJ.container_Filters.RSScroll({wheelPropagation:!1}),RVS.LIB.OBJ.container_OutputWrap.RSScroll({wheelPropagation:!1})}function b(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 R(e,t){setTimeout(function(){e.removeClass("inedit")},50);var i=e.find(".filter_tag_name_input"),r=e.find(".filter_tag_name");if(t){var a=i.val(),o=e[0].dataset.filter,l=e[0].dataset.type;RVS.F.ajaxRequest("edit_customlibrary_tags",{id:o,name:a,type:l},function(t){r[0].innerHTML=a,RVS.LIB.OBJ.types[l].tags[o]=a,e[0].dataset.title=a,RVS.F.updateCustomCategorySelectors(l)})}else i[0].value=r[0].innerHTML;window.ignoreCustomCategoryBlur=!0,i.blur()}function y(e){var t=void 0!==e.custom||void 0!==e.tags&&Object.keys(e.tags).length>0;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+='<ul class="ol_filter_group">',_html+='<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=new Array,r=new Array;for(var a in e.tags)if(e.tags.hasOwnProperty(a)){var o,l="moduletemplates"===e.groupType?b(e.tags[a]):{o:0,t:e.tags[a]};void 0!==e.tagIDs&&e.tagIDs[a];o='<li data-type="'+e.groupType+'" data-filter="'+a+'" data-title="'+RVS.F.capitalise(l.t)+'" class="ol_filter_listelement">',o+='<span class="filter_tag_name">'+l.t+"</span>",void 0!==e.custom&&(o+='<input class="filter_tag_name_input" value="'+l.t+'" type="text">',o+='<i class="filter_tag_name_edit material-icons">edit</i>',o+='<i class="filter_tag_name_delete material-icons">delete</i>',o+='<i class="filter_tag_name_check material-icons">check</i>',o+='<i class="filter_tag_name_cancel material-icons">close</i>',o+='<div class="ol_gradientbg"></div>'),o+="</li>",0==l.o?r.push(o):i[l.o]=o}for(var a in i)void 0!==i[a]&&(_html+=i[a]);for(var a in r)void 0!==r[a]&&(_html+=r[a]);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?(v(),RVS.LIB.OBJ.moduleInFocus=!1):RVS.F.closeObjectLibrary()}),RVS.DOC.on("click","#reset_objsorting",function(){v(),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){if(void 0!==t&&void 0!==t.eventparam){var i="#reset_objsorting"===t.eventparam?"datedesc"===t.val?0:1:"all"===t.val?0:1,r=1===i?"inline-block":"none";tpGS.gsap.set(t.eventparam,{autoAlpha:i,display:r})}void 0===t||t.ignoreRebuild||(void 0!==t.val&&!0!==t.ignoreCookie&&RVS.F.setCookie("rs6_library_pagination",t.val,360),v(),RVS.F.updateFilteredList({force:!0,keeppage:!1,noanimation:!1}))}),RVS.DOC.on("click",".ol_filter_listelement",function(){if(!(this.className.indexOf("inedit")>=0||this.className.indexOf("add_ol_new_custom_category")>=0)){var e=jQuery(this),t=e.closest(".ol_filter_type");if("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"),e.addClass("selected"),t.find(".ol_filter_headerelement").addClass("selected");else{var i=t.hasClass("open");jQuery(".ol_filter_type.open").removeClass("open"),i||t.addClass("open");var r=t.find(".ol_filter_group");0===r.find(".selected").length&&r.find(".ol_filter_listelement").first().trigger("click")}return u(),v(),!1}}),RVS.DOC.on("click","#ol_right_underlay",v),RVS.DOC.on("click",".ol_link_to_delete",function(){var e=this.dataset.librarytype,t=this.dataset.id;d(t,e),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:t,type:e},function(i){!function(e,t){var i;for(var r in RVS.LIB.OBJ.items[t])RVS.LIB.OBJ.items[t].hasOwnProperty(r)&&(i=""+RVS.LIB.OBJ.items[t][r].id==""+e?r:i);void 0!==i&&RVS.LIB.OBJ.items[t].splice(i,1)}(t,e),jQuery("#"+e+"_"+t).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 e=this.dataset.librarytype,t=this.dataset.event;if("modules"===e||"true"===RVS.ENV.activated||!0===RVS.ENV.activated)switch(e){case"modules":let g,m=jQuery(this).closest(".olibrary_item").attr("data-objid"),h=RVS.LIB.OBJ.items.modules,S=h.length;for(let e=0;e<S&&(g=h[e]).id!==m;e++);RVS.DOC.trigger(RVS.LIB.OBJ.success.modules,g),RVS.F.closeObjectLibrary();break;case"moduleslides":case"moduletemplateslides":var i=RVS.LIB.OBJ.items[this.dataset.librarytype][RVS.F.getModuleIndex(this.dataset.id,this.dataset.librarytype)];if(null==i.installed){var r=this.dataset.parentuid;RVS.F.ajaxRequest("import_template_slider",{uid:r},function(e){e.success&&(p({uid:r,hiddensliderid:e.hiddensliderid,children:!0,slideids:e.slider.slide_ids}),RVS.DOC.trigger(RVS.LIB.OBJ.success.slide,i.slideid),RVS.F.closeObjectLibrary())},void 0,void 0,RVS_LANG.installingtemplate+'<br><span style="font-size:17px; line-height:25px;">'+this.dataset.parenttitle+"</span>")}else RVS.DOC.trigger(RVS.LIB.OBJ.success.slide,i.slideid),RVS.F.closeObjectLibrary();break;case"moduletemplates":RVS.LIB.OBJ.container_Underlay.show(),RVS.LIB.OBJ.moduleInFocus=!0;var i=jQuery(this);if("moduletemplates"===this.dataset.librarytype){var a=i.closest(".olibrary_item"),o=a.find(".ol_template_info_wrap");a.addClass("selected");var l=a.offset().left;tpGS.gsap.set(o,{left:"auto",right:"auto"}),l+630>window.outerWidth+(RVS.S.isRTL?-300:0)?l-340>300?tpGS.gsap.set(o,{left:"auto",right:"100%",x:"-20px",transformOrigin:"100% 0%"}):tpGS.gsap.set(o,{left:a.width()-(l+630-window.outerWidth)+"px",zIndex:200,right:"auto",x:"20px",transformOrigin:"0% 0%"}):tpGS.gsap.set(o,{left:"100%",right:"auto",x:"20px",transformOrigin:"0% 0%"});var s=document.querySelectorAll(".redownloadTemplateState, .createBlankPageState");for(var n in s)s.hasOwnProperty(n)&&(s[n].checked=s[n].className.indexOf("redownloadTemplateState")>=0?RVS.LIB.OBJ.reDownloadTemplate:RVS.LIB.OBJ.createBlankPage,RVS.F.turnOnOffVisUpdate({input:s[n]}))}break;case"videos":var c=jQuery.extend(!0,RVS.LIB.OBJ.data,d(this.dataset.id,this.dataset.librarytype));RVS.F.ajaxRequest("load_library_object",{type:"video",id:this.dataset.id},function(e){e.success&&(c.img=e.cover,c.video=e.url,RVS.DOC.trigger(RVS.LIB.OBJ.success.video,c))}),RVS.F.closeObjectLibrary();break;case"layers":var u=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=u,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 v=function(e,t){var i;for(var r in RVS.LIB.OBJ.items[t])RVS.LIB.OBJ.items[t].hasOwnProperty(r)&&(i=RVS.LIB.OBJ.items[t][r].handle===e?RVS.LIB.OBJ.items[t][r]:i);return i}(this.dataset.handle,this.dataset.librarytype);"svgs"!==this.dataset.librarytype&&"svgcustom"!==this.dataset.librarytype||(v.svg=v.ref.find("svg"),v.svgfull=v.svg[0].innerHTML,v.path=v.svg.find("path").attr("d"),v.viewBox=v.svg[0].viewBox),RVS.DOC.trigger(RVS.LIB.OBJ.success.icon,v),RVS.F.closeObjectLibrary();break;default:if(void 0!==t)RVS.DOC.trigger(t);else{var v=d(this.dataset.id,this.dataset.librarytype);RVS.DOC.trigger(RVS.LIB.OBJ.success.custom,v),RVS.F.closeObjectLibrary()}}else RVS.F.showRegisterSliderInfo()}),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)*(t[this.dataset.size]/100))+"x"+Math.round(parseInt(e.dataset.h,0)*(t[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(){if("true"===RVS.ENV.activated||!0===RVS.ENV.activated){var e=jQuery.extend(!0,RVS.LIB.OBJ.data,d(this.dataset.id,this.dataset.librarytype));e.size=t[this.dataset.size],RVS.F.ajaxRequest("load_library_object",{type:t[this.dataset.size],id:this.dataset.id},function(t){t.success&&(e.img=t.url,RVS.DOC.trigger(RVS.LIB.OBJ.success.image,e))}),RVS.F.closeObjectLibrary()}else RVS.F.showRegisterSliderInfo()}),RVS.DOC.on("reBuildObjectLibrary",function(){v(),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(){v(),RVS.F.reBuildObjectLibrary();var e,t,i=0;for(var r in RVS.LIB.OBJ.items.moduleslides)RVS.LIB.OBJ.items.moduleslides.hasOwnProperty(r)&&RVS.LIB.OBJ.items.moduleslides[r].slider_id===RVS.LIB.OBJ.selectedModule&&(i++,e=RVS.LIB.OBJ.items.moduleslides[r].id,t=RVS.LIB.OBJ.items.moduleslides[r].installed);1===i&&"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&&e[0].dataset.preview.length>0&&window.open(e[0].dataset.preview,"_blank")}),RVS.DOC.on("mouseenter",".show_video_on_hover",function(){clearTimeout(window.showVideOnHoverTimer);var e=jQuery(this),t=e.closest(".olibrary_item"),i=t.find(".ol_template_info_wrap"),r=this.dataset.videosource;window.showVideOnHoverTimer=setTimeout(function(){t.find(".videopreview").append('<video id="obj_library_mediapreview" loop autoplay> <source src="'+r+'" 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)?e-340>300?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),v()}),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,v(),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(){v(),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(),m()}),RVS.WIN.on("resize",function(){RVS.LIB.OBJ.open&&(clearTimeout(window.resizedObjectLibraryTimeOut),window.resizedObjectLibraryTimeOut=setTimeout(function(){var e=g();e=e<1?1:e,v(),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&&(v(),"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),t={do:"add",type:this.dataset.librarytype,id:this.dataset.id};e.toggleClass("selected"),e.hasClass("selected")||(t.do="remove"),RVS.F.ajaxRequest("set_favorite",t,function(e){e.success&&(function(e){for(var t in RVS.LIB.OBJ.items[e.type])RVS.LIB.OBJ.items[e.type].hasOwnProperty(t)&&""+RVS.LIB.OBJ.items[e.type][t].id==""+e.id&&(RVS.LIB.OBJ.items[e.type][t].favorite="add"===e.do)}(t),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(){var e=jQuery(this);e.toggleClass("selected"),v(),RVS.F.updateFilteredList({force:!0,keeppage:!0,noanimation:!0})}),RVS.DOC.on("keyup","#searchobjects",function(){v(),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,"_"),r=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(r,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(e){if(RVS.LIB.OBJ.addonsToInstall.length>0){var t=RVS.LIB.OBJ.addonsToInstall[0];RVS.F.ajaxRequest("activate_addon",{addon:t},function(i){void 0!==RVS.LIB.ADDONS&&void 0!==RVS.LIB.ADDONS[t]&&1==RVS.LIB.ADDONS[t].installed?(RVS.F.addonInstalledFromTemplate(i,t),RVS.F.installSingleModuleTemplate(e)):(RVS.LIB.ADDONS[t].installed=!0,RVS.F.installSingleModuleTemplate(e))},void 0,void 0,RVS_LANG.installingaddon+'<br><span style="font-size:17px; line-height:25px;">'+RVS.LIB.OBJ.addonsToInstall[0]+"</span>")}else RVS.F.ajaxRequest("import_template_slider",e,function(t){t.success&&(RVS.LIB.OBJ.sliderPackageIds.push(t.slider.id),void 0!==RVS.LIB.OBJ.success&&void 0!==RVS.LIB.OBJ.success.slider&&RVS.DOC.trigger(RVS.LIB.OBJ.success.slider,t),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}),p({uid:e.uid,hiddensliderid:t.hiddensliderid})),RVS.F.closeObjectLibrary()},void 0,void 0,RVS_LANG.installtemplate+'<br><span style="font-size:17px; line-height:25px;">'+e.title+"</span>")},RVS.F.installModuleTemplateForPackage=function(e){if(RVS.LIB.OBJ.addonsToInstall.length>0){var t=RVS.LIB.OBJ.addonsToInstall[0];RVS.F.ajaxRequest("activate_addon",{addon:t},function(i){void 0!==RVS.LIB.ADDONS&&void 0!==RVS.LIB.ADDONS[t]&&1==RVS.LIB.ADDONS[t].installed?(RVS.F.addonInstalledFromTemplate(i,t),RVS.F.installModuleTemplateForPackage(e)):(RVS.LIB.ADDONS[t].installed=!0,RVS.F.installModuleTemplateForPackage(e))},void 0,void 0,RVS_LANG.installingaddon+'<br><span style="font-size:17px; line-height:25px;">'+RVS.LIB.OBJ.addonsToInstall[0]+"</span>")}else RVS.F.ajaxRequest("import_template_slider",e,function(t){t.success&&(t.silent=!0,t.ignoreAjaxFolderMove=!0,e.modal&&(t.slider.modal=jQuery.inArray(""+t.hiddensliderid,RVS.LIB.OBJ.sliderPackageModalsOrig)>=0||jQuery.inArray(t.uid,RVS.LIB.OBJ.sliderPackageModalsOrigUid)>=0,p({uid:e.uid,hiddensliderid:t.hiddensliderid,modal:t.slider.modal})),void 0!==RVS.LIB.OBJ.success&&void 0!==RVS.LIB.OBJ.success.slider&&RVS.DOC.trigger(RVS.LIB.OBJ.success.slider,t),RVS.LIB.OBJ.sliderPackageIds.push(t.slider.id),void 0!==t.map&&void 0!==t.map.slider&&(RVS.LIB.OBJ.sliderPackageReferenceMap.slider_map=jQuery.extend(!0,RVS.LIB.OBJ.sliderPackageReferenceMap.slider_map,t.map.slider)),void 0!==t.map&&void 0!==t.map.slides&&(RVS.LIB.OBJ.sliderPackageReferenceMap.slides_map=jQuery.extend(!0,RVS.LIB.OBJ.sliderPackageReferenceMap.slides_map,t.map.slides)),e.modal?t.slider.modal&&RVS.LIB.OBJ.sliderPackageModals.push(t.slider.id):(jQuery.inArray(""+t.hiddensliderid,RVS.LIB.OBJ.sliderPackageModalsOrig)>=0||jQuery.inArray(t.uid,RVS.LIB.OBJ.sliderPackageModalsOrigUid)>=0)&&RVS.LIB.OBJ.sliderPackageModals.push(t.slider.id),void 0!==RVS.LIB.OBJ.sliderPackageAdditionsUID[t.uid]&&(RVS.LIB.OBJ.sliderPackageAdditions[t.slider.id]=RVS.LIB.OBJ.sliderPackageAdditionsUID[t.uid]),e.modal||void 0!==RVS.LIB.OBJ.sliderPackageAdditionsInstalled[t.hiddensliderid]&&(RVS.LIB.OBJ.sliderPackageAdditions[t.slider.id]=RVS.LIB.OBJ.sliderPackageAdditionsInstalled[t.hiddensliderid])),e._.index++,o(e._)},void 0,void 0,RVS_LANG.installpackage+'<br><span style="font-size:17px; line-height:25px;">'+e._.name+" ("+(e._.index+1)+" / "+(e._.amount+1)+")</span>")},RVS.DOC.on("click",".olti_install_template",function(){if("true"===RVS.ENV.activated||!0===RVS.ENV.activated){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&&t.plugin_require.length>0)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})}else RVS.F.showRegisterSliderInfo()}),RVS.DOC.on("click",".olti_install_template_package",function(){if("true"===RVS.ENV.activated||!0===RVS.ENV.activated){if(void 0!==this.dataset&&void 0!==this.dataset.uids){var 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}})}}else RVS.F.showRegisterSliderInfo()}),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={},o(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){if(void 0!==RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType].upload){var t=e.originalEvent.dataTransfer;t.types&&(t.types.indexOf?-1!=t.types.indexOf("Files"):t.types.contains("Files"))&&!RVS.S.dragginginside&&0===jQuery("#filedrop").length&&RVS.F.browserDroppable.init({onlydrop:!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(t){e[t.handle]=t.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(){jQuery.inArray(this.dataset.type,e.types)>=0?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"),u(!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){RVS.F.removeModuleTemplatesFromLibrary(e),RVS.LIB.OBJ.refreshFromServer=!0,RVS.F.loadLibrary({modules:[e],event:"reBuildObjectLibrary"})},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){r(e)},RVS.F.loadLibrary=function(e){var t=[],i=[];for(var a in e.modules)e.modules.hasOwnProperty(a)&&(RVS.LIB.OBJ.types[e.modules[a]]=void 0===RVS.LIB.OBJ.types[e.modules[a]]?{}:RVS.LIB.OBJ.types[e.modules[a]],RVS.LIB.OBJ.items[e.modules[a]]=void 0===RVS.LIB.OBJ.items[e.modules[a]]?[]:RVS.LIB.OBJ.items[e.modules[a]],!0!==RVS.LIB.OBJ.types[e.modules[a]].loaded||0===RVS.LIB.OBJ.items[e.modules[a]].length?t.push(e.modules[a]):i.push(e.modules[a]));t.length>0&&RVS.F.ajaxRequest("load_module",{module:t,refresh_from_server:RVS.LIB.OBJ.refreshFromServer},function(t){if(t.success){for(var i in t.modules)if(t.modules.hasOwnProperty(i)){for(var a in RVS.LIB.OBJ.items[i]=void 0===RVS.LIB.OBJ.items[i]?[]:RVS.LIB.OBJ.items[i],t.modules[i].items)t.modules[i].items.hasOwnProperty(a)&&(RVS.LIB.OBJ.items[i][a]=t.modules[i].items[a],RVS.LIB.OBJ.items[i][a].libraryType=i,void 0===RVS.LIB.OBJ.items[i][a].id&&(RVS.LIB.OBJ.items[i][a].id=a));void 0!==t.modules[i].tags&&(RVS.LIB.OBJ.types[i].tags=t.modules[i].tags,r(i)),RVS.LIB.OBJ.types[i].loaded=!0}if(void 0!==e.event&&RVS.DOC.trigger(e.event,e.eventparam),RVS.LIB.OBJ.success&&RVS.LIB.OBJ.success.event){let e=RVS.LIB.OBJ.success.eventparam||!1;RVS.DOC.trigger(RVS.LIB.OBJ.success.event,e)}}}),i.length>0&&0===t.length&&void 0!==e.event&&RVS.DOC.trigger(e.event,e.eventparam),RVS.LIB.OBJ.refreshFromServer=!1},RVS.F.loadSimpleModule=function(e){var t=!1;for(var i in RVS.LIB.OBJ.items[e.modules[0]])RVS.LIB.OBJ.items[e.modules[0]].hasOwnProperty(i)&&(t=!0===t||RVS.LIB.OBJ.items[e.modules[0]][i].parent==e.moduleid);t?void 0!==e.event&&RVS.DOC.trigger(e.event,e.eventparam):RVS.F.ajaxRequest("load_module",{module:e.modules[0],module_id:e.moduleid,module_uid:e.module_uid,static:RVS.LIB.OBJ.staticalso},function(t){if(t.success){for(var i in t.modules)if(t.modules.hasOwnProperty(i)){RVS.LIB.OBJ.items[i]=void 0===RVS.LIB.OBJ.items[i]?[]:RVS.LIB.OBJ.items[i];var r=RVS.LIB.OBJ.items[i].length,a=RVS.F.getModuleIndex(e.moduleid,e.parenttype),o=RVS.LIB.OBJ.items[e.parenttype][a].title;for(var l in t.modules[i].items)t.modules[i].items.hasOwnProperty(l)&&(t.modules[i].items[l].libraryType=i,t.modules[i].items[l].moduleid=e.moduleid,t.modules[i].items[l].module_uid=e.module_uid,t.modules[i].items[l].parenttitle=o,t.modules[i].items[l].slideid=void 0===t.modules[i].items[l].id?l:t.modules[i].items[l].id,t.modules[i].items[l].id=parseInt(r,0)+parseInt(l,0),RVS.LIB.OBJ.items[i].push(t.modules[i].items[l]))}void 0!==e.event&&RVS.DOC.trigger(e.event,e.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 r=RVS.LIB.OBJ.items.moduletemplates[i];for(var a in r.plugin_require)if(r.plugin_require.hasOwnProperty(a)){var o=r.plugin_require[a].path.split("/");(o=o[o.length-1].split(".php")[0])!==e&&r.plugin_require[a].name!==e||(r.plugin_require[a].installed=!0,r&&r.ref&&r.ref.remove(),delete r.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)if(RVS.LIB.OBJ.items.modules[e].children.hasOwnProperty(t)){var i=RVS.F.getSliderIndex(RVS.LIB.OBJ.items.modules[e].children[t]);-1!==i&&(RVS.LIB.OBJ.items.modules[i].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=jQuery("#searchobjects").val().toLowerCase(),i=jQuery("#obj_fil_favorite").hasClass("selected");for(var r in"modules"===RVS.LIB.OBJ.selectedType&&RVS.F.updateParentAttributes(),RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType])if(RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType].hasOwnProperty(r)){var a=RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType][r];a.parent=void 0===a.parent?-1:a.parent;var o=h(a.parent),l={a:!i||a.favorite};l.a&&(l.samefolder=jQuery.inArray(RVS.LIB.OBJ.selectedFolder,o)>=0||jQuery.inArray(""+RVS.LIB.OBJ.selectedFolder,o)>=0,l.b=t.length>2&&l.samefolder&&a.title.toLowerCase().indexOf(t)>=0&&("all"==RVS.LIB.OBJ.selectedFilter||S({o:a,filter:RVS.LIB.OBJ.selectedFilter})),l.c=t.length<3&&RVS.LIB.OBJ.selectedType===a.libraryType&&"all"==RVS.LIB.OBJ.selectedFilter&&parseInt(a.parent,0)==RVS.LIB.OBJ.selectedFolder,l.d=t.length<3&&RVS.LIB.OBJ.selectedType===a.libraryType&&S({o:a,filter:RVS.LIB.OBJ.selectedFilter})&&l.samefolder,l.db="moduletemplates"===RVS.LIB.OBJ.selectedType&&-1!==RVS.LIB.OBJ.selectedPackage&&""+a.package_parent!="true"&&a.package_id==RVS.LIB.OBJ.selectedPackage,l.e="moduletemplateslides"===RVS.LIB.OBJ.selectedType||"moduleslides"===RVS.LIB.OBJ.selectedType,(l.b||l.c||l.d||l.e||l.db)&&(l.f=i&&a.favorite&&(-1==RVS.LIB.OBJ.selectedPackage||""+a.package_id==""+RVS.LIB.OBJ.selectedPackage),l.g="moduletemplates"===RVS.LIB.OBJ.selectedType&&(t.length>2||-1==RVS.LIB.OBJ.selectedPackage&&(null==a.package_id||"true"==a.package_parent)||-1!==RVS.LIB.OBJ.selectedPackage&&a.package_id==RVS.LIB.OBJ.selectedPackage&&"true"!=a.package_parent),l.h=("moduletemplateslides"===RVS.LIB.OBJ.selectedType||"moduleslides"===RVS.LIB.OBJ.selectedType)&&RVS.LIB.OBJ.selectedModule==a.parent,l.i="moduletemplates"!==RVS.LIB.OBJ.selectedType&&"moduletemplateslides"!==RVS.LIB.OBJ.selectedType&&"moduleslides"!==RVS.LIB.OBJ.selectedType,(l.f||l.g||l.h||l.i)&&RVS.LIB.OBJ.filteredList.push(a.id)))}RVS.LIB.OBJ.filteredList.length>1&&void 0!==RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType]&&void 0!==RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType].upload&&(" "+RVS.LIB.OBJ.filteredList[0]).indexOf("_99999")>=0&&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(e=void 0===e?{noanimation:!1}:e,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">';t+='<div class="rsl_breadcrumb" data-folderid="-1"><i class="material-icons">apps</i>'+RVS_LANG.simproot+"</div>",t+='<i class="rsl_breadcrumb_div material-icons">keyboard_arrow_right</i>';var i="";if(-1!==RVS.LIB.OBJ.selectedFolder){for(var r=RVS.LIB.OBJ.selectedFolder,a=0;-1!==r&&100!==a;){var o="moduleslides"===RVS.LIB.OBJ.selectedType?"modules":RVS.LIB.OBJ.selectedType,l=RVS.F.getModuleIndex(r,o);-1!==l&&"-1"!==l?(i='<div class="rsl_breadcrumb" data-folderid="'+r+'"><i class="material-icons">folder_open</i>'+RVS.LIB.OBJ.items[o][l].title+'</div><i class="rsl_breadcrumb_div material-icons">keyboard_arrow_right</i>'+i,r=RVS.LIB.OBJ.items[o][l].parent||-1,a++):(a=100,RVS.LIB.OBJ.selectedModule=-1,RVS.LIB.OBJ.selectedModuleTitle="",RVS.LIB.OBJ.selectedModuleType="",v(),"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+=-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>',t+=-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>":'<div id="rsl_bread_selected" class="rsl_breadcrumb"></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 s in RVS.LIB.OBJ.items[RVS.LIB.OBJ.lastSelectedType])void 0!==RVS.LIB.OBJ.items[RVS.LIB.OBJ.lastSelectedType][s].ref&&RVS.LIB.OBJ.items[RVS.LIB.OBJ.lastSelectedType][s].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"])>=0){for(var s in RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType])if(RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType].hasOwnProperty(s)){var n=RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType][s];jQuery.inArray(n.id,RVS.LIB.OBJ.pages[RVS.LIB.OBJ.selectedPage-1])>=0&&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:s,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:s,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(){if(RVS.LIB.OBJ.waitForLoad.length>0){if(RVS.LIB.OBJ.waitForLoadIndex<RVS.LIB.OBJ.waitForLoad.length){var 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)if(e.data.hasOwnProperty(t)){var i=e.data[t],r=RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType][i.ind];"img"===i.mediatype&&("object"==typeof r.img?r.img.url=i.url:r.img=i.url),"video"===i.mediatype&&("object"==typeof r.video_thumb?r.video_thumb.url=i.url:r.video_thumb=i.url)}RVS.F.finalDrawOfElements()}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>")}}else RVS.F.finalDrawOfElements()},RVS.F.loadCustomLibraryItems=function(e,t){var i=[];for(var r in RVS.LIB.OBJ.items[e])if(RVS.LIB.OBJ.items[e].hasOwnProperty(r)){var a=RVS.LIB.OBJ.items[e][r];jQuery.inArray(a.id,RVS.LIB.OBJ.pages[RVS.LIB.OBJ.selectedPage-1])>=0&&0==a.img&&i.push({ind:r,id:a.id,handle:a.handle})}if(i.length>0){var o=Math.round(i.length)+" "+RVS_LANG.elements+" ("+Math.round(i.length*t)/100+"MB)";RVS.F.ajaxRequest("download_lordicon_file",{handle:i},function(t){if(t.success){for(var i in t.data)if(t.data.hasOwnProperty(i)){var r=t.data[i];RVS.LIB.OBJ.items[e][r.ind].img=r.url}RVS.F.finalDrawOfElements()}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+" "+o+"</span>")}else 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.LIB.OBJ.items[e][0].tags.push(RVS.LIB.OBJ.selectedFilter),RVS.F.updateFilteredList(),RVS.F.finalDrawOfElements())},RVS.F.finalDrawOfElements=function(){for(var e in RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType])if(RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType].hasOwnProperty(e)){var t=RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType][e];jQuery.inArray(t.id,RVS.LIB.OBJ.pages[RVS.LIB.OBJ.selectedPage-1])>=0?(0,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),f()},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">';i+='\t<div class="olibrary_media_wrap"></div>',i+='\t<div class="olibrary_content_wrap">',i+="\t</div>",i+="</div>";var r=jQuery(i),o=r.find(".olibrary_content_wrap"),l=r.find(".olibrary_media_wrap"),s="",n="",d='<i class="olti_icon olti_green material-icons">check</i>',c='<i class="olti_icon olti_red material-icons">close</i>';switch(e.libraryType){case"moduletemplates":var p,u=!0,v=!0,g=!0;if(s='<div class="olibrary_content_left">',s+='\t<div class="olibrary_content_title">'+e.title+"</div>",s+="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>",s+='\t<div class="installed_notinstalled olibrary_content_info oc_gray">'+(e.installed?RVS_LANG.installed:RVS_LANG.notinstalled)+"</div>",s+="</div>",s+='<div class="olibrary_content_right">',s+='\t<i data-id="'+e.id+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>',s+="</div>",n+='<div class="ol_template_info_wrap">',n+='<div class="olti_title">'+e.title+"</div>",n+=e.description,n+='<div class="div30"></div>',n+='<div class="olti_title">'+RVS_LANG.setupnotes+"</div>",n+=e.setup_notes,(void 0!==e.required||void 0!==e.plugin_require&&null!==e.plugin_require)&&(n+='<div class="div30"></div>',n+='<div class="olti_title">'+RVS_LANG.requirements+"</div>",void 0!==e.required&&(n+='<div class="olti_content">'+(RVS.F.compareVersions(e.required,RVS.ENV.revision)?d:c)+"Slider Revolution Version "+e.required+"</div>"),0==RVS.F.compareVersions(e.required,RVS.ENV.revision)&&(u=!1),void 0!==e.plugin_require&&null!==e.plugin_require))for(var m in e.plugin_require)e.plugin_require.hasOwnProperty(m)&&(n+='<div class="olti_content">'+("true"==e.plugin_require[m].installed||1==e.plugin_require[m].installed?d:c)+'<a href="'+e.plugin_require[m].url+'" target="_blank" rel="noopener">'+e.plugin_require[m].name+"</a></div>","true"!==e.plugin_require[m].installed&&!0!==e.plugin_require[m].installed&&(v=!1));u=!1!==RVS.ENV.activated&&u,"editor"===RVS.LIB.OBJ.context?"true"==e.package_parent?r.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>'):v&&u?r.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>'):r.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?r.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>'):r.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&&(p=function(e){var t,i=[],r=!0,a=[];for(var 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 l=[];for(var o in i)void 0!==i[o]&&void 0!==i[o].uid&&l.push(i[o].uid);if(void 0!==t)for(var s in t.plugin_require)"true"!=t.plugin_require[s].installed&&(r=!1),a.push(t.plugin_require[s]);return{installable:r,uids:l,addons:a}}({packageId:e.package_id}),"true"!=e.package_parent&&!1===p.installable&&(g=!1)),n+='<div class="div30"></div>',n+='<div class="olti_title">'+RVS_LANG.availableversion+"</div>",n+='<div class="olti_content">'+e.version+"</div>",n+='<div class="div30"></div>';var h=!1;if("true"!=e.package_parent&&(RVS.ENV.activated?n+=u?'<div data-title="'+e.title+'" data-uid="'+e.uid+'" class="olti_btn olti_install_template"><i class="material-icons">file_download</i>'+(v?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>":(h=!0,n+='<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&&(n+='<div class="div10"></div>')),void 0!==e.package_id&&-1!==e.package_id&&(RVS.ENV.activated&&u?n+='<div data-package="'+e.package+'" data-folderuid="'+e.uid+'" data-uids="'+p.uids.toString()+'" class="olti_btn olti_install_template_package"><i class="material-icons">file_download</i>'+(u&&g?RVS_LANG.doinstallpackage:RVS_LANG.installpackageandaddons)+"</div>":u?h||(n+='<div class="olti_btn olti_install_template_package notinstallable"><i class="material-icons">file_download</i>'+RVS_LANG.licencerequired+"</div>"):n+='<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&&u||void 0!==e.package_id&&-1!==e.package_id&&u)&&(n+='<div class="div20"></div>',n+='<div class="olti_content"><input type="checkbox" class="redownloadTemplateState"/>'+RVS_LANG.redownloadTemplate+"</div>",n+='<div class="olti_content"><input type="checkbox" class="createBlankPageState"/>'+RVS_LANG.createBlankPage+"</div>"),n+="</div>",void 0!==e.img&&"string"==typeof e.img)tpGS.gsap.set(l,{backgroundImage:"url("+e.img+")","background-size":"cover",backgroundPosition:"center center"});else if(void 0!==e.img&&"object"==typeof e.img){var S=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&&e.img.url.length>3&&tpGS.gsap.set(S,{backgroundImage:"url("+e.img.url+")"}),l.append(S)}break;case"moduleslides":case"moduletemplateslides":u=!0,g=!0;if(s='<div class="olibrary_content_left">',s+='\t<div class="olibrary_content_title">'+e.title+"</div>",s+="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)&&(u=!1),void 0!==e.plugin_require&&null!==e.plugin_require))for(var m in e.plugin_require)e.plugin_require.hasOwnProperty(m)&&"true"!=e.plugin_require[m].installed&&!0!==e.plugin_require[m].installed&&u&&(u=!1);if("layers"===RVS.LIB.OBJ.depth)r.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>'),a(e,l);else if(u&&(r.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>'),s+="moduletemplateslides"===e.libraryType?'\t<div class="installed_notinstalled olibrary_content_info oc_gray">'+(e.installed?RVS_LANG.installed:RVS_LANG.notinstalled)+"</div>":"",s+="</div>"),"moduletemplateslides"===e.libraryType){if(void 0!==e.img&&"string"==typeof e.img)tpGS.gsap.set(l,{backgroundImage:"url("+e.img+")","background-size":"cover",backgroundPosition:"center center"});else if(void 0!==e.img&&"object"==typeof e.img){S=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&&e.img.url.length>3&&tpGS.gsap.set(S,{backgroundImage:"url("+e.img.url+")"}),l.append(S)}}else a(e,l);break;case"svgs":s='<div class="olibrary_content_left">',s+='\t<div class="olibrary_content_title">'+e.title+"</div>",s+='\t<div class="olibrary_content_type oc_green">'+RVS_LANG.iconBIG+"</div>",s+='\t<div class="olibrary_content_info oc_gray">'+RVS_LANG.svgBIG+"</div>",s+="</div>",s+='<div class="olibrary_content_right">',s+='\t<i data-id="'+e.handle+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>',s+="</div>",r.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),l.append(t)}),l[0].className+=" patternbg";break;case"fonticons":s='<div class="olibrary_content_left">',s+='\t<div class="olibrary_content_title">'+e.title+"</div>",s+='\t<div class="olibrary_content_type oc_green">'+RVS_LANG.iconBIG+"</div>",s+='\t<div class="olibrary_content_info oc_gray">'+RVS_LANG.fontBIG+"</div>",s+="</div>",s+='<div class="olibrary_content_right">',s+='\t<i data-id="'+e.handle+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>',s+="</div>",r.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 f="";if(void 0!==e.classextension)for(var b in e.classextension)e.classextension.hasOwnProperty(b)&&(f+=" "+e.classextension[b]);"MaterialIcons"===e.tags[0]?l.append('<i class="fonticonobj material-icons">'+e.handle.replace(".","")+"</i>"):l.append('<i class="fonticonobj '+f+" "+e.handle.replace(".","")+'"></i>'),l[0].className+=" patternbg";break;case"modules":let t=!("undefined"==typeof RS_SHORTCODE_FAV||!RS_SHORTCODE_FAV.modules)&&RS_SHORTCODE_FAV.modules;if(t)for(let i in t)if(t.hasOwnProperty(i)&&t[i]===e.id){e.favorite=!0;break}if(e.premium&&r.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>"),s='<div class="olibrary_content_left">',s+='\t<div class="olibrary_content_title">'+e.title+"</div>",e.folder?s+='\t<div class="olibrary_content_type oc_package">'+RVS_LANG.folderBIG+"</div>":s+='\t<div class="olibrary_content_type oc_purple">'+RVS_LANG.moduleBIG+"</div>",e.folder||(s+='\t<div class="olibrary_content_info oc_gray">'+e.type+"</div>"),s+="</div>",s+='<div class="olibrary_content_right">',s+='\t<i data-id="'+e.id+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>',s+="</div>",e.folder){r.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(b=1;b<=4;b++){var R=jQuery('<div class="folder_img_placeholder folder_img_'+b+'"></div>');if(void 0!==e.children&&e.children.length>=b){var y=RVS.F.getSliderIndex(e.children[b-1]);-1!==y&&a(RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType][y],R)}l.append(R)}l.addClass("obj_med_darkbg")}else"editor"===RVS.LIB.OBJ.context?r.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?r.append('<div class="olibrary_media_overlay oneicon"><i data-librarytype="'+e.libraryType+'" data-elementtype="" class="material-icons ol_link_to_add">add</i></div>'):r.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>'),a(e,l);break;case"objects":if(s='<div class="olibrary_content_left">',s+='\t<div class="olibrary_content_title">'+e.title+"</div>",s+='\t<div class="olibrary_content_type oc_cyan">'+RVS_LANG.objectBIG+"</div>",s+='\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>",s+="</div>",s+='<div class="olibrary_content_right">',s+='\t<i data-id="'+e.id+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>',s+="</div>",!1===RVS.ENV.activated?r.append('<div class="olibrary_media_overlay"><div class="avtivationicon"><i class="material-icons">not_interested</i>'+RVS_LANG.licencerequired+"</div></div>"):r.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){S=jQuery('<img class="olib_png_obj" src="'+e.img+'">');l.append(S)}else if(void 0!==e.img&&"object"==typeof e.img){S=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&&e.img.url.length>3&&tpGS.gsap.set(S,{backgroundImage:"url("+e.img.url+")",backgroundRepeat:"no-repeat","background-size":"contain",backgroundPosition:"center center"}),l.append(S)}l[0].className+=" patternbg";break;case"images":if(s='<div class="olibrary_content_left">',s+='\t<div class="olibrary_content_title">'+e.title+"</div>",s+='\t<div class="olibrary_content_type oc_blue">'+RVS_LANG.imageBIG+"</div>",s+='\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>",s+="</div>",s+='<div class="olibrary_content_right">',s+='\t<i data-id="'+e.id+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>',s+="</div>",!1===RVS.ENV.activated?r.append('<div class="olibrary_media_overlay"><div class="avtivationicon"><i class="material-icons">not_interested</i>'+RVS_LANG.licencerequired+"</div></div>"):r.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(l,{backgroundImage:"url("+e.img+")","background-repeat":"no-repeat","background-size":"cover",backgroundPosition:"center center",backgroundRepeat:"no-repeat"});else if(void 0!==e.img&&"object"==typeof e.img){S=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&&e.img.url.length>3&&tpGS.gsap.set(S,{backgroundImage:"url("+e.img.url+")"}),l.append(S)}l[0].className+=" patternbg";break;case"videos":if(s='<div class="olibrary_content_left">',s+='\t<div class="olibrary_content_title">'+e.title+"</div>",s+='\t<div class="olibrary_content_type oc_blue">'+RVS_LANG.videoBIG+"</div>",s+='\t<div class="olibrary_content_info oc_gray">'+e.width+"x"+e.height+"</div>",s+="</div>",s+='<div class="olibrary_content_right">',s+='\t<i data-id="'+e.id+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>',s+="</div>",n+='<div class="ol_template_info_wrap videopreview">',n+="</div>",r[0].className+=" show_video_on_hover",r[0].dataset.videosource=e.video_thumb.url,!1===RVS.ENV.activated?r.append('<div class="olibrary_media_overlay"><div class="avtivationicon"><i class="material-icons">not_interested</i>'+RVS_LANG.licencerequired+"</div></div>"):r.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>'),l[0].dataset.videosource=e.video_thumb.url,void 0!==e.img&&"string"==typeof e.img)tpGS.gsap.set(l,{backgroundImage:"url("+e.img+")","background-repeat":"no-repeat","background-size":"cover",backgroundPosition:"center center"});else if(void 0!==e.img&&"object"==typeof e.img){S=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&&e.img.url.length>3&&tpGS.gsap.set(S,{backgroundImage:"url("+e.img.url+")"}),l.append(S)}break;case"layers":if(e.title=RVS.F.capitaliseAll(e.title.replace(/[_-]/g," ")),s='<div class="olibrary_content_left">',s+='\t<div class="olibrary_content_title">'+e.title+"</div>",s+='\t<div class="olibrary_content_type oc_blue">'+RVS_LANG.layersBIG+"</div>",s+='\t<div class="olibrary_content_info oc_gray">'+e.width+"x"+e.height+"</div>",s+="</div>",s+='<div class="olibrary_content_right">',s+='\t<i data-id="'+e.id+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>',s+="</div>",n+='<div class="ol_template_info_wrap videopreview">',n+="</div>",r[0].className+=" show_video_on_hover",r[0].dataset.videosource=e.video_thumb.url,!1===RVS.ENV.activated?r.append('<div class="olibrary_media_overlay"><div class="avtivationicon"><i class="material-icons">not_interested</i>'+RVS_LANG.licencerequired+"</div></div>"):r.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>'),l[0].dataset.videosource=e.video_thumb.url,void 0!==e.img&&"string"==typeof e.img)tpGS.gsap.set(l,{backgroundImage:"url("+e.img+")","background-repeat":"no-repeat","background-size":"cover",backgroundPosition:"center center"});else if(void 0!==e.img&&"object"==typeof e.img){S=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&&e.img.url.length>3&&tpGS.gsap.set(S,{backgroundImage:"url("+e.img.url+")",backgroundSize:"cover"}),l.append(S)}break;default:if(void 0!==RVS.F["newObjectLibraryItem_"+e.libraryType]){var _=RVS.F["newObjectLibraryItem_"+e.libraryType](e,r,l);void 0!==_.content&&(s+=_.content),void 0!==_.infocontent&&(n+=_.infocontent)}}if(""!==s&&o.append(s),""!==n&&r.append(n),void 0!==RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType]&&void 0!==RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType].upload){var V=r.find(".olibrary_custom_tagselector");void 0!==e.tags&&void 0!==e.tags[0]&&e.tags.length>0&&"All"!==e.tags[0]?V.val(e.tags[0]):V.val("all"),void 0!==V&&V.length>0&&V.ddTP()}return r},RVS.F.getCustomTagsOptions=function(e){var t='<option value="all">All</option>';if(void 0===RVS.LIB.OBJ.types[e]||void 0===RVS.LIB.OBJ.types[e].tags)return"";for(var i in RVS.LIB.OBJ.types[e].tags)if(RVS.LIB.OBJ.types[e].tags.hasOwnProperty(i)){var r=RVS.LIB.OBJ.types[e].tags[i];r=void 0===r?"All":r,t=t+'<option value="'+i+'">'+RVS.LIB.OBJ.types[e].tags[i]+"</option>"}return t},RVS.F.changeOLIBToFolder=function(e){RVS.LIB.OBJ.selectedFolder=e,RVS.F.resetAllFilters(),RVS.F.updateFilteredList({force:!0,keeppage:!1,noanimation:!1})},RVS.F.buildPagination=function(e){var t,i,r,a=RVS.F.getCookie("rs6_library_pagination");if(RVS.C.ol_pagination=null==RVS.C.ol_pagination?jQuery("#ol_pagination"):RVS.C.ol_pagination,t=i=r=g(),jQuery("#ol_right").scrollTop(0),e=void 0===e?{keeppage:!1}:e,RVS.LIB.OBJ.maxAmountPerPage!==t){RVS.C.ol_pagination.ddTP("destroy"),RVS.LIB.OBJ.maxAmountPerPage=t;for(var o=RVS.C.ol_pagination[0].options,l=0;l<=4;l++){var s=o[l];s.value=r,s.selected=s.value===a,s.innerHTML=RVS_LANG.show+" "+r+" "+RVS_LANG.perpage,r+=i}RVS.C.ol_pagination.ddTP()}RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType].length<t?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&&jQuery(".page_button.ol_pagination.selected").length>0?jQuery(".page_button.ol_pagination.selected").data("page"):1;var 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,RVS.LIB.OBJ.pageAmount>1)for(l=1;l<=RVS.LIB.OBJ.pageAmount;l++)n=l!==RVS.LIB.OBJ.selectedPage?"":"selected",RVS.LIB.OBJ.container_PaginationWrap[0].innerHTML+='<div data-page="'+l+'" class="'+n+' page_button ol_pagination">'+l+"</div>",1===l?RVS.LIB.OBJ.container_PaginationWrap[0].innerHTML+='<div data-page="-9999" class="page_button ol_pagination">...</div>':l===RVS.LIB.OBJ.pageAmount-1&&(RVS.LIB.OBJ.container_PaginationWrap[0].innerHTML+='<div data-page="9999" class="page_button ol_pagination">...</div>');for(var p in RVS.LIB.OBJ.pages=[],RVS.LIB.OBJ.pages.push([]),RVS.LIB.OBJ.filteredList)RVS.LIB.OBJ.filteredList.hasOwnProperty(p)&&(RVS.LIB.OBJ.pages[RVS.LIB.OBJ.pages.length-1].push(RVS.LIB.OBJ.filteredList[p]),++c===RVS.LIB.OBJ.itemPerPage&&(c=0,RVS.LIB.OBJ.pages.push([])));m()},RVS.F.buildObjectLibrary=function(t){var i='<div id="objectlibrary" class="rs_overview _TPRB_">';for(var r in i+='\t<div class="rb_the_logo">SR</div>',i+='\t<div id="ol_filters_wrap">',i+='\t\t<div id="ol_filters"></div>',i+="\t</div>",i+='\t<div id="upload_custom_files"></div>',i+='\t<div id="ol_right">',i+='\t\t<div id="ol_header" class="overview_header_footer">',i+='\t\t\t\t<div class="rs_fh_left"><input class="flat_input" id="searchobjects" type="text" placeholder="Search Modules ..."></div>',i+='\t\t\t\t<div class="rs_fh_right">',i+=' \t\t\t\t\t<div id="obj_fil_favorite"><i class="material-icons">star</i>'+RVS_LANG.ol_favorite+"</div>",i+='\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>",t||(i+=' \t\t\t\t<div id="obj_updatefromserver"><i class="material-icons">update</i>'+RVS_LANG.updatefromserver+"</div>"),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>',i+='\t\t\t\t\t<i id="ol_close" class="material-icons">close</i>',i+="\t\t\t\t</div>",i+='\t\t\t\t<div class="tp-clearfix"></div>',i+="\t\t</div>",i+='\t\t<div id="ol_results_wrap">',i+=' \t\t\t<div id="ol_right_underlay"></div>',i+='\t\t\t<div id="ol_results"></div>',i+="\t\t</div>",i+='\t\t<div id="ol_footer" class="overview_header_footer">',i+='\t\t\t<div class="rs_fh_left"><div id="rs_copyright">'+RVS_LANG.copyrightandlicenseinfo+'</div><div id="rs_extra_objlib_info"></div></div>',i+='\t\t\t<div class="rs_fh_right"><div id="ol_pagination_wrap" class="ol-pagination"></div>',i+='\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>',i+="\t\t\t</div>",i+='\t\t\t<div class="tp-clearfix"></div>',i+="\t\t</div>",i+="\t</div>",i+="</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(r)&&y({groupType:r,groupAlias:RVS_LANG["ol_"+r],icon:e[r],count:RVS.LIB.OBJ.types[r].count,tags:RVS.LIB.OBJ.types[r].tags,custom:RVS.LIB.OBJ.types[r].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(),f()},RVS.F.buildLayerListToSelect=function(e){var t,i='<div class="layimpli_main_wrap">',r={root:""};for(var a in e)e.hasOwnProperty(a)&&"zone"!==e[a].type&&(e[a]=jQuery.extend(!0,RVS.F.addLayerObj(e[a].type,void 0,!0),e[a]),void 0!==e[a].group&&"row"!==e[a].type&&"group"!==e[a].type&&"column"!==e[a].type&&(-1==e[a].group.puid?r.root+=n(e[a],0):(r[e[a].group.puid]=null==r[e[a].group.puid]?"":r[e[a].group.puid],t="column"==e[e[a].group.puid].type?2:null==e[e[a].group.puid].group.puid||-1==e[e[a].group.puid].group.puid||"-1"==e[e[a].group.puid].group.puid?1:"group"==e[e[e[a].group.puid].group.puid].type?2:3,r[e[a].group.puid]+=n(e[a],t))));for(var a in e)e.hasOwnProperty(a)&&"group"===e[a].type&&-1!=e[a].group.puid&&"-1"!=e[a].group.puid&&null!=e[a].group.puid&&"group"===e[a].type&&(r[e[a].group.puid]=null==r[e[a].group.puid]?"":r[e[a].group.puid],r[e[a].group.puid]+='<div class="layimpli_group_wrap">',t="group"==e[e[a].group.puid].type?1:"column"==e[e[a].group.puid].type?2:0,r[e[a].group.puid]+=n(e[a],t),r[e[a].group.puid]+='<div class="layimpli_group_inner">',void 0!==r[e[a].uid]&&(r[e[a].group.puid]+=r[e[a].uid]),r[e[a].group.puid]+="\t</div>",r[e[a].group.puid]+="</div>");for(var a in e)e.hasOwnProperty(a)&&"column"===e[a].type&&(r[e[a].group.puid]=null==r[e[a].group.puid]?"":r[e[a].group.puid],r[e[a].group.puid]+='<div class="layimpli_group_wrap">',r[e[a].group.puid]+=n(e[a],1),r[e[a].group.puid]+='<div class="layimpli_group_inner">',void 0!==r[e[a].uid]&&(r[e[a].group.puid]+=r[e[a].uid]),r[e[a].group.puid]+="\t</div>",r[e[a].group.puid]+="</div>");for(var a in e)e.hasOwnProperty(a)&&("row"!==e[a].type&&("group"!=e[a].type||-1!=e[a].group.puid&&"-1"!=e[a].group.puid&&null!=e[a].group.puid)||(i+='<div class="layimpli_group_wrap">',i+=n(e[a],0),i+='\t<div class="layimpli_group_inner">',void 0!==r[e[a].uid]&&(i+=r[e[a].uid]),i+="\t</div>",i+="</div>"));return i+=r.root,i+="</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"),function(e){if("column"===e.dataset.type||"row"===e.dataset.type||"group"===e.dataset.type){var t=e.parentNode.getElementsByClassName("layimpli_element");if(e.className.indexOf("selected")>=0)for(let e in t)t.hasOwnProperty(e)&&void 0!==t[e].className&&-1==t[e].className.indexOf("selected")&&(t[e].className+=" selected");else for(let e in t)t.hasOwnProperty(e)&&t[e].className&&(t[e].className=t[e].className.replace("selected",""))}if(-1!=e.dataset.puid&&e.className.indexOf("selected")>=0){var i=RVS.LIB.OBJ.items.moduleslides[RVS.LIB.OBJ.selectedSlideId].layers;void 0!==i[e.dataset.puid]&&"row"===i[e.dataset.puid].type&&(jQuery("#layi_"+e.dataset.puid).addClass("selected"),jQuery("#layi_"+i[e.dataset.puid].group.puid).addClass("selected"))}for(var r in RVS.LIB.OBJ.import.layers)if(void 0!==RVS.LIB.OBJ.import.layers[r].className&&"row"==RVS.LIB.OBJ.import.layers[r].dataset.type&&RVS.LIB.OBJ.import.layers[r].className.indexOf("selected")>=0){t=RVS.LIB.OBJ.import.layers[r].parentNode.getElementsByClassName("layimpli_element layimpli_level_1");for(let e in t)t.hasOwnProperty(e)&&void 0!==t[e].className&&-1==t[e].className.indexOf("selected")&&(t[e].className+=" selected")}}(this),function(){for(var e in RVS.LIB.OBJ.import.toImport=[],RVS.LIB.OBJ.import.layers){if(!RVS.LIB.OBJ.import.layers.hasOwnProperty(e))continue;let t=RVS.LIB.OBJ.import.layers[e].dataset;void 0!==RVS.LIB.OBJ.import.layers[e]&&void 0!==RVS.LIB.OBJ.import.layers[e].className&&(RVS.LIB.OBJ.import.layers[e].className.indexOf("selected")>=0?(RVS.LIB.OBJ.import.toImport.push(t.uid),RVS.LIB.OBJ.import.layers[e].getElementsByClassName("layimpli_icon_checbox")[0].innerHTML="check_circle_outline"):RVS.LIB.OBJ.import.layers[e].getElementsByClassName("layimpli_icon_checbox")[0].innerHTML="radio_button_unchecked")}jQuery("#layers_import_feedback").html(RVS.LIB.OBJ.import.toImport.length>0?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(){v(),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,document.body.style.overflow=RVS.S.bodybeforeOpenLibrary},RVS.F.isItemExistsInOl=function(e,t){var i;for(var r in RVS.LIB.OBJ.items[t])RVS.LIB.OBJ.items[t].hasOwnProperty(r)&&!0!==i&&(i=""+RVS.LIB.OBJ.items[t][r].id==""+e);return i},RVS.F.getSliderIndex=function(e){var t=-1;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].id==e&&(t=i);return t},RVS.F.getModuleIndex=function(e,t){var i=-1;for(var r in RVS.LIB.OBJ.items[t])RVS.LIB.OBJ.items[t].hasOwnProperty(r)&&RVS.LIB.OBJ.items[t][r].id==e&&(i=r);return i},RVS.F.updateCustomCategorySelectors=function(e){var t=RVS.LIB.OBJ.items[e];for(var i in t)if(t.hasOwnProperty(i)&&void 0!==t[i].ref){var r=t[i].ref.find(".olibrary_custom_tagselector");void 0!==r&&r.length>0&&(r[0].innerHTML=RVS.F.getCustomTagsOptions(e),void 0!==t[i].tags&&void 0!==t[i].tags[0]&&r.val(t[i].tags[0]),r.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 e=jQuery(this).closest(".ol_filter_listelement"),t=(e.find(".filter_tag_name_input"),e.find(".filter_tag_name"),e[0].dataset.filter),i=e[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:t,type:i},function(r){var a;a=t,delete RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType].tags[a],e.remove(),RVS.F.updateCustomCategorySelectors(i)})}},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.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"),t[0].style.opacity=0,i[0].style.display="block",i.trigger("focus"))}),RVS.DOC.on("blur",".olibrary_content_title_input",function(){var e=jQuery(this),t=e.closest(".olibrary_item"),i=e.siblings(".olibrary_content_title");(t.removeClass("selected"),i[0].style.opacity=1,e[0].style.display="none",this.value===i[0].innerHTML)||(d(i[0].dataset.id,i[0].dataset.librarytype).title=e.val(),RVS.F.ajaxRequest("edit_customlibrary_item",{id:i[0].dataset.id,name:e.val(),type:i[0].dataset.librarytype},function(t){i[0].innerHTML=e.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&&r(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");d(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,R(jQuery(this).closest(".ol_filter_listelement"),!0)}),RVS.DOC.on("keyup",".filter_tag_name_input",function(e){13===(e.keyCode?e.keyCode:e.which)&&R(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?R(e,!1):window.ignoreCustomCategoryBlur=!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,r(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 t=jQuery('.ol_filter_listelement[data-type="'+RVS.LIB.OBJ.selectedType+'"][data-filter="'+RVS.LIB.OBJ.selectedFilter+'"]'),i=t.closest(".ol_filter_type");t.addClass("selected"),i.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 function(e,t,i,r){var a="",o=t.find(".olibrary_media_wrap");return"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+='<div class="olibrary_content_right">',a+='\t<i data-id="'+e.id+'" data-type="'+e.type+'" data-librarytype="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>',a+="</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>'),o[0].className+=" patternbg nosvgcoloring","svgcustom_99999"===e.id?(o[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>',o[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),o[0].appendChild(t)}),{content:a}}(e,t,"svgcustom",RVS_LANG.customsvgfile)},RVS.F.customSVGUpload=function(e){jQuery("#filedrop").hide();var t=RVS.LIB.OBJ.types[RVS.LIB.OBJ.selectedType].tags[RVS.LIB.OBJ.selectedFilter];t=void 0===t?"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})}}();