/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
class t{constructor(){this._store=new Map,this._priorities=new Map}get size(){return this._store.size}setPriorityOrderByKey(t){this._priorities.clear();for(let r=t.length-1;r>=0;r--)this._priorities.set(t[r],t.length-r)}hasLowerPriority(t){const r=this._priorities.get(t);if(null==r)return!0;for(const[e]of this._store){const t=this._priorities.get(e);if(null==t||t<r)return!0}return!1}someFromLowestToHighestPriority(t){const{_priorities:r}=this;for(const[e,s]of this._store)if(!r.has(e)&&t(s,e))return!0;for(const[e]of r){const r=this._store.get(e);if(r&&t(r,e))return!0}return!1}set(t,r){this._store.set(t,r)}delete(t){return this._store.delete(t)}get(t){return this._store.get(t)}has(t){return this._store.has(t)}clear(){this._store.clear()}values(){return this._store.values()}[Symbol.iterator](){return this._store[Symbol.iterator]()}}export{t as FeatureServiceTileCache};
