PageSourceSearch

https://assets-cdn.nationalgeographic.com/natgeo/bfcb66aa1ac5-rele…/client/natgeo/8330-0b99e529.js

js nationalgeographic.com collected 2026-10-01 08:02:02 UTC 6,651 bytes, 1 lines download raw bytes

1(self.webpackChunknatgeo=self.webpackChunknatgeo||[]).push([[8330],{73327:(e,t,i)=>{var n=i(85893),r=(i(67294),i(45697)),s=i(50239),c=i(23212),o=i(93967),a=i(27361),p=s.cbool,u=s.passThru,l=s.emptyObj,d=s.NULL,m=s.TRUE;function f(e,t){var i=e||l,r=t||l,s=r.translate||u,f=a(r,"adConfig.enabled"),v=i.ad||l,h=i.className||"",k=i.pos||"",S=i.uniquePos||"",g=v.kvps,b=p(i.hideLabel),y="pixel"===k||b?d:s("advertisement"),L=o(k,"".concat(k).concat(h?"--"+h:"")),A=m;return f?n.jsx("div",{tabIndex:"-1","aria-hidden":"true",className:"ad-wrapper",children:n.jsx(c,{className:L,label:y,type:k,uniquePos:S,kvps:g,collapseBeforeLoad:A})}):d}i(54953),f.contextTypes={translate:r.func,adConfig:r.object},f.propTypes={className:r.string,pos:r.string,uniquePos:r.string,ad:r.shape({kvps:r.object}),hideLabel:r.bool},e.exports=f},77756:(e,t,i)=>{e.exports=i(73327)},47992:(e,t,i)=>{var n,r=i(85893),s=i(67294),c=i(3896),o=i(27361),a=i(45697),p=i(50239),u=i(84967),l=i(5902),d=i(36238),m=p.cbool,f=p.empty,v=p.emptyAry,h=p.emptyObj,k=p.isFunc,S=p.isNum,g=p.FALSE,b=p.NULL,y=p.TRUE,L=u.attr,A=u.docScroll,T=u.rAF,B=u.qsa,x="ArticleStickiness__Sticky-Element--fade-in",I="ArticleStickiness--nav-is-sticky",M="article_ads_inserted",_="data-bumper-index",E="up",O="down",N="NAV_IS_STICKY",U="NAV_NOT_STICKY",C="stickyElementRef.current",P="stickyParentRef.current";function j(e){return e&&2===e.length&&k(e[0])&&k(e[1])}i(7561),(n=c({stickyParentRef:s.createRef(),stickyElementRef:s.createRef(),componentDidMount:function(){var e=this||h,t=e.formModel,i=u.view();e.mounted=y,t(),i.addEventListener("DOMContentLoaded",(function(){var t=(e&&e.bottomActiveBumperOffset||0)-(e&&e.topActiveBumperOffset||0);l.emit("article_rendered",t)}),{once:y}),l.on(M,(function(){e.mounted&&(e.blockUpdates=y,t())}))},componentWillUnmount:function(){var e=this||h;e.mounted=g,e.cancelListeners()},getInitialState:function(){var e=this||h;return e.blockUpdates=g,e.bumperModel=[],e.bumperModelLength=0,e.failedJumpAttempts=0,e.mounted=g,e.queryingProblemDetected=g,e.stickySectionIsVisible=g,e.wideLeadisPresent=g,e.updateInterval=b,e.activeBumpersIndex=b,e.topActiveBumperOffset=b,e.bottomActiveBumperOffset=b,e.stickyElementHeight=280,{fitsCurrentSpace:g,stickySectionHeight:250,stickySectionTop:20}},render:function(){var e=this||h,t=e.props||h,i=e.state||h,n=t.children,s=i.fitsCurrentSpace,c=i.stickySectionTop,o=B(".TermList",y)?280:i.stickySectionHeight,a={height:"".concat(o,"px"),top:"".concat(c,"px")};return r.jsx("div",{className:"ArticleStickiness",ref:e.stickyParentRef,children:r.jsx(d,{className:"ArticleStickiness__Sticky-Section",style:a,onChange:e.onIntersectionUpdate,children:r.jsx("div",{className:"ArticleStickiness__Offset-Manager",children:r.jsx("div",{className:"ArticleStickiness__Sticky-Element ArticleStickiness__Sticky-Element--fade-in",ref:e.stickyElementRef,children:s&&n})})})})},displayName:"ArticleStickiness",attemptToJump:function(e){for(var t=this||h,i=g,n=e===E,r=n?t.activeBumpersIndex-1:t.activeBumpersIndex+1;r>-1&&r<t.bumperModelLength;){if(t.evaluateJumpSection(r)){i=y;break}r+=n?-1:1}i&&t.jump(r)},cancelListeners:function(){var e=this||h;e.updateInterval&&clearInterval(e.updateInterval),l.off(N),l.off(U),l.off(M)},detectSponsorBanner:function(){var e=B(".SponsorBanner")||v;return m(e.length)},evaluateJumpSection:function(e){var t=this||h,i=t.bumperModel[e];if(j(i)){var n=i[0]();if(i[1]()-n>t.stickyElementHeight+0)return y}return g},formatBumper:function(e,t,i){var n=this||h,r=e||h,s=i||g,c="[".concat(_,"='").concat(t,"']");return s||f(r)||L(r,_,t),function(){var e=n.recheckDOMNode(c),i=0;return e?(i+=e.offsetTop,i+=0===t?s?e.clientHeight-20:20:s?e.clientHeight+20:-20):b}},formModel:function(){var e,t=this||h,i=t.props||h,n=t.fitsCurrentSpace,r=t.formatBumper,s=[],c=B("[".concat(_,"]")),a=c.length,p=B(i.inlineQuery,g),u=p.length,l=o(t,P);if(n&&t.setState({fitsCurrentSpace:g}),a){t.bumperModel=[],t.bumperModelLength=0,t.cancelListeners();for(var d=0;d<a;d++){var m=c[d];L(m,_,null)}}if(s.push(r(l,0)),t.wideLeadisPresent=g,u)for(var f=0;f<u;++f){var v=p[f]||h,k=v.classList||h,S=f+1;0===f&&k.contains("ArticleBodyTile__Lead")&&(t.wideLeadisPresent=y),s.push(r
1(v,S),r(v,S,y))}if(s.push(r(l,0,y)),!(e=s.length)||s%2==1)return g;for(var b=t.wideLeadisPresent?2:0;b<e;b+=2)t.bumperModel.push([s[b],s[b+1]]);t.bumperModelLength=t.bumperModel.length,t.activeBumpersIndex=0,t.setListeners()},jump:function(e){var t=this||h,i=o(t,C,h).classList||h;S(e)&&k(i.remove)&&(i.remove(x),T((function(){t.mounted&&i.add(x)})),t.activeBumpersIndex=e,t.periodicUpdates())},toggleExtraTopSpace:function(e){var t=e||g,i=o(this||h,P);t?i.classList.add(I):i.classList.remove(I)},periodicUpdates:function(){var e,t,i,n,r,s,c,a=this||h,p=(a.props||h).setTimeoutBackup||y,u=a.state||h,l=u.fitsCurrentSpace,d=u.stickySectionHeight,m=u.stickySectionTop,f=a.activeBumpersIndex,v=a.bumperModel,k=o(a,C),L=v&&a.bumperModelLength>f&&v[f],T=a.stickyElementHeight;if(k){var B=k.clientHeight;B>280&&(a.stickyElementHeight=T=B)}if(!a.blockUpdates&&j(L)){if(n=L[0](),r=L[1](),n===b||r===b)return g;if(a.topActiveBumperOffset=n,a.bottomActiveBumperOffset=r,T>(s=a.bottomActiveBumperOffset-a.topActiveBumperOffset)){var x=a.activeBumpersIndex===a.bumperModelLength-1;a.failedJumpAttempts+=1,a.failedJumpAttempts<6?a.attemptToJump(x?E:O):l&&a.setState({fitsCurrentSpace:g})}else a.topActiveBumperOffset===m&&s===d||(a.failedJumpAttempts=0,a.setState({fitsCurrentSpace:y,stickySectionTop:a.topActiveBumperOffset,stickySectionHeight:s}),!a.stickySectionIsVisible&&p&&setTimeout((function(){a.mounted&&!a.stickySectionIsVisible&&(t=A()||h,c=t.y,S(c)&&(i=c<a.topActiveBumperOffset,e=i?E:O,a.attemptToJump(e)))}),200))}},onIntersectionUpdate:function(e,t){var i,n=this||h;if(n.stickySectionIsVisible=e,n.blockUpdates)return g;e||((i=o(t,"boundingClientRect.top",0))>0?n.attemptToJump(E):i<=0&&n.attemptToJump(O))},recheckDOMNode:function(e){var t=this||h,i=B(e,y);return i&&0!==i.length?(t.queryingProblemDetected=g,i):t.queryingProblemDetected?void 0:(t.queryingProblemDetected=y,t.blockUpdates=y,t.formModel(),b)},setListeners:function(){var e=this||h;e.cancelListeners(),e.blockUpdates=g,e.periodicUpdates(),e.updateInterval=setInterval((function(){e.periodicUpdates()}),3e3),e.detectSponsorBanner()?e.toggleExtraTopSpace(y):(l.on(N,(function(){e.toggleExtraTopSpace(y)})),l.on(U,(function(){e.toggleExtraTopSpace(g)})))}})).propTypes={inlineQuery:a.string,setTimeoutBackup:a.bool},n.defaultProps={inlineQuery:".InsertedAd",setTimeoutBackup:y},e.exports=n},24119:(e,t,i)=>{e.exports=i(47992)},54953:(e,t,i)=>{"use strict";i.r(t)},7561:(e,t,i)=>{"use strict";i.r(t)}}]);

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.