/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
class e{constructor(e,o,s){this._coverage=new Map;const r=s?e.getTileCoverage(s,0,!0,"closest"):null,t=e.getTileCoverage(o,0,!0,"closest");if(!t)throw new Error("InternalError: Target coverage should be defined");const a=Array.from(t.keys()),i=new Map;for(const c of a)i.set(c.id,c);if(r)for(const c of r.keys())a.some(e=>e.containsChild(c)||c.containsChild(e))||i.set(c.id,c);this._coverage=i}*values(){yield*this._coverage.values()}*keys(){yield*this._coverage.keys()}}export{e as TileCombinedCoverage};
