PageSourceSearch

https://adam-coogan.github.io/component---src-pages-lensing-1-sub-tsx-cd2a9bc80c23ed906f06.js

js adam-coogan.github.io collected 2026-10-03 08:32:44 UTC 3,616 bytes, 2 lines download raw bytes

1(self.webpackChunkadam_coogan_github_io=self.webpackChunkadam_coogan_github_io||[]).push([[152],{5518:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return f}});var n=a(7294),s=a(2109),i=a(2955),l=a(2802),r=a(338),u=a(152),c=function(e){var t=e.x,a=e.y,s=e.M_200c,i=e.setX,l=e.setY,r=e.setM200c;return n.createElement("div",null,n.createElement("h2",null,"Subhalo parameters"),n.createElement(u.Z,{label:"Horizontal position",value:t,set:i,min:-2.5,max:2.5}),n.createElement(u.Z,{label:"Vertical position",value:a,set:l,min:-2.5,max:2.5}),n.createElement(u.Z,{label:"Mass",value:Math.log10(s),set:function(e){return r(Math.pow(10,e))},min:5,max:10.5,description:"The mass is that of a sphere centered on the subhalo in which the average density is 200 times rho_cr"}))},m=a(7673),o=a(6758),g=a(3774),h=a(9682),d=a(2507),_=a(3286),x=a(1644),p=(0,_.yb)(1),f=function(){var e=(0,n.useState)(.05),t=e[0],a=e[1],u=(0,n.useState)(d.EF),_=u[0],f=u[1],E=(0,n.useState)(40.107),S=E[0],y=E[1],v=(0,n.useState)(.5),b=v[0],w=v[1],F=(0,n.useState)(4),D=F[0],Z=F[1],M=(0,n.useState)(5),T=M[0],k=M[1],I=(0,n.useState)(57.296),C=I[0],H=I[1],L=(0,n.useState)(.75),Y=L[0],q=L[1],R=(0,n.useState)(1.5),P=R[0],X=R[1],G=(0,n.useState)(d.xY),N=G[0],O=G[1],Q=(0,n.useState)(.007),j=Q[0],z=Q[1],A=(0,n.useState)(.01),V=A[0],B=A[1],J=(0,n.useState)(-1.1),K=J[0],U=J[1],W=(0,n.useState)(-1.1),$=W[0],ee=W[1],te=(0,n.useState)(1e10),ae=te[0],ne=te[1],se=(0,n.useState)(.1),ie=se[0],le=se[1],re=(0,n.useState)(.5),ue=re[0],ce=re[1],me=0===N?23:d.xY,oe=me,ge=400,he=(0,x.kC)(ge,d.Ip,ie),de=he*ie/2,_e=d.w*he,xe=(0,n.useState)((0,x.ag)(Math.pow(he,2),5)),pe=xe[0],fe=xe[1];return n.createElement(i.Z,null,n.createElement("div",{style:{backgroundColor:"#FFFFFF",minHeight:"94vh"}},n.createElement("div",{style:{justifyContent:"center",display:"flex",flexDirection:"row"}},n.createElement("div",{style:{width:ge,display:"flex",flexDirection:"column",alignItems:"left",padding:"0.5rem",paddingRight:"5rem"}},n.createElement("div",null,n.createElement("h2",{"data-tip":!0,"data-for":"sourceHeaderTT"},"Source"),n.createElement(s.Z,{id:"sourceHeaderTT"},"Source galaxy with no lensing"),n.createElement(o.Z,{x_s:t,y_s:_,phi_sDeg:S,q_s:b,index:D,r_e:T,I_e:.05,lowFlux:-3,highFlux:me,range:de,canvasDim:ge})),n.createElement(g.Z,{x:t,y:_,phiDeg:S,q:b,index:D,r_e:T,setX:a,setY:f,setPhiDeg:y,setQ:w,setIndex:Z,setRe:k}),n.createElement(h.Z,{sigma_n:ue,setSigmaN:ce,setRes:function(e){le(e);var t=(0,x.kC)(ge,d.Ip,e);fe((0,x.ag)(Math.pow(t,2),5))},resampleNoise:function(){return fe((0,x.ag)(Math.pow(he,2),5))}})),n.createElement("div",{style:{width:ge,display:"flex",flexDirection:"column",alignItems:"left",padding:"0.5rem",paddingLeft:"5rem"}},n.createElement("div",null,n.createElement("h2",{"data-tip":!0,"data-for":"obsHeaderTT"},"Observation"),n.createElement(s.Z,{id:"obsHeaderTT"},"Observation of lensed galaxy seen by telescope"),n.createElement(l.Z,{fsLensSource:p,x_s:t,y_s:_,phi_sDeg:S,q_s:b,index:D,r_e:T,I_e:.05,x_l:0,y_l:0,phi_lDeg:C,q_l:Y,r_ein:P,lensLightScale:N,gamma_1:j,gamma_2:V,x_sh:[K],y_sh:[$],M_200c:[ae],tau:[d.gc],noiseArray:pe,noiseRange:5,sigma_n:ue,maxFlux:oe,lowFlux:-3,highFlux:me,res:ie,nPix:he,nPixFine:_e,range:de,canvasDim:ge})),n.createElement(c,{x:K,y:$,M_200c:ae,setX:U,setY:ee,setM200c:ne}),n.createElement(r.Z,{phiDeg:C,q:Y,r_ein:P,lensLight:0!==N,setPhiDeg:H,setQ:q,setRein:X,toggleLensLight:function(){return O(0===N?d.xY:0)}}),n.createElement(m.Z,{gamma_1:j,gamma_2:V,setGamma_1:z,setGamma_2:B})))))}}}]);
2//# sourceMappingURL=component---src-pages-lensing-1-sub-tsx-cd2a9bc80c23ed906f06.js.map

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.