PageSourceSearch

https://www.nsf.org/_next/static/chunks/3mzh9_t1f7xqn.js

js nsf.org collected 2026-10-01 08:16:03 UTC 18,136 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,33480,e=>{"use strict";function t(e,t){return"local"===t?e:{...e,timeZone:t}}function a(e,r,i="UTC",n={month:"short",day:"numeric",year:"numeric"}){return e?(e instanceof Date?e:new Date(e)).toLocaleDateString(r,t(n,i)):""}let r={es:"es",pt:"pt-BR",de:"de",ko:"ko-KR",ja:"ja",it:"it",bg:"bg",fr:"fr",ro:"ro",vi:"vi"},i=new Map,n=new Map,s=(e,t,a)=>{let r=e.get(t);return r||(r=new Intl.DateTimeFormat(t,a),e.set(t,r)),r},l=e=>String(e).padStart(2,"0");function o(e,t,r,i="UTC"){let n=a(e,r,i);if(!n||!t)return n;let s=new Date(e),l=new Date(t),c=e=>{let t=new Intl.DateTimeFormat("en",{year:"numeric",month:"numeric",day:"numeric",timeZone:i}).formatToParts(e);return{year:parseInt(t.find(e=>"year"===e.type)?.value??"0"),month:parseInt(t.find(e=>"month"===e.type)?.value??"0"),day:parseInt(t.find(e=>"day"===e.type)?.value??"0")}},u=c(s),h=c(l);if(u.year===h.year&&u.month===h.month&&u.day===h.day)return n;if(u.year===h.year&&u.month===h.month){let e=s.toLocaleDateString(r,{month:"short",day:"numeric",timeZone:i});return`${e} – ${h.day}, ${h.year}`}let d=a(t,r,i);return`${n} – ${d}`}e.s(["extractCmsTimezone",0,function(e){if(!e)return;if(e.endsWith("Z"))return"UTC";let t=e.match(/([+-])(\d{2}):(\d{2})$/);if(!t)return;let[,a,r,i]=t;if("00"!==i)return;let n=parseInt(r);return 0===n?"UTC":`Etc/GMT${"+"===a?"-":"+"}${n}`},"formatDate",0,a,"formatDateRange",0,o,"formatLocalizedDate",0,function(e,t,a){let o;if(!e)return"";let c=e instanceof Date?e:new Date(e);if(Number.isNaN(c.getTime()))return"string"==typeof e?e:"";if(o="zh"===t.code?"CN_zh"===t.handle?"zh-CN":"en-US":r[t.code]??"en-US",a){let e,t,r,i;return e=c.getFullYear(),t=c.getMonth()+1,r=c.getDate(),i={yyyy:String(e).padStart(4,"0"),y:String(e),MMMM:s(n,o,{month:"long"}).format(c),MM:l(t),M:String(t),dd:l(r),d:String(r)},a.replace(/yyyy|MMMM|MM|dd|y|M|d/g,e=>i[e])}return s(i,o,{dateStyle:"long"}).format(c)},"formatTime",0,function(e,a,r="UTC",i={hour:"numeric",minute:"2-digit",hour12:!0}){return e?(e instanceof Date?e:new Date(e)).toLocaleTimeString(a,t(i,r)):""},"formatTimeRange",0,function(e,t,a,r){if(!e)return"";let i=new Date(e);if(0===i.getUTCHours()&&0===i.getUTCMinutes())return"";let n=r?{timeZone:r}:{},s={hour:"numeric",minute:"2-digit",hour12:!0,...n};if(!t)return i.toLocaleTimeString(a,{...s,timeZoneName:"short"});let l=new Date(t),c=r??"UTC",u=e=>new Intl.DateTimeFormat("en",{year:"numeric",month:"numeric",day:"numeric",timeZone:c}).format(e),h=u(i)!==u(l),d=new Intl.DateTimeFormat(a,{timeZoneName:"short",...n}).formatToParts(l).find(e=>"timeZoneName"===e.type)?.value??"",m=i.toLocaleTimeString(a,s),f=l.toLocaleTimeString(a,s),g=`${m} – ${f}${d?` (${d})`:""}`;if(h){let i=o(e,t,a,r);return`${i}, ${g}`}return g},"intlLocaleTag",0,function(e){return`${e.code}-${e.region}`}])},27138,e=>{"use strict";var t=e.i(30332),a=e.i(85891),r=e.i(45142),i=e.i(33480),n=e.i(17348),s=e.i(76166),l=e.i(77621),o=e.i(90374),c=e.i(7578),u=e.i(68235);e.s(["CardNews",0,({card:e,entryDate:h,isListItem:d=!0,widths:m})=>{let f=(0,r.useParams)(),g=(0,a.useRouter)(),{locale:p,t:x}=(0,n.inferLocale)(f.country,f.lang),w=e.primaryImage[0],y=(0,i.formatLocalizedDate)(h??e.postDate,p),v=()=>{e.url&&g.push(e.url)},b=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"relative h-30 lg:h-[150px]",children:w?(0,t.jsx)("div",{className:"absolute size-full",children:(0,t.jsx)(o.Asset,{asset:w,sizes:"(min-width: 1280px) 25vw, (min-width: 1024px) 33vw, (min-width: 768px) 50vw, 100vw",widths:m})}):(0,t.jsx)("div",{className:"h-[170px] w-full flex-none sm:order-2 md:max-w-64",children:(0,t.jsx)(u.PlaceholderImage,{alt:"",fill:!0,className:"size-full object-cover"})})}),(0,t.jsxs)("div",{className:"flex grow flex-col gap-2 p-2",children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[e.title&&(0,t.jsx)("h3",{className:"h6 group-hover:text-blue-bright",children:e.title}),(0,t.jsx)("span",{className:"p3",children:y})]}),e.intro?(0,t.jsx)("div",{className:"p2",children:(0,s.stripTags)(e.intro)}):(0,t.jsx)("div",{className:"p2",children:function(e=[]){let t=e.find(e=>e?.typeHandle==="text");return(0,s.stripTags)(t?.text||"")??""}(e.bodyContent)}),(0,t.jsxs)("div",{className:"flex grow justify-between",children:[(0,t.jsx)(c.SmartLink,{className:"inline-block self-end text-blue-bright focus-ring",href:e.url,"aria-label":e.title?`${x("Read the Story")}
1: ${e.title}`:x("Read the Story"),children:x("Read the Story")}),(0,t.jsx)(l.default,{name:"NSFLogo",className:"inline-block size-5 self-end text-blue-bright","aria-hidden":"true"})]})]})]});return d?(0,t.jsx)("li",{className:"col-span-full h-full md:col-span-6 lg:col-span-4 xl:col-span-3",children:(0,t.jsx)("div",{role:"group","aria-label":x("article"),className:"h-full",children:(0,t.jsx)("div",{className:"p2 group flex h-full cursor-pointer flex-col border border-gray-cool/30 text-blue transition-colors duration-500 ease-in-out hover:bg-gray-cool/30",onClick:v,children:b})})}):(0,t.jsx)("div",{role:"group","aria-label":x("item"),className:"col-span-full h-full md:col-span-6 lg:col-span-4 xl:col-span-3",children:(0,t.jsx)("div",{className:"p2 group flex h-full cursor-pointer flex-col border border-gray-cool/30 text-blue transition-colors duration-500 ease-in-out hover:bg-gray-cool/30",onClick:v,children:b})})}])},2527,e=>{"use strict";var t=e.i(30332),a=e.i(34627),r=e.i(45142),i=e.i(47472),n=e.i(77621),s=e.i(7578);e.s(["AdminWidgetButton",0,({entry:e,backendUrl:l,siteHandle:o})=>{let c=`${l}/admin/entries/entry/${e.id}?site=${o}`,u=(0,a.default)(["relative flex size-9 items-center justify-center rounded-full bg-orange text-white shadow","focus-ring hover:scale-105 aria-expanded:bg-blue"]),h=(0,r.useSearchParams)(),[d,m]=(0,i.useState)(!1);return(0,i.useLayoutEffect)(()=>{m(h.has("dev"))},[h]),!!d&&(0,t.jsx)("ul",{className:"fixed right-0 bottom-47 z-20 flex flex-col gap-2 p-2",children:(0,t.jsx)("li",{children:(0,t.jsxs)(s.SmartLink,{href:c,className:u,newWindow:!0,children:[(0,t.jsx)("span",{className:"sr-only",children:"Open In CMS"}),(0,t.jsx)(n.default,{name:"Info",className:"size-5"})]})})})}])},3963,e=>{"use strict";var t=e.i(30332),a=e.i(47472),r=e.i(87255),i=e.i(84463),n=e.i(54042);let s=({open:e,title:a,description:s,confirmText:l,cancelText:o="Cancel",onCancel:c,onConfirm:u})=>(0,t.jsx)(n.Modal,{open:e,onClose:c,title:a,children:(0,t.jsxs)("div",{className:"w-full max-w-3xl bg-white shadow",children:[a&&(0,t.jsx)("header",{className:"bg-blue px-4 py-3 text-white md:px-6",children:(0,t.jsx)("h2",{className:"h5",children:a})}),s&&(0,t.jsx)("div",{className:"p1 p-4 md:p-6",children:(0,t.jsx)(i.RichText,{html:s})}),(0,t.jsxs)("footer",{className:"flex flex-wrap items-center justify-center gap-2 p-4 md:p-6",children:[l&&(0,t.jsx)(r.Button,{label:l,colorTheme:"primary",onClick:u,className:"text-lg"}),o&&(0,t.jsx)(r.Button,{label:o,colorTheme:"secondary",onClick:c,className:"text-lg"})]})]})});e.s(["default",0,function({popup:e}){let[r,i]=(0,a.useState)(""),[n,l]=(0,a.useState)(""),[o,c]=(0,a.useState)(!0);return(0,a.useEffect)(()=>{let t=btoa(JSON.stringify(e)),a=`popupShown.${e.siteId}.${e.id}`;i(t),l(a),c(a.length>0&&window.localStorage.getItem(a)===t)},[e]),(0,t.jsx)(s,{open:!o,title:e.popupHeader,description:e.popupContent,confirmText:e.popupCtaText,cancelText:"",onConfirm:()=>void(c(!0),window.localStorage.setItem(n,r)),onCancel:()=>{}})}],3963)},16290,e=>{"use strict";var t=e.i(30332),a=e.i(34627),r=e.i(5968),i=e.i(90312),n=e.i(44434),s=e.i(99287),l=e.i(47472),o=e.i(29628),c=e.i(37889),u=e.i(3042),h=e.i(50223),d=e.i(28897),m=e.i(82013),f=(0,h.createDocumentationMessageGenerator)({name:"hierarchical-menu",connector:!0}),g=["name:asc"],p=function(e){var t=arguments.length>
11&&void 0!==arguments[1]?arguments[1]:m.noop;return(0,d.checkRendering)(e,f()),function(a){var r,l,h=a||{},d=h.attributes,m=h.separator,p=void 0===m?" > ":m,x=h.rootPath,w=void 0===x?null:x,y=h.showParentLevel,v=void 0===y||y,b=h.limit,M=void 0===b?10:b,N=h.showMore,S=void 0!==N&&N,T=h.showMoreLimit,j=void 0===T?20:T,L=h.sortBy,_=void 0===L?g:L,I=h.transformItems,k=void 0===I?function(e){return e}:I;if(!d||!Array.isArray(d)||0===d.length)throw Error(f("The `attributes` option expects an array of strings."));if(!0===S&&j<=M)throw Error(f("The `showMoreLimit` option must be greater than `limit`."));var R=(0,c._)(d,1)[0],C=function(){};function F(){C()}var H=!1;return{$$type:"ais.hierarchicalMenu",init:function(t){var a=t.instantSearchInstance;e((0,n._)((0,i._)({},this.getWidgetRenderState(t)),{instantSearchInstance:a}),!0)},render:function(t){var a,r=t.instantSearchInstance;a=this,C=function(){H=!H,a.render(t)},e((0,n._)((0,i._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(e){var a=e.state;return t(),a.removeHierarchicalFacet(R).setQueryParameter("maxValuesPerFacet",void 0)},getRenderState:function(e,t){return(0,n._)((0,i._)({},e),{hierarchicalMenu:(0,n._)((0,i._)({},e.hierarchicalMenu),(0,o._)({},R,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t=this,o=e.results,c=e.state,h=e.createURL,m=e.instantSearchInstance,f=e.helper,x=[],w=!1;if(r||(r=(0,u.createSendEventForFacet)({instantSearchInstance:m,helper:f,attribute:function(e){return d[e.split(p).length-1]},widgetType:this.$$type})),l||(l=function(e){r("click:internal",e),f.toggleFacetRefinement(R,e).search()}),o){var y=o.getFacetValues(R,{sortBy:_,facetOrdering:_===g}),v=y&&!Array.isArray(y)&&y.data?y.data:[],b=function e(t,a){var r=H?j:M;return!(a>r?t.length<=r:t.length<r)||t.slice(0,M).some(function(t){return Array.isArray(t.data)&&t.data.length>0&&e(t.data,a)})}(v,c.maxValuesPerFacet||0);w=S&&(H||b),x=k(function e(t){return t.slice(0,H?j:M).map(function(t){var a=t.name,r=t.escapedValue,l=t.data;t.path;var o=(0,s._)(t,["name","escapedValue","data","path"]),c=(0,n._)((0,i._)({},o),{value:r,label:a,data:null});return Array.isArray(l)&&(c.data=e(l)),c})}(v),{results:o})}return{items:x,refine:l,canRefine:x.length>0,createURL:function(e){return h(function(a){return t.getWidgetUiState(a,{searchParameters:c.resetPage().toggleFacetRefinement(R,e),helper:f})})},sendEvent:r,widgetParams:a,isShowingMore:H,toggleShowMore:F,canToggleShowMore:w}},getWidgetUiState:function(e,t){var a,r,s=t.searchParameters.getHierarchicalFacetBreadcrumb(R);return a=(0,n._)((0,i._)({},e),{hierarchicalMenu:(0,n._)((0,i._)({},e.hierarchicalMenu),(0,o._)({},R,s))}),r=R,a.hierarchicalMenu&&(a.hierarchicalMenu[r]&&0!==a.hierarchicalMenu[r].length||delete a.hierarchicalMenu[r],0===Object.keys(a.hierarchicalMenu).length&&delete a.hierarchicalMenu),a},getWidgetSearchParameters:function(e,t){var a=t.uiState,r=a.hierarchicalMenu&&a.hierarchicalMenu[R];if(e.isConjunctiveFacet(R)||e.isDisjunctiveFacet(R))return e;e.isHierarchicalFacet(R)&&e.getHierarchicalFacetByName(R);var s=e.removeHierarchicalFacet(R).addHierarchicalFacet({name:R,attributes:d,separator:p,rootPath:w,showParentLevel:v}),l=Math.max(s.maxValuesPerFacet||0,S?j:M),c=s.setQueryParameter("maxValuesPerFacet",l);return r?c.addHierarchicalFacetRefinement(R,r.join(p)):c.setQueryParameters({hierarchicalFacetsRefinements:(0,n._)((0,i._)({},c.hierarchicalFacetsRefinements),(0,o._)({},R,[]))})}}}},x=e.i(33237);function w(e,t){return(0,x.useConnector)(p,e,t)}var y=e.i(32768),v=e.i(85387);function b(e){var t=e.className,a=e.classNames,r=void 0===a?{}:a,i=e.items,n=e.createURL,s=e.onNavigate;return 0===i.length?null:l.default.createElement("ul",{className:(0,y.cx)("ais-HierarchicalMenu-list",r.list,t)},i.map(function(e){return l.default.createElement("li",{key:e.value,className:(0,y.cx)("ais-HierarchicalMenu-item",r.item,e.isRefined&&(0,y.cx)("ais-HierarchicalMenu-item--selected",r.selectedItem),e.data&&e.data.length>0&&(0,y.cx)("ais-HierarchicalMenu-item--parent",r.parentItem))},l.default.createElement("a",{className:(0,y.cx)("ais-HierarchicalMenu-link",r.link,e.isRefined&&(0,y.cx)("ais-HierarchicalMenu-link--selected",r.selectedItemLink)),href:n(e.value),onClick:function(t){1===t.button||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||(t.preventDefault(),s(e.value))}},l.default.createElement("span",{className:(0,y.cx)("ais-HierarchicalMenu-label",r.label)},e.label),l.default.createElement("span",{className:(0,y.cx)("ais-HierarchicalMenu-count",r.count)},e.count)),e.data&&l.default.createElement(b,{className:(0,y.cx)("ais-HierarchicalMenu-list--child",r.childList),classNames:r,items:e.data,onNavigate:s,createURL:n}))}))}function M(e){var t=e.classNames,a=void 0===t?{}:t,r=e.items,o=e.hasItems,c=e.onNavigate,u=e.createURL,h=e.showMore,d=e.canToggleShowMore,m=e.onToggleShowMore,f
1=e.isShowingMore,g=e.translations,p=(0,s._)(e,["classNames","items","hasItems","onNavigate","createURL","showMore","canToggleShowMore","onToggleShowMore","isShowingMore","translations"]);return l.default.createElement("div",(0,n._)((0,i._)({},p),{className:(0,y.cx)("ais-HierarchicalMenu",a.root,!o&&(0,y.cx)("ais-HierarchicalMenu--noRefinement",a.noRefinementRoot),p.className)}),l.default.createElement(b,{classNames:a,items:r,onNavigate:c,createURL:u}),h&&l.default.createElement(v.ShowMoreButton,{className:(0,y.cx)("ais-HierarchicalMenu-showMore",a.showMore,!d&&(0,y.cx)("ais-HierarchicalMenu-showMore--disabled",a.disabledShowMore)),disabled:!d,onClick:m,isShowingMore:f,translations:g}))}function N(e){var t=e.attributes,a=e.limit,r=e.rootPath,o=e.separator,c=e.showMore,u=e.showMoreLimit,h=e.showParentLevel,d=e.sortBy,m=e.transformItems,f=e.translations,g=(0,s._)(e,["attributes","limit","rootPath","separator","showMore","showMoreLimit","showParentLevel","sortBy","transformItems","translations"]),p=w({attributes:t,limit:a,rootPath:r,separator:o,showMore:c,showMoreLimit:u,showParentLevel:h,sortBy:d,transformItems:m},{$$widgetType:"ais.hierarchicalMenu"}),x=p.items,y=p.canRefine,v=p.canToggleShowMore,b=p.createURL,N=p.isShowingMore,S={items:x,hasItems:y,createURL:b,onNavigate:p.refine,canToggleShowMore:v,onToggleShowMore:p.toggleShowMore,isShowingMore:N,translations:(0,i._)({showMoreButtonText:function(e){return e.isShowingMore?"Show less":"Show more"}},f)};return l.default.createElement(M,(0,n._)((0,i._)({},g,S),{showMore:c}))}var S=e.i(31647),T=e.i(73919);e.s(["default",0,function({heading:e,...i}){let{canRefine:n}=w(i),{query:s,nbHits:l}=(0,r.useStats)(),o=(0,T.useViewAsType)();return n&&(0,t.jsxs)("fieldset",{children:[(0,t.jsx)("legend",{className:"l1 mb-4",children:e}),(0,t.jsx)(N,{limit:50,classNames:{list:"space-y-1",link:(0,a.default)(["flex cursor-pointer items-start gap-2","before:mt-1 before:size-4 before:flex-none before:rounded-full before:border before:border-blue-bright","hover:before:bg-blue-bright/10","focus:outline-hidden focus:before:ring-2 focus:before:ring-inset"]).toString(),label:"text-sm grow",count:"hidden",selectedItemLink:"font-bold before:bg-blue-bright before:shadow-[inset_0_0_0_2px_white] hover:before:bg-blue-bright!",childList:"pt-1 pl-4 ml-2 mb-2 border-l border-gray-cool text-sm flex-col gap-2 flex. md:gap-1"},onClick:function(t){let a=t.target,r=a.closest(".ais-HierarchicalMenu-item");setTimeout(()=>{let t=r?.classList?.contains("ais-HierarchicalMenu-item--selected");(0,S.sendAnalyticEvent)({event:"filter_interaction",search_term:s||null,element_title:e,click_text:a.textContent,action:t?"select":"deselect",results_count:l,...o&&{view_as_type:o}})},100)},...i})]})}],16290)},84011,e=>{"use strict";e.s(["ALGOLIA_THUMBNAIL_WIDTH",0,670,"algoliaThumbnailAsset",0,function(e){return{url:e,width:670,height:450}}])},46866,e=>{"use strict";var t=e.i(30332),a=e.i(10926),r=e.i(17348),i=e.i(27138),n=e.i(7710),s=e.i(84011),l=e.i(16290),o=e.i(43379),c=e.i(65040),u=e.i(7418),h=e.i(61254);e.s(["default",0,function({params:e}){let{t:d,locale:m,siteHandle:f}=(0,r.inferLocale)(e.country,e.lang);return(0,t.jsx)(n.default,{indexKey:"news",skeletonVariant:"card",skeletonListClassName:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",siteHandle:f,locale:m,searchConfig:{filters:"NOT hideInFeed:true",analyticsTags:["page:news",`locale:${e.country}-${e.lang}`]},hits:(0,t.jsx)(a.Hits,{hitComponent:({hit:e,sendEvent:a})=>{var r,n;let l;return r=e,n=a,l=[],r.thumb&&l.push((0,s.algoliaThumbnailAsset)(r.thumb)),(0,t.jsx)("div",{className:"h-full",onClick:e=>{e.target.closest("a")&&n("click",r,"News Article Clicked")},children:(0,t.jsx)(i.CardNews,{card:{title:r.title,url:r.url,primaryImage:l,postDate:r.displayDate,intro:r.intro},widths:[s.ALGOLIA_THUMBNAIL_WIDTH,480,320],isListItem:!1})})},classNames:{list:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",item:"flex"}}),search:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"sr-only",children:"The following text field filters the news results that follow as you type. You can search by news title, content, or topic. Use the news type and sector filters below to narrow results by specific news categories or areas of work."}),(0,t.jsx)(c.default,{locale:m}),(0,t.jsx)(u.default,{locale:m})]}),filters:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"sr-only",children:"The following filters allow you to narrow news results by news type and sector. Use the news type filter to select specific categories, and the hierarchical sector filter to drill down into specific areas of work. Results will update automatically as you make selections."}),(0,t.jsx)(o.default,{heading:d("News Type"),attribute:"newsType"}),(0,t.jsx)(l.default,{heading:d("Sectors"),attributes:["areaOfWork.lvl1","areaOfWork.lvl2","areaOfWork.lvl3","areaOfWork.lvl4","areaOfWork.lvl5"]})]}),stateToRoute:e=>{let t=e.hierarchicalMenu?.["areaOfWork.lvl1"];return{query:e.query,topics:e.hierarchicalMenu?.["publicationTopic.lvl1"],area:t?t.join(" > "):void 0,newsType:e.refinementList?.newsType}},routeToState:e=>{let t={query:e.query,hierarchicalMenu:{},refinementList:{}};return e.topics&&(t.hierarchicalMenu["publicationTopic.lvl1"]=e.topics),e.area&&(t.hierarchicalMenu["areaOfWork.lvl1"]=(e.area??"").split(" > ")),e.newsType&&(t.refinementList.newsType=e.newsType),t},onTermChange:h.trackFilteredListSearch})}])}]);

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.