@arcgis/coding-components 4.34.0-next.77 → 4.34.0-next.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addons.js +1 -1
- package/dist/cdn/{QNNZU4YZ.js → 3HJPB7PE.js} +2 -2
- package/dist/cdn/{CMFS5BCJ.js → 4CMQCWF3.js} +2 -2
- package/dist/cdn/{UAUP33B5.js → 5AX5ZWSE.js} +2 -2
- package/dist/cdn/{GNVQAON3.js → 5E6XQXFC.js} +2 -2
- package/dist/cdn/{MHLG6BD2.js → 5L5VZ25Z.js} +2 -2
- package/dist/cdn/{QTS7JSQZ.js → 64ECPT2B.js} +2 -2
- package/dist/cdn/{A2R2ACHG.js → 6HA5LX57.js} +2 -2
- package/dist/cdn/{RZHXJ7QI.js → D2SB375W.js} +2 -2
- package/dist/cdn/{E4BBTGJB.js → DG5Y7YGF.js} +2 -2
- package/dist/cdn/{FNZV6UGQ.js → DLFMJFTK.js} +2 -2
- package/dist/cdn/{DMRYKO7Z.js → DY5VZEZR.js} +1 -1
- package/dist/cdn/{PVYEBCJ6.js → E6CRKLXF.js} +1 -1
- package/dist/cdn/{KZHZPFSC.js → EZ7SEE34.js} +2 -2
- package/dist/cdn/{CSZTUHWV.js → F4CIAODS.js} +2 -2
- package/dist/cdn/{5OJFAAVX.js → F5E26QCC.js} +2 -2
- package/dist/cdn/{GEC4ZQXG.js → FENYZUXY.js} +2 -2
- package/dist/cdn/{K2TE7NFB.js → FYGDSO3D.js} +1 -1
- package/dist/cdn/{NLRALLE3.js → GE5YX6IF.js} +1 -1
- package/dist/cdn/{FTJ2VK2E.js → H5EOVPGI.js} +1 -1
- package/dist/cdn/{3G22TD45.js → HDJWEUNK.js} +2 -2
- package/dist/cdn/{XCCQP2SS.js → HI33GJNK.js} +2 -2
- package/dist/cdn/{R3HM75ZD.js → HKXHPYI6.js} +2 -2
- package/dist/cdn/{7WHTR5IF.js → HV7Q73B7.js} +1 -1
- package/dist/cdn/{A55MAZXI.js → I3I2UDVF.js} +2 -2
- package/dist/cdn/{5GNDLQZI.js → ISRMBKEG.js} +2 -2
- package/dist/cdn/{RFNWKT4X.js → JOKMFNOU.js} +2 -2
- package/dist/cdn/{T5DIFVIL.js → MJG43LRE.js} +2 -2
- package/dist/cdn/{2B54DSLX.js → MLEUX6PS.js} +2 -2
- package/dist/cdn/{N7GCUG37.js → MNNVIM5X.js} +2 -2
- package/dist/cdn/{CIBFSNFV.js → NPFX4JDK.js} +2 -2
- package/dist/cdn/{YLUZ73KI.js → OHVFWQQ6.js} +2 -2
- package/dist/cdn/{4QBIYVRO.js → QDT7VB2J.js} +2 -2
- package/dist/cdn/{S43XUX56.js → QEZDJZ53.js} +2 -2
- package/dist/cdn/{TO63PGXX.js → TRECPQJX.js} +2 -2
- package/dist/cdn/{EMWJG2G7.js → U5IRKDEW.js} +1 -1
- package/dist/cdn/{EV2JJRIE.js → V2EQG6OD.js} +2 -2
- package/dist/cdn/{4QQRMEA6.js → VDTS37WV.js} +2 -2
- package/dist/cdn/{5SABNW6S.js → W3T727Q6.js} +2 -2
- package/dist/cdn/{HDLOE2CO.js → W56IE4JD.js} +2 -2
- package/dist/cdn/{52BFTPQM.js → WAIGFWZH.js} +4 -4
- package/dist/cdn/{6I6FCEKC.js → XYCIAQLT.js} +2 -2
- package/dist/cdn/{XSYFMTMA.js → Z63JX5YC.js} +2 -2
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +407 -411
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +1 -1
- package/dist/chunks/arcade-service-accessors.js +1 -1
- package/dist/chunks/editor.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +1 -1
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/setup-monaco.js +1 -1
- package/dist/chunks/sql-expr-contribution.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +5 -5
|
@@ -10609,7 +10609,7 @@ function Kde(r, e) {
|
|
|
10609
10609
|
const ia = { apiKey: void 0, apiKeys: { scopes: [] }, applicationName: "", 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", userPrivilegesApplied: !0, portalUrl: "https://www.arcgis.com", respectPrefersReducedMotion: !0, 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: [], internalInterceptors: [], maxUrlLength: 2e3, priority: "high", proxyRules: [], proxyUrl: null, timeout: 62e3, trustedServers: [], useIdentity: !0 }, log: { interceptors: [], level: null } };
|
|
10610
10610
|
if (globalThis.esriConfig && (CNe(ia, globalThis.esriConfig, !0), delete ia.has), !ia.assetsPath) {
|
|
10611
10611
|
{
|
|
10612
|
-
const r = "4.34.0-next.
|
|
10612
|
+
const r = "4.34.0-next.52";
|
|
10613
10613
|
ia.assetsPath = `https://cdn.jsdelivr.net/npm/@arcgis/core@${r}/assets`;
|
|
10614
10614
|
}
|
|
10615
10615
|
ia.defaultAssetsPath = ia.assetsPath;
|
|
@@ -20664,7 +20664,7 @@ async function agt(r) {
|
|
|
20664
20664
|
i.readAsDataURL(r), i.onload = () => e($3(i.result)), i.onerror = (n) => t(n);
|
|
20665
20665
|
});
|
|
20666
20666
|
}
|
|
20667
|
-
const lgt = /([^.]*)\.([^/]*)$/, ugt = "
|
|
20667
|
+
const lgt = /([^.]*)\.([^/]*)$/, ugt = "20250802", cgt = "589bc6c2f7b2ca14c4eb9dbf065cba393f4257e0";
|
|
20668
20668
|
Symbol.dispose ??= Symbol("Symbol.dispose"), Symbol.asyncDispose ??= Symbol("Symbol.asyncDispose");
|
|
20669
20669
|
const wpe = "4.34";
|
|
20670
20670
|
let Sa, c$e = wpe;
|
|
@@ -20675,7 +20675,7 @@ function str(r) {
|
|
|
20675
20675
|
const e = Sa?.findCredential(r);
|
|
20676
20676
|
return e?.token ? l$e(r, "token", e.token) : r;
|
|
20677
20677
|
}
|
|
20678
|
-
c$e = "4.34.0-next.
|
|
20678
|
+
c$e = "4.34.0-next.52", cr("host-webworker") || globalThis.$arcgis || Object.defineProperty(globalThis, "$arcgis", { configurable: !1, enumerable: !0, writable: !1, value: {} }), cr("host-webworker");
|
|
20679
20679
|
function y_(r, e) {
|
|
20680
20680
|
const t = e?.url?.path;
|
|
20681
20681
|
if (r && t && (r = dh(r, t, { preserveProtocolRelative: !0 }), e.portalItem && e.readResourcePaths)) {
|
|
@@ -20897,7 +20897,7 @@ function YVe(r) {
|
|
|
20897
20897
|
const t = MSe.get(e);
|
|
20898
20898
|
return t ? sgt(r, t) : r;
|
|
20899
20899
|
}
|
|
20900
|
-
async function
|
|
20900
|
+
async function hr(r, e) {
|
|
20901
20901
|
r instanceof URL && (r = r.toString()), e?.query instanceof URLSearchParams && (e.query = T$(e.query.toString().replaceAll("+", " ")));
|
|
20902
20902
|
const t = Ly(r), i = mS(r);
|
|
20903
20903
|
i || t || (r = Cy(r));
|
|
@@ -20925,11 +20925,11 @@ let kle, bgt = !1;
|
|
|
20925
20925
|
const dw = ia.request, wgt = "FormData" in globalThis, xtr = /* @__PURE__ */ new Set([499, 498, 403, 401]), Str = /* @__PURE__ */ new Set(["COM_0056", "COM_0057", "SB_0008"]), Ttr = [/\/arcgis\/tokens/i, /\/sharing(\/rest)?\/generatetoken/i, /\/rest\/info/i], Sj = () => null, Dle = Symbol();
|
|
20926
20926
|
function Itr(r) {
|
|
20927
20927
|
const e = Zv(r);
|
|
20928
|
-
e && !
|
|
20928
|
+
e && !hr._corsServers.includes(e) && hr._corsServers.push(e);
|
|
20929
20929
|
}
|
|
20930
20930
|
function XVe(r) {
|
|
20931
20931
|
const e = Zv(r);
|
|
20932
|
-
return !e || e.endsWith(".arcgis.com") ||
|
|
20932
|
+
return !e || e.endsWith(".arcgis.com") || hr._corsServers.includes(e) || n$e(e);
|
|
20933
20933
|
}
|
|
20934
20934
|
function nS(r, e, t, i) {
|
|
20935
20935
|
let n;
|
|
@@ -20954,7 +20954,7 @@ async function NSe() {
|
|
|
20954
20954
|
async function Etr(r) {
|
|
20955
20955
|
const e = r.params.url, t = r.params.requestOptions, i = r.controller.signal, n = t.body;
|
|
20956
20956
|
let s = null, o = null;
|
|
20957
|
-
if (wgt && "HTMLFormElement" in globalThis && (n instanceof FormData ? s = n : n instanceof HTMLFormElement && (s = new FormData(n))), typeof n == "string" && (o = n), r.fetchOptions = { cache: t.cacheBust ? "no-cache" : "default", credentials: "same-origin", headers: t.headers || {}, method: t.method === "head" ? "HEAD" : "GET", mode: "cors", priority: dw.priority, redirect: "follow", signal: i }, (s || o) && (r.fetchOptions.body = s || o), (bgt || t.authMode === "anonymous") && (r.useIdentity = !1), r.hasToken = !!(/token=/i.test(e) || t.query?.token || s?.get("token")), !r.hasToken) {
|
|
20957
|
+
if (wgt && "HTMLFormElement" in globalThis && (n instanceof FormData ? s = n : n instanceof HTMLFormElement && (s = new FormData(n))), typeof n == "string" && (o = n), r.fetchOptions = { cache: t.cacheBust ? "no-cache" : "default", credentials: "same-origin", headers: t.headers || {}, keepalive: t.keepAlive ?? !1, method: t.method === "head" ? "HEAD" : "GET", mode: "cors", priority: dw.priority, redirect: "follow", signal: i }, (s || o) && (r.fetchOptions.body = s || o), (bgt || t.authMode === "anonymous") && (r.useIdentity = !1), r.hasToken = !!(/token=/i.test(e) || t.query?.token || s?.get("token")), !r.hasToken) {
|
|
20958
20958
|
const a = p$e(e);
|
|
20959
20959
|
a && (t.query ??= {}, t.query.token = a, r.hasToken = !0);
|
|
20960
20960
|
}
|
|
@@ -20998,8 +20998,8 @@ async function Ptr(r) {
|
|
|
20998
20998
|
}, a));
|
|
20999
20999
|
try {
|
|
21000
21000
|
if (i.responseType === "native-request-init") c = n, c.url = t, i.signal ? c.signal = i.signal : delete c.signal;
|
|
21001
|
-
else if (i.responseType !== "image" || n.cache !== "default" || n.method !== "GET" || l || Atr(i.headers) || !s && !r.useProxy && dw.proxyUrl && !XVe(e)) {
|
|
21002
|
-
if (
|
|
21001
|
+
else if (i.responseType !== "image" || n.cache !== "default" || n.keepalive || n.method !== "GET" || l || Atr(i.headers) || !s && !r.useProxy && dw.proxyUrl && !XVe(e)) {
|
|
21002
|
+
if (hr._beforeFetch && await hr._beforeFetch(e, n), u = await fetch(t, n), hr._afterFetch && await hr._afterFetch(u), r.useProxy || Itr(e), i.responseType === "native") c = u;
|
|
21003
21003
|
else if (n.method !== "HEAD") if (u.ok) {
|
|
21004
21004
|
switch (o) {
|
|
21005
21005
|
case "array-buffer":
|
|
@@ -21080,7 +21080,7 @@ function ZVe(r, e) {
|
|
|
21080
21080
|
if (!t || t.getElementsByTagName("parsererror").length) throw new SyntaxError("XML Parse error");
|
|
21081
21081
|
return t;
|
|
21082
21082
|
}
|
|
21083
|
-
|
|
21083
|
+
hr._corsServers = ["https://server.arcgisonline.com", "https://services.arcgisonline.com"], hr._beforeFetch = void 0, hr._afterFetch = void 0;
|
|
21084
21084
|
const ktr = /* @__PURE__ */ new Map();
|
|
21085
21085
|
async function Dtr(r) {
|
|
21086
21086
|
const e = Ntr(r.params.url);
|
|
@@ -23790,7 +23790,7 @@ let _ir = 0, Ts = class extends ope(yP(jy)) {
|
|
|
23790
23790
|
async fetchAttributionData() {
|
|
23791
23791
|
const e = this.attributionDataUrl;
|
|
23792
23792
|
if (this.hasAttributionData && e)
|
|
23793
|
-
return (await
|
|
23793
|
+
return (await hr(e, { query: { f: "json" }, responseType: "json" })).data;
|
|
23794
23794
|
throw new be("layer:no-attribution-data", "Layer does not have attribution data");
|
|
23795
23795
|
}
|
|
23796
23796
|
};
|
|
@@ -25048,7 +25048,7 @@ let Li = class extends pp(jy) {
|
|
|
25048
25048
|
}
|
|
25049
25049
|
request(e, t = {}) {
|
|
25050
25050
|
const i = { f: "json", ...t.query }, { authMode: n = this.authMode === X_.AUTH_MODE_ANONYMOUS || this.authMode === X_.AUTH_MODE_NO_PROMPT ? this.authMode : "auto", body: s = null, cacheBust: o = !1, method: a = "auto", responseType: l = "json", signal: u } = t, c = { authMode: n, body: s, cacheBust: o, method: a, query: i, responseType: l, timeout: 0, signal: u };
|
|
25051
|
-
return t.withCredentials && (c.withCredentials = !0),
|
|
25051
|
+
return t.withCredentials && (c.withCredentials = !0), hr(this._normalizeSSL(e), c).then((h) => h.data);
|
|
25052
25052
|
}
|
|
25053
25053
|
toJSON() {
|
|
25054
25054
|
throw new be("internal:not-yet-implemented", "Portal.toJSON is not yet implemented");
|
|
@@ -26782,7 +26782,7 @@ let ysr = class {
|
|
|
26782
26782
|
const _sr = { async request(r, e) {
|
|
26783
26783
|
const t = r.options, i = t.responseType;
|
|
26784
26784
|
t.signal = e?.signal, t.responseType = i === "native" || i === "native-request-init" ? "native-request-init" : i && ["blob", "json", "text"].includes(i) && CSe(r.url)?.after ? i : "array-buffer";
|
|
26785
|
-
const n = await
|
|
26785
|
+
const n = await hr(r.url, t), s = { data: n.data, httpStatus: n.httpStatus, ssl: n.ssl };
|
|
26786
26786
|
switch (n.requestOptions?.responseType) {
|
|
26787
26787
|
case "native-request-init":
|
|
26788
26788
|
return delete s.data.signal, s;
|
|
@@ -26944,7 +26944,7 @@ async function Asr(r, e, t, i) {
|
|
|
26944
26944
|
}
|
|
26945
26945
|
async function VGe(r) {
|
|
26946
26946
|
if (GGe.fetchBundleAsset != null) return GGe.fetchBundleAsset(r);
|
|
26947
|
-
const e = await
|
|
26947
|
+
const e = await hr(r, { responseType: "text" });
|
|
26948
26948
|
return JSON.parse(e.data);
|
|
26949
26949
|
}
|
|
26950
26950
|
let ksr = class {
|
|
@@ -28706,7 +28706,7 @@ async function xar(r, e, t) {
|
|
|
28706
28706
|
let n = J0t.get(i);
|
|
28707
28707
|
if (!n) {
|
|
28708
28708
|
const s = r.replace(/\/FeatureServer/i, "/VersionManagementServer").replace(/\/\d*$/, "");
|
|
28709
|
-
n = (await
|
|
28709
|
+
n = (await hr(s, { responseType: "json", query: { f: "json" } })).data.defaultVersionName;
|
|
28710
28710
|
}
|
|
28711
28711
|
return n === e;
|
|
28712
28712
|
}
|
|
@@ -29349,7 +29349,7 @@ async function p1t(r, e) {
|
|
|
29349
29349
|
if (t?.currentVersion != null) return t.owningSystemUrl || null;
|
|
29350
29350
|
const i = r.toLowerCase().indexOf("/rest/services");
|
|
29351
29351
|
if (i === -1) return null;
|
|
29352
|
-
const n = `${r.slice(0, i)}/rest/info`, s = e != null ? e.signal : null, { data: o } = await
|
|
29352
|
+
const n = `${r.slice(0, i)}/rest/info`, s = e != null ? e.signal : null, { data: o } = await hr(n, { query: { f: "json" }, responseType: "json", signal: s });
|
|
29353
29353
|
return o?.owningSystemUrl || null;
|
|
29354
29354
|
}
|
|
29355
29355
|
function Gar(r) {
|
|
@@ -30439,7 +30439,7 @@ function e1e(r, e) {
|
|
|
30439
30439
|
}
|
|
30440
30440
|
function f6e(r, e) {
|
|
30441
30441
|
const t = { responseType: "json", query: { f: "json" }, ...e };
|
|
30442
|
-
return
|
|
30442
|
+
return hr(Cy(r), t);
|
|
30443
30443
|
}
|
|
30444
30444
|
const PHe = "esri_en", AHe = "Style", Ulr = "https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json";
|
|
30445
30445
|
var hV;
|
|
@@ -33542,7 +33542,7 @@ let U_t = class {
|
|
|
33542
33542
|
return new vm({ data: c });
|
|
33543
33543
|
}
|
|
33544
33544
|
async _fetchSymbolPart(e, t) {
|
|
33545
|
-
const i = await this.dictionaryInfo, n = (this.url + "/" + i.cimRefTemplateUrl).replaceAll(/\{itemName\}/gi, e), { data: s } = await
|
|
33545
|
+
const i = await this.dictionaryInfo, n = (this.url + "/" + i.cimRefTemplateUrl).replaceAll(/\{itemName\}/gi, e), { data: s } = await hr(n, { responseType: "json", query: { f: "json" }, ...t });
|
|
33546
33546
|
return s;
|
|
33547
33547
|
}
|
|
33548
33548
|
async _getSymbolPart(e, t) {
|
|
@@ -33613,7 +33613,7 @@ let R2 = lIe = class extends vD(l_) {
|
|
|
33613
33613
|
return `${this.url}-${JSON.stringify(this.fieldMap)}`;
|
|
33614
33614
|
}
|
|
33615
33615
|
async _fetchDictionaryInfo() {
|
|
33616
|
-
const { data: r } = await
|
|
33616
|
+
const { data: r } = await hr(this.url + "/resources/styles/dictionary-info.json", { responseType: "json", query: { f: "json" } });
|
|
33617
33617
|
return r;
|
|
33618
33618
|
}
|
|
33619
33619
|
};
|
|
@@ -34640,7 +34640,7 @@ const ku = (r) => {
|
|
|
34640
34640
|
if (!s?.owningSystemUrl) return null;
|
|
34641
34641
|
const o = `${s.owningSystemUrl}/sharing/rest`, a = Li.getDefault();
|
|
34642
34642
|
if (a && a.loaded && Cy(a.restUrl) === Cy(o)) return a.user;
|
|
34643
|
-
const l = `${o}/community/self`, u = i != null ? i.signal : null, c = await _D(
|
|
34643
|
+
const l = `${o}/community/self`, u = i != null ? i.signal : null, c = await _D(hr(l, { authMode: "no-prompt", query: { f: "json" }, signal: u }));
|
|
34644
34644
|
return c.ok ? ac.fromJSON(c.value.data) : null;
|
|
34645
34645
|
}
|
|
34646
34646
|
read(i, n) {
|
|
@@ -35497,7 +35497,7 @@ let Un = class extends $6e(aU(q8(Ohr(Fpe(gD(rc(lU(db(zZ(Gl(Vp(Fm(Ml(ku(oa(qp(hb(
|
|
|
35497
35497
|
}
|
|
35498
35498
|
}
|
|
35499
35499
|
_fetchFirstValidLayerId(e) {
|
|
35500
|
-
return
|
|
35500
|
+
return hr(this.url ?? "", { query: { f: "json", ...this.customParameters, token: this.apiKey }, responseType: "json", signal: e }).then((t) => {
|
|
35501
35501
|
const i = t.data;
|
|
35502
35502
|
if (i) return this.applyPreferredHost(i), this.findFirstValidLayerId(i);
|
|
35503
35503
|
});
|
|
@@ -35840,7 +35840,7 @@ let Sdr = 0, m1 = mV = class extends pp(jy) {
|
|
|
35840
35840
|
return this._set("resourceInfo", { data: i.baseMap ?? {}, context: { origin: Tdr[r.type || ""] ?? "web-map", portal: r.portal || Li.getDefault(), url: n } }), this.read(this.resourceInfo.data, this.resourceInfo.context), this.read({ spatialReference: i.spatialReference }, this.resourceInfo.context), this.read({ title: r.title, thumbnailUrl: r.thumbnailUrl }, { origin: "portal-item", portal: r.portal || Li.getDefault(), url: n }), this._loadLayersFromJSON(this.resourceInfo.data, n, e);
|
|
35841
35841
|
}
|
|
35842
35842
|
async _loadFromStylesService(r, e) {
|
|
35843
|
-
const t = r.serviceUrl.endsWith("/webmaps") ? r.serviceUrl.slice(0, -8) : r.serviceUrl, i = `${t}/styles/${r.id}/self`, n = `${t}/webmaps/${r.id}`, s = r.apiKey ?? ia.apiKeys.basemapStyles, [o, a] = await Promise.all([(await
|
|
35843
|
+
const t = r.serviceUrl.endsWith("/webmaps") ? r.serviceUrl.slice(0, -8) : r.serviceUrl, i = `${t}/styles/${r.id}/self`, n = `${t}/webmaps/${r.id}`, s = r.apiKey ?? ia.apiKeys.basemapStyles, [o, a] = await Promise.all([(await hr(i, { query: { token: s }, signal: e?.signal })).data, (await hr(n, { query: { language: r.languageParameter, places: r.places, worldview: r.worldview, token: s }, signal: e?.signal })).data]);
|
|
35844
35844
|
this.thumbnailUrl ??= o.thumbnailUrl;
|
|
35845
35845
|
const l = To(n);
|
|
35846
35846
|
if (this._set("resourceInfo", { data: a.baseMap ?? {}, context: { origin: "web-map", url: l } }), this.read(this.resourceInfo.data, this.resourceInfo.context), this.read({ spatialReference: a.spatialReference }, this.resourceInfo.context), await this._loadLayersFromJSON(this.resourceInfo.data, l, e), s) for (const u of [...this.baseLayers, ...this.groundLayers, ...this.referenceLayers]) "apiKey" in u && (u.apiKey = s);
|
|
@@ -36149,7 +36149,7 @@ let VI = class extends pp(NS) {
|
|
|
36149
36149
|
Array.isArray(e) ? this.geometries = DE.fromJSON(e, i) : i.hooks?.onAfterLoad?.(() => this._loadGeometries(y_(e, i), i));
|
|
36150
36150
|
}
|
|
36151
36151
|
async _loadGeometries(e, t) {
|
|
36152
|
-
const i = await
|
|
36152
|
+
const i = await hr(e, { responseType: "json" });
|
|
36153
36153
|
this.geometries = DE.fromJSON(i.data, t);
|
|
36154
36154
|
}
|
|
36155
36155
|
};
|
|
@@ -36698,7 +36698,7 @@ const lpr = zl(UT);
|
|
|
36698
36698
|
async function Z6e(r, e, t) {
|
|
36699
36699
|
e = lpr(e);
|
|
36700
36700
|
const i = Ks(r), n = { ...i.query, f: "json", ...e.toJSON() }, s = e.outSpatialReference, o = kc(e.geometries[0]), a = el(n, t);
|
|
36701
|
-
return
|
|
36701
|
+
return hr(i.path + "/project", a).then(({ data: { geometries: l } }) => Evt(l, o, s));
|
|
36702
36702
|
}
|
|
36703
36703
|
function upr(r, e) {
|
|
36704
36704
|
return e.resourceInfo ? Pvt(e, e.resourceInfo, { origin: r.origin }) : e.portalItem?.id ? cpr(r, e, e.portalItem) : Promise.resolve();
|
|
@@ -37128,7 +37128,7 @@ let V4 = class extends Nvt {
|
|
|
37128
37128
|
clearInterval(this._timer);
|
|
37129
37129
|
}
|
|
37130
37130
|
async checkJobStatus(e) {
|
|
37131
|
-
const t = { ...e, query: { f: "json" } }, { data: i } = await
|
|
37131
|
+
const t = { ...e, query: { f: "json" } }, { data: i } = await hr(this.statusUrl, t);
|
|
37132
37132
|
return this.read(i), this.editsResolver && this.editsResolver.resolve({ edits: null, addedFeatures: [], updatedFeatures: [], deletedFeatures: [], addedAttachments: [], updatedAttachments: [], deletedAttachments: [], exceededTransferLimit: !0, historicMoment: null }), this;
|
|
37133
37133
|
}
|
|
37134
37134
|
async waitForJobCompletion(e = {}) {
|
|
@@ -37253,7 +37253,7 @@ async function Dpr(r) {
|
|
|
37253
37253
|
!e.portalItem || e.portalItem instanceof ps || (e = { ...e, portalItem: new ps(e.portalItem) });
|
|
37254
37254
|
const t = e.portalItem;
|
|
37255
37255
|
if (await t.load(), t.type !== "Feature Service") throw new be("portal:unknown-item-type", "Unknown item type '${type}'", { type: t.type });
|
|
37256
|
-
const i = t.url, n = await
|
|
37256
|
+
const i = t.url, n = await hr(i, { responseType: "json", query: { f: "json" } }), s = "Network Layer";
|
|
37257
37257
|
if (n.data.type?.includes(s)) return OWe(n.data.type, i);
|
|
37258
37258
|
if (n.data.layers) {
|
|
37259
37259
|
const o = n.data.layers.find((a) => a.type.includes(s));
|
|
@@ -37389,7 +37389,7 @@ let vd = class extends oa(jy) {
|
|
|
37389
37389
|
if (!e.validateArea) throw new be("network:undefined-validateArea", "the network must have validateArea defined in the validate network topology parameters.");
|
|
37390
37390
|
if (!this.gdbVersion) {
|
|
37391
37391
|
const c = this.layerUrl.replace(/\/FeatureServer/i, "/VersionManagementServer").replace(/\/\d*$/, "");
|
|
37392
|
-
i = (await
|
|
37392
|
+
i = (await hr(c, { responseType: "json", query: { f: "json" } })).data.defaultVersionName;
|
|
37393
37393
|
}
|
|
37394
37394
|
const [{ submitValidateNetworkTopologyJob: n }, { default: s }] = await Promise.all([Promise.resolve().then(function() {
|
|
37395
37395
|
return gtt;
|
|
@@ -37410,12 +37410,12 @@ let vd = class extends oa(jy) {
|
|
|
37410
37410
|
return -1;
|
|
37411
37411
|
}
|
|
37412
37412
|
async _fetchLayerMetaData(e, t) {
|
|
37413
|
-
const i = await
|
|
37413
|
+
const i = await hr(e, { responseType: "json", query: { f: "json" }, ...t });
|
|
37414
37414
|
this.sourceJSON = i.data, this.read(i.data, { origin: "service" });
|
|
37415
37415
|
}
|
|
37416
37416
|
async _fetchDataElement(e, t, i) {
|
|
37417
37417
|
if (this.dataElement) return;
|
|
37418
|
-
const n = await
|
|
37418
|
+
const n = await hr(`${e}/queryDataElements`, { responseType: "json", query: { layers: JSON.stringify([t]), f: "json" }, ...i }).then((s) => s.data.layerDataElements?.[0]);
|
|
37419
37419
|
n && this.read(n, { origin: "service" });
|
|
37420
37420
|
}
|
|
37421
37421
|
};
|
|
@@ -37426,7 +37426,7 @@ m([x({ type: String, nonNullable: !0, json: { origins: { "web-map": { read: !0,
|
|
|
37426
37426
|
const Mpr = vd;
|
|
37427
37427
|
let G4 = class extends pp(jy) {
|
|
37428
37428
|
constructor(e) {
|
|
37429
|
-
super(e), this.rulesCategorized = { attachment: [], containment: [], connectivity: [] }, this.request =
|
|
37429
|
+
super(e), this.rulesCategorized = { attachment: [], containment: [], connectivity: [] }, this.request = hr;
|
|
37430
37430
|
}
|
|
37431
37431
|
initialize() {
|
|
37432
37432
|
}
|
|
@@ -37727,7 +37727,7 @@ let RM = class extends k1 {
|
|
|
37727
37727
|
clearInterval(this._timer);
|
|
37728
37728
|
}
|
|
37729
37729
|
async checkJobStatus(e) {
|
|
37730
|
-
const t = { ...e, query: { f: "json" } }, { data: i } = await
|
|
37730
|
+
const t = { ...e, query: { f: "json" } }, { data: i } = await hr(this.statusUrl, t), n = i.traceResults ? { ...i.traceResults, ...i } : i;
|
|
37731
37731
|
return this.read(n), this;
|
|
37732
37732
|
}
|
|
37733
37733
|
async waitForJobCompletion(e = {}) {
|
|
@@ -38218,7 +38218,7 @@ function pfr(r) {
|
|
|
38218
38218
|
return e == null ? [r, ""] : [r.slice(0, r.length - e.length - 1), `.${e}`];
|
|
38219
38219
|
}
|
|
38220
38220
|
async function use(r) {
|
|
38221
|
-
return r.type === "blob" ? r.blob : r.type === "json" ? new Blob([r.jsonString], { type: "application/json" }) : (await
|
|
38221
|
+
return r.type === "blob" ? r.blob : r.type === "json" ? new Blob([r.jsonString], { type: "application/json" }) : (await hr(r.url, { responseType: "blob" })).data;
|
|
38222
38222
|
}
|
|
38223
38223
|
function qvt(r, e) {
|
|
38224
38224
|
if (!r.hasPath()) return null;
|
|
@@ -41694,7 +41694,7 @@ let g1e = class extends SyntaxError {
|
|
|
41694
41694
|
function gyr(r, e) {
|
|
41695
41695
|
const t = {}, i = (e = e !== void 0 ? e : {}).grammarSource, n = { start: Jje };
|
|
41696
41696
|
let s = Jje;
|
|
41697
|
-
const o = "!", a = "=", l = ">=", u = ">", c = "<=", h = "<>", d = "!=", f = "||", _ = "@", v = "'", S = "N'", E = "''", A = ".", D = "null", k = "true", N = "false", O = "in", j = "is", B = "like", U = "escape", z = "not", Y = "and", Z = "or", ee = "between", te = "from", le = "for", ve = "substring", ye = "extract", Ce = "trim", ke = "position", Ue = "timestamp", Qe = "date", vt = "time", Tt = "leading", Bt = "trailing", Pt = "both", Lt = "cast", qt = "as", fr = "integer", Sr = "int", ti = "smallint", hi = "float", ri = "real", Ri = "varchar", Cr = "to", xi = "interval", Nr = "year", ut = "timezone_hour", Kr = "timezone_minute", Ki = "month", kr = "day", Mi = "hour", an = "minute", Hi = "second", qn = "dow", wn = "doy", oi = "week", Br = "case", Wr = "end", Pr = "when", pi = "then", I = "else", ue = ",", R = "(", w = ")", y = "`", p = /^[<-=]/, g = /^[+\-]/, b = /^[*\/]/, T = /^[A-Za-z_\x80-\uFFFF]/, C = /^[A-Za-z0-9_]/, P = /^[A-Za-z0-9_.\x80-\uFFFF]/, M = /^["]/, $ = /^[^']/, L = /^[0-9]/, q = /^[eE]/, J = /^[ \t\n\r]/, X = /^[^`]/, pe = Os("!", !1), Ee = Os("=", !1), Ke = Os(">=", !1), nt = Os(">", !1), Je = Os("<=", !1), ht = Os("<>", !1), Nt = mb([["<", "="]], !1, !1, !1), Dt = Os("!=", !1), Zt = mb(["+", "-"], !1, !1, !1), vr = Os("||", !1), Rr = mb(["*", "/"], !1, !1, !1), li = mb([["A", "Z"], ["a", "z"], "_", ["", ""]], !1, !1, !1), Qr = mb([["A", "Z"], ["a", "z"], ["0", "9"], "_"], !1, !1, !1), zr = mb([["A", "Z"], ["a", "z"], ["0", "9"], "_", ".", ["", ""]], !1, !1, !1), Lr = mb(['"'], !1, !1, !1), Xi = Os("@", !1), zi = Os("'", !1), Dr = Os("N'", !1), cn = Os("''", !1), F = mb(["'"], !0, !1, !1), Gr = Os(".", !1), Xn = mb([["0", "9"]], !1, !1, !1), Sn = mb(["e", "E"], !1, !1, !1), at = Os("NULL", !0), cs = Os("TRUE", !0), Fn = Os("FALSE", !0), ct = Os("IN", !0), Jn = Os("IS", !0), Us = Os("LIKE", !0), Es = Os("ESCAPE", !0), as = Os("NOT", !0), Xo = Os("AND", !0), rl = Os("OR", !0), Xa = Os("BETWEEN", !0), Ua = Os("FROM", !0), Xt = Os("FOR", !0), Xr = Os("SUBSTRING", !0), Jr = Os("EXTRACT", !0), Yi = Os("TRIM", !0), Ps = Os("POSITION", !0), Vn = Os("TIMESTAMP", !0), uo = Os("DATE", !0), $o = Os("TIME", !0), Du = Os("LEADING", !0), Ta = Os("TRAILING", !0), Ra = Os("BOTH", !0), Lo = Os("CAST", !0), zu = Os("AS", !0), wc = Os("INTEGER", !0), Ln = Os("INT", !0), Js = Os("SMALLINT", !0), ic = Os("FLOAT", !0), Tl = Os("REAL", !0), $l = Os("VARCHAR", !0), fu = Os("TO", !0), Ia = Os("INTERVAL", !0), Wl = Os("YEAR", !0), va = Os("TIMEZONE_HOUR", !0), fe = Os("TIMEZONE_MINUTE", !0), _e = Os("MONTH", !0), it = Os("DAY", !0), lt = Os("HOUR", !0), At = Os("MINUTE", !0), Qt = Os("SECOND", !0), ei = Os("DOW", !0),
|
|
41697
|
+
const o = "!", a = "=", l = ">=", u = ">", c = "<=", h = "<>", d = "!=", f = "||", _ = "@", v = "'", S = "N'", E = "''", A = ".", D = "null", k = "true", N = "false", O = "in", j = "is", B = "like", U = "escape", z = "not", Y = "and", Z = "or", ee = "between", te = "from", le = "for", ve = "substring", ye = "extract", Ce = "trim", ke = "position", Ue = "timestamp", Qe = "date", vt = "time", Tt = "leading", Bt = "trailing", Pt = "both", Lt = "cast", qt = "as", fr = "integer", Sr = "int", ti = "smallint", hi = "float", ri = "real", Ri = "varchar", Cr = "to", xi = "interval", Nr = "year", ut = "timezone_hour", Kr = "timezone_minute", Ki = "month", kr = "day", Mi = "hour", an = "minute", Hi = "second", qn = "dow", wn = "doy", oi = "week", Br = "case", Wr = "end", Pr = "when", pi = "then", I = "else", ue = ",", R = "(", w = ")", y = "`", p = /^[<-=]/, g = /^[+\-]/, b = /^[*\/]/, T = /^[A-Za-z_\x80-\uFFFF]/, C = /^[A-Za-z0-9_]/, P = /^[A-Za-z0-9_.\x80-\uFFFF]/, M = /^["]/, $ = /^[^']/, L = /^[0-9]/, q = /^[eE]/, J = /^[ \t\n\r]/, X = /^[^`]/, pe = Os("!", !1), Ee = Os("=", !1), Ke = Os(">=", !1), nt = Os(">", !1), Je = Os("<=", !1), ht = Os("<>", !1), Nt = mb([["<", "="]], !1, !1, !1), Dt = Os("!=", !1), Zt = mb(["+", "-"], !1, !1, !1), vr = Os("||", !1), Rr = mb(["*", "/"], !1, !1, !1), li = mb([["A", "Z"], ["a", "z"], "_", ["", ""]], !1, !1, !1), Qr = mb([["A", "Z"], ["a", "z"], ["0", "9"], "_"], !1, !1, !1), zr = mb([["A", "Z"], ["a", "z"], ["0", "9"], "_", ".", ["", ""]], !1, !1, !1), Lr = mb(['"'], !1, !1, !1), Xi = Os("@", !1), zi = Os("'", !1), Dr = Os("N'", !1), cn = Os("''", !1), F = mb(["'"], !0, !1, !1), Gr = Os(".", !1), Xn = mb([["0", "9"]], !1, !1, !1), Sn = mb(["e", "E"], !1, !1, !1), at = Os("NULL", !0), cs = Os("TRUE", !0), Fn = Os("FALSE", !0), ct = Os("IN", !0), Jn = Os("IS", !0), Us = Os("LIKE", !0), Es = Os("ESCAPE", !0), as = Os("NOT", !0), Xo = Os("AND", !0), rl = Os("OR", !0), Xa = Os("BETWEEN", !0), Ua = Os("FROM", !0), Xt = Os("FOR", !0), Xr = Os("SUBSTRING", !0), Jr = Os("EXTRACT", !0), Yi = Os("TRIM", !0), Ps = Os("POSITION", !0), Vn = Os("TIMESTAMP", !0), uo = Os("DATE", !0), $o = Os("TIME", !0), Du = Os("LEADING", !0), Ta = Os("TRAILING", !0), Ra = Os("BOTH", !0), Lo = Os("CAST", !0), zu = Os("AS", !0), wc = Os("INTEGER", !0), Ln = Os("INT", !0), Js = Os("SMALLINT", !0), ic = Os("FLOAT", !0), Tl = Os("REAL", !0), $l = Os("VARCHAR", !0), fu = Os("TO", !0), Ia = Os("INTERVAL", !0), Wl = Os("YEAR", !0), va = Os("TIMEZONE_HOUR", !0), fe = Os("TIMEZONE_MINUTE", !0), _e = Os("MONTH", !0), it = Os("DAY", !0), lt = Os("HOUR", !0), At = Os("MINUTE", !0), Qt = Os("SECOND", !0), ei = Os("DOW", !0), dr = Os("DOY", !0), Zr = Os("WEEK", !0), Ei = Os("CASE", !0), ui = Os("END", !0), Oi = Os("WHEN", !0), tn = Os("THEN", !0), gs = Os("ELSE", !0), ln = Os(",", !1), It = Os("(", !1), Ft = Os(")", !1), ur = mb([" ", " ", `
|
|
41698
41698
|
`, "\r"], !1, !1, !1), qr = Os("`", !1), _i = mb(["`"], !0, !1, !1);
|
|
41699
41699
|
function sn(W) {
|
|
41700
41700
|
return W;
|
|
@@ -42728,7 +42728,7 @@ function gyr(r, e) {
|
|
|
42728
42728
|
}
|
|
42729
42729
|
function cGt() {
|
|
42730
42730
|
let W, xe, De, _t;
|
|
42731
|
-
return W = Pe, xe = r.substr(Pe, 3), xe.toLowerCase() === wn ? Pe += 3 : (xe = t, Vr === 0 && Rn(
|
|
42731
|
+
return W = Pe, xe = r.substr(Pe, 3), xe.toLowerCase() === wn ? Pe += 3 : (xe = t, Vr === 0 && Rn(dr)), xe !== t ? (De = Pe, Vr++, _t = Vo(), Vr--, _t === t ? De = void 0 : (Pe = De, De = t), De !== t ? (di = W, W = Wqt()) : (Pe = W, W = t)) : (Pe = W, W = t), W;
|
|
42732
42732
|
}
|
|
42733
42733
|
function hGt() {
|
|
42734
42734
|
let W, xe, De, _t;
|
|
@@ -45794,7 +45794,7 @@ async function N0r(r, e, t) {
|
|
|
45794
45794
|
const i = e.toJSON();
|
|
45795
45795
|
i.contents = JSON.stringify(i.contents), i.token = await opr(e.portalUrl, e.apiKey, { signal: t?.signal, prompt: t?.authMode !== "no-prompt" });
|
|
45796
45796
|
const n = Ks(r), s = el(n.query, { ...t, query: i, method: "post", authMode: "anonymous" });
|
|
45797
|
-
return (await
|
|
45797
|
+
return (await hr(n.path, s)).data.results.map((o) => PC.fromJSON(o));
|
|
45798
45798
|
}
|
|
45799
45799
|
let N$ = class extends Ct {
|
|
45800
45800
|
constructor(e) {
|
|
@@ -51346,7 +51346,7 @@ let F_r = class $Ce {
|
|
|
51346
51346
|
}
|
|
51347
51347
|
async fetchSource(e) {
|
|
51348
51348
|
if (e.scheme === "portal") {
|
|
51349
|
-
const t = await
|
|
51349
|
+
const t = await hr(e.url, { responseType: "text", query: {} });
|
|
51350
51350
|
if (t.data) return Sue(t.data, []);
|
|
51351
51351
|
}
|
|
51352
51352
|
if (e.scheme === "mock") return Sue(e.data ?? "", []);
|
|
@@ -56053,12 +56053,8 @@ let XCe = class {
|
|
|
56053
56053
|
destroy() {
|
|
56054
56054
|
const e = this._load(), t = this.oAuthInfo;
|
|
56055
56055
|
if (t?.appId && t?.portalUrl && (this.expires == null || this.expires > Date.now()) && (this.refreshToken || this.token)) {
|
|
56056
|
-
const i = t.portalUrl.replace(/^http:/i, "https:") + "/sharing/rest/oauth2/revokeToken"
|
|
56057
|
-
|
|
56058
|
-
else {
|
|
56059
|
-
const s = new XMLHttpRequest();
|
|
56060
|
-
s.open("POST", i), s.send(n);
|
|
56061
|
-
}
|
|
56056
|
+
const i = t.portalUrl.replace(/^http:/i, "https:") + "/sharing/rest/oauth2/revokeToken";
|
|
56057
|
+
hr(i, { authMode: "anonymous", keepAlive: !0, method: "post", query: { f: "json", auth_token: this.refreshToken || this.token, client_id: t.appId, token_type_hint: this.refreshToken ? "refresh_token" : "access_token" } });
|
|
56062
56058
|
}
|
|
56063
56059
|
if (t?.authNamespace && t.portalUrl && this.storage) {
|
|
56064
56060
|
const i = e[t.authNamespace];
|
|
@@ -56241,7 +56237,7 @@ let Nxt = class extends Qpt {
|
|
|
56241
56237
|
let a, l, u, c, h, d, f, _;
|
|
56242
56238
|
t && (_ = this.tokenValidity || o || this._defaultTokenValidity, _ > o && o > 0 && (_ = o)), i && (a = i.isAdmin, l = i.serverUrl, u = i.token, d = i.signal, f = i.ssl, e.customParameters = i.customParameters), a ? c = e.adminTokenServiceUrl : (c = e.tokenServiceUrl, h = new Uf(c.toLowerCase()), e.webTierAuth && i?.serverUrl && !f && s.scheme === "http" && (lf(s.uri, c, !0) || h.scheme === "https" && s.host === h.host && s.port === "7080" && h.port === "7443") && (c = c.replace(/^https:/i, "http:").replace(/:7443/i, ":7080")));
|
|
56243
56239
|
const v = { query: { request: "getToken", username: t?.username, password: t?.password, serverUrl: l, token: u, expiration: _, referer: a || n ? this._appOrigin : null, client: a ? "referer" : null, f: "json", ...e.customParameters }, method: "post", authMode: "anonymous", useProxy: this._useProxy(e, i), signal: d, ...i?.ioArgs };
|
|
56244
|
-
return n || (v.withCredentials = !1),
|
|
56240
|
+
return n || (v.withCredentials = !1), hr(c, v).then((S) => {
|
|
56245
56241
|
const E = S.data;
|
|
56246
56242
|
if (!E?.token) return new be("identity-manager:authentication-failed", "Unable to generate token");
|
|
56247
56243
|
const A = e.server;
|
|
@@ -56268,7 +56264,7 @@ let Nxt = class extends Qpt {
|
|
|
56268
56264
|
if (!s.token) return { credential: s };
|
|
56269
56265
|
o = s.server + "/rest/services";
|
|
56270
56266
|
}
|
|
56271
|
-
return s.token && (a.token = s.token),
|
|
56267
|
+
return s.token && (a.token = s.token), hr(o, { query: a, authMode: "anonymous" }).then((l) => {
|
|
56272
56268
|
if (l.data.valid === !1) throw new be("identity-manager:not-authorized", `You are currently signed in as: '${s.userId}'.`, l.data);
|
|
56273
56269
|
return n = !!l.data.viewOnlyUserTypeApp, { credential: s };
|
|
56274
56270
|
}).catch((l) => {
|
|
@@ -56400,7 +56396,7 @@ let Nxt = class extends Qpt {
|
|
|
56400
56396
|
}
|
|
56401
56397
|
}
|
|
56402
56398
|
_getOAuthToken(e, t, i, n, s) {
|
|
56403
|
-
return e = e.replace(/^http:/i, "https:"),
|
|
56399
|
+
return e = e.replace(/^http:/i, "https:"), hr(`${e}/sharing/rest/oauth2/token`, { authMode: "anonymous", method: "post", query: n && s ? { grant_type: "authorization_code", code: t, redirect_uri: n, client_id: i, code_verifier: s } : { grant_type: "refresh_token", refresh_token: t, client_id: i } }).then((o) => o.data);
|
|
56404
56400
|
}
|
|
56405
56401
|
async _getCodeChallenge(e) {
|
|
56406
56402
|
if (e && globalThis.isSecureContext) {
|
|
@@ -56518,7 +56514,7 @@ let Nxt = class extends Qpt {
|
|
|
56518
56514
|
let t, i, n;
|
|
56519
56515
|
if (this._isRESTService(e) || this._isAdminResource(e)) {
|
|
56520
56516
|
const s = this._getServerInstanceRoot(e);
|
|
56521
|
-
return t = s + "/admin/generateToken", i =
|
|
56517
|
+
return t = s + "/admin/generateToken", i = hr(e = s + "/rest/info", { query: { f: "json" } }).then((o) => o.data), { adminUrl: t, promise: i };
|
|
56522
56518
|
}
|
|
56523
56519
|
if (this._isPortalDomain(e)) {
|
|
56524
56520
|
let s = "";
|
|
@@ -56556,13 +56552,13 @@ let Nxt = class extends Qpt {
|
|
|
56556
56552
|
e && (e.startsWith("?") && (e = e.slice(1)), this._processOAuthPopupParams(T$(e)));
|
|
56557
56553
|
}
|
|
56558
56554
|
async _exchangeToken(e, t, i) {
|
|
56559
|
-
return (await
|
|
56555
|
+
return (await hr(`${e}/sharing/rest/oauth2/exchangeToken`, { authMode: "anonymous", method: "post", query: { f: "json", client_id: t, token: i } })).data.token;
|
|
56560
56556
|
}
|
|
56561
56557
|
async _getPlatformSelf(e, t) {
|
|
56562
56558
|
if (this._getPlatformSelfError && Date.now() - this._getPlatformSelfError[1] < 1e3) throw this._getPlatformSelfError[0];
|
|
56563
56559
|
e = e.replace(/^http:/i, "https:");
|
|
56564
56560
|
try {
|
|
56565
|
-
const i = await
|
|
56561
|
+
const i = await hr(`${e}/sharing/rest/oauth2/platformSelf`, { authMode: "anonymous", headers: { "X-Esri-Auth-Client-Id": t, "X-Esri-Auth-Redirect-Uri": window.location.href.replace(/#.*$/, "") }, method: "post", query: { f: "json", expiration: 30 }, withCredentials: !0 });
|
|
56566
56562
|
return this._getPlatformSelfError = null, i.data;
|
|
56567
56563
|
} catch (i) {
|
|
56568
56564
|
throw i.details?.messageCode === "OAUTH_0066" && (this._getPlatformSelfError = [i, Date.now()]), i;
|
|
@@ -56570,7 +56566,7 @@ let Nxt = class extends Qpt {
|
|
|
56570
56566
|
}
|
|
56571
56567
|
_getPortalSelf(e, t) {
|
|
56572
56568
|
let i;
|
|
56573
|
-
return this._gwDomains.some((n) => (n.regex.test(e) && (i = n.customBaseUrl), !!i)), i ? Promise.resolve({ allSSL: !0, currentVersion: "8.4", customBaseUrl: i, portalMode: "multitenant", supportsOAuth: !0 }) : (this._appOrigin.startsWith("https:") ? e = e.replace(/^http:/i, "https:").replace(/:7080/i, ":7443") : /^http:/i.test(t) && (e = e.replace(/^https:/i, "http:").replace(/:7443/i, ":7080")),
|
|
56569
|
+
return this._gwDomains.some((n) => (n.regex.test(e) && (i = n.customBaseUrl), !!i)), i ? Promise.resolve({ allSSL: !0, currentVersion: "8.4", customBaseUrl: i, portalMode: "multitenant", supportsOAuth: !0 }) : (this._appOrigin.startsWith("https:") ? e = e.replace(/^http:/i, "https:").replace(/:7080/i, ":7443") : /^http:/i.test(t) && (e = e.replace(/^https:/i, "http:").replace(/:7443/i, ":7080")), hr(e, { query: { f: "json" }, authMode: "anonymous", withCredentials: !0 }).then((n) => n.data));
|
|
56574
56570
|
}
|
|
56575
56571
|
_doPortalSignIn(e) {
|
|
56576
56572
|
const t = this._portalConfig, i = window.location.href, n = this.findServerInfo(e);
|
|
@@ -56703,10 +56699,10 @@ let Nxt = class extends Qpt {
|
|
|
56703
56699
|
const l = i.search(/\/(apps|home)\//);
|
|
56704
56700
|
i = l > -1 ? i.slice(0, l) : null;
|
|
56705
56701
|
}
|
|
56706
|
-
return a && i ? (this._hasTestedIfAppIsOnPortal = !0, t =
|
|
56702
|
+
return a && i ? (this._hasTestedIfAppIsOnPortal = !0, t = hr(i + "/sharing/rest", { query: { f: "json" } }).then(() => {
|
|
56707
56703
|
this._defaultOAuthInfo = new SXe({ appId: "arcgisonline", popupCallbackUrl: i + "/home/oauth-callback.html" });
|
|
56708
56704
|
})) : t = Promise.resolve(), t.then(() => {
|
|
56709
|
-
if (this._defaultOAuthInfo) return n = n.replace(/^http:/i, "https:"),
|
|
56705
|
+
if (this._defaultOAuthInfo) return n = n.replace(/^http:/i, "https:"), hr(n + "/sharing/rest/oauth2/validateRedirectUri", { query: { accountId: o, client_id: this._defaultOAuthInfo.appId, redirect_uri: dh(this._defaultOAuthInfo.popupCallbackUrl), f: "json" } }).then((l) => {
|
|
56710
56706
|
if (l.data.valid) {
|
|
56711
56707
|
const u = this._defaultOAuthInfo.clone();
|
|
56712
56708
|
l.data.urlKey && s ? u.portalUrl = "https://" + l.data.urlKey.toLowerCase() + "." + s : u.portalUrl = n, u.popup = window !== window.top || !(lf(n, this._appOrigin) || this._gwDomains.some((c) => c.regex.test(n) && c.regex.test(this._appOrigin))), this.oAuthInfos.push(u);
|
|
@@ -57081,7 +57077,7 @@ var Rxt = /* @__PURE__ */ Object.freeze({
|
|
|
57081
57077
|
n.getValue = Bt, n.UTF8ToString = qt;
|
|
57082
57078
|
var J = { c: fr, o: Sr, i: ti, d: hi, m: ri, l: Ri, n: Cr, j: xi, p: Hi, q: oi, r: Br, k: I, f: y, g, a: b, h: T, e: C, b: $ }, X = await vt();
|
|
57083
57079
|
X.t, n._webidl_free = X.u, n._webidl_malloc = X.v;
|
|
57084
|
-
var pe = n._emscripten_bind_PeObject_getCode_0 = X.w, Ee = n._emscripten_bind_PeObject_getName_1 = X.x, Ke = n._emscripten_bind_PeObject_getType_0 = X.y, nt = n._emscripten_bind_PeCoordsys_isEqual_1 = X.z, Je = n._emscripten_bind_PeCoordsys_getCode_0 = X.A, ht = n._emscripten_bind_PeCoordsys_getName_1 = X.B, Nt = n._emscripten_bind_PeCoordsys_getType_0 = X.C, Dt = n._emscripten_bind_PeUnit_getUnitFactor_0 = X.D, Zt = n._emscripten_bind_PeUnit_getCode_0 = X.E, vr = n._emscripten_bind_PeUnit_getName_1 = X.F, Rr = n._emscripten_bind_PeUnit_getType_0 = X.G, li = n._emscripten_bind_VoidPtr___destroy___0 = X.H, Qr = n._emscripten_bind_PeAngunit_getCode_0 = X.I, zr = n._emscripten_bind_PeAngunit_getName_1 = X.J, Lr = n._emscripten_bind_PeAngunit_getType_0 = X.K, Xi = n._emscripten_bind_PeAngunit_getUnitFactor_0 = X.L, zi = n._emscripten_bind_PeDatum_getSpheroid_0 = X.M, Dr = n._emscripten_bind_PeDatum_getCode_0 = X.N, cn = n._emscripten_bind_PeDatum_getName_1 = X.O, F = n._emscripten_bind_PeDatum_getType_0 = X.P, Gr = n._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0 = X.Q, Xn = n._emscripten_bind_PeDefs_get_PE_NAME_MAX_0 = X.R, Sn = n._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0 = X.S, at = n._emscripten_bind_PeDefs_get_PE_USNG_MAX_0 = X.T, cs = n._emscripten_bind_PeDefs_get_PE_DD_MAX_0 = X.U, Fn = n._emscripten_bind_PeDefs_get_PE_DMS_MAX_0 = X.V, ct = n._emscripten_bind_PeDefs_get_PE_DDM_MAX_0 = X.W, Jn = n._emscripten_bind_PeDefs_get_PE_UTM_MAX_0 = X.X, Us = n._emscripten_bind_PeDefs_get_PE_PARM_MAX_0 = X.Y, Es = n._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0 = X.Z, as = n._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0 = X._, Xo = n._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0 = X.$, rl = n._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0 = X.aa, Xa = n._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0 = X.ba, Ua = n._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0 = X.ca, Xt = n._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0 = X.da, Xr = n._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0 = X.ea, Jr = n._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0 = X.fa, Yi = n._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0 = X.ga, Ps = n._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0 = X.ha, Vn = n._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0 = X.ia, uo = n._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0 = X.ja, $o = n._emscripten_bind_PeDefs_get_PE_PARM_X0_0 = X.ka, Du = n._emscripten_bind_PeDefs_get_PE_PARM_ND_0 = X.la, Ta = n._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0 = X.ma, Ra = n._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0 = X.na, Lo = n._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0 = X.oa, zu = n._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0 = X.pa, wc = n._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0 = X.qa, Ln = n._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0 = X.ra, Js = n._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0 = X.sa, ic = n._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0 = X.ta, Tl = n._emscripten_bind_PeDouble_PeDouble_1 = X.ua, $l = n._emscripten_bind_PeDouble_get_val_0 = X.va, fu = n._emscripten_bind_PeDouble_set_val_1 = X.wa, Ia = n._emscripten_bind_PeDouble___destroy___0 = X.xa, Wl = n._emscripten_bind_PeFactory_initialize_1 = X.ya, va = n._emscripten_bind_PeFactory_factoryByType_2 = X.za, fe = n._emscripten_bind_PeFactory_fromString_2 = X.Aa, _e = n._emscripten_bind_PeFactory_getCode_1 = X.Ba, it = n._emscripten_bind_PeGCSExtent_PeGCSExtent_6 = X.Ca, lt = n._emscripten_bind_PeGCSExtent_getLLon_0 = X.Da, At = n._emscripten_bind_PeGCSExtent_getSLat_0 = X.Ea, Qt = n._emscripten_bind_PeGCSExtent_getRLon_0 = X.Fa, ei = n._emscripten_bind_PeGCSExtent_getNLat_0 = X.Ga,
|
|
57080
|
+
var pe = n._emscripten_bind_PeObject_getCode_0 = X.w, Ee = n._emscripten_bind_PeObject_getName_1 = X.x, Ke = n._emscripten_bind_PeObject_getType_0 = X.y, nt = n._emscripten_bind_PeCoordsys_isEqual_1 = X.z, Je = n._emscripten_bind_PeCoordsys_getCode_0 = X.A, ht = n._emscripten_bind_PeCoordsys_getName_1 = X.B, Nt = n._emscripten_bind_PeCoordsys_getType_0 = X.C, Dt = n._emscripten_bind_PeUnit_getUnitFactor_0 = X.D, Zt = n._emscripten_bind_PeUnit_getCode_0 = X.E, vr = n._emscripten_bind_PeUnit_getName_1 = X.F, Rr = n._emscripten_bind_PeUnit_getType_0 = X.G, li = n._emscripten_bind_VoidPtr___destroy___0 = X.H, Qr = n._emscripten_bind_PeAngunit_getCode_0 = X.I, zr = n._emscripten_bind_PeAngunit_getName_1 = X.J, Lr = n._emscripten_bind_PeAngunit_getType_0 = X.K, Xi = n._emscripten_bind_PeAngunit_getUnitFactor_0 = X.L, zi = n._emscripten_bind_PeDatum_getSpheroid_0 = X.M, Dr = n._emscripten_bind_PeDatum_getCode_0 = X.N, cn = n._emscripten_bind_PeDatum_getName_1 = X.O, F = n._emscripten_bind_PeDatum_getType_0 = X.P, Gr = n._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0 = X.Q, Xn = n._emscripten_bind_PeDefs_get_PE_NAME_MAX_0 = X.R, Sn = n._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0 = X.S, at = n._emscripten_bind_PeDefs_get_PE_USNG_MAX_0 = X.T, cs = n._emscripten_bind_PeDefs_get_PE_DD_MAX_0 = X.U, Fn = n._emscripten_bind_PeDefs_get_PE_DMS_MAX_0 = X.V, ct = n._emscripten_bind_PeDefs_get_PE_DDM_MAX_0 = X.W, Jn = n._emscripten_bind_PeDefs_get_PE_UTM_MAX_0 = X.X, Us = n._emscripten_bind_PeDefs_get_PE_PARM_MAX_0 = X.Y, Es = n._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0 = X.Z, as = n._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0 = X._, Xo = n._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0 = X.$, rl = n._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0 = X.aa, Xa = n._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0 = X.ba, Ua = n._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0 = X.ca, Xt = n._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0 = X.da, Xr = n._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0 = X.ea, Jr = n._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0 = X.fa, Yi = n._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0 = X.ga, Ps = n._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0 = X.ha, Vn = n._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0 = X.ia, uo = n._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0 = X.ja, $o = n._emscripten_bind_PeDefs_get_PE_PARM_X0_0 = X.ka, Du = n._emscripten_bind_PeDefs_get_PE_PARM_ND_0 = X.la, Ta = n._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0 = X.ma, Ra = n._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0 = X.na, Lo = n._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0 = X.oa, zu = n._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0 = X.pa, wc = n._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0 = X.qa, Ln = n._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0 = X.ra, Js = n._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0 = X.sa, ic = n._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0 = X.ta, Tl = n._emscripten_bind_PeDouble_PeDouble_1 = X.ua, $l = n._emscripten_bind_PeDouble_get_val_0 = X.va, fu = n._emscripten_bind_PeDouble_set_val_1 = X.wa, Ia = n._emscripten_bind_PeDouble___destroy___0 = X.xa, Wl = n._emscripten_bind_PeFactory_initialize_1 = X.ya, va = n._emscripten_bind_PeFactory_factoryByType_2 = X.za, fe = n._emscripten_bind_PeFactory_fromString_2 = X.Aa, _e = n._emscripten_bind_PeFactory_getCode_1 = X.Ba, it = n._emscripten_bind_PeGCSExtent_PeGCSExtent_6 = X.Ca, lt = n._emscripten_bind_PeGCSExtent_getLLon_0 = X.Da, At = n._emscripten_bind_PeGCSExtent_getSLat_0 = X.Ea, Qt = n._emscripten_bind_PeGCSExtent_getRLon_0 = X.Fa, ei = n._emscripten_bind_PeGCSExtent_getNLat_0 = X.Ga, dr = n._emscripten_bind_PeGCSExtent___destroy___0 = X.Ha, Zr = n._emscripten_bind_PeGeogcs_Delete_0 = X.Ia, Ei = n._emscripten_bind_PeGeogcs_cloneAlterUnits_1 = X.Ja, ui = n._emscripten_bind_PeGeogcs_getDatum_0 = X.Ka, Oi = n._emscripten_bind_PeGeogcs_getPrimem_0 = X.La, tn = n._emscripten_bind_PeGeogcs_getUnit_0 = X.Ma, gs = n._emscripten_bind_PeGeogcs_isEqual_1 = X.Na, ln = n._emscripten_bind_PeGeogcs_getCode_0 = X.Oa, It = n._emscripten_bind_PeGeogcs_getName_1 = X.Pa, Ft = n._emscripten_bind_PeGeogcs_getType_0 = X.Qa, ur = n._emscripten_bind_PeGeogtran_isEqual_1 = X.Ra, qr = n._emscripten_bind_PeGeogtran_getGeogcs1_0 = X.Sa, _i = n._emscripten_bind_PeGeogtran_getGeogcs2_0 = X.Ta, sn = n._emscripten_bind_PeGeogtran_getParameters_0 = X.Ua, Cn = n._emscripten_bind_PeGeogtran_loadConstants_0 = X.Va, hn = n._emscripten_bind_PeGeogtran_getCode_0 = X.Wa, Vi = n._emscripten_bind_PeGeogtran_getName_1 = X.Xa, Ms = n._emscripten_bind_PeGeogtran_getType_0 = X.Ya, hs = n._emscripten_bind_PeGTlistExtended_getGTlist_6 = X.Za, yl = n._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0 = X._a, qo = n._emscripten_bind_PeGTlistExtendedEntry_getEntries_0 = X.$a, xc = n._emscripten_bind_PeGTlistExtendedEntry_getSteps_0 = X.ab, ba = n._emscripten_bind_PeGTlistExtendedEntry_Delete_1 = X.bb, Fl = n._emscripten_bind_PeGTlistExtendedGTs_getDirection_0 = X.cb, wt = n._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0 = X.db, Il = n._emscripten_bind_PeHorizon_getNump_0 = X.eb, Yl = n._emscripten_bind_PeHorizon_getKind_0 = X.fb, Xl = n._emscripten_bind_PeHorizon_getInclusive_0 = X.gb, rh = n._emscripten_bind_PeHorizon_getSize_0 = X.hb, fp = n._emscripten_bind_PeHorizon_getCoord_0 = X.ib, Et = n._emscripten_bind_PeInteger_PeInteger_1 = X.jb, Rt = n._emscripten_bind_PeInteger_get_val_0 = X.kb, nr = n._emscripten_bind_PeInteger_set_val_1 = X.lb, Tr = n._emscripten_bind_PeInteger___destroy___0 = X.mb, si = n._emscripten_bind_PeLineType_geodetic_distance_10 = X.nb, $i = n._emscripten_bind_PeLineType_geodetic_coordinate_9 = X.ob, dn = n._emscripten_bind_PeLineType_geodesic_coordinate_8 = X.pb, rn = n._emscripten_bind_PeLineType_great_elliptic_distance_9 = X.qb, mn = n._emscripten_bind_PeMath_phi_to_eta_2 = X.rb, Hn = n._emscripten_bind_PeMath_eta_to_phi_2 = X.sb, de = n._emscripten_bind_PeMath_phi_to_phig_2 = X.tb, Me = n._emscripten_bind_PeMath_q_3 = X.ub, Xe = n._emscripten_bind_PeMath_q90_2 = X.vb, yt = n._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0 = X.wb, Ot = n._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0 = X.xb, yr = n._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0 = X.yb, Er = n._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0 = X.zb, Ar = n._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0 = X.Ab, mr = n._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0 = X.Bb, Ci = n._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0 = X.Cb, xn = n._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0 = X.Db, rt = n._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0 = X.Eb, ot = n._emscripten_bind_PeParameter_getValue_0 = X.Fb, Ht = n._emscripten_bind_PeParameter_getCode_0 = X.Gb, lr = n._emscripten_bind_PeParameter_getName_1 = X.Hb, Hr = n._emscripten_bind_PeParameter_getType_0 = X.Ib, wi = n._emscripten_bind_PePCSInfo_getCentralMeridian_0 = X.Jb, Or = n._emscripten_bind_PePCSInfo_getDomainMinx_0 = X.Kb, Ai = n._emscripten_bind_PePCSInfo_getDomainMiny_0 = X.Lb, qi = n._emscripten_bind_PePCSInfo_getDomainMaxx_0 = X.Mb, Q = n._emscripten_bind_PePCSInfo_getDomainMaxy_0 = X.Nb, V = n._emscripten_bind_PePCSInfo_getNorthPoleLocation_0 = X.Ob, K = n._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0 = X.Pb, oe = n._emscripten_bind_PePCSInfo_getSouthPoleLocation_0 = X.Qb, Ie = n._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0 = X.Rb, Ge = n._emscripten_bind_PePCSInfo_isDensificationNeeded_0 = X.Sb, Oe = n._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0 = X.Tb, st = n._emscripten_bind_PePCSInfo_isPannableRectangle_0 = X.Ub, St = n._emscripten_bind_PePCSInfo_generate_2 = X.Vb, Vt = n._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0 = X.Wb, ie = n._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0 = X.Xb, se = n._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0 = X.Yb, he = n._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0 = X.Zb, Ae = n._emscripten_bind_PePrimem_getLongitude_0 = X._b, je = n._emscripten_bind_PePrimem_getCode_0 = X.$b, et = n._emscripten_bind_PePrimem_getName_1 = X.ac, pt = n._emscripten_bind_PePrimem_getType_0 = X.bc, bt = n._emscripten_bind_PeProjcs_Delete_0 = X.cc, $t = n._emscripten_bind_PeProjcs_getGeogcs_0 = X.dc, Jt = n._emscripten_bind_PeProjcs_getProjection_0 = X.ec, jt = n._emscripten_bind_PeProjcs_getParameters_0 = X.fc, ae = n._emscripten_bind_PeProjcs_getUnit_0 = X.gc, me = n._emscripten_bind_PeProjcs_loadConstants_0 = X.hc, ze = n._emscripten_bind_PeProjcs_horizonGcsGenerate_0 = X.ic, He = n._emscripten_bind_PeProjcs_horizonPcsGenerate_0 = X.jc, gt = n._emscripten_bind_PeProjcs_isEqual_1 = X.kc, Ut = n._emscripten_bind_PeProjcs_getCode_0 = X.lc, Kt = n._emscripten_bind_PeProjcs_getName_1 = X.mc, or = n._emscripten_bind_PeProjcs_getType_0 = X.nc, ci = n._emscripten_bind_PeSpheroid_getAxis_0 = X.oc, Ni = n._emscripten_bind_PeSpheroid_getFlattening_0 = X.pc, Fi = n._emscripten_bind_PeSpheroid_getCode_0 = X.qc, on = n._emscripten_bind_PeSpheroid_getName_1 = X.rc, es = n._emscripten_bind_PeSpheroid_getType_0 = X.sc, ws = n._emscripten_bind_PeVersion_version_string_0 = X.tc;
|
|
57085
57081
|
function Zo() {
|
|
57086
57082
|
function Be() {
|
|
57087
57083
|
n.calledRun = !0, O || (U(), e(n));
|
|
@@ -57438,7 +57434,7 @@ var Rxt = /* @__PURE__ */ Object.freeze({
|
|
|
57438
57434
|
return ei(Be);
|
|
57439
57435
|
}, we.prototype.__destroy__ = we.prototype.__destroy__ = function() {
|
|
57440
57436
|
var Be = this.ptr;
|
|
57441
|
-
|
|
57437
|
+
dr(Be);
|
|
57442
57438
|
}, qe.prototype = Object.create(ce.prototype), qe.prototype.constructor = qe, qe.prototype.__class__ = qe, qe.__cache__ = {}, n.PeGeogcs = qe, qe.prototype.Delete = qe.prototype.Delete = function() {
|
|
57443
57439
|
var Be = this.ptr;
|
|
57444
57440
|
Zr(Be);
|
|
@@ -57737,7 +57733,7 @@ async function Oxt(r) {
|
|
|
57737
57733
|
if (r.rootDocument) return r.rootDocument;
|
|
57738
57734
|
const e = { query: { f: "json", ...r.customParameters, token: r.apiKey }, responseType: "json", signal: r.signal };
|
|
57739
57735
|
try {
|
|
57740
|
-
const t = await
|
|
57736
|
+
const t = await hr(r.sceneServerUrl, e);
|
|
57741
57737
|
r.rootDocument = t.data;
|
|
57742
57738
|
} catch {
|
|
57743
57739
|
r.rootDocument = {};
|
|
@@ -57749,7 +57745,7 @@ async function pxr(r) {
|
|
|
57749
57745
|
if (e?.owningSystemUrl) return e.owningSystemUrl;
|
|
57750
57746
|
const t = r.sceneServerUrl.replace(/(.*\/rest)\/.*/i, "$1") + "/info";
|
|
57751
57747
|
try {
|
|
57752
|
-
const i = (await
|
|
57748
|
+
const i = (await hr(t, { query: { f: "json" }, responseType: "json", signal: r.signal })).data.owningSystemUrl;
|
|
57753
57749
|
if (i) return i;
|
|
57754
57750
|
} catch (i) {
|
|
57755
57751
|
Wo(i);
|
|
@@ -57763,7 +57759,7 @@ async function TXe(r, e) {
|
|
|
57763
57759
|
if (n == null) return { serverUrl: i };
|
|
57764
57760
|
const s = Oxt(e), o = e.featureServiceItem ? await e.featureServiceItem.fetchData("json") : null, a = (o?.layers?.[0] || o?.tables?.[0])?.customParameters, l = (_) => {
|
|
57765
57761
|
const v = { query: { f: "json", ...a }, responseType: "json", authMode: _, signal: e.signal };
|
|
57766
|
-
return
|
|
57762
|
+
return hr(i, v);
|
|
57767
57763
|
}, u = l("anonymous").catch(() => l("no-prompt")), [c, h] = await Promise.all([u, s]), d = h?.layers, f = c.data && c.data.layers;
|
|
57768
57764
|
if (!Array.isArray(f)) throw new Error("expected layers array");
|
|
57769
57765
|
if (Array.isArray(d)) {
|
|
@@ -57784,7 +57780,7 @@ async function fxr({ sceneLayerItem: r, signal: e }) {
|
|
|
57784
57780
|
}
|
|
57785
57781
|
}
|
|
57786
57782
|
async function c_(r, e) {
|
|
57787
|
-
const { data: t } = await
|
|
57783
|
+
const { data: t } = await hr(r, { responseType: "json", query: { f: "json", ...e?.customParameters, token: e?.apiKey } });
|
|
57788
57784
|
return t;
|
|
57789
57785
|
}
|
|
57790
57786
|
const mxr = /* @__PURE__ */ new Set(["Catalog Layer", "Feature Layer", "Oriented Imagery Layer"]);
|
|
@@ -58569,7 +58565,7 @@ let DXe = class QCe {
|
|
|
58569
58565
|
return s < 0 || s > o.length ? "unknown" : o[s] & 1 << n ? "available" : "unavailable";
|
|
58570
58566
|
}
|
|
58571
58567
|
static fromDefinition(e, t) {
|
|
58572
|
-
const i = e.service.request ||
|
|
58568
|
+
const i = e.service.request || hr, { row: n, col: s, width: o, height: a } = e, l = { query: { f: "json" } };
|
|
58573
58569
|
return t = t ? { ...l, ...t } : l, i(oSr(e), t).then((u) => u.data).catch((u) => {
|
|
58574
58570
|
if (u?.details?.httpStatus === 422) return { location: { top: n, left: s, width: o, height: a }, valid: !0, data: new Array(o * a).fill(0) };
|
|
58575
58571
|
throw u;
|
|
@@ -58610,7 +58606,7 @@ let Tx = class extends Vs {
|
|
|
58610
58606
|
VM = this;
|
|
58611
58607
|
}
|
|
58612
58608
|
constructor(e) {
|
|
58613
|
-
super(e), this._pendingTilemapRequests = {}, this.request =
|
|
58609
|
+
super(e), this._pendingTilemapRequests = {}, this.request = hr, this.size = 32, this._prefetchingEnabled = !0;
|
|
58614
58610
|
}
|
|
58615
58611
|
initialize() {
|
|
58616
58612
|
this._tilemapCache = new JE(2097152), this.addHandles(_o(() => {
|
|
@@ -58870,7 +58866,7 @@ let kf = class extends OFe(Fm(Ml(ku(oa(Ts))))) {
|
|
|
58870
58866
|
}
|
|
58871
58867
|
fetchTile(e, t, i, n) {
|
|
58872
58868
|
const s = n?.signal, o = { responseType: "array-buffer", signal: s }, a = { noDataValue: n?.noDataValue, returnFileInfo: !0 };
|
|
58873
|
-
return this.load().then(() => this._fetchTileAvailability(e, t, i, n)).then(() =>
|
|
58869
|
+
return this.load().then(() => this._fetchTileAvailability(e, t, i, n)).then(() => hr(this.getTileUrl(e, t, i), o)).then((l) => this._lercDecoder.decode(l.data, a, s)).then((l) => new lSr(l));
|
|
58874
58870
|
}
|
|
58875
58871
|
getTileUrl(e, t, i) {
|
|
58876
58872
|
const n = !this.capabilities.operations.supportsTileMap && this.supportsBlankTile, s = ib({ ...this.parsedUrl.query, blankTile: !n && null });
|
|
@@ -58893,7 +58889,7 @@ let kf = class extends OFe(Fm(Ml(ku(oa(Ts))))) {
|
|
|
58893
58889
|
}
|
|
58894
58890
|
async _fetchImageService(e) {
|
|
58895
58891
|
if (this.sourceJSON) return this.sourceJSON;
|
|
58896
|
-
const t = { query: { f: "json", ...this.parsedUrl.query }, responseType: "json", signal: e }, i = await
|
|
58892
|
+
const t = { query: { f: "json", ...this.parsedUrl.query }, responseType: "json", signal: e }, i = await hr(this.parsedUrl.path, t);
|
|
58897
58893
|
i.ssl && (this.url = this.url?.replace(/^http:/i, "https:")), this.sourceJSON = i.data, this.read(i.data, { origin: "service", url: this.parsedUrl });
|
|
58898
58894
|
}
|
|
58899
58895
|
get hasOverriddenFetchTile() {
|
|
@@ -76132,14 +76128,14 @@ function FW(r) {
|
|
|
76132
76128
|
return z0(r) ? r.rings : r.paths;
|
|
76133
76129
|
}
|
|
76134
76130
|
async function jTr(r, e, t, i) {
|
|
76135
|
-
const n = Ks(r), s = e[0].spatialReference, o = { ...i, responseType: "json", query: { ...n.query, f: "json", sr: $y(s), target: JSON.stringify({ geometryType: kc(e[0]), geometries: e }), cutter: JSON.stringify(t) } }, a = await
|
|
76131
|
+
const n = Ks(r), s = e[0].spatialReference, o = { ...i, responseType: "json", query: { ...n.query, f: "json", sr: $y(s), target: JSON.stringify({ geometryType: kc(e[0]), geometries: e }), cutter: JSON.stringify(t) } }, a = await hr(n.path + "/cut", o), { cutIndexes: l, geometries: u = [] } = a.data;
|
|
76136
76132
|
return { cutIndexes: l, geometries: u.map((c) => {
|
|
76137
76133
|
const h = gn(c);
|
|
76138
76134
|
return h.spatialReference = s, h;
|
|
76139
76135
|
}) };
|
|
76140
76136
|
}
|
|
76141
76137
|
async function BTr(r, e, t) {
|
|
76142
|
-
const i = typeof r == "string" ? To(r) : r, n = e[0].spatialReference, s = kc(e[0]), o = { ...t, query: { ...i.query, f: "json", sr: $y(n), geometries: JSON.stringify(apr(e)) } }, { data: a } = await
|
|
76138
|
+
const i = typeof r == "string" ? To(r) : r, n = e[0].spatialReference, s = kc(e[0]), o = { ...t, query: { ...i.query, f: "json", sr: $y(n), geometries: JSON.stringify(apr(e)) } }, { data: a } = await hr(i.path + "/simplify", o);
|
|
76143
76139
|
return Evt(a.geometries, s, n);
|
|
76144
76140
|
}
|
|
76145
76141
|
const eTt = () => Wt.getLogger("esri.geometry.support.normalizeUtils");
|
|
@@ -78290,7 +78286,7 @@ let uIr = class {
|
|
|
78290
78286
|
const { url: t, customParameters: i } = this._loadOptions;
|
|
78291
78287
|
if (!t) throw new be("csv-layer:invalid-source", "url not defined");
|
|
78292
78288
|
const n = To(t);
|
|
78293
|
-
return (await
|
|
78289
|
+
return (await hr(n.path, { query: { ...n.query, ...i }, responseType: "text", signal: e })).data;
|
|
78294
78290
|
}
|
|
78295
78291
|
_createQueryEngine(e) {
|
|
78296
78292
|
const { objectIdField: t, fields: i, extent: n, timeInfo: s } = e.layerDefinition, o = new yU({ geometryType: "esriGeometryPoint", hasM: !1, hasZ: !1 }), a = { type: "object-id", fieldName: t };
|
|
@@ -81323,7 +81319,7 @@ async function dK(r, e, t, i = {}, n = {}, s = {}) {
|
|
|
81323
81319
|
const o = typeof r == "string" ? To(r) : r, a = e.geometry ? [e.geometry] : [], l = await Jf(a, null, { signal: i.signal }), u = l?.[0];
|
|
81324
81320
|
u != null && ((e = e.clone()).geometry = u);
|
|
81325
81321
|
const c = _U({ ...o.query, f: t, ...IPr(n, s), ...SPr(e, n, s) });
|
|
81326
|
-
return
|
|
81322
|
+
return hr(kl(o.path, CPr(e, n) ? "query3d" : "query"), { ...i, responseType: t === "pbf" ? "array-buffer" : "json", query: { ...c, ...i.query } });
|
|
81327
81323
|
}
|
|
81328
81324
|
function CPr(r, e) {
|
|
81329
81325
|
return r.formatOf3DObjects != null && !(e.returnCountOnly || e.returnExtentOnly || e.returnIdsOnly);
|
|
@@ -82383,7 +82379,7 @@ let y4r = class {
|
|
|
82383
82379
|
}
|
|
82384
82380
|
}
|
|
82385
82381
|
async _fetch(e) {
|
|
82386
|
-
const { url: t, customParameters: i } = this._loadOptions, n = (await
|
|
82382
|
+
const { url: t, customParameters: i } = this._loadOptions, n = (await hr(t ?? "", { responseType: "json", query: { ...i }, signal: e })).data;
|
|
82387
82383
|
return x9e(n), n;
|
|
82388
82384
|
}
|
|
82389
82385
|
_normalizeFeatures(e, t) {
|
|
@@ -94972,7 +94968,7 @@ const Qse = () => Wt.getLogger("esri.layers.ogc.ogcFeatureUtils"), LEt = "starti
|
|
|
94972
94968
|
async function G6r(r, e, t = {}, i = 5) {
|
|
94973
94969
|
const { links: n } = r, s = uS(n, "items", "application/geo+json") || uS(n, "http://www.opengis.net/def/rel/ogc/1.0/items", "application/geo+json");
|
|
94974
94970
|
if (s == null) throw new be("ogc-feature-layer:missing-items-page", "Missing items url");
|
|
94975
|
-
const { apiKey: o, customParameters: a, signal: l } = t, u = dh(s.href, r.landingPage.url), c = { limit: i, ...a, token: o }, h = xg(u, c), d = { accept: "application/geo+json" }, { data: f } = await
|
|
94971
|
+
const { apiKey: o, customParameters: a, signal: l } = t, u = dh(s.href, r.landingPage.url), c = { limit: i, ...a, token: o }, h = xg(u, c), d = { accept: "application/geo+json" }, { data: f } = await hr(h, { signal: l, headers: d }), _ = r8r(h, i, f.links) ?? LEt;
|
|
94976
94972
|
x9e(f);
|
|
94977
94973
|
const v = DIt(f, { geometryType: e.geometryType }), S = e.fields || v.fields || [], E = e.hasZ != null ? e.hasZ : v.hasZ, A = v.geometryType, D = e.objectIdField || v.objectIdFieldName || "OBJECTID";
|
|
94978
94974
|
let k = e.timeInfo;
|
|
@@ -95012,24 +95008,24 @@ async function G6r(r, e, t = {}, i = 5) {
|
|
|
95012
95008
|
async function H6r(r, e = {}) {
|
|
95013
95009
|
const { links: t, url: i } = r, n = uS(t, "data", "application/json") || uS(t, "http://www.opengis.net/def/rel/ogc/1.0/data", "application/json");
|
|
95014
95010
|
if (n == null) throw new be("ogc-feature-layer:missing-collections-page", "Missing collections url");
|
|
95015
|
-
const { apiKey: s, customParameters: o, signal: a } = e, l = dh(n.href, i), { data: u } = await
|
|
95011
|
+
const { apiKey: s, customParameters: o, signal: a } = e, l = dh(n.href, i), { data: u } = await hr(l, { signal: a, headers: { accept: "application/json" }, query: { ...o, token: s } });
|
|
95016
95012
|
for (const c of u.collections) c.landingPage = r;
|
|
95017
95013
|
return u;
|
|
95018
95014
|
}
|
|
95019
95015
|
async function W6r(r, e = {}) {
|
|
95020
95016
|
const { links: t, url: i } = r, n = uS(t, "conformance", "application/json") || uS(t, "http://www.opengis.net/def/rel/ogc/1.0/conformance", "application/json");
|
|
95021
95017
|
if (n == null) throw new be("ogc-feature-layer:missing-conformance-page", "Missing conformance url");
|
|
95022
|
-
const { apiKey: s, customParameters: o, signal: a } = e, l = dh(n.href, i), { data: u } = await
|
|
95018
|
+
const { apiKey: s, customParameters: o, signal: a } = e, l = dh(n.href, i), { data: u } = await hr(l, { signal: a, headers: { accept: "application/json" }, query: { ...o, token: s } });
|
|
95023
95019
|
return u;
|
|
95024
95020
|
}
|
|
95025
95021
|
async function Y6r(r, e = {}) {
|
|
95026
|
-
const { apiKey: t, customParameters: i, signal: n } = e, { data: s } = await
|
|
95022
|
+
const { apiKey: t, customParameters: i, signal: n } = e, { data: s } = await hr(r, { signal: n, headers: { accept: "application/json" }, query: { ...i, token: t } });
|
|
95027
95023
|
return s.url = r, s;
|
|
95028
95024
|
}
|
|
95029
95025
|
async function X6r(r, e = {}) {
|
|
95030
95026
|
const { links: t, url: i } = r, n = uS(t, "service-desc", "application/vnd.oai.openapi+json;version=3.0");
|
|
95031
95027
|
if (n == null) return Qse().warn("ogc-feature-layer:missing-openapi-page", "The OGC API-Features server does not have an OpenAPI page."), null;
|
|
95032
|
-
const { apiKey: s, customParameters: o, signal: a } = e, l = dh(n.href, i), { data: u } = await
|
|
95028
|
+
const { apiKey: s, customParameters: o, signal: a } = e, l = dh(n.href, i), { data: u } = await hr(l, { signal: a, headers: { accept: "application/vnd.oai.openapi+json;version=3.0" }, query: { ...o, token: s } });
|
|
95033
95029
|
return u;
|
|
95034
95030
|
}
|
|
95035
95031
|
function qZe(r) {
|
|
@@ -95067,7 +95063,7 @@ async function ePe(r, e, t) {
|
|
|
95067
95063
|
if (h == null) throw new be("ogc-feature-layer:missing-items-page", "Missing items url");
|
|
95068
95064
|
const { geometry: d, num: f, start: _, timeExtent: v, where: S } = e;
|
|
95069
95065
|
if (e.objectIds) throw new be("ogc-feature-layer:query-by-objectids-not-supported", "Queries with object ids are not supported");
|
|
95070
|
-
const E = sr.fromJSON(u), A = e.outSpatialReference ?? E, D = A.isWGS84 ? null : jEt(A, c), k = e8r(d, c), N = K6r(v), O = Q6r(S), j = f ?? (_ == null ? o : 10), B = _ === 0 ? void 0 : _, { fields: U, geometryType: z, hasZ: Y, objectIdField: Z, paginationParameter: ee } = s, te = dh(h.href, n), { data: le } = await
|
|
95066
|
+
const E = sr.fromJSON(u), A = e.outSpatialReference ?? E, D = A.isWGS84 ? null : jEt(A, c), k = e8r(d, c), N = K6r(v), O = Q6r(S), j = f ?? (_ == null ? o : 10), B = _ === 0 ? void 0 : _, { fields: U, geometryType: z, hasZ: Y, objectIdField: Z, paginationParameter: ee } = s, te = dh(h.href, n), { data: le } = await hr(te, { ...t, query: { ...l, ...k, crs: D, datetime: N, query: O, limit: j, [ee]: B, token: a }, headers: { accept: "application/geo+json" } }), ve = S9e(le, { geometryType: z, hasZ: Y, objectIdField: Z }), ye = ve.length === j && !!uS(le.links ?? [], "next", "application/geo+json"), Ce = new Vl(U);
|
|
95071
95067
|
for (const Qe of ve) {
|
|
95072
95068
|
const vt = {};
|
|
95073
95069
|
rk(Ce, vt, Qe.attributes, !0);
|
|
@@ -96672,10 +96668,10 @@ var O8r = /* @__PURE__ */ Object.freeze({
|
|
|
96672
96668
|
initSync: R8r
|
|
96673
96669
|
});
|
|
96674
96670
|
const L8r = (r) => async function(e, t, i, n) {
|
|
96675
|
-
const s = r?.(), o = s ? { ...s, debug: n } : { debug: n }, { data: a } = await
|
|
96671
|
+
const s = r?.(), o = s ? { ...s, debug: n } : { debug: n }, { data: a } = await hr(e, { responseType: "array-buffer", query: o, headers: { range: `bytes=${t}-${i}` } });
|
|
96676
96672
|
return a;
|
|
96677
96673
|
}, j8r = (r) => async function(e) {
|
|
96678
|
-
const { data: t } = await
|
|
96674
|
+
const { data: t } = await hr(e, { responseType: "native", method: "head", query: r?.() }), i = t.headers.get("Content-Length");
|
|
96679
96675
|
if (i == null) throw new Error("Unable to parse content length");
|
|
96680
96676
|
return parseInt(i, 10);
|
|
96681
96677
|
};
|
|
@@ -97360,7 +97356,7 @@ let nPe = class extends cL {
|
|
|
97360
97356
|
} else this.onMessage(e);
|
|
97361
97357
|
}
|
|
97362
97358
|
async _fetchServiceDefinition(e) {
|
|
97363
|
-
const t = { f: "json", ...this._config.customParameters }, i =
|
|
97359
|
+
const t = { f: "json", ...this._config.customParameters }, i = hr(e.path, { query: t, responseType: "json" }), n = (await i).data;
|
|
97364
97360
|
return this._serviceDefinition = n, n;
|
|
97365
97361
|
}
|
|
97366
97362
|
_fetchWebSocketUrl(e, t) {
|
|
@@ -97842,7 +97838,7 @@ let iFr = class {
|
|
|
97842
97838
|
}
|
|
97843
97839
|
async _queryLastEditDateChanged() {
|
|
97844
97840
|
if (this._lastEditDate == null) return !1;
|
|
97845
|
-
const e = this.service.source, t = { ...e.query, f: "json" }, i = (await
|
|
97841
|
+
const e = this.service.source, t = { ...e.query, f: "json" }, i = (await hr(e.path, { query: t, responseType: "json" })).data.editingInfo.lastEditDate;
|
|
97846
97842
|
return i !== this._lastEditDate && (this._lastEditDate = i, !0);
|
|
97847
97843
|
}
|
|
97848
97844
|
async _createStrategy() {
|
|
@@ -107604,7 +107600,7 @@ function* P7(r, e) {
|
|
|
107604
107600
|
}
|
|
107605
107601
|
const nve = "xlink:href", nB = "2.0.0", S4e = "__esri_wfs_id__", DUr = "wfs-layer:getWFSLayerTypeInfo-error", MUr = "wfs-layer:empty-service", wAt = "wfs-layer:feature-type-not-found", NUr = "wfs-layer:geojson-not-supported", $Ur = "wfs-layer:kvp-encoding-not-supported", FUr = "wfs-layer:malformed-json", xAt = "wfs-layer:unknown-geometry-type", RUr = "wfs-layer:unknown-field-type", OUr = "wfs-layer:unsupported-spatial-reference", LUr = "wfs-layer:unsupported-wfs-version";
|
|
107606
107602
|
async function jUr(r, e) {
|
|
107607
|
-
const t = BUr((await
|
|
107603
|
+
const t = BUr((await hr(r, { responseType: "text", query: { SERVICE: "WFS", REQUEST: "GetCapabilities", VERSION: nB, ...e?.customParameters }, signal: e?.signal })).data);
|
|
107608
107604
|
return qUr(r, t), t;
|
|
107609
107605
|
}
|
|
107610
107606
|
function BUr(r) {
|
|
@@ -107736,7 +107732,7 @@ function TAt(r) {
|
|
|
107736
107732
|
}
|
|
107737
107733
|
async function XUr(r, e, t, i = {}) {
|
|
107738
107734
|
let n, s = !1;
|
|
107739
|
-
const [o, a] = await Promise.all([T4e(r.operations.GetFeature.url, e, t, r.operations.GetFeature.outputFormat, { ...i, count: 1 }),
|
|
107735
|
+
const [o, a] = await Promise.all([T4e(r.operations.GetFeature.url, e, t, r.operations.GetFeature.outputFormat, { ...i, count: 1 }), hr(r.operations.GetFeature.url, { responseType: "text", query: IAt(e, t, void 0, { ...i, count: 1 }), signal: i?.signal })]), l = o.type === "FeatureCollection" && o.features[0]?.geometry;
|
|
107740
107736
|
if (l) {
|
|
107741
107737
|
let u;
|
|
107742
107738
|
switch (n = Op.fromJSON(Vue(l.type)), l.type) {
|
|
@@ -107763,7 +107759,7 @@ async function XUr(r, e, t, i = {}) {
|
|
|
107763
107759
|
return { geometryType: n, swapXY: s };
|
|
107764
107760
|
}
|
|
107765
107761
|
async function JUr(r, e, t) {
|
|
107766
|
-
return ZUr(e, (await
|
|
107762
|
+
return ZUr(e, (await hr(r, { responseType: "text", query: { SERVICE: "WFS", REQUEST: "DescribeFeatureType", VERSION: nB, TYPENAME: e, TYPENAMES: e, ...t?.customParameters }, signal: t?.signal })).data);
|
|
107767
107763
|
}
|
|
107768
107764
|
function ZUr(r, e) {
|
|
107769
107765
|
const { name: t } = zX(r), i = CAt(e);
|
|
@@ -107872,7 +107868,7 @@ function QUr(r) {
|
|
|
107872
107868
|
return { geometryType: i, fields: t, errors: e };
|
|
107873
107869
|
}
|
|
107874
107870
|
async function T4e(r, e, t, i, n) {
|
|
107875
|
-
let { data: s } = await
|
|
107871
|
+
let { data: s } = await hr(r, { responseType: "text", query: IAt(e, t, i, n), signal: n?.signal });
|
|
107876
107872
|
s = s.replaceAll(/": +(-?\d+),(\d+)(,)?/g, '": $1.$2$3');
|
|
107877
107873
|
try {
|
|
107878
107874
|
return JSON.parse(s);
|
|
@@ -107885,7 +107881,7 @@ function IAt(r, e, t, i) {
|
|
|
107885
107881
|
return { SERVICE: "WFS", REQUEST: "GetFeature", VERSION: nB, TYPENAMES: r, OUTPUTFORMAT: t, SRSNAME: "EPSG:" + n, STARTINDEX: i?.startIndex, COUNT: i?.count, ...i?.customParameters };
|
|
107886
107882
|
}
|
|
107887
107883
|
async function ezr(r, e, t) {
|
|
107888
|
-
const i = await
|
|
107884
|
+
const i = await hr(r, { responseType: "text", query: { SERVICE: "WFS", REQUEST: "GetFeature", VERSION: nB, TYPENAMES: e, RESULTTYPE: "hits", ...t?.customParameters }, signal: t?.signal }), n = /numberMatched=["'](?<numberMatched>\d+)["']/gi.exec(i.data);
|
|
107889
107885
|
if (n?.groups) return +n.groups.numberMatched;
|
|
107890
107886
|
}
|
|
107891
107887
|
function CAt(r) {
|
|
@@ -111871,7 +111867,7 @@ function b5t(r, e) {
|
|
|
111871
111867
|
});
|
|
111872
111868
|
}
|
|
111873
111869
|
async function w5t(r, e) {
|
|
111874
|
-
const { data: t } = await
|
|
111870
|
+
const { data: t } = await hr(r, { responseType: "image", ...e });
|
|
111875
111871
|
return t;
|
|
111876
111872
|
}
|
|
111877
111873
|
function Yqr() {
|
|
@@ -119867,7 +119863,7 @@ async function xZr(r, e, t, i) {
|
|
|
119867
119863
|
if (!e) throw new be("post:missing-guid", "guid for version is missing");
|
|
119868
119864
|
const n = Ks(r), s = t.toJSON(), o = el(n.query, { query: Nl({ ...s, f: "json" }), ...i, method: "post" });
|
|
119869
119865
|
e.startsWith("{") && (e = e.slice(1, -1));
|
|
119870
|
-
const a = `${n.path}/versions/${e}/deleteForwardEdits`, { data: l } = await
|
|
119866
|
+
const a = `${n.path}/versions/${e}/deleteForwardEdits`, { data: l } = await hr(a, o);
|
|
119871
119867
|
return l;
|
|
119872
119868
|
}
|
|
119873
119869
|
var SZr = /* @__PURE__ */ Object.freeze({
|
|
@@ -121038,7 +121034,7 @@ let COe = class {
|
|
|
121038
121034
|
return this.partUrl.startsWith(`${e.path}/assets/`);
|
|
121039
121035
|
}
|
|
121040
121036
|
async toBlob(e) {
|
|
121041
|
-
const { data: t } = await
|
|
121037
|
+
const { data: t } = await hr(this.partUrl, { responseType: "blob" });
|
|
121042
121038
|
return en(e), t;
|
|
121043
121039
|
}
|
|
121044
121040
|
};
|
|
@@ -121532,7 +121528,7 @@ let WA = class extends jy {
|
|
|
121532
121528
|
await k$(i, "editing");
|
|
121533
121529
|
const n = e.attributes[i.objectIdField], s = i.parsedUrl.path + "/" + n + "/addAttachment", o = this._getLayerRequestOptions(), a = this._getFormDataForAttachment(t, o.query);
|
|
121534
121530
|
try {
|
|
121535
|
-
const l = await
|
|
121531
|
+
const l = await hr(s, { body: a });
|
|
121536
121532
|
return HC(l.data.addAttachmentResult);
|
|
121537
121533
|
} catch (l) {
|
|
121538
121534
|
throw this._createAttachmentErrorResult(n, l);
|
|
@@ -121544,7 +121540,7 @@ let WA = class extends jy {
|
|
|
121544
121540
|
await k$(n, "editing");
|
|
121545
121541
|
const s = e.attributes[n.objectIdField], o = n.parsedUrl.path + "/" + s + "/updateAttachment", a = this._getLayerRequestOptions({ query: { attachmentId: t } }), l = this._getFormDataForAttachment(i, a.query);
|
|
121546
121542
|
try {
|
|
121547
|
-
const u = await
|
|
121543
|
+
const u = await hr(o, { body: l });
|
|
121548
121544
|
return HC(u.data.updateAttachmentResult);
|
|
121549
121545
|
} catch (u) {
|
|
121550
121546
|
throw this._createAttachmentErrorResult(s, u);
|
|
@@ -121566,10 +121562,10 @@ let WA = class extends jy {
|
|
|
121566
121562
|
const D = t?.returnServiceEditsOption ? i.url : i.parsedUrl.path;
|
|
121567
121563
|
let k;
|
|
121568
121564
|
try {
|
|
121569
|
-
k = _ ? await this._asyncApplyEdits(D + "/applyEdits", A) : await
|
|
121565
|
+
k = _ ? await this._asyncApplyEdits(D + "/applyEdits", A) : await hr(D + "/applyEdits", A);
|
|
121570
121566
|
} catch (N) {
|
|
121571
121567
|
if (!MQr(N)) throw N;
|
|
121572
|
-
A.authMode = "immediate", k = _ ? await this._asyncApplyEdits(D + "/applyEdits", A) : await
|
|
121568
|
+
A.authMode = "immediate", k = _ ? await this._asyncApplyEdits(D + "/applyEdits", A) : await hr(D + "/applyEdits", A);
|
|
121573
121569
|
}
|
|
121574
121570
|
return this._createEditsResult(k);
|
|
121575
121571
|
}
|
|
@@ -121579,7 +121575,7 @@ let WA = class extends jy {
|
|
|
121579
121575
|
await k$(i, "editing");
|
|
121580
121576
|
const n = e.attributes[i.objectIdField], s = i.parsedUrl.path + "/" + n + "/deleteAttachments";
|
|
121581
121577
|
try {
|
|
121582
|
-
return (await
|
|
121578
|
+
return (await hr(s, this._getLayerRequestOptions({ query: { attachmentIds: t.join(",") }, method: "post" }))).data.deleteAttachmentResults.map(HC);
|
|
121583
121579
|
} catch (o) {
|
|
121584
121580
|
throw this._createAttachmentErrorResult(n, o);
|
|
121585
121581
|
}
|
|
@@ -121587,7 +121583,7 @@ let WA = class extends jy {
|
|
|
121587
121583
|
fetchRecomputedExtents(e = {}) {
|
|
121588
121584
|
const t = e.signal;
|
|
121589
121585
|
return this.load({ signal: t }).then(async () => {
|
|
121590
|
-
const i = this._getLayerRequestOptions({ ...e, query: { returnUpdates: !0 } }), { layerId: n, url: s } = this.layer, { data: o } = await
|
|
121586
|
+
const i = this._getLayerRequestOptions({ ...e, query: { returnUpdates: !0 } }), { layerId: n, url: s } = this.layer, { data: o } = await hr(`${s}/${n}`, i), { id: a, extent: l, fullExtent: u, timeExtent: c } = o, h = l || u;
|
|
121591
121587
|
return { id: a, fullExtent: h && Yr.fromJSON(h), timeExtent: c && Ma.fromJSON({ start: c[0], end: c[1] }) };
|
|
121592
121588
|
});
|
|
121593
121589
|
}
|
|
@@ -121651,7 +121647,7 @@ let WA = class extends jy {
|
|
|
121651
121647
|
}
|
|
121652
121648
|
async fetchPublishingStatus() {
|
|
121653
121649
|
if (!F3(this.layer.url)) return "unavailable";
|
|
121654
|
-
const e = kl(this.layer.url, "status"), t = await
|
|
121650
|
+
const e = kl(this.layer.url, "status"), t = await hr(e, { query: { f: "json" } });
|
|
121655
121651
|
return qQr.fromJSON(t.data.status);
|
|
121656
121652
|
}
|
|
121657
121653
|
async uploadAssets(e, t) {
|
|
@@ -121679,12 +121675,12 @@ let WA = class extends jy {
|
|
|
121679
121675
|
this._editInterceptor != null && (oZ(ia.request.internalInterceptors, this._editInterceptor), this._editInterceptor = null);
|
|
121680
121676
|
}
|
|
121681
121677
|
async _asyncApplyEdits(e, t) {
|
|
121682
|
-
const i = (await
|
|
121678
|
+
const i = (await hr(e, t)).data.statusUrl;
|
|
121683
121679
|
for (; ; ) {
|
|
121684
|
-
const n = (await
|
|
121680
|
+
const n = (await hr(i, { query: { f: "json" }, responseType: "json" })).data;
|
|
121685
121681
|
switch (n.status) {
|
|
121686
121682
|
case "Completed":
|
|
121687
|
-
return
|
|
121683
|
+
return hr(n.resultUrl, { query: { f: "json" }, responseType: "json" });
|
|
121688
121684
|
case "CompletedWithErrors":
|
|
121689
121685
|
throw new be("async-applyEdits-failed", "asynchronous applyEdits call failed.");
|
|
121690
121686
|
case "Failed ImportChanges":
|
|
@@ -121712,7 +121708,7 @@ let WA = class extends jy {
|
|
|
121712
121708
|
if (!e) {
|
|
121713
121709
|
const n = {};
|
|
121714
121710
|
cr("featurelayer-advanced-symbols") && (n.returnAdvancedSymbols = !0), t?.cacheBust && (n._ts = Date.now());
|
|
121715
|
-
const { data: s } = await
|
|
121711
|
+
const { data: s } = await hr(this.layer.parsedUrl.path, this._getLayerRequestOptions({ query: n, signal: t?.signal }));
|
|
121716
121712
|
e = s;
|
|
121717
121713
|
}
|
|
121718
121714
|
this.layer.applyPreferredHost(e), this.sourceJSON = await this._patchServiceJSON(e, t?.signal);
|
|
@@ -121725,7 +121721,7 @@ let WA = class extends jy {
|
|
|
121725
121721
|
Pu("drawingInfo.renderer", i, e);
|
|
121726
121722
|
}
|
|
121727
121723
|
if (e.geometryType === "esriGeometryMultiPatch" && e.infoFor3D && (e.geometryType = "mesh"), e.extent == null) try {
|
|
121728
|
-
const { data: i } = await
|
|
121724
|
+
const { data: i } = await hr(this.layer.url, this._getLayerRequestOptions({ signal: t }));
|
|
121729
121725
|
i.spatialReference && (e.extent = { xmin: 0, ymin: 0, xmax: 0, ymax: 0, spatialReference: i.spatialReference });
|
|
121730
121726
|
} catch (i) {
|
|
121731
121727
|
Wo(i);
|
|
@@ -122572,7 +122568,7 @@ m([x({ type: [Rvt], json: { read: { source: "traceConfigurations" }, write: { ta
|
|
|
122572
122568
|
async function Aei(r, e, t) {
|
|
122573
122569
|
const i = Ks(r), n = e.toJSON();
|
|
122574
122570
|
e.globalIds && e.globalIds.length > 0 && (n.globalIds = JSON.stringify(e.globalIds)), e.creators && e.creators.length > 0 && (n.creators = JSON.stringify(e.creators)), e.tags && e.tags.length > 0 && (n.tags = JSON.stringify(e.tags)), e.names && e.names.length > 0 && (n.names = JSON.stringify(e.names));
|
|
122575
|
-
const s = { ...n, f: "json" }, o = Nl({ ...i.query, ...s }), a = el(o, { ...t, method: "post" }), l = `${i.path}/traceConfigurations/query`, { data: u } = await
|
|
122571
|
+
const s = { ...n, f: "json" }, o = Nl({ ...i.query, ...s }), a = el(o, { ...t, method: "post" }), l = `${i.path}/traceConfigurations/query`, { data: u } = await hr(l, a);
|
|
122576
122572
|
return Doe.fromJSON(u);
|
|
122577
122573
|
}
|
|
122578
122574
|
var kei = /* @__PURE__ */ Object.freeze({
|
|
@@ -122596,14 +122592,14 @@ var Mei = /* @__PURE__ */ Object.freeze({
|
|
|
122596
122592
|
async function Nei(r, e, t) {
|
|
122597
122593
|
const i = Ks(r), n = e.toJSON();
|
|
122598
122594
|
e.validationSet && (n.validationSet = JSON.stringify(e.validationSet));
|
|
122599
|
-
const s = { ...n, returnEdits: !0, f: "json" }, o = Nl({ ...i.query, ...s }), a = el(o, { ...t, method: "post" }), l = `${i.path}/validateNetworkTopology`, { data: u } = await
|
|
122595
|
+
const s = { ...n, returnEdits: !0, f: "json" }, o = Nl({ ...i.query, ...s }), a = el(o, { ...t, method: "post" }), l = `${i.path}/validateNetworkTopology`, { data: u } = await hr(l, a);
|
|
122600
122596
|
return Nvt.fromJSON(XMt(u));
|
|
122601
122597
|
}
|
|
122602
122598
|
async function $ei(r, e, t) {
|
|
122603
122599
|
if (!e.gdbVersion) throw new be("submit-validate-network-topology-job:missing-gdb-version", "version is missing");
|
|
122604
122600
|
const i = Ks(r), n = e.toJSON();
|
|
122605
122601
|
e.validationSet && (n.validationSet = JSON.stringify(e.validationSet));
|
|
122606
|
-
const s = el(i.query, { query: Nl({ ...n, returnEdits: !0, async: !0, f: "json" }), ...t, method: "post" }), o = `${i.path}/validateNetworkTopology`, { data: a } = await
|
|
122602
|
+
const s = el(i.query, { query: Nl({ ...n, returnEdits: !0, async: !0, f: "json" }), ...t, method: "post" }), o = `${i.path}/validateNetworkTopology`, { data: a } = await hr(o, s);
|
|
122607
122603
|
return a ? a.statusUrl : null;
|
|
122608
122604
|
}
|
|
122609
122605
|
function XMt(r) {
|
|
@@ -122823,7 +122819,7 @@ function Bei(r) {
|
|
|
122823
122819
|
return { returnDeletes: e, elements: JSON.stringify(t.map((s) => ({ globalId: s.globalId, networkSourceId: s.networkSourceId, terminalId: s.terminalId }))), types: JSON.stringify(r.types.map((s) => s3.toJSON(s))).replaceAll('"connectivity"', '"junctionJunctionConnectivity"'), gdbVersion: i, moment: n ?? Date.now() };
|
|
122824
122820
|
}
|
|
122825
122821
|
async function JMt(r, e, t) {
|
|
122826
|
-
const i = Ks(r), n = { ...Bei(e), f: "json" }, s = Nl({ ...i.query, ...n }), o = el(s, { ...t, method: "post" }), a = `${i.path}/associations/query`, { data: l } = await
|
|
122822
|
+
const i = Ks(r), n = { ...Bei(e), f: "json" }, s = Nl({ ...i.query, ...n }), o = el(s, { ...t, method: "post" }), a = `${i.path}/associations/query`, { data: l } = await hr(a, o), u = Moe.fromJSON(l);
|
|
122827
122823
|
return e.types.includes("connectivity") && _Ne(Wt.getLogger("esri/rest/networks/support/QueryAssociationsParameters"), "types", { replacement: "Please use 'junction-junction-connectivity' instead of 'connectivity'.", see: "https://arcg.is/11Tr8a#types", version: "4.29", warnOnce: !0 }), u;
|
|
122828
122824
|
}
|
|
122829
122825
|
var Uei = /* @__PURE__ */ Object.freeze({
|
|
@@ -122857,7 +122853,7 @@ async function qei(r, e, t) {
|
|
|
122857
122853
|
const i = Ks(r), n = { ...e.toJSON(), f: "json" }, s = Nl({ ...i.query, ...n });
|
|
122858
122854
|
t ? t.method = "post" : t = { method: "post" };
|
|
122859
122855
|
const o = el(s, t), a = `${i.path}/synthesizeAssociationGeometries`;
|
|
122860
|
-
return
|
|
122856
|
+
return hr(a, o).then((l) => Vei(l, e.outSpatialReference));
|
|
122861
122857
|
}
|
|
122862
122858
|
function Vei(r, e) {
|
|
122863
122859
|
const { data: t } = r;
|
|
@@ -122894,12 +122890,12 @@ async function Yei(r, e, t) {
|
|
|
122894
122890
|
const i = Ks(r), n = e.toJSON();
|
|
122895
122891
|
n.traceLocations = JSON.stringify(e.traceLocations), e.resultTypes && (n.resultTypes = JSON.stringify(e.resultTypes)), e.moment || e.gdbVersion?.toUpperCase() !== "SDE.DEFAULT" && e.gdbVersion || (n.moment = Date.now());
|
|
122896
122892
|
const s = el(i.query, { query: Nl({ ...n, f: "json" }), ...t }), o = `${i.path}/trace`;
|
|
122897
|
-
return
|
|
122893
|
+
return hr(o, s).then((a) => Jei(a));
|
|
122898
122894
|
}
|
|
122899
122895
|
async function Xei(r, e, t) {
|
|
122900
122896
|
const i = Ks(r), n = e.toJSON();
|
|
122901
122897
|
n.traceLocations = JSON.stringify(e.traceLocations), e.resultTypes && (n.resultTypes = JSON.stringify(e.resultTypes));
|
|
122902
|
-
const s = el(i.query, { query: Nl({ ...n, async: !0, f: "json" }), ...t }), o = `${i.path}/trace`, { data: a } = await
|
|
122898
|
+
const s = el(i.query, { query: Nl({ ...n, async: !0, f: "json" }), ...t }), o = `${i.path}/trace`, { data: a } = await hr(o, s);
|
|
122903
122899
|
return a.statusUrl;
|
|
122904
122900
|
}
|
|
122905
122901
|
function Jei(r) {
|
|
@@ -165772,14 +165768,14 @@ async function bnt(r, e, t) {
|
|
|
165772
165768
|
if (r.loadStatus === "loaded" && e === "" && r.user?.sourceJSON && t === !1) return r.user.sourceJSON;
|
|
165773
165769
|
const n = { responseType: "json", query: { f: "json" } };
|
|
165774
165770
|
if (t && (n.query.returnUserLicenseTypeExtensions = !0), e === "") {
|
|
165775
|
-
const o = await
|
|
165771
|
+
const o = await hr(r.restUrl + "/community/self", n);
|
|
165776
165772
|
if (o.data) {
|
|
165777
165773
|
const a = o.data;
|
|
165778
165774
|
if (a?.username) return a;
|
|
165779
165775
|
}
|
|
165780
165776
|
return null;
|
|
165781
165777
|
}
|
|
165782
|
-
const s = await
|
|
165778
|
+
const s = await hr(r.restUrl + "/community/users/" + e, n);
|
|
165783
165779
|
if (s.data) {
|
|
165784
165780
|
const o = s.data;
|
|
165785
165781
|
return o.error ? null : o;
|
|
@@ -169720,7 +169716,7 @@ let $gi = class Q5e extends rp {
|
|
|
169720
169716
|
async queryRelatedFeatures(e) {
|
|
169721
169717
|
const t = { f: "json", relationshipId: e.relationshipId.toString(), definitionExpression: e.where, outFields: e.outFields?.join(","), returnGeometry: e.returnGeometry.toString() };
|
|
169722
169718
|
e.resultOffset !== void 0 && e.resultOffset !== null && (t.resultOffset = e.resultOffset.toString()), e.resultRecordCount !== void 0 && e.resultRecordCount !== null && (t.resultRecordCount = e.resultRecordCount.toString()), e.orderByFields && (t.orderByFields = e.orderByFields.join(",")), e.objectIds && e.objectIds.length > 0 && (t.objectIds = e.objectIds.join(",")), e.outSpatialReference && (t.outSR = $y(e.outSpatialReference)), this.featureSetQueryInterceptor && this.featureSetQueryInterceptor.preRequestCallback({ layer: this._layer, queryPayload: t, method: "relatedrecords", url: this._layer.parsedUrl.path + "/queryRelatedRecords" });
|
|
169723
|
-
const i = await
|
|
169719
|
+
const i = await hr(this._layer.parsedUrl.path + "/queryRelatedRecords", { responseType: "json", query: t });
|
|
169724
169720
|
if (i.data) {
|
|
169725
169721
|
const n = {}, s = i.data;
|
|
169726
169722
|
if (s?.relatedRecordGroups) {
|
|
@@ -169759,7 +169755,7 @@ let $gi = class Q5e extends rp {
|
|
|
169759
169755
|
if (t = i > -1 ? t.slice(0, i) : t, t) {
|
|
169760
169756
|
t += "/rest/info";
|
|
169761
169757
|
try {
|
|
169762
|
-
const n = await
|
|
169758
|
+
const n = await hr(t, { query: { f: "json" } });
|
|
169763
169759
|
let s = "";
|
|
169764
169760
|
return n.data?.owningSystemUrl && (s = n.data.owningSystemUrl), s;
|
|
169765
169761
|
} catch {
|
|
@@ -169792,7 +169788,7 @@ let $gi = class Q5e extends rp {
|
|
|
169792
169788
|
let e = null, t = "serviceItemId" in this._layer ? this._layer.serviceItemId : null;
|
|
169793
169789
|
const i = this._layer.parsedUrl?.path ?? null;
|
|
169794
169790
|
if (i) {
|
|
169795
|
-
const s = await
|
|
169791
|
+
const s = await hr(i, { responseType: "json", query: { f: "json" } });
|
|
169796
169792
|
e = s?.data?.name ?? null, t = s?.data?.serviceItemId ?? null;
|
|
169797
169793
|
}
|
|
169798
169794
|
const n = this._layer.title && (this._layer.parent ?? null) !== null;
|
|
@@ -170288,7 +170284,7 @@ async function Ogi(r) {
|
|
|
170288
170284
|
if (t !== null) return t;
|
|
170289
170285
|
}
|
|
170290
170286
|
const e = (async () => {
|
|
170291
|
-
const t = await
|
|
170287
|
+
const t = await hr(r, { responseType: "json", query: { f: "json" } });
|
|
170292
170288
|
return t.data ? t.data : null;
|
|
170293
170289
|
})();
|
|
170294
170290
|
if (tu.applicationCache !== null) {
|
|
@@ -170308,7 +170304,7 @@ async function Lgi(r, e) {
|
|
|
170308
170304
|
if (n !== null) return n;
|
|
170309
170305
|
}
|
|
170310
170306
|
const i = (async () => {
|
|
170311
|
-
const n = await
|
|
170307
|
+
const n = await hr(r + "/queryDataElements", { method: "post", responseType: "json", query: { layers: JSON.stringify([e.toString()]), f: "json" } });
|
|
170312
170308
|
if (n.data) {
|
|
170313
170309
|
const s = n.data;
|
|
170314
170310
|
if (s.layerDataElements?.[0]) return s.layerDataElements[0];
|
|
@@ -170335,7 +170331,7 @@ async function Q9t(r, e) {
|
|
|
170335
170331
|
if (i != null) return i;
|
|
170336
170332
|
}
|
|
170337
170333
|
const t = (async () => {
|
|
170338
|
-
const i = await
|
|
170334
|
+
const i = await hr(r, { responseType: "json", query: { f: "json" } });
|
|
170339
170335
|
if (i.data) {
|
|
170340
170336
|
const n = i.data;
|
|
170341
170337
|
return n.layers || (n.layers = []), n.tables || (n.tables = []), n;
|
|
@@ -176910,7 +176906,7 @@ function ovi() {
|
|
|
176910
176906
|
var se, he, Ae, je, et, pt, bt, $t = this, Jt = this.interaction, jt = Qt(Jt).resistance, ae = (Jt._now() - this.t0) / 1e3;
|
|
176911
176907
|
if (ae < this.te) {
|
|
176912
176908
|
var me, ze = 1 - (Math.exp(-jt * ae) - this.lambda_v0) / this.one_ve_v0;
|
|
176913
|
-
this.isModified ? (se = 0, he = 0, Ae = this.targetOffset.x, je = this.targetOffset.y, et = this.modifiedOffset.x, pt = this.modifiedOffset.y, me = { x:
|
|
176909
|
+
this.isModified ? (se = 0, he = 0, Ae = this.targetOffset.x, je = this.targetOffset.y, et = this.modifiedOffset.x, pt = this.modifiedOffset.y, me = { x: dr(bt = ze, se, Ae, et), y: dr(bt, he, je, pt) }) : me = { x: this.targetOffset.x * ze, y: this.targetOffset.y * ze };
|
|
176914
176910
|
var He = { x: me.x - this.currentOffset.x, y: me.y - this.currentOffset.y };
|
|
176915
176911
|
this.currentOffset.x += He.x, this.currentOffset.y += He.y, Jt.offsetBy(He), Jt.move(), this.onNextFrame(function() {
|
|
176916
176912
|
return $t.inertiaTick();
|
|
@@ -176968,7 +176964,7 @@ function ovi() {
|
|
|
176968
176964
|
}, "interactions:after-action-resume": function(ie) {
|
|
176969
176965
|
return ie.interaction.modification.restoreInteractionCoords(ie);
|
|
176970
176966
|
} } };
|
|
176971
|
-
function
|
|
176967
|
+
function dr(ie, se, he, Ae) {
|
|
176972
176968
|
var je = 1 - ie;
|
|
176973
176969
|
return je * je * se + 2 * je * ie * he + ie * ie * Ae;
|
|
176974
176970
|
}
|
|
@@ -178987,7 +178983,7 @@ let hA = _ke = class extends rc(Gl(Vp(Ts))) {
|
|
|
178987
178983
|
}
|
|
178988
178984
|
fetchTile(r, e, t, i = {}) {
|
|
178989
178985
|
const { signal: n } = i, s = this.getTileUrl(r, e, t), o = { responseType: "image", signal: n, query: { ...this.refreshParameters } };
|
|
178990
|
-
return
|
|
178986
|
+
return hr(s ?? "", o).then((a) => a.data);
|
|
178991
178987
|
}
|
|
178992
178988
|
async fetchImageBitmapTile(r, e, t, i = {}) {
|
|
178993
178989
|
const { signal: n } = i;
|
|
@@ -178995,7 +178991,7 @@ let hA = _ke = class extends rc(Gl(Vp(Ts))) {
|
|
|
178995
178991
|
const l = await this.fetchTile(r, e, t, i);
|
|
178996
178992
|
return eD(l, r, e, t, n);
|
|
178997
178993
|
}
|
|
178998
|
-
const s = this.getTileUrl(r, e, t) ?? "", o = { responseType: "blob", signal: n, query: { ...this.refreshParameters } }, { data: a } = await
|
|
178994
|
+
const s = this.getTileUrl(r, e, t) ?? "", o = { responseType: "blob", signal: n, query: { ...this.refreshParameters } }, { data: a } = await hr(s, o);
|
|
178999
178995
|
return eD(a, r, e, t, n);
|
|
179000
178996
|
}
|
|
179001
178997
|
getTileUrl() {
|
|
@@ -179037,7 +179033,7 @@ let Qy = class extends rc(Ml(oa(hA))) {
|
|
|
179037
179033
|
}
|
|
179038
179034
|
_getMetadata() {
|
|
179039
179035
|
const e = { road: "roadOnDemand", aerial: "aerial", hybrid: "aerialWithLabelsOnDemand" }[this.style];
|
|
179040
|
-
return
|
|
179036
|
+
return hr(`${Xvi}/REST/v1/Imagery/Metadata/${e}`, { responseType: "json", query: { include: "ImageryProviders", uriScheme: "https", key: this.key, suppressStatus: !0, output: "json", culture: this.culture, userRegion: this.region } }).then((t) => {
|
|
179041
179037
|
const i = t.data;
|
|
179042
179038
|
if (i.statusCode !== 200) throw new be("bingmapslayer:getmetadata", i.statusDescription);
|
|
179043
179039
|
if (this.bingMetadata = i, this.bingMetadata.resourceSets.length === 0) throw new be("bingmapslayer:getmetadata", "no bing resourcesets");
|
|
@@ -179047,7 +179043,7 @@ let Qy = class extends rc(Ml(oa(hA))) {
|
|
|
179047
179043
|
});
|
|
179048
179044
|
}
|
|
179049
179045
|
_getPortalBingKey() {
|
|
179050
|
-
return
|
|
179046
|
+
return hr(this.portalUrl ?? "", { responseType: "json", authMode: "no-prompt", query: { f: "json" } }).then((e) => {
|
|
179051
179047
|
if (!e.data.bingKey) throw new be("bingmapslayer:getportalbingkey", "The referenced Portal does not contain a valid bing key");
|
|
179052
179048
|
this.key = e.data.bingKey;
|
|
179053
179049
|
}).catch((e) => {
|
|
@@ -179088,7 +179084,7 @@ async function gOt(r, e, t, i, n, s, o) {
|
|
|
179088
179084
|
if (t != null) {
|
|
179089
179085
|
const h = `${r}/nodepages/`, d = h + Math.floor(t.rootIndex / t.nodesPerPage);
|
|
179090
179086
|
try {
|
|
179091
|
-
return { type: "page", rootPage: (await
|
|
179087
|
+
return { type: "page", rootPage: (await hr(d, { query: { f: "json", ...i, token: n }, responseType: "json", signal: o })).data, rootIndex: t.rootIndex, pageSize: t.nodesPerPage, lodMetric: t.lodSelectionMetricType, urlPrefix: h };
|
|
179092
179088
|
} catch (f) {
|
|
179093
179089
|
s?.warn("#fetchIndexInfo()", "Failed to load root node page. Falling back to node documents.", d, f), a = f;
|
|
179094
179090
|
}
|
|
@@ -179096,7 +179092,7 @@ async function gOt(r, e, t, i, n, s, o) {
|
|
|
179096
179092
|
if (!e) return null;
|
|
179097
179093
|
const l = e?.split("/").pop(), u = `${r}/nodes/`, c = u + l;
|
|
179098
179094
|
try {
|
|
179099
|
-
return { type: "node", rootNode: (await
|
|
179095
|
+
return { type: "node", rootNode: (await hr(c, { query: { f: "json", ...i, token: n }, responseType: "json", signal: o })).data, urlPrefix: u };
|
|
179100
179096
|
} catch (h) {
|
|
179101
179097
|
throw new be("sceneservice:root-node-missing", "Root node missing.", { pageError: a, nodeError: h, url: c });
|
|
179102
179098
|
}
|
|
@@ -179160,7 +179156,7 @@ async function yOt(r, e, t, i, n, s, o, a) {
|
|
|
179160
179156
|
const d = `${r}/nodes/${t}/attributes/${h.key}/0`;
|
|
179161
179157
|
l.push({ url: d, storageInfo: h });
|
|
179162
179158
|
}
|
|
179163
|
-
const u = await Promise.allSettled(l.map((h) =>
|
|
179159
|
+
const u = await Promise.allSettled(l.map((h) => hr(h.url, { responseType: "array-buffer", query: { ...o, token: s }, signal: a?.signal }).then((d) => EPt(h.storageInfo, d.data)))), c = [];
|
|
179164
179160
|
for (const h of i) {
|
|
179165
179161
|
const d = {};
|
|
179166
179162
|
for (let f = 0; f < u.length; f++) {
|
|
@@ -179262,7 +179258,7 @@ let Ca = class extends dD(wP(M1)) {
|
|
|
179262
179258
|
return By(this, e);
|
|
179263
179259
|
}
|
|
179264
179260
|
async _fetchService(e) {
|
|
179265
|
-
const t = (await
|
|
179261
|
+
const t = (await hr(this.parsedUrl.path, { query: { f: "json", ...this.customParameters, token: this.apiKey }, responseType: "json", signal: e })).data;
|
|
179266
179262
|
this.read(t, { origin: "service", url: this.parsedUrl });
|
|
179267
179263
|
}
|
|
179268
179264
|
getField(e) {
|
|
@@ -179447,11 +179443,11 @@ const HK = (r) => {
|
|
|
179447
179443
|
return this._fetchServiceLayer(i);
|
|
179448
179444
|
}
|
|
179449
179445
|
async _fetchFirstLayerId(i) {
|
|
179450
|
-
const n = await
|
|
179446
|
+
const n = await hr(this.url ?? "", { query: { f: "json", ...this.customParameters, token: this.apiKey }, responseType: "json", signal: i });
|
|
179451
179447
|
if (n.data && Array.isArray(n.data.layers) && n.data.layers.length > 0) return n.data.layers[0].id;
|
|
179452
179448
|
}
|
|
179453
179449
|
async _fetchServiceLayer(i) {
|
|
179454
|
-
const n = await
|
|
179450
|
+
const n = await hr(this.parsedUrl?.path ?? "", { query: { f: "json", ...this.customParameters, token: this.apiKey }, responseType: "json", signal: i });
|
|
179455
179451
|
n.ssl && this.url && (this.url = this.url.replace(/^http:/i, "https:"));
|
|
179456
179452
|
let s = !1;
|
|
179457
179453
|
if (n.data.layerType && n.data.layerType === "Voxel" && (s = !0), s) return this._fetchVoxelServiceLayer();
|
|
@@ -179459,7 +179455,7 @@ const HK = (r) => {
|
|
|
179459
179455
|
this.read(o, this._getServiceContext()), this.validateLayer(o);
|
|
179460
179456
|
}
|
|
179461
179457
|
async _fetchVoxelServiceLayer(i) {
|
|
179462
|
-
const n = (await
|
|
179458
|
+
const n = (await hr(this.parsedUrl?.path + "/layer", { query: { f: "json", ...this.customParameters, token: this.apiKey }, responseType: "json", signal: i })).data;
|
|
179463
179459
|
this.read(n, this._getServiceContext()), this.validateLayer(n);
|
|
179464
179460
|
}
|
|
179465
179461
|
_getServiceContext() {
|
|
@@ -179635,7 +179631,7 @@ let XA = class extends dD(wP(Ct)) {
|
|
|
179635
179631
|
return this.addResolvingPromise(this._fetchService(t)), Promise.resolve(this);
|
|
179636
179632
|
}
|
|
179637
179633
|
async _fetchService(e) {
|
|
179638
|
-
const t = (await
|
|
179634
|
+
const t = (await hr(this.url, { query: { f: "json", ...this.customParameters, token: this.apiKey }, responseType: "json", signal: e })).data;
|
|
179639
179635
|
this.read(t, { origin: "service" });
|
|
179640
179636
|
}
|
|
179641
179637
|
};
|
|
@@ -180292,7 +180288,7 @@ let Tc = class extends gD($6e(Fpe(rc(lU(db(Gl(Vp(Fm(Ml(ku(oa(qp(hb(Ts)))))))))))
|
|
|
180292
180288
|
return o;
|
|
180293
180289
|
}
|
|
180294
180290
|
async _fetchFirstValidLayerId(e) {
|
|
180295
|
-
const { data: t } = await
|
|
180291
|
+
const { data: t } = await hr(this.url, { query: { f: "json", ...this.customParameters, token: this.apiKey }, responseType: "json", signal: e });
|
|
180296
180292
|
if (this.applyPreferredHost(t), Array.isArray(t?.layers)) return t.layers.find(({ type: i }) => this.supportedSourceTypes.has(i))?.id;
|
|
180297
180293
|
}
|
|
180298
180294
|
async _createLayer(e) {
|
|
@@ -180697,7 +180693,7 @@ let Hm = class extends rc(Vp(Ml(ku(Gl(oa(Ts)))))) {
|
|
|
180697
180693
|
return this.read(e, { origin: "service", ignoreDefaults: !0 }), !0;
|
|
180698
180694
|
}
|
|
180699
180695
|
async _fetchService(e) {
|
|
180700
|
-
const t = this.spatialReference, { data: i } = await
|
|
180696
|
+
const t = this.spatialReference, { data: i } = await hr(ia.geoRSSServiceUrl, { query: { url: this.url, refresh: !!this.loaded || void 0, outSR: gS(t) ? void 0 : t.wkid ?? JSON.stringify(t) }, signal: e });
|
|
180701
180697
|
return i;
|
|
180702
180698
|
}
|
|
180703
180699
|
_hasGeometry(e) {
|
|
@@ -182852,29 +182848,29 @@ async function rLt(r, e, t) {
|
|
|
182852
182848
|
async function s2i(r, e, t) {
|
|
182853
182849
|
const i = (e = Yo(uC, e)).toJSON();
|
|
182854
182850
|
i.geometries = JSON.stringify(i.geometries);
|
|
182855
|
-
const n = Ks(r), s = Nl({ ...n.query, f: "json", ...i }), o = el(s, t), { data: a } = await
|
|
182851
|
+
const n = Ks(r), s = Nl({ ...n.query, f: "json", ...i }), o = el(s, t), { data: a } = await hr(`${n.path}/calculateVolume`, o);
|
|
182856
182852
|
return cae.fromJSON({ volumes: a.results });
|
|
182857
182853
|
}
|
|
182858
182854
|
async function o2i(r, e, t) {
|
|
182859
182855
|
const i = (e = Yo(MN, e)).toJSON();
|
|
182860
182856
|
i.angleName != null && (i.angleName = i.angleName.join(",")), e?.point?.spatialReference?.imageCoordinateSystem && (i.point.spatialReference = aye(e.point.spatialReference)), e?.spatialReference?.imageCoordinateSystem && (i.spatialReference = VU(e.spatialReference));
|
|
182861
|
-
const n = Ks(r), s = Nl({ ...n.query, f: "json", ...i }), o = el(s, t), { data: a } = await
|
|
182857
|
+
const n = Ks(r), s = Nl({ ...n.query, f: "json", ...i }), o = el(s, t), { data: a } = await hr(`${n.path}/computeAngles`, o);
|
|
182862
182858
|
return a.spatialReference = a.spatialReference ? a.spatialReference.geodataXform != null ? new sr({ wkid: 0, imageCoordinateSystem: a.spatialReference }) : sr.fromJSON(a.spatialReference) : null, a.north === "NaN" && (a.north = null), a.up === "NaN" && (a.up = null), new sO(a);
|
|
182863
182859
|
}
|
|
182864
182860
|
async function a2i(r, e, t) {
|
|
182865
182861
|
const i = (e = Yo(lO, e)).toJSON(), { geometries: n } = e;
|
|
182866
182862
|
if (n) for (let u = 0; u < n.length; u++) n[u].spatialReference?.imageCoordinateSystem && (i.geometries.geometries[u].spatialReference = aye(n[u].spatialReference));
|
|
182867
|
-
const s = Ks(r), o = Nl({ ...s.query, f: "json", ...i }), a = el(o, t), { data: l } = await
|
|
182863
|
+
const s = Ks(r), o = Nl({ ...s.query, f: "json", ...i }), a = el(o, t), { data: l } = await hr(`${s.path}/computePixelLocation`, a);
|
|
182868
182864
|
return aae.fromJSON(l);
|
|
182869
182865
|
}
|
|
182870
182866
|
async function l2i(r, e, t) {
|
|
182871
|
-
const i = await rLt(r, e, t), n = Ks(r), { data: s } = await
|
|
182867
|
+
const i = await rLt(r, e, t), n = Ks(r), { data: s } = await hr(`${n.path}/computeStatisticsHistograms`, i), { statistics: o } = s;
|
|
182872
182868
|
return o?.length && o.forEach((a) => {
|
|
182873
182869
|
a.avg = a.mean, a.stddev = a.standardDeviation;
|
|
182874
182870
|
}), { statistics: o, histograms: s.histograms };
|
|
182875
182871
|
}
|
|
182876
182872
|
async function u2i(r, e, t) {
|
|
182877
|
-
const i = await rLt(r, e, t), n = Ks(r), { data: s } = await
|
|
182873
|
+
const i = await rLt(r, e, t), n = Ks(r), { data: s } = await hr(`${n.path}/computeHistograms`, i);
|
|
182878
182874
|
return { histograms: s.histograms };
|
|
182879
182875
|
}
|
|
182880
182876
|
async function c2i(r, e, t) {
|
|
@@ -182882,7 +182878,7 @@ async function c2i(r, e, t) {
|
|
|
182882
182878
|
R7e(i), i.outFields?.length && (i.outFields = i.outFields.join(","));
|
|
182883
182879
|
const n = await Jf(e.geometry), s = n?.[0];
|
|
182884
182880
|
s != null && (i.geometry = G3(s));
|
|
182885
|
-
const o = Ks(r), a = Nl({ ...o.query, f: "json", ...i }), l = el(a, t), { data: u } = await
|
|
182881
|
+
const o = Ks(r), a = Nl({ ...o.query, f: "json", ...i }), l = el(a, t), { data: u } = await hr(`${o.path}/getSamples`, l), c = u.samples.map((h) => {
|
|
182886
182882
|
const d = h.value === "NaN" || h.value === "" ? null : h.value.split(" ").map((f) => Number(f));
|
|
182887
182883
|
return { ...h, pixelValue: d };
|
|
182888
182884
|
});
|
|
@@ -182895,7 +182891,7 @@ async function Kst(r, e, t) {
|
|
|
182895
182891
|
const o = e.toJSON(), a = s?.[0];
|
|
182896
182892
|
a != null && (o.geometry = JSON.stringify(G3(a)));
|
|
182897
182893
|
const l = Nl({ ...i.query, f: "json", ...o }), u = el(l, t);
|
|
182898
|
-
return
|
|
182894
|
+
return hr(i.path + "/identify", u);
|
|
182899
182895
|
}).then((s) => X2.fromJSON(s.data));
|
|
182900
182896
|
}
|
|
182901
182897
|
async function h2i(r, e, t) {
|
|
@@ -182921,7 +182917,7 @@ async function f2i(r, e, t) {
|
|
|
182921
182917
|
async function oye(r, e, t, i) {
|
|
182922
182918
|
const n = Ks(r), s = await Jf(t), o = e.toJSON();
|
|
182923
182919
|
s[0] != null && (o.fromGeometry = JSON.stringify(G3(s[0]))), s[1] != null && (o.toGeometry = JSON.stringify(G3(s[1])));
|
|
182924
|
-
const a = Nl({ ...n.query, f: "json", ...o }), l = el(a, i), { data: u } = await
|
|
182920
|
+
const a = Nl({ ...n.query, f: "json", ...o }), l = el(a, i), { data: u } = await hr(n.path + "/measure", l);
|
|
182925
182921
|
return u;
|
|
182926
182922
|
}
|
|
182927
182923
|
async function m2i(r, e, t) {
|
|
@@ -182934,7 +182930,7 @@ async function g2i(r, e, t) {
|
|
|
182934
182930
|
}
|
|
182935
182931
|
async function iLt(r, e, t) {
|
|
182936
182932
|
e = Yo(uO, e);
|
|
182937
|
-
const i = Ks(r), n = e.toJSON(), s = Nl({ ...i.query, f: "json", ...n }), o = el(s, t), { data: a } = await
|
|
182933
|
+
const i = Ks(r), n = e.toJSON(), s = Nl({ ...i.query, f: "json", ...n }), o = el(s, t), { data: a } = await hr(i.path + "/measureFromImage", o);
|
|
182938
182934
|
return a;
|
|
182939
182935
|
}
|
|
182940
182936
|
function G3(r) {
|
|
@@ -182958,7 +182954,7 @@ async function y2i(r, e, t) {
|
|
|
182958
182954
|
e = Yo(nae, e);
|
|
182959
182955
|
const i = Ks(r), n = e.toJSON();
|
|
182960
182956
|
e.outSpatialReference && (n.outSR = VU(e.outSpatialReference));
|
|
182961
|
-
const s = Nl({ ...i.query, f: "json", ...n }), o = el(s, t), { data: a } = await
|
|
182957
|
+
const s = Nl({ ...i.query, f: "json", ...n }), o = el(s, t), { data: a } = await hr(i.path + "/queryBoundary", o);
|
|
182962
182958
|
return oO.fromJSON(a);
|
|
182963
182959
|
}
|
|
182964
182960
|
async function _2i(r, e, t) {
|
|
@@ -182968,19 +182964,19 @@ async function _2i(r, e, t) {
|
|
|
182968
182964
|
s != null && (i.geometry = G3(s));
|
|
182969
182965
|
const o = s?.spatialReference ?? e.geometry?.spatialReference;
|
|
182970
182966
|
o && (i.inSR = VU(o));
|
|
182971
|
-
const a = Ks(r), l = Nl({ ...a.query, f: "json", ...i }), u = el(l, t), { data: c } = await
|
|
182967
|
+
const a = Ks(r), l = Nl({ ...a.query, f: "json", ...i }), u = el(l, t), { data: c } = await hr(`${a.path}/queryGPSInfo`, u);
|
|
182972
182968
|
return fH.fromJSON(c);
|
|
182973
182969
|
}
|
|
182974
182970
|
async function v2i(r, e, t) {
|
|
182975
182971
|
const i = (e = Yo(lC, e)).toJSON();
|
|
182976
182972
|
e.geometry.spatialReference.imageCoordinateSystem && (i.geometry = G3(e.geometry)), e.depthOffset && e.adjust || delete i.options;
|
|
182977
|
-
const n = Ks(r), s = Nl({ ...n.query, f: "json", ...i }), o = el(s, t), { data: a } = await
|
|
182973
|
+
const n = Ks(r), s = Nl({ ...n.query, f: "json", ...i }), o = el(s, t), { data: a } = await hr(`${n.path}/imageToMap`, o);
|
|
182978
182974
|
return gn(a);
|
|
182979
182975
|
}
|
|
182980
182976
|
async function b2i(r, e, t) {
|
|
182981
182977
|
const i = (e = Yo($N, e)).toJSON();
|
|
182982
182978
|
e.rasterIds?.length && (i.rasterIds = e.rasterIds.join(","));
|
|
182983
|
-
const n = Ks(r), s = Nl({ ...n.query, f: "json", ...i }), o = el(s, t), { data: a } = await
|
|
182979
|
+
const n = Ks(r), s = Nl({ ...n.query, f: "json", ...i }), o = el(s, t), { data: a } = await hr(`${n.path}/imageToMapMultiray`, o);
|
|
182984
182980
|
return gn(a);
|
|
182985
182981
|
}
|
|
182986
182982
|
async function w2i(r, e, t) {
|
|
@@ -182988,23 +182984,23 @@ async function w2i(r, e, t) {
|
|
|
182988
182984
|
s != null && (i.geometry = G3(s)), e.visibleOnly || delete i.options;
|
|
182989
182985
|
const o = s?.spatialReference ?? e.geometry?.spatialReference;
|
|
182990
182986
|
o && (i.inSR = VU(o));
|
|
182991
|
-
const a = Ks(r), l = Nl({ ...a.query, f: "json", ...i }), u = el(l, t), { data: c } = await
|
|
182987
|
+
const a = Ks(r), l = Nl({ ...a.query, f: "json", ...i }), u = el(l, t), { data: c } = await hr(`${a.path}/mapToImage`, u);
|
|
182992
182988
|
return gn(c);
|
|
182993
182989
|
}
|
|
182994
182990
|
async function x2i(r, e, t) {
|
|
182995
|
-
const i = (e = Yo(mH, e)).toJSON(), n = Ks(r), s = Nl({ ...n.query, f: "json", ...i }), o = el(s, t), { data: a } = await
|
|
182991
|
+
const i = (e = Yo(mH, e)).toJSON(), n = Ks(r), s = Nl({ ...n.query, f: "json", ...i }), o = el(s, t), { data: a } = await hr(`${n.path}/getImageUrl`, o);
|
|
182996
182992
|
return uae.fromJSON(a);
|
|
182997
182993
|
}
|
|
182998
182994
|
async function S2i(r, e, t) {
|
|
182999
182995
|
const i = (e = Yo(mA, e)).toJSON(), n = await Jf([e.fromGeometry, e.toGeometry]);
|
|
183000
182996
|
n[0] != null && (i.fromGeometry = G3(n[0]), n[0].spatialReference && (i.inSR = VU(n[0].spatialReference))), n[1] != null && (i.toGeometry = G3(n[1])), e.objectIds?.length && (i.objectIds = i.objectIds.join(","));
|
|
183001
|
-
const s = Ks(r), o = Nl({ ...s.query, f: "json", ...i }), a = el(o, t), { data: l } = await
|
|
182997
|
+
const s = Ks(r), o = Nl({ ...s.query, f: "json", ...i }), a = el(o, t), { data: l } = await hr(`${s.path}/find`, a);
|
|
183002
182998
|
return rae.fromJSON(l);
|
|
183003
182999
|
}
|
|
183004
183000
|
async function nLt(r, e, t) {
|
|
183005
183001
|
const i = Ks(r), { rasterFunction: n, sourceJSON: s } = e || {}, o = n ? JSON.stringify(n.rasterFunctionDefinition || n) : null, a = Nl({ ...i.query, renderingRule: o, f: "json" }), l = el(a, t);
|
|
183006
183002
|
r = i.path;
|
|
183007
|
-
const u = s || await
|
|
183003
|
+
const u = s || await hr(r, l).then((Ce) => Ce.data), c = u.hasRasterAttributeTable ? hr(`${r}/rasterAttributeTable`, l) : null, h = u.hasColormap ? hr(`${r}/colormap`, l) : null, d = u.hasHistograms ? hr(`${r}/histograms`, l) : null, f = u.currentVersion >= 10.3 ? hr(`${r}/keyProperties`, l) : null, _ = u.hasMultidimensions ? hr(`${r}/multidimensionalInfo`, l) : null, v = await Promise.allSettled([c, h, d, f, _]);
|
|
183008
183004
|
let S = null;
|
|
183009
183005
|
if (u.minValues && u.minValues.length === u.bandCount) {
|
|
183010
183006
|
S = [];
|
|
@@ -183035,7 +183031,7 @@ function sLt(r, e) {
|
|
|
183035
183031
|
r.attributeTable || (e.hasRasterAttributeTable = !1), r.histograms || (e.hasHistograms = !1), r.colormap || (e.hasColormap = !1), r.multidimensionalInfo || (e.hasMultidimensions = !1);
|
|
183036
183032
|
}
|
|
183037
183033
|
async function I2i(r, e, t) {
|
|
183038
|
-
const i = Ks(r), n = Nl({ ...i?.query, f: "json" }), s = el(n, t), o = `${i?.path}/${e}/info`, a =
|
|
183034
|
+
const i = Ks(r), n = Nl({ ...i?.query, f: "json" }), s = el(n, t), o = `${i?.path}/${e}/info`, a = hr(`${o}`, s), l = hr(`${o}/keyProperties`, s), u = await Promise.allSettled([a, l]), c = u[0].status === "fulfilled" ? u[0].value.data : null, h = u[1].status === "fulfilled" ? u[1].value.data : null;
|
|
183039
183035
|
let d = null;
|
|
183040
183036
|
c.statistics?.length && (d = c.statistics.map((k) => ({ min: k[0], max: k[1], avg: k[2], stddev: k[3] })));
|
|
183041
183037
|
const f = Yr.fromJSON(c.extent), _ = Math.ceil(f.width / c.pixelSizeX - 0.1), v = Math.ceil(f.height / c.pixelSizeY - 0.1), S = f.spatialReference, E = new gr({ x: c.pixelSizeX, y: c.pixelSizeY, spatialReference: S }), A = c.histograms?.length ? c.histograms : null, D = new rd({ origin: c.origin, blockWidth: c.blockWidth, blockHeight: c.blockHeight, firstPyramidLevel: c.firstPyramidLevel, maximumPyramidLevel: c.maxPyramidLevel });
|
|
@@ -183292,27 +183288,27 @@ const A2i = (r) => {
|
|
|
183292
183288
|
return h ?? { extent: n, pixelBlock: null };
|
|
183293
183289
|
}
|
|
183294
183290
|
fetchKeyProperties(n) {
|
|
183295
|
-
return
|
|
183291
|
+
return hr(i(this.parsedUrl) + "/keyProperties", { query: this._getQueryParams({ renderingRule: this.version >= 10.3 ? n?.rasterFunction : null }) }).then((s) => s.data);
|
|
183296
183292
|
}
|
|
183297
183293
|
fetchRasterAttributeTable(n) {
|
|
183298
|
-
return this.version < 10.1 ? Promise.reject(new be("#fetchRasterAttributeTable()", "Failed to get rasterAttributeTable")) :
|
|
183294
|
+
return this.version < 10.1 ? Promise.reject(new be("#fetchRasterAttributeTable()", "Failed to get rasterAttributeTable")) : hr(i(this.parsedUrl) + "/rasterAttributeTable", { query: this._getQueryParams({ renderingRule: this.version >= 10.3 ? n?.rasterFunction : null }) }).then((s) => Qo.fromJSON(s.data));
|
|
183299
183295
|
}
|
|
183300
183296
|
getCatalogItemRasterInfo(n, s) {
|
|
183301
183297
|
const o = { ...s, query: this._getQueryParams() };
|
|
183302
183298
|
return I2i(i(this.parsedUrl), n, o);
|
|
183303
183299
|
}
|
|
183304
183300
|
async getCatalogItemICSInfo(n, s) {
|
|
183305
|
-
const { data: o } = await
|
|
183301
|
+
const { data: o } = await hr(i(this.parsedUrl) + "/" + n + "/info/ics", { query: this._getQueryParams(), ...s }), a = o?.ics;
|
|
183306
183302
|
if (!a) return;
|
|
183307
183303
|
let l = null;
|
|
183308
183304
|
try {
|
|
183309
|
-
l = (await
|
|
183305
|
+
l = (await hr(i(this.parsedUrl) + "/" + n + "/info", { query: this._getQueryParams(), ...s })).data.extent;
|
|
183310
183306
|
} catch {
|
|
183311
183307
|
}
|
|
183312
183308
|
if (!l?.spatialReference) return { ics: a, icsToPixelTransform: null, icsExtent: null, northDirection: null };
|
|
183313
|
-
const u = this.version >= 10.7 ?
|
|
183309
|
+
const u = this.version >= 10.7 ? hr(i(this.parsedUrl) + "/" + n + "/info/icstopixel", { query: this._getQueryParams(), ...s }).then((ye) => ye.data).catch(() => ({})) : {}, c = l.spatialReference, h = { geometries: JSON.stringify({ geometryType: "esriGeometryEnvelope", geometries: [l] }), inSR: $y(c), outSR: "0:" + n }, d = hr(i(this.parsedUrl) + "/project", { query: this._getQueryParams(h), ...s }).then((ye) => ye.data).catch(() => ({})), f = 5, _ = (l.xmin + l.xmax) / 2, v = (l.ymax - l.ymin) / (f + 1), S = l.ymin + v, E = [];
|
|
183314
183310
|
for (let ye = 0; ye < f; ye++) E.push({ x: _, y: S + v * ye });
|
|
183315
|
-
const A = { geometries: JSON.stringify({ geometryType: "esriGeometryPoint", geometries: E }), inSR: $y(c), outSR: "0:" + n }, D =
|
|
183311
|
+
const A = { geometries: JSON.stringify({ geometryType: "esriGeometryPoint", geometries: E }), inSR: $y(c), outSR: "0:" + n }, D = hr(i(this.parsedUrl) + "/project", { query: this._getQueryParams(A), ...s }).then((ye) => ye.data).catch(() => ({})), k = await Promise.all([u, d, D]);
|
|
183316
183312
|
let N = k[0].ipxf;
|
|
183317
183313
|
if (N == null) {
|
|
183318
183314
|
const ye = a.geodataXform?.xf_0;
|
|
@@ -183469,7 +183465,7 @@ const A2i = (r) => {
|
|
|
183469
183465
|
}
|
|
183470
183466
|
}
|
|
183471
183467
|
async fetchVariableStatisticsHistograms(n, s) {
|
|
183472
|
-
const o =
|
|
183468
|
+
const o = hr(i(this.parsedUrl) + "/statistics", { query: this._getQueryParams({ variable: n }), signal: s }).then((u) => u.data?.statistics), a = hr(i(this.parsedUrl) + "/histograms", { query: this._getQueryParams({ variable: n }), signal: s }).then((u) => u.data?.histograms), l = await Promise.all([o, a]);
|
|
183473
183469
|
return l[0] && l[0].forEach((u) => {
|
|
183474
183470
|
u.avg = u.mean, u.stddev = u.standardDeviation;
|
|
183475
183471
|
}), { statistics: l[0] || null, histograms: l[1] || null };
|
|
@@ -183526,7 +183522,7 @@ const A2i = (r) => {
|
|
|
183526
183522
|
async _fetchServiceInfo(n) {
|
|
183527
183523
|
let s = this.sourceJSON;
|
|
183528
183524
|
if (!s) {
|
|
183529
|
-
const { data: o, ssl: a } = await
|
|
183525
|
+
const { data: o, ssl: a } = await hr(i(this.parsedUrl), { query: this._getQueryParams(), signal: n });
|
|
183530
183526
|
s = o, this.sourceJSON = s, a && (this.url = this.url.replace(/^http:/i, "https:"));
|
|
183531
183527
|
}
|
|
183532
183528
|
if (s.capabilities?.toLowerCase().split(",").map((o) => o.trim()).indexOf("tilesonly") > -1) throw new be("imagery-layer:fetch-service-info", "use ImageryTileLayer to open tiles-only image services");
|
|
@@ -183578,7 +183574,7 @@ const A2i = (r) => {
|
|
|
183578
183574
|
}
|
|
183579
183575
|
async _getRasterFunctionInfos(n) {
|
|
183580
183576
|
const s = this.sourceJSON.rasterFunctionInfos;
|
|
183581
|
-
return this.loaded ? s : s && this.version >= 10.3 ? s.length === 1 && s[0].name.toLowerCase() === "none" ? s : (await
|
|
183577
|
+
return this.loaded ? s : s && this.version >= 10.3 ? s.length === 1 && s[0].name.toLowerCase() === "none" ? s : (await hr(i(this.parsedUrl) + "/rasterFunctionInfos", { query: this._getQueryParams(), signal: n })).data?.rasterFunctionInfos : null;
|
|
183582
183578
|
}
|
|
183583
183579
|
_canRequestImageElement(n) {
|
|
183584
183580
|
return !this.pixelFilter && (!n || n.includes("png"));
|
|
@@ -183586,10 +183582,10 @@ const A2i = (r) => {
|
|
|
183586
183582
|
async _requestArrayBuffer(n) {
|
|
183587
183583
|
const { imageProps: s, requestAsImageElement: o, returnImageBitmap: a, signal: l } = n;
|
|
183588
183584
|
if (o && this._canRequestImageElement(s.format)) {
|
|
183589
|
-
const S = `${i(this.parsedUrl)}/exportImage`, { data: E } = await
|
|
183585
|
+
const S = `${i(this.parsedUrl)}/exportImage`, { data: E } = await hr(S, { responseType: a ? "blob" : "image", query: this._getQueryParams({ f: "image", ...this.refreshParameters, ...n.imageServiceParameters }), signal: l });
|
|
183590
183586
|
return E instanceof Blob ? { imageBitmap: await Khe(E, S, l), params: s } : { imageOrCanvasElement: E, params: s };
|
|
183591
183587
|
}
|
|
183592
|
-
const u = this._initJobHandler(), c =
|
|
183588
|
+
const u = this._initJobHandler(), c = hr(i(this.parsedUrl) + "/exportImage", { responseType: "array-buffer", query: this._getQueryParams({ f: "image", ...n.imageServiceParameters }), signal: l }), h = (await Promise.all([c, u]))[0].data, d = s.format || "jpgpng";
|
|
183593
183589
|
let f = d;
|
|
183594
183590
|
if (f !== "bsq" && f !== "bip" && (f = wRe(h)), !f) throw new be("imagery-layer:fetch-image", "unsupported format signature " + String.fromCharCode.apply(null, new Uint8Array(h)));
|
|
183595
183591
|
const _ = { signal: l };
|
|
@@ -184230,7 +184226,7 @@ let B2i = 0, sd = class extends Ct {
|
|
|
184230
184226
|
i = i ?? t.retryCount ?? this.ioConfig.retryCount;
|
|
184231
184227
|
const l = s ? { Range: `bytes=${s.from}-${s.to}` } : null;
|
|
184232
184228
|
try {
|
|
184233
|
-
return await
|
|
184229
|
+
return await hr(e, { ...t, query: { ...o, ...n }, headers: { ...a, ...l } });
|
|
184234
184230
|
} catch (u) {
|
|
184235
184231
|
if (i > 0) return i--, this.request(e, t, i);
|
|
184236
184232
|
throw u;
|
|
@@ -184647,7 +184643,7 @@ const eot = 1e3, aLt = (r) => {
|
|
|
184647
184643
|
async fetchTile(n, s, o, a = {}) {
|
|
184648
184644
|
if (i(this), a.requestAsImageElement) {
|
|
184649
184645
|
const u = this.getTileUrl(n, s, o);
|
|
184650
|
-
return
|
|
184646
|
+
return hr(u, { responseType: "image", query: { ...this.refreshParameters, ...this.raster.ioConfig.customFetchParameters }, signal: a.signal }).then((c) => c.data);
|
|
184651
184647
|
}
|
|
184652
184648
|
const { serviceRasterInfo: l } = this;
|
|
184653
184649
|
if (l.multidimensionalInfo != null && (a = this.normalizeRasterFetchOptions(a)).multidimensionalDefinition == null) {
|
|
@@ -185850,7 +185846,7 @@ let A6 = bH = class extends pp(ni.ofType(m5)) {
|
|
|
185850
185846
|
return t;
|
|
185851
185847
|
}
|
|
185852
185848
|
static async fromUrl(r, e, t) {
|
|
185853
|
-
const i = { url: To(r), origin: "service" }, n = await
|
|
185849
|
+
const i = { url: To(r), origin: "service" }, n = await hr(r, { responseType: "json", signal: t?.signal }), s = e.toJSON(), o = [];
|
|
185854
185850
|
for (const a of n.data) o.push(m5.fromJSON({ ...a, geometry: { spatialReference: s, ...a.geometry } }, i));
|
|
185855
185851
|
return new bH({ url: r, items: o });
|
|
185856
185852
|
}
|
|
@@ -185933,7 +185929,7 @@ let e0 = class extends Fm(Ml(ku(Gl(oa(qp(hb(Ts))))))) {
|
|
|
185933
185929
|
const i = await A6.fromUrl(this._modificationsSource.url, this.spatialReference, e);
|
|
185934
185930
|
this.setAtOrigin("modifications", i, this._modificationsSource.context.origin), this._modificationsSource = null;
|
|
185935
185931
|
}
|
|
185936
|
-
this.url && await
|
|
185932
|
+
this.url && await hr(this.url, { query: { ...this.customParameters, token: this.apiKey }, responseType: "json", signal: t }).then((n) => {
|
|
185937
185933
|
this.rootTilesetJSON = n.data, this._initFullExtent();
|
|
185938
185934
|
}, (n) => {
|
|
185939
185935
|
Wo(n), Wt.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed", n);
|
|
@@ -186069,7 +186065,7 @@ function dLt(r, e, t, i) {
|
|
|
186069
186065
|
const n = Sa?.findCredential(r);
|
|
186070
186066
|
r = xg(r, { token: n?.token });
|
|
186071
186067
|
const s = ia.kmlServiceUrl;
|
|
186072
|
-
return
|
|
186068
|
+
return hr(s, { query: { url: r, model: "simple", folders: "", refresh: t !== 0 || void 0, outSR: JSON.stringify(e) }, responseType: "json", signal: i });
|
|
186073
186069
|
}
|
|
186074
186070
|
function pLt(r, e, t = null, i = []) {
|
|
186075
186071
|
const n = [], s = {}, o = e.sublayers, a = new Set(e.folders.map((l) => l.id));
|
|
@@ -186394,7 +186390,7 @@ function qxi(r, e, t) {
|
|
|
186394
186390
|
return r;
|
|
186395
186391
|
}
|
|
186396
186392
|
async function iot(r) {
|
|
186397
|
-
const e = await
|
|
186393
|
+
const e = await hr(r, { responseType: "array-buffer" });
|
|
186398
186394
|
return Vxi(await e.data);
|
|
186399
186395
|
}
|
|
186400
186396
|
async function Vxi(r) {
|
|
@@ -186404,7 +186400,7 @@ async function Vxi(r) {
|
|
|
186404
186400
|
return e.delete(), n;
|
|
186405
186401
|
}
|
|
186406
186402
|
async function Gxi(r) {
|
|
186407
|
-
const e = await
|
|
186403
|
+
const e = await hr(r, { responseType: "array-buffer" }), t = await e.data;
|
|
186408
186404
|
return Hxi(new Uint8Array(t));
|
|
186409
186405
|
}
|
|
186410
186406
|
async function Hxi(r) {
|
|
@@ -186712,7 +186708,7 @@ async function dSi(r, e, t, i, n) {
|
|
|
186712
186708
|
o[O] = l.slice(j, B);
|
|
186713
186709
|
}
|
|
186714
186710
|
const E = u ? u.wkid || u : null, A = h ? h.wkid || h : null, D = null, k = cde({ ...c ? { context: { extent: c, outSR: E, processSR: A } } : { "env:outSR": E, "env:processSR": A }, ...i, ...D, f: "json" }, null, o), N = { ...n, query: k };
|
|
186715
|
-
return
|
|
186711
|
+
return hr(`${S}/${e}`, N);
|
|
186716
186712
|
});
|
|
186717
186713
|
}
|
|
186718
186714
|
function pSi(r, e, t) {
|
|
@@ -186799,7 +186795,7 @@ let hC = class extends Ct {
|
|
|
186799
186795
|
super(e), this.jobId = null, this.jobStatus = null, this.messages = null, this.progress = null, this.requestOptions = null, this.sourceUrl = null, this._cancelJobTimer = void 0, this._jobCompletionTimer = void 0;
|
|
186800
186796
|
}
|
|
186801
186797
|
async cancelJob(e) {
|
|
186802
|
-
const { jobId: t, sourceUrl: i } = this, { path: n } = Ks(i), s = { ...this.requestOptions, ...e, query: { f: "json" } }, o = `${n}/jobs/${t}/cancel`, { data: a } = await
|
|
186798
|
+
const { jobId: t, sourceUrl: i } = this, { path: n } = Ks(i), s = { ...this.requestOptions, ...e, query: { f: "json" } }, o = `${n}/jobs/${t}/cancel`, { data: a } = await hr(o, s), { messages: l, jobStatus: u, progress: c } = mae.fromJSON(a);
|
|
186803
186799
|
return this.set({ messages: l, jobStatus: u, progress: c }), u === "job-cancelled" ? this : new Promise((h, d) => {
|
|
186804
186800
|
hd(s.signal, () => {
|
|
186805
186801
|
this.clearCancelJobTimer(), d(Sl());
|
|
@@ -186836,16 +186832,16 @@ let hC = class extends Ct {
|
|
|
186836
186832
|
clearInterval(this._cancelJobTimer), clearInterval(this._jobCompletionTimer);
|
|
186837
186833
|
}
|
|
186838
186834
|
async checkJobStatus(e) {
|
|
186839
|
-
const { path: t } = Ks(this.sourceUrl), i = { ...this.requestOptions, ...e, query: { f: "json" } }, n = `${t}/jobs/${this.jobId}`, { data: s } = await
|
|
186835
|
+
const { path: t } = Ks(this.sourceUrl), i = { ...this.requestOptions, ...e, query: { f: "json" } }, n = `${t}/jobs/${this.jobId}`, { data: s } = await hr(n, i), { messages: o, jobStatus: a, progress: l } = mae.fromJSON(s);
|
|
186840
186836
|
return this.set({ messages: o, jobStatus: a, progress: l }), this;
|
|
186841
186837
|
}
|
|
186842
186838
|
async fetchResultData(e, t, i) {
|
|
186843
186839
|
t = lx.from(t || {});
|
|
186844
|
-
const { returnColumnName: n, returnFeatureCollection: s, returnM: o, returnZ: a, outSpatialReference: l } = t, { path: u } = Ks(this.sourceUrl), c = cde({ returnColumnName: n || null, returnFeatureCollection: s || null, returnM: o || null, returnZ: a || null, outSR: l, returnType: "data", f: "json" }, null), h = { ...this.requestOptions, ...i, query: c }, d = `${u}/jobs/${this.jobId}/results/${e}`, { data: f } = await
|
|
186840
|
+
const { returnColumnName: n, returnFeatureCollection: s, returnM: o, returnZ: a, outSpatialReference: l } = t, { path: u } = Ks(this.sourceUrl), c = cde({ returnColumnName: n || null, returnFeatureCollection: s || null, returnM: o || null, returnZ: a || null, outSR: l, returnType: "data", f: "json" }, null), h = { ...this.requestOptions, ...i, query: c }, d = `${u}/jobs/${this.jobId}/results/${e}`, { data: f } = await hr(d, h);
|
|
186845
186841
|
return cot(f);
|
|
186846
186842
|
}
|
|
186847
186843
|
async fetchResultImage(e, t, i) {
|
|
186848
|
-
const { path: n } = Ks(this.sourceUrl), s = { ...t.toJSON(), f: "json" }, o = cde(s), a = { ...this.requestOptions, ...i, query: o }, l = `${n}/jobs/${this.jobId}/results/${e}`, { data: u } = await
|
|
186844
|
+
const { path: n } = Ks(this.sourceUrl), s = { ...t.toJSON(), f: "json" }, o = cde(s), a = { ...this.requestOptions, ...i, query: o }, l = `${n}/jobs/${this.jobId}/results/${e}`, { data: u } = await hr(l, a);
|
|
186849
186845
|
return cot(u);
|
|
186850
186846
|
}
|
|
186851
186847
|
async fetchResultMapImageLayer() {
|
|
@@ -187552,7 +187548,7 @@ const gY = /* @__PURE__ */ new Map(), TTi = () => new Map(gY.entries()), th = {
|
|
|
187552
187548
|
}, refreshDataModel: async (r) => {
|
|
187553
187549
|
r.dataModel = await RLt(r);
|
|
187554
187550
|
}, refreshServiceDefinition: async (r) => {
|
|
187555
|
-
const e = (await
|
|
187551
|
+
const e = (await hr(r.url, { query: { f: "json" } })).data;
|
|
187556
187552
|
return e.capabilities = e?.capabilities?.split(","), e.supportedQueryFormats = e?.supportedQueryFormats?.split(","), r.serviceDefinition = new Wd(e), r.serviceDefinition;
|
|
187557
187553
|
}, executeFindPathsAsynchronous: async (r, e) => {
|
|
187558
187554
|
const t = r.inKnowledgeGraphUrl.split("/rest/services");
|
|
@@ -187665,7 +187661,7 @@ const gY = /* @__PURE__ */ new Map(), TTi = () => new Map(gY.entries()), th = {
|
|
|
187665
187661
|
const o = await S1(s.data.url, s.data), a = await c3i(o);
|
|
187666
187662
|
return a.updatedKnowledgeGraph = await ow(r.url), a;
|
|
187667
187663
|
}, executeQuery: async (r, e, t) => {
|
|
187668
|
-
const i = `${r.url}/graph/query`, n = await
|
|
187664
|
+
const i = `${r.url}/graph/query`, n = await hr(i, { responseType: "array-buffer", query: { f: "pbf", openCypherQuery: e.openCypherQuery, ...t?.query }, signal: t?.signal, timeout: t?.timeout }), s = n.getHeader?.("content-type"), o = n.data;
|
|
187669
187665
|
if (s?.includes("application/x-protobuf")) {
|
|
187670
187666
|
const a = new (await _c()).GraphQueryDecoder();
|
|
187671
187667
|
if (a.deleteLater(), r.dataModel) {
|
|
@@ -187676,7 +187672,7 @@ const gY = /* @__PURE__ */ new Map(), TTi = () => new Map(gY.entries()), th = {
|
|
|
187676
187672
|
}
|
|
187677
187673
|
throw new be("knowledge-graph:unexpected-server-response", "server returned an unexpected response", { responseType: s, data: n.data });
|
|
187678
187674
|
}, executeSearch: async (r, e, t) => {
|
|
187679
|
-
const i = e.typeCategoryFilter, n = `${r.url}/graph/search`, s = await
|
|
187675
|
+
const i = e.typeCategoryFilter, n = `${r.url}/graph/search`, s = await hr(n, { responseType: "array-buffer", query: { f: "pbf", searchQuery: `"${e.searchQuery}"`, typeCategoryFilter: i, ...t?.query }, signal: t?.signal, timeout: t?.timeout }), o = s.getHeader?.("content-type"), a = s.data;
|
|
187680
187676
|
if (o?.includes("application/x-protobuf")) {
|
|
187681
187677
|
const l = new (await _c()).GraphQueryDecoder();
|
|
187682
187678
|
if (l.deleteLater(), r.dataModel) {
|
|
@@ -187714,13 +187710,13 @@ const gY = /* @__PURE__ */ new Map(), TTi = () => new Map(gY.entries()), th = {
|
|
|
187714
187710
|
}
|
|
187715
187711
|
throw new be("knowledge-graph:unexpected-server-response", "server returned an unexpected response when fetching client data", { responseType: c, data: u });
|
|
187716
187712
|
}, fetchAllClientDataKeys: async (r, e) => {
|
|
187717
|
-
const t = `${r.url}/clientData`, i = await
|
|
187713
|
+
const t = `${r.url}/clientData`, i = await hr(t, { responseType: "array-buffer", query: { f: "pbf" }, signal: e?.signal, timeout: e?.timeout }), n = i.getHeader?.("content-type"), s = i.data;
|
|
187718
187714
|
if (n?.includes("application/x-protobuf")) {
|
|
187719
187715
|
const o = new (await _c()).ClientDataKeysResponseDecoder();
|
|
187720
187716
|
return o.deleteLater(), o.decode(new Uint8Array(s)), o.has_error() && my(o.error, "knowledge-graph:fetchAllClientDataKeys-decoding-error", "An error occurred while decoding the client data keys response"), RSi(o);
|
|
187721
187717
|
}
|
|
187722
187718
|
throw new be("knowledge-graph:unexpected-server-response", "server returned an unexpected response", { responseType: n, data: i.data });
|
|
187723
|
-
}, clearClientDataCache: () => gY.clear(), _fetchWrapper: async (r, e) => fetch(r, e), _submitJobWrapper: async (r, e, t, i) => _Si(r, e, t, i), _esriRequestWrapper: async (r, e) =>
|
|
187719
|
+
}, clearClientDataCache: () => gY.clear(), _fetchWrapper: async (r, e) => fetch(r, e), _submitJobWrapper: async (r, e, t, i) => _Si(r, e, t, i), _esriRequestWrapper: async (r, e) => hr(r, e) };
|
|
187724
187720
|
async function ITi(r, e, t) {
|
|
187725
187721
|
return th.executeApplyEdits(r, e, t);
|
|
187726
187722
|
}
|
|
@@ -187982,7 +187978,7 @@ async function e3i(r) {
|
|
|
187982
187978
|
return structuredClone(i.get_byte_buffer());
|
|
187983
187979
|
}
|
|
187984
187980
|
async function L_(r, e) {
|
|
187985
|
-
return
|
|
187981
|
+
return hr(r, { responseType: "native-request-init", method: "post", query: { f: "pbf", ...e?.query }, body: "x", headers: { "Content-Type": "application/octet-stream" }, signal: e?.signal, timeout: e?.timeout });
|
|
187986
187982
|
}
|
|
187987
187983
|
async function lI(r, e, t) {
|
|
187988
187984
|
const i = r.headers.get("content-type");
|
|
@@ -188086,7 +188082,7 @@ async function fot(r, e) {
|
|
|
188086
188082
|
throw new be("knowledge-graph:unexpected-server-response", "server returned an unexpected response", { responseType: t, data: r.text() });
|
|
188087
188083
|
}
|
|
188088
188084
|
async function RLt(r) {
|
|
188089
|
-
const e = `${r.url}/dataModel/queryDataModel`, t = await
|
|
188085
|
+
const e = `${r.url}/dataModel/queryDataModel`, t = await hr(e, { responseType: "array-buffer", query: { f: "pbf" } }), i = t.getHeader?.("content-type"), n = t.data;
|
|
188090
188086
|
if (i?.includes("application/x-protobuf")) {
|
|
188091
188087
|
const s = (await _c()).decode_data_model_from_protocol_buffer(new Uint8Array(n));
|
|
188092
188088
|
if (!s) throw new be("knowledge-graph:data-model-decode-failure", "The server responded to the data model query, but the response failed to be decoded. This typically occurs when the Knowledge JS API (4.26 or later) is used with an unsupported backend (11.0 or earlier)");
|
|
@@ -189592,7 +189588,7 @@ const ULt = (r) => {
|
|
|
189592
189588
|
const { url: o } = i;
|
|
189593
189589
|
let a;
|
|
189594
189590
|
if (s.type === "data-layer")
|
|
189595
|
-
a = (await
|
|
189591
|
+
a = (await hr(o, { responseType: "json", query: { f: "json", ...this.customParameters, token: this.apiKey }, ...n })).data;
|
|
189596
189592
|
else if (o && i.originIdOf("url") > 2) try {
|
|
189597
189593
|
const l = await this._fetchAllLayersAndTablesFromService(o), u = Dm(o)?.sublayer ?? s.mapLayerId;
|
|
189598
189594
|
a = l.get(u);
|
|
@@ -189613,7 +189609,7 @@ const ULt = (r) => {
|
|
|
189613
189609
|
}
|
|
189614
189610
|
async _fetchAllLayersAndTablesFromService(i, n) {
|
|
189615
189611
|
await this.load(n), this._allLayersAndTablesMap ||= /* @__PURE__ */ new Map();
|
|
189616
|
-
const s = Dm(i), o = Ha(this._allLayersAndTablesMap, s?.url.path, () =>
|
|
189612
|
+
const s = Dm(i), o = Ha(this._allLayersAndTablesMap, s?.url.path, () => hr(kl(s?.url.path, "/layers"), { responseType: "json", query: { f: "json", ...this.customParameters, token: this.apiKey } }).then((l) => {
|
|
189617
189613
|
const u = /* @__PURE__ */ new Map(), { layers: c, tables: h } = l.data, d = [...c ?? [], ...h ?? []];
|
|
189618
189614
|
for (const f of d) u.set(f.id, f);
|
|
189619
189615
|
return { result: u };
|
|
@@ -189680,7 +189676,7 @@ let Gs = class extends oa(yP(jy)) {
|
|
|
189680
189676
|
return this.addResolvingPromise((async () => {
|
|
189681
189677
|
const { layer: t, url: i } = this;
|
|
189682
189678
|
if (!t && !i) throw new be("sublayer:missing-layer", "Sublayer can't be loaded without being part of a layer", { sublayer: this });
|
|
189683
|
-
const n = t ? await t.fetchSublayerInfo(this, e) : (await
|
|
189679
|
+
const n = t ? await t.fetchSublayerInfo(this, e) : (await hr(i, { responseType: "json", query: { f: "json" }, ...e })).data;
|
|
189684
189680
|
n && (this.sourceJSON = n, this.read({ layerDefinition: n }, { origin: "service", layer: t, url: Ks(i) }));
|
|
189685
189681
|
})()), this;
|
|
189686
189682
|
}
|
|
@@ -190257,7 +190253,7 @@ let Jh = class extends rc(db(Gl(VLt(ULt(Fm(Ml(ku(oa(Vp(hb(qp(Ts)))))))))))) {
|
|
|
190257
190253
|
return Khe(s, o, n?.signal);
|
|
190258
190254
|
}
|
|
190259
190255
|
async fetchRecomputedExtents(e = {}) {
|
|
190260
|
-
const t = { ...e, query: { returnUpdates: !0, f: "json", ...this.customParameters, token: this.apiKey } }, { data: i } = await
|
|
190256
|
+
const t = { ...e, query: { returnUpdates: !0, f: "json", ...this.customParameters, token: this.apiKey } }, { data: i } = await hr(this.url, t), { extent: n, fullExtent: s, timeExtent: o } = i, a = n || s;
|
|
190261
190257
|
return { fullExtent: a && Yr.fromJSON(a), timeExtent: o && Ma.fromJSON({ start: o[0], end: o[1] }) };
|
|
190262
190258
|
}
|
|
190263
190259
|
loadAll() {
|
|
@@ -190278,7 +190274,7 @@ let Jh = class extends rc(db(Gl(VLt(ULt(Fm(Ml(ku(oa(Vp(hb(qp(Ts)))))))))))) {
|
|
|
190278
190274
|
const o = { responseType: e, signal: s?.signal ?? null, query: { ...this.parsedUrl.query, ...this.createExportImageParameters(t, i, n, s), f: "image", ...this.refreshParameters, ...this.customParameters, token: this.apiKey } }, a = this.parsedUrl.path + "/export";
|
|
190279
190275
|
if (o.query?.dynamicLayers != null && !this.capabilities?.exportMap?.supportsDynamicLayers) throw new be("mapimagelayer:dynamiclayer-not-supported", `service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`, { query: o.query });
|
|
190280
190276
|
try {
|
|
190281
|
-
const { data: l } = await
|
|
190277
|
+
const { data: l } = await hr(a, o);
|
|
190282
190278
|
return { data: l, url: a };
|
|
190283
190279
|
} catch (l) {
|
|
190284
190280
|
throw Ul(l) ? l : new be("mapimagelayer:image-fetch-error", `Unable to load image: ${a}`, { error: l });
|
|
@@ -190286,7 +190282,7 @@ let Jh = class extends rc(db(Gl(VLt(ULt(Fm(Ml(ku(oa(Vp(hb(qp(Ts)))))))))))) {
|
|
|
190286
190282
|
}
|
|
190287
190283
|
async _fetchService(e) {
|
|
190288
190284
|
if (this.sourceJSON) return void this.read(this.sourceJSON, { origin: "service", url: this.parsedUrl });
|
|
190289
|
-
const { data: t, ssl: i } = await
|
|
190285
|
+
const { data: t, ssl: i } = await hr(this.parsedUrl.path, { query: { f: "json", ...this.parsedUrl.query, ...this.customParameters, token: this.apiKey }, signal: e });
|
|
190290
190286
|
i && (this.url = this.url.replace(/^http:/i, "https:")), this.sourceJSON = t, this.read(t, { origin: "service", url: this.parsedUrl });
|
|
190291
190287
|
}
|
|
190292
190288
|
hasVisibleLayersForOrigin(e) {
|
|
@@ -190637,7 +190633,7 @@ function uIi(r, e, t) {
|
|
|
190637
190633
|
async function cIi(r, e) {
|
|
190638
190634
|
const t = window.URL.createObjectURL(r);
|
|
190639
190635
|
try {
|
|
190640
|
-
const { data: i } = await
|
|
190636
|
+
const { data: i } = await hr(t, { ...e, responseType: "image" });
|
|
190641
190637
|
return i;
|
|
190642
190638
|
} catch (i) {
|
|
190643
190639
|
throw Ul(i) ? i : new be("invalid-image", `Could not fetch requested image at ${t}`);
|
|
@@ -190664,7 +190660,7 @@ async function hIi(r, e) {
|
|
|
190664
190660
|
async function dIi(r, e) {
|
|
190665
190661
|
const t = $3(r);
|
|
190666
190662
|
if (t?.isBase64) return { arrayBuffer: Xmt(t.data), mediaType: t.mediaType };
|
|
190667
|
-
const i = await
|
|
190663
|
+
const i = await hr(r, { responseType: "array-buffer", ...e });
|
|
190668
190664
|
return { arrayBuffer: i.data, mediaType: i.getHeader?.("Content-Type") ?? "" };
|
|
190669
190665
|
}
|
|
190670
190666
|
const fq = Ac();
|
|
@@ -190852,7 +190848,7 @@ function bIi(r) {
|
|
|
190852
190848
|
return typeof r == "string" && !Ly(r) && !mS(r);
|
|
190853
190849
|
}
|
|
190854
190850
|
async function wIi(r) {
|
|
190855
|
-
return typeof r == "string" ? Ly(r) ? Xer(r) : (await
|
|
190851
|
+
return typeof r == "string" ? Ly(r) ? Xer(r) : (await hr(r, { responseType: "blob" })).data : new Promise((e) => xIi(r).toBlob(e));
|
|
190856
190852
|
}
|
|
190857
190853
|
function xIi(r) {
|
|
190858
190854
|
if (r instanceof HTMLCanvasElement) return r;
|
|
@@ -190939,7 +190935,7 @@ let dv = class extends ZC {
|
|
|
190939
190935
|
async _preProcessVideoUrl(e) {
|
|
190940
190936
|
if (JB(e)) return Ele(e);
|
|
190941
190937
|
try {
|
|
190942
|
-
return await
|
|
190938
|
+
return await hr(e, { method: "head" }), e;
|
|
190943
190939
|
} catch {
|
|
190944
190940
|
try {
|
|
190945
190941
|
return Ele(e, !0);
|
|
@@ -191310,7 +191306,7 @@ let Th = DDe = class extends rc(Vp(Gl(Ml(ku(oa(Ts)))))) {
|
|
|
191310
191306
|
}
|
|
191311
191307
|
fetchTile(r, e, t, i = {}) {
|
|
191312
191308
|
const { signal: n } = i, s = this.getTileUrl(r, e, t), o = { responseType: "image", signal: n, query: { ...this.refreshParameters } };
|
|
191313
|
-
return
|
|
191309
|
+
return hr(s, o).then((a) => a.data);
|
|
191314
191310
|
}
|
|
191315
191311
|
async fetchImageBitmapTile(r, e, t, i = {}) {
|
|
191316
191312
|
const { signal: n } = i;
|
|
@@ -191318,7 +191314,7 @@ let Th = DDe = class extends rc(Vp(Gl(Ml(ku(oa(Ts)))))) {
|
|
|
191318
191314
|
const l = await this.fetchTile(r, e, t, i);
|
|
191319
191315
|
return eD(l, r, e, t, n);
|
|
191320
191316
|
}
|
|
191321
|
-
const s = this.getTileUrl(r, e, t), o = { responseType: "blob", signal: n, query: { ...this.refreshParameters } }, { data: a } = await
|
|
191317
|
+
const s = this.getTileUrl(r, e, t), o = { responseType: "blob", signal: n, query: { ...this.refreshParameters } }, { data: a } = await hr(s, o);
|
|
191322
191318
|
return eD(a, r, e, t, n);
|
|
191323
191319
|
}
|
|
191324
191320
|
getTileUrl(r, e, t) {
|
|
@@ -191647,7 +191643,7 @@ let bp = class extends HK(Fm(Ml(ku(Gl(oa(qp(hb(Pi(Ts))))))))) {
|
|
|
191647
191643
|
if (!i) throw new be("pointcloudlayer:field-unexisting", `Field '${e}' does not exist on the layer`);
|
|
191648
191644
|
for (const n of this.attributeStorageInfo) if (n.name === i.name) {
|
|
191649
191645
|
const s = kl(this.parsedUrl?.path ?? "", `./statistics/${n.key}`);
|
|
191650
|
-
return
|
|
191646
|
+
return hr(s, { query: { f: "json", ...this.customParameters, token: this.apiKey }, responseType: "json", signal: t ? t.signal : null }).then((o) => o.data);
|
|
191651
191647
|
}
|
|
191652
191648
|
throw new be("pointcloudlayer:no-cached-statistics", "Cached statistics for this attribute are not available");
|
|
191653
191649
|
}
|
|
@@ -191765,15 +191761,15 @@ function pCi(r, e) {
|
|
|
191765
191761
|
}
|
|
191766
191762
|
async function r7t(r, e, t) {
|
|
191767
191763
|
if (!r) throw new be("network-service:missing-url", "Url to Network service is missing");
|
|
191768
|
-
const i = el({ f: "json", token: e }, t), { data: n } = await
|
|
191764
|
+
const i = el({ f: "json", token: e }, t), { data: n } = await hr(r, i), s = n.currentVersion >= 10.4 ? mCi(r, e, t) : fCi(r, t), { defaultTravelMode: o, supportedTravelModes: a } = await s;
|
|
191769
191765
|
return n.defaultTravelMode = o, n.supportedTravelModes = a, Cf.fromJSON(n);
|
|
191770
191766
|
}
|
|
191771
191767
|
async function fCi(r, e) {
|
|
191772
|
-
const t = el({ f: "json" }, e), { data: i } = await
|
|
191768
|
+
const t = el({ f: "json" }, e), { data: i } = await hr(r.replace(/\/rest\/.*$/i, "/info"), t);
|
|
191773
191769
|
if (!i?.owningSystemUrl) return { supportedTravelModes: [], defaultTravelMode: null };
|
|
191774
|
-
const { owningSystemUrl: n } = i, s = q6(n) + "/sharing/rest/portals/self", { data: o } = await
|
|
191770
|
+
const { owningSystemUrl: n } = i, s = q6(n) + "/sharing/rest/portals/self", { data: o } = await hr(s, t), a = Jx("helperServices.routingUtilities.url", o);
|
|
191775
191771
|
if (!a) return { supportedTravelModes: [], defaultTravelMode: null };
|
|
191776
|
-
const l = Ks(n), u = /\/solve$/i.test(l.path) ? "Route" : /\/solveclosestfacility$/i.test(l.path) ? "ClosestFacility" : "ServiceAreas", c = el({ f: "json", serviceName: u }, e), h = q6(a) + "/GetTravelModes/execute", d = await
|
|
191772
|
+
const l = Ks(n), u = /\/solve$/i.test(l.path) ? "Route" : /\/solveclosestfacility$/i.test(l.path) ? "ClosestFacility" : "ServiceAreas", c = el({ f: "json", serviceName: u }, e), h = q6(a) + "/GetTravelModes/execute", d = await hr(h, c), f = [];
|
|
191777
191773
|
let _ = null;
|
|
191778
191774
|
if (d?.data?.results?.length) {
|
|
191779
191775
|
const v = d.data.results;
|
|
@@ -191790,7 +191786,7 @@ async function fCi(r, e) {
|
|
|
191790
191786
|
}
|
|
191791
191787
|
async function mCi(r, e, t) {
|
|
191792
191788
|
try {
|
|
191793
|
-
const i = el({ f: "json", token: e }, t), n = q6(r) + "/retrieveTravelModes", { data: { supportedTravelModes: s, defaultTravelMode: o } } = await
|
|
191789
|
+
const i = el({ f: "json", token: e }, t), n = q6(r) + "/retrieveTravelModes", { data: { supportedTravelModes: s, defaultTravelMode: o } } = await hr(n, i);
|
|
191794
191790
|
return { supportedTravelModes: s, defaultTravelMode: o };
|
|
191795
191791
|
} catch (i) {
|
|
191796
191792
|
throw new be("network-service:retrieveTravelModes", "Could not get to the NAServer's retrieveTravelModes.", { error: i });
|
|
@@ -191976,7 +191972,7 @@ async function TCi(r, e, t) {
|
|
|
191976
191972
|
for (const f in o) o[f].forEach((_, v) => {
|
|
191977
191973
|
pk(e, f)[v].geometry = _;
|
|
191978
191974
|
});
|
|
191979
|
-
const c = { ...t, query: { ...a.query, ...gCi(e), f: "json" } }, h = l.endsWith("/solve") ? l : `${l}/solve`, { data: d } = await
|
|
191975
|
+
const c = { ...t, query: { ...a.query, ...gCi(e), f: "json" } }, h = l.endsWith("/solve") ? l : `${l}/solve`, { data: d } = await hr(h, c);
|
|
191980
191976
|
return ICi(d);
|
|
191981
191977
|
}
|
|
191982
191978
|
function ICi(r) {
|
|
@@ -192801,7 +192797,7 @@ let xO = HDe = class extends Ct {
|
|
|
192801
192797
|
}
|
|
192802
192798
|
async loadGeometries(r, e) {
|
|
192803
192799
|
if (this._geometriesSource == null) return;
|
|
192804
|
-
const { url: t, context: i } = this._geometriesSource, n = await
|
|
192800
|
+
const { url: t, context: i } = this._geometriesSource, n = await hr(t, { responseType: "json", signal: e?.signal }), s = r.toJSON(), o = n.data.map((a) => ({ ...a, spatialReference: s }));
|
|
192805
192801
|
this.geometries = DE.fromJSON(o, i), this._geometriesSource = null;
|
|
192806
192802
|
}
|
|
192807
192803
|
clone() {
|
|
@@ -192817,7 +192813,7 @@ async function eEi({ fieldName: r, statisticsInfo: e, errorContext: t, fieldsInd
|
|
|
192817
192813
|
if (l == null) throw new be(`${t}:field-unexisting`, `Field '${r}' does not exist on the layer`);
|
|
192818
192814
|
const u = e.find((d) => d.name === l.name);
|
|
192819
192815
|
if (u == null) throw new be(`${t}:no-cached-statistics`, "Cached statistics for this attribute are not available");
|
|
192820
|
-
const c = kl(n, u.href), { data: h } = await
|
|
192816
|
+
const c = kl(n, u.href), { data: h } = await hr(c, { query: { f: "json", ...s, token: o }, responseType: "json", signal: a });
|
|
192821
192817
|
return h;
|
|
192822
192818
|
}
|
|
192823
192819
|
async function tEi(r) {
|
|
@@ -193280,7 +193276,7 @@ let cl = class extends gD(aU(q8(rc(db(zZ(Gl(Vp(Fm(Ml(ku(oa(qp(Pi(Ts)))))))))))))
|
|
|
193280
193276
|
async _fetchService(e) {
|
|
193281
193277
|
if (!this.webSocketUrl && this.parsedUrl) {
|
|
193282
193278
|
if (!this.sourceJSON) {
|
|
193283
|
-
const { data: t } = await
|
|
193279
|
+
const { data: t } = await hr(this.parsedUrl.path, { query: { f: "json", ...this.customParameters, ...this.parsedUrl.query }, responseType: "json", signal: e });
|
|
193284
193280
|
this.sourceJSON = t;
|
|
193285
193281
|
}
|
|
193286
193282
|
} else {
|
|
@@ -193902,7 +193898,7 @@ let Yd = XDe = class extends rc(Gl(VLt(OFe(ULt(Ml(ku(Fm(oa(Vp(hb(qp(Ts))))))))))
|
|
|
193902
193898
|
}
|
|
193903
193899
|
fetchTile(r, e, t, i = {}) {
|
|
193904
193900
|
const { signal: n } = i, s = this.getTileUrl(r, e, t), o = { responseType: "image", signal: n, query: { ...this.refreshParameters } };
|
|
193905
|
-
return
|
|
193901
|
+
return hr(s, o).then((a) => a.data);
|
|
193906
193902
|
}
|
|
193907
193903
|
async fetchImageBitmapTile(r, e, t, i = {}) {
|
|
193908
193904
|
const { signal: n } = i;
|
|
@@ -193910,7 +193906,7 @@ let Yd = XDe = class extends rc(Gl(VLt(OFe(ULt(Ml(ku(Fm(oa(Vp(hb(qp(Ts))))))))))
|
|
|
193910
193906
|
const l = await this.fetchTile(r, e, t, i);
|
|
193911
193907
|
return eD(l, r, e, t, n);
|
|
193912
193908
|
}
|
|
193913
|
-
const s = this.getTileUrl(r, e, t), o = { responseType: "blob", signal: n, query: { ...this.refreshParameters } }, { data: a } = await
|
|
193909
|
+
const s = this.getTileUrl(r, e, t), o = { responseType: "blob", signal: n, query: { ...this.refreshParameters } }, { data: a } = await hr(s, o);
|
|
193914
193910
|
return eD(a, r, e, t, n);
|
|
193915
193911
|
}
|
|
193916
193912
|
getTileUrl(r, e, t) {
|
|
@@ -193931,7 +193927,7 @@ let Yd = XDe = class extends rc(Gl(VLt(OFe(ULt(Ml(ku(Fm(oa(Vp(hb(qp(Ts))))))))))
|
|
|
193931
193927
|
if (!this.parsedUrl) throw new be("tile-layer:undefined-url", "layer's url is not defined");
|
|
193932
193928
|
const i = Dm(this.parsedUrl.path);
|
|
193933
193929
|
if (i != null && i.serverType === "ImageServer") throw new be("tile-layer:unsupported-url", "use ImageryTileLayer to open a tiled image service");
|
|
193934
|
-
|
|
193930
|
+
hr(this.parsedUrl.path, { query: { f: "json", ...this.parsedUrl.query, ...this.customParameters, token: this.apiKey }, responseType: "json", signal: r }).then(e, t);
|
|
193935
193931
|
}).then((e) => {
|
|
193936
193932
|
let t = this.url;
|
|
193937
193933
|
if (e.ssl && (t = this.url = t.replace(/^http:/i, "https:")), this.sourceJSON = e.data, this.read(e.data, { origin: "service", url: this.parsedUrl }), this.version === 10.1 && !F3(t)) return this._fetchServerVersion(t, r).then((i) => {
|
|
@@ -193943,7 +193939,7 @@ let Yd = XDe = class extends rc(Gl(VLt(OFe(ULt(Ml(ku(Fm(oa(Vp(hb(qp(Ts))))))))))
|
|
|
193943
193939
|
_fetchServerVersion(r, e) {
|
|
193944
193940
|
if (!ggt(r)) return Promise.reject();
|
|
193945
193941
|
const t = r.replace(/(.*\/rest)\/.*/i, "$1") + "/info";
|
|
193946
|
-
return
|
|
193942
|
+
return hr(t, { query: { f: "json", ...this.customParameters, token: this.apiKey }, responseType: "json", signal: e }).then((i) => {
|
|
193947
193943
|
if (i.data?.currentVersion) return i.data.currentVersion;
|
|
193948
193944
|
throw new be("tile-layer:version-not-available", "Server did not provide a version");
|
|
193949
193945
|
});
|
|
@@ -194091,7 +194087,7 @@ let sat = class {
|
|
|
194091
194087
|
}
|
|
194092
194088
|
return "width" in c && "height" in c && "data" in c && (w$(c.data) || wNe(c.data)) ? { width: c.width, height: c.height, data: new Uint8Array(c.data), json: h } : { ...oat(c), json: h };
|
|
194093
194089
|
}
|
|
194094
|
-
const i = To(this.baseURL), n = i.query ? "?" + ib(i.query) : "", s = this._isRetina ? "@2x" : "", o = `${i.path}${s}.${this._spriteImageFormat}${n}`, a = `${i.path}${s}.json${n}`, [l, u] = await Promise.all([
|
|
194090
|
+
const i = To(this.baseURL), n = i.query ? "?" + ib(i.query) : "", s = this._isRetina ? "@2x" : "", o = `${i.path}${s}.${this._spriteImageFormat}${n}`, a = `${i.path}${s}.json${n}`, [l, u] = await Promise.all([hr(a, t), hr(o, { responseType: "image", ...t })]);
|
|
194095
194091
|
return { ...oat(u.data), json: l.data };
|
|
194096
194092
|
}
|
|
194097
194093
|
};
|
|
@@ -194109,7 +194105,7 @@ let AEi = class {
|
|
|
194109
194105
|
this._tileIndexPromise = null;
|
|
194110
194106
|
}
|
|
194111
194107
|
async fetchTileIndex() {
|
|
194112
|
-
return this._tileIndexPromise || (this._tileIndexPromise =
|
|
194108
|
+
return this._tileIndexPromise || (this._tileIndexPromise = hr(this.url).then((e) => e.data.index)), this._tileIndexPromise;
|
|
194113
194109
|
}
|
|
194114
194110
|
async dataKey(e, t) {
|
|
194115
194111
|
const i = await this.fetchTileIndex();
|
|
@@ -194143,7 +194139,7 @@ let AEi = class {
|
|
|
194143
194139
|
this._tilemap = Od(this._tilemap), this._tileIndexPromise = null;
|
|
194144
194140
|
}
|
|
194145
194141
|
async fetchTileIndex(e) {
|
|
194146
|
-
return this._tileIndexPromise || (this._tileIndexPromise =
|
|
194142
|
+
return this._tileIndexPromise || (this._tileIndexPromise = hr(this._tileIndexUrl, { query: { ...e?.query } }).then((t) => t.data.index)), this._tileIndexPromise;
|
|
194147
194143
|
}
|
|
194148
194144
|
dataKey(e, t) {
|
|
194149
194145
|
const { level: i, row: n, col: s } = e, o = new tI(e);
|
|
@@ -194165,7 +194161,7 @@ let AEi = class {
|
|
|
194165
194161
|
}
|
|
194166
194162
|
async _makeRequest(e) {
|
|
194167
194163
|
this._abortController = new AbortController();
|
|
194168
|
-
const { data: t } = await
|
|
194164
|
+
const { data: t } = await hr(e, { responseType: "array-buffer", signal: this._abortController.signal });
|
|
194169
194165
|
return t;
|
|
194170
194166
|
}
|
|
194171
194167
|
};
|
|
@@ -194236,7 +194232,7 @@ async function t6(r, e, t, i, n) {
|
|
|
194236
194232
|
let s, o, a;
|
|
194237
194233
|
if (en(n), typeof t == "string") {
|
|
194238
194234
|
const u = Cy(t);
|
|
194239
|
-
a = await
|
|
194235
|
+
a = await hr(u, { ...n, responseType: "json", query: { f: "json", ...n?.query } }), a.ssl && (s && (s = s.replace(/^http:/i, "https:")), o && (o = o.replace(/^http:/i, "https:"))), s = u, o = u;
|
|
194240
194236
|
} else t != null && (a = { data: t }, s = t.jsonUrl || null, o = i);
|
|
194241
194237
|
const l = a?.data;
|
|
194242
194238
|
if (p7t(l)) return r.styleUrl = s || null, OEi(r, l, o, n);
|
|
@@ -194369,7 +194365,7 @@ let sc = class extends rc(Gl(Vp(OFe(Fm(Ml(ku(qp(hb(oa(Ts)))))))))) {
|
|
|
194369
194365
|
const t = this.loadFromPortal({ supportedTypes: ["Vector Tile Service"], supportsData: !1 }, e).catch(Wo).then(async () => {
|
|
194370
194366
|
if (!this.portalItem?.id) return;
|
|
194371
194367
|
const i = `${this.portalItem.itemCdnUrl}/resources/styles/root.json`;
|
|
194372
|
-
(await
|
|
194368
|
+
(await hr(i, { ...e, query: { f: "json", ...this.customParameters, token: this.apiKey }, authMode: this.portalItem.portal.authMode })).data && this.read({ url: i }, Qpe(this.portalItem, "portal-item"));
|
|
194373
194369
|
}).catch(Wo).then(() => this._loadStyle(e));
|
|
194374
194370
|
return this.addResolvingPromise(t), Promise.resolve(this);
|
|
194375
194371
|
}
|
|
@@ -194675,7 +194671,7 @@ let KEi = class extends EventTarget {
|
|
|
194675
194671
|
send(e) {
|
|
194676
194672
|
(this.readyState !== this.OPENED || this._sendFlag) && this._throwDOMException(), this._sendFlag = !0, this._updateReadyState(this.LOADING), this._dispatchProgressEvent("loadstart");
|
|
194677
194673
|
const t = this._options;
|
|
194678
|
-
e instanceof URLSearchParams ? t.body = e.toString() : t.body = e, t.responseType = this.responseType === "" ? "text" : this.responseType === "arraybuffer" ? "array-buffer" : this.responseType, t.signal = this._abortController?.signal, this.timeout && (t.timeout = this.timeout), this.withCredentials && (t.withCredentials = !0),
|
|
194674
|
+
e instanceof URLSearchParams ? t.body = e.toString() : t.body = e, t.responseType = this.responseType === "" ? "text" : this.responseType === "arraybuffer" ? "array-buffer" : this.responseType, t.signal = this._abortController?.signal, this.timeout && (t.timeout = this.timeout), this.withCredentials && (t.withCredentials = !0), hr(this._url, t).then((i) => {
|
|
194679
194675
|
this._response = i, this._updateReadyState(this.DONE), this._dispatchProgressEvent("load");
|
|
194680
194676
|
}).catch((i) => {
|
|
194681
194677
|
this._sendFlag && (this._error = i.details, this._updateReadyState(this.DONE), ytr(i) ? this._dispatchProgressEvent("timeout") : i.name === "AbortError" ? this._dispatchProgressEvent("abort") : this._dispatchProgressEvent("error"));
|
|
@@ -205660,7 +205656,7 @@ browserWorkerPolyFill(self);
|
|
|
205660
205656
|
ce = new Uint8Array(), this.trigger("endedtimeline");
|
|
205661
205657
|
};
|
|
205662
205658
|
}).prototype = new Lt();
|
|
205663
|
-
var At, Qt, ei,
|
|
205659
|
+
var At, Qt, ei, dr, Zr = Tl, Ei = ["audioobjecttype", "channelcount", "samplerate", "samplingfrequencyindex", "samplesize"], ui = ["width", "height", "profileIdc", "levelIdc", "profileCompatibility", "sarRatio"], Oi = Lt, tn = Kr, gs = Hi, ln = y, It = g, Ft = $o, ur = pi, qr = Ln, _i = $l.H264Stream, sn = Zr, Cn = it.isLikelyAacData, hn = pi.ONE_SECOND_IN_TS, Vi = Ei, Ms = ui, hs = function(ce, Te) {
|
|
205664
205660
|
Te.stream = ce, this.trigger("log", Te);
|
|
205665
205661
|
}, yl = function(ce, Te) {
|
|
205666
205662
|
for (var Re = Object.keys(Te), $e = 0; $e < Re.length; $e++) {
|
|
@@ -205740,11 +205736,11 @@ browserWorkerPolyFill(self);
|
|
|
205740
205736
|
}, this.alignGopsWith = function(ge) {
|
|
205741
205737
|
ne = ge;
|
|
205742
205738
|
};
|
|
205743
|
-
}, At.prototype = new Oi(),
|
|
205744
|
-
this.numberOfTracks = 0, this.metadataStream = Te, (ce = ce || {}).remux !== void 0 ? this.remuxTracks = !!ce.remux : this.remuxTracks = !0, typeof ce.keepOriginalTimestamps == "boolean" ? this.keepOriginalTimestamps = ce.keepOriginalTimestamps : this.keepOriginalTimestamps = !1, this.pendingTracks = [], this.videoTrack = null, this.pendingBoxes = [], this.pendingCaptions = [], this.pendingMetadata = [], this.pendingBytes = 0, this.emittedTracks = 0,
|
|
205739
|
+
}, At.prototype = new Oi(), dr = function(ce, Te) {
|
|
205740
|
+
this.numberOfTracks = 0, this.metadataStream = Te, (ce = ce || {}).remux !== void 0 ? this.remuxTracks = !!ce.remux : this.remuxTracks = !0, typeof ce.keepOriginalTimestamps == "boolean" ? this.keepOriginalTimestamps = ce.keepOriginalTimestamps : this.keepOriginalTimestamps = !1, this.pendingTracks = [], this.videoTrack = null, this.pendingBoxes = [], this.pendingCaptions = [], this.pendingMetadata = [], this.pendingBytes = 0, this.emittedTracks = 0, dr.prototype.init.call(this), this.push = function(Re) {
|
|
205745
205741
|
return Re.content || Re.text ? this.pendingCaptions.push(Re) : Re.frames ? this.pendingMetadata.push(Re) : (this.pendingTracks.push(Re.track), this.pendingBytes += Re.boxes.byteLength, Re.track.type === "video" && (this.videoTrack = Re.track, this.pendingBoxes.push(Re.boxes)), void (Re.track.type === "audio" && (this.audioTrack = Re.track, this.pendingBoxes.unshift(Re.boxes))));
|
|
205746
205742
|
};
|
|
205747
|
-
},
|
|
205743
|
+
}, dr.prototype = new Oi(), dr.prototype.flush = function(ce) {
|
|
205748
205744
|
var Te, Re, $e, tt, G = 0, ne = { captions: [], captionStreams: {}, metadata: [], info: {} }, ge = 0;
|
|
205749
205745
|
if (this.pendingTracks.length < this.numberOfTracks) {
|
|
205750
205746
|
if (ce !== "VideoSegmentStream" && ce !== "AudioSegmentStream" || this.remuxTracks) return;
|
|
@@ -205762,20 +205758,20 @@ browserWorkerPolyFill(self);
|
|
|
205762
205758
|
for (tt = 0; tt < ne.metadata.length; tt++) Re = ne.metadata[tt], this.trigger("id3Frame", Re);
|
|
205763
205759
|
}
|
|
205764
205760
|
this.emittedTracks >= this.numberOfTracks && (this.trigger("done"), this.emittedTracks = 0);
|
|
205765
|
-
},
|
|
205761
|
+
}, dr.prototype.setRemux = function(ce) {
|
|
205766
205762
|
this.remuxTracks = ce;
|
|
205767
205763
|
}, ei = function(ce) {
|
|
205768
205764
|
var Te, Re, $e = this, tt = !0;
|
|
205769
205765
|
ei.prototype.init.call(this), ce = ce || {}, this.baseMediaDecodeTime = ce.baseMediaDecodeTime || 0, this.transmuxPipeline_ = {}, this.setupAacPipeline = function() {
|
|
205770
205766
|
var G = {};
|
|
205771
|
-
this.transmuxPipeline_ = G, G.type = "aac", G.metadataStream = new Ft.MetadataStream(), G.aacStream = new sn(), G.audioTimestampRolloverStream = new Ft.TimestampRolloverStream("audio"), G.timedMetadataTimestampRolloverStream = new Ft.TimestampRolloverStream("timed-metadata"), G.adtsStream = new qr(), G.coalesceStream = new
|
|
205767
|
+
this.transmuxPipeline_ = G, G.type = "aac", G.metadataStream = new Ft.MetadataStream(), G.aacStream = new sn(), G.audioTimestampRolloverStream = new Ft.TimestampRolloverStream("audio"), G.timedMetadataTimestampRolloverStream = new Ft.TimestampRolloverStream("timed-metadata"), G.adtsStream = new qr(), G.coalesceStream = new dr(ce, G.metadataStream), G.headOfPipeline = G.aacStream, G.aacStream.pipe(G.audioTimestampRolloverStream).pipe(G.adtsStream), G.aacStream.pipe(G.timedMetadataTimestampRolloverStream).pipe(G.metadataStream).pipe(G.coalesceStream), G.metadataStream.on("timestamp", function(ne) {
|
|
205772
205768
|
G.aacStream.setTimestamp(ne.timeStamp);
|
|
205773
205769
|
}), G.aacStream.on("data", function(ne) {
|
|
205774
205770
|
ne.type !== "timed-metadata" && ne.type !== "audio" || G.audioSegmentStream || (Re = Re || { timelineStartInfo: { baseMediaDecodeTime: $e.baseMediaDecodeTime }, codec: "adts", type: "audio" }, G.coalesceStream.numberOfTracks++, G.audioSegmentStream = new Qt(Re, ce), G.audioSegmentStream.on("log", $e.getLogTrigger_("audioSegmentStream")), G.audioSegmentStream.on("timingInfo", $e.trigger.bind($e, "audioTimingInfo")), G.adtsStream.pipe(G.audioSegmentStream).pipe(G.coalesceStream), $e.trigger("trackinfo", { hasAudio: !!Re, hasVideo: !!Te }));
|
|
205775
205771
|
}), G.coalesceStream.on("data", this.trigger.bind(this, "data")), G.coalesceStream.on("done", this.trigger.bind(this, "done")), yl(this, G);
|
|
205776
205772
|
}, this.setupTsPipeline = function() {
|
|
205777
205773
|
var G = {};
|
|
205778
|
-
this.transmuxPipeline_ = G, G.type = "ts", G.metadataStream = new Ft.MetadataStream(), G.packetStream = new Ft.TransportPacketStream(), G.parseStream = new Ft.TransportParseStream(), G.elementaryStream = new Ft.ElementaryStream(), G.timestampRolloverStream = new Ft.TimestampRolloverStream(), G.adtsStream = new qr(), G.h264Stream = new _i(), G.captionStream = new Ft.CaptionStream(ce), G.coalesceStream = new
|
|
205774
|
+
this.transmuxPipeline_ = G, G.type = "ts", G.metadataStream = new Ft.MetadataStream(), G.packetStream = new Ft.TransportPacketStream(), G.parseStream = new Ft.TransportParseStream(), G.elementaryStream = new Ft.ElementaryStream(), G.timestampRolloverStream = new Ft.TimestampRolloverStream(), G.adtsStream = new qr(), G.h264Stream = new _i(), G.captionStream = new Ft.CaptionStream(ce), G.coalesceStream = new dr(ce, G.metadataStream), G.headOfPipeline = G.packetStream, G.packetStream.pipe(G.parseStream).pipe(G.elementaryStream).pipe(G.timestampRolloverStream), G.timestampRolloverStream.pipe(G.h264Stream), G.timestampRolloverStream.pipe(G.adtsStream), G.timestampRolloverStream.pipe(G.metadataStream).pipe(G.coalesceStream), G.h264Stream.pipe(G.captionStream).pipe(G.coalesceStream), G.elementaryStream.on("data", function(ne) {
|
|
205779
205775
|
var ge;
|
|
205780
205776
|
if (ne.type === "metadata") {
|
|
205781
205777
|
for (ge = ne.tracks.length; ge--; ) Te || ne.tracks[ge].type !== "video" ? Re || ne.tracks[ge].type !== "audio" || ((Re = ne.tracks[ge]).timelineStartInfo.baseMediaDecodeTime = $e.baseMediaDecodeTime) : (Te = ne.tracks[ge]).timelineStartInfo.baseMediaDecodeTime = $e.baseMediaDecodeTime;
|
|
@@ -209869,10 +209865,10 @@ let ds = class extends rc(Gl(Fm(Ml(ku(oa(qp(Ts))))))) {
|
|
|
209869
209865
|
}
|
|
209870
209866
|
async _fetchService(e) {
|
|
209871
209867
|
if (this.sourceJSON) return void this.read(this.sourceJSON, { origin: "service", url: this.parsedUrl });
|
|
209872
|
-
const { data: t, ssl: i } = await
|
|
209868
|
+
const { data: t, ssl: i } = await hr(this.url, { query: { f: "json", ...this.parsedUrl.query, ...this.customParameters }, signal: e });
|
|
209873
209869
|
if (i && (this.url = this.url.replace(/^http:/i, "https:")), !t?.currentVersion) return t.currentVersion = "11.2", this.sourceJSON = t, void this.read(this.sourceJSON, { origin: "service", url: this.parsedUrl });
|
|
209874
209870
|
if (this.layerId ??= t.layers?.[0]?.id ?? null, this.layerId == null) throw new be("arcgis-layers:url-mismatch", "The url is not a valid arcgis resource");
|
|
209875
|
-
const { data: n } = await
|
|
209871
|
+
const { data: n } = await hr(this.parsedUrl.path, { query: { f: "json", ...this.customParameters }, signal: e });
|
|
209876
209872
|
this.sourceJSON = { ...t, ...n }, this.read(this.sourceJSON, { origin: "service", url: this.parsedUrl });
|
|
209877
209873
|
}
|
|
209878
209874
|
_setSensorTrail(e) {
|
|
@@ -211033,8 +211029,8 @@ function eNi(r, e) {
|
|
|
211033
211029
|
async function tNi(r, e) {
|
|
211034
211030
|
const { version: t, customParameters: i, signal: n } = e ?? {}, s = t?.startsWith("1.0") ? "version" : "acceptVersions", o = { service: "WCS", request: "GetCapabilities", [s]: t, ...i };
|
|
211035
211031
|
try {
|
|
211036
|
-
let { data: a } = await
|
|
211037
|
-
return e?.version || NMi(a) || (o[s] = "2.0.1", { data: a } = await
|
|
211032
|
+
let { data: a } = await hr(r, { query: o, responseType: "xml", signal: n });
|
|
211033
|
+
return e?.version || NMi(a) || (o[s] = "2.0.1", { data: a } = await hr(r, { query: o, responseType: "xml", signal: n })), $Mi(a);
|
|
211038
211034
|
} catch (a) {
|
|
211039
211035
|
throw Ul(a) ? a : new be("wcslayer:open", "wcs capabilities is not valid or supported");
|
|
211040
211036
|
}
|
|
@@ -211042,7 +211038,7 @@ async function tNi(r, e) {
|
|
|
211042
211038
|
async function l2e(r, e) {
|
|
211043
211039
|
const { coverageIds: t, version: i, customParameters: n, signal: s } = e, o = i.slice(0, 3), a = o === "1.0" ? "coverage" : o === "1.1" ? "identifiers" : "coverageId", l = { service: "WCS", request: "DescribeCoverage", version: i, [a]: t.join(","), ...n };
|
|
211044
211040
|
try {
|
|
211045
|
-
const { data: u } = await
|
|
211041
|
+
const { data: u } = await hr(r, { query: l, responseType: "xml", signal: s });
|
|
211046
211042
|
return eNi(u, i);
|
|
211047
211043
|
} catch (u) {
|
|
211048
211044
|
throw Ul(u) ? u : new be("wcslayer:open", "wcs coverage description is not valid or supported");
|
|
@@ -212023,7 +212019,7 @@ let hl = class extends rc(db(Vp(Gl(Ml(ku(oa(Ts))))))) {
|
|
|
212023
212019
|
return u.width = t, u.height = i, u;
|
|
212024
212020
|
}
|
|
212025
212021
|
const a = uct(n?.timeExtent), l = { responseType: "image", query: this._mixCustomParameters({ width: t, height: i, ...o, time: a, ...this.refreshParameters }), signal: n?.signal };
|
|
212026
|
-
return
|
|
212022
|
+
return hr(s ?? "", l).then((u) => u.data);
|
|
212027
212023
|
}
|
|
212028
212024
|
async fetchImageBitmap(e, t, i, n) {
|
|
212029
212025
|
const s = this.mapUrl ?? "", o = this.createExportImageParameters(e, t, i, n);
|
|
@@ -212031,7 +212027,7 @@ let hl = class extends rc(db(Vp(Gl(Ml(ku(oa(Ts))))))) {
|
|
|
212031
212027
|
const c = document.createElement("canvas");
|
|
212032
212028
|
return c.width = t, c.height = i, c;
|
|
212033
212029
|
}
|
|
212034
|
-
const a = uct(n?.timeExtent), l = { responseType: "blob", query: this._mixCustomParameters({ width: t, height: i, ...o, time: a, ...this.refreshParameters }), signal: n?.signal }, { data: u } = await
|
|
212030
|
+
const a = uct(n?.timeExtent), l = { responseType: "blob", query: this._mixCustomParameters({ width: t, height: i, ...o, time: a, ...this.refreshParameters }), signal: n?.signal }, { data: u } = await hr(s, l);
|
|
212035
212031
|
return Khe(u, s, n?.signal);
|
|
212036
212032
|
}
|
|
212037
212033
|
fetchFeatureInfo(e, t, i, n, s) {
|
|
@@ -212061,7 +212057,7 @@ let hl = class extends rc(db(Vp(Gl(Ml(ku(oa(Ts))))))) {
|
|
|
212061
212057
|
}
|
|
212062
212058
|
async _fetchService(e) {
|
|
212063
212059
|
if (!this.resourceInfo && this.parsedUrl?.path) {
|
|
212064
|
-
const { path: t, query: i } = this.parsedUrl, { data: n } = await
|
|
212060
|
+
const { path: t, query: i } = this.parsedUrl, { data: n } = await hr(t, { query: { SERVICE: "WMS", REQUEST: "GetCapabilities", ...i, ...this.customParameters }, responseType: "xml", signal: e });
|
|
212065
212061
|
this.resourceInfo = vNi(n);
|
|
212066
212062
|
}
|
|
212067
212063
|
if (this.parsedUrl) {
|
|
@@ -212458,7 +212454,7 @@ let Ic = $Me = class extends rc(Vp(Gl(Ml(ku(oa(Ts)))))) {
|
|
|
212458
212454
|
return this.customLayerParameters && (s.customLayerParameters = this.customLayerParameters), this.customParameters && (s.customParameters = this.customParameters), new Th({ fullExtent: n, urlTemplate: e, tileInfo: i, wmtsInfo: s });
|
|
212459
212455
|
}
|
|
212460
212456
|
async fetchTile(r, e, t, i = {}) {
|
|
212461
|
-
const { signal: n } = i, s = this.getTileUrl(r, e, t), { data: o } = await
|
|
212457
|
+
const { signal: n } = i, s = this.getTileUrl(r, e, t), { data: o } = await hr(s, { responseType: "image", signal: n });
|
|
212462
212458
|
return o;
|
|
212463
212459
|
}
|
|
212464
212460
|
async fetchImageBitmapTile(r, e, t, i = {}) {
|
|
@@ -212467,7 +212463,7 @@ let Ic = $Me = class extends rc(Vp(Gl(Ml(ku(oa(Ts)))))) {
|
|
|
212467
212463
|
const a = await this.fetchTile(r, e, t, i);
|
|
212468
212464
|
return eD(a, r, e, t, n);
|
|
212469
212465
|
}
|
|
212470
|
-
const s = this.getTileUrl(r, e, t), { data: o } = await
|
|
212466
|
+
const s = this.getTileUrl(r, e, t), { data: o } = await hr(s, { responseType: "blob", signal: n });
|
|
212471
212467
|
return eD(o, r, e, t, n);
|
|
212472
212468
|
}
|
|
212473
212469
|
findSublayerById(r) {
|
|
@@ -212510,7 +212506,7 @@ let Ic = $Me = class extends rc(Vp(Gl(Ml(ku(oa(Ts)))))) {
|
|
|
212510
212506
|
}
|
|
212511
212507
|
async _getCapabilities(r, e) {
|
|
212512
212508
|
const t = this._getCapabilitiesUrl(r);
|
|
212513
|
-
return await
|
|
212509
|
+
return await hr(t, { ...e, responseType: "text" });
|
|
212514
212510
|
}
|
|
212515
212511
|
_getTileMatrixSetById(r) {
|
|
212516
212512
|
return this.findSublayerById(this.activeLayer.id)?.tileMatrixSets?.find(({ id: t }) => t === r);
|
|
@@ -213371,7 +213367,7 @@ function Y$i() {
|
|
|
213371
213367
|
e: {
|
|
213372
213368
|
t: {
|
|
213373
213369
|
if (Gr[ie + 108 | 0]) {
|
|
213374
|
-
if (!
|
|
213370
|
+
if (!dr(ie)) {
|
|
213375
213371
|
if ((0 | (st = F[ie + 1732 >> 2])) != 11) break t;
|
|
213376
213372
|
Or[F[ie + 12 >> 2]](100902);
|
|
213377
213373
|
break e;
|
|
@@ -213383,7 +213379,7 @@ function Y$i() {
|
|
|
213383
213379
|
at[124 + (St = ie + (Oe << 4) | 0) >> 2] = st ? ct(9999999933815813e21) : se, at[St + 120 >> 2] = Ae, at[St + 116 >> 2] = je, F[St + 128 >> 2] = he, F[ie + 112 >> 2] = Oe + 1;
|
|
213384
213380
|
break e;
|
|
213385
213381
|
}
|
|
213386
|
-
if (!
|
|
213382
|
+
if (!dr(ie)) {
|
|
213387
213383
|
if ((0 | (st = F[ie + 1732 >> 2])) != 11) break t;
|
|
213388
213384
|
Or[F[ie + 12 >> 2]](100902);
|
|
213389
213385
|
break e;
|
|
@@ -215036,7 +215032,7 @@ function Y$i() {
|
|
|
215036
215032
|
}
|
|
215037
215033
|
return V;
|
|
215038
215034
|
}
|
|
215039
|
-
function
|
|
215035
|
+
function dr(Q) {
|
|
215040
215036
|
Q |= 0;
|
|
215041
215037
|
var V = 0, K = 0, oe = 0, Ie = 0, Ge = 0, Oe = ct(0);
|
|
215042
215038
|
if ((V = Vn(128)) && (F[V + 8 >> 2] = 0, F[V + 12 >> 2] = 0, K = V + 40 | 0, F[V + 44 >> 2] = K, F[V + 48 >> 2] = 0, F[V + 52 >> 2] = 0, F[V + 40 >> 2] = K, cn[V + 54 >> 1] = 0, cn[V + 56 >> 1] = 0, cn[V + 58 >> 1] = 0, cn[V + 60 >> 1] = 0, F[V + 72 >> 2] = 0, F[V + 76 >> 2] = 0, K = V + 96 | 0, F[V + 68 >> 2] = K, oe = V - -64 | 0, F[V + 64 >> 2] = oe, F[V + 80 >> 2] = 0, F[V + 84 >> 2] = 0, F[V + 88 >> 2] = 0, F[V + 92 >> 2] = 0, F[V + 104 >> 2] = 0, F[V + 108 >> 2] = 0, F[V + 100 >> 2] = oe, F[V + 96 >> 2] = K, F[V + 112 >> 2] = 0, F[V + 116 >> 2] = 0, F[V + 120 >> 2] = 0, F[V + 124 >> 2] = 0, F[V >> 2] = V, F[V + 4 >> 2] = V), F[Q + 8 >> 2] = V, !V) return 0;
|
|
@@ -215644,7 +215640,7 @@ function Y$i() {
|
|
|
215644
215640
|
function wi() {
|
|
215645
215641
|
}
|
|
215646
215642
|
X = Gr, nt();
|
|
215647
|
-
var Or = J([null, de, It, ot, ot, ot, Hr, Zr, rn, Ms, Ar, ot, wi, Hr, Hr, Hr, Hr, Ci, Hr, Ei, ic,
|
|
215643
|
+
var Or = J([null, de, It, ot, ot, ot, Hr, Zr, rn, Ms, Ar, ot, wi, Hr, Hr, Hr, Hr, Ci, Hr, Ei, ic, dr, Ot, zu, Ra, yl, Ia, Cn, wc, lt, ba, dn, Hr, wi, wt, Hn, Hr, rt, tn, Er, Du]);
|
|
215648
215644
|
function Ai() {
|
|
215649
215645
|
return zi.byteLength / 65536 | 0;
|
|
215650
215646
|
}
|
|
@@ -216702,7 +216698,7 @@ var b6i = /* @__PURE__ */ Object.freeze({
|
|
|
216702
216698
|
}
|
|
216703
216699
|
async function Cr() {
|
|
216704
216700
|
function It(_i, sn) {
|
|
216705
|
-
return
|
|
216701
|
+
return dr = gs(dr = _i.exports), v = dr.memory, z(), Nr = dr.__indirect_function_table, Ce(dr.__wasm_call_ctors), Tt(), dr;
|
|
216706
216702
|
}
|
|
216707
216703
|
function Ft(_i) {
|
|
216708
216704
|
It(_i.instance);
|
|
@@ -217236,9 +217232,9 @@ var b6i = /* @__PURE__ */ Object.freeze({
|
|
|
217236
217232
|
super(It), this.name = "BindingError";
|
|
217237
217233
|
}
|
|
217238
217234
|
}, Ee(), Rr = i.UnboundTypeError = F(Error, "UnboundTypeError");
|
|
217239
|
-
var
|
|
217235
|
+
var dr, Zr = { __call_sighandler: Mi, __cxa_throw: Hi, _abort_js: qn, _embind_finalize_value_object: w, _embind_register_bigint: y, _embind_register_bool: L, _embind_register_emval: Je, _embind_register_float: Nt, _embind_register_function: at, _embind_register_integer: Fn, _embind_register_memory_view: ct, _embind_register_std_string: Xa, _embind_register_std_wstring: uo, _embind_register_value_object: $o, _embind_register_value_object_field: Du, _embind_register_void: Ta, _emscripten_memcpy_js: Ra, _emscripten_runtime_keepalive_clear: zu, _emval_decref: X, _emval_incref: wc, _emval_new_cstring: ic, _emval_take_value: $l, emscripten_resize_heap: va, fd_close: fe, fd_seek: _e, fd_write: At, proc_exit: ei };
|
|
217240
217236
|
Cr();
|
|
217241
|
-
var Ei, ui = (It) => (ui =
|
|
217237
|
+
var Ei, ui = (It) => (ui = dr.__getTypeName)(It), Oi = (It) => (Oi = dr.malloc)(It), tn = (It) => (tn = dr.free)(It);
|
|
217242
217238
|
function gs(It) {
|
|
217243
217239
|
var Ft = (qr) => (_i) => qr(_i) >>> 0, ur = (qr) => () => qr() >>> 0;
|
|
217244
217240
|
return (It = Object.assign({}, It)).__getTypeName = Ft(It.__getTypeName), It.malloc = Ft(It.malloc), It._emscripten_stack_alloc = Ft(It._emscripten_stack_alloc), It.emscripten_stack_get_current = ur(It.emscripten_stack_get_current), It;
|
|
@@ -217251,7 +217247,7 @@ var b6i = /* @__PURE__ */ Object.freeze({
|
|
|
217251
217247
|
setTimeout(() => i.setStatus(""), 1), It();
|
|
217252
217248
|
}, 1)) : It()));
|
|
217253
217249
|
}
|
|
217254
|
-
if (i.dynCall_vij = (It, Ft, ur, qr) => (i.dynCall_vij =
|
|
217250
|
+
if (i.dynCall_vij = (It, Ft, ur, qr) => (i.dynCall_vij = dr.dynCall_vij)(It, Ft, ur, qr), i.dynCall_jiji = (It, Ft, ur, qr, _i) => (i.dynCall_jiji = dr.dynCall_jiji)(It, Ft, ur, qr, _i), Qe = function It() {
|
|
217255
217251
|
Ei || ln(), Ei || (Qe = It);
|
|
217256
217252
|
}, i.preInit) for (typeof i.preInit == "function" && (i.preInit = [i.preInit]); i.preInit.length > 0; ) i.preInit.pop()();
|
|
217257
217253
|
return ln(), n;
|
|
@@ -218673,7 +218669,7 @@ function I6i() {
|
|
|
218673
218669
|
nt[ae] = { name: zi(me), rawConstructor: Ra(ze, He), rawDestructor: Ra(gt, Ut), fields: [] };
|
|
218674
218670
|
}, ei = (ae, me, ze, He, gt, Ut, Kt, or, ci, Ni) => {
|
|
218675
218671
|
nt[ae].fields.push({ fieldName: zi(me), getterReturnType: ze, getter: Ra(He, gt), getterContext: Ut, setterArgumentType: Kt, setter: Ra(or, ci), setterContext: Ni });
|
|
218676
|
-
},
|
|
218672
|
+
}, dr = (ae, me) => {
|
|
218677
218673
|
Gr(ae, { isVoid: !0, name: me = zi(me), argPackAdvance: 0, fromWireType: () => {
|
|
218678
218674
|
}, toWireType: (ze, He) => {
|
|
218679
218675
|
} });
|
|
@@ -218887,7 +218883,7 @@ function I6i() {
|
|
|
218887
218883
|
return Er.set(ae, He), He;
|
|
218888
218884
|
}, Or = L.createPath, Ai = (ae) => L.unlink(ae), qi = L.createLazyFile, Q = L.createDevice;
|
|
218889
218885
|
L.createPreloadedFile = P, L.staticInit(), l.FS_createPath = L.createPath, l.FS_createDataFile = L.createDataFile, l.FS_createPreloadedFile = L.createPreloadedFile, l.FS_unlink = L.unlink, l.FS_createLazyFile = L.createLazyFile, l.FS_createDevice = L.createDevice, p.doesNotExistError = new L.ErrnoError(44), p.doesNotExistError.stack = "<generic error, no stack>", Xi(), Es(), l.noExitRuntime && (Nr = l.noExitRuntime), l.preloadPlugins && (T = l.preloadPlugins), l.print && (z = l.print), l.printErr && (Y = l.printErr), l.wasmBinary && (_ = l.wasmBinary), l.arguments && l.arguments, l.thisProgram && (c = l.thisProgram), l.addRunDependency = Ue, l.removeRunDependency = Qe, l.addFunction = wi, l.UTF8ToString = q, l.FS_createPreloadedFile = P, l.FS_unlink = Ai, l.FS_createPath = Or, l.FS_createDevice = Q, l.FS_createDataFile = b, l.FS_createLazyFile = qi;
|
|
218890
|
-
var V = { i: kr, w: X, L: pe, M: Ee, N: Ke, U: zr, y: Sn, S: cs, Q: rl, x: Ua, q: Js, c: ic, b: Tl, R: fu, p: At, V: Qt, k: ei, T:
|
|
218886
|
+
var V = { i: kr, w: X, L: pe, M: Ee, N: Ke, U: zr, y: Sn, S: cs, Q: rl, x: Ua, q: Js, c: ic, b: Tl, R: fu, p: At, V: Qt, k: ei, T: dr, P: Zr, E: Ei, X: tn, z: Ft, a: Jn, Y: qr, A: hn, m: Vi, g: Ms, B: hs, h: yl, r: qo, W: xc, l: ba, G: Fl, F: Xl, I: Rt, J: nr, O: dn, u: rn, K: Hn, H: yt, v: yr, n: Vt, j: he, o: je, s: et, D: bt, t: Ae, d: ie, C: $t, e: pt, f: se }, K = await Sr();
|
|
218891
218887
|
K._;
|
|
218892
218888
|
var oe = K.$, Ie = l._malloc = K.ba, Ge = l._free = K.ca, Oe = K.da, st = K.ea, St = K.fa;
|
|
218893
218889
|
function Vt(ae, me) {
|
|
@@ -219644,7 +219640,7 @@ return ret;
|
|
|
219644
219640
|
}
|
|
219645
219641
|
}
|
|
219646
219642
|
return ot[Ht] = 0, Ht - Hr;
|
|
219647
|
-
},
|
|
219643
|
+
}, dr = (rt, ot, Ht) => ei(rt, _, ot, Ht), Zr = (rt) => {
|
|
219648
219644
|
for (var ot = 0, Ht = 0; Ht < rt.length; ++Ht) {
|
|
219649
219645
|
var lr = rt.charCodeAt(Ht);
|
|
219650
219646
|
lr <= 127 ? ot++ : lr <= 2047 ? ot += 2 : lr >= 55296 && lr <= 57343 ? (ot += 4, ++Ht) : ot += 3;
|
|
@@ -219691,7 +219687,7 @@ return ret;
|
|
|
219691
219687
|
var Or = typeof Hr == "string";
|
|
219692
219688
|
Or || Hr instanceof Uint8Array || Hr instanceof Uint8ClampedArray || Hr instanceof Int8Array || pi("Cannot pass non-string to std::string"), wi = Ht && Or ? Zr(Hr) : Hr.length;
|
|
219693
219689
|
var Ai = Ar(4 + wi + 1), qi = Ai + 4;
|
|
219694
|
-
if (A[Ai >> 2] = wi, Ht && Or)
|
|
219690
|
+
if (A[Ai >> 2] = wi, Ht && Or) dr(Hr, qi, wi + 1);
|
|
219695
219691
|
else if (Or) for (var Q = 0; Q < wi; ++Q) {
|
|
219696
219692
|
var V = Hr.charCodeAt(Q);
|
|
219697
219693
|
V > 255 && (mr(qi), pi("String has UTF-16 code units that do not fit in 8 bits")), _[qi + Q] = V;
|
|
@@ -221231,9 +221227,9 @@ return ret;
|
|
|
221231
221227
|
}, ei = (G, ne, ge) => {
|
|
221232
221228
|
var we = i["dynCall_" + G];
|
|
221233
221229
|
return ge && ge.length ? we.apply(null, [ne].concat(ge)) : we.call(null, ne);
|
|
221234
|
-
},
|
|
221235
|
-
var ne =
|
|
221236
|
-
return ne || (G >=
|
|
221230
|
+
}, dr = [], Zr = (G) => {
|
|
221231
|
+
var ne = dr[G];
|
|
221232
|
+
return ne || (G >= dr.length && (dr.length = G + 1), dr[G] = ne = lt.get(G)), ne;
|
|
221237
221233
|
}, Ei = (G, ne, ge) => G.includes("j") ? ei(G, ne, ge) : Zr(ne).apply(null, ge), ui = (G, ne) => {
|
|
221238
221234
|
var ge = [];
|
|
221239
221235
|
return function() {
|
|
@@ -222508,7 +222504,7 @@ return ret;
|
|
|
222508
222504
|
return v.grow(Me), z(), 1;
|
|
222509
222505
|
} catch {
|
|
222510
222506
|
}
|
|
222511
|
-
},
|
|
222507
|
+
}, dr = (de) => {
|
|
222512
222508
|
var Me = E.length;
|
|
222513
222509
|
de >>>= 0;
|
|
222514
222510
|
var Xe = At();
|
|
@@ -223444,7 +223440,7 @@ return ret;
|
|
|
223444
223440
|
super(de), this.name = "InternalError";
|
|
223445
223441
|
}
|
|
223446
223442
|
}, P(), Dt = i.UnboundTypeError = cn(Error, "UnboundTypeError"), wt.createPreloadedFile = xc, wt.staticInit(), Vi.doesNotExistError = new wt.ErrnoError(44), Vi.doesNotExistError.stack = "<generic error, no stack>";
|
|
223447
|
-
var Tr, si = { q: an, w: Hi, s: qn, D: p, B: q, p: X, i: Sn, c: cs, a: Fn, C: rl, j: Vn, E: uo, A: $o, n: Ra, l: zu, k: Js, b: T, F: Tl, g: Ia, m: Wl, e: va, h: fe, f: _e, d: it, t: lt, z:
|
|
223443
|
+
var Tr, si = { q: an, w: Hi, s: qn, D: p, B: q, p: X, i: Sn, c: cs, a: Fn, C: rl, j: Vn, E: uo, A: $o, n: Ra, l: zu, k: Js, b: T, F: Tl, g: Ia, m: Wl, e: va, h: fe, f: _e, d: it, t: lt, z: dr, u: tn, v: gs, x: Yl, y: rh, r: Et, o: nr };
|
|
223448
223444
|
Nr();
|
|
223449
223445
|
var $i, dn = (de) => (dn = Tr.I)(de), rn = (de) => (rn = Tr.K)(de), mn = (de) => (mn = Tr.L)(de);
|
|
223450
223446
|
function Hn() {
|
|
@@ -224416,7 +224412,7 @@ async function H8i(r, e, t) {
|
|
|
224416
224412
|
}
|
|
224417
224413
|
async function YUt(r, e, t = {}, i) {
|
|
224418
224414
|
const n = _U({ ...r.query, f: "json", ...i, ...V8i(e, i) });
|
|
224419
|
-
return
|
|
224415
|
+
return hr(r.path + "/queryRelatedRecords", { ...t, query: { ...t.query, ...n } });
|
|
224420
224416
|
}
|
|
224421
224417
|
async function W8i(r, e, t) {
|
|
224422
224418
|
e = cc.from(e);
|
|
@@ -224478,11 +224474,11 @@ function Q8i(r, e) {
|
|
|
224478
224474
|
}
|
|
224479
224475
|
function eFi(r, e, t) {
|
|
224480
224476
|
let i = { query: _U({ ...r.query, f: "json", ...K8i(e) }) };
|
|
224481
|
-
return t && (i = { ...t, ...i, query: { ...t.query, ...i.query } }),
|
|
224477
|
+
return t && (i = { ...t, ...i, query: { ...t.query, ...i.query } }), hr(r.path + "/queryAttachments", i).then((n) => n.data.attachmentGroups);
|
|
224482
224478
|
}
|
|
224483
224479
|
async function tFi(r, e, t) {
|
|
224484
224480
|
const { objectIds: i } = e, n = [];
|
|
224485
|
-
for (const s of i) n.push(
|
|
224481
|
+
for (const s of i) n.push(hr(r.path + "/" + s + "/attachments", t));
|
|
224486
224482
|
return Promise.all(n).then((s) => i.map((o, a) => ({ parentObjectId: o, attachmentInfos: s[a].data.attachmentInfos })));
|
|
224487
224483
|
}
|
|
224488
224484
|
var rFi = /* @__PURE__ */ Object.freeze({
|
|
@@ -224507,7 +224503,7 @@ async function sFi(r, e, t = {}) {
|
|
|
224507
224503
|
const i = typeof r == "string" ? To(r) : r, n = e.geometry ? [e.geometry] : [], s = await Jf(n, null, { signal: t.signal }), o = s?.[0];
|
|
224508
224504
|
o != null && ((e = e.clone()).geometry = o);
|
|
224509
224505
|
const a = _U({ ...i.query, f: "json", ...iFi(e) });
|
|
224510
|
-
return
|
|
224506
|
+
return hr(kl(i.path, "queryBins"), { ...t, query: { ...a, ...t.query } });
|
|
224511
224507
|
}
|
|
224512
224508
|
async function oFi(r, e, t) {
|
|
224513
224509
|
const { data: i } = await nFi(Ks(r), xd.from(e), t);
|
|
@@ -224551,7 +224547,7 @@ function Mye(r, e, t, i = {}, n = {}) {
|
|
|
224551
224547
|
const l = a?.[0];
|
|
224552
224548
|
l != null && ((e = e.clone()).geometry = l);
|
|
224553
224549
|
const u = _U({ ...s.query, f: t, ...n, ...lFi(e, n) });
|
|
224554
|
-
return
|
|
224550
|
+
return hr(kl(s.path, "queryTopFeatures"), { ...i, query: { ...u, ...i.query } });
|
|
224555
224551
|
});
|
|
224556
224552
|
}
|
|
224557
224553
|
async function pFi(r, e, t, i) {
|
|
@@ -224655,11 +224651,11 @@ const TFi = 10, IFi = 10, JUt = 8e-6, CFi = 50, EFi = 1e3, ZUt = 1e6, qct = 20 *
|
|
|
224655
224651
|
async function kFi({ data: r, name: e, description: t }, i, n) {
|
|
224656
224652
|
let s = null;
|
|
224657
224653
|
try {
|
|
224658
|
-
const o = kl(i, "uploads"), a = kl(o, "info"), { data: l } = await
|
|
224654
|
+
const o = kl(i, "uploads"), a = kl(o, "info"), { data: l } = await hr(a, { query: { f: "json" }, responseType: "json" });
|
|
224659
224655
|
en(n);
|
|
224660
224656
|
const u = F3(i), c = l.maxUploadFileSize * ZUt, h = u ? PFi : c, d = u ? Math.min(qct, c) : qct;
|
|
224661
224657
|
if (r.size > h) throw new Error("Data too large");
|
|
224662
|
-
const f = kl(o, "register"), { data: _ } = await
|
|
224658
|
+
const f = kl(o, "register"), { data: _ } = await hr(f, { query: { f: "json", itemName: DFi(e), description: t }, responseType: "json", method: "post" });
|
|
224663
224659
|
if (en(n), !_.success) throw new Error("Registration failed");
|
|
224664
224660
|
const { itemID: v } = _.item;
|
|
224665
224661
|
s = kl(o, v);
|
|
@@ -224670,7 +224666,7 @@ async function kFi({ data: r, name: e, description: t }, i, n) {
|
|
|
224670
224666
|
const U = A.length - D.length, z = D.pop(), Y = new FormData(), Z = N.simulate(U, xFi(z.size));
|
|
224671
224667
|
try {
|
|
224672
224668
|
Y.append("f", "json"), Y.append("file", z), Y.append("partId", `${U}`);
|
|
224673
|
-
const { data: ee } = await
|
|
224669
|
+
const { data: ee } = await hr(S, { timeout: 0, body: Y, responseType: "json", method: "post" });
|
|
224674
224670
|
if (en(n), !ee.success) throw new Error("Part upload failed");
|
|
224675
224671
|
} finally {
|
|
224676
224672
|
Z.remove();
|
|
@@ -224679,13 +224675,13 @@ async function kFi({ data: r, name: e, description: t }, i, n) {
|
|
|
224679
224675
|
};
|
|
224680
224676
|
for (let U = 0; U < AFi && D.length !== 0; ++U) k.push(O());
|
|
224681
224677
|
await Promise.all(k);
|
|
224682
|
-
const j = kl(s, "commit"), { data: B } = await
|
|
224678
|
+
const j = kl(s, "commit"), { data: B } = await hr(j, { query: { f: "json", parts: A.map((U, z) => z).join(",") }, responseType: "json", method: "post" });
|
|
224683
224679
|
if (en(n), !B.success) throw new Error("Commit failed");
|
|
224684
224680
|
return B.item;
|
|
224685
224681
|
} catch (o) {
|
|
224686
224682
|
if (s != null) {
|
|
224687
224683
|
const a = kl(s, "delete");
|
|
224688
|
-
await
|
|
224684
|
+
await hr(a, { query: { f: "json" }, responseType: "json", method: "post" });
|
|
224689
224685
|
}
|
|
224690
224686
|
throw o;
|
|
224691
224687
|
}
|
|
@@ -224813,7 +224809,7 @@ function VFi(r, e, t) {
|
|
|
224813
224809
|
async function GFi(r, e, t) {
|
|
224814
224810
|
const i = XUt(t?.onProgress);
|
|
224815
224811
|
try {
|
|
224816
|
-
const n = await
|
|
224812
|
+
const n = await hr(kl(e.parsedUrl.path, "uploadAssets"), { timeout: 0, query: { f: "json", assets: JSON.stringify(r) }, method: "post", responseType: "json" });
|
|
224817
224813
|
if (en(t), n.data.uploadResults.length !== r.length) throw new WCi(r.length, n.data.uploadResults.length);
|
|
224818
224814
|
return n.data;
|
|
224819
224815
|
} finally {
|
|
@@ -224856,15 +224852,15 @@ function YFi(r, e) {
|
|
|
224856
224852
|
return t;
|
|
224857
224853
|
}
|
|
224858
224854
|
function XFi(r, e) {
|
|
224859
|
-
return
|
|
224855
|
+
return hr(r, e);
|
|
224860
224856
|
}
|
|
224861
224857
|
async function JFi(r, e) {
|
|
224862
|
-
const t = (await
|
|
224858
|
+
const t = (await hr(r, e)).data.statusUrl;
|
|
224863
224859
|
for (; ; ) {
|
|
224864
|
-
const i = (await
|
|
224860
|
+
const i = (await hr(t, { query: { f: "json" }, responseType: "json" })).data;
|
|
224865
224861
|
switch (i.status) {
|
|
224866
224862
|
case "Completed":
|
|
224867
|
-
return
|
|
224863
|
+
return hr(i.resultUrl, { query: { f: "json" }, responseType: "json" });
|
|
224868
224864
|
case "CompletedWithErrors":
|
|
224869
224865
|
throw new Error(i.status);
|
|
224870
224866
|
case "Failed ImportChanges":
|
|
@@ -224926,7 +224922,7 @@ let KC = class extends Ct {
|
|
|
224926
224922
|
};
|
|
224927
224923
|
m([x({ type: Date })], KC.prototype, "moment", void 0), m([x({ type: Boolean })], KC.prototype, "exceededTransferLimit", void 0), m([x({ type: [Object] })], KC.prototype, "serviceEdits", void 0), m([Yt("serviceEdits")], KC.prototype, "readServiceEdits", null), KC = m([Se("esri.rest.networks.circuits.support.EditCircuitsResult")], KC);
|
|
224928
224924
|
async function i9i(r, e, t) {
|
|
224929
|
-
const i = Ks(r), n = { ...e.toJSON(), f: "json" }, s = Nl({ ...i.query, ...n }), o = el(s, { ...t, method: "post" }), a = `${i.path}/circuits/create`, { data: l } = await
|
|
224925
|
+
const i = Ks(r), n = { ...e.toJSON(), f: "json" }, s = Nl({ ...i.query, ...n }), o = el(s, { ...t, method: "post" }), a = `${i.path}/circuits/create`, { data: l } = await hr(a, o);
|
|
224930
224926
|
return KC.fromJSON(l);
|
|
224931
224927
|
}
|
|
224932
224928
|
var n9i = /* @__PURE__ */ Object.freeze({
|
|
@@ -224948,7 +224944,7 @@ var Vct = /* @__PURE__ */ Object.freeze({
|
|
|
224948
224944
|
default: s9i
|
|
224949
224945
|
});
|
|
224950
224946
|
async function o9i(r, e, t) {
|
|
224951
|
-
const i = Ks(r), n = { ...e.toJSON(), f: "json" }, s = Nl({ ...i.query, ...n }), o = el(s, { ...t, method: "post" }), a = `${i.path}/circuits/alter`, { data: l } = await
|
|
224947
|
+
const i = Ks(r), n = { ...e.toJSON(), f: "json" }, s = Nl({ ...i.query, ...n }), o = el(s, { ...t, method: "post" }), a = `${i.path}/circuits/alter`, { data: l } = await hr(a, o);
|
|
224952
224948
|
return KC.fromJSON(l);
|
|
224953
224949
|
}
|
|
224954
224950
|
var a9i = /* @__PURE__ */ Object.freeze({
|
|
@@ -224958,7 +224954,7 @@ var a9i = /* @__PURE__ */ Object.freeze({
|
|
|
224958
224954
|
async function l9i(r, e, t) {
|
|
224959
224955
|
const i = Ks(r), n = e.toJSON();
|
|
224960
224956
|
e.circuits && (n.circuits = JSON.stringify(e.circuits));
|
|
224961
|
-
const s = { ...n, f: "json" }, o = Nl({ ...i.query, ...s }), a = el(o, { ...t, method: "post" }), l = `${i.path}/circuits/delete`, { data: u } = await
|
|
224957
|
+
const s = { ...n, f: "json" }, o = Nl({ ...i.query, ...s }), a = el(o, { ...t, method: "post" }), l = `${i.path}/circuits/delete`, { data: u } = await hr(l, a);
|
|
224962
224958
|
return KC.fromJSON(u);
|
|
224963
224959
|
}
|
|
224964
224960
|
var u9i = /* @__PURE__ */ Object.freeze({
|
|
@@ -224994,7 +224990,7 @@ m([x({ json: { type: [Object] } })], CA.prototype, "circuits", void 0), m([x({ t
|
|
|
224994
224990
|
async function d9i(r, e, t) {
|
|
224995
224991
|
const i = Ks(r), n = e.toJSON();
|
|
224996
224992
|
e.circuits && (n.circuits = JSON.stringify(e.circuits));
|
|
224997
|
-
const s = { ...n, f: "json" }, o = Nl({ ...i.query, ...s }), a = el(o, { ...t, method: "post" }), l = `${i.path}/circuits/export`, { data: u } = await
|
|
224993
|
+
const s = { ...n, f: "json" }, o = Nl({ ...i.query, ...s }), a = el(o, { ...t, method: "post" }), l = `${i.path}/circuits/export`, { data: u } = await hr(l, a);
|
|
224998
224994
|
return CA.fromJSON(u);
|
|
224999
224995
|
}
|
|
225000
224996
|
var p9i = /* @__PURE__ */ Object.freeze({
|
|
@@ -225044,7 +225040,7 @@ m([x({ type: [Gct], json: { type: [Gct], write: !0 } })], EA.prototype, "circuit
|
|
|
225044
225040
|
async function g9i(r, e, t) {
|
|
225045
225041
|
const i = Ks(r), n = e.toJSON();
|
|
225046
225042
|
e.circuits && (n.circuits = JSON.stringify(e.circuits));
|
|
225047
|
-
const s = { ...n, f: "json" }, o = Nl({ ...i.query, ...s }), a = el(o, { ...t, method: "post" }), l = `${i.path}/circuits/verify`, { data: u } = await
|
|
225043
|
+
const s = { ...n, f: "json" }, o = Nl({ ...i.query, ...s }), a = el(o, { ...t, method: "post" }), l = `${i.path}/circuits/verify`, { data: u } = await hr(l, a);
|
|
225048
225044
|
return EA.fromJSON(u);
|
|
225049
225045
|
}
|
|
225050
225046
|
var y9i = /* @__PURE__ */ Object.freeze({
|
|
@@ -225074,7 +225070,7 @@ m([x({ type: [Object], json: { type: [Object], write: !0 } })], XH.prototype, "c
|
|
|
225074
225070
|
async function b9i(r, e, t) {
|
|
225075
225071
|
const i = Ks(r), n = e.toJSON();
|
|
225076
225072
|
e.circuits && (n.circuits = JSON.stringify(e.circuits)), e.resultTypes && (n.resultTypes = JSON.stringify(e.resultTypes));
|
|
225077
|
-
const s = { ...n, f: "json" }, o = Nl({ ...i.query, ...s }), a = el(o, { ...t, method: "post" }), l = `${i.path}/circuits/query`, { data: u } = await
|
|
225073
|
+
const s = { ...n, f: "json" }, o = Nl({ ...i.query, ...s }), a = el(o, { ...t, method: "post" }), l = `${i.path}/circuits/query`, { data: u } = await hr(l, a);
|
|
225078
225074
|
return XH.fromJSON(u);
|
|
225079
225075
|
}
|
|
225080
225076
|
var Hct = /* @__PURE__ */ Object.freeze({
|
|
@@ -225110,7 +225106,7 @@ let QC = class extends Ct {
|
|
|
225110
225106
|
};
|
|
225111
225107
|
m([x({ type: Date })], QC.prototype, "moment", void 0), m([x({ type: Boolean })], QC.prototype, "exceededTransferLimit", void 0), m([x({ type: [Object] })], QC.prototype, "serviceEdits", void 0), m([Yt("serviceEdits")], QC.prototype, "readServiceEdits", null), QC = m([Se("esri.rest.networks.unitIdentifiers.support.EditUnitIdentifiersResult")], QC);
|
|
225112
225108
|
async function x9i(r, e, t) {
|
|
225113
|
-
const i = Ks(r), n = { ...e.toJSON(), f: "json" }, s = Nl({ ...i.query, ...n }), o = el(s, { ...t, method: "post" }), a = `${i.path}/unitIdentifiers/insertGap`, { data: l } = await
|
|
225109
|
+
const i = Ks(r), n = { ...e.toJSON(), f: "json" }, s = Nl({ ...i.query, ...n }), o = el(s, { ...t, method: "post" }), a = `${i.path}/unitIdentifiers/insertGap`, { data: l } = await hr(a, o);
|
|
225114
225110
|
return QC.fromJSON(l);
|
|
225115
225111
|
}
|
|
225116
225112
|
var S9i = /* @__PURE__ */ Object.freeze({
|
|
@@ -225134,7 +225130,7 @@ var I9i = /* @__PURE__ */ Object.freeze({
|
|
|
225134
225130
|
async function C9i(r, e, t) {
|
|
225135
225131
|
const i = Ks(r), n = e.toJSON();
|
|
225136
225132
|
e.objects && (n.objects = JSON.stringify(e.objects));
|
|
225137
|
-
const s = { ...n, f: "json" }, o = Nl({ ...i.query, ...s }), a = el(o, { ...t, method: "post" }), l = `${i.path}/unitIdentifiers/reset`, { data: u } = await
|
|
225133
|
+
const s = { ...n, f: "json" }, o = Nl({ ...i.query, ...s }), a = el(o, { ...t, method: "post" }), l = `${i.path}/unitIdentifiers/reset`, { data: u } = await hr(l, a);
|
|
225138
225134
|
return QC.fromJSON(u);
|
|
225139
225135
|
}
|
|
225140
225136
|
var E9i = /* @__PURE__ */ Object.freeze({
|
|
@@ -225156,7 +225152,7 @@ var A9i = /* @__PURE__ */ Object.freeze({
|
|
|
225156
225152
|
default: P9i
|
|
225157
225153
|
});
|
|
225158
225154
|
async function k9i(r, e, t) {
|
|
225159
|
-
const i = Ks(r), n = { ...e.toJSON(), f: "json" }, s = Nl({ ...i.query, ...n }), o = el(s, { ...t, method: "post" }), a = `${i.path}/unitIdentifiers/resize`, { data: l } = await
|
|
225155
|
+
const i = Ks(r), n = { ...e.toJSON(), f: "json" }, s = Nl({ ...i.query, ...n }), o = el(s, { ...t, method: "post" }), a = `${i.path}/unitIdentifiers/resize`, { data: l } = await hr(a, o);
|
|
225160
225156
|
return QC.fromJSON(l);
|
|
225161
225157
|
}
|
|
225162
225158
|
var D9i = /* @__PURE__ */ Object.freeze({
|
|
@@ -225192,7 +225188,7 @@ m([x({ type: Object })], YN.prototype, "container", void 0), m([Yt("container",
|
|
|
225192
225188
|
async function $9i(r, e, t) {
|
|
225193
225189
|
const i = Ks(r), n = e.toJSON();
|
|
225194
225190
|
e.objects && (n.objects = JSON.stringify(e.objects));
|
|
225195
|
-
const s = { ...n, f: "json" }, o = Nl({ ...i.query, ...s }), a = el(o, { ...t, method: "post" }), l = `${i.path}/unitIdentifiers/query`, { data: u } = await
|
|
225191
|
+
const s = { ...n, f: "json" }, o = Nl({ ...i.query, ...s }), a = el(o, { ...t, method: "post" }), l = `${i.path}/unitIdentifiers/query`, { data: u } = await hr(l, a);
|
|
225196
225192
|
return u.objects.map((c) => YN.fromJSON(c));
|
|
225197
225193
|
}
|
|
225198
225194
|
var F9i = /* @__PURE__ */ Object.freeze({
|
|
@@ -227413,15 +227409,15 @@ function zRi() {
|
|
|
227413
227409
|
return this.fromWireType(N[fe >> 2]);
|
|
227414
227410
|
}
|
|
227415
227411
|
var ri, Ri, Cr, xi = {}, Nr = {}, ut = {}, Kr = (fe, _e, it) => {
|
|
227416
|
-
function lt(
|
|
227417
|
-
if ((
|
|
227418
|
-
for (var Zr = 0; Zr < fe.length; ++Zr) an(fe[Zr],
|
|
227412
|
+
function lt(dr) {
|
|
227413
|
+
if ((dr = it(dr)).length !== fe.length) throw new ri("Mismatched type converter count");
|
|
227414
|
+
for (var Zr = 0; Zr < fe.length; ++Zr) an(fe[Zr], dr[Zr]);
|
|
227419
227415
|
}
|
|
227420
|
-
fe.forEach((
|
|
227416
|
+
fe.forEach((dr) => ut[dr] = _e);
|
|
227421
227417
|
var At = Array(_e.length), Qt = [], ei = 0;
|
|
227422
|
-
_e.forEach((
|
|
227423
|
-
Nr.hasOwnProperty(
|
|
227424
|
-
At[Zr] = Nr[
|
|
227418
|
+
_e.forEach((dr, Zr) => {
|
|
227419
|
+
Nr.hasOwnProperty(dr) ? At[Zr] = Nr[dr] : (Qt.push(dr), xi.hasOwnProperty(dr) || (xi[dr] = []), xi[dr].push(() => {
|
|
227420
|
+
At[Zr] = Nr[dr], ++ei === Qt.length && lt(At);
|
|
227425
227421
|
}));
|
|
227426
227422
|
}), Qt.length === 0 && lt(At);
|
|
227427
227423
|
}, Ki = (fe) => {
|
|
@@ -227496,8 +227492,8 @@ function zRi() {
|
|
|
227496
227492
|
var _e = (fe = fe.replace(/[^a-zA-Z0-9_]/g, "$")).charCodeAt(0);
|
|
227497
227493
|
return 48 <= _e && 57 >= _e ? `_${fe}` : fe;
|
|
227498
227494
|
};
|
|
227499
|
-
function b(fe, _e, it, lt, At, Qt, ei,
|
|
227500
|
-
this.name = fe, this.constructor = _e, this.pa = it, this.oa = lt, this.ka = At, this.Ga = Qt, this.ua = ei, this.Ea =
|
|
227495
|
+
function b(fe, _e, it, lt, At, Qt, ei, dr) {
|
|
227496
|
+
this.name = fe, this.constructor = _e, this.pa = it, this.oa = lt, this.ka = At, this.Ga = Qt, this.ua = ei, this.Ea = dr, this.Na = [];
|
|
227501
227497
|
}
|
|
227502
227498
|
var T = (fe, _e, it) => {
|
|
227503
227499
|
for (; _e !== it; ) {
|
|
@@ -227560,8 +227556,8 @@ function zRi() {
|
|
|
227560
227556
|
if (_e.ea.ha.wa) throw new Cr(`Cannot convert argument of type ${_e.ea.ha.name} to parameter type ${this.name}`);
|
|
227561
227557
|
return T(_e.ea.ga, _e.ea.ha.fa, this.fa);
|
|
227562
227558
|
}
|
|
227563
|
-
function $(fe, _e, it, lt, At, Qt, ei,
|
|
227564
|
-
this.name = fe, this.fa = _e, this.ya = it, this.wa = lt, this.xa = At, this.Ma = Qt, this.Sa = ei, this.Ca =
|
|
227559
|
+
function $(fe, _e, it, lt, At, Qt, ei, dr, Zr, Ei, ui) {
|
|
227560
|
+
this.name = fe, this.fa = _e, this.ya = it, this.wa = lt, this.xa = At, this.Ma = Qt, this.Sa = ei, this.Ca = dr, this.za = Zr, this.Oa = Ei, this.oa = ui, At || _e.ka !== void 0 ? this.toWireType = P : (this.toWireType = lt ? C : M, this.ma = null);
|
|
227565
227561
|
}
|
|
227566
227562
|
var L, q, J = (fe, _e, it) => {
|
|
227567
227563
|
if (!a.hasOwnProperty(fe)) throw new ri("Replacing nonexistent public symbol");
|
|
@@ -227589,14 +227585,14 @@ function zRi() {
|
|
|
227589
227585
|
function Je(fe, _e, it, lt, At) {
|
|
227590
227586
|
var Qt = _e.length;
|
|
227591
227587
|
if (2 > Qt) throw new Cr("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
227592
|
-
var ei = _e[1] !== null && it !== null,
|
|
227588
|
+
var ei = _e[1] !== null && it !== null, dr = nt(_e), Zr = _e[0].name !== "void", Ei = Qt - 2, ui = Array(Ei), Oi = [], tn = [];
|
|
227593
227589
|
return w(fe, function(...gs) {
|
|
227594
227590
|
if (tn.length = 0, Oi.length = ei ? 2 : 1, Oi[0] = At, ei) {
|
|
227595
227591
|
var ln = _e[1].toWireType(tn, this);
|
|
227596
227592
|
Oi[1] = ln;
|
|
227597
227593
|
}
|
|
227598
227594
|
for (var It = 0; It < Ei; ++It) ui[It] = _e[It + 2].toWireType(tn, gs[It]), Oi.push(ui[It]);
|
|
227599
|
-
if (gs = lt(...Oi),
|
|
227595
|
+
if (gs = lt(...Oi), dr) ti(tn);
|
|
227600
227596
|
else for (It = ei ? 1 : 2; It < _e.length; It++) {
|
|
227601
227597
|
var Ft = It === 1 ? ln : ui[It - 2];
|
|
227602
227598
|
_e[It].ma !== null && _e[It].ma(Ft);
|
|
@@ -227865,21 +227861,21 @@ function zRi() {
|
|
|
227865
227861
|
delete Sr[fe];
|
|
227866
227862
|
var it = _e.za, lt = _e.oa, At = _e.Ba, Qt = At.map((ei) => ei.Ka).concat(At.map((ei) => ei.Qa));
|
|
227867
227863
|
Kr([fe], Qt, (ei) => {
|
|
227868
|
-
var
|
|
227864
|
+
var dr = {};
|
|
227869
227865
|
return At.forEach((Zr, Ei) => {
|
|
227870
227866
|
var ui = ei[Ei], Oi = Zr.Ia, tn = Zr.Ja, gs = ei[Ei + At.length], ln = Zr.Pa, It = Zr.Ra;
|
|
227871
|
-
|
|
227867
|
+
dr[Zr.Fa] = { read: (Ft) => ui.fromWireType(Oi(tn, Ft)), write: (Ft, ur) => {
|
|
227872
227868
|
var qr = [];
|
|
227873
227869
|
ln(It, Ft, gs.toWireType(qr, ur)), ti(qr);
|
|
227874
227870
|
} };
|
|
227875
227871
|
}), [{ name: _e.name, fromWireType: (Zr) => {
|
|
227876
227872
|
var Ei, ui = {};
|
|
227877
|
-
for (Ei in
|
|
227873
|
+
for (Ei in dr) ui[Ei] = dr[Ei].read(Zr);
|
|
227878
227874
|
return lt(Zr), ui;
|
|
227879
227875
|
}, toWireType: (Zr, Ei) => {
|
|
227880
|
-
for (var ui in
|
|
227876
|
+
for (var ui in dr) if (!(ui in Ei)) throw new TypeError(`Missing field: "${ui}"`);
|
|
227881
227877
|
var Oi = it();
|
|
227882
|
-
for (ui in
|
|
227878
|
+
for (ui in dr) dr[ui].write(Oi, Ei[ui]);
|
|
227883
227879
|
return Zr !== null && Zr.push(lt, Oi), Oi;
|
|
227884
227880
|
}, la: 8, readValueFromPointer: hi, ma: lt }];
|
|
227885
227881
|
});
|
|
@@ -227896,8 +227892,8 @@ function zRi() {
|
|
|
227896
227892
|
}, la: 8, readValueFromPointer: function(At) {
|
|
227897
227893
|
return this.fromWireType(E[At]);
|
|
227898
227894
|
}, ma: null });
|
|
227899
|
-
}, f: (fe, _e, it, lt, At, Qt, ei,
|
|
227900
|
-
ui = kr(ui), Qt = pe(At, Qt),
|
|
227895
|
+
}, f: (fe, _e, it, lt, At, Qt, ei, dr, Zr, Ei, ui, Oi, tn) => {
|
|
227896
|
+
ui = kr(ui), Qt = pe(At, Qt), dr &&= pe(ei, dr), Ei &&= pe(Zr, Ei), tn = pe(Oi, tn);
|
|
227901
227897
|
var gs = g(ui);
|
|
227902
227898
|
p(gs, function() {
|
|
227903
227899
|
Ke(`Cannot construct ${ui} due to unbound types`, [lt]);
|
|
@@ -227913,44 +227909,44 @@ function zRi() {
|
|
|
227913
227909
|
});
|
|
227914
227910
|
var ur = Object.create(Ft, { constructor: { value: ln } });
|
|
227915
227911
|
ln.prototype = ur;
|
|
227916
|
-
var qr, _i = new b(ui, ln, ur, tn, It, Qt,
|
|
227912
|
+
var qr, _i = new b(ui, ln, ur, tn, It, Qt, dr, Ei);
|
|
227917
227913
|
return _i.ka && ((qr = _i.ka).va ?? (qr.va = []), _i.ka.va.push(_i)), It = new $(ui, _i, !0, !1, !1), qr = new $(ui + "*", _i, !1, !1, !1), Ft = new $(ui + " const*", _i, !1, !0, !1), Wr[fe] = { pointerType: qr, Da: Ft }, J(gs, ln), [It, qr, Ft];
|
|
227918
227914
|
});
|
|
227919
227915
|
}, v: (fe, _e, it, lt, At, Qt, ei) => {
|
|
227920
|
-
var
|
|
227916
|
+
var dr = vr(it, lt);
|
|
227921
227917
|
_e = kr(_e), _e = Rr(_e), Qt = pe(At, Qt), Kr([], [fe], (Zr) => {
|
|
227922
227918
|
function Ei() {
|
|
227923
|
-
Ke(`Cannot call ${ui} due to unbound types`,
|
|
227919
|
+
Ke(`Cannot call ${ui} due to unbound types`, dr);
|
|
227924
227920
|
}
|
|
227925
227921
|
var ui = `${(Zr = Zr[0]).name}.${_e}`;
|
|
227926
227922
|
_e.startsWith("@@") && (_e = Symbol[_e.substring(2)]);
|
|
227927
227923
|
var Oi = Zr.fa.constructor;
|
|
227928
|
-
return Oi[_e] === void 0 ? (Ei.qa = it - 1, Oi[_e] = Ei) : (y(Oi, _e, ui), Oi[_e].ia[it - 1] = Ei), Kr([],
|
|
227924
|
+
return Oi[_e] === void 0 ? (Ei.qa = it - 1, Oi[_e] = Ei) : (y(Oi, _e, ui), Oi[_e].ia[it - 1] = Ei), Kr([], dr, (tn) => {
|
|
227929
227925
|
if (tn = Je(ui, [tn[0], null].concat(tn.slice(1)), null, Qt, ei), Oi[_e].ia === void 0 ? (tn.qa = it - 1, Oi[_e] = tn) : Oi[_e].ia[it - 1] = tn, Zr.fa.va) for (const gs of Zr.fa.va) gs.constructor.hasOwnProperty(_e) || (gs.constructor[_e] = tn);
|
|
227930
227926
|
return [];
|
|
227931
227927
|
}), [];
|
|
227932
227928
|
});
|
|
227933
227929
|
}, g: (fe, _e, it, lt, At, Qt) => {
|
|
227934
227930
|
var ei = vr(_e, it);
|
|
227935
|
-
At = pe(lt, At), Kr([], [fe], (
|
|
227936
|
-
var Zr = `constructor ${(
|
|
227937
|
-
if (
|
|
227938
|
-
return
|
|
227939
|
-
Ke(`Cannot construct ${
|
|
227940
|
-
}, Kr([], ei, (Ei) => (Ei.splice(1, 0, null),
|
|
227931
|
+
At = pe(lt, At), Kr([], [fe], (dr) => {
|
|
227932
|
+
var Zr = `constructor ${(dr = dr[0]).name}`;
|
|
227933
|
+
if (dr.fa.ra === void 0 && (dr.fa.ra = []), dr.fa.ra[_e - 1] !== void 0) throw new Cr(`Cannot register multiple constructors with identical number of parameters (${_e - 1}) for class '${dr.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
227934
|
+
return dr.fa.ra[_e - 1] = () => {
|
|
227935
|
+
Ke(`Cannot construct ${dr.name} due to unbound types`, ei);
|
|
227936
|
+
}, Kr([], ei, (Ei) => (Ei.splice(1, 0, null), dr.fa.ra[_e - 1] = Je(Zr, Ei, null, At, Qt), [])), [];
|
|
227941
227937
|
});
|
|
227942
|
-
}, a: (fe, _e, it, lt, At, Qt, ei,
|
|
227938
|
+
}, a: (fe, _e, it, lt, At, Qt, ei, dr) => {
|
|
227943
227939
|
var Zr = vr(it, lt);
|
|
227944
227940
|
_e = kr(_e), _e = Rr(_e), Qt = pe(At, Qt), Kr([], [fe], (Ei) => {
|
|
227945
227941
|
function ui() {
|
|
227946
227942
|
Ke(`Cannot call ${Oi} due to unbound types`, Zr);
|
|
227947
227943
|
}
|
|
227948
227944
|
var Oi = `${(Ei = Ei[0]).name}.${_e}`;
|
|
227949
|
-
_e.startsWith("@@") && (_e = Symbol[_e.substring(2)]),
|
|
227945
|
+
_e.startsWith("@@") && (_e = Symbol[_e.substring(2)]), dr && Ei.fa.Na.push(_e);
|
|
227950
227946
|
var tn = Ei.fa.pa, gs = tn[_e];
|
|
227951
227947
|
return gs === void 0 || gs.ia === void 0 && gs.className !== Ei.name && gs.qa === it - 2 ? (ui.qa = it - 2, ui.className = Ei.name, tn[_e] = ui) : (y(tn, _e, Oi), tn[_e].ia[it - 2] = ui), Kr([], Zr, (ln) => (ln = Je(Oi, ln, Ei, Qt, ei), tn[_e].ia === void 0 ? (ln.qa = it - 2, tn[_e] = ln) : tn[_e].ia[it - 2] = ln, [])), [];
|
|
227952
227948
|
});
|
|
227953
|
-
}, c: (fe, _e, it, lt, At, Qt, ei,
|
|
227949
|
+
}, c: (fe, _e, it, lt, At, Qt, ei, dr, Zr, Ei) => {
|
|
227954
227950
|
_e = kr(_e), At = pe(lt, At), Kr([], [fe], (ui) => {
|
|
227955
227951
|
var Oi = `${(ui = ui[0]).name}.${_e}`, tn = { get() {
|
|
227956
227952
|
Ke(`Cannot access ${Oi} due to unbound types`, [it, ei]);
|
|
@@ -227963,7 +227959,7 @@ function zRi() {
|
|
|
227963
227959
|
return ln.fromWireType(At(Qt, ur));
|
|
227964
227960
|
}, enumerable: !0 };
|
|
227965
227961
|
if (Zr) {
|
|
227966
|
-
Zr = pe(
|
|
227962
|
+
Zr = pe(dr, Zr);
|
|
227967
227963
|
var Ft = gs[1];
|
|
227968
227964
|
It.set = function(ur) {
|
|
227969
227965
|
var qr = li(this, ui, Oi + " setter"), _i = [];
|
|
@@ -227989,15 +227985,15 @@ function zRi() {
|
|
|
227989
227985
|
var ei = vr(_e, it);
|
|
227990
227986
|
fe = kr(fe), fe = Rr(fe), At = pe(lt, At), p(fe, function() {
|
|
227991
227987
|
Ke(`Cannot call ${fe} due to unbound types`, ei);
|
|
227992
|
-
}, _e - 1), Kr([], ei, (
|
|
227988
|
+
}, _e - 1), Kr([], ei, (dr) => (J(fe, Je(fe, [dr[0], null].concat(dr.slice(1)), null, At, Qt), _e - 1), []));
|
|
227993
227989
|
}, w: (fe, _e, it, lt, At) => {
|
|
227994
|
-
if (_e = kr(_e), At === -1 && (At = 4294967295), At = (
|
|
227990
|
+
if (_e = kr(_e), At === -1 && (At = 4294967295), At = (dr) => dr, lt === 0) {
|
|
227995
227991
|
var Qt = 32 - 8 * it;
|
|
227996
|
-
At = (
|
|
227992
|
+
At = (dr) => dr << Qt >>> Qt;
|
|
227997
227993
|
}
|
|
227998
|
-
var ei = _e.includes("unsigned") ? function(
|
|
227994
|
+
var ei = _e.includes("unsigned") ? function(dr, Zr) {
|
|
227999
227995
|
return Zr >>> 0;
|
|
228000
|
-
} : function(
|
|
227996
|
+
} : function(dr, Zr) {
|
|
228001
227997
|
return Zr;
|
|
228002
227998
|
};
|
|
228003
227999
|
an(fe, { name: _e, fromWireType: At, toWireType: ei, la: 8, readValueFromPointer: Hi(_e, it, lt !== 0), ma: null });
|
|
@@ -228009,13 +228005,13 @@ function zRi() {
|
|
|
228009
228005
|
an(fe, { name: it = kr(it), fromWireType: lt, la: 8, readValueFromPointer: lt }, { La: !0 });
|
|
228010
228006
|
}, t: (fe) => {
|
|
228011
228007
|
an(fe, Xn);
|
|
228012
|
-
}, i: (fe, _e, it, lt, At, Qt, ei,
|
|
228013
|
-
it = kr(it), Qt = pe(At, Qt),
|
|
228008
|
+
}, i: (fe, _e, it, lt, At, Qt, ei, dr, Zr, Ei, ui, Oi) => {
|
|
228009
|
+
it = kr(it), Qt = pe(At, Qt), dr = pe(ei, dr), Ei = pe(Zr, Ei), Oi = pe(ui, Oi), Kr([fe], [_e], (tn) => (tn = tn[0], [new $(it, tn.fa, !1, !1, !0, tn, lt, Qt, dr, Ei, Oi)]));
|
|
228014
228010
|
}, U: (fe, _e) => {
|
|
228015
228011
|
an(fe, { name: _e = kr(_e), fromWireType: function(it) {
|
|
228016
|
-
for (var lt, At = N[it >> 2], Qt = it + 4, ei = Qt,
|
|
228017
|
-
var Zr = Qt +
|
|
228018
|
-
|
|
228012
|
+
for (var lt, At = N[it >> 2], Qt = it + 4, ei = Qt, dr = 0; dr <= At; ++dr) {
|
|
228013
|
+
var Zr = Qt + dr;
|
|
228014
|
+
dr != At && E[Zr] != 0 || (ei = ei ? cs(E, ei, Zr - ei) : "", lt === void 0 ? lt = ei : (lt += "\0", lt += ei), ei = Zr + 1);
|
|
228019
228015
|
}
|
|
228020
228016
|
return Ia(it), lt;
|
|
228021
228017
|
}, toWireType: function(it, lt) {
|
|
@@ -228023,41 +228019,41 @@ function zRi() {
|
|
|
228023
228019
|
var At, Qt = typeof lt == "string";
|
|
228024
228020
|
if (!(Qt || lt instanceof Uint8Array || lt instanceof Uint8ClampedArray || lt instanceof Int8Array)) throw new Cr("Cannot pass non-string to std::string");
|
|
228025
228021
|
if (Qt) for (var ei = At = 0; ei < lt.length; ++ei) {
|
|
228026
|
-
var
|
|
228027
|
-
127 >=
|
|
228022
|
+
var dr = lt.charCodeAt(ei);
|
|
228023
|
+
127 >= dr ? At++ : 2047 >= dr ? At += 2 : 55296 <= dr && 57343 >= dr ? (At += 4, ++ei) : At += 3;
|
|
228028
228024
|
}
|
|
228029
228025
|
else At = lt.length;
|
|
228030
|
-
if (
|
|
228026
|
+
if (dr = (ei = fu(4 + At + 1)) + 4, N[ei >> 2] = At, Qt) Sn(lt, dr, At + 1);
|
|
228031
228027
|
else if (Qt) for (Qt = 0; Qt < At; ++Qt) {
|
|
228032
228028
|
var Zr = lt.charCodeAt(Qt);
|
|
228033
|
-
if (255 < Zr) throw Ia(
|
|
228034
|
-
E[
|
|
228029
|
+
if (255 < Zr) throw Ia(dr), new Cr("String has UTF-16 code units that do not fit in 8 bits");
|
|
228030
|
+
E[dr + Qt] = Zr;
|
|
228035
228031
|
}
|
|
228036
|
-
else for (Qt = 0; Qt < At; ++Qt) E[
|
|
228032
|
+
else for (Qt = 0; Qt < At; ++Qt) E[dr + Qt] = lt[Qt];
|
|
228037
228033
|
return it !== null && it.push(Ia, ei), ei;
|
|
228038
228034
|
}, la: 8, readValueFromPointer: hi, ma(it) {
|
|
228039
228035
|
Ia(it);
|
|
228040
228036
|
} });
|
|
228041
228037
|
}, C: (fe, _e, it) => {
|
|
228042
|
-
if (it = kr(it), _e === 2) var lt = ct, At = Jn, Qt = Us, ei = (
|
|
228043
|
-
else _e === 4 && (lt = Es, At = as, Qt = Xo, ei = (
|
|
228044
|
-
an(fe, { name: it, fromWireType: (
|
|
228045
|
-
for (var Zr, Ei = N[
|
|
228046
|
-
var tn =
|
|
228038
|
+
if (it = kr(it), _e === 2) var lt = ct, At = Jn, Qt = Us, ei = (dr) => D[dr >> 1];
|
|
228039
|
+
else _e === 4 && (lt = Es, At = as, Qt = Xo, ei = (dr) => N[dr >> 2]);
|
|
228040
|
+
an(fe, { name: it, fromWireType: (dr) => {
|
|
228041
|
+
for (var Zr, Ei = N[dr >> 2], ui = dr + 4, Oi = 0; Oi <= Ei; ++Oi) {
|
|
228042
|
+
var tn = dr + 4 + Oi * _e;
|
|
228047
228043
|
Oi != Ei && ei(tn) != 0 || (ui = lt(ui, tn - ui), Zr === void 0 ? Zr = ui : (Zr += "\0", Zr += ui), ui = tn + _e);
|
|
228048
228044
|
}
|
|
228049
|
-
return Ia(
|
|
228050
|
-
}, toWireType: (
|
|
228045
|
+
return Ia(dr), Zr;
|
|
228046
|
+
}, toWireType: (dr, Zr) => {
|
|
228051
228047
|
if (typeof Zr != "string") throw new Cr(`Cannot pass non-string to C++ string type ${it}`);
|
|
228052
228048
|
var Ei = Qt(Zr), ui = fu(4 + Ei + _e);
|
|
228053
|
-
return N[ui >> 2] = Ei / _e, At(Zr, ui + 4, Ei + _e),
|
|
228054
|
-
}, la: 8, readValueFromPointer: hi, ma(
|
|
228055
|
-
Ia(
|
|
228049
|
+
return N[ui >> 2] = Ei / _e, At(Zr, ui + 4, Ei + _e), dr !== null && dr.push(Ia, ui), ui;
|
|
228050
|
+
}, la: 8, readValueFromPointer: hi, ma(dr) {
|
|
228051
|
+
Ia(dr);
|
|
228056
228052
|
} });
|
|
228057
228053
|
}, s: (fe, _e, it, lt, At, Qt) => {
|
|
228058
228054
|
Sr[fe] = { name: kr(_e), za: pe(it, lt), oa: pe(At, Qt), Ba: [] };
|
|
228059
|
-
}, j: (fe, _e, it, lt, At, Qt, ei,
|
|
228060
|
-
Sr[fe].Ba.push({ Fa: kr(_e), Ka: it, Ia: pe(lt, At), Ja: Qt, Qa: ei, Pa: pe(
|
|
228055
|
+
}, j: (fe, _e, it, lt, At, Qt, ei, dr, Zr, Ei) => {
|
|
228056
|
+
Sr[fe].Ba.push({ Fa: kr(_e), Ka: it, Ia: pe(lt, At), Ja: Qt, Qa: ei, Pa: pe(dr, Zr), Ra: Ei });
|
|
228061
228057
|
}, W: (fe, _e) => {
|
|
228062
228058
|
an(fe, { Ta: !0, name: _e = kr(_e), la: 0, fromWireType: () => {
|
|
228063
228059
|
}, toWireType: () => {
|
|
@@ -228068,9 +228064,9 @@ function zRi() {
|
|
|
228068
228064
|
var lt = Ps(fe, _e), At = lt.shift();
|
|
228069
228065
|
fe--;
|
|
228070
228066
|
var Qt = Array(fe);
|
|
228071
|
-
return _e = `methodCaller<(${lt.map((ei) => ei.name).join(", ")}) => ${At.name}>`, Yi(w(_e, (ei,
|
|
228067
|
+
return _e = `methodCaller<(${lt.map((ei) => ei.name).join(", ")}) => ${At.name}>`, Yi(w(_e, (ei, dr, Zr, Ei) => {
|
|
228072
228068
|
for (var ui = 0, Oi = 0; Oi < fe; ++Oi) Qt[Oi] = lt[Oi].readValueFromPointer(Ei + ui), ui += lt[Oi].la;
|
|
228073
|
-
return ei = it === 1 ? Vn(
|
|
228069
|
+
return ei = it === 1 ? Vn(dr, Qt) : dr.apply(ei, Qt), Xa(At, Zr, ei);
|
|
228074
228070
|
}));
|
|
228075
228071
|
}, q: (fe, _e) => (fe = Xi(fe), _e = Xi(_e), zi(fe[_e])), h: (fe) => {
|
|
228076
228072
|
9 < fe && (zr[fe + 1] += 1);
|
|
@@ -228086,8 +228082,8 @@ function zRi() {
|
|
|
228086
228082
|
}, L: (fe, _e, it, lt) => {
|
|
228087
228083
|
var At = (/* @__PURE__ */ new Date()).getFullYear(), Qt = new Date(At, 0, 1).getTimezoneOffset();
|
|
228088
228084
|
At = new Date(At, 6, 1).getTimezoneOffset(), N[fe >> 2] = 60 * Math.max(Qt, At), k[_e >> 2] = +(Qt != At), fe = (_e = (ei) => {
|
|
228089
|
-
var
|
|
228090
|
-
return `UTC${0 <= ei ? "-" : "+"}${String(Math.floor(
|
|
228085
|
+
var dr = Math.abs(ei);
|
|
228086
|
+
return `UTC${0 <= ei ? "-" : "+"}${String(Math.floor(dr / 60)).padStart(2, "0")}${String(dr % 60).padStart(2, "0")}`;
|
|
228091
228087
|
})(Qt), _e = _e(At), At < Qt ? (Sn(fe, it, 17), Sn(_e, lt, 17)) : (Sn(fe, lt, 17), Sn(_e, it, 17));
|
|
228092
228088
|
}, P: (fe) => {
|
|
228093
228089
|
var _e = E.length;
|
|
@@ -228124,13 +228120,13 @@ function zRi() {
|
|
|
228124
228120
|
return 70;
|
|
228125
228121
|
}, Q: (fe, _e, it, lt) => {
|
|
228126
228122
|
for (var At = 0, Qt = 0; Qt < it; Qt++) {
|
|
228127
|
-
var ei = N[_e >> 2],
|
|
228123
|
+
var ei = N[_e >> 2], dr = N[_e + 4 >> 2];
|
|
228128
228124
|
_e += 8;
|
|
228129
|
-
for (var Zr = 0; Zr <
|
|
228125
|
+
for (var Zr = 0; Zr < dr; Zr++) {
|
|
228130
228126
|
var Ei = E[ei + Zr], ui = zu[fe];
|
|
228131
228127
|
Ei === 0 || Ei === 10 ? ((fe === 1 ? d : f)(cs(ui)), ui.length = 0) : ui.push(Ei);
|
|
228132
228128
|
}
|
|
228133
|
-
At +=
|
|
228129
|
+
At += dr;
|
|
228134
228130
|
}
|
|
228135
228131
|
return N[lt >> 2] = At, 0;
|
|
228136
228132
|
}, H: Du };
|
|
@@ -228260,15 +228256,15 @@ function HRi() {
|
|
|
228260
228256
|
return this.fromWireType(N[fe >> 2]);
|
|
228261
228257
|
}
|
|
228262
228258
|
var ri, Ri, Cr, xi = {}, Nr = {}, ut = {}, Kr = (fe, _e, it) => {
|
|
228263
|
-
function lt(
|
|
228264
|
-
if ((
|
|
228265
|
-
for (var Zr = 0; Zr < fe.length; ++Zr) an(fe[Zr],
|
|
228259
|
+
function lt(dr) {
|
|
228260
|
+
if ((dr = it(dr)).length !== fe.length) throw new ri("Mismatched type converter count");
|
|
228261
|
+
for (var Zr = 0; Zr < fe.length; ++Zr) an(fe[Zr], dr[Zr]);
|
|
228266
228262
|
}
|
|
228267
|
-
fe.forEach((
|
|
228263
|
+
fe.forEach((dr) => ut[dr] = _e);
|
|
228268
228264
|
var At = Array(_e.length), Qt = [], ei = 0;
|
|
228269
|
-
_e.forEach((
|
|
228270
|
-
Nr.hasOwnProperty(
|
|
228271
|
-
At[Zr] = Nr[
|
|
228265
|
+
_e.forEach((dr, Zr) => {
|
|
228266
|
+
Nr.hasOwnProperty(dr) ? At[Zr] = Nr[dr] : (Qt.push(dr), xi.hasOwnProperty(dr) || (xi[dr] = []), xi[dr].push(() => {
|
|
228267
|
+
At[Zr] = Nr[dr], ++ei === Qt.length && lt(At);
|
|
228272
228268
|
}));
|
|
228273
228269
|
}), Qt.length === 0 && lt(At);
|
|
228274
228270
|
}, Ki = (fe) => {
|
|
@@ -228343,8 +228339,8 @@ function HRi() {
|
|
|
228343
228339
|
var _e = (fe = fe.replace(/[^a-zA-Z0-9_]/g, "$")).charCodeAt(0);
|
|
228344
228340
|
return 48 <= _e && 57 >= _e ? `_${fe}` : fe;
|
|
228345
228341
|
};
|
|
228346
|
-
function b(fe, _e, it, lt, At, Qt, ei,
|
|
228347
|
-
this.name = fe, this.constructor = _e, this.pa = it, this.oa = lt, this.ka = At, this.Ga = Qt, this.ua = ei, this.Ea =
|
|
228342
|
+
function b(fe, _e, it, lt, At, Qt, ei, dr) {
|
|
228343
|
+
this.name = fe, this.constructor = _e, this.pa = it, this.oa = lt, this.ka = At, this.Ga = Qt, this.ua = ei, this.Ea = dr, this.Na = [];
|
|
228348
228344
|
}
|
|
228349
228345
|
var T = (fe, _e, it) => {
|
|
228350
228346
|
for (; _e !== it; ) {
|
|
@@ -228407,8 +228403,8 @@ function HRi() {
|
|
|
228407
228403
|
if (_e.ea.ha.wa) throw new Cr(`Cannot convert argument of type ${_e.ea.ha.name} to parameter type ${this.name}`);
|
|
228408
228404
|
return T(_e.ea.ga, _e.ea.ha.fa, this.fa);
|
|
228409
228405
|
}
|
|
228410
|
-
function $(fe, _e, it, lt, At, Qt, ei,
|
|
228411
|
-
this.name = fe, this.fa = _e, this.ya = it, this.wa = lt, this.xa = At, this.Ma = Qt, this.Sa = ei, this.Ca =
|
|
228406
|
+
function $(fe, _e, it, lt, At, Qt, ei, dr, Zr, Ei, ui) {
|
|
228407
|
+
this.name = fe, this.fa = _e, this.ya = it, this.wa = lt, this.xa = At, this.Ma = Qt, this.Sa = ei, this.Ca = dr, this.za = Zr, this.Oa = Ei, this.oa = ui, At || _e.ka !== void 0 ? this.toWireType = P : (this.toWireType = lt ? C : M, this.ma = null);
|
|
228412
228408
|
}
|
|
228413
228409
|
var L, q, J = (fe, _e, it) => {
|
|
228414
228410
|
if (!a.hasOwnProperty(fe)) throw new ri("Replacing nonexistent public symbol");
|
|
@@ -228436,14 +228432,14 @@ function HRi() {
|
|
|
228436
228432
|
function Je(fe, _e, it, lt, At) {
|
|
228437
228433
|
var Qt = _e.length;
|
|
228438
228434
|
if (2 > Qt) throw new Cr("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
228439
|
-
var ei = _e[1] !== null && it !== null,
|
|
228435
|
+
var ei = _e[1] !== null && it !== null, dr = nt(_e), Zr = _e[0].name !== "void", Ei = Qt - 2, ui = Array(Ei), Oi = [], tn = [];
|
|
228440
228436
|
return w(fe, function(...gs) {
|
|
228441
228437
|
if (tn.length = 0, Oi.length = ei ? 2 : 1, Oi[0] = At, ei) {
|
|
228442
228438
|
var ln = _e[1].toWireType(tn, this);
|
|
228443
228439
|
Oi[1] = ln;
|
|
228444
228440
|
}
|
|
228445
228441
|
for (var It = 0; It < Ei; ++It) ui[It] = _e[It + 2].toWireType(tn, gs[It]), Oi.push(ui[It]);
|
|
228446
|
-
if (gs = lt(...Oi),
|
|
228442
|
+
if (gs = lt(...Oi), dr) ti(tn);
|
|
228447
228443
|
else for (It = ei ? 1 : 2; It < _e.length; It++) {
|
|
228448
228444
|
var Ft = It === 1 ? ln : ui[It - 2];
|
|
228449
228445
|
_e[It].ma !== null && _e[It].ma(Ft);
|
|
@@ -228712,21 +228708,21 @@ function HRi() {
|
|
|
228712
228708
|
delete Sr[fe];
|
|
228713
228709
|
var it = _e.za, lt = _e.oa, At = _e.Ba, Qt = At.map((ei) => ei.Ka).concat(At.map((ei) => ei.Qa));
|
|
228714
228710
|
Kr([fe], Qt, (ei) => {
|
|
228715
|
-
var
|
|
228711
|
+
var dr = {};
|
|
228716
228712
|
return At.forEach((Zr, Ei) => {
|
|
228717
228713
|
var ui = ei[Ei], Oi = Zr.Ia, tn = Zr.Ja, gs = ei[Ei + At.length], ln = Zr.Pa, It = Zr.Ra;
|
|
228718
|
-
|
|
228714
|
+
dr[Zr.Fa] = { read: (Ft) => ui.fromWireType(Oi(tn, Ft)), write: (Ft, ur) => {
|
|
228719
228715
|
var qr = [];
|
|
228720
228716
|
ln(It, Ft, gs.toWireType(qr, ur)), ti(qr);
|
|
228721
228717
|
} };
|
|
228722
228718
|
}), [{ name: _e.name, fromWireType: (Zr) => {
|
|
228723
228719
|
var Ei, ui = {};
|
|
228724
|
-
for (Ei in
|
|
228720
|
+
for (Ei in dr) ui[Ei] = dr[Ei].read(Zr);
|
|
228725
228721
|
return lt(Zr), ui;
|
|
228726
228722
|
}, toWireType: (Zr, Ei) => {
|
|
228727
|
-
for (var ui in
|
|
228723
|
+
for (var ui in dr) if (!(ui in Ei)) throw new TypeError(`Missing field: "${ui}"`);
|
|
228728
228724
|
var Oi = it();
|
|
228729
|
-
for (ui in
|
|
228725
|
+
for (ui in dr) dr[ui].write(Oi, Ei[ui]);
|
|
228730
228726
|
return Zr !== null && Zr.push(lt, Oi), Oi;
|
|
228731
228727
|
}, la: 8, readValueFromPointer: hi, ma: lt }];
|
|
228732
228728
|
});
|
|
@@ -228743,8 +228739,8 @@ function HRi() {
|
|
|
228743
228739
|
}, la: 8, readValueFromPointer: function(At) {
|
|
228744
228740
|
return this.fromWireType(E[At]);
|
|
228745
228741
|
}, ma: null });
|
|
228746
|
-
}, f: (fe, _e, it, lt, At, Qt, ei,
|
|
228747
|
-
ui = kr(ui), Qt = pe(At, Qt),
|
|
228742
|
+
}, f: (fe, _e, it, lt, At, Qt, ei, dr, Zr, Ei, ui, Oi, tn) => {
|
|
228743
|
+
ui = kr(ui), Qt = pe(At, Qt), dr &&= pe(ei, dr), Ei &&= pe(Zr, Ei), tn = pe(Oi, tn);
|
|
228748
228744
|
var gs = g(ui);
|
|
228749
228745
|
p(gs, function() {
|
|
228750
228746
|
Ke(`Cannot construct ${ui} due to unbound types`, [lt]);
|
|
@@ -228760,44 +228756,44 @@ function HRi() {
|
|
|
228760
228756
|
});
|
|
228761
228757
|
var ur = Object.create(Ft, { constructor: { value: ln } });
|
|
228762
228758
|
ln.prototype = ur;
|
|
228763
|
-
var qr, _i = new b(ui, ln, ur, tn, It, Qt,
|
|
228759
|
+
var qr, _i = new b(ui, ln, ur, tn, It, Qt, dr, Ei);
|
|
228764
228760
|
return _i.ka && ((qr = _i.ka).va ?? (qr.va = []), _i.ka.va.push(_i)), It = new $(ui, _i, !0, !1, !1), qr = new $(ui + "*", _i, !1, !1, !1), Ft = new $(ui + " const*", _i, !1, !0, !1), Wr[fe] = { pointerType: qr, Da: Ft }, J(gs, ln), [It, qr, Ft];
|
|
228765
228761
|
});
|
|
228766
228762
|
}, v: (fe, _e, it, lt, At, Qt, ei) => {
|
|
228767
|
-
var
|
|
228763
|
+
var dr = vr(it, lt);
|
|
228768
228764
|
_e = kr(_e), _e = Rr(_e), Qt = pe(At, Qt), Kr([], [fe], (Zr) => {
|
|
228769
228765
|
function Ei() {
|
|
228770
|
-
Ke(`Cannot call ${ui} due to unbound types`,
|
|
228766
|
+
Ke(`Cannot call ${ui} due to unbound types`, dr);
|
|
228771
228767
|
}
|
|
228772
228768
|
var ui = `${(Zr = Zr[0]).name}.${_e}`;
|
|
228773
228769
|
_e.startsWith("@@") && (_e = Symbol[_e.substring(2)]);
|
|
228774
228770
|
var Oi = Zr.fa.constructor;
|
|
228775
|
-
return Oi[_e] === void 0 ? (Ei.qa = it - 1, Oi[_e] = Ei) : (y(Oi, _e, ui), Oi[_e].ia[it - 1] = Ei), Kr([],
|
|
228771
|
+
return Oi[_e] === void 0 ? (Ei.qa = it - 1, Oi[_e] = Ei) : (y(Oi, _e, ui), Oi[_e].ia[it - 1] = Ei), Kr([], dr, (tn) => {
|
|
228776
228772
|
if (tn = Je(ui, [tn[0], null].concat(tn.slice(1)), null, Qt, ei), Oi[_e].ia === void 0 ? (tn.qa = it - 1, Oi[_e] = tn) : Oi[_e].ia[it - 1] = tn, Zr.fa.va) for (const gs of Zr.fa.va) gs.constructor.hasOwnProperty(_e) || (gs.constructor[_e] = tn);
|
|
228777
228773
|
return [];
|
|
228778
228774
|
}), [];
|
|
228779
228775
|
});
|
|
228780
228776
|
}, g: (fe, _e, it, lt, At, Qt) => {
|
|
228781
228777
|
var ei = vr(_e, it);
|
|
228782
|
-
At = pe(lt, At), Kr([], [fe], (
|
|
228783
|
-
var Zr = `constructor ${(
|
|
228784
|
-
if (
|
|
228785
|
-
return
|
|
228786
|
-
Ke(`Cannot construct ${
|
|
228787
|
-
}, Kr([], ei, (Ei) => (Ei.splice(1, 0, null),
|
|
228778
|
+
At = pe(lt, At), Kr([], [fe], (dr) => {
|
|
228779
|
+
var Zr = `constructor ${(dr = dr[0]).name}`;
|
|
228780
|
+
if (dr.fa.ra === void 0 && (dr.fa.ra = []), dr.fa.ra[_e - 1] !== void 0) throw new Cr(`Cannot register multiple constructors with identical number of parameters (${_e - 1}) for class '${dr.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
228781
|
+
return dr.fa.ra[_e - 1] = () => {
|
|
228782
|
+
Ke(`Cannot construct ${dr.name} due to unbound types`, ei);
|
|
228783
|
+
}, Kr([], ei, (Ei) => (Ei.splice(1, 0, null), dr.fa.ra[_e - 1] = Je(Zr, Ei, null, At, Qt), [])), [];
|
|
228788
228784
|
});
|
|
228789
|
-
}, a: (fe, _e, it, lt, At, Qt, ei,
|
|
228785
|
+
}, a: (fe, _e, it, lt, At, Qt, ei, dr) => {
|
|
228790
228786
|
var Zr = vr(it, lt);
|
|
228791
228787
|
_e = kr(_e), _e = Rr(_e), Qt = pe(At, Qt), Kr([], [fe], (Ei) => {
|
|
228792
228788
|
function ui() {
|
|
228793
228789
|
Ke(`Cannot call ${Oi} due to unbound types`, Zr);
|
|
228794
228790
|
}
|
|
228795
228791
|
var Oi = `${(Ei = Ei[0]).name}.${_e}`;
|
|
228796
|
-
_e.startsWith("@@") && (_e = Symbol[_e.substring(2)]),
|
|
228792
|
+
_e.startsWith("@@") && (_e = Symbol[_e.substring(2)]), dr && Ei.fa.Na.push(_e);
|
|
228797
228793
|
var tn = Ei.fa.pa, gs = tn[_e];
|
|
228798
228794
|
return gs === void 0 || gs.ia === void 0 && gs.className !== Ei.name && gs.qa === it - 2 ? (ui.qa = it - 2, ui.className = Ei.name, tn[_e] = ui) : (y(tn, _e, Oi), tn[_e].ia[it - 2] = ui), Kr([], Zr, (ln) => (ln = Je(Oi, ln, Ei, Qt, ei), tn[_e].ia === void 0 ? (ln.qa = it - 2, tn[_e] = ln) : tn[_e].ia[it - 2] = ln, [])), [];
|
|
228799
228795
|
});
|
|
228800
|
-
}, c: (fe, _e, it, lt, At, Qt, ei,
|
|
228796
|
+
}, c: (fe, _e, it, lt, At, Qt, ei, dr, Zr, Ei) => {
|
|
228801
228797
|
_e = kr(_e), At = pe(lt, At), Kr([], [fe], (ui) => {
|
|
228802
228798
|
var Oi = `${(ui = ui[0]).name}.${_e}`, tn = { get() {
|
|
228803
228799
|
Ke(`Cannot access ${Oi} due to unbound types`, [it, ei]);
|
|
@@ -228810,7 +228806,7 @@ function HRi() {
|
|
|
228810
228806
|
return ln.fromWireType(At(Qt, ur));
|
|
228811
228807
|
}, enumerable: !0 };
|
|
228812
228808
|
if (Zr) {
|
|
228813
|
-
Zr = pe(
|
|
228809
|
+
Zr = pe(dr, Zr);
|
|
228814
228810
|
var Ft = gs[1];
|
|
228815
228811
|
It.set = function(ur) {
|
|
228816
228812
|
var qr = li(this, ui, Oi + " setter"), _i = [];
|
|
@@ -228836,15 +228832,15 @@ function HRi() {
|
|
|
228836
228832
|
var ei = vr(_e, it);
|
|
228837
228833
|
fe = kr(fe), fe = Rr(fe), At = pe(lt, At), p(fe, function() {
|
|
228838
228834
|
Ke(`Cannot call ${fe} due to unbound types`, ei);
|
|
228839
|
-
}, _e - 1), Kr([], ei, (
|
|
228835
|
+
}, _e - 1), Kr([], ei, (dr) => (J(fe, Je(fe, [dr[0], null].concat(dr.slice(1)), null, At, Qt), _e - 1), []));
|
|
228840
228836
|
}, w: (fe, _e, it, lt, At) => {
|
|
228841
|
-
if (_e = kr(_e), At === -1 && (At = 4294967295), At = (
|
|
228837
|
+
if (_e = kr(_e), At === -1 && (At = 4294967295), At = (dr) => dr, lt === 0) {
|
|
228842
228838
|
var Qt = 32 - 8 * it;
|
|
228843
|
-
At = (
|
|
228839
|
+
At = (dr) => dr << Qt >>> Qt;
|
|
228844
228840
|
}
|
|
228845
|
-
var ei = _e.includes("unsigned") ? function(
|
|
228841
|
+
var ei = _e.includes("unsigned") ? function(dr, Zr) {
|
|
228846
228842
|
return Zr >>> 0;
|
|
228847
|
-
} : function(
|
|
228843
|
+
} : function(dr, Zr) {
|
|
228848
228844
|
return Zr;
|
|
228849
228845
|
};
|
|
228850
228846
|
an(fe, { name: _e, fromWireType: At, toWireType: ei, la: 8, readValueFromPointer: Hi(_e, it, lt !== 0), ma: null });
|
|
@@ -228856,13 +228852,13 @@ function HRi() {
|
|
|
228856
228852
|
an(fe, { name: it = kr(it), fromWireType: lt, la: 8, readValueFromPointer: lt }, { La: !0 });
|
|
228857
228853
|
}, t: (fe) => {
|
|
228858
228854
|
an(fe, Xn);
|
|
228859
|
-
}, i: (fe, _e, it, lt, At, Qt, ei,
|
|
228860
|
-
it = kr(it), Qt = pe(At, Qt),
|
|
228855
|
+
}, i: (fe, _e, it, lt, At, Qt, ei, dr, Zr, Ei, ui, Oi) => {
|
|
228856
|
+
it = kr(it), Qt = pe(At, Qt), dr = pe(ei, dr), Ei = pe(Zr, Ei), Oi = pe(ui, Oi), Kr([fe], [_e], (tn) => (tn = tn[0], [new $(it, tn.fa, !1, !1, !0, tn, lt, Qt, dr, Ei, Oi)]));
|
|
228861
228857
|
}, U: (fe, _e) => {
|
|
228862
228858
|
an(fe, { name: _e = kr(_e), fromWireType: function(it) {
|
|
228863
|
-
for (var lt, At = N[it >> 2], Qt = it + 4, ei = Qt,
|
|
228864
|
-
var Zr = Qt +
|
|
228865
|
-
|
|
228859
|
+
for (var lt, At = N[it >> 2], Qt = it + 4, ei = Qt, dr = 0; dr <= At; ++dr) {
|
|
228860
|
+
var Zr = Qt + dr;
|
|
228861
|
+
dr != At && E[Zr] != 0 || (ei = ei ? cs(E, ei, Zr - ei) : "", lt === void 0 ? lt = ei : (lt += "\0", lt += ei), ei = Zr + 1);
|
|
228866
228862
|
}
|
|
228867
228863
|
return Ia(it), lt;
|
|
228868
228864
|
}, toWireType: function(it, lt) {
|
|
@@ -228870,41 +228866,41 @@ function HRi() {
|
|
|
228870
228866
|
var At, Qt = typeof lt == "string";
|
|
228871
228867
|
if (!(Qt || lt instanceof Uint8Array || lt instanceof Uint8ClampedArray || lt instanceof Int8Array)) throw new Cr("Cannot pass non-string to std::string");
|
|
228872
228868
|
if (Qt) for (var ei = At = 0; ei < lt.length; ++ei) {
|
|
228873
|
-
var
|
|
228874
|
-
127 >=
|
|
228869
|
+
var dr = lt.charCodeAt(ei);
|
|
228870
|
+
127 >= dr ? At++ : 2047 >= dr ? At += 2 : 55296 <= dr && 57343 >= dr ? (At += 4, ++ei) : At += 3;
|
|
228875
228871
|
}
|
|
228876
228872
|
else At = lt.length;
|
|
228877
|
-
if (
|
|
228873
|
+
if (dr = (ei = fu(4 + At + 1)) + 4, N[ei >> 2] = At, Qt) Sn(lt, dr, At + 1);
|
|
228878
228874
|
else if (Qt) for (Qt = 0; Qt < At; ++Qt) {
|
|
228879
228875
|
var Zr = lt.charCodeAt(Qt);
|
|
228880
|
-
if (255 < Zr) throw Ia(
|
|
228881
|
-
E[
|
|
228876
|
+
if (255 < Zr) throw Ia(dr), new Cr("String has UTF-16 code units that do not fit in 8 bits");
|
|
228877
|
+
E[dr + Qt] = Zr;
|
|
228882
228878
|
}
|
|
228883
|
-
else for (Qt = 0; Qt < At; ++Qt) E[
|
|
228879
|
+
else for (Qt = 0; Qt < At; ++Qt) E[dr + Qt] = lt[Qt];
|
|
228884
228880
|
return it !== null && it.push(Ia, ei), ei;
|
|
228885
228881
|
}, la: 8, readValueFromPointer: hi, ma(it) {
|
|
228886
228882
|
Ia(it);
|
|
228887
228883
|
} });
|
|
228888
228884
|
}, C: (fe, _e, it) => {
|
|
228889
|
-
if (it = kr(it), _e === 2) var lt = ct, At = Jn, Qt = Us, ei = (
|
|
228890
|
-
else _e === 4 && (lt = Es, At = as, Qt = Xo, ei = (
|
|
228891
|
-
an(fe, { name: it, fromWireType: (
|
|
228892
|
-
for (var Zr, Ei = N[
|
|
228893
|
-
var tn =
|
|
228885
|
+
if (it = kr(it), _e === 2) var lt = ct, At = Jn, Qt = Us, ei = (dr) => D[dr >> 1];
|
|
228886
|
+
else _e === 4 && (lt = Es, At = as, Qt = Xo, ei = (dr) => N[dr >> 2]);
|
|
228887
|
+
an(fe, { name: it, fromWireType: (dr) => {
|
|
228888
|
+
for (var Zr, Ei = N[dr >> 2], ui = dr + 4, Oi = 0; Oi <= Ei; ++Oi) {
|
|
228889
|
+
var tn = dr + 4 + Oi * _e;
|
|
228894
228890
|
Oi != Ei && ei(tn) != 0 || (ui = lt(ui, tn - ui), Zr === void 0 ? Zr = ui : (Zr += "\0", Zr += ui), ui = tn + _e);
|
|
228895
228891
|
}
|
|
228896
|
-
return Ia(
|
|
228897
|
-
}, toWireType: (
|
|
228892
|
+
return Ia(dr), Zr;
|
|
228893
|
+
}, toWireType: (dr, Zr) => {
|
|
228898
228894
|
if (typeof Zr != "string") throw new Cr(`Cannot pass non-string to C++ string type ${it}`);
|
|
228899
228895
|
var Ei = Qt(Zr), ui = fu(4 + Ei + _e);
|
|
228900
|
-
return N[ui >> 2] = Ei / _e, At(Zr, ui + 4, Ei + _e),
|
|
228901
|
-
}, la: 8, readValueFromPointer: hi, ma(
|
|
228902
|
-
Ia(
|
|
228896
|
+
return N[ui >> 2] = Ei / _e, At(Zr, ui + 4, Ei + _e), dr !== null && dr.push(Ia, ui), ui;
|
|
228897
|
+
}, la: 8, readValueFromPointer: hi, ma(dr) {
|
|
228898
|
+
Ia(dr);
|
|
228903
228899
|
} });
|
|
228904
228900
|
}, s: (fe, _e, it, lt, At, Qt) => {
|
|
228905
228901
|
Sr[fe] = { name: kr(_e), za: pe(it, lt), oa: pe(At, Qt), Ba: [] };
|
|
228906
|
-
}, j: (fe, _e, it, lt, At, Qt, ei,
|
|
228907
|
-
Sr[fe].Ba.push({ Fa: kr(_e), Ka: it, Ia: pe(lt, At), Ja: Qt, Qa: ei, Pa: pe(
|
|
228902
|
+
}, j: (fe, _e, it, lt, At, Qt, ei, dr, Zr, Ei) => {
|
|
228903
|
+
Sr[fe].Ba.push({ Fa: kr(_e), Ka: it, Ia: pe(lt, At), Ja: Qt, Qa: ei, Pa: pe(dr, Zr), Ra: Ei });
|
|
228908
228904
|
}, W: (fe, _e) => {
|
|
228909
228905
|
an(fe, { Ta: !0, name: _e = kr(_e), la: 0, fromWireType: () => {
|
|
228910
228906
|
}, toWireType: () => {
|
|
@@ -228915,9 +228911,9 @@ function HRi() {
|
|
|
228915
228911
|
var lt = Ps(fe, _e), At = lt.shift();
|
|
228916
228912
|
fe--;
|
|
228917
228913
|
var Qt = Array(fe);
|
|
228918
|
-
return _e = `methodCaller<(${lt.map((ei) => ei.name).join(", ")}) => ${At.name}>`, Yi(w(_e, (ei,
|
|
228914
|
+
return _e = `methodCaller<(${lt.map((ei) => ei.name).join(", ")}) => ${At.name}>`, Yi(w(_e, (ei, dr, Zr, Ei) => {
|
|
228919
228915
|
for (var ui = 0, Oi = 0; Oi < fe; ++Oi) Qt[Oi] = lt[Oi].readValueFromPointer(Ei + ui), ui += lt[Oi].la;
|
|
228920
|
-
return ei = it === 1 ? Vn(
|
|
228916
|
+
return ei = it === 1 ? Vn(dr, Qt) : dr.apply(ei, Qt), Xa(At, Zr, ei);
|
|
228921
228917
|
}));
|
|
228922
228918
|
}, q: (fe, _e) => (fe = Xi(fe), _e = Xi(_e), zi(fe[_e])), h: (fe) => {
|
|
228923
228919
|
9 < fe && (zr[fe + 1] += 1);
|
|
@@ -228933,8 +228929,8 @@ function HRi() {
|
|
|
228933
228929
|
}, L: (fe, _e, it, lt) => {
|
|
228934
228930
|
var At = (/* @__PURE__ */ new Date()).getFullYear(), Qt = new Date(At, 0, 1).getTimezoneOffset();
|
|
228935
228931
|
At = new Date(At, 6, 1).getTimezoneOffset(), N[fe >> 2] = 60 * Math.max(Qt, At), k[_e >> 2] = +(Qt != At), fe = (_e = (ei) => {
|
|
228936
|
-
var
|
|
228937
|
-
return `UTC${0 <= ei ? "-" : "+"}${String(Math.floor(
|
|
228932
|
+
var dr = Math.abs(ei);
|
|
228933
|
+
return `UTC${0 <= ei ? "-" : "+"}${String(Math.floor(dr / 60)).padStart(2, "0")}${String(dr % 60).padStart(2, "0")}`;
|
|
228938
228934
|
})(Qt), _e = _e(At), At < Qt ? (Sn(fe, it, 17), Sn(_e, lt, 17)) : (Sn(fe, lt, 17), Sn(_e, it, 17));
|
|
228939
228935
|
}, P: (fe) => {
|
|
228940
228936
|
var _e = E.length;
|
|
@@ -228971,13 +228967,13 @@ function HRi() {
|
|
|
228971
228967
|
return 70;
|
|
228972
228968
|
}, Q: (fe, _e, it, lt) => {
|
|
228973
228969
|
for (var At = 0, Qt = 0; Qt < it; Qt++) {
|
|
228974
|
-
var ei = N[_e >> 2],
|
|
228970
|
+
var ei = N[_e >> 2], dr = N[_e + 4 >> 2];
|
|
228975
228971
|
_e += 8;
|
|
228976
|
-
for (var Zr = 0; Zr <
|
|
228972
|
+
for (var Zr = 0; Zr < dr; Zr++) {
|
|
228977
228973
|
var Ei = E[ei + Zr], ui = zu[fe];
|
|
228978
228974
|
Ei === 0 || Ei === 10 ? ((fe === 1 ? d : f)(cs(ui)), ui.length = 0) : ui.push(Ei);
|
|
228979
228975
|
}
|
|
228980
|
-
At +=
|
|
228976
|
+
At += dr;
|
|
228981
228977
|
}
|
|
228982
228978
|
return N[lt >> 2] = At, 0;
|
|
228983
228979
|
}, H: Du };
|
|
@@ -229611,7 +229607,7 @@ function JRi() {
|
|
|
229611
229607
|
}, Qt = (Et) => M.toHandle(fu(Et)), ei = (Et) => {
|
|
229612
229608
|
var Rt = M.toValue(Et);
|
|
229613
229609
|
ut(Rt), T(Et);
|
|
229614
|
-
},
|
|
229610
|
+
}, dr = (Et, Rt) => {
|
|
229615
229611
|
var nr = (Et = nt(Et, "_emval_take_value")).readValueFromPointer(Rt);
|
|
229616
229612
|
return M.toHandle(nr);
|
|
229617
229613
|
}, Zr = () => {
|
|
@@ -229756,7 +229752,7 @@ function JRi() {
|
|
|
229756
229752
|
super(Et), this.name = "BindingError";
|
|
229757
229753
|
}
|
|
229758
229754
|
}, P(), Rr = o.UnboundTypeError = Gr(Error, "UnboundTypeError");
|
|
229759
|
-
var ba, Fl = { a: xi, k: Br, z: Wr, w: y, t: p, M: L, r: pe, j: Je, v: Nt, e: at, m: Fn, f: ct, L: Jn, u: Ua, s: $o, l: Du, c: Ta, x: Ra, F: zu, J: wc, g: Js, y: Tl, p: Ia, b: T, n: _e, h: it, q: lt, K: At, o: Qt, d: ei, i:
|
|
229755
|
+
var ba, Fl = { a: xi, k: Br, z: Wr, w: y, t: p, M: L, r: pe, j: Je, v: Nt, e: at, m: Fn, f: ct, L: Jn, u: Ua, s: $o, l: Du, c: Ta, x: Ra, F: zu, J: wc, g: Js, y: Tl, p: Ia, b: T, n: _e, h: it, q: lt, K: At, o: Qt, d: ei, i: dr, E: Zr, G: Ei, A: Oi, I: li, H: gs, C: qr, D: _i, B: xc }, wt = ri(), Il = (Et) => (Il = wt.P)(Et), Yl = o._malloc = (Et) => (Yl = o._malloc = wt.R)(Et), Xl = o._free = (Et) => (Xl = o._free = wt.S)(Et), rh = (Et) => (rh = wt.T)(Et);
|
|
229760
229756
|
function fp() {
|
|
229761
229757
|
function Et() {
|
|
229762
229758
|
ba || (ba = !0, o.calledRun = !0, B || (te(), n(o), o.onRuntimeInitialized && o.onRuntimeInitialized(), le()));
|
|
@@ -237193,7 +237189,7 @@ let Aqt = class {
|
|
|
237193
237189
|
return this._load(2, e, t);
|
|
237194
237190
|
}
|
|
237195
237191
|
async _load(e, t, i) {
|
|
237196
|
-
if (this._streamDataRequester == null) return (await
|
|
237192
|
+
if (this._streamDataRequester == null) return (await hr(t, { responseType: kji[e] })).data;
|
|
237197
237193
|
const n = await _D(this._streamDataRequester.request(t, e, i));
|
|
237198
237194
|
if (n.ok === !0) return n.value;
|
|
237199
237195
|
throw Wo(n.error), new be("glt-loader-request-error", `Request for resource failed: ${n.error}`);
|
|
@@ -237672,7 +237668,7 @@ function oBi(r) {
|
|
|
237672
237668
|
const e = r?.resolveFile;
|
|
237673
237669
|
return e ? { busy: !1, request: async (t, i, n) => {
|
|
237674
237670
|
const s = e?.(t) ?? t;
|
|
237675
|
-
return (await
|
|
237671
|
+
return (await hr(s, { responseType: i === 2 ? "image" : i === 1 || i === 3 ? "array-buffer" : "json", signal: n?.signal, timeout: 0 })).data;
|
|
237676
237672
|
} } : null;
|
|
237677
237673
|
}
|
|
237678
237674
|
function Mq(r, e) {
|
|
@@ -238434,7 +238430,7 @@ async function zBi(r, e) {
|
|
|
238434
238430
|
async function qBi(r, e) {
|
|
238435
238431
|
const t = e?.streamDataRequester;
|
|
238436
238432
|
if (t) return VBi(r, t, e);
|
|
238437
|
-
const i = await _D(
|
|
238433
|
+
const i = await _D(hr(r, e));
|
|
238438
238434
|
if (i.ok === !0) return i.value.data;
|
|
238439
238435
|
Wo(i.error), Lqt(i.error);
|
|
238440
238436
|
}
|