import{assertNever as r}from"../utilities/checkArg.js";export var MediaType;function e(e,t){const a=e;switch(a){case"image":return"image";case"bar-chart":return"barchart";case"column-chart":return"columnchart";case"line-chart":return"linechart";case"pie-chart":return"piechart";default:return r(a,t)}}function t(e,t){const a=e;switch(a){case"image":return"image";case"barchart":return"bar-chart";case"columnchart":return"column-chart";case"linechart":return"line-chart";case"piechart":return"pie-chart";default:return r(a,t)}}!function(r){r.fromEsriApiMediaType=function(r){return!!t(r)?r:e(r,new Error("Unrecognized media type."))},r.toEsriApiMediaType=function(r){return!!e(r)?r:t(r,new Error("Unrecognized media type."))}}(MediaType||(MediaType={}));