const powerUp=(()=>{const t=2*Math.PI;function e(t){const e=t.replace("#",""),o=parseInt(3===e.length?e.split("").map(t=>t+t).join(""):e,16);return[o>>16&255,o>>8&255,255&o]}function o(t,e){return Math.random()*(e-t)+t}function n(t,e,o){return t+(e-t)*o}function a(t,e,o){return Math.max(e,Math.min(o,t))}function r(t){return(t=a(t,0,1))*t*(3-2*t)}function i(t,e,o,r,i,h,s,c,d){if(s<.005)return;const[g,p,f]=i,u=o.slice().reverse(),x=r[0],y=r[r.length-1];{const o=a(.22*d,0,.92);if(o>.01){const n=Math.round(.7*g),a=Math.round(.7*p),r=Math.round(.7*f);t.save(),t.globalCompositeOperation="source-over",t.globalAlpha=s*o,t.fillStyle=`rgb(${n},${a},${r})`,l(t,e,u),t.restore()}}t.save(),t.globalCompositeOperation="lighter",t.globalAlpha=a(.25*s*d,0,1),t.shadowColor=`rgba(${g},${p},${f},${a(.5*d,0,1)})`,t.shadowBlur=2.5*h,t.fillStyle=`rgba(${g},${p},${f},${a(.04*d,0,1)})`,l(t,e,u),t.restore();{const o=t.createLinearGradient(x.x,x.y,y.x,y.y),n=.3*Math.sin(4*c)+.5,r=.15,i=a(.06*d,0,1),v=a(.18*d,0,1),$=Math.min(255,g+Math.round(40*d)),m=Math.min(255,p+Math.round(40*d)),M=Math.min(255,f+Math.round(40*d));o.addColorStop(0,`rgba(${g},${p},${f},0)`),o.addColorStop(Math.max(0,n-r),`rgba(${g},${p},${f},${i})`),o.addColorStop(n,`rgba(${$},${m},${M},${v})`),o.addColorStop(Math.min(1,n+r),`rgba(${g},${p},${f},${i})`),o.addColorStop(1,`rgba(${g},${p},${f},0)`),t.save(),t.globalCompositeOperation="lighter",t.globalAlpha=a(.7*s*d,0,1),t.shadowColor=`rgba(${g},${p},${f},${a(.7*d,0,1)})`,t.shadowBlur=h,t.fillStyle=o,l(t,e,u),t.restore()}{const i=.35,h=[],g=[];for(let t=0;t[{x:r-o(3,10),y:c+o(.3*-g,.5*g)},{x:r+d*o(.15,.4),y:l-o(.05*g,.4*g)},{x:s+o(.15*-d,.15*d),y:l-o(.02*g,.35*g)},{x:i-d*o(.05,.25),y:l+o(0,.2*g)},{x:i+o(3,12),y:c+o(.4*-g,.3*g)}],()=>[{x:r-o(3,10),y:c+o(.5*-g,.3*g)},{x:r+d*o(.15,.4),y:h+o(.05*g,.4*g)},{x:s+o(.15*-d,.15*d),y:h+o(.02*g,.35*g)},{x:i-d*o(.05,.25),y:h-o(0,.2*g)},{x:i+o(3,12),y:c+o(.3*-g,.4*g)}],()=>[{x:r-o(3,8),y:c+o(.2*-g,.2*g)},{x:r+.2*d,y:l-o(.1*g,.45*g)},{x:s,y:l-o(.05*g,.35*g)},{x:i-.1*d,y:c-o(0,.15*g)},{x:i+o(2,8),y:c+o(0,.3*g)},{x:i-.2*d,y:h+o(.02*g,.2*g)}],()=>{const t=Math.random()>.5,e=t?c+g*o(.3,.8):c-g*o(.3,.8),a=t?c-g*o(.3,.8):c+g*o(.3,.8);return[{x:r-o(5,12),y:e},{x:s+o(-15,15),y:n(e,a,.5)+o(-8,8)},{x:i+o(5,12),y:a}]}],f=p[Math.floor(Math.random()*p.length)]();for(let t=1;t0){const t=(.15*g+8)*a,e=Math.max(1,Math.round(1+1.5*a)),r=[f[0]];for(let a=0;a.5?1:-1;for(let a=1;a<=e;a++){const h=a/(e+1),s=n(i.x,l.x,h),c=n(i.y,l.y,h),f=p*o(.4*t,t);r.push({x:s+d*f,y:c+g*f}),p*=-1}r.push(l)}return r}return f}(r,f,M),l=function(t){const e=[0];for(let o=1;o>1;e[t]<=n?r=t:i=t}const l=e[i]-e[r];return{lo:r,hi:i,f:l>0?(n-e[r])/l:0}}return{eval(e){const{lo:o,hi:a,f:i}=r(e);return{x:n(t[o].x,t[a].x,i),y:n(t[o].y,t[a].y,i)}},tangent(e){const{lo:o,hi:n}=r(e),a=t[n].x-t[o].x,i=t[n].y-t[o].y,l=Math.sqrt(a*a+i*i)||1;return{x:a/l,y:i/l}},totalLen:o}}(i),h=(.3*r.height+8)*g;if(E=[],P>0){const e=Math.floor(o(1+P,2+2.5*P));for(let n=0;n.5?1:-1)*o(.4,1.5),length:o(12,35)*g*Math.sqrt(P),phase:o(0,t)})}W={poly:l,baseWidth:h,phase:"grow",head:0,tail:0,fadeAlpha:1,growSpeed:o(.025,.04)*p,liveDuration:o(.25,.5)/p,liveTimer:0}}function U(t,e,n){if(!W){if(I>0&&n0&&I>=u?void G():void F()}const l=W,c=s.getBoundingClientRect();if("grow"===l.phase)l.head+=l.growSpeed*t*60,l.tail=Math.max(0,l.head-o(.35,.45)),l.head>=1&&(l.head=1,l.phase="live",l.liveTimer=0);else if("live"===l.phase)l.liveTimer+=t,l.tail=Math.min(l.tail+.002*p*t*60,.6),l.liveTimer>l.liveDuration&&(l.phase="fade");else if(l.tail+=.035*p*t*60,l.fadeAlpha=Math.max(0,l.fadeAlpha-.04*p*t*60),l.tail>=l.head-.02||l.fadeAlpha<=0)return W=null,E=[],I++,void(D=n+o(w,C));const d=function(t,e,o,n,i){const l=[],h=[],s=[];for(let c=0;c<=64;c++){const d=o+c/64*(e-o),g=t.eval(d),p=t.tangent(d),f=-p.y,u=p.x,x=c/64;let y;y=x<.06?x/.06:x>.7?(1-x)/.3:1,y=r(a(y,0,1));const v=n*y*(1+.12*Math.sin(6*i+10*d)+.07*Math.sin(13*i+22*d)+.04*Math.sin(21*i+35*d));l.push({x:g.x+f*v,y:g.y+u*v}),h.push({x:g.x-f*v,y:g.y-u*v}),s.push({x:g.x,y:g.y,t:d,w:v})}return{left:l,right:h,center:s}}(l.poly,l.head,l.tail,l.baseWidth,e);if(function(t,e,o,n,a,r,l,h){const{left:s,right:c,center:d}=e;if(s.length<2)return;const g=t.canvas.width/devicePixelRatio,p=t.canvas.height/devicePixelRatio;t.save(),t.beginPath(),t.rect(r.left,r.top,r.width,r.height),t.clip(),i(t,s,c,d,o,n,.25*a,l,h),t.restore(),t.save(),t.beginPath(),t.rect(0,0,g,p),t.rect(r.left,r.top,r.width,r.height),t.clip("evenodd"),i(t,s,c,d,o,n,a,l,h),t.restore()}(O,d,T,18,l.fadeAlpha,c,e,R),P>0)for(const t of E)t.t>=l.tail&&t.t<=l.head&&h(O,l.poly,t.t,t.angle+.15*Math.sin(5*e+t.phase),t.length,T,l.fadeAlpha,e,c,R)}let j=performance.now();function G(){z=!1,cancelAnimationFrame(q),window.removeEventListener("resize",L),B.remove()}F(),q=requestAnimationFrame(function t(e){if(!z)return;if(v!==1/0&&e-k>v)return void G();const o=Math.min((e-j)/1e3,.05);j=e;const n=(e-k)/1e3;O.clearRect(0,0,B.width/devicePixelRatio,B.height/devicePixelRatio),function(t,e,o,n,a,r){const i=e.getBoundingClientRect(),l=(.08+.04*Math.sin(3*a))*Math.min(r,2),[h,s,c]=o,d=.2*n;t.save(),t.globalCompositeOperation="lighter",t.shadowColor=`rgba(${h},${s},${c},${l})`,t.shadowBlur=12,t.strokeStyle=`rgba(${h},${s},${c},${.2*l})`,t.lineWidth=1,t.beginPath();const g=i.left-d,p=i.top-d,f=i.width+2*d,u=i.height+2*d;t.moveTo(g+4,p),t.arcTo(g+f,p,g+f,p+u,4),t.arcTo(g+f,p+u,g,p+u,4),t.arcTo(g,p+u,g,p,4),t.arcTo(g,p,g+f,p,4),t.closePath(),t.stroke(),t.restore()}(O,s,T,f,n,R),U(o,n,e),q=requestAnimationFrame(t)});const H={stop:G,canvas:B,el:s,set:function(t){G();const e=Object.assign({},c,t),o=l(s,e);return H.stop=o.stop,H.set=o.set,H.canvas=o.canvas,H}};return H}})(),fx=powerUp(document.querySelector(".navbar1_logo-link"),{color:"#ffd500",width:.12,speed:.6,padding:.2,repeats:0,random:!0,interval:[3e4,12e4],duration:1/0,opacity:1,branches:4,zigzag:1,colorCycle:!0});