@arcgis/coding-components 5.0.0-next.121 → 5.0.0-next.123
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/index.d.ts +1 -0
- package/dist/addons.js +1 -1
- package/dist/cdn/{2RJZQRH3.js → 3AJSLHAX.js} +1 -1
- package/dist/cdn/{2JWTMT3R.js → 4EJVPJ6S.js} +2 -2
- package/dist/cdn/{U7DBUMCL.js → 5OMU3HCN.js} +2 -2
- package/dist/cdn/{R6NXM7R2.js → 6GEJDWVQ.js} +2 -2
- package/dist/cdn/{SXREF3XD.js → 6W2W2MBK.js} +2 -2
- package/dist/cdn/{R7QQNTIQ.js → 7I3N5U2L.js} +1 -1
- package/dist/cdn/{KZ4B2WAC.js → BF2WMMEI.js} +1 -1
- package/dist/cdn/{GLQJORE3.js → BFVPYR32.js} +2 -2
- package/dist/cdn/{Z7DONJMA.js → CDWEXLAS.js} +2 -2
- package/dist/cdn/{754PQVNV.js → CJYF3F5E.js} +2 -2
- package/dist/cdn/{5SCKNSE3.js → D6Q3IOSD.js} +3 -3
- package/dist/cdn/{QA2DO7DS.js → EB7DKJEJ.js} +2 -2
- package/dist/cdn/{6PLRAGJ6.js → EEA4JHWB.js} +2 -2
- package/dist/cdn/{FRNWVTUQ.js → EEVKX4HF.js} +2 -2
- package/dist/cdn/{4XZ3C4U4.js → GH26ROWM.js} +2 -2
- package/dist/cdn/{RSPQCPJP.js → HUNG6LTU.js} +2 -2
- package/dist/cdn/{6L7MMQRC.js → J7IX2YOG.js} +2 -2
- package/dist/cdn/{REBFL6OD.js → JVJZQ5W4.js} +2 -2
- package/dist/cdn/{4X2F2FIC.js → JZSTD5RM.js} +2 -2
- package/dist/cdn/{66T2WBNR.js → KBFTJJ7T.js} +2 -2
- package/dist/cdn/{2NNEY7SC.js → KCEE5SGH.js} +2 -2
- package/dist/cdn/{LR5P7NBO.js → LEUNKTRS.js} +2 -2
- package/dist/cdn/{PHAZOIR4.js → LM57FLMD.js} +2 -2
- package/dist/cdn/{DHXQKLBX.js → LYSTTY6K.js} +2 -2
- package/dist/cdn/{FPRJTOMA.js → MAIR6G6S.js} +2 -2
- package/dist/cdn/{YSDUTLMU.js → OCNO5WFU.js} +1 -1
- package/dist/cdn/{TK54JFWN.js → OEKP6ARZ.js} +2 -2
- package/dist/cdn/{SOIPKOZX.js → OKWUXFG3.js} +2 -2
- package/dist/cdn/{T5YAAEXT.js → OYL5NSHY.js} +2 -2
- package/dist/cdn/{SWLMVLPO.js → P4TW7DBI.js} +2 -2
- package/dist/cdn/{UYGWQM4G.js → PENMZRLN.js} +2 -2
- package/dist/cdn/{WK5PLYLA.js → Q5KGEDBE.js} +2 -2
- package/dist/cdn/{4JDOI7X6.js → QG2GH2I4.js} +2 -2
- package/dist/cdn/{7BF2CF5S.js → QZN2YLKG.js} +2 -2
- package/dist/cdn/{725GZKJL.js → R7C4DPOP.js} +2 -2
- package/dist/cdn/{53SYKJXV.js → SB3NUP4J.js} +1 -1
- package/dist/cdn/{PAY27MKM.js → SKB3B7IU.js} +2 -2
- package/dist/cdn/SMKCMY3X.js +4 -0
- package/dist/cdn/{ANX3PAXU.js → SRA5XA6E.js} +2 -2
- package/dist/cdn/{ROEZTYWL.js → SS25D2QB.js} +1 -1
- package/dist/cdn/{XDKC7LXK.js → TK5S3TVF.js} +2 -2
- package/dist/cdn/TMTTXILL.js +8 -0
- package/dist/cdn/{U5UJWSZ3.js → U3QDEN2G.js} +2 -2
- package/dist/cdn/{QOEDA6XK.js → UX46QJ2S.js} +2 -2
- package/dist/cdn/{5MAW2K7P.js → UZZO3SUI.js} +2 -2
- package/dist/cdn/{MAP3P4WS.js → W6OFFZGA.js} +1 -1
- package/dist/cdn/{PDTQHEIL.js → XICATE5G.js} +2 -2
- package/dist/cdn/{HEMDGEWM.js → Y4EXZMWD.js} +1 -1
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +578 -585
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/arcade-contribution.js +1 -1
- package/dist/chunks/arcade-defaults.js +5 -6
- 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/colorize.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/monaco-theme.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/sql-expr-service-accessors.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utilities.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.d.ts +1 -7
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-code-editor-shell/customElement.js +1 -1
- package/dist/components/arcgis-code-viewer/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 -13
- package/dist/docs/docs.json +3 -13
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/sql-expr-monaco/sql-expr-completion.d.ts +14 -14
- package/package.json +5 -5
- package/dist/cdn/56ORFLIK.js +0 -8
- package/dist/cdn/TQ3TO4IH.js +0 -4
|
@@ -2,7 +2,7 @@ class Bb {
|
|
|
2
2
|
constructor() {
|
|
3
3
|
this.listeners = [], this.unexpectedErrorHandler = function(e) {
|
|
4
4
|
setTimeout(() => {
|
|
5
|
-
throw e.stack ?
|
|
5
|
+
throw e.stack ? Fs.isErrorNoTelemetry(e) ? new Fs(e.message + `
|
|
6
6
|
|
|
7
7
|
` + e.stack) : new Error(e.message + `
|
|
8
8
|
|
|
@@ -35,7 +35,7 @@ function Nd(t) {
|
|
|
35
35
|
name: e,
|
|
36
36
|
message: r,
|
|
37
37
|
stack: n,
|
|
38
|
-
noTelemetry:
|
|
38
|
+
noTelemetry: Fs.isErrorNoTelemetry(t)
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
return t;
|
|
@@ -49,14 +49,14 @@ class Yb extends Error {
|
|
|
49
49
|
super(k1), this.name = this.message;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
class
|
|
52
|
+
class Fs extends Error {
|
|
53
53
|
constructor(e) {
|
|
54
54
|
super(e), this.name = "CodeExpectedError";
|
|
55
55
|
}
|
|
56
56
|
static fromError(e) {
|
|
57
|
-
if (e instanceof
|
|
57
|
+
if (e instanceof Fs)
|
|
58
58
|
return e;
|
|
59
|
-
const r = new
|
|
59
|
+
const r = new Fs();
|
|
60
60
|
return r.message = e.message, r.stack = e.stack, r;
|
|
61
61
|
}
|
|
62
62
|
static isErrorNoTelemetry(e) {
|
|
@@ -440,25 +440,25 @@ var _a;
|
|
|
440
440
|
return Y instanceof Array ? Y.push(K) : Y && Y.add(K), K;
|
|
441
441
|
}
|
|
442
442
|
function v(K, Y, re = 100, te = !1, ue = !1, _e, xe) {
|
|
443
|
-
let tt, ct,
|
|
444
|
-
const
|
|
443
|
+
let tt, ct, Yr, mn = 0, rn;
|
|
444
|
+
const as = {
|
|
445
445
|
leakWarningThreshold: _e,
|
|
446
446
|
onWillAddFirstListener() {
|
|
447
447
|
tt = K((Ct) => {
|
|
448
|
-
mn++, ct = Y(ct, Ct), te && !
|
|
449
|
-
const
|
|
450
|
-
ct = void 0,
|
|
451
|
-
}, typeof re == "number" ? (clearTimeout(
|
|
448
|
+
mn++, ct = Y(ct, Ct), te && !Yr && (nn.fire(ct), ct = void 0), rn = () => {
|
|
449
|
+
const ti = ct;
|
|
450
|
+
ct = void 0, Yr = void 0, (!te || mn > 1) && nn.fire(ti), mn = 0;
|
|
451
|
+
}, typeof re == "number" ? (clearTimeout(Yr), Yr = setTimeout(rn, re)) : Yr === void 0 && (Yr = 0, queueMicrotask(rn));
|
|
452
452
|
});
|
|
453
453
|
},
|
|
454
454
|
onWillRemoveListener() {
|
|
455
|
-
ue && mn > 0 &&
|
|
455
|
+
ue && mn > 0 && rn?.();
|
|
456
456
|
},
|
|
457
457
|
onDidRemoveLastListener() {
|
|
458
|
-
|
|
458
|
+
rn = void 0, tt.dispose();
|
|
459
459
|
}
|
|
460
|
-
},
|
|
461
|
-
return xe?.add(
|
|
460
|
+
}, nn = new vr(as);
|
|
461
|
+
return xe?.add(nn), nn.event;
|
|
462
462
|
}
|
|
463
463
|
t.debounce = v;
|
|
464
464
|
function S(K, Y = 0, re) {
|
|
@@ -846,24 +846,24 @@ function o6(t, e) {
|
|
|
846
846
|
}
|
|
847
847
|
return r;
|
|
848
848
|
}
|
|
849
|
-
const
|
|
850
|
-
let D1 = !1, $1 = !1, Yf = !1, Y2 = !1, n0 = !1, Mo, Zf =
|
|
849
|
+
const Ls = "en";
|
|
850
|
+
let D1 = !1, $1 = !1, Yf = !1, Y2 = !1, n0 = !1, Mo, Zf = Ls, xd = Ls, a6, an;
|
|
851
851
|
const ln = globalThis;
|
|
852
852
|
let cr;
|
|
853
853
|
typeof ln.vscode < "u" && typeof ln.vscode.process < "u" ? cr = ln.vscode.process : typeof process < "u" && typeof process?.versions?.node == "string" && (cr = process);
|
|
854
854
|
const u6 = typeof cr?.versions?.electron == "string", l6 = u6 && cr?.type === "renderer";
|
|
855
855
|
if (typeof cr == "object") {
|
|
856
|
-
D1 = cr.platform === "win32", $1 = cr.platform === "darwin", Yf = cr.platform === "linux", Yf && cr.env.SNAP && cr.env.SNAP_REVISION, cr.env.CI || cr.env.BUILD_ARTIFACTSTAGINGDIRECTORY, Mo =
|
|
856
|
+
D1 = cr.platform === "win32", $1 = cr.platform === "darwin", Yf = cr.platform === "linux", Yf && cr.env.SNAP && cr.env.SNAP_REVISION, cr.env.CI || cr.env.BUILD_ARTIFACTSTAGINGDIRECTORY, Mo = Ls, Zf = Ls;
|
|
857
857
|
const t = cr.env.VSCODE_NLS_CONFIG;
|
|
858
858
|
if (t)
|
|
859
859
|
try {
|
|
860
860
|
const e = JSON.parse(t);
|
|
861
|
-
Mo = e.userLocale, xd = e.osLocale, Zf = e.resolvedLanguage ||
|
|
861
|
+
Mo = e.userLocale, xd = e.osLocale, Zf = e.resolvedLanguage || Ls, a6 = e.languagePack?.translationsConfigFile;
|
|
862
862
|
} catch {
|
|
863
863
|
}
|
|
864
864
|
Y2 = !0;
|
|
865
|
-
} else typeof navigator == "object" && !l6 ? (an = navigator.userAgent, D1 = an.indexOf("Windows") >= 0, $1 = an.indexOf("Macintosh") >= 0, (an.indexOf("Macintosh") >= 0 || an.indexOf("iPad") >= 0 || an.indexOf("iPhone") >= 0) && navigator.maxTouchPoints && navigator.maxTouchPoints > 0, Yf = an.indexOf("Linux") >= 0, an?.indexOf("Mobi") >= 0, n0 = !0, Zf = H2() ||
|
|
866
|
-
const Pi = D1, c6 = $1, f6 = Y2, h6 = n0, d6 = n0 && typeof ln.importScripts == "function", m6 = d6 ? ln.origin : void 0,
|
|
865
|
+
} else typeof navigator == "object" && !l6 ? (an = navigator.userAgent, D1 = an.indexOf("Windows") >= 0, $1 = an.indexOf("Macintosh") >= 0, (an.indexOf("Macintosh") >= 0 || an.indexOf("iPad") >= 0 || an.indexOf("iPhone") >= 0) && navigator.maxTouchPoints && navigator.maxTouchPoints > 0, Yf = an.indexOf("Linux") >= 0, an?.indexOf("Mobi") >= 0, n0 = !0, Zf = H2() || Ls, Mo = navigator.language.toLowerCase(), xd = Mo) : console.error("Unable to resolve platform.");
|
|
866
|
+
const Pi = D1, c6 = $1, f6 = Y2, h6 = n0, d6 = n0 && typeof ln.importScripts == "function", m6 = d6 ? ln.origin : void 0, tn = an, p6 = typeof ln.postMessage == "function" && !ln.importScripts;
|
|
867
867
|
(() => {
|
|
868
868
|
if (p6) {
|
|
869
869
|
const t = [];
|
|
@@ -888,11 +888,11 @@ const Pi = D1, c6 = $1, f6 = Y2, h6 = n0, d6 = n0 && typeof ln.importScripts ==
|
|
|
888
888
|
}
|
|
889
889
|
return (t) => setTimeout(t);
|
|
890
890
|
})();
|
|
891
|
-
const g6 = !!(
|
|
892
|
-
|
|
893
|
-
!g6 &&
|
|
894
|
-
|
|
895
|
-
|
|
891
|
+
const g6 = !!(tn && tn.indexOf("Chrome") >= 0);
|
|
892
|
+
tn && tn.indexOf("Firefox") >= 0;
|
|
893
|
+
!g6 && tn && tn.indexOf("Safari") >= 0;
|
|
894
|
+
tn && tn.indexOf("Edg/") >= 0;
|
|
895
|
+
tn && tn.indexOf("Android") >= 0;
|
|
896
896
|
function _6(t) {
|
|
897
897
|
return t;
|
|
898
898
|
}
|
|
@@ -1046,7 +1046,7 @@ class Mn {
|
|
|
1046
1046
|
return new Set(this.confusableDictionary.keys());
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
|
-
class
|
|
1049
|
+
class Qn {
|
|
1050
1050
|
static getRawData() {
|
|
1051
1051
|
return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]");
|
|
1052
1052
|
}
|
|
@@ -1054,20 +1054,20 @@ class Kn {
|
|
|
1054
1054
|
this._data = void 0;
|
|
1055
1055
|
}
|
|
1056
1056
|
static getData() {
|
|
1057
|
-
return this._data || (this._data = new Set(
|
|
1057
|
+
return this._data || (this._data = new Set(Qn.getRawData())), this._data;
|
|
1058
1058
|
}
|
|
1059
1059
|
static isInvisibleCharacter(e) {
|
|
1060
|
-
return
|
|
1060
|
+
return Qn.getData().has(e);
|
|
1061
1061
|
}
|
|
1062
1062
|
static get codePoints() {
|
|
1063
|
-
return
|
|
1063
|
+
return Qn.getData();
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
|
-
let
|
|
1066
|
+
let Rs;
|
|
1067
1067
|
const Xf = globalThis.vscode;
|
|
1068
1068
|
if (typeof Xf < "u" && typeof Xf.process < "u") {
|
|
1069
1069
|
const t = Xf.process;
|
|
1070
|
-
|
|
1070
|
+
Rs = {
|
|
1071
1071
|
get platform() {
|
|
1072
1072
|
return t.platform;
|
|
1073
1073
|
},
|
|
@@ -1081,7 +1081,7 @@ if (typeof Xf < "u" && typeof Xf.process < "u") {
|
|
|
1081
1081
|
return t.cwd();
|
|
1082
1082
|
}
|
|
1083
1083
|
};
|
|
1084
|
-
} else typeof process < "u" && typeof process?.versions?.node == "string" ?
|
|
1084
|
+
} else typeof process < "u" && typeof process?.versions?.node == "string" ? Rs = {
|
|
1085
1085
|
get platform() {
|
|
1086
1086
|
return process.platform;
|
|
1087
1087
|
},
|
|
@@ -1094,7 +1094,7 @@ if (typeof Xf < "u" && typeof Xf.process < "u") {
|
|
|
1094
1094
|
cwd() {
|
|
1095
1095
|
return process.env.VSCODE_CWD || process.cwd();
|
|
1096
1096
|
}
|
|
1097
|
-
} :
|
|
1097
|
+
} : Rs = {
|
|
1098
1098
|
// Supported
|
|
1099
1099
|
get platform() {
|
|
1100
1100
|
return Pi ? "win32" : c6 ? "darwin" : "linux";
|
|
@@ -1109,7 +1109,7 @@ if (typeof Xf < "u" && typeof Xf.process < "u") {
|
|
|
1109
1109
|
return "/";
|
|
1110
1110
|
}
|
|
1111
1111
|
};
|
|
1112
|
-
const ba =
|
|
1112
|
+
const ba = Rs.cwd, A6 = Rs.env, L6 = Rs.platform, M6 = 65, O6 = 97, C6 = 90, R6 = 122, Cn = 46, Ot = 47, tr = 92, yn = 58, I6 = 63;
|
|
1113
1113
|
class X2 extends Error {
|
|
1114
1114
|
constructor(e, r, n) {
|
|
1115
1115
|
let s;
|
|
@@ -1685,13 +1685,13 @@ function G6(t, e) {
|
|
|
1685
1685
|
case "https":
|
|
1686
1686
|
case "http":
|
|
1687
1687
|
case "file":
|
|
1688
|
-
e ? e[0] !==
|
|
1688
|
+
e ? e[0] !== Ur && (e = Ur + e) : e = Ur;
|
|
1689
1689
|
break;
|
|
1690
1690
|
}
|
|
1691
1691
|
return e;
|
|
1692
1692
|
}
|
|
1693
|
-
const ze = "",
|
|
1694
|
-
let
|
|
1693
|
+
const ze = "", Ur = "/", B6 = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;
|
|
1694
|
+
let Kr = class Ho {
|
|
1695
1695
|
static isUri(e) {
|
|
1696
1696
|
return e instanceof Ho ? !0 : e ? typeof e.authority == "string" && typeof e.fragment == "string" && typeof e.path == "string" && typeof e.query == "string" && typeof e.scheme == "string" && typeof e.fsPath == "string" && typeof e.with == "function" && typeof e.toString == "function" : !1;
|
|
1697
1697
|
}
|
|
@@ -1734,7 +1734,7 @@ let Qr = class Ho {
|
|
|
1734
1734
|
if (!e)
|
|
1735
1735
|
return this;
|
|
1736
1736
|
let { scheme: r, authority: n, path: s, query: i, fragment: u } = e;
|
|
1737
|
-
return r === void 0 ? r = this.scheme : r === null && (r = ze), n === void 0 ? n = this.authority : n === null && (n = ze), s === void 0 ? s = this.path : s === null && (s = ze), i === void 0 ? i = this.query : i === null && (i = ze), u === void 0 ? u = this.fragment : u === null && (u = ze), r === this.scheme && n === this.authority && s === this.path && i === this.query && u === this.fragment ? this : new
|
|
1737
|
+
return r === void 0 ? r = this.scheme : r === null && (r = ze), n === void 0 ? n = this.authority : n === null && (n = ze), s === void 0 ? s = this.path : s === null && (s = ze), i === void 0 ? i = this.query : i === null && (i = ze), u === void 0 ? u = this.fragment : u === null && (u = ze), r === this.scheme && n === this.authority && s === this.path && i === this.query && u === this.fragment ? this : new fs(r, n, s, i, u);
|
|
1738
1738
|
}
|
|
1739
1739
|
// ---- parse & validate ------------------------
|
|
1740
1740
|
/**
|
|
@@ -1745,7 +1745,7 @@ let Qr = class Ho {
|
|
|
1745
1745
|
*/
|
|
1746
1746
|
static parse(e, r = !1) {
|
|
1747
1747
|
const n = B6.exec(e);
|
|
1748
|
-
return n ? new
|
|
1748
|
+
return n ? new fs(n[2] || ze, Oo(n[4] || ze), Oo(n[5] || ze), Oo(n[7] || ze), Oo(n[9] || ze), r) : new fs(ze, ze, ze, ze, ze);
|
|
1749
1749
|
}
|
|
1750
1750
|
/**
|
|
1751
1751
|
* Creates a new URI from a file system path, e.g. `c:\my\files`,
|
|
@@ -1770,11 +1770,11 @@ let Qr = class Ho {
|
|
|
1770
1770
|
*/
|
|
1771
1771
|
static file(e) {
|
|
1772
1772
|
let r = ze;
|
|
1773
|
-
if (Pi && (e = e.replace(/\\/g,
|
|
1774
|
-
const n = e.indexOf(
|
|
1775
|
-
n === -1 ? (r = e.substring(2), e =
|
|
1773
|
+
if (Pi && (e = e.replace(/\\/g, Ur)), e[0] === Ur && e[1] === Ur) {
|
|
1774
|
+
const n = e.indexOf(Ur, 2);
|
|
1775
|
+
n === -1 ? (r = e.substring(2), e = Ur) : (r = e.substring(2, n), e = e.substring(n) || Ur);
|
|
1776
1776
|
}
|
|
1777
|
-
return new
|
|
1777
|
+
return new fs("file", r, e, ze, ze);
|
|
1778
1778
|
}
|
|
1779
1779
|
/**
|
|
1780
1780
|
* Creates new URI from uri components.
|
|
@@ -1784,7 +1784,7 @@ let Qr = class Ho {
|
|
|
1784
1784
|
* user input, command arguments etc
|
|
1785
1785
|
*/
|
|
1786
1786
|
static from(e, r) {
|
|
1787
|
-
return new
|
|
1787
|
+
return new fs(e.scheme, e.authority, e.path, e.query, e.fragment, r);
|
|
1788
1788
|
}
|
|
1789
1789
|
/**
|
|
1790
1790
|
* Join a URI path with path fragments and normalizes the resulting path.
|
|
@@ -1822,14 +1822,14 @@ let Qr = class Ho {
|
|
|
1822
1822
|
if (e instanceof Ho)
|
|
1823
1823
|
return e;
|
|
1824
1824
|
{
|
|
1825
|
-
const r = new
|
|
1825
|
+
const r = new fs(e);
|
|
1826
1826
|
return r._formatted = e.external ?? null, r._fsPath = e._sep === Q2 ? e.fsPath ?? null : null, r;
|
|
1827
1827
|
}
|
|
1828
1828
|
} else return e;
|
|
1829
1829
|
}
|
|
1830
1830
|
};
|
|
1831
1831
|
const Q2 = Pi ? 1 : void 0;
|
|
1832
|
-
class
|
|
1832
|
+
class fs extends Kr {
|
|
1833
1833
|
constructor() {
|
|
1834
1834
|
super(...arguments), this._formatted = null, this._fsPath = null;
|
|
1835
1835
|
}
|
|
@@ -1899,7 +1899,7 @@ function z1(t, e) {
|
|
|
1899
1899
|
function V1(t, e) {
|
|
1900
1900
|
const r = e ? q6 : Pd;
|
|
1901
1901
|
let n = "", { scheme: s, authority: i, path: u, query: l, fragment: c } = t;
|
|
1902
|
-
if (s && (n += s, n += ":"), (i || s === "file") && (n +=
|
|
1902
|
+
if (s && (n += s, n += ":"), (i || s === "file") && (n += Ur, n += Ur), i) {
|
|
1903
1903
|
let m = i.indexOf("@");
|
|
1904
1904
|
if (m !== -1) {
|
|
1905
1905
|
const _ = i.substr(0, m);
|
|
@@ -1957,7 +1957,7 @@ class Y6 {
|
|
|
1957
1957
|
n && n.indexOf(":") !== -1 && n.indexOf("[") === -1 && (n = `[${n}]`);
|
|
1958
1958
|
const s = this._ports[r], i = this._connectionTokens[r];
|
|
1959
1959
|
let u = `path=${encodeURIComponent(e.path)}`;
|
|
1960
|
-
return typeof i == "string" && (u += `&${H6}=${encodeURIComponent(i)}`),
|
|
1960
|
+
return typeof i == "string" && (u += `&${H6}=${encodeURIComponent(i)}`), Kr.from({
|
|
1961
1961
|
scheme: h6 ? this._preferredWebSchema : On.vscodeRemoteResource,
|
|
1962
1962
|
authority: `${n}:${s}`,
|
|
1963
1963
|
path: this._remoteResourcesPath,
|
|
@@ -2004,16 +2004,16 @@ class va {
|
|
|
2004
2004
|
);
|
|
2005
2005
|
}
|
|
2006
2006
|
toUri(e, r) {
|
|
2007
|
-
if (
|
|
2007
|
+
if (Kr.isUri(e))
|
|
2008
2008
|
return e;
|
|
2009
2009
|
if (globalThis._VSCODE_FILE_ROOT) {
|
|
2010
2010
|
const n = globalThis._VSCODE_FILE_ROOT;
|
|
2011
2011
|
if (/^\w[\w\d+.-]*:\/\//.test(n))
|
|
2012
|
-
return
|
|
2012
|
+
return Kr.joinPath(Kr.parse(n, !0), e);
|
|
2013
2013
|
const s = F6(n, e);
|
|
2014
|
-
return
|
|
2014
|
+
return Kr.file(s);
|
|
2015
2015
|
}
|
|
2016
|
-
return
|
|
2016
|
+
return Kr.parse(r.toUrl(e));
|
|
2017
2017
|
}
|
|
2018
2018
|
}
|
|
2019
2019
|
const t_ = new va();
|
|
@@ -2028,7 +2028,7 @@ var Ld;
|
|
|
2028
2028
|
const r = "vscode-coi";
|
|
2029
2029
|
function n(i) {
|
|
2030
2030
|
let u;
|
|
2031
|
-
typeof i == "string" ? u = new URL(i).searchParams : i instanceof URL ? u = i.searchParams :
|
|
2031
|
+
typeof i == "string" ? u = new URL(i).searchParams : i instanceof URL ? u = i.searchParams : Kr.isUri(i) && (u = new URL(i.toString(!0)).searchParams);
|
|
2032
2032
|
const l = u?.get(r);
|
|
2033
2033
|
if (l)
|
|
2034
2034
|
return e.get(l);
|
|
@@ -2282,13 +2282,13 @@ class Cd {
|
|
|
2282
2282
|
function i5(t, e, r) {
|
|
2283
2283
|
return new An(new Cd(t), new Cd(e)).ComputeDiff(r).changes;
|
|
2284
2284
|
}
|
|
2285
|
-
class
|
|
2285
|
+
class hs {
|
|
2286
2286
|
static Assert(e, r) {
|
|
2287
2287
|
if (!e)
|
|
2288
2288
|
throw new Error(r);
|
|
2289
2289
|
}
|
|
2290
2290
|
}
|
|
2291
|
-
class
|
|
2291
|
+
class ds {
|
|
2292
2292
|
/**
|
|
2293
2293
|
* Copies a range of elements from an Array starting at the specified source index and pastes
|
|
2294
2294
|
* them to another Array starting at the specified destination index. The length and the indexes
|
|
@@ -2427,11 +2427,11 @@ class An {
|
|
|
2427
2427
|
r--, s--;
|
|
2428
2428
|
if (e > r || n > s) {
|
|
2429
2429
|
let y;
|
|
2430
|
-
return n <= s ? (
|
|
2430
|
+
return n <= s ? (hs.Assert(e === r + 1, "originalStart should only be one more than originalEnd"), y = [
|
|
2431
2431
|
new En(e, 0, n, s - n + 1)
|
|
2432
|
-
]) : e <= r ? (
|
|
2432
|
+
]) : e <= r ? (hs.Assert(n === s + 1, "modifiedStart should only be one more than modifiedEnd"), y = [
|
|
2433
2433
|
new En(e, r - e + 1, n, 0)
|
|
2434
|
-
]) : (
|
|
2434
|
+
]) : (hs.Assert(e === r + 1, "originalStart should only be one more than originalEnd"), hs.Assert(n === s + 1, "modifiedStart should only be one more than modifiedEnd"), y = []), y;
|
|
2435
2435
|
}
|
|
2436
2436
|
const u = [0], l = [0], c = this.ComputeRecursionPoint(e, r, n, s, u, l, i), m = u[0], _ = l[0];
|
|
2437
2437
|
if (c !== null)
|
|
@@ -2520,7 +2520,7 @@ class An {
|
|
|
2520
2520
|
}
|
|
2521
2521
|
if (ee <= 1447) {
|
|
2522
2522
|
let ce = new Int32Array(y - _ + 2);
|
|
2523
|
-
ce[0] = W - _ + 1,
|
|
2523
|
+
ce[0] = W - _ + 1, ds.Copy2(D, _, ce, 1, y - _ + 1), this.m_forwardHistory.push(ce), ce = new Int32Array(S - v + 2), ce[0] = j - v + 1, ds.Copy2(z, v, ce, 1, S - v + 1), this.m_reverseHistory.push(ce);
|
|
2524
2524
|
}
|
|
2525
2525
|
}
|
|
2526
2526
|
return this.WALKTRACE(W, _, y, U, j, v, S, F, D, z, c, r, i, m, s, u, Z, l);
|
|
@@ -2648,10 +2648,10 @@ class An {
|
|
|
2648
2648
|
return r.length > 0 ? r : e;
|
|
2649
2649
|
if (this.ChangesOverlap(e[e.length - 1], r[0], n)) {
|
|
2650
2650
|
const s = new Array(e.length + r.length - 1);
|
|
2651
|
-
return
|
|
2651
|
+
return ds.Copy(e, 0, s, 0, e.length - 1), s[e.length - 1] = n[0], ds.Copy(r, 1, s, e.length, r.length - 1), s;
|
|
2652
2652
|
} else {
|
|
2653
2653
|
const s = new Array(e.length + r.length);
|
|
2654
|
-
return
|
|
2654
|
+
return ds.Copy(e, 0, s, 0, e.length), ds.Copy(r, 0, s, e.length, r.length), s;
|
|
2655
2655
|
}
|
|
2656
2656
|
}
|
|
2657
2657
|
/**
|
|
@@ -2663,7 +2663,7 @@ class An {
|
|
|
2663
2663
|
* @returns True if the two changes overlap
|
|
2664
2664
|
*/
|
|
2665
2665
|
ChangesOverlap(e, r, n) {
|
|
2666
|
-
if (
|
|
2666
|
+
if (hs.Assert(e.originalStart <= r.originalStart, "Left change is not less than or equal to right change"), hs.Assert(e.modifiedStart <= r.modifiedStart, "Left change is not less than or equal to right change"), e.originalStart + e.originalLength >= r.originalStart || e.modifiedStart + e.modifiedLength >= r.modifiedStart) {
|
|
2667
2667
|
const s = e.originalStart;
|
|
2668
2668
|
let i = e.originalLength;
|
|
2669
2669
|
const u = e.modifiedStart;
|
|
@@ -2697,7 +2697,7 @@ class An {
|
|
|
2697
2697
|
}
|
|
2698
2698
|
}
|
|
2699
2699
|
}
|
|
2700
|
-
let it = class
|
|
2700
|
+
let it = class Hn {
|
|
2701
2701
|
constructor(e, r) {
|
|
2702
2702
|
this.lineNumber = e, this.column = r;
|
|
2703
2703
|
}
|
|
@@ -2708,7 +2708,7 @@ let it = class Yn {
|
|
|
2708
2708
|
* @param newColumn new column
|
|
2709
2709
|
*/
|
|
2710
2710
|
with(e = this.lineNumber, r = this.column) {
|
|
2711
|
-
return e === this.lineNumber && r === this.column ? this : new
|
|
2711
|
+
return e === this.lineNumber && r === this.column ? this : new Hn(e, r);
|
|
2712
2712
|
}
|
|
2713
2713
|
/**
|
|
2714
2714
|
* Derive a new position from this position.
|
|
@@ -2723,7 +2723,7 @@ let it = class Yn {
|
|
|
2723
2723
|
* Test if this position equals other position
|
|
2724
2724
|
*/
|
|
2725
2725
|
equals(e) {
|
|
2726
|
-
return
|
|
2726
|
+
return Hn.equals(this, e);
|
|
2727
2727
|
}
|
|
2728
2728
|
/**
|
|
2729
2729
|
* Test if position `a` equals position `b`
|
|
@@ -2736,7 +2736,7 @@ let it = class Yn {
|
|
|
2736
2736
|
* If the two positions are equal, the result will be false.
|
|
2737
2737
|
*/
|
|
2738
2738
|
isBefore(e) {
|
|
2739
|
-
return
|
|
2739
|
+
return Hn.isBefore(this, e);
|
|
2740
2740
|
}
|
|
2741
2741
|
/**
|
|
2742
2742
|
* Test if position `a` is before position `b`.
|
|
@@ -2750,7 +2750,7 @@ let it = class Yn {
|
|
|
2750
2750
|
* If the two positions are equal, the result will be true.
|
|
2751
2751
|
*/
|
|
2752
2752
|
isBeforeOrEqual(e) {
|
|
2753
|
-
return
|
|
2753
|
+
return Hn.isBeforeOrEqual(this, e);
|
|
2754
2754
|
}
|
|
2755
2755
|
/**
|
|
2756
2756
|
* Test if position `a` is before position `b`.
|
|
@@ -2774,7 +2774,7 @@ let it = class Yn {
|
|
|
2774
2774
|
* Clone this position.
|
|
2775
2775
|
*/
|
|
2776
2776
|
clone() {
|
|
2777
|
-
return new
|
|
2777
|
+
return new Hn(this.lineNumber, this.column);
|
|
2778
2778
|
}
|
|
2779
2779
|
/**
|
|
2780
2780
|
* Convert to a human-readable representation.
|
|
@@ -2787,7 +2787,7 @@ let it = class Yn {
|
|
|
2787
2787
|
* Create a `Position` from an `IPosition`.
|
|
2788
2788
|
*/
|
|
2789
2789
|
static lift(e) {
|
|
2790
|
-
return new
|
|
2790
|
+
return new Hn(e.lineNumber, e.column);
|
|
2791
2791
|
}
|
|
2792
2792
|
/**
|
|
2793
2793
|
* Test if `obj` is an `IPosition`.
|
|
@@ -3041,7 +3041,7 @@ let it = class Yn {
|
|
|
3041
3041
|
function Id(t) {
|
|
3042
3042
|
return t < 0 ? 0 : t > 255 ? 255 : t | 0;
|
|
3043
3043
|
}
|
|
3044
|
-
function
|
|
3044
|
+
function ms(t) {
|
|
3045
3045
|
return t < 0 ? 0 : t > 4294967295 ? 4294967295 : t | 0;
|
|
3046
3046
|
}
|
|
3047
3047
|
class s0 {
|
|
@@ -5002,7 +5002,7 @@ function S5() {
|
|
|
5002
5002
|
SelectionDirection: H1,
|
|
5003
5003
|
MarkerSeverity: B1,
|
|
5004
5004
|
MarkerTag: q1,
|
|
5005
|
-
Uri:
|
|
5005
|
+
Uri: Kr,
|
|
5006
5006
|
Token: w5
|
|
5007
5007
|
};
|
|
5008
5008
|
}
|
|
@@ -5554,7 +5554,7 @@ class jm {
|
|
|
5554
5554
|
return "allNonBasicAscii";
|
|
5555
5555
|
const e = /* @__PURE__ */ new Set();
|
|
5556
5556
|
if (this.options.invisibleCharacters)
|
|
5557
|
-
for (const r of
|
|
5557
|
+
for (const r of Qn.codePoints)
|
|
5558
5558
|
Wm(String.fromCodePoint(r)) || e.add(r);
|
|
5559
5559
|
if (this.options.ambiguousCharacters)
|
|
5560
5560
|
for (const r of this.ambiguousCharacters.getConfusableCodePoints())
|
|
@@ -5573,12 +5573,12 @@ class jm {
|
|
|
5573
5573
|
if (r)
|
|
5574
5574
|
for (const u of r) {
|
|
5575
5575
|
const l = u.codePointAt(0), c = P6(u);
|
|
5576
|
-
s = s || c, !c && !this.ambiguousCharacters.isAmbiguous(l) && !
|
|
5576
|
+
s = s || c, !c && !this.ambiguousCharacters.isAmbiguous(l) && !Qn.isInvisibleCharacter(l) && (i = !0);
|
|
5577
5577
|
}
|
|
5578
5578
|
return (
|
|
5579
5579
|
/* Don't allow mixing weird looking characters with ASCII */
|
|
5580
5580
|
!s && /* Is there an obviously weird looking character? */
|
|
5581
|
-
i ? 0 : this.options.invisibleCharacters && !Wm(e) &&
|
|
5581
|
+
i ? 0 : this.options.invisibleCharacters && !Wm(e) && Qn.isInvisibleCharacter(n) ? 2 : this.options.ambiguousCharacters && this.ambiguousCharacters.isAmbiguous(n) ? 3 : 0
|
|
5582
5582
|
);
|
|
5583
5583
|
}
|
|
5584
5584
|
}
|
|
@@ -5705,7 +5705,7 @@ class Ne {
|
|
|
5705
5705
|
e(r);
|
|
5706
5706
|
}
|
|
5707
5707
|
}
|
|
5708
|
-
function
|
|
5708
|
+
function Us(t, e) {
|
|
5709
5709
|
const r = Ai(t, e);
|
|
5710
5710
|
return r === -1 ? void 0 : t[r];
|
|
5711
5711
|
}
|
|
@@ -5763,9 +5763,9 @@ class be {
|
|
|
5763
5763
|
static joinMany(e) {
|
|
5764
5764
|
if (e.length === 0)
|
|
5765
5765
|
return [];
|
|
5766
|
-
let r = new
|
|
5766
|
+
let r = new en(e[0].slice());
|
|
5767
5767
|
for (let n = 1; n < e.length; n++)
|
|
5768
|
-
r = r.getUnion(new
|
|
5768
|
+
r = r.getUnion(new en(e[n].slice()));
|
|
5769
5769
|
return r.ranges;
|
|
5770
5770
|
}
|
|
5771
5771
|
static join(e) {
|
|
@@ -5880,7 +5880,7 @@ class be {
|
|
|
5880
5880
|
return new Ne(this.startLineNumber - 1, this.endLineNumberExclusive - 1);
|
|
5881
5881
|
}
|
|
5882
5882
|
}
|
|
5883
|
-
class
|
|
5883
|
+
class en {
|
|
5884
5884
|
constructor(e = []) {
|
|
5885
5885
|
this._normalizedRanges = e;
|
|
5886
5886
|
}
|
|
@@ -5902,11 +5902,11 @@ class Kr {
|
|
|
5902
5902
|
}
|
|
5903
5903
|
}
|
|
5904
5904
|
contains(e) {
|
|
5905
|
-
const r =
|
|
5905
|
+
const r = Us(this._normalizedRanges, (n) => n.startLineNumber <= e);
|
|
5906
5906
|
return !!r && r.endLineNumberExclusive > e;
|
|
5907
5907
|
}
|
|
5908
5908
|
intersects(e) {
|
|
5909
|
-
const r =
|
|
5909
|
+
const r = Us(this._normalizedRanges, (n) => n.startLineNumber < e.endLineNumberExclusive);
|
|
5910
5910
|
return !!r && r.endLineNumberExclusive > e.startLineNumber;
|
|
5911
5911
|
}
|
|
5912
5912
|
getUnion(e) {
|
|
@@ -5924,7 +5924,7 @@ class Kr {
|
|
|
5924
5924
|
} else n < this._normalizedRanges.length ? (u = this._normalizedRanges[n], n++) : (u = e._normalizedRanges[s], s++);
|
|
5925
5925
|
i === null ? i = u : i.endLineNumberExclusive >= u.startLineNumber ? i = new be(i.startLineNumber, Math.max(i.endLineNumberExclusive, u.endLineNumberExclusive)) : (r.push(i), i = u);
|
|
5926
5926
|
}
|
|
5927
|
-
return i !== null && r.push(i), new
|
|
5927
|
+
return i !== null && r.push(i), new en(r);
|
|
5928
5928
|
}
|
|
5929
5929
|
/**
|
|
5930
5930
|
* Subtracts all ranges in this set from `range` and returns the result.
|
|
@@ -5932,14 +5932,14 @@ class Kr {
|
|
|
5932
5932
|
subtractFrom(e) {
|
|
5933
5933
|
const r = Y1(this._normalizedRanges, (u) => u.endLineNumberExclusive >= e.startLineNumber), n = Ai(this._normalizedRanges, (u) => u.startLineNumber <= e.endLineNumberExclusive) + 1;
|
|
5934
5934
|
if (r === n)
|
|
5935
|
-
return new
|
|
5935
|
+
return new en([e]);
|
|
5936
5936
|
const s = [];
|
|
5937
5937
|
let i = e.startLineNumber;
|
|
5938
5938
|
for (let u = r; u < n; u++) {
|
|
5939
5939
|
const l = this._normalizedRanges[u];
|
|
5940
5940
|
l.startLineNumber > i && s.push(new be(i, l.startLineNumber)), i = l.endLineNumberExclusive;
|
|
5941
5941
|
}
|
|
5942
|
-
return i < e.endLineNumberExclusive && s.push(new be(i, e.endLineNumberExclusive)), new
|
|
5942
|
+
return i < e.endLineNumberExclusive && s.push(new be(i, e.endLineNumberExclusive)), new en(s);
|
|
5943
5943
|
}
|
|
5944
5944
|
toString() {
|
|
5945
5945
|
return this._normalizedRanges.map((e) => e.toString()).join(", ");
|
|
@@ -5951,28 +5951,28 @@ class Kr {
|
|
|
5951
5951
|
const i = this._normalizedRanges[n], u = e._normalizedRanges[s], l = i.intersect(u);
|
|
5952
5952
|
l && !l.isEmpty && r.push(l), i.endLineNumberExclusive < u.endLineNumberExclusive ? n++ : s++;
|
|
5953
5953
|
}
|
|
5954
|
-
return new
|
|
5954
|
+
return new en(r);
|
|
5955
5955
|
}
|
|
5956
5956
|
getWithDelta(e) {
|
|
5957
|
-
return new
|
|
5957
|
+
return new en(this._normalizedRanges.map((r) => r.delta(e)));
|
|
5958
5958
|
}
|
|
5959
5959
|
}
|
|
5960
|
-
class
|
|
5960
|
+
class Es {
|
|
5961
5961
|
static {
|
|
5962
|
-
this.zero = new
|
|
5962
|
+
this.zero = new Es(0, 0);
|
|
5963
5963
|
}
|
|
5964
5964
|
static betweenPositions(e, r) {
|
|
5965
|
-
return e.lineNumber === r.lineNumber ? new
|
|
5965
|
+
return e.lineNumber === r.lineNumber ? new Es(0, r.column - e.column) : new Es(r.lineNumber - e.lineNumber, r.column - 1);
|
|
5966
5966
|
}
|
|
5967
5967
|
static ofRange(e) {
|
|
5968
|
-
return
|
|
5968
|
+
return Es.betweenPositions(e.getStartPosition(), e.getEndPosition());
|
|
5969
5969
|
}
|
|
5970
5970
|
static ofText(e) {
|
|
5971
5971
|
let r = 0, n = 0;
|
|
5972
5972
|
for (const s of e)
|
|
5973
5973
|
s === `
|
|
5974
5974
|
` ? (r++, n = 0) : n++;
|
|
5975
|
-
return new
|
|
5975
|
+
return new Es(r, n);
|
|
5976
5976
|
}
|
|
5977
5977
|
constructor(e, r) {
|
|
5978
5978
|
this.lineCount = e, this.columnCount = r;
|
|
@@ -6040,13 +6040,13 @@ class xr {
|
|
|
6040
6040
|
toRangeMapping() {
|
|
6041
6041
|
const e = this.original.toInclusiveRange(), r = this.modified.toInclusiveRange();
|
|
6042
6042
|
if (e && r)
|
|
6043
|
-
return new
|
|
6043
|
+
return new zr(e, r);
|
|
6044
6044
|
if (this.original.startLineNumber === 1 || this.modified.startLineNumber === 1) {
|
|
6045
6045
|
if (!(this.modified.startLineNumber === 1 && this.original.startLineNumber === 1))
|
|
6046
6046
|
throw new dr("not a valid diff");
|
|
6047
|
-
return new
|
|
6047
|
+
return new zr(new Ee(this.original.startLineNumber, 1, this.original.endLineNumberExclusive, 1), new Ee(this.modified.startLineNumber, 1, this.modified.endLineNumberExclusive, 1));
|
|
6048
6048
|
} else
|
|
6049
|
-
return new
|
|
6049
|
+
return new zr(new Ee(this.original.startLineNumber - 1, Number.MAX_SAFE_INTEGER, this.original.endLineNumberExclusive - 1, Number.MAX_SAFE_INTEGER), new Ee(this.modified.startLineNumber - 1, Number.MAX_SAFE_INTEGER, this.modified.endLineNumberExclusive - 1, Number.MAX_SAFE_INTEGER));
|
|
6050
6050
|
}
|
|
6051
6051
|
/**
|
|
6052
6052
|
* This method assumes that the LineRangeMapping describes a valid diff!
|
|
@@ -6055,15 +6055,15 @@ class xr {
|
|
|
6055
6055
|
*/
|
|
6056
6056
|
toRangeMapping2(e, r) {
|
|
6057
6057
|
if (Gm(this.original.endLineNumberExclusive, e) && Gm(this.modified.endLineNumberExclusive, r))
|
|
6058
|
-
return new
|
|
6058
|
+
return new zr(new Ee(this.original.startLineNumber, 1, this.original.endLineNumberExclusive, 1), new Ee(this.modified.startLineNumber, 1, this.modified.endLineNumberExclusive, 1));
|
|
6059
6059
|
if (!this.original.isEmpty && !this.modified.isEmpty)
|
|
6060
|
-
return new
|
|
6060
|
+
return new zr(Ee.fromPositions(new it(this.original.startLineNumber, 1), ps(new it(this.original.endLineNumberExclusive - 1, Number.MAX_SAFE_INTEGER), e)), Ee.fromPositions(new it(this.modified.startLineNumber, 1), ps(new it(this.modified.endLineNumberExclusive - 1, Number.MAX_SAFE_INTEGER), r)));
|
|
6061
6061
|
if (this.original.startLineNumber > 1 && this.modified.startLineNumber > 1)
|
|
6062
|
-
return new
|
|
6062
|
+
return new zr(Ee.fromPositions(ps(new it(this.original.startLineNumber - 1, Number.MAX_SAFE_INTEGER), e), ps(new it(this.original.endLineNumberExclusive - 1, Number.MAX_SAFE_INTEGER), e)), Ee.fromPositions(ps(new it(this.modified.startLineNumber - 1, Number.MAX_SAFE_INTEGER), r), ps(new it(this.modified.endLineNumberExclusive - 1, Number.MAX_SAFE_INTEGER), r)));
|
|
6063
6063
|
throw new dr();
|
|
6064
6064
|
}
|
|
6065
6065
|
}
|
|
6066
|
-
function
|
|
6066
|
+
function ps(t, e) {
|
|
6067
6067
|
if (t.lineNumber < 1)
|
|
6068
6068
|
return new it(1, 1);
|
|
6069
6069
|
if (t.lineNumber > e.length)
|
|
@@ -6089,7 +6089,7 @@ class cn extends xr {
|
|
|
6089
6089
|
return new cn(this.original, this.modified, [this.toRangeMapping()]);
|
|
6090
6090
|
}
|
|
6091
6091
|
}
|
|
6092
|
-
class
|
|
6092
|
+
class zr {
|
|
6093
6093
|
static assertSorted(e) {
|
|
6094
6094
|
for (let r = 1; r < e.length; r++) {
|
|
6095
6095
|
const n = e[r - 1], s = e[r];
|
|
@@ -6104,7 +6104,7 @@ class Ur {
|
|
|
6104
6104
|
return `{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`;
|
|
6105
6105
|
}
|
|
6106
6106
|
flip() {
|
|
6107
|
-
return new
|
|
6107
|
+
return new zr(this.modifiedRange, this.originalRange);
|
|
6108
6108
|
}
|
|
6109
6109
|
/**
|
|
6110
6110
|
* Creates a single text edit that describes the change from the original to the modified text.
|
|
@@ -6130,7 +6130,7 @@ class W5 {
|
|
|
6130
6130
|
c.originalEndLineNumber === 0 ? m = new be(c.originalStartLineNumber + 1, c.originalStartLineNumber + 1) : m = new be(c.originalStartLineNumber, c.originalEndLineNumber + 1);
|
|
6131
6131
|
let _;
|
|
6132
6132
|
c.modifiedEndLineNumber === 0 ? _ = new be(c.modifiedStartLineNumber + 1, c.modifiedStartLineNumber + 1) : _ = new be(c.modifiedStartLineNumber, c.modifiedEndLineNumber + 1);
|
|
6133
|
-
let y = new cn(m, _, c.charChanges?.map((v) => new
|
|
6133
|
+
let y = new cn(m, _, c.charChanges?.map((v) => new zr(new Ee(v.originalStartLineNumber, v.originalStartColumn, v.originalEndLineNumber, v.originalEndColumn), new Ee(v.modifiedStartLineNumber, v.modifiedStartColumn, v.modifiedEndLineNumber, v.modifiedEndColumn))));
|
|
6134
6134
|
l && (l.modified.endLineNumberExclusive === y.modified.startLineNumber || l.original.endLineNumberExclusive === y.original.startLineNumber) && (y = new cn(l.original.join(y.original), l.modified.join(y.modified), l.innerChanges && y.innerChanges ? l.innerChanges.concat(y.innerChanges) : void 0), u.pop()), u.push(y), l = y;
|
|
6135
6135
|
}
|
|
6136
6136
|
return xa(() => o_(u, (c, m) => m.original.startLineNumber - c.original.endLineNumberExclusive === m.modified.startLineNumber - c.modified.endLineNumberExclusive && // There has to be an unchanged line in between (otherwise both diffs should have been joined)
|
|
@@ -6201,13 +6201,13 @@ class G5 {
|
|
|
6201
6201
|
return e === -1 ? this.getStartColumn(e + 1) : (this._assertIndex(e, this._columns), this._charCodes[e] === 10 ? 1 : this._columns[e] + 1);
|
|
6202
6202
|
}
|
|
6203
6203
|
}
|
|
6204
|
-
class
|
|
6204
|
+
class Is {
|
|
6205
6205
|
constructor(e, r, n, s, i, u, l, c) {
|
|
6206
6206
|
this.originalStartLineNumber = e, this.originalStartColumn = r, this.originalEndLineNumber = n, this.originalEndColumn = s, this.modifiedStartLineNumber = i, this.modifiedStartColumn = u, this.modifiedEndLineNumber = l, this.modifiedEndColumn = c;
|
|
6207
6207
|
}
|
|
6208
6208
|
static createFromDiffChange(e, r, n) {
|
|
6209
6209
|
const s = r.getStartLineNumber(e.originalStart), i = r.getStartColumn(e.originalStart), u = r.getEndLineNumber(e.originalStart + e.originalLength - 1), l = r.getEndColumn(e.originalStart + e.originalLength - 1), c = n.getStartLineNumber(e.modifiedStart), m = n.getStartColumn(e.modifiedStart), _ = n.getEndLineNumber(e.modifiedStart + e.modifiedLength - 1), y = n.getEndColumn(e.modifiedStart + e.modifiedLength - 1);
|
|
6210
|
-
return new
|
|
6210
|
+
return new Is(s, i, u, l, c, m, _, y);
|
|
6211
6211
|
}
|
|
6212
6212
|
}
|
|
6213
6213
|
function B5(t) {
|
|
@@ -6233,7 +6233,7 @@ class Si {
|
|
|
6233
6233
|
let L = c_(S, T, i, !0).changes;
|
|
6234
6234
|
l && (L = B5(L)), v = [];
|
|
6235
6235
|
for (let D = 0, z = L.length; D < z; D++)
|
|
6236
|
-
v.push(
|
|
6236
|
+
v.push(Is.createFromDiffChange(L[D], S, T));
|
|
6237
6237
|
}
|
|
6238
6238
|
}
|
|
6239
6239
|
return new Si(c, m, _, y, v);
|
|
@@ -6321,14 +6321,14 @@ class q5 {
|
|
|
6321
6321
|
if (this._mergeTrimWhitespaceCharChange(e, r, n, s, i, u, l))
|
|
6322
6322
|
return;
|
|
6323
6323
|
let c;
|
|
6324
|
-
this.shouldComputeCharChanges && (c = [new
|
|
6324
|
+
this.shouldComputeCharChanges && (c = [new Is(r, n, r, s, i, u, i, l)]), e.push(new Si(r, r, i, i, c));
|
|
6325
6325
|
}
|
|
6326
6326
|
_mergeTrimWhitespaceCharChange(e, r, n, s, i, u, l) {
|
|
6327
6327
|
const c = e.length;
|
|
6328
6328
|
if (c === 0)
|
|
6329
6329
|
return !1;
|
|
6330
6330
|
const m = e[c - 1];
|
|
6331
|
-
return m.originalEndLineNumber === 0 || m.modifiedEndLineNumber === 0 ? !1 : m.originalEndLineNumber === r && m.modifiedEndLineNumber === i ? (this.shouldComputeCharChanges && m.charChanges && m.charChanges.push(new
|
|
6331
|
+
return m.originalEndLineNumber === 0 || m.modifiedEndLineNumber === 0 ? !1 : m.originalEndLineNumber === r && m.modifiedEndLineNumber === i ? (this.shouldComputeCharChanges && m.charChanges && m.charChanges.push(new Is(r, n, r, s, i, u, i, l)), !0) : m.originalEndLineNumber + 1 === r && m.modifiedEndLineNumber + 1 === i ? (m.originalEndLineNumber = r, m.modifiedEndLineNumber = i, this.shouldComputeCharChanges && m.charChanges && m.charChanges.push(new Is(r, n, r, s, i, u, i, l)), !0) : !1;
|
|
6332
6332
|
}
|
|
6333
6333
|
}
|
|
6334
6334
|
function Z1(t, e) {
|
|
@@ -6441,7 +6441,7 @@ class Ke {
|
|
|
6441
6441
|
static invert(e, r) {
|
|
6442
6442
|
const n = [];
|
|
6443
6443
|
return Z5(e, (s, i) => {
|
|
6444
|
-
n.push(Ke.fromOffsetPairs(s ? s.getEndExclusives() :
|
|
6444
|
+
n.push(Ke.fromOffsetPairs(s ? s.getEndExclusives() : Wr.zero, i ? i.getStarts() : new Wr(r, (s ? s.seq2Range.endExclusive - s.seq1Range.endExclusive : 0) + r)));
|
|
6445
6445
|
}), n;
|
|
6446
6446
|
}
|
|
6447
6447
|
static fromOffsetPairs(e, r) {
|
|
@@ -6482,18 +6482,18 @@ class Ke {
|
|
|
6482
6482
|
return new Ke(r, n);
|
|
6483
6483
|
}
|
|
6484
6484
|
getStarts() {
|
|
6485
|
-
return new
|
|
6485
|
+
return new Wr(this.seq1Range.start, this.seq2Range.start);
|
|
6486
6486
|
}
|
|
6487
6487
|
getEndExclusives() {
|
|
6488
|
-
return new
|
|
6488
|
+
return new Wr(this.seq1Range.endExclusive, this.seq2Range.endExclusive);
|
|
6489
6489
|
}
|
|
6490
6490
|
}
|
|
6491
|
-
class
|
|
6491
|
+
class Wr {
|
|
6492
6492
|
static {
|
|
6493
|
-
this.zero = new
|
|
6493
|
+
this.zero = new Wr(0, 0);
|
|
6494
6494
|
}
|
|
6495
6495
|
static {
|
|
6496
|
-
this.max = new
|
|
6496
|
+
this.max = new Wr(Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER);
|
|
6497
6497
|
}
|
|
6498
6498
|
constructor(e, r) {
|
|
6499
6499
|
this.offset1 = e, this.offset2 = r;
|
|
@@ -6502,7 +6502,7 @@ class jr {
|
|
|
6502
6502
|
return `${this.offset1} <-> ${this.offset2}`;
|
|
6503
6503
|
}
|
|
6504
6504
|
delta(e) {
|
|
6505
|
-
return e === 0 ? this : new
|
|
6505
|
+
return e === 0 ? this : new Wr(this.offset1 + e, this.offset2 + e);
|
|
6506
6506
|
}
|
|
6507
6507
|
equals(e) {
|
|
6508
6508
|
return this.offset1 === e.offset1 && this.offset2 === e.offset2;
|
|
@@ -6760,7 +6760,7 @@ class Ta {
|
|
|
6760
6760
|
return this.elements[e] === this.elements[r];
|
|
6761
6761
|
}
|
|
6762
6762
|
extendToFullLines(e) {
|
|
6763
|
-
const r =
|
|
6763
|
+
const r = Us(this.firstElementOffsetByLineIdx, (s) => s <= e.start) ?? 0, n = z5(this.firstElementOffsetByLineIdx, (s) => e.endExclusive <= s) ?? this.elements.length;
|
|
6764
6764
|
return new Ne(r, n);
|
|
6765
6765
|
}
|
|
6766
6766
|
}
|
|
@@ -6844,7 +6844,7 @@ function a8(t, e, r, n, s, i) {
|
|
|
6844
6844
|
return [];
|
|
6845
6845
|
}
|
|
6846
6846
|
c.sort(Q5(Jo((v) => v.modifiedLineRange.length, Qo)));
|
|
6847
|
-
const m = new
|
|
6847
|
+
const m = new en(), _ = new en();
|
|
6848
6848
|
for (const v of c) {
|
|
6849
6849
|
const S = v.modifiedLineRange.startLineNumber - v.originalLineRange.startLineNumber, T = m.subtractFrom(v.modifiedLineRange), L = _.subtractFrom(v.originalLineRange).getWithDelta(S), D = T.getIntersection(L);
|
|
6850
6850
|
for (const z of D.ranges) {
|
|
@@ -6857,7 +6857,7 @@ function a8(t, e, r, n, s, i) {
|
|
|
6857
6857
|
u.sort(Jo((v) => v.original.startLineNumber, Qo));
|
|
6858
6858
|
const y = new Qa(t);
|
|
6859
6859
|
for (let v = 0; v < u.length; v++) {
|
|
6860
|
-
const S = u[v], T = y.findLastMonotonous((B) => B.original.startLineNumber <= S.original.startLineNumber), L =
|
|
6860
|
+
const S = u[v], T = y.findLastMonotonous((B) => B.original.startLineNumber <= S.original.startLineNumber), L = Us(t, (B) => B.modified.startLineNumber <= S.modified.startLineNumber), D = Math.max(S.original.startLineNumber - T.original.startLineNumber, S.modified.startLineNumber - L.modified.startLineNumber), z = y.findLastMonotonous((B) => B.original.startLineNumber < S.original.endLineNumberExclusive), W = Us(t, (B) => B.modified.startLineNumber < S.modified.endLineNumberExclusive), j = Math.max(z.original.endLineNumberExclusive - S.original.endLineNumberExclusive, W.modified.endLineNumberExclusive - S.modified.endLineNumberExclusive);
|
|
6861
6861
|
let U;
|
|
6862
6862
|
for (U = 0; U < D; U++) {
|
|
6863
6863
|
const B = S.original.startLineNumber - U - 1, Z = S.modified.startLineNumber - U - 1;
|
|
@@ -6914,7 +6914,7 @@ function u8(t) {
|
|
|
6914
6914
|
function l8(t, e) {
|
|
6915
6915
|
const r = new Qa(t);
|
|
6916
6916
|
return e = e.filter((n) => {
|
|
6917
|
-
const s = r.findLastMonotonous((l) => l.original.startLineNumber < n.original.endLineNumberExclusive) || new xr(new be(1, 1), new be(1, 1)), i =
|
|
6917
|
+
const s = r.findLastMonotonous((l) => l.original.startLineNumber < n.original.endLineNumberExclusive) || new xr(new be(1, 1), new be(1, 1)), i = Us(t, (l) => l.modified.startLineNumber < n.modified.endLineNumberExclusive);
|
|
6918
6918
|
return s !== i;
|
|
6919
6919
|
}), e;
|
|
6920
6920
|
}
|
|
@@ -7002,7 +7002,7 @@ function f8(t, e, r) {
|
|
|
7002
7002
|
}
|
|
7003
7003
|
function h8(t, e, r) {
|
|
7004
7004
|
const n = Ke.invert(r, t.length), s = [];
|
|
7005
|
-
let i = new
|
|
7005
|
+
let i = new Wr(0, 0);
|
|
7006
7006
|
function u(c, m) {
|
|
7007
7007
|
if (c.offset1 < i.offset1 || c.offset2 < i.offset2)
|
|
7008
7008
|
return;
|
|
@@ -7102,7 +7102,7 @@ function p8(t, e, r) {
|
|
|
7102
7102
|
v(T) && (y = y.deltaStart(-T.length));
|
|
7103
7103
|
const L = t.getText(new Ne(m.seq1Range.endExclusive, S.endExclusive));
|
|
7104
7104
|
v(L) && (y = y.deltaEnd(L.length));
|
|
7105
|
-
const D = Ke.fromOffsetPairs(c ? c.getEndExclusives() :
|
|
7105
|
+
const D = Ke.fromOffsetPairs(c ? c.getEndExclusives() : Wr.zero, _ ? _.getStarts() : Wr.max), z = y.intersect(D);
|
|
7106
7106
|
u.length > 0 && z.getStarts().equals(u[u.length - 1].getEndExclusives()) ? u[u.length - 1] = u[u.length - 1].join(z) : u.push(z);
|
|
7107
7107
|
}), u;
|
|
7108
7108
|
}
|
|
@@ -7144,7 +7144,7 @@ class g8 {
|
|
|
7144
7144
|
if (e.length === 1 && e[0].length === 0 || r.length === 1 && r[0].length === 0)
|
|
7145
7145
|
return new Xo([
|
|
7146
7146
|
new cn(new be(1, e.length + 1), new be(1, r.length + 1), [
|
|
7147
|
-
new
|
|
7147
|
+
new zr(new Ee(1, 1, e.length, e[e.length - 1].length + 1), new Ee(1, 1, r.length, r[r.length - 1].length + 1))
|
|
7148
7148
|
])
|
|
7149
7149
|
], [], !1);
|
|
7150
7150
|
const s = n.maxComputationTimeMs === 0 ? $i.instance : new K5(n.maxComputationTimeMs), i = !n.ignoreTrimWhitespace, u = /* @__PURE__ */ new Map();
|
|
@@ -7212,7 +7212,7 @@ class g8 {
|
|
|
7212
7212
|
const l = y8(n).toRangeMapping2(e, r), c = new Ta(e, l.originalRange, i), m = new Ta(r, l.modifiedRange, i), _ = c.length + m.length < 500 ? this.dynamicProgrammingDiffing.compute(c, m, s) : this.myersDiffingAlgorithm.compute(c, m, s);
|
|
7213
7213
|
let y = _.diffs;
|
|
7214
7214
|
return y = Jm(c, m, y), y = h8(c, m, y), y = f8(c, m, y), y = p8(c, m, y), {
|
|
7215
|
-
mappings: y.map((S) => new
|
|
7215
|
+
mappings: y.map((S) => new zr(c.translateRange(S.seq1Range), m.translateRange(S.seq2Range))),
|
|
7216
7216
|
hitTimeout: _.hitTimeout
|
|
7217
7217
|
};
|
|
7218
7218
|
}
|
|
@@ -7305,7 +7305,7 @@ class Sr {
|
|
|
7305
7305
|
return new xt(Math.round(u * 255), Math.round(l * 255), Math.round(c * 255), i);
|
|
7306
7306
|
}
|
|
7307
7307
|
}
|
|
7308
|
-
class
|
|
7308
|
+
class Ms {
|
|
7309
7309
|
constructor(e, r, n, s) {
|
|
7310
7310
|
this._hsvaBrand = void 0, this.h = Math.max(Math.min(360, e), 0) | 0, this.s = Rn(Math.max(Math.min(1, r), 0), 3), this.v = Rn(Math.max(Math.min(1, n), 0), 3), this.a = Rn(Math.max(Math.min(1, s), 0), 3);
|
|
7311
7311
|
}
|
|
@@ -7316,7 +7316,7 @@ class Os {
|
|
|
7316
7316
|
static fromRGBA(e) {
|
|
7317
7317
|
const r = e.r / 255, n = e.g / 255, s = e.b / 255, i = Math.max(r, n, s), u = Math.min(r, n, s), l = i - u, c = i === 0 ? 0 : l / i;
|
|
7318
7318
|
let m;
|
|
7319
|
-
return l === 0 ? m = 0 : i === r ? m = ((n - s) / l % 6 + 6) % 6 : i === n ? m = (s - r) / l + 2 : m = (r - n) / l + 4, new
|
|
7319
|
+
return l === 0 ? m = 0 : i === r ? m = ((n - s) / l % 6 + 6) % 6 : i === n ? m = (s - r) / l + 2 : m = (r - n) / l + 4, new Ms(Math.round(m * 60), c, i, e.a);
|
|
7320
7320
|
}
|
|
7321
7321
|
// from http://www.rapidtables.com/convert/color/hsv-to-rgb.htm
|
|
7322
7322
|
static toRGBA(e) {
|
|
@@ -7336,7 +7336,7 @@ let Pa = class dt {
|
|
|
7336
7336
|
return this._hsla ? this._hsla : Sr.fromRGBA(this.rgba);
|
|
7337
7337
|
}
|
|
7338
7338
|
get hsva() {
|
|
7339
|
-
return this._hsva ? this._hsva :
|
|
7339
|
+
return this._hsva ? this._hsva : Ms.fromRGBA(this.rgba);
|
|
7340
7340
|
}
|
|
7341
7341
|
constructor(e) {
|
|
7342
7342
|
if (e)
|
|
@@ -7344,14 +7344,14 @@ let Pa = class dt {
|
|
|
7344
7344
|
this.rgba = e;
|
|
7345
7345
|
else if (e instanceof Sr)
|
|
7346
7346
|
this._hsla = e, this.rgba = Sr.toRGBA(e);
|
|
7347
|
-
else if (e instanceof
|
|
7348
|
-
this._hsva = e, this.rgba =
|
|
7347
|
+
else if (e instanceof Ms)
|
|
7348
|
+
this._hsva = e, this.rgba = Ms.toRGBA(e);
|
|
7349
7349
|
else
|
|
7350
7350
|
throw new Error("Invalid color ctor argument");
|
|
7351
7351
|
else throw new Error("Color needs a value");
|
|
7352
7352
|
}
|
|
7353
7353
|
equals(e) {
|
|
7354
|
-
return !!e && xt.equals(this.rgba, e.rgba) && Sr.equals(this.hsla, e.hsla) &&
|
|
7354
|
+
return !!e && xt.equals(this.rgba, e.rgba) && Sr.equals(this.hsla, e.hsla) && Ms.equals(this.hsva, e.hsva);
|
|
7355
7355
|
}
|
|
7356
7356
|
/**
|
|
7357
7357
|
* http://www.w3.org/TR/WCAG20/#relativeluminancedef
|
|
@@ -7859,15 +7859,15 @@ class P8 {
|
|
|
7859
7859
|
this.values = e, this.prefixSum = new Uint32Array(e.length), this.prefixSumValidIndex = new Int32Array(1), this.prefixSumValidIndex[0] = -1;
|
|
7860
7860
|
}
|
|
7861
7861
|
insertValues(e, r) {
|
|
7862
|
-
e =
|
|
7862
|
+
e = ms(e);
|
|
7863
7863
|
const n = this.values, s = this.prefixSum, i = r.length;
|
|
7864
7864
|
return i === 0 ? !1 : (this.values = new Uint32Array(n.length + i), this.values.set(n.subarray(0, e), 0), this.values.set(n.subarray(e), e + i), this.values.set(r, e), e - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = e - 1), this.prefixSum = new Uint32Array(this.values.length), this.prefixSumValidIndex[0] >= 0 && this.prefixSum.set(s.subarray(0, this.prefixSumValidIndex[0] + 1)), !0);
|
|
7865
7865
|
}
|
|
7866
7866
|
setValue(e, r) {
|
|
7867
|
-
return e =
|
|
7867
|
+
return e = ms(e), r = ms(r), this.values[e] === r ? !1 : (this.values[e] = r, e - 1 < this.prefixSumValidIndex[0] && (this.prefixSumValidIndex[0] = e - 1), !0);
|
|
7868
7868
|
}
|
|
7869
7869
|
removeValues(e, r) {
|
|
7870
|
-
e =
|
|
7870
|
+
e = ms(e), r = ms(r);
|
|
7871
7871
|
const n = this.values, s = this.prefixSum;
|
|
7872
7872
|
if (e >= n.length)
|
|
7873
7873
|
return !1;
|
|
@@ -7882,7 +7882,7 @@ class P8 {
|
|
|
7882
7882
|
* @returns `SUM(0 <= j <= index, values[j])`.
|
|
7883
7883
|
*/
|
|
7884
7884
|
getPrefixSum(e) {
|
|
7885
|
-
return e < 0 ? 0 : (e =
|
|
7885
|
+
return e < 0 ? 0 : (e = ms(e), this._getPrefixSum(e));
|
|
7886
7886
|
}
|
|
7887
7887
|
_getPrefixSum(e) {
|
|
7888
7888
|
if (e <= this.prefixSumValidIndex[0])
|
|
@@ -7981,7 +7981,7 @@ class M8 {
|
|
|
7981
7981
|
return Object.keys(this._models).forEach((r) => e.push(this._models[r])), e;
|
|
7982
7982
|
}
|
|
7983
7983
|
$acceptNewModel(e) {
|
|
7984
|
-
this._models[e.url] = new O8(
|
|
7984
|
+
this._models[e.url] = new O8(Kr.parse(e.url), e.lines, e.EOL, e.versionId);
|
|
7985
7985
|
}
|
|
7986
7986
|
$acceptModelChanged(e, r) {
|
|
7987
7987
|
if (!this._models[e])
|
|
@@ -8507,7 +8507,7 @@ var Aa;
|
|
|
8507
8507
|
}
|
|
8508
8508
|
t.is = e;
|
|
8509
8509
|
})(Aa || (Aa = {}));
|
|
8510
|
-
var
|
|
8510
|
+
var Vr;
|
|
8511
8511
|
(function(t) {
|
|
8512
8512
|
function e(n, s) {
|
|
8513
8513
|
return n === Number.MAX_VALUE && (n = Aa.MAX_VALUE), s === Number.MAX_VALUE && (s = Aa.MAX_VALUE), { line: n, character: s };
|
|
@@ -8518,20 +8518,20 @@ var zr;
|
|
|
8518
8518
|
return O.objectLiteral(s) && O.uinteger(s.line) && O.uinteger(s.character);
|
|
8519
8519
|
}
|
|
8520
8520
|
t.is = r;
|
|
8521
|
-
})(
|
|
8521
|
+
})(Vr || (Vr = {}));
|
|
8522
8522
|
var lt;
|
|
8523
8523
|
(function(t) {
|
|
8524
8524
|
function e(n, s, i, u) {
|
|
8525
8525
|
if (O.uinteger(n) && O.uinteger(s) && O.uinteger(i) && O.uinteger(u))
|
|
8526
|
-
return { start:
|
|
8527
|
-
if (
|
|
8526
|
+
return { start: Vr.create(n, s), end: Vr.create(i, u) };
|
|
8527
|
+
if (Vr.is(n) && Vr.is(s))
|
|
8528
8528
|
return { start: n, end: s };
|
|
8529
8529
|
throw new Error(`Range#create called with invalid arguments[${n}, ${s}, ${i}, ${u}]`);
|
|
8530
8530
|
}
|
|
8531
8531
|
t.create = e;
|
|
8532
8532
|
function r(n) {
|
|
8533
8533
|
let s = n;
|
|
8534
|
-
return O.objectLiteral(s) &&
|
|
8534
|
+
return O.objectLiteral(s) && Vr.is(s.start) && Vr.is(s.end);
|
|
8535
8535
|
}
|
|
8536
8536
|
t.is = r;
|
|
8537
8537
|
})(lt || (lt = {}));
|
|
@@ -8603,7 +8603,7 @@ var mp;
|
|
|
8603
8603
|
t.create = e;
|
|
8604
8604
|
function r(n) {
|
|
8605
8605
|
const s = n;
|
|
8606
|
-
return O.objectLiteral(s) && O.string(s.label) && (O.undefined(s.textEdit) ||
|
|
8606
|
+
return O.objectLiteral(s) && O.string(s.label) && (O.undefined(s.textEdit) || Vs.is(s)) && (O.undefined(s.additionalTextEdits) || O.typedArray(s.additionalTextEdits, Vs.is));
|
|
8607
8607
|
}
|
|
8608
8608
|
t.is = r;
|
|
8609
8609
|
})(mp || (mp = {}));
|
|
@@ -8672,7 +8672,7 @@ var Ma;
|
|
|
8672
8672
|
}
|
|
8673
8673
|
t.is = r;
|
|
8674
8674
|
})(Ma || (Ma = {}));
|
|
8675
|
-
var
|
|
8675
|
+
var zs;
|
|
8676
8676
|
(function(t) {
|
|
8677
8677
|
function e(n, s, ...i) {
|
|
8678
8678
|
let u = { title: n, command: s };
|
|
@@ -8684,8 +8684,8 @@ var Vs;
|
|
|
8684
8684
|
return O.defined(s) && O.string(s.title) && O.string(s.command);
|
|
8685
8685
|
}
|
|
8686
8686
|
t.is = r;
|
|
8687
|
-
})(
|
|
8688
|
-
var
|
|
8687
|
+
})(zs || (zs = {}));
|
|
8688
|
+
var Vs;
|
|
8689
8689
|
(function(t) {
|
|
8690
8690
|
function e(i, u) {
|
|
8691
8691
|
return { range: i, newText: u };
|
|
@@ -8704,7 +8704,7 @@ var js;
|
|
|
8704
8704
|
return O.objectLiteral(u) && O.string(u.newText) && lt.is(u.range);
|
|
8705
8705
|
}
|
|
8706
8706
|
t.is = s;
|
|
8707
|
-
})(
|
|
8707
|
+
})(Vs || (Vs = {}));
|
|
8708
8708
|
var oh;
|
|
8709
8709
|
(function(t) {
|
|
8710
8710
|
function e(n, s, i) {
|
|
@@ -8718,14 +8718,14 @@ var oh;
|
|
|
8718
8718
|
}
|
|
8719
8719
|
t.is = r;
|
|
8720
8720
|
})(oh || (oh = {}));
|
|
8721
|
-
var
|
|
8721
|
+
var js;
|
|
8722
8722
|
(function(t) {
|
|
8723
8723
|
function e(r) {
|
|
8724
8724
|
const n = r;
|
|
8725
8725
|
return O.string(n);
|
|
8726
8726
|
}
|
|
8727
8727
|
t.is = e;
|
|
8728
|
-
})(
|
|
8728
|
+
})(js || (js = {}));
|
|
8729
8729
|
var wp;
|
|
8730
8730
|
(function(t) {
|
|
8731
8731
|
function e(i, u, l) {
|
|
@@ -8742,7 +8742,7 @@ var wp;
|
|
|
8742
8742
|
t.del = n;
|
|
8743
8743
|
function s(i) {
|
|
8744
8744
|
const u = i;
|
|
8745
|
-
return
|
|
8745
|
+
return Vs.is(u) && (oh.is(u.annotationId) || js.is(u.annotationId));
|
|
8746
8746
|
}
|
|
8747
8747
|
t.is = s;
|
|
8748
8748
|
})(wp || (wp = {}));
|
|
@@ -8770,7 +8770,7 @@ var uh;
|
|
|
8770
8770
|
t.create = e;
|
|
8771
8771
|
function r(n) {
|
|
8772
8772
|
let s = n;
|
|
8773
|
-
return s && s.kind === "create" && O.string(s.uri) && (s.options === void 0 || (s.options.overwrite === void 0 || O.boolean(s.options.overwrite)) && (s.options.ignoreIfExists === void 0 || O.boolean(s.options.ignoreIfExists))) && (s.annotationId === void 0 ||
|
|
8773
|
+
return s && s.kind === "create" && O.string(s.uri) && (s.options === void 0 || (s.options.overwrite === void 0 || O.boolean(s.options.overwrite)) && (s.options.ignoreIfExists === void 0 || O.boolean(s.options.ignoreIfExists))) && (s.annotationId === void 0 || js.is(s.annotationId));
|
|
8774
8774
|
}
|
|
8775
8775
|
t.is = r;
|
|
8776
8776
|
})(uh || (uh = {}));
|
|
@@ -8787,7 +8787,7 @@ var lh;
|
|
|
8787
8787
|
t.create = e;
|
|
8788
8788
|
function r(n) {
|
|
8789
8789
|
let s = n;
|
|
8790
|
-
return s && s.kind === "rename" && O.string(s.oldUri) && O.string(s.newUri) && (s.options === void 0 || (s.options.overwrite === void 0 || O.boolean(s.options.overwrite)) && (s.options.ignoreIfExists === void 0 || O.boolean(s.options.ignoreIfExists))) && (s.annotationId === void 0 ||
|
|
8790
|
+
return s && s.kind === "rename" && O.string(s.oldUri) && O.string(s.newUri) && (s.options === void 0 || (s.options.overwrite === void 0 || O.boolean(s.options.overwrite)) && (s.options.ignoreIfExists === void 0 || O.boolean(s.options.ignoreIfExists))) && (s.annotationId === void 0 || js.is(s.annotationId));
|
|
8791
8791
|
}
|
|
8792
8792
|
t.is = r;
|
|
8793
8793
|
})(lh || (lh = {}));
|
|
@@ -8803,7 +8803,7 @@ var ch;
|
|
|
8803
8803
|
t.create = e;
|
|
8804
8804
|
function r(n) {
|
|
8805
8805
|
let s = n;
|
|
8806
|
-
return s && s.kind === "delete" && O.string(s.uri) && (s.options === void 0 || (s.options.recursive === void 0 || O.boolean(s.options.recursive)) && (s.options.ignoreIfNotExists === void 0 || O.boolean(s.options.ignoreIfNotExists))) && (s.annotationId === void 0 ||
|
|
8806
|
+
return s && s.kind === "delete" && O.string(s.uri) && (s.options === void 0 || (s.options.recursive === void 0 || O.boolean(s.options.recursive)) && (s.options.ignoreIfNotExists === void 0 || O.boolean(s.options.ignoreIfNotExists))) && (s.annotationId === void 0 || js.is(s.annotationId));
|
|
8807
8807
|
}
|
|
8808
8808
|
t.is = r;
|
|
8809
8809
|
})(ch || (ch = {}));
|
|
@@ -9048,12 +9048,12 @@ var Vp;
|
|
|
9048
9048
|
(function(t) {
|
|
9049
9049
|
function e(n, s, i) {
|
|
9050
9050
|
let u = { title: n }, l = !0;
|
|
9051
|
-
return typeof s == "string" ? (l = !1, u.kind = s) :
|
|
9051
|
+
return typeof s == "string" ? (l = !1, u.kind = s) : zs.is(s) ? u.command = s : u.edit = s, l && i !== void 0 && (u.kind = i), u;
|
|
9052
9052
|
}
|
|
9053
9053
|
t.create = e;
|
|
9054
9054
|
function r(n) {
|
|
9055
9055
|
let s = n;
|
|
9056
|
-
return s && O.string(s.title) && (s.diagnostics === void 0 || O.typedArray(s.diagnostics, Ma.is)) && (s.kind === void 0 || O.string(s.kind)) && (s.edit !== void 0 || s.command !== void 0) && (s.command === void 0 ||
|
|
9056
|
+
return s && O.string(s.title) && (s.diagnostics === void 0 || O.typedArray(s.diagnostics, Ma.is)) && (s.kind === void 0 || O.string(s.kind)) && (s.edit !== void 0 || s.command !== void 0) && (s.command === void 0 || zs.is(s.command)) && (s.isPreferred === void 0 || O.boolean(s.isPreferred)) && (s.edit === void 0 || fh.is(s.edit));
|
|
9057
9057
|
}
|
|
9058
9058
|
t.is = r;
|
|
9059
9059
|
})(Vp || (Vp = {}));
|
|
@@ -9066,7 +9066,7 @@ var jp;
|
|
|
9066
9066
|
t.create = e;
|
|
9067
9067
|
function r(n) {
|
|
9068
9068
|
let s = n;
|
|
9069
|
-
return O.defined(s) && lt.is(s.range) && (O.undefined(s.command) ||
|
|
9069
|
+
return O.defined(s) && lt.is(s.range) && (O.undefined(s.command) || zs.is(s.command));
|
|
9070
9070
|
}
|
|
9071
9071
|
t.is = r;
|
|
9072
9072
|
})(jp || (jp = {}));
|
|
@@ -9186,7 +9186,7 @@ var gh;
|
|
|
9186
9186
|
t.create = e;
|
|
9187
9187
|
function r(n) {
|
|
9188
9188
|
const s = n;
|
|
9189
|
-
return O.objectLiteral(s) && (s.tooltip === void 0 || O.string(s.tooltip) || Mi.is(s.tooltip)) && (s.location === void 0 || La.is(s.location)) && (s.command === void 0 ||
|
|
9189
|
+
return O.objectLiteral(s) && (s.tooltip === void 0 || O.string(s.tooltip) || Mi.is(s.tooltip)) && (s.location === void 0 || La.is(s.location)) && (s.command === void 0 || zs.is(s.command));
|
|
9190
9190
|
}
|
|
9191
9191
|
t.is = r;
|
|
9192
9192
|
})(gh || (gh = {}));
|
|
@@ -9199,7 +9199,7 @@ var Kp;
|
|
|
9199
9199
|
t.create = e;
|
|
9200
9200
|
function r(n) {
|
|
9201
9201
|
const s = n;
|
|
9202
|
-
return O.objectLiteral(s) &&
|
|
9202
|
+
return O.objectLiteral(s) && Vr.is(s.position) && (O.string(s.label) || O.typedArray(s.label, gh.is)) && (s.kind === void 0 || ph.is(s.kind)) && s.textEdits === void 0 || O.typedArray(s.textEdits, Vs.is) && (s.tooltip === void 0 || O.string(s.tooltip) || Mi.is(s.tooltip)) && (s.paddingLeft === void 0 || O.boolean(s.paddingLeft)) && (s.paddingRight === void 0 || O.boolean(s.paddingRight));
|
|
9203
9203
|
}
|
|
9204
9204
|
t.is = r;
|
|
9205
9205
|
})(Kp || (Kp = {}));
|
|
@@ -9333,13 +9333,13 @@ class I8 {
|
|
|
9333
9333
|
e = Math.max(Math.min(e, this._content.length), 0);
|
|
9334
9334
|
let r = this.getLineOffsets(), n = 0, s = r.length;
|
|
9335
9335
|
if (s === 0)
|
|
9336
|
-
return
|
|
9336
|
+
return Vr.create(0, e);
|
|
9337
9337
|
for (; n < s; ) {
|
|
9338
9338
|
let u = Math.floor((n + s) / 2);
|
|
9339
9339
|
r[u] > e ? s = u : n = u + 1;
|
|
9340
9340
|
}
|
|
9341
9341
|
let i = n - 1;
|
|
9342
|
-
return
|
|
9342
|
+
return Vr.create(i, e - r[i]);
|
|
9343
9343
|
}
|
|
9344
9344
|
offsetAt(e) {
|
|
9345
9345
|
let r = this.getLineOffsets();
|
|
@@ -9946,7 +9946,7 @@ const K8 = (t) => {
|
|
|
9946
9946
|
}, hg = (t, e) => {
|
|
9947
9947
|
const r = Q8(Ni, e) === "," ? ", " : " | ";
|
|
9948
9948
|
return t.map((n) => `"${n.toLowerCase()}"`).sort().join(r);
|
|
9949
|
-
},
|
|
9949
|
+
}, Jr = (t) => (
|
|
9950
9950
|
/*
|
|
9951
9951
|
When we display our validation markers for type suggestions, we want
|
|
9952
9952
|
to let users know when we are referring to a type when we use double quotes.
|
|
@@ -9955,7 +9955,7 @@ const K8 = (t) => {
|
|
|
9955
9955
|
e.g. 'Type "string"' instead of 'Type string'
|
|
9956
9956
|
*/
|
|
9957
9957
|
`"${t}"`
|
|
9958
|
-
),
|
|
9958
|
+
), gs = (t) => {
|
|
9959
9959
|
switch (t.type) {
|
|
9960
9960
|
case "interval-qualifier":
|
|
9961
9961
|
case "interval":
|
|
@@ -9973,26 +9973,26 @@ const K8 = (t) => {
|
|
|
9973
9973
|
case "current-user":
|
|
9974
9974
|
return "CURRENT_USER";
|
|
9975
9975
|
case "current-time":
|
|
9976
|
-
return
|
|
9976
|
+
return Jr(t.mode);
|
|
9977
9977
|
case "interval-period":
|
|
9978
|
-
return
|
|
9978
|
+
return Jr(t.period);
|
|
9979
9979
|
case "null":
|
|
9980
|
-
return
|
|
9980
|
+
return Jr("null");
|
|
9981
9981
|
case "column-reference":
|
|
9982
|
-
return
|
|
9982
|
+
return Jr(t.column);
|
|
9983
9983
|
case "number":
|
|
9984
9984
|
return t.value;
|
|
9985
9985
|
case "function":
|
|
9986
|
-
return
|
|
9986
|
+
return Jr(`${t.name}()`);
|
|
9987
9987
|
case "data-type":
|
|
9988
|
-
return
|
|
9988
|
+
return Jr(t.type);
|
|
9989
9989
|
case "boolean":
|
|
9990
9990
|
case "date":
|
|
9991
9991
|
case "parameter":
|
|
9992
9992
|
case "time":
|
|
9993
9993
|
case "timestamp":
|
|
9994
9994
|
case "string":
|
|
9995
|
-
return
|
|
9995
|
+
return Jr(String(t.value));
|
|
9996
9996
|
}
|
|
9997
9997
|
}, Ut = (t, e, r, n) => {
|
|
9998
9998
|
if (n) {
|
|
@@ -10011,13 +10011,13 @@ const K8 = (t) => {
|
|
|
10011
10011
|
(u) => u.message === t && u.startColumn === s.startColumn && u.startLineNumber === s.startLineNumber && u.endColumn === s.endColumn && u.endLineNumber === s.endLineNumber
|
|
10012
10012
|
) || r.push({ message: t, severity: lg.Error, ...s });
|
|
10013
10013
|
}
|
|
10014
|
-
},
|
|
10014
|
+
}, Gn = (t, e, r, n) => {
|
|
10015
10015
|
const s = hn(t, n);
|
|
10016
10016
|
let i = s.toUpperCase() === e;
|
|
10017
10017
|
if (e === "NUMBER" && (i = ka(s)), !i) {
|
|
10018
10018
|
const u = rr(Yt.TypeNotAssignable, {
|
|
10019
|
-
providedType:
|
|
10020
|
-
expectedType:
|
|
10019
|
+
providedType: Jr(s),
|
|
10020
|
+
expectedType: Jr(e.toLowerCase())
|
|
10021
10021
|
});
|
|
10022
10022
|
Ut(u, t.location, r, !0);
|
|
10023
10023
|
}
|
|
@@ -10275,24 +10275,24 @@ class h7 {
|
|
|
10275
10275
|
// logical operators
|
|
10276
10276
|
case "AND":
|
|
10277
10277
|
case "OR":
|
|
10278
|
-
|
|
10278
|
+
Gn(n, Tn.BOOLEAN, this.markers, this._fields), Gn(s, Tn.BOOLEAN, this.markers, this._fields);
|
|
10279
10279
|
break;
|
|
10280
10280
|
// null comparison operators
|
|
10281
10281
|
case "IS":
|
|
10282
10282
|
case "ISNOT":
|
|
10283
|
-
|
|
10283
|
+
Gn(s, Tn.NULL, this.markers, this._fields);
|
|
10284
10284
|
break;
|
|
10285
10285
|
// set comparison operators
|
|
10286
10286
|
case "IN":
|
|
10287
10287
|
case "NOT IN":
|
|
10288
10288
|
case "BETWEEN":
|
|
10289
10289
|
case "NOTBETWEEN":
|
|
10290
|
-
|
|
10290
|
+
Gn(s, Tn.EXPRESSION_LIST, this.markers, this._fields);
|
|
10291
10291
|
break;
|
|
10292
10292
|
// string comparison operators
|
|
10293
10293
|
case "LIKE":
|
|
10294
10294
|
case "NOT LIKE":
|
|
10295
|
-
|
|
10295
|
+
Gn(s, Tn.STRING, this.markers, this._fields);
|
|
10296
10296
|
break;
|
|
10297
10297
|
// Comparison operators
|
|
10298
10298
|
case "<>":
|
|
@@ -10303,7 +10303,7 @@ class h7 {
|
|
|
10303
10303
|
case "=": {
|
|
10304
10304
|
if (!cg.includes(u)) {
|
|
10305
10305
|
const c = rr(Yt.TypeNotAssignable, {
|
|
10306
|
-
providedType:
|
|
10306
|
+
providedType: Jr(u),
|
|
10307
10307
|
expectedType: hg(cg, Ni.COMMA)
|
|
10308
10308
|
});
|
|
10309
10309
|
Ut(c, s.location, this.markers, !0);
|
|
@@ -10311,9 +10311,9 @@ class h7 {
|
|
|
10311
10311
|
const l = Ro(i) && Ro(u);
|
|
10312
10312
|
if (i !== u && !l) {
|
|
10313
10313
|
const c = rr(Yt.MismatchedTypes, {
|
|
10314
|
-
leftValue:
|
|
10314
|
+
leftValue: gs(n),
|
|
10315
10315
|
providedType: i,
|
|
10316
|
-
rightValue:
|
|
10316
|
+
rightValue: gs(s),
|
|
10317
10317
|
expectedType: u
|
|
10318
10318
|
});
|
|
10319
10319
|
Ut(c, e.location, this.markers, !0);
|
|
@@ -10327,18 +10327,18 @@ class h7 {
|
|
|
10327
10327
|
case "/":
|
|
10328
10328
|
if (!Ro(i) || !Ro(u)) {
|
|
10329
10329
|
const l = rr(Yt.MismatchedTypes, {
|
|
10330
|
-
leftValue:
|
|
10330
|
+
leftValue: gs(n),
|
|
10331
10331
|
providedType: i,
|
|
10332
|
-
rightValue:
|
|
10332
|
+
rightValue: gs(s),
|
|
10333
10333
|
expectedType: u
|
|
10334
10334
|
});
|
|
10335
10335
|
Ut(l, e.location, this.markers, !0);
|
|
10336
10336
|
}
|
|
10337
10337
|
if (i !== u && !fg(n, s, this._fields) && !t7(n, s, this._fields)) {
|
|
10338
10338
|
const l = rr(Yt.MismatchedTypes, {
|
|
10339
|
-
leftValue:
|
|
10339
|
+
leftValue: gs(n),
|
|
10340
10340
|
providedType: i,
|
|
10341
|
-
rightValue:
|
|
10341
|
+
rightValue: gs(s),
|
|
10342
10342
|
expectedType: u
|
|
10343
10343
|
});
|
|
10344
10344
|
Ut(l, e.location, this.markers, !0);
|
|
@@ -10350,7 +10350,7 @@ class h7 {
|
|
|
10350
10350
|
break;
|
|
10351
10351
|
// string concatenation
|
|
10352
10352
|
case "||":
|
|
10353
|
-
|
|
10353
|
+
Gn(n, Tn.STRING, this.markers, this._fields), Gn(s, Tn.STRING, this.markers, this._fields);
|
|
10354
10354
|
break;
|
|
10355
10355
|
}
|
|
10356
10356
|
return;
|
|
@@ -10538,13 +10538,6 @@ class m7 {
|
|
|
10538
10538
|
// #region public methods
|
|
10539
10539
|
/**
|
|
10540
10540
|
* gets completions for the sql expression.
|
|
10541
|
-
* @param {Object} params - The parameters for the completion.
|
|
10542
|
-
* @param {IRange} params.range - The range of the current position.
|
|
10543
|
-
* @param {string} params.modelContent - The content of the model.
|
|
10544
|
-
* @param {Position} params.position - The current position of the cursor in the model.
|
|
10545
|
-
* @param {ICompletionContext} params.completionContext - The completion context.
|
|
10546
|
-
* @param {boolean} params.terminateOnError - Whether to terminate the completion when it fails to parse.
|
|
10547
|
-
* @returns {Promise<languages.CompletionItem[]>} The completion items.
|
|
10548
10541
|
*/
|
|
10549
10542
|
async getCompletions({
|
|
10550
10543
|
range: e,
|
|
@@ -11005,13 +10998,13 @@ class p7 {
|
|
|
11005
10998
|
return null;
|
|
11006
10999
|
}
|
|
11007
11000
|
}
|
|
11008
|
-
const nr = globalThis,
|
|
11001
|
+
const nr = globalThis, Yn = { ...nr.esriConfig?.has };
|
|
11009
11002
|
function $(t) {
|
|
11010
|
-
return typeof
|
|
11003
|
+
return typeof Yn[t] == "function" ? Yn[t] = Yn[t](nr) : Yn[t];
|
|
11011
11004
|
}
|
|
11012
11005
|
$.add = (t, e, r, n) => {
|
|
11013
|
-
(n ||
|
|
11014
|
-
}, $.cache =
|
|
11006
|
+
(n || Yn[t] === void 0) && (Yn[t] = e), r && $(t);
|
|
11007
|
+
}, $.cache = Yn, $.add("big-integer-warning-enabled", !0), $.add("esri-deprecation-warnings", !0), $.add("esri-tests-disable-screenshots", !1), $.add("esri-tests-use-full-window", !1), $.add("esri-tests-post-to-influx", !0), $.add("esri-cim-animations-enable-status", "enabled"), $.add("esri-cim-animations-spotlight", !1), $.add("esri-cim-animations-freeze-time", !1), (() => {
|
|
11015
11008
|
$.add("host-webworker", nr.WorkerGlobalScope !== void 0 && self instanceof nr.WorkerGlobalScope);
|
|
11016
11009
|
const t = typeof window < "u" && typeof location < "u" && typeof document < "u" && window.location === location && window.document === document;
|
|
11017
11010
|
if ($.add("host-browser", t), $.add("host-node", !(typeof nr.process != "object" || !nr.process.versions?.node || !nr.process.versions.v8)), $.add("dom", t), $("host-browser")) {
|
|
@@ -11357,50 +11350,50 @@ function U7(t) {
|
|
|
11357
11350
|
function z7(t) {
|
|
11358
11351
|
return t.toLowerCase().replaceAll(/[\s-]+/g, "");
|
|
11359
11352
|
}
|
|
11360
|
-
class
|
|
11353
|
+
class os extends Error {
|
|
11361
11354
|
}
|
|
11362
|
-
class V7 extends
|
|
11355
|
+
class V7 extends os {
|
|
11363
11356
|
constructor(e) {
|
|
11364
11357
|
super(`Invalid DateTime: ${e.toMessage()}`);
|
|
11365
11358
|
}
|
|
11366
11359
|
}
|
|
11367
|
-
class j7 extends
|
|
11360
|
+
class j7 extends os {
|
|
11368
11361
|
constructor(e) {
|
|
11369
11362
|
super(`Invalid Interval: ${e.toMessage()}`);
|
|
11370
11363
|
}
|
|
11371
11364
|
}
|
|
11372
|
-
class W7 extends
|
|
11365
|
+
class W7 extends os {
|
|
11373
11366
|
constructor(e) {
|
|
11374
11367
|
super(`Invalid Duration: ${e.toMessage()}`);
|
|
11375
11368
|
}
|
|
11376
11369
|
}
|
|
11377
|
-
class
|
|
11370
|
+
class Os extends os {
|
|
11378
11371
|
}
|
|
11379
|
-
class M_ extends
|
|
11372
|
+
class M_ extends os {
|
|
11380
11373
|
constructor(e) {
|
|
11381
11374
|
super(`Invalid unit ${e}`);
|
|
11382
11375
|
}
|
|
11383
11376
|
}
|
|
11384
|
-
class jt extends
|
|
11377
|
+
class jt extends os {
|
|
11385
11378
|
}
|
|
11386
|
-
class wn extends
|
|
11379
|
+
class wn extends os {
|
|
11387
11380
|
constructor() {
|
|
11388
11381
|
super("Zone is an abstract class");
|
|
11389
11382
|
}
|
|
11390
11383
|
}
|
|
11391
|
-
const Q = "numeric",
|
|
11384
|
+
const Q = "numeric", Br = "short", mr = "long", Da = {
|
|
11392
11385
|
year: Q,
|
|
11393
11386
|
month: Q,
|
|
11394
11387
|
day: Q
|
|
11395
11388
|
}, O_ = {
|
|
11396
11389
|
year: Q,
|
|
11397
|
-
month:
|
|
11390
|
+
month: Br,
|
|
11398
11391
|
day: Q
|
|
11399
11392
|
}, G7 = {
|
|
11400
11393
|
year: Q,
|
|
11401
|
-
month:
|
|
11394
|
+
month: Br,
|
|
11402
11395
|
day: Q,
|
|
11403
|
-
weekday:
|
|
11396
|
+
weekday: Br
|
|
11404
11397
|
}, C_ = {
|
|
11405
11398
|
year: Q,
|
|
11406
11399
|
month: mr,
|
|
@@ -11421,7 +11414,7 @@ const Q = "numeric", Gr = "short", mr = "long", Da = {
|
|
|
11421
11414
|
hour: Q,
|
|
11422
11415
|
minute: Q,
|
|
11423
11416
|
second: Q,
|
|
11424
|
-
timeZoneName:
|
|
11417
|
+
timeZoneName: Br
|
|
11425
11418
|
}, $_ = {
|
|
11426
11419
|
hour: Q,
|
|
11427
11420
|
minute: Q,
|
|
@@ -11441,7 +11434,7 @@ const Q = "numeric", Gr = "short", mr = "long", Da = {
|
|
|
11441
11434
|
minute: Q,
|
|
11442
11435
|
second: Q,
|
|
11443
11436
|
hourCycle: "h23",
|
|
11444
|
-
timeZoneName:
|
|
11437
|
+
timeZoneName: Br
|
|
11445
11438
|
}, V_ = {
|
|
11446
11439
|
hour: Q,
|
|
11447
11440
|
minute: Q,
|
|
@@ -11463,22 +11456,22 @@ const Q = "numeric", Gr = "short", mr = "long", Da = {
|
|
|
11463
11456
|
second: Q
|
|
11464
11457
|
}, G_ = {
|
|
11465
11458
|
year: Q,
|
|
11466
|
-
month:
|
|
11459
|
+
month: Br,
|
|
11467
11460
|
day: Q,
|
|
11468
11461
|
hour: Q,
|
|
11469
11462
|
minute: Q
|
|
11470
11463
|
}, B_ = {
|
|
11471
11464
|
year: Q,
|
|
11472
|
-
month:
|
|
11465
|
+
month: Br,
|
|
11473
11466
|
day: Q,
|
|
11474
11467
|
hour: Q,
|
|
11475
11468
|
minute: Q,
|
|
11476
11469
|
second: Q
|
|
11477
11470
|
}, B7 = {
|
|
11478
11471
|
year: Q,
|
|
11479
|
-
month:
|
|
11472
|
+
month: Br,
|
|
11480
11473
|
day: Q,
|
|
11481
|
-
weekday:
|
|
11474
|
+
weekday: Br,
|
|
11482
11475
|
hour: Q,
|
|
11483
11476
|
minute: Q
|
|
11484
11477
|
}, q_ = {
|
|
@@ -11487,7 +11480,7 @@ const Q = "numeric", Gr = "short", mr = "long", Da = {
|
|
|
11487
11480
|
day: Q,
|
|
11488
11481
|
hour: Q,
|
|
11489
11482
|
minute: Q,
|
|
11490
|
-
timeZoneName:
|
|
11483
|
+
timeZoneName: Br
|
|
11491
11484
|
}, H_ = {
|
|
11492
11485
|
year: Q,
|
|
11493
11486
|
month: mr,
|
|
@@ -11495,7 +11488,7 @@ const Q = "numeric", Gr = "short", mr = "long", Da = {
|
|
|
11495
11488
|
hour: Q,
|
|
11496
11489
|
minute: Q,
|
|
11497
11490
|
second: Q,
|
|
11498
|
-
timeZoneName:
|
|
11491
|
+
timeZoneName: Br
|
|
11499
11492
|
}, Y_ = {
|
|
11500
11493
|
year: Q,
|
|
11501
11494
|
month: mr,
|
|
@@ -11677,14 +11670,14 @@ function Z7(t, e) {
|
|
|
11677
11670
|
return n;
|
|
11678
11671
|
}
|
|
11679
11672
|
const s1 = /* @__PURE__ */ new Map();
|
|
11680
|
-
class
|
|
11673
|
+
class qr extends Un {
|
|
11681
11674
|
/**
|
|
11682
11675
|
* @param {string} name - Zone name
|
|
11683
11676
|
* @return {IANAZone}
|
|
11684
11677
|
*/
|
|
11685
11678
|
static create(e) {
|
|
11686
11679
|
let r = s1.get(e);
|
|
11687
|
-
return r === void 0 && s1.set(e, r = new
|
|
11680
|
+
return r === void 0 && s1.set(e, r = new qr(e)), r;
|
|
11688
11681
|
}
|
|
11689
11682
|
/**
|
|
11690
11683
|
* Reset local caches. Should only be necessary in testing scenarios.
|
|
@@ -11722,7 +11715,7 @@ class Br extends Un {
|
|
|
11722
11715
|
}
|
|
11723
11716
|
}
|
|
11724
11717
|
constructor(e) {
|
|
11725
|
-
super(), this.zoneName = e, this.valid =
|
|
11718
|
+
super(), this.zoneName = e, this.valid = qr.isValidZone(e);
|
|
11726
11719
|
}
|
|
11727
11720
|
/**
|
|
11728
11721
|
* The type of zone. `iana` for all instances of `IANAZone`.
|
|
@@ -11929,7 +11922,7 @@ class aw {
|
|
|
11929
11922
|
this.dt = e;
|
|
11930
11923
|
else if (e.zone.type === "fixed") {
|
|
11931
11924
|
const u = -1 * (e.offset / 60), l = u >= 0 ? `Etc/GMT+${u}` : `Etc/GMT${u}`;
|
|
11932
|
-
e.offset !== 0 &&
|
|
11925
|
+
e.offset !== 0 && qr.create(l).valid ? (s = l, this.dt = e) : (s = "UTC", this.dt = e.offset === 0 ? e : e.setZone("UTC").plus({ minutes: e.offset }), this.originalZone = e.zone);
|
|
11933
11926
|
} else e.zone.type === "system" ? this.dt = e : e.zone.type === "iana" ? (this.dt = e, s = e.zone.name) : (s = "UTC", this.dt = e.setZone("UTC").plus({ minutes: e.offset }), this.originalZone = e.zone);
|
|
11934
11927
|
const i = { ...this.opts };
|
|
11935
11928
|
i.timeZone = i.timeZone || s, this.dtf = vh(r, i);
|
|
@@ -12265,7 +12258,7 @@ function Ln(t, e) {
|
|
|
12265
12258
|
return t;
|
|
12266
12259
|
if (pw(t)) {
|
|
12267
12260
|
const r = t.toLowerCase();
|
|
12268
|
-
return r === "default" ? e : r === "local" || r === "system" ? eu.instance : r === "utc" || r === "gmt" ? Pt.utcInstance : Pt.parseSpecifier(r) ||
|
|
12261
|
+
return r === "default" ? e : r === "local" || r === "system" ? eu.instance : r === "utc" || r === "gmt" ? Pt.utcInstance : Pt.parseSpecifier(r) || qr.create(t);
|
|
12269
12262
|
} else return In(t) ? Pt.instance(t) : typeof t == "object" && "offset" in t && typeof t.offset == "function" ? t : new lw(t);
|
|
12270
12263
|
}
|
|
12271
12264
|
const c0 = {
|
|
@@ -12333,7 +12326,7 @@ const Th = /* @__PURE__ */ new Map();
|
|
|
12333
12326
|
function hw() {
|
|
12334
12327
|
Th.clear();
|
|
12335
12328
|
}
|
|
12336
|
-
function
|
|
12329
|
+
function Rr({ numberingSystem: t }, e = "") {
|
|
12337
12330
|
const r = t || "latn";
|
|
12338
12331
|
let n = Th.get(r);
|
|
12339
12332
|
n === void 0 && (n = /* @__PURE__ */ new Map(), Th.set(r, n));
|
|
@@ -12477,10 +12470,10 @@ class st {
|
|
|
12477
12470
|
* @return {void}
|
|
12478
12471
|
*/
|
|
12479
12472
|
static resetCaches() {
|
|
12480
|
-
Ie.resetCache(),
|
|
12473
|
+
Ie.resetCache(), qr.resetCache(), H.resetCache(), hw();
|
|
12481
12474
|
}
|
|
12482
12475
|
}
|
|
12483
|
-
class
|
|
12476
|
+
class Gr {
|
|
12484
12477
|
constructor(e, r) {
|
|
12485
12478
|
this.reason = e, this.explanation = r;
|
|
12486
12479
|
}
|
|
@@ -12490,7 +12483,7 @@ class Wr {
|
|
|
12490
12483
|
}
|
|
12491
12484
|
const Q_ = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], K_ = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335];
|
|
12492
12485
|
function Tr(t, e) {
|
|
12493
|
-
return new
|
|
12486
|
+
return new Gr(
|
|
12494
12487
|
"unit out of range",
|
|
12495
12488
|
`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`
|
|
12496
12489
|
);
|
|
@@ -12517,9 +12510,9 @@ function $a(t, e = 4, r = 1) {
|
|
|
12517
12510
|
return c < 1 ? (m = n - 1, c = Oi(m, e, r)) : c > Oi(n, e, r) ? (m = n + 1, c = 1) : m = n, { weekYear: m, weekNumber: c, weekday: l, ...su(t) };
|
|
12518
12511
|
}
|
|
12519
12512
|
function Tg(t, e = 4, r = 1) {
|
|
12520
|
-
const { weekYear: n, weekNumber: s, weekday: i } = t, u = h0(f0(n, 1, e), r), l =
|
|
12513
|
+
const { weekYear: n, weekNumber: s, weekday: i } = t, u = h0(f0(n, 1, e), r), l = ks(n);
|
|
12521
12514
|
let c = s * 7 + i - u - 7 + e, m;
|
|
12522
|
-
c < 1 ? (m = n - 1, c +=
|
|
12515
|
+
c < 1 ? (m = n - 1, c += ks(m)) : c > l ? (m = n + 1, c -= ks(n)) : m = n;
|
|
12523
12516
|
const { month: _, day: y } = ty(m, c);
|
|
12524
12517
|
return { year: m, month: _, day: y, ...su(t) };
|
|
12525
12518
|
}
|
|
@@ -12534,7 +12527,7 @@ function Pg(t) {
|
|
|
12534
12527
|
function Ag(t, e) {
|
|
12535
12528
|
if (!ge(t.localWeekday) || !ge(t.localWeekNumber) || !ge(t.localWeekYear)) {
|
|
12536
12529
|
if (!ge(t.weekday) || !ge(t.weekNumber) || !ge(t.weekYear))
|
|
12537
|
-
throw new
|
|
12530
|
+
throw new Os(
|
|
12538
12531
|
"Cannot mix locale-based week fields with ISO-based week fields"
|
|
12539
12532
|
);
|
|
12540
12533
|
return ge(t.localWeekday) || (t.weekday = t.localWeekday), ge(t.localWeekNumber) || (t.weekNumber = t.localWeekNumber), ge(t.localWeekYear) || (t.weekYear = t.localWeekYear), delete t.localWeekday, delete t.localWeekNumber, delete t.localWeekYear, {
|
|
@@ -12553,7 +12546,7 @@ function dw(t, e = 4, r = 1) {
|
|
|
12553
12546
|
return n ? s ? i ? !1 : Tr("weekday", t.weekday) : Tr("week", t.weekNumber) : Tr("weekYear", t.weekYear);
|
|
12554
12547
|
}
|
|
12555
12548
|
function mw(t) {
|
|
12556
|
-
const e = tu(t.year), r = Pr(t.ordinal, 1,
|
|
12549
|
+
const e = tu(t.year), r = Pr(t.ordinal, 1, ks(t.year));
|
|
12557
12550
|
return e ? r ? !1 : Tr("ordinal", t.ordinal) : Tr("year", t.year);
|
|
12558
12551
|
}
|
|
12559
12552
|
function ry(t) {
|
|
@@ -12606,7 +12599,7 @@ function Lg(t, e, r) {
|
|
|
12606
12599
|
function yw(t, e) {
|
|
12607
12600
|
return e.reduce((r, n) => (r[n] = t[n], r), {});
|
|
12608
12601
|
}
|
|
12609
|
-
function
|
|
12602
|
+
function Ws(t, e) {
|
|
12610
12603
|
return Object.prototype.hasOwnProperty.call(t, e);
|
|
12611
12604
|
}
|
|
12612
12605
|
function Ph(t) {
|
|
@@ -12637,7 +12630,7 @@ function Pn(t) {
|
|
|
12637
12630
|
if (!(ge(t) || t === null || t === ""))
|
|
12638
12631
|
return parseInt(t, 10);
|
|
12639
12632
|
}
|
|
12640
|
-
function
|
|
12633
|
+
function Bn(t) {
|
|
12641
12634
|
if (!(ge(t) || t === null || t === ""))
|
|
12642
12635
|
return parseFloat(t);
|
|
12643
12636
|
}
|
|
@@ -12667,7 +12660,7 @@ function m0(t, e, r = "round") {
|
|
|
12667
12660
|
function Ui(t) {
|
|
12668
12661
|
return t % 4 === 0 && (t % 100 !== 0 || t % 400 === 0);
|
|
12669
12662
|
}
|
|
12670
|
-
function
|
|
12663
|
+
function ks(t) {
|
|
12671
12664
|
return Ui(t) ? 366 : 365;
|
|
12672
12665
|
}
|
|
12673
12666
|
function Fa(t, e) {
|
|
@@ -12691,7 +12684,7 @@ function Mg(t, e, r) {
|
|
|
12691
12684
|
}
|
|
12692
12685
|
function Oi(t, e = 4, r = 1) {
|
|
12693
12686
|
const n = Mg(t, e, r), s = Mg(t + 1, e, r);
|
|
12694
|
-
return (
|
|
12687
|
+
return (ks(t) - n + s) / 7;
|
|
12695
12688
|
}
|
|
12696
12689
|
function Ah(t) {
|
|
12697
12690
|
return t > 99 ? t : t > st.twoDigitCutoffYear ? 1900 + t : 2e3 + t;
|
|
@@ -12724,7 +12717,7 @@ function ay(t) {
|
|
|
12724
12717
|
function Ua(t, e) {
|
|
12725
12718
|
const r = {};
|
|
12726
12719
|
for (const n in t)
|
|
12727
|
-
if (
|
|
12720
|
+
if (Ws(t, n)) {
|
|
12728
12721
|
const s = t[n];
|
|
12729
12722
|
if (s == null) continue;
|
|
12730
12723
|
r[e(n)] = ay(s);
|
|
@@ -13132,11 +13125,11 @@ class Wt {
|
|
|
13132
13125
|
}
|
|
13133
13126
|
}
|
|
13134
13127
|
const py = /[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;
|
|
13135
|
-
function
|
|
13128
|
+
function Ys(...t) {
|
|
13136
13129
|
const e = t.reduce((r, n) => r + n.source, "");
|
|
13137
13130
|
return RegExp(`^${e}$`);
|
|
13138
13131
|
}
|
|
13139
|
-
function
|
|
13132
|
+
function Zs(...t) {
|
|
13140
13133
|
return (e) => t.reduce(
|
|
13141
13134
|
([r, n, s], i) => {
|
|
13142
13135
|
const [u, l, c] = i(e, s);
|
|
@@ -13145,7 +13138,7 @@ function Xs(...t) {
|
|
|
13145
13138
|
[{}, null, 1]
|
|
13146
13139
|
).slice(0, 2);
|
|
13147
13140
|
}
|
|
13148
|
-
function
|
|
13141
|
+
function Xs(t, ...e) {
|
|
13149
13142
|
if (t == null)
|
|
13150
13143
|
return [null, null];
|
|
13151
13144
|
for (const [r, n] of e) {
|
|
@@ -13167,22 +13160,22 @@ function gy(...t) {
|
|
|
13167
13160
|
const _y = /(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/, Cw = `(?:${_y.source}?(?:\\[(${py.source})\\])?)?`, p0 = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/, yy = RegExp(`${p0.source}${Cw}`), g0 = RegExp(`(?:[Tt]${yy.source})?`), Rw = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/, Iw = /(\d{4})-?W(\d\d)(?:-?(\d))?/, kw = /(\d{4})-?(\d{3})/, Dw = gy("weekYear", "weekNumber", "weekDay"), $w = gy("year", "ordinal"), Fw = /(\d{4})-(\d\d)-(\d\d)/, by = RegExp(
|
|
13168
13161
|
`${p0.source} ?(?:${_y.source}|(${py.source}))?`
|
|
13169
13162
|
), Uw = RegExp(`(?: ${by.source})?`);
|
|
13170
|
-
function
|
|
13163
|
+
function Ds(t, e, r) {
|
|
13171
13164
|
const n = t[e];
|
|
13172
13165
|
return ge(n) ? r : Pn(n);
|
|
13173
13166
|
}
|
|
13174
13167
|
function zw(t, e) {
|
|
13175
13168
|
return [{
|
|
13176
|
-
year:
|
|
13177
|
-
month:
|
|
13178
|
-
day:
|
|
13169
|
+
year: Ds(t, e),
|
|
13170
|
+
month: Ds(t, e + 1, 1),
|
|
13171
|
+
day: Ds(t, e + 2, 1)
|
|
13179
13172
|
}, null, e + 3];
|
|
13180
13173
|
}
|
|
13181
|
-
function
|
|
13174
|
+
function Js(t, e) {
|
|
13182
13175
|
return [{
|
|
13183
|
-
hours:
|
|
13184
|
-
minutes:
|
|
13185
|
-
seconds:
|
|
13176
|
+
hours: Ds(t, e, 0),
|
|
13177
|
+
minutes: Ds(t, e + 1, 0),
|
|
13178
|
+
seconds: Ds(t, e + 2, 0),
|
|
13186
13179
|
milliseconds: d0(t[e + 3])
|
|
13187
13180
|
}, null, e + 4];
|
|
13188
13181
|
}
|
|
@@ -13191,7 +13184,7 @@ function zi(t, e) {
|
|
|
13191
13184
|
return [{}, s, e + 3];
|
|
13192
13185
|
}
|
|
13193
13186
|
function Vi(t, e) {
|
|
13194
|
-
const r = t[e] ?
|
|
13187
|
+
const r = t[e] ? qr.create(t[e]) : null;
|
|
13195
13188
|
return [{}, r, e + 1];
|
|
13196
13189
|
}
|
|
13197
13190
|
const Vw = RegExp(`^T?${p0.source}$`), jw = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
|
|
@@ -13199,13 +13192,13 @@ function Ww(t) {
|
|
|
13199
13192
|
const [e, r, n, s, i, u, l, c, m] = t, _ = e[0] === "-", y = c && c[0] === "-", v = (S, T = !1) => S !== void 0 && (T || S && _) ? -S : S;
|
|
13200
13193
|
return [
|
|
13201
13194
|
{
|
|
13202
|
-
years: v(
|
|
13203
|
-
months: v(
|
|
13204
|
-
weeks: v(
|
|
13205
|
-
days: v(
|
|
13206
|
-
hours: v(
|
|
13207
|
-
minutes: v(
|
|
13208
|
-
seconds: v(
|
|
13195
|
+
years: v(Bn(r)),
|
|
13196
|
+
months: v(Bn(n)),
|
|
13197
|
+
weeks: v(Bn(s)),
|
|
13198
|
+
days: v(Bn(i)),
|
|
13199
|
+
hours: v(Bn(u)),
|
|
13200
|
+
minutes: v(Bn(l)),
|
|
13201
|
+
seconds: v(Bn(c), c === "-0"),
|
|
13209
13202
|
milliseconds: v(d0(m), y)
|
|
13210
13203
|
}
|
|
13211
13204
|
];
|
|
@@ -13262,28 +13255,28 @@ function Jw(t) {
|
|
|
13262
13255
|
const [, e, r, n, s, i, u, l] = t;
|
|
13263
13256
|
return [_0(e, l, r, n, s, i, u), Pt.utcInstance];
|
|
13264
13257
|
}
|
|
13265
|
-
const Qw =
|
|
13258
|
+
const Qw = Ys(Rw, g0), Kw = Ys(Iw, g0), e4 = Ys(kw, g0), t4 = Ys(yy), wy = Zs(
|
|
13266
13259
|
zw,
|
|
13267
|
-
|
|
13260
|
+
Js,
|
|
13268
13261
|
zi,
|
|
13269
13262
|
Vi
|
|
13270
|
-
), r4 =
|
|
13263
|
+
), r4 = Zs(
|
|
13271
13264
|
Dw,
|
|
13272
|
-
|
|
13265
|
+
Js,
|
|
13273
13266
|
zi,
|
|
13274
13267
|
Vi
|
|
13275
|
-
), n4 =
|
|
13268
|
+
), n4 = Zs(
|
|
13276
13269
|
$w,
|
|
13277
|
-
|
|
13270
|
+
Js,
|
|
13278
13271
|
zi,
|
|
13279
13272
|
Vi
|
|
13280
|
-
), s4 =
|
|
13281
|
-
|
|
13273
|
+
), s4 = Zs(
|
|
13274
|
+
Js,
|
|
13282
13275
|
zi,
|
|
13283
13276
|
Vi
|
|
13284
13277
|
);
|
|
13285
13278
|
function i4(t) {
|
|
13286
|
-
return
|
|
13279
|
+
return Xs(
|
|
13287
13280
|
t,
|
|
13288
13281
|
[Qw, wy],
|
|
13289
13282
|
[Kw, r4],
|
|
@@ -13292,10 +13285,10 @@ function i4(t) {
|
|
|
13292
13285
|
);
|
|
13293
13286
|
}
|
|
13294
13287
|
function o4(t) {
|
|
13295
|
-
return
|
|
13288
|
+
return Xs(Hw(t), [Bw, qw]);
|
|
13296
13289
|
}
|
|
13297
13290
|
function a4(t) {
|
|
13298
|
-
return
|
|
13291
|
+
return Xs(
|
|
13299
13292
|
t,
|
|
13300
13293
|
[Yw, Cg],
|
|
13301
13294
|
[Zw, Cg],
|
|
@@ -13303,19 +13296,19 @@ function a4(t) {
|
|
|
13303
13296
|
);
|
|
13304
13297
|
}
|
|
13305
13298
|
function u4(t) {
|
|
13306
|
-
return
|
|
13299
|
+
return Xs(t, [jw, Ww]);
|
|
13307
13300
|
}
|
|
13308
|
-
const l4 =
|
|
13301
|
+
const l4 = Zs(Js);
|
|
13309
13302
|
function c4(t) {
|
|
13310
|
-
return
|
|
13303
|
+
return Xs(t, [Vw, l4]);
|
|
13311
13304
|
}
|
|
13312
|
-
const f4 =
|
|
13313
|
-
|
|
13305
|
+
const f4 = Ys(Fw, Uw), h4 = Ys(by), d4 = Zs(
|
|
13306
|
+
Js,
|
|
13314
13307
|
zi,
|
|
13315
13308
|
Vi
|
|
13316
13309
|
);
|
|
13317
13310
|
function m4(t) {
|
|
13318
|
-
return
|
|
13311
|
+
return Xs(
|
|
13319
13312
|
t,
|
|
13320
13313
|
[f4, wy],
|
|
13321
13314
|
[h4, d4]
|
|
@@ -13367,7 +13360,7 @@ const Rg = "Invalid Duration", vy = {
|
|
|
13367
13360
|
milliseconds: 720 * 60 * 60 * 1e3
|
|
13368
13361
|
},
|
|
13369
13362
|
...vy
|
|
13370
|
-
}, wr = 146097 / 400,
|
|
13363
|
+
}, wr = 146097 / 400, _s = 146097 / 4800, g4 = {
|
|
13371
13364
|
years: {
|
|
13372
13365
|
quarters: 4,
|
|
13373
13366
|
months: 12,
|
|
@@ -13388,15 +13381,15 @@ const Rg = "Invalid Duration", vy = {
|
|
|
13388
13381
|
milliseconds: wr * 24 * 60 * 60 * 1e3 / 4
|
|
13389
13382
|
},
|
|
13390
13383
|
months: {
|
|
13391
|
-
weeks:
|
|
13392
|
-
days:
|
|
13393
|
-
hours:
|
|
13394
|
-
minutes:
|
|
13395
|
-
seconds:
|
|
13396
|
-
milliseconds:
|
|
13384
|
+
weeks: _s / 7,
|
|
13385
|
+
days: _s,
|
|
13386
|
+
hours: _s * 24,
|
|
13387
|
+
minutes: _s * 24 * 60,
|
|
13388
|
+
seconds: _s * 24 * 60 * 60,
|
|
13389
|
+
milliseconds: _s * 24 * 60 * 60 * 1e3
|
|
13397
13390
|
},
|
|
13398
13391
|
...vy
|
|
13399
|
-
},
|
|
13392
|
+
}, Zn = [
|
|
13400
13393
|
"years",
|
|
13401
13394
|
"quarters",
|
|
13402
13395
|
"months",
|
|
@@ -13406,7 +13399,7 @@ const Rg = "Invalid Duration", vy = {
|
|
|
13406
13399
|
"minutes",
|
|
13407
13400
|
"seconds",
|
|
13408
13401
|
"milliseconds"
|
|
13409
|
-
], _4 =
|
|
13402
|
+
], _4 = Zn.slice(0).reverse();
|
|
13410
13403
|
function sn(t, e, r = !1) {
|
|
13411
13404
|
const n = {
|
|
13412
13405
|
values: r ? e.values : { ...t.values, ...e.values || {} },
|
|
@@ -13424,7 +13417,7 @@ function Sy(t, e) {
|
|
|
13424
13417
|
}
|
|
13425
13418
|
function Ig(t, e) {
|
|
13426
13419
|
const r = Sy(t, e) < 0 ? -1 : 1;
|
|
13427
|
-
|
|
13420
|
+
Zn.reduceRight((n, s) => {
|
|
13428
13421
|
if (ge(e[s]))
|
|
13429
13422
|
return n;
|
|
13430
13423
|
if (n) {
|
|
@@ -13432,7 +13425,7 @@ function Ig(t, e) {
|
|
|
13432
13425
|
e[s] += l * r, e[n] -= l * u * r;
|
|
13433
13426
|
}
|
|
13434
13427
|
return s;
|
|
13435
|
-
}, null),
|
|
13428
|
+
}, null), Zn.reduce((n, s) => {
|
|
13436
13429
|
if (ge(e[s]))
|
|
13437
13430
|
return n;
|
|
13438
13431
|
if (n) {
|
|
@@ -13569,7 +13562,7 @@ class Ae {
|
|
|
13569
13562
|
static invalid(e, r = null) {
|
|
13570
13563
|
if (!e)
|
|
13571
13564
|
throw new jt("need to specify a reason the Duration is invalid");
|
|
13572
|
-
const n = e instanceof
|
|
13565
|
+
const n = e instanceof Gr ? e : new Gr(e, r);
|
|
13573
13566
|
if (st.throwOnInvalid)
|
|
13574
13567
|
throw new W7(n);
|
|
13575
13568
|
return new Ae({ invalid: n });
|
|
@@ -13675,7 +13668,7 @@ class Ae {
|
|
|
13675
13668
|
*/
|
|
13676
13669
|
toHuman(e = {}) {
|
|
13677
13670
|
if (!this.isValid) return Rg;
|
|
13678
|
-
const r = e.showZeros !== !1, n =
|
|
13671
|
+
const r = e.showZeros !== !1, n = Zn.map((s) => {
|
|
13679
13672
|
const i = this.values[s];
|
|
13680
13673
|
return ge(i) || i === 0 && !r ? null : this.loc.numberFormatter({ style: "unit", unitDisplay: "long", ...e, unit: s.slice(0, -1) }).format(i);
|
|
13681
13674
|
}).filter((s) => s);
|
|
@@ -13775,8 +13768,8 @@ class Ae {
|
|
|
13775
13768
|
plus(e) {
|
|
13776
13769
|
if (!this.isValid) return this;
|
|
13777
13770
|
const r = Ae.fromDurationLike(e), n = {};
|
|
13778
|
-
for (const s of
|
|
13779
|
-
(
|
|
13771
|
+
for (const s of Zn)
|
|
13772
|
+
(Ws(r.values, s) || Ws(this.values, s)) && (n[s] = r.get(s) + this.get(s));
|
|
13780
13773
|
return sn(this, { values: n }, !0);
|
|
13781
13774
|
}
|
|
13782
13775
|
/**
|
|
@@ -13888,7 +13881,7 @@ class Ae {
|
|
|
13888
13881
|
e = e.map((u) => Ae.normalizeUnit(u));
|
|
13889
13882
|
const r = {}, n = {}, s = this.toObject();
|
|
13890
13883
|
let i;
|
|
13891
|
-
for (const u of
|
|
13884
|
+
for (const u of Zn)
|
|
13892
13885
|
if (e.indexOf(u) >= 0) {
|
|
13893
13886
|
i = u;
|
|
13894
13887
|
let l = 0;
|
|
@@ -14038,13 +14031,13 @@ class Ae {
|
|
|
14038
14031
|
function r(n, s) {
|
|
14039
14032
|
return n === void 0 || n === 0 ? s === void 0 || s === 0 : n === s;
|
|
14040
14033
|
}
|
|
14041
|
-
for (const n of
|
|
14034
|
+
for (const n of Zn)
|
|
14042
14035
|
if (!r(this.values[n], e.values[n]))
|
|
14043
14036
|
return !1;
|
|
14044
14037
|
return !0;
|
|
14045
14038
|
}
|
|
14046
14039
|
}
|
|
14047
|
-
const
|
|
14040
|
+
const ys = "Invalid Interval";
|
|
14048
14041
|
function y4(t, e) {
|
|
14049
14042
|
return !t || !t.isValid ? rt.invalid("missing or invalid start") : !e || !e.isValid ? rt.invalid("missing or invalid end") : e < t ? rt.invalid(
|
|
14050
14043
|
"end before start",
|
|
@@ -14067,7 +14060,7 @@ class rt {
|
|
|
14067
14060
|
static invalid(e, r = null) {
|
|
14068
14061
|
if (!e)
|
|
14069
14062
|
throw new jt("need to specify a reason the Interval is invalid");
|
|
14070
|
-
const n = e instanceof
|
|
14063
|
+
const n = e instanceof Gr ? e : new Gr(e, r);
|
|
14071
14064
|
if (st.throwOnInvalid)
|
|
14072
14065
|
throw new j7(n);
|
|
14073
14066
|
return new rt({ invalid: n });
|
|
@@ -14413,7 +14406,7 @@ class rt {
|
|
|
14413
14406
|
* @return {string}
|
|
14414
14407
|
*/
|
|
14415
14408
|
toString() {
|
|
14416
|
-
return this.isValid ? `[${this.s.toISO()} – ${this.e.toISO()})` :
|
|
14409
|
+
return this.isValid ? `[${this.s.toISO()} – ${this.e.toISO()})` : ys;
|
|
14417
14410
|
}
|
|
14418
14411
|
/**
|
|
14419
14412
|
* Returns a string representation of this Interval appropriate for the REPL.
|
|
@@ -14441,7 +14434,7 @@ class rt {
|
|
|
14441
14434
|
* @return {string}
|
|
14442
14435
|
*/
|
|
14443
14436
|
toLocaleString(e = Da, r = {}) {
|
|
14444
|
-
return this.isValid ? Wt.create(this.s.loc.clone(r), e).formatInterval(this) :
|
|
14437
|
+
return this.isValid ? Wt.create(this.s.loc.clone(r), e).formatInterval(this) : ys;
|
|
14445
14438
|
}
|
|
14446
14439
|
/**
|
|
14447
14440
|
* Returns an ISO 8601-compliant string representation of this Interval.
|
|
@@ -14450,7 +14443,7 @@ class rt {
|
|
|
14450
14443
|
* @return {string}
|
|
14451
14444
|
*/
|
|
14452
14445
|
toISO(e) {
|
|
14453
|
-
return this.isValid ? `${this.s.toISO(e)}/${this.e.toISO(e)}` :
|
|
14446
|
+
return this.isValid ? `${this.s.toISO(e)}/${this.e.toISO(e)}` : ys;
|
|
14454
14447
|
}
|
|
14455
14448
|
/**
|
|
14456
14449
|
* Returns an ISO 8601-compliant string representation of date of this Interval.
|
|
@@ -14459,7 +14452,7 @@ class rt {
|
|
|
14459
14452
|
* @return {string}
|
|
14460
14453
|
*/
|
|
14461
14454
|
toISODate() {
|
|
14462
|
-
return this.isValid ? `${this.s.toISODate()}/${this.e.toISODate()}` :
|
|
14455
|
+
return this.isValid ? `${this.s.toISODate()}/${this.e.toISODate()}` : ys;
|
|
14463
14456
|
}
|
|
14464
14457
|
/**
|
|
14465
14458
|
* Returns an ISO 8601-compliant string representation of time of this Interval.
|
|
@@ -14469,7 +14462,7 @@ class rt {
|
|
|
14469
14462
|
* @return {string}
|
|
14470
14463
|
*/
|
|
14471
14464
|
toISOTime(e) {
|
|
14472
|
-
return this.isValid ? `${this.s.toISOTime(e)}/${this.e.toISOTime(e)}` :
|
|
14465
|
+
return this.isValid ? `${this.s.toISOTime(e)}/${this.e.toISOTime(e)}` : ys;
|
|
14473
14466
|
}
|
|
14474
14467
|
/**
|
|
14475
14468
|
* Returns a string representation of this Interval formatted according to the specified format
|
|
@@ -14483,7 +14476,7 @@ class rt {
|
|
|
14483
14476
|
* @return {string}
|
|
14484
14477
|
*/
|
|
14485
14478
|
toFormat(e, { separator: r = " – " } = {}) {
|
|
14486
|
-
return this.isValid ? `${this.s.toFormat(e)}${r}${this.e.toFormat(e)}` :
|
|
14479
|
+
return this.isValid ? `${this.s.toFormat(e)}${r}${this.e.toFormat(e)}` : ys;
|
|
14487
14480
|
}
|
|
14488
14481
|
/**
|
|
14489
14482
|
* Return a Duration representing the time spanned by this interval.
|
|
@@ -14527,7 +14520,7 @@ class ko {
|
|
|
14527
14520
|
* @return {boolean}
|
|
14528
14521
|
*/
|
|
14529
14522
|
static isValidIANAZone(e) {
|
|
14530
|
-
return
|
|
14523
|
+
return qr.isValidZone(e);
|
|
14531
14524
|
}
|
|
14532
14525
|
/**
|
|
14533
14526
|
* Converts the input into a {@link Zone} instance.
|
|
@@ -14725,7 +14718,7 @@ function N4(t) {
|
|
|
14725
14718
|
function $g(t) {
|
|
14726
14719
|
return t.replace(/\./g, "").replace(Ey, " ").toLowerCase();
|
|
14727
14720
|
}
|
|
14728
|
-
function
|
|
14721
|
+
function Ir(t, e) {
|
|
14729
14722
|
return t === null ? null : {
|
|
14730
14723
|
regex: RegExp(t.map(N4).join("|")),
|
|
14731
14724
|
deser: ([r]) => t.findIndex((n) => $g(r) === $g(n)) + e
|
|
@@ -14741,15 +14734,15 @@ function E4(t) {
|
|
|
14741
14734
|
return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
|
|
14742
14735
|
}
|
|
14743
14736
|
function x4(t, e) {
|
|
14744
|
-
const r =
|
|
14737
|
+
const r = Rr(e), n = Rr(e, "{2}"), s = Rr(e, "{3}"), i = Rr(e, "{4}"), u = Rr(e, "{6}"), l = Rr(e, "{1,2}"), c = Rr(e, "{1,3}"), m = Rr(e, "{1,6}"), _ = Rr(e, "{1,9}"), y = Rr(e, "{2,4}"), v = Rr(e, "{4,6}"), S = (D) => ({ regex: RegExp(E4(D.val)), deser: ([z]) => z, literal: !0 }), L = ((D) => {
|
|
14745
14738
|
if (t.literal)
|
|
14746
14739
|
return S(D);
|
|
14747
14740
|
switch (D.val) {
|
|
14748
14741
|
// era
|
|
14749
14742
|
case "G":
|
|
14750
|
-
return
|
|
14743
|
+
return Ir(e.eras("short"), 0);
|
|
14751
14744
|
case "GG":
|
|
14752
|
-
return
|
|
14745
|
+
return Ir(e.eras("long"), 0);
|
|
14753
14746
|
// years
|
|
14754
14747
|
case "y":
|
|
14755
14748
|
return Ce(m);
|
|
@@ -14767,17 +14760,17 @@ function x4(t, e) {
|
|
|
14767
14760
|
case "MM":
|
|
14768
14761
|
return Ce(n);
|
|
14769
14762
|
case "MMM":
|
|
14770
|
-
return
|
|
14763
|
+
return Ir(e.months("short", !0), 1);
|
|
14771
14764
|
case "MMMM":
|
|
14772
|
-
return
|
|
14765
|
+
return Ir(e.months("long", !0), 1);
|
|
14773
14766
|
case "L":
|
|
14774
14767
|
return Ce(l);
|
|
14775
14768
|
case "LL":
|
|
14776
14769
|
return Ce(n);
|
|
14777
14770
|
case "LLL":
|
|
14778
|
-
return
|
|
14771
|
+
return Ir(e.months("short", !1), 1);
|
|
14779
14772
|
case "LLLL":
|
|
14780
|
-
return
|
|
14773
|
+
return Ir(e.months("long", !1), 1);
|
|
14781
14774
|
// dates
|
|
14782
14775
|
case "d":
|
|
14783
14776
|
return Ce(l);
|
|
@@ -14821,7 +14814,7 @@ function x4(t, e) {
|
|
|
14821
14814
|
return Ce(r);
|
|
14822
14815
|
// meridiem
|
|
14823
14816
|
case "a":
|
|
14824
|
-
return
|
|
14817
|
+
return Ir(e.meridiems(), 0);
|
|
14825
14818
|
// weekYear (k)
|
|
14826
14819
|
case "kkkk":
|
|
14827
14820
|
return Ce(i);
|
|
@@ -14837,13 +14830,13 @@ function x4(t, e) {
|
|
|
14837
14830
|
case "c":
|
|
14838
14831
|
return Ce(r);
|
|
14839
14832
|
case "EEE":
|
|
14840
|
-
return
|
|
14833
|
+
return Ir(e.weekdays("short", !1), 1);
|
|
14841
14834
|
case "EEEE":
|
|
14842
|
-
return
|
|
14835
|
+
return Ir(e.weekdays("long", !1), 1);
|
|
14843
14836
|
case "ccc":
|
|
14844
|
-
return
|
|
14837
|
+
return Ir(e.weekdays("short", !0), 1);
|
|
14845
14838
|
case "cccc":
|
|
14846
|
-
return
|
|
14839
|
+
return Ir(e.weekdays("long", !0), 1);
|
|
14847
14840
|
// offset/zone
|
|
14848
14841
|
case "Z":
|
|
14849
14842
|
case "ZZ":
|
|
@@ -14936,7 +14929,7 @@ function L4(t, e, r) {
|
|
|
14936
14929
|
const s = {};
|
|
14937
14930
|
let i = 1;
|
|
14938
14931
|
for (const u in r)
|
|
14939
|
-
if (
|
|
14932
|
+
if (Ws(r, u)) {
|
|
14940
14933
|
const l = r[u], c = l.groups ? l.groups + 1 : 1;
|
|
14941
14934
|
!l.literal && l.token && (s[l.token.val[0]] = l.deser(n.slice(i, i + c))), i += c;
|
|
14942
14935
|
}
|
|
@@ -14979,7 +14972,7 @@ function M4(t) {
|
|
|
14979
14972
|
}
|
|
14980
14973
|
};
|
|
14981
14974
|
let r = null, n;
|
|
14982
|
-
return ge(t.z) || (r =
|
|
14975
|
+
return ge(t.z) || (r = qr.create(t.z)), ge(t.Z) || (r || (r = new Pt(t.Z)), n = t.Z), ge(t.q) || (t.M = (t.q - 1) * 3 + 1), ge(t.h) || (t.h < 12 && t.a === 1 ? t.h += 12 : t.h === 12 && t.a === 0 && (t.h = 0)), t.G === 0 && t.y && (t.y = -t.y), ge(t.u) || (t.S = d0(t.u)), [Object.keys(t).reduce((i, u) => {
|
|
14983
14976
|
const l = e(u);
|
|
14984
14977
|
return l && (i[l] = t[u]), i;
|
|
14985
14978
|
}, {}), r, n];
|
|
@@ -15007,8 +15000,8 @@ class Ty {
|
|
|
15007
15000
|
explainFromTokens(e) {
|
|
15008
15001
|
if (this.isValid) {
|
|
15009
15002
|
const [r, n] = L4(e, this.regex, this.handlers), [s, i, u] = n ? M4(n) : [null, null, void 0];
|
|
15010
|
-
if (
|
|
15011
|
-
throw new
|
|
15003
|
+
if (Ws(n, "a") && Ws(n, "H"))
|
|
15004
|
+
throw new Os(
|
|
15012
15005
|
"Can't include meridiem when specifying 24-hour format"
|
|
15013
15006
|
);
|
|
15014
15007
|
return {
|
|
@@ -15046,7 +15039,7 @@ function Ay(t, e) {
|
|
|
15046
15039
|
}
|
|
15047
15040
|
const u1 = "Invalid DateTime", Ug = 864e13;
|
|
15048
15041
|
function yi(t) {
|
|
15049
|
-
return new
|
|
15042
|
+
return new Gr("unsupported zone", `the zone "${t.name}" is not supported`);
|
|
15050
15043
|
}
|
|
15051
15044
|
function l1(t) {
|
|
15052
15045
|
return t.weekData === null && (t.weekData = $a(t.c)), t.weekData;
|
|
@@ -15058,7 +15051,7 @@ function c1(t) {
|
|
|
15058
15051
|
t.loc.getStartOfWeek()
|
|
15059
15052
|
)), t.localWeekData;
|
|
15060
15053
|
}
|
|
15061
|
-
function
|
|
15054
|
+
function qn(t, e) {
|
|
15062
15055
|
const r = {
|
|
15063
15056
|
ts: t.ts,
|
|
15064
15057
|
zone: t.zone,
|
|
@@ -15114,7 +15107,7 @@ function zg(t, e) {
|
|
|
15114
15107
|
let [c, m] = Ly(l, r, t.zone);
|
|
15115
15108
|
return u !== 0 && (c += u, m = t.zone.offset(c)), { ts: c, o: m };
|
|
15116
15109
|
}
|
|
15117
|
-
function
|
|
15110
|
+
function bs(t, e, r, n, s, i) {
|
|
15118
15111
|
const { setZone: u, zone: l } = r;
|
|
15119
15112
|
if (t && Object.keys(t).length !== 0 || e) {
|
|
15120
15113
|
const c = e || l, m = H.fromObject(t, {
|
|
@@ -15125,7 +15118,7 @@ function ws(t, e, r, n, s, i) {
|
|
|
15125
15118
|
return u ? m : m.setZone(l);
|
|
15126
15119
|
} else
|
|
15127
15120
|
return H.invalid(
|
|
15128
|
-
new
|
|
15121
|
+
new Gr("unparsable", `the input "${s}" can't be parsed as ${n}`)
|
|
15129
15122
|
);
|
|
15130
15123
|
}
|
|
15131
15124
|
function Fo(t, e, r = !0) {
|
|
@@ -15288,7 +15281,7 @@ class H {
|
|
|
15288
15281
|
*/
|
|
15289
15282
|
constructor(e) {
|
|
15290
15283
|
const r = e.zone || st.defaultZone;
|
|
15291
|
-
let n = e.invalid || (Number.isNaN(e.ts) ? new
|
|
15284
|
+
let n = e.invalid || (Number.isNaN(e.ts) ? new Gr("invalid input") : null) || (r.isValid ? null : yi(r));
|
|
15292
15285
|
this.ts = ge(e.ts) ? st.now() : e.ts;
|
|
15293
15286
|
let s = null, i = null;
|
|
15294
15287
|
if (!n)
|
|
@@ -15296,7 +15289,7 @@ class H {
|
|
|
15296
15289
|
[s, i] = [e.old.c, e.old.o];
|
|
15297
15290
|
else {
|
|
15298
15291
|
const l = In(e.o) && !e.old ? e.o : r.offset(this.ts);
|
|
15299
|
-
s = $o(this.ts, l), n = Number.isNaN(s.year) ? new
|
|
15292
|
+
s = $o(this.ts, l), n = Number.isNaN(s.year) ? new Gr("invalid input") : null, s = n ? null : s, i = n ? null : l;
|
|
15300
15293
|
}
|
|
15301
15294
|
this._zone = r, this.loc = e.loc || Ie.create(), this.invalid = n, this.weekData = null, this.localWeekData = null, this.c = s, this.o = i, this.isLuxonDateTime = !0;
|
|
15302
15295
|
}
|
|
@@ -15465,11 +15458,11 @@ class H {
|
|
|
15465
15458
|
return H.invalid(yi(n));
|
|
15466
15459
|
const s = Ie.fromObject(r), i = Ua(e, jg), { minDaysInFirstWeek: u, startOfWeek: l } = Ag(i, s), c = st.now(), m = ge(r.specificOffset) ? n.offset(c) : r.specificOffset, _ = !ge(i.ordinal), y = !ge(i.year), v = !ge(i.month) || !ge(i.day), S = y || v, T = i.weekYear || i.weekNumber;
|
|
15467
15460
|
if ((S || _) && T)
|
|
15468
|
-
throw new
|
|
15461
|
+
throw new Os(
|
|
15469
15462
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
|
15470
15463
|
);
|
|
15471
15464
|
if (v && _)
|
|
15472
|
-
throw new
|
|
15465
|
+
throw new Os("Can't mix ordinal dates with month/day");
|
|
15473
15466
|
const L = T || i.weekday && !S;
|
|
15474
15467
|
let D, z, W = $o(c, m);
|
|
15475
15468
|
L ? (D = D4, z = I4, W = $a(W, u, l)) : _ ? (D = $4, z = k4, W = o1(W)) : (D = ra, z = My);
|
|
@@ -15511,7 +15504,7 @@ class H {
|
|
|
15511
15504
|
*/
|
|
15512
15505
|
static fromISO(e, r = {}) {
|
|
15513
15506
|
const [n, s] = i4(e);
|
|
15514
|
-
return
|
|
15507
|
+
return bs(n, s, r, "ISO 8601", e);
|
|
15515
15508
|
}
|
|
15516
15509
|
/**
|
|
15517
15510
|
* Create a DateTime from an RFC 2822 string
|
|
@@ -15530,7 +15523,7 @@ class H {
|
|
|
15530
15523
|
*/
|
|
15531
15524
|
static fromRFC2822(e, r = {}) {
|
|
15532
15525
|
const [n, s] = o4(e);
|
|
15533
|
-
return
|
|
15526
|
+
return bs(n, s, r, "RFC 2822", e);
|
|
15534
15527
|
}
|
|
15535
15528
|
/**
|
|
15536
15529
|
* Create a DateTime from an HTTP header date
|
|
@@ -15550,7 +15543,7 @@ class H {
|
|
|
15550
15543
|
*/
|
|
15551
15544
|
static fromHTTP(e, r = {}) {
|
|
15552
15545
|
const [n, s] = a4(e);
|
|
15553
|
-
return
|
|
15546
|
+
return bs(n, s, r, "HTTP", r);
|
|
15554
15547
|
}
|
|
15555
15548
|
/**
|
|
15556
15549
|
* Create a DateTime from an input string and format string.
|
|
@@ -15574,7 +15567,7 @@ class H {
|
|
|
15574
15567
|
numberingSystem: i,
|
|
15575
15568
|
defaultToEN: !0
|
|
15576
15569
|
}), [l, c, m, _] = R4(u, e, r);
|
|
15577
|
-
return _ ? H.invalid(_) :
|
|
15570
|
+
return _ ? H.invalid(_) : bs(l, c, n, `format ${r}`, e, m);
|
|
15578
15571
|
}
|
|
15579
15572
|
/**
|
|
15580
15573
|
* @deprecated use fromFormat instead
|
|
@@ -15605,7 +15598,7 @@ class H {
|
|
|
15605
15598
|
*/
|
|
15606
15599
|
static fromSQL(e, r = {}) {
|
|
15607
15600
|
const [n, s] = m4(e);
|
|
15608
|
-
return
|
|
15601
|
+
return bs(n, s, r, "SQL", e);
|
|
15609
15602
|
}
|
|
15610
15603
|
/**
|
|
15611
15604
|
* Create an invalid DateTime.
|
|
@@ -15616,7 +15609,7 @@ class H {
|
|
|
15616
15609
|
static invalid(e, r = null) {
|
|
15617
15610
|
if (!e)
|
|
15618
15611
|
throw new jt("need to specify a reason the DateTime is invalid");
|
|
15619
|
-
const n = e instanceof
|
|
15612
|
+
const n = e instanceof Gr ? e : new Gr(e, r);
|
|
15620
15613
|
if (st.throwOnInvalid)
|
|
15621
15614
|
throw new V7(n);
|
|
15622
15615
|
return new H({ invalid: n });
|
|
@@ -15952,7 +15945,7 @@ class H {
|
|
|
15952
15945
|
if (u === l)
|
|
15953
15946
|
return [this];
|
|
15954
15947
|
const c = n - u * r, m = n - l * r, _ = $o(c, u), y = $o(m, l);
|
|
15955
|
-
return _.hour === y.hour && _.minute === y.minute && _.second === y.second && _.millisecond === y.millisecond ? [
|
|
15948
|
+
return _.hour === y.hour && _.minute === y.minute && _.second === y.second && _.millisecond === y.millisecond ? [qn(this, { ts: c }), qn(this, { ts: m })] : [this];
|
|
15956
15949
|
}
|
|
15957
15950
|
/**
|
|
15958
15951
|
* Returns true if this DateTime is in a leap year, false otherwise
|
|
@@ -15979,7 +15972,7 @@ class H {
|
|
|
15979
15972
|
* @type {number}
|
|
15980
15973
|
*/
|
|
15981
15974
|
get daysInYear() {
|
|
15982
|
-
return this.isValid ?
|
|
15975
|
+
return this.isValid ? ks(this.year) : NaN;
|
|
15983
15976
|
}
|
|
15984
15977
|
/**
|
|
15985
15978
|
* Returns the number of weeks in this DateTime's year
|
|
@@ -16056,7 +16049,7 @@ class H {
|
|
|
16056
16049
|
const i = e.offset(this.ts), u = this.toObject();
|
|
16057
16050
|
[s] = ta(u, i, e);
|
|
16058
16051
|
}
|
|
16059
|
-
return
|
|
16052
|
+
return qn(this, { ts: s, zone: e });
|
|
16060
16053
|
} else
|
|
16061
16054
|
return H.invalid(yi(e));
|
|
16062
16055
|
}
|
|
@@ -16068,7 +16061,7 @@ class H {
|
|
|
16068
16061
|
*/
|
|
16069
16062
|
reconfigure({ locale: e, numberingSystem: r, outputCalendar: n } = {}) {
|
|
16070
16063
|
const s = this.loc.clone({ locale: e, numberingSystem: r, outputCalendar: n });
|
|
16071
|
-
return
|
|
16064
|
+
return qn(this, { loc: s });
|
|
16072
16065
|
}
|
|
16073
16066
|
/**
|
|
16074
16067
|
* "Set" the locale. Returns a newly-constructed DateTime.
|
|
@@ -16096,11 +16089,11 @@ class H {
|
|
|
16096
16089
|
if (!this.isValid) return this;
|
|
16097
16090
|
const r = Ua(e, jg), { minDaysInFirstWeek: n, startOfWeek: s } = Ag(r, this.loc), i = !ge(r.weekYear) || !ge(r.weekNumber) || !ge(r.weekday), u = !ge(r.ordinal), l = !ge(r.year), c = !ge(r.month) || !ge(r.day), m = l || c, _ = r.weekYear || r.weekNumber;
|
|
16098
16091
|
if ((m || u) && _)
|
|
16099
|
-
throw new
|
|
16092
|
+
throw new Os(
|
|
16100
16093
|
"Can't mix weekYear/weekNumber units with year/month/day or ordinals"
|
|
16101
16094
|
);
|
|
16102
16095
|
if (c && u)
|
|
16103
|
-
throw new
|
|
16096
|
+
throw new Os("Can't mix ordinal dates with month/day");
|
|
16104
16097
|
let y;
|
|
16105
16098
|
i ? y = Tg(
|
|
16106
16099
|
{ ...$a(this.c, n, s), ...r },
|
|
@@ -16108,7 +16101,7 @@ class H {
|
|
|
16108
16101
|
s
|
|
16109
16102
|
) : ge(r.ordinal) ? (y = { ...this.toObject(), ...r }, ge(r.day) && (y.day = Math.min(Fa(y.year, y.month), y.day))) : y = Pg({ ...o1(this.c), ...r });
|
|
16110
16103
|
const [v, S] = ta(y, this.o, this.zone);
|
|
16111
|
-
return
|
|
16104
|
+
return qn(this, { ts: v, o: S });
|
|
16112
16105
|
}
|
|
16113
16106
|
/**
|
|
16114
16107
|
* Add a period of time to this DateTime and return the resulting DateTime
|
|
@@ -16126,7 +16119,7 @@ class H {
|
|
|
16126
16119
|
plus(e) {
|
|
16127
16120
|
if (!this.isValid) return this;
|
|
16128
16121
|
const r = Ae.fromDurationLike(e);
|
|
16129
|
-
return
|
|
16122
|
+
return qn(this, zg(this, r));
|
|
16130
16123
|
}
|
|
16131
16124
|
/**
|
|
16132
16125
|
* Subtract a period of time to this DateTime and return the resulting DateTime
|
|
@@ -16137,7 +16130,7 @@ class H {
|
|
|
16137
16130
|
minus(e) {
|
|
16138
16131
|
if (!this.isValid) return this;
|
|
16139
16132
|
const r = Ae.fromDurationLike(e).negate();
|
|
16140
|
-
return
|
|
16133
|
+
return qn(this, zg(this, r));
|
|
16141
16134
|
}
|
|
16142
16135
|
/**
|
|
16143
16136
|
* "Set" this DateTime to the beginning of a unit of time.
|
|
@@ -16693,7 +16686,7 @@ class H {
|
|
|
16693
16686
|
`fromFormatParser called with a locale of ${u}, but the format parser was created for ${r.locale}`
|
|
16694
16687
|
);
|
|
16695
16688
|
const { result: l, zone: c, specificOffset: m, invalidReason: _ } = r.explainFromTokens(e);
|
|
16696
|
-
return _ ? H.invalid(_) :
|
|
16689
|
+
return _ ? H.invalid(_) : bs(
|
|
16697
16690
|
l,
|
|
16698
16691
|
c,
|
|
16699
16692
|
n,
|
|
@@ -16871,14 +16864,14 @@ function di(t) {
|
|
|
16871
16864
|
}
|
|
16872
16865
|
let Er = class {
|
|
16873
16866
|
static {
|
|
16874
|
-
this.instance = new
|
|
16867
|
+
this.instance = new qr("Etc/UTC");
|
|
16875
16868
|
}
|
|
16876
16869
|
};
|
|
16877
|
-
function
|
|
16870
|
+
function xs(t) {
|
|
16878
16871
|
return t instanceof Un ? t === Er.instance : t?.toString().toLowerCase() === "unknown";
|
|
16879
16872
|
}
|
|
16880
16873
|
function h1(t) {
|
|
16881
|
-
return
|
|
16874
|
+
return xs(t) ? Er.instance : t;
|
|
16882
16875
|
}
|
|
16883
16876
|
const U4 = { TimeZoneNotRecognized: "Timezone identifier has not been recognized." };
|
|
16884
16877
|
let z4 = class Oy extends Error {
|
|
@@ -16886,10 +16879,10 @@ let z4 = class Oy extends Error {
|
|
|
16886
16879
|
super(Ka(U4[e], r)), this.declaredRootClass = "esri.arcade.arcadedate.dateerror", Error.captureStackTrace && Error.captureStackTrace(this, Oy);
|
|
16887
16880
|
}
|
|
16888
16881
|
};
|
|
16889
|
-
function
|
|
16882
|
+
function ws(t, e, r) {
|
|
16890
16883
|
return t < e ? t - e : t > r ? t - r : 0;
|
|
16891
16884
|
}
|
|
16892
|
-
function
|
|
16885
|
+
function vs(t, e, r) {
|
|
16893
16886
|
return t < e ? e : t > r ? r : t;
|
|
16894
16887
|
}
|
|
16895
16888
|
let qg = class ut {
|
|
@@ -16899,21 +16892,21 @@ let qg = class ut {
|
|
|
16899
16892
|
static fromParts(e = 0, r = 1, n = 1, s = 0, i = 0, u = 0, l = 0, c) {
|
|
16900
16893
|
if (isNaN(e) || isNaN(r) || isNaN(n) || isNaN(s) || isNaN(i) || isNaN(u) || isNaN(l)) return null;
|
|
16901
16894
|
const m = H.local(e, r).daysInMonth;
|
|
16902
|
-
let _ = H.fromObject({ day:
|
|
16903
|
-
return _ = _.plus({ months:
|
|
16895
|
+
let _ = H.fromObject({ day: vs(n, 1, m), year: e, month: vs(r, 1, 12), hour: vs(s, 0, 23), minute: vs(i, 0, 59), second: vs(u, 0, 59), millisecond: vs(l, 0, 999) }, { zone: Qr(c) });
|
|
16896
|
+
return _ = _.plus({ months: ws(r, 1, 12), days: ws(n, 1, m), hours: ws(s, 0, 23), minutes: ws(i, 0, 59), seconds: ws(u, 0, 59), milliseconds: ws(l, 0, 999) }), new ut(_);
|
|
16904
16897
|
}
|
|
16905
16898
|
static get systemTimeZoneCanonicalName() {
|
|
16906
16899
|
return Intl.DateTimeFormat().resolvedOptions().timeZone ?? "system";
|
|
16907
16900
|
}
|
|
16908
16901
|
static arcadeDateAndZoneToArcadeDate(e, r) {
|
|
16909
|
-
const n =
|
|
16902
|
+
const n = Qr(r);
|
|
16910
16903
|
return e.isUnknownTimeZone || n === Er.instance ? ut.fromParts(e.year, e.monthJS + 1, e.day, e.hour, e.minute, e.second, e.millisecond, n) : new ut(e._date.setZone(n));
|
|
16911
16904
|
}
|
|
16912
16905
|
static dateJSToArcadeDate(e) {
|
|
16913
16906
|
return new ut(H.fromJSDate(e, { zone: "system" }));
|
|
16914
16907
|
}
|
|
16915
16908
|
static dateJSAndZoneToArcadeDate(e, r = "system") {
|
|
16916
|
-
const n =
|
|
16909
|
+
const n = Qr(r);
|
|
16917
16910
|
return new ut(H.fromJSDate(e, { zone: n }));
|
|
16918
16911
|
}
|
|
16919
16912
|
static unknownEpochToArcadeDate(e) {
|
|
@@ -16923,7 +16916,7 @@ let qg = class ut {
|
|
|
16923
16916
|
return new ut(H.fromMillis(e.getTime(), { zone: Er.instance }));
|
|
16924
16917
|
}
|
|
16925
16918
|
static epochToArcadeDate(e, r = "system") {
|
|
16926
|
-
const n =
|
|
16919
|
+
const n = Qr(r);
|
|
16927
16920
|
return new ut(H.fromMillis(e, { zone: n }));
|
|
16928
16921
|
}
|
|
16929
16922
|
static dateTimeToArcadeDate(e) {
|
|
@@ -16933,15 +16926,15 @@ let qg = class ut {
|
|
|
16933
16926
|
return new ut(this._date);
|
|
16934
16927
|
}
|
|
16935
16928
|
changeTimeZone(e) {
|
|
16936
|
-
const r =
|
|
16929
|
+
const r = Qr(e);
|
|
16937
16930
|
return ut.dateTimeToArcadeDate(this._date.setZone(r));
|
|
16938
16931
|
}
|
|
16939
16932
|
static dateTimeAndZoneToArcadeDate(e, r) {
|
|
16940
|
-
const n =
|
|
16933
|
+
const n = Qr(r);
|
|
16941
16934
|
return e.zone === Er.instance || n === Er.instance ? ut.fromParts(e.year, e.month, e.day, e.hour, e.minute, e.second, e.millisecond, n) : new ut(e.setZone(n));
|
|
16942
16935
|
}
|
|
16943
16936
|
static nowToArcadeDate(e) {
|
|
16944
|
-
const r =
|
|
16937
|
+
const r = Qr(e);
|
|
16945
16938
|
return new ut(H.fromJSDate(/* @__PURE__ */ new Date(), { zone: r }));
|
|
16946
16939
|
}
|
|
16947
16940
|
static nowUTCToArcadeDate() {
|
|
@@ -17062,7 +17055,7 @@ let qg = class ut {
|
|
|
17062
17055
|
return new ut(r);
|
|
17063
17056
|
}
|
|
17064
17057
|
};
|
|
17065
|
-
function
|
|
17058
|
+
function Qr(t, e = !0) {
|
|
17066
17059
|
if (t instanceof Un) return t;
|
|
17067
17060
|
switch (z7(t)) {
|
|
17068
17061
|
case "system":
|
|
@@ -17076,7 +17069,7 @@ function Jr(t, e = !0) {
|
|
|
17076
17069
|
const n = Pt.parseSpecifier("UTC" + (t.startsWith("+") || t.startsWith("-") ? "" : "+") + t);
|
|
17077
17070
|
if (n) return n;
|
|
17078
17071
|
}
|
|
17079
|
-
const r =
|
|
17072
|
+
const r = qr.create(t);
|
|
17080
17073
|
if (!r.isValid) {
|
|
17081
17074
|
if (e) throw new z4("TimeZoneNotRecognized");
|
|
17082
17075
|
return null;
|
|
@@ -17085,7 +17078,7 @@ function Jr(t, e = !0) {
|
|
|
17085
17078
|
}
|
|
17086
17079
|
const V4 = { remove: () => {
|
|
17087
17080
|
} };
|
|
17088
|
-
function
|
|
17081
|
+
function Qs(t) {
|
|
17089
17082
|
return t ? { remove() {
|
|
17090
17083
|
t && (t(), t = void 0);
|
|
17091
17084
|
} } : V4;
|
|
@@ -17094,7 +17087,7 @@ function j4(t) {
|
|
|
17094
17087
|
t.forEach((e) => e?.remove());
|
|
17095
17088
|
}
|
|
17096
17089
|
function W4(t) {
|
|
17097
|
-
return
|
|
17090
|
+
return Qs(() => j4(t));
|
|
17098
17091
|
}
|
|
17099
17092
|
let xi;
|
|
17100
17093
|
const G4 = globalThis.esriConfig?.locale, Mh = globalThis.document?.documentElement;
|
|
@@ -17197,10 +17190,10 @@ let Ar = class ar {
|
|
|
17197
17190
|
return new ar(this._year, this._month, this._day);
|
|
17198
17191
|
}
|
|
17199
17192
|
toDateTime(e) {
|
|
17200
|
-
return H.fromObject({ day: this.day, month: this.month, year: this.year }, { zone:
|
|
17193
|
+
return H.fromObject({ day: this.day, month: this.month, year: this.year }, { zone: Qr(e) });
|
|
17201
17194
|
}
|
|
17202
17195
|
toDateTimeLuxon(e) {
|
|
17203
|
-
return H.fromObject({ day: this.day, month: this.month, year: this.year }, { zone:
|
|
17196
|
+
return H.fromObject({ day: this.day, month: this.month, year: this.year }, { zone: Qr(e) });
|
|
17204
17197
|
}
|
|
17205
17198
|
toString() {
|
|
17206
17199
|
return `${this.year.toString().padStart(4, "0")}-${this.month.toString().padStart(2, "0")}-${this.day.toString().padStart(2, "0")}`;
|
|
@@ -17309,7 +17302,7 @@ let Ar = class ar {
|
|
|
17309
17302
|
return null;
|
|
17310
17303
|
}
|
|
17311
17304
|
static fromNow(e = "system") {
|
|
17312
|
-
const r = H.fromJSDate(/* @__PURE__ */ new Date()).setZone(
|
|
17305
|
+
const r = H.fromJSDate(/* @__PURE__ */ new Date()).setZone(Qr(e));
|
|
17313
17306
|
return new ar(r.year, r.month, r.day);
|
|
17314
17307
|
}
|
|
17315
17308
|
};
|
|
@@ -17323,7 +17316,7 @@ function Xg(t) {
|
|
|
17323
17316
|
return Number.isNaN(t) || t === 0 ? t : Math.trunc(t);
|
|
17324
17317
|
}
|
|
17325
17318
|
const Jg = "esri.core.sql.SqlTimeStampOffset";
|
|
17326
|
-
let
|
|
17319
|
+
let Hr = class Ts {
|
|
17327
17320
|
constructor(e) {
|
|
17328
17321
|
this._timeStampOffset = e, this.declaredRootClass = Jg, this._date = null;
|
|
17329
17322
|
}
|
|
@@ -17364,13 +17357,13 @@ let qr = class Ps {
|
|
|
17364
17357
|
return this.toDateTime().year;
|
|
17365
17358
|
}
|
|
17366
17359
|
startOfDay() {
|
|
17367
|
-
return
|
|
17360
|
+
return Ts.fromDateTime(this.toDateTime().startOf("day"));
|
|
17368
17361
|
}
|
|
17369
17362
|
static fromJSDate(e) {
|
|
17370
|
-
return new
|
|
17363
|
+
return new Ts(H.fromJSDate(e).toISO({ includeOffset: !0 }));
|
|
17371
17364
|
}
|
|
17372
17365
|
static fromDateTime(e) {
|
|
17373
|
-
return new
|
|
17366
|
+
return new Ts(e.toISO({ includeOffset: !0 }));
|
|
17374
17367
|
}
|
|
17375
17368
|
static fromParts(e, r, n = 0, s = 0, i = 0, u = 0, l = 0, c = !1, m = 0, _ = 0) {
|
|
17376
17369
|
const y = `${e.toString().padStart(4, "0")}-${r.toString().padStart(2, "0")}-${n.toString().padStart(2, "0")}`;
|
|
@@ -17379,7 +17372,7 @@ let qr = class Ps {
|
|
|
17379
17372
|
let S = `${s.toString().padStart(2, "0")}:${i.toString().padStart(2, "0")}:${v + u.toString()}`;
|
|
17380
17373
|
l !== 0 && (S += "." + l.toString().padStart(3, "0"));
|
|
17381
17374
|
const T = `${c ? "-" : "+"}${m.toString().padStart(2, "0")}:${_.toString().padStart(2, "0")}`;
|
|
17382
|
-
return new
|
|
17375
|
+
return new Ts(y + "T" + S + T);
|
|
17383
17376
|
}
|
|
17384
17377
|
toStorageFormat() {
|
|
17385
17378
|
return this._timeStampOffset;
|
|
@@ -17396,7 +17389,7 @@ let qr = class Ps {
|
|
|
17396
17389
|
}
|
|
17397
17390
|
addMilliseconds(e) {
|
|
17398
17391
|
const r = this.toDateTime().plus(e);
|
|
17399
|
-
return
|
|
17392
|
+
return Ts.fromDateTime(r);
|
|
17400
17393
|
}
|
|
17401
17394
|
};
|
|
17402
17395
|
function se(t, e, r, n) {
|
|
@@ -17408,7 +17401,7 @@ function se(t, e, r, n) {
|
|
|
17408
17401
|
const fr = { 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 } };
|
|
17409
17402
|
if (globalThis.esriConfig && (D7(fr, globalThis.esriConfig, !0), delete fr.has), !fr.assetsPath) {
|
|
17410
17403
|
{
|
|
17411
|
-
const t = "5.0.0-next.
|
|
17404
|
+
const t = "5.0.0-next.91";
|
|
17412
17405
|
fr.assetsPath = `https://cdn.jsdelivr.net/npm/@arcgis/core@${t}/assets`;
|
|
17413
17406
|
}
|
|
17414
17407
|
fr.defaultAssetsPath = fr.assetsPath;
|
|
@@ -17517,11 +17510,11 @@ function X4(t, e, r) {
|
|
|
17517
17510
|
const s = r();
|
|
17518
17511
|
return t.set(e, s), s;
|
|
17519
17512
|
}
|
|
17520
|
-
const
|
|
17513
|
+
const Kn = () => Jt.getLogger("esri.core.accessorSupport.ensureTypes");
|
|
17521
17514
|
function J4(t) {
|
|
17522
17515
|
if (t == null) return t;
|
|
17523
17516
|
const e = new Date(t);
|
|
17524
|
-
return isNaN(e.getTime()) ? (
|
|
17517
|
+
return isNaN(e.getTime()) ? (Kn().error("Accessor#set", `Invalid date value: '${t}', falling back to current date`), /* @__PURE__ */ new Date()) : e;
|
|
17525
17518
|
}
|
|
17526
17519
|
function Q4(t) {
|
|
17527
17520
|
return t == null ? t : !!t;
|
|
@@ -17562,7 +17555,7 @@ function nv(t, e) {
|
|
|
17562
17555
|
return r ? n ? r === n ? e : r.prototype.isPrototypeOf(n.prototype) ? new t(e) : (Oh(t, e), e) : new t(e) : e;
|
|
17563
17556
|
}
|
|
17564
17557
|
function Oh(t, e) {
|
|
17565
|
-
return !!Dy(e) && (
|
|
17558
|
+
return !!Dy(e) && (Kn().error("Accessor#set", "Assigning an instance of '" + (e.declaredClass || "unknown") + "' which is not a subclass of '" + iu(t) + "'"), !0);
|
|
17566
17559
|
}
|
|
17567
17560
|
function sv(t, e) {
|
|
17568
17561
|
return e == null ? e : $y(t) ? nv(t, e) : za(t, e) ? Oh(t, e) ? e : new t(e) : e;
|
|
@@ -17575,7 +17568,7 @@ function ov(t) {
|
|
|
17575
17568
|
switch (t) {
|
|
17576
17569
|
case Number:
|
|
17577
17570
|
return (e) => ky(e);
|
|
17578
|
-
case
|
|
17571
|
+
case Xn:
|
|
17579
17572
|
return ev;
|
|
17580
17573
|
case Boolean:
|
|
17581
17574
|
return Q4;
|
|
@@ -17628,7 +17621,7 @@ function Ch(t, e) {
|
|
|
17628
17621
|
return (l, c) => {
|
|
17629
17622
|
if (l == null) return l;
|
|
17630
17623
|
const m = typeof l, _ = m === "string" || m === "number";
|
|
17631
|
-
return _ && (r.has(l) || s.some((y) => m === "string" && y === String || m === "number" && y === Number)) || m === "object" && s.some((y) => !za(y, l)) ? l : (_ && n.length ? (i || (i = n.map((y) => typeof y == "string" ? `'${y}'` : `${y}`).join(", ")),
|
|
17624
|
+
return _ && (r.has(l) || s.some((y) => m === "string" && y === String || m === "number" && y === Number)) || m === "object" && s.some((y) => !za(y, l)) ? l : (_ && n.length ? (i || (i = n.map((y) => typeof y == "string" ? `'${y}'` : `${y}`).join(", ")), Kn().error("Accessor#set", `'${l}' is not a valid value for this property, only the following values are valid: ${i}`)) : typeof l == "object" && s.length ? (u || (u = s.map((y) => iu(y)).join(", ")), Kn().error("Accessor#set", `'${l}' is not a valid value for this property, value must be one of ${u}`)) : Kn().error("Accessor#set", `'${l}' is not a valid value for this property`), c && (c.valid = !1), null);
|
|
17632
17625
|
};
|
|
17633
17626
|
}
|
|
17634
17627
|
function Rh(t, e) {
|
|
@@ -17642,7 +17635,7 @@ function Rh(t, e) {
|
|
|
17642
17635
|
return (c) => {
|
|
17643
17636
|
if (t.base && !za(t.base, c) || c == null) return c;
|
|
17644
17637
|
const m = l(c) || t.defaultKeyValue, _ = r[m];
|
|
17645
|
-
if (!_) return
|
|
17638
|
+
if (!_) return Kn().error("Accessor#set", `Invalid property value, value needs to be one of ${i()}, or a plain object that can autocast (having .type = ${u()})`), null;
|
|
17646
17639
|
if (!za(t.typeMap[m], c)) return c;
|
|
17647
17640
|
if (typeof t.key == "string" && !Dy(c)) {
|
|
17648
17641
|
const y = {};
|
|
@@ -17652,7 +17645,7 @@ function Rh(t, e) {
|
|
|
17652
17645
|
return _(c);
|
|
17653
17646
|
};
|
|
17654
17647
|
}
|
|
17655
|
-
let
|
|
17648
|
+
let Xn = class {
|
|
17656
17649
|
}, y0 = class {
|
|
17657
17650
|
};
|
|
17658
17651
|
function lv(t) {
|
|
@@ -17679,7 +17672,7 @@ function zy(t) {
|
|
|
17679
17672
|
}
|
|
17680
17673
|
function cv(t) {
|
|
17681
17674
|
let e = null;
|
|
17682
|
-
return (r, n) => kh(r, t) ? r : (e == null && (e = Ih(t)),
|
|
17675
|
+
return (r, n) => kh(r, t) ? r : (e == null && (e = Ih(t)), Kn().error("Accessor#set", `Invalid property value, value needs to be of type ${e}`), n && (n.valid = !1), null);
|
|
17683
17676
|
}
|
|
17684
17677
|
function Ih(t) {
|
|
17685
17678
|
switch (t.type) {
|
|
@@ -17691,7 +17684,7 @@ function Ih(t) {
|
|
|
17691
17684
|
return "string";
|
|
17692
17685
|
case Boolean:
|
|
17693
17686
|
return "boolean";
|
|
17694
|
-
case
|
|
17687
|
+
case Xn:
|
|
17695
17688
|
return "integer";
|
|
17696
17689
|
case Date:
|
|
17697
17690
|
return "date";
|
|
@@ -17715,7 +17708,7 @@ function kh(t, e) {
|
|
|
17715
17708
|
case "native":
|
|
17716
17709
|
switch (e.value) {
|
|
17717
17710
|
case Number:
|
|
17718
|
-
case
|
|
17711
|
+
case Xn:
|
|
17719
17712
|
return typeof t == "number";
|
|
17720
17713
|
case Boolean:
|
|
17721
17714
|
return typeof t == "boolean";
|
|
@@ -17799,13 +17792,13 @@ function Gy(t, e, r) {
|
|
|
17799
17792
|
function Wi(t, e, r = 0) {
|
|
17800
17793
|
return typeof e != "string" || e.includes(".") ? Gy(t, Vy(e), r) : Wy(e, t);
|
|
17801
17794
|
}
|
|
17802
|
-
function
|
|
17795
|
+
function Gs(t, e) {
|
|
17803
17796
|
return Wi(t, e);
|
|
17804
17797
|
}
|
|
17805
17798
|
function t2(t, e) {
|
|
17806
17799
|
return Wi(e, t) !== void 0;
|
|
17807
17800
|
}
|
|
17808
|
-
function
|
|
17801
|
+
function Ks(t) {
|
|
17809
17802
|
let e = t.constructor.__accessorMetadata__;
|
|
17810
17803
|
const r = Object.prototype.hasOwnProperty.call(t.constructor, "__accessorMetadata__");
|
|
17811
17804
|
if (e) {
|
|
@@ -17818,7 +17811,7 @@ function ei(t) {
|
|
|
17818
17811
|
return t.constructor.__accessorMetadata__;
|
|
17819
17812
|
}
|
|
17820
17813
|
function ou(t, e) {
|
|
17821
|
-
const r =
|
|
17814
|
+
const r = Ks(t);
|
|
17822
17815
|
let n = r[e];
|
|
17823
17816
|
return n || (n = r[e] = {}), n;
|
|
17824
17817
|
}
|
|
@@ -17861,7 +17854,7 @@ function Wa(t, e, r) {
|
|
|
17861
17854
|
else {
|
|
17862
17855
|
if (e.includes(".")) {
|
|
17863
17856
|
const s = e.split("."), i = s.splice(-1, 1)[0];
|
|
17864
|
-
return void Wa(
|
|
17857
|
+
return void Wa(Gs(t, s), i, r);
|
|
17865
17858
|
}
|
|
17866
17859
|
const n = t.__accessor__;
|
|
17867
17860
|
n != null && gv(e, n), t[e] = r;
|
|
@@ -17886,10 +17879,10 @@ function He(t = {}) {
|
|
|
17886
17879
|
const c = typeof i == "string" ? i : i.source, m = typeof i == "string" ? null : i.overridable === !0;
|
|
17887
17880
|
let _;
|
|
17888
17881
|
s.dependsOn = [c], s.get = function() {
|
|
17889
|
-
let y =
|
|
17882
|
+
let y = Gs(this, c);
|
|
17890
17883
|
if (typeof y == "function") {
|
|
17891
17884
|
_ || (_ = c.split(".").slice(0, -1).join("."));
|
|
17892
|
-
const v =
|
|
17885
|
+
const v = Gs(this, _);
|
|
17893
17886
|
v && (y = y.bind(v));
|
|
17894
17887
|
}
|
|
17895
17888
|
return y;
|
|
@@ -17967,17 +17960,17 @@ let au = class {
|
|
|
17967
17960
|
this._handles.pop().remove();
|
|
17968
17961
|
}
|
|
17969
17962
|
};
|
|
17970
|
-
const Ga = new au(),
|
|
17971
|
-
let
|
|
17963
|
+
const Ga = new au(), Jn = [];
|
|
17964
|
+
let es = Ga;
|
|
17972
17965
|
function uu(t) {
|
|
17973
|
-
|
|
17966
|
+
es.onAccessed(t);
|
|
17974
17967
|
}
|
|
17975
17968
|
let ia = !1, Ti = !1;
|
|
17976
|
-
function
|
|
17969
|
+
function Bs(t, e, r) {
|
|
17977
17970
|
if (ia) return b0(t, e, r);
|
|
17978
17971
|
let n = null;
|
|
17979
17972
|
if (Ti) {
|
|
17980
|
-
|
|
17973
|
+
es = t, Jn.push(t);
|
|
17981
17974
|
try {
|
|
17982
17975
|
n = e.call(r);
|
|
17983
17976
|
} catch (s) {
|
|
@@ -17986,7 +17979,7 @@ function qs(t, e, r) {
|
|
|
17986
17979
|
Dh();
|
|
17987
17980
|
}
|
|
17988
17981
|
} else {
|
|
17989
|
-
|
|
17982
|
+
es = t, Jn.push(t);
|
|
17990
17983
|
try {
|
|
17991
17984
|
n = e.call(r);
|
|
17992
17985
|
} finally {
|
|
@@ -17996,11 +17989,11 @@ function qs(t, e, r) {
|
|
|
17996
17989
|
return n;
|
|
17997
17990
|
}
|
|
17998
17991
|
function Tv(t, e) {
|
|
17999
|
-
return
|
|
17992
|
+
return Bs(Ga, t, e);
|
|
18000
17993
|
}
|
|
18001
17994
|
function b0(t, e, r) {
|
|
18002
17995
|
const n = ia;
|
|
18003
|
-
ia = !0,
|
|
17996
|
+
ia = !0, es = t, Jn.push(t);
|
|
18004
17997
|
let s = null;
|
|
18005
17998
|
try {
|
|
18006
17999
|
s = e.call(r);
|
|
@@ -18010,14 +18003,14 @@ function b0(t, e, r) {
|
|
|
18010
18003
|
return Dh(), ia = n, s;
|
|
18011
18004
|
}
|
|
18012
18005
|
function Dh() {
|
|
18013
|
-
const t =
|
|
18006
|
+
const t = Jn.length;
|
|
18014
18007
|
if (t > 1) {
|
|
18015
|
-
const e =
|
|
18016
|
-
|
|
18008
|
+
const e = Jn.pop();
|
|
18009
|
+
es = Jn[t - 2], e.onTrackingEnd();
|
|
18017
18010
|
} else if (t === 1) {
|
|
18018
|
-
const e =
|
|
18019
|
-
|
|
18020
|
-
} else
|
|
18011
|
+
const e = Jn.pop();
|
|
18012
|
+
es = Ga, e.onTrackingEnd();
|
|
18013
|
+
} else es = Ga;
|
|
18021
18014
|
}
|
|
18022
18015
|
function Yy(t, e) {
|
|
18023
18016
|
if (e.flags & Ye.DepTrackingInitialized) return;
|
|
@@ -18183,13 +18176,13 @@ function Dv(t) {
|
|
|
18183
18176
|
};
|
|
18184
18177
|
}
|
|
18185
18178
|
function $v(t, e, r) {
|
|
18186
|
-
const n = Object.values(e)[0], s =
|
|
18179
|
+
const n = Object.values(e)[0], s = Ks(n.prototype)[t], i = Ba(s, r), u = i?.read?.source;
|
|
18187
18180
|
return u && typeof u == "string" ? u : t;
|
|
18188
18181
|
}
|
|
18189
18182
|
function Fv(t) {
|
|
18190
18183
|
const e = {};
|
|
18191
18184
|
for (const r in t.typeMap) {
|
|
18192
|
-
const n = t.typeMap[r], s =
|
|
18185
|
+
const n = t.typeMap[r], s = Ks(n.prototype);
|
|
18193
18186
|
if (typeof t.key == "function") continue;
|
|
18194
18187
|
const i = s[t.key];
|
|
18195
18188
|
if (!i) continue;
|
|
@@ -18326,7 +18319,7 @@ function lu(t) {
|
|
|
18326
18319
|
}
|
|
18327
18320
|
}
|
|
18328
18321
|
};
|
|
18329
|
-
i.__accessorMetadata__ =
|
|
18322
|
+
i.__accessorMetadata__ = Ks(e.prototype), i.prototype.declaredClass = t;
|
|
18330
18323
|
const u = (t || "AccessorSubclass").split(".").slice(-1)[0];
|
|
18331
18324
|
return Object.defineProperty(i.prototype, Symbol.toStringTag, { value: u, configurable: !0, writable: !0, enumerable: !1 }), i;
|
|
18332
18325
|
};
|
|
@@ -18368,7 +18361,7 @@ function Xv(t, e) {
|
|
|
18368
18361
|
};
|
|
18369
18362
|
}
|
|
18370
18363
|
function Jv(t) {
|
|
18371
|
-
const e = t.prototype, r =
|
|
18364
|
+
const e = t.prototype, r = Ks(e), n = {};
|
|
18372
18365
|
for (const s of Object.getOwnPropertyNames(r)) {
|
|
18373
18366
|
const i = r[s];
|
|
18374
18367
|
Yv(i), n[s] = { enumerable: !0, configurable: !0, get: Zv(s, i), set: Xv(s, i) };
|
|
@@ -18629,7 +18622,7 @@ let x0 = class zh {
|
|
|
18629
18622
|
}
|
|
18630
18623
|
}
|
|
18631
18624
|
};
|
|
18632
|
-
const lS =
|
|
18625
|
+
const lS = Qs();
|
|
18633
18626
|
let m2 = class extends uS {
|
|
18634
18627
|
constructor(e, r) {
|
|
18635
18628
|
super(), this.propertyName = e, this.metadata = r, this.trackingTarget = new au(this), this.flags = 0, this.flags = Ye.Dirty | (r.nonNullable ? Ye.NonNullable : 0) | (r.hasOwnProperty("value") ? Ye.HasDefaultValue : 0) | (r.get === void 0 ? Ye.DepTrackingInitialized : 0) | (r.dependsOn === void 0 ? Ye.AutoTracked : 0);
|
|
@@ -18644,7 +18637,7 @@ let m2 = class extends uS {
|
|
|
18644
18637
|
let l;
|
|
18645
18638
|
this.flags |= Ye.Computing;
|
|
18646
18639
|
const { host: c } = e;
|
|
18647
|
-
i & Ye.AutoTracked ? l =
|
|
18640
|
+
i & Ye.AutoTracked ? l = Bs(this.trackingTarget, r, c) : (Zy(c, this), l = r.call(c)), this.flags |= Ye.DepTrackingInitialized, n.set(s, l, 1);
|
|
18648
18641
|
const m = n.get(s);
|
|
18649
18642
|
return m === u ? this.flags &= -2 : Tv(this.commit, this), this.flags &= -5, m;
|
|
18650
18643
|
}
|
|
@@ -18749,7 +18742,7 @@ let fS = class i3 {
|
|
|
18749
18742
|
this._values.forEach(e);
|
|
18750
18743
|
}
|
|
18751
18744
|
};
|
|
18752
|
-
function
|
|
18745
|
+
function Ss(t, e, r) {
|
|
18753
18746
|
return t !== void 0;
|
|
18754
18747
|
}
|
|
18755
18748
|
function p2(t, e, r, n) {
|
|
@@ -18779,7 +18772,7 @@ let hS = class {
|
|
|
18779
18772
|
}
|
|
18780
18773
|
get(e) {
|
|
18781
18774
|
const r = this.propertiesByName.get(e);
|
|
18782
|
-
if (!
|
|
18775
|
+
if (!Ss(r)) return;
|
|
18783
18776
|
const n = r.metadata.get;
|
|
18784
18777
|
if (n) return r.getComputed(this, n);
|
|
18785
18778
|
this.mutable && uu(r);
|
|
@@ -18802,16 +18795,16 @@ let hS = class {
|
|
|
18802
18795
|
}
|
|
18803
18796
|
internalGet(e) {
|
|
18804
18797
|
const r = this.propertiesByName.get(e);
|
|
18805
|
-
if (
|
|
18798
|
+
if (Ss(r)) return this.store.has(e) ? this.store.get(e) : r.metadata.value;
|
|
18806
18799
|
}
|
|
18807
18800
|
internalSet(e, r) {
|
|
18808
18801
|
const n = this.propertiesByName.get(e);
|
|
18809
|
-
|
|
18802
|
+
Ss(n) && this._internalSet(n, r);
|
|
18810
18803
|
}
|
|
18811
18804
|
getDependsInfo(e, r, n) {
|
|
18812
18805
|
const s = this.propertiesByName.get(r);
|
|
18813
|
-
if (!
|
|
18814
|
-
const i = new au(), u =
|
|
18806
|
+
if (!Ss(s)) return "";
|
|
18807
|
+
const i = new au(), u = Bs(i, () => s.metadata.get?.call(e));
|
|
18815
18808
|
let l = `${n}${e.declaredClass.split(".").pop()}.${r}: ${u}
|
|
18816
18809
|
`;
|
|
18817
18810
|
const c = i.accessed ?? /* @__PURE__ */ new Set();
|
|
@@ -18824,7 +18817,7 @@ let hS = class {
|
|
|
18824
18817
|
}
|
|
18825
18818
|
setAtOrigin(e, r, n) {
|
|
18826
18819
|
const s = this.propertiesByName.get(e);
|
|
18827
|
-
if (
|
|
18820
|
+
if (Ss(s)) return this._setAtOrigin(s, r, n);
|
|
18828
18821
|
}
|
|
18829
18822
|
isOverridden(e) {
|
|
18830
18823
|
const r = this.propertiesByName.get(e);
|
|
@@ -18832,7 +18825,7 @@ let hS = class {
|
|
|
18832
18825
|
}
|
|
18833
18826
|
clearOrigin(e, r) {
|
|
18834
18827
|
const n = this.store, s = this.propertiesByName.get(e);
|
|
18835
|
-
if (!
|
|
18828
|
+
if (!Ss(s)) return;
|
|
18836
18829
|
const i = n.isAtOrigin(e, r) && !(s.flags & Ye.Overridden);
|
|
18837
18830
|
n.delete(e, r), i && s.notifyChange();
|
|
18838
18831
|
}
|
|
@@ -19043,12 +19036,12 @@ function TS(t, e) {
|
|
|
19043
19036
|
if (!r || s) return;
|
|
19044
19037
|
if (y1) return void AS(i);
|
|
19045
19038
|
const l = n;
|
|
19046
|
-
r.clear(), y1 = !0, s = !0, n =
|
|
19039
|
+
r.clear(), y1 = !0, s = !0, n = Bs(r, t), s = !1, y1 = !1, e(n, l), LS();
|
|
19047
19040
|
}
|
|
19048
19041
|
function u() {
|
|
19049
19042
|
r && (r.destroy(), r = null, n = null);
|
|
19050
19043
|
}
|
|
19051
|
-
return s = !0, n =
|
|
19044
|
+
return s = !0, n = Bs(r, t), s = !1, Qs(u);
|
|
19052
19045
|
}
|
|
19053
19046
|
function PS(t, e) {
|
|
19054
19047
|
let r = new u3(s), n = null;
|
|
@@ -19059,9 +19052,9 @@ function PS(t, e) {
|
|
|
19059
19052
|
r && (r.destroy(), r = null), n = null;
|
|
19060
19053
|
}
|
|
19061
19054
|
function u() {
|
|
19062
|
-
return r ? (r.clear(), n =
|
|
19055
|
+
return r ? (r.clear(), n = Bs(r, t), n) : null;
|
|
19063
19056
|
}
|
|
19064
|
-
return u(),
|
|
19057
|
+
return u(), Qs(i);
|
|
19065
19058
|
}
|
|
19066
19059
|
function AS(t) {
|
|
19067
19060
|
Ha.includes(t) || Ha.unshift(t);
|
|
@@ -19135,7 +19128,7 @@ function DS(t, e, r) {
|
|
|
19135
19128
|
let l, c, m = PS(() => Wi(s, i), (_, y) => {
|
|
19136
19129
|
s.__accessor__?.lifecycle === sr.DESTROYED || l && l.uid !== c ? n.remove() : (l || (l = l3.acquireUntracked(_, u, y, s, i), c = l.uid), _2(l));
|
|
19137
19130
|
});
|
|
19138
|
-
return
|
|
19131
|
+
return Qs(() => {
|
|
19139
19132
|
m.remove(), l && (l.uid !== c || l.removed || (l.removed = !0, _2(l)), l = null), n = m = null;
|
|
19140
19133
|
});
|
|
19141
19134
|
});
|
|
@@ -19151,7 +19144,7 @@ function $S(t, e, r) {
|
|
|
19151
19144
|
return n;
|
|
19152
19145
|
}
|
|
19153
19146
|
function FS(t, e, r, n = !1) {
|
|
19154
|
-
return t.__accessor__ && t.__accessor__.lifecycle !== sr.DESTROYED ? n ? $S(t, e, r) : DS(t, e, r) :
|
|
19147
|
+
return t.__accessor__ && t.__accessor__.lifecycle !== sr.DESTROYED ? n ? $S(t, e, r) : DS(t, e, r) : Qs();
|
|
19155
19148
|
}
|
|
19156
19149
|
var y2, b2;
|
|
19157
19150
|
function US(t) {
|
|
@@ -19173,7 +19166,7 @@ function US(t) {
|
|
|
19173
19166
|
}
|
|
19174
19167
|
}
|
|
19175
19168
|
const vn = Symbol("Accessor-Handles"), b1 = Symbol("Accessor-Initialized");
|
|
19176
|
-
let
|
|
19169
|
+
let Cs = class aa {
|
|
19177
19170
|
static {
|
|
19178
19171
|
y2 = vn, b2 = b1;
|
|
19179
19172
|
}
|
|
@@ -19187,7 +19180,7 @@ let Rs = class aa {
|
|
|
19187
19180
|
super(...c), this.inherited = null, s && s.apply(this, c);
|
|
19188
19181
|
}
|
|
19189
19182
|
}
|
|
19190
|
-
|
|
19183
|
+
Ks(u.prototype);
|
|
19191
19184
|
for (const l in e) {
|
|
19192
19185
|
const c = e[l];
|
|
19193
19186
|
u.prototype[l] = typeof c == "function" ? function(...m) {
|
|
@@ -19249,7 +19242,7 @@ let Rs = class aa {
|
|
|
19249
19242
|
return this.__accessor__?.lifecycle === sr.DESTROYING || !1;
|
|
19250
19243
|
}
|
|
19251
19244
|
commitProperty(e) {
|
|
19252
|
-
|
|
19245
|
+
Gs(this, e);
|
|
19253
19246
|
}
|
|
19254
19247
|
hasOwnProperty(e) {
|
|
19255
19248
|
return this.__accessor__ ? this.__accessor__.has(e) : Object.prototype.hasOwnProperty.call(this, e);
|
|
@@ -19412,7 +19405,7 @@ function ZS(t, e, r, n, s) {
|
|
|
19412
19405
|
}
|
|
19413
19406
|
function XS(t, e, r, n, s, i) {
|
|
19414
19407
|
if (!n?.write) return !1;
|
|
19415
|
-
const u =
|
|
19408
|
+
const u = Gs(t, r);
|
|
19416
19409
|
if (!s && n.write.overridePolicy) {
|
|
19417
19410
|
const l = n.write.overridePolicy.call(t, u, r, i ?? void 0);
|
|
19418
19411
|
l !== void 0 && (s = l);
|
|
@@ -19443,7 +19436,7 @@ function QS(t, e, r) {
|
|
|
19443
19436
|
for (const i in s) {
|
|
19444
19437
|
const u = Ov(s[i], r);
|
|
19445
19438
|
if (!XS(t, n, i, u, void 0, r)) continue;
|
|
19446
|
-
const l =
|
|
19439
|
+
const l = Gs(t, i), c = ZS(t, u, u.write && typeof u.write.target == "string" ? u.write.target : i, l, r);
|
|
19447
19440
|
Object.keys(c).length > 0 && (e = sa(e, c), r?.resources?.pendingOperations?.length && r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(() => sa(e, c, () => "replace-arrays"))), r?.writtenProperties && r.writtenProperties.push({ target: t, propName: i, oldOrigin: cS(n.store.originOf(i)), newOrigin: r.origin }));
|
|
19448
19441
|
}
|
|
19449
19442
|
return e;
|
|
@@ -19477,7 +19470,7 @@ function eN(t, e) {
|
|
|
19477
19470
|
const r = new this();
|
|
19478
19471
|
return r.read(t, e), r;
|
|
19479
19472
|
}
|
|
19480
|
-
const h3 = KS(
|
|
19473
|
+
const h3 = KS(Cs);
|
|
19481
19474
|
let T0 = class {
|
|
19482
19475
|
constructor(e, r, n, s, i, u) {
|
|
19483
19476
|
this.semiMajorAxis = e, this.flattening = r, this.outerAtmosphereRimWidth = n, this.atmosphereHeight = s, this.scaleHeight = i;
|
|
@@ -19526,10 +19519,10 @@ function hN(t, e, r = !1) {
|
|
|
19526
19519
|
return !(!r && n.scheme !== s.scheme) && n.host != null && s.host != null && n.host.toLowerCase() === s.host.toLowerCase() && n.port === s.port;
|
|
19527
19520
|
}
|
|
19528
19521
|
function fu(t, e = b3, r) {
|
|
19529
|
-
return
|
|
19522
|
+
return ei(t) ? r?.preserveProtocolRelative ? t : ir.scheme === "http" && ir.authority === dN(t).slice(2) ? `http:${t}` : `https:${t}` : E3(t) ? t : S3(t.startsWith("/") ? bN(e) : e, t);
|
|
19530
19523
|
}
|
|
19531
19524
|
function v3(t, e = b3, r) {
|
|
19532
|
-
if (t == null ||
|
|
19525
|
+
if (t == null || !$s(t)) return t;
|
|
19533
19526
|
const n = ua(t), s = n.toLowerCase(), i = ua(e).toLowerCase().replace(/\/+$/, ""), u = r ? ua(r).toLowerCase().replace(/\/+$/, "") : null;
|
|
19534
19527
|
if (u && !i.startsWith(u)) return t;
|
|
19535
19528
|
const l = (y, v, S) => (S = y.indexOf(v, S)) === -1 ? y.length : S;
|
|
@@ -19549,7 +19542,7 @@ function S3(...t) {
|
|
|
19549
19542
|
const e = t.filter(S7);
|
|
19550
19543
|
if (!e?.length) return;
|
|
19551
19544
|
const r = [];
|
|
19552
|
-
if (
|
|
19545
|
+
if ($s(e[0])) {
|
|
19553
19546
|
const s = e[0], i = s.indexOf("//");
|
|
19554
19547
|
i !== -1 && (r.push(s.slice(0, i + 1)), gN(e[0]) && (r[0] += "/"), e[0] = s.slice(i + 2));
|
|
19555
19548
|
} else e[0].startsWith("/") && r.push("");
|
|
@@ -19563,7 +19556,7 @@ function S3(...t) {
|
|
|
19563
19556
|
function dN(t, e = !1) {
|
|
19564
19557
|
if (t == null || mN(t) || N3(t)) return null;
|
|
19565
19558
|
let r = t.indexOf("://");
|
|
19566
|
-
if (r === -1 &&
|
|
19559
|
+
if (r === -1 && ei(t)) r = 2;
|
|
19567
19560
|
else {
|
|
19568
19561
|
if (r === -1) return null;
|
|
19569
19562
|
r += 3;
|
|
@@ -19571,8 +19564,8 @@ function dN(t, e = !1) {
|
|
|
19571
19564
|
const n = t.indexOf("/", r);
|
|
19572
19565
|
return n !== -1 && (t = t.slice(0, n)), e && (t = x3(t, !0)), t;
|
|
19573
19566
|
}
|
|
19574
|
-
function
|
|
19575
|
-
return
|
|
19567
|
+
function $s(t) {
|
|
19568
|
+
return ei(t) || E3(t);
|
|
19576
19569
|
}
|
|
19577
19570
|
function mN(t) {
|
|
19578
19571
|
return t != null && t.startsWith("blob:");
|
|
@@ -19580,20 +19573,20 @@ function mN(t) {
|
|
|
19580
19573
|
function N3(t) {
|
|
19581
19574
|
return t != null && t.startsWith("data:");
|
|
19582
19575
|
}
|
|
19583
|
-
function
|
|
19576
|
+
function ei(t) {
|
|
19584
19577
|
return t != null && t.startsWith("/") && t[1] === "/";
|
|
19585
19578
|
}
|
|
19586
19579
|
function E3(t) {
|
|
19587
19580
|
return t != null && g3.test(t);
|
|
19588
19581
|
}
|
|
19589
19582
|
function pN(t) {
|
|
19590
|
-
return t != null && _3.test(t) || ir.scheme === "http" &&
|
|
19583
|
+
return t != null && _3.test(t) || ir.scheme === "http" && ei(t);
|
|
19591
19584
|
}
|
|
19592
19585
|
function gN(t) {
|
|
19593
19586
|
return t != null && tN.test(t);
|
|
19594
19587
|
}
|
|
19595
19588
|
function _N(t) {
|
|
19596
|
-
return
|
|
19589
|
+
return ei(t) ? `https:${t}` : t.replace(_3, "https:");
|
|
19597
19590
|
}
|
|
19598
19591
|
function yN() {
|
|
19599
19592
|
return ir.scheme === "http";
|
|
@@ -19602,7 +19595,7 @@ function w2() {
|
|
|
19602
19595
|
return ir.scheme === "https";
|
|
19603
19596
|
}
|
|
19604
19597
|
function x3(t, e = !1) {
|
|
19605
|
-
return
|
|
19598
|
+
return ei(t) ? t.slice(2) : (t = t.replace(g3, ""), e && t.length > 1 && t.startsWith("/") && t[1] === "/" && (t = t.slice(2)), t);
|
|
19606
19599
|
}
|
|
19607
19600
|
function bN(t) {
|
|
19608
19601
|
const e = t.indexOf("//"), r = t.indexOf("/", e + 2);
|
|
@@ -19633,7 +19626,7 @@ function NN(t) {
|
|
|
19633
19626
|
return yN() && n === ir.authority && !nN.test(t) || (w2() && n === ir.authority || e && e.some((s) => n === s || n.endsWith(`.${s}`)) || w2() && !fN(t)) && (t = _N(t)), t;
|
|
19634
19627
|
}
|
|
19635
19628
|
function Gh(t, e, r) {
|
|
19636
|
-
if (!(e && r && t &&
|
|
19629
|
+
if (!(e && r && t && $s(t))) return t;
|
|
19637
19630
|
const n = t.indexOf("//"), s = t.indexOf("/", n + 2), i = t.indexOf(":", n + 2), u = Math.min(s < 0 ? t.length : s, i < 0 ? t.length : i);
|
|
19638
19631
|
return t.slice(n + 2, u).toLowerCase() !== e.toLowerCase() ? t : `${t.slice(0, n + 2)}${r}${t.slice(u)}`;
|
|
19639
19632
|
}
|
|
@@ -19658,7 +19651,7 @@ function T3(t, e) {
|
|
|
19658
19651
|
}
|
|
19659
19652
|
function P3(t, e, r = 0) {
|
|
19660
19653
|
if ((t = t && hu.test(t) ? M3(t) : t) == null) return t;
|
|
19661
|
-
|
|
19654
|
+
!$s(t) && e?.blockedRelativeUrls && e.blockedRelativeUrls.push(t);
|
|
19662
19655
|
let n = fu(t);
|
|
19663
19656
|
if (e) {
|
|
19664
19657
|
const s = e.verifyItemRelativeUrls?.rootPath || e.url?.path;
|
|
@@ -19667,7 +19660,7 @@ function P3(t, e, r = 0) {
|
|
|
19667
19660
|
n = v3(u, i, i), n != null && n !== u && n !== t && e.verifyItemRelativeUrls && e.verifyItemRelativeUrls.writtenUrls.push(n);
|
|
19668
19661
|
}
|
|
19669
19662
|
}
|
|
19670
|
-
return n = A3(n, e?.portal),
|
|
19663
|
+
return n = A3(n, e?.portal), $s(n) && (n = ua(n)), e?.resources && e?.portalItem && !$s(n) && !N3(n) && r === 0 && e.resources.toKeep.push({ resource: e.portalItem.resourceFromPath(n), compress: !1 }), n;
|
|
19671
19664
|
}
|
|
19672
19665
|
function xN(t, e, r) {
|
|
19673
19666
|
return T3(t, r);
|
|
@@ -19732,7 +19725,7 @@ function IN() {
|
|
|
19732
19725
|
}
|
|
19733
19726
|
const la = { geogToProj(t, e, r) {
|
|
19734
19727
|
E.ensureCache.prepare();
|
|
19735
|
-
const n =
|
|
19728
|
+
const n = ts(r), s = r === n, i = E.ensureFloat64(n), u = E._pe_geog_to_proj(E.getPointer(t), e, i);
|
|
19736
19729
|
return u && Fn(r, e, i, s), u;
|
|
19737
19730
|
}, projGeog(t, e, r, n) {
|
|
19738
19731
|
switch (n) {
|
|
@@ -19744,7 +19737,7 @@ const la = { geogToProj(t, e, r) {
|
|
|
19744
19737
|
return 0;
|
|
19745
19738
|
}, projToGeog: (t, e, r) => la.projToGeogCenter(t, e, r, 0), projToGeogCenter(t, e, r, n) {
|
|
19746
19739
|
E.ensureCache.prepare();
|
|
19747
|
-
const s =
|
|
19740
|
+
const s = ts(r), i = r === s, u = E.ensureFloat64(s), l = E._pe_proj_to_geog_center(E.getPointer(t), e, u, n);
|
|
19748
19741
|
return l && Fn(r, e, u, i), l;
|
|
19749
19742
|
} };
|
|
19750
19743
|
let Ge = class Pe {
|
|
@@ -19768,9 +19761,9 @@ const N2 = {}, E2 = {}, v1 = (t) => {
|
|
|
19768
19761
|
e & Ge.PE_TYPE_UNIT && (t = E.castObject(t, E.PeUnit));
|
|
19769
19762
|
}
|
|
19770
19763
|
return t;
|
|
19771
|
-
},
|
|
19764
|
+
}, Ps = { initialize() {
|
|
19772
19765
|
E.PeFactory.prototype.initialize(null);
|
|
19773
|
-
}, coordsys: (t) =>
|
|
19766
|
+
}, coordsys: (t) => Ps.factoryByType(Ge.PE_TYPE_COORDSYS, t), factoryByType(t, e) {
|
|
19774
19767
|
let r = null, n = N2[t];
|
|
19775
19768
|
if (n || (n = {}, N2[t] = n), n.hasOwnProperty(String(e)) && (r = n[e], E.compare(r, E.NULL) && (r = null)), !r) {
|
|
19776
19769
|
const s = E.PeFactory.prototype.factoryByType(t, e);
|
|
@@ -19794,7 +19787,7 @@ const N2 = {}, E2 = {}, v1 = (t) => {
|
|
|
19794
19787
|
E.compare(i, E.NULL) || (n = v1(i), s[e] = n);
|
|
19795
19788
|
}
|
|
19796
19789
|
return n;
|
|
19797
|
-
}, geogcs: (t) =>
|
|
19790
|
+
}, geogcs: (t) => Ps.factoryByType(Ge.PE_TYPE_GEOGCS, t), geogtran: (t) => Ps.factoryByType(Ge.PE_TYPE_GEOGTRAN, t), getCode: (t) => E.PeFactory.prototype.getCode(t), projcs: (t) => Ps.factoryByType(Ge.PE_TYPE_PROJCS, t), unit: (t) => Ps.factoryByType(Ge.PE_TYPE_UNIT, t) };
|
|
19798
19791
|
let x2, C3 = null;
|
|
19799
19792
|
const P0 = { PE_GTLIST_OPTS_COMMON: 0, init() {
|
|
19800
19793
|
P0.PE_GTLIST_OPTS_COMMON = E.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON, x2 = E._pe_getPeGTlistExtendedEntrySize();
|
|
@@ -19813,20 +19806,20 @@ const P0 = { PE_GTLIST_OPTS_COMMON: 0, init() {
|
|
|
19813
19806
|
return u;
|
|
19814
19807
|
} }, kN = { destroy(t) {
|
|
19815
19808
|
if (t?.length) {
|
|
19816
|
-
for (const e of t)
|
|
19817
|
-
|
|
19809
|
+
for (const e of t) $r(e), e.getEntries().forEach((r) => {
|
|
19810
|
+
$r(r);
|
|
19818
19811
|
const n = r.getGeogtran();
|
|
19819
|
-
|
|
19820
|
-
|
|
19812
|
+
$r(n), n.getParameters().forEach($r), [n.getGeogcs1(), n.getGeogcs2()].forEach((s) => {
|
|
19813
|
+
$r(s);
|
|
19821
19814
|
const i = s.getDatum();
|
|
19822
|
-
|
|
19815
|
+
$r(i), $r(i.getSpheroid()), $r(s.getPrimem()), $r(s.getUnit());
|
|
19823
19816
|
});
|
|
19824
19817
|
});
|
|
19825
19818
|
E.PeGTlistExtendedEntry.prototype.Delete(t[0]);
|
|
19826
19819
|
}
|
|
19827
19820
|
} }, DN = { geogToGeog(t, e, r, n, s) {
|
|
19828
19821
|
E.ensureCache.prepare();
|
|
19829
|
-
const i =
|
|
19822
|
+
const i = ts(r), u = r === i, l = E.ensureFloat64(i);
|
|
19830
19823
|
let c = 0;
|
|
19831
19824
|
n && (c = E.ensureFloat64(n));
|
|
19832
19825
|
const m = E._pe_geog_to_geog(E.getPointer(t), e, l, c, s);
|
|
@@ -19853,7 +19846,7 @@ const P0 = { PE_GTLIST_OPTS_COMMON: 0, init() {
|
|
|
19853
19846
|
}
|
|
19854
19847
|
let c = 0;
|
|
19855
19848
|
e && (c = E.getPointer(e));
|
|
19856
|
-
const m =
|
|
19849
|
+
const m = ts(n), _ = E.ensureFloat64(m), y = du(r, l), v = u(c, r, _, s, E.ensureInt32(y));
|
|
19857
19850
|
if (v) for (let S = 0; S < r; S++) i[S] = E.UTF8ToString(y[S]);
|
|
19858
19851
|
return v;
|
|
19859
19852
|
}, N1 = (t, e, r, n, s) => {
|
|
@@ -19873,15 +19866,15 @@ const P0 = { PE_GTLIST_OPTS_COMMON: 0, init() {
|
|
|
19873
19866
|
const l = n.map((y) => E.ensureString(y)), c = E.ensureInt32(l), m = E.ensureFloat64(new Array(2 * r)), _ = i(u, r, c, m);
|
|
19874
19867
|
return _ && Fn(s, r, m), _;
|
|
19875
19868
|
}, UN = { geogToDms: (t, e, r, n, s) => S1("dms", t, e, r, n, s), dmsToGeog: (t, e, r, n) => N1("dms", t, e, r, n), geogToDdm: (t, e, r, n, s) => S1("ddm", t, e, r, n, s), ddmToGeog: (t, e, r, n) => N1("ddm", t, e, r, n), geogToDd: (t, e, r, n, s) => S1("dd", t, e, r, n, s), ddToGeog: (t, e, r, n) => N1("dd", t, e, r, n) };
|
|
19876
|
-
let R3 = class
|
|
19869
|
+
let R3 = class As {
|
|
19877
19870
|
static init() {
|
|
19878
|
-
|
|
19871
|
+
As.PE_MGRS_STYLE_NEW = E.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW, As.PE_MGRS_STYLE_OLD = E.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD, As.PE_MGRS_STYLE_AUTO = E.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO, As.PE_MGRS_180_ZONE_1_PLUS = E.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS, As.PE_MGRS_ADD_SPACES = E.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES;
|
|
19879
19872
|
}
|
|
19880
19873
|
static geogToMgrsExtended(e, r, n, s, i, u, l) {
|
|
19881
19874
|
E.ensureCache.prepare();
|
|
19882
19875
|
let c = 0;
|
|
19883
19876
|
e && (c = E.getPointer(e));
|
|
19884
|
-
const m =
|
|
19877
|
+
const m = ts(n), _ = E.ensureFloat64(m), y = du(r, Ge.PE_MGRS_MAX), v = E.ensureInt32(y), S = E._pe_geog_to_mgrs_extended(c, r, _, s, i, u, v);
|
|
19885
19878
|
if (S) for (let T = 0; T < r; T++) l[T] = E.UTF8ToString(y[T]);
|
|
19886
19879
|
return S;
|
|
19887
19880
|
}
|
|
@@ -19897,7 +19890,7 @@ const zN = { geogToUsng(t, e, r, n, s, i, u) {
|
|
|
19897
19890
|
E.ensureCache.prepare();
|
|
19898
19891
|
let l = 0;
|
|
19899
19892
|
t && (l = E.getPointer(t));
|
|
19900
|
-
const c =
|
|
19893
|
+
const c = ts(r), m = E.ensureFloat64(c), _ = du(e, Ge.PE_MGRS_MAX), y = E.ensureInt32(_), v = E._pe_geog_to_usng(l, e, m, n, s, i, y);
|
|
19901
19894
|
if (v) for (let S = 0; S < e; S++) u[S] = E.UTF8ToString(_[S]);
|
|
19902
19895
|
return v;
|
|
19903
19896
|
}, usngToGeog(t, e, r, n) {
|
|
@@ -19915,7 +19908,7 @@ let I3 = class ca {
|
|
|
19915
19908
|
E.ensureCache.prepare();
|
|
19916
19909
|
let u = 0;
|
|
19917
19910
|
e && (u = E.getPointer(e));
|
|
19918
|
-
const l =
|
|
19911
|
+
const l = ts(n), c = E.ensureFloat64(l), m = du(r, Ge.PE_UTM_MAX), _ = E.ensureInt32(m), y = E._pe_geog_to_utm(u, r, c, s, _);
|
|
19919
19912
|
if (y) for (let v = 0; v < r; v++) i[v] = E.UTF8ToString(m[v]);
|
|
19920
19913
|
return y;
|
|
19921
19914
|
}
|
|
@@ -20015,16 +20008,16 @@ function D3(t) {
|
|
|
20015
20008
|
const u = E.getPointer(this), l = E.ensureInt8(new Array(Ge.PE_BUFFER_MAX));
|
|
20016
20009
|
return E.UTF8ToString(E._pe_object_to_string_ext(u, i, l));
|
|
20017
20010
|
}, E.PeGeogcs.prototype.destroy = function() {
|
|
20018
|
-
this.Delete(),
|
|
20011
|
+
this.Delete(), $r(this), this.ptr = 0;
|
|
20019
20012
|
}, E.PeGeogcs.prototype[Symbol.dispose] = function() {
|
|
20020
20013
|
this.destroy();
|
|
20021
20014
|
}, E.PeProjcs.prototype.destroy = function() {
|
|
20022
|
-
this.Delete(),
|
|
20015
|
+
this.Delete(), $r(this), this.ptr = 0;
|
|
20023
20016
|
}, E.PeProjcs.prototype[Symbol.dispose] = function() {
|
|
20024
20017
|
this.destroy();
|
|
20025
20018
|
};
|
|
20026
20019
|
}
|
|
20027
|
-
function
|
|
20020
|
+
function $r(t) {
|
|
20028
20021
|
if (!t) return;
|
|
20029
20022
|
const e = E.getClass(t);
|
|
20030
20023
|
if (!e) return;
|
|
@@ -20038,7 +20031,7 @@ function du(t, e) {
|
|
|
20038
20031
|
for (let s = 0; s < t; s++) r.push(E.ensureInt8(n));
|
|
20039
20032
|
return r;
|
|
20040
20033
|
}
|
|
20041
|
-
function
|
|
20034
|
+
function ts(t) {
|
|
20042
20035
|
return ArrayBuffer.isView(t) ? t : Array.isArray(t[0]) ? t.flat() : t;
|
|
20043
20036
|
}
|
|
20044
20037
|
function Fn(t, e, r, n = !1) {
|
|
@@ -20050,7 +20043,7 @@ function Fn(t, e, r, n = !1) {
|
|
|
20050
20043
|
}
|
|
20051
20044
|
Object.freeze(Object.defineProperty({ __proto__: null, PeCSTransformations: la, PeDefs: Ge, get PeDouble() {
|
|
20052
20045
|
return O3;
|
|
20053
|
-
}, PeFactory:
|
|
20046
|
+
}, PeFactory: Ps, get PeGCSExtent() {
|
|
20054
20047
|
return C3;
|
|
20055
20048
|
}, PeGTTransformations: DN, PeGTlistExtended: P0, PeGTlistExtendedEntry: kN, PeLineType: $N, PeMath: FN, PeNotationDms: UN, PeNotationMgrs: R3, PeNotationUsng: zN, PeNotationUtm: I3, PePCSInfo: k3, PeVersion: VN, _init: D3, get _pe() {
|
|
20056
20049
|
return E;
|
|
@@ -20474,7 +20467,7 @@ function A0(t, e) {
|
|
|
20474
20467
|
if (t == null || e == null) return !1;
|
|
20475
20468
|
const r = t.wkid, n = e.wkid;
|
|
20476
20469
|
if (r != null || n != null) {
|
|
20477
|
-
if (r === n ||
|
|
20470
|
+
if (r === n || qs(t) && qs(e)) return !0;
|
|
20478
20471
|
const u = t.latestWkid;
|
|
20479
20472
|
if (u != null && n === u) return !0;
|
|
20480
20473
|
const l = e.latestWkid;
|
|
@@ -20497,7 +20490,7 @@ function U3(t) {
|
|
|
20497
20490
|
function Yh(t) {
|
|
20498
20491
|
return t?.wkid === 4326;
|
|
20499
20492
|
}
|
|
20500
|
-
function
|
|
20493
|
+
function qs(t) {
|
|
20501
20494
|
const e = t?.wkid;
|
|
20502
20495
|
return e != null && e >= 2e3 && $3.includes(e);
|
|
20503
20496
|
}
|
|
@@ -20533,7 +20526,7 @@ L0($n);
|
|
|
20533
20526
|
L0(d3);
|
|
20534
20527
|
L0(m3);
|
|
20535
20528
|
`${$n.radius}`;
|
|
20536
|
-
const XN = $n.radius * Math.PI / 200, j3 = /(?:LENGTH)?UNIT\[([^\]]+)]]$/i,
|
|
20529
|
+
const XN = $n.radius * Math.PI / 200, j3 = /(?:LENGTH)?UNIT\[([^\]]+)]]$/i, Hs = w, W3 = /UNIT\[([^\]]+)]/i, JN = /* @__PURE__ */ new Set([4305, 4807, 4810, 4811, 4812, 4816, 4819, 4821, 4901, 4902, 37225, 104025, 104026, 104139, 104140]), QN = cu()({ millimeter: "millimeters", centimeter: "centimeters", meter: "meters", meter_german: "german-meters", kilometer: "kilometers", decimeter: "decimeters", micrometer: "micrometers", nanometer: "nanometers", "50_kilometers": "50-kilometers", "150_kilometers": "150-kilometers", foot: "feet", foot_us: "us-feet", foot_clarke: "clarke-feet", fathom: "fathoms", nautical_mile: "nautical-miles", chain_us: "us-chains", link_us: "us-links", mile_us: "us-miles", yard_clarke: "clarke-yards", chain_clarke: "clarke-chains", link_clarke: "clarke-links", yard_sears: "sears-yards", foot_sears: "sears-feet", chain_sears: "sears-chains", link_sears: "sears-links", yard_benoit_1895_a: "benoit-1895-a-yards", foot_benoit_1895_a: "benoit-1895-a-feet", chain_benoit_1895_a: "benoit-1895-a-chains", link_benoit_1895_a: "benoit-1895-a-links", yard_benoit_1895_b: "benoit-1895-b-yards", foot_benoit_1895_b: "benoit-1895-b-feet", chain_benoit_1895_b: "benoit-1895-b-chains", link_benoit_1895_b: "benoit-1895-b-links", foot_1865: "1865-feet", foot_indian: "indian-feet", foot_indian_1937: "indian-1937-feet", foot_indian_1962: "indian-1962-feet", foot_indian_1975: "indian-1975-feet", yard_indian: "indian-yards", yard_indian_1937: "indian-1937-yards", yard_indian_1962: "indian-1962-yards", yard_indian_1975: "indian-1975-yards", statute_mile: "statute-miles", foot_gold_coast: "gold-coast-feet", foot_british_1936: "british-1936-feet", yard: "yards", chain: "chains", link: "links", yard_sears_1922_truncated: "sears-1922-truncated-yards", foot_sears_1922_truncated: "sears-1922-truncated-feet", chain_sears_1922_truncated: "sears-1922-truncated-chains", link_sears_1922_truncated: "sears-1922-truncated-links", yard_us: "us-yards", inch: "inches", inch_us: "us-inches", rod: "rods", rod_us: "us-rods", nautical_mile_us: "us-nautical-miles", nautical_mile_uk: "uk-nautical-miles", smoot: "smoots", vara_tx: "tx-vara", point: "points" }), kr = (t) => t * t, on = (t) => t * t * t, T2 = { length: { baseUnit: "meters", units: { millimeters: { inBaseUnits: 1e-3 }, centimeters: { inBaseUnits: 0.01 }, meters: { inBaseUnits: 1 }, feet: { inBaseUnits: 0.3048 }, "us-feet": { inBaseUnits: 0.3048006096012192 }, "clarke-feet": { inBaseUnits: 0.3047972654 }, fathoms: { inBaseUnits: 1.8288 }, "nautical-miles": { inBaseUnits: 1852 }, "german-meters": { inBaseUnits: 1.0000135965 }, "us-chains": { inBaseUnits: 20.11684023368047 }, "us-links": { inBaseUnits: 0.2011684023368047 }, "us-miles": { inBaseUnits: 1609.347218694438 }, kilometers: { inBaseUnits: 1e3 }, "clarke-yards": { inBaseUnits: 0.9143917962 }, "clarke-chains": { inBaseUnits: 20.1166195164 }, "clarke-links": { inBaseUnits: 0.201166195164 }, "sears-yards": { inBaseUnits: 0.9143984146160287 }, "sears-feet": { inBaseUnits: 0.3047994715386762 }, "sears-chains": { inBaseUnits: 20.11676512155263 }, "sears-links": { inBaseUnits: 0.2011676512155263 }, "benoit-1895-a-yards": { inBaseUnits: 0.9143992 }, "benoit-1895-a-feet": { inBaseUnits: 0.3047997333333333 }, "benoit-1895-a-chains": { inBaseUnits: 20.1167824 }, "benoit-1895-a-links": { inBaseUnits: 0.201167824 }, "benoit-1895-b-yards": { inBaseUnits: 0.9143992042898124 }, "benoit-1895-b-feet": { inBaseUnits: 0.3047997347632708 }, "benoit-1895-b-chains": { inBaseUnits: 20.11678249437587 }, "benoit-1895-b-links": { inBaseUnits: 0.2011678249437587 }, "1865-feet": { inBaseUnits: 0.3048008333333334 }, "indian-feet": { inBaseUnits: 0.3047995102481469 }, "indian-1937-feet": { inBaseUnits: 0.30479841 }, "indian-1962-feet": { inBaseUnits: 0.3047996 }, "indian-1975-feet": { inBaseUnits: 0.3047995 }, "indian-yards": { inBaseUnits: 0.9143985307444408 }, "indian-1937-yards": { inBaseUnits: 0.91439523 }, "indian-1962-yards": { inBaseUnits: 0.9143988 }, "indian-1975-yards": { inBaseUnits: 0.9143985 }, miles: { inBaseUnits: 1609.344 }, "statute-miles": { inBaseUnits: 1609.344 }, "gold-coast-feet": { inBaseUnits: 0.3047997101815088 }, "british-1936-feet": { inBaseUnits: 0.3048007491 }, yards: { inBaseUnits: 0.9144 }, chains: { inBaseUnits: 20.1168 }, links: { inBaseUnits: 0.201168 }, "sears-1922-truncated-yards": { inBaseUnits: 0.914398 }, "sears-1922-truncated-feet": { inBaseUnits: 0.3047993333333334 }, "sears-1922-truncated-chains": { inBaseUnits: 20.116756 }, "sears-1922-truncated-links": { inBaseUnits: 0.20116756 }, "us-yards": { inBaseUnits: 0.9144018288036576 }, decimeters: { inBaseUnits: 0.1 }, inches: { inBaseUnits: 0.0254 }, "us-inches": { inBaseUnits: 0.0254000508001016 }, rods: { inBaseUnits: 5.0292 }, "us-rods": { inBaseUnits: 5.029210058420118 }, "us-nautical-miles": { inBaseUnits: 1853.248 }, "uk-nautical-miles": { inBaseUnits: 1853.184 }, smoots: { inBaseUnits: 1.7018 }, "tx-vara": { inBaseUnits: 0.8466683600033867 }, points: { inBaseUnits: 3527777777777778e-19 }, micrometers: { inBaseUnits: 1e-6 }, nanometers: { inBaseUnits: 1e-9 }, "50-kilometers": { inBaseUnits: 5e4 }, "150-kilometers": { inBaseUnits: 15e4 } } }, area: { baseUnit: "square-meters", units: { "square-millimeters": { inBaseUnits: kr(1e-3) }, "square-centimeters": { inBaseUnits: kr(0.01) }, "square-decimeters": { inBaseUnits: kr(0.1) }, "square-meters": { inBaseUnits: 1 }, "square-kilometers": { inBaseUnits: kr(1e3) }, "square-inches": { inBaseUnits: kr(0.0254) }, "square-feet": { inBaseUnits: kr(0.3048) }, "square-yards": { inBaseUnits: kr(0.9144) }, "square-miles": { inBaseUnits: kr(1609.344) }, "square-nautical-miles": { inBaseUnits: kr(1852) }, "square-us-feet": { inBaseUnits: kr(1200 / 3937) }, acres: { inBaseUnits: 15625e-7 * kr(1609.344) }, ares: { inBaseUnits: 100 }, hectares: { inBaseUnits: 1e4 } } }, volume: { baseUnit: "liters", units: { liters: { inBaseUnits: 1 }, "cubic-millimeters": { inBaseUnits: 1e3 * on(1e-3) }, "cubic-centimeters": { inBaseUnits: 1e3 * on(0.01) }, "cubic-decimeters": { inBaseUnits: 1e3 * on(0.1) }, "cubic-meters": { inBaseUnits: 1e3 }, "cubic-kilometers": { inBaseUnits: 1e3 * on(1e3) }, "cubic-inches": { inBaseUnits: 1e3 * on(0.0254) }, "cubic-feet": { inBaseUnits: 1e3 * on(0.3048) }, "cubic-yards": { inBaseUnits: 1e3 * on(0.9144) }, "cubic-miles": { inBaseUnits: 1e3 * on(1609.344) }, "cubic-us-feet": { inBaseUnits: 1e3 * on(1200 / 3937) } } }, angle: { baseUnit: "radians", units: { radians: { inBaseUnits: 1 }, degrees: { inBaseUnits: Math.PI / 180 } } } };
|
|
20537
20530
|
(() => {
|
|
20538
20531
|
const t = {};
|
|
20539
20532
|
for (const e in T2) for (const r in T2[e].units) t[r] = e;
|
|
@@ -20551,7 +20544,7 @@ function eE(t, e = !1) {
|
|
|
20551
20544
|
if (r) {
|
|
20552
20545
|
if (BN(r)) return d3.metersPerDegree;
|
|
20553
20546
|
if (qN(r)) return m3.metersPerDegree;
|
|
20554
|
-
s =
|
|
20547
|
+
s = Hs.values[Hs[r]], !s && e && JN.has(r) && (s = XN);
|
|
20555
20548
|
} else n && (H3(n) ? s = P2(j3.exec(n), s) : q3(n) && (s = P2(W3.exec(n), s)));
|
|
20556
20549
|
return s;
|
|
20557
20550
|
}
|
|
@@ -20564,7 +20557,7 @@ function B3(t) {
|
|
|
20564
20557
|
function tE(t) {
|
|
20565
20558
|
const e = t?.wkid ?? null, r = t?.wkt2 ?? t?.wkt ?? null;
|
|
20566
20559
|
let n = null;
|
|
20567
|
-
if (e) n =
|
|
20560
|
+
if (e) n = Hs.units[Hs[e]];
|
|
20568
20561
|
else if (r) {
|
|
20569
20562
|
const s = H3(r) ? j3 : q3(r) ? W3 : null;
|
|
20570
20563
|
if (s) {
|
|
@@ -20586,9 +20579,9 @@ function nE(t) {
|
|
|
20586
20579
|
if (!r || !G3(r)) {
|
|
20587
20580
|
const n = B3(t);
|
|
20588
20581
|
r = null;
|
|
20589
|
-
const s =
|
|
20582
|
+
const s = Hs.values;
|
|
20590
20583
|
for (let i = 0; i < s.length; ++i) if (Math.abs(n - s[i]) < rE) {
|
|
20591
|
-
r =
|
|
20584
|
+
r = Hs.units[i];
|
|
20592
20585
|
break;
|
|
20593
20586
|
}
|
|
20594
20587
|
}
|
|
@@ -20598,10 +20591,10 @@ const sE = { esriAcres: "acres", esriAres: "ares", esriHectares: "hectares", esr
|
|
|
20598
20591
|
cu()(sE);
|
|
20599
20592
|
cu()(iE);
|
|
20600
20593
|
cu()(oE);
|
|
20601
|
-
var
|
|
20594
|
+
var Zr;
|
|
20602
20595
|
let pe = class extends h3 {
|
|
20603
20596
|
static {
|
|
20604
|
-
|
|
20597
|
+
Zr = this;
|
|
20605
20598
|
}
|
|
20606
20599
|
static {
|
|
20607
20600
|
this.GCS_NAD_1927 = null;
|
|
@@ -20618,10 +20611,10 @@ let pe = class extends h3 {
|
|
|
20618
20611
|
static fromJSON(e) {
|
|
20619
20612
|
if (!e) return null;
|
|
20620
20613
|
if (!aE.some((n) => e[n] != null)) {
|
|
20621
|
-
if (e?.wkid === 102100) return
|
|
20622
|
-
if (e?.wkid === 4326) return
|
|
20614
|
+
if (e?.wkid === 102100) return Zr.WebMercator;
|
|
20615
|
+
if (e?.wkid === 4326) return Zr.WGS84;
|
|
20623
20616
|
}
|
|
20624
|
-
const r = new
|
|
20617
|
+
const r = new Zr();
|
|
20625
20618
|
return r.read(e), r;
|
|
20626
20619
|
}
|
|
20627
20620
|
constructor(e) {
|
|
@@ -20634,7 +20627,7 @@ let pe = class extends h3 {
|
|
|
20634
20627
|
return Yh(this);
|
|
20635
20628
|
}
|
|
20636
20629
|
get isWebMercator() {
|
|
20637
|
-
return
|
|
20630
|
+
return qs(this);
|
|
20638
20631
|
}
|
|
20639
20632
|
get isGeographic() {
|
|
20640
20633
|
return U3(this);
|
|
@@ -20652,9 +20645,9 @@ let pe = class extends h3 {
|
|
|
20652
20645
|
this.wkid || (r.wkt = e);
|
|
20653
20646
|
}
|
|
20654
20647
|
clone() {
|
|
20655
|
-
if (this ===
|
|
20656
|
-
if (this ===
|
|
20657
|
-
const e = new
|
|
20648
|
+
if (this === Zr.WGS84) return new Zr(z3);
|
|
20649
|
+
if (this === Zr.WebMercator) return new Zr(V3);
|
|
20650
|
+
const e = new Zr();
|
|
20658
20651
|
return this.wkid != null ? (e.wkid = this.wkid, this.latestWkid != null && (e.latestWkid = this.latestWkid), this.vcsWkid != null && (e.vcsWkid = this.vcsWkid), this.latestVcsWkid != null && (e.latestVcsWkid = this.latestVcsWkid)) : (this.wkt != null && (e.wkt = this.wkt), this.wkt2 != null && (e.wkt2 = this.wkt2)), this.imageCoordinateSystem && (e.imageCoordinateSystem = gr(this.imageCoordinateSystem)), this.falseM != null && (e.falseM = this.falseM), this.falseX != null && (e.falseX = this.falseX), this.falseY != null && (e.falseY = this.falseY), this.falseZ != null && (e.falseZ = this.falseZ), this.mTolerance != null && (e.mTolerance = this.mTolerance), this.mUnits != null && (e.mUnits = this.mUnits), this.xyTolerance != null && (e.xyTolerance = this.xyTolerance), this.xyUnits != null && (e.xyUnits = this.xyUnits), this.zTolerance != null && (e.zTolerance = this.zTolerance), this.zUnits != null && (e.zUnits = this.zUnits), e;
|
|
20659
20652
|
}
|
|
20660
20653
|
equals(e) {
|
|
@@ -20670,13 +20663,13 @@ let pe = class extends h3 {
|
|
|
20670
20663
|
return this.write(void 0, e);
|
|
20671
20664
|
}
|
|
20672
20665
|
};
|
|
20673
|
-
se([He({ readOnly: !0 })], pe.prototype, "isWGS84", null), se([He({ readOnly: !0 })], pe.prototype, "isWebMercator", null), se([He({ readOnly: !0 })], pe.prototype, "isGeographic", null), se([He({ readOnly: !0 })], pe.prototype, "isWrappable", null), se([He({ type:
|
|
20666
|
+
se([He({ readOnly: !0 })], pe.prototype, "isWGS84", null), se([He({ readOnly: !0 })], pe.prototype, "isWebMercator", null), se([He({ readOnly: !0 })], pe.prototype, "isGeographic", null), se([He({ readOnly: !0 })], pe.prototype, "isWrappable", null), se([He({ type: Xn, json: { write: !0 } })], pe.prototype, "latestWkid", void 0), se([He({ readOnly: !0 })], pe.prototype, "metersPerUnit", null), se([He({ readOnly: !0 })], pe.prototype, "unit", null), se([He({ type: Xn, json: { write: !0, origins: { "web-scene": { write: { overridePolicy() {
|
|
20674
20667
|
return { isRequired: this.wkt == null };
|
|
20675
20668
|
} } } } } })], pe.prototype, "wkid", void 0), se([He({ type: String, json: { origins: { "web-scene": { write: { overridePolicy() {
|
|
20676
20669
|
return { isRequired: this.wkid == null };
|
|
20677
|
-
} } } } } })], pe.prototype, "wkt", void 0), se([Uh("wkt"), Uh("web-scene", "wkt")], pe.prototype, "writeWkt", null), se([He({ type: String, json: { write: !1 } })], pe.prototype, "wkt2", void 0), se([He({ type:
|
|
20670
|
+
} } } } } })], pe.prototype, "wkt", void 0), se([Uh("wkt"), Uh("web-scene", "wkt")], pe.prototype, "writeWkt", null), se([He({ type: String, json: { write: !1 } })], pe.prototype, "wkt2", void 0), se([He({ type: Xn, json: { write: !0 } })], pe.prototype, "vcsWkid", void 0), se([He({ type: Xn, json: { write: !0 } })], pe.prototype, "latestVcsWkid", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "falseM", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "falseX", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "falseY", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "falseZ", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "mTolerance", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "mUnits", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "xyTolerance", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "xyUnits", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "zTolerance", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "zUnits", void 0), se([He()], pe.prototype, "imageCoordinateSystem", void 0), pe = Zr = se([lu("esri.geometry.SpatialReference")], pe), pe.prototype.toJSON.isDefaultToJSON = !0, pe.GCS_NAD_1927 = Cs.freeze(new pe({ wkid: 4267, wkt: 'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]' })), pe.WGS84 = Cs.freeze(new pe(z3)), pe.WebMercator = Cs.freeze(new pe(V3)), pe.PlateCarree = Cs.freeze(new pe(ZN));
|
|
20678
20671
|
const aE = ["falseM", "falseX", "falseY", "falseZ", "mTolerance", "mUnits", "xyTolerance", "xyUnits", "zTolerance", "zUnits"];
|
|
20679
|
-
let
|
|
20672
|
+
let Fr = class extends h3 {
|
|
20680
20673
|
constructor(...e) {
|
|
20681
20674
|
super(...e), this.type = null, this.hasM = !1, this.hasZ = !1, this.spatialReference = pe.WGS84;
|
|
20682
20675
|
}
|
|
@@ -20707,7 +20700,7 @@ let $r = class extends h3 {
|
|
|
20707
20700
|
this.cache[e] = r;
|
|
20708
20701
|
}
|
|
20709
20702
|
};
|
|
20710
|
-
se([Re()],
|
|
20703
|
+
se([Re()], Fr.prototype, "type", void 0), se([Re({ readOnly: !0 })], Fr.prototype, "cache", null), se([Re({ readOnly: !0 })], Fr.prototype, "extent", null), se([Re({ type: Boolean, json: { write: { overridePolicy: (t) => ({ enabled: t }) } } })], Fr.prototype, "hasM", void 0), se([Re({ type: Boolean, json: { write: { overridePolicy: (t) => ({ enabled: t }) } } })], Fr.prototype, "hasZ", void 0), se([Re({ type: pe, json: { write: !0 }, value: pe.WGS84 })], Fr.prototype, "spatialReference", void 0), se([n3("spatialReference")], Fr.prototype, "readSpatialReference", null), Fr = se([N0("esri.geometry.Geometry")], Fr);
|
|
20711
20704
|
function Za(t) {
|
|
20712
20705
|
if (t && typeof t == "object" && "type" in t && t.type === "mesh") throw new Gi("internal:mesh", "Mesh geometries are not supported for this operation");
|
|
20713
20706
|
}
|
|
@@ -20744,7 +20737,7 @@ function Y3(t, e, r, n, s) {
|
|
|
20744
20737
|
}
|
|
20745
20738
|
function T1(t, e) {
|
|
20746
20739
|
const r = t && (M2(t) ? t : t.spatialReference), n = e && (M2(e) ? e : e.spatialReference);
|
|
20747
|
-
return !(t && "type" in t && t.type === "mesh" || e && "type" in e && e.type === "mesh" || !r || !n) && (!!A0(n, r) ||
|
|
20740
|
+
return !(t && "type" in t && t.type === "mesh" || e && "type" in e && e.type === "mesh" || !r || !n) && (!!A0(n, r) || qs(n) && Yh(r) || qs(r) && Yh(n));
|
|
20748
20741
|
}
|
|
20749
20742
|
function wi(t, e, r = [0, 0]) {
|
|
20750
20743
|
e > 89.99999 ? e = 89.99999 : e < -89.99999 && (e = -89.99999);
|
|
@@ -20778,7 +20771,7 @@ function hE(t) {
|
|
|
20778
20771
|
}
|
|
20779
20772
|
function Z3({ x: t, y: e, spatialReference: r }, n = [0, 0]) {
|
|
20780
20773
|
if (r) {
|
|
20781
|
-
if (
|
|
20774
|
+
if (qs(r)) return M0(t, e, n);
|
|
20782
20775
|
if (U3(r)) return n[0] = t, n[1] = e, n;
|
|
20783
20776
|
}
|
|
20784
20777
|
return null;
|
|
@@ -20789,11 +20782,11 @@ const A1 = [0, 0];
|
|
|
20789
20782
|
function O2(t) {
|
|
20790
20783
|
return t && (t.declaredClass === "esri.geometry.SpatialReference" || t.wkid != null);
|
|
20791
20784
|
}
|
|
20792
|
-
let Ht = ha = class extends
|
|
20785
|
+
let Ht = ha = class extends Fr {
|
|
20793
20786
|
static copy(t, e) {
|
|
20794
20787
|
e._set("x", t._get("x")), e._set("y", t._get("y")), e._set("z", t._get("z")), e._set("m", t._get("m"));
|
|
20795
20788
|
const r = t._get("spatialReference");
|
|
20796
|
-
e._set("spatialReference",
|
|
20789
|
+
e._set("spatialReference", Cs.isFrozen(r) ? r : r.clone());
|
|
20797
20790
|
}
|
|
20798
20791
|
constructor(...t) {
|
|
20799
20792
|
super(...t), this.x = 0, this.y = 0, this.z = void 0, this.m = void 0, this.type = "point";
|
|
@@ -20955,12 +20948,12 @@ function bE(t, e) {
|
|
|
20955
20948
|
for (const i of r) if (s(t, i)) return !0;
|
|
20956
20949
|
return !1;
|
|
20957
20950
|
}
|
|
20958
|
-
const
|
|
20951
|
+
const rs = [0, 0], ns = [0, 0], ss = [0, 0], is = [0, 0], wE = [rs, ns, ss, is], Q3 = [[ss, rs], [rs, ns], [ns, is], [is, ss]];
|
|
20959
20952
|
function vE(t, e) {
|
|
20960
20953
|
return SE(t, e.rings);
|
|
20961
20954
|
}
|
|
20962
20955
|
function SE(t, e) {
|
|
20963
|
-
|
|
20956
|
+
rs[0] = t.xmin, rs[1] = t.ymax, ns[0] = t.xmax, ns[1] = t.ymax, ss[0] = t.xmin, ss[1] = t.ymin, is[0] = t.xmax, is[1] = t.ymin;
|
|
20964
20957
|
for (const r of wE) if (pE(e, r)) return !0;
|
|
20965
20958
|
for (const r of e) {
|
|
20966
20959
|
if (!r.length) continue;
|
|
@@ -20975,7 +20968,7 @@ function SE(t, e) {
|
|
|
20975
20968
|
return !1;
|
|
20976
20969
|
}
|
|
20977
20970
|
function NE(t, e) {
|
|
20978
|
-
|
|
20971
|
+
rs[0] = t.xmin, rs[1] = t.ymax, ns[0] = t.xmax, ns[1] = t.ymax, ss[0] = t.xmin, ss[1] = t.ymin, is[0] = t.xmax, is[1] = t.ymin;
|
|
20979
20972
|
const r = e.paths;
|
|
20980
20973
|
for (const n of r) {
|
|
20981
20974
|
if (!r.length) continue;
|
|
@@ -21020,14 +21013,14 @@ function xE(t) {
|
|
|
21020
21013
|
return NE;
|
|
21021
21014
|
}
|
|
21022
21015
|
}
|
|
21023
|
-
var
|
|
21016
|
+
var Dr;
|
|
21024
21017
|
function TE(t) {
|
|
21025
21018
|
return t && (t.declaredClass === "esri.geometry.SpatialReference" || t.wkid != null);
|
|
21026
21019
|
}
|
|
21027
21020
|
function Sn(t, e, r) {
|
|
21028
21021
|
return e == null ? r : r == null ? e : t(e, r);
|
|
21029
21022
|
}
|
|
21030
|
-
let St =
|
|
21023
|
+
let St = Dr = class extends Fr {
|
|
21031
21024
|
constructor(...t) {
|
|
21032
21025
|
super(...t), this.type = "extent", this.xmin = 0, this.ymin = 0, this.mmin = void 0, this.zmin = void 0, this.xmax = 0, this.ymax = 0, this.mmax = void 0, this.zmax = void 0;
|
|
21033
21026
|
}
|
|
@@ -21035,7 +21028,7 @@ let St = kr = class extends $r {
|
|
|
21035
21028
|
return TE(t) ? { spatialReference: t, xmin: 0, ymin: 0, xmax: 0, ymax: 0 } : typeof t == "object" ? (t.spatialReference = t.spatialReference == null ? pe.WGS84 : t.spatialReference, t) : { xmin: t, ymin: e, xmax: r, ymax: n, spatialReference: s ?? pe.WGS84 };
|
|
21036
21029
|
}
|
|
21037
21030
|
static fromPoint(t) {
|
|
21038
|
-
return new
|
|
21031
|
+
return new Dr({ xmin: t.x, ymin: t.y, zmin: t.z, xmax: t.x, ymax: t.y, zmax: t.z, spatialReference: t.spatialReference });
|
|
21039
21032
|
}
|
|
21040
21033
|
get cache() {
|
|
21041
21034
|
return this.commitProperty("xmin"), this.commitProperty("ymin"), this.commitProperty("zmin"), this.commitProperty("mmin"), this.commitProperty("xmax"), this.commitProperty("ymax"), this.commitProperty("zmax"), this.commitProperty("mmax"), this.commitProperty("spatialReference"), {};
|
|
@@ -21064,7 +21057,7 @@ let St = kr = class extends $r {
|
|
|
21064
21057
|
return t.z != null && this.hasZ ? this.offset(t.x - e.x, t.y - e.y, t.z - e.z) : this.offset(t.x - e.x, t.y - e.y);
|
|
21065
21058
|
}
|
|
21066
21059
|
clone() {
|
|
21067
|
-
const t = new
|
|
21060
|
+
const t = new Dr();
|
|
21068
21061
|
return t.xmin = this.xmin, t.ymin = this.ymin, t.xmax = this.xmax, t.ymax = this.ymax, t.spatialReference = this.spatialReference, this.zmin != null && (t.zmin = this.zmin, t.zmax = this.zmax), this.mmin != null && (t.mmin = this.mmin, t.mmax = this.mmax), t;
|
|
21069
21062
|
}
|
|
21070
21063
|
contains(t) {
|
|
@@ -21168,11 +21161,11 @@ let St = kr = class extends $r {
|
|
|
21168
21161
|
_ = L1(this.xmax, t);
|
|
21169
21162
|
const L = _.x, D = _.frameId, z = S === L && l > 0;
|
|
21170
21163
|
if (l > 2 * v) {
|
|
21171
|
-
const W = new
|
|
21164
|
+
const W = new Dr(c < m ? S : L, s, v, i, u), j = new Dr(y, s, c < m ? L : S, i, u), U = new Dr(0, s, v, i, u), F = new Dr(y, s, 0, i, u), B = [], Z = [];
|
|
21172
21165
|
W.contains(U) && B.push(T), W.contains(F) && Z.push(T), j.contains(U) && B.push(D), j.contains(F) && Z.push(D);
|
|
21173
21166
|
for (let ee = T + 1; ee < D; ee++) B.push(ee), Z.push(ee);
|
|
21174
21167
|
e.push({ extent: W, frameIds: [T] }, { extent: j, frameIds: [D] }, { extent: U, frameIds: B }, { extent: F, frameIds: Z });
|
|
21175
|
-
} else S > L || z ? e.push({ extent: new
|
|
21168
|
+
} else S > L || z ? e.push({ extent: new Dr(S, s, v, i, u), frameIds: [T] }, { extent: new Dr(y, s, L, i, u), frameIds: [D] }) : e.push({ extent: new Dr(S, s, L, i, u), frameIds: [T] });
|
|
21176
21169
|
this.cache._parts = e;
|
|
21177
21170
|
}
|
|
21178
21171
|
const r = this.hasZ, n = this.hasM;
|
|
@@ -21197,7 +21190,7 @@ se([Re({ readOnly: !0 })], St.prototype, "cache", null), se([Re({ readOnly: !0 }
|
|
|
21197
21190
|
return { enabled: this.hasM };
|
|
21198
21191
|
} } } })], St.prototype, "mmax", void 0), se([Re({ type: Number, json: { origins: { "web-scene": { write: !1 } }, write: { overridePolicy() {
|
|
21199
21192
|
return { enabled: this.hasZ };
|
|
21200
|
-
} } } })], St.prototype, "zmax", void 0), St =
|
|
21193
|
+
} } } })], St.prototype, "zmax", void 0), St = Dr = se([N0("esri.geometry.Extent")], St), St.prototype.toJSON.isDefaultToJSON = !0;
|
|
21201
21194
|
function Go(t) {
|
|
21202
21195
|
return typeof t == "number" && isFinite(t) && Math.floor(t) === t;
|
|
21203
21196
|
}
|
|
@@ -21227,7 +21220,7 @@ function R2(t) {
|
|
|
21227
21220
|
return r;
|
|
21228
21221
|
}
|
|
21229
21222
|
const I2 = "esri.core.sql.timeonly";
|
|
21230
|
-
let pr = class
|
|
21223
|
+
let pr = class Xr {
|
|
21231
21224
|
constructor(e, r, n, s) {
|
|
21232
21225
|
this._hour = e, this._minute = r, this._second = n, this._millisecond = s, this.declaredRootClass = I2;
|
|
21233
21226
|
}
|
|
@@ -21247,10 +21240,10 @@ let pr = class Zr {
|
|
|
21247
21240
|
return this._millisecond;
|
|
21248
21241
|
}
|
|
21249
21242
|
equals(e) {
|
|
21250
|
-
return
|
|
21243
|
+
return Xr.isTimeOnly(e) && e.hour === this.hour && e.minute === this.minute && e.second === this.second && e.millisecond === this.millisecond;
|
|
21251
21244
|
}
|
|
21252
21245
|
clone() {
|
|
21253
|
-
return new
|
|
21246
|
+
return new Xr(this.hour, this.minute, this.second, this.millisecond);
|
|
21254
21247
|
}
|
|
21255
21248
|
isValid() {
|
|
21256
21249
|
return Go(this.hour) && Go(this.minute) && Go(this.second) && Go(this.millisecond) && this.hour >= 0 && this.hour < 24 && this.minute >= 0 && this.minute < 60 && this.second >= 0 && this.second < 60 && this.millisecond >= 0 && this.millisecond < 1e3;
|
|
@@ -21274,24 +21267,24 @@ let pr = class Zr {
|
|
|
21274
21267
|
return this.millisecond + 1e3 * this.second + 1e3 * this.minute * 60 + 60 * this.hour * 60 * 1e3;
|
|
21275
21268
|
}
|
|
21276
21269
|
static fromParts(e, r, n, s) {
|
|
21277
|
-
const i = new
|
|
21270
|
+
const i = new Xr(e, r, n, s);
|
|
21278
21271
|
return i.isValid() ? i : null;
|
|
21279
21272
|
}
|
|
21280
21273
|
static fromReader(e) {
|
|
21281
21274
|
if (!e) return null;
|
|
21282
21275
|
const r = e.split(":");
|
|
21283
|
-
return r.length !== 3 ? null : new
|
|
21276
|
+
return r.length !== 3 ? null : new Xr(parseInt(r[0], 10), parseInt(r[1], 10), parseInt(r[2], 10), 0);
|
|
21284
21277
|
}
|
|
21285
21278
|
static fromMilliseconds(e) {
|
|
21286
21279
|
if (e > 864e5 || e < 0) return null;
|
|
21287
21280
|
const r = Math.floor(e / 1e3 % 60), n = Math.floor(e / 6e4 % 60), s = Math.floor(e / 36e5 % 24), i = Math.floor(e % 1e3);
|
|
21288
|
-
return new
|
|
21281
|
+
return new Xr(s, n, r, i);
|
|
21289
21282
|
}
|
|
21290
21283
|
static fromDateJS(e) {
|
|
21291
|
-
return new
|
|
21284
|
+
return new Xr(e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds());
|
|
21292
21285
|
}
|
|
21293
21286
|
static fromDateTime(e) {
|
|
21294
|
-
return new
|
|
21287
|
+
return new Xr(e.hour, e.minute, e.second, e.millisecond);
|
|
21295
21288
|
}
|
|
21296
21289
|
static fromSqlTimeStampOffset(e) {
|
|
21297
21290
|
return this.fromDateTime(e.toDateTime());
|
|
@@ -21302,7 +21295,7 @@ let pr = class Zr {
|
|
|
21302
21295
|
r ? (r = R2(r)) && n.push(r) : r !== null && r !== "" || (n.push("HH:mm:ss"), n.push("HH:mm:ss.SSS"), n.push("hh:mm:ss a"), n.push("hh:mm:ss.SSS a"), n.push("HH:mm"), n.push("hh:mm a"), n.push("H:mm"), n.push("h:mm a"), n.push("H:mm:ss"), n.push("h:mm:ss a"), n.push("H:mm:ss.SSS"), n.push("h:mm:ss.SSS a"));
|
|
21303
21296
|
for (const s of n) {
|
|
21304
21297
|
const i = H.fromFormat(e, s);
|
|
21305
|
-
if (i.isValid) return new
|
|
21298
|
+
if (i.isValid) return new Xr(i.hour, i.minute, i.second, i.millisecond);
|
|
21306
21299
|
}
|
|
21307
21300
|
return null;
|
|
21308
21301
|
}
|
|
@@ -21316,7 +21309,7 @@ let pr = class Zr {
|
|
|
21316
21309
|
case "minutes":
|
|
21317
21310
|
case "seconds":
|
|
21318
21311
|
case "milliseconds":
|
|
21319
|
-
return
|
|
21312
|
+
return Xr.fromDateTime(this.toUTCDateTime().plus({ [e]: r }));
|
|
21320
21313
|
}
|
|
21321
21314
|
return null;
|
|
21322
21315
|
}
|
|
@@ -21387,7 +21380,7 @@ function D2(t, e) {
|
|
|
21387
21380
|
let r = null, n = null;
|
|
21388
21381
|
for (const s of t) {
|
|
21389
21382
|
let i = s;
|
|
21390
|
-
i = Ar.isDateOnly(s) || pr.isTimeOnly(s) ? s.toNumber() : H.isDateTime(s) ? s.toMillis() :
|
|
21383
|
+
i = Ar.isDateOnly(s) || pr.isTimeOnly(s) ? s.toNumber() : H.isDateTime(s) ? s.toMillis() : Hr.isTimestampOffset(s) ? s.toMilliseconds() : s, (r === null || e === "max" && n !== null && i !== null && n <= i || e === "min" && n !== null && i !== null && n >= i) && (r = s, n = i);
|
|
21391
21384
|
}
|
|
21392
21385
|
return r;
|
|
21393
21386
|
}
|
|
@@ -21543,7 +21536,7 @@ function et(t) {
|
|
|
21543
21536
|
return pr.isTimeOnly(t);
|
|
21544
21537
|
}
|
|
21545
21538
|
function Je(t) {
|
|
21546
|
-
return
|
|
21539
|
+
return Hr.isTimestampOffset(t);
|
|
21547
21540
|
}
|
|
21548
21541
|
function pu(t) {
|
|
21549
21542
|
let e = ME.exec(t);
|
|
@@ -21572,12 +21565,12 @@ function Bi(t, e, r = !1) {
|
|
|
21572
21565
|
return y;
|
|
21573
21566
|
}
|
|
21574
21567
|
if (n = IE.exec(t), n !== null) {
|
|
21575
|
-
const [, s, i, u, l, c, m, _, y, v, S] = n, T =
|
|
21568
|
+
const [, s, i, u, l, c, m, _, y, v, S] = n, T = Hr.fromParts(parseInt(s, 10), parseInt(i, 10), parseInt(u, 10), parseInt(l, 10), parseInt(c, 10), parseInt(m, 10), _ ? parseInt(_.replace(".", ""), 10) : 0, y === "-", parseInt(v, 10), parseInt(S, 10));
|
|
21576
21569
|
if (T.isValid === !1) throw new R("InvalidTimeStamp");
|
|
21577
21570
|
return T;
|
|
21578
21571
|
}
|
|
21579
21572
|
if (n = kE.exec(t), n !== null) {
|
|
21580
|
-
const [, s, i, u, l, c, m, _, y] = n, v =
|
|
21573
|
+
const [, s, i, u, l, c, m, _, y] = n, v = Hr.fromParts(parseInt(s, 10), parseInt(i, 10), parseInt(u, 10), parseInt(l, 10), parseInt(c, 10), 0, 0, m === "-", parseInt(_, 10), parseInt(y, 10));
|
|
21581
21574
|
if (v.isValid === !1) throw new R("InvalidTimeStamp");
|
|
21582
21575
|
return v;
|
|
21583
21576
|
}
|
|
@@ -21643,7 +21636,7 @@ function qo(t) {
|
|
|
21643
21636
|
function hr(t, e, r) {
|
|
21644
21637
|
if (t == null || e == null) return null;
|
|
21645
21638
|
if (Xt(t)) {
|
|
21646
|
-
if (Xt(e)) return
|
|
21639
|
+
if (Xt(e)) return jr(t, e, r);
|
|
21647
21640
|
if (Tt(e)) return HE(t, e, r);
|
|
21648
21641
|
if (Xh(e)) throw new R("InvalidOperator");
|
|
21649
21642
|
if (Xe(e)) throw new R("InvalidOperator");
|
|
@@ -21656,11 +21649,11 @@ function hr(t, e, r) {
|
|
|
21656
21649
|
if (Je(e)) throw new R("InvalidOperator");
|
|
21657
21650
|
} else if (Ze(t)) {
|
|
21658
21651
|
if (C1(e)) {
|
|
21659
|
-
if (
|
|
21660
|
-
if (H.isDateTime(e) && !
|
|
21661
|
-
} else if (H.isDateTime(e) &&
|
|
21652
|
+
if (xs(t.zone)) {
|
|
21653
|
+
if (H.isDateTime(e) && !xs(e.zone) || Hr.isTimestampOffset(e)) return pi(t, e, r);
|
|
21654
|
+
} else if (H.isDateTime(e) && xs(e.zone) && (!xs(t.zone) || Hr.isTimestampOffset(t)))
|
|
21662
21655
|
return pi(t, e, r);
|
|
21663
|
-
return
|
|
21656
|
+
return jr(qo(t), qo(e), r);
|
|
21664
21657
|
}
|
|
21665
21658
|
if (Tt(e)) throw new R("InvalidOperator");
|
|
21666
21659
|
if (Xe(e)) return XE(t, e, r);
|
|
@@ -21670,17 +21663,17 @@ function hr(t, e, r) {
|
|
|
21670
21663
|
if (Je(e)) return KE(t, e, r);
|
|
21671
21664
|
if (Ze(e)) return QE(t, e, r);
|
|
21672
21665
|
if (Tt(e)) throw new R("InvalidOperator");
|
|
21673
|
-
if (Xe(e)) return
|
|
21666
|
+
if (Xe(e)) return jr(t.toNumber(), e.toNumber(), r);
|
|
21674
21667
|
if (et(e)) throw new R("InvalidOperator");
|
|
21675
21668
|
if (Xt(e)) throw new R("InvalidOperator");
|
|
21676
21669
|
} else if (et(t)) {
|
|
21677
|
-
if (et(e)) return
|
|
21670
|
+
if (et(e)) return jr(t.toNumber(), e.toNumber(), r);
|
|
21678
21671
|
if (Tt(e)) throw new R("InvalidOperator");
|
|
21679
21672
|
if (Xt(e)) throw new R("InvalidOperator");
|
|
21680
21673
|
if (Xe(e)) throw new R("InvalidOperator");
|
|
21681
21674
|
if (C1(e)) throw new R("InvalidOperator");
|
|
21682
21675
|
} else if (Je(t)) {
|
|
21683
|
-
if (C1(e)) return H.isDateTime(e) &&
|
|
21676
|
+
if (C1(e)) return H.isDateTime(e) && xs(e.zone) ? pi(t, e, r) : jr(qo(t), qo(e), r);
|
|
21684
21677
|
if (Tt(e)) throw new R("InvalidOperator");
|
|
21685
21678
|
if (Xe(e)) return JE(t, e, r);
|
|
21686
21679
|
if (et(e)) throw new R("InvalidOperator");
|
|
@@ -21701,7 +21694,7 @@ function hr(t, e, r) {
|
|
|
21701
21694
|
return t <= e;
|
|
21702
21695
|
}
|
|
21703
21696
|
}
|
|
21704
|
-
function
|
|
21697
|
+
function jr(t, e, r) {
|
|
21705
21698
|
switch (r) {
|
|
21706
21699
|
case "<>":
|
|
21707
21700
|
return t !== e;
|
|
@@ -21719,7 +21712,7 @@ function Vr(t, e, r) {
|
|
|
21719
21712
|
}
|
|
21720
21713
|
function HE(t, e, r) {
|
|
21721
21714
|
const n = parseFloat(e);
|
|
21722
|
-
if (!isNaN(n)) return
|
|
21715
|
+
if (!isNaN(n)) return jr(t, n, r);
|
|
21723
21716
|
const s = t.toString();
|
|
21724
21717
|
switch (r) {
|
|
21725
21718
|
case "<>":
|
|
@@ -21738,7 +21731,7 @@ function HE(t, e, r) {
|
|
|
21738
21731
|
}
|
|
21739
21732
|
function YE(t, e, r) {
|
|
21740
21733
|
const n = parseFloat(t);
|
|
21741
|
-
if (!isNaN(n)) return
|
|
21734
|
+
if (!isNaN(n)) return jr(n, e, r);
|
|
21742
21735
|
const s = e.toString();
|
|
21743
21736
|
switch (r) {
|
|
21744
21737
|
case "<>":
|
|
@@ -21773,22 +21766,22 @@ function ZE(t, e, r) {
|
|
|
21773
21766
|
}
|
|
21774
21767
|
function XE(t, e, r) {
|
|
21775
21768
|
const n = e.toDateTimeLuxon(t.zone);
|
|
21776
|
-
return
|
|
21769
|
+
return jr((t = t.startOf("day")).toMillis(), n.toMillis(), r);
|
|
21777
21770
|
}
|
|
21778
21771
|
function JE(t, e, r) {
|
|
21779
21772
|
const n = e.toDateTimeLuxon(t.toDateTime().zone);
|
|
21780
|
-
return
|
|
21773
|
+
return jr((t = t.startOfDay()).toMilliseconds(), n.toMillis(), r);
|
|
21781
21774
|
}
|
|
21782
21775
|
function QE(t, e, r) {
|
|
21783
21776
|
const n = t.toDateTimeLuxon(e.zone);
|
|
21784
|
-
return e = e.startOf("day"),
|
|
21777
|
+
return e = e.startOf("day"), jr(n.toMillis(), e.toMillis(), r);
|
|
21785
21778
|
}
|
|
21786
21779
|
function KE(t, e, r) {
|
|
21787
21780
|
const n = t.toDateTimeLuxon(e.toDateTime().zone);
|
|
21788
|
-
return e = e.startOfDay(),
|
|
21781
|
+
return e = e.startOfDay(), jr(n.toMillis(), e.toMilliseconds(), r);
|
|
21789
21782
|
}
|
|
21790
21783
|
function pi(t, e, r) {
|
|
21791
|
-
|
|
21784
|
+
Hr.isTimestampOffset(t) && (t = t.toDateTime()), Hr.isTimestampOffset(e) && (e = e.toDateTime());
|
|
21792
21785
|
const n = U2(t), s = U2(e);
|
|
21793
21786
|
switch (r) {
|
|
21794
21787
|
case "<>":
|
|
@@ -22433,7 +22426,7 @@ let I1 = class extends SyntaxError {
|
|
|
22433
22426
|
function Qx(t, e) {
|
|
22434
22427
|
const r = {}, n = (e = e !== void 0 ? e : {}).grammarSource, s = { start: z0 };
|
|
22435
22428
|
let i = z0;
|
|
22436
|
-
const u = "!", l = "=", c = ">=", m = ">", _ = "<=", y = "<>", v = "!=", S = "||", T = "@", L = "'", D = "N'", z = "''", W = ".", j = "null", U = "true", F = "false", B = "in", Z = "is", ee = "like", ye = "escape", ke = "not", ve = "and", ce = "or", K = "between", Y = "from", re = "for", te = "substring", ue = "extract", _e = "trim", xe = "position", tt = "timestamp", ct = "date",
|
|
22429
|
+
const u = "!", l = "=", c = ">=", m = ">", _ = "<=", y = "<>", v = "!=", S = "||", T = "@", L = "'", D = "N'", z = "''", W = ".", j = "null", U = "true", F = "false", B = "in", Z = "is", ee = "like", ye = "escape", ke = "not", ve = "and", ce = "or", K = "between", Y = "from", re = "for", te = "substring", ue = "extract", _e = "trim", xe = "position", tt = "timestamp", ct = "date", Yr = "time", mn = "leading", rn = "trailing", as = "both", nn = "cast", Ct = "as", ti = "integer", gu = "int", _u = "smallint", yu = "float", bu = "real", wu = "varchar", vu = "to", Su = "interval", Nu = "year", Eu = "timezone_hour", xu = "timezone_minute", Tu = "month", Pu = "day", Au = "hour", Lu = "minute", Mu = "second", qi = "dow", zn = "doy", Ou = "week", Cu = "case", Ru = "end", Hi = "when", Iu = "then", ku = "else", ri = ",", Du = "(", Vn = ")", Yi = "`", Zi = /^[<-=]/, us = /^[+\-]/, $u = /^[*\/]/, Fu = /^[A-Za-z_\x80-\uFFFF]/, Uu = /^[A-Za-z0-9_]/, Xi = /^[A-Za-z0-9_.\x80-\uFFFF]/, zu = /^["]/, Ji = /^[^']/, Vu = /^[0-9]/, ju = /^[eE]/, Wu = /^[ \t\n\r]/, A = /^[^`]/, Gu = ne("!", !1), Bu = ne("=", !1), qu = ne(">=", !1), Hu = ne(">", !1), Yu = ne("<=", !1), Zu = ne("<>", !1), Xu = yr([["<", "="]], !1, !1, !1), Ju = ne("!=", !1), ls = yr(["+", "-"], !1, !1, !1), Qu = ne("||", !1), Ku = yr(["*", "/"], !1, !1, !1), el = yr([["A", "Z"], ["a", "z"], "_", ["", ""]], !1, !1, !1), tl = yr([["A", "Z"], ["a", "z"], ["0", "9"], "_"], !1, !1, !1), Qi = yr([["A", "Z"], ["a", "z"], ["0", "9"], "_", ".", ["", ""]], !1, !1, !1), rl = yr(['"'], !1, !1, !1), nl = ne("@", !1), Ki = ne("'", !1), sl = ne("N'", !1), eo = ne("''", !1), to = yr(["'"], !0, !1, !1), il = ne(".", !1), ol = yr([["0", "9"]], !1, !1, !1), al = yr(["e", "E"], !1, !1, !1), ul = ne("NULL", !0), ll = ne("TRUE", !0), cl = ne("FALSE", !0), fl = ne("IN", !0), hl = ne("IS", !0), dl = ne("LIKE", !0), ml = ne("ESCAPE", !0), pl = ne("NOT", !0), gl = ne("AND", !0), _l = ne("OR", !0), yl = ne("BETWEEN", !0), bl = ne("FROM", !0), wl = ne("FOR", !0), vl = ne("SUBSTRING", !0), Sl = ne("EXTRACT", !0), Nl = ne("TRIM", !0), El = ne("POSITION", !0), xl = ne("TIMESTAMP", !0), Tl = ne("DATE", !0), Pl = ne("TIME", !0), Al = ne("LEADING", !0), Ll = ne("TRAILING", !0), Ml = ne("BOTH", !0), Ol = ne("CAST", !0), Cl = ne("AS", !0), Rl = ne("INTEGER", !0), Il = ne("INT", !0), kl = ne("SMALLINT", !0), Dl = ne("FLOAT", !0), $l = ne("REAL", !0), Fl = ne("VARCHAR", !0), Ul = ne("TO", !0), zl = ne("INTERVAL", !0), Vl = ne("YEAR", !0), jl = ne("TIMEZONE_HOUR", !0), Wl = ne("TIMEZONE_MINUTE", !0), Gl = ne("MONTH", !0), Bl = ne("DAY", !0), ql = ne("HOUR", !0), Hl = ne("MINUTE", !0), Yl = ne("SECOND", !0), Zl = ne("DOW", !0), Xl = ne("DOY", !0), Jl = ne("WEEK", !0), Ql = ne("CASE", !0), Kl = ne("END", !0), ec = ne("WHEN", !0), tc = ne("THEN", !0), rc = ne("ELSE", !0), nc = ne(",", !1), sc = ne("(", !1), ic = ne(")", !1), oc = yr([" ", " ", `
|
|
22437
22430
|
`, "\r"], !1, !1, !1), ro = ne("`", !1), no = yr(["`"], !0, !1, !1);
|
|
22438
22431
|
function D0(a) {
|
|
22439
22432
|
return a;
|
|
@@ -22711,7 +22704,7 @@ function Qx(t, e) {
|
|
|
22711
22704
|
function he(a, f) {
|
|
22712
22705
|
return { type: "case-expression", location: J(), format: "simple", operand: a, clauses: f, else: null, elseLocation: null };
|
|
22713
22706
|
}
|
|
22714
|
-
function
|
|
22707
|
+
function ni(a, f, d) {
|
|
22715
22708
|
return { type: "case-expression", location: J(), format: "simple", operand: a, clauses: f, else: d.value, elseLocation: d.location };
|
|
22716
22709
|
}
|
|
22717
22710
|
function Qt(a) {
|
|
@@ -22904,8 +22897,8 @@ function Qx(t, e) {
|
|
|
22904
22897
|
return a.join("");
|
|
22905
22898
|
}
|
|
22906
22899
|
let h = 0 | e.peg$currPos, M = h;
|
|
22907
|
-
const
|
|
22908
|
-
let
|
|
22900
|
+
const cs = [{ line: 1, column: 1 }];
|
|
22901
|
+
let si, Or = h, _o = e.peg$maxFailExpected || [], P = 0 | e.peg$silentFails;
|
|
22909
22902
|
if (e.startRule) {
|
|
22910
22903
|
if (!(e.startRule in s)) throw new Error(`Can't start parsing from rule "` + e.startRule + '".');
|
|
22911
22904
|
i = s[e.startRule];
|
|
@@ -22930,12 +22923,12 @@ function Qx(t, e) {
|
|
|
22930
22923
|
return { type: "end" };
|
|
22931
22924
|
}
|
|
22932
22925
|
function U0(a) {
|
|
22933
|
-
let f, d =
|
|
22926
|
+
let f, d = cs[a];
|
|
22934
22927
|
if (d) return d;
|
|
22935
|
-
if (a >=
|
|
22936
|
-
else for (f = a; !
|
|
22937
|
-
for (d =
|
|
22938
|
-
return
|
|
22928
|
+
if (a >= cs.length) f = cs.length - 1;
|
|
22929
|
+
else for (f = a; !cs[--f]; ) ;
|
|
22930
|
+
for (d = cs[f], d = { line: d.line, column: d.column }; f < a; ) t.charCodeAt(f) === 10 ? (d.line++, d.column = 1) : d.column++, f++;
|
|
22931
|
+
return cs[a] = d, d;
|
|
22939
22932
|
}
|
|
22940
22933
|
function yo(a, f, d) {
|
|
22941
22934
|
const b = U0(a), x = U0(f);
|
|
@@ -22984,7 +22977,7 @@ function Qx(t, e) {
|
|
|
22984
22977
|
}
|
|
22985
22978
|
function C9() {
|
|
22986
22979
|
let a, f, d, b;
|
|
22987
|
-
return a = h, f =
|
|
22980
|
+
return a = h, f = Cr(), f !== r ? (d = h, C(), b = R9(), b !== r ? d = b : (h = d, d = r), d === r && (d = null), M = a, a = fc(f, d)) : (h = a, a = r), a;
|
|
22988
22981
|
}
|
|
22989
22982
|
function R9() {
|
|
22990
22983
|
let a;
|
|
@@ -22992,7 +22985,7 @@ function Qx(t, e) {
|
|
|
22992
22985
|
}
|
|
22993
22986
|
function I9() {
|
|
22994
22987
|
let a, f, d, b, x;
|
|
22995
|
-
if (a = h, f = [], d = h, C(), b = j0(), b !== r ? (C(), x =
|
|
22988
|
+
if (a = h, f = [], d = h, C(), b = j0(), b !== r ? (C(), x = Cr(), x !== r ? (M = d, d = oo(b, x)) : (h = d, d = r)) : (h = d, d = r), d !== r) for (; d !== r; ) f.push(d), d = h, C(), b = j0(), b !== r ? (C(), x = Cr(), x !== r ? (M = d, d = oo(b, x)) : (h = d, d = r)) : (h = d, d = r);
|
|
22996
22989
|
else f = r;
|
|
22997
22990
|
return f !== r && (M = a, f = hc(f)), a = f, a;
|
|
22998
22991
|
}
|
|
@@ -23002,11 +22995,11 @@ function Qx(t, e) {
|
|
|
23002
22995
|
}
|
|
23003
22996
|
function k9() {
|
|
23004
22997
|
let a, f, d, b;
|
|
23005
|
-
return a = h, f = sd(), f !== r ? (C(), d = ai(), d !== r ? (C(), b =
|
|
22998
|
+
return a = h, f = sd(), f !== r ? (C(), d = ai(), d !== r ? (C(), b = Cr(), b !== r ? (M = a, a = dc(f, b)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r), a === r && (a = h, f = sd(), f !== r ? (C(), d = Cr(), d !== r ? (M = a, a = mc(f, d)) : (h = a, a = r)) : (h = a, a = r)), a;
|
|
23006
22999
|
}
|
|
23007
23000
|
function D9() {
|
|
23008
23001
|
let a, f, d, b, x, V, le, Se;
|
|
23009
|
-
return a = h, f = ai(), f !== r ? (C(), d = ad(), d !== r ? (b = C(), x = h, V =
|
|
23002
|
+
return a = h, f = ai(), f !== r ? (C(), d = ad(), d !== r ? (b = C(), x = h, V = Cr(), V !== r ? (C(), le = To(), le !== r ? (C(), Se = Cr(), Se !== r ? (M = x, x = pc(d, V, Se)) : (h = x, x = r)) : (h = x, x = r)) : (h = x, x = r), x !== r ? (M = a, a = gc(d, x)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r), a === r && (a = h, f = ad(), f !== r ? (C(), d = h, b = Cr(), b !== r ? (x = C(), V = To(), V !== r ? (C(), le = Cr(), le !== r ? (M = d, d = _c(f, b, le)) : (h = d, d = r)) : (h = d, d = r)) : (h = d, d = r), d !== r ? (M = a, a = yc(f, d)) : (h = a, a = r)) : (h = a, a = r)), a;
|
|
23010
23003
|
}
|
|
23011
23004
|
function W0() {
|
|
23012
23005
|
let a, f, d, b, x;
|
|
@@ -23018,13 +23011,13 @@ function Qx(t, e) {
|
|
|
23018
23011
|
}
|
|
23019
23012
|
function $9() {
|
|
23020
23013
|
let a, f, d, b, x;
|
|
23021
|
-
return a = h, f = W0(), f !== r ? (C(), d =
|
|
23014
|
+
return a = h, f = W0(), f !== r ? (C(), d = Cr(), d !== r ? (C(), b = _b(), b !== r ? (C(), x = Wf(), x !== r ? (M = a, a = vc(f, d, x)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r), a === r && (a = h, f = W0(), f !== r ? (C(), d = Cr(), d !== r ? (M = a, a = Sc(f, d)) : (h = a, a = r)) : (h = a, a = r)), a;
|
|
23022
23015
|
}
|
|
23023
23016
|
function F9() {
|
|
23024
23017
|
let a, f, d;
|
|
23025
23018
|
return a = h, f = G0(), f !== r ? (C(), d = V0(), d !== r ? (M = a, a = Nc(f, d)) : (h = a, a = r)) : (h = a, a = r), a === r && (a = h, f = G0(), f !== r ? (C(), d = jf(), d !== r ? (M = a, a = Ec(f, d)) : (h = a, a = r)) : (h = a, a = r)), a;
|
|
23026
23019
|
}
|
|
23027
|
-
function
|
|
23020
|
+
function Cr() {
|
|
23028
23021
|
let a, f, d, b, x, V;
|
|
23029
23022
|
if (a = h, f = Uf(), f !== r) {
|
|
23030
23023
|
for (d = [], b = h, C(), x = B0(), x !== r ? (C(), V = Uf(), V !== r ? (M = b, b = ao(f, x, V)) : (h = b, b = r)) : (h = b, b = r); b !== r; ) d.push(b), b = h, C(), x = B0(), x !== r ? (C(), V = Uf(), V !== r ? (M = b, b = ao(f, x, V)) : (h = b, b = r)) : (h = b, b = r);
|
|
@@ -23034,7 +23027,7 @@ function Qx(t, e) {
|
|
|
23034
23027
|
}
|
|
23035
23028
|
function B0() {
|
|
23036
23029
|
let a;
|
|
23037
|
-
return a = t.charAt(h),
|
|
23030
|
+
return a = t.charAt(h), us.test(a) ? h++ : (a = r, P === 0 && q(ls)), a === r && (t.substr(h, 2) === S ? (a = S, h += 2) : (a = r, P === 0 && q(Qu))), a;
|
|
23038
23031
|
}
|
|
23039
23032
|
function Uf() {
|
|
23040
23033
|
let a, f, d, b, x, V;
|
|
@@ -23131,7 +23124,7 @@ function Qx(t, e) {
|
|
|
23131
23124
|
}
|
|
23132
23125
|
function X0() {
|
|
23133
23126
|
let a, f, d, b, x;
|
|
23134
|
-
return a = h, f = Pb(), f === r && (f = Ab()), f !== r && (M = a, f = Gc()), a = f, a === r && (a = h, f = Lb(), f !== r && (M = a, f = Bc()), a = f, a === r && (a = h, f = Mb(), f !== r && (M = a, f = qc()), a = f, a === r && (a = h, f = Ob(), f !== r && (M = a, f = Hc()), a = f, a === r && (a = h, f = cd(), f !== r && (M = a, f = Yc()), a = f, a === r && (a = h, f = ld(), f !== r && (M = a, f = Zc()), a = f, a === r && (a = h, f = fd(), f !== r && (M = a, f = Xc()), a = f, a === r && (a = h, f = Cb(), f !== r ? (C(), d = wt(), d !== r ? (C(), b =
|
|
23127
|
+
return a = h, f = Pb(), f === r && (f = Ab()), f !== r && (M = a, f = Gc()), a = f, a === r && (a = h, f = Lb(), f !== r && (M = a, f = Bc()), a = f, a === r && (a = h, f = Mb(), f !== r && (M = a, f = qc()), a = f, a === r && (a = h, f = Ob(), f !== r && (M = a, f = Hc()), a = f, a === r && (a = h, f = cd(), f !== r && (M = a, f = Yc()), a = f, a === r && (a = h, f = ld(), f !== r && (M = a, f = Zc()), a = f, a === r && (a = h, f = fd(), f !== r && (M = a, f = Xc()), a = f, a === r && (a = h, f = Cb(), f !== r ? (C(), d = wt(), d !== r ? (C(), b = jn(), b !== r ? (C(), x = vt(), x !== r ? (M = a, a = Jc(b)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r)))))))), a;
|
|
23135
23128
|
}
|
|
23136
23129
|
function Z9() {
|
|
23137
23130
|
let a, f, d, b, x, V, le, Se, _n;
|
|
@@ -23151,7 +23144,7 @@ function Qx(t, e) {
|
|
|
23151
23144
|
}
|
|
23152
23145
|
function Q0() {
|
|
23153
23146
|
let a, f;
|
|
23154
|
-
return a = h, f = dd(), f === r && (f = md(), f === r && (f = pd(), f === r && (f = gd(), f === r && (f = _d(), f === r && (f =
|
|
23147
|
+
return a = h, f = dd(), f === r && (f = md(), f === r && (f = pd(), f === r && (f = gd(), f === r && (f = _d(), f === r && (f = Wn(), f === r && (f = Ib(), f === r && (f = kb(), f === r && (f = Db(), f === r && (f = $b(), f === r && (f = Fb())))))))))), f !== r && (M = a, f = af(f)), a = f, a;
|
|
23155
23148
|
}
|
|
23156
23149
|
function Q9() {
|
|
23157
23150
|
let a;
|
|
@@ -23159,15 +23152,15 @@ function Qx(t, e) {
|
|
|
23159
23152
|
}
|
|
23160
23153
|
function K9() {
|
|
23161
23154
|
let a, f, d;
|
|
23162
|
-
return a = h, f = ld(), f !== r ? (C(), d =
|
|
23155
|
+
return a = h, f = ld(), f !== r ? (C(), d = oi(), d !== r ? (M = a, a = uf(d)) : (h = a, a = r)) : (h = a, a = r), a;
|
|
23163
23156
|
}
|
|
23164
23157
|
function eb() {
|
|
23165
23158
|
let a, f, d;
|
|
23166
|
-
return a = h, f = fd(), f !== r ? (C(), d =
|
|
23159
|
+
return a = h, f = fd(), f !== r ? (C(), d = oi(), d !== r ? (M = a, a = lf(d)) : (h = a, a = r)) : (h = a, a = r), a;
|
|
23167
23160
|
}
|
|
23168
23161
|
function tb() {
|
|
23169
23162
|
let a, f, d, b, x;
|
|
23170
|
-
return a = h, f = hd(), f !== r ? (C(), d = t.charAt(h),
|
|
23163
|
+
return a = h, f = hd(), f !== r ? (C(), d = t.charAt(h), us.test(d) ? h++ : (d = r, P === 0 && q(ls)), d !== r ? (C(), b = oi(), b !== r ? (C(), x = K0(), x !== r ? (M = a, a = cf(d, b, x)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r), a === r && (a = h, f = hd(), f !== r ? (C(), d = oi(), d !== r ? (C(), b = K0(), b !== r ? (M = a, a = ff(d, b)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r)), a;
|
|
23171
23164
|
}
|
|
23172
23165
|
function K0() {
|
|
23173
23166
|
let a, f, d, b;
|
|
@@ -23175,31 +23168,31 @@ function Qx(t, e) {
|
|
|
23175
23168
|
}
|
|
23176
23169
|
function rb() {
|
|
23177
23170
|
let a, f, d, b, x;
|
|
23178
|
-
return a = h, f =
|
|
23171
|
+
return a = h, f = ii(), f !== r ? (C(), d = wt(), d !== r ? (C(), b = So(), b !== r ? (C(), x = vt(), x !== r ? (M = a, a = df(f, b)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r), a === r && (a = h, f = ii(), f !== r && (M = a, f = mf(f)), a = f), a;
|
|
23179
23172
|
}
|
|
23180
23173
|
function nb() {
|
|
23181
23174
|
let a, f, d, b, x, V, le;
|
|
23182
|
-
return a = h, f =
|
|
23175
|
+
return a = h, f = ii(), f !== r && (M = a, f = pf(f)), a = f, a === r && (a = h, f = Wn(), f !== r ? (C(), d = wt(), d !== r ? (C(), b = So(), b !== r ? (C(), x = gn(), x !== r ? (C(), V = vo(), V !== r ? (C(), le = vt(), le !== r ? (M = a, a = gf(b, V)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r), a === r && (a = h, f = Wn(), f !== r ? (C(), d = wt(), d !== r ? (C(), b = So(), b !== r ? (C(), x = vt(), x !== r ? (M = a, a = _f(b)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r), a === r && (a = h, f = Wn(), f !== r && (M = a, f = yf()), a = f))), a;
|
|
23183
23176
|
}
|
|
23184
23177
|
function sb() {
|
|
23185
23178
|
let a, f, d, b, x, V, le;
|
|
23186
|
-
return a = h, f =
|
|
23179
|
+
return a = h, f = ii(), f !== r ? (C(), d = wt(), d !== r ? (C(), b = vo(), b !== r ? (C(), x = vt(), x !== r ? (M = a, a = bf(f, b)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r), a === r && (a = h, f = ii(), f !== r && (M = a, f = wf(f)), a = f, a === r && (a = h, f = Wn(), f !== r ? (C(), d = wt(), d !== r ? (C(), b = So(), b !== r ? (C(), x = gn(), x !== r ? (C(), V = vo(), V !== r ? (C(), le = vt(), le !== r ? (M = a, a = vf(b, V)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r), a === r && (a = h, f = Wn(), f !== r ? (C(), d = wt(), d !== r ? (C(), b = vo(), b !== r ? (C(), x = vt(), x !== r ? (M = a, a = Sf(b)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r)) : (h = a, a = r), a === r && (a = h, f = Wn(), f !== r && (M = a, f = Nf()), a = f)))), a;
|
|
23187
23180
|
}
|
|
23188
|
-
function
|
|
23181
|
+
function ii() {
|
|
23189
23182
|
let a, f;
|
|
23190
23183
|
return a = h, f = pd(), f !== r && (M = a, f = Ef()), a = f, a === r && (a = h, f = gd(), f !== r && (M = a, f = xf()), a = f, a === r && (a = h, f = _d(), f !== r && (M = a, f = Tf()), a = f, a === r && (a = h, f = md(), f !== r && (M = a, f = Pf()), a = f, a === r && (a = h, f = dd(), f !== r && (M = a, f = lo()), a = f)))), a;
|
|
23191
23184
|
}
|
|
23192
23185
|
function vo() {
|
|
23193
23186
|
let a, f;
|
|
23194
|
-
return a = h, f =
|
|
23187
|
+
return a = h, f = jn(), f !== r && (M = a, f = De(f)), a = f, a;
|
|
23195
23188
|
}
|
|
23196
23189
|
function So() {
|
|
23197
23190
|
let a, f;
|
|
23198
|
-
return a = h, f =
|
|
23191
|
+
return a = h, f = jn(), f !== r && (M = a, f = pn(f)), a = f, a;
|
|
23199
23192
|
}
|
|
23200
23193
|
function ib() {
|
|
23201
23194
|
let a, f, d;
|
|
23202
|
-
return a = h, f = cd(), f !== r ? (C(), d =
|
|
23195
|
+
return a = h, f = cd(), f !== r ? (C(), d = oi(), d !== r ? (M = a, a = Qe(d)) : (h = a, a = r)) : (h = a, a = r), a;
|
|
23203
23196
|
}
|
|
23204
23197
|
function ob() {
|
|
23205
23198
|
let a, f;
|
|
@@ -23209,7 +23202,7 @@ function Qx(t, e) {
|
|
|
23209
23202
|
let a, f;
|
|
23210
23203
|
return a = h, f = pb(), f !== r && (M = a, f = Lf()), a = f, a === r && (a = h, f = gb(), f !== r && (M = a, f = Mf()), a = f), a;
|
|
23211
23204
|
}
|
|
23212
|
-
function
|
|
23205
|
+
function oi() {
|
|
23213
23206
|
let a;
|
|
23214
23207
|
return a = Wf(), a === r && (a = jf()), a;
|
|
23215
23208
|
}
|
|
@@ -23234,7 +23227,7 @@ function Qx(t, e) {
|
|
|
23234
23227
|
else h = a, a = r;
|
|
23235
23228
|
if (a === r) if (a = h, f = Po(), f !== r) if (C(), d = Fe(), d !== r) {
|
|
23236
23229
|
for (C(), b = [], x = h, V = Eo(), V !== r ? (le = C(), x = V) : (h = x, x = r); x !== r; ) b.push(x), x = h, V = Eo(), V !== r ? (le = C(), x = V) : (h = x, x = r);
|
|
23237
|
-
x = ed(), x !== r ? (V = C(), le = Ao(), le !== r ? (M = a, a =
|
|
23230
|
+
x = ed(), x !== r ? (V = C(), le = Ao(), le !== r ? (M = a, a = ni(d, b, x)) : (h = a, a = r)) : (h = a, a = r);
|
|
23238
23231
|
} else h = a, a = r;
|
|
23239
23232
|
else h = a, a = r;
|
|
23240
23233
|
return a;
|
|
@@ -23273,17 +23266,17 @@ function Qx(t, e) {
|
|
|
23273
23266
|
}
|
|
23274
23267
|
function xo() {
|
|
23275
23268
|
let a, f, d;
|
|
23276
|
-
return a =
|
|
23269
|
+
return a = jn(), a === r && (a = h, f = t.charAt(h), us.test(f) ? h++ : (f = r, P === 0 && q(ls)), f !== r ? (d = jn(), d !== r ? (M = a, a = Lt(f, d)) : (h = a, a = r)) : (h = a, a = r)), a;
|
|
23277
23270
|
}
|
|
23278
23271
|
function td() {
|
|
23279
23272
|
let a, f, d;
|
|
23280
|
-
return a = h, t.charCodeAt(h) === 46 ? (f = W, h++) : (f = r, P === 0 && q(il)), f !== r ? (d =
|
|
23273
|
+
return a = h, t.charCodeAt(h) === 46 ? (f = W, h++) : (f = r, P === 0 && q(il)), f !== r ? (d = jn(), d === r && (d = null), M = a, a = I(d)) : (h = a, a = r), a;
|
|
23281
23274
|
}
|
|
23282
23275
|
function rd() {
|
|
23283
23276
|
let a, f, d;
|
|
23284
|
-
return a = h, f = db(), f !== r ? (d =
|
|
23277
|
+
return a = h, f = db(), f !== r ? (d = jn(), d !== r ? (M = a, a = _t(f, d)) : (h = a, a = r)) : (h = a, a = r), a;
|
|
23285
23278
|
}
|
|
23286
|
-
function
|
|
23279
|
+
function jn() {
|
|
23287
23280
|
let a, f, d;
|
|
23288
23281
|
if (a = h, f = [], d = nd(), d !== r) for (; d !== r; ) f.push(d), d = nd();
|
|
23289
23282
|
else f = r;
|
|
@@ -23295,7 +23288,7 @@ function Qx(t, e) {
|
|
|
23295
23288
|
}
|
|
23296
23289
|
function db() {
|
|
23297
23290
|
let a, f, d;
|
|
23298
|
-
return a = h, f = t.charAt(h), ju.test(f) ? h++ : (f = r, P === 0 && q(al)), f !== r ? (d = t.charAt(h),
|
|
23291
|
+
return a = h, f = t.charAt(h), ju.test(f) ? h++ : (f = r, P === 0 && q(al)), f !== r ? (d = t.charAt(h), us.test(d) ? h++ : (d = r, P === 0 && q(ls)), d === r && (d = null), M = a, a = ft(f, d)) : (h = a, a = r), a;
|
|
23299
23292
|
}
|
|
23300
23293
|
function mb() {
|
|
23301
23294
|
let a, f, d, b;
|
|
@@ -23375,7 +23368,7 @@ function Qx(t, e) {
|
|
|
23375
23368
|
}
|
|
23376
23369
|
function fd() {
|
|
23377
23370
|
let a, f, d, b;
|
|
23378
|
-
return a = h, f = t.substr(h, 4), f.toLowerCase() ===
|
|
23371
|
+
return a = h, f = t.substr(h, 4), f.toLowerCase() === Yr ? h += 4 : (f = r, P === 0 && q(Pl)), f !== r ? (d = h, P++, b = de(), P--, b === r ? d = void 0 : (h = d, d = r), d !== r ? (M = a, a = Mr()) : (h = a, a = r)) : (h = a, a = r), a;
|
|
23379
23372
|
}
|
|
23380
23373
|
function Sb() {
|
|
23381
23374
|
let a, f, d, b;
|
|
@@ -23383,15 +23376,15 @@ function Qx(t, e) {
|
|
|
23383
23376
|
}
|
|
23384
23377
|
function Nb() {
|
|
23385
23378
|
let a, f, d, b;
|
|
23386
|
-
return a = h, f = t.substr(h, 8), f.toLowerCase() ===
|
|
23379
|
+
return a = h, f = t.substr(h, 8), f.toLowerCase() === rn ? h += 8 : (f = r, P === 0 && q(Ll)), f !== r ? (d = h, P++, b = de(), P--, b === r ? d = void 0 : (h = d, d = r), d !== r ? (M = a, a = N()) : (h = a, a = r)) : (h = a, a = r), a;
|
|
23387
23380
|
}
|
|
23388
23381
|
function Eb() {
|
|
23389
23382
|
let a, f, d, b;
|
|
23390
|
-
return a = h, f = t.substr(h, 4), f.toLowerCase() ===
|
|
23383
|
+
return a = h, f = t.substr(h, 4), f.toLowerCase() === as ? h += 4 : (f = r, P === 0 && q(Ml)), f !== r ? (d = h, P++, b = de(), P--, b === r ? d = void 0 : (h = d, d = r), d !== r ? (M = a, a = k()) : (h = a, a = r)) : (h = a, a = r), a;
|
|
23391
23384
|
}
|
|
23392
23385
|
function xb() {
|
|
23393
23386
|
let a, f, d, b;
|
|
23394
|
-
return a = h, f = t.substr(h, 4), f.toLowerCase() ===
|
|
23387
|
+
return a = h, f = t.substr(h, 4), f.toLowerCase() === nn ? h += 4 : (f = r, P === 0 && q(Ol)), f !== r ? (d = h, P++, b = de(), P--, b === r ? d = void 0 : (h = d, d = r), d !== r ? (M = a, a = G()) : (h = a, a = r)) : (h = a, a = r), a;
|
|
23395
23388
|
}
|
|
23396
23389
|
function Tb() {
|
|
23397
23390
|
let a, f, d, b;
|
|
@@ -23399,7 +23392,7 @@ function Qx(t, e) {
|
|
|
23399
23392
|
}
|
|
23400
23393
|
function Pb() {
|
|
23401
23394
|
let a, f, d, b;
|
|
23402
|
-
return a = h, f = t.substr(h, 7), f.toLowerCase() ===
|
|
23395
|
+
return a = h, f = t.substr(h, 7), f.toLowerCase() === ti ? h += 7 : (f = r, P === 0 && q(Rl)), f !== r ? (d = h, P++, b = de(), P--, b === r ? d = void 0 : (h = d, d = r), d !== r ? (M = a, a = ie()) : (h = a, a = r)) : (h = a, a = r), a;
|
|
23403
23396
|
}
|
|
23404
23397
|
function Ab() {
|
|
23405
23398
|
let a, f, d, b;
|
|
@@ -23457,7 +23450,7 @@ function Qx(t, e) {
|
|
|
23457
23450
|
let a, f, d, b;
|
|
23458
23451
|
return a = h, f = t.substr(h, 6), f.toLowerCase() === Lu ? h += 6 : (f = r, P === 0 && q(Hl)), f !== r ? (d = h, P++, b = de(), P--, b === r ? d = void 0 : (h = d, d = r), d !== r ? (M = a, a = _9()) : (h = a, a = r)) : (h = a, a = r), a;
|
|
23459
23452
|
}
|
|
23460
|
-
function
|
|
23453
|
+
function Wn() {
|
|
23461
23454
|
let a, f, d, b;
|
|
23462
23455
|
return a = h, f = t.substr(h, 6), f.toLowerCase() === Mu ? h += 6 : (f = r, P === 0 && q(Yl)), f !== r ? (d = h, P++, b = de(), P--, b === r ? d = void 0 : (h = d, d = r), d !== r ? (M = a, a = y9()) : (h = a, a = r)) : (h = a, a = r), a;
|
|
23463
23456
|
}
|
|
@@ -23495,7 +23488,7 @@ function Qx(t, e) {
|
|
|
23495
23488
|
}
|
|
23496
23489
|
function gn() {
|
|
23497
23490
|
let a;
|
|
23498
|
-
return t.charCodeAt(h) === 44 ? (a =
|
|
23491
|
+
return t.charCodeAt(h) === 44 ? (a = ri, h++) : (a = r, P === 0 && q(nc)), a;
|
|
23499
23492
|
}
|
|
23500
23493
|
function wt() {
|
|
23501
23494
|
let a;
|
|
@@ -23547,12 +23540,12 @@ function Qx(t, e) {
|
|
|
23547
23540
|
function Gb(a) {
|
|
23548
23541
|
/^(\d{4})-(\d{1,2})-(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/.test(a) !== !0 && $f("Date literal is invalid");
|
|
23549
23542
|
}
|
|
23550
|
-
|
|
23551
|
-
const qf =
|
|
23543
|
+
si = i();
|
|
23544
|
+
const qf = si !== r && h === t.length;
|
|
23552
23545
|
function Sd() {
|
|
23553
|
-
throw
|
|
23546
|
+
throw si !== r && h < t.length && q(L9()), O9(_o, Or < t.length ? A9(Or) : null, Or < t.length ? yo(Or, Or + 1) : yo(Or, Or));
|
|
23554
23547
|
}
|
|
23555
|
-
return e.peg$library ? { peg$result:
|
|
23548
|
+
return e.peg$library ? { peg$result: si, peg$currPos: h, peg$FAILED: r, peg$maxFailExpected: _o, peg$maxFailPos: Or, peg$success: qf, peg$throw: qf ? void 0 : Sd } : qf ? si : void Sd();
|
|
23556
23549
|
}
|
|
23557
23550
|
class Kx {
|
|
23558
23551
|
static parse(e) {
|
|
@@ -23678,7 +23671,7 @@ function Jh({ type: t, period: e, precision: r, secondary: n }) {
|
|
|
23678
23671
|
function nT({ type: t, size: e, withtimezone: r }) {
|
|
23679
23672
|
return JSON.stringify({ type: t, size: e, withtimezone: r });
|
|
23680
23673
|
}
|
|
23681
|
-
const z2 = "feature", V2 = "lookups", j2 = "attributeAdapter", W2 = "fieldsIndex",
|
|
23674
|
+
const z2 = "feature", V2 = "lookups", j2 = "attributeAdapter", W2 = "fieldsIndex", Ns = "timeZone", G2 = "currentUser";
|
|
23682
23675
|
class sT {
|
|
23683
23676
|
constructor(e) {
|
|
23684
23677
|
this._parseTree = e, this._staticData = /* @__PURE__ */ Object.create(null), this._nextStaticDataId = 0, this._tempVars = /* @__PURE__ */ new Set(), this._nextTempVarId = 0;
|
|
@@ -23688,7 +23681,7 @@ class sT {
|
|
|
23688
23681
|
${this._tempVars.size > 0 ? `var ${Array.from(this._tempVars).join(", ")};` : ""}
|
|
23689
23682
|
return this.convertInterval(${e});
|
|
23690
23683
|
`;
|
|
23691
|
-
return new Function(z2, V2, j2, W2,
|
|
23684
|
+
return new Function(z2, V2, j2, W2, Ns, G2, r).bind(new tT(this._staticData));
|
|
23692
23685
|
}
|
|
23693
23686
|
_storeStaticData(e) {
|
|
23694
23687
|
const r = "static$" + this._nextStaticDataId++;
|
|
@@ -23775,7 +23768,7 @@ class sT {
|
|
|
23775
23768
|
case "+":
|
|
23776
23769
|
case "/":
|
|
23777
23770
|
case "||":
|
|
23778
|
-
return Ue("calculate", Nt(e.operator), this._compileNode(e.left), this._compileNode(e.right),
|
|
23771
|
+
return Ue("calculate", Nt(e.operator), this._compileNode(e.left), this._compileNode(e.right), Ns);
|
|
23779
23772
|
default:
|
|
23780
23773
|
throw new R("UnsupportedOperator", { operator: e.operator });
|
|
23781
23774
|
}
|
|
@@ -23803,7 +23796,7 @@ class sT {
|
|
|
23803
23796
|
return Ue("evaluateTimestamp", Nt(e.value), Nt("unknown"));
|
|
23804
23797
|
}
|
|
23805
23798
|
case "current-time":
|
|
23806
|
-
return e.mode === "date" ? Ue("currentDate",
|
|
23799
|
+
return e.mode === "date" ? Ue("currentDate", Ns) : e.mode === "time" ? Ue("currentTime", Ns) : Ue("currentTimestamp", Ns);
|
|
23807
23800
|
case "current-user":
|
|
23808
23801
|
return G2;
|
|
23809
23802
|
case "column-reference":
|
|
@@ -23811,7 +23804,7 @@ class sT {
|
|
|
23811
23804
|
case "data-type":
|
|
23812
23805
|
return nT(e.value);
|
|
23813
23806
|
case "function":
|
|
23814
|
-
return Ue("evaluateFunction", Nt(e.name), this._compileNode(e.args),
|
|
23807
|
+
return Ue("evaluateFunction", Nt(e.name), this._compileNode(e.args), Ns);
|
|
23815
23808
|
}
|
|
23816
23809
|
throw new R("UnsupportedSyntax", { node: e.type });
|
|
23817
23810
|
}
|
|
@@ -23835,8 +23828,8 @@ class k0 {
|
|
|
23835
23828
|
case "time-only":
|
|
23836
23829
|
return Nr(e) ? pr.fromDateJS(e).toStorageString() : Ze(e) ? pr.fromDateTime(e).toStorageString() : Je(e) ? pr.fromSqlTimeStampOffset(e).toStorageString() : et(e) ? e.toStorageString() : e;
|
|
23837
23830
|
case "timestamp-offset":
|
|
23838
|
-
if (Nr(e)) return
|
|
23839
|
-
if (Ze(e)) return
|
|
23831
|
+
if (Nr(e)) return Hr.fromJSDate(e).toStorageFormat();
|
|
23832
|
+
if (Ze(e)) return Hr.fromDateTime(e).toStorageFormat();
|
|
23840
23833
|
if (Je(e)) return e.toStorageFormat();
|
|
23841
23834
|
}
|
|
23842
23835
|
return e;
|
|
@@ -24104,7 +24097,7 @@ function d9(t, e, r, n) {
|
|
|
24104
24097
|
return pr.fromReader(s);
|
|
24105
24098
|
case "esriFieldTypeTimestampOffset":
|
|
24106
24099
|
case "timestamp-offset":
|
|
24107
|
-
return new
|
|
24100
|
+
return new Hr(s);
|
|
24108
24101
|
}
|
|
24109
24102
|
return s;
|
|
24110
24103
|
}
|
|
@@ -24208,7 +24201,7 @@ var uT = /* @__PURE__ */ Object.freeze({
|
|
|
24208
24201
|
function ct() {
|
|
24209
24202
|
return { a: Wu };
|
|
24210
24203
|
}
|
|
24211
|
-
async function
|
|
24204
|
+
async function Yr() {
|
|
24212
24205
|
function p(G, X) {
|
|
24213
24206
|
return A = G.exports, y = A.s, ee(), Y(), A;
|
|
24214
24207
|
}
|
|
@@ -24227,7 +24220,7 @@ var uT = /* @__PURE__ */ Object.freeze({
|
|
|
24227
24220
|
var mn = (p) => {
|
|
24228
24221
|
for (; p.length > 0; ) p.shift()(s);
|
|
24229
24222
|
};
|
|
24230
|
-
function
|
|
24223
|
+
function rn(p, N = "i8") {
|
|
24231
24224
|
switch (N.endsWith("*") && (N = "*"), N) {
|
|
24232
24225
|
case "i1":
|
|
24233
24226
|
case "i8":
|
|
@@ -24248,9 +24241,9 @@ var uT = /* @__PURE__ */ Object.freeze({
|
|
|
24248
24241
|
re(`invalid type for getValue: ${N}`);
|
|
24249
24242
|
}
|
|
24250
24243
|
}
|
|
24251
|
-
var
|
|
24244
|
+
var as = typeof TextDecoder < "u" ? new TextDecoder() : void 0, nn = (p, N = 0, k = NaN) => {
|
|
24252
24245
|
for (var G = N + k, X = N; p[X] && !(X >= G); ) ++X;
|
|
24253
|
-
if (X - N > 16 && p.buffer &&
|
|
24246
|
+
if (X - N > 16 && p.buffer && as) return as.decode(p.subarray(N, X));
|
|
24254
24247
|
for (var ie = ""; N < X; ) {
|
|
24255
24248
|
var me = p[N++];
|
|
24256
24249
|
if (128 & me) {
|
|
@@ -24266,8 +24259,8 @@ var uT = /* @__PURE__ */ Object.freeze({
|
|
|
24266
24259
|
} else ie += String.fromCharCode(me);
|
|
24267
24260
|
}
|
|
24268
24261
|
return ie;
|
|
24269
|
-
}, Ct = (p, N) => p ?
|
|
24270
|
-
function
|
|
24262
|
+
}, Ct = (p, N) => p ? nn(S, p, N) : "";
|
|
24263
|
+
function ti(p, N, k) {
|
|
24271
24264
|
return 0;
|
|
24272
24265
|
}
|
|
24273
24266
|
var gu = (p, N, k) => {
|
|
@@ -24335,10 +24328,10 @@ var uT = /* @__PURE__ */ Object.freeze({
|
|
|
24335
24328
|
if (Iu(ie)) return !0;
|
|
24336
24329
|
}
|
|
24337
24330
|
return !1;
|
|
24338
|
-
},
|
|
24331
|
+
}, ri = {}, Du = () => u, Vn = () => {
|
|
24339
24332
|
if (!Vn.strings) {
|
|
24340
24333
|
var p = { USER: "web_user", LOGNAME: "web_user", PATH: "/", PWD: "/", HOME: "/home/web_user", LANG: (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _: Du() };
|
|
24341
|
-
for (var N in
|
|
24334
|
+
for (var N in ri) ri[N] === void 0 ? delete p[N] : p[N] = ri[N];
|
|
24342
24335
|
var k = [];
|
|
24343
24336
|
for (var N in p) k.push(`${N}=${p[N]}`);
|
|
24344
24337
|
Vn.strings = k;
|
|
@@ -24357,7 +24350,7 @@ var uT = /* @__PURE__ */ Object.freeze({
|
|
|
24357
24350
|
G <= 127 ? N++ : G <= 2047 ? N += 2 : G >= 55296 && G <= 57343 ? (N += 4, ++k) : N += 3;
|
|
24358
24351
|
}
|
|
24359
24352
|
return N;
|
|
24360
|
-
},
|
|
24353
|
+
}, us = (p, N) => {
|
|
24361
24354
|
var k = Vn();
|
|
24362
24355
|
D[p >> 2] = k.length;
|
|
24363
24356
|
var G = 0;
|
|
@@ -24369,7 +24362,7 @@ var uT = /* @__PURE__ */ Object.freeze({
|
|
|
24369
24362
|
}
|
|
24370
24363
|
var Xi = [null, [], []], zu = (p, N) => {
|
|
24371
24364
|
var k = Xi[p];
|
|
24372
|
-
N === 0 || N === 10 ? ((p === 1 ? U : F)(
|
|
24365
|
+
N === 0 || N === 10 ? ((p === 1 ? U : F)(nn(k)), k.length = 0) : k.push(N);
|
|
24373
24366
|
}, Ji = (p, N, k, G) => {
|
|
24374
24367
|
for (var X = 0, ie = 0; ie < k; ie++) {
|
|
24375
24368
|
var me = D[N >> 2], oe = D[N + 4 >> 2];
|
|
@@ -24382,10 +24375,10 @@ var uT = /* @__PURE__ */ Object.freeze({
|
|
|
24382
24375
|
var G = Zi(p) + 1, X = new Array(G);
|
|
24383
24376
|
return qi(p, X, 0, X.length), X;
|
|
24384
24377
|
}, ju = [];
|
|
24385
|
-
s.getValue =
|
|
24386
|
-
var Wu = { c:
|
|
24378
|
+
s.getValue = rn, s.UTF8ToString = Ct;
|
|
24379
|
+
var Wu = { c: ti, o: gu, i: _u, d: yu, m: bu, l: wu, n: vu, j: Su, p: Mu, q: Ou, r: Cu, k: ku, f: Yi, g: us, a: $u, h: Fu, e: Uu, b: Ji }, A = await Yr();
|
|
24387
24380
|
A.t, s._webidl_free = A.u, s._webidl_malloc = A.v;
|
|
24388
|
-
var Gu = s._emscripten_bind_PeObject_getCode_0 = A.w, Bu = s._emscripten_bind_PeObject_getName_1 = A.x, qu = s._emscripten_bind_PeObject_getType_0 = A.y, Hu = s._emscripten_bind_PeCoordsys_isEqual_1 = A.z, Yu = s._emscripten_bind_PeCoordsys_getCode_0 = A.A, Zu = s._emscripten_bind_PeCoordsys_getName_1 = A.B, Xu = s._emscripten_bind_PeCoordsys_getType_0 = A.C, Ju = s._emscripten_bind_PeUnit_getUnitFactor_0 = A.D,
|
|
24381
|
+
var Gu = s._emscripten_bind_PeObject_getCode_0 = A.w, Bu = s._emscripten_bind_PeObject_getName_1 = A.x, qu = s._emscripten_bind_PeObject_getType_0 = A.y, Hu = s._emscripten_bind_PeCoordsys_isEqual_1 = A.z, Yu = s._emscripten_bind_PeCoordsys_getCode_0 = A.A, Zu = s._emscripten_bind_PeCoordsys_getName_1 = A.B, Xu = s._emscripten_bind_PeCoordsys_getType_0 = A.C, Ju = s._emscripten_bind_PeUnit_getUnitFactor_0 = A.D, ls = s._emscripten_bind_PeUnit_getCode_0 = A.E, Qu = s._emscripten_bind_PeUnit_getName_1 = A.F, Ku = s._emscripten_bind_PeUnit_getType_0 = A.G, el = s._emscripten_bind_VoidPtr___destroy___0 = A.H, tl = s._emscripten_bind_PeAngunit_getCode_0 = A.I, Qi = s._emscripten_bind_PeAngunit_getName_1 = A.J, rl = s._emscripten_bind_PeAngunit_getType_0 = A.K, nl = s._emscripten_bind_PeAngunit_getUnitFactor_0 = A.L, Ki = s._emscripten_bind_PeDatum_getSpheroid_0 = A.M, sl = s._emscripten_bind_PeDatum_getCode_0 = A.N, eo = s._emscripten_bind_PeDatum_getName_1 = A.O, to = s._emscripten_bind_PeDatum_getType_0 = A.P, il = s._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0 = A.Q, ol = s._emscripten_bind_PeDefs_get_PE_NAME_MAX_0 = A.R, al = s._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0 = A.S, ul = s._emscripten_bind_PeDefs_get_PE_USNG_MAX_0 = A.T, ll = s._emscripten_bind_PeDefs_get_PE_DD_MAX_0 = A.U, cl = s._emscripten_bind_PeDefs_get_PE_DMS_MAX_0 = A.V, fl = s._emscripten_bind_PeDefs_get_PE_DDM_MAX_0 = A.W, hl = s._emscripten_bind_PeDefs_get_PE_UTM_MAX_0 = A.X, dl = s._emscripten_bind_PeDefs_get_PE_PARM_MAX_0 = A.Y, ml = s._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0 = A.Z, pl = s._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0 = A._, gl = s._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0 = A.$, _l = s._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0 = A.aa, yl = s._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0 = A.ba, bl = s._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0 = A.ca, wl = s._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0 = A.da, vl = s._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0 = A.ea, Sl = s._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0 = A.fa, Nl = s._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0 = A.ga, El = s._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0 = A.ha, xl = s._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0 = A.ia, Tl = s._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0 = A.ja, Pl = s._emscripten_bind_PeDefs_get_PE_PARM_X0_0 = A.ka, Al = s._emscripten_bind_PeDefs_get_PE_PARM_ND_0 = A.la, Ll = s._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0 = A.ma, Ml = s._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0 = A.na, Ol = s._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0 = A.oa, Cl = s._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0 = A.pa, Rl = s._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0 = A.qa, Il = s._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0 = A.ra, kl = s._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0 = A.sa, Dl = s._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0 = A.ta, $l = s._emscripten_bind_PeDouble_PeDouble_1 = A.ua, Fl = s._emscripten_bind_PeDouble_get_val_0 = A.va, Ul = s._emscripten_bind_PeDouble_set_val_1 = A.wa, zl = s._emscripten_bind_PeDouble___destroy___0 = A.xa, Vl = s._emscripten_bind_PeFactory_initialize_1 = A.ya, jl = s._emscripten_bind_PeFactory_factoryByType_2 = A.za, Wl = s._emscripten_bind_PeFactory_fromString_2 = A.Aa, Gl = s._emscripten_bind_PeFactory_getCode_1 = A.Ba, Bl = s._emscripten_bind_PeGCSExtent_PeGCSExtent_6 = A.Ca, ql = s._emscripten_bind_PeGCSExtent_getLLon_0 = A.Da, Hl = s._emscripten_bind_PeGCSExtent_getSLat_0 = A.Ea, Yl = s._emscripten_bind_PeGCSExtent_getRLon_0 = A.Fa, Zl = s._emscripten_bind_PeGCSExtent_getNLat_0 = A.Ga, Xl = s._emscripten_bind_PeGCSExtent___destroy___0 = A.Ha, Jl = s._emscripten_bind_PeGeogcs_Delete_0 = A.Ia, Ql = s._emscripten_bind_PeGeogcs_cloneAlterUnits_1 = A.Ja, Kl = s._emscripten_bind_PeGeogcs_getDatum_0 = A.Ka, ec = s._emscripten_bind_PeGeogcs_getPrimem_0 = A.La, tc = s._emscripten_bind_PeGeogcs_getUnit_0 = A.Ma, rc = s._emscripten_bind_PeGeogcs_isEqual_1 = A.Na, nc = s._emscripten_bind_PeGeogcs_getCode_0 = A.Oa, sc = s._emscripten_bind_PeGeogcs_getName_1 = A.Pa, ic = s._emscripten_bind_PeGeogcs_getType_0 = A.Qa, oc = s._emscripten_bind_PeGeogtran_isEqual_1 = A.Ra, ro = s._emscripten_bind_PeGeogtran_getGeogcs1_0 = A.Sa, no = s._emscripten_bind_PeGeogtran_getGeogcs2_0 = A.Ta, D0 = s._emscripten_bind_PeGeogtran_getParameters_0 = A.Ua, ac = s._emscripten_bind_PeGeogtran_loadConstants_0 = A.Va, so = s._emscripten_bind_PeGeogtran_getCode_0 = A.Wa, uc = s._emscripten_bind_PeGeogtran_getName_1 = A.Xa, io = s._emscripten_bind_PeGeogtran_getType_0 = A.Ya, lc = s._emscripten_bind_PeGTlistExtended_getGTlist_6 = A.Za, cc = s._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0 = A._a, fc = s._emscripten_bind_PeGTlistExtendedEntry_getEntries_0 = A.$a, oo = s._emscripten_bind_PeGTlistExtendedEntry_getSteps_0 = A.ab, hc = s._emscripten_bind_PeGTlistExtendedEntry_Delete_1 = A.bb, dc = s._emscripten_bind_PeGTlistExtendedGTs_getDirection_0 = A.cb, mc = s._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0 = A.db, pc = s._emscripten_bind_PeHorizon_getNump_0 = A.eb, gc = s._emscripten_bind_PeHorizon_getKind_0 = A.fb, _c = s._emscripten_bind_PeHorizon_getInclusive_0 = A.gb, yc = s._emscripten_bind_PeHorizon_getSize_0 = A.hb, bc = s._emscripten_bind_PeHorizon_getCoord_0 = A.ib, wc = s._emscripten_bind_PeInteger_PeInteger_1 = A.jb, vc = s._emscripten_bind_PeInteger_get_val_0 = A.kb, Sc = s._emscripten_bind_PeInteger_set_val_1 = A.lb, Nc = s._emscripten_bind_PeInteger___destroy___0 = A.mb, Ec = s._emscripten_bind_PeLineType_geodetic_distance_10 = A.nb, ao = s._emscripten_bind_PeLineType_geodetic_coordinate_9 = A.ob, xc = s._emscripten_bind_PeLineType_geodesic_coordinate_8 = A.pb, uo = s._emscripten_bind_PeLineType_great_elliptic_distance_9 = A.qb, Tc = s._emscripten_bind_PeMath_phi_to_eta_2 = A.rb, Pc = s._emscripten_bind_PeMath_eta_to_phi_2 = A.sb, Ac = s._emscripten_bind_PeMath_phi_to_phig_2 = A.tb, Lc = s._emscripten_bind_PeMath_q_3 = A.ub, $0 = s._emscripten_bind_PeMath_q90_2 = A.vb, Mc = s._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0 = A.wb, Oc = s._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0 = A.xb, F0 = s._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0 = A.yb, Cc = s._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0 = A.zb, Rc = s._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0 = A.Ab, Ic = s._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0 = A.Bb, kc = s._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0 = A.Cb, Dc = s._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0 = A.Db, $c = s._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0 = A.Eb, Fc = s._emscripten_bind_PeParameter_getValue_0 = A.Fb, Uc = s._emscripten_bind_PeParameter_getCode_0 = A.Gb, zc = s._emscripten_bind_PeParameter_getName_1 = A.Hb, Vc = s._emscripten_bind_PeParameter_getType_0 = A.Ib, jc = s._emscripten_bind_PePCSInfo_getCentralMeridian_0 = A.Jb, Wc = s._emscripten_bind_PePCSInfo_getDomainMinx_0 = A.Kb, Gc = s._emscripten_bind_PePCSInfo_getDomainMiny_0 = A.Lb, Bc = s._emscripten_bind_PePCSInfo_getDomainMaxx_0 = A.Mb, qc = s._emscripten_bind_PePCSInfo_getDomainMaxy_0 = A.Nb, Hc = s._emscripten_bind_PePCSInfo_getNorthPoleLocation_0 = A.Ob, Yc = s._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0 = A.Pb, Zc = s._emscripten_bind_PePCSInfo_getSouthPoleLocation_0 = A.Qb, Xc = s._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0 = A.Rb, Jc = s._emscripten_bind_PePCSInfo_isDensificationNeeded_0 = A.Sb, Qc = s._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0 = A.Tb, Kc = s._emscripten_bind_PePCSInfo_isPannableRectangle_0 = A.Ub, ef = s._emscripten_bind_PePCSInfo_generate_2 = A.Vb, tf = s._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0 = A.Wb, rf = s._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0 = A.Xb, nf = s._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0 = A.Yb, sf = s._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0 = A.Zb, of = s._emscripten_bind_PePrimem_getLongitude_0 = A._b, af = s._emscripten_bind_PePrimem_getCode_0 = A.$b, uf = s._emscripten_bind_PePrimem_getName_1 = A.ac, lf = s._emscripten_bind_PePrimem_getType_0 = A.bc, cf = s._emscripten_bind_PeProjcs_Delete_0 = A.cc, ff = s._emscripten_bind_PeProjcs_getGeogcs_0 = A.dc, hf = s._emscripten_bind_PeProjcs_getProjection_0 = A.ec, df = s._emscripten_bind_PeProjcs_getParameters_0 = A.fc, mf = s._emscripten_bind_PeProjcs_getUnit_0 = A.gc, pf = s._emscripten_bind_PeProjcs_loadConstants_0 = A.hc, gf = s._emscripten_bind_PeProjcs_horizonGcsGenerate_0 = A.ic, _f = s._emscripten_bind_PeProjcs_horizonPcsGenerate_0 = A.jc, yf = s._emscripten_bind_PeProjcs_isEqual_1 = A.kc, bf = s._emscripten_bind_PeProjcs_getCode_0 = A.lc, wf = s._emscripten_bind_PeProjcs_getName_1 = A.mc, vf = s._emscripten_bind_PeProjcs_getType_0 = A.nc, Sf = s._emscripten_bind_PeSpheroid_getAxis_0 = A.oc, Nf = s._emscripten_bind_PeSpheroid_getFlattening_0 = A.pc, Ef = s._emscripten_bind_PeSpheroid_getCode_0 = A.qc, xf = s._emscripten_bind_PeSpheroid_getName_1 = A.rc, Tf = s._emscripten_bind_PeSpheroid_getType_0 = A.sc, Pf = s._emscripten_bind_PeVersion_version_string_0 = A.tc;
|
|
24389
24382
|
function lo() {
|
|
24390
24383
|
function p() {
|
|
24391
24384
|
s.calledRun = !0, B || (ye(), e(s));
|
|
@@ -24432,7 +24425,7 @@ var uT = /* @__PURE__ */ Object.freeze({
|
|
|
24432
24425
|
k /= N.BYTES_PER_ELEMENT;
|
|
24433
24426
|
for (var G = 0; G < p.length; G++) N[k + G] = p[G];
|
|
24434
24427
|
} };
|
|
24435
|
-
function
|
|
24428
|
+
function ni(p) {
|
|
24436
24429
|
if (typeof p == "string") {
|
|
24437
24430
|
var N = Vu(p), k = he.alloc(N, v);
|
|
24438
24431
|
return he.copy(N, v, k), k;
|
|
@@ -24581,7 +24574,7 @@ var uT = /* @__PURE__ */ Object.freeze({
|
|
|
24581
24574
|
return Ju(p);
|
|
24582
24575
|
}, gt.prototype.getCode = gt.prototype.getCode = function() {
|
|
24583
24576
|
var p = this.ptr;
|
|
24584
|
-
return
|
|
24577
|
+
return ls(p);
|
|
24585
24578
|
}, gt.prototype.getName = gt.prototype.getName = function(p) {
|
|
24586
24579
|
var N = this.ptr;
|
|
24587
24580
|
return he.prepare(), typeof p == "object" && (p = Qt(p)), Ct(Qu(N, p));
|
|
@@ -24721,11 +24714,11 @@ var uT = /* @__PURE__ */ Object.freeze({
|
|
|
24721
24714
|
var p = this.ptr;
|
|
24722
24715
|
zl(p);
|
|
24723
24716
|
}, Rt.prototype = Object.create(De.prototype), Rt.prototype.constructor = Rt, Rt.prototype.__class__ = Rt, Rt.__cache__ = {}, s.PeFactory = Rt, Rt.prototype.initialize = Rt.prototype.initialize = function(p) {
|
|
24724
|
-
he.prepare(), p = p && typeof p == "object" ? p.ptr :
|
|
24717
|
+
he.prepare(), p = p && typeof p == "object" ? p.ptr : ni(p), Vl(p);
|
|
24725
24718
|
}, Rt.prototype.factoryByType = Rt.prototype.factoryByType = function(p, N) {
|
|
24726
24719
|
return p && typeof p == "object" && (p = p.ptr), N && typeof N == "object" && (N = N.ptr), Qe(jl(p, N), Be);
|
|
24727
24720
|
}, Rt.prototype.fromString = Rt.prototype.fromString = function(p, N) {
|
|
24728
|
-
return he.prepare(), p && typeof p == "object" && (p = p.ptr), N = N && typeof N == "object" ? N.ptr :
|
|
24721
|
+
return he.prepare(), p && typeof p == "object" && (p = p.ptr), N = N && typeof N == "object" ? N.ptr : ni(N), Qe(Wl(p, N), Be);
|
|
24729
24722
|
}, Rt.prototype.getCode = Rt.prototype.getCode = function(p) {
|
|
24730
24723
|
return p && typeof p == "object" && (p = p.ptr), Gl(p);
|
|
24731
24724
|
}, ft.prototype = Object.create(De.prototype), ft.prototype.constructor = ft, ft.prototype.__class__ = ft, ft.__cache__ = {}, s.PeGCSExtent = ft, ft.prototype.getLLon = ft.prototype.getLLon = function() {
|
|
@@ -25010,7 +25003,7 @@ var uT = /* @__PURE__ */ Object.freeze({
|
|
|
25010
25003
|
}, Mr.prototype = Object.create(De.prototype), Mr.prototype.constructor = Mr, Mr.prototype.__class__ = Mr, Mr.__cache__ = {}, s.PeVersion = Mr, Mr.prototype.version_string = Mr.prototype.version_string = function() {
|
|
25011
25004
|
var p = this.ptr;
|
|
25012
25005
|
return Ct(Pf(p));
|
|
25013
|
-
}, s.ensureCache = he, s.ensureString =
|
|
25006
|
+
}, s.ensureCache = he, s.ensureString = ni, s.ensureInt8 = Qt, s.ensureInt16 = Cf, s.ensureInt32 = Rf, s.ensureFloat32 = If, s.ensureFloat64 = kf, i;
|
|
25014
25007
|
}, cT = /* @__PURE__ */ Object.freeze({
|
|
25015
25008
|
__proto__: null,
|
|
25016
25009
|
default: lT
|