![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /proc/self/root/proc/self/cwd/wp-content/plugins/uicore-animate/assets/js/ |
function _defineProperty(t,e,i){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,_toPropertyKey(o.key),o)}}function _createClass(t,e,i){return e&&_defineProperties(t.prototype,e),i&&_defineProperties(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function _toPropertyKey(t){t=_toPrimitive(t,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(t,e){if("object"!=_typeof(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0===i)return("string"===e?String:Number)(t);i=i.call(t,e||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}(t=>{"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):("undefined"!=typeof globalThis?globalThis:self).Lenis=t()})(function(){function p(t,e,i){return Math.max(t,Math.min(e,i))}var w=(()=>_createClass(function t(){_classCallCheck(this,t)},[{key:"advance",value:function(t){var e,i,o,n,s;this.isRunning&&(e=!1,this.lerp?(this.value=(i=this.value,o=this.to,n=60*this.lerp,s=t,i=i,o=o,(1-(n=1-Math.exp(-n*s)))*i+n*o),Math.round(this.value)===this.to&&(this.value=this.to,e=!0)):(this.currentTime+=t,i=(e=1<=(s=p(0,this.currentTime/this.duration,1)))?1:this.easing(s),this.value=this.from+(this.to-this.from)*i),null!=(n=this.onUpdate)&&n.call(this,this.value,e),e)&&this.stop()}},{key:"stop",value:function(){this.isRunning=!1}},{key:"fromTo",value:function(t,e,i){var o=i.lerp,o=void 0===o?.1:o,n=i.duration,n=void 0===n?1:n,s=i.easing,s=void 0===s?function(t){return t}:s,r=i.onStart,i=i.onUpdate;this.from=this.value=t,this.to=e,this.lerp=o,this.duration=n,this.easing=s,this.currentTime=0,this.isRunning=!0,null!=r&&r(),this.onUpdate=i}}]))();var k=(()=>_createClass(function t(){var i,o,n,e=this,s=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=s.wrapper,l=s.content,a=s.autoResize,a=void 0===a||a,s=s.debounce,s=void 0===s?250:s;_classCallCheck(this,t),_defineProperty(this,"resize",function(){e.onWrapperResize(),e.onContentResize()}),_defineProperty(this,"onWrapperResize",function(){e.wrapper===window?(e.width=window.innerWidth,e.height=window.innerHeight):(e.width=e.wrapper.clientWidth,e.height=e.wrapper.clientHeight)}),_defineProperty(this,"onContentResize",function(){e.wrapper===window?(e.scrollHeight=e.content.scrollHeight,e.scrollWidth=e.content.scrollWidth):(e.scrollHeight=e.wrapper.scrollHeight,e.scrollWidth=e.wrapper.scrollWidth)}),this.wrapper=r,this.content=l,a&&(this.debouncedResize=(i=this.resize,o=s,function(){var t=arguments,e=this;clearTimeout(n),n=setTimeout(function(){i.apply(e,t)},o)}),this.wrapper===window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()},[{key:"destroy",value:function(){var t;null!=(t=this.wrapperResizeObserver)&&t.disconnect(),null!=(t=this.contentResizeObserver)&&t.disconnect(),window.removeEventListener("resize",this.debouncedResize,!1)}},{key:"limit",get:function(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}}]))(),b=(()=>_createClass(function t(){_classCallCheck(this,t),this.events={}},[{key:"emit",value:function(t){for(var e=this.events[t]||[],i=arguments.length,o=new Array(1<i?i-1:0),n=1;n<i;n++)o[n-1]=arguments[n];for(var s=0,r=e.length;s<r;s++)e[s].apply(e,o)}},{key:"on",value:function(e,i){var t,o=this;return null!=(t=this.events[e])&&t.push(i)||(this.events[e]=[i]),function(){var t;o.events[e]=null==(t=o.events[e])?void 0:t.filter(function(t){return i!==t})}}},{key:"off",value:function(t,e){this.events[t]=null==(t=this.events[t])?void 0:t.filter(function(t){return e!==t})}},{key:"destroy",value:function(){this.events={}}}]))(),z=(()=>_createClass(function t(e,i){var s=this,o=i.wheelMultiplier,o=void 0===o?1:o,n=i.touchMultiplier,n=void 0===n?2:n,i=i.normalizeWheel,i=void 0!==i&&i;_classCallCheck(this,t),_defineProperty(this,"onTouchStart",function(t){var e=(i=t.targetTouches?t.targetTouches[0]:t).clientX,i=i.clientY;s.touchStart.x=e,s.touchStart.y=i,s.lastDelta={x:0,y:0},s.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t})}),_defineProperty(this,"onTouchMove",function(t){var e=(i=t.targetTouches?t.targetTouches[0]:t).clientX,i=i.clientY,o=-(e-s.touchStart.x)*s.touchMultiplier,n=-(i-s.touchStart.y)*s.touchMultiplier;s.touchStart.x=e,s.touchStart.y=i,s.lastDelta={x:o,y:n},s.emitter.emit("scroll",{deltaX:o,deltaY:n,event:t})}),_defineProperty(this,"onTouchEnd",function(t){s.emitter.emit("scroll",{deltaX:s.lastDelta.x,deltaY:s.lastDelta.y,event:t})}),_defineProperty(this,"onWheel",function(t){var e=t.deltaX,i=t.deltaY;s.normalizeWheel&&(e=p(-100,e,100),i=p(-100,i,100)),e*=s.wheelMultiplier,i*=s.wheelMultiplier,s.emitter.emit("scroll",{deltaX:e,deltaY:i,event:t})}),this.element=e,this.wheelMultiplier=o,this.touchMultiplier=n,this.normalizeWheel=i,this.touchStart={x:null,y:null},this.emitter=new b,this.element.addEventListener("wheel",this.onWheel,{passive:!1}),this.element.addEventListener("touchstart",this.onTouchStart,{passive:!1}),this.element.addEventListener("touchmove",this.onTouchMove,{passive:!1}),this.element.addEventListener("touchend",this.onTouchEnd,{passive:!1})},[{key:"on",value:function(t,e){return this.emitter.on(t,e)}},{key:"destroy",value:function(){this.emitter.destroy(),this.element.removeEventListener("wheel",this.onWheel,{passive:!1}),this.element.removeEventListener("touchstart",this.onTouchStart,{passive:!1}),this.element.removeEventListener("touchmove",this.onTouchMove,{passive:!1}),this.element.removeEventListener("touchend",this.onTouchEnd,{passive:!1})}}]))();return(()=>_createClass(function t(){var r=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i=e.wrapper,i=void 0===i?window:i,o=e.content,o=void 0===o?document.documentElement:o,n=e.wheelEventsTarget,n=void 0===n?i:n,s=e.eventsTarget,s=void 0===s?n:s,l=e.smoothWheel,l=void 0===l||l,a=e.syncTouch,a=void 0!==a&&a,h=e.syncTouchLerp,h=void 0===h?.075:h,c=e.touchInertiaMultiplier,c=void 0===c?35:c,u=e.duration,d=e.easing,d=void 0===d?function(t){return Math.min(1,1.001-Math.pow(2,-10*t))}:d,p=e.lerp,p=void 0===p?!u&&.1:p,v=e.infinite,v=void 0!==v&&v,m=e.orientation,m=void 0===m?"vertical":m,f=e.gestureOrientation,f=void 0===f?"vertical":f,g=e.touchMultiplier,g=void 0===g?1:g,y=e.wheelMultiplier,y=void 0===y?1:y,S=e.normalizeWheel,S=void 0!==S&&S,_=e.autoResize,_=void 0===_||_,e=e.__experimental__naiveDimensions,e=void 0!==e&&e;_classCallCheck(this,t),this.__isSmooth=!1,this.__isScrolling=!1,this.__isStopped=!1,this.__isLocked=!1,this.onVirtualScroll=function(t){var i,o,e,n=t.deltaX,s=t.deltaY;(t=t.event).ctrlKey||(i=t.type.includes("touch"),o=t.type.includes("wheel"),r.options.syncTouch&&i&&"touchstart"===t.type?r.reset():(e="vertical"===r.options.gestureOrientation&&0===s||"horizontal"===r.options.gestureOrientation&&0===n,0===n&&0===s||e||(e=(e=t.composedPath()).slice(0,e.indexOf(r.rootElement))).find(function(t){var e;return(null==(e=t.hasAttribute)?void 0:e.call(t,"data-lenis-prevent"))||i&&(null==(e=t.hasAttribute)?void 0:e.call(t,"data-lenis-prevent-touch"))||o&&(null==(e=t.hasAttribute)?void 0:e.call(t,"data-lenis-prevent-wheel"))||(null==(e=t.classList)?void 0:e.contains("lenis"))&&!(null!=(e=t.classList)&&e.contains("lenis-stopped"))})||(r.isStopped||r.isLocked?t.preventDefault():(r.isSmooth=r.options.syncTouch&&i||r.options.smoothWheel&&o,r.isSmooth?(t.preventDefault(),e=s,"both"===r.options.gestureOrientation?e=Math.abs(s)>Math.abs(n)?s:n:"horizontal"===r.options.gestureOrientation&&(e=n),s=i&&r.options.syncTouch,(n=i&&"touchend"===t.type&&5<Math.abs(e))&&(e=r.velocity*r.options.touchInertiaMultiplier),r.scrollTo(r.targetScroll+e,Object.assign({programmatic:!1},s?{lerp:n?r.options.syncTouchLerp:1}:{lerp:r.options.lerp,duration:r.options.duration,easing:r.options.easing}))):(r.isScrolling=!1,r.animate.stop())))))},this.onNativeScroll=function(){var t;r.__preventNextScrollEvent||r.isScrolling||(t=r.animatedScroll,r.animatedScroll=r.targetScroll=r.actualScroll,r.velocity=0,r.direction=Math.sign(r.animatedScroll-t),r.emit())},window.lenisVersion="1.0.39",i!==document.documentElement&&i!==document.body||(i=window),this.options={wrapper:i,content:o,wheelEventsTarget:n,eventsTarget:s,smoothWheel:l,syncTouch:a,syncTouchLerp:h,touchInertiaMultiplier:c,duration:u,easing:d,lerp:p,infinite:v,gestureOrientation:f,orientation:m,touchMultiplier:g,wheelMultiplier:y,normalizeWheel:S,autoResize:_,__experimental__naiveDimensions:e},this.animate=new w,this.emitter=new b,this.dimensions=new k({wrapper:i,content:o,autoResize:_}),this.toggleClassName("lenis",!0),this.velocity=0,this.isLocked=!1,this.isStopped=!1,this.isSmooth=a||l,this.isScrolling=!1,this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener("scroll",this.onNativeScroll,!1),this.virtualScroll=new z(s,{touchMultiplier:g,wheelMultiplier:y,normalizeWheel:S}),this.virtualScroll.on("scroll",this.onVirtualScroll)},[{key:"destroy",value:function(){this.emitter.destroy(),this.options.wrapper.removeEventListener("scroll",this.onNativeScroll,!1),this.virtualScroll.destroy(),this.dimensions.destroy(),this.toggleClassName("lenis",!1),this.toggleClassName("lenis-smooth",!1),this.toggleClassName("lenis-scrolling",!1),this.toggleClassName("lenis-stopped",!1),this.toggleClassName("lenis-locked",!1)}},{key:"on",value:function(t,e){return this.emitter.on(t,e)}},{key:"off",value:function(t,e){return this.emitter.off(t,e)}},{key:"setScroll",value:function(t){this.isHorizontal?this.rootElement.scrollLeft=t:this.rootElement.scrollTop=t}},{key:"resize",value:function(){this.dimensions.resize()}},{key:"emit",value:function(){this.emitter.emit("scroll",this)}},{key:"reset",value:function(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.velocity=0,this.animate.stop()}},{key:"start",value:function(){this.isStopped&&(this.isStopped=!1,this.reset())}},{key:"stop",value:function(){this.isStopped||(this.isStopped=!0,this.animate.stop(),this.reset())}},{key:"raf",value:function(t){var e=t-(this.time||t);this.time=t,this.animate.advance(.001*e)}},{key:"scrollTo",value:function(t){var e,i=this,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=o.offset,n=void 0===n?0:n,s=o.immediate,s=void 0!==s&&s,r=o.lock,l=void 0!==r&&r,r=o.duration,r=void 0===r?this.options.duration:r,a=o.easing,a=void 0===a?this.options.easing:a,h=o.lerp,h=void 0===h?!r&&this.options.lerp:h,c=o.onComplete,u=o.force,u=void 0!==u&&u,o=o.programmatic,d=void 0===o||o;if((!this.isStopped&&!this.isLocked||u)&&(["top","left","start"].includes(t)?t=0:["bottom","right","end"].includes(t)?t=this.limit:("string"==typeof t?e=document.querySelector(t):null!=t&&t.nodeType&&(e=t),e&&(this.options.wrapper!==window&&(o=this.options.wrapper.getBoundingClientRect(),n-=this.isHorizontal?o.left:o.top),u=e.getBoundingClientRect(),t=(this.isHorizontal?u.left:u.top)+this.animatedScroll)),"number"==typeof t))if(t+=n,t=Math.round(t),this.options.infinite?d&&(this.targetScroll=this.animatedScroll=this.scroll):t=p(0,t,this.limit),s)this.animatedScroll=this.targetScroll=t,this.setScroll(this.scroll),this.reset(),null!=c&&c(this);else{if(!d){if(t===this.targetScroll)return;this.targetScroll=t}this.animate.fromTo(this.animatedScroll,t,{duration:r,easing:a,lerp:h,onStart:function(){l&&(i.isLocked=!0),i.isScrolling=!0},onUpdate:function(t,e){i.isScrolling=!0,i.velocity=t-i.animatedScroll,i.direction=Math.sign(i.velocity),i.animatedScroll=t,i.setScroll(i.scroll),d&&(i.targetScroll=t),e||i.emit(),e&&(i.reset(),i.emit(),null!=c&&c(i),i.__preventNextScrollEvent=!0,requestAnimationFrame(function(){delete i.__preventNextScrollEvent}))}})}}},{key:"rootElement",get:function(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}},{key:"limit",get:function(){return this.options.__experimental__naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?"x":"y"]}},{key:"isHorizontal",get:function(){return"horizontal"===this.options.orientation}},{key:"actualScroll",get:function(){return this.isHorizontal?this.rootElement.scrollLeft:this.rootElement.scrollTop}},{key:"scroll",get:function(){return this.options.infinite?(t=this.animatedScroll,e=this.limit,(t%e+e)%e):this.animatedScroll;var t,e}},{key:"progress",get:function(){return 0===this.limit?1:this.scroll/this.limit}},{key:"isSmooth",get:function(){return this.__isSmooth},set:function(t){this.__isSmooth!==t&&(this.__isSmooth=t,this.toggleClassName("lenis-smooth",t))}},{key:"isScrolling",get:function(){return this.__isScrolling},set:function(t){this.__isScrolling!==t&&(this.__isScrolling=t,this.toggleClassName("lenis-scrolling",t))}},{key:"isStopped",get:function(){return this.__isStopped},set:function(t){this.__isStopped!==t&&(this.__isStopped=t,this.toggleClassName("lenis-stopped",t))}},{key:"isLocked",get:function(){return this.__isLocked},set:function(t){this.__isLocked!==t&&(this.__isLocked=t,this.toggleClassName("lenis-locked",t))}},{key:"className",get:function(){var t="lenis";return this.isStopped&&(t+=" lenis-stopped"),this.isLocked&&(t+=" lenis-locked"),this.isScrolling&&(t+=" lenis-scrolling"),this.isSmooth&&(t+=" lenis-smooth"),t}},{key:"toggleClassName",value:function(t,e){this.rootElement.classList.toggle(t,e),this.emitter.emit("className change",this)}}]))()});var lenis=new Lenis;function raf(t){lenis.raf(t),requestAnimationFrame(raf)}requestAnimationFrame(raf),document.addEventListener("DOMContentLoaded",function(){var t=document.createElement("style");t.textContent="\n html {\n height: auto;\n scroll-behavior: auto !important;\n }\n [data-ui-a-scroll-prevent],\n .ui-a-scroll-prevent {\n overscroll-behavior: contain;\n }\n .ui-a-scroll-stopped {\n overflow: hidden;\n }\n .ui-a-scroll-scrolling iframe {\n pointer-events: none;\n }\n ",document.head.appendChild(t)});