PageSourceSearch

https://youngscientistlab.com/component---src-pages-news-and-events-ysc-blog-js-a7ded37b2a36a55a53bb.js

js youngscientistlab.com collected 2026-10-02 06:52:54 UTC 39,354 bytes, 2 lines download raw bytes

vendor: 13,614 bytes, line 1
1(self.webpackChunkcep_gatsby_starter_code=self.webpackChunkcep_gatsby_starter_code||[]).push([[3495],{7757:function(e,t,n){e.exports=n(5666)},6633:function(e,t,n){e.exports=n(2465)},3344:function(e,t,n){"use strict";var r=n(1599),a=n(7202),o=n(116),i=n(8710),s=n(3656),c=n(2306),l=n(778),u=n(1191);e.exports=function(e){return new Promise((function(t,n){var m=e.data,d=e.headers;r.isFormData(m)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(h+":"+p)}var g=s(e.baseURL,e.url);if(f.open(e.method.toUpperCase(),i(g,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in f?c(f.getAllResponseHeaders()):null,o={data:e.responseType&&"text"!==e.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:r,config:e,request:f};a(t,n,o),f=null}},f.onabort=function(){f&&(n(u("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){n(u("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var v=(e.withCredentials||l(g))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;v&&(d[e.xsrfHeaderName]=v)}if("setRequestHeader"in f&&r.forEach(d,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete d[t]:f.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),e.responseType)try{f.responseType=e.responseType}catch(y){if("json"!==e.responseType)throw y}"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),n(e),f=null)})),m||(m=null),f.send(m)}))}},2465:function(e,t,n){"use strict";var r=n(1599),a=n(6013),o=n(2234),i=n(5469);function s(e){var t=new o(e),n=a(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var c=s(n(8943));c.Axios=o,c.create=function(e){return s(i(c.defaults,e))},c.Cancel=n(6114),c.CancelToken=n(4396),c.isCancel=n(7458),c.all=function(e){return Promise.all(e)},c.spread=n(2744),c.isAxiosError=n(6683),e.exports=c,e.exports.default=c},6114:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4396:function(e,t,n){"use strict";var r=n(6114);function a(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}a.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},a.source=function(){var e;return{token:new a((function(t){e=t})),cancel:e}},e.exports=a},7458:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},2234:function(e,t,n){"use strict";var r=n(1599),a=n(8710),o=n(5950),i=n(4126),s=n(5469);function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[i,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},c.prototype.getUri=function(e){return e=s(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=c},5950:function(e,t,n){"use strict";var r=n(1599);function a(){this.handlers=[]}a.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=a},3656:function(e,t,n){"use strict";var r=n(789),a=n(7020);e.exports=function(e,t){return e&&!r(t)?a(e,t):t}},1191:function(e,t,n){"use strict";var r=n(7822);e.exports=function(e,t,n,a,o){var i=new Error(e);return r(i,t,n,a,o)}},4126:function(e,t,n){"use strict";var r=n(1599),a=n(7989),o=n(7458),i=n(8943);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=a(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||i.adapter)(e).then((function(t){return s(e),t.data=a(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=a(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},7822:function(e){"use strict";e.exports=function(e,t,n,r,a){return e.config=t,n&&(e.code=n),e.request=r,e.response=a,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},5469:function(e,t,n){"use strict";var r=n(1599);e.exports=function(e,t){t=t||{};var n={},a=["url","method","data"],o=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function l(a){r.isUndefined(t[a])?r.isUndefined(e[a])||(n[a]=c(void 0,e[a])):n[a]=c(e[a],t[a])}r.forEach(a,(function(e){r.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),r.forEach(o,l),r.forEach(i,(function(a){r.isUndefined(t[a])?r.isUndefined(e[a])||(n[a]=c(void 0,e[a])):n[a]=c(void 0,t[a])})),r.forEach(s,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var u=a.concat(o).concat(i).concat(s),m=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(m,l),n}},7202:function(e,t,n){"use strict";var r=n(1191);e.exports=function(e,t,n){var a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},7989:function(e,t,n){"use strict";var r=n(1599);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},8943:function(e,t,n){"use strict";var r=n(1599),a=n(4188),o={"Content-Type":"application/x-www-form-urlencoded"};function i(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,c={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(s=n(3344)),s),transformRequest:[function(e,t){return a(t,"Accept"),a(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(i(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(i(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(o)})),e.exports=c},6013:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},8710:function(e,t,n){"use strict";var r=n(1599);function a(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var i=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),i.push(a(t)+"="+a(e))})))})),o=i.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7020:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},116:function(e,t,n){"use strict";var r=n(1599);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,a,o,i){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(a)&&s.push("path="+a),r.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},789:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},6683:function(e){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},778:function(e,t,n){"use strict";var r=n(1599);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function a(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=a(window.location.href),function(t){var n=r.isString(t)?a(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},4188:function(e,t,n){"use strict";var r=n(1599);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},2306:function(e,t,n){"use strict";var r=n(1599),a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,i={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(i[t]&&a.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},2744:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1599:function(e,t,n){"use strict";var r=n(6013),a=Object.prototype.toString;function o(e){return"[object Array]"===a.call(e)}function i(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===a.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===a.call(e)},isBuffer:function(e){return null!==e&&!i(e)&&null!==e.constructor&&!i(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:c,isUndefined:i,isDate:function(e){return"[object Date]"===a.call(e)},isFile:function(e){return"[object File]"===a.call(e)},isBlob:function(e){return"[object Blob]"===a.call(e)},isFunction:l,isStream:function(e){return s(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}
1,forEach:u,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,a=arguments.length;r<a;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,(function(t,a){e[a]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},679:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return O}});var r=n(18),a=n(5444),o=n(3964),i=n.n(o),s=n(2203),c=n(7294),l=n(2432),u=n(5155),m=n(895),d=n(6971),f=n(8884),h=n(6647),p=n(2849),g=n(5900),v=n.n(g),y=n(8538);function E(e,t,n,r,a,o,i){try{var s=e[o](i),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,a)}var w=n(7757),b=n.n(w),_=n(6633),N=n.n(_),x=function(e,t){void 0===t&&(t={});var n=(0,c.useState)(null),r=n[0],a=n[1],o=(0,c.useState)(!1),i=o[0],s=o[1],l=(0,c.useState)(null),u=l[0],m=l[1];return(0,c.useEffect)((function(){console.log("Fetching YouTube data:",e,t);var n=e.includes("videos")?"id":"playlistId";if(!t[n]||Array.isArray(t[n])&&0===t[n].length)return console.log("YouTube API missing essential parameter:",n),m("Required parameter is missing or empty"),void a([]);(function(){var n,r=(n=b().mark((function n(){var r;return b().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s(!0),n.prev=1,n.next=4,N().get("https://youtube.googleapis.com/youtube/v3/"+e,{params:Object.assign({key:"AIzaSyBrzR50slCfFuV-gOcv_2CW06LzGxR7qO8"},t)});case 4:r=n.sent,a(r.data),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(1),m(n.t0);case 11:return n.prev=11,s(!1),n.finish(11);case 14:case"end":return n.stop()}}),n,null,[[1,8,11,14]])}
1)),function(){var e=this,t=arguments;return new Promise((function(r,a){var o=n.apply(e,t);function i(e){E(o,r,a,i,s,"next",e)}function s(e){E(o,r,a,i,s,"throw",e)}i(void 0)}))});return function(){return r.apply(this,arguments)}})()()}),[JSON.stringify(t)]),{data:r,isLoading:i,error:u}};var S=function(e,t,n){void 0===t&&(t="contentDetails, snippet"),void 0===n&&(n=50);var r=x("playlistItems",{part:t,playlistId:e,maxResults:n}),a=r.data,o=r.isLoading,i=r.error;return{playlistDetails:null==a?void 0:a.items,isLoading:o,error:i}};var k=function(e,t){void 0===t&&(t="contentDetails,snippet,statistics");var n=x("videos",{part:t,id:e.join(",")}),r=n.data,a=n.isLoading,o=n.error;return{videoDetails:null==r?void 0:r.items,isLoading:a,error:o}},C=n(6358),L=function(e){var t=e.settings,n=e.playlistId,r=(0,c.useRef)(null);function a(e){var t=e.className,n=e.style,r=e.onClick;return c.createElement("div",{className:v()(t,"youtube-carousel__prev-arrow"),style:Object.assign({},n),onClick:r},c.createElement(m.Z,{name:"caratleft"}))}function o(e){var t=e.className,n=e.style,r=e.onClick;return c.createElement("div",{className:v()(t,"youtube-carousel__next-arrow"),style:Object.assign({},n),onClick:r},c.createElement(m.Z,{name:"caratright"}))}var i={accessibility:!0,dots:!1,infinite:!0,speed:750,slidesToShow:3,slidesToScroll:3,autoplay:!1,nextArrow:c.createElement(o,null),prevArrow:c.createElement(a,null),responsive:[{breakpoint:1023,settings:{slidesToShow:2,slidesToScroll:2,infinite:!0,dots:!1}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,infinite:!0,dots:!1}}]},s=Object.assign({},i,t),l=S(n).playlistDetails,u=(null==l?void 0:l.map((function(e){var t;return null===(t=e.contentDetails)||void 0===t?void 0:t.videoId})))||[],f=k(u).videoDetails,h=null==f?void 0:f.map((function(e){var t,n,r,a,o,i,s,c,l,u,m,d,f,h,p,g,v,y,E,w,b,_,N,x;return{thumbnailUrl:(null===(t=e.snippet)||void 0===t||null===(n=t.thumbnails)||void 0===n||null===(r=n.maxres)||void 0===r?void 0:r.url)||(null===(a=e.snippet)||void 0===a||null===(o=a.thumbnails)||void 0===o||null===(i=o.high)||void 0===i?void 0:i.url)||(null===(s=e.snippet)||void 0===s||null===(c=s.thumbnails)||void 0===c||null===(l=c.medium)||void 0===l?void 0:l.url)||(null===(u=e.snippet)||void 0===u||null===(m=u.thumbnails)||void 0===m||null===(d=m.standard)||void 0===d?void 0:d.url)||(null===(f=e.snippet)||void 0===f||null===(h=f.thumbnails)||void 0===h||null===(p=h.default)||void 0===p?void 0:p.url)||"/placeholders/Placeholder-Card.jpg",title:null===(g=e.snippet)||void 0===g?void 0:g.title,views:null===(v=e.statistics)||void 0===v?void 0:v.viewCount,uploadDate:null===(y=e.snippet)||void 0===y?void 0:y.publishedAt,duration:(w=null===(E=e.contentDetails)||void 0===E?void 0:E.duration,b=w.match(/PT(\d+H)?(\d+M)?(\d+S)?/),_=b[1]?b[1].slice(0,-1):"0",N=b[2]?b[2].slice(0,-1):"0",x=b[3]?b[3].slice(0,-1):"0",60*parseInt(_,10)+parseInt(N,10)+":"+parseInt(x,10).toString().padStart(2,"0")),id:e.id}})),p=function(e){return c.createElement("iframe",{width:"560",height:"315",src:"https://www.youtube.com/embed/"+e,title:"YouTube video player",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerpolicy:"strict-origin-when-cross-origin",allowfullscreen:!0})};return c.createElement("div",{className:"youtube-carousel"},console.log("video details",f),console.log("videos",h),c.createElement(y.Z,Object.assign({},s,{ref:r}),null==h?void 0:h.map((function(e,t){return c.createElement("div",{className:"youtube-carousel__video",key:t},c.createElement("div",{className:"youtube-carousel__video-thumbnail-container"},c.createElement(C.Z,{className:"youtube-carousel__video-modal",trigger:c.createElement("div",null,c.createElement(d.Z,{className:"youtube-carousel__video-thumbnail",filename:e.thumbnailUrl}),c.createElement("div",{className:"youtube-carousel__video-duration"},e.duration))},p(e.id))),c.createElement(C.Z,{className:"youtube-carousel__video-modal",trigger:c.createElement("div",{className:"youtube-carousel__video-title"},e.title)}
1,p(e.id)),c.createElement("div",{className:"youtube-carousel__video-metadata"},e.views," views · ",function(e){var t=new Date(e),n=Math.floor((new Date-t)/1e3),r=n/31536e3;if(r>=1){var a=Math.floor(r);return a+(1===a?" year ago":" years ago")}if((r=n/2592e3)>=1){var o=Math.floor(r);return o+(1===o?" month ago":" months ago")}if((r=n/604800)>=1){var i=Math.floor(r);return i+(1===i?" week ago":" weeks ago")}if((r=n/86400)>=1){var s=Math.floor(r);return s+(1===s?" day ago":" days ago")}if((r=n/3600)>=1){var c=Math.floor(r);return c+(1===c?" hour ago":" hours ago")}if((r=n/60)>=1){var l=Math.floor(r);return l+(1===l?" minute ago":" minutes ago")}return Math.floor(n)+(1===n?" second ago":" seconds ago")}(e.uploadDate)))}))))},O=function(e){var t=e.data,n=e.location,o=(0,c.useState)(null),g=o[0],v=o[1],y=function(e){return e.blogs.edges.reduce((function(e,t){return e.push(t.node),e}),[])}(t),E=g?y.filter((function(e){return i()(e.date).format("YYYY").includes(g)})):y,w=(0,c.useState)((0,r.Z)(E.slice(0,15))),b=w[0],_=w[1],N=(0,c.useState)(!1),x=N[0],S=N[1],k=(0,c.useState)(E.length>15),C=k[0],O=k[1];(0,c.useEffect)((function(){var e=s.parse(n.search),t=null;try{t=e.years.split(" ").map(Number)}catch(r){t=null}v(t)}),[n.search]),(0,c.useEffect)((function(){_((0,r.Z)(E.slice(0,15)))}),[E.length]),(0,c.useEffect)((function(){if(x&&C){var e=b.length,t=e<E.length?E.slice(e,e+15):[];_([].concat((0,r.Z)(b),(0,r.Z)(t))),S(!1)}}),[x,C]),(0,c.useEffect)((function(){var e=b.length<E.length;O(e)}),[b]);var A=(0,c.useState)(!1),T=A[0],j=A[1];return c.createElement(f.Z,{title:"Young Scientist Blog",className:"news-and-events blog"},c.createElement("div",{className:"hero-container"},c.createElement("div",{className:"hero-container__gradient bg-gradient-light-blue"}),c.createElement("div",{className:"hero-container__titleImage"},c.createElement("ul",{className:"breadcrumbs"},c.createElement("li",{className:"breadcrumb"},c.createElement(a.Link,{to:"../../news-and-events/recent-news"},"News")),c.createElement("li",{className:"breadcrumb active"},"Young Scientist Blog")),c.createElement("h1",{className:"page-title"},"Young Scientist Blog"),c.createElement(d.Z,{filename:"hero-news-and-events.png",className:"hero-image"}))),c.createElement(p.Z,null,c.createElement(u.W2,null,c.createElement(u.X2,null,c.createElement(u.sg,{size:8,offset:2,className:"global-intro"},c.createElement("h2",{id:"news-intro"},"Find out what’s new in the world of science"),c.createElement("h4",null,"Stay connected to all the latest STEM news, important challenge updates and much more. Browse regularly updated content like blog entries, challenge exclusives, and thought starters, along with insights from today’s top young scientists."))))),c.createElement(p.Z,null,c.createElement(u.W2,null,c.createElement("h3",{style:{borderBottom:"1px solid gray",paddingBottom:"1rem"}},"Follow along as the 2026 finalists complete their summer mentorship with a 3M scientist!"),c.createElement(L,{playlistId:"PLobAGami2cOqbhG-icjRzenqRBR8RbIR9"}),c.createElement("div",{className:"blog__youtube-banner-container",onMouseEnter:function(){return j(!0)},onMouseLeave:function(){return j(!1)}},c.createElement("a",{href:"https://www.youtube.com/playlist?list=PLobAGami2cOqbhG-icjRzenqRBR8RbIR9",target:"_blank"},c.createElement("div",{className:"original-component "+(T?"":"visible")},c.createElement("div",{className:"blog__youtube-banner"},c.createElement(m.Z,{className:"blog__youtube-banner-icon",name:"youtube"}),c.createElement("span",null,"Check out our YouTube channel"),c.createElement(m.Z,{className:"blog__youtube-banner-arrow",name:"arrowright"}))),c.createElement("div",{className:"new-component "+(T?"visible":"")},c.createElement("div",{className:"blog__youtube-banner blog__youtube-banner--hovered"},c.createElement(m.Z,{className:"blog__youtube-banner-icon",name:"youtube"}),c.createElement("div",{className:"blog__youtube-banner-text-grid"},c.createElement("div",{className:"blog__youtube-banner-text-hidden"},"Check out our YouTube channel"),c.createElement("div",{className:"blog__youtube-banner-text-visible"},"Check out our YouTube channel"," ")),c.createElement(m.Z,{className:"blog__youtube-banner-arrow",name:"arrowright"}))))))),c.createElement(p.Z,null,c.createElement(u.W2,null,c.createElement(u.X2,null,c.createElement(u.sg,{size:9},c.createElement("ul",{className:"filter-tabs news-and-events"},c.createElement("li",{className:"filter-tabs__tab"},c.createElement(a.Link,{to:"../recent-news#news-intro"},"Program Updates")),c.createElement("li",{className:"filter-tabs__tab selected"},c.createElement(a.Link,{to:"../ysc-blog#news-intro"},"Young Scientist Blog"))),b.map((function(e,t){return c.createElement("div",{className:"post",key:t},c.createElement("div",{className:"post__thumbnail"},c.createElement(d.Z,{filename:e.thumbnail||"/placeholders/Placeholder-Card.jpg"})),c.createElement("div",{className:"post__content"},c.createElement("h3",{className:"post__content-title"},e.title),c.createElement("h4",{className:"post__content-date"},"Submitted by ",c.createElement("span",{className:"author"},e.author)," ","on ",i()(e.date).format("MMMM DD, YYYY")),c.createElement("p",{className:"post__content-teaser"},e.text[0].substring(0,300),e.text[0].length>300&&c.createElement("span",null,"...")),c.createElement(a.Link,{to:"/news-and-events/ysc-blog/"+i()(e.date).format("YYYY")+"/"+e.slug,className:"post__content-cta"},"Learn More >")))})),c.createElement("div",{className:"d-flex justify-content-center"},C&&c.createElement(l.Z,{onClick:function(){S(!0)},className:"load-more"},"Load More"))),c.createElement(u.sg,{size:3,className:"mt-2"},c.createElement("div",{className:"right__column-links"},c.createElement("h3",null,"In The News"),c.createElement("ul",{className:"news__cta-links"},c.createElement("li",null,c.createElement(h.Z,{to:"https://time.com/7010714/time-and-time-for-kids-name-the-2024-kid-of-the-year-15-year-old-scientist-heman-bekele/",className:"news__outbound"},c.createElement(m.Z,{name:"externallink"}),c.createElement("h4",null,"Time"),c.createElement("span",{className:"news__cta-date"},"August 15th, 2024"),c.createElement("span",{className:"news__cta-title"},"Heman Bekele Is TIME's 2024 Kid of the Year"))),c.createElement("li",null,c.createElement(h.Z,{to:"https://www.forbes.com/sites/janinemaclachlan/2022/04/05/this-is-the-key-to-breakthrough-innovation-according-to-3m-scientist/?sh=5a154fc97e4b",className:"news__outbound"},c.createElement(m.Z,{name:"externallink"}),c.createElement("h4",null,"Forbes"),c.createElement("span",{className:"news__cta-date"},"April 13th, 2022"),c.createElement("span",{className:"news__cta-title"},"This Is The Key To Breakthrough Innovation, According To 3M Scientist"))),c.createElement("li",null,c.createElement(h.Z,{to:"https://patch.com/georgia/smyrna/s/hwlqk/marietta-teen-places-2nd-national-young-scientist-competition",className:"news__outbound"},c.createElement(m.Z,{name:"externallink"}),c.createElement("h4",null,"Patch"),c.createElement("span",{className:"news__cta-date"},"November 2nd, 2021"),c.createElement("span",{className:"news__cta-title"},"Marietta Teen Places 2nd In National Young Scientist Competition"))),c.createElement("li",null,c.createElement(h.Z,{to:"https://thejournal.com/articles/2021/10/28/2021-young-scientist-challenge-winners-named.aspx",className:"news__outbound"},c.createElement(m.Z,{name:"externallink"}),c.createElement("h4",null,"THE Journal"),c.createElement("span",{className:"news__cta-date"},"October 28th, 2021"),c.createElement("span",{className:"news__cta-title"},"2021 Young Scientist Challenge Winners Named"))),c.createElement("li",null,c.createElement(h.Z,{to:"https://thriveglobal.com/stories/are-you-americas-next-top-young-scientist/",className:"news__outbound"},c.createElement(m.Z,{name:"externallink"}),c.createElement("h4",null,"Thrive Global"),c.createElement("span",{className:"news__cta-date"},"October 15th, 2021"),c.createElement("span",{className:"news__cta-title"},"Are You America’s Next Top Young Scientist? 3M and Discovery Education Think You Just Might Be!"))),c.createElement("li",null,c.createElement(h.Z,{to:"https://medium.com/authority-magazine/young-change-makers-why-and-how-anika-chebrolu-is-helping-to-change-our-world-7022f4e87cdb",className:"news__outbound"},c.createElement(m.Z,{name:"externallink"}),c.createElement("h4",null,"Authority Magazine"),c.createElement("span",{className:"news__cta-date"},"September 6th, 2021"),c.createElement("span",{className:"news__cta-title"},"Young Change Makers: Why and How Anika Chebrolu Is Helping To Change Our World"))))),c.createElement("div",{className:"right__column-links"},c.createElement("h3",null,"Press Releases"),c.createElement("ul",{className:"news__cta-links"},c.createElement("li",null,c.createElement(h.Z,{to:"https://www.discoveryeducation.com/detail
1s/3m-young-scientist-challenge-names-10-finalists-for-2026-national-competition/",className:"news__outbound"},c.createElement(m.Z,{name:"externallink"}),c.createElement("h4",null,"2026"),c.createElement("span",{className:"news__cta-title"},"3M Young Scientist Challenge Names 10 Finalists for 2026 National Competition"))),c.createElement("li",null,c.createElement(h.Z,{to:"https://www.discoveryeducation.com/details/3m-and-discovery-education-announce-37-state-merit-winners-and-four-honorable-mentions-in-2026-3m-young-scientist-challenge/",className:"news__outbound"},c.createElement(m.Z,{name:"externallink"}),c.createElement("h4",null,"2026"),c.createElement("span",{className:"news__cta-title"},"3M and Discovery Education Announce 37 State Merit Winners and Four Honorable Mentions in 2026 3M Young Scientist Challenge"))),c.createElement("li",null,c.createElement(h.Z,{to:"https://www.discoveryeducation.com/details/3m-young-scientist-challenge-announces-2024-national-finalists/",className:"news__outbound"},c.createElement(m.Z,{name:"externallink"}),c.createElement("h4",null,"June 27th, 2024"),c.createElement("span",{className:"news__cta-title"},"3M Young Scientist Challenge Announces 2024 National Finalists"))),c.createElement("li",null,c.createElement(h.Z,{to:"https://www.discoveryeducation.com/details/3m-and-discovery-education-recognize-26-state-merit-winners-and-four-honorable-mentions-in-2024-3m-young-scientist-challenge/",className:"news__outbound"},c.createElement(m.Z,{name:"externallink"}),c.createElement("h4",null,"June 26th, 2024"),c.createElement("span",{className:"news__cta-title"},"3M and Discovery Education Recognize 26 State Merit Winners and Four Honorable Mentions in 2024 3M Young Scientist Challenge"))),c.createElement("li",null,c.createElement(h.Z,{to:"https://www.discoveryeducation.com/details/search-begins-for-2024-americas-top-young-scientist/",className:"news__outbound"},c.createElement(m.Z,{name:"externallink"}),c.createElement("h4",null,"January 16th, 2024"),c.createElement("span",{className:"news__cta-title"},"Search Begins for 2024 America’s Top Young Scientist"))),c.createElement("li",null,c.createElement(h.Z,{to:"https://www.discoveryeducation.com/details/3m-young-scientist-challenge-announces-2022-national-finalists-and-honorable-mentions/",className:"news__outbound"},c.createElement(m.Z,{name:"externallink"}),c.createElement("h4",null,"July 7th, 2022"),c.createElement("span",{className:"news__cta-title"},"3M Young Scientist Challenge Announces 2022 National Finalists and Honorable Mentions"))),c.createElement("li",null,c.createElement(h.Z,{to:"https://www.discoveryeducation.com/details/3m-and-discovery-education-recognize-31-state-merit-winners-in-2022-3m-young-scientist-challenge/",className:"news__outbound"},c.createElement(m.Z,{name:"externallink"}),c.createElement("h4",null,"June 27th, 2022"),c.createElement("span",{className:"news__cta-title"},"3M and Discovery Education Recognize 31 State Merit Winners in 2022 3M Young Scientist Challenge"))),c.createElement("li",null,c.createElement(h.Z,{to:"https://www.discoveryeducation.com/details/3m-young-scientist-challenge-announces-2021-national-finalists-and-honorable-mentions/",className:"news__outbound"},c.createElement(m.Z,{name:"externallink"}),c.createElement("h4",null,"June 24th, 2021"),c.createElement("span",{className:"news__cta-title"},"3M Young Scientist Challenge Announces 2021 National Finalists and Honorable Mentions"))),c.createElement("li",null,c.createElement(h.Z,{to:"https://www.discoveryeducation.com/details/3m-and-discovery-education-announce-state-merit-winners-in-the-2021-3m-young-scientist-challenge/",className:"news__outbound"},c.createElement(m.Z,{name:"externallink"}),c.createElement("h4",null,"June 23rd, 2021"),c.createElement("span",{className:"news__cta-title"},"3M and Discovery Education Announce State Merit Winners in the 2021 3M Young Scientist Challenge"))),c.createElement("li",null,c.createElement(h.Z,{to:"https://www.discoveryeducation.com/details/americas-top-young-scientist-of-2020-14-year-old-researches-spike-protein-of-sars-cov-2-virus-to-develop-novel-antiviral-drug-to-combat-spread-of-covid-19/",className:"news__outbound"},c.createElement(m.Z,{name:"externallink"}),c.createElement("h4",null,"October 14th, 2020"),c.createElement("span",{className:"news__cta-title"},"America’s Top Young Scientist of 2020: 14-Year-Old Researches Spike Protein of SARS-CoV-2 Virus to Develop Novel Antiviral Drug to Combat Spread of COVID-19"))))))))))}},5666:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";
vendor: 4,148 bytes, line 1
1function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(T){c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var a=t&&t.prototype instanceof g?t:g,o=Object.create(a.prototype),i=new L(r||[]);return o._invoke=function(e,t,n){var r=m;return function(a,o){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===a)throw o;return A()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=S(i,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===m)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var c=u(e,t,n);if("normal"===c.type){if(r=n.done?h:d,c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(e,n,i),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var m="suspendedStart",d="suspendedYield",f="executing",h="completed",p={};function g(){}function v(){}function y(){}var E={};E[o]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(O([])));b&&b!==n&&r.call(b,o)&&(E=b);var _=y.prototype=g.prototype=Object.create(E);function N(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(a,o,i,s){var c=u(e[a],e,o);if("throw"!==c.type){var l=c.arg,m=l.value;return m&&"object"==typeof m&&r.call(m,"__await")?t.resolve(m.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(m).then((function(e){l.value=e,i(l)}),(function(e){return n("throw",e,i,s)}))}s(c.arg)}var a;this._invoke=function(e,r){function o(){return new t((function(t,a){n(e,r,t,a)}))}return a=a?a.then(o,o):o()}}function S(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var a=u(r,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,p;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function O(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function n(){for(;++a<e.length;)if(r.call(e,a))return n.value=e[a],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}return{next:A}}function A(){return{value:t,done:!0}}return v.prototype=_.constructor=y,y.constructor=v,v.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},N(x.prototype),x.prototype[i]=function(){return this},e.AsyncIterator=x,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new x(l(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},N(_),c(_,s,"Generator"),_[o]=function(){return this},_.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=O,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEac
vendor: 2,147 bytes, lines 1-2
1h(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function a(r,a){return s.type="throw",s.arg=e,n.next=r,a&&(n.method="next",n.arg=t),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;C(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(n){Function("r","regeneratorRuntime = r")(t)}}}]);
2//# sourceMappingURL=component---src-pages-news-and-events-ysc-blog-js-a7ded37b2a36a55a53bb.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.