"use strict";var _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};!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=function(i,s){return void 0===s&&(s="undefined"!=typeof window?require("jquery"):require("jquery")(i)),t(s),s}:t(jquery)}(function(t){return t.fn.tilt=function(i){var s=function(){this.ticking||(requestanimationframe(g.bind(this)),this.ticking=!0)},e=function(){var i=this;t(this).on("mousemove",o),t(this).on("mouseenter",a),this.settings.reset&&t(this).on("mouseleave",h),this.settings.glare&&t(window).on("resize",u.bind(i))},n=function(){var i=this;void 0!==this.timeout&&cleartimeout(this.timeout),t(this).css({transition:this.settings.speed+"ms "+this.settings.easing}),this.settings.glare&&this.glareelement.css({transition:"opacity "+this.settings.speed+"ms "+this.settings.easing}),this.timeout=settimeout(function(){t(i).css({transition:""}),i.settings.glare&&i.glareelement.css({transition:""})},this.settings.speed)},a=function(i){this.ticking=!1,t(this).css({"will-change":"transform"}),n.call(this),t(this).trigger("tilt.mouseenter")},r=function(i){return"undefined"==typeof i&&(i={pagex:t(this).offset().left+t(this).outerwidth()/2,pagey:t(this).offset().top+t(this).outerheight()/2}),{x:i.pagex,y:i.pagey}},o=function(t){this.mousepositions=r(t),s.call(this)},h=function(){n.call(this),this.reset=!0,s.call(this),t(this).trigger("tilt.mouseleave")},l=function(){var i=t(this).outerwidth(),s=t(this).outerheight(),e=t(this).offset().left,n=t(this).offset().top,a=(this.mousepositions.x-e)/i,r=(this.mousepositions.y-n)/s,o=(this.settings.maxtilt/2-a*this.settings.maxtilt).tofixed(2),h=(r*this.settings.maxtilt-this.settings.maxtilt/2).tofixed(2),l=math.atan2(this.mousepositions.x-(e+i/2),-(this.mousepositions.y-(n+s/2)))*(180/math.pi);return{tiltx:o,tilty:h,percentagex:100*a,percentagey:100*r,angle:l}},g=function(){return this.transforms=l.call(this),this.reset?(this.reset=!1,t(this).css("transform","perspective("+this.settings.perspective+"px) rotatex(0deg) rotatey(0deg)"),void(this.settings.glare&&(this.glareelement.css("transform","rotate(180deg) translate(-50%, -50%)"),this.glareelement.css("opacity","0")))):(t(this).css("transform","perspective("+this.settings.perspective+"px) rotatex("+("x"===this.settings.axis?0:this.transforms.tilty)+"deg) rotatey("+("y"===this.settings.axis?0:this.transforms.tiltx)+"deg) scale3d("+this.settings.scale+","+this.settings.scale+","+this.settings.scale+")"),this.settings.glare&&(this.glareelement.css("transform","rotate("+this.transforms.angle+"deg) translate(-50%, -50%)"),this.glareelement.css("opacity",""+this.transforms.percentagey*this.settings.maxglare/100)),t(this).trigger("change",[this.transforms]),void(this.ticking=!1))},c=function(){var i=this.settings.glareprerender;if(i||t(this).append('