%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/t/r/a/tradesc/www/albanie/wp-content/plugins/revslider/admin/assets/js/plugins/
Upload File :
Create Path :
Current File : /home/t/r/a/tradesc/www/albanie/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 s(e,t){var i=e.element.classList,r=S.state.scrolling(t);i.contains(r)?clearTimeout(f[t]):i.add(r)}function l(e,t){f[t]=setTimeout((function(){return e.isAlive&&e.element.classList.remove(S.state.scrolling(t))}),e.settings.scrollingThreshold)}function n(e,t){s(e,t),l(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]=f+b*(t[n]-h),s(e,v),V(e),t.stopPropagation(),t.preventDefault()}function r(){l(e,v),e[g].classList.remove(S.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,f=null,h=null,b=null;e.event.bind(e[c],"mousedown",(function(t){f=m[u],h=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(S.state.clicking),t.stopPropagation(),t.preventDefault()}))}var m="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector),S={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}}},f={x:null,y:null},h=function(e){this.element=e,this.handlers={}},b={isEmpty:{configurable:!0}};h.prototype.bind=function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},h.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)}))},h.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(h.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 h(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],s=i[1],l=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[l]<1&&(e.reach[c]="start"),v[l]>e[o]-e[s]-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,S.element.rail("x")).forEach((function(e){return a(e)})),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(o(t,S.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(S.state.active("x")):(t.classList.remove(S.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=0),e.scrollbarYActive?t.classList.add(S.state.active("y")):(t.classList.remove(S.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 s=0,l=0;switch(r.which){case 37:s=r.metaKey?-e.contentWidth:r.altKey?-e.containerWidth:-30;break;case 38:l=r.metaKey?e.contentHeight:r.altKey?e.containerHeight:30;break;case 39:s=r.metaKey?e.contentWidth:r.altKey?e.containerWidth:30;break;case 40:l=r.metaKey?-e.contentHeight:r.altKey?-e.containerHeight:-30;break;case 32:l=r.shiftKey?e.containerHeight:-e.containerHeight;break;case 33:l=e.containerHeight;break;case 34:l=-e.containerHeight;break;case 36:l=e.contentHeight;break;case 35:l=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&0!==s||e.settings.suppressScrollY&&0!==l||(t.scrollTop-=l,t.scrollLeft+=s,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}(s,l)&&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(S.element.consuming))return!0;var s=e(o);if([s.overflow,s.overflowX,s.overflowY].join("").match(/(scroll|auto)/)){var l=o.scrollHeight-o.clientHeight;if(l>0&&!(0===o.scrollTop&&r>0||o.scrollTop===l&&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],s=r[1];if(!i(e.target,o,s)){var l=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(s?a.scrollTop-=s*t.settings.wheelSpeed:a.scrollTop+=o*t.settings.wheelSpeed,l=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(o?a.scrollLeft+=o*t.settings.wheelSpeed:a.scrollLeft-=s*t.settings.wheelSpeed,l=!0):(a.scrollTop-=s*t.settings.wheelSpeed,a.scrollLeft+=o*t.settings.wheelSpeed),V(t),(l=l||function(e,i){var r=Math.floor(a.scrollTop),o=0===a.scrollTop,s=r+a.offsetHeight===a.scrollHeight,l=0===a.scrollLeft,n=a.scrollLeft+a.offsetWidth===a.scrollWidth;return!(Math.abs(i)>Math.abs(e)?o||s:l||n)||!t.settings.wheelPropagation}(o,s))&&!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),s=Math.abs(i);if(s>o){if(i<0&&r===t.contentHeight-t.containerHeight||i>0&&0===r)return 0===window.scrollY&&i>0&&_.isChrome}else if(o>s&&(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 s(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 l(t,i,r){if(!c.contains(t))return!1;for(var a=t;a&&a!==c;){if(a.classList.contains(S.element.consuming))return!0;var o=e(a);if([o.overflow,o.overflowX,o.overflowY].join("").match(/(scroll|auto)/)){var s=a.scrollHeight-a.clientHeight;if(s>0&&!(0===a.scrollTop&&r>0||a.scrollTop===s&&r<0))return!0;var l=a.scrollLeft-a.clientWidth;if(l>0&&!(0===a.scrollLeft&&i<0||a.scrollLeft===l&&i>0))return!0}a=a.parentNode}return!1}function n(e){if(o(e)){var t=a(e),s={pageX:t.pageX,pageY:t.pageY},n=s.pageX-p.pageX,d=s.pageY-p.pageY;if(l(e.target,n,d))return;r(n,d),p=s;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",s),t.event.bind(c,"touchmove",n),t.event.bind(c,"touchend",d)):_.supportsIePointer&&(window.PointerEvent?(t.event.bind(c,"pointerdown",s),t.event.bind(c,"pointermove",n),t.event.bind(c,"pointerup",d)):window.MSPointerEvent&&(t.event.bind(c,"MSPointerDown",s),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 s in this.element=r,r.classList.add(S.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[s]=a[s];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var l=function(){return r.classList.add(S.state.focus)},n=function(){return r.classList.remove(S.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(S.element.rail("x")),r.appendChild(this.scrollbarXRail),this.scrollbarX=i(S.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",l),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(S.element.rail("y")),r.appendChild(this.scrollbarYRail),this.scrollbarY=i(S.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",l),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 s,l,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,"")}};function g(e,t){return null==e?t:e}function m(e){return"false"===e||!1===e||"off"===e||void 0===e||0===e||-1===e?e=!1:"true"!==e&&!0!==e&&"on"!==e||(e=!0),e}RVS.F.setCookie=function(e,t,i){var 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),l&&l[0].dataset.modal!==e.modalid&&(s=l),l=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(l){var e=Math.max(.5*window.innerHeight-.5*d.height(),0),t="auto";l[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){l&&(tpGS.gsap.killTweensOf(l),l.hide().css("opacity",0)),!s&&c&&(tpGS.gsap.killTweensOf(c),c.hide().css("opacity",0)),c.css("z-index",999995),l=s,s=void 0},doCancelModal:function(e){var t,i;document.getElementById("decmod_icon").innerHTML=e.icon,document.getElementById("decmod_title").innerHTML=e.title,document.getElementById("decmod_maintxt").innerHTML=e.maintext,document.getElementById("decmod_subtxt").innerHTML=e.subtext,void 0!==e.do?(t=document.getElementById("decmod_do_icon"),i=document.getElementById("decmod_do_txt"),void 0!==t&&(t.innerHTML=e.do.icon),void 0!==i&&(i.innerHTML=e.do.text),jQuery("#decmod_do_btn").show().off("click").on("click",(function(){void 0!==e.do.event&&RVS.DOC.trigger(e.do.event,e.do.eventparam),void 0!==e.do.callback&&e.do.callback(),!0!==e.do.keepDialog&&(RVS.F.RSDialog.close(),!0!==e.do.closeOnlyOnce&&RVS.F.RSDialog.close())}))):jQuery("#decmod_do_btn").hide(),void 0!==e.cancel?(t=document.getElementById("decmod_dont_icon"),i=document.getElementById("decmod_dont_txt"),void 0!==t&&(t.innerHTML=e.cancel.icon),void 0!==i&&(i.innerHTML=e.cancel.text),jQuery("#decmod_dont_btn").show().off("click").on("click",(function(){void 0!==e.cancel.callback&&e.cancel.callback(),RVS.F.RSDialog.close()}))):jQuery("#decmod_dont_btn").hide(),e.swapbuttons?jQuery("#decmod_do_btn").css({float:"right",marginLeft:"10px",marginRight:"0px"}):jQuery("#decmod_do_btn").css({float:"none",marginLeft:"0px",marginRight:"10px"})}},RVS.DOC.on("mousedown",".rb_modal",(function(){RVS.S.clickStartOnModal=!0})).on("mouseup",".rb_modal",(function(){setTimeout((function(){RVS.S.clickStartOnModal=!1}),50)})),RVS.DOC.on("click",".rb-modal-content",(function(){l&&!0!==RVS.S.clickStartOnModal&&l.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&&l&&l.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&&void 0!==t){Array.isArray(t)||(t=t.split(","));for(var s=0;s<e.el.options.length;s++)e.el.options[s].selected=t.indexOf(e.el.options[s].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,s=e;if(a)for(var l=0;l<a;l++)l<o?s=s[r[l]]:s[r[l]]=i}},RVS.F.getConcVals=function(e,t){return e.replace("#size#",t).replace("#curlayer#",void 0!==RVS.selLayers?RVS.selLayers[0]:"#curlayer#").replace("#slide#",RVS.S.slideId).replace("#curslidetrans#",RVS.S.slideTrans).replace("#actionindex#",RVS.S.actionIdx).replace("#targetlayer#",RVS.S.actionTrgtLayerId).replace("#frame#","timeline.frames."+RVS.S.keyFrame).replace("#framekey#",RVS.S.keyFrame)},RVS.F.getDeepVal=function(e){if(!(void 0===e||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"],s="";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 l in o)o.hasOwnProperty(l)&&(r!=o[l]&&r!="-"+o[l]||(s=o[l]));return"wrong"===i&&""===s&&e.val.length>0?"badvalue":(i="wrong"===i?0:i,"%"===s||"px"===s||"ms"===s||"deg"===s||"chars"===s||"words"===s||"char"===s||"-%"===s||"-px"===s||"-ms"===s||"-deg"===s||"x"===s||"x"===s?RVS.F.minMaxCheck({v:i,min:e.min,max:e.max})+s:""!==s?s.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"===s||"x"===s)?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.S.actionTrgtLayerId).indexOf("sta_")>=0)?RVS.F.updateSliderObj({path:RVS.SLIDER.staticSlideId+".layers."+(""+RVS.S.actionTrgtLayerId).replace("static-","").replace("sta_","")+"."+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})}void 0!==i.evt&&(" "+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)if("progress1"===e.text);else 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"}),s=RVS.F.cE({cN:"tponoff_on"}),l=RVS.F.cE({cN:"tponoff_off"});s.textContent="On",l.textContent="Off",o.appendChild(l),o.appendChild(s),a.appendChild(o),a=i[r].parentNode.insertBefore(a,i[r]),s.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.ajaxRequestSuccess=function(e,t,i,r,a,o,s,l){if(void 0!==a||e.is_redirect||RVS.F.showWaitAMinute({fadeOut:500}),f(),!e)return RVS.F.showErrorMessage("Empty ajax response!"),!1;if(-1==e)return RVS.F.showErrorMessage("ajax error!!!"),!1;if(0==e)return RVS.F.showErrorMessage("ajax error, action: <b>"+t+"</b> not found"),!1;if(null==e.success)return RVS.F.showErrorMessage("The 'success' param is a must!"),!1;if(0==e.success){if(void 0===o)return RVS.F.showErrorMessage(e.message),!1;"function"==typeof r&&r(e)}else"function"==typeof r&&r(e),e.message&&!0!==l&&y(e.message),e.is_redirect&&(location.href=e.redirect_url)},RVS.F.fixResponse=function(e){let t=0,i=-1,r=[];for(let a=0;a<e.length;a++){let o=e[a];if("{"===o&&(0===t&&(i=a),t++),"}"===o&&(t--,0===t&&-1!==i)){let t=e.substring(i,a+1);i=-1;try{let e=JSON.parse(t);r.push(e)}catch(e){console.error("Invalid JSON object encountered:",e)}}}for(let e of r)if(e&&!0===e.success)return e;return r.length>0?r[0]:null},RVS.F.ajaxRequest=function(e,t,i,r,a,o,s){var l={action:RVS.ENV.ajax_pre+"_ajax_action",client_action:e,nonce:RVS.ENV.nonce,data:t};R(),S(),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:l,success:function(l){RVS.F.ajaxRequestSuccess(l,e,t,i,r,a,o,s)},error:function(l,n,d){let c=RVS.F.fixResponse(l.responseText);if(null!==c)RVS.F.ajaxRequestSuccess(c,e,t,i,r,a,o,s);else switch(void 0===r&&RVS.F.showWaitAMinute({fadeOut:500}),f(),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"==n&&RVS.F.debug(l.responseText),RVS.F.showErrorMessage("Ajax Error!!! "+n)}}})},RVS.F.showErrorMessage=function(e){RVS.F.showInfo({content:e,type:"warning",showdelay:0,hidedelay:3,hideon:"",event:""}),b()},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"),b()},RVS.F.getNewGlobalObject=function(e){var t={};return e=null==e?{}:e,t.version=t.version<"6.0.0"?"6.0.0":t.version,t.permission=g(e.permission,"admin"),t.lang=g(e.lang,"default"),t.allinclude=m(g(e.allinclude,!0)),t.highContrast=m(g(e.highContrast,!1)),t.templateGuide=m(g(e.templateGuide,!0)),t.moduleGuide=m(g(e.moduleGuide,!0)),t.includeids=g(e.includeids,""),t.script=g(e.script,{footer:!0,defer:!0,full:!1,async:!0,ytapi:!1}),t.imgcrossOrigin=g(e.imgcrossOrigin,"unset"),t.lazyloaddata=g(e.lazyloaddata,""),t.fontdownload=g(e.fontdownload,"off"),t.getTec??={},t.getTec.feed=g(e.getTec?.feed,"REST"),t.getTec.core=g(e.getTec?.core,"MIX"),t.getTec.engine=g(e.getTec?.engine,"SR6"),t.script.footer=m(t.script.footer),t.script.defer=m(t.script.defer),t.script.async=m(t.script.async),t.script.full=m(t.script.full),t.fontawesomedisable=m(e.fontawesomedisable),t.onedpronmobile=m(e.onedpronmobile),t.forceLazyLoading=g(e.forceLazyLoading,"smart"),t.forceViewport=g(e.forceViewport,!0),t.lazyonbg=g(e.lazyonbg,!1),t.forcedViewportDistance=g(e.forcedViewportDistance,"-200px"),t.internalcaching=m(e.internalcaching),t.tracking=g(e.tracking,"1999-01-01"),t.trackingOnOff="enabled"==t.tracking,t.fonturl=g(e.fonturl,""),t.size=g(e.size,{desktop:1240,notebook:1024,tablet:778,mobile:480}),t.customfonts=g(e.customfonts,""),t.customFontList=g(e.customFontList,[{family:"",url:"",frontend:!1,backend:!0,weights:"200,300,400,500,600,700,800,900"}]),t};var S=function(){r&&jQuery("#"+r).show()},f=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()}},b=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}},R=function(){null!==t?(jQuery("#"+t).hide(),t=null):jQuery("#error_message").hide()},y=function(e){RVS.F.showInfo({content:e,type:"success",showdelay:0,hidedelay:1,hideon:"",event:""}),b()}}(),window.UniteLayersRev={addon_callbacks:[]},UniteLayersRev.addPreventLeave=UniteLayersRev.add_layer_actions=UniteLayersRev.add_layer_change=function(){console.log("Function is deprecated. Please Update Addons")},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 s='<div class="rb-modal-wrapper _TPRB_" data-modal="rbm_optimizer">';s+='\t<div class="rb-modal-inner">',s+='\t\t<div class="rb-modal-content">',s+='\t\t\t<div id="rbm_optimizer" class="rb_modal form_inner">',s+='\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>',s+='<div class="rbm_header_content">',s+='<div class="optim_row noborder" style="height:50px">',s+='<div class="optim_cell op_c_a optim_title">'+RVS_LANG.element+"</div>",s+='<div class="optim_cell op_c_b optim_title">'+RVS_LANG.filesize+"</div>",s+='<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>",s+='<div class="optim_cell op_c_d optim_title">'+RVS_LANG.suggestion+"</div>",s+='<div class="optim_cell op_c_e"></div>',s+="</div>",s+="</div>",s+='\t\t\t\t<div id="rbm_optimizer_list" class="rbm_content">',s+="\t\t\t\t</div>",s+='\t\t\t\t<div class="rbm_footer">',s+='\t\t\t\t\t<div id="optimizer_compression">',s+='\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>',s+='\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>",s+="\t\t\t\t\t</div>",s+='\t\t\t\t\t<div id="opt_summary">',s+='\t\t\t\t\t\t<div id="optimizer_fullsize">0 kb</div><div id="optimizer_cachedsize"></div>',s+='\t\t\t\t\t\t<div class="optimier_footerinfo">',s+='\t\t\t\t\t\t\t<div class="opt_loaded_title" id="optimized_prec">'+RVS_LANG.sizeafteroptim+"</div>",s+='\t\t\t\t\t\t\t<div class="opt_loaded_subtitle" id="optimize_to_save">'+RVS_LANG.loadedmediainfo+"</div>",s+="\t\t\t\t\t\t</div>",s+="\t\t\t\t\t</div>",s+='\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>",s+="\t\t\t\t</div>",s+="\t\t\t</div>",s+="\t\t</div>",s+="\t</div>",s+="</div>",RVS.ENV.optimizer=jQuery(s),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=[];void 0===RVS.V.sizes&&(RVS.V.sizes=["d","n","t","m"],RVS.V.sizesold=["desktop","notebook","tablet","mobile"]);for(var t in 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,s={w:l(RVS.OZ.settings.size.width),h:l(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}(s.w.max,s.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){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 S={w:s.w.sizes,h:s.w.sizes};if(-1!==g.group.puid&&void 0!==g.group.puid){var f=RVS.OZ[p].layers[g.group.puid];"group"===f.type&&(S.w=l(f.size.width,S.w).sizes,S.h=l(f.size.height,S.h).sizes)}"column"===g.type?(m.rw=l(g.size.width,S.w,RVS.F.convertFraction(g.group.columnSize),g.group.columnbreakat).max,m.rh=l(g.size.height,S.h).max):(m.rw=l(g.size.width,S.w).max,m.rh=l(g.size.height,S.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 h=void 0!==RVS.ENV.output_compress&&RVS.ENV.output_compress.length>0;RVS.ENV.optlist.append(a({alias:RVS_LANG.coretools,size:h?"43 kb":"116 kb",warning:h?"":RVS_LANG.enablecompression})),RVS.ENV.optlist.append(a({alias:RVS_LANG.corejs,size:h?"72 kb":"289 kb",warning:h?"":RVS_LANG.enablecompression})),RVS.ENV.optlist.append(a({alias:RVS_LANG.corecss,size:h?"11 kb":"55 kb",warning:h?"":RVS_LANG.enablecompression})),RVS.OZ.coreFullSize=h?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 l=a[o].split(") format");-1==jQuery.inArray(l[0],e)&&e.push(l[0])}for(var n in e)s(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 s(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 l(e,t,i,r){var a=0,o={};for(var s in RVS.V.avSizes){var l=a;void 0!==i?("notebook"===r&&jQuery.inArray(RVS.V.avSizes[s],["t","m","n"])>=0&&(i=1),"mobile"===r&&jQuery.inArray(RVS.V.avSizes[s],["m"])>=0&&(i=1),"tablet"===r&&jQuery.inArray(RVS.V.avSizes[s],["t","m"])>=0&&(i=1),l=t[RVS.V.avSizes[s]]*i):(void 0!==e&&void 0!==e[RVS.V.avSizes[s]]&&(l=void 0!==e[RVS.V.avSizes[s]].v?RVS.F.isNumeric(parseInt(e[RVS.V.avSizes[s]].v))?e[RVS.V.avSizes[s]].v:a:RVS.F.isNumeric(parseInt(e[RVS.V.avSizes[s]]))?e[RVS.V.avSizes[s]]:a),l=(l+"").indexOf("%")>=0?t[RVS.V.avSizes[s]]*(parseInt(l,0)/100):parseInt(l,0)),a=Math.max(l,a),o[RVS.V.avSizes[s]]=l}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],s=jQuery(o.row.find(".op_c_c")),l={index:-1,val:0},d={index:-1,val:999999},u="width",v=0,g=0,m=0,S=0,f=[];if(void 0!==o.selected){if(RVS.F.isNumeric(o.selected.size)){o.currentSize=o.selected.size,o.currentUrl=o.selected.url;var h=Math.round(o.selected.size/1e3)+" kb";o.row.find(".op_c_b")[0].innerHTML=h}(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,S=o.images[b].size,v=c({cont:s,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:s,ozindex:e,imgindex:b,left:R>100?100:R,amnt:v});else if(l.val<R&&R<33)l={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,f)Math.abs(f[y]-a)<3&&(a+=a<f[y]?-3:3);f.push(a),v=c({cont:s,ozindex:e,imgindex:b,left:a,amnt:v})}o.images[b].cs=R}-1!==l.index&&(Math.abs(l.val-m)<3&&(l.val+=m<l.val?3:-3),a=l.val<=3?3:l.val>30?30:l.val,v=c({cont:s,ozindex:e,imgindex:l.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:s,ozindex:e,imgindex:d.index,left:a,amnt:v}));var _=S;-1!==l.index&&RVS.F.isNumeric(parseInt(l.size,0))?_=S>l.size?parseInt(l.size,0):S:-1!==d.index&&RVS.F.isNumeric(parseInt(d.size,0))&&(_=S>d.size?parseInt(d.size,0):S),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 s=parseInt(RVS.OZ.fontsFullSize)+parseInt(RVS.OZ.addOnsFullSize)+parseInt(RVS.OZ.coreFullSize),l=parseInt(RVS.OZ.slideFullSizeCache)+s,n=parseInt(RVS.OZ.minFullSize)+s,d=parseInt(RVS.OZ.slideFullSize)+s,c=Math.round(n/l*100),p=Math.round((l-d)/l*100),u=l-d==0?"":" ( "+(l<d?"+":"-")+Math.abs(p)+"% ~ "+(l-d)+" kb)";jQuery("#optimizer_fullsize").html(d+" kb"),jQuery("#optimizer_cachedsize").html(RVS.OZ.slideFullSizeCache+s+" kb"),jQuery("#optimized_prec").html(RVS_LANG.sizeafteroptim+u),jQuery("#optimize_to_save").html(RVS_LANG.loadedmediainfo+" "+(100-c)+"% ~ "+(l-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,s=o-1,l=e;if(o)for(var n=0;n<o;n++)n<s&&void 0===l[a[n]]&&(l[a[n]]={}),n<s?l=l[a[n]]:l[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){jQuery(this).closest(".optim_row").find(".op_c_d")[0].innerHTML="Optimal: "+this.dataset.optim})),RVS.DOC.on("mouseleave",".ofsinfo",(function(e){var t=jQuery(this).closest(".optim_row"),i=t.find(".op_c_d");t[0].dataset.currentinfo=void 0===t[0].dataset.currentinfo?"":t[0].dataset.currentinfo,i[0].innerHTML=t[0].dataset.currentinfo})),RVS.DOC.on("click mouseenter",".ofs_markpoint",(function(e){var t=jQuery(this),i=t.closest(".optim_row"),r=i.find(".op_c_b"),a=i.find(".op_c_d"),o=i.find(".op_c_e"),s=i[0].dataset.uid,l=RVS.OZ.list[s].images[t[0].dataset.imgindex];if("mouseenter"===e.type)RVS.OZ.list[s].lastSize=RVS.OZ.list[s].currentSize,RVS.OZ.list[s].lastUrl=RVS.OZ.list[s].currentUrl;else{if(t.hasClass("selected"))return;RVS.OZ.list[s].lastSize=l.size,RVS.OZ.list[s].lastUrl=l.url}RVS.OZ.list[i[0].dataset.uid].currentSize=l.size,RVS.OZ.list[i[0].dataset.uid].currentUrl=l.url,a[0].innerHTML="Dimension: "+l.width+" x "+l.height,RVS.F.isNumeric(l.size)&&(r[0].innerHTML=Math.round(l.size/1e3)+" kb"),"mouseenter"!==e.type&&(RVS.OZ.list[s].pickedImage=t[0].dataset.imgindex,i.find(".ofs_markpoint.selected").removeClass("selected"),t.addClass("selected"),i[0].dataset.currentinfo=l.cs<31||l.cs>69?RVS_LANG.pickandim:"",!0!==l.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).closest(".optim_row"),t=e.find(".op_c_b"),i=e.find(".op_c_d"),r=e[0].dataset.uid;RVS.OZ.list[r].lastSize!==RVS.OZ.list[r].currentSize&&(RVS.OZ.list[r].currentSize=RVS.OZ.list[r].lastSize,RVS.OZ.list[r].currentUrl=RVS.OZ.list[r].lastUrl,RVS.F.isNumeric(RVS.OZ.list[r].lastSize)&&(t[0].innerHTML=Math.round(RVS.OZ.list[r].lastSize/1e3)+" kb"),p()),e[0].dataset.currentinfo=void 0===e[0].dataset.currentinfo?"":e[0].dataset.currentinfo,i[0].innerHTML=e[0].dataset.currentinfo})),RVS.DOC.on("click","#rbm_optpanel_savebtn",(function(){var e=[],t=[];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];(s=jQuery("#_lc_"+o.slideid+"_"+o.layerid+"_")).length>0&&("image"===o.type&&s.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 s;o=t[i];(s=jQuery("#_lc_"+o.slideid+"_"+o.layerid+"_")).length>0&&("image"===o.type&&s.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){void 0!==RVS.F.createToMigrateList&&RVS.F.createToMigrateList()&&RVS.F.migrateSr6toSr7()})):void 0!==RVS.F.createToMigrateList&&RVS.F.createToMigrateList()&&RVS.F.migrateSr6toSr7()}}function s(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 l(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==l(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==l(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 s=RVS.F.layerFrameTriggeredBy({layerid:e.uid,src:RVS.LIB.OBJ.items.moduleslides[RVS.LIB.OBJ.selectedSlideId].layers});return""!==s.alias&&""!==s.uid&&(o+='\t\t<div class="layimpli_icon_dimension">'+RVS_LANG.triggeredby+" "+s.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 S(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 f(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 h(){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,s=e[0].dataset.type;RVS.F.ajaxRequest("edit_customlibrary_tags",{id:o,name:a,type:s},(function(t){r[0].innerHTML=a,RVS.LIB.OBJ.types[s].tags[o]=a,e[0].dataset.title=a,RVS.F.updateCustomCategorySelectors(s)}))}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)&&("moduletemplates"!=e.groupType||"revolution base"!==e.tags[a].toLowerCase()&&"premium"!=e.tags[a].toLowerCase())){var o,s="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(s.t)+'" class="ol_filter_listelement">',o+='<span class="filter_tag_name">'+s.t+"</span>",void 0!==e.custom&&(o+='<input class="filter_tag_name_input" value="'+s.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==s.o?r.push(o):i[s.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 e,S=jQuery(this).closest(".olibrary_item").attr("data-objid"),f=RVS.LIB.OBJ.items.modules,h=f.length;for(let t=0;t<h&&(e=f[t],e.id!==S);t++);RVS.DOC.trigger(RVS.LIB.OBJ.success.modules,e),RVS.F.closeObjectLibrary();break;case"moduleslides":case"moduletemplateslides":if(null==(r=RVS.LIB.OBJ.items[this.dataset.librarytype][RVS.F.getModuleIndex(this.dataset.id,this.dataset.librarytype)]).installed){var i=this.dataset.parentuid;RVS.F.ajaxRequest("import_template_slider",{uid:i},(function(e){e.success&&(p({uid:i,hiddensliderid:e.hiddensliderid,children:!0,slideids:e.slider.slide_ids}),RVS.F.updateRVSLIBSLIDERS&&RVS.F.updateRVSLIBSLIDERS(e.slider),RVS.DOC.trigger(RVS.LIB.OBJ.success.slide,r.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,r.slideid),RVS.F.closeObjectLibrary();break;case"moduletemplates":RVS.LIB.OBJ.container_Underlay.show(),RVS.LIB.OBJ.moduleInFocus=!0;var r=jQuery(this);if("moduletemplates"===this.dataset.librarytype){var a=r.closest(".olibrary_item"),o=a.find(".ol_template_info_wrap");a.addClass("selected");var s=a.offset().left;tpGS.gsap.set(o,{left:"auto",right:"auto"}),s+630>window.outerWidth+(RVS.S.isRTL?-300:0)?s-340>300?tpGS.gsap.set(o,{left:"auto",right:"100%",x:"-20px",transformOrigin:"100% 0%"}):tpGS.gsap.set(o,{left:a.width()-(s+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 l=document.querySelectorAll(".redownloadTemplateState, .createBlankPageState");for(var n in l)l.hasOwnProperty(n)&&(l[n].checked=l[n].className.indexOf("redownloadTemplateState")>=0?RVS.LIB.OBJ.reDownloadTemplate:RVS.LIB.OBJ.createBlankPage,RVS.F.turnOnOffVisUpdate({input:l[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{if(v=d(this.dataset.id,this.dataset.librarytype),void 0!==this.dataset.collect){var g=this.parentNode.getElementsByClassName(this.dataset.collect);if(0!==g.length&&void 0!==g)for(var m in v.collects=[],g)void 0!==g[m].className&&g[m].className.includes("selected")&&void 0!==g[m].dataset&&void 0!==g[m].dataset.val&&v.collects.push(g[m].dataset.val)}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&&s(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).closest(".olibrary_item"),t=e.find(".ol_template_info_wrap"),i=this.dataset.videosource;window.showVideOnHoverTimer=setTimeout((function(){e.find(".videopreview").append('<video id="obj_library_mediapreview" loop autoplay> <source src="'+i+'" type="video/mp4"></video>'),e.addClass("selected");var r=e.offset().left;tpGS.gsap.set(t,{left:"auto",right:"auto"}),r+630>window.outerWidth+(RVS.S.isRTL?-300:0)?r-340>300?tpGS.gsap.set(t,{left:"auto",right:"100%",x:"-20px",transformOrigin:"100% 0%"}):tpGS.gsap.set(t,{left:e.width()-(r+630-window.outerWidth)+"px",zIndex:200,right:"auto",x:"20px",transformOrigin:"0% 0%"}):tpGS.gsap.set(t,{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&&s(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(){jQuery(this).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.updateRVSLIBSLIDERS&&RVS.F.updateRVSLIBSLIDERS(t.slider),void 0!==RVS.F.createToMigrateList&&RVS.F.createToMigrateList()&&RVS.F.migrateSr6toSr7()),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]),RVS.F.updateRVSLIBSLIDERS&&RVS.F.updateRVSLIBSLIDERS(t.slider)),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(){void 0!==e.types&&(jQuery.inArray(this.dataset.type,e.types)>=0||e.types.includes(this.dataset.type))?jQuery(this).show():jQuery(this).hide()})):RVS.LIB.OBJ.container_Filters.find(".ol_filter_type").show();var t=jQuery("#ol_filter_"+e.selected);t.addClass("open"),t.find(".ol_filter_headerelement").addClass("selected"),t.find('.ol_filter_listelement[data-filter="'+e.filter+'"]').addClass("selected"),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,t){RVS.F.removeModuleTemplatesFromLibrary(e),RVS.LIB.OBJ.refreshFromServer=!0,RVS.F.loadLibrary({modules:[e],event:"reBuildObjectLibrary",silent:t})},RVS.F.removeModuleTemplatesFromLibrary=function(e){delete RVS.LIB.OBJ.types[e],delete RVS.LIB.OBJ.items[e],RVS.LIB.OBJ.selectedType=e,RVS.LIB.OBJ.lastSelectedType=e,RVS.LIB.OBJ.filteredList=[],RVS.LIB.OBJ.oldList=[],RVS.LIB.OBJ.pages=[],RVS.LIB.OBJ.container_Output[0].innerHTML=""},RVS.F.rebuildObjectFilter=function(e){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)}}}),!!e.silent||void 0,!!e.silent||void 0,!!e.silent||void 0,!e.silent&&void 0,!!e.silent||void 0),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 s in t.modules[i].items)t.modules[i].items.hasOwnProperty(s)&&(t.modules[i].items[s].libraryType=i,t.modules[i].items[s].moduleid=e.moduleid,t.modules[i].items[s].module_uid=e.module_uid,t.modules[i].items[s].parenttitle=o,t.modules[i].items[s].slideid=void 0===t.modules[i].items[s].id?s:t.modules[i].items[s].id,t.modules[i].items[s].id=parseInt(r,0)+parseInt(s,0),RVS.LIB.OBJ.items[i].push(t.modules[i].items[s]))}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=S(a.parent),s={a:!i||a.favorite};s.a&&(s.samefolder=jQuery.inArray(RVS.LIB.OBJ.selectedFolder,o)>=0||jQuery.inArray(""+RVS.LIB.OBJ.selectedFolder,o)>=0,s.b=t.length>2&&s.samefolder&&a.title.toLowerCase().indexOf(t)>=0&&("all"==RVS.LIB.OBJ.selectedFilter||f({o:a,filter:RVS.LIB.OBJ.selectedFilter})),s.c=t.length<3&&RVS.LIB.OBJ.selectedType===a.libraryType&&"all"==RVS.LIB.OBJ.selectedFilter&&parseInt(a.parent,0)==RVS.LIB.OBJ.selectedFolder,s.d=t.length<3&&RVS.LIB.OBJ.selectedType===a.libraryType&&f({o:a,filter:RVS.LIB.OBJ.selectedFilter})&&s.samefolder,s.db="moduletemplates"===RVS.LIB.OBJ.selectedType&&-1!==RVS.LIB.OBJ.selectedPackage&&""+a.package_parent!="true"&&a.package_id==RVS.LIB.OBJ.selectedPackage,s.e="moduletemplateslides"===RVS.LIB.OBJ.selectedType||"moduleslides"===RVS.LIB.OBJ.selectedType,(s.b||s.c||s.d||s.e||s.db)&&(s.f=i&&a.favorite&&(-1==RVS.LIB.OBJ.selectedPackage||""+a.package_id==""+RVS.LIB.OBJ.selectedPackage),s.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),s.h=("moduletemplateslides"===RVS.LIB.OBJ.selectedType||"moduleslides"===RVS.LIB.OBJ.selectedType)&&RVS.LIB.OBJ.selectedModule==a.parent,s.i="moduletemplates"!==RVS.LIB.OBJ.selectedType&&"moduletemplateslides"!==RVS.LIB.OBJ.selectedType&&"moduleslides"!==RVS.LIB.OBJ.selectedType,(s.f||s.g||s.h||s.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,s=RVS.F.getModuleIndex(r,o);-1!==s&&"-1"!==s?(i='<div class="rsl_breadcrumb" data-folderid="'+r+'"><i class="material-icons">folder_open</i>'+RVS.LIB.OBJ.items[o][s].title+'</div><i class="rsl_breadcrumb_div material-icons">keyboard_arrow_right</i>'+i,r=RVS.LIB.OBJ.items[o][s].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>":"editor"!==RVS.LIB.OBJ.context?"":'<div id="rsl_bread_selected" class="rsl_breadcrumb"></div>',"editor"!==RVS.LIB.OBJ.context&&0==RVS.F.getFolderSize(RVS.LIB.OBJ.selectedFolder)&&(t+='<div class="rsl_breadcrumb warning"><i class="material-icons">block</i>Folder is Empty</div>'),t+="</div>",RVS.LIB.OBJ.container_Output.append(t)}if(void 0!==RVS.LIB.OBJ.lastSelectedType&&RVS.LIB.OBJ.lastSelectedType!==RVS.LIB.OBJ.selectedType)for(var l in RVS.LIB.OBJ.items[RVS.LIB.OBJ.lastSelectedType])void 0!==RVS.LIB.OBJ.items[RVS.LIB.OBJ.lastSelectedType][l].ref&&RVS.LIB.OBJ.items[RVS.LIB.OBJ.lastSelectedType][l].ref.detach();if(RVS.LIB.OBJ.lastSelectedType=RVS.LIB.OBJ.selectedType,RVS.LIB.OBJ.selectedPage=void 0===RVS.LIB.OBJ.selectedPage?1:RVS.LIB.OBJ.selectedPage,RVS.LIB.OBJ.waitForLoad=[],RVS.LIB.OBJ.waitForLoadIndex=0,jQuery.inArray(RVS.LIB.OBJ.selectedType,["fonticons","images","layers","modules","moduletemplateslides","moduletemplates","moduleslides","objects","svgs","videos"])>=0){for(var l in RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType])if(RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType].hasOwnProperty(l)){var n=RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType][l];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:l,id:"object"==typeof n.img?n.img.url:n.img}),void 0!==n.video_thumb&&("object"==typeof n.video_thumb&&-1===n.video_thumb.url.indexOf("//")||"object"!=typeof n.video_thumb&&-1===n.video_thumb.indexOf("//"))&&RVS.LIB.OBJ.waitForLoad.push({librarytype:n.libraryType,mediatype:"video",ind:l,id:"object"==typeof n.video_thumb?n.video_thumb.url:n.img}))}RVS.F.loadAllMissingMedia()}else void 0!==RVS.F["checkLoadedItems_"+RVS.LIB.OBJ.selectedType]&&RVS.F["checkLoadedItems_"+RVS.LIB.OBJ.selectedType]()},RVS.F.loadAllMissingMedia=function(){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?(void 0!==t.ref&&t.folder&&t.ref.remove(),t.ref=void 0===t.ref||t.folder?RVS.F.buildElement(t):t.ref,t.ref.appendTo(RVS.LIB.OBJ.container_Output)):void 0!==t.ref&&t.ref.detach()}"moduletemplates"===RVS.LIB.OBJ.selectedType&&RVS.F.initOnOff(RVS.LIB.OBJ.container_Output),h()},RVS.F.buildElement=function(e,t){e.importantid=RVS.F.isNumeric(parseInt(e.id))?e.libraryType+"_"+e.id:e.id;var i='<div data-objid="'+e.id+'" id="'+e.importantid+'" class="olibrary_item">';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"),s=r.find(".olibrary_media_wrap"),l="",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(l='<div class="olibrary_content_left">',l+='\t<div class="olibrary_content_title">'+e.title+"</div>",l+="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>",l+='\t<div class="installed_notinstalled olibrary_content_info oc_gray">'+(e.installed?RVS_LANG.installed:RVS_LANG.notinstalled)+"</div>",l+="</div>",l+='<div class="olibrary_content_right">',l+='\t<i data-id="'+e.id+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>',l+="</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 s=[];for(var o in i)void 0!==i[o]&&void 0!==i[o].uid&&s.push(i[o].uid);if(void 0!==t)for(var l in t.plugin_require)"true"!=t.plugin_require[l].installed&&(r=!1),a.push(t.plugin_require[l]);return{installable:r,uids:s,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 S=!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>":(S=!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?S||(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="createBlankPageState"/>'+RVS_LANG.createBlankPage+"</div>"),n+="</div>",void 0!==e.img&&"string"==typeof e.img)tpGS.gsap.set(s,{backgroundImage:"url("+e.img+")","background-size":"cover",backgroundPosition:"center center"});else if(void 0!==e.img&&"object"==typeof e.img){var f=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(f,{backgroundImage:"url("+e.img.url+")"}),s.append(f)}break;case"moduleslides":case"moduletemplateslides":u=!0,g=!0;if(l='<div class="olibrary_content_left">',l+='\t<div class="olibrary_content_title">'+e.title+"</div>",l+="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,s);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>'),l+="moduletemplateslides"===e.libraryType?'\t<div class="installed_notinstalled olibrary_content_info oc_gray">'+(e.installed?RVS_LANG.installed:RVS_LANG.notinstalled)+"</div>":"",l+="</div>"),"moduletemplateslides"===e.libraryType){if(void 0!==e.img&&"string"==typeof e.img)tpGS.gsap.set(s,{backgroundImage:"url("+e.img+")","background-size":"cover",backgroundPosition:"center center"});else if(void 0!==e.img&&"object"==typeof e.img){f=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(f,{backgroundImage:"url("+e.img.url+")"}),s.append(f)}}else a(e,s);break;case"svgs":l='<div class="olibrary_content_left">',l+='\t<div class="olibrary_content_title">'+e.title+"</div>",l+='\t<div class="olibrary_content_type oc_green">'+RVS_LANG.iconBIG+"</div>",l+='\t<div class="olibrary_content_info oc_gray">'+RVS_LANG.svgBIG+"</div>",l+="</div>",l+='<div class="olibrary_content_right">',l+='\t<i data-id="'+e.handle+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>',l+="</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),s.append(t)})),s[0].className+=" patternbg";break;case"fonticons":l='<div class="olibrary_content_left">',l+='\t<div class="olibrary_content_title">'+e.title+"</div>",l+='\t<div class="olibrary_content_type oc_green">'+RVS_LANG.iconBIG+"</div>",l+='\t<div class="olibrary_content_info oc_gray">'+RVS_LANG.fontBIG+"</div>",l+="</div>",l+='<div class="olibrary_content_right">',l+='\t<i data-id="'+e.handle+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>',l+="</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 h="";if(void 0!==e.classextension)for(var b in e.classextension)e.classextension.hasOwnProperty(b)&&(h+=" "+e.classextension[b]);"MaterialIcons"===e.tags[0]?s.append('<i class="fonticonobj material-icons">'+e.handle.replace(".","")+"</i>"):s.append('<i class="fonticonobj '+h+" "+e.handle.replace(".","")+'"></i>'),s[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>"),l='<div class="olibrary_content_left">',l+='\t<div class="olibrary_content_title">'+e.title+"</div>",e.folder?l+='\t<div class="olibrary_content_type oc_package">'+RVS_LANG.folderBIG+"</div>":l+='\t<div class="olibrary_content_type oc_purple">'+RVS_LANG.moduleBIG+"</div>",e.folder||(l+='\t<div class="olibrary_content_info oc_gray">'+e.type+"</div>"),l+="</div>",l+='<div class="olibrary_content_right">',l+='\t<i data-id="'+e.id+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>',l+="</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)}s.append(R)}s.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,s);break;case"objects":if(l='<div class="olibrary_content_left">',l+='\t<div class="olibrary_content_title">'+e.title+"</div>",l+='\t<div class="olibrary_content_type oc_cyan">'+RVS_LANG.objectBIG+"</div>",l+='\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>",l+="</div>",l+='<div class="olibrary_content_right">',l+='\t<i data-id="'+e.id+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>',l+="</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){f=jQuery('<img class="olib_png_obj" src="'+e.img+'">');s.append(f)}else if(void 0!==e.img&&"object"==typeof e.img){f=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(f,{backgroundImage:"url("+e.img.url+")",backgroundRepeat:"no-repeat","background-size":"contain",backgroundPosition:"center center"}),s.append(f)}s[0].className+=" patternbg";break;case"images":if(l='<div class="olibrary_content_left">',l+='\t<div class="olibrary_content_title">'+e.title+"</div>",l+='\t<div class="olibrary_content_type oc_blue">'+RVS_LANG.imageBIG+"</div>",l+='\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>",l+="</div>",l+='<div class="olibrary_content_right">',l+='\t<i data-id="'+e.id+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>',l+="</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(s,{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){f=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(f,{backgroundImage:"url("+e.img.url+")"}),s.append(f)}s[0].className+=" patternbg";break;case"videos":if(l='<div class="olibrary_content_left">',l+='\t<div class="olibrary_content_title">'+e.title+"</div>",l+='\t<div class="olibrary_content_type oc_blue">'+RVS_LANG.videoBIG+"</div>",l+='\t<div class="olibrary_content_info oc_gray">'+e.width+"x"+e.height+"</div>",l+="</div>",l+='<div class="olibrary_content_right">',l+='\t<i data-id="'+e.id+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>',l+="</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>'),s[0].dataset.videosource=e.video_thumb.url,void 0!==e.img&&"string"==typeof e.img)tpGS.gsap.set(s,{backgroundImage:"url("+e.img+")","background-repeat":"no-repeat","background-size":"cover",backgroundPosition:"center center"});else if(void 0!==e.img&&"object"==typeof e.img){f=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(f,{backgroundImage:"url("+e.img.url+")"}),s.append(f)}break;case"layers":if(e.title=RVS.F.capitaliseAll(e.title.replace(/[_-]/g," ")),l='<div class="olibrary_content_left">',l+='\t<div class="olibrary_content_title">'+e.title+"</div>",l+='\t<div class="olibrary_content_type oc_blue">'+RVS_LANG.layersBIG+"</div>",l+='\t<div class="olibrary_content_info oc_gray">'+e.width+"x"+e.height+"</div>",l+="</div>",l+='<div class="olibrary_content_right">',l+='\t<i data-id="'+e.id+'" data-type="'+e.type+'" data-libraryType="'+e.libraryType+'" class="olibrary_favorit material-icons '+(e.favorite?"selected":"")+'">star</i>',l+="</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>'),s[0].dataset.videosource=e.video_thumb.url,void 0!==e.img&&"string"==typeof e.img)tpGS.gsap.set(s,{backgroundImage:"url("+e.img+")","background-repeat":"no-repeat","background-size":"cover",backgroundPosition:"center center"});else if(void 0!==e.img&&"object"==typeof e.img){f=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(f,{backgroundImage:"url("+e.img.url+")",backgroundSize:"cover"}),s.append(f)}break;default:if(void 0!==RVS.F["newObjectLibraryItem_"+e.libraryType]){var _=RVS.F["newObjectLibraryItem_"+e.libraryType](e,r,s);void 0!==_.content&&(l+=_.content),void 0!==_.infocontent&&(n+=_.infocontent)}}if(""!==l&&o.append(l),""!==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){0==RVS.F.getFolderSize(e)&&(e=-1),RVS.LIB.OBJ.selectedFolder=e,RVS.F.resetAllFilters(),RVS.F.updateFilteredList({force:!0,keeppage:!1,noanimation:!1})},RVS.F.getFolderSize=e=>{let t=0;for(var i in RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType])RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType].hasOwnProperty(i)&&""+RVS.LIB.OBJ.items[RVS.LIB.OBJ.selectedType][i].parent==""+e&&t++;return t},RVS.F.buildPagination=function(e){var t,i,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,s=0;s<=4;s++){var l=o[s];l.value=r,l.selected=l.value===a,l.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(s=1;s<=RVS.LIB.OBJ.pageAmount;s++)n=s!==RVS.LIB.OBJ.selectedPage?"":"selected",RVS.LIB.OBJ.container_PaginationWrap[0].innerHTML+='<div data-page="'+s+'" class="'+n+' page_button ol_pagination">'+s+"</div>",1===s?RVS.LIB.OBJ.container_PaginationWrap[0].innerHTML+='<div data-page="-9999" class="page_button ol_pagination">...</div>':s===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(),h()},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,RVS.DOC.trigger("objectlibrary_closed"),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})}}(),
/*!
 * ThemePunchs Own Select2RS Library
 * @version: 2.1 (09.12.2022)
 * @author ThemePunch
*/
function(e,t){"use strict";var i,r,a=8,o=9,s=13,l=16,n=17,d=18,c=227,p=91,u=93,v=37,g=38,m=39,S=40,f=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,r){return"destroy"==e||"update"==e||"rebuild"==e||"change"==e?(window.ddTP_R_cache[e]=window.ddTP_R_cache[e]===t?{list:[],params:[]}:window.ddTP_R_cache[e],window.ddTP_R_cache[e].list.push(this),window.ddTP_R_cache[e].params.push(r)):(window.ddTP_R_cache.main=window.ddTP_R_cache.main===t?{list:[],params:[]}:window.ddTP_R_cache.main,window.ddTP_R_cache.main.list.push(this),window.ddTP_R_cache.main.params.push(e)),window.ddTP_R_RFACalled===t&&(window.ddTP_R_RFACalled=!0,requestAnimationFrame((function(){var e,i,r;for(r=0;r<window.ddTPCalls.length;r++)if(e=window.ddTPCalls[r],window.ddTP_R_cache[e]!==t)for(i in window.ddTP_R_cache[e].list)h(window.ddTP_R_cache[e].list[i],e,window.ddTP_R_cache[e].params[i]);window.ddTP_R_cache={},delete window.ddTP_R_RFACalled}))),i===t&&M(),this}});var h=function(e,i,a){if("destroy"==i)for(o in e)e.hasOwnProperty(o)&&e[o]!==t&&"SELECT"===e[o].tagName&&e[o].id!==t&&""!==e[o].id&&ddTPcache[e[o].id]!==t&&R(e[o]);else if("update"==i)for(o in e)e.hasOwnProperty(o)&&e[o]!==t&&"SELECT"===e[o].tagName&&e[o].id!==t&&""!==e[o].id&&ddTPcache[e[o].id]!==t&&r.INFOCUS===e[o].id&&F(e[o].id,!0);else if("rebuild"==i)for(var o in e)!e.hasOwnProperty(o)||e[o]===t||"SELECT"!==e[o].tagName||e[o].id===t&&""===e[o].id||(R(e[o]),b(e[o],a));else if("change"==i)for(var o in e)e.hasOwnProperty(o)&&e[o].id!==t&&""!==e[o].id&&ddTPcache[e[o].id]!==t&&y(ddTPcache[e[o].id].rendered,V(e[o],ddTPcache[e[o].id].params));else for(var o in e)!e.hasOwnProperty(o)||e[o]===t||"SELECT"!==e[o].tagName||e[o].id!==t&&""!==e[o].id&&ddTPcache[e[o].id]!==t||b(e[o],a)},b=function(e,i){e.id!==t&&""!==e.id||(e.id="ddTP_"+Math.round(1e10*Math.random())),e.classList.add("ddTP_hidden"),e.classList.add("ddTP_based");var r=ddTPcache[e.id]===t?document.createElement("span"):ddTPcache[e.id].container,a=document.createElement("span"),o=document.createElement("span"),s=document.createElement(e.multiple?"ul":"span");if(r.className="ddTP ddTP_C ddTP-fake"+(e.dataset.theme!==t?" ddTP_C--"+e.dataset.theme:""),a.className="selection",o.className="ddTP_S ddTP_S--"+(e.multiple?"multiple":"single"),s.className="ddTP_S__rendered",r.dataset.refid=e.id,a.dir="ltr",a.appendChild(o),o.appendChild(s),!e.multiple){var l=document.createElement("span"),n=document.createElement("b");l.className="ddTP_S__arrow",o.appendChild(l),l.appendChild(n)}y(s,V(e,i)),r.appendChild(a),G(r,e),ddTPcache[e.id]={sel:e,container:r,innerwrapper:a,selection:o,rendered:s,params:i===t?{}:i}},R=function(e){ddTPcache!=t&&ddTPcache[e.id]!=t&&ddTPcache[e.id].container!=t&&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,i,r){return i===t||e===t?t:e.preDatas!==t?{data:i[e.preDatas.data],style:i[e.preDatas.style]}:e.preData!==t?i[e.preData]:e.preDataFunction!==t?e.preDataFunction(r):t},V=function(e,i){if(e.multiple){var a=document.createDocumentFragment(),o=!1;for(var s in e.options)e.options[s]!==t&&e.options[s].selected&&(o=!0,a.appendChild(L(e.options[s].value,e.options[s].text===t?e.options[s].value:e.options[s].text,t,e.id,i,_(i,e.options[s].dataset,e.options[s].value))));return i!==t&&(i.tags||i.search)&&(r.liSearch=document.createElement("li"),r.liSearch.className="ddTP_SCH ddTP_SCH--inline",r.liSearch.appendChild(O(i.searchValue,e.id)),a.appendChild(r.liSearch),o=!0),o||a.appendChild(L(t,i===t||i.placeholder===t?"":i.placeholder,!0,e.id,i,_(i,e.options[s].dataset,e.options[s].value))),{values:a}}a="";var l,n,d=!1;for(var s in e.options)s!==e.options[s].id&&e.options[s].selected&&((l=(n=_(i,e.options[s].dataset,e.options[s].value))!==t?B(i,n):t)!==t&&(d=!0),a+=(l===t?"":l)+(e.options[s].text===t?e.options[s].value:e.options[s].text));return{html:d,values:""===a?i===t||i.placeholder===t?"":i.placeholder:a}},O=function(e,i){var r=document.createElement("input");return r.className="ddTP_SCH__field",r.dataset.refid=i,r.tabindex="0",r.autocomplete="off",r.autocorrect="off",r.autocapitalize="none",r.spellcheck="false",r.role="searchbox",r.ariaAutocomplete="list",r.placeholder="",r.type="search",e!==t&&e.length>0?(r.value=e,r.style.width=.75*(r.value.length+1)+"em"):r.style.width="0.75em",r},B=function(e,i){return e!==t&&e.pre!==t?"object"==typeof i?e.pre.replace("#data#",i.data).replace("#style#",i.style):e.pre.replace("#data#",i):t},L=function(e,t,i,r,a,o){var s=C({c:"ddTP_S__choice"+(i?" isplaceholder":""),v:e,id:r,iH:t||e,iTB:B(a,o)});if(!i){var l=document.createElement("span");l.className="ddTP_S__choice__remove",l.innerText="x",l.dataset.refid=r,s.appendChild(l)}return s},k=function(){if(r.INFOCUS!=t){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&&r.liSearch!==t&&(r.liSearch.style.display="none"),tpGS.gsap.set(r.wrap,{display:"none"}),delete r.timeStamp,delete r.INFOCUS,delete r.highlighted,E()}},I=function(){if(r.timeStamp!==t&&r.INFOCUS!==t&&window.ddTPcache[r.INFOCUS]!==t&&window.ddTPcache[r.INFOCUS].container!==t){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(){I()}))}},w=function(){r.highlighted!==t&&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 i=document.createElement("li");return e.group!==t?(i.innerHTML='<strong class="ddTP_R__group">'+e.group+"</strong>",i):(e.c&&(i.className=e.c),e.v&&(i.dataset.val=e.v),e.iTB||e.iTA?i.innerHTML=(e.iTB===t?"":e.iTB)+(e.iT===t?e.iH:e.iT)+(e.iTA===t?"":e.iTA):e.iT?i.innerText=e.iT:e.iH&&(i.innerHTML=e.iH),e.id&&(i.dataset.refid=e.id),e.optid!==t&&(i.dataset.optid=e.optid),e.aS&&(i.ariaSelected=e.aS),i)},T=function(e,i,a,o){return C({c:"ddTP_RO"+(r.highlighted===t&&e.selected?" ddTP_RO--highlighted":""),v:e.value,id:o,aS:e.selected,iT:e.text===t||""===e.text?e.value:e.text,iTB:B(a,_(a,e.dataset,e.value)),optid:i,group:"OPTGROUP"===e.tagName?e.label:t})},F=function(e,i){var a,o=window.ddTPcache[e],s=(o.container.getBoundingClientRect(),document.createDocumentFragment()),l="";o.params=o.params===t?{}:o.params,o.params.tags="true"==o.sel.dataset.tags||o.params.tags,o.params.search=o.params.search===t?(" "+o.sel.className).indexOf(" searchbox")>=0:o.params.search,r.highlighted=t,r.timeStamp||(r.searchi.value="",requestAnimationFrame((function(){r.searchi.focus()}))),D(),r.wrap.className="ddTP_C ddTP_C--default ddTP_C--open"+(o.sel.dataset.theme!==t?" ddTP_C--"+o.sel.dataset.theme:""),o.container.classList.add("ddTP_C--open"),o.container.classList.add("ddTP_C--focus"),r.ul.ariaMultiselectable=o.sel.multiple,r.searchw.style.display=o.sel.multiple||!o.params.search?"none":"block",r.INFOCUS=e,r.ul.innerHTML="",r.searchi.dataset.refid=e,o.params.search&&o.params.searchValue!==t&&""!==o.params.searchValue&&(l=o.params.searchValue.toLowerCase()),o.sel.multiple&&(o.params.search||o.params.tags)&&null!==r.liSearch&&r.liSearch!==t&&(r.liSearch.style.display="block");var n=-1;for(var d in o.sel.children)if(n++,!(!o.sel.children.hasOwnProperty(d)||"OPTION"!==o.sel.children[d].tagName&&"OPTGROUP"!==o.sel.children[d].tagName||o.sel.children[d].disabled||"OPTION"===o.sel.children[d].tagName&&""!==l&&-1==o.sel.children[d].value.toLowerCase().indexOf(l)&&-1==o.sel.children[d].textContent.toLowerCase().indexOf(l)))if(a=T(o.sel.children[d],n,o.params,e),"OPTGROUP"===o.sel.children[d].tagName)for(var c in s.appendChild(a),n--,o.sel.children[d].children)n++,!o.sel.children[d].children.hasOwnProperty(c)||"OPTION"!==o.sel.children[d].children[c].tagName||o.sel.children[d].children[c].disabled||""!==l&&-1==o.sel.children[d].children[c].value.toLowerCase().indexOf(l)&&-1==o.sel.children[d].children[c].textContent.toLowerCase().indexOf(l)||(a=T(o.sel.children[d].children[c],n,o.params,e),r.highlighted===t&&o.sel.children[d].selected&&(r.highlighted=a),s.appendChild(a));else r.highlighted===t&&o.sel.children[d].selected&&(r.highlighted=a),s.appendChild(a);if(r.highlighted===t&&s.childElementCount>0&&(r.highlighted=s.firstElementChild,w(),r.highlighted.classList.add("ddTP_RO--highlighted")),r.ul.appendChild(s),tpGS.gsap.set(r.wrap,{display:"block",left:0,top:0,position:"absolute",width:"185px"}),r.timeStamp===t&&(r.timeStamp=2,w(),requestAnimationFrame((function(){I()}))),i&&y(o.rendered,V(o.sel,o.params)),(o.params.tags||o.params.search)&&o.params.searchFocus){var p=o.sel.multiple?o.rendered.getElementsByClassName("ddTP_SCH__field"):r.searchi;p!==t&&null!==p&&p.length>0&&requestAnimationFrame((function(){p[0].focus(),0!==o.params.cursorPosition&&o.params.cursorPosition!==t&&(p[0].selectionStart=p[0].selectionEnd=o.params.cursorPosition),o.params.cursorPosition=0}))}},x=function(e){if(e.sel!=t&&e.sel.options!=t){var i;for(var r in e.sel.options){if(!e.sel.options.hasOwnProperty(r)||i)continue;i=e.sel.options[r].value==e.value?e.sel.options[r]:i}i!==t&&e.sel.removeChild(i)}},J=function(e){requestAnimationFrame((function(){F(e,!0)}))},N=function(e){r.INFOCUS!==t&&-1===e.target.className.indexOf("ddTP")&&k()},P=function(){r.highlighted=document.getElementsByClassName("ddTP_RO--highlighted"),r.highlighted=null===r.highlighted||r.highlighted===t||0===r.highlighted.length?t:r.highlighted[0]},j=function(e){P(),r.highlighted!==t&&null!==r.highlighted[e]&&r.highlighted[e]!==t&&(r.highlighted.classList.remove("ddTP_RO--highlighted"),r.highlighted=r.highlighted[e],r.highlighted.classList.add("ddTP_RO--highlighted"),w())},A=function(e){if(r.INFOCUS!==t&&r.highlighted!==t){var i=e.which||e.keyCode;return i===g||i===S?(ddTPcache[r.INFOCUS].sel.multiple?null!==r.liSearch&&r.liSearch!==t&&r.liSearch.blur():r.searchi.blur(),j(i===g?"previousElementSibling":"nextElementSibling"),e.preventDefault(),!1):i!==s||ddTPcache[r.INFOCUS].params.tags?void 0:(P(),r.highlighted!==t&&z(r.highlighted),e.preventDefault(),!1)}},E=function(){document.body.removeEventListener("click",N),document.body.removeEventListener("keydown",A),r.GLOBALLISTENER=t},D=function(){r.GLOBALLISTENER||(document.body.addEventListener("click",N),document.body.addEventListener("keydown",A),r.GLOBALLISTENER=!0)},M=function(){var h;i=!0,h=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),h.appendChild(r.wrap),r.wrap.style.display="none",document.body.appendChild(h),f.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,F(this.dataset.refid)):k()})),f.on("mouseenter",".ddTP_RO",(function(){this.classList.add("ddTP_RO--highlighted")})),f.on("mouseleave",".ddTP_RO",(function(){this.classList.remove("ddTP_RO--highlighted")})),f.on("click",".ddTP_S__choice__remove",(function(){var i=ddTPcache[this.dataset.refid];return i.params.tags?(x({sel:i.sel,value:this.parentNode.dataset.val}),this.parentNode.parentNode.removeChild(this.parentNode),i.params.searchValue="",i.params.searchFocus=!1):(!function(e){if(e.sel!=t&&e.sel.options!=t){var i;for(var r in e.sel.options)e.sel.options.hasOwnProperty(r)&&!i&&(i=e.sel.options[r].value==e.value?e.sel.options[r]:i);i!==t&&(i.selected=!1)}}({sel:i.sel,value:this.parentNode.dataset.val}),i.params.searchValue="",i.params.searchFocus=!1),i.sel.dispatchEvent(new Event("change",{bubbles:!0})),e(i.sel).trigger("ddTP:unselect"),J(this.dataset.refid),!1})),f.on("keydown",".ddTP_SCH__field",(function(i){var r=i.which||i.keyCode,l=this.dataset.refid,n=ddTPcache[l];if(r===g||r===S)return j(r===g?"previousElementSibling":"nextElementSibling"),i.preventDefault(),!1;if(r!==o)if(n.params.tags){if(n.params.tags&&r===a&&""===this.value){var d=this.parentNode.previousElementSibling;null!==d&&d!==t&&"LI"===d.tagName&&d.dataset.val!==t&&(n.params.searchValue=d.dataset.val,n.params.searchFocus=!0,x({sel:n.sel,value:n.params.searchValue}),e(n.sel).trigger("ddTP:unselect"))}else if(this.value.length>1&&(e.inArray(String.fromCharCode(r),n.params.tokenSeparators)>=0||e.inArray(i.key,n.params.tokenSeparators)>=0)||r===s){var c=document.createElement("option");c.value=this.value,c.innerHTML=this.value,c.dataset.refid=l,c.selected=!0,n.sel.appendChild(c),n.sel.multiple&&this.parentNode.parentNode.insertBefore(L(this.value,t,n.sel.id,t),this.parentNode),this.value="",n.params.searchValue="",n.params.searchFocus=!0,n.params.cursorPosition=0,n.sel.multpile||(c.ariaSelected=!0),e(n.sel).trigger("ddTP:select"),n.sel.multpile||(y(n.rendered,V(n.sel,n.params)),n.sel.dispatchEvent(new Event("change",{bubbles:!0})),k())}}else n.sel.multiple&&n.params.search&&Q(this);else k()})),f.on("keyup",".ddTP_SCH__field",(function(e){var t=e.which||e.keyCode;if(t!==v&&t!==m&&t!==l&&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,F(this.dataset.refid,!0)}})),f.on("click",".ddTP_RO",(function(){z(this)}))},z=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,k()),y(i.rendered,V(i.sel,i.params)),i.sel.dispatchEvent(new Event("change",{bubbles:!0})),i.sel.multiple&&J(t.dataset.refid)},G=function(e,i){null!==i&&e!==t&&null!==i.parentNode&&i.parentNode.insertBefore(e,i.nextSibling)},Q=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,s=o+"-gradient(";a="linear"===o?180!==(r=parseInt(e.angle,10))?r+"deg, ":"":"ellipse at center, ";for(var l,n=e.colors,d=n.length,c="",p=0;p<d;p++)p>0&&(c+=", "),c+="rgba("+(l=n[p]).r+", "+l.g+", "+l.b+", "+l.a+") "+l.position+"%";return s+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 s=i[o];delete s.align,s.a=RSColor.sanitizeAlpha(s.a),s.r=parseInt(s.r,10),s.g=parseInt(s.g,10),s.b=parseInt(s.b,10),s.position=parseInt(s.position,10),t?JSON.stringify(s)!==JSON.stringify(t)&&(a[a.length]=s):a[a.length]=s,t=s}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,s,l,n,d=r.split("%"),c=[],p=0;d.pop(),n=d.length;for(var u=0;u<n;u++){if(s=(l=d[u].trim()).length,a="",","===l.charAt(0)&&(l=l.slice(1)),-1===l.search(" "))return e;for(a=l.split(" "),a=parseInt(a[a.length-1],10);s--&&(p=s," "!==l[s]););l=-1!==(l=l.substring(0,p)).search(/\)/)?l.split(")")[0].trim()+")":l.split(" ")[0].trim(),"hex"===RSColor.process(l)[1]&&(l=RSColor.sanitizeHex(l),l=RSColor.processRgba(l)),o&&o===l||(o=l,l=RSColor.rgbValues(l,4),c[c.length]={r:l[0],g:l[1],b:l[2],a:l[3],position:a,align:"top"},c[c.length]={r:l[0],g:l[1],b:l[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,s=t.position;if(!(o>s)){for(var l,n,d,c=[],p=0;p<a;p++)(n=parseFloat(r(p,0,1,a).toFixed(2))*(s-o)+o)>o&&n<s&&(c[c.length]=n);var u,v,g=c.length,m=parseFloat(((s-o)/(g+1)).toFixed(2)),S=parseFloat(m+o);for(p=0;p<g;p++)(d=c[p])!==e.position&&(u=RSColor.sanitizeAlpha(e.a),v=RSColor.sanitizeAlpha(t.a),l={position:S,r:e.r!==t.r?Math.round(RSColor.distColor(d,o,s,e.r,t.r)):e.r,g:e.g!==t.g?Math.round(RSColor.distColor(d,o,s,e.g,t.g)):e.g,b:e.b!==t.b?Math.round(RSColor.distColor(d,o,s,e.b,t.b)):e.b,a:u!==v?RSColor.sanitizeAlpha(RSColor.distAlpha(d,o,s,e.a,t.a)):u},S+=m,S=parseFloat(S.toFixed(2)),i[i.length]=l)}},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 s=0;s<a;s++)o[o.length]=i[s],RSColor.insertPoints(i[s],i[s+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,s,l,n,d,c,p,u,v,g,m,S,f,h,b,R,y,_,V,O,B,L,k,I,w,C,T,F,x,J,N,P,j,A,E,D,M,z,G,Q,H,Z,q,W,U,Y,X,K,$,ee,te,ie,re,ae,oe,se,le,ne,de,ce,pe,ue,ve,ge,me,Se,fe,he,be,Re,ye,_e,Ve,Oe,Be,Le,ke,Ie,we,Ce,Te,Fe,xe,Je,Ne,Pe,je,Ae,Ee,De,Me,ze,Ge,Qe,He={},Ze=236,qe=25,We=3,Ue=4,Ye=150,Xe=10,Ke="full",$e={axis:"x",containment:"#revbuilder-cpicker-point-wrap"},et={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"},tt=["#FFFFFF","#000000","#FF3A2D","#007AFF","#4CD964","#FFCC00","#C7C7CC","#8E8E93","#FFD3E0","#34AADC","#E0F8D8","#5AC8FA","#5856D6","#FF69B4","#800000","#009933"],it=[{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&}]}"}],rt='<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 at(){this.innerHTML=me[lt(this,"data-text")]}function ot(){this.setAttribute("placeholder",me[lt(this,"data-placeholder")])}function st(){this.setAttribute("data-message",me[lt(this,"data-alert")])}function lt(e,t){return e.getAttribute(t)||""}function nt(t){t||(t={}),"string"==typeof t&&(t=JSON.parse(t.replace(/\&/g,'"'))),me=e.extend({},et,t),H=me.color,h.find("*[data-placeholder]").each(ot),h.find("*[data-alert]").each(st),h.find("*[data-text]").each(at)}function dt(t,i,r,a){var o,s,l,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=(s=t[2]).angle,d=s.type,t=RSColor.processGradient(e.extend(!0,{},s),!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)&&(s=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>'),l=e(p+="</span>"),s&&l.data("gradient",s),l[0]}return(l=document.createElement("span")).className="revbuilder-cpicker-color blank",l}function ct(){var t=lt(this,"data-color").toLowerCase(),i=!Je&&t===Ce.toLowerCase();if(t===he||i){var r=e(this);return r.closest(".revbuilder-cpicker-presets-group").find(".revbuilder-cpicker-color.selected").removeClass("selected"),Ee=r,Je&&!U&&vt(Ee.data("gradient"),!0),r.addClass("selected"),!1}}function pt(e,t){for(var i=document.createDocumentFragment(),r=-1!==e.search("core"),a=r?"":" revbuilder-picker-color-custom",o=t.length,s=Math.max(Math.ceil(o/Ue),We),l=0;l<s;l++)for(;t.length<(l+1)*Ue;)t[t.length]="blank";for(o=t.length,l=0;l<o;l++)i.appendChild(dt(t[l],r,a));return["revbuilder-cpicker-"+e,i]}function ut(e,t,i){if(Fe){if(!e){var r=t||I.val(),a=void 0!==i?i:Ie.val();t="transparent"===r?"transparent":"100%"===a?RSColor.sanitizeHex(r):RSColor.processRgba(r,a)}var o="transparent"===t,s=o?"":t;e?y.data("state",t):k.data("state",t),o?(Fe.css("background",s),Be.css("background",s)):(Fe[0].style.background=s,Be.css("background",s)),d&&d(Le,t,be,ye),RVS.DOC.trigger("revcolorpickerupdate",[Le,t])}}function vt(i,r){var o=RSColor.process(i),s=o[1],n=o[0];if(a&&R.removeClass("checked"),"gradient"!==s&&"gradient_css"!==s){switch(s){case"hex":i=RSColor.sanitizeHex(n),Ie.val("100%"),Pt(100);break;case"rgba":var d=RSColor.rgbaToHex(n),c=parseInt(100*d[1],10);i=d[0],Ie.val(c+"%"),Pt(c);break;case"rgb":i=RSColor.rgbToHex(n),Ie.val("100%"),Pt(100);break;default:ae.trigger("click"),k.trigger("click")}Q.val(i).change(),r||k.trigger("click")}else a?("gradient_css"===s&&(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"),Dt(a),l.val(a).ddTP("change"),L.val(o+"%"),t.val(Rt(r)),Dt(),Tt(r),function(e){for(var t,i,r=document.createDocumentFragment(),a=e.length,o=0;o<a;o++)t=(i=e[o]).align,r.appendChild(bt(t,i.position,ft(i),St(i,t)));pe&&pe.draggable("destroy");ue.empty().append(r),pe=ue.children().draggable($e)}(i.colors)}(o[2]),Ot(),r||(de=!0,y.trigger("click"))):(Q.val(RSColor.defaultValue).change(),k.trigger("click"));return[n,s]}function gt(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 s=0;s<a;s++)if((i=r[s]).align===e&&i.x>t)return i}(t,i),a=r.color,s=St(a,t,!0),l=bt(t,i,ft(a,!0),s);T&&T.removeClass("active"),T=e(l).addClass("active").appendTo(ue).draggable($e),z=T.children(".revbuilder-cpicker-point-square")[0],G=T.children(".revbuilder-cpicker-point-triangle")[0],pe=ue.children();var n=mt(i);Ot(l),"bottom"===t&&C.val(n[1]).change()}function mt(e){void 0===e&&(e=o[se].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],Qe.css("background",t),h.find(".revbuilder-cpicker-point-bottom").length>2&&ve.addClass("active"),ce.parent().addClass("disabled"),h.addClass("open");else{ve.hasClass("active")&&(Qe.css("background",""),ve.removeClass("active"));var r=RSColor.getOpacity(t);ce.attr("data-opacity",r).val(r).parent().removeClass("disabled"),h.find(".revbuilder-cpicker-point-top").length>2&&ve.addClass("active"),h.removeClass("open")}return w.val(e+"%").parent().removeClass("disabled"),[i,t]}function St(e,t,i){return"bottom"===t?"rgb("+e.r+","+e.g+","+e.b+")":"rgba(0, 0, 0, "+(i?"1":e.a)+")"}function ft(e,t){var i=t?"1":e.a;return"rgba("+e.r+","+e.g+","+e.b+","+i+")"}function ht(e,t){var i=RSColor.hexToRGB(e);t?(_.val(e),m.value=i[0],S.value=i[1],f.value=i[2]):(I.val(e),u.value=i[0],v.value=i[1],g.value=i[2],"0%"===Ie[0].value&&Ie.val("100%").trigger("focusout")),I.rsColorPicker("refresh")}function bt(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 Rt(e){return M||(M=document.createElement("textarea")),e&&"radial"!==e||(e="0"),M.innerHTML=e+"&deg;",M.value}function yt(){T&&(T.removeClass("active"),T=!1),w.parent().addClass("disabled"),ce.parent().addClass("disabled"),ve.removeClass("active"),ve.removeClass("active"),Qe.css("background",""),h.removeClass("open")}function _t(e,t){h.removeClass("active is-basic").hide(),r.removeClass("revbuilder-colorpicker-open"),Ae.css({left:"",top:""}),F&&(F.remove(),F=!1),Ee?(Ee.hasClass("selected")?(t&&Le.data("hex",Ee.attr("data-color").toLowerCase()),Ee.removeClass("selected")):Le.removeData("hex"),Ee=!1):Le.removeData("hex"),t||(J&&J(Le,ne,le,be,ye),we&&"transparent"!==we?(Fe[0].style.background=we,Be.css("background",we)):(Fe.css("background",""),Be.css("background","")),RVS.DOC.trigger("revcolorpickercancel",[Le,ne,le])),n=null,s=null,u=null,v=null,g=null,m=null,S=null,f=null,_=null,x=null,I=null,K=null,D=null,Y=null,X=null,$=null,Z=null,M=null,re=null,ie=null,ue=null,Be=null,Ie=null,Fe=null,Le=null}function Vt(t){var i=e.extend(!0,{},He);return RSColor.processGradient(i,!0,t)}function Ot(i,r,a,n){q=r,wt(),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&&(se=m);s.hasClass("selected")?(He.type="radial",He.angle="0"):(He.type="linear",He.angle=parseInt(t.val(),10).toString()),He.colors=v,He.easing=l.val(),He.strength=parseInt(L.val(),10),Ee&&!Ne&&Ee.removeClass("selected"),n||(u=e.extend(!0,{},He),ut(!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=Vt(!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=Vt()),re.style.background=u,He.type="linear",He.angle="90",Y.style.background=Vt(),He.angle="180",X.style.background=Vt(),He.type="radial",He.angle="0",$.style.background=Vt())}function Bt(e,t){if(0===e)return!1;for(var i;e--;)if((i=o[e]).align!==t)return i;return!1}function Lt(e,t,i){if(e===i)return!1;for(var r;e++<i;)if((r=o[e]).align!==t)return r;return!1}function kt(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 It(e,t,i){var r=e.color,a=t.color,o=i.color;if(t!==i){var s=e.x,l=t.x,n=i.x;r.r=RSColor.distColor(s,l,n,a.r,o.r),r.g=RSColor.distColor(s,l,n,a.g,o.g),r.b=RSColor.distColor(s,l,n,a.b,o.b)}else r.r=a.r,r.g=a.g,r.b=a.b}function wt(){o=[],A=[],E=[],pe.each(Ct),o.sort(RSColor.sortPoints);for(var e,t,i,r,a=o.length,s=a-1,l=0;l<a;l++)!1===(t=Bt(l,i=(e=o[l]).align))&&(t=Lt(l,i,s)),!1===(r=Lt(l,i,s))&&(r=Bt(l,i)),"bottom"===i?kt(e,t,r):It(e,t,r);o.sort(RSColor.sortPoints)}function Ct(e){var t=RSColor.rgbValues(lt(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 Tt(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 Ft(i,r,a){var o,s,l=void 0!==a,n=l?a:parseInt(t.val(),10);if(i&&"keyup"===i.type)o=!isNaN(n)&&n>=-360&&n<=360,s=n;else{var d=parseInt(t.data("orig-value"),10);n||(n="0"),(isNaN(n)||n<-360||n>360)&&(n=s=d,t.val(Rt(n)),o=!0),n!==d&&(s=n,o=!0,t.val(Rt(n)),l||(n=r||n,oe.removeClass("selected"),e('.revbuilder-cpicker-orientation[data-direction="'+n+'"]').addClass("selected")))}(o||r)&&(s&&Tt(s),Ot())}function xt(e,t){var i=parseInt(100*(Math.round(t.position.left)/(Ze-2)).toFixed(2),10);w.val(i+"%").trigger("keyup")}function Jt(){var t=e(this);t.hasClass("revbuilder-cpicker-point-bottom")?"bottom":"top",t.trigger("click")}function Nt(){w.trigger("focusout")}function Pt(e){Me=!0,De.slider("value",Math.round(.01*e*Ye)),Me=!1}function jt(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-qe,i-qe)*(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,Ft(!1,!1,a),!1}}function At(e){e.stopImmediatePropagation()}function Et(t){t||(t=ke),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=Xe+"px")}))})).RSScroll("update")}function Dt(t){K||(K=e("#revpicker-easing-row")),t||(t=l.val()),K["none"===t?"removeClass":"addClass"]("active")}function Mt(){b||function(){r||(r=e("body"),h=e('<div class="revbuilder-cpicker-wrap _TPRB_ color-view palette-open">'+rt+"</div>").appendTo(r));Ve.core&&(Ve.core.colors&&(tt=Ve.core.colors),Ve.core.gradients&&(it=Ve.core.gradients));Gt(Ve),nt(Ve.language||et),b=!0}(),Qe=e("#revbuilder-cpicker-preview-gradient"),ve=e("#revbuilder-cpicker-color-delete"),ce=e("#revbuilder-cpicker-grad-opacity"),w=e("#revbuilder-cpicker-color-location"),oe=e(".revbuilder-cpicker-orientation"),C=e("#revbuilder-cpicker-iris-gradient"),Q=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"),k=e("#revbuilder-cpicker-color-btn"),L=e("#revbuilder-cpicker-strength"),t=e("#revbuilder-cpicker-meta-angle"),te=e("#revbuilder-cpicker-wheel"),Ae=e("#revbuilder-cpicker"),l=e("#revbuilder-cpicker-easing"),$e.drag=xt,$e.stop=Nt,$e.start=Jt,k.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")}}),ke=e(".revbuilder-cpicker-presets-group").RSScroll({wheelPropagation:!1,suppressScrollX:!0}),te.on("mousedown.revcpicker",(function(e){oe.removeClass("selected"),W=!0,jt(e)})).on("mousemove.revcpicker",(function(e){W&&jt(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"),Fe&&(t=e(this).data("state")),U?(Fe&&(he=I.val()),h.removeClass("gradient-view").addClass("color-view")):(Fe&&(he=t),h.removeClass("color-view").addClass("gradient-view"),de||(x.children(".revbuilder-cpicker-color").not(".blank").eq(0).trigger("click"),de=!0)),t){var i="transparent"===t?"":t;Fe.css("background",i),Be.css("background",i),Je=!0,e(".revbuilder-cpicker-color").not(".blank").each(ct),Je=!1,RVS.DOC.trigger("revcolorpickerupdate",[Le,t])}U||(Ne=!0,e(".revbuilder-cpicker-point-bottom").first().trigger("click"),Ne=!1)})),e("#revbuilder-cpicker-palette").on("click",(function(){h.hasClass("palette-open")?h.removeClass("palette-open"):(h.addClass("palette-open"),Et())})),e("#revbuilder-cpicker-check").on("click.revcipicker",(function(){var t,i,r,a;if(h.hasClass("color-view")){var o=I.val(),s=Ie.val();r="transparent"===o?"transparent":"100%"===s?RSColor.sanitizeHex(o):RSColor.processRgba(o,s),t=[Le,r,!1],i=r}else{yt(),Ot(!1,!1,!0,!0);var l=JSON.stringify(He).replace(/\"/g,"&");i=RSColor.processGradient(e.extend(!0,{},He),!0),t=[Le,i,l]}!0!==(a=t[1]!==we)&&!0!==ge||(Le.attr("data-color",t[1]),RVS.DOC.trigger("revcolorpickerchanged",t),Ge&&Ge(t[0],t[1],t[2],be,ye)),_t(0,!0===a||!0===ge)})),h.on("click.revcpicker",(function(t){e(t.target).closest("#revbuilder-cpicker").length||yt()})),e(".revbuilder-cpicker-close").on("click.revcpicker",_t),Q.wpColorPicker({palettes:!1,width:190,border:!1,hide:!1,change:function(e,t){var i=t.color.toString();if(this.value=i,ht(i),!xe){var r=Ie.val();0===parseInt(r,10)&&(i="transparent"),ut(!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,ht(i,!0),Qe.css("background",i),z.style.backgroundColor=i,G.style.borderBottomColor=i;var r=RSColor.processRgba(i,100),a=RSColor.rgbValues(r,4),o=He.colors[se];o.r=a[0],o.g=a[1],o.b=a[2],o.a=RSColor.sanitizeAlpha(a[3]),T&&T.attr("data-color",r),Ot()}}),De.slider({orientation:"vertical",max:Ye,value:Ye,start:function(){je="transparent"===I.val()},slide:function(e,t){if(!Me){var i,r=parseInt(100*(t.value/Ye).toFixed(2),10);je&&(i=r?"#ffffff":"transparent",I.val(i)),0===r&&(i="transparent"),ut(!1,i,r||"transparent"),Ie.val(r+"%")}}}),e("body").on("click.revcpicker",".revbuilder-cpicker-point",(function(){ue.find(".revbuilder-cpicker-point.active").removeClass("active"),T=e(this).addClass("active"),z=T.children(".revbuilder-cpicker-point-square")[0],G=T.children(".revbuilder-cpicker-point-triangle")[0],Ot(this);var t=mt();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>15&&ve.hasClass("active")?T.addClass("warning"):T.removeClass("warning"):t>i&&t-i>15&&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>10&&ve.hasClass("active")?ve.trigger("click"):T.removeClass("warning"):t>i&&t-i>10&&ve.hasClass("active")?ve.trigger("click"):T.removeClass("warning")}})).on("keypress.revcpicker",(function(e){if(h.hasClass("active")){var t=e.which;27==t?_t():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),h.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]),Ie.val(t+"%").trigger("keyup"),i=i[0]):"transparent"!==r[1]&&"transparent"!==i?Ie.val("100%").trigger("keyup"):(xe=!0,ae.trigger("click")),xe=!0,Q.val(i).change(),"transparent"===I.val()&&I.val(i.toLowerCase()),xe=!1;var a=Ie.val();0===parseInt(a,10)&&(i="transparent"),ut(!1,i,a),Ee.addClass("selected")}else n.removeClass("full"),D.removeClass("full"),vt(Ee.data("gradient"),!0),R.removeClass("checked"),x.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})).on("mouseout.revcpicker",".revbuilder-cpicker-color:not(.blank)",(function(){Pe})).on("click.revcpicker",".revbuilder-cpicker-delete",(function(){if(p){if(window.confirm(document.getElementById("revbuilder-cpicker-remove-delete").innerHTML)){h.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"),s=o.find(".rs__scrollbar-x-rail");i.remove(),e('<span id="hello" class="revbuilder-cpicker-color blank"></span>').insertBefore(s),Et(o),h.removeClass("onajax onajaxdelete")})),r=e.trim(r.replace(/\W+/g,"_")).replace(/^\_|\_$/g,"").toLowerCase(),p("delete",r,a,"revcpicker_onajax_delete",Le)}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=h.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(lt(this,"data-title").replace(/\W+/g,"_")).replace(/^\_|\_$/g,"").toLowerCase()===a)return alert(r.attr("data-message")),i=!0,!1})),!i){h.addClass("onajax onajaxsave");var o,s,l={};if("colors"===t){var n=I.val(),d=Ie.val();o="transparent"===n?"transparent":"100%"===d?RSColor.sanitizeHex(n):RSColor.processRgba(n,d)}else s=re.style.background,Ot(!1,!1,!0),o=e.extend({},He);l[a]=o,RVS.DOC.off("revcpicker_onajax_save.revcpicker").on("revcpicker_onajax_save.revcpicker",(function(i,a){if(a)return h.removeClass("onajax onajaxsave"),void alert(r.attr("data-message"));var o=e(dt(l,!1," revbuilder-picker-color-custom",s)),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/Ue),We)*Ue;p++<u;)e('<span class="revbuilder-cpicker-color blank"></span>').insertBefore(d)}e("#revbuilder-cpicker-preset-"+t).val("custom").trigger("change"),Et(n),o.trigger("click"),e(".revbuilder-cpicker-preset-save").val(""),h.removeClass("onajax onajaxsave")})),p("save",l,t,"revcpicker_onajax_save",Le)}}else alert(r.attr("data-message"))}else console.log("Ajax callback not defined")})),ae.on("click.revcpicker",(function(){Pt(0),Q.val(RSColor.defaultValue).change(),I.val("transparent"),ut(!1,"transparent"),clearTimeout(Oe),Oe=setTimeout(zt,100)})),h.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"):h.hasClass("color-view")?I.val(RSColor.rgbToHex("rgb("+u.value+","+v.value+","+g.value+")")).trigger("focusout"):_.val(RSColor.rgbToHex("rgb("+m.value+","+S.value+","+f.value+")")).trigger("focusout")})),e(".revbuilder-cpicker-hex").on("focusout.revcpicker",(function(){var t,i;if("revbuilder-cpicker-color-hex"===this.id){if(!(i=I.val()))return void ae.trigger("click");if(i=RSColor.sanitizeHex(i),RSColor.isColor.test(i))ht(i);else{if(!(t=e(this).data("orig-value")))return void ae.trigger("click");if("transparent"===(i=t))return void ae.trigger("click");ht(i)}Q.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",At),w.on("keyup.revcpicker focusout.revcpicker",(function(e){if(T){var t,i="bottom"===(T.hasClass("revbuilder-cpicker-point-bottom")?"bottom":"top")?E:A,r=w.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&&(w.val(r+"%"),T.attr("data-location",r)),T.css("left",r+"%"),Ot()}})).on("focusin.revcpicker",At),e("#revbuilder-cpciker-clear-gradient").on("click.revcpicker",(function(){C.val(RSColor.defaultValue).change()})),t.on("keyup.revcpicker focusout.revcpicker",Ft).on("focusin.revcpicker",At),oe.on("click.revcpicker",(function(){var i=e(this),r=i.attr("data-direction");oe.removeClass("selected"),i.addClass("selected"),"radial"!==r?t.val(Rt(r)):t.val(0),Ft(!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=h.find(".revbuilder-cpicker-point-"+e).length;t>2&&(T.draggable("destroy").remove(),pe=ue.children(),h.trigger("click"),Ot()),t<=20&&("bottom"===e?D.removeClass("full"):n.removeClass("full"))}})),e(".revbuilder-cpicker-preset-save").on("focusin.revcpicker",At),e(".revbuilder-cpicker-opacity-input").on("keyup.revcpicker focusout.revcpicker",(function(t){var i,r=-1===this.id.search("grad"),a=r?Ie:ce,o=a.val().replace("%",""),s=t.type;if(isNaN(o)&&(o="keyup"===s?"0":e(this).data("orig-value").replace("%","")),o=Math.max(0,Math.min(100,o)),"focusout"===s&&(a.val(o+"%"),r||T.attr("data-opacity",o)),r){ut(!1,0===parseInt(o,10)&&"transparent",o),Pt(o)}else{var l=RSColor.rgbValues(T.attr("data-color"),3),n=He.colors[se];o=RSColor.sanitizeAlpha(.01*parseInt(o,10)),n.r=l[0],n.g=l[1],n.b=l[2],n.a=o,i=RSColor.rgbaString(n.r,n.g,n.b,o),T.attr("data-color",i),Ot(),i="rgba(0, 0, 0, "+o+")",z.style.backgroundColor=i,G.style.borderTopColor=i}})).on("focusin.revcpicker",At),e(".revbuilder-cpicker-builder-hit").on("click.revcpicker",(function(e){o||wt();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?h.find(".revbuilder-cpicker-point-bottom").length<20?(gt(i,t),Ee=!1):D.addClass("full"):h.find(".revbuilder-cpicker-point-top").length<20?(gt(i,t),Ee=!1):n.addClass("full")})),R.on("click.revcpicker",(function(){!R.hasClass("checked")?R.addClass("checked"):R.removeClass("checked"),Ot(!1,!0)})),l.on("change.revcpicker",(function(){Ot(),Dt(this.value)})),L.on("keyup.revcpicker focusout.revcpicker",(function(e){var t=L.val().replace("%",""),i=e.type;isNaN(t)&&(t="keyup"===i?"0":L.data("orig-value").replace("%","")),t=Math.max(10,Math.min(1e3,t)),"focusout"===i&&L.val(t+"%"),Ot()})).on("focusin.revcpicker",At);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",Et()}));e.fn.ddTP&&(a.ddTP(),l.ddTP()),i=!0}function zt(){Ie.val("0%")}function Gt(t){var i,r,a,o,s,l=e.extend({},t),n=l.core||{},d=l.custom;!Se||d?(o=4,d=(Se=d)||{colors:[],gradients:[]}):o=2,n.colors||(n.colors=tt),n.gradients||(n.gradients=it);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=pt(i,a.slice()||[]),(s=e("#"+r[0])).find(".revbuilder-cpicker-color").remove(),s.prepend(r[1])}}function Qt(e,t,i){return jQuery.grep(e,(function(e){return e[i]!=t[i]}))}function Ht(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 Zt(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 qt(e){for(var t in void 0!==be[e]&&vt(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==Ht(_e[t],be[i].ref,"r")&&be[i].ref.push(_e[t])))}e.rsColorPickerApi={setValue:function(e,t){vt(e,t)},setGlobalColors:function(e){be=jQuery.extend(!0,{},e)},setGlobalCandidates:function(e){_e=e},getGlobalColors:function(){return be},closeColorPicker:function(){_t()},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=Le.attr("data-widget-id"),html=Le.attr("data-appended-html"),editing=Le.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 s=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!==Ht(_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===s||-999===s?(ye=!1,document.getElementById("inp_SkinPicker").style.display="none",jQuery("#enadisaGlobalSkin")[0].checked=!1):(ye=s,a[0].value=s,document.getElementById("inp_SkinPicker").style.display="inline-block",jQuery("#enadisaGlobalSkin")[0].checked=!0,currentEditing.innerHTML=be[s].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:Zt}),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,qt(-1),document.getElementById("inp_SkinPicker").style.display="none",vt(we,!1),currentEditing.innerHTML=editing)})),a.on("change.select2",(function(){ge=!0,be=jQuery.extend(!0,{},t),-1!==ye&&-999!==ye&&void 0!==t[ye]&&vt(t[ye].v,!1),ye=this.value,qt(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&&(Ke=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&&(fe=t.widgetId),t.defaultValue&&(RSColor.defaultValue=t.defaultValue),t.wrapClasses&&(ze=t.wrapClasses),t.appendedHtml&&(Te=t.appendedHtml),t.onRefresh&&(ee=t.defRefresh),b&&(Et(),t.language&&nt(t.language))};var Wt={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,s=RSColor.process(a);a=s[0],s="rgba"===s[1]&&RSColor.transparentRgba(a,!0)?"":a,"transparent"!==a?(t.data("tpcp")[0].style.background=s,Be&&Be.css("background",s)):(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 Ut(){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 s=!1,l=RVS.LIB.COLOR_PRESETS[r];switch(t){case"save":l[l.length]=i,s=!0;break;case"delete":var n=l.length;e:for(var d=0;d<n;d++)for(var c in l[d])if(c===i){l.splice(d,1),s=!0;break e}}s&&"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(Wt[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 s,l,n=this.dataset.wrapClasses||ze,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||et.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),l=t.defaultValue;var m=i.data("revcp");m&&(t=e.extend({},m,t)),i.data("revcp",t)}v||(v=l||RSColor.defaultValue,this.value=v),v=(s=RSColor.process(v))[0],"transparent"!==(s="rgba"===s[1]&&RSColor.transparentRgba(v,!0)?"":v)&&(a.style.background=s),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 S=!!t&&(t.init||c),f=Ve?e.extend(!0,Ve,t||{}):t||!1;S&&S(r,i,v,f),RVS.DOC.trigger("revcolorpickerinit",[r,i,v,f])}}))},e((function(){e("body").on("click.revcpicker",".revbuilder-colorpicker",(function(){i||Mt(),re=document.getElementById("revbuilder-cpicker-gradient-output"),m=document.getElementById("revbuilder-cpicker-r2"),S=document.getElementById("revbuilder-cpicker-g2"),f=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"),Ie=e("#revbuilder-cpicker-color-opacity"),s=e("#revbuilder-cpicker-orientation-radial"),x=e("#revbuilder-cpicker-gradients-core"),_=e("#revbuilder-cpicker-gradient-hex"),D=e("#revbuilder-cpicker-hit-bottom"),I=e("#revbuilder-cpicker-color-hex"),n=e("#revbuilder-cpicker-hit-top"),Le=e(this).data("revcolorinput");var t,o,l,c,b,R,V,L,w,C,T,N,A,E=document.getElementById("revbuilder-cpicker-current-edit"),M=document.getElementById("revbuilder-cpicker-edit-title"),z=Le.attr("data-widget-id"),G=Le.attr("data-appended-html"),Q=Le.attr("data-editing"),H=Le.attr("data-colors"),Z=Le.attr("data-mode"),q=Le.data("revcp"),W=Le.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&&(l=U.core.colors,t=U.core.gradients),U.custom&&(b=U.custom.colors,o=U.custom.gradients)),T=q.onEdit,N=q.onAjax,L=q.change,w=q.cancel,W||(W=q.lang),Z||(Z=q.mode),G||(G=q.appendedHtml),Q||(Q=q.editing),z||(z=q.widgetId)}(t||l||o||b||c||R)&&(V={},(t||l||c||R)&&(V.core={colors:R||l||tt,gradients:c||t||it}),(o||b)&&(V.custom={colors:b||tt,gradients:o||it}),Gt(V)),z||(z=fe),z&&(h[0].id=z),G||(G=Te),G&&(F=e(G).appendTo(Ae)),W&&nt(W),Z||(Z=Ke),Q?M.style.visibility="visible":(Q="",M.style.visibility="hidden"),E.innerHTML=Q,"single"===Z||"basic"===Z?(a=!1,y.hide(),k.show(),"basic"===Z&&h.addClass("is-basic")):(a=!0,y.show(),k.show()),function(e){return"string"==typeof e&&"transparent"!==e.trim()&&-1===e.search(/\[\{/)&&-1!==e.search("-gradient")}(A=Le.val()||RSColor.defaultValue)&&(A=RSColor.reverseGradient(A)),A.split("||").length>1&&(A=RSColor.joinToRgba(A),Le.val(A)),C=vt(A),we=C[0],ne=we,le=Le.val(),d=T||O,p=N||B,J=w||P,Ge=L||j,"gradient"!==C[1]?k.data("state",we):y.data("state",we),r.addClass("revbuilder-colorpicker-open"),Fe=Le.data("tpcp"),h.data("revcpickerinput",Le).addClass("active").show(),Et(),Ce=Le.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),he=Le.data("hex"),e(".revbuilder-cpicker-color").not(".blank").each(ct),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:Le})}))}));var Yt=!1;"loading"===document.readyState?document.addEventListener("readystatechange",(function(){"interactive"!==document.readyState&&"complete"!==document.readyState||Yt||(Yt=!0,Ut())})):(Yt=!0,Ut())}("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(s,l){if(!i[s]){if(!t[s]){var n="function"==typeof require&&require;if(!l&&n)return n(s,!0);if(o)return o(s,!0);var d=new Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var c=i[s]={exports:{}};t[s][0].call(c.exports,(function(e){return a(t[s][1][e]||e)}),c,c.exports,e,t,i,r)}return i[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)a(r[s]);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 s=r.apply(this,arguments);return e.addEventListener(i,s,o),{destroy:function(){e.removeEventListener(i,s,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,s=r.length;o<s;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 s=a(t),l=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,e),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 s.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}(l.default);e.exports=p}))},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)}));

Zerion Mini Shell 1.0