{"version":3,"file":"choose-accept-header-format.mjs","names":[],"sources":["../../../src/utils/media/choose-accept-header-format.ts"],"sourcesContent":["const chooseAcceptHeaderFormat = (\n\taccept: string | undefined,\n\tqueryFormat?: \"avif\" | \"webp\" | \"jpeg\" | \"png\" | undefined,\n) => {\n\tif (queryFormat) return queryFormat;\n\n\tif (accept) {\n\t\tif (accept.includes(\"image/webp\")) return \"webp\";\n\t\tif (accept.includes(\"image/avif\")) return \"avif\";\n\t}\n\n\treturn undefined;\n};\n\nexport default chooseAcceptHeaderFormat;\n"],"mappings":"AAAA,MAAM,GACL,EACA,IACI,CACJ,GAAI,EAAa,OAAO,EAExB,GAAI,EAAQ,CACX,GAAI,EAAO,SAAS,YAAY,EAAG,MAAO,OAC1C,GAAI,EAAO,SAAS,YAAY,EAAG,MAAO,MAC3C,CAGD"}