(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5675],{78566:function(e,t,i){"use strict";var n=i(930),a=i(85696),o=i(7980);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,i=e.src,l=e.sizes,s=e.unoptimized,p=void 0!==s&&s,h=e.priority,z=void 0!==h&&h,E=e.loading,I=e.lazyRoot,_=void 0===I?null:I,R=e.lazyBoundary,L=e.className,q=e.quality,C=e.width,N=e.height,O=e.style,P=e.objectFit,M=e.objectPosition,W=e.onLoadingComplete,B=e.placeholder,D=void 0===B?"empty":B,U=e.blurDataURL,V=c(e,["src","sizes","unoptimized","priority","loading","lazyRoot","lazyBoundary","className","quality","width","height","style","objectFit","objectPosition","onLoadingComplete","placeholder","blurDataURL"]),F=d.useContext(m.ImageConfigContext),H=d.useMemo((function(){var e=b||F||f.imageConfigDefault,t=[].concat(o(e.deviceSizes),o(e.imageSizes)).sort((function(e,t){return e-t})),i=e.deviceSizes.sort((function(e,t){return e-t}));return r({},e,{allSizes:t,deviceSizes:i})}),[F]),G=V,Z=l?"responsive":"intrinsic";"layout"in G&&(G.layout&&(Z=G.layout),delete G.layout);var T=k;if("loader"in G){if(G.loader){var J=G.loader;T=function(e){e.config;var t=c(e,["config"]);return J(t)}}delete G.loader}var Q="";if(function(e){return"object"===typeof e&&(S(e)||function(e){return void 0!==e.src}(e))}(i)){var K=S(i)?i.default:i;if(!K.src)throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ".concat(JSON.stringify(K)));if(U=U||K.blurDataURL,Q=K.src,(!Z||"fill"!==Z)&&(N=N||K.height,C=C||K.width,!K.height||!K.width))throw new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ".concat(JSON.stringify(K)))}var X=!z&&("lazy"===E||"undefined"===typeof E);((i="string"===typeof i?i:Q).startsWith("data:")||i.startsWith("blob:"))&&(p=!0,X=!1);v.has(i)&&(X=!1);y&&(p=!0);var Y,$=d.useState(!1),ee=a($,2),te=ee[0],ie=ee[1],ne=g.useIntersection({rootRef:_,rootMargin:R||"200px",disabled:!X}),ae=a(ne,3),oe=ae[0],re=ae[1],le=ae[2],se=!X||re,ce={boxSizing:"border-box",display:"block",overflow:"hidden",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},de={boxSizing:"border-box",display:"block",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},ue=!1,fe={position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",padding:0,border:"none",margin:"auto",display:"block",width:0,height:0,minWidth:"100%",maxWidth:"100%",minHeight:"100%",maxHeight:"100%",objectFit:P,objectPosition:M},ge=x(C),me=x(N),pe=x(q);0;var he=Object.assign({},O,fe),ye="blur"!==D||te?{}:{backgroundSize:P||"cover",backgroundPosition:M||"0% 0%",filter:"blur(20px)",backgroundImage:'url("'.concat(U,'")')};if("fill"===Z)ce.display="block",ce.position="absolute",ce.top=0,ce.left=0,ce.bottom=0,ce.right=0;else if("undefined"!==typeof ge&&"undefined"!==typeof me){var be=me/ge,ve=isNaN(be)?"100%":"".concat(100*be,"%");"responsive"===Z?(ce.display="block",ce.position="relative",ue=!0,de.paddingTop=ve):"intrinsic"===Z?(ce.display="inline-block",ce.position="relative",ce.maxWidth="100%",ue=!0,de.maxWidth="100%",Y="data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27".concat(ge,"%27%20height=%27").concat(me,"%27/%3e")):"fixed"===Z&&(ce.display="inline-block",ce.position="relative",ce.width=ge,ce.height=me)}else 0;var we={src:w,srcSet:void 0,sizes:void 0};se&&(we=A({config:H,src:i,unoptimized:p,layout:Z,width:ge,quality:pe,sizes:l,loader:T}));var ze=i;0;0;var Se=(n(t={},"imagesrcset",we.srcSet),n(t,"imagesizes",we.sizes),t),Ae=d.default.useLayoutEffect,xe=d.useRef(W),ke=d.useRef(i);d.useEffect((function(){xe.current=W}),[W]),Ae((function(){ke.current!==i&&(le(),ke.current=i)}),[le,i]);var Ee=r({isLazy:X,imgAttributes:we,heightInt:me,widthInt:ge,qualityInt:pe,layout:Z,className:L,imgStyle:he,blurStyle:ye,loading:E,config:H,unoptimized:p,placeholder:D,loader:T,srcString:ze,onLoadingCompleteRef:xe,setBlurComplete:ie,setIntersection:oe,isVisible:se,noscriptSizes:l},G);return d.default.createElement(d.default.Fragment,null,d.default.createElement("span",{style:ce},ue?d.default.createElement("span",{style:de},Y?d.default.createElement("img",{style:{display:"block",maxWidth:"100%",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},alt:"","aria-hidden":!0,src:Y}):null):null,d.default.createElement(j,Object.assign({},Ee))),z?d.default.createElement(u.default,null,d.default.createElement("link",Object.assign({key:"__nimg-"+we.src+we.srcSet+we.sizes,rel:"preload",as:"image",href:we.srcSet?void 0:we.src},Se))):null)};var r=i(6495).Z,l=i(92648).Z,s=i(91598).Z,c=i(17273).Z,d=s(i(67294)),u=l(i(72717)),f=i(48187),g=i(90639),m=i(89239),p=(i(99475),i(24969));var h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/academy/_next/image",loader:"default",dangerouslyAllowSVG:!1}||{},y=h.experimentalUnoptimized,b={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/academy/_next/image",loader:"default",dangerouslyAllowSVG:!1},v=new Set,w=(new Map,"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");var z=new Map([["default",function(e){var t=e.config,i=e.src,n=e.width,a=e.quality;0;if(i.endsWith(".svg")&&!t.dangerouslyAllowSVG)return i;return"".concat(p.normalizePathTrailingSlash(t.path),"?url=").concat(encodeURIComponent(i),"&w=").concat(n,"&q=").concat(a||75)}],["imgix",function(e){var t=e.config,i=e.src,n=e.width,a=e.quality,o=new URL("".concat(t.path).concat(I(i))),r=o.searchParams;r.set("auto",r.getAll("auto").join(",")||"format"),r.set("fit",r.get("fit")||"max"),r.set("w",r.get("w")||n.toString()),a&&r.set("q",a.toString());return o.href}],["cloudinary",function(e){var t=e.config,i=e.src,n=e.width,a=e.quality,o=["f_auto","c_limit","w_"+n,"q_"+(a||"auto")].join(",")+"/";return"".concat(t.path).concat(o).concat(I(i))}],["akamai",function(e){var t=e.config,i=e.src,n=e.width;return"".concat(t.path).concat(I(i),"?imwidth=").concat(n)}],["custom",function(e){var t=e.src;throw new Error('Image with src "'.concat(t,'" is missing "loader" prop.')+"\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader")}]]);function S(e){return void 0!==e.default}function A(e){var t=e.config,i=e.src,n=e.unoptimized,a=e.layout,r=e.width,l=e.quality,s=e.sizes,c=e.loader;if(n)return{src:i,srcSet:void 0,sizes:void 0};var d=function(e,t,i,n){var a=e.deviceSizes,r=e.allSizes;if(n&&("fill"===i||"responsive"===i)){for(var l,s=/(^|\s)(1?\d?\d)vw/g,c=[];l=s.exec(n);l)c.push(parseInt(l[2]));if(c.length){var d=.01*Math.min.apply(Math,c);return{widths:r.filter((function(e){return e>=a[0]*d})),kind:"w"}}return{widths:r,kind:"w"}}return"number"!==typeof t||"fill"===i||"responsive"===i?{widths:a,kind:"w"}:{widths:o(new Set([t,2*t].map((function(e){return r.find((function(t){return t>=e}))||r[r.length-1]})))),kind:"x"}}(t,r,a,s),u=d.widths,f=d.kind,g=u.length-1;return{sizes:s||"w"!==f?s:"100vw",srcSet:u.map((function(e,n){return"".concat(c({config:t,src:i,quality:l,width:e})," ").concat("w"===f?e:n+1).concat(f)})).join(", "),src:c({config:t,src:i,quality:l,width:u[g]})}}function x(e){return"number"===typeof e?e:"string"===typeof e?parseInt(e,10):void 0}function k(e){var t,i=(null==(t=e.config)?void 0:t.loader)||"default",n=z.get(i);if(n)return n(e);throw new Error('Unknown "loader" found in "next.config.js". Expected: '.concat(f.VALID_LOADERS.join(", "),". Received: ").concat(i))}function E(e,t,i,n,a,o){e&&e.src!==w&&e["data-loaded-src"]!==t&&(e["data-loaded-src"]=t,("decode"in e?e.decode():Promise.resolve()).catch((function(){})).then((function(){if(e.parentNode&&(v.add(t),"blur"===n&&o(!0),null==a?void 0:a.current)){var i=e.naturalWidth,r=e.naturalHeight;a.current({naturalWidth:i,naturalHeight:r})}})))}var j=function(e){var t=e.imgAttributes,i=(e.heightInt,e.widthInt),n=e.qualityInt,a=e.layout,o=e.className,l=e.imgStyle,s=e.blurStyle,u=e.isLazy,f=e.placeholder,g=e.loading,m=e.srcString,p=e.config,h=e.unoptimized,y=e.loader,b=e.onLoadingCompleteRef,v=e.setBlurComplete,w=e.setIntersection,z=e.onLoad,S=e.onError,x=(e.isVisible,e.noscriptSizes),k=c(e,["imgAttributes","heightInt","widthInt","qualityInt","layout","className","imgStyle","blurStyle","isLazy","placeholder","loading","srcString","config","unoptimized","loader","onLoadingCompleteRef","setBlurComplete","setIntersection","onLoad","onError","isVisible","noscriptSizes"]);return g=u?"lazy":g,d.default.createElement(d.default.Fragment,null,d.default.createElement("img",Object.assign({},k,t,{decoding:"async","data-nimg":a,className:o,style:r({},l,s),ref:d.useCallback((function(e){w(e),(null==e?void 0:e.complete)&&E(e,m,0,f,b,v)}),[w,m,a,f,b,v]),onLoad:function(e){E(e.currentTarget,m,0,f,b,v),z&&z(e)},onError:function(e){"blur"===f&&v(!0),S&&S(e)}})),(u||"blur"===f)&&d.default.createElement("noscript",null,d.default.createElement("img",Object.assign({},k,A({config:p,src:m,unoptimized:h,layout:a,width:i,quality:n,sizes:x,loader:y}),{decoding:"async","data-nimg":a,style:l,className:o,loading:g}))))};function I(e){return"/"===e[0]?e.slice(1):e}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},930:function(e){e.exports=function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e},e.exports.default=e.exports,e.exports.__esModule=!0},25675:function(e,t,i){e.exports=i(78566)}}]);