@arcgis/core 4.34.0-next.107 → 4.34.0-next.109
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/PopupTemplate.js +1 -1
- package/arcade/functions/knowledgegraph.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/00c77f03dd511c6dbff2.js +1 -0
- package/assets/esri/core/workers/chunks/09cdb05dc054fe3523f9.js +1 -0
- package/assets/esri/core/workers/chunks/0d34a4bb52ce17c4275c.js +1 -0
- package/assets/esri/core/workers/chunks/0f934d73ebb90a4a4481.js +1 -0
- package/assets/esri/core/workers/chunks/1c3a1dff1c3719e37a0d.js +1 -0
- package/assets/esri/core/workers/chunks/20ecaa7a007ee398eea7.js +1 -0
- package/assets/esri/core/workers/chunks/25d8e37561d0c8601e52.js +1 -0
- package/assets/esri/core/workers/chunks/25f64be34a92472c9a78.js +1 -0
- package/assets/esri/core/workers/chunks/266f84f11befdc0484ce.js +1 -0
- package/assets/esri/core/workers/chunks/28ce35e349dd79c26741.js +1 -0
- package/assets/esri/core/workers/chunks/2da9bfe51b1969db092d.js +1 -0
- package/assets/esri/core/workers/chunks/2ffb4531294ca7a975cd.js +1 -0
- package/assets/esri/core/workers/chunks/36a855002674616d9b48.js +1 -0
- package/assets/esri/core/workers/chunks/36fd2bb614f32cdaf6c3.js +1 -0
- package/assets/esri/core/workers/chunks/38a055b62f75b0a1b4a6.js +1 -0
- package/assets/esri/core/workers/chunks/38ee69125da60464d5a1.js +1 -0
- package/assets/esri/core/workers/chunks/420b75a64c7c60ef17ae.js +1 -0
- package/assets/esri/core/workers/chunks/{fd410a56286f9b8a5903.js → 498331263094c442d11f.js} +15 -15
- package/assets/esri/core/workers/chunks/{16d66770ef841564ee3f.js → 49c1e69793d49a0fe1fd.js} +1 -1
- package/assets/esri/core/workers/chunks/49fa1c48ea21029b4fd7.js +1 -0
- package/assets/esri/core/workers/chunks/4ef84c9dd600a03cc569.js +1 -0
- package/assets/esri/core/workers/chunks/4fa230dc6e5e87b0dec1.js +1 -0
- package/assets/esri/core/workers/chunks/{1dfca37f95f2b968aa54.js → 509392131ec473d6b988.js} +1 -1
- package/assets/esri/core/workers/chunks/55eb6a0f1e4569a65f2a.js +1 -0
- package/assets/esri/core/workers/chunks/5cbccd233f2deda1a3ba.js +1 -0
- package/assets/esri/core/workers/chunks/5f892d771592c88dee30.js +1 -0
- package/assets/esri/core/workers/chunks/6b12eba0b2d5e226ad73.js +1 -0
- package/assets/esri/core/workers/chunks/{bf9b2949894cc2a1e6b3.js → 6d97aa70848cd9bad680.js} +1 -1
- package/assets/esri/core/workers/chunks/827ecfa9ac52518b99fb.js +1 -0
- package/assets/esri/core/workers/chunks/863f2de7068e2b420c5d.js +1 -0
- package/assets/esri/core/workers/chunks/87a8f839575d58d0ea33.js +1 -0
- package/assets/esri/core/workers/chunks/8862e6ceabc990ca0031.js +1 -0
- package/assets/esri/core/workers/chunks/8978ca7f51d41ffa80cf.js +1 -0
- package/assets/esri/core/workers/chunks/8f05eb08948cd7e37326.js +1 -0
- package/assets/esri/core/workers/chunks/91a51effd465c40ad5d5.js +1 -0
- package/assets/esri/core/workers/chunks/{3116b35a92cc0afd9fd3.js → 91edfa6f93ffba500853.js} +1 -1
- package/assets/esri/core/workers/chunks/92c1ddecb8ddec5e564f.js +1 -0
- package/assets/esri/core/workers/chunks/9bbf1ee424d480b62d48.js +1 -0
- package/assets/esri/core/workers/chunks/9bc4983051aa2855366f.js +1 -0
- package/assets/esri/core/workers/chunks/aa1e6154ef7abee76778.js +1 -0
- package/assets/esri/core/workers/chunks/aa255bdeabe558f1cd9a.js +1 -0
- package/assets/esri/core/workers/chunks/aaed35a6414859233678.js +1 -0
- package/assets/esri/core/workers/chunks/abedf3b4fdf1fef28661.js +1 -0
- package/assets/esri/core/workers/chunks/ac033e23ddf1abf468b2.js +1 -0
- package/assets/esri/core/workers/chunks/af1d7a17f59eb115edb8.js +1 -0
- package/assets/esri/core/workers/chunks/b1e67b68658f3b87e9d5.js +1 -0
- package/assets/esri/core/workers/chunks/b56899501876a183a5ad.js +1 -0
- package/assets/esri/core/workers/chunks/b5dbb20edffd705bbf8d.js +1 -0
- package/assets/esri/core/workers/chunks/{e032f3d2ee19790f8c79.js → bc35ecebd77abdb29f74.js} +1 -1
- package/assets/esri/core/workers/chunks/c8c8cf43fd640d2f5cb1.js +1 -0
- package/assets/esri/core/workers/chunks/c9c1f1c97097c9f4abca.js +1 -0
- package/assets/esri/core/workers/chunks/c9cf90bba5790dade955.js +1 -0
- package/assets/esri/core/workers/chunks/cac13cf937e18303624a.js +1 -0
- package/assets/esri/core/workers/chunks/d19d69d48f88aed1e385.js +1 -0
- package/assets/esri/core/workers/chunks/d2a99b85928a10ca2a36.js +1 -0
- package/assets/esri/core/workers/chunks/d6d7c1e2cb8b0734a3f1.js +1 -0
- package/assets/esri/core/workers/chunks/d7c4c5846a52f0938976.js +1 -0
- package/assets/esri/core/workers/chunks/d9aee7ee4ab75b446ef1.js +1 -0
- package/assets/esri/core/workers/chunks/dcab5886ce90b761247a.js +1 -0
- package/assets/esri/core/workers/chunks/dce632e4f3b944ea9947.js +1 -0
- package/assets/esri/core/workers/chunks/{9027f22a04ac2076ff0e.js → dd37db3f2d1072e250d9.js} +1 -1
- package/assets/esri/core/workers/chunks/ddfaa05725c27b449a3e.js +1 -0
- package/assets/esri/core/workers/chunks/de12fd5cfa0238266f91.js +1 -0
- package/assets/esri/core/workers/chunks/df8279e1baf378faf85f.js +1 -0
- package/assets/esri/core/workers/chunks/dfcc0941ab30bf157175.js +1 -0
- package/assets/esri/core/workers/chunks/e31356965b90e9187b56.js +1 -0
- package/assets/esri/core/workers/chunks/e38ac1bbe8dcfeec5032.js +1 -0
- package/assets/esri/core/workers/chunks/e7acd87ef8de5e38fdc7.js +1 -0
- package/assets/esri/core/workers/chunks/e9b2f4d7026b67054bbc.js +1 -0
- package/assets/esri/core/workers/chunks/eb3a267c83924ff73464.js +1 -0
- package/assets/esri/core/workers/chunks/ef70f450c5875b86c535.js +1 -0
- package/assets/esri/core/workers/chunks/f36dc774b9866b70627e.js +1 -0
- package/assets/esri/core/workers/chunks/{740e6d2831dcb01ee96a.js → fe690be68faf6985d4b5.js} +1 -1
- package/assets/esri/core/workers/chunks/ff515bf0b5485abe8397.js +1 -0
- package/assets/esri/core/workers/chunks/ffac85e7d504a4a026f1.js +1 -0
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_ar.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_bg.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_bs.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_ca.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_cs.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_da.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_de.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_el.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_es.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_et.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_fi.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_fr.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_he.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_hr.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_hu.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_id.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_it.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_ja.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_ko.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_lt.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_lv.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_nl.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_no.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_pl.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_pt-BR.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_pt-PT.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_ro.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_ru.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_sk.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_sl.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_sr.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_sv.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_th.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_tr.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_uk.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_vi.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_zh-CN.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_zh-HK.json +1 -1
- package/assets/esri/views/3d/analysis/VolumeMeasurement/t9n/VolumeMeasurementAnalysis_zh-TW.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ar.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_bg.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_bs.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ca.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_cs.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_da.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_de.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_el.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_es.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_et.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_fi.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_fr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_he.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_hr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_hu.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_id.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_it.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ja.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ko.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_lt.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_lv.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_nl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_no.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_pl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_pt-BR.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_pt-PT.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ro.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_ru.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sk.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sl.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_sv.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_th.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_tr.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_uk.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_vi.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_zh-CN.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_zh-HK.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_zh-TW.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_no.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ar.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_bg.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_bs.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ca.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_cs.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_da.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_de.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_el.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_es.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_et.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_fi.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_fr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_he.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_hr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_hu.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_id.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_it.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ja.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ko.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_lt.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_lv.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_nl.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_no.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_pl.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_pt-BR.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_pt-PT.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ro.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_ru.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_sk.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_sl.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_sr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_sv.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_th.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_tr.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_uk.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_vi.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_zh-CN.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_zh-HK.json +1 -1
- package/assets/esri/widgets/Sketch/t9n/Sketch_zh-TW.json +1 -1
- package/chunks/Envelope.js +1 -1
- package/chunks/Geometry.js +1 -1
- package/chunks/MultiPathImpl.js +1 -1
- package/chunks/Point2D.js +1 -1
- package/chunks/UnitFactory.js +1 -1
- package/chunks/containsOperator.js +1 -1
- package/chunks/densifyOperator.js +1 -1
- package/chunks/differenceOperator.js +1 -1
- package/chunks/intersectsOperator.js +1 -1
- package/chunks/persistableUrlUtils.js +1 -1
- package/config.js +1 -1
- package/core/libs/gl-matrix-2/math/quat.js +1 -1
- package/core/unitUtils.js +1 -1
- package/geometry/Extent.js +1 -1
- package/geometry/Geometry.js +1 -1
- package/geometry/Point.js +1 -1
- package/geometry/SpatialReference.js +1 -1
- package/geometry/ellipsoidUtils.js +1 -1
- package/geometry/operators/support/jsonConverter.js +1 -1
- package/geometry/support/MeshTransform.js +1 -1
- package/geometry/support/axisAngleDegrees.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
- package/geometry/support/meshUtils/rotate.js +1 -1
- package/geometry/support/meshUtils/scale.js +1 -1
- package/geometry/support/meshUtils/vertexSpaceConversion.js +1 -1
- package/geometry/support/plane.js +1 -1
- package/geometry/support/polygonUtils.js +1 -1
- package/interfaces.d.ts +19 -23
- package/kernel.js +1 -1
- package/layers/Layer.js +1 -1
- package/layers/MapNotesLayer.js +1 -1
- package/layers/OrientedImageryLayer.js +1 -1
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/layers/save/groupLayerUtils.js +1 -1
- package/layers/support/DateTimeFieldFormat.js +1 -1
- package/layers/support/FieldFormat.js +1 -1
- package/layers/support/NumberFieldFormat.js +1 -1
- package/layers/support/arcgisLayerUrl.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/serviceCapabilitiesUtils.js +1 -1
- package/package.json +1 -1
- package/popup/ExpressionInfo.js +1 -1
- package/popup/FieldInfo.js +1 -1
- package/popup/content/AttachmentsContent.js +1 -1
- package/popup/content/BarChartMediaInfo.js +1 -1
- package/popup/content/ColumnChartMediaInfo.js +1 -1
- package/popup/content/Content.js +1 -1
- package/popup/content/CustomContent.js +1 -1
- package/popup/content/ExpressionContent.js +1 -1
- package/popup/content/FieldsContent.js +1 -1
- package/popup/content/ImageMediaInfo.js +1 -1
- package/popup/content/LineChartMediaInfo.js +1 -1
- package/popup/content/MediaContent.js +1 -1
- package/popup/content/PieChartMediaInfo.js +1 -1
- package/popup/content/RelationshipContent.js +1 -1
- package/popup/content/TextContent.js +1 -1
- package/popup/content/UtilityNetworkAssociationsContent.js +1 -1
- package/popup/content/mixins/ChartMediaInfo.js +1 -1
- package/popup/content/mixins/MediaInfo.js +1 -1
- package/popup/content.js +1 -1
- package/popup/support/FieldInfoFormat.js +1 -1
- package/rest/geometryService/utils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/support/utils.js +1 -1
- package/time/TimeExtent.js +1 -1
- package/views/2d/engine/Bitmap.js +1 -1
- package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
- package/views/2d/layers/features/processor/TrackStrategy.js +1 -1
- package/views/2d/layers/features/schema/ExceedsLimitCache.js +5 -0
- package/views/2d/layers/features/schema/SourceSchema.js +1 -1
- package/views/3d/environment/CloudsRenderer.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
- package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
- package/views/3d/layers/FlowSubView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/support/pointsOfInterest/Focus.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedBuffer.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/VaoWriter.js +1 -1
- package/views/draw/DrawOperation.js +1 -1
- package/views/layers/FeatureLayerView.js +1 -1
- package/views/support/TextureCompressionWorker.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/webdoc/support/webdocSaveUtils.js +1 -1
- package/widgets/BasemapLayerList.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/createBatchFormTemplate.js +1 -1
- package/widgets/Editor/AddAssociationWorkflow.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/MergeFeaturesWorkflow.js +1 -1
- package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
- package/widgets/Editor/UpdateRecordWorkflowData.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Editor/UpdateWorkflowData.js +1 -1
- package/widgets/Editor/components/FeatureList.js +1 -1
- package/widgets/Editor/support/SketchController.js +1 -1
- package/widgets/Editor/support/errors.js +5 -0
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/Feature/FeatureFields/FeatureFieldsViewModel.js +1 -1
- package/widgets/Feature/FeatureMedia/FeatureMediaViewModel.js +1 -1
- package/widgets/Feature/FeatureMedia.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/Feature/support/featureUtils.js +1 -1
- package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +1 -1
- package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
- package/widgets/FeatureForm/FieldInput.js +1 -1
- package/widgets/FeatureForm/InputBase.js +1 -1
- package/widgets/FeatureForm/RelationshipInput.js +1 -1
- package/widgets/FeatureForm/featureFormUtils.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/FieldColumn.js +1 -1
- package/widgets/FeatureTable/support/FeatureStore.js +1 -1
- package/widgets/LayerList.js +1 -1
- package/widgets/Legend/LegendViewModel.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
- package/widgets/support/FilterCondition.js +1 -1
- package/assets/esri/core/workers/chunks/17103e6542aae53c7301.js +0 -1
- package/assets/esri/core/workers/chunks/188272af9a6470ccfe31.js +0 -1
- package/assets/esri/core/workers/chunks/1d807057327ba90ab770.js +0 -1
- package/assets/esri/core/workers/chunks/2248c3040e2f9a8b5cbc.js +0 -1
- package/assets/esri/core/workers/chunks/2266a8f2c2ec37c19bb4.js +0 -1
- package/assets/esri/core/workers/chunks/25639559336109ff3df1.js +0 -1
- package/assets/esri/core/workers/chunks/2795a2817ebe3298c350.js +0 -1
- package/assets/esri/core/workers/chunks/297b11752f9c251cd7be.js +0 -1
- package/assets/esri/core/workers/chunks/2bbe8277578b033f92d4.js +0 -1
- package/assets/esri/core/workers/chunks/2c72e185b780bbbb1c9f.js +0 -1
- package/assets/esri/core/workers/chunks/2ca8b0c1ca399fd5dc2f.js +0 -1
- package/assets/esri/core/workers/chunks/2f9e79a67eae746d55d3.js +0 -1
- package/assets/esri/core/workers/chunks/3495162f4608f5205d87.js +0 -1
- package/assets/esri/core/workers/chunks/36fe6b8228e622407ec2.js +0 -1
- package/assets/esri/core/workers/chunks/374831c7e3d88bc473b8.js +0 -1
- package/assets/esri/core/workers/chunks/3ffdf73aaecc42448f8a.js +0 -1
- package/assets/esri/core/workers/chunks/4239572007ecfac49dc1.js +0 -1
- package/assets/esri/core/workers/chunks/441ead5bce80f639934e.js +0 -1
- package/assets/esri/core/workers/chunks/4470a3fff217f2bfeec5.js +0 -1
- package/assets/esri/core/workers/chunks/44c3b5a507814103f4b4.js +0 -1
- package/assets/esri/core/workers/chunks/44e40484acb577039c82.js +0 -1
- package/assets/esri/core/workers/chunks/524293f92791c55f6e2c.js +0 -1
- package/assets/esri/core/workers/chunks/5a527a47285a5995cff9.js +0 -1
- package/assets/esri/core/workers/chunks/5e60542f80bdacb6e7af.js +0 -1
- package/assets/esri/core/workers/chunks/616e3d1947eda575a25a.js +0 -1
- package/assets/esri/core/workers/chunks/620a94b54be3ed78350d.js +0 -1
- package/assets/esri/core/workers/chunks/638ea87bae01f516c962.js +0 -1
- package/assets/esri/core/workers/chunks/6a61aa3ee10687c6973d.js +0 -1
- package/assets/esri/core/workers/chunks/75535e2e487ed2616acf.js +0 -1
- package/assets/esri/core/workers/chunks/7698f4f4471b6e1c12ef.js +0 -1
- package/assets/esri/core/workers/chunks/7786fc1b3779df832e0a.js +0 -1
- package/assets/esri/core/workers/chunks/7810f870d71f80ca4f41.js +0 -1
- package/assets/esri/core/workers/chunks/78b35a19332e58c8c279.js +0 -1
- package/assets/esri/core/workers/chunks/7a9a0fcf78a1863c5dea.js +0 -1
- package/assets/esri/core/workers/chunks/80c492f8fdab7698596a.js +0 -1
- package/assets/esri/core/workers/chunks/80d2182dac1a49cfd923.js +0 -1
- package/assets/esri/core/workers/chunks/81501abaabf10e9bef1b.js +0 -1
- package/assets/esri/core/workers/chunks/82f1cd3896401c85df35.js +0 -1
- package/assets/esri/core/workers/chunks/868ee8f429e7caddc045.js +0 -1
- package/assets/esri/core/workers/chunks/883ffaa69b3e6eb158bf.js +0 -1
- package/assets/esri/core/workers/chunks/8cf2669900bb45cb094a.js +0 -1
- package/assets/esri/core/workers/chunks/92c306d02569e7cd9af3.js +0 -1
- package/assets/esri/core/workers/chunks/98dbafa4d45fdf790fff.js +0 -1
- package/assets/esri/core/workers/chunks/9e4f37367d61a2e13053.js +0 -1
- package/assets/esri/core/workers/chunks/9e5e05d6430712b0b1bc.js +0 -1
- package/assets/esri/core/workers/chunks/a16526adc0dbffdc1ffc.js +0 -1
- package/assets/esri/core/workers/chunks/a1c4509a3865139eb570.js +0 -1
- package/assets/esri/core/workers/chunks/acf1e8cde9e641b42fb9.js +0 -1
- package/assets/esri/core/workers/chunks/ae6066ea6cb373dc6db3.js +0 -1
- package/assets/esri/core/workers/chunks/aea8553a2aa54cfd694b.js +0 -1
- package/assets/esri/core/workers/chunks/af0f82f7efa6e983eca5.js +0 -1
- package/assets/esri/core/workers/chunks/b12eef63f24a09dab074.js +0 -1
- package/assets/esri/core/workers/chunks/b92287544ddf73ed7156.js +0 -1
- package/assets/esri/core/workers/chunks/bfc1e8aec7aace3ff30e.js +0 -1
- package/assets/esri/core/workers/chunks/c55c096669677321a227.js +0 -1
- package/assets/esri/core/workers/chunks/cd3b843ffd4010038c74.js +0 -1
- package/assets/esri/core/workers/chunks/d0767001601412f17ada.js +0 -1
- package/assets/esri/core/workers/chunks/d5fa879de92da4441771.js +0 -1
- package/assets/esri/core/workers/chunks/dec0ed841f9ff1ceff43.js +0 -1
- package/assets/esri/core/workers/chunks/e7b96da2a615086d91a7.js +0 -1
- package/assets/esri/core/workers/chunks/ecaa720bc7e9c1901e63.js +0 -1
- package/assets/esri/core/workers/chunks/f06d185e7defc4272ae7.js +0 -1
- package/assets/esri/core/workers/chunks/f09242e97196ad177c10.js +0 -1
- package/assets/esri/core/workers/chunks/f154336b4af011cd0c56.js +0 -1
- package/assets/esri/core/workers/chunks/f2f3ce7a0f3e394d27c4.js +0 -1
- package/assets/esri/core/workers/chunks/f98689562017583f73ee.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4996],{16930:(e,t,r)=>{r.d(t,{A:()=>d});var o,n=r(31635),i=r(65008),s=r(25482),a=r(4718),f=r(83047),_=r(56507),u=r(10107),c=r(64108),l=r(43937),P=r(21325);let p=class extends s.o{static{o=this}static{this.GCS_NAD_1927=null}static{this.WGS84=null}static{this.WebMercator=null}static{this.PlateCarree=null}static fromJSON(e){if(!e)return null;if(102100===e?.wkid)return o.WebMercator;if(4326===e?.wkid)return o.WGS84;const t=new o;return t.read(e),t}constructor(e){super(e),this.latestWkid=null,this.wkid=null,this.wkt=null,this.wkt2=null,this.vcsWkid=null,this.latestVcsWkid=null,this.imageCoordinateSystem=null}normalizeCtorArgs(e){if(e&&"object"==typeof e)return e;const t="string"==typeof e?"wkt":"wkid";return{[t]:e}}get isWGS84(){return(0,P.oT)(this)}get isWebMercator(){return(0,P.K8)(this)}get isGeographic(){return(0,P.EA)(this)}get isWrappable(){return(0,P.d9)(this)}get metersPerUnit(){return(0,f.GA)(this)}get unit(){return(0,f.Ij)(this)||(this.isGeographic?"degrees":null)}writeWkt(e,t){this.wkid||(t.wkt=e)}clone(){if(this===o.WGS84)return new o(P.KK);if(this===o.WebMercator)return new o(P.ch);const e=new o;return null!=this.wkid?(e.wkid=this.wkid,null!=this.latestWkid&&(e.latestWkid=this.latestWkid),null!=this.vcsWkid&&(e.vcsWkid=this.vcsWkid),null!=this.latestVcsWkid&&(e.latestVcsWkid=this.latestVcsWkid)):(null!=this.wkt&&(e.wkt=this.wkt),null!=this.wkt2&&(e.wkt2=this.wkt2)),this.imageCoordinateSystem&&(e.imageCoordinateSystem=(0,a.o8)(this.imageCoordinateSystem)),e}equals(e){if(null==e)return!1;if(this.imageCoordinateSystem||e.imageCoordinateSystem){if(null==this.imageCoordinateSystem||null==e.imageCoordinateSystem)return!1;const{id:t,referenceServiceName:r}=e.imageCoordinateSystem,{geodataXform:o}=e.imageCoordinateSystem,n=this.imageCoordinateSystem;return null==t||o?JSON.stringify(n)===JSON.stringify(e.imageCoordinateSystem):r?n.id===t&&n.referenceServiceName===r:n.id===t}return(0,P.aI)(this,e)}toJSON(e){return this.write(void 0,e)}};(0,n.Cg)([(0,u.MZ)({readOnly:!0})],p.prototype,"isWGS84",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],p.prototype,"isWebMercator",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],p.prototype,"isGeographic",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],p.prototype,"isWrappable",null),(0,n.Cg)([(0,u.MZ)({type:_.jz,json:{write:!0}})],p.prototype,"latestWkid",void 0),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],p.prototype,"metersPerUnit",null),(0,n.Cg)([(0,u.MZ)({readOnly:!0})],p.prototype,"unit",null),(0,n.Cg)([(0,u.MZ)({type:_.jz,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkt}}}}}}})],p.prototype,"wkid",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkid}}}}}}})],p.prototype,"wkt",void 0),(0,n.Cg)([(0,l.K)("wkt"),(0,l.K)("web-scene","wkt")],p.prototype,"writeWkt",null),(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!1}})],p.prototype,"wkt2",void 0),(0,n.Cg)([(0,u.MZ)({type:_.jz,json:{write:!0}})],p.prototype,"vcsWkid",void 0),(0,n.Cg)([(0,u.MZ)({type:_.jz,json:{write:!0}})],p.prototype,"latestVcsWkid",void 0),(0,n.Cg)([(0,u.MZ)()],p.prototype,"imageCoordinateSystem",void 0),p=o=(0,n.Cg)([(0,c.$)("esri.geometry.SpatialReference")],p);const d=p;p.prototype.toJSON.isDefaultToJSON=!0,p.GCS_NAD_1927=i.A.freeze(new p({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]]'})),p.WGS84=i.A.freeze(new p(P.KK)),p.WebMercator=i.A.freeze(new p(P.ch)),p.PlateCarree=i.A.freeze(new p(P.tQ))},21325:(e,t,r)=>{r.d(t,{B3:()=>d,EA:()=>p,K8:()=>g,KK:()=>R,KQ:()=>O,Mc:()=>a,Vp:()=>l,YX:()=>P,ZL:()=>y,aI:()=>c,ch:()=>N,d9:()=>A,fn:()=>U,jp:()=>S,oT:()=>E,q8:()=>M,r1:()=>h,tQ:()=>G,tl:()=>m,x1:()=>T});var o=r(799),n=(r(83290),r(22530));const i=[102100,102113,3857,3785,900913],s=[4326,...i,104905,104971,104903],a=[-20037508.342788905,20037508.342788905],f=[-20037508.342787,20037508.342787],_={wkTemplate:'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',valid:a,origin:f,dx:1e-5},u={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:a,origin:f,dx:1e-5},102100:_,3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:a,origin:f,dx:1e-5},3857:_,4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},900913:_,104903:{wkTemplate:'GEOGCS["GCS_Moon_2000",DATUM["D_Moon_2000",SPHEROID["Moon_2000_IAU_IAG",1737400,0,AUTHORITY["ESRI","107903"]],AUTHORITY["ESRI","106903"]],PRIMEM["Reference_Meridian",0,AUTHORITY["ESRI","108900"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["ESRI","104903"]]',valid:[-180,180],origin:[-180,90],dx:1e-5}};function c(e,t){if(e===t)return!0;if(null==e||null==t)return!1;const r=e.wkid,o=t.wkid;if(null!=r||null!=o){if(r===o)return!0;if(g(e)&&g(t))return!0;const n=e.latestWkid;if(null!=n&&o===n)return!0;const i=t.latestWkid;return null!=i&&r===i}let n,i;return e.wkt2&&t.wkt2?(n=e.wkt2,i=t.wkt2):e.wkt&&t.wkt&&(n=e.wkt,i=t.wkt),!(!n||!i)&&n.toUpperCase()===i.toUpperCase()}function l(e){const t=e?.wkid;return null!=t&&t>=2e3&&u[t]||null}function P(e){if(!e)return;const{wkid:t,vcsWkid:r}=e;if(t)return r?JSON.stringify({wkid:t,vcsWkid:r}):String(t);const o=e.wkt||e.wkt2;return JSON.stringify(o?r?{wkt:o,vcsWkid:r}:{wkt:o}:{})}function p(e){if(!U(e))return!1;const{wkid:t}=e;if(t)return null==n.A[t];const r=e.wkt2||e.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function d(e){return!(M(e)||O(e))}function E(e){return 4326===e?.wkid}function S(e){return/^\s*(?:GEOD|GEODETIC|GEOG|GEOGRAPHIC|PROJ|PROJECTED|VERT|VERTICAL|ENG|ENGINEERING|PARAMETRIC|TIME|DERIVEDPROJ|COMPOUND|BOUND)CRS/i.test(e)}function T(e){return 4490===e?.wkid}function g(e){const t=e?.wkid;return null!=t&&t>=2e3&&i.includes(t)}function h(e){return 32662===e?.wkid}function m(e){return 104971===e||104905===e}function M(e){return m(e?.wkid)}function y(e){return 104903===e}function O(e){return y(e?.wkid)}function A(e){const t=e?.wkid;return null!=t&&t>=2e3&&s.includes(t)}function U(e){if(null==e)return!1;const t=e.wkid;return null!=t&&t>=2e3||null!=e.wkt2||null!=e.wkt}const R={wkid:4326,wkt:(0,o.HC)(u[4326].wkTemplate,{Central_Meridian:"0.0"})},N={wkid:102100,latestWkid:3857},G={wkid:32662}},22530:(e,t,r)=>{let o;r.d(t,{A:()=>n});const n={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5e4,15e4],units:["Meter","Foot","Foot_US","Foot_Clarke","Yard_Clarke","Link_Clarke","Yard_Sears","Foot_Sears","Chain_Sears","Chain_Benoit_1895_B","Yard_Indian","Yard_Indian_1937","Foot_Gold_Coast","Chain","Chain_Sears_1922_Truncated","50_Kilometers","150_Kilometers"],2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5041:0,5042:0,5048:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,9793:0,9794:0,9869:0,9874:0,9875:0,9880:0,9895:0,9943:0,9945:0,9947:0,9967:0,9972:0,9977:0,10160:0,10183:0,10188:0,10194:0,10199:0,10207:0,10212:0,10217:0,10222:0,10227:0,10235:0,10240:0,10250:0,10254:0,10270:0,10275:0,10280:0,10306:0,10329:0,10471:0,10477:0,10481:2,10516:2,10592:0,10594:0,10596:0,10598:0,10601:0,10603:0,10626:0,10632:0,10641:0,10665:0,10674:0,10744:0,10745:0,10759:0,10773:0,10802:0,10820:0,20002:0,20042:0,20050:1,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22239:0,22240:0,22332:0,22337:0,22338:0,22391:0,22392:0,22639:0,22700:0,22739:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25e3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,65061:2,65062:2,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102731:0,102732:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2,103897:1,103978:2,103979:0,103980:2,103981:0};for(o=2e3;o<=2045;o++)n[o]=0;for(o=2056;o<=2065;o++)n[o]=0;for(o=2067;o<=2135;o++)n[o]=0;for(o=2137;o<=2154;o++)n[o]=0;for(o=2161;o<=2170;o++)n[o]=0;for(o=2172;o<=2193;o++)n[o]=0;for(o=2195;o<=2198;o++)n[o]=0;for(o=2200;o<=2203;o++)n[o]=0;for(o=2205;o<=2217;o++)n[o]=0;for(o=2222;o<=2224;o++)n[o]=1;for(o=2225;o<=2250;o++)n[o]=2;for(o=2251;o<=2253;o++)n[o]=1;for(o=2257;o<=2264;o++)n[o]=2;for(o=2274;o<=2279;o++)n[o]=2;for(o=2280;o<=2282;o++)n[o]=1;for(o=2283;o<=2289;o++)n[o]=2;for(o=2290;o<=2292;o++)n[o]=0;for(o=2308;o<=2313;o++)n[o]=0;for(o=2315;o<=2491;o++)n[o]=0;for(o=2494;o<=2866;o++)n[o]=0;for(o=2867;o<=2869;o++)n[o]=1;for(o=2870;o<=2888;o++)n[o]=2;for(o=2891;o<=2895;o++)n[o]=2;for(o=2896;o<=2898;o++)n[o]=1;for(o=2902;o<=2908;o++)n[o]=2;for(o=2915;o<=2920;o++)n[o]=2;for(o=2921;o<=2923;o++)n[o]=1;for(o=2924;o<=2930;o++)n[o]=2;for(o=2931;o<=2962;o++)n[o]=0;for(o=2964;o<=2968;o++)n[o]=2;for(o=2969;o<=2973;o++)n[o]=0;for(o=2975;o<=2991;o++)n[o]=0;for(o=2995;o<=3051;o++)n[o]=0;for(o=3054;o<=3079;o++)n[o]=0;for(o=3081;o<=3088;o++)n[o]=0;for(o=3092;o<=3101;o++)n[o]=0;for(o=3106;o<=3138;o++)n[o]=0;for(o=3146;o<=3151;o++)n[o]=0;for(o=3153;o<=3166;o++)n[o]=0;for(o=3168;o<=3172;o++)n[o]=0;for(o=3174;o<=3203;o++)n[o]=0;for(o=3294;o<=3358;o++)n[o]=0;for(o=3367;o<=3403;o++)n[o]=0;for(o=3408;o<=3416;o++)n[o]=0;for(o=3417;o<=3438;o++)n[o]=2;for(o=3441;o<=3446;o++)n[o]=2;for(o=3447;o<=3450;o++)n[o]=0;for(o=3451;o<=3459;o++)n[o]=2;for(o=3460;o<=3478;o++)n[o]=0;for(o=3554;o<=3559;o++)n[o]=0;for(o=3560;o<=3570;o++)n[o]=2;for(o=3571;o<=3581;o++)n[o]=0;for(o=3594;o<=3597;o++)n[o]=0;for(o=3601;o<=3604;o++)n[o]=0;for(o=3637;o<=3639;o++)n[o]=0;for(o=3665;o<=3667;o++)n[o]=0;for(o=3693;o<=3695;o++)n[o]=0;for(o=3701;o<=3727;o++)n[o]=0;for(o=3728;o<=3739;o++)n[o]=2;for(o=3740;o<=3751;o++)n[o]=0;for(o=3753;o<=3760;o++)n[o]=2;for(o=3761;o<=3773;o++)n[o]=0;for(o=3775;o<=3777;o++)n[o]=0;for(o=3779;o<=3781;o++)n[o]=0;for(o=3783;o<=3785;o++)n[o]=0;for(o=3788;o<=3791;o++)n[o]=0;for(o=3797;o<=3802;o++)n[o]=0;for(o=3814;o<=3816;o++)n[o]=0;for(o=3825;o<=3829;o++)n[o]=0;for(o=3832;o<=3841;o++)n[o]=0;for(o=3844;o<=3852;o++)n[o]=0;for(o=3873;o<=3885;o++)n[o]=0;for(o=3890;o<=3893;o++)n[o]=0;for(o=3907;o<=3912;o++)n[o]=0;for(o=3942;o<=3950;o++)n[o]=0;for(o=3968;o<=3970;o++)n[o]=0;for(o=3973;o<=3976;o++)n[o]=0;for(o=3986;o<=3989;o++)n[o]=0;for(o=3994;o<=3997;o++)n[o]=0;for(o=4048;o<=4051;o++)n[o]=0;for(o=4056;o<=4063;o++)n[o]=0;for(o=4093;o<=4096;o++)n[o]=0;for(o=4390;o<=4398;o++)n[o]=0;for(o=4399;o<=4413;o++)n[o]=2;for(o=4418;o<=4433;o++)n[o]=2;for(o=4455;o<=4457;o++)n[o]=2;for(o=4484;o<=4489;o++)n[o]=0;for(o=4491;o<=4554;o++)n[o]=0;for(o=4568;o<=4589;o++)n[o]=0;for(o=4652;o<=4656;o++)n[o]=0;for(o=4766;o<=4800;o++)n[o]=0;for(o=5014;o<=5016;o++)n[o]=0;for(o=5069;o<=5072;o++)n[o]=0;for(o=5105;o<=5130;o++)n[o]=0;for(o=5167;o<=5188;o++)n[o]=0;for(o=5253;o<=5259;o++)n[o]=0;for(o=5269;o<=5275;o++)n[o]=0;for(o=5292;o<=5311;o++)n[o]=0;for(o=5329;o<=5331;o++)n[o]=0;for(o=5343;o<=5349;o++)n[o]=0;for(o=5355;o<=5357;o++)n[o]=0;for(o=5387;o<=5389;o++)n[o]=0;for(o=5459;o<=5463;o++)n[o]=0;for(o=5479;o<=5482;o++)n[o]=0;for(o=5518;o<=5520;o++)n[o]=0;for(o=5530;o<=5539;o++)n[o]=0;for(o=5550;o<=5552;o++)n[o]=0;for(o=5562;o<=5583;o++)n[o]=0;for(o=5623;o<=5625;o++)n[o]=2;for(o=5631;o<=5639;o++)n[o]=0;for(o=5649;o<=5653;o++)n[o]=0;for(o=5663;o<=5680;o++)n[o]=0;for(o=5682;o<=5685;o++)n[o]=0;for(o=5875;o<=5877;o++)n[o]=0;for(o=5896;o<=5899;o++)n[o]=0;for(o=5921;o<=5940;o++)n[o]=0;for(o=6050;o<=6125;o++)n[o]=0;for(o=6244;o<=6275;o++)n[o]=0;for(o=6328;o<=6348;o++)n[o]=0;for(o=6350;o<=6356;o++)n[o]=0;for(o=6366;o<=6372;o++)n[o]=0;for(o=6381;o<=6387;o++)n[o]=0;for(o=6393;o<=6404;o++)n[o]=0;for(o=6480;o<=6483;o++)n[o]=0;for(o=6511;o<=6514;o++)n[o]=0;for(o=6579;o<=6581;o++)n[o]=0;for(o=6619;o<=6624;o++)n[o]=0;for(o=6625;o<=6627;o++)n[o]=2;for(o=6628;o<=6632;o++)n[o]=0;for(o=6634;o<=6637;o++)n[o]=0;for(o=6669;o<=6692;o++)n[o]=0;for(o=6707;o<=6709;o++)n[o]=0;for(o=6720;o<=6723;o++)n[o]=0;for(o=6732;o<=6738;o++)n[o]=0;for(o=6931;o<=6933;o++)n[o]=0;for(o=6956;o<=6959;o++)n[o]=0;for(o=7005;o<=7007;o++)n[o]=0;for(o=7057;o<=7070;o++)n[o]=2;for(o=7074;o<=7082;o++)n[o]=0;for(o=7109;o<=7118;o++)n[o]=0;for(o=7119;o<=7127;o++)n[o]=1;for(o=7374;o<=7376;o++)n[o]=0;for(o=7528;o<=7586;o++)n[o]=0;for(o=7587;o<=7645;o++)n[o]=2;for(o=7692;o<=7696;o++)n[o]=0;for(o=7755;o<=7787;o++)n[o]=0;for(o=7791;o<=7795;o++)n[o]=0;for(o=7799;o<=7801;o++)n[o]=0;for(o=7803;o<=7805;o++)n[o]=0;for(o=7825;o<=7831;o++)n[o]=0;for(o=7845;o<=7859;o++)n[o]=0;for(o=8013;o<=8032;o++)n[o]=0;for(o=8065;o<=8068;o++)n[o]=1;for(o=8518;o<=8529;o++)n[o]=2;for(o=8533;o<=8536;o++)n[o]=2;for(o=8538;o<=8540;o++)n[o]=2;for(o=8677;o<=8679;o++)n[o]=0;for(o=8836;o<=8840;o++)n[o]=0;for(o=8857;o<=8859;o++)n[o]=0;for(o=8908;o<=8910;o++)n[o]=0;for(o=9154;o<=9159;o++)n[o]=0;for(o=9205;o<=9218;o++)n[o]=0;for(o=9271;o<=9273;o++)n[o]=0;for(o=9295;o<=9297;o++)n[o]=0;for(o=9356;o<=9360;o++)n[o]=0;for(o=9404;o<=9407;o++)n[o]=0;for(o=9476;o<=9482;o++)n[o]=0;for(o=9487;o<=9494;o++)n[o]=0;for(o=9697;o<=9699;o++)n[o]=0;for(o=9821;o<=9865;o++)n[o]=0;for(o=10285;o<=10291;o++)n[o]=0;for(o=10314;o<=10317;o++)n[o]=0;for(o=10448;o<=10465;o++)n[o]=0;for(o=10726;o<=10729;o++)n[o]=0;for(o=10731;o<=10733;o++)n[o]=0;for(o=11114;o<=11118;o++)n[o]=0;for(o=20004;o<=20032;o++)n[o]=0;for(o=20047;o<=20049;o++)n[o]=0;for(o=20062;o<=20092;o++)n[o]=0;for(o=20135;o<=20138;o++)n[o]=0;for(o=20248;o<=20258;o++)n[o]=0;for(o=20348;o<=20358;o++)n[o]=0;for(o=20436;o<=20440;o++)n[o]=0;for(o=20822;o<=20824;o++)n[o]=0;for(o=20904;o<=20932;o++)n[o]=0;for(o=20934;o<=20936;o++)n[o]=0;for(o=21004;o<=21032;o++)n[o]=0;for(o=21035;o<=21037;o++)n[o]=0;for(o=21095;o<=21097;o++)n[o]=0;for(o=21148;o<=21150;o++)n[o]=0;for(o=21207;o<=21264;o++)n[o]=0;for(o=21307;o<=21364;o++)n[o]=0;for(o=21413;o<=21423;o++)n[o]=0;for(o=21453;o<=21463;o++)n[o]=0;for(o=21473;o<=21483;o++)n[o]=0;for(o=21780;o<=21782;o++)n[o]=0;for(o=21891;o<=21894;o++)n[o]=0;for(o=21896;o<=21899;o++)n[o]=0;for(o=22171;o<=22177;o++)n[o]=0;for(o=22181;o<=22187;o++)n[o]=0;for(o=22191;o<=22197;o++)n[o]=0;for(o=22207;o<=22222;o++)n[o]=0;for(o=22229;o<=22232;o++)n[o]=0;for(o=22234;o<=22236;o++)n[o]=0;for(o=22243;o<=22250;o++)n[o]=0;for(o=22262;o<=22265;o++)n[o]=0;for(o=22307;o<=22322;o++)n[o]=0;for(o=22348;o<=22357;o++)n[o]=0;for(o=22407;o<=22422;o++)n[o]=0;for(o=22462;o<=22465;o++)n[o]=0;for(o=22521;o<=22525;o++)n[o]=0;for(o=22607;o<=22622;o++)n[o]=0;for(o=22641;o<=22646;o++)n[o]=0;for(o=22648;o<=22657;o++)n[o]=0;for(o=22707;o<=22722;o++)n[o]=0;for(o=22762;o<=22765;o++)n[o]=0;for(o=22807;o<=22822;o++)n[o]=0;for(o=22991;o<=22994;o++)n[o]=0;for(o=23028;o<=23038;o++)n[o]=0;for(o=23301;o<=23333;o++)n[o]=2;for(o=23830;o<=23853;o++)n[o]=0;for(o=23866;o<=23872;o++)n[o]=0;for(o=23877;o<=23884;o++)n[o]=0;for(o=23886;o<=23894;o++)n[o]=0;for(o=23946;o<=23948;o++)n[o]=0;for(o=24311;o<=24313;o++)n[o]=0;for(o=24342;o<=24347;o++)n[o]=0;for(o=24370;o<=24374;o++)n[o]=10;for(o=24375;o<=24381;o++)n[o]=0;for(o=24718;o<=24721;o++)n[o]=0;for(o=24817;o<=24821;o++)n[o]=0;for(o=24877;o<=24882;o++)n[o]=0;for(o=24891;o<=24893;o++)n[o]=0;for(o=25391;o<=25395;o++)n[o]=0;for(o=25828;o<=25838;o++)n[o]=0;for(o=26191;o<=26195;o++)n[o]=0;for(o=26391;o<=26393;o++)n[o]=0;for(o=26701;o<=26722;o++)n[o]=0;for(o=26729;o<=26799;o++)n[o]=2;for(o=26801;o<=26803;o++)n[o]=2;for(o=26811;o<=26813;o++)n[o]=2;for(o=26847;o<=26870;o++)n[o]=2;for(o=26891;o<=26899;o++)n[o]=0;for(o=26901;o<=26923;o++)n[o]=0;for(o=26929;o<=26946;o++)n[o]=0;for(o=26948;o<=26998;o++)n[o]=0;for(o=27037;o<=27040;o++)n[o]=0;for(o=27205;o<=27232;o++)n[o]=0;for(o=27258;o<=27260;o++)n[o]=0;for(o=27391;o<=27398;o++)n[o]=0;for(o=27561;o<=27564;o++)n[o]=0;for(o=27571;o<=27574;o++)n[o]=0;for(o=27581;o<=27584;o++)n[o]=0;for(o=27591;o<=27594;o++)n[o]=0;for(o=27700;o<=27707;o++)n[o]=0;for(o=28191;o<=28193;o++)n[o]=0;for(o=28348;o<=28358;o++)n[o]=0;for(o=28402;o<=28432;o++)n[o]=0;for(o=28462;o<=28492;o++)n[o]=0;for(o=29118;o<=29122;o++)n[o]=0;for(o=29168;o<=29172;o++)n[o]=0;for(o=29177;o<=29185;o++)n[o]=0;for(o=29187;o<=29195;o++)n[o]=0;for(o=29900;o<=29903;o++)n[o]=0;for(o=30161;o<=30179;o++)n[o]=0;for(o=30491;o<=30494;o++)n[o]=0;for(o=30729;o<=30732;o++)n[o]=0;for(o=31251;o<=31259;o++)n[o]=0;for(o=31265;o<=31268;o++)n[o]=0;for(o=31275;o<=31279;o++)n[o]=0;for(o=31281;o<=31297;o++)n[o]=0;for(o=31461;o<=31469;o++)n[o]=0;for(o=31491;o<=31495;o++)n[o]=0;for(o=31917;o<=31922;o++)n[o]=0;for(o=31965;o<=32e3;o++)n[o]=0;for(o=32001;o<=32003;o++)n[o]=2;for(o=32005;o<=32031;o++)n[o]=2;for(o=32033;o<=32060;o++)n[o]=2;for(o=32064;o<=32067;o++)n[o]=2;for(o=32074;o<=32077;o++)n[o]=2;for(o=32081;o<=32086;o++)n[o]=0;for(o=32107;o<=32130;o++)n[o]=0;for(o=32133;o<=32159;o++)n[o]=0;for(o=32164;o<=32167;o++)n[o]=2;for(o=32180;o<=32199;o++)n[o]=0;for(o=32201;o<=32260;o++)n[o]=0;for(o=32301;o<=32360;o++)n[o]=0;for(o=32401;o<=32460;o++)n[o]=0;for(o=32501;o<=32560;o++)n[o]=0;for(o=32601;o<=32662;o++)n[o]=0;for(o=32664;o<=32667;o++)n[o]=2;for(o=32701;o<=32761;o++)n[o]=0;for(o=53001;o<=53004;o++)n[o]=0;for(o=53008;o<=53019;o++)n[o]=0;for(o=53021;o<=53032;o++)n[o]=0;for(o=53034;o<=53037;o++)n[o]=0;for(o=53042;o<=53046;o++)n[o]=0;for(o=53074;o<=53080;o++)n[o]=0;for(o=54001;o<=54004;o++)n[o]=0;for(o=54008;o<=54019;o++)n[o]=0;for(o=54021;o<=54032;o++)n[o]=0;for(o=54034;o<=54037;o++)n[o]=0;for(o=54042;o<=54046;o++)n[o]=0;for(o=54048;o<=54053;o++)n[o]=0;for(o=54074;o<=54080;o++)n[o]=0;for(o=54090;o<=54096;o++)n[o]=0;for(o=54098;o<=54101;o++)n[o]=0;for(o=65161;o<=65163;o++)n[o]=0;for(o=102001;o<=102040;o++)n[o]=0;for(o=102042;o<=102063;o++)n[o]=0;for(o=102065;o<=102067;o++)n[o]=0;for(o=102070;o<=102117;o++)n[o]=0;for(o=102122;o<=102216;o++)n[o]=0;for(o=102221;o<=102377;o++)n[o]=0;for(o=102382;o<=102388;o++)n[o]=0;for(o=102389;o<=102398;o++)n[o]=2;for(o=102399;o<=102444;o++)n[o]=0;for(o=102445;o<=102447;o++)n[o]=2;for(o=102448;o<=102458;o++)n[o]=0;for(o=102459;o<=102468;o++)n[o]=2;for(o=102469;o<=102499;o++)n[o]=0;for(o=102500;o<=102519;o++)n[o]=1;for(o=102520;o<=102524;o++)n[o]=0;for(o=102525;o<=102529;o++)n[o]=2;for(o=102530;o<=102588;o++)n[o]=0;for(o=102590;o<=102598;o++)n[o]=0;for(o=102601;o<=102603;o++)n[o]=0;for(o=102605;o<=102628;o++)n[o]=0;for(o=102629;o<=102646;o++)n[o]=2;for(o=102648;o<=102700;o++)n[o]=2;for(o=102701;o<=102703;o++)n[o]=0;for(o=102707;o<=102730;o++)n[o]=2;for(o=102733;o<=102758;o++)n[o]=2;for(o=102767;o<=102900;o++)n[o]=0;for(o=102901;o<=102933;o++)n[o]=2;for(o=102934;o<=102950;o++)n[o]=13;for(o=102951;o<=102963;o++)n[o]=0;for(o=102965;o<=102969;o++)n[o]=0;for(o=102971;o<=102973;o++)n[o]=0;for(o=102975;o<=102989;o++)n[o]=0;for(o=102990;o<=102992;o++)n[o]=1;for(o=102997;o<=103002;o++)n[o]=0;for(o=103003;o<=103008;o++)n[o]=2;for(o=103009;o<=103011;o++)n[o]=0;for(o=103012;o<=103014;o++)n[o]=2;for(o=103019;o<=103021;o++)n[o]=0;for(o=103022;o<=103024;o++)n[o]=2;for(o=103029;o<=103031;o++)n[o]=0;for(o=103032;o<=103034;o++)n[o]=2;for(o=103065;o<=103068;o++)n[o]=0;for(o=103074;o<=103076;o++)n[o]=0;for(o=103077;o<=103079;o++)n[o]=1;for(o=103080;o<=103082;o++)n[o]=0;for(o=103083;o<=103085;o++)n[o]=2;for(o=103090;o<=103093;o++)n[o]=0;for(o=103097;o<=103099;o++)n[o]=0;for(o=103100;o<=103102;o++)n[o]=2;for(o=103107;o<=103109;o++)n[o]=0;for(o=103110;o<=103112;o++)n[o]=2;for(o=103113;o<=103116;o++)n[o]=0;for(o=103117;o<=103120;o++)n[o]=2;for(o=103153;o<=103157;o++)n[o]=0;for(o=103158;o<=103162;o++)n[o]=2;for(o=103163;o<=103165;o++)n[o]=0;for(o=103166;o<=103168;o++)n[o]=1;for(o=103169;o<=103171;o++)n[o]=2;for(o=103186;o<=103188;o++)n[o]=0;for(o=103189;o<=103191;o++)n[o]=2;for(o=103192;o<=103195;o++)n[o]=0;for(o=103196;o<=103199;o++)n[o]=2;for(o=103200;o<=103224;o++)n[o]=0;for(o=103225;o<=103227;o++)n[o]=1;for(o=103232;o<=103237;o++)n[o]=0;for(o=103238;o<=103243;o++)n[o]=2;for(o=103244;o<=103246;o++)n[o]=0;for(o=103247;o<=103249;o++)n[o]=2;for(o=103254;o<=103256;o++)n[o]=0;for(o=103257;o<=103259;o++)n[o]=2;for(o=103264;o<=103266;o++)n[o]=0;for(o=103267;o<=103269;o++)n[o]=2;for(o=103300;o<=103375;o++)n[o]=0;for(o=103381;o<=103383;o++)n[o]=0;for(o=103384;o<=103386;o++)n[o]=1;for(o=103387;o<=103389;o++)n[o]=0;for(o=103390;o<=103392;o++)n[o]=2;for(o=103397;o<=103399;o++)n[o]=0;for(o=103400;o<=103471;o++)n[o]=2;for(o=103476;o<=103478;o++)n[o]=0;for(o=103479;o<=103481;o++)n[o]=2;for(o=103486;o<=103488;o++)n[o]=0;for(o=103489;o<=103491;o++)n[o]=2;for(o=103492;o<=103495;o++)n[o]=0;for(o=103496;o<=103499;o++)n[o]=2;for(o=103528;o<=103543;o++)n[o]=0;for(o=103544;o<=103548;o++)n[o]=2;for(o=103549;o<=103551;o++)n[o]=0;for(o=103552;o<=103554;o++)n[o]=1;for(o=103555;o<=103557;o++)n[o]=2;for(o=103558;o<=103560;o++)n[o]=0;for(o=103571;o<=103573;o++)n[o]=0;for(o=103574;o<=103576;o++)n[o]=2;for(o=103577;o<=103580;o++)n[o]=0;for(o=103581;o<=103583;o++)n[o]=2;for(o=103595;o<=103694;o++)n[o]=0;for(o=103696;o<=103699;o++)n[o]=0;for(o=103700;o<=103793;o++)n[o]=2;for(o=103794;o<=103890;o++)n[o]=0;for(o=103891;o<=103896;o++)n[o]=2;for(o=103900;o<=103971;o++)n[o]=2;for(o=103972;o<=103977;o++)n[o]=0;for(o=112e3;o<=112101;o++)n[o]=0},34727:(e,t,r)=>{r.d(t,{$8:()=>y,Cc:()=>s,Hx:()=>d,Io:()=>m,KJ:()=>_,OS:()=>U,Sp:()=>l,XM:()=>u,YN:()=>c,ZH:()=>p,b6:()=>M,cU:()=>n,gg:()=>P,hs:()=>a,kU:()=>f,or:()=>A,pF:()=>N,pq:()=>R,qE:()=>i});const o=new Float32Array(1);function n(e){--e;for(let t=1;t<32;t<<=1)e|=e>>t;return e+1}function i(e,t,r){return Math.min(Math.max(e,t),r)}function s(e,t,r){return e+(t-e)*r}function a(e,t,r,o,n){return s(o,n,(e-t)/(r-t))}function f(e){return e*Math.PI/180}function _(e){return 180*e/Math.PI}function u(e){return Math.acos(i(e,-1,1))}function c(e){return Math.asin(i(e,-1,1))}function l(e,t,r=1e-6){return e===t||!(!Number.isFinite(e)||!Number.isFinite(t))&&(e>t?e-t:t-e)<=r}function P(e,t,r=1e-6){return!l(e,t,r)&&e>t}function p(e,t,r=1e-6){return!l(e,t,r)&&e<t}function d(e,t,r=1e-6){return l(e,t,r)||e>t}const E=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function S(e){return E.setFloat64(0,e),E.getBigInt64(0)}const T=1000000n,g=h(1);function h(e){const t=S(e=Math.abs(e)),r=function(e){return E.setBigInt64(0,e),E.getFloat64(0)}(t<=T?T:t-T);return Math.abs(e-r)}function m(e,t,r=g){if(e===t)return!0;if(!Number.isFinite(e)||!Number.isFinite(t))return!1;if(null!=r&&h(Math.min(Math.abs(e),Math.abs(t)))<r)return Math.abs(e-t)<=r;const o=S(e),n=S(t);return o<0==n<0&&!((o<n?n-o:o-n)>T)}function M(e,t,r=1e-6){if(e===t)return!0;if(!Number.isFinite(e)||!Number.isFinite(t))return!1;const o=Math.abs(e-t),n=Math.abs(e),i=Math.abs(t);if(0===e||0===t||n<1e-12&&i<1e-12){if(o>.01*r)return!1}else if(o/(n+i)>r)return!1;return!0}function y(e){return O(Math.max(-R,Math.min(e,R)))}function O(e){return o[0]=e,o[0]}function A(e){const t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],r=e[3]*e[3]+e[4]*e[4]+e[5]*e[5],o=e[6]*e[6]+e[7]*e[7]+e[8]*e[8];return!(l(t,1)&&l(r,1)&&l(o,1))}function U(e,t){return(e%t+t)%t}const R=O(34028234663852886e22);function N(e,t,r){if(void 0===r||0===+r)return Math[e](t);if(t=+t,r=+r,isNaN(t)||"number"!=typeof r||r%1!=0)return NaN;let o=t.toString().split("e");return o=(t=Math[e](+(o[0]+"e"+(o[1]?+o[1]-r:-r)))).toString().split("e"),+(o[0]+"e"+(o[1]?+o[1]+r:r))}},43937:(e,t,r)=>{r.d(t,{K:()=>n});var o=r(10107);function n(e,t,r){let n,i;return void 0===t?(i=e,n=[void 0]):"string"!=typeof t?(i=e,n=[void 0],r=t):(i=t,n=Array.isArray(e)?e:[e]),(e,t)=>{const s=e.constructor.prototype;for(const a of n){const n=(0,o.rM)(e,a,i);n.write&&"object"==typeof n.write||(n.write={}),r&&(n.write.target=r),n.write.writer=s[t]}}}},66552:(e,t,r)=>{r.d(t,{J:()=>n,O:()=>s});var o=r(93637);class n{constructor(e,t={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=t,this.apiValues=[],this.jsonValues=[],this._apiToJSON=function(e){const t={};for(const r in e)t[e[r]]=r;return t}(e),this.apiValues=i(this._apiToJSON),this.jsonValues=i(this._jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,t,r)=>{const n=this.toJSON(e);void 0!==n&&(0,o.sM)(r,n,t)},this.write.isJSONMapWriter=!0}toJSON(e){if(null==e)return null;if(this._apiToJSON.hasOwnProperty(e)){const t=this._apiToJSON[e];return this._options.useNumericKeys?+t:t}return this._options.ignoreUnknown?null:e}fromJSON(e){return null!=e&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}}function i(e){const t=[];for(const r in e)t.push(r);return t.sort(),t}function s(){return function(e,t){return new n(e,{ignoreUnknown:!0,...t})}}},73941:(e,t,r)=>{r.d(t,{FY:()=>a,LJ:()=>f,Ro:()=>_,fv:()=>s,jA:()=>p,tO:()=>l,xP:()=>d,y7:()=>P});var o=r(79258),n=r(21325);function i(e){return{wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`}}const s=i(o.$O),a=i(o.sH),f=i(o.Sw),_={wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${o.$O.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`},u=a.wkt.toUpperCase(),c=f.wkt.toUpperCase();function l(e){if(null!=e&&(0,n.fn)(e)){const t=e.wkid,r=e.wkt2??e.wkt;if((0,n.tl)(t))return o.sH;const i=r?.toUpperCase();if(r&&i===u)return o.sH;if((0,n.ZL)(t)||i&&i===c)return o.Sw}return o.$O}function P(e){return(0,n.tl)(e)?o.sH:(0,n.ZL)(e)?o.Sw:o.$O}function p(e){return(0,n.aI)(e,s)}function d(e){return p(e)||(0,n.aI)(e,a)||(0,n.aI)(e,f)}Math.cos(Math.PI/16/16)},79258:(e,t,r)=>{r.d(t,{$O:()=>n,Sw:()=>s,sH:()=>i});class o{constructor(e,t,r,o,n,i){this.semiMajorAxis=e,this.flattening=t,this.outerAtmosphereRimWidth=r,this.atmosphereHeight=o,this.scaleHeight=n;const s=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*s,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=i||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}}const n=new o(6378137,1/298.257223563,3e5,1e5,.085,.006694379990137799),i=new o(3396190,1/169.8944472236118,23e4,6e4,.111),s=new o(1737400,0,0,0,0)},83047:(e,t,r)=>{r.d(t,{Ao:()=>w,B5:()=>F,G9:()=>N,GA:()=>k,Ij:()=>b,KX:()=>C,LA:()=>R,PQ:()=>O,Sk:()=>L,UW:()=>A,b$:()=>H,dk:()=>x,dy:()=>f,k1:()=>G,mq:()=>B,oU:()=>y,vl:()=>U,x1:()=>Y,yD:()=>P}),r(44208);var o=r(66552),n=r(73941),i=r(79258),s=r(21325),a=r(22530);const f=39.37,_=i.$O.radius*Math.PI/200,u=/(?:LENGTH)?UNIT\[([^\]]+)]]$/i,c=a.A,l=/UNIT\[([^\]]+)]/i,P=new Set([4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104025,104026,104139,104140]),p=(0,o.O)()({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"}),d=e=>e*e,E=e=>e*e*e,S={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},meters:{inBaseUnits:1},feet:{inBaseUnits:.3048},"us-feet":{inBaseUnits:.3048006096012192},"clarke-feet":{inBaseUnits:.3047972654},fathoms:{inBaseUnits:1.8288},"nautical-miles":{inBaseUnits:1852},"german-meters":{inBaseUnits:1.0000135965},"us-chains":{inBaseUnits:20.11684023368047},"us-links":{inBaseUnits:.2011684023368047},"us-miles":{inBaseUnits:1609.347218694438},kilometers:{inBaseUnits:1e3},"clarke-yards":{inBaseUnits:.9143917962},"clarke-chains":{inBaseUnits:20.1166195164},"clarke-links":{inBaseUnits:.201166195164},"sears-yards":{inBaseUnits:.9143984146160287},"sears-feet":{inBaseUnits:.3047994715386762},"sears-chains":{inBaseUnits:20.11676512155263},"sears-links":{inBaseUnits:.2011676512155263},"benoit-1895-a-yards":{inBaseUnits:.9143992},"benoit-1895-a-feet":{inBaseUnits:.3047997333333333},"benoit-1895-a-chains":{inBaseUnits:20.1167824},"benoit-1895-a-links":{inBaseUnits:.201167824},"benoit-1895-b-yards":{inBaseUnits:.9143992042898124},"benoit-1895-b-feet":{inBaseUnits:.3047997347632708},"benoit-1895-b-chains":{inBaseUnits:20.11678249437587},"benoit-1895-b-links":{inBaseUnits:.2011678249437587},"1865-feet":{inBaseUnits:.3048008333333334},"indian-feet":{inBaseUnits:.3047995102481469},"indian-1937-feet":{inBaseUnits:.30479841},"indian-1962-feet":{inBaseUnits:.3047996},"indian-1975-feet":{inBaseUnits:.3047995},"indian-yards":{inBaseUnits:.9143985307444408},"indian-1937-yards":{inBaseUnits:.91439523},"indian-1962-yards":{inBaseUnits:.9143988},"indian-1975-yards":{inBaseUnits:.9143985},miles:{inBaseUnits:1609.344},"statute-miles":{inBaseUnits:1609.344},"gold-coast-feet":{inBaseUnits:.3047997101815088},"british-1936-feet":{inBaseUnits:.3048007491},yards:{inBaseUnits:.9144},chains:{inBaseUnits:20.1168},links:{inBaseUnits:.201168},"sears-1922-truncated-yards":{inBaseUnits:.914398},"sears-1922-truncated-feet":{inBaseUnits:.3047993333333334},"sears-1922-truncated-chains":{inBaseUnits:20.116756},"sears-1922-truncated-links":{inBaseUnits:.20116756},"us-yards":{inBaseUnits:.9144018288036576},decimeters:{inBaseUnits:.1},inches:{inBaseUnits:.0254},"us-inches":{inBaseUnits:.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:.8466683600033867},points:{inBaseUnits:.0003527777777777778},micrometers:{inBaseUnits:1e-6},nanometers:{inBaseUnits:1e-9},"50-kilometers":{inBaseUnits:5e4},"150-kilometers":{inBaseUnits:15e4}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:d(.001)},"square-centimeters":{inBaseUnits:d(.01)},"square-decimeters":{inBaseUnits:d(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:d(1e3)},"square-inches":{inBaseUnits:d(.0254)},"square-feet":{inBaseUnits:d(.3048)},"square-yards":{inBaseUnits:d(.9144)},"square-miles":{inBaseUnits:d(1609.344)},"square-nautical-miles":{inBaseUnits:d(1852)},"square-us-feet":{inBaseUnits:d(1200/3937)},acres:{inBaseUnits:.0015625*d(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*E(.001)},"cubic-centimeters":{inBaseUnits:1e3*E(.01)},"cubic-decimeters":{inBaseUnits:1e3*E(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*E(1e3)},"cubic-inches":{inBaseUnits:1e3*E(.0254)},"cubic-feet":{inBaseUnits:1e3*E(.3048)},"cubic-yards":{inBaseUnits:1e3*E(.9144)},"cubic-miles":{inBaseUnits:1e3*E(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},T=(()=>{const e={};for(const t in S)for(const r in S[t].units)e[r]=t;return e})(),g=["metric","imperial","inches","feet","yards","miles","nautical-miles","us-feet","millimeters","centimeters","decimeters","meters","kilometers"],h=new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]);function m(e){const t=T[e];if(!t)throw new Error("unknown type");return t}function M(e,t=null){return t=t||m(e),S[t].baseUnit===e}function y(e,t,r){if(t===r)return e;const o=m(t);if(o!==m(r))throw new Error("incompatible units");const n=M(t,o)?e:function(e,t,r){return e*S[r].units[t].inBaseUnits}(e,t,o);return M(r,o)?n:function(e,t,r){return e/S[r].units[t].inBaseUnits}(n,r,o)}function O(e,t,r,o=!1){if(!o&&(0,s.EA)(t))throw new Error("Unable to convert from an angular unit to a linear unit.");const n=b(t);return n!==r&&(e=n?y(e,n,r):y(e*=k(t),"meters",r)),e}function A(e,t,r,o=!1){if(!o&&(0,s.EA)(r))throw new Error("Unable to convert from a linear unit to an angular unit.");const n=b(r);return t!==n&&(e=n?y(e,t,n):y(e,t,"meters")/k(r)),e}function U(e,t,r){return y(e,t,"meters")/(r*Math.PI/180)}function R(e){return p.fromJSON(e.toLowerCase())||null}function N(e){if(null!=e&&!(0,s.B3)(e))return 1;const t=k(e);return t>1e5?1:t}function G(e){return k(e)>=(0,n.tO)(e).metersPerDegree?"meters":b(e)}function k(e,t=i.$O.metersPerDegree){return w(e,!0)??t}function w(e,t=!1){const r=e?.wkid??null,o=e?.wkt2??e?.wkt??null;let n=null;if(r){if((0,s.tl)(r))return i.sH.metersPerDegree;if((0,s.ZL)(r))return i.Sw.metersPerDegree;n=c.values[c[r]],!n&&t&&P.has(r)&&(n=_)}else o&&(Y(o)?n=I(u.exec(o),n):W(o)&&(n=I(l.exec(o),n)));return n}function C(e){return(0,s.EA)(e)?1:k(e)}function I(e,t){return e?.[1]?D(e[1]):t}function D(e){return parseFloat(e.split(",")[1])}function b(e){const t=e?.wkid??null,r=e?.wkt2??e?.wkt??null;let o=null;if(t)o=c.units[c[t]];else if(r){const e=Y(r)?u:W(r)?l:null;if(e){const t=e.exec(r);t?.[1]&&(o=function(e){const t=/[\\"']([^\\"']+)/.exec(e);let r=t?.[1];if(!r||!R(r)){const t=D(e);r=null;const o=c.values;for(let e=0;e<o.length;++e)if(Math.abs(t-o[e])<j){r=c.units[e];break}}return r}(t[1]))}}return null!=o?R(o):null}function B(e){const t=G(e);return null!=t&&g.includes(t)?t:null}function F(e){const t=b(e);return null==t?null:h.get(t)}function W(e){return/^GEOCCS/i.test(e)}function Y(e){return/^\s*(?:PROJCS|PROJCRS|PROJECTEDCRS)/i.test(e)}const j=1e-7,x=(0,o.O)()({esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"}),L=(0,o.O)()({esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"}),H=(0,o.O)()({esriDUDecimalDegrees:"degrees",esriDURadians:"radians"})},83290:(e,t,r)=>{r.d(t,{P:()=>d,a:()=>u,g:()=>G,h:()=>_,i:()=>a,j:()=>h,l:()=>f,p:()=>B});var o=r(2741),n=r(44208);let i,s=null;function a(){return!!s}function f(){return i||(i=r.e(6187).then(r.bind(r,46187)).then(({default:e})=>e({locateFile:e=>(0,o.s)(`esri/geometry/support/${e}`)})).then(e=>{w(e)}),i)}const _={geogToProj(e,t,r){s.ensureCache.prepare();const o=D(r),n=r===o,i=s.ensureFloat64(o),a=s._pe_geog_to_proj(s.getPointer(e),t,i);return a&&b(r,t,i,n),a},projGeog(e,t,r,o){switch(o){case u.PE_TRANSFORM_P_TO_G:return _.projToGeog(e,t,r);case u.PE_TRANSFORM_G_TO_P:return _.geogToProj(e,t,r)}return 0},projToGeog:(e,t,r)=>_.projToGeogCenter(e,t,r,0),projToGeogCenter(e,t,r,o){s.ensureCache.prepare();const n=D(r),i=r===n,a=s.ensureFloat64(n),f=s._pe_proj_to_geog_center(s.getPointer(e),t,a,o);return f&&b(r,t,a,i),f}};class u{static init(){u.PE_BUFFER_MAX=s.PeDefs.prototype.PE_BUFFER_MAX,u.PE_NAME_MAX=s.PeDefs.prototype.PE_NAME_MAX,u.PE_MGRS_MAX=s.PeDefs.prototype.PE_MGRS_MAX,u.PE_USNG_MAX=s.PeDefs.prototype.PE_USNG_MAX,u.PE_DD_MAX=s.PeDefs.prototype.PE_DD_MAX,u.PE_DDM_MAX=s.PeDefs.prototype.PE_DDM_MAX,u.PE_DMS_MAX=s.PeDefs.prototype.PE_DMS_MAX,u.PE_UTM_MAX=s.PeDefs.prototype.PE_UTM_MAX,u.PE_PARM_MAX=s.PeDefs.prototype.PE_PARM_MAX,u.PE_TYPE_NONE=s.PeDefs.prototype.PE_TYPE_NONE,u.PE_TYPE_GEOGCS=s.PeDefs.prototype.PE_TYPE_GEOGCS,u.PE_TYPE_PROJCS=s.PeDefs.prototype.PE_TYPE_PROJCS,u.PE_TYPE_GEOGTRAN=s.PeDefs.prototype.PE_TYPE_GEOGTRAN,u.PE_TYPE_COORDSYS=s.PeDefs.prototype.PE_TYPE_COORDSYS,u.PE_TYPE_UNIT=s.PeDefs.prototype.PE_TYPE_UNIT,u.PE_TYPE_LINUNIT=s.PeDefs.prototype.PE_TYPE_LINUNIT,u.PE_STR_OPTS_NONE=s.PeDefs.prototype.PE_STR_OPTS_NONE,u.PE_STR_AUTH_NONE=s.PeDefs.prototype.PE_STR_AUTH_NONE,u.PE_STR_AUTH_TOP=s.PeDefs.prototype.PE_STR_AUTH_TOP,u.PE_STR_NAME_CANON=s.PeDefs.prototype.PE_STR_NAME_CANON,u.PE_STR_FMT_WKT=s.PeDefs.prototype.PE_STR_FMT_WKT,u.PE_STR_FMT_WKT2=s.PeDefs.prototype.PE_STR_FMT_WKT2,u.PE_PARM_X0=s.PeDefs.prototype.PE_PARM_X0,u.PE_PARM_ND=s.PeDefs.prototype.PE_PARM_ND,u.PE_TRANSFORM_1_TO_2=s.PeDefs.prototype.PE_TRANSFORM_1_TO_2,u.PE_TRANSFORM_2_TO_1=s.PeDefs.prototype.PE_TRANSFORM_2_TO_1,u.PE_TRANSFORM_P_TO_G=s.PeDefs.prototype.PE_TRANSFORM_P_TO_G,u.PE_TRANSFORM_G_TO_P=s.PeDefs.prototype.PE_TRANSFORM_G_TO_P,u.PE_HORIZON_RECT=s.PeDefs.prototype.PE_HORIZON_RECT,u.PE_HORIZON_POLY=s.PeDefs.prototype.PE_HORIZON_POLY,u.PE_HORIZON_LINE=s.PeDefs.prototype.PE_HORIZON_LINE,u.PE_HORIZON_DELTA=s.PeDefs.prototype.PE_HORIZON_DELTA}}let c=null;const l={},P={},p=e=>{const t=e.getType();switch(t){case u.PE_TYPE_GEOGCS:e=s.castObject(e,s.PeGeogcs);break;case u.PE_TYPE_PROJCS:e=s.castObject(e,s.PeProjcs);break;case u.PE_TYPE_GEOGTRAN:e=s.castObject(e,s.PeGeogtran);break;default:t&u.PE_TYPE_UNIT&&(e=s.castObject(e,s.PeUnit))}return e},d={initialize(){s.PeFactory.prototype.initialize(null)},coordsys:e=>d.factoryByType(u.PE_TYPE_COORDSYS,e),factoryByType(e,t){let r=null,o=l[e];if(o||(o={},l[e]=o),o.hasOwnProperty(String(t))&&(r=o[t],s.compare(r,s.NULL)&&(r=null)),!r){const n=s.PeFactory.prototype.factoryByType(e,t);s.compare(n,s.NULL)||(r=p(n),o[t]=r)}return r},fromString(e,t){let r=null,o=P[e];if(o||(o={},P[e]=o),o.hasOwnProperty(t)&&(r=o[t],s.compare(r,s.NULL)&&(r=null)),!r){const n=s.PeFactory.prototype.fromString(e,t);s.compare(n,s.NULL)||(r=p(n),o[t]=r)}return r},geogcs:e=>d.factoryByType(u.PE_TYPE_GEOGCS,e),geogtran:e=>d.factoryByType(u.PE_TYPE_GEOGTRAN,e),getCode:e=>s.PeFactory.prototype.getCode(e),projcs:e=>d.factoryByType(u.PE_TYPE_PROJCS,e),unit:e=>d.factoryByType(u.PE_TYPE_UNIT,e)};let E,S=null;const T={PE_GTLIST_OPTS_COMMON:0,init(){T.PE_GTLIST_OPTS_COMMON=s.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,E=s._pe_getPeGTlistExtendedEntrySize()},getGTlist(e,t,r,o,n,i){let a=null;const f=new s.PeInteger(i);try{const _=s.PeGTlistExtended.prototype.getGTlist(e,t,r,o,n,f);if((i=f.val)&&(a=[_],i>1)){const e=s.getPointer(_);for(let t=1;t<i;t++)a.push(s.wrapPointer(e+E*t,s.PeGTlistExtendedEntry))}}finally{s.destroy(f)}return a}},g={destroy(e){if(e?.length){for(const t of e)C(t),t.getEntries().forEach(e=>{C(e);const t=e.getGeogtran();C(t),t.getParameters().forEach(C),[t.getGeogcs1(),t.getGeogcs2()].forEach(e=>{C(e);const t=e.getDatum();C(t),C(t.getSpheroid()),C(e.getPrimem()),C(e.getUnit())})});s.PeGTlistExtendedEntry.prototype.Delete(e[0])}}},h={geogToGeog(e,t,r,o,n){s.ensureCache.prepare();const i=D(r),a=r===i,f=s.ensureFloat64(i);let _=0;o&&(_=s.ensureFloat64(o));const u=s._pe_geog_to_geog(s.getPointer(e),t,f,_,n);return u&&b(r,t,f,a),u}},m={geodesicCoordinate(e,t,r,o,n,i,a,f){s.PeLineType.prototype.geodesic_coordinate(e,t,r,o,n,i,a,f)},geodeticCoordinate(e,t,r,o,n,i,a,f,_){s.PeLineType.prototype.geodetic_coordinate(e,t,r,o,n,i,a,f,_)},geodeticDistance(e,t,r,o,n,i,a,f,_,u){s.PeLineType.prototype.geodetic_distance(e,t,r,o,n,i,a,f,_,u)},greatEllipticDistance(e,t,r,o,n,i,a,f,_){s.PeLineType.prototype.great_elliptic_distance(e,t,r,o,n,i,a,f,_)}},M={phiToEta:(e,t)=>s.PeMath.prototype.phi_to_eta(e,t),etaToPhi:(e,t)=>s.PeMath.prototype.eta_to_phi(e,t),phiToPhig:(e,t)=>s.PeMath.prototype.phi_to_phig(e,t),q:(e,t,r)=>s.PeMath.prototype.q(e,t,r),q90:(e,t)=>s.PeMath.prototype.q90(e,t)},y=(e,t,r,o,n,i)=>{let a,f;switch(s.ensureCache.prepare(),e){case"dd":a=s._pe_geog_to_dd,f=u.PE_DD_MAX;break;case"ddm":a=s._pe_geog_to_ddm,f=u.PE_DDM_MAX;break;case"dms":a=s._pe_geog_to_dms,f=u.PE_DMS_MAX}let _=0;t&&(_=s.getPointer(t));const c=D(o),l=s.ensureFloat64(c),P=I(r,f),p=a(_,r,l,n,s.ensureInt32(P));if(p)for(let e=0;e<r;e++)i[e]=s.UTF8ToString(P[e]);return p},O=(e,t,r,o,n)=>{let i;switch(s.ensureCache.prepare(),e){case"dd":i=s._pe_dd_to_geog;break;case"ddm":i=s._pe_ddm_to_geog;break;case"dms":i=s._pe_dms_to_geog}let a=0;t&&(a=s.getPointer(t));const f=o.map(e=>s.ensureString(e)),_=s.ensureInt32(f),u=s.ensureFloat64(new Array(2*r)),c=i(a,r,_,u);return c&&b(n,r,u),c},A={geogToDms:(e,t,r,o,n)=>y("dms",e,t,r,o,n),dmsToGeog:(e,t,r,o)=>O("dms",e,t,r,o),geogToDdm:(e,t,r,o,n)=>y("ddm",e,t,r,o,n),ddmToGeog:(e,t,r,o)=>O("ddm",e,t,r,o),geogToDd:(e,t,r,o,n)=>y("dd",e,t,r,o,n),ddToGeog:(e,t,r,o)=>O("dd",e,t,r,o)};class U{static init(){U.PE_MGRS_STYLE_NEW=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,U.PE_MGRS_STYLE_OLD=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,U.PE_MGRS_STYLE_AUTO=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,U.PE_MGRS_180_ZONE_1_PLUS=s.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,U.PE_MGRS_ADD_SPACES=s.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES}static geogToMgrsExtended(e,t,r,o,n,i,a){s.ensureCache.prepare();let f=0;e&&(f=s.getPointer(e));const _=D(r),c=s.ensureFloat64(_),l=I(t,u.PE_MGRS_MAX),P=s.ensureInt32(l),p=s._pe_geog_to_mgrs_extended(f,t,c,o,n,i,P);if(p)for(let e=0;e<t;e++)a[e]=s.UTF8ToString(l[e]);return p}static mgrsToGeogExtended(e,t,r,o,n){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=r.map(e=>s.ensureString(e)),f=s.ensureInt32(a),_=s.ensureFloat64(new Array(2*t)),u=s._pe_mgrs_to_geog_extended(i,t,f,o,_);return u&&b(n,t,_),u}}const R={geogToUsng(e,t,r,o,n,i,a){s.ensureCache.prepare();let f=0;e&&(f=s.getPointer(e));const _=D(r),c=s.ensureFloat64(_),l=I(t,u.PE_MGRS_MAX),P=s.ensureInt32(l),p=s._pe_geog_to_usng(f,t,c,o,n,i,P);if(p)for(let e=0;e<t;e++)a[e]=s.UTF8ToString(l[e]);return p},usngToGeog(e,t,r,o){s.ensureCache.prepare();let n=0;e&&(n=s.getPointer(e));const i=r.map(e=>s.ensureString(e)),a=s.ensureInt32(i),f=s.ensureFloat64(new Array(2*t)),_=s._pe_usng_to_geog(n,t,a,f);return _&&b(o,t,f),_}};class N{static init(){N.PE_UTM_OPTS_NONE=s.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,N.PE_UTM_OPTS_ADD_SPACES=s.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,N.PE_UTM_OPTS_NS=s.PeNotationUtm.prototype.PE_UTM_OPTS_NS}static geogToUtm(e,t,r,o,n){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=D(r),f=s.ensureFloat64(a),_=I(t,u.PE_UTM_MAX),c=s.ensureInt32(_),l=s._pe_geog_to_utm(i,t,f,o,c);if(l)for(let e=0;e<t;e++)n[e]=s.UTF8ToString(_[e]);return l}static utmToGeog(e,t,r,o,n){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=r.map(e=>s.ensureString(e)),f=s.ensureInt32(a),_=s.ensureFloat64(new Array(2*t)),u=s._pe_utm_to_geog(i,t,f,o,_);return u&&b(n,t,_),u}}class G{static{this.cache=new Map}static init(){G.PE_PCSINFO_OPTION_NONE=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,G.PE_PCSINFO_OPTION_DOMAIN=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,G.PE_POLE_OUTSIDE_BOUNDARY=s.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,G.PE_POLE_POINT=s.PePCSInfo.prototype.PE_POLE_POINT}static generate(e,t=G.PE_PCSINFO_OPTION_DOMAIN){let r=null,o=null;return G.cache.has(e)&&(o=G.cache.get(e),o[t]&&(r=o[t])),r||(r=s.PePCSInfo.prototype.generate(e,t),o||(o=[],G.cache.set(e,o)),o[t]=r),r}}const k={versionString:()=>s.PeVersion.prototype.version_string()};function w(e){function t(e,t,r){e[t]=r(e[t])}s=e,u.init(),T.init(),U.init(),N.init(),G.init(),c=class extends s.PeDouble{constructor(e=NaN){super(e)}destroy(){s.destroy(this)}[Symbol.dispose](){this.destroy()}},S=class extends s.PeGCSExtent{destroy(){s.destroy(this)}[Symbol.dispose](){this.destroy()}};const r=[s.PeAngunit,s.PeDatum,s.PeGeogcs,s.PeGeogtran,s.PeObject,s.PeParameter,s.PePrimem,s.PeProjcs,s.PeSpheroid,s.PeUnit];for(const e of r)t(e.prototype,"getName",e=>function(){return e.call(this,new Array(u.PE_NAME_MAX))});for(const e of[s.PeGeogtran,s.PeProjcs])t(e.prototype,"getParameters",e=>function(){const t=new Array(u.PE_PARM_MAX);let r=e.call(this);for(let e=0;e<t.length;e++){const o=s.getValue(r,"*");t[e]=o?s.wrapPointer(o,s.PeParameter):null,r+=Int32Array.BYTES_PER_ELEMENT}return t});t(s.PeHorizon.prototype,"getCoord",e=>function(t=!1){const r=this.getSize();if(!r)return null;const o=[];return b(o,r,e.call(this),t),o}),t(s.PeGTlistExtendedEntry.prototype,"getEntries",e=>{const t=s._pe_getPeGTlistExtendedGTsSize();return function(){let r=null;const o=e.call(this);if(!s.compare(o,s.NULL)){r=[o];const e=this.getSteps();if(e>1){const n=s.getPointer(o);for(let o=1;o<e;o++)r.push(s.wrapPointer(n+t*o,s.PeGTlistExtendedGTs))}}return r}});const o=s._pe_getPeHorizonSize(),n=e=>function(){let t=this._cache;if(t||(t=new Map,this._cache=t),t.has(e))return t.get(e);let r=null;const n=e.call(this);if(!s.compare(n,s.NULL)){r=[n];const e=n.getNump();if(e>1){const t=s.getPointer(n);for(let n=1;n<e;n++)r.push(s.wrapPointer(t+o*n,s.PeHorizon))}}return t.set(e,r),r};t(s.PeProjcs.prototype,"horizonGcsGenerate",n),t(s.PeProjcs.prototype,"horizonPcsGenerate",n),s.PeObject.prototype.toString=function(e=u.PE_STR_OPTS_NONE){s.ensureCache.prepare();const t=s.getPointer(this),r=s.ensureInt8(new Array(u.PE_BUFFER_MAX));return s.UTF8ToString(s._pe_object_to_string_ext(t,e,r))},s.PeGeogcs.prototype.destroy=function(){this.Delete(),C(this),this.ptr=0},s.PeGeogcs.prototype[Symbol.dispose]=function(){this.destroy()},s.PeProjcs.prototype.destroy=function(){this.Delete(),C(this),this.ptr=0},s.PeProjcs.prototype[Symbol.dispose]=function(){this.destroy()}}function C(e){if(!e)return;const t=s.getClass(e);if(!t)return;const r=s.getCache(t);if(!r)return;const o=s.getPointer(e);o&&delete r[o]}function I(e,t){const r=[],o=new Array(t);for(let t=0;t<e;t++)r.push(s.ensureInt8(o));return r}function D(e){return ArrayBuffer.isView(e)?e:Array.isArray(e[0])?e.flat():e}function b(e,t,r,o=!1){if(o)for(let o=0;o<2*t;o++)e[o]=s.getValue(r+o*Float64Array.BYTES_PER_ELEMENT,"double");else{const o=0===e.length;for(let n=0;n<t;n++)o&&(e[n]=new Array(2)),e[n][0]=s.getValue(r,"double"),e[n][1]=s.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}const B=Object.freeze(Object.defineProperty({__proto__:null,PeCSTransformations:_,PeDefs:u,get PeDouble(){return c},PeFactory:d,get PeGCSExtent(){return S},PeGTTransformations:h,PeGTlistExtended:T,PeGTlistExtendedEntry:g,PeLineType:m,PeMath:M,PeNotationDms:A,PeNotationMgrs:U,PeNotationUsng:R,PeNotationUtm:N,PePCSInfo:G,PeVersion:k,_init:w,get _pe(){return s},isLoaded:a,isSupported:function(){return!!(0,n.A)("esri-wasm")},load:f},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8368],{1262:(e,t,n)=>{n.d(t,{L:()=>o});var r=n(799);const a={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"};class o extends Error{constructor(e,t){super((0,r.HC)(a[e],t)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,o)}}},3330:(e,t,n)=>{n.d(t,{GB:()=>a,Qo:()=>i,Y4:()=>o});var r=n(28097);class a{static{this.instance=new r.oh("Etc/UTC")}}function o(e){return e instanceof r.bo?e===a.instance:"unknown"===e?.toString().toLowerCase()}function i(e){return o(e)?a.instance:e}},55612:(e,t,n)=>{n.d(t,{g:()=>i});var r=n(28097);function a(e){return Number.isNaN(e)||0===e?e:Math.trunc(e)}const o="esri.core.sql.SqlTimeStampOffset";class i{constructor(e){this._timeStampOffset=e,this.declaredRootClass=o,this._date=null}static isTimestampOffset(e){return"object"==typeof e&&null!=e&&"declaredRootClass"in e&&e.declaredRootClass===o}toDateTime(){return this._date??=r.c9.fromISO(this._timeStampOffset,{setZone:!0}),this._date}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return a(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return a(this.toDateTime().offset%60)}toMilliseconds(){return this.toDateTime().toMillis()}get hour(){return this.toDateTime().hour}get minute(){return this.toDateTime().minute}get second(){return this.toDateTime().second}get day(){return this.toDateTime().day}get month(){return this.toDateTime().month}get year(){return this.toDateTime().year}startOfDay(){return i.fromDateTime(this.toDateTime().startOf("day"))}static fromJSDate(e){return new i(r.c9.fromJSDate(e).toISO({includeOffset:!0}))}static fromDateTime(e){return new i(e.toISO({includeOffset:!0}))}static fromParts(e,t,n=0,r=0,a=0,o=0,s=0,u=!1,l=0,c=0){const f=`${e.toString().padStart(4,"0")}-${t.toString().padStart(2,"0")}-${n.toString().padStart(2,"0")}`;let d="";o<10&&(d="0");let p=`${r.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${d+o.toString()}`;0!==s&&(p+="."+s.toString().padStart(3,"0"));const m=`${u?"-":"+"}${l.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}`;return new i(f+"T"+p+m)}toStorageFormat(){return this._timeStampOffset}toString(){return this._timeStampOffset}toSQLValue(){let e=this.toDateTime().toSQL({includeOffset:!0,includeOffsetSpace:!0});return e&&(e=e.replace(".000","")),e}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}addMilliseconds(e){const t=this.toDateTime().plus(e);return i.fromDateTime(t)}}},74639:(e,t,n)=>{n.d(t,{M:()=>l,s:()=>u});var r=n(44729),a=n(1262),o=n(55612),i=n(15032),s=n(28097);function u(e,t){const n=c[e.toLowerCase()];if(null==n)throw new a.L("FunctionNotRecognized");if(t.length<n.minParams||t.length>n.maxParams)throw new a.L("InvalidParameterCount",{name:e.toUpperCase()});return n.evaluate(t)}function l(e,t){const n=c[e.toLowerCase()];return null!=n&&t>=n.minParams&&t<=n.maxParams}const c={min:{minParams:1,maxParams:1,evaluate:e=>p(e[0],"min")},max:{minParams:1,maxParams:1,evaluate:e=>p(e[0],"max")},avg:{minParams:1,maxParams:1,evaluate:e=>f(e[0])},sum:{minParams:1,maxParams:1,evaluate:e=>function(e){if(null===e)return null;let t=0;for(let n=0;n<e.length;n++){const r=e[n];if(null!==r){if(!d(r))throw new a.L("InvalidValueForAggregateFunction");t+=r}}return t}(e[0])},stddev:{minParams:1,maxParams:1,evaluate:e=>function(e){if(null===e)return null;const t=m(e);return null===t?null:Math.sqrt(t)}(e[0])},count:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:e[0].length},var:{minParams:1,maxParams:1,evaluate:e=>m(e[0])}};function f(e){if(null===e)return null;let t=0,n=0;for(let r=0;r<e.length;r++){const o=e[r];if(null!==o){if(!d(o))throw new a.L("InvalidValueForAggregateFunction");n++,t+=o}}return 0===n?null:t/e.length}function d(e){return"number"==typeof e}function p(e,t){if(null===e)return null;let n=null,a=null;for(const u of e){let e=u;e=r.n.isDateOnly(u)||i.k.isTimeOnly(u)?u.toNumber():s.c9.isDateTime(u)?u.toMillis():o.g.isTimestampOffset(u)?u.toMilliseconds():u,(null===n||"max"===t&&null!==a&&null!==e&&a<=e||"min"===t&&null!==a&&null!==e&&a>=e)&&(n=u,a=e)}return n}function m(e){if(null===e)return null;if(0===(e=e.filter(e=>null!==e)).length)return null;const t=f(e);if(null===t)return null;let n=0;for(const r of e){if(!d(r))throw new a.L("InvalidValueForAggregateFunction");n+=(t-r)**2}return n/(e.length-1)}},88368:(e,t,n)=>{n.d(t,{A:()=>ce});var r=n(44208),a=n(74639),o=n(44729),i=n(1262);function s(e){if(null!==e.precision||null!==e.secondary)throw new i.L("PrimarySecondaryQualifiers")}function u(e,t){if(t.includes(".")){const n=t.split(".");e.second=parseFloat(n[0]),e.millis=parseInt(n[1],10)}else e.second=parseFloat(t)}const l="esri.core.sql.SqlInterval";class c{constructor(){this.declaredRootClass=l,this.op="+",this.day=0,this.second=0,this.hour=0,this.month=0,this.year=0,this.minute=0,this.millis=0}static isInterval(e){return"object"==typeof e&&null!=e&&"declaredRootClass"in e&&e.declaredRootClass===l}static createFromMilliseconds(e){const t=new c;return t.second=e/1e3,t}static createFromValueAndQualifier(e,t,n){let r=null;const a=new c;if(a.op="-"===n?"-":"+","interval-period"===t.type){s(t);const n=new RegExp("^[0-9]{1,}$");if("year"===t.period||"month"===t.period)throw new i.L("YearMonthIntervals");if("second"===t.period){if(!/^[0-9]{1,}(\.[0-9]{1,}){0,1}$/.test(e))throw new i.L("IllegalInterval");u(a,e)}else{if(!n.test(e))throw new i.L("IllegalInterval");a[t.period]=parseFloat(e)}}else{if(s(t.start),s(t.end),"year"===t.start.period||"month"===t.start.period||"year"===t.end.period||"month"===t.end.period)throw new i.L("YearMonthIntervals");switch(t.start.period){case"day":switch(t.end.period){case"hour":if(r=new RegExp("^[0-9]{1,} [0-9]{1,}$"),!r.test(e))throw new i.L("IllegalInterval");a[t.start.period]=parseFloat(e.split(" ")[0]),a[t.end.period]=parseFloat(e.split(" ")[1]);break;case"minute":if(r=new RegExp("^[0-9]{1,} [0-9]{1,2}:[0-9]{1,}$"),!r.test(e))throw new i.L("IllegalInterval");{a[t.start.period]=parseFloat(e.split(" ")[0]);const n=e.split(" ")[1].split(":");a.hour=parseFloat(n[0]),a.minute=parseFloat(n[1])}break;case"second":if(r=new RegExp("^[0-9]{1,} [0-9]{1,2}:[0-9]{1,2}:[0-9]{1,}(\\.[0-9]{1,}){0,1}$"),!r.test(e))throw new i.L("IllegalInterval");{a[t.start.period]=parseFloat(e.split(" ")[0]);const n=e.split(" ")[1].split(":");a.hour=parseFloat(n[0]),a.minute=parseFloat(n[1]),u(a,n[2])}break;default:throw new i.L("IllegalInterval")}break;case"hour":switch(t.end.period){case"minute":if(r=new RegExp("^[0-9]{1,}:[0-9]{1,}$"),!r.test(e))throw new i.L("IllegalInterval");a.hour=parseFloat(e.split(":")[0]),a.minute=parseFloat(e.split(":")[1]);break;case"second":if(r=new RegExp("^[0-9]{1,}:[0-9]{1,2}:[0-9]{1,}(\\.[0-9]{1,}){0,1}$"),!r.test(e))throw new i.L("IllegalInterval");{const t=e.split(":");a.hour=parseFloat(t[0]),a.minute=parseFloat(t[1]),u(a,t[2])}break;default:throw new i.L("IllegalInterval")}break;case"minute":if("second"!==t.end.period)throw new i.L("IllegalInterval");if(r=new RegExp("^[0-9]{1,}:[0-9]{1,}(\\.[0-9]{1,}){0,1}$"),!r.test(e))throw new i.L("IllegalInterval");{const t=e.split(":");a.minute=parseFloat(t[0]),u(a,t[1])}break;default:throw new i.L("IllegalInterval")}}return a}valueInMilliseconds(){return("-"===this.op?-1:1)*(this.millis+1e3*this.second+60*this.minute*1e3+60*this.hour*60*1e3+24*this.day*60*60*1e3+this.month*(365/12)*24*60*60*1e3+365*this.year*24*60*60*1e3)}}var f=n(55612),d=n(15032),p=n(3330),m=n(28097);const h=/^(\d{1,2}):(\d{1,2}):(\d{1,2})$/,w=/^(\d{1,2}):(\d{1,2})$/,v=/^(\d{1,2}):(\d{1,2}):(\d{1,2}).([0-9]+)$/,I=/^(\d{4})-(\d{1,2})-(\d{1,2})$/,g=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$/,y=/^(\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})$/,L=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})? {0,1}(\+|-)(\d{1,2}):(\d{1,2})$/,T=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/;function N(e,t){if(t instanceof m.bo)return t===p.GB.instance?m.c9.fromMillis(e.getTime(),{zone:p.GB.instance}):m.c9.fromJSDate(e,{zone:t});switch(t){case"system":case"local":case null:return m.c9.fromJSDate(e);default:return"unknown"===t?.toLowerCase()?m.c9.fromMillis(e.getTime(),{zone:p.GB.instance}):m.c9.fromJSDate(e,{zone:t})}}function O(e){return c.isInterval(e)}function E(e){return m.c9.isDateTime(e)}function S(e){return o.n.isDateOnly(e)}function x(e){return d.k.isTimeOnly(e)}function C(e){return f.g.isTimestampOffset(e)}function D(e){let t=h.exec(e);if(null!==t){const[,e,n,r]=t,a=d.k.fromParts(parseInt(e,10),parseInt(n,10),parseInt(r,10),0);if(null!==a)return a;throw new i.L("InvalidTime")}if(t=w.exec(e),null!==t){const[,e,n]=t,r=d.k.fromParts(parseInt(e,10),parseInt(n,10),0,0);if(null!==r)return r;throw new i.L("InvalidTime")}if(t=v.exec(e),null!==t){const[,e,n,r,a]=t,o=d.k.fromParts(parseInt(e,10),parseInt(n,10),parseInt(r,10),parseInt(a,10));if(null!==o)return o;throw new i.L("InvalidTime")}throw new i.L("InvalidTime")}function _(e,t,n=!1){let r=g.exec(e);if(null!==r){const[,e,n,a,o,s,u,l]=r,c=m.c9.fromObject({year:parseInt(e,10),month:parseInt(n,10),day:parseInt(a,10),hour:parseInt(o,10),minute:parseInt(s,10),second:parseInt(u,10),millisecond:l?parseInt(l.replace(".",""),10):0},{zone:(0,p.Qo)(t)});if(!1===c.isValid)throw new i.L("InvalidTimeStamp");return c}if(r=y.exec(e),null!==r){const[,e,t,n,a,o,s,u,l,c,d]=r,p=f.g.fromParts(parseInt(e,10),parseInt(t,10),parseInt(n,10),parseInt(a,10),parseInt(o,10),parseInt(s,10),u?parseInt(u.replace(".",""),10):0,"-"===l,parseInt(c,10),parseInt(d,10));if(!1===p.isValid)throw new i.L("InvalidTimeStamp");return p}if(r=L.exec(e),null!==r){const[,e,t,n,a,o,s,u,l]=r,c=f.g.fromParts(parseInt(e,10),parseInt(t,10),parseInt(n,10),parseInt(a,10),parseInt(o,10),0,0,"-"===s,parseInt(u,10),parseInt(l,10));if(!1===c.isValid)throw new i.L("InvalidTimeStamp");return c}if(r=T.exec(e),null!==r){const[,e,n,a,o,s]=r,u=m.c9.fromObject({year:parseInt(e,10),month:parseInt(n,10),day:parseInt(a,10),hour:parseInt(o,10),minute:parseInt(s,10),second:0},{zone:(0,p.Qo)(t)});if(!1===u.isValid)throw new i.L("InvalidTimeStamp");return u}if(r=I.exec(e),null!==r){const[,e,n,a]=r,o=m.c9.fromObject({year:parseInt(e,10),month:parseInt(n,10),day:parseInt(a,10),hour:0,minute:0,second:0},{zone:(0,p.Qo)(t)});if(!1===o.isValid)throw new i.L("InvalidTimeStamp");return o}throw new i.L("InvalidTimeStamp")}function M(e,t){const n=I.exec(e);if(null===n)try{return _(e,t)}catch{throw new i.L("InvalidDate")}const[,r,a,s]=n,u=o.n.fromParts(parseInt(r,10),parseInt(a,10),parseInt(s,10));if(null===u)throw new i.L("InvalidDate");return u}var b=n(34727),P=n(799),A=n(54218);function F(e){return!!E(e)||!!C(e)}function $(e){return!!(E(e)||S(e)||C(e)||x(e))}function R(e){if(E(e))return e.toMillis();if(S(e))return e.toNumber();if(C(e))return e.toMilliseconds();throw new i.L("InvalidDataType")}function k(e,t,n){if(null==e||null==t)return null;if((0,A.Et)(e)){if((0,A.Et)(t))return U(e,t,n);if((0,A.Kg)(t))return function(e,t,n){const r=parseFloat(t);if(!isNaN(r))return U(e,r,n);const a=e.toString();switch(n){case"<>":return a!==t;case"=":return a===t;case">":return a>t;case"<":return a<t;case">=":return a>=t;case"<=":return a<=t}}(e,t,n);if($(t))throw new i.L("InvalidOperator");if(S(t))throw new i.L("InvalidOperator")}else if((0,A.Kg)(e)){if((0,A.Et)(t))return function(e,t,n){const r=parseFloat(e);if(!isNaN(r))return U(r,t,n);const a=t.toString();switch(n){case"<>":return e!==a;case"=":return e===a;case">":return e>a;case"<":return e<a;case">=":return e>=a;case"<=":return e<=a}}(e,t,n);if((0,A.Kg)(t))return function(e,t,n){switch(n){case"<>":return e!==t;case"=":return e===t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}}(e,t,n);if(E(t))throw new i.L("InvalidOperator");if(S(t))throw new i.L("InvalidOperator");if(x(t))throw new i.L("InvalidOperator");if(C(t))throw new i.L("InvalidOperator")}else if(E(e)){if(F(t)){if((0,p.Y4)(e.zone)){if(m.c9.isDateTime(t)&&!(0,p.Y4)(t.zone))return V(e,t,n);if(f.g.isTimestampOffset(t))return V(e,t,n)}else if(m.c9.isDateTime(t)&&(0,p.Y4)(t.zone)){if(!(0,p.Y4)(e.zone))return V(e,t,n);if(f.g.isTimestampOffset(e))return V(e,t,n)}return U(R(e),R(t),n)}if((0,A.Kg)(t))throw new i.L("InvalidOperator");if(S(t))return function(e,t,n){const r=t.toDateTimeLuxon(e.zone);return U((e=e.startOf("day")).toMillis(),r.toMillis(),n)}(e,t,n);if(x(t))throw new i.L("InvalidOperator");if((0,A.Et)(t))throw new i.L("InvalidOperator")}else if(S(e)){if(C(t))return function(e,t,n){const r=e.toDateTimeLuxon(t.toDateTime().zone);return t=t.startOfDay(),U(r.toMillis(),t.toMilliseconds(),n)}(e,t,n);if(E(t))return function(e,t,n){const r=e.toDateTimeLuxon(t.zone);return t=t.startOf("day"),U(r.toMillis(),t.toMillis(),n)}(e,t,n);if((0,A.Kg)(t))throw new i.L("InvalidOperator");if(S(t))return U(e.toNumber(),t.toNumber(),n);if(x(t))throw new i.L("InvalidOperator");if((0,A.Et)(t))throw new i.L("InvalidOperator")}else if(x(e)){if(x(t))return U(e.toNumber(),t.toNumber(),n);if((0,A.Kg)(t))throw new i.L("InvalidOperator");if((0,A.Et)(t))throw new i.L("InvalidOperator");if(S(t))throw new i.L("InvalidOperator");if(F(t))throw new i.L("InvalidOperator")}else if(C(e)){if(F(t))return m.c9.isDateTime(t)&&(0,p.Y4)(t.zone)?V(e,t,n):U(R(e),R(t),n);if((0,A.Kg)(t))throw new i.L("InvalidOperator");if(S(t))return function(e,t,n){const r=t.toDateTimeLuxon(e.toDateTime().zone);return U((e=e.startOfDay()).toMilliseconds(),r.toMillis(),n)}(e,t,n);if(x(t))throw new i.L("InvalidOperator");if((0,A.Et)(t))throw new i.L("InvalidOperator")}switch(n){case"<>":return e!==t;case"=":return e===t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}}function U(e,t,n){switch(n){case"<>":return e!==t;case"=":return e===t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}}function V(e,t,n){f.g.isTimestampOffset(e)&&(e=e.toDateTime()),f.g.isTimestampOffset(t)&&(t=t.toDateTime());const r=z(e),a=z(t);switch(n){case"<>":return r!==a;case"=":return r===a;case">":return r>a;case"<":return r<a;case">=":return r>=a;case"<=":return r<=a}}function z(e){return 321408e5*e.year+26784e5*e.month+864e5*e.day+36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}function H(e,t,n){const r=Z[e.toLowerCase()];if(null==r)throw new i.L("FunctionNotRecognized");if(t.length<r.minParams||t.length>r.maxParams)throw new i.L("InvalidParameterCount",{name:e.toUpperCase()});return r.evaluate(t,n)}function q(e){return!((0,A.$P)(e)||S(e)||E(e)||x(e)||C(e))}function K(e){return S(e)||x(e)?e.toString():C(e)?e.toSQLValue():E(e)?0===e.millisecond?e.toFormat("yyyy-LL-dd HH:mm:ss"):e.toSQL({includeOffset:!1}):(0,A.$P)(e)?K(m.c9.fromJSDate(e)):e.toString()}const Z={extract:{minParams:2,maxParams:2,evaluate:([e,t])=>{if(null==t)return null;if((0,A.$P)(t))switch(e.toUpperCase()){case"SECOND":return t.getSeconds();case"MINUTE":return t.getMinutes();case"HOUR":return t.getHours();case"DAY":return t.getDate();case"MONTH":return t.getMonth()+1;case"YEAR":return t.getFullYear();case"TIMEZONE_HOUR":case"TIMEZONE_MINUTE":return 0;case"DOW":return m.c9.fromJSDate(t,{zone:"system"}).weekday;case"DOY":return m.c9.fromJSDate(t,{zone:"system"}).ordinal;case"WEEK":return m.c9.fromJSDate(t,{zone:"system"}).weekNumber}else if(E(t))switch(e.toUpperCase()){case"SECOND":return t.second;case"MINUTE":return t.minute;case"HOUR":return t.hour;case"DAY":return t.day;case"MONTH":return t.month;case"YEAR":return t.year;case"TIMEZONE_HOUR":case"TIMEZONE_MINUTE":throw new i.L("InvalidFunctionParameters",{function:"EXTRACT"});case"DOW":return t.weekday;case"DOY":return t.ordinal;case"WEEK":return t.weekNumber}else if(S(t))switch(e.toUpperCase()){case"DAY":return t.day;case"MONTH":return t.month;case"YEAR":return t.year;case"TIMEZONE_HOUR":case"TIMEZONE_MINUTE":throw new i.L("InvalidFunctionParameters",{function:"EXTRACT"});case"DOW":return t.toDateTime("unknown").weekday;case"DOY":return t.toDateTime("unknown").ordinal;case"WEEK":return t.toDateTime("unknown").weekNumber}else if(x(t))switch(e.toUpperCase()){case"SECOND":return t.second;case"MINUTE":return t.minute;case"HOUR":return t.hour}else if(C(t))switch(e.toUpperCase()){case"SECOND":return t.second;case"MINUTE":return t.minute;case"HOUR":return t.hour;case"DAY":return t.day;case"MONTH":return t.month;case"YEAR":return t.year;case"TIMEZONE_HOUR":return t.timezoneOffsetHour;case"TIMEZONE_MINUTE":return t.timezoneOffsetMinutes;case"DOW":return t.toDateTime().weekday;case"DOY":return t.toDateTime().ordinal;case"WEEK":return t.toDateTime().weekNumber}throw new i.L("InvalidFunctionParameters",{function:"EXTRACT"})}},substring:{minParams:2,maxParams:3,evaluate:e=>{if(2===e.length){const[t,n]=e;return null==t||null==n?null:t.toString().substring(n-1)}if(3===e.length){const[t,n,r]=e;return null==t||null==n||null==r?null:r<=0?"":t.toString().substring(n-1,n+r-1)}}},position:{minParams:2,maxParams:2,evaluate:([e,t])=>null==e||null==t?null:t.indexOf(e)+1},trim:{minParams:2,maxParams:3,evaluate:e=>{const t=3===e.length,n=t?e[1]:" ",r=t?e[2]:e[1];if(null==n||null==r)return null;const a=`(${(0,P.Cj)(n)})`;switch(e[0]){case"BOTH":return r.replaceAll(new RegExp(`^${a}*|${a}*$`,"g"),"");case"LEADING":return r.replaceAll(new RegExp(`^${a}*`,"g"),"");case"TRAILING":return r.replaceAll(new RegExp(`${a}*$`,"g"),"")}throw new i.L("InvalidFunctionParameters",{function:"TRIM"})}},abs:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.abs(e[0])},ceiling:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.ceil(e[0])},floor:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.floor(e[0])},log:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.log(e[0])},log10:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.log(e[0])*Math.LOG10E},sin:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.sin(e[0])},cos:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.cos(e[0])},tan:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.tan(e[0])},asin:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.asin(e[0])},acos:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.acos(e[0])},atan:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.atan(e[0])},sign:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:e[0]>0?1:e[0]<0?-1:0},power:{minParams:2,maxParams:2,evaluate:e=>null==e[0]||null==e[1]?null:e[0]**e[1]},mod:{minParams:2,maxParams:2,evaluate:e=>null==e[0]||null==e[1]?null:e[0]%e[1]},round:{minParams:1,maxParams:2,evaluate:e=>{const t=e[0],n=2===e.length?10**e[1]:1;return null==t?null:Math.round(t*n)/n}},truncate:{minParams:1,maxParams:2,evaluate:e=>null==e[0]?null:1===e.length||0===e[1]?Math.trunc(e[0]):(0,b.pF)("trunc",e[0],-Number(e[1]))},char_length:{minParams:1,maxParams:1,evaluate:e=>(0,A.Kg)(e[0])?e[0].length:0},concat:{minParams:1,maxParams:1/0,evaluate:e=>{let t="";for(let n=0;n<e.length;n++){if(null==e[n])return null;t+=e[n].toString()}return t}},lower:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:e[0].toString().toLowerCase()},upper:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:e[0].toString().toUpperCase()},coalesce:{minParams:1,maxParams:1/0,evaluate:e=>{for(const t of e)if(null!==t)return t;return null}},cosh:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.cosh(e[0])},sinh:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.sinh(e[0])},tanh:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.tanh(e[0])},nullif:{minParams:2,maxParams:2,evaluate:e=>k(e[0],e[1],"=")?null:e[0]},cast:{minParams:2,maxParams:2,evaluate:(e,t)=>{const n=e[0],r=e[1];if(null===n)return null;switch(r.type){case"integer":{if(!q(n))throw new i.L("CannotCastValue");const e=parseInt(n,10);if(isNaN(e))throw new i.L("CannotCastValue");return e}case"smallint":{if(!q(n))throw new i.L("CannotCastValue");const e=parseInt(n,10);if(isNaN(e))throw new i.L("CannotCastValue");if(e>32767||e<-32767)throw new i.L("CannotCastValue");return e}case"float":case"real":{if(!q(n))throw new i.L("CannotCastValue");const e=parseFloat(n);if(isNaN(e))throw new i.L("CannotCastValue");return e}case"time":return function(e){if((0,A.$P)(e))return d.k.fromDateJS(e);if(E(e))return d.k.fromDateTime(e);if(S(e))throw new i.L("CannotCastValue");if(x(e))return e;if(C(e))return d.k.fromSqlTimeStampOffset(e);if((0,A.Kg)(e))return D(e);throw new i.L("CannotCastValue")}(n);case"date":return function(e){if((0,A.$P)(e))return o.n.fromDateJS(e);if(E(e))return o.n.fromParts(e.year,e.month,e.day);if(S(e))return e;if(x(e))throw new i.L("CannotCastValue");if(C(e)&&null===o.n.fromParts(e.year,e.month,e.day))throw new i.L("CannotCastValue");if((0,A.Kg)(e)){const t=o.n.fromReader(e);if(null!==t&&t.isValid)return t}throw new i.L("CannotCastValue")}(n);case"timestamp":return function(e,t,n){if((0,A.$P)(e))return N(e,t);if(E(e))return e;if(S(e))return e.toDateTimeLuxon("unknown");if(x(e))throw new i.L("CannotCastValue");if(C(e))return e;if((0,A.Kg)(e))return _(e,"unknown",n);throw new i.L("CannotCastValue")}(n,t,!0===r.withtimezone);case"varchar":{const e=K(n);if(e.length>r.size)throw new i.L("CannotCastValue");return e}default:throw new i.L("InvalidDataType")}}}};function Y(e,t,n,r){if("||"===e)return H("concat",[t,n],r);if(null===t||null===n)return null;if((0,A.Et)(t)){if((0,A.Et)(n))return j(t,n,e);if(O(n))return function(e,t,n){switch(n){case"+":return c.createFromMilliseconds(e+t.valueInMilliseconds());case"-":return c.createFromMilliseconds(e-t.valueInMilliseconds());case"*":return c.createFromMilliseconds(e*t.valueInMilliseconds());case"/":return c.createFromMilliseconds(e/t.valueInMilliseconds())}throw new i.L("InvalidOperator")}(t,n,e);if(x(n))return function(){throw new i.L("InvalidOperator")}();if(S(n))return function(){throw new i.L("InvalidOperator")}();if(C(n))return function(){throw new i.L("InvalidOperator")}();if(E(n))return function(){throw new i.L("InvalidOperator")}();if((0,A.Kg)(n))return function(e,t,n){const r=parseFloat(t);if(isNaN(r))throw new i.L("InvalidOperator");return j(e,r,n)}(t,n,e);throw new i.L("InvalidOperator")}if(S(t)){if((0,A.Et)(n))return function(e,t,n){const r=1e3*t*24*60*60;switch(n){case"+":return e.plus("milliseconds",r);case"-":return e.plus("milliseconds",-1*r)}throw new i.L("InvalidOperator")}(t,n,e);if(O(n))return function(e,t,n){switch(n){case"+":return e.plus("milliseconds",t.valueInMilliseconds());case"-":return e.plus("milliseconds",-1*t.valueInMilliseconds())}throw new i.L("InvalidOperator")}(t,n,e);if(x(n))return function(){throw new i.L("InvalidOperator")}();if(S(n))return function(e,t,n){if("-"===n)return e.toDateTimeLuxon("UTC").diff(t.toDateTimeLuxon("UTC")).as("days");throw new i.L("InvalidOperator")}(t,n,e);if(C(n))return function(e,t,n){if("-"===n)return e.toDateTimeLuxon(t.toDateTime().zone).diff(t.toDateTime()).as("days");throw new i.L("InvalidOperator")}(t,n,e);if(E(n))return function(e,t,n){if("-"===n)return e.toDateTimeLuxon(t.zone).diff(t).as("days");throw new i.L("InvalidOperator")}(t,n,e);if((0,A.Kg)(n))return function(){throw new i.L("InvalidOperator")}();throw new i.L("InvalidOperator")}if(x(t)){if((0,A.Et)(n))return function(e,t,n){const r=1e3*t*24*60*60;switch(n){case"+":return e.plus("milliseconds",r);case"-":return e.plus("milliseconds",-1*r)}throw new i.L("InvalidOperator")}(t,n,e);if(O(n))return function(e,t,n){switch(n){case"+":return e.plus("milliseconds",t.valueInMilliseconds());case"-":return e.plus("milliseconds",-1*t.valueInMilliseconds())}throw new i.L("InvalidOperator")}(t,n,e);if(x(n))return function(){throw new i.L("InvalidOperator")}();if(S(n))return function(){throw new i.L("InvalidOperator")}();if(C(n))return function(){throw new i.L("InvalidOperator")}();if(E(n))return function(){throw new i.L("InvalidOperator")}();if((0,A.Kg)(n))return function(){throw new i.L("InvalidOperator")}();throw new i.L("InvalidOperator")}if(O(t)){if((0,A.Et)(n))return function(e,t,n){switch(n){case"+":return c.createFromMilliseconds(e.valueInMilliseconds()+t);case"-":return c.createFromMilliseconds(e.valueInMilliseconds()-t);case"*":return c.createFromMilliseconds(e.valueInMilliseconds()*t);case"/":return c.createFromMilliseconds(e.valueInMilliseconds()/t)}throw new i.L("InvalidOperator")}(t,n,e);if(O(n))return function(e,t,n){switch(n){case"+":return c.createFromMilliseconds(e.valueInMilliseconds()+t.valueInMilliseconds());case"-":return c.createFromMilliseconds(e.valueInMilliseconds()-t.valueInMilliseconds());case"*":return c.createFromMilliseconds(e.valueInMilliseconds()*t.valueInMilliseconds());case"/":return c.createFromMilliseconds(e.valueInMilliseconds()/t.valueInMilliseconds())}throw new i.L("InvalidOperator")}(t,n,e);if(x(n))return function(e,t,n){if("+"===n)return t.plus("milliseconds",e.valueInMilliseconds());throw new i.L("InvalidOperator")}(t,n,e);if(S(n))return function(e,t,n){if("+"===n)return t.plus("milliseconds",e.valueInMilliseconds());throw new i.L("InvalidOperator")}(t,n,e);if(C(n))return function(e,t,n){if("+"===n)return t.addMilliseconds(e.valueInMilliseconds());throw new i.L("InvalidOperator")}(t,n,e);if(E(n))return function(e,t,n){switch(n){case"+":return t.plus({milliseconds:e.valueInMilliseconds()});case"-":return e.valueInMilliseconds()-t.toMillis()}throw new i.L("InvalidOperator")}(t,n,e);if((0,A.Kg)(n))return function(){throw new i.L("InvalidOperator")}();throw new i.L("InvalidOperator")}if(E(t)){if((0,A.Et)(n))return function(e,t,n){const r=1e3*t*24*60*60;switch(n){case"+":return e.plus({milliseconds:r});case"-":return e.minus({milliseconds:r})}throw new i.L("InvalidOperator")}(t,n,e);if(O(n))return function(e,t,n){switch(n){case"+":return e.plus({milliseconds:t.valueInMilliseconds()});case"-":return e.minus({milliseconds:t.valueInMilliseconds()})}throw new i.L("InvalidOperator")}(t,n,e);if(x(n))return function(){throw new i.L("InvalidOperator")}();if(S(n))return function(e,t,n){if("-"===n)return e.diff(t.toDateTimeLuxon(e.zone)).as("days");throw new i.L("InvalidOperator")}(t,n,e);if(C(n))return function(e,t,n){if("-"===n)return e.diff(t.toDateTime()).as("days");throw new i.L("InvalidOperator")}(t,n,e);if(E(n))return function(e,t,n){if("-"===n)return e.diff(t).as("days");throw new i.L("InvalidOperator")}(t,n,e);if((0,A.Kg)(n))return function(){throw new i.L("InvalidOperator")}();throw new i.L("InvalidOperator")}if(C(t)){if((0,A.Et)(n))return function(e,t,n){const r=1e3*t*24*60*60;switch(n){case"+":return e.addMilliseconds(r);case"-":return e.addMilliseconds(-1*r)}throw new i.L("InvalidOperator")}(t,n,e);if(O(n))return function(e,t,n){switch(n){case"+":return e.addMilliseconds(t.valueInMilliseconds());case"-":return e.addMilliseconds(-1*t.valueInMilliseconds())}throw new i.L("InvalidOperator")}(t,n,e);if(x(n))return function(){throw new i.L("InvalidOperator")}();if(S(n))return function(e,t,n){if("-"===n)return e.toDateTime().diff(t.toDateTimeLuxon(e.toDateTime().zone)).as("days");throw new i.L("InvalidOperator")}(t,n,e);if(C(n))return function(e,t,n){if("-"===n)return e.toDateTime().diff(t.toDateTime()).as("days");throw new i.L("InvalidOperator")}(t,n,e);if(E(n))return function(e,t,n){if("-"===n)return e.toDateTime().diff(t).as("days");throw new i.L("InvalidOperator")}(t,n,e);if((0,A.Kg)(n))return function(){throw new i.L("InvalidOperator")}();throw new i.L("InvalidOperator")}if((0,A.Kg)(t)){if((0,A.Et)(n))return function(e,t,n){const r=parseFloat(e);if(isNaN(r))throw new i.L("InvalidOperator");return j(r,t,n)}(t,n,e);if(O(n))return function(){throw new i.L("InvalidOperator")}();if(x(n))return function(){throw new i.L("InvalidOperator")}();if(S(n))return function(){throw new i.L("InvalidOperator")}();if(C(n))return function(){throw new i.L("InvalidOperator")}();if(E(n))return function(){throw new i.L("InvalidOperator")}();if((0,A.Kg)(n))return function(e,t,n){if("+"===n)return e+t;throw new i.L("InvalidOperator")}(t,n,e);throw new i.L("InvalidOperator")}throw new i.L("InvalidOperator")}function j(e,t,n){switch(n){case"+":return e+t;case"-":return e-t;case"*":return e*t;case"/":return e/t}throw new i.L("InvalidOperator")}class W extends SyntaxError{constructor(e,t,n,r){super(e),this.expected=t,this.found=n,this.location=r,this.name="SyntaxError"}format(e){let t="Error: "+this.message;if(this.location){let n=null;const r=e.find(e=>e.source===this.location.source);r&&(n=r.text.split(/\r\n|\n|\r/g));const a=this.location.start,o=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(a):a,i=this.location.source+":"+o.line+":"+o.column;if(n){const e=this.location.end,r="".padEnd(o.line.toString().length," "),s=n[a.line-1],u=(a.line===e.line?e.column:s.length+1)-a.column||1;t+="\n --\x3e "+i+"\n"+r+" |\n"+o.line+" | "+s+"\n"+r+" | "+"".padEnd(a.column-1," ")+"".padEnd(u,"^")}else t+="\n at "+i}return t}static buildMessage(e,t){function n(e){return e.codePointAt(0).toString(16).toUpperCase()}const r=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function a(e){return r?e.replace(r,e=>"\\u{"+n(e)+"}"):e}function o(e){return a(e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+n(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+n(e)))}function i(e){return a(e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+n(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+n(e)))}const s={literal:e=>'"'+o(e.text)+'"',class(e){const t=e.parts.map(e=>Array.isArray(e)?i(e[0])+"-"+i(e[1]):i(e));return"["+(e.inverted?"^":"")+t.join("")+"]"+(e.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:e=>e.description};function u(e){return s[e.type](e)}return"Expected "+function(e){const t=e.map(u);if(t.sort(),t.length>0){let e=1;for(let n=1;n<t.length;n++)t[n-1]!==t[n]&&(t[e]=t[n],e++);t.length=e}switch(t.length){case 1:return t[0];case 2:return t[0]+" or "+t[1];default:return t.slice(0,-1).join(", ")+", or "+t[t.length-1]}}(e)+" but "+function(e){return e?'"'+o(e)+'"':"end of input"}(t)+" found."}}function B(e,t){const n={},r=(t=void 0!==t?t:{}).grammarSource,a={start:Tn};let o=Tn;const i="!",s="=",u=">=",l=">",c="<=",f="<>",d="!=",p="||",m="@",h="'",w="N'",v="''",I=".",g="null",y="true",L="false",T="in",N="is",O="like",E="escape",S="not",x="and",C="or",D="between",_="from",M="for",b="substring",P="extract",A="trim",F="position",$="timestamp",R="date",k="time",U="leading",V="trailing",z="both",H="cast",q="as",K="integer",Z="int",Y="smallint",j="float",B="real",G="varchar",J="to",Q="interval",X="year",ee="timezone_hour",te="timezone_minute",ne="month",re="day",ae="hour",oe="minute",ie="second",se="dow",ue="doy",le="week",ce="case",fe="end",de="when",pe="then",me="else",he=",",we="(",ve=")",Ie="`",ge=/^[<-=]/,ye=/^[+\-]/,Le=/^[*\/]/,Te=/^[A-Za-z_\x80-\uFFFF]/,Ne=/^[A-Za-z0-9_]/,Oe=/^[A-Za-z0-9_.\x80-\uFFFF]/,Ee=/^["]/,Se=/^[^']/,xe=/^[0-9]/,Ce=/^[eE]/,De=/^[ \t\n\r]/,_e=/^[^`]/,Me=vn("!",!1),be=vn("=",!1),Pe=vn(">=",!1),Ae=vn(">",!1),Fe=vn("<=",!1),$e=vn("<>",!1),Re=In([["<","="]],!1,!1,!1),ke=vn("!=",!1),Ue=In(["+","-"],!1,!1,!1),Ve=vn("||",!1),ze=In(["*","/"],!1,!1,!1),He=In([["A","Z"],["a","z"],"_",["",""]],!1,!1,!1),qe=In([["A","Z"],["a","z"],["0","9"],"_"],!1,!1,!1),Ke=In([["A","Z"],["a","z"],["0","9"],"_",".",["",""]],!1,!1,!1),Ze=In(['"'],!1,!1,!1),Ye=vn("@",!1),je=vn("'",!1),We=vn("N'",!1),Be=vn("''",!1),Ge=In(["'"],!0,!1,!1),Je=vn(".",!1),Qe=In([["0","9"]],!1,!1,!1),Xe=In(["e","E"],!1,!1,!1),et=vn("NULL",!0),tt=vn("TRUE",!0),nt=vn("FALSE",!0),rt=vn("IN",!0),at=vn("IS",!0),ot=vn("LIKE",!0),it=vn("ESCAPE",!0),st=vn("NOT",!0),ut=vn("AND",!0),lt=vn("OR",!0),ct=vn("BETWEEN",!0),ft=vn("FROM",!0),dt=vn("FOR",!0),pt=vn("SUBSTRING",!0),mt=vn("EXTRACT",!0),ht=vn("TRIM",!0),wt=vn("POSITION",!0),vt=vn("TIMESTAMP",!0),It=vn("DATE",!0),gt=vn("TIME",!0),yt=vn("LEADING",!0),Lt=vn("TRAILING",!0),Tt=vn("BOTH",!0),Nt=vn("CAST",!0),Ot=vn("AS",!0),Et=vn("INTEGER",!0),St=vn("INT",!0),xt=vn("SMALLINT",!0),Ct=vn("FLOAT",!0),Dt=vn("REAL",!0),_t=vn("VARCHAR",!0),Mt=vn("TO",!0),bt=vn("INTERVAL",!0),Pt=vn("YEAR",!0),At=vn("TIMEZONE_HOUR",!0),Ft=vn("TIMEZONE_MINUTE",!0),$t=vn("MONTH",!0),Rt=vn("DAY",!0),kt=vn("HOUR",!0),Ut=vn("MINUTE",!0),Vt=vn("SECOND",!0),zt=vn("DOW",!0),Ht=vn("DOY",!0),qt=vn("WEEK",!0),Kt=vn("CASE",!0),Zt=vn("END",!0),Yt=vn("WHEN",!0),jt=vn("THEN",!0),Wt=vn("ELSE",!0),Bt=vn(",",!1),Gt=vn("(",!1),Jt=vn(")",!1),Qt=In([" ","\t","\n","\r"],!1,!1,!1),Xt=vn("`",!1),en=In(["`"],!0,!1,!1);function tn(e,t,n){return{op:t,expr:n,location:hn()}}function nn(e,t,n){return{op:t,expr:n,location:hn()}}function rn(e,t){return{op:e,expr:t,location:hn()}}function an(e,t,n){return{op:t,expr:n,location:hn()}}function on(e,t,n){return{op:t,expr:n,location:hn()}}function sn(){return"'"}let un=0|t.peg$currPos,ln=un;const cn=[{line:1,column:1}];let fn,dn=un,pn=t.peg$maxFailExpected||[],mn=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in a))throw new Error("Can't start parsing from rule \""+t.startRule+'".');o=a[t.startRule]}function hn(){return yn(ln,un)}function wn(e,t){throw function(e,t){return new W(e,null,null,t)}(e,t=void 0!==t?t:yn(ln,un))}function vn(e,t){return{type:"literal",text:e,ignoreCase:t}}function In(e,t,n,r){return{type:"class",parts:e,inverted:t,ignoreCase:n,unicode:r}}function gn(t){let n,r=cn[t];if(r)return r;if(t>=cn.length)n=cn.length-1;else for(n=t;!cn[--n];);for(r=cn[n],r={line:r.line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return cn[t]=r,r}function yn(e,t,n){const a=gn(e),o=gn(t);return{source:r,start:{offset:e,line:a.line,column:a.column},end:{offset:t,line:o.line,column:o.column}}}function Ln(e){un<dn||(un>dn&&(dn=un,pn=[]),pn.push(e))}function Tn(){let e,t;return e=un,oa(),t=On(),t!==n?(oa(),ln=e,e=t):(un=e,e=n),e}function Nn(){let e,t,r,a,o,i,s,u;if(e=un,t=ra(),t!==n){for(oa(),r=[],a=On();a!==n;)r.push(a),a=un,o=un,i=oa(),s=na(),s!==n?(u=oa(),i=[i,s,u],o=i):(un=o,o=n),o!==n?(o=On(),o===n?(un=a,a=n):a=o):a=o;a=oa(),o=aa(),o!==n?(ln=e,e=function(e){return{type:"expression-list",location:hn(),value:e}}(r)):(un=e,e=n)}else un=e,e=n;return e}function On(){let e,t,r,a,o,i;if(e=un,t=En(),t!==n){for(r=[],a=un,oa(),o=wr(),o!==n?(oa(),i=En(),i!==n?(ln=a,a=tn(0,o,i)):(un=a,a=n)):(un=a,a=n);a!==n;)r.push(a),a=un,oa(),o=wr(),o!==n?(oa(),i=En(),i!==n?(ln=a,a=tn(0,o,i)):(un=a,a=n)):(un=a,a=n);ln=e,e=function(e,t){return ca(e,t)}(t,r)}else un=e,e=n;return e}function En(){let e,t,r,a,o,i;if(e=un,t=Sn(),t!==n){for(r=[],a=un,oa(),o=hr(),o!==n?(oa(),i=Sn(),i!==n?(ln=a,a=nn(0,o,i)):(un=a,a=n)):(un=a,a=n);a!==n;)r.push(a),a=un,oa(),o=hr(),o!==n?(oa(),i=Sn(),i!==n?(ln=a,a=nn(0,o,i)):(un=a,a=n)):(un=a,a=n);ln=e,e=function(e,t){return ca(e,t)}(t,r)}else un=e,e=n;return e}function Sn(){let t,r,a,o,u;return t=un,r=mr(),r===n&&(r=un,33===e.charCodeAt(un)?(a=i,un++):(a=n,0===mn&&Ln(Me)),a!==n?(o=un,mn++,61===e.charCodeAt(un)?(u=s,un++):(u=n,0===mn&&Ln(be)),mn--,u===n?o=void 0:(un=o,o=n),o!==n?(a=[a,o],r=a):(un=r,r=n)):(un=r,r=n)),r!==n?(a=oa(),o=Sn(),o!==n?(ln=t,t=function(e){return function(e,t,n){return{type:"unary-expression",location:n,operator:"NOT",expr:t}}(0,e,hn())}(o)):(un=t,t=n)):(un=t,t=n),t===n&&(t=function(){let e,t,r,a;return e=un,t=_n(),t!==n?(r=un,oa(),a=function(){let e;return e=function(){let e,t,r,a,o;if(e=un,t=[],r=un,oa(),a=xn(),a!==n?(oa(),o=_n(),o!==n?(ln=r,r=rn(a,o)):(un=r,r=n)):(un=r,r=n),r!==n)for(;r!==n;)t.push(r),r=un,oa(),a=xn(),a!==n?(oa(),o=_n(),o!==n?(ln=r,r=rn(a,o)):(un=r,r=n)):(un=r,r=n);else t=n;return t!==n&&(ln=e,t=function(e){return{type:"arithmetic",tail:e}}(t)),e=t,e}(),e===n&&(e=function(){let e,t,r;return e=un,t=Dn(),t!==n?(oa(),r=Nn(),r!==n?(ln=e,e=function(e,t){return{op:e,right:t}}(t,r)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=Dn(),t!==n?(oa(),r=zn(),r!==n?(ln=e,e=function(e,t){return{op:e,right:t}}(t,r)):(un=e,e=n)):(un=e,e=n)),e}(),e===n&&(e=function(){let e,t,r,a,o,i,s,u;return e=un,t=mr(),t!==n?(oa(),r=vr(),r!==n?(a=oa(),o=un,i=_n(),i!==n?(oa(),s=hr(),s!==n?(oa(),u=_n(),u!==n?(ln=o,o=function(e,t,n){return la(hn(),t,n)}(0,i,u)):(un=o,o=n)):(un=o,o=n)):(un=o,o=n),o!==n?(ln=e,e=function(e,t){return{op:"NOT"+e,right:t}}(r,o)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=vr(),t!==n?(oa(),r=un,a=_n(),a!==n?(o=oa(),i=hr(),i!==n?(oa(),s=_n(),s!==n?(ln=r,r=function(e,t,n){return la(hn(),t,n)}(0,a,s)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n),r!==n?(ln=e,e=function(e,t){return{op:e,right:t}}(t,r)):(un=e,e=n)):(un=e,e=n)),e}(),e===n&&(e=function(){let e,t,r,a;return e=un,t=fr(),t!==n?(oa(),r=mr(),r!==n?(oa(),a=_n(),a!==n?(ln=e,e=function(e,t){return{op:e+"NOT",right:t}}(t,a)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=fr(),t!==n?(oa(),r=_n(),r!==n?(ln=e,e=function(e,t){return{op:e,right:t}}(t,r)):(un=e,e=n)):(un=e,e=n)),e}(),e===n&&(e=function(){let e,t,r,a,o;return e=un,t=Cn(),t!==n?(oa(),r=Gn(),r!==n?(oa(),a=pr(),a!==n?(oa(),o=Jn(),o!==n?(ln=e,e=function(e,t,n){return{op:e,right:t,escape:n.value}}(t,r,o)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=Cn(),t!==n?(oa(),r=Gn(),r!==n?(ln=e,e=function(e,t){return{op:e,right:t,escape:""}}(t,r)):(un=e,e=n)):(un=e,e=n)),e}())))),e}(),a!==n?r=a:(un=r,r=n),r===n&&(r=null),ln=e,e=function(e,t){return""==t||null==t||null==t?e:"arithmetic"==t.type?ca(e,t.tail):ua(t.op,e,t.right,t.escape,hn())}(t,r)):(un=e,e=n),e}()),t}function xn(){let t;return e.substr(un,2)===u?(t=u,un+=2):(t=n,0===mn&&Ln(Pe)),t===n&&(62===e.charCodeAt(un)?(t=l,un++):(t=n,0===mn&&Ln(Ae)),t===n&&(e.substr(un,2)===c?(t=c,un+=2):(t=n,0===mn&&Ln(Fe)),t===n&&(e.substr(un,2)===f?(t=f,un+=2):(t=n,0===mn&&Ln($e)),t===n&&(t=e.charAt(un),ge.test(t)?un++:(t=n,0===mn&&Ln(Re)),t===n&&(e.substr(un,2)===d?(t=d,un+=2):(t=n,0===mn&&Ln(ke))))))),t}function Cn(){let e,t,r,a,o;return e=un,t=un,r=mr(),r!==n?(a=oa(),o=dr(),o!==n?(r=[r,a,o],t=r):(un=t,t=n)):(un=t,t=n),t!==n&&(ln=e,t=function(e){return e[0]+" "+e[2]}(t)),e=t,e===n&&(e=dr()),e}function Dn(){let e,t,r,a,o;return e=un,t=un,r=mr(),r!==n?(a=oa(),o=cr(),o!==n?(r=[r,a,o],t=r):(un=t,t=n)):(un=t,t=n),t!==n&&(ln=e,t=function(e){return e[0]+" "+e[2]}(t)),e=t,e===n&&(e=cr()),e}function _n(){let e,t,r,a,o,i;if(e=un,t=bn(),t!==n){for(r=[],a=un,oa(),o=Mn(),o!==n?(oa(),i=bn(),i!==n?(ln=a,a=an(0,o,i)):(un=a,a=n)):(un=a,a=n);a!==n;)r.push(a),a=un,oa(),o=Mn(),o!==n?(oa(),i=bn(),i!==n?(ln=a,a=an(0,o,i)):(un=a,a=n)):(un=a,a=n);ln=e,e=function(e,t){return ca(e,t)}(t,r)}else un=e,e=n;return e}function Mn(){let t;return t=e.charAt(un),ye.test(t)?un++:(t=n,0===mn&&Ln(Ue)),t===n&&(e.substr(un,2)===p?(t=p,un+=2):(t=n,0===mn&&Ln(Ve))),t}function bn(){let e,t,r,a,o,i;if(e=un,t=An(),t!==n){for(r=[],a=un,oa(),o=Pn(),o!==n?(oa(),i=An(),i!==n?(ln=a,a=on(0,o,i)):(un=a,a=n)):(un=a,a=n);a!==n;)r.push(a),a=un,oa(),o=Pn(),o!==n?(oa(),i=An(),i!==n?(ln=a,a=on(0,o,i)):(un=a,a=n)):(un=a,a=n);ln=e,e=function(e,t){return ca(e,t)}(t,r)}else un=e,e=n;return e}function Pn(){let t;return t=e.charAt(un),Le.test(t)?un++:(t=n,0===mn&&Ln(ze)),t}function An(){let e,t,r,a;return e=function(){let e;return e=Jn(),e===n&&(e=function(){let e,t,r,a;return e=un,t=function(){let e,t,r,a;return e=un,t=tr(),t!==n?(r=nr(),r!==n?(a=rr(),a!==n?(ln=e,e=function(e,t,n){return parseFloat(e+t+n)}(t,r,a)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=tr(),t!==n?(r=nr(),r!==n?(ln=e,e=function(e,t){return parseFloat(e+t)}(t,r)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=tr(),t!==n?(r=rr(),r!==n?(ln=e,e=function(e,t){return parseFloat(e+t)}(t,r)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=tr(),t!==n&&(ln=e,t=function(e){return parseFloat(e)}(t)),e=t))),e}(),t!==n?(r=un,mn++,a=$n(),mn--,a===n?r=void 0:(un=r,r=n),r!==n?(ln=e,e=function(e){return{type:"number",location:hn(),value:e}}(t)):(un=e,e=n)):(un=e,e=n),e}(),e===n&&(e=function(){let e,t;return e=un,t=ur(),t!==n&&(ln=e,t={type:"boolean",location:hn(),value:!0}),e=t,e===n&&(e=un,t=lr(),t!==n&&(ln=e,t={type:"boolean",location:hn(),value:!1}),e=t),e}(),e===n&&(e=function(){let e,t;return e=un,t=sr(),t!==n&&(ln=e,t={type:"null",location:hn(),value:null}),e=t,e}(),e===n&&(e=function(){let e,t,r;return e=un,t=Er(),t!==n?(oa(),r=Gn(),r!==n?(ln=e,e=function(e){return"string"===e.type&&function(e){!0!==/^(\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(e)&&wn("Date literal is invalid")}(e.value),{type:"date",location:hn(),value:e.value}}(r)):(un=e,e=n)):(un=e,e=n),e}(),e===n&&(e=function(){let e,t,r;return e=un,t=Or(),t!==n?(oa(),r=Gn(),r!==n?(ln=e,e=function(e){return"string"===e.type&&function(e){!0!==/^(\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(e)&&wn("Timestamp literal is invalid")}(e.value),{type:"timestamp",location:hn(),value:e.value}}(r)):(un=e,e=n)):(un=e,e=n),e}(),e===n&&(e=Zn(),e===n&&(e=function(){let e,t,r;return e=un,t=Sr(),t!==n?(oa(),r=Gn(),r!==n?(ln=e,e=function(e){return"string"===e.type&&function(e){!0!==/^(\d{1,2}):(\d{1,2}):(\d{1,2})$|^(\d{1,2}):(\d{1,2})$|^(\d{1,2}):(\d{1,2}):(\d{1,2}).([0-9]+)$/.test(e)&&wn("Time literal is invalid")}(e.value),{type:"time",location:hn(),value:e.value}}(r)):(un=e,e=n)):(un=e,e=n),e}()))))))),e}(),e===n&&(e=function(){let e,t,r,a,o,i,s,u;return e=un,t=Lr(),t!==n?(oa(),r=un,a=ra(),a!==n?(oa(),o=Kn(),o!==n?(oa(),i=Ir(),i!==n?(oa(),s=On(),s!==n?(oa(),u=aa(),u!==n?(ln=r,r=function(e,t){return la(hn(),e,t)}(o,s)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n),r===n&&(r=un,a=ra(),a!==n?(oa(),o=Kn(),o!==n?(oa(),i=na(),i!==n?(oa(),s=On(),s!==n?(oa(),u=aa(),u!==n?(ln=r,r=function(e,t){return la(hn(),e,t)}(o,s)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)),r!==n?(ln=e,e=function(e){return{type:"function",location:hn(),name:"extract",args:e}}(r)):(un=e,e=n)):(un=e,e=n),e}(),e===n&&(e=function(){let e,t,r,a,o,i,s,u,l,c,f;return e=un,t=yr(),t!==n?(oa(),r=un,a=ra(),a!==n?(oa(),o=On(),o!==n?(oa(),i=Ir(),i!==n?(oa(),s=On(),s!==n?(oa(),u=un,l=gr(),l!==n?(c=oa(),f=On(),f!==n?(oa(),u=f):(un=u,u=n)):(un=u,u=n),u===n&&(u=null),l=aa(),l!==n?(ln=r,r=function(e,t,n){return la(hn(),e,t,...n?[n]:[])}(o,s,u)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n),r===n&&(r=un,a=ra(),a!==n?(oa(),o=On(),o!==n?(oa(),i=na(),i!==n?(oa(),s=On(),s!==n?(oa(),u=na(),u!==n?(l=oa(),c=On(),c!==n?(f=aa(),f!==n?(ln=r,r=function(e,t,n){return la(hn(),e,t,n)}(o,s,c)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)),r!==n?(ln=e,e=function(e){return{type:"function",location:hn(),name:"substring",args:e}}(r)):(un=e,e=n)):(un=e,e=n),e}(),e===n&&(e=function(){let e,t,r,a,o,i,s,u,l;return e=un,t=Tr(),t!==n?(oa(),r=un,a=ra(),a!==n?(oa(),o=qn(),oa(),i=On(),i!==n?(oa(),s=Ir(),s!==n?(oa(),u=On(),u!==n?(oa(),l=aa(),l!==n?(ln=r,r=function(e,t,n){return la(hn(),e,t,n)}(o,i,u)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n),r===n&&(r=un,a=ra(),a!==n?(oa(),o=qn(),oa(),i=On(),i!==n?(oa(),s=aa(),s!==n?(ln=r,r=function(e,t){return la(hn(),e,t)}(o,i)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)),r!==n?(ln=e,e=function(e){return{type:"function",location:hn(),name:"trim",args:e}}(r)):(un=e,e=n)):(un=e,e=n),e}(),e===n&&(e=function(){let e,t,r,a,o,i,s,u;return e=un,t=Nr(),t!==n?(oa(),r=un,a=ra(),a!==n?(oa(),o=On(),o!==n?(oa(),i=cr(),i!==n?(oa(),s=On(),s!==n?(oa(),u=aa(),u!==n?(ln=r,r=function(e,t){return la(hn(),e,t)}(o,s)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n),r===n&&(r=un,a=ra(),a!==n?(oa(),o=On(),o!==n?(oa(),i=na(),i!==n?(oa(),s=On(),s!==n?(oa(),u=aa(),u!==n?(ln=r,r=function(e,t){return la(hn(),e,t)}(o,s)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)),r!==n?(ln=e,e=function(e){return{type:"function",location:hn(),name:"position",args:e}}(r)):(un=e,e=n)):(un=e,e=n),e}(),e===n&&(e=function(){let e,t,r,a,o,i,s,u;return e=un,t=_r(),t!==n?(oa(),r=un,a=ra(),a!==n?(oa(),o=On(),o!==n?(oa(),i=Mr(),i!==n?(oa(),s=Hn(),s!==n?(oa(),u=aa(),u!==n?(ln=r,r=function(e,t){return la(hn(),e,t)}(o,s)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n),r===n&&(r=un,a=ra(),a!==n?(oa(),o=On(),o!==n?(oa(),i=na(),i!==n?(oa(),s=Hn(),s!==n?(oa(),u=aa(),u!==n?(ln=r,r=function(e,t){return la(hn(),e,t)}(o,s)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)):(un=r,r=n)),r!==n?(ln=e,e=function(e){return{type:"function",location:hn(),name:"cast",args:e}}(r)):(un=e,e=n)):(un=e,e=n),e}(),e===n&&(e=function(){let e,t,r,a;return e=un,t=un,mn++,r=Lr(),mn--,r===n?t=void 0:(un=t,t=n),t!==n?(r=sa(),r!==n?(oa(),a=Nn(),a!==n?(ln=e,e=function(e,t){return{type:"function",location:hn(),name:e,args:t}}(r,a)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e}(),e===n&&(e=function(){let e;return e=function(){let e,t,r,a,o,i,s;if(e=un,t=Jr(),t!==n)if(oa(),r=On(),r!==n){for(oa(),a=[],o=un,i=Xn(),i!==n?(s=oa(),o=i):(un=o,o=n);o!==n;)a.push(o),o=un,i=Xn(),i!==n?(s=oa(),o=i):(un=o,o=n);o=Qr(),o!==n?(ln=e,e=function(e,t){return{type:"case-expression",location:hn(),format:"simple",operand:e,clauses:t,else:null,elseLocation:null}}(r,a)):(un=e,e=n)}else un=e,e=n;else un=e,e=n;if(e===n)if(e=un,t=Jr(),t!==n)if(oa(),r=On(),r!==n){for(oa(),a=[],o=un,i=Xn(),i!==n?(s=oa(),o=i):(un=o,o=n);o!==n;)a.push(o),o=un,i=Xn(),i!==n?(s=oa(),o=i):(un=o,o=n);o=er(),o!==n?(i=oa(),s=Qr(),s!==n?(ln=e,e=function(e,t,n){return{type:"case-expression",location:hn(),format:"simple",operand:e,clauses:t,else:n.value,elseLocation:n.location}}(r,a,o)):(un=e,e=n)):(un=e,e=n)}else un=e,e=n;else un=e,e=n;return e}(),e===n&&(e=function(){let e,t,r,a,o,i;if(e=un,t=Jr(),t!==n){for(oa(),r=[],a=un,o=Qn(),o!==n?(i=oa(),a=o):(un=a,a=n);a!==n;)r.push(a),a=un,o=Qn(),o!==n?(i=oa(),a=o):(un=a,a=n);a=Qr(),a!==n?(ln=e,e=function(e){return{type:"case-expression",location:hn(),format:"searched",clauses:e,else:null,elseLocation:null}}(r)):(un=e,e=n)}else un=e,e=n;if(e===n)if(e=un,t=Jr(),t!==n){for(oa(),r=[],a=un,o=Qn(),o!==n?(i=oa(),a=o):(un=a,a=n);a!==n;)r.push(a),a=un,o=Qn(),o!==n?(i=oa(),a=o):(un=a,a=n);a=er(),a!==n?(o=oa(),i=Qr(),i!==n?(ln=e,e=function(e,t){return{type:"case-expression",location:hn(),format:"searched",clauses:e,else:t.value,elseLocation:t.location}}(r,a)):(un=e,e=n)):(un=e,e=n)}else un=e,e=n;return e}()),e}(),e===n&&(e=function(){let e,t;return e=un,t=function(){let e,t;return e=un,t=function(){let e,t,r,a;if(e=un,t=$n(),t!==n){for(r=[],a=kn();a!==n;)r.push(a),a=kn();ln=e,e=function(e,t){return e+t.join("")}(t,r)}else un=e,e=n;return e}(),t!==n&&(ln=e),e=t,e}(),t!==n&&(ln=e,t=function(e){return/^CURRENT_DATE$/i.test(e)?{type:"current-time",location:hn(),mode:"date"}:/^CURRENT_TIMESTAMP$/i.test(e)?{type:"current-time",location:hn(),mode:"timestamp"}:/^CURRENT_TIME$/i.test(e)?{type:"current-time",location:hn(),mode:"time"}:/^CURRENT_USER$/i.test(e)?{type:"current-user",location:hn()}:{type:"column-reference",location:hn(),table:"",column:e}}(t)),e=t,e===n&&(e=un,t=function(){let e,t,r,a;return e=un,t=Vn(),t!==n?(r=function(){let e,t,r;for(e=un,t=[],r=Un();r!==n;)t.push(r),r=Un();return ln=e,t=function(e){return e.join("")}(t),e=t,e}(),a=Vn(),a!==n?(ln=e,e=r):(un=e,e=n)):(un=e,e=n),e}(),t!==n&&(ln=e,t=function(e){return{type:"column-reference",location:hn(),table:"",column:e,delimited:!0}}(t)),e=t),e}(),e===n&&(e=zn(),e===n&&(e=un,t=ra(),t!==n?(oa(),r=On(),r!==n?(oa(),a=aa(),a!==n?(ln=e,e=function(e){return e.paren=!0,e}(r)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n))))))))))),e}function Fn(){let e,t,r,a;if(e=un,t=$n(),t!==n){for(r=[],a=Rn();a!==n;)r.push(a),a=Rn();ln=e,e=function(e,t){return e+t.join("")}(t,r)}else un=e,e=n;return e}function $n(){let t;return t=e.charAt(un),Te.test(t)?un++:(t=n,0===mn&&Ln(He)),t}function Rn(){let t;return t=e.charAt(un),Ne.test(t)?un++:(t=n,0===mn&&Ln(qe)),t}function kn(){let t;return t=e.charAt(un),Oe.test(t)?un++:(t=n,0===mn&&Ln(Ke)),t}function Un(){let t;return t=function(){let t;return t=e.charAt(un),Oe.test(t)?un++:(t=n,0===mn&&Ln(Ke)),t}(),t===n&&(t=function(){let e,t,r;return e=un,t=Vn(),t!==n?(r=Vn(),r!==n?(ln=e,e='"'):(un=e,e=n)):(un=e,e=n),e}()),t}function Vn(){let t;return t=e.charAt(un),Ee.test(t)?un++:(t=n,0===mn&&Ln(Ze)),t}function zn(){let t,r,a,o;return t=un,r=un,64===e.charCodeAt(un)?(a=m,un++):(a=n,0===mn&&Ln(Ye)),a!==n?(o=Fn(),o!==n?(a=[a,o],r=a):(un=r,r=n)):(un=r,r=n),r!==n&&(ln=t,r=function(e){return{type:"parameter",location:hn(),value:e[1]}}(r)),t=r,t}function Hn(){let e,t,r,a,o;return e=un,t=br(),t===n&&(t=Pr()),t!==n&&(ln=e,t={type:"data-type",location:hn(),value:{type:"integer"}}),e=t,e===n&&(e=un,t=Ar(),t!==n&&(ln=e,t={type:"data-type",location:hn(),value:{type:"smallint"}}),e=t,e===n&&(e=un,t=Fr(),t!==n&&(ln=e,t={type:"data-type",location:hn(),value:{type:"float"}}),e=t,e===n&&(e=un,t=$r(),t!==n&&(ln=e,t={type:"data-type",location:hn(),value:{type:"real"}}),e=t,e===n&&(e=un,t=Er(),t!==n&&(ln=e,t={type:"data-type",location:hn(),value:{type:"date"}}),e=t,e===n&&(e=un,t=Or(),t!==n&&(ln=e,t={type:"data-type",location:hn(),value:{type:"timestamp"}}),e=t,e===n&&(e=un,t=Sr(),t!==n&&(ln=e,t={type:"data-type",location:hn(),value:{type:"time"}}),e=t,e===n&&(e=un,t=Rr(),t!==n?(oa(),r=ra(),r!==n?(oa(),a=ar(),a!==n?(oa(),o=aa(),o!==n?(ln=e,e=function(e){return{type:"data-type",location:hn(),value:{type:"varchar",size:parseInt(e)}}}(a)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)))))))),e}function qn(){let e,t;return e=un,t=xr(),t===n&&(t=Cr(),t===n&&(t=Dr())),t===n&&(t=null),ln=e,t=function(e){return{type:"string",location:hn(),value:e??"BOTH"}}(t),e=t,e}function Kn(){let e,t;return e=un,t=Vr(),t===n&&(t=qr(),t===n&&(t=Kr(),t===n&&(t=Zr(),t===n&&(t=Yr(),t===n&&(t=jr(),t===n&&(t=zr(),t===n&&(t=Hr(),t===n&&(t=Wr(),t===n&&(t=Br(),t===n&&(t=Gr())))))))))),t!==n&&(ln=e,t=function(e){return{type:"string",location:hn(),value:e}}(t)),e=t,e}function Zn(){let t,r,a,o,i;return t=un,r=Ur(),r!==n?(oa(),a=e.charAt(un),ye.test(a)?un++:(a=n,0===mn&&Ln(Ue)),a!==n?(oa(),o=Gn(),o!==n?(oa(),i=Yn(),i!==n?(ln=t,t=function(e,t,n){return{type:"interval",location:hn(),value:t,qualifier:n,op:e}}(a,o,i)):(un=t,t=n)):(un=t,t=n)):(un=t,t=n)):(un=t,t=n),t===n&&(t=un,r=Ur(),r!==n?(oa(),a=Gn(),a!==n?(oa(),o=Yn(),o!==n?(ln=t,t=function(e,t){return{type:"interval",location:hn(),value:e,qualifier:t,op:""}}(a,o)):(un=t,t=n)):(un=t,t=n)):(un=t,t=n)),t}function Yn(){let e,t,r,a;return e=un,t=function(){let e,t,r,a,o;return e=un,t=jn(),t!==n?(oa(),r=ra(),r!==n?(oa(),a=Bn(),a!==n?(oa(),o=aa(),o!==n?(ln=e,e=function(e,t){return{type:"interval-period",location:hn(),period:e.value,precision:t,secondary:null}}(t,a)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=jn(),t!==n&&(ln=e,t=function(e){return{type:"interval-period",location:hn(),period:e.value,precision:null,secondary:null}}(t)),e=t),e}(),t!==n?(oa(),r=kr(),r!==n?(oa(),a=function(){let e,t,r,a,o,i,s;return e=un,t=jn(),t!==n&&(ln=e,t=function(e){return{type:"interval-period",location:hn(),period:e.value,precision:null,secondary:null}}(t)),e=t,e===n&&(e=un,t=jr(),t!==n?(oa(),r=ra(),r!==n?(oa(),a=Bn(),a!==n?(oa(),o=na(),o!==n?(oa(),i=Wn(),i!==n?(oa(),s=aa(),s!==n?(ln=e,e=function(e,t){return{type:"interval-period",location:hn(),period:"second",precision:e,secondary:t}}(a,i)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=jr(),t!==n?(oa(),r=ra(),r!==n?(oa(),a=Bn(),a!==n?(oa(),o=aa(),o!==n?(ln=e,e=function(e){return{type:"interval-period",location:hn(),period:"second",precision:e,secondary:null}}(a)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=jr(),t!==n&&(ln=e,t={type:"interval-period",location:hn(),period:"second",precision:null,secondary:null}),e=t))),e}(),a!==n?(ln=e,e=function(e,t){return{type:"interval-qualifier",location:hn(),start:e,end:t}}(t,a)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e===n&&(e=function(){let e,t,r,a,o,i,s;return e=un,t=jn(),t!==n?(oa(),r=ra(),r!==n?(oa(),a=Wn(),a!==n?(oa(),o=aa(),o!==n?(ln=e,e=function(e,t){return{type:"interval-period",location:hn(),period:e.value,precision:t,secondary:null}}(t,a)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=jn(),t!==n&&(ln=e,t=function(e){return{type:"interval-period",location:hn(),period:e.value,precision:null,secondary:null}}(t)),e=t,e===n&&(e=un,t=jr(),t!==n?(oa(),r=ra(),r!==n?(oa(),a=Bn(),a!==n?(oa(),o=na(),o!==n?(oa(),i=Wn(),i!==n?(oa(),s=aa(),s!==n?(ln=e,e=function(e,t){return{type:"interval-period",location:hn(),period:"second",precision:e,secondary:t}}(a,i)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=jr(),t!==n?(oa(),r=ra(),r!==n?(oa(),a=Wn(),a!==n?(oa(),o=aa(),o!==n?(ln=e,e=function(e){return{type:"interval-period",location:hn(),period:"second",precision:e,secondary:null}}(a)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e===n&&(e=un,t=jr(),t!==n&&(ln=e,t={type:"interval-period",location:hn(),period:"second",precision:null,secondary:null}),e=t)))),e}()),e}function jn(){let e,t;return e=un,t=Kr(),t!==n&&(ln=e,t={type:"string",location:hn(),value:"day"}),e=t,e===n&&(e=un,t=Zr(),t!==n&&(ln=e,t={type:"string",location:hn(),value:"hour"}),e=t,e===n&&(e=un,t=Yr(),t!==n&&(ln=e,t={type:"string",location:hn(),value:"minute"}),e=t,e===n&&(e=un,t=qr(),t!==n&&(ln=e,t={type:"string",location:hn(),value:"month"}),e=t,e===n&&(e=un,t=Vr(),t!==n&&(ln=e,t={type:"string",location:hn(),value:"year"}),e=t)))),e}function Wn(){let e,t;return e=un,t=ar(),t!==n&&(ln=e,t=function(e){return parseFloat(e)}(t)),e=t,e}function Bn(){let e,t;return e=un,t=ar(),t!==n&&(ln=e,t=function(e){return parseFloat(e)}(t)),e=t,e}function Gn(){let e;return e=Jn(),e===n&&(e=zn()),e}function Jn(){let t,r,a,o,i;if(t=un,39===e.charCodeAt(un)?(r=h,un++):(r=n,0===mn&&Ln(je)),r===n&&(e.substr(un,2)===w?(r=w,un+=2):(r=n,0===mn&&Ln(We))),r!==n){for(a=[],o=un,e.substr(un,2)===v?(i=v,un+=2):(i=n,0===mn&&Ln(Be)),i!==n&&(ln=o,i="'"),o=i,o===n&&(o=e.charAt(un),Se.test(o)?un++:(o=n,0===mn&&Ln(Ge)));o!==n;)a.push(o),o=un,e.substr(un,2)===v?(i=v,un+=2):(i=n,0===mn&&Ln(Be)),i!==n&&(ln=o,i=sn()),o=i,o===n&&(o=e.charAt(un),Se.test(o)?un++:(o=n,0===mn&&Ln(Ge)));39===e.charCodeAt(un)?(o=h,un++):(o=n,0===mn&&Ln(je)),o!==n?(ln=t,t=function(e){return{type:"string",location:hn(),value:e.join("")}}(a)):(un=t,t=n)}else un=t,t=n;return t}function Qn(){let e,t,r,a,o;return e=un,t=Xr(),t!==n?(oa(),r=On(),r!==n?(oa(),a=ea(),a!==n?(oa(),o=On(),o!==n?(ln=e,e=function(e,t){return{type:"when-clause",location:hn(),operand:e,value:t}}(r,o)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e}function Xn(){let e,t,r,a,o;return e=un,t=Xr(),t!==n?(oa(),r=On(),r!==n?(oa(),a=ea(),a!==n?(oa(),o=On(),o!==n?(ln=e,e=function(e,t){return{type:"when-clause",location:hn(),operand:e,value:t}}(r,o)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n)):(un=e,e=n),e}function er(){let e,t,r;return e=un,t=ta(),t!==n?(oa(),r=On(),r!==n?(ln=e,e=function(e){return{type:"else-clause",location:hn(),value:e}}(r)):(un=e,e=n)):(un=e,e=n),e}function tr(){let t,r,a;return t=ar(),t===n&&(t=un,r=e.charAt(un),ye.test(r)?un++:(r=n,0===mn&&Ln(Ue)),r!==n?(a=ar(),a!==n?(ln=t,t=function(e,t){return e[0]+t}(r,a)):(un=t,t=n)):(un=t,t=n)),t}function nr(){let t,r,a;return t=un,46===e.charCodeAt(un)?(r=I,un++):(r=n,0===mn&&Ln(Je)),r!==n?(a=ar(),a===n&&(a=null),ln=t,t=function(e){return"."+(null!=e?e:"")}(a)):(un=t,t=n),t}function rr(){let e,t,r;return e=un,t=ir(),t!==n?(r=ar(),r!==n?(ln=e,e=function(e,t){return e+t}(t,r)):(un=e,e=n)):(un=e,e=n),e}function ar(){let e,t,r;if(e=un,t=[],r=or(),r!==n)for(;r!==n;)t.push(r),r=or();else t=n;return t!==n&&(ln=e,t=function(e){return e.join("")}(t)),e=t,e}function or(){let t;return t=e.charAt(un),xe.test(t)?un++:(t=n,0===mn&&Ln(Qe)),t}function ir(){let t,r,a;return t=un,r=e.charAt(un),Ce.test(r)?un++:(r=n,0===mn&&Ln(Xe)),r!==n?(a=e.charAt(un),ye.test(a)?un++:(a=n,0===mn&&Ln(Ue)),a===n&&(a=null),ln=t,t=function(e,t){return"e"+(null===t?"":t)}(0,a)):(un=t,t=n),t}function sr(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===g?un+=4:(r=n,0===mn&&Ln(et)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(r=[r,a],t=r):(un=t,t=n)):(un=t,t=n),t}function ur(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===y?un+=4:(r=n,0===mn&&Ln(tt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(r=[r,a],t=r):(un=t,t=n)):(un=t,t=n),t}function lr(){let t,r,a,o;return t=un,r=e.substr(un,5),r.toLowerCase()===L?un+=5:(r=n,0===mn&&Ln(nt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(r=[r,a],t=r):(un=t,t=n)):(un=t,t=n),t}function cr(){let t,r,a,o;return t=un,r=e.substr(un,2),r.toLowerCase()===T?un+=2:(r=n,0===mn&&Ln(rt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="IN"):(un=t,t=n)):(un=t,t=n),t}function fr(){let t,r,a,o;return t=un,r=e.substr(un,2),r.toLowerCase()===N?un+=2:(r=n,0===mn&&Ln(at)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="IS"):(un=t,t=n)):(un=t,t=n),t}function dr(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===O?un+=4:(r=n,0===mn&&Ln(ot)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="LIKE"):(un=t,t=n)):(un=t,t=n),t}function pr(){let t,r,a,o;return t=un,r=e.substr(un,6),r.toLowerCase()===E?un+=6:(r=n,0===mn&&Ln(it)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="ESCAPE"):(un=t,t=n)):(un=t,t=n),t}function mr(){let t,r,a,o;return t=un,r=e.substr(un,3),r.toLowerCase()===S?un+=3:(r=n,0===mn&&Ln(st)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="NOT"):(un=t,t=n)):(un=t,t=n),t}function hr(){let t,r,a,o;return t=un,r=e.substr(un,3),r.toLowerCase()===x?un+=3:(r=n,0===mn&&Ln(ut)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="AND"):(un=t,t=n)):(un=t,t=n),t}function wr(){let t,r,a,o;return t=un,r=e.substr(un,2),r.toLowerCase()===C?un+=2:(r=n,0===mn&&Ln(lt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="OR"):(un=t,t=n)):(un=t,t=n),t}function vr(){let t,r,a,o;return t=un,r=e.substr(un,7),r.toLowerCase()===D?un+=7:(r=n,0===mn&&Ln(ct)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="BETWEEN"):(un=t,t=n)):(un=t,t=n),t}function Ir(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===_?un+=4:(r=n,0===mn&&Ln(ft)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="FROM"):(un=t,t=n)):(un=t,t=n),t}function gr(){let t,r,a,o;return t=un,r=e.substr(un,3),r.toLowerCase()===M?un+=3:(r=n,0===mn&&Ln(dt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="FOR"):(un=t,t=n)):(un=t,t=n),t}function yr(){let t,r,a,o;return t=un,r=e.substr(un,9),r.toLowerCase()===b?un+=9:(r=n,0===mn&&Ln(pt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="SUBSTRING"):(un=t,t=n)):(un=t,t=n),t}function Lr(){let t,r,a,o;return t=un,r=e.substr(un,7),r.toLowerCase()===P?un+=7:(r=n,0===mn&&Ln(mt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="EXTRACT"):(un=t,t=n)):(un=t,t=n),t}function Tr(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===A?un+=4:(r=n,0===mn&&Ln(ht)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="TRIM"):(un=t,t=n)):(un=t,t=n),t}function Nr(){let t,r,a,o;return t=un,r=e.substr(un,8),r.toLowerCase()===F?un+=8:(r=n,0===mn&&Ln(wt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="POSITION"):(un=t,t=n)):(un=t,t=n),t}function Or(){let t,r,a,o;return t=un,r=e.substr(un,9),r.toLowerCase()===$?un+=9:(r=n,0===mn&&Ln(vt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="TIMESTAMP"):(un=t,t=n)):(un=t,t=n),t}function Er(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===R?un+=4:(r=n,0===mn&&Ln(It)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="DATE"):(un=t,t=n)):(un=t,t=n),t}function Sr(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===k?un+=4:(r=n,0===mn&&Ln(gt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="TIME"):(un=t,t=n)):(un=t,t=n),t}function xr(){let t,r,a,o;return t=un,r=e.substr(un,7),r.toLowerCase()===U?un+=7:(r=n,0===mn&&Ln(yt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="LEADING"):(un=t,t=n)):(un=t,t=n),t}function Cr(){let t,r,a,o;return t=un,r=e.substr(un,8),r.toLowerCase()===V?un+=8:(r=n,0===mn&&Ln(Lt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="TRAILING"):(un=t,t=n)):(un=t,t=n),t}function Dr(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===z?un+=4:(r=n,0===mn&&Ln(Tt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="BOTH"):(un=t,t=n)):(un=t,t=n),t}function _r(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===H?un+=4:(r=n,0===mn&&Ln(Nt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="CAST"):(un=t,t=n)):(un=t,t=n),t}function Mr(){let t,r,a,o;return t=un,r=e.substr(un,2),r.toLowerCase()===q?un+=2:(r=n,0===mn&&Ln(Ot)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="AS"):(un=t,t=n)):(un=t,t=n),t}function br(){let t,r,a,o;return t=un,r=e.substr(un,7),r.toLowerCase()===K?un+=7:(r=n,0===mn&&Ln(Et)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="INTEGER"):(un=t,t=n)):(un=t,t=n),t}function Pr(){let t,r,a,o;return t=un,r=e.substr(un,3),r.toLowerCase()===Z?un+=3:(r=n,0===mn&&Ln(St)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="INT"):(un=t,t=n)):(un=t,t=n),t}function Ar(){let t,r,a,o;return t=un,r=e.substr(un,8),r.toLowerCase()===Y?un+=8:(r=n,0===mn&&Ln(xt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="SMALLINT"):(un=t,t=n)):(un=t,t=n),t}function Fr(){let t,r,a,o;return t=un,r=e.substr(un,5),r.toLowerCase()===j?un+=5:(r=n,0===mn&&Ln(Ct)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="FLOAT"):(un=t,t=n)):(un=t,t=n),t}function $r(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===B?un+=4:(r=n,0===mn&&Ln(Dt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="REAL"):(un=t,t=n)):(un=t,t=n),t}function Rr(){let t,r,a,o;return t=un,r=e.substr(un,7),r.toLowerCase()===G?un+=7:(r=n,0===mn&&Ln(_t)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="VARCHAR"):(un=t,t=n)):(un=t,t=n),t}function kr(){let t,r,a,o;return t=un,r=e.substr(un,2),r.toLowerCase()===J?un+=2:(r=n,0===mn&&Ln(Mt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="TO"):(un=t,t=n)):(un=t,t=n),t}function Ur(){let t,r,a,o;return t=un,r=e.substr(un,8),r.toLowerCase()===Q?un+=8:(r=n,0===mn&&Ln(bt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="INTERVAL"):(un=t,t=n)):(un=t,t=n),t}function Vr(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===X?un+=4:(r=n,0===mn&&Ln(Pt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="YEAR"):(un=t,t=n)):(un=t,t=n),t}function zr(){let t,r,a,o;return t=un,r=e.substr(un,13),r.toLowerCase()===ee?un+=13:(r=n,0===mn&&Ln(At)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="TIMEZONE_HOUR"):(un=t,t=n)):(un=t,t=n),t}function Hr(){let t,r,a,o;return t=un,r=e.substr(un,15),r.toLowerCase()===te?un+=15:(r=n,0===mn&&Ln(Ft)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="TIMEZONE_MINUTE"):(un=t,t=n)):(un=t,t=n),t}function qr(){let t,r,a,o;return t=un,r=e.substr(un,5),r.toLowerCase()===ne?un+=5:(r=n,0===mn&&Ln($t)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="MONTH"):(un=t,t=n)):(un=t,t=n),t}function Kr(){let t,r,a,o;return t=un,r=e.substr(un,3),r.toLowerCase()===re?un+=3:(r=n,0===mn&&Ln(Rt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="DAY"):(un=t,t=n)):(un=t,t=n),t}function Zr(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===ae?un+=4:(r=n,0===mn&&Ln(kt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="HOUR"):(un=t,t=n)):(un=t,t=n),t}function Yr(){let t,r,a,o;return t=un,r=e.substr(un,6),r.toLowerCase()===oe?un+=6:(r=n,0===mn&&Ln(Ut)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="MINUTE"):(un=t,t=n)):(un=t,t=n),t}function jr(){let t,r,a,o;return t=un,r=e.substr(un,6),r.toLowerCase()===ie?un+=6:(r=n,0===mn&&Ln(Vt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="SECOND"):(un=t,t=n)):(un=t,t=n),t}function Wr(){let t,r,a,o;return t=un,r=e.substr(un,3),r.toLowerCase()===se?un+=3:(r=n,0===mn&&Ln(zt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="DOW"):(un=t,t=n)):(un=t,t=n),t}function Br(){let t,r,a,o;return t=un,r=e.substr(un,3),r.toLowerCase()===ue?un+=3:(r=n,0===mn&&Ln(Ht)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="DOY"):(un=t,t=n)):(un=t,t=n),t}function Gr(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===le?un+=4:(r=n,0===mn&&Ln(qt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="WEEK"):(un=t,t=n)):(un=t,t=n),t}function Jr(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===ce?un+=4:(r=n,0===mn&&Ln(Kt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="CASE"):(un=t,t=n)):(un=t,t=n),t}function Qr(){let t,r,a,o;return t=un,r=e.substr(un,3),r.toLowerCase()===fe?un+=3:(r=n,0===mn&&Ln(Zt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="END"):(un=t,t=n)):(un=t,t=n),t}function Xr(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===de?un+=4:(r=n,0===mn&&Ln(Yt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="WHEN"):(un=t,t=n)):(un=t,t=n),t}function ea(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===pe?un+=4:(r=n,0===mn&&Ln(jt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="THEN"):(un=t,t=n)):(un=t,t=n),t}function ta(){let t,r,a,o;return t=un,r=e.substr(un,4),r.toLowerCase()===me?un+=4:(r=n,0===mn&&Ln(Wt)),r!==n?(a=un,mn++,o=Rn(),mn--,o===n?a=void 0:(un=a,a=n),a!==n?(ln=t,t="ELSE"):(un=t,t=n)):(un=t,t=n),t}function na(){let t;return 44===e.charCodeAt(un)?(t=he,un++):(t=n,0===mn&&Ln(Bt)),t}function ra(){let t;return 40===e.charCodeAt(un)?(t=we,un++):(t=n,0===mn&&Ln(Gt)),t}function aa(){let t;return 41===e.charCodeAt(un)?(t=ve,un++):(t=n,0===mn&&Ln(Jt)),t}function oa(){let e,t;for(e=[],t=ia();t!==n;)e.push(t),t=ia();return e}function ia(){let t;return t=e.charAt(un),De.test(t)?un++:(t=n,0===mn&&Ln(Qt)),t}function sa(){let t,r,a,o;if(t=un,r=Fn(),r!==n&&(ln=t),t=r,t===n)if(t=un,96===e.charCodeAt(un)?(r=Ie,un++):(r=n,0===mn&&Ln(Xt)),r!==n){if(a=[],o=e.charAt(un),_e.test(o)?un++:(o=n,0===mn&&Ln(en)),o!==n)for(;o!==n;)a.push(o),o=e.charAt(un),_e.test(o)?un++:(o=n,0===mn&&Ln(en));else a=n;a!==n?(96===e.charCodeAt(un)?(o=Ie,un++):(o=n,0===mn&&Ln(Xt)),o!==n?(ln=t,t=function(e){return e.join("")}(a)):(un=t,t=n)):(un=t,t=n)}else un=t,t=n;return t}function ua(e,t,n,r,a){const o={type:"binary-expression",location:a,operator:e,left:t,right:n};return void 0!==r&&(o.escape=r),o}function la(e,...t){return{type:"expression-list",location:e,value:t}}function ca(e,t){let n=e;for(const{op:e,expr:r,location:{end:a}}of t)n=ua(e,n,r,void 0,{...n.location,end:a});return n}fn=o();const fa=fn!==n&&un===e.length;function da(){throw fn!==n&&un<e.length&&Ln({type:"end"}),function(e,t,n){return new W(W.buildMessage(e,t),e,t,n)}(pn,dn<e.length?function(t=un){const n=e.codePointAt(t);return void 0===n?"":String.fromCodePoint(n)}(dn):null,dn<e.length?yn(dn,dn+1):yn(dn,dn))}return t.peg$library?{peg$result:fn,peg$currPos:un,peg$FAILED:n,peg$maxFailExpected:pn,peg$maxFailPos:dn,peg$success:fa,peg$throw:fa?void 0:da}:fa?fn:void da()}class G{static parse(e){return B(e)}}function J(e,t){if(null!=e)switch(t(e),e.type){case"when-clause":J(e.operand,t),J(e.value,t);break;case"case-expression":for(const n of e.clauses)J(n,t);"simple"===e.format&&J(e.operand,t),null!==e.else&&J(e.else,t);break;case"expression-list":for(const n of e.value)J(n,t);break;case"unary-expression":J(e.expr,t);break;case"binary-expression":J(e.left,t),J(e.right,t);break;case"function":J(e.args,t);break;case"interval":J(e.value,t),J(e.qualifier,t);break;case"interval-qualifier":J(e.start,t),J(e.end,t)}}const Q=new Set(["current_timestamp","current_date","current_time"]);class X{constructor(e){this.staticData=e}makeBool(e){return fe(e)}featureValue(e,t,n,r){return Te(e,t,n,r)}equalsNull(e){return null===e}applyLike(e,t,n){return Le(e,t,n)}ensureArray(e){return de(e)}applyIn(e,t){return we(e,t)}currentTimestamp(e){return ve(e)}currentDate(e){return Ie(e)}currentTime(e){return ge(e)}makeSqlInterval(e,t,n){return c.createFromValueAndQualifier(e,t,n)}convertInterval(e){return c.isInterval(e)?e.valueInMilliseconds():e}compare(e,t,n){return k(t,n,e)}calculate(e,t,n,r){return Y(e,t,n,r)}evaluateTime(e){return D(e)}evaluateTimestamp(e,t,n){return _(e,t,n)}evaluateDate(e,t){return M(e,t)}evaluateFunction(e,t,n){return H(e,t,n)}lookup(e,t){const n=t[e];return void 0===n?null:n}between(e,t){return null==e||null==t[0]||null==t[1]?null:k(e,t[0],">=")&&k(e,t[1],"<=")}notbetween(e,t){return null==e||null==t[0]||null==t[1]?null:k(e,t[0],"<")||k(e,t[1],">")}ternaryNot(e){return pe(e)}ternaryAnd(e,t){return me(e,t)}ternaryOr(e,t){return he(e,t)}}function ee(e,...t){return`this.${e}(${t.join(", ")})`}function te(e){return void 0===e?"void 0":JSON.stringify(e)}function ne({type:e,period:t,precision:n,secondary:r}){return JSON.stringify({type:e,period:t,precision:n,secondary:r})}const re="feature",ae="lookups",oe="attributeAdapter",ie="fieldsIndex",se="timeZone",ue="currentUser";class le{constructor(e){this._parseTree=e,this._staticData=Object.create(null),this._nextStaticDataId=0,this._tempVars=new Set,this._nextTempVarId=0}compile(){const e=this._compileNode(this._parseTree),t=`\n ${this._tempVars.size>0?`var ${Array.from(this._tempVars).join(", ")};`:""}\n return this.convertInterval(${e});\n `;return new Function(re,ae,oe,ie,se,ue,t).bind(new X(this._staticData))}_storeStaticData(e){const t="static$"+this._nextStaticDataId++;return this._staticData[t]=e,t}_compileRefStaticData(e){return`this.staticData[${te(e)}]`}_generateTempVar(){const e="temp$"+this._nextTempVarId++;return this._tempVars.add(e),e}_compileSimpleCase(e){const t=this._compileNode(e.operand),n=this._generateTempVar(),r=[];for(const t of e.clauses){const e=ee("compare",te("="),n,this._compileNode(t.operand)),a=this._compileNode(t.value);r.push(`${e} ? (${a}) :`)}return null!=e.else?r.push(this._compileNode(e.else)):r.push(te(null)),`(${n} = ${t}, ${r.join(" ")})`}_compileSearchedCase(e){const t=[];for(const n of e.clauses){const e=ee("makeBool",this._compileNode(n.operand)),r=this._compileNode(n.value);t.push(`${e} ? (${r}) :`)}return null!=e.else?t.push(this._compileNode(e.else)):t.push(te(null)),t.join(" ")}_compileInExpr(e,t){const n=new Set,r=[];for(const e of t.value)"number"===e.type||"string"===e.type?n.add(e.value):r.push(e);const a=this._compileNode(e),o=ee("ensureArray",this._compileNode({type:"expression-list",location:t.location,value:r}));if(n.size>0){const e=this._compileRefStaticData(this._storeStaticData(n)),t=this._generateTempVar();return r.length>0?`(${t} = ${a}, ${e}.has(${t}) || ${ee("applyIn",t,o)})`:`(${t} = ${a}, ${t} == null ? null : ${e}.has(${t}))`}return ee("applyIn",a,o)}_compileNode(e){switch(e.type){case"interval":return ee("makeSqlInterval",this._compileNode(e.value),"interval-qualifier"===e.qualifier.type?function({type:e,start:t,end:n}){return`{type: ${te(e)}, start: ${ne(t)}, end: ${ne(n)}}`}(e.qualifier):ne(e.qualifier),te(e.op));case"case-expression":return"simple"===e.format?this._compileSimpleCase(e):this._compileSearchedCase(e);case"parameter":return ee("lookup",te(e.value.toLowerCase()),ae);case"expression-list":return`[${e.value.map(e=>this._compileNode(e)).join(", ")}]`;case"unary-expression":return ee("ternaryNot",this._compileNode(e.expr));case"binary-expression":switch(e.operator){case"AND":return ee("ternaryAnd",this._compileNode(e.left),this._compileNode(e.right));case"OR":return ee("ternaryOr",this._compileNode(e.left),this._compileNode(e.right));case"IS":if("null"!==e.right.type)throw new i.L("UnsupportedIsRhs");return ee("equalsNull",this._compileNode(e.left));case"ISNOT":if("null"!==e.right.type)throw new i.L("UnsupportedIsRhs");return`!${ee("equalsNull",this._compileNode(e.left))}`;case"IN":return this._compileInExpr(e.left,e.right);case"NOT IN":return ee("ternaryNot",this._compileInExpr(e.left,e.right));case"BETWEEN":return ee("between",this._compileNode(e.left),this._compileNode(e.right));case"NOTBETWEEN":return ee("notbetween",this._compileNode(e.left),this._compileNode(e.right));case"LIKE":return ee("applyLike",this._compileNode(e.left),this._compileNode(e.right),te(e.escape));case"NOT LIKE":return ee("ternaryNot",ee("applyLike",this._compileNode(e.left),this._compileNode(e.right),te(e.escape)));case"<>":case"<":case">":case">=":case"<=":case"=":return ee("compare",te(e.operator),this._compileNode(e.left),this._compileNode(e.right));case"*":case"-":case"+":case"/":case"||":return ee("calculate",te(e.operator),this._compileNode(e.left),this._compileNode(e.right),se);default:throw new i.L("UnsupportedOperator",{operator:e.operator})}case"null":case"boolean":case"string":case"number":return te(e.value);case"time":try{return this._compileRefStaticData(this._storeStaticData(D(e.value)))}catch{return ee("evaluateTime",te(e.value))}case"date":try{return this._compileRefStaticData(this._storeStaticData(M(e.value,"unknown")))}catch{return ee("evaluateDate",te(e.value),te("unknown"))}case"timestamp":try{return this._compileRefStaticData(this._storeStaticData(_(e.value,"unknown")))}catch{return ee("evaluateTimestamp",te(e.value),te("unknown"))}case"current-time":return"date"===e.mode?ee("currentDate",se):"time"===e.mode?ee("currentTime",se):ee("currentTimestamp",se);case"current-user":return ue;case"column-reference":return ee("featureValue",re,te(e.column),ie,oe);case"data-type":return function({type:e,size:t,withtimezone:n}){return JSON.stringify({type:e,size:t,withtimezone:n})}(e.value);case"function":return ee("evaluateFunction",te(e.name),this._compileNode(e.args),se)}throw new i.L("UnsupportedSyntax",{node:e.type})}}class ce{static create(e,t={}){return new ce(e,t.fieldsIndex,t.timeZone??void 0,t.currentUser)}constructor(e,t,n="UTC",r=null){this.fieldsIndex=t,this.timeZone=n,this.currentUser=r,this.parameters={},this._compiledExecutor=null,this._hasDateFunctions=void 0,this.parseTree=G.parse(e);const{isStandardized:a,isAggregate:o,currentUserRequired:i,referencedFieldNames:s}=this._extractExpressionInfo(t);this._referencedFieldNames=s,this.isStandardized=a,this.isAggregate=o,this.currentUserRequired=i}static convertValueToStorageFormat(e,t=null){if(null===t)return(0,A.$P)(e)?e.getTime():E(e)?e.toMillis():C(e)?e.toStorageFormat():x(e)?e.toStorageString():S(e)?e.toStorageFormat():e;switch(t){case"date":return(0,A.$P)(e)?e.getTime():E(e)?e.toMillis():C(e)?e.toMilliseconds():S(e)?e.toNumber():e;case"date-only":return(0,A.$P)(e)?o.n.fromDateJS(e).toString():C(e)?o.n.fromSqlTimeStampOffset(e).toString():E(e)?o.n.fromDateTime(e).toString():e;case"time-only":return(0,A.$P)(e)?d.k.fromDateJS(e).toStorageString():E(e)?d.k.fromDateTime(e).toStorageString():C(e)?d.k.fromSqlTimeStampOffset(e).toStorageString():x(e)?e.toStorageString():e;case"timestamp-offset":if((0,A.$P)(e))return f.g.fromJSDate(e).toStorageFormat();if(E(e))return f.g.fromDateTime(e).toStorageFormat();if(C(e))return e.toStorageFormat()}return e}get fieldNames(){return this._referencedFieldNames}testSet(e,t=Ne,n=this.currentUser){return!!this._evaluateNode(this.parseTree,null,t,e,n)}calculateValue(e,t=Ne,n=this.currentUser){const r=this._evaluateNode(this.parseTree,e,t,null,n);return c.isInterval(r)?r.valueInMilliseconds()/864e5:r}tryGetCompiledExecutor(){if(null!=this._compiledExecutor)return this._compiledExecutor;if((0,r.A)("esri-csp-restrictions"))return null;const e=new le(this.parseTree);return this._compiledExecutor=e.compile(),this._compiledExecutor}calculateValueCompiled(e,t=Ne,n=this.currentUser){const r=this.tryGetCompiledExecutor();return null==r?this.calculateValue(e,t):r(e,this.parameters,t,this.fieldsIndex,this.timeZone,n??null)}testFeature(e,t=Ne,n=this.currentUser){return!!this._evaluateNode(this.parseTree,e,t,null,n)}testFeatureCompiled(e,t=Ne,n=this.currentUser){const r=this.tryGetCompiledExecutor();return null==r?this.testFeature(e,t):!!r(e,this.parameters,t,this.fieldsIndex,this.timeZone,n??null)}get hasDateFunctions(){return null!=this._hasDateFunctions||(this._hasDateFunctions=!1,J(this.parseTree,e=>{"current-time"===e.type?this._hasDateFunctions=!0:"function"===e.type&&(this._hasDateFunctions=this._hasDateFunctions||Q.has(e.name.toLowerCase()))})),this._hasDateFunctions}getFunctions(){const e=new Set;return J(this.parseTree,t=>{"function"===t.type&&e.add(t.name.toLowerCase())}),Array.from(e)}getExpressions(){const e=new Map;return J(this.parseTree,t=>{if("function"===t.type){const n=t.name.toLowerCase(),r=t.args.value[0];if("column-reference"===r.type){const t=r.column,a=`${n}-${t}`;e.has(a)||e.set(a,{aggregateType:n,field:t})}}}),[...e.values()]}getVariables(){const e=new Set;return J(this.parseTree,t=>{"parameter"===t.type&&e.add(t.value.toLowerCase())}),Array.from(e)}_extractExpressionInfo(e){const t=[],n=new Set;let r=!0,o=!1,i=!1;return J(this.parseTree,s=>{switch(s.type){case"column-reference":{const r=e?.get(s.column);let a,o;r?a=o=r.name??"":(o=s.column,a=o.toLowerCase()),n.has(a)||(n.add(a),t.push(o)),s.column=o;break}case"current-user":i=!0;break;case"function":{const{name:e,args:t}=s,n=t.value.length;r&&(r=function(e,t){const n=Z[e.toLowerCase()];return null!=n&&t>=n.minParams&&t<=n.maxParams}(e,n)),!1===o&&(o=(0,a.M)(e,n));break}}}),{referencedFieldNames:Array.from(t),isStandardized:r,isAggregate:o,currentUserRequired:i}}_evaluateNode(e,t,n,r,o){let s;switch(e.type){case"interval":{const a=this._evaluateNode(e.value,t,n,r,o);return c.createFromValueAndQualifier(a,e.qualifier,e.op)}case"case-expression":if("simple"===e.format){const a=this._evaluateNode(e.operand,t,n,r,o);for(let i=0;i<e.clauses.length;i++)if(k(a,this._evaluateNode(e.clauses[i].operand,t,n,r,o),"="))return this._evaluateNode(e.clauses[i].value,t,n,r,o);if(null!==e.else)return this._evaluateNode(e.else,t,n,r,o)}else{for(let a=0;a<e.clauses.length;a++)if(fe(this._evaluateNode(e.clauses[a].operand,t,n,r,o)))return this._evaluateNode(e.clauses[a].value,t,n,r,o);if(null!==e.else)return this._evaluateNode(e.else,t,n,r,o)}return null;case"parameter":return s=this.parameters[e.value.toLowerCase()],(0,A.$P)(s)?m.c9.fromJSDate(s):null!=s&&"object"==typeof s&&"toDateTime"in s?s.toDateTime():s;case"expression-list":{const a=[];for(const i of e.value)a.push(this._evaluateNode(i,t,n,r,o));return a}case"unary-expression":return pe(this._evaluateNode(e.expr,t,n,r,o));case"binary-expression":switch(e.operator){case"AND":return me(this._evaluateNode(e.left,t,n,r,o),this._evaluateNode(e.right,t,n,r,o));case"OR":return he(this._evaluateNode(e.left,t,n,r,o),this._evaluateNode(e.right,t,n,r,o));case"IS":if("null"!==e.right.type)throw new i.L("UnsupportedIsRhs");return null===this._evaluateNode(e.left,t,n,r,o);case"ISNOT":if("null"!==e.right.type)throw new i.L("UnsupportedIsRhs");return null!==this._evaluateNode(e.left,t,n,r,o);case"IN":{const a=de(this._evaluateNode(e.right,t,n,r,o));return we(this._evaluateNode(e.left,t,n,r,o),a)}case"NOT IN":{const a=de(this._evaluateNode(e.right,t,n,r,o));return pe(we(this._evaluateNode(e.left,t,n,r,o),a))}case"BETWEEN":{const a=this._evaluateNode(e.left,t,n,r,o),i=this._evaluateNode(e.right,t,n,r,o);return null==a||null==i[0]||null==i[1]?null:k(a,i[0],">=")&&k(a,i[1],"<=")}case"NOTBETWEEN":{const a=this._evaluateNode(e.left,t,n,r,o),i=this._evaluateNode(e.right,t,n,r,o);return null==a||null==i[0]||null==i[1]?null:k(a,i[0],"<")||k(a,i[1],">")}case"LIKE":return Le(this._evaluateNode(e.left,t,n,r,o),this._evaluateNode(e.right,t,n,r,o),e.escape);case"NOT LIKE":return pe(Le(this._evaluateNode(e.left,t,n,r,o),this._evaluateNode(e.right,t,n,r,o),e.escape));case"<>":case"<":case">":case">=":case"<=":case"=":return k(this._evaluateNode(e.left,t,n,r,o),this._evaluateNode(e.right,t,n,r,o),e.operator);case"-":case"+":case"*":case"/":case"||":return Y(e.operator,this._evaluateNode(e.left,t,n,r,o),this._evaluateNode(e.right,t,n,r,o),this.timeZone)}case"null":case"boolean":case"string":case"number":return e.value;case"date":return e.parsedValue??=M(e.value,"unknown"),e.parsedValue;case"timestamp":return e.parsedValue??=_(e.value,"unknown"),e.parsedValue;case"time":return D(e.value);case"current-time":return"date"===e.mode?Ie(this.timeZone):"time"===e.mode?ge(this.timeZone):ve(this.timeZone);case"current-user":return o??null;case"column-reference":return Te(t,e.column,this.fieldsIndex,n);case"data-type":return e.value;case"function":{if(this.isAggregate&&(0,a.M)(e.name,e.args.value.length)){const t=[];for(const a of e.args?.value||[]){const e=[];for(const t of r||[])e.push(this._evaluateNode(a,t,n,null,o));t.push(e)}return(0,a.s)(e.name,t)}const i=this._evaluateNode(e.args,t,n,r,o);return H(e.name,i,this.timeZone)}}throw new i.L("UnsupportedSyntax",{node:e.type})}}function fe(e){return!0===e}function de(e){return Array.isArray(e)?e:[e]}function pe(e){return null!==e?!0!==e:null}function me(e,t){return null!=e&&null!=t?!0===e&&!0===t:!1!==e&&!1!==t&&null}function he(e,t){return null!=e&&null!=t?!0===e||!0===t:!0===e||!0===t||null}function we(e,t){if(null==e)return null;let n=!1;for(const r of t)if(null==r)n=null;else{if(e===r){n=!0;break}if($(e)&&$(r)&&(n=k(e,r,"="),n))break}return n}function ve(e){return N(new Date,e)}function Ie(e){return o.n.fromNow(e)}function ge(e){const t=N(new Date,e);return d.k.fromDateTime(t)}const ye="-[]/{}()*+?.\\^$|";function Le(e,t,n){return null==e?null:function(e,t){const n=t;let r="",a=0;for(let t=0;t<e.length;t++){const o=e.charAt(t);switch(a){case 0:o===n?a=1:ye.includes(o)?r+="\\"+o:r+="%"===o?".*":"_"===o?".":o;break;case 1:ye.includes(o)?r+="\\"+o:r+=o,a=0}}return new RegExp("^"+r+"$","m")}(t,n).test(e)}function Te(e,t,n,r){if("getAttributeSQL"in r)return r.getAttributeSQL(e,t);const a=r.getAttribute(e,t);if(null==a)return a;const i=n?.get(t);switch(i?.type){case"esriFieldTypeDate":case"date":return N(new Date(a),n?.getLuxonTimeZone(i.name)??m.mQ.utcInstance);case"esriFieldTypeDateOnly":case"date-only":return o.n.fromReader(a);case"esriFieldTypeTimeOnly":case"time-only":return d.k.fromReader(a);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return new f.g(a)}return a}const Ne={getAttribute:(e,t)=>(function(e){return e&&"object"==typeof e.attributes}(e)?e.attributes:e)[t]}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[73],{159:(e,t,i)=>{i.d(t,{A:()=>u});var n,r=i(31635),s=i(65008),o=i(10107),l=(i(44208),i(53966),i(87811),i(64108)),a=i(99157);let u=n=class extends s.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new n;for(let t=this.steps.length-1;t>=0;t--){const i=this.steps[t];e.steps.push(i.getInverse())}return e}};(0,r.Cg)([(0,o.MZ)({type:[a.A],nonNullable:!0})],u.prototype,"steps",void 0),u=n=(0,r.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformation")],u)},3330:(e,t,i)=>{i.d(t,{GB:()=>r,Qo:()=>o,Y4:()=>s});var n=i(28097);class r{static{this.instance=new n.oh("Etc/UTC")}}function s(e){return e instanceof n.bo?e===r.instance:"unknown"===e?.toString().toLowerCase()}function o(e){return s(e)?r.instance:e}},4197:(e,t,i)=>{i.d(t,{Vj:()=>u,cj:()=>a,jh:()=>s,l5:()=>l,xm:()=>o});var n=i(34275),r=i(9093);function s(e){return e<=n.y9?new Array(e).fill(0):new Float64Array(e)}function o(e){return((0,n.iu)(e)?e.byteLength/8:e.length)<=n.y9?Array.from(e):new Float64Array(e)}function l(e,t,i){return Array.isArray(e)?e.slice(t,t+i):e.subarray(t,t+i)}function a(e){return[...e]}function u(e){const t=(0,r.vt)();for(let i=0;i<16;++i)t[i]=e[i];return t}},6455:(e,t,i)=>{i.d(t,{FJ:()=>v,Dp:()=>w,KV:()=>b});var n=i(31635),r=i(93637),s=i(10107),o=(i(44208),i(53966),i(87811),i(64108)),l=i(89317),a=i(69540),u=i(7762),c=i(25482),p=i(43937),d=i(83960),m=i(13069);const h={write:{overridePolicy:(e,t,i)=>({enabled:!i||"scale"===i.filterMode})}};let f=class extends((0,a.OU)(c.o)){constructor(e){super(e),this.id=(0,m.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],f.prototype,"id",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:h})],f.prototype,"maxScale",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:h})],f.prototype,"minScale",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],f.prototype,"title",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],f.prototype,"where",void 0),f=(0,n.Cg)([(0,o.$)("esri.layers.support.DisplayFilter")],f);var y=i(41560);let g=class extends((0,a.OU)(c.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(u.A.ofType(f)),this.mode="manual"}writeFilters(e,t,i,n){const r=e.toArray();"scale"===this.mode&&r.sort((e,t)=>{const i=(0,d.oW)(t.minScale,e.minScale),n=e.maxScale-t.maxScale;return 0===i?n:i}),t[i]=r.map(e=>e.toJSON(n))}write(e,t){return super.write(e,(0,y.mW)(this,t))}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:{overridePolicy:(e,t,i)=>({enabled:"manual"===i.filterMode,isRequired:!0})}}})],g.prototype,"activeFilterId",void 0),(0,n.Cg)([(0,s.MZ)({type:u.A.ofType(f),nonNullable:!0,json:{write:!0}})],g.prototype,"filters",void 0),(0,n.Cg)([(0,p.K)("filters")],g.prototype,"writeFilters",null),(0,n.Cg)([(0,s.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],g.prototype,"mode",void 0),g=(0,n.Cg)([(0,o.$)("esri.layers.support.DisplayFilterInfo")],g);const v=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,n.Cg)([(0,s.MZ)(w)],i.prototype,"displayFilterEnabled",void 0),(0,n.Cg)([(0,s.MZ)(b)],i.prototype,"displayFilterInfo",void 0),i=(0,n.Cg)([(0,o.$)("esri.layers.mixins.DisplayFilteredLayer")],i),i},w={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:l.K,writer(e,t,i){(0,r.sM)(i,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},b={type:g,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:l.K},origins:{"web-scene":{write:!1,read:!1}}}}},6797:(e,t,i)=>{i.d(t,{Ui:()=>d});var n=i(65008),r=i(7762),s=i(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof n.A}function a(e){return e instanceof r.A?Object.keys(e.items):l(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof r.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function p(e,t){const i=e.diff;if(i&&"function"==typeof i)return i(e,t);const n=a(e),r=a(t);if(0===n.length&&0===r.length)return;if(!n.length||!r.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=r.filter(e=>!n.includes(e)),d=n.filter(e=>!r.includes(e)),m=n.filter(i=>r.includes(i)&&u(e,i)!==u(t,i)).concat(s,d).sort(),h=c(e);if(h&&o.has(h)&&m.length)return{type:"complete",oldValue:e,newValue:t};let f;const y=l(e)&&l(t);for(const n of m){const r=u(e,n),s=u(t,n);let o;if((y||"function"!=typeof r&&"function"!=typeof s)&&r!==s&&(null!=r||null!=s)){if(i&&i[n]&&"function"==typeof i[n])o=i[n]?.(r,s);else if(r instanceof Date&&s instanceof Date){if(r.getTime()===s.getTime())continue;o={type:"complete",oldValue:r,newValue:s}}else o="object"==typeof r&&"object"==typeof s&&c(r)===c(s)?p(r,s):{type:"complete",oldValue:r,newValue:s};null!=o&&(null!=f?f.diff[n]=o:f={type:"partial",diff:{[n]:o}})}}return f}function d(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:p(e,t)}},8303:(e,t,i)=>{i.d(t,{A:()=>M});var n=i(31635),r=i(92602),s=i(70333),o=i(78888),l=i(60999),a=i(49186),u=i(53966),c=i(97768),p=i(74887),d=i(84952),m=i(10107),h=(i(44208),i(87811),i(36005)),f=i(64108),y=i(43937),g=i(77548),v=i(20655),w=i(80812),b=i(41318),I=i(10407);const M=e=>{const t=e;let M=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new w.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:n}=await i.e(1204).then(i.bind(i,41204));return(0,p.Te)(t),await n({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,p.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,p.QP)(e),!0)))}async setUserPrivileges(e,t){if(!r.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:n},content:{updateItem:r}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",r)}catch(e){(0,p.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const n=!s.id?.findCredential(this.url),r=e===i.id;if(r&&i.portal.user)return this._getUserPrivileges(i,n);let o,l;if(r)o=i.portal.url;else try{o=await(0,g.wI)(this.url,t)}catch(e){(0,p.QP)(e)}if(!o||!(0,d.b8)(o,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(s.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,p.QP)(e)}const a=!0,u=!1,c=!1;if(!l)return{features:{edit:a,fullEdit:u},content:{updateItem:c}};try{if(r?await i.reload():(i=new w.default({id:e,portal:{url:o}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,n)}catch(e){(0,p.QP)(e)}return{features:{edit:a,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const i=(0,I.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,p.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const i=T.credential===t?T.user:await this._fetchEditingUser(e);return T.credential=t,T.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=s.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const n=`${i.owningSystemUrl}/sharing/rest`,r=v.A.getDefault();if(r&&r.loaded&&(0,d.S8)(r.restUrl)===(0,d.S8)(n))return r.user;const a=`${n}/community/self`,u=null!=e?e.signal:null,c=await(0,l.Ke)((0,o.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?b.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return i&&n&&!(0,d.ut)(n.restUrl,i.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,n.Cg)([(0,m.MZ)({type:w.default})],M.prototype,"portalItem",null),(0,n.Cg)([(0,h.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,n.Cg)([(0,y.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,n.Cg)([(0,m.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,m.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,n.Cg)([(0,f.$)("esri.layers.mixins.PortalLayer")],M),M},T={credential:null,user:null}},8947:(e,t,i)=>{i.d(t,{L:()=>o});var n=i(60999),r=i(74887),s=i(67076);async function o(e,t,i){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const l=await(0,n.Ke)(o.populateFromStyle());if((0,r.Te)(i),!1===l.ok){const i=l.error;t?.messages&&t.messages.push(new s.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${i.message}`,{error:i,context:t})),e.clear("renderer",t?.origin)}}}},9093:(e,t,i)=>{function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function r(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}i.d(t,{o8:()=>r,vt:()=>n,zK:()=>s});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:r,create:n,fromValues:function(e,t,i,n,r,s,o,l,a,u,c,p,d,m,h,f){return[e,t,i,n,r,s,o,l,a,u,c,p,d,m,h,f]}},Symbol.toStringTag,{value:"Module"}))},9762:(e,t,i)=>{i.r(t),i.d(t,{projectBuffer:()=>r});var n=i(37539);function r(e,t,i,r,s,o,l=Math.floor(e.length/3)){const a=(0,n.jd)(t,s);if(null==a)return!1;if(a===n.pO){if(e===r&&i===o)return!0;const t=i+3*l;for(let n=i,s=o;n<t;n++,s++)r[s]=e[n];return!0}const u=i+3*l;for(let t=i,n=o;t<u;t+=3,n+=3)a(e,t,r,n);return!0}},10184:(e,t,i)=>{i.d(t,{A:()=>p});var n=i(31635),r=i(69540),s=i(25482),o=i(88930),l=i(10107),a=(i(44208),i(53966),i(87811),i(93223)),u=i(64108),c=i(73133);let p=class extends((0,r.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,n.Cg)([(0,a.e)(c.j,{nonNullable:!0})],p.prototype,"unit",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,n.Cg)([(0,u.$)("esri.time.TimeInterval")],p)},10407:(e,t,i)=>{i.d(t,{It:()=>m,LG:()=>o,OM:()=>u,Sm:()=>c,Y:()=>l,bK:()=>a,mm:()=>d,sQ:()=>p});var n=i(91218),r=i(16930),s=i(28735);function o(e,t){if(!l(e,t)){const i=e.typeKeywords;i?i.push(t):e.typeKeywords=[t]}}function l(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return l(e,d.HOSTED_SERVICE)}function u(e,t){const i=e.typeKeywords;if(i){const e=i.indexOf(t);e>-1&&i.splice(e,1)}}function c(e,t,i){i?o(e,t):u(e,t)}async function p(e){const t=e.clone().normalize();let i;if(t.length>1)for(const e of t)i?e.width>i.width&&(i=e):i=e;else i=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,s.ci)(e);const i=r.A.WGS84;return await(0,n.initializeProjection)(t,i),(0,n.project)(e,i)}(i)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function m(e){const{portal:t,isOrgItem:i,itemControl:n}=e,r=t.user?.privileges;let s=!r||r.includes("features:user:edit"),o=!!i&&!!r?.includes("features:user:fullEdit");const l="update"===n||"admin"===n;return l?o=s=!0:o&&(s=!0),{features:{edit:s,fullEdit:o},content:{updateItem:l}}}},13069:(e,t,i)=>{i.d(t,{AG:()=>l,lk:()=>r,vD:()=>o,yS:()=>s});const n="randomUUID"in crypto;function r(){if(n)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${r().toUpperCase()}}`}function o(){return`{${r()}}`}function l(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},17036:(e,t,i)=>{i.d(t,{p:()=>a});var n=i(44208),r=i(53966),s=i(20437),o=i(95466),l=i(30524);function a(){return{fields:{type:[s.A],value:null,set:function(e){if(e&&(0,n.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");r.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const i=this.fieldsIndex?.has(t);i||r.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.DB)(this.fieldsIndex,e)}}}}},18768:(e,t,i)=>{i.d(t,{b:()=>a});var n=i(31635),r=i(53966),s=i(10107),o=(i(44208),i(87811),i(64108)),l=i(60694);const a=e=>{const t=e;let i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.Jf)(e,r.A.getLogger(this)))}};return(0,n.Cg)([(0,s.MZ)()],i.prototype,"title",null),(0,n.Cg)([(0,s.MZ)({type:String})],i.prototype,"url",null),i=(0,n.Cg)([(0,o.$)("esri.layers.mixins.ArcGISService")],i),i}},20437:(e,t,i)=>{i.d(t,{A:()=>f});var n,r=i(31635),s=i(66552),o=i(25482),l=i(10107),a=i(56507),u=(i(44208),i(87811),i(93223)),c=i(36005),p=i(64108),d=i(80451),m=i(98453);const h=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let f=class extends o.o{static{n=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let i=null;try{i=t?JSON.parse(t):null}catch(e){}return i?.value??null}readValueType(e,{description:t}){let i=null;try{i=t?JSON.parse(t):null}catch(e){}return i?h.fromJSON(i.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],f.prototype,"alias",void 0),(0,r.Cg)([(0,l.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],f.prototype,"defaultValue",void 0),(0,r.Cg)([(0,l.MZ)()],f.prototype,"description",void 0),(0,r.Cg)([(0,c.w)("description")],f.prototype,"readDescription",null),(0,r.Cg)([(0,l.MZ)({types:d.gK,json:{read:{reader:d.rS},write:!0}})],f.prototype,"domain",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"editable",void 0),(0,r.Cg)([(0,l.MZ)({type:a.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],f.prototype,"length",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],f.prototype,"name",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],f.prototype,"nullable",void 0),(0,r.Cg)([(0,u.e)(m.m)],f.prototype,"type",void 0),(0,r.Cg)([(0,l.MZ)()],f.prototype,"valueType",void 0),(0,r.Cg)([(0,c.w)("valueType",["description"])],f.prototype,"readValueType",null),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{read:!1}})],f.prototype,"visible",void 0),f=n=(0,r.Cg)([(0,p.$)("esri.layers.support.Field")],f)},32730:(e,t,i)=>{i.d(t,{BI:()=>y,D3:()=>h,XJ:()=>f,lc:()=>m,mX:()=>v,rU:()=>g,tH:()=>T});var n=i(799);const r="__begin__",s="__end__",o=new RegExp(r,"ig"),l=new RegExp(s,"ig"),a=new RegExp("^"+r,"i"),u=new RegExp(s+"$","i"),c='"',p=c+" + ",d=" + "+c;function m(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function h(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function f(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=m(e.labelExpression),t.type="conventional"),t}function y(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return v(t.expression);case"arcade":return t.expression}return null}function g(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(w);return t?.[1].trim()||null}(t.expression);case"arcade":return T(t.expression)}return null}function v(e){let t;return e?(t=(0,n.HC)(e,e=>r+'$feature["'+e+'"]'+s),t=a.test(t)?t.replace(a,""):c+t,t=u.test(t)?t.replace(u,""):t+c,t=t.replaceAll(o,p).replaceAll(l,d)):t='""',t}const w=/^\s*\{([^}]+)\}\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,I=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,M=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function T(e){if(!e)return null;let t=b.exec(e)||I.exec(e);return t?t[1]||t[3]:(t=M.exec(e),t?t[2]:null)}},37539:(e,t,i)=>{i.d(t,{pO:()=>f,jd:()=>d,Tp:()=>m,w5:()=>p});var n=i(34727),r=i(83047),s=i(73941),o=i(79258);Math.PI;const l=o.$O.radius,a=o.$O.eccentricitySquared,u={a1:l*a,a2:l*a*l*a,a3:l*a*a/2,a4:l*a*l*a*2.5,a5:l*a+l*a*a/2,a6:1-a};o.$O.radius,o.$O.flattening,o.Sw.radius,o.Sw.flattening,o.sH.radius,o.sH.flattening,o.sH.radius;var c=i(21325);const p={2:{5:f,7:null,9:null,10:f,1:T,6:null,8:null,0:null,3:g,11:v,2:f,4:A},5:{5:f,7:null,9:null,10:f,1:T,6:null,8:null,0:null,3:g,11:v,2:f,4:A},7:{5:null,7:f,9:null,10:f,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:f,10:f,1:null,6:null,8:I,0:null,3:null,11:null,2:null,4:null},3:{5:y,7:null,9:null,10:y,1:function(e,t,i,n){const r=e[t]/E,s=R-2*Math.atan(Math.exp(-e[t+1]/E)),o=E+e[t+2],l=Math.cos(s)*o;i[n]=Math.cos(r)*l,i[n+1]=Math.sin(r)*l,i[n+2]=Math.sin(s)*o},6:null,8:null,0:null,3:f,11:function(e,t,i,n){y(e,t,i,n),v(i,n,i,n)},2:y,4:function(e,t,i,n){y(e,t,i,n),A(i,n,i,n)}},4:{5:F,7:null,9:null,10:F,1:function(e,t,i,n){F(e,t,i,n),T(i,n,i,n)},6:null,8:null,0:null,3:function(e,t,i,n){F(e,t,i,n),g(i,n,i,n)},11:function(e,t,i,n){F(e,t,i,n),v(i,n,i,n)},2:F,4:f},1:{5:C,7:null,9:null,10:C,1:f,6:null,8:null,0:null,3:function(e,t,i,n){C(e,t,i,n),g(i,n,i,n)},11:function(e,t,i,n){C(e,t,i,n),v(i,n,i,n)},2:C,4:function(e,t,i,n){C(e,t,i,n),A(i,n,i,n)}},6:{5:null,7:S,9:null,10:S,1:null,6:f,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:_,10:_,1:null,6:null,8:f,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:f,3:null,11:null,2:null,4:null},10:{5:f,7:f,9:f,10:f,1:T,6:M,8:I,0:null,3:g,11:v,2:f,4:A},11:{5:w,7:null,9:null,10:w,1:function(e,t,i,n){w(e,t,i,n),T(i,n,i,n)},6:null,8:null,0:null,3:function(e,t,i,n){w(e,t,i,n),g(i,n,i,n)},11:f,2:w,4:function(e,t,i,n){w(e,t,i,n),A(i,n,i,n)}}};function d(e,t){return m(e,t)?.projector}function m(e,t){if(null==e||null==t)return null;if(j.source.spatialReference===e&&j.dest.spatialReference===t)return j;const i=h(e,j.source),n=h(t,j.dest);return 0===i&&0===n?(0,c.aI)(e,t)?j.projector=f:j.projector=null:j.projector=p[i][n],j}function h(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,r.GA)(e,1)),(0,s.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===s.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===s.FY.wkt?t.spatialReferenceId=6:e.wkt===s.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function f(e,t,i,n){e!==i&&(i[n++]=e[t++],i[n++]=e[t++],i[n]=e[t])}function y(e,t,i,n){i[n]=Z*(e[t]/E),i[n+1]=Z*(R-2*Math.atan(Math.exp(-e[t+1]/E))),i[n+2]=e[t+2]}function g(e,t,i,r){!function(e,t,i,r,s){const o=.4999999*Math.PI,l=(0,n.qE)(O*e[t+1],-o,o),a=Math.sin(l);i[r++]=O*e[t]*s.radius,i[r++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),i[r]=e[t+2]}(e,t,i,r,o.$O)}function v(e,t,i,n){i[n]=e[t]*P,i[n+1]=e[t+1]*P,i[n+2]=e[t+2]}function w(e,t,i,n){i[n]=e[t]*N,i[n+1]=e[t+1]*N,i[n+2]=e[t+2]}function b(e,t,i,n,r){const s=r+e[t+2],o=O*e[t+1],l=O*e[t],a=Math.cos(o)*s;i[n]=Math.cos(l)*a,i[n+1]=Math.sin(l)*a,i[n+2]=Math.sin(o)*s}function I(e,t,i,n){b(e,t,i,n,o.Sw.radius)}function M(e,t,i,n){b(e,t,i,n,o.sH.radius)}function T(e,t,i,n){b(e,t,i,n,o.$O.radius)}function x(e,t,i,r,s){const o=e[t],l=e[t+1],a=e[t+2],u=Math.sqrt(o*o+l*l+a*a),c=(0,n.YN)(a/(0===u?1:u)),p=Math.atan2(l,o);i[r++]=Z*p,i[r++]=Z*c,i[r]=u-s}function _(e,t,i,n){x(e,t,i,n,o.Sw.radius)}function S(e,t,i,n){x(e,t,i,n,o.sH.radius)}function C(e,t,i,n){x(e,t,i,n,o.$O.radius)}function A(e,t,i,n){!function(e,t,i,n,r){const s=O*e[t],o=O*e[t+1],l=e[t+2],a=Math.sin(o),u=Math.cos(o),c=r.radius/Math.sqrt(1-r.eccentricitySquared*a*a);i[n++]=(c+l)*u*Math.cos(s),i[n++]=(c+l)*u*Math.sin(s),i[n++]=(c*(1-r.eccentricitySquared)+l)*a}(e,t,i,n,o.$O)}function F(e,t,i,n){const r=u,s=e[t],l=e[t+1],a=e[t+2];let c,p,d,m,h,f,y,g,v,w,b,I,M,T,x,_,S,C,A,F,j;c=Math.abs(a),p=s*s+l*l,d=Math.sqrt(p),m=p+a*a,h=Math.sqrt(m),F=Math.atan2(l,s),f=a*a/m,y=p/m,T=r.a2/h,x=r.a3-r.a4/h,y>.3?(g=c/h*(1+y*(r.a1+T+f*x)/h),A=Math.asin(g),w=g*g,v=Math.sqrt(1-w)):(v=d/h*(1-f*(r.a5-T-y*x)/h),A=Math.acos(v),w=1-v*v,g=Math.sqrt(w)),b=1-o.$O.eccentricitySquared*w,I=o.$O.radius/Math.sqrt(b),M=r.a6*I,T=d-I*v,x=c-M*g,S=v*T+g*x,_=v*x-g*T,C=_/(M/b+S),A+=C,j=S+_*C/2,a<0&&(A=-A),i[n++]=Z*F,i[n++]=Z*A,i[n]=j}const j={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:f},O=(0,n.kU)(1),Z=(0,n.KJ)(1),R=.5*Math.PI,E=o.$O.radius,P=E*Math.PI/180,N=180/(E*Math.PI)},39357:(e,t,i)=>{i.d(t,{H:()=>a});var n,r=i(31635),s=i(25482),o=i(10107),l=(i(44208),i(53966),i(87811),i(64108));let a=n=class extends s.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,r.Cg)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"name",void 0),(0,r.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],a.prototype,"code",void 0),a=n=(0,r.Cg)([(0,l.$)("esri.layers.support.CodedValue")],a)},41366:(e,t,i)=>{i.d(t,{K:()=>d,Q:()=>u});var n=i(31635),r=i(66552),s=i(53966),o=i(10107),l=(i(44208),i(87811),i(93223)),a=i(64108);const u=(0,r.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),c="percent-of-total",p="field",d=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&p||i&&c||null,t&&i&&s.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==p&&e!==c||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,n.Cg)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,n.Cg)([(0,l.e)(u,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,n.Cg)([(0,a.$)("esri.rest.support.NormalizationBinParametersMixin")],i),i}},41560:(e,t,i)=>{i.d(t,{Ch:()=>o,mW:()=>s});var n=i(34727),r=i(39516);function s(e,t){return{...t,filterMode:e.mode}}function o(e,t,i){const s=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:i,maxScale:n}of e.filters)t[0]=Math.max(t[0],c(i)),t[1]=Math.min(t[1],p(n));return t}(e);if(s&&((0,n.gg)(t,s[0])||(0,n.ZH)(i,s[1])))return"";const o=Array.from(l(e,t,i)),a=function(e,t,i){if(0===e.length)return!0;const r=c(e.at(0)?.minScale),s=p(e.at(-1)?.maxScale);if((0,n.ZH)(r,t)||(0,n.gg)(s,i))return!0;for(let t=0;t<e.length-1;t++){const i=e[t],r=e[t+1];if((0,n.ZH)(c(r.minScale),p(i.maxScale)))return!0}return!1}(o,t,i)?"1=1":o.map(e=>e.where||"1=1").reduce((e,t)=>(0,r.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,i){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const n of e.filters)a(n.minScale,n.maxScale,t,i)&&(yield n)}}function a(e,t,i,r){return e=c(e),i=c(i),t=p(t),!(!(0,n.Sp)(i,e)&&(r??i)>e||(0,n.Hx)(t,i)||void 0!==r&&(0,n.Sp)(r,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||Number.POSITIVE_INFINITY}function p(e){return e||0}},46140:(e,t,i)=>{i.d(t,{R:()=>r});var n=i(49186);let r=class e{constructor(e,t,i=""){this.major=e,this.minor=t,this._context=i}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",i=this._context&&this._context+" ";throw new n.A(t+"unsupported-version",`Required major ${i}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new e(this.major,this.minor,this._context)}static parse(t,i=""){const[r,s]=t.split("."),o=/^\s*\d+\s*$/;if(!r?.match||!o.test(r))throw new n.A((i&&i+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t});if(!s?.match||!o.test(s))throw new n.A((i&&i+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t});const l=parseInt(r,10),a=parseInt(s,10);return new e(l,a,i)}}},50498:(e,t,i)=>{i.d(t,{Ye:()=>p,gy:()=>c,yR:()=>d});var n=i(66552),r=i(5443),s=i(91075),o=i(48526),l=i(86738),a=i(39829),u=i(82799);const c=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),p=(0,n.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),d={base:s.A,key:"type",typeMap:{extent:r.A,multipoint:o.A,point:l.A,polyline:u.A,polygon:a.A}}},52106:(e,t,i)=>{i.d(t,{A:()=>M});var n,r=i(31635),s=i(37838),o=i(69540),l=i(51447),a=i(25482),u=i(53966),c=i(36708),p=i(24326),d=i(10107),m=(i(44208),i(87811),i(64108)),h=i(12195),f=i(65864),y=i(50498),g=i(55156),v=i(60950),w=i(54339),b=i(33910);function I(e){if(null==e)return null;const t={};for(const i in e){const n=e[i];n&&(t[i]=n.toJSON())}return 0!==Object.keys(t).length?t:null}let M=class extends((0,o.OU)(a.o)){static{n=this}constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this._version=0,Object.defineProperty(this,"uid",{value:(0,p.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new n({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[i,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,g.I)(this.origin);if(e)return(0,w.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,w.r)(this,t):null}getGlobalId(){const e=(0,g.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){return{aggregateGeometries:I(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,n){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const r={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(r.action=n),"attributes"===e&&(r.attributeName=n),this.layer.graphicChanged(r)}_watchMeshGeometryChanges(){this.addHandles([(0,c.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,r.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const n=(0,f.rS)(e[i]);n&&(t[i]=n)}return 0!==Object.keys(t).length?t:null}}})],M.prototype,"aggregateGeometries",null),(0,r.Cg)([(0,d.MZ)({value:null})],M.prototype,"attributes",null),(0,r.Cg)([(0,d.MZ)({value:null,types:y.yR,json:{read:f.rS}})],M.prototype,"geometry",null),(0,r.Cg)([(0,d.MZ)({type:Boolean})],M.prototype,"isAggregate",void 0),(0,r.Cg)([(0,d.MZ)({clonable:!1})],M.prototype,"layer",void 0),(0,r.Cg)([(0,d.MZ)({clonable:"reference"})],M.prototype,"origin",void 0),(0,r.Cg)([(0,d.MZ)({type:s.A,value:null})],M.prototype,"popupTemplate",null),(0,r.Cg)([(0,d.MZ)({clonable:"reference"})],M.prototype,"sourceLayer",void 0),(0,r.Cg)([(0,d.MZ)({value:null,types:b.Es})],M.prototype,"symbol",null),(0,r.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],M.prototype,"_version",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,value:!0})],M.prototype,"visible",null),M=n=(0,r.Cg)([(0,m.$)("esri.Graphic")],M)},53177:(e,t,i)=>{i.d(t,{A:()=>p});var n,r=i(31635),s=i(4718),o=i(10107),l=(i(44208),i(53966),i(93223)),a=i(64108),u=i(39357),c=i(76357);let p=class extends c.A{static{n=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const i=String(e);this.codedValues.some(e=>(String(e.code)===i&&(t=e.name),!!t))}return t}clone(){return new n({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,r.Cg)([(0,o.MZ)({type:[u.H],json:{write:{isRequired:!0}}})],p.prototype,"codedValues",void 0),(0,r.Cg)([(0,l.e)({codedValue:"coded-value"})],p.prototype,"type",void 0),p=n=(0,r.Cg)([(0,a.$)("esri.layers.support.CodedValueDomain")],p)},54339:(e,t,i)=>{function n(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const i=[];for(const n of t.fieldNames)i.push(e.attributes[n]??null);return JSON.stringify(i)}}}function r(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>n,r:()=>r})},55156:(e,t,i)=>{i.d(t,{I:()=>r,e:()=>n});const n=Symbol("idFieldsProviderSymbol");function r(e){return(t=e)&&n in t?e[n]:void 0;var t}},55674:(e,t,i)=>{i.d(t,{Ad:()=>m,Gj:()=>y,QY:()=>d,lL:()=>g,xR:()=>h});var n=i(66131),r=i(49186),s=(i(44208),i(44729)),o=i(15032),l=i(65864),a=i(95466),u=i(43668),c=i(98623);const p=["geometry","scale","timeProperties"];function d(e,t){if(null!=t)for(const i of p)t.hasArcadeDependency(i)&&e.add(i);return e}function m(e,t){return f.create(e,t,null,["$feature","$view"])}function h(e,t,i){return f.create(e,t,i,["$feature","$view","$config"])}class f{static async create(e,t,i,n){const{arcade:s,Dictionary:o}=await(0,u.l)();let l;try{l=s.parseScript(e)}catch(t){throw new r.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const a=s.scriptUsesGeometryEngine(l);a&&await s.enableGeometrySupport(),await s.loadDependentModules(new Set,l,null,!1,a);const c={vars:n.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},p=s.compileScript(l,c);let d=null;null!=i&&(d=new o(i),d.immutable=!0);const m=new o;return m.immutable=!1,m.setField("scale",0),new f(e,s,l,p,t,m,d,o)}constructor(e,t,i,n,r,s,o,l){this.script=e,this._arcade=t,this._syntaxTree=i,this._compiled=n,this._spatialReference=r,this._viewDict=s,this._configDict=o,this._dictionaryCtor=l,this._dependencies=new Map,this._featureReader=new y,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const i=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:r,currentEnd:s}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=r?null!=i?n.lY.epochToArcadeDate(r,i):n.lY.unknownEpochToArcadeDate(r):void 0,currentEnd:null!=s?null!=i?n.lY.epochToArcadeDate(s,i):n.lY.unknownEpochToArcadeDate(s):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:i})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class y{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,i){const n=t??new a.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=n.fields,this._boundSchema.fieldsIndex=n,this._boundSchema.spatialReference=i}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,l.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===c.L5}field(e,t=!0){const i=this._getField(e);if(i){const t=this._boundTarget.attributes[i.name];if(null==t)return null;switch(i.type){case"date-only":case"esriFieldTypeDateOnly":return s.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return n.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?n.lY.unknownEpochToArcadeDate(t):n.lY.epochToArcadeDate(t,this.contextTimeZone??c.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const i in e)t.push({name:i,alias:i,type:"string"==typeof e[i]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},62815:(e,t,i)=>{i.d(t,{N:()=>o});var n=i(83047),r=i(73941),s=i(21325);function o(e,t,i){if(null==t||null==i||i.vcsWkid||(0,s.aI)(t,i)||(0,r.xP)(t)||(0,r.xP)(i))return null;const o=(0,n.G9)(t)/(0,n.G9)(i);if(1===o)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,o);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const i of e.paths)for(const e of i)e.length>2&&(e[2]*=t)}(e,o);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const i of e.rings)for(const e of i)e.length>2&&(e[2]*=t)}(e,o);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const i of e.points)i.length>2&&(i[2]*=t)}(e,o);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,o);default:return null}}},63396:(e,t,i)=>{i.d(t,{d:()=>T});var n=i(31635),r=i(10107),s=(i(44208),i(53966),i(87811),i(64108)),o=i(60950),l=i(99959);class a extends l.A{constructor(e){super(),this.type="track",this.trackInfoProvider=e}get id(){return this.trackInfoProvider.id}get[o.ym](){return this.trackInfoProvider.trackInfo}}var u=i(37838),c=i(69540),p=i(25482),d=i(93637),m=i(43937),h=i(50820),f=i(10873),y=i(46499),g=i(41214);let v=class extends((0,c.OU)(p.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,n.Cg)([(0,r.MZ)({type:[y.A],json:{write:!0}})],v.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,r.MZ)(f.kF)],v.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,r.MZ)({types:g.Hg,json:{write:!0}})],v.prototype,"renderer",void 0),(0,n.Cg)([(0,r.MZ)({type:Boolean,json:{write:!0}})],v.prototype,"visible",void 0),v=(0,n.Cg)([(0,s.$)("esri.layers.support.TrackPartInfo")],v);var w=i(96576),b=i(59868),I=i(10184);let M=class extends((0,c.OU)(p.o)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new v({renderer:new w.A({symbol:b.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new v({renderer:new w.A({symbol:b.UK.clone()})}),this.trackLines=new v({renderer:new w.A({symbol:b.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,i){const n=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,d.sM)(i,n,t)}};(0,n.Cg)([(0,r.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"enabled",void 0),(0,n.Cg)([(0,r.MZ)({type:[h.A],json:{write:!0}})],M.prototype,"fields",void 0),(0,n.Cg)([(0,m.K)("fields")],M.prototype,"writeFields",null),(0,n.Cg)([(0,r.MZ)({type:v,json:{write:!0}})],M.prototype,"latestObservations",void 0),(0,n.Cg)([(0,r.MZ)({type:I.A,json:{write:!0}})],M.prototype,"maxDisplayDuration",void 0),(0,n.Cg)([(0,r.MZ)({type:Number,json:{write:!0}})],M.prototype,"maxDisplayObservationsPerTrack",void 0),(0,n.Cg)([(0,r.MZ)(f.M6)],M.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,r.MZ)({type:u.A,json:{name:"popupInfo",write:!0}})],M.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,r.MZ)({type:v,json:{write:!0}})],M.prototype,"previousObservations",void 0),(0,n.Cg)([(0,r.MZ)({type:v,json:{write:!0}})],M.prototype,"trackLines",void 0),(0,n.Cg)([(0,r.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],M.prototype,"timeField",void 0),M=(0,n.Cg)([(0,s.$)("esri.layers.support.TrackInfo")],M);const T=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new a(this),this.trackInfo=null}};return(0,n.Cg)([(0,r.MZ)({readOnly:!0,clonable:!1})],i.prototype,"trackGraphicOrigin",void 0),(0,n.Cg)([(0,r.MZ)({type:M})],i.prototype,"trackInfo",void 0),i=(0,n.Cg)([(0,s.$)("esri.layers.mixins.TrackableLayer")],i),i}},69208:(e,t,i)=>{i.d(t,{d:()=>o});var n=i(31635),r=i(10107),s=(i(44208),i(53966),i(87811),i(64108));const o=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,n.Cg)([(0,r.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],i.prototype,"customParameters",void 0),i=(0,n.Cg)([(0,s.$)("esri.layers.mixins.CustomParametersMixin")],i),i}},70328:(e,t,i)=>{i.d(t,{BI:()=>w,DC:()=>p,Ej:()=>m,Ie:()=>g,Jt:()=>v,Ne:()=>h,RF:()=>c,aI:()=>I,fA:()=>o,gE:()=>a,hZ:()=>y,iT:()=>d,is:()=>b,qv:()=>M,vI:()=>f,vY:()=>l,v_:()=>T,vt:()=>s,w1:()=>u});var n=i(5443),r=(i(19419),i(4197));function s(e=T){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function o(e,t,i,n,r,o,l=s()){return l[0]=e,l[1]=t,l[2]=i,l[3]=n,l[4]=r,l[5]=o,l}function l(e,t=s()){return function(e,t,i,n=s()){return y(n,M),function(e,t,i=0,n=t.length/3){let r=e[0],s=e[1],o=e[2],l=e[3],a=e[4],u=e[5];for(let e=0;e<n;e++)r=Math.min(r,t[i+3*e]),s=Math.min(s,t[i+3*e+1]),o=Math.min(o,t[i+3*e+2]),l=Math.max(l,t[i+3*e]),a=Math.max(a,t[i+3*e+1]),u=Math.max(u,t[i+3*e+2]);e[0]=r,e[1]=s,e[2]=o,e[3]=l,e[4]=a,e[5]=u}(n,e,t,i),n}(e,0,e.length/3,t)}function a(e,t=(0,r.jh)(24)){const[i,n,s,o,l,a]=e;return t[0]=i,t[1]=n,t[2]=s,t[3]=i,t[4]=n,t[5]=a,t[6]=i,t[7]=l,t[8]=s,t[9]=i,t[10]=l,t[11]=a,t[12]=o,t[13]=n,t[14]=s,t[15]=o,t[16]=n,t[17]=a,t[18]=o,t[19]=l,t[20]=s,t[21]=o,t[22]=l,t[23]=a,t}function u(e,t){const i=isFinite(e[2])||isFinite(e[5]);return new n.A(i?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function m(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function h(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function f(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function y(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function g(e){return e?y(e,M):s(M)}function v(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function w(e,t,i,n,r){return e[0]=t,e[1]=i,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=r,e[5]=Number.POSITIVE_INFINITY,e}function b(e){return 6===e.length}function I(e,t,i){if(null==e||null==t)return e===t;if(!b(e)||!b(t))return!1;if(i){for(let n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}const M=[1/0,1/0,1/0,-1/0,-1/0,-1/0],T=[0,0,0,0,0,0];s()},72691:(e,t,i)=>{i.d(t,{Aw:()=>o,DN:()=>n,EA:()=>s,Gm:()=>r,xq:()=>l});const n="__esri_stream_id__",r="__esri_timestamp__",s="__esri_track_part__",o="__esri_time_received__",l="__esri_track_line__"},73133:(e,t,i)=>{i.d(t,{j:()=>n});const n=(0,i(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},73681:(e,t,i)=>{i.d(t,{n:()=>a});var n=i(49186),r=i(53966),s=i(46140),o=i(95466),l=i(55674);class a{static async from(e,t,i){const o=e.dictionary_version?s.R.parse(e.dictionary_version):null,c=new Set(e.itemsNames),p={};if(t)for(const e in t)p[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)p.hasOwnProperty(t.name)||(p[t.name]=t.value);const d=new Set(e.authoringInfo.symbol);for(const e of Object.keys(i))d.delete(e);d.size&&r.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});const m=await(0,l.xR)(e.expression,null,p);if(!m)throw new n.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!o||!o.greaterEqual(4,0);h&&r.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:o});const f=new u(i,h);return new a(h,c,m,f)}constructor(e,t,i,n){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=i,this._reader=n}get itemNames(){return this._itemNames}evaluate(e,t,i,n){try{return this._reader.bind(e,i,n),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){r.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new o.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new o.A(t)}}class u extends l.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},76357:(e,t,i)=>{i.d(t,{A:()=>c});var n=i(31635),r=i(66552),s=i(25482),o=i(10107),l=(i(44208),i(53966),i(87811),i(93223)),a=i(64108);const u=new r.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let c=class extends s.o{constructor(e){super(e),this.name=null,this.type=null}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,n.Cg)([(0,l.e)(u),(0,o.MZ)({json:{write:{isRequired:!0}}})],c.prototype,"type",void 0),c=(0,n.Cg)([(0,a.$)("esri.layers.support.Domain")],c)},79457:(e,t,i)=>{i.r(t),i.d(t,{default:()=>oe});var n=i(31635),r=i(37838),s=i(78888),o=i(69540),l=i(49186),a=i(36563),u=i(4718),c=i(53966),p=i(92071),d=i(74887),m=i(10107),h=i(56507),f=i(36005),y=i(64108),g=i(5443),v=i(16930),w=i(50498),b=i(55156),I=i(60950),M=i(89808),T=i(99959);const x=Symbol("isStreamGraphicOrigin");var _;class S extends T.A{get[(_=x,I.ym)](){return this.layer}get[b.e](){return this.layer}get[M.Q](){return this.layer}constructor(e){super(),this[_]=!0,this.type="stream",this.layer=e}get id(){return this.layer.id}}var C,A=i(4146),F=i(18768),j=i(63074),O=i(69208),Z=i(6455),R=i(87718),E=i(56658),P=i(16131),N=i(8303),D=i(54310),L=i(25036),$=i(82935),k=i(63396),U=i(10873),G=i(15426),V=i(20437),z=i(17036),q=i(30524),J=i(46499),B=i(39383),Y=i(25482);i(44208),i(87811);let H=class extends Y.o{constructor(){super(...arguments),this.age=null,this.ageReceived=null,this.displayCount=null,this.maxObservations=1}static{C=this}clone(){return new C({age:this.age,ageReceived:this.ageReceived,displayCount:this.displayCount,maxObservations:this.maxObservations})}};(0,n.Cg)([(0,m.MZ)({type:Number,json:{write:!0}})],H.prototype,"age",void 0),(0,n.Cg)([(0,m.MZ)({type:Number,json:{write:!0}})],H.prototype,"ageReceived",void 0),(0,n.Cg)([(0,m.MZ)({type:Number,json:{write:!0}})],H.prototype,"displayCount",void 0),(0,n.Cg)([(0,m.MZ)({type:Number,json:{write:!0}})],H.prototype,"maxObservations",void 0),H=C=(0,n.Cg)([(0,y.$)("esri.layers.support.PurgeOptions")],H);var K=i(72691),W=i(65494),Q=i(8947),X=i(41214),ee=i(61956),te=i(30291),ie=i(88625);const ne=(0,z.p)();function re(e,t){return new l.A("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}let se=class extends((0,Z.FJ)((0,E.J)((0,R.F)((0,j.dM)((0,$.e)((0,k.d)((0,L.j)((0,D.J)((0,F.b)((0,P.q)((0,N.A)((0,p.P)((0,O.d)((0,o.OU)(A.A))))))))))))))){constructor(...e){super(...e),this.copyright=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.geometryDefinition=null,this.geometryType=null,this.graphicOrigin=new S(this),this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.maxReconnectionAttempts=0,this.maxReconnectionInterval=20,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.operationalLayerType="ArcGISStreamLayer",this.outFields=["*"],this.popupEnabled=!0,this.popupTemplate=null,this.purgeOptions=new H,this.refreshInterval=0,this.screenSizePerspectiveEnabled=!0,this.sourceJSON=null,this.spatialReference=v.A.WGS84,this.type="stream",this.url=null,this.updateInterval=300,this.useViewTime=!0,this.webSocketUrl=null,this._debouncedSaveOperations=(0,d.sg)(async(e,t,n)=>{const{save:r,saveAs:s}=await i.e(7301).then(i.bind(i,87301));switch(e){case 0:return r(this,t);case 1:return s(this,n,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){if(!("WebSocket"in globalThis))return this.addResolvingPromise(Promise.reject(new l.A("stream-layer:websocket-unsupported","WebSocket is not supported in this browser. StreamLayer will not have real-time connection with the stream service."))),Promise.resolve(this);const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Stream Service","Feed"]},e).catch(d.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}set renderer(e){(0,q.yp)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,i){t=t.layerDefinition||t;const n=t.drawingInfo?.renderer;if(n){const e=(0,W.L)(n,t,i)||void 0;return e||c.A.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:i}),e}return(0,G.PD)(t,i)}async connect(e){const[{createConnection:t}]=await Promise.all([Promise.all([i.e(624),i.e(5734)]).then(i.bind(i,30624)),this.load()]),n=this.geometryType?w.gy.toJSON(this.geometryType):null,{customParameters:r=null,definitionExpression:s=null,geometryDefinition:o=null,maxReconnectionAttempts:l=0,maxReconnectionInterval:u=20,spatialReference:c=this.spatialReference}=e||this.createConnectionParameters(),p=t(this.parsedUrl,this.spatialReference,c,n,s,o,l,u,r??void 0),d=(0,a.vE)([this.on("send-message-to-socket",e=>p.sendMessageToSocket(e)),this.on("send-message-to-client",e=>p.sendMessageToClient(e))]);return p.once("destroy",d.remove),p}createConnectionParameters(){return{spatialReference:this.spatialReference,customParameters:this.customParameters,definitionExpression:this.definitionExpression,geometryDefinition:this.geometryDefinition,maxReconnectionAttempts:this.maxReconnectionAttempts,maxReconnectionInterval:this.maxReconnectionInterval}}createPopupTemplate(e){return(0,te.tn)(this,e)}createQuery(){const e=new ee.A;return e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){if(!this.fields)return null;let i=null;return this.fields.some(t=>(t.name===e&&(i=t.domain),!!i)),i}getField(e){return this.fieldsIndex.get(e)}serviceSupportsSpatialReference(e){return!0}sendMessageToSocket(e){this.emit("send-message-to-socket",e)}sendMessageToClient(e){this.emit("send-message-to-client",e)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}write(e,t){const i=t?.messages;return this.webSocketUrl?(i?.push(re(this,"using a custom websocket connection cannot be written to web scenes and web maps")),null):this.parsedUrl?super.write(e,t):(i?.push(re(this,"using a client-side only connection without a url cannot be written to web scenes and web maps")),null)}async _fetchService(e){if(!this.webSocketUrl&&this.parsedUrl){if(!this.sourceJSON){const{data:t}=await(0,s.A)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,...this.parsedUrl.query},responseType:"json",signal:e});this.sourceJSON=t}}else{if(!this.timeInfo?.trackIdField)throw new l.A("stream-layer:missing-metadata","The stream layer trackIdField must be specified.");if(!this.objectIdField){const e=this.fields.find(e=>"oid"===e.type)?.name;if(!e)throw new l.A("stream-layer:missing-metadata","The stream layer objectIdField must be specified.");this.objectIdField=e}if(!this.fields)throw new l.A("stream-layer:missing-metadata","The stream layer fields must be specified.");if(this.fields.some(e=>e.name===this.objectIdField)||this.fields.push(new V.A({name:this.objectIdField,alias:this.objectIdField,type:"oid"})),!this.geometryType)throw new l.A("stream-layer:missing-metadata","The stream layer geometryType must be specified.");this.webSocketUrl&&(this.url=this.webSocketUrl)}return this.read(this.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}),(0,q.yp)(this.renderer,this.fieldsIndex),(0,q.sv)(this.timeInfo,this.fieldsIndex),this.objectIdField||(this.objectIdField=K.DN),(0,Q.L)(this,{origin:"service"})}};(0,n.Cg)([(0,m.MZ)({type:String})],se.prototype,"copyright",void 0),(0,n.Cg)([(0,m.MZ)({readOnly:!0})],se.prototype,"defaultPopupTemplate",null),(0,n.Cg)([(0,m.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],se.prototype,"definitionExpression",void 0),(0,n.Cg)([(0,m.MZ)({type:String})],se.prototype,"displayField",void 0),(0,n.Cg)([(0,m.MZ)({type:ie.A})],se.prototype,"elevationInfo",void 0),(0,n.Cg)([(0,m.MZ)({json:{origins:{"web-map":{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],se.prototype,"featureReduction",null),(0,n.Cg)([(0,m.MZ)(ne.fields)],se.prototype,"fields",void 0),(0,n.Cg)([(0,m.MZ)(ne.fieldsIndex)],se.prototype,"fieldsIndex",void 0),(0,n.Cg)([(0,m.MZ)({type:g.A,json:{name:"layerDefinition.definitionGeometry",write:!0}})],se.prototype,"geometryDefinition",void 0),(0,n.Cg)([(0,m.MZ)({type:w.gy.apiValues,json:{read:{reader:w.gy.read}}})],se.prototype,"geometryType",void 0),(0,n.Cg)([(0,m.MZ)({readOnly:!0,clonable:!1})],se.prototype,"graphicOrigin",void 0),(0,n.Cg)([(0,m.MZ)(U.kF)],se.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,m.MZ)({type:[J.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:B.w},write:!0}})],se.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,m.MZ)(U.fV)],se.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,m.MZ)({type:["show","hide"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],se.prototype,"listMode",void 0),(0,n.Cg)([(0,m.MZ)({type:h.jz})],se.prototype,"maxReconnectionAttempts",void 0),(0,n.Cg)([(0,m.MZ)({type:h.jz})],se.prototype,"maxReconnectionInterval",void 0),(0,n.Cg)([(0,m.MZ)(U.hG)],se.prototype,"maxScale",void 0),(0,n.Cg)([(0,m.MZ)(U.hn)],se.prototype,"minScale",void 0),(0,n.Cg)([(0,m.MZ)({type:String})],se.prototype,"objectIdField",void 0),(0,n.Cg)([(0,m.MZ)({value:"ArcGISStreamLayer",type:["ArcGISStreamLayer"]})],se.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,m.MZ)({readOnly:!0})],se.prototype,"outFields",void 0),(0,n.Cg)([(0,m.MZ)(U.M6)],se.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,m.MZ)({type:r.A,json:{name:"popupInfo",write:!0}})],se.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,m.MZ)({type:H})],se.prototype,"purgeOptions",void 0),(0,n.Cg)([(0,m.MZ)({json:{read:!1,write:!1}})],se.prototype,"refreshInterval",void 0),(0,n.Cg)([(0,m.MZ)({types:X.Hg,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{name:"layerDefinition.drawingInfo.renderer",types:X.XJ,write:!0}},write:{target:"layerDefinition.drawingInfo.renderer"}}})],se.prototype,"renderer",null),(0,n.Cg)([(0,f.w)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,f.w)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],se.prototype,"readRenderer",null),(0,n.Cg)([(0,m.MZ)((()=>{const e=(0,u.o8)(U.PY);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],se.prototype,"screenSizePerspectiveEnabled",void 0),(0,n.Cg)([(0,m.MZ)()],se.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,m.MZ)({type:v.A,json:{origins:{service:{read:{source:"spatialReference"}}}}})],se.prototype,"spatialReference",void 0),(0,n.Cg)([(0,m.MZ)({json:{read:!1}})],se.prototype,"type",void 0),(0,n.Cg)([(0,m.MZ)(U.OZ)],se.prototype,"url",void 0),(0,n.Cg)([(0,m.MZ)({type:Number})],se.prototype,"updateInterval",void 0),(0,n.Cg)([(0,m.MZ)({json:{read:!1,write:!1}})],se.prototype,"useViewTime",void 0),(0,n.Cg)([(0,m.MZ)({type:String})],se.prototype,"webSocketUrl",void 0),se=(0,n.Cg)([(0,y.$)("esri.layers.StreamLayer")],se);const oe=se},80451:(e,t,i)=>{i.d(t,{rS:()=>h,gK:()=>m}),i(44208);var n,r=i(53177),s=i(76357),o=i(31635),l=(i(53966),i(87811),i(49186),i(93223)),a=i(64108);let u=class extends s.A{static{n=this}constructor(e){super(e),this.type="inherited"}clone(){return new n}};(0,o.Cg)([(0,l.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=n=(0,o.Cg)([(0,a.$)("esri.layers.support.InheritedDomain")],u);var c,p=i(10107);let d=class extends s.A{static{c=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new c({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,o.Cg)([(0,p.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,i){t[i]=[this.minValue||0,e]},isRequired:!0}}})],d.prototype,"maxValue",void 0),(0,o.Cg)([(0,p.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,i){t[i]=[e,this.maxValue||0]},isRequired:!0}}})],d.prototype,"minValue",void 0),(0,o.Cg)([(0,l.e)({range:"range"})],d.prototype,"type",void 0),d=c=(0,o.Cg)([(0,a.$)("esri.layers.support.RangeDomain")],d);const m={key:"type",base:s.A,typeMap:{range:d,"coded-value":r.A,inherited:u}};function h(e){if(!e?.type)return null;switch(e.type){case"range":return d.fromJSON(e);case"codedValue":return r.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},82935:(e,t,i)=>{i.d(t,{B:()=>m,e:()=>h});var n=i(31635),r=i(10107),s=(i(44208),i(53966),i(87811),i(36005)),o=i(64108),l=i(89317),a=i(30524),u=i(96184),c=i(73133),p=i(79677),d=i(10184);const m={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:l.K}}},h=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const n=i.timeOffset,r=c.j.fromJSON(i.timeOffsetUnits);return n&&r?new d.A({value:n,unit:r}):null}set timeInfo(e){(0,a.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,n.Cg)([(0,r.MZ)({type:p.A,json:{write:!1}})],i.prototype,"timeExtent",void 0),(0,n.Cg)([(0,r.MZ)({type:d.A})],i.prototype,"timeOffset",void 0),(0,n.Cg)([(0,s.w)("service","timeOffset",["timeInfo.exportOptions"])],i.prototype,"readOffset",null),(0,n.Cg)([(0,r.MZ)({value:null,type:u.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],i.prototype,"timeInfo",null),(0,n.Cg)([(0,r.MZ)(m)],i.prototype,"useViewTime",void 0),i=(0,n.Cg)([(0,o.$)("esri.layers.mixins.TemporalLayer")],i),i}},83960:(e,t,i)=>{i.d(t,{X_:()=>o,oW:()=>a,zx:()=>l});var n=i(34727),r=i(83047);const s=96;function o(e,t){const i=t||e.extent,n=e.width,o=(0,r.GA)(i?.spatialReference);return i&&n?i.width/n*o*r.dy*s:0}function l(e,t,i){return function(e,t){return 0===t||(0,n.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,n.Sp)(e,t)||e>t}(e,i)}function a(e,t){return(0,n.Sp)(e,t)?0:(e||Number.POSITIVE_INFINITY)>(t||Number.POSITIVE_INFINITY)?1:-1}},91218:(e,t,i)=>{i.r(t),i.d(t,{canProjectWithoutEngine:()=>z,initializeProjection:()=>J,isEqualBaseGCS:()=>q,isLoaded:()=>j,isLoadedOrLoad:()=>O,isLoadedOrLoadFor:()=>Z,load:()=>E,project:()=>P,projectExtent:()=>ie,projectMany:()=>N,projectMultipoint:()=>K,projectOrLoad:()=>D,projectOrLoadMany:()=>L,projectPoint:()=>Y,projectPolygon:()=>ee,projectPolyline:()=>Q,projectWithZConversion:()=>V,projectWithoutEngine:()=>B,requiresLoad:()=>R,test:()=>U,tryProjectWithZConversion:()=>G,unload:()=>k});var n=i(49186),r=i(74887),s=i(62788),o=i(95488),l=i(51850),a=i(21276),u=i(73941),c=i(5443),p=i(91075),d=i(48526),m=i(86738),h=i(39829),f=i(82799),y=i(16930),g=i(159),v=i(9762),w=i(37539);function b(e,t,i,n,r,s){return I[0]=e,I[1]=t,I[2]=i,(0,v.projectBuffer)(I,n,0,r,s,0)}const I=(0,l.vt)();var M=i(21325),T=i(62815);let x=null,_=null,S=null,C=null,A={};const F=new o.I;function j(){return!!(_?.isLoaded()&&S?.isLoaded()&&C?.isLoaded())}function O(){return!!j()||((0,s.gc)(F),E(),!1)}function Z(e,t){return!e||!t||z(e,t)||O()}function R(e,t){return!z(e,t)&&!j()}async function E(e){null==x&&(x=Promise.all([i.e(3276).then(i.bind(i,83276)).then(e=>(_=e,_.load())),i.e(8377).then(i.bind(i,8377)).then(e=>(S=e,S.load())),i.e(2158).then(i.bind(i,12158)).then(e=>(C=e,C.load()))])),await x,(0,r.Te)(e),F.notify()}function P(e,t,i){return Array.isArray(e)?0===e.length?[]:((0,a.H)(e),N(e,e[0].spatialReference,t,i)):((0,a.f)(e),N([e],e.spatialReference,t,i)[0])}function N(e,t,i,n){if(null==t||null==i)return e;if(z(t,i,n))return e.map(e=>B(e,t,i));if(null==n?.geographicTransformation&&(0,u.jA)(t))return e.map(e=>B(e,t,y.A.WGS84)).map(e=>G(e,i));if(null==n?.geographicTransformation&&(0,u.jA)(i))return e.map(e=>G(e,y.A.WGS84)).map(e=>B(e,y.A.WGS84,i));if(!j())throw new $;if(!n?.geographicTransformation)if(n?.extendedParams)n={...n,geographicTransformation:C.getTransformation(t,i,n.areaOfInterestExtent)||new g.A};else if(!n?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,i);let r=A[e];r||(r=C.getTransformation(t,i)||new g.A,A[e]=r),n={geographicTransformation:r}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof p.A?_.executeMany(e,i,n):S.executeMany(e,i,n)}function D(e,t){const i=L([e],t);return null!=i.pending?{pending:i.pending,geometry:null}:null!=i.geometries?{pending:null,geometry:i.geometries[0]}:{pending:null,geometry:null}}function L(e,t){if(!j())for(const i of e)if(null!=i&&!(0,M.aI)(i.spatialReference,t)&&(0,M.fn)(i.spatialReference)&&(0,M.fn)(t)&&!z(i.spatialReference,t))return(0,s.gc)(F),{pending:E(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,M.aI)(e.spatialReference,t)?e:(0,M.fn)(e.spatialReference)&&(0,M.fn)(t)?G(e,t):null)}}class $ extends n.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function k(){x=null,_=null,S=null,C=null,A={}}const U={get loadPromise(){return x}};function G(e,t){try{const i=P(e,t);if(null==i)return null;"xmin"in e&&"xmin"in i&&(i.zmin=e.zmin,i.zmax=e.zmax);const n=(0,T.N)(i.type,e.spatialReference,t);return null!=n&&n(i),i}catch(e){if(!(e instanceof $))throw e;return null}}async function V(e,t,i){const n=e.spatialReference;return null!=n&&null!=t&&await J(n,t,null,i),G(e,t)}function z(e,t,i){return!(i?.areaOfInterestExtent||i?.extendedParams||i?.geographicTransformation)&&(!!(0,M.aI)(e,t)||(0,M.fn)(e)&&(0,M.fn)(t)&&!!(0,w.jd)(e,t))}function q(e,t){if((0,M.aI)(e,t))return!0;if(!(0,M.fn)(e)||!(0,M.fn)(t))return!1;const i=(0,M.oT)(e)||(0,M.K8)(e)||(0,M.x1)(e),n=(0,M.oT)(t)||(0,M.K8)(t)||(0,M.x1)(t);return i&&n}async function J(e,t,i,n){if(j())return(0,r.NO)(n);if(Array.isArray(e)){for(const{source:t,dest:i,options:r}of e)if(t&&i&&!z(t,i,r))return E(n)}else if(e&&t&&!z(e,t,i))return E(n);return(0,r.NO)(n)}function B(e,t,i){return e?"x"in e?H(e,t,new m.A,i,0):"xmin"in e?ne(e,t,new c.A,i,0):"rings"in e?te(e,t,new h.A,i,0):"paths"in e?X(e,t,new f.A,i,0):"points"in e?W(e,t,new d.A,i,0):null:null}function Y(e,t,i=t.spatialReference,n=0){return null!=i&&null!=e.spatialReference&&null!=H(e,e.spatialReference,t,i,n)}function H(e,t,i,n,r){se[0]=e.x,se[1]=e.y;const s=e.z;return se[2]=void 0!==s?s:r,(0,v.projectBuffer)(se,t,0,se,n,0)?(i.x=se[0],i.y=se[1],i.spatialReference=n,void 0!==s||(0,u.xP)(n)?(i.z=se[2],i.hasZ=!0):(i.z=void 0,i.hasZ=!1),void 0===e.m?(i.m=void 0,i.hasM=!1):(i.m=e.m,i.hasM=!0),i):null}function K(e,t,i=t.spatialReference,n=0){return null!=e.spatialReference&&null!=i&&null!=W(e,e.spatialReference,t,i,n)}function W(e,t,i,n,r){const{points:s,hasZ:o,hasM:l}=e,a=[],c=s.length,p=[];for(const e of s)p.push(e[0],e[1],o?e[2]:r);if(!(0,v.projectBuffer)(p,t,0,p,n,0,c))return null;const d=o||(0,u.xP)(n);for(let e=0;e<c;++e){const t=3*e,i=p[t],n=p[t+1];d&&l?a.push([i,n,p[t+2],s[e][3]]):d?a.push([i,n,p[t+2]]):l?a.push([i,n,s[e][2]]):a.push([i,n])}return i.points=a,i.spatialReference=n,i.hasZ=o,i.hasM=l,i}function Q(e,t,i=t.spatialReference,n=0){return null!=e.spatialReference&&null!=i&&null!=X(e,e.spatialReference,t,i,n)}function X(e,t,i,n,r){const{paths:s,hasZ:o,hasM:l}=e,a=[];if(!re(s,o??!1,l??!1,t,a,n,r))return null;const c=o||(0,u.xP)(n);return i.paths=a,i.spatialReference=n,i.hasZ=c,i.hasM=l,i}function ee(e,t,i=t.spatialReference,n=0){return null!=e.spatialReference&&null!=i&&null!=te(e,e.spatialReference,t,i,n)}function te(e,t,i,n,r){const{rings:s,hasZ:o,hasM:l}=e,a=[];if(!re(s,o??!1,l??!1,t,a,n,r))return null;const c=o||(0,u.xP)(n);return i.rings=a,i.spatialReference=n,i.hasZ=c,i.hasM=l,i}function ie(e,t,i=t.spatialReference,n=0){return null!=e.spatialReference&&null!=i&&null!=ne(e,e.spatialReference,t,i,n)}function ne(e,t,i,n,r){const{xmin:s,ymin:o,xmax:l,ymax:a,hasZ:c,hasM:p}=e;if(!b(s,o,c?e.zmin:r,t,se,n))return null;const d=c||(0,u.xP)(n);return i.xmin=se[0],i.ymin=se[1],d&&(i.zmin=se[2]),b(l,a,c?e.zmax:r,t,se,n)?(i.xmax=se[0],i.ymax=se[1],d&&(i.zmax=se[2]),p&&(i.mmin=e.mmin,i.mmax=e.mmax),i.spatialReference=n,i):null}function re(e,t,i,n,r,s,o=0){const l=new Array;for(const i of e)for(const e of i)l.push(e[0],e[1],t?e[2]:o);if(!(0,v.projectBuffer)(l,n,0,l,s,0))return!1;let a=0;r.length=0;const c=t||(0,u.xP)(s);for(const t of e){const e=new Array;for(const n of t)c&&i?e.push([l[a++],l[a++],l[a++],n[3]]):c?e.push([l[a++],l[a++],l[a++]]):i?(e.push([l[a++],l[a++],n[2]]),a++):(e.push([l[a++],l[a++]]),a++);r.push(e)}return!0}const se=(0,l.vt)()},95466:(e,t,i)=>{i.d(t,{A:()=>m});var n=i(49186),r=i(53966),s=i(91869),o=i(3330),l=i(12195),a=i(30524),u=i(98623),c=i(56400),p=i(28097);const d=new Map;class m{static fromJSON(e){return new m(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new m(e.fields??[],g(e))}static fromLayerJSON(e){return new m(e.fields??[],g(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const i=[];for(const e of this.fields){const t=e?.name,n=f(t);if(t&&n){const r=h(t);this._fieldsMap.set(t,e),this._fieldsMap.set(r,e),this._normalizedFieldsMap.set(n,e),i.push(`${r}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(h(e))??this._normalizedFieldsMap.get(f(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(r.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new n.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):y.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?o.GB.instance:t===u.n$?p.mQ.utcInstance:(0,s.tE)(d,t,()=>p.oh.create(t)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,l.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function h(e){return e.trim().toLowerCase()}function f(e){return(0,a.rS)(e)?.toLowerCase()??""}const y=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function g(e){const t=new Map;if(!e.fields)return t;const i=!0===e.datesInUnknownTimezone,{timeInfo:n,editFieldsInfo:r}=e,s=(n?"startField"in n?n.startField:n.startTimeField:"")??"",o=(n?"endField"in n?n.endField:n.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,a=r?function(e){return"timeZone"in e}(r)?r.timeZone??l:r.dateFieldsTimeReference?(0,c.ZS)(r.dateFieldsTimeReference):l??u.n$:null,p=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.timeReference?(0,c.ZS)(n.timeReference):l:null,d=new Map([[h(r?.creationDateField??""),a],[h(r?.editDateField??""),a],[h(s),p],[h(o),p]]);for(const{name:n,type:r}of e.fields)if(y.has(r))t.set(n,u.L5);else if("date"!==r&&"esriFieldTypeDate"!==r)t.set(n,null);else if(i)t.set(n,u.L5);else{const e=d.get(h(n??""))??l;t.set(n,e)}return t}},96184:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(31635),r=i(69540),s=i(25482),o=i(10107),l=(i(44208),i(53966),i(87811),i(36005)),a=i(64108),u=i(43937),c=i(79677),p=i(10184),d=i(56400);function m(e,t){return p.A.fromJSON({value:e,unit:t})}let h=class extends((0,r.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?c.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?m(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?m(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,n.Cg)([(0,o.MZ)({type:c.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,n.Cg)([(0,l.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,n.Cg)([(0,u.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,n.Cg)([(0,o.MZ)({type:p.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,n.Cg)([(0,l.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,n.Cg)([(0,u.K)("interval")],h.prototype,"writeInterval",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,n.Cg)([(0,o.MZ)((0,d.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,n.Cg)([(0,o.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,n.Cg)([(0,o.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,n.Cg)([(0,a.$)("esri.layers.support.TimeInfo")],h)},98453:(e,t,i)=>{i.d(t,{m:()=>n});const n=new(i(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},99157:(e,t,i)=>{i.d(t,{A:()=>a});var n,r=i(31635),s=i(65008),o=i(10107),l=(i(44208),i(53966),i(87811),i(64108));let a=n=class extends s.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new n({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,r.Cg)([(0,o.MZ)()],a.prototype,"isInverse",void 0),(0,r.Cg)([(0,o.MZ)()],a.prototype,"wkt",void 0),(0,r.Cg)([(0,o.MZ)()],a.prototype,"wkid",void 0),a=n=(0,r.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformationStep")],a)}}]);
|