export function emptyMapFlow(requestUrl: string | URL) { const range = new URL(requestUrl).searchParams.get("range") const recent = range === "1m" const rangeMinutes = recent ? 1 : range === "24h" ? 1440 : 5 return { hops: [], live: false, rangeMinutes, windowSec: recent ? 90 : rangeMinutes * 60, ...(recent ? {includesCurrentMinute: true} : {}), totalBytes: 0, namedBytes: 0, unclassifiedBytes: 0, asnLoaded: false, countryLoaded: false, services: [], serviceEdges: [], servicePaths: [], countries: [], countryEdges: [], countryPaths: [], countryServiceGroups: [], mapServiceMinSharePct: 5, dedupApplied: false, excludeMeshApplied: false, excludeOverlayApplied: false, } }