@arcgis/coding-components 6.0.0-next.0 → 6.0.0-next.10
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/cdn/2G4FXGUW.js +2 -0
- package/dist/cdn/2MUU37FH.js +2 -0
- package/dist/cdn/{HZSPZILM.js → 375DJPSU.js} +2 -2
- package/dist/cdn/{D4TRKALK.js → 3DMULL6Y.js} +2 -2
- package/dist/cdn/{W6YYQCBS.js → 3KHLUWP6.js} +2 -2
- package/dist/cdn/{FGO22NCZ.js → 3LLBOQET.js} +2 -2
- package/dist/cdn/{WBYKVSV4.js → 3MV7L6WD.js} +2 -2
- package/dist/cdn/{VHXEN75D.js → 45OVIYOF.js} +2 -2
- package/dist/cdn/{JW63G7JR.js → 4JOBVTMO.js} +2 -2
- package/dist/cdn/{5EIPVOGO.js → 4SCAQXGL.js} +2 -2
- package/dist/cdn/{4YFE3KBC.js → 55Q2G4OY.js} +2 -2
- package/dist/cdn/{XVT2TWEJ.js → 56TCXNYJ.js} +2 -2
- package/dist/cdn/{PVTDESVT.js → 5QFCRDPV.js} +2 -2
- package/dist/cdn/{WMQL7T43.js → 5RKRCDUO.js} +2 -2
- package/dist/cdn/{XG3S7JQW.js → 6AJWW3LS.js} +2 -2
- package/dist/cdn/{TUQPDQ74.js → 6EM6CS5H.js} +2 -2
- package/dist/cdn/{J4I4EROF.js → 6NBR3CBG.js} +1 -1
- package/dist/cdn/{BTLDXLFC.js → 6NME5GYU.js} +2 -2
- package/dist/cdn/{6HKTUV2Z.js → 7IMHQO2V.js} +2 -2
- package/dist/cdn/{JGRWZYW5.js → 7IPPBEPF.js} +2 -2
- package/dist/cdn/{XQSXGAPV.js → 7OG57VRP.js} +2 -2
- package/dist/cdn/{G3F6L5BF.js → 7YGGAMMI.js} +2 -2
- package/dist/cdn/{MZMKV7FA.js → A3VKXFUZ.js} +1 -1
- package/dist/cdn/{GYG7XT3I.js → A4GZ33K7.js} +2 -2
- package/dist/cdn/{ZLV7T4YS.js → AFPDVDE4.js} +2 -2
- package/dist/cdn/{2PZP3YWM.js → AW5IMWD6.js} +2 -2
- package/dist/cdn/{WJYR4BJG.js → B5GJ5YJV.js} +2 -2
- package/dist/cdn/{LEFE3FVL.js → BQAEB2CG.js} +1 -1
- package/dist/cdn/{ZJCPZ5ZN.js → BW6YB5V4.js} +2 -2
- package/dist/cdn/{36W5RXLG.js → BYGBU3GB.js} +2 -2
- package/dist/cdn/{PTLGMSM7.js → C33GYZXZ.js} +2 -2
- package/dist/cdn/{BFPEJYVB.js → C3LWMJ56.js} +1 -1
- package/dist/cdn/{MLQTKNOS.js → CC73R2YO.js} +2 -2
- package/dist/cdn/{KY7IXKSM.js → D6IZDRAG.js} +2 -2
- package/dist/cdn/{GWJWZDBK.js → DEEKUI7Y.js} +2 -2
- package/dist/cdn/{D5GWRYT7.js → DGJ7J5FA.js} +2 -2
- package/dist/cdn/{N634TYFB.js → DJSVI4SW.js} +2 -2
- package/dist/cdn/{BPCBI4SE.js → DR6WXFDJ.js} +2 -2
- package/dist/cdn/{LDUXIRRX.js → DUOYG2IK.js} +2 -2
- package/dist/cdn/{N56B3UDM.js → DWVVNZOV.js} +2 -2
- package/dist/cdn/{467GNIKK.js → DXUERUPL.js} +2 -2
- package/dist/cdn/{H2KLFHG3.js → E2AFCZFQ.js} +2 -2
- package/dist/cdn/{CP57L67B.js → ENFWE476.js} +2 -2
- package/dist/cdn/{A3TU47C5.js → FBUC6QBP.js} +2 -2
- package/dist/cdn/{DKAMEAFP.js → FMX4KCA2.js} +2 -2
- package/dist/cdn/{7Z6G332Z.js → FXTQDR6G.js} +1 -1
- package/dist/cdn/{UZVUXHHW.js → G7K5HHRI.js} +2 -2
- package/dist/cdn/{SXM2EQHN.js → GLGGJTZV.js} +2 -2
- package/dist/cdn/{XEK22IDA.js → GUL7EIJ4.js} +1 -1
- package/dist/cdn/{HLTDO25M.js → H2UPP7AN.js} +2 -2
- package/dist/cdn/{Y2QWXLND.js → HBRJUCJA.js} +2 -2
- package/dist/cdn/{SIP637YL.js → HICJC3K4.js} +2 -2
- package/dist/cdn/{5YEMW2UC.js → HVCJZ7GU.js} +2 -2
- package/dist/cdn/{ISYMIYR5.js → HZRDPUZY.js} +2 -2
- package/dist/cdn/{ZRGZPKPU.js → IRADQYMM.js} +2 -2
- package/dist/cdn/{7GVCXLAE.js → IZZPVKJC.js} +2 -2
- package/dist/cdn/{5HKDO4SX.js → JPCKFSCN.js} +1 -1
- package/dist/cdn/{AGJJ7FJX.js → JUF3UYBF.js} +2 -2
- package/dist/cdn/{GK62ODPJ.js → JVG2GEOV.js} +2 -2
- package/dist/cdn/{JFO2HVZ6.js → KLUYWWAO.js} +2 -2
- package/dist/cdn/{ZQZRAXQ5.js → KQXINZTZ.js} +2 -2
- package/dist/cdn/{P47PXEKU.js → KVWBKELA.js} +2 -2
- package/dist/cdn/{EQKJWVNG.js → KYZIVRRE.js} +2 -2
- package/dist/cdn/{TUPOE2CF.js → L55CAL6A.js} +2 -2
- package/dist/cdn/{KSYZD77O.js → L5EAXK66.js} +2 -2
- package/dist/cdn/{GJ4W3JPG.js → LHICFCJJ.js} +2 -2
- package/dist/cdn/{57E5F75J.js → LT46MQ3R.js} +2 -2
- package/dist/cdn/{QDUPWXLI.js → LY2IFALR.js} +2 -2
- package/dist/cdn/{ZIITPBDA.js → MPFQRTM2.js} +2 -2
- package/dist/cdn/{ZGH54UQL.js → MS7IKLGS.js} +2 -2
- package/dist/cdn/{FH5UYXIE.js → MT3EN3JQ.js} +2 -2
- package/dist/cdn/{YCBGCWWV.js → N2AWQ7KB.js} +2 -2
- package/dist/cdn/{XWEX2VS6.js → N3TIODOB.js} +2 -2
- package/dist/cdn/{J72JBXLX.js → N3YRPFQR.js} +2 -2
- package/dist/cdn/{O6XP7VU2.js → N4JLGDFS.js} +3 -3
- package/dist/cdn/{MB3H26SY.js → NIVPC4BK.js} +2 -2
- package/dist/cdn/{GLWUBI25.js → NNVH66G7.js} +2 -2
- package/dist/cdn/{UZD32YRD.js → OBV47WCU.js} +2 -2
- package/dist/cdn/{USFPEQ7Q.js → OEKA3QCT.js} +2 -2
- package/dist/cdn/{OO3J7H7X.js → OJKCX7KO.js} +2 -2
- package/dist/cdn/{QYQXVQVS.js → OQKFGD5F.js} +2 -2
- package/dist/cdn/{NGWNHRDV.js → OVXVWXRX.js} +2 -2
- package/dist/cdn/{XCISKBJD.js → P3M7MP34.js} +2 -2
- package/dist/cdn/{C5WMGZYX.js → P4SMRR2P.js} +2 -2
- package/dist/cdn/{P5SQNRDH.js → PBTICSC2.js} +2 -2
- package/dist/cdn/{HUTT2UBA.js → PCKE4TCN.js} +2 -2
- package/dist/cdn/{Q2IQGLDP.js → PMVQBTIZ.js} +2 -2
- package/dist/cdn/{SP2OSSVP.js → Q7GROPRX.js} +2 -2
- package/dist/cdn/{IO6Q3255.js → QAELK3EI.js} +2 -2
- package/dist/cdn/{KSNDH6NJ.js → QRW7RXCV.js} +2 -2
- package/dist/cdn/{ABZ7ZFXX.js → RIKAOQYV.js} +2 -2
- package/dist/cdn/{CVJM5DJ5.js → RJOVUGPB.js} +2 -2
- package/dist/cdn/{7IJT3Z4F.js → ROTZLDIT.js} +2 -2
- package/dist/cdn/{XECHDNHQ.js → RRLOGYIL.js} +2 -2
- package/dist/cdn/{TULXD5ZA.js → RT5UOROF.js} +1 -1
- package/dist/cdn/{EXVPEWWR.js → RTUQFFHX.js} +2 -2
- package/dist/cdn/{UF7HDQEU.js → RTWZV4XI.js} +2 -2
- package/dist/cdn/{MO22NTSF.js → S3HNLKHY.js} +2 -2
- package/dist/cdn/S5M6I2QL.js +2 -0
- package/dist/cdn/{62ON7ZHZ.js → SH5HACAZ.js} +2 -2
- package/dist/cdn/{S5T6XTRV.js → SOG262WW.js} +2 -2
- package/dist/cdn/{6VFEED45.js → SR3TBOJY.js} +2 -2
- package/dist/cdn/{3G26WBEK.js → SVYY36W2.js} +2 -2
- package/dist/cdn/{4OC4PWCA.js → SW36X5U7.js} +2 -2
- package/dist/cdn/{KKD3ZAX7.js → SYNWLBAF.js} +2 -2
- package/dist/cdn/{AI6346MJ.js → T2AUH4ME.js} +2 -2
- package/dist/cdn/{UHQN4ZKV.js → T2HTSGVS.js} +2 -2
- package/dist/cdn/{J7TSCCXO.js → T4YNKW5K.js} +2 -2
- package/dist/cdn/{33BRQKI6.js → TA4G2LVC.js} +2 -2
- package/dist/cdn/{H6RQVSYM.js → TAVTDQ6S.js} +1 -1
- package/dist/cdn/{ZUCC43DN.js → TIIYEBB2.js} +1 -1
- package/dist/cdn/TJSBZOI7.js +2 -0
- package/dist/cdn/{QZ5SQVOZ.js → TKEKWLBE.js} +2 -2
- package/dist/cdn/{ZB5LSQCI.js → TKPHDVSX.js} +2 -2
- package/dist/cdn/{KFZFVK3W.js → TVVA6FEQ.js} +2 -2
- package/dist/cdn/{Q42IHUZ3.js → TWKY4BKI.js} +2 -2
- package/dist/cdn/{45R5XOFL.js → TXFIQJHJ.js} +2 -2
- package/dist/cdn/{LW6VG5BJ.js → UNPBOORD.js} +2 -2
- package/dist/cdn/{QGSV4ECO.js → UVUWGKLM.js} +2 -2
- package/dist/cdn/{R7SJNYNM.js → V5J7KWVQ.js} +2 -2
- package/dist/cdn/{H5EGZU2S.js → VFCQQ2QW.js} +1 -1
- package/dist/cdn/{U2T7AGOO.js → VIBWCDPT.js} +2 -2
- package/dist/cdn/{DITC5ENP.js → VJH3R5OS.js} +2 -2
- package/dist/cdn/{ERQORLO4.js → VK74BPIN.js} +2 -2
- package/dist/cdn/{TKZNHPOT.js → VQR7ACO5.js} +2 -2
- package/dist/cdn/{JZKEFFFC.js → VTV2VG4H.js} +2 -2
- package/dist/cdn/{IF6VZF56.js → VU6OVSPO.js} +2 -2
- package/dist/cdn/{DSXNVNHP.js → VVFPLSXK.js} +2 -2
- package/dist/cdn/W52HXAM3.js +2 -0
- package/dist/cdn/{NQOXXF5T.js → W7BJ4EJL.js} +2 -2
- package/dist/cdn/{CJ2MVXSJ.js → W7SAG4KR.js} +2 -2
- package/dist/cdn/{2AXSYZEN.js → WCI43GIC.js} +2 -2
- package/dist/cdn/{FUBZOMVG.js → WFTDQL2F.js} +2 -2
- package/dist/cdn/{FRKDR2KF.js → WQCBBI46.js} +2 -2
- package/dist/cdn/{NFD5QRK7.js → WYBJRCXS.js} +2 -2
- package/dist/cdn/{EQDKZIAP.js → X2TZOQWB.js} +2 -2
- package/dist/cdn/{GDTEFKCP.js → XN5UIKTG.js} +2 -2
- package/dist/cdn/{NKGAHXNJ.js → XUZB7XNL.js} +3 -3
- package/dist/cdn/{EIKXKAAA.js → YEFVOAFD.js} +2 -2
- package/dist/cdn/{MBEHVUYT.js → YP5HFYMK.js} +2 -2
- package/dist/cdn/{ML3XEYX7.js → YQITW2XJ.js} +2 -2
- package/dist/cdn/{UYUJZDIZ.js → Z42TYXEQ.js} +2 -2
- package/dist/cdn/{MZWBKK5Y.js → Z5PSDQLD.js} +2 -2
- package/dist/cdn/{UXE4ASGX.js → ZPFMMHAW.js} +2 -2
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +151 -154
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/ArcadeDebuggerPreviewTabsState.js +1 -1
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +1 -1
- package/dist/chunks/arcade-service-accessors.js +1 -1
- package/dist/chunks/bigquery.js +1 -1
- package/dist/chunks/colorize.js +1 -1
- package/dist/chunks/debugger-value-components.js +1 -1
- package/dist/chunks/debugger-value-styles.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/functional.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/oracle.js +1 -1
- package/dist/chunks/postgres.js +1 -1
- package/dist/chunks/runtime.js +2 -2
- package/dist/chunks/setup-monaco-theme.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/sql-layer-defaults.js +1 -1
- package/dist/chunks/sql-layer-mode.js +1 -1
- package/dist/chunks/sqlServer.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utilities.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils2.js +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
- package/dist/components/arcgis-arcade-debugger-console/customElement.js +1 -1
- package/dist/components/arcgis-arcade-debugger-output/customElement.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-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-layer-editor/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +7 -7
- package/dist/cdn/G4VQ7X3L.js +0 -2
- package/dist/cdn/OKTFDNZ2.js +0 -2
- package/dist/cdn/OMJLVFHT.js +0 -2
- package/dist/cdn/PY2Q5GGO.js +0 -2
- package/dist/cdn/YG3C4FVJ.js +0 -2
|
@@ -17209,38 +17209,38 @@ function _t(n) {
|
|
|
17209
17209
|
const nv = "unknown", rv = "UTC";
|
|
17210
17210
|
Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
17211
17211
|
const st = globalThis, In = { ...st.esriConfig?.has };
|
|
17212
|
-
function
|
|
17212
|
+
function I(n) {
|
|
17213
17213
|
return typeof In[n] == "function" ? In[n] = In[n](st) : In[n];
|
|
17214
17214
|
}
|
|
17215
|
-
|
|
17216
|
-
(r || In[n] === void 0) && (In[n] = e), t &&
|
|
17217
|
-
},
|
|
17218
|
-
|
|
17215
|
+
I.add = (n, e, t, r) => {
|
|
17216
|
+
(r || In[n] === void 0) && (In[n] = e), t && I(n);
|
|
17217
|
+
}, I.cache = In, I.add("big-integer-warning-enabled", !0), I.add("esri-deprecation-warnings", !0), I.add("esri-tests-disable-screenshots", !1), I.add("esri-tests-use-full-window", !1), I.add("esri-tests-post-to-influx", !0), I.add("esri-cim-animations-enable-status", "enabled"), I.add("esri-cim-animations-spotlight", !1), I.add("esri-cim-animations-freeze-time", !1), (() => {
|
|
17218
|
+
I.add("host-webworker", st.WorkerGlobalScope !== void 0 && self instanceof st.WorkerGlobalScope);
|
|
17219
17219
|
let n = typeof window < "u" && typeof location < "u" && typeof document < "u" && window.location === location && window.document === document;
|
|
17220
|
-
if (
|
|
17220
|
+
if (I.add("host-browser", n), I.add("host-node", !!(typeof st.process == "object" && st.process.versions?.node && st.process.versions.v8)), I.add("dom", n), I("host-browser")) {
|
|
17221
17221
|
let e = navigator, t = e.userAgent, r = e.appVersion, s = parseFloat(r);
|
|
17222
|
-
if (
|
|
17222
|
+
if (I.add("wp", parseFloat(t.split("Windows Phone")[1]) || void 0), I.add("msapp", parseFloat(t.split("MSAppHost/")[1]) || void 0), I.add("khtml", r.includes("Konqueror") ? s : void 0), I.add("edge", parseFloat(t.split("Edge/")[1]) || void 0), I.add("opr", parseFloat(t.split("OPR/")[1]) || void 0), I.add("webkit", !I("wp") && !I("edge") && parseFloat(t.split("WebKit/")[1]) || void 0), I.add("chrome", !I("edge") && !I("opr") && parseFloat(t.split("Chrome/")[1]) || void 0), I.add("android", !I("wp") && parseFloat(t.split("Android ")[1]) || void 0), I.add("safari", r.includes("Safari") && !I("wp") && !I("chrome") && !I("android") && !I("edge") && !I("opr") ? parseFloat(r.split("Version/")[1]) : void 0), I.add("mac", r.includes("Macintosh")), !I("wp") && /(iPhone|iPod|iPad)/.test(t)) {
|
|
17223
17223
|
let a = RegExp.$1.replace(/P/, "p"), o = /OS ([\d_]+)/.test(t) ? RegExp.$1 : "1", l = parseFloat(o.replace(/_/, ".").replaceAll("_", ""));
|
|
17224
|
-
|
|
17224
|
+
I.add(a, l), I.add("ios", l);
|
|
17225
17225
|
}
|
|
17226
|
-
|
|
17226
|
+
I("webkit") || (t.includes("Gecko") && !I("wp") && !I("khtml") && !I("edge") && I.add("mozilla", s), I("mozilla") && I.add("ff", parseFloat(t.split("Firefox/")[1] || t.split("Minefield/")[1]) || void 0));
|
|
17227
17227
|
}
|
|
17228
17228
|
})(), (() => {
|
|
17229
17229
|
if (st.navigator) {
|
|
17230
17230
|
let n = navigator.userAgent, e = /Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(n), t = /iPhone/i.test(n);
|
|
17231
|
-
e &&
|
|
17231
|
+
e && I.add("esri-mobile", e), t && I.add("esri-iPhone", t), I.add("esri-geolocation", !!navigator.geolocation);
|
|
17232
17232
|
}
|
|
17233
|
-
|
|
17233
|
+
I.add("esri-wasm", "WebAssembly" in st), I.add("esri-temporal", "Temporal" in st), I.add("esri-performance-mode-frames-between-render", 20), I.add("esri-force-performance-mode", !1), I.add("esri-shared-array-buffer", () => {
|
|
17234
17234
|
let n = "SharedArrayBuffer" in st, e = st.crossOriginIsolated === !1;
|
|
17235
17235
|
return n && !e;
|
|
17236
|
-
}),
|
|
17236
|
+
}), I.add("wasm-simd", () => WebAssembly.validate(new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10, 1, 8, 0, 65, 0, 253, 15, 253, 98, 11]))), I.add("esri-atomics", "Atomics" in st), I.add("esri-workers", "Worker" in st), I.add("web-feat:cache", "caches" in st), I.add("esri-workers-arraybuffer-transfer", !I("safari") || Number(I("safari")) >= 12), I.add("min-workers-pool-size", 2), I.add("max-workers-pool-size", I("esri-mobile") ? 3 : 8), I.add("featurelayer-simplify-thresholds", [0.5, 0.5, 0.5, 0.5]), I.add("featurelayer-simplify-payload-size-factors", [1, 1, 4]), I.add("featurelayer-animation-enabled", !0), I.add("featurelayer-hybrid-tile-enabled", !0), I.add("featurelayer-snapshot-enabled", !0), I.add("featurelayer-snapshot-initial-tolerance", 0), I.add("featurelayer-snapshot-point-min-threshold", 8e4), I.add("featurelayer-snapshot-point-max-threshold", 4e5), I.add("featurelayer-snapshot-multipoint-min-threshold", 2e4), I.add("featurelayer-snapshot-multipoint-max-threshold", 1e5), I.add("featurelayer-snapshot-polygon-min-threshold", 2e3), I.add("featurelayer-snapshot-polygon-max-threshold", 2e3), I.add("featurelayer-snapshot-polyline-min-threshold", 2e3), I.add("featurelayer-snapshot-polyline-max-threshold", 2e3), I.add("featurelayer-snapshot-max-vertex-count", 25e4), I.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled", !0), I.add("featurelayer-snapshot-concurrency", 4), I.add("featurelayer-snapshot-allow-editable", !1), I.add("featurelayer-snapshot-coverage", 0.1), I.add("featurelayer-pixel-buffering-enabled", !0), I.add("featurelayer-query-max-depth", 4), I.add("featurelayer-query-max-page-size", 8e3), I.add("featurelayer-query-pausing-enabled", !1), I.add("featurelayer-query-tile-concurrency", 4), I.add("featurelayer-query-tile-max-features", 6e5), I.add("featurelayer-snapping-density-sample-interval", 10), I.add("featurelayer-snapping-density-max-vertices-per-feature", 16), I.add("featurelayer-snapping-density-max-distance", 8), I.add("featurelayer-advanced-symbols", !1), I.add("featurelayer-pbf", !0), I.add("featurelayer-pbf-statistics", !1), I.add("featurelayer-pbf-true-curves", !0), I.add("feature-layers-workers", !0), I.add("feature-polyline-generalization-factor", 1), I.add("featurelayer-relative-time-queries-enabled", !0), I.add("featurelayer-relative-time-queries-bin-window-public", 1), I.add("featurelayer-relative-time-queries-bin-window-private", 60), I.add("parquetlayer-full-query-feature-count", 5e5), I.add("parquetlayer-persistence-enabled", !0), I.add("parquetlayer-cache-enabled", !0), I.add("parquetlayer-legacy-field-overrides-enabled", !1), I.add("sketch-layer-enabled", !1), I.add("mapview-transitions-duration", 200), I.add("mapview-essential-goto-duration", 200), I.add("mapview-srswitch-adjust-rotation-scale-threshold", 24e6), I.add("mapserver-pbf-version-support", 10.81), I.add("mapservice-popup-identify-max-tolerance", 20), I.add("request-queue-concurrency-global", 64), I.add("request-queue-concurrency-hosted", 16), I.add("request-queue-concurrency-non-hosted", 16), I.add("curve-densification-coarse-segments", 128), I.add("curve-densification-max-segments", 2e3), I.add("curve-densification-min-segments", 3), I.add("curve-densification-pixel-deviation", 0.5), I.add("view-readyState-waiting-delay", 1e3), I.add("gradient-depth-bias", 0.01), I.add("gradient-depth-epsilon", 1e-8), I.add("enable-feature:esri-compress-textures", !0), I.add("enable-feature:im-shading", !0), I.add("enable-feature:im-vertex-normals", !0), !I("host-webworker") && I("host-browser") && (I.add("esri-csp-restrictions", () => {
|
|
17237
17237
|
try {
|
|
17238
17238
|
Function();
|
|
17239
17239
|
} catch {
|
|
17240
17240
|
return !0;
|
|
17241
17241
|
}
|
|
17242
17242
|
return !1;
|
|
17243
|
-
}),
|
|
17243
|
+
}), I.add("esri-url-encodes-apostrophe", () => {
|
|
17244
17244
|
let n = window.document.createElement("a");
|
|
17245
17245
|
return n.href = "?'", n.href.includes("?%27");
|
|
17246
17246
|
}));
|
|
@@ -17273,7 +17273,7 @@ let sv = class extends $t {
|
|
|
17273
17273
|
};
|
|
17274
17274
|
const th = /* @__PURE__ */ new Map();
|
|
17275
17275
|
function ud(n) {
|
|
17276
|
-
if (
|
|
17276
|
+
if (I("esri-temporal")) {
|
|
17277
17277
|
let e = th.get(n);
|
|
17278
17278
|
return e === void 0 && (e = new sv(n), th.set(n, e)), e;
|
|
17279
17279
|
}
|
|
@@ -18433,7 +18433,7 @@ class Cv {
|
|
|
18433
18433
|
return null;
|
|
18434
18434
|
}
|
|
18435
18435
|
}
|
|
18436
|
-
const kv = !!
|
|
18436
|
+
const kv = !!I("esri-tests-disable-gpu-memory-measurements");
|
|
18437
18437
|
let Mv = class {
|
|
18438
18438
|
get size() {
|
|
18439
18439
|
return this._size;
|
|
@@ -18505,11 +18505,8 @@ let Mv = class {
|
|
|
18505
18505
|
get(e, t) {
|
|
18506
18506
|
t = e.id + t;
|
|
18507
18507
|
let r = this._db.get(t);
|
|
18508
|
-
if (r === void 0)
|
|
18509
|
-
|
|
18510
|
-
return;
|
|
18511
|
-
}
|
|
18512
|
-
return this._db.delete(t), r.lives = r.lifetime, this._db.set(t, r), ++this._hit, r.entry;
|
|
18508
|
+
if (r === void 0) ++this._miss;
|
|
18509
|
+
else return this._db.delete(t), r.lives = r.lifetime, this._db.set(t, r), ++this._hit, r.entry;
|
|
18513
18510
|
}
|
|
18514
18511
|
peek(e, t) {
|
|
18515
18512
|
let r = this._db.get(e.id + t);
|
|
@@ -19083,7 +19080,7 @@ let Et = class ht {
|
|
|
19083
19080
|
}
|
|
19084
19081
|
};
|
|
19085
19082
|
const jv = { InvalidValueForAggregateFunction: "Invalid value used in aggregate function", MissingStatisticParameters: "Statistic does not have 1 or 0 Parameters", InvalidFunctionParameters: "Invalid parameters for call to {function}", UnsupportedIsLhs: "Unsupported left hand expression in is statement", UnsupportedIsRhs: "Unsupported right hand expression in is statement", UnsupportedOperator: "Unsupported operator - {operator}", UnsupportedSyntax: "Unsupported syntax - {node}", UnsupportedSqlFunction: "Sql function not found = {function}", InvalidDataType: "Invalid sql data type", InvalidDate: "Invalid date encountered", InvalidOperator: "Invalid operator encountered", InvalidTime: "Invalid time encountered", IllegalInterval: "Illegal interval", FunctionNotRecognized: "Function not recognized", InvalidTimeStamp: "Invalid timestamp encountered", InvalidParameterCount: "Invalid parameter count for call to {name}", PrimarySecondaryQualifiers: "Primary and Secondary SqlInterval qualifiers not supported", YearMonthIntervals: "Year-Month Intervals not supported", CannotCastValue: "Cannot cast value to the required data type" };
|
|
19086
|
-
let
|
|
19083
|
+
let C = class wd extends Error {
|
|
19087
19084
|
constructor(e, t) {
|
|
19088
19085
|
super(md(jv[e], t)), this.declaredRootClass = "esri.arcade.featureset.support.sqlerror", Error.captureStackTrace && Error.captureStackTrace(this, wd);
|
|
19089
19086
|
}
|
|
@@ -19328,26 +19325,26 @@ let wt = class qt {
|
|
|
19328
19325
|
};
|
|
19329
19326
|
function Gv(n, e) {
|
|
19330
19327
|
let t = bd[n.toLowerCase()];
|
|
19331
|
-
if (t == null) throw new
|
|
19332
|
-
if (e.length < t.minParams || e.length > t.maxParams) throw new
|
|
19328
|
+
if (t == null) throw new C("FunctionNotRecognized");
|
|
19329
|
+
if (e.length < t.minParams || e.length > t.maxParams) throw new C("InvalidParameterCount", { name: n.toUpperCase() });
|
|
19333
19330
|
return t.evaluate(e);
|
|
19334
19331
|
}
|
|
19335
19332
|
function gh(n, e) {
|
|
19336
19333
|
let t = bd[n.toLowerCase()];
|
|
19337
19334
|
return t != null && e >= t.minParams && e <= t.maxParams;
|
|
19338
19335
|
}
|
|
19339
|
-
const bd = { min: { minParams: 1, maxParams: 1, evaluate: (n) => ph(n[0], "min") }, max: { minParams: 1, maxParams: 1, evaluate: (n) => ph(n[0], "max") }, avg: { minParams: 1, maxParams: 1, evaluate: (n) => xd(n[0]) }, sum: { minParams: 1, maxParams: 1, evaluate: (n) => Zv(n[0]) }, stddev: { minParams: 1, maxParams: 1, evaluate: (n) => Yv(n[0]) }, count: { minParams: 1, maxParams: 1, evaluate: (n) => n[0] == null ? null : n[0].length }, var: { minParams: 1, maxParams: 1, evaluate: (n) => vd(n[0]) } };
|
|
19336
|
+
const bd = { min: { minParams: 1, maxParams: 1, evaluate: (n) => ph(n[0], "min") }, max: { minParams: 1, maxParams: 1, evaluate: (n) => ph(n[0], "max") }, avg: { minParams: 1, maxParams: 1, evaluate: (n) => xd(n[0]) }, sum: { minParams: 1, maxParams: 1, evaluate: (n) => Zv(n[0]) }, stddev: { minParams: 1, maxParams: 1, evaluate: (n) => Yv(n[0]) }, count: { minParams: 1, maxParams: 1, evaluate: (n) => n[0] == null ? null : n[0].filter((e) => e !== null).length }, var: { minParams: 1, maxParams: 1, evaluate: (n) => vd(n[0]) } };
|
|
19340
19337
|
function xd(n) {
|
|
19341
19338
|
if (n === null) return null;
|
|
19342
19339
|
let e = 0, t = 0;
|
|
19343
19340
|
for (let r = 0; r < n.length; r++) {
|
|
19344
19341
|
let s = n[r];
|
|
19345
19342
|
if (s !== null) {
|
|
19346
|
-
if (!Ro(s)) throw new
|
|
19343
|
+
if (!Ro(s)) throw new C("InvalidValueForAggregateFunction");
|
|
19347
19344
|
t++, e += s;
|
|
19348
19345
|
}
|
|
19349
19346
|
}
|
|
19350
|
-
return t === 0 ? null : e /
|
|
19347
|
+
return t === 0 ? null : e / t;
|
|
19351
19348
|
}
|
|
19352
19349
|
function Ro(n) {
|
|
19353
19350
|
return typeof n == "number";
|
|
@@ -19362,12 +19359,12 @@ function ph(n, e) {
|
|
|
19362
19359
|
return t;
|
|
19363
19360
|
}
|
|
19364
19361
|
function Zv(n) {
|
|
19365
|
-
if (n === null) return null;
|
|
19362
|
+
if (n === null || n.length === 0) return null;
|
|
19366
19363
|
let e = 0;
|
|
19367
19364
|
for (let t = 0; t < n.length; t++) {
|
|
19368
19365
|
let r = n[t];
|
|
19369
19366
|
if (r !== null) {
|
|
19370
|
-
if (!Ro(r)) throw new
|
|
19367
|
+
if (!Ro(r)) throw new C("InvalidValueForAggregateFunction");
|
|
19371
19368
|
e += r;
|
|
19372
19369
|
}
|
|
19373
19370
|
}
|
|
@@ -19384,13 +19381,13 @@ function vd(n) {
|
|
|
19384
19381
|
if (e === null) return null;
|
|
19385
19382
|
let t = 0;
|
|
19386
19383
|
for (let r of n) {
|
|
19387
|
-
if (!Ro(r)) throw new
|
|
19384
|
+
if (!Ro(r)) throw new C("InvalidValueForAggregateFunction");
|
|
19388
19385
|
t += (e - r) ** 2;
|
|
19389
19386
|
}
|
|
19390
19387
|
return t / (n.length - 1);
|
|
19391
19388
|
}
|
|
19392
19389
|
function Yi(n) {
|
|
19393
|
-
if (n.precision !== null || n.secondary !== null) throw new
|
|
19390
|
+
if (n.precision !== null || n.secondary !== null) throw new C("PrimarySecondaryQualifiers");
|
|
19394
19391
|
}
|
|
19395
19392
|
function _s(n, e) {
|
|
19396
19393
|
if (e.includes(".")) {
|
|
@@ -19415,53 +19412,53 @@ class $e {
|
|
|
19415
19412
|
if (a.op = r === "-" ? "-" : "+", t.type === "interval-period") {
|
|
19416
19413
|
Yi(t);
|
|
19417
19414
|
let o = RegExp("^[0-9]{1,}$");
|
|
19418
|
-
if (t.period === "year" || t.period === "month") throw new
|
|
19415
|
+
if (t.period === "year" || t.period === "month") throw new C("YearMonthIntervals");
|
|
19419
19416
|
if (t.period === "second")
|
|
19420
19417
|
if (/^[0-9]{1,}(\.[0-9]{1,}){0,1}$/.test(e)) _s(a, e);
|
|
19421
|
-
else throw new
|
|
19418
|
+
else throw new C("IllegalInterval");
|
|
19422
19419
|
else if (o.test(e)) a[t.period] = parseFloat(e);
|
|
19423
|
-
else throw new
|
|
19420
|
+
else throw new C("IllegalInterval");
|
|
19424
19421
|
} else {
|
|
19425
|
-
if (Yi(t.start), Yi(t.end), t.start.period === "year" || t.start.period === "month" || t.end.period === "year" || t.end.period === "month") throw new
|
|
19422
|
+
if (Yi(t.start), Yi(t.end), t.start.period === "year" || t.start.period === "month" || t.end.period === "year" || t.end.period === "month") throw new C("YearMonthIntervals");
|
|
19426
19423
|
switch (t.start.period) {
|
|
19427
19424
|
case "day":
|
|
19428
19425
|
switch (t.end.period) {
|
|
19429
19426
|
case "hour":
|
|
19430
19427
|
if (s = RegExp("^[0-9]{1,} [0-9]{1,}$"), s.test(e)) a[t.start.period] = parseFloat(e.split(" ")[0]), a[t.end.period] = parseFloat(e.split(" ")[1]);
|
|
19431
|
-
else throw new
|
|
19428
|
+
else throw new C("IllegalInterval");
|
|
19432
19429
|
break;
|
|
19433
19430
|
case "minute":
|
|
19434
19431
|
if (s = RegExp("^[0-9]{1,} [0-9]{1,2}:[0-9]{1,}$"), s.test(e)) {
|
|
19435
19432
|
a[t.start.period] = parseFloat(e.split(" ")[0]);
|
|
19436
19433
|
let o = e.split(" ")[1].split(":");
|
|
19437
19434
|
a.hour = parseFloat(o[0]), a.minute = parseFloat(o[1]);
|
|
19438
|
-
} else throw new
|
|
19435
|
+
} else throw new C("IllegalInterval");
|
|
19439
19436
|
break;
|
|
19440
19437
|
case "second":
|
|
19441
19438
|
if (s = RegExp("^[0-9]{1,} [0-9]{1,2}:[0-9]{1,2}:[0-9]{1,}(\\.[0-9]{1,}){0,1}$"), s.test(e)) {
|
|
19442
19439
|
a[t.start.period] = parseFloat(e.split(" ")[0]);
|
|
19443
19440
|
let o = e.split(" ")[1].split(":");
|
|
19444
19441
|
a.hour = parseFloat(o[0]), a.minute = parseFloat(o[1]), _s(a, o[2]);
|
|
19445
|
-
} else throw new
|
|
19442
|
+
} else throw new C("IllegalInterval");
|
|
19446
19443
|
break;
|
|
19447
19444
|
default:
|
|
19448
|
-
throw new
|
|
19445
|
+
throw new C("IllegalInterval");
|
|
19449
19446
|
}
|
|
19450
19447
|
break;
|
|
19451
19448
|
case "hour":
|
|
19452
19449
|
switch (t.end.period) {
|
|
19453
19450
|
case "minute":
|
|
19454
19451
|
if (s = RegExp("^[0-9]{1,}:[0-9]{1,}$"), s.test(e)) a.hour = parseFloat(e.split(":")[0]), a.minute = parseFloat(e.split(":")[1]);
|
|
19455
|
-
else throw new
|
|
19452
|
+
else throw new C("IllegalInterval");
|
|
19456
19453
|
break;
|
|
19457
19454
|
case "second":
|
|
19458
19455
|
if (s = RegExp("^[0-9]{1,}:[0-9]{1,2}:[0-9]{1,}(\\.[0-9]{1,}){0,1}$"), s.test(e)) {
|
|
19459
19456
|
let o = e.split(":");
|
|
19460
19457
|
a.hour = parseFloat(o[0]), a.minute = parseFloat(o[1]), _s(a, o[2]);
|
|
19461
|
-
} else throw new
|
|
19458
|
+
} else throw new C("IllegalInterval");
|
|
19462
19459
|
break;
|
|
19463
19460
|
default:
|
|
19464
|
-
throw new
|
|
19461
|
+
throw new C("IllegalInterval");
|
|
19465
19462
|
}
|
|
19466
19463
|
break;
|
|
19467
19464
|
case "minute":
|
|
@@ -19470,14 +19467,14 @@ class $e {
|
|
|
19470
19467
|
if (s = RegExp("^[0-9]{1,}:[0-9]{1,}(\\.[0-9]{1,}){0,1}$"), s.test(e)) {
|
|
19471
19468
|
let o = e.split(":");
|
|
19472
19469
|
a.minute = parseFloat(o[0]), _s(a, o[1]);
|
|
19473
|
-
} else throw new
|
|
19470
|
+
} else throw new C("IllegalInterval");
|
|
19474
19471
|
break;
|
|
19475
19472
|
default:
|
|
19476
|
-
throw new
|
|
19473
|
+
throw new C("IllegalInterval");
|
|
19477
19474
|
}
|
|
19478
19475
|
break;
|
|
19479
19476
|
default:
|
|
19480
|
-
throw new
|
|
19477
|
+
throw new C("IllegalInterval");
|
|
19481
19478
|
}
|
|
19482
19479
|
}
|
|
19483
19480
|
return a;
|
|
@@ -19518,58 +19515,58 @@ function gi(n) {
|
|
|
19518
19515
|
if (e !== null) {
|
|
19519
19516
|
let [, t, r, s] = e, a = wt.fromParts(parseInt(t, 10), parseInt(r, 10), parseInt(s, 10), 0);
|
|
19520
19517
|
if (a !== null) return a;
|
|
19521
|
-
throw new
|
|
19518
|
+
throw new C("InvalidTime");
|
|
19522
19519
|
}
|
|
19523
19520
|
if (e = Xv.exec(n), e !== null) {
|
|
19524
19521
|
let [, t, r] = e, s = wt.fromParts(parseInt(t, 10), parseInt(r, 10), 0, 0);
|
|
19525
19522
|
if (s !== null) return s;
|
|
19526
|
-
throw new
|
|
19523
|
+
throw new C("InvalidTime");
|
|
19527
19524
|
}
|
|
19528
19525
|
if (e = Qv.exec(n), e !== null) {
|
|
19529
19526
|
let [, t, r, s, a] = e, o = wt.fromParts(parseInt(t, 10), parseInt(r, 10), parseInt(s, 10), parseInt(a, 10));
|
|
19530
19527
|
if (o !== null) return o;
|
|
19531
|
-
throw new
|
|
19528
|
+
throw new C("InvalidTime");
|
|
19532
19529
|
}
|
|
19533
|
-
throw new
|
|
19530
|
+
throw new C("InvalidTime");
|
|
19534
19531
|
}
|
|
19535
19532
|
function yr(n, e) {
|
|
19536
19533
|
let t = Kv.exec(n);
|
|
19537
19534
|
if (t !== null) {
|
|
19538
19535
|
let [, r, s, a, o, l, d, m] = t, g = V.fromObject({ year: parseInt(r, 10), month: parseInt(s, 10), day: parseInt(a, 10), hour: parseInt(o, 10), minute: parseInt(l, 10), second: parseInt(d, 10), millisecond: m ? parseInt(m.replace(".", ""), 10) : 0 }, { zone: Gi(e) });
|
|
19539
|
-
if (g.isValid === !1) throw new
|
|
19536
|
+
if (g.isValid === !1) throw new C("InvalidTimeStamp");
|
|
19540
19537
|
return g;
|
|
19541
19538
|
}
|
|
19542
19539
|
if (t = e5.exec(n), t !== null) {
|
|
19543
19540
|
let [, r, s, a, o, l, d, m, g, y, w] = t, b = Gt.fromParts(parseInt(r, 10), parseInt(s, 10), parseInt(a, 10), parseInt(o, 10), parseInt(l, 10), parseInt(d, 10), m ? parseInt(m.replace(".", ""), 10) : 0, g === "-", parseInt(y, 10), parseInt(w, 10));
|
|
19544
|
-
if (b.isValid === !1) throw new
|
|
19541
|
+
if (b.isValid === !1) throw new C("InvalidTimeStamp");
|
|
19545
19542
|
return b;
|
|
19546
19543
|
}
|
|
19547
19544
|
if (t = t5.exec(n), t !== null) {
|
|
19548
19545
|
let [, r, s, a, o, l, d, m, g] = t, y = Gt.fromParts(parseInt(r, 10), parseInt(s, 10), parseInt(a, 10), parseInt(o, 10), parseInt(l, 10), 0, 0, d === "-", parseInt(m, 10), parseInt(g, 10));
|
|
19549
|
-
if (y.isValid === !1) throw new
|
|
19546
|
+
if (y.isValid === !1) throw new C("InvalidTimeStamp");
|
|
19550
19547
|
return y;
|
|
19551
19548
|
}
|
|
19552
19549
|
if (t = n5.exec(n), t !== null) {
|
|
19553
19550
|
let [, r, s, a, o, l] = t, d = V.fromObject({ year: parseInt(r, 10), month: parseInt(s, 10), day: parseInt(a, 10), hour: parseInt(o, 10), minute: parseInt(l, 10), second: 0 }, { zone: Gi(e) });
|
|
19554
|
-
if (d.isValid === !1) throw new
|
|
19551
|
+
if (d.isValid === !1) throw new C("InvalidTimeStamp");
|
|
19555
19552
|
return d;
|
|
19556
19553
|
}
|
|
19557
19554
|
if (t = Nd.exec(n), t !== null) {
|
|
19558
19555
|
let [, r, s, a] = t, o = V.fromObject({ year: parseInt(r, 10), month: parseInt(s, 10), day: parseInt(a, 10), hour: 0, minute: 0, second: 0 }, { zone: Gi(e) });
|
|
19559
|
-
if (o.isValid === !1) throw new
|
|
19556
|
+
if (o.isValid === !1) throw new C("InvalidTimeStamp");
|
|
19560
19557
|
return o;
|
|
19561
19558
|
}
|
|
19562
|
-
throw new
|
|
19559
|
+
throw new C("InvalidTimeStamp");
|
|
19563
19560
|
}
|
|
19564
19561
|
function Io(n, e) {
|
|
19565
19562
|
let t = Nd.exec(n);
|
|
19566
19563
|
if (t === null) try {
|
|
19567
19564
|
return yr(n, e);
|
|
19568
19565
|
} catch {
|
|
19569
|
-
throw new
|
|
19566
|
+
throw new C("InvalidDate");
|
|
19570
19567
|
}
|
|
19571
19568
|
let [, r, s, a] = t, o = Et.fromParts(parseInt(r, 10), parseInt(s, 10), parseInt(a, 10));
|
|
19572
|
-
if (o === null) throw new
|
|
19569
|
+
if (o === null) throw new C("InvalidDate");
|
|
19573
19570
|
return o;
|
|
19574
19571
|
}
|
|
19575
19572
|
const wh = new Float32Array(1), si = new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));
|
|
@@ -19610,7 +19607,7 @@ function l5(n) {
|
|
|
19610
19607
|
case ">=":
|
|
19611
19608
|
return "<=";
|
|
19612
19609
|
default:
|
|
19613
|
-
throw new
|
|
19610
|
+
throw new C("UnsupportedOperator", { operator: n });
|
|
19614
19611
|
}
|
|
19615
19612
|
}
|
|
19616
19613
|
function Xi(n) {
|
|
@@ -19623,18 +19620,18 @@ function Ss(n) {
|
|
|
19623
19620
|
if (_e(n)) return n.toMillis();
|
|
19624
19621
|
if (Le(n)) return n.toNumber();
|
|
19625
19622
|
if (Se(n)) return n.toMilliseconds();
|
|
19626
|
-
throw new
|
|
19623
|
+
throw new C("InvalidDataType");
|
|
19627
19624
|
}
|
|
19628
19625
|
function ft(n, e, t) {
|
|
19629
19626
|
if (n == null || e == null) return null;
|
|
19630
19627
|
if (at(n)) {
|
|
19631
19628
|
if (at(e)) return jt(n, e, t);
|
|
19632
19629
|
if (Be(e)) return u5(n, e, t);
|
|
19633
|
-
if (io(e) || Le(e)) throw new
|
|
19630
|
+
if (io(e) || Le(e)) throw new C("InvalidOperator");
|
|
19634
19631
|
} else if (Be(n)) {
|
|
19635
19632
|
if (at(e)) return c5(n, e, t);
|
|
19636
19633
|
if (Be(e)) return f5(n, e, t);
|
|
19637
|
-
if (_e(e) || Le(e) || Te(e) || Se(e)) throw new
|
|
19634
|
+
if (_e(e) || Le(e) || Te(e) || Se(e)) throw new C("InvalidOperator");
|
|
19638
19635
|
} else if (_e(n)) {
|
|
19639
19636
|
if (Xi(e)) {
|
|
19640
19637
|
if (Qn(n.zone)) {
|
|
@@ -19642,23 +19639,23 @@ function ft(n, e, t) {
|
|
|
19642
19639
|
} else if (_e(e) && Qn(e.zone)) return Qi(n, e, t);
|
|
19643
19640
|
return jt(Ss(n), Ss(e), t);
|
|
19644
19641
|
}
|
|
19645
|
-
if (Be(e)) throw new
|
|
19642
|
+
if (Be(e)) throw new C("InvalidOperator");
|
|
19646
19643
|
if (Le(e)) return d5(n, e, t);
|
|
19647
|
-
if (Te(e) || at(e)) throw new
|
|
19644
|
+
if (Te(e) || at(e)) throw new C("InvalidOperator");
|
|
19648
19645
|
} else if (Le(n)) {
|
|
19649
19646
|
if (Se(e)) return p5(n, e, t);
|
|
19650
19647
|
if (_e(e)) return g5(n, e, t);
|
|
19651
|
-
if (Be(e)) throw new
|
|
19648
|
+
if (Be(e)) throw new C("InvalidOperator");
|
|
19652
19649
|
if (Le(e)) return h5(n, e, t);
|
|
19653
|
-
if (Te(e) || at(e)) throw new
|
|
19650
|
+
if (Te(e) || at(e)) throw new C("InvalidOperator");
|
|
19654
19651
|
} else if (Te(n)) {
|
|
19655
19652
|
if (Te(e)) return jt(n.toNumber(), e.toNumber(), t);
|
|
19656
|
-
if (Be(e) || at(e) || Le(e) || Xi(e)) throw new
|
|
19653
|
+
if (Be(e) || at(e) || Le(e) || Xi(e)) throw new C("InvalidOperator");
|
|
19657
19654
|
} else if (Se(n)) {
|
|
19658
19655
|
if (Xi(e)) return V.isDateTime(e) && Qn(e.zone) ? Qi(n, e, t) : jt(Ss(n), Ss(e), t);
|
|
19659
|
-
if (Be(e)) throw new
|
|
19656
|
+
if (Be(e)) throw new C("InvalidOperator");
|
|
19660
19657
|
if (Le(e)) return m5(n, e, t);
|
|
19661
|
-
if (Te(e) || at(e)) throw new
|
|
19658
|
+
if (Te(e) || at(e)) throw new C("InvalidOperator");
|
|
19662
19659
|
}
|
|
19663
19660
|
switch (t) {
|
|
19664
19661
|
case "<>":
|
|
@@ -19811,8 +19808,8 @@ function y5(n, e, t, r) {
|
|
|
19811
19808
|
}
|
|
19812
19809
|
function Co(n, e, t) {
|
|
19813
19810
|
let r = Sd[n.toLowerCase()];
|
|
19814
|
-
if (r == null) throw new
|
|
19815
|
-
if (e.length < r.minParams || e.length > r.maxParams) throw new
|
|
19811
|
+
if (r == null) throw new C("FunctionNotRecognized");
|
|
19812
|
+
if (e.length < r.minParams || e.length > r.maxParams) throw new C("InvalidParameterCount", { name: n.toUpperCase() });
|
|
19816
19813
|
return r.evaluate(e, t);
|
|
19817
19814
|
}
|
|
19818
19815
|
function w5(n, e) {
|
|
@@ -19829,30 +19826,30 @@ function b5(n) {
|
|
|
19829
19826
|
if (_t(n)) return Et.fromDateJS(n);
|
|
19830
19827
|
if (_e(n)) return Et.fromParts(n.year, n.month, n.day);
|
|
19831
19828
|
if (Le(n)) return n;
|
|
19832
|
-
if (Te(n) || Se(n) && Et.fromParts(n.year, n.month, n.day) === null) throw new
|
|
19829
|
+
if (Te(n) || Se(n) && Et.fromParts(n.year, n.month, n.day) === null) throw new C("CannotCastValue");
|
|
19833
19830
|
if (Be(n)) {
|
|
19834
19831
|
let e = Et.fromReader(n);
|
|
19835
19832
|
if (e !== null && e.isValid) return e;
|
|
19836
19833
|
}
|
|
19837
|
-
throw new
|
|
19834
|
+
throw new C("CannotCastValue");
|
|
19838
19835
|
}
|
|
19839
19836
|
function x5(n, e) {
|
|
19840
19837
|
if (_t(n)) return mi(n, e);
|
|
19841
19838
|
if (_e(n)) return n;
|
|
19842
19839
|
if (Le(n)) return n.toDateTimeLuxon("unknown");
|
|
19843
|
-
if (Te(n)) throw new
|
|
19840
|
+
if (Te(n)) throw new C("CannotCastValue");
|
|
19844
19841
|
if (Se(n)) return n;
|
|
19845
19842
|
if (Be(n)) return yr(n, "unknown");
|
|
19846
|
-
throw new
|
|
19843
|
+
throw new C("CannotCastValue");
|
|
19847
19844
|
}
|
|
19848
19845
|
function v5(n) {
|
|
19849
19846
|
if (_t(n)) return wt.fromDateJS(n);
|
|
19850
19847
|
if (_e(n)) return wt.fromDateTime(n);
|
|
19851
|
-
if (Le(n)) throw new
|
|
19848
|
+
if (Le(n)) throw new C("CannotCastValue");
|
|
19852
19849
|
if (Te(n)) return n;
|
|
19853
19850
|
if (Se(n)) return wt.fromSqlTimeStampOffset(n);
|
|
19854
19851
|
if (Be(n)) return gi(n);
|
|
19855
|
-
throw new
|
|
19852
|
+
throw new C("CannotCastValue");
|
|
19856
19853
|
}
|
|
19857
19854
|
const Sd = { extract: { minParams: 2, maxParams: 2, evaluate: ([n, e]) => {
|
|
19858
19855
|
if (e == null) return null;
|
|
@@ -19894,9 +19891,9 @@ const Sd = { extract: { minParams: 2, maxParams: 2, evaluate: ([n, e]) => {
|
|
|
19894
19891
|
case "YEAR":
|
|
19895
19892
|
return e.year;
|
|
19896
19893
|
case "TIMEZONE_HOUR":
|
|
19897
|
-
throw new
|
|
19894
|
+
throw new C("InvalidFunctionParameters", { function: "EXTRACT" });
|
|
19898
19895
|
case "TIMEZONE_MINUTE":
|
|
19899
|
-
throw new
|
|
19896
|
+
throw new C("InvalidFunctionParameters", { function: "EXTRACT" });
|
|
19900
19897
|
case "DOW":
|
|
19901
19898
|
return e.weekday;
|
|
19902
19899
|
case "DOY":
|
|
@@ -19912,9 +19909,9 @@ const Sd = { extract: { minParams: 2, maxParams: 2, evaluate: ([n, e]) => {
|
|
|
19912
19909
|
case "YEAR":
|
|
19913
19910
|
return e.year;
|
|
19914
19911
|
case "TIMEZONE_HOUR":
|
|
19915
|
-
throw new
|
|
19912
|
+
throw new C("InvalidFunctionParameters", { function: "EXTRACT" });
|
|
19916
19913
|
case "TIMEZONE_MINUTE":
|
|
19917
|
-
throw new
|
|
19914
|
+
throw new C("InvalidFunctionParameters", { function: "EXTRACT" });
|
|
19918
19915
|
case "DOW":
|
|
19919
19916
|
return e.toDateTime("unknown").weekday;
|
|
19920
19917
|
case "DOY":
|
|
@@ -19954,7 +19951,7 @@ const Sd = { extract: { minParams: 2, maxParams: 2, evaluate: ([n, e]) => {
|
|
|
19954
19951
|
case "WEEK":
|
|
19955
19952
|
return e.toDateTime().weekNumber;
|
|
19956
19953
|
}
|
|
19957
|
-
throw new
|
|
19954
|
+
throw new C("InvalidFunctionParameters", { function: "EXTRACT" });
|
|
19958
19955
|
} }, substring: { minParams: 2, maxParams: 3, evaluate: (n) => {
|
|
19959
19956
|
if (n.length === 2) {
|
|
19960
19957
|
let [e, t] = n;
|
|
@@ -19976,7 +19973,7 @@ const Sd = { extract: { minParams: 2, maxParams: 2, evaluate: ([n, e]) => {
|
|
|
19976
19973
|
case "TRAILING":
|
|
19977
19974
|
return r.replaceAll(RegExp(`${s}*$`, "g"), "");
|
|
19978
19975
|
}
|
|
19979
|
-
throw new
|
|
19976
|
+
throw new C("InvalidFunctionParameters", { function: "TRIM" });
|
|
19980
19977
|
} }, abs: { minParams: 1, maxParams: 1, evaluate: (n) => n[0] == null ? null : Math.abs(n[0]) }, ceiling: { minParams: 1, maxParams: 1, evaluate: (n) => n[0] == null ? null : Math.ceil(n[0]) }, floor: { minParams: 1, maxParams: 1, evaluate: (n) => n[0] == null ? null : Math.floor(n[0]) }, log: { minParams: 1, maxParams: 1, evaluate: (n) => n[0] == null ? null : Math.log(n[0]) }, log10: { minParams: 1, maxParams: 1, evaluate: (n) => n[0] == null ? null : Math.log(n[0]) * Math.LOG10E }, sin: { minParams: 1, maxParams: 1, evaluate: (n) => n[0] == null ? null : Math.sin(n[0]) }, cos: { minParams: 1, maxParams: 1, evaluate: (n) => n[0] == null ? null : Math.cos(n[0]) }, tan: { minParams: 1, maxParams: 1, evaluate: (n) => n[0] == null ? null : Math.tan(n[0]) }, asin: { minParams: 1, maxParams: 1, evaluate: (n) => n[0] == null ? null : Math.asin(n[0]) }, acos: { minParams: 1, maxParams: 1, evaluate: (n) => n[0] == null ? null : Math.acos(n[0]) }, atan: { minParams: 1, maxParams: 1, evaluate: (n) => n[0] == null ? null : Math.atan(n[0]) }, sign: { minParams: 1, maxParams: 1, evaluate: (n) => n[0] == null ? null : n[0] > 0 ? 1 : n[0] < 0 ? -1 : 0 }, power: { minParams: 2, maxParams: 2, evaluate: (n) => n[0] == null || n[1] == null ? null : n[0] ** n[1] }, mod: { minParams: 2, maxParams: 2, evaluate: (n) => n[0] == null || n[1] == null ? null : n[0] % n[1] }, round: { minParams: 1, maxParams: 2, evaluate: (n) => {
|
|
19981
19978
|
let e = n[0], t = n.length === 2 ? 10 ** n[1] : 1;
|
|
19982
19979
|
return e == null ? null : Math.round(e * t) / t;
|
|
@@ -19995,22 +19992,22 @@ const Sd = { extract: { minParams: 2, maxParams: 2, evaluate: ([n, e]) => {
|
|
|
19995
19992
|
if (t === null) return null;
|
|
19996
19993
|
switch (r.type) {
|
|
19997
19994
|
case "integer": {
|
|
19998
|
-
if (!Ki(t)) throw new
|
|
19995
|
+
if (!Ki(t)) throw new C("CannotCastValue");
|
|
19999
19996
|
let s = parseInt(t, 10);
|
|
20000
|
-
if (isNaN(s)) throw new
|
|
19997
|
+
if (isNaN(s)) throw new C("CannotCastValue");
|
|
20001
19998
|
return s;
|
|
20002
19999
|
}
|
|
20003
20000
|
case "smallint": {
|
|
20004
|
-
if (!Ki(t)) throw new
|
|
20001
|
+
if (!Ki(t)) throw new C("CannotCastValue");
|
|
20005
20002
|
let s = parseInt(t, 10);
|
|
20006
|
-
if (isNaN(s) || s > 32767 || s < -32767) throw new
|
|
20003
|
+
if (isNaN(s) || s > 32767 || s < -32767) throw new C("CannotCastValue");
|
|
20007
20004
|
return s;
|
|
20008
20005
|
}
|
|
20009
20006
|
case "float":
|
|
20010
20007
|
case "real": {
|
|
20011
|
-
if (!Ki(t)) throw new
|
|
20008
|
+
if (!Ki(t)) throw new C("CannotCastValue");
|
|
20012
20009
|
let s = parseFloat(t);
|
|
20013
|
-
if (isNaN(s)) throw new
|
|
20010
|
+
if (isNaN(s)) throw new C("CannotCastValue");
|
|
20014
20011
|
return s;
|
|
20015
20012
|
}
|
|
20016
20013
|
case "time":
|
|
@@ -20021,11 +20018,11 @@ const Sd = { extract: { minParams: 2, maxParams: 2, evaluate: ([n, e]) => {
|
|
|
20021
20018
|
return x5(t, e);
|
|
20022
20019
|
case "varchar": {
|
|
20023
20020
|
let s = _d(t);
|
|
20024
|
-
if (s.length > r.size) throw new
|
|
20021
|
+
if (s.length > r.size) throw new C("CannotCastValue");
|
|
20025
20022
|
return s;
|
|
20026
20023
|
}
|
|
20027
20024
|
default:
|
|
20028
|
-
throw new
|
|
20025
|
+
throw new C("InvalidDataType");
|
|
20029
20026
|
}
|
|
20030
20027
|
} } };
|
|
20031
20028
|
function Ld(n, e, t, r) {
|
|
@@ -20039,7 +20036,7 @@ function Ld(n, e, t, r) {
|
|
|
20039
20036
|
if (Se(t)) return U5();
|
|
20040
20037
|
if (_e(t)) return F5();
|
|
20041
20038
|
if (Be(t)) return W5(e, t, n);
|
|
20042
|
-
throw new
|
|
20039
|
+
throw new C("InvalidOperator");
|
|
20043
20040
|
}
|
|
20044
20041
|
if (Le(e)) {
|
|
20045
20042
|
if (at(t)) return D5(e, t, n);
|
|
@@ -20049,7 +20046,7 @@ function Ld(n, e, t, r) {
|
|
|
20049
20046
|
if (Se(t)) return G5(e, t, n);
|
|
20050
20047
|
if (_e(t)) return j5(e, t, n);
|
|
20051
20048
|
if (Be(t)) return l7();
|
|
20052
|
-
throw new
|
|
20049
|
+
throw new C("InvalidOperator");
|
|
20053
20050
|
}
|
|
20054
20051
|
if (Te(e)) {
|
|
20055
20052
|
if (at(t)) return O5(e, t, n);
|
|
@@ -20059,7 +20056,7 @@ function Ld(n, e, t, r) {
|
|
|
20059
20056
|
if (Se(t)) return n7();
|
|
20060
20057
|
if (_e(t)) return e7();
|
|
20061
20058
|
if (Be(t)) return u7();
|
|
20062
|
-
throw new
|
|
20059
|
+
throw new C("InvalidOperator");
|
|
20063
20060
|
}
|
|
20064
20061
|
if (ln(e)) {
|
|
20065
20062
|
if (at(t)) return A5(e, t, n);
|
|
@@ -20069,7 +20066,7 @@ function Ld(n, e, t, r) {
|
|
|
20069
20066
|
if (Se(t)) return E5(e, t, n);
|
|
20070
20067
|
if (_e(t)) return N5(e, t, n);
|
|
20071
20068
|
if (Be(t)) return B5();
|
|
20072
|
-
throw new
|
|
20069
|
+
throw new C("InvalidOperator");
|
|
20073
20070
|
}
|
|
20074
20071
|
if (_e(e)) {
|
|
20075
20072
|
if (at(t)) return M5(e, t, n);
|
|
@@ -20079,7 +20076,7 @@ function Ld(n, e, t, r) {
|
|
|
20079
20076
|
if (Se(t)) return a7(e, t, n);
|
|
20080
20077
|
if (_e(t)) return s7(e, t, n);
|
|
20081
20078
|
if (Be(t)) return c7();
|
|
20082
|
-
throw new
|
|
20079
|
+
throw new C("InvalidOperator");
|
|
20083
20080
|
}
|
|
20084
20081
|
if (Se(e)) {
|
|
20085
20082
|
if (at(t)) return P5(e, t, n);
|
|
@@ -20089,7 +20086,7 @@ function Ld(n, e, t, r) {
|
|
|
20089
20086
|
if (Se(t)) return K5(e, t, n);
|
|
20090
20087
|
if (_e(t)) return Q5(e, t, n);
|
|
20091
20088
|
if (Be(t)) return f7();
|
|
20092
|
-
throw new
|
|
20089
|
+
throw new C("InvalidOperator");
|
|
20093
20090
|
}
|
|
20094
20091
|
if (Be(e)) {
|
|
20095
20092
|
if (at(t)) return q5(e, t, n);
|
|
@@ -20099,9 +20096,9 @@ function Ld(n, e, t, r) {
|
|
|
20099
20096
|
if (Se(t)) return g7();
|
|
20100
20097
|
if (_e(t)) return m7();
|
|
20101
20098
|
if (Be(t)) return z5(e, t, n);
|
|
20102
|
-
throw new
|
|
20099
|
+
throw new C("InvalidOperator");
|
|
20103
20100
|
}
|
|
20104
|
-
throw new
|
|
20101
|
+
throw new C("InvalidOperator");
|
|
20105
20102
|
}
|
|
20106
20103
|
function ko(n, e, t) {
|
|
20107
20104
|
switch (t) {
|
|
@@ -20114,7 +20111,7 @@ function ko(n, e, t) {
|
|
|
20114
20111
|
case "/":
|
|
20115
20112
|
return n / e;
|
|
20116
20113
|
}
|
|
20117
|
-
throw new
|
|
20114
|
+
throw new C("InvalidOperator");
|
|
20118
20115
|
}
|
|
20119
20116
|
function N5(n, e, t) {
|
|
20120
20117
|
switch (t) {
|
|
@@ -20123,15 +20120,15 @@ function N5(n, e, t) {
|
|
|
20123
20120
|
case "-":
|
|
20124
20121
|
return n.valueInMilliseconds() - e.toMillis();
|
|
20125
20122
|
}
|
|
20126
|
-
throw new
|
|
20123
|
+
throw new C("InvalidOperator");
|
|
20127
20124
|
}
|
|
20128
20125
|
function _5(n, e, t) {
|
|
20129
20126
|
if (t === "+") return e.plus("milliseconds", n.valueInMilliseconds());
|
|
20130
|
-
throw new
|
|
20127
|
+
throw new C("InvalidOperator");
|
|
20131
20128
|
}
|
|
20132
20129
|
function S5(n, e, t) {
|
|
20133
20130
|
if (t === "+") return e.plus("milliseconds", n.valueInMilliseconds());
|
|
20134
|
-
throw new
|
|
20131
|
+
throw new C("InvalidOperator");
|
|
20135
20132
|
}
|
|
20136
20133
|
function L5(n, e, t) {
|
|
20137
20134
|
switch (t) {
|
|
@@ -20140,11 +20137,11 @@ function L5(n, e, t) {
|
|
|
20140
20137
|
case "-":
|
|
20141
20138
|
return n.plus("milliseconds", -1 * e.valueInMilliseconds());
|
|
20142
20139
|
}
|
|
20143
|
-
throw new
|
|
20140
|
+
throw new C("InvalidOperator");
|
|
20144
20141
|
}
|
|
20145
20142
|
function E5(n, e, t) {
|
|
20146
20143
|
if (t === "+") return e.addMilliseconds(n.valueInMilliseconds());
|
|
20147
|
-
throw new
|
|
20144
|
+
throw new C("InvalidOperator");
|
|
20148
20145
|
}
|
|
20149
20146
|
function T5(n, e, t) {
|
|
20150
20147
|
switch (t) {
|
|
@@ -20157,7 +20154,7 @@ function T5(n, e, t) {
|
|
|
20157
20154
|
case "/":
|
|
20158
20155
|
return $e.createFromMilliseconds(n.valueInMilliseconds() / e.valueInMilliseconds());
|
|
20159
20156
|
}
|
|
20160
|
-
throw new
|
|
20157
|
+
throw new C("InvalidOperator");
|
|
20161
20158
|
}
|
|
20162
20159
|
function A5(n, e, t) {
|
|
20163
20160
|
switch (t) {
|
|
@@ -20170,7 +20167,7 @@ function A5(n, e, t) {
|
|
|
20170
20167
|
case "/":
|
|
20171
20168
|
return $e.createFromMilliseconds(n.valueInMilliseconds() / e);
|
|
20172
20169
|
}
|
|
20173
|
-
throw new
|
|
20170
|
+
throw new C("InvalidOperator");
|
|
20174
20171
|
}
|
|
20175
20172
|
function R5(n, e, t) {
|
|
20176
20173
|
switch (t) {
|
|
@@ -20183,7 +20180,7 @@ function R5(n, e, t) {
|
|
|
20183
20180
|
case "/":
|
|
20184
20181
|
return $e.createFromMilliseconds(n / e.valueInMilliseconds());
|
|
20185
20182
|
}
|
|
20186
|
-
throw new
|
|
20183
|
+
throw new C("InvalidOperator");
|
|
20187
20184
|
}
|
|
20188
20185
|
function I5(n, e, t) {
|
|
20189
20186
|
switch (t) {
|
|
@@ -20192,7 +20189,7 @@ function I5(n, e, t) {
|
|
|
20192
20189
|
case "-":
|
|
20193
20190
|
return n.plus("milliseconds", -1 * e.valueInMilliseconds());
|
|
20194
20191
|
}
|
|
20195
|
-
throw new
|
|
20192
|
+
throw new C("InvalidOperator");
|
|
20196
20193
|
}
|
|
20197
20194
|
function C5(n, e, t) {
|
|
20198
20195
|
switch (t) {
|
|
@@ -20201,7 +20198,7 @@ function C5(n, e, t) {
|
|
|
20201
20198
|
case "-":
|
|
20202
20199
|
return n.minus({ milliseconds: e.valueInMilliseconds() });
|
|
20203
20200
|
}
|
|
20204
|
-
throw new
|
|
20201
|
+
throw new C("InvalidOperator");
|
|
20205
20202
|
}
|
|
20206
20203
|
function k5(n, e, t) {
|
|
20207
20204
|
switch (t) {
|
|
@@ -20210,7 +20207,7 @@ function k5(n, e, t) {
|
|
|
20210
20207
|
case "-":
|
|
20211
20208
|
return n.addMilliseconds(-1 * e.valueInMilliseconds());
|
|
20212
20209
|
}
|
|
20213
|
-
throw new
|
|
20210
|
+
throw new C("InvalidOperator");
|
|
20214
20211
|
}
|
|
20215
20212
|
function M5(n, e, t) {
|
|
20216
20213
|
let r = e * 1e3 * 24 * 60 * 60;
|
|
@@ -20220,7 +20217,7 @@ function M5(n, e, t) {
|
|
|
20220
20217
|
case "-":
|
|
20221
20218
|
return n.minus({ milliseconds: r });
|
|
20222
20219
|
}
|
|
20223
|
-
throw new
|
|
20220
|
+
throw new C("InvalidOperator");
|
|
20224
20221
|
}
|
|
20225
20222
|
function D5(n, e, t) {
|
|
20226
20223
|
let r = e * 1e3 * 24 * 60 * 60;
|
|
@@ -20230,7 +20227,7 @@ function D5(n, e, t) {
|
|
|
20230
20227
|
case "-":
|
|
20231
20228
|
return n.plus("milliseconds", -1 * r);
|
|
20232
20229
|
}
|
|
20233
|
-
throw new
|
|
20230
|
+
throw new C("InvalidOperator");
|
|
20234
20231
|
}
|
|
20235
20232
|
function O5(n, e, t) {
|
|
20236
20233
|
let r = e * 1e3 * 24 * 60 * 60;
|
|
@@ -20240,10 +20237,10 @@ function O5(n, e, t) {
|
|
|
20240
20237
|
case "-":
|
|
20241
20238
|
return n.plus("milliseconds", -1 * r);
|
|
20242
20239
|
}
|
|
20243
|
-
throw new
|
|
20240
|
+
throw new C("InvalidOperator");
|
|
20244
20241
|
}
|
|
20245
20242
|
function F5(n, e, t) {
|
|
20246
|
-
throw new
|
|
20243
|
+
throw new C("InvalidOperator");
|
|
20247
20244
|
}
|
|
20248
20245
|
function P5(n, e, t) {
|
|
20249
20246
|
let r = e * 1e3 * 24 * 60 * 60;
|
|
@@ -20253,117 +20250,117 @@ function P5(n, e, t) {
|
|
|
20253
20250
|
case "-":
|
|
20254
20251
|
return n.addMilliseconds(-1 * r);
|
|
20255
20252
|
}
|
|
20256
|
-
throw new
|
|
20253
|
+
throw new C("InvalidOperator");
|
|
20257
20254
|
}
|
|
20258
20255
|
function U5(n, e, t) {
|
|
20259
|
-
throw new
|
|
20256
|
+
throw new C("InvalidOperator");
|
|
20260
20257
|
}
|
|
20261
20258
|
function V5(n, e, t) {
|
|
20262
|
-
throw new
|
|
20259
|
+
throw new C("InvalidOperator");
|
|
20263
20260
|
}
|
|
20264
20261
|
function $5(n, e, t) {
|
|
20265
|
-
throw new
|
|
20262
|
+
throw new C("InvalidOperator");
|
|
20266
20263
|
}
|
|
20267
20264
|
function W5(n, e, t) {
|
|
20268
20265
|
let r = parseFloat(e);
|
|
20269
|
-
if (isNaN(r)) throw new
|
|
20266
|
+
if (isNaN(r)) throw new C("InvalidOperator");
|
|
20270
20267
|
return ko(n, r, t);
|
|
20271
20268
|
}
|
|
20272
20269
|
function q5(n, e, t) {
|
|
20273
20270
|
let r = parseFloat(n);
|
|
20274
|
-
if (isNaN(r)) throw new
|
|
20271
|
+
if (isNaN(r)) throw new C("InvalidOperator");
|
|
20275
20272
|
return ko(r, e, t);
|
|
20276
20273
|
}
|
|
20277
20274
|
function z5(n, e, t) {
|
|
20278
20275
|
if (t === "+") return n + e;
|
|
20279
|
-
throw new
|
|
20276
|
+
throw new C("InvalidOperator");
|
|
20280
20277
|
}
|
|
20281
20278
|
function B5(n, e, t) {
|
|
20282
|
-
throw new
|
|
20279
|
+
throw new C("InvalidOperator");
|
|
20283
20280
|
}
|
|
20284
20281
|
function H5(n, e, t) {
|
|
20285
|
-
throw new
|
|
20282
|
+
throw new C("InvalidOperator");
|
|
20286
20283
|
}
|
|
20287
20284
|
function j5(n, e, t) {
|
|
20288
20285
|
if (t === "-") return n.toDateTimeLuxon(e.zone).diff(e).as("days");
|
|
20289
|
-
throw new
|
|
20286
|
+
throw new C("InvalidOperator");
|
|
20290
20287
|
}
|
|
20291
20288
|
function G5(n, e, t) {
|
|
20292
20289
|
if (t === "-") return n.toDateTimeLuxon(e.toDateTime().zone).diff(e.toDateTime()).as("days");
|
|
20293
|
-
throw new
|
|
20290
|
+
throw new C("InvalidOperator");
|
|
20294
20291
|
}
|
|
20295
20292
|
function Z5(n, e, t) {
|
|
20296
20293
|
if (t === "-") return n.toDateTimeLuxon("UTC").diff(e.toDateTimeLuxon("UTC")).as("days");
|
|
20297
|
-
throw new
|
|
20294
|
+
throw new C("InvalidOperator");
|
|
20298
20295
|
}
|
|
20299
20296
|
function Y5(n, e, t) {
|
|
20300
|
-
throw new
|
|
20297
|
+
throw new C("InvalidOperator");
|
|
20301
20298
|
}
|
|
20302
20299
|
function J5(n, e, t) {
|
|
20303
|
-
throw new
|
|
20300
|
+
throw new C("InvalidOperator");
|
|
20304
20301
|
}
|
|
20305
20302
|
function X5(n, e, t) {
|
|
20306
20303
|
if (t === "-") return n.toDateTime().diff(e.toDateTimeLuxon(n.toDateTime().zone)).as("days");
|
|
20307
|
-
throw new
|
|
20304
|
+
throw new C("InvalidOperator");
|
|
20308
20305
|
}
|
|
20309
20306
|
function Q5(n, e, t) {
|
|
20310
20307
|
if (t === "-") return n.toDateTime().diff(e).as("days");
|
|
20311
|
-
throw new
|
|
20308
|
+
throw new C("InvalidOperator");
|
|
20312
20309
|
}
|
|
20313
20310
|
function K5(n, e, t) {
|
|
20314
20311
|
if (t === "-") return n.toDateTime().diff(e.toDateTime()).as("days");
|
|
20315
|
-
throw new
|
|
20312
|
+
throw new C("InvalidOperator");
|
|
20316
20313
|
}
|
|
20317
20314
|
function e7(n, e, t) {
|
|
20318
|
-
throw new
|
|
20315
|
+
throw new C("InvalidOperator");
|
|
20319
20316
|
}
|
|
20320
20317
|
function t7(n, e, t) {
|
|
20321
|
-
throw new
|
|
20318
|
+
throw new C("InvalidOperator");
|
|
20322
20319
|
}
|
|
20323
20320
|
function n7(n, e, t) {
|
|
20324
|
-
throw new
|
|
20321
|
+
throw new C("InvalidOperator");
|
|
20325
20322
|
}
|
|
20326
20323
|
function r7(n, e, t) {
|
|
20327
|
-
throw new
|
|
20324
|
+
throw new C("InvalidOperator");
|
|
20328
20325
|
}
|
|
20329
20326
|
function s7(n, e, t) {
|
|
20330
20327
|
if (t === "-") return n.diff(e).as("days");
|
|
20331
|
-
throw new
|
|
20328
|
+
throw new C("InvalidOperator");
|
|
20332
20329
|
}
|
|
20333
20330
|
function i7(n, e, t) {
|
|
20334
20331
|
if (t === "-") return n.diff(e.toDateTimeLuxon(n.zone)).as("days");
|
|
20335
|
-
throw new
|
|
20332
|
+
throw new C("InvalidOperator");
|
|
20336
20333
|
}
|
|
20337
20334
|
function a7(n, e, t) {
|
|
20338
20335
|
if (t === "-") return n.diff(e.toDateTime()).as("days");
|
|
20339
|
-
throw new
|
|
20336
|
+
throw new C("InvalidOperator");
|
|
20340
20337
|
}
|
|
20341
20338
|
function o7(n, e, t) {
|
|
20342
|
-
throw new
|
|
20339
|
+
throw new C("InvalidOperator");
|
|
20343
20340
|
}
|
|
20344
20341
|
function l7(n, e, t) {
|
|
20345
|
-
throw new
|
|
20342
|
+
throw new C("InvalidOperator");
|
|
20346
20343
|
}
|
|
20347
20344
|
function u7(n, e, t) {
|
|
20348
|
-
throw new
|
|
20345
|
+
throw new C("InvalidOperator");
|
|
20349
20346
|
}
|
|
20350
20347
|
function c7(n, e, t) {
|
|
20351
|
-
throw new
|
|
20348
|
+
throw new C("InvalidOperator");
|
|
20352
20349
|
}
|
|
20353
20350
|
function f7(n, e, t) {
|
|
20354
|
-
throw new
|
|
20351
|
+
throw new C("InvalidOperator");
|
|
20355
20352
|
}
|
|
20356
20353
|
function h7(n, e, t) {
|
|
20357
|
-
throw new
|
|
20354
|
+
throw new C("InvalidOperator");
|
|
20358
20355
|
}
|
|
20359
20356
|
function d7(n, e, t) {
|
|
20360
|
-
throw new
|
|
20357
|
+
throw new C("InvalidOperator");
|
|
20361
20358
|
}
|
|
20362
20359
|
function m7(n, e, t) {
|
|
20363
|
-
throw new
|
|
20360
|
+
throw new C("InvalidOperator");
|
|
20364
20361
|
}
|
|
20365
20362
|
function g7(n, e, t) {
|
|
20366
|
-
throw new
|
|
20363
|
+
throw new C("InvalidOperator");
|
|
20367
20364
|
}
|
|
20368
20365
|
function* Ar(n) {
|
|
20369
20366
|
if (n == null) return;
|
|
@@ -21768,10 +21765,10 @@ class N7 {
|
|
|
21768
21765
|
case "OR":
|
|
21769
21766
|
return pe("ternaryOr", this._compileNode(e.left), this._compileNode(e.right));
|
|
21770
21767
|
case "IS":
|
|
21771
|
-
if (e.right.type !== "null") throw new
|
|
21768
|
+
if (e.right.type !== "null") throw new C("UnsupportedIsRhs");
|
|
21772
21769
|
return pe("equalsNull", this._compileNode(e.left));
|
|
21773
21770
|
case "ISNOT":
|
|
21774
|
-
if (e.right.type !== "null") throw new
|
|
21771
|
+
if (e.right.type !== "null") throw new C("UnsupportedIsRhs");
|
|
21775
21772
|
return `!${pe("equalsNull", this._compileNode(e.left))}`;
|
|
21776
21773
|
case "IN":
|
|
21777
21774
|
return this._compileInExpr(e.left, e.right);
|
|
@@ -21803,7 +21800,7 @@ class N7 {
|
|
|
21803
21800
|
case "||":
|
|
21804
21801
|
return pe("calculate", Ae(e.operator), this._compileNode(e.left), this._compileNode(e.right), Gn);
|
|
21805
21802
|
default:
|
|
21806
|
-
throw new
|
|
21803
|
+
throw new C("UnsupportedOperator", { operator: e.operator });
|
|
21807
21804
|
}
|
|
21808
21805
|
case "null":
|
|
21809
21806
|
case "boolean":
|
|
@@ -21839,7 +21836,7 @@ class N7 {
|
|
|
21839
21836
|
case "function":
|
|
21840
21837
|
return pe("evaluateFunction", Ae(e.name), this._compileNode(e.args), Gn);
|
|
21841
21838
|
}
|
|
21842
|
-
throw new
|
|
21839
|
+
throw new C("UnsupportedSyntax", { node: e.type });
|
|
21843
21840
|
}
|
|
21844
21841
|
}
|
|
21845
21842
|
class Mo {
|
|
@@ -21879,7 +21876,7 @@ class Mo {
|
|
|
21879
21876
|
}
|
|
21880
21877
|
tryGetCompiledExecutor() {
|
|
21881
21878
|
if (this._compiledExecutor != null) return this._compiledExecutor;
|
|
21882
|
-
if (
|
|
21879
|
+
if (I("esri-csp-restrictions")) return null;
|
|
21883
21880
|
let e = new N7(this.parseTree, this.fieldsIndex);
|
|
21884
21881
|
return this._compiledExecutor = e.compile(), this._compiledExecutor;
|
|
21885
21882
|
}
|
|
@@ -21970,10 +21967,10 @@ class Mo {
|
|
|
21970
21967
|
case "OR":
|
|
21971
21968
|
return Ad(this._evaluateNode(e.left, t, r, s, a), this._evaluateNode(e.right, t, r, s, a));
|
|
21972
21969
|
case "IS":
|
|
21973
|
-
if (e.right.type !== "null") throw new
|
|
21970
|
+
if (e.right.type !== "null") throw new C("UnsupportedIsRhs");
|
|
21974
21971
|
return this._evaluateNode(e.left, t, r, s, a) === null;
|
|
21975
21972
|
case "ISNOT":
|
|
21976
|
-
if (e.right.type !== "null") throw new
|
|
21973
|
+
if (e.right.type !== "null") throw new C("UnsupportedIsRhs");
|
|
21977
21974
|
return this._evaluateNode(e.left, t, r, s, a) !== null;
|
|
21978
21975
|
case "IN": {
|
|
21979
21976
|
let l = oo(this._evaluateNode(e.right, t, r, s, a));
|
|
@@ -22046,7 +22043,7 @@ class Mo {
|
|
|
22046
22043
|
return Co(e.name, l, this.timeZone);
|
|
22047
22044
|
}
|
|
22048
22045
|
}
|
|
22049
|
-
throw new
|
|
22046
|
+
throw new C("UnsupportedSyntax", { node: e.type });
|
|
22050
22047
|
}
|
|
22051
22048
|
}
|
|
22052
22049
|
function Ed(n) {
|