PageSourceSearch

https://www.aafp.org/_next/static/chunks/160.838e4d5838b0f43d.js?dpl=00711301f21f67b3e94d0d96f167761c89adcdc6

js aafp.org collected 2026-09-24 07:29:26 UTC 5,976 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[160],{9983:(e,t,o)=>{"use strict";o.d(t,{n5:()=>n});var i,n=((i={}).INTERSTITIAL="div-gpt-ad-interstitial",i.LEADERBOARD="div-gpt-ad-leaderboard",i.LEADERBOARD_2="div-gpt-ad-leaderboard2",i.SKYSCRAPER="div-gpt-ad-skyscraper",i.SKYSCRAPER_2="div-gpt-ad-skyscraper2",i.STICKY_BOTTOM="div-gpt-ad-stickyBottom",i)},23097:(e,t,o)=>{"use strict";o.r(t),o.d(t,{AdContext:()=>g,AdProvider:()=>p,useAdContext:()=>u});var i=o(73365),n=o(89226),d=o(9983),a=o(88210),r=o(59715),s=o(1521),l=o(85864);let g=(0,s.createContext)(void 0),u=()=>{let e=(0,s.useContext)(g);if(!e)throw Error("The useAdContext hook must be used within an AdProvider wrapper.");return e},c=new Set,p=({settings:e,children:t})=>{let o=(0,s.useRef)(!1),[u,p]=(0,s.useState)({}),{adNetworkCode:w,adZone:f,siteSection:m,adsLabelLink:S,enableInterstitial:b,enableLeaderboard:h,enableLeaderboard2:v,enableSkyscraper:R,enableSkyscraper2:T,enableStickyBottom:A,targetingRules:E,pageType:k,isDev:y}=e||{},I=`/${w}/${f}`,{ready:C,isLoggedIn:P}=(0,n.A)(),D=e=>new Promise((t,o)=>{if(document.querySelector(`script[src="${e}"]`))return void t();let i=document.createElement("script");i.src=e,i.async=!0,i.onload=()=>t(),i.onerror=()=>o(`Failed to load script: ${e}`),document.head.appendChild(i)}),_=(0,s.useCallback)(()=>{window.googletag?.apiReady&&(window.googletag.defineOutOfPageSlot(I,d.n5.INTERSTITIAL)?.addService(window.googletag.pubads()),c.add(d.n5.INTERSTITIAL),window.googletag.display(d.n5.INTERSTITIAL))},[I]);return(0,s.useEffect)(()=>{if(y||!w||!f)return;let e=m?.startsWith("/afp")||m?.startsWith("/fpm"),t=769>(window.innerWidth||document.documentElement.clientWidth)&&e;return(async()=>{await D("https://securepubads.g.doubleclick.net/tag/js/gpt.js"),await D("https://pub.doubleverify.com/dvtag/36141441/DV1605641/pub.js"),window.onDvtagReady=function(e,t=750){window.dvtag=window.dvtag||{},window.dvtag.cmd=window.dvtag.cmd||[];let o={callback:e,timeout:t,timestamp:new Date().getTime()};window.dvtag.cmd.push(()=>window.dvtag?.queueAdRequest?.(o)),setTimeout(()=>{let e=o.callback;o.callback=null,e&&e()},t)},window.googletag=window.googletag||{cmd:[]};let e=(e,t,o,i)=>{if(!document.getElementById(e)||c.has(e))return null;let n=window.googletag?.defineSlot(t,o,e);i&&n?.defineSizeMapping&&n.defineSizeMapping(i),window.googletag?.setConfig({collapseDiv:"ON_NO_FILL"}),n?.addService?.(window.googletag.pubads()),c.add(e)};window.googletag.cmd.push(()=>{var o,i;let n=window.googletag.sizeMapping().addSize([768,125],[728,90]).addSize([0,0],[320,50]).build(),r=window.googletag.sizeMapping().addSize([768,125],[[300,600],[300,250],[250,250],[160,600]]).addSize([0,0],[160,600]).build(),s=window.googletag.sizeMapping().addSize([768,125],[[300,250]]).addSize([0,0],[300,250]).build(),g=window.googletag.sizeMapping().addSize([768,125],[728,90]).addSize([0,0],[[320,100],[320,50]]).build();h&&e(d.n5.LEADERBOARD,I,[728,90],n),v&&e(d.n5.LEADERBOARD_2,I,[728,90],n),R&&!t&&e(d.n5.SKYSCRAPER,I,[300,600],r),T&&!t&&e(d.n5.SKYSCRAPER_2,I,[300,250],s),A&&e(d.n5.STICKY_BOTTOM,I,[728,90],g),p(Object.fromEntries([...c].map(e=>[e,!0])));let u=(o=(0,l.Ri)("a_sg"))?o.split(",").map(e=>e.trim()).filter(e=>e.length>0).slice(0,20):[],w={reffererurl:(i=window.navigator.userAgent,/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(i))?"no":"yes",Proff:["null"],...E?.department&&{department:E?.department},...E?.topic&&{topic:E?.topic},...E?.discipline&&{discipline:E?.discipline},...E?.populations&&{population:E?.populations},...E?.contentFocus&&{content_focus:E?.contentFocus},...k===a.TR&&{section:"toc"},...u.length>0&&{NPI:u}};console.debug("Ad targeting:",w),window.googletag.setConfig({targeting:w}),window.googletag.setConfig({singleRequest:!0}),window.googletag.enableServices(),window.onDvtagReady?.()})})(),()=>{window.googletag?.destroySlots&&(window.googletag.destroySlots(),c.clear())}},[w,I,f,b,h,v,R,T,A,y,k,m,E?.department,E?.topic,E?.discipline,E?.populations,E?.contentFocus,_]),(0,s.useEffect)(()=>{!y&&b&&C&&(P||o.current?P&&console.info("Interstitial slot is not defined because user is logged in"):(window.googletag=window.googletag||{cmd:[]}
1,window.googletag.cmd.push(_),o.current=!0,console.info("Interstitial slot is defined because user is not logged in")))},[_,b,y,P,C]),(0,r.s)(()=>{window.googletag?.cmd.push(()=>{let e=window.googletag.pubads().getSlots();e.length>0&&window.googletag.pubads().refresh(e)})}),(0,i.jsx)(g.Provider,{value:{definedSlots:u,isDev:y,siteSection:m,adsLabelLink:S,enableInterstitial:b,enableLeaderboard:h,enableLeaderboard2:v,enableSkyscraper:R,enableSkyscraper2:T,enableStickyBottom:A},children:t})}},29717:(e,t,o)=>{"use strict";var i=o(21505);o.o(i,"usePathname")&&o.d(t,{usePathname:function(){return i.usePathname}}),o.o(i,"useRouter")&&o.d(t,{useRouter:function(){return i.useRouter}}),o.o(i,"useSearchParams")&&o.d(t,{useSearchParams:function(){return i.useSearchParams}})},77106:e=>{e.exports=function(e,t,o,i){var n,d,a;return function(){if(a=this,d=Array.prototype.slice.call(arguments),!n||!o&&!i){if(!o)return r(),n=setTimeout(function(){r(),e.apply(a,d)},t);n=setTimeout(r,t),e.apply(a,d)}function r(){clearTimeout(n),n=null}}}},85864:(e,t,o)=>{"use strict";function i(e){for(let t of document.cookie.split("; ")){let[o,i]=t.split("=");if(o===e)return decodeURIComponent(i)}}function n(e,t,o={}){let{path:i="/",maxAge:d,secure:a=!1,sameSite:r="Lax",expires:s}=o,l=`${e}=${encodeURIComponent(t)}; path=${i}`;void 0!==d&&(l+=`; max-age=${d}`),s&&(l+=`; expires=${s.toUTCString()}`),r&&(l+=`; samesite=${r}`),a&&(l+="; secure"),document.cookie=l}o.d(t,{Ri:()=>i,TV:()=>n})}}]);

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.