1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="2496defa-826a-412e-8cdf-8aa46c427209",e._sentryDebugIdIdentifier="sentry-dbid-2496defa-826a-412e-8cdf-8aa46c427209")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6432],{13523:function(e,a,t){t.d(a,{P:function(){return o}});var n=t(2784),l=t(3687),i=t(22583),r=t(39754);let o=e=>{let{name:a,title:t}=e,o=(0,i.Y)(),d=(0,n.useRef)(o);d.current=o,(0,n.useEffect)(()=>{let e=(0,l.a1)(),n=d.current?"granted":"denied",i=void 0!==d.current?{analytics_storage:n,ad_storage:n,ad_personalization:n,ad_user_data:n}:{};(0,r.Z0)(a,{title:t,referral:e,url:window.location.href,path:window.location.pathname,...i})},[a,t])}},47347:function(e,a,t){t.d(a,{h:function(){return y}});var n=t(52322);t(2784);var l=t(2286),i=t(71950),r=t(8186),o=t(83632),d=t(89258),s=t(86319),c=t(51942),m=t(14932),u=t(55710),h=t(24626),p=t(41008),A=t(39754);let y=e=>{let{organisationName:a,organisationSubtitle:t,organisationLogo:y,programSlug:g,description:f,className:b,buttonHref:x,buttonLabel:w,countryCode:v}=e,{setAllocation:N,Allocation:_}=(0,u.K)(),[C,{loading:j}]=(0,l.L0)(),{enabled:I,open:S,modal:R}=(0,h.mX)({country:v}),B=null==C?void 0:C.find(e=>e.slug===g);if(j||!B||!B.active)return null;let U=(0,p.yo)({allocation:_,organization:B}),L=(null==_?void 0:_.length)>=p.ae,M=U?"Unselect":"Select";return(0,n.jsxs)(i.Z,{size:I?"full":"default",className:(0,r.A)(!I&&(0,i.N)("default"),"snap-start relative mt-16 pt-14","min-w-[300px]","bg-white","flex flex-col",b),children:[(0,n.jsx)("div",{className:(0,r.A)("left-0 pl-6 pr-4 absolute -top-16 flex flex-row items-end",I?"z-[1]":"z-10"),children:(0,n.jsx)(o.X,{icon:y,chipType:"circle"})}),(0,n.jsxs)("div",{className:"flex-1 flex flex-col",children:[I?(0,n.jsxs)(d.r,{href:x,styled:!1,className:"relative z-0 text-inherit no-underline after:absolute after:inset-0 after:z-0 after:content-['']",children:[(0,n.jsx)(s.X,{component:"div",size:"h4",className:"font-semibold",children:a}),t&&(0,n.jsx)(c.uT,{subtitle:!0,children:t}),(0,n.jsx)(c.uT,{subtitle:!0,className:"mt-4 text-primary",component:"div",children:f})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.X,{component:"div",size:"h4",className:"font-semibold",children:a}),t&&(0,n.jsx)(c.uT,{subtitle:!0,children:t}),(0,n.jsx)(c.uT,{subtitle:!0,className:"mt-4 text-primary",component:"div",children:f})]}),I?null:(0,n.jsx)(d.r,{href:x,newTab:!0,prefetch:!0,className:"text-xs text-right absolute top-4 right-4",children:"Read more"})]}),(0,n.jsxs)("div",{className:(0,r.A)("relative z-[1] mt-5 w-full",I?"grid grid-cols-2 gap-2":"flex gap-2"),children:[I&&!U?(0,n.jsx)(m.z,{className:"w-full px-0",level:"primary",onClick:()=>{S((0,h.qL)(B,{organizationName:a,programName:t||B.program,description:"string"==typeof f?f:"",logo:y.src,infoLink:x})),(0,A.L9)("best_charities_page_charity_toggled",{value:w,ctaLabel:w,programSlug:g,organisationName:a,action:"opened"})},size:"medium",children:"Donate"}):null,(0,n.jsx)(m.z,{level:I?"secondary":U?"cart":"primary",onClick:()=>{(0,p.S1)({allocation:_,organization:B,onAllocationChange:N});let e=I?M:w;(0,A.L9)("best_charities_page_charity_toggled",{value:e,ctaLabel:e,programSlug:g,organisationName:a,action:U?"removed":"added"})},disabled:L&&!U,size:"medium",className:(0,r.A)("w-full px-0",I&&U&&"col-span-2",U&&"group/select"),"aria-label":I?M:void 0,children:I&&U?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"group-hover/select:hidden group-focus-visible/select:hidden",children:"Selected"}),(0,n.jsx)("span",{className:"hidden group-hover/select:inline group-focus-visible/select:inline",children:"Unselect"})]}):I?M:w})]}),R]})}},70884:function(e,a,t){t.d(a,{z:function(){return h}});var n=t(52322),l=t(96577),i=t.n(l),r=t(2784),o=t(78887),d=t(89258),s=t(8186),c=t(70824),m=t(64669),u=t(15370);function h(e){let{person:a}=e,t=(0,m.G)("sm","down"),[l,h]=(0,r.useState)(!1),[p,A]=(0,r.useState)(null),[y,g]=(0,r.useState)(null),f=(0,r.useRef)();(0,r.useEffect)(()=>{let e=e=>{(null==y||!y.contains(e.target))&&(null!=p&&p.contains(e.target)||h(!1))},a=()=>h(!1);return l&&(document.addEventListener("mousedown",e),document.addEventListener("scroll",a)),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("scroll",a)}},[l,y,p]),(0,r.useEffect)(()=>()=>{f.current&&clearTimeout(f.current)},[]);let b=(null==a?void 0:a.country)&&(null==a?void 0:a.household)&&(null==a?void 0:a.livingConditions)&&(null==a?void 0:a.dailyIncome)&&(null==a?void 0:a.annualIncome)&&(null==a?void 0:a.countryCode)&&(null==a?void 0:a.body),x=(null==a?void 0:a.body)&&window.matchMedia("(hover: hover)").matches;return(0,n.jsxs)("div",{children:[b&&p&&l&&(0,n.jsx)(o.u,{className:"rounded-lg !p-0 md:max-w-[320px]",label:(0,n.jsxs)("div",{ref:g,onMouseEnter:()=>{x&&f.current&&clearTimeout(f.current)},onMouseLeave:()=>{x&&(f.current&&clearTimeout(f.current),f.current=window.setTimeout(()=>h(!1),300))},children:[(0,n.jsx)("div",{className:"rounded-t-md overflow-hidden w-full !aspect-[16/10] !max-h-[30%]",children:(0,n.jsx)(i(),{src:a.expandedImage,alt:a.country||"Family portrait",priority:!0,placeholder:"blur"})}),(0,n.jsxs)("div",{className:"p-4",children:[(0,n.jsxs)("div",{className:"grid grid-cols-3 gap-1 mb-4 text-sm font-medium",children:[(0,n.jsxs)("div",{className:"text-left col-span-2 cursor-text select-text",children:[(0,n.jsx)("p",{children:a.country}),(0,n.jsx)("p",{children:a.household}),(0,n.jsx)("p",{children:a.livingConditions})]}),(0,n.jsxs)("div",{className:"text-right col-span-1 cursor-text select-text",children:[(0,n.jsx)("p",{className:"font-semibold",children:a.dailyIncome}),(0,n.jsx)("p",{children:a.annualIncome})]})]}),(0,n.jsx)("p",{className:"text-xs",children:a.body}),(0,n.jsxs)("p",{className:"text-xs italic mt-4 cursor-text select-text",children:["Photo and text from"," ",(0,n.jsx)(d.r,{href:a.srcHref,newTab:!0,className:"cursor-pointer",children:"Dollar Street / Gapminder"})," ","(CC BY 4.0)"]})]})]}),referenceElement:p,isOpen:l,arrowHeight:20,arrowWidth:75,offset:t?-5:-10}),(0,n.jsx)("div",{className:"flex justify-center items-center",children:(0,n.jsxs)("div",{style:{width:100},className:(0,s.A)("relative pointer-events-auto",b&&"transition-transform duration-500 hover:scale-[1.1]"),onMouseEnter:e=>{x&&(f.current&&clearTimeout(f.current),A(e.currentTarget),h(!0))},onMouseLeave:()=>{x&&(f.current&&clearTimeout(f.current),f.current=window.setTimeout(()=>h(!1),300))},onClick:e=>{e.preventDefault(),e.stopPropagation(),A(e.currentTarget),h(e=>!e)},children:[(0,n.jsx)(u.Z,{shadow:!0,children:(0,n.jsx)("div",{className:"relative w-full pb-[100%] overflow-hidden",children:(0,n.jsx)(i(),{src:a.diamondImage,alt:a.country||"Family portrait",fill:!0,className:"object-cover",priority:!0,placeholder:"blur",sizes:"(max-width: 768px) 100px, 200px"})})}),a.countryCode&&(0,n.jsx)("div",{className:"absolute z-2 bg-primary rounded-full pointer-events-none flex items-start justify-center",style:{width:48,height:48,left:26,bottom:-24,clipPath:"pol
1ygon(-2% 0, 50% 52%, 102% 0)",paddingTop:t?6:8},children:(0,n.jsx)(c.W,{countryCode:a.countryCode,height:10})})]})})]})}},54691:function(e,a,t){t.d(a,{a:function(){return U}});var n=t(52322),l=t(2784),i=t(39750),r=t(69212),o=t(45183),d=t(64669),s=t(89017),c={src:"/_next/static/media/kenya-family.a1f86606.webp",height:2752,width:4128,blurDataURL:"data:image/webp;base64,UklGRlAAAABXRUJQVlA4IEQAAACwAQCdASoIAAUAAkA4JYwCdAD0bSBwAPadcKRAvNP4VB6OgcWV8MK48B4uqo2exQ/WyjBYJCM4WeWSI5sIaShkMAAAAA==",blurWidth:8,blurHeight:5},m={src:"/_next/static/media/kenya-home.72587332.webp",height:2752,width:4128,blurDataURL:"data:image/webp;base64,UklGRkYAAABXRUJQVlA4IDoAAACwAQCdASoIAAUAAkA4JQBOgB5P38AAAPZH+yokYYGX6aF3eZyc+h2r9w/rjJ3qfSWq7lZxVfjKPkAA",blurWidth:8,blurHeight:5},u={src:"/_next/static/media/myanmar-family.9ff7e817.webp",height:4016,width:4016,blurDataURL:"data:image/webp;base64,UklGRloAAABXRUJQVlA4IE4AAADQAQCdASoIAAgAAkA4JYwCdAD0tpdegAD++StGfFhN/msDtxj9LQhx9cE+O4TwRXFc9uKQA47qSfrQzi+53F/kv2YwsFsSKEg3+BLAAAA=",blurWidth:8,blurHeight:8},h={src:"/_next/static/media/myanmar-home.5d6045a0.webp",height:4016,width:4016,blurDataURL:"data:image/webp;base64,UklGRlgAAABXRUJQVlA4IEwAAADwAQCdASoIAAgAAkA4JZQC7AEfbpnyIIAA/gqNxfh1+RwU9WYN31KUH90EiJa+I7rz8dKcezi4uF5CN9kL0L9hKUVhtDKZw4CVwAAA",blurWidth:8,blurHeight:8},p={src:"/_next/static/media/south-africa-family.363d4c35.webp",height:3e3,width:4e3,blurDataURL:"data:image/webp;base64,UklGRkoAAABXRUJQVlA4ID4AAADwAQCdASoIAAYAAkA4JYwCdIExFbMpOAAAzj5bX8OkV+7wcFygSZcrW6u9lNGl8JZ8oF6wxUlWKGOUZfgAAA==",blurWidth:8,blurHeight:6},A={src:"/_next/static/media/south-africa-home.00709a8a.webp",height:3e3,width:4e3,blurDataURL:"data:image/webp;base64,UklGRkgAAABXRUJQVlA4IDwAAADwAQCdASoIAAYAAkA4JZQCdAD0oT3YvAAAzjlXlZiRgMBspOXaBLq0YObByjvobHz2NkBhTq9RPxg8gAA=",blurWidth:8,blurHeight:6},y={src:"/_next/static/media/brazil-family.44889715.webp",height:2448,width:3264,blurDataURL:"data:image/webp;base64,UklGRkYAAABXRUJQVlA4IDoAAACwAQCdASoIAAYAAkA4JQBOgB6IGLTAAP6I3EFXFeggVy1IpkO0HUnI39H7rTo5Yy5q35RzHFJZWtAA",blurWidth:8,blurHeight:6},g={src:"/_next/static/media/brazil-home.80dd218b.webp",height:2448,width:3264,blurDataURL:"data:image/webp;base64,UklGRk4AAABXRUJQVlA4IEIAAADQAQCdASoIAAYAAkA4JYwCdAEfaw1MMAD+7S1axBXUc1cc+cttnfvN7+Ov6d/SdFb+uofZ4+aPXX9QSZhQ42JyAAA=",blurWidth:8,blurHeight:6},f={src:"/_next/static/media/nepal-family.64e08cad.webp",height:3840,width:5760,blurDataURL:"data:image/webp;base64,UklGRkYAAABXRUJQVlA4IDoAAACwAQCdASoIAAUAAkA4JZQCdAD0h/pcAP7sWa/sLv1JBlcT72VphvpGCWUPfeG5VsmR6mLP97nCqQAA",blurWidth:8,blurHeight:5},b={src:"/_next/static/media/nepal-home.5bd63761.webp",height:3840,width:5760,blurDataURL:"data:image/webp;base64,UklGRk4AAABXRUJQVlA4IEIAAADQAQCdASoIAAUAAkA4JYwCdAEUmfdhAAD+rUQBOxVComXUKQQx/UxztePeKb+iLAZMCOK+o/dYFdZ9PtAkZ21sAAA=",blurWidth:8,blurHeight:5},x={src:"/_next/static/media/philippines-family.34247e3e.webp",height:2832,width:2832,blurDataURL:"data:image/webp;base64,UklGRlIAAABXRUJQVlA4IEYAAADwAQCdASoIAAgAAkA4JZwCw7EfhwTCBmAA/LQmWhPBHc5Dq/poYNNU/1uNcGPsD618aZ9Kq2vN+TUQtAIZQuJMBXEXmAAA",blurWidth:8,blurHeight:8},w={src:"/_next/static/media/philippines-home.8fc4dfab.webp",height:2832,width:2832,blurDataURL:"data:image/webp;base64,UklGRkgAAABXRUJQVlA4IDwAAADQAQCdASoIAAgAAkA4JZQCdAEPAP7+oAD+5E1IKPEiwFdgkU9dqhiZVkDg0bjPlAflVWugFBigPvYAAAA=",blurWidth:8,blurHeight:8};let v=e=>[{diamondImage:x,percentile:80,expandedImage:w,country:"Family in Philippines",household:"2 adults, 4 children",dailyIncome:"".concat((0,s.W)(28.44,e)," / day"),annualIncome:"".concat((0,s.W)(10380,e,0)," / year"),livingConditions:"3-bedroom house",body:"The family buys all their food, which takes up about 60% of their income. Safe drinking water is a 15 minute walk away, and despite owning some land, they can hardly save any money. They hope to one day buy a house in their subdivision, with their next goal being to purchase a car.",countryCode:"PH",srcHref:"https://www.gapminder.org/dollar-street/families/family-121"},{diamondImage:f,percentile:70,expandedImage:b,country:"Family in Nepal",household:"6 adults, 2 children",dailyIncome:"".concat((0,s.W)(19,e)," / day"),annualIncome:"".concat((0,s.W)(6936,e,0)," / year"),livingConditions:"4-bedroom house",body:"The multigenerational family relies on electricity that occasionally fails, a yard toilet, and an unclean water source. Their most valued possessions are their documents and jewellery, and they hope to one day buy their own land and build a house.",countryCode:"NP",srcHref:"https://www.gapminder.org/dollar-street/families/family-417"},{diamondImage:y,percentile:55,expandedImage:g,country:"Family in Brazil",household:"2 adults, 1 child",dailyIncome:"".concat((0,s.W)(11.64,e)," / day"),annualIncome:"".concat((0,s.W)(4248,e,0)," / year"),livingConditions:"1-bedroom house",body:"The family spends about 70% of their income on food and their home's roof leaks during rain. Their favourite possessions are their bed and their savings, which they hope to grow enough to buy a house.",countryCode:"BR",srcHref:"https://www.gapminder.org/dollar-street/families/family-268"},{diamondImage:c,percentile:35,expandedImage:m,country:"Family in Kenya",household:"3 adults, 6 children",dailyIncome:"".concat((0,s.W)(6.51,e)," / day"),annualIncome:"".concat((0,s.W)(2376,e,0)," / year"),livingConditions:"3-bedroom house",body:"The family appreciates their home's location near a busy area that supports their cooking business, though they are disturbed by the snakes nearby. With no electricity or running water, they fetch safe drinking water from a source 30 minutes away. Their most valued possession is their mattress, and hope to buy cups and plates to help grow their business.",countryCode:"KE",srcHref:"https://www.gapminder.org/dollar-street/families/family-408"},{diamondImage:u,percentile:20,expandedImage:h,country:"Family in Myanmar",household:"1 adults, 3 children",dailyIncome:"".concat((0,s.W)(4.64,e)," / day"),annualIncome:"".concat((0,s.W)(1692,e,0)," / year"),livingConditions:"1-bedroom house",body:"The family likes the house because of its central location but are disturbed with the noisy environment and mosquito infestation. Their favorite item is their sewing machine. The next thing they plan on buying is fabric to sew clothes, and dream of one day buying their own property.",countryCode:"MM",srcHref:"https://www.gapminder.org/dollar-street/families/family-211"},{diamondImage:p,percentile:10,expandedImage:A,country:"Family in South Africa",household:"2 adults, 4 children",dailyIncome:"".concat((0,s.W)(2.96,e)," / day"),annualIncome:"".concat((0,s.W)(1080,e,0)," / year"),livingConditions:"1-bedroom structure",body:"The family spends about 70% of their income on food and caring for their disabled child. They can only afford one simple meal a day and often rely on aid packages. They live in a fragile shelter without electricity, a bathroom, or toilet. They share buckets with neighbours for washing, cooking, and sanitation. They dream of one day living in a proper home.",countryCode:"ZA",srcHref:"https://www.gapminder.org/dollar-street/families/family-231"}],N=e=>v(e).filter(e=>55===e.percentile||35===e.percentile||10===e.percentile);var _=t(70884),C={src:"/_next/static/media/user-diamond.dda6f866.webp",height:767,width:767,blurDataURL:"data:image/webp;base64,UklGRrYAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSDEAAAABYNBIkqK+Xd3PjH4Px0ZEBMb9YxidNGFMKkULr4pU9L6KrUWdjIpRPU4vdXgw7hsHAFZQOCBeAAAA8AEAnQEqCAAIAAJAOCWwAnQA9KNNsnMAAP6tPeRqOC0tr8UDlsDoFOqW7xEEAyphMHpY/hrUDwkddb6hqgtpj//Bqw0Bmf/sIo8B15hdP//tqF2Imv/+pyE0C+agAA==",blurWidth:8,blurHeight:8},j=t(43241);let I=t(82494).map(e=>({percentile:e.percentile,income:1e3*e.daily_2021_dollars})),S=[{stop:0,color:"#E8E3E3"},{stop:.3,color:"#E8E3E3"},{stop:.8,color:"#FBC5A7"},{stop:.9,color:"#F9A87B"},{stop:1,color:"#F78C50"}],R=e=>{for(let a=1;a<S.length;a++){let t=S[a-1],n=S[a];if(e<=n.stop){let a=(e-t.stop)/(n.stop-t.stop),l=e=>{let a=parseInt(e.replace("#",""),16);return[a>>16,a>>8&255,255&a]},[i,r,o]=l(t.color),[d,s,c]=l(n.color),m=Math.round(i+(d-i)*a),u=Math.round(r+(s-r)*a),h=Math.round(o+(c-o)*a);return"rgb(".concat(m,",").concat(u,",").concat(h,")")}}return S[S.length-1].color},B=[4,4,0,0];function U(e){let{userPercentile:a,userCountryCode:t}=e,s=(0,d.G)("sm","down"),c=(0,l.useMemo)(()=>s?I.filter(e=>e.percentile%2==1):I,[s]),m=c.length,u=(0,l.useCallback)(e=>Math.min(m-1,Math.max(0,Math.round(e/100*m))),[m]),h=(0,l.useMemo)(()=>u(a),[a,u]),p=(0,l.useMemo)(()=>(s?N(t):v(t)).filter(e=>!!e.percentile&&!(0,j.hA)(e.percentile,a,16)),[a,t,s]),A=(0,l.useMemo)(()=>new Set(p.map(e=>u(e.percentile||0))),[p,u]),[y,g]=(0,l.useState)(null),[f,b]=(0,l.useState)(new Map),x=(0,l.useCallback)(e=>{let{x:a,y:t,width:l,height:i,index:r}=e,o=r/(m-1),d=r===h,s=d?"#d22942":R(o);return d&&g(e=>e&&(0,j.hA)(e.x,a)&&(0,j.hA)(e.width,l)&&(0,j.hA)(e.y,t)&&(0,j.hA)(e.height,i)?e:{x:a,width:l,y:t,height:i}),A.has(r)&&b(e=>{let n=e.get(r);if(n&&(0,j.hA)(n.x,a)&&(0,j.hA)(n.width,l)&&(0,j.hA)(n.y,t)&&(0,j.hA)(n.height,i))return e;let o=new Map(e);return o.set(r,{x:a,width:l,y:t,height:i}),o}),(0,n.jsx)("rect",{x:a,y:t,width:l,height:Math.max(i,1),fill:s})},[m,h,A]);return(0,n.jsxs)("div",{className:"relative w-full h-[420px]",children:[(0,n.jsx)(i.h,{width:"100%",height:s?"8
10%":"100%",children:(0,n.jsx)(r.v,{data:c,margin:{top:0,right:0,left:0,bottom:30},className:"[&>svg]:outline-none",children:(0,n.jsx)(o.$,{dataKey:"income",radius:B,animationDuration:5e3,shape:x})})}),(0,n.jsx)("div",{className:"w-full h-0.5 bg-[#E8E3E3] -mt-6"}),y&&(0,n.jsx)("div",{className:"absolute flex flex-col items-center",style:{left:y.x+y.width/2,top:y.y-70,transform:"translateX(-50%)"},children:(0,n.jsxs)("div",{className:"flex flex-col items-center text-[#d22942] font-['Caveat'] text-2xl",children:[(0,n.jsx)("div",{className:"pr-8 -rotate-6",children:"You"}),(0,n.jsx)("div",{className:"w-px md:w-0.5 h-12 bg-[#d22942]"})]})}),y&&(0,n.jsx)("div",{className:"absolute flex flex-col items-center",style:{left:y.x+y.width/2,top:y.y+y.height,transform:"translateX(-50%)"},children:(0,n.jsxs)("div",{className:"flex flex-col -space-y-3 items-center text-[#d22942]",children:[(0,n.jsx)("div",{className:"w-0.5 h-8 bg-[#d22942]"}),(0,n.jsx)(_.z,{person:{diamondImage:C}})]})}),c.length>0&&p.map((e,a)=>{let t=u(e.percentile||0),l=f.get(t);if(!l)return null;let i=R(t/(c.length-1));return(0,n.jsx)("div",{className:"absolute flex flex-col items-center",style:{left:l.x+l.width/2,top:l.y+l.height,transform:"translateX(-50%)"},children:(0,n.jsxs)("div",{className:"flex flex-col -space-y-3 items-center",style:{color:i},children:[(0,n.jsx)("div",{className:"w-0.5 h-8",style:{backgroundColor:i}}),(0,n.jsx)(_.z,{person:e})]})},a)})]})}},9489:function(e,a,t){t.d(a,{h:function(){return n.h},PY:function(){return s},QY:function(){return A},xA:function(){return y},ot:function(){return b},rL:function(){return x},rm:function(){return w},cb:function(){return _},PJ:function(){return U},u:function(){return D},vl:function(){return E}});var n=t(47347);t(70884);var l=t(52322),i=t(2784),r=t(40836),o=t(80124),d=t(46256);let s=e=>{var a;let{countryCode:t,onChange:n}=e,i=d.Zw.map(e=>({isoCode:e.isoCode,countryName:(null===o.Xn||void 0===o.Xn?void 0:o.Xn.includes(e.isoCode))?"The ".concat(e.countryName):e.countryName}));return(0,l.jsx)(r.m,{id:"hraic-country-selector",className:"w-full",label:"I live in:",value:{value:t,label:(null===(a=i.find(e=>{let{isoCode:a}=e;return a===t}))||void 0===a?void 0:a.countryName)||(0,d.Ml)(t)||"The United States"},onChange:e=>n(null==e?void 0:e.value),searchable:!0,options:i.map(e=>({value:e.isoCode,label:e.countryName})),hideSeparator:!0})};var c=t(96577),m=t.n(c),u=t(95989),h={src:"/_next/static/media/increment.fde84bc2.svg",height:12,width:13,blurWidth:0,blurHeight:0},p={src:"/_next/static/media/decrement.4b9a796b.svg",height:2,width:13,blurWidth:0,blurHeight:0};function A(e){let{numAdults:a,numChildren:t,onChange:n}=e,i=(e,l)=>{let i=parseInt(a,10),r=parseInt(t,10);"adult"===e?("increment"===l&&i<5&&(i+=1),"decrement"===l&&i>1&&(i-=1)):("increment"===l&&r<8&&(r+=1),"decrement"===l&&r>0&&(r-=1)),n(i.toString(),r.toString())};return(0,l.jsxs)("div",{className:"flex flex-col space-y-2 w-full",children:[(0,l.jsx)(u.Q,{htmlFor:"hraic-household-selector",children:"My household size is:"}),(0,l.jsxs)("div",{className:"flex flex-col gap-4 lg:flex-row",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("button",{type:"button","aria-label":"Decrease adults",onClick:()=>i("adult","decrement"),disabled:1>=parseInt(a,10),className:"flex items-center justify-center w-10 h-10 rounded-l-md border border-grey-light hover:border-grey-mid disabled:opacity-50 disabled:cursor-not-allowed",children:(0,l.jsx)(m(),{src:p,alt:"",width:14,height:14})}),(0,l.jsx)("button",{type:"button","aria-label":"Increase adults",onClick:()=>i("adult","increment"),disabled:parseInt(a,10)>=5,className:"flex items-center justify-center w-10 h-10 rounded-r-md border border-grey-light hover:border-grey-mid disabled:opacity-50 disabled:cursor-not-allowed",children:(0,l.jsx)(m(),{src:h,alt:"",width:14,height:14})}),(0,l.jsxs)("span",{className:"min-w-[90px] text-center",children:[a," ",1===parseInt(a,10)?"adult":"adults"]})]}),(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)("button",{type:"button","aria-label":"Decrease children",onClick:()=>i("child","decrement"),disabled:0>=parseInt(t,10),className:"flex items-center justify-center w-10 h-10 rounded-l-md border border-grey-light hover:border-grey-mid disabled:opacity-50 disabled:cursor-not-allowed",children:(0,l.jsx)(m(),{src:p,alt:"",width:14,height:14})}),(0,l.jsx)("button",{type:"button","aria-label":"Increase children",onClick:()=>i("child","increment"),disabled:parseInt(t,10)>=8,className:"flex items-center justify-center w-10 h-10 rounded-r-md border border-grey-light hover:border-grey-mid disabled:opacity-50 disabled:cursor-not-allowed",children:(0,l.jsx)(m(),{src:h,alt:"",width:14,height:14})}),(0,l.jsxs)("span",{className:"min-w-[110px] text-center",children:[t," ",1===parseInt(t,10)?"child":"children"]})]})]})]})}function y(e){let{numAdults:a,numChildren:t,onChange:n}=e;return(0,l.jsxs)("div",{className:"flex flex-row gap-6 items-stretch",children:[(0,l.jsx)(r.m,{className:"w-full md:w-24",label:"Adults",value:{label:a,value:a},id:"hrai-adults-selector",onChange:e=>n((null==e?void 0:e.value)||"1",t),searchable:!0,options:[1,2,3,4,5].map(e=>({value:e.toString(),label:e.toString()})),hideSeparator:!0}),(0,l.jsx)(r.m,{className:"w-full md:w-24",label:"Children",value:{label:t,value:t},id:"hrai-children-selector",onChange:e=>n(a,(null==e?void 0:e.value)||"0"),searchable:!0,options:[0,1,2,3,4,5,6,7,8].map(e=>({value:e.toString(),label:e.toString()})),hideSeparator:!0})]})}t(54691);var g=t(9462),f=t(18078);
1function b(e){let{countryCode:a,income:t,onChange:n}=e,i=(0,o.md)(a);return(0,l.jsx)(f.W,{id:"hraic-household-income-field",label:"My household's annual income (post-tax) is:",moreInfo:i,className:"w-full",children:(0,l.jsx)(g.h3,{id:"hrai-household-income-amount",displayType:"input",value:t,valueIsNumericString:!0,prefix:(0,o.N2)(i),onValueChange:e=>n(e.value),allowNegative:!1,decimalScale:0,thousandSeparator:",",className:"border border-solid border-grey-light focus:border-grey-mid hover:border-grey-mid outline-none focus:ring-transparent focus:ring-0 flex items-center m-0 p-4 w-full h-[56px] rounded-lg hover:cursor-text"})})}function x(e){let{countryCode:a,income:t,onChange:n,placeholder:i}=e,r=(0,o.md)(a);return(0,l.jsx)(f.W,{id:"hrai-househole-income-amount",label:"Yearly household income (Post-tax)",moreInfo:r,className:"w-full md:w-72 mr-2 text-pretty",children:(0,l.jsx)(g.h3,{id:"hrai-househole-income-amount",displayType:"input",value:t,valueIsNumericString:!0,placeholder:i,prefix:(0,o.N2)(r),onValueChange:e=>n(e.value),allowNegative:!1,decimalScale:0,thousandSeparator:",",className:"border border-solid border-grey-light focus:border-grey-mid hover:border-grey-mid outline-none focus:ring-transparent focus:ring-0 flex items-center m-0 p-4 w-full h-[56px] rounded-lg hover:cursor-text"})})}function w(e){let{countryCode:a,onChange:t,allCountries:n=!1}=e,i=n?o.Kl:d.Zw;return(0,l.jsx)(r.m,{className:"md:w-56",label:"Country",value:{label:(0,d.Ml)(a)||"United States",value:a},id:"hrai-country-selector",onChange:e=>t((null==e?void 0:e.value)||"USA"),searchable:!0,options:i.map(e=>({value:e.isoCode,label:e.countryName})),hideSeparator:!0})}var v=t(8201),N=t(52057);let _=()=>{let e=(0,v.B)();return(0,l.jsx)("div",{style:{textWrap:"pretty"},children:(0,l.jsx)(N.l,{blocks:e.methodologyDialogText||[]})})};var C=t(97657),j=t(51942),I=t(8186),S=t(52588),R={src:"/_next/static/media/multiplier-diamond.d70210ab.webp",height:1698,width:1698,blurDataURL:"data:image/webp;base64,UklGRqIAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSDEAAAABYNBIkqL+OdfPjJYnOXoRERGI+0NNoI9xQfTRjgtXdIyOz/Y/aaMdJwJtjBNCrAcCAFZQOCBKAAAA8AEAnQEqCAAIAAJAOCWwAnQBDniAkJoAAP76Z8wabvdrc0uiCdjqGMyn/7e2aAyg1YvLM5mDXv8/+hXEm97/2YJn/8Vhxb/WAAA=",blurWidth:8,blurHeight:8},B={src:"/_next/static/media/world-avg-multiplier-diamond.450ae249.webp",height:537,width:536,blurDataURL:"data:image/webp;base64,UklGRpwAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSDMAAAABYNi2jSN9svL33v9HbsF5jYgIjH7GMHKpwagUoZ5BkVJoPhRKoZte76MZY5Z2PHPWAwcAVlA4IEIAAADwAQCdASoIAAgAAkA4JbACdAEf/rGICAAA/vrwETorbfFRnTqpXQ/AyIzri6JSAAP/z1SZwD/lE3BH/+f8rjg4AAA=",blurWidth:8,blurHeight:8};function U(e){let{roundedMedianMultiple:a,worldAvgFormatted:t}=e;return(0,l.jsxs)("div",{className:"flex items-center justify-center relative self-start",children:[(0,l.jsxs)("div",{className:"flex flex-row gap-2 absolute top-6 left-1/2 -translate-x-[175%]",children:[(0,l.jsx)("div",{className:"text-red-500 ml-24 mt-10 text-2xl -rotate-6 font-['Caveat']",children:"You"}),(0,l.jsx)(S.Q,{fill:C.colorTokens.red[500],className:"min-w-[21px] min-h-[51px]"})]}),(0,l.jsx)(m(),{src:R,alt:"",priority:!0,quality:100,className:"!w-[300px]"}),(0,l.jsxs)(j.uT,{className:(0,I.A)("!text-white !font-semibold z-10 text-left absolute",a>=100?"!text-[70px]":"!text-[82px]"),children:[a,"x"]}),(0,l.jsxs)("div",{className:"flex flex-row gap-2 absolute left-1/2 -bottom-28 -translate-x-[170%] md:-bottom-28 md:-translate-x-[170%] lg:-bottom-10 lg:-translate-x-[152%]",children:[(0,l.jsxs)("div",{className:"text-red-700 ml-2 mt-10 text-2xl -rotate-6 font-['Caveat'] translate-x-[35%] translate-y-[5%] md:translate-y-[0%] md:translate-x-[20%] lg:translate-x-[10%] lg:min-w-[180px]",children:["The global median",(0,l.jsx)("br",{}),(0,l.jsxs)("span",{className:"text-xl",children:[t," ",(0,l.jsx)("span",{className:"text-sm",children:"(PPP-adjusted)"})]})]}),(0,l.jsx)(S.Q,{fill:C.colorTokens.red[700],className:"min-w-[21px] min-h-[51px]"})]}),(0,l.jsx)("div",{className:"absolute -bottom-10 left-1/2 -translate-x-[120%] w-20",children:(0,l.jsx)(m(),{src:B,alt:"",priority:!0,qual
1ity:100})})]})}var L=t(23558),M=t(86786),T=t(64669);function D(e){let{tooltipCopy:a,tooltipClassName:t,modalTitle:n,modalContent:r,iconWidth:o=20,iconHeight:d=20,iconClassName:s}=e,c=(0,T.G)("sm","down"),[m,u]=(0,i.useState)(!1);return(0,l.jsxs)("div",{className:"relative z-10",children:[(0,l.jsx)("div",{onClick:()=>u(!0),className:"cursor-pointer",children:(0,l.jsxs)(j.uT,{className:(0,I.A)("text-red-primary",t),children:[(0,l.jsx)(L.Y,{width:o,height:d,className:(0,I.A)("inline fill-red-primary cursor-pointer pb-1 mr-1",s)}),a]})}),(0,l.jsx)(M.u,{open:m,onClose:()=>u(!1),title:null!=n?n:a,position:c?"fromBottom":"center",contentClassName:"!w-[80ch] sm:!max-w-[85vw]",children:(0,l.jsx)("div",{className:"pt-4",children:r})})]})}function E(e){let{countryCode:a,income:t,onChange:n,placeholder:i}=e,r=(0,o.md)(a);return(0,l.jsx)(f.W,{id:"hrai-household-wealth-amount",label:"Household wealth",moreInfo:r,className:"w-full md:w-72",children:(0,l.jsx)(g.h3,{displayType:"input",value:t,valueIsNumericString:!0,placeholder:i,prefix:(0,o.N2)(r),onValueChange:e=>
1n(e.value),allowNegative:!1,decimalScale:2,thousandSeparator:",",className:"border border-solid border-grey-light focus:border-grey-mid hover:border-grey-mid outline-none focus:ring-transparent focus:ring-0 flex items-center m-0 p-4 w-full h-[56px] rounded-lg hover:cursor-text"})})}},52588:function(e,a,t){t.d(a,{Q:function(){return i}});var n=t(52322);t(2784);var l=t(8186);let i=e=>{let{fill:a,className:t}=e;return(0,n.jsx)("svg",{width:"21",height:"51",viewBox:"0 0 21 51",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,l.A)("-rotate-90 scale-x-[-1]",t),children:(0,n.jsx)("path",{d:"M11.37 48.993C11.3738 49.5453 10.9293 49.9961 10.377 50L1.37723 50.063C0.824957 50.0668 0.374119 49.6222 0.370255 49.07C0.36639 48.5177 0.810961 48.0669 1.36323 48.063L9.36304 48.007L9.30705 40.0072C9.30319 39.4549 9.74776 39.0041 10.3 39.0002C10.8523 38.9964 11.3031 39.441 11.307 39.9932L11.37 48.993ZM20.3771 1.92617C12.0956 5.29827 5.41514 12.6296 2.98645 21.2383C0.571791 29.7973 2.34139 39.6785 11.0722 48.288L9.66787 49.712C0.422649 40.5953 -1.55275 29.962 1.06159 20.6953C3.66189 11.4783 10.7845 3.67269 19.6229 0.0738348L20.3771 1.92617Z",fill:a})})}},89017:function(e,a,t){t.d(a,{W:function(){return r},j:function(){return i}});var n=t(80124),l=t(4626);function i(e,a){let t=l[a];return t?e*t:(console.warn("Missing PPP conversion for ".concat(a)),e)}function r(e,a,t){let l=i(e,a),r=(0,n.md)(a),o=(0,n.N2)(r)||"",d=(0,n._H)(r);return"".concat(o).concat(l.toLocaleString(void 0,{maximumFractionDigits:"number"==typeof t&&t<d&&t>=0?t:d}))}},46256:function(e,a,t){t.d(a,{Fh:function(){return N},Ml:function(){return u},Zw:function(){return m},Yt:function(){return p},o:function(){return A}});var n=t(72558),l=t(63581),i=t.n(l),r=t(80124),o=JSON.parse('[{"code":"AFG","name":"Afghanistan"},{"code":"ALB","name":"Albania"},{"code":"DZA","name":"Algeria"},{"code":"AGO","name":"Angola"},{"code":"ATG","name":"Antigua and Barbuda"},{"code":"ARM","name":"Armenia"},{"code":"AUS","name":"Australia"},{"code":"AUT","name":"Austria"},{"code":"AZE","name":"Azerbaijan"},{"code":"BHS","name":"Bahamas"},{"code":"BHR","name":"Bahrain"},{"code":"BGD","name":"Bangladesh"},{"code":"BLR","name":"Belarus"},{"code":"BEL","name":"Belgium"},{"code":"BLZ","name":"Belize"},{"code":"BEN","name":"Benin"},{"code":"BTN","name":"Bhutan"},{"code":"BOL","name":"Bolivia"},{"code":"BIH","name":"Bosnia and Herzegovina"},{"code":"BWA","name":"Botswana"},{"code":"BRA","name":"Brazil"},{"code":"BRN","name":"Brunei Darussalam"},{"code":"BGR","name":"Bulgaria"},{"code":"BFA","name":"Burkina Faso"},{"code":"BDI","name":"Burundi"},{"code":"KHM","name":"Cambodia"},{"code":"CMR","name":"Cameroon"},{"code":"CAN","name":"Canada"},{"code":"CAF","name":"Central African Republic"},{"code":"CPV","name":"Cape Verde"},{"code":"TCD","name":"Chad"},{"code":"CHL","name":"Chile"},{"code":"CHN","name":"China"},{"code":"COL","name":"Colombia"},{"code":"COM","name":"Comoros"},{"code":"COG","name":"Congo"},{"code":"CRI","name":"Costa Rica"},{"code":"CIV","name":"Cote D\'Ivoire"},{"code":"HRV","name":"Croatia"},{"code":"CYP","name":"Cyprus"},{"code":"CZE","name":"Czech Republic"},{"code":"DNK","name":"Denmark"},{"code":"DJI","name":"Djibouti"},{"code":"DMA","name":"Dominica"},{"code":"DOM","name":"Dominican Republic"},{"code":"ECU","name":"Ecuador"},{"code":"EGY","name":"Egypt"},{"code":"SLV","name":"El Salvador"},{"code":"GNQ","name":"Equatorial Guinea"},{"code":"EST","name":"Estonia"},{"code":"ETH","name":"Ethiopia"},{"code":"FJI","name":"Fiji"},{"code":"FIN","name":"Finland"},{"code":"FRA","name":"France"},{"code":"GAB","name":"Gabon"},{"code":"GMB","name":"Gambia"},{"code":"GEO","name":"Georgia"},{"code":"DEU","name":"Germany"},{"code":"GHA","name":"Ghana"},{"code":"GRC","name":"Greece"},{"code":"GRD","name":"Grenada"},{"code":"GTM","name":"Guatemala"},{"code":"GIN","name":"Guinea"},{"code":"GNB","name":"Guinea-Bissau"},{"code":"GUY","name":"Guyana"},{"code":"HTI","name":"Haiti"},{"code":"HND","name":"Honduras"},{"code":"HKG","name":"Hong Kong"},{"code":"HUN","name":"Hungary"}
1,{"code":"ISL","name":"Iceland"},{"code":"IND","name":"India"},{"code":"IDN","name":"Indonesia"},{"code":"IRQ","name":"Iraq"},{"code":"IRL","name":"Ireland"},{"code":"IRN","name":"Iran"},{"code":"ISR","name":"Israel"},{"code":"ITA","name":"Italy"},{"code":"JAM","name":"Jamaica"},{"code":"JPN","name":"Japan"},{"code":"JOR","name":"Jordan"},{"code":"KAZ","name":"Kazakhstan"},{"code":"KEN","name":"Kenya"},{"code":"KIR","name":"Kiribati"},{"code":"RUS","name":"Russian Federation"},{"code":"SMR","name":"San Marino"},{"code":"SYC","name":"Seychelles"},{"code":"KOR","name":"South Korea"},{"code":"KWT","name":"Kuwait"},{"code":"KGZ","name":"Kyrgyzstan"},{"code":"LAO","name":"Lao People\'s Democratic Republic"},{"code":"LVA","name":"Latvia"},{"code":"LBN","name":"Lebanon"},{"code":"LSO","name":"Lesotho"},{"code":"LBY","name":"Libya"},{"code":"LTU","name":"Lithuania"},{"code":"LUX","name":"Luxembourg"},{"code":"MAC","name":"Macao"},{"code":"MDG","name":"Madagascar"},{"code":"MWI","name":"Malawi"},{"code":"MYS","name":"Malaysia"},{"code":"MDV","name":"Maldives"},{"code":"MLI","name":"Mali"},{"code":"MLT","name":"Malta"},{"code":"MUS","name":"Mauritius"},{"code":"MEX","name":"Mexico"},{"code":"MDA","name":"Moldova, Republic of"},{"code":"MNG","name":"Mongolia"},{"code":"MAR","name":"Morocco"},{"code":"MOZ","name":"Mozambique"},{"code":"NAM","name":"Namibia"},{"code":"NPL","name":"Nepal"},{"code":"NLD","name":"Netherlands"},{"code":"NZL","name":"New Zealand"},{"code":"NIC","name":"Nicaragua"},{"code":"NER","name":"Niger"},{"code":"NGA","name":"Nigeria"},{"code":"MKD","name":"North Macedonia, Republic of"},{"code":"NOR","name":"Norway"},{"code":"OMN","name":"Oman"},{"code":"PAK","name":"Pakistan"},{"code":"PLW","name":"Palau"},{"code":"PAN","name":"Panama"},{"code":"PNG","name":"Papua New Guinea"},{"code":"PRY","name":"Paraguay"},{"code":"PER","name":"Peru"},{"code":"PHL","name":"Philippines"},{"code":"POL","name":"Poland"},{"code":"PRT","name":"Portugal"},{"code":"QAT","name":"Qatar"},{"code":"ROU","name":"Romania"},{"code":"RWA","name":"Rwanda"},{"code":"LCA","name":"Saint Lucia"},{"code":"VCT","name":"Saint Vincent and the Grenadines"},{"code":"WSM","name":"Samoa"},{"code":"STP","name":"Sao Tome and Principe"},{"code":"SAU","name":"Saudi Arabia"},{"code":"SEN","name":"Senegal"},{"code":"SLE","name":"Sierra Leone"},{"code":"SGP","name":"Singapore"},{"code":"SVK","name":"Slovakia"},{"code":"SVN","name":"Slovenia"},{"code":"SLB","name":"Solomon Islands"},{"code":"ZAF","name":"South Africa"},{"code":"ESP","name":"Spain"},{"code":"LKA","name":"Sri Lanka"},{"code":"SUR","name":"Suriname"},{"code":"SWE","name":"Sweden"},{"code":"CHE","name":"Switzerland"},{"code":"TZA","name":"Tanzania, United Republic of"},{"code":"THA","name":"Thailand"},{"code":"TLS","name":"Timor-Leste"},{"code":"TGO","name":"Togo"},{"code":"TON","name":"Tonga"},{"code":"TTO","name":"Trinidad and Tobago"},{"code":"TUN","name":"Tunisia"},{"code":"TUR","name":"Turkey"},{"code":"UGA","name":"Uganda"},{"code":"UKR","name":"Ukraine"},{"code":"ARE","name":"United Arab Emirates"},{"code":"GBR","name":"United Kingdom"},{"code":"USA","name":"United States of America"},{"code":"URY","name":"Uruguay"},{"code":"UZB","name":"Uzbekistan"},{"code":"VUT","name":"Vanuatu"},{"code":"VNM","name":"Viet Nam"},{"code":"ZMB","name":"Zambia"},{"code":"MNE","name":"Montenegro"},{"code":"SRB","name":"Serbia"}]'),d=t(82494),s=t(4626);let c=e=>o.some(a=>a.code===e)&&e in s,m=r.Kl.filter(e=>{let{isoCode:a}=e;return c(a)}),u=e=>{var a;return null===(a=r.Kl.find(a=>{let{isoCode:t}=a;return t===e}))||void 0===a?void 0:a.countryName},h=e=>/^\d+$/.test(e),p=e=>void 0!==e&&e>50,A=e=>{let{income:a,countryCode:t,numAdults:n,numChildren:l}=e;return[c(t),h(a)&&Number(a)>100,h(n)&&Number(n)>=1&&5>=Number(n),h(l)&&Number(l)>=0&&8>=Number(l)].every(e=>e)},y=i()(d.map(e=>[365*e.daily_2021_dollars,e.percentile])),g=e=>new n.Z(y(e)).decimalPlaces(1).toNumber(),f=365*d.find(e=>{let{percentile:a}=e;return 50===a}).daily_2021_dollars,b=e=>{let{adults:a=1,children:t=0}=e;return Number(a)+Number(t)},x=(e,a)=>{let t=s[a];return t?new n.Z(e).dividedBy(t).decimalPlaces(2).toNumber():NaN},w=(e,a)=>new n.Z(e).dividedBy(b(a)).decimalPlaces(2).toNumber(),v=e=>new n.Z(e).dividedBy(f).decimalPlaces(1).toNumber(),N=e=>{let{income:a,countryCode:t,numAdults:l,numChildren:i}=e,r=x(a,t),o=w(r,{adults:Number(l),children:Number(i)}),d=Math.min(99.9,g(o)),s=new n.Z(100).minus(d).decimalPlaces(1).toNumber(),c=v(o);return{internationalizedIncome:r,equivalizedIncome:o,incomeCentile:d,incomeTopPercentile:s,medianMultiple:c}}},9319:function(e,a,t){t.d(a,{hg:function(){return b},$g:function(){return m},hW:function(){return c},Vq:function(){return s},ap:function(){return u}});var n=t(52322);t(2784);
1var l=t(97729),i=t.n(l),r=t(39245),o=t(74605);let d=e=>{let a=JSON.stringify(e);if(void 0===a)throw TypeError("Expected a JSON-serializable object");return a.replace(/</g,"\\u003c").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},s=e=>{let{organizations:a,name:t}=e;return{"@context":"https://schema.org","@type":"ItemList",name:t,itemListElement:a.map((e,a)=>({"@type":"ListItem",item:c({organization:e}),position:a+1}))}},c=e=>{let{organization:a,...t}=e,n="https://www.givingwhatwecan.org"+a.infoLink;return{"@type":"Offer",name:"".concat(a.program," by ").concat(a.name),description:null==a?void 0:a.shortDescription,url:n,category:"Charitable Donation",itemOffered:{"@type":"Service",name:"".concat(a.program," by ").concat(a.name),description:null==a?void 0:a.shortDescription},offeredBy:{"@type":"Organization",name:a.name,logo:a.logoURL},potentialAction:{"@type":"DonateAction",recipient:{"@type":"Organization",name:a.name,logo:a.logoURL},provider:{"@type":"Organization",name:"Giving What We Can"}},...t}},m=e=>{let{title:a,excerpt:t}=e;return{"@context":"https://schema.org","@type":"Article",headline:a,name:a,description:t&&(0,r.hy)(t)}},u=e=>{let{title:a,description:t,canonicalUrl:n,locale:l,breadcrumbs:i}=e;return{"@context":"https://schema.org","@type":"WebPage",name:a,url:n,inLanguage:l,description:t,breadcrumb:i&&h(i),isPartOf:p(),publisher:A()}},h=e=>({"@type":"BreadcrumbList",itemListElement:e.map((e,a)=>({"@type":"ListItem",position:a+1,name:e.title,item:"https://www.givingwhatwecan.org"+e.path}))}),p=()=>({"@type":"WebSite","@id":o.U+"/#website",name:"Giving What We Can",url:o.U,potentialAction:{"@type":"SearchAction",target:o.U+"/search?&q={query}",query:"required"}}),A=()=>({"@type":"NGO","@id":o.U+"/#organization",name:"Giving What We Can",logo:y(),sameAs:["https://www.facebook.com/givingwhatwecan/","https://x.com/givingwhatwecan","https://bsky.app/profile/givingwhatwecan.bsky.social","https://www.linkedin.com/company/giving-what-we-can","https://www.youtube.com/@GivingWhatWeCanCommunity"],subOrganization:[g(),f()]}),y=()=>({"@type":"ImageObject","@id":o.U+"/#logo",url:o.U+"/branding/gwwc-logo.svg",width:"675px",height:"138px"}),g=()=>({"@type":"NGO",name:"Giving What We Can UK",identifier:{"@type":"PropertyValue",propertyID:"UKCharityNumber",value:"1207964"},address:{"@type":"PostalAddress",addressCountry:"GB"},taxID:"15442716",nonprofitStatus:"CharitableIncorporatedOrganization"}),f=()=>({"@type":"NGO",name:"Giving What We Can USA Inc.",address:{"@type":"PostalAddress",addressCountry:"US"},identifier:{"@type":"PropertyValue",propertyID:"EIN",value:"93-3629215"},nonprofitStatus:"Nonprofit501c3"}),b=e=>{let{data:a}=e;return(0,n.jsx)(i(),{children:(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:d(a)}})})}},40137:function(e,a,t){t.d(a,{T:function(){return p}});var n=t(52322),l=t(97729),i=t.n(l),r=t(5632),o=t(2784),d=t(8186),s=t(74605),c=t(13523),m=t(47815),u=t(9319);let h=e=>{let{path:a}=e,t=Math.min(a.indexOf("?")>0?a.indexOf("?"):a.length,a.indexOf("#")>0?a.indexOf("#"):a.length),n=a.substring(0,t);return"/"===n&&(n=""),s.U+n},p=e=>{var a,t;let{breadcrumbs:l,children:s,className:p,title:A,head:y={},jsonLdData:g,renderBreadcrumbs:f=!0}=e,b=(0,r.useRouter)();void 0===y.title&&(y.title=A),(0,c.P)({name:null!==(a=y.title)&&void 0!==a?a:"",title:null!==(t=y.title)&&void 0!==t?t:""});let x=(0,o.useMemo)(()=>y.canonicalUrl||h({path:b.asPath}),[y.canonicalUrl,b.asPath]),w="".concat(y.title?"".concat(y.title," \xb7 "):"","Giving What We Can");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(i(),{children:[(0,n.jsx)("title",{children:w}),y.description&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("meta",{name:"description",content:y.description}),(0,n.jsx)("meta",{property:"og:description",content:y.description})]}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),(0,n.jsx)("meta",{property:"og:title",content:y.title||"Giving What We Can"}),y.imageUrl&&(0,n.jsx)("meta",{property:"og:image",content:y.imageUrl}),(0,n.jsx)("link",{rel:"canonical",href:x}),(0,n.jsx)("meta",{property:"og:url",content:x}),y.noindex&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("meta",{name:"robots",content:"noindex"})})]}
1),(0,n.jsx)(u.hg,{data:g||(0,u.ap)({title:A||y.title,description:y.description,canonicalUrl:x,locale:b.locale||"en",breadcrumbs:l})}),(0,n.jsx)("div",{id:"pageTop"}),l&&f&&(0,n.jsx)(m.O,{breadcrumbs:l}),(0,n.jsxs)("div",{className:(0,d.A)("h-full",p),"data-testid":"page-content",children:[A&&(0,n.jsx)("div",{className:"relative container mx-auto",children:(0,n.jsx)("h1",{className:"pt-4 lg:pt-10 mb-4 text-5xl lg:text-6xl font-bold leading-normal",children:A})}),s]})]})}},8201:function(e,a,t){t.d(a,{B:function(){return d},o:function(){return o}});var n=t(52322),l=t(2784);let i=(0,l.createContext)({_id:""}),{Provider:r}=i;function o(e){let{children:a,sanityData:t}=e;return(0,n.jsx)(r,{value:t,children:a})}function d(){return(0,l.useContext)(i)}},47815:function(e,a,t){t.d(a,{O:function(){return s}});var n=t(52322),l=t(39097),i=t.n(l);t(2784);var r=t(8186),o=t(98935);function d(e){switch(e){case 0:default:return"text-primary";case 1:return"text-primary/80";case 2:return"text-primary/60";case 3:return"text-primary/40"}}let s=e=>{let{breadcrumbs:a,className:t}=e,l=e=>e===a.length-1;return(0,n.jsx)("nav",{"aria-label":"Breadcrumb",className:"bg-subtle",children:(0,n.jsx)("div",{className:(0,r.A)("container mx-auto py-3 text-md",t),children:(0,n.jsx)("ol",{className:"flex flex-wrap items-center",children:a.map((e,a)=>(0,n.jsxs)("li",{className:"flex items-center",children:[0!==a&&(0,n.jsx)("span",{className:[d(a),"inline-flex items-center px-2"].join(" "),"aria-hidden":"true",children:(0,n.jsx)(o.Z,{className:"w-4 h-4"})}),l(a)?(0,n.jsx)("span",{"aria-current":"page",className:d(a),children:e.title}):(0,n.jsx)(i(),{href:e.path,className:d(a),children:e.title})]},e._id))})})})}},15370:function(e,a,t){var n=t(52322);t(2784);var l=t(8186);a.Z=e=>{let{className:a,shadow:t=!0,children:i}=e;return(0,n.jsx)("div",{className:(0,l.A)(t&&"shadow-filter",a),children:(0,n.jsx)("div",{style:{clipPath:"polygon(50% 0, 100% 50%, 50% 100%, 0 50%)"},children:i})})}},35102:function(e,a,t){t.d(a,{E:function(){return n},K:function(){return l}});let n=e=>{var a;"undefined"!=typeof document&&(null===(a=document.getElementById(e))||void 0===a||a.scrollIntoView({behavior:"smooth"}))},l=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,t=arguments.length>2?arguments[2]:void 0;if("undefined"==typeof document)return;let n=document.getElementById(e);if(!n)return;let l=n.getBoundingClientRect().top+window.pageYOffset-a;if(window.scrollTo({top:l,behavior:"smooth"}),(null==t?void 0:t.updateHash)!==!1){let{pathname:a,search:t}=window.location;window.history.replaceState(null,"","".concat(a).concat(t,"#").concat(e))}}},23558:function(e,a,t){t.d(a,{Y:function(){return l}});var n=t(52322);function l(e){return(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM9 4C9 4.55228 8.55228 5 8 5C7.44772 5 7 4.55228 7 4C7 3.44772 7.44772 3 8 3C8.55228 3 9 3.44772 9 4ZM7 7C6.44772 7 6 7.44772 6 8C6 8.55229 6.44772 9 7 9V12C7 12.5523 7.44772 13 8 13H9C9.55228 13 10 12.5523 10 12C10 11.4477 9.55228 11 9 11V8C9 7.44772 8.55228 7 8 7H7Z",fill:"#222222",...e})})}t(2784)},82494:function(e){e.exports=JSON.parse('[{"daily_2021_dollars":0.87,"percentile":1},{"daily_2021_dollars":1.24,"percentile":2},{"daily_2021_dollars":1.54,"percentile":3},{"daily_2021_dollars":1.8,"percentile":4},{"daily_2021_dollars":2.04,"percentile":5},{"daily_2021_dollars":2.26,"percentile":6},{"daily_2021_dollars":2.46,"percentile":7},{"daily_2021_dollars":2.64,"percentile":8},{"daily_2021_dollars":2.82,"percentile":9},{"daily_2021_dollars":3,"percentile":10},{"daily_2021_dollars":3.16,"percentile":11},{"daily_2021_dollars":3.3,"percentile":12},{"daily_2021_dollars":3.44,"percentile":13},{"daily_2021_dollars":3.58,"percentile":14},{"daily_2021_dollars":3.72,"percentile":15},{"daily_2021_dollars":3.86,"percentile":16},{"daily_2021_dollars":3.98,"percentile":17},{"daily_2021_dollars":4.12,"percentile":18},{"daily_2021_dollars":4.24,"percentile":19},{"daily_2021_dollars":4.36,"percentile":20},{"daily_2021_dollars":4.5,"percentile":21},{"daily_2021_dollars":4.62,"percentile":22},{"daily_2021_dollars":4.74,"percentile":23},{"daily_2021_dollars":4.86,"percentile":24},{"daily_2021_dollars":4.98,"percentile":25},{"daily_2021_dollars":5.1,"percentile":26},{"daily_2021_dollars":5.25,"percentile":27},{"daily_2021_dollars":5.35,"percentile":28},{"daily_2021_dollars":5.5,"percentile":29},{"daily_2021_dollars":5.6,"percentile":30},{"daily_2021_dollars":5.75,"percentile":31},{"daily_2021_dollars":5.9,"percentile":32},{"daily_2021_dollars":6,"percentile":33},{"daily_2021_dollars":6.15,"percentile":34},{"daily_2021_dollars":6.3,"percentile":35},{"daily_2021_dollars":6.45,"percentile":36},{"daily_2021_dollars":6.6,"percentile":37},{"daily_2021_dollars":6.75,"percentile":38},{"daily_2021_dollars":6.95,"percentile":39},{"daily_2021_dollars":7.1,"percentile":40},{"daily_2021_dollars":7.25,"percentile":41},{"daily_2021_dollars":7.45,"percentile":42},{"daily_2021_dollars":7.65,"percentile":43},{"daily_2021_dollars":7.85,"percentile":44},{"daily_2021_dollars":8.05,"percentile":45},{"daily_2021_dollars":8.25,"percentile":46},{"daily_2021_dollars":8.45,"percentile":47},{"daily_2021_dollars":8.7,"percentile":48},{"daily_2021_dollars":8.95,"percentile":49},{"daily_2021_dollars":9.2,"percentile":50},{"daily_2021_dollars":9.45,"percentile":51},{"daily_2021_dollars":9.7,"percentile":52},{"daily_2021_dollars":10,"percentile":53},{"daily_2021_dollars":10.3,"percentile":54},{"daily_2021_dollars":10.6,"percentile":55},{"daily_2021_dollars":10.9,"percentile":56},{"daily_2021_dollars":11.3,"percentile":57}
1,{"daily_2021_dollars":11.6,"percentile":58},{"daily_2021_dollars":12,"percentile":59},{"daily_2021_dollars":12.4,"percentile":60},{"daily_2021_dollars":12.8,"percentile":61},{"daily_2021_dollars":13.2,"percentile":62},{"daily_2021_dollars":13.7,"percentile":63},{"daily_2021_dollars":14.2,"percentile":64},{"daily_2021_dollars":14.7,"percentile":65},{"daily_2021_dollars":15.2,"percentile":66},{"daily_2021_dollars":15.8,"percentile":67},{"daily_2021_dollars":16.4,"percentile":68},{"daily_2021_dollars":17.1,"percentile":69},{"daily_2021_dollars":17.7,"percentile":70},{"daily_2021_dollars":18.5,"percentile":71},{"daily_2021_dollars":19.3,"percentile":72},{"daily_2021_dollars":20.1,"percentile":73},{"daily_2021_dollars":21,"percentile":74},{"daily_2021_dollars":22,"percentile":75},{"daily_2021_dollars":23,"percentile":76},{"daily_2021_dollars":24.2,"percentile":77},{"daily_2021_dollars":25.4,"percentile":78},{"daily_2021_dollars":26.8,"percentile":79},{"daily_2021_dollars":28.3,"percentile":80},{"daily_2021_dollars":29.9,"percentile":81},{"daily_2021_dollars":31.7,"percentile":82},{"daily_2021_dollars":33.6,"percentile":83},{"daily_2021_dollars":35.8,"percentile":84},{"daily_2021_dollars":38.1,"percentile":85},{"daily_2021_dollars":40.7,"percentile":86},{"daily_2021_dollars":43.5,"percentile":87},{"daily_2021_dollars":46.6,"percentile":88},{"daily_2021_dollars":49.9,"percentile":89},{"daily_2021_dollars":53.7,"percentile":90},{"daily_2021_dollars":57.9,"percentile":91},{"daily_2021_dollars":62.7,"percentile":92},{"daily_2021_dollars":68,"percentile":93},{"daily_2021_dollars":74.4,"percentile":94},{"daily_2021_dollars":82.1,"percentile":95},{"daily_2021_dollars":92,"percentile":96},{"daily_2021_dollars":104.9,"percentile":97},{"daily_2021_dollars":124.8,"percentile":98},{"daily_2021_dollars":163.6,"percentile":99}]')},4626:function(e){e.exports=JSON.parse('{"AFG":16.193,"AGO":360.24,"ALB":59.701,"ARE":2.9671,"ARM":182.44,"ATG":2.5702,"AUS":1.7467,"AUT":0.9055,"AZE":0.6111,"BDI":1191.8,"BEL":0.9408,"BEN":230.69,"BFA":230.93,"BGD":38.191,"BGR":0.9732,"BHR":0.2184,"BHS":1.2812,"BIH":0.9376,"BLR":0.9464,"BLZ":1.2794,"BOL":2.685,"BRA":2.9224,"BRN":0.6284,"BTN":24.169,"BWA":6.1502,"CAF":304.88,"CAN":1.4128,"CHE":1.3211,"CHL":602.71,"CHN":4.1105,"CIV":271.22,"CMR":240.3,"COG":268.5,"COL":2029.9,"COM":292.17,"CPV":61.544,"CRI":393.82,"CYP":0.733,"CZE":19.312,"DEU":0.8598,"DJI":105.62,"DMA":1.8038,"DNK":8.1832,"DOM":27.25,"DZA":48.925,"ECU":0.5211,"EGY":8.0478,"ESP":0.7548,"EST":0.8511,"ETH":28.355,"FIN":1.0079,"FJI":1.0543,"FRA":0.8917,"GAB":328.09,"GBR":0.8754,"GEO":1.2447,"GHA":5.4652,"GIN":4148.7,"GMB":22.446,"GNB":265,"GNQ":319.14,"GRC":0.7046,"GRD":1.9709,"GTM":4.0206,"GUY":111.67,"HKG":6.7599,"HND":14.341,"HRV":0.5917,"HTI":123.4,"HUN":235.73,"IDN":5909.8,"IND":23.033,"IRL":1.1218,"IRN":131954,"IRQ":647.15,"ISL":194.28,"ISR":4.5389,"ITA":0.8077,"JAM":112.3,"JOR":0.3718,"JPN":119.01,"KAZ":204.47,"KEN":51.39,"KGZ":32.214,"KHM":1710.8,"KIR":1.0817,"KOR":1070.5,"KWT":0.2127,"LAO":6477.4,"LBN":60659,"LBY":2.0925,"LCA":1.8173,"LKA":101.28,"LSO":7.1068,"LTU":0.6525,"LUX":1.0815,"LVA":0.6738,"MAC":5.8617,"MAR":4.6747,"MDA":9.679,"MDG":1447.3,"MDV":10.945,"MEX":13.364,"MKD":27.003,"MLI":222.68,"MLT":0.7199,"MNE":0.5211,"MNG":1299.8,"MOZ":29.046,"MRT":14.274,"MUS":23.051,"MWI":580.84,"MYS":1.6777,"NAM":8.4754,"NER":248.34,"NGA":307.4,"NIC":15.762,"NLD":0.9444,"NOR":11.461,"NPL":40.849,"NZL":1.8162,"OMN":0.21414,"PAK":75.086,"PAN":0.5916,"PER":2.2564,"PHL":24.013,"PLW":1.15,"PNG":3.1445,"POL":2.5336,"PRT":0.7055,"PRY":3284.8,"QAT":3.1898,"ROU":2.5348,"RUS":33.63,"RWA":418.37,"SAU":2.1791,"SEN":265.42,"SGP":1.2063,"SLB":8.7964,"SLE":7.6602,"SLV":0.5559,"SMR":0.8553,"SRB":63.936,"SSD":289.06,"STP":15.736,"SUR":17.015,"SVK":0.7311,"SVN":0.7198,"SWE":10.943,"SYC":10.016,"TCD":275.62,"TGO":257.24,"THA":12.671,"TLS":0.5275,"TON":2.1132,"TTO":4.5213,"TUN":1.1083,"TUR":12.928,"TZA":761.12,"UGA":1534.7,"UKR":12.512,"URY":33.917,"USA":1.1576,"UZB":3904.7,"VCT":1.9789,"VNM":8289.6,"VUT":144.38,"WSM":2.1887,"ZAF":8.9161,"ZMB":8.7593}')}}]);
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.