(self.webpackChunkmetanno=self.webpackChunkmetanno||[]).push([[88,707],{4088:(e,r,n)=>{var t=n(8893);e.exports=function(e,r,n){const u=t.useRef("loading"),c=t.useRef(),[o,a]=t.useState(0),i=t.useRef(),s=t.useRef(),d=t.useRef();return i.current===e&&s.current===r&&d.current===n||(u.current="loading",c.current=void 0,i.current=e,s.current=r,d.current=n),t.useLayoutEffect(function(){if(e){var t=document.createElement("img");return t.addEventListener("load",o),t.addEventListener("error",i),r&&(t.crossOrigin=r),n&&(t.referrerPolicy=n),t.src=e,function(){t.removeEventListener("load",o),t.removeEventListener("error",i)}}function o(){t.decode().catch(()=>{}).finally(()=>{u.current="loaded",c.current=t,a(Math.random())})}function i(){u.current="failed",c.current=void 0,a(Math.random())}},[e,r,n]),[c.current,u.current]}}}]);