jQuery(function(t){"use strict";if(t(".qx-image--lightbox").magnificPopup({type:"image",removalDelay:500,mainClass:"mfp-fade",zoom:{enabled:!0,duration:500,opener:function(t){return t.find("img")}}}),function(){var i=t(".qx-section--stretch");if(i.length){var n=0,e=0,o=jQuery("html").attr("dir");window.onload=window.onresize=function(){i.attr("style",""),e=jQuery(window).width(),n=i.offset().left,i.css({position:"relative",width:e}),"rtl"===o?i.css({marginRight:n}):i.css({marginLeft:-n})}}}(),t(window).load(function(){if(t(".qx-fg-items").length){var i=t(".qx-fg-items");i.isotope({itemSelector:".qx-fg-item",layoutMode:"fitRows",percentPosition:!0});var n=t(".qx-fg-filter>li>a");n.on("click",function(){n.removeClass("active"),t(this).addClass("active");var e=t(this).attr("data-filter");return i.isotope({filter:e}),!1})}}),t("#confetti").length>0){var i=75,n=[[76,175,80],[33,150,243],[219,56,83],[244,67,54],[255,193,7]],e=2*Math.PI,o=document.getElementById("confetti"),r=o.getContext("2d"),s=0,a=0,h=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}(),u=function(t,i,n){return t<i||t>n?0:Math.abs(t===i?1:(t-n)/(i-n))},c=function(t,i,n){var e,o=!1;t=t[0]||t;var r=function(t){e=t,s()},s=function(){o||(h(a),o=!0)},a=function(){n.call(t,e),o=!1};try{t.addEventListener(i,r,!1)}catch(u){}return r},f=function(){s=o.width=window.innerWidth,a=o.height=window.innerHeight},m=function(i){t(o).css("opacity",u(window.scrollY,0,a))};c(window,"resize",f),c(window,"scroll",m),setTimeout(f,0);var w=function(t,i){return(i-t)*Math.random()+t},d=function(t,i,n,o){return r.beginPath(),r.arc(t,i,n,0,e,!1),r.fillStyle=o,r.fill()},l=.5;t(document).on("mousemove",function(t){return l=t.pageX/s}),window.requestAnimationFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)}}();var p=function(){function t(){this.style=n[~~w(0,5)],this.rgb="rgba("+this.style[0]+","+this.style[1]+","+this.style[2],this.r=~~w(2,6),this.r2=2*this.r,this.replace()}return t.prototype.replace=function(){return this.opacity=0,this.dop=.03*w(1,4),this.x=w(-this.r2,s-this.r2),this.y=w(-20,a-this.r2),this.xmax=s-this.r,this.ymax=a-this.r,this.vx=w(0,2)+8*l-5,this.vy=.7*this.r+w(-1,1)},t.prototype.draw=function(){var t;return this.x+=this.vx,this.y+=this.vy,this.opacity+=this.dop,this.opacity>1&&(this.opacity=1,this.dop*=-1),(this.opacity<0||this.y>this.ymax)&&this.replace(),0<(t=this.x)&&t<this.xmax||(this.x=(this.x+this.xmax)%this.xmax),d(~~this.x,~~this.y,this.r,this.rgb+","+this.opacity+")")},t}(),y=function(){var t,n,e,o;for(e=[],o=t=1,n=i;1<=n?t<=n:t>=n;o=1<=n?++t:--t)e.push(new p);return e}();window.step=function(){var t,i,n,e;for(requestAnimationFrame(step),r.clearRect(0,0,s,a),e=[],i=0,n=y.length;i<n;i++)t=y[i],e.push(t.draw());return e},step()}});