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AAY,KAC9B,gBAACuC,EAAD,CAAoBC,MAAM,MAAM1C,QAAQ,yBACtC,gBAAC,IAAD,CAAOL,KAAK,6BAA6BC,IAAI,KAC7C,yBACEmD,KAAKC,EAAAA,EAAAA,YAAW,KAAO,+BACvBC,OAAK,EACLC,UAAQ,EACRC,MAAI,EACJC,aAAW,KAGf,gBAACX,EAAD,CAAoBC,MAAM,OACxB,gBAAC,IAAD,CAAO/C,KAAK,6BAA6BC,IAAI,MAE/C,gBAAC6C,EAAD,CAAoBC,MAAM,OACxB,gBAAC,IAAD,CAAO/C,KAAK,6BAA6BC,IAAI,MAE/C,gBAAC6C,EAAD,CAAoBC,MAAM,OACxB,gBAAC,IAAD,CAAO/C,KAAK,6BAA6BC,IAAI,QAInD,uBAAKX,UAAU,8DACb,4fAUA,gXAWJ,gBAAC,IAAD,CAAUV,UAAU,QAAQC,OAAO","sources":["webpack://imf-2021/./src/components/read-next.js","webpack://imf-2021/./src/components/animator.js","webpack://imf-2021/./src/components/scroll-gallery.js","webpack://imf-2021/./src/pages/index.js"],"sourcesContent":["import React, { useState } from \"react\"\nimport Image from \"../components/image\"\nimport menuData from \"../data/menu.json\"\nimport findObject from \"../helpers/find-object\"\nimport { Link } from \"gatsby\"\nimport VisibilitySensor from \"react-visibility-sensor\"\n\nexport default function ReadNext({ sectionID, pageID }) {\n const [loaded, setLoaded] = useState(false)\n const onChange = isVisible => {\n isVisible ? setLoaded(true) : setLoaded(false)\n }\n\n const menu = findObject(menuData, \"id\", sectionID)\n const content =\n menu && pageID ? findObject(menu.children, \"id\", pageID) : menu\n\n return (\n
\n \n \n
Read Next
\n
\n {content.thumbnail && (\n \n )}\n
\n

{content.name}

