https://www.corepla.it/wp-content/plugins/nextbricks/local_assets/bc_mouse_follower.min.js?ver=2.3.1
1!(function(t,e){"object"==typeof exports&&"undefined"!=typeof module?(module.exports=e()):"function"==typeof define&&define.amd?define(e):((t||self).MouseFollower=e())})(this,function(){return(function(){function t(e){void 0===e&&(e={}),(this.options=Object.assign({},{el:null,container:document.body,className:"mf-cursor",innerClassName:"mf-cursor-inner",textClassName:"mf-cursor-text",mediaClassName:"mf-cursor-media",mediaBoxClassName:"mf-cursor-media-box",iconSvgClassName:"mf-svgsprite",iconSvgNamePrefix:"-",iconSvgSrc:"",dataAttr:"cursor",hiddenState:"-hidden",textState:"-text",iconState:"-icon",activeState:"-active",mediaState:"-media",stateDetection:{"-pointer":"a,button"},visible:!0,visibleOnState:!1,speed:0.55,ease:"expo.out",overwrite:!0,skewing:0,skewingText:2,skewingIcon:2,skewingMedia:2,skewingDelta:0.001,skewingDeltaMax:0.15,stickDelta:0.15,showTimeout:0,hideOnLeave:!0,hideTimeout:300,hideMediaTimeout:300,initialPos:[-window.innerWidth,-window.innerHeight],},e)),this.options.visible&&null==e.stateDetection&&(this.options.stateDetection["-hidden"]="iframe"),(this.gsap=t.gsap||window.gsap),(this.el="string"==typeof this.options.el?document.querySelector(this.options.el):this.options.el),(this.container="string"==typeof this.options.container?document.querySelector(this.options.container):this.options.container),(this.skewing=this.options.skewing),(this.pos={x:this.options.initialPos[0],y:this.options.initialPos[1]}),(this.vel={x:0,y:0}),(this.event={}),(this.events=[]),this.init()} 2t.registerGSAP=function(e){t.gsap=e};var e=t.prototype;return((e.init=function(){this.el||this.create(),this.createSetter(),this.bind(),this.render(!0),(this.ticker=this.render.bind(this,!1)),this.gsap.ticker.add(this.ticker)}),(e.create=function(){(this.el=document.createElement("div")),(this.el.className=this.options.className),this.el.classList.add(this.options.hiddenState),(this.inner=document.createElement("div")),(this.inner.className=this.options.innerClassName),(this.text=document.createElement("div")),(this.text.className=this.options.textClassName),(this.media=document.createElement("div")),(this.media.className=this.options.mediaClassName),(this.mediaBox=document.createElement("div")),(this.mediaBox.className=this.options.mediaBoxClassName),this.media.appendChild(this.mediaBox),this.inner.appendChild(this.media),this.inner.appendChild(this.text),this.el.appendChild(this.inner),this.container.appendChild(this.el)}),(e.createSetter=function(){this.setter={x:this.gsap.quickSetter(this.el,"x","px"),y:this.gsap.quickSetter(this.el,"y","px"),rotation:this.gsap.quickSetter(this.el,"rotation","deg"),scaleX:this.gsap.quickSetter(this.el,"scaleX"),scaleY:this.gsap.quickSetter(this.el,"scaleY"),wc:this.gsap.quickSetter(this.el,"willChange"),inner:{rotation:this.gsap.quickSetter(this.inner,"rotation","deg")},}}),(e.bind=function(){var t=this;(this.event.mouseleave=function(){return t.hide()}),(this.event.mouseenter=function(){return t.show()}),(this.event.mousedown=function(){return t.addState(t.options.activeState)}),(this.event.mouseup=function(){return t.removeState(t.options.activeState)}),(this.event.mousemoveOnce=function(){return t.show()}),(this.event.mousemove=function(e){t.gsap.to(t.pos,{x:t.stick?t.stick.x-(t.stick.x-e.clientX)*t.options.stickDelta:e.clientX,y:t.stick?t.stick.y-(t.stick.y-e.clientY)*t.options.stickDelta:e.clientY,overwrite:t.options.overwrite,ease:t.options.ease,duration:t.visible?t.options.speed:0,onUpdate:function(){return(t.vel={x:e.clientX-t.pos.x==0?0.001:e.clientX-t.pos.x,y:e.clientY-t.pos.y==0?0.001:e.clientY-t.pos.y})},})}),(this.event.mouseover=function(e){for(var i=e.target;i&&i!==t.container&&(!e.relatedTarget||!i.contains(e.relatedTarget));i=i.parentNode){for(var s in t.options.stateDetection)i.matches(t.options.stateDetection[s])&&t.addState(s);if(t.options.dataAttr){var n=t.getFromDataset(i);n.state&&t.addState(n.state),n.text&&t.setText(n.text),n.icon&&t.setIcon(n.icon),n.img&&t.setImg(n.img),n.video&&t.setVideo(n.video),void 0!==n.show&&t.show(),void 0!==n.stick&&t.setStick(n.stick||i)}}}),(this.event.mouseout=function(e){for(var i=e.target;i&&i!==t.container&&(!e.relatedTarget||!i.contains(e.relatedTarget));i=i.parentNode){for(var s in t.options.stateDetection)i.matches(t.options.stateDetection[s])&&t.removeState(s);if(t.options.dataAttr){var n=t.getFromDataset(i);n.state&&t.removeState(n.state),n.text&&t.removeText(),n.icon&&t.removeIcon(),n.img&&t.removeImg(),n.video&&t.removeVideo(),void 0!==n.show&&t.hide(),void 0!==n.stick&&t.removeStick()}}}),this.options.hideOnLeave&&this.container.addEventListener("mouseleave",this.event.mouseleave,{passive:!0}),this.options.visible&&this.container.addEventListener("mouseenter",this.event.mouseenter,{passive:!0}),this.options.activeState&&(this.container.addEventListener("mousedown",this.event.mousedown,{passive:!0}),this.container.addEventListener("mouseup",this.event.mouseup,{passive:!0})),this.container.addEventListener("mousemove",this.event.mousemove,{passive:!0}),this.options.visible&&this.container.addEventListener("mousemove",this.event.mousemoveOnce,{passive:!0,once:!0}),(this.options.stateDetection||this.options.dataAttr)&&(this.container.addEventListener("mouseover",this.event.mouseover,{passive:!0}),this.container.addEventListener("mouseout",this.event.mouseout,{passive:!0}))}),(e.render=function(t){if(!0===t||(0!==this.vel.y&&0!==this.vel.x)){if((this.trigger("render"),this.setter.wc("auto"),this.setter.x(this.pos.x),this.setter.y(this.pos.y),this.skewing)){var e=Math.min(Math.sqrt(Math.pow(this.vel.x,2)+Math.pow(this.vel.y,2))*this.options.skewingDelta,this.options.skewingDeltaMax)*this.skewing,i=(180*Math.atan2(this.vel.y,this.vel.x))/Math.PI;this.setter.scaleX(1+e),this.setter.scaleY(1-e);var cursorStyles=window.getComputedStyle(this.el,'::before');
2if(cursorStyles.borderRadius=='50%'){this.setter.rotation(i);this.setter.inner.rotation(-i)}}}else this.setter.wc("auto")}),(e.show=function(){var t=this;this.trigger("show"),clearInterval(this.visibleInt),(this.visibleInt=setTimeout(function(){t.el.classList.remove(t.options.hiddenState),(t.visible=!0),t.render(!0)},this.options.showTimeout))}),(e.hide=function(){var t=this;this.trigger("hide"),clearInterval(this.visibleInt),this.el.classList.add(this.options.hiddenState),(this.visibleInt=setTimeout(function(){return(t.visible=!1)},this.options.hideTimeout))}),(e.toggle=function(t){!0!==t&&(!1===t||this.visible)?this.hide():this.show()}),(e.addState=function(t){var e;if((this.trigger("addState",t),t===this.options.hiddenState))return this.hide();(e=this.el.classList).add.apply(e,t.split(" ")),this.options.visibleOnState&&this.show()}),(e.removeState=function(t){var e;if((this.trigger("removeState",t),t===this.options.hiddenState))return this.show();(e=this.el.classList).remove.apply(e,t.split(" ")),this.options.visibleOnState&&this.el.className===this.options.className&&this.hide()}),(e.toggleState=function(t,e){!0!==e&&(!1===e||this.el.classList.contains(t))?this.removeState(t):this.addState(t)}),(e.setSkewing=function(t){this.gsap.to(this,{skewing:t})}),(e.removeSkewing=function(){this.gsap.to(this,{skewing:this.options.skewing})}),(e.setStick=function(t){var e=("string"==typeof t?document.querySelector(t):t).getBoundingClientRect();this.stick={y:e.top+e.height/2,x:e.left+e.width/2}}),(e.removeStick=function(){this.stick=!1}),(e.setText=function(t){(this.text.innerHTML=t),this.addState(this.options.textState),this.setSkewing(this.options.skewingText)}),(e.removeText=function(){this.removeState(this.options.textState),this.removeSkewing()}),(e.setIcon=function(t,e){void 0===e&&(e=""),(this.text.innerHTML="<svg class='"+this.options.iconSvgClassName+" "+this.options.iconSvgNamePrefix+t+"' style='"+e+"'><use xlink:href='"+this.options.iconSvgSrc+"#"+t+"'></use></svg>"),this.addState(this.options.iconState),this.setSkewing(this.options.skewingIcon)}),(e.removeIcon=function(){this.removeState(this.options.iconState),this.removeSkewing()}),(e.setMedia=function(t){var e=this;clearTimeout(this.mediaInt),t&&((this.mediaBox.innerHTML=""),this.mediaBox.appendChild(t)),(this.mediaInt=setTimeout(function(){return e.addState(e.options.mediaState)},20)),this.setSkewing(this.options.skewingMedia)}),(e.removeMedia=function(){var t=this;clearTimeout(this.mediaInt),this.removeState(this.options.mediaState),(this.mediaInt=setTimeout(function(){return(t.mediaBox.innerHTML="")},this.options.hideMediaTimeout)),this.removeSkewing()}),(e.setImg=function(t){this.mediaImg||(this.mediaImg=new Image()),this.mediaImg.src!==t&&(this.mediaImg.src=t),this.setMedia(this.mediaImg)}),(e.removeImg=function(){this.removeMedia()}),(e.setVideo=function(t){this.mediaVideo||((this.mediaVideo=document.createElement("video")),(this.mediaVideo.muted=!0),(this.mediaVideo.loop=!0),(this.mediaVideo.autoplay=!0)),this.mediaVideo.src!==t&&((this.mediaVideo.src=t),this.mediaVideo.load()),this.mediaVideo.play(),this.setMedia(this.mediaVideo)}),(e.removeVideo=function(){this.mediaVideo&&this.mediaVideo.readyState>2&&this.mediaVideo.pause(),this.removeMedia()}),(e.on=function(t,e){this.events[t]instanceof Array||this.off(t),this.events[t].push(e)}),(e.off=function(t,e){this.events[t]=e?this.events[t].filter(function(t){return t!==e}):[]}),(e.trigger=function(t){var e=arguments,i=this;this.events[t]&&this.events[t].forEach(function(t){return t.call.apply(t,[i,i].concat([].slice.call(e,1)))})}),(e.getFromDataset=function(t){var e=t.dataset;return{state:e[this.options.dataAttr],show:e[this.options.dataAttr+"Show"],text:e[this.options.dataAttr+"Text"],icon:e[this.options.dataAttr+"Icon"],img:e[this.options.dataAttr+"Img"],video:e[this.options.dataAttr+"Video"],stick:e[this.options.dataAttr+"Stick"],}}),(e.destroy=function(){this.trigger("destroy"),this.gsap.ticker.remove(this.ticker),this.container.removeEventListener("mouseleave",this.event.mouseleave),this.container.removeEventListener("mouseenter",this.event.mouseenter),this.container.removeEventListener("mousedown",this.event.mousedown),this.container.removeEventListener("mouseup",this.event.mouseup),this.container.removeEventListener("mousemove",this.event.mousemove),this.container.removeEventListener("mousemove",this.event.mousemoveOnce),this.container.removeEventListener("mouseover",this.event.mouseover),this.container.removeEventListener("mouseout",this.event.mouseout),this.el&&(this.container.removeChild(this.el),(this.el=null),(this.mediaImg=null),(this.mediaVideo=null))}),t)})()})
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.