import{isStandardBasemap as i}from"../utilities/basemaps.js";import{checkArg as s}from"../utilities/checkArg.js";import{BaseMap as a}from"./BaseMap.js";export var WebSceneBaseMap;!function(e){e.toEsriApiBasemap=async function(e,p){s("json",e).isNotMissing();const o=await a.toEsriApiBasemap(e,p);return!i(o)&&e.hasOwnProperty("id")&&(o.id=e.id),o},e.applyToEsriApiBasemap=async function(e,p,o){s("json",e).isNotMissing(),s("basemap",p).isNotMissing(),await a.applyToEsriApiBasemap(e,p,o),!i(p)&&e.hasOwnProperty("id")&&(p.id=e.id)},e.fromEsriApiBasemap=function(i){return s("basemap",i).isNotMissing(),a.fromEsriApiBasemap(i)}}(WebSceneBaseMap||(WebSceneBaseMap={}));