{"version":3,"sources":["../../../../src/build/webpack/loaders/next-metadata-image-loader.ts"],"names":["raw","nextMetadataImageLoader","content","options","getOptions","type","segment","pageExtensions","basePath","resourcePath","rootContext","context","name","fileNameBase","ext","path","parse","useNumericSizes","extension","slice","opts","contentHash","loaderUtils","interpolateName","interpolatedName","isDynamicResource","includes","pageSegment","hashQuery","pathnamePrefix","normalizePathSep","join","mod","Promise","res","rej","loadModule","err","_source","_sourceMap","module","exportedFieldsExcludingDefault","dependencies","filter","dep","constructor","map","field","JSON","stringify","WEBPACK_RESOURCE_QUERIES","metadataImageMeta","imageSize","getImageSize","catch","Error","imageData","imageExtMimeTypeMap","width","height","sizes","altPath","dirname","existsSync","alt","fs","readFile"],"mappings":"AAAA;;CAEC;;;;;;;;;;;;;;;IAyMYA,GAAG;eAAHA;;IACb,OAAsC;eAAtC;;;oBAnM2C;6DAC1B;qEACO;gCACK;0BACO;2BACK;kCACR;;;;;;AASjC,uBAAuB;AACvB,+EAA+E;AAC/E,eAAeC,wBAAmCC,OAAe;IAC/D,MAAMC,UAAmB,IAAI,CAACC,UAAU;IACxC,MAAM,EAAEC,IAAI,EAAEC,OAAO,EAAEC,cAAc,EAAEC,QAAQ,EAAE,GAAGL;IACpD,MAAM,EAAEM,YAAY,EAAEC,aAAaC,OAAO,EAAE,GAAG,IAAI;IACnD,MAAM,EAAEC,MAAMC,YAAY,EAAEC,GAAG,EAAE,GAAGC,aAAI,CAACC,KAAK,CAACP;IAC/C,MAAMQ,kBAAkBZ,SAAS,aAAaA,SAAS;IAEvD,IAAIa,YAAYJ,IAAIK,KAAK,CAAC;IAC1B,IAAID,cAAc,OAAO;QACvBA,YAAY;IACd;IAEA,MAAME,OAAO;QAAET;QAAST;IAAQ;IAEhC,gCAAgC;IAChC,MAAMmB,cACJhB,SAAS,YACL,KACAiB,qBAAW,CAACC,eAAe,CAAC,IAAI,EAAE,iBAAiBH;IAEzD,MAAMI,mBAAmBF,qBAAW,CAACC,eAAe,CAClD,IAAI,EAC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