import { c, m, n, t } from "./chunk-IKP3YN53.js"; import { r } from "./chunk-GZT4BVFP.js"; // node_modules/@arcgis/core/config.js var r2 = { apiKey: void 0, applicationUrl: globalThis.location?.href, assetsPath: "", fontsUrl: "https://static.arcgis.com/fonts", geometryServiceUrl: "https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer", geoRSSServiceUrl: "https://utility.arcgis.com/sharing/rss", kmlServiceUrl: "https://utility.arcgis.com/sharing/kml", portalUrl: "https://www.arcgis.com", routeServiceUrl: "https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World", workers: { loaderConfig: { has: {}, paths: {}, map: {}, packages: [] } }, request: { crossOriginNoCorsDomains: null, httpsDomains: ["arcgis.com", "arcgisonline.com", "esrikr.com", "premiumservices.blackbridge.com", "esripremium.accuweather.com", "gbm.digitalglobe.com", "firstlook.digitalglobe.com", "msi.digitalglobe.com"], interceptors: [], maxUrlLength: 2e3, priority: "high", proxyRules: [], proxyUrl: null, timeout: 6e4, trustedServers: [], useIdentity: true }, log: { interceptors: [], level: null } }; if (globalThis.esriConfig && (n(r2, globalThis.esriConfig, true), delete r2.has), !r2.assetsPath) { const e2 = "4.24.7"; r2.assetsPath = `https://js.arcgis.com/${e2.slice(0, -2)}/@arcgis/core/assets`; } r2.baseUrl && console.warn("[esri.config]", "baseUrl has been replaced by assetsPath"), Object.defineProperty(r2, "baseUrl", { set() { console.warn("[esri.config]", "baseUrl has been replaced by assetsPath"); } }), r2.request.corsEnabledServers = [], r2.request.corsEnabledServers.push = function() { return console.warn("[esri.config]", "request.corsEnabledServers is not supported and will be removed in a future release. See http://esriurl.com/cors8664"), 0; }; // node_modules/@arcgis/core/core/Logger.js var o = { info: 0, warn: 1, error: 2, none: 3 }; var s = class { constructor(e2) { this.level = null, this._module = "", this._parent = null, this.writer = null, this._loggedMessages = { error: new Map(), warn: new Map(), info: new Map() }, e2.level != null && (this.level = e2.level), e2.writer != null && (this.writer = e2.writer), this._module = e2.module, s._loggers[this.module] = this; const t2 = this.module.lastIndexOf("."); t2 !== -1 && (this._parent = s.getLogger(this.module.slice(0, t2))); } get module() { return this._module; } get parent() { return this._parent; } error(...e2) { this._log("error", "always", ...e2); } warn(...e2) { this._log("warn", "always", ...e2); } info(...e2) { this._log("info", "always", ...e2); } errorOnce(...e2) { this._log("error", "once", ...e2); } warnOnce(...e2) { this._log("warn", "once", ...e2); } infoOnce(...e2) { this._log("info", "once", ...e2); } errorOncePerTick(...e2) { this._log("error", "oncePerTick", ...e2); } warnOncePerTick(...e2) { this._log("warn", "oncePerTick", ...e2); } infoOncePerTick(...e2) { this._log("info", "oncePerTick", ...e2); } get test() { const e2 = this; return { loggedMessages: e2._loggedMessages, clearLoggedWarnings: () => e2._loggedMessages.warn.clear() }; } static get testSingleton() { return { resetLoggers(e2 = {}) { const t2 = s._loggers; return s._loggers = e2, t2; }, set throttlingDisabled(e2) { s._throttlingDisabled = e2; } }; } static getLogger(e2) { let t2 = s._loggers[e2]; return t2 || (t2 = new s({ module: e2 })), t2; } _log(t2, r3, ...o2) { if (!this._matchLevel(t2)) return; if (r3 !== "always" && !s._throttlingDisabled) { const e2 = this._argsToKey(o2), n2 = this._loggedMessages[t2].get(e2); if (r3 === "once" && n2 != null || r3 === "oncePerTick" && n2 && n2 >= s._tickCounter) return; this._loggedMessages[t2].set(e2, s._tickCounter), s._scheduleTickCounterIncrement(); } for (const s4 of r2.log.interceptors) if (s4(t2, this.module, ...o2)) return; this._inheritedWriter()(t2, this.module, ...o2); } _parentWithMember(e2, r3) { let o2 = this; for (; r(o2); ) { const r4 = o2[e2]; if (r(r4)) return r4; o2 = o2.parent; } return r3; } _inheritedWriter() { return this._parentWithMember("writer", this._consoleWriter); } _consoleWriter(e2, t2, ...r3) { console[e2](`[${t2}]`, ...r3); } _matchLevel(t2) { const r3 = r2.log.level ? r2.log.level : "warn"; return o[this._parentWithMember("level", r3)] <= o[t2]; } _argsToKey(...e2) { const t2 = (e3, t3) => typeof t3 != "object" || Array.isArray(t3) ? t3 : "[Object]"; return c(JSON.stringify(e2, t2)); } static _scheduleTickCounterIncrement() { s._tickCounterScheduled || (s._tickCounterScheduled = true, Promise.resolve().then(() => { s._tickCounter++, s._tickCounterScheduled = false; })); } }; s._loggers = {}, s._tickCounter = 0, s._tickCounterScheduled = false, s._throttlingDisabled = false; // node_modules/@arcgis/core/core/Message.js function e(e2, s4) { return e2.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g, (e3, r3) => { if (r3 === "") return "$"; const i = t(r3, s4), n2 = i == null ? "" : i; if (n2 === void 0) throw new Error(`could not find key "${r3}" in template`); return n2.toString(); }); } var s2 = class { constructor(t2, r3, i) { this.name = t2, this.details = i, this.message = void 0, this instanceof s2 && (this.message = r3 && e(r3, i) || ""); } toString() { return "[" + this.name + "]: " + this.message; } }; // node_modules/@arcgis/core/core/Error.js var s3 = class extends s2 { constructor(e2, t2, r3) { if (super(e2, t2, r3), !(this instanceof s3)) return new s3(e2, t2, r3); } toJSON() { if (this.details != null) try { return { name: this.name, message: this.message, details: JSON.parse(JSON.stringify(this.details, (t2, r3) => { if (r3 && typeof r3 == "object" && typeof r3.toJSON == "function") return r3; try { return m(r3); } catch (s4) { return "[object]"; } })) }; } catch (r3) { throw s.getLogger("esri.core.Error").error(r3), r3; } return { name: this.name, message: this.message, details: this.details }; } static fromJSON(e2) { return new s3(e2.name, e2.message, e2.details); } }; s3.prototype.type = "error"; export { r2 as r, s, s2, s3 }; //# sourceMappingURL=chunk-EMJ4ZSM2.js.map