(()=>{"use strict";var t={n:e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},d:(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window.jQuery;var o=t.n(e),n=o()(window);function a(t,e,o,n){var a=(n.x-o.x)*(t.y-o.y)-(n.y-o.y)*(t.x-o.x),i=(n.x-o.x)*(e.y-o.y)-(n.y-o.y)*(e.x-o.x),c=(e.x-t.x)*(o.y-t.y)-(e.y-t.y)*(o.x-t.x),r=(e.x-t.x)*(n.y-t.y)-(e.y-t.y)*(n.x-t.x);return a*i<=0&&c*r<=0}o()(document).on("initEvents.vpf",function(t,e){if("vpf"===t.namespace&&"fly"===e.options.itemsStyle){var i=".vpf-uid-".concat(e.uid),c={};n.on("mousemove".concat(i),function(t){c={x:t.clientX,y:t.clientY}}),e.$item.on("mouseenter".concat(i," mouseleave").concat(i),".vp-portfolio__item",function(t){var e=o()(this),n=e[0].getBoundingClientRect(),i=e.find(".vp-portfolio__item-overlay"),r="mouseenter"===t.type,s="0%",f="0%",y={x:t.clientX,y:t.clientY},l=a({x:n.left,y:n.top},{x:n.left+n.width,y:n.top},y,c),p=a({x:n.left,y:n.top+n.height},{x:n.left+n.width,y:n.top+n.height},y,c),u=a({x:n.left,y:n.top},{x:n.left,y:n.top+n.height},y,c),x=a({x:n.left+n.width,y:n.top},{x:n.left+n.width,y:n.top+n.height},y,c);if(!(l||p||u||x)){var v=(n.width/2-y.x+n.left)/(n.width/2),h=(n.height/2-y.y+n.top)/(n.height/2);Math.abs(v)>Math.abs(h)?v>0?u=!0:x=!0:h>0?l=!0:p=!0}l?f="-100.1%":p?f="100.1%":u?s="-100.1%":x&&(s="100.1%"),r&&(i.css({transition:"none",transform:"translateX(".concat(s,") translateY(").concat(f,") translateZ(0)")}),i[0].offsetHeight),i.css({transition:".2s transform ease-in-out",transform:"translateX(".concat(r?"0%":s,") translateY(").concat(r?"0%":f,") translateZ(0)")})})}}),o()(document).on("destroyEvents.vpf",function(t,e){if("vpf"===t.namespace&&"fly"===e.options.itemsStyle){var o=".vpf-uid-".concat(e.uid);n.off("mousemove".concat(o)),e.$item.off("mouseenter".concat(o," mouseleave").concat(o))}})})();