1!function(){try{var t="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="397f62e3-0b83-401a-bf55-8d68a22da9e2",t._sentryDebugIdIdentifier="sentry-dbid-397f62e3-0b83-401a-bf55-8d68a22da9e2")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9335],{49335:(t,e,i)=>{i.d(e,{A:()=>y});var s,n,a,r,o=i(26514),h=i(75834),c=i(92742);function u(t,e){return t+Math.random()*(e-t)}(s=a||(a={}))[s.Circle=0]="Circle",s[s.Square=1]="Square",s[s.Strip=2]="Strip",(n=r||(r={}))[n.Positive=1]="Positive",n[n.Negative=-1]="Negative";let l=1e3/60;class f{constructor(t,e,i,s){this.getOptions=e;const{colors:n,initialVelocityX:a,initialVelocityY:o}=this.getOptions();this.context=t,this.x=i,this.y=s,this.w=u(5,20),this.h=u(5,20),this.radius=u(5,10),this.vx="number"==typeof a?u(-a,a):u(a.min,a.max),this.vy="number"==typeof o?u(-o,0):u(o.min,o.max),this.shape=Math.floor(0+3*Math.random()),this.angle=u(0,360)*Math.PI/180,this.angularSpin=u(-.2,.2),this.color=n[Math.floor(Math.random()*n.length)],this.rotateY=u(0,1),this.rotationDirection=u(0,1)?r.Positive:r.Negative}update(t){let{gravity:e,wind:i,friction:s,opacity:n,drawShape:o}=this.getOptions(),h=t/l;this.x+=this.vx*h,this.y+=this.vy*h,this.vy+=e*h,this.vx+=i*h,this.vx*=s**h,this.vy*=s**h,this.rotateY>=1&&this.rotationDirection===r.Positive?this.rotationDirection=r.Negative:this.rotateY<=-1&&this.rotationDirection===r.Negative&&(this.rotationDirection=r.Positive);let c=.1*this.rotationDirection*h;if(this.rotateY+=c,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=n,this.context.lineCap="round",this.context.lineWidth=2,o&&"function"==typeof o)o.call(this,this.context);else switch(this.shape){case a.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case a.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case a.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}this.context.closePath(),this.context.restore()}}class p{constructor(t,e){this.x=0,this.y=0,this.w=0,this.h=0,this.lastNumberOfPieces=0,this.tweenProgress=0,this.tweenFrom=0,this.particles=[],this.particlesGenerated=0,this.removeParticleAt=t=>{this.particles.splice(t,1)},this.getParticle=()=>{let t=u(this.x,this.w+this.x),e=u(this.y,this.h+this.y);return new f(this.context,this.getOptions,t,e)},this.animate=t=>{let{canvas:e,context:i,particlesGenerated:s,lastNumberOfPieces:n}=this,{run:a,recycle:r,numberOfPieces:o,debug:h,tweenFunction:c,tweenDuration:u}=this.getOptions();if(!a)return!1;let l=this.particles.length,f=r?l:s;if(f<o){n!==o&&(this.tweenProgress=0,this.tweenFrom=f,this.lastNumberOfPieces=o),this.tweenProgress=Math.min(u,Math.max(0,this.tweenProgress+t));let e=Math.round(c(this.tweenProgress,this.tweenFrom,o,u)-f);for(let t=0;t<e;t++)this.particles.push(this.getParticle());this.particlesGenerated+=e}h&&(i.font="12px sans-serif",i.fillStyle="#333",i.textAlign="right",i.fillText(`Particles: ${l}`,e.width-10,e.height-20));for(let i=this.particles.length-1;i>=0;i--){let s=this.particles[i];s.update(t),(s.y>e.height||s.y<-100||s.x>e.width+100||s.x<-100)&&(r&&f<=o?this.particles[i]=this.getParticle():this.removeParticleAt(i))}return l>0||f<o},this.canvas=t;const i=this.canvas.getContext("2d");if(!i)throw Error("Could not get canvas context");this.context=i,this.getOptions=e}}let d={width:"u">typeof window?window.innerWidth:300,height:"u">typeof window?window.innerHeight:200,numberOfPieces:200,friction:.99,wind:0,gravity:.1,initialVelocityX:4,initialVelocityY:10,colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548"],opacity:1,debug:!1,tweenFunction:c.easeInOutQuad,tweenDuration:5e3,recycle:!0,run:!0};class g{constructor(t,e){this.lastFrameTime=0,this.setOptionsWithDefaults=t=>{let e={confettiSource:{x:0,y:0,w:this.canvas.width,h:0}};this._options={...e,...d,...t},Object.assign(this,t.confettiSource)},this.update=(t=0)=>{let{options:{run:e,onConfettiComplete:i,frameRate:s},canvas:n,context:a}=this,r=Math.min(t-this.lastFrameTime,50);if(s&&r<1e3/s){this.rafId=requestAnimationFrame(this.update);return}this.lastFrameTime=t-(s?r%s:0),e&&(a.fillStyle="white",a.clearRect(0,0,n.width,n.height)),this.generator.animate(r)?this.rafId=requestAnimationFrame(this.update):(i&&"function"==typeof i&&this.generator.particlesGenerated>0&&i.call(this,this),this._options.run=!1)},this.reset=()=>{this.generator&&this.generator.particlesGenerated>0&&(this.generator.particlesGenerated=0,this.generator.particles=[],this.generator.lastNumberOfPieces=0)},this.stop=()=>{this.options={run:!1},this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=void 0)},this.canvas=t;const i=this.canvas.getContext("2d");if(!i)throw Error("Could not get canvas context");this.context=i,this.generator=new p(this.canvas,()=>this.options),this.options=e,this.update()}get options(){return this._options}set options(t){let e=this._options?.run,i=this._options?.recycle;this.setOptionsWithDefaults(t),this.generator&&(Object.assign(this.generator,this.options.confettiSource),"boolean"==typeof t.recycle&&t.recycle&&!1===i&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),"boolean"==typeof t.run&&t.run&&!1===e&&this.update()}}let v=h.createRef();class w extends h.Component{constructor(t){super(t),this.canvas=h.createRef(),this.canvas=t.canvasRef||v}componentDidMount(){if(this.canvas.current){let t=x(this.props)[0];this.confetti=new g(this.canvas.current,t)}}componentDidUpdate(){let t=x(this.props)[0];
1this.confetti&&(this.confetti.options=t)}componentWillUnmount(){this.confetti&&this.confetti.stop(),this.confetti=void 0}render(){let[t,e]=x(this.props),i={zIndex:2,position:"absolute",pointerEvents:"none",top:0,left:0,bottom:0,right:0,...e.style};return(0,o.jsx)("canvas",{width:t.width,height:t.height,ref:this.canvas,...e,style:i})}}function x(t){let e={},i={},s=[...Object.keys(d),"confettiSource","drawShape","onConfettiComplete","frameRate"],n=["canvasRef"];for(let a in t){let r=t[a];s.includes(a)?e[a]=r:n.includes(a)?n[a]=r:i[a]=r}return[e,i,{}]}w.defaultProps={...d},w.displayName="ReactConfetti";let y=h.forwardRef((t,e)=>(0,o.jsx)(w,{canvasRef:e,...t}))},92742:t=>{var e={linear:function(t,e,i,s){return(i-e)*t/s+e},easeInQuad:function(t,e,i,s){return(i-e)*(t/=s)*t+e},easeOutQuad:function(t,e,i,s){return-(i-e)*(t/=s)*(t-2)+e},easeInOutQuad:function(t,e,i,s){var n=i-e;return(t/=s/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},easeInCubic:function(t,e,i,s){return(i-e)*(t/=s)*t*t+e},easeOutCubic:function(t,e,i,s){return(i-e)*((t=t/s-1)*t*t+1)+e},easeInOutCubic:function(t,e,i,s){var n=i-e;return(t/=s/2)<1?n/2*t*t*t+e:n/2*((t-=2)*t*t+2)+e},easeInQuart:function(t,e,i,s){return(i-e)*(t/=s)*t*t*t+e},easeOutQuart:function(t,e,i,s){return-(i-e)*((t=t/s-1)*t*t*t-1)+e},easeInOutQuart:function(t,e,i,s){var n=i-e;return(t/=s/2)<1?n/2*t*t*t*t+e:-n/2*((t-=2)*t*t*t-2)+e},easeInQuint:function(t,e,i,s){return(i-e)*(t/=s)*t*t*t*t+e},easeOutQuint:function(t,e,i,s){return(i-e)*((t=t/s-1)*t*t*t*t+1)+e},easeInOutQuint:function(t,e,i,s){var n=i-e;return(t/=s/2)<1?n/2*t*t*t*t*t+e:n/2*((t-=2)*t*t*t*t+2)+e},easeInSine:function(t,e,i,s){var n=i-e;return-n*Math.cos(t/s*(Math.PI/2))+n+e},easeOutSine:function(t,e,i,s){return(i-e)*Math.sin(t/s*(Math.PI/2))+e},easeInOutSine:function(t,e,i,s){return-(i-e)/2*(Math.cos(Math.PI*t/s)-1)+e},easeInExpo:function(t,e,i,s){return 0==t?e:(i-e)*Math.pow(2,10*(t/s-1))+e},easeOutExpo:function(t,e,i,s){var n=i-e;return t==s?e+n:n*(-Math.pow(2,-10*t/s)+1)+e},easeInOutExpo:function(t,e,i,s){var n=i-e;return 0===t?e:t===s?e+n:(t/=s/2)<1?n/2*Math.pow(2,10*(t-1))+e:n/2*(-Math.pow(2,-10*--t)+2)+e},easeInCirc:function(t,e,i,s){return-(i-e)*(Math.sqrt(1-(t/=s)*t)-1)+e},easeOutCirc:function(t,e,i,s){return(i-e)*Math.sqrt(1-(t=t/s-1)*t)+e},easeInOutCirc:function(t,e,i,s){var n=i-e;return(t/=s/2)<1?-n/2*(Math.sqrt(1-t*t)-1)+e:n/2*(Math.sqrt(1-(t-=2)*t)+1)+e},easeInElastic:function(t,e,i,s){var n,a,r,o=i-e;return(r=1.70158,a=0,n=o,0===t)?e:1==(t/=s)?e+o:(a||(a=.3*s),n<Math.abs(o)?(n=o,r=a/4):r=a/(2*Math.PI)*Math.asin(o/n),-(n*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t*s-r)/a))+e)},easeOutElastic:function(t,e,i,s){var n,a,r,o=i-e;return(r=1.70158,a=0,n=o,0===t)?e:1==(t/=s)?e+o:(a||(a=.3*s),n<Math.abs(o)?(n=o,r=a/4):r=a/(2*Math.PI)*Math.asin(o/n),n*Math.pow(2,-10*t)*Math.sin(2*Math.PI*(t*s-r)/a)+o+e)},easeInOutElastic:function(t,e,i,s){var n,a,r,o=i-e;return(r=1.70158,a=0,n=o,0===t)?e:2==(t/=s/2)?e+o:(a||(a=.3*1.5*s),n<Math.abs(o)?(n=o,r=a/4):r=a/(2*Math.PI)*Math.asin(o/n),t<1)?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t*s-r)/a))+e:n*Math.pow(2,-10*(t-=1))*Math.sin(2*Math.PI*(t*s-r)/a)*.5+o+e},easeInBack:function(t,e,i,s,n){return void 0===n&&(n=1.70158),(i-e)*(t/=s)*t*((n+1)*t-n)+e},easeOutBack:function(t,e,i,s,n){return void 0===n&&(n=1.70158),(i-e)*((t=t/s-1)*t*((n+1)*t+n)+1)+e},easeInOutBack:function(t,e,i,s,n){var a=i-e;return(void 0===n&&(n=1.70158),(t/=s/2)<1)?a/2*(t*t*(((n*=1.525)+1)*t-n))+e:a/2*((t-=2)*t*(((n*=1.525)+1)*t+n)+2)+e},easeInBounce:function(t,i,s,n){var a,r=s-i;return a=e.easeOutBounce(n-t,0,r,n),r-a+i},easeOutBounce:function(t,e,i,s){var n=i-e;return(t/=s)<1/2.75?7.5625*t*t*n+e:t<2/2.75?n*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?n*(7.5625*(t-=2.25/2.75)*t+.9375)+e:n*(7.5625*(t-=2.625/2.75)*t+.984375)+e},easeInOutBounce:function(t,i,s,n){var a=s-i;return t<n/2?.5*e.easeInBounce(2*t,0,a,n)+i:.5*e.easeOutBounce(2*t-n,0,a,n)+.5*a+i}};t.exports=e}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.