\n {content.deck && (\n

{content.deck}

\n )}\n
\n
\n \n \n
\n )\n}\n","import { createElement, useRef, useLayoutEffect, useCallback } from \"react\"\n\n/**\n * Animator takes children and adds scroll based animation\n */\nexport default function Animator({\n children,\n classes,\n element,\n translateX,\n opacity,\n}) {\n const activeItem = useRef()\n\n const type = element ? element : \"div\"\n\n const animatedElm = createElement(\n type,\n { className: classes, ref: activeItem },\n children\n )\n\n const updateTransform = useCallback(\n progress => {\n if (translateX) {\n const finishX = parseInt(translateX * progress, 10)\n activeItem.current.style.transform = `translateX(${finishX}px)`\n }\n },\n [translateX]\n )\n\n const updateOpacity = useCallback(\n progress => {\n if (opacity !== undefined) {\n const startOpacity = 1\n const finishOpacity = startOpacity + (opacity - startOpacity) * progress\n activeItem.current.style.opacity = finishOpacity\n }\n },\n [opacity]\n )\n\n useLayoutEffect(() => {\n const prefersReducedMotion =\n typeof window !== \"undefined\"\n ? window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches\n : false\n\n // Set some default easing to make the animation smoother\n activeItem.current.style.WebkitTransition = \"all 1s ease-out\"\n activeItem.current.style.MozTransition = \"all 1s ease-out\"\n\n const onScroll = () => {\n const rangeStart = 0\n const rangeFinish = window.innerHeight\n const rangeValue = rangeFinish - rangeStart\n const elDiff =\n window.innerHeight - activeItem.current.getBoundingClientRect().top\n const progress = Math.max(Math.min(elDiff / rangeValue, 1), 0)\n\n if (!prefersReducedMotion) {\n // Update properties\n updateTransform(progress)\n updateOpacity(progress)\n }\n }\n\n window.addEventListener(\"scroll\", onScroll)\n return () => window.removeEventListener(\"scroll\", onScroll)\n }, [updateTransform, updateOpacity])\n\n return animatedElm\n}\n","import React from \"react\"\nimport Animator from \"../components/animator\"\n\nexport function ScrollGallery({ children }) {\n return
{children}
\n}\n\nexport function ScrollGalleryStrip({ children, translateX }) {\n return (\n \n {children}\n \n )\n}\n\nexport function ScrollGalleryMedia({ children, width, classes }) {\n return (\n
  • \n {children}\n
  • \n )\n}\n","import React from \"react\"\nimport { withPrefix } from \"gatsby\"\nimport Layout from \"../components/layout\"\nimport Image from \"../components/image\"\nimport Logo from \"../components/svg/logo\"\nimport DownloadFullReport from \"../components/download-full-report\"\nimport {\n ScrollGallery,\n ScrollGalleryStrip,\n ScrollGalleryMedia,\n} from \"../components/scroll-gallery\"\nimport ReadNext from \"../components/read-next\"\n\nexport default function Home() {\n return (\n \n
    \n \n
    \n
    \n
    \n \n

    IMF Annual Report 2021

    \n
    \n \n \n Build Forward Better\n \n
    \n
    \n
    \n

    \n A recovery is underway, but the economic fallout from the global\n pandemic could be with us for years to come.\n

    \n

    \n With the crisis exacerbating prepandemic vulnerabilities, country\n prospects are diverging. Nearly half of emerging market and\n developing economies and some middle-income countries are now at\n risk of falling further behind, undoing much of the progress made\n toward achieving the UN Sustainable Development Goals. Within\n countries, inequality is on the rise as well; workers with fewer\n skills, youth, women, and those informally employed are suffering\n disproportionate income losses.\n

    \n
    \n \n \n \n \"\"\n \n \n \n \"\"\n \n \n \"\"\n \n \n \"\"\n \n \n\n \n \n \"\"\n \n \n \"\"\n \n \n \"\"\n \n \n \"\"\n \n \n \n \"\"\n \n \n\n \n \n \"\"\n \n \n \n \"\"\n \n \n \"\"\n \n \n \"\"\n \n \n \n
    \n

    \n Sustaining the recovery will require an ongoing policy push,\n including to secure and expand access to vaccines and to maintain\n economic lifelines and targeted policy support, tailored to the\n stage of the pandemic, the strength of the economic recovery, and\n countries’ structural characteristics. Multilateral cooperation will\n be vital to ensure all countries have equitable access to vaccines\n and financially constrained economies have adequate access to\n international liquidity.\n

    \n

    \n As the recovery progresses, economic reforms and public investments\n in human capital and green and digital infrastructure should be\n scaled up to facilitate resource reallocation and limit long-term\n scarring. By building toward a more inclusive, digital, and green\n future, the world’s economies can achieve higher and more durable\n growth.\n

    \n
    \n
    \n\n \n
    \n )\n}\n"],"names":["ReadNext","sectionID","pageID","useState","loaded","setLoaded","menu","findObject","menuData","content","children","className","onChange","isVisible","partialVisibility","offset","bottom","Link","to","href","thumbnail","path","alt","name","deck","Animator","classes","element","translateX","opacity","activeItem","useRef","type","animatedElm","createElement","ref","updateTransform","useCallback","progress","finishX","parseInt","current","style","transform","updateOpacity","undefined","finishOpacity","useLayoutEffect","prefersReducedMotion","window","matchMedia","matches","WebkitTransition","MozTransition","onScroll","rangeValue","innerHeight","elDiff","getBoundingClientRect","top","Math","max","min","addEventListener","removeEventListener","ScrollGallery","ScrollGalleryStrip","ScrollGalleryMedia","width","Home","id","location","marginTop","src","withPrefix","muted","autoPlay","loop","playsInline"],"sourceRoot":""}