From 379e2a97a5db3fce4f4be73eaa957ccf17336bc5 Mon Sep 17 00:00:00 2001 From: TanmayMachkar Date: Mon, 29 Jan 2024 20:22:46 +0530 Subject: [PATCH] /build removed --- .gitignore | 2 +- build/static/js/main.0b821458.js | 3 + build/static/js/main.0b821458.js.LICENSE.txt | 58 ++++++++++++++++++++ build/static/js/main.0b821458.js.map | 1 + 4 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 build/static/js/main.0b821458.js create mode 100644 build/static/js/main.0b821458.js.LICENSE.txt create mode 100644 build/static/js/main.0b821458.js.map diff --git a/.gitignore b/.gitignore index 4d29575..1c37b55 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,7 @@ /coverage # production -/build +#/build # misc .DS_Store diff --git a/build/static/js/main.0b821458.js b/build/static/js/main.0b821458.js new file mode 100644 index 0000000..2562c39 --- /dev/null +++ b/build/static/js/main.0b821458.js @@ -0,0 +1,3 @@ +/*! For license information please see main.0b821458.js.LICENSE.txt */ +(()=>{var e={848:function(e){e.exports=function(){"use strict";var e=3.1415926,t={PI:e,PIx2:2*e,PI_2:e/2,PI_180:e/180,N180_PI:180/e,Infinity:-999,isInfinity:function(e){return e===this.Infinity||e===1/0},randomAToB:function(e,t,n){return 2>t;return e+1},h=function(e,t){return[1,0,0,0,1,0,e,t,1]},f=function(e){var t=Math.cos(e);return[t,-(e=Math.sin(e)),0,e,t,0,0,0,1]},p=function(e,t){return[e,0,0,0,t,0,0,0,1]},v=function(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],l=e[5],s=e[6],u=e[7],c=e[8],d=t[0],h=t[1],f=t[2],p=t[3],v=t[4],y=t[5],m=t[6];return[n*d+r*p+i*m,n*h+r*v+i*(e=t[7]),n*f+r*y+i*(t=t[8]),a*d+o*p+l*m,a*h+o*v+l*e,a*f+o*y+l*t,s*d+u*p+c*m,s*h+u*v+c*e,s*f+u*y+c*t]},y={createCanvas:function(e,t,n,r){var i=3",n&&(t+="em speed:"+n.emitSpeed+"
"),n&&(t+="pos:"+this.getEmitterPos(n));break;case 3:n&&(t+="initializes:"+n.initializes.length+"
"),n&&(t+=''+this.concatArr(n.initializes)+"
"),n&&(t+="behaviours:"+n.behaviours.length+"
"),n&&(t+=''+this.concatArr(n.behaviours)+"
");break;case 4:e&&(t+=e.name+"
"),e&&(t+="body:"+this.getCreatedNumber(e)+"
");break;default:t+="particles:"+this.proton.getCount()+"
",t+="pool:"+this.proton.pool.getCount()+"
",t+="total:"+this.proton.pool.total}this.container.innerHTML=t}},{key:"add",value:function(e,t){var n=this;if(!this.container){this.type=1,this.container=document.createElement("div"),this.container.style.cssText=["position:absolute;bottom:0px;left:0;cursor:pointer;","opacity:0.9;z-index:10000;padding:10px;font-size:12px;font-family:Helvetica,Arial,sans-serif;","width:120px;height:50px;background-color:#002;color:#0ff;"].join(""),this.container.addEventListener("click",(function(e){n.type++,4this._interval&&(this.dispatchEvent(D.PROTON_UPDATE),this.emittersUpdate(this._interval),this.then=this.now-this.elapsed%this._interval*1e3,this.dispatchEvent(D.PROTON_UPDATE_AFTER)))}},{key:"emittersUpdate",value:function(e){for(var t=this.emitters.length;t--;)this.emitters[t].update(e)}},{key:"amendChangeTabsBug",value:function(){D.amendChangeTabsBug&&.5=this.x&&t<=this.bottom&&t>=this.y}}]),X);function X(e,t,n,i){r(this,X),this.x=e,this.y=t,this.width=n,this.height=i,this.bottom=this.y+this.height,this.right=this.x+this.width}var G=(i(K,[{key:"init",value:function(){this.startTime=0,this.nextTime=this.timePan.getValue()}},{key:"getValue",value:function(e){return this.startTime+=e,this.startTime>=this.nextTime?(this.startTime=0,this.nextTime=this.timePan.getValue(),1===this.numPan.b?.5=this.life||this.dead?(this.energy=0,this.dead=!0,this.destroy()):(e=this.easing(e.age/e.life),this.energy=Math.max(1-e,0))}},{key:"destroy",value:function(){for(var e=this.parents.length;e--;)this.parents[e].removeBehaviour(this);this.parents.length=0}}]),ge);function ge(e,t){r(this,ge),this.life=x.initValue(e,1/0),this.easing=N.getEasing(t),this.age=0,this.energy=1,this.dead=!1,this.parents=[],this.id="Behaviour_"+ge.id++,this.name="Behaviour"}me.id=0;var be=(l(we,me),i(we,[{key:"reset",value:function(e,t,n,r){this.force=this.normalizeForce(new F(e,t)),n&&o(we.prototype.__proto__||Object.getPrototypeOf(we.prototype),"reset",this).call(this,n,r)}},{key:"applyBehaviour",value:function(e,t,n){this.calculate(e,t,n),e.a.add(this.force)}}]),we);function we(e,t,n,i){return r(this,we),(i=s(this,(we.__proto__||Object.getPrototypeOf(we)).call(this,n,i))).force=i.normalizeForce(new F(e,t)),i.name="Force",i}var ke=(l(_e,me),i(_e,[{key:"reset",value:function(e,t,n,r,i){this.targetPosition=x.initValue(e,new F),this.radius=x.initValue(n,1e3),this.force=x.initValue(this.normalizeValue(t),100),this.radiusSq=this.radius*this.radius,this.attractionForce=new F,this.lengthSq=0,r&&o(_e.prototype.__proto__||Object.getPrototypeOf(_e.prototype),"reset",this).call(this,r,i)}},{key:"applyBehaviour",value:function(e,t,n){this.calculate(e,t,n),this.attractionForce.copy(this.targetPosition),this.attractionForce.sub(e.p),this.lengthSq=this.attractionForce.lengthSq(),4e-5=this.delay&&(e.a.addXY(t.randomAToB(-this.panFoce.x,this.panFoce.x),t.randomAToB(-this.panFoce.y,this.panFoce.y)),e.data.time=0)}}]),Se);function Se(e,t,n,i,a){return r(this,Se),(a=s(this,(Se.__proto__||Object.getPrototypeOf(Se)).call(this,i,a))).reset(e,t,n),a.time=0,a.name="RandomDrift",a}var Ee=(l(Pe,be),i(Pe,[{key:"reset",value:function(e,t,n){o(Pe.prototype.__proto__||Object.getPrototypeOf(Pe.prototype),"reset",this).call(this,0,e,t,n)}}]),Pe);function Pe(e,t,n){return r(this,Pe),(n=s(this,(Pe.__proto__||Object.getPrototypeOf(Pe)).call(this,0,e,t,n))).name="Gravity",n}var Ce=(l(Re,me),i(Re,[{key:"reset",value:function(e,t,n,r,i){this.emitter=x.initValue(e,null),this.mass=x.initValue(t,!0),this.callback=x.initValue(n,null),this.collisionPool=[],this.delta=new F,r&&o(Re.prototype.__proto__||Object.getPrototypeOf(Re.prototype),"reset",this).call(this,r,i)}},{key:"applyBehaviour",value:function(e,t,n){var r,i,a,o,l,s,u=(this.emitter?this.emitter.particles:this.pool).slice(n),c=u.length,d=void 0,h=void 0;for(h=0;h=this.life||this.dead)&&this.destroy(),this.emitting(e),this.integrate(e)}},{key:"integrate",value:function(e){if(this.parent){var t=1-this.damping;this.parent.integrator.calculate(this,e,t);var n=void 0,r=void 0;for(n=this.particles.length-1;0<=n;n--)(r=this.particles[n]).update(e,n),this.parent.integrator.calculate(r,e,t),this.dispatch("PARTICLE_UPDATE",r),r.dead&&(this.dispatch("PARTICLE_DEAD",r),this.parent.pool.expire(r),this.particles.splice(n,1))}}},{key:"dispatch",value:function(e,t){this.parent&&this.parent.dispatchEvent(e,t),this.bindEvent&&this.dispatchEvent(e,t)}},{key:"emitting",value:function(e){if("once"===this.totalTime){var t=void 0,n=this.rate.getValue(99999);for(0this.element.width||n<0||n>this.elementwidth||(t=4*((n>>0)*e.width+(t>>0)),e.data[t]=i.r,e.data[1+t]=i.g,e.data[2+t]=i.b,e.data[3+t]=255*r.alpha)}},{key:"onParticleDead",value:function(){}}]),st);function st(e,t){return r(this,st),(e=s(this,(st.__proto__||Object.getPrototypeOf(st)).call(this,e))).context=e.element.getContext("2d"),e.imageData=null,e.rectangle=null,e.rectangle=t,e.createImageData(t),e.name="PixelRenderer",e}var ut=void 0,ct=(l(dt,Je),i(dt,[{key:"setPIXI",value:function(e){try{ut=e||{Sprite:{}},this.createFromImage=ut.Sprite.from||ut.Sprite.fromImage}catch(e){}}},{key:"onProtonUpdate",value:function(){}},{key:"onParticleCreated",value:function(e){e.body?e.body=this.pool.get(e.body,e):e.body=this.pool.get(this.circleConf,e),this.blendMode&&(e.body.blendMode=this.blendMode),this.element.addChild(e.body)}},{key:"onParticleUpdate",value:function(e){this.transform(e,e.body),!0!==this.setColor&&!0!==this.color||(e.body.tint=H.getHex16FromParticle(e))}},{key:"onParticleDead",value:function(e){this.element.removeChild(e.body),this.pool.expire(e.body),e.body=null}},{key:"destroy",value:function(e){o(dt.prototype.__proto__||Object.getPrototypeOf(dt.prototype),"destroy",this).call(this),this.pool.destroy();for(var t=e.length;t--;){var n=e[t];n.body&&this.element.removeChild(n.body)}}},{key:"transform",value:function(e,n){n.x=e.p.x,n.y=e.p.y,n.alpha=e.alpha,n.scale.x=e.scale,n.scale.y=e.scale,n.rotation=e.rotation*t.PI_180}},{key:"createBody",value:function(e,t){return e.isCircle?this.createCircle(t):this.createSprite(e)}},{key:"createSprite",value:function(e){return(e=e.isInner?this.createFromImage(e.src):new ut.Sprite(e)).anchor.x=.5,e.anchor.y=.5,e}},{key:"createCircle",value:function(e){var t,n=new ut.Graphics;return this.stroke&&(t=this.stroke instanceof String?this.stroke:0,n.beginStroke(t)),n.beginFill(e.color||36077),n.drawCircle(0,0,e.radius),n.endFill(),n}}]),dt);function dt(e,t){r(this,dt);var n=s(this,(dt.__proto__||Object.getPrototypeOf(dt)).call(this,e));return n.stroke=t,n.color=!1,n.setColor=!1,n.blendMode=null,n.pool.create=function(e,t){return n.createBody(e,t)},n.setPIXI(window.PIXI),n.name="PixiRenderer",n}var ht=(i(ft,[{key:"set",value:function(e,t){0===t?q.set(e,this.mats[0]):q.multiply(this.mats[t-1],e,this.mats[t]),this.size=Math.max(this.size,t+1)}},{key:"push",value:function(e){0===this.size?q.set(e,this.mats[0]):q.multiply(this.mats[this.size-1],e,this.mats[this.size]),this.size++}},{key:"pop",value:function(){0=this.minx)return!0}else if(e.p.y<=this.maxy&&e.p.y>=this.miny)return!0;return!1}},{key:"getLength",value:function(){return Math.sqrt(this.dx*this.dx+this.dy*this.dy)}},{key:"crossing",value:function(e){"dead"===this.crossType?">"===this.direction||"R"===this.direction||"right"===this.direction||"down"===this.direction?this.rangeOut(e)&&this.getDirection(e.p.x,e.p.y)&&(e.dead=!0):this.rangeOut(e)&&(this.getDirection(e.p.x,e.p.y)||(e.dead=!0)):"bound"===this.crossType?this.rangeOut(e)&&this.getDistance(e.p.x,e.p.y)<=e.radius&&(0===this.dx?e.v.x*=-1:0===this.dy?e.v.y*=-1:this.getSymmetric(e.v)):"cross"===this.crossType&&this.alert&&(console.error("Sorry, LineZone does not support cross method!"),this.alert=!1)}}]),mt);function mt(e,t,n,i,a){r(this,mt);var o=s(this,(mt.__proto__||Object.getPrototypeOf(mt)).call(this));return 0<=n-e?(o.x1=e,o.y1=t,o.x2=n,o.y2=i):(o.x1=n,o.y1=i,o.x2=e,o.y2=t),o.dx=o.x2-o.x1,o.dy=o.y2-o.y1,o.minx=Math.min(o.x1,o.x2),o.miny=Math.min(o.y1,o.y2),o.maxx=Math.max(o.x1,o.x2),o.maxy=Math.max(o.y1,o.y2),o.dot=o.x2*o.y1-o.x1*o.y2,o.xxyy=o.dx*o.dx+o.dy*o.dy,o.gradient=o.getGradient(),o.length=o.getLength(),o.direction=x.initValue(a,">"),o}var gt=(l(bt,re),i(bt,[{key:"getPosition",value:function(){return this.angle=t.PIx2*Math.random(),this.randomRadius=Math.random()*this.radius,this.vector.x=this.x+this.randomRadius*Math.cos(this.angle),this.vector.y=this.y+this.randomRadius*Math.sin(this.angle),this.vector}},{key:"setCenter",value:function(e,t){this.center.x=e,this.center.y=t}},{key:"crossing",value:function(e){var t=e.p.distanceTo(this.center);"dead"===this.crossType?t-e.radius>this.radius&&(e.dead=!0):"bound"===this.crossType?t+e.radius>=this.radius&&this.getSymmetric(e):"cross"===this.crossType&&this.alert&&(console.error("Sorry, CircleZone does not support cross method!"),this.alert=!1)}},{key:"getSymmetric",value:function(e){var t=e.v.getGradient(),n=2*(this.getGradient(e)-t),r=e.v.x;t=e.v.y,e.v.x=r*Math.cos(n)-t*Math.sin(n),e.v.y=r*Math.sin(n)+t*Math.cos(n)}},{key:"getGradient",value:function(e){return-t.PI_2+Math.atan2(e.p.y-this.center.y,e.p.x-this.center.x)}}]),bt);function bt(e,t,n){r(this,bt);var i=s(this,(bt.__proto__||Object.getPrototypeOf(bt)).call(this));return i.x=e,i.y=t,i.radius=n,i.angle=0,i.center={x:e,y:t},i}var wt=(l(kt,re),i(kt,[{key:"getPosition",value:function(){return this.vector.x=this.x+Math.random()*this.width,this.vector.y=this.y+Math.random()*this.height,this.vector}},{key:"crossing",value:function(e){"dead"===this.crossType?((e.p.x+e.radiusthis.x+this.width)&&(e.dead=!0),(e.p.y+e.radiusthis.y+this.height)&&(e.dead=!0)):"bound"===this.crossType?(e.p.x-e.radiusthis.x+this.width&&(e.p.x=this.x+this.width-e.radius,e.v.x*=-1),e.p.y-e.radiusthis.y+this.height&&(e.p.y=this.y+this.height-e.radius,e.v.y*=-1)):"cross"===this.crossType&&(e.p.x+e.radiusthis.x+this.width&&0<=e.v.x&&(e.p.x=this.x-e.radius),e.p.y+e.radiusthis.y+this.height&&0<=e.v.y&&(e.p.y=this.y-e.radius))}}]),kt);function kt(e,t,n,i){r(this,kt);var a=s(this,(kt.__proto__||Object.getPrototypeOf(kt)).call(this));return a.x=e,a.y=t,a.width=n,a.height=i,a}function _t(e,t,n,i){r(this,_t);var a=s(this,(_t.__proto__||Object.getPrototypeOf(_t)).call(this));return a.reset(e,t,n,i),a}return l(_t,re),i(_t,[{key:"reset",value:function(e,t,n,r){this.imageData=e,this.x=x.initValue(t,0),this.y=x.initValue(n,0),this.d=x.initValue(r,2),this.vectors=[],this.setVectors()}},{key:"setVectors",value:function(){var e=void 0,t=void 0,n=this.imageData.width,r=this.imageData.height;for(e=0;e>0)*n+(e>>0));0>0)*this.imageData.width+(e>>0)),0>0)*this.imageData.width+(e>>0)),{r:this.imageData.data[e],g:this.imageData.data[1+e],b:this.imageData.data[2+e],a:this.imageData.data[3+e]}}},{key:"crossing",value:function(e){"dead"===this.crossType?this.getBound(e.p.x-this.x,e.p.y-this.y)?e.dead=!0:e.dead=!1:"bound"===this.crossType&&(this.getBound(e.p.x-this.x,e.p.y-this.y)||e.v.negate())}}]),l=_t,i={addEventListener:function(e,t){e.addEventListener("PROTON_UPDATE_AFTER",(function(){return t()}))},getStyle:function(e){return"rgba("+(e=H.hexToRgb(01&&void 0!==arguments[1]?arguments[1]:60,n={callback:e,fps:t,n:60/t,param:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i:0};return this.animations.push(n),this.animations.length>=1&&this.start(),this},getIndex:function(e){for(var t=0;t=n.n&&(r(i),n.i=0)}}}}()},463:(e,t,n)=>{"use strict";var r=n(791),i=n(296);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n