import"./hoisted.yFz1BYXO.js";document.getElementById("crtc-questions-btn")?.addEventListener("click",()=>{const y=document.getElementById("support-fab");y&&window.setTimeout(()=>y.click(),0)});(function(){const y=document.getElementById("crtc-canvas");if(!y)return;const e=y.getContext("2d");let h=0,d=0,u=[],c=[],v=[],S=0;function R(){const i=Math.min(window.devicePixelRatio||1,2);h=y.clientWidth,d=y.clientHeight,y.width=h*i,y.height=d*i,e.setTransform(i,0,0,i,0,0),z()}function z(){c=[],u=[],v=[];const i=h<640?3:5;for(let o=0;o=.75?T="rgba(255, 0, 0, 0.7)":T="rgba(255, 255, 255, 0.85)",e.fillStyle=T,e.beginPath(),e.moveTo(E,a+D),e.lineTo(E+s,a+F),e.lineTo(E+s,a+l+F),e.lineTo(E,a+l+D),e.closePath(),e.fill()}const f=o+t*.5,g=a+l*.5+Math.sin(S+3)*2,b=l*.35;e.fillStyle="rgba(255, 0, 0, 0.85)",e.beginPath(),e.moveTo(f,g-b),e.lineTo(f+b*.3,g-b*.3),e.lineTo(f+b*.7,g-b*.4),e.lineTo(f+b*.4,g-b*.05),e.lineTo(f+b*.6,g+b*.3),e.lineTo(f+b*.15,g+b*.15),e.lineTo(f,g+b*.5),e.lineTo(f-b*.15,g+b*.15),e.lineTo(f-b*.6,g+b*.3),e.lineTo(f-b*.4,g-b*.05),e.lineTo(f-b*.7,g-b*.4),e.lineTo(f-b*.3,g-b*.3),e.closePath(),e.fill()}function A(i){for(const o of c){if(e.strokeStyle="rgba(255,255,255,0.15)",e.lineWidth=2,e.beginPath(),e.moveTo(o.x,o.y),e.lineTo(o.x,o.y-o.height),e.stroke(),e.beginPath(),e.moveTo(o.x-6,o.y-o.height+5),e.lineTo(o.x+6,o.y-o.height+5),e.stroke(),e.strokeStyle="rgba(255,255,255,0.08)",e.beginPath(),e.moveTo(o.x,o.y),e.lineTo(o.x-8,o.y+4),e.moveTo(o.x,o.y),e.lineTo(o.x+8,o.y+4),e.stroke(),Math.sin(i*.003+o.x)>.3){e.fillStyle="rgba(255, 80, 80, 0.9)",e.beginPath(),e.arc(o.x,o.y-o.height,2,0,Math.PI*2),e.fill();const t=e.createRadialGradient(o.x,o.y-o.height,0,o.x,o.y-o.height,8);t.addColorStop(0,"rgba(255, 80, 80, 0.3)"),t.addColorStop(1,"rgba(255, 80, 80, 0)"),e.fillStyle=t,e.beginPath(),e.arc(o.x,o.y-o.height,8,0,Math.PI*2),e.fill()}Math.random()<.008&&q(o)}}function M(i){for(let o=u.length-1;o>=0;o--){const a=u[o];if(a.radius+=a.speed,a.alpha=.4*(1-a.radius/a.maxRadius),a.radius>=a.maxRadius){u.splice(o,1);continue}e.strokeStyle=`rgba(255, 200, 200, ${a.alpha})`,e.lineWidth=1,e.beginPath(),e.arc(a.x,a.y,a.radius,-Math.PI*.8,-Math.PI*.2),e.stroke(),e.beginPath(),e.arc(a.x,a.y,a.radius*.7,-Math.PI*.7,-Math.PI*.3),e.stroke()}}function m(i){e.strokeStyle="rgba(255, 180, 180, 0.04)",e.lineWidth=1;for(let o=0;o=2){const o=c[Math.floor(Math.random()*c.length)];v.push({x:o.x,y:o.y-o.height,vx:(Math.random()-.5)*2,vy:(Math.random()-.5)*1-.5,life:0,maxLife:60+Math.random()*40})}for(let o=v.length-1;o>=0;o--){const a=v[o];if(a.x+=a.vx,a.y+=a.vy,a.life++,a.life>=a.maxLife){v.splice(o,1);continue}const t=Math.sin(a.life/a.maxLife*Math.PI)*.8;e.fillStyle=`rgba(255, 220, 220, ${t})`,e.beginPath(),e.arc(a.x,a.y,1.5,0,Math.PI*2),e.fill()}}function x(i){const o=h<640?110:180,a=o*.85,t=o*.45,l=.38,r=h-o*.35,s=d+a*.25,f="rgba(200, 155, 90, 0.82)",g="rgba(160, 118, 62, 0.82)",b="rgba(220, 180, 115, 0.90)",w="rgba(110, 80, 40, 0.60)",E="rgba(190, 145, 78, 0.75)",D="rgba(145, 108, 55, 0.75)",F="rgba(220, 210, 170, 0.70)",P={x:r-o,y:s-a},T={x:r,y:s-a},p={x:r,y:s},H={x:r-o,y:s},I={x:P.x+t,y:P.y-t*l},k={x:T.x+t,y:T.y-t*l},C={x:p.x+t,y:p.y-t*l};e.fillStyle=f,e.beginPath(),e.moveTo(H.x,H.y),e.lineTo(P.x,P.y),e.lineTo(T.x,T.y),e.lineTo(p.x,p.y),e.closePath(),e.fill(),e.fillStyle=g,e.beginPath(),e.moveTo(p.x,p.y),e.lineTo(T.x,T.y),e.lineTo(k.x,k.y),e.lineTo(C.x,C.y),e.closePath(),e.fill(),e.fillStyle=b,e.beginPath(),e.moveTo(P.x,P.y),e.lineTo(I.x,I.y),e.lineTo(k.x,k.y),e.lineTo(T.x,T.y),e.closePath(),e.fill();const W=o*.22,j=.18,X=(P.x+I.x)/2,G=(P.y+I.y)/2;e.fillStyle=E,e.beginPath(),e.moveTo(P.x,P.y),e.lineTo(X,G),e.lineTo(X,G-W),e.lineTo(P.x,P.y-W-W*j),e.closePath(),e.fill();const N=(T.x+k.x)/2,O=(T.y+k.y)/2;e.fillStyle=D,e.beginPath(),e.moveTo(T.x,T.y),e.lineTo(N,O),e.lineTo(N,O-W*.9),e.lineTo(T.x,T.y-W*.85),e.closePath(),e.fill(),e.fillStyle="rgba(175, 132, 65, 0.70)",e.beginPath(),e.moveTo(I.x,I.y),e.lineTo(k.x,k.y),e.lineTo(k.x-t*.15,k.y-W*.7),e.lineTo(I.x-t*.1,I.y-W*.65),e.closePath(),e.fill();const Y=s-a*.5,L=10;e.fillStyle=F,e.fillRect(r-o,Y-L/2,o,L),e.beginPath(),e.moveTo(p.x,Y-L/2),e.lineTo(C.x,Y-L/2-t*l),e.lineTo(C.x,Y+L/2-t*l),e.lineTo(p.x,Y+L/2),e.closePath(),e.fill(),e.strokeStyle="rgba(150, 105, 50, 0.25)",e.lineWidth=1;for(let J=1;J<7;J++){const $=s-a*(J/7);e.beginPath(),e.moveTo(H.x,$),e.lineTo(p.x,$),e.stroke()}e.strokeStyle=w,e.lineWidth=1.5,e.beginPath(),e.moveTo(H.x,H.y),e.lineTo(P.x,P.y),e.lineTo(T.x,T.y),e.lineTo(p.x,p.y),e.closePath(),e.stroke(),e.beginPath(),e.moveTo(P.x,P.y),e.lineTo(I.x,I.y),e.lineTo(k.x,k.y),e.lineTo(T.x,T.y),e.closePath(),e.stroke(),e.beginPath(),e.moveTo(T.x,T.y),e.lineTo(k.x,k.y),e.lineTo(C.x,C.y),e.lineTo(p.x,p.y),e.closePath(),e.stroke(),e.beginPath(),e.moveTo(p.x,p.y),e.lineTo(C.x,C.y),e.stroke()}function n(i){e.clearRect(0,0,h,d);const o=e.createLinearGradient(0,0,h,d);o.addColorStop(0,"#7f1d1d"),o.addColorStop(.5,"#991b1b"),o.addColorStop(1,"#7f1d1d"),e.fillStyle=o,e.fillRect(0,0,h,d),e.strokeStyle="rgba(255,255,255,0.02)",e.lineWidth=1;const a=40;for(let t=0;t(h<640?3:5))return;const M=c[c.length-1],m=h<640?80:120;M&&M.x.8;e.fillStyle=t?"rgba(255, 200, 60, 1)":"rgba(80, 240, 180, 0.9)",e.beginPath(),e.arc(i.x-3,i.y-25,2.5,0,Math.PI*2),e.fill(),e.beginPath(),e.arc(i.x+3,i.y-25,2.5,0,Math.PI*2),e.fill();const l=e.createRadialGradient(i.x,i.y-25,0,i.x,i.y-25,12);l.addColorStop(0,t?"rgba(255, 200, 60, 0.15)":"rgba(80, 240, 180, 0.1)"),l.addColorStop(1,"rgba(0,0,0,0)"),e.fillStyle=l,e.beginPath(),e.arc(i.x,i.y-25,12,0,Math.PI*2),e.fill(),e.strokeStyle="rgba(140, 190, 240, 0.6)",e.lineWidth=3,e.beginPath(),e.moveTo(i.x+8,i.y-5),e.lineTo(a+18,o+5),e.lineTo(a+20,o+15),e.stroke(),e.beginPath(),e.moveTo(a+18,o+15),e.lineTo(a+15,o+20),e.moveTo(a+18,o+15),e.lineTo(a+21,o+20),e.stroke(),Math.random()<.04&&S.push({x:a+18,y:o+18,vx:(Math.random()-.5)*2,vy:-Math.random()*1.5,life:20+Math.random()*15})}for(let i=S.length-1;i>=0;i--){const o=S[i];if(o.x+=o.vx,o.y+=o.vy,o.vy+=.05,o.life--,o.life<=0){S.splice(i,1);continue}const a=o.life/30;e.fillStyle=`rgba(201, 180, 80, ${a})`,e.beginPath(),e.arc(o.x,o.y,1,0,Math.PI*2),e.fill()}Math.random()<.015&&B();for(let i=c.length-1;i>=0;i--){const o=c[i];if(o.x+=o.speed,o.x>h+30){c.splice(i,1);continue}const a=o.x/h,t=h<640?40:56,l=h<640?32:44,r=a<.3?"rgba(220, 160, 140, 0.7)":a<.6?"rgba(160, 210, 160, 0.7)":"rgba(80, 220, 140, 0.85)";e.fillStyle="rgba(0,0,0,0.15)",e.fillRect(o.x-t/2+2,m-l+2,t,l),e.fillStyle=r,e.fillRect(o.x-t/2,m-l,t,l),e.strokeStyle="rgba(255,255,255,0.2)",e.lineWidth=1,e.strokeRect(o.x-t/2,m-l,t,l),e.strokeStyle="rgba(255,255,255,0.3)",e.beginPath(),e.moveTo(o.x,m-l),e.lineTo(o.x,m),e.stroke(),a>.7&&(e.strokeStyle="rgba(255, 255, 255, 0.9)",e.lineWidth=2,e.beginPath(),e.moveTo(o.x-5,m-l/2),e.lineTo(o.x-1,m-l/2+4),e.lineTo(o.x+6,m-l/2-5),e.stroke())}const x=["MAILBOX","INCORP","BINDER","BANKING","CRTC"],n=u.length;e.font=h<640?"bold 10px 'JetBrains Mono', monospace":"bold 13px 'JetBrains Mono', monospace",e.textAlign="center";for(let i=0;i({x:Math.random()*h,y:Math.random()*d,vx:(Math.random()-.5)*.35,vy:(Math.random()-.5)*.35,size:28+Math.random()*24,rot:Math.random()*Math.PI*2,vrot:(Math.random()-.5)*.008,type:o%B.length,alpha:.35+Math.random()*.35}))}function M(){h=y.offsetWidth,d=y.offsetHeight,y.width=h,y.height=d,A()}function m(){e.clearRect(0,0,h,d);for(const n of u)n.x+=n.vx,n.y+=n.vy,n.rot+=n.vrot,n.x<-60&&(n.x=h+60),n.x>h+60&&(n.x=-60),n.y<-60&&(n.y=d+60),n.y>d+60&&(n.y=-60),e.save(),e.globalAlpha=n.alpha,e.translate(n.x,n.y),e.rotate(n.rot),e.fillStyle="#ffaaaa",e.strokeStyle="#ffaaaa",B[n.type](e,0,0,n.size),e.restore();requestAnimationFrame(m)}M(),m(),new ResizeObserver(M).observe(y.parentElement)})();