chunk-E5O6P5I2.js 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. import {
  2. c,
  3. n,
  4. t,
  5. y
  6. } from "./chunk-SPWQ3AWG.js";
  7. import {
  8. r
  9. } from "./chunk-YXWMMD76.js";
  10. // node_modules/@arcgis/core/config.js
  11. var _a;
  12. var s = { analysisTheme: { accentColor: [255, 128, 0], textColor: "white" }, apiKey: void 0, applicationUrl: (_a = globalThis.location) == null ? void 0 : _a.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 } };
  13. if (globalThis.esriConfig && (n(s, globalThis.esriConfig, true), delete s.has), !s.assetsPath) {
  14. {
  15. const e2 = "4.25.5";
  16. s.assetsPath = `https://js.arcgis.com/${e2.slice(0, -2)}/@arcgis/core/assets`;
  17. }
  18. s.defaultAssetsPath = s.assetsPath;
  19. }
  20. // node_modules/@arcgis/core/core/Logger.js
  21. var o = { info: 0, warn: 1, error: 2, none: 3 };
  22. var s2 = class {
  23. constructor(e2) {
  24. this.level = null, this._module = "", this._parent = null, this.writer = null, this._loggedMessages = { error: /* @__PURE__ */ new Map(), warn: /* @__PURE__ */ new Map(), info: /* @__PURE__ */ new Map() }, null != e2.level && (this.level = e2.level), null != e2.writer && (this.writer = e2.writer), this._module = e2.module, s2._loggers[this.module] = this;
  25. const t2 = this.module.lastIndexOf(".");
  26. -1 !== t2 && (this._parent = s2.getLogger(this.module.slice(0, t2)));
  27. }
  28. get module() {
  29. return this._module;
  30. }
  31. get parent() {
  32. return this._parent;
  33. }
  34. error(...e2) {
  35. this._log("error", "always", ...e2);
  36. }
  37. warn(...e2) {
  38. this._log("warn", "always", ...e2);
  39. }
  40. info(...e2) {
  41. this._log("info", "always", ...e2);
  42. }
  43. errorOnce(...e2) {
  44. this._log("error", "once", ...e2);
  45. }
  46. warnOnce(...e2) {
  47. this._log("warn", "once", ...e2);
  48. }
  49. infoOnce(...e2) {
  50. this._log("info", "once", ...e2);
  51. }
  52. errorOncePerTick(...e2) {
  53. this._log("error", "oncePerTick", ...e2);
  54. }
  55. warnOncePerTick(...e2) {
  56. this._log("warn", "oncePerTick", ...e2);
  57. }
  58. infoOncePerTick(...e2) {
  59. this._log("info", "oncePerTick", ...e2);
  60. }
  61. get test() {
  62. const e2 = this;
  63. return { loggedMessages: e2._loggedMessages, clearLoggedWarnings: () => e2._loggedMessages.warn.clear() };
  64. }
  65. static get testSingleton() {
  66. return { resetLoggers(e2 = {}) {
  67. const t2 = s2._loggers;
  68. return s2._loggers = e2, t2;
  69. }, set throttlingDisabled(e2) {
  70. s2._throttlingDisabled = e2;
  71. } };
  72. }
  73. static getLogger(e2) {
  74. let t2 = s2._loggers[e2];
  75. return t2 || (t2 = new s2({ module: e2 })), t2;
  76. }
  77. _log(t2, r3, ...o2) {
  78. if (!this._matchLevel(t2))
  79. return;
  80. if ("always" !== r3 && !s2._throttlingDisabled) {
  81. const e2 = this._argsToKey(o2), n2 = this._loggedMessages[t2].get(e2);
  82. if ("once" === r3 && null != n2 || "oncePerTick" === r3 && n2 && n2 >= s2._tickCounter)
  83. return;
  84. this._loggedMessages[t2].set(e2, s2._tickCounter), s2._scheduleTickCounterIncrement();
  85. }
  86. for (const s4 of s.log.interceptors)
  87. if (s4(t2, this.module, ...o2))
  88. return;
  89. this._inheritedWriter()(t2, this.module, ...o2);
  90. }
  91. _parentWithMember(e2, r3) {
  92. let o2 = this;
  93. for (; r(o2); ) {
  94. const r4 = o2[e2];
  95. if (r(r4))
  96. return r4;
  97. o2 = o2.parent;
  98. }
  99. return r3;
  100. }
  101. _inheritedWriter() {
  102. return this._parentWithMember("writer", this._consoleWriter);
  103. }
  104. _consoleWriter(e2, t2, ...r3) {
  105. console[e2](`[${t2}]`, ...r3);
  106. }
  107. _matchLevel(t2) {
  108. const r3 = s.log.level ? s.log.level : "warn";
  109. return o[this._parentWithMember("level", r3)] <= o[t2];
  110. }
  111. _argsToKey(...e2) {
  112. const t2 = (e3, t3) => "object" != typeof t3 || Array.isArray(t3) ? t3 : "[Object]";
  113. return c(JSON.stringify(e2, t2));
  114. }
  115. static _scheduleTickCounterIncrement() {
  116. s2._tickCounterScheduled || (s2._tickCounterScheduled = true, Promise.resolve().then(() => {
  117. s2._tickCounter++, s2._tickCounterScheduled = false;
  118. }));
  119. }
  120. };
  121. s2._loggers = {}, s2._tickCounter = 0, s2._tickCounterScheduled = false, s2._throttlingDisabled = false;
  122. // node_modules/@arcgis/core/core/Message.js
  123. function e(e2, r3) {
  124. return e2.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g, (e3, s4) => {
  125. if ("" === s4)
  126. return "$";
  127. const n2 = t(s4, r3), i = n2 != null ? n2 : "";
  128. if (void 0 === i)
  129. throw new Error(`could not find key "${s4}" in template`);
  130. return i.toString();
  131. });
  132. }
  133. var r2 = class {
  134. constructor(t2, s4, n2) {
  135. var _a2;
  136. this.name = t2, this.details = n2, this instanceof r2 && (this.message = (_a2 = s4 && e(s4, n2)) != null ? _a2 : "");
  137. }
  138. toString() {
  139. return "[" + this.name + "]: " + this.message;
  140. }
  141. };
  142. // node_modules/@arcgis/core/core/Error.js
  143. var s3 = class extends r2 {
  144. constructor(e2, t2, r3) {
  145. if (super(e2, t2, r3), !(this instanceof s3))
  146. return new s3(e2, t2, r3);
  147. }
  148. toJSON() {
  149. if (null != this.details)
  150. try {
  151. return { name: this.name, message: this.message, details: JSON.parse(JSON.stringify(this.details, (t2, r3) => {
  152. if (r3 && "object" == typeof r3 && "function" == typeof r3.toJSON)
  153. return r3;
  154. try {
  155. return y(r3);
  156. } catch (s4) {
  157. return "[object]";
  158. }
  159. })) };
  160. } catch (r3) {
  161. throw s2.getLogger("esri.core.Error").error(r3), r3;
  162. }
  163. return { name: this.name, message: this.message, details: this.details };
  164. }
  165. static fromJSON(e2) {
  166. return new s3(e2.name, e2.message, e2.details);
  167. }
  168. };
  169. s3.prototype.type = "error";
  170. export {
  171. s,
  172. s2,
  173. r2 as r,
  174. s3
  175. };
  176. //# sourceMappingURL=chunk-E5O6P5I2.js.